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