← Back
Editing: index-legacy383.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 n};var r,n={},o=Object.prototype,a=o.hasOwnProperty,u=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},l=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(r){f=function(t,e,r){return t[e]=r}}function y(t,e,r,n){var o=e&&e.prototype instanceof w?e:w,a=Object.create(o.prototype),i=new V(n||[]);return u(a,"_invoke",{value:k(t,r,i)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}n.wrap=y;var p="suspendedStart",d="suspendedYield",m="executing",v="completed",g={};function w(){}function b(){}function x(){}var j={};f(j,l,(function(){return this}));var _=Object.getPrototypeOf,L=_&&_(_(P([])));L&&L!==o&&a.call(L,l)&&(j=L);var E=x.prototype=w.prototype=Object.create(j);function S(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function C(e,r){function n(o,u,i,l){var c=h(e[o],e,u);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==t(f)&&a.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,i,l)}),(function(t){n("throw",t,i,l)})):r.resolve(f).then((function(t){s.value=t,i(s)}),(function(t){return n("throw",t,i,l)}))}l(c.arg)}var o;u(this,"_invoke",{value:function(t,e){function a(){return new r((function(r,o){n(t,e,r,o)}))}return o=o?o.then(a,a):a()}})}function k(t,e,n){var o=p;return function(a,u){if(o===m)throw Error("Generator is already running");if(o===v){if("throw"===a)throw u;return{value:r,done:!0}}for(n.method=a,n.arg=u;;){var i=n.delegate;if(i){var l=A(i,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var c=h(t,e,n);if("normal"===c.type){if(o=n.done?v:d,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.arg)}}}function A(t,e){var n=e.method,o=t.iterator[n];if(o===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=r,A(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var a=h(o,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,g;var u=a.arg;return u?u.done?(e[t.resultName]=u.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,g):u:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function O(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 N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function V(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[l];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,u=function t(){for(;++o<e.length;)if(a.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=r,t.done=!0,t};return u.next=u}}throw new TypeError(t(e)+" is not iterable")}return b.prototype=x,u(E,"constructor",{value:x,configurable:!0}),u(x,"constructor",{value:b,configurable:!0}),b.displayName=f(x,s,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,f(t,s,"GeneratorFunction")),t.prototype=Object.create(E),t},n.awrap=function(t){return{__await:t}},S(C.prototype),f(C.prototype,c,(function(){return this})),n.AsyncIterator=C,n.async=function(t,e,r,o,a){void 0===a&&(a=Promise);var u=new C(y(t,e,r,o),a);return n.isGeneratorFunction(e)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},S(E),f(E,s,"Generator"),f(E,l,(function(){return this})),f(E,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},n.values=P,V.prototype={constructor:V,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(N),!t)for(var e in this)"t"===e.charAt(0)&&a.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},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 n(n,o){return i.type="throw",i.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var u=this.tryEntries[o],i=u.completion;if("root"===u.tryLoc)return n("end");if(u.tryLoc<=this.prev){var l=a.call(u,"catchLoc"),c=a.call(u,"finallyLoc");if(l&&c){if(this.prev<u.catchLoc)return n(u.catchLoc,!0);if(this.prev<u.finallyLoc)return n(u.finallyLoc)}else if(l){if(this.prev<u.catchLoc)return n(u.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return n(u.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var u=o?o.completion:{};return u.type=t,u.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(u)},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 r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),g}},n}function r(t,e,r,n,o,a,u){try{var i=t[a](u),l=i.value}catch(t){return void r(t)}i.done?e(l):Promise.resolve(l).then(n,o)}function n(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}(t)||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 o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}System.register(["./utils-lib-legacy.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./useController-legacy13.js?v=VERSION_NUMBER","./useOtherController-legacy.js?v=VERSION_NUMBER","./useStore-legacy11.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./site-legacy.js?v=VERSION_NUMBER","./index-legacy103.js?v=VERSION_NUMBER","./index-legacy104.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./useStore-legacy12.js?v=VERSION_NUMBER","./useStore-legacy4.js?v=VERSION_NUMBER","./useController-legacy6.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER","./useController-legacy5.js?v=VERSION_NUMBER","./useMethod-legacy5.js?v=VERSION_NUMBER","./useController-legacy4.js?v=VERSION_NUMBER","./useStore-legacy10.js?v=VERSION_NUMBER"],(function(t,o){"use strict";var a,u,i,l,c,s,f,y,h,p,d,m,v,g,w,b,x,j,_,L,E,S,C,k,A,O,N,V,P,T;return{setters:[function(t){a=t.G,u=t.k,i=t.bg,l=t.A,c=t.l,s=t.W},function(t){f=t.c,y=t.s,h=t.g,p=t.e,d=t.D,m=t.B,v=t.q,g=t.v,w=t.y,b=t.z,x=t.x,j=t.F,_=t.M,L=t.C,E=t.A},function(t){S=t.T,C=t.U,k=t.V,A=t.W,O=t.X,N=t.Y,V=t.Z},function(t){P=t.t},function(t){T=t.u},null,null,null,null,null,null,null,null,null,null,null,null,null],execute:function(){var o={class:"p-[5rem]"},H={class:"text-[1.4rem] mb-[2rem]"},I={class:"text-primary"},G={class:"mt-[20px]"};t("default",f({__name:"index",emits:["close"],setup:function(t,f){var F=f.emit,R=y(T()),U=R.activeTabs,M=R.sslIsRefresh,Y=R.testIsRefresh,B=R.encryptIsRefresh,W=R.otherIsRefresh,q=function(t){l({value:t})},z=a({data:S,options:function(t){return h((function(){return n("CNAME_CSR_HASH"===C.value?[{type:"custom",render:function(){return p(i,{label:"主机记录:"},{default:function(){return[p(u,{modelValue:t.value.dnsHost,"onUpdate:modelValue":function(e){return t.value.dnsHost=e},class:"!w-[36rem] mr-[1rem]",type:"text",readonly:!0},null),p(d,{type:"primary",onClick:function(){return q(t.value.dnsHost)}},{default:function(){return[m("复制")]}})]}})}},{type:"input",label:"记录类型:",key:"dnsType",attrs:{width:"36rem",readonly:!0}},{type:"custom",render:function(){return p(i,{label:"记录值:"},{default:function(){return[p("div",{class:"flex"},[p(u,{modelValue:t.value.dnsValue,"onUpdate:modelValue":function(e){return t.value.dnsValue=e},class:"!w-[36rem] mr-[1rem]",type:"textarea",rows:3,readonly:!0},null),p(d,{type:"primary",onClick:function(){return q(t.value.dnsValue)},class:"align-top"},{default:function(){return[m("复制")]}})])]}})}}]:[{type:"custom",render:function(){return p(i,{label:"文件位置:"},{default:function(){return[p(u,{modelValue:t.value.filePath,"onUpdate:modelValue":function(e){return t.value.filePath=e},class:"!w-[36rem] mr-[1rem]",type:"text",readonly:!0},null),p(d,{type:"primary",onClick:function(){return q(t.value.filePath)}},{default:function(){return[m("复制")]}})]}})}},{type:"custom",render:function(){return p(i,{label:"文件名:"},{default:function(){return[p(u,{modelValue:t.value.fileName,"onUpdate:modelValue":function(e){return t.value.fileName=e},class:"!w-[36rem] mr-[1rem]",type:"text",readonly:!0},null),p(d,{type:"primary",onClick:function(){return q(t.value.fileName)}},{default:function(){return[m("复制")]}})]}})}},{type:"custom",render:function(){return p(i,{label:"记录值:"},{default:function(){return[p("div",{class:"flex"},[p(u,{modelValue:t.value.fileContent,"onUpdate:modelValue":function(e){return t.value.fileContent=e},class:"!w-[36rem] mr-[1rem]",type:"textarea",rows:3,readonly:!0},null),p(d,{type:"primary",onClick:function(){return q(t.value.fileContent)},class:"align-top"},{default:function(){return[m("复制")]}})])]}})}}])}))}}),D=z.BtForm,X=z.param,Z=F,$=function(){var t,n=(t=e().mark((function t(){var r,n;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,V();case 2:null===(r=(n={ssl:function(){return M.value=!0},test:function(){return Y.value=!0},encrypt:function(){return B.value=!0},other:function(){return W.value=!0}})[U.value])||void 0===r||r.call(n),Z("close");case 5:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(o,a){var u=t.apply(e,n);function i(t){r(u,o,a,i,l,"next",t)}function l(t){r(u,o,a,i,l,"throw",t)}i(void 0)}))});return function(){return n.apply(this,arguments)}}();return function(t,e){var r=c,n=s;return v(),g("div",o,[w("div",H,[e[3]||(e[3]=m(" 请给以下域名【 ")),w("span",I,b(x(k)),1),e[4]||(e[4]=m(" 】 ")),"CNAME_CSR_HASH"===x(C)?(v(),g(j,{key:0},[m(" 添加“"+b(x(X).dnsType)+"”解析,解析参数如下: ",1)],64)):(v(),g(j,{key:1},[m("添加验证文件,验证信息如下:")],64))]),p(x(D),{class:"mb-[20px]"}),"CNAME_CSR_HASH"!==x(C)?(v(),_(r,{key:0,column:x(P),data:x(A)},null,8,["column","data"])):L("",!0),p(n,{options:x(O),class:"ml-[20px] mt-[12px]"},null,8,["options"]),w("div",G,[p(x(d),{type:"primary",onClick:e[0]||(e[0]=function(t){return $()})},{default:E((function(){return e[5]||(e[5]=[m("验证域名")])})),_:1}),p(x(d),{type:"default",onClick:e[1]||(e[1]=function(t){return x(N)(Z("close"))})},{default:E((function(){return e[6]||(e[6]=[m(" 修改验证方式 ")])})),_:1}),p(x(d),{type:"default",onClick:e[2]||(e[2]=function(){Z("close")})},{default:E((function(){return e[7]||(e[7]=[m("返回列表")])})),_:1})])])}}}))}}}))}();
Save File
Cancel