ws-voice-infinity-global-module 1.0.12 → 1.0.13
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/actions.d.ts +8 -0
- package/lib/actions.js +1 -1
- package/lib/assets/images/svg/car-kam.svg +7 -7
- package/lib/assets/images/svg/chart-kam.svg +4 -4
- package/lib/assets/images/svg/iconStore/categoryIcons/default/City_for_life.svg +58 -58
- package/lib/assets/images/svg/iconStore/categoryIcons/default/National_projects.svg +42 -42
- package/lib/assets/images/svg/users-kam.svg +8 -8
- package/lib/assets/images/svg/video-kam.svg +4 -4
- package/lib/assets/localSave/leaflet.js +5 -5
- package/lib/assets/localSave/lz-string.js +1 -1
- package/lib/components.d.ts +3 -2
- package/lib/components.js +1 -1
- package/lib/configs.js +1 -1
- package/lib/enums.js +1 -1
- package/lib/index.css +2 -2
- package/lib/models.js +1 -1
- package/lib/module/actions/attachmentsActions.js +1 -1
- package/lib/module/actions/authActions.js +1 -1
- package/lib/module/actions/baseActions.js +1 -1
- package/lib/module/actions/complaintExternal.js +1 -1
- package/lib/module/actions/complaintSettingsActions.js +1 -1
- package/lib/module/actions/complaintStatisticsActions.js +1 -0
- package/lib/module/actions/complaintSubjectsSetActions.js +1 -1
- package/lib/module/actions/geoActions.js +1 -1
- package/lib/module/actions/informationalMessagesActions.js +1 -1
- package/lib/module/actions/meetingActions.js +1 -1
- package/lib/module/actions/messageStationInternalActions.js +1 -1
- package/lib/module/actions/municipalityActions.js +1 -1
- package/lib/module/actions/oktmoActions.js +1 -1
- package/lib/module/actions/organizationActions.js +1 -1
- package/lib/module/actions/organizationRequestActions.js +1 -1
- package/lib/module/actions/pollListActions.js +1 -1
- package/lib/module/actions/profileComplaintsActions.js +1 -1
- package/lib/module/actions/profileMeetingsActions.js +1 -1
- package/lib/module/actions/resultObjectsActions.js +1 -1
- package/lib/module/actions/routingActions.js +1 -1
- package/lib/module/actions/subjectsCategories.js +1 -1
- package/lib/module/actions/subscriptionActions.js +1 -1
- package/lib/module/actions/systemSettingsActions.js +1 -1
- package/lib/module/actions/userExternal.js +1 -1
- package/lib/module/actions/userSettingsActions.js +1 -1
- package/lib/module/actions/votingEvaluationActions.js +1 -1
- package/lib/module/actions/votingParticipantActions.js +1 -1
- package/lib/module/components/accordionUserSteps/accordionUserSteps.js +1 -1
- package/lib/module/components/accordionUserSteps/templates/default/accordionUserStepsTemplate.js +1 -1
- package/lib/module/components/accordionUserSteps/templates/kam/accordionUserStepsTemplate.js +1 -1
- package/lib/module/components/accordionUserSteps/templates/zab/accordionUserStepsTemplate.js +1 -1
- package/lib/module/components/actionPanel/actionPanel.js +1 -1
- package/lib/module/components/attachmentsListView/attachmentsListViewComponent.js +1 -1
- package/lib/module/components/attachmentsListView/attachmentsListViewTemplate.js +1 -1
- package/lib/module/components/authModal/authModal.js +1 -1
- package/lib/module/components/authModal/authModalTemplate.js +1 -1
- package/lib/module/components/authSteps/authStepsComponent.js +1 -1
- package/lib/module/components/authSteps/authStepsTemplates.js +1 -1
- package/lib/module/components/authSteps/steps/loginLogin/loginLoginComponent.js +1 -1
- package/lib/module/components/authSteps/steps/loginLogin/loginLoginTemplate.js +1 -1
- package/lib/module/components/authSteps/steps/loginPassword/loginPasswordComponent.js +1 -1
- package/lib/module/components/authSteps/steps/loginPassword/loginPasswordTemplate.js +1 -1
- package/lib/module/components/authSteps/steps/recoveryCode/recoveryCodeComponent.js +1 -1
- package/lib/module/components/authSteps/steps/recoveryCode/recoveryCodeTemplate.js +1 -1
- package/lib/module/components/authSteps/steps/recoveryNewPassword/recoveryNewPasswordComponent.js +1 -1
- package/lib/module/components/authSteps/steps/recoveryNewPassword/recoveryNewPasswordTemplate.js +1 -1
- package/lib/module/components/authSteps/steps/registrationPassword/registrationPasswordComponent.js +1 -1
- package/lib/module/components/authSteps/steps/registrationPassword/registrationPasswordTemplate.js +1 -1
- package/lib/module/components/baseInput/baseInput.js +1 -1
- package/lib/module/components/baseTSComponent.js +1 -1
- package/lib/module/components/baseTSContainer.js +1 -1
- package/lib/module/components/beforeAfter/beforeAfter.js +1 -1
- package/lib/module/components/beforeAfterSlide/beforeAfterMinSlide.js +1 -1
- package/lib/module/components/beforeAfterSlide/beforeAfterSlide.js +1 -1
- package/lib/module/components/businessModeSelector/businessModeSelector.js +1 -1
- package/lib/module/components/businessModeSelector/businessModeSelectorTemplate.js +1 -1
- package/lib/module/components/calendarMonthView/calendarMonthViewComponent.js +1 -1
- package/lib/module/components/calendarMonthView/calendarMonthViewTemplate.js +1 -1
- package/lib/module/components/checkAuthWrap/checkAuthWrapComponent.js +1 -1
- package/lib/module/components/checkAuthWrap/checkAuthWrapTemplate.js +1 -1
- package/lib/module/components/checkView/checkViewComponent.js +1 -1
- package/lib/module/components/checkView/checkViewTemplate.js +1 -1
- package/lib/module/components/dateRangeSelect/dateRangeSelect.js +1 -1
- package/lib/module/components/dateRangeSelect/dateRangeSelectTemplate.js +1 -1
- package/lib/module/components/dateSelect/dateSelect.js +1 -1
- package/lib/module/components/dateSelect/dateSelectTemplate.js +1 -1
- package/lib/module/components/dynamicImport/dynamicImportComponent.js +1 -1
- package/lib/module/components/dynamicTemplateImport/dynamicTemplateImportComponent.js +1 -1
- package/lib/module/components/emptyState/emptyStateComponent.js +1 -1
- package/lib/module/components/emptyState/emptyStateTemplate.js +1 -1
- package/lib/module/components/footer/footer.js +1 -1
- package/lib/module/components/gridLayout/gridLayout.js +1 -1
- package/lib/module/components/hlsPlayer/hlsPlayer.js +1 -1
- package/lib/module/components/hotTopicsList/hotTopicsList.js +1 -1
- package/lib/module/components/hotTopicsList/hotTopicsListTemplate.js +1 -1
- package/lib/module/components/indexHtmlConfig/indexHtmlConfigComponent.js +1 -1
- package/lib/module/components/indexHtmlConfig/templates/apiri/indexHtmlConfigTemplate.js +1 -1
- package/lib/module/components/indexHtmlConfig/templates/default/indexHtmlConfigTemplate.js +1 -1
- package/lib/module/components/indexHtmlConfig/templates/kam/indexHtmlConfigTemplate.js +1 -1
- package/lib/module/components/indexHtmlConfig/templates/r41/indexHtmlConfigTemplate.js +1 -1
- package/lib/module/components/indexHtmlConfig/templates/skh/indexHtmlConfigTemplate.js +1 -1
- package/lib/module/components/indexHtmlConfig/templates/zab/indexHtmlConfigTemplate.js +1 -1
- package/lib/module/components/informationPlate/informationPlateComponent.js +1 -1
- package/lib/module/components/kamBallBanner/kamBallBanner.js +1 -1
- package/lib/module/components/lastSolvedComplaints/lastSolvedComplaints.js +1 -1
- package/lib/module/components/lastSolvedComplaints/lastSolvedComplaintsTemplate.js +1 -1
- package/lib/module/components/mainPageHeader/mainPageHeader.js +1 -1
- package/lib/module/components/mainPageHeader/templates/ad/mainPageHeaderTemplate.js +1 -1
- package/lib/module/components/mainPageHeader/templates/apiri/mainPageHeaderTemplate.js +1 -1
- package/lib/module/components/mainPageHeader/templates/default/mainPageHeaderTemplate.js +1 -1
- package/lib/module/components/mainPageHeader/templates/kam/mainPageHeaderTemplate.js +1 -1
- package/lib/module/components/mainPageHeader/templates/r41/mainPageHeaderTemplate.js +1 -1
- package/lib/module/components/mainPageHeader/templates/skh/mainPageHeaderTemplate.js +1 -1
- package/lib/module/components/mainPageHeader/templates/usr/mainPageHeaderTemplate.js +1 -1
- package/lib/module/components/mainPageHeader/templates/zab/mainPageHeaderTemplate.js +1 -1
- package/lib/module/components/mainPageMetrics/templates/ad/mainPageMetricTemplate.js +1 -1
- package/lib/module/components/mainPageMetrics/templates/default/mainPageMetricTemplate.js +1 -1
- package/lib/module/components/mainPageMetrics/templates/kam/mainPageMetricTemplate.js +1 -1
- package/lib/module/components/mainPageMetrics/templates/r41/mainPageMetricTemplate.js +1 -1
- package/lib/module/components/mainPageMetrics/templates/skh/mainPageMetricTemplate.js +1 -1
- package/lib/module/components/mainPageMetrics/templates/usr/mainPageMetricTemplate.js +1 -1
- package/lib/module/components/mainPageMetrics/templates/zab/mainPageMetricTemplate.js +1 -1
- package/lib/module/components/mainPageSubHeader/mainPageSubHeader.js +1 -1
- package/lib/module/components/mainPageSubHeader/templates/ad/mainPageSubHeader.js +1 -1
- package/lib/module/components/mainPageSubHeader/templates/default/mainPageSubHeader.js +1 -1
- package/lib/module/components/mainPageSubHeader/templates/usr/mainPageSubHeader.js +1 -1
- package/lib/module/components/mainPageSubHeader/templates/zab/mainPageSubHeader.js +1 -1
- package/lib/module/components/mapComponent/map.js +1 -1
- package/lib/module/components/mapComponent/mapComponentTemplate.js +1 -1
- package/lib/module/components/mapComponent/templates/default/notFindMunicipalityError.js +1 -1
- package/lib/module/components/mapComponent/templates/skh/notFindMunicipalityError.js +1 -1
- package/lib/module/components/modals/dateRangeSelectModal/dateRangeSelectModal.js +1 -1
- package/lib/module/components/modals/dateSelectModal/dateSelectModal.js +1 -1
- package/lib/module/components/modals/selectCategoryModal/selectCategoryModal.js +1 -1
- package/lib/module/components/modals/selectDistrictModal/selectDistrictModal.js +1 -1
- package/lib/module/components/notFound/notFoundComponent.js +1 -1
- package/lib/module/components/notificationBlock/notificationBlock.js +1 -1
- package/lib/module/components/onlineReceptionWidget/onlineReceptionWidget.js +1 -1
- package/lib/module/components/onlineReceptionWidget/onlineReceptionWidgetTemplate.js +1 -1
- package/lib/module/components/parallax/parallax.js +1 -1
- package/lib/module/components/parallax/templates/default/parallaxTemplate.js +1 -1
- package/lib/module/components/parallax/templates/kam/parallaxTemplate.js +1 -1
- package/lib/module/components/parallax/templates/skh/parallaxTemplate.js +1 -1
- package/lib/module/components/parallax/templates/usr/parallaxTemplate.js +1 -1
- package/lib/module/components/parallax/templates/zab/parallaxTemplate.js +1 -1
- package/lib/module/components/preloaders/r41/preloader.js +1 -1
- package/lib/module/components/ratingDynamicLineChart/ratingDynamicLineChartComponent.js +1 -1
- package/lib/module/components/ratingDynamicLineChart/ratingDynamicLineChartTemplate.js +1 -1
- package/lib/module/components/selectTemplateFolder/selectTemplateFolderComponent.js +1 -1
- package/lib/module/components/selectTemplateFolder/selectTemplateFolderTemplate.js +1 -1
- package/lib/module/components/sliderSwitchComponent/sliderSwitchComponent.js +1 -1
- package/lib/module/components/subscriptionView/subscriptionViewComponent.js +1 -1
- package/lib/module/components/subscriptionView/subscriptionViewTemplate.js +1 -1
- package/lib/module/components/topNavInfinity/topNavInfinityComponent.js +1 -1
- package/lib/module/components/topNavMainPage/templates/default/topNavMainPageTemplate.js +1 -1
- package/lib/module/components/topNavMainPage/templates/r41/topNavMainPageTemplate.js +1 -1
- package/lib/module/components/topNavMainPage/topNavMainPageComponent.js +1 -1
- package/lib/module/components/topSubjectsList/topSubjectsList.js +1 -1
- package/lib/module/components/topSubjectsList/topSubjectsListTemplate.js +1 -1
- package/lib/module/components/userAvatar/userAvatar.js +1 -1
- package/lib/module/components/userSteps/userSteps.js +1 -1
- package/lib/module/components/voteCountBarChart/voteCountBarChartComponent.js +1 -1
- package/lib/module/components/voteCountBarChart/voteCountBarChartTemplate.js +1 -1
- package/lib/module/components/wsReactInfinityCheckbox/wsReactInfinityCheckboxComponent.js +1 -1
- package/lib/module/components/wsReactInfinityCheckbox/wsReactInfinityCheckboxTemplate.js +1 -1
- package/lib/module/components/wsVoiceInfinitySpinner/wsVoiceInfinitySpinner.js +1 -1
- package/lib/module/config/api.js +1 -1
- package/lib/module/constants/globalConstants.js +1 -1
- package/lib/module/enums/accountType.js +1 -1
- package/lib/module/enums/addressableType.js +1 -1
- package/lib/module/enums/appMode.js +1 -1
- package/lib/module/enums/authSteps.js +1 -1
- package/lib/module/enums/baseStatus.js +1 -1
- package/lib/module/enums/complaintFilterStatus.js +1 -1
- package/lib/module/enums/decisionDaysType.js +1 -1
- package/lib/module/enums/extensionType.js +1 -1
- package/lib/module/enums/genders.js +1 -1
- package/lib/module/enums/hasOrganizationResult.js +1 -1
- package/lib/module/enums/iconStore.js +1 -1
- package/lib/module/enums/iconStoreFiles.js +1 -1
- package/lib/module/enums/modules.js +1 -1
- package/lib/module/enums/notificationsCount.js +1 -1
- package/lib/module/enums/oktmoType.js +1 -1
- package/lib/module/enums/organizationRequestStatus.js +1 -1
- package/lib/module/enums/organizationRequestType.js +1 -1
- package/lib/module/enums/organizationStatus.js +1 -1
- package/lib/module/enums/participantSourceType.js +1 -1
- package/lib/module/enums/publicStatusComplaint.js +1 -1
- package/lib/module/enums/serviceName.js +1 -1
- package/lib/module/enums/sourceType.js +1 -1
- package/lib/module/enums/statisticsType.js +1 -0
- package/lib/module/enums/subscriptionTypes.js +1 -1
- package/lib/module/enums/systemSettingKeys.js +1 -1
- package/lib/module/enums/timerMarkStatus.js +1 -1
- package/lib/module/enums/timerMarkType.js +1 -1
- package/lib/module/enums/typeExecution.js +1 -1
- package/lib/module/enums/visibleComplaint.js +1 -1
- package/lib/module/enums/votingEvaluationStatus.js +1 -1
- package/lib/module/enums/votingEvaluationType.js +1 -1
- package/lib/module/models/address.js +1 -1
- package/lib/module/models/answer.js +1 -1
- package/lib/module/models/attachmentModel.js +1 -1
- package/lib/module/models/complaint.js +1 -1
- package/lib/module/models/complaintFlagsEntry.js +1 -1
- package/lib/module/models/complaintList.js +1 -1
- package/lib/module/models/complaintSettings.js +1 -1
- package/lib/module/models/complaintSubject.js +1 -1
- package/lib/module/models/complaintSubjectList.js +1 -1
- package/lib/module/models/complaintSubjectSet.js +1 -1
- package/lib/module/models/complaintSubjectSetInternal.js +1 -1
- package/lib/module/models/complaintSubjectSetListItem.js +1 -1
- package/lib/module/models/complaintSubjectSetValue.js +1 -1
- package/lib/module/models/complaintTimer.js +1 -1
- package/lib/module/models/contacts.js +1 -1
- package/lib/module/models/dictionaryEntry.js +1 -1
- package/lib/module/models/entityAttachment.js +1 -1
- package/lib/module/models/execution.js +1 -1
- package/lib/module/models/executionAuthorRating.js +1 -1
- package/lib/module/models/executionInspectorRating.js +1 -1
- package/lib/module/models/executorProjection.js +1 -1
- package/lib/module/models/externalPerson.js +1 -1
- package/lib/module/models/externalUserProfile.js +1 -1
- package/lib/module/models/favoriteOktmo.js +1 -1
- package/lib/module/models/fileContainer.js +1 -1
- package/lib/module/models/fileFormat.js +1 -1
- package/lib/module/models/fileVersion.js +1 -1
- package/lib/module/models/geoData.js +1 -1
- package/lib/module/models/geoPoint.js +1 -1
- package/lib/module/models/initiatorPerson.js +1 -1
- package/lib/module/models/inspector.js +1 -1
- package/lib/module/models/legalPerson.js +1 -1
- package/lib/module/models/messageStation.js +1 -1
- package/lib/module/models/metric.js +1 -1
- package/lib/module/models/municipality.js +1 -1
- package/lib/module/models/objectMin.js +1 -1
- package/lib/module/models/oktmo.js +1 -1
- package/lib/module/models/oktmoCode.js +1 -1
- package/lib/module/models/oktmoMin.js +1 -1
- package/lib/module/models/organization.js +1 -1
- package/lib/module/models/organizationRequest.js +1 -1
- package/lib/module/models/person.js +1 -1
- package/lib/module/models/pollListModel.js +1 -1
- package/lib/module/models/rating.js +1 -1
- package/lib/module/models/ratingForOnlineReception.js +1 -1
- package/lib/module/models/resultMinObject.js +1 -1
- package/lib/module/models/resultObject.js +1 -1
- package/lib/module/models/sourceObject.js +1 -1
- package/lib/module/models/sourceObjectPhoto.js +1 -1
- package/lib/module/models/statistics.js +1 -0
- package/lib/module/models/subjectMetrics.js +1 -1
- package/lib/module/models/subjectsCategory.js +1 -1
- package/lib/module/models/subscription.js +1 -1
- package/lib/module/models/subscriptionCount.js +1 -1
- package/lib/module/models/topSubject.js +1 -1
- package/lib/module/models/topSubjectsCategory.js +1 -1
- package/lib/module/models/userDescriptorEntry.js +1 -1
- package/lib/module/models/userDescriptorEntryMin.js +1 -1
- package/lib/module/models/userProfile.js +1 -1
- package/lib/module/models/votingEvaluation.js +1 -1
- package/lib/module/models/votingEvaluationList.js +1 -1
- package/lib/module/models/votingEvaluationMetric.js +1 -1
- package/lib/module/models/votingEvaluationPeriod.js +1 -1
- package/lib/module/models/votingParticipant.js +1 -1
- package/lib/module/models/votingParticipantInitiative.js +1 -1
- package/lib/module/models/votingParticipantInitiativeLabels.js +1 -1
- package/lib/module/models/votingParticipantInitiativeList.js +1 -1
- package/lib/module/models/votingParticipantList.js +1 -1
- package/lib/module/services/abstractTemplateService.js +1 -1
- package/lib/module/services/attachmentService.js +1 -1
- package/lib/module/services/authServices.js +1 -1
- package/lib/module/services/baseService.js +1 -1
- package/lib/module/services/businessModeUtilsService.js +1 -1
- package/lib/module/services/complaintOnlineReceptionService.js +1 -1
- package/lib/module/services/complaintPrefillService.js +1 -1
- package/lib/module/services/footerService.js +1 -1
- package/lib/module/services/gulpService.js +1 -1
- package/lib/module/services/inputService.js +1 -1
- package/lib/module/services/metricsService.js +1 -0
- package/lib/module/services/moduleService.js +1 -1
- package/lib/module/services/oldAttachmentService.js +1 -1
- package/lib/module/services/ratingColorService.js +1 -1
- package/lib/module/services/reactSocialService.js +1 -1
- package/lib/module/services/saveFilterService.js +1 -1
- package/lib/module/services/templateService.js +1 -1
- package/lib/module/services/topNavMainPageService.js +1 -1
- package/lib/module/services/topNavService.js +1 -1
- package/lib/module/services/transliterationService.js +1 -1
- package/lib/module/services/typeService.js +1 -1
- package/lib/module/services/userStepsComplaintService.js +1 -1
- package/lib/module/services/utilService.js +1 -1
- package/lib/module/store/authStore.js +1 -1
- package/lib/module/store/eventStore.js +1 -1
- package/lib/module/store/globalStore.js +1 -1
- package/lib/module/store/mainPageStore.js +1 -1
- package/lib/module/store/messageStationStore.js +1 -1
- package/lib/module/store/notificationStore.js +1 -1
- package/lib/module/store/oktmoStore.js +1 -1
- package/lib/module/store/sourceStore.js +1 -1
- package/lib/module/store/subscriptionStore.js +1 -1
- package/lib/module/store/userStore.js +1 -1
- package/lib/services.js +1 -1
- package/lib/store.js +1 -1
- package/package.json +174 -174
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function _getRequireWildcardCache(
|
|
1
|
+
"use strict";function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{"default":e};var r=_getRequireWildcardCache();if(r&&r.has(e))return r.get(e);var t={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var n=i?Object.getOwnPropertyDescriptor(e,o):null;n&&(n.get||n.set)?Object.defineProperty(t,o,n):t[o]=e[o]}return t["default"]=e,r&&r.set(e,t),t}function _classCallCheck(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var i=r[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),e}function _typeof(e){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.SaveFilterService=void 0;var _decorators=require("@thewhite/react-global-module/lib/decorators"),queryString=_interopRequireWildcard(require("qs")),__decorate=function(e,r,t,i){var o,n=arguments.length,a=n<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,t):i;if("object"===("undefined"==typeof Reflect?"undefined":_typeof(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,r,t,i);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(n<3?o(a):n>3?o(r,t,a):o(r,t))||a);return n>3&&a&&Object.defineProperty(r,t,a),a},SaveFilterService=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"_saveScrollPositionCallback",value:function(r,t){var i=e.queryStringParse(t.location.search);r.srcElement&&(i.topScroll=r.srcElement.scrollTop),e.replaceHistoryState(t,i)}}]),e}();exports.SaveFilterService=SaveFilterService,SaveFilterService.stringifyOptions={arrayFormat:"brackets"},SaveFilterService.saveScrollPositionCallbackBind=null,SaveFilterService.queryStringParse=function(e){return queryString.parse(LZString.decompressFromEncodedURIComponent(e.replace("?","")),SaveFilterService.stringifyOptions)},SaveFilterService.compressParams=function(e){return LZString.compressToEncodedURIComponent(queryString.stringify(e,SaveFilterService.stringifyOptions))},SaveFilterService.replaceHistoryState=function(e,r){if(e.location.search.replace("?","")!==SaveFilterService.compressParams(r)){var t=SaveFilterService.queryStringParse(e.location.search);t||(t={});var i=SaveFilterService.compressParams(Object.assign({},t,r));e.history.replace("".concat(e.location.pathname,"?").concat(i))}},SaveFilterService.saveScrollPosition=function(e){var r=document.getElementById("main-wrap");r&&(SaveFilterService.saveScrollPositionCallbackBind=function(r){return SaveFilterService._saveScrollPositionCallback(r,e)},r.addEventListener("scroll",SaveFilterService.saveScrollPositionCallbackBind))},SaveFilterService.removeScrollPosition=function(){var e=document.getElementById("main-wrap");e&&(e.removeEventListener("scroll",SaveFilterService.saveScrollPositionCallbackBind),SaveFilterService.saveScrollPositionCallbackBind=function(){return null})},SaveFilterService.goToTopScroll=function(e){var r=document.getElementById("main-wrap");r&&r.scrollTo&&r.scrollTo({top:e})},SaveFilterService.savePaginationToUrl=function(e,r){var t=SaveFilterService.queryStringParse(e.location.search);t||(t={}),t.pagination=r,SaveFilterService.replaceHistoryState(e,t)},__decorate([(0,_decorators.debounce)(300)],SaveFilterService,"_saveScrollPositionCallback",null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{"default":e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var _=r?Object.getOwnPropertyDescriptor(e,n):null;_&&(_.get||_.set)?Object.defineProperty(a,n,_):a[n]=e[n]}return a["default"]=e,t&&t.set(e,a),a}function _typeof(e){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var a,r=_getPrototypeOf(e);if(t){var n=_getPrototypeOf(this).constructor;a=Reflect.construct(r,arguments,n)}else a=r.apply(this,arguments);return _possibleConstructorReturn(this,a)}}function _possibleConstructorReturn(e,t){return!t||"object"!==_typeof(t)&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.TemplateService=void 0;var React=_interopRequireWildcard(require("react")),_configs=require("../../configs"),_abstractTemplateService=require("./abstractTemplateService"),TemplateService=function(e){function t(){return _classCallCheck(this,t),a.apply(this,arguments)}_inherits(t,e);var a=_createSuper(t);return t}(_abstractTemplateService.AbstractTemplateService);exports.TemplateService=TemplateService,TemplateService.config={LOGIN_INPUT_DESCRIPTION:{value:"LOGIN_INPUT_DESCRIPTION",template:{"default":"Для входа укажите свой телефон или адрес электронной почты",zab:"Для входа укажите свой адрес электронной почты",apiri:"Для входа укажите свой адрес электронной почты",ad:"Для входа укажите свой адрес электронной почты",r41:"Для входа укажите свой телефон"}},LOGIN_LOGIN:{value:"LOGIN_LOGIN",template:{"default":"Телефон или адрес эл. почты",zab:"Адрес эл. почты",apiri:"Адрес эл. почты",ad:"Адрес эл. почты",r41:"Телефон"}},LOGIN_BOTTOM_TEXT:{value:"LOGIN_BOTTOM_TEXT",template:{"default":"После входа в систему вы получите возможность подавать ".concat(_configs.globalConfig.WS_VOICE_INFINITY_COMPLAINT_NAME_BASE,"ия, инициативы, голосовать ..."),apiri:"После входа в систему вы получите возможность подавать ".concat(_configs.globalConfig.WS_VOICE_INFINITY_COMPLAINT_NAME_BASE,"ия"),ad:"После входа в систему вы получите возможность подавать ".concat(_configs.globalConfig.WS_VOICE_INFINITY_COMPLAINT_NAME_BASE,"ия "),r41:"После входа в систему Вы сможете направлять ".concat(_configs.globalConfig.WS_VOICE_INFINITY_COMPLAINT_NAME_BASE,"ия, инициативы, голосовать.")}},LAST_SOLVED_COMPLAINTS_TITLE:{value:"LAST_SOLVED_COMPLAINTS_TITLE",template:{"default":"Результаты работы портала",kam:"Последние ответы на сообщения",r41:"Результаты работы"}},LAST_SOLVED_COMPLAINTS_SUBJECTS_BUTTON:{value:"LAST_SOLVED_COMPLAINTS_SUBJECTS_BUTTON",template:{"default":"Ещё решенные проблемы",khv:"Ещё решенные обращения",kam:"Ещё рассмотренные сообщения",r41:"Все решенные проблемы"}},USER_STEP_ANSWER:{value:"USER_STEP_ANSWER",template:{"default":"10",khv:"30",r41:"12"}},FAVICON_BASE64:{value:"FAVICON_BASE64",template:{ad:"assets/images/favicons/favicon_ad.png","default":"assets/images/favicons/favicon_khv.png",kam:"assets/images/favicons/favicon_kam.png",khv:"assets/images/favicons/favicon_khv.png",r41:"assets/images/favicons/favicon_r41.png",r45:"assets/images/favicons/favicon_r45.png",skh:"assets/images/favicons/favicon_skh.png",usr:"assets/images/favicons/favicon_usr.png",zab:"assets/images/favicons/favicon_zab.png",apiri:"assets/images/favicons/favicon_apiri.png"}},ACCORDION_USER_STEPS_PROBLEM_TITLE:{value:"ACCORDION_USER_STEPS_PROBLEM_TITLE",template:{"default":"Расскажите о проблеме",kam:"Опишите свою проблему, заполнив форму"}},ACCORDION_USER_STEPS_PROBLEM_TEXT:{value:"ACCORDION_USER_STEPS_PROBLEM_TEXT",template:{"default":"Посмотрите, как оформлены другие сообщения и ознакомьтесь с ",kam:"Ознакомьтесь с "}},ACCORDION_USER_STEPS_PROBLEM_LINK:{value:"ACCORDION_USER_STEPS_PROBLEM_LINK",template:{"default":"правилами модерации",kam:"правилами портала"}},ACCORDION_USER_STEPS_PROBLEM_LINK_STATE:{value:"ACCORDION_USER_STEPS_PROBLEM_LINK_STATE",template:{"default":"/moderation-rules",kam:"/user-agreement"}},ACCORDION_USER_STEPS_CONSIDERATION_TITLE:{value:"ACCORDION_USER_STEPS_CONSIDERATION_TITLE",template:{"default":"Запрос отправят исполнителю",kam:"Администрация города примет Ваше сообщение к рассмотрению"}},ACCORDION_USER_STEPS_CONSIDERATION_TEXT:{value:"ACCORDION_USER_STEPS_CONSIDERATION_TEXT",template:{"default":React.createElement(React.Fragment,null,React.createElement("p",null,"Мы опубликуем сообщение в ленте, если соблюдены правила модерации, или попросим отредактировать его."),React.createElement("p",null,"Запрос официально оформят и отправят в ответственную инстанцию в течение дня."),React.createElement("p",null,"Забудьте о бюрократии и поиске нужных ведомств, мы сделаем всё сами.")),kam:React.createElement("p",null,"Мы зарегистрируем и передадим в работу исполнителю ваше сообщение в течение одного рабочего дня.")}},ACCORDION_USER_STEPS_ANSWER_TITLE:{value:"ACCORDION_USER_STEPS_ANSWER_TITLE",template:{"default":"Вам ответят в течение 10 дней",kam:"В срок до 10 рабочих дней Вы получите ответ"}},ACCORDION_USER_STEPS_ANSWER_TEXT:{value:"ACCORDION_USER_STEPS_ANSWER_TEXT",template:{"default":React.createElement(React.Fragment,null,React.createElement("p",null,"Оцените результат работ и оставьте свой комментарий."),React.createElement("p",null,"Если проблема не решена — сообщите нам об этом, отправим заявку на повторное рассмотрение.")),kam:React.createElement(React.Fragment,null,React.createElement("p",null,"Вы можете оценить результат рассмотрения или оставить свой комментарий."))}},PUBLIC_STATUS_SOLVED:{value:"PUBLIC_STATUS_SOLVED",template:{"default":"Решено",kam:"Рассмотрено",r41:"Разъяснено"}},MAIN_PAGE_METRIC_LIST_ITEM_NAME:{value:"MAIN_PAGE_METRIC_LIST_ITEM_NAME",template:{"default":"Было решено",kam:"Было рассмотрено",r41:"Было разъяснено"}},MAIN_PAGE_HEADER_SOLVED_TITLE:{value:"MAIN_PAGE_HEADER_SOLVED_TITLE",template:{"default":"Решено",kam:"Рассмотрено",r41:"Разъяснено"}},DEFAULT_MUNICIPALITY_MESSAGE_TITLE:{value:"DEFAULT_MUNICIPALITY_MESSAGE_TITLE",template:{"default":"Cообщение будет направлено исполнителю по умолчанию: ",khv:"Обращение будет направлено исполнителю по умолчанию: ",kam:"Обращение будет направлено исполнителю по умолчанию: "}}},TemplateService.getTemplateString=function(e){var t=TemplateService.config[e];if(!t)return"";var a=t.template[_configs.globalConfig.templateFolder?_configs.globalConfig.templateFolder:"default"];return a?a:t.template["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),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 +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 t=l[a];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}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.TopNavInfinityService=void 0;var _globalConfig=require("../config/globalConfig"),_modules=_interopRequireDefault(require("../enums/modules")),_notificationsCount=_interopRequireDefault(require("../enums/notificationsCount")),_authServices=require("./authServices"),_businessModeUtilsService=require("./businessModeUtilsService"),_utilService=require("./utilService"),_appMode=_interopRequireDefault(require("../enums/appMode")),TopNavInfinityService=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"isLocalRoute",value:function(e){return!!_modules["default"][_globalConfig.globalConfig.currentModule]&&_globalConfig.globalConfig.currentModule===_modules["default"][e].value||!!_modules["default"][_globalConfig.globalConfig.currentModule]&&!!_modules["default"][_globalConfig.globalConfig.currentModule].isMain&&_modules["default"][e].isMain}},{key:"getExternalUrl",value:function(e){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(_modules["default"][e].isMain)return"".concat(_globalConfig.globalConfig.mainModuleDomain,"/#").concat(l);var a=_globalConfig.globalConfig.mainModuleDomain;if(!a)return"";var t=a.split("://");return"".concat(t[0],"://").concat(_modules["default"][e].value.toLowerCase(),".").concat(t[1]).concat(l?"/#".concat(l):"")}},{key:"isSelectState",value:function(l,a){return l.module&&!l.module.isMain&&l.module.value===_globalConfig.globalConfig.currentModule?!l.exact||l.state===a:e.isSelectRootState(l,a)||e.isSelectFriendState(l,a)}},{key:"isSelectFriendState",value:function(e,l){var a=!1;return!!e.friendStates&&(e.friendStates.forEach(function(e){l.indexOf(e)>-1&&l.indexOf(e)<=1&&(a=!0)}),a)}},{key:"isSelectRootState",value:function(e,l){var a=e&&l.indexOf(e.state)>-1&&l.indexOf(e.state)<=1;return a}},{key:"getTitleModule",value:function(e){var l=e.title[_globalConfig.globalConfig.templateFolder];return l?l:e.title["default"]}},{key:"menuItems",get:function(){return[{state:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:e.getExternalUrl(_modules["default"].COMPLAINTS.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].COMPLAINTS),hide:!_globalConfig.globalConfig.complaintsOn||_utilService.UtilService.isApiri()||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessComplaintsOn)||_utilService.UtilService.isSkh()&&_businessModeUtilsService.BusinessModeUtilsService.isBusinessModeOn(),module:_modules["default"].COMPLAINTS,icon:"assets/images/svg/menu/ic_publicComplaints.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/new":null,externalUrl:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:e.getExternalUrl(_modules["default"].COMPLAINTS.value,"/new"),friendStates:[],name:"Подать ".concat(_globalConfig.globalConfig.WS_VOICE_INFINITY_COMPLAINT_NAME_BASE,"ие"),exact:!0,hide:!_globalConfig.globalConfig.complaintsOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessComplaintsOn),module:_modules["default"].COMPLAINTS,moduleRootState:"/",icon:"assets/images/svg/menu/ic_CreateComplaints_54px.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].INITIATIVE.value)?"/initiatives-list":null,externalUrl:e.isLocalRoute(_modules["default"].INITIATIVE.value)?null:e.getExternalUrl(_modules["default"].INITIATIVE.value,"/initiatives-list"),friendStates:["intitative"],name:e.getTitleModule(_modules["default"].INITIATIVE),hide:!_globalConfig.globalConfig.initiativenOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessInitiativeOn),module:_modules["default"].INITIATIVE,icon:"assets/images/svg/menu/ic_IniciativesPublic_54px.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].INITIATIVE.value)?"/initiative-create":null,externalUrl:e.isLocalRoute(_modules["default"].INITIATIVE.value)?null:e.getExternalUrl(_modules["default"].INITIATIVE.value,"/initiative-create"),friendStates:[],name:"Предложить инициативу",exact:!0,hide:!_globalConfig.globalConfig.initiativenOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessInitiativeOn),module:_modules["default"].INITIATIVE,moduleRootState:"/",icon:"assets/images/svg/menu/ic_CreateIniciatives_54px.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].INITIATIVE.value)?"/initiatives-reviewers":null,externalUrl:e.isLocalRoute(_modules["default"].INITIATIVE.value)?null:e.getExternalUrl(_modules["default"].INITIATIVE.value,"/initiative-create"),friendStates:[],name:"Наши эксперты",exact:!0,hide:(!_globalConfig.globalConfig.initiativenOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessInitiativeOn))&&!_utilService.UtilService.isKam(),module:_modules["default"].INITIATIVE,moduleRootState:"/",icon:"assets/images/svg/menu/ic_IniciativesReviewers.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].MAP.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].MAP.value)?null:e.getExternalUrl(_modules["default"].MAP.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].MAP),hide:!_globalConfig.globalConfig.mapOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessMapOn)||_globalConfig.globalConfig.mapOn&&_globalConfig.globalConfig.lifecityOn&&!_globalConfig.globalConfig.registryContractOn,module:_modules["default"].MAP,icon:"assets/images/svg/menu/ic_SocialMap_54px.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].EVALUATION.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].EVALUATION.value)?null:e.getExternalUrl(_modules["default"].EVALUATION.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].EVALUATION),hide:!_globalConfig.globalConfig.evaluationOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessEvaluationOn),module:_modules["default"].EVALUATION,icon:"assets/images/svg/menu/ic_evaluation_54.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].VOTING.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].VOTING.value)?null:e.getExternalUrl(_modules["default"].VOTING.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].VOTING),hide:!_globalConfig.globalConfig.votingOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessVotingOn),module:_modules["default"].VOTING,icon:"assets/images/svg/menu/ic_voting_54.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].EVENT.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].EVENT.value)?null:e.getExternalUrl(_modules["default"].EVENT.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].EVENT),hide:!_globalConfig.globalConfig.eventOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessEventOn),module:_modules["default"].EVENT,icon:"assets/images/svg/menu/ic_events_54px.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].POLL.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].POLL.value)?null:e.getExternalUrl(_modules["default"].POLL.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].POLL),hide:!_globalConfig.globalConfig.pollOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessPollOn),module:_modules["default"].POLL,icon:"assets/images/svg/menu/ic_polls.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].ARTICLE.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].ARTICLE.value)?null:e.getExternalUrl(_modules["default"].ARTICLE.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].ARTICLE),hide:!_globalConfig.globalConfig.articleOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessArticleOn),module:_modules["default"].ARTICLE,icon:"assets/images/svg/menu/ic_Articles_54px.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].ORGANIZATION.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].ORGANIZATION.value)?null:e.getExternalUrl(_modules["default"].ORGANIZATION.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].ORGANIZATION),hide:!_globalConfig.globalConfig.organizationOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessOrganizationOn),module:_modules["default"].ORGANIZATION,icon:"assets/images/svg/menu/ic_Organization_54px.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].OPENDATA.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].OPENDATA.value)?null:e.getExternalUrl(_modules["default"].OPENDATA.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].OPENDATA),hide:!_globalConfig.globalConfig.openDataOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessOpenDataOn),module:_modules["default"].OPENDATA,icon:"assets/images/svg/menu/ic_voting_54.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].RECEPTION.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].RECEPTION.value)?null:e.getExternalUrl(_modules["default"].RECEPTION.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].RECEPTION),hide:!_globalConfig.globalConfig.receptionOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessReceptionOn),module:_modules["default"].RECEPTION,icon:"assets/images/svg/menu/ic_online_reception.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].STROIKA.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].STROIKA.value)?null:e.getExternalUrl(_modules["default"].STROIKA.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].STROIKA),hide:!_globalConfig.globalConfig.stroikaOn,module:_modules["default"].STROIKA,icon:"assets/images/svg/menu/map-construction.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].MAIN.value)?"/snow-track":null,externalUrl:e.isLocalRoute(_modules["default"].MAIN.value)?null:e.getExternalUrl(_modules["default"].MAIN.value,"/snow-track"),name:"Уборка снега",exact:!0,friendStates:["snow-"],hide:!_globalConfig.globalConfig.snowTrackOn,module:_modules["default"].MAIN,icon:"assets/images/svg/menu/SnowMap.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].MAIN.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].MAIN.value)?null:e.getExternalUrl(_modules["default"].MAIN.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].MAIN),module:_modules["default"].MAIN,icon:"assets/images/svg/menu/ic_Main_54px.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].PROFILE.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].PROFILE.value)?null:e.getExternalUrl(_modules["default"].PROFILE.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].PROFILE),hide:!_globalConfig.globalConfig.profileOn||!_authServices.AuthService.getUserInfo()||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessProfileOn),module:_modules["default"].PROFILE,icon:"assets/images/svg/menu/user.svg",isInfinityProfileMenu:!0},{state:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/cabinet/with-mode/".concat(_appMode["default"].PUBLIC):null,externalUrl:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:e.getExternalUrl(_modules["default"].COMPLAINTS.value,"/cabinet/with-mode/".concat(_appMode["default"].PUBLIC)),friendStates:[],name:"Мои ".concat(_globalConfig.globalConfig.WS_VOICE_INFINITY_COMPLAINT_NAME_BASE,"ия"),exact:!0,hide:!_globalConfig.globalConfig.complaintsOn,module:_modules["default"].COMPLAINTS,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_MyComplaints_54.svg",isInfinityProfileMenu:!0,notificationsCountType:_notificationsCount["default"].COMPLAINTS},{state:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/cabinet/with-mode/".concat(_appMode["default"].BUSINESS):null,externalUrl:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:e.getExternalUrl(_modules["default"].COMPLAINTS.value,"/cabinet/with-mode/".concat(_appMode["default"].BUSINESS)),friendStates:[],name:"".concat(_utilService.UtilService.setFirstWordToUpperCase(_globalConfig.globalConfig.WS_VOICE_INFINITY_COMPLAINT_NAME_BASE),"ия компании"),exact:!0,hide:e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessComplaintsOn)||!!_utilService.UtilService.isApiri(),module:_modules["default"].COMPLAINTS,moduleRootState:"/",needHasOrganization:!0,dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_MyOrgComplaints_54.svg",isInfinityProfileMenu:!0,notificationsCountType:_notificationsCount["default"].BUSINESS_COMPLAINTS},{state:e.isLocalRoute(_modules["default"].MAIN.value)?"/cabinet/initiatives-list":null,externalUrl:e.isLocalRoute(_modules["default"].MAIN.value)?null:e.getExternalUrl(_modules["default"].MAIN.value,"/cabinet/initiatives-list"),friendStates:[],name:"Мои инициативы",exact:!0,hide:!_globalConfig.globalConfig.initiativenOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessInitiativeOn),module:_modules["default"].MAIN,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_MyComplaints_54.svg",isInfinityProfileMenu:!0},{state:e.isLocalRoute(_modules["default"].EVALUATION.value)?"/cabinet/vote/list":null,externalUrl:e.isLocalRoute(_modules["default"].EVALUATION.value)?null:e.getExternalUrl(_modules["default"].EVALUATION.value,"/cabinet/vote/list"),friendStates:[],name:"Мои голоса",exact:!0,hide:!_globalConfig.globalConfig.evaluationOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessEvaluationOn),module:_modules["default"].EVALUATION,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_my_evaluation_54.svg",isInfinityProfileMenu:!0},{state:e.isLocalRoute(_modules["default"].VOTING.value)?"/cabinet/claims-list":null,externalUrl:e.isLocalRoute(_modules["default"].VOTING.value)?null:e.getExternalUrl(_modules["default"].VOTING.value,"/cabinet/claims-list"),friendStates:[],name:"Мои предложения",exact:!0,hide:!_globalConfig.globalConfig.votingOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessVotingOn)||_globalConfig.globalConfig.votingOn&&!_utilService.UtilService.isKhv(),module:_modules["default"].VOTING,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_MyComplaints_54.svg",isInfinityProfileMenu:!0},{state:e.isLocalRoute(_modules["default"].RECEPTION.value)?"/cabinet":null,externalUrl:e.isLocalRoute(_modules["default"].RECEPTION.value)?null:e.getExternalUrl(_modules["default"].RECEPTION.value,"/cabinet"),friendStates:[],name:"Мои заявки",exact:!0,hide:!_globalConfig.globalConfig.receptionOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessReceptionOn),module:_modules["default"].RECEPTION,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_online_reception_private.svg",isInfinityProfileMenu:!0,notificationsCountType:_notificationsCount["default"].MEETING_EVENTS},{state:e.isLocalRoute(_modules["default"].ARTICLE.value)?"/favourites":null,externalUrl:e.isLocalRoute(_modules["default"].ARTICLE.value)?null:e.getExternalUrl(_modules["default"].ARTICLE.value,"/favourites"),friendStates:[],name:"Избранные статьи",exact:!0,hide:!_globalConfig.globalConfig.articleOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessArticleOn),module:_modules["default"].ARTICLE,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_ArticlesPrivate_54px.svg",isInfinityProfileMenu:!0},{state:e.isLocalRoute(_modules["default"].CAMERAS.value)?"/favorite/cameras":null,externalUrl:e.isLocalRoute(_modules["default"].CAMERAS.value)?null:e.getExternalUrl(_modules["default"].CAMERAS.value,"/favorite/cameras"),friendStates:[],name:"Избранные камеры",exact:!0,hide:!_globalConfig.globalConfig.camerasOn,module:_modules["default"].CAMERAS,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_ArticlesPrivate_54px.svg",isInfinityProfileMenu:!0},{state:e.isLocalRoute(_modules["default"].PROFILE.value)?"/information-messages":null,externalUrl:e.isLocalRoute(_modules["default"].PROFILE.value)?null:e.getExternalUrl(_modules["default"].PROFILE.value,"/information-messages"),friendStates:[],name:"Информ. сообщения",exact:!0,hide:!_globalConfig.globalConfig.informationalMessagesOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessInformationalMessagesOn),module:_modules["default"].PROFILE,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_InformationalMessages_54px.svg",isInfinityProfileMenu:!0,notificationsCountType:_notificationsCount["default"].INFORMATION_MESSAGES},{state:e.isLocalRoute(_modules["default"].PROFILE.value)?"/my-organizations":null,externalUrl:e.isLocalRoute(_modules["default"].PROFILE.value)?null:e.getExternalUrl(_modules["default"].PROFILE.value,"/my-organizations"),friendStates:[],name:"Мои организации",exact:!0,hide:!_authServices.AuthService.getUserInfo()||!_globalConfig.globalConfig.businessModeOn,module:_modules["default"].PROFILE,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_MyOrganizations_54px.svg",isInfinityProfileMenu:!0},{state:e.isLocalRoute(_modules["default"].LIFECITY.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].LIFECITY.value)?null:e.getExternalUrl(_modules["default"].LIFECITY.value,"/"),friendStates:[],name:_modules["default"].LIFECITY.name,exact:!0,hide:!_globalConfig.globalConfig.lifecityOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessLifecityOn),module:_modules["default"].LIFECITY,moduleRootState:"/"},{state:e.isLocalRoute(_modules["default"].DISCUSSIONS.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].DISCUSSIONS.value)?null:e.getExternalUrl(_modules["default"].DISCUSSIONS.value,"/"),friendStates:[],name:_modules["default"].DISCUSSIONS.name,exact:!0,hide:!_globalConfig.globalConfig.discussionsOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessDiscussionsOn),module:_modules["default"].DISCUSSIONS,moduleRootState:"/"},{state:e.isLocalRoute(_modules["default"].CAMERAS.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].CAMERAS.value)?null:e.getExternalUrl(_modules["default"].CAMERAS.value,"/"),name:e.getTitleModule(_modules["default"].CAMERAS),exact:!0,friendStates:[],hide:!_globalConfig.globalConfig.camerasOn,module:_modules["default"].CAMERAS,icon:"assets/images/svg/menu/city-cameras.svg",isInfinityMainMenu:!0,moduleRootState:"/"},{state:null,externalUrl:null,friendStates:[],name:"Выйти из аккаунта",hide:!_authServices.AuthService.getUserInfo(),isLogout:!0,dropdownAvatar:!0,icon:"assets/images/svg/menu/default.svg",callback:function(){return _authServices.AuthService.logOut()},isInfinityProfileMenu:!0},{state:null,externalUrl:null,friendStates:[],name:"Войти",isAuth:!0,icon:"assets/images/svg/menu/default.svg",hide:!!_authServices.AuthService.getUserInfo()}]}},{key:"menuItemBusinessModeHide",value:function(e){return!!_businessModeUtilsService.BusinessModeUtilsService.isBusinessModeOn()&&!!e}}]),e}();exports.TopNavInfinityService=TopNavInfinityService,TopNavInfinityService.MAIN_HASH="#/main",TopNavInfinityService.NOTIFICATIONS_COUNT_INTERVAL=null;
|
|
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 t=l[a];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function _createClass(e,l,a){return l&&_defineProperties(e.prototype,l),a&&_defineProperties(e,a),e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.TopNavInfinityService=void 0;var _globalConfig=require("../config/globalConfig"),_modules=_interopRequireDefault(require("../enums/modules")),_notificationsCount=_interopRequireDefault(require("../enums/notificationsCount")),_authServices=require("./authServices"),_businessModeUtilsService=require("./businessModeUtilsService"),_utilService=require("./utilService"),_appMode=_interopRequireDefault(require("../enums/appMode")),TopNavInfinityService=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"isLocalRoute",value:function(e){return!!_modules["default"][_globalConfig.globalConfig.currentModule]&&_globalConfig.globalConfig.currentModule===_modules["default"][e].value||!!_modules["default"][_globalConfig.globalConfig.currentModule]&&!!_modules["default"][_globalConfig.globalConfig.currentModule].isMain&&_modules["default"][e].isMain}},{key:"getExternalUrl",value:function(e){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(_modules["default"][e].isMain)return"".concat(_globalConfig.globalConfig.mainModuleDomain,"/#").concat(l);var a=_globalConfig.globalConfig.mainModuleDomain;if(!a)return"";var t=a.split("://");return"".concat(t[0],"://").concat(_modules["default"][e].value.toLowerCase(),".").concat(t[1]).concat(l?"/#".concat(l):"")}},{key:"isSelectState",value:function(l,a){return l.module&&!l.module.isMain&&l.module.value===_globalConfig.globalConfig.currentModule?!l.exact||l.state===a:e.isSelectRootState(l,a)||e.isSelectFriendState(l,a)}},{key:"isSelectFriendState",value:function(e,l){var a=!1;return!!e.friendStates&&(e.friendStates.forEach(function(e){l.indexOf(e)>-1&&l.indexOf(e)<=1&&(a=!0)}),a)}},{key:"isSelectRootState",value:function(e,l){var a=e&&l.indexOf(e.state)>-1&&l.indexOf(e.state)<=1;return a}},{key:"getTitleModule",value:function(e){var l=e.title[_globalConfig.globalConfig.templateFolder];return l?l:e.title["default"]}},{key:"menuItemBusinessModeHide",value:function(e){return!!_businessModeUtilsService.BusinessModeUtilsService.isBusinessModeOn()&&!!e}},{key:"menuItems",get:function(){return[{state:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:e.getExternalUrl(_modules["default"].COMPLAINTS.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].COMPLAINTS),hide:!_globalConfig.globalConfig.complaintsOn||_utilService.UtilService.isApiri()||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessComplaintsOn)||_utilService.UtilService.isSkh()&&_businessModeUtilsService.BusinessModeUtilsService.isBusinessModeOn(),module:_modules["default"].COMPLAINTS,icon:"assets/images/svg/menu/ic_publicComplaints.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/new":null,externalUrl:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:e.getExternalUrl(_modules["default"].COMPLAINTS.value,"/new"),friendStates:[],name:"Подать ".concat(_globalConfig.globalConfig.WS_VOICE_INFINITY_COMPLAINT_NAME_BASE,"ие"),exact:!0,hide:!_globalConfig.globalConfig.complaintsOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessComplaintsOn),module:_modules["default"].COMPLAINTS,moduleRootState:"/",icon:"assets/images/svg/menu/ic_CreateComplaints_54px.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].INITIATIVE.value)?"/initiatives-list":null,externalUrl:e.isLocalRoute(_modules["default"].INITIATIVE.value)?null:e.getExternalUrl(_modules["default"].INITIATIVE.value,"/initiatives-list"),friendStates:["intitative"],name:e.getTitleModule(_modules["default"].INITIATIVE),hide:!_globalConfig.globalConfig.initiativenOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessInitiativeOn),module:_modules["default"].INITIATIVE,icon:"assets/images/svg/menu/ic_IniciativesPublic_54px.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].INITIATIVE.value)?"/initiative-create":null,externalUrl:e.isLocalRoute(_modules["default"].INITIATIVE.value)?null:e.getExternalUrl(_modules["default"].INITIATIVE.value,"/initiative-create"),friendStates:[],name:"Предложить инициативу",exact:!0,hide:!_globalConfig.globalConfig.initiativenOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessInitiativeOn),module:_modules["default"].INITIATIVE,moduleRootState:"/",icon:"assets/images/svg/menu/ic_CreateIniciatives_54px.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].INITIATIVE.value)?"/initiatives-reviewers":null,externalUrl:e.isLocalRoute(_modules["default"].INITIATIVE.value)?null:e.getExternalUrl(_modules["default"].INITIATIVE.value,"/initiative-create"),friendStates:[],name:"Наши эксперты",exact:!0,hide:(!_globalConfig.globalConfig.initiativenOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessInitiativeOn))&&!_utilService.UtilService.isKam(),module:_modules["default"].INITIATIVE,moduleRootState:"/",icon:"assets/images/svg/menu/ic_IniciativesReviewers.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].MAP.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].MAP.value)?null:e.getExternalUrl(_modules["default"].MAP.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].MAP),hide:!_globalConfig.globalConfig.mapOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessMapOn)||_globalConfig.globalConfig.mapOn&&_globalConfig.globalConfig.lifecityOn&&!_globalConfig.globalConfig.registryContractOn,module:_modules["default"].MAP,icon:"assets/images/svg/menu/ic_SocialMap_54px.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].EVALUATION.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].EVALUATION.value)?null:e.getExternalUrl(_modules["default"].EVALUATION.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].EVALUATION),hide:!_globalConfig.globalConfig.evaluationOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessEvaluationOn),module:_modules["default"].EVALUATION,icon:"assets/images/svg/menu/ic_evaluation_54.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].VOTING.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].VOTING.value)?null:e.getExternalUrl(_modules["default"].VOTING.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].VOTING),hide:!_globalConfig.globalConfig.votingOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessVotingOn),module:_modules["default"].VOTING,icon:"assets/images/svg/menu/ic_voting_54.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].EVENT.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].EVENT.value)?null:e.getExternalUrl(_modules["default"].EVENT.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].EVENT),hide:!_globalConfig.globalConfig.eventOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessEventOn),module:_modules["default"].EVENT,icon:"assets/images/svg/menu/ic_events_54px.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].POLL.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].POLL.value)?null:e.getExternalUrl(_modules["default"].POLL.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].POLL),hide:!_globalConfig.globalConfig.pollOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessPollOn),module:_modules["default"].POLL,icon:"assets/images/svg/menu/ic_polls.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].ARTICLE.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].ARTICLE.value)?null:e.getExternalUrl(_modules["default"].ARTICLE.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].ARTICLE),hide:!_globalConfig.globalConfig.articleOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessArticleOn),module:_modules["default"].ARTICLE,icon:"assets/images/svg/menu/ic_Articles_54px.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].ORGANIZATION.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].ORGANIZATION.value)?null:e.getExternalUrl(_modules["default"].ORGANIZATION.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].ORGANIZATION),hide:!_globalConfig.globalConfig.organizationOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessOrganizationOn),module:_modules["default"].ORGANIZATION,icon:"assets/images/svg/menu/ic_Organization_54px.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].OPENDATA.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].OPENDATA.value)?null:e.getExternalUrl(_modules["default"].OPENDATA.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].OPENDATA),hide:!_globalConfig.globalConfig.openDataOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessOpenDataOn),module:_modules["default"].OPENDATA,icon:"assets/images/svg/menu/ic_voting_54.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].RECEPTION.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].RECEPTION.value)?null:e.getExternalUrl(_modules["default"].RECEPTION.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].RECEPTION),hide:!_globalConfig.globalConfig.receptionOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessReceptionOn),module:_modules["default"].RECEPTION,icon:"assets/images/svg/menu/ic_online_reception.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].STROIKA.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].STROIKA.value)?null:e.getExternalUrl(_modules["default"].STROIKA.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].STROIKA),hide:!_globalConfig.globalConfig.stroikaOn,module:_modules["default"].STROIKA,icon:"assets/images/svg/menu/map-construction.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].MAIN.value)?"/snow-track":null,externalUrl:e.isLocalRoute(_modules["default"].MAIN.value)?null:e.getExternalUrl(_modules["default"].MAIN.value,"/snow-track"),name:"Уборка снега",exact:!0,friendStates:["snow-"],hide:!_globalConfig.globalConfig.snowTrackOn,module:_modules["default"].MAIN,icon:"assets/images/svg/menu/SnowMap.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].MAIN.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].MAIN.value)?null:e.getExternalUrl(_modules["default"].MAIN.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].MAIN),module:_modules["default"].MAIN,icon:"assets/images/svg/menu/ic_Main_54px.svg",isInfinityMainMenu:!0},{state:e.isLocalRoute(_modules["default"].PROFILE.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].PROFILE.value)?null:e.getExternalUrl(_modules["default"].PROFILE.value,"/"),friendStates:[],name:e.getTitleModule(_modules["default"].PROFILE),hide:!_globalConfig.globalConfig.profileOn||!_authServices.AuthService.getUserInfo()||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessProfileOn),module:_modules["default"].PROFILE,icon:"assets/images/svg/menu/user.svg",isInfinityProfileMenu:!0},{state:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/cabinet/with-mode/".concat(_appMode["default"].PUBLIC):null,externalUrl:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:e.getExternalUrl(_modules["default"].COMPLAINTS.value,"/cabinet/with-mode/".concat(_appMode["default"].PUBLIC)),friendStates:[],name:"Мои ".concat(_globalConfig.globalConfig.WS_VOICE_INFINITY_COMPLAINT_NAME_BASE,"ия"),exact:!0,hide:!_globalConfig.globalConfig.complaintsOn,module:_modules["default"].COMPLAINTS,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_MyComplaints_54.svg",isInfinityProfileMenu:!0,notificationsCountType:_notificationsCount["default"].COMPLAINTS},{state:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?"/cabinet/with-mode/".concat(_appMode["default"].BUSINESS):null,externalUrl:e.isLocalRoute(_modules["default"].COMPLAINTS.value)?null:e.getExternalUrl(_modules["default"].COMPLAINTS.value,"/cabinet/with-mode/".concat(_appMode["default"].BUSINESS)),friendStates:[],name:"".concat(_utilService.UtilService.setFirstWordToUpperCase(_globalConfig.globalConfig.WS_VOICE_INFINITY_COMPLAINT_NAME_BASE),"ия компании"),exact:!0,hide:e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessComplaintsOn)||!!_utilService.UtilService.isApiri(),module:_modules["default"].COMPLAINTS,moduleRootState:"/",needHasOrganization:!0,dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_MyOrgComplaints_54.svg",isInfinityProfileMenu:!0,notificationsCountType:_notificationsCount["default"].BUSINESS_COMPLAINTS},{state:e.isLocalRoute(_modules["default"].MAIN.value)?"/cabinet/initiatives-list":null,externalUrl:e.isLocalRoute(_modules["default"].MAIN.value)?null:e.getExternalUrl(_modules["default"].MAIN.value,"/cabinet/initiatives-list"),friendStates:[],name:"Мои инициативы",exact:!0,hide:!_globalConfig.globalConfig.initiativenOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessInitiativeOn),module:_modules["default"].MAIN,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_MyComplaints_54.svg",isInfinityProfileMenu:!0},{state:e.isLocalRoute(_modules["default"].EVALUATION.value)?"/cabinet/vote/list":null,externalUrl:e.isLocalRoute(_modules["default"].EVALUATION.value)?null:e.getExternalUrl(_modules["default"].EVALUATION.value,"/cabinet/vote/list"),friendStates:[],name:"Мои голоса",exact:!0,hide:!_globalConfig.globalConfig.evaluationOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessEvaluationOn),module:_modules["default"].EVALUATION,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_my_evaluation_54.svg",isInfinityProfileMenu:!0},{state:e.isLocalRoute(_modules["default"].VOTING.value)?"/cabinet/claims-list":null,externalUrl:e.isLocalRoute(_modules["default"].VOTING.value)?null:e.getExternalUrl(_modules["default"].VOTING.value,"/cabinet/claims-list"),friendStates:[],name:"Мои предложения",exact:!0,hide:!_globalConfig.globalConfig.votingOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessVotingOn)||_globalConfig.globalConfig.votingOn&&!_utilService.UtilService.isKhv(),module:_modules["default"].VOTING,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_MyComplaints_54.svg",isInfinityProfileMenu:!0},{state:e.isLocalRoute(_modules["default"].RECEPTION.value)?"/cabinet":null,externalUrl:e.isLocalRoute(_modules["default"].RECEPTION.value)?null:e.getExternalUrl(_modules["default"].RECEPTION.value,"/cabinet"),friendStates:[],name:"Мои заявки",exact:!0,hide:!_globalConfig.globalConfig.receptionOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessReceptionOn),module:_modules["default"].RECEPTION,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_online_reception_private.svg",isInfinityProfileMenu:!0,notificationsCountType:_notificationsCount["default"].MEETING_EVENTS},{state:e.isLocalRoute(_modules["default"].ARTICLE.value)?"/favourites":null,externalUrl:e.isLocalRoute(_modules["default"].ARTICLE.value)?null:e.getExternalUrl(_modules["default"].ARTICLE.value,"/favourites"),friendStates:[],name:"Избранные статьи",exact:!0,hide:!_globalConfig.globalConfig.articleOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessArticleOn),module:_modules["default"].ARTICLE,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_ArticlesPrivate_54px.svg",isInfinityProfileMenu:!0},{state:e.isLocalRoute(_modules["default"].CAMERAS.value)?"/favorite/cameras":null,externalUrl:e.isLocalRoute(_modules["default"].CAMERAS.value)?null:e.getExternalUrl(_modules["default"].CAMERAS.value,"/favorite/cameras"),friendStates:[],name:"Избранные камеры",exact:!0,hide:!_globalConfig.globalConfig.camerasOn,module:_modules["default"].CAMERAS,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_ArticlesPrivate_54px.svg",isInfinityProfileMenu:!0},{state:e.isLocalRoute(_modules["default"].PROFILE.value)?"/information-messages":null,externalUrl:e.isLocalRoute(_modules["default"].PROFILE.value)?null:e.getExternalUrl(_modules["default"].PROFILE.value,"/information-messages"),friendStates:[],name:"Информ. сообщения",exact:!0,hide:!_globalConfig.globalConfig.informationalMessagesOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessInformationalMessagesOn),module:_modules["default"].PROFILE,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_InformationalMessages_54px.svg",isInfinityProfileMenu:!0,notificationsCountType:_notificationsCount["default"].INFORMATION_MESSAGES},{state:e.isLocalRoute(_modules["default"].PROFILE.value)?"/my-organizations":null,externalUrl:e.isLocalRoute(_modules["default"].PROFILE.value)?null:e.getExternalUrl(_modules["default"].PROFILE.value,"/my-organizations"),friendStates:[],name:"Мои организации",exact:!0,hide:!_authServices.AuthService.getUserInfo()||!_globalConfig.globalConfig.businessModeOn,module:_modules["default"].PROFILE,moduleRootState:"/",dropdownAvatar:!0,icon:"assets/images/svg/menu/ic_MyOrganizations_54px.svg",isInfinityProfileMenu:!0},{state:e.isLocalRoute(_modules["default"].LIFECITY.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].LIFECITY.value)?null:e.getExternalUrl(_modules["default"].LIFECITY.value,"/"),friendStates:[],name:_modules["default"].LIFECITY.name,exact:!0,hide:!_globalConfig.globalConfig.lifecityOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessLifecityOn),module:_modules["default"].LIFECITY,moduleRootState:"/"},{state:e.isLocalRoute(_modules["default"].DISCUSSIONS.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].DISCUSSIONS.value)?null:e.getExternalUrl(_modules["default"].DISCUSSIONS.value,"/"),friendStates:[],name:_modules["default"].DISCUSSIONS.name,exact:!0,hide:!_globalConfig.globalConfig.discussionsOn||e.menuItemBusinessModeHide(!_globalConfig.globalConfig.businessDiscussionsOn),module:_modules["default"].DISCUSSIONS,moduleRootState:"/"},{state:e.isLocalRoute(_modules["default"].CAMERAS.value)?"/":null,externalUrl:e.isLocalRoute(_modules["default"].CAMERAS.value)?null:e.getExternalUrl(_modules["default"].CAMERAS.value,"/"),name:e.getTitleModule(_modules["default"].CAMERAS),exact:!0,friendStates:[],hide:!_globalConfig.globalConfig.camerasOn,module:_modules["default"].CAMERAS,icon:"assets/images/svg/menu/city-cameras.svg",isInfinityMainMenu:!0,moduleRootState:"/"},{state:null,externalUrl:null,friendStates:[],name:"Выйти из аккаунта",hide:!_authServices.AuthService.getUserInfo(),isLogout:!0,dropdownAvatar:!0,icon:"assets/images/svg/menu/default.svg",callback:function(){return _authServices.AuthService.logOut()},isInfinityProfileMenu:!0},{state:null,externalUrl:null,friendStates:[],name:"Войти",isAuth:!0,icon:"assets/images/svg/menu/default.svg",hide:!!_authServices.AuthService.getUserInfo()}]}}]),e}();exports.TopNavInfinityService=TopNavInfinityService,TopNavInfinityService.MAIN_HASH="#/main",TopNavInfinityService.NOTIFICATIONS_COUNT_INTERVAL=null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function _classCallCheck(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,r){for(var
|
|
1
|
+
"use strict";function _classCallCheck(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,r){for(var n=0;n<r.length;n++){var t=r[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function _createClass(e,r,n){return r&&_defineProperties(e.prototype,r),n&&_defineProperties(e,n),e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.TransliterationService=void 0;var TransliterationService=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"transliterate",value:function(e){if(e){var r={"А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ё":"Yo","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ё":"yo","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"","ы":"y","ь":"","э":"e","ю":"yu","я":"ya",",":" ",";":" "};for(var n in r)e=e.replace(RegExp(n,"g"),r[n]);return e}}}]),e}();exports.TransliterationService=TransliterationService;
|
|
@@ -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(
|
|
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(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{"default":e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var c=r?Object.getOwnPropertyDescriptor(e,o):null;c&&(c.get||c.set)?Object.defineProperty(n,o,c):n[o]=e[o]}return n["default"]=e,t&&t.set(e,n),n}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.TypeService=void 0;var t=_interopRequireWildcard(require("io-ts")),TypeService=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"checkElement",value:function(t,n,r,o){var c=t.decode(o);return c.isLeft()?(e.showConsoleError(o.id,r,c),null):new n(o)}},{key:"checkElementsCollection",value:function(t,n,r,o){return{items:o.items.map(function(o){return e.checkElement(t,n,r,o)}).filter(function(e){return!!e}),totalCount:o.totalCount}}},{key:"checkElementsArray",value:function(t,n,r,o){return o.map(function(o){return e.checkElement(t,n,r,o)}).filter(function(e){return!!e})}}]),e}();exports.TypeService=TypeService,TypeService.createEnum=function(e,n){var r={};return Object.keys(e).forEach(function(t){return r[e[t]]=null}),t.keyof(r,n)},TypeService.showConsoleError=function(e,t,n){"undefined"!=typeof window&&(window.console.log(""),window.console.log("============== io-ts start error ============="),window.console.log("Произошла ошибка при обработке данных, полученных с сервера. Сущность: ".concat(t,", id сущности: ").concat(e)),n.value.forEach(function(e){var t="";e.context.forEach(function(e){t="".concat(t).concat(e.key," ")}),window.console.log("Значение: ".concat(e.value,", key: ").concat(t))}),window.console.log("============== io-ts end error ============="),window.console.log(""))};
|
|
@@ -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(
|
|
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(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{"default":e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=n?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r["default"]=e,t&&t.set(e,r),r}function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=void 0;var _classnames=_interopRequireDefault(require("classnames")),React=_interopRequireWildcard(require("react")),_globalConfig=require("../config/globalConfig"),_modules=_interopRequireDefault(require("../enums/modules")),_templateService=require("./templateService"),_topNavService=require("./topNavService"),_utilService=require("./utilService"),UserStepsComplaintService=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"getSteps",value:function(e,t){var r=function(e,t){var r=_modules["default"][e],n=_modules["default"][_globalConfig.globalConfig.currentModule];return r&&n?n.value===r.value||n.isMain&&r.isMain?"#".concat(t):n.value!==r.value||n.isMain!==r.isMain?_topNavService.TopNavInfinityService.getExternalUrl(e,t):"#":"#"};return[{content:React.createElement("span",null,React.createElement("span",{className:(0,_classnames["default"])("click","hover-underline","user-steps__item-action-name--link"),onClick:function(){return t?t.toggleOpenAuthModal():null},"data-template":_utilService.UtilService.getTemplateAttribute()},"Войдите")," или ",React.createElement("span",{className:(0,_classnames["default"])("click","hover-underline","user-steps__item-action-name--link"),onClick:function(){return t?t.toggleOpenAuthModal():null},"data-template":_utilService.UtilService.getTemplateAttribute()},"зарегистрируйтесь")," на портале"),iconPath:"assets/images/svg/userSteps/step01".concat(_utilService.UtilService.getUserStepsIconPrefix(),".svg")},{content:React.createElement("span",null,React.createElement("a",{className:(0,_classnames["default"])("click","hover-underline","user-steps__item-action-name--link"),href:r(_modules["default"].COMPLAINTS.value,"/new"),"data-template":_utilService.UtilService.getTemplateAttribute()},"Опишите свою проблему"),", заполнив форму"),iconPath:"assets/images/svg/userSteps/step02".concat(_utilService.UtilService.getUserStepsIconPrefix(),".svg")},{content:React.createElement("span",null,"В срок до ".concat(_templateService.TemplateService.getTemplateString(_templateService.TemplateService.config.USER_STEP_ANSWER.value)," дней Вы получите ответ")),iconPath:"assets/images/svg/userSteps/step03".concat(_utilService.UtilService.getUserStepsIconPrefix(),".svg")},{content:React.createElement("span",null,"Оцените ответ на ".concat(_globalConfig.globalConfig.WS_VOICE_INFINITY_COMPLAINT_NAME_BASE,"ие")),iconPath:"assets/images/svg/userSteps/step04".concat(_utilService.UtilService.getUserStepsIconPrefix(),".svg")}]}}]),e}(),_default=UserStepsComplaintService;exports["default"]=_default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),
|
|
1
|
+
"use strict";function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.UtilService=void 0;var _globalConfig=require("../config/globalConfig"),_businessModeUtilsService=require("./businessModeUtilsService"),UtilService=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"camelToKebabCase",value:function(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}},{key:"cropString",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...";return e.length<=t?e:"".concat(e.substr(0,t-n.length)).concat(n)}},{key:"throttle",value:function(e,t){var n;return function(){if(!n)return n=setTimeout(function(){return n=!1},t),e.apply(void 0,arguments)}}},{key:"setFirstWordToUpperCase",value:function(e){for(var t="",n=0;n<e.length;n++)t="".concat(t).concat(n?e[n]:e[n].toUpperCase());return t}},{key:"phoneMask",value:function(t){if(!t)return"";for(var n="",r=0;r<t.length;r++)/[0-9\+]/.test(t[r])&&(n="".concat(n).concat(t[r]));var a=10,o=11;if(n.length<a||n.length>o+1)return n;var l=2,i=5,c=3;return n.length===o&&(l=1),n.length===a&&(n="+7".concat(n)),n=e.addSubStr(n,l," ("),l+=i,n=e.addSubStr(n,l,") "),l+=i,n=e.addSubStr(n,l,"-"),l+=c,n=e.addSubStr(n,l,"-")}},{key:"concatPersonName",value:function(e,t){if(!e)return"";var n=e.lastName?e.lastName:null,r=e.firstName?e.firstName:null,a=e.middleName?e.middleName:null;return n||r||a?n&&r&&a?t?"".concat(n," ").concat(r," ").concat(a):"".concat(n," ").concat(r.substr(0,1),".").concat(a.substr(0,1),"."):n&&r&&!a?t?"".concat(n," ").concat(r):"".concat(n," ").concat(r.substr(0,1),"."):n&&!r&&a?t?"".concat(n," ").concat(a):"".concat(n," ").concat(a.substr(0,1),"."):!n&&r&&a?t?"".concat(r," ").concat(a):"".concat(r," ").concat(a.substr(0,1),"."):!n||r||a?n||!r||a?n||r||!a?"":"".concat(a):"".concat(r):"".concat(n):""}},{key:"getUniqElementsByArray",value:function(e){var t=[];return e.forEach(function(e){t.some(function(t){return t===e})||t.push(e)}),t}},{key:"promiseWithLoadingTable",value:function(e,t){return t({loadingTable:!0}),new Promise(function(n,r){e.then(function(e){return t({loadingTable:!1}),n(e)})["catch"](function(e){return t({loadingTable:!1}),r(e)})})}},{key:"handlerOutsideClick",value:function(t,n){e.nodes=t,e.callbackOutside=n,document.addEventListener("mousedown",e.handlerCallback,!1)}},{key:"thousandSeparator",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=10,r=this._calculateStep(n,t,0),a=2,o=1,l=null,i=!1,c="",u=-1;!i;)u++,l=this._calculateStep(n,t,u-1),o=Math.floor(e/l),o>r?(o%=r,c=this._toRequiredStringLength(o,t)+(c?" ":"")+c):(i=!0,c=o+(c?" ":"")+c);return this.getDecimal(e,a).length?c+this.getDecimal(e,a):c}},{key:"getDecimal",value:function(e,t){var n=10,r=Math.round((e-Math.floor(e))*Math.pow(n,t))/Math.pow(n,t),a="".concat(r);return a=a.length?a.slice(1):a}},{key:"parseDate",value:function(e,t){if(!e||!t(e).isValid())return"";var n=t(new Date).startOf("day"),r=t(e).startOf("day");return n.isSame(r)?t(e).format("HH:mm"):n.year()===r.year()?t(e).format("D MMM"):t(e).format("DD.MM.YYYY")}},{key:"randomInteger",value:function(e,t){var n=e+Math.random()*(t+1-e);return n=Math.floor(n)}},{key:"isKhv",value:function(){return"khv"===_globalConfig.globalConfig.templateFolder}},{key:"isSkh",value:function(){return"skh"===_globalConfig.globalConfig.templateFolder}},{key:"isKam",value:function(){return"kam"===_globalConfig.globalConfig.templateFolder}},{key:"isZab",value:function(){return"zab"===_globalConfig.globalConfig.templateFolder}},{key:"isAd",value:function(){return"ad"===_globalConfig.globalConfig.templateFolder}},{key:"isUsr",value:function(){return"usr"===_globalConfig.globalConfig.templateFolder}},{key:"isR41",value:function(){return"r41"===_globalConfig.globalConfig.templateFolder}},{key:"isR45",value:function(){return"r45"===_globalConfig.globalConfig.templateFolder}},{key:"isApiri",value:function(){return"apiri"===_globalConfig.globalConfig.templateFolder}},{key:"getScrollableParentNode",value:function(e){return e?e.scrollHeight>e.clientHeight?e:this.getScrollableParentNode(e.parentElement):null}},{key:"getUserStepsIconPrefix",value:function(){return e.iconPrefixes[_globalConfig.globalConfig.templateFolder]?e.iconPrefixes[_globalConfig.globalConfig.templateFolder]:e.iconPrefixes["default"]}},{key:"parseBooleanFromString",value:function(e){return"true"===e}},{key:"getServiceName",value:function(e){return _businessModeUtilsService.BusinessModeUtilsService.isBusinessModeOn()&&e.businessMode?e.businessMode:e["default"]}},{key:"_calculateStep",value:function(e,t,n){return Math.pow(e,t*(n+1))}},{key:"_toRequiredStringLength",value:function(e,t){var n="0",r="".concat(e),a=t-r.length;if(!a)return r;do r=n+r;while(r.length<t);return r}}]),e}();exports.UtilService=UtilService,UtilService.iconPrefixes={ad:"_ad","default":"",usr:"_usr",zab:"_zab",r41:"_r41"},UtilService.nodes=[],UtilService.callbackOutside=function(){return null},UtilService.getTemplateAttribute=function(){return _globalConfig.globalConfig.templateFolder?"".concat(_globalConfig.globalConfig.templateFolder,"-template"):""},UtilService.addSubStr=function(e,t,n){var r=e.substring(0,t),a=e.substring(t,e.length);return"".concat(r).concat(n).concat(a)},UtilService.handlerCallback=function(e){var t=e.target;do{if(UtilService.nodes.findIndex(function(e){return t===e})!==-1||!t)return;t=t.parentNode}while(t);document.removeEventListener("mousedown",UtilService.handlerCallback,!1),UtilService.callbackOutside(),UtilService.nodes=[],UtilService.callbackOutside=function(){return null}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}function
|
|
1
|
+
"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}function _classCallCheck(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}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)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.AuthStore=exports["default"]=void 0;var _mobx=require("mobx"),_modules=_interopRequireDefault(require("../enums/modules")),_topNavService=require("../services/topNavService"),__decorate=function(e,o,t,l){var c,u=arguments.length,n=u<3?o:null===l?l=Object.getOwnPropertyDescriptor(o,t):l;if("object"===("undefined"==typeof Reflect?"undefined":_typeof(Reflect))&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,o,t,l);else for(var a=e.length-1;a>=0;a--)(c=e[a])&&(n=(u<3?c(n):u>3?c(o,t,n):c(o,t))||n);return u>3&&n&&Object.defineProperty(o,t,n),n},AuthStore=function e(){var o=this;_classCallCheck(this,e),this.toggleOpenAuthModal=function(e,t,l,c,u,n){o.openAuthModal=n||!o.openAuthModal,o.openAuthModal?(e&&(o.successCallback=e),t&&(o.cancelCallback=t),o.isLogout=!1,u&&(o.runLoginAs=u)):(o.successCallback&&l&&o.successCallback(),o.cancelCallback&&c&&o.cancelCallback(),o.successCallback=null,o.cancelCallback=null,o.runLoginAs=null)},this.successCloseAuthModal=function(){o.toggleOpenAuthModal(null,null,!0)},this.cancelCloseAuthModal=function(){o.toggleOpenAuthModal(null,null,!1,!0)},this.checkLogout=function(){o.isLogout=!0},this.checkLogin=function(e,t,l){t&&o.toggleOpenAuthModal(function(){return e()},function(){return t.goToState(null,null,l?l:_topNavService.TopNavInfinityService.getExternalUrl(_modules["default"].MAIN.value,"/"))},!1,!1,"",!0)},this.openAuthModal=!1,this.isLogout=!1,this.successCallback=null,this.cancelCallback=null,this.runLoginAs=null};exports.AuthStore=AuthStore,__decorate([_mobx.observable],AuthStore.prototype,"openAuthModal",void 0),__decorate([_mobx.observable],AuthStore.prototype,"isLogout",void 0),__decorate([_mobx.observable],AuthStore.prototype,"runLoginAs",void 0),__decorate([_mobx.observable],AuthStore.prototype,"successCallback",void 0),__decorate([_mobx.observable],AuthStore.prototype,"cancelCallback",void 0),__decorate([(0,_mobx.action)("toggle open auth modal")],AuthStore.prototype,"toggleOpenAuthModal",void 0),__decorate([(0,_mobx.action)("success close auth modal")],AuthStore.prototype,"successCloseAuthModal",void 0),__decorate([(0,_mobx.action)("cancel close auth modal")],AuthStore.prototype,"cancelCloseAuthModal",void 0),__decorate([(0,_mobx.action)("check logout")],AuthStore.prototype,"checkLogout",void 0);var authStore=new AuthStore,_default=authStore;exports["default"]=_default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.EventStore=exports["default"]=void 0;var _mobx=require("mobx"),__decorate=function(e,t,o,l){var n,a=arguments.length,c=a<3?t:null===l?l=Object.getOwnPropertyDescriptor(t,o):l;if("object"===("undefined"==typeof Reflect?"undefined":_typeof(Reflect))&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,l);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(c=(a<3?n(c):a>3?n(t,o,c):n(t,o))||c);return a>3&&c&&Object.defineProperty(t,o,c),c},EventStore=function e(){var t=this;_classCallCheck(this,e),this.addCallback=function(e,o){var l=t.events[e];return l?(l.callbacks.push({callback:o,index:l.callbacks.length?l.callbacks[l.callbacks.length-1].index+1:1}),t.events[e]=l,l.callbacks[l.callbacks.length-1].index):-1},this.removeCallback=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,l=t.events[e];if(l){var n=null===o?-1:l.callbacks.findIndex(function(e){return e.index===o});n===-1?l.callbacks=[]:l.callbacks.splice(n,1),t.events[e]=l}},this.callEvent=function(e){var o=t.events[e];o&&o.callbacks.forEach(function(e){return e.callback?e.callback():null})},this.events={EVALUATION_CARD_CLEAR_FILTER:{event:"EVALUATION_CARD_CLEAR_FILTER",callbacks:[]},ORGANIZATIONS_LIST_CLEAR_FILTER:{event:"ORGANIZATIONS_LIST_CLEAR_FILTER",callbacks:[]},LOGIN:{event:"LOGIN",callbacks:[]},LOGOUT:{event:"LOGOUT",callbacks:[]}}};exports.EventStore=EventStore,__decorate([_mobx.observable],EventStore.prototype,"events",void 0),__decorate([(0,_mobx.action)("add callback")],EventStore.prototype,"addCallback",void 0),__decorate([(0,_mobx.action)("remove callback")],EventStore.prototype,"removeCallback",void 0),__decorate([(0,_mobx.action)("call event")],EventStore.prototype,"callEvent",void 0);var eventStore=new EventStore,_default=eventStore;exports["default"]=_default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function _classCallCheck(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(o,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(o,r.key,r)}}function _createClass(o,e,t){return e&&_defineProperties(o.prototype,e),t&&_defineProperties(o,t),
|
|
1
|
+
"use strict";function _classCallCheck(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(o,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(o,r.key,r)}}function _createClass(o,e,t){return e&&_defineProperties(o.prototype,e),t&&_defineProperties(o,t),o}function _typeof(o){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(o)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.GlobalStore=exports["default"]=void 0;var _mobx=require("mobx"),__decorate=function(o,e,t,r){var n,a=arguments.length,l=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,t):r;if("object"===("undefined"==typeof Reflect?"undefined":_typeof(Reflect))&&"function"==typeof Reflect.decorate)l=Reflect.decorate(o,e,t,r);else for(var i=o.length-1;i>=0;i--)(n=o[i])&&(l=(a<3?n(l):a>3?n(e,t,l):n(e,t))||l);return a>3&&l&&Object.defineProperty(e,t,l),l},GlobalStore=function(){function o(){var e=this;_classCallCheck(this,o),this.startLoading=function(o,t){e.loading=!0,e.loadingText=o,e.loadingShadowBackground=t},this.stopLoading=function(){e.loading=!1,e.loadingText=null,e.loadingShadowBackground=!1},this.goToState=function(o){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(e.pressKeyCode===e.KEY_CODE_CTRL){if(r)return void window.open(r,"_blank");var n="";return t&&(n="?",Object.keys(t).forEach(function(o){n="".concat(n).concat(o,"=").concat(t[o],"&")})),void window.open("".concat(document.location.origin,"/#").concat(o).concat(n),"_blank")}if(r)return void(window.location.href=r);var a=document.getElementById("main-wrap"),l=a?a:window;l.scrollTo?l.scrollTo(0,0):a&&(a.scrollTop=0),e.redirect={pathname:o?o:"",search:t?t:null}},this.clearRedirect=function(){e.redirect=null},this.loading=!1,this.loadingText=null,this.loadingShadowBackground=!1,this.redirect=null,this.pressKeyCode=null,this.prevLocation=null,this.KEY_CODE_CTRL=17}return _createClass(o,[{key:"handlerPressControl",value:function(){var o=this;window.addEventListener("keydown",function(e){return o.setPressKeyCode(e.keyCode)}),window.addEventListener("keyup",function(e){return o.setPressKeyCode(null)})}},{key:"isSkipRoute",value:function(o,e){return!(!o||!o.pathname)&&e.some(function(e){return"string"==typeof e?o.pathname.indexOf(e)!==-1:!e.some(function(e){return o.pathname.indexOf(e)===-1})})}},{key:"setLocation",value:function(o,e){this.prevLocation=!this.location||e&&e.length&&this.isSkipRoute(this.location,e)?null:Object.assign({},this.location),this.location=o}},{key:"setPressKeyCode",value:function(o){this.pressKeyCode=o}}]),o}();exports.GlobalStore=GlobalStore,__decorate([_mobx.observable],GlobalStore.prototype,"loading",void 0),__decorate([_mobx.observable],GlobalStore.prototype,"loadingText",void 0),__decorate([_mobx.observable],GlobalStore.prototype,"loadingShadowBackground",void 0),__decorate([_mobx.observable],GlobalStore.prototype,"redirect",void 0),__decorate([_mobx.observable],GlobalStore.prototype,"pressKeyCode",void 0),__decorate([_mobx.observable],GlobalStore.prototype,"location",void 0),__decorate([_mobx.observable],GlobalStore.prototype,"prevLocation",void 0),__decorate([(0,_mobx.action)("set location")],GlobalStore.prototype,"setLocation",null),__decorate([(0,_mobx.action)("set press key code")],GlobalStore.prototype,"setPressKeyCode",null),__decorate([(0,_mobx.action)("start loading")],GlobalStore.prototype,"startLoading",void 0),__decorate([(0,_mobx.action)("stop loading")],GlobalStore.prototype,"stopLoading",void 0),__decorate([(0,_mobx.action)("go to state")],GlobalStore.prototype,"goToState",void 0),__decorate([(0,_mobx.action)("clear redirect")],GlobalStore.prototype,"clearRedirect",void 0);var globalStore=new GlobalStore,_default=globalStore;exports["default"]=_default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function
|
|
1
|
+
"use strict";function _classCallCheck(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}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)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.MainPageStore=exports["default"]=void 0;var _mobx=require("mobx"),__decorate=function(e,o,t,a){var n,r=arguments.length,i=r<3?o:null===a?a=Object.getOwnPropertyDescriptor(o,t):a;if("object"===("undefined"==typeof Reflect?"undefined":_typeof(Reflect))&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,o,t,a);else for(var u=e.length-1;u>=0;u--)(n=e[u])&&(i=(r<3?n(i):r>3?n(o,t,i):n(o,t))||i);return r>3&&i&&Object.defineProperty(o,t,i),i},MainPageStore=function e(){var o=this;_classCallCheck(this,e),this.getTopNavRef=function(e){o.topNavRef=e},this.getShowTopNav=function(){return o.showTopNav.get()},this.openTopNav=function(){o.showTopNav.get()||o.showTopNav.set(!0)},this.closeTopNav=function(){o.showTopNav.get()&&(o.updateAnchorAvatarMenuEl(null),o.updateAnchorMenuEl(null),o.showTopNav.set(!1))},this.getShowMenuItemsTopNav=function(){return o.showMenuItemsTopNav.get()},this.openOrCloseMenuItemsTopNav=function(){o.showMenuItemsTopNav.set(!o.showMenuItemsTopNav.get())},this.activateTrackingMouse=function(){window.addEventListener("mousemove",o.trackingMouse)},this.stopTrackingMouse=function(){window.removeEventListener("mousemove",o.trackingMouse)},this.trackingMouse=function(e){o.topNavRef&&(e.pageY<=o.heightActivePart&&o.openTopNav(),e.pageY>o.topNavRef.clientHeight&&o.closeTopNav())},this.getAnchorMenuEl=function(){return o.anchorMenuEl.get()},this.updateAnchorMenuEl=function(e){o.anchorMenuEl.set(e)},this.getAnchorSubMenuEl=function(){return o.anchorSubMenuEl.get()},this.getShowSubItemsMenu=function(){return o.showSubItemsMenu.get()},this.updateShowSubItemsMenu=function(e){o.showSubItemsMenu.set(e)},this.updateAnchorSubMenuEl=function(e){o.anchorSubMenuEl.set(e)},this.getAnchorAvatarMenuEl=function(){return o.anchorAvatarMenuEl.get()},this.updateAnchorAvatarMenuEl=function(e){o.anchorAvatarMenuEl.set(e)},this.topNavRef=null,this.heightActivePart=20,this.showTopNav=_mobx.observable.box(!1),this.showSubItemsMenu=_mobx.observable.box(!1),this.showMenuItemsTopNav=_mobx.observable.box(!1),this.anchorMenuEl=_mobx.observable.box(void 0),this.anchorSubMenuEl=_mobx.observable.box(void 0),this.anchorAvatarMenuEl=_mobx.observable.box(void 0)};exports.MainPageStore=MainPageStore,__decorate([_mobx.observable],MainPageStore.prototype,"showTopNav",void 0),__decorate([_mobx.observable],MainPageStore.prototype,"showSubItemsMenu",void 0),__decorate([_mobx.observable],MainPageStore.prototype,"showMenuItemsTopNav",void 0),__decorate([_mobx.observable],MainPageStore.prototype,"anchorMenuEl",void 0),__decorate([_mobx.observable],MainPageStore.prototype,"anchorSubMenuEl",void 0),__decorate([_mobx.observable],MainPageStore.prototype,"anchorAvatarMenuEl",void 0),__decorate([(0,_mobx.action)("get top nav ref")],MainPageStore.prototype,"getTopNavRef",void 0),__decorate([(0,_mobx.action)("get show top nav")],MainPageStore.prototype,"getShowTopNav",void 0),__decorate([(0,_mobx.action)("open top nav")],MainPageStore.prototype,"openTopNav",void 0),__decorate([(0,_mobx.action)("close top nav")],MainPageStore.prototype,"closeTopNav",void 0),__decorate([(0,_mobx.action)("get menu items show top nav")],MainPageStore.prototype,"getShowMenuItemsTopNav",void 0),__decorate([(0,_mobx.action)("open or close menu items top nav")],MainPageStore.prototype,"openOrCloseMenuItemsTopNav",void 0),__decorate([(0,_mobx.action)("activate tracking mouse")],MainPageStore.prototype,"activateTrackingMouse",void 0),__decorate([(0,_mobx.action)("stop tracking mouse")],MainPageStore.prototype,"stopTrackingMouse",void 0),__decorate([(0,_mobx.action)("tracking mouse")],MainPageStore.prototype,"trackingMouse",void 0),__decorate([(0,_mobx.action)("get anchor menu el")],MainPageStore.prototype,"getAnchorMenuEl",void 0),__decorate([(0,_mobx.action)("update anchor menu el")],MainPageStore.prototype,"updateAnchorMenuEl",void 0),__decorate([(0,_mobx.action)("get anchor sub menu el")],MainPageStore.prototype,"getAnchorSubMenuEl",void 0),__decorate([(0,_mobx.action)("get show sub items menu")],MainPageStore.prototype,"getShowSubItemsMenu",void 0),__decorate([(0,_mobx.action)("update show sub items menu")],MainPageStore.prototype,"updateShowSubItemsMenu",void 0),__decorate([(0,_mobx.action)("update anchor sub menu el")],MainPageStore.prototype,"updateAnchorSubMenuEl",void 0),__decorate([(0,_mobx.action)("get anchor avatar menu el")],MainPageStore.prototype,"getAnchorAvatarMenuEl",void 0),__decorate([(0,_mobx.action)("update anchor avatar menu el")],MainPageStore.prototype,"updateAnchorAvatarMenuEl",void 0);var mainPageStore=new MainPageStore,_default=mainPageStore;exports["default"]=_default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function _getRequireWildcardCache(
|
|
1
|
+
"use strict";function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{"default":e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=n?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}return r["default"]=e,t&&t.set(e,r),r}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}function _typeof(e){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.MessageStationStore=exports["default"]=void 0;var _mobx=require("mobx"),messageStationInternalActions=_interopRequireWildcard(require("../actions/messageStationInternalActions")),_utilService=require("../services/utilService"),__decorate=function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":_typeof(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},MessageStationStore=function(){function e(){var t=this;_classCallCheck(this,e),this.addMessageStation=function(e){var r=e.filter(function(e){return!t.messageStationSaveList||t.messageStationSaveList.findIndex(function(t){return t.id===e})===-1});return r.length?messageStationInternalActions.listByIds(_utilService.UtilService.getUniqElementsByArray(r)).then(function(e){return t.messageStationSaveList=t.messageStationSaveList.length?t.messageStationSaveList.concat(e.items):e.items}):Promise.resolve({})},this.messageStationSaveList=[]}return _createClass(e,[{key:"getEntityById",value:function(e){if(!this.messageStationSaveList.length)return null;var t=this.messageStationSaveList.findIndex(function(t){return t.id===e});return t===-1?null:this.messageStationSaveList[t]}},{key:"getNameById",value:function(e){var t=this.getEntityById(e);return t?t.name:""}}]),e}();exports.MessageStationStore=MessageStationStore,__decorate([_mobx.observable],MessageStationStore.prototype,"messageStationSaveList",void 0),__decorate([(0,_mobx.action)("add message station")],MessageStationStore.prototype,"addMessageStation",void 0);var messageStationStore=new MessageStationStore,_default=messageStationStore;exports["default"]=_default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function _getRequireWildcardCache(
|
|
1
|
+
"use strict";function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return _getRequireWildcardCache=function(){return t},t}function _interopRequireWildcard(t){if(t&&t.__esModule)return t;if(null===t||"object"!==_typeof(t)&&"function"!=typeof t)return{"default":t};var o=_getRequireWildcardCache();if(o&&o.has(t))return o.get(t);var e={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var a=i?Object.getOwnPropertyDescriptor(t,n):null;a&&(a.get||a.set)?Object.defineProperty(e,n,a):e[n]=t[n]}return e["default"]=t,o&&o.set(t,e),e}function _classCallCheck(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.NotificationStore=exports["default"]=void 0;var _mobx=require("mobx"),informationalMessagesActions=_interopRequireWildcard(require("../actions/informationalMessagesActions")),profileComplaintsActions=_interopRequireWildcard(require("../actions/profileComplaintsActions")),profileMeetingsActions=_interopRequireWildcard(require("../actions/profileMeetingsActions")),_globalConfig=require("../config/globalConfig"),_authServices=require("../services/authServices"),__decorate=function(t,o,e,i){var n,a=arguments.length,r=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i;if("object"===("undefined"==typeof Reflect?"undefined":_typeof(Reflect))&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,o,e,i);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(r=(a<3?n(r):a>3?n(o,e,r):n(o,e))||r);return a>3&&r&&Object.defineProperty(o,e,r),r},NotificationStore=function t(){var o=this;_classCallCheck(this,t),this.updateComplaintNotificationsCount=function(){_authServices.AuthService.getUserInfo()&&_globalConfig.globalConfig.complaintsOn&&!_globalConfig.globalConfig.businessModeOn&&profileComplaintsActions.getUnreadExecutionsCount().then(function(t){return o.complaintNotificationsCount=t})},this.updateBusinessComplaintNotificationsCount=function(){_authServices.AuthService.getUserInfo()&&_globalConfig.globalConfig.businessModeOn&&_globalConfig.globalConfig.businessComplaintsOn&&profileComplaintsActions.getUnreadBusinessExecutionsCount().then(function(t){return o.businessComplaintNotificationsCount=t})},this.updateMeetingNotificationsCount=function(){_authServices.AuthService.getUserInfo()&&_globalConfig.globalConfig.receptionOn&&profileMeetingsActions.getUnreadMeetingEventsCount().then(function(t){return o.meetingNotificationsCount=t})},this.updateInformationMessagesNotificationsCount=function(){_authServices.AuthService.getUserInfo()&&_globalConfig.globalConfig.informationalMessagesOn&&informationalMessagesActions.unreadCount().then(function(t){return t?o.informationMessagesNotificationsCount=t.value:null})},this.complaintNotificationsCount=0,this.businessComplaintNotificationsCount=0,this.meetingNotificationsCount=0,this.informationMessagesNotificationsCount=0};exports.NotificationStore=NotificationStore,__decorate([_mobx.observable],NotificationStore.prototype,"complaintNotificationsCount",void 0),__decorate([_mobx.observable],NotificationStore.prototype,"businessComplaintNotificationsCount",void 0),__decorate([_mobx.observable],NotificationStore.prototype,"meetingNotificationsCount",void 0),__decorate([_mobx.observable],NotificationStore.prototype,"informationMessagesNotificationsCount",void 0),__decorate([(0,_mobx.action)("update complaint notification count")],NotificationStore.prototype,"updateComplaintNotificationsCount",void 0),__decorate([(0,_mobx.action)("update business complaint notification count")],NotificationStore.prototype,"updateBusinessComplaintNotificationsCount",void 0),__decorate([(0,_mobx.action)("update meeting notifications count")],NotificationStore.prototype,"updateMeetingNotificationsCount",void 0),__decorate([(0,_mobx.action)("update information messages notifications count")],NotificationStore.prototype,"updateInformationMessagesNotificationsCount",void 0);var notificationStore=new NotificationStore,_default=notificationStore;exports["default"]=_default;
|