File: /www/server/panel/BTPanel/static/js/project-exception-alarm-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,s=Object.create(i.prototype);return e(s,"_invoke",function(t,e,o){var u,a,i,l=0,s=o||[],p=!1,f={p:0,n:0,v:n,a:d,f:d.bind(n,4),d:function(t,e){return u=t,a=0,i=n,f.n=e,c}};function d(t,e){for(a=t,i=e,r=0;!p&&l&&!o&&r<s.length;r++){var o,u=s[r],d=f.p,v=u[2];t>3?(o=v===e)&&(i=u[(a=u[4])?5:(a=3,3)],u[4]=u[5]=n):u[0]<=d&&((o=t<2&&d<u[1])?(a=0,f.v=e,f.n=u[1]):d<v&&(o=t<3||u[0]>e||e>v)&&(u[4]=t,u[5]=e,f.n=v,a=0))}if(o||t>1)return c;throw p=!0,e}return function(o,s,v){if(l>1)throw TypeError("Generator is already running");for(p&&1===s&&d(s,v),a=s,i=v;(r=a<2?n:i)||!p;){u||(a?a<3?(a>1&&(f.n=-1),d(a,i)):f.n=i:f.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=(p=f.n<0)?i:t.call(e,f))!==c)break}catch(r){u=n,a=1,i=r}finally{l=1}}return{value:r,done:p}}}(t,u,a),!0),s}var c={};function l(){}function s(){}function p(){}r=Object.getPrototypeOf;var f=[][u]?r(r([][u]())):(e(r={},u,function(){return this}),r),d=p.prototype=l.prototype=Object.create(f);function v(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,e(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return s.prototype=p,e(d,"constructor",p),e(p,"constructor",s),s.displayName="GeneratorFunction",e(p,a,"GeneratorFunction"),e(d),e(d,a,"Generator"),e(d,u,function(){return this}),e(d,"toString",function(){return"[object Generator]"}),(t=function(){return{w:i,m:v}})()}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)}function r(t){return function(){var e=this,r=arguments;return new Promise(function(o,u){var a=t.apply(e,r);function i(t){n(a,o,u,i,c,"next",t)}function c(t){n(a,o,u,i,c,"throw",t)}i(void 0)})}}System.register(["./utils-lib-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./index.vue_vue_type_script_setup_true_lang-legacy17.js?v=1777008528","./useStore-legacy2.js?v=1777008528","./index-legacy3.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./form-item-legacy.js?v=1777008528","./index-legacy119.js?v=1777008528","./useController-legacy13.js?v=1777008528","./site-legacy.js?v=1777008528","./index-legacy116.js?v=1777008528"],function(e,n){"use strict";var o,u,a,i,c,l,s,p,f,d,v,m,y,h,b,g;return{setters:[function(t){o=t.X,u=t.cO,a=t.B,i=t.cN},function(t){c=t.c,l=t.g,s=t.e,p=t.x,f=t.j,d=t.C,v=t.p},function(t){m=t.g,y=t.m,h=t.s},function(t){b=t.u},function(t){g=t.a1},null,null,null,null,null,null],execute:function(){e("default",c({__name:"project-exception-alarm",props:{compData:{}},setup:function(e,n){var c,j,_=n.expose,w=e,x=b().siteInfo,O=o({data:(j=r(t().m(function e(){var n,r,o,u,a;return t().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,m();case 1:return u=t.v,(a=u.data)&&(a.status="open"===(null===(n=w.compData)||void 0===n?void 0:n.type)),t.a(2,a||{status:"open"===(null===(r=w.compData)||void 0===r?void 0:r.type),type:"project_status",title:"项目停止告警",project:null===(o=x.value)||void 0===o?void 0:o.id,tid:"site_push@9",interval:600,count:1,push_count:1,module:[],id:""})}},e)})),function(){return j.apply(this,arguments)}),options:function(t){return l(function(){return[{type:"switch",label:"停止告警",key:"status",attrs:{onChange:function(t){y.status=t}}},{type:"radio",label:"自动重启",key:"count",options:[{label:"自动尝试重启项目",value:1},{label:"不做重启尝试",value:2}]},{type:"custom",render:function(){return s(a,{label:"间隔时间",prop:"interval"},{default:function(){return[s("div",{class:"flex items-center"},[s(u,{class:"!w-[12rem]",width:"12rem",type:"number",modelValue:t.value.interval,"onUpdate:modelValue":function(e){return t.value.interval=e}},{append:"秒"}),s("span",{class:"text-small text-secondary ml-[12px]"},[p("后再次监控检测条件 ")])])]}})},rules:{interval:[i({message:"请输入间隔时间"}),{validator:function(t,e,n){!/^[1-9]\d*$/.test(e)||e<=0?n(new Error("请输入大于0的整数")):n()}}]}},{type:"custom",render:function(){return s(a,{label:"每天发送",prop:"push_count"},{default:function(){return[s("div",{class:"flex items-center"},[s(u,{class:"!w-[12rem]",width:"12rem",type:"number",modelValue:t.value.push_count,"onUpdate:modelValue":function(e){return t.value.push_count=e}},{append:"次"}),s("span",{class:"text-small text-secondary ml-[12px]"},[p("后,当日不再发送,次日恢复 ")])])]}})},rules:{push_count:[i({message:"请输入发送次数"}),{validator:function(t,e,n){!/^[1-9]\d*$/.test(e)||e<=0?n(new Error("请输入大于0的整数")):n()}}]}},g("告警方式","module",{attrs:{limit:["sms"]},rules:{module:[i({message:"请选择告警方式"})]}})]})},submit:(c=r(t().m(function e(n,r){return t().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,r();case 1:return t.n=2,h(n.value);case 2:return t.a(2,t.v)}},e)})),function(t,e){return c.apply(this,arguments)})}),S=O.BtForm;return _({onConfirm:O.submit}),function(t,e){return f(),d(v(S),{class:"p-2rem"})}}}))}}})}();