"use strict";!function(e,n){"function"==typeof define&&define.amd?define(["elfinder"],n):"undefined"!=typeof exports?module.exports=n(require("elfinder")):n(e.elFinder)}(this,function(e){try{e.prototype.commands.quicklook.plugins||(e.prototype.commands.quicklook.plugins=[]),e.prototype.commands.quicklook.plugins.push(function(e){var n=e.fm,o=e.preview;o.on("update",function(i){var t,l,r=(e.window,i.file);0===r.mime.indexOf("application/vnd.google-apps.")&&("1"==r.url&&$('
").appendTo(e.info.find(".elfinder-quicklook-info")).on("click",function(){$(this).html(''),n.request({data:{cmd:"url",target:r.hash},preventDefault:!0}).always(function(){$(this).html("")}).done(function(i){var t=n.file(r.hash);e.value.url=t.url=i.url||"",e.value.url&&o.trigger($.Event("update",{file:e.value}))})}),""!==r.url&&"1"!=r.url&&(i.stopImmediatePropagation(),o.one("change",function(){l.remove(),t.off("load").remove()}),l=$('