System.register(["./index-legacy-DQdImDha.js?v=1773287522785","./index-legacy-Cv0QQQJ6.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./utils-legacy-D3bAeO-j.js?v=1773287522785","./useLoading-legacy-IiShPpjk.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./useTableData-legacy-3kc3lnk4.js?v=1773287522785"],(function(e,a){"use strict";var t,l,u,i,n,s,c,p,o,d,_,k,r,b,f,g,m,y,x,v,h,C,B,j,w,$,D,z;return{setters:[e=>{t=e.C,l=e.v,u=e.x,i=e.P,n=e.i},e=>{s=e._},e=>{c=e.k,p=e.O,o=e.$,d=e.a8,_=e.a9,k=e.a0,r=e.S,b=e.j,f=e.aa,g=e.R,m=e.r,y=e.c,x=e.X,v=e._,h=e.a3},e=>{C=e.aj,B=e.ak,j=e.B,w=e.a9},e=>{$=e.u,D=e.G},e=>{z=e.u},null,null],execute:function(){const L=c({__name:"detail",props:{backupDetail:{default:()=>({type:"backup",done_time:"-",backup_file_size:"-",backup_file:"-",backup_file_sha256:"-",total_time:"-"})},type:{}},setup(e){const a=e,{backupDetail:l,type:u}=p(a);return(e,a)=>{const i=C,n=B;return o(),d(n,{column:1,bordered:"","label-placement":"left","label-style":{width:"150px"}},{default:_((()=>[k(i,{label:"backup"===r(u)?e.$t("Config.Backup.index_70"):e.$t("Config.Backup.index_71")},{default:_((()=>[b(f(r(l)?.done_time),1)])),_:1},8,["label"]),k(i,{label:"backup"===r(u)?e.$t("Config.Backup.index_72"):e.$t("Config.Backup.index_73")},{default:_((()=>[b(f(r(t)(Number(r(l)?.backup_file_size||0))),1)])),_:1},8,["label"]),k(i,{label:"backup"===r(u)?e.$t("Config.Backup.index_74"):e.$t("Config.Backup.index_75")},{default:_((()=>[b(f(r(l)?.backup_file),1)])),_:1},8,["label"]),k(i,{label:e.$t("Config.Backup.index_63")},{default:_((()=>[b(f(r(l)?.backup_file_sha256),1)])),_:1},8,["label"]),k(i,{label:"backup"===r(u)?e.$t("Config.Backup.index_76"):e.$t("Config.Backup.index_77")},{default:_((()=>[b(f(r(l)?.total_time?"backup"===r(u)?r(l).total_time+" s":r(l).restore_total_time+" s":"-"),1)])),_:1},8,["label"])])),_:1})}}}),N={class:"mt-16px text-right"};e("default",c({__name:"index",props:{data:{}},setup(e){const{t:t}=g(),c=h((()=>i((()=>a.import("./backup-info-legacy-CWnH1sm2.js?v=1773287522785")),void 0))),C=$(),B=e,{data:R}=p(B),S=l(t("Config.Backup.index_89")),U=m({}),G=m("backup"),O=m(),P=[{key:"backup",label:t("Config.Backup.index_19"),component:L,data:{backupDetail:y((()=>U.value)),type:"backup"}},{key:"restore",label:t("Config.Backup.index_90"),component:L,data:{backupDetail:y((()=>U.value)),type:"restore"},show:0!==R.value.restore_status}],T=()=>{E()},X=()=>{S.show=!0,C.getData(U.value.data_status)},{loading:q,setLoading:A}=z(),E=async()=>{try{A(!0);const{message:e}=await D({timestamp:R.value.timestamp,type:G.value});n(e)&&(U.value=e)}finally{A(!1)}};return E(),(e,a)=>{const l=s,i=j,n=u,p=w;return o(),d(p,{class:"p-16px",show:r(q)},{default:_((()=>[k(l,{value:r(G),"onUpdate:value":[a[0]||(a[0]=e=>x(G)?G.value=e:null),T],ref_key:"tabsRef",ref:O,options:P},null,8,["value"]),v("div",N,[k(i,{type:"primary",class:"mr-16px",onClick:X},{default:_((()=>[b(f(r(t)("Config.Backup.index_88")),1)])),_:1})]),k(n,{show:r(S).show,"onUpdate:show":a[1]||(a[1]=e=>r(S).show=e),title:r(S).title,data:r(S).data,width:"750","min-height":250},{default:_((()=>[k(r(c),{class:"p-16px"})])),_:1},8,["show","title","data"])])),_:1},8,["show"])}}}))}}}));
