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