System.register(["./public-legacy.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./config-legacy3.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172"],(function(e,a){"use strict";var t,l,s,n,u,o,i,d,c,p,_,r,x,f,m,y,v,g,b,j,z,w,C;return{setters:[e=>{t=e._},e=>{l=e._},e=>{s=e.n},e=>{n=e.m,u=e.a},e=>{o=e.d5,i=e.au,d=e.dY,c=e.az,p=e.dP,_=e.df},e=>{r=e.k,x=e.e,f=e.r,m=e.R,y=e.S,v=e.X,g=e.a3,b=e.U,j=e.V,z=e.j,w=e.a4,C=e.an},null,null],execute:function(){const a={class:"px-20px py-24px"},Q={class:"w-160px"},$={class:"w-160px"},h={class:"text-error"},q={key:0};e("default",r({__name:"quota-config",props:{data:{}},setup(e,{expose:r}){const k=e,{type:U,info:B,callback:M}=k.data,S=x({used:"0",size:0}),H=f("MB");return(()=>{const e=o(B,"quota.used",0);if(e>0){const a=s(e).split(" ");S.used=a[0],H.value=a[1]}S.size=o(B,"quota.size",0)})(),r({onConfirm:async({hide:e})=>{"site"!==U&&"ftp"!==U||await n({size:S.size,quota_type:U,path:o(B,"path","")}),"database"===U&&await u({size:S.size,db_name:o(B,"name","")}),M?.(),e()}}),(e,s)=>{const n=i,u=d,o=c,r=p,x=_,f=l,k=t;return m(),y("div",a,[v(f,{"label-width":"180"},{default:g((()=>[v(r,{label:e.$t("Component.Quota.index_6")},{default:g((()=>[b("div",Q,[v(o,null,{default:g((()=>[v(n,{value:j(S).used,"onUpdate:value":s[0]||(s[0]=e=>j(S).used=e),disabled:!0},null,8,["value"]),v(u,{class:"w-44px text-center"},{default:g((()=>[z(w(j(H)),1)])),_:1})])),_:1})])])),_:1},8,["label"]),v(r,{label:e.$t("Component.Quota.index_7")},{default:g((()=>[b("div",$,[v(o,null,{default:g((()=>[v(x,{value:j(S).size,"onUpdate:value":s[1]||(s[1]=e=>j(S).size=e),min:0,"show-button":!1},null,8,["value"]),v(u,{class:"w-44px text-center"},{default:g((()=>s[2]||(s[2]=[z("MB")]))),_:1,__:[2]})])),_:1})])])),_:1},8,["label"])])),_:1}),v(k,{class:"mt-8px"},{default:g((()=>[b("li",h,w(e.$t("Component.Quota.index_8")),1),b("li",null,w(e.$t("Component.Quota.index_9")),1),"database"!==j(U)?(m(),y("li",q,w(e.$t("Component.Quota.index_10")),1)):C("",!0),b("li",null,w(e.$t("Component.Quota.index_11")),1)])),_:1})])}}}))}}}));
