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