monkey-front-core 0.0.468 → 0.0.469
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 +35 -35
- 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 +1 -1
- 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-interface.mjs +1 -1
- 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-pagination.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-resolver.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-store.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-support-options.mjs +2 -2
- package/esm2020/lib/core/interfaces/monkeyecx-token-credentials.mjs +1 -1
- 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 +3 -3
- package/esm2020/lib/core/model/monkeyecx-links.model.mjs +8 -8
- 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 +78 -78
- package/esm2020/lib/core/services/commons/index.mjs +3 -3
- package/esm2020/lib/core/services/commons/monkeyecx-commons-resolve.service.mjs +127 -126
- package/esm2020/lib/core/services/commons/monkeyecx-commons.service.mjs +362 -362
- 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 +107 -107
- 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 +50 -50
- package/esm2020/lib/core/services/config/monkeyecx-i18n-config.service.mjs +152 -152
- 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 +47 -47
- 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 +26 -26
- 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/services/store/index.mjs +3 -3
- package/esm2020/lib/core/services/store/monkeyecx-store.actions.mjs +25 -25
- package/esm2020/lib/core/services/store/monkeyecx-store.selector.mjs +75 -75
- package/esm2020/lib/core/services/store/monkeyecx-store.service.mjs +189 -189
- 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 +267 -267
- package/esm2020/lib/core/utils/validate-utils.mjs +205 -205
- package/esm2020/lib/core/utils/validators.mjs +268 -268
- 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 +5963 -5962
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +6021 -6020
- 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 +34 -34
- 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-interface.d.ts +11 -11
- 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-pagination.d.ts +26 -26
- 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-resolver.d.ts +39 -39
- 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-store.d.ts +35 -35
- package/lib/core/interfaces/monkeyecx-support-options.d.ts +4 -4
- package/lib/core/interfaces/monkeyecx-token-credentials.d.ts +21 -21
- 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 +2 -2
- package/lib/core/model/monkeyecx-links.model.d.ts +4 -4
- 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 +35 -35
- package/lib/core/services/commons/index.d.ts +2 -2
- package/lib/core/services/commons/monkeyecx-commons-resolve.service.d.ts +60 -60
- package/lib/core/services/commons/monkeyecx-commons.service.d.ts +120 -120
- 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 +8 -8
- package/lib/core/services/config/monkeyecx-i18n-config.service.d.ts +18 -18
- 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 +12 -12
- 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 +25 -25
- 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/services/store/index.d.ts +3 -3
- package/lib/core/services/store/monkeyecx-store.actions.d.ts +56 -56
- package/lib/core/services/store/monkeyecx-store.selector.d.ts +31 -31
- package/lib/core/services/store/monkeyecx-store.service.d.ts +50 -50
- 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 +26 -26
- package/lib/core/utils/validate-utils.d.ts +66 -66
- package/lib/core/utils/validators.d.ts +36 -36
- 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.469.tgz +0 -0
- package/monkey-front-core.d.ts +5 -5
- package/package.json +1 -1
- package/public-api.d.ts +4 -4
- package/monkey-front-core-0.0.468.tgz +0 -0
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { first } from 'rxjs/operators';
|
|
3
|
-
import { CurrencyConfigComponent } from '../../../components/currency-config';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "monkey-style-guide";
|
|
6
|
-
import * as i2 from "../storage";
|
|
7
|
-
import * as i3 from "./monkeyecx-config.service";
|
|
8
|
-
export class MonkeyEcxCurrencyConfigService {
|
|
9
|
-
constructor(modalService, cookieService, configService) {
|
|
10
|
-
this.modalService = modalService;
|
|
11
|
-
this.cookieService = cookieService;
|
|
12
|
-
this.configService = configService;
|
|
13
|
-
// not to do
|
|
14
|
-
}
|
|
15
|
-
onHandleCurrencyConfig({ currency, environment }) {
|
|
16
|
-
const { cookieService } = this;
|
|
17
|
-
const settings = cookieService.getCookie('monkey-app-settings');
|
|
18
|
-
const locale = cookieService.getCookie('monkey-app-locale');
|
|
19
|
-
if (!settings) {
|
|
20
|
-
cookieService.setCookie('monkey-app-settings', btoa(JSON.stringify({
|
|
21
|
-
showedCurrencyConfig: true
|
|
22
|
-
})), environment);
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
const decoded = JSON.parse(atob(settings));
|
|
26
|
-
cookieService.setCookie('monkey-app-settings', btoa(JSON.stringify({
|
|
27
|
-
...decoded,
|
|
28
|
-
showedCurrencyConfig: true
|
|
29
|
-
})), environment);
|
|
30
|
-
}
|
|
31
|
-
if (locale) {
|
|
32
|
-
const decoded = JSON.parse(atob(locale));
|
|
33
|
-
cookieService.setCookie('monkey-app-locale', btoa(JSON.stringify({
|
|
34
|
-
...decoded,
|
|
35
|
-
currency
|
|
36
|
-
})), environment);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
async onShowCurrencyConfig(environment, force = false) {
|
|
40
|
-
const { cookieService } = this;
|
|
41
|
-
const settings = cookieService.getCookie('monkey-app-settings');
|
|
42
|
-
let showed = false;
|
|
43
|
-
if (settings) {
|
|
44
|
-
const decoded = JSON.parse(atob(settings));
|
|
45
|
-
showed = decoded.showedCurrencyConfig;
|
|
46
|
-
}
|
|
47
|
-
const config = await this.configService
|
|
48
|
-
.config()
|
|
49
|
-
.pipe(first((val) => {
|
|
50
|
-
return !!val && JSON.stringify(val) !== '{}';
|
|
51
|
-
}))
|
|
52
|
-
.toPromise();
|
|
53
|
-
const currency = config?.i18n?.currency;
|
|
54
|
-
const currencies = config?.i18n?.currencies;
|
|
55
|
-
if ((!showed || force) && currencies?.length) {
|
|
56
|
-
this.modalService.open(CurrencyConfigComponent, {
|
|
57
|
-
color: 'theme',
|
|
58
|
-
size: 'md',
|
|
59
|
-
data: {
|
|
60
|
-
currency,
|
|
61
|
-
currencies,
|
|
62
|
-
callback: (currency = 'BRL') => {
|
|
63
|
-
this.onHandleCurrencyConfig({
|
|
64
|
-
currency,
|
|
65
|
-
environment
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
apply(environment, force = false) {
|
|
73
|
-
this.onShowCurrencyConfig(environment, force);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
MonkeyEcxCurrencyConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCurrencyConfigService, deps: [{ token: i1.MonkeyStyleGuideModalFixedService }, { token: i2.MonkeyEcxCookieStorageService }, { token: i3.MonkeyEcxConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
77
|
-
MonkeyEcxCurrencyConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCurrencyConfigService, providedIn: 'root' });
|
|
78
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCurrencyConfigService, decorators: [{
|
|
79
|
-
type: Injectable,
|
|
80
|
-
args: [{
|
|
81
|
-
providedIn: 'root'
|
|
82
|
-
}]
|
|
83
|
-
}], ctorParameters: function () { return [{ type: i1.MonkeyStyleGuideModalFixedService }, { type: i2.MonkeyEcxCookieStorageService }, { type: i3.MonkeyEcxConfigService }]; } });
|
|
84
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { first } from 'rxjs/operators';
|
|
3
|
+
import { CurrencyConfigComponent } from '../../../components/currency-config';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "monkey-style-guide";
|
|
6
|
+
import * as i2 from "../storage";
|
|
7
|
+
import * as i3 from "./monkeyecx-config.service";
|
|
8
|
+
export class MonkeyEcxCurrencyConfigService {
|
|
9
|
+
constructor(modalService, cookieService, configService) {
|
|
10
|
+
this.modalService = modalService;
|
|
11
|
+
this.cookieService = cookieService;
|
|
12
|
+
this.configService = configService;
|
|
13
|
+
// not to do
|
|
14
|
+
}
|
|
15
|
+
onHandleCurrencyConfig({ currency, environment }) {
|
|
16
|
+
const { cookieService } = this;
|
|
17
|
+
const settings = cookieService.getCookie('monkey-app-settings');
|
|
18
|
+
const locale = cookieService.getCookie('monkey-app-locale');
|
|
19
|
+
if (!settings) {
|
|
20
|
+
cookieService.setCookie('monkey-app-settings', btoa(JSON.stringify({
|
|
21
|
+
showedCurrencyConfig: true
|
|
22
|
+
})), environment);
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
const decoded = JSON.parse(atob(settings));
|
|
26
|
+
cookieService.setCookie('monkey-app-settings', btoa(JSON.stringify({
|
|
27
|
+
...decoded,
|
|
28
|
+
showedCurrencyConfig: true
|
|
29
|
+
})), environment);
|
|
30
|
+
}
|
|
31
|
+
if (locale) {
|
|
32
|
+
const decoded = JSON.parse(atob(locale));
|
|
33
|
+
cookieService.setCookie('monkey-app-locale', btoa(JSON.stringify({
|
|
34
|
+
...decoded,
|
|
35
|
+
currency
|
|
36
|
+
})), environment);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
async onShowCurrencyConfig(environment, force = false) {
|
|
40
|
+
const { cookieService } = this;
|
|
41
|
+
const settings = cookieService.getCookie('monkey-app-settings');
|
|
42
|
+
let showed = false;
|
|
43
|
+
if (settings) {
|
|
44
|
+
const decoded = JSON.parse(atob(settings));
|
|
45
|
+
showed = decoded.showedCurrencyConfig;
|
|
46
|
+
}
|
|
47
|
+
const config = await this.configService
|
|
48
|
+
.config()
|
|
49
|
+
.pipe(first((val) => {
|
|
50
|
+
return !!val && JSON.stringify(val) !== '{}';
|
|
51
|
+
}))
|
|
52
|
+
.toPromise();
|
|
53
|
+
const currency = config?.i18n?.currency;
|
|
54
|
+
const currencies = config?.i18n?.currencies;
|
|
55
|
+
if ((!showed || force) && currencies?.length) {
|
|
56
|
+
this.modalService.open(CurrencyConfigComponent, {
|
|
57
|
+
color: 'theme',
|
|
58
|
+
size: 'md',
|
|
59
|
+
data: {
|
|
60
|
+
currency,
|
|
61
|
+
currencies,
|
|
62
|
+
callback: (currency = 'BRL') => {
|
|
63
|
+
this.onHandleCurrencyConfig({
|
|
64
|
+
currency,
|
|
65
|
+
environment
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
apply(environment, force = false) {
|
|
73
|
+
this.onShowCurrencyConfig(environment, force);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
MonkeyEcxCurrencyConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCurrencyConfigService, deps: [{ token: i1.MonkeyStyleGuideModalFixedService }, { token: i2.MonkeyEcxCookieStorageService }, { token: i3.MonkeyEcxConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
77
|
+
MonkeyEcxCurrencyConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCurrencyConfigService, providedIn: 'root' });
|
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCurrencyConfigService, decorators: [{
|
|
79
|
+
type: Injectable,
|
|
80
|
+
args: [{
|
|
81
|
+
providedIn: 'root'
|
|
82
|
+
}]
|
|
83
|
+
}], ctorParameters: function () { return [{ type: i1.MonkeyStyleGuideModalFixedService }, { type: i2.MonkeyEcxCookieStorageService }, { type: i3.MonkeyEcxConfigService }]; } });
|
|
84
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ua2V5ZWN4LWN1cnJlbmN5LWNvbmZpZy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbW9ua2V5LWZyb250LWNvcmUvc3JjL2xpYi9jb3JlL3NlcnZpY2VzL2NvbmZpZy9tb25rZXllY3gtY3VycmVuY3ktY29uZmlnLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUUzQyxPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFJdkMsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0scUNBQXFDLENBQUM7Ozs7O0FBSzlFLE1BQU0sT0FBTyw4QkFBOEI7SUFDekMsWUFDVSxZQUErQyxFQUMvQyxhQUE0QyxFQUM1QyxhQUFxQztRQUZyQyxpQkFBWSxHQUFaLFlBQVksQ0FBbUM7UUFDL0Msa0JBQWEsR0FBYixhQUFhLENBQStCO1FBQzVDLGtCQUFhLEdBQWIsYUFBYSxDQUF3QjtRQUU3QyxZQUFZO0lBQ2QsQ0FBQztJQUVPLHNCQUFzQixDQUFDLEVBQUUsUUFBUSxFQUFFLFdBQVcsRUFBRTtRQUN0RCxNQUFNLEVBQUUsYUFB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clxuICAgICAgICAgIH0pXHJcbiAgICAgICAgKSxcclxuICAgICAgICBlbnZpcm9ubWVudFxyXG4gICAgICApO1xyXG4gICAgfSBlbHNlIHtcclxuICAgICAgY29uc3QgZGVjb2RlZCA9IEpTT04ucGFyc2UoYXRvYihzZXR0aW5ncykpO1xyXG5cclxuICAgICAgY29va2llU2VydmljZS5zZXRDb29raWUoXHJcbiAgICAgICAgJ21vbmtleS1hcHAtc2V0dGluZ3MnLFxyXG4gICAgICAgIGJ0b2EoXHJcbiAgICAgICAgICBKU09OLnN0cmluZ2lmeSh7XHJcbiAgICAgICAgICAgIC4uLmRlY29kZWQsXHJcbiAgICAgICAgICAgIHNob3dlZEN1cnJlbmN5Q29uZmlnOiB0cnVlXHJcbiAgICAgICAgICB9KVxyXG4gICAgICAgICksXHJcbiAgICAgICAgZW52aXJvbm1lbnRcclxuICAgICAgKTtcclxuICAgIH1cclxuXHJcbiAgICBpZiAobG9jYWxlKSB7XHJcbiAgICAgIGNvbnN0IGRlY29kZWQgPSBKU09OLnBhcnNlKGF0b2IobG9jYWxlKSk7XHJcblxyXG4gICAgICBjb29raWVTZXJ2aWNlLnNldENvb2tpZShcclxuICAgICAgICAnbW9ua2V5LWFwcC1sb2NhbGUnLFxyXG4gICAgICAgIGJ0b2EoXHJcbiAgICAgICAgICBKU09OLnN0cmluZ2lmeSh7XHJcbiAgICAgICAgICAgIC4uLmRlY29kZWQsXHJcbiAgICAgICAgICAgIGN1cnJlbmN5XHJcbiAgICAgICAgICB9KVxyXG4gICAgICAgICksXHJcbiAgICAgICAgZW52aXJvbm1lbnRcclxuICAgICAgKTtcclxuICAgIH1cclxuICB9XHJcblxyXG4gIHByaXZhdGUgYXN5bmMgb25TaG93Q3VycmVuY3lDb25maWcoZW52aXJvbm1lbnQ6IGFueSwgZm9yY2UgPSBmYWxzZSkge1xyXG4gICAgY29uc3QgeyBjb29raWVTZXJ2aWNlIH0gPSB0aGlzO1xyXG4gICAgY29uc3Qgc2V0dGluZ3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ICdCUkwnKSA9PiB7XHJcbiAgICAgICAgICAgIHRoaXMub25IYW5kbGVDdXJyZW5jeUNvbmZpZyh7XHJcbiAgICAgICAgICAgICAgY3VycmVuY3ksXHJcbiAgICAgICAgICAgICAgZW52aXJvbm1lbnRcclxuICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgICB9XHJcbiAgICAgICAgfVxyXG4gICAgICB9KTtcclxuICAgIH1cclxuICB9XHJcblxyXG4gIHB1YmxpYyBhcHBseShlbnZpcm9ubWVudDogYW55LCBmb3JjZSA9IGZhbHNlKSB7XHJcbiAgICB0aGlzLm9uU2hvd0N1cnJlbmN5Q29uZmlnKGVudmlyb25tZW50LCBmb3JjZSk7XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
let window;
|
|
4
|
-
const text = {
|
|
5
|
-
i18n: {
|
|
6
|
-
title: 'We have an quick update for you',
|
|
7
|
-
message: 'Click anywhere here to reload your locale',
|
|
8
|
-
},
|
|
9
|
-
theme: {
|
|
10
|
-
title: 'We have an quick update for you',
|
|
11
|
-
message: 'Click anywhere here to reload your theme',
|
|
12
|
-
},
|
|
13
|
-
};
|
|
14
|
-
export class MonkeyEcxErrorConfigService {
|
|
15
|
-
constructor() {
|
|
16
|
-
// not to do
|
|
17
|
-
}
|
|
18
|
-
enableSupport() {
|
|
19
|
-
window.zE('webWidget', 'updateSettings', {
|
|
20
|
-
webWidget: {
|
|
21
|
-
color: {
|
|
22
|
-
theme: '#0273E8',
|
|
23
|
-
launcherText: '#fff',
|
|
24
|
-
header: '#0273E8',
|
|
25
|
-
button: '#0273E8',
|
|
26
|
-
},
|
|
27
|
-
zIndex: 99,
|
|
28
|
-
offset: {
|
|
29
|
-
horizontal: '1px',
|
|
30
|
-
vertical: '20px',
|
|
31
|
-
},
|
|
32
|
-
mobile: {
|
|
33
|
-
labelVisible: true,
|
|
34
|
-
},
|
|
35
|
-
launcher: {
|
|
36
|
-
mobile: {
|
|
37
|
-
labelVisible: true,
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
});
|
|
42
|
-
window.zE('webWidget', 'setLocale', 'en-US');
|
|
43
|
-
window.zE('webWidget', 'show');
|
|
44
|
-
}
|
|
45
|
-
apply(type) {
|
|
46
|
-
const { title, message } = text?.[type];
|
|
47
|
-
const element = document.createElement('div');
|
|
48
|
-
element.id = 'monkeyecx-information';
|
|
49
|
-
const elementImg = document.createElement('img');
|
|
50
|
-
elementImg.width = 128;
|
|
51
|
-
elementImg.src = 'assets/images/monkey.svg';
|
|
52
|
-
elementImg.style.marginBottom = '50px';
|
|
53
|
-
const elementTitle = document.createElement('span');
|
|
54
|
-
elementTitle.id = 'title';
|
|
55
|
-
elementTitle.innerText = title;
|
|
56
|
-
elementTitle.style.marginBottom = '20px';
|
|
57
|
-
const elementMessage = document.createElement('span');
|
|
58
|
-
elementMessage.id = 'message';
|
|
59
|
-
elementMessage.innerText = message;
|
|
60
|
-
elementMessage.style.marginBottom = '20px';
|
|
61
|
-
const elementChat = document.createElement('span');
|
|
62
|
-
elementChat.id = 'message';
|
|
63
|
-
elementChat.innerText =
|
|
64
|
-
"If you're having trouble to update, please use the support icon bellow";
|
|
65
|
-
element.appendChild(elementImg);
|
|
66
|
-
element.appendChild(elementTitle);
|
|
67
|
-
element.appendChild(elementMessage);
|
|
68
|
-
element.appendChild(elementChat);
|
|
69
|
-
element.addEventListener('click', () => {
|
|
70
|
-
document.location.reload();
|
|
71
|
-
});
|
|
72
|
-
document.body.appendChild(element);
|
|
73
|
-
document.body.getElementsByTagName('app-root')[0].remove();
|
|
74
|
-
this.enableSupport();
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
MonkeyEcxErrorConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
78
|
-
MonkeyEcxErrorConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorConfigService, providedIn: 'root' });
|
|
79
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorConfigService, decorators: [{
|
|
80
|
-
type: Injectable,
|
|
81
|
-
args: [{
|
|
82
|
-
providedIn: 'root',
|
|
83
|
-
}]
|
|
84
|
-
}], ctorParameters: function () { return []; } });
|
|
85
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
let window;
|
|
4
|
+
const text = {
|
|
5
|
+
i18n: {
|
|
6
|
+
title: 'We have an quick update for you',
|
|
7
|
+
message: 'Click anywhere here to reload your locale',
|
|
8
|
+
},
|
|
9
|
+
theme: {
|
|
10
|
+
title: 'We have an quick update for you',
|
|
11
|
+
message: 'Click anywhere here to reload your theme',
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
export class MonkeyEcxErrorConfigService {
|
|
15
|
+
constructor() {
|
|
16
|
+
// not to do
|
|
17
|
+
}
|
|
18
|
+
enableSupport() {
|
|
19
|
+
window.zE('webWidget', 'updateSettings', {
|
|
20
|
+
webWidget: {
|
|
21
|
+
color: {
|
|
22
|
+
theme: '#0273E8',
|
|
23
|
+
launcherText: '#fff',
|
|
24
|
+
header: '#0273E8',
|
|
25
|
+
button: '#0273E8',
|
|
26
|
+
},
|
|
27
|
+
zIndex: 99,
|
|
28
|
+
offset: {
|
|
29
|
+
horizontal: '1px',
|
|
30
|
+
vertical: '20px',
|
|
31
|
+
},
|
|
32
|
+
mobile: {
|
|
33
|
+
labelVisible: true,
|
|
34
|
+
},
|
|
35
|
+
launcher: {
|
|
36
|
+
mobile: {
|
|
37
|
+
labelVisible: true,
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
window.zE('webWidget', 'setLocale', 'en-US');
|
|
43
|
+
window.zE('webWidget', 'show');
|
|
44
|
+
}
|
|
45
|
+
apply(type) {
|
|
46
|
+
const { title, message } = text?.[type];
|
|
47
|
+
const element = document.createElement('div');
|
|
48
|
+
element.id = 'monkeyecx-information';
|
|
49
|
+
const elementImg = document.createElement('img');
|
|
50
|
+
elementImg.width = 128;
|
|
51
|
+
elementImg.src = 'assets/images/monkey.svg';
|
|
52
|
+
elementImg.style.marginBottom = '50px';
|
|
53
|
+
const elementTitle = document.createElement('span');
|
|
54
|
+
elementTitle.id = 'title';
|
|
55
|
+
elementTitle.innerText = title;
|
|
56
|
+
elementTitle.style.marginBottom = '20px';
|
|
57
|
+
const elementMessage = document.createElement('span');
|
|
58
|
+
elementMessage.id = 'message';
|
|
59
|
+
elementMessage.innerText = message;
|
|
60
|
+
elementMessage.style.marginBottom = '20px';
|
|
61
|
+
const elementChat = document.createElement('span');
|
|
62
|
+
elementChat.id = 'message';
|
|
63
|
+
elementChat.innerText =
|
|
64
|
+
"If you're having trouble to update, please use the support icon bellow";
|
|
65
|
+
element.appendChild(elementImg);
|
|
66
|
+
element.appendChild(elementTitle);
|
|
67
|
+
element.appendChild(elementMessage);
|
|
68
|
+
element.appendChild(elementChat);
|
|
69
|
+
element.addEventListener('click', () => {
|
|
70
|
+
document.location.reload();
|
|
71
|
+
});
|
|
72
|
+
document.body.appendChild(element);
|
|
73
|
+
document.body.getElementsByTagName('app-root')[0].remove();
|
|
74
|
+
this.enableSupport();
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
MonkeyEcxErrorConfigService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
78
|
+
MonkeyEcxErrorConfigService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorConfigService, providedIn: 'root' });
|
|
79
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxErrorConfigService, decorators: [{
|
|
80
|
+
type: Injectable,
|
|
81
|
+
args: [{
|
|
82
|
+
providedIn: 'root',
|
|
83
|
+
}]
|
|
84
|
+
}], ctorParameters: function () { return []; } });
|
|
85
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ua2V5ZWN4LWVycm9yLWNvbmZpZy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbW9ua2V5LWZyb250LWNvcmUvc3JjL2xpYi9jb3JlL3NlcnZpY2VzL2NvbmZpZy9tb25rZXllY3gtZXJyb3ItY29uZmlnLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFFM0MsSUFBSSxNQUFXLENBQUM7QUFFaEIsTUFBTSxJQUFJLEdBQVE7SUFDaEIsSUFBSSxFQUFFO1FBQ0osS0FBSyxFQUFFLGlDQUFpQztRQUN4QyxPQUFPLEVBQUUsMkNBQTJDO0tBQ3JEO0lBQ0QsS0FBSyxFQUFFO1FBQ0wsS0FBSyxFQUFFLGlDQUFpQztRQUN4QyxPQUFPLEVBQUUsMENBQTBDO0tBQ3BEO0NBQ0YsQ0FBQztBQUtGLE1BQU0sT0FBTywyQkFBMkI7SUFDdEM7UUFDRSxZQUFZO0lBQ2QsQ0FBQztJQUVPLGFBQWE7UUFDbkIsTUFBTSxDQUFDLEVBQUUsQ0FBQyxXQUFXLEVBQUUsZ0JBQWdCLEVBQUU7WUFDdkMsU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clxuICAgIC8vIG5vdCB0byBkb1xyXG4gIH1cclxuXHJcbiAgcHJpdmF0ZSBlbmFibGVTdXBwb3J0KCkge1xyXG4gICAgd2luZG93LnpFKCd3ZWJXaWRnZXQnLCAndXBkYXRlU2V0dGluZ3MnLCB7XHJcbiAgICAgIHdlYldpZGdldDoge1xyXG4gICAgICAgIGNvbG9yOiB7XHJcbiAgICAgICAgICB0aGVtZTogJyMwMjczRTgnLFxyXG4gICAgICAgICAgbGF1bmNoZXJUZXh0OiAnI2ZmZicsXHJcbiAgICAgICAgICBoZWFkZXI6ICcjMDI3M0U4JyxcclxuICAgICAgICAgIGJ1dHRvbjogJyMwMjczRTgnLFxyXG4gICAgICAgIH0sXHJcbiAgICAgICAgekluZGV4OiA5OSxcclxuICAgICAgICBvZmZzZXQ6IHtcclxuICAgICAgICAgIGhvcml6b250YWw6ICcxcHgnLFxyXG4gICAgICAgICAgdmVydGljYWw6ICcyMHB4JyxcclxuICAgICAgICB9LFxyXG4gICAgICAgIG1vYmlsZToge1xyXG4gICAgICAgICAgbGFiZWxWaXNpYmxlOiB0cnVlLFxyXG4gICAgICAgIH0sXHJcbiAgICAgICAgbGF1bmNoZXI6IHtcclxuICAgICAgICAgIG1vYmlsZToge1xyXG4gICAgICAgICAgICBsYWJlbFZpc2libGU6IHRydWUsXHJcbiAgICAgICAgICB9LFxyXG4gICAgICAgIH0sXHJcbiAgICAgIH0sXHJcbiAgICB9KTtcclxuICAgIHdpbmRvdy56RSgnd2ViV2lkZ2V0JywgJ3NldExvY2FsZScsICdlbi1VUycpO1xyXG4gICAgd2luZG93LnpFKCd3ZWJXaWRnZXQnLCAnc2hvdycpO1xyXG4gIH1cclxuXHJcbiAgcHVibGljIGFwcGx5KHR5cGU6IHN0cmluZykge1xyXG4gICAgY29uc3QgeyB0aXRsZSwgbWVzc2FnZSB9ID0gdGV4dD8uW3R5cGVdO1xyXG5cclxuICAgIGNvbnN0IGVsZW1lbnQgPSBkb2N1bWVudC5jcmVhdGV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sZWFzZSB1c2UgdGhlIHN1cHBvcnQgaWNvbiBiZWxsb3dcIjtcclxuXHJcbiAgICBlbGVtZW50LmFwcGVuZENoaWxkKGVsZW1lbnRJbWcpO1xyXG4gICAgZWxlbWVudC5hcHBlbmRDaGlsZChlbGVtZW50VGl0bGUpO1xyXG4gICAgZWxlbWVudC5hcHBlbmRDaGlsZChlbGVtZW50TWVzc2FnZSk7XHJcbiAgICBlbGVtZW50LmFwcGVuZENoaWxkKGVsZW1lbnRDaGF0KTtcclxuXHJcbiAgICBlbGVtZW50LmFkZEV2ZW50TGlzdGVuZXIoJ2NsaWNrJywgKCkgPT4ge1xyXG4gICAgICBkb2N1bWVudC5sb2NhdGlvbi5yZWxvYWQoKTtcclxuICAgIH0pO1xyXG5cclxuICAgIGRvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQoZWxlbWVudCk7XHJcblxyXG4gICAgZG9jdW1lbnQuYm9keS5nZXRFbGVtZW50c0J5VGFnTmFtZSgnYXBwLXJvb3QnKVswXS5yZW1vdmUoKTtcclxuICAgIHRoaXMuZW5hYmxlU3VwcG9ydCgpO1xyXG4gIH1cclxufVxyXG4iXX0=
|
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
import { initialize } from 'launchdarkly-js-client-sdk';
|
|
4
|
-
import { MonkeyUtils } from 'monkey-style-guide';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export class MonkeyEcxFeatureToggleService {
|
|
7
|
-
constructor() {
|
|
8
|
-
this.flagSubject$ = new BehaviorSubject(null);
|
|
9
|
-
this.flags = undefined;
|
|
10
|
-
this.ldClient = undefined;
|
|
11
|
-
// not to do
|
|
12
|
-
}
|
|
13
|
-
getAllFlags() {
|
|
14
|
-
if (!this)
|
|
15
|
-
return;
|
|
16
|
-
this.flags = this.ldClient?.allFlags();
|
|
17
|
-
this.flagSubject$.next(true);
|
|
18
|
-
}
|
|
19
|
-
identify(config, environment) {
|
|
20
|
-
if (config) {
|
|
21
|
-
const email = 'monkey@monkey.exchange';
|
|
22
|
-
const user = {
|
|
23
|
-
email,
|
|
24
|
-
kind: 'user',
|
|
25
|
-
key: `${config.program?.token}#${email}`
|
|
26
|
-
};
|
|
27
|
-
if (!this.ldClient) {
|
|
28
|
-
this.ldClient = initialize(environment.launchDarklyClientSideID, user, {
|
|
29
|
-
streaming: true,
|
|
30
|
-
disableSyncEventPost: true,
|
|
31
|
-
sendEvents: false,
|
|
32
|
-
diagnosticOptOut: true,
|
|
33
|
-
logger: {
|
|
34
|
-
debug: () => { },
|
|
35
|
-
warn: () => { },
|
|
36
|
-
info: () => { },
|
|
37
|
-
error: (args) => {
|
|
38
|
-
console.log('Monkey Client => ', args);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
this.ldClient.on('change', this.getAllFlags.bind(this));
|
|
43
|
-
this.ldClient.on('ready', this.getAllFlags.bind(this));
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
this.ldClient.identify(user, undefined, this.getAllFlags);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
apply(configSubject$, environment) {
|
|
51
|
-
if (environment.launchDarklyClientSideID) {
|
|
52
|
-
configSubject$.subscribe((config) => {
|
|
53
|
-
this.identify(config, environment);
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
this.flagSubject$.next(true);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
get onFlags() {
|
|
61
|
-
return this.flagSubject$.asObservable();
|
|
62
|
-
}
|
|
63
|
-
getFlag(flag) {
|
|
64
|
-
const flagValue = this.flags?.[flag];
|
|
65
|
-
return MonkeyUtils.persistNullEmptyUndefined(flagValue) ? flagValue : null;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
MonkeyEcxFeatureToggleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureToggleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
69
|
-
MonkeyEcxFeatureToggleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureToggleService, providedIn: 'root' });
|
|
70
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureToggleService, decorators: [{
|
|
71
|
-
type: Injectable,
|
|
72
|
-
args: [{
|
|
73
|
-
providedIn: 'root'
|
|
74
|
-
}]
|
|
75
|
-
}], ctorParameters: function () { return []; } });
|
|
76
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import { initialize } from 'launchdarkly-js-client-sdk';
|
|
4
|
+
import { MonkeyUtils } from 'monkey-style-guide';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export class MonkeyEcxFeatureToggleService {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.flagSubject$ = new BehaviorSubject(null);
|
|
9
|
+
this.flags = undefined;
|
|
10
|
+
this.ldClient = undefined;
|
|
11
|
+
// not to do
|
|
12
|
+
}
|
|
13
|
+
getAllFlags() {
|
|
14
|
+
if (!this)
|
|
15
|
+
return;
|
|
16
|
+
this.flags = this.ldClient?.allFlags();
|
|
17
|
+
this.flagSubject$.next(true);
|
|
18
|
+
}
|
|
19
|
+
identify(config, environment) {
|
|
20
|
+
if (config) {
|
|
21
|
+
const email = 'monkey@monkey.exchange';
|
|
22
|
+
const user = {
|
|
23
|
+
email,
|
|
24
|
+
kind: 'user',
|
|
25
|
+
key: `${config.program?.token}#${email}`
|
|
26
|
+
};
|
|
27
|
+
if (!this.ldClient) {
|
|
28
|
+
this.ldClient = initialize(environment.launchDarklyClientSideID, user, {
|
|
29
|
+
streaming: true,
|
|
30
|
+
disableSyncEventPost: true,
|
|
31
|
+
sendEvents: false,
|
|
32
|
+
diagnosticOptOut: true,
|
|
33
|
+
logger: {
|
|
34
|
+
debug: () => { },
|
|
35
|
+
warn: () => { },
|
|
36
|
+
info: () => { },
|
|
37
|
+
error: (args) => {
|
|
38
|
+
console.log('Monkey Client => ', args);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
this.ldClient.on('change', this.getAllFlags.bind(this));
|
|
43
|
+
this.ldClient.on('ready', this.getAllFlags.bind(this));
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
this.ldClient.identify(user, undefined, this.getAllFlags);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
apply(configSubject$, environment) {
|
|
51
|
+
if (environment.launchDarklyClientSideID) {
|
|
52
|
+
configSubject$.subscribe((config) => {
|
|
53
|
+
this.identify(config, environment);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
this.flagSubject$.next(true);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
get onFlags() {
|
|
61
|
+
return this.flagSubject$.asObservable();
|
|
62
|
+
}
|
|
63
|
+
getFlag(flag) {
|
|
64
|
+
const flagValue = this.flags?.[flag];
|
|
65
|
+
return MonkeyUtils.persistNullEmptyUndefined(flagValue) ? flagValue : null;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
MonkeyEcxFeatureToggleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureToggleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
69
|
+
MonkeyEcxFeatureToggleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureToggleService, providedIn: 'root' });
|
|
70
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureToggleService, decorators: [{
|
|
71
|
+
type: Injectable,
|
|
72
|
+
args: [{
|
|
73
|
+
providedIn: 'root'
|
|
74
|
+
}]
|
|
75
|
+
}], ctorParameters: function () { return []; } });
|
|
76
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ua2V5ZWN4LWZlYXR1cmUtdG9nZ2xlLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb25rZXktZnJvbnQtY29yZS9zcmMvbGliL2NvcmUvc2VydmljZXMvY29uZmlnL21vbmtleWVjeC1mZWF0dXJlLXRvZ2dsZS5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTyxFQUFFLGVBQWUsRUFBYyxNQUFNLE1BQU0sQ0FBQztBQUNuRCxPQUFPLEVBQUUsVUFBVSxFQUF1QixNQUFNLDRCQUE0QixDQUFDO0FBQzdFLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQzs7QUFNakQsTUFBTSxPQUFPLDZCQUE2QjtJQU94QztRQU5pQixpQkFBWSxHQUF5QixJQUFJLGVBQWUsQ0FBQyxJQUFJLENBQUMsQ0FBQztRQUV4RSxVQUFLLEdBQTBCLFNBQVMsQ0FBQztRQUV6QyxhQUFRLEdBQXlCLFNBQVMsQ0FBQztRQUdqRCxZQUFZO0lBQ2QsQ0FBQztJQUVPLFdBQVc7UUFDakIsSUFBSSxDQUFDLElBQUk7WUFBRSxPQUFPO1FBQ2xCLElBQUksQ0FBQyxLQUFLLEdBQUcsSUFBSSxDQUFDLFFBQVEsRUFBRSxRQUFRLEVBQUUs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G4gICAgdGhpcy5mbGFncyA9IHRoaXMubGRDbGllbnQ/LmFsbEZsYWdzKCk7XHJcblxyXG4gICAgdGhpcy5mbGFnU3ViamVjdCQubmV4dCh0cnVlKTtcclxuICB9XHJcblxyXG4gIHByaXZhdGUgaWRlbnRpZnkoY29uZmlnOiBNb25rZXlFY3hDb25maWcsIGVudmlyb25tZW50OiBhbnkpOiB2b2lkIHtcclxuICAgIGlmIChjb25maWcpIHtcclxuICAgICAgY29uc3QgZW1haWwgPSAnbW9ua2V5QG1vbmtleS5leGNoYW5nZSc7XHJcbiAgICAgIGNvbnN0IHVzZXIgPSB7XHJcbiAgICAgICAgZW1haWwsXHJcbiAgICAgICAga2luZDogJ3VzZXInLFxyXG4gICAgICAgIGtleTogYCR7Y29uZmlnLnByb2dyYW0/LnRva2VufSMke2VtYWlsfWBcclxuICAgICAgfTtcclxuXHJcbiAgICAgIGlmICghdGhpcy5sZENsaWVudCkge1xyXG4gICAgICAgIHRoaXMubGRDbGllbnQgPSBpbml0aWFsaXplKGVudmlyb25tZW50LmxhdW5jaERhcmtseUNsaWVudFNpZGVJRCwgdXNlciwge1xyXG4gICAgICAgICAgc3RyZWFtaW5nOiB0cnVlLFxyXG4gICAgICAgICAgZGlzYWJsZVN5bmNFdmVudFBvc3Q6IHRydWUsXHJcbiAgICAgICAgICBzZW5kRXZlbnRzOiBmYWxzZSxcclxuICAgICAgICAgIGRpYWdub3N0aWNPcHRPdXQ6IHRydWUsXHJcbiAgICAgICAgICBsb2dnZXI6IHtcclxuICAgICAgICAgICAgZGVidWc6ICgpID0+IHt9LFxyXG4gICAgICAgICAgICB3YXJuOiAoKSA9PiB7fSxcclxuICAgICAgICAgICAgaW5mbzogKCkgPT4ge30sXHJcbiAgICAgICAgICAgIGVycm9yOiAoYXJnczogYW55KSA9PiB7XHJcbiAgICAgICAgICAgICAgY29uc29sZS5sb2coJ01vbmtleSBDbGllbnQgPT4gJywgYXJncyk7XHJcbiAgICAgICAgICAgIH1cclxuICA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