File: /www/server/panel/BTPanel/static/js/index-legacy334.js
!function(){function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var l={}.toString.call(e).slice(8,-1);return"Object"===l&&e.constructor&&(l=e.constructor.name),"Map"===l||"Set"===l?Array.from(e):"Arguments"===l||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?t(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,l=Array(t);n<t;n++)l[n]=e[n];return l}function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function u(n,r,a,o){var u=r&&r.prototype instanceof c?r:c,s=Object.create(u.prototype);return l(s,"_invoke",function(n,l,r){var a,o,u,c=0,s=r||[],f=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,o=0,u=e,d.n=n,i}};function p(n,l){for(o=n,u=l,t=0;!f&&c&&!r&&t<s.length;t++){var r,a=s[t],p=d.p,m=a[2];n>3?(r=m===l)&&(u=a[(o=a[4])?5:(o=3,3)],a[4]=a[5]=e):a[0]<=p&&((r=n<2&&p<a[1])?(o=0,d.v=l,d.n=a[1]):p<m&&(r=n<3||a[0]>l||l>m)&&(a[4]=n,a[5]=l,d.n=m,o=0))}if(r||n>1)return i;throw f=!0,l}return function(r,s,m){if(c>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,m),o=s,u=m;(t=o<2?e:u)||!f;){a||(o?o<3?(o>1&&(d.n=-1),p(o,u)):d.n=u:d.v=u);try{if(c=2,a){if(o||(r="next"),t=a[r]){if(!(t=t.call(a,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,o<2&&(o=0)}else 1===o&&(t=a.return)&&t.call(a),o<2&&(u=TypeError("The iterator does not provide a '"+r+"' method"),o=1);a=e}else if((t=(f=d.n<0)?u:n.call(l,d))!==i)break}catch(t){a=e,o=1,u=t}finally{c=1}}return{value:t,done:f}}}(n,a,o),!0),s}var i={};function c(){}function s(){}function f(){}t=Object.getPrototypeOf;var d=[][a]?t(t([][a]())):(l(t={},a,function(){return this}),t),p=f.prototype=c.prototype=Object.create(d);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,l(e,o,"GeneratorFunction")),e.prototype=Object.create(p),e}return s.prototype=f,l(p,"constructor",f),l(f,"constructor",s),s.displayName="GeneratorFunction",l(f,o,"GeneratorFunction"),l(p),l(p,o,"Generator"),l(p,a,function(){return this}),l(p,"toString",function(){return"[object Generator]"}),(n=function(){return{w:u,m:m}})()}function l(e,t,n,r){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}l=function(e,t,n,r){function o(t,n){l(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},l(e,t,n,r)}function r(e,t,n,l,r,a,o){try{var u=e[a](o),i=u.value}catch(e){return void n(e)}u.done?t(i):Promise.resolve(i).then(l,r)}System.register(["./utils-lib-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./index.vue_vue_type_script_setup_true_lang-legacy8.js?v=1777008528","./ssl-legacy.js?v=1777008528","./useMethod-legacy6.js?v=1777008528","./index-legacy68.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./index-legacy3.js?v=1777008528","./index-legacy119.js?v=1777008528","./index-legacy116.js?v=1777008528","./useStore-legacy7.js?v=1777008528","./index-legacy118.js?v=1777008528","./index-legacy217.js?v=1777008528","./useMethod-legacy10.js?v=1777008528","./useMethod-legacy11.js?v=1777008528","./header-nav-tools.vue_vue_type_script_setup_true_lang-legacy.js?v=1777008528"],function(t,l){"use strict";var a,o,u,i,c,s,f,d,p,m,y,v,_,b,g,x,h,w,V,j,P,I,S,k,U,A,D,O,C,T,E,F,G,H,N,q,z,M,B;return{setters:[function(e){a=e.W,o=e.c7,u=e.cP},function(e){i=e.c,c=e.aI,s=e.r,f=e.w,d=e.n,p=e.j,m=e.k,y=e.e,v=e.v,_=e.q,b=e.p,g=e.s,x=e.Q,h=e.x,w=e.F,V=e.B,j=e.C,P=e.J,I=e.K,S=e.y,k=e.T,U=e.ad,A=e.S,D=e.aB,O=e.am,C=e.an,T=e.U,E=e.D,F=e.ab},function(e){G=e._},function(e){H=e.k},function(e){N=e.d},function(e){q=e.M,z=e.i,M=e.a,B=e.g},null,null,null,null,null,null,null,null,null,null],execute:function(){var l={class:"p-20px"},R={class:"w-320px"},J={class:"w-320px"},K={class:"w-100px ml-20px"},Q={class:"!w-[320px] flex items-center"},W={class:"!p-[12px] bg-primary text-white leading-[2.4rem]"},$={class:"w-320px"},L={class:"el-select-dropdown__empty"},X={style:{float:"left"}},Y={class:"ml-[1rem]",style:{float:"right",color:"var(--el-base-tertiary)","font-size":"var(--el-font-size-base)"}},Z={key:0,class:"flex flex-wrap gap-[5px]"},ee={class:"text-tertiary ml-1"},te={style:{float:"left","max-width":"10ch","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}},ne={class:"ml-[.8rem]",style:{float:"right",color:"var(--el-base-tertiary)","font-size":"var(--el-font-size-base)"}};t("default",i({__name:"index",props:{compData:{}},emits:["close"],setup:function(t,i){var le=i.emit,re=q(),ae=c(re),oe=ae.form,ue=ae.formRef,ie=ae.propsData,ce=re.initForm,se=re.rules,fe=re.unitOptions,de=s(!1),pe=[{content:'<span class="text-dangerDark">提示A记录解析失败,请检查填写的A记录域名是否已解析到服务器IP</span>',isHtml:!0},{content:'<span class="text-dangerDark">在IP池中选择一个IP时,此IP将作为本域名发送邮件的出口IP</span>',isHtml:!0},{content:'<span class="text-dangerDark">在IP池中选择多个IP时,将开启IP轮换在多个IP中定时切换</span>',isHtml:!0},{content:"需要在DNS服务提供商控制台添加一条A记录",isHtml:!0},{content:"如果使用CloudFlare,添加记录时请选择[DNS only]",isHtml:!0}],me=[{label:"捕获不存在的邮箱",value:"none"},{label:"捕获所有邮箱",value:"all"}],ye=le,ve=t,_e=s([]),be=function(){var e,t=(e=n().m(function e(){var t,l,r;return n().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,H();case 1:t=e.v,l=t.data,r=l.data,_e.value=r;case 2:return e.a(2)}},e)}),function(){var t=this,n=arguments;return new Promise(function(l,a){var o=e.apply(t,n);function u(e){r(o,l,a,u,i,"next",e)}function i(e){r(o,l,a,u,i,"throw",e)}u(void 0)})});return function(){return t.apply(this,arguments)}}(),ge=function(){ye("close"),N()},xe=function(){ye("close"),M()},he=function(e){var t=z.value.find(function(t){return t.value===e});return t?t.ip:""};return f(de,function(e){e&&(B(),be())}),d(function(){ce(ve.compData)}),function(t,n){var r=k,i=U,c=A,s=a,f=D,d=o,H=O,N=C,q=T,M=E,B=G,le=F,re=u;return p(),m("div",l,[y(le,{ref_key:"formRef",ref:ue,model:b(oe),rules:b(se)},{default:v(function(){return[y(i,{label:"域名",prop:"domain"},{default:v(function(){return[_("div",R,[y(r,{modelValue:b(oe).domain,"onUpdate:modelValue":n[0]||(n[0]=function(e){return b(oe).domain=e}),disabled:b(ie).isEdit,placeholder:"请输入域名,例如:bt.cn"},null,8,["modelValue","disabled"])])]}),_:1}),y(i,{label:"A 记录"},{default:v(function(){return[_("div",J,[y(r,{modelValue:b(oe).a_record,"onUpdate:modelValue":n[1]||(n[1]=function(e){return b(oe).a_record=e}),disabled:b(ie).isEdit,placeholder:"请输入A记录,例如:mail.bt.cn"},null,8,["modelValue","disabled"])])]}),_:1}),y(i,{label:"域名配额"},{default:v(function(){return[y(c,{modelValue:b(oe).quota,"onUpdate:modelValue":n[2]||(n[2]=function(e){return b(oe).quota=e}),class:"!w-200px",min:0,controls:!1},null,8,["modelValue"]),_("div",K,[y(s,{modelValue:b(oe).quota_unit,"onUpdate:modelValue":n[3]||(n[3]=function(e){return b(oe).quota_unit=e}),options:b(fe)},null,8,["modelValue","options"])])]}),_:1}),y(i,{label:"最大邮箱数量",prop:"mailboxes"},{default:v(function(){return[y(c,{modelValue:b(oe).mailboxes,"onUpdate:modelValue":n[4]||(n[4]=function(e){return b(oe).mailboxes=e}),class:"!w-320px",min:0,controls:!1},null,8,["modelValue"])]}),_:1}),y(i,{label:"邮件捕获"},{default:v(function(){return[_("div",Q,[y(s,{class:"!w-[140px]",modelValue:b(oe).catch_type,"onUpdate:modelValue":n[5]||(n[5]=function(e){return b(oe).catch_type=e}),options:me},null,8,["modelValue"]),y(f,{placement:"top-start",width:"auto",trigger:"click","popper-class":"green-tips-popover !p-0 !border-none"},{reference:v(function(){return[y(r,{class:"!w-[170px] ml-10px",modelValue:b(oe).email,"onUpdate:modelValue":n[6]||(n[6]=function(e){return b(oe).email=e})},null,8,["modelValue"])]}),default:v(function(){return[_("div",W,g("none"===b(oe).catch_type?"捕获不存在的邮箱,转发到此邮箱":"捕获所有邮箱,转发到此邮箱"),1)]}),_:1})])]}),_:1}),y(B,{showConfig:b(de),"onUpdate:showConfig":n[10]||(n[10]=function(e){return x(de)?de.value=e:null})},{config:v(function(){return[y(i,{label:"DNS"},{default:v(function(){return[_("div",$,[y(N,{modelValue:b(oe).dns_id,"onUpdate:modelValue":n[7]||(n[7]=function(e){return b(oe).dns_id=e}),class:"!w-320px",filterable:"","default-first-option":"",size:"default",placeholder:"请选择验证类型"},{empty:v(function(){return[_("p",L,[n[12]||(n[12]=_("span",null,"暂无数据,请先添加DNS接口",-1)),y(d,{class:"!text-base",onClick:ge},{default:v(function(){return e(n[11]||(n[11]=[h(">>添加",-1)]))}),_:1})])]}),default:v(function(){return[(p(!0),m(w,null,V(b(_e),function(e){return p(),j(H,{key:e.id,label:e.dns_name,value:e.id},{default:v(function(){return[_("span",X,g(e.dns_name),1),_("span",Y,g(e.ps),1)]}),_:2},1032,["label","value"])}),128)),y(H,{label:"更多类型",value:"none",disabled:""},{default:v(function(){return[_("p",null,[n[14]||(n[14]=_("span",null,"更多类型,请添加DNS接口",-1)),y(d,{class:"!text-base",onClick:ge},{default:v(function(){return e(n[13]||(n[13]=[h(">>添加",-1)]))}),_:1})])]}),_:1})]}),_:1},8,["modelValue"])])]}),_:1}),P(y(i,{label:" "},{default:v(function(){return[y(q,{modelValue:b(oe).auto_create_record,"onUpdate:modelValue":n[8]||(n[8]=function(e){return b(oe).auto_create_record=e}),"true-label":1,"false-label":0},{default:v(function(){return e(n[15]||(n[15]=[h("一键解析",-1)]))}),_:1},8,["modelValue"])]}),_:1},512),[[I,b(oe).dns_id]]),y(i,{label:"IP池"},{default:v(function(){return[y(N,{class:"!w-[320px] bt-multiple-select",modelValue:b(oe).ip_tag,"onUpdate:modelValue":n[9]||(n[9]=function(e){return b(oe).ip_tag=e}),multiple:"",placeholder:"请选择IP"},{tag:v(function(){return[b(oe).ip_tag&&b(oe).ip_tag.length?(p(),m("div",Z,[(p(!0),m(w,null,V(b(oe).ip_tag,function(e){return p(),j(M,{type:"info",key:e,closable:"",class:"!w-auto inline-flex items-center",onClose:function(t){return function(e){oe.value.ip_tag=oe.value.ip_tag.filter(function(t){return t!==e})}(e)}},{default:v(function(){return[h(g(e)+" ",1),_("span",ee,"IP: "+g(he(e)),1)]}),_:2},1032,["onClose"])}),128))])):S("",!0)]}),default:v(function(){return[(p(!0),m(w,null,V(b(z),function(e){return p(),j(H,{key:e.value,label:e.label,value:e.value},{default:v(function(){return[_("span",te,g(e.label),1),_("span",ne,"IP: "+g(e.ip),1)]}),_:2},1032,["label","value"])}),128)),y(H,{label:"更多类型",value:"none",disabled:""},{default:v(function(){return[_("p",null,[n[17]||(n[17]=_("span",null,"更多IP,请前往IP池",-1)),y(d,{class:"!text-base",onClick:xe},{default:v(function(){return e(n[16]||(n[16]=[h(">>添加",-1)]))}),_:1})])]}),_:1})]}),_:1},8,["modelValue"])]}),_:1})]}),_:1},8,["showConfig"])]}),_:1},8,["model","rules"]),y(re,{class:"pl-20px",options:pe})])}}}))}}})}();