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