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

(window.webpackJsonpImunify360=window.webpackJsonpImunify360||[]).push([[0],{"0tbc":function(n,t,l){"use strict";l.d(t,"a",(function(){return e}));class e{constructor(n,t){this.route=n,this.licenseService=t,this.description=null}buy(){window.open(this.licenseService.license.upgrade_url_360)}}},"4myE":function(n,t,l){"use strict";l.d(t,"a",(function(){return e}));class e{set log(n){this._log=n,setTimeout(()=>this.scrollToBottom())}get log(){return this._log}scrollToBottom(){this.logOutput.nativeElement.scrollTop=this.logOutput.nativeElement.scrollHeight}}},D7ET:function(n,t,l){"use strict";l.d(t,"a",(function(){return h})),l.d(t,"c",(function(){return m})),l.d(t,"b",(function(){return _}));var e=l("8Y7J"),o=l("XE/z"),s=l("Tj54"),i=l("TSSN"),u=l("SVse"),c=l("dsMX"),a=l("kaJQ"),r=l("YEUz"),d=l("0tbc"),p=l("iInd"),g=l("ec2V"),b=[['@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}']],h=e.xb({encapsulation:0,styles:b,data:{}});function m(n){return e.bc(0,[(n()(),e.zb(0,0,null,null,18,"div",[["class","card-container upgrade-needed_component"]],null,null,null,null,null)),(n()(),e.zb(1,0,null,null,17,"div",[["class","row text-center"]],null,null,null,null,null)),(n()(),e.zb(2,0,null,null,16,"div",[["class","col-sm-12"]],null,null,null,null,null)),(n()(),e.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,o.b,o.a)),e.yb(4,8634368,null,0,s.b,[e.l,s.d,[8,null],s.a,e.m],{svgIcon:[0,"svgIcon"]},null),(n()(),e.zb(5,0,null,null,2,"p",[["class","title"],["translate",""]],null,null,null,null,null)),e.yb(6,8536064,null,0,i.f,[i.l,e.l,e.h],{translate:[0,"translate"]},null),(n()(),e.Yb(-1,null,["upgradeNeeded.title"])),(n()(),e.zb(8,0,null,null,3,"p",[["class","description"],["translate",""]],null,null,null,null,null)),e.yb(9,8536064,null,0,i.f,[i.l,e.l,e.h],{translate:[0,"translate"]},null),(n()(),e.Yb(10,null,["",""])),e.Qb(131072,u.b,[e.h]),(n()(),e.zb(12,0,null,null,6,"a",[["class","upgrade-button"],["i360-button",""],["target","_blank"]],[[8,"href",4],[1,"disabled",0]],null,null,c.b,c.a)),e.yb(13,1622016,null,3,a.a,[r.e,e.F,e.l],{primary:[0,"primary"],round:[1,"round"]},null),e.Ub(335544320,1,{prefix:0}),e.Ub(335544320,2,{suffix:0}),e.Ub(335544320,3,{icon:0}),(n()(),e.Yb(17,0,[" "," "])),e.Qb(131072,i.k,[i.l,e.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 l=t.component;n(t,3,0,e.Ob(t,4)._usingFontIcon()?"font":"svg",e.Ob(t,4)._svgName||e.Ob(t,4).fontIcon,e.Ob(t,4)._svgNamespace||e.Ob(t,4).fontSet,e.Ob(t,4).inline,"primary"!==e.Ob(t,4).color&&"accent"!==e.Ob(t,4).color&&"warn"!==e.Ob(t,4).color);var o=null;n(t,10,0,l.description||(null==(o=e.Zb(t,10,0,e.Ob(t,11).transform(l.route.data)))?null:o.url)),n(t,12,0,e.Gb(1,"",l.licenseService.license.upgrade_url_360,""),e.Ob(t,13).disabled||null),n(t,17,0,e.Zb(t,17,0,e.Ob(t,18).transform("upgradeNeeded.upgrade")))}))}function f(n){return e.bc(0,[(n()(),e.zb(0,0,null,null,1,"upgrade-needed",[],null,null,null,m,h)),e.yb(1,49152,null,0,d.a,[p.a,g.LicenseService],null,null)],null,null)}var _=e.vb("upgrade-needed",d.a,f,{description:"description"},{},[])},GsuZ:function(n,t,l){"use strict";l.d(t,"a",(function(){return e}));class e{constructor(){this.title=""}}},"IL+8":function(n,t,l){"use strict";l.d(t,"a",(function(){return p})),l.d(t,"b",(function(){return g}));var e=l("8Y7J"),o=l("ZFy/"),s=l("1O3W"),i=l("7KAL"),u=l("SCoL"),c=l("YEUz"),a=l("9gLZ"),r=l("SVse"),d=l("BFRt"),p=e.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 g(n){return e.bc(0,[e.Ub(402653184,1,{container:0}),e.Ub(402653184,2,{matTooltip:0}),(n()(),e.zb(2,16777216,[[1,0],["container",1]],null,2,"span",[["class","mat-tooltip-trigger"],["matTooltipClass","wide-tooltip"]],null,null,null,null,null)),e.yb(3,4341760,[[2,4]],0,o.d,[s.c,e.l,i.b,e.Q,e.A,u.a,c.c,c.e,o.b,[2,a.b],[2,o.a],r.d],{message:[0,"message"],tooltipClass:[1,"tooltipClass"]},null),(n()(),e.Yb(4,null,[" "," "]))],(function(n,t){var l=t.component;n(t,3,0,l.showTooltip?l.tooltip||l.text:"","wide-tooltip")}),(function(n,t){n(t,4,0,t.component.text)}))}function b(n){return e.bc(0,[(n()(),e.zb(0,0,null,null,1,"i360-ellipsis",[],null,null,null,g,p)),e.yb(1,4898816,null,0,d.a,[e.A,e.h],null,null)],null,null)}d.a},LGgT:function(n,t,l){"use strict";l.d(t,"a",(function(){return e}));class e{}},U7V5:function(n,t,l){"use strict";l.d(t,"a",(function(){return e}));class e{}},Xtn7:function(n,t,l){"use strict";l.d(t,"a",(function(){return i})),l.d(t,"b",(function(){return u}));var e=l("8Y7J"),o=l("GjBp"),s=[['@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}']],i=e.xb({encapsulation:0,styles:s,data:{}});function u(n){return e.bc(0,[(n()(),e.zb(0,0,null,null,1,"span",[["class","text-nowrap"]],null,null,null,null,null)),e.Nb(null,0)],null,null)}function c(n){return e.bc(0,[(n()(),e.zb(0,0,null,null,1,"i360-colored-ip",[],[[1,"color",0]],null,null,u,i)),e.yb(1,49152,null,0,o.a,[],null,null)],null,(function(n,t){n(t,0,0,e.Ob(t,1).listName)}))}o.a},cXmL:function(n,t,l){"use strict";l.d(t,"a",(function(){return c})),l.d(t,"b",(function(){return a}));var e=l("8Y7J"),o=l("XE/z"),s=l("Tj54"),i=l("GsuZ"),u=[['@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}']],c=e.xb({encapsulation:0,styles:u,data:{}});function a(n){return e.bc(0,[(n()(),e.zb(0,0,null,null,5,"div",[["class","blocked-ui-message"]],null,null,null,null,null)),(n()(),e.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,o.b,o.a)),e.yb(2,8634368,null,0,s.b,[e.l,s.d,[8,null],s.a,e.m],{svgIcon:[0,"svgIcon"]},null),(n()(),e.zb(3,0,null,null,1,"div",[["aria-level","1"],["role","heading"]],null,null,null,null,null)),(n()(),e.Yb(4,null,["",""])),e.Nb(null,0)],(function(n,t){n(t,2,0,"logo-grey")}),(function(n,t){var l=t.component;n(t,1,0,e.Ob(t,2)._usingFontIcon()?"font":"svg",e.Ob(t,2)._svgName||e.Ob(t,2).fontIcon,e.Ob(t,2)._svgNamespace||e.Ob(t,2).fontSet,e.Ob(t,2).inline,"primary"!==e.Ob(t,2).color&&"accent"!==e.Ob(t,2).color&&"warn"!==e.Ob(t,2).color),n(t,4,0,l.title)}))}function r(n){return e.bc(0,[(n()(),e.zb(0,0,null,null,1,"blocked-ui-message",[],null,null,null,a,c)),e.yb(1,49152,null,0,i.a,[],null,null)],null,null)}i.a},ihAH:function(n,t,l){"use strict";l.d(t,"a",(function(){return e}));class e{}},p00b:function(n,t,l){"use strict";l.d(t,"a",(function(){return i}));var e=l("vkgz"),o=l("lJxs"),s=l("Au5I");class i{constructor(n,t){this.userFeaturesStatusService=n,this.router=t}canActivate(n,t){return this.userFeaturesStatusService.hasEnabledFeatures.pipe(Object(e.a)(n=>{n||this.router.navigate(this.userFeaturesStatusService.featuresDisabledCommands)}))}canActivateChild(n,t){return this.userFeaturesStatusService.clientFeatures.pipe(Object(o.a)(t=>{const l=n.data.feature;if(!(t[l]!==s.a.na)){const l=(n.parent.routeConfig.children||[]).find(n=>!!n.data&&t[n.data.feature]!==s.a.na);return l&&this.router.navigate(this.userFeaturesStatusService.getDisabledRouteCommands(l)),!1}return!0}))}}},pu9V:function(n,t,l){"use strict";l.d(t,"a",(function(){return e}));class e{constructor(n){this.appState=n,this.screenshotName=""}}},tZw9:function(n,t,l){"use strict";l.d(t,"a",(function(){return u})),l.d(t,"b",(function(){return a}));var e=l("8Y7J"),o=l("SVse"),s=l("4myE"),i=[['@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}']],u=e.xb({encapsulation:0,styles:i,data:{}});function c(n){return e.bc(0,[(n()(),e.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 e.bc(0,[e.Ub(402653184,1,{logOutput:0}),(n()(),e.zb(1,0,[[1,0],["logOutput",1]],null,3,"div",[["class","log_output"]],null,null,null,null,null)),(n()(),e.zb(2,0,null,null,2,"div",[["class","inner_log_output"]],null,null,null,null,null)),(n()(),e.ib(16777216,null,null,1,null,c)),e.yb(4,278528,null,0,o.n,[e.Q,e.N,e.t],{ngForOf:[0,"ngForOf"]},null)],(function(n,t){n(t,4,0,t.component.log)}),null)}function r(n){return e.bc(0,[(n()(),e.zb(0,0,null,null,1,"i360-log-box",[],null,null,null,a,u)),e.yb(1,49152,null,0,s.a,[],null,null)],null,null)}s.a},tnPm:function(n,t,l){"use strict";l.d(t,"a",(function(){return u})),l.d(t,"b",(function(){return c}));var e=l("8Y7J"),o=l("pu9V"),s=l("lgOS"),i=[['@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}']],u=e.xb({encapsulation:0,styles:i,data:{}});function c(n){return e.bc(0,[(n()(),e.zb(0,0,null,null,5,"div",[["class","buy_license_screenshot"]],null,null,null,null,null)),(n()(),e.zb(1,0,null,null,3,"div",[["class","screenshot_toolbar"]],null,null,null,null,null)),(n()(),e.zb(2,0,null,null,0,"span",[["class","screenshot_button"]],null,null,null,null,null)),(n()(),e.zb(3,0,null,null,0,"span",[["class","screenshot_button"]],null,null,null,null,null)),(n()(),e.zb(4,0,null,null,0,"span",[["class","screenshot_button"]],null,null,null,null,null)),(n()(),e.zb(5,0,null,null,0,"img",[],[[8,"src",4]],null,null,null,null))],null,(function(n,t){var l=t.component;n(t,5,0,l.appState.imagePath+"/"+l.screenshotName+".png")}))}function a(n){return e.bc(0,[(n()(),e.zb(0,0,null,null,1,"preview-screenshot",[],null,null,null,c,u)),e.yb(1,49152,null,0,o.a,[s.a],null,null)],null,null)}o.a},xJY0:function(n,t,l){"use strict";l.d(t,"a",(function(){return i}));var e=l("mrSG"),o=l("l5pG"),s=l("njtI");l("dG3u"),l("zDAv");class i extends s.a{constructor(n,t,l){super(n),this.xhr=n,this.modalService=t,this.notifications=l,this.get=this.wrap(this.rxServiceRequest(o.d.getList,!1),o.c),this.addItemIntoList=this.serviceRequest(o.d.addItem,!1),this.deleteItems=this.serviceRequest(o.d.deleteItems),this.editItem=this.serviceRequest(o.d.editItem),this.changeListForIps=this.serviceRequest(o.d.moveItems),this.saveComment=this.serviceRequest(o.d.editComment),this.saveTtl=this.serviceRequest(o.d.editTtl),this.changeFullAccess=this.serviceRequest(o.d.editFullAccess),this.changeScope=this.serviceRequest(o.d.editScope)}changeListWithConfirm(n,t,l){const e=this.getActionAndRequest(n,t,l);return this.confirmListChangeAndNotify(e.request,e.action,n,e.confirmName)}changeListWithConfirmFromIncidents(n,t,l){return Object(e.a)(this,void 0,void 0,(function*(){const e=this.getActionAndRequest([],n[0].list,t,l);if(!e)return!1;const o=Array.from(new Set(n.map(n=>n.ip))),s=yield this.modalService.confirm(e.confirmName,o);if(s){for(let[l,e]of this.sortIps(n)){const o=Array.from(e),s=this.getActionAndRequest(o,l,t);try{yield this.confirmListChangeAndNotify(s.request,s.action,o,null)}catch(n){}}l&&(yield this.editItem({items:o,scope:l,list:t,type:"ip"}))}return s}))}getDefaultMockList(){return[]}sortIps(n){let t=new Map;for(let{list:l,ip:e}of n){let n=t.get(l)||new Set;n.add(e),t.set(l,n)}return t}getActionAndRequest(n,t,l,e){let o,s,i;if(null===t){if(null===l)throw new Error("impossible");o="added",i=`add-to-${l}`,s=()=>this.addItemIntoList({value:n,list:l,type:"ip"})}else null!==l?(o="moved",i=`add-to-${l}`,s=()=>this.changeListForIps({items:n,list:l})):(o="deleted",i="delete-ip-from-list",s=()=>this.deleteItems({itemType:"ip",items:n,list:t}));return e&&(i+=`-${e}-scope`),{action:o,confirmName:i,request:s}}confirmListChangeAndNotify(n,t,l,o){return Object(e.a)(this,void 0,void 0,(function*(){return!(o&&!(yield this.modalService.confirm(o,l)))&&(yield n(),this.notifications.success("notifications.ipAction",null,{count:l.length,action:t}),!0)}))}}},zDAv:function(n,t,l){"use strict";l.d(t,"a",(function(){return u}));var e=l("wK6y"),o=l("l5pG");o.b.group;const s={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({},s),{comment:null,scope:o.b.group,manual:!1}),Object.assign(Object.assign({},s),{ip:"1234:5678:9abc::",country:{},listname:"GRAY",scope:o.b.local}),Object.assign(Object.assign({},s),{ip:"1234:5678:9abc:def0::",full_access:!0,country:{},listname:"GRAY"}),Object.assign(Object.assign({},s),{ip:"10.101.1.14",listname:"GRAY",comment:"Special for blacklist",country:{name:"Thailand",code:"TH",id:"1605651"}}),Object.assign(Object.assign({},s),{ip:"10.101.1.15",country:null,listname:"GRAY",comment:"Special for blacklist"}),Object.assign(Object.assign({},s),{ip:"10.101.1.58",country:{name:"Brazil",code:"BR"},listname:"GRAY"}),Object.assign(Object.assign({},s),{ip:"11.11.11.11",country:{name:"United States of America",code:"US"},listname:"GRAY"}),Object.assign(Object.assign({},s),{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({},e.a),{max_count:11,items:i,counts:{white:23,gray:434,black:34,"blocked-ports":0}})},listsPagination:{data:Object.assign(Object.assign({},e.a),{max_count:999,items:[...i,...i,...i,...i],counts:{white:23,gray:434,black:34,"blocked-ports":0}})},blacklist:{data:Object.assign(Object.assign({},e.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