import{x as k,C as x,w as P}from"./index-BTglIPU2.js?v=1773287522785";import{A as V,S as B,w as F}from"./FileIcon-eIHDRaxH.js?v=1773287522785";import{C as R}from"./CalcVerify-DzxM0pDk.js?v=1773287522785";import{k as b,i as S,r as a,al as T,$ as g,a8 as z,a9 as L,_ as N,a0 as r,S as s,X as U}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{at as j}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./soft-Cjyfamvm.js?v=1773287522785";import"./copy-D-wIKr0q.js?v=1773287522785";const A={class:"paste-confirm-wrapper"},K=b({name:"PasteConfirm",__name:"PasteConfirm",setup(D,{expose:c}){const o=S("fileStore"),{currentPath:f,fileList:m,fileCopyCache:u,waitForPaste:p}=o,t=a(!1),i=T("calcVerifyRef"),n=a([]),_=a([{key:"nm",title:"File name",ellipsis:{tooltip:!0}},{key:"sz",title:"Size",width:120,render:e=>x(e.sz)},{key:"mt",title:"Last edit time",width:160,render:e=>P(e.mt)}]);function d(){t.value=!0,n.value=V(m.value,u.value)}function w(){t.value=!1}async function h(){var e;await((e=i.value)==null?void 0:e.validate()),await B(1,f.value),p.value=!1,F(o)}return c({open:d,close:w}),(e,l)=>{const v=j,y=k;return g(),z(y,{show:s(t),"onUpdate:show":l[0]||(l[0]=C=>U(t)?t.value=C:null),width:480,title:"The files will be overwritten",footer:!0,onConfirm:h},{default:L(()=>[N("div",A,[r(v,{columns:s(_),data:s(n)},null,8,["columns","data"]),r(R,{ref_key:"calcVerifyRef",ref:i,class:"mt-10px"},null,512)])]),_:1},8,["show"])}}});export{K as default};