System.register(["./index-legacy.js?v=1764233927359","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1764233927359","./page_layout-legacy.js?v=1764233927359","./index-legacy39.js?v=1764233927359","./ResourceManagerWindow-legacy.js?v=1764233927359","./naive-legacy.js?v=1764233927359","./vue-legacy.js?v=1764233927359","./common-legacy.js?v=1764233927359","./__commonjsHelpers__-legacy.js?v=1764233927359","./public-legacy.js?v=1764233927359","./soft-legacy2.js?v=1764233927359","./soft-legacy.js?v=1764233927359","./site-legacy.js?v=1764233927359","./file-legacy2.js?v=1764233927359","./index.vue_vue_type_script_setup_true_lang-legacy7.js?v=1764233927359"],function(e,l){"use strict";var a,u,n,o,s,t,i,r,c,v,p,f,d,_,g,m,y,j,h,b,w,x,z,M,R,$,k,C;return{setters:[e=>{a=e._},e=>{u=e._},e=>{n=e._},e=>{o=e.f,s=e.k,t=e.g,i=e.b},e=>{r=e.R},e=>{c=e.dR,v=e.dV,p=e.av,f=e.au,d=e.aC},e=>{_=e.k,g=e.P,m=e.i,y=e.av,j=e.r,h=e.w,b=e.R,w=e.V,x=e.W,z=e.a3,M=e.S,R=e.U,$=e.ak,k=e.F,C=e.n},null,null,null,null,null,null,null,null],execute:function(){const l={class:"p-20px pt-28px"};e("default",_({__name:"Compression",setup(e,{expose:_}){const{t:F}=g(),U=m("fileStore"),{choosedKeys:W,currentPath:P,fileList:S}=U,V=y("resourceWindowRef"),A=j(!1),D=j(""),H=j(""),K=j(""),L=j("tar.gz"),T=j(P.value),q=j([{label:"tar.gz",value:"tar.gz"},{label:"zip",value:"zip"},{label:"rar",value:"rar"}]),B=o(S.value,W.value)[0];function E(){1==W.value.length?K.value=`${T.value}/${B.nm}.${L.value}`:W.value.length>1&&(K.value=`${T.value}/${P.value.split("/").pop()}.${L.value}`)}function G(){V.value?.open()}function I(e){T.value=e,C(E)}async function J(){await s(H.value,K.value,L.value,P.value),t(U),i(U)}return h(L,()=>C(E)),_({open:function(){A.value=!0,1==W.value.length?(H.value=B.nm,"dir"==B.type?D.value=F("file.compressionModal.compressFolder",{name:B.nm}):D.value=F("file.compressionModal.compressFile",{name:B.nm})):W.value.length>1&&(H.value=W.value.join(","),D.value=F("file.compressionModal.compressFolderAndFile",{names:H.value})),E()},close:function(){A.value=!1}}),(e,o)=>{const s=v,t=c,i=f,_=n,g=d,m=p,y=u,j=a;return w(),b(k,null,[x(j,{show:R(A),"onUpdate:show":o[2]||(o[2]=e=>$(A)?A.value=e:null),width:480,title:R(D),footer:!0,onConfirm:J},{default:z(()=>[M("div",l,[x(y,null,{default:z(()=>[x(t,{label:R(F)("file.compressionModal.compressType")},{default:z(()=>[x(s,{value:R(L),"onUpdate:value":o[0]||(o[0]=e=>$(L)?L.value=e:null),options:R(q)},null,8,["value","options"])]),_:1},8,["label"]),x(t,{label:R(F)("file.compressionModal.compressPath")},{default:z(()=>[x(m,null,{default:z(()=>[x(i,{value:R(K),"onUpdate:value":o[1]||(o[1]=e=>$(K)?K.value=e:null)},null,8,["value"]),x(g,{onClick:G},{icon:z(()=>[x(_,{name:"file-dir",size:"20"})]),_:1})]),_:1})]),_:1},8,["label"])]),_:1})])]),_:1},8,["show","title"]),x(r,{ref_key:"resourceWindowRef",ref:V,"current-path":R(P),onChooseDir:I},null,8,["current-path"])],64)}}}))}}});
