System.register(["./CalcVerify-legacy-BbIFaSDS.js?v=1773287522785","./index-legacy-DQdImDha.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,a){"use strict";var l,t,s,n,i,c,o,r,u,d,f,v,p,y,g,m,h,w,_,b;return{setters:[e=>{l=e.C},e=>{t=e.m,s=e.as,n=e.c},e=>{i=e.w},e=>{c=e.B,o=e.q},e=>{r=e.k,u=e.i,d=e.r,f=e.$,v=e.a8,p=e.a9,y=e.S,g=e.Z,m=e._,h=e.a0,w=e.j,_=e.aa,b=e.X},null,null,null],execute:function(){var a=document.createElement("style");a.textContent=".del-modal-wrapper[data-v-9d32222b]{padding:20px;font-size:14px}.header-tit[data-v-9d32222b]{width:280px}\n/*$vite$:1*/",document.head.appendChild(a);const x={class:"header-tit single-line-ellipsis"},j={key:0,class:"del-modal-wrapper"},k={key:1,class:"del-modal-wrapper"},C={class:"text-[#f0a020]"},D={class:"modal-footer-btns"};e("default",n(r({__name:"Del",setup(e,{expose:a}){const n=u("fileStore"),{choosedKeys:r,fileList:F,fileRecycle:S,currentPath:$}=n,O=d(!1),R=d({}),q=d([]),P=d("Delete file"),B=d();async function E(){if(1==r.value.length){const e=F.value.find((e=>e.nm==r.value[0]));await async function(e){const a=t.loading("Files are being deleted. Please wait");try{O.value=!1,0==(await s.post("/files?action=DeleteFile",{path:e},{requestOptions:{isOriginalResult:!0}})).message.status?t.success("Files deleted successfully"):t.error("Files failed to delete")}catch(l){console.warn(l)}finally{a.close()}}(e.path)}r.value.length>1&&await async function(e,a){await s.post("/files?action=SetBatchData",{data:JSON.stringify(e),type:4,path:a},{requestOptions:{loading:"正在批量删除中，请稍候...",successMessage:!0}}),O.value=!1}(r.value,$.value)}async function I(){S.value||B.value.validate()?(await E(),i(n)):t.warning("Please enter the correct verification number")}return a({open(){if(O.value=!0,1==r.value.length){const e=F.value.find((e=>e.nm==r.value[0]));R.value=e,P.value=`Delete file [${R.value.nm}]`}else q.value=F.value.filter((e=>r.value.includes(e.nm)))},close(){O.value=!1}}),(e,a)=>{const t=c,s=o;return f(),v(s,{preset:"card",draggable:"","close-on-esc":!1,"mask-closable":!1,class:"w-170",segmented:"",show:y(O),"onUpdate:show":a[1]||(a[1]=e=>b(O)?O.value=e:null)},{header:p((()=>[m("div",x,_(y(P)),1)])),footer:p((()=>[m("div",D,[h(t,{onClick:a[0]||(a[0]=e=>O.value=!1)},{default:p((()=>a[5]||(a[5]=[w("cancel")]))),_:1,__:[5]}),h(t,{type:"primary",onClick:I},{default:p((()=>a[6]||(a[6]=[w("confirm")]))),_:1,__:[6]})])])),default:p((()=>[y(S)?(f(),g("div",k,[a[3]||(a[3]=w(" Confirm delete folder ")),m("span",C,_(y(R).path?`[${y(R).path}]`:""),1),a[4]||(a[4]=w(" ,it will move to recycle bin after delete, continue? "))])):(f(),g("div",j,[a[2]||(a[2]=m("div",{class:"text-red-5 mb-15px text-14px"}," Recycle bin is not currently open, delete file cannot be restored after, continue? ",-1)),h(l,{ref_key:"calcVertifyRef",ref:B},null,512)]))])),_:1},8,["show"])}}}),[["__scopeId","data-v-9d32222b"]]))}}}));
