System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy2.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy16.js?v=1763625242172","./mail-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./index-legacy98.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172","./public-legacy.js?v=1763625242172"],(function(a,e){"use strict";var l,u,t,n,o,s,i,d,r,_,p,m,c,v,x,g,q,y,f,w;return{setters:[a=>{l=a._},a=>{u=a._},a=>{t=a._},a=>{n=a.aj},a=>{o=a.k,s=a.P,i=a.r,d=a.e,r=a.R,_=a.a2,p=a.a3,m=a.X,c=a.V,v=a.U,x=a.an},a=>{g=a.dP,q=a.au,y=a.df,f=a.dj,w=a.dV},null,null,null,null,null],execute:function(){const e={class:"w-100px ml-10px"};a("default",o({__name:"batch",props:{data:{}},setup(a,{expose:o}){const b=a,{getList:h}=b.data,{t:j}=s(),B=i(null),M=d({domain:"",password:"",random_str:"",maxnum:20,quota:5,quota_unit:"GB",quota_limit:1}),U=[{label:"GB",value:"GB"},{label:"MB",value:"MB"}],k={password:{required:!0,trigger:"blur",message:j("Config.Panel.index_67")}};return o({onConfirm:async()=>{await(B.value?.validate()),await n({domain:M.domain,password:M.password,random_str:M.random_str,maxnum:M.maxnum||20,quota:M.quota?M.quota+" "+M.quota_unit:"5 GB",quota_active:M.quota_limit}),h?.()}}),(a,n)=>{const o=g,s=u,i=q,d=y,b=f,h=w,j=l;return r(),_(j,{ref_key:"formRef",ref:B,model:c(M),rules:k,class:"p-20px"},{default:p((()=>[m(o,{label:a.$t("Layout.Sider.mail_3"),"show-require-mark":!0},{default:p((()=>[m(t,{class:"w-280px",value:c(M).domain,"onUpdate:value":n[0]||(n[0]=a=>c(M).domain=a),all:!1},null,8,["value"])])),_:1},8,["label"]),m(o,{label:a.$t("Config.Panel.index_66"),path:"password","show-require-mark":!0},{default:p((()=>[m(s,{class:"w-280px",value:c(M).password,"onUpdate:value":n[1]||(n[1]=a=>c(M).password=a),length:8,placeholder:a.$t("Config.Panel.index_67")},null,8,["value","placeholder"])])),_:1},8,["label"]),m(o,{label:a.$t("Mail.MailBox.index_32")},{default:p((()=>[m(i,{class:"w-280px!",value:c(M).random_str,"onUpdate:value":n[2]||(n[2]=a=>c(M).random_str=a),placeholder:""},null,8,["value"])])),_:1},8,["label"]),m(o,{label:a.$t("Mail.MailBox.index_33")},{default:p((()=>[m(d,{class:"w-280px!",min:1,"show-button":!1,value:c(M).maxnum,"onUpdate:value":n[3]||(n[3]=a=>c(M).maxnum=a)},null,8,["value"])])),_:1},8,["label"]),m(o,{label:"Quota limit"},{default:p((()=>[m(b,{"checked-value":1,"unchecked-value":0,value:c(M).quota_limit,"onUpdate:value":n[4]||(n[4]=a=>c(M).quota_limit=a)},null,8,["value"])])),_:1}),c(M).quota_limit?(r(),_(o,{key:0,label:a.$t("Mail.MailBox.index_3"),path:"quota"},{default:p((()=>[m(d,{value:c(M).quota,"onUpdate:value":n[5]||(n[5]=a=>c(M).quota=a),class:"w-170px",min:1,"show-button":!1,placeholder:""},null,8,["value"]),v("div",e,[m(h,{value:c(M).quota_unit,"onUpdate:value":n[6]||(n[6]=a=>c(M).quota_unit=a),options:U},null,8,["value"])])])),_:1},8,["label"])):x("",!0)])),_:1},8,["model"])}}}))}}}));
