System.register(["./index-legacy-DgZ0-E4f.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./useLoading-legacy-IiShPpjk.js?v=1773287522785","./backup-info-legacy-CWnH1sm2.js?v=1773287522785","./utils-legacy-D3bAeO-j.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-IFFYkvEY.js?v=1773287522785","./data-legacy-B9xdUIE5.js?v=1773287522785","./useTableData-legacy-3kc3lnk4.js?v=1773287522785"],(function(e,a){"use strict";var l,t,n,s,i,c,u,o,r,_,d,p,f,g,x,m,k,b,y,C,j,B,h,w,v,R,z,D,L;return{setters:[e=>{l=e._},e=>{t=e.C,n=e.l,s=e.ar,i=e.i},e=>{c=e.u},e=>{u=e.default},e=>{o=e.u,r=e.G,_=e.H},e=>{d=e.k,p=e.R,f=e.r,g=e.e,x=e.$,m=e.a8,k=e.a9,b=e.a0,y=e.S,C=e.j,j=e.aa,B=e.ak,h=e._},e=>{w=e.ak,v=e.aj,R=e.k,z=e.al,D=e.ad,L=e.a9},null,null,null,null],execute:function(){const a={class:"text-error"};e("default",d({__name:"index",props:{onRefresh:{type:Function},data:{}},setup(e,{expose:d}){const{t:S}=p(),F=e,G=o(),H=f({}),N=g({auto_exit:!1,force_restore:!1}),{loading:P,setLoading:T}=c(),U=async()=>{try{T(!0);const{message:e}=await r({timestamp:F.data.timestamp,type:"backup"});i(e)&&(H.value=e,G.getData(e.data_status))}finally{T(!1)}};return U(),d({onConfirm:async()=>new Promise((e=>{s({title:S("Config.Backup.index_68"),content:()=>b(D,{type:"warning"},{default:()=>[b("span",{class:"color-warning font-bold"},[C(" "),S("Config.Backup.index_69"),C(" ")])]}),onConfirm:async()=>{await _({timestamp:F.data.timestamp,auto_exit:N.auto_exit?1:0,force_restore:N.force_restore?1:0}),F.onRefresh(),e(!0)}})}))}),(e,s)=>{const i=v,c=w,o=z,r=R,_=n,d=l,p=L;return x(),m(p,{show:y(P),class:"p-16px"},{default:k((()=>[b(c,{class:"mb-16px",column:2,bordered:"","label-placement":"left","label-style":{width:"150px"}},{default:k((()=>[b(i,{label:y(S)("Config.Backup.index_59")},{default:k((()=>[C(j(F.data.backup_name),1)])),_:1},8,["label"]),b(i,{label:y(S)("Config.Backup.index_60")},{default:k((()=>[C(j(y(H)?.done_time),1)])),_:1},8,["label"]),b(i,{label:y(S)("Config.Backup.index_61")},{default:k((()=>[C(j(y(t)(Number(y(H)?.backup_file_size||0))),1)])),_:1},8,["label"]),b(i,{label:y(S)("Config.Backup.index_62")},{default:k((()=>[C(j(y(H)?.backup_file),1)])),_:1},8,["label"]),b(i,{label:y(S)("Config.Backup.index_63")},{default:k((()=>[C(j(y(H)?.backup_file_sha256),1)])),_:1},8,["label"])])),_:1}),b(u),b(r,{class:"flex-col! my-20px gap-16px!"},{default:k((()=>[B("",!0),b(o,{checked:y(N).force_restore,"onUpdate:checked":s[1]||(s[1]=e=>y(N).force_restore=e)},{default:k((()=>[C(j(y(S)("Config.Backup.index_64")),1)])),_:1},8,["checked"]),B("",!0)])),_:1}),b(d,{class:"mt-16px"},{default:k((()=>[h("li",null,[b(_,{name:"base-warning",class:"text-warning mr-4px",size:"16"}),h("span",null,[h("text",null,j(y(S)("Config.Backup.index_65"))+" "+j(y(t)(y(H).disk_use))+" "+j(y(S)("Config.Backup.index_66"))+" "+j(y(t)(y(H).disk_free)),1),b(_,{name:"base-refresh",class:"text-primary ml-4px",onClick:U})])]),h("li",a,j(y(S)("Config.Backup.index_67")),1)])),_:1})])),_:1},8,["show"])}}}))}}}));
