import{_ as a}from"./index107.js?v=1763625242172";import{_ as s}from"./index104.js?v=1763625242172";import{k as o,af as e,R as t,S as l,X as r,V as n,P as p,r as u,c as i,a2 as m,a3 as c,aj as d}from"./vue.js?v=1763625242172";import{I as f}from"./utils.js?v=1763625242172";import{c as _,T as g}from"./page_layout.js?v=1763625242172";import{d as j}from"./public.js?v=1763625242172";import"./naive.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";import"./soft.js?v=1763625242172";import"./site.js?v=1763625242172";const v={class:"h-500px"},k=o({__name:"log",props:{log:{}},setup(a){const o=a,{log:p}=e(o);return(a,o)=>{const e=s;return t(),l("div",v,[r(e,{log:n(p)},null,8,["log"])])}}}),x=o({__name:"index",props:{data:{}},setup(s){const{t:o}=p(),l=s,{data:v}=e(l),x=u(""),y=u("backup"),b=u(),h=[{key:"backup",label:o("Config.Backup.index_91"),component:k,data:{log:i((()=>x.value))}},{key:"restore",label:o("Config.Backup.index_92"),component:k,data:{log:i((()=>x.value))},show:0!==v.value.restore_status}],w=()=>{R()},{loading:B,setLoading:C}=j(),R=async()=>{try{C(!0);const{message:a}=await f({timestamp:v.value.timestamp,type:y.value});_(a)&&(x.value=a.result)}finally{C(!1)}};return R(),(s,o)=>{const e=a,l=g;return t(),m(l,{show:n(B)},{default:c((()=>[r(e,{class:"p-16px",value:n(y),"onUpdate:value":[o[0]||(o[0]=a=>d(y)?y.value=a:null),w],ref_key:"tabsRef",ref:b,options:h},null,8,["value"])])),_:1},8,["show"])}}});export{x as default};
