import{c as e,s as a,g as l,q as s,a6 as t,H as o,v as n,x as r,y as i,N as m,B as d,e as u,C as p,z as c,A as f,F as g,D as b,I as h,ai as x,ab as _,a9 as y,S as v}from"./base-lib.js?v=1761009159";import{_ as V}from"./index105.js?v=1761009159";import{x as j,V as C,k,l as D}from"./utils-lib.js?v=1761009159";import{aN as w}from"./store.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./files.js?v=1761009159";import"./validator.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";import"./store2.js?v=1761009159";import"./index103.js?v=1761009159";const F={class:"p-20px"},R={key:0,class:"flex flex-col"},S={class:"flex items-center"},U={class:"leading-8 text-base"},z={key:0,class:"text-danger"},N={class:"flex items-center h-[4.8rem] mt-4 pl-[1.2rem] text-base bg-light"},T={class:"mx-[1rem]"},q=e({__name:"index",setup(e,{expose:q}){const A=w(),{compData:H,fileTabActiveData:L,sitesPath:B,overlayFormRef:I,overlayForm:P,tableLoading:$,quickRules:E,calcData:G,tableColumns:J,tableData:K}=a(A),{handleSelectionChange:M,watchType:O,onConfirm:Q,init:W,$reset:X}=A,Y=l(()=>L.value.param.path===B.value);return s(async()=>{W()}),t(()=>{X()}),q({onConfirm:Q}),(e,a)=>{const l=x,s=_,t=k,w=y,q=D,A=V,L=v,B=o("bt-loading"),Q=o("focus");return n(),r("div",F,["single"===i(H).type?(n(),m(w,{key:0,ref_key:"overlayFormRef",ref:I,model:i(P),rules:i(E)},{default:d(()=>[u(s,{label:"操作类型"},{default:d(()=>[u(l,{modelValue:i(P).type,"onUpdate:modelValue":a[0]||(a[0]=e=>i(P).type=e),label:"over",onChange:i(O)},{default:d(()=>a[4]||(a[4]=[p("覆盖文件",-1)])),_:1,__:[4]},8,["modelValue","onChange"]),u(l,{modelValue:i(P).type,"onUpdate:modelValue":a[1]||(a[1]=e=>i(P).type=e),label:"rename",onChange:i(O)},{default:d(()=>a[5]||(a[5]=[p("重命名文件",-1)])),_:1,__:[5]},8,["modelValue","onChange"])]),_:1}),u(s,{label:"文件名",prop:"filename"},{default:d(()=>[u(t,{modelValue:i(P).filename,"onUpdate:modelValue":a[2]||(a[2]=e=>i(P).filename=e),disabled:"over"===i(P).type,width:"24rem"},null,8,["modelValue","disabled"])]),_:1}),u(s,{label:"大小"},{default:d(()=>[c("span",null,f(i(P).is_dir?"--":i(j)(i(P).size)),1)]),_:1}),u(s,{label:"最后修改时间"},{default:d(()=>[p(f(i(C)(Number(i(P).mtime))),1)]),_:1})]),_:1},8,["model","rules"])):(n(),r(g,{key:1},["batch"===i(H).type?(n(),r("div",R,[c("div",S,[a[9]||(a[9]=c("i",{class:"svgtofont-el-warning text-warning text-titleLarge mr-8px"},null,-1)),c("span",U,[a[6]||(a[6]=p("以下目标文件名称与源文件相同，点击确定后勾选文件将跳过，",-1)),a[7]||(a[7]=c("span",{class:"text-danger"}," 未勾选文件将会被覆盖，",-1)),i(Y)?(n(),r("span",z," 当前目录为建站目录，")):b("",!0),a[8]||(a[8]=p(" 请确认后继续",-1))])]),u(A,null,{"header-left":d(()=>a[10]||(a[10]=[])),"header-right":d(()=>a[11]||(a[11]=[])),content:d(()=>[h(u(q,{onSelectionChange:i(M),column:i(J),data:i(K),ref:"overlayTableRef","max-height":300},null,8,["onSelectionChange","column","data"]),[[B,i($)]])]),"footer-left":d(()=>a[12]||(a[12]=[])),"footer-right":d(()=>a[13]||(a[13]=[])),popup:d(()=>a[14]||(a[14]=[])),_:1}),c("div",null,[c("div",N,[a[15]||(a[15]=c("span",null,"计算结果：",-1)),c("span",T,f(i(G).addend1)+" + "+f(i(G).addend2),1),a[16]||(a[16]=c("span",{class:"mr-[1rem]"},"=",-1)),h(u(L,{modelValue:i(G).sum,"onUpdate:modelValue":a[3]||(a[3]=e=>i(G).sum=e),autofocus:"true","controls-position":"right",size:"small"},null,8,["modelValue"]),[[Q]])])])])):b("",!0)],64))])}}});export{q as default};
