ws-voice-infinity-global-module 1.0.20 → 1.0.23

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.
@@ -1 +1 @@
1
- "use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}function _defineProperty(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=void 0;var _react=_interopRequireDefault(require("react")),_classnames=_interopRequireDefault(require("classnames")),_wsReactFlexLayout=require("ws-react-flex-layout"),_reactSvg=_interopRequireDefault(require("react-svg")),_modules=_interopRequireDefault(require("../../../../enums/modules")),_utilService=require("../../../../services/utilService"),footerTemplate=function(e){return _react["default"].createElement("footer",{className:(0,_classnames["default"])("footer-r41")},_react["default"].createElement("div",{className:(0,_classnames["default"])("page-container")},_react["default"].createElement(_wsReactFlexLayout.FlexBox,{node:"section",column:"start",className:(0,_classnames["default"])("footer-r41-content")},_react["default"].createElement(_wsReactFlexLayout.FlexBox,{rowWrap:"sb start",className:(0,_classnames["default"])("footer-r41-content__row")},_react["default"].createElement(_wsReactFlexLayout.FlexBox,{grow:"1",rowWrap:"start",className:(0,_classnames["default"])("footer-r41-content__links-group")},_react["default"].createElement("section",{className:(0,_classnames["default"])("footer-r41-content__column","footer-r41-content__column--wide")},_react["default"].createElement("figure",{className:(0,_classnames["default"])("footer-r41-content__logo")},_react["default"].createElement(_reactSvg["default"],{src:"assets/images/svg/r41-logo-light.svg",svgClassName:(0,_classnames["default"])("footer-r41-content__logo-image")}))),e.getMenuItems().map(function(e,t){return _react["default"].createElement("section",{key:t,className:(0,_classnames["default"])("footer-r41-content__column")},_react["default"].createElement("ul",{className:(0,_classnames["default"])("footer-r41-content__column-list")},e.map(function(e,t){var a=_defineProperty({className:(0,_classnames["default"])("footer-r41-content__column-list-link","ws-body-2-white")},"data-template",_utilService.UtilService.getTemplateAttribute());return e.externalUrl&&(a.href=e.externalUrl,a.rel="noopener noreferrer"),e.blank&&(a.target="_blank"),e.state&&(a.href="#".concat(e.state)),_react["default"].createElement("li",{key:t,className:(0,_classnames["default"])("footer-r41-content__column-list-item")},_react["default"].createElement("a",a,e.name))})))})),_react["default"].createElement(_wsReactFlexLayout.FlexBox,{shrink:"0",column:"start end",className:(0,_classnames["default"])("footer-r41-content__socials-block")},_react["default"].createElement("a",{className:(0,_classnames["default"])("footer-r41-content__friendly-logo-link"),href:"http://crk2025.kamgov.ru/",target:"_blank",rel:"noopener noreferrer"},_react["default"].createElement(_reactSvg["default"],{className:(0,_classnames["default"])("footer-r41-content__friendly-logo-wrapper"),svgClassName:"footer-r41-content__friendly-logo",src:"assets/images/svg/r41-friendly-logo.svg"})))),_react["default"].createElement("div",{className:(0,_classnames["default"])("footer-r41-content__row","ws-body-2-secondary"),"data-template":_utilService.UtilService.getTemplateAttribute()},_react["default"].createElement("p",null,"© ".concat(e.currentYear," Камчатка в порядке"))),_react["default"].createElement(_wsReactFlexLayout.FlexBox,{rowWrap:"sb start",className:(0,_classnames["default"])("footer-r41-content__row")},_react["default"].createElement(_wsReactFlexLayout.FlexBox,{grow:"1",rowWrap:"sb start",className:(0,_classnames["default"])("footer-r41-content__links-group","footer-r41-content__links-group--bottom")},_react["default"].createElement("section",{className:(0,_classnames["default"])("footer-r41-content__column","footer-r41-content__column--wide")},_react["default"].createElement("ul",{className:(0,_classnames["default"])("footer-r41-content__column-list")},_react["default"].createElement("li",{className:(0,_classnames["default"])("footer-r41-content__column-list-item")},_react["default"].createElement("a",{className:(0,_classnames["default"])("footer-r41-content__column-list-link","footer-r41-content__column-list-link--secondary","ws-body-2-secondary"),href:e.hrefToModule(_modules["default"].MAIN.value,"/user-agreement"),"data-template":_utilService.UtilService.getTemplateAttribute()},"Пользовательское соглашение")),_react["default"].createElement("li",{className:(0,_classnames["default"])("footer-r41-content__column-list-item")},_react["default"].createElement("a",{className:(0,_classnames["default"])("footer-r41-content__column-list-link","footer-r41-content__column-list-link--secondary","ws-body-2-secondary"),href:"mailto:support@kiac41.ru","data-template":_utilService.UtilService.getTemplateAttribute()},"Техническая поддержка")))),_react["default"].createElement("section",{className:(0,_classnames["default"])("footer-r41-content__column","footer-r41-content__column--wide")},_react["default"].createElement("ul",{className:(0,_classnames["default"])("footer-r41-content__column-list")},_react["default"].createElement("li",{className:(0,_classnames["default"])("footer-r41-content__column-list-item")},_react["default"].createElement("a",{className:(0,_classnames["default"])("footer-r41-content__column-list-link","footer-r41-content__column-list-link--secondary","ws-body-2-secondary"),href:e.hrefToModule(_modules["default"].MAIN.value,"/moderation-rules"),"data-template":_utilService.UtilService.getTemplateAttribute()},"Правила модерации")))),_react["default"].createElement("section",{className:(0,_classnames["default"])("footer-r41-content__column","footer-r41-content__column--wide","footer-r41-content__column--created-by")},_react["default"].createElement(_wsReactFlexLayout.FlexBox,{column:"start end",className:(0,_classnames["default"])("footer-r41-content__created-by")},_react["default"].createElement("a",{href:"https://thewhite.ru/",target:"_blank",rel:"noopener noreferrer"},_react["default"].createElement(_reactSvg["default"],{svgClassName:(0,_classnames["default"])("footer-r41-content__created-by-icon"),src:"assets/images/svg/logo_white.svg"})),_react["default"].createElement("p",{className:(0,_classnames["default"])("footer-r41-content__created-by-text","ws-caption-1-secondary"),"data-template":_utilService.UtilService.getTemplateAttribute()},"разработка и поддержка"))))))))},_default=footerTemplate;exports["default"]=_default;
1
+ "use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}function _defineProperty(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=void 0;var _react=_interopRequireDefault(require("react")),_classnames=_interopRequireDefault(require("classnames")),_wsReactFlexLayout=require("ws-react-flex-layout"),_reactSvg=_interopRequireDefault(require("react-svg")),_modules=_interopRequireDefault(require("../../../../enums/modules")),_utilService=require("../../../../services/utilService"),footerTemplate=function(e){return _react["default"].createElement("footer",{className:(0,_classnames["default"])("footer-r41")},_react["default"].createElement("div",{className:(0,_classnames["default"])("page-container")},_react["default"].createElement(_wsReactFlexLayout.FlexBox,{node:"section",column:"start",className:(0,_classnames["default"])("footer-r41-content")},_react["default"].createElement(_wsReactFlexLayout.FlexBox,{rowWrap:"sb start",className:(0,_classnames["default"])("footer-r41-content__row")},_react["default"].createElement(_wsReactFlexLayout.FlexBox,{grow:"1",rowWrap:"start",className:(0,_classnames["default"])("footer-r41-content__links-group")},_react["default"].createElement("section",{className:(0,_classnames["default"])("footer-r41-content__column","footer-r41-content__column--wide")},_react["default"].createElement("figure",{className:(0,_classnames["default"])("footer-r41-content__logo")},_react["default"].createElement(_reactSvg["default"],{src:"assets/images/svg/r41-logo-light.svg",svgClassName:(0,_classnames["default"])("footer-r41-content__logo-image")}))),e.getMenuItems().map(function(e,t){return _react["default"].createElement("section",{key:t,className:(0,_classnames["default"])("footer-r41-content__column")},_react["default"].createElement("ul",{className:(0,_classnames["default"])("footer-r41-content__column-list")},e.map(function(e,t){var a=_defineProperty({className:(0,_classnames["default"])("footer-r41-content__column-list-link","ws-body-2-white")},"data-template",_utilService.UtilService.getTemplateAttribute());return e.externalUrl&&(a.href=e.externalUrl,a.rel="noopener noreferrer"),e.blank&&(a.target="_blank"),e.state&&(a.href="#".concat(e.state)),_react["default"].createElement("li",{key:t,className:(0,_classnames["default"])("footer-r41-content__column-list-item")},_react["default"].createElement("a",a,e.name))})))})),_react["default"].createElement(_wsReactFlexLayout.FlexBox,{shrink:"0",column:"start end",className:(0,_classnames["default"])("footer-r41-content__socials-block")},_react["default"].createElement("a",{className:(0,_classnames["default"])("footer-r41-content__friendly-logo-link"),href:"http://crk2025.kamgov.ru/",target:"_blank",rel:"noopener noreferrer"},_react["default"].createElement(_reactSvg["default"],{className:(0,_classnames["default"])("footer-r41-content__friendly-logo-wrapper"),svgClassName:"footer-r41-content__friendly-logo",src:"assets/images/svg/r41-friendly-logo.svg"})))),_react["default"].createElement("div",{className:(0,_classnames["default"])("footer-r41-content__row","ws-body-2-secondary"),"data-template":_utilService.UtilService.getTemplateAttribute()},_react["default"].createElement("p",null,"© ".concat(e.currentYear," Камчатка в порядке"))),_react["default"].createElement(_wsReactFlexLayout.FlexBox,{rowWrap:"sb start",className:(0,_classnames["default"])("footer-r41-content__row")},_react["default"].createElement(_wsReactFlexLayout.FlexBox,{grow:"1",rowWrap:"sb start",className:(0,_classnames["default"])("footer-r41-content__links-group","footer-r41-content__links-group--bottom")},_react["default"].createElement("section",{className:(0,_classnames["default"])("footer-r41-content__column","footer-r41-content__column--wide")},_react["default"].createElement("ul",{className:(0,_classnames["default"])("footer-r41-content__column-list")},_react["default"].createElement("li",{className:(0,_classnames["default"])("footer-r41-content__column-list-item")},_react["default"].createElement("a",{className:(0,_classnames["default"])("footer-r41-content__column-list-link","footer-r41-content__column-list-link--secondary","ws-body-2-secondary"),href:e.hrefToModule(_modules["default"].MAIN.value,"/user-agreement"),"data-template":_utilService.UtilService.getTemplateAttribute()},"Пользовательское соглашение")),_react["default"].createElement("li",{className:(0,_classnames["default"])("footer-r41-content__column-list-item")},_react["default"].createElement("a",{className:(0,_classnames["default"])("footer-r41-content__column-list-link","footer-r41-content__column-list-link--secondary","ws-body-2-secondary"),href:"mailto:DS@kamgov.ru","data-template":_utilService.UtilService.getTemplateAttribute()},"Техническая поддержка")))),_react["default"].createElement("section",{className:(0,_classnames["default"])("footer-r41-content__column","footer-r41-content__column--wide")},_react["default"].createElement("ul",{className:(0,_classnames["default"])("footer-r41-content__column-list")},_react["default"].createElement("li",{className:(0,_classnames["default"])("footer-r41-content__column-list-item")},_react["default"].createElement("a",{className:(0,_classnames["default"])("footer-r41-content__column-list-link","footer-r41-content__column-list-link--secondary","ws-body-2-secondary"),href:e.hrefToModule(_modules["default"].MAIN.value,"/moderation-rules"),"data-template":_utilService.UtilService.getTemplateAttribute()},"Правила модерации")))),_react["default"].createElement("section",{className:(0,_classnames["default"])("footer-r41-content__column","footer-r41-content__column--wide","footer-r41-content__column--created-by")},_react["default"].createElement(_wsReactFlexLayout.FlexBox,{column:"start end",className:(0,_classnames["default"])("footer-r41-content__created-by")},_react["default"].createElement("a",{href:"https://thewhite.ru/",target:"_blank",rel:"noopener noreferrer"},_react["default"].createElement(_reactSvg["default"],{svgClassName:(0,_classnames["default"])("footer-r41-content__created-by-icon"),src:"assets/images/svg/logo_white.svg"})),_react["default"].createElement("p",{className:(0,_classnames["default"])("footer-r41-content__created-by-text","ws-caption-1-secondary"),"data-template":_utilService.UtilService.getTemplateAttribute()},"разработка и поддержка"))))))))},_default=footerTemplate;exports["default"]=_default;
@@ -1 +1 @@
1
- "use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":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 a=0;a<l.length;a++){var i=l[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _createClass(e,l,a){return l&&_defineProperties(e.prototype,l),a&&_defineProperties(e,a),Object.defineProperty(e,"prototype",{writable:!1}),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=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)},{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:_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)},{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)},{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)},{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"].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,exact:!0,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":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].MAP.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].MAP.value,"/?showContract"),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(),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,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}]}}]),e}();exports.TopNavMainPageService=TopNavMainPageService;
1
+ "use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":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 a=0;a<l.length;a++){var i=l[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _createClass(e,l,a){return l&&_defineProperties(e.prototype,l),a&&_defineProperties(e,a),Object.defineProperty(e,"prototype",{writable:!1}),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=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)},{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:_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)},{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)},{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)},{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"].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":null,externalUrl:_topNavService.TopNavInfinityService.isLocalRoute(_modules["default"].MAP.value)?null:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].MAP.value,"/?showContract"),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"].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(),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,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}]}}]),e}();exports.TopNavMainPageService=TopNavMainPageService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ws-voice-infinity-global-module",
3
- "version": "1.0.20",
3
+ "version": "1.0.23",
4
4
  "description": "ws-voice-infinity-global-module",
5
5
  "repository": {
6
6
  "type": "git",