← Back
Editing: index-legacy404.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,i=Object.defineProperty||function(t,e,n){t[e]=n.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",s=u.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 h(t,e,n,r){var o=e&&e.prototype instanceof w?e:w,a=Object.create(o.prototype),u=new G(r||[]);return i(a,"_invoke",{value:O(t,n,u)}),a}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=h;var y="suspendedStart",m="suspendedYield",v="executing",d="completed",g={};function w(){}function b(){}function x(){}var L={};f(L,c,(function(){return this}));var j=Object.getPrototypeOf,_=j&&j(j(N([])));_&&_!==o&&a.call(_,c)&&(L=_);var E=x.prototype=w.prototype=Object.create(L);function P(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function k(e,n){function r(o,i,u,c){var l=p(e[o],e,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==t(f)&&a.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):n.resolve(f).then((function(t){s.value=t,u(s)}),(function(t){return r("throw",t,u,c)}))}c(l.arg)}var o;i(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 O(t,e,r){var o=y;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===d){if("throw"===a)throw i;return{value:n,done:!0}}for(r.method=a,r.arg=i;;){var u=r.delegate;if(u){var c=S(u,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===y)throw o=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var l=p(t,e,r);if("normal"===l.type){if(o=r.done?d:m,l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=d,r.method="throw",r.arg=l.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=p(o,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,g;var i=a.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,g):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function D(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 F(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function G(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=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 i.next=i}}throw new TypeError(t(e)+" is not iterable")}return b.prototype=x,i(E,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:b,configurable:!0}),b.displayName=f(x,s,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,f(t,s,"GeneratorFunction")),t.prototype=Object.create(E),t},r.awrap=function(t){return{__await:t}},P(k.prototype),f(k.prototype,l,(function(){return this})),r.AsyncIterator=k,r.async=function(t,e,n,o,a){void 0===a&&(a=Promise);var i=new k(h(t,e,n,o),a);return r.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},P(E),f(E,s,"Generator"),f(E,c,(function(){return this})),f(E,"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=N,G.prototype={constructor:G,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(F),!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 u.type="throw",u.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),l=a.call(i,"finallyLoc");if(c&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.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 i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},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),F(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;F(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:N(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),g}},r}function n(t,e,n,r,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function r(t){return function(){var e=this,r=arguments;return new Promise((function(o,a){var i=t.apply(e,r);function u(t){n(i,o,a,u,c,"next",t)}function c(t){n(i,o,a,u,c,"throw",t)}u(void 0)}))}}System.register(["./utils-lib-legacy.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./useController-legacy5.js?v=VERSION_NUMBER","./form-item-legacy.js?v=VERSION_NUMBER","./useMethod-legacy5.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./site-legacy.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./index-legacy104.js?v=VERSION_NUMBER","./useStore-legacy4.js?v=VERSION_NUMBER","./useController-legacy6.js?v=VERSION_NUMBER"],(function(t,n){"use strict";var o,a,i,u,c,l,s,f,h,p,y,m,v,d,g,w,b,x,L;return{setters:[function(t){o=t.u,a=t.bg,i=t.K,u=t.G},function(t){c=t.s,l=t.g,s=t.e,f=t.S,h=t.B,p=t.aQ,y=t.c,m=t.p,v=t.q,d=t.v,g=t.x},function(t){w=t.u},function(t){b=t.o},function(t){x=t.E},function(t){L=t.p},null,null,null,null,null,null],execute:function(){var n=o().payment,j=c(w()),_=j.localRow,E=j.cloneLocalForm,P=j.isRefreshLocalList,k=function(){return l((function(){var t={type:"custom",key:"subDomain",render:function(){return s(a,{label:" ",prop:"subDomain"},{default:function(){return[s(f,{style:"min-width: 220px; max-width: 300px",modelValue:E.value.subDomain,"onUpdate:modelValue":function(t){return E.value.subDomain=t}},{append:function(){return s("span",null,[h("."),_.value.name])}}),s(f,{style:"width: 120px",class:"ml-[1rem]",modelValue:E.value.subPath,"onUpdate:modelValue":function(t){return E.value.subPath=t},placeholder:"克隆路径"},{prepend:function(){return s("span",null,[h("/")])}}),s(p,{content:"空克隆路径意味着克隆在根目录中",placement:"top"},{default:function(){return[s("span",{class:"svgtofont-el-warning !text-[2rem] ml-[1rem] !text-warning"},null)]}})]}})},rules:{subDomain:[{required:!0,message:"请输入子域名",trigger:"blur"}]}},e={type:"custom",render:function(){return s(a,{label:" ",prop:"newDomain"},{default:function(){return[s(f,{style:"width: 200px",modelValue:E.value.newDomain,"onUpdate:modelValue":function(t){return E.value.newDomain=t},placeholder:"新域名"},null),s(f,{style:"width: 120px",class:"ml-[1rem]",modelValue:E.value.newPath,"onUpdate:modelValue":function(t){return E.value.newPath=t},placeholder:"克隆路径"},{prepend:function(){return s("span",null,[h("/")])}}),s(p,{content:"空克隆路径意味着克隆在根目录中",placement:"top"},{default:function(){return[s("span",{class:"svgtofont-el-warning !text-[2rem] ml-[1rem] !text-warning"},null)]}})]}})},rules:{newDomain:[{required:!0,message:"请输入新的域名",trigger:"blur"}]}};return[{type:"custom",render:function(){return s(a,{label:"来源站点"},{default:function(){return[s("span",null,[_.value.name])]}})}},{label:"目标站点",key:"method",type:"radio:button",options:[{label:"创建子域名",value:1},{label:"创建新域名",value:2}]},1===E.value.method?t:e,b("FastCGI缓存","cache_status",{attrs:{class:"!w-[100px]"}})]}))},O=function(){var t=r(e().mark((function t(r){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("ltd"===n.value.authType){t.next=3;break}return L({disablePro:!0,sourceId:335}),t.abrupt("return");case 3:i({loading:"正在克隆站点...",request:x({domain:1===E.value.method?"".concat(E.value.subDomain,".").concat(_.value.name):E.value.newDomain,s_id:_.value.id,sub_path:1===E.value.method?E.value.subPath:E.value.newPath,enable_cache:E.value.cache_status?1:0}),message:!0,success:function(t){t.status&&(r(),P.value=!0)}});case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),S={class:"p-[2rem]"};t("default",y({__name:"index",setup:function(t,n){var o,a=n.expose,i=c(w()).cloneLocalForm,l=w().resetCloneLocalForm,f=u({data:function(){return i.value},options:k(),submit:(o=r(e().mark((function t(n,r,o){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r();case 2:case"end":return t.stop()}}),t)}))),function(t,e,n){return o.apply(this,arguments)})}),h=f.BtForm,p=f.submit,y=function(){var t=r(e().mark((function t(n){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p();case 2:O(n);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return m((function(){l()})),a({onConfirm:y}),function(t,e){return v(),d("div",S,[s(g(h))])}}}))}}}))}();
Save File
Cancel