← Back
Editing: index-legacy328.js
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var n,r={},o=Object.prototype,a=o.hasOwnProperty,l=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(n){f=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var o=e&&e.prototype instanceof _?e:_,a=Object.create(o.prototype),i=new N(r||[]);return l(a,"_invoke",{value:I(t,n,i)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=p;var h="suspendedStart",y="suspendedYield",m="executing",v="completed",g={};function _(){}function x(){}function b(){}var w={};f(w,u,(function(){return this}));var j=Object.getPrototypeOf,V=j&&j(j(U([])));V&&V!==o&&a.call(V,u)&&(w=V);var L=b.prototype=_.prototype=Object.create(w);function E(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function P(e,n){function r(o,l,i,u){var c=d(e[o],e,l);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==t(f)&&a.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,i,u)}),(function(t){r("throw",t,i,u)})):n.resolve(f).then((function(t){s.value=t,i(s)}),(function(t){return r("throw",t,i,u)}))}u(c.arg)}var o;l(this,"_invoke",{value:function(t,e){function a(){return new n((function(n,o){r(t,e,n,o)}))}return o=o?o.then(a,a):a()}})}function I(t,e,r){var o=h;return function(a,l){if(o===m)throw Error("Generator is already running");if(o===v){if("throw"===a)throw l;return{value:n,done:!0}}for(r.method=a,r.arg=l;;){var i=r.delegate;if(i){var u=S(i,r);if(u){if(u===g)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var c=d(t,e,r);if("normal"===c.type){if(o=r.done?v:y,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=v,r.method="throw",r.arg=c.arg)}}}function S(t,e){var r=e.method,o=t.iterator[r];if(o===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=n,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=d(o,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,g;var l=a.arg;return l?l.done?(e[t.resultName]=l.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,g):l:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function U(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,l=function t(){for(;++o<e.length;)if(a.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=n,t.done=!0,t};return l.next=l}}throw new TypeError(t(e)+" is not iterable")}return x.prototype=b,l(L,"constructor",{value:b,configurable:!0}),l(b,"constructor",{value:x,configurable:!0}),x.displayName=f(b,s,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===x||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,f(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},r.awrap=function(t){return{__await:t}},E(P.prototype),f(P.prototype,c,(function(){return this})),r.AsyncIterator=P,r.async=function(t,e,n,o,a){void 0===a&&(a=Promise);var l=new P(p(t,e,n,o),a);return r.isGeneratorFunction(e)?l:l.next().then((function(t){return t.done?t.value:l.next()}))},E(L),f(L,s,"Generator"),f(L,u,(function(){return this})),f(L,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},r.values=U,N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&a.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return i.type="throw",i.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var l=this.tryEntries[o],i=l.completion;if("root"===l.tryLoc)return r("end");if(l.tryLoc<=this.prev){var u=a.call(l,"catchLoc"),c=a.call(l,"finallyLoc");if(u&&c){if(this.prev<l.catchLoc)return r(l.catchLoc,!0);if(this.prev<l.finallyLoc)return r(l.finallyLoc)}else if(u){if(this.prev<l.catchLoc)return r(l.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return r(l.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var l=o?o.completion:{};return l.type=t,l.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(l)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:U(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),g}},r}function n(t,e,n,r,o,a,l){try{var i=t[a](l),u=i.value}catch(t){return void n(t)}i.done?e(u):Promise.resolve(u).then(r,o)}System.register(["./utils-lib-legacy.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./index.vue_vue_type_script_setup_true_lang-legacy13.js?v=VERSION_NUMBER","./ssl-legacy.js?v=VERSION_NUMBER","./useMethod-legacy12.js?v=VERSION_NUMBER","./index-legacy56.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./index-legacy104.js?v=VERSION_NUMBER","./useStore-legacy10.js?v=VERSION_NUMBER","./useMethod-legacy10.js?v=VERSION_NUMBER","./index-legacy103.js?v=VERSION_NUMBER","./index-legacy112.js?v=VERSION_NUMBER","./useMethod-legacy7.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER","./useMethod-legacy9.js?v=VERSION_NUMBER","./header-nav-tools.vue_vue_type_script_setup_true_lang-legacy.js?v=VERSION_NUMBER"],(function(t,r){"use strict";var o,a,l,i,u,c,s,f,p,d,h,y,m,v,g,_,x,b,w,j,V,L,E,P,I,S,k,O,N,U,C,A,D,F,G,H,T,M,q;return{setters:[function(t){o=t.ag,a=t.c,l=t.W},function(t){i=t.c,u=t.s,c=t.r,s=t.w,f=t.n,p=t.q,d=t.v,h=t.e,y=t.A,m=t.y,v=t.x,g=t.z,_=t.P,x=t.B,b=t.F,w=t.a_,j=t.H,V=t.I,L=t.C,E=t.S,P=t.a9,I=t.R,S=t.ax,k=t.ai,O=t.aj,N=t.T,U=t.a7,C=t.M,A=t.ba},function(t){D=t._},function(t){F=t.y},function(t){G=t.d},function(t){H=t.M,T=t.i,M=t.a,q=t.g},null,null,null,null,null,null,null,null,null,null,null],execute:function(){var r={class:"p-20px"},z={class:"w-320px"},R={class:"w-320px"},Y={class:"w-100px ml-20px"},B={class:"!w-[320px] flex items-center"},W={class:"!p-[12px] bg-[#20a53a] text-white leading-[2.4rem]"},J={class:"w-320px"},K={class:"el-select-dropdown__empty"},Q={style:{float:"left"}},X={class:"ml-[1rem]",style:{float:"right",color:"#8492a6","font-size":"13px"}},Z={key:0,class:"flex flex-wrap gap-[5px]"},$={class:"text-[#8492a6] ml-1"},tt={style:{float:"left","max-width":"10ch","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}},et={class:"ml-[.8rem]",style:{float:"right",color:"#8492a6","font-size":"13px"}};t("default",i({__name:"index",props:{compData:{}},emits:["close"],setup:function(t,i){var nt=i.emit,rt=H(),ot=u(rt),at=ot.form,lt=ot.formRef,it=ot.propsData,ut=rt.initForm,ct=rt.rules,st=rt.unitOptions,ft=c(!1),pt=[{content:'<span class="text-[#dc2626]">提示A记录解析失败,请检查填写的A记录域名是否已解析到服务器IP</span>',isHtml:!0},{content:'<span class="text-[#dc2626]">在IP池中选择一个IP时,此IP将作为本域名发送邮件的出口IP</span>',isHtml:!0},{content:'<span class="text-[#dc2626]">在IP池中选择多个IP时,将开启IP轮换在多个IP中定时切换</span>',isHtml:!0},{content:"需要在DNS服务提供商控制台添加一条A记录",isHtml:!0},{content:"如果使用CloudFlare,添加记录时请选择[DNS only]",isHtml:!0}],dt=[{label:"捕获不存在的邮箱",value:"none"},{label:"捕获所有邮箱",value:"all"}],ht=nt,yt=t,mt=c([]),vt=function(){var t,r=(t=e().mark((function t(){var n,r,o;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,F();case 2:n=t.sent,r=n.data,o=r.data,mt.value=o;case 6:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(o,a){var l=t.apply(e,r);function i(t){n(l,o,a,i,u,"next",t)}function u(t){n(l,o,a,i,u,"throw",t)}i(void 0)}))});return function(){return r.apply(this,arguments)}}(),gt=function(){ht("close"),G()},_t=function(){ht("close"),M()},xt=function(t){var e=T.value.find((function(e){return e.value===t}));return e?e.ip:""};return s(ft,(function(t){t&&(q(),vt())})),f((function(){ut(yt.compData)})),function(t,e){var n=E,i=P,u=I,c=o,s=S,f=a,F=k,G=O,H=N,M=A,q=D,nt=U,rt=l;return p(),d("div",r,[h(nt,{ref_key:"formRef",ref:lt,model:v(at),rules:v(ct)},{default:y((function(){return[h(i,{label:"域名",prop:"domain"},{default:y((function(){return[m("div",z,[h(n,{modelValue:v(at).domain,"onUpdate:modelValue":e[0]||(e[0]=function(t){return v(at).domain=t}),disabled:v(it).isEdit,placeholder:"请输入域名,例如:bt.cn"},null,8,["modelValue","disabled"])])]})),_:1}),h(i,{label:"A 记录"},{default:y((function(){return[m("div",R,[h(n,{modelValue:v(at).a_record,"onUpdate:modelValue":e[1]||(e[1]=function(t){return v(at).a_record=t}),disabled:v(it).isEdit,placeholder:"请输入A记录,例如:mail.bt.cn"},null,8,["modelValue","disabled"])])]})),_:1}),h(i,{label:"域名配额"},{default:y((function(){return[h(u,{modelValue:v(at).quota,"onUpdate:modelValue":e[2]||(e[2]=function(t){return v(at).quota=t}),class:"!w-200px",min:0,controls:!1},null,8,["modelValue"]),m("div",Y,[h(c,{modelValue:v(at).quota_unit,"onUpdate:modelValue":e[3]||(e[3]=function(t){return v(at).quota_unit=t}),options:v(st)},null,8,["modelValue","options"])])]})),_:1}),h(i,{label:"最大邮箱数量",prop:"mailboxes"},{default:y((function(){return[h(u,{modelValue:v(at).mailboxes,"onUpdate:modelValue":e[4]||(e[4]=function(t){return v(at).mailboxes=t}),class:"!w-320px",min:0,controls:!1},null,8,["modelValue"])]})),_:1}),h(i,{label:"邮件捕获"},{default:y((function(){return[m("div",B,[h(c,{class:"!w-[140px]",modelValue:v(at).catch_type,"onUpdate:modelValue":e[5]||(e[5]=function(t){return v(at).catch_type=t}),options:dt},null,8,["modelValue"]),h(s,{placement:"top-start",width:"auto",trigger:"click","popper-class":"green-tips-popover !p-0 !border-none"},{reference:y((function(){return[h(n,{class:"!w-[170px] ml-10px",modelValue:v(at).email,"onUpdate:modelValue":e[6]||(e[6]=function(t){return v(at).email=t})},null,8,["modelValue"])]})),default:y((function(){return[m("div",W,g("none"===v(at).catch_type?"捕获不存在的邮箱,转发到此邮箱":"捕获所有邮箱,转发到此邮箱"),1)]})),_:1})])]})),_:1}),h(q,{showConfig:v(ft),"onUpdate:showConfig":e[10]||(e[10]=function(t){return _(ft)?ft.value=t:null})},{config:y((function(){return[h(i,{label:"DNS"},{default:y((function(){return[m("div",J,[h(G,{modelValue:v(at).dns_id,"onUpdate:modelValue":e[7]||(e[7]=function(t){return v(at).dns_id=t}),class:"!w-320px",filterable:"","default-first-option":"",size:"default",placeholder:"请选择验证类型"},{empty:y((function(){return[m("p",K,[e[12]||(e[12]=m("span",null,"暂无数据,请先添加DNS接口",-1)),h(f,{class:"!text-[14px]",onClick:gt},{default:y((function(){return e[11]||(e[11]=[x(">>添加")])})),_:1})])]})),default:y((function(){return[(p(!0),d(b,null,w(v(mt),(function(t){return p(),C(F,{key:t.id,label:t.dns_name,value:t.id},{default:y((function(){return[m("span",Q,g(t.dns_name),1),m("span",X,g(t.ps),1)]})),_:2},1032,["label","value"])})),128)),h(F,{label:"更多类型",value:"none",disabled:""},{default:y((function(){return[m("p",null,[e[14]||(e[14]=m("span",null,"更多类型,请添加DNS接口",-1)),h(f,{class:"!text-[14px]",onClick:gt},{default:y((function(){return e[13]||(e[13]=[x(">>添加")])})),_:1})])]})),_:1})]})),_:1},8,["modelValue"])])]})),_:1}),j(h(i,{label:" "},{default:y((function(){return[h(H,{modelValue:v(at).auto_create_record,"onUpdate:modelValue":e[8]||(e[8]=function(t){return v(at).auto_create_record=t}),"true-label":1,"false-label":0},{default:y((function(){return e[15]||(e[15]=[x("一键解析")])})),_:1},8,["modelValue"])]})),_:1},512),[[V,v(at).dns_id]]),h(i,{label:"IP池"},{default:y((function(){return[h(G,{class:"!w-[320px] bt-multiple-select",modelValue:v(at).ip_tag,"onUpdate:modelValue":e[9]||(e[9]=function(t){return v(at).ip_tag=t}),multiple:"",placeholder:"请选择IP"},{tag:y((function(){return[v(at).ip_tag&&v(at).ip_tag.length?(p(),d("div",Z,[(p(!0),d(b,null,w(v(at).ip_tag,(function(t){return p(),C(M,{type:"info",key:t,closable:"",class:"!w-auto inline-flex items-center",onClose:function(e){return function(t){at.value.ip_tag=at.value.ip_tag.filter((function(e){return e!==t}))}(t)}},{default:y((function(){return[x(g(t)+" ",1),m("span",$,"IP: "+g(xt(t)),1)]})),_:2},1032,["onClose"])})),128))])):L("",!0)]})),default:y((function(){return[(p(!0),d(b,null,w(v(T),(function(t){return p(),C(F,{key:t.value,label:t.label,value:t.value},{default:y((function(){return[m("span",tt,g(t.label),1),m("span",et,"IP: "+g(t.ip),1)]})),_:2},1032,["label","value"])})),128)),h(F,{label:"更多类型",value:"none",disabled:""},{default:y((function(){return[m("p",null,[e[17]||(e[17]=m("span",null,"更多IP,请前往IP池",-1)),h(f,{class:"!text-[14px]",onClick:_t},{default:y((function(){return e[16]||(e[16]=[x(">>添加")])})),_:1})])]})),_:1})]})),_:1},8,["modelValue"])]})),_:1})]})),_:1},8,["showConfig"])]})),_:1},8,["model","rules"]),h(rt,{class:"pl-20px",options:pt})])}}}))}}}))}();
Save File
Cancel