import{_ as a}from"./index107.js?v=1764830988434";import{_ as s}from"./index102.js?v=1764830988434";import{k as o,af as e,R as t,V as l,W as r,U as n,P as p,r as u,c as i,a2 as m,a3 as c,ak as d}from"./vue.js?v=1764830988434";import{I as f}from"./utils.js?v=1764830988434";import{T as _,d as g}from"./page_layout.js?v=1764830988434";import{d as v}from"./public.js?v=1764830988434";import"./naive.js?v=1764830988434";import"./common.js?v=1764830988434";import"./__commonjsHelpers__.js?v=1764830988434";import"./soft.js?v=1764830988434";import"./site.js?v=1764830988434";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 l(),t("div",j,[r(e,{log:n(p)},null,8,["log"])])}}}),x=o({__name:"index",props:{data:{}},setup(s){const{t:o}=p(),t=s,{data:j}=e(t),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!==j.value.restore_status}],w=()=>{R()},{loading:B,setLoading:C}=v(),R=async()=>{try{C(!0);const{message:a}=await f({timestamp:j.value.timestamp,type:y.value});g(a)&&(x.value=a.result)}finally{C(!1)}};return R(),(s,o)=>{const e=a,t=_;return l(),m(t,{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};
