@sunbird-cb/utils-v2 0.0.0-watch → 0.0.1-ang-17-20-role-based

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.
Files changed (209) hide show
  1. package/fesm2022/sunbird-cb-utils-v2.mjs +1805 -449
  2. package/fesm2022/sunbird-cb-utils-v2.mjs.map +1 -1
  3. package/index.d.ts +3485 -2
  4. package/package.json +11 -13
  5. package/esm2022/lib/components/image-crop/image-crop.component.mjs +0 -172
  6. package/esm2022/lib/components/image-crop/image-crop.module.mjs +0 -55
  7. package/esm2022/lib/constants/features.enum.mjs +0 -555
  8. package/esm2022/lib/constants/instances.enum.mjs +0 -5
  9. package/esm2022/lib/constants/misc.constants.mjs +0 -2
  10. package/esm2022/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.mjs +0 -87
  11. package/esm2022/lib/directives/class-change-on-scroll/class-change-on-scroll.module.mjs +0 -20
  12. package/esm2022/lib/directives/default-thumbnail/default-thumbnail.directive.mjs +0 -40
  13. package/esm2022/lib/directives/default-thumbnail/default-thumbnail.module.mjs +0 -20
  14. package/esm2022/lib/directives/image-responsive/image-responsive.directive.mjs +0 -86
  15. package/esm2022/lib/directives/image-responsive/image-responsive.module.mjs +0 -20
  16. package/esm2022/lib/directives/in-view-port/in-view-port.directive.mjs +0 -62
  17. package/esm2022/lib/directives/in-view-port/in-view-port.module.mjs +0 -20
  18. package/esm2022/lib/directives/navigation/navigation.directive.mjs +0 -43
  19. package/esm2022/lib/directives/navigation/navigation.module.mjs +0 -20
  20. package/esm2022/lib/directives/permission/permission.directive.mjs +0 -14
  21. package/esm2022/lib/directives/permission/permission.module.mjs +0 -20
  22. package/esm2022/lib/helpers/functions/getStringifiedQueryParams.mjs +0 -9
  23. package/esm2022/lib/helpers/horizontal-scroller/horizontal-scroller.component.mjs +0 -96
  24. package/esm2022/lib/helpers/horizontal-scroller/horizontal-scroller.module.mjs +0 -32
  25. package/esm2022/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.component.mjs +0 -186
  26. package/esm2022/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.module.mjs +0 -32
  27. package/esm2022/lib/helpers/logout/logout.component.mjs +0 -78
  28. package/esm2022/lib/helpers/logout/logout.module.mjs +0 -31
  29. package/esm2022/lib/models/profile-v3.models.mjs +0 -2
  30. package/esm2022/lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.module.mjs +0 -20
  31. package/esm2022/lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.pipe.mjs +0 -117
  32. package/esm2022/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.mjs +0 -18
  33. package/esm2022/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.mjs +0 -57
  34. package/esm2022/lib/pipes/pipe-count-transform/pipe-count-transform.module.mjs +0 -20
  35. package/esm2022/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.mjs +0 -37
  36. package/esm2022/lib/pipes/pipe-coursename/PipeCourseNameModule.mjs +0 -20
  37. package/esm2022/lib/pipes/pipe-coursename/pipe-coursename.pipe.mjs +0 -17
  38. package/esm2022/lib/pipes/pipe-date-concat/pipe-date-concat.module.mjs +0 -20
  39. package/esm2022/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.mjs +0 -36
  40. package/esm2022/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.mjs +0 -20
  41. package/esm2022/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.mjs +0 -86
  42. package/esm2022/lib/pipes/pipe-email/pipe-email.module.mjs +0 -20
  43. package/esm2022/lib/pipes/pipe-email/pipe-email.pipe.mjs +0 -16
  44. package/esm2022/lib/pipes/pipe-filter/pipe-filter.module.mjs +0 -20
  45. package/esm2022/lib/pipes/pipe-filter/pipe-filter.pipe.mjs +0 -20
  46. package/esm2022/lib/pipes/pipe-filter-search/pipe-filter-search.module.mjs +0 -20
  47. package/esm2022/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.mjs +0 -42
  48. package/esm2022/lib/pipes/pipe-filter-v2/pipe-filter-v2.module.mjs +0 -20
  49. package/esm2022/lib/pipes/pipe-filter-v2/pipe-filter-v2.pipe.mjs +0 -25
  50. package/esm2022/lib/pipes/pipe-filter-v3/pipe-filter-v3.module.mjs +0 -20
  51. package/esm2022/lib/pipes/pipe-filter-v3/pipe-filter-v3.pipe.mjs +0 -27
  52. package/esm2022/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.mjs +0 -20
  53. package/esm2022/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.mjs +0 -16
  54. package/esm2022/lib/pipes/pipe-limit-to/pipe-limit-to.module.mjs +0 -20
  55. package/esm2022/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.mjs +0 -29
  56. package/esm2022/lib/pipes/pipe-list-filter/pipe-list-filter.module.mjs +0 -20
  57. package/esm2022/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.mjs +0 -21
  58. package/esm2022/lib/pipes/pipe-name-transform/pipe-name-transform.module.mjs +0 -20
  59. package/esm2022/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.mjs +0 -26
  60. package/esm2022/lib/pipes/pipe-nic-relative/pipe-nic-relative.module.mjs +0 -20
  61. package/esm2022/lib/pipes/pipe-nic-relative/pipe-nic-relative.pipe.mjs +0 -40
  62. package/esm2022/lib/pipes/pipe-order-by/pipe-order-by.module.mjs +0 -20
  63. package/esm2022/lib/pipes/pipe-order-by/pipe-order-by.pipe.mjs +0 -17
  64. package/esm2022/lib/pipes/pipe-ordinal/pipe-ordinal.module.mjs +0 -20
  65. package/esm2022/lib/pipes/pipe-ordinal/pipe-ordinal.pipe.mjs +0 -21
  66. package/esm2022/lib/pipes/pipe-partial-content/pipe-partial-content.module.mjs +0 -20
  67. package/esm2022/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.mjs +0 -22
  68. package/esm2022/lib/pipes/pipe-public-URL/pipe-public-URL.module.mjs +0 -20
  69. package/esm2022/lib/pipes/pipe-public-URL/pipe-public-URL.pipe.mjs +0 -27
  70. package/esm2022/lib/pipes/pipe-relative-time/pipe-relative-time.module.mjs +0 -20
  71. package/esm2022/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.mjs +0 -20
  72. package/esm2022/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.mjs +0 -20
  73. package/esm2022/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.mjs +0 -33
  74. package/esm2022/lib/resolvers/explore-detail.resolver.mjs +0 -76
  75. package/esm2022/lib/resolvers/marketing-offering.resolve.mjs +0 -35
  76. package/esm2022/lib/resolvers/module-name.resolver.mjs +0 -36
  77. package/esm2022/lib/resolvers/page-name.resolver.mjs +0 -33
  78. package/esm2022/lib/resolvers/page.constant.mjs +0 -4
  79. package/esm2022/lib/resolvers/page.model.mjs +0 -2
  80. package/esm2022/lib/resolvers/page.resolver.mjs +0 -82
  81. package/esm2022/lib/resolvers/resolver.model.mjs +0 -2
  82. package/esm2022/lib/services/auth-keycloak.service.mjs +0 -124
  83. package/esm2022/lib/services/auth-microsoft.service.mjs +0 -173
  84. package/esm2022/lib/services/card-content.model.mjs +0 -11
  85. package/esm2022/lib/services/configurations.model.mjs +0 -2
  86. package/esm2022/lib/services/configurations.service.mjs +0 -83
  87. package/esm2022/lib/services/content-strip-multiple.model.mjs +0 -2
  88. package/esm2022/lib/services/event.model.mjs +0 -145
  89. package/esm2022/lib/services/event.service.mjs +0 -294
  90. package/esm2022/lib/services/logger.service.mjs +0 -45
  91. package/esm2022/lib/services/ms-office.model.mjs +0 -2
  92. package/esm2022/lib/services/multilingual-translations.service.mjs +0 -121
  93. package/esm2022/lib/services/nps-grid.service.mjs +0 -38
  94. package/esm2022/lib/services/subapplication-respond.service.mjs +0 -206
  95. package/esm2022/lib/services/telemetry.service.mjs +0 -695
  96. package/esm2022/lib/services/user-preference.model.mjs +0 -2
  97. package/esm2022/lib/services/user-preference.service.mjs +0 -92
  98. package/esm2022/lib/services/utility.service.mjs +0 -122
  99. package/esm2022/lib/services/value.service.mjs +0 -25
  100. package/esm2022/lib/services/widget-content.model.mjs +0 -144
  101. package/esm2022/lib/services/widget-content.service.mjs +0 -198
  102. package/esm2022/lib/services/widget-resolver.model.mjs +0 -2
  103. package/esm2022/lib/services/widget-search.model.mjs +0 -2
  104. package/esm2022/lib/services-new/data-transfer.service.mjs +0 -23
  105. package/esm2022/lib/services-new/widget-enroll.service.mjs +0 -55
  106. package/esm2022/public-api.mjs +0 -98
  107. package/esm2022/sunbird-cb-utils-v2.mjs +0 -2
  108. package/lib/components/image-crop/image-crop.component.d.ts +0 -59
  109. package/lib/components/image-crop/image-crop.module.d.ts +0 -16
  110. package/lib/constants/features.enum.d.ts +0 -553
  111. package/lib/constants/instances.enum.d.ts +0 -3
  112. package/lib/constants/misc.constants.d.ts +0 -2
  113. package/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.d.ts +0 -21
  114. package/lib/directives/class-change-on-scroll/class-change-on-scroll.module.d.ts +0 -8
  115. package/lib/directives/default-thumbnail/default-thumbnail.directive.d.ts +0 -12
  116. package/lib/directives/default-thumbnail/default-thumbnail.module.d.ts +0 -8
  117. package/lib/directives/image-responsive/image-responsive.directive.d.ts +0 -20
  118. package/lib/directives/image-responsive/image-responsive.module.d.ts +0 -8
  119. package/lib/directives/in-view-port/in-view-port.directive.d.ts +0 -14
  120. package/lib/directives/in-view-port/in-view-port.module.d.ts +0 -8
  121. package/lib/directives/navigation/navigation.directive.d.ts +0 -12
  122. package/lib/directives/navigation/navigation.module.d.ts +0 -8
  123. package/lib/directives/permission/permission.directive.d.ts +0 -6
  124. package/lib/directives/permission/permission.module.d.ts +0 -8
  125. package/lib/helpers/functions/getStringifiedQueryParams.d.ts +0 -3
  126. package/lib/helpers/horizontal-scroller/horizontal-scroller.component.d.ts +0 -21
  127. package/lib/helpers/horizontal-scroller/horizontal-scroller.module.d.ts +0 -11
  128. package/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.component.d.ts +0 -39
  129. package/lib/helpers/horizontal-scroller-v2/horizontal-scroller-v2.module.d.ts +0 -11
  130. package/lib/helpers/logout/logout.component.d.ts +0 -23
  131. package/lib/helpers/logout/logout.module.d.ts +0 -11
  132. package/lib/models/profile-v3.models.d.ts +0 -91
  133. package/lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.module.d.ts +0 -8
  134. package/lib/pipes/pipe-certificate-image-URL/pipe-certimage-URL.pipe.d.ts +0 -9
  135. package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.d.ts +0 -8
  136. package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.d.ts +0 -13
  137. package/lib/pipes/pipe-count-transform/pipe-count-transform.module.d.ts +0 -8
  138. package/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.d.ts +0 -7
  139. package/lib/pipes/pipe-coursename/PipeCourseNameModule.d.ts +0 -8
  140. package/lib/pipes/pipe-coursename/pipe-coursename.pipe.d.ts +0 -7
  141. package/lib/pipes/pipe-date-concat/pipe-date-concat.module.d.ts +0 -8
  142. package/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.d.ts +0 -16
  143. package/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.d.ts +0 -8
  144. package/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.d.ts +0 -9
  145. package/lib/pipes/pipe-email/pipe-email.module.d.ts +0 -8
  146. package/lib/pipes/pipe-email/pipe-email.pipe.d.ts +0 -7
  147. package/lib/pipes/pipe-filter/pipe-filter.module.d.ts +0 -8
  148. package/lib/pipes/pipe-filter/pipe-filter.pipe.d.ts +0 -7
  149. package/lib/pipes/pipe-filter-search/pipe-filter-search.module.d.ts +0 -8
  150. package/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.d.ts +0 -7
  151. package/lib/pipes/pipe-filter-v2/pipe-filter-v2.module.d.ts +0 -8
  152. package/lib/pipes/pipe-filter-v2/pipe-filter-v2.pipe.d.ts +0 -7
  153. package/lib/pipes/pipe-filter-v3/pipe-filter-v3.module.d.ts +0 -8
  154. package/lib/pipes/pipe-filter-v3/pipe-filter-v3.pipe.d.ts +0 -7
  155. package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.d.ts +0 -8
  156. package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.d.ts +0 -7
  157. package/lib/pipes/pipe-limit-to/pipe-limit-to.module.d.ts +0 -8
  158. package/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.d.ts +0 -7
  159. package/lib/pipes/pipe-list-filter/pipe-list-filter.module.d.ts +0 -8
  160. package/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.d.ts +0 -7
  161. package/lib/pipes/pipe-name-transform/pipe-name-transform.module.d.ts +0 -8
  162. package/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.d.ts +0 -12
  163. package/lib/pipes/pipe-nic-relative/pipe-nic-relative.module.d.ts +0 -8
  164. package/lib/pipes/pipe-nic-relative/pipe-nic-relative.pipe.d.ts +0 -10
  165. package/lib/pipes/pipe-order-by/pipe-order-by.module.d.ts +0 -8
  166. package/lib/pipes/pipe-order-by/pipe-order-by.pipe.d.ts +0 -12
  167. package/lib/pipes/pipe-ordinal/pipe-ordinal.module.d.ts +0 -8
  168. package/lib/pipes/pipe-ordinal/pipe-ordinal.pipe.d.ts +0 -7
  169. package/lib/pipes/pipe-partial-content/pipe-partial-content.module.d.ts +0 -8
  170. package/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.d.ts +0 -7
  171. package/lib/pipes/pipe-public-URL/pipe-public-URL.module.d.ts +0 -8
  172. package/lib/pipes/pipe-public-URL/pipe-public-URL.pipe.d.ts +0 -9
  173. package/lib/pipes/pipe-relative-time/pipe-relative-time.module.d.ts +0 -8
  174. package/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.d.ts +0 -7
  175. package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.d.ts +0 -8
  176. package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.d.ts +0 -10
  177. package/lib/resolvers/explore-detail.resolver.d.ts +0 -19
  178. package/lib/resolvers/marketing-offering.resolve.d.ts +0 -13
  179. package/lib/resolvers/module-name.resolver.d.ts +0 -9
  180. package/lib/resolvers/page-name.resolver.d.ts +0 -8
  181. package/lib/resolvers/page.constant.d.ts +0 -1
  182. package/lib/resolvers/page.model.d.ts +0 -41
  183. package/lib/resolvers/page.resolver.d.ts +0 -20
  184. package/lib/resolvers/resolver.model.d.ts +0 -4
  185. package/lib/services/auth-keycloak.service.d.ts +0 -23
  186. package/lib/services/auth-microsoft.service.d.ts +0 -33
  187. package/lib/services/card-content.model.d.ts +0 -29
  188. package/lib/services/configurations.model.d.ts +0 -526
  189. package/lib/services/configurations.service.d.ts +0 -79
  190. package/lib/services/content-strip-multiple.model.d.ts +0 -80
  191. package/lib/services/event.model.d.ts +0 -222
  192. package/lib/services/event.service.d.ts +0 -39
  193. package/lib/services/logger.service.d.ts +0 -18
  194. package/lib/services/ms-office.model.d.ts +0 -6
  195. package/lib/services/multilingual-translations.service.d.ts +0 -23
  196. package/lib/services/nps-grid.service.d.ts +0 -15
  197. package/lib/services/subapplication-respond.service.d.ts +0 -26
  198. package/lib/services/telemetry.service.d.ts +0 -59
  199. package/lib/services/user-preference.model.d.ts +0 -34
  200. package/lib/services/user-preference.service.d.ts +0 -14
  201. package/lib/services/utility.service.d.ts +0 -34
  202. package/lib/services/value.service.d.ts +0 -11
  203. package/lib/services/widget-content.model.d.ts +0 -356
  204. package/lib/services/widget-content.service.d.ts +0 -54
  205. package/lib/services/widget-resolver.model.d.ts +0 -48
  206. package/lib/services/widget-search.model.d.ts +0 -114
  207. package/lib/services-new/data-transfer.service.d.ts +0 -10
  208. package/lib/services-new/widget-enroll.service.d.ts +0 -17
  209. package/public-api.d.ts +0 -97
@@ -1,46 +1,57 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, EventEmitter, Component, Inject, Output, NgModule, Directive, Input, HostBinding, HostListener, ViewChild, Pipe, LOCALE_ID } from '@angular/core';
3
- import * as i1$1 from '@angular/material/legacy-dialog';
4
- import { MAT_LEGACY_DIALOG_DATA, MatLegacyDialogModule } from '@angular/material/legacy-dialog';
5
- import { BehaviorSubject, ReplaySubject, Subject, fromEvent, timer, of, EMPTY, forkJoin } from 'rxjs';
6
- import * as i3 from '@angular/material/legacy-snack-bar';
7
- import * as i1 from '@angular/cdk/layout';
2
+ import { Injectable, EventEmitter, Output, Inject, Component, NgModule, HostBinding, Input, Directive, HostListener, ViewChild, Pipe, LOCALE_ID } from '@angular/core';
3
+ import * as i1$2 from '@angular/material/dialog';
4
+ import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
5
+ import { BehaviorSubject, ReplaySubject, Subject, of, throwError, fromEvent, timer, EMPTY, forkJoin } from 'rxjs';
6
+ import { shareReplay, map, tap, catchError, debounceTime, distinctUntilChanged, throttleTime, mergeMap, retry, filter } from 'rxjs/operators';
7
+ import * as _ from 'lodash';
8
+ import ___default, { orderBy } from 'lodash';
9
+ import * as i1 from '@angular/common/http';
10
+ import * as i3 from '@angular/material/snack-bar';
11
+ import * as i1$1 from '@angular/cdk/layout';
8
12
  import { Breakpoints } from '@angular/cdk/layout';
9
- import { map, debounceTime, distinctUntilChanged, throttleTime, catchError, mergeMap, retry, filter } from 'rxjs/operators';
10
13
  import * as i2 from '@angular/common';
11
- import { CommonModule } from '@angular/common';
14
+ import { CommonModule, DatePipe } from '@angular/common';
12
15
  import * as i6 from 'ngx-image-cropper';
13
16
  import { ImageCropperModule } from 'ngx-image-cropper';
14
17
  import * as i7 from '@angular/material/icon';
15
18
  import { MatIconModule } from '@angular/material/icon';
16
- import * as i8 from '@angular/material/legacy-button';
17
- import { MatLegacyButtonModule } from '@angular/material/legacy-button';
18
- import * as i9 from '@angular/material/legacy-card';
19
- import { MatLegacyCardModule } from '@angular/material/legacy-card';
20
- import * as i10 from '@angular/material/legacy-slider';
21
- import { MatLegacySliderModule } from '@angular/material/legacy-slider';
19
+ import * as i8 from '@angular/material/button';
20
+ import { MatButtonModule } from '@angular/material/button';
21
+ import * as i9 from '@angular/material/card';
22
+ import { MatCardModule } from '@angular/material/card';
23
+ import * as i10 from '@angular/material/slider';
24
+ import { MatSliderModule } from '@angular/material/slider';
22
25
  import { MatToolbarModule } from '@angular/material/toolbar';
23
- import { MatLegacyTooltipModule } from '@angular/material/legacy-tooltip';
24
- import * as i4 from '@angular/material/legacy-progress-spinner';
25
- import { MatLegacyProgressSpinnerModule } from '@angular/material/legacy-progress-spinner';
26
- import _, { orderBy } from 'lodash';
26
+ import { MatTooltipModule } from '@angular/material/tooltip';
27
+ import * as i4 from '@angular/material/progress-spinner';
28
+ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
27
29
  import moment from 'moment';
28
30
  import * as i3$1 from '@angular/router';
29
31
  import { NavigationEnd, NavigationStart } from '@angular/router';
30
- import * as i1$2 from '@angular/common/http';
31
32
  import * as i2$1 from '@angular/cdk/platform';
32
33
  import * as i5 from '@ngx-translate/core';
33
34
  import { TranslateModule } from '@ngx-translate/core';
34
35
  import * as i1$3 from '@angular/platform-browser';
35
36
 
37
+ // const instanceConfigPath: string | null = window.location.host
38
+ // const locationHost: string | null = window.location.host
39
+ // if (!environment.production && Boolean(environment.sitePath)) {
40
+ // locationHost = environment.sitePath
41
+ // instanceConfigPath = environment.sitePath
42
+ // }
36
43
  class ConfigurationsService {
37
- constructor() {
44
+ // update as the single source of truth
45
+ constructor(http) {
46
+ this.http = http;
38
47
  this.appSetup = true;
48
+ // The url the user tried to access while landing in the app before accepting tnc
39
49
  this.userUrl = '';
40
50
  this.baseUrl = `assets/configurations`;
41
51
  this.sitePath = `assets/configurations`;
42
52
  this.hostPath = (window.location.host).replace(':', '_');
43
53
  this.userRoles = null;
54
+ this.userAllRoles = null;
44
55
  this.userGroups = null;
45
56
  this.restrictedFeatures = null;
46
57
  this.restrictedWidgets = null;
@@ -59,7 +70,9 @@ class ConfigurationsService {
59
70
  this.nodebbUserProfile = null;
60
71
  this.isAuthenticated = false;
61
72
  this.isNewUser = false;
73
+ // pinnedApps
62
74
  this.pinnedApps = new BehaviorSubject(new Set());
75
+ // Notifier
63
76
  this.prefChangeNotifier = new ReplaySubject(1);
64
77
  this.tourGuideNotifier = new ReplaySubject();
65
78
  this.authChangeNotifier = new ReplaySubject(1);
@@ -67,9 +80,11 @@ class ConfigurationsService {
67
80
  this.updateProfileObservable = this.updateProfile.asObservable();
68
81
  this.updateTourGuide = new BehaviorSubject(true);
69
82
  this.updateTourGuideObservable = this.updateTourGuide.asObservable();
83
+ // platform rating
70
84
  this.updatePlatformRating = new BehaviorSubject({ bottom: '120px' });
71
85
  this.updatePlatformRatingObservable$ = this.updatePlatformRating.asObservable();
72
86
  this.languageTranslationFlag = new Subject();
87
+ // Preference Related Values
73
88
  this.activeThemeObject = null;
74
89
  this.activeFontObject = null;
75
90
  this.isDarkMode = false;
@@ -87,12 +102,38 @@ class ConfigurationsService {
87
102
  color: 'primary',
88
103
  };
89
104
  this.primaryNavBarConfig = null;
105
+ /* for temp Fix */
106
+ // setBaseUrl = (sitePath: string) => `assets/configurations/${(sitePath).replace(':', '_')}`
107
+ // setSitePath = (sitePath: string) => `assets/configurations/${(sitePath).replace(
108
+ // ':',
109
+ // '_',
110
+ // )}`
111
+ // setHostPath = (sitePath: string) => (sitePath).replace(':', '_')
90
112
  this.welcomeTabs = null;
91
113
  this.compentency = null;
114
+ // variable setting for csJwtToken
92
115
  this.cstoken = '';
93
116
  this.netcoreConfig = {};
117
+ this.completionSurvey = {};
118
+ this.globalConfig = {};
94
119
  this.changeNavBarFullView = new Subject();
95
120
  this.openExploreMenuForMWeb = new Subject();
121
+ this.headerFooterConfigData = null;
122
+ // Stores form read API response for reuse across calls
123
+ this.formReadData = null;
124
+ // Holds the in-flight Observable so concurrent callers share one HTTP request
125
+ this.formDataRequest$ = null;
126
+ this.noSpecialChar = new RegExp(/^[\p{L}\p{M}\p{N}\p{Cf}._\-$/:।()\[\]'! ]+$/u);
127
+ this.assessmentNoSpecialChar = new RegExp(/^[\p{L}\p{M}\p{N}\p{Cf}._\-\s$":/?,।()\[\]'! ]+$/u);
128
+ this.htmlTasRemovalRegex = /<\/?[^>]+>|&nbsp;|<br\s*\/?>|<\/br>|&#39;|&quot;/gi;
129
+ this.noSpecialCharHowToSection = new RegExp(/^[\p{L}\p{M}\p{N}\p{Cf}._\-$/:,।()\[\]'! ]+$/u);
130
+ this.updateOrgReadData = new BehaviorSubject('');
131
+ this.updateOrgReadDataObservable = this.updateOrgReadData.asObservable();
132
+ // @Inject('env') env: any
133
+ // if (!env.production && Boolean(env.sitePath)) {
134
+ // locationHost = env.sitePath
135
+ // instanceConfigPath = env.sitePath
136
+ // }
96
137
  }
97
138
  updateGlobalProfile(state) {
98
139
  this.updateProfile.next(state);
@@ -103,15 +144,64 @@ class ConfigurationsService {
103
144
  updatePlatformRatingMethod(state) {
104
145
  this.updatePlatformRating.next(state);
105
146
  }
106
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConfigurationsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
107
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConfigurationsService, providedIn: 'root' }); }
147
+ updateOrgData(id) {
148
+ this.updateOrgReadData.next(id);
149
+ }
150
+ /**
151
+ * Parent method — returns filtered form data as an Observable.
152
+ * Uses cached data if available; otherwise fetches from the form read API.
153
+ * @param formSubType Key-value pairs used to filter the form fields
154
+ */
155
+ getFormData(formSubType) {
156
+ if (this.formReadData) {
157
+ return of(this.filterFormData(this.formReadData, formSubType));
158
+ }
159
+ if (!this.formDataRequest$) {
160
+ this.formDataRequest$ = this.fetchAndStoreFormData().pipe(shareReplay(1));
161
+ }
162
+ return this.formDataRequest$.pipe(map(() => this.filterFormData(this.formReadData, formSubType)));
163
+ }
164
+ /**
165
+ * Fetches form data from the form read API and stores it in formReadData.
166
+ */
167
+ fetchAndStoreFormData() {
168
+ const url = '/apis/v1/form/read';
169
+ const requestData = {
170
+ 'request': {
171
+ 'type': 'page',
172
+ 'subType': 'portal-global-config',
173
+ 'action': 'page-configuration',
174
+ 'component': 'portal',
175
+ 'rootOrgId': '*',
176
+ },
177
+ };
178
+ return this.http.post(url, requestData).pipe(tap((data) => {
179
+ this.formReadData = _.get(data, 'result.form.data', null);
180
+ }), catchError((err) => {
181
+ this.formDataRequest$ = null;
182
+ return throwError(err);
183
+ }));
184
+ }
185
+ /**
186
+ * Filters form data based on the provided params.
187
+ * If data is an array, returns items where every param key-value matches.
188
+ * If data is an object, returns it as-is (extend as needed).
189
+ */
190
+ filterFormData(data, formSubType) {
191
+ if (data && typeof data === 'object' && formSubType) {
192
+ return _.get(data, formSubType, null);
193
+ }
194
+ return null;
195
+ }
196
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ConfigurationsService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
197
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ConfigurationsService, providedIn: 'root' }); }
108
198
  }
109
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConfigurationsService, decorators: [{
199
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ConfigurationsService, decorators: [{
110
200
  type: Injectable,
111
201
  args: [{
112
202
  providedIn: 'root',
113
203
  }]
114
- }], ctorParameters: function () { return []; } });
204
+ }], ctorParameters: () => [{ type: i1.HttpClient }] });
115
205
 
116
206
  class ValueService {
117
207
  constructor(breakpointObserver) {
@@ -123,15 +213,15 @@ class ValueService {
123
213
  .observe([Breakpoints.XSmall, Breakpoints.Small])
124
214
  .pipe(map((res) => res.matches));
125
215
  }
126
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ValueService, deps: [{ token: i1.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Injectable }); }
127
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ValueService, providedIn: 'root' }); }
216
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ValueService, deps: [{ token: i1$1.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Injectable }); }
217
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ValueService, providedIn: 'root' }); }
128
218
  }
129
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ValueService, decorators: [{
219
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ValueService, decorators: [{
130
220
  type: Injectable,
131
221
  args: [{
132
222
  providedIn: 'root',
133
223
  }]
134
- }], ctorParameters: function () { return [{ type: i1.BreakpointObserver }]; } });
224
+ }], ctorParameters: () => [{ type: i1$1.BreakpointObserver }] });
135
225
 
136
226
  class ImageCropComponent {
137
227
  constructor(dialogRef, configSvc, snackBar, valueSvc, data) {
@@ -139,6 +229,7 @@ class ImageCropComponent {
139
229
  this.configSvc = configSvc;
140
230
  this.snackBar = snackBar;
141
231
  this.valueSvc = valueSvc;
232
+ // need to set for creator Logo
142
233
  this.data = new EventEmitter();
143
234
  this.isRoundCrop = false;
144
235
  this.isNotOfRequiredSize = false;
@@ -183,13 +274,15 @@ class ImageCropComponent {
183
274
  }
184
275
  });
185
276
  }
277
+ // displays the default image
186
278
  changeToDefaultImg($event) {
187
279
  $event.target.src = this.configSvc.instanceConfig ?
188
280
  this.configSvc.instanceConfig.logos.defaultContent : '';
189
281
  }
282
+ // image cropping event
190
283
  imageCropped(event) {
191
- this.imageFileBase64 = event.base64;
192
- this.cropimageFile = this.base64ImageToBlob(this.imageFileBase64);
284
+ this.imageFileBase64 = event.base64; // store the cropped image as a base64 value
285
+ this.cropimageFile = this.base64ImageToBlob(this.imageFileBase64); // convert the cropped image as a file
193
286
  this.croppedHeight = event.height;
194
287
  this.croppedWidth = event.width;
195
288
  }
@@ -201,6 +294,7 @@ class ImageCropComponent {
201
294
  continueToImageCrop() {
202
295
  this.isNotOfRequiredSize = false;
203
296
  }
297
+ // checks if the image is of the correct dimensions
204
298
  thumbnailSizeDetection() {
205
299
  const fr = new FileReader();
206
300
  fr.readAsDataURL(this.imageFile);
@@ -223,16 +317,23 @@ class ImageCropComponent {
223
317
  };
224
318
  }
225
319
  base64ImageToBlob(str) {
320
+ // extract content type and base64 payload from original string
226
321
  const pos = str.indexOf(';base64,');
322
+ // var type = str.substring(5, pos);
227
323
  const b64 = str.substr(pos + 8);
324
+ // decode base64
228
325
  const imageContent = atob(b64);
326
+ // create an ArrayBuffer and a view (as unsigned 8-bit)
229
327
  const buffer = new ArrayBuffer(imageContent.length);
230
328
  const view = new Uint8Array(buffer);
329
+ // fill the view, using the decoded base64
231
330
  for (let n = 0; n < imageContent.length; n = n + 1) {
232
331
  view[n] = imageContent.charCodeAt(n);
233
332
  }
333
+ // convert ArrayBuffer to Blob
234
334
  const blob = new Blob([view], { type: 'image/png' });
235
335
  const b = blob;
336
+ // Cast to a File() type
236
337
  b.lastModifiedDate = new Date();
237
338
  b.name = this.fileName;
238
339
  const file = new File([blob], this.fileName, { type: 'image/jpeg' });
@@ -268,6 +369,7 @@ class ImageCropComponent {
268
369
  scale: event.value,
269
370
  };
270
371
  }
372
+ // calls when apply button is clicked,and returns the cropped image
271
373
  croppingImage() {
272
374
  this.dialogRef.close(this.cropimageFile);
273
375
  }
@@ -276,46 +378,48 @@ class ImageCropComponent {
276
378
  this.canvasRotation = 0;
277
379
  this.transform = {};
278
380
  }
381
+ // closes the dialog box
279
382
  close() {
280
383
  this.dialogRef.close();
281
384
  }
282
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ImageCropComponent, deps: [{ token: i1$1.MatLegacyDialogRef }, { token: ConfigurationsService }, { token: i3.MatLegacySnackBar }, { token: ValueService }, { token: MAT_LEGACY_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
283
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ImageCropComponent, selector: "ws-utils-image-crop", outputs: { data: "data" }, ngImport: i0, 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"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6.ImageCropperComponent, selector: "image-cropper", inputs: ["imageChangedEvent", "imageURL", "imageBase64", "imageFile", "imageAltText", "format", "transform", "maintainAspectRatio", "aspectRatio", "resetCropOnAspectRatioChange", "resizeToWidth", "resizeToHeight", "cropperMinWidth", "cropperMinHeight", "cropperMaxHeight", "cropperMaxWidth", "cropperStaticWidth", "cropperStaticHeight", "canvasRotation", "initialStepSize", "roundCropper", "onlyScaleDown", "imageQuality", "autoCrop", "backgroundColor", "containWithinAspectRatio", "hideResizeSquares", "allowMoveImage", "cropper", "alignImage", "disabled", "hidden"], outputs: ["imageCropped", "startCropImage", "imageLoaded", "cropperReady", "loadImageFailed", "transformChange"] }, { kind: "component", type: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i8.MatLegacyButton, 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"] }, { kind: "directive", type: i1$1.MatLegacyDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$1.MatLegacyDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i1$1.MatLegacyDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: i9.MatLegacyCard, selector: "mat-card", exportAs: ["matCard"] }, { kind: "component", type: i10.MatLegacySlider, selector: "mat-slider", inputs: ["disabled", "color", "tabIndex", "invert", "max", "min", "step", "thumbLabel", "tickInterval", "value", "displayWith", "valueText", "vertical"], outputs: ["change", "input", "valueChange"], exportAs: ["matSlider"] }] }); }
385
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ImageCropComponent, deps: [{ token: i1$2.MatDialogRef }, { token: ConfigurationsService }, { token: i3.MatSnackBar }, { token: ValueService }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
386
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.23", type: ImageCropComponent, isStandalone: false, selector: "ws-utils-image-crop", outputs: { data: "data" }, ngImport: i0, 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"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6.ImageCropperComponent, selector: "image-cropper", inputs: ["imageChangedEvent", "imageURL", "imageBase64", "imageFile", "imageAltText", "format", "transform", "maintainAspectRatio", "aspectRatio", "resetCropOnAspectRatioChange", "resizeToWidth", "resizeToHeight", "cropperMinWidth", "cropperMinHeight", "cropperMaxHeight", "cropperMaxWidth", "cropperStaticWidth", "cropperStaticHeight", "canvasRotation", "initialStepSize", "roundCropper", "onlyScaleDown", "imageQuality", "autoCrop", "backgroundColor", "containWithinAspectRatio", "hideResizeSquares", "allowMoveImage", "cropper", "alignImage", "disabled", "hidden"], outputs: ["imageCropped", "startCropImage", "imageLoaded", "cropperReady", "loadImageFailed", "transformChange"] }, { kind: "component", type: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i8.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: i1$2.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$2.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i9.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "component", type: i10.MatSlider, selector: "mat-slider", inputs: ["disabled", "discrete", "showTickMarks", "min", "color", "disableRipple", "max", "step", "displayWith"], exportAs: ["matSlider"] }] }); }
284
387
  }
285
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ImageCropComponent, decorators: [{
388
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ImageCropComponent, decorators: [{
286
389
  type: Component,
287
- args: [{ selector: 'ws-utils-image-crop', 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"] }]
288
- }], ctorParameters: function () { return [{ type: i1$1.MatLegacyDialogRef }, { type: ConfigurationsService }, { type: i3.MatLegacySnackBar }, { type: ValueService }, { type: undefined, decorators: [{
390
+ args: [{ selector: 'ws-utils-image-crop', standalone: false, 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"] }]
391
+ }], ctorParameters: () => [{ type: i1$2.MatDialogRef }, { type: ConfigurationsService }, { type: i3.MatSnackBar }, { type: ValueService }, { type: undefined, decorators: [{
289
392
  type: Inject,
290
- args: [MAT_LEGACY_DIALOG_DATA]
291
- }] }]; }, propDecorators: { data: [{
393
+ args: [MAT_DIALOG_DATA]
394
+ }] }], propDecorators: { data: [{
292
395
  type: Output
293
396
  }] } });
294
397
 
398
+ // @dynamic
295
399
  class ImageCropModule {
296
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ImageCropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
297
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ImageCropModule, declarations: [ImageCropComponent], imports: [CommonModule,
400
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ImageCropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
401
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: ImageCropModule, declarations: [ImageCropComponent], imports: [CommonModule,
298
402
  ImageCropperModule,
299
403
  MatIconModule,
300
- MatLegacyButtonModule,
301
- MatLegacyDialogModule,
404
+ MatButtonModule,
405
+ MatDialogModule,
302
406
  MatToolbarModule,
303
- MatLegacyDialogModule,
304
- MatLegacyCardModule,
305
- MatLegacyTooltipModule,
306
- MatLegacySliderModule], exports: [ImageCropComponent] }); }
307
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ImageCropModule, imports: [CommonModule,
407
+ MatDialogModule,
408
+ MatCardModule,
409
+ MatTooltipModule,
410
+ MatSliderModule], exports: [ImageCropComponent] }); }
411
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ImageCropModule, imports: [CommonModule,
308
412
  ImageCropperModule,
309
413
  MatIconModule,
310
- MatLegacyButtonModule,
311
- MatLegacyDialogModule,
414
+ MatButtonModule,
415
+ MatDialogModule,
312
416
  MatToolbarModule,
313
- MatLegacyDialogModule,
314
- MatLegacyCardModule,
315
- MatLegacyTooltipModule,
316
- MatLegacySliderModule] }); }
417
+ MatDialogModule,
418
+ MatCardModule,
419
+ MatTooltipModule,
420
+ MatSliderModule] }); }
317
421
  }
318
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ImageCropModule, decorators: [{
422
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ImageCropModule, decorators: [{
319
423
  type: NgModule,
320
424
  args: [{
321
425
  declarations: [ImageCropComponent],
@@ -323,13 +427,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
323
427
  CommonModule,
324
428
  ImageCropperModule,
325
429
  MatIconModule,
326
- MatLegacyButtonModule,
327
- MatLegacyDialogModule,
430
+ MatButtonModule,
431
+ MatDialogModule,
328
432
  MatToolbarModule,
329
- MatLegacyDialogModule,
330
- MatLegacyCardModule,
331
- MatLegacyTooltipModule,
332
- MatLegacySliderModule,
433
+ MatDialogModule,
434
+ MatCardModule,
435
+ MatTooltipModule,
436
+ MatSliderModule,
333
437
  ],
334
438
  exports: [ImageCropComponent]
335
439
  }]
@@ -337,12 +441,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
337
441
 
338
442
  var EFeatures;
339
443
  (function (EFeatures) {
444
+ // Playlists
340
445
  EFeatures["PLAYLIST"] = "playlist";
341
446
  EFeatures["PLAYLIST_CREATE"] = "playlistCreate";
342
447
  EFeatures["PLAYLIST_ADD_NEW_CONTENT"] = "playlistAddNewContent";
343
448
  EFeatures["PLAYLIST_REMOVE_EXISTING_CONTENT"] = "playlistRemoveExistingContent";
344
449
  EFeatures["PLAYLIST_DELETE"] = "playlistDelete";
345
450
  EFeatures["PLAYLIST_SHARE"] = "playlistShare";
451
+ // Goals
346
452
  EFeatures["GOAL"] = "goal";
347
453
  EFeatures["GOAL_CREATE_OWN"] = "goalCreateOwn";
348
454
  EFeatures["GOAL_CREATE_SUGGESTED"] = "goalCreateSuggested";
@@ -352,6 +458,7 @@ var EFeatures;
352
458
  EFeatures["GOAL_VIEW_ALL_GOALS_SECTION"] = "goalViewAllGoalsSection";
353
459
  EFeatures["GOAL_VIEW_IN_PROGRESS_GOALS_SECTION"] = "goalViewInProgressGoalsSection";
354
460
  EFeatures["GOAL_VIEW_COMPLETED_GOALS_SECTION"] = "goalViewCompletedGoalsSection";
461
+ // Navigator
355
462
  EFeatures["NAVIGATOR"] = "navigator";
356
463
  EFeatures["NAVIGATOR_VIEW_NAVIGATOR_CAROUSEL"] = "navigatorViewNavigatorCarousel";
357
464
  EFeatures["NAVIGATOR_VIEW_ROLES_PAGE"] = "navigatorViewRolesPage";
@@ -395,6 +502,7 @@ var EFeatures;
395
502
  EFeatures["NAVIGATOR_VIEW_DIFFERENT_COURSES_IN_PILLAR"] = "navigatorViewDifferentCoursesInPillar";
396
503
  EFeatures["NAVIGATOR_VIEW_FULL_STACK_PAGE"] = "navigatorViewFullStackPage";
397
504
  EFeatures["NAVIGATOR_VIEW_DIFFERENT_FULL_STACK_PROGRAMS"] = "navigatorViewDifferentFullStackPrograms";
505
+ // Catalog
398
506
  EFeatures["CATALOG"] = "catalog";
399
507
  EFeatures["CATALOG_VIEW_CATALOG_LIST"] = "catalogViewCatalogList";
400
508
  EFeatures["CATALOG_SELECT_ITEM_FROM_CATALOG_LIST"] = "catalogSelectItemFromCatalogList";
@@ -402,6 +510,7 @@ var EFeatures;
402
510
  EFeatures["CATALOG_VIEW_COURSES_STRIP"] = "catalogViewCoursesStrip";
403
511
  EFeatures["CATALOG_VIEW_LEARNING_MODULES_STRIP"] = "catalogViewLearningModulesStrip";
404
512
  EFeatures["CATALOG_VIEW_RESOURCES_STRIP"] = "catalogViewResourcesStrip";
513
+ // Marketing Page
405
514
  EFeatures["MARKETING_PAGE"] = "marketingPage";
406
515
  EFeatures["MARKETING_PAGE_VIEW_BRAND_ASSETS_PAGE"] = "marketingPageViewBrandAssetsPage";
407
516
  EFeatures["MARKETING_PAGE_VIEW_CORPORATE_STRIP"] = "marketingPageViewCorporateStrip";
@@ -426,6 +535,7 @@ var EFeatures;
426
535
  EFeatures["MARKETING_PAGE_VIEW_PRODUCT_AND_SUBSIDIARIES_PAGE"] = "marketingPageViewProductAndSubsidiariesPage";
427
536
  EFeatures["MARKETING_PAGE_VIEW_PRODUCT_AND_SUBSIDIARIES_LIST"] = "marketingPageViewProductAndSubsidiariesList";
428
537
  EFeatures["MARKETING_PAGE_SELECT_ANY_PRODUCT_AND_SUBSIDIARY"] = "marketingPageSelectAnyProductAndSubsidiary";
538
+ // Interests
429
539
  EFeatures["INTERESTS"] = "interests";
430
540
  EFeatures["INTERESTS_ADD_INTERESTS_FROM_SEARCH"] = "interestsAddInterestsFromSearch";
431
541
  EFeatures["INTERESTS_ADD_INTERESTS_FROM_OUR_SUGGESTIONS_SECTION"] = "interestsAddInterestsFromOurSuggestionsSection";
@@ -434,6 +544,7 @@ var EFeatures;
434
544
  EFeatures["INTERESTS_VIEW_MY_INTERESTS_SECTION"] = "interestsViewMyInterestsSection";
435
545
  EFeatures["INTERESTS_VIEW_OWN_SUGGESTIONS_SECTION"] = "interestsViewOwnSuggestionsSection";
436
546
  EFeatures["INTERESTS_VIEW_MORE_SUGGESTIONS_BUTTON"] = "interestsViewMoreSuggestionsButton";
547
+ // Feedback
437
548
  EFeatures["FEEDBACK"] = "feedback";
438
549
  EFeatures["FEEDBACK_VIEW_PLATFORM_FEEDBACK_SECTION"] = "feedbackViewPlatformFeedbackSection";
439
550
  EFeatures["FEEDBACK_STAR_RATING_FOR_PLATFORM"] = "feedbackStarRatingForPlatform";
@@ -449,6 +560,7 @@ var EFeatures;
449
560
  EFeatures["FEEDBACK_WRITING_ISSUE"] = "feedbackWritingIssue";
450
561
  EFeatures["FEEDBACK_RESET_ISSUE"] = "feedbackResetIssue";
451
562
  EFeatures["FEEDBACK_SUBMIT_ISSUE"] = "feedbackSubmitIssue";
563
+ // Contact Us
452
564
  EFeatures["CONTACT_US"] = "contactUs";
453
565
  EFeatures["CONTACT_US_VIEW_RAISE_AHD_SECTION"] = "contactUsViewRaiseAhdSection";
454
566
  EFeatures["CONTACT_US_VIEW_MAIL_US_SECTION"] = "contactUsViewMailUsSection";
@@ -456,6 +568,7 @@ var EFeatures;
456
568
  EFeatures["CONTACT_US_RAISE_AHD"] = "contactUsRaiseAhd";
457
569
  EFeatures["CONTACT_US_WRITE_EMAIL"] = "contactUsWriteEmail";
458
570
  EFeatures["CONTACT_US_DIAL_FROM_PHONE"] = "contactUsDialFromPhone";
571
+ // FAQs
459
572
  EFeatures["FAQ"] = "faq";
460
573
  EFeatures["FAQ_VIEW_LOGIN_FAQS"] = "faqViewLoginFaqs";
461
574
  EFeatures["FAQ_VIEW_ODC_ACCESS_FAQS"] = "faqViewOdcAccessFaqs";
@@ -464,6 +577,7 @@ var EFeatures;
464
577
  EFeatures["FAQ_VIEW_PROGRESS_COMPLETION_FAQS"] = "faqViewProgressCompletionFaqs";
465
578
  EFeatures["FAQ_VIEW_VIDEO_FAQS"] = "faqViewVideoFaqs";
466
579
  EFeatures["FAQ_VIEW_AUTHORING_FAQS"] = "faqViewAuthoringFaqs";
580
+ // Mobile Apps
467
581
  EFeatures["MOBILE_APPS"] = "mobileApps";
468
582
  EFeatures["MOBILE_APPS_VIEW_ANDROID_APP_SECTION"] = "mobileAppsViewAndroidAppSection";
469
583
  EFeatures["MOBILE_APPS_DOWNLOAD_APP_FROM_PLAY_STORE"] = "mobileAppsDownloadAppFromPlayStore";
@@ -472,8 +586,10 @@ var EFeatures;
472
586
  EFeatures["MOBILE_APPS_VIEW_IOS_APP_SECTION"] = "mobileAppsViewIosAppSection";
473
587
  EFeatures["MOBILE_APPS_DOWNLOAD_IOS_APP"] = "mobileAppsDownloadIosApp";
474
588
  EFeatures["MOBILE_APPS_VIEW_QR_CODE_FOR_IOS_APP"] = "mobileAppsViewQrCodeForIosApp";
589
+ // About Us
475
590
  EFeatures["ABOUT_US"] = "aboutUs";
476
591
  EFeatures["ABOUT_US_VIEW_ABOUT_US_PAGE_SECTIONS"] = "aboutUsViewAboutUsPageSections";
592
+ // Settings
477
593
  EFeatures["SETTINGS"] = "settings";
478
594
  EFeatures["SETTINGS_VIEW_LANGUAGE_SECTION"] = "settingsViewLanguageSection";
479
595
  EFeatures["SETTINGS_VIEW_FONT_SIZE_SECTION"] = "settingsViewFontSizeSection";
@@ -481,6 +597,7 @@ var EFeatures;
481
597
  EFeatures["SETTINGS_CHANGE_LANGUAGE"] = "settingsChangeLanguage";
482
598
  EFeatures["SETTINGS_CHANGE_FONT_SIZE"] = "settingsChangeFontSize";
483
599
  EFeatures["SETTINGS_CHANGE_THEME"] = "settingsChangeTheme";
600
+ // Login Page
484
601
  EFeatures["LOGIN_PAGE"] = "loginPage";
485
602
  EFeatures["LOGIN_PAGE_LOGIN_FOR_INFOSCIONS"] = "loginPageLoginForInfoscions";
486
603
  EFeatures["LOGIN_PAGE_LOGIN_FOR_SUBSIDIARIES"] = "loginPageLoginForSubsidiaries";
@@ -489,6 +606,7 @@ var EFeatures;
489
606
  EFeatures["LOGIN_PAGE_TERMS_OF_USE"] = "loginPageTermsOfUse";
490
607
  EFeatures["LOGIN_PAGE_FAQS"] = "loginPageFaqs";
491
608
  EFeatures["LOGIN_PAGE_CONTACT_US"] = "loginPageContactUs";
609
+ // TOC Page
492
610
  EFeatures["TOC_PAGE"] = "tocPage";
493
611
  EFeatures["TOC_PAGE_VIEW_OVERVIEW_SECTION"] = "tocPageViewOverviewSection";
494
612
  EFeatures["TOC_PAGE_VIEW_INSTRUCTOR_LED_SECTION"] = "tocPageViewInstructorLedSection";
@@ -526,6 +644,7 @@ var EFeatures;
526
644
  EFeatures["TOC_PAGE_START_OVER_THE_COURSE"] = "tocPageStartOverTheCourse";
527
645
  EFeatures["TOC_PAGE_GO_TO_COURSE_QUIZ"] = "tocPageGoToCourseQuiz";
528
646
  EFeatures["TOC_PAGE_GO_TO_COURSE_HANDS_ON"] = "tocPageGoToCourseHandsOn";
647
+ // Navbar
529
648
  EFeatures["NAVBAR"] = "navbar";
530
649
  EFeatures["NAVBAR_VIEW_LOGO"] = "navbarViewLogo";
531
650
  EFeatures["NAVBAR_CATALOG_ICON"] = "navbarCatalogIcon";
@@ -534,6 +653,7 @@ var EFeatures;
534
653
  EFeatures["NAVBAR_SETTINGS_ICON"] = "navbarSettingsIcon";
535
654
  EFeatures["NAVBAR_SEARCH_ICON"] = "navbarSearchIcon";
536
655
  EFeatures["NAVBAR_APPS_ICON"] = "navbarAppsIcon";
656
+ // Home Page
537
657
  EFeatures["HOME_PAGE"] = "homePage";
538
658
  EFeatures["HOME_PAGE_VIEW_CAROUSEL"] = "homePageViewCarousel";
539
659
  EFeatures["HOME_PAGE_VIEW_CONTINUE_LEARNING_STRIP"] = "homePageViewContinueLearningStrip";
@@ -545,10 +665,12 @@ var EFeatures;
545
665
  EFeatures["HOME_PAGE_VIEW_TRENDING_STRIP"] = "homePageViewTrendingStrip";
546
666
  EFeatures["HOME_PAGE_SHOW_COMPLETED_FILTER"] = "homePageShowCompletedFilter";
547
667
  EFeatures["HOME_PAGE_SHOW_RESOURCES_FILTER"] = "homePageShowResourcesFilter";
668
+ // TNC Page
548
669
  EFeatures["TNC_PAGE"] = "tncPage";
549
670
  EFeatures["TNC_PAGE_VIEW_CONTEST_RULES_SECTION"] = "tncPageViewContestRulesSection";
550
671
  EFeatures["TNC_PAGE_VIEW_DATA_PRIVACY_SECTION"] = "tncPageViewDataPrivacySection";
551
672
  EFeatures["TNC_PAGE_ACCEPT_TERMS_AND_CONDITIONS"] = "tncPageAcceptTermsAndConditions";
673
+ // Blogs
552
674
  EFeatures["BLOGS"] = "blogs";
553
675
  EFeatures["BLOG_VIEW_OTHERS_BLOGS"] = "blogViewOthersBlogs";
554
676
  EFeatures["BLOGS_LIKE_OTHER_BLOGS"] = "blogsLikeOtherBlogs";
@@ -565,6 +687,7 @@ var EFeatures;
565
687
  EFeatures["BLOGS_DELETE_MY_RESPONSE"] = "blogsDeleteMyResponse";
566
688
  EFeatures["BLOGS_VIEW_DRAFTS_SECTION"] = "blogsViewDraftsSection";
567
689
  EFeatures["BLOGS_VIEW_PUBLISHED_SECTION"] = "blogsViewPublishedSection";
690
+ // Question and Answer
568
691
  EFeatures["QUESTION_AND_ANSWER"] = "questionAndAnswer";
569
692
  EFeatures["QUESTION_AND_ANSWER_VIEW_ALL_QUESTIONS_AND_ANSWERS"] = "questionAndAnswerViewAllQuestionsAndAnswers";
570
693
  EFeatures["QUESTION_AND_ANSWER_VIEW_ONLY_UNANSWERED_QUESTIONS"] = "questionAndAnswerViewOnlyUnansweredQuestions";
@@ -580,13 +703,16 @@ var EFeatures;
580
703
  EFeatures["QUESTION_AND_ANSWER_PUBLISH_SAVED_QUESTION"] = "questionAndAnswerPublishedSavedQuestion";
581
704
  EFeatures["QUESTION_AND_ANSWER_VIEW_DRAFTS_SECTION"] = "questionAndAnswerViewDraftsSection";
582
705
  EFeatures["QUESTION_AND_ANSWER_VIEW_PUBLISHED_SECTION"] = "questionAndAnswerViewPublishedSection";
706
+ // Badges
583
707
  EFeatures["BADGES"] = "badges";
584
708
  EFeatures["BADGES_VIEW_RECENTLY_EARNED_BADGE"] = "badgesViewRecentlyEarnedBadge";
585
709
  EFeatures["BADGES_VIEW_ALL_EARNED_BADGES"] = "badgesViewAllEarnedBadges";
586
710
  EFeatures["BADGES_VIEW_NEXT_TARGETTED_BADGES"] = "badgesViewNextTargettedBadges";
711
+ // Hands on Dashboard
587
712
  EFeatures["HANDS_ON_DASHBOARD"] = "handsOnDashboard";
588
713
  EFeatures["HANDS_ON_DASHBOARD_VIEW_MY_DASHBOARD"] = "handsOnDashboardViewMyDashboard";
589
714
  EFeatures["HANDS_ON_DASHBOARD_VIEW_SHARED_PROFILE_SECTION"] = "handsOnDashboardViewSharedProfileSection";
715
+ // Learning History
590
716
  EFeatures["LEARNING_HISTORY"] = "learningHistory";
591
717
  EFeatures["LEARNING_HISTORY_VIEW_PROGRAMS_SECTION"] = "learningHistoryViewProgramsSection";
592
718
  EFeatures["LEARNING_HISTORY_VIEW_COURSES_SECTION"] = "learningHistoryViewCoursesSection";
@@ -595,6 +721,7 @@ var EFeatures;
595
721
  EFeatures["LEARNING_HISTORY_VIEW_CERTIFICATIONS_SECTION"] = "learningHistoryViewCertificationsSection";
596
722
  EFeatures["LEARNING_HISTORY_APPLY_COMPLETED_FILTER"] = "learningHistoryApplyCompletedFilter";
597
723
  EFeatures["LEARNING_HISTORY_VIEW_MORE_BUTTON"] = "learningHistoryViewMoreButton";
724
+ // Learning Time
598
725
  EFeatures["LEARNING_TIME"] = "learningTime";
599
726
  EFeatures["LEARNING_TIME_VIEW_LEARNING_TIME_GRAPH"] = "learningTimeViewLearningTimeGraph";
600
727
  EFeatures["LEARNING_TIME_APPLY_BAR_GRAPH_FILTER"] = "learningTimeApplyBarGraphFilter";
@@ -602,23 +729,28 @@ var EFeatures;
602
729
  EFeatures["LEARNING_TIME_APPLY_TIME_SPENT_FILTER"] = "learningTimeApplyTimeSpentFilter";
603
730
  EFeatures["LEARNING_TIME_APPLY_APP_AVERAGE_FILTER"] = "learningTimeApplyAppAverageFilter";
604
731
  EFeatures["LEARNING_TIME_APPLY_USER_AVERAGE_OVER_PERIOD_FILTER"] = "learningTimeApplyUserAverageOverPeriodFilter";
732
+ // Notification
605
733
  EFeatures["NOTIFICATION"] = "notification";
606
734
  EFeatures["NOTIFICATION_VIEW_RECENT_BADGE_EARNED"] = "notificationViewRecentBadgeEarned";
607
735
  EFeatures["NOTIFICATION_VIEW_SHARED_PLAYLIST"] = "notificationViewSharedPlaylist";
608
736
  EFeatures["NOTIFICATION_VIEW_SHARED_GOALS"] = "notificationViewSharedGoals";
737
+ // Profile
609
738
  EFeatures["PROFILE"] = "profile";
610
739
  EFeatures["PROFILE_VIEW_BASIC_INFORMATION"] = "profileViewBasicInformation";
611
740
  EFeatures["PROFILE_VIEW_RECENTLY_LEARNED_COURSES"] = "profileViewRecentlyLearnedCourses";
612
741
  EFeatures["PROFILE_VIEW_LIKED_ITEMS"] = "profileViewLikedItems";
613
742
  EFeatures["PROFILE_VIEW_BADGES_EARNED"] = "profileViewBadgesEarned";
743
+ // Behavioural Skills
614
744
  EFeatures["BEHAVIORAL_SKILLS"] = "behavioralSkills";
615
745
  EFeatures["BEHAVIORAL_SKILLS_VIEW_MODEL_CLIENT_INTERACTIONS"] = "behavioralSkillsViewModalClientInteractions";
616
746
  EFeatures["BEHAVIORAL_SKILLS_VIEW_CLIENT_INTERACTION_TESTS"] = "behavioralSkillsViewClientInteractionTests";
747
+ // Certifications
617
748
  EFeatures["CERTIFICATIONS"] = "certifications";
618
749
  EFeatures["CERTIFICATIONS_VIEW_MY_APPROVALS_SECTION"] = "certificationsViewMyApprovalsSection";
619
750
  EFeatures["CERTIFICATIONS_VIEW_MY_REQUESTS_SECTION"] = "certificationsViewMyRequestsSection";
620
751
  EFeatures["CERTIFICATIONS_VIEW_MY_CERTIFICATIONS_SECTION"] = "certificationsViewMyCertificationsSection";
621
752
  EFeatures["CERTIFICATIONS_APPLY_COMPLETION_STATUS_FILTER"] = "certificationsApplyCompletionStatusFilter";
753
+ // Code Crack
622
754
  EFeatures["CODE_CRACK"] = "codeCrack";
623
755
  EFeatures["CODE_CRACK_VIEW_PUZZLE_MANIA"] = "codeCrackViewPuzzleMania";
624
756
  EFeatures["CODE_CRACK_VIEW_CODE_CRACK"] = "codeCrackViewCodeCrack";
@@ -628,6 +760,7 @@ var EFeatures;
628
760
  EFeatures["CODE_CRACK_START_CODE_CRACK_TEST"] = "codeCrackStartCodeCrackTest";
629
761
  EFeatures["CODE_CRACK_START_PUZZLE_MANIA"] = "codeCrackStartPuzzleMania";
630
762
  EFeatures["CODE_CRACK_START_TECHNOLOGY_PLAYGROUND"] = "codeCrackStartTechnologyPlayground";
763
+ // Instructor Led Training
631
764
  EFeatures["INSTRUCTOR_LED_TRAINING"] = "instructorLedTraining";
632
765
  EFeatures["INSTRUCTOR_LED_TRAINING_VIEW_TRAINING_SCHEDULE_SECTION"] = "instructorLedTrainingViewTrainingScheduleSection";
633
766
  EFeatures["INSTRUCTOR_LED_TRAINING_VIEW_FEEDBACK_SECTION"] = "instructorLedTrainingViewFeedbackSection";
@@ -635,6 +768,7 @@ var EFeatures;
635
768
  EFeatures["INSTRUCTOR_LED_TRAINING_SEARCH_TRAINING"] = "instructorLedTrainingSearchTraining";
636
769
  EFeatures["INSTRUCTOR_LED_TRAINING_REGISTER_FOR_TRAINING"] = "instructorLedTrainingRegisterForTraining";
637
770
  EFeatures["INSTRUCTOR_LED_TRAINING_GIVE_TRAINING_FEEDBACK"] = "instructorLedTrainingGiveTrainingFeedback";
771
+ // LeaderBoard
638
772
  EFeatures["LEADERBOARD"] = "leaderboard";
639
773
  EFeatures["LEADERBOARD_VIEW_WEEKLY_SECTION"] = "leaderboardViewWeeklySection";
640
774
  EFeatures["LEADERBOARD_VIEW_MONTHLY_SECTION"] = "leaderboardViewMonthlySection";
@@ -642,9 +776,11 @@ var EFeatures;
642
776
  EFeatures["LEADERBOARD_APPLY_LEARNER_COLLABORATOR_FILTER"] = "leaderboardApplyLearnerCollaboratorFilter";
643
777
  EFeatures["LEADERBOARD_BACK_DATE_BUTTON"] = "leaderboardBackDatebutton";
644
778
  EFeatures["LEADERBOARD_FORWARD_DATE_BUTTON"] = "leaderboardForwardDateButton";
779
+ // Playground
645
780
  EFeatures["PLAYGROUND"] = "playground";
646
781
  EFeatures["PLAYGROUND_VIEW_TECHNOLOGY_PLAYGROUNDS_STRIP"] = "playgroundViewTechnologyPlaygorundsStrip";
647
782
  EFeatures["PLAYGROUND_VIEW_ASSESSMENTS_PLAYGROUNDS_STRIP"] = "playgroundViewAssessmentsPlaygroundsStrip";
783
+ // Puzzle Mania
648
784
  EFeatures["PUZZLE_MANIA"] = "puzzleMania";
649
785
  EFeatures["PUZZLE_MANIA_VIEW_PUZZLE_MANIA"] = "puzzleManiaViewPuzzleMania";
650
786
  EFeatures["PUZZLE_MANIA_VIEW_CODE_CRACK"] = "puzzleManiaViewCodeCrack";
@@ -654,19 +790,23 @@ var EFeatures;
654
790
  EFeatures["PUZZLE_MANIA_START_CODE_CRACK_TEST"] = "puzzleManiaStartCodeCrackTest";
655
791
  EFeatures["PUZZLE_MANIA_START_PUZZLE_MANIA"] = "puzzleManiaStartPuzzleMania";
656
792
  EFeatures["PUZZLE_MANIA_START_TECHNOLOGY_PLAYGROUND"] = "puzzleManiaStartTechnologyPlayground";
793
+ // Full Stack Sales Leader
657
794
  EFeatures["FULL_STACK_SALES_LEADER"] = "fullStackSalesLeader";
658
795
  EFeatures["FULL_STACK_SALES_LEADER_WATCH_LEADER_VIDEO"] = "fullStackSalesLeaderWatchLeaderVideo";
659
796
  EFeatures["FULL_STACK_SALES_LEADER_EMBARK_ON_THIS_LEARNING_JOURNEY_BUTTON"] = "fullStackSalesLeaderEmbarkOnThisLearningJourneyButton";
660
797
  EFeatures["FULL_STACK_SALES_LEADER_QUICK_TOUR_VIDEO_LINK"] = "fullStackSalesLeaderQuickTourVideoLink";
661
798
  EFeatures["FULL_STACK_SALES_LEADER_FEEDBACK_LINK"] = "fullStackSalesLeaderFeedbackLink";
662
799
  EFeatures["FULL_STACK_SALES_LEADER_DROP_NOTE_LINK"] = "fullStackSalesLeaderDropNoteLink";
800
+ // Onboarding
663
801
  EFeatures["ONBOARDING"] = "onboarding";
664
802
  EFeatures["ONBOARDING_VIEW_DC_ONBOARDING_PROGRAMS_STRIP"] = "onboardingViewDcOnboardingProgramsStrip";
665
803
  EFeatures["ONBOARDING_VIEW_ORGANISATIONAL_ONBOARDING_PROGRAMS_STRIP"] = "onboardingViewOrganisationalOnboardingProgramsStrip";
666
804
  EFeatures["ONBOARDING_VIEW_ROLE_BASED_ONBOARDING_PROGRAMS_STRIP"] = "onboardingViewRoleBasedOnboardingProgramsStrip";
667
805
  EFeatures["ONBOARDING_VIEW_UNIT_AND_PROJECT_ONBOARDING_PROGRAMS_STRIP"] = "onboardingViewUnitAndProjectOnboardingProgramsStrip";
806
+ // Search
668
807
  EFeatures["SEARCH"] = "search";
669
808
  EFeatures["SEARCH_SEARCHING_CONTENT"] = "searchSearchingContent";
809
+ // Knowledge Hub
670
810
  EFeatures["KNOWLEDGE_HUB"] = "knowledgeHub";
671
811
  EFeatures["KNOWLEDGE_HUB_SUBMIT_KNOWLEDGE_ARTIFACTS"] = "knowledgeHubSubmitKnowledgeArtifacts";
672
812
  EFeatures["KNOWLEDGE_HUB_VIEW_TOP_PROJECTS_SECTION"] = "knowledgeHubViewTopProjectsSection";
@@ -677,6 +817,7 @@ var EFeatures;
677
817
  EFeatures["KNOWLEDGE_HUB_VIEW_DOCUMENTS_STRIP"] = "knowledgeHubViewDocumentsStrip";
678
818
  EFeatures["KNOWLEDGE_HUB_VIEW_TOOLS_STRIP"] = "knowledgeHubViewProjectReferencesStrip";
679
819
  EFeatures["KNOWLEDGE_HUB_VIEW_MARKETING_STRIP"] = "knowledgeHubViewMarketingStrip";
820
+ // Channels
680
821
  EFeatures["CHANNELS"] = "channels";
681
822
  EFeatures["CHANNELS_VIEW_LEADERSHIP_SECTION"] = "channelsViewLeadershipSection";
682
823
  EFeatures["CHANNELS_VIEW_RAVI_KUMAR_PAGE"] = "channelsViewRaviKumarPage";
@@ -708,14 +849,17 @@ var EFeatures;
708
849
  EFeatures["CHANNELS_VIEW_iGOT_KNOWLEDGE_INSTITUTE_PAGE"] = "channelsViewiGOTKnowledgeInstitutePage";
709
850
  EFeatures["CHANNELS_VIEW_CMT_LEARNING_HUB_PAGE"] = "channelsViewCmtLearningHubPage";
710
851
  EFeatures["CHANNELS_VIEW_FULL_STACK_SALES_LEADERS_PAGE"] = "channelsViewFullStackSalesLeaderPage";
852
+ // Experience Wow Page
711
853
  EFeatures["EXPERIENCE_WOW_PAGE"] = "experienceWowPage";
712
854
  EFeatures["EXPERIENCE_WOW_PAGE_VIEW_PAGE_SECTIONS"] = "experienceWowPageViewPageSections";
713
855
  EFeatures["EXPERIENCE_WOW_PAGE_CHECK_iGOT_STATISTICS"] = "experienceWowPageCheckiGOTStatistics";
714
856
  EFeatures["EXPERIENCE_WOW_PAGE_CHECK_iGOT_ME_STATISTICS"] = "experienceWowPageCheckiGOTMeStatistics";
715
857
  EFeatures["EXPERIENCE_WOW_PAGE_PROVIDE_SUGGESTIONS"] = "experienceWowPageProvideSuggestions";
716
858
  EFeatures["EXPERIENCE_WOW_PAGE_SEND_MAIL_FOR_BECOMING_COCREATOR"] = "experienceWowPageSendMailForBecomingCocreator";
859
+ // iGOT Radio
717
860
  EFeatures["iGOT_RADIO"] = "iGOTRadio";
718
861
  EFeatures["iGOT_RADIO_VIEW_PODCASTS_STRIP"] = "iGOTRadioViewPodcastsStrip";
862
+ // iGOT TV
719
863
  EFeatures["iGOT_TV"] = "iGOTTv";
720
864
  EFeatures["iGOT_TV_VIEW_JUST_FOR_YOU_SECTION"] = "iGOTTvViewJustForYouSection";
721
865
  EFeatures["iGOT_TV_VIEW_MUST_VIEW_STRIP"] = "iGOTTvViewMustViewStrip";
@@ -726,30 +870,41 @@ var EFeatures;
726
870
  EFeatures["iGOT_TV_VIEW_PREVIOUS_EVENTS_LIST"] = "iGOTTvViewPreviousEventsList";
727
871
  EFeatures["iGOT_TV_VIEW_LIVE_EVENTS_LIST"] = "iGOTTvViewLiveEventsList";
728
872
  EFeatures["iGOT_TV_VIEW_UPCOMING_EVENTS_LIST"] = "iGOTTvViewUpcomingEventsList";
873
+ // Leadership Messages
729
874
  EFeatures["LEADERSHIP_MESSAGES"] = "leadershipMessages";
730
875
  EFeatures["LEADERSHIP_MESSAGES_VIEW_LEADERSHIP_VIDEO"] = "leadershipMessagesViewLeadershipVideo";
876
+ // Living Labs
731
877
  EFeatures["LIVING_LABS"] = "livingLabs";
732
878
  EFeatures["LIVING_LABS_VIEW_LIVING_LABS_STRIP"] = "livingLabsViewLivingLabsStrip";
879
+ // Americas Confluence 2018
733
880
  EFeatures["AMERICAS_CONFLUENECE"] = "americasConfluence";
734
881
  EFeatures["AMERICAS_CONFLUENECE_VIEW_CONFLUENCE_VIDEOS_STRIPS"] = "americasConfluenceViewConfluenceVideosStrips";
882
+ // APAC Confluence 2019
735
883
  EFeatures["APAC_CONFLUENECE"] = "apacConfluence";
736
884
  EFeatures["APAC_CONFLUENECE_VIEW_CONFLUENCE_VIDEOS_STRIPS"] = "apacConfluenceViewConfluenceVideosStrips";
885
+ // EMEA Confluence 2018
737
886
  EFeatures["EMEA_CONFLUENECE"] = "emeaConfluence";
738
887
  EFeatures["EMEA_CONFLUENECE_VIEW_CONFLUENCE_VIDEOS_STRIPS"] = "emeaConfluenceViewConfluenceVideosStrips";
888
+ // Connect 2019
739
889
  EFeatures["CONNECT"] = "connect";
740
890
  EFeatures["CONNECT_VIEW_CONTENT_STRIP"] = "connectViewContentStrip";
891
+ // Live Events
741
892
  EFeatures["LIVE_EVENTS"] = "liveEvents";
742
893
  EFeatures["LIVE_EVENTS_WATCH_LIVE"] = "liveEventsWatchLive";
743
894
  EFeatures["LIVE_EVENTS_WATCH_CLASSROOM_BROADCAST"] = "liveEventsWatchClassroomBroadcast";
744
895
  EFeatures["LIVE_EVENTS_WATCH_THREE_SIXTY_VIDEO"] = "liveEventsWatchThreeSixtyVideo";
745
896
  EFeatures["LIVE_EVENTS_WATCH_FAMILY_MATTERS_VIDEO"] = "liveEventsWatchFamilyMattersVideo";
746
897
  EFeatures["LIVE_EVENTS_WATCH_CONFLUENCE_EVENTS"] = "liveEventsWatchConfluenceEvents";
898
+ // Digital Assistant Tour
747
899
  EFeatures["DIGITAL_ASSISTANT_TOUR"] = "digitalAssistantTour";
748
900
  EFeatures["DIGITAL_ASSISTANT_TOUR_WATCH_TOUR_VIDEO"] = "digitalAssistantTourWatchTourVideo";
901
+ // Quick Tour
749
902
  EFeatures["QUICK_TOUR"] = "quickTour";
750
903
  EFeatures["QUICK_TOUR_WATCH_TOUR_VIDEO"] = "quickTourWatchTourVideo";
904
+ // Logout
751
905
  EFeatures["LOGOUT"] = "logout";
752
906
  EFeatures["LOGOUT_LOGS_OUT_FROM_APPLICATION"] = "logoutLogsOutFromApplication";
907
+ // My Analytics
753
908
  EFeatures["MY_ANALYTICS"] = "myAnalytics";
754
909
  EFeatures["MY_ANALYTICS_APPLY_QUARTER_FILTERS"] = "myAnalyticsApplyQuarterFilters";
755
910
  EFeatures["MY_ANALYTICS_VIEW_MY_LEARNING_SECTION"] = "myAnalyticsViewMyLearningSection";
@@ -793,6 +948,7 @@ var EFeatures;
793
948
  EFeatures["MY_ANALYTICS_VIEW_iGOT_LIVE"] = "myAnalyticsViewiGOTLive";
794
949
  EFeatures["MY_ANALYTICS_VIEW_TOP_COURSES_BY_USER_UNIT"] = "myAnalyticsViewTopCoursesByUserUnit";
795
950
  EFeatures["MY_ANALYTICS_VIEW_TOP_COURSES_BY_USER_PEERS"] = "myAnalyticsViewTopCoursesbyUserPeers";
951
+ // Learning Analytics
796
952
  EFeatures["LEARNING_ANALYTICS"] = "learningAnalytics";
797
953
  EFeatures["LEARNING_ANALYTICS_SEARCH_FOR_PARTICIPANTS_AND_EDUCATORS"] = "learningAnalyticsSearchForParticipantsAndEducators";
798
954
  EFeatures["LEARNING_ANALYTICS_UNIT_FILTER"] = "learningAnalyticsUnitFilter";
@@ -845,8 +1001,10 @@ var EFeatures;
845
1001
  EFeatures["LEARNING_ANALYTICS_COURSES_BY_TOPIC"] = "learningAnalyticsCoursesByTopic";
846
1002
  EFeatures["LEARNING_ANALYTICS_COURSES_BY_ABCD"] = "learningAnalyticsCoursesByAbcd";
847
1003
  EFeatures["LEARNING_ANALYTICS_COURSES_BY_SKILL"] = "learningAnalyticsCoursesBySkill";
1004
+ // Apps Page
848
1005
  EFeatures["APPS_PAGE"] = "appsPage";
849
1006
  EFeatures["APPS_PAGE_VIEW_DIFFERENT_APPS_ICONS"] = "appsPageViewDifferentAppsIcons";
1007
+ // Course Card
850
1008
  EFeatures["COURSE_CARD"] = "courseCard";
851
1009
  EFeatures["COURSE_CARD_LIKE_THE_COURSE_BUTTON"] = "courseCardLikeTheCourseButton";
852
1010
  EFeatures["COURSE_CARD_SHARE_THE_COURSE_BUTTON"] = "courseCardShareTheCourseButton";
@@ -857,6 +1015,7 @@ var EFeatures;
857
1015
  EFeatures["COURSE_CARD_VIEW_TOC_OPTION"] = "courseCardViewTocOption";
858
1016
  EFeatures["COURSE_CARD_COHORTS_OPTION"] = "courseCardCohortsOption";
859
1017
  EFeatures["COURSE_CARD_ANALYTICS_OPTION"] = "courseCardAnalyticsOption";
1018
+ // Search Results Page
860
1019
  EFeatures["SEARCH_RESULTS_PAGE"] = "searchResultsPage";
861
1020
  EFeatures["SEARCH_RESULTS_PAGE_VIEW_LEARNING_SECTION"] = "searchResultsPageViewLearningSection";
862
1021
  EFeatures["SEARCH_RESULTS_PAGE_VIEW_CERTIFICATIONS_SECTION"] = "searchResultsPageViewCertificationsSection";
@@ -879,6 +1038,7 @@ var EFeatures;
879
1038
  EFeatures["SEARCH_RESULTS_PAGE_GROUPS_FILTER"] = "searchResultsPageGroupsFilter";
880
1039
  EFeatures["SEARCH_RESULTS_PAGE_VIEW_RESULT_CARDS"] = "searchResultsPageViewResultCards";
881
1040
  EFeatures["SEARCH_RESULTS_PAGE_VIEW_RELATED_CONCEPTS"] = "searchResultsPageViewRelatedConcepts";
1041
+ // Lab42 Pages
882
1042
  EFeatures["LAB_42_INTERVIEW"] = "interview";
883
1043
  EFeatures["LAB_42_DIALOGUE"] = "dialogue";
884
1044
  EFeatures["LAB_42_STRATEGY_MAP"] = "strategyMap";
@@ -886,6 +1046,7 @@ var EFeatures;
886
1046
  EFeatures["LAB_42_PROJECT_STACK"] = "projectStack";
887
1047
  EFeatures["LAB_42_LIVE_TRANSCRIBE"] = "liveTranscribe";
888
1048
  EFeatures["LAB_42_EPOCH"] = "epoch";
1049
+ // Learning Assistant Pages
889
1050
  EFeatures["LEARNING_ASSISTANT_MAQ"] = "learning-assistant-maq";
890
1051
  EFeatures["LEARNING_ASSISTANT_ILIPDP"] = "learning-assistant-ilipdp";
891
1052
  })(EFeatures || (EFeatures = {}));
@@ -954,15 +1115,16 @@ class ClassChangeOnScrollDirective {
954
1115
  this.setScrollState();
955
1116
  }, this.wsClassOnScrollDirChange || 5000);
956
1117
  }
957
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ClassChangeOnScrollDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
958
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", 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 }); }
1118
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ClassChangeOnScrollDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1119
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.23", type: ClassChangeOnScrollDirective, isStandalone: false, 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 }); }
959
1120
  }
960
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ClassChangeOnScrollDirective, decorators: [{
1121
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ClassChangeOnScrollDirective, decorators: [{
961
1122
  type: Directive,
962
1123
  args: [{
963
1124
  selector: '[wsUtilsClassChangeOnScroll]',
1125
+ standalone: false
964
1126
  }]
965
- }], ctorParameters: function () { return []; }, propDecorators: { wsClassOnScrollDirChange: [{
1127
+ }], ctorParameters: () => [], propDecorators: { wsClassOnScrollDirChange: [{
966
1128
  type: Input
967
1129
  }], isScrollingDown: [{
968
1130
  type: HostBinding,
@@ -979,11 +1141,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
979
1141
  }] } });
980
1142
 
981
1143
  class ClassChangeOnScrollModule {
982
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ClassChangeOnScrollModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
983
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ClassChangeOnScrollModule, declarations: [ClassChangeOnScrollDirective], imports: [CommonModule], exports: [ClassChangeOnScrollDirective] }); }
984
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ClassChangeOnScrollModule, imports: [CommonModule] }); }
1144
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ClassChangeOnScrollModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1145
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: ClassChangeOnScrollModule, declarations: [ClassChangeOnScrollDirective], imports: [CommonModule], exports: [ClassChangeOnScrollDirective] }); }
1146
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ClassChangeOnScrollModule, imports: [CommonModule] }); }
985
1147
  }
986
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ClassChangeOnScrollModule, decorators: [{
1148
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ClassChangeOnScrollModule, decorators: [{
987
1149
  type: NgModule,
988
1150
  args: [{
989
1151
  declarations: [ClassChangeOnScrollDirective],
@@ -1012,13 +1174,14 @@ class DefaultThumbnailDirective {
1012
1174
  this.srcUrl = this.src;
1013
1175
  }
1014
1176
  }
1015
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DefaultThumbnailDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1016
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: DefaultThumbnailDirective, selector: "[wsUtilsDefaultThumbnail]", inputs: { wsUtilsDefaultThumbnail: "wsUtilsDefaultThumbnail", src: "src" }, host: { listeners: { "error": "updateSrc()" }, properties: { "src": "this.srcUrl" } }, usesOnChanges: true, ngImport: i0 }); }
1177
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: DefaultThumbnailDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1178
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.23", type: DefaultThumbnailDirective, isStandalone: false, selector: "[wsUtilsDefaultThumbnail]", inputs: { wsUtilsDefaultThumbnail: "wsUtilsDefaultThumbnail", src: "src" }, host: { listeners: { "error": "updateSrc()" }, properties: { "src": "this.srcUrl" } }, usesOnChanges: true, ngImport: i0 }); }
1017
1179
  }
1018
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DefaultThumbnailDirective, decorators: [{
1180
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: DefaultThumbnailDirective, decorators: [{
1019
1181
  type: Directive,
1020
1182
  args: [{
1021
1183
  selector: '[wsUtilsDefaultThumbnail]',
1184
+ standalone: false
1022
1185
  }]
1023
1186
  }], propDecorators: { wsUtilsDefaultThumbnail: [{
1024
1187
  type: Input
@@ -1033,11 +1196,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1033
1196
  }] } });
1034
1197
 
1035
1198
  class DefaultThumbnailModule {
1036
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DefaultThumbnailModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1037
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: DefaultThumbnailModule, declarations: [DefaultThumbnailDirective], imports: [CommonModule], exports: [DefaultThumbnailDirective] }); }
1038
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DefaultThumbnailModule, imports: [CommonModule] }); }
1199
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: DefaultThumbnailModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1200
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: DefaultThumbnailModule, declarations: [DefaultThumbnailDirective], imports: [CommonModule], exports: [DefaultThumbnailDirective] }); }
1201
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: DefaultThumbnailModule, imports: [CommonModule] }); }
1039
1202
  }
1040
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DefaultThumbnailModule, decorators: [{
1203
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: DefaultThumbnailModule, decorators: [{
1041
1204
  type: NgModule,
1042
1205
  args: [{
1043
1206
  declarations: [DefaultThumbnailDirective],
@@ -1074,6 +1237,7 @@ class ImageResponsiveDirective {
1074
1237
  ])
1075
1238
  .pipe(distinctUntilChanged())
1076
1239
  .subscribe(data => {
1240
+ // //console.log('data >', data)
1077
1241
  if (data.breakpoints[customBreakPoints.xxl]) {
1078
1242
  this.currentSize = 'xxl';
1079
1243
  }
@@ -1115,15 +1279,16 @@ class ImageResponsiveDirective {
1115
1279
  this.srcBindUrl = this.src[this.currentSize];
1116
1280
  }
1117
1281
  }
1118
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ImageResponsiveDirective, deps: [{ token: i1.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Directive }); }
1119
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ImageResponsiveDirective, selector: "[wsUtilsImageResponsive]", inputs: { src: "src" }, host: { properties: { "src": "this.srcBindUrl" } }, usesOnChanges: true, ngImport: i0 }); }
1282
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ImageResponsiveDirective, deps: [{ token: i1$1.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Directive }); }
1283
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.23", type: ImageResponsiveDirective, isStandalone: false, selector: "[wsUtilsImageResponsive]", inputs: { src: "src" }, host: { properties: { "src": "this.srcBindUrl" } }, usesOnChanges: true, ngImport: i0 }); }
1120
1284
  }
1121
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ImageResponsiveDirective, decorators: [{
1285
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ImageResponsiveDirective, decorators: [{
1122
1286
  type: Directive,
1123
1287
  args: [{
1124
1288
  selector: '[wsUtilsImageResponsive]',
1289
+ standalone: false
1125
1290
  }]
1126
- }], ctorParameters: function () { return [{ type: i1.BreakpointObserver }]; }, propDecorators: { src: [{
1291
+ }], ctorParameters: () => [{ type: i1$1.BreakpointObserver }], propDecorators: { src: [{
1127
1292
  type: Input
1128
1293
  }], srcBindUrl: [{
1129
1294
  type: HostBinding,
@@ -1131,11 +1296,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1131
1296
  }] } });
1132
1297
 
1133
1298
  class ImageResponsiveModule {
1134
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ImageResponsiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1135
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: ImageResponsiveModule, declarations: [ImageResponsiveDirective], imports: [CommonModule], exports: [ImageResponsiveDirective] }); }
1136
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ImageResponsiveModule, imports: [CommonModule] }); }
1299
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ImageResponsiveModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1300
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: ImageResponsiveModule, declarations: [ImageResponsiveDirective], imports: [CommonModule], exports: [ImageResponsiveDirective] }); }
1301
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ImageResponsiveModule, imports: [CommonModule] }); }
1137
1302
  }
1138
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ImageResponsiveModule, decorators: [{
1303
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ImageResponsiveModule, decorators: [{
1139
1304
  type: NgModule,
1140
1305
  args: [{
1141
1306
  declarations: [ImageResponsiveDirective],
@@ -1161,6 +1326,18 @@ class InViewPortDirective {
1161
1326
  fromEvent(window, 'resize').pipe(debounceTime(100)).subscribe(() => {
1162
1327
  this.check();
1163
1328
  });
1329
+ // let limit = 1
1330
+ // this.scroll =
1331
+ // fromEvent(window, 'scroll').pipe(debounceTime(100)).subscribe(() => {
1332
+ // if (limit) {
1333
+ // this.check()
1334
+ // limit -= 1
1335
+ // }
1336
+ // })
1337
+ // this.resize =
1338
+ // fromEvent(window, 'resize').toPromise().then(() => {
1339
+ // this.check()
1340
+ // })
1164
1341
  }
1165
1342
  ngOnDestroy() {
1166
1343
  this.scroll.unsubscribe();
@@ -1192,24 +1369,25 @@ class InViewPortDirective {
1192
1369
  }
1193
1370
  this.inViewport.emit(event);
1194
1371
  }
1195
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InViewPortDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1196
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: InViewPortDirective, selector: "[wsUtilsInViewPort]", outputs: { inViewport: "inViewport" }, ngImport: i0 }); }
1372
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: InViewPortDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
1373
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.23", type: InViewPortDirective, isStandalone: false, selector: "[wsUtilsInViewPort]", outputs: { inViewport: "inViewport" }, ngImport: i0 }); }
1197
1374
  }
1198
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InViewPortDirective, decorators: [{
1375
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: InViewPortDirective, decorators: [{
1199
1376
  type: Directive,
1200
1377
  args: [{
1201
1378
  selector: '[wsUtilsInViewPort]',
1379
+ standalone: false
1202
1380
  }]
1203
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { inViewport: [{
1381
+ }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { inViewport: [{
1204
1382
  type: Output
1205
1383
  }] } });
1206
1384
 
1207
1385
  class InViewPortModule {
1208
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InViewPortModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1209
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: InViewPortModule, declarations: [InViewPortDirective], imports: [CommonModule], exports: [InViewPortDirective] }); }
1210
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InViewPortModule, imports: [CommonModule] }); }
1386
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: InViewPortModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1387
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: InViewPortModule, declarations: [InViewPortDirective], imports: [CommonModule], exports: [InViewPortDirective] }); }
1388
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: InViewPortModule, imports: [CommonModule] }); }
1211
1389
  }
1212
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InViewPortModule, decorators: [{
1390
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: InViewPortModule, decorators: [{
1213
1391
  type: NgModule,
1214
1392
  args: [{
1215
1393
  declarations: [InViewPortDirective],
@@ -1239,15 +1417,16 @@ class NavigationDirective {
1239
1417
  this.routeUrl = './';
1240
1418
  }
1241
1419
  }
1242
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1243
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", 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 }); }
1420
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: NavigationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1421
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.23", type: NavigationDirective, isStandalone: false, selector: "[wsUtilsNavigation]", inputs: { wsUtilsNavigation: "wsUtilsNavigation", openInNewTab: "openInNewTab", routeUrl: "routeUrl" }, host: { listeners: { "mousedown": "onMouseEnter($event)" }, properties: { "attr.routerLink": "this.routeUrl" } }, usesOnChanges: true, ngImport: i0 }); }
1244
1422
  }
1245
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationDirective, decorators: [{
1423
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: NavigationDirective, decorators: [{
1246
1424
  type: Directive,
1247
1425
  args: [{
1248
1426
  selector: '[wsUtilsNavigation]',
1427
+ standalone: false
1249
1428
  }]
1250
- }], ctorParameters: function () { return []; }, propDecorators: { wsUtilsNavigation: [{
1429
+ }], ctorParameters: () => [], propDecorators: { wsUtilsNavigation: [{
1251
1430
  type: Input
1252
1431
  }], openInNewTab: [{
1253
1432
  type: Input
@@ -1262,11 +1441,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1262
1441
  }] } });
1263
1442
 
1264
1443
  class NavigationModule {
1265
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1266
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: NavigationModule, declarations: [NavigationDirective], imports: [CommonModule], exports: [NavigationDirective] }); }
1267
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationModule, imports: [CommonModule] }); }
1444
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: NavigationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1445
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: NavigationModule, declarations: [NavigationDirective], imports: [CommonModule], exports: [NavigationDirective] }); }
1446
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: NavigationModule, imports: [CommonModule] }); }
1268
1447
  }
1269
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NavigationModule, decorators: [{
1448
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: NavigationModule, decorators: [{
1270
1449
  type: NgModule,
1271
1450
  args: [{
1272
1451
  declarations: [NavigationDirective],
@@ -1279,22 +1458,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1279
1458
 
1280
1459
  class PermissionDirective {
1281
1460
  constructor() { }
1282
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PermissionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1283
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: PermissionDirective, selector: "[wsUtilsPermission]", ngImport: i0 }); }
1461
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PermissionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1462
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.23", type: PermissionDirective, isStandalone: false, selector: "[wsUtilsPermission]", ngImport: i0 }); }
1284
1463
  }
1285
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PermissionDirective, decorators: [{
1464
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PermissionDirective, decorators: [{
1286
1465
  type: Directive,
1287
1466
  args: [{
1288
1467
  selector: '[wsUtilsPermission]',
1468
+ standalone: false
1289
1469
  }]
1290
- }], ctorParameters: function () { return []; } });
1470
+ }], ctorParameters: () => [] });
1291
1471
 
1292
1472
  class PermissionModule {
1293
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PermissionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1294
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PermissionModule, declarations: [PermissionDirective], imports: [CommonModule], exports: [PermissionDirective] }); }
1295
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PermissionModule, imports: [CommonModule] }); }
1473
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PermissionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1474
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PermissionModule, declarations: [PermissionDirective], imports: [CommonModule], exports: [PermissionDirective] }); }
1475
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PermissionModule, imports: [CommonModule] }); }
1296
1476
  }
1297
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PermissionModule, decorators: [{
1477
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PermissionModule, decorators: [{
1298
1478
  type: NgModule,
1299
1479
  args: [{
1300
1480
  declarations: [PermissionDirective],
@@ -1350,7 +1530,10 @@ class HorizontalScrollerComponent {
1350
1530
  }
1351
1531
  showPrev() {
1352
1532
  if (this.horizontalScrollElem) {
1533
+ // const elem = this.horizontalScrollElem.nativeElement
1534
+ // elem.scrollLeft -= 0.20 * elem.clientWidth
1353
1535
  if (this.horizontalScrollElem) {
1536
+ // const clientWidth = (this.horizontalScrollElem.nativeElement.clientWidth * 0.24)
1354
1537
  const clientWidth = (this.horizontalScrollElem.nativeElement.clientWidth);
1355
1538
  this.horizontalScrollElem.nativeElement.scrollTo({
1356
1539
  left: this.horizontalScrollElem.nativeElement.scrollLeft - clientWidth,
@@ -1361,7 +1544,10 @@ class HorizontalScrollerComponent {
1361
1544
  }
1362
1545
  showNext() {
1363
1546
  if (this.horizontalScrollElem) {
1547
+ // const elem = this.horizontalScrollElem.nativeElement
1548
+ // elem.scrollLeft += 0.20 * elem.clientWidth
1364
1549
  if (this.horizontalScrollElem) {
1550
+ // const clientWidth = (this.horizontalScrollElem.nativeElement.clientWidth * 0.24)
1365
1551
  const clientWidth = (this.horizontalScrollElem.nativeElement.clientWidth);
1366
1552
  this.horizontalScrollElem.nativeElement.scrollTo({
1367
1553
  left: this.horizontalScrollElem.nativeElement.scrollLeft + clientWidth,
@@ -1385,13 +1571,13 @@ class HorizontalScrollerComponent {
1385
1571
  }
1386
1572
  }
1387
1573
  }
1388
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HorizontalScrollerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1389
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", 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, template: "<section class=\"horizontal-scroll-container h-full\">\r\n <button i18n-aria-label aria-label=\"back\" 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 aria-label=\"next\" 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-y:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;height:100%;flex-wrap:nowrap;display:flex;align-items:stretch;-ms-overflow-style:none;scrollbar-width:none}.horizontal-scroll-content::-webkit-scrollbar{width:0px;height:0px}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i8.MatLegacyButton, 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"] }, { kind: "component", type: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i4.MatLegacyProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }] }); }
1574
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: HorizontalScrollerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1575
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.23", type: HorizontalScrollerComponent, isStandalone: false, 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, template: "<section class=\"horizontal-scroll-container h-full\">\r\n <button i18n-aria-label aria-label=\"back\" 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 aria-label=\"next\" 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-y:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;height:100%;flex-wrap:nowrap;display:flex;align-items:stretch;-ms-overflow-style:none;scrollbar-width:none}.horizontal-scroll-content::-webkit-scrollbar{width:0px;height:0px}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i8.MatMiniFabButton, selector: "button[mat-mini-fab], a[mat-mini-fab], button[matMiniFab], a[matMiniFab]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }] }); }
1390
1576
  }
1391
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HorizontalScrollerComponent, decorators: [{
1577
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: HorizontalScrollerComponent, decorators: [{
1392
1578
  type: Component,
1393
- args: [{ selector: 'ws-utils-horizontal-scroller', template: "<section class=\"horizontal-scroll-container h-full\">\r\n <button i18n-aria-label aria-label=\"back\" 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 aria-label=\"next\" 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-y:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;height:100%;flex-wrap:nowrap;display:flex;align-items:stretch;-ms-overflow-style:none;scrollbar-width:none}.horizontal-scroll-content::-webkit-scrollbar{width:0px;height:0px}\n"] }]
1394
- }], ctorParameters: function () { return []; }, propDecorators: { loadStatus: [{
1579
+ args: [{ selector: 'ws-utils-horizontal-scroller', standalone: false, template: "<section class=\"horizontal-scroll-container h-full\">\r\n <button i18n-aria-label aria-label=\"back\" 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 aria-label=\"next\" 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-y:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;height:100%;flex-wrap:nowrap;display:flex;align-items:stretch;-ms-overflow-style:none;scrollbar-width:none}.horizontal-scroll-content::-webkit-scrollbar{width:0px;height:0px}\n"] }]
1580
+ }], ctorParameters: () => [], propDecorators: { loadStatus: [{
1395
1581
  type: Input
1396
1582
  }], onHover: [{
1397
1583
  type: Input
@@ -1403,25 +1589,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1403
1589
  }] } });
1404
1590
 
1405
1591
  class HorizontalScrollerModule {
1406
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HorizontalScrollerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1407
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: HorizontalScrollerModule, declarations: [HorizontalScrollerComponent], imports: [CommonModule,
1408
- MatLegacyButtonModule,
1592
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: HorizontalScrollerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1593
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: HorizontalScrollerModule, declarations: [HorizontalScrollerComponent], imports: [CommonModule,
1594
+ MatButtonModule,
1409
1595
  MatIconModule,
1410
- MatLegacyProgressSpinnerModule], exports: [HorizontalScrollerComponent] }); }
1411
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HorizontalScrollerModule, imports: [CommonModule,
1412
- MatLegacyButtonModule,
1596
+ MatProgressSpinnerModule], exports: [HorizontalScrollerComponent] }); }
1597
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: HorizontalScrollerModule, imports: [CommonModule,
1598
+ MatButtonModule,
1413
1599
  MatIconModule,
1414
- MatLegacyProgressSpinnerModule] }); }
1600
+ MatProgressSpinnerModule] }); }
1415
1601
  }
1416
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HorizontalScrollerModule, decorators: [{
1602
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: HorizontalScrollerModule, decorators: [{
1417
1603
  type: NgModule,
1418
1604
  args: [{
1419
1605
  declarations: [HorizontalScrollerComponent],
1420
1606
  imports: [
1421
1607
  CommonModule,
1422
- MatLegacyButtonModule,
1608
+ MatButtonModule,
1423
1609
  MatIconModule,
1424
- MatLegacyProgressSpinnerModule,
1610
+ MatProgressSpinnerModule,
1425
1611
  ],
1426
1612
  exports: [HorizontalScrollerComponent],
1427
1613
  }]
@@ -1482,6 +1668,7 @@ var WsEvents;
1482
1668
  EnumTelemetrySubType["GetStarted"] = "Get Started";
1483
1669
  EnumTelemetrySubType["PlatformRating"] = "PlatformRating";
1484
1670
  })(EnumTelemetrySubType = WsEvents.EnumTelemetrySubType || (WsEvents.EnumTelemetrySubType = {}));
1671
+ // PDF Telemetry Event
1485
1672
  let EnumTelemetryPdfActivity;
1486
1673
  (function (EnumTelemetryPdfActivity) {
1487
1674
  EnumTelemetryPdfActivity["PAGE_CHANGED"] = "PAGE_CHANGED";
@@ -1490,6 +1677,7 @@ var WsEvents;
1490
1677
  EnumTelemetryPdfActivity["ZOOM_CHANGE"] = "ZOOM_CHANGE";
1491
1678
  EnumTelemetryPdfActivity["NONE"] = "NONE";
1492
1679
  })(EnumTelemetryPdfActivity = WsEvents.EnumTelemetryPdfActivity || (WsEvents.EnumTelemetryPdfActivity = {}));
1680
+ // Multimedia Telemetry Data
1493
1681
  let EnumTelemetryMediaActivity;
1494
1682
  (function (EnumTelemetryMediaActivity) {
1495
1683
  EnumTelemetryMediaActivity["PLAYED"] = "PLAYED";
@@ -1582,7 +1770,11 @@ class UtilityService {
1582
1770
  this.currentRouteData = [];
1583
1771
  this.router.events.subscribe((event) => {
1584
1772
  if (event instanceof NavigationEnd) {
1773
+ // let snapshot = this.router.routerState.firstChild(this.activatedRoute).snapshot
1774
+ // console.log('this.route.snapshot :: ', this.route.snapshot)
1585
1775
  const snapshot = this.route.snapshot;
1776
+ // console.log('root.snapshot.root.firstChild ', snapshot.root.firstChild)
1777
+ // console.log('firstChild ', snapshot.firstChild)
1586
1778
  const firstChild = snapshot.root.firstChild;
1587
1779
  this.getChildRouteData(snapshot, firstChild);
1588
1780
  }
@@ -1591,6 +1783,7 @@ class UtilityService {
1591
1783
  getChildRouteData(snapshot, firstChild) {
1592
1784
  if (firstChild) {
1593
1785
  if (firstChild.data) {
1786
+ // console.log('firstChild.data', firstChild.data)
1594
1787
  this.currentRouteData.push(firstChild.data);
1595
1788
  }
1596
1789
  if (firstChild.firstChild) {
@@ -1668,6 +1861,8 @@ class UtilityService {
1668
1861
  module: '',
1669
1862
  pageId: '',
1670
1863
  };
1864
+ // tslint:disable-next-line: no-console
1865
+ // console.log('Final currentDataRoute get routeData()', this.currentRouteData)
1671
1866
  this.currentRouteData.map((rd) => {
1672
1867
  if (rd.pageId) {
1673
1868
  data.pageId = `${data.pageId}/${rd.pageId}`;
@@ -1678,15 +1873,15 @@ class UtilityService {
1678
1873
  });
1679
1874
  return data;
1680
1875
  }
1681
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UtilityService, deps: [{ token: i1$2.HttpClient }, { token: i2$1.Platform }, { token: i3$1.Router }, { token: i3$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Injectable }); }
1682
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UtilityService, providedIn: 'root' }); }
1876
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: UtilityService, deps: [{ token: i1.HttpClient }, { token: i2$1.Platform }, { token: i3$1.Router }, { token: i3$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Injectable }); }
1877
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: UtilityService, providedIn: 'root' }); }
1683
1878
  }
1684
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UtilityService, decorators: [{
1879
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: UtilityService, decorators: [{
1685
1880
  type: Injectable,
1686
1881
  args: [{
1687
1882
  providedIn: 'root',
1688
1883
  }]
1689
- }], ctorParameters: function () { return [{ type: i1$2.HttpClient }, { type: i2$1.Platform }, { type: i3$1.Router }, { type: i3$1.ActivatedRoute }]; } });
1884
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2$1.Platform }, { type: i3$1.Router }, { type: i3$1.ActivatedRoute }] });
1690
1885
 
1691
1886
  class EventService {
1692
1887
  constructor(environment, utilitySvc) {
@@ -1703,6 +1898,7 @@ class EventService {
1703
1898
  this.eventsPRSubject = new Subject();
1704
1899
  this.getPREvents$ = this.eventsPRSubject.asObservable();
1705
1900
  this.environment = environment;
1901
+ // this.focusChangeEventListener()
1706
1902
  }
1707
1903
  dispatchEvent(event) {
1708
1904
  event.pageContext = this.getContext(event.pageContext);
@@ -1717,6 +1913,7 @@ class EventService {
1717
1913
  dispatchPlatformRatingEvent(event) {
1718
1914
  this.eventsPRSubject.next(event);
1719
1915
  }
1916
+ // helper functions
1720
1917
  raiseInteractTelemetry(edata, object, pageContext) {
1721
1918
  this.dispatchEvent({
1722
1919
  eventType: WsEvents.WsEventType.Telemetry,
@@ -1744,6 +1941,7 @@ class EventService {
1744
1941
  to: 'Telemetry',
1745
1942
  });
1746
1943
  }
1944
+ // Raise custom impression events eg:on tab change
1747
1945
  raiseCustomImpression(object, pageContext) {
1748
1946
  this.dispatchEvent({
1749
1947
  eventType: WsEvents.WsEventType.Telemetry,
@@ -1757,19 +1955,32 @@ class EventService {
1757
1955
  to: 'Telemetry',
1758
1956
  });
1759
1957
  }
1958
+ // private focusChangeEventListener() {
1959
+ // fromEvent(window, 'focus').subscribe(() => {
1960
+ // this.raiseInteractTelemetry('focus', 'gained', {})
1961
+ // })
1962
+ // fromEvent(window, 'blur').subscribe(() => {
1963
+ // this.raiseInteractTelemetry('focus', 'lost', {})
1964
+ // })
1965
+ // }
1966
+ // Method to get the context information about the telemetry interact event
1760
1967
  getContext(pageContext) {
1761
1968
  const routeDataContext = this.utilitySvc.routeData;
1969
+ // initialize with the route data configuration - current route's pageID & module
1762
1970
  const finalContext = {
1763
1971
  pageId: routeDataContext.pageId,
1764
1972
  module: routeDataContext.module,
1765
1973
  };
1766
1974
  if (pageContext) {
1975
+ // if context has pageIdExt, append it to the route's pageId
1767
1976
  if (pageContext.pageIdExt) {
1768
1977
  finalContext.pageId = `${routeDataContext.pageId}_${pageContext.pageIdExt}`;
1769
1978
  }
1770
1979
  else if (pageContext.pageId) {
1980
+ // else context has pageId, override it to the final pageID
1771
1981
  finalContext.pageId = pageContext.pageId;
1772
1982
  }
1983
+ // if context has module, override it to the final module
1773
1984
  if (pageContext.module) {
1774
1985
  finalContext.module = pageContext.module;
1775
1986
  }
@@ -1777,22 +1988,27 @@ class EventService {
1777
1988
  return finalContext;
1778
1989
  }
1779
1990
  handleTabTelemetry(subType, data, object) {
1991
+ // raise a tab click interact event
1780
1992
  this.raiseInteractTelemetry({
1781
1993
  subType,
1782
1994
  type: WsEvents.EnumInteractTypes.CLICK,
1783
- id: `${_.camelCase(data.label)}-tab`,
1995
+ id: `${___default.camelCase(data.label)}-tab`,
1784
1996
  }, {
1997
+ // context: {
1998
+ // position: data.index,
1999
+ // },
1785
2000
  ...object
1786
2001
  }, {
1787
- pageIdExt: `${_.camelCase(data.label)}-tab`,
2002
+ pageIdExt: `${___default.camelCase(data.label)}-tab`,
1788
2003
  });
2004
+ // raise a tab click impression event
1789
2005
  this.raiseCustomImpression({
1790
2006
  context: {
1791
2007
  position: data.index,
1792
2008
  },
1793
2009
  ...object
1794
2010
  }, {
1795
- pageIdExt: `${_.camelCase(data.label)}-tab`,
2011
+ pageIdExt: `${___default.camelCase(data.label)}-tab`,
1796
2012
  });
1797
2013
  }
1798
2014
  getPublicUrl(url) {
@@ -1807,15 +2023,20 @@ class EventService {
1807
2023
  const minutes = new Date(datetime).getMinutes();
1808
2024
  const seconds = new Date(datetime).getSeconds();
1809
2025
  const formatedDate = new Date(year, month, date, hours, minutes, seconds, 0);
2026
+ // let format = 'YYYY-MM-DD hh:mm a'
2027
+ // if (!timeAllow) {
1810
2028
  const format = 'YYYY-MM-DD';
2029
+ // }
1811
2030
  const readableDateMonth = moment(formatedDate).format(format);
1812
2031
  const finalDateTimeValue = `${readableDateMonth}`;
1813
2032
  return finalDateTimeValue;
1814
2033
  }
1815
2034
  compareDate(startDate) {
1816
2035
  const now = new Date();
2036
+ // tslint:disable-next-line:prefer-template
1817
2037
  const day = ('0' + (new Date().getDate())).slice(-2);
1818
2038
  const year = new Date().getFullYear();
2039
+ // tslint:disable-next-line:prefer-template
1819
2040
  const month = ('0' + (now.getMonth() + 1)).slice(-2);
1820
2041
  const todaysdate = `${year}-${month}-${day}`;
1821
2042
  if (startDate === todaysdate) {
@@ -1853,6 +2074,7 @@ class EventService {
1853
2074
  let isEventRecording = false;
1854
2075
  let isEventPast = false;
1855
2076
  let isEventFuture = false;
2077
+ // console.log('strip comp', data)
1856
2078
  Object.keys(data).forEach((index) => {
1857
2079
  isEventRecording = false;
1858
2080
  isEventLive = false;
@@ -1962,18 +2184,18 @@ class EventService {
1962
2184
  this.keySpeakerEvents = [...liveEvents, ...futureEvents, ...pastEvents];
1963
2185
  return this.keySpeakerEvents;
1964
2186
  }
1965
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EventService, deps: [{ token: 'environment' }, { token: UtilityService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1966
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EventService, providedIn: 'root' }); }
2187
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: EventService, deps: [{ token: 'environment' }, { token: UtilityService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2188
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: EventService, providedIn: 'root' }); }
1967
2189
  }
1968
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EventService, decorators: [{
2190
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: EventService, decorators: [{
1969
2191
  type: Injectable,
1970
2192
  args: [{
1971
2193
  providedIn: 'root',
1972
2194
  }]
1973
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
2195
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
1974
2196
  type: Inject,
1975
2197
  args: ['environment']
1976
- }] }, { type: UtilityService }]; } });
2198
+ }] }, { type: UtilityService }] });
1977
2199
 
1978
2200
  class HorizontalScrollerV2Component {
1979
2201
  constructor(eventService) {
@@ -2022,7 +2244,10 @@ class HorizontalScrollerV2Component {
2022
2244
  }
2023
2245
  }
2024
2246
  showPrev() {
2247
+ // const elem = this.horizontalScrollElem.nativeElement
2248
+ // elem.scrollLeft -= 0.20 * elem.clientWidth
2025
2249
  if (this.horizontalScrollElem) {
2250
+ // const clientWidth = (this.horizontalScrollElem.nativeElement.clientWidth * 0.24)
2026
2251
  const clientWidth = (this.horizontalScrollElem.nativeElement.clientWidth);
2027
2252
  this.horizontalScrollElem.nativeElement.scrollTo({
2028
2253
  left: this.horizontalScrollElem.nativeElement.scrollLeft - clientWidth,
@@ -2033,7 +2258,10 @@ class HorizontalScrollerV2Component {
2033
2258
  }
2034
2259
  }
2035
2260
  showNext() {
2261
+ // const elem = this.horizontalScrollElem.nativeElement
2262
+ // elem.scrollLeft += 0.20 * elem.clientWidth
2036
2263
  if (this.horizontalScrollElem) {
2264
+ // const clientWidth = (this.horizontalScrollElem.nativeElement.clientWidth * 0.24)
2037
2265
  const clientWidth = (this.horizontalScrollElem.nativeElement.clientWidth);
2038
2266
  this.horizontalScrollElem.nativeElement.scrollTo({
2039
2267
  left: this.horizontalScrollElem.nativeElement.scrollLeft + clientWidth,
@@ -2077,6 +2305,25 @@ class HorizontalScrollerV2Component {
2077
2305
  }
2078
2306
  slideTo(ele) {
2079
2307
  const diff = ele - this.activeNav;
2308
+ // if (ele > this.activeNav && ele !== this.activeNav) {
2309
+ // if (this.horizontalScrollElem) {
2310
+ // const clientWidth = (this.horizontalScrollElem.nativeElement.clientWidth)
2311
+ // this.horizontalScrollElem.nativeElement.scrollTo({
2312
+ // left: this.horizontalScrollElem.nativeElement.scrollLeft + (clientWidth*diff),
2313
+ // behavior: 'smooth',
2314
+ // })
2315
+ // }
2316
+ // this.activeNav = ele
2317
+ // } else {
2318
+ // if (this.horizontalScrollElem && ele >= 0 && ele !== this.activeNav) {
2319
+ // const clientWidth = (this.horizontalScrollElem.nativeElement.clientWidth)
2320
+ // this.horizontalScrollElem.nativeElement.scrollTo({
2321
+ // left: this.horizontalScrollElem.nativeElement.scrollLeft - (clientWidth*diff),
2322
+ // behavior: 'smooth',
2323
+ // })
2324
+ // }
2325
+ // this.activeNav = ele
2326
+ // }
2080
2327
  if (this.horizontalScrollElem) {
2081
2328
  const clientWidth = (this.horizontalScrollElem.nativeElement.clientWidth);
2082
2329
  this.horizontalScrollElem.nativeElement.scrollTo({
@@ -2091,6 +2338,7 @@ class HorizontalScrollerV2Component {
2091
2338
  this.bottomDotsArray = [];
2092
2339
  let cardWidth;
2093
2340
  let arrLength;
2341
+ // console.log('this.cardSubType-->',this.cardSubType)
2094
2342
  if (this.cardSubType !== 'card-wide-v2') {
2095
2343
  cardWidth = this.cardSubType === 'standard' ? 245 :
2096
2344
  ((document.getElementsByClassName(this.cardSubType) &&
@@ -2110,6 +2358,8 @@ class HorizontalScrollerV2Component {
2110
2358
  this.bottomDotsArray.push(i);
2111
2359
  }
2112
2360
  }
2361
+ // console.log('this.cardSubType', this.cardSubType, arrLength, this.widgetsLength ,
2362
+ // this.defaultMaxWidgets, scrollerWidth, this.bottomDotsArray)
2113
2363
  }
2114
2364
  }
2115
2365
  }
@@ -2123,13 +2373,13 @@ class HorizontalScrollerV2Component {
2123
2373
  }
2124
2374
  }
2125
2375
  }
2126
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HorizontalScrollerV2Component, deps: [{ token: EventService }], target: i0.ɵɵFactoryTarget.Component }); }
2127
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: HorizontalScrollerV2Component, selector: "ws-utils-horizontal-scroller-v2", inputs: { loadStatus: "loadStatus", onHover: "onHover", sliderConfig: "sliderConfig", widgetsLength: "widgetsLength", defaultMaxWidgets: "defaultMaxWidgets", stripConfig: "stripConfig", stripsResultDataMap: "stripsResultDataMap", subtype: "subtype" }, outputs: { loadNext: "loadNext" }, viewQueries: [{ propertyName: "horizontalScrollElem", first: true, predicate: ["horizontalScrollElem"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<section class=\"horizontal-scroll-container h-full\" [ngClass]=\"{'px-4': sliderConfig.showNavs, 'mt-5':sliderConfig.cerificateCardMargin}\">\n <ng-container *ngIf=\"sliderConfig?.showNavs\">\n <button i18n-aria-label aria-label=\"back\" name=\"content-backward-button\" mat-mini-fab color=\"\" \n (click)=\"showPrev()\" class=\"prevBtn mat-elevation-z\" [hidden]=\"!enablePrev\"\n [ngClass]=\"{'prevBtnHover': onHover}\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n </ng-container>\n <div name=\"horizontal-scroll-content-strip\" class=\"horizontal-scroll-content\" #horizontalScrollElem>\n <ng-content></ng-content>\n </div>\n <ng-container *ngIf=\"sliderConfig?.showNavs\">\n <button i18n-aria-label aria-label=\"next\" name=\"content-forward-button\" mat-mini-fab (click)=\"showNext()\"\n color=\"\" class=\"nextBtn mat-elevation-z\" [ngClass]=\"{'nextBtnHover': onHover}\"\n [hidden]=\"!enableNext || loadStatus === 'fetching'\">\n <mat-icon>navigate_next</mat-icon>\n </button>\n </ng-container>\n <!-- <div class=\"nextLoading\" *ngIf=\"loadStatus === 'fetching'\">\n <mat-spinner></mat-spinner>\n </div> --> \n</section>\n\n<div class=\"dots-container\" *ngIf=\"sliderConfig?.showDots\">\n <!-- <span class=\"dot\" [ngClass]=\"{ active: j === currentIndex }\" -->\n <span class=\"dot\" [ngClass]=\"{ active: j === activeNav }\" *ngFor=\"let slide of bottomDotsArray; let j = index\" (click)=\"slideTo(j)\"></span>\n</div>", styles: [".horizontal-scroll-container{position:relative;width:100%;width:inherit}@media only screen and (max-width: 599px){.horizontal-scroll-container{padding:0}}.nextLoading,.nextBtn,.prevBtn{position:absolute;top:50%;transform:translateY(-50%);z-index:999;height:32px!important;width:32px!important;display:flex;align-items:center;justify-content:center}.nextBtn,.prevBtn{border-radius:50%;background-color:#1b2133!important;color:#fff!important}.border-radius-xs{border-radius:8px!important}.prevBtn{left:0}.nextBtn{right:0}.nextLoading{padding:0;right:0}.horizontal-scroll-content{overflow-y:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;height:100%;flex-wrap:nowrap;display:flex;align-items:stretch;-ms-overflow-style:none;scrollbar-width:none}.horizontal-scroll-content::-webkit-scrollbar{width:0px;height:0px}.dots-container{padding:8px;display:flex;align-items:center;justify-content:center}.dots-container .dot{cursor:pointer;height:6px;width:6px;margin:0 4px;background-color:#0006;border-radius:50%;display:inline-block;transition:background-color .5s ease!important}.dots-container .dot.active{border-radius:4px;background-color:#f3962f;width:16px}@media screen and (max-width: 768px){.nextBtn{right:-16px}.prevBtn{left:-16px}}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i8.MatLegacyButton, 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"] }, { kind: "component", type: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] }); }
2376
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: HorizontalScrollerV2Component, deps: [{ token: EventService }], target: i0.ɵɵFactoryTarget.Component }); }
2377
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.23", type: HorizontalScrollerV2Component, isStandalone: false, selector: "ws-utils-horizontal-scroller-v2", inputs: { loadStatus: "loadStatus", onHover: "onHover", sliderConfig: "sliderConfig", widgetsLength: "widgetsLength", defaultMaxWidgets: "defaultMaxWidgets", stripConfig: "stripConfig", stripsResultDataMap: "stripsResultDataMap", subtype: "subtype" }, outputs: { loadNext: "loadNext" }, viewQueries: [{ propertyName: "horizontalScrollElem", first: true, predicate: ["horizontalScrollElem"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<section class=\"horizontal-scroll-container h-full\" [ngClass]=\"{'px-4': sliderConfig.showNavs, 'mt-5':sliderConfig.cerificateCardMargin}\">\n <ng-container *ngIf=\"sliderConfig?.showNavs\">\n <button i18n-aria-label aria-label=\"back\" name=\"content-backward-button\" mat-mini-fab color=\"\" \n (click)=\"showPrev()\" class=\"prevBtn mat-elevation-z\" [hidden]=\"!enablePrev\"\n [ngClass]=\"{'prevBtnHover': onHover}\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n </ng-container>\n <div name=\"horizontal-scroll-content-strip\" class=\"horizontal-scroll-content\" #horizontalScrollElem>\n <ng-content></ng-content>\n </div>\n <ng-container *ngIf=\"sliderConfig?.showNavs\">\n <button i18n-aria-label aria-label=\"next\" name=\"content-forward-button\" mat-mini-fab (click)=\"showNext()\"\n color=\"\" class=\"nextBtn mat-elevation-z\" [ngClass]=\"{'nextBtnHover': onHover}\"\n [hidden]=\"!enableNext || loadStatus === 'fetching'\">\n <mat-icon>navigate_next</mat-icon>\n </button>\n </ng-container>\n <!-- <div class=\"nextLoading\" *ngIf=\"loadStatus === 'fetching'\">\n <mat-spinner></mat-spinner>\n </div> --> \n</section>\n\n<div class=\"dots-container\" *ngIf=\"sliderConfig?.showDots\">\n <!-- <span class=\"dot\" [ngClass]=\"{ active: j === currentIndex }\" -->\n <span class=\"dot\" [ngClass]=\"{ active: j === activeNav }\" *ngFor=\"let slide of bottomDotsArray; let j = index\" (click)=\"slideTo(j)\"></span>\n</div>", styles: [".horizontal-scroll-container{position:relative;width:100%;width:inherit}@media only screen and (max-width:599px){.horizontal-scroll-container{padding:0}}.nextLoading,.nextBtn,.prevBtn{position:absolute;top:50%;transform:translateY(-50%);z-index:999;height:32px!important;width:32px!important;display:flex;align-items:center;justify-content:center}.nextBtn,.prevBtn{border-radius:50%;background-color:#1b2133!important;color:#fff!important}.border-radius-xs{border-radius:8px!important}.prevBtn{left:0}.nextBtn{right:0}.nextLoading{padding:0;right:0}.horizontal-scroll-content{overflow-y:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;height:100%;flex-wrap:nowrap;display:flex;align-items:stretch;-ms-overflow-style:none;scrollbar-width:none}.horizontal-scroll-content::-webkit-scrollbar{width:0px;height:0px}.dots-container{padding:8px;display:flex;align-items:center;justify-content:center}.dots-container .dot{cursor:pointer;height:6px;width:6px;margin:0 4px;background-color:#0006;border-radius:50%;display:inline-block;transition:background-color .5s ease!important}.dots-container .dot.active{border-radius:4px;background-color:#f3962f;width:16px}@media screen and (max-width:768px){.nextBtn{right:-16px}.prevBtn{left:-16px}}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i8.MatMiniFabButton, selector: "button[mat-mini-fab], a[mat-mini-fab], button[matMiniFab], a[matMiniFab]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] }); }
2128
2378
  }
2129
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HorizontalScrollerV2Component, decorators: [{
2379
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: HorizontalScrollerV2Component, decorators: [{
2130
2380
  type: Component,
2131
- args: [{ selector: 'ws-utils-horizontal-scroller-v2', template: "<section class=\"horizontal-scroll-container h-full\" [ngClass]=\"{'px-4': sliderConfig.showNavs, 'mt-5':sliderConfig.cerificateCardMargin}\">\n <ng-container *ngIf=\"sliderConfig?.showNavs\">\n <button i18n-aria-label aria-label=\"back\" name=\"content-backward-button\" mat-mini-fab color=\"\" \n (click)=\"showPrev()\" class=\"prevBtn mat-elevation-z\" [hidden]=\"!enablePrev\"\n [ngClass]=\"{'prevBtnHover': onHover}\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n </ng-container>\n <div name=\"horizontal-scroll-content-strip\" class=\"horizontal-scroll-content\" #horizontalScrollElem>\n <ng-content></ng-content>\n </div>\n <ng-container *ngIf=\"sliderConfig?.showNavs\">\n <button i18n-aria-label aria-label=\"next\" name=\"content-forward-button\" mat-mini-fab (click)=\"showNext()\"\n color=\"\" class=\"nextBtn mat-elevation-z\" [ngClass]=\"{'nextBtnHover': onHover}\"\n [hidden]=\"!enableNext || loadStatus === 'fetching'\">\n <mat-icon>navigate_next</mat-icon>\n </button>\n </ng-container>\n <!-- <div class=\"nextLoading\" *ngIf=\"loadStatus === 'fetching'\">\n <mat-spinner></mat-spinner>\n </div> --> \n</section>\n\n<div class=\"dots-container\" *ngIf=\"sliderConfig?.showDots\">\n <!-- <span class=\"dot\" [ngClass]=\"{ active: j === currentIndex }\" -->\n <span class=\"dot\" [ngClass]=\"{ active: j === activeNav }\" *ngFor=\"let slide of bottomDotsArray; let j = index\" (click)=\"slideTo(j)\"></span>\n</div>", styles: [".horizontal-scroll-container{position:relative;width:100%;width:inherit}@media only screen and (max-width: 599px){.horizontal-scroll-container{padding:0}}.nextLoading,.nextBtn,.prevBtn{position:absolute;top:50%;transform:translateY(-50%);z-index:999;height:32px!important;width:32px!important;display:flex;align-items:center;justify-content:center}.nextBtn,.prevBtn{border-radius:50%;background-color:#1b2133!important;color:#fff!important}.border-radius-xs{border-radius:8px!important}.prevBtn{left:0}.nextBtn{right:0}.nextLoading{padding:0;right:0}.horizontal-scroll-content{overflow-y:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;height:100%;flex-wrap:nowrap;display:flex;align-items:stretch;-ms-overflow-style:none;scrollbar-width:none}.horizontal-scroll-content::-webkit-scrollbar{width:0px;height:0px}.dots-container{padding:8px;display:flex;align-items:center;justify-content:center}.dots-container .dot{cursor:pointer;height:6px;width:6px;margin:0 4px;background-color:#0006;border-radius:50%;display:inline-block;transition:background-color .5s ease!important}.dots-container .dot.active{border-radius:4px;background-color:#f3962f;width:16px}@media screen and (max-width: 768px){.nextBtn{right:-16px}.prevBtn{left:-16px}}\n"] }]
2132
- }], ctorParameters: function () { return [{ type: EventService }]; }, propDecorators: { loadStatus: [{
2381
+ args: [{ selector: 'ws-utils-horizontal-scroller-v2', standalone: false, template: "<section class=\"horizontal-scroll-container h-full\" [ngClass]=\"{'px-4': sliderConfig.showNavs, 'mt-5':sliderConfig.cerificateCardMargin}\">\n <ng-container *ngIf=\"sliderConfig?.showNavs\">\n <button i18n-aria-label aria-label=\"back\" name=\"content-backward-button\" mat-mini-fab color=\"\" \n (click)=\"showPrev()\" class=\"prevBtn mat-elevation-z\" [hidden]=\"!enablePrev\"\n [ngClass]=\"{'prevBtnHover': onHover}\">\n <mat-icon>navigate_before</mat-icon>\n </button>\n </ng-container>\n <div name=\"horizontal-scroll-content-strip\" class=\"horizontal-scroll-content\" #horizontalScrollElem>\n <ng-content></ng-content>\n </div>\n <ng-container *ngIf=\"sliderConfig?.showNavs\">\n <button i18n-aria-label aria-label=\"next\" name=\"content-forward-button\" mat-mini-fab (click)=\"showNext()\"\n color=\"\" class=\"nextBtn mat-elevation-z\" [ngClass]=\"{'nextBtnHover': onHover}\"\n [hidden]=\"!enableNext || loadStatus === 'fetching'\">\n <mat-icon>navigate_next</mat-icon>\n </button>\n </ng-container>\n <!-- <div class=\"nextLoading\" *ngIf=\"loadStatus === 'fetching'\">\n <mat-spinner></mat-spinner>\n </div> --> \n</section>\n\n<div class=\"dots-container\" *ngIf=\"sliderConfig?.showDots\">\n <!-- <span class=\"dot\" [ngClass]=\"{ active: j === currentIndex }\" -->\n <span class=\"dot\" [ngClass]=\"{ active: j === activeNav }\" *ngFor=\"let slide of bottomDotsArray; let j = index\" (click)=\"slideTo(j)\"></span>\n</div>", styles: [".horizontal-scroll-container{position:relative;width:100%;width:inherit}@media only screen and (max-width:599px){.horizontal-scroll-container{padding:0}}.nextLoading,.nextBtn,.prevBtn{position:absolute;top:50%;transform:translateY(-50%);z-index:999;height:32px!important;width:32px!important;display:flex;align-items:center;justify-content:center}.nextBtn,.prevBtn{border-radius:50%;background-color:#1b2133!important;color:#fff!important}.border-radius-xs{border-radius:8px!important}.prevBtn{left:0}.nextBtn{right:0}.nextLoading{padding:0;right:0}.horizontal-scroll-content{overflow-y:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;height:100%;flex-wrap:nowrap;display:flex;align-items:stretch;-ms-overflow-style:none;scrollbar-width:none}.horizontal-scroll-content::-webkit-scrollbar{width:0px;height:0px}.dots-container{padding:8px;display:flex;align-items:center;justify-content:center}.dots-container .dot{cursor:pointer;height:6px;width:6px;margin:0 4px;background-color:#0006;border-radius:50%;display:inline-block;transition:background-color .5s ease!important}.dots-container .dot.active{border-radius:4px;background-color:#f3962f;width:16px}@media screen and (max-width:768px){.nextBtn{right:-16px}.prevBtn{left:-16px}}\n"] }]
2382
+ }], ctorParameters: () => [{ type: EventService }], propDecorators: { loadStatus: [{
2133
2383
  type: Input
2134
2384
  }], onHover: [{
2135
2385
  type: Input
@@ -2153,30 +2403,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
2153
2403
  }] } });
2154
2404
 
2155
2405
  class HorizontalScrollerV2Module {
2156
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HorizontalScrollerV2Module, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2157
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: HorizontalScrollerV2Module, declarations: [HorizontalScrollerV2Component], imports: [CommonModule,
2158
- MatLegacyButtonModule,
2406
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: HorizontalScrollerV2Module, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2407
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: HorizontalScrollerV2Module, declarations: [HorizontalScrollerV2Component], imports: [CommonModule,
2408
+ MatButtonModule,
2159
2409
  MatIconModule,
2160
- MatLegacyProgressSpinnerModule], exports: [HorizontalScrollerV2Component] }); }
2161
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HorizontalScrollerV2Module, imports: [CommonModule,
2162
- MatLegacyButtonModule,
2410
+ MatProgressSpinnerModule], exports: [HorizontalScrollerV2Component] }); }
2411
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: HorizontalScrollerV2Module, imports: [CommonModule,
2412
+ MatButtonModule,
2163
2413
  MatIconModule,
2164
- MatLegacyProgressSpinnerModule] }); }
2414
+ MatProgressSpinnerModule] }); }
2165
2415
  }
2166
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: HorizontalScrollerV2Module, decorators: [{
2416
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: HorizontalScrollerV2Module, decorators: [{
2167
2417
  type: NgModule,
2168
2418
  args: [{
2169
2419
  declarations: [HorizontalScrollerV2Component],
2170
2420
  imports: [
2171
2421
  CommonModule,
2172
- MatLegacyButtonModule,
2422
+ MatButtonModule,
2173
2423
  MatIconModule,
2174
- MatLegacyProgressSpinnerModule,
2424
+ MatProgressSpinnerModule,
2175
2425
  ],
2176
2426
  exports: [HorizontalScrollerV2Component],
2177
2427
  }]
2178
2428
  }] });
2179
2429
 
2430
+ // tslint:disable:no-console
2180
2431
  class LoggerService {
2181
2432
  constructor(configSvc) {
2182
2433
  this.configSvc = configSvc;
@@ -2205,20 +2456,22 @@ class LoggerService {
2205
2456
  const noConsoleWithError = () => {
2206
2457
  throw new Error('Console Functions Usage Are Not Allowed.');
2207
2458
  };
2459
+ // console.log = noConsoleWithError
2208
2460
  console.warn = noConsoleWithError;
2209
2461
  console.info = noConsoleWithError;
2210
2462
  console.error = noConsoleWithError;
2211
2463
  }
2212
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoggerService, deps: [{ token: ConfigurationsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2213
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoggerService, providedIn: 'root' }); }
2464
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: LoggerService, deps: [{ token: ConfigurationsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2465
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: LoggerService, providedIn: 'root' }); }
2214
2466
  }
2215
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoggerService, decorators: [{
2467
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: LoggerService, decorators: [{
2216
2468
  type: Injectable,
2217
2469
  args: [{
2218
2470
  providedIn: 'root',
2219
2471
  }]
2220
- }], ctorParameters: function () { return [{ type: ConfigurationsService }]; } });
2472
+ }], ctorParameters: () => [{ type: ConfigurationsService }] });
2221
2473
 
2474
+ // TODO: Use a url-search-polyfill if the site didnot work in IE 11
2222
2475
  const msTokenExpiryDuration = 600;
2223
2476
  const storageKey$1 = 'msLoginRequested';
2224
2477
  const storage$1 = localStorage;
@@ -2270,6 +2523,7 @@ class AuthMicrosoftService {
2270
2523
  }
2271
2524
  return redirectUrl;
2272
2525
  }
2526
+ // Behavior Methods
2273
2527
  async init(config) {
2274
2528
  if (!config || !config.microsoft || !config.microsoft.isConfigured) {
2275
2529
  this.loggerSvc.warn('Empty/No Configuration passed, ignoring Microsoft Authentication');
@@ -2354,6 +2608,7 @@ class AuthMicrosoftService {
2354
2608
  }
2355
2609
  isValid(accessToken, expiresOn) {
2356
2610
  if (accessToken && expiresOn) {
2611
+ // TODO: Implement expiredOn and Date comparison based validity
2357
2612
  return true;
2358
2613
  }
2359
2614
  return false;
@@ -2378,23 +2633,378 @@ class AuthMicrosoftService {
2378
2633
  tokenType: token.tokenType,
2379
2634
  };
2380
2635
  }
2381
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthMicrosoftService, deps: [{ token: LoggerService }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
2382
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthMicrosoftService, providedIn: 'root' }); }
2636
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: AuthMicrosoftService, deps: [{ token: LoggerService }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
2637
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: AuthMicrosoftService, providedIn: 'root' }); }
2383
2638
  }
2384
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthMicrosoftService, decorators: [{
2639
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: AuthMicrosoftService, decorators: [{
2385
2640
  type: Injectable,
2386
2641
  args: [{
2387
2642
  providedIn: 'root',
2388
2643
  }]
2389
- }], ctorParameters: function () { return [{ type: LoggerService }, { type: i1$2.HttpClient }]; } });
2644
+ }], ctorParameters: () => [{ type: LoggerService }, { type: i1.HttpClient }] });
2390
2645
 
2646
+ // ─── Service ──────────────────────────────────────────────────────────────────
2647
+ /**
2648
+ * DomainConfService (single source of truth)
2649
+ *
2650
+ * Combines three responsibilities that used to live in separate files:
2651
+ *
2652
+ * 1. Tenant resolution – resolves the tenant key from the current hostname
2653
+ *
2654
+ * 2. Tenant config – holds the per-tenant feature flags / layout / type
2655
+ * loaded from globalConfig.applicationConfig.tenants
2656
+ *
2657
+ * 3. Domain data – convenience accessors for CDN host, logo, redirect
2658
+ * path, site path etc. keyed by the resolved tenant
2659
+ *
2660
+ * Inject this service directly anywhere you need tenant or domain information.
2661
+ * Interfaces ITenantConfig, ITenantConfigFile, ITenantFeatures are exported
2662
+ * from this file and re-exported from the package public-api.
2663
+ */
2664
+ class DomainConfService {
2665
+ /** Alias: `tenant` is the same as `subdomain`, provided for readability. */
2666
+ get tenant() { return this.subdomain; }
2667
+ constructor(configSvc, environment) {
2668
+ this.configSvc = configSvc;
2669
+ // ── hostname / tenant ──────────────────────────────────────────────────────
2670
+ this.currentHostname = window.location.hostname;
2671
+ // ── tenant config state ────────────────────────────────────────────────────
2672
+ this._tenantConfigFile = null;
2673
+ this._currentTenantConfig = null;
2674
+ this.loaded = false;
2675
+ this.defaultLogo = '/assets/instances/eagle/app_logos/KarmayogiBharat_Logo_Horizontal.svg';
2676
+ this.defaultRedirectPath = '/page/home';
2677
+ this.environment = environment;
2678
+ this.subdomain = this.resolveTenant(this.currentHostname);
2679
+ }
2680
+ // ── default config (lazy getter so env values are resolved after injection) ─
2681
+ get defaultConfig() {
2682
+ return {
2683
+ type: 'core',
2684
+ layout: 'default',
2685
+ logo: this.environment?.logo || this.defaultLogo,
2686
+ redirectPath: this.environment?.redirectPath || '/page/home',
2687
+ cdnContentHost: this.environment?.cdnContentHost || 'https://portal.igotkarmayogi.gov.in/',
2688
+ sitePath: this.environment?.sitePath || 'portal.igotkarmayogi.gov.in',
2689
+ karmayogiBharatLink: this.environment?.karmayogiBharatLink || 'https://igotkarmayogi.gov.in/',
2690
+ features: {
2691
+ discussion: true,
2692
+ network: true,
2693
+ events: true,
2694
+ leaderboard: true,
2695
+ marketplace: true,
2696
+ chatbot: true,
2697
+ tour: true,
2698
+ bottomNav: true,
2699
+ },
2700
+ };
2701
+ }
2702
+ // ── 1. Tenant resolution ───────────────────────────────────────────────────
2703
+ resolveTenant(hostname) {
2704
+ if (!hostname) {
2705
+ return 'portal';
2706
+ }
2707
+ const parts = hostname.split('.');
2708
+ if (hostname.includes('localhost') || hostname === '127.0.0.1') {
2709
+ return 'localhost';
2710
+ }
2711
+ if (parts[0].includes('-portal')) {
2712
+ return parts[0];
2713
+ }
2714
+ if (parts[0] === 'portal' && parts.length >= 4) {
2715
+ return parts[1];
2716
+ }
2717
+ return parts[0] || 'portal';
2718
+ }
2719
+ /** True when the resolved tenant is not the main portal */
2720
+ isExternalTenantHost() {
2721
+ return this.subdomain !== 'portal' && this.subdomain !== 'localhost';
2722
+ }
2723
+ // ── 2. Tenant config ───────────────────────────────────────────────────────
2724
+ /**
2725
+ * Initializes tenant configuration from globalConfig.applicationConfig.
2726
+ * Called by InitService once the globalConfig API resolves.
2727
+ */
2728
+ initFromConfig(applicationConfig) {
2729
+ if (!applicationConfig) {
2730
+ console.warn('DomainConfService: applicationConfig is empty, using defaults');
2731
+ return;
2732
+ }
2733
+ this._tenantConfigFile = applicationConfig;
2734
+ this._currentTenantConfig = this._tenantConfigFile.tenants[this.subdomain] || null;
2735
+ // Fallback: ?tenant= query param → defaultTenant in config
2736
+ if (!this._currentTenantConfig) {
2737
+ const debugTenant = new URLSearchParams(window.location.search).get('tenant');
2738
+ if (debugTenant && this._tenantConfigFile.tenants[debugTenant]) {
2739
+ this._currentTenantConfig = this._tenantConfigFile.tenants[debugTenant];
2740
+ }
2741
+ else if (this._tenantConfigFile.defaultTenant &&
2742
+ this._tenantConfigFile.tenants[this._tenantConfigFile.defaultTenant]) {
2743
+ this._currentTenantConfig = this._tenantConfigFile.tenants[this._tenantConfigFile.defaultTenant];
2744
+ }
2745
+ }
2746
+ this.loaded = true;
2747
+ }
2748
+ /** Returns the full tenant configuration for the current tenant */
2749
+ getTenantConfig() {
2750
+ return this._currentTenantConfig || this.defaultConfig;
2751
+ }
2752
+ /** Returns the layout identifier ('default', 'tenant-layout-v1', …) */
2753
+ getLayout() {
2754
+ return this.getTenantConfig().layout || 'default';
2755
+ }
2756
+ /** Returns the tenant type: 'core' | 'internal' | 'external' */
2757
+ getTenantType() {
2758
+ return this.getTenantConfig().type || 'core';
2759
+ }
2760
+ /** True when the tenant config declares type = 'external' */
2761
+ isExternalTenant() {
2762
+ return this.getTenantType() === 'external';
2763
+ }
2764
+ /** True when the tenant uses a non-default layout */
2765
+ hasTenantLayout() {
2766
+ return this.getLayout() !== 'default';
2767
+ }
2768
+ /**
2769
+ * Checks if a top-level feature flag is enabled for the current tenant.
2770
+ * Defaults to true when no config entry exists (safe for existing portal users).
2771
+ */
2772
+ isFeatureEnabled(feature) {
2773
+ const config = this.getTenantConfig();
2774
+ if (!config.features) {
2775
+ return true;
2776
+ }
2777
+ const flag = config.features[feature];
2778
+ return typeof flag === 'boolean' ? flag : true;
2779
+ }
2780
+ /**
2781
+ * Checks the route-level feature flag (features.routes.<feature>).
2782
+ * Defaults to true when not specified.
2783
+ */
2784
+ isFeatureRoutesEnabled(feature) {
2785
+ const config = this.getTenantConfig();
2786
+ if (!config?.features?.routes) {
2787
+ return true;
2788
+ }
2789
+ return config.features.routes[feature] ?? true;
2790
+ }
2791
+ isFeatureByPageEnabled(pageName, feature) {
2792
+ const config = this.getTenantConfig();
2793
+ const pageFeatures = config?.features?.[pageName];
2794
+ if (!pageFeatures || typeof pageFeatures !== 'object') {
2795
+ return true;
2796
+ }
2797
+ return pageFeatures[feature] ?? true;
2798
+ }
2799
+ /** Returns all feature flags for the current tenant */
2800
+ getFeatures() {
2801
+ return this.getTenantConfig().features || {};
2802
+ }
2803
+ // ── 3. Domain data accessors ───────────────────────────────────────────────
2804
+ //
2805
+ // All accessors use getTenantConfig() which returns _currentTenantConfig —
2806
+ // the fully-resolved config that already accounts for hostname, ?tenant= param,
2807
+ // and defaultTenant fallback. This ensures consistency: if you land on localhost
2808
+ // with ?tenant=iiidem-portal, both feature flags AND domain data return iiidem
2809
+ // values, not localhost/environment fallbacks.
2810
+ getDomainCDNHost() {
2811
+ return this.getTenantConfig().cdnContentHost || this.environment?.cdnContentHost;
2812
+ }
2813
+ getDomainAppLogo() {
2814
+ const tenantLogo = this.getTenantConfig().logo;
2815
+ if (tenantLogo) {
2816
+ return tenantLogo;
2817
+ }
2818
+ return this.configSvc?.instanceConfig?.logos?.app || this.defaultLogo;
2819
+ }
2820
+ getDomainRedirectPath() {
2821
+ return this.getTenantConfig().redirectPath || this.environment?.redirectPath || this.defaultRedirectPath;
2822
+ }
2823
+ getDomainSitePath() {
2824
+ return this.getTenantConfig().sitePath || this.environment?.sitePath;
2825
+ }
2826
+ /** True when the current domain is the main KB portal (not a tenant portal) */
2827
+ isKbPortal() {
2828
+ return this.environment?.sitePath === this.getDomainSitePath();
2829
+ }
2830
+ getNonLoggedInPageUrl() {
2831
+ return this.getTenantConfig().karmayogiBharatLink
2832
+ || this.environment?.karmayogiBharatLink
2833
+ || 'https://igotkarmayogi.gov.in/';
2834
+ }
2835
+ /** Returns the resolved tenant config data (logo, redirectPath, cdnContentHost, etc.) */
2836
+ getDomainData() {
2837
+ return this.getTenantConfig();
2838
+ }
2839
+ // ── 4. Global config accessors (from assets/configurations/global-config.json) ─
2840
+ //
2841
+ // These read from configSvc.globalConfig which is loaded by InitService
2842
+ // at startup from the static JSON file.
2843
+ /** Returns the entire globalConfig object */
2844
+ getGlobalConfig() {
2845
+ return this.configSvc.globalConfig || {};
2846
+ }
2847
+ /**
2848
+ * Single method to check if a specific element is enabled in a given section of globalConfig.
2849
+ *
2850
+ * Usage:
2851
+ * domainConfSvc.isConfigEnabled('components.header', 'notification')
2852
+ * domainConfSvc.isConfigEnabled('components.footer', 'downloadApp')
2853
+ * domainConfSvc.isConfigEnabled('featureFlags', 'chatbot')
2854
+ *
2855
+ * @param sectionKey - dot-notation path to the section (e.g. 'components.header', 'featureFlags')
2856
+ * @param elementKey - the property name within that section (e.g. 'notification', 'language')
2857
+ * @returns true if the value is not explicitly false; defaults to true when not specified
2858
+ */
2859
+ isConfigEnabled(sectionKey, elementKey) {
2860
+ const config = this.getGlobalConfig();
2861
+ const section = sectionKey.split('.').reduce((obj, key) => obj?.[key], config);
2862
+ if (!section || section[elementKey] === undefined) {
2863
+ return true;
2864
+ }
2865
+ return section[elementKey] !== false;
2866
+ }
2867
+ // ── 5. Search Categories config ────────────────────────────────────────────
2868
+ /**
2869
+ * Returns the searchCategories config from globalConfig.components.searchCategories.
2870
+ * Returns null if not configured.
2871
+ */
2872
+ getSearchCategoriesConfig() {
2873
+ return this.getGlobalConfig()?.components?.searchCategories || null;
2874
+ }
2875
+ /**
2876
+ * Checks if the search categories feature is enabled overall.
2877
+ * Defaults to true when not configured.
2878
+ */
2879
+ isSearchCategoriesEnabled() {
2880
+ const config = this.getSearchCategoriesConfig();
2881
+ if (!config) {
2882
+ return true;
2883
+ }
2884
+ return config.enabled !== false;
2885
+ }
2886
+ /**
2887
+ * Checks if a specific search category is enabled.
2888
+ * Defaults to true when not configured or when the category key is not specified.
2889
+ *
2890
+ * @param categoryValue - the category value (e.g. 'courses', 'events', 'peoples', 'all')
2891
+ */
2892
+ isSearchCategoryEnabled(categoryValue) {
2893
+ const config = this.getSearchCategoriesConfig();
2894
+ if (!config) {
2895
+ return true;
2896
+ }
2897
+ const key = categoryValue || 'all';
2898
+ return config[key] !== false;
2899
+ }
2900
+ // ── 6. Feature API config accessors ────────────────────────────────────────
2901
+ /**
2902
+ * Generic method to get an API URL from globalConfig.apis section.
2903
+ * Returns the configured URL only if enabled is true.
2904
+ * Returns empty string if the API is disabled (enabled: false).
2905
+ * Falls back to defaultUrl if not configured in global-config.json.
2906
+ *
2907
+ * Usage:
2908
+ * domainConfSvc.getApiUrl('search', 'searchV4', '/apis/proxies/v8/sunbirdigot/v4/search')
2909
+ * domainConfSvc.getApiUrl('search', 'volunteerSearch', '/apis/proxies/v8/sunbirdigot/v4/search')
2910
+ * domainConfSvc.getApiUrl('user', 'profile', '/apis/proxies/v8/api/user/v2/read')
2911
+ * domainConfSvc.getApiUrl('content', 'explore', '/api/course/v1/explore')
2912
+ *
2913
+ * @param service - the service group key (e.g. 'search', 'user', 'content')
2914
+ * @param apiKey - the specific API key within the service group
2915
+ * @param defaultUrl - fallback URL if not found in config
2916
+ * @returns API URL if enabled, empty string if disabled, defaultUrl if not configured
2917
+ */
2918
+ getApiUrl(service, apiKey, defaultUrl = '') {
2919
+ const apis = this.getGlobalConfig()?.apis;
2920
+ const apiConfig = apis?.[service]?.[apiKey];
2921
+ // If not configured in global-config.json, return defaultUrl
2922
+ if (!apiConfig) {
2923
+ return defaultUrl;
2924
+ }
2925
+ // Legacy support: if apiConfig is a string, return it directly
2926
+ if (typeof apiConfig === 'string') {
2927
+ return apiConfig;
2928
+ }
2929
+ // New format: check enabled flag
2930
+ // If enabled is false, return empty string (API is disabled)
2931
+ if (apiConfig.enabled === false) {
2932
+ return '';
2933
+ }
2934
+ // If enabled is true or not specified, return the URL
2935
+ return apiConfig.url || defaultUrl;
2936
+ }
2937
+ /**
2938
+ * Checks if a specific API is enabled in globalConfig.apis.
2939
+ * Returns true if the API is enabled or not configured.
2940
+ * Returns false if explicitly disabled (enabled: false).
2941
+ *
2942
+ * @param service - the service group key (e.g. 'search', 'user', 'content')
2943
+ * @param apiKey - the specific API key within the service group
2944
+ * @returns true if enabled, false if disabled
2945
+ */
2946
+ isApiEnabled(service, apiKey) {
2947
+ const apis = this.getGlobalConfig()?.apis;
2948
+ const apiConfig = apis?.[service]?.[apiKey];
2949
+ // If not configured, assume enabled
2950
+ if (!apiConfig) {
2951
+ return true;
2952
+ }
2953
+ // Legacy support: if apiConfig is a string, it's enabled
2954
+ if (typeof apiConfig === 'string') {
2955
+ return true;
2956
+ }
2957
+ // New format: check enabled flag (default to true if not specified)
2958
+ return apiConfig.enabled !== false;
2959
+ }
2960
+ /**
2961
+ * Generic accessor for any feature config under globalConfig.features.
2962
+ * @param featureKey - the key under features (e.g. 'volunteerSearch', 'home', 'explore')
2963
+ */
2964
+ getFeatureConfig(featureKey) {
2965
+ return this.getGlobalConfig()?.features?.[featureKey] || null;
2966
+ }
2967
+ /**
2968
+ * Checks if a feature is enabled in globalConfig.features.<featureKey>.enabled.
2969
+ * Defaults to true when not configured.
2970
+ */
2971
+ isGlobalFeatureEnabled(featureKey) {
2972
+ const config = this.getFeatureConfig(featureKey);
2973
+ if (!config) {
2974
+ return true;
2975
+ }
2976
+ return config.enabled !== false;
2977
+ }
2978
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: DomainConfService, deps: [{ token: ConfigurationsService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
2979
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: DomainConfService, providedIn: 'root' }); }
2980
+ }
2981
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: DomainConfService, decorators: [{
2982
+ type: Injectable,
2983
+ args: [{
2984
+ providedIn: 'root',
2985
+ }]
2986
+ }], ctorParameters: () => [{ type: ConfigurationsService }, { type: undefined, decorators: [{
2987
+ type: Inject,
2988
+ args: ['environment']
2989
+ }] }] });
2990
+
2991
+ // interface IParsedToken {
2992
+ // email?: string
2993
+ // encEmail?: string
2994
+ // name?: string
2995
+ // preferred_username?: string
2996
+ // }
2391
2997
  const storage = localStorage;
2392
2998
  const storageKey = 'kc';
2999
+ // const logoutRedirectUrl = ''
2393
3000
  class AuthKeycloakService {
2394
- constructor(http, configSvc, msAuthSvc, environment) {
3001
+ constructor(http, configSvc,
3002
+ // private keycloakSvc: KeycloakService,
3003
+ msAuthSvc, domainConf, environment) {
2395
3004
  this.http = http;
2396
3005
  this.configSvc = configSvc;
2397
3006
  this.msAuthSvc = msAuthSvc;
3007
+ this.domainConf = domainConf;
2398
3008
  this.loginChangeSubject = new ReplaySubject(1);
2399
3009
  this.loginChangeSubject.subscribe((isLoggedIn) => {
2400
3010
  this.configSvc.isAuthenticated = isLoggedIn;
@@ -2410,9 +3020,48 @@ class AuthKeycloakService {
2410
3020
  });
2411
3021
  this.environment = environment;
2412
3022
  }
3023
+ // Getters
2413
3024
  get isLoggedIn$() {
2414
3025
  return this.loginChangeSubject.asObservable();
2415
3026
  }
3027
+ // get isLoggedIn(): Promise<boolean> {
3028
+ // return this.keycloakSvc.isLoggedIn()
3029
+ // }
3030
+ // get isAuthenticated(): boolean | undefined {
3031
+ // return this.keycloakSvc.getKeycloakInstance().authenticated
3032
+ // }
3033
+ // get token(): string | undefined {
3034
+ // return this.keycloakSvc.getKeycloakInstance().token
3035
+ // }
3036
+ // get sessionId(): string | undefined {
3037
+ // return this.keycloakSvc.getKeycloakInstance().sessionId
3038
+ // }
3039
+ // get userId(): string | undefined {
3040
+ // const kc = this.keycloakSvc.getKeycloakInstance()
3041
+ // if (!kc) {
3042
+ // return
3043
+ // }
3044
+ // return (kc.tokenParsed && kc.tokenParsed.sub) || (kc.idTokenParsed && kc.idTokenParsed.sub)
3045
+ // }
3046
+ // get userEmail(): string | undefined {
3047
+ // const kc = this.keycloakSvc.getKeycloakInstance()
3048
+ // const tokenParsed = kc.tokenParsed as IParsedToken
3049
+ // const idTokenParsed = kc.idTokenParsed as IParsedToken
3050
+ // return (
3051
+ // (tokenParsed && tokenParsed.email) ||
3052
+ // (idTokenParsed && idTokenParsed.email) ||
3053
+ // (idTokenParsed && idTokenParsed.encEmail) ||
3054
+ // (tokenParsed && tokenParsed.preferred_username) ||
3055
+ // (idTokenParsed && idTokenParsed.preferred_username)
3056
+ // )
3057
+ // }
3058
+ // get userName(): string | undefined {
3059
+ // const kc = this.keycloakSvc.getKeycloakInstance()
3060
+ // return (
3061
+ // (kc.tokenParsed && (kc.tokenParsed as IParsedToken).name) ||
3062
+ // (kc.idTokenParsed && (kc.idTokenParsed as IParsedToken).name)
3063
+ // )
3064
+ // }
2416
3065
  async initAuth() {
2417
3066
  if (!this.configSvc.instanceConfig) {
2418
3067
  return false;
@@ -2424,12 +3073,36 @@ class AuthKeycloakService {
2424
3073
  try {
2425
3074
  this.setupGlobalAuthResponder();
2426
3075
  this.addKeycloakEventListener();
3076
+ // return await this.keycloakSvc.init({
3077
+ // config: {
3078
+ // url: instanceConfig.keycloak.url,
3079
+ // realm: instanceConfig.keycloak.realm,
3080
+ // clientId: instanceConfig.keycloak.clientId,
3081
+ // },
3082
+ // initOptions: {
3083
+ // ...this.getSavedKcConfig(),
3084
+ // onLoad: instanceConfig.keycloak.onLoad || 'check-sso',
3085
+ // checkLoginIframe: false,
3086
+ // },
3087
+ // enableBearerInterceptor: true,
3088
+ // loadUserProfileAtStartUp: false,
3089
+ // bearerExcludedUrls: instanceConfig.keycloak.bearerExcludedUrls,
3090
+ // })
2427
3091
  return true;
2428
3092
  }
2429
3093
  catch (err) {
2430
3094
  return false;
2431
3095
  }
2432
3096
  }
3097
+ // login(
3098
+ // idpHint: 'E' | 'N' | 'S' = 'E',
3099
+ // redirectUrl: string = this.defaultRedirectUrl,
3100
+ // ): Promise<void> {
3101
+ // return this.keycloakSvc.login({
3102
+ // idpHint,
3103
+ // redirectUri: redirectUrl,
3104
+ // })
3105
+ // }
2433
3106
  loginV2(_idpHint = 'E', redirectUrl = this.defaultRedirectUrl) {
2434
3107
  if (this.configSvc.instanceConfig) {
2435
3108
  window.location.href = this.configSvc.instanceConfig.keycloak.url + redirectUrl;
@@ -2437,6 +3110,16 @@ class AuthKeycloakService {
2437
3110
  }
2438
3111
  return Promise.reject();
2439
3112
  }
3113
+ // register(
3114
+ // redirectUrl: string = this.defaultRedirectUrl,
3115
+ // ): Promise<void> {
3116
+ // return this.keycloakSvc.register({
3117
+ // redirectUri: redirectUrl,
3118
+ // })
3119
+ // }
3120
+ /**
3121
+ * @deprecated this will be depricated
3122
+ */
2440
3123
  async logout(redirectUrl = this.defaultRedirectUrl) {
2441
3124
  if (storage.getItem('telemetrySessionId')) {
2442
3125
  storage.removeItem('telemetrySessionId');
@@ -2448,15 +3131,29 @@ class AuthKeycloakService {
2448
3131
  catch {
2449
3132
  }
2450
3133
  storage.removeItem(storageKey);
3134
+ // alert(`${redirectUrl}apis/reset`)
2451
3135
  window.location.href = `${redirectUrl}apis/reset`;
3136
+ // window.location.href = 'http://localhost:3003/reset'
3137
+ // await this.http.get('/apis/reset').toPromise()
3138
+ // setTimeout(window.location.href = `${redirectUrl}apis/reset`, 13000)
3139
+ // logoutRedirectUrl = redirectUrl
3140
+ // if (this.msAuthSvc.isLogoutRequired) {
3141
+ // this.keycloakSvc.logout(this.msAuthSvc.logoutUrl(redirectUrl))
3142
+ // } else {
3143
+ // this.keycloakSvc.logout(redirectUrl)
3144
+ // }
2452
3145
  }
2453
3146
  async force_logout() {
2454
3147
  if (storage.getItem('telemetrySessionId')) {
2455
3148
  storage.removeItem('telemetrySessionId');
2456
3149
  }
2457
3150
  else {
3151
+ // window.location.href = '/public/home'
2458
3152
  storage.removeItem(storageKey);
2459
- window.location.href = `https://${this.environment.sitePath}/apis/reset`;
3153
+ // window.location.href = `${this.environment.staticHomePageUrl}`
3154
+ // await this.http.get(`https://${this.environment.sitePath}/apis/reset`).toPromise()
3155
+ // this.openInvisibleIframe(`https://${this.environment.sitePath}/apis/reset`)
3156
+ window.location.href = `https://${this.domainConf.getDomainSitePath()}/apis/reset`;
2460
3157
  await this.http.get('https://admin-test.ecornell.com/saml/logout.do').toPromise();
2461
3158
  }
2462
3159
  try {
@@ -2466,24 +3163,111 @@ class AuthKeycloakService {
2466
3163
  catch {
2467
3164
  }
2468
3165
  storage.removeItem(storageKey);
2469
- window.location.href = `https://${this.environment.sitePath}/apis/reset`;
3166
+ // window.location.href = `${this.environment.staticHomePageUrl}`
3167
+ //await this.http.get(`https://${this.environment.sitePath}/apis/reset`).toPromise()
3168
+ window.location.href = `https://${this.domainConf.getDomainSitePath()}/apis/reset`;
3169
+ // this.openInvisibleIframe(`https://${this.environment.sitePath}/apis/reset`)
3170
+ // window.location.href = `${this.environment.staticHomePageUrl}`
2470
3171
  await this.http.get('https://admin-test.ecornell.com/saml/logout.do').toPromise();
2471
3172
  }
2472
3173
  openInvisibleIframe(url) {
3174
+ // Create an iframe element
2473
3175
  const iframe = document.createElement('iframe');
2474
- iframe.src = url;
3176
+ // Set iframe attributes and make it invisible
3177
+ iframe.src = url; // The URL you want to load
2475
3178
  iframe.style.position = 'absolute';
2476
3179
  iframe.style.width = '0';
2477
3180
  iframe.style.height = '0';
2478
3181
  iframe.style.border = 'none';
2479
- iframe.style.visibility = 'hidden';
2480
- iframe.style.opacity = '0';
3182
+ iframe.style.visibility = 'hidden'; // Alternatively, use display: none
3183
+ iframe.style.opacity = '0'; // Make it invisible, while still loading content
3184
+ // Append the iframe to the body or any specific container element
2481
3185
  document.body.appendChild(iframe);
2482
3186
  }
2483
3187
  addKeycloakEventListener() {
3188
+ // this.keycloakSvc.keycloakEvents$.subscribe((event: KeycloakEvent) => {
3189
+ // switch (event.type) {
3190
+ // case KeycloakEventType.OnAuthError:
3191
+ // this.loginChangeSubject.next(false)
3192
+ // break
3193
+ // case KeycloakEventType.OnAuthLogout:
3194
+ // this.loginChangeSubject.next(false)
3195
+ // storage.removeItem(storageKey)
3196
+ // break
3197
+ // case KeycloakEventType.OnAuthRefreshError:
3198
+ // break
3199
+ // case KeycloakEventType.OnAuthRefreshSuccess:
3200
+ // break
3201
+ // case KeycloakEventType.OnAuthSuccess:
3202
+ // break
3203
+ // case KeycloakEventType.OnReady:
3204
+ // this.loginChangeSubject.next(event.args)
3205
+ // if (event.args) {
3206
+ // this.saveKeycloakConfig()
3207
+ // }
3208
+ // break
3209
+ // case KeycloakEventType.OnTokenExpired:
3210
+ // this.keycloakSvc.updateToken(60)
3211
+ // break
3212
+ // }
3213
+ // })
2484
3214
  }
2485
3215
  setupGlobalAuthResponder() {
2486
- }
3216
+ // fromEvent<MessageEvent>(window, 'message')
3217
+ // .pipe(
3218
+ // filter(
3219
+ // (event: MessageEvent) =>
3220
+ // Boolean(event) &&
3221
+ // Boolean(event.data) &&
3222
+ // event.data.type === 'AUTH_REQUEST' &&
3223
+ // Boolean(event.source && typeof event.source.postMessage === 'function'),
3224
+ // ),
3225
+ // )
3226
+ // .subscribe(async (event: MessageEvent) => {
3227
+ // const contentWindow = event.source as Window
3228
+ // const token = await this.keycloakSvc.getToken()
3229
+ // const response = {
3230
+ // app: 'WEB_PORTAL',
3231
+ // type: 'AUTH_RESPONSE',
3232
+ // state: 'NONE',
3233
+ // plugin: 'NONE',
3234
+ // data: {
3235
+ // token,
3236
+ // id: event.data && event.data.data && event.data.data.id,
3237
+ // },
3238
+ // }
3239
+ // contentWindow.postMessage(response, '*')
3240
+ // })
3241
+ }
3242
+ // Utility Methods
3243
+ // private saveKeycloakConfig() {
3244
+ // // const kc = this.keycloakSvc.getKeycloakInstance()
3245
+ // // const kcInitOptions: KeycloakInitOptions = {
3246
+ // // idToken: kc.idToken,
3247
+ // // refreshToken: kc.refreshToken,
3248
+ // // timeSkew: kc.timeSkew,
3249
+ // // token: kc.token,
3250
+ // // }
3251
+ // // storage.setItem(storageKey, JSON.stringify(kcInitOptions))
3252
+ // }
3253
+ // private getSavedKcConfig(): KeycloakInitOptions {
3254
+ // try {
3255
+ // // const lastSaved = KEYCLOAK_STORAGE.getItem(key);
3256
+ // const lastSaved = storage.getItem(storageKey)
3257
+ // if (lastSaved) {
3258
+ // const processed = JSON.parse(lastSaved)
3259
+ // if (
3260
+ // 'idToken' in processed &&
3261
+ // 'refreshToken' in processed &&
3262
+ // 'timeSkew' in processed &&
3263
+ // 'token' in processed
3264
+ // ) {
3265
+ // return processed
3266
+ // }
3267
+ // }
3268
+ // } catch (e) { }
3269
+ // return {}
3270
+ // }
2487
3271
  get defaultRedirectUrl() {
2488
3272
  try {
2489
3273
  const baseUrl = document.baseURI;
@@ -2493,18 +3277,18 @@ class AuthKeycloakService {
2493
3277
  return location.origin;
2494
3278
  }
2495
3279
  }
2496
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthKeycloakService, deps: [{ token: i1$2.HttpClient }, { token: ConfigurationsService }, { token: AuthMicrosoftService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
2497
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthKeycloakService, providedIn: 'root' }); }
3280
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: AuthKeycloakService, deps: [{ token: i1.HttpClient }, { token: ConfigurationsService }, { token: AuthMicrosoftService }, { token: DomainConfService }, { token: 'environment' }], target: i0.ɵɵFactoryTarget.Injectable }); }
3281
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: AuthKeycloakService, providedIn: 'root' }); }
2498
3282
  }
2499
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthKeycloakService, decorators: [{
3283
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: AuthKeycloakService, decorators: [{
2500
3284
  type: Injectable,
2501
3285
  args: [{
2502
3286
  providedIn: 'root',
2503
3287
  }]
2504
- }], ctorParameters: function () { return [{ type: i1$2.HttpClient }, { type: ConfigurationsService }, { type: AuthMicrosoftService }, { type: undefined, decorators: [{
3288
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: ConfigurationsService }, { type: AuthMicrosoftService }, { type: DomainConfService }, { type: undefined, decorators: [{
2505
3289
  type: Inject,
2506
3290
  args: ['environment']
2507
- }] }]; } });
3291
+ }] }] });
2508
3292
 
2509
3293
  class LogoutComponent {
2510
3294
  constructor(dialogRef, authSvc, configSvc, utilitySvc, translate) {
@@ -2518,6 +3302,8 @@ class LogoutComponent {
2518
3302
  this.isDownloadableAndroid = false;
2519
3303
  if (localStorage.getItem('websiteLanguage')) {
2520
3304
  this.translate.setDefaultLang('en');
3305
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3306
+ // tslint:disable-next-line: no-non-null-assertion
2521
3307
  const lang = localStorage.getItem('websiteLanguage') || null;
2522
3308
  this.translate.use(lang);
2523
3309
  }
@@ -2543,6 +3329,8 @@ class LogoutComponent {
2543
3329
  if (localStorage.getItem('websiteLanguage')) {
2544
3330
  localStorage.removeItem('websiteLanguage');
2545
3331
  }
3332
+ // this.authSvc.logout()
3333
+ this.clearCookies();
2546
3334
  this.authSvc.force_logout();
2547
3335
  if (localStorage.getItem('faq')) {
2548
3336
  localStorage.removeItem('faq');
@@ -2556,10 +3344,57 @@ class LogoutComponent {
2556
3344
  if (localStorage.getItem('motivationalMessage')) {
2557
3345
  localStorage.removeItem('motivationalMessage');
2558
3346
  }
2559
- if (localStorage.getItem('canShowCustomAttrPopup')) {
2560
- localStorage.removeItem('canShowCustomAttrPopup');
3347
+ if (localStorage.getItem('microSiteRedirectionData')) {
3348
+ localStorage.removeItem('microSiteRedirectionData');
2561
3349
  }
2562
3350
  }
3351
+ clearCookies() {
3352
+ if (!document) {
3353
+ // document not available in some environments; do not break logout
3354
+ // eslint-disable-next-line no-console
3355
+ console.warn('Document is not available; skipping cookie clear');
3356
+ return;
3357
+ }
3358
+ if (!document.cookie) {
3359
+ // no cookies to clear; silently continue so logout isn't blocked
3360
+ return;
3361
+ }
3362
+ const cookies = document.cookie.split(';');
3363
+ const hostname = window.location.hostname || '';
3364
+ const domainParts = hostname.split('.');
3365
+ const expire = 'Thu, 01 Jan 1970 00:00:00 GMT';
3366
+ cookies.forEach((c) => {
3367
+ try {
3368
+ const eqPos = c.indexOf('=');
3369
+ const name = eqPos > -1 ? c.substr(0, eqPos).trim() : c.trim();
3370
+ if (!name) {
3371
+ return;
3372
+ }
3373
+ // delete for path /
3374
+ try {
3375
+ document.cookie = `${name}=;expires=${expire};path=/`;
3376
+ }
3377
+ catch (e) {
3378
+ // ignore and continue
3379
+ }
3380
+ // attempt deleting for parent domains as well
3381
+ for (let i = 0; i < domainParts.length; i++) {
3382
+ const domain = domainParts.slice(i).join('.');
3383
+ try {
3384
+ document.cookie = `${name}=;expires=${expire};path=/;domain=${domain}`;
3385
+ }
3386
+ catch (err) {
3387
+ // ignore domain-specific failures and continue
3388
+ }
3389
+ }
3390
+ }
3391
+ catch (err) {
3392
+ // ignore per-cookie parsing errors and continue
3393
+ // eslint-disable-next-line no-console
3394
+ console.warn('Error clearing cookie', c, err);
3395
+ }
3396
+ });
3397
+ }
2563
3398
  get isDownloadable() {
2564
3399
  if (this.configSvc.instanceConfig && this.configSvc.instanceConfig.isContentDownloadAvailable &&
2565
3400
  (this.utilitySvc.iOsAppRef || this.utilitySvc.isAndroidApp)) {
@@ -2567,33 +3402,33 @@ class LogoutComponent {
2567
3402
  }
2568
3403
  return false;
2569
3404
  }
2570
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LogoutComponent, deps: [{ token: i1$1.MatLegacyDialogRef }, { token: AuthKeycloakService }, { token: ConfigurationsService }, { token: UtilityService }, { token: i5.TranslateService }], target: i0.ɵɵFactoryTarget.Component }); }
2571
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: LogoutComponent, selector: "ws-utils-logout", ngImport: i0, template: "<h1 mat-dialog-title i18n>{{'utilslogout.logoutNow' | translate}}</h1>\r\n<div class=\"ws-mat-primary-text text-base pb-2 title-text\" *ngIf=\"isDownloadable\" i18n>\r\n {{'utilslogout.logoutNote' | translate}}\r\n</div>\r\n<div mat-dialog-content class=\"text-base hide-overflow\" i18n>\r\n {{'utilslogout.logoutConfirm' | translate}}\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 {{'utilslogout.logoutYes' | translate}}\r\n </button>\r\n <button mat-button class=\"margin-right-xs\" mat-dialog-close cdkFocusInitial i18n>\r\n {{'utilslogout.logoutNo' | translate}}\r\n </button>\r\n</div>\r\n", styles: [".hide-overflow{overflow:hidden}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i8.MatLegacyButton, 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"] }, { kind: "directive", type: i1$1.MatLegacyDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i1$1.MatLegacyDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$1.MatLegacyDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i1$1.MatLegacyDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }] }); }
3405
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: LogoutComponent, deps: [{ token: i1$2.MatDialogRef }, { token: AuthKeycloakService }, { token: ConfigurationsService }, { token: UtilityService }, { token: i5.TranslateService }], target: i0.ɵɵFactoryTarget.Component }); }
3406
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.23", type: LogoutComponent, isStandalone: false, selector: "ws-utils-logout", ngImport: i0, template: "<h1 mat-dialog-title i18n>{{'utilslogout.logoutNow' | translate}}</h1>\r\n<div class=\"ws-mat-primary-text text-base pb-2 title-text\" *ngIf=\"isDownloadable\" i18n>\r\n {{'utilslogout.logoutNote' | translate}}\r\n</div>\r\n<div mat-dialog-content class=\"text-base hide-overflow\" i18n>\r\n {{'utilslogout.logoutConfirm' | translate}}\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 {{'utilslogout.logoutYes' | translate}}\r\n </button>\r\n <button mat-button class=\"margin-right-xs\" mat-dialog-close cdkFocusInitial i18n>\r\n {{'utilslogout.logoutNo' | translate}}\r\n </button>\r\n</div>\r\n", styles: [".hide-overflow{overflow:hidden}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i8.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: i1$2.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i1$2.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$2.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }] }); }
2572
3407
  }
2573
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LogoutComponent, decorators: [{
3408
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: LogoutComponent, decorators: [{
2574
3409
  type: Component,
2575
- args: [{ selector: 'ws-utils-logout', template: "<h1 mat-dialog-title i18n>{{'utilslogout.logoutNow' | translate}}</h1>\r\n<div class=\"ws-mat-primary-text text-base pb-2 title-text\" *ngIf=\"isDownloadable\" i18n>\r\n {{'utilslogout.logoutNote' | translate}}\r\n</div>\r\n<div mat-dialog-content class=\"text-base hide-overflow\" i18n>\r\n {{'utilslogout.logoutConfirm' | translate}}\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 {{'utilslogout.logoutYes' | translate}}\r\n </button>\r\n <button mat-button class=\"margin-right-xs\" mat-dialog-close cdkFocusInitial i18n>\r\n {{'utilslogout.logoutNo' | translate}}\r\n </button>\r\n</div>\r\n", styles: [".hide-overflow{overflow:hidden}\n"] }]
2576
- }], ctorParameters: function () { return [{ type: i1$1.MatLegacyDialogRef }, { type: AuthKeycloakService }, { type: ConfigurationsService }, { type: UtilityService }, { type: i5.TranslateService }]; } });
3410
+ args: [{ selector: 'ws-utils-logout', standalone: false, template: "<h1 mat-dialog-title i18n>{{'utilslogout.logoutNow' | translate}}</h1>\r\n<div class=\"ws-mat-primary-text text-base pb-2 title-text\" *ngIf=\"isDownloadable\" i18n>\r\n {{'utilslogout.logoutNote' | translate}}\r\n</div>\r\n<div mat-dialog-content class=\"text-base hide-overflow\" i18n>\r\n {{'utilslogout.logoutConfirm' | translate}}\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 {{'utilslogout.logoutYes' | translate}}\r\n </button>\r\n <button mat-button class=\"margin-right-xs\" mat-dialog-close cdkFocusInitial i18n>\r\n {{'utilslogout.logoutNo' | translate}}\r\n </button>\r\n</div>\r\n", styles: [".hide-overflow{overflow:hidden}\n"] }]
3411
+ }], ctorParameters: () => [{ type: i1$2.MatDialogRef }, { type: AuthKeycloakService }, { type: ConfigurationsService }, { type: UtilityService }, { type: i5.TranslateService }] });
2577
3412
 
2578
3413
  class LogoutModule {
2579
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LogoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2580
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: LogoutModule, declarations: [LogoutComponent], imports: [CommonModule,
2581
- MatLegacyButtonModule,
2582
- MatLegacyDialogModule,
3414
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: LogoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3415
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: LogoutModule, declarations: [LogoutComponent], imports: [CommonModule,
3416
+ MatButtonModule,
3417
+ MatDialogModule,
2583
3418
  TranslateModule] }); }
2584
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LogoutModule, imports: [CommonModule,
2585
- MatLegacyButtonModule,
2586
- MatLegacyDialogModule,
3419
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: LogoutModule, imports: [CommonModule,
3420
+ MatButtonModule,
3421
+ MatDialogModule,
2587
3422
  TranslateModule] }); }
2588
3423
  }
2589
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LogoutModule, decorators: [{
3424
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: LogoutModule, decorators: [{
2590
3425
  type: NgModule,
2591
3426
  args: [{
2592
3427
  declarations: [LogoutComponent],
2593
3428
  imports: [
2594
3429
  CommonModule,
2595
- MatLegacyButtonModule,
2596
- MatLegacyDialogModule,
3430
+ MatButtonModule,
3431
+ MatDialogModule,
2597
3432
  TranslateModule,
2598
3433
  ]
2599
3434
  }]
@@ -2644,22 +3479,23 @@ class PipeConciseDateRangePipe {
2644
3479
  return `${dateRange.fromDate} - ${dateRange.toDate}`;
2645
3480
  }
2646
3481
  }
2647
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeConciseDateRangePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
2648
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeConciseDateRangePipe, name: "pipeConciseDateRange" }); }
3482
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeConciseDateRangePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
3483
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeConciseDateRangePipe, isStandalone: false, name: "pipeConciseDateRange" }); }
2649
3484
  }
2650
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeConciseDateRangePipe, decorators: [{
3485
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeConciseDateRangePipe, decorators: [{
2651
3486
  type: Pipe,
2652
3487
  args: [{
2653
3488
  name: 'pipeConciseDateRange',
3489
+ standalone: false
2654
3490
  }]
2655
3491
  }] });
2656
3492
 
2657
3493
  class PipeConciseDateRangeModule {
2658
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeConciseDateRangeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2659
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeConciseDateRangeModule, declarations: [PipeConciseDateRangePipe], imports: [CommonModule], exports: [PipeConciseDateRangePipe] }); }
2660
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeConciseDateRangeModule, imports: [CommonModule] }); }
3494
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeConciseDateRangeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3495
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeConciseDateRangeModule, declarations: [PipeConciseDateRangePipe], imports: [CommonModule], exports: [PipeConciseDateRangePipe] }); }
3496
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeConciseDateRangeModule, imports: [CommonModule] }); }
2661
3497
  }
2662
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeConciseDateRangeModule, decorators: [{
3498
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeConciseDateRangeModule, decorators: [{
2663
3499
  type: NgModule,
2664
3500
  args: [{
2665
3501
  declarations: [PipeConciseDateRangePipe],
@@ -2693,22 +3529,23 @@ class PipeCountTransformPipe {
2693
3529
  }
2694
3530
  return '0';
2695
3531
  }
2696
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeCountTransformPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
2697
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeCountTransformPipe, name: "pipeCountTransform" }); }
3532
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeCountTransformPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
3533
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeCountTransformPipe, isStandalone: false, name: "pipeCountTransform" }); }
2698
3534
  }
2699
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeCountTransformPipe, decorators: [{
3535
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeCountTransformPipe, decorators: [{
2700
3536
  type: Pipe,
2701
3537
  args: [{
2702
3538
  name: 'pipeCountTransform',
3539
+ standalone: false
2703
3540
  }]
2704
3541
  }] });
2705
3542
 
2706
3543
  class PipeCountTransformModule {
2707
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeCountTransformModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2708
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeCountTransformModule, declarations: [PipeCountTransformPipe], imports: [CommonModule], exports: [PipeCountTransformPipe] }); }
2709
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeCountTransformModule, imports: [CommonModule] }); }
3544
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeCountTransformModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3545
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeCountTransformModule, declarations: [PipeCountTransformPipe], imports: [CommonModule], exports: [PipeCountTransformPipe] }); }
3546
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeCountTransformModule, imports: [CommonModule] }); }
2710
3547
  }
2711
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeCountTransformModule, decorators: [{
3548
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeCountTransformModule, decorators: [{
2712
3549
  type: NgModule,
2713
3550
  args: [{
2714
3551
  declarations: [PipeCountTransformPipe],
@@ -2743,22 +3580,23 @@ class PipeDateConcatPipe {
2743
3580
  }
2744
3581
  return dateStr;
2745
3582
  }
2746
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeDateConcatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
2747
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeDateConcatPipe, name: "pipeDateConcat" }); }
3583
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeDateConcatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
3584
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeDateConcatPipe, isStandalone: false, name: "pipeDateConcat" }); }
2748
3585
  }
2749
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeDateConcatPipe, decorators: [{
3586
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeDateConcatPipe, decorators: [{
2750
3587
  type: Pipe,
2751
3588
  args: [{
2752
3589
  name: 'pipeDateConcat',
3590
+ standalone: false
2753
3591
  }]
2754
- }], ctorParameters: function () { return []; } });
3592
+ }], ctorParameters: () => [] });
2755
3593
 
2756
3594
  class PipeDateConcatModule {
2757
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeDateConcatModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2758
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeDateConcatModule, declarations: [PipeDateConcatPipe], imports: [CommonModule], exports: [PipeDateConcatPipe] }); }
2759
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeDateConcatModule, imports: [CommonModule] }); }
3595
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeDateConcatModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3596
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeDateConcatModule, declarations: [PipeDateConcatPipe], imports: [CommonModule], exports: [PipeDateConcatPipe] }); }
3597
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeDateConcatModule, imports: [CommonModule] }); }
2760
3598
  }
2761
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeDateConcatModule, decorators: [{
3599
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeDateConcatModule, decorators: [{
2762
3600
  type: NgModule,
2763
3601
  args: [{
2764
3602
  declarations: [PipeDateConcatPipe],
@@ -2784,10 +3622,11 @@ class PipeDurationTransformPipe {
2784
3622
  case 'hms':
2785
3623
  return this.hmsCalculation(h, m, s, duration, type);
2786
3624
  case 'hms2H':
3625
+ /**to Print HH:mm:ss */
2787
3626
  const duration2 = moment.duration(data, 'seconds');
2788
3627
  const resultstring = moment.utc(duration2.asMilliseconds()).format('HH:mm:ss');
2789
3628
  return resultstring;
2790
- case 'hms2M':
3629
+ case 'hms2M': /**to Print mm:ss */
2791
3630
  const duration2H = moment.duration(data, 'seconds');
2792
3631
  const resultstring2H = moment.utc(duration2H.asMilliseconds()).format('mm:ss');
2793
3632
  return resultstring2H;
@@ -2842,22 +3681,23 @@ class PipeDurationTransformPipe {
2842
3681
  }
2843
3682
  return duration;
2844
3683
  }
2845
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeDurationTransformPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
2846
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeDurationTransformPipe, name: "pipeDurationTransform" }); }
3684
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeDurationTransformPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
3685
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeDurationTransformPipe, isStandalone: false, name: "pipeDurationTransform" }); }
2847
3686
  }
2848
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeDurationTransformPipe, decorators: [{
3687
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeDurationTransformPipe, decorators: [{
2849
3688
  type: Pipe,
2850
3689
  args: [{
2851
3690
  name: 'pipeDurationTransform',
3691
+ standalone: false
2852
3692
  }]
2853
3693
  }] });
2854
3694
 
2855
3695
  class PipeDurationTransformModule {
2856
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeDurationTransformModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2857
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeDurationTransformModule, declarations: [PipeDurationTransformPipe], imports: [CommonModule], exports: [PipeDurationTransformPipe] }); }
2858
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeDurationTransformModule, imports: [CommonModule] }); }
3696
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeDurationTransformModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3697
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeDurationTransformModule, declarations: [PipeDurationTransformPipe], imports: [CommonModule], exports: [PipeDurationTransformPipe] }); }
3698
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeDurationTransformModule, imports: [CommonModule] }); }
2859
3699
  }
2860
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeDurationTransformModule, decorators: [{
3700
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeDurationTransformModule, decorators: [{
2861
3701
  type: NgModule,
2862
3702
  args: [{
2863
3703
  declarations: [PipeDurationTransformPipe],
@@ -2872,22 +3712,23 @@ class PipeHtmlTagRemovalPipe {
2872
3712
  transform(htmlString) {
2873
3713
  return htmlString ? String(htmlString).replace(/<[^>]+>/gm, '') : '';
2874
3714
  }
2875
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeHtmlTagRemovalPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
2876
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeHtmlTagRemovalPipe, name: "pipeHtmlTagRemoval" }); }
3715
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeHtmlTagRemovalPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
3716
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeHtmlTagRemovalPipe, isStandalone: false, name: "pipeHtmlTagRemoval" }); }
2877
3717
  }
2878
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeHtmlTagRemovalPipe, decorators: [{
3718
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeHtmlTagRemovalPipe, decorators: [{
2879
3719
  type: Pipe,
2880
3720
  args: [{
2881
3721
  name: 'pipeHtmlTagRemoval',
3722
+ standalone: false
2882
3723
  }]
2883
3724
  }] });
2884
3725
 
2885
3726
  class PipeHtmlTagRemovalModule {
2886
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeHtmlTagRemovalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2887
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeHtmlTagRemovalModule, declarations: [PipeHtmlTagRemovalPipe], imports: [CommonModule], exports: [PipeHtmlTagRemovalPipe] }); }
2888
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeHtmlTagRemovalModule, imports: [CommonModule] }); }
3727
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeHtmlTagRemovalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3728
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeHtmlTagRemovalModule, declarations: [PipeHtmlTagRemovalPipe], imports: [CommonModule], exports: [PipeHtmlTagRemovalPipe] }); }
3729
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeHtmlTagRemovalModule, imports: [CommonModule] }); }
2889
3730
  }
2890
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeHtmlTagRemovalModule, decorators: [{
3731
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeHtmlTagRemovalModule, decorators: [{
2891
3732
  type: NgModule,
2892
3733
  args: [{
2893
3734
  declarations: [PipeHtmlTagRemovalPipe],
@@ -2906,22 +3747,23 @@ class PipeFilterPipe {
2906
3747
  return (value || []).filter((item) => keys.split(',')
2907
3748
  .some(key => item.hasOwnProperty(key) && new RegExp(`^${term}$`, 'gi').test(item[key])));
2908
3749
  }
2909
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
2910
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterPipe, name: "pipeFilter" }); }
3750
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeFilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
3751
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeFilterPipe, isStandalone: false, name: "pipeFilter" }); }
2911
3752
  }
2912
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterPipe, decorators: [{
3753
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeFilterPipe, decorators: [{
2913
3754
  type: Pipe,
2914
3755
  args: [{
2915
3756
  name: 'pipeFilter',
3757
+ standalone: false
2916
3758
  }]
2917
3759
  }] });
2918
3760
 
2919
3761
  class PipeFilterModule {
2920
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2921
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterModule, declarations: [PipeFilterPipe], imports: [CommonModule], exports: [PipeFilterPipe] }); }
2922
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterModule, imports: [CommonModule] }); }
3762
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeFilterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3763
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeFilterModule, declarations: [PipeFilterPipe], imports: [CommonModule], exports: [PipeFilterPipe] }); }
3764
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeFilterModule, imports: [CommonModule] }); }
2923
3765
  }
2924
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterModule, decorators: [{
3766
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeFilterModule, decorators: [{
2925
3767
  type: NgModule,
2926
3768
  args: [{
2927
3769
  declarations: [PipeFilterPipe],
@@ -2941,22 +3783,23 @@ class PipeOrdinalPipe {
2941
3783
  const v = value % 100;
2942
3784
  return value + (suffixes[(v - 20) % 10] || suffixes[v] || suffixes[0]);
2943
3785
  }
2944
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeOrdinalPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
2945
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeOrdinalPipe, name: "pipeOrdinal" }); }
3786
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeOrdinalPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
3787
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeOrdinalPipe, isStandalone: false, name: "pipeOrdinal" }); }
2946
3788
  }
2947
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeOrdinalPipe, decorators: [{
3789
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeOrdinalPipe, decorators: [{
2948
3790
  type: Pipe,
2949
3791
  args: [{
2950
3792
  name: 'pipeOrdinal',
3793
+ standalone: false
2951
3794
  }]
2952
3795
  }] });
2953
3796
 
2954
3797
  class PipeOrdinalModule {
2955
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeOrdinalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2956
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeOrdinalModule, declarations: [PipeOrdinalPipe], imports: [CommonModule], exports: [PipeOrdinalPipe] }); }
2957
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeOrdinalModule, imports: [CommonModule] }); }
3798
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeOrdinalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3799
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeOrdinalModule, declarations: [PipeOrdinalPipe], imports: [CommonModule], exports: [PipeOrdinalPipe] }); }
3800
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeOrdinalModule, imports: [CommonModule] }); }
2958
3801
  }
2959
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeOrdinalModule, decorators: [{
3802
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeOrdinalModule, decorators: [{
2960
3803
  type: NgModule,
2961
3804
  args: [{
2962
3805
  declarations: [PipeOrdinalPipe],
@@ -2971,22 +3814,23 @@ class PipeEmailPipe {
2971
3814
  transform(value) {
2972
3815
  return value.split('.').join('[dot]').replace('@', '[at]');
2973
3816
  }
2974
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeEmailPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
2975
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeEmailPipe, name: "pipeEmail" }); }
3817
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeEmailPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
3818
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeEmailPipe, isStandalone: false, name: "pipeEmail" }); }
2976
3819
  }
2977
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeEmailPipe, decorators: [{
3820
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeEmailPipe, decorators: [{
2978
3821
  type: Pipe,
2979
3822
  args: [{
2980
3823
  name: 'pipeEmail',
3824
+ standalone: false
2981
3825
  }]
2982
3826
  }] });
2983
3827
 
2984
3828
  class PipeEmailModule {
2985
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeEmailModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
2986
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeEmailModule, declarations: [PipeEmailPipe], imports: [CommonModule], exports: [PipeEmailPipe] }); }
2987
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeEmailModule, imports: [CommonModule] }); }
3829
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeEmailModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3830
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeEmailModule, declarations: [PipeEmailPipe], imports: [CommonModule], exports: [PipeEmailPipe] }); }
3831
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeEmailModule, imports: [CommonModule] }); }
2988
3832
  }
2989
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeEmailModule, decorators: [{
3833
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeEmailModule, decorators: [{
2990
3834
  type: NgModule,
2991
3835
  args: [{
2992
3836
  declarations: [PipeEmailPipe],
@@ -3010,22 +3854,23 @@ class PipeFilterV2Pipe {
3010
3854
  return `${it[key]} `.toLowerCase().includes(searchTextLowerCase);
3011
3855
  });
3012
3856
  }
3013
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterV2Pipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
3014
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterV2Pipe, name: "pipeFilterV2" }); }
3857
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeFilterV2Pipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
3858
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeFilterV2Pipe, isStandalone: false, name: "pipeFilterV2" }); }
3015
3859
  }
3016
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterV2Pipe, decorators: [{
3860
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeFilterV2Pipe, decorators: [{
3017
3861
  type: Pipe,
3018
3862
  args: [{
3019
3863
  name: 'pipeFilterV2',
3864
+ standalone: false
3020
3865
  }]
3021
3866
  }] });
3022
3867
 
3023
3868
  class PipeFilterV2Module {
3024
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterV2Module, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3025
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterV2Module, declarations: [PipeFilterV2Pipe], imports: [CommonModule], exports: [PipeFilterV2Pipe] }); }
3026
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterV2Module, imports: [CommonModule] }); }
3869
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeFilterV2Module, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3870
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeFilterV2Module, declarations: [PipeFilterV2Pipe], imports: [CommonModule], exports: [PipeFilterV2Pipe] }); }
3871
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeFilterV2Module, imports: [CommonModule] }); }
3027
3872
  }
3028
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterV2Module, decorators: [{
3873
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeFilterV2Module, decorators: [{
3029
3874
  type: NgModule,
3030
3875
  args: [{
3031
3876
  declarations: [PipeFilterV2Pipe],
@@ -3041,7 +3886,9 @@ class PipeFilterV3Pipe {
3041
3886
  if (filter && Array.isArray(items)) {
3042
3887
  const filterKeys = Object.keys(filter);
3043
3888
  if (isAnd) {
3044
- return items.filter(item => filterKeys.reduce((memo, keyName) => (memo && new RegExp(filter[keyName], 'gi').test(item[keyName])) || filter[keyName] === '', true));
3889
+ return items.filter(item => filterKeys.reduce((memo, keyName) =>
3890
+ // tslint:disable-next-line: align
3891
+ (memo && new RegExp(filter[keyName], 'gi').test(item[keyName])) || filter[keyName] === '', true));
3045
3892
  }
3046
3893
  return items.filter(item => {
3047
3894
  return filterKeys.some(keyName => {
@@ -3051,22 +3898,23 @@ class PipeFilterV3Pipe {
3051
3898
  }
3052
3899
  return items;
3053
3900
  }
3054
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterV3Pipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
3055
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterV3Pipe, name: "pipeFilterV3" }); }
3901
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeFilterV3Pipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
3902
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeFilterV3Pipe, isStandalone: false, name: "pipeFilterV3" }); }
3056
3903
  }
3057
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterV3Pipe, decorators: [{
3904
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeFilterV3Pipe, decorators: [{
3058
3905
  type: Pipe,
3059
3906
  args: [{
3060
3907
  name: 'pipeFilterV3',
3908
+ standalone: false
3061
3909
  }]
3062
3910
  }] });
3063
3911
 
3064
3912
  class PipeFilterV3Module {
3065
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterV3Module, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3066
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterV3Module, declarations: [PipeFilterV3Pipe], imports: [CommonModule], exports: [PipeFilterV3Pipe] }); }
3067
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterV3Module, imports: [CommonModule] }); }
3913
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeFilterV3Module, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3914
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeFilterV3Module, declarations: [PipeFilterV3Pipe], imports: [CommonModule], exports: [PipeFilterV3Pipe] }); }
3915
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeFilterV3Module, imports: [CommonModule] }); }
3068
3916
  }
3069
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterV3Module, decorators: [{
3917
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeFilterV3Module, decorators: [{
3070
3918
  type: NgModule,
3071
3919
  args: [{
3072
3920
  declarations: [PipeFilterV3Pipe],
@@ -3097,6 +3945,11 @@ class PipeFilterSearchPipe {
3097
3945
  if (it.fullName) {
3098
3946
  return it.fullName.toLowerCase().includes(searchTextLowerCase);
3099
3947
  }
3948
+ // keys.map((key: any) => {
3949
+ // console.log('key:', key)
3950
+ // console.log(`it['personalDetails'][key]`, it['personalDetails'][key])
3951
+ // return it['personalDetails'][key].toLowerCase().includes(searchTextLowerCase)
3952
+ // })
3100
3953
  });
3101
3954
  if (result && result.length <= 0) {
3102
3955
  return [-1];
@@ -3107,22 +3960,23 @@ class PipeFilterSearchPipe {
3107
3960
  return it.title.toLowerCase().includes(searchTextLowerCase);
3108
3961
  });
3109
3962
  }
3110
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterSearchPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
3111
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterSearchPipe, name: "pipeFilterSearch" }); }
3963
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeFilterSearchPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
3964
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeFilterSearchPipe, isStandalone: false, name: "pipeFilterSearch" }); }
3112
3965
  }
3113
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterSearchPipe, decorators: [{
3966
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeFilterSearchPipe, decorators: [{
3114
3967
  type: Pipe,
3115
3968
  args: [{
3116
3969
  name: 'pipeFilterSearch',
3970
+ standalone: false
3117
3971
  }]
3118
3972
  }] });
3119
3973
 
3120
3974
  class PipeFilterSearchModule {
3121
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterSearchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3122
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterSearchModule, declarations: [PipeFilterSearchPipe], imports: [CommonModule], exports: [PipeFilterSearchPipe] }); }
3123
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterSearchModule, imports: [CommonModule] }); }
3975
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeFilterSearchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3976
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeFilterSearchModule, declarations: [PipeFilterSearchPipe], imports: [CommonModule], exports: [PipeFilterSearchPipe] }); }
3977
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeFilterSearchModule, imports: [CommonModule] }); }
3124
3978
  }
3125
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeFilterSearchModule, decorators: [{
3979
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeFilterSearchModule, decorators: [{
3126
3980
  type: NgModule,
3127
3981
  args: [{
3128
3982
  declarations: [PipeFilterSearchPipe],
@@ -3141,23 +3995,25 @@ class PipeListFilterPipe {
3141
3995
  return (value || []).filter((item) => keys.split(',')
3142
3996
  .some(key => item.hasOwnProperty(key)
3143
3997
  && item[key] && (`${item[key]} `).toLocaleLowerCase().includes(term.toLocaleLowerCase())));
3998
+ // new RegExp(`^${term}$`, 'gi').test(item[key])
3144
3999
  }
3145
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeListFilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
3146
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeListFilterPipe, name: "pipeListFilter" }); }
4000
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeListFilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
4001
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeListFilterPipe, isStandalone: false, name: "pipeListFilter" }); }
3147
4002
  }
3148
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeListFilterPipe, decorators: [{
4003
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeListFilterPipe, decorators: [{
3149
4004
  type: Pipe,
3150
4005
  args: [{
3151
4006
  name: 'pipeListFilter',
4007
+ standalone: false
3152
4008
  }]
3153
4009
  }] });
3154
4010
 
3155
4011
  class PipeListFilterModule {
3156
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeListFilterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3157
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeListFilterModule, declarations: [PipeListFilterPipe], imports: [CommonModule], exports: [PipeListFilterPipe] }); }
3158
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeListFilterModule, imports: [CommonModule] }); }
4012
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeListFilterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
4013
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeListFilterModule, declarations: [PipeListFilterPipe], imports: [CommonModule], exports: [PipeListFilterPipe] }); }
4014
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeListFilterModule, imports: [CommonModule] }); }
3159
4015
  }
3160
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeListFilterModule, decorators: [{
4016
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeListFilterModule, decorators: [{
3161
4017
  type: NgModule,
3162
4018
  args: [{
3163
4019
  declarations: [PipeListFilterPipe],
@@ -3175,22 +4031,23 @@ class PipeRelativeTimePipe {
3175
4031
  }
3176
4032
  return moment().startOf('hour').fromNow();
3177
4033
  }
3178
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeRelativeTimePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
3179
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeRelativeTimePipe, name: "pipeRelativeTime" }); }
4034
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeRelativeTimePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
4035
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeRelativeTimePipe, isStandalone: false, name: "pipeRelativeTime" }); }
3180
4036
  }
3181
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeRelativeTimePipe, decorators: [{
4037
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeRelativeTimePipe, decorators: [{
3182
4038
  type: Pipe,
3183
4039
  args: [{
3184
4040
  name: 'pipeRelativeTime',
4041
+ standalone: false
3185
4042
  }]
3186
4043
  }] });
3187
4044
 
3188
4045
  class PipeRelativeTimeModule {
3189
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeRelativeTimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3190
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeRelativeTimeModule, declarations: [PipeRelativeTimePipe], imports: [CommonModule], exports: [PipeRelativeTimePipe] }); }
3191
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeRelativeTimeModule, imports: [CommonModule] }); }
4046
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeRelativeTimeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
4047
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeRelativeTimeModule, declarations: [PipeRelativeTimePipe], imports: [CommonModule], exports: [PipeRelativeTimePipe] }); }
4048
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeRelativeTimeModule, imports: [CommonModule] }); }
3192
4049
  }
3193
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeRelativeTimeModule, decorators: [{
4050
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeRelativeTimeModule, decorators: [{
3194
4051
  type: NgModule,
3195
4052
  args: [{
3196
4053
  declarations: [PipeRelativeTimePipe],
@@ -3205,22 +4062,23 @@ class OrderByPipe {
3205
4062
  constructor() {
3206
4063
  this.transform = orderBy;
3207
4064
  }
3208
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: OrderByPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
3209
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: OrderByPipe, name: "orderBy" }); }
4065
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: OrderByPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
4066
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: OrderByPipe, isStandalone: false, name: "orderBy" }); }
3210
4067
  }
3211
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: OrderByPipe, decorators: [{
4068
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: OrderByPipe, decorators: [{
3212
4069
  type: Pipe,
3213
4070
  args: [{
3214
4071
  name: 'orderBy',
4072
+ standalone: false
3215
4073
  }]
3216
4074
  }] });
3217
4075
 
3218
4076
  class PipeOrderByModule {
3219
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeOrderByModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3220
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeOrderByModule, declarations: [OrderByPipe], imports: [CommonModule], exports: [OrderByPipe] }); }
3221
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeOrderByModule, imports: [CommonModule] }); }
4077
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeOrderByModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
4078
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeOrderByModule, declarations: [OrderByPipe], imports: [CommonModule], exports: [OrderByPipe] }); }
4079
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeOrderByModule, imports: [CommonModule] }); }
3222
4080
  }
3223
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeOrderByModule, decorators: [{
4081
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeOrderByModule, decorators: [{
3224
4082
  type: NgModule,
3225
4083
  args: [{
3226
4084
  declarations: [OrderByPipe],
@@ -3248,22 +4106,23 @@ class PipeLimitToPipe {
3248
4106
  }
3249
4107
  return null;
3250
4108
  }
3251
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeLimitToPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
3252
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeLimitToPipe, name: "pipeLimitTo" }); }
4109
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeLimitToPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
4110
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeLimitToPipe, isStandalone: false, name: "pipeLimitTo" }); }
3253
4111
  }
3254
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeLimitToPipe, decorators: [{
4112
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeLimitToPipe, decorators: [{
3255
4113
  type: Pipe,
3256
4114
  args: [{
3257
4115
  name: 'pipeLimitTo',
4116
+ standalone: false
3258
4117
  }]
3259
4118
  }] });
3260
4119
 
3261
4120
  class PipeLimitToModule {
3262
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeLimitToModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3263
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeLimitToModule, declarations: [PipeLimitToPipe], imports: [CommonModule], exports: [PipeLimitToPipe] }); }
3264
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeLimitToModule, imports: [CommonModule] }); }
4121
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeLimitToModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
4122
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeLimitToModule, declarations: [PipeLimitToPipe], imports: [CommonModule], exports: [PipeLimitToPipe] }); }
4123
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeLimitToModule, imports: [CommonModule] }); }
3265
4124
  }
3266
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeLimitToModule, decorators: [{
4125
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeLimitToModule, decorators: [{
3267
4126
  type: NgModule,
3268
4127
  args: [{
3269
4128
  declarations: [PipeLimitToPipe],
@@ -3280,6 +4139,9 @@ class PipeNameTransformPipe {
3280
4139
  if (value.firstName) {
3281
4140
  result += value.firstName;
3282
4141
  }
4142
+ // if (value.lastName && value.lastName !== value.firstName) {
4143
+ // result += ` ${value.lastName}`
4144
+ // }
3283
4145
  if (result.trim() !== '') {
3284
4146
  return result;
3285
4147
  }
@@ -3288,22 +4150,23 @@ class PipeNameTransformPipe {
3288
4150
  }
3289
4151
  return 'Anonymous User';
3290
4152
  }
3291
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeNameTransformPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
3292
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeNameTransformPipe, name: "pipeNameTransform" }); }
4153
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeNameTransformPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
4154
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeNameTransformPipe, isStandalone: false, name: "pipeNameTransform" }); }
3293
4155
  }
3294
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeNameTransformPipe, decorators: [{
4156
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeNameTransformPipe, decorators: [{
3295
4157
  type: Pipe,
3296
4158
  args: [{
3297
4159
  name: 'pipeNameTransform',
4160
+ standalone: false
3298
4161
  }]
3299
4162
  }] });
3300
4163
 
3301
4164
  class PipeNameTransformModule {
3302
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeNameTransformModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3303
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeNameTransformModule, declarations: [PipeNameTransformPipe], imports: [CommonModule], exports: [PipeNameTransformPipe] }); }
3304
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeNameTransformModule, imports: [CommonModule] }); }
4165
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeNameTransformModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
4166
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeNameTransformModule, declarations: [PipeNameTransformPipe], imports: [CommonModule], exports: [PipeNameTransformPipe] }); }
4167
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeNameTransformModule, imports: [CommonModule] }); }
3305
4168
  }
3306
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeNameTransformModule, decorators: [{
4169
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeNameTransformModule, decorators: [{
3307
4170
  type: NgModule,
3308
4171
  args: [{
3309
4172
  declarations: [PipeNameTransformPipe],
@@ -3324,22 +4187,23 @@ class PipePartialContentPipe {
3324
4187
  }
3325
4188
  return result;
3326
4189
  }
3327
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipePartialContentPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
3328
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipePartialContentPipe, name: "pipePartialContent" }); }
4190
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipePartialContentPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
4191
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipePartialContentPipe, isStandalone: false, name: "pipePartialContent" }); }
3329
4192
  }
3330
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipePartialContentPipe, decorators: [{
4193
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipePartialContentPipe, decorators: [{
3331
4194
  type: Pipe,
3332
4195
  args: [{
3333
4196
  name: 'pipePartialContent',
4197
+ standalone: false
3334
4198
  }]
3335
4199
  }] });
3336
4200
 
3337
4201
  class PipePartialContentModule {
3338
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipePartialContentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3339
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipePartialContentModule, declarations: [PipePartialContentPipe], imports: [CommonModule], exports: [PipePartialContentPipe] }); }
3340
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipePartialContentModule, imports: [CommonModule] }); }
4202
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipePartialContentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
4203
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipePartialContentModule, declarations: [PipePartialContentPipe], imports: [CommonModule], exports: [PipePartialContentPipe] }); }
4204
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipePartialContentModule, imports: [CommonModule] }); }
3341
4205
  }
3342
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipePartialContentModule, decorators: [{
4206
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipePartialContentModule, decorators: [{
3343
4207
  type: NgModule,
3344
4208
  args: [{
3345
4209
  declarations: [PipePartialContentPipe],
@@ -3370,22 +4234,23 @@ class PipeSafeSanitizerPipe {
3370
4234
  throw new Error(`Invalid safe type specified: ${type}`);
3371
4235
  }
3372
4236
  }
3373
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeSafeSanitizerPipe, deps: [{ token: i1$3.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }
3374
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeSafeSanitizerPipe, name: "pipeSafeSanitizer" }); }
4237
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeSafeSanitizerPipe, deps: [{ token: i1$3.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }
4238
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeSafeSanitizerPipe, isStandalone: false, name: "pipeSafeSanitizer" }); }
3375
4239
  }
3376
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeSafeSanitizerPipe, decorators: [{
4240
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeSafeSanitizerPipe, decorators: [{
3377
4241
  type: Pipe,
3378
4242
  args: [{
3379
4243
  name: 'pipeSafeSanitizer',
4244
+ standalone: false
3380
4245
  }]
3381
- }], ctorParameters: function () { return [{ type: i1$3.DomSanitizer }]; } });
4246
+ }], ctorParameters: () => [{ type: i1$3.DomSanitizer }] });
3382
4247
 
3383
4248
  class PipeSafeSanitizerModule {
3384
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeSafeSanitizerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3385
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeSafeSanitizerModule, declarations: [PipeSafeSanitizerPipe], imports: [CommonModule], exports: [PipeSafeSanitizerPipe] }); }
3386
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeSafeSanitizerModule, imports: [CommonModule] }); }
4249
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeSafeSanitizerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
4250
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeSafeSanitizerModule, declarations: [PipeSafeSanitizerPipe], imports: [CommonModule], exports: [PipeSafeSanitizerPipe] }); }
4251
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeSafeSanitizerModule, imports: [CommonModule] }); }
3387
4252
  }
3388
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeSafeSanitizerModule, decorators: [{
4253
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeSafeSanitizerModule, decorators: [{
3389
4254
  type: NgModule,
3390
4255
  args: [{
3391
4256
  declarations: [PipeSafeSanitizerPipe],
@@ -3401,32 +4266,38 @@ class PipePublicURL {
3401
4266
  this.environment = environment;
3402
4267
  }
3403
4268
  transform(value) {
4269
+ // Karmayogi content to be modified with the domain specific url
4270
+ // https://portal.karmayogi.nic.in/content-store/content/do_113918818243969024137/artifact/
4271
+ // do_113918818243969024137_1699074493067_effectivecommunication1699074492860.jpg
3404
4272
  if (value && value.includes('/content') && value.includes('do_')) {
3405
4273
  const mainUrl = value && value.split('/content').pop() || '';
3406
4274
  const finalURL = `${this.environment.contentHost}/${this.environment.contentBucket}/content${mainUrl}`;
3407
4275
  return value ? finalURL : '';
3408
4276
  }
4277
+ // CIOS content has direct S3 url like blow, so return same url
4278
+ // https://s3.amazonaws.com/ecornell/content/On-Demand/Homepages/Banners/CEPL503-OD3_homepage-banner_v1.jpg
3409
4279
  return value;
3410
4280
  }
3411
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipePublicURL, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Pipe }); }
3412
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipePublicURL, name: "pipePublicURL" }); }
4281
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipePublicURL, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Pipe }); }
4282
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipePublicURL, isStandalone: false, name: "pipePublicURL" }); }
3413
4283
  }
3414
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipePublicURL, decorators: [{
4284
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipePublicURL, decorators: [{
3415
4285
  type: Pipe,
3416
4286
  args: [{
3417
4287
  name: 'pipePublicURL',
4288
+ standalone: false
3418
4289
  }]
3419
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
4290
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
3420
4291
  type: Inject,
3421
4292
  args: ['environment']
3422
- }] }]; } });
4293
+ }] }] });
3423
4294
 
3424
4295
  class PipePublicURLModule {
3425
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipePublicURLModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3426
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipePublicURLModule, declarations: [PipePublicURL], imports: [CommonModule], exports: [PipePublicURL] }); }
3427
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipePublicURLModule, imports: [CommonModule] }); }
4296
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipePublicURLModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
4297
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipePublicURLModule, declarations: [PipePublicURL], imports: [CommonModule], exports: [PipePublicURL] }); }
4298
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipePublicURLModule, imports: [CommonModule] }); }
3428
4299
  }
3429
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipePublicURLModule, decorators: [{
4300
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipePublicURLModule, decorators: [{
3430
4301
  type: NgModule,
3431
4302
  args: [{
3432
4303
  declarations: [PipePublicURL],
@@ -3539,25 +4410,26 @@ class PipeCertificateImageURL {
3539
4410
  return value;
3540
4411
  }
3541
4412
  }
3542
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeCertificateImageURL, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Pipe }); }
3543
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeCertificateImageURL, name: "pipeCertImageURL" }); }
4413
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeCertificateImageURL, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Pipe }); }
4414
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeCertificateImageURL, isStandalone: false, name: "pipeCertImageURL" }); }
3544
4415
  }
3545
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeCertificateImageURL, decorators: [{
4416
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeCertificateImageURL, decorators: [{
3546
4417
  type: Pipe,
3547
4418
  args: [{
3548
4419
  name: 'pipeCertImageURL',
4420
+ standalone: false
3549
4421
  }]
3550
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
4422
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
3551
4423
  type: Inject,
3552
4424
  args: ['environment']
3553
- }] }]; } });
4425
+ }] }] });
3554
4426
 
3555
4427
  class PipeCertificateImageURLModule {
3556
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeCertificateImageURLModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3557
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeCertificateImageURLModule, declarations: [PipeCertificateImageURL], imports: [CommonModule], exports: [PipeCertificateImageURL] }); }
3558
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeCertificateImageURLModule, imports: [CommonModule] }); }
4428
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeCertificateImageURLModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
4429
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeCertificateImageURLModule, declarations: [PipeCertificateImageURL], imports: [CommonModule], exports: [PipeCertificateImageURL] }); }
4430
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeCertificateImageURLModule, imports: [CommonModule] }); }
3559
4431
  }
3560
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeCertificateImageURLModule, decorators: [{
4432
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeCertificateImageURLModule, decorators: [{
3561
4433
  type: NgModule,
3562
4434
  args: [{
3563
4435
  declarations: [PipeCertificateImageURL],
@@ -3593,25 +4465,26 @@ class PipeNicRelativePipe {
3593
4465
  const newUrl = newLink.join('/');
3594
4466
  return newUrl;
3595
4467
  }
3596
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeNicRelativePipe, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Pipe }); }
3597
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeNicRelativePipe, name: "PipeNicRelative" }); }
4468
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeNicRelativePipe, deps: [{ token: 'environment' }], target: i0.ɵɵFactoryTarget.Pipe }); }
4469
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeNicRelativePipe, isStandalone: false, name: "PipeNicRelative" }); }
3598
4470
  }
3599
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeNicRelativePipe, decorators: [{
4471
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeNicRelativePipe, decorators: [{
3600
4472
  type: Pipe,
3601
4473
  args: [{
3602
4474
  name: 'PipeNicRelative',
4475
+ standalone: false
3603
4476
  }]
3604
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
4477
+ }], ctorParameters: () => [{ type: undefined, decorators: [{
3605
4478
  type: Inject,
3606
4479
  args: ['environment']
3607
- }] }]; } });
4480
+ }] }] });
3608
4481
 
3609
4482
  class PipeNicRelativeModule {
3610
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeNicRelativeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3611
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeNicRelativeModule, declarations: [PipeNicRelativePipe], imports: [CommonModule], exports: [PipeNicRelativePipe] }); }
3612
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeNicRelativeModule, imports: [CommonModule] }); }
4483
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeNicRelativeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
4484
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeNicRelativeModule, declarations: [PipeNicRelativePipe], imports: [CommonModule], exports: [PipeNicRelativePipe] }); }
4485
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeNicRelativeModule, imports: [CommonModule] }); }
3613
4486
  }
3614
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeNicRelativeModule, decorators: [{
4487
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeNicRelativeModule, decorators: [{
3615
4488
  type: NgModule,
3616
4489
  args: [{
3617
4490
  declarations: [PipeNicRelativePipe],
@@ -3627,22 +4500,23 @@ class PipeCourseNamePipe {
3627
4500
  const fullname = value.split(',');
3628
4501
  return fullname[1];
3629
4502
  }
3630
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeCourseNamePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
3631
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeCourseNamePipe, name: "pipeCourseName" }); }
4503
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeCourseNamePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
4504
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeCourseNamePipe, isStandalone: false, name: "pipeCourseName" }); }
3632
4505
  }
3633
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeCourseNamePipe, decorators: [{
4506
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeCourseNamePipe, decorators: [{
3634
4507
  type: Pipe,
3635
4508
  args: [{
3636
4509
  name: 'pipeCourseName',
4510
+ standalone: false
3637
4511
  }]
3638
4512
  }] });
3639
4513
 
3640
4514
  class PipeCourseNameModule {
3641
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeCourseNameModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
3642
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: PipeCourseNameModule, declarations: [PipeCourseNamePipe], imports: [CommonModule], exports: [PipeCourseNamePipe] }); }
3643
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeCourseNameModule, imports: [CommonModule] }); }
4515
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeCourseNameModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
4516
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeCourseNameModule, declarations: [PipeCourseNamePipe], imports: [CommonModule], exports: [PipeCourseNamePipe] }); }
4517
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeCourseNameModule, imports: [CommonModule] }); }
3644
4518
  }
3645
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PipeCourseNameModule, decorators: [{
4519
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeCourseNameModule, decorators: [{
3646
4520
  type: NgModule,
3647
4521
  args: [{
3648
4522
  declarations: [PipeCourseNamePipe],
@@ -3712,15 +4586,15 @@ class ExploreDetailResolve {
3712
4586
  });
3713
4587
  return pageData;
3714
4588
  }
3715
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExploreDetailResolve, deps: [{ token: i1$2.HttpClient }, { token: ConfigurationsService }, { token: UtilityService }], target: i0.ɵɵFactoryTarget.Injectable }); }
3716
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExploreDetailResolve, providedIn: 'root' }); }
4589
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ExploreDetailResolve, deps: [{ token: i1.HttpClient }, { token: ConfigurationsService }, { token: UtilityService }], target: i0.ɵɵFactoryTarget.Injectable }); }
4590
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ExploreDetailResolve, providedIn: 'root' }); }
3717
4591
  }
3718
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ExploreDetailResolve, decorators: [{
4592
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ExploreDetailResolve, decorators: [{
3719
4593
  type: Injectable,
3720
4594
  args: [{
3721
4595
  providedIn: 'root',
3722
4596
  }]
3723
- }], ctorParameters: function () { return [{ type: i1$2.HttpClient }, { type: ConfigurationsService }, { type: UtilityService }]; } });
4597
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: ConfigurationsService }, { type: UtilityService }] });
3724
4598
 
3725
4599
  class MarketingOfferingResolve {
3726
4600
  constructor(http) {
@@ -3742,15 +4616,15 @@ class MarketingOfferingResolve {
3742
4616
  });
3743
4617
  return pageData;
3744
4618
  }
3745
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MarketingOfferingResolve, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
3746
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MarketingOfferingResolve, providedIn: 'root' }); }
4619
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: MarketingOfferingResolve, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
4620
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: MarketingOfferingResolve, providedIn: 'root' }); }
3747
4621
  }
3748
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MarketingOfferingResolve, decorators: [{
4622
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: MarketingOfferingResolve, decorators: [{
3749
4623
  type: Injectable,
3750
4624
  args: [{
3751
4625
  providedIn: 'root',
3752
4626
  }]
3753
- }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
4627
+ }], ctorParameters: () => [{ type: i1.HttpClient }] });
3754
4628
 
3755
4629
  const JSON_MAP = {
3756
4630
  pagename: 'lexid',
@@ -3786,6 +4660,9 @@ class PageResolve {
3786
4660
  };
3787
4661
  }
3788
4662
  setS3Cookie(_contentId) {
4663
+ // return this.http.post(`/apis/protected/v8/content/setCookie`, { contentId }).pipe(
4664
+ // catchError(_err => of(true)),
4665
+ // )
3789
4666
  return EMPTY;
3790
4667
  }
3791
4668
  getContent(id) {
@@ -3818,18 +4695,18 @@ class PageResolve {
3818
4695
  return general;
3819
4696
  }));
3820
4697
  }
3821
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PageResolve, deps: [{ token: ConfigurationsService }, { token: i1$2.HttpClient }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable }); }
3822
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PageResolve, providedIn: 'root' }); }
4698
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PageResolve, deps: [{ token: ConfigurationsService }, { token: i1.HttpClient }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable }); }
4699
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PageResolve, providedIn: 'root' }); }
3823
4700
  }
3824
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PageResolve, decorators: [{
4701
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PageResolve, decorators: [{
3825
4702
  type: Injectable,
3826
4703
  args: [{
3827
4704
  providedIn: 'root',
3828
4705
  }]
3829
- }], ctorParameters: function () { return [{ type: ConfigurationsService }, { type: i1$2.HttpClient }, { type: undefined, decorators: [{
4706
+ }], ctorParameters: () => [{ type: ConfigurationsService }, { type: i1.HttpClient }, { type: undefined, decorators: [{
3830
4707
  type: Inject,
3831
4708
  args: [LOCALE_ID]
3832
- }] }]; } });
4709
+ }] }] });
3833
4710
 
3834
4711
  class PageNameResolve {
3835
4712
  constructor() { }
@@ -3852,15 +4729,15 @@ class PageNameResolve {
3852
4729
  }
3853
4730
  return 'common module';
3854
4731
  }
3855
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PageNameResolve, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3856
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PageNameResolve, providedIn: 'root' }); }
4732
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PageNameResolve, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4733
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PageNameResolve, providedIn: 'root' }); }
3857
4734
  }
3858
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PageNameResolve, decorators: [{
4735
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PageNameResolve, decorators: [{
3859
4736
  type: Injectable,
3860
4737
  args: [{
3861
4738
  providedIn: 'root',
3862
4739
  }]
3863
- }], ctorParameters: function () { return []; } });
4740
+ }], ctorParameters: () => [] });
3864
4741
 
3865
4742
  class ModuleNameResolve {
3866
4743
  constructor() {
@@ -3886,15 +4763,15 @@ class ModuleNameResolve {
3886
4763
  }
3887
4764
  return 'common module';
3888
4765
  }
3889
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ModuleNameResolve, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3890
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ModuleNameResolve, providedIn: 'root' }); }
4766
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ModuleNameResolve, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4767
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ModuleNameResolve, providedIn: 'root' }); }
3891
4768
  }
3892
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ModuleNameResolve, decorators: [{
4769
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: ModuleNameResolve, decorators: [{
3893
4770
  type: Injectable,
3894
4771
  args: [{
3895
4772
  providedIn: 'root',
3896
4773
  }]
3897
- }], ctorParameters: function () { return []; } });
4774
+ }], ctorParameters: () => [] });
3898
4775
 
3899
4776
  var NsContent;
3900
4777
  (function (NsContent) {
@@ -3915,11 +4792,27 @@ var NsContent;
3915
4792
  EPrimaryCategory["MANDATORY_COURSE_GOAL"] = "Mandatory Course Goal";
3916
4793
  EPrimaryCategory["BLENDED_PROGRAM"] = "Blended Program";
3917
4794
  EPrimaryCategory["OFFLINE_SESSION"] = "Offline Session";
4795
+ // following will not be available soon
4796
+ /**
4797
+ * @deprecated The type should not be used
4798
+ */
3918
4799
  EPrimaryCategory["KNOWLEDGE_ARTIFACT"] = "Knowledge Artifact";
4800
+ /**
4801
+ * @deprecated The type should not be used
4802
+ */
3919
4803
  EPrimaryCategory["KNOWLEDGE_BOARD"] = "Knowledge Board";
4804
+ /**
4805
+ * @deprecated The type should not be used
4806
+ */
3920
4807
  EPrimaryCategory["LEARNING_JOURNEY"] = "Learning Journeys";
4808
+ /**
4809
+ * @deprecated The type should not be used
4810
+ */
3921
4811
  EPrimaryCategory["CHANNEL"] = "Channel";
3922
4812
  })(EPrimaryCategory = NsContent.EPrimaryCategory || (NsContent.EPrimaryCategory = {}));
4813
+ /**
4814
+ * @deprecated Enum EContentTypes should not be used in future
4815
+ */
3923
4816
  let EContentTypes;
3924
4817
  (function (EContentTypes) {
3925
4818
  EContentTypes["PROGRAM"] = "Learning Path";
@@ -3976,6 +4869,7 @@ var NsContent;
3976
4869
  EMimeTypes["CLASS_DIAGRAM"] = "application/class-diagram";
3977
4870
  EMimeTypes["CHANNEL"] = "application/channel";
3978
4871
  EMimeTypes["COLLECTION_RESOURCE"] = "resource/collection";
4872
+ // Added on UI Only
3979
4873
  EMimeTypes["CERTIFICATION"] = "application/certification";
3980
4874
  EMimeTypes["PLAYLIST"] = "application/playlist";
3981
4875
  EMimeTypes["QUESTION_SET"] = "application/vnd.sunbird.questionset";
@@ -4015,6 +4909,7 @@ var NsContent;
4015
4909
  EDisplayContentTypes["KNOWLEDGE_BOARD"] = "Knowledge Board";
4016
4910
  EDisplayContentTypes["LEARNING_JOURNEY"] = "Learning Journeys";
4017
4911
  })(EDisplayContentTypes = NsContent.EDisplayContentTypes || (NsContent.EDisplayContentTypes = {}));
4912
+ // for UI
4018
4913
  let EFilterCategory;
4019
4914
  (function (EFilterCategory) {
4020
4915
  EFilterCategory["ALL"] = "ALL";
@@ -4022,12 +4917,14 @@ var NsContent;
4022
4917
  EFilterCategory["PRACTICE"] = "PRACTICE";
4023
4918
  EFilterCategory["ASSESS"] = "ASSESS";
4024
4919
  })(EFilterCategory = NsContent.EFilterCategory || (NsContent.EFilterCategory = {}));
4920
+ // for UI
4025
4921
  let ETagType;
4026
4922
  (function (ETagType) {
4027
4923
  ETagType["NEWLY_ADDED"] = "NEWLY ADDED";
4028
4924
  })(ETagType = NsContent.ETagType || (NsContent.ETagType = {}));
4029
4925
  let ECourseCategory;
4030
4926
  (function (ECourseCategory) {
4927
+ ECourseCategory["MODULE"] = "Course Unit";
4031
4928
  ECourseCategory["INVITE_ONLY_PROGRAM"] = "Invite-Only Program";
4032
4929
  ECourseCategory["MODERATED_PROGRAM"] = "Moderated Program";
4033
4930
  ECourseCategory["BLENDED_PROGRAM"] = "Blended Program";
@@ -4036,12 +4933,23 @@ var NsContent;
4036
4933
  ECourseCategory["MODERATED_COURSE"] = "Moderated Course";
4037
4934
  ECourseCategory["STANDALONE_ASSESSMENT"] = "Standalone Assessment";
4038
4935
  ECourseCategory["MODERATED_ASSESSEMENT"] = "Moderated Assessment";
4936
+ ECourseCategory["INVITE_ONLY_ASSESSMENT"] = "Invite-Only Assessment";
4937
+ ECourseCategory["CQF_ASSESSMENT"] = "CQF Assessment";
4039
4938
  ECourseCategory["CASE_STUDY"] = "Case Study";
4939
+ ECourseCategory["PRE_ENROLMENT_ASSESSMENT"] = "Pre Enrolment Assessment";
4940
+ ECourseCategory["COMPREHENSIVE_ASSESSMENT_PROGRAM"] = "Comprehensive Assessment Program";
4941
+ ECourseCategory["MULTILINGUAL_COURSE"] = "Multilingual Course";
4942
+ ECourseCategory["RESOURCE"] = "Learning Resource";
4040
4943
  })(ECourseCategory = NsContent.ECourseCategory || (NsContent.ECourseCategory = {}));
4944
+ let EContextTypes;
4945
+ (function (EContextTypes) {
4946
+ EContextTypes["FINAL_MILESTONE_ASSESSMENT"] = "Final Milestone Assessment";
4947
+ })(EContextTypes = NsContent.EContextTypes || (NsContent.EContextTypes = {}));
4041
4948
  })(NsContent || (NsContent = {}));
4042
4949
 
4950
+ // TODO: move this in some common place
4043
4951
  const PROTECTED_SLAG_V8 = '/apis/protected/v8';
4044
- const API_END_POINTS$2 = {
4952
+ const API_END_POINTS$3 = {
4045
4953
  CONTENT: `${PROTECTED_SLAG_V8}/content`,
4046
4954
  AUTHORING_CONTENT: `/apis/authApi/hierarchy`,
4047
4955
  CONTENT_LIKES: `${PROTECTED_SLAG_V8}/content/likeCount`,
@@ -4064,43 +4972,51 @@ const API_END_POINTS$2 = {
4064
4972
  CERT_DOWNLOAD: (certId) => `${PROTECTED_SLAG_V8}/cohorts/course/batch/cert/download/${certId}`,
4065
4973
  CERT_DOWNLOADV2: `/apis/proxies/v8/certificate/dynamic/v1/generate`,
4066
4974
  };
4975
+ /**
4976
+ * @deprecated this will be depricated
4977
+ */
4067
4978
  class WidgetContentService {
4068
4979
  constructor(http, configSvc) {
4069
4980
  this.http = http;
4070
4981
  this.configSvc = configSvc;
4071
4982
  }
4072
4983
  fetchMarkAsCompleteMeta(identifier) {
4073
- const url = API_END_POINTS$2.MARK_AS_COMPLETE_META(identifier);
4984
+ // tslint:disable-next-line
4985
+ const url = API_END_POINTS$3.MARK_AS_COMPLETE_META(identifier);
4986
+ // return this.http.get(url).toPromise()
4074
4987
  if (url) { }
4075
4988
  return of().toPromise();
4076
4989
  }
4077
4990
  fetchContent(contentId, hierarchyType = 'detail', additionalFields = []) {
4078
- const url = `${API_END_POINTS$2.CONTENT}/${contentId}?hierarchyType=${hierarchyType}`;
4991
+ const url = `${API_END_POINTS$3.CONTENT}/${contentId}?hierarchyType=${hierarchyType}`;
4079
4992
  return this.http
4080
4993
  .post(url, { additionalFields })
4081
4994
  .pipe(retry(1));
4082
4995
  }
4083
4996
  fetchAuthoringContent(contentId) {
4084
- const url = `${API_END_POINTS$2.AUTHORING_CONTENT}/${contentId}`;
4997
+ const url = `${API_END_POINTS$3.AUTHORING_CONTENT}/${contentId}`;
4085
4998
  return this.http.get(url).pipe(retry(1));
4086
4999
  }
4087
5000
  fetchMultipleContent(ids) {
4088
- return this.http.get(`${API_END_POINTS$2.MULTIPLE_CONTENT}/${ids.join(',')}`);
5001
+ return this.http.get(`${API_END_POINTS$3.MULTIPLE_CONTENT}/${ids.join(',')}`);
4089
5002
  }
4090
5003
  fetchCollectionHierarchy(type, id, pageNumber = 0, pageSize = 1) {
4091
- return this.http.get(`${API_END_POINTS$2.COLLECTION_HIERARCHY(type, id)}?pageNumber=${pageNumber}&pageSize=${pageSize}`);
5004
+ return this.http.get(`${API_END_POINTS$3.COLLECTION_HIERARCHY(type, id)}?pageNumber=${pageNumber}&pageSize=${pageSize}`);
4092
5005
  }
4093
5006
  fetchContentLikes(contentIds) {
4094
5007
  return this.http
4095
- .post(API_END_POINTS$2.CONTENT_LIKES, contentIds)
5008
+ .post(API_END_POINTS$3.CONTENT_LIKES, contentIds)
4096
5009
  .toPromise();
4097
5010
  }
4098
5011
  fetchContentRatings(contentIds) {
4099
5012
  if (contentIds) { }
5013
+ // return this.http
5014
+ // .post(`${API_END_POINTS.CONTENT_RATING}/rating`, contentIds)
5015
+ // .toPromise()
4100
5016
  return of().toPromise();
4101
5017
  }
4102
5018
  fetchContentHistory(contentId) {
4103
- return this.http.get(`${API_END_POINTS$2.CONTENT_HISTORY}/${contentId}`);
5019
+ return this.http.get(`${API_END_POINTS$3.CONTENT_HISTORY}/${contentId}`);
4104
5020
  }
4105
5021
  async continueLearning(id, collectionId, collectionType) {
4106
5022
  return new Promise(async (resolve) => {
@@ -4134,25 +5050,30 @@ class WidgetContentService {
4134
5050
  });
4135
5051
  }
4136
5052
  saveContinueLearning(content) {
5053
+ // const url = API_END_POINTS.USER_CONTINUE_LEARNING
5054
+ // return this.http.post<any>(url, content)
4137
5055
  if (content) {
4138
5056
  }
4139
5057
  return of();
4140
5058
  }
4141
5059
  setS3Cookie(_contentId) {
5060
+ // return this.http
5061
+ // .post(API_END_POINTS.SET_S3_COOKIE, { contentId })
5062
+ // .pipe(catchError(_err => of(true)))
4142
5063
  return EMPTY;
4143
5064
  }
4144
5065
  setS3ImageCookie() {
4145
- return this.http.post(API_END_POINTS$2.SET_S3_IMAGE_COOKIE, {}).pipe(catchError(_err => of(true)));
5066
+ return this.http.post(API_END_POINTS$3.SET_S3_IMAGE_COOKIE, {}).pipe(catchError(_err => of(true)));
4146
5067
  }
4147
5068
  fetchManifest(url) {
4148
- return this.http.post(API_END_POINTS$2.FETCH_MANIFEST, { url });
5069
+ return this.http.post(API_END_POINTS$3.FETCH_MANIFEST, { url });
4149
5070
  }
4150
5071
  fetchWebModuleContent(url) {
4151
- return this.http.get(`${API_END_POINTS$2.FETCH_WEB_MODULE_FILES}?url=${encodeURIComponent(url)}`);
5072
+ return this.http.get(`${API_END_POINTS$3.FETCH_WEB_MODULE_FILES}?url=${encodeURIComponent(url)}`);
4152
5073
  }
4153
5074
  search(req) {
4154
5075
  req.query = req.query || '';
4155
- return this.http.post(API_END_POINTS$2.CONTENT_SEARCH_V5, {
5076
+ return this.http.post(API_END_POINTS$3.CONTENT_SEARCH_V5, {
4156
5077
  request: req,
4157
5078
  });
4158
5079
  }
@@ -4165,21 +5086,25 @@ class WidgetContentService {
4165
5086
  ...req.filters,
4166
5087
  labels: [req.preLabelValue || ''],
4167
5088
  };
4168
- return this.http.post(API_END_POINTS$2.CONTENT_SEARCH_REGION_RECOMMENDATION, { request: req });
5089
+ return this.http.post(API_END_POINTS$3.CONTENT_SEARCH_REGION_RECOMMENDATION, { request: req });
4169
5090
  }
4170
5091
  searchV6(req) {
4171
5092
  req.query = req.query || '';
4172
- return this.http.post(API_END_POINTS$2.CONTENT_SEARCH_V6, req);
5093
+ return this.http.post(API_END_POINTS$3.CONTENT_SEARCH_V6, req);
4173
5094
  }
4174
5095
  fetchContentRating(contentId) {
4175
- return this.http.get(`${API_END_POINTS$2.CONTENT_RATING}/${contentId}`);
5096
+ return this.http.get(`${API_END_POINTS$3.CONTENT_RATING}/${contentId}`);
4176
5097
  }
4177
5098
  deleteContentRating(contentId) {
4178
- return this.http.delete(`${API_END_POINTS$2.CONTENT_RATING}/${contentId}`);
5099
+ return this.http.delete(`${API_END_POINTS$3.CONTENT_RATING}/${contentId}`);
4179
5100
  }
4180
5101
  addContentRating(contentId, data) {
4181
- return this.http.post(`${API_END_POINTS$2.CONTENT_RATING}/${contentId}`, data);
5102
+ return this.http.post(`${API_END_POINTS$3.CONTENT_RATING}/${contentId}`, data);
4182
5103
  }
5104
+ /**
5105
+ *
5106
+ * @deprecated this will be depricated.
5107
+ */
4183
5108
  getFirstChildInHierarchy(content) {
4184
5109
  if (!(content.children || []).length) {
4185
5110
  return content;
@@ -4204,34 +5129,35 @@ class WidgetContentService {
4204
5129
  return resultContent;
4205
5130
  }
4206
5131
  getRegistrationStatus(source) {
4207
- return this.http.get(`${API_END_POINTS$2.REGISTRATION_STATUS}/${source}`).toPromise();
5132
+ return this.http.get(`${API_END_POINTS$3.REGISTRATION_STATUS}/${source}`).toPromise();
4208
5133
  }
4209
5134
  fetchConfig(url) {
4210
5135
  return this.http.get(url);
4211
5136
  }
4212
5137
  fetchExtUserContentEnroll(contentId) {
4213
- return this.http.get(API_END_POINTS$2.EXT_USER_COURSE_ENROLL(contentId));
5138
+ return this.http.get(API_END_POINTS$3.EXT_USER_COURSE_ENROLL(contentId));
4214
5139
  }
4215
5140
  extContentEnroll(requestBody) {
4216
- return this.http.post(`${API_END_POINTS$2.EXT_CONTENT_EROLL}`, requestBody);
5141
+ return this.http.post(`${API_END_POINTS$3.EXT_CONTENT_EROLL}`, requestBody);
4217
5142
  }
4218
5143
  downloadCert(certId) {
4219
- return this.http.get(`${API_END_POINTS$2.CERT_DOWNLOAD(certId)}`);
5144
+ return this.http.get(`${API_END_POINTS$3.CERT_DOWNLOAD(certId)}`);
4220
5145
  }
4221
5146
  downloadCertV2(payload) {
4222
- return this.http.post(`${API_END_POINTS$2.CERT_DOWNLOADV2}`, payload);
5147
+ return this.http.post(`${API_END_POINTS$3.CERT_DOWNLOADV2}`, payload);
4223
5148
  }
4224
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WidgetContentService, deps: [{ token: i1$2.HttpClient }, { token: ConfigurationsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
4225
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WidgetContentService, providedIn: 'root' }); }
5149
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: WidgetContentService, deps: [{ token: i1.HttpClient }, { token: ConfigurationsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
5150
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: WidgetContentService, providedIn: 'root' }); }
4226
5151
  }
4227
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WidgetContentService, decorators: [{
5152
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: WidgetContentService, decorators: [{
4228
5153
  type: Injectable,
4229
5154
  args: [{
4230
5155
  providedIn: 'root',
4231
5156
  }]
4232
- }], ctorParameters: function () { return [{ type: i1$2.HttpClient }, { type: ConfigurationsService }]; } });
5157
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: ConfigurationsService }] });
4233
5158
 
4234
- const API_END_POINTS$1 = {
5159
+ // tslint:enable
5160
+ const API_END_POINTS$2 = {
4235
5161
  readFeed: (id) => `/apis/proxies/v8/user/v1/feed/${id}`,
4236
5162
  getFormID: (id) => `/apis/proxies/v8/forms/getFormById?id=${id}`,
4237
5163
  submitForm: `/apis/proxies/v8/forms/v1/saveFormSubmit`,
@@ -4247,26 +5173,28 @@ class NPSGridService {
4247
5173
  this.telemetryEvents.next(state);
4248
5174
  }
4249
5175
  getFeedStatus(id) {
4250
- return this.http.get(API_END_POINTS$1.readFeed(id));
5176
+ return this.http.get(API_END_POINTS$2.readFeed(id));
4251
5177
  }
4252
5178
  getFormData(formid) {
4253
- return this.http.get(API_END_POINTS$1.getFormID(formid));
5179
+ return this.http.get(API_END_POINTS$2.getFormID(formid));
4254
5180
  }
4255
5181
  submitPlatformRating(req) {
4256
- return this.http.post(API_END_POINTS$1.submitForm, req);
5182
+ return this.http.post(API_END_POINTS$2.submitForm, req);
4257
5183
  }
4258
5184
  deleteFeed(req) {
4259
- return this.http.post(API_END_POINTS$1.deleteFeed, req);
5185
+ return this.http.post(API_END_POINTS$2.deleteFeed, req);
4260
5186
  }
4261
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NPSGridService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
4262
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NPSGridService }); }
5187
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: NPSGridService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
5188
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: NPSGridService }); }
4263
5189
  }
4264
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NPSGridService, decorators: [{
5190
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: NPSGridService, decorators: [{
4265
5191
  type: Injectable
4266
- }], ctorParameters: function () { return [{ type: i1$2.HttpClient }]; } });
5192
+ }], ctorParameters: () => [{ type: i1.HttpClient }] });
4267
5193
 
4268
5194
  class TelemetryService {
4269
- constructor(configSvc, eventsSvc, environment, logger, router, npsSvc) {
5195
+ constructor(configSvc, eventsSvc, environment,
5196
+ // private authSvc: AuthKeycloakService,
5197
+ logger, router, npsSvc) {
4270
5198
  this.configSvc = configSvc;
4271
5199
  this.eventsSvc = eventsSvc;
4272
5200
  this.logger = logger;
@@ -4329,10 +5257,13 @@ class TelemetryService {
4329
5257
  ...this.telemetryConfig,
4330
5258
  pdata: {
4331
5259
  ...this.telemetryConfig.pdata,
5260
+ // pid: navigator.userAgent,
4332
5261
  id: `${this.environment.name}.${this.telemetryConfig.pdata.id}`,
4333
5262
  },
4334
5263
  uid: (this.configSvc.userProfile && this.configSvc.userProfile.userId) ?
4335
5264
  this.configSvc.userProfile.userId : '',
5265
+ // authtoken: this.authSvc.token,
5266
+ // tslint:disable-next-line: no-non-null-assertion
4336
5267
  channel: this.rootOrgId || this.telemetryConfig.channel,
4337
5268
  sid: this.getTelemetrySessionId,
4338
5269
  };
@@ -4363,6 +5294,7 @@ class TelemetryService {
4363
5294
  $t.start(this.telemetryConfig, (pageContext && pageContext.pageId) ?
4364
5295
  pageContext.pageId
4365
5296
  : '', '1.0', {
5297
+ // id,
4366
5298
  type: edata.type,
4367
5299
  mode: edata.mode,
4368
5300
  pageid: (pageContext && pageContext.pageId) ?
@@ -4389,6 +5321,7 @@ class TelemetryService {
4389
5321
  }
4390
5322
  }
4391
5323
  catch (e) {
5324
+ // tslint:disable-next-line: no-console
4392
5325
  console.log('Error in telemetry start', e);
4393
5326
  }
4394
5327
  }
@@ -4414,6 +5347,7 @@ class TelemetryService {
4414
5347
  });
4415
5348
  }
4416
5349
  catch (e) {
5350
+ // tslint:disable-next-line: no-console
4417
5351
  console.log('Error in telemetry end', e);
4418
5352
  }
4419
5353
  }
@@ -4422,9 +5356,10 @@ class TelemetryService {
4422
5356
  $t.audit({
4423
5357
  type,
4424
5358
  props,
4425
- state: data,
4426
- prevstate: '',
4427
- duration: '',
5359
+ // data,
5360
+ state: data, // Optional. Current State
5361
+ prevstate: '', // Optional. Previous State
5362
+ duration: '', // Optional.
4428
5363
  }, {
4429
5364
  context: {
4430
5365
  pdata: {
@@ -4435,6 +5370,7 @@ class TelemetryService {
4435
5370
  });
4436
5371
  }
4437
5372
  catch (e) {
5373
+ // tslint:disable-next-line: no-console
4438
5374
  console.log('Error in telemetry audit', e);
4439
5375
  }
4440
5376
  }
@@ -4442,10 +5378,12 @@ class TelemetryService {
4442
5378
  try {
4443
5379
  $t.heartbeat({
4444
5380
  id,
5381
+ // mode,
4445
5382
  type,
4446
5383
  });
4447
5384
  }
4448
5385
  catch (e) {
5386
+ // tslint:disable-next-line: no-console
4449
5387
  console.log('Error in telemetry heartbeat', e);
4450
5388
  }
4451
5389
  }
@@ -4458,8 +5396,8 @@ class TelemetryService {
4458
5396
  page.module = data.pageContext.module;
4459
5397
  }
4460
5398
  const edata = {
4461
- pageid: page.pageid,
4462
- type: page.pageUrlParts[0],
5399
+ pageid: page.pageid, // Required. Unique page id
5400
+ type: page.pageUrlParts[0], // Required. Impression type (list, detail, view, edit, workflow, search)
4463
5401
  uri: page.pageUrl,
4464
5402
  };
4465
5403
  if (page.objectId) {
@@ -4474,6 +5412,7 @@ class TelemetryService {
4474
5412
  object: {
4475
5413
  id: page.objectId,
4476
5414
  type: objectType,
5415
+ // This will override above id if the data has object in it.
4477
5416
  ...(data && data.object),
4478
5417
  },
4479
5418
  };
@@ -4499,10 +5438,12 @@ class TelemetryService {
4499
5438
  this.previousUrl = page.pageUrl;
4500
5439
  }
4501
5440
  catch (e) {
5441
+ // tslint:disable-next-line: no-console
4502
5442
  console.log('Error in telemetry impression', e);
4503
5443
  }
4504
5444
  }
4505
5445
  externalImpression(impressionData) {
5446
+ // this.triggerNPSUpdate(impressionData)
4506
5447
  try {
4507
5448
  const page = this.getPageDetails();
4508
5449
  if (this.externalApps[impressionData.subApplicationName]) {
@@ -4528,9 +5469,11 @@ class TelemetryService {
4528
5469
  }
4529
5470
  }
4530
5471
  catch (e) {
5472
+ // tslint:disable-next-line: no-console
4531
5473
  console.log('Error in telemetry externalImpression', e);
4532
5474
  }
4533
5475
  }
5476
+ // for Plartform rating
4534
5477
  addCustomListenerForPlatformRating() {
4535
5478
  this.eventsSvc.getPREvents$
4536
5479
  .pipe(filter(event => event &&
@@ -4668,9 +5611,11 @@ class TelemetryService {
4668
5611
  event.data.eventSubType === WsEvents.EnumTelemetrySubType.Impression))
4669
5612
  .subscribe(event => {
4670
5613
  try {
5614
+ // console.log('event.data::', event.data)
4671
5615
  this.impression(event.data);
4672
5616
  }
4673
5617
  catch (e) {
5618
+ // tslint:disable-next-line: no-console
4674
5619
  console.log('Error in telemetry impression', e);
4675
5620
  }
4676
5621
  });
@@ -4772,14 +5717,20 @@ class TelemetryService {
4772
5717
  $t.interact(event.data, externalConfig);
4773
5718
  }
4774
5719
  catch (e) {
5720
+ // tslint:disable-next-line: no-console
4775
5721
  console.log('Error in telemetry interact', e);
4776
5722
  }
4777
5723
  }
4778
5724
  else {
5725
+ // let interactid
5726
+ // if (event.data.edata.type === 'goal') {
5727
+ // interactid = page.pageUrlParts[4]
5728
+ // }
4779
5729
  try {
4780
5730
  $t.interact({
4781
5731
  type: event.data.edata.type,
4782
5732
  subtype: event.data.edata.subType,
5733
+ // object: event.data.object,
4783
5734
  id: (event.data.edata && event.data.edata.id) ?
4784
5735
  event.data.edata.id
4785
5736
  : '',
@@ -4799,6 +5750,7 @@ class TelemetryService {
4799
5750
  });
4800
5751
  }
4801
5752
  catch (e) {
5753
+ // tslint:disable-next-line: no-console
4802
5754
  console.log('Error in telemetry interact', e);
4803
5755
  }
4804
5756
  }
@@ -4834,6 +5786,7 @@ class TelemetryService {
4834
5786
  });
4835
5787
  }
4836
5788
  catch (e) {
5789
+ // tslint:disable-next-line: no-console
4837
5790
  console.log('Error in telemetry interact', e);
4838
5791
  }
4839
5792
  });
@@ -4858,6 +5811,7 @@ class TelemetryService {
4858
5811
  $t.heartbeat(event.data, externalConfig);
4859
5812
  }
4860
5813
  catch (e) {
5814
+ // tslint:disable-next-line: no-console
4861
5815
  console.log('Error in telemetry heartbeat', e);
4862
5816
  }
4863
5817
  }
@@ -4865,7 +5819,10 @@ class TelemetryService {
4865
5819
  try {
4866
5820
  $t.heartbeat({
4867
5821
  type: event.data.type,
5822
+ // subtype: event.data.eventSubType,
4868
5823
  id: event.data.id,
5824
+ // mimeType: event.data.mimeType,
5825
+ // mode: event.data.mode,
4869
5826
  }, {
4870
5827
  context: {
4871
5828
  pdata: {
@@ -4876,6 +5833,7 @@ class TelemetryService {
4876
5833
  });
4877
5834
  }
4878
5835
  catch (e) {
5836
+ // tslint:disable-next-line: no-console
4879
5837
  console.log('Error in telemetry heartbeat', e);
4880
5838
  }
4881
5839
  }
@@ -4903,6 +5861,7 @@ class TelemetryService {
4903
5861
  });
4904
5862
  }
4905
5863
  catch (e) {
5864
+ // tslint:disable-next-line: no-console
4906
5865
  console.log('Error in telemetry search', e);
4907
5866
  }
4908
5867
  });
@@ -4924,34 +5883,37 @@ class TelemetryService {
4924
5883
  };
4925
5884
  }
4926
5885
  extractContentIdFromUrlParts(urlParts) {
5886
+ // TODO: pick toc and viewer url from some configuration
4927
5887
  const tocIdx = urlParts.indexOf('toc');
4928
5888
  const viewerIdx = urlParts.indexOf('viewer');
4929
5889
  if (tocIdx === -1 && viewerIdx === -1) {
4930
5890
  return null;
4931
5891
  }
4932
5892
  if (tocIdx !== -1 && tocIdx < urlParts.length - 1) {
4933
- return urlParts[tocIdx + 1];
5893
+ return urlParts[tocIdx + 1]; // e.g. url /app/toc/<content_id>
4934
5894
  }
4935
5895
  if (viewerIdx !== -1 && viewerIdx < urlParts.length - 2) {
4936
- return urlParts[viewerIdx + 2];
5896
+ return urlParts[viewerIdx + 2]; // e.g. url /app/viewer/<content_type>/<content_id>
4937
5897
  }
4938
5898
  return null;
4939
5899
  }
4940
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TelemetryService, deps: [{ token: ConfigurationsService }, { token: EventService }, { token: 'environment' }, { token: LoggerService }, { token: i3$1.Router }, { token: NPSGridService }], target: i0.ɵɵFactoryTarget.Injectable }); }
4941
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TelemetryService, providedIn: 'root' }); }
5900
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: TelemetryService, deps: [{ token: ConfigurationsService }, { token: EventService }, { token: 'environment' }, { token: LoggerService }, { token: i3$1.Router }, { token: NPSGridService }], target: i0.ɵɵFactoryTarget.Injectable }); }
5901
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: TelemetryService, providedIn: 'root' }); }
4942
5902
  }
4943
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TelemetryService, decorators: [{
5903
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: TelemetryService, decorators: [{
4944
5904
  type: Injectable,
4945
5905
  args: [{
4946
5906
  providedIn: 'root',
4947
5907
  }]
4948
- }], ctorParameters: function () { return [{ type: ConfigurationsService }, { type: EventService }, { type: undefined, decorators: [{
5908
+ }], ctorParameters: () => [{ type: ConfigurationsService }, { type: EventService }, { type: undefined, decorators: [{
4949
5909
  type: Inject,
4950
5910
  args: ['environment']
4951
- }] }, { type: LoggerService }, { type: i3$1.Router }, { type: NPSGridService }]; } });
5911
+ }] }, { type: LoggerService }, { type: i3$1.Router }, { type: NPSGridService }] });
4952
5912
 
4953
5913
  class SubapplicationRespondService {
4954
- constructor(configSvc, contentSvc, activatedRoute, router, eventSvc, teleSvc) {
5914
+ constructor(configSvc, contentSvc,
5915
+ // private keyCloakSvc: AuthKeycloakService,
5916
+ activatedRoute, router, eventSvc, teleSvc) {
4955
5917
  this.configSvc = configSvc;
4956
5918
  this.contentSvc = contentSvc;
4957
5919
  this.activatedRoute = activatedRoute;
@@ -4978,6 +5940,7 @@ class SubapplicationRespondService {
4978
5940
  this.configSvc.userProfile.userName.split(' ', 2)[1] : '';
4979
5941
  const viewMode = this.activatedRoute.snapshot.queryParams.viewMode ?
4980
5942
  this.activatedRoute.snapshot.queryParams.viewMode : '';
5943
+ // const token = this.keyCloakSvc.token
4981
5944
  const response = {
4982
5945
  subApplicationName: applicationName,
4983
5946
  requestId: 'LOADED',
@@ -4996,6 +5959,7 @@ class SubapplicationRespondService {
4996
5959
  user: {
4997
5960
  firstName,
4998
5961
  lastName,
5962
+ // token,
4999
5963
  userId: this.configSvc.userProfile.userId ? this.configSvc.userProfile.userId : '',
5000
5964
  roles: this.configSvc.userRoles ? Array.from(this.configSvc.userRoles) : [],
5001
5965
  },
@@ -5020,6 +5984,7 @@ class SubapplicationRespondService {
5020
5984
  this.configSvc.userProfile.userName.split(' ', 2)[1] : '';
5021
5985
  const viewMode = this.activatedRoute.snapshot.queryParams.viewMode ?
5022
5986
  this.activatedRoute.snapshot.queryParams.viewMode : '';
5987
+ // const token = this.keyCloakSvc.token
5023
5988
  const response = {
5024
5989
  subApplicationName: applicationName,
5025
5990
  requestId: 'LOADED',
@@ -5038,6 +6003,7 @@ class SubapplicationRespondService {
5038
6003
  user: {
5039
6004
  firstName,
5040
6005
  lastName,
6006
+ // token,
5041
6007
  userId: this.configSvc.userProfile.userId ? this.configSvc.userProfile.userId : '',
5042
6008
  roles: this.configSvc.userRoles ? Array.from(this.configSvc.userRoles) : [],
5043
6009
  },
@@ -5111,6 +6077,7 @@ class SubapplicationRespondService {
5111
6077
  this.configSvc.userProfile.userName.split(' ', 2)[1] : '';
5112
6078
  const viewMode = this.activatedRoute.snapshot.queryParams.viewMode ?
5113
6079
  this.activatedRoute.snapshot.queryParams.viewMode : '';
6080
+ // const token = this.keyCloakSvc.token
5114
6081
  const response = {
5115
6082
  subApplicationName: this.subAppname,
5116
6083
  requestId: 'CONTEXT_CHANGE',
@@ -5129,6 +6096,7 @@ class SubapplicationRespondService {
5129
6096
  user: {
5130
6097
  firstName,
5131
6098
  lastName,
6099
+ // token,
5132
6100
  userId: this.configSvc.userProfile.userId ? this.configSvc.userProfile.userId : '',
5133
6101
  roles: this.configSvc.userRoles ? Array.from(this.configSvc.userRoles) : [],
5134
6102
  },
@@ -5138,20 +6106,21 @@ class SubapplicationRespondService {
5138
6106
  this.contentWindowinfo.postMessage(response, '*');
5139
6107
  }
5140
6108
  }
5141
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SubapplicationRespondService, deps: [{ token: ConfigurationsService }, { token: WidgetContentService }, { token: i3$1.ActivatedRoute }, { token: i3$1.Router }, { token: EventService }, { token: TelemetryService }], target: i0.ɵɵFactoryTarget.Injectable }); }
5142
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SubapplicationRespondService, providedIn: 'root' }); }
6109
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SubapplicationRespondService, deps: [{ token: ConfigurationsService }, { token: WidgetContentService }, { token: i3$1.ActivatedRoute }, { token: i3$1.Router }, { token: EventService }, { token: TelemetryService }], target: i0.ɵɵFactoryTarget.Injectable }); }
6110
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SubapplicationRespondService, providedIn: 'root' }); }
5143
6111
  }
5144
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SubapplicationRespondService, decorators: [{
6112
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SubapplicationRespondService, decorators: [{
5145
6113
  type: Injectable,
5146
6114
  args: [{
5147
6115
  providedIn: 'root',
5148
6116
  }]
5149
- }], ctorParameters: function () { return [{ type: ConfigurationsService }, { type: WidgetContentService }, { type: i3$1.ActivatedRoute }, { type: i3$1.Router }, { type: EventService }, { type: TelemetryService }]; } });
6117
+ }], ctorParameters: () => [{ type: ConfigurationsService }, { type: WidgetContentService }, { type: i3$1.ActivatedRoute }, { type: i3$1.Router }, { type: EventService }, { type: TelemetryService }] });
5150
6118
 
5151
6119
  const endpoints = {
5152
6120
  userPref: '/apis/protected/v8/user/preference',
5153
6121
  };
5154
6122
  class UserPreferenceService {
6123
+ // do changes in the backend and update the store
5155
6124
  constructor(http, configurationSvc) {
5156
6125
  this.http = http;
5157
6126
  this.configurationSvc = configurationSvc;
@@ -5224,15 +6193,15 @@ class UserPreferenceService {
5224
6193
  return false;
5225
6194
  }
5226
6195
  }
5227
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UserPreferenceService, deps: [{ token: i1$2.HttpClient }, { token: ConfigurationsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
5228
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UserPreferenceService, providedIn: 'root' }); }
6196
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: UserPreferenceService, deps: [{ token: i1.HttpClient }, { token: ConfigurationsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
6197
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: UserPreferenceService, providedIn: 'root' }); }
5229
6198
  }
5230
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UserPreferenceService, decorators: [{
6199
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: UserPreferenceService, decorators: [{
5231
6200
  type: Injectable,
5232
6201
  args: [{
5233
6202
  providedIn: 'root',
5234
6203
  }]
5235
- }], ctorParameters: function () { return [{ type: i1$2.HttpClient }, { type: ConfigurationsService }]; } });
6204
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: ConfigurationsService }] });
5236
6205
 
5237
6206
  class MultilingualTranslationsService {
5238
6207
  constructor(translate, http, configSvc) {
@@ -5240,9 +6209,11 @@ class MultilingualTranslationsService {
5240
6209
  this.http = http;
5241
6210
  this.configSvc = configSvc;
5242
6211
  this.selectedLang = '';
6212
+ // website lang change
5243
6213
  this.languageSelected = new BehaviorSubject(true);
5244
6214
  this.languageSelectedObservable = this.languageSelected.asObservable();
5245
6215
  this.editProfileDetails = '/apis/proxies/v8/user/v1/extPatch';
6216
+ // this.getLanguage()
5246
6217
  }
5247
6218
  getLanguage() {
5248
6219
  if (this.configSvc.unMappedUser) {
@@ -5255,6 +6226,7 @@ class MultilingualTranslationsService {
5255
6226
  }
5256
6227
  else {
5257
6228
  if (localStorage.getItem('websiteLanguage')) {
6229
+ // this.translate.setDefaultLang('en')
5258
6230
  let lang = JSON.stringify(localStorage.getItem('websiteLanguage'));
5259
6231
  lang = lang.replace(/\"/g, '');
5260
6232
  this.translate.use(lang);
@@ -5267,6 +6239,7 @@ class MultilingualTranslationsService {
5267
6239
  }
5268
6240
  else {
5269
6241
  if (localStorage.getItem('websiteLanguage')) {
6242
+ // this.translate.setDefaultLang('en')
5270
6243
  let lang = JSON.stringify(localStorage.getItem('websiteLanguage'));
5271
6244
  lang = lang.replace(/\"/g, '');
5272
6245
  this.translate.use(lang);
@@ -5277,9 +6250,11 @@ class MultilingualTranslationsService {
5277
6250
  let nlabel = label;
5278
6251
  nlabel = nlabel && nlabel.replace(/\s/g, '');
5279
6252
  if (subtype) {
6253
+ // tslint:disable-next-line: prefer-template
5280
6254
  const translationKey = type + '.' + nlabel + subtype;
5281
6255
  return this.translate.instant(translationKey);
5282
6256
  }
6257
+ // tslint:disable-next-line: prefer-template
5283
6258
  const translationKeyn = type + '.' + nlabel;
5284
6259
  return this.translate.instant(translationKeyn);
5285
6260
  }
@@ -5295,9 +6270,11 @@ class MultilingualTranslationsService {
5295
6270
  nlabel = sl.join('');
5296
6271
  nlabel = nlabel.replace(/\s/g, '');
5297
6272
  if (subtype) {
6273
+ // tslint:disable-next-line: prefer-template
5298
6274
  const translationKey = type + '.' + nlabel + subtype;
5299
6275
  return this.translate.instant(translationKey);
5300
6276
  }
6277
+ // tslint:disable-next-line: prefer-template
5301
6278
  const translationKeyn = type + '.' + nlabel;
5302
6279
  return this.translate.instant(translationKeyn);
5303
6280
  }
@@ -5312,9 +6289,11 @@ class MultilingualTranslationsService {
5312
6289
  nlabel = sl.join('');
5313
6290
  nlabel = nlabel.replace(/\s/g, '');
5314
6291
  if (subtype) {
6292
+ // tslint:disable-next-line: prefer-template
5315
6293
  const translationKey = type + '.' + nlabel + subtype;
5316
6294
  return this.translate.instant(translationKey);
5317
6295
  }
6296
+ // tslint:disable-next-line: prefer-template
5318
6297
  const translationKeyn = type + '.' + nlabel;
5319
6298
  return this.translate.instant(translationKeyn);
5320
6299
  }
@@ -5339,21 +6318,20 @@ class MultilingualTranslationsService {
5339
6318
  this.editProfileDetailsAPI(reqUpdates).subscribe();
5340
6319
  }
5341
6320
  }
5342
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MultilingualTranslationsService, deps: [{ token: i5.TranslateService }, { token: i1$2.HttpClient }, { token: ConfigurationsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
5343
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MultilingualTranslationsService, providedIn: 'root' }); }
6321
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: MultilingualTranslationsService, deps: [{ token: i5.TranslateService }, { token: i1.HttpClient }, { token: ConfigurationsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
6322
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: MultilingualTranslationsService, providedIn: 'root' }); }
5344
6323
  }
5345
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MultilingualTranslationsService, decorators: [{
6324
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: MultilingualTranslationsService, decorators: [{
5346
6325
  type: Injectable,
5347
6326
  args: [{
5348
6327
  providedIn: 'root',
5349
6328
  }]
5350
- }], ctorParameters: function () { return [{ type: i5.TranslateService }, { type: i1$2.HttpClient }, { type: ConfigurationsService }]; } });
6329
+ }], ctorParameters: () => [{ type: i5.TranslateService }, { type: i1.HttpClient }, { type: ConfigurationsService }] });
5351
6330
 
5352
6331
  const PROXIES_V8 = '/apis/proxies/v8';
5353
- const API_END_POINTS = {
6332
+ const API_END_POINTS$1 = {
5354
6333
  ENROLL_CONTENT_DATA: `${PROXIES_V8}/learner/course/v4/user/enrollment/details`
5355
6334
  };
5356
- console.log('fghjk');
5357
6335
  class WidgetEnrollService {
5358
6336
  constructor(http, configSvc) {
5359
6337
  this.http = http;
@@ -5361,20 +6339,28 @@ class WidgetEnrollService {
5361
6339
  }
5362
6340
  fetchEnrollContentData(payload) {
5363
6341
  let userId = this.configSvc.userProfile && this.configSvc.userProfile.userId;
5364
- return this.http.post(`${API_END_POINTS.ENROLL_CONTENT_DATA}/${userId}`, payload);
6342
+ return this.http.post(`${API_END_POINTS$1.ENROLL_CONTENT_DATA}/${userId}`, payload);
5365
6343
  }
5366
6344
  fetchInternalEnrollmentData(userId, payload) {
5367
6345
  return this.http.post(`apis/proxies/v8/learner/course/v4/user/enrollment/list/${userId}`, payload);
5368
6346
  }
5369
6347
  fetchExternalEnrollmentData(payload) {
5370
6348
  return this.http.post(`apis/proxies/v8/cios-enroll/v1/courselist/byuserid`, payload).pipe(map((extRes) => {
5371
- if (extRes && extRes.result && extRes.result.courses) {
5372
- extRes.result.courses.forEach((ele) => {
6349
+ if (extRes && extRes?.result && extRes?.result?.courses) {
6350
+ extRes.result.courses = extRes?.result?.courses?.filter((ele) => {
6351
+ const completion = ele?.completionPercentage ?? ele?.completionpercentage ?? 0;
6352
+ return !((ele?.content?.contentPartner?.isActive === false ||
6353
+ ele?.content?.isActive === false) &&
6354
+ completion <= 100);
6355
+ });
6356
+ extRes?.result?.courses?.forEach((ele) => {
5373
6357
  ele['completionPercentage'] = ele['completionpercentage'];
5374
- ele['content']['issuedCertificates'] = ele['issued_certificates'] || [];
5375
- ele['lastContentAccessTime'] = ele.content && ele.content.lastUpdatedOn ? new Date(ele.content.lastUpdatedOn).getTime() : '';
5376
- if (ele.content) {
5377
- ele['content']['organisation'] = ele.content && ele.content.contentPartner && ele.content.contentPartner.contentPartnerName ? [ele.content.contentPartner.contentPartnerName] : [];
6358
+ if (ele?.content) {
6359
+ ele['content']['issuedCertificates'] = ele['issued_certificates'] || [];
6360
+ }
6361
+ ele['lastContentAccessTime'] = ele?.content?.lastUpdatedOn ? new Date(ele.content.lastUpdatedOn).getTime() : '';
6362
+ if (ele?.content) {
6363
+ ele['content']['organisation'] = ele?.content && ele?.content?.contentPartner && ele?.content?.contentPartner?.contentPartnerName ? [ele?.content?.contentPartner?.contentPartnerName] : [];
5378
6364
  ele['content']['completionStatus'] = ele['completionpercentage'] < 100 ? 1 : 2;
5379
6365
  ele['content']['creatorLogo'] = ele['content']['contentPartner']['link'];
5380
6366
  }
@@ -5389,15 +6375,15 @@ class WidgetEnrollService {
5389
6375
  fetchEnrollStats(userId) {
5390
6376
  return this.http.get(`apis/proxies/v8/learner/course/v4/user/enrollment/summary/${userId}`);
5391
6377
  }
5392
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WidgetEnrollService, deps: [{ token: i1$2.HttpClient }, { token: ConfigurationsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
5393
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WidgetEnrollService, providedIn: 'root' }); }
6378
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: WidgetEnrollService, deps: [{ token: i1.HttpClient }, { token: ConfigurationsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
6379
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: WidgetEnrollService, providedIn: 'root' }); }
5394
6380
  }
5395
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: WidgetEnrollService, decorators: [{
6381
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: WidgetEnrollService, decorators: [{
5396
6382
  type: Injectable,
5397
6383
  args: [{
5398
6384
  providedIn: 'root'
5399
6385
  }]
5400
- }], ctorParameters: function () { return [{ type: i1$2.HttpClient }, { type: ConfigurationsService }]; } });
6386
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: ConfigurationsService }] });
5401
6387
 
5402
6388
  class DataTransferService {
5403
6389
  setEnrollData(data) {
@@ -5410,15 +6396,385 @@ class DataTransferService {
5410
6396
  this.enrollData = null;
5411
6397
  }
5412
6398
  constructor() { }
5413
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DataTransferService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5414
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DataTransferService, providedIn: 'root' }); }
6399
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: DataTransferService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
6400
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: DataTransferService, providedIn: 'root' }); }
5415
6401
  }
5416
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DataTransferService, decorators: [{
6402
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: DataTransferService, decorators: [{
5417
6403
  type: Injectable,
5418
6404
  args: [{
5419
6405
  providedIn: 'root'
5420
6406
  }]
5421
- }], ctorParameters: function () { return []; } });
6407
+ }], ctorParameters: () => [] });
6408
+
6409
+ const API_END_POINTS = {
6410
+ NOTIFICATIONS_COUNT: `apis/proxies/v8/v1/notifications/unread/count`,
6411
+ RESET_NOTIFICATIONS_COUNT: `apis/proxies/v8/v1/notifications/reset/unread/count`,
6412
+ CONTENT_READ: (contentId) => `/apis/proxies/v8/action/content/v3/read/${contentId}`,
6413
+ CONNECTION_REQUEST: (pageNo, pageSize) => `apis/protected/v8/connections/v2/connections/requests/received?pageNo=${pageNo}&pageSize=${pageSize}`,
6414
+ };
6415
+ class NotificationsService {
6416
+ constructor(http, router) {
6417
+ this.http = http;
6418
+ this.router = router;
6419
+ this.closeDialogPop = new Subject();
6420
+ this.nofificationsCount = new Subject();
6421
+ }
6422
+ getNotificationsData() {
6423
+ return this.http.get(API_END_POINTS.NOTIFICATIONS_COUNT);
6424
+ }
6425
+ resetNotificationsCount() {
6426
+ return this.http.get(API_END_POINTS.RESET_NOTIFICATIONS_COUNT, {});
6427
+ }
6428
+ getContentData(contentId) {
6429
+ return this.http.get(`${API_END_POINTS.CONTENT_READ(contentId)}`).pipe(map((data) => {
6430
+ return data.result.content;
6431
+ }), retry(1));
6432
+ }
6433
+ handleReviewStatus(res, notification, roles, snackBar) {
6434
+ switch (res.reviewStatus) {
6435
+ case 'InReview': {
6436
+ if (roles.includes('CONTENT_REVIEWER')) {
6437
+ if (res.courseCategory === NsContent.ECourseCategory.MULTILINGUAL_COURSE) {
6438
+ const baseContent = Object.values(res.languageMapV1 || {}).find((item) => item.isBaseLang);
6439
+ this.router.navigate(['/author/editor/multilingual', 'edit', baseContent.id], {
6440
+ queryParams: {
6441
+ langEditId: res.identifier
6442
+ }
6443
+ });
6444
+ }
6445
+ else {
6446
+ this.router.navigate([`/author/editor/${notification.message.data.id}/collectionV2`], {
6447
+ queryParams: {
6448
+ preview: true, editMode: true,
6449
+ status: 'Review',
6450
+ reviewStatus: res.reviewStatus
6451
+ }
6452
+ });
6453
+ }
6454
+ }
6455
+ else {
6456
+ snackBar.open("You are not authorized to view this content.");
6457
+ }
6458
+ break;
6459
+ }
6460
+ case 'Reviewed': {
6461
+ if (roles.includes('CONTENT_PUBLISHER')) {
6462
+ if (res.courseCategory === NsContent.ECourseCategory.MULTILINGUAL_COURSE) {
6463
+ const baseContent = Object.values(res.languageMapV1 || {}).find((item) => item.isBaseLang);
6464
+ this.router.navigate(['/author/editor/multilingual', 'edit', baseContent.id], {
6465
+ queryParams: {
6466
+ langEditId: res.identifier
6467
+ }
6468
+ });
6469
+ }
6470
+ else {
6471
+ this.router.navigate([`/author/editor/${notification.message.data.id}/collectionV2`]);
6472
+ }
6473
+ }
6474
+ else {
6475
+ snackBar.open("You are not authorized to view this content.");
6476
+ }
6477
+ break;
6478
+ }
6479
+ }
6480
+ }
6481
+ handleEventRedirection(notification, environment) {
6482
+ if (notification.sub_category === 'EVENT_PUBLISHED') {
6483
+ let url = `${environment.portalsForNotifications.learner}/app/event-hub/home/${notification.message.data.id}`;
6484
+ window.open(url, '_blank');
6485
+ }
6486
+ else if (notification.sub_category === 'EVENT_ENROLLED') {
6487
+ let url = `${environment.portalsForNotifications.mdo}/app/home/events`;
6488
+ window.open(url, '_blank');
6489
+ }
6490
+ }
6491
+ handleDiscussionRedirection(notification, environment, roles) {
6492
+ if (notification.sub_category === 'LEARN_DISCUSSION_POST_COMMENT' || notification.sub_category === 'LEARN_DISCUSSION_POST_REPLY') {
6493
+ if (roles.includes('CONTENT_CREATOR')) {
6494
+ this.router.navigate([`/author/content-detail/${notification.message.data.id}/overview-v2`], {
6495
+ queryParams: {
6496
+ preview: true,
6497
+ editMode: true,
6498
+ commentId: notification.message.data.commentId
6499
+ }
6500
+ });
6501
+ }
6502
+ else {
6503
+ let url = `${environment.portalsForNotifications.learner}/app/toc/${notification.message.data.id}?commentId=${notification.message.data.commentId}`;
6504
+ window.open(url, '_blank');
6505
+ }
6506
+ }
6507
+ else {
6508
+ let url = `${environment.portalsForNotifications.learner}/app/discussion-forum-v2/community/${notification.message.data.communityId}/${notification.message.data.discussionId}`;
6509
+ window.open(url, '_blank');
6510
+ }
6511
+ }
6512
+ getMyRequests() {
6513
+ return this.http.get(`${API_END_POINTS.CONNECTION_REQUEST(0, 100)}`).pipe(map((data) => {
6514
+ return data.result.data;
6515
+ }), retry(1));
6516
+ }
6517
+ handleNetworkRedirection(notification, environment, snackBar) {
6518
+ if (notification.sub_category === 'REJECTED_CONNECTION_REQUEST') {
6519
+ snackBar.open('This request has been resolved or is no longer available.');
6520
+ }
6521
+ else if (notification.sub_category === 'SEND_CONNECTION_REQUEST') {
6522
+ this.getMyRequests().subscribe((res) => {
6523
+ if (res && res.length) {
6524
+ const connection = res.find((item) => item.userId === notification.message.data.id);
6525
+ if (connection) {
6526
+ let url = `${environment.portalsForNotifications.learner}/app/network-v2/connections`;
6527
+ window.open(url, '_blank');
6528
+ }
6529
+ else {
6530
+ snackBar.open('This request has been resolved or is no longer available.');
6531
+ }
6532
+ }
6533
+ else {
6534
+ snackBar.open('This request has been resolved or is no longer available.');
6535
+ }
6536
+ });
6537
+ }
6538
+ else {
6539
+ let url = `${environment.portalsForNotifications.learner}/app/network-v2/connections`;
6540
+ window.open(url, '_blank');
6541
+ }
6542
+ }
6543
+ handleTocRedirection(notification, environment, snackBar) {
6544
+ if (notification.sub_category === 'CONTENT_RETIRE') {
6545
+ if (notification.message.data.retiredDate) {
6546
+ const retireOn = moment(notification.message.data.retiredDate).format('MMMM D, YYYY');
6547
+ const today = moment().format('MMMM D, YYYY');
6548
+ if (moment(retireOn).isSameOrAfter(today)) {
6549
+ let url = `${environment.portalsForNotifications.learner}/app/toc/${notification.message.data.id}`;
6550
+ window.open(url, '_blank');
6551
+ }
6552
+ else {
6553
+ snackBar.open(`This content is scheduled to be retired on ${retireOn}. You can not access it now.`);
6554
+ }
6555
+ }
6556
+ else {
6557
+ snackBar.open('Something went wrong. Please try again later.');
6558
+ }
6559
+ }
6560
+ else if (notification.sub_category === 'CONTENT_RETIRED') {
6561
+ snackBar.open(`This content is retired. You can not access it now.`);
6562
+ }
6563
+ else {
6564
+ let url = `${environment.portalsForNotifications.learner}/app/toc/${notification.message.data.id}`;
6565
+ window.open(url, '_blank');
6566
+ }
6567
+ }
6568
+ handleRedirection(notification, environment, roles, snackBar) {
6569
+ if (notification?.category?.includes('CONTENT')) {
6570
+ if (['RETIRE_SCHEDULED', 'RETIRE_APPROVED', 'RETIRE_REJECTED'].includes(notification.sub_category)) {
6571
+ this.router.navigate([`author/cbp/me`], {
6572
+ queryParams: { status: 'live' }
6573
+ });
6574
+ }
6575
+ else {
6576
+ this.getContentData(notification.message.data.id).subscribe((res) => {
6577
+ if (res) {
6578
+ if (res.primaryCategory === 'Learning Resource' &&
6579
+ res.resourceCategory !== 'Learning Resource') {
6580
+ localStorage.setItem('isStandaloneResource', 'true');
6581
+ }
6582
+ else {
6583
+ localStorage.setItem('isStandaloneResource', 'false');
6584
+ }
6585
+ if (res.status === 'Live') {
6586
+ if (notification.sub_category === 'BP_ASSIGNMENT_SUBMIT' || notification.sub_category === 'BP_ADD_INSTRUCTOR') {
6587
+ this.router.navigate([`/author/content-detail/${notification.message.data.id}/batches/${notification.message.data.batchId}/assignments`]);
6588
+ }
6589
+ else {
6590
+ this.router.navigate([`/author/content-detail/${notification.message.data.id}/overview-v2`]);
6591
+ }
6592
+ }
6593
+ else if (res.status === 'Draft') {
6594
+ if (roles.includes('CONTENT_CREATOR')) {
6595
+ this.router.navigate([`/author/editor/${notification.message.data.id}/collectionV2`]);
6596
+ }
6597
+ else {
6598
+ snackBar.open('You are not authorized to view this content.');
6599
+ }
6600
+ }
6601
+ else if (res.status === 'Review') {
6602
+ this.handleReviewStatus(res, notification, roles, snackBar);
6603
+ }
6604
+ else if (res.status === 'Retired') {
6605
+ snackBar.open('This content is retired.');
6606
+ }
6607
+ }
6608
+ else {
6609
+ snackBar.open('Something went wrong');
6610
+ }
6611
+ });
6612
+ }
6613
+ }
6614
+ else if (notification.category === 'LEARN') {
6615
+ this.handleTocRedirection(notification, environment, snackBar);
6616
+ }
6617
+ else if (notification.category === 'EVENT') {
6618
+ this.handleEventRedirection(notification, environment);
6619
+ }
6620
+ else if (notification.category === 'DISCUSSION') {
6621
+ this.handleDiscussionRedirection(notification, environment, roles);
6622
+ }
6623
+ else if (notification.category === 'NETWORK') {
6624
+ this.handleNetworkRedirection(notification, environment, snackBar);
6625
+ }
6626
+ else {
6627
+ snackBar.open('Something went wrong');
6628
+ }
6629
+ }
6630
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: NotificationsService, deps: [{ token: i1.HttpClient }, { token: i3$1.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
6631
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: NotificationsService, providedIn: 'root' }); }
6632
+ }
6633
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: NotificationsService, decorators: [{
6634
+ type: Injectable,
6635
+ args: [{
6636
+ providedIn: 'root',
6637
+ }]
6638
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i3$1.Router }] });
6639
+
6640
+ class CustumDateSortingPipePipe {
6641
+ transform(value) {
6642
+ // tslint:disable-next-line:no-parameter-reassignment
6643
+ const datePipe = new DatePipe('en-US');
6644
+ // tslint:disable-next-line:no-parameter-reassignment
6645
+ value = datePipe.transform(value, 'MMM dd, yyyy H:mm');
6646
+ return value;
6647
+ }
6648
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: CustumDateSortingPipePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
6649
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: CustumDateSortingPipePipe, isStandalone: false, name: "custumDateSortingPipe" }); }
6650
+ }
6651
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: CustumDateSortingPipePipe, decorators: [{
6652
+ type: Pipe,
6653
+ args: [{
6654
+ name: 'custumDateSortingPipe',
6655
+ standalone: false
6656
+ }]
6657
+ }] });
6658
+
6659
+ class CustumdateSortingModule {
6660
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: CustumdateSortingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
6661
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: CustumdateSortingModule, declarations: [CustumDateSortingPipePipe], imports: [CommonModule], exports: [CustumDateSortingPipePipe] }); }
6662
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: CustumdateSortingModule, imports: [CommonModule] }); }
6663
+ }
6664
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: CustumdateSortingModule, decorators: [{
6665
+ type: NgModule,
6666
+ args: [{
6667
+ declarations: [CustumDateSortingPipePipe],
6668
+ imports: [
6669
+ CommonModule,
6670
+ ],
6671
+ exports: [CustumDateSortingPipePipe],
6672
+ }]
6673
+ }] });
6674
+
6675
+ class AcsendingOrderPipe {
6676
+ transform(value, order = '', column = '') {
6677
+ if (!value || order === '' || !order) {
6678
+ return value;
6679
+ } // no array
6680
+ if (!column || column === '') {
6681
+ // const sorted = this.sortOnCaseSensitivity(value, caseInsensitive)
6682
+ if (order === 'asc') {
6683
+ return value.sort();
6684
+ }
6685
+ return value.sort().reverse();
6686
+ } // sort 1d array
6687
+ if (value.length <= 1) {
6688
+ return value;
6689
+ } // array with only one item
6690
+ return orderBy(value, [column], [order]);
6691
+ }
6692
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: AcsendingOrderPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
6693
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: AcsendingOrderPipe, isStandalone: false, name: "acsendingOrder" }); }
6694
+ }
6695
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: AcsendingOrderPipe, decorators: [{
6696
+ type: Pipe,
6697
+ args: [{
6698
+ name: 'acsendingOrder',
6699
+ standalone: false
6700
+ }]
6701
+ }] });
6702
+
6703
+ class PipeAcsendingOrderModule {
6704
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeAcsendingOrderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
6705
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeAcsendingOrderModule, declarations: [AcsendingOrderPipe], imports: [CommonModule], exports: [AcsendingOrderPipe] }); }
6706
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeAcsendingOrderModule, imports: [CommonModule] }); }
6707
+ }
6708
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeAcsendingOrderModule, decorators: [{
6709
+ type: NgModule,
6710
+ args: [{
6711
+ declarations: [AcsendingOrderPipe],
6712
+ imports: [
6713
+ CommonModule,
6714
+ ],
6715
+ exports: [AcsendingOrderPipe],
6716
+ }]
6717
+ }] });
6718
+
6719
+ class PipeContentTypePipe {
6720
+ transform(value) {
6721
+ if (value) {
6722
+ switch (value) {
6723
+ case 'learning pathway': // depericated
6724
+ case 'Learning Pathway': // depericated
6725
+ case 'Program':
6726
+ return 'Program';
6727
+ case 'course':
6728
+ case 'Course':
6729
+ return 'Course';
6730
+ case 'collection':
6731
+ case 'Collection':
6732
+ case 'CourseUnit':
6733
+ return 'Module';
6734
+ case 'resource':
6735
+ case 'Resource':
6736
+ return 'Resource';
6737
+ case 'certification':
6738
+ case 'Certification':
6739
+ return 'Certification';
6740
+ default:
6741
+ return value.charAt(0).toUpperCase() + value.substr(1).toLowerCase();
6742
+ }
6743
+ }
6744
+ return '';
6745
+ }
6746
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeContentTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
6747
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeContentTypePipe, isStandalone: false, name: "pipeContentType" }); }
6748
+ }
6749
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeContentTypePipe, decorators: [{
6750
+ type: Pipe,
6751
+ args: [{
6752
+ name: 'pipeContentType',
6753
+ standalone: false
6754
+ }]
6755
+ }] });
6756
+
6757
+ class PipeContentTypeModule {
6758
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeContentTypeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
6759
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: PipeContentTypeModule, declarations: [PipeContentTypePipe], imports: [CommonModule], exports: [PipeContentTypePipe] }); }
6760
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeContentTypeModule, imports: [CommonModule] }); }
6761
+ }
6762
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: PipeContentTypeModule, decorators: [{
6763
+ type: NgModule,
6764
+ args: [{
6765
+ declarations: [PipeContentTypePipe],
6766
+ imports: [
6767
+ CommonModule,
6768
+ ],
6769
+ exports: [PipeContentTypePipe],
6770
+ }]
6771
+ }] });
6772
+
6773
+ // constants
6774
+
6775
+ /**
6776
+ * Generated bundle index. Do not edit.
6777
+ */
5422
6778
 
5423
- export { AuthKeycloakService, AuthMicrosoftService, ClassChangeOnScrollDirective, ClassChangeOnScrollModule, ConfigurationsService, DataTransferService, DefaultThumbnailDirective, DefaultThumbnailModule, EFeatures, EInstance, EventService, ExploreDetailResolve, HorizontalScrollerComponent, HorizontalScrollerModule, HorizontalScrollerV2Component, HorizontalScrollerV2Module, ImageCropComponent, ImageCropModule, ImageResponsiveDirective, ImageResponsiveModule, InViewPortDirective, InViewPortModule, LoggerService, LogoutComponent, LogoutModule, MarketingOfferingResolve, ModuleNameResolve, MultilingualTranslationsService, NPSGridService, NavigationDirective, NavigationModule, NsContent, OrderByPipe, PageNameResolve, PageResolve, PermissionDirective, PermissionModule, PipeCertificateImageURL, PipeCertificateImageURLModule, PipeConciseDateRangeModule, PipeConciseDateRangePipe, PipeCountTransformModule, PipeCountTransformPipe, PipeCourseNameModule, PipeCourseNamePipe, PipeDateConcatModule, PipeDateConcatPipe, PipeDurationTransformModule, PipeDurationTransformPipe, PipeEmailModule, PipeEmailPipe, PipeFilterModule, PipeFilterPipe, PipeFilterSearchModule, PipeFilterSearchPipe, PipeFilterV2Module, PipeFilterV2Pipe, PipeFilterV3Module, PipeFilterV3Pipe, PipeHtmlTagRemovalModule, PipeHtmlTagRemovalPipe, PipeLimitToModule, PipeLimitToPipe, PipeListFilterModule, PipeListFilterPipe, PipeNameTransformModule, PipeNameTransformPipe, PipeNicRelativeModule, PipeNicRelativePipe, PipeOrderByModule, PipeOrdinalModule, PipeOrdinalPipe, PipePartialContentModule, PipePartialContentPipe, PipePublicURL, PipePublicURLModule, PipeRelativeTimeModule, PipeRelativeTimePipe, PipeSafeSanitizerModule, PipeSafeSanitizerPipe, SubapplicationRespondService, TelemetryService, UserPreferenceService, UtilityService, ValueService, WidgetContentService, WidgetEnrollService, WsEvents, getStringifiedQueryParams };
6779
+ export { AcsendingOrderPipe, AuthKeycloakService, AuthMicrosoftService, ClassChangeOnScrollDirective, ClassChangeOnScrollModule, ConfigurationsService, CustumDateSortingPipePipe, CustumdateSortingModule, DataTransferService, DefaultThumbnailDirective, DefaultThumbnailModule, DomainConfService, EFeatures, EInstance, EventService, ExploreDetailResolve, HorizontalScrollerComponent, HorizontalScrollerModule, HorizontalScrollerV2Component, HorizontalScrollerV2Module, ImageCropComponent, ImageCropModule, ImageResponsiveDirective, ImageResponsiveModule, InViewPortDirective, InViewPortModule, LoggerService, LogoutComponent, LogoutModule, MarketingOfferingResolve, ModuleNameResolve, MultilingualTranslationsService, NPSGridService, NavigationDirective, NavigationModule, NotificationsService, NsContent, OrderByPipe, PageNameResolve, PageResolve, PermissionDirective, PermissionModule, PipeAcsendingOrderModule, PipeCertificateImageURL, PipeCertificateImageURLModule, PipeConciseDateRangeModule, PipeConciseDateRangePipe, PipeContentTypeModule, PipeContentTypePipe, PipeCountTransformModule, PipeCountTransformPipe, PipeCourseNameModule, PipeCourseNamePipe, PipeDateConcatModule, PipeDateConcatPipe, PipeDurationTransformModule, PipeDurationTransformPipe, PipeEmailModule, PipeEmailPipe, PipeFilterModule, PipeFilterPipe, PipeFilterSearchModule, PipeFilterSearchPipe, PipeFilterV2Module, PipeFilterV2Pipe, PipeFilterV3Module, PipeFilterV3Pipe, PipeHtmlTagRemovalModule, PipeHtmlTagRemovalPipe, PipeLimitToModule, PipeLimitToPipe, PipeListFilterModule, PipeListFilterPipe, PipeNameTransformModule, PipeNameTransformPipe, PipeNicRelativeModule, PipeNicRelativePipe, PipeOrderByModule, PipeOrdinalModule, PipeOrdinalPipe, PipePartialContentModule, PipePartialContentPipe, PipePublicURL, PipePublicURLModule, PipeRelativeTimeModule, PipeRelativeTimePipe, PipeSafeSanitizerModule, PipeSafeSanitizerPipe, SubapplicationRespondService, TelemetryService, UserPreferenceService, UtilityService, ValueService, WidgetContentService, WidgetEnrollService, WsEvents, getStringifiedQueryParams };
5424
6780
  //# sourceMappingURL=sunbird-cb-utils-v2.mjs.map