System.register(["./public-legacy.js?v=1764233927359","./page_layout-legacy.js?v=1764233927359","./backup-info-legacy.js?v=1764233927359","./utils-legacy.js?v=1764233927359","./vue-legacy.js?v=1764233927359","./naive-legacy.js?v=1764233927359","./common-legacy.js?v=1764233927359","./__commonjsHelpers__-legacy.js?v=1764233927359","./soft-legacy.js?v=1764233927359","./site-legacy.js?v=1764233927359"],function(e,a){"use strict";var l,t,n,s,c,i,o,u,r,p,_,d,f,g,m,x,b,y,k,B,C,j,h,w,v,z,G,H,P;return{setters:[e=>{l=e.d,t=e._,n=e.p},e=>{s=e.a8,c=e.a7,i=e.n,o=e._,u=e.T,r=e.d},e=>{p=e.default},e=>{_=e.u,d=e.G,f=e.H},e=>{g=e.k,m=e.P,x=e.r,b=e.e,y=e.a2,k=e.V,B=e.a3,C=e.W,j=e.U,h=e.j,w=e.a4,v=e.an,z=e.S},e=>{G=e.da,H=e._,P=e.dk},null,null,null,null],execute:function(){const a={class:"text-error"};e("default",g({__name:"index",props:{onRefresh:{type:Function},data:{}},setup(e,{expose:g}){const{t:R}=m(),S=e,U=_(),D=x(),F=b({auto_exit:!1,force_restore:!1}),{loading:L,setLoading:M}=l();return(async()=>{try{M(!0);const{message:e}=await d({timestamp:S.data.timestamp,type:"backup"});r(e)&&(D.value=e,U.getData(e.data_status))}finally{M(!1)}})(),g({onConfirm:async()=>new Promise(e=>{n({title:R("Config.Backup.index_68"),content:()=>C(P,{type:"warning"},{default:()=>[C("span",{class:"color-warning font-bold"},[h(" "),R("Config.Backup.index_69"),h(" ")])]}),onConfirm:async()=>{await f({timestamp:S.data.timestamp,auto_exit:F.auto_exit?1:0,force_restore:F.force_restore?1:0}),S.onRefresh(),e(!0)}})})}),(e,l)=>{const n=c,r=s,_=H,d=G,f=o,g=t,m=u;return k(),y(m,{show:j(L),class:"p-16px"},{default:B(()=>[C(r,{class:"mb-16px",column:2,bordered:"","label-placement":"left","label-style":{width:"150px"}},{default:B(()=>[C(n,{label:j(R)("Config.Backup.index_59")},{default:B(()=>[h(w(S.data.backup_name),1)]),_:1},8,["label"]),C(n,{label:j(R)("Config.Backup.index_60")},{default:B(()=>[h(w(j(D)?.done_time),1)]),_:1},8,["label"]),C(n,{label:j(R)("Config.Backup.index_61")},{default:B(()=>[h(w(j(i)(Number(j(D)?.backup_file_size||0))),1)]),_:1},8,["label"]),C(n,{label:j(R)("Config.Backup.index_62")},{default:B(()=>[h(w(j(D)?.backup_file),1)]),_:1},8,["label"]),C(n,{label:j(R)("Config.Backup.index_63")},{default:B(()=>[h(w(j(D)?.backup_file_sha256),1)]),_:1},8,["label"])]),_:1}),C(p),C(d,{class:"flex-col! my-20px gap-16px!"},{default:B(()=>[v("",!0),C(_,{checked:j(F).force_restore,"onUpdate:checked":l[1]||(l[1]=e=>j(F).force_restore=e)},{default:B(()=>[h(w(j(R)("Config.Backup.index_64")),1)]),_:1},8,["checked"]),v("",!0)]),_:1}),C(g,{class:"mt-16px"},{default:B(()=>[z("li",null,[C(f,{name:"base-warning",class:"text-warning mr-4px",size:"16"}),z("span",null,[z("text",null,w(j(R)("Config.Backup.index_65"))+" 252.97 MB "+w(j(R)("Config.Backup.index_66"))+" 16.97 GB",1),C(f,{name:"base-refresh",class:"text-primary ml-4px"})])]),z("li",a,w(j(R)("Config.Backup.index_67")),1)]),_:1})]),_:1},8,["show"])}}}))}}});
