ws-voice-infinity-global-module 1.0.34 → 1.0.36
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/configs.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export interface GlobalConfigInterface {
|
|
|
14
14
|
|
|
15
15
|
organizationOn: boolean;
|
|
16
16
|
mapOn: boolean;
|
|
17
|
+
basicAuth: string;
|
|
17
18
|
complaintsOn: boolean;
|
|
18
19
|
initiativenOn: boolean;
|
|
19
20
|
initiativeRequiredFieldsOn: boolean;
|
|
@@ -80,6 +81,7 @@ export interface GlobalConfigInterface {
|
|
|
80
81
|
zoomApiKey: string;
|
|
81
82
|
zoomApiSecret: string;
|
|
82
83
|
hideMainAuth: boolean;
|
|
84
|
+
WS_VOICE_INFINITY_CONTRACT_CATEGORY_GROUP_ID: string;
|
|
83
85
|
/**
|
|
84
86
|
* Переменные по процессам
|
|
85
87
|
*/
|
package/lib/module/config/api.js
CHANGED
|
@@ -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 _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function(e){return e?t:r})(e)}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{"default":e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var i={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&Object.prototype.hasOwnProperty.call(e,n)){var o=u?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(i,n,o):i[n]=e[n]}return i["default"]=e,t&&t.set(e,i),i}function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.api=void 0;var _axios=_interopRequireDefault(require("axios")),_authServices=require("../services/authServices"),authActions=_interopRequireWildcard(require("../actions/authActions")),_qs=_interopRequireDefault(require("qs")),_configs=require("../../configs"),api=_axios["default"].create({});exports.api=api,api.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded",api.interceptors.request.use(function(e){try{var r=_authServices.AuthService.getUserInfo(),t=r?r.access_token:null,i=["auth-service","refresh-token"],u=["auth-service/users","auth-service/external/users","auth-service/auth/logout"],n=i.some(function(r){return e.url.includes(r)})&&u.every(function(r){return!e.url.includes(r)});(t||n)&&(e.headers.Authorization=n?"Basic ".concat(_configs.globalConfig.
|
|
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 _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function(e){return e?t:r})(e)}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{"default":e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var i={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&Object.prototype.hasOwnProperty.call(e,n)){var o=u?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(i,n,o):i[n]=e[n]}return i["default"]=e,t&&t.set(e,i),i}function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.api=void 0;var _axios=_interopRequireDefault(require("axios")),_authServices=require("../services/authServices"),authActions=_interopRequireWildcard(require("../actions/authActions")),_qs=_interopRequireDefault(require("qs")),_configs=require("../../configs"),api=_axios["default"].create({});exports.api=api,api.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded",api.interceptors.request.use(function(e){try{var r=_authServices.AuthService.getUserInfo(),t=r?r.access_token:null,i=["auth-service","refresh-token"],u=["auth-service/users","auth-service/external/users","auth-service/auth/logout"],n=i.some(function(r){return e.url.includes(r)})&&u.every(function(r){return!e.url.includes(r)});(t||n)&&(e.headers.Authorization=n?"Basic ".concat(_configs.globalConfig.basicAuth):"Bearer "+t);var o={skipNulls:!0,arrayFormat:"repeat"};e.paramsSerializer=function(e){return _qs["default"].stringify(e,o)}}catch(a){return}return e}),api.interceptors.response.use(function(e){return e},function(e){var r=401,t=15,i=e.config;if(e.response&&e.response.status===r&&!i._retry&&_authServices.AuthService.getUserInfo()&&_authServices.AuthService.getUserInfo().refresh_token){if(_authServices.AuthService.PROCESS_REFRESH||"undefined"==typeof window)return new Promise(function(e){var r=window.setInterval(function(){if(!_authServices.AuthService.PROCESS_REFRESH)return window.clearInterval(r),i.headers.Authorization="Bearer "+(_authServices.AuthService.getUserInfo()?_authServices.AuthService.getUserInfo().access_token:""),e(api(i))},t)});i._retry=!0,_authServices.AuthService.PROCESS_REFRESH=!0;try{return authActions.token(null,null,!0,null).then(function(){return i.headers.Authorization="Bearer "+(_authServices.AuthService.getUserInfo()?_authServices.AuthService.getUserInfo().access_token:""),_authServices.AuthService.PROCESS_REFRESH=!1,api(i)})["catch"](function(){_authServices.AuthService.PROCESS_REFRESH=!1,_authServices.AuthService.logOut()})}catch(e){_authServices.AuthService.PROCESS_REFRESH=!1,_authServices.AuthService.logOut()}}return Promise.reject(e)});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.globalConfig=void 0;var globalConfig={anonymousUser:{anonymousUserLastName:"Анонимный",anonymousUserFirstName:"Пользователь"},pageSize:10,maxPageSize:1e3};exports.globalConfig=globalConfig;var getTemplateFolderFromLocalStorage=function(){try{var a=window.localStorage.getItem("WS_VOICE_INFINITY_DEV_TEMPLATE_FOLDER");return a?JSON.parse(a):null}catch(o){return null}},variableIsDefined=function(a){return"undefined"!=typeof a},parseBooleanVariable=function(a){return variableIsDefined(a)&&!!a&&"false"!==a},parseStringVariable=function(a,o){return variableIsDefined(a)&&a?a:o};try{globalConfig.api=parseStringVariable(WS_THE_VOICE_GLOBAL_IP,"https://region.golos27.ru/api")}catch(e){globalConfig.api="https://region.golos27.ru/api"}try{globalConfig.socialAuthPath=parseStringVariable(WS_THE_VOICE_SOCIAL_AUTH_PATH,"https://region.golos27.ru")}catch(e){globalConfig.socialAuthPath="https://region.golos27.ru"}try{globalConfig.openDataPath=parseStringVariable(WS_VOICE_INFINITY_OPEN_DATA_PATH,"")}catch(e){globalConfig.openDataPath=""}try{globalConfig.mainModuleDomain=parseStringVariable(WS_VOICE_INFINITY_MAIN_MODULE_DOMAIN,"")}catch(e){globalConfig.mainModuleDomain=""}try{globalConfig.currentModule=parseStringVariable(WS_VOICE_INFINITY_CURRENT_MODULE,"")}catch(e){globalConfig.currentModule=""}try{globalConfig.templateFolder=getTemplateFolderFromLocalStorage()?getTemplateFolderFromLocalStorage():parseStringVariable(WS_VOICE_INFINITY_TEMPLATE_FOLDER,"")}catch(e){globalConfig.templateFolder=""}try{globalConfig.organizationOn=parseBooleanVariable(WS_VOICE_INFINITY_ORGANIZATION_ON)}catch(e){globalConfig.organizationOn=!1}try{globalConfig.mapOn=parseBooleanVariable(WS_VOICE_INFINITY_MAP_ON)}catch(e){globalConfig.mapOn=!1}try{globalConfig.complaintsOn=parseBooleanVariable(WS_VOICE_INFINITY_COMPLAINTS_ON)}catch(e){globalConfig.complaintsOn=!1}try{globalConfig.initiativenOn=parseBooleanVariable(WS_VOICE_INFINITY_INITIATIVE_ON)}catch(e){globalConfig.initiativenOn=!1}try{globalConfig.initiativeRequiredFieldsOn=parseBooleanVariable(WS_VOICE_INFINITY_INITIATIVE_REQUIRED_FIELDS_ON)}catch(e){globalConfig.initiativeRequiredFieldsOn=!1}try{globalConfig.receptionExternalUrl=parseStringVariable(WS_VOICE_INFINITY_RECEPTION_EXTERNAL_URL,"")}catch(e){globalConfig.receptionExternalUrl=""}try{globalConfig.evaluationOn=parseBooleanVariable(WS_VOICE_INFINITY_EVALUATION_ON)}catch(e){globalConfig.evaluationOn=!1}try{globalConfig.votingOn=parseBooleanVariable(WS_VOICE_INFINITY_VOTING_ON)}catch(e){globalConfig.votingOn=!1}try{globalConfig.openDataOn=parseBooleanVariable(WS_VOICE_INFINITY_OPEN_DATA_ON)}catch(e){globalConfig.openDataOn=!1}try{globalConfig.snowTrackOn=parseBooleanVariable(WS_VOICE_INFINITY_SNOW_TRACK_ON)}catch(e){globalConfig.snowTrackOn=!1}try{globalConfig.eventOn=parseBooleanVariable(WS_VOICE_INFINITY_EVENT_ON)}catch(e){globalConfig.eventOn=!1}try{globalConfig.pollOn=parseBooleanVariable(WS_VOICE_INFINITY_POLL_ON)}catch(e){globalConfig.pollOn=!1}try{globalConfig.camerasOn=parseBooleanVariable(WS_VOICE_INFINITY_CAMERAS_ON)}catch(e){globalConfig.camerasOn=!1}try{globalConfig.articleOn=parseBooleanVariable(WS_VOICE_INFINITY_ARTICLE_ON)}catch(e){globalConfig.articleOn=!1}try{globalConfig.profileOn=parseBooleanVariable(WS_VOICE_INFINITY_PROFILE_ON)}catch(e){globalConfig.profileOn=!1}try{globalConfig.businessModeOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_MODE)}catch(e){globalConfig.businessModeOn=!1}try{globalConfig.informationalMessagesOn=parseBooleanVariable(WS_VOICE_INFORMATIONAL_MESSAGES_ON)}catch(e){globalConfig.informationalMessagesOn=!1}try{globalConfig.receptionOn=parseBooleanVariable(WS_VOICE_INFINITY_ONLINE_RECEPTION_ON)}catch(e){globalConfig.receptionOn=!1}try{globalConfig.lifecityOn=parseBooleanVariable(WS_VOICE_INFINITY_REGISTRY_LIFECITY_ON)}catch(e){globalConfig.lifecityOn=!1}try{globalConfig.discussionsOn=parseBooleanVariable(WS_VOICE_INFINITY_DISCUSSIONS_ON)}catch(e){globalConfig.discussionsOn=!1}try{globalConfig.stroikaOn=parseBooleanVariable(WS_VOICE_INFINITY_STROIKA_ON)}catch(e){globalConfig.stroikaOn=!1}try{globalConfig.businessDiscussionsOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_DISCUSSIONS_ON)}catch(e){globalConfig.businessDiscussionsOn=!1}try{globalConfig.businessOrganizationOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_ORGANIZATION_ON)}catch(e){globalConfig.businessOrganizationOn=!1}try{globalConfig.businessMapOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_MAP_ON)}catch(e){globalConfig.businessMapOn=!1}try{globalConfig.businessComplaintsOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_COMPLAINTS_ON)}catch(e){globalConfig.businessComplaintsOn=!1}try{globalConfig.businessInitiativeOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_INITIATIVE_ON)}catch(e){globalConfig.businessInitiativeOn=!1}try{globalConfig.businessEvaluationOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_EVALUATION_ON)}catch(e){globalConfig.businessEvaluationOn=!1}try{globalConfig.businessVotingOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_VOTING_ON)}catch(e){globalConfig.businessVotingOn=!1}try{globalConfig.businessEventOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_EVENT_ON)}catch(e){globalConfig.businessEventOn=!1}try{globalConfig.businessPollOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_POLL_ON)}catch(e){globalConfig.businessPollOn=!1}try{globalConfig.businessArticleOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_ARTICLE_ON)}catch(e){globalConfig.businessArticleOn=!1}try{globalConfig.businessOpenDataOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_OPEN_DATA_ON)}catch(e){globalConfig.businessOpenDataOn=!1}try{globalConfig.businessSnowTrackOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_SNOW_TRACK_ON)}catch(e){globalConfig.businessSnowTrackOn=!1}try{globalConfig.businessProfileOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_PROFILE_ON)}catch(e){globalConfig.businessProfileOn=!1}try{globalConfig.businessInformationalMessagesOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_INFORMATIONAL_MESSAGES_ON)}catch(e){globalConfig.businessInformationalMessagesOn=!1}try{globalConfig.businessReceptionOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_ONLINE_RECEPTION_ON)}catch(e){globalConfig.businessReceptionOn=!1}try{globalConfig.businessLifecityOn=parseBooleanVariable(WS_VOICE_INFINITY_REGISTRY_BUSINESS_LIFECITY_ON)}catch(e){globalConfig.businessLifecityOn=!1}try{globalConfig.oktmoCode=parseStringVariable(WS_VOICE_INFINITY_OKTMO_CODE,"")}catch(e){globalConfig.oktmoCode=""}try{globalConfig.WS_VOICE_MAP_SEARCH_PREFIX=parseStringVariable(WS_VOICE_MAP_SEARCH_PREFIX,"Россия, Хабаровский край, ")}catch(e){globalConfig.WS_VOICE_MAP_SEARCH_PREFIX="Россия, Хабаровский край, "}try{globalConfig.WS_VOICE_MAP_LAT=parseStringVariable(WS_VOICE_MAP_LAT,"48.468976")}catch(e){globalConfig.WS_VOICE_MAP_LAT="48.468976"}try{globalConfig.WS_VOICE_MAP_LNG=parseStringVariable(WS_VOICE_MAP_LNG,"135.112979")}catch(e){globalConfig.WS_VOICE_MAP_LNG="135.112979"}try{globalConfig.WS_VOICE_INFINITY_COMPLAINT_NAME_BASE=parseStringVariable(WS_VOICE_INFINITY_COMPLAINT_NAME_BASE,"обращен")}catch(e){globalConfig.WS_VOICE_INFINITY_COMPLAINT_NAME_BASE="обращен"}try{globalConfig.WS_VOICE_INFINITY_ARTICLE_NAME_BASE=parseStringVariable(WS_VOICE_INFINITY_ARTICLE_NAME_BASE,"база знаний")}catch(e){globalConfig.WS_VOICE_INFINITY_ARTICLE_NAME_BASE="база знаний"}try{globalConfig.WS_VOICE_INFINITY_CAPTCHA_KEY=parseStringVariable(WS_VOICE_INFINITY_CAPTCHA_KEY,"")}catch(e){globalConfig.WS_VOICE_INFINITY_CAPTCHA_KEY=""}try{globalConfig.WS_VOICE_INFINITY_ESIA_ON=parseBooleanVariable(WS_VOICE_INFINITY_ESIA_ON)}catch(e){globalConfig.WS_VOICE_INFINITY_ESIA_ON=!1}try{globalConfig.WS_VOICE_INFINITY_VK_ON=parseBooleanVariable(WS_VOICE_INFINITY_VK_ON)}catch(e){globalConfig.WS_VOICE_INFINITY_VK_ON=!1}try{globalConfig.WS_VOICE_INFINITY_TWITTER_ON=parseBooleanVariable(WS_VOICE_INFINITY_TWITTER_ON)}catch(e){globalConfig.WS_VOICE_INFINITY_TWITTER_ON=!1}try{globalConfig.customizeStoreIcons=parseBooleanVariable(WS_VOICE_INFINITY_CUSTOMIZE_STORE_ICONS)}catch(e){globalConfig.customizeStoreIcons=!1}try{globalConfig.zoomApiKey=parseStringVariable(WS_VOICE_INFINITY_ZOOM_API_KEY,"")}catch(e){globalConfig.zoomApiKey=""}try{globalConfig.zoomApiSecret=parseStringVariable(WS_VOICE_INFINITY_ZOOM_API_SECRET,"")}catch(e){globalConfig.zoomApiSecret=""}try{globalConfig.passComplaintToModerationActionKey=parseStringVariable(WS_VOICE_INFINITY_PASS_COMPLAINT_TO_MODERATION_MESSAGE_ACTION_KEY,"")}catch(e){globalConfig.passComplaintToModerationActionKey=""}try{globalConfig.hideMainAuth=parseBooleanVariable(WS_VOICE_INFINITY_HIDE_MAIN_AUTH)}catch(e){globalConfig.hideMainAuth=!1}try{globalConfig.isAdminAuth=parseBooleanVariable(WS_VOICE_INFINITY_IS_ADMIN_AUTH)}catch(e){globalConfig.isAdminAuth=!1}try{globalConfig.registryContractOn=parseBooleanVariable(WS_VOICE_INFINITY_REGISTRY_CONTRACT_ON)}catch(e){globalConfig.registryContractOn=!1}try{globalConfig.registryStroikaOn=parseBooleanVariable(WS_VOICE_INFINITY_REGISTRY_STROIKA_ON)}catch(e){globalConfig.registryStroikaOn=!1}try{globalConfig.onePageScrollMainPageTemplate=parseBooleanVariable(WS_VOICE_INFINITY_ONE_PAGE_SCROLL_MAIN_PAGE_TEMPLATE_ON)}catch(e){globalConfig.onePageScrollMainPageTemplate=!1}try{globalConfig.defaultComplaintServiceName=parseStringVariable(WS_VOICE_INFINITY_DEFAULT_COMPLAINT_SERVICE_NAME,"")}catch(e){globalConfig.defaultComplaintServiceName=""}try{globalConfig.defaultEventServiceName=parseStringVariable(WS_VOICE_INFINITY_DEFAULT_EVENT_SERVICE_NAME,"")}catch(e){globalConfig.defaultEventServiceName=""}
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.globalConfig=void 0;var globalConfig={anonymousUser:{anonymousUserLastName:"Анонимный",anonymousUserFirstName:"Пользователь"},pageSize:10,maxPageSize:1e3};exports.globalConfig=globalConfig;var getTemplateFolderFromLocalStorage=function(){try{var a=window.localStorage.getItem("WS_VOICE_INFINITY_DEV_TEMPLATE_FOLDER");return a?JSON.parse(a):null}catch(o){return null}},variableIsDefined=function(a){return"undefined"!=typeof a},parseBooleanVariable=function(a){return variableIsDefined(a)&&!!a&&"false"!==a},parseStringVariable=function(a,o){return variableIsDefined(a)&&a?a:o};try{globalConfig.api=parseStringVariable(WS_THE_VOICE_GLOBAL_IP,"https://region.golos27.ru/api")}catch(e){globalConfig.api="https://region.golos27.ru/api"}try{globalConfig.socialAuthPath=parseStringVariable(WS_THE_VOICE_SOCIAL_AUTH_PATH,"https://region.golos27.ru")}catch(e){globalConfig.socialAuthPath="https://region.golos27.ru"}try{globalConfig.basicAuth=parseStringVariable(WS_BASIC_AUTH,"")}catch(e){globalConfig.basicAuth=""}try{globalConfig.openDataPath=parseStringVariable(WS_VOICE_INFINITY_OPEN_DATA_PATH,"")}catch(e){globalConfig.openDataPath=""}try{globalConfig.mainModuleDomain=parseStringVariable(WS_VOICE_INFINITY_MAIN_MODULE_DOMAIN,"")}catch(e){globalConfig.mainModuleDomain=""}try{globalConfig.currentModule=parseStringVariable(WS_VOICE_INFINITY_CURRENT_MODULE,"")}catch(e){globalConfig.currentModule=""}try{globalConfig.templateFolder=getTemplateFolderFromLocalStorage()?getTemplateFolderFromLocalStorage():parseStringVariable(WS_VOICE_INFINITY_TEMPLATE_FOLDER,"")}catch(e){globalConfig.templateFolder=""}try{globalConfig.organizationOn=parseBooleanVariable(WS_VOICE_INFINITY_ORGANIZATION_ON)}catch(e){globalConfig.organizationOn=!1}try{globalConfig.mapOn=parseBooleanVariable(WS_VOICE_INFINITY_MAP_ON)}catch(e){globalConfig.mapOn=!1}try{globalConfig.complaintsOn=parseBooleanVariable(WS_VOICE_INFINITY_COMPLAINTS_ON)}catch(e){globalConfig.complaintsOn=!1}try{globalConfig.initiativenOn=parseBooleanVariable(WS_VOICE_INFINITY_INITIATIVE_ON)}catch(e){globalConfig.initiativenOn=!1}try{globalConfig.initiativeRequiredFieldsOn=parseBooleanVariable(WS_VOICE_INFINITY_INITIATIVE_REQUIRED_FIELDS_ON)}catch(e){globalConfig.initiativeRequiredFieldsOn=!1}try{globalConfig.receptionExternalUrl=parseStringVariable(WS_VOICE_INFINITY_RECEPTION_EXTERNAL_URL,"")}catch(e){globalConfig.receptionExternalUrl=""}try{globalConfig.evaluationOn=parseBooleanVariable(WS_VOICE_INFINITY_EVALUATION_ON)}catch(e){globalConfig.evaluationOn=!1}try{globalConfig.votingOn=parseBooleanVariable(WS_VOICE_INFINITY_VOTING_ON)}catch(e){globalConfig.votingOn=!1}try{globalConfig.openDataOn=parseBooleanVariable(WS_VOICE_INFINITY_OPEN_DATA_ON)}catch(e){globalConfig.openDataOn=!1}try{globalConfig.snowTrackOn=parseBooleanVariable(WS_VOICE_INFINITY_SNOW_TRACK_ON)}catch(e){globalConfig.snowTrackOn=!1}try{globalConfig.eventOn=parseBooleanVariable(WS_VOICE_INFINITY_EVENT_ON)}catch(e){globalConfig.eventOn=!1}try{globalConfig.pollOn=parseBooleanVariable(WS_VOICE_INFINITY_POLL_ON)}catch(e){globalConfig.pollOn=!1}try{globalConfig.camerasOn=parseBooleanVariable(WS_VOICE_INFINITY_CAMERAS_ON)}catch(e){globalConfig.camerasOn=!1}try{globalConfig.articleOn=parseBooleanVariable(WS_VOICE_INFINITY_ARTICLE_ON)}catch(e){globalConfig.articleOn=!1}try{globalConfig.profileOn=parseBooleanVariable(WS_VOICE_INFINITY_PROFILE_ON)}catch(e){globalConfig.profileOn=!1}try{globalConfig.businessModeOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_MODE)}catch(e){globalConfig.businessModeOn=!1}try{globalConfig.informationalMessagesOn=parseBooleanVariable(WS_VOICE_INFORMATIONAL_MESSAGES_ON)}catch(e){globalConfig.informationalMessagesOn=!1}try{globalConfig.receptionOn=parseBooleanVariable(WS_VOICE_INFINITY_ONLINE_RECEPTION_ON)}catch(e){globalConfig.receptionOn=!1}try{globalConfig.lifecityOn=parseBooleanVariable(WS_VOICE_INFINITY_REGISTRY_LIFECITY_ON)}catch(e){globalConfig.lifecityOn=!1}try{globalConfig.discussionsOn=parseBooleanVariable(WS_VOICE_INFINITY_DISCUSSIONS_ON)}catch(e){globalConfig.discussionsOn=!1}try{globalConfig.stroikaOn=parseBooleanVariable(WS_VOICE_INFINITY_STROIKA_ON)}catch(e){globalConfig.stroikaOn=!1}try{globalConfig.businessDiscussionsOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_DISCUSSIONS_ON)}catch(e){globalConfig.businessDiscussionsOn=!1}try{globalConfig.businessOrganizationOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_ORGANIZATION_ON)}catch(e){globalConfig.businessOrganizationOn=!1}try{globalConfig.businessMapOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_MAP_ON)}catch(e){globalConfig.businessMapOn=!1}try{globalConfig.businessComplaintsOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_COMPLAINTS_ON)}catch(e){globalConfig.businessComplaintsOn=!1}try{globalConfig.businessInitiativeOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_INITIATIVE_ON)}catch(e){globalConfig.businessInitiativeOn=!1}try{globalConfig.businessEvaluationOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_EVALUATION_ON)}catch(e){globalConfig.businessEvaluationOn=!1}try{globalConfig.businessVotingOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_VOTING_ON)}catch(e){globalConfig.businessVotingOn=!1}try{globalConfig.businessEventOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_EVENT_ON)}catch(e){globalConfig.businessEventOn=!1}try{globalConfig.businessPollOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_POLL_ON)}catch(e){globalConfig.businessPollOn=!1}try{globalConfig.businessArticleOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_ARTICLE_ON)}catch(e){globalConfig.businessArticleOn=!1}try{globalConfig.businessOpenDataOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_OPEN_DATA_ON)}catch(e){globalConfig.businessOpenDataOn=!1}try{globalConfig.businessSnowTrackOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_SNOW_TRACK_ON)}catch(e){globalConfig.businessSnowTrackOn=!1}try{globalConfig.businessProfileOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_PROFILE_ON)}catch(e){globalConfig.businessProfileOn=!1}try{globalConfig.businessInformationalMessagesOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_INFORMATIONAL_MESSAGES_ON)}catch(e){globalConfig.businessInformationalMessagesOn=!1}try{globalConfig.businessReceptionOn=parseBooleanVariable(WS_VOICE_INFINITY_BUSINESS_ONLINE_RECEPTION_ON)}catch(e){globalConfig.businessReceptionOn=!1}try{globalConfig.businessLifecityOn=parseBooleanVariable(WS_VOICE_INFINITY_REGISTRY_BUSINESS_LIFECITY_ON)}catch(e){globalConfig.businessLifecityOn=!1}try{globalConfig.oktmoCode=parseStringVariable(WS_VOICE_INFINITY_OKTMO_CODE,"")}catch(e){globalConfig.oktmoCode=""}try{globalConfig.WS_VOICE_MAP_SEARCH_PREFIX=parseStringVariable(WS_VOICE_MAP_SEARCH_PREFIX,"Россия, Хабаровский край, ")}catch(e){globalConfig.WS_VOICE_MAP_SEARCH_PREFIX="Россия, Хабаровский край, "}try{globalConfig.WS_VOICE_MAP_LAT=parseStringVariable(WS_VOICE_MAP_LAT,"48.468976")}catch(e){globalConfig.WS_VOICE_MAP_LAT="48.468976"}try{globalConfig.WS_VOICE_MAP_LNG=parseStringVariable(WS_VOICE_MAP_LNG,"135.112979")}catch(e){globalConfig.WS_VOICE_MAP_LNG="135.112979"}try{globalConfig.WS_VOICE_INFINITY_COMPLAINT_NAME_BASE=parseStringVariable(WS_VOICE_INFINITY_COMPLAINT_NAME_BASE,"обращен")}catch(e){globalConfig.WS_VOICE_INFINITY_COMPLAINT_NAME_BASE="обращен"}try{globalConfig.WS_VOICE_INFINITY_ARTICLE_NAME_BASE=parseStringVariable(WS_VOICE_INFINITY_ARTICLE_NAME_BASE,"база знаний")}catch(e){globalConfig.WS_VOICE_INFINITY_ARTICLE_NAME_BASE="база знаний"}try{globalConfig.WS_VOICE_INFINITY_CAPTCHA_KEY=parseStringVariable(WS_VOICE_INFINITY_CAPTCHA_KEY,"")}catch(e){globalConfig.WS_VOICE_INFINITY_CAPTCHA_KEY=""}try{globalConfig.WS_VOICE_INFINITY_ESIA_ON=parseBooleanVariable(WS_VOICE_INFINITY_ESIA_ON)}catch(e){globalConfig.WS_VOICE_INFINITY_ESIA_ON=!1}try{globalConfig.WS_VOICE_INFINITY_VK_ON=parseBooleanVariable(WS_VOICE_INFINITY_VK_ON)}catch(e){globalConfig.WS_VOICE_INFINITY_VK_ON=!1}try{globalConfig.WS_VOICE_INFINITY_TWITTER_ON=parseBooleanVariable(WS_VOICE_INFINITY_TWITTER_ON)}catch(e){globalConfig.WS_VOICE_INFINITY_TWITTER_ON=!1}try{globalConfig.customizeStoreIcons=parseBooleanVariable(WS_VOICE_INFINITY_CUSTOMIZE_STORE_ICONS)}catch(e){globalConfig.customizeStoreIcons=!1}try{globalConfig.zoomApiKey=parseStringVariable(WS_VOICE_INFINITY_ZOOM_API_KEY,"")}catch(e){globalConfig.zoomApiKey=""}try{globalConfig.zoomApiSecret=parseStringVariable(WS_VOICE_INFINITY_ZOOM_API_SECRET,"")}catch(e){globalConfig.zoomApiSecret=""}try{globalConfig.passComplaintToModerationActionKey=parseStringVariable(WS_VOICE_INFINITY_PASS_COMPLAINT_TO_MODERATION_MESSAGE_ACTION_KEY,"")}catch(e){globalConfig.passComplaintToModerationActionKey=""}try{globalConfig.hideMainAuth=parseBooleanVariable(WS_VOICE_INFINITY_HIDE_MAIN_AUTH)}catch(e){globalConfig.hideMainAuth=!1}try{globalConfig.isAdminAuth=parseBooleanVariable(WS_VOICE_INFINITY_IS_ADMIN_AUTH)}catch(e){globalConfig.isAdminAuth=!1}try{globalConfig.registryContractOn=parseBooleanVariable(WS_VOICE_INFINITY_REGISTRY_CONTRACT_ON)}catch(e){globalConfig.registryContractOn=!1}try{globalConfig.registryStroikaOn=parseBooleanVariable(WS_VOICE_INFINITY_REGISTRY_STROIKA_ON)}catch(e){globalConfig.registryStroikaOn=!1}try{globalConfig.onePageScrollMainPageTemplate=parseBooleanVariable(WS_VOICE_INFINITY_ONE_PAGE_SCROLL_MAIN_PAGE_TEMPLATE_ON)}catch(e){globalConfig.onePageScrollMainPageTemplate=!1}try{globalConfig.defaultComplaintServiceName=parseStringVariable(WS_VOICE_INFINITY_DEFAULT_COMPLAINT_SERVICE_NAME,"")}catch(e){globalConfig.defaultComplaintServiceName=""}try{globalConfig.defaultEventServiceName=parseStringVariable(WS_VOICE_INFINITY_DEFAULT_EVENT_SERVICE_NAME,"")}catch(e){globalConfig.defaultEventServiceName=""}try{globalConfig.WS_VOICE_INFINITY_CONTRACT_CATEGORY_GROUP_ID=parseStringVariable(WS_VOICE_INFINITY_CONTRACT_CATEGORY_GROUP_ID,"")}catch(e){globalConfig.WS_VOICE_INFINITY_CONTRACT_CATEGORY_GROUP_ID=""}
|
|
@@ -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,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"].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(),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&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(),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;
|