System.register(["./index-legacy-DgZ0-E4f.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./config-legacy-Consn3eI.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785"],(function(e,a){"use strict";var t,l,s,n,u,i,o,d,c,p,_,r,x,f,v,m,y,b,g,j,z,w,C;return{setters:[e=>{t=e._},e=>{l=e._},e=>{s=e.C},e=>{n=e.m,u=e.a},e=>{i=e.a1,o=e.au,d=e.b,c=e.av,p=e._,_=e.g},e=>{r=e.k,x=e.e,f=e.r,v=e.$,m=e.Z,y=e.a0,b=e.a9,g=e._,j=e.S,z=e.j,w=e.aa,C=e.ak},null],execute:function(){const a={class:"px-20px py-24px"},$={class:"w-160px"},Q={class:"w-160px"},h={class:"text-error"},k={key:0};e("default",r({__name:"quota-config",props:{data:{}},setup(e,{expose:r}){const q=e,{type:B,info:M,callback:S}=q.data,U=x({used:"0",size:0}),Z=f("MB");return(()=>{const e=_(M,"quota.used",0);if(e>0){const a=s(e).split(" ");U.used=a[0],Z.value=a[1]}U.size=_(M,"quota.size",0)})(),r({onConfirm:async({hide:e})=>{"site"!==B&&"ftp"!==B||await n({size:U.size,quota_type:B,path:_(M,"path","")}),"database"===B&&await u({size:U.size,db_name:_(M,"name","")}),S?.(),e()}}),(e,s)=>{const n=d,u=c,_=o,r=i,x=p,f=l,q=t;return v(),m("div",a,[y(f,{"label-width":"180"},{default:b((()=>[y(r,{label:e.$t("Component.Quota.index_6")},{default:b((()=>[g("div",$,[y(_,null,{default:b((()=>[y(n,{value:j(U).used,"onUpdate:value":s[0]||(s[0]=e=>j(U).used=e),disabled:!0},null,8,["value"]),y(u,{class:"w-44px text-center"},{default:b((()=>[z(w(j(Z)),1)])),_:1})])),_:1})])])),_:1},8,["label"]),y(r,{label:e.$t("Component.Quota.index_7")},{default:b((()=>[g("div",Q,[y(_,null,{default:b((()=>[y(x,{value:j(U).size,"onUpdate:value":s[1]||(s[1]=e=>j(U).size=e),min:0,"show-button":!1},null,8,["value"]),y(u,{class:"w-44px text-center"},{default:b((()=>s[2]||(s[2]=[z("MB")]))),_:1,__:[2]})])),_:1})])])),_:1},8,["label"])])),_:1}),y(q,{class:"mt-8px"},{default:b((()=>[g("li",h,w(e.$t("Component.Quota.index_8")),1),g("li",null,w(e.$t("Component.Quota.index_9")),1),"database"!==j(B)?(v(),m("li",k,w(e.$t("Component.Quota.index_10")),1)):C("",!0),g("li",null,w(e.$t("Component.Quota.index_11")),1)])),_:1})])}}}))}}}));
