monkey-front-core 0.0.408 → 0.0.410
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/README.md +24 -24
- package/esm2020/lib/components/alerts/alerts.component.mjs +45 -45
- package/esm2020/lib/components/alerts/alerts.module.mjs +21 -21
- package/esm2020/lib/components/alerts/index.mjs +3 -3
- package/esm2020/lib/components/closed-to-maintenance/closed-to-maintenance.component.mjs +29 -29
- package/esm2020/lib/components/closed-to-maintenance/closed-to-maintenance.module.mjs +43 -43
- package/esm2020/lib/components/closed-to-maintenance/index.mjs +3 -3
- package/esm2020/lib/components/currency-config/currency-config.component.mjs +39 -39
- package/esm2020/lib/components/currency-config/currency-config.module.mjs +39 -39
- package/esm2020/lib/components/currency-config/index.mjs +3 -3
- package/esm2020/lib/components/index.mjs +6 -6
- package/esm2020/lib/components/progress-bar/index.mjs +4 -4
- package/esm2020/lib/components/progress-bar/progress-bar.component.mjs +23 -23
- package/esm2020/lib/components/progress-bar/progress-bar.module.mjs +18 -18
- package/esm2020/lib/components/progress-bar/progress-bar.service.mjs +50 -50
- package/esm2020/lib/components/version-changed/index.mjs +3 -3
- package/esm2020/lib/components/version-changed/version-changed.component.mjs +24 -24
- package/esm2020/lib/components/version-changed/version-changed.module.mjs +39 -39
- package/esm2020/lib/core/decorators/index.mjs +5 -5
- package/esm2020/lib/core/decorators/monkeyecx-charts-decorators.mjs +40 -40
- package/esm2020/lib/core/decorators/monkeyecx-decorators.mjs +111 -111
- package/esm2020/lib/core/decorators/monkeyecx-download-decorators.mjs +26 -26
- package/esm2020/lib/core/decorators/monkeyecx-upload-decorators.mjs +26 -26
- package/esm2020/lib/core/directives/index.mjs +13 -13
- package/esm2020/lib/core/directives/monkeyecx-directives-module.mjs +73 -73
- package/esm2020/lib/core/directives/monkeyecx-drag-drop.mjs +57 -57
- package/esm2020/lib/core/directives/monkeyecx-feature-by-program-directive.mjs +54 -54
- package/esm2020/lib/core/directives/monkeyecx-feature-directive.mjs +68 -68
- package/esm2020/lib/core/directives/monkeyecx-format-currency.mjs +44 -44
- package/esm2020/lib/core/directives/monkeyecx-format-upper.mjs +67 -67
- package/esm2020/lib/core/directives/monkeyecx-only-alpha-numeric-directive.mjs +28 -28
- package/esm2020/lib/core/directives/monkeyecx-only-number-directive.mjs +28 -28
- package/esm2020/lib/core/directives/monkeyecx-popover-options.directive.mjs +39 -39
- package/esm2020/lib/core/directives/monkeyecx-popover.directive.mjs +212 -212
- package/esm2020/lib/core/directives/monkeyecx-security-directive.mjs +75 -75
- package/esm2020/lib/core/directives/monkeyecx-tooltip-directive.mjs +123 -123
- package/esm2020/lib/core/index.mjs +10 -10
- package/esm2020/lib/core/interceptors/index.mjs +6 -6
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-error.interceptor.mjs +49 -49
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-header.interceptor.mjs +59 -59
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-interceptor.module.mjs +47 -47
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-loading-in-progress.interceptor.mjs +43 -43
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-queue.interceptor.mjs +37 -37
- package/esm2020/lib/core/interfaces/index.mjs +31 -31
- package/esm2020/lib/core/interfaces/monkeyecx-auth-credentials.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-company-pendencies.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-company.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-config-bootstrap.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-config.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-country-security.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-error-response.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-filter.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-handled-error-response.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-header-credentials.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-intercom-options.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-me-credentials.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-navigation.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-program.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-releases.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-request-in-progress.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-request-paged.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-response-links.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-response-paged.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-saved-state.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-scroll-options.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-service-credentials.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-storage.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-support-options.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-token-credentials.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-translate-options.mjs +2 -2
- package/esm2020/lib/core/interfaces/request-download/index.mjs +4 -4
- package/esm2020/lib/core/interfaces/request-download/monkeyecx-request-download.mjs +2 -2
- package/esm2020/lib/core/interfaces/request-download/monkeyecx-request-downloaded.mjs +2 -2
- package/esm2020/lib/core/interfaces/request-download/monkeyecx-request-item-download.mjs +2 -2
- package/esm2020/lib/core/interfaces/request-queue/index.mjs +4 -4
- package/esm2020/lib/core/interfaces/request-queue/monkeyecx-request-item-queue.mjs +2 -2
- package/esm2020/lib/core/interfaces/request-queue/monkeyecx-request-progress-queue.mjs +2 -2
- package/esm2020/lib/core/interfaces/request-queue/monkeyecx-request-queue.mjs +2 -2
- package/esm2020/lib/core/interfaces/request-upload/index.mjs +3 -3
- package/esm2020/lib/core/interfaces/request-upload/monkeyecx-request-item-upload.mjs +2 -2
- package/esm2020/lib/core/interfaces/request-upload/monkeyecx-request-upload.mjs +2 -2
- package/esm2020/lib/core/interfaces/schedules/index.mjs +2 -2
- package/esm2020/lib/core/interfaces/schedules/monkeyecx-request-schedule.mjs +2 -2
- package/esm2020/lib/core/model/index.mjs +2 -2
- package/esm2020/lib/core/model/monkeyecx-model.mjs +25 -25
- package/esm2020/lib/core/pipes/index.mjs +22 -22
- package/esm2020/lib/core/pipes/monkeyecx-blob-secure.mjs +26 -26
- package/esm2020/lib/core/pipes/monkeyecx-display-first-name.mjs +19 -19
- package/esm2020/lib/core/pipes/monkeyecx-display-initials.mjs +21 -21
- package/esm2020/lib/core/pipes/monkeyecx-display-support-phone.mjs +33 -33
- package/esm2020/lib/core/pipes/monkeyecx-format-address.mjs +20 -20
- package/esm2020/lib/core/pipes/monkeyecx-format-beautify-json.mjs +38 -38
- package/esm2020/lib/core/pipes/monkeyecx-format-currency.mjs +27 -27
- package/esm2020/lib/core/pipes/monkeyecx-format-date-group.mjs +45 -45
- package/esm2020/lib/core/pipes/monkeyecx-format-date-timelapse.mjs +32 -32
- package/esm2020/lib/core/pipes/monkeyecx-format-date-unix-timelapse.mjs +36 -36
- package/esm2020/lib/core/pipes/monkeyecx-format-document.mjs +20 -20
- package/esm2020/lib/core/pipes/monkeyecx-format-number.mjs +20 -20
- package/esm2020/lib/core/pipes/monkeyecx-format-phone.mjs +42 -42
- package/esm2020/lib/core/pipes/monkeyecx-format-size.mjs +20 -20
- package/esm2020/lib/core/pipes/monkeyecx-format-tax.mjs +23 -23
- package/esm2020/lib/core/pipes/monkeyecx-format-type-document.mjs +19 -19
- package/esm2020/lib/core/pipes/monkeyecx-format-value.mjs +19 -19
- package/esm2020/lib/core/pipes/monkeyecx-format-zipcode.mjs +19 -19
- package/esm2020/lib/core/pipes/monkeyecx-pipes.module.mjs +117 -117
- package/esm2020/lib/core/pipes/monkeyecx-text-truncate.mjs +23 -23
- package/esm2020/lib/core/pipes/monkeyecx-truncate-qtd.mjs +16 -16
- package/esm2020/lib/core/services/alerts/index.mjs +2 -2
- package/esm2020/lib/core/services/alerts/monkeyecx-alerts.service.mjs +42 -42
- package/esm2020/lib/core/services/auth/index.mjs +6 -6
- package/esm2020/lib/core/services/auth/monkeyecx-auth-guard-company.service.mjs +28 -28
- package/esm2020/lib/core/services/auth/monkeyecx-auth-guard-login.service.mjs +27 -27
- package/esm2020/lib/core/services/auth/monkeyecx-auth-guard-role.service.mjs +79 -79
- package/esm2020/lib/core/services/auth/monkeyecx-auth-guard.service.mjs +26 -26
- package/esm2020/lib/core/services/auth/monkeyecx-authentication.service.mjs +79 -79
- package/esm2020/lib/core/services/commons/index.mjs +2 -2
- package/esm2020/lib/core/services/commons/monkeyecx-commons.service.mjs +361 -361
- package/esm2020/lib/core/services/config/monkeyecx-alerts-config.service.mjs +42 -42
- package/esm2020/lib/core/services/config/monkeyecx-config.module.mjs +28 -28
- package/esm2020/lib/core/services/config/monkeyecx-config.service.mjs +110 -110
- package/esm2020/lib/core/services/config/monkeyecx-currency-config.service.mjs +84 -84
- package/esm2020/lib/core/services/config/monkeyecx-error-config.service.mjs +85 -85
- package/esm2020/lib/core/services/config/monkeyecx-feature-toggle.service.mjs +76 -76
- package/esm2020/lib/core/services/config/monkeyecx-gtm-config.service.mjs +51 -51
- package/esm2020/lib/core/services/config/monkeyecx-i18n-config.service.mjs +92 -92
- package/esm2020/lib/core/services/config/monkeyecx-logs-config.service.mjs +34 -34
- package/esm2020/lib/core/services/config/monkeyecx-maintenance-config.service.mjs +37 -37
- package/esm2020/lib/core/services/config/monkeyecx-security-console-config.service.mjs +42 -42
- package/esm2020/lib/core/services/config/monkeyecx-service-worker-config.service.mjs +53 -53
- package/esm2020/lib/core/services/error/index.mjs +5 -5
- package/esm2020/lib/core/services/error/monkeyecx-error-handling.module.mjs +27 -27
- package/esm2020/lib/core/services/error/monkeyecx-error-handling.service.mjs +37 -37
- package/esm2020/lib/core/services/error/monkeyecx-http-error-handling.service.mjs +138 -138
- package/esm2020/lib/core/services/error/monkeyecx-others-errors-handling.service.mjs +29 -29
- package/esm2020/lib/core/services/index.mjs +25 -25
- package/esm2020/lib/core/services/logged/index.mjs +2 -2
- package/esm2020/lib/core/services/logged/monkeyecx-logged-handling.service.mjs +40 -40
- package/esm2020/lib/core/services/monkeyecx-handling.service.mjs +50 -50
- package/esm2020/lib/core/services/monkeyecx-service.service.mjs +104 -104
- package/esm2020/lib/core/services/pagination/index.mjs +2 -2
- package/esm2020/lib/core/services/pagination/monkeyecx-pagination.service.mjs +29 -29
- package/esm2020/lib/core/services/request-download/index.mjs +3 -3
- package/esm2020/lib/core/services/request-download/monkeyecx-request-download-handling.service.mjs +93 -93
- package/esm2020/lib/core/services/request-download/monkeyecx-request-downloaded-handling.service.mjs +61 -61
- package/esm2020/lib/core/services/request-paged/index.mjs +2 -2
- package/esm2020/lib/core/services/request-paged/monkeyecx-request-request-paged-handling.mjs +42 -42
- package/esm2020/lib/core/services/request-queue/index.mjs +3 -3
- package/esm2020/lib/core/services/request-queue/monkeyecx-request-queue-handling.service.mjs +114 -114
- package/esm2020/lib/core/services/request-queue/monkeyecx-request-queue-modal-handling.service.mjs +119 -119
- package/esm2020/lib/core/services/routes/index.mjs +2 -2
- package/esm2020/lib/core/services/routes/monkeyecx-dicovery-params.service.mjs +54 -54
- package/esm2020/lib/core/services/schedules/index.mjs +2 -2
- package/esm2020/lib/core/services/schedules/monkeyecx-request-schedule.service.mjs +188 -188
- package/esm2020/lib/core/services/storage/index.mjs +3 -3
- package/esm2020/lib/core/services/storage/monkeyecx-cookie-storage.service.mjs +32 -32
- package/esm2020/lib/core/services/storage/monkeyecx-token-storage.service.mjs +236 -236
- package/esm2020/lib/core/specification-search/index.mjs +2 -2
- package/esm2020/lib/core/specification-search/monkeyecx-specification-search.mjs +108 -108
- package/esm2020/lib/core/utils/decorators-utils.mjs +40 -40
- package/esm2020/lib/core/utils/index.mjs +8 -8
- package/esm2020/lib/core/utils/statics.mjs +45 -45
- package/esm2020/lib/core/utils/utils.mjs +251 -251
- package/esm2020/lib/core/utils/validate-utils.mjs +205 -205
- package/esm2020/lib/core/utils/validators.mjs +226 -226
- package/esm2020/lib/monkey-front-core.module.mjs +71 -71
- package/esm2020/lib/store/actions/index.mjs +2 -2
- package/esm2020/lib/store/actions/monkeyecx-storage.actions.mjs +8 -8
- package/esm2020/lib/store/index.mjs +4 -4
- package/esm2020/lib/store/reducers/index.mjs +3 -3
- package/esm2020/lib/store/reducers/monkeyecx-seeder.reducer.mjs +53 -53
- package/esm2020/lib/store/reducers/monkeyecx-storage.reducer.mjs +40 -40
- package/esm2020/lib/store/selectors/index.mjs +2 -2
- package/esm2020/lib/store/selectors/monkeyecx-storage.selector.mjs +17 -17
- package/esm2020/monkey-front-core.mjs +4 -4
- package/esm2020/public-api.mjs +8 -8
- package/fesm2015/monkey-front-core.mjs +5425 -5425
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +5498 -5498
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/components/alerts/alerts.component.d.ts +22 -22
- package/lib/components/alerts/alerts.module.d.ts +10 -10
- package/lib/components/alerts/index.d.ts +2 -2
- package/lib/components/closed-to-maintenance/closed-to-maintenance.component.d.ts +13 -13
- package/lib/components/closed-to-maintenance/closed-to-maintenance.module.d.ts +11 -11
- package/lib/components/closed-to-maintenance/index.d.ts +2 -2
- package/lib/components/currency-config/currency-config.component.d.ts +17 -17
- package/lib/components/currency-config/currency-config.module.d.ts +10 -10
- package/lib/components/currency-config/index.d.ts +2 -2
- package/lib/components/index.d.ts +5 -5
- package/lib/components/progress-bar/index.d.ts +3 -3
- package/lib/components/progress-bar/progress-bar.component.d.ts +11 -11
- package/lib/components/progress-bar/progress-bar.module.d.ts +8 -8
- package/lib/components/progress-bar/progress-bar.service.d.ts +14 -14
- package/lib/components/version-changed/index.d.ts +2 -2
- package/lib/components/version-changed/version-changed.component.d.ts +9 -9
- package/lib/components/version-changed/version-changed.module.d.ts +10 -10
- package/lib/core/decorators/index.d.ts +4 -4
- package/lib/core/decorators/monkeyecx-charts-decorators.d.ts +1 -1
- package/lib/core/decorators/monkeyecx-decorators.d.ts +7 -7
- package/lib/core/decorators/monkeyecx-download-decorators.d.ts +2 -2
- package/lib/core/decorators/monkeyecx-upload-decorators.d.ts +2 -2
- package/lib/core/directives/index.d.ts +12 -12
- package/lib/core/directives/monkeyecx-directives-module.d.ts +19 -19
- package/lib/core/directives/monkeyecx-drag-drop.d.ts +12 -12
- package/lib/core/directives/monkeyecx-feature-by-program-directive.d.ts +16 -16
- package/lib/core/directives/monkeyecx-feature-directive.d.ts +17 -17
- package/lib/core/directives/monkeyecx-format-currency.d.ts +16 -16
- package/lib/core/directives/monkeyecx-format-upper.d.ts +18 -18
- package/lib/core/directives/monkeyecx-only-alpha-numeric-directive.d.ts +9 -9
- package/lib/core/directives/monkeyecx-only-number-directive.d.ts +9 -9
- package/lib/core/directives/monkeyecx-popover-options.directive.d.ts +19 -19
- package/lib/core/directives/monkeyecx-popover.directive.d.ts +43 -43
- package/lib/core/directives/monkeyecx-security-directive.d.ts +18 -18
- package/lib/core/directives/monkeyecx-tooltip-directive.d.ts +23 -23
- package/lib/core/index.d.ts +9 -9
- package/lib/core/interceptors/index.d.ts +5 -5
- package/lib/core/interceptors/monkeyecx-http-config-error.interceptor.d.ts +18 -18
- package/lib/core/interceptors/monkeyecx-http-config-header.interceptor.d.ts +16 -16
- package/lib/core/interceptors/monkeyecx-http-config-interceptor.module.d.ts +9 -9
- package/lib/core/interceptors/monkeyecx-http-config-loading-in-progress.interceptor.d.ts +12 -12
- package/lib/core/interceptors/monkeyecx-http-config-queue.interceptor.d.ts +14 -14
- package/lib/core/interfaces/index.d.ts +30 -30
- package/lib/core/interfaces/monkeyecx-auth-credentials.d.ts +15 -15
- package/lib/core/interfaces/monkeyecx-company-pendencies.d.ts +14 -14
- package/lib/core/interfaces/monkeyecx-company.d.ts +10 -10
- package/lib/core/interfaces/monkeyecx-config-bootstrap.d.ts +14 -14
- package/lib/core/interfaces/monkeyecx-config.d.ts +132 -132
- package/lib/core/interfaces/monkeyecx-country-security.d.ts +4 -4
- package/lib/core/interfaces/monkeyecx-error-response.d.ts +5 -5
- package/lib/core/interfaces/monkeyecx-filter.d.ts +42 -42
- package/lib/core/interfaces/monkeyecx-handled-error-response.d.ts +10 -10
- package/lib/core/interfaces/monkeyecx-header-credentials.d.ts +4 -4
- package/lib/core/interfaces/monkeyecx-intercom-options.d.ts +4 -4
- package/lib/core/interfaces/monkeyecx-me-credentials.d.ts +22 -22
- package/lib/core/interfaces/monkeyecx-navigation.d.ts +27 -27
- package/lib/core/interfaces/monkeyecx-program.d.ts +10 -10
- package/lib/core/interfaces/monkeyecx-releases.d.ts +9 -9
- package/lib/core/interfaces/monkeyecx-request-in-progress.d.ts +3 -3
- package/lib/core/interfaces/monkeyecx-request-paged.d.ts +23 -23
- package/lib/core/interfaces/monkeyecx-response-links.d.ts +11 -11
- package/lib/core/interfaces/monkeyecx-response-paged.d.ts +6 -6
- package/lib/core/interfaces/monkeyecx-saved-state.d.ts +5 -5
- package/lib/core/interfaces/monkeyecx-scroll-options.d.ts +5 -5
- package/lib/core/interfaces/monkeyecx-service-credentials.d.ts +12 -12
- package/lib/core/interfaces/monkeyecx-storage.d.ts +38 -38
- package/lib/core/interfaces/monkeyecx-support-options.d.ts +4 -4
- package/lib/core/interfaces/monkeyecx-token-credentials.d.ts +20 -20
- package/lib/core/interfaces/monkeyecx-translate-options.d.ts +4 -4
- package/lib/core/interfaces/request-download/index.d.ts +3 -3
- package/lib/core/interfaces/request-download/monkeyecx-request-download.d.ts +10 -10
- package/lib/core/interfaces/request-download/monkeyecx-request-downloaded.d.ts +7 -7
- package/lib/core/interfaces/request-download/monkeyecx-request-item-download.d.ts +7 -7
- package/lib/core/interfaces/request-queue/index.d.ts +3 -3
- package/lib/core/interfaces/request-queue/monkeyecx-request-item-queue.d.ts +7 -7
- package/lib/core/interfaces/request-queue/monkeyecx-request-progress-queue.d.ts +6 -6
- package/lib/core/interfaces/request-queue/monkeyecx-request-queue.d.ts +8 -8
- package/lib/core/interfaces/request-upload/index.d.ts +2 -2
- package/lib/core/interfaces/request-upload/monkeyecx-request-item-upload.d.ts +5 -5
- package/lib/core/interfaces/request-upload/monkeyecx-request-upload.d.ts +10 -10
- package/lib/core/interfaces/schedules/index.d.ts +1 -1
- package/lib/core/interfaces/schedules/monkeyecx-request-schedule.d.ts +13 -13
- package/lib/core/model/index.d.ts +1 -1
- package/lib/core/model/monkeyecx-model.d.ts +13 -13
- package/lib/core/pipes/index.d.ts +21 -21
- package/lib/core/pipes/monkeyecx-blob-secure.d.ts +13 -13
- package/lib/core/pipes/monkeyecx-display-first-name.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-display-initials.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-display-support-phone.d.ts +18 -18
- package/lib/core/pipes/monkeyecx-format-address.d.ts +14 -14
- package/lib/core/pipes/monkeyecx-format-beautify-json.d.ts +8 -8
- package/lib/core/pipes/monkeyecx-format-currency.d.ts +11 -11
- package/lib/core/pipes/monkeyecx-format-date-group.d.ts +11 -11
- package/lib/core/pipes/monkeyecx-format-date-timelapse.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-format-date-unix-timelapse.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-format-document.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-format-number.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-format-phone.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-format-size.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-format-tax.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-format-type-document.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-format-value.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-format-zipcode.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-pipes.module.d.ts +26 -26
- package/lib/core/pipes/monkeyecx-text-truncate.d.ts +7 -7
- package/lib/core/pipes/monkeyecx-truncate-qtd.d.ts +7 -7
- package/lib/core/services/alerts/index.d.ts +1 -1
- package/lib/core/services/alerts/monkeyecx-alerts.service.d.ts +21 -21
- package/lib/core/services/auth/index.d.ts +5 -5
- package/lib/core/services/auth/monkeyecx-auth-guard-company.service.d.ts +10 -10
- package/lib/core/services/auth/monkeyecx-auth-guard-login.service.d.ts +10 -10
- package/lib/core/services/auth/monkeyecx-auth-guard-role.service.d.ts +16 -16
- package/lib/core/services/auth/monkeyecx-auth-guard.service.d.ts +10 -10
- package/lib/core/services/auth/monkeyecx-authentication.service.d.ts +34 -34
- package/lib/core/services/commons/index.d.ts +1 -1
- package/lib/core/services/commons/monkeyecx-commons.service.d.ts +119 -119
- package/lib/core/services/config/monkeyecx-alerts-config.service.d.ts +11 -11
- package/lib/core/services/config/monkeyecx-config.module.d.ts +9 -9
- package/lib/core/services/config/monkeyecx-config.service.d.ts +36 -36
- package/lib/core/services/config/monkeyecx-currency-config.service.d.ts +15 -15
- package/lib/core/services/config/monkeyecx-error-config.service.d.ts +8 -8
- package/lib/core/services/config/monkeyecx-feature-toggle.service.d.ts +16 -16
- package/lib/core/services/config/monkeyecx-gtm-config.service.d.ts +9 -9
- package/lib/core/services/config/monkeyecx-i18n-config.service.d.ts +16 -16
- package/lib/core/services/config/monkeyecx-logs-config.service.d.ts +7 -7
- package/lib/core/services/config/monkeyecx-maintenance-config.service.d.ts +13 -13
- package/lib/core/services/config/monkeyecx-security-console-config.service.d.ts +11 -11
- package/lib/core/services/config/monkeyecx-service-worker-config.service.d.ts +16 -16
- package/lib/core/services/error/index.d.ts +4 -4
- package/lib/core/services/error/monkeyecx-error-handling.module.d.ts +9 -9
- package/lib/core/services/error/monkeyecx-error-handling.service.d.ts +9 -9
- package/lib/core/services/error/monkeyecx-http-error-handling.service.d.ts +26 -26
- package/lib/core/services/error/monkeyecx-others-errors-handling.service.d.ts +9 -9
- package/lib/core/services/index.d.ts +24 -24
- package/lib/core/services/logged/index.d.ts +1 -1
- package/lib/core/services/logged/monkeyecx-logged-handling.service.d.ts +14 -14
- package/lib/core/services/monkeyecx-handling.service.d.ts +22 -22
- package/lib/core/services/monkeyecx-service.service.d.ts +18 -18
- package/lib/core/services/pagination/index.d.ts +1 -1
- package/lib/core/services/pagination/monkeyecx-pagination.service.d.ts +9 -9
- package/lib/core/services/request-download/index.d.ts +2 -2
- package/lib/core/services/request-download/monkeyecx-request-download-handling.service.d.ts +18 -18
- package/lib/core/services/request-download/monkeyecx-request-downloaded-handling.service.d.ts +16 -16
- package/lib/core/services/request-paged/index.d.ts +1 -1
- package/lib/core/services/request-paged/monkeyecx-request-request-paged-handling.d.ts +11 -11
- package/lib/core/services/request-queue/index.d.ts +2 -2
- package/lib/core/services/request-queue/monkeyecx-request-queue-handling.service.d.ts +21 -21
- package/lib/core/services/request-queue/monkeyecx-request-queue-modal-handling.service.d.ts +23 -23
- package/lib/core/services/routes/index.d.ts +1 -1
- package/lib/core/services/routes/monkeyecx-dicovery-params.service.d.ts +13 -13
- package/lib/core/services/schedules/index.d.ts +1 -1
- package/lib/core/services/schedules/monkeyecx-request-schedule.service.d.ts +47 -47
- package/lib/core/services/storage/index.d.ts +2 -2
- package/lib/core/services/storage/monkeyecx-cookie-storage.service.d.ts +11 -11
- package/lib/core/services/storage/monkeyecx-token-storage.service.d.ts +30 -30
- package/lib/core/specification-search/index.d.ts +1 -1
- package/lib/core/specification-search/monkeyecx-specification-search.d.ts +20 -20
- package/lib/core/utils/decorators-utils.d.ts +5 -5
- package/lib/core/utils/index.d.ts +6 -6
- package/lib/core/utils/statics.d.ts +34 -34
- package/lib/core/utils/utils.d.ts +24 -24
- package/lib/core/utils/validate-utils.d.ts +66 -66
- package/lib/core/utils/validators.d.ts +32 -32
- package/lib/monkey-front-core.module.d.ts +19 -19
- package/lib/store/actions/index.d.ts +1 -1
- package/lib/store/actions/monkeyecx-storage.actions.d.ts +23 -23
- package/lib/store/index.d.ts +3 -3
- package/lib/store/reducers/index.d.ts +2 -2
- package/lib/store/reducers/monkeyecx-seeder.reducer.d.ts +2 -2
- package/lib/store/reducers/monkeyecx-storage.reducer.d.ts +13 -13
- package/lib/store/selectors/index.d.ts +1 -1
- package/lib/store/selectors/monkeyecx-storage.selector.d.ts +8 -8
- package/monkey-front-core-0.0.410.tgz +0 -0
- package/monkey-front-core.d.ts +5 -5
- package/package.json +3 -3
- package/public-api.d.ts +4 -4
- package/monkey-front-core-0.0.408.tgz +0 -0
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
/* eslint-disable no-console */
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class MonkeyEcxGTMConfigService {
|
|
5
|
-
constructor() {
|
|
6
|
-
// not to do
|
|
7
|
-
}
|
|
8
|
-
handleCode(key) {
|
|
9
|
-
try {
|
|
10
|
-
window.dataLayer = window.dataLayer || [];
|
|
11
|
-
window.dataLayer.push({
|
|
12
|
-
'gtm.start': new Date().getTime(),
|
|
13
|
-
event: 'gtm.js'
|
|
14
|
-
});
|
|
15
|
-
const head = document.querySelector('head');
|
|
16
|
-
const script = document.createElement('script');
|
|
17
|
-
script.async = true;
|
|
18
|
-
script.src = `https://www.googletagmanager.com/gtm.js?id=GTM-${key}`;
|
|
19
|
-
head?.appendChild(script);
|
|
20
|
-
const body = document.querySelector('body');
|
|
21
|
-
const noscript = document.createElement('noscript');
|
|
22
|
-
const iframe = document.createElement('iframe');
|
|
23
|
-
iframe.src = `https://www.googletagmanager.com/ns.html?id=GTM-${key}`;
|
|
24
|
-
iframe.height = '0';
|
|
25
|
-
iframe.width = '0';
|
|
26
|
-
iframe.style.display = 'none';
|
|
27
|
-
iframe.style.visibility = 'hidden';
|
|
28
|
-
noscript.appendChild(iframe);
|
|
29
|
-
body?.appendChild(noscript);
|
|
30
|
-
}
|
|
31
|
-
catch (e) {
|
|
32
|
-
console.error('GTM Configuration Error!');
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
apply(params, environment) {
|
|
36
|
-
const { gtm } = params;
|
|
37
|
-
const { enabled, key } = gtm || { enabled: false, key: '' };
|
|
38
|
-
if (enabled && environment.environment !== 'dev') {
|
|
39
|
-
this.handleCode(key);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
MonkeyEcxGTMConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
44
|
-
MonkeyEcxGTMConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
46
|
-
type: Injectable,
|
|
47
|
-
args: [{
|
|
48
|
-
providedIn: 'root'
|
|
49
|
-
}]
|
|
50
|
-
}], ctorParameters: function () { return []; } });
|
|
51
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
/* eslint-disable no-console */
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class MonkeyEcxGTMConfigService {
|
|
5
|
+
constructor() {
|
|
6
|
+
// not to do
|
|
7
|
+
}
|
|
8
|
+
handleCode(key) {
|
|
9
|
+
try {
|
|
10
|
+
window.dataLayer = window.dataLayer || [];
|
|
11
|
+
window.dataLayer.push({
|
|
12
|
+
'gtm.start': new Date().getTime(),
|
|
13
|
+
event: 'gtm.js'
|
|
14
|
+
});
|
|
15
|
+
const head = document.querySelector('head');
|
|
16
|
+
const script = document.createElement('script');
|
|
17
|
+
script.async = true;
|
|
18
|
+
script.src = `https://www.googletagmanager.com/gtm.js?id=GTM-${key}`;
|
|
19
|
+
head?.appendChild(script);
|
|
20
|
+
const body = document.querySelector('body');
|
|
21
|
+
const noscript = document.createElement('noscript');
|
|
22
|
+
const iframe = document.createElement('iframe');
|
|
23
|
+
iframe.src = `https://www.googletagmanager.com/ns.html?id=GTM-${key}`;
|
|
24
|
+
iframe.height = '0';
|
|
25
|
+
iframe.width = '0';
|
|
26
|
+
iframe.style.display = 'none';
|
|
27
|
+
iframe.style.visibility = 'hidden';
|
|
28
|
+
noscript.appendChild(iframe);
|
|
29
|
+
body?.appendChild(noscript);
|
|
30
|
+
}
|
|
31
|
+
catch (e) {
|
|
32
|
+
console.error('GTM Configuration Error!');
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
apply(params, environment) {
|
|
36
|
+
const { gtm } = params;
|
|
37
|
+
const { enabled, key } = gtm || { enabled: false, key: '' };
|
|
38
|
+
if (enabled && environment.environment !== 'dev') {
|
|
39
|
+
this.handleCode(key);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
MonkeyEcxGTMConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxGTMConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
44
|
+
MonkeyEcxGTMConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxGTMConfigService, providedIn: 'root' });
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxGTMConfigService, decorators: [{
|
|
46
|
+
type: Injectable,
|
|
47
|
+
args: [{
|
|
48
|
+
providedIn: 'root'
|
|
49
|
+
}]
|
|
50
|
+
}], ctorParameters: function () { return []; } });
|
|
51
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ua2V5ZWN4LWd0bS1jb25maWcuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL21vbmtleS1mcm9udC1jb3JlL3NyYy9saWIvY29yZS9zZXJ2aWNlcy9jb25maWcvbW9ua2V5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1,92 +1,92 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
/* eslint-disable no-console */
|
|
3
|
-
/* eslint-disable import/no-named-default */
|
|
4
|
-
import { Injectable } from '@angular/core';
|
|
5
|
-
import { throwError } from 'rxjs';
|
|
6
|
-
import { take } from 'rxjs/operators';
|
|
7
|
-
import { MonkeyEcxCoreService } from '../../decorators/monkeyecx-decorators';
|
|
8
|
-
import { MonkeyEcxCommonsService } from '../commons';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
import * as i1 from "../monkeyecx-service.service";
|
|
11
|
-
import * as i2 from "@ngx-translate/core";
|
|
12
|
-
import * as i3 from "../storage/monkeyecx-cookie-storage.service";
|
|
13
|
-
import * as i4 from "../config/monkeyecx-error-config.service";
|
|
14
|
-
export class MonkeyEcxi18nConfigService extends MonkeyEcxCommonsService {
|
|
15
|
-
constructor(monkeyecxService, translateService, monkeyecxCookieStorageService, monkeyecxErrorConfigService) {
|
|
16
|
-
super(monkeyecxService);
|
|
17
|
-
this.translateService = translateService;
|
|
18
|
-
this.monkeyecxCookieStorageService = monkeyecxCookieStorageService;
|
|
19
|
-
this.monkeyecxErrorConfigService = monkeyecxErrorConfigService;
|
|
20
|
-
this.translateService.addLangs(['pt-BR', 'en-US']);
|
|
21
|
-
this.translateService.setDefaultLang('pt-BR');
|
|
22
|
-
this.translateService.use('pt-BR');
|
|
23
|
-
}
|
|
24
|
-
async apply(params, environment, change = false) {
|
|
25
|
-
const { monkeyecxService, monkeyecxCookieStorageService, monkeyecxErrorConfigService } = this;
|
|
26
|
-
let { i18n } = params;
|
|
27
|
-
const currentExternali18n = params?.externali18n?.[`${i18n?.lang || 'pt-BR'}`];
|
|
28
|
-
const cookie = monkeyecxCookieStorageService.getCookie('monkey-app-locale');
|
|
29
|
-
if (cookie && !change) {
|
|
30
|
-
i18n = JSON.parse(atob(cookie));
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
monkeyecxCookieStorageService.setCookie('monkey-app-locale', btoa(JSON.stringify(i18n)), environment);
|
|
34
|
-
}
|
|
35
|
-
try {
|
|
36
|
-
const externali18nPaths = params?.i18n?.paths || [];
|
|
37
|
-
const services = externali18nPaths?.map((url) => {
|
|
38
|
-
return monkeyecxService?.get(`${url}/${i18n?.lang}.json`).pipe(take(1)).toPromise();
|
|
39
|
-
});
|
|
40
|
-
if (!services?.length)
|
|
41
|
-
return;
|
|
42
|
-
const externali18nData = await Promise.all(services);
|
|
43
|
-
externali18nData?.forEach((config) => {
|
|
44
|
-
const { lang } = config;
|
|
45
|
-
const { data } = config;
|
|
46
|
-
this.translateService.setTranslation('pt-BR', data, true);
|
|
47
|
-
this.translateService.setTranslation(lang, data, true);
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
catch (err) {
|
|
51
|
-
// not to do
|
|
52
|
-
}
|
|
53
|
-
try {
|
|
54
|
-
const currenti18n = await monkeyecxService?.get(`${environment.localAssets}/i18n/${i18n?.lang}.json`).pipe(take(1)).toPromise();
|
|
55
|
-
const { lang } = currenti18n;
|
|
56
|
-
let { data } = currenti18n;
|
|
57
|
-
if (currentExternali18n) {
|
|
58
|
-
data = {
|
|
59
|
-
...data,
|
|
60
|
-
EXTERNAL: currentExternali18n
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
this.translateService.setTranslation('pt-BR', data, true);
|
|
64
|
-
this.translateService.setTranslation(lang, data, true);
|
|
65
|
-
this.translateService.use(lang);
|
|
66
|
-
}
|
|
67
|
-
catch (err) {
|
|
68
|
-
console.error(`i18n ${i18n?.lang} not found!`);
|
|
69
|
-
monkeyecxErrorConfigService.apply('i18n');
|
|
70
|
-
throwError(err);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
MonkeyEcxi18nConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
75
|
-
MonkeyEcxi18nConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
76
|
-
__decorate([
|
|
77
|
-
MonkeyEcxCoreService({
|
|
78
|
-
httpResponse: {
|
|
79
|
-
httpCodeIgnore: [404]
|
|
80
|
-
},
|
|
81
|
-
requestInProgress: {
|
|
82
|
-
showProgress: false
|
|
83
|
-
}
|
|
84
|
-
})
|
|
85
|
-
], MonkeyEcxi18nConfigService.prototype, "apply", null);
|
|
86
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
87
|
-
type: Injectable,
|
|
88
|
-
args: [{
|
|
89
|
-
providedIn: 'root'
|
|
90
|
-
}]
|
|
91
|
-
}], ctorParameters: function () { return [{ type: i1.MonkeyEcxService }, { type: i2.TranslateService }, { type: i3.MonkeyEcxCookieStorageService }, { type: i4.MonkeyEcxErrorConfigService }]; }, propDecorators: { apply: [] } });
|
|
92
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
/* eslint-disable no-console */
|
|
3
|
+
/* eslint-disable import/no-named-default */
|
|
4
|
+
import { Injectable } from '@angular/core';
|
|
5
|
+
import { throwError } from 'rxjs';
|
|
6
|
+
import { take } from 'rxjs/operators';
|
|
7
|
+
import { MonkeyEcxCoreService } from '../../decorators/monkeyecx-decorators';
|
|
8
|
+
import { MonkeyEcxCommonsService } from '../commons';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
import * as i1 from "../monkeyecx-service.service";
|
|
11
|
+
import * as i2 from "@ngx-translate/core";
|
|
12
|
+
import * as i3 from "../storage/monkeyecx-cookie-storage.service";
|
|
13
|
+
import * as i4 from "../config/monkeyecx-error-config.service";
|
|
14
|
+
export class MonkeyEcxi18nConfigService extends MonkeyEcxCommonsService {
|
|
15
|
+
constructor(monkeyecxService, translateService, monkeyecxCookieStorageService, monkeyecxErrorConfigService) {
|
|
16
|
+
super(monkeyecxService);
|
|
17
|
+
this.translateService = translateService;
|
|
18
|
+
this.monkeyecxCookieStorageService = monkeyecxCookieStorageService;
|
|
19
|
+
this.monkeyecxErrorConfigService = monkeyecxErrorConfigService;
|
|
20
|
+
this.translateService.addLangs(['pt-BR', 'en-US']);
|
|
21
|
+
this.translateService.setDefaultLang('pt-BR');
|
|
22
|
+
this.translateService.use('pt-BR');
|
|
23
|
+
}
|
|
24
|
+
async apply(params, environment, change = false) {
|
|
25
|
+
const { monkeyecxService, monkeyecxCookieStorageService, monkeyecxErrorConfigService } = this;
|
|
26
|
+
let { i18n } = params;
|
|
27
|
+
const currentExternali18n = params?.externali18n?.[`${i18n?.lang || 'pt-BR'}`];
|
|
28
|
+
const cookie = monkeyecxCookieStorageService.getCookie('monkey-app-locale');
|
|
29
|
+
if (cookie && !change) {
|
|
30
|
+
i18n = JSON.parse(atob(cookie));
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
monkeyecxCookieStorageService.setCookie('monkey-app-locale', btoa(JSON.stringify(i18n)), environment);
|
|
34
|
+
}
|
|
35
|
+
try {
|
|
36
|
+
const externali18nPaths = params?.i18n?.paths || [];
|
|
37
|
+
const services = externali18nPaths?.map((url) => {
|
|
38
|
+
return monkeyecxService?.get(`${url}/${i18n?.lang}.json`).pipe(take(1)).toPromise();
|
|
39
|
+
});
|
|
40
|
+
if (!services?.length)
|
|
41
|
+
return;
|
|
42
|
+
const externali18nData = await Promise.all(services);
|
|
43
|
+
externali18nData?.forEach((config) => {
|
|
44
|
+
const { lang } = config;
|
|
45
|
+
const { data } = config;
|
|
46
|
+
this.translateService.setTranslation('pt-BR', data, true);
|
|
47
|
+
this.translateService.setTranslation(lang, data, true);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
catch (err) {
|
|
51
|
+
// not to do
|
|
52
|
+
}
|
|
53
|
+
try {
|
|
54
|
+
const currenti18n = await monkeyecxService?.get(`${environment.localAssets}/i18n/${i18n?.lang}.json`).pipe(take(1)).toPromise();
|
|
55
|
+
const { lang } = currenti18n;
|
|
56
|
+
let { data } = currenti18n;
|
|
57
|
+
if (currentExternali18n) {
|
|
58
|
+
data = {
|
|
59
|
+
...data,
|
|
60
|
+
EXTERNAL: currentExternali18n
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
this.translateService.setTranslation('pt-BR', data, true);
|
|
64
|
+
this.translateService.setTranslation(lang, data, true);
|
|
65
|
+
this.translateService.use(lang);
|
|
66
|
+
}
|
|
67
|
+
catch (err) {
|
|
68
|
+
console.error(`i18n ${i18n?.lang} not found!`);
|
|
69
|
+
monkeyecxErrorConfigService.apply('i18n');
|
|
70
|
+
throwError(err);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
MonkeyEcxi18nConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxi18nConfigService, deps: [{ token: i1.MonkeyEcxService }, { token: i2.TranslateService }, { token: i3.MonkeyEcxCookieStorageService }, { token: i4.MonkeyEcxErrorConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
75
|
+
MonkeyEcxi18nConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxi18nConfigService, providedIn: 'root' });
|
|
76
|
+
__decorate([
|
|
77
|
+
MonkeyEcxCoreService({
|
|
78
|
+
httpResponse: {
|
|
79
|
+
httpCodeIgnore: [404]
|
|
80
|
+
},
|
|
81
|
+
requestInProgress: {
|
|
82
|
+
showProgress: false
|
|
83
|
+
}
|
|
84
|
+
})
|
|
85
|
+
], MonkeyEcxi18nConfigService.prototype, "apply", null);
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxi18nConfigService, decorators: [{
|
|
87
|
+
type: Injectable,
|
|
88
|
+
args: [{
|
|
89
|
+
providedIn: 'root'
|
|
90
|
+
}]
|
|
91
|
+
}], ctorParameters: function () { return [{ type: i1.MonkeyEcxService }, { type: i2.TranslateService }, { type: i3.MonkeyEcxCookieStorageService }, { type: i4.MonkeyEcxErrorConfigService }]; }, propDecorators: { apply: [] } });
|
|
92
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ua2V5ZWN4LWkxOG4tY29uZmlnLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb25rZXktZnJvbnQtY29yZS9zcmMvbGliL2NvcmUvc2VydmljZXMvY29uZmlnL21vbmtleWVjeC1pMThuLWNvbmZpZy5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSwrQkFBK0I7QUFDL0IsNENBQTRDO0FBQzVDLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFM0MsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUNsQyxPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFHdEMsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sdUNBQXVDLENBQUM7QUFDN0UsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sWUFBWSxDQUFDOzs7Ozs7QUFPckQsTUFBTSxPQUFPLDBCQUEyQixTQUFRLHVCQUF1QjtJQUNyRSxZQUNFLGdCQUFrQyxFQUMxQixnQkFBa0MsRUFDbEMsNkJBQTRELEVBQzVELDJCQUF3RDtRQUVoRSxLQUFLLENBQUMsZ0JBQWdCLENBQUMsQ0FBQztRQUpoQixxQkFBZ0IsR0FBaEIsZ0JBQWdCLENBQWtCO1FBQ2xDLGtDQUE2QixHQUE3Qiw2QkFBNkIsQ0FBK0I7UUFDNUQsZ0NBQTJCLEdBQTNCLDJCQUEyQixDQUE2QjtRQUloRSxJQUFJLENBQUMsZ0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ICB9O1xyXG4gICAgICB9XHJcbiAgICAgIHRoaXMudHJhbnNsYXRlU2VydmljZS5zZXRUcmFuc2xhdGlvbigncHQtQlInLCBkYXRhLCB0cnVlKTtcclxuICAgICAgdGhpcy50cmFuc2xhdGVTZXJ2aWNlLnNldFRyYW5zbGF0aW9uKGxhbmcsIGRhdGEsIHRydWUpO1xyXG4gICAgICB0aGlzLnRyYW5zbGF0ZVNlcnZpY2UudXNlKGxhbmcpO1xyXG4gICAgfSBjYXRjaCAoZXJyKSB7XHJcbiAgICAgIGNvbnNvbGUuZXJyb3IoYGkxOG4gJHtpMThuPy5sYW5nfSBub3QgZm91bmQhYCk7XHJcbiAgICAgIG1vbmtleWVjeEVycm9yQ29uZmlnU2VydmljZS5hcHBseSgnaTE4bicpO1xyXG4gICAgICB0aHJvd0Vycm9yKGVycik7XHJcbiAgICB9XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { datadogRum } from '@datadog/browser-rum';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class MonkeyEcxLogsConfigService {
|
|
5
|
-
apply(params, configBootstrap, environment, identifyCode) {
|
|
6
|
-
const { program, logs } = params;
|
|
7
|
-
if (logs?.enabled && environment.environment !== 'dev') {
|
|
8
|
-
datadogRum.init({
|
|
9
|
-
applicationId: environment?.dataDogApplicationId,
|
|
10
|
-
clientToken: environment?.dataDogClientToken,
|
|
11
|
-
service: program?.token,
|
|
12
|
-
site: 'datadoghq.com',
|
|
13
|
-
sampleRate: 100,
|
|
14
|
-
replaySampleRate: 100,
|
|
15
|
-
env: `monkey-front-${identifyCode}-${environment.environment}`,
|
|
16
|
-
version: configBootstrap?.version,
|
|
17
|
-
trackInteractions: true,
|
|
18
|
-
trackSessionAcrossSubdomains: true,
|
|
19
|
-
useSecureSessionCookie: true,
|
|
20
|
-
useCrossSiteSessionCookie: true
|
|
21
|
-
});
|
|
22
|
-
datadogRum.startSessionReplayRecording();
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
MonkeyEcxLogsConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
27
|
-
MonkeyEcxLogsConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
29
|
-
type: Injectable,
|
|
30
|
-
args: [{
|
|
31
|
-
providedIn: 'root'
|
|
32
|
-
}]
|
|
33
|
-
}] });
|
|
34
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { datadogRum } from '@datadog/browser-rum';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class MonkeyEcxLogsConfigService {
|
|
5
|
+
apply(params, configBootstrap, environment, identifyCode) {
|
|
6
|
+
const { program, logs } = params;
|
|
7
|
+
if (logs?.enabled && environment.environment !== 'dev') {
|
|
8
|
+
datadogRum.init({
|
|
9
|
+
applicationId: environment?.dataDogApplicationId,
|
|
10
|
+
clientToken: environment?.dataDogClientToken,
|
|
11
|
+
service: program?.token,
|
|
12
|
+
site: 'datadoghq.com',
|
|
13
|
+
sampleRate: 100,
|
|
14
|
+
replaySampleRate: 100,
|
|
15
|
+
env: `monkey-front-${identifyCode}-${environment.environment}`,
|
|
16
|
+
version: configBootstrap?.version,
|
|
17
|
+
trackInteractions: true,
|
|
18
|
+
trackSessionAcrossSubdomains: true,
|
|
19
|
+
useSecureSessionCookie: true,
|
|
20
|
+
useCrossSiteSessionCookie: true
|
|
21
|
+
});
|
|
22
|
+
datadogRum.startSessionReplayRecording();
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
MonkeyEcxLogsConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxLogsConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
27
|
+
MonkeyEcxLogsConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxLogsConfigService, providedIn: 'root' });
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxLogsConfigService, decorators: [{
|
|
29
|
+
type: Injectable,
|
|
30
|
+
args: [{
|
|
31
|
+
providedIn: 'root'
|
|
32
|
+
}]
|
|
33
|
+
}] });
|
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ua2V5ZWN4LWxvZ3MtY29uZmlnLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb25rZXktZnJvbnQtY29yZS9zcmMvbGliL2NvcmUvc2VydmljZXMvY29uZmlnL21vbmtleWVjeC1sb2dzLWNvbmZpZy5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLHNCQUFzQixDQUFDOztBQU1sRCxNQUFNLE9BQU8sMEJBQTBCO0lBQzlCLEtBQUssQ0FDVixNQUF1QixFQUN2QixlQUF5QyxFQUN6QyxXQUFnQixFQUNoQixZQUFvQjtRQUVwQixNQUFNLEVBQUUsT0FBTyxFQUFFLElBQUksRUFBRSxHQUFHLE1BQU0sQ0FBQztRQUNqQyxJQUFJLElBQUksRUFBRSxPQUFPLElBQUksV0FBVyxDQUFDLFdBQVcsS0FBSyxLQUFLLEVBQUU7WUFDdEQsVUFBVSxDQUFDLElBQUksQ0FBQ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m9zc1NpdGVTZXNzaW9uQ29va2llOiB0cnVlXHJcbiAgICAgIH0pO1xyXG4gICAgICBkYXRhZG9nUnVtLnN0YXJ0U2Vzc2lvblJlcGxheVJlY29yZGluZygpO1xyXG4gICAgfVxyXG4gIH1cclxufVxyXG4iXX0=
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { ClosedToMaintenanceComponent } from '../../../components/closed-to-maintenance/closed-to-maintenance.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "monkey-style-guide";
|
|
5
|
-
import * as i2 from "@angular/router";
|
|
6
|
-
export class MonkeyEcxMaintenanceConfigService {
|
|
7
|
-
constructor(modalService, router) {
|
|
8
|
-
this.modalService = modalService;
|
|
9
|
-
this.router = router;
|
|
10
|
-
// not to do
|
|
11
|
-
}
|
|
12
|
-
handleValidation(config) {
|
|
13
|
-
if (config.maintenance.closed) {
|
|
14
|
-
localStorage.clear();
|
|
15
|
-
this.router.navigate(['']);
|
|
16
|
-
setTimeout(() => {
|
|
17
|
-
this.modalService.open(ClosedToMaintenanceComponent, {
|
|
18
|
-
color: 'theme',
|
|
19
|
-
size: 'md',
|
|
20
|
-
data: config
|
|
21
|
-
});
|
|
22
|
-
}, 200);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
apply(config) {
|
|
26
|
-
this.handleValidation(config);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
MonkeyEcxMaintenanceConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
30
|
-
MonkeyEcxMaintenanceConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
32
|
-
type: Injectable,
|
|
33
|
-
args: [{
|
|
34
|
-
providedIn: 'root'
|
|
35
|
-
}]
|
|
36
|
-
}], ctorParameters: function () { return [{ type: i1.MonkeyStyleGuideModalService }, { type: i2.Router }]; } });
|
|
37
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { ClosedToMaintenanceComponent } from '../../../components/closed-to-maintenance/closed-to-maintenance.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "monkey-style-guide";
|
|
5
|
+
import * as i2 from "@angular/router";
|
|
6
|
+
export class MonkeyEcxMaintenanceConfigService {
|
|
7
|
+
constructor(modalService, router) {
|
|
8
|
+
this.modalService = modalService;
|
|
9
|
+
this.router = router;
|
|
10
|
+
// not to do
|
|
11
|
+
}
|
|
12
|
+
handleValidation(config) {
|
|
13
|
+
if (config.maintenance.closed) {
|
|
14
|
+
localStorage.clear();
|
|
15
|
+
this.router.navigate(['']);
|
|
16
|
+
setTimeout(() => {
|
|
17
|
+
this.modalService.open(ClosedToMaintenanceComponent, {
|
|
18
|
+
color: 'theme',
|
|
19
|
+
size: 'md',
|
|
20
|
+
data: config
|
|
21
|
+
});
|
|
22
|
+
}, 200);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
apply(config) {
|
|
26
|
+
this.handleValidation(config);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
MonkeyEcxMaintenanceConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxMaintenanceConfigService, deps: [{ token: i1.MonkeyStyleGuideModalService }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
30
|
+
MonkeyEcxMaintenanceConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxMaintenanceConfigService, providedIn: 'root' });
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxMaintenanceConfigService, decorators: [{
|
|
32
|
+
type: Injectable,
|
|
33
|
+
args: [{
|
|
34
|
+
providedIn: 'root'
|
|
35
|
+
}]
|
|
36
|
+
}], ctorParameters: function () { return [{ type: i1.MonkeyStyleGuideModalService }, { type: i2.Router }]; } });
|
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ua2V5ZWN4LW1haW50ZW5hbmNlLWNvbmZpZy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbW9ua2V5LWZyb250LWNvcmUvc3JjL2xpYi9jb3JlL3NlcnZpY2VzL2NvbmZpZy9tb25rZXllY3gtbWFpbnRlbmFuY2UtY29uZmlnLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUczQyxPQUFPLEVBQUUsNEJBQTRCLEVBQUUsTUFBTSwyRUFBMkUsQ0FBQzs7OztBQU16SCxNQUFNLE9BQU8saUNBQWlDO0lBQzVDLFlBQW9CLFlBQTBDLEVBQVUsTUFBYztRQUFsRSxpQkFBWSxHQUFaLFlBQVksQ0FBOEI7UUFBVSxXQUFNLEdBQU4sTUFBTSxDQUFRO1FBQ3BGLFlBQVk7SUFDZCxDQUFDO0lBRU8sZ0JBQWdCLENBQUMsTUFBZ0M7UUFDdkQsSUFBSSxNQUFNLENBQUMsV0FBVyxDQUFDLE1BQU0sRUFBRTtZQUM3QixZQUFZLENBQUMsS0FBSyxFQUFFLENBQUM7WUFDckIsSUFBSSxDQUFDLE1BQU0sQ0FBQyxRQUFRLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDO1lBRTNCLFVBQVUsQ0FBQyxHQUFHLEVBQUU7Z0JBQ2QsSUFBSSxDQUFDLFlBQVksQ0FBQyxJQUFJ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pY2Uge1xyXG4gIGNvbnN0cnVjdG9yKHByaXZhdGUgbW9kYWxTZXJ2aWNlOiBNb25rZXlTdHlsZUd1aWRlTW9kYWxTZXJ2aWNlLCBwcml2YXRlIHJvdXRlcjogUm91dGVyKSB7XHJcbiAgICAvLyBub3QgdG8gZG9cclxuICB9XHJcblxyXG4gIHByaXZhdGUgaGFuZGxlVmFsaWRhdGlvbihjb25maWc6IE1vbmtleUVjeENvbmZpZ0Jvb3RzdHJhcCkge1xyXG4gICAgaWYgKGNvbmZpZy5tYWludGVuYW5jZS5jbG9zZWQpIHtcclxuICAgICAgbG9jYWxTdG9yYWdlLmNsZWFyKCk7XHJcbiAgICAgIHRoaXMucm91dGVyLm5hdmlnYXRlKFsnJ10pO1xyXG5cclxuICAgICAgc2V0VGltZW91dCgoKSA9PiB7XHJcbiAgICAgICAgdGhpcy5tb2RhbFNlcnZpY2Uub3BlbihDbG9zZWRUb01haW50ZW5hbmNlQ29tcG9uZW50LCB7XHJcbiAgICAgICAgICBjb2xvcjogJ3RoZW1lJyxcclxuICAgICAgICAgIHNpemU6ICdtZCcsXHJcbiAgICAgICAgICBkYXRhOiBjb25maWdcclxuICAgICAgICB9KTtcclxuICAgICAgfSwgMjAwKTtcclxuICAgIH1cclxuICB9XHJcblxyXG4gIHB1YmxpYyBhcHBseShjb25maWc6IE1vbmtleUVjeENvbmZpZ0Jvb3RzdHJhcCkge1xyXG4gICAgdGhpcy5oYW5kbGVWYWxpZGF0aW9uKGNvbmZpZyk7XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
/* eslint-disable no-console */
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import { MonkeyEcxCommonsService } from '../commons';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@ngx-translate/core";
|
|
6
|
-
export class MonkeyEcxSecurityConsoleConfigService extends MonkeyEcxCommonsService {
|
|
7
|
-
constructor(translateService) {
|
|
8
|
-
super();
|
|
9
|
-
this.translateService = translateService;
|
|
10
|
-
this.geti18n(this.translateService, 'SERVICES.WARNING.CONSOLE');
|
|
11
|
-
}
|
|
12
|
-
handleValidation() {
|
|
13
|
-
this.__oni18nDataChanged$.subscribe(() => {
|
|
14
|
-
const { __i18n } = this;
|
|
15
|
-
const title = __i18n?.TITLE;
|
|
16
|
-
const message = __i18n?.MESSAGE;
|
|
17
|
-
if (title) {
|
|
18
|
-
console.log(`%c${title}`, 'background: #f2f061; color: #ff0000; font-size: x-large');
|
|
19
|
-
console.log(`%c${message}`, 'font-size: x-large');
|
|
20
|
-
console.log('%c __ __ _ ______ \n ' +
|
|
21
|
-
'| \\/ | ___ _ __ | | _____ _ _\\ \\ \\ \\ \n ' +
|
|
22
|
-
"| |\\/| |/ _ \\| '_ \\| |/ / _ \\ | | |\\ \\ \\ \\ \n " +
|
|
23
|
-
'| | | | (_) | | | | < __/ |_| |/ / / / \n ' +
|
|
24
|
-
'|_| |_|\\___/|_| |_|_|\\_\\___|\\__, /_/_/_/ \n ' +
|
|
25
|
-
' |___/ \n ' +
|
|
26
|
-
'Join us: https://monkeyecx.gupy.io', 'background: #1976d2; color: #fff');
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
apply() {
|
|
31
|
-
this.handleValidation();
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
MonkeyEcxSecurityConsoleConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
35
|
-
MonkeyEcxSecurityConsoleConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
37
|
-
type: Injectable,
|
|
38
|
-
args: [{
|
|
39
|
-
providedIn: 'root'
|
|
40
|
-
}]
|
|
41
|
-
}], ctorParameters: function () { return [{ type: i1.TranslateService }]; } });
|
|
42
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
/* eslint-disable no-console */
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import { MonkeyEcxCommonsService } from '../commons';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@ngx-translate/core";
|
|
6
|
+
export class MonkeyEcxSecurityConsoleConfigService extends MonkeyEcxCommonsService {
|
|
7
|
+
constructor(translateService) {
|
|
8
|
+
super();
|
|
9
|
+
this.translateService = translateService;
|
|
10
|
+
this.geti18n(this.translateService, 'SERVICES.WARNING.CONSOLE');
|
|
11
|
+
}
|
|
12
|
+
handleValidation() {
|
|
13
|
+
this.__oni18nDataChanged$.subscribe(() => {
|
|
14
|
+
const { __i18n } = this;
|
|
15
|
+
const title = __i18n?.TITLE;
|
|
16
|
+
const message = __i18n?.MESSAGE;
|
|
17
|
+
if (title) {
|
|
18
|
+
console.log(`%c${title}`, 'background: #f2f061; color: #ff0000; font-size: x-large');
|
|
19
|
+
console.log(`%c${message}`, 'font-size: x-large');
|
|
20
|
+
console.log('%c __ __ _ ______ \n ' +
|
|
21
|
+
'| \\/ | ___ _ __ | | _____ _ _\\ \\ \\ \\ \n ' +
|
|
22
|
+
"| |\\/| |/ _ \\| '_ \\| |/ / _ \\ | | |\\ \\ \\ \\ \n " +
|
|
23
|
+
'| | | | (_) | | | | < __/ |_| |/ / / / \n ' +
|
|
24
|
+
'|_| |_|\\___/|_| |_|_|\\_\\___|\\__, /_/_/_/ \n ' +
|
|
25
|
+
' |___/ \n ' +
|
|
26
|
+
'Join us: https://monkeyecx.gupy.io', 'background: #1976d2; color: #fff');
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
apply() {
|
|
31
|
+
this.handleValidation();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
MonkeyEcxSecurityConsoleConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxSecurityConsoleConfigService, deps: [{ token: i1.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
35
|
+
MonkeyEcxSecurityConsoleConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxSecurityConsoleConfigService, providedIn: 'root' });
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxSecurityConsoleConfigService, decorators: [{
|
|
37
|
+
type: Injectable,
|
|
38
|
+
args: [{
|
|
39
|
+
providedIn: 'root'
|
|
40
|
+
}]
|
|
41
|
+
}], ctorParameters: function () { return [{ type: i1.TranslateService }]; } });
|
|
42
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ua2V5ZWN4LXNlY3VyaXR5LWNvbnNvbGUtY29uZmlnLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb25rZXktZnJvbnQtY29yZS9zcmMvbGliL2NvcmUvc2VydmljZXMvY29uZmlnL21vbmtleWVjeC1zZWN1cml0eS1jb25zb2xlLWNvbmZpZy5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLCtCQUErQjtBQUMvQixPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRTNDLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLFlBQVksQ0FBQzs7O0FBS3JELE1BQU0sT0FBTyxxQ0FBc0MsU0FBUSx1QkFBdUI7SUFDaEYsWUFBb0IsZ0JBQWtDO1FBQ3BELEtBQUssRUFBRSxDQUFDO1FBRFUscUJBQWdCLEdBQWhCLGdCQUFnQixDQUFrQjtRQUdwRCxJQUFJLENBQUMsT0FBTyxDQUFDLElBQUks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Qtc2l6ZTogeC1sYXJnZScpO1xyXG4gICAgICAgIGNvbnNvbGUubG9nKFxyXG4gICAgICAgICAgJyVjICBfXyAgX18gICAgICAgICAgICAgXyAgICAgICAgICAgICBfX19fX18gICBcXG4gJyArXHJcbiAgICAgICAgICAnfCAgXFxcXC8gIHwgX19fICBfIF9fIHwgfCBfX19fXyBfICAgX1xcXFwgXFxcXCBcXFxcIFxcXFwgIFxcbiAnICtcclxuICAgICAgICAgIFwifCB8XFxcXC98IHwvIF8gXFxcXHwgJ18gXFxcXHwgfC8gLyBfIFxcXFwgfCB8IHxcXFxcIFxcXFwgXFxcXCBcXFxcIFxcbiBcIiArXHJcbiAgICAgICAgICAnfCB8ICB8IHwgKF8pIHwgfCB8IHwgICA8ICBfXy8gfF98IHwvIC8gLyAvIFxcbiAnICtcclxuICAgICAgICAgICd8X3wgIHxffFxcXFxfX18vfF98IHxffF98XFxcXF9cXFxcX19ffFxcXFxfXywgL18vXy9fLyAgXFxuICcgK1xyXG4gICAgICAgICAgJyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfF9fXy8gICAgICAgICBcXG4gJyArXHJcbiAgICAgICAgICAnSm9pbiB1czogaHR0cHM6Ly9tb25rZXllY3guZ3VweS5pbycsICdiYWNrZ3JvdW5kOiAjMTk3NmQyOyBjb2xvcjogI2ZmZidcclxuICAgICAgICApO1xyXG4gICAgICB9XHJcbiAgICB9KTtcclxuICB9XHJcblxyXG4gIHB1YmxpYyBhcHBseSgpIHtcclxuICAgIHRoaXMuaGFuZGxlVmFsaWRhdGlvbigpO1xyXG4gIH1cclxufVxyXG4iXX0=
|