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