(function(){var t=function(){for(var e=new Object,i=window.location.search.slice(1).split("&"),o=0;o0&&(e[i[o].substring(0,r)]=i[o].substring(r+1))}return e}(),c=function(e){for(var i=document.cookie,o=i.split("; "),r=0;r{layer.msg("\u4FDD\u5B58\u6210\u529F",{icon:1,time:2e3},function(){})}},I())},300)}else layer.msg(e.message)},error:function(e){}});var g=function(){var e=filesboxEditor.J1.jF,i=filesboxEditor.J1.cY,o="file,edit,image,layer,select,filter,view,window,more".split(",");if(!!i){for(var r=0;r',d="\u4FDD\u5B58",u="\u4E0B\u8F7Dpsd";$('
'+l+u+"
").insertAfter(a),$('
'+l+d+'\u2318+S
').insertAfter(a)}}y()}},y=function(){$("body").delegate("[data-action]","click",function(){var e=$(this).attr("data-action");switch(filesboxEditor.toolbarHide=function(){filesboxEditor.lQ.Y3()},e){case"save":var i=f((fileInfoxx.fileType||"").toUpperCase()),o=filesboxEditor.currentFile()||{name:"test.psd"};filesboxEditor.file.save(i,fileInfoxx.name),filesboxEditor.toolbarHide();break;case"download-psd":var i=f("psd"),o=filesboxEditor.currentFile()||{name:"test.psd"};filesboxEditor.file.download(i,o.name),filesboxEditor.toolbarHide();break;case"open-local":filesboxEditor.jM.aej();break;default:break}})},s=function(e){var i=e.substr(e.lastIndexOf(".")+1)||"";return i.toLowerCase()},f=function(e){var i=filesboxEditor.J1.PJ,o=filesboxEditor.fm,r=i.Z,n=i.h,a=[100,!1];return e=="PS"&&(e="EPS"),e=="PSB"&&(e="PSD"),e=="AI"&&(e="PDF",a=["",100,!0,!1,!1,["jpg"]]),e=="JPEG"&&(e="JPG"),e=="GIF"&&(a=[100]),e=="SVG"&&(a=[!0,!1,!1,!1,!0,!0]),(e=="GIF"||e=="WEBP")&&(a=[100]),e=="EMF"&&(a=["",!1,!1,!1,[]]),(e=="BMP"||e=="PPM"||e=="ICO"||e=="DDS"||e=="TGA")&&(a=[]),(e=="TIFF"||e=="TIF")&&(e=="TIFF",a=[!1]),filesboxEditor.image.eX(i,e,r,n,a,o)}})();