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