System.register(["./public-legacy.js?v=1764830988434","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1764830988434","./page_layout-legacy.js?v=1764830988434","./config-legacy.js?v=1764830988434","./naive-legacy.js?v=1764830988434","./vue-legacy.js?v=1764830988434","./common-legacy.js?v=1764830988434","./__commonjsHelpers__-legacy.js?v=1764830988434"],function(e,a){"use strict";var t,l,s,n,u,o,i,d,c,p,_,r,x,f,m,v,y,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.dR,i=e.av,d=e.au,c=e.dZ,p=e.df,_=e.d5},e=>{r=e.k,x=e.e,f=e.r,m=e.R,v=e.V,y=e.W,g=e.a3,b=e.S,j=e.U,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,R=x({used:"0",size:0}),S=f("MB");return(()=>{const e=_(B,"quota.used",0);if(e>0){const a=s(e).split(" ");R.used=a[0],S.value=a[1]}R.size=_(B,"quota.size",0)})(),r({onConfirm:async({hide:e})=>{"site"!==U&&"ftp"!==U||await n({size:R.size,quota_type:U,path:_(B,"path","")}),"database"===U&&await u({size:R.size,db_name:_(B,"name","")}),M?.(),e()}}),(e,s)=>{const n=d,u=c,_=i,r=o,x=p,f=l,k=t;return v(),m("div",a,[y(f,{"label-width":"180"},{default:g(()=>[y(r,{label:e.$t("Component.Quota.index_6")},{default:g(()=>[b("div",Q,[y(_,null,{default:g(()=>[y(n,{value:j(R).used,"onUpdate:value":s[0]||(s[0]=e=>j(R).used=e),disabled:!0},null,8,["value"]),y(u,{class:"w-44px text-center"},{default:g(()=>[z(w(j(S)),1)]),_:1})]),_:1})])]),_:1},8,["label"]),y(r,{label:e.$t("Component.Quota.index_7")},{default:g(()=>[b("div",$,[y(_,null,{default:g(()=>[y(x,{value:j(R).size,"onUpdate:value":s[1]||(s[1]=e=>j(R).size=e),min:0,"show-button":!1},null,8,["value"]),y(u,{class:"w-44px text-center"},{default:g(()=>s[2]||(s[2]=[z("MB",-1)])),_:1,__:[2]})]),_:1})])]),_:1},8,["label"])]),_:1}),y(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)?(v(),m("li",q,w(e.$t("Component.Quota.index_10")),1)):C("",!0),b("li",null,w(e.$t("Component.Quota.index_11")),1)]),_:1})])}}}))}}});
