ws-voice-infinity-global-module 1.5.1 → 1.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/assets/localSave/Control.Geocoder.min.js +1 -1
- package/lib/assets/localSave/leaflet.js +5 -5
- package/lib/assets/localSave/lz-string.js +1 -1
- package/lib/module/components/footer/footer.js +1 -1
- package/lib/module/services/topNavMainPageService.js +1 -1
- package/lib/module/services/topNavService.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var LZString=function(){function o(o,r){if(!t[o]){t[o]={};for(var n=0;n<o.length;n++)t[o][o.charAt(n)]=n}return t[o][r]}var r=String.fromCharCode,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",t={},i={compressToBase64:function(o){if(null==o)return"";var r=i._compress(o,6,function(o){return n.charAt(o)});switch(r.length%4){default:case 0:return r;case 1:return r+"===";case 2:return r+"==";case 3:return r+"="}},decompressFromBase64:function(r){return null==r?"":""==r?null:i._decompress(r.length,32,function(e){return o(n,r.charAt(e))})},compressToUTF16:function(o){return null==o?"":i._compress(o,15,function(o){return r(o+32)})+" "},decompressFromUTF16:function(o){return null==o?"":""==o?null:i._decompress(o.length,16384,function(r){return o.charCodeAt(r)-32})},compressToUint8Array:function(o){for(var r=i.compress(o),n=new Uint8Array(2*r.length),e=0,t=r.length;t>e;e++){var s=r.charCodeAt(e);n[2*e]=s>>>8,n[2*e+1]=s%256}return n},decompressFromUint8Array:function(o){if(null===o||void 0===o)return i.decompress(o);for(var n=new Array(o.length/2),e=0,t=n.length;t>e;e++)n[e]=256*o[2*e]+o[2*e+1];var s=[];return n.forEach(function(o){s.push(r(o))}),i.decompress(s.join(""))},compressToEncodedURIComponent:function(o){return null==o?"":i._compress(o,6,function(o){return e.charAt(o)})},decompressFromEncodedURIComponent:function(r){return null==r?"":""==r?null:(r=r.replace(/ /g,"+"),i._decompress(r.length,32,function(n){return o(e,r.charAt(n))}))},compress:function(o){return i._compress(o,16,function(o){return r(o)})},_compress:function(o,r,n){if(null==o)return"";var e,t,i,s={},p={},u="",c="",a="",l=2,f=3,h=2,d=[],m=0,v=0;for(i=0;i<o.length;i+=1)if(u=o.charAt(i),Object.prototype.hasOwnProperty.call(s,u)||(s[u]=f++,p[u]=!0),c=a+u,Object.prototype.hasOwnProperty.call(s,c))a=c;else{if(Object.prototype.hasOwnProperty.call(p,a)){if(a.charCodeAt(0)<256){for(e=0;h>e;e++)m<<=1,v==r-1?(v=0,d.push(n(m)),m=0):v++;for(t=a.charCodeAt(0),e=0;8>e;e++)m=m<<1|1&t,v==r-1?(v=0,d.push(n(m)),m=0):v++,t>>=1}else{for(t=1,e=0;h>e;e++)m=m<<1|t,v==r-1?(v=0,d.push(n(m)),m=0):v++,t=0;for(t=a.charCodeAt(0),e=0;16>e;e++)m=m<<1|1&t,v==r-1?(v=0,d.push(n(m)),m=0):v++,t>>=1}l--,0==l&&(l=Math.pow(2,h),h++),delete p[a]}else for(t=s[a],e=0;h>e;e++)m=m<<1|1&t,v==r-1?(v=0,d.push(n(m)),m=0):v++,t>>=1;l--,0==l&&(l=Math.pow(2,h),h++),s[c]=f++,a=String(u)}if(""!==a){if(Object.prototype.hasOwnProperty.call(p,a)){if(a.charCodeAt(0)<256){for(e=0;h>e;e++)m<<=1,v==r-1?(v=0,d.push(n(m)),m=0):v++;for(t=a.charCodeAt(0),e=0;8>e;e++)m=m<<1|1&t,v==r-1?(v=0,d.push(n(m)),m=0):v++,t>>=1}else{for(t=1,e=0;h>e;e++)m=m<<1|t,v==r-1?(v=0,d.push(n(m)),m=0):v++,t=0;for(t=a.charCodeAt(0),e=0;16>e;e++)m=m<<1|1&t,v==r-1?(v=0,d.push(n(m)),m=0):v++,t>>=1}l--,0==l&&(l=Math.pow(2,h),h++),delete p[a]}else for(t=s[a],e=0;h>e;e++)m=m<<1|1&t,v==r-1?(v=0,d.push(n(m)),m=0):v++,t>>=1;l--,0==l&&(l=Math.pow(2,h),h++)}for(t=2,e=0;h>e;e++)m=m<<1|1&t,v==r-1?(v=0,d.push(n(m)),m=0):v++,t>>=1;for(;;){if(m<<=1,v==r-1){d.push(n(m));break}v++}return d.join("")},decompress:function(o){return null==o?"":""==o?null:i._decompress(o.length,32768,function(r){return o.charCodeAt(r)})},_decompress:function(o,n,e){var t,i,s,p,u,c,a,l,f=[],h=4,d=4,m=3,v="",w=[],A={val:e(0),position:n,index:1};for(i=0;3>i;i+=1)f[i]=i;for(p=0,c=Math.pow(2,2),a=1;a!=c;)u=A.val&A.position,A.position>>=1,0==A.position&&(A.position=n,A.val=e(A.index++)),p|=(u>0?1:0)*a,a<<=1;switch(t=p){case 0:for(p=0,c=Math.pow(2,8),a=1;a!=c;)u=A.val&A.position,A.position>>=1,0==A.position&&(A.position=n,A.val=e(A.index++)),p|=(u>0?1:0)*a,a<<=1;l=r(p);break;case 1:for(p=0,c=Math.pow(2,16),a=1;a!=c;)u=A.val&A.position,A.position>>=1,0==A.position&&(A.position=n,A.val=e(A.index++)),p|=(u>0?1:0)*a,a<<=1;l=r(p);break;case 2:return""}for(f[3]=l,s=l,w.push(l);;){if(A.index>o)return"";for(p=0,c=Math.pow(2,m),a=1;a!=c;)u=A.val&A.position,A.position>>=1,0==A.position&&(A.position=n,A.val=e(A.index++)),p|=(u>0?1:0)*a,a<<=1;switch(l=p){case 0:for(p=0,c=Math.pow(2,8),a=1;a!=c;)u=A.val&A.position,A.position>>=1,0==A.position&&(A.position=n,A.val=e(A.index++)),p|=(u>0?1:0)*a,a<<=1;f[d++]=r(p),l=d-1,h--;break;case 1:for(p=0,c=Math.pow(2,16),a=1;a!=c;)u=A.val&A.position,A.position>>=1,0==A.position&&(A.position=n,A.val=e(A.index++)),p|=(u>0?1:0)*a,a<<=1;f[d++]=r(p),l=d-1,h--;break;case 2:return w.join("")}if(0==h&&(h=Math.pow(2,m),m++),f[l])v=f[l];else{if(l!==d)return null;v=s+s.charAt(0)}w.push(v),f[d++]=s+v.charAt(0),h--,s=v,0==h&&(h=Math.pow(2,m),m++)}}};return i}();"function"==typeof define&&define.amd?define(function(){return LZString}):"undefined"!=typeof module&&null!=module&&(module.exports=LZString);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function _typeof(e){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=_typeof(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _callSuper(e,t,r){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,r||[],_getPrototypeOf(e).constructor):t.apply(e,r))}function _possibleConstructorReturn(e,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 _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.Footer=void 0;var _react=_interopRequireDefault(require("react")),_reactRouterDom=require("react-router-dom"),_globalConfig=require("../../config/globalConfig"),_modules=_interopRequireDefault(require("../../enums/modules")),_footerService=require("../../services/footerService"),_topNavService=require("../../services/topNavService"),_baseTSContainer=_interopRequireDefault(require("../baseTSContainer")),_templates=require("./templates"),Footer=exports.Footer=function(e){function t(){var e;_classCallCheck(this,t);for(var r=arguments.length,o=new Array(r),n=0;n<r;n++)o[n]=arguments[n];return e=_callSuper(this,t,[].concat(o)),e.isBlueBgMode="#/master-plan"===window.location.hash||"#/investment-program"===window.location.hash,e.footerColumnConfig={maxColumn:{ad:1,"default":4,r41:2,skh:
|
|
1
|
+
"use strict";function _typeof(e){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=_typeof(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _callSuper(e,t,r){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,r||[],_getPrototypeOf(e).constructor):t.apply(e,r))}function _possibleConstructorReturn(e,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 _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.Footer=void 0;var _react=_interopRequireDefault(require("react")),_reactRouterDom=require("react-router-dom"),_globalConfig=require("../../config/globalConfig"),_modules=_interopRequireDefault(require("../../enums/modules")),_footerService=require("../../services/footerService"),_topNavService=require("../../services/topNavService"),_baseTSContainer=_interopRequireDefault(require("../baseTSContainer")),_templates=require("./templates"),Footer=exports.Footer=function(e){function t(){var e;_classCallCheck(this,t);for(var r=arguments.length,o=new Array(r),n=0;n<r;n++)o[n]=arguments[n];return e=_callSuper(this,t,[].concat(o)),e.isBlueBgMode="#/master-plan"===window.location.hash||"#/investment-program"===window.location.hash,e.footerColumnConfig={maxColumn:{ad:1,"default":4,r41:2,skh:2,usr:1},middleColumn:{ad:1,"default":3,r41:2,skh:2,usr:1},minColumn:{"default":1,skh:2}},e.hrefToModule=function(e,t){var r=_modules["default"][e],o=_modules["default"][_globalConfig.globalConfig.currentModule];return r&&o?o.value===r.value||o.isMain&&r.isMain?"#".concat(t):o.value!==r.value||o.isMain!==r.isMain?_topNavService.TopNavInfinityService.getExternalUrl(e,t):void 0:"#"},e.getMenuItems=function(){var t=_footerService.FooterInfinityService.menuItems().filter(function(e){return!e.hide}),r=e.getFooterColumnConfig(e.footerColumnConfig.maxColumn);e.width1024()&&(r=e.getFooterColumnConfig(e.footerColumnConfig.middleColumn)),e.width640()&&e.getFooterColumnConfig(e.footerColumnConfig.minColumn);for(var o=[],n=0;n<r;n++)o.push([]);var i=-1;return t.forEach(function(e){i++,i>r-1&&(i=0),o[i].push(e)}),o},e}return _inherits(t,e),_createClass(t,[{key:"currentYear",get:function(){return(new Date).getFullYear()}},{key:"getFooterColumnConfig",value:function(e){var t=_globalConfig.globalConfig.templateFolder;return e[t]?e[t]:e["default"]}},{key:"render",value:function(){if(this.reload)return this.reload=!1,_react["default"].createElement(_reactRouterDom.Redirect,{to:this.redirect,push:!0});var e=_templates.template[_globalConfig.globalConfig.templateFolder];return e?e(this):_templates.template.defaultTemplate(this)}}])}(_baseTSContainer["default"]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}function _typeof(e){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,l){if(!(e instanceof l))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,l){for(var i=0;i<l.length;i++){var t=l[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,_toPropertyKey(t.key),t)}}function _createClass(e,l,i){return l&&_defineProperties(e.prototype,l),i&&_defineProperties(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var l=_toPrimitive(e,"string");return"symbol"==_typeof(l)?l:l+""}function _toPrimitive(e,l){if("object"!=_typeof(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var t=i.call(e,l||"default");if("object"!=_typeof(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===l?String:Number)(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.TopNavMainPageService=void 0;var _globalConfig=require("../config/globalConfig"),_appMode=_interopRequireDefault(require("../enums/appMode")),_modules=_interopRequireDefault(require("../enums/modules")),_authServices=require("./authServices"),_businessModeUtilsService=require("./businessModeUtilsService"),_topNavService=require("./topNavService"),_utilService=require("./utilService"),TopNavMainPageService=exports.TopNavMainPageService=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"menuItems",get:function(){return[{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].COMPLAINTS.value,"/"),friendStates:[],hide:!_globalConfig.globalConfig.complaintsOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessComplaintsOn)||_utilService.UtilService.isSkh()&&_businessModeUtilsService.BusinessModeUtilsService.isBusinessModeOn(),name:_topNavService.TopNavInfinityService.getTitleModule(_modules["default"].COMPLAINTS),module:_modules["default"].COMPLAINTS,children:[{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].COMPLAINTS.value,"/"),friendStates:[],name:"О сервисе",module:_modules["default"].COMPLAINTS,exact:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/subject-category":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].COMPLAINTS.value,"/subject-category"),friendStates:[],name:"Каталог проблем",module:_modules["default"].COMPLAINTS,exact:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/messages-list":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].COMPLAINTS.value,"/messages-list"),friendStates:[],name:"Лента проблем",module:_modules["default"].COMPLAINTS,exact:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/before-after":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].COMPLAINTS.value,"/"),friendStates:[],name:"Результат работы",module:_modules["default"].COMPLAINTS,exact:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].MAP.value)?"/?showComplaint":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].MAP.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].MAP.value,"/?showComplaint"),friendStates:[],name:"Проблема на карте",module:_modules["default"].COMPLAINTS,exact:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/new":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].COMPLAINTS.value,"/new"),friendStates:[],name:"Сообщить о проблеме",module:_modules["default"].COMPLAINTS,exact:!0}]},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].EVALUATION.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].EVALUATION.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].EVALUATION.value,"/"),friendStates:[],name:_topNavService.TopNavInfinityService.getTitleModule(_modules["default"].EVALUATION),module:_modules["default"].EVALUATION,hide:!_globalConfig.globalConfig.evaluationOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessEvaluationOn)},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].VOTING.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].VOTING.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].VOTING.value,"/"),friendStates:[],name:_topNavService.TopNavInfinityService.getTitleModule(_modules["default"].VOTING),module:_modules["default"].VOTING,hide:!_globalConfig.globalConfig.votingOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessVotingOn)},{state:null,externalUrl:"https://urban.vmeste.pkgo.ru",name:"Голосование",hide:!_utilService.UtilService.isKam()},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].EVENT.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].EVENT.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].EVENT.value,"/"),friendStates:[],name:_topNavService.TopNavInfinityService.getTitleModule(_modules["default"].EVENT),module:_modules["default"].EVENT,hide:!_globalConfig.globalConfig.eventOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessEventOn)||_utilService.UtilService.isSkh()},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].ARTICLE.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].ARTICLE.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].ARTICLE.value,"/"),friendStates:[],name:_topNavService.TopNavInfinityService.getTitleModule(_modules["default"].ARTICLE),module:_modules["default"].ARTICLE,hide:!_globalConfig.globalConfig.articleOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessArticleOn)},{state:null,externalUrl:"https://atlas27.ru",name:"Атлас объектов",hide:!_utilService.UtilService.isKhv()},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].MAP.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].MAP.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].MAP.value,"/"),friendStates:[],name:_topNavService.TopNavInfinityService.getTitleModule(_modules["default"].MAP),module:_modules["default"].MAP,hide:!_globalConfig.globalConfig.mapOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessMapOn)||_globalConfig.globalConfig.mapOn&&_globalConfig.globalConfig.lifecityOn&&!_globalConfig.globalConfig.registryContractOn},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].ORGANIZATION.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].ORGANIZATION.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].ORGANIZATION.value,"/"),friendStates:[],name:_topNavService.TopNavInfinityService.getTitleModule(_modules["default"].ORGANIZATION),module:_modules["default"].ORGANIZATION,hide:!_globalConfig.globalConfig.organizationOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessOrganizationOn)||_utilService.UtilService.isKhv()},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].CAMERAS.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].CAMERAS.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].CAMERAS.value,"/"),friendStates:[],name:_topNavService.TopNavInfinityService.getTitleModule(_modules["default"].CAMERAS),module:_modules["default"].CAMERAS,hide:!_globalConfig.globalConfig.camerasOn},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].POLL.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].POLL.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].POLL.value,"/"),friendStates:[],name:_topNavService.TopNavInfinityService.getTitleModule(_modules["default"].POLL),module:_modules["default"].POLL,hide:!_globalConfig.globalConfig.pollOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessPollOn)||_utilService.UtilService.isSkh()},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].INITIATIVE.value)?"/initiatives-list":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].INITIATIVE.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].INITIATIVE.value,"/initiatives-list"),friendStates:["intitative"],name:_topNavService.TopNavInfinityService.getTitleModule(_modules["default"].INITIATIVE),module:_modules["default"].INITIATIVE,hide:!_globalConfig.globalConfig.initiativenOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessInitiativeOn)||_utilService.UtilService.isSkh()},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].OPENDATA.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].OPENDATA.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].OPENDATA.value,"/"),friendStates:[],name:_topNavService.TopNavInfinityService.getTitleModule(_modules["default"].OPENDATA),module:_modules["default"].OPENDATA,hide:!_globalConfig.globalConfig.openDataOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessOpenDataOn)},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].RECEPTION.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].RECEPTION.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].RECEPTION.value,"/"),friendStates:[],name:_topNavService.TopNavInfinityService.getTitleModule(_modules["default"].RECEPTION),module:_modules["default"].RECEPTION,hide:!_globalConfig.globalConfig.receptionOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessReceptionOn),children:[{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].RECEPTION.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].RECEPTION.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].RECEPTION.value,"/"),friendStates:[],name:"О сервисе",module:_modules["default"].RECEPTION,exact:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].RECEPTION.value)?"/new":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].RECEPTION.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].RECEPTION.value,"/new"),friendStates:[],name:"Записаться на приём",module:_modules["default"].RECEPTION,exact:!0}]},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].MAIN.value)?"/snow-track":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].MAIN.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].MAIN.value,"/snow-track"),friendStates:[],name:"Уборка снега",module:_modules["default"].MAIN,hide:!_globalConfig.globalConfig.snowTrackOn},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].PROFILE.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].PROFILE.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].PROFILE.value,"/"),friendStates:[],name:_topNavService.TopNavInfinityService.getTitleModule(_modules["default"].PROFILE),module:_modules["default"].PROFILE,hide:!_authServices.AuthService.getUserInfo()||!_globalConfig.globalConfig.profileOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessProfileOn),dropdownAvatar:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/cabinet/with-mode/".concat(_appMode["default"].PUBLIC):null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].COMPLAINTS.value,"/cabinet/with-mode/".concat(_appMode["default"].PUBLIC)),friendStates:[],name:"Мои ".concat(_globalConfig.globalConfig.WS_VOICE_INFINITY_COMPLAINT_NAME_BASE,"ия"),exact:!0,hide:!_globalConfig.globalConfig.complaintsOn||!_authServices.AuthService.getUserInfo(),module:_modules["default"].COMPLAINTS,moduleRootState:"/",dropdownAvatar:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/cabinet/with-mode/".concat(_appMode["default"].BUSINESS):null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].COMPLAINTS.value,"/cabinet/with-mode/".concat(_appMode["default"].BUSINESS)),friendStates:[],name:"".concat(_utilService.UtilService.setFirstWordToUpperCase(_globalConfig.globalConfig.WS_VOICE_INFINITY_COMPLAINT_NAME_BASE),"ия компании"),exact:!0,hide:!_authServices.AuthService.getUserInfo()||!!_utilService.UtilService.isApiri()||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessComplaintsOn),module:_modules["default"].COMPLAINTS,moduleRootState:"/",needHasOrganization:!0,dropdownAvatar:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].LAND_PLOT.value)?"/land-plot":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].LAND_PLOT.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].LAND_PLOT.value,"/land-plot"),friendStates:[],name:_topNavService.TopNavInfinityService.getTitleModule(_modules["default"].LAND_PLOT),module:_modules["default"].LAND_PLOT,hide:!_globalConfig.globalConfig.landPlotOn||!_utilService.UtilService.isR41()},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].LIFECITY.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].LIFECITY.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].LIFECITY.value,"/"),friendStates:[],name:_modules["default"].LIFECITY.name,hide:!_globalConfig.globalConfig.lifecityOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessLifecityOn),module:_modules["default"].LIFECITY,moduleRootState:"/",children:[{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].LIFECITY.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].LIFECITY.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].LIFECITY.value,"/"),friendStates:[],name:"О сервисе",module:_modules["default"].LIFECITY,exact:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].MAP.value)?"/?showContract&entityId=".concat(_globalConfig.globalConfig.WS_VOICE_INFINITY_CONTRACT_CATEGORY_GROUP_ID,"&filtersOff"):null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].MAP.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].MAP.value,"/?showContract&entityId=".concat(_globalConfig.globalConfig.WS_VOICE_INFINITY_CONTRACT_CATEGORY_GROUP_ID,"&filtersOff")),friendStates:[],name:"Народный контроль",module:_modules["default"].LIFECITY,exact:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].LIFECITY.value)?"/npa-list":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].LIFECITY.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].LIFECITY.value,"/npa-list"),friendStates:[],name:"НПА о проекте",module:_modules["default"].LIFECITY,exact:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].LIFECITY.value)?"/history-project":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].LIFECITY.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].LIFECITY.value,"/history-project"),friendStates:[],name:"История проекта",module:_modules["default"].LIFECITY,exact:!0}]},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].DISCUSSIONS.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].DISCUSSIONS.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].DISCUSSIONS.value,"/"),friendStates:[],name:_modules["default"].DISCUSSIONS.name,exact:!0,hide:!_globalConfig.globalConfig.discussionsOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessDiscussionsOn),module:_modules["default"].DISCUSSIONS,moduleRootState:"/"},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].STROIKA.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].STROIKA.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].STROIKA.value,"/"),friendStates:[],name:_modules["default"].STROIKA.name,exact:!0,hide:!_globalConfig.globalConfig.stroikaOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessDiscussionsOn),module:_modules["default"].STROIKA,moduleRootState:"/"},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].MAIN.value)?"/cabinet/initiatives-list":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].MAIN.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].MAIN.value,"/cabinet/initiatives-list"),friendStates:[],name:"Мои инициативы",exact:!0,hide:!_globalConfig.globalConfig.initiativenOn||!_authServices.AuthService.getUserInfo()||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessInitiativeOn),module:_modules["default"].MAIN,moduleRootState:"/",dropdownAvatar:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].VOTING.value)?"/cabinet/claims-list":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].VOTING.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].VOTING.value,"/cabinet/claims-list"),friendStates:[],name:"Мои предложения",exact:!0,hide:!_globalConfig.globalConfig.votingOn||!_authServices.AuthService.getUserInfo()||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessVotingOn)||_globalConfig.globalConfig.votingOn&&!_utilService.UtilService.isKhv()&&!_utilService.UtilService.isR41(),module:_modules["default"].VOTING,moduleRootState:"/",dropdownAvatar:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].EVALUATION.value)?"/cabinet/vote/list":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].EVALUATION.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].EVALUATION.value,"/cabinet/vote/list"),friendStates:[],name:"Мои голоса",exact:!0,hide:!_globalConfig.globalConfig.evaluationOn||!_authServices.AuthService.getUserInfo()||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessEvaluationOn),module:_modules["default"].EVALUATION,moduleRootState:"/",dropdownAvatar:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].ARTICLE.value)?"/favourites":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].ARTICLE.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].ARTICLE.value,"/favourites"),friendStates:[],name:"Избранные статьи",exact:!0,hide:!_globalConfig.globalConfig.articleOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessArticleOn),module:_modules["default"].ARTICLE,moduleRootState:"/",dropdownAvatar:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].CAMERAS.value)?"/favorite/cameras":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].CAMERAS.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].CAMERAS.value,"/favorite/cameras"),friendStates:[],name:"Избранные камеры",exact:!0,hide:!_globalConfig.globalConfig.camerasOn,module:_modules["default"].CAMERAS,moduleRootState:"/",dropdownAvatar:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].PROFILE.value)?"/information-messages":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].PROFILE.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].PROFILE.value,"/information-messages"),friendStates:[],name:"Информ. сообщения",exact:!0,hide:!_globalConfig.globalConfig.informationalMessagesOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessInformationalMessagesOn),module:_modules["default"].PROFILE,moduleRootState:"/",dropdownAvatar:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].PROFILE.value)?"/my-organizations":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].PROFILE.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].PROFILE.value,"/my-organizations"),friendStates:[],name:"Мои организации",exact:!0,hide:!_authServices.AuthService.getUserInfo()||!_globalConfig.globalConfig.businessModeOn||_utilService.UtilService.isSkh(),module:_modules["default"].PROFILE,moduleRootState:"/",dropdownAvatar:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].RECEPTION.value)?"/cabinet":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].RECEPTION.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].RECEPTION.value,"/cabinet"),friendStates:[],name:"Мои заявки",exact:!0,hide:!_globalConfig.globalConfig.receptionOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessReceptionOn),module:_modules["default"].RECEPTION,moduleRootState:"/",dropdownAvatar:!0},{name:"Выход",hide:!_authServices.AuthService.getUserInfo(),dropdownAvatar:!0,isLogout:!0,callback:function(){return _authServices.AuthService.logOut()}},{name:"Войти",isAuth:!0,hide:!!_authServices.AuthService.getUserInfo(),friendStates:[],dropdownAvatar:!0}]}}])}();
|
|
1
|
+
"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}function _typeof(e){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,l){if(!(e instanceof l))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,l){for(var i=0;i<l.length;i++){var t=l[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,_toPropertyKey(t.key),t)}}function _createClass(e,l,i){return l&&_defineProperties(e.prototype,l),i&&_defineProperties(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var l=_toPrimitive(e,"string");return"symbol"==_typeof(l)?l:l+""}function _toPrimitive(e,l){if("object"!=_typeof(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var t=i.call(e,l||"default");if("object"!=_typeof(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===l?String:Number)(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.TopNavMainPageService=void 0;var _globalConfig=require("../config/globalConfig"),_appMode=_interopRequireDefault(require("../enums/appMode")),_modules=_interopRequireDefault(require("../enums/modules")),_authServices=require("./authServices"),_businessModeUtilsService=require("./businessModeUtilsService"),_topNavService=require("./topNavService"),_utilService=require("./utilService"),TopNavMainPageService=exports.TopNavMainPageService=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"menuItems",get:function(){return[{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].COMPLAINTS.value,"/"),friendStates:[],hide:!_globalConfig.globalConfig.complaintsOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessComplaintsOn)||_utilService.UtilService.isSkh()&&_businessModeUtilsService.BusinessModeUtilsService.isBusinessModeOn(),name:_topNavService.TopNavInfinityService.getTitleModule(_modules["default"].COMPLAINTS),module:_modules["default"].COMPLAINTS,children:[{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].COMPLAINTS.value,"/"),friendStates:[],name:"О сервисе",module:_modules["default"].COMPLAINTS,exact:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/subject-category":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].COMPLAINTS.value,"/subject-category"),friendStates:[],name:"Каталог проблем",module:_modules["default"].COMPLAINTS,exact:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/messages-list":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].COMPLAINTS.value,"/messages-list"),friendStates:[],name:"Лента проблем",module:_modules["default"].COMPLAINTS,exact:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/before-after":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].COMPLAINTS.value,"/"),friendStates:[],name:"Результат работы",module:_modules["default"].COMPLAINTS,exact:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].MAP.value)?"/?showComplaint":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].MAP.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].MAP.value,"/?showComplaint"),friendStates:[],name:"Проблема на карте",module:_modules["default"].COMPLAINTS,exact:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/new":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].COMPLAINTS.value,"/new"),friendStates:[],name:"Сообщить о проблеме",module:_modules["default"].COMPLAINTS,exact:!0}]},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].EVALUATION.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].EVALUATION.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].EVALUATION.value,"/"),friendStates:[],name:_topNavService.TopNavInfinityService.getTitleModule(_modules["default"].EVALUATION),module:_modules["default"].EVALUATION,hide:!_globalConfig.globalConfig.evaluationOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessEvaluationOn)},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].VOTING.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].VOTING.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].VOTING.value,"/"),friendStates:[],name:_topNavService.TopNavInfinityService.getTitleModule(_modules["default"].VOTING),module:_modules["default"].VOTING,hide:!_globalConfig.globalConfig.votingOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessVotingOn)},{state:null,externalUrl:"https://urban.vmeste.pkgo.ru",name:"Голосование",hide:!_utilService.UtilService.isKam()},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].EVENT.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].EVENT.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].EVENT.value,"/"),friendStates:[],name:_topNavService.TopNavInfinityService.getTitleModule(_modules["default"].EVENT),module:_modules["default"].EVENT,hide:!_globalConfig.globalConfig.eventOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessEventOn)||_utilService.UtilService.isSkh()},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].ARTICLE.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].ARTICLE.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].ARTICLE.value,"/"),friendStates:[],name:_topNavService.TopNavInfinityService.getTitleModule(_modules["default"].ARTICLE),module:_modules["default"].ARTICLE,hide:!_globalConfig.globalConfig.articleOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessArticleOn)},{state:null,externalUrl:"https://atlas27.ru",name:"Атлас объектов",hide:!_utilService.UtilService.isKhv()},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].MAP.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].MAP.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].MAP.value,"/"),friendStates:[],name:_topNavService.TopNavInfinityService.getTitleModule(_modules["default"].MAP),module:_modules["default"].MAP,hide:!_globalConfig.globalConfig.mapOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessMapOn)||_globalConfig.globalConfig.mapOn&&_globalConfig.globalConfig.lifecityOn&&!_globalConfig.globalConfig.registryContractOn},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].ORGANIZATION.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].ORGANIZATION.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].ORGANIZATION.value,"/"),friendStates:[],name:_topNavService.TopNavInfinityService.getTitleModule(_modules["default"].ORGANIZATION),module:_modules["default"].ORGANIZATION,hide:!_globalConfig.globalConfig.organizationOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessOrganizationOn)||_utilService.UtilService.isKhv()},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].CAMERAS.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].CAMERAS.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].CAMERAS.value,"/"),friendStates:[],name:_topNavService.TopNavInfinityService.getTitleModule(_modules["default"].CAMERAS),module:_modules["default"].CAMERAS,hide:!_globalConfig.globalConfig.camerasOn},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].POLL.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].POLL.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].POLL.value,"/"),friendStates:[],name:_topNavService.TopNavInfinityService.getTitleModule(_modules["default"].POLL),module:_modules["default"].POLL,hide:!_globalConfig.globalConfig.pollOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessPollOn)||_utilService.UtilService.isSkh()},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].INITIATIVE.value)?"/initiatives-list":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].INITIATIVE.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].INITIATIVE.value,"/initiatives-list"),friendStates:["intitative"],name:_topNavService.TopNavInfinityService.getTitleModule(_modules["default"].INITIATIVE),module:_modules["default"].INITIATIVE,hide:!_globalConfig.globalConfig.initiativenOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessInitiativeOn)||_utilService.UtilService.isSkh()},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].OPENDATA.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].OPENDATA.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].OPENDATA.value,"/"),friendStates:[],name:_topNavService.TopNavInfinityService.getTitleModule(_modules["default"].OPENDATA),module:_modules["default"].OPENDATA,hide:!_globalConfig.globalConfig.openDataOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessOpenDataOn)},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].RECEPTION.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].RECEPTION.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].RECEPTION.value,"/"),friendStates:[],name:_topNavService.TopNavInfinityService.getTitleModule(_modules["default"].RECEPTION),module:_modules["default"].RECEPTION,hide:!_globalConfig.globalConfig.receptionOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessReceptionOn),children:[{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].RECEPTION.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].RECEPTION.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].RECEPTION.value,"/"),friendStates:[],name:"О сервисе",module:_modules["default"].RECEPTION,exact:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].RECEPTION.value)?"/new":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].RECEPTION.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].RECEPTION.value,"/new"),friendStates:[],name:"Записаться на приём",module:_modules["default"].RECEPTION,exact:!0}]},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].MAIN.value)?"/snow-track":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].MAIN.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].MAIN.value,"/snow-track"),friendStates:[],name:"Уборка снега",module:_modules["default"].MAIN,hide:!_globalConfig.globalConfig.snowTrackOn},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].PROFILE.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].PROFILE.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].PROFILE.value,"/"),friendStates:[],name:_topNavService.TopNavInfinityService.getTitleModule(_modules["default"].PROFILE),module:_modules["default"].PROFILE,hide:!_authServices.AuthService.getUserInfo()||!_globalConfig.globalConfig.profileOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessProfileOn),dropdownAvatar:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/cabinet/with-mode/".concat(_appMode["default"].PUBLIC):null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].COMPLAINTS.value,"/cabinet/with-mode/".concat(_appMode["default"].PUBLIC)),friendStates:[],name:"Мои ".concat(_globalConfig.globalConfig.WS_VOICE_INFINITY_COMPLAINT_NAME_BASE,"ия"),exact:!0,hide:!_globalConfig.globalConfig.complaintsOn||!_authServices.AuthService.getUserInfo(),module:_modules["default"].COMPLAINTS,moduleRootState:"/",dropdownAvatar:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/cabinet/with-mode/".concat(_appMode["default"].BUSINESS):null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].COMPLAINTS.value,"/cabinet/with-mode/".concat(_appMode["default"].BUSINESS)),friendStates:[],name:"".concat(_utilService.UtilService.setFirstWordToUpperCase(_globalConfig.globalConfig.WS_VOICE_INFINITY_COMPLAINT_NAME_BASE),"ия компании"),exact:!0,hide:!_authServices.AuthService.getUserInfo()||!!_utilService.UtilService.isApiri()||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessComplaintsOn),module:_modules["default"].COMPLAINTS,moduleRootState:"/",needHasOrganization:!0,dropdownAvatar:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].LAND_PLOT.value)?"/land-plot":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].LAND_PLOT.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].LAND_PLOT.value,"/land-plot"),friendStates:[],name:_topNavService.TopNavInfinityService.getTitleModule(_modules["default"].LAND_PLOT),module:_modules["default"].LAND_PLOT,hide:!_globalConfig.globalConfig.landPlotOn||!_utilService.UtilService.isR41()},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].LIFECITY.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].LIFECITY.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].LIFECITY.value,"/"),friendStates:[],name:_modules["default"].LIFECITY.name,hide:!_globalConfig.globalConfig.lifecityOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessLifecityOn),module:_modules["default"].LIFECITY,moduleRootState:"/",children:[{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].LIFECITY.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].LIFECITY.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].LIFECITY.value,"/"),friendStates:[],name:"О сервисе",module:_modules["default"].LIFECITY,exact:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].MAP.value)?"/?showContract&entityId=".concat(_globalConfig.globalConfig.WS_VOICE_INFINITY_CONTRACT_CATEGORY_GROUP_ID,"&filtersOff"):null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].MAP.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].MAP.value,"/?showContract&entityId=".concat(_globalConfig.globalConfig.WS_VOICE_INFINITY_CONTRACT_CATEGORY_GROUP_ID,"&filtersOff")),friendStates:[],name:"Народный контроль",module:_modules["default"].LIFECITY,exact:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].LIFECITY.value)?"/npa-list":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].LIFECITY.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].LIFECITY.value,"/npa-list"),friendStates:[],name:"НПА о проекте",module:_modules["default"].LIFECITY,exact:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].LIFECITY.value)?"/history-project":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].LIFECITY.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].LIFECITY.value,"/history-project"),friendStates:[],name:"История проекта",module:_modules["default"].LIFECITY,exact:!0}]},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].DISCUSSIONS.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].DISCUSSIONS.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].DISCUSSIONS.value,"/"),friendStates:[],name:_modules["default"].DISCUSSIONS.name,exact:!0,hide:!_globalConfig.globalConfig.discussionsOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessDiscussionsOn),module:_modules["default"].DISCUSSIONS,moduleRootState:"/"},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].STROIKA.value)?"/":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].STROIKA.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].STROIKA.value,"/"),friendStates:[],name:_modules["default"].STROIKA.name,exact:!0,hide:!_globalConfig.globalConfig.stroikaOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessDiscussionsOn),module:_modules["default"].STROIKA,moduleRootState:"/"},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].MAIN.value)?"/cabinet/initiatives-list":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].MAIN.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].MAIN.value,"/cabinet/initiatives-list"),friendStates:[],name:"Мои инициативы",exact:!0,hide:!_globalConfig.globalConfig.initiativenOn||!_authServices.AuthService.getUserInfo()||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessInitiativeOn)||_utilService.UtilService.isSkh(),module:_modules["default"].MAIN,moduleRootState:"/",dropdownAvatar:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].VOTING.value)?"/cabinet/claims-list":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].VOTING.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].VOTING.value,"/cabinet/claims-list"),friendStates:[],name:"Мои предложения",exact:!0,hide:!_globalConfig.globalConfig.votingOn||!_authServices.AuthService.getUserInfo()||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessVotingOn)||_globalConfig.globalConfig.votingOn&&!_utilService.UtilService.isKhv()&&!_utilService.UtilService.isR41(),module:_modules["default"].VOTING,moduleRootState:"/",dropdownAvatar:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].EVALUATION.value)?"/cabinet/vote/list":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].EVALUATION.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].EVALUATION.value,"/cabinet/vote/list"),friendStates:[],name:"Мои голоса",exact:!0,hide:!_globalConfig.globalConfig.evaluationOn||!_authServices.AuthService.getUserInfo()||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessEvaluationOn),module:_modules["default"].EVALUATION,moduleRootState:"/",dropdownAvatar:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].ARTICLE.value)?"/favourites":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].ARTICLE.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].ARTICLE.value,"/favourites"),friendStates:[],name:"Избранные статьи",exact:!0,hide:!_globalConfig.globalConfig.articleOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessArticleOn),module:_modules["default"].ARTICLE,moduleRootState:"/",dropdownAvatar:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].CAMERAS.value)?"/favorite/cameras":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].CAMERAS.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].CAMERAS.value,"/favorite/cameras"),friendStates:[],name:"Избранные камеры",exact:!0,hide:!_globalConfig.globalConfig.camerasOn,module:_modules["default"].CAMERAS,moduleRootState:"/",dropdownAvatar:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].PROFILE.value)?"/information-messages":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].PROFILE.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].PROFILE.value,"/information-messages"),friendStates:[],name:"Информ. сообщения",exact:!0,hide:!_globalConfig.globalConfig.informationalMessagesOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessInformationalMessagesOn),module:_modules["default"].PROFILE,moduleRootState:"/",dropdownAvatar:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].PROFILE.value)?"/my-organizations":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].PROFILE.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].PROFILE.value,"/my-organizations"),friendStates:[],name:"Мои организации",exact:!0,hide:!_authServices.AuthService.getUserInfo()||!_globalConfig.globalConfig.businessModeOn||_utilService.UtilService.isSkh(),module:_modules["default"].PROFILE,moduleRootState:"/",dropdownAvatar:!0},{state:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].RECEPTION.value)?"/cabinet":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].RECEPTION.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].RECEPTION.value,"/cabinet"),friendStates:[],name:"Мои заявки",exact:!0,hide:!_globalConfig.globalConfig.receptionOn||_topNavService.TopNavInfinityService.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessReceptionOn),module:_modules["default"].RECEPTION,moduleRootState:"/",dropdownAvatar:!0},{name:"Выход",hide:!_authServices.AuthService.getUserInfo(),dropdownAvatar:!0,isLogout:!0,callback:function(){return _authServices.AuthService.logOut()}},{name:"Войти",isAuth:!0,hide:!!_authServices.AuthService.getUserInfo(),friendStates:[],dropdownAvatar:!0}]}}])}();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}function _typeof(e){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,l){if(!(e instanceof l))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,l){for(var t=0;t<l.length;t++){var i=l[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey(i.key),i)}}function _createClass(e,l,t){return l&&_defineProperties(e.prototype,l),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var l=_toPrimitive(e,"string");return"symbol"==_typeof(l)?l:l+""}function _toPrimitive(e,l){if("object"!=_typeof(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,l||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===l?String:Number)(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.TopNavInfinityService=void 0;var _globalConfig=require("../config/globalConfig"),_modules=_interopRequireDefault(require("../enums/modules")),_notificationsCount=_interopRequireDefault(require("../enums/notificationsCount")),_authServices=require("./authServices"),_businessModeUtilsService=require("./businessModeUtilsService"),_utilService=require("./utilService"),_appMode=_interopRequireDefault(require("../enums/appMode")),TopNavInfinityService=exports.TopNavInfinityService=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"isLocalRoute",value:function(e){return!!_modules["default"][_globalConfig.globalConfig.currentModule]&&_globalConfig.globalConfig.currentModule===_modules["default"][e].value||!!_modules["default"][_globalConfig.globalConfig.currentModule]&&!!_modules["default"][_globalConfig.globalConfig.currentModule].isMain&&_modules["default"][e].isMain}},{key:"getExternalUrl",value:function(e){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(_modules["default"][e].isMain)return"".concat(_globalConfig.globalConfig.mainModuleDomain,"/#").concat(l);if(e===_modules["default"].RECEPTION.value&&_utilService.UtilService.isR41())return _globalConfig.globalConfig.receptionExternalUrl;if(!_globalConfig.globalConfig.mainModuleDomain)return"";if(_utilService.UtilService.isR41()||_utilService.UtilService.isZab()||_utilService.UtilService.isKhv())return"".concat(_globalConfig.globalConfig.mainModuleDomain,"/").concat(_modules["default"][e].value.toLowerCase()).concat(l?"/#".concat(l):"");var t=_globalConfig.globalConfig.mainModuleDomain.split("://");return"".concat(t[0],"://").concat(_modules["default"][e].value.toLowerCase(),".").concat(t[1]).concat(l?"/#".concat(l):"")}},{key:"isSelectState",value:function(l,t){return l.module&&!l.module.isMain&&l.module.value===_globalConfig.globalConfig.currentModule?!l.exact||l.state===t:e.isSelectRootState(l,t)||e.isSelectFriendState(l,t)}},{key:"isSelectFriendState",value:function(e,l){var t=!1;return!!e.friendStates&&(e.friendStates.forEach(function(e){l.indexOf(e)>-1&&l.indexOf(e)<=1&&(t=!0)}),t)}},{key:"isSelectRootState",value:function(e,l){var t=e&&l.indexOf(e.state)>-1&&l.indexOf(e.state)<=1;return t}},{key:"getTitleModule",value:function(e){var l=e.title[_globalConfig.globalConfig.templateFolder];return l?l:e.title["default"]}},{key:"menuItems",get:function(){return[{state:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:e.getExternalUrl(_modules["default"].COMPLAINTS.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].COMPLAINTS),hide:!_globalConfig.globalConfig.complaintsOn||_utilService.UtilService.isApiri()||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessComplaintsOn)||_utilService.UtilService.isSkh()&&_businessModeUtilsService.BusinessModeUtilsService.isBusinessModeOn(),module:_modules["default"].COMPLAINTS,icon:"assets/images/svg/menu/ic_publicComplaints.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/new":null,externalUrl:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:e.getExternalUrl(_modules["default"].COMPLAINTS.value,"/new"),friendStates:[],name:"Подать ".concat(_globalConfig.globalConfig.WS_VOICE_INFINITY_COMPLAINT_NAME_BASE,"ие"),exact:!0,hide:!_globalConfig.globalConfig.complaintsOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessComplaintsOn)||_utilService.UtilService.isSkh()&&_businessModeUtilsService.BusinessModeUtilsService.isBusinessModeOn(),module:_modules["default"].COMPLAINTS,moduleRootState:"/",icon:"assets/images/svg/menu/ic_CreateComplaints_54px.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].INITIATIVE.value)?"/initiatives-list":null,externalUrl:e.isLocalRoute(_modules["default"].INITIATIVE.value)?null:e.getExternalUrl(_modules["default"].INITIATIVE.value,"/initiatives-list"),friendStates:["intitative"],name:e.getTitleModule(_modules["default"].INITIATIVE),hide:!_globalConfig.globalConfig.initiativenOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessInitiativeOn)||_utilService.UtilService.isSkh(),module:_modules["default"].INITIATIVE,icon:"assets/images/svg/menu/ic_IniciativesPublic_54px.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].INITIATIVE.value)?"/initiative-create":null,externalUrl:e.isLocalRoute(_modules["default"].INITIATIVE.value)?null:e.getExternalUrl(_modules["default"].INITIATIVE.value,"/initiative-create"),friendStates:[],name:"Предложить инициативу",exact:!0,hide:!_globalConfig.globalConfig.initiativenOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessInitiativeOn)||_utilService.UtilService.isSkh(),module:_modules["default"].INITIATIVE,moduleRootState:"/",icon:"assets/images/svg/menu/ic_CreateIniciatives_54px.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].INITIATIVE.value)?"/initiatives-reviewers":null,externalUrl:e.isLocalRoute(_modules["default"].INITIATIVE.value)?null:e.getExternalUrl(_modules["default"].INITIATIVE.value,"/initiative-create"),friendStates:[],name:"Наши эксперты",exact:!0,hide:(!_globalConfig.globalConfig.initiativenOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessInitiativeOn))&&!_utilService.UtilService.isKam()||_utilService.UtilService.isSkh(),module:_modules["default"].INITIATIVE,moduleRootState:"/",icon:"assets/images/svg/menu/ic_IniciativesReviewers.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].MAP.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].MAP.value)?null:e.getExternalUrl(_modules["default"].MAP.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].MAP),hide:!_globalConfig.globalConfig.mapOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessMapOn)||_globalConfig.globalConfig.mapOn&&_globalConfig.globalConfig.lifecityOn&&!_globalConfig.globalConfig.registryContractOn,module:_modules["default"].MAP,icon:"assets/images/svg/menu/ic_SocialMap_54px.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].EVALUATION.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].EVALUATION.value)?null:e.getExternalUrl(_modules["default"].EVALUATION.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].EVALUATION),hide:!_globalConfig.globalConfig.evaluationOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessEvaluationOn),module:_modules["default"].EVALUATION,icon:"assets/images/svg/menu/ic_evaluation_54.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].VOTING.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].VOTING.value)?null:e.getExternalUrl(_modules["default"].VOTING.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].VOTING),hide:!_globalConfig.globalConfig.votingOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessVotingOn),module:_modules["default"].VOTING,icon:"assets/images/svg/menu/ic_voting_54.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].EVENT.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].EVENT.value)?null:e.getExternalUrl(_modules["default"].EVENT.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].EVENT),hide:!_globalConfig.globalConfig.eventOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessEventOn)||_utilService.UtilService.isSkh(),module:_modules["default"].EVENT,icon:"assets/images/svg/menu/ic_events_54px.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].POLL.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].POLL.value)?null:e.getExternalUrl(_modules["default"].POLL.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].POLL),hide:!_globalConfig.globalConfig.pollOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessPollOn)||_utilService.UtilService.isSkh(),module:_modules["default"].POLL,icon:"assets/images/svg/menu/ic_polls.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].ARTICLE.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].ARTICLE.value)?null:e.getExternalUrl(_modules["default"].ARTICLE.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].ARTICLE),hide:!_globalConfig.globalConfig.articleOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessArticleOn),module:_modules["default"].ARTICLE,icon:"assets/images/svg/menu/ic_Articles_54px.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].ORGANIZATION.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].ORGANIZATION.value)?null:e.getExternalUrl(_modules["default"].ORGANIZATION.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].ORGANIZATION),hide:!_globalConfig.globalConfig.organizationOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessOrganizationOn)||_utilService.UtilService.isKhv(),module:_modules["default"].ORGANIZATION,icon:"assets/images/svg/menu/ic_Organization_54px.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].OPENDATA.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].OPENDATA.value)?null:e.getExternalUrl(_modules["default"].OPENDATA.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].OPENDATA),hide:!_globalConfig.globalConfig.openDataOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessOpenDataOn),module:_modules["default"].OPENDATA,icon:"assets/images/svg/menu/open_data_menu.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].RECEPTION.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].RECEPTION.value)?null:e.getExternalUrl(_modules["default"].RECEPTION.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].RECEPTION),hide:!_globalConfig.globalConfig.receptionOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessReceptionOn)||_utilService.UtilService.isR41(),module:_modules["default"].RECEPTION,icon:"assets/images/svg/menu/ic_online_reception.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].STROIKA.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].STROIKA.value)?null:e.getExternalUrl(_modules["default"].STROIKA.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].STROIKA),hide:!_globalConfig.globalConfig.stroikaOn,module:_modules["default"].STROIKA,icon:"assets/images/svg/menu/map-construction.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].MAIN.value)?"/snow-track":null,externalUrl:e.isLocalRoute(_modules["default"].MAIN.value)?null:e.getExternalUrl(_modules["default"].MAIN.value,"/snow-track"),name:"Уборка снега",exact:!0,friendStates:["snow-"],hide:!_globalConfig.globalConfig.snowTrackOn,module:_modules["default"].MAIN,icon:"assets/images/svg/menu/SnowMap.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].MAIN.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].MAIN.value)?null:e.getExternalUrl(_modules["default"].MAIN.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].MAIN),module:_modules["default"].MAIN,icon:"assets/images/svg/menu/ic_Main_54px.svg",isInfinityMainMenu:!0},{externalUrl:"https://atlas27.ru",name:"Атлас объектов",icon:"assets/images/svg/menu/ic_Atlas27_54px.svg",isInfinityMainMenu:!0,hide:!_utilService.UtilService.isKhv()},{state:e.isLocalRoute(_modules["default"].PROFILE.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].PROFILE.value)?null:e.getExternalUrl(_modules["default"].PROFILE.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].PROFILE),hide:!_globalConfig.globalConfig.profileOn||!_authServices.AuthService.getUserInfo()||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessProfileOn),module:_modules["default"].PROFILE,icon:"assets/images/svg/menu/user.svg",isInfinityProfileMenu:!0},{state:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/cabinet/with-mode/".concat(_appMode["default"].PUBLIC):null,externalUrl:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:e.getExternalUrl(_modules["default"].COMPLAINTS.value,"/cabinet/with-mode/".concat(_appMode["default"].PUBLIC)),friendStates:[],name:"Мои ".concat(_globalConfig.globalConfig.WS_VOICE_INFINITY_COMPLAINT_NAME_BASE,"ия"),exact:!0,hide:!_globalConfig.globalConfig.complaintsOn,module:_modules["default"].COMPLAINTS,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_MyComplaints_54.svg",isInfinityProfileMenu:!0,notificationsCountType:_notificationsCount["default"].COMPLAINTS},{state:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/cabinet/with-mode/".concat(_appMode["default"].BUSINESS):null,externalUrl:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:e.getExternalUrl(_modules["default"].COMPLAINTS.value,"/cabinet/with-mode/".concat(_appMode["default"].BUSINESS)),friendStates:[],name:"".concat(_utilService.UtilService.setFirstWordToUpperCase(_globalConfig.globalConfig.WS_VOICE_INFINITY_COMPLAINT_NAME_BASE),"ия компании"),exact:!0,hide:e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessComplaintsOn)||!!_utilService.UtilService.isApiri(),module:_modules["default"].COMPLAINTS,moduleRootState:"/",needHasOrganization:!0,dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_MyOrgComplaints_54.svg",isInfinityProfileMenu:!0,notificationsCountType:_notificationsCount["default"].BUSINESS_COMPLAINTS},{state:e.isLocalRoute(_modules["default"].MAIN.value)?"/cabinet/initiatives-list":null,externalUrl:e.isLocalRoute(_modules["default"].MAIN.value)?null:e.getExternalUrl(_modules["default"].MAIN.value,"/cabinet/initiatives-list"),friendStates:[],name:"Мои инициативы",exact:!0,hide:!_globalConfig.globalConfig.initiativenOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessInitiativeOn),module:_modules["default"].MAIN,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_MyComplaints_54.svg",isInfinityProfileMenu:!0},{state:e.isLocalRoute(_modules["default"].EVALUATION.value)?"/cabinet/vote/list":null,externalUrl:e.isLocalRoute(_modules["default"].EVALUATION.value)?null:e.getExternalUrl(_modules["default"].EVALUATION.value,"/cabinet/vote/list"),friendStates:[],name:"Мои голоса",exact:!0,hide:!_globalConfig.globalConfig.evaluationOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessEvaluationOn),module:_modules["default"].EVALUATION,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_my_evaluation_54.svg",isInfinityProfileMenu:!0},{state:e.isLocalRoute(_modules["default"].VOTING.value)?"/cabinet/claims-list":null,externalUrl:e.isLocalRoute(_modules["default"].VOTING.value)?null:e.getExternalUrl(_modules["default"].VOTING.value,"/cabinet/claims-list"),friendStates:[],name:"Мои предложения",exact:!0,hide:!_globalConfig.globalConfig.votingOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessVotingOn)||_globalConfig.globalConfig.votingOn&&!_utilService.UtilService.isKhv()&&!_utilService.UtilService.isR41(),module:_modules["default"].VOTING,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_MyComplaints_54.svg",isInfinityProfileMenu:!0},{state:e.isLocalRoute(_modules["default"].RECEPTION.value)?"/cabinet":null,externalUrl:e.isLocalRoute(_modules["default"].RECEPTION.value)?null:e.getExternalUrl(_modules["default"].RECEPTION.value,"/cabinet"),friendStates:[],name:"Мои заявки",exact:!0,hide:!_globalConfig.globalConfig.receptionOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessReceptionOn),module:_modules["default"].RECEPTION,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_online_reception_private.svg",isInfinityProfileMenu:!0,notificationsCountType:_notificationsCount["default"].MEETING_EVENTS},{state:e.isLocalRoute(_modules["default"].ARTICLE.value)?"/favourites":null,externalUrl:e.isLocalRoute(_modules["default"].ARTICLE.value)?null:e.getExternalUrl(_modules["default"].ARTICLE.value,"/favourites"),friendStates:[],name:"Избранные статьи",exact:!0,hide:!_globalConfig.globalConfig.articleOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessArticleOn),module:_modules["default"].ARTICLE,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_ArticlesPrivate_54px.svg",isInfinityProfileMenu:!0},{state:e.isLocalRoute(_modules["default"].CAMERAS.value)?"/favorite/cameras":null,externalUrl:e.isLocalRoute(_modules["default"].CAMERAS.value)?null:e.getExternalUrl(_modules["default"].CAMERAS.value,"/favorite/cameras"),friendStates:[],name:"Избранные камеры",exact:!0,hide:!_globalConfig.globalConfig.camerasOn,module:_modules["default"].CAMERAS,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_ArticlesPrivate_54px.svg",isInfinityProfileMenu:!0},{state:e.isLocalRoute(_modules["default"].PROFILE.value)?"/information-messages":null,externalUrl:e.isLocalRoute(_modules["default"].PROFILE.value)?null:e.getExternalUrl(_modules["default"].PROFILE.value,"/information-messages"),friendStates:[],name:"Информ. сообщения",exact:!0,hide:!_globalConfig.globalConfig.informationalMessagesOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessInformationalMessagesOn),module:_modules["default"].PROFILE,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_InformationalMessages_54px.svg",isInfinityProfileMenu:!0,notificationsCountType:_notificationsCount["default"].INFORMATION_MESSAGES},{state:e.isLocalRoute(_modules["default"].PROFILE.value)?"/my-organizations":null,externalUrl:e.isLocalRoute(_modules["default"].PROFILE.value)?null:e.getExternalUrl(_modules["default"].PROFILE.value,"/my-organizations"),friendStates:[],name:"Мои организации",exact:!0,hide:!_authServices.AuthService.getUserInfo()||!_globalConfig.globalConfig.businessModeOn||_utilService.UtilService.isSkh(),module:_modules["default"].PROFILE,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_MyOrganizations_54px.svg",isInfinityProfileMenu:!0},{state:e.isLocalRoute(_modules["default"].LIFECITY.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].LIFECITY.value)?null:e.getExternalUrl(_modules["default"].LIFECITY.value,"/"),friendStates:[],name:_modules["default"].LIFECITY.name,exact:!0,hide:!_globalConfig.globalConfig.lifecityOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessLifecityOn),module:_modules["default"].LIFECITY,moduleRootState:"/"},{state:e.isLocalRoute(_modules["default"].DISCUSSIONS.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].DISCUSSIONS.value)?null:e.getExternalUrl(_modules["default"].DISCUSSIONS.value,"/"),friendStates:[],name:_modules["default"].DISCUSSIONS.name,exact:!0,hide:!_globalConfig.globalConfig.discussionsOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessDiscussionsOn),module:_modules["default"].DISCUSSIONS,moduleRootState:"/"},{state:e.isLocalRoute(_modules["default"].CAMERAS.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].CAMERAS.value)?null:e.getExternalUrl(_modules["default"].CAMERAS.value,"/"),name:e.getTitleModule(_modules["default"].CAMERAS),exact:!0,friendStates:[],hide:!_globalConfig.globalConfig.camerasOn,module:_modules["default"].CAMERAS,icon:"assets/images/svg/menu/city-cameras.svg",isInfinityMainMenu:!0,moduleRootState:"/"},{state:null,externalUrl:null,friendStates:[],name:"Выйти из аккаунта",hide:!_authServices.AuthService.getUserInfo(),isLogout:!0,dropdownAvatar:!0,icon:"assets/images/svg/menu/default.svg",callback:function(){return _authServices.AuthService.logOut()},isInfinityProfileMenu:!0},{state:null,externalUrl:null,friendStates:[],name:"Войти",isAuth:!0,icon:"assets/images/svg/menu/default.svg",hide:!!_authServices.AuthService.getUserInfo()}]}},{key:"menuItemBusinessModeHide",value:function(e){return!!_businessModeUtilsService.BusinessModeUtilsService.isBusinessModeOn()&&!!e}}])}();TopNavInfinityService.MAIN_HASH="#/main",TopNavInfinityService.NOTIFICATIONS_COUNT_INTERVAL=null;
|
|
1
|
+
"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}function _typeof(e){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,l){if(!(e instanceof l))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,l){for(var t=0;t<l.length;t++){var i=l[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey(i.key),i)}}function _createClass(e,l,t){return l&&_defineProperties(e.prototype,l),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var l=_toPrimitive(e,"string");return"symbol"==_typeof(l)?l:l+""}function _toPrimitive(e,l){if("object"!=_typeof(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,l||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===l?String:Number)(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.TopNavInfinityService=void 0;var _globalConfig=require("../config/globalConfig"),_modules=_interopRequireDefault(require("../enums/modules")),_notificationsCount=_interopRequireDefault(require("../enums/notificationsCount")),_authServices=require("./authServices"),_businessModeUtilsService=require("./businessModeUtilsService"),_utilService=require("./utilService"),_appMode=_interopRequireDefault(require("../enums/appMode")),TopNavInfinityService=exports.TopNavInfinityService=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"isLocalRoute",value:function(e){return!!_modules["default"][_globalConfig.globalConfig.currentModule]&&_globalConfig.globalConfig.currentModule===_modules["default"][e].value||!!_modules["default"][_globalConfig.globalConfig.currentModule]&&!!_modules["default"][_globalConfig.globalConfig.currentModule].isMain&&_modules["default"][e].isMain}},{key:"getExternalUrl",value:function(e){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(_modules["default"][e].isMain)return"".concat(_globalConfig.globalConfig.mainModuleDomain,"/#").concat(l);if(e===_modules["default"].RECEPTION.value&&_utilService.UtilService.isR41())return _globalConfig.globalConfig.receptionExternalUrl;if(!_globalConfig.globalConfig.mainModuleDomain)return"";if(_utilService.UtilService.isR41()||_utilService.UtilService.isZab()||_utilService.UtilService.isKhv())return"".concat(_globalConfig.globalConfig.mainModuleDomain,"/").concat(_modules["default"][e].value.toLowerCase()).concat(l?"/#".concat(l):"");var t=_globalConfig.globalConfig.mainModuleDomain.split("://");return"".concat(t[0],"://").concat(_modules["default"][e].value.toLowerCase(),".").concat(t[1]).concat(l?"/#".concat(l):"")}},{key:"isSelectState",value:function(l,t){return l.module&&!l.module.isMain&&l.module.value===_globalConfig.globalConfig.currentModule?!l.exact||l.state===t:e.isSelectRootState(l,t)||e.isSelectFriendState(l,t)}},{key:"isSelectFriendState",value:function(e,l){var t=!1;return!!e.friendStates&&(e.friendStates.forEach(function(e){l.indexOf(e)>-1&&l.indexOf(e)<=1&&(t=!0)}),t)}},{key:"isSelectRootState",value:function(e,l){var t=e&&l.indexOf(e.state)>-1&&l.indexOf(e.state)<=1;return t}},{key:"getTitleModule",value:function(e){var l=e.title[_globalConfig.globalConfig.templateFolder];return l?l:e.title["default"]}},{key:"menuItems",get:function(){return[{state:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:e.getExternalUrl(_modules["default"].COMPLAINTS.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].COMPLAINTS),hide:!_globalConfig.globalConfig.complaintsOn||_utilService.UtilService.isApiri()||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessComplaintsOn)||_utilService.UtilService.isSkh()&&_businessModeUtilsService.BusinessModeUtilsService.isBusinessModeOn(),module:_modules["default"].COMPLAINTS,icon:"assets/images/svg/menu/ic_publicComplaints.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/new":null,externalUrl:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:e.getExternalUrl(_modules["default"].COMPLAINTS.value,"/new"),friendStates:[],name:"Подать ".concat(_globalConfig.globalConfig.WS_VOICE_INFINITY_COMPLAINT_NAME_BASE,"ие"),exact:!0,hide:!_globalConfig.globalConfig.complaintsOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessComplaintsOn)||_utilService.UtilService.isSkh()&&_businessModeUtilsService.BusinessModeUtilsService.isBusinessModeOn(),module:_modules["default"].COMPLAINTS,moduleRootState:"/",icon:"assets/images/svg/menu/ic_CreateComplaints_54px.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].INITIATIVE.value)?"/initiatives-list":null,externalUrl:e.isLocalRoute(_modules["default"].INITIATIVE.value)?null:e.getExternalUrl(_modules["default"].INITIATIVE.value,"/initiatives-list"),friendStates:["intitative"],name:e.getTitleModule(_modules["default"].INITIATIVE),hide:!_globalConfig.globalConfig.initiativenOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessInitiativeOn)||_utilService.UtilService.isSkh(),module:_modules["default"].INITIATIVE,icon:"assets/images/svg/menu/ic_IniciativesPublic_54px.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].INITIATIVE.value)?"/initiative-create":null,externalUrl:e.isLocalRoute(_modules["default"].INITIATIVE.value)?null:e.getExternalUrl(_modules["default"].INITIATIVE.value,"/initiative-create"),friendStates:[],name:"Предложить инициативу",exact:!0,hide:!_globalConfig.globalConfig.initiativenOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessInitiativeOn)||_utilService.UtilService.isSkh(),module:_modules["default"].INITIATIVE,moduleRootState:"/",icon:"assets/images/svg/menu/ic_CreateIniciatives_54px.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].INITIATIVE.value)?"/initiatives-reviewers":null,externalUrl:e.isLocalRoute(_modules["default"].INITIATIVE.value)?null:e.getExternalUrl(_modules["default"].INITIATIVE.value,"/initiative-create"),friendStates:[],name:"Наши эксперты",exact:!0,hide:(!_globalConfig.globalConfig.initiativenOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessInitiativeOn))&&!_utilService.UtilService.isKam()||_utilService.UtilService.isSkh(),module:_modules["default"].INITIATIVE,moduleRootState:"/",icon:"assets/images/svg/menu/ic_IniciativesReviewers.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].MAP.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].MAP.value)?null:e.getExternalUrl(_modules["default"].MAP.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].MAP),hide:!_globalConfig.globalConfig.mapOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessMapOn)||_globalConfig.globalConfig.mapOn&&_globalConfig.globalConfig.lifecityOn&&!_globalConfig.globalConfig.registryContractOn,module:_modules["default"].MAP,icon:"assets/images/svg/menu/ic_SocialMap_54px.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].EVALUATION.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].EVALUATION.value)?null:e.getExternalUrl(_modules["default"].EVALUATION.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].EVALUATION),hide:!_globalConfig.globalConfig.evaluationOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessEvaluationOn),module:_modules["default"].EVALUATION,icon:"assets/images/svg/menu/ic_evaluation_54.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].VOTING.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].VOTING.value)?null:e.getExternalUrl(_modules["default"].VOTING.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].VOTING),hide:!_globalConfig.globalConfig.votingOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessVotingOn),module:_modules["default"].VOTING,icon:"assets/images/svg/menu/ic_voting_54.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].EVENT.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].EVENT.value)?null:e.getExternalUrl(_modules["default"].EVENT.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].EVENT),hide:!_globalConfig.globalConfig.eventOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessEventOn)||_utilService.UtilService.isSkh(),module:_modules["default"].EVENT,icon:"assets/images/svg/menu/ic_events_54px.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].POLL.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].POLL.value)?null:e.getExternalUrl(_modules["default"].POLL.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].POLL),hide:!_globalConfig.globalConfig.pollOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessPollOn)||_utilService.UtilService.isSkh(),module:_modules["default"].POLL,icon:"assets/images/svg/menu/ic_polls.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].ARTICLE.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].ARTICLE.value)?null:e.getExternalUrl(_modules["default"].ARTICLE.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].ARTICLE),hide:!_globalConfig.globalConfig.articleOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessArticleOn),module:_modules["default"].ARTICLE,icon:"assets/images/svg/menu/ic_Articles_54px.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].ORGANIZATION.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].ORGANIZATION.value)?null:e.getExternalUrl(_modules["default"].ORGANIZATION.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].ORGANIZATION),hide:!_globalConfig.globalConfig.organizationOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessOrganizationOn)||_utilService.UtilService.isKhv(),module:_modules["default"].ORGANIZATION,icon:"assets/images/svg/menu/ic_Organization_54px.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].OPENDATA.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].OPENDATA.value)?null:e.getExternalUrl(_modules["default"].OPENDATA.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].OPENDATA),hide:!_globalConfig.globalConfig.openDataOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessOpenDataOn),module:_modules["default"].OPENDATA,icon:"assets/images/svg/menu/open_data_menu.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].RECEPTION.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].RECEPTION.value)?null:e.getExternalUrl(_modules["default"].RECEPTION.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].RECEPTION),hide:!_globalConfig.globalConfig.receptionOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessReceptionOn)||_utilService.UtilService.isR41(),module:_modules["default"].RECEPTION,icon:"assets/images/svg/menu/ic_online_reception.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].STROIKA.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].STROIKA.value)?null:e.getExternalUrl(_modules["default"].STROIKA.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].STROIKA),hide:!_globalConfig.globalConfig.stroikaOn,module:_modules["default"].STROIKA,icon:"assets/images/svg/menu/map-construction.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].MAIN.value)?"/snow-track":null,externalUrl:e.isLocalRoute(_modules["default"].MAIN.value)?null:e.getExternalUrl(_modules["default"].MAIN.value,"/snow-track"),name:"Уборка снега",exact:!0,friendStates:["snow-"],hide:!_globalConfig.globalConfig.snowTrackOn,module:_modules["default"].MAIN,icon:"assets/images/svg/menu/SnowMap.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].MAIN.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].MAIN.value)?null:e.getExternalUrl(_modules["default"].MAIN.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].MAIN),module:_modules["default"].MAIN,icon:"assets/images/svg/menu/ic_Main_54px.svg",isInfinityMainMenu:!0},{externalUrl:"https://atlas27.ru",name:"Атлас объектов",icon:"assets/images/svg/menu/ic_Atlas27_54px.svg",isInfinityMainMenu:!0,hide:!_utilService.UtilService.isKhv()},{state:e.isLocalRoute(_modules["default"].PROFILE.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].PROFILE.value)?null:e.getExternalUrl(_modules["default"].PROFILE.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].PROFILE),hide:!_globalConfig.globalConfig.profileOn||!_authServices.AuthService.getUserInfo()||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessProfileOn),module:_modules["default"].PROFILE,icon:"assets/images/svg/menu/user.svg",isInfinityProfileMenu:!0},{state:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/cabinet/with-mode/".concat(_appMode["default"].PUBLIC):null,externalUrl:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:e.getExternalUrl(_modules["default"].COMPLAINTS.value,"/cabinet/with-mode/".concat(_appMode["default"].PUBLIC)),friendStates:[],name:"Мои ".concat(_globalConfig.globalConfig.WS_VOICE_INFINITY_COMPLAINT_NAME_BASE,"ия"),exact:!0,hide:!_globalConfig.globalConfig.complaintsOn,module:_modules["default"].COMPLAINTS,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_MyComplaints_54.svg",isInfinityProfileMenu:!0,notificationsCountType:_notificationsCount["default"].COMPLAINTS},{state:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/cabinet/with-mode/".concat(_appMode["default"].BUSINESS):null,externalUrl:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:e.getExternalUrl(_modules["default"].COMPLAINTS.value,"/cabinet/with-mode/".concat(_appMode["default"].BUSINESS)),friendStates:[],name:"".concat(_utilService.UtilService.setFirstWordToUpperCase(_globalConfig.globalConfig.WS_VOICE_INFINITY_COMPLAINT_NAME_BASE),"ия компании"),exact:!0,hide:e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessComplaintsOn)||!!_utilService.UtilService.isApiri(),module:_modules["default"].COMPLAINTS,moduleRootState:"/",needHasOrganization:!0,dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_MyOrgComplaints_54.svg",isInfinityProfileMenu:!0,notificationsCountType:_notificationsCount["default"].BUSINESS_COMPLAINTS},{state:e.isLocalRoute(_modules["default"].MAIN.value)?"/cabinet/initiatives-list":null,externalUrl:e.isLocalRoute(_modules["default"].MAIN.value)?null:e.getExternalUrl(_modules["default"].MAIN.value,"/cabinet/initiatives-list"),friendStates:[],name:"Мои инициативы",exact:!0,hide:!_globalConfig.globalConfig.initiativenOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessInitiativeOn)||_utilService.UtilService.isSkh(),module:_modules["default"].MAIN,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_MyComplaints_54.svg",isInfinityProfileMenu:!0},{state:e.isLocalRoute(_modules["default"].EVALUATION.value)?"/cabinet/vote/list":null,externalUrl:e.isLocalRoute(_modules["default"].EVALUATION.value)?null:e.getExternalUrl(_modules["default"].EVALUATION.value,"/cabinet/vote/list"),friendStates:[],name:"Мои голоса",exact:!0,hide:!_globalConfig.globalConfig.evaluationOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessEvaluationOn),module:_modules["default"].EVALUATION,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_my_evaluation_54.svg",isInfinityProfileMenu:!0},{state:e.isLocalRoute(_modules["default"].VOTING.value)?"/cabinet/claims-list":null,externalUrl:e.isLocalRoute(_modules["default"].VOTING.value)?null:e.getExternalUrl(_modules["default"].VOTING.value,"/cabinet/claims-list"),friendStates:[],name:"Мои предложения",exact:!0,hide:!_globalConfig.globalConfig.votingOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessVotingOn)||_globalConfig.globalConfig.votingOn&&!_utilService.UtilService.isKhv()&&!_utilService.UtilService.isR41(),module:_modules["default"].VOTING,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_MyComplaints_54.svg",isInfinityProfileMenu:!0},{state:e.isLocalRoute(_modules["default"].RECEPTION.value)?"/cabinet":null,externalUrl:e.isLocalRoute(_modules["default"].RECEPTION.value)?null:e.getExternalUrl(_modules["default"].RECEPTION.value,"/cabinet"),friendStates:[],name:"Мои заявки",exact:!0,hide:!_globalConfig.globalConfig.receptionOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessReceptionOn),module:_modules["default"].RECEPTION,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_online_reception_private.svg",isInfinityProfileMenu:!0,notificationsCountType:_notificationsCount["default"].MEETING_EVENTS},{state:e.isLocalRoute(_modules["default"].ARTICLE.value)?"/favourites":null,externalUrl:e.isLocalRoute(_modules["default"].ARTICLE.value)?null:e.getExternalUrl(_modules["default"].ARTICLE.value,"/favourites"),friendStates:[],name:"Избранные статьи",exact:!0,hide:!_globalConfig.globalConfig.articleOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessArticleOn),module:_modules["default"].ARTICLE,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_ArticlesPrivate_54px.svg",isInfinityProfileMenu:!0},{state:e.isLocalRoute(_modules["default"].CAMERAS.value)?"/favorite/cameras":null,externalUrl:e.isLocalRoute(_modules["default"].CAMERAS.value)?null:e.getExternalUrl(_modules["default"].CAMERAS.value,"/favorite/cameras"),friendStates:[],name:"Избранные камеры",exact:!0,hide:!_globalConfig.globalConfig.camerasOn,module:_modules["default"].CAMERAS,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_ArticlesPrivate_54px.svg",isInfinityProfileMenu:!0},{state:e.isLocalRoute(_modules["default"].PROFILE.value)?"/information-messages":null,externalUrl:e.isLocalRoute(_modules["default"].PROFILE.value)?null:e.getExternalUrl(_modules["default"].PROFILE.value,"/information-messages"),friendStates:[],name:"Информ. сообщения",exact:!0,hide:!_globalConfig.globalConfig.informationalMessagesOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessInformationalMessagesOn),module:_modules["default"].PROFILE,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_InformationalMessages_54px.svg",isInfinityProfileMenu:!0,notificationsCountType:_notificationsCount["default"].INFORMATION_MESSAGES},{state:e.isLocalRoute(_modules["default"].PROFILE.value)?"/my-organizations":null,externalUrl:e.isLocalRoute(_modules["default"].PROFILE.value)?null:e.getExternalUrl(_modules["default"].PROFILE.value,"/my-organizations"),friendStates:[],name:"Мои организации",exact:!0,hide:!_authServices.AuthService.getUserInfo()||!_globalConfig.globalConfig.businessModeOn||_utilService.UtilService.isSkh(),module:_modules["default"].PROFILE,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_MyOrganizations_54px.svg",isInfinityProfileMenu:!0},{state:e.isLocalRoute(_modules["default"].LIFECITY.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].LIFECITY.value)?null:e.getExternalUrl(_modules["default"].LIFECITY.value,"/"),friendStates:[],name:_modules["default"].LIFECITY.name,exact:!0,hide:!_globalConfig.globalConfig.lifecityOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessLifecityOn),module:_modules["default"].LIFECITY,moduleRootState:"/"},{state:e.isLocalRoute(_modules["default"].DISCUSSIONS.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].DISCUSSIONS.value)?null:e.getExternalUrl(_modules["default"].DISCUSSIONS.value,"/"),friendStates:[],name:_modules["default"].DISCUSSIONS.name,exact:!0,hide:!_globalConfig.globalConfig.discussionsOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessDiscussionsOn),module:_modules["default"].DISCUSSIONS,moduleRootState:"/"},{state:e.isLocalRoute(_modules["default"].CAMERAS.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].CAMERAS.value)?null:e.getExternalUrl(_modules["default"].CAMERAS.value,"/"),name:e.getTitleModule(_modules["default"].CAMERAS),exact:!0,friendStates:[],hide:!_globalConfig.globalConfig.camerasOn,module:_modules["default"].CAMERAS,icon:"assets/images/svg/menu/city-cameras.svg",isInfinityMainMenu:!0,moduleRootState:"/"},{state:null,externalUrl:null,friendStates:[],name:"Выйти из аккаунта",hide:!_authServices.AuthService.getUserInfo(),isLogout:!0,dropdownAvatar:!0,icon:"assets/images/svg/menu/default.svg",callback:function(){return _authServices.AuthService.logOut()},isInfinityProfileMenu:!0},{state:null,externalUrl:null,friendStates:[],name:"Войти",isAuth:!0,icon:"assets/images/svg/menu/default.svg",hide:!!_authServices.AuthService.getUserInfo()}]}},{key:"menuItemBusinessModeHide",value:function(e){return!!_businessModeUtilsService.BusinessModeUtilsService.isBusinessModeOn()&&!!e}}])}();TopNavInfinityService.MAIN_HASH="#/main",TopNavInfinityService.NOTIFICATIONS_COUNT_INTERVAL=null;
|