Viewing File: /usr/local/cpanel/base/frontend/jupiter/imunify/assets/static/common-es5.1fcd5ba880d0eaebdd15.js

!function(){function n(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var e=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null==e)return;var o,l,r=[],i=!0,u=!1;try{for(e=e.call(n);!(i=(o=e.next()).done)&&(r.push(o.value),!t||r.length!==t);i=!0);}catch(a){u=!0,l=a}finally{try{i||null==e.return||e.return()}finally{if(u)throw l}}return r}(n,t)||e(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(n,t){var o="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(!o){if(Array.isArray(n)||(o=e(n))||t&&n&&"number"==typeof n.length){o&&(n=o);var l=0,r=function(){};return{s:r,n:function(){return l>=n.length?{done:!0}:{done:!1,value:n[l++]}},e:function(n){throw n},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,a=!1;return{s:function(){o=o.call(n)},n:function(){var n=o.next();return u=n.done,n},e:function(n){a=!0,i=n},f:function(){try{u||null==o.return||o.return()}finally{if(a)throw i}}}}function e(n,t){if(n){if("string"==typeof n)return o(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?o(n,t):void 0}}function o(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,o=new Array(t);e<t;e++)o[e]=n[e];return o}function l(n,t){return(l=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function r(n){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}();return function(){var e,o=u(n);if(t){var l=u(this).constructor;e=Reflect.construct(o,arguments,l)}else e=o.apply(this,arguments);return i(this,e)}}function i(n,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(n)}function u(n){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function a(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function c(n,t){for(var e=0;e<t.length;e++){var o=t[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,o.key,o)}}function s(n,t,e){return t&&c(n.prototype,t),e&&c(n,e),n}(window.webpackJsonpImunify360=window.webpackJsonpImunify360||[]).push([[0],{"0tbc":function(n,t,e){"use strict";e.d(t,"a",(function(){return o}));var o=function(){function n(t,e){a(this,n),this.route=t,this.licenseService=e,this.description=null}return s(n,[{key:"buy",value:function(){window.open(this.licenseService.license.upgrade_url_360)}}]),n}()},"4myE":function(n,t,e){"use strict";e.d(t,"a",(function(){return o}));var o=function(){function n(){a(this,n)}return s(n,[{key:"log",get:function(){return this._log},set:function(n){var t=this;this._log=n,setTimeout((function(){return t.scrollToBottom()}))}},{key:"scrollToBottom",value:function(){this.logOutput.nativeElement.scrollTop=this.logOutput.nativeElement.scrollHeight}}]),n}()},D7ET:function(n,t,e){"use strict";e.d(t,"a",(function(){return b})),e.d(t,"c",(function(){return g})),e.d(t,"b",(function(){return m}));var o=e("8Y7J"),l=e("XE/z"),r=e("Tj54"),i=e("TSSN"),u=e("SVse"),a=e("dsMX"),c=e("kaJQ"),s=e("YEUz"),d=e("0tbc"),p=e("iInd"),f=e("ec2V"),b=o.xb({encapsulation:0,styles:[['@charset "UTF-8";\n\n.upgrade-needed_component[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%] {\n  margin: 127px auto 42px;\n  width: 179px;\n  height: 168px;\n}\n.upgrade-needed_component[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%] {\n  font-style: normal;\n  font-weight: 700;\n  font-size: 24px;\n  line-height: 31px;\n  color: #535353;\n}\n.upgrade-needed_component[_ngcontent-%COMP%]   .description[_ngcontent-%COMP%] {\n  font-size: 14px;\n  line-height: 24px;\n  color: #535353;\n}\n.upgrade-needed_component[_ngcontent-%COMP%]   .upgrade-button[_ngcontent-%COMP%] {\n  margin-top: 20px;\n  width: 174px;\n  box-shadow: 0 6px 9px 2px #92fad2;\n}\n.upgrade-needed_component[_ngcontent-%COMP%]   .upgrade-button[_ngcontent-%COMP%]:hover {\n  color: white;\n  text-decoration: none;\n}\n.upgrade-needed_component[_ngcontent-%COMP%]   .upgrade-button[_ngcontent-%COMP%]     div {\n  height: 40px;\n}\n.col-sm-12[_ngcontent-%COMP%] {\n  display: flex;\n  align-items: center;\n  flex-direction: column;\n}']],data:{}});function g(n){return o.bc(0,[(n()(),o.zb(0,0,null,null,18,"div",[["class","card-container upgrade-needed_component"]],null,null,null,null,null)),(n()(),o.zb(1,0,null,null,17,"div",[["class","row text-center"]],null,null,null,null,null)),(n()(),o.zb(2,0,null,null,16,"div",[["class","col-sm-12"]],null,null,null,null,null)),(n()(),o.zb(3,0,null,null,1,"mat-icon",[["class","mat-icon notranslate"],["role","img"],["svgIcon","rocket"]],[[1,"data-mat-icon-type",0],[1,"data-mat-icon-name",0],[1,"data-mat-icon-namespace",0],[2,"mat-icon-inline",null],[2,"mat-icon-no-color",null]],null,null,l.b,l.a)),o.yb(4,8634368,null,0,r.b,[o.l,r.d,[8,null],r.a,o.m],{svgIcon:[0,"svgIcon"]},null),(n()(),o.zb(5,0,null,null,2,"p",[["class","title"],["translate",""]],null,null,null,null,null)),o.yb(6,8536064,null,0,i.f,[i.l,o.l,o.h],{translate:[0,"translate"]},null),(n()(),o.Yb(-1,null,["upgradeNeeded.title"])),(n()(),o.zb(8,0,null,null,3,"p",[["class","description"],["translate",""]],null,null,null,null,null)),o.yb(9,8536064,null,0,i.f,[i.l,o.l,o.h],{translate:[0,"translate"]},null),(n()(),o.Yb(10,null,["",""])),o.Qb(131072,u.b,[o.h]),(n()(),o.zb(12,0,null,null,6,"a",[["class","upgrade-button"],["i360-button",""],["target","_blank"]],[[8,"href",4],[1,"disabled",0]],null,null,a.b,a.a)),o.yb(13,1622016,null,3,c.a,[s.e,o.F,o.l],{primary:[0,"primary"],round:[1,"round"]},null),o.Ub(335544320,1,{prefix:0}),o.Ub(335544320,2,{suffix:0}),o.Ub(335544320,3,{icon:0}),(n()(),o.Yb(17,0,[" "," "])),o.Qb(131072,i.k,[i.l,o.h])],(function(n,t){n(t,4,0,"rocket"),n(t,6,0,""),n(t,9,0,""),n(t,13,0,!0,!0)}),(function(n,t){var e=t.component;n(t,3,0,o.Ob(t,4)._usingFontIcon()?"font":"svg",o.Ob(t,4)._svgName||o.Ob(t,4).fontIcon,o.Ob(t,4)._svgNamespace||o.Ob(t,4).fontSet,o.Ob(t,4).inline,"primary"!==o.Ob(t,4).color&&"accent"!==o.Ob(t,4).color&&"warn"!==o.Ob(t,4).color);var l=null;n(t,10,0,e.description||(null==(l=o.Zb(t,10,0,o.Ob(t,11).transform(e.route.data)))?null:l.url)),n(t,12,0,o.Gb(1,"",e.licenseService.license.upgrade_url_360,""),o.Ob(t,13).disabled||null),n(t,17,0,o.Zb(t,17,0,o.Ob(t,18).transform("upgradeNeeded.upgrade")))}))}var m=o.vb("upgrade-needed",d.a,(function(n){return o.bc(0,[(n()(),o.zb(0,0,null,null,1,"upgrade-needed",[],null,null,null,g,b)),o.yb(1,49152,null,0,d.a,[p.a,f.LicenseService],null,null)],null,null)}),{description:"description"},{},[])},GsuZ:function(n,t,e){"use strict";e.d(t,"a",(function(){return o}));var o=function n(){a(this,n),this.title=""}},"IL+8":function(n,t,e){"use strict";e.d(t,"a",(function(){return p})),e.d(t,"b",(function(){return f}));var o=e("8Y7J"),l=e("ZFy/"),r=e("1O3W"),i=e("7KAL"),u=e("SCoL"),a=e("YEUz"),c=e("9gLZ"),s=e("SVse"),d=e("BFRt"),p=o.xb({encapsulation:0,styles:["[_nghost-%COMP%] {\n            display: flex;\n            max-width: 100%;\n        }\n        span[_ngcontent-%COMP%] {\n            text-overflow: ellipsis;\n            overflow: hidden;\n            white-space: nowrap;\n        }"],data:{}});function f(n){return o.bc(0,[o.Ub(402653184,1,{container:0}),o.Ub(402653184,2,{matTooltip:0}),(n()(),o.zb(2,16777216,[[1,0],["container",1]],null,2,"span",[["class","mat-tooltip-trigger"],["matTooltipClass","wide-tooltip"]],null,null,null,null,null)),o.yb(3,4341760,[[2,4]],0,l.d,[r.c,o.l,i.b,o.Q,o.A,u.a,a.c,a.e,l.b,[2,c.b],[2,l.a],s.d],{message:[0,"message"],tooltipClass:[1,"tooltipClass"]},null),(n()(),o.Yb(4,null,[" "," "]))],(function(n,t){var e=t.component;n(t,3,0,e.showTooltip?e.tooltip||e.text:"","wide-tooltip")}),(function(n,t){n(t,4,0,t.component.text)}))}d.a},LGgT:function(n,t,e){"use strict";e.d(t,"a",(function(){return o}));var o=function n(){a(this,n)}},U7V5:function(n,t,e){"use strict";e.d(t,"a",(function(){return o}));var o=function n(){a(this,n)}},Xtn7:function(n,t,e){"use strict";e.d(t,"a",(function(){return r})),e.d(t,"b",(function(){return i}));var o=e("8Y7J"),l=e("GjBp"),r=o.xb({encapsulation:0,styles:[['@charset "UTF-8";\n\n[_nghost-%COMP%] {\n  height: 23px;\n  display: inline-block;\n}\n[_nghost-%COMP%]   span[_ngcontent-%COMP%] {\n  min-width: 106px;\n  display: inline-block;\n  height: 23px;\n  margin: 0;\n  padding-right: 14px;\n  padding-left: 14px;\n  border-radius: 100px;\n  color: #fff;\n  line-height: 23px;\n  text-align: center;\n}\n[_nghost-%COMP%]:not([color])   span[_ngcontent-%COMP%] {\n  background-color: #299aed;\n}\n[color=black][_nghost-%COMP%]   span[_ngcontent-%COMP%] {\n  background-color: #000;\n}\n[color=white][_nghost-%COMP%]   span[_ngcontent-%COMP%] {\n  color: #000;\n  background-color: #fff;\n  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.27);\n}\n[color=gray][_nghost-%COMP%]   span[_ngcontent-%COMP%] {\n  background-color: #9f9f9f;\n}\na[_nghost-%COMP%]:hover   span[_ngcontent-%COMP%], a   [_nghost-%COMP%]:hover   span[_ngcontent-%COMP%] {\n  text-decoration: underline;\n}']],data:{}});function i(n){return o.bc(0,[(n()(),o.zb(0,0,null,null,1,"span",[["class","text-nowrap"]],null,null,null,null,null)),o.Nb(null,0)],null,null)}l.a},cXmL:function(n,t,e){"use strict";e.d(t,"a",(function(){return u})),e.d(t,"b",(function(){return a}));var o=e("8Y7J"),l=e("XE/z"),r=e("Tj54"),i=e("GsuZ"),u=o.xb({encapsulation:0,styles:[['@charset "UTF-8";\n\n.blocked-ui-message[_ngcontent-%COMP%] {\n  text-align: center;\n  max-width: 100%;\n}\n.blocked-ui-message[_ngcontent-%COMP%]   div[role=heading][_ngcontent-%COMP%] {\n  font-size: 22px;\n  margin: 0;\n  line-height: 2.44;\n}\n.blocked-ui-message[_ngcontent-%COMP%]   .logo-grey[_ngcontent-%COMP%] {\n  margin: 0 auto;\n  width: 80px;\n  height: 80px;\n}']],data:{}});function a(n){return o.bc(0,[(n()(),o.zb(0,0,null,null,5,"div",[["class","blocked-ui-message"]],null,null,null,null,null)),(n()(),o.zb(1,0,null,null,1,"mat-icon",[["class","logo-grey mat-icon notranslate"],["role","img"],["svgIcon","logo-grey"]],[[1,"data-mat-icon-type",0],[1,"data-mat-icon-name",0],[1,"data-mat-icon-namespace",0],[2,"mat-icon-inline",null],[2,"mat-icon-no-color",null]],null,null,l.b,l.a)),o.yb(2,8634368,null,0,r.b,[o.l,r.d,[8,null],r.a,o.m],{svgIcon:[0,"svgIcon"]},null),(n()(),o.zb(3,0,null,null,1,"div",[["aria-level","1"],["role","heading"]],null,null,null,null,null)),(n()(),o.Yb(4,null,["",""])),o.Nb(null,0)],(function(n,t){n(t,2,0,"logo-grey")}),(function(n,t){var e=t.component;n(t,1,0,o.Ob(t,2)._usingFontIcon()?"font":"svg",o.Ob(t,2)._svgName||o.Ob(t,2).fontIcon,o.Ob(t,2)._svgNamespace||o.Ob(t,2).fontSet,o.Ob(t,2).inline,"primary"!==o.Ob(t,2).color&&"accent"!==o.Ob(t,2).color&&"warn"!==o.Ob(t,2).color),n(t,4,0,e.title)}))}i.a},ihAH:function(n,t,e){"use strict";e.d(t,"a",(function(){return o}));var o=function n(){a(this,n)}},p00b:function(n,t,e){"use strict";e.d(t,"a",(function(){return i}));var o=e("vkgz"),l=e("lJxs"),r=e("Au5I"),i=function(){function n(t,e){a(this,n),this.userFeaturesStatusService=t,this.router=e}return s(n,[{key:"canActivate",value:function(n,t){var e=this;return this.userFeaturesStatusService.hasEnabledFeatures.pipe(Object(o.a)((function(n){n||e.router.navigate(e.userFeaturesStatusService.featuresDisabledCommands)})))}},{key:"canActivateChild",value:function(n,t){var e=this;return this.userFeaturesStatusService.clientFeatures.pipe(Object(l.a)((function(t){var o=n.data.feature;if(t[o]===r.a.na){var l=(n.parent.routeConfig.children||[]).find((function(n){return!!n.data&&t[n.data.feature]!==r.a.na}));return l&&e.router.navigate(e.userFeaturesStatusService.getDisabledRouteCommands(l)),!1}return!0})))}}]),n}()},pu9V:function(n,t,e){"use strict";e.d(t,"a",(function(){return o}));var o=function n(t){a(this,n),this.appState=t,this.screenshotName=""}},tZw9:function(n,t,e){"use strict";e.d(t,"a",(function(){return i})),e.d(t,"b",(function(){return a}));var o=e("8Y7J"),l=e("SVse"),r=e("4myE"),i=o.xb({encapsulation:0,styles:[['@charset "UTF-8";\n\n\n\n.log_output[_ngcontent-%COMP%] {\n  border: solid 1px #e8e8e8;\n  margin-bottom: 29px;\n  height: 290px;\n  overflow-y: scroll;\n  overflow-x: hidden;\n  scroll-behavior: smooth;\n}\n.ltr[_nghost-%COMP%]   .log_output[_ngcontent-%COMP%], .ltr   [_nghost-%COMP%]   .log_output[_ngcontent-%COMP%] {\n  padding: 16px 29px 22px 20px;\n}\n.rtl[_nghost-%COMP%]   .log_output[_ngcontent-%COMP%], .rtl   [_nghost-%COMP%]   .log_output[_ngcontent-%COMP%] {\n  padding: 16px 20px 22px 29px;\n}\n.inner_log_output[_ngcontent-%COMP%] {\n  font-family: monospace, monospace;\n  font-size: 13px;\n  color: #333333;\n  white-space: pre-line;\n  word-break: break-word;\n}']],data:{}});function u(n){return o.bc(0,[(n()(),o.zb(0,0,null,null,0,"span",[],[[8,"innerHTML",1]],null,null,null,null))],null,(function(n,t){n(t,0,0,t.context.$implicit.text)}))}function a(n){return o.bc(0,[o.Ub(402653184,1,{logOutput:0}),(n()(),o.zb(1,0,[[1,0],["logOutput",1]],null,3,"div",[["class","log_output"]],null,null,null,null,null)),(n()(),o.zb(2,0,null,null,2,"div",[["class","inner_log_output"]],null,null,null,null,null)),(n()(),o.ib(16777216,null,null,1,null,u)),o.yb(4,278528,null,0,l.n,[o.Q,o.N,o.t],{ngForOf:[0,"ngForOf"]},null)],(function(n,t){n(t,4,0,t.component.log)}),null)}r.a},tnPm:function(n,t,e){"use strict";e.d(t,"a",(function(){return r})),e.d(t,"b",(function(){return i}));var o=e("8Y7J"),l=e("pu9V"),r=(e("lgOS"),o.xb({encapsulation:0,styles:[['@charset "UTF-8";\n\n\n[_nghost-%COMP%] {\n  display: inline-block;\n}\n.buy_license_screenshot[_ngcontent-%COMP%] {\n  border: 1px solid #f4f5f7;\n  border-radius: 10px 10px 0 0;\n}\n.buy_license_screenshot[_ngcontent-%COMP%]   .screenshot_toolbar[_ngcontent-%COMP%] {\n  display: block;\n  height: 29px;\n  background: #f4f5f7;\n  border-radius: 10px 10px 0 0;\n  margin-bottom: 20px;\n}\n.buy_license_screenshot[_ngcontent-%COMP%]   .screenshot_toolbar[_ngcontent-%COMP%]   .screenshot_button[_ngcontent-%COMP%] {\n  display: inline-block;\n  width: 8px;\n  height: 8px;\n  margin: 10px 2px;\n  border-radius: 8px;\n}\n.buy_license_screenshot[_ngcontent-%COMP%]   .screenshot_toolbar[_ngcontent-%COMP%]   .screenshot_button[_ngcontent-%COMP%]:nth-child(1) {\n  margin-left: 15px;\n  background: #ff635a;\n}\n.buy_license_screenshot[_ngcontent-%COMP%]   .screenshot_toolbar[_ngcontent-%COMP%]   .screenshot_button[_ngcontent-%COMP%]:nth-child(2) {\n  background: #febb2e;\n}\n.buy_license_screenshot[_ngcontent-%COMP%]   .screenshot_toolbar[_ngcontent-%COMP%]   .screenshot_button[_ngcontent-%COMP%]:nth-child(3) {\n  background: #2fc843;\n}\n.buy_license_screenshot[_ngcontent-%COMP%]   img[_ngcontent-%COMP%] {\n  box-sizing: border-box;\n  width: 100%;\n  padding: 0 5px;\n}']],data:{}}));function i(n){return o.bc(0,[(n()(),o.zb(0,0,null,null,5,"div",[["class","buy_license_screenshot"]],null,null,null,null,null)),(n()(),o.zb(1,0,null,null,3,"div",[["class","screenshot_toolbar"]],null,null,null,null,null)),(n()(),o.zb(2,0,null,null,0,"span",[["class","screenshot_button"]],null,null,null,null,null)),(n()(),o.zb(3,0,null,null,0,"span",[["class","screenshot_button"]],null,null,null,null,null)),(n()(),o.zb(4,0,null,null,0,"span",[["class","screenshot_button"]],null,null,null,null,null)),(n()(),o.zb(5,0,null,null,0,"img",[],[[8,"src",4]],null,null,null,null))],null,(function(n,t){var e=t.component;n(t,5,0,e.appState.imagePath+"/"+e.screenshotName+".png")}))}l.a},xJY0:function(e,o,i){"use strict";i.d(o,"a",(function(){return p}));var u=i("mrSG"),c=i("l5pG"),d=i("njtI");i("dG3u"),i("zDAv");var p=function(e){!function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&l(n,t)}(i,e);var o=r(i);function i(n,t,e){var l;return a(this,i),(l=o.call(this,n)).xhr=n,l.modalService=t,l.notifications=e,l.get=l.wrap(l.rxServiceRequest(c.d.getList,!1),c.c),l.addItemIntoList=l.serviceRequest(c.d.addItem,!1),l.deleteItems=l.serviceRequest(c.d.deleteItems),l.editItem=l.serviceRequest(c.d.editItem),l.changeListForIps=l.serviceRequest(c.d.moveItems),l.saveComment=l.serviceRequest(c.d.editComment),l.saveTtl=l.serviceRequest(c.d.editTtl),l.changeFullAccess=l.serviceRequest(c.d.editFullAccess),l.changeScope=l.serviceRequest(c.d.editScope),l}return s(i,[{key:"changeListWithConfirm",value:function(n,t,e){var o=this.getActionAndRequest(n,t,e);return this.confirmListChangeAndNotify(o.request,o.action,n,o.confirmName)}},{key:"changeListWithConfirmFromIncidents",value:function(e,o,l){return Object(u.a)(this,void 0,void 0,regeneratorRuntime.mark((function r(){var i,u,a,c,s,d,p,f,b,g;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i=this.getActionAndRequest([],e[0].list,o,l)){r.next=3;break}return r.abrupt("return",!1);case 3:return u=Array.from(new Set(e.map((function(n){return n.ip})))),r.next=6,this.modalService.confirm(i.confirmName,u);case 6:if(!(a=r.sent)){r.next=35;break}c=t(this.sortIps(e)),r.prev=9,c.s();case 11:if((s=c.n()).done){r.next=23;break}return d=n(s.value,2),p=d[0],f=d[1],b=Array.from(f),g=this.getActionAndRequest(b,p,o),r.prev=14,r.next=17,this.confirmListChangeAndNotify(g.request,g.action,b,null);case 17:r.next=21;break;case 19:r.prev=19,r.t0=r.catch(14);case 21:r.next=11;break;case 23:r.next=28;break;case 25:r.prev=25,r.t1=r.catch(9),c.e(r.t1);case 28:return r.prev=28,c.f(),r.finish(28);case 31:if(r.t2=l,!r.t2){r.next=35;break}return r.next=35,this.editItem({items:u,scope:l,list:o,type:"ip"});case 35:return r.abrupt("return",a);case 36:case"end":return r.stop()}}),r,this,[[9,25,28,31],[14,19]])})))}},{key:"getDefaultMockList",value:function(){return[]}},{key:"sortIps",value:function(n){var e,o=new Map,l=t(n);try{for(l.s();!(e=l.n()).done;){var r=e.value,i=r.list,u=r.ip,a=o.get(i)||new Set;a.add(u),o.set(i,a)}}catch(c){l.e(c)}finally{l.f()}return o}},{key:"getActionAndRequest",value:function(n,t,e,o){var l,r,i,u=this;if(null===t){if(null===e)throw new Error("impossible");l="added",i="add-to-".concat(e),r=function(){return u.addItemIntoList({value:n,list:e,type:"ip"})}}else null!==e?(l="moved",i="add-to-".concat(e),r=function(){return u.changeListForIps({items:n,list:e})}):(l="deleted",i="delete-ip-from-list",r=function(){return u.deleteItems({itemType:"ip",items:n,list:t})});return o&&(i+="-".concat(o,"-scope")),{action:l,confirmName:i,request:r}}},{key:"confirmListChangeAndNotify",value:function(n,t,e,o){return Object(u.a)(this,void 0,void 0,regeneratorRuntime.mark((function l(){return regeneratorRuntime.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(l.t1=o,!l.t1){l.next=5;break}return l.next=4,this.modalService.confirm(o,e);case 4:l.t1=!l.sent;case 5:if(l.t0=!l.t1,!l.t0){l.next=11;break}return l.next=9,n();case 9:this.notifications.success("notifications.ipAction",null,{count:e.length,action:t}),l.t0=!0;case 11:return l.abrupt("return",l.t0);case 12:case"end":return l.stop()}}),l,this)})))}}]),i}(d.a)},zDAv:function(n,t,e){"use strict";e.d(t,"a",(function(){return u}));var o=e("wK6y"),l=e("l5pG");l.b.group;var r={no_captcha:!1,ip:"1.1.210.66",ctime:1522908698,deep:4,listname:"WHITE",manual:!0,auto_whitelisted:!1,comment:"Special for blacklist",country:{name:"Thailand",code:"TH"},version:4,scope:null,full_access:null,network_address:16896578,netmask:4294967295,imported_from:null,expiration:1523037066},i=[Object.assign(Object.assign({},r),{comment:null,scope:l.b.group,manual:!1}),Object.assign(Object.assign({},r),{ip:"1234:5678:9abc::",country:{},listname:"GRAY",scope:l.b.local}),Object.assign(Object.assign({},r),{ip:"1234:5678:9abc:def0::",full_access:!0,country:{},listname:"GRAY"}),Object.assign(Object.assign({},r),{ip:"10.101.1.14",listname:"GRAY",comment:"Special for blacklist",country:{name:"Thailand",code:"TH",id:"1605651"}}),Object.assign(Object.assign({},r),{ip:"10.101.1.15",country:null,listname:"GRAY",comment:"Special for blacklist"}),Object.assign(Object.assign({},r),{ip:"10.101.1.58",country:{name:"Brazil",code:"BR"},listname:"GRAY"}),Object.assign(Object.assign({},r),{ip:"11.11.11.11",country:{name:"United States of America",code:"US"},listname:"GRAY"}),Object.assign(Object.assign({},r),{ip:"11.11.11.11/32",country:{name:"Ukraine",code:"UA"},listname:"BLACK"})],u={ipAlreadyExists:{data:{messages:["IP 1.162.36.148 is already in GRAY list","Imunify360 protection is running concurrently with cPHulk"],result:"warnings"}},groupId:{status:"ok",group_id:"groupId"},list:{data:Object.assign(Object.assign({},o.a),{max_count:11,items:i,counts:{white:23,gray:434,black:34,"blocked-ports":0}})},listsPagination:{data:Object.assign(Object.assign({},o.a),{max_count:999,items:[].concat(i,i,i,i),counts:{white:23,gray:434,black:34,"blocked-ports":0}})},blacklist:{data:Object.assign(Object.assign({},o.a),{max_count:11,items:[{imported_from:null,ip:"10.101.1.58",no_captcha:!1,ctime:1522908698,deep:4,manual:!0,listname:"GRAY",auto_whitelisted:!1,comment:"Special for blacklist",country:{name:"Thailand",code:"TH",id:"1605651"},version:4,full_access:null,network_address:16896578,netmask:4294967295,expiration:1523037066}],counts:{white:23,gray:44,black:35,"blocked-ports":4}})}}}}])}();
Back to Directory File Manager