System.register(["./public-legacy.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1753954525509","./utils-legacy.js?v=1753954525509","./backup-info-legacy.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./common-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509","./soft-legacy.js?v=1753954525509"],(function(e,a){"use strict";var l,t,n,s,i,u,c,o,p,r,_,d,m,g,f,x,b,k,y,v,C,w,B,j,h,D,U,$,q,R,F,P;return{setters:[e=>{l=e.q,t=e._},e=>{n=e.n,s=e.T,i=e._,u=e.O},e=>{c=e._},e=>{o=e.u,p=e.B,r=e.C,_=e.D,d=e.E,m=e.F},e=>{g=e.default},e=>{f=e.k,x=e.P,b=e.$,k=e.r,y=e.e,v=e.U,C=e.a1,w=e.a2,B=e.Q,j=e.X,h=e.j,D=e.a3,U=e.al,$=e.W},e=>{q=e.c6,R=e.aq,F=e.cA,P=e.cG,e._},null,null,null],execute:function(){e("default",f({__name:"index",props:{onRefresh:{type:Function}},setup(e,{expose:a}){const{t:f}=x(),z=o(),{loading:A,backupData:E}=b(z),G=e,H=k(null),O=y({back_name:p(Date.now()),storage_type:"local",timestamp:null,auto_exit:!1}),Q={back_name:{required:!0,trigger:"input",message:f("Config.Backup.index_49")}},S=()=>{z.getData()};return z.getData(),a({onConfirm:async()=>(await(H.value?.validate()),new Promise((e=>{l({title:f("Config.Backup.index_57"),content:()=>B(q,{type:"warning"},{default:()=>[B("span",{class:"color-warning font-bold"},[h(" "),f("Config.Backup.index_58"),h(" ")])]}),onConfirm:async()=>{await m({backup_name:O.back_name,auto_exit:O.auto_exit?1:0,storage_type:O.storage_type,timestamp:O.timestamp?O.timestamp/1e3:0}),G.onRefresh(O.timestamp),e(!0)},onCancel:()=>{e(!1)}})})))}),(e,a)=>{const l=R,o=F,p=P,m=s,x=c,b=i,k=t,y=u;return v(),C(y,{show:j(A),class:"p-16px",description:j(f)("Config.Backup.index_56")},{default:w((()=>[B(x,{ref_key:"formRef",ref:H,model:j(O),rules:Q},{default:w((()=>[B(o,{label:e.$t("Config.Backup.index_3"),path:"back_name"},{default:w((()=>[B(l,{class:"w-600px!",value:j(O).back_name,"onUpdate:value":a[0]||(a[0]=e=>j(O).back_name=e),placeholder:j(f)("Config.Backup.index_49"),clearable:""},null,8,["value","placeholder"])])),_:1},8,["label"]),B(o,{label:e.$t("Config.Backup.index_50"),path:"type"},{default:w((()=>[B(p,{class:"w-600px",value:j(O).storage_type,"onUpdate:value":a[1]||(a[1]=e=>j(O).storage_type=e),options:j(r),"render-label":j(_)},null,8,["value","options","render-label"])])),_:1},8,["label"]),B(o,{label:e.$t("Config.Backup.index_51")},{default:w((()=>[B(m,{class:"w-600px",value:j(O).timestamp,"onUpdate:value":a[2]||(a[2]=e=>j(O).timestamp=e),type:"datetime",clearable:"","is-date-disabled":j(d),placeholder:j(f)("Config.Backup.index_52")},null,8,["value","is-date-disabled","placeholder"])])),_:1},8,["label"]),B(o,{label:"Backup Data"},{default:w((()=>[B(g,{class:"w-600px"})])),_:1}),U("",!0)])),_:1},8,["model"]),B(k,{class:"mt-16px"},{default:w((()=>[$("li",null,[B(b,{name:"base-warning",class:"text-warning mr-4px",size:"16"}),$("span",null,D(j(f)("Config.Backup.index_54"))+" "+D(j(n)(j(E).disk_use))+" "+D(j(f)("Config.Backup.index_55"))+" "+D(j(n)(j(E).disk_free)),1),B(b,{name:"base-refresh",class:"text-primary ml-4px",onClick:S})])])),_:1})])),_:1},8,["show","description"])}}}))}}}));
