File: /www/server/panel/BTPanel/static/js/index-legacy376.js
!function(){function t(t){return function(t){if(Array.isArray(t))return n(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 n(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)?n(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 n(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}function e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,n,o="function"==typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function i(e,o,u,a){var i=o&&o.prototype instanceof l?o:l,s=Object.create(i.prototype);return r(s,"_invoke",function(e,r,o){var u,a,i,l=0,s=o||[],f=!1,d={p:0,n:0,v:t,a:m,f:m.bind(t,4),d:function(n,e){return u=n,a=0,i=t,d.n=e,c}};function m(e,r){for(a=e,i=r,n=0;!f&&l&&!o&&n<s.length;n++){var o,u=s[n],m=d.p,p=u[2];e>3?(o=p===r)&&(i=u[(a=u[4])?5:(a=3,3)],u[4]=u[5]=t):u[0]<=m&&((o=e<2&&m<u[1])?(a=0,d.v=r,d.n=u[1]):m<p&&(o=e<3||u[0]>r||r>p)&&(u[4]=e,u[5]=r,d.n=p,a=0))}if(o||e>1)return c;throw f=!0,r}return function(o,s,p){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&m(s,p),a=s,i=p;(n=a<2?t:i)||!f;){u||(a?a<3?(a>1&&(d.n=-1),m(a,i)):d.n=i:d.v=i);try{if(l=2,u){if(a||(o="next"),n=u[o]){if(!(n=n.call(u,i)))throw TypeError("iterator result is not an object");if(!n.done)return n;i=n.value,a<2&&(a=0)}else 1===a&&(n=u.return)&&n.call(u),a<2&&(i=TypeError("The iterator does not provide a '"+o+"' method"),a=1);u=t}else if((n=(f=d.n<0)?i:e.call(r,d))!==c)break}catch(n){u=t,a=1,i=n}finally{l=1}}return{value:n,done:f}}}(e,u,a),!0),s}var c={};function l(){}function s(){}function f(){}n=Object.getPrototypeOf;var d=[][u]?n(n([][u]())):(r(n={},u,function(){return this}),n),m=f.prototype=l.prototype=Object.create(d);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,r(t,a,"GeneratorFunction")),t.prototype=Object.create(m),t}return s.prototype=f,r(m,"constructor",f),r(f,"constructor",s),s.displayName="GeneratorFunction",r(f,a,"GeneratorFunction"),r(m),r(m,a,"Generator"),r(m,u,function(){return this}),r(m,"toString",function(){return"[object Generator]"}),(e=function(){return{w:i,m:p}})()}function r(t,n,e,o){var u=Object.defineProperty;try{u({},"",{})}catch(t){u=0}r=function(t,n,e,o){function a(n,e){r(t,n,function(t){return this._invoke(n,e,t)})}n?u?u(t,n,{value:e,enumerable:!o,configurable:!o,writable:!o}):t[n]=e:(a("next",0),a("throw",1),a("return",2))},r(t,n,e,o)}function o(t,n,e,r,o,u,a){try{var i=t[u](a),c=i.value}catch(t){return void e(t)}i.done?n(c):Promise.resolve(c).then(r,o)}function u(t){return function(){var n=this,e=arguments;return new Promise(function(r,u){var a=t.apply(n,e);function i(t){o(a,r,u,i,c,"next",t)}function c(t){o(a,r,u,i,c,"throw",t)}i(void 0)})}}System.register(["./base-lib-legacy.js?v=1777008528","./index-legacy3.js?v=1777008528","./utils-lib-legacy.js?v=1777008528","./firewall-legacy.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./index-legacy119.js?v=1777008528","./index-legacy116.js?v=1777008528"],function(n,r){"use strict";var o,a,i,c,l,s,f,d,m,p,y,v,b,h,g,j,_,w,x,O,V;return{setters:[function(t){o=t.c,a=t.r,i=t.aC,c=t.H,l=t.o,s=t.j,f=t.k,d=t.e,m=t.v,p=t.p,y=t.q,v=t.x,b=t.ap,h=t.ad,g=t.ab},function(t){j=t.a2},function(t){_=t.k,w=t.cO,x=t.f},function(t){O=t.ak,V=t.al},null,null,null],execute:function(){var r={class:"p-[2rem]"},S={class:"flex"};n("default",o({__name:"index",setup:function(n,o){var k=o.expose,A=x(),T=a(!1),C=i("popupClose"),G=a(),P=c({give:[],status:!1,hour:12,minute:0}),U=function(t){P.give=t},E=function(){var t=u(e().m(function t(){var n,r,o,u,a,i;return e().w(function(t){for(;;)switch(t.n){case 0:if(n=P.give,r=P.minute,o=P.hour,u=P.status,0===(a=n.join(",")).indexOf(",")&&(a=a.substring(1)),0!==n.length&&""!==a){t.n=1;break}return t.a(2,A.error("请选择告警方式"));case 1:return i={status:u?1:0,hour:o,minute:r,channel:a},t.n=2,G.value.validate();case 2:_({request:O(i),loading:T,message:!0,success:function(t){t.status&&C&&C()}});case 3:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),F=function(){var t=u(e().m(function t(){return e().w(function(t){for(;;)switch(t.n){case 0:_({request:V(),success:function(t){var n=t.data;P.status="1"===n.status||1===n.status,P.hour=n.hour,P.minute=n.minute,""!=n.channel&&(P.give=n.channel.split(","))}});case 1:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}();return l(function(){F()}),k({onConfirm:E}),function(n,e){var o=b,u=h,a=w,i=j,c=g;return s(),f("div",r,[d(c,{model:p(P),disabled:p(T),ref_key:"scanForm",ref:G},{default:m(function(){return[d(u,{label:"自动扫描"},{default:m(function(){return[d(o,{modelValue:p(P).status,"onUpdate:modelValue":e[0]||(e[0]=function(t){return p(P).status=t})},null,8,["modelValue"])]}),_:1}),d(u,{label:"每天"},{default:m(function(){return[y("div",S,[d(a,{type:"number",class:"!w-[13rem] mr-4",min:"0",max:"23",modelValue:p(P).hour,"onUpdate:modelValue":e[1]||(e[1]=function(t){return p(P).hour=t})},{append:m(function(){return t(e[4]||(e[4]=[v("小时",-1)]))}),_:1},8,["modelValue"]),d(a,{type:"number",class:"!w-[13rem]",min:"0",max:"59",modelValue:p(P).minute,"onUpdate:modelValue":e[2]||(e[2]=function(t){return p(P).minute=t})},{append:m(function(){return t(e[5]||(e[5]=[v("分钟",-1)]))}),_:1},8,["modelValue"])])]}),_:1}),d(u,{label:"告警方式"},{default:m(function(){return[d(i,{class:"!w-[30rem]",modelValue:p(P).give,"onUpdate:modelValue":e[3]||(e[3]=function(t){return p(P).give=t}),limit:["sms","wx_account"],isMult:!0,needAll:!1,onChange:U},null,8,["modelValue"])]}),_:1}),d(u,{label:" "},{default:m(function(){return[y("div",{class:"text-secondary"},[e[6]||(e[6]=v(" 配置后状态未更新,请尝试[ ",-1)),y("span",{class:"text-primary hover:text-primaryDark cursor-pointer",onClick:F}," 手动刷新 "),e[7]||(e[7]=v(" ] ",-1))])]}),_:1})]}),_:1},8,["model","disabled"])])}}}))}}})}();