System.register(["./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy2.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy16.js?v=1753954525509","./mail-legacy2.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./index-legacy96.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./common-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509","./public-legacy.js?v=1753954525509"],(function(a,e){"use strict";var l,u,t,n,o,s,i,r,_,d,c,p,m,v,x,g,q,y,w,b;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,r=a.e,_=a.U,d=a.a1,c=a.a2,p=a.Q,m=a.X,v=a.W,x=a.al},a=>{g=a.cA,q=a.aq,y=a.c1,w=a.c5,b=a.cG},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 f=a,{getList:h}=f.data,{t:j}=s(),B=i(null),M=r({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,r=y,f=w,h=b,j=l;return _(),d(j,{ref_key:"formRef",ref:B,model:m(M),rules:k,class:"p-20px"},{default:c((()=>[p(o,{label:a.$t("Layout.Sider.mail_3"),"show-require-mark":!0},{default:c((()=>[p(t,{class:"w-280px",value:m(M).domain,"onUpdate:value":n[0]||(n[0]=a=>m(M).domain=a),all:!1},null,8,["value"])])),_:1},8,["label"]),p(o,{label:a.$t("Config.Panel.index_66"),path:"password","show-require-mark":!0},{default:c((()=>[p(s,{class:"w-280px",value:m(M).password,"onUpdate:value":n[1]||(n[1]=a=>m(M).password=a),length:8,placeholder:a.$t("Config.Panel.index_67")},null,8,["value","placeholder"])])),_:1},8,["label"]),p(o,{label:a.$t("Mail.MailBox.index_32")},{default:c((()=>[p(i,{class:"w-280px!",value:m(M).random_str,"onUpdate:value":n[2]||(n[2]=a=>m(M).random_str=a),placeholder:""},null,8,["value"])])),_:1},8,["label"]),p(o,{label:a.$t("Mail.MailBox.index_33")},{default:c((()=>[p(r,{class:"w-280px!",min:1,"show-button":!1,value:m(M).maxnum,"onUpdate:value":n[3]||(n[3]=a=>m(M).maxnum=a)},null,8,["value"])])),_:1},8,["label"]),p(o,{label:"Quota limit"},{default:c((()=>[p(f,{"checked-value":1,"unchecked-value":0,value:m(M).quota_limit,"onUpdate:value":n[4]||(n[4]=a=>m(M).quota_limit=a)},null,8,["value"])])),_:1}),m(M).quota_limit?(_(),d(o,{key:0,label:a.$t("Mail.MailBox.index_3"),path:"quota"},{default:c((()=>[p(r,{value:m(M).quota,"onUpdate:value":n[5]||(n[5]=a=>m(M).quota=a),class:"w-170px",min:1,"show-button":!1,placeholder:""},null,8,["value"]),v("div",e,[p(h,{value:m(M).quota_unit,"onUpdate:value":n[6]||(n[6]=a=>m(M).quota_unit=a),options:U},null,8,["value"])])])),_:1},8,["label"])):x("",!0)])),_:1},8,["model"])}}}))}}}));
