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