@sunbird-cb/utils 1.0.3 → 1.0.4

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 (245) hide show
  1. package/bundles/sunbird-cb-utils.umd.js +5078 -4904
  2. package/bundles/sunbird-cb-utils.umd.js.map +1 -1
  3. package/bundles/sunbird-cb-utils.umd.min.js +1 -1
  4. package/bundles/sunbird-cb-utils.umd.min.js.map +1 -1
  5. package/esm2015/lib/components/image-crop/image-crop.component.js +194 -194
  6. package/esm2015/lib/components/image-crop/image-crop.module.js +26 -26
  7. package/esm2015/lib/constants/features.enum.js +554 -554
  8. package/esm2015/lib/constants/instances.enum.js +4 -4
  9. package/esm2015/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.js +86 -86
  10. package/esm2015/lib/directives/class-change-on-scroll/class-change-on-scroll.module.js +14 -14
  11. package/esm2015/lib/directives/default-thumbnail/default-thumbnail.directive.js +37 -37
  12. package/esm2015/lib/directives/default-thumbnail/default-thumbnail.module.js +14 -14
  13. package/esm2015/lib/directives/image-responsive/image-responsive.directive.js +91 -91
  14. package/esm2015/lib/directives/image-responsive/image-responsive.module.js +14 -14
  15. package/esm2015/lib/directives/in-view-port/in-view-port.directive.js +67 -67
  16. package/esm2015/lib/directives/in-view-port/in-view-port.module.js +14 -14
  17. package/esm2015/lib/directives/navigation/navigation.directive.js +38 -38
  18. package/esm2015/lib/directives/navigation/navigation.module.js +14 -14
  19. package/esm2015/lib/directives/permission/permission.directive.js +10 -10
  20. package/esm2015/lib/directives/permission/permission.module.js +14 -14
  21. package/esm2015/lib/helpers/functions/getStringifiedQueryParams.js +8 -8
  22. package/esm2015/lib/helpers/horizontal-scroller/horizontal-scroller.component.js +98 -98
  23. package/esm2015/lib/helpers/horizontal-scroller/horizontal-scroller.module.js +18 -18
  24. package/esm2015/lib/helpers/logout/logout.component.js +55 -55
  25. package/esm2015/lib/helpers/logout/logout.module.js +17 -17
  26. package/esm2015/lib/models/contentRating.model.js +12 -12
  27. package/esm2015/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.js +12 -12
  28. package/esm2015/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.js +58 -58
  29. package/esm2015/lib/pipes/pipe-count-transform/pipe-count-transform.module.js +14 -14
  30. package/esm2015/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.js +32 -32
  31. package/esm2015/lib/pipes/pipe-date-concat/pipe-date-concat.module.js +14 -14
  32. package/esm2015/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.js +42 -42
  33. package/esm2015/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.js +14 -14
  34. package/esm2015/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.js +59 -59
  35. package/esm2015/lib/pipes/pipe-filter/pipe-filter.module.js +14 -14
  36. package/esm2015/lib/pipes/pipe-filter/pipe-filter.pipe.js +15 -15
  37. package/esm2015/lib/pipes/pipe-filter-search/pipe-filter-search.module.js +14 -14
  38. package/esm2015/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.js +29 -29
  39. package/esm2015/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.js +14 -14
  40. package/esm2015/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.js +11 -11
  41. package/esm2015/lib/pipes/pipe-limit-to/pipe-limit-to.module.js +14 -14
  42. package/esm2015/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.js +24 -24
  43. package/esm2015/lib/pipes/pipe-list-filter/pipe-list-filter.module.js +14 -14
  44. package/esm2015/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.js +16 -16
  45. package/esm2015/lib/pipes/pipe-name-transform/pipe-name-transform.module.js +14 -14
  46. package/esm2015/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.js +30 -30
  47. package/esm2015/lib/pipes/pipe-order-by/pipe-order-by.module.js +14 -14
  48. package/esm2015/lib/pipes/pipe-order-by/pipe-order-by.pipe.js +15 -15
  49. package/esm2015/lib/pipes/pipe-partial-content/pipe-partial-content.module.js +14 -14
  50. package/esm2015/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.js +17 -17
  51. package/esm2015/lib/pipes/pipe-relative-time/pipe-relative-time.module.js +14 -14
  52. package/esm2015/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.js +15 -15
  53. package/esm2015/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.js +14 -14
  54. package/esm2015/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.js +34 -34
  55. package/esm2015/lib/resolvers/explore-detail.resolver.js +88 -88
  56. package/esm2015/lib/resolvers/marketing-offering.resolve.js +39 -39
  57. package/esm2015/lib/resolvers/page.constant.js +3 -3
  58. package/esm2015/lib/resolvers/page.model.js +46 -46
  59. package/esm2015/lib/resolvers/page.resolver.js +89 -89
  60. package/esm2015/lib/resolvers/resolver.model.js +5 -5
  61. package/esm2015/lib/services/auth-keycloak.service.js +225 -225
  62. package/esm2015/lib/services/auth-microsoft.service.js +195 -195
  63. package/esm2015/lib/services/card-content.model.js +30 -30
  64. package/esm2015/lib/services/configurations.model.js +508 -490
  65. package/esm2015/lib/services/configurations.service.js +103 -103
  66. package/esm2015/lib/services/content-strip-multiple.model.js +74 -74
  67. package/esm2015/lib/services/event.model.js +163 -154
  68. package/esm2015/lib/services/event.service.js +53 -39
  69. package/esm2015/lib/services/logger.service.js +54 -54
  70. package/esm2015/lib/services/ms-office.model.js +7 -7
  71. package/esm2015/lib/services/subapplication-respond.service.js +224 -224
  72. package/esm2015/lib/services/telemetry.service.js +400 -278
  73. package/esm2015/lib/services/user-preference.model.js +28 -28
  74. package/esm2015/lib/services/user-preference.service.js +89 -89
  75. package/esm2015/lib/services/utility.service.js +99 -99
  76. package/esm2015/lib/services/value.service.js +30 -30
  77. package/esm2015/lib/services/widget-content.model.js +341 -341
  78. package/esm2015/lib/services/widget-content.service.js +191 -191
  79. package/esm2015/lib/services/widget-resolver.model.js +56 -56
  80. package/esm2015/lib/services/widget-search.model.js +125 -125
  81. package/esm2015/public-api.js +66 -66
  82. package/esm2015/sunbird-cb-utils.js +8 -8
  83. package/esm5/lib/components/image-crop/image-crop.component.js +199 -199
  84. package/esm5/lib/components/image-crop/image-crop.module.js +30 -30
  85. package/esm5/lib/constants/features.enum.js +554 -554
  86. package/esm5/lib/constants/instances.enum.js +4 -4
  87. package/esm5/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.js +104 -104
  88. package/esm5/lib/directives/class-change-on-scroll/class-change-on-scroll.module.js +18 -18
  89. package/esm5/lib/directives/default-thumbnail/default-thumbnail.directive.js +39 -39
  90. package/esm5/lib/directives/default-thumbnail/default-thumbnail.module.js +18 -18
  91. package/esm5/lib/directives/image-responsive/image-responsive.directive.js +94 -94
  92. package/esm5/lib/directives/image-responsive/image-responsive.module.js +18 -18
  93. package/esm5/lib/directives/in-view-port/in-view-port.directive.js +72 -72
  94. package/esm5/lib/directives/in-view-port/in-view-port.module.js +18 -18
  95. package/esm5/lib/directives/navigation/navigation.directive.js +40 -40
  96. package/esm5/lib/directives/navigation/navigation.module.js +18 -18
  97. package/esm5/lib/directives/permission/permission.directive.js +13 -13
  98. package/esm5/lib/directives/permission/permission.module.js +18 -18
  99. package/esm5/lib/helpers/functions/getStringifiedQueryParams.js +8 -8
  100. package/esm5/lib/helpers/horizontal-scroller/horizontal-scroller.component.js +102 -102
  101. package/esm5/lib/helpers/horizontal-scroller/horizontal-scroller.module.js +22 -22
  102. package/esm5/lib/helpers/logout/logout.component.js +61 -61
  103. package/esm5/lib/helpers/logout/logout.module.js +21 -21
  104. package/esm5/lib/models/contentRating.model.js +12 -12
  105. package/esm5/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.js +16 -16
  106. package/esm5/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.js +62 -62
  107. package/esm5/lib/pipes/pipe-count-transform/pipe-count-transform.module.js +18 -18
  108. package/esm5/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.js +36 -36
  109. package/esm5/lib/pipes/pipe-date-concat/pipe-date-concat.module.js +18 -18
  110. package/esm5/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.js +44 -44
  111. package/esm5/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.js +18 -18
  112. package/esm5/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.js +63 -63
  113. package/esm5/lib/pipes/pipe-filter/pipe-filter.module.js +18 -18
  114. package/esm5/lib/pipes/pipe-filter/pipe-filter.pipe.js +19 -19
  115. package/esm5/lib/pipes/pipe-filter-search/pipe-filter-search.module.js +18 -18
  116. package/esm5/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.js +37 -37
  117. package/esm5/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.js +18 -18
  118. package/esm5/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.js +15 -15
  119. package/esm5/lib/pipes/pipe-limit-to/pipe-limit-to.module.js +18 -18
  120. package/esm5/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.js +29 -29
  121. package/esm5/lib/pipes/pipe-list-filter/pipe-list-filter.module.js +18 -18
  122. package/esm5/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.js +20 -20
  123. package/esm5/lib/pipes/pipe-name-transform/pipe-name-transform.module.js +18 -18
  124. package/esm5/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.js +34 -34
  125. package/esm5/lib/pipes/pipe-order-by/pipe-order-by.module.js +18 -18
  126. package/esm5/lib/pipes/pipe-order-by/pipe-order-by.pipe.js +17 -17
  127. package/esm5/lib/pipes/pipe-partial-content/pipe-partial-content.module.js +18 -18
  128. package/esm5/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.js +33 -33
  129. package/esm5/lib/pipes/pipe-relative-time/pipe-relative-time.module.js +18 -18
  130. package/esm5/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.js +19 -19
  131. package/esm5/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.js +18 -18
  132. package/esm5/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.js +37 -37
  133. package/esm5/lib/resolvers/explore-detail.resolver.js +92 -92
  134. package/esm5/lib/resolvers/marketing-offering.resolve.js +42 -42
  135. package/esm5/lib/resolvers/page.constant.js +3 -3
  136. package/esm5/lib/resolvers/page.model.js +46 -46
  137. package/esm5/lib/resolvers/page.resolver.js +97 -97
  138. package/esm5/lib/resolvers/resolver.model.js +5 -5
  139. package/esm5/lib/services/auth-keycloak.service.js +293 -293
  140. package/esm5/lib/services/auth-microsoft.service.js +250 -250
  141. package/esm5/lib/services/card-content.model.js +30 -30
  142. package/esm5/lib/services/configurations.model.js +508 -490
  143. package/esm5/lib/services/configurations.service.js +105 -105
  144. package/esm5/lib/services/content-strip-multiple.model.js +74 -74
  145. package/esm5/lib/services/event.model.js +163 -154
  146. package/esm5/lib/services/event.service.js +55 -41
  147. package/esm5/lib/services/logger.service.js +72 -72
  148. package/esm5/lib/services/ms-office.model.js +7 -7
  149. package/esm5/lib/services/subapplication-respond.service.js +229 -229
  150. package/esm5/lib/services/telemetry.service.js +429 -296
  151. package/esm5/lib/services/user-preference.model.js +28 -28
  152. package/esm5/lib/services/user-preference.service.js +108 -108
  153. package/esm5/lib/services/utility.service.js +127 -127
  154. package/esm5/lib/services/value.service.js +32 -32
  155. package/esm5/lib/services/widget-content.model.js +341 -341
  156. package/esm5/lib/services/widget-content.service.js +213 -213
  157. package/esm5/lib/services/widget-resolver.model.js +56 -56
  158. package/esm5/lib/services/widget-search.model.js +125 -125
  159. package/esm5/public-api.js +66 -66
  160. package/esm5/sunbird-cb-utils.js +8 -8
  161. package/fesm2015/sunbird-cb-utils.js +4665 -4502
  162. package/fesm2015/sunbird-cb-utils.js.map +1 -1
  163. package/fesm5/sunbird-cb-utils.js +5073 -4899
  164. package/fesm5/sunbird-cb-utils.js.map +1 -1
  165. package/lib/components/image-crop/image-crop.component.d.ts +56 -56
  166. package/lib/components/image-crop/image-crop.module.d.ts +2 -2
  167. package/lib/constants/features.enum.d.ts +553 -553
  168. package/lib/constants/instances.enum.d.ts +3 -3
  169. package/lib/constants/misc.constants.d.ts +2 -2
  170. package/lib/directives/class-change-on-scroll/class-change-on-scroll.directive.d.ts +18 -18
  171. package/lib/directives/class-change-on-scroll/class-change-on-scroll.module.d.ts +2 -2
  172. package/lib/directives/default-thumbnail/default-thumbnail.directive.d.ts +9 -9
  173. package/lib/directives/default-thumbnail/default-thumbnail.module.d.ts +2 -2
  174. package/lib/directives/image-responsive/image-responsive.directive.d.ts +17 -17
  175. package/lib/directives/image-responsive/image-responsive.module.d.ts +2 -2
  176. package/lib/directives/in-view-port/in-view-port.directive.d.ts +11 -11
  177. package/lib/directives/in-view-port/in-view-port.module.d.ts +2 -2
  178. package/lib/directives/navigation/navigation.directive.d.ts +9 -9
  179. package/lib/directives/navigation/navigation.module.d.ts +2 -2
  180. package/lib/directives/permission/permission.directive.d.ts +3 -3
  181. package/lib/directives/permission/permission.module.d.ts +2 -2
  182. package/lib/helpers/functions/getStringifiedQueryParams.d.ts +3 -3
  183. package/lib/helpers/horizontal-scroller/horizontal-scroller.component.d.ts +18 -18
  184. package/lib/helpers/horizontal-scroller/horizontal-scroller.module.d.ts +2 -2
  185. package/lib/helpers/logout/logout.component.d.ts +18 -18
  186. package/lib/helpers/logout/logout.module.d.ts +2 -2
  187. package/lib/models/contentRating.model.d.ts +9 -9
  188. package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.module.d.ts +2 -2
  189. package/lib/pipes/pipe-concise-date-range/pipe-concise-date-range.pipe.d.ts +10 -10
  190. package/lib/pipes/pipe-count-transform/pipe-count-transform.module.d.ts +2 -2
  191. package/lib/pipes/pipe-count-transform/pipe-count-transform.pipe.d.ts +4 -4
  192. package/lib/pipes/pipe-date-concat/pipe-date-concat.module.d.ts +2 -2
  193. package/lib/pipes/pipe-date-concat/pipe-date-concat.pipe.d.ts +13 -13
  194. package/lib/pipes/pipe-duration-transform/pipe-duration-transform.module.d.ts +2 -2
  195. package/lib/pipes/pipe-duration-transform/pipe-duration-transform.pipe.d.ts +5 -5
  196. package/lib/pipes/pipe-filter/pipe-filter.module.d.ts +2 -2
  197. package/lib/pipes/pipe-filter/pipe-filter.pipe.d.ts +4 -4
  198. package/lib/pipes/pipe-filter-search/pipe-filter-search.module.d.ts +2 -2
  199. package/lib/pipes/pipe-filter-search/pipe-filter-search.pipe.d.ts +4 -4
  200. package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.module.d.ts +2 -2
  201. package/lib/pipes/pipe-html-tag-removal/pipe-html-tag-removal.pipe.d.ts +4 -4
  202. package/lib/pipes/pipe-limit-to/pipe-limit-to.module.d.ts +2 -2
  203. package/lib/pipes/pipe-limit-to/pipe-limit-to.pipe.d.ts +4 -4
  204. package/lib/pipes/pipe-list-filter/pipe-list-filter.module.d.ts +2 -2
  205. package/lib/pipes/pipe-list-filter/pipe-list-filter.pipe.d.ts +4 -4
  206. package/lib/pipes/pipe-name-transform/pipe-name-transform.module.d.ts +2 -2
  207. package/lib/pipes/pipe-name-transform/pipe-name-transform.pipe.d.ts +10 -10
  208. package/lib/pipes/pipe-order-by/pipe-order-by.module.d.ts +2 -2
  209. package/lib/pipes/pipe-order-by/pipe-order-by.pipe.d.ts +9 -9
  210. package/lib/pipes/pipe-partial-content/pipe-partial-content.module.d.ts +2 -2
  211. package/lib/pipes/pipe-partial-content/pipe-partial-content.pipe.d.ts +4 -4
  212. package/lib/pipes/pipe-relative-time/pipe-relative-time.module.d.ts +2 -2
  213. package/lib/pipes/pipe-relative-time/pipe-relative-time.pipe.d.ts +4 -4
  214. package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.module.d.ts +2 -2
  215. package/lib/pipes/pipe-safe-sanitizer/pipe-safe-sanitizer.pipe.d.ts +7 -7
  216. package/lib/resolvers/explore-detail.resolver.d.ts +16 -16
  217. package/lib/resolvers/marketing-offering.resolve.d.ts +10 -10
  218. package/lib/resolvers/page.constant.d.ts +1 -1
  219. package/lib/resolvers/page.model.d.ts +40 -40
  220. package/lib/resolvers/page.resolver.d.ts +17 -17
  221. package/lib/resolvers/resolver.model.d.ts +4 -4
  222. package/lib/services/auth-keycloak.service.d.ts +27 -27
  223. package/lib/services/auth-microsoft.service.d.ts +30 -30
  224. package/lib/services/card-content.model.d.ts +29 -29
  225. package/lib/services/configurations.model.d.ts +487 -473
  226. package/lib/services/configurations.service.d.ts +49 -49
  227. package/lib/services/content-strip-multiple.model.d.ts +79 -79
  228. package/lib/services/event.model.d.ts +137 -129
  229. package/lib/services/event.service.d.ts +9 -8
  230. package/lib/services/logger.service.d.ts +15 -15
  231. package/lib/services/ms-office.model.d.ts +6 -6
  232. package/lib/services/subapplication-respond.service.d.ts +25 -25
  233. package/lib/services/telemetry.service.d.ts +39 -33
  234. package/lib/services/user-preference.model.d.ts +26 -26
  235. package/lib/services/user-preference.service.d.ts +11 -11
  236. package/lib/services/utility.service.d.ts +23 -23
  237. package/lib/services/value.service.d.ts +8 -8
  238. package/lib/services/widget-content.model.d.ts +314 -314
  239. package/lib/services/widget-content.service.d.ts +49 -49
  240. package/lib/services/widget-resolver.model.d.ts +48 -48
  241. package/lib/services/widget-search.model.d.ts +114 -114
  242. package/package.json +1 -1
  243. package/public-api.d.ts +66 -66
  244. package/sunbird-cb-utils.d.ts +8 -8
  245. package/sunbird-cb-utils.metadata.json +1 -1
@@ -1,29 +1,29 @@
1
- export function IUserPreference() { }
2
- if (false) {
3
- IUserPreference.prototype.selectedTheme;
4
- IUserPreference.prototype.selectedFont;
5
- IUserPreference.prototype.selectedLocale;
6
- IUserPreference.prototype.isDarkMode;
7
- IUserPreference.prototype.isIntranetAllowed;
8
- IUserPreference.prototype.isRTL;
9
- IUserPreference.prototype.colorPallet;
10
- IUserPreference.prototype.defaultCardType;
11
- IUserPreference.prototype.pinnedApps;
12
- IUserPreference.prototype.selectedLangGroup;
13
- IUserPreference.prototype.completedActivity;
14
- IUserPreference.prototype.completedTour;
15
- IUserPreference.prototype.profileSettings;
16
- }
17
- export function IProfile() { }
18
- if (false) {
19
- IProfile.prototype.showProfilePicture;
20
- IProfile.prototype.showUserInterest;
21
- IProfile.prototype.showKbFollowed;
22
- IProfile.prototype.showPlaylist;
23
- IProfile.prototype.showAuthoredByMe;
24
- IProfile.prototype.showReviewedByMe;
25
- IProfile.prototype.showBadgeDetails;
26
- IProfile.prototype.showBlogs;
27
- IProfile.prototype.showQnA;
28
- }
1
+ export function IUserPreference() { }
2
+ if (false) {
3
+ IUserPreference.prototype.selectedTheme;
4
+ IUserPreference.prototype.selectedFont;
5
+ IUserPreference.prototype.selectedLocale;
6
+ IUserPreference.prototype.isDarkMode;
7
+ IUserPreference.prototype.isIntranetAllowed;
8
+ IUserPreference.prototype.isRTL;
9
+ IUserPreference.prototype.colorPallet;
10
+ IUserPreference.prototype.defaultCardType;
11
+ IUserPreference.prototype.pinnedApps;
12
+ IUserPreference.prototype.selectedLangGroup;
13
+ IUserPreference.prototype.completedActivity;
14
+ IUserPreference.prototype.completedTour;
15
+ IUserPreference.prototype.profileSettings;
16
+ }
17
+ export function IProfile() { }
18
+ if (false) {
19
+ IProfile.prototype.showProfilePicture;
20
+ IProfile.prototype.showUserInterest;
21
+ IProfile.prototype.showKbFollowed;
22
+ IProfile.prototype.showPlaylist;
23
+ IProfile.prototype.showAuthoredByMe;
24
+ IProfile.prototype.showReviewedByMe;
25
+ IProfile.prototype.showBadgeDetails;
26
+ IProfile.prototype.showBlogs;
27
+ IProfile.prototype.showQnA;
28
+ }
29
29
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlci1wcmVmZXJlbmNlLm1vZGVsLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtY2IvdXRpbHMvIiwic291cmNlcyI6WyJsaWIvc2VydmljZXMvdXNlci1wcmVmZXJlbmNlLm1vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUF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IGJvb2xlYW5cclxuICBzaG93VXNlckludGVyZXN0OiBib29sZWFuXHJcbiAgc2hvd0tiRm9sbG93ZWQ6IGJvb2xlYW5cclxuICBzaG93UGxheWxpc3Q6IGJvb2xlYW5cclxuICBzaG93QXV0aG9yZWRCeU1lOiBib29sZWFuXHJcbiAgc2hvd1Jldmlld2VkQnlNZTogYm9vbGVhblxyXG4gIHNob3dCYWRnZURldGFpbHM6IGJvb2xlYW5cclxuICBzaG93QmxvZ3M6IGJvb2xlYW5cclxuICBzaG93UW5BOiBib29sZWFuXHJcbiAgLy8gc2hvd0xlYXJuaW5nVGltZTogYm9vbGVhblxyXG4gIC8vIHNob3dMZWFybmluZ1BvaW50czogYm9vbGVhblxyXG4gIC8vIHNob3dMYXN0Vmlld2VkOiBib29sZWFuXHJcbiAgLy8gc2hvd0dvYWxzOiBib29sZWFuXHJcbiAgLy8gc2hvd1RvcGljc0ZvbGxvd2VkOiBib29sZWFuXHJcbiAgLy8gc2hvd0Fzc2Vzc21lbnREZXRhaWxzOiBib29sZWFuXHJcbiAgLy8gc2hvd0NlcnRpZmljYXRpb25EZXRhaWxzOiBib29sZWFuXHJcbiAgLy8gc2hvd1VzZXJTa2lsbHM6IGJvb2xlYW5cclxufVxyXG4iXX0=
@@ -1,90 +1,90 @@
1
- import * as tslib_1 from "tslib";
2
- import { Injectable } from '@angular/core';
3
- import { HttpClient } from '@angular/common/http';
4
- import { ConfigurationsService } from './configurations.service';
5
- import { debounceTime, retry, catchError } from 'rxjs/operators';
6
- import { of } from 'rxjs';
7
- import * as i0 from "@angular/core";
8
- import * as i1 from "@angular/common/http";
9
- import * as i2 from "./configurations.service";
10
- const endpoints = {
11
- userPref: '/apis/protected/v8/user/preference',
12
- };
13
- export class UserPreferenceService {
14
- constructor(http, configurationSvc) {
15
- this.http = http;
16
- this.configurationSvc = configurationSvc;
17
- }
18
- initialize() {
19
- this.configurationSvc.prefChangeNotifier
20
- .pipe(debounceTime(250))
21
- .subscribe(((changedUserPref) => {
22
- if (this.configurationSvc.isAuthenticated) {
23
- this.saveUserPreference(changedUserPref);
24
- }
25
- }));
26
- }
27
- fetchUserPreference() {
28
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
29
- const pref = yield this.http.get(endpoints.userPref).toPromise();
30
- return pref;
31
- });
32
- }
33
- saveUserPreference(changedUserPref) {
34
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
35
- try {
36
- if (!changedUserPref) {
37
- return false;
38
- }
39
- const newUserPref = Object.assign({}, this.configurationSvc.userPreference, { pinnedApps: (changedUserPref && changedUserPref.pinnedApps) ||
40
- (this.configurationSvc.userPreference &&
41
- this.configurationSvc.userPreference.pinnedApps) ||
42
- '', isDarkMode: this.configurationSvc.isDarkMode, isRTL: this.configurationSvc.isRTL, selectedTheme: (this.configurationSvc.activeThemeObject &&
43
- this.configurationSvc.activeThemeObject.themeClass) ||
44
- '', selectedFont: (this.configurationSvc.activeFontObject &&
45
- this.configurationSvc.activeFontObject.fontClass) ||
46
- '', selectedLangGroup: (this.configurationSvc.userPreference &&
47
- this.configurationSvc.userPreference.selectedLangGroup) ||
48
- '', selectedLocale: (this.configurationSvc.userPreference &&
49
- this.configurationSvc.userPreference.selectedLocale) ||
50
- '', colorPallet: (this.configurationSvc.userPreference &&
51
- this.configurationSvc.userPreference.colorPallet) ||
52
- [], defaultCardType: (this.configurationSvc.userPreference &&
53
- this.configurationSvc.userPreference.defaultCardType) ||
54
- '', completedActivity: (this.configurationSvc.userPreference &&
55
- this.configurationSvc.userPreference.completedActivity) ||
56
- [] }, (changedUserPref || {}), { completedTour: this.configurationSvc.completedTour, profileSettings: (this.configurationSvc.userPreference &&
57
- this.configurationSvc.userPreference.profileSettings) ||
58
- this.configurationSvc.profileSettings });
59
- const oldUserPref = this.configurationSvc.userPreference;
60
- this.configurationSvc.userPreference = newUserPref;
61
- yield this.http
62
- .put(endpoints.userPref, newUserPref)
63
- .pipe(retry(3), catchError((err => {
64
- this.configurationSvc.userPreference = oldUserPref;
65
- return of(err);
66
- })))
67
- .toPromise();
68
- return true;
69
- }
70
- catch (err) {
71
- return false;
72
- }
73
- });
74
- }
75
- }
76
- UserPreferenceService.decorators = [
77
- { type: Injectable, args: [{
78
- providedIn: 'root',
79
- },] }
80
- ];
81
- UserPreferenceService.ctorParameters = () => [
82
- { type: HttpClient },
83
- { type: ConfigurationsService }
84
- ];
85
- /** @nocollapse */ UserPreferenceService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function UserPreferenceService_Factory() { return new UserPreferenceService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.ConfigurationsService)); }, token: UserPreferenceService, providedIn: "root" });
86
- if (false) {
87
- UserPreferenceService.prototype.http;
88
- UserPreferenceService.prototype.configurationSvc;
89
- }
1
+ import * as tslib_1 from "tslib";
2
+ import { Injectable } from '@angular/core';
3
+ import { HttpClient } from '@angular/common/http';
4
+ import { ConfigurationsService } from './configurations.service';
5
+ import { debounceTime, retry, catchError } from 'rxjs/operators';
6
+ import { of } from 'rxjs';
7
+ import * as i0 from "@angular/core";
8
+ import * as i1 from "@angular/common/http";
9
+ import * as i2 from "./configurations.service";
10
+ const endpoints = {
11
+ userPref: '/apis/protected/v8/user/preference',
12
+ };
13
+ export class UserPreferenceService {
14
+ constructor(http, configurationSvc) {
15
+ this.http = http;
16
+ this.configurationSvc = configurationSvc;
17
+ }
18
+ initialize() {
19
+ this.configurationSvc.prefChangeNotifier
20
+ .pipe(debounceTime(250))
21
+ .subscribe(((changedUserPref) => {
22
+ if (this.configurationSvc.isAuthenticated) {
23
+ this.saveUserPreference(changedUserPref);
24
+ }
25
+ }));
26
+ }
27
+ fetchUserPreference() {
28
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
29
+ const pref = yield this.http.get(endpoints.userPref).toPromise();
30
+ return pref;
31
+ });
32
+ }
33
+ saveUserPreference(changedUserPref) {
34
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
35
+ try {
36
+ if (!changedUserPref) {
37
+ return false;
38
+ }
39
+ const newUserPref = Object.assign({}, this.configurationSvc.userPreference, { pinnedApps: (changedUserPref && changedUserPref.pinnedApps) ||
40
+ (this.configurationSvc.userPreference &&
41
+ this.configurationSvc.userPreference.pinnedApps) ||
42
+ '', isDarkMode: this.configurationSvc.isDarkMode, isRTL: this.configurationSvc.isRTL, selectedTheme: (this.configurationSvc.activeThemeObject &&
43
+ this.configurationSvc.activeThemeObject.themeClass) ||
44
+ '', selectedFont: (this.configurationSvc.activeFontObject &&
45
+ this.configurationSvc.activeFontObject.fontClass) ||
46
+ '', selectedLangGroup: (this.configurationSvc.userPreference &&
47
+ this.configurationSvc.userPreference.selectedLangGroup) ||
48
+ '', selectedLocale: (this.configurationSvc.userPreference &&
49
+ this.configurationSvc.userPreference.selectedLocale) ||
50
+ '', colorPallet: (this.configurationSvc.userPreference &&
51
+ this.configurationSvc.userPreference.colorPallet) ||
52
+ [], defaultCardType: (this.configurationSvc.userPreference &&
53
+ this.configurationSvc.userPreference.defaultCardType) ||
54
+ '', completedActivity: (this.configurationSvc.userPreference &&
55
+ this.configurationSvc.userPreference.completedActivity) ||
56
+ [] }, (changedUserPref || {}), { completedTour: this.configurationSvc.completedTour, profileSettings: (this.configurationSvc.userPreference &&
57
+ this.configurationSvc.userPreference.profileSettings) ||
58
+ this.configurationSvc.profileSettings });
59
+ const oldUserPref = this.configurationSvc.userPreference;
60
+ this.configurationSvc.userPreference = newUserPref;
61
+ yield this.http
62
+ .put(endpoints.userPref, newUserPref)
63
+ .pipe(retry(3), catchError((err => {
64
+ this.configurationSvc.userPreference = oldUserPref;
65
+ return of(err);
66
+ })))
67
+ .toPromise();
68
+ return true;
69
+ }
70
+ catch (err) {
71
+ return false;
72
+ }
73
+ });
74
+ }
75
+ }
76
+ UserPreferenceService.decorators = [
77
+ { type: Injectable, args: [{
78
+ providedIn: 'root',
79
+ },] }
80
+ ];
81
+ UserPreferenceService.ctorParameters = () => [
82
+ { type: HttpClient },
83
+ { type: ConfigurationsService }
84
+ ];
85
+ /** @nocollapse */ UserPreferenceService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function UserPreferenceService_Factory() { return new UserPreferenceService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.ConfigurationsService)); }, token: UserPreferenceService, providedIn: "root" });
86
+ if (false) {
87
+ UserPreferenceService.prototype.http;
88
+ UserPreferenceService.prototype.configurationSvc;
89
+ }
90
90
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlci1wcmVmZXJlbmNlLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1jYi91dGlscy8iLCJzb3VyY2VzIjpbImxpYi9zZXJ2aWNlcy91c2VyLXByZWZlcmVuY2Uuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQTtBQUMxQyxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sc0JBQXNCLENBQUE7QUFFakQsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sMEJBQTBCLENBQUE7QUFDaEUsT0FBTyxFQUFFLFlBQVksRUFBRSxLQUFLLEVBQUUsVUFBVSxFQUFFLE1BQU0sZ0JBQWdCLENBQUE7QUFDaEUsT0FBTyxFQUFFLEVBQUUsRUFBRSxNQUFNLE1BQU0sQ0FBQTs7OztNQUNuQixTQUFTLEdBQUc7SUFDaEIsUUFBUSxFQUFFLG9DQUFvQztDQUMvQztBQUlELE1BQU0sT0FBTyxxQkFBcUI7SUFHaEMsWUFBb0IsSUFBZ0IsRUFBVSxnQkFBdUM7UUFBakUsU0FBSSxHQUFKLElBQUksQ0FBWTtRQUFVLHFCQUFnQixHQUFoQixnQkFBZ0IsQ0FBdUI7SUFBSSxDQUFDO0lBRTFGLFVBQVU7UUFDUixJQUFJLENBQUMsZ0JBQWdCLENBQUMsa0J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xyXG4gICAgICBhd2FpdCB0aGlzLmh0dHBcclxuICAgICAgICAucHV0KGVuZHBvaW50cy51c2VyUHJlZiwgbmV3VXNlclByZWYpXHJcbiAgICAgICAgLnBpcGUoXHJcbiAgICAgICAgICByZXRyeSgzKSxcclxuICAgICAgICAgIGNhdGNoRXJyb3IoZXJyID0+IHtcclxuICAgICAgICAgICAgdGhpcy5jb25maWd1cmF0aW9uU3ZjLnVzZXJQcmVmZXJlbmNlID0gb2xkVXNlclByZWZcclxuICAgICAgICAgICAgcmV0dXJuIG9mKGVycilcclxuICAgICAgICAgIH0pLFxyXG4gICAgICAgIClcclxuICAgICAgICAudG9Qcm9taXNlKClcclxuICAgICAgcmV0dXJuIHRydWVcclxuICAgIH0gY2F0Y2ggKGVycikge1xyXG4gICAgICByZXR1cm4gZmFsc2VcclxuICAgIH1cclxuICB9XHJcbn1cclxuIl19
@@ -1,100 +1,100 @@
1
- import { Platform } from '@angular/cdk/platform';
2
- import { HttpClient } from '@angular/common/http';
3
- import { Injectable } from '@angular/core';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "@angular/common/http";
6
- import * as i2 from "@angular/cdk/platform";
7
- function IWindowMobileAppModified() { }
8
- if (false) {
9
- IWindowMobileAppModified.prototype.appRef;
10
- IWindowMobileAppModified.prototype.webkit;
11
- }
12
- const RANDOM_ID_PER_USER = 0;
13
- function IRecursiveData() { }
14
- if (false) {
15
- IRecursiveData.prototype.identifier;
16
- IRecursiveData.prototype.children;
17
- }
18
- export class UtilityService {
19
- constructor(http, platform) {
20
- this.http = http;
21
- this.platform = platform;
22
- }
23
- get randomId() {
24
- return RANDOM_ID_PER_USER + 1;
25
- }
26
- getJson(url) {
27
- return this.http.get(url);
28
- }
29
- getLeafNodes(node, nodes) {
30
- if ((node.children || []).length === 0) {
31
- nodes.push(node);
32
- }
33
- else {
34
- if (node.children) {
35
- node.children.forEach((child => {
36
- this.getLeafNodes(child, nodes);
37
- }));
38
- }
39
- }
40
- return nodes;
41
- }
42
- getPath(node, id) {
43
- const path = [];
44
- this.hasPath(node, path, id);
45
- return path;
46
- }
47
- hasPath(node, pathArr, id) {
48
- if (node == null) {
49
- return false;
50
- }
51
- pathArr.push(node);
52
- if (node.identifier === id) {
53
- return true;
54
- }
55
- const children = node.children || [];
56
- if (children.some((u => this.hasPath(u, pathArr, id)))) {
57
- return true;
58
- }
59
- pathArr.pop();
60
- return false;
61
- }
62
- get isMobile() {
63
- if (this.isIos || this.isAndroid) {
64
- return true;
65
- }
66
- return false;
67
- }
68
- get isIos() {
69
- return this.platform.IOS;
70
- }
71
- get isAndroid() {
72
- return this.platform.ANDROID;
73
- }
74
- get isAndroidApp() {
75
- return Boolean(window.appRef);
76
- }
77
- get iOsAppRef() {
78
- if (window.webkit &&
79
- window.webkit.messageHandlers &&
80
- window.webkit.messageHandlers.appRef) {
81
- return window.webkit.messageHandlers.appRef;
82
- }
83
- return null;
84
- }
85
- }
86
- UtilityService.decorators = [
87
- { type: Injectable, args: [{
88
- providedIn: 'root',
89
- },] }
90
- ];
91
- UtilityService.ctorParameters = () => [
92
- { type: HttpClient },
93
- { type: Platform }
94
- ];
95
- /** @nocollapse */ UtilityService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function UtilityService_Factory() { return new UtilityService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.Platform)); }, token: UtilityService, providedIn: "root" });
96
- if (false) {
97
- UtilityService.prototype.http;
98
- UtilityService.prototype.platform;
99
- }
1
+ import { Platform } from '@angular/cdk/platform';
2
+ import { HttpClient } from '@angular/common/http';
3
+ import { Injectable } from '@angular/core';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "@angular/common/http";
6
+ import * as i2 from "@angular/cdk/platform";
7
+ function IWindowMobileAppModified() { }
8
+ if (false) {
9
+ IWindowMobileAppModified.prototype.appRef;
10
+ IWindowMobileAppModified.prototype.webkit;
11
+ }
12
+ const RANDOM_ID_PER_USER = 0;
13
+ function IRecursiveData() { }
14
+ if (false) {
15
+ IRecursiveData.prototype.identifier;
16
+ IRecursiveData.prototype.children;
17
+ }
18
+ export class UtilityService {
19
+ constructor(http, platform) {
20
+ this.http = http;
21
+ this.platform = platform;
22
+ }
23
+ get randomId() {
24
+ return RANDOM_ID_PER_USER + 1;
25
+ }
26
+ getJson(url) {
27
+ return this.http.get(url);
28
+ }
29
+ getLeafNodes(node, nodes) {
30
+ if ((node.children || []).length === 0) {
31
+ nodes.push(node);
32
+ }
33
+ else {
34
+ if (node.children) {
35
+ node.children.forEach((child => {
36
+ this.getLeafNodes(child, nodes);
37
+ }));
38
+ }
39
+ }
40
+ return nodes;
41
+ }
42
+ getPath(node, id) {
43
+ const path = [];
44
+ this.hasPath(node, path, id);
45
+ return path;
46
+ }
47
+ hasPath(node, pathArr, id) {
48
+ if (node == null) {
49
+ return false;
50
+ }
51
+ pathArr.push(node);
52
+ if (node.identifier === id) {
53
+ return true;
54
+ }
55
+ const children = node.children || [];
56
+ if (children.some((u => this.hasPath(u, pathArr, id)))) {
57
+ return true;
58
+ }
59
+ pathArr.pop();
60
+ return false;
61
+ }
62
+ get isMobile() {
63
+ if (this.isIos || this.isAndroid) {
64
+ return true;
65
+ }
66
+ return false;
67
+ }
68
+ get isIos() {
69
+ return this.platform.IOS;
70
+ }
71
+ get isAndroid() {
72
+ return this.platform.ANDROID;
73
+ }
74
+ get isAndroidApp() {
75
+ return Boolean(window.appRef);
76
+ }
77
+ get iOsAppRef() {
78
+ if (window.webkit &&
79
+ window.webkit.messageHandlers &&
80
+ window.webkit.messageHandlers.appRef) {
81
+ return window.webkit.messageHandlers.appRef;
82
+ }
83
+ return null;
84
+ }
85
+ }
86
+ UtilityService.decorators = [
87
+ { type: Injectable, args: [{
88
+ providedIn: 'root',
89
+ },] }
90
+ ];
91
+ UtilityService.ctorParameters = () => [
92
+ { type: HttpClient },
93
+ { type: Platform }
94
+ ];
95
+ /** @nocollapse */ UtilityService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function UtilityService_Factory() { return new UtilityService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.Platform)); }, token: UtilityService, providedIn: "root" });
96
+ if (false) {
97
+ UtilityService.prototype.http;
98
+ UtilityService.prototype.platform;
99
+ }
100
100
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbGl0eS5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtY2IvdXRpbHMvIiwic291cmNlcyI6WyJsaWIvc2VydmljZXMvdXRpbGl0eS5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQTtBQUNoRCxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sc0JBQXNCLENBQUE7QUFDakQsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQTs7OztBQUUxQyx1Q0FHQzs7SUFGQywwQ0FBWTtJQUNaLDBDQUFZOztNQUlSLGtCQUFrQixHQUFHLENBQUM7QUFDNUIsNkJBR0M7O0lBRkMsb0NBQWtCO0lBQ2xCLGtDQUFpQzs7QUFNbkMsTUFBTSxPQUFPLGNBQWM7SUFDekIsWUFDVSxJQUFnQixFQUNoQixRQUFrQjtRQURsQixTQUFJLEdBQUosSUFBSSxDQUFZO1FBQ2hCLGFBQVEsR0FBUixRQUFRLENBQVU7SUFDeEIsQ0FBQztJQUVMLElBQUksUUFBUTtRQUNWLE9BQU8sa0JBQWtCLEdBQUcsQ0FBQyxDQUFBO0lBQy9CLENBQUM7SUFFRCxPQUFPLENBQUksR0FBVztRQUNwQixPQUFPLElBQUksQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFJLEdBQUcsQ0FBQyxDQUFBO0lBQzlCLENBQUM7SUFFRCxZQUFZLENBQTJCLElBQU8sRUFBRSxLQUFVO1FBQ3hELElBQUksQ0FBQy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0aCh1LCBwYXRoQXJyLCBpZCkpKSB7XHJcbiAgICAgIHJldHVybiB0cnVlXHJcbiAgICB9XHJcbiAgICBwYXRoQXJyLnBvcCgpXHJcbiAgICByZXR1cm4gZmFsc2VcclxuICB9XHJcblxyXG4gIGdldCBpc01vYmlsZSgpOiBib29sZWFuIHtcclxuICAgIGlmICh0aGlzLmlzSW9zIHx8IHRoaXMuaXNBbmRyb2lkKSB7XHJcbiAgICAgIHJldHVybiB0cnVlXHJcbiAgICB9XHJcbiAgICByZXR1cm4gZmFsc2VcclxuICB9XHJcblxyXG4gIGdldCBpc0lvcygpOiBib29sZWFuIHtcclxuICAgIHJldHVybiB0aGlzLnBsYXRmb3JtLklPU1xyXG4gIH1cclxuXHJcbiAgZ2V0IGlzQW5kcm9pZCgpOiBib29sZWFuIHtcclxuICAgIHJldHVybiB0aGlzLnBsYXRmb3JtLkFORFJPSURcclxuICB9XHJcbiAgZ2V0IGlzQW5kcm9pZEFwcCgpOiBib29sZWFuIHtcclxuICAgIHJldHVybiBCb29sZWFuKHdpbmRvdy5hcHBSZWYpXHJcbiAgfVxyXG5cclxuICBnZXQgaU9zQXBwUmVmKCkge1xyXG4gICAgaWYgKFxyXG4gICAgICB3aW5kb3cud2Via2l0ICYmXHJcbiAgICAgIHdpbmRvdy53ZWJraXQubWVzc2FnZUhhbmRsZXJzICYmXHJcbiAgICAgIHdpbmRvdy53ZWJraXQubWVzc2FnZUhhbmRsZXJzLmFwcFJlZlxyXG4gICAgKSB7XHJcbiAgICAgIHJldHVybiB3aW5kb3cud2Via2l0Lm1lc3NhZ2VIYW5kbGVycy5hcHBSZWZcclxuICAgIH1cclxuICAgIHJldHVybiBudWxsXHJcbiAgfVxyXG59XHJcbiJdfQ==
@@ -1,31 +1,31 @@
1
- import { Injectable } from '@angular/core';
2
- import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
3
- import { map } from 'rxjs/operators';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "@angular/cdk/layout";
6
- export class ValueService {
7
- constructor(breakpointObserver) {
8
- this.breakpointObserver = breakpointObserver;
9
- this.isXSmall$ = this.breakpointObserver
10
- .observe([Breakpoints.XSmall])
11
- .pipe(map(((res) => res.matches)));
12
- this.isLtMedium$ = this.breakpointObserver
13
- .observe([Breakpoints.XSmall, Breakpoints.Small])
14
- .pipe(map(((res) => res.matches)));
15
- }
16
- }
17
- ValueService.decorators = [
18
- { type: Injectable, args: [{
19
- providedIn: 'root',
20
- },] }
21
- ];
22
- ValueService.ctorParameters = () => [
23
- { type: BreakpointObserver }
24
- ];
25
- /** @nocollapse */ ValueService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function ValueService_Factory() { return new ValueService(i0.ɵɵinject(i1.BreakpointObserver)); }, token: ValueService, providedIn: "root" });
26
- if (false) {
27
- ValueService.prototype.isXSmall$;
28
- ValueService.prototype.isLtMedium$;
29
- ValueService.prototype.breakpointObserver;
30
- }
1
+ import { Injectable } from '@angular/core';
2
+ import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
3
+ import { map } from 'rxjs/operators';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "@angular/cdk/layout";
6
+ export class ValueService {
7
+ constructor(breakpointObserver) {
8
+ this.breakpointObserver = breakpointObserver;
9
+ this.isXSmall$ = this.breakpointObserver
10
+ .observe([Breakpoints.XSmall])
11
+ .pipe(map(((res) => res.matches)));
12
+ this.isLtMedium$ = this.breakpointObserver
13
+ .observe([Breakpoints.XSmall, Breakpoints.Small])
14
+ .pipe(map(((res) => res.matches)));
15
+ }
16
+ }
17
+ ValueService.decorators = [
18
+ { type: Injectable, args: [{
19
+ providedIn: 'root',
20
+ },] }
21
+ ];
22
+ ValueService.ctorParameters = () => [
23
+ { type: BreakpointObserver }
24
+ ];
25
+ /** @nocollapse */ ValueService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function ValueService_Factory() { return new ValueService(i0.ɵɵinject(i1.BreakpointObserver)); }, token: ValueService, providedIn: "root" });
26
+ if (false) {
27
+ ValueService.prototype.isXSmall$;
28
+ ValueService.prototype.isLtMedium$;
29
+ ValueService.prototype.breakpointObserver;
30
+ }
31
31
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdWUuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWNiL3V0aWxzLyIsInNvdXJjZXMiOlsibGliL3NlcnZpY2VzL3ZhbHVlLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQTtBQUUxQyxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsV0FBVyxFQUFtQixNQUFNLHFCQUFxQixDQUFBO0FBQ3RGLE9BQU8sRUFBRSxHQUFHLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQTs7O0FBS3BDLE1BQU0sT0FBTyxZQUFZO0lBRXZCLFlBQ1Usa0JBQXNDO1FBQXRDLHVCQUFrQixHQUFsQixrQkFBa0IsQ0FBb0I7UUFHekMsY0FBUyxHQUF3QixJQUFJLENBQUMsa0JBQWtCO2FBQzVELE9BQU8sQ0FBQyxDQUFDLFdBQVcsQ0FBQyxNQUFNLENBQUMsQ0FBQzthQUM3QixJQUFJLENBQUMsR0FBRyxFQUFDLENBQUMsR0FBb0IsRUFBRSxFQUFFLENBQUMsR0FBRyxDQUFDLE9BQU8sRUFBQyxDQUFDLENBQUE7UUFDNUMsZ0JBQVcsR0FBd0IsSUFBSSxDQUFDLGtCQUFrQjthQUM5RCxPQUFPLENBQUMsQ0FBQyxXQUFXLENBQUMsTUFBTSxFQUFFLFdBQVcsQ0FBQyxLQUFLLENBQUMsQ0FBQzthQUNoRCxJQUFJLENBQUMsR0FBRyxFQUFDLENBQUMsR0FBb0IsRUFBRSxFQUFFLENBQUMsR0FBRyxDQUFDLE9BQU8sRUFBQyxDQUFDLENBQUE7SU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