import{_ as L}from"./index-BRQskX9P.js?v=1773287522785";import{_ as R}from"./index-lEMZglLp.js?v=1773287522785";import{k as f,O as g,$ as d,Z as C,a0 as k,S as l,R as $,r as c,c as m,a8 as I,a9 as O,X as U}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{I as j}from"./utils-fCmtiQ1f.js?v=1773287522785";import{i as E}from"./index-BTglIPU2.js?v=1773287522785";import{u as M}from"./useLoading-CZ2gSAW7.js?v=1773287522785";import{a9 as N}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./useTableData-BmkIKQ_R.js?v=1773287522785";const S={class:"h-500px"},i=f({__name:"log",props:{log:{}},setup(s){const t=s,{log:n}=g(t);return(a,e)=>{const o=R;return d(),C("div",S,[k(o,{log:l(n)},null,8,["log"])])}}}),H=f({__name:"index",props:{data:{}},setup(s){const{t}=$(),n=s,{data:a}=g(n),e=c(""),o=c("backup"),v=c(),b=[{key:"backup",label:t("Config.Backup.index_91"),component:i,data:{log:m(()=>e.value)}},{key:"restore",label:t("Config.Backup.index_92"),component:i,data:{log:m(()=>e.value)},show:a.value.restore_status!==0}],x=()=>{u()},{loading:y,setLoading:r}=M(),u=async()=>{try{r(!0);const{message:p}=await j({timestamp:a.value.timestamp,type:o.value});E(p)&&(e.value=p.result)}finally{r(!1)}};return u(),(p,_)=>{const h=L,B=N;return d(),I(B,{show:l(y)},{default:O(()=>[k(h,{class:"p-16px",value:l(o),"onUpdate:value":[_[0]||(_[0]=w=>U(o)?o.value=w:null),x],ref_key:"tabsRef",ref:v,options:b},null,8,["value"])]),_:1},8,["show"])}}});export{H as default};
