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