System.register(["./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BSBh0Le2.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BE9USJGi.js?v=1773287522785","./mail-legacy-BX4bHMTA.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./index-legacy-DGWsVoxN.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./useLoading-legacy-IiShPpjk.js?v=1773287522785"],(function(a,e){"use strict";var l,u,t,n,o,s,i,r,d,_,p,m,c,v,x,g,q,w,b,f;return{setters:[a=>{l=a._},a=>{u=a._},a=>{t=a._},a=>{n=a.al},a=>{o=a.k,s=a.R,i=a.r,r=a.e,d=a.$,_=a.a8,p=a.a9,m=a.a0,c=a.S,v=a._,x=a.ak},a=>{g=a.a1,q=a.b,w=a._,b=a.a8,f=a.a6},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 y=a,{getList:h}=y.data,{t:j}=s(),B=i(null),k=r({domain:"",password:"",random_str:"",maxnum:20,quota:5,quota_unit:"GB",quota_limit:1}),M=[{label:"GB",value:"GB"},{label:"MB",value:"MB"}],$={password:{required:!0,trigger:"blur",message:j("Config.Panel.index_67")}};return o({onConfirm:async()=>{await(B.value?.validate()),await n({domain:k.domain,password:k.password,random_str:k.random_str,maxnum:k.maxnum||20,quota:k.quota?k.quota+" "+k.quota_unit:"5 GB",quota_active:k.quota_limit}),h?.()}}),(a,n)=>{const o=g,s=u,i=q,r=w,y=b,h=f,j=l;return d(),_(j,{ref_key:"formRef",ref:B,model:c(k),rules:$,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(k).domain,"onUpdate:value":n[0]||(n[0]=a=>c(k).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(k).password,"onUpdate:value":n[1]||(n[1]=a=>c(k).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(k).random_str,"onUpdate:value":n[2]||(n[2]=a=>c(k).random_str=a),placeholder:""},null,8,["value"])])),_:1},8,["label"]),m(o,{label:a.$t("Mail.MailBox.index_33")},{default:p((()=>[m(r,{class:"w-280px!",min:1,"show-button":!1,value:c(k).maxnum,"onUpdate:value":n[3]||(n[3]=a=>c(k).maxnum=a)},null,8,["value"])])),_:1},8,["label"]),m(o,{label:"Quota limit"},{default:p((()=>[m(y,{"checked-value":1,"unchecked-value":0,value:c(k).quota_limit,"onUpdate:value":n[4]||(n[4]=a=>c(k).quota_limit=a)},null,8,["value"])])),_:1}),c(k).quota_limit?(d(),_(o,{key:0,label:a.$t("Mail.MailBox.index_3"),path:"quota"},{default:p((()=>[m(r,{value:c(k).quota,"onUpdate:value":n[5]||(n[5]=a=>c(k).quota=a),class:"w-170px",min:1,"show-button":!1,placeholder:""},null,8,["value"]),v("div",e,[m(h,{value:c(k).quota_unit,"onUpdate:value":n[6]||(n[6]=a=>c(k).quota_unit=a),options:M},null,8,["value"])])])),_:1},8,["label"])):x("",!0)])),_:1},8,["model"])}}}))}}}));
