import{_ as a}from"./index102.js?v=1753954525509";import{_ as s}from"./index101.js?v=1753954525509";import{k as o,ad as e,U as t,V as l,Q as r,X as n,P as p,r as u,c as m,a1 as i,a2 as c,ah as d}from"./vue.js?v=1753954525509";import{I as _}from"./utils.js?v=1753954525509";import{c as f,O as g}from"./page_layout.js?v=1753954525509";import{c as v}from"./public.js?v=1753954525509";import"./naive.js?v=1753954525509";import"./common.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";import"./soft.js?v=1753954525509";const j={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",j,[r(e,{log:n(p)},null,8,["log"])])}}}),x=o({__name:"index",props:{data:{}},setup(s){const{t:o}=p(),l=s,{data:j}=e(l),x=u(""),y=u("backup"),b=u(),h=[{key:"backup",label:o("Config.Backup.index_91"),component:k,data:{log:m((()=>x.value))}},{key:"restore",label:o("Config.Backup.index_92"),component:k,data:{log:m((()=>x.value))},show:0!==j.value.restore_status}],w=()=>{U()},{loading:B,setLoading:C}=v(),U=async()=>{try{C(!0);const{message:a}=await _({timestamp:j.value.timestamp,type:y.value});f(a)&&(x.value=a.result)}finally{C(!1)}};return U(),(s,o)=>{const e=a,l=g;return t(),i(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};
