← Back
Editing: index-legacy498.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/babel/babel/blob/main/packages/babel-helpers/LICENSE */e=function(){return n};var r,n={},o=Object.prototype,a=o.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r,n){return Object.defineProperty(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(r){l=function(t,e,r){return t[e]=r}}function f(t,e,n,o){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype);return l(i,"_invoke",function(t,e,n){var o=1;return function(a,i){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===a)throw i;return{value:r,done:!0}}for(n.method=a,n.arg=i;;){var u=n.delegate;if(u){var c=j(u,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var s=h(t,e,n);if("normal"===s.type){if(o=n.done?4:2,s.arg===p)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=4,n.method="throw",n.arg=s.arg)}}}(t,n,new O(o||[])),!0),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}n.wrap=f;var p={};function y(){}function d(){}function v(){}var m={};l(m,u,(function(){return this}));var g=Object.getPrototypeOf,w=g&&g(g(S([])));w&&w!==o&&a.call(w,u)&&(m=w);var b=v.prototype=y.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function _(e,r){function n(o,i,u,c){var s=h(e[o],e,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==t(f)&&a.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,u,c)}),(function(t){n("throw",t,u,c)})):r.resolve(f).then((function(t){l.value=t,u(l)}),(function(t){return n("throw",t,u,c)}))}c(s.arg)}var o;l(this,"_invoke",(function(t,e){function a(){return new r((function(r,o){n(t,e,r,o)}))}return o=o?o.then(a,a):a()}),!0)}function j(t,e){var n=e.method,o=t.i[n];if(o===r)return e.delegate=null,"throw"===n&&t.i.return&&(e.method="return",e.arg=r,j(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var a=h(o,t.i,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,p;var i=a.arg;return i?i.done?(e[t.r]=i.value,e.next=t.n,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function E(t){this.tryEntries.push(t)}function k(t){var e=t[4]||{};e.type="normal",e.arg=r,t[4]=e}function O(t){this.tryEntries=[[-1]],t.forEach(E,this),this.reset(!0)}function S(e){if(null!=e){var n=e[u];if(n)return n.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=r,t.done=!0,t};return i.next=i}}throw new TypeError(t(e)+" is not iterable")}return d.prototype=v,l(b,"constructor",v),l(v,"constructor",d),d.displayName=l(v,s,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},n.awrap=function(t){return{__await:t}},x(_.prototype),l(_.prototype,c,(function(){return this})),n.AsyncIterator=_,n.async=function(t,e,r,o,a){void 0===a&&(a=Promise);var i=new _(f(t,e,r,o),a);return n.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},x(b),l(b,s,"Generator"),l(b,u,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=Object(t),r=[];for(var n in e)r.unshift(n);return function t(){for(;r.length;)if((n=r.pop())in e)return t.value=n,t.done=!1,t;return t.done=!0,t}},n.values=S,O.prototype={constructor:O,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(k),!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][4];if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r){i.type="throw",i.arg=t,e.next=r}for(var o=e.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a[4],u=this.prev,c=a[1],s=a[2];if(-1===a[0])return n("end"),!1;if(!c&&!s)throw Error("try statement without catch or finally");if(null!=a[0]&&a[0]<=u){if(u<c)return this.method="next",this.arg=r,n(c),!0;if(u<s)return n(s),!1}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===t||"continue"===t)&&o[0]<=e&&e<=o[2]&&(o=null);var a=o?o[4]:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o[2],p):this.complete(a)},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),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[2]===t)return this.complete(r[4],r[3]),k(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[0]===t){var n=r[4];if("throw"===n.type){var o=n.arg;k(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={i:S(t),r:e,n:n},"next"===this.method&&(this.arg=r),p}},n}function r(t,e,r,n,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(o,a){var i=t.apply(e,n);function u(t){r(i,o,a,u,c,"next",t)}function c(t){r(i,o,a,u,c,"throw",t)}u(void 0)}))}}System.register(["./base-lib-legacy.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER","./utils-lib-legacy.js?v=VERSION_NUMBER","./firewall-legacy.js?v=VERSION_NUMBER","./index-legacy320.js?v=VERSION_NUMBER","./store-legacy7.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./index-legacy106.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./index-legacy49.js?v=VERSION_NUMBER","./index-legacy111.js?v=VERSION_NUMBER","./store-legacy3.js?v=VERSION_NUMBER","./store-legacy4.js?v=VERSION_NUMBER","./hooks-legacy.js?v=VERSION_NUMBER"],(function(t,r){"use strict";var o,a,i,u,c,s,l,f,h,p,y,d,v,m,g,w,b,x,_,j,E,k,O,S,V;return{setters:[function(t){o=t.c,a=t.s,i=t.h,u=t.r,c=t.o,s=t.k,l=t.l,f=t.e,h=t.x,p=t.p,y=t.y,d=t.q,v=t.aj,m=t.a7,g=t.a4},function(t){w=t._},function(t){b=t.u,x=t.J,_=t.l,j=t.b,E=t.e},function(t){k=t.aV,O=t.aW},function(t){S=t.H},function(t){V=t.H},null,null,null,null,null,null,null,null],execute:function(){var r={class:"p-[2rem]"},T={class:"tip"},G=o({__name:"index",emits:["close"],setup:function(t,o){var E=o.expose,G=o.emit,P=S(),N=V(),F=a(P).repairTypeActive,I=a(N).isMalwareConfirm,A=G,C=b().payment.value.authType,H=j(),U=i({cycle:"0",channel:[],status:!1}),q=u(),D=u(!1),J=function(){var t=n(e().mark((function t(){var r,n,o,a=arguments;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>0&&void 0!==a[0]&&a[0],t.next=3,k();case 3:n=t.sent,o=n.data,U.cycle=o.cycle,U.channel=""===o.channel?[]:o.channel.split(","),U.status=!!o.status,r&&H.success("刷新成功");case 9:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),M=function(){var t=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("ltd"===C){t.next=2;break}return t.abrupt("return",H.error("抱歉!该功能为企业版专享功能!"));case 2:if(U.channel=U.channel.filter((function(t){return t})),(r=U.channel.join(","))||!U.status){t.next=7;break}return H.error("请选择告警方式"),t.abrupt("return");case 7:return t.next=9,q.value.validate();case 9:x({loading:D,request:O({day:Number(U.cycle),channel:r,status:U.status?1:0}),message:!0,success:function(t){t.status&&(J(),"overview"===F.value&&(I.value=!0,N.capabilitySwitch.vul_scan.status=U.status,N.getSafeOverviewData()),A("close"))}});case 10:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return E({onConfirm:M}),c((function(){J()})),function(t,e){var n=v,o=m,a=_,i=w,u=g;return s(),l("div",r,[f(u,{model:p(U),ref_key:"safeScanForm",ref:q,disabled:p(D)},{default:h((function(){return[f(o,{label:"自动扫描"},{default:h((function(){return[f(n,{modelValue:p(U).status,"onUpdate:modelValue":e[0]||(e[0]=function(t){return p(U).status=t})},null,8,["modelValue"])]})),_:1}),f(o,{label:"周期",prop:"cycle"},{default:h((function(){return[f(a,{class:"!w-[14rem]",modelValue:p(U).cycle,"onUpdate:modelValue":e[1]||(e[1]=function(t){return p(U).cycle=t}),min:0,type:"number",textType:"天"},{append:h((function(){return e[4]||(e[4]=[y(" 天 ")])})),_:1},8,["modelValue"])]})),_:1}),f(o,{label:"告警方式",prop:"give"},{default:h((function(){return[f(i,{class:"!w-[36rem]",modelValue:p(U).channel,"onUpdate:modelValue":e[2]||(e[2]=function(t){return p(U).channel=t}),limit:["sms","wx_account"]},null,8,["modelValue"])]})),_:1})]})),_:1},8,["model","disabled"]),d("div",T,[d("ul",null,[d("li",null,[e[5]||(e[5]=y(" 点击配置后状态未更新,尝试点击【 ")),d("span",{class:"text-[#20a53a] hover:text-[#1d9534] cursor-pointer",onClick:e[3]||(e[3]=function(t){return J(!0)})},"手动刷新"),e[6]||(e[6]=y(" 】 "))])])])])}}});t("default",E(G,[["__scopeId","data-v-be713e21"]]))}}}))}();
Save File
Cancel