System.register(["./page_layout-legacy.js?v=1763625242172","./index-legacy.js?v=1763625242172","./index-legacy107.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./public-legacy.js?v=1763625242172","./utils-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 t,l,u,i,n,s,c,p,o,_,d,f,b,k,r,g,y,m,x,h,v,j,C,B,w,$,D,U;return{setters:[e=>{t=e.n,l=e.a7,u=e.a8,i=e.a,n=e.c,s=e.T},e=>{c=e._},e=>{p=e._},e=>{o=e.k,_=e.af,d=e.R,f=e.a2,b=e.a3,k=e.X,r=e.V,g=e.j,y=e.a4,m=e.P,x=e.r,h=e.c,v=e.aj,j=e.U,C=e._},e=>{B=e.e,w=e.d},e=>{$=e.u,D=e.H},e=>{U=e.aC},null,null,null,null],execute:function(){const z=o({__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:i,type:n}=_(a);return(e,a)=>{const s=l,c=u;return d(),f(c,{column:1,bordered:"","label-placement":"left","label-style":{width:"150px"}},{default:b((()=>[k(s,{label:"backup"===r(n)?e.$t("Config.Backup.index_70"):e.$t("Config.Backup.index_71")},{default:b((()=>[g(y(r(i)?.done_time),1)])),_:1},8,["label"]),k(s,{label:"backup"===r(n)?e.$t("Config.Backup.index_72"):e.$t("Config.Backup.index_73")},{default:b((()=>[g(y(r(t)(Number(r(i)?.backup_file_size||0))),1)])),_:1},8,["label"]),k(s,{label:"backup"===r(n)?e.$t("Config.Backup.index_74"):e.$t("Config.Backup.index_75")},{default:b((()=>[g(y(r(i)?.backup_file),1)])),_:1},8,["label"]),k(s,{label:e.$t("Config.Backup.index_63")},{default:b((()=>[g(y(r(i)?.backup_file_sha256),1)])),_:1},8,["label"]),k(s,{label:"backup"===r(n)?e.$t("Config.Backup.index_76"):e.$t("Config.Backup.index_77")},{default:b((()=>[g(y(r(i)?.total_time?"backup"===r(n)?r(i).total_time+" s":r(i).restore_total_time+" s":"-"),1)])),_:1},8,["label"])])),_:1})}}}),H={class:"mt-16px text-right"};e("default",o({__name:"index",props:{data:{}},setup(e){const{t:t}=m(),l=C((()=>i((()=>a.import("./backup-info-legacy.js?v=1763625242172")),void 0))),u=$(),o=e,{data:R}=_(o),L=B(t("Config.Backup.index_89")),N=x({}),P=x("backup"),S=x(),T=[{key:"backup",label:t("Config.Backup.index_19"),component:z,data:{backupDetail:h((()=>N.value)),type:"backup"}},{key:"restore",label:t("Config.Backup.index_90"),component:z,data:{backupDetail:h((()=>N.value)),type:"restore"},show:0!==R.value.restore_status}],V=()=>{E()},X=()=>{L.show=!0,u.getData(N.value.data_status)},{loading:q,setLoading:A}=w(),E=async()=>{try{A(!0);const{message:e}=await D({timestamp:R.value.timestamp,type:P.value});n(e)&&(N.value=e)}finally{A(!1)}};return E(),(e,a)=>{const u=p,i=U,n=c,o=s;return d(),f(o,{class:"p-16px",show:r(q)},{default:b((()=>[k(u,{value:r(P),"onUpdate:value":[a[0]||(a[0]=e=>v(P)?P.value=e:null),V],ref_key:"tabsRef",ref:S,options:T},null,8,["value"]),j("div",H,[k(i,{type:"primary",class:"mr-16px",onClick:X},{default:b((()=>[g(y(r(t)("Config.Backup.index_88")),1)])),_:1})]),k(n,{show:r(L).show,"onUpdate:show":a[1]||(a[1]=e=>r(L).show=e),title:r(L).title,data:r(L).data,width:"750","min-height":250},{default:b((()=>[k(r(l),{class:"p-16px"})])),_:1},8,["show","title","data"])])),_:1},8,["show"])}}}))}}}));
