Viewing File: /usr/local/cpanel/base/frontend/jupiter/imunify/assets/static/main.a8177042c33c3d6f3286.js
!function(c){function t(t){for(var e,n,r=t[0],o=t[1],i=t[2],a=0,u=[];a<r.length;a++)l[n=r[a]]&&u.push(l[n][0]),l[n]=0;for(e in o)Object.prototype.hasOwnProperty.call(o,e)&&(c[e]=o[e]);for(d&&d(t);u.length;)u.shift()();return f.push.apply(f,i||[]),s()}function s(){for(var t,e=0;e<f.length;e++){for(var n=f[e],r=!0,o=1;o<n.length;o++)0!==l[n[o]]&&(r=!1);r&&(f.splice(e--,1),t=p(p.s=n[0]))}return t}var n={},l={22:0},f=[];function p(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return c[t].call(e.exports,e,e.exports,p),e.l=!0,e.exports}p.e=function(i){var t,e=[],n=l[i];if(0!==n)if(n)e.push(n[2]);else{var r=new Promise(function(t,e){n=l[i]=[t,e]});e.push(n[2]=r);var o,a=document.getElementsByTagName("head")[0],u=document.createElement("script");u.charset="utf-8",u.timeout=120,p.nc&&u.setAttribute("nonce",p.nc),u.src=p.p+""+({0:"default~app-core-admin-module-ngfactory~app-core-client-module-ngfactory",1:"default~app-components-av-av-module-ngfactory~app-components-dashboard-dashboard-module-ngfactory~ap~ef745755",2:"default~app-components-av-av-module-ngfactory~app-components-dashboard-dashboard-module-ngfactory~ap~d0237743",3:"default~app-components-av-av-module-ngfactory~app-components-dashboard-dashboard-module-ngfactory~ap~5ca290bd",4:"default~app-components-av-av-module-ngfactory~app-components-dashboard-dashboard-module-ngfactory~ap~c9079874",5:"default~app-components-av-av-module-ngfactory~app-components-login-login-module-ngfactory~app-compon~c80d3259",6:"default~app-components-login-login-module-ngfactory~app-components-proactive-defense-module-ngfactor~be763585",7:"default~app-components-av-av-module-ngfactory~app-core-admin-module-ngfactory~app-core-client-module~6b720ff5",8:"default~app-components-av-av-module-ngfactory~app-core-admin-module-ngfactory",9:"app-components-av-av-module-ngfactory",10:"app-components-dashboard-dashboard-module-ngfactory",11:"app-components-eula-eula-module-ngfactory",12:"app-components-features-disabled-features-disabled-module-ngfactory",13:"app-components-installation-installation-module-ngfactory",14:"app-components-login-login-module-ngfactory",15:"app-components-proactive-defense-module-ngfactory",16:"app-components-reputation-reputation-module-ngfactory",17:"app-components-settings-notifications-settings-notification-module-ngfactory",18:"app-components-showcase-showcase-module-ngfactory",19:"app-components-support-support-module-ngfactory",20:"app-core-admin-module-ngfactory",21:"app-core-client-module-ngfactory"}[t=i]||t)+"."+{0:"813ebed074d7b0df4194",1:"3b4ba2dec7738c13179e",2:"73ad5eb4295885aadc6f",3:"7a2cd7fe1e2a3c761bfc",4:"7e4b325d89f989ee1b33",5:"5d899364d25e36728066",6:"b56f1cf0a434645676b6",7:"0d4a2054d72c1532feaa",8:"dba71194012950ce9325",9:"4b36ee8d5a73fe4c5433",10:"7c3d7d1f514c8d3ec90e",11:"04ac87915077447bd204",12:"b17195096782151261ff",13:"81a74884c6f19b44981b",14:"ac9e31c88beba0569e2d",15:"b2cd520b48e7fc099b98",16:"565816aae343c0ee30fe",17:"7b5e7ca618fbcb0c5be5",18:"e36489b5b9d588f31167",19:"3ab475fc65838a074834",20:"84323cd6417ce3de742e",21:"382cbfd08c3257d3c7b8",25:"7e6534e277e20d575064",26:"07709f27c1b0cdc5f4e9",27:"f19f90293599462ba663",28:"be9c5e92eddfb12b118f",29:"5c0e31f2ae096f1d98d7",30:"f21f495dffecb41ecca9",31:"b12cd2336c3bfdf0fb11",32:"fb2049e44c9afbdbfb67",33:"eec17963f50ed8829e1b",34:"64aa78fed8ddd7536394",35:"845d0ab8fa34987de289",36:"8e04bd6bee45da209e3e"}[t]+".js",o=function(t){u.onerror=u.onload=null,clearTimeout(c);var e=l[i];if(0!==e){if(e){var n=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src,o=new Error("Loading chunk "+i+" failed.\n("+n+": "+r+")");o.type=n,o.request=r,e[1](o)}l[i]=void 0}};var c=setTimeout(function(){o({type:"timeout",target:u})},12e4);u.onerror=u.onload=o,a.appendChild(u)}return Promise.all(e)},p.m=c,p.c=n,p.d=function(t,e,n){p.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},p.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},p.t=function(e,t){if(1&t&&(e=p(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(p.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)p.d(n,r,function(t){return e[t]}.bind(null,r));return n},p.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return p.d(e,"a",e),e},p.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},p.p="",p.oe=function(t){throw t};var e=window.webpackJsonpImunify360=window.webpackJsonpImunify360||[],r=e.push.bind(e);e.push=t,e=e.slice();for(var o=0;o<e.length;o++)t(e[o]);var d=r;f.push([0,24]),s()}({0:function(t,e,n){t.exports=n("iTwO")},"1xS/":function(t,e,n){"use strict";n.d(e,"a",function(){return d}),n.d(e,"c",function(){return h}),n.d(e,"b",function(){return g});var i=n("mrSG"),r=n("A7o+"),o=n("pfGN"),u=n("+umK"),a=n("wd/R"),c=n("eDkP"),s=n("Fzqc"),l=n("67Y/"),f=n("NlKi"),p=r.k.prototype.getParsedResult,d="panelLang",h=function(){function t(t){this.value=t}return t.for=function(t){return new this(t||"")},Object.defineProperty(t.prototype,"length",{get:function(){return this.value.length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.value},t}(),m=[/^One or more domains provided do not exist.*/,/^malware\.onDemand\.status.*/,/Path .* should be absolute/,/^IP [0-9a-fA-F\.\/\:]* is already in [A-Z]* list/,/^Country [A-F]* is already in [A-Z]* list/,/^[0-9]*\/[0-9]* ip\(s\) were successfully deleted/,/has host bits set$/,/^Noop: /,/^Authentication failed/,/^User name not found/,/^Feature '[a-zA-Z]*' is disabled for user/,/^\[Errno 104\] Connection reset by peer$/,/^Kernel is unsupported/,/^Can't delete KernelCare, because it's not installed$/,/^Request timeout$/,/^Empty response from socket$/,/^Request processing error$/,/^Licenses limit exceeded$/,/^On-demand scan is already running$/,/Too many open files/,/Connection refused$/,/^400 Client Error: BAD REQUEST for url/];r.k.prototype.getParsedResult=function(t,e,n){if(e instanceof h)return e.value;var r=p.call(this,t,e,n);return r!==e||m.some(function(t){return t.test(e)})||f.captureException(new Error(JSON.stringify({reason:"Can not find translation",key:e,interpolateParams:n}))),r};var g=function(){function t(t,e,n){var r=this;this.translate=t,this.panel=e,this.document=n,this.langs=[{code:"en",moment:"en",name:"English"},{code:"es",moment:"es",name:"Español"},{code:"ru",moment:"ru",name:"Русский"},{code:"ja",moment:"ja",name:"日本語"},{code:"de",moment:"de",name:"Deutsch"},{code:"fr",moment:"fr",name:"Français"},{code:"it",moment:"it",name:"Italiano"},{code:"nl",moment:"nl",name:"Nederlands"},{code:"pt-br",moment:"pt-br",name:"Português"},{code:"tr",moment:"tr",name:"Türkçe"},{code:"zh-cn",moment:"zh-cn",name:"简体中文"}],this.rtlLangs=[],this.html=this.document.querySelector("html"),this.dirContainer=this.html.getElementsByClassName("i360-app")[0],this.panelLang=this.panel.getLang(this.document),this.initLanguages();var o,i=c.c.prototype.create;Object.defineProperty(s.b.prototype,"value",{get:function(){return o},set:u.a}),Object.defineProperty(s.b.prototype,"change",{get:function(){return a},set:u.a});var a=t.onLangChange.pipe(Object(l.a)(function(t){return r.getDir(t.lang)}));a.subscribe(function(t){return o=t}),c.c.prototype.create=function(t){var e=i.call(this,t);return Object.defineProperty(e._config,"direction",{get:function(){return o},set:u.a}),e},this.translate.onLangChange.subscribe(function(t){return r.setMomentLocale(t.lang)}),this.translate.onDefaultLangChange.subscribe(function(){return r.setMomentLocale(r.currentLang)})}return t.prototype.getDir=function(t){return this.rtlLangs.includes(t)?"rtl":"ltr"},t.prototype.use=function(t){localStorage.setItem(o.a,t),(this.logicalLang=t)!==d&&t||(t=this.panelLang),this.currentLang=this.getAppropriateLang(t,this.langs.map(function(t){return t.code}),"en"),this.translate.use(this.currentLang),this.ensureRtl(this.currentLang)},t.prototype.setMomentLocale=function(e){var t=this.langs.find(function(t){return t.code===e});a.locale(e=t?t.moment:e)},t.prototype.t=function(t,e){return this.translate.get(t,e).toPromise()},t.prototype.stream=function(t,e){return this.translate.stream(t,e)},t.prototype.getAppropriateLang=function(t,e,n){if(e.includes(t))return t;var r=i.h(t.split("-"),2),o=r[0];return r[1]&&e.includes(o)?o:n},t.prototype.initLanguages=function(){var t=localStorage.getItem(o.a)||"";this.translate.addLangs(this.langs.map(function(t){return t.code})),this.translate.setDefaultLang("en"),this.use(t)},t.prototype.ensureRtl=function(t){if(this.html){var e=this.getDir(t);this.html.classList.remove("rtl","ltr"),this.html.classList.add(e),this.dirContainer&&(this.dirContainer.dir=e)}},t}()},"58Vl":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t){return!1}},"8YbO":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("1xS/"),o=n("A7o+"),i=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[r.b,o.k]}},t}()},FFKa:function(t,e,n){"use strict";n.d(e,"a",function(){return r});
/*
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Copyright © 2019 Cloud Linux Software Inc.
This software is also available under ImunifyAV commercial license,
see <https://www.imunify360.com/legal/eula>
*/
var r=function(t,e,n){var r=n.value;return n.value=function(t,e){return"POST"===t.method?r.apply(this,[t,e]):e.handle(t)},n}},HASI:function(t,e,n){"use strict";n.r(e),n.d(e,"assetsPath",function(){return o});var r=n("qo03"),o=""+("undefined"==typeof adminAssets?"":"undefined"!=typeof i360role&&i360role===r.b.admin?adminAssets:clientAssets)+("undefined"==typeof staticPath?"static/":staticPath);
/*
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Copyright © 2019 Cloud Linux Software Inc.
This software is also available under ImunifyAV commercial license,
see <https://www.imunify360.com/legal/eula>
*/},MHfa:function(t,e,n){"use strict";n.d(e,"b",function(){return s}),n.d(e,"e",function(){return l}),n.d(e,"c",function(){return o}),n.d(e,"d",function(){return a}),n.d(e,"a",function(){return p});var r,o,i,a,u,c=n("NTVj"),s=function(){function t(){}return t.register=function(t){return new c.c(["register"],{regkey:t})},t.unregister=function(){return new c.c(["unregister"])},t.version=function(){return new c.c(["version"])},t.rstatus=function(){return new c.c(["rstatus"])},t}(),l=function(t){return t[t.imunifyAV=0]="imunifyAV",t[t.imunifyAVPlus=1]="imunifyAVPlus",t[t.imunify360=2]="imunify360",t}({});(i=o||(o={})).imunifyAV="imunifyAV",i.imunifyAVPlus="imunifyAVPlus",i.imunify360Trial="imunify360Trial",i.imunify360="imunify360",(u=a||(a={})).imunifyAV="AV",u.imunify360="360";var f=((r={})[l.imunifyAV]="ImunifyAV",r[l.imunifyAVPlus]="ImunifyAV+",r[l.imunify360]="Imunify360",r),p=function(){function t(t){
/* Effective product (e.g. what logo to use). Depends on PACKAGE and license_type. */
this.product=l.imunifyAV,this.message="",
/**
* In case of upgrade do not propose to enter license key
*/
this.ip_license=!1,Object.assign(this,t),this.redirect_url=t.redirect_url||"",this.product=this.getProduct(),this.productName=f[this.product]}return Object.defineProperty(t.prototype,"cleanupAllowed",{get:function(){return this.product===l.imunify360||this.product===l.imunifyAVPlus&&this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"upgradeAvailable",{get:function(){return this.product<l.imunify360&&this.license_type!==o.imunify360},enumerable:!0,configurable:!0}),
/**
* Applicable only to Package.imunify360 - we block the whole UI there
* if the license is not sufficient.
* While in ImunifyAV we are just forbidding cleanup actions.
*/
t.prototype.isFailed=function(){return"AV"===a.imunify360&&!this.status},t.prototype.hasMessage=function(){return!!this.message},t.prototype.isLimitExceeded=function(){return null!=this.user_count&&this.user_limit<this.user_count},t.prototype.getProduct=function(){switch("AV"){case a.imunify360:return l.imunify360;case a.imunifyAV:return this.license_type&&this.license_type!==o.imunifyAV?l.imunifyAVPlus:l.imunifyAV;default:throw new Error("Unknown package AV")}},t}()},NTVj:function(t,e,n){"use strict";n.d(e,"c",function(){return c}),n.d(e,"b",function(){return s}),n.d(e,"d",function(){return r}),n.d(e,"a",function(){return i});var r,o,i,a,u=n("mrSG"),c=function(){function t(t,e){void 0===e&&(e={}),this.method=t,this.params=e}return t.prototype.toString=function(){return JSON.stringify(this)},t}(),s=function(o){function t(t,e,n){void 0===e&&(e=[]),void 0===n&&(n={});var r=o.call(this,e,n)||this;return r.command=t,r.method=e,r.params=n,r}return u.d(t,o),t}(c);(o=r||(r={})).ERROR="error",o.WARNING="warnings",o.SUCCESS="success",(a=i||(i={})).OK="running",a.INSTALLING="installing",a.NOT_INSTALLED="not_installed",a.FAILED_TO_INSTALL="failed_to_install",a.STOPPED="stopped"},NueE:function(t,e,n){"use strict";var r=n("mrSG"),o=n("njtI"),i=function(){function t(){}return t.start=function(){return{command:"installation",method:["start"],params:{}}},t.status=function(t){return{command:"installation",method:["status"],params:{offset:t.offset,limit:t.limit}}},t}(),a=(n("NTVj"),n("dG3u"),n("CcnG")),u=n("oXuz");n.d(e,"a",function(){return c});
/*
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Copyright © 2019 Cloud Linux Software Inc.
This software is also available under ImunifyAV commercial license,
see <https://www.imunify360.com/legal/eula>
*/
var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.status=t.rxServiceRequest(i.status),t.start=t.serviceRequest(i.start),t}return r.d(t,e),t.prototype.getDefaultMockList=function(){return[]},t.ngInjectableDef=a.U({factory:function(){return new t(a.Y(u.a))},token:t,providedIn:"root"}),t}(o.a)},NxQh:function(t,e,n){var r={"./de.i18n.txt":["Tj6d",25],"./en.i18n.txt":["2cYC",36],"./es.i18n.txt":["SRhA",26],"./fr.i18n.txt":["WcF+",27],"./it.i18n.txt":["AZpl",28],"./ja.i18n.txt":["AQWp",29],"./nl.i18n.txt":["FHlH",30],"./pt-br.i18n.txt":["e++4",31],"./ru.i18n.txt":["d+gH",32],"./tr.i18n.txt":["DQ/Q",33],"./zh-cn.i18n.txt":["WQG/",34]};function o(e){var t=r[e];return t?n.e(t[1]).then(function(){return n.t(t[0],7)}):Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}o.keys=function(){return Object.keys(r)},o.id="NxQh",t.exports=o},Owoi:function(t,e,n){"use strict";n.d(e,"b",function(){return o}),n.d(e,"a",function(){return i});var r=n("NTVj"),o="INVALID_TOKEN",i=function(){function t(){}return t.login=function(t){return new r.c(["login","pam"],t)},t.get=function(t){return new r.c(["login","get"],t)},t}();
/*
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Copyright © 2019 Cloud Linux Software Inc.
This software is also available under ImunifyAV commercial license,
see <https://www.imunify360.com/legal/eula>
*/},Q3PY:function(t,e,n){"use strict";n.d(e,"b",function(){return o}),n.d(e,"a",function(){return i});var r=n("mrSG"),o="noSentryErrorMessage",i=function(e){function n(){var t=e.call(this,o)||this;return t.noSentry=!0,Object.setPrototypeOf(t,n.prototype),t}return r.d(n,e),n}(Error);
/*
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Copyright © 2019 Cloud Linux Software Inc.
This software is also available under ImunifyAV commercial license,
see <https://www.imunify360.com/legal/eula>
*/},UFdA:function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"a",function(){return h});var d=n("mrSG"),r=n("CcnG"),o=n("1xS/"),i=function(){function t(t){this.translate=t,this.notifications=[]}return t.prototype.success=function(t,e,n){return void 0===e&&(e=null),this.add(e||"notifications.success",t,"success",n)},t.prototype.error=function(t,e,n){return void 0===e&&(e=null),this.add(e||"notifications.error",t,"error",n)},t.prototype.warning=function(t,e,n){return void 0===e&&(e=null),this.error(t,e||"notifications.warning",n)},t.prototype.remove=function(e){var n=this;this.notifications=this.notifications.filter(function(t){return!n.equal(t,e)})},t.prototype.add=function(s,l,f,p){return d.b(this,void 0,void 0,function(){var e,n,r,o,i,a,u,c;return d.e(this,function(t){switch(t.label){case 0:return o=h.bind,i={},[4,this.translate.t(s,p)];case 1:return i.title=t.sent(),[4,this.translate.t(l,p)];case 2:r=new(o.apply(h,[void 0,(i.content=t.sent(),i.type=f,i)]));try{for(a=d.j(this.notifications),u=a.next();!u.done;u=a.next())if(this.equal(c=u.value,r))return c.counter++,c.ticks=0,[2]}catch(t){e={error:t}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return r.counter=1,this.notifications.push(r),[2]}})})},t.prototype.equal=function(t,e){return t.type===e.type&&t.title===e.title&&t.content===e.content},t.ngInjectableDef=r.U({factory:function(){return new t(r.Y(o.b))},token:t,providedIn:"root"}),t}(),h=function(){return function(t){this.counter=0,this.ticks=0,this.type=t.type,this.title=t.title,this.content=t.content}}()},dG3u:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("wK6y"),o=function(){function t(){}return t.add=function(t,e){return{api:t,response:e}},t.addFn=function(t,e){return{api:t,response:e}},t.defaultData=r.a,t}()},dqPF:function(t,e){function n(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}n.keys=function(){return[]},(t.exports=n.resolve=n).id="dqPF"},ec2V:function(t,e,n){"use strict";n.r(e),n.d(e,"LicenseService",function(){return m}),n.d(e,"ɵ0",function(){return h});var r=n("mrSG"),i=n("NTVj"),o=n("njtI"),a=n("MHfa"),u=n("26FU"),c=n("pugT"),s=n("xXU7"),l=n("58Vl"),f=n("15JJ"),p=n("Owoi"),d=function(){return{status:!window.i360LicenseFail,license_type:"imunify360",expiration:(Date.now()+1728e5)/1e3,user_limit:10,user_count:11,redirect_url:"https://cln.cloudlinux.com",message:"test message from CLN",upgrade_url:"https://ui-test-server:55555/test/test.html",upgrade_url_360:"https://ui-test-server:55555/test/test.html",ip_license:!1}},h=d,m=function(o){function t(t,e,n){var r=o.call(this,t)||this;return r.request=t,r.router=e,r.authService=n,r.licenseChange=new u.a(new a.a({status:!0})),r.register=r.serviceRequest(a.b.register),r.getToken=r.rxServiceRequest(p.a.get),r.updateTokenSubscription=c.a.EMPTY,r.updateTokenInterval=15e4,r.licenseChange.subscribe(function(t){r.license=t}),r}return r.d(t,o),t.prototype.registerViaPanel=function(){return this.xhr.post(new i.b("applyLicenseFromPanel"))},t.prototype.getLicense=function(t){return new a.a(Object(l.a)(this.constructor.name)?d():t)},t.prototype.checkLicense=function(t){return this.licenseChange.next(this.getLicense(t)),!!this.authService.isClient||(this.license.isFailed()&&"/360/admin/license"!==this.router.url?(this.router.navigate(["/","AV","admin","license"]),!1):((this.license.isFailed()||"/360/admin/license"!==this.router.url)&&(this.license.upgradeAvailable||"/AV/upgrade"!==this.router.url)||this.router.navigate(["/"]),!0))},t.prototype.canActivate=function(t,e){return!this.license.status||(this.router.navigate(["/"]),!1)},t.prototype.getDefaultMockList=function(){return[]},t.prototype.autoUpdateToken=function(){var e=this;this.updateTokenSubscription=Object(s.a)(this.updateTokenInterval).pipe(Object(f.a)(function(){return e.getToken({username:e.authService.username})})).subscribe(function(t){e.authService.setToken(t.data.items)})},t}(o.a)},fGuE:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("26FU"),o=n("VnD/"),i=function(){function t(){this._configChange=new r.a(null),this.configChange=this._configChange.pipe(Object(o.a)(function(t){return null!==t}))}return t.prototype.setConfig=function(t){var e=this;this.config=t,this._configChange.getValue(),t.changes.subscribe(function(t){e._configChange.next(t)})},t.prototype.p=function(t){return null!==t},t}()},iTwO:function(t,e,n){"use strict";n.r(e),n("VSY+");var r=n("mrSG"),c=n("ZYjt"),o=n("CcnG"),i=[];Object(c.i)(),Object(o.V)(),i=r.i(i);var a=function(t){return t},u=(r.i(i),n("jXi5"));n("uWkI"),n("yLV6");
/*
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Copyright © 2019 Cloud Linux Software Inc.
This software is also available under ImunifyAV commercial license,
see <https://www.imunify360.com/legal/eula>
*/
var s=function(){return window},l={float:"never"},f=function(){return function(t,e,n,r){n.isPlesk&&Object(u.c)(),Object(u.e)(t,r,e)}}(),p=n("qo03"),d=function(){return function(t){(this.authService=t).parseToken(),t.role===p.b.none&&t.goToLoginPage()}}(),h=n("pMnS"),m=n("A7o+"),g=function(){return function(){}}(),b=o.qb({encapsulation:2,styles:[],data:{}});function y(t){return o.Mb(0,[(t()(),o.sb(0,0,null,null,3,"div",[["id","i360-404-page"]],null,null,null,null,null)),(t()(),o.sb(1,0,null,null,2,"h1",[["translate",""]],null,null,null,null,null)),o.rb(2,8536064,null,0,m.e,[m.k,o.k,o.h],{translate:[0,"translate"]},null),(t()(),o.Kb(-1,null,["noContent.title"]))],function(t,e){t(e,2,0,"")},null)}function v(t){return o.Mb(0,[(t()(),o.sb(0,0,null,null,1,"no-content",[],null,null,null,y,b)),o.rb(1,49152,null,0,g,[],null,null)],null,null)}var A=o.ob("no-content",g,v,{},{},[]),S=n("ZYCi"),w=o.qb({encapsulation:2,styles:[],data:{}});function j(t){return o.Mb(0,[(t()(),o.sb(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),o.rb(1,212992,null,0,S.r,[S.b,o.Q,o.j,[8,null],o.h],null,null)],function(t,e){t(e,1,0)},null)}function O(t){return o.Mb(0,[(t()(),o.sb(0,0,null,null,1,"app",[],null,null,null,j,w)),o.rb(1,49152,null,0,d,[p.a],null,null)],null,null)}var P=o.ob("app",d,O,{},{},[]),k=n("Ip0R"),L=n("Wf4p"),x=n("NSYL"),C=n("wFw1"),N=n("ihYY"),T=n("t/Na"),_=n("6blF"),I=n("FFKa"),E=function(){function t(t){var e=this;this.authService=t,this.action=function(){return e.authService.isAdmin?adminAction:clientAction}}return t.prototype.intercept=function(t,e){var n=t.url.startsWith("http")?t.url:this.action()+t.url;return e.handle(t.clone({url:n}))},r.c([I.a,r.f("design:type",Function),r.f("design:paramtypes",[T.g,T.f]),r.f("design:returntype",_.a)],t.prototype,"intercept",null),t}(),F=function(){function t(){}return t.prototype.intercept=function(t,e){var n;return t.body instanceof FormData||(n=t.headers.set("Content-type","application/json; charset=utf-8")),e.handle(t.clone({headers:n}))},r.c([I.a,r.f("design:type",Function),r.f("design:paramtypes",[T.g,T.f]),r.f("design:returntype",_.a)],t.prototype,"intercept",null),t}(),V=n("wWNr"),R=n("NTVj"),D=n("G5J1"),M=n("F/XL"),U=n("9Z1F"),q=n("S1nX"),G=n("15JJ"),Y=n("MHfa"),K=n("NueE"),B="/installation/progress/log",J="/installation/progress/slides",X=function(){function t(t,e,n){this.router=t,this.injector=e,this.appState=n}return t.prototype.intercept=function(t,e){var n=this;return e.handle(t).pipe(Object(U.a)(function(t){try{if(t.error.includes("ImportError: No module named")){var e=n.updateAndCheckStatus(R.a.INSTALLING);if(e)return e}if(t.error.includes("System error 2: No such file or directory"))return n.injector.get(p.a).isClient?n.updateAndCheckStatus(R.a.INSTALLING):(n.getInstallationStatus||(n.getInstallationStatus=n.injector.get(K.a).status({offset:0,limit:1}).pipe(Object(q.a)())),n.getInstallationStatus.subscribe()),D.a}catch(t){}throw t}),Object(G.a)(function(t){if(t instanceof T.h){var e=n.updateAndCheckStatus(t.body.status||R.a.OK);if(e)return e}return Object(M.a)(t)}))},t.prototype.reload=function(){location.reload()},t.prototype.updateAndCheckStatus=function(t){switch(this.appState.imunifyStatus=t,this.appState.imunifyStatus){case R.a.OK:return void(this.router.url.startsWith("/installation")&&(this.router.navigate(["/"],{replaceUrl:!0}),this.reload()));case R.a.INSTALLING:return this.router.url.startsWith("/installation")?void 0:(this.router.navigateByUrl(J,{replaceUrl:!0}),D.a);case R.a.NOT_INSTALLED:return"/installation"!==this.router.url?(this.injector.get(p.a).isClient?this.router.navigateByUrl(J,{replaceUrl:!0}):this.router.navigateByUrl("/installation",{replaceUrl:!0}),D.a):void 0;case R.a.FAILED_TO_INSTALL:return"AV"===Y.d.imunify360&&this.router.url!==B?(this.injector.get(p.a).isClient?this.router.navigateByUrl(J,{replaceUrl:!0}):this.router.navigateByUrl(B,{replaceUrl:!0}),D.a):void 0;case R.a.STOPPED:return this.router.navigate(["installation","stopped-service"],{replaceUrl:!0}),D.a;default:return}},r.c([I.a,r.f("design:type",Function),r.f("design:paramtypes",[T.g,T.f]),r.f("design:returntype",_.a)],t.prototype,"intercept",null),t}(),z=n("lgOS"),W=n("eDkP"),H=function(e){function t(){return e.call(this,document)||this}return r.d(t,e),t.prototype._createContainer=function(){e.prototype._createContainer.call(this);var t=document.querySelector(".i360-app app");t&&t.appendChild(this._containerElement)},t}(W.e),Q=n("fGuE"),Z=n("pfGN"),$=n("oXuz"),tt=n("0/uQ"),et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.d(e,t),e.prototype.getTranslation=function(t){return Object(tt.a)(n("NxQh")("./"+t+".i18n.txt"))},e}(m.g),nt=n("1xS/"),rt=n("4af/"),ot=n("Q3PY"),it=n("NlKi"),at=function(){function n(t,e,n,r){var o=this;this.configRef=t,this.panel=e,this.authService=n,this.translateService=r,t.configChange.subscribe(function(t){o.tryInitSentry(t)})}return n.fixPaths=function(t){return t.replace(/https?:\/\/.*\/imunify(?:360)?\/assets\/static\//g,"https://non-existing-domain-for-sentry.cloudlinux.com/").replace(/\.[\w\d]+\.js\b/,".js")},n.prototype.tryInitSentry=function(t){try{t.ERROR_REPORTING.enable?this.initSentry():this.terminateSentry()}catch(t){}},n.prototype.initSentry=function(){it.isSetup()?this.active||(this.active=!0):(it.config("https://238da7813f594a388b852c231f592b25@sentry.cloudlinux.com/27",{instrument:{tryCatch:!1},captureUnhandledRejections:!1,tags:{env:"prod",role:this.authService.role,panel:this.panel.name,lang:this.translateService.currentLang,panelLang:this.translateService.panelLang},ignoreErrors:[ot.b],dataCallback:function(t){t.culprit&&(t.culprit=n.fixPaths(t.culprit));var e=t.stacktrace||t.exception&&t.exception.values[0].stacktrace;e&&e.frames.forEach(function(t){t.filename=n.fixPaths(t.filename)})},maxBreadcrumbs:50,sanitizeKeys:["password","chunk"],autoBreadcrumbs:{xhr:!1}}).install(),rt.report.uninstall(),it.setRelease("5.9.4-1"),this.active=!0)},n.prototype.terminateSentry=function(){it.isSetup()&&(this.active=!1)},n.prototype.handleError=function(t){if(!(t.noSentry||t.rejection&&t.rejection.noSentry)){if(!this.active)throw t;var e=t.originalError;e||(t.originalStack?((e=new Error(t.message)).name=t.name||e.name,e.stack=t.originalStack):e=t),it.captureException(e)}},n}(),ut=function(){function t(t){this.router=t}return t.prototype.canActivate=function(e,t){return r.b(this,void 0,void 0,function(){return r.e(this,function(t){return[2,this.check(e.routeConfig?e.routeConfig.path:void 0)]})})},t.prototype.canLoad=function(t,e){return this.check(t.path)},t.prototype.check=function(e){return r.b(this,void 0,void 0,function(){return r.e(this,function(t){switch(t.label){case 0:return"AV"===e?[3,2]:[4,this.router.navigate(["/","AV"],{replaceUrl:!0})];case 1:return t.sent(),[2,!1];case 2:return[2,!0]}})})},t.ngInjectableDef=o.U({factory:function(){return new t(o.Y(S.m))},token:t,providedIn:"root"}),t}(),ct=function(){function t(t,e){this.authService=t,this.router=e}return t.prototype.canActivate=function(e,t){return r.b(this,void 0,void 0,function(){return r.e(this,function(t){return[2,this.check(e.routeConfig?e.routeConfig.path:void 0)]})})},t.prototype.canLoad=function(t){return this.check(t.path)},t.prototype.check=function(e){return r.b(this,void 0,void 0,function(){return r.e(this,function(t){switch(t.label){case 0:return e===this.authService.role?[3,2]:[4,this.router.navigate(["/","AV",this.authService.role],{replaceUrl:!0})];case 1:return t.sent(),[2,!1];case 2:return[2,!0]}})})},t.ngInjectableDef=o.U({factory:function(){return new t(o.Y(p.a),o.Y(S.m))},token:t,providedIn:"root"}),t}(),st=function(){return function(){}}(),lt=n("8YbO"),ft=n("vrSf"),pt=n("SMsm"),dt=o.pb(f,[d],function(t){return o.zb([o.Ab(512,o.j,o.db,[[8,[h.a,A,P]],[3,o.j],o.y]),o.Ab(5120,S.a,S.C,[S.m]),o.Ab(4608,S.e,S.e,[]),o.Ab(6144,S.g,null,[S.e]),o.Ab(135680,S.s,S.s,[S.m,o.x,o.i,o.r,S.g]),o.Ab(4608,S.f,S.f,[]),o.Ab(5120,S.G,S.y,[S.m,k.C,S.h]),o.Ab(5120,S.i,S.F,[S.D]),o.Ab(5120,o.b,function(t){return[t]},[S.i]),o.Ab(5120,o.v,o.nb,[[3,o.v]]),o.Ab(4608,k.r,k.q,[o.v,[2,k.G]]),o.Ab(5120,o.c,o.kb,[]),o.Ab(5120,o.t,o.lb,[]),o.Ab(5120,o.u,o.mb,[]),o.Ab(6144,o.I,null,[c.c]),o.Ab(4608,c.f,L.c,[[2,L.g],[2,L.l]]),o.Ab(5120,c.d,function(t,e,n,r,o,i,a,u){return[new c.k(t,e,n),new c.p(r),new c.o(o,i,a,u)]},[k.d,o.A,o.C,k.d,k.d,c.f,o.eb,[2,c.g]]),o.Ab(4608,c.e,c.e,[c.d,o.A]),o.Ab(135680,c.n,c.n,[k.d]),o.Ab(4608,c.l,c.l,[c.e,c.n]),o.Ab(5120,x.a,C.e,[]),o.Ab(5120,x.c,C.f,[]),o.Ab(4608,x.b,C.d,[k.d,x.a,x.c]),o.Ab(5120,o.G,C.g,[c.l,x.b,o.A]),o.Ab(6144,c.q,null,[c.n]),o.Ab(4608,o.O,o.O,[o.A]),o.Ab(4608,N.b,C.c,[o.G,c.b]),o.Ab(4608,T.j,T.p,[k.d,o.C,T.n]),o.Ab(4608,T.q,T.q,[T.j,T.o]),o.Ab(5120,T.a,function(t,e,n,r,o){return[t,new E(e),new F,new V.a,new X(n,r,o)]},[T.q,p.a,S.m,o.r,z.a]),o.Ab(4608,T.m,T.m,[]),o.Ab(6144,T.k,null,[T.m]),o.Ab(4608,T.i,T.i,[T.k]),o.Ab(6144,T.b,null,[T.i]),o.Ab(4608,T.f,T.l,[T.b,o.r]),o.Ab(4608,T.c,T.c,[T.f]),o.Ab(5120,"Window",s,[]),o.Ab(4608,W.e,H,[]),o.Ab(1024,S.w,S.A,[[3,S.m]]),o.Ab(512,Q.a,Q.a,[]),o.Ab(512,Z.b,Z.b,[]),o.Ab(256,S.h,{useHash:!0},[]),o.Ab(1024,k.j,S.z,[k.y,[2,k.a],S.h]),o.Ab(512,k.i,k.i,[k.j]),o.Ab(512,p.a,p.a,[$.a,k.i,o.r]),o.Ab(512,m.l,m.l,[]),o.Ab(512,m.g,et,[]),o.Ab(512,m.c,m.f,[]),o.Ab(512,m.i,m.d,[]),o.Ab(512,m.b,m.a,[]),o.Ab(256,m.m,void 0,[]),o.Ab(256,m.n,void 0,[]),o.Ab(512,m.k,m.k,[m.l,m.g,m.c,m.i,m.b,m.m,m.n]),o.Ab(512,nt.b,nt.b,[m.k,Z.b,k.d]),o.Ab(512,at,at,[Q.a,Z.b,p.a,nt.b]),o.Ab(2048,o.l,null,[at]),o.Ab(512,S.D,S.D,[o.r]),o.Ab(1024,o.z,function(){return[S.x()]},[]),o.Ab(1024,o.d,function(t,e){return[S.E(t),c.r(e)]},[S.D,[2,o.z]]),o.Ab(512,o.e,o.e,[[2,o.d]]),o.Ab(131584,o.g,o.g,[o.A,o.eb,o.r,o.l,o.j,o.e]),o.Ab(512,S.u,S.c,[]),o.Ab(512,S.b,S.b,[]),o.Ab(512,o.i,o.i,[]),o.Ab(512,o.x,o.L,[o.i,[2,o.M]]),o.Ab(1024,S.j,function(){return[[{path:"",pathMatch:"full",canActivate:[ut],component:g},{path:"360",canActivate:[ut],canLoad:[ut],children:[{path:"",pathMatch:"full",canActivate:[ct],component:g},{path:"admin",loadChildren:"app/core/admin.module#AdminModule",canActivate:[ct],canLoad:[ct]},{path:"client",loadChildren:"app/core/client.module#ClientModule",canActivate:[ct],canLoad:[ct]}]},{path:"installation",loadChildren:"app/components/installation/installation.module#InstallationModule"},{path:"AV",canActivate:[ut],canLoad:[ut],loadChildren:"app/components/av/av.module#AvModule"},{path:"login",loadChildren:"app/components/login/login.module#LoginModule",canLoad:[p.a]},{path:"showcase",loadChildren:"app/components/showcase/showcase.module#ShowcaseModule"},{path:"**",component:g}]]},[]),o.Ab(1024,S.m,S.B,[o.g,S.u,S.b,k.i,o.r,o.x,o.i,S.j,S.h,[2,S.t],[2,S.l]]),o.Ab(1073742336,S.q,S.q,[[2,S.w],[2,S.m]]),o.Ab(1073742336,st,st,[]),o.Ab(1073742336,k.c,k.c,[]),o.Ab(1073742336,o.f,o.f,[o.g]),o.Ab(1073742336,c.a,c.a,[[3,c.a]]),o.Ab(1073742336,C.b,C.b,[]),o.Ab(1073742336,m.h,m.h,[]),o.Ab(1073742336,lt.a,lt.a,[]),o.Ab(1073742336,T.e,T.e,[]),o.Ab(1073742336,T.d,T.d,[]),o.Ab(1073742336,ft.a,ft.a,[]),o.Ab(512,c.c,c.m,[k.d]),o.Ab(512,z.a,z.a,[]),o.Ab(1073742336,f,f,[pt.d,c.c,Z.b,z.a]),o.Ab(256,o.cb,!0,[]),o.Ab(256,C.a,"BrowserAnimations",[]),o.Ab(256,T.n,"XSRF-TOKEN",[]),o.Ab(256,T.o,"X-XSRF-TOKEN",[]),o.Ab(256,L.h,l,[])])});function ht(){return n.p=n("HASI").assetsPath,c.j().bootstrapModuleFactory(dt).then(a).catch(function(t){})}n.d(e,"main",function(){return ht}),Object(u.d)(ht)},jXi5:function(t,p,d){"use strict";(function(n){d.d(p,"d",function(){return i}),d.d(p,"e",function(){return a}),d.d(p,"a",function(){return s}),d.d(p,"b",function(){return l}),d.d(p,"c",function(){return f});var c=d("mrSG"),t=d("t/Na"),e=d("CcnG");if(n.noConflict(),"undefined"!=typeof Prototype&&Prototype.BrowserFeatures.ElementExtensions){var r=function(e,t){t.each(function(t){n(window).on(e+".bs."+t,function(t){t.target[e]=void 0,setTimeout(function(){delete t.target[e]},0)})})},o=["collapse","dropdown","modal","tooltip","popover","tab"];r("show",o),r("hide",o)}function i(e){switch(document.readyState){case"loading":document.addEventListener("DOMContentLoaded",function t(){document.removeEventListener("DOMContentLoaded",t),e()});break;case"interactive":case"complete":default:e()}}function a(t,e,n){var r,o;try{for(var i=c.j(["fish","aquarium","add-ip","ignore-all","broom","bell","atoms","done","chip","update","clock","dmc","full-access","icon-exclamation","logo-grey","ellipsis","shark","logo-imunify","new-features-management","profile","support","logo-imunifyAV","logo-imunifyAVPlus","logo-imunifyAVPlus-grey","key","icon-question","icon-delete","icon-add","icon-key","icon-bell-in-circle","icon-info","dashboard-no-data-found","read-more","events-notifications","check-circle","shield","undraw-server-down","upgrade-by-key"]),a=i.next();!a.done;a=i.next()){var u=a.value;t.addSvgIcon(u,n.bypassSecurityTrustResourceUrl(e.imagePath+"/"+u+".svg"))}}catch(t){r={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}}var u=function(){function t(t){this.interceptors=t}return t.prototype.intercept=function(t,e){return(this.interceptors||[]).reduceRight(function(e,n){return{handle:function(t){return n.intercept(t,e)}}},e).handle(t)},t}();function s(t){return new u(t)}var l={provide:t.a,multi:!0,useFactory:s,deps:[[new e.K,new e.B,new e.p(t.a)]]};function f(){var i=document.getElementById("forgery_protection_token"),a=["https://api.imunify360.com","https://sentry.cloudlinux.com"],u=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.send=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=!1;try{a.find(function(t){return e.__zone_symbol__xhrURL.startsWith(t)})&&(r=!0)}catch(t){}if(r&&i){i.setAttribute("id","temporary-changed-for-sentry-request");var o=u.apply(this,t);return i.setAttribute("id","forgery_protection_token"),o}return u.apply(this,t)}}}).call(this,d("EVdn"))},lgOS:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("NTVj"),o=function(){return function(){this.version="5.9.4-1",this.imunifyStatus=r.a.OK,this.imagePath=n("HASI").assetsPath+"images",this.refresherEnabled=!1,this.mousePositonY=0}}()},njtI:function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n("mrSG");var r=n("67Y/"),o=(n("dG3u"),n("58Vl"),function(){function t(t){this.xhr=t}return t.prototype.getMock=function(t,e){return null},t.prototype.getDefaultMock=function(t,e){return null},t.prototype.serviceRequest=function(o,i,a){var u=this;return void 0===i&&(i=!0),void 0===a&&(a=!0),function(t,e,n){void 0===e&&(e=i),void 0===n&&(n=a);var r=o(t);return u.xhr.post(r,function(){return u.getMock(r,t)},e,n).toPromise()}},t.prototype.rxServiceRequest=function(o,i,a){var u=this;return void 0===i&&(i=!0),void 0===a&&(a=!0),function(t,e,n){void 0===e&&(e=i),void 0===n&&(n=a);var r=o(t);return u.xhr.post(r,function(){return u.getMock(r,t)},e,n)}},t.prototype.wrap=function(e,o){return function(t){return e(t).pipe(Object(r.a)(function(t){var e=t.data,n=t.result,r=t.messages;return{data:{items:e.items.map(function(t){return new o(t)}),version:e.version,strategy:e.strategy,license:e.license,eula:e.eula,max_count:"max_count"in e?e.max_count:e.items.length},result:n,messages:r}}))}},t}())},oXuz:function(t,e,c){"use strict";var s=c("mrSG"),r=c("CcnG"),u=c("t/Na"),l=c("NTVj"),n=c("XlPw"),f=c("F/XL"),p=c("15JJ"),d=c("9Z1F"),h=c("67Y/"),m=c("1xS/"),o=c("UFdA");
/*
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Copyright © 2019 Cloud Linux Software Inc.
This software is also available under ImunifyAV commercial license,
see <https://www.imunify360.com/legal/eula>
*/
function g(r){return void 0===r&&(r=0),JSON.stringify(this,function(t,e){try{return JSON.stringify(e),e}catch(t){if(3<=r)return"Circular";var n={};return Object.keys(e).forEach(function(t){n[t]=g.call(e[t],r+1)}),n}})}c.d(e,"a",function(){return i});var i=function(){function t(t,e,n){this.http=t,this.injector=e,this.notifications=n,this.loaded=new r.m}return t.prototype._throw=function(t){return Object(n.a)(t)},t.prototype.post=function(n,r,o,i){var a=this;return void 0===r&&(r=function(){return null}),void 0===o&&(o=!0),void 0===i&&(i=!0),Object(f.a)(null).pipe(Object(p.a)(function(){Date.now();var t=r();if(t){var e=a.http.handler.backend.handle;a.http.handler.backend.handle=function(){return a.http.handler.backend.handle=e,t.pipe(Object(p.a)(function(t){return Object(f.a)(new u.h({body:t}))}))}}return a.http.post("",n)})).pipe(Object(d.a)(function(e){return s.b(a,void 0,void 0,function(){return s.e(this,function(t){throw this.showResponseErrors(e),e})})}),Object(h.a)(function(t){var e=t.messages,n={data:t.data,result:t.result,messages:e?"string"==typeof e?[e]:e:[]};switch(a.loaded.emit(),n.result){case l.d.SUCCESS:return n;case l.d.WARNING:throw n.noSentry=!0,o&&a.showResponseErrors(n),n;case l.d.ERROR:throw n.noSentry=!0,i&&a.showResponseErrors(n),n;default:return n}}),Object(d.a)(function(t){return Object.defineProperty(t,"toString",{value:g,enumerable:!1}),a._throw(t)}))},t.prototype.showResponseErrors=function(t){var e,n;if("message"in t){var r=(new DOMParser).parseFromString(t.error,"text/html").body.innerText;"[object Object]"===r&&(r="System error"),this.notifications.error(m.c.for(r.trim()),"notifications."+l.d.ERROR)}else if("messages"in t){var o={};try{var i=c("ec2V").LicenseService;o=this.injector.get(i).license}catch(t){
// license service is not available in login module
}try{for(var a=s.j(t.messages),u=a.next();!u.done;u=a.next())this.notifications.error(u.value,"notifications."+t.result,o)}catch(t){e={error:t}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}}},t.ngInjectableDef=r.U({factory:function(){return new t(r.Y(u.c),r.Y(r.o),r.Y(o.b))},token:t,providedIn:"root"}),t}()},pfGN:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return u});var r="lang",o="DirectAdmin",i="noPanel",a={cPanel:window.location.href.substring(window.location.href.search("/cpsess"),window.location.href.search("cgi"))+"cgi/CloudLinux.cgi",Plesk:"/modules/plesk-lvemanager",DirectAdmin:"/CMD_PLUGINS_ADMIN/lvemanager_spa?iframe=no"},u=function(){function t(){this.defaultScanFolders={cPanel:"/home*/*",Plesk:"/var/www/vhosts/*",DirectAdmin:"/home*/*/",noPanel:"/home"},this.csfInterfaces={cPanel:"../../../cgi/configserver/csf.cgi",Plesk:null,DirectAdmin:null,noPanel:null},this.name=I360_PANEL,this.isPlesk="Plesk"===this.name,this.isCpanel="cPanel"===this.name,this.isDirectAdmin=this.name===o,this.isNoPanel=this.name===i,this.defaultScanFolder=this.defaultScanFolders[this.name],this.csfInterfaceUrl=this.csfInterfaces[this.name],this.linkToLvePhpSelector=a[this.name]+"#/selector"}return t.prototype.getLang=function(t){switch(I360_PANEL){case"Plesk":case"cPanel":return t.querySelector("html").lang;case o:return i360lang;case i:return localStorage.getItem(r)||"";default:return""}},t}()},qo03:function(t,e,n){"use strict";n.d(e,"b",function(){return o}),n.d(e,"a",function(){return y});var o,r,i=n("mrSG"),a=n("26FU"),u=n("F/XL"),c=n("G5J1"),s=n("6blF"),l=n("BOF4"),f=n("ZYCi"),p=n("pfGN"),d=n("15JJ"),h=n("t/Na"),m=n("FFKa"),g=n("Owoi"),b="I360_AUTH_TOKEN";(r=o||(o={})).admin="admin",r.client="client",r.none="none";var y=function(){function t(t,e,n){this.xhr=t,this.location=e,this.injector=n,this.loginChange=new a.a(!1)}return Object.defineProperty(t.prototype,"isAdmin",{get:function(){return this.role===o.admin},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isClient",{get:function(){return this.role===o.client},enumerable:!0,configurable:!0}),t.prototype.logout=function(){this.setToken(""),this.goToLoginPage()},t.prototype.goToLoginPage=function(){var t=this.injector.get(f.m),e=this.location.path(!1),n=e.split("?")[0];t.navigate(["/","login"],{queryParams:{targetUrl:"/login"===n?t.parseUrl(e).queryParams.targetUrl:e}})},t.prototype.addTokenToRequest=function(t){if(t.body){var e=JSON.parse(JSON.stringify(t.body));e.params.jwt=this.getToken(),t=t.clone({body:e})}return t},t.prototype.intercept=function(t,e){var n=this;return this.injector.get(p.b).isNoPanel?this.role!==o.none?(t=this.addTokenToRequest(t),e.handle(t).pipe(Object(d.a)(function(t){return t instanceof h.h&&t.body.messages===g.b?(n.logout(),n.handleLogout()):Object(u.a)(t)}))):(this.goToLoginPage(),this.handleLogout()):e.handle(t)},t.prototype.handleLogout=function(){return c.a},t.prototype.getToken=function(){return localStorage.getItem(b)||""},t.prototype.setToken=function(t){localStorage.setItem(b,t),this.parseToken()},t.prototype.parseToken=function(){if("undefined"!=typeof i360role)this.role=i360role;else{var t=this.injector.get(f.m),e=t.parseUrl(this.location.path(!1)),n=e.queryParams.token;n&&(localStorage.setItem(b,n),delete e.queryParams.token,t.navigateByUrl(e||"/",{replaceUrl:!0}));var r=void 0;try{r=l(this.getToken())}catch(t){r={user_type:o.none,username:""}}this.role=r.user_type,this.username=r.username}this.loginChange.next(this.role!==o.none)},t.prototype.canActivate=function(){return this.canLoad()},t.prototype.canLoad=function(){return this.role===o.none||(this.injector.get(f.m).navigate(["/","AV",this.role],{replaceUrl:!0}),!1)},i.c([m.a,i.f("design:type",Function),i.f("design:paramtypes",[h.g,h.f]),i.f("design:returntype",s.a)],t.prototype,"intercept",null),t}()},uWkI:function(t,e,n){},vrSf:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){return function(){}}()},wK6y:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("mrSG"),o={strategy:"PRIMARY_IDS",version:"testing",eula:null,license:{id:"123",license_type:n("MHfa").c.imunify360,user_count:5,message:"",expiration:null,user_limit:2147483647,status:!0,redirect_url:"https://cln.cloudlinux.com/clweb/public/imconv.xhtml?id=qwertyuiop"}};r.a({},o,{items:[]}),r.a({},o,{items:null})},wWNr:function(t,e,n){"use strict";n.d(e,"a",function(){return f});var o=n("mrSG"),r=n("t/Na"),i=n("XlPw"),a=n("xMyE"),u=n("9Z1F"),c=n("NlKi"),s=function(r){return r&&"object"==typeof r&&Object.entries(r).forEach(function(t){var e=o.h(t,2),n=e[1];"string"==typeof n&&100<n.length&&(r[e[0]]=n.slice(0,100)+"*****"),Array.isArray(n)&&5<n.length&&(n.length=5,n.push("*****")),s(n)}),r},l=function(t){var e=s(JSON.parse(JSON.stringify(t)));c.captureBreadcrumb({message:"XHR finished",category:"action",data:e})},f=function(){function t(){}return t.prototype.intercept=function(e,t){return c.captureBreadcrumb({message:"XHR started",category:"action",data:{requestBody:e.body,url:e.urlWithParams}}),t.handle(e).pipe(Object(a.a)(function(t){t instanceof r.h&&l({responseBody:t.body,requestBody:e.body,url:e.urlWithParams})}),Object(u.a)(function(t){return l(t),c.captureException(t),Object(i.a)(t)}))},t}()},zn8P:function(t,e,n){var r={"app/components/av/av.module.ngfactory":["muZe",0,1,2,3,4,5,7,8,9],"app/components/dashboard/dashboard.module.ngfactory":["efJa",0,1,2,3,4,10],"app/components/eula/eula.module.ngfactory":["nh2z",0,11],"app/components/features-disabled/features-disabled.module.ngfactory":["2AdQ",0,12],"app/components/installation/installation.module.ngfactory":["+T2a",0,1,13],"app/components/login/login.module.ngfactory":["lkoz",0,1,2,3,4,5,6,14],"app/components/proactive-defense/module.ngfactory":["TeY9",0,1,2,3,4,5,6,15],"app/components/reputation/reputation.module.ngfactory":["AELY",0,1,2,3,16],"app/components/settings/notifications/settings-notification.module.ngfactory":["2cZ1",0,1,2,3,4,5,6,17],"app/components/showcase/showcase.module.ngfactory":["KOoM",0,1,2,18],"app/components/support/support.module.ngfactory":["1QHZ",0,1,2,3,19],"app/core/admin.module.ngfactory":["n5AS",0,1,2,3,4,5,6,7,8,20],"app/core/client.module.ngfactory":["WA8r",0,1,2,3,4,5,6,7,21]};function o(e){var t=r[e];return t?Promise.all(t.slice(1).map(n.e)).then(function(){return n(t[0])}):Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}o.keys=function(){return Object.keys(r)},o.id="zn8P",t.exports=o}});
//# sourceMappingURL=main.a8177042c33c3d6f3286.js.map
Back to Directory
File Manager