@sunbird-cb/utils 1.0.19-ang-9-12 → 1.0.19-ang-13-16
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/bundles/sunbird-cb-utils.umd.js +1291 -1419
- package/bundles/sunbird-cb-utils.umd.js.map +1 -1
- package/esm2015/lib/components/image-crop/image-crop.component.js +28 -22
- package/esm2015/lib/components/image-crop/image-crop.module.js +45 -20
- package/esm2015/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.js +24 -14
- package/esm2015/lib/directives/class-change-on-scroll/class-change-on-scroll.module.js +17 -10
- package/esm2015/lib/directives/default-thumbnail/default-thumbnail.directive.js +20 -12
- package/esm2015/lib/directives/default-thumbnail/default-thumbnail.module.js +17 -10
- package/esm2015/lib/directives/image-responsive/image-responsive.directive.js +16 -14
- package/esm2015/lib/directives/image-responsive/image-responsive.module.js +17 -10
- package/esm2015/lib/directives/in-view-port/in-view-port.directive.js +13 -13
- package/esm2015/lib/directives/in-view-port/in-view-port.module.js +17 -10
- package/esm2015/lib/directives/navigation/navigation.directive.js +22 -13
- package/esm2015/lib/directives/navigation/navigation.module.js +17 -10
- package/esm2015/lib/directives/permission/permission.directive.js +10 -7
- package/esm2015/lib/directives/permission/permission.module.js +17 -10
- package/esm2015/lib/helpers/horizontal-scroller/horizontal-scroller.component.js +25 -15
- package/esm2015/lib/helpers/horizontal-scroller/horizontal-scroller.module.js +26 -13
- package/esm2015/lib/helpers/logout/logout.component.js +18 -18
- package/esm2015/lib/helpers/logout/logout.module.js +23 -12
- package/esm2015/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.js +13 -8
- package/esm2015/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.js +10 -6
- package/esm2015/lib/pipes/pipe-count-transform/pipe-count-transform.module.js +17 -10
- package/esm2015/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.js +10 -6
- package/esm2015/lib/pipes/pipe-date-concat/pipe-date-concat.module.js +17 -10
- package/esm2015/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.js +10 -7
- package/esm2015/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.js +17 -10
- package/esm2015/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.js +10 -6
- package/esm2015/lib/pipes/pipe-filter/pipe-filter.module.js +17 -10
- package/esm2015/lib/pipes/pipe-filter/pipe-filter.pipe.js +10 -6
- package/esm2015/lib/pipes/pipe-filter-search/pipe-filter-search.module.js +17 -10
- package/esm2015/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.js +10 -6
- package/esm2015/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.js +17 -10
- package/esm2015/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.js +10 -6
- package/esm2015/lib/pipes/pipe-limit-to/pipe-limit-to.module.js +17 -10
- package/esm2015/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.js +10 -6
- package/esm2015/lib/pipes/pipe-list-filter/pipe-list-filter.module.js +17 -10
- package/esm2015/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.js +10 -6
- package/esm2015/lib/pipes/pipe-name-transform/pipe-name-transform.module.js +17 -10
- package/esm2015/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.js +10 -6
- package/esm2015/lib/pipes/pipe-order-by/pipe-order-by.module.js +17 -10
- package/esm2015/lib/pipes/pipe-order-by/pipe-order-by.pipe.js +10 -6
- package/esm2015/lib/pipes/pipe-partial-content/pipe-partial-content.module.js +17 -10
- package/esm2015/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.js +10 -6
- package/esm2015/lib/pipes/pipe-relative-time/pipe-relative-time.module.js +17 -10
- package/esm2015/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.js +10 -6
- package/esm2015/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.js +17 -10
- package/esm2015/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.js +11 -10
- package/esm2015/lib/resolvers/explore-detail.resolver.js +9 -15
- package/esm2015/lib/resolvers/marketing-offering.resolve.js +9 -11
- package/esm2015/lib/resolvers/page.resolver.js +12 -14
- package/esm2015/lib/services/auth-keycloak.service.js +11 -186
- package/esm2015/lib/services/auth-microsoft.service.js +9 -13
- package/esm2015/lib/services/configurations.service.js +9 -8
- package/esm2015/lib/services/event.service.js +12 -12
- package/esm2015/lib/services/logger.service.js +9 -11
- package/esm2015/lib/services/subapplication-respond.service.js +13 -155
- package/esm2015/lib/services/telemetry.service.js +12 -16
- package/esm2015/lib/services/user-preference.service.js +9 -13
- package/esm2015/lib/services/utility.service.js +10 -16
- package/esm2015/lib/services/value.service.js +10 -11
- package/esm2015/lib/services/widget-content.service.js +11 -17
- package/fesm2015/sunbird-cb-utils.js +988 -1073
- package/fesm2015/sunbird-cb-utils.js.map +1 -1
- package/lib/components/image-crop/image-crop.component.d.ts +3 -0
- package/lib/components/image-crop/image-crop.component.d.ts.map +1 -1
- package/lib/components/image-crop/image-crop.module.d.ts +14 -0
- package/lib/components/image-crop/image-crop.module.d.ts.map +1 -1
- package/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.d.ts +3 -0
- package/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.d.ts.map +1 -1
- package/lib/directives/class-change-on-scroll/class-change-on-scroll.module.d.ts +6 -0
- package/lib/directives/class-change-on-scroll/class-change-on-scroll.module.d.ts.map +1 -1
- package/lib/directives/default-thumbnail/default-thumbnail.directive.d.ts +3 -0
- package/lib/directives/default-thumbnail/default-thumbnail.directive.d.ts.map +1 -1
- package/lib/directives/default-thumbnail/default-thumbnail.module.d.ts +6 -0
- package/lib/directives/default-thumbnail/default-thumbnail.module.d.ts.map +1 -1
- package/lib/directives/image-responsive/image-responsive.directive.d.ts +3 -0
- package/lib/directives/image-responsive/image-responsive.directive.d.ts.map +1 -1
- package/lib/directives/image-responsive/image-responsive.module.d.ts +6 -0
- package/lib/directives/image-responsive/image-responsive.module.d.ts.map +1 -1
- package/lib/directives/in-view-port/in-view-port.directive.d.ts +3 -0
- package/lib/directives/in-view-port/in-view-port.directive.d.ts.map +1 -1
- package/lib/directives/in-view-port/in-view-port.module.d.ts +6 -0
- package/lib/directives/in-view-port/in-view-port.module.d.ts.map +1 -1
- package/lib/directives/navigation/navigation.directive.d.ts +3 -0
- package/lib/directives/navigation/navigation.directive.d.ts.map +1 -1
- package/lib/directives/navigation/navigation.module.d.ts +6 -0
- package/lib/directives/navigation/navigation.module.d.ts.map +1 -1
- package/lib/directives/permission/permission.directive.d.ts +3 -0
- package/lib/directives/permission/permission.directive.d.ts.map +1 -1
- package/lib/directives/permission/permission.module.d.ts +6 -0
- package/lib/directives/permission/permission.module.d.ts.map +1 -1
- package/lib/helpers/horizontal-scroller/horizontal-scroller.component.d.ts +3 -0
- package/lib/helpers/horizontal-scroller/horizontal-scroller.component.d.ts.map +1 -1
- package/lib/helpers/horizontal-scroller/horizontal-scroller.module.d.ts +9 -0
- package/lib/helpers/horizontal-scroller/horizontal-scroller.module.d.ts.map +1 -1
- package/lib/helpers/logout/logout.component.d.ts +3 -0
- package/lib/helpers/logout/logout.component.d.ts.map +1 -1
- package/lib/helpers/logout/logout.module.d.ts +8 -0
- package/lib/helpers/logout/logout.module.d.ts.map +1 -1
- package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.d.ts +6 -0
- package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.d.ts.map +1 -1
- package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.d.ts +3 -0
- package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.d.ts.map +1 -1
- package/lib/pipes/pipe-count-transform/pipe-count-transform.module.d.ts +6 -0
- package/lib/pipes/pipe-count-transform/pipe-count-transform.module.d.ts.map +1 -1
- package/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.d.ts +3 -0
- package/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.d.ts.map +1 -1
- package/lib/pipes/pipe-date-concat/pipe-date-concat.module.d.ts +6 -0
- package/lib/pipes/pipe-date-concat/pipe-date-concat.module.d.ts.map +1 -1
- package/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.d.ts +3 -0
- package/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.d.ts.map +1 -1
- package/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.d.ts +6 -0
- package/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.d.ts.map +1 -1
- package/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.d.ts +3 -0
- package/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.d.ts.map +1 -1
- package/lib/pipes/pipe-filter/pipe-filter.module.d.ts +6 -0
- package/lib/pipes/pipe-filter/pipe-filter.module.d.ts.map +1 -1
- package/lib/pipes/pipe-filter/pipe-filter.pipe.d.ts +3 -0
- package/lib/pipes/pipe-filter/pipe-filter.pipe.d.ts.map +1 -1
- package/lib/pipes/pipe-filter-search/pipe-filter-search.module.d.ts +6 -0
- package/lib/pipes/pipe-filter-search/pipe-filter-search.module.d.ts.map +1 -1
- package/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.d.ts +3 -0
- package/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.d.ts.map +1 -1
- package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.d.ts +6 -0
- package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.d.ts.map +1 -1
- package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.d.ts +3 -0
- package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.d.ts.map +1 -1
- package/lib/pipes/pipe-limit-to/pipe-limit-to.module.d.ts +6 -0
- package/lib/pipes/pipe-limit-to/pipe-limit-to.module.d.ts.map +1 -1
- package/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.d.ts +3 -0
- package/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.d.ts.map +1 -1
- package/lib/pipes/pipe-list-filter/pipe-list-filter.module.d.ts +6 -0
- package/lib/pipes/pipe-list-filter/pipe-list-filter.module.d.ts.map +1 -1
- package/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.d.ts +3 -0
- package/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.d.ts.map +1 -1
- package/lib/pipes/pipe-name-transform/pipe-name-transform.module.d.ts +6 -0
- package/lib/pipes/pipe-name-transform/pipe-name-transform.module.d.ts.map +1 -1
- package/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.d.ts +3 -0
- package/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.d.ts.map +1 -1
- package/lib/pipes/pipe-order-by/pipe-order-by.module.d.ts +6 -0
- package/lib/pipes/pipe-order-by/pipe-order-by.module.d.ts.map +1 -1
- package/lib/pipes/pipe-order-by/pipe-order-by.pipe.d.ts +3 -0
- package/lib/pipes/pipe-order-by/pipe-order-by.pipe.d.ts.map +1 -1
- package/lib/pipes/pipe-partial-content/pipe-partial-content.module.d.ts +6 -0
- package/lib/pipes/pipe-partial-content/pipe-partial-content.module.d.ts.map +1 -1
- package/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.d.ts +3 -0
- package/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.d.ts.map +1 -1
- package/lib/pipes/pipe-relative-time/pipe-relative-time.module.d.ts +6 -0
- package/lib/pipes/pipe-relative-time/pipe-relative-time.module.d.ts.map +1 -1
- package/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.d.ts +3 -0
- package/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.d.ts.map +1 -1
- package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.d.ts +6 -0
- package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.d.ts.map +1 -1
- package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.d.ts +3 -0
- package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.d.ts.map +1 -1
- package/lib/resolvers/explore-detail.resolver.d.ts +3 -0
- package/lib/resolvers/explore-detail.resolver.d.ts.map +1 -1
- package/lib/resolvers/marketing-offering.resolve.d.ts +3 -0
- package/lib/resolvers/marketing-offering.resolve.d.ts.map +1 -1
- package/lib/resolvers/page.resolver.d.ts +3 -0
- package/lib/resolvers/page.resolver.d.ts.map +1 -1
- package/lib/services/auth-keycloak.service.d.ts +4 -21
- package/lib/services/auth-keycloak.service.d.ts.map +1 -1
- package/lib/services/auth-microsoft.service.d.ts +3 -0
- package/lib/services/auth-microsoft.service.d.ts.map +1 -1
- package/lib/services/configurations.service.d.ts +3 -0
- package/lib/services/configurations.service.d.ts.map +1 -1
- package/lib/services/event.service.d.ts +3 -0
- package/lib/services/event.service.d.ts.map +1 -1
- package/lib/services/logger.service.d.ts +3 -0
- package/lib/services/logger.service.d.ts.map +1 -1
- package/lib/services/subapplication-respond.service.d.ts +4 -10
- package/lib/services/subapplication-respond.service.d.ts.map +1 -1
- package/lib/services/telemetry.service.d.ts +3 -0
- package/lib/services/telemetry.service.d.ts.map +1 -1
- package/lib/services/user-preference.service.d.ts +3 -0
- package/lib/services/user-preference.service.d.ts.map +1 -1
- package/lib/services/utility.service.d.ts +3 -0
- package/lib/services/utility.service.d.ts.map +1 -1
- package/lib/services/value.service.d.ts +3 -0
- package/lib/services/value.service.d.ts.map +1 -1
- package/lib/services/widget-content.service.d.ts +3 -0
- package/lib/services/widget-content.service.d.ts.map +1 -1
- package/package.json +1 -3
- package/sunbird-cb-utils-1.0.19-ang-13-16.tgz +0 -0
- package/sunbird-cb-utils.d.ts +1 -0
- package/sunbird-cb-utils.d.ts.map +1 -1
- package/lib/components/image-crop/image-crop.component.ngfactory.d.ts.map +0 -1
- package/lib/components/image-crop/image-crop.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/lib/components/image-crop/image-crop.module.ngfactory.d.ts.map +0 -1
- package/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.ngfactory.d.ts.map +0 -1
- package/lib/directives/class-change-on-scroll/class-change-on-scroll.module.ngfactory.d.ts.map +0 -1
- package/lib/directives/default-thumbnail/default-thumbnail.directive.ngfactory.d.ts.map +0 -1
- package/lib/directives/default-thumbnail/default-thumbnail.module.ngfactory.d.ts.map +0 -1
- package/lib/directives/image-responsive/image-responsive.directive.ngfactory.d.ts.map +0 -1
- package/lib/directives/image-responsive/image-responsive.module.ngfactory.d.ts.map +0 -1
- package/lib/directives/in-view-port/in-view-port.directive.ngfactory.d.ts.map +0 -1
- package/lib/directives/in-view-port/in-view-port.module.ngfactory.d.ts.map +0 -1
- package/lib/directives/navigation/navigation.directive.ngfactory.d.ts.map +0 -1
- package/lib/directives/navigation/navigation.module.ngfactory.d.ts.map +0 -1
- package/lib/directives/permission/permission.directive.ngfactory.d.ts.map +0 -1
- package/lib/directives/permission/permission.module.ngfactory.d.ts.map +0 -1
- package/lib/helpers/horizontal-scroller/horizontal-scroller.component.ngfactory.d.ts.map +0 -1
- package/lib/helpers/horizontal-scroller/horizontal-scroller.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/lib/helpers/horizontal-scroller/horizontal-scroller.module.ngfactory.d.ts.map +0 -1
- package/lib/helpers/logout/logout.component.ngfactory.d.ts.map +0 -1
- package/lib/helpers/logout/logout.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/lib/helpers/logout/logout.module.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-count-transform/pipe-count-transform.module.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-date-concat/pipe-date-concat.module.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-filter/pipe-filter.module.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-filter/pipe-filter.pipe.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-filter-search/pipe-filter-search.module.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-limit-to/pipe-limit-to.module.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-list-filter/pipe-list-filter.module.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-name-transform/pipe-name-transform.module.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-order-by/pipe-order-by.module.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-order-by/pipe-order-by.pipe.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-partial-content/pipe-partial-content.module.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-relative-time/pipe-relative-time.module.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.ngfactory.d.ts.map +0 -1
- package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.ngfactory.d.ts.map +0 -1
- package/lib/resolvers/explore-detail.resolver.ngfactory.d.ts.map +0 -1
- package/lib/resolvers/marketing-offering.resolve.ngfactory.d.ts.map +0 -1
- package/lib/resolvers/page.resolver.ngfactory.d.ts.map +0 -1
- package/lib/services/auth-keycloak.service.ngfactory.d.ts.map +0 -1
- package/lib/services/auth-microsoft.service.ngfactory.d.ts.map +0 -1
- package/lib/services/configurations.service.ngfactory.d.ts.map +0 -1
- package/lib/services/event.service.ngfactory.d.ts.map +0 -1
- package/lib/services/logger.service.ngfactory.d.ts.map +0 -1
- package/lib/services/subapplication-respond.service.ngfactory.d.ts.map +0 -1
- package/lib/services/telemetry.service.ngfactory.d.ts.map +0 -1
- package/lib/services/user-preference.service.ngfactory.d.ts.map +0 -1
- package/lib/services/utility.service.ngfactory.d.ts.map +0 -1
- package/lib/services/value.service.ngfactory.d.ts.map +0 -1
- package/lib/services/widget-content.service.ngfactory.d.ts.map +0 -1
- package/sunbird-cb-utils.metadata.json +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/material/dialog'), require('@angular/material/snack-bar'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@sunbird-cb/utils', ['exports', '@angular/core', '@angular/material/dialog', '@angular/material/snack-bar', '
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["sunbird-cb"] = global["sunbird-cb"] || {}, global["sunbird-cb"].utils = {}), global.ng.core, global.ng.material.dialog, global.ng.material.snackBar, global.
|
|
5
|
-
})(this, (function (exports, i0,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/material/dialog'), require('rxjs'), require('@angular/material/snack-bar'), require('@angular/cdk/layout'), require('rxjs/operators'), require('@angular/material/icon'), require('@angular/material/button'), require('ngx-image-cropper'), require('@angular/material/slider'), require('@angular/material/card'), require('@angular/common'), require('@angular/material/toolbar'), require('@angular/material/tooltip'), require('@angular/material/progress-spinner'), require('@angular/router'), require('@angular/common/http'), require('@angular/cdk/platform'), require('moment'), require('lodash'), require('@angular/platform-browser')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@sunbird-cb/utils', ['exports', '@angular/core', '@angular/material/dialog', 'rxjs', '@angular/material/snack-bar', '@angular/cdk/layout', 'rxjs/operators', '@angular/material/icon', '@angular/material/button', 'ngx-image-cropper', '@angular/material/slider', '@angular/material/card', '@angular/common', '@angular/material/toolbar', '@angular/material/tooltip', '@angular/material/progress-spinner', '@angular/router', '@angular/common/http', '@angular/cdk/platform', 'moment', 'lodash', '@angular/platform-browser'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["sunbird-cb"] = global["sunbird-cb"] || {}, global["sunbird-cb"].utils = {}), global.ng.core, global.ng.material.dialog, global.rxjs, global.ng.material.snackBar, global.ng.cdk.layout, global.rxjs.operators, global.ng.material.icon, global.ng.material.button, global.ngxImageCropper, global.ng.material.slider, global.ng.material.card, global.ng.common, global.ng.material.toolbar, global.ng.material.tooltip, global.ng.material.progressSpinner, global.ng.router, global.ng.common.http, global.ng.cdk.platform, global.moment, global._, global.ng.platformBrowser));
|
|
5
|
+
})(this, (function (exports, i0, i1$1, rxjs, i3, i1, operators, i5, i6, i7, i8, i9, i4, toolbar, tooltip, i3$1, i3$2, i1$2, i2, _moment, _, i1$3) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -23,13 +23,22 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
27
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
28
26
|
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
29
|
-
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
30
27
|
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
28
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
29
|
+
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
30
|
+
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
31
|
+
var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
|
|
32
|
+
var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
|
|
33
|
+
var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
|
|
34
|
+
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
35
|
+
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
|
|
36
|
+
var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$2);
|
|
37
|
+
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
38
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
31
39
|
var _moment__namespace = /*#__PURE__*/_interopNamespace(_moment);
|
|
32
40
|
var ___namespace = /*#__PURE__*/_interopNamespace(_);
|
|
41
|
+
var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
|
|
33
42
|
|
|
34
43
|
var ConfigurationsService = /** @class */ (function () {
|
|
35
44
|
function ConfigurationsService() {
|
|
@@ -85,13 +94,14 @@
|
|
|
85
94
|
};
|
|
86
95
|
return ConfigurationsService;
|
|
87
96
|
}());
|
|
88
|
-
ConfigurationsService.ɵ
|
|
89
|
-
ConfigurationsService
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
97
|
+
ConfigurationsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ConfigurationsService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
98
|
+
ConfigurationsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ConfigurationsService, providedIn: 'root' });
|
|
99
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ConfigurationsService, decorators: [{
|
|
100
|
+
type: i0.Injectable,
|
|
101
|
+
args: [{
|
|
102
|
+
providedIn: 'root',
|
|
103
|
+
}]
|
|
104
|
+
}], ctorParameters: function () { return []; } });
|
|
95
105
|
|
|
96
106
|
var ValueService = /** @class */ (function () {
|
|
97
107
|
function ValueService(breakpointObserver) {
|
|
@@ -105,15 +115,14 @@
|
|
|
105
115
|
}
|
|
106
116
|
return ValueService;
|
|
107
117
|
}());
|
|
108
|
-
ValueService.ɵ
|
|
109
|
-
ValueService
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
]; };
|
|
118
|
+
ValueService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ValueService, deps: [{ token: i1__namespace.BreakpointObserver }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
119
|
+
ValueService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ValueService, providedIn: 'root' });
|
|
120
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ValueService, decorators: [{
|
|
121
|
+
type: i0.Injectable,
|
|
122
|
+
args: [{
|
|
123
|
+
providedIn: 'root',
|
|
124
|
+
}]
|
|
125
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.BreakpointObserver }]; } });
|
|
117
126
|
|
|
118
127
|
var ImageCropComponent = /** @class */ (function () {
|
|
119
128
|
function ImageCropComponent(dialogRef, configSvc, snackBar, valueSvc, data) {
|
|
@@ -255,48 +264,72 @@
|
|
|
255
264
|
};
|
|
256
265
|
return ImageCropComponent;
|
|
257
266
|
}());
|
|
258
|
-
ImageCropComponent
|
|
259
|
-
{ type: i0.Component, args: [{
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
267
|
+
ImageCropComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ImageCropComponent, deps: [{ token: i1__namespace$1.MatDialogRef }, { token: ConfigurationsService }, { token: i3__namespace.MatSnackBar }, { token: ValueService }, { token: i1$1.MAT_DIALOG_DATA }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
268
|
+
ImageCropComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ImageCropComponent, selector: "ws-utils-image-crop", outputs: { data: "data" }, ngImport: i0__namespace, template: "<ng-container *ngIf=\"isNotOfRequiredSize\">\r\n <mat-dialog-content>\r\n <div class=\"flex pl-4\">\r\n <mat-icon class=\"ws-mat-warn-text largeicon padding-remove-left\">warning</mat-icon>\r\n <h2 class=\"text-xl\" i18n>This image will appear stretched as it is not in proper dimension. Do you want to\r\n continue?</h2>\r\n </div>\r\n <div class=\"text-sm pl-4\">\r\n <div i18n class=\"pb-2\">Note:</div>\r\n <div i18n class=\"pb-2\">Required dimensions : 265 * 150</div>\r\n <div class=\"flex flex-wrap items-baseline\">\r\n <div>Current dimensions:</div>\r\n <div class=\"pl-1\">{{ width }} * {{ height }} px</div>\r\n </div>\r\n </div>\r\n </mat-dialog-content>\r\n <mat-dialog-actions class=\"flex flex-end\">\r\n <div class=\"flex flex-end\">\r\n <button mat-raised-button autofocus type=\"button\" (click)=\" close()\">\r\n <span i18n>No</span>\r\n </button>\r\n <button mat-raised-button type=\"button\" class=\"text-white ws-mat-primary-background text-white\"\r\n (click)=\" continueToImageCrop()\">\r\n <span class=\"text-white\" i18n>Yes</span>\r\n </button>\r\n </div>\r\n </mat-dialog-actions>\r\n</ng-container>\r\n<ng-container *ngIf=\"isRoundCrop\">\r\n <!-- For Profile image - start -->\r\n <div class=\"flex flex-between\">\r\n <mat-icon class=\" ws-mat-primary-text margin-bottom-xxs\">crop</mat-icon>\r\n <p mat-dialog-title class=\"text-3xl font-weight-bold ws-mat-primary-text\" i18n>Profile Photo</p>\r\n <mat-icon class=\"float-right flex-end cursor-pointer\" (click)=\"close()\" i18n>close</mat-icon>\r\n\r\n </div>\r\n <mat-dialog-content class=\"p-0 overflow-hidden \" *ngIf=\"isRoundCrop\">\r\n <div class=\"flex flex-between\">\r\n <div class=\"profile-slides\">\r\n <image-cropper #imageCropper class=\"image-cropper-profile\" [imageFile]=\"imageFile\" [maintainAspectRatio]=\"true\"\r\n [aspectRatio]=\"250 / 250\" [resizeToWidth]=\"100\" [roundCropper]=\"isRoundCrop\" [resizeToHeight]=\"120\"\r\n [cropperMinWidth]=\"500\" [format]=\"'jpeg'\" [transform]=\"transform\" [canvasRotation]=\"canvasRotation\"\r\n (imageCropped)=\"imageCropped($event)\">\r\n </image-cropper>\r\n </div>\r\n </div>\r\n <ul class=\"toolbar cf\">\r\n <li><button mat-raised-button class=\"mat-button\" (click)=\"rotateLeft()\">\r\n <mat-icon class=\"text-white large-icon ws-mat-primary-text\">rotate_left</mat-icon>\r\n <span class=\"button-text\" i18n>Rotate Left</span>\r\n </button>\r\n </li>\r\n <li><button mat-raised-button class=\"mat-button\" (click)=\"rotateRight()\">\r\n <mat-icon class=\"text-white medium-icon ws-mat-primary-text\">rotate_right</mat-icon>\r\n <span class=\"button-text\" i18n>Rotate Right</span>\r\n </button></li>\r\n <li><button mat-raised-button class=\"mat-button\" (click)=\"flipHorizontal()\">\r\n <mat-icon class=\"text-white medium-icon ws-mat-primary-text\">flip</mat-icon>\r\n <span class=\"button-text\" i18n>Flip Horizontal</span>\r\n </button></li>\r\n <li><a href=\"#\"><i class=\"icon-cloud\"></i></a></li>\r\n </ul>\r\n </mat-dialog-content>\r\n</ng-container> <!-- For Profile image - end -->\r\n<ng-container>\r\n <ng-container *ngIf=\"!isNotOfRequiredSize && !isRoundCrop \">\r\n <div class=\"flex flex-between\">\r\n <mat-icon class=\" ws-mat-primary-text margin-bottom-xxs\">crop</mat-icon>\r\n <p mat-dialog-title class=\"text-3xl title-margin font-weight-bold ws-mat-primary-text\" i18n>Edit Image</p>\r\n <mat-icon class=\"float-right flex-end cursor-pointer\" (click)=\"close()\" i18n>\r\n close</mat-icon>\r\n </div>\r\n <mat-dialog-content *ngIf=\"!isRoundCrop\">\r\n <div class=\"flex flex-between\">\r\n <div class=\"Slides\">\r\n <image-cropper #imageCropper class=\"image-cropper padding-remove\" [imageFile]=\"imageFile\"\r\n [maintainAspectRatio]=\"true\" [aspectRatio]=\"opWidth / opHeight\" [resizeToWidth]=\"opWidth\"\r\n [roundCropper]=\"isRoundCrop\" [resizeToHeight]=\"opHeight\" [cropperMinWidth]=\"opWidth\" [format]=\"'jpeg'\"\r\n [transform]=\"transform\" [canvasRotation]=\"canvasRotation\" (imageCropped)=\"imageCropped($event)\">\r\n </image-cropper>\r\n <div class=\"flex flex-between\">\r\n <span class=\"my-3\" i18n>Zoom</span>\r\n <mat-slider class=\"w-full mx-3\" color=\"primary\" (input)=\"zoom($event)\" min=\"1\" max=\"2.5\" step=\"0.1\">\r\n </mat-slider>\r\n </div>\r\n <div class=\"edit-feature-window \" *ngIf=\"!isXSmall\">\r\n <div class=\"flex flex-between\">\r\n <button mat-raised-button class=\"mat-button\" (click)=\"rotateLeft()\">\r\n <mat-icon class=\"text-white large-icon ws-mat-primary-text\">rotate_left</mat-icon>\r\n <span class=\"button-text\" i18n>Rotate Left</span>\r\n </button>\r\n <button mat-raised-button class=\"mat-button\" (click)=\"rotateRight()\">\r\n <mat-icon class=\"text-white medium-icon ws-mat-primary-text\">rotate_right</mat-icon>\r\n <span class=\"button-text\" i18n>Rotate Right</span>\r\n </button>\r\n <button mat-raised-button class=\"mat-button\" (click)=\"flipHorizontal()\">\r\n <mat-icon class=\"text-white medium-icon ws-mat-primary-text\">flip</mat-icon>\r\n <span class=\"button-text\" i18n>Flip Horizontal</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <mat-card class=\"ws-mat-primary-border-top-bolder mat-elevation-z6 margin-bottom-l button-text\"\r\n *ngIf=\"isThumbnail\">\r\n <img [src]=\"imageFileBase64\" height=\"auto\" width=\"100%\" (error)=\"changeToDefaultImg($event)\" />\r\n <div class=\"flex flex-middle justify-center margin-bottom-s padding-top-s\">\r\n <mat-icon class=\"ws-mat-primary-text padding-right-s\">image</mat-icon>\r\n <b class=\"mat-title margin-remove ws-mat-primary-text\" i18n>Preview</b>\r\n </div>\r\n </mat-card>\r\n </div>\r\n <div class=\"edit-feature-window heightwidth\">\r\n <!-- <div class=\"flex flex-middle margin-left-l margin-bottom-s padding-top-s\">\r\n <mat-icon class=\"ws-mat-primary-text padding-right-s\">swap_horiz</mat-icon>\r\n <b class=\"mat-body margin-remove \" i18n>Cropped dimensions: {{ opWidth }} * {{ opHeight }} px</b>\r\n </div> -->\r\n <div class=\"flex flex-middle margin-left-l margin-bottom-s padding-top-s\">\r\n <mat-icon class=\"ws-mat-primary-text padding-right-s\">swap_horiz</mat-icon>\r\n <b class=\"mat-body margin-remove \">\r\n <span i18n>Cropped Width: </span>\r\n <span>{{ croppedWidth }}</span>\r\n <span i18n>px</span>\r\n </b>\r\n </div>\r\n <div class=\"flex flex-middle margin-left-l margin-bottom-s padding-top-s\">\r\n <mat-icon class=\"ws-mat-primary-text padding-right-s\">swap_vert</mat-icon>\r\n <b class=\"mat-body margin-remove \">\r\n <span i18n>Cropped Height: </span>\r\n <span>{{ croppedHeight }}</span>\r\n <span i18n>px</span>\r\n </b>\r\n </div>\r\n </div>\r\n </mat-dialog-content>\r\n </ng-container>\r\n <mat-dialog-actions align=\"end\" *ngIf=\"!isNotOfRequiredSize \">\r\n <div class=\"flex flex-end margin-bottom-s\">\r\n <!-- <button mat-raised-button type=\"button\" (click)=\" reset()\">\r\n <span i18n>Reset</span>\r\n </button> -->\r\n <button mat-raised-button type=\"button\" class=\"text-white ws-mat-primary-background text-white\"\r\n (click)=\" croppingImage()\">\r\n <span class=\"text-white\" i18n>Apply</span>\r\n </button>\r\n </div>\r\n </mat-dialog-actions>\r\n</ng-container>\r\n", styles: [".image-cropper{max-height:55vh}::ng-deep image-cropper .overlay{background-color:transparent!important}.Slides{display:block;height:auto;width:50%;position:relative;margin-left:auto;margin-right:auto;padding:0 1.25em}@media only screen and (max-width: 1030px){.Slides{padding:0;width:100%}}.cursor{cursor:pointer}.edit-feature-window{background:transparent;justify-content:center}mat-toolbar{background-color:#fff!important;z-index:1!important}mat-dialog-content{padding:1.25em!important}@media only screen and (max-width: 1030px){mat-dialog-content{padding:.25em .5em!important}}.heightwidth{display:flex}@media only screen and (max-width: 1030px){.heightwidth{display:block}}@media only screen and (max-width: 1030px){.mat-button{min-width:auto;padding:0 14px}}.largeicon{font-size:2em;padding:.13em .5em}.tooltip{background:#b71c1c}.dimension-icon{position:relative;top:.35em;padding:0 0 0 .3em}@media only screen and (max-width: 1030px){.button-text{display:none}}.image-cropper-profile{max-height:55vh}.profile-slides{box-shadow:0 10px 20px #00000030,0 6px 6px #0000003b;display:block;height:auto;width:50%;position:relative;margin-left:auto;margin-right:auto}@media only screen and (max-width: 1030px){.profile-slides{padding:0;width:100%}}.toolbar{left:50%;margin:1em 0 0 -10em;position:absolute;width:auto;border-radius:4px}.cf:before,.cf:after{content:\"\";display:table}.cf:after{clear:both}.toolbar li{float:left;list-style:none}.toolbar a{border-left:0px solid rgba(79,123,170,.4);border-right:1px solid rgba(255,255,255,.3)}.toolbar li:first-child a{border-left:none;border-radius:4px 0 0 4px}.toolbar li:last-child a{border-right:none;border-radius:0 4px 4px 0}\n"], components: [{ type: i5__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i6__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i7__namespace.ImageCropperComponent, selector: "image-cropper", inputs: ["format", "transform", "maintainAspectRatio", "aspectRatio", "resizeToWidth", "resizeToHeight", "cropperMinWidth", "cropperMinHeight", "cropperMaxHeight", "cropperMaxWidth", "cropperStaticWidth", "cropperStaticHeight", "canvasRotation", "initialStepSize", "roundCropper", "onlyScaleDown", "imageQuality", "autoCrop", "backgroundColor", "containWithinAspectRatio", "hideResizeSquares", "cropper", "alignImage", "disabled", "imageChangedEvent", "imageURL", "imageBase64", "imageFile"], outputs: ["imageCropped", "startCropImage", "imageLoaded", "cropperReady", "loadImageFailed"] }, { type: i8__namespace.MatSlider, selector: "mat-slider", inputs: ["disabled", "color", "tabIndex", "invert", "max", "min", "step", "thumbLabel", "tickInterval", "value", "vertical", "displayWith", "valueText"], outputs: ["change", "input", "valueChange"], exportAs: ["matSlider"] }, { type: i9__namespace.MatCard, selector: "mat-card", exportAs: ["matCard"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1__namespace$1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1__namespace$1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }] });
|
|
269
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ImageCropComponent, decorators: [{
|
|
270
|
+
type: i0.Component,
|
|
271
|
+
args: [{
|
|
272
|
+
selector: 'ws-utils-image-crop',
|
|
273
|
+
templateUrl: './image-crop.component.html',
|
|
274
|
+
styleUrls: ['./image-crop.component.scss'],
|
|
275
|
+
}]
|
|
276
|
+
}], ctorParameters: function () {
|
|
277
|
+
return [{ type: i1__namespace$1.MatDialogRef }, { type: ConfigurationsService }, { type: i3__namespace.MatSnackBar }, { type: ValueService }, { type: undefined, decorators: [{
|
|
278
|
+
type: i0.Inject,
|
|
279
|
+
args: [i1$1.MAT_DIALOG_DATA]
|
|
280
|
+
}] }];
|
|
281
|
+
}, propDecorators: { data: [{
|
|
282
|
+
type: i0.Output
|
|
283
|
+
}] } });
|
|
275
284
|
|
|
276
285
|
var ImageCropModule = /** @class */ (function () {
|
|
277
286
|
function ImageCropModule() {
|
|
278
287
|
}
|
|
279
288
|
return ImageCropModule;
|
|
280
289
|
}());
|
|
281
|
-
ImageCropModule
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
290
|
+
ImageCropModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ImageCropModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
291
|
+
ImageCropModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ImageCropModule, declarations: [ImageCropComponent], imports: [i4.CommonModule,
|
|
292
|
+
i7.ImageCropperModule,
|
|
293
|
+
i5.MatIconModule,
|
|
294
|
+
i6.MatButtonModule,
|
|
295
|
+
i1$1.MatDialogModule,
|
|
296
|
+
toolbar.MatToolbarModule,
|
|
297
|
+
i1$1.MatDialogModule,
|
|
298
|
+
i9.MatCardModule,
|
|
299
|
+
tooltip.MatTooltipModule,
|
|
300
|
+
i8.MatSliderModule], exports: [ImageCropComponent] });
|
|
301
|
+
ImageCropModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ImageCropModule, imports: [[
|
|
302
|
+
i4.CommonModule,
|
|
303
|
+
i7.ImageCropperModule,
|
|
304
|
+
i5.MatIconModule,
|
|
305
|
+
i6.MatButtonModule,
|
|
306
|
+
i1$1.MatDialogModule,
|
|
307
|
+
toolbar.MatToolbarModule,
|
|
308
|
+
i1$1.MatDialogModule,
|
|
309
|
+
i9.MatCardModule,
|
|
310
|
+
tooltip.MatTooltipModule,
|
|
311
|
+
i8.MatSliderModule,
|
|
312
|
+
]] });
|
|
313
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ImageCropModule, decorators: [{
|
|
314
|
+
type: i0.NgModule,
|
|
315
|
+
args: [{
|
|
316
|
+
declarations: [ImageCropComponent],
|
|
317
|
+
imports: [
|
|
318
|
+
i4.CommonModule,
|
|
319
|
+
i7.ImageCropperModule,
|
|
320
|
+
i5.MatIconModule,
|
|
321
|
+
i6.MatButtonModule,
|
|
322
|
+
i1$1.MatDialogModule,
|
|
323
|
+
toolbar.MatToolbarModule,
|
|
324
|
+
i1$1.MatDialogModule,
|
|
325
|
+
i9.MatCardModule,
|
|
326
|
+
tooltip.MatTooltipModule,
|
|
327
|
+
i8.MatSliderModule,
|
|
328
|
+
],
|
|
329
|
+
exports: [ImageCropComponent],
|
|
330
|
+
entryComponents: [ImageCropComponent],
|
|
331
|
+
}]
|
|
332
|
+
}] });
|
|
300
333
|
|
|
301
334
|
exports.EFeatures = void 0;
|
|
302
335
|
(function (EFeatures) {
|
|
@@ -935,34 +968,49 @@
|
|
|
935
968
|
};
|
|
936
969
|
return ClassChangeOnScrollDirective;
|
|
937
970
|
}());
|
|
938
|
-
ClassChangeOnScrollDirective
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
971
|
+
ClassChangeOnScrollDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ClassChangeOnScrollDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
972
|
+
ClassChangeOnScrollDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: ClassChangeOnScrollDirective, selector: "[wsUtilsClassChangeOnScroll]", inputs: { wsClassOnScrollDirChange: "wsClassOnScrollDirChange" }, host: { properties: { "class.scrolling-down": "this.isScrollingDown", "class.scrolling-up": "this.isScrollingUp", "class.scrolling-no": "this.isNotScrolling", "class.scrolled-down": "this.hasScrolledDown" } }, ngImport: i0__namespace });
|
|
973
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ClassChangeOnScrollDirective, decorators: [{
|
|
974
|
+
type: i0.Directive,
|
|
975
|
+
args: [{
|
|
976
|
+
selector: '[wsUtilsClassChangeOnScroll]',
|
|
977
|
+
}]
|
|
978
|
+
}], ctorParameters: function () { return []; }, propDecorators: { wsClassOnScrollDirChange: [{
|
|
979
|
+
type: i0.Input
|
|
980
|
+
}], isScrollingDown: [{
|
|
981
|
+
type: i0.HostBinding,
|
|
982
|
+
args: ['class.scrolling-down']
|
|
983
|
+
}], isScrollingUp: [{
|
|
984
|
+
type: i0.HostBinding,
|
|
985
|
+
args: ['class.scrolling-up']
|
|
986
|
+
}], isNotScrolling: [{
|
|
987
|
+
type: i0.HostBinding,
|
|
988
|
+
args: ['class.scrolling-no']
|
|
989
|
+
}], hasScrolledDown: [{
|
|
990
|
+
type: i0.HostBinding,
|
|
991
|
+
args: ['class.scrolled-down']
|
|
992
|
+
}] } });
|
|
951
993
|
|
|
952
994
|
var ClassChangeOnScrollModule = /** @class */ (function () {
|
|
953
995
|
function ClassChangeOnScrollModule() {
|
|
954
996
|
}
|
|
955
997
|
return ClassChangeOnScrollModule;
|
|
956
998
|
}());
|
|
957
|
-
ClassChangeOnScrollModule
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
999
|
+
ClassChangeOnScrollModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ClassChangeOnScrollModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1000
|
+
ClassChangeOnScrollModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ClassChangeOnScrollModule, declarations: [ClassChangeOnScrollDirective], imports: [i4.CommonModule], exports: [ClassChangeOnScrollDirective] });
|
|
1001
|
+
ClassChangeOnScrollModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ClassChangeOnScrollModule, imports: [[
|
|
1002
|
+
i4.CommonModule,
|
|
1003
|
+
]] });
|
|
1004
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ClassChangeOnScrollModule, decorators: [{
|
|
1005
|
+
type: i0.NgModule,
|
|
1006
|
+
args: [{
|
|
1007
|
+
declarations: [ClassChangeOnScrollDirective],
|
|
1008
|
+
imports: [
|
|
1009
|
+
i4.CommonModule,
|
|
1010
|
+
],
|
|
1011
|
+
exports: [ClassChangeOnScrollDirective],
|
|
1012
|
+
}]
|
|
1013
|
+
}] });
|
|
966
1014
|
|
|
967
1015
|
var DefaultThumbnailDirective = /** @class */ (function () {
|
|
968
1016
|
function DefaultThumbnailDirective() {
|
|
@@ -984,32 +1032,45 @@
|
|
|
984
1032
|
};
|
|
985
1033
|
return DefaultThumbnailDirective;
|
|
986
1034
|
}());
|
|
987
|
-
DefaultThumbnailDirective
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
1035
|
+
DefaultThumbnailDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DefaultThumbnailDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1036
|
+
DefaultThumbnailDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: DefaultThumbnailDirective, selector: "[wsUtilsDefaultThumbnail]", inputs: { wsUtilsDefaultThumbnail: "wsUtilsDefaultThumbnail", src: "src" }, host: { listeners: { "error": "updateSrc()" }, properties: { "src": "this.srcUrl" } }, usesOnChanges: true, ngImport: i0__namespace });
|
|
1037
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DefaultThumbnailDirective, decorators: [{
|
|
1038
|
+
type: i0.Directive,
|
|
1039
|
+
args: [{
|
|
1040
|
+
selector: '[wsUtilsDefaultThumbnail]',
|
|
1041
|
+
}]
|
|
1042
|
+
}], propDecorators: { wsUtilsDefaultThumbnail: [{
|
|
1043
|
+
type: i0.Input
|
|
1044
|
+
}], src: [{
|
|
1045
|
+
type: i0.Input
|
|
1046
|
+
}], srcUrl: [{
|
|
1047
|
+
type: i0.HostBinding,
|
|
1048
|
+
args: ['src']
|
|
1049
|
+
}], updateSrc: [{
|
|
1050
|
+
type: i0.HostListener,
|
|
1051
|
+
args: ['error']
|
|
1052
|
+
}] } });
|
|
998
1053
|
|
|
999
1054
|
var DefaultThumbnailModule = /** @class */ (function () {
|
|
1000
1055
|
function DefaultThumbnailModule() {
|
|
1001
1056
|
}
|
|
1002
1057
|
return DefaultThumbnailModule;
|
|
1003
1058
|
}());
|
|
1004
|
-
DefaultThumbnailModule
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1059
|
+
DefaultThumbnailModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DefaultThumbnailModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1060
|
+
DefaultThumbnailModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DefaultThumbnailModule, declarations: [DefaultThumbnailDirective], imports: [i4.CommonModule], exports: [DefaultThumbnailDirective] });
|
|
1061
|
+
DefaultThumbnailModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DefaultThumbnailModule, imports: [[
|
|
1062
|
+
i4.CommonModule,
|
|
1063
|
+
]] });
|
|
1064
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DefaultThumbnailModule, decorators: [{
|
|
1065
|
+
type: i0.NgModule,
|
|
1066
|
+
args: [{
|
|
1067
|
+
declarations: [DefaultThumbnailDirective],
|
|
1068
|
+
imports: [
|
|
1069
|
+
i4.CommonModule,
|
|
1070
|
+
],
|
|
1071
|
+
exports: [DefaultThumbnailDirective],
|
|
1072
|
+
}]
|
|
1073
|
+
}] });
|
|
1013
1074
|
|
|
1014
1075
|
var customBreakPoints = {
|
|
1015
1076
|
xs: '(max-width: 450px)',
|
|
@@ -1081,33 +1142,40 @@
|
|
|
1081
1142
|
};
|
|
1082
1143
|
return ImageResponsiveDirective;
|
|
1083
1144
|
}());
|
|
1084
|
-
ImageResponsiveDirective
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1145
|
+
ImageResponsiveDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ImageResponsiveDirective, deps: [{ token: i1__namespace.BreakpointObserver }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1146
|
+
ImageResponsiveDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: ImageResponsiveDirective, selector: "[wsUtilsImageResponsive]", inputs: { src: "src" }, host: { properties: { "src": "this.srcBindUrl" } }, usesOnChanges: true, ngImport: i0__namespace });
|
|
1147
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ImageResponsiveDirective, decorators: [{
|
|
1148
|
+
type: i0.Directive,
|
|
1149
|
+
args: [{
|
|
1150
|
+
selector: '[wsUtilsImageResponsive]',
|
|
1151
|
+
}]
|
|
1152
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.BreakpointObserver }]; }, propDecorators: { src: [{
|
|
1153
|
+
type: i0.Input
|
|
1154
|
+
}], srcBindUrl: [{
|
|
1155
|
+
type: i0.HostBinding,
|
|
1156
|
+
args: ['src']
|
|
1157
|
+
}] } });
|
|
1096
1158
|
|
|
1097
1159
|
var ImageResponsiveModule = /** @class */ (function () {
|
|
1098
1160
|
function ImageResponsiveModule() {
|
|
1099
1161
|
}
|
|
1100
1162
|
return ImageResponsiveModule;
|
|
1101
1163
|
}());
|
|
1102
|
-
ImageResponsiveModule
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1164
|
+
ImageResponsiveModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ImageResponsiveModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1165
|
+
ImageResponsiveModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ImageResponsiveModule, declarations: [ImageResponsiveDirective], imports: [i4.CommonModule], exports: [ImageResponsiveDirective] });
|
|
1166
|
+
ImageResponsiveModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ImageResponsiveModule, imports: [[
|
|
1167
|
+
i4.CommonModule,
|
|
1168
|
+
]] });
|
|
1169
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ImageResponsiveModule, decorators: [{
|
|
1170
|
+
type: i0.NgModule,
|
|
1171
|
+
args: [{
|
|
1172
|
+
declarations: [ImageResponsiveDirective],
|
|
1173
|
+
imports: [
|
|
1174
|
+
i4.CommonModule,
|
|
1175
|
+
],
|
|
1176
|
+
exports: [ImageResponsiveDirective],
|
|
1177
|
+
}]
|
|
1178
|
+
}] });
|
|
1111
1179
|
|
|
1112
1180
|
var InViewPortDirective = /** @class */ (function () {
|
|
1113
1181
|
function InViewPortDirective(_el) {
|
|
@@ -1160,32 +1228,37 @@
|
|
|
1160
1228
|
};
|
|
1161
1229
|
return InViewPortDirective;
|
|
1162
1230
|
}());
|
|
1163
|
-
InViewPortDirective
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
};
|
|
1231
|
+
InViewPortDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: InViewPortDirective, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1232
|
+
InViewPortDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: InViewPortDirective, selector: "[wsUtilsInViewPort]", outputs: { inViewport: "inViewport" }, ngImport: i0__namespace });
|
|
1233
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: InViewPortDirective, decorators: [{
|
|
1234
|
+
type: i0.Directive,
|
|
1235
|
+
args: [{
|
|
1236
|
+
selector: '[wsUtilsInViewPort]',
|
|
1237
|
+
}]
|
|
1238
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }]; }, propDecorators: { inViewport: [{
|
|
1239
|
+
type: i0.Output
|
|
1240
|
+
}] } });
|
|
1174
1241
|
|
|
1175
1242
|
var InViewPortModule = /** @class */ (function () {
|
|
1176
1243
|
function InViewPortModule() {
|
|
1177
1244
|
}
|
|
1178
1245
|
return InViewPortModule;
|
|
1179
1246
|
}());
|
|
1180
|
-
InViewPortModule
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1247
|
+
InViewPortModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: InViewPortModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1248
|
+
InViewPortModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: InViewPortModule, declarations: [InViewPortDirective], imports: [i4.CommonModule], exports: [InViewPortDirective] });
|
|
1249
|
+
InViewPortModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: InViewPortModule, imports: [[
|
|
1250
|
+
i4.CommonModule,
|
|
1251
|
+
]] });
|
|
1252
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: InViewPortModule, decorators: [{
|
|
1253
|
+
type: i0.NgModule,
|
|
1254
|
+
args: [{
|
|
1255
|
+
declarations: [InViewPortDirective],
|
|
1256
|
+
exports: [InViewPortDirective],
|
|
1257
|
+
imports: [
|
|
1258
|
+
i4.CommonModule,
|
|
1259
|
+
],
|
|
1260
|
+
}]
|
|
1261
|
+
}] });
|
|
1189
1262
|
|
|
1190
1263
|
var NavigationDirective = /** @class */ (function () {
|
|
1191
1264
|
function NavigationDirective() {
|
|
@@ -1208,60 +1281,82 @@
|
|
|
1208
1281
|
};
|
|
1209
1282
|
return NavigationDirective;
|
|
1210
1283
|
}());
|
|
1211
|
-
NavigationDirective
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1284
|
+
NavigationDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NavigationDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1285
|
+
NavigationDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: NavigationDirective, selector: "[wsUtilsNavigation]", inputs: { wsUtilsNavigation: "wsUtilsNavigation", openInNewTab: "openInNewTab", routeUrl: "routeUrl" }, host: { listeners: { "mousedown": "onMouseEnter($event)" }, properties: { "attr.routerLink": "this.routeUrl" } }, usesOnChanges: true, ngImport: i0__namespace });
|
|
1286
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NavigationDirective, decorators: [{
|
|
1287
|
+
type: i0.Directive,
|
|
1288
|
+
args: [{
|
|
1289
|
+
selector: '[wsUtilsNavigation]',
|
|
1290
|
+
}]
|
|
1291
|
+
}], ctorParameters: function () { return []; }, propDecorators: { wsUtilsNavigation: [{
|
|
1292
|
+
type: i0.Input
|
|
1293
|
+
}], openInNewTab: [{
|
|
1294
|
+
type: i0.Input
|
|
1295
|
+
}], routeUrl: [{
|
|
1296
|
+
type: i0.Input
|
|
1297
|
+
}, {
|
|
1298
|
+
type: i0.HostBinding,
|
|
1299
|
+
args: ['attr.routerLink']
|
|
1300
|
+
}], onMouseEnter: [{
|
|
1301
|
+
type: i0.HostListener,
|
|
1302
|
+
args: ['mousedown', ['$event']]
|
|
1303
|
+
}] } });
|
|
1223
1304
|
|
|
1224
1305
|
var NavigationModule = /** @class */ (function () {
|
|
1225
1306
|
function NavigationModule() {
|
|
1226
1307
|
}
|
|
1227
1308
|
return NavigationModule;
|
|
1228
1309
|
}());
|
|
1229
|
-
NavigationModule
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1310
|
+
NavigationModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NavigationModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1311
|
+
NavigationModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NavigationModule, declarations: [NavigationDirective], imports: [i4.CommonModule], exports: [NavigationDirective] });
|
|
1312
|
+
NavigationModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NavigationModule, imports: [[
|
|
1313
|
+
i4.CommonModule,
|
|
1314
|
+
]] });
|
|
1315
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NavigationModule, decorators: [{
|
|
1316
|
+
type: i0.NgModule,
|
|
1317
|
+
args: [{
|
|
1318
|
+
declarations: [NavigationDirective],
|
|
1319
|
+
imports: [
|
|
1320
|
+
i4.CommonModule,
|
|
1321
|
+
],
|
|
1322
|
+
exports: [NavigationDirective],
|
|
1323
|
+
}]
|
|
1324
|
+
}] });
|
|
1238
1325
|
|
|
1239
1326
|
var PermissionDirective = /** @class */ (function () {
|
|
1240
1327
|
function PermissionDirective() {
|
|
1241
1328
|
}
|
|
1242
1329
|
return PermissionDirective;
|
|
1243
1330
|
}());
|
|
1244
|
-
PermissionDirective
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1331
|
+
PermissionDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PermissionDirective, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1332
|
+
PermissionDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.17", type: PermissionDirective, selector: "[wsUtilsPermission]", ngImport: i0__namespace });
|
|
1333
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PermissionDirective, decorators: [{
|
|
1334
|
+
type: i0.Directive,
|
|
1335
|
+
args: [{
|
|
1336
|
+
selector: '[wsUtilsPermission]',
|
|
1337
|
+
}]
|
|
1338
|
+
}], ctorParameters: function () { return []; } });
|
|
1250
1339
|
|
|
1251
1340
|
var PermissionModule = /** @class */ (function () {
|
|
1252
1341
|
function PermissionModule() {
|
|
1253
1342
|
}
|
|
1254
1343
|
return PermissionModule;
|
|
1255
1344
|
}());
|
|
1256
|
-
PermissionModule
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1345
|
+
PermissionModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PermissionModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1346
|
+
PermissionModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PermissionModule, declarations: [PermissionDirective], imports: [i4.CommonModule], exports: [PermissionDirective] });
|
|
1347
|
+
PermissionModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PermissionModule, imports: [[
|
|
1348
|
+
i4.CommonModule,
|
|
1349
|
+
]] });
|
|
1350
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PermissionModule, decorators: [{
|
|
1351
|
+
type: i0.NgModule,
|
|
1352
|
+
args: [{
|
|
1353
|
+
declarations: [PermissionDirective],
|
|
1354
|
+
imports: [
|
|
1355
|
+
i4.CommonModule,
|
|
1356
|
+
],
|
|
1357
|
+
exports: [PermissionDirective],
|
|
1358
|
+
}]
|
|
1359
|
+
}] });
|
|
1265
1360
|
|
|
1266
1361
|
function getStringifiedQueryParams(obj) {
|
|
1267
1362
|
return Object.entries(obj)
|
|
@@ -1347,38 +1442,55 @@
|
|
|
1347
1442
|
};
|
|
1348
1443
|
return HorizontalScrollerComponent;
|
|
1349
1444
|
}());
|
|
1350
|
-
HorizontalScrollerComponent
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1445
|
+
HorizontalScrollerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: HorizontalScrollerComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1446
|
+
HorizontalScrollerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: HorizontalScrollerComponent, selector: "ws-utils-horizontal-scroller", inputs: { loadStatus: "loadStatus", onHover: "onHover" }, outputs: { loadNext: "loadNext" }, viewQueries: [{ propertyName: "horizontalScrollElem", first: true, predicate: ["horizontalScrollElem"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<section class=\"horizontal-scroll-container h-full\">\r\n <button i18n-aria-label name=\"content-backward-button\" mat-mini-fab color=\"primary\" (click)=\"showPrev()\"\r\n class=\"prevBtn hidden-touch border-radius-xs\" [hidden]=\"!enablePrev\" [ngClass]=\"{'prevBtnHover': onHover}\">\r\n <mat-icon>navigate_before</mat-icon>\r\n </button>\r\n <div name=\"horizontal-scroll-content-strip\" class=\"horizontal-scroll-content\" #horizontalScrollElem>\r\n <ng-content></ng-content>\r\n </div>\r\n <button i18n-aria-label name=\"content-forward-button\" mat-mini-fab (click)=\"showNext()\" color=\"primary\"\r\n class=\"nextBtn hidden-touch border-radius-xs\" [ngClass]=\"{'nextBtnHover': onHover}\"\r\n [hidden]=\"!enableNext || loadStatus === 'fetching'\">\r\n <mat-icon>navigate_next</mat-icon>\r\n </button>\r\n <div class=\"nextLoading\" *ngIf=\"loadStatus === 'fetching'\">\r\n <mat-spinner></mat-spinner>\r\n </div>\r\n</section>", styles: [".horizontal-scroll-container{position:relative;width:100%;min-height:100px}.nextLoading,.nextBtn,.prevBtn{position:absolute;top:50%;transform:translateY(-50%);z-index:999}.border-radius-xs{border-radius:8px!important}.prevBtn{left:-16px}.nextBtn{right:-16px}.nextLoading{padding:0;right:-16px}.horizontal-scroll-content{overflow-x:auto;-webkit-overflow-scrolling:touch;height:100%;flex-wrap:nowrap;display:flex;align-items:stretch;-ms-overflow-style:none}.horizontal-scroll-content::-webkit-scrollbar{width:0px;height:0px}\n"], components: [{ type: i6__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i5__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i3__namespace$1.MatSpinner, selector: "mat-spinner", inputs: ["color"] }], directives: [{ type: i4__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1447
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: HorizontalScrollerComponent, decorators: [{
|
|
1448
|
+
type: i0.Component,
|
|
1449
|
+
args: [{
|
|
1450
|
+
selector: 'ws-utils-horizontal-scroller',
|
|
1451
|
+
templateUrl: './horizontal-scroller.component.html',
|
|
1452
|
+
styleUrls: ['./horizontal-scroller.component.scss'],
|
|
1453
|
+
}]
|
|
1454
|
+
}], ctorParameters: function () { return []; }, propDecorators: { loadStatus: [{
|
|
1455
|
+
type: i0.Input
|
|
1456
|
+
}], onHover: [{
|
|
1457
|
+
type: i0.Input
|
|
1458
|
+
}], loadNext: [{
|
|
1459
|
+
type: i0.Output
|
|
1460
|
+
}], horizontalScrollElem: [{
|
|
1461
|
+
type: i0.ViewChild,
|
|
1462
|
+
args: ['horizontalScrollElem', { static: true }]
|
|
1463
|
+
}] } });
|
|
1364
1464
|
|
|
1365
1465
|
var HorizontalScrollerModule = /** @class */ (function () {
|
|
1366
1466
|
function HorizontalScrollerModule() {
|
|
1367
1467
|
}
|
|
1368
1468
|
return HorizontalScrollerModule;
|
|
1369
1469
|
}());
|
|
1370
|
-
HorizontalScrollerModule
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1470
|
+
HorizontalScrollerModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: HorizontalScrollerModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1471
|
+
HorizontalScrollerModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: HorizontalScrollerModule, declarations: [HorizontalScrollerComponent], imports: [i4.CommonModule,
|
|
1472
|
+
i6.MatButtonModule,
|
|
1473
|
+
i5.MatIconModule,
|
|
1474
|
+
i3$1.MatProgressSpinnerModule], exports: [HorizontalScrollerComponent] });
|
|
1475
|
+
HorizontalScrollerModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: HorizontalScrollerModule, imports: [[
|
|
1476
|
+
i4.CommonModule,
|
|
1477
|
+
i6.MatButtonModule,
|
|
1478
|
+
i5.MatIconModule,
|
|
1479
|
+
i3$1.MatProgressSpinnerModule,
|
|
1480
|
+
]] });
|
|
1481
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: HorizontalScrollerModule, decorators: [{
|
|
1482
|
+
type: i0.NgModule,
|
|
1483
|
+
args: [{
|
|
1484
|
+
declarations: [HorizontalScrollerComponent],
|
|
1485
|
+
imports: [
|
|
1486
|
+
i4.CommonModule,
|
|
1487
|
+
i6.MatButtonModule,
|
|
1488
|
+
i5.MatIconModule,
|
|
1489
|
+
i3$1.MatProgressSpinnerModule,
|
|
1490
|
+
],
|
|
1491
|
+
exports: [HorizontalScrollerComponent],
|
|
1492
|
+
}]
|
|
1493
|
+
}] });
|
|
1382
1494
|
|
|
1383
1495
|
/******************************************************************************
|
|
1384
1496
|
Copyright (c) Microsoft Corporation.
|
|
@@ -1865,707 +1977,192 @@
|
|
|
1865
1977
|
__disposeResources: __disposeResources,
|
|
1866
1978
|
};
|
|
1867
1979
|
|
|
1868
|
-
var
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
this.
|
|
1873
|
-
this.consoleLog = console.log;
|
|
1874
|
-
this.consoleWarn = console.warn;
|
|
1875
|
-
this.noConsole = function () { };
|
|
1980
|
+
var storage$1 = localStorage;
|
|
1981
|
+
var storageKey$1 = 'kc';
|
|
1982
|
+
var AuthKeycloakService = /** @class */ (function () {
|
|
1983
|
+
function AuthKeycloakService() {
|
|
1984
|
+
this.loginChangeSubject = new rxjs.ReplaySubject(1);
|
|
1876
1985
|
}
|
|
1877
|
-
Object.defineProperty(
|
|
1986
|
+
Object.defineProperty(AuthKeycloakService.prototype, "isLoggedIn$", {
|
|
1878
1987
|
get: function () {
|
|
1879
|
-
return this.
|
|
1988
|
+
return this.loginChangeSubject.asObservable();
|
|
1880
1989
|
},
|
|
1881
1990
|
enumerable: false,
|
|
1882
1991
|
configurable: true
|
|
1883
1992
|
});
|
|
1884
|
-
|
|
1993
|
+
AuthKeycloakService.prototype.logout = function (_redirectUrl) {
|
|
1994
|
+
if (_redirectUrl === void 0) { _redirectUrl = this.defaultRedirectUrl; }
|
|
1995
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1996
|
+
return __generator(this, function (_b) {
|
|
1997
|
+
window.location.href = _redirectUrl + "public/logout";
|
|
1998
|
+
return [2 /*return*/];
|
|
1999
|
+
});
|
|
2000
|
+
});
|
|
2001
|
+
};
|
|
2002
|
+
AuthKeycloakService.prototype.force_logout = function () {
|
|
2003
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2004
|
+
return __generator(this, function (_b) {
|
|
2005
|
+
if (storage$1.getItem('telemetrySessionId')) {
|
|
2006
|
+
storage$1.removeItem('telemetrySessionId');
|
|
2007
|
+
}
|
|
2008
|
+
storage$1.removeItem(storageKey$1);
|
|
2009
|
+
if (localStorage.getItem('login') === 'true') {
|
|
2010
|
+
try {
|
|
2011
|
+
sessionStorage.clear();
|
|
2012
|
+
localStorage.clear();
|
|
2013
|
+
}
|
|
2014
|
+
catch (_a) {
|
|
2015
|
+
}
|
|
2016
|
+
window.location.href = this.defaultRedirectUrl + "apis/reset";
|
|
2017
|
+
}
|
|
2018
|
+
else {
|
|
2019
|
+
window.location.href = this.defaultRedirectUrl + "public/logout";
|
|
2020
|
+
}
|
|
2021
|
+
return [2 /*return*/];
|
|
2022
|
+
});
|
|
2023
|
+
});
|
|
2024
|
+
};
|
|
2025
|
+
Object.defineProperty(AuthKeycloakService.prototype, "defaultRedirectUrl", {
|
|
1885
2026
|
get: function () {
|
|
1886
|
-
|
|
2027
|
+
try {
|
|
2028
|
+
var baseUrl = document.baseURI;
|
|
2029
|
+
return baseUrl || location.origin;
|
|
2030
|
+
}
|
|
2031
|
+
catch (error) {
|
|
2032
|
+
return location.origin;
|
|
2033
|
+
}
|
|
1887
2034
|
},
|
|
1888
2035
|
enumerable: false,
|
|
1889
2036
|
configurable: true
|
|
1890
2037
|
});
|
|
1891
|
-
|
|
2038
|
+
return AuthKeycloakService;
|
|
2039
|
+
}());
|
|
2040
|
+
AuthKeycloakService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AuthKeycloakService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
2041
|
+
AuthKeycloakService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AuthKeycloakService, providedIn: 'root' });
|
|
2042
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AuthKeycloakService, decorators: [{
|
|
2043
|
+
type: i0.Injectable,
|
|
2044
|
+
args: [{
|
|
2045
|
+
providedIn: 'root',
|
|
2046
|
+
}]
|
|
2047
|
+
}], ctorParameters: function () { return []; } });
|
|
2048
|
+
|
|
2049
|
+
var RANDOM_ID_PER_USER = 0;
|
|
2050
|
+
var UtilityService = /** @class */ (function () {
|
|
2051
|
+
function UtilityService(http, platform, router, route) {
|
|
2052
|
+
var _this = this;
|
|
2053
|
+
this.http = http;
|
|
2054
|
+
this.platform = platform;
|
|
2055
|
+
this.router = router;
|
|
2056
|
+
this.route = route;
|
|
2057
|
+
this.currentRouteData = [];
|
|
2058
|
+
this.router.events.subscribe(function (event) {
|
|
2059
|
+
if (event instanceof i3$2.NavigationEnd) {
|
|
2060
|
+
var snapshot = _this.route.snapshot;
|
|
2061
|
+
var firstChild = snapshot.root.firstChild;
|
|
2062
|
+
_this.getChildRouteData(snapshot, firstChild);
|
|
2063
|
+
}
|
|
2064
|
+
});
|
|
2065
|
+
}
|
|
2066
|
+
UtilityService.prototype.getChildRouteData = function (snapshot, firstChild) {
|
|
2067
|
+
if (firstChild) {
|
|
2068
|
+
if (firstChild.data) {
|
|
2069
|
+
this.currentRouteData.push(firstChild.data);
|
|
2070
|
+
}
|
|
2071
|
+
if (firstChild.firstChild) {
|
|
2072
|
+
this.getChildRouteData(snapshot, firstChild.firstChild);
|
|
2073
|
+
}
|
|
2074
|
+
}
|
|
2075
|
+
};
|
|
2076
|
+
Object.defineProperty(UtilityService.prototype, "randomId", {
|
|
1892
2077
|
get: function () {
|
|
1893
|
-
return
|
|
2078
|
+
return RANDOM_ID_PER_USER + 1;
|
|
1894
2079
|
},
|
|
1895
2080
|
enumerable: false,
|
|
1896
2081
|
configurable: true
|
|
1897
2082
|
});
|
|
1898
|
-
|
|
2083
|
+
UtilityService.prototype.getJson = function (url) {
|
|
2084
|
+
return this.http.get(url);
|
|
2085
|
+
};
|
|
2086
|
+
UtilityService.prototype.getLeafNodes = function (node, nodes) {
|
|
2087
|
+
var _this = this;
|
|
2088
|
+
if ((node.children || []).length === 0) {
|
|
2089
|
+
nodes.push(node);
|
|
2090
|
+
}
|
|
2091
|
+
else {
|
|
2092
|
+
if (node.children) {
|
|
2093
|
+
node.children.forEach(function (child) {
|
|
2094
|
+
_this.getLeafNodes(child, nodes);
|
|
2095
|
+
});
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
return nodes;
|
|
2099
|
+
};
|
|
2100
|
+
UtilityService.prototype.getPath = function (node, id) {
|
|
2101
|
+
var path = [];
|
|
2102
|
+
this.hasPath(node, path, id);
|
|
2103
|
+
return path;
|
|
2104
|
+
};
|
|
2105
|
+
UtilityService.prototype.hasPath = function (node, pathArr, id) {
|
|
2106
|
+
var _this = this;
|
|
2107
|
+
if (node == null) {
|
|
2108
|
+
return false;
|
|
2109
|
+
}
|
|
2110
|
+
pathArr.push(node);
|
|
2111
|
+
if (node.identifier === id) {
|
|
2112
|
+
return true;
|
|
2113
|
+
}
|
|
2114
|
+
var children = node.children || [];
|
|
2115
|
+
if (children.some(function (u) { return _this.hasPath(u, pathArr, id); })) {
|
|
2116
|
+
return true;
|
|
2117
|
+
}
|
|
2118
|
+
pathArr.pop();
|
|
2119
|
+
return false;
|
|
2120
|
+
};
|
|
2121
|
+
Object.defineProperty(UtilityService.prototype, "isMobile", {
|
|
1899
2122
|
get: function () {
|
|
1900
|
-
|
|
2123
|
+
if (this.isIos || this.isAndroid) {
|
|
2124
|
+
return true;
|
|
2125
|
+
}
|
|
2126
|
+
return false;
|
|
1901
2127
|
},
|
|
1902
2128
|
enumerable: false,
|
|
1903
2129
|
configurable: true
|
|
1904
2130
|
});
|
|
1905
|
-
|
|
1906
|
-
if (this.configSvc.isProduction) {
|
|
1907
|
-
return;
|
|
1908
|
-
}
|
|
1909
|
-
var noConsoleWithError = function () {
|
|
1910
|
-
throw new Error('Console Functions Usage Are Not Allowed.');
|
|
1911
|
-
};
|
|
1912
|
-
console.warn = noConsoleWithError;
|
|
1913
|
-
console.info = noConsoleWithError;
|
|
1914
|
-
console.error = noConsoleWithError;
|
|
1915
|
-
};
|
|
1916
|
-
return LoggerService;
|
|
1917
|
-
}());
|
|
1918
|
-
LoggerService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LoggerService_Factory() { return new LoggerService(i0__namespace.ɵɵinject(ConfigurationsService)); }, token: LoggerService, providedIn: "root" });
|
|
1919
|
-
LoggerService.decorators = [
|
|
1920
|
-
{ type: i0.Injectable, args: [{
|
|
1921
|
-
providedIn: 'root',
|
|
1922
|
-
},] }
|
|
1923
|
-
];
|
|
1924
|
-
LoggerService.ctorParameters = function () { return [
|
|
1925
|
-
{ type: ConfigurationsService }
|
|
1926
|
-
]; };
|
|
1927
|
-
|
|
1928
|
-
var msTokenExpiryDuration = 600;
|
|
1929
|
-
var storageKey$1 = 'msLoginRequested';
|
|
1930
|
-
var storage$1 = localStorage;
|
|
1931
|
-
var API_ENDPOINTS = {
|
|
1932
|
-
sharePointToken: '/apis/protected/v8/user/token',
|
|
1933
|
-
};
|
|
1934
|
-
var AuthMicrosoftService = /** @class */ (function () {
|
|
1935
|
-
function AuthMicrosoftService(loggerSvc, http) {
|
|
1936
|
-
this.loggerSvc = loggerSvc;
|
|
1937
|
-
this.http = http;
|
|
1938
|
-
this.msConfig = {
|
|
1939
|
-
clientId: '',
|
|
1940
|
-
tenant: '',
|
|
1941
|
-
defaultEmailId: '',
|
|
1942
|
-
validEmailExtensions: [],
|
|
1943
|
-
isConfigured: false,
|
|
1944
|
-
};
|
|
1945
|
-
this.emailUsed = null;
|
|
1946
|
-
this.code = null;
|
|
1947
|
-
this.msToken = {
|
|
1948
|
-
accessToken: '',
|
|
1949
|
-
expiresOn: '',
|
|
1950
|
-
resource: '',
|
|
1951
|
-
tokenType: '',
|
|
1952
|
-
};
|
|
1953
|
-
}
|
|
1954
|
-
Object.defineProperty(AuthMicrosoftService.prototype, "isLogoutRequired", {
|
|
2131
|
+
Object.defineProperty(UtilityService.prototype, "isIos", {
|
|
1955
2132
|
get: function () {
|
|
1956
|
-
return
|
|
2133
|
+
return this.platform.IOS;
|
|
1957
2134
|
},
|
|
1958
2135
|
enumerable: false,
|
|
1959
2136
|
configurable: true
|
|
1960
2137
|
});
|
|
1961
|
-
Object.defineProperty(
|
|
2138
|
+
Object.defineProperty(UtilityService.prototype, "isAndroid", {
|
|
1962
2139
|
get: function () {
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
2140
|
+
return this.platform.ANDROID;
|
|
2141
|
+
},
|
|
2142
|
+
enumerable: false,
|
|
2143
|
+
configurable: true
|
|
2144
|
+
});
|
|
2145
|
+
Object.defineProperty(UtilityService.prototype, "isAndroidApp", {
|
|
2146
|
+
get: function () {
|
|
2147
|
+
return Boolean(window.appRef);
|
|
2148
|
+
},
|
|
2149
|
+
enumerable: false,
|
|
2150
|
+
configurable: true
|
|
2151
|
+
});
|
|
2152
|
+
Object.defineProperty(UtilityService.prototype, "iOsAppRef", {
|
|
2153
|
+
get: function () {
|
|
2154
|
+
if (window.webkit &&
|
|
2155
|
+
window.webkit.messageHandlers &&
|
|
2156
|
+
window.webkit.messageHandlers.appRef) {
|
|
2157
|
+
return window.webkit.messageHandlers.appRef;
|
|
1975
2158
|
}
|
|
1976
2159
|
return null;
|
|
1977
2160
|
},
|
|
1978
2161
|
enumerable: false,
|
|
1979
2162
|
configurable: true
|
|
1980
2163
|
});
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
return "https://login.microsoftonline.com/common/oauth2/logout?post_logout_redirect_uri=" + redirectUrl;
|
|
1984
|
-
}
|
|
1985
|
-
return redirectUrl;
|
|
1986
|
-
};
|
|
1987
|
-
AuthMicrosoftService.prototype.init = function (config) {
|
|
1988
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1989
|
-
var queryParams, url;
|
|
1990
|
-
return __generator(this, function (_a) {
|
|
1991
|
-
switch (_a.label) {
|
|
1992
|
-
case 0:
|
|
1993
|
-
if (!config || !config.microsoft || !config.microsoft.isConfigured) {
|
|
1994
|
-
this.loggerSvc.warn('Empty/No Configuration passed, ignoring Microsoft Authentication');
|
|
1995
|
-
}
|
|
1996
|
-
this.msConfig = config.microsoft;
|
|
1997
|
-
queryParams = new URLSearchParams(location.search);
|
|
1998
|
-
if (!(queryParams.has('code') && queryParams.has('session_state'))) return [3 /*break*/, 2];
|
|
1999
|
-
this.code = queryParams.get('code');
|
|
2000
|
-
if (!this.code) {
|
|
2001
|
-
return [2 /*return*/];
|
|
2002
|
-
}
|
|
2003
|
-
url = location.origin + location.pathname;
|
|
2004
|
-
return [4 /*yield*/, this.exchangeTokenForCode(this.code, url)];
|
|
2005
|
-
case 1:
|
|
2006
|
-
_a.sent();
|
|
2007
|
-
if (location.hash) {
|
|
2008
|
-
url += location.hash.substring(1);
|
|
2009
|
-
}
|
|
2010
|
-
history.replaceState(null, '', url);
|
|
2011
|
-
_a.label = 2;
|
|
2012
|
-
case 2: return [2 /*return*/];
|
|
2013
|
-
}
|
|
2014
|
-
});
|
|
2015
|
-
});
|
|
2016
|
-
};
|
|
2017
|
-
AuthMicrosoftService.prototype.login = function (email) {
|
|
2018
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2019
|
-
var loginUrl;
|
|
2020
|
-
return __generator(this, function (_a) {
|
|
2021
|
-
if (!this.isValidEmail(email)) {
|
|
2022
|
-
this.loggerSvc.warn("Microsoft Login is not allowed for your emailId (" + email + ")");
|
|
2023
|
-
return [2 /*return*/];
|
|
2024
|
-
}
|
|
2025
|
-
loginUrl = this.loginUrl;
|
|
2026
|
-
if (loginUrl) {
|
|
2027
|
-
location.assign(loginUrl);
|
|
2028
|
-
}
|
|
2029
|
-
else {
|
|
2030
|
-
this.loggerSvc.warn('Unable to identify Office Login URL, Ignoring login request');
|
|
2031
|
-
}
|
|
2032
|
-
return [2 /*return*/];
|
|
2033
|
-
});
|
|
2034
|
-
});
|
|
2035
|
-
};
|
|
2036
|
-
AuthMicrosoftService.prototype.getToken = function (email) {
|
|
2037
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2038
|
-
var _a, error_1, _b, error_2;
|
|
2039
|
-
return __generator(this, function (_c) {
|
|
2040
|
-
switch (_c.label) {
|
|
2041
|
-
case 0:
|
|
2042
|
-
if (this.msToken &&
|
|
2043
|
-
this.isValid(this.msToken.accessToken, this.msToken.expiresOn) &&
|
|
2044
|
-
this.msToken.accessToken) {
|
|
2045
|
-
return [2 /*return*/, this.msToken.accessToken];
|
|
2046
|
-
}
|
|
2047
|
-
if (!this.isValidEmail(email)) return [3 /*break*/, 4];
|
|
2048
|
-
_c.label = 1;
|
|
2049
|
-
case 1:
|
|
2050
|
-
_c.trys.push([1, 3, , 4]);
|
|
2051
|
-
_a = this;
|
|
2052
|
-
return [4 /*yield*/, this.getTokenForEmail(email)];
|
|
2053
|
-
case 2:
|
|
2054
|
-
_a.msToken = _c.sent();
|
|
2055
|
-
if (this.msToken.accessToken) {
|
|
2056
|
-
this.emailUsed = email;
|
|
2057
|
-
return [2 /*return*/, this.msToken.accessToken];
|
|
2058
|
-
}
|
|
2059
|
-
return [3 /*break*/, 4];
|
|
2060
|
-
case 3:
|
|
2061
|
-
error_1 = _c.sent();
|
|
2062
|
-
if (!this.code) {
|
|
2063
|
-
this.login(email);
|
|
2064
|
-
}
|
|
2065
|
-
return [3 /*break*/, 4];
|
|
2066
|
-
case 4:
|
|
2067
|
-
if (!(this.msConfig.defaultEmailId && this.isValidEmail(this.msConfig.defaultEmailId))) return [3 /*break*/, 8];
|
|
2068
|
-
_c.label = 5;
|
|
2069
|
-
case 5:
|
|
2070
|
-
_c.trys.push([5, 7, , 8]);
|
|
2071
|
-
_b = this;
|
|
2072
|
-
return [4 /*yield*/, this.getTokenForEmail(this.msConfig.defaultEmailId)];
|
|
2073
|
-
case 6:
|
|
2074
|
-
_b.msToken = _c.sent();
|
|
2075
|
-
if (this.msToken.accessToken) {
|
|
2076
|
-
this.emailUsed = this.msConfig.defaultEmailId;
|
|
2077
|
-
return [2 /*return*/, this.msToken.accessToken];
|
|
2078
|
-
}
|
|
2079
|
-
return [3 /*break*/, 8];
|
|
2080
|
-
case 7:
|
|
2081
|
-
error_2 = _c.sent();
|
|
2082
|
-
return [3 /*break*/, 8];
|
|
2083
|
-
case 8: throw new Error('UNABLE TO FETCH MS AUTH TOKEN');
|
|
2084
|
-
}
|
|
2085
|
-
});
|
|
2086
|
-
});
|
|
2087
|
-
};
|
|
2088
|
-
AuthMicrosoftService.prototype.loginForSSOEnabledEmbed = function (email) {
|
|
2089
|
-
if (!this.isValidEmail(email)) {
|
|
2090
|
-
this.loggerSvc.warn('SSO Login request Ignored. Invalid Email Id for SSO Enabled Content');
|
|
2091
|
-
}
|
|
2092
|
-
var msPrevTS = 0;
|
|
2093
|
-
try {
|
|
2094
|
-
msPrevTS = parseInt(storage$1.getItem(storageKey$1) || '0', 10);
|
|
2095
|
-
}
|
|
2096
|
-
catch (error) { }
|
|
2097
|
-
if (!msPrevTS || (msPrevTS && (Date.now() - msPrevTS) / 1000 > msTokenExpiryDuration)) {
|
|
2098
|
-
this.loggerSvc.info("last login exceeded " + msTokenExpiryDuration + " duration. Redirecting to O365 login");
|
|
2099
|
-
storage$1.setItem(storageKey$1, Date.now().toString());
|
|
2100
|
-
this.login(email);
|
|
2101
|
-
}
|
|
2102
|
-
};
|
|
2103
|
-
AuthMicrosoftService.prototype.isValidEmail = function (email) {
|
|
2104
|
-
return this.msConfig.validEmailExtensions.some(function (ext) { return email.endsWith(ext); });
|
|
2105
|
-
};
|
|
2106
|
-
AuthMicrosoftService.prototype.isValid = function (accessToken, expiresOn) {
|
|
2107
|
-
if (accessToken && expiresOn) {
|
|
2108
|
-
return true;
|
|
2109
|
-
}
|
|
2110
|
-
return false;
|
|
2111
|
-
};
|
|
2112
|
-
AuthMicrosoftService.prototype.exchangeTokenForCode = function (code, redirectUrl) {
|
|
2113
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2114
|
-
var response;
|
|
2115
|
-
return __generator(this, function (_a) {
|
|
2116
|
-
switch (_a.label) {
|
|
2117
|
-
case 0: return [4 /*yield*/, this.http
|
|
2118
|
-
.get(API_ENDPOINTS + "?code=" + code + "&redirectUrl=" + redirectUrl)
|
|
2119
|
-
.toPromise()];
|
|
2120
|
-
case 1:
|
|
2121
|
-
response = _a.sent();
|
|
2122
|
-
return [2 /*return*/, this.getInstanceFromResponse(response)];
|
|
2123
|
-
}
|
|
2124
|
-
});
|
|
2125
|
-
});
|
|
2126
|
-
};
|
|
2127
|
-
AuthMicrosoftService.prototype.getTokenForEmail = function (email) {
|
|
2128
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2129
|
-
var response;
|
|
2130
|
-
return __generator(this, function (_a) {
|
|
2131
|
-
switch (_a.label) {
|
|
2132
|
-
case 0: return [4 /*yield*/, this.http
|
|
2133
|
-
.get(API_ENDPOINTS.sharePointToken + "?email=" + email)
|
|
2134
|
-
.toPromise()];
|
|
2135
|
-
case 1:
|
|
2136
|
-
response = _a.sent();
|
|
2137
|
-
return [2 /*return*/, this.getInstanceFromResponse(response)];
|
|
2138
|
-
}
|
|
2139
|
-
});
|
|
2140
|
-
});
|
|
2141
|
-
};
|
|
2142
|
-
AuthMicrosoftService.prototype.getInstanceFromResponse = function (token) {
|
|
2143
|
-
return {
|
|
2144
|
-
accessToken: token.accessToken,
|
|
2145
|
-
expiresOn: token.expiresOn,
|
|
2146
|
-
resource: token.resource,
|
|
2147
|
-
tokenType: token.tokenType,
|
|
2148
|
-
};
|
|
2149
|
-
};
|
|
2150
|
-
return AuthMicrosoftService;
|
|
2151
|
-
}());
|
|
2152
|
-
AuthMicrosoftService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AuthMicrosoftService_Factory() { return new AuthMicrosoftService(i0__namespace.ɵɵinject(LoggerService), i0__namespace.ɵɵinject(i1__namespace$1.HttpClient)); }, token: AuthMicrosoftService, providedIn: "root" });
|
|
2153
|
-
AuthMicrosoftService.decorators = [
|
|
2154
|
-
{ type: i0.Injectable, args: [{
|
|
2155
|
-
providedIn: 'root',
|
|
2156
|
-
},] }
|
|
2157
|
-
];
|
|
2158
|
-
AuthMicrosoftService.ctorParameters = function () { return [
|
|
2159
|
-
{ type: LoggerService },
|
|
2160
|
-
{ type: i1$1.HttpClient }
|
|
2161
|
-
]; };
|
|
2162
|
-
|
|
2163
|
-
var storage = localStorage;
|
|
2164
|
-
var storageKey = 'kc';
|
|
2165
|
-
var AuthKeycloakService = /** @class */ (function () {
|
|
2166
|
-
function AuthKeycloakService(configSvc, keycloakSvc, msAuthSvc) {
|
|
2167
|
-
var _this = this;
|
|
2168
|
-
this.configSvc = configSvc;
|
|
2169
|
-
this.keycloakSvc = keycloakSvc;
|
|
2170
|
-
this.msAuthSvc = msAuthSvc;
|
|
2171
|
-
this.loginChangeSubject = new rxjs.ReplaySubject(1);
|
|
2172
|
-
this.loginChangeSubject.subscribe(function (isLoggedIn) {
|
|
2173
|
-
_this.configSvc.isAuthenticated = isLoggedIn;
|
|
2174
|
-
if (isLoggedIn &&
|
|
2175
|
-
_this.configSvc.instanceConfig &&
|
|
2176
|
-
Boolean(_this.configSvc.instanceConfig.disablePidCheck)) {
|
|
2177
|
-
_this.configSvc.userProfile = {
|
|
2178
|
-
email: _this.userEmail,
|
|
2179
|
-
userName: _this.userName,
|
|
2180
|
-
userId: _this.userId || '',
|
|
2181
|
-
};
|
|
2182
|
-
}
|
|
2183
|
-
});
|
|
2184
|
-
}
|
|
2185
|
-
Object.defineProperty(AuthKeycloakService.prototype, "isLoggedIn$", {
|
|
2186
|
-
get: function () {
|
|
2187
|
-
return this.loginChangeSubject.asObservable();
|
|
2188
|
-
},
|
|
2189
|
-
enumerable: false,
|
|
2190
|
-
configurable: true
|
|
2191
|
-
});
|
|
2192
|
-
Object.defineProperty(AuthKeycloakService.prototype, "isLoggedIn", {
|
|
2193
|
-
get: function () {
|
|
2194
|
-
return this.keycloakSvc.isLoggedIn();
|
|
2195
|
-
},
|
|
2196
|
-
enumerable: false,
|
|
2197
|
-
configurable: true
|
|
2198
|
-
});
|
|
2199
|
-
Object.defineProperty(AuthKeycloakService.prototype, "isAuthenticated", {
|
|
2200
|
-
get: function () {
|
|
2201
|
-
return this.keycloakSvc.getKeycloakInstance().authenticated;
|
|
2202
|
-
},
|
|
2203
|
-
enumerable: false,
|
|
2204
|
-
configurable: true
|
|
2205
|
-
});
|
|
2206
|
-
Object.defineProperty(AuthKeycloakService.prototype, "token", {
|
|
2207
|
-
get: function () {
|
|
2208
|
-
return this.keycloakSvc.getKeycloakInstance().token;
|
|
2209
|
-
},
|
|
2210
|
-
enumerable: false,
|
|
2211
|
-
configurable: true
|
|
2212
|
-
});
|
|
2213
|
-
Object.defineProperty(AuthKeycloakService.prototype, "sessionId", {
|
|
2214
|
-
get: function () {
|
|
2215
|
-
return this.keycloakSvc.getKeycloakInstance().sessionId;
|
|
2216
|
-
},
|
|
2217
|
-
enumerable: false,
|
|
2218
|
-
configurable: true
|
|
2219
|
-
});
|
|
2220
|
-
Object.defineProperty(AuthKeycloakService.prototype, "userId", {
|
|
2221
|
-
get: function () {
|
|
2222
|
-
var kc = this.keycloakSvc.getKeycloakInstance();
|
|
2223
|
-
if (!kc) {
|
|
2224
|
-
return;
|
|
2225
|
-
}
|
|
2226
|
-
return (kc.tokenParsed && kc.tokenParsed.sub) || (kc.idTokenParsed && kc.idTokenParsed.sub);
|
|
2227
|
-
},
|
|
2228
|
-
enumerable: false,
|
|
2229
|
-
configurable: true
|
|
2230
|
-
});
|
|
2231
|
-
Object.defineProperty(AuthKeycloakService.prototype, "userEmail", {
|
|
2232
|
-
get: function () {
|
|
2233
|
-
var kc = this.keycloakSvc.getKeycloakInstance();
|
|
2234
|
-
var tokenParsed = kc.tokenParsed;
|
|
2235
|
-
var idTokenParsed = kc.idTokenParsed;
|
|
2236
|
-
return ((tokenParsed && tokenParsed.email) ||
|
|
2237
|
-
(idTokenParsed && idTokenParsed.email) ||
|
|
2238
|
-
(idTokenParsed && idTokenParsed.encEmail) ||
|
|
2239
|
-
(tokenParsed && tokenParsed.preferred_username) ||
|
|
2240
|
-
(idTokenParsed && idTokenParsed.preferred_username));
|
|
2241
|
-
},
|
|
2242
|
-
enumerable: false,
|
|
2243
|
-
configurable: true
|
|
2244
|
-
});
|
|
2245
|
-
Object.defineProperty(AuthKeycloakService.prototype, "userName", {
|
|
2246
|
-
get: function () {
|
|
2247
|
-
var kc = this.keycloakSvc.getKeycloakInstance();
|
|
2248
|
-
return ((kc.tokenParsed && kc.tokenParsed.name) ||
|
|
2249
|
-
(kc.idTokenParsed && kc.idTokenParsed.name));
|
|
2250
|
-
},
|
|
2251
|
-
enumerable: false,
|
|
2252
|
-
configurable: true
|
|
2253
|
-
});
|
|
2254
|
-
AuthKeycloakService.prototype.initAuth = function () {
|
|
2255
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2256
|
-
var instanceConfig, err_1;
|
|
2257
|
-
return __generator(this, function (_b) {
|
|
2258
|
-
switch (_b.label) {
|
|
2259
|
-
case 0:
|
|
2260
|
-
if (!this.configSvc.instanceConfig) {
|
|
2261
|
-
return [2 /*return*/, false];
|
|
2262
|
-
}
|
|
2263
|
-
instanceConfig = this.configSvc.instanceConfig;
|
|
2264
|
-
if (instanceConfig.microsoft.isConfigured) {
|
|
2265
|
-
this.msAuthSvc.init({ microsoft: instanceConfig.microsoft });
|
|
2266
|
-
}
|
|
2267
|
-
_b.label = 1;
|
|
2268
|
-
case 1:
|
|
2269
|
-
_b.trys.push([1, 3, , 4]);
|
|
2270
|
-
this.setupGlobalAuthResponder();
|
|
2271
|
-
this.addKeycloakEventListener();
|
|
2272
|
-
return [4 /*yield*/, this.keycloakSvc.init({
|
|
2273
|
-
config: {
|
|
2274
|
-
url: instanceConfig.keycloak.url,
|
|
2275
|
-
realm: instanceConfig.keycloak.realm,
|
|
2276
|
-
clientId: instanceConfig.keycloak.clientId,
|
|
2277
|
-
},
|
|
2278
|
-
initOptions: Object.assign(Object.assign({}, this.getSavedKcConfig()), { onLoad: instanceConfig.keycloak.onLoad || 'check-sso', checkLoginIframe: false }),
|
|
2279
|
-
enableBearerInterceptor: true,
|
|
2280
|
-
loadUserProfileAtStartUp: false,
|
|
2281
|
-
bearerExcludedUrls: instanceConfig.keycloak.bearerExcludedUrls,
|
|
2282
|
-
})];
|
|
2283
|
-
case 2: return [2 /*return*/, _b.sent()];
|
|
2284
|
-
case 3:
|
|
2285
|
-
err_1 = _b.sent();
|
|
2286
|
-
return [2 /*return*/, false];
|
|
2287
|
-
case 4: return [2 /*return*/];
|
|
2288
|
-
}
|
|
2289
|
-
});
|
|
2290
|
-
});
|
|
2291
|
-
};
|
|
2292
|
-
AuthKeycloakService.prototype.login = function (idpHint, redirectUrl) {
|
|
2293
|
-
if (idpHint === void 0) { idpHint = 'E'; }
|
|
2294
|
-
if (redirectUrl === void 0) { redirectUrl = this.defaultRedirectUrl; }
|
|
2295
|
-
return this.keycloakSvc.login({
|
|
2296
|
-
idpHint: idpHint,
|
|
2297
|
-
redirectUri: redirectUrl,
|
|
2298
|
-
});
|
|
2299
|
-
};
|
|
2300
|
-
AuthKeycloakService.prototype.register = function (redirectUrl) {
|
|
2301
|
-
if (redirectUrl === void 0) { redirectUrl = this.defaultRedirectUrl; }
|
|
2302
|
-
return this.keycloakSvc.register({
|
|
2303
|
-
redirectUri: redirectUrl,
|
|
2304
|
-
});
|
|
2305
|
-
};
|
|
2306
|
-
AuthKeycloakService.prototype.logout = function (_redirectUrl) {
|
|
2307
|
-
if (_redirectUrl === void 0) { _redirectUrl = this.defaultRedirectUrl; }
|
|
2308
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2309
|
-
return __generator(this, function (_b) {
|
|
2310
|
-
window.location.href = _redirectUrl + "public/logout";
|
|
2311
|
-
return [2 /*return*/];
|
|
2312
|
-
});
|
|
2313
|
-
});
|
|
2314
|
-
};
|
|
2315
|
-
AuthKeycloakService.prototype.force_logout = function () {
|
|
2316
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2317
|
-
return __generator(this, function (_b) {
|
|
2318
|
-
if (storage.getItem('telemetrySessionId')) {
|
|
2319
|
-
storage.removeItem('telemetrySessionId');
|
|
2320
|
-
}
|
|
2321
|
-
storage.removeItem(storageKey);
|
|
2322
|
-
if (localStorage.getItem('login') === 'true') {
|
|
2323
|
-
try {
|
|
2324
|
-
sessionStorage.clear();
|
|
2325
|
-
localStorage.clear();
|
|
2326
|
-
}
|
|
2327
|
-
catch (_a) {
|
|
2328
|
-
}
|
|
2329
|
-
window.location.href = this.defaultRedirectUrl + "apis/reset";
|
|
2330
|
-
}
|
|
2331
|
-
else {
|
|
2332
|
-
window.location.href = this.defaultRedirectUrl + "public/logout";
|
|
2333
|
-
}
|
|
2334
|
-
return [2 /*return*/];
|
|
2335
|
-
});
|
|
2336
|
-
});
|
|
2337
|
-
};
|
|
2338
|
-
AuthKeycloakService.prototype.addKeycloakEventListener = function () {
|
|
2339
|
-
var _this = this;
|
|
2340
|
-
this.keycloakSvc.keycloakEvents$.subscribe(function (event) {
|
|
2341
|
-
switch (event.type) {
|
|
2342
|
-
case i2.KeycloakEventType.OnAuthError:
|
|
2343
|
-
_this.loginChangeSubject.next(false);
|
|
2344
|
-
break;
|
|
2345
|
-
case i2.KeycloakEventType.OnAuthLogout:
|
|
2346
|
-
_this.loginChangeSubject.next(false);
|
|
2347
|
-
storage.removeItem(storageKey);
|
|
2348
|
-
break;
|
|
2349
|
-
case i2.KeycloakEventType.OnAuthRefreshError:
|
|
2350
|
-
break;
|
|
2351
|
-
case i2.KeycloakEventType.OnAuthRefreshSuccess:
|
|
2352
|
-
break;
|
|
2353
|
-
case i2.KeycloakEventType.OnAuthSuccess:
|
|
2354
|
-
break;
|
|
2355
|
-
case i2.KeycloakEventType.OnReady:
|
|
2356
|
-
_this.loginChangeSubject.next(event.args);
|
|
2357
|
-
if (event.args) {
|
|
2358
|
-
_this.saveKeycloakConfig();
|
|
2359
|
-
}
|
|
2360
|
-
break;
|
|
2361
|
-
case i2.KeycloakEventType.OnTokenExpired:
|
|
2362
|
-
_this.keycloakSvc.updateToken(60);
|
|
2363
|
-
break;
|
|
2364
|
-
}
|
|
2365
|
-
});
|
|
2366
|
-
};
|
|
2367
|
-
AuthKeycloakService.prototype.setupGlobalAuthResponder = function () {
|
|
2368
|
-
var _this = this;
|
|
2369
|
-
rxjs.fromEvent(window, 'message')
|
|
2370
|
-
.pipe(operators.filter(function (event) { return Boolean(event) &&
|
|
2371
|
-
Boolean(event.data) &&
|
|
2372
|
-
event.data.type === 'AUTH_REQUEST' &&
|
|
2373
|
-
Boolean(event.source && typeof event.source.postMessage === 'function'); }))
|
|
2374
|
-
.subscribe(function (event) { return __awaiter(_this, void 0, void 0, function () {
|
|
2375
|
-
var contentWindow, token, response;
|
|
2376
|
-
return __generator(this, function (_b) {
|
|
2377
|
-
switch (_b.label) {
|
|
2378
|
-
case 0:
|
|
2379
|
-
contentWindow = event.source;
|
|
2380
|
-
return [4 /*yield*/, this.keycloakSvc.getToken()];
|
|
2381
|
-
case 1:
|
|
2382
|
-
token = _b.sent();
|
|
2383
|
-
response = {
|
|
2384
|
-
app: 'WEB_PORTAL',
|
|
2385
|
-
type: 'AUTH_RESPONSE',
|
|
2386
|
-
state: 'NONE',
|
|
2387
|
-
plugin: 'NONE',
|
|
2388
|
-
data: {
|
|
2389
|
-
token: token,
|
|
2390
|
-
id: event.data && event.data.data && event.data.data.id,
|
|
2391
|
-
},
|
|
2392
|
-
};
|
|
2393
|
-
contentWindow.postMessage(response, '*');
|
|
2394
|
-
return [2 /*return*/];
|
|
2395
|
-
}
|
|
2396
|
-
});
|
|
2397
|
-
}); });
|
|
2398
|
-
};
|
|
2399
|
-
AuthKeycloakService.prototype.saveKeycloakConfig = function () {
|
|
2400
|
-
var kc = this.keycloakSvc.getKeycloakInstance();
|
|
2401
|
-
var kcInitOptions = {
|
|
2402
|
-
idToken: kc.idToken,
|
|
2403
|
-
refreshToken: kc.refreshToken,
|
|
2404
|
-
timeSkew: kc.timeSkew,
|
|
2405
|
-
token: kc.token,
|
|
2406
|
-
};
|
|
2407
|
-
storage.setItem(storageKey, JSON.stringify(kcInitOptions));
|
|
2408
|
-
};
|
|
2409
|
-
AuthKeycloakService.prototype.getSavedKcConfig = function () {
|
|
2410
|
-
try {
|
|
2411
|
-
var lastSaved = storage.getItem(storageKey);
|
|
2412
|
-
if (lastSaved) {
|
|
2413
|
-
var processed = JSON.parse(lastSaved);
|
|
2414
|
-
if ('idToken' in processed &&
|
|
2415
|
-
'refreshToken' in processed &&
|
|
2416
|
-
'timeSkew' in processed &&
|
|
2417
|
-
'token' in processed) {
|
|
2418
|
-
return processed;
|
|
2419
|
-
}
|
|
2420
|
-
}
|
|
2421
|
-
}
|
|
2422
|
-
catch (e) { }
|
|
2423
|
-
return {};
|
|
2424
|
-
};
|
|
2425
|
-
Object.defineProperty(AuthKeycloakService.prototype, "defaultRedirectUrl", {
|
|
2426
|
-
get: function () {
|
|
2427
|
-
try {
|
|
2428
|
-
var baseUrl = document.baseURI;
|
|
2429
|
-
return baseUrl || location.origin;
|
|
2430
|
-
}
|
|
2431
|
-
catch (error) {
|
|
2432
|
-
return location.origin;
|
|
2433
|
-
}
|
|
2434
|
-
},
|
|
2435
|
-
enumerable: false,
|
|
2436
|
-
configurable: true
|
|
2437
|
-
});
|
|
2438
|
-
return AuthKeycloakService;
|
|
2439
|
-
}());
|
|
2440
|
-
AuthKeycloakService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AuthKeycloakService_Factory() { return new AuthKeycloakService(i0__namespace.ɵɵinject(ConfigurationsService), i0__namespace.ɵɵinject(i2__namespace.KeycloakService), i0__namespace.ɵɵinject(AuthMicrosoftService)); }, token: AuthKeycloakService, providedIn: "root" });
|
|
2441
|
-
AuthKeycloakService.decorators = [
|
|
2442
|
-
{ type: i0.Injectable, args: [{
|
|
2443
|
-
providedIn: 'root',
|
|
2444
|
-
},] }
|
|
2445
|
-
];
|
|
2446
|
-
AuthKeycloakService.ctorParameters = function () { return [
|
|
2447
|
-
{ type: ConfigurationsService },
|
|
2448
|
-
{ type: i2.KeycloakService },
|
|
2449
|
-
{ type: AuthMicrosoftService }
|
|
2450
|
-
]; };
|
|
2451
|
-
|
|
2452
|
-
var RANDOM_ID_PER_USER = 0;
|
|
2453
|
-
var UtilityService = /** @class */ (function () {
|
|
2454
|
-
function UtilityService(http, platform, router, route) {
|
|
2455
|
-
var _this = this;
|
|
2456
|
-
this.http = http;
|
|
2457
|
-
this.platform = platform;
|
|
2458
|
-
this.router = router;
|
|
2459
|
-
this.route = route;
|
|
2460
|
-
this.currentRouteData = [];
|
|
2461
|
-
this.router.events.subscribe(function (event) {
|
|
2462
|
-
if (event instanceof i3.NavigationEnd) {
|
|
2463
|
-
var snapshot = _this.route.snapshot;
|
|
2464
|
-
var firstChild = snapshot.root.firstChild;
|
|
2465
|
-
_this.getChildRouteData(snapshot, firstChild);
|
|
2466
|
-
}
|
|
2467
|
-
});
|
|
2468
|
-
}
|
|
2469
|
-
UtilityService.prototype.getChildRouteData = function (snapshot, firstChild) {
|
|
2470
|
-
if (firstChild) {
|
|
2471
|
-
if (firstChild.data) {
|
|
2472
|
-
this.currentRouteData.push(firstChild.data);
|
|
2473
|
-
}
|
|
2474
|
-
if (firstChild.firstChild) {
|
|
2475
|
-
this.getChildRouteData(snapshot, firstChild.firstChild);
|
|
2476
|
-
}
|
|
2477
|
-
}
|
|
2478
|
-
};
|
|
2479
|
-
Object.defineProperty(UtilityService.prototype, "randomId", {
|
|
2480
|
-
get: function () {
|
|
2481
|
-
return RANDOM_ID_PER_USER + 1;
|
|
2482
|
-
},
|
|
2483
|
-
enumerable: false,
|
|
2484
|
-
configurable: true
|
|
2485
|
-
});
|
|
2486
|
-
UtilityService.prototype.getJson = function (url) {
|
|
2487
|
-
return this.http.get(url);
|
|
2488
|
-
};
|
|
2489
|
-
UtilityService.prototype.getLeafNodes = function (node, nodes) {
|
|
2490
|
-
var _this = this;
|
|
2491
|
-
if ((node.children || []).length === 0) {
|
|
2492
|
-
nodes.push(node);
|
|
2493
|
-
}
|
|
2494
|
-
else {
|
|
2495
|
-
if (node.children) {
|
|
2496
|
-
node.children.forEach(function (child) {
|
|
2497
|
-
_this.getLeafNodes(child, nodes);
|
|
2498
|
-
});
|
|
2499
|
-
}
|
|
2500
|
-
}
|
|
2501
|
-
return nodes;
|
|
2502
|
-
};
|
|
2503
|
-
UtilityService.prototype.getPath = function (node, id) {
|
|
2504
|
-
var path = [];
|
|
2505
|
-
this.hasPath(node, path, id);
|
|
2506
|
-
return path;
|
|
2507
|
-
};
|
|
2508
|
-
UtilityService.prototype.hasPath = function (node, pathArr, id) {
|
|
2509
|
-
var _this = this;
|
|
2510
|
-
if (node == null) {
|
|
2511
|
-
return false;
|
|
2512
|
-
}
|
|
2513
|
-
pathArr.push(node);
|
|
2514
|
-
if (node.identifier === id) {
|
|
2515
|
-
return true;
|
|
2516
|
-
}
|
|
2517
|
-
var children = node.children || [];
|
|
2518
|
-
if (children.some(function (u) { return _this.hasPath(u, pathArr, id); })) {
|
|
2519
|
-
return true;
|
|
2520
|
-
}
|
|
2521
|
-
pathArr.pop();
|
|
2522
|
-
return false;
|
|
2523
|
-
};
|
|
2524
|
-
Object.defineProperty(UtilityService.prototype, "isMobile", {
|
|
2525
|
-
get: function () {
|
|
2526
|
-
if (this.isIos || this.isAndroid) {
|
|
2527
|
-
return true;
|
|
2528
|
-
}
|
|
2529
|
-
return false;
|
|
2530
|
-
},
|
|
2531
|
-
enumerable: false,
|
|
2532
|
-
configurable: true
|
|
2533
|
-
});
|
|
2534
|
-
Object.defineProperty(UtilityService.prototype, "isIos", {
|
|
2535
|
-
get: function () {
|
|
2536
|
-
return this.platform.IOS;
|
|
2537
|
-
},
|
|
2538
|
-
enumerable: false,
|
|
2539
|
-
configurable: true
|
|
2540
|
-
});
|
|
2541
|
-
Object.defineProperty(UtilityService.prototype, "isAndroid", {
|
|
2542
|
-
get: function () {
|
|
2543
|
-
return this.platform.ANDROID;
|
|
2544
|
-
},
|
|
2545
|
-
enumerable: false,
|
|
2546
|
-
configurable: true
|
|
2547
|
-
});
|
|
2548
|
-
Object.defineProperty(UtilityService.prototype, "isAndroidApp", {
|
|
2549
|
-
get: function () {
|
|
2550
|
-
return Boolean(window.appRef);
|
|
2551
|
-
},
|
|
2552
|
-
enumerable: false,
|
|
2553
|
-
configurable: true
|
|
2554
|
-
});
|
|
2555
|
-
Object.defineProperty(UtilityService.prototype, "iOsAppRef", {
|
|
2556
|
-
get: function () {
|
|
2557
|
-
if (window.webkit &&
|
|
2558
|
-
window.webkit.messageHandlers &&
|
|
2559
|
-
window.webkit.messageHandlers.appRef) {
|
|
2560
|
-
return window.webkit.messageHandlers.appRef;
|
|
2561
|
-
}
|
|
2562
|
-
return null;
|
|
2563
|
-
},
|
|
2564
|
-
enumerable: false,
|
|
2565
|
-
configurable: true
|
|
2566
|
-
});
|
|
2567
|
-
UtilityService.prototype.setRouteData = function (data) {
|
|
2568
|
-
this.currentRouteData = data;
|
|
2164
|
+
UtilityService.prototype.setRouteData = function (data) {
|
|
2165
|
+
this.currentRouteData = data;
|
|
2569
2166
|
};
|
|
2570
2167
|
Object.defineProperty(UtilityService.prototype, "routeData", {
|
|
2571
2168
|
get: function () {
|
|
@@ -2588,18 +2185,14 @@
|
|
|
2588
2185
|
});
|
|
2589
2186
|
return UtilityService;
|
|
2590
2187
|
}());
|
|
2591
|
-
UtilityService.ɵ
|
|
2592
|
-
UtilityService
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
{ type: i2$1.Platform },
|
|
2600
|
-
{ type: i3.Router },
|
|
2601
|
-
{ type: i3.ActivatedRoute }
|
|
2602
|
-
]; };
|
|
2188
|
+
UtilityService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: UtilityService, deps: [{ token: i1__namespace$2.HttpClient }, { token: i2__namespace.Platform }, { token: i3__namespace$2.Router }, { token: i3__namespace$2.ActivatedRoute }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
2189
|
+
UtilityService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: UtilityService, providedIn: 'root' });
|
|
2190
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: UtilityService, decorators: [{
|
|
2191
|
+
type: i0.Injectable,
|
|
2192
|
+
args: [{
|
|
2193
|
+
providedIn: 'root',
|
|
2194
|
+
}]
|
|
2195
|
+
}], ctorParameters: function () { return [{ type: i1__namespace$2.HttpClient }, { type: i2__namespace.Platform }, { type: i3__namespace$2.Router }, { type: i3__namespace$2.ActivatedRoute }]; } });
|
|
2603
2196
|
|
|
2604
2197
|
var LogoutComponent = /** @class */ (function () {
|
|
2605
2198
|
function LogoutComponent(dialogRef, authSvc, configSvc, utilitySvc) {
|
|
@@ -2635,36 +2228,43 @@
|
|
|
2635
2228
|
});
|
|
2636
2229
|
return LogoutComponent;
|
|
2637
2230
|
}());
|
|
2638
|
-
LogoutComponent
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
{ type: ConfigurationsService },
|
|
2649
|
-
{ type: UtilityService }
|
|
2650
|
-
]; };
|
|
2231
|
+
LogoutComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LogoutComponent, deps: [{ token: i1__namespace$1.MatDialogRef }, { token: AuthKeycloakService }, { token: ConfigurationsService }, { token: UtilityService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2232
|
+
LogoutComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: LogoutComponent, selector: "ws-utils-logout", ngImport: i0__namespace, template: "<h1 mat-dialog-title i18n>Logout Now</h1>\r\n<div class=\"ws-mat-primary-text text-base pb-2 title-text\" *ngIf=\"isDownloadable\" i18n>\r\n Note: On logging out all the downloaded content will be deleted.\r\n</div>\r\n<div mat-dialog-content class=\"text-base hide-overflow\" i18n>\r\n Are you sure?\r\n</div>\r\n<div mat-dialog-actions class=\"flex-row-reverse\">\r\n <button mat-flat-button color=\"warn\" [disabled]=\"disabled\" (click)=\"confirmed()\" i18n>\r\n Yes\r\n </button>\r\n <button mat-button class=\"margin-right-xs\" [mat-dialog-close] cdkFocusInitial i18n>No</button>\r\n</div>", styles: [".hide-overflow{overflow:hidden}\n"], components: [{ type: i6__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i1__namespace$1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1__namespace$1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1__namespace$1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }] });
|
|
2233
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LogoutComponent, decorators: [{
|
|
2234
|
+
type: i0.Component,
|
|
2235
|
+
args: [{
|
|
2236
|
+
selector: 'ws-utils-logout',
|
|
2237
|
+
templateUrl: './logout.component.html',
|
|
2238
|
+
styleUrls: ['./logout.component.scss'],
|
|
2239
|
+
}]
|
|
2240
|
+
}], ctorParameters: function () { return [{ type: i1__namespace$1.MatDialogRef }, { type: AuthKeycloakService }, { type: ConfigurationsService }, { type: UtilityService }]; } });
|
|
2651
2241
|
|
|
2652
2242
|
var LogoutModule = /** @class */ (function () {
|
|
2653
2243
|
function LogoutModule() {
|
|
2654
2244
|
}
|
|
2655
2245
|
return LogoutModule;
|
|
2656
2246
|
}());
|
|
2657
|
-
LogoutModule
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2247
|
+
LogoutModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LogoutModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2248
|
+
LogoutModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LogoutModule, declarations: [LogoutComponent], imports: [i4.CommonModule,
|
|
2249
|
+
i6.MatButtonModule,
|
|
2250
|
+
i1$1.MatDialogModule] });
|
|
2251
|
+
LogoutModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LogoutModule, imports: [[
|
|
2252
|
+
i4.CommonModule,
|
|
2253
|
+
i6.MatButtonModule,
|
|
2254
|
+
i1$1.MatDialogModule,
|
|
2255
|
+
]] });
|
|
2256
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LogoutModule, decorators: [{
|
|
2257
|
+
type: i0.NgModule,
|
|
2258
|
+
args: [{
|
|
2259
|
+
declarations: [LogoutComponent],
|
|
2260
|
+
imports: [
|
|
2261
|
+
i4.CommonModule,
|
|
2262
|
+
i6.MatButtonModule,
|
|
2263
|
+
i1$1.MatDialogModule,
|
|
2264
|
+
],
|
|
2265
|
+
entryComponents: [LogoutComponent],
|
|
2266
|
+
}]
|
|
2267
|
+
}] });
|
|
2668
2268
|
|
|
2669
2269
|
var PipeConciseDateRangePipe = /** @class */ (function () {
|
|
2670
2270
|
function PipeConciseDateRangePipe() {
|
|
@@ -2715,24 +2315,31 @@
|
|
|
2715
2315
|
};
|
|
2716
2316
|
return PipeConciseDateRangePipe;
|
|
2717
2317
|
}());
|
|
2718
|
-
PipeConciseDateRangePipe
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2318
|
+
PipeConciseDateRangePipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeConciseDateRangePipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
2319
|
+
PipeConciseDateRangePipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeConciseDateRangePipe, name: "pipeConciseDateRange" });
|
|
2320
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeConciseDateRangePipe, decorators: [{
|
|
2321
|
+
type: i0.Pipe,
|
|
2322
|
+
args: [{
|
|
2323
|
+
name: 'pipeConciseDateRange',
|
|
2324
|
+
}]
|
|
2325
|
+
}] });
|
|
2723
2326
|
|
|
2724
2327
|
var PipeConciseDateRangeModule = /** @class */ (function () {
|
|
2725
2328
|
function PipeConciseDateRangeModule() {
|
|
2726
2329
|
}
|
|
2727
2330
|
return PipeConciseDateRangeModule;
|
|
2728
2331
|
}());
|
|
2729
|
-
PipeConciseDateRangeModule
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2332
|
+
PipeConciseDateRangeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeConciseDateRangeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2333
|
+
PipeConciseDateRangeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeConciseDateRangeModule, declarations: [PipeConciseDateRangePipe], imports: [i4.CommonModule], exports: [PipeConciseDateRangePipe] });
|
|
2334
|
+
PipeConciseDateRangeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeConciseDateRangeModule, imports: [[i4.CommonModule]] });
|
|
2335
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeConciseDateRangeModule, decorators: [{
|
|
2336
|
+
type: i0.NgModule,
|
|
2337
|
+
args: [{
|
|
2338
|
+
declarations: [PipeConciseDateRangePipe],
|
|
2339
|
+
imports: [i4.CommonModule],
|
|
2340
|
+
exports: [PipeConciseDateRangePipe],
|
|
2341
|
+
}]
|
|
2342
|
+
}] });
|
|
2736
2343
|
|
|
2737
2344
|
var PipeCountTransformPipe = /** @class */ (function () {
|
|
2738
2345
|
function PipeCountTransformPipe() {
|
|
@@ -2763,26 +2370,35 @@
|
|
|
2763
2370
|
};
|
|
2764
2371
|
return PipeCountTransformPipe;
|
|
2765
2372
|
}());
|
|
2766
|
-
PipeCountTransformPipe
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2373
|
+
PipeCountTransformPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeCountTransformPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
2374
|
+
PipeCountTransformPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeCountTransformPipe, name: "pipeCountTransform" });
|
|
2375
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeCountTransformPipe, decorators: [{
|
|
2376
|
+
type: i0.Pipe,
|
|
2377
|
+
args: [{
|
|
2378
|
+
name: 'pipeCountTransform',
|
|
2379
|
+
}]
|
|
2380
|
+
}] });
|
|
2771
2381
|
|
|
2772
2382
|
var PipeCountTransformModule = /** @class */ (function () {
|
|
2773
2383
|
function PipeCountTransformModule() {
|
|
2774
2384
|
}
|
|
2775
2385
|
return PipeCountTransformModule;
|
|
2776
2386
|
}());
|
|
2777
|
-
PipeCountTransformModule
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2387
|
+
PipeCountTransformModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeCountTransformModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2388
|
+
PipeCountTransformModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeCountTransformModule, declarations: [PipeCountTransformPipe], imports: [i4.CommonModule], exports: [PipeCountTransformPipe] });
|
|
2389
|
+
PipeCountTransformModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeCountTransformModule, imports: [[
|
|
2390
|
+
i4.CommonModule,
|
|
2391
|
+
]] });
|
|
2392
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeCountTransformModule, decorators: [{
|
|
2393
|
+
type: i0.NgModule,
|
|
2394
|
+
args: [{
|
|
2395
|
+
declarations: [PipeCountTransformPipe],
|
|
2396
|
+
imports: [
|
|
2397
|
+
i4.CommonModule,
|
|
2398
|
+
],
|
|
2399
|
+
exports: [PipeCountTransformPipe],
|
|
2400
|
+
}]
|
|
2401
|
+
}] });
|
|
2786
2402
|
|
|
2787
2403
|
var PipeDateConcatPipe = /** @class */ (function () {
|
|
2788
2404
|
function PipeDateConcatPipe() {
|
|
@@ -2810,27 +2426,35 @@
|
|
|
2810
2426
|
};
|
|
2811
2427
|
return PipeDateConcatPipe;
|
|
2812
2428
|
}());
|
|
2813
|
-
PipeDateConcatPipe
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2429
|
+
PipeDateConcatPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeDateConcatPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
2430
|
+
PipeDateConcatPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeDateConcatPipe, name: "pipeDateConcat" });
|
|
2431
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeDateConcatPipe, decorators: [{
|
|
2432
|
+
type: i0.Pipe,
|
|
2433
|
+
args: [{
|
|
2434
|
+
name: 'pipeDateConcat',
|
|
2435
|
+
}]
|
|
2436
|
+
}], ctorParameters: function () { return []; } });
|
|
2819
2437
|
|
|
2820
2438
|
var PipeDateConcatModule = /** @class */ (function () {
|
|
2821
2439
|
function PipeDateConcatModule() {
|
|
2822
2440
|
}
|
|
2823
2441
|
return PipeDateConcatModule;
|
|
2824
2442
|
}());
|
|
2825
|
-
PipeDateConcatModule
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2443
|
+
PipeDateConcatModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeDateConcatModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2444
|
+
PipeDateConcatModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeDateConcatModule, declarations: [PipeDateConcatPipe], imports: [i4.CommonModule], exports: [PipeDateConcatPipe] });
|
|
2445
|
+
PipeDateConcatModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeDateConcatModule, imports: [[
|
|
2446
|
+
i4.CommonModule,
|
|
2447
|
+
]] });
|
|
2448
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeDateConcatModule, decorators: [{
|
|
2449
|
+
type: i0.NgModule,
|
|
2450
|
+
args: [{
|
|
2451
|
+
declarations: [PipeDateConcatPipe],
|
|
2452
|
+
imports: [
|
|
2453
|
+
i4.CommonModule,
|
|
2454
|
+
],
|
|
2455
|
+
exports: [PipeDateConcatPipe],
|
|
2456
|
+
}]
|
|
2457
|
+
}] });
|
|
2834
2458
|
|
|
2835
2459
|
var PipeDurationTransformPipe = /** @class */ (function () {
|
|
2836
2460
|
function PipeDurationTransformPipe() {
|
|
@@ -2888,26 +2512,35 @@
|
|
|
2888
2512
|
};
|
|
2889
2513
|
return PipeDurationTransformPipe;
|
|
2890
2514
|
}());
|
|
2891
|
-
PipeDurationTransformPipe
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2515
|
+
PipeDurationTransformPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeDurationTransformPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
2516
|
+
PipeDurationTransformPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeDurationTransformPipe, name: "pipeDurationTransform" });
|
|
2517
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeDurationTransformPipe, decorators: [{
|
|
2518
|
+
type: i0.Pipe,
|
|
2519
|
+
args: [{
|
|
2520
|
+
name: 'pipeDurationTransform',
|
|
2521
|
+
}]
|
|
2522
|
+
}] });
|
|
2896
2523
|
|
|
2897
2524
|
var PipeDurationTransformModule = /** @class */ (function () {
|
|
2898
2525
|
function PipeDurationTransformModule() {
|
|
2899
2526
|
}
|
|
2900
2527
|
return PipeDurationTransformModule;
|
|
2901
2528
|
}());
|
|
2902
|
-
PipeDurationTransformModule
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2529
|
+
PipeDurationTransformModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeDurationTransformModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2530
|
+
PipeDurationTransformModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeDurationTransformModule, declarations: [PipeDurationTransformPipe], imports: [i4.CommonModule], exports: [PipeDurationTransformPipe] });
|
|
2531
|
+
PipeDurationTransformModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeDurationTransformModule, imports: [[
|
|
2532
|
+
i4.CommonModule,
|
|
2533
|
+
]] });
|
|
2534
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeDurationTransformModule, decorators: [{
|
|
2535
|
+
type: i0.NgModule,
|
|
2536
|
+
args: [{
|
|
2537
|
+
declarations: [PipeDurationTransformPipe],
|
|
2538
|
+
imports: [
|
|
2539
|
+
i4.CommonModule,
|
|
2540
|
+
],
|
|
2541
|
+
exports: [PipeDurationTransformPipe],
|
|
2542
|
+
}]
|
|
2543
|
+
}] });
|
|
2911
2544
|
|
|
2912
2545
|
var PipeHtmlTagRemovalPipe = /** @class */ (function () {
|
|
2913
2546
|
function PipeHtmlTagRemovalPipe() {
|
|
@@ -2917,26 +2550,35 @@
|
|
|
2917
2550
|
};
|
|
2918
2551
|
return PipeHtmlTagRemovalPipe;
|
|
2919
2552
|
}());
|
|
2920
|
-
PipeHtmlTagRemovalPipe
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2553
|
+
PipeHtmlTagRemovalPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeHtmlTagRemovalPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
2554
|
+
PipeHtmlTagRemovalPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeHtmlTagRemovalPipe, name: "pipeHtmlTagRemoval" });
|
|
2555
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeHtmlTagRemovalPipe, decorators: [{
|
|
2556
|
+
type: i0.Pipe,
|
|
2557
|
+
args: [{
|
|
2558
|
+
name: 'pipeHtmlTagRemoval',
|
|
2559
|
+
}]
|
|
2560
|
+
}] });
|
|
2925
2561
|
|
|
2926
2562
|
var PipeHtmlTagRemovalModule = /** @class */ (function () {
|
|
2927
2563
|
function PipeHtmlTagRemovalModule() {
|
|
2928
2564
|
}
|
|
2929
2565
|
return PipeHtmlTagRemovalModule;
|
|
2930
2566
|
}());
|
|
2931
|
-
PipeHtmlTagRemovalModule
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2567
|
+
PipeHtmlTagRemovalModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeHtmlTagRemovalModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2568
|
+
PipeHtmlTagRemovalModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeHtmlTagRemovalModule, declarations: [PipeHtmlTagRemovalPipe], imports: [i4.CommonModule], exports: [PipeHtmlTagRemovalPipe] });
|
|
2569
|
+
PipeHtmlTagRemovalModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeHtmlTagRemovalModule, imports: [[
|
|
2570
|
+
i4.CommonModule,
|
|
2571
|
+
]] });
|
|
2572
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeHtmlTagRemovalModule, decorators: [{
|
|
2573
|
+
type: i0.NgModule,
|
|
2574
|
+
args: [{
|
|
2575
|
+
declarations: [PipeHtmlTagRemovalPipe],
|
|
2576
|
+
imports: [
|
|
2577
|
+
i4.CommonModule,
|
|
2578
|
+
],
|
|
2579
|
+
exports: [PipeHtmlTagRemovalPipe],
|
|
2580
|
+
}]
|
|
2581
|
+
}] });
|
|
2940
2582
|
|
|
2941
2583
|
var PipeFilterPipe = /** @class */ (function () {
|
|
2942
2584
|
function PipeFilterPipe() {
|
|
@@ -2950,26 +2592,35 @@
|
|
|
2950
2592
|
};
|
|
2951
2593
|
return PipeFilterPipe;
|
|
2952
2594
|
}());
|
|
2953
|
-
PipeFilterPipe
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2595
|
+
PipeFilterPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeFilterPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
2596
|
+
PipeFilterPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeFilterPipe, name: "pipeFilter" });
|
|
2597
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeFilterPipe, decorators: [{
|
|
2598
|
+
type: i0.Pipe,
|
|
2599
|
+
args: [{
|
|
2600
|
+
name: 'pipeFilter',
|
|
2601
|
+
}]
|
|
2602
|
+
}] });
|
|
2958
2603
|
|
|
2959
2604
|
var PipeFilterModule = /** @class */ (function () {
|
|
2960
2605
|
function PipeFilterModule() {
|
|
2961
2606
|
}
|
|
2962
2607
|
return PipeFilterModule;
|
|
2963
2608
|
}());
|
|
2964
|
-
PipeFilterModule
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2609
|
+
PipeFilterModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeFilterModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2610
|
+
PipeFilterModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeFilterModule, declarations: [PipeFilterPipe], imports: [i4.CommonModule], exports: [PipeFilterPipe] });
|
|
2611
|
+
PipeFilterModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeFilterModule, imports: [[
|
|
2612
|
+
i4.CommonModule,
|
|
2613
|
+
]] });
|
|
2614
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeFilterModule, decorators: [{
|
|
2615
|
+
type: i0.NgModule,
|
|
2616
|
+
args: [{
|
|
2617
|
+
declarations: [PipeFilterPipe],
|
|
2618
|
+
imports: [
|
|
2619
|
+
i4.CommonModule,
|
|
2620
|
+
],
|
|
2621
|
+
exports: [PipeFilterPipe],
|
|
2622
|
+
}]
|
|
2623
|
+
}] });
|
|
2973
2624
|
|
|
2974
2625
|
var PipeFilterSearchPipe = /** @class */ (function () {
|
|
2975
2626
|
function PipeFilterSearchPipe() {
|
|
@@ -3001,26 +2652,35 @@
|
|
|
3001
2652
|
};
|
|
3002
2653
|
return PipeFilterSearchPipe;
|
|
3003
2654
|
}());
|
|
3004
|
-
PipeFilterSearchPipe
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
2655
|
+
PipeFilterSearchPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeFilterSearchPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
2656
|
+
PipeFilterSearchPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeFilterSearchPipe, name: "pipeFilterSearch" });
|
|
2657
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeFilterSearchPipe, decorators: [{
|
|
2658
|
+
type: i0.Pipe,
|
|
2659
|
+
args: [{
|
|
2660
|
+
name: 'pipeFilterSearch',
|
|
2661
|
+
}]
|
|
2662
|
+
}] });
|
|
3009
2663
|
|
|
3010
2664
|
var PipeFilterSearchModule = /** @class */ (function () {
|
|
3011
2665
|
function PipeFilterSearchModule() {
|
|
3012
2666
|
}
|
|
3013
2667
|
return PipeFilterSearchModule;
|
|
3014
2668
|
}());
|
|
3015
|
-
PipeFilterSearchModule
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
2669
|
+
PipeFilterSearchModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeFilterSearchModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2670
|
+
PipeFilterSearchModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeFilterSearchModule, declarations: [PipeFilterSearchPipe], imports: [i4.CommonModule], exports: [PipeFilterSearchPipe] });
|
|
2671
|
+
PipeFilterSearchModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeFilterSearchModule, imports: [[
|
|
2672
|
+
i4.CommonModule,
|
|
2673
|
+
]] });
|
|
2674
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeFilterSearchModule, decorators: [{
|
|
2675
|
+
type: i0.NgModule,
|
|
2676
|
+
args: [{
|
|
2677
|
+
declarations: [PipeFilterSearchPipe],
|
|
2678
|
+
imports: [
|
|
2679
|
+
i4.CommonModule,
|
|
2680
|
+
],
|
|
2681
|
+
exports: [PipeFilterSearchPipe],
|
|
2682
|
+
}]
|
|
2683
|
+
}] });
|
|
3024
2684
|
|
|
3025
2685
|
var PipeListFilterPipe = /** @class */ (function () {
|
|
3026
2686
|
function PipeListFilterPipe() {
|
|
@@ -3035,26 +2695,35 @@
|
|
|
3035
2695
|
};
|
|
3036
2696
|
return PipeListFilterPipe;
|
|
3037
2697
|
}());
|
|
3038
|
-
PipeListFilterPipe
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
2698
|
+
PipeListFilterPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeListFilterPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
2699
|
+
PipeListFilterPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeListFilterPipe, name: "pipeListFilter" });
|
|
2700
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeListFilterPipe, decorators: [{
|
|
2701
|
+
type: i0.Pipe,
|
|
2702
|
+
args: [{
|
|
2703
|
+
name: 'pipeListFilter',
|
|
2704
|
+
}]
|
|
2705
|
+
}] });
|
|
3043
2706
|
|
|
3044
2707
|
var PipeListFilterModule = /** @class */ (function () {
|
|
3045
2708
|
function PipeListFilterModule() {
|
|
3046
2709
|
}
|
|
3047
2710
|
return PipeListFilterModule;
|
|
3048
2711
|
}());
|
|
3049
|
-
PipeListFilterModule
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
2712
|
+
PipeListFilterModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeListFilterModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2713
|
+
PipeListFilterModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeListFilterModule, declarations: [PipeListFilterPipe], imports: [i4.CommonModule], exports: [PipeListFilterPipe] });
|
|
2714
|
+
PipeListFilterModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeListFilterModule, imports: [[
|
|
2715
|
+
i4.CommonModule,
|
|
2716
|
+
]] });
|
|
2717
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeListFilterModule, decorators: [{
|
|
2718
|
+
type: i0.NgModule,
|
|
2719
|
+
args: [{
|
|
2720
|
+
declarations: [PipeListFilterPipe],
|
|
2721
|
+
imports: [
|
|
2722
|
+
i4.CommonModule,
|
|
2723
|
+
],
|
|
2724
|
+
exports: [PipeListFilterPipe],
|
|
2725
|
+
}]
|
|
2726
|
+
}] });
|
|
3058
2727
|
|
|
3059
2728
|
var moment$1 = _moment__namespace;
|
|
3060
2729
|
var PipeRelativeTimePipe = /** @class */ (function () {
|
|
@@ -3068,26 +2737,35 @@
|
|
|
3068
2737
|
};
|
|
3069
2738
|
return PipeRelativeTimePipe;
|
|
3070
2739
|
}());
|
|
3071
|
-
PipeRelativeTimePipe
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
2740
|
+
PipeRelativeTimePipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeRelativeTimePipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
2741
|
+
PipeRelativeTimePipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeRelativeTimePipe, name: "pipeRelativeTime" });
|
|
2742
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeRelativeTimePipe, decorators: [{
|
|
2743
|
+
type: i0.Pipe,
|
|
2744
|
+
args: [{
|
|
2745
|
+
name: 'pipeRelativeTime',
|
|
2746
|
+
}]
|
|
2747
|
+
}] });
|
|
3076
2748
|
|
|
3077
2749
|
var PipeRelativeTimeModule = /** @class */ (function () {
|
|
3078
2750
|
function PipeRelativeTimeModule() {
|
|
3079
2751
|
}
|
|
3080
2752
|
return PipeRelativeTimeModule;
|
|
3081
2753
|
}());
|
|
3082
|
-
PipeRelativeTimeModule
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
2754
|
+
PipeRelativeTimeModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeRelativeTimeModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2755
|
+
PipeRelativeTimeModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeRelativeTimeModule, declarations: [PipeRelativeTimePipe], imports: [i4.CommonModule], exports: [PipeRelativeTimePipe] });
|
|
2756
|
+
PipeRelativeTimeModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeRelativeTimeModule, imports: [[
|
|
2757
|
+
i4.CommonModule,
|
|
2758
|
+
]] });
|
|
2759
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeRelativeTimeModule, decorators: [{
|
|
2760
|
+
type: i0.NgModule,
|
|
2761
|
+
args: [{
|
|
2762
|
+
declarations: [PipeRelativeTimePipe],
|
|
2763
|
+
imports: [
|
|
2764
|
+
i4.CommonModule,
|
|
2765
|
+
],
|
|
2766
|
+
exports: [PipeRelativeTimePipe],
|
|
2767
|
+
}]
|
|
2768
|
+
}] });
|
|
3091
2769
|
|
|
3092
2770
|
var OrderByPipe = /** @class */ (function () {
|
|
3093
2771
|
function OrderByPipe() {
|
|
@@ -3095,26 +2773,35 @@
|
|
|
3095
2773
|
}
|
|
3096
2774
|
return OrderByPipe;
|
|
3097
2775
|
}());
|
|
3098
|
-
OrderByPipe
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
2776
|
+
OrderByPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: OrderByPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
2777
|
+
OrderByPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: OrderByPipe, name: "orderBy" });
|
|
2778
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: OrderByPipe, decorators: [{
|
|
2779
|
+
type: i0.Pipe,
|
|
2780
|
+
args: [{
|
|
2781
|
+
name: 'orderBy',
|
|
2782
|
+
}]
|
|
2783
|
+
}] });
|
|
3103
2784
|
|
|
3104
2785
|
var PipeOrderByModule = /** @class */ (function () {
|
|
3105
2786
|
function PipeOrderByModule() {
|
|
3106
2787
|
}
|
|
3107
2788
|
return PipeOrderByModule;
|
|
3108
2789
|
}());
|
|
3109
|
-
PipeOrderByModule
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
2790
|
+
PipeOrderByModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeOrderByModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2791
|
+
PipeOrderByModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeOrderByModule, declarations: [OrderByPipe], imports: [i4.CommonModule], exports: [OrderByPipe] });
|
|
2792
|
+
PipeOrderByModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeOrderByModule, imports: [[
|
|
2793
|
+
i4.CommonModule,
|
|
2794
|
+
]] });
|
|
2795
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeOrderByModule, decorators: [{
|
|
2796
|
+
type: i0.NgModule,
|
|
2797
|
+
args: [{
|
|
2798
|
+
declarations: [OrderByPipe],
|
|
2799
|
+
imports: [
|
|
2800
|
+
i4.CommonModule,
|
|
2801
|
+
],
|
|
2802
|
+
exports: [OrderByPipe],
|
|
2803
|
+
}]
|
|
2804
|
+
}] });
|
|
3118
2805
|
|
|
3119
2806
|
var PipeLimitToPipe = /** @class */ (function () {
|
|
3120
2807
|
function PipeLimitToPipe() {
|
|
@@ -3138,26 +2825,35 @@
|
|
|
3138
2825
|
};
|
|
3139
2826
|
return PipeLimitToPipe;
|
|
3140
2827
|
}());
|
|
3141
|
-
PipeLimitToPipe
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
2828
|
+
PipeLimitToPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeLimitToPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
2829
|
+
PipeLimitToPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeLimitToPipe, name: "pipeLimitTo" });
|
|
2830
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeLimitToPipe, decorators: [{
|
|
2831
|
+
type: i0.Pipe,
|
|
2832
|
+
args: [{
|
|
2833
|
+
name: 'pipeLimitTo',
|
|
2834
|
+
}]
|
|
2835
|
+
}] });
|
|
3146
2836
|
|
|
3147
2837
|
var PipeLimitToModule = /** @class */ (function () {
|
|
3148
2838
|
function PipeLimitToModule() {
|
|
3149
2839
|
}
|
|
3150
2840
|
return PipeLimitToModule;
|
|
3151
2841
|
}());
|
|
3152
|
-
PipeLimitToModule
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
2842
|
+
PipeLimitToModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeLimitToModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2843
|
+
PipeLimitToModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeLimitToModule, declarations: [PipeLimitToPipe], imports: [i4.CommonModule], exports: [PipeLimitToPipe] });
|
|
2844
|
+
PipeLimitToModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeLimitToModule, imports: [[
|
|
2845
|
+
i4.CommonModule,
|
|
2846
|
+
]] });
|
|
2847
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeLimitToModule, decorators: [{
|
|
2848
|
+
type: i0.NgModule,
|
|
2849
|
+
args: [{
|
|
2850
|
+
declarations: [PipeLimitToPipe],
|
|
2851
|
+
imports: [
|
|
2852
|
+
i4.CommonModule,
|
|
2853
|
+
],
|
|
2854
|
+
exports: [PipeLimitToPipe],
|
|
2855
|
+
}]
|
|
2856
|
+
}] });
|
|
3161
2857
|
|
|
3162
2858
|
var PipeNameTransformPipe = /** @class */ (function () {
|
|
3163
2859
|
function PipeNameTransformPipe() {
|
|
@@ -3180,26 +2876,35 @@
|
|
|
3180
2876
|
};
|
|
3181
2877
|
return PipeNameTransformPipe;
|
|
3182
2878
|
}());
|
|
3183
|
-
PipeNameTransformPipe
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
2879
|
+
PipeNameTransformPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeNameTransformPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
2880
|
+
PipeNameTransformPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeNameTransformPipe, name: "pipeNameTransform" });
|
|
2881
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeNameTransformPipe, decorators: [{
|
|
2882
|
+
type: i0.Pipe,
|
|
2883
|
+
args: [{
|
|
2884
|
+
name: 'pipeNameTransform',
|
|
2885
|
+
}]
|
|
2886
|
+
}] });
|
|
3188
2887
|
|
|
3189
2888
|
var PipeNameTransformModule = /** @class */ (function () {
|
|
3190
2889
|
function PipeNameTransformModule() {
|
|
3191
2890
|
}
|
|
3192
2891
|
return PipeNameTransformModule;
|
|
3193
2892
|
}());
|
|
3194
|
-
PipeNameTransformModule
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
2893
|
+
PipeNameTransformModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeNameTransformModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2894
|
+
PipeNameTransformModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeNameTransformModule, declarations: [PipeNameTransformPipe], imports: [i4.CommonModule], exports: [PipeNameTransformPipe] });
|
|
2895
|
+
PipeNameTransformModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeNameTransformModule, imports: [[
|
|
2896
|
+
i4.CommonModule,
|
|
2897
|
+
]] });
|
|
2898
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeNameTransformModule, decorators: [{
|
|
2899
|
+
type: i0.NgModule,
|
|
2900
|
+
args: [{
|
|
2901
|
+
declarations: [PipeNameTransformPipe],
|
|
2902
|
+
imports: [
|
|
2903
|
+
i4.CommonModule,
|
|
2904
|
+
],
|
|
2905
|
+
exports: [PipeNameTransformPipe],
|
|
2906
|
+
}]
|
|
2907
|
+
}] });
|
|
3203
2908
|
|
|
3204
2909
|
var PipePartialContentPipe = /** @class */ (function () {
|
|
3205
2910
|
function PipePartialContentPipe() {
|
|
@@ -3226,26 +2931,35 @@
|
|
|
3226
2931
|
};
|
|
3227
2932
|
return PipePartialContentPipe;
|
|
3228
2933
|
}());
|
|
3229
|
-
PipePartialContentPipe
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
2934
|
+
PipePartialContentPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipePartialContentPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
2935
|
+
PipePartialContentPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipePartialContentPipe, name: "pipePartialContent" });
|
|
2936
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipePartialContentPipe, decorators: [{
|
|
2937
|
+
type: i0.Pipe,
|
|
2938
|
+
args: [{
|
|
2939
|
+
name: 'pipePartialContent',
|
|
2940
|
+
}]
|
|
2941
|
+
}] });
|
|
3234
2942
|
|
|
3235
2943
|
var PipePartialContentModule = /** @class */ (function () {
|
|
3236
2944
|
function PipePartialContentModule() {
|
|
3237
2945
|
}
|
|
3238
2946
|
return PipePartialContentModule;
|
|
3239
2947
|
}());
|
|
3240
|
-
PipePartialContentModule
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
2948
|
+
PipePartialContentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipePartialContentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2949
|
+
PipePartialContentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipePartialContentModule, declarations: [PipePartialContentPipe], imports: [i4.CommonModule], exports: [PipePartialContentPipe] });
|
|
2950
|
+
PipePartialContentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipePartialContentModule, imports: [[
|
|
2951
|
+
i4.CommonModule,
|
|
2952
|
+
]] });
|
|
2953
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipePartialContentModule, decorators: [{
|
|
2954
|
+
type: i0.NgModule,
|
|
2955
|
+
args: [{
|
|
2956
|
+
declarations: [PipePartialContentPipe],
|
|
2957
|
+
imports: [
|
|
2958
|
+
i4.CommonModule,
|
|
2959
|
+
],
|
|
2960
|
+
exports: [PipePartialContentPipe],
|
|
2961
|
+
}]
|
|
2962
|
+
}] });
|
|
3249
2963
|
|
|
3250
2964
|
var PipeSafeSanitizerPipe = /** @class */ (function () {
|
|
3251
2965
|
function PipeSafeSanitizerPipe(sanitizer) {
|
|
@@ -3270,29 +2984,35 @@
|
|
|
3270
2984
|
};
|
|
3271
2985
|
return PipeSafeSanitizerPipe;
|
|
3272
2986
|
}());
|
|
3273
|
-
PipeSafeSanitizerPipe
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
2987
|
+
PipeSafeSanitizerPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeSafeSanitizerPipe, deps: [{ token: i1__namespace$3.DomSanitizer }], target: i0__namespace.ɵɵFactoryTarget.Pipe });
|
|
2988
|
+
PipeSafeSanitizerPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeSafeSanitizerPipe, name: "pipeSafeSanitizer" });
|
|
2989
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeSafeSanitizerPipe, decorators: [{
|
|
2990
|
+
type: i0.Pipe,
|
|
2991
|
+
args: [{
|
|
2992
|
+
name: 'pipeSafeSanitizer',
|
|
2993
|
+
}]
|
|
2994
|
+
}], ctorParameters: function () { return [{ type: i1__namespace$3.DomSanitizer }]; } });
|
|
3281
2995
|
|
|
3282
2996
|
var PipeSafeSanitizerModule = /** @class */ (function () {
|
|
3283
2997
|
function PipeSafeSanitizerModule() {
|
|
3284
2998
|
}
|
|
3285
2999
|
return PipeSafeSanitizerModule;
|
|
3286
3000
|
}());
|
|
3287
|
-
PipeSafeSanitizerModule
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3001
|
+
PipeSafeSanitizerModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeSafeSanitizerModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
3002
|
+
PipeSafeSanitizerModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeSafeSanitizerModule, declarations: [PipeSafeSanitizerPipe], imports: [i4.CommonModule], exports: [PipeSafeSanitizerPipe] });
|
|
3003
|
+
PipeSafeSanitizerModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeSafeSanitizerModule, imports: [[
|
|
3004
|
+
i4.CommonModule,
|
|
3005
|
+
]] });
|
|
3006
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PipeSafeSanitizerModule, decorators: [{
|
|
3007
|
+
type: i0.NgModule,
|
|
3008
|
+
args: [{
|
|
3009
|
+
declarations: [PipeSafeSanitizerPipe],
|
|
3010
|
+
imports: [
|
|
3011
|
+
i4.CommonModule,
|
|
3012
|
+
],
|
|
3013
|
+
exports: [PipeSafeSanitizerPipe],
|
|
3014
|
+
}]
|
|
3015
|
+
}] });
|
|
3296
3016
|
|
|
3297
3017
|
var ExploreDetailResolve = /** @class */ (function () {
|
|
3298
3018
|
function ExploreDetailResolve(http, configSvc, utilitySvc) {
|
|
@@ -3347,143 +3067,433 @@
|
|
|
3347
3067
|
if (_this.utilitySvc.isMobile && !_this.isIntranetAllowedSettings) {
|
|
3348
3068
|
strip.request.searchV6.filters[0].andFilters.push({ isInIntranet: ['false'] });
|
|
3349
3069
|
}
|
|
3350
|
-
return strip;
|
|
3351
|
-
});
|
|
3070
|
+
return strip;
|
|
3071
|
+
});
|
|
3072
|
+
}
|
|
3073
|
+
}
|
|
3074
|
+
return widget;
|
|
3075
|
+
});
|
|
3076
|
+
return pageData;
|
|
3077
|
+
};
|
|
3078
|
+
return ExploreDetailResolve;
|
|
3079
|
+
}());
|
|
3080
|
+
ExploreDetailResolve.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ExploreDetailResolve, deps: [{ token: i1__namespace$2.HttpClient }, { token: ConfigurationsService }, { token: UtilityService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
3081
|
+
ExploreDetailResolve.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ExploreDetailResolve, providedIn: 'root' });
|
|
3082
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ExploreDetailResolve, decorators: [{
|
|
3083
|
+
type: i0.Injectable,
|
|
3084
|
+
args: [{
|
|
3085
|
+
providedIn: 'root',
|
|
3086
|
+
}]
|
|
3087
|
+
}], ctorParameters: function () { return [{ type: i1__namespace$2.HttpClient }, { type: ConfigurationsService }, { type: UtilityService }]; } });
|
|
3088
|
+
|
|
3089
|
+
var MarketingOfferingResolve = /** @class */ (function () {
|
|
3090
|
+
function MarketingOfferingResolve(http) {
|
|
3091
|
+
this.http = http;
|
|
3092
|
+
}
|
|
3093
|
+
MarketingOfferingResolve.prototype.resolve = function (route, _state) {
|
|
3094
|
+
var _this = this;
|
|
3095
|
+
var tag = route.params.tag;
|
|
3096
|
+
return this.http.get(route.data.pageUrl).pipe(operators.map(function (pageData) { return ({ data: _this.transformPageData(pageData, tag), error: null }); }), operators.catchError(function (err) { return rxjs.of({ data: null, error: err }); }));
|
|
3097
|
+
};
|
|
3098
|
+
MarketingOfferingResolve.prototype.transformPageData = function (pageData, tag) {
|
|
3099
|
+
pageData.pageLayout.widgetData.widgets = pageData.pageLayout.widgetData.widgets.map(function (widget) {
|
|
3100
|
+
if (widget.widgetSubType === 'contentStripMultiple') {
|
|
3101
|
+
widget.widgetData.strips = widget.widgetData.strips.map(function (strip) {
|
|
3102
|
+
strip.request.search.filters.catalogPaths = [decodeURIComponent(tag)];
|
|
3103
|
+
return strip;
|
|
3104
|
+
});
|
|
3105
|
+
}
|
|
3106
|
+
return widget;
|
|
3107
|
+
});
|
|
3108
|
+
return pageData;
|
|
3109
|
+
};
|
|
3110
|
+
return MarketingOfferingResolve;
|
|
3111
|
+
}());
|
|
3112
|
+
MarketingOfferingResolve.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MarketingOfferingResolve, deps: [{ token: i1__namespace$2.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
3113
|
+
MarketingOfferingResolve.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MarketingOfferingResolve, providedIn: 'root' });
|
|
3114
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MarketingOfferingResolve, decorators: [{
|
|
3115
|
+
type: i0.Injectable,
|
|
3116
|
+
args: [{
|
|
3117
|
+
providedIn: 'root',
|
|
3118
|
+
}]
|
|
3119
|
+
}], ctorParameters: function () { return [{ type: i1__namespace$2.HttpClient }]; } });
|
|
3120
|
+
|
|
3121
|
+
var JSON_MAP = {
|
|
3122
|
+
pagename: 'lexid',
|
|
3123
|
+
};
|
|
3124
|
+
|
|
3125
|
+
var PageResolve = /** @class */ (function () {
|
|
3126
|
+
function PageResolve(configSvc, http, locale) {
|
|
3127
|
+
this.configSvc = configSvc;
|
|
3128
|
+
this.http = http;
|
|
3129
|
+
this.locale = locale;
|
|
3130
|
+
this.baseUrl = this.configSvc.sitePath;
|
|
3131
|
+
}
|
|
3132
|
+
PageResolve.prototype.resolve = function (route) {
|
|
3133
|
+
if (route.data.pageUrl) {
|
|
3134
|
+
return this.getData(route.data.pageUrl);
|
|
3135
|
+
}
|
|
3136
|
+
if (route.data.pageType === 'feature' && route.data.pageKey) {
|
|
3137
|
+
return this.getData(this.baseUrl + "/feature/" + route.data.pageKey);
|
|
3138
|
+
}
|
|
3139
|
+
if (route.data.pageType === 'page' &&
|
|
3140
|
+
route.data.pageKey &&
|
|
3141
|
+
route.paramMap.has(route.data.pageKey)) {
|
|
3142
|
+
return this.getData(this.baseUrl + "/page/" + route.paramMap.get(route.data.pageKey));
|
|
3143
|
+
}
|
|
3144
|
+
if (route.data.pageType === 'page' &&
|
|
3145
|
+
route.data.pageKey &&
|
|
3146
|
+
route.data.pageKey === 'toc') {
|
|
3147
|
+
return this.getData(this.baseUrl + "/page/" + route.data.pageKey);
|
|
3148
|
+
}
|
|
3149
|
+
return {
|
|
3150
|
+
data: null,
|
|
3151
|
+
error: 'CONFIGURATION_ERROR_PAGE_URL_NOT_FORMED',
|
|
3152
|
+
};
|
|
3153
|
+
};
|
|
3154
|
+
PageResolve.prototype.setS3Cookie = function (contentId) {
|
|
3155
|
+
return this.http.post("/apis/protected/v8/content/setCookie", { contentId: contentId }).pipe(operators.catchError(function (_err) { return rxjs.of(true); }));
|
|
3156
|
+
};
|
|
3157
|
+
PageResolve.prototype.getContent = function (id) {
|
|
3158
|
+
return this.http
|
|
3159
|
+
.post("/apis/protected/v8/content/" + id + "?hierarchyType=minimal", ['status', 'artifactUrl']);
|
|
3160
|
+
};
|
|
3161
|
+
PageResolve.prototype.getData = function (url) {
|
|
3162
|
+
var _this = this;
|
|
3163
|
+
var id = url.split('/').pop().split('.')[0] || '';
|
|
3164
|
+
var equivalentId = id.startsWith('lex_auth_') ? id : JSON_MAP[id];
|
|
3165
|
+
if (equivalentId) {
|
|
3166
|
+
return rxjs.forkJoin([this.setS3Cookie(equivalentId), this.getContent(equivalentId)]).pipe(operators.mergeMap(function (_a) {
|
|
3167
|
+
var _b = __read(_a, 2), _ = _b[0], v = _b[1];
|
|
3168
|
+
if (v.status === 'Expired' || v.status === 'Deleted' || !v.artifactUrl) {
|
|
3169
|
+
return rxjs.of({ data: null, error: 'NoContent' });
|
|
3170
|
+
}
|
|
3171
|
+
return _this.http
|
|
3172
|
+
.get(v.artifactUrl + "?ts=" + new Date().getTime())
|
|
3173
|
+
.pipe(operators.map(function (data) { return ({ data: data, error: null }); }), operators.catchError(function (err) { return rxjs.of({ data: null, error: err }); }));
|
|
3174
|
+
}), operators.catchError(function (err) { return rxjs.of({ data: null, error: err }); }));
|
|
3175
|
+
}
|
|
3176
|
+
var pageRequest = [
|
|
3177
|
+
(equivalentId ? this.setS3Cookie(equivalentId) : rxjs.of(true)).pipe(operators.mergeMap(function () { return _this.http.get(url + ".json").pipe(operators.map(function (data) { return ({ data: data, error: null }); }), operators.catchError(function (err) { return rxjs.of({ data: null, error: err }); })); })),
|
|
3178
|
+
this.locale === 'en' || this.locale === 'en-US' ?
|
|
3179
|
+
rxjs.of({ data: undefined, error: null }) :
|
|
3180
|
+
this.http.get(url + "." + this.locale + ".json").pipe(operators.map(function (data) { return ({ data: data, error: null }); }), operators.catchError(function (err) { return rxjs.of({ data: null, error: err }); })),
|
|
3181
|
+
];
|
|
3182
|
+
return rxjs.forkJoin(pageRequest).pipe(operators.map(function (_a) {
|
|
3183
|
+
var _b = __read(_a, 2), general = _b[0], withLocale = _b[1];
|
|
3184
|
+
if (withLocale.data) {
|
|
3185
|
+
return withLocale;
|
|
3186
|
+
}
|
|
3187
|
+
return general;
|
|
3188
|
+
}));
|
|
3189
|
+
};
|
|
3190
|
+
return PageResolve;
|
|
3191
|
+
}());
|
|
3192
|
+
PageResolve.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PageResolve, deps: [{ token: ConfigurationsService }, { token: i1__namespace$2.HttpClient }, { token: i0.LOCALE_ID }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
3193
|
+
PageResolve.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PageResolve, providedIn: 'root' });
|
|
3194
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PageResolve, decorators: [{
|
|
3195
|
+
type: i0.Injectable,
|
|
3196
|
+
args: [{
|
|
3197
|
+
providedIn: 'root',
|
|
3198
|
+
}]
|
|
3199
|
+
}], ctorParameters: function () {
|
|
3200
|
+
return [{ type: ConfigurationsService }, { type: i1__namespace$2.HttpClient }, { type: undefined, decorators: [{
|
|
3201
|
+
type: i0.Inject,
|
|
3202
|
+
args: [i0.LOCALE_ID]
|
|
3203
|
+
}] }];
|
|
3204
|
+
} });
|
|
3205
|
+
|
|
3206
|
+
var LoggerService = /** @class */ (function () {
|
|
3207
|
+
function LoggerService(configSvc) {
|
|
3208
|
+
this.configSvc = configSvc;
|
|
3209
|
+
this.consoleError = console.error;
|
|
3210
|
+
this.consoleInfo = console.info;
|
|
3211
|
+
this.consoleLog = console.log;
|
|
3212
|
+
this.consoleWarn = console.warn;
|
|
3213
|
+
this.noConsole = function () { };
|
|
3214
|
+
}
|
|
3215
|
+
Object.defineProperty(LoggerService.prototype, "error", {
|
|
3216
|
+
get: function () {
|
|
3217
|
+
return this.consoleError;
|
|
3218
|
+
},
|
|
3219
|
+
enumerable: false,
|
|
3220
|
+
configurable: true
|
|
3221
|
+
});
|
|
3222
|
+
Object.defineProperty(LoggerService.prototype, "info", {
|
|
3223
|
+
get: function () {
|
|
3224
|
+
return this.configSvc.isProduction ? this.noConsole : this.consoleInfo;
|
|
3225
|
+
},
|
|
3226
|
+
enumerable: false,
|
|
3227
|
+
configurable: true
|
|
3228
|
+
});
|
|
3229
|
+
Object.defineProperty(LoggerService.prototype, "log", {
|
|
3230
|
+
get: function () {
|
|
3231
|
+
return this.configSvc.isProduction ? this.noConsole : this.consoleLog;
|
|
3232
|
+
},
|
|
3233
|
+
enumerable: false,
|
|
3234
|
+
configurable: true
|
|
3235
|
+
});
|
|
3236
|
+
Object.defineProperty(LoggerService.prototype, "warn", {
|
|
3237
|
+
get: function () {
|
|
3238
|
+
return this.configSvc.isProduction ? this.noConsole : this.consoleWarn;
|
|
3239
|
+
},
|
|
3240
|
+
enumerable: false,
|
|
3241
|
+
configurable: true
|
|
3242
|
+
});
|
|
3243
|
+
LoggerService.prototype.removeConsoleAccess = function () {
|
|
3244
|
+
if (this.configSvc.isProduction) {
|
|
3245
|
+
return;
|
|
3246
|
+
}
|
|
3247
|
+
var noConsoleWithError = function () {
|
|
3248
|
+
throw new Error('Console Functions Usage Are Not Allowed.');
|
|
3249
|
+
};
|
|
3250
|
+
console.warn = noConsoleWithError;
|
|
3251
|
+
console.info = noConsoleWithError;
|
|
3252
|
+
console.error = noConsoleWithError;
|
|
3253
|
+
};
|
|
3254
|
+
return LoggerService;
|
|
3255
|
+
}());
|
|
3256
|
+
LoggerService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LoggerService, deps: [{ token: ConfigurationsService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
3257
|
+
LoggerService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LoggerService, providedIn: 'root' });
|
|
3258
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LoggerService, decorators: [{
|
|
3259
|
+
type: i0.Injectable,
|
|
3260
|
+
args: [{
|
|
3261
|
+
providedIn: 'root',
|
|
3262
|
+
}]
|
|
3263
|
+
}], ctorParameters: function () { return [{ type: ConfigurationsService }]; } });
|
|
3264
|
+
|
|
3265
|
+
var msTokenExpiryDuration = 600;
|
|
3266
|
+
var storageKey = 'msLoginRequested';
|
|
3267
|
+
var storage = localStorage;
|
|
3268
|
+
var API_ENDPOINTS = {
|
|
3269
|
+
sharePointToken: '/apis/protected/v8/user/token',
|
|
3270
|
+
};
|
|
3271
|
+
var AuthMicrosoftService = /** @class */ (function () {
|
|
3272
|
+
function AuthMicrosoftService(loggerSvc, http) {
|
|
3273
|
+
this.loggerSvc = loggerSvc;
|
|
3274
|
+
this.http = http;
|
|
3275
|
+
this.msConfig = {
|
|
3276
|
+
clientId: '',
|
|
3277
|
+
tenant: '',
|
|
3278
|
+
defaultEmailId: '',
|
|
3279
|
+
validEmailExtensions: [],
|
|
3280
|
+
isConfigured: false,
|
|
3281
|
+
};
|
|
3282
|
+
this.emailUsed = null;
|
|
3283
|
+
this.code = null;
|
|
3284
|
+
this.msToken = {
|
|
3285
|
+
accessToken: '',
|
|
3286
|
+
expiresOn: '',
|
|
3287
|
+
resource: '',
|
|
3288
|
+
tokenType: '',
|
|
3289
|
+
};
|
|
3290
|
+
}
|
|
3291
|
+
Object.defineProperty(AuthMicrosoftService.prototype, "isLogoutRequired", {
|
|
3292
|
+
get: function () {
|
|
3293
|
+
return Boolean(this.msConfig.isConfigured && this.msConfig.clientId && this.emailUsed);
|
|
3294
|
+
},
|
|
3295
|
+
enumerable: false,
|
|
3296
|
+
configurable: true
|
|
3297
|
+
});
|
|
3298
|
+
Object.defineProperty(AuthMicrosoftService.prototype, "loginUrl", {
|
|
3299
|
+
get: function () {
|
|
3300
|
+
if (this.msConfig.isConfigured && this.msConfig.clientId) {
|
|
3301
|
+
var base = 'https://login.windows.net/common/oauth2/authorize';
|
|
3302
|
+
var searchParam = new URLSearchParams({
|
|
3303
|
+
response_type: 'code',
|
|
3304
|
+
client_id: this.msConfig.clientId,
|
|
3305
|
+
redirect_uri: window.location.href,
|
|
3306
|
+
});
|
|
3307
|
+
var fragment = location.search.substring(1);
|
|
3308
|
+
if (fragment) {
|
|
3309
|
+
return base + "?" + searchParam.toString() + "#" + fragment;
|
|
3310
|
+
}
|
|
3311
|
+
return base + "?" + searchParam.toString();
|
|
3312
|
+
}
|
|
3313
|
+
return null;
|
|
3314
|
+
},
|
|
3315
|
+
enumerable: false,
|
|
3316
|
+
configurable: true
|
|
3317
|
+
});
|
|
3318
|
+
AuthMicrosoftService.prototype.logoutUrl = function (redirectUrl) {
|
|
3319
|
+
if (this.isValidEmail(this.emailUsed || '')) {
|
|
3320
|
+
return "https://login.microsoftonline.com/common/oauth2/logout?post_logout_redirect_uri=" + redirectUrl;
|
|
3321
|
+
}
|
|
3322
|
+
return redirectUrl;
|
|
3323
|
+
};
|
|
3324
|
+
AuthMicrosoftService.prototype.init = function (config) {
|
|
3325
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3326
|
+
var queryParams, url;
|
|
3327
|
+
return __generator(this, function (_a) {
|
|
3328
|
+
switch (_a.label) {
|
|
3329
|
+
case 0:
|
|
3330
|
+
if (!config || !config.microsoft || !config.microsoft.isConfigured) {
|
|
3331
|
+
this.loggerSvc.warn('Empty/No Configuration passed, ignoring Microsoft Authentication');
|
|
3332
|
+
}
|
|
3333
|
+
this.msConfig = config.microsoft;
|
|
3334
|
+
queryParams = new URLSearchParams(location.search);
|
|
3335
|
+
if (!(queryParams.has('code') && queryParams.has('session_state'))) return [3 /*break*/, 2];
|
|
3336
|
+
this.code = queryParams.get('code');
|
|
3337
|
+
if (!this.code) {
|
|
3338
|
+
return [2 /*return*/];
|
|
3339
|
+
}
|
|
3340
|
+
url = location.origin + location.pathname;
|
|
3341
|
+
return [4 /*yield*/, this.exchangeTokenForCode(this.code, url)];
|
|
3342
|
+
case 1:
|
|
3343
|
+
_a.sent();
|
|
3344
|
+
if (location.hash) {
|
|
3345
|
+
url += location.hash.substring(1);
|
|
3346
|
+
}
|
|
3347
|
+
history.replaceState(null, '', url);
|
|
3348
|
+
_a.label = 2;
|
|
3349
|
+
case 2: return [2 /*return*/];
|
|
3352
3350
|
}
|
|
3353
|
-
}
|
|
3354
|
-
return widget;
|
|
3351
|
+
});
|
|
3355
3352
|
});
|
|
3356
|
-
return pageData;
|
|
3357
3353
|
};
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
MarketingOfferingResolve.prototype.resolve = function (route, _state) {
|
|
3377
|
-
var _this = this;
|
|
3378
|
-
var tag = route.params.tag;
|
|
3379
|
-
return this.http.get(route.data.pageUrl).pipe(operators.map(function (pageData) { return ({ data: _this.transformPageData(pageData, tag), error: null }); }), operators.catchError(function (err) { return rxjs.of({ data: null, error: err }); }));
|
|
3354
|
+
AuthMicrosoftService.prototype.login = function (email) {
|
|
3355
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3356
|
+
var loginUrl;
|
|
3357
|
+
return __generator(this, function (_a) {
|
|
3358
|
+
if (!this.isValidEmail(email)) {
|
|
3359
|
+
this.loggerSvc.warn("Microsoft Login is not allowed for your emailId (" + email + ")");
|
|
3360
|
+
return [2 /*return*/];
|
|
3361
|
+
}
|
|
3362
|
+
loginUrl = this.loginUrl;
|
|
3363
|
+
if (loginUrl) {
|
|
3364
|
+
location.assign(loginUrl);
|
|
3365
|
+
}
|
|
3366
|
+
else {
|
|
3367
|
+
this.loggerSvc.warn('Unable to identify Office Login URL, Ignoring login request');
|
|
3368
|
+
}
|
|
3369
|
+
return [2 /*return*/];
|
|
3370
|
+
});
|
|
3371
|
+
});
|
|
3380
3372
|
};
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3373
|
+
AuthMicrosoftService.prototype.getToken = function (email) {
|
|
3374
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3375
|
+
var _a, error_1, _b, error_2;
|
|
3376
|
+
return __generator(this, function (_c) {
|
|
3377
|
+
switch (_c.label) {
|
|
3378
|
+
case 0:
|
|
3379
|
+
if (this.msToken &&
|
|
3380
|
+
this.isValid(this.msToken.accessToken, this.msToken.expiresOn) &&
|
|
3381
|
+
this.msToken.accessToken) {
|
|
3382
|
+
return [2 /*return*/, this.msToken.accessToken];
|
|
3383
|
+
}
|
|
3384
|
+
if (!this.isValidEmail(email)) return [3 /*break*/, 4];
|
|
3385
|
+
_c.label = 1;
|
|
3386
|
+
case 1:
|
|
3387
|
+
_c.trys.push([1, 3, , 4]);
|
|
3388
|
+
_a = this;
|
|
3389
|
+
return [4 /*yield*/, this.getTokenForEmail(email)];
|
|
3390
|
+
case 2:
|
|
3391
|
+
_a.msToken = _c.sent();
|
|
3392
|
+
if (this.msToken.accessToken) {
|
|
3393
|
+
this.emailUsed = email;
|
|
3394
|
+
return [2 /*return*/, this.msToken.accessToken];
|
|
3395
|
+
}
|
|
3396
|
+
return [3 /*break*/, 4];
|
|
3397
|
+
case 3:
|
|
3398
|
+
error_1 = _c.sent();
|
|
3399
|
+
if (!this.code) {
|
|
3400
|
+
this.login(email);
|
|
3401
|
+
}
|
|
3402
|
+
return [3 /*break*/, 4];
|
|
3403
|
+
case 4:
|
|
3404
|
+
if (!(this.msConfig.defaultEmailId && this.isValidEmail(this.msConfig.defaultEmailId))) return [3 /*break*/, 8];
|
|
3405
|
+
_c.label = 5;
|
|
3406
|
+
case 5:
|
|
3407
|
+
_c.trys.push([5, 7, , 8]);
|
|
3408
|
+
_b = this;
|
|
3409
|
+
return [4 /*yield*/, this.getTokenForEmail(this.msConfig.defaultEmailId)];
|
|
3410
|
+
case 6:
|
|
3411
|
+
_b.msToken = _c.sent();
|
|
3412
|
+
if (this.msToken.accessToken) {
|
|
3413
|
+
this.emailUsed = this.msConfig.defaultEmailId;
|
|
3414
|
+
return [2 /*return*/, this.msToken.accessToken];
|
|
3415
|
+
}
|
|
3416
|
+
return [3 /*break*/, 8];
|
|
3417
|
+
case 7:
|
|
3418
|
+
error_2 = _c.sent();
|
|
3419
|
+
return [3 /*break*/, 8];
|
|
3420
|
+
case 8: throw new Error('UNABLE TO FETCH MS AUTH TOKEN');
|
|
3421
|
+
}
|
|
3422
|
+
});
|
|
3390
3423
|
});
|
|
3391
|
-
return pageData;
|
|
3392
3424
|
};
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
MarketingOfferingResolve.decorators = [
|
|
3397
|
-
{ type: i0.Injectable, args: [{
|
|
3398
|
-
providedIn: 'root',
|
|
3399
|
-
},] }
|
|
3400
|
-
];
|
|
3401
|
-
MarketingOfferingResolve.ctorParameters = function () { return [
|
|
3402
|
-
{ type: i1$1.HttpClient }
|
|
3403
|
-
]; };
|
|
3404
|
-
|
|
3405
|
-
var JSON_MAP = {
|
|
3406
|
-
pagename: 'lexid',
|
|
3407
|
-
};
|
|
3408
|
-
|
|
3409
|
-
var PageResolve = /** @class */ (function () {
|
|
3410
|
-
function PageResolve(configSvc, http, locale) {
|
|
3411
|
-
this.configSvc = configSvc;
|
|
3412
|
-
this.http = http;
|
|
3413
|
-
this.locale = locale;
|
|
3414
|
-
this.baseUrl = this.configSvc.sitePath;
|
|
3415
|
-
}
|
|
3416
|
-
PageResolve.prototype.resolve = function (route) {
|
|
3417
|
-
if (route.data.pageUrl) {
|
|
3418
|
-
return this.getData(route.data.pageUrl);
|
|
3419
|
-
}
|
|
3420
|
-
if (route.data.pageType === 'feature' && route.data.pageKey) {
|
|
3421
|
-
return this.getData(this.baseUrl + "/feature/" + route.data.pageKey);
|
|
3425
|
+
AuthMicrosoftService.prototype.loginForSSOEnabledEmbed = function (email) {
|
|
3426
|
+
if (!this.isValidEmail(email)) {
|
|
3427
|
+
this.loggerSvc.warn('SSO Login request Ignored. Invalid Email Id for SSO Enabled Content');
|
|
3422
3428
|
}
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
return this.getData(this.baseUrl + "/page/" + route.paramMap.get(route.data.pageKey));
|
|
3429
|
+
var msPrevTS = 0;
|
|
3430
|
+
try {
|
|
3431
|
+
msPrevTS = parseInt(storage.getItem(storageKey) || '0', 10);
|
|
3427
3432
|
}
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3433
|
+
catch (error) { }
|
|
3434
|
+
if (!msPrevTS || (msPrevTS && (Date.now() - msPrevTS) / 1000 > msTokenExpiryDuration)) {
|
|
3435
|
+
this.loggerSvc.info("last login exceeded " + msTokenExpiryDuration + " duration. Redirecting to O365 login");
|
|
3436
|
+
storage.setItem(storageKey, Date.now().toString());
|
|
3437
|
+
this.login(email);
|
|
3432
3438
|
}
|
|
3433
|
-
return {
|
|
3434
|
-
data: null,
|
|
3435
|
-
error: 'CONFIGURATION_ERROR_PAGE_URL_NOT_FORMED',
|
|
3436
|
-
};
|
|
3437
3439
|
};
|
|
3438
|
-
|
|
3439
|
-
return this.
|
|
3440
|
+
AuthMicrosoftService.prototype.isValidEmail = function (email) {
|
|
3441
|
+
return this.msConfig.validEmailExtensions.some(function (ext) { return email.endsWith(ext); });
|
|
3440
3442
|
};
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3443
|
+
AuthMicrosoftService.prototype.isValid = function (accessToken, expiresOn) {
|
|
3444
|
+
if (accessToken && expiresOn) {
|
|
3445
|
+
return true;
|
|
3446
|
+
}
|
|
3447
|
+
return false;
|
|
3444
3448
|
};
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3449
|
+
AuthMicrosoftService.prototype.exchangeTokenForCode = function (code, redirectUrl) {
|
|
3450
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3451
|
+
var response;
|
|
3452
|
+
return __generator(this, function (_a) {
|
|
3453
|
+
switch (_a.label) {
|
|
3454
|
+
case 0: return [4 /*yield*/, this.http
|
|
3455
|
+
.get(API_ENDPOINTS + "?code=" + code + "&redirectUrl=" + redirectUrl)
|
|
3456
|
+
.toPromise()];
|
|
3457
|
+
case 1:
|
|
3458
|
+
response = _a.sent();
|
|
3459
|
+
return [2 /*return*/, this.getInstanceFromResponse(response)];
|
|
3454
3460
|
}
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
.pipe(operators.map(function (data) { return ({ data: data, error: null }); }), operators.catchError(function (err) { return rxjs.of({ data: null, error: err }); }));
|
|
3458
|
-
}), operators.catchError(function (err) { return rxjs.of({ data: null, error: err }); }));
|
|
3459
|
-
}
|
|
3460
|
-
var pageRequest = [
|
|
3461
|
-
(equivalentId ? this.setS3Cookie(equivalentId) : rxjs.of(true)).pipe(operators.mergeMap(function () { return _this.http.get(url + ".json").pipe(operators.map(function (data) { return ({ data: data, error: null }); }), operators.catchError(function (err) { return rxjs.of({ data: null, error: err }); })); })),
|
|
3462
|
-
this.locale === 'en' || this.locale === 'en-US' ?
|
|
3463
|
-
rxjs.of({ data: undefined, error: null }) :
|
|
3464
|
-
this.http.get(url + "." + this.locale + ".json").pipe(operators.map(function (data) { return ({ data: data, error: null }); }), operators.catchError(function (err) { return rxjs.of({ data: null, error: err }); })),
|
|
3465
|
-
];
|
|
3466
|
-
return rxjs.forkJoin(pageRequest).pipe(operators.map(function (_a) {
|
|
3467
|
-
var _b = __read(_a, 2), general = _b[0], withLocale = _b[1];
|
|
3468
|
-
if (withLocale.data) {
|
|
3469
|
-
return withLocale;
|
|
3470
|
-
}
|
|
3471
|
-
return general;
|
|
3472
|
-
}));
|
|
3461
|
+
});
|
|
3462
|
+
});
|
|
3473
3463
|
};
|
|
3474
|
-
|
|
3464
|
+
AuthMicrosoftService.prototype.getTokenForEmail = function (email) {
|
|
3465
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3466
|
+
var response;
|
|
3467
|
+
return __generator(this, function (_a) {
|
|
3468
|
+
switch (_a.label) {
|
|
3469
|
+
case 0: return [4 /*yield*/, this.http
|
|
3470
|
+
.get(API_ENDPOINTS.sharePointToken + "?email=" + email)
|
|
3471
|
+
.toPromise()];
|
|
3472
|
+
case 1:
|
|
3473
|
+
response = _a.sent();
|
|
3474
|
+
return [2 /*return*/, this.getInstanceFromResponse(response)];
|
|
3475
|
+
}
|
|
3476
|
+
});
|
|
3477
|
+
});
|
|
3478
|
+
};
|
|
3479
|
+
AuthMicrosoftService.prototype.getInstanceFromResponse = function (token) {
|
|
3480
|
+
return {
|
|
3481
|
+
accessToken: token.accessToken,
|
|
3482
|
+
expiresOn: token.expiresOn,
|
|
3483
|
+
resource: token.resource,
|
|
3484
|
+
tokenType: token.tokenType,
|
|
3485
|
+
};
|
|
3486
|
+
};
|
|
3487
|
+
return AuthMicrosoftService;
|
|
3475
3488
|
}());
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
{ type: i1$1.HttpClient },
|
|
3485
|
-
{ type: String, decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] }
|
|
3486
|
-
]; };
|
|
3489
|
+
AuthMicrosoftService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AuthMicrosoftService, deps: [{ token: LoggerService }, { token: i1__namespace$2.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
3490
|
+
AuthMicrosoftService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AuthMicrosoftService, providedIn: 'root' });
|
|
3491
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AuthMicrosoftService, decorators: [{
|
|
3492
|
+
type: i0.Injectable,
|
|
3493
|
+
args: [{
|
|
3494
|
+
providedIn: 'root',
|
|
3495
|
+
}]
|
|
3496
|
+
}], ctorParameters: function () { return [{ type: LoggerService }, { type: i1__namespace$2.HttpClient }]; } });
|
|
3487
3497
|
|
|
3488
3498
|
exports.WsEvents = void 0;
|
|
3489
3499
|
(function (WsEvents) {
|
|
@@ -3788,19 +3798,21 @@
|
|
|
3788
3798
|
};
|
|
3789
3799
|
return EventService;
|
|
3790
3800
|
}());
|
|
3791
|
-
EventService.ɵ
|
|
3792
|
-
EventService
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
+
EventService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: EventService, deps: [{ token: UtilityService }, { token: 'environment' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
3802
|
+
EventService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: EventService, providedIn: 'root' });
|
|
3803
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: EventService, decorators: [{
|
|
3804
|
+
type: i0.Injectable,
|
|
3805
|
+
args: [{
|
|
3806
|
+
providedIn: 'root',
|
|
3807
|
+
}]
|
|
3808
|
+
}], ctorParameters: function () {
|
|
3809
|
+
return [{ type: UtilityService }, { type: undefined, decorators: [{
|
|
3810
|
+
type: i0.Inject,
|
|
3811
|
+
args: ['environment']
|
|
3812
|
+
}] }];
|
|
3813
|
+
} });
|
|
3801
3814
|
|
|
3802
3815
|
var PROTECTED_SLAG_V8 = '/apis/protected/v8';
|
|
3803
|
-
var ɵ0 = function (type, id) { return PROTECTED_SLAG_V8 + "/content/collection/" + type + "/" + id; }, ɵ1 = function (contentId) { return PROTECTED_SLAG_V8 + "/user/progress/" + contentId; };
|
|
3804
3816
|
var API_END_POINTS = {
|
|
3805
3817
|
CONTENT: PROTECTED_SLAG_V8 + "/content",
|
|
3806
3818
|
AUTHORING_CONTENT: "/apis/authApi/hierarchy",
|
|
@@ -3817,9 +3829,9 @@
|
|
|
3817
3829
|
USER_CONTINUE_LEARNING: PROTECTED_SLAG_V8 + "/user/history/continue",
|
|
3818
3830
|
CONTENT_RATING: PROTECTED_SLAG_V8 + "/user/rating",
|
|
3819
3831
|
CONTENT_RATING_V2: PROTECTED_SLAG_V8 + "/user/rating/content/average-ratingInfo",
|
|
3820
|
-
COLLECTION_HIERARCHY:
|
|
3832
|
+
COLLECTION_HIERARCHY: function (type, id) { return PROTECTED_SLAG_V8 + "/content/collection/" + type + "/" + id; },
|
|
3821
3833
|
REGISTRATION_STATUS: PROTECTED_SLAG_V8 + "/admin/userRegistration/checkUserRegistrationContent",
|
|
3822
|
-
MARK_AS_COMPLETE_META:
|
|
3834
|
+
MARK_AS_COMPLETE_META: function (contentId) { return PROTECTED_SLAG_V8 + "/user/progress/" + contentId; },
|
|
3823
3835
|
};
|
|
3824
3836
|
var WidgetContentService = /** @class */ (function () {
|
|
3825
3837
|
function WidgetContentService(http, configSvc) {
|
|
@@ -3985,16 +3997,14 @@
|
|
|
3985
3997
|
};
|
|
3986
3998
|
return WidgetContentService;
|
|
3987
3999
|
}());
|
|
3988
|
-
WidgetContentService.ɵ
|
|
3989
|
-
WidgetContentService
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
{ type: ConfigurationsService }
|
|
3997
|
-
]; };
|
|
4000
|
+
WidgetContentService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: WidgetContentService, deps: [{ token: i1__namespace$2.HttpClient }, { token: ConfigurationsService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
4001
|
+
WidgetContentService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: WidgetContentService, providedIn: 'root' });
|
|
4002
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: WidgetContentService, decorators: [{
|
|
4003
|
+
type: i0.Injectable,
|
|
4004
|
+
args: [{
|
|
4005
|
+
providedIn: 'root',
|
|
4006
|
+
}]
|
|
4007
|
+
}], ctorParameters: function () { return [{ type: i1__namespace$2.HttpClient }, { type: ConfigurationsService }]; } });
|
|
3998
4008
|
|
|
3999
4009
|
var TelemetryService = /** @class */ (function () {
|
|
4000
4010
|
function TelemetryService(environment, configSvc, eventsSvc, logger) {
|
|
@@ -4428,122 +4438,29 @@
|
|
|
4428
4438
|
};
|
|
4429
4439
|
return TelemetryService;
|
|
4430
4440
|
}());
|
|
4431
|
-
TelemetryService.ɵ
|
|
4432
|
-
TelemetryService
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4441
|
+
TelemetryService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TelemetryService, deps: [{ token: 'environment' }, { token: ConfigurationsService }, { token: EventService }, { token: LoggerService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
4442
|
+
TelemetryService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TelemetryService, providedIn: 'root' });
|
|
4443
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TelemetryService, decorators: [{
|
|
4444
|
+
type: i0.Injectable,
|
|
4445
|
+
args: [{
|
|
4446
|
+
providedIn: 'root',
|
|
4447
|
+
}]
|
|
4448
|
+
}], ctorParameters: function () {
|
|
4449
|
+
return [{ type: undefined, decorators: [{
|
|
4450
|
+
type: i0.Inject,
|
|
4451
|
+
args: ['environment']
|
|
4452
|
+
}] }, { type: ConfigurationsService }, { type: EventService }, { type: LoggerService }];
|
|
4453
|
+
} });
|
|
4443
4454
|
|
|
4444
4455
|
var SubapplicationRespondService = /** @class */ (function () {
|
|
4445
|
-
function SubapplicationRespondService(
|
|
4446
|
-
var _this = this;
|
|
4447
|
-
this.configSvc = configSvc;
|
|
4456
|
+
function SubapplicationRespondService(contentSvc, eventSvc, teleSvc) {
|
|
4448
4457
|
this.contentSvc = contentSvc;
|
|
4449
|
-
this.keyCloakSvc = keyCloakSvc;
|
|
4450
|
-
this.activatedRoute = activatedRoute;
|
|
4451
|
-
this.router = router;
|
|
4452
4458
|
this.eventSvc = eventSvc;
|
|
4453
4459
|
this.teleSvc = teleSvc;
|
|
4454
4460
|
this.subAppname = '';
|
|
4455
4461
|
this.continueLearningData = null;
|
|
4456
4462
|
this.loaded = false;
|
|
4457
|
-
this.changeContextrespond();
|
|
4458
|
-
this.configSvc.prefChangeNotifier.subscribe(function () {
|
|
4459
|
-
_this.changeContextrespond();
|
|
4460
|
-
});
|
|
4461
4463
|
}
|
|
4462
|
-
SubapplicationRespondService.prototype.loadedRespond = function (contentWindow, applicationName, id) {
|
|
4463
|
-
var _this = this;
|
|
4464
|
-
if (id && this.activatedRoute.snapshot.queryParams.viewMode && this.activatedRoute.snapshot.queryParams.viewMode === 'RESUME') {
|
|
4465
|
-
this.continueLearningData = null;
|
|
4466
|
-
this.contentSvc.fetchContentHistory(id).subscribe(function (data) {
|
|
4467
|
-
_this.continueLearningData = data.continueData;
|
|
4468
|
-
if (_this.configSvc && _this.configSvc.userProfile) {
|
|
4469
|
-
var firstName = _this.configSvc.userProfile.userName ?
|
|
4470
|
-
_this.configSvc.userProfile.userName.split(' ', 2)[0] : '';
|
|
4471
|
-
var lastName = _this.configSvc.userProfile.userName ?
|
|
4472
|
-
_this.configSvc.userProfile.userName.split(' ', 2)[1] : '';
|
|
4473
|
-
var viewMode = _this.activatedRoute.snapshot.queryParams.viewMode ?
|
|
4474
|
-
_this.activatedRoute.snapshot.queryParams.viewMode : '';
|
|
4475
|
-
var token = _this.keyCloakSvc.token;
|
|
4476
|
-
var response = {
|
|
4477
|
-
subApplicationName: applicationName,
|
|
4478
|
-
requestId: 'LOADED',
|
|
4479
|
-
parentContext: {
|
|
4480
|
-
domainName: window.location.host,
|
|
4481
|
-
url: _this.router.url,
|
|
4482
|
-
rootOrg: _this.configSvc.rootOrg,
|
|
4483
|
-
theme: _this.configSvc.activeThemeObject ? Object.assign({ name: _this.configSvc.activeThemeObject.themeName }, _this.configSvc.activeThemeObject.color) : '',
|
|
4484
|
-
fontSize: _this.configSvc.activeFontObject ? _this.configSvc.activeFontObject.baseFontSize : '14px',
|
|
4485
|
-
locale: (_this.configSvc.userPreference && _this.configSvc.userPreference.selectedLocale) || 'en',
|
|
4486
|
-
darkMode: _this.configSvc.isDarkMode,
|
|
4487
|
-
subApplicationStartMode: viewMode.toUpperCase(),
|
|
4488
|
-
user: {
|
|
4489
|
-
firstName: firstName,
|
|
4490
|
-
lastName: lastName,
|
|
4491
|
-
token: token,
|
|
4492
|
-
userId: _this.configSvc.userProfile.userId ? _this.configSvc.userProfile.userId : '',
|
|
4493
|
-
roles: _this.configSvc.userRoles ? Array.from(_this.configSvc.userRoles) : [],
|
|
4494
|
-
},
|
|
4495
|
-
heartbeatFrequency: '200',
|
|
4496
|
-
},
|
|
4497
|
-
data: _this.continueLearningData.data ? {
|
|
4498
|
-
continueLearning: _this.continueLearningData.data,
|
|
4499
|
-
} : null,
|
|
4500
|
-
};
|
|
4501
|
-
contentWindow.postMessage(response, '*');
|
|
4502
|
-
_this.contentWindowinfo = contentWindow;
|
|
4503
|
-
_this.loaded = true;
|
|
4504
|
-
_this.subAppname = applicationName;
|
|
4505
|
-
}
|
|
4506
|
-
});
|
|
4507
|
-
}
|
|
4508
|
-
else {
|
|
4509
|
-
if (this.configSvc && this.configSvc.userProfile) {
|
|
4510
|
-
var firstName = this.configSvc.userProfile.userName ?
|
|
4511
|
-
this.configSvc.userProfile.userName.split(' ', 2)[0] : '';
|
|
4512
|
-
var lastName = this.configSvc.userProfile.userName ?
|
|
4513
|
-
this.configSvc.userProfile.userName.split(' ', 2)[1] : '';
|
|
4514
|
-
var viewMode = this.activatedRoute.snapshot.queryParams.viewMode ?
|
|
4515
|
-
this.activatedRoute.snapshot.queryParams.viewMode : '';
|
|
4516
|
-
var token = this.keyCloakSvc.token;
|
|
4517
|
-
var response = {
|
|
4518
|
-
subApplicationName: applicationName,
|
|
4519
|
-
requestId: 'LOADED',
|
|
4520
|
-
parentContext: {
|
|
4521
|
-
domainName: window.location.host,
|
|
4522
|
-
url: this.router.url,
|
|
4523
|
-
rootOrg: this.configSvc.rootOrg,
|
|
4524
|
-
theme: this.configSvc.activeThemeObject ? Object.assign({ name: this.configSvc.activeThemeObject.themeName }, this.configSvc.activeThemeObject.color) : '',
|
|
4525
|
-
fontSize: this.configSvc.activeFontObject ? this.configSvc.activeFontObject.baseFontSize : '14px',
|
|
4526
|
-
locale: (this.configSvc.userPreference && this.configSvc.userPreference.selectedLocale) || 'en',
|
|
4527
|
-
darkMode: this.configSvc.isDarkMode,
|
|
4528
|
-
subApplicationStartMode: viewMode.toUpperCase(),
|
|
4529
|
-
user: {
|
|
4530
|
-
firstName: firstName,
|
|
4531
|
-
lastName: lastName,
|
|
4532
|
-
token: token,
|
|
4533
|
-
userId: this.configSvc.userProfile.userId ? this.configSvc.userProfile.userId : '',
|
|
4534
|
-
roles: this.configSvc.userRoles ? Array.from(this.configSvc.userRoles) : [],
|
|
4535
|
-
},
|
|
4536
|
-
heartbeatFrequency: '200',
|
|
4537
|
-
},
|
|
4538
|
-
data: null,
|
|
4539
|
-
};
|
|
4540
|
-
contentWindow.postMessage(response, '*');
|
|
4541
|
-
this.contentWindowinfo = contentWindow;
|
|
4542
|
-
this.loaded = true;
|
|
4543
|
-
this.subAppname = applicationName;
|
|
4544
|
-
}
|
|
4545
|
-
}
|
|
4546
|
-
};
|
|
4547
4464
|
SubapplicationRespondService.prototype.continueLearningRespond = function (id, continueLearning) {
|
|
4548
4465
|
this.contentSvc.saveContinueLearning({
|
|
4549
4466
|
contextPathId: id,
|
|
@@ -4589,57 +4506,16 @@
|
|
|
4589
4506
|
this.contentWindowinfo = null;
|
|
4590
4507
|
this.loaded = false;
|
|
4591
4508
|
};
|
|
4592
|
-
SubapplicationRespondService.prototype.changeContextrespond = function () {
|
|
4593
|
-
if (this.loaded && this.contentWindowinfo && this.configSvc && this.configSvc.userProfile && this.subAppname) {
|
|
4594
|
-
var firstName = this.configSvc.userProfile.userName ?
|
|
4595
|
-
this.configSvc.userProfile.userName.split(' ', 2)[0] : '';
|
|
4596
|
-
var lastName = this.configSvc.userProfile.userName ?
|
|
4597
|
-
this.configSvc.userProfile.userName.split(' ', 2)[1] : '';
|
|
4598
|
-
var viewMode = this.activatedRoute.snapshot.queryParams.viewMode ?
|
|
4599
|
-
this.activatedRoute.snapshot.queryParams.viewMode : '';
|
|
4600
|
-
var token = this.keyCloakSvc.token;
|
|
4601
|
-
var response = {
|
|
4602
|
-
subApplicationName: this.subAppname,
|
|
4603
|
-
requestId: 'CONTEXT_CHANGE',
|
|
4604
|
-
parentContext: {
|
|
4605
|
-
domainName: window.location.host,
|
|
4606
|
-
url: this.router.url,
|
|
4607
|
-
rootOrg: this.configSvc.rootOrg,
|
|
4608
|
-
theme: this.configSvc.activeThemeObject ? Object.assign({ name: this.configSvc.activeThemeObject.themeName }, this.configSvc.activeThemeObject.color) : '',
|
|
4609
|
-
fontSize: this.configSvc.activeFontObject ? this.configSvc.activeFontObject.baseFontSize : '14px',
|
|
4610
|
-
locale: (this.configSvc.userPreference && this.configSvc.userPreference.selectedLocale) || 'en',
|
|
4611
|
-
darkMode: this.configSvc.isDarkMode,
|
|
4612
|
-
subApplicationStartMode: viewMode.toUpperCase(),
|
|
4613
|
-
user: {
|
|
4614
|
-
firstName: firstName,
|
|
4615
|
-
lastName: lastName,
|
|
4616
|
-
token: token,
|
|
4617
|
-
userId: this.configSvc.userProfile.userId ? this.configSvc.userProfile.userId : '',
|
|
4618
|
-
roles: this.configSvc.userRoles ? Array.from(this.configSvc.userRoles) : [],
|
|
4619
|
-
},
|
|
4620
|
-
heartbeatFrequency: '200',
|
|
4621
|
-
},
|
|
4622
|
-
};
|
|
4623
|
-
this.contentWindowinfo.postMessage(response, '*');
|
|
4624
|
-
}
|
|
4625
|
-
};
|
|
4626
4509
|
return SubapplicationRespondService;
|
|
4627
4510
|
}());
|
|
4628
|
-
SubapplicationRespondService.ɵ
|
|
4629
|
-
SubapplicationRespondService
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
{ type: WidgetContentService },
|
|
4637
|
-
{ type: AuthKeycloakService },
|
|
4638
|
-
{ type: i3.ActivatedRoute },
|
|
4639
|
-
{ type: i3.Router },
|
|
4640
|
-
{ type: EventService },
|
|
4641
|
-
{ type: TelemetryService }
|
|
4642
|
-
]; };
|
|
4511
|
+
SubapplicationRespondService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SubapplicationRespondService, deps: [{ token: WidgetContentService }, { token: EventService }, { token: TelemetryService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
4512
|
+
SubapplicationRespondService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SubapplicationRespondService, providedIn: 'root' });
|
|
4513
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SubapplicationRespondService, decorators: [{
|
|
4514
|
+
type: i0.Injectable,
|
|
4515
|
+
args: [{
|
|
4516
|
+
providedIn: 'root',
|
|
4517
|
+
}]
|
|
4518
|
+
}], ctorParameters: function () { return [{ type: WidgetContentService }, { type: EventService }, { type: TelemetryService }]; } });
|
|
4643
4519
|
|
|
4644
4520
|
var endpoints = {
|
|
4645
4521
|
userPref: '/apis/protected/v8/user/preference',
|
|
@@ -4725,16 +4601,14 @@
|
|
|
4725
4601
|
};
|
|
4726
4602
|
return UserPreferenceService;
|
|
4727
4603
|
}());
|
|
4728
|
-
UserPreferenceService.ɵ
|
|
4729
|
-
UserPreferenceService
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
{ type: ConfigurationsService }
|
|
4737
|
-
]; };
|
|
4604
|
+
UserPreferenceService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: UserPreferenceService, deps: [{ token: i1__namespace$2.HttpClient }, { token: ConfigurationsService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
4605
|
+
UserPreferenceService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: UserPreferenceService, providedIn: 'root' });
|
|
4606
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: UserPreferenceService, decorators: [{
|
|
4607
|
+
type: i0.Injectable,
|
|
4608
|
+
args: [{
|
|
4609
|
+
providedIn: 'root',
|
|
4610
|
+
}]
|
|
4611
|
+
}], ctorParameters: function () { return [{ type: i1__namespace$2.HttpClient }, { type: ConfigurationsService }]; } });
|
|
4738
4612
|
|
|
4739
4613
|
exports.NsContent = void 0;
|
|
4740
4614
|
(function (NsContent) {
|
|
@@ -4904,8 +4778,6 @@
|
|
|
4904
4778
|
exports.ValueService = ValueService;
|
|
4905
4779
|
exports.WidgetContentService = WidgetContentService;
|
|
4906
4780
|
exports.getStringifiedQueryParams = getStringifiedQueryParams;
|
|
4907
|
-
exports["ɵ0"] = ɵ0;
|
|
4908
|
-
exports["ɵ1"] = ɵ1;
|
|
4909
4781
|
|
|
4910
4782
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4911
4783
|
|