File: /www/server/panel/BTPanel/static/js/error-code-legacy.js
!function(){function t(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var n,r,o="function"==typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function i(t,o,u,a){var i=o&&o.prototype instanceof l?o:l,f=Object.create(i.prototype);return e(f,"_invoke",function(t,e,o){var u,a,i,l=0,f=o||[],s=!1,p={p:0,n:0,v:n,a:v,f:v.bind(n,4),d:function(t,e){return u=t,a=0,i=n,p.n=e,c}};function v(t,e){for(a=t,i=e,r=0;!s&&l&&!o&&r<f.length;r++){var o,u=f[r],v=p.p,y=u[2];t>3?(o=y===e)&&(i=u[(a=u[4])?5:(a=3,3)],u[4]=u[5]=n):u[0]<=v&&((o=t<2&&v<u[1])?(a=0,p.v=e,p.n=u[1]):v<y&&(o=t<3||u[0]>e||e>y)&&(u[4]=t,u[5]=e,p.n=y,a=0))}if(o||t>1)return c;throw s=!0,e}return function(o,f,y){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&v(f,y),a=f,i=y;(r=a<2?n:i)||!s;){u||(a?a<3?(a>1&&(p.n=-1),v(a,i)):p.n=i:p.v=i);try{if(l=2,u){if(a||(o="next"),r=u[o]){if(!(r=r.call(u,i)))throw TypeError("iterator result is not an object");if(!r.done)return r;i=r.value,a<2&&(a=0)}else 1===a&&(r=u.return)&&r.call(u),a<2&&(i=TypeError("The iterator does not provide a '"+o+"' method"),a=1);u=n}else if((r=(s=p.n<0)?i:t.call(e,p))!==c)break}catch(r){u=n,a=1,i=r}finally{l=1}}return{value:r,done:s}}}(t,u,a),!0),f}var c={};function l(){}function f(){}function s(){}r=Object.getPrototypeOf;var p=[][u]?r(r([][u]())):(e(r={},u,function(){return this}),r),v=s.prototype=l.prototype=Object.create(p);function y(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,e(t,a,"GeneratorFunction")),t.prototype=Object.create(v),t}return f.prototype=s,e(v,"constructor",s),e(s,"constructor",f),f.displayName="GeneratorFunction",e(s,a,"GeneratorFunction"),e(v),e(v,a,"Generator"),e(v,u,function(){return this}),e(v,"toString",function(){return"[object Generator]"}),(t=function(){return{w:i,m:y}})()}function e(t,n,r,o){var u=Object.defineProperty;try{u({},"",{})}catch(t){u=0}e=function(t,n,r,o){function a(n,r){e(t,n,function(t){return this._invoke(n,r,t)})}n?u?u(t,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):t[n]=r:(a("next",0),a("throw",1),a("return",2))},e(t,n,r,o)}function n(t,e,n,r,o,u,a){try{var i=t[u](a),c=i.value}catch(t){return void n(t)}i.done?e(c):Promise.resolve(c).then(r,o)}System.register(["./utils-lib-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./form-item-legacy.js?v=1777008528","./index-legacy74.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./index-legacy119.js?v=1777008528","./useController-legacy28.js?v=1777008528","./index-legacy118.js?v=1777008528","./index-legacy3.js?v=1777008528","./index-legacy116.js?v=1777008528","./index-legacy317.js?v=1777008528"],function(e,r){"use strict";var o,u,a,i,c,l,f,s,p,v,y,d,b,m;return{setters:[function(t){o=t.X},function(t){u=t.c,a=t.r,i=t.g,c=t.j,l=t.k,f=t.e,s=t.p},function(t){p=t.o,v=t.f,y=t.d},function(t){d=t.c,b=t.e,m=t.H},null,null,null,null,null,null,null],execute:function(){var r={class:"p-[2rem]"};e("default",u({__name:"error-code",setup:function(e,u){var g,h,j=u.expose,_=d().httpRowData,x=a([{label:"500 - 服务器错误",value:"500"},{label:"502 - 网关错误",value:"502"},{label:"503 - 服务不可用",value:"503"},{label:"504 - 网关超时",value:"504"},{label:"404 - 页面未找到",value:"404"},{label:"403 - 禁止访问",value:"403"},{label:"429 - 请求过多",value:"429"}]),w=o({data:function(){var t;return{errorCodes:b(null===(t=_.value)||void 0===t?void 0:t.http_config.proxy_next_upstream)||[500,502,503,504]}},options:function(){return i(function(){return[p("错误状态码(多选)","errorCodes",x.value,{attrs:{class:"flex flex-col gap-2"}}),v("保存",{attrs:{class:"!mt-[1.6rem] !ml-[12rem]",type:"primary",onClick:C}}),y("",[{content:"*错误状态码: 当后端节点返回的http状态码在错误状态码中时,该节点将会被视为处理失败"}])]})},submit:(g=t().m(function e(n,r){var o;return t().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,r();case 1:return o=_.value.load_id,t.n=2,m({load_id:o,http_codes:"[".concat(n.value.errorCodes,"]")});case 2:return t.a(2,t.v)}},e)}),h=function(){var t=this,e=arguments;return new Promise(function(r,o){var u=g.apply(t,e);function a(t){n(u,r,o,a,i,"next",t)}function i(t){n(u,r,o,a,i,"throw",t)}a(void 0)})},function(t,e){return h.apply(this,arguments)})}),O=w.BtForm,C=w.submit;return j({onConfirm:C}),function(t,e){return c(),l("div",r,[f(s(O))])}}}))}}})}();