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","./public-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-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,a){"use strict";var l,t,n,i,s,u,o,r,f,c,m,p,d,v,y,_,g,w,j,C,b,h,x,$,P,T,z;return{setters:[e=>{l=e._},e=>{t=e._},e=>{n=e.n,i=e.a9},e=>{s=e.f,u=e.c,o=e.a,r=e.g},e=>{f=e.a},e=>{c=e.k,m=e.P,p=e.i,d=e.r,v=e.e,y=e.R,_=e.a2,g=e.a3,w=e.U,j=e.X,C=e.V,b=e.j,h=e.a4,x=e.aj},e=>{$=e.dU,P=e.dT,T=e.dP,z=e.au},null,null,null,null,null,null,null],execute:function(){const a={class:"p-20px"},U={class:"w-240px"};e("default",c({name:"PasteSingleConfirm",__name:"PasteSingleConfirm",setup(e,{expose:c}){const{t:F}=m(),S=p("fileStore"),{currentPath:k,fileList:M,fileCopyCache:H,copiedFile:L,waitForPaste:N}=S,R=d(!1),V=v({type:"rename",name:"",size:0,modifyTime:""}),X=e=>{const a=s(M.value,H.value);a.length&&("overwrite"===e?V.name=a[0].nm:"rename"===e&&(V.name=q(a[0].nm)))},q=e=>e.replace(/\.(?=[^.]+$)/," - copy.");function A(){R.value=!1}async function B(){await o(L.value.path,k.value+"/"+V.name),N.value=!1,r(S)}async function D(){if("rename"==V.type)return await u(k.value,V.name)?f({title:F("file.pasteConfirm.overwriteTitle"),content:F("file.pasteConfirm.overwriteMessage",[V.name]),onConfirm:async({hide:e})=>{await B(),e(),A()}}):(await B(),A()),!1;await B()}return c({open:function(){R.value=!0;const e=s(M.value,H.value);1==e.length&&(V.type="rename",V.name=q(e[0].nm),V.size=e[0].sz,V.modifyTime=i(e[0].mt))},close:A}),(e,s)=>{const u=$,o=P,r=T,f=z,c=t,m=l;return y(),_(m,{show:C(R),"onUpdate:show":s[2]||(s[2]=e=>x(R)?R.value=e:null),width:440,title:e.$t("file.pasteConfirm.title"),footer:!0,onConfirm:D},{default:g((()=>[w("div",a,[j(c,null,{default:g((()=>[j(r,{label:e.$t("file.pasteConfirm.operationType")},{default:g((()=>[j(o,{value:C(V).type,"onUpdate:value":[s[0]||(s[0]=e=>C(V).type=e),X]},{default:g((()=>[j(u,{value:"overwrite"},{default:g((()=>[b(h(e.$t("file.pasteConfirm.overwriteFile")),1)])),_:1}),j(u,{value:"rename"},{default:g((()=>[b(h(e.$t("file.pasteConfirm.renameFile")),1)])),_:1})])),_:1},8,["value"])])),_:1},8,["label"]),j(r,{label:e.$t("file.pasteConfirm.fileName")},{default:g((()=>[w("div",U,[j(f,{value:C(V).name,"onUpdate:value":s[1]||(s[1]=e=>C(V).name=e),disabled:"overwrite"==C(V).type,placeholder:""},null,8,["value","disabled"])])])),_:1},8,["label"]),j(r,{label:e.$t("file.pasteConfirm.size")},{default:g((()=>[w("span",null,h(C(n)(C(V).size)),1)])),_:1},8,["label"]),j(r,{label:e.$t("file.pasteConfirm.lastModified"),"show-feedback":!1},{default:g((()=>[w("span",null,h(C(i)(C(V).modifyTime)),1)])),_:1},8,["label"])])),_:1})])])),_:1},8,["show","title"])}}}))}}}));
