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