import{_ as e}from"./index.js?v=1763625242172";import{n as t,a9 as a}from"./page_layout.js?v=1763625242172";import{f as s,B as i,g as o}from"./index39.js?v=1763625242172";import{C as r}from"./CalcVerify.js?v=1763625242172";import{k as l,i as n,r as m,av as p,R as f,a2 as u,a3 as c,U as v,X as d,V as j,aj as _}from"./vue.js?v=1763625242172";import{dg as w}from"./naive.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";import"./public.js?v=1763625242172";import"./soft2.js?v=1763625242172";import"./soft.js?v=1763625242172";import"./site.js?v=1763625242172";import"./file2.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang7.js?v=1763625242172";const y={class:"paste-confirm-wrapper"},h=l({name:"PasteConfirm",__name:"PasteConfirm",setup(l,{expose:h}){const C=n("fileStore"),{currentPath:x,fileList:k,fileCopyCache:g,waitForPaste:P}=C,V=m(!1),z=p("calcVerifyRef"),R=m([]),b=m([{key:"nm",title:"File name",ellipsis:{tooltip:!0}},{key:"sz",title:"Size",width:120,render:e=>t(e.sz)},{key:"mt",title:"Last edit time",width:160,render:e=>a(e.mt)}]);async function F(){var e;await(null==(e=z.value)?void 0:e.validate()),await i(1,x.value),P.value=!1,o(C)}return h({open:function(){V.value=!0,R.value=s(k.value,g.value)},close:function(){V.value=!1}}),(t,a)=>{const s=w,i=e;return f(),u(i,{show:j(V),"onUpdate:show":a[0]||(a[0]=e=>_(V)?V.value=e:null),width:480,title:"The files will be overwritten",footer:!0,onConfirm:F},{default:c((()=>[v("div",y,[d(s,{columns:j(b),data:j(R)},null,8,["columns","data"]),d(r,{ref_key:"calcVerifyRef",ref:z,class:"mt-10px"},null,512)])])),_:1},8,["show"])}}});export{h as default};
