System.register(["./index-legacy-DQdImDha.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./FileIcon-legacy-CYrICTNK.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./soft-legacy-CzxZ2w7j.js?v=1773287522785","./copy-legacy-CoXPjkKf.js?v=1773287522785"],(function(e,l){"use strict";var a,u,n,t,o,s,i,v,c,r,p,d,m,f,g,h,_,y,j,b,x,w,$,z,F,M,C,P;return{setters:[e=>{a=e.l,u=e.x,n=e.p,t=e.P},e=>{o=e._},e=>{s=e.A,i=e.$,v=e.w,c=e.Q},e=>{r=e.a1,p=e.a6,d=e.au,m=e.b,f=e.B},e=>{g=e.k,h=e.R,_=e.i,y=e.r,j=e.w,b=e.$,x=e.a8,w=e.a9,$=e._,z=e.a0,F=e.S,M=e.X,C=e.a3,P=e.n},null,null,null],execute:function(){const S={class:"p-20px pt-28px"};e("default",g({__name:"Compression",setup(e,{expose:g}){const{t:k}=h(),U=_("fileStore"),{choosedKeys:A,currentPath:I,fileList:B}=U,E=y(!1),K=y(""),L=y(""),Q=y(""),R=y("tar.gz"),T=y(I.value),X=y([{label:"tar.gz",value:"tar.gz"},{label:"zip",value:"zip"},{label:"rar",value:"rar"}]),Z=s(B.value,A.value)[0];function q(){1==A.value.length?Q.value=`${T.value}/${Z.nm}.${R.value}`:A.value.length>1&&(Q.value=`${T.value}/${I.value.split("/").pop()}.${R.value}`)}function D(){n({title:k("Component.SelectPath.index_7"),width:750,height:640,footer:!1,data:{path:T.value,callback:e=>{T.value=e,P(q)}},component:C((()=>t((()=>l.import("./index-legacy-W_PN01QM.js?v=1773287522785")),void 0)))})}async function G(){await i(L.value,Q.value,R.value,I.value),v(U),c(U)}return j(R,(()=>P(q))),g({open:function(){E.value=!0,1==A.value.length?(L.value=Z.nm,"dir"==Z.type?K.value=k("file.compressionModal.compressFolder",{name:Z.nm}):K.value=k("file.compressionModal.compressFile",{name:Z.nm})):A.value.length>1&&(L.value=A.value.join(","),K.value=k("file.compressionModal.compressFolderAndFile",{names:L.value})),q()},close:function(){E.value=!1}}),(e,l)=>{const n=p,t=r,s=m,i=a,v=f,c=d,g=o,h=u;return b(),x(h,{show:F(E),"onUpdate:show":l[2]||(l[2]=e=>M(E)?E.value=e:null),width:480,title:F(K),footer:!0,onConfirm:G},{default:w((()=>[$("div",S,[z(g,null,{default:w((()=>[z(t,{label:F(k)("file.compressionModal.compressType")},{default:w((()=>[z(n,{value:F(R),"onUpdate:value":l[0]||(l[0]=e=>M(R)?R.value=e:null),options:F(X)},null,8,["value","options"])])),_:1},8,["label"]),z(t,{label:F(k)("file.compressionModal.compressPath")},{default:w((()=>[z(c,null,{default:w((()=>[z(s,{value:F(Q),"onUpdate:value":l[1]||(l[1]=e=>M(Q)?Q.value=e:null)},null,8,["value"]),z(v,{onClick:D},{icon:w((()=>[z(i,{name:"file-dir",size:"20"})])),_:1})])),_:1})])),_:1},8,["label"])])),_:1})])])),_:1},8,["show","title"])}}}))}}}));
