import{c as e,r as l,k as a,l as s,p as t,q as r,y as n,v as o,e as m,x as p,M as i,z as c,Q as u,A as f}from"./base-lib.js?v=1761009159";import{k as d}from"./utils-lib.js?v=1761009159";import{a as x}from"./column.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index107.js?v=1761009159";const v={key:0,class:"p-2rem pl-4rem leading-[24px] text-[1.4rem]"},b={key:1,class:"p-2rem"},y={class:"flex items-center"},_={class:"bg-[#f6f8f8] footer-btn flex items-center justify-end p-[12px] w-full"},g=e({__name:"confirm-back",props:{compData:{default:()=>({})}},emits:["close"],setup(e,{expose:g,emit:k}){const j=e,h=l([x(),{label:"数据库名称",prop:"name"},{label:"大小",prop:"size"}]),D=l([]),w=l(!1),z=k,C=l({size:0,current:0}),V=l(!1),q=()=>{V.value?A():w.value?V.value=!0:A()},A=()=>{try{z("close"),j.compData.refresh&&j.compData.refresh()}catch(e){}},H=()=>{};return g({onConfirm:A}),(e,l)=>{const x=u,g=d,k=f;return a(),s("div",null,[t(V)?c("",!0):(a(),s("div",v,[r("p",null,[l[2]||(l[2]=r("b",null,"站点名称：",-1)),n(o(e.compData.name),1)]),l[5]||(l[5]=r("p",null,[r("b",null,"网站备份大小："),n("xxx")],-1)),r("p",null,[l[3]||(l[3]=r("b",null,"站点目录：",-1)),n(o(e.compData.path),1)]),m(x,{modelValue:t(w),"onUpdate:modelValue":l[0]||(l[0]=e=>i(w)?w.value=e:null)},{default:p((()=>l[4]||(l[4]=[n("数据库")]))),_:1},8,["modelValue"])])),t(V)?(a(),s("div",b,[l[6]||(l[6]=r("div",{class:"flex items-center"},[r("i",{class:"text-warning svgtofont-el-warning-filled !text-[3.6rem]"}),r("span",{class:"text-[1.4rem] ml-[8px] leading-10"},"在备份数据库时，对应网站将不可访问，是否继续操作？")],-1)),m(g,{column:t(h),data:t(D),class:"my-[1.2rem]"},null,8,["column","data"]),r("span",y,[n("备份后文件大小："+o(t(C).size)+"，当前磁盘剩余空间："+o(t(C).current)+" ",1),r("i",{class:"text-primary text-1.4rem svgtofont-el-refresh cursor-pointer ml-4px",onClick:H})])])):c("",!0),r("div",_,[m(k,{type:"warning",onClick:l[1]||(l[1]=e=>z("close"))},{default:p((()=>l[7]||(l[7]=[n("取消")]))),_:1}),m(k,{type:"primary",onClick:q},{default:p((()=>l[8]||(l[8]=[n(" 确定")]))),_:1})])])}}});export{g as default};
