@sunbird-cb/consumption 0.0.53 → 0.0.55

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 (64) hide show
  1. package/bundles/sunbird-cb-consumption.umd.js +2282 -933
  2. package/bundles/sunbird-cb-consumption.umd.js.map +1 -1
  3. package/bundles/sunbird-cb-consumption.umd.min.js +2 -2
  4. package/bundles/sunbird-cb-consumption.umd.min.js.map +1 -1
  5. package/esm2015/lib/_common/announcements/announcements.component.js +18 -3
  6. package/esm2015/lib/_common/cards/card-wide/card-wide.component.js +1 -1
  7. package/esm2015/lib/_common/cbp-plan/cbp-plan.component.js +166 -0
  8. package/esm2015/lib/_common/cbp-plan/cbp-plan.module.js +27 -0
  9. package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +209 -33
  10. package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +3 -1
  11. package/esm2015/lib/_common/data-points/data-points.component.js +24 -3
  12. package/esm2015/lib/_common/microsites/mdo-channels/mdo-channel-v1/mdo-channel-v1.component.js +23 -0
  13. package/esm2015/lib/_common/microsites/mdo-channels/mdo-channel-v2/mdo-channel-v2.component.js +255 -0
  14. package/esm2015/lib/_common/microsites/mdo-channels/mdo-channel.module.js +52 -0
  15. package/esm2015/lib/_common/microsites/providers/providers-v2/providers-v2.component.js +269 -0
  16. package/esm2015/lib/_common/microsites/providers/providers.module.js +51 -0
  17. package/esm2015/lib/_common/top-learners/top-learners.component.js +155 -0
  18. package/esm2015/lib/_common/top-learners/top-learners.module.js +21 -0
  19. package/esm2015/lib/_common/user-content-rating/user-content-rating-lib.component.js +3 -3
  20. package/esm2015/lib/_services/insite-data.service.js +9 -2
  21. package/esm2015/lib/consumption.module.js +7 -3
  22. package/esm2015/public-api.js +5 -1
  23. package/esm2015/sunbird-cb-consumption.js +52 -47
  24. package/esm5/lib/_common/announcements/announcements.component.js +21 -3
  25. package/esm5/lib/_common/cards/card-wide/card-wide.component.js +1 -1
  26. package/esm5/lib/_common/cbp-plan/cbp-plan.component.js +185 -0
  27. package/esm5/lib/_common/cbp-plan/cbp-plan.module.js +31 -0
  28. package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +204 -16
  29. package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +3 -1
  30. package/esm5/lib/_common/data-points/data-points.component.js +29 -3
  31. package/esm5/lib/_common/microsites/mdo-channels/mdo-channel-v1/mdo-channel-v1.component.js +29 -0
  32. package/esm5/lib/_common/microsites/mdo-channels/mdo-channel-v2/mdo-channel-v2.component.js +292 -0
  33. package/esm5/lib/_common/microsites/mdo-channels/mdo-channel.module.js +56 -0
  34. package/esm5/lib/_common/microsites/providers/providers-v2/providers-v2.component.js +312 -0
  35. package/esm5/lib/_common/microsites/providers/providers.module.js +55 -0
  36. package/esm5/lib/_common/top-learners/top-learners.component.js +172 -0
  37. package/esm5/lib/_common/top-learners/top-learners.module.js +25 -0
  38. package/esm5/lib/_common/user-content-rating/user-content-rating-lib.component.js +3 -3
  39. package/esm5/lib/_services/insite-data.service.js +12 -2
  40. package/esm5/lib/consumption.module.js +7 -3
  41. package/esm5/public-api.js +5 -1
  42. package/esm5/sunbird-cb-consumption.js +52 -47
  43. package/fesm2015/sunbird-cb-consumption.js +1520 -331
  44. package/fesm2015/sunbird-cb-consumption.js.map +1 -1
  45. package/fesm5/sunbird-cb-consumption.js +2226 -886
  46. package/fesm5/sunbird-cb-consumption.js.map +1 -1
  47. package/lib/_common/announcements/announcements.component.d.ts +3 -0
  48. package/lib/_common/cbp-plan/cbp-plan.component.d.ts +25 -0
  49. package/lib/_common/cbp-plan/cbp-plan.module.d.ts +2 -0
  50. package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.d.ts +3 -0
  51. package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.d.ts +1 -0
  52. package/lib/_common/data-points/data-points.component.d.ts +1 -0
  53. package/lib/_common/microsites/mdo-channels/mdo-channel-v1/mdo-channel-v1.component.d.ts +5 -0
  54. package/lib/_common/microsites/mdo-channels/mdo-channel-v2/mdo-channel-v2.component.d.ts +39 -0
  55. package/lib/_common/microsites/mdo-channels/mdo-channel.module.d.ts +2 -0
  56. package/lib/_common/microsites/providers/providers-v2/providers-v2.component.d.ts +36 -0
  57. package/lib/_common/microsites/providers/providers.module.d.ts +2 -0
  58. package/lib/_common/top-learners/top-learners.component.d.ts +18 -0
  59. package/lib/_common/top-learners/top-learners.module.d.ts +2 -0
  60. package/lib/_services/insite-data.service.d.ts +1 -0
  61. package/package.json +1 -1
  62. package/public-api.d.ts +4 -0
  63. package/sunbird-cb-consumption.d.ts +50 -45
  64. package/sunbird-cb-consumption.metadata.json +1 -1
@@ -1,6 +1,6 @@
1
- import { Injectable, ɵɵdefineInjectable, Component, EventEmitter, Input, Output, ViewChild, NgModule, ɵɵinject, Inject, HostBinding, Directive, HostListener, CUSTOM_ELEMENTS_SCHEMA, Pipe, ElementRef, ViewChildren } from '@angular/core';
1
+ import { Injectable, ɵɵdefineInjectable, Component, EventEmitter, Input, Output, ViewChild, NgModule, ɵɵinject, Inject, HostBinding, Directive, HostListener, CUSTOM_ELEMENTS_SCHEMA, ElementRef, ViewChildren, Pipe } from '@angular/core';
2
2
  import { CommonModule, DatePipe } from '@angular/common';
3
- import { Router, RouterModule } from '@angular/router';
3
+ import { Router, RouterModule, ActivatedRoute } from '@angular/router';
4
4
  import { fromEvent, timer, BehaviorSubject, Subject, of, EMPTY, ReplaySubject, throwError, interval } from 'rxjs';
5
5
  import { debounceTime, throttleTime, shareReplay, retry, map, catchError, filter, distinctUntilChanged } from 'rxjs/operators';
6
6
  import { ValueService, ConfigurationsService as ConfigurationsService$1, WsEvents, LoggerService, EventService, UtilityService, MultilingualTranslationsService as MultilingualTranslationsService$1, PipeSafeSanitizerModule } from '@sunbird-cb/utils-v2';
@@ -8,8 +8,8 @@ import { MatButtonModule, MatIconModule, MatProgressSpinnerModule, MatToolbarMod
8
8
  import { __assign, __awaiter, __generator, __extends, __values, __spread, __read } from 'tslib';
9
9
  import { WidgetBaseComponent, SbUiResolverModule } from '@sunbird-cb/resolver-v2';
10
10
  import { HttpClient, HttpHeaders } from '@angular/common/http';
11
- import { get, uniqBy, orderBy, camelCase } from 'lodash';
12
- import * as moment$1 from 'moment';
11
+ import { get, uniqBy, orderBy, camelCase, kebabCase } from 'lodash';
12
+ import * as moment$2 from 'moment';
13
13
  import { duration, utc } from 'moment';
14
14
  import { TranslateService, TranslateModule, TranslateLoader } from '@ngx-translate/core';
15
15
  import * as dayjs_ from 'dayjs';
@@ -1478,7 +1478,7 @@ function viewerRouteGenerator(id, mimeType, collectionId, collectionType, forPre
1478
1478
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1479
1479
  */
1480
1480
  /** @type {?} */
1481
- var moment = moment$1;
1481
+ var moment = moment$2;
1482
1482
  // tslint:enable
1483
1483
  // TODO: move this in some common place
1484
1484
  /** @type {?} */
@@ -3663,6 +3663,8 @@ if (false) {
3663
3663
  /** @type {?} */
3664
3664
  IStripUnitContentData.prototype.stripConfig;
3665
3665
  /** @type {?|undefined} */
3666
+ IStripUnitContentData.prototype.tabsType;
3667
+ /** @type {?|undefined} */
3666
3668
  IStripUnitContentData.prototype.tabs;
3667
3669
  /** @type {?|undefined} */
3668
3670
  IStripUnitContentData.prototype.stripName;
@@ -4960,6 +4962,7 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
4960
4962
  disableTranslate: strip.disableTranslate,
4961
4963
  sliderConfig: strip.sliderConfig,
4962
4964
  tabs: tabsResults ? tabsResults : strip.tabs,
4965
+ tabsType: strip.tabsType ? strip.tabsType : '',
4963
4966
  stripName: strip.name,
4964
4967
  mode: strip.mode,
4965
4968
  stripConfig: strip.stripConfig,
@@ -5117,6 +5120,12 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
5117
5120
  else if (currentTabFromMap.request.trendingSearch) {
5118
5121
  this.getTabDataByNewReqTrending(currentStrip, tabEvent.index, currentTabFromMap, true);
5119
5122
  }
5123
+ else if (currentTabFromMap.request.topContent) {
5124
+ this.getTabDataByNewReqTopContent(currentStrip, tabEvent.index, currentTabFromMap, true);
5125
+ }
5126
+ else if (currentTabFromMap.request.playlistRead) {
5127
+ this.getTabDataByNewReqPlaylistReadContent(currentStrip, tabEvent.index, currentTabFromMap, true);
5128
+ }
5120
5129
  if (stripMap && stripMap.tabs && stripMap.tabs[tabEvent.index]) {
5121
5130
  stripMap.tabs[tabEvent.index].tabLoading = false;
5122
5131
  }
@@ -5562,7 +5571,7 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
5562
5571
  function (strip, calculateParentStatus) {
5563
5572
  if (calculateParentStatus === void 0) { calculateParentStatus = true; }
5564
5573
  return __awaiter(this, void 0, void 0, function () {
5565
- var originalFilters, response, error_5;
5574
+ var originalFilters, firstTab, allTabs, currentTabFromMap, response, error_5;
5566
5575
  return __generator(this, function (_a) {
5567
5576
  switch (_a.label) {
5568
5577
  case 0:
@@ -5575,7 +5584,17 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
5575
5584
  originalFilters = strip.request.topContent.request.filters;
5576
5585
  strip.request.topContent.request.filters = this.postMethodFilters(strip.request.topContent.request.filters);
5577
5586
  }
5578
- _a.label = 1;
5587
+ if (!(strip.tabs && strip.tabs.length)) return [3 /*break*/, 1];
5588
+ // TODO: Have to extract requestRequired to outer level of tabs config
5589
+ firstTab = strip.tabs[0];
5590
+ if (firstTab.requestRequired) {
5591
+ if (this.stripsResultDataMap[strip.key] && this.stripsResultDataMap[strip.key].tabs) {
5592
+ allTabs = this.stripsResultDataMap[strip.key].tabs;
5593
+ currentTabFromMap = (/** @type {?} */ ((allTabs && allTabs.length && allTabs[0])));
5594
+ this.getTabDataByNewReqTopContent(strip, 0, currentTabFromMap, calculateParentStatus);
5595
+ }
5596
+ }
5597
+ return [3 /*break*/, 4];
5579
5598
  case 1:
5580
5599
  _a.trys.push([1, 3, , 4]);
5581
5600
  return [4 /*yield*/, this.postRequestMethod(strip, strip.request.topContent, strip.request.apiUrl, calculateParentStatus)];
@@ -5662,6 +5681,64 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
5662
5681
  });
5663
5682
  });
5664
5683
  };
5684
+ /**
5685
+ * @param {?} strip
5686
+ * @param {?} tabIndex
5687
+ * @param {?} currentTab
5688
+ * @param {?} calculateParentStatus
5689
+ * @return {?}
5690
+ */
5691
+ ContentStripWithTabsLibComponent.prototype.getTabDataByNewReqTopContent = /**
5692
+ * @param {?} strip
5693
+ * @param {?} tabIndex
5694
+ * @param {?} currentTab
5695
+ * @param {?} calculateParentStatus
5696
+ * @return {?}
5697
+ */
5698
+ function (strip, tabIndex, currentTab, calculateParentStatus) {
5699
+ return __awaiter(this, void 0, void 0, function () {
5700
+ var response, widgets, tabResults, allTabs, error_7;
5701
+ return __generator(this, function (_a) {
5702
+ switch (_a.label) {
5703
+ case 0:
5704
+ if (currentTab.request &&
5705
+ currentTab.request.topContent &&
5706
+ currentTab.request.topContent.request &&
5707
+ currentTab.request.topContent.request.filters) {
5708
+ currentTab.request.topContent.request.filters = this.postMethodFilters(currentTab.request.topContent.request.filters);
5709
+ }
5710
+ _a.label = 1;
5711
+ case 1:
5712
+ _a.trys.push([1, 3, , 4]);
5713
+ // const response = await this.searchV6Request(strip, currentTab.request, calculateParentStatus);
5714
+ return [4 /*yield*/, this.postRequestMethod(strip, currentTab.request.topContent, currentTab.request.apiUrl, calculateParentStatus)];
5715
+ case 2:
5716
+ response = _a.sent();
5717
+ if (response.results && response.results.result) {
5718
+ widgets = this.transformContentsToWidgets(response.results.result.content, strip);
5719
+ tabResults = [];
5720
+ if (this.stripsResultDataMap[strip.key] && this.stripsResultDataMap[strip.key].tabs) {
5721
+ allTabs = this.stripsResultDataMap[strip.key].tabs;
5722
+ if (allTabs && allTabs.length && allTabs[tabIndex]) {
5723
+ allTabs[tabIndex] = __assign({}, allTabs[tabIndex], { widgets: widgets, fetchTabStatus: 'done' });
5724
+ tabResults = allTabs;
5725
+ }
5726
+ }
5727
+ this.processStrip(strip, widgets, 'done', calculateParentStatus, response.viewMoreUrl, tabResults // tabResults as widgets
5728
+ );
5729
+ }
5730
+ else {
5731
+ this.processStrip(strip, [], 'error', calculateParentStatus, null);
5732
+ }
5733
+ return [3 /*break*/, 4];
5734
+ case 3:
5735
+ error_7 = _a.sent();
5736
+ return [3 /*break*/, 4];
5737
+ case 4: return [2 /*return*/];
5738
+ }
5739
+ });
5740
+ });
5741
+ };
5665
5742
  /**
5666
5743
  * @param {?} stripData
5667
5744
  * @return {?}
@@ -5835,7 +5912,7 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
5835
5912
  function (filters) {
5836
5913
  if (filters.organisation &&
5837
5914
  filters.organisation.indexOf('<orgID>') >= 0) {
5838
- filters.organisation = this.providerId;
5915
+ filters.organisation = filters.organisation.replace('<orgID>', this.providerId);
5839
5916
  }
5840
5917
  return filters;
5841
5918
  };
@@ -5851,7 +5928,7 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
5851
5928
  */
5852
5929
  function (apiUrl, id) {
5853
5930
  /** @type {?} */
5854
- var formedUrl = '';
5931
+ var formedUrl = apiUrl;
5855
5932
  if (apiUrl.indexOf('<bookmarkId>') >= 0) {
5856
5933
  formedUrl = apiUrl.replace('<bookmarkId>', this.environment.mdoChannelsBookmarkId);
5857
5934
  }
@@ -5897,7 +5974,7 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
5897
5974
  function (strip, calculateParentStatus) {
5898
5975
  if (calculateParentStatus === void 0) { calculateParentStatus = true; }
5899
5976
  return __awaiter(this, void 0, void 0, function () {
5900
- var originalFilters, response, content, error_7;
5977
+ var originalFilters, response, content, error_8;
5901
5978
  return __generator(this, function (_a) {
5902
5979
  switch (_a.label) {
5903
5980
  case 0:
@@ -5924,7 +6001,7 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
5924
6001
  }
5925
6002
  return [3 /*break*/, 4];
5926
6003
  case 3:
5927
- error_7 = _a.sent();
6004
+ error_8 = _a.sent();
5928
6005
  this.emptyResponse.emit(true);
5929
6006
  return [3 /*break*/, 4];
5930
6007
  case 4: return [2 /*return*/];
@@ -5975,7 +6052,7 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
5975
6052
  function (strip, calculateParentStatus) {
5976
6053
  if (calculateParentStatus === void 0) { calculateParentStatus = true; }
5977
6054
  return __awaiter(this, void 0, void 0, function () {
5978
- var originalFilters, response, finalPlaylistData_1, programData, error_8;
6055
+ var originalFilters, response, finalPlaylistData_1, programData, error_9;
5979
6056
  return __generator(this, function (_a) {
5980
6057
  switch (_a.label) {
5981
6058
  case 0:
@@ -6027,7 +6104,7 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
6027
6104
  }
6028
6105
  return [3 /*break*/, 4];
6029
6106
  case 3:
6030
- error_8 = _a.sent();
6107
+ error_9 = _a.sent();
6031
6108
  this.emptyResponse.emit(true);
6032
6109
  return [3 /*break*/, 4];
6033
6110
  case 4: return [2 /*return*/];
@@ -6048,7 +6125,7 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
6048
6125
  function (strip, calculateParentStatus) {
6049
6126
  if (calculateParentStatus === void 0) { calculateParentStatus = true; }
6050
6127
  return __awaiter(this, void 0, void 0, function () {
6051
- var originalFilters, response, content, featuredProviders, error_9;
6128
+ var originalFilters, firstTab, allTabs, currentTabFromMap, response, content, featuredProviders, error_10;
6052
6129
  return __generator(this, function (_a) {
6053
6130
  switch (_a.label) {
6054
6131
  case 0:
@@ -6059,7 +6136,17 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
6059
6136
  strip.request.playlistRead.type) {
6060
6137
  strip.request.apiUrl = this.getFullUrl(strip.request.apiUrl, strip.request.playlistRead.type);
6061
6138
  }
6062
- _a.label = 1;
6139
+ if (!(strip.tabs && strip.tabs.length)) return [3 /*break*/, 1];
6140
+ // TODO: Have to extract requestRequired to outer level of tabs config
6141
+ firstTab = strip.tabs[0];
6142
+ if (firstTab.requestRequired) {
6143
+ if (this.stripsResultDataMap[strip.key] && this.stripsResultDataMap[strip.key].tabs) {
6144
+ allTabs = this.stripsResultDataMap[strip.key].tabs;
6145
+ currentTabFromMap = (/** @type {?} */ ((allTabs && allTabs.length && allTabs[0])));
6146
+ this.getTabDataByNewReqPlaylistReadContent(strip, 0, currentTabFromMap, calculateParentStatus);
6147
+ }
6148
+ }
6149
+ return [3 /*break*/, 4];
6063
6150
  case 1:
6064
6151
  _a.trys.push([1, 3, , 4]);
6065
6152
  return [4 /*yield*/, this.getRequestMethod(strip, strip.request.playlistRead, strip.request.apiUrl, calculateParentStatus)];
@@ -6081,7 +6168,7 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
6081
6168
  }
6082
6169
  return [3 /*break*/, 4];
6083
6170
  case 3:
6084
- error_9 = _a.sent();
6171
+ error_10 = _a.sent();
6085
6172
  this.emptyResponse.emit(true);
6086
6173
  return [3 /*break*/, 4];
6087
6174
  case 4: return [2 /*return*/];
@@ -6089,6 +6176,107 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
6089
6176
  });
6090
6177
  });
6091
6178
  };
6179
+ /**
6180
+ * @param {?} strip
6181
+ * @param {?} tabIndex
6182
+ * @param {?} currentTab
6183
+ * @param {?} calculateParentStatus
6184
+ * @return {?}
6185
+ */
6186
+ ContentStripWithTabsLibComponent.prototype.getTabDataByNewReqPlaylistReadContent = /**
6187
+ * @param {?} strip
6188
+ * @param {?} tabIndex
6189
+ * @param {?} currentTab
6190
+ * @param {?} calculateParentStatus
6191
+ * @return {?}
6192
+ */
6193
+ function (strip, tabIndex, currentTab, calculateParentStatus) {
6194
+ return __awaiter(this, void 0, void 0, function () {
6195
+ var response, widgets, tabResults, allTabs, tabResults, allTabs, error_11, tabResults, allTabs;
6196
+ return __generator(this, function (_a) {
6197
+ switch (_a.label) {
6198
+ case 0:
6199
+ if (currentTab.request &&
6200
+ strip.request.playlistRead &&
6201
+ strip.request.playlistRead.type) {
6202
+ currentTab.request.apiUrl = this.getFullUrl(currentTab.request.apiUrl, currentTab.request.playlistRead.type);
6203
+ }
6204
+ _a.label = 1;
6205
+ case 1:
6206
+ _a.trys.push([1, 3, , 4]);
6207
+ return [4 /*yield*/, this.getRequestMethod(strip, currentTab.request.playlistRead, currentTab.request.apiUrl, calculateParentStatus)];
6208
+ case 2:
6209
+ response = _a.sent();
6210
+ // if (response && response.results.result.content) {
6211
+ // let content = response.results.result.content
6212
+ // if(strip.key === 'providers'){
6213
+ // let featuredProviders : any = JSON.parse(content.featuredProviders|| '[]')
6214
+ // this.processStrip(
6215
+ // strip,
6216
+ // this.transformAllContentsToWidgets(featuredProviders, strip),
6217
+ // 'done',
6218
+ // calculateParentStatus,
6219
+ // response,
6220
+ // );
6221
+ // } else {
6222
+ // this.processStrip(
6223
+ // strip,
6224
+ // this.transformAllContentsToWidgets(content, strip),
6225
+ // 'done',
6226
+ // calculateParentStatus,
6227
+ // response,
6228
+ // );
6229
+ // }
6230
+ // } else {
6231
+ // this.processStrip(strip, [], 'error', calculateParentStatus, null);
6232
+ // this.emptyResponse.emit(true)
6233
+ // }
6234
+ if (response.results && response.results.result) {
6235
+ widgets = this.transformContentsToWidgets(response.results.result.content, strip);
6236
+ tabResults = [];
6237
+ if (this.stripsResultDataMap[strip.key] && this.stripsResultDataMap[strip.key].tabs) {
6238
+ allTabs = this.stripsResultDataMap[strip.key].tabs;
6239
+ if (allTabs && allTabs.length && allTabs[tabIndex]) {
6240
+ allTabs[tabIndex] = __assign({}, allTabs[tabIndex], { widgets: widgets, fetchTabStatus: 'done' });
6241
+ tabResults = allTabs;
6242
+ }
6243
+ }
6244
+ this.processStrip(strip, widgets, 'done', calculateParentStatus, response.viewMoreUrl, tabResults // tabResults as widgets
6245
+ );
6246
+ }
6247
+ else {
6248
+ tabResults = [];
6249
+ if (this.stripsResultDataMap[strip.key] && this.stripsResultDataMap[strip.key].tabs) {
6250
+ allTabs = this.stripsResultDataMap[strip.key].tabs;
6251
+ if (allTabs && allTabs.length && allTabs[tabIndex]) {
6252
+ allTabs[tabIndex] = __assign({}, allTabs[tabIndex], { fetchTabStatus: 'done' });
6253
+ tabResults = allTabs;
6254
+ }
6255
+ }
6256
+ this.processStrip(strip, [], 'error', calculateParentStatus, null, tabResults);
6257
+ }
6258
+ return [3 /*break*/, 4];
6259
+ case 3:
6260
+ error_11 = _a.sent();
6261
+ console.error('Error:', error_11);
6262
+ tabResults = [];
6263
+ if (this.stripsResultDataMap[strip.key] && this.stripsResultDataMap[strip.key].tabs && this.stripsResultDataMap[strip.key].tabs.length) {
6264
+ allTabs = this.stripsResultDataMap[strip.key].tabs;
6265
+ if (allTabs && allTabs.length && allTabs[tabIndex]) {
6266
+ allTabs[tabIndex] = __assign({}, allTabs[tabIndex], { fetchTabStatus: 'done' });
6267
+ tabResults = allTabs;
6268
+ }
6269
+ this.processStrip(strip, [], 'error', calculateParentStatus, null, tabResults);
6270
+ }
6271
+ else {
6272
+ this.processStrip(strip, [], 'error', calculateParentStatus, null);
6273
+ }
6274
+ return [3 /*break*/, 4];
6275
+ case 4: return [2 /*return*/];
6276
+ }
6277
+ });
6278
+ });
6279
+ };
6092
6280
  /**
6093
6281
  * @param {?} strip
6094
6282
  * @param {?=} calculateParentStatus
@@ -6102,7 +6290,7 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
6102
6290
  function (strip, calculateParentStatus) {
6103
6291
  if (calculateParentStatus === void 0) { calculateParentStatus = true; }
6104
6292
  return __awaiter(this, void 0, void 0, function () {
6105
- var originalFilters, response, extContentData, error_10;
6293
+ var originalFilters, response, extContentData, error_12;
6106
6294
  return __generator(this, function (_a) {
6107
6295
  switch (_a.label) {
6108
6296
  case 0:
@@ -6143,7 +6331,7 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
6143
6331
  }
6144
6332
  return [3 /*break*/, 4];
6145
6333
  case 3:
6146
- error_10 = _a.sent();
6334
+ error_12 = _a.sent();
6147
6335
  this.emptyResponse.emit(true);
6148
6336
  return [3 /*break*/, 4];
6149
6337
  case 4: return [2 /*return*/];
@@ -6154,8 +6342,8 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
6154
6342
  ContentStripWithTabsLibComponent.decorators = [
6155
6343
  { type: Component, args: [{
6156
6344
  selector: 'sb-uic-content-strip-with-tabs',
6157
- template: "<ng-container *ngIf=\"!contentAvailable; else otherTemplate\"></ng-container>\n<ng-template #otherTemplate>\n <!-- <div *ngIf=\"showParentLoader\" class=\"text-center my-2\">\n <mat-spinner class=\"inline-block\"></mat-spinner>\n </div> -->\n <ng-container *ngIf=\"showParentError\" [sbUiResolverWidget]=\"widgetData.errorWidget\"></ng-container>\n <ng-container *ngIf=\"showParentNoData\" [sbUiResolverWidget]=\"widgetData.noDataWidget\"></ng-container>\n <ng-container *ngFor=\"let key of stripsKeyOrder; let i = index; trackBy: identify\">\n <ng-container *ngIf=\"isStripShowing(stripsResultDataMap[key])\">\n <a name=\"{{stripsResultDataMap[key]?.stripTitle}}\" [class]=\"key\">\n <div *ngIf=\"stripsResultDataMap && (getLength(stripsResultDataMap[key]) ||\n stripsResultDataMap[key]?.showOnNoData ||\n stripsResultDataMap[key]?.showOnLoader ||\n stripsResultDataMap[key]?.showOnError)\n \" [ngClass]=\"\n !widgetData?.isChannelStrip ? 'xs:px-8 sx:px-10ss' : i > 0 ? 'mt-12' : ''\n \" [id]=\"key\" [ngClass]=\"!widgetData?.isChannelStrip ? margin-bottom-custom : margin-bottom-xs\">\n <div [ngClass]=\"{ pad: stripsResultDataMap[key]?.stripBackground }\"\n [ngStyle]=\"{ 'background-color': stripsResultDataMap[key]?.stripBackground }\">\n <div class=\"flex flex-col pl-4 pr-4 md:pr-0 md:pl-0 \" [ngClass]=\"\n !widgetData?.isChannelStrip\n ? ''\n : stripsResultDataMap[key]?.stripTitle\n ? 'mb-8'\n : ''\n \">\n <div class=\"flex flex-1 items-center\">\n <p class=\"mat-subheading-1 margin-remove inline-block \" *ngIf=\"stripsResultDataMap[key]?.stripTitle\">\n <span class=\"capitalize\" *ngIf=\"stripsResultDataMap[key]?.disableTranslate\">\n {{stripsResultDataMap[key]?.stripTitle}}\n </span>\n <span *ngIf=\"!stripsResultDataMap[key]?.disableTranslate\">\n {{ translateLabels(stripsResultDataMap[key]?.stripTitle, 'home') }}\n </span>\n </p>\n\n <button *ngIf=\"stripsResultDataMap[key]?.stripInfo?.icon\" type=\"button\" mat-icon-button\n (click)=\"toggleInfo(stripsResultDataMap[key])\" i18n-matTooltip matTooltip=\"info\"\n class=\"margin-left-xs\">\n <mat-icon>{{ stripsResultDataMap[key]?.stripInfo?.icon.icon }}</mat-icon>\n </button>\n <a *ngIf=\"stripsResultDataMap[key]?.stripTitleLink?.link\"\n [routerLink]=\"stripsResultDataMap[key]?.stripTitleLink?.link\"\n [queryParams]=\"stripsResultDataMap[key]?.stripTitleLink?.link?.queryParams\">\n <mat-icon class=\"ws-mat-primary-primary-text ws-mat-default-text\" [color]=\"'accent'\">{{\n stripsResultDataMap[key]?.stripTitleLink?.icon }}</mat-icon>\n </a>\n <span class=\"spacer\"></span>\n <!-- viewAll start-->\n <div *ngIf=\"checkCondition(widgetData , stripsResultDataMap[key])\"\n class=\"ml-4 pl-2 view-more ws-mat-default-text\">\n <a class=\"flex ws-mat-default-text items-center justify-center mat-body-1 cursor-pointer\" \n (click)=\"raiseTelemetry(stripsResultDataMap[key]);redirectViewAll(stripsResultDataMap[key], stripsResultDataMap[key]?.viewMoreUrl?.path, stripsResultDataMap[key]?.viewMoreUrl?.queryParams )\">\n <span i18n class=\"ws-mat-default-text\">{{translateLabels(widgetData.strips[0].viewMoreUrl.viewMoreText,'home') || 'See all'}}</span>\n <mat-icon class=\"ws-mat-default-text mat-icon notranslate material-icons mat-icon-no-color\" color=\"accent\">navigate_next</mat-icon>\n </a>\n </div>\n <!-- viewAll end-->\n </div>\n <button mat-icon-button (click)=\"setHiddenForStrip(key)\" *ngIf=\"stripsResultDataMap[key]?.canHideStrip\">\n <mat-icon>close</mat-icon>\n </button>\n <mat-icon class=\"cursor-pointer\" *ngIf=\"stripsResultDataMap[key]?.mode === 'accordion' && isMobile\"\n (click)=\"showAccordionData = !showAccordionData\">{{ showAccordionData ? 'expand_less' : 'expand_more' }}\n </mat-icon>\n </div>\n\n <div class=\"mb-4\" *ngIf=\"checkVisible(stripsResultDataMap[key])\">\n <ng-container [sbUiResolverWidget]=\"getdata(stripsResultDataMap[key])\">\n </ng-container>\n </div>\n\n <ng-container *ngIf=\"stripsResultDataMap[key]?.showOnNoData\"\n [sbUiResolverWidget]=\"stripsResultDataMap[key]?.noDataWidget\"></ng-container>\n <ng-container *ngIf=\"stripsResultDataMap[key]?.showOnError\"\n [sbUiResolverWidget]=\"stripsResultDataMap[key]?.errorWidget\"></ng-container>\n <!-- IF no errors then proceed to show tabs or non tabs strip -->\n <ng-container *ngIf=\"!stripsResultDataMap[key]?.showOnNoData && !stripsResultDataMap[key]?.showOnError\">\n <ng-container *ngIf=\"stripsResultDataMap[key].tabs && stripsResultDataMap[key].tabs.length\">\n <mat-tab-group animationDuration=\"0ms\" [selectedIndex]=\"getSelectedIndex(stripsResultDataMap[key], key)\"\n class=\"mat-tab-labels w-full strips-tabgroup\" dynamicHeight\n (selectedTabChange)=\"tabClicked($event, stripsResultDataMap[key], key)\">\n <mat-tab label=\"{{tab?.label}}\" *ngFor=\"let tab of stripsResultDataMap[key].tabs; let last = last;\">\n <ng-template mat-tab-label>\n <span>{{ translateLabels(tab?.label, 'home') }} &nbsp;</span>\n <span *ngIf=\"tab?.showTabDataCount && tab?.widgets?.length\">({{tab?.widgets?.length}})</span>\n </ng-template>\n <div>\n <!-- <ng-container [ngTemplateOutlet]=\"loader\" *ngIf=\"stripsResultDataMap[key]?.showOnLoader\">\n </ng-container> -->\n <div *ngIf=\"stripsResultDataMap && stripsResultDataMap[key]?.showOnLoader ||\n !tab.fetchTabStatus\"\n class=\"text-center my-2\">\n <sb-uic-horizontal-scroller-v2 [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\" [id]=\"key+'-scroller'\"\n [loadStatus]=\"'fetching'\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of stripsResultDataMap[key]?.loaderWidgets; trackBy: tracker\">\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </div>\n <div *ngIf=\"((tab?.fetchTabStatus && tab?.fetchTabStatus === 'done') &&\n (!tab?.widgets || !tab?.widgets?.length))\">\n <ng-container *ngIf=\"tab?.value === 'inprogress'; else msgTemp\">\n <div class=\"w-full flex flex-col items-center justify-center\">\n <img alt=\"\" class=\"mt-4 mb-4\" src=\"assets/icons/home/nodataDefault.svg\">\n <div class=\"mat-subheading-1 text-center info-content\">{{ 'contentstripmultiple.getReadyForLearningAdventure' | translate }} -\n <a class=\"click-here\" [routerLink]=\"'/page/learn'\">{{ 'contentstripmultiple.clickHere' | translate }}</a> {{ 'contentstripmultiple.toEnrollNextCourse' | translate }}</div>\n </div>\n </ng-container>\n <ng-template #msgTemp>\n <div class=\"w-full flex flex-col items-center justify-center\">\n <img alt=\"\" class=\"mt-4 mb-4\" src=\"assets/icons/home/nodataDefault.png\">\n <div class=\"mat-subheading-1 text-center\">{{ translateLabels(tab.nodataMsg, 'home') }}</div>\n </div>\n </ng-template>\n </div>\n <ng-container *ngIf=\"(tab?.fetchTabStatus === 'done' || tab?.widgets?.length)\">\n <ng-container *ngIf=\"!tab?.tabLoading\">\n\n <sb-uic-horizontal-scroller-v2 [id]=\"key+'-scroller'\" [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\" [widgetsLength]=\"tab?.widgets?.length\"\n *ngIf=\"getContineuLearningLenth(stripsResultDataMap[key]) && showAccordion(key)\"\n [loadStatus]=\"'done'\" [defaultMaxWidgets]=\"tab?.maxWidgets ||\n stripsResultDataMap[key]?.sliderConfig?.maxWidgets || defaultMaxWidgets\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of tab?.widgets| slice:0:(tab?.maxWidgets ||\n stripsResultDataMap[key]?.sliderConfig?.maxWidgets || defaultMaxWidgets); trackBy: tracker\">\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </ng-container>\n </ng-container>\n </div>\n </mat-tab>\n </mat-tab-group>\n </ng-container>\n <ng-container *ngIf=\"!stripsResultDataMap[key].tabs || !stripsResultDataMap[key].tabs.length\">\n <div *ngIf=\"stripsResultDataMap && stripsResultDataMap[key]?.showOnLoader\" class=\"text-center my-2\">\n <sb-uic-horizontal-scroller-v2 [id]=\"key+'-scroller'\" [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\"\n [loadStatus]=\"'fetching'\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of stripsResultDataMap[key]?.loaderWidgets; trackBy: tracker\">\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </div>\n <div class=\"\">\n <sb-uic-horizontal-scroller-v2 [id]=\"key+'-scroller'\" [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\"\n *ngIf=\"getContineuLearningLenth(stripsResultDataMap[key]) && showAccordion(key)\" [widgetsLength]=\"stripsResultDataMap[key]?.widgets?.length\" [loadStatus]=\"'done'\" [defaultMaxWidgets]=\"stripsResultDataMap[key].sliderConfig?.maxWidgets || defaultMaxWidgets\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of stripsResultDataMap[key]?.widgets| slice:0:(stripsResultDataMap[key].sliderConfig?.maxWidgets || defaultMaxWidgets); trackBy: tracker\">\n <!-- <ng-container *ngIf=\"widget.widgetData.context.pageSection === 'continueLearning' \"> -->\n <!-- <ng-container *ngIf=\"widget.widgetData.content.completionPercentage !== 100\"\n [sbUiResolverWidget]=\"widget\"></ng-container> -->\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n <!-- </ng-container> -->\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </a>\n\n </ng-container>\n </ng-container>\n</ng-template>",
6158
- styles: [".view-more{display:flex;align-items:center;text-align:center;height:40px;justify-content:center}.view-more .icon{font-size:24px;width:24px;height:24px;border:1px solid;border-radius:50%;padding:8px;margin-bottom:8px}.margin-bottom-custom{margin-bottom:60px}.view-more:hover{background-color:#dcdfe5}::ng-deep.strips-tabgroup .mat-tab-header{border-bottom:2px solid rgba(0,0,0,.12)}::ng-deep.strips-tabgroup .mat-tab-body{padding:20px 0!important;box-sizing:border-box;overflow-y:initial!important}::ng-deep.strips-tabgroup .mat-tab-body-wrapper{overflow:inherit!important}::ng-deep.strips-tabgroup .mat-tab-label{border-bottom:0 solid rgba(0,0,0,.1);margin-right:0;opacity:1}::ng-deep.strips-tabgroup .mat-tab-label .mat-tab-label-content{text-transform:inherit;font:400 14px/20px Lato}::ng-deep.strips-tabgroup .mat-tab-label-active .mat-tab-label-content{font-weight:700!important}.click-here{color:#1b4ca1}.info-content{opacity:1;color:rgba(0,0,0,.87);font:700 14px/20px Lato-Bold;text-align:center}"]
6345
+ template: "<ng-container *ngIf=\"!contentAvailable; else otherTemplate\"></ng-container>\n<ng-template #otherTemplate>\n <!-- <div *ngIf=\"showParentLoader\" class=\"text-center my-2\">\n <mat-spinner class=\"inline-block\"></mat-spinner>\n </div> -->\n <ng-container *ngIf=\"showParentError\" [sbUiResolverWidget]=\"widgetData.errorWidget\"></ng-container>\n <ng-container *ngIf=\"showParentNoData\" [sbUiResolverWidget]=\"widgetData.noDataWidget\"></ng-container>\n <ng-container *ngFor=\"let key of stripsKeyOrder; let i = index; trackBy: identify\">\n <ng-container *ngIf=\"isStripShowing(stripsResultDataMap[key])\">\n <a name=\"{{stripsResultDataMap[key]?.stripTitle}}\" [class]=\"key\">\n <div *ngIf=\"stripsResultDataMap && (getLength(stripsResultDataMap[key]) ||\n stripsResultDataMap[key]?.showOnNoData ||\n stripsResultDataMap[key]?.showOnLoader ||\n stripsResultDataMap[key]?.showOnError)\n \" [ngClass]=\"\n !widgetData?.isChannelStrip ? 'xs:px-8 sx:px-10ss' : i > 0 ? 'mt-12' : ''\n \" [id]=\"key\" [ngClass]=\"!widgetData?.isChannelStrip ? margin-bottom-custom : margin-bottom-xs\">\n <div [ngClass]=\"{ pad: stripsResultDataMap[key]?.stripBackground }\"\n [ngStyle]=\"{ 'background-color': stripsResultDataMap[key]?.stripBackground }\">\n <div class=\"flex flex-col pl-4 pr-4 md:pr-0 md:pl-0 min-height-40 \" [ngClass]=\"\n !widgetData?.isChannelStrip\n ? ''\n : stripsResultDataMap[key]?.stripTitle\n ? 'mb-8'\n : ''\n \">\n <div class=\"flex flex-1 items-center\">\n <p class=\"mat-subheading-1 margin-remove inline-block \" *ngIf=\"stripsResultDataMap[key]?.stripTitle\">\n <span class=\"capitalize\" *ngIf=\"stripsResultDataMap[key]?.disableTranslate\">\n {{stripsResultDataMap[key]?.stripTitle}}\n </span>\n <span *ngIf=\"!stripsResultDataMap[key]?.disableTranslate\">\n {{ translateLabels(stripsResultDataMap[key]?.stripTitle, 'home') }}\n </span>\n </p>\n\n <button *ngIf=\"stripsResultDataMap[key]?.stripInfo?.icon\" type=\"button\" mat-icon-button\n (click)=\"toggleInfo(stripsResultDataMap[key])\" i18n-matTooltip matTooltip=\"info\"\n class=\"margin-left-xs\">\n <mat-icon>{{ stripsResultDataMap[key]?.stripInfo?.icon.icon }}</mat-icon>\n </button>\n <a *ngIf=\"stripsResultDataMap[key]?.stripTitleLink?.link\"\n [routerLink]=\"stripsResultDataMap[key]?.stripTitleLink?.link\"\n [queryParams]=\"stripsResultDataMap[key]?.stripTitleLink?.link?.queryParams\">\n <mat-icon class=\"ws-mat-primary-primary-text ws-mat-default-text\" [color]=\"'accent'\">{{\n stripsResultDataMap[key]?.stripTitleLink?.icon }}</mat-icon>\n </a>\n <span class=\"spacer\"></span>\n <!-- viewAll start-->\n <div *ngIf=\"checkCondition(widgetData , stripsResultDataMap[key])\"\n class=\"ml-4 pl-2 view-more ws-mat-default-text\">\n <a class=\"flex ws-mat-default-text items-center justify-center mat-body-1 cursor-pointer\" \n (click)=\"raiseTelemetry(stripsResultDataMap[key]);redirectViewAll(stripsResultDataMap[key], stripsResultDataMap[key]?.viewMoreUrl?.path, stripsResultDataMap[key]?.viewMoreUrl?.queryParams )\">\n <span i18n class=\"ws-mat-default-text\">{{translateLabels(widgetData.strips[0].viewMoreUrl.viewMoreText,'home') || 'See all'}}</span>\n <mat-icon class=\"ws-mat-default-text mat-icon notranslate material-icons mat-icon-no-color\" color=\"accent\">navigate_next</mat-icon>\n </a>\n </div>\n <!-- viewAll end-->\n </div>\n <button mat-icon-button (click)=\"setHiddenForStrip(key)\" *ngIf=\"stripsResultDataMap[key]?.canHideStrip\">\n <mat-icon>close</mat-icon>\n </button>\n <mat-icon class=\"cursor-pointer\" *ngIf=\"stripsResultDataMap[key]?.mode === 'accordion' && isMobile\"\n (click)=\"showAccordionData = !showAccordionData\">{{ showAccordionData ? 'expand_less' : 'expand_more' }}\n </mat-icon>\n </div>\n\n <div class=\"mb-4\" *ngIf=\"checkVisible(stripsResultDataMap[key])\">\n <ng-container [sbUiResolverWidget]=\"getdata(stripsResultDataMap[key])\">\n </ng-container>\n </div>\n\n <ng-container *ngIf=\"stripsResultDataMap[key]?.showOnNoData\"\n [sbUiResolverWidget]=\"stripsResultDataMap[key]?.noDataWidget\"></ng-container>\n <ng-container *ngIf=\"stripsResultDataMap[key]?.showOnError\"\n [sbUiResolverWidget]=\"stripsResultDataMap[key]?.errorWidget\"></ng-container>\n <!-- IF no errors then proceed to show tabs or non tabs strip -->\n <ng-container *ngIf=\"!stripsResultDataMap[key]?.showOnNoData && !stripsResultDataMap[key]?.showOnError\">\n <ng-container *ngIf=\"stripsResultDataMap[key].tabs && stripsResultDataMap[key].tabs.length\">\n <mat-tab-group animationDuration=\"0ms\" [selectedIndex]=\"getSelectedIndex(stripsResultDataMap[key], key)\"\n class=\"mat-tab-labels w-full strips-tabgroup \" dynamicHeight\n [ngClass]=\"stripsResultDataMap[key]?.tabsType ? stripsResultDataMap[key]?.tabsType : ''\"\n (selectedTabChange)=\"tabClicked($event, stripsResultDataMap[key], key)\">\n <mat-tab label=\"{{tab?.label}}\" *ngFor=\"let tab of stripsResultDataMap[key].tabs; let last = last;\">\n <ng-template mat-tab-label>\n <span>{{ translateLabels(tab?.label, 'home') }} &nbsp;</span>\n <span *ngIf=\"tab?.showTabDataCount && tab?.widgets?.length\">({{tab?.widgets?.length}})</span>\n </ng-template>\n <div>\n <!-- <ng-container [ngTemplateOutlet]=\"loader\" *ngIf=\"stripsResultDataMap[key]?.showOnLoader\">\n </ng-container> -->\n <div *ngIf=\"stripsResultDataMap && stripsResultDataMap[key]?.showOnLoader ||\n !tab.fetchTabStatus\"\n class=\"text-center my-2\">\n <sb-uic-horizontal-scroller-v2 [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\" [id]=\"key+'-scroller'\"\n [loadStatus]=\"'fetching'\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of stripsResultDataMap[key]?.loaderWidgets; trackBy: tracker\">\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </div>\n <div *ngIf=\"((tab?.fetchTabStatus && tab?.fetchTabStatus === 'done') &&\n (!tab?.widgets || !tab?.widgets?.length))\">\n <ng-container *ngIf=\"tab?.value === 'inprogress'; else msgTemp\">\n <div class=\"w-full flex flex-col items-center justify-center\">\n <img alt=\"\" class=\"mt-4 mb-4\" src=\"assets/icons/home/nodataDefault.svg\">\n <div class=\"mat-subheading-1 text-center info-content\">{{ 'contentstripmultiple.getReadyForLearningAdventure' | translate }} -\n <a class=\"click-here\" [routerLink]=\"'/page/learn'\">{{ 'contentstripmultiple.clickHere' | translate }}</a> {{ 'contentstripmultiple.toEnrollNextCourse' | translate }}</div>\n </div>\n </ng-container>\n <ng-template #msgTemp>\n <div class=\"w-full flex flex-col items-center justify-center\">\n <img alt=\"\" class=\"mt-4 mb-4\" src=\"assets/icons/home/nodataDefault.png\">\n <div class=\"mat-subheading-1 text-center\">{{ translateLabels(tab.nodataMsg, 'home') }}</div>\n </div>\n </ng-template>\n </div>\n <ng-container *ngIf=\"(tab?.fetchTabStatus === 'done' || tab?.widgets?.length)\">\n <ng-container *ngIf=\"!tab?.tabLoading\">\n\n <sb-uic-horizontal-scroller-v2 [id]=\"key+'-scroller'\" [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\" [widgetsLength]=\"tab?.widgets?.length\"\n *ngIf=\"getContineuLearningLenth(stripsResultDataMap[key]) && showAccordion(key)\"\n [loadStatus]=\"'done'\" [defaultMaxWidgets]=\"tab?.maxWidgets ||\n stripsResultDataMap[key]?.sliderConfig?.maxWidgets || defaultMaxWidgets\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of tab?.widgets| slice:0:(tab?.maxWidgets ||\n stripsResultDataMap[key]?.sliderConfig?.maxWidgets || defaultMaxWidgets); trackBy: tracker\">\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </ng-container>\n </ng-container>\n </div>\n </mat-tab>\n </mat-tab-group>\n </ng-container>\n <ng-container *ngIf=\"!stripsResultDataMap[key].tabs || !stripsResultDataMap[key].tabs.length\">\n <div *ngIf=\"stripsResultDataMap && stripsResultDataMap[key]?.showOnLoader\" class=\"text-center my-2\">\n <sb-uic-horizontal-scroller-v2 [id]=\"key+'-scroller'\" [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\"\n [loadStatus]=\"'fetching'\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of stripsResultDataMap[key]?.loaderWidgets; trackBy: tracker\">\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </div>\n <div class=\"\">\n <sb-uic-horizontal-scroller-v2 [id]=\"key+'-scroller'\" [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\"\n *ngIf=\"getContineuLearningLenth(stripsResultDataMap[key]) && showAccordion(key)\" [widgetsLength]=\"stripsResultDataMap[key]?.widgets?.length\" [loadStatus]=\"'done'\" [defaultMaxWidgets]=\"stripsResultDataMap[key].sliderConfig?.maxWidgets || defaultMaxWidgets\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of stripsResultDataMap[key]?.widgets| slice:0:(stripsResultDataMap[key].sliderConfig?.maxWidgets || defaultMaxWidgets); trackBy: tracker\">\n <!-- <ng-container *ngIf=\"widget.widgetData.context.pageSection === 'continueLearning' \"> -->\n <!-- <ng-container *ngIf=\"widget.widgetData.content.completionPercentage !== 100\"\n [sbUiResolverWidget]=\"widget\"></ng-container> -->\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n <!-- </ng-container> -->\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </a>\n\n </ng-container>\n </ng-container>\n</ng-template>",
6346
+ styles: [".view-more{display:flex;align-items:center;text-align:center;height:40px;justify-content:center}.view-more .icon{font-size:24px;width:24px;height:24px;border:1px solid;border-radius:50%;padding:8px;margin-bottom:8px}.margin-bottom-custom{margin-bottom:60px}.view-more:hover{background-color:#dcdfe5}::ng-deep.strips-tabgroup .mat-tab-header{border-bottom:2px solid rgba(0,0,0,.12)}::ng-deep.strips-tabgroup .mat-tab-body{padding:20px 0!important;box-sizing:border-box;overflow-y:initial!important}::ng-deep.strips-tabgroup .mat-tab-body-wrapper{overflow:inherit!important}::ng-deep.strips-tabgroup .mat-tab-label{border-bottom:0 solid rgba(0,0,0,.1);margin-right:0;opacity:1}::ng-deep.strips-tabgroup .mat-tab-label .mat-tab-label-content{text-transform:inherit;font:400 14px/20px Lato}::ng-deep.strips-tabgroup .mat-tab-label-active .mat-tab-label-content{font-weight:700!important}.click-here{color:#1b4ca1}.info-content{opacity:1;color:rgba(0,0,0,.87);font:700 14px/20px Lato-Bold;text-align:center}::ng-deep .pills-tab .mat-tab-header{border-bottom:unset!important}::ng-deep .pills-tab .mat-tab-label{border:1px solid rgba(0,0,0,.2392156863)!important;padding:2px 8px;margin-right:8px!important;min-width:unset!important;border-radius:12px;height:unset!important}::ng-deep .pills-tab .mat-ink-bar{background-color:transparent!important;visibility:hidden!important}::ng-deep .pills-tab .mat-tab-label-active{color:#fff!important;background-color:#1b4ca1!important}::ng-deep .pills-tab .mat-tab-body{padding:0!important}.min-height-40{min-height:40px}"]
6159
6347
  }] }
6160
6348
  ];
6161
6349
  /** @nocollapse */
@@ -6838,7 +7026,8 @@ var SlidersLibModule = /** @class */ (function () {
6838
7026
  var API_END_POINTS$2 = {
6839
7027
  PROVIDER_INSIGHTS: "/apis/proxies/v8/microsite/read/insights",
6840
7028
  TRAINING_DETAILS: "apis/proxies/v8/sunbirdigot/search",
6841
- ANNOUNCEMENTS_DETAILS: "apis/proxies/v8/announcements/v1/search"
7029
+ ANNOUNCEMENTS_DETAILS: "apis/proxies/v8/announcements/v1/search",
7030
+ LEARNERS: "apis/proxies/v8/halloffame/top/learners"
6842
7031
  };
6843
7032
  var InsiteDataService = /** @class */ (function () {
6844
7033
  function InsiteDataService(http) {
@@ -6877,6 +7066,15 @@ var InsiteDataService = /** @class */ (function () {
6877
7066
  function (request) {
6878
7067
  return this.http.post(API_END_POINTS$2.TRAINING_DETAILS, request);
6879
7068
  };
7069
+ /**
7070
+ * @return {?}
7071
+ */
7072
+ InsiteDataService.prototype.fetchLearner = /**
7073
+ * @return {?}
7074
+ */
7075
+ function () {
7076
+ return this.http.get(API_END_POINTS$2.LEARNERS);
7077
+ };
6880
7078
  InsiteDataService.decorators = [
6881
7079
  { type: Injectable, args: [{
6882
7080
  providedIn: 'root'
@@ -6992,11 +7190,36 @@ var DataPointsComponent = /** @class */ (function () {
6992
7190
  _this.isDataLoading = false;
6993
7191
  }));
6994
7192
  };
7193
+ /**
7194
+ * @param {?} value
7195
+ * @return {?}
7196
+ */
7197
+ DataPointsComponent.prototype.converToIndianSystem = /**
7198
+ * @param {?} value
7199
+ * @return {?}
7200
+ */
7201
+ function (value) {
7202
+ /** @type {?} */
7203
+ var numStr = value.toString();
7204
+ var _a = __read(numStr.split('.'), 2), integerPart = _a[0], decimalPart = _a[1];
7205
+ /** @type {?} */
7206
+ var lastThree = integerPart.slice(-3);
7207
+ /** @type {?} */
7208
+ var otherNumbers = integerPart.slice(0, -3);
7209
+ if (otherNumbers !== '') {
7210
+ lastThree = ',' + lastThree;
7211
+ }
7212
+ /** @type {?} */
7213
+ var formattedIntegerPart = otherNumbers.replace(/\B(?=(\d{2})+(?!\d))/g, ',') + lastThree;
7214
+ /** @type {?} */
7215
+ var result = decimalPart ? formattedIntegerPart + "." + decimalPart.substr(0, 2) : formattedIntegerPart;
7216
+ return result;
7217
+ };
6995
7218
  DataPointsComponent.decorators = [
6996
7219
  { type: Component, args: [{
6997
7220
  selector: 'sb-uic-data-points',
6998
- template: "<div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'multipleRows' && !isDataLoading\">\n <div *ngFor=\"let obj of objectData; let last = last\" class=\"\">\n <div class=\"element-div\" [ngClass]=\"{'linebreak': obj?.linebreak && !last}\">\n <div class=\"flex flex-row gap-3 items-top\">\n <div>\n <img class=\"objIcon\" [src]=\"obj.icon\" [style.color]=\"obj?.iconColor\">\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"objHeader pb-1\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColor\" class=\"objHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n {{obj.value | number: obj.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"objDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'singleRow' && !isDataLoading\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div {{obj?.background}} flex-item\" [style.background]=\"obj?.background\" >\n <div class=\"flex flex-row gap-3\">\n <div>\n <img [style.color]=\"obj?.iconColor\" class=\"mobjIcon\" [src]=\"obj.icon\">\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n {{obj?.value | number: obj.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"mobjDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n </div> \n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'gridLayout'\">\n <div class=\"w-full\" *ngIf=\"layoutType === 'gridLayout'\">\n <div class=\"top-container\">\n <div class=\"flex-container\" *ngFor=\"let chunk of customArray\">\n <div *ngFor=\"let item of chunk\">\n <div class=\"flex-item\">\n <div class=\"flex flex-row gap-5 infra-element-div\">\n <div>\n <div [style.color]=\"item?.valueColor\" class=\"infra-objHeader\" *ngIf=\"!(item && item.value)\">0</div>\n <div [style.color]=\"item?.valueColor\" class=\"infra-objHeader\" *ngIf=\"(item && item.value)\">\n {{item?.value | number: item.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div [style.color]=\"item?.labelColor\" class=\"custom-opacity infra-objDescription padding-top-s\">{{item?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n\n </div>\n </div>\n </div> \n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'singleFlexeRow' && !isDataLoading\">\n <div class=\"flex\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"singleFlexeRow-div flex-item\">\n <div class=\"flex flex-row gap-3\">\n <div>\n <img [style.color]=\"obj?.iconColor\" class=\"singleFlexeRowIcon\" [src]=\"obj.icon\">\n </div>\n <div class=\"flex flex-col\">\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"(obj && obj.value)\">\n {{obj?.value | number: obj.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"singleFlexeRowDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<!-- skeleton loaders -->\n\n<ng-container>\n <div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'multipleRows' && isDataLoading\">\n <div *ngFor=\"let obj of [0,1,2,3]\" class=\"\">\n <div class=\"element-div linebreak\" >\n <div class=\"flex flex-row gap-3 items-top\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'32px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\n </div>\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'150px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'singleFlexeRow' && isDataLoading\">\n <div class=\"flex\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"singleFlexeRow-div flex-item\">\n <div class=\"flex flex-row gap-3\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div class=\"flex flex-col\">\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"!(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"singleFlexeRowDescription\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'100px'\" [height]=\"'20px'\">\n </sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"w-full\" *ngIf=\"layoutType === 'singleRow' && isDataLoading\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div {{obj?.background}} flex-item\" [style.background]=\"obj?.background\" >\n <div class=\"flex flex-row gap-3\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'20px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"mobjDescription\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'100px'\" [height]=\"'18px'\">\n </sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-container>\n",
6999
- styles: [".white{color:#fff}.custom-opacity{opacity:.7}.black{color:#000}.objIcon{width:32px;height:32px}.mobjIcon{width:24px;height:24px}.objHeader{font-family:Montserrat;font-size:24px;font-weight:600;line-height:29.26px;text-align:left}.mobjHeader{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.objDescription{font-family:Lato;font-size:16px;font-weight:400;line-height:19.2px;text-align:left}.mobjDescription{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left}.metrics-web{height:inherit;overflow-y:auto}.element-div{padding:25px 0;margin:0 25px}.linebreak{border-bottom:1px solid rgba(0,0,0,.16)}.singleFlexeRow-div{padding:16px;border-radius:15px}.singleFlexeRowHeader{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:left}.singleFlexeRowDescription{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left}.singleFlexeRowIcon{width:24px;height:24px}.melement-div{padding:16px;border-radius:15px;width:249px}.banner-metrics{background:linear-gradient(180deg,#f9cb97 -107.59%,#ef951e 110.74%)}.infra-element-div{min-width:325px;padding:25px 0;align-items:baseline}.infra-objIcon{width:32px;height:32px}.infra-objHeader{font-family:Montserrat;font-size:36px;font-weight:600;line-height:29.26px;text-align:left}.infra-objDescription{font-family:Lato;font-size:16px;font-weight:400;line-height:19.2px;text-align:left;width:230px;text-overflow:ellipsis;overflow:hidden}.flex-container{display:flex}.top-container{overflow-x:auto;width:100%}::-webkit-scrollbar{height:4px}::-webkit-scrollbar-track{border-radius:10px;background:#000}::-webkit-scrollbar-thumb{background:#cccc;border-radius:10px}.flex-item{flex:0 0 auto;white-space:nowrap;min-width:200px}@media screen and (max-width:768px){.infra-objIcon{width:24px;height:24px}.infra-objHeader{font-size:24px}.infra-element-div{min-width:250px;padding:15px 0 25px}}"]
7221
+ template: "<div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'multipleRows' && !isDataLoading\">\n <div *ngFor=\"let obj of objectData; let last = last\" class=\"\">\n <div class=\"element-div\" [ngClass]=\"{'linebreak': obj?.linebreak && !last}\">\n <div class=\"flex flex-row gap-3 items-top\">\n <div>\n <img class=\"objIcon\" [src]=\"obj.icon\" [style.color]=\"obj?.iconColor\">\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"objHeader pb-1\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColor\" class=\"objHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n {{obj.value | number: obj.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"objDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'multipleRows-V2' && !isDataLoading\">\n <div *ngFor=\"let obj of objectData; let i = index\">\n <div class=\"flex flex-row gap-4 {{(i+1 === objectData.length ? '' : 'pb-5')}}\">\n <div class=\"v2-icons-div\">\n <div class=\"v2-icon-contaier\"\n [style.background]=\"obj?.iconBackgroupColorV2\"\n [style.borderColor]=\"obj?.valueColor\">\n <img class=\"v2-objIcon\" [src]=\"obj.icon\" />\n </div>\n </div>\n <div class=\"v2-content-div\">\n <div class=\"flex flex-col\">\n <div class=\"v2-value\" [style.color]=\"obj?.valueColorV2\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div class=\"v2-value\" [style.color]=\"obj?.valueColorV2\">\n {{obj.value | number: obj.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div class=\"v2-label\" [style.color]=\"obj?.labelColorV2\">\n {{obj?.label}}\n </div>\n <div class=\"flex flex-row dot-container\" *ngIf=\"i+1 !== objectData.length\">\n <div class=\"v2-dot\"\n [style.background]=\"obj?.valueColorV2\"\n [style.borderColor]=\"obj?.labelColorV2\"></div>\n <div class=\"v2-border\" [style.background]=\"obj?.labelColorV2\"></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'singleRow-v2' && !isDataLoading\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div flex-item\" [style.background]=\"obj?.backgroundV2\" >\n <div class=\"flex flex-row gap-3\">\n <div class=\"mob-image-container-v2\">\n <img [style.color]=\"obj?.iconColor\" class=\"mobjIcon-v2\" [src]=\"obj.icon\">\n </div>\n <div>\n <div [style.color]=\"obj?.valueColorMobV2\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColorMobV2\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n {{converToIndianSystem(obj?.value)}}\n </div>\n <div [style.color]=\"obj?.labelColorV2\" class=\"mobjDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'singleRow' && !isDataLoading\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div {{obj?.background}} flex-item\" [style.background]=\"obj?.background\" >\n <div class=\"flex flex-row gap-3\">\n <div>\n <img [style.color]=\"obj?.iconColor\" class=\"mobjIcon\" [src]=\"obj.icon\">\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n {{obj?.value | number: obj.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"mobjDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n </div> \n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'gridLayout'\">\n <div class=\"w-full\" *ngIf=\"layoutType === 'gridLayout'\">\n <div class=\"top-container\">\n <div class=\"flex-container\" *ngFor=\"let chunk of customArray\">\n <div *ngFor=\"let item of chunk\">\n <div class=\"flex-item\">\n <div class=\"flex flex-row gap-5 infra-element-div\">\n <div>\n <div [style.color]=\"item?.valueColor\" class=\"infra-objHeader\" *ngIf=\"!(item && item.value)\">0</div>\n <div [style.color]=\"item?.valueColor\" class=\"infra-objHeader\" *ngIf=\"(item && item.value)\">\n {{item?.value | number: item.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div [style.color]=\"item?.labelColor\" class=\"custom-opacity infra-objDescription padding-top-s\">{{item?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n\n </div>\n </div>\n </div> \n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'singleFlexeRow' && !isDataLoading\">\n <div class=\"flex space-around\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"singleFlexeRow-div singleFlexeRow flex-item\">\n <div class=\"flex flex-row gap-3\">\n <div>\n <img [style.color]=\"obj?.iconColor\" class=\"singleFlexeRowIcon\" [src]=\"obj.icon\">\n </div>\n <div class=\"flex flex-col\">\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"(obj && obj.value)\">\n {{converToIndianSystem(obj?.value)}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"singleFlexeRowDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<!-- skeleton loaders -->\n\n<ng-container>\n <div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'multipleRows-V2' && isDataLoading\">\n <div *ngFor=\"let obj of [1,2,3,4]l let i = index\">\n <div class=\"flex flex-row gap-4 {{(i+1 === objectData.length ? '' : 'pb-5')}}\">\n <div class=\"v2-icons-div\">\n <div class=\"v2-icon-contaier\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'55px'\"\n [height]=\"'55px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n <div class=\"v2-content-div\">\n <div class=\"flex flex-col\">\n <div class=\"v2-value\" [style.color]=\"obj?.valueColor\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"v2-label\" [style.color]=\"obj?.labelColor\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'100px'\"\n [height]=\"'16px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div> \n </div>\n </div>\n</ng-container>\n\n<ng-container>\n <div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'multipleRows' && isDataLoading\">\n <div *ngFor=\"let obj of [0,1,2,3]\" class=\"\">\n <div class=\"element-div linebreak\" >\n <div class=\"flex flex-row gap-3 items-top\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'32px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\n </div>\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'150px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'singleFlexeRow' && isDataLoading\">\n <div class=\"flex\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"singleFlexeRow-div flex-item\">\n <div class=\"flex flex-row gap-3\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div class=\"flex flex-col\">\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"!(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"singleFlexeRowDescription\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'100px'\" [height]=\"'20px'\">\n </sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"w-full\" *ngIf=\"layoutType === 'singleRow' && isDataLoading\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div {{obj?.background}} flex-item\" [style.background]=\"obj?.background\" >\n <div class=\"flex flex-row gap-3\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'20px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"mobjDescription\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'100px'\" [height]=\"'18px'\">\n </sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"w-full\" *ngIf=\"layoutType === 'singleRow-v2' && isDataLoading\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div flex-item\" [style.background]=\"obj?.backgroundV2\" >\n <div class=\"flex flex-row gap-3\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"mobjDescription\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'100px'\" [height]=\"'18px'\">\n </sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-container>\n",
7222
+ styles: ["@font-face{font-family:Poppins;src:url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-400-normal.woff2) format('woff2'),url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-400-normal.woff) format('woff')}.mob-image-container-v2{height:28px;width:28px;background:#fff;display:flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid #fff}.mobjIcon-v2{width:18px;height:18px}.v2-icon-contaier{height:50px;width:50px;border:1px solid #fff;border-radius:50%;align-items:center;display:flex;justify-content:center}.v2-value{font-family:Poppins;font-size:24px;font-weight:600;line-height:24px;text-align:left;padding-bottom:5px;padding-left:10px}.v2-label{font-family:Poppins;font-size:12px;font-weight:400;line-height:18px;text-align:left;padding-bottom:5px;padding-left:10px}.dot-container{align-items:center}.v2-dot{width:9px;height:9px;border:2px solid #fff;border-radius:50%}.v2-border{height:1px;width:182px}.white{color:#fff}.custom-opacity{opacity:.7}.black{color:#000}.objIcon{width:32px;height:32px}.mobjIcon{width:24px;height:24px}.objHeader{font-family:Montserrat;font-size:24px;font-weight:600;line-height:29.26px;text-align:left}.mobjHeader{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.objDescription{font-family:Lato;font-size:16px;font-weight:400;line-height:19.2px;text-align:left}.mobjDescription{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left}.metrics-web{height:inherit;overflow-y:auto}.element-div{padding:25px 0;margin:0 25px}.linebreak{border-bottom:1px solid rgba(0,0,0,.16)}.singleFlexeRow-flex-item{flex:0 0 auto;white-space:nowrap}.singleFlexeRow-div{padding:16px;border-radius:15px}.singleFlexeRowHeader{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:left}.singleFlexeRowDescription{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left}.singleFlexeRowIcon{width:24px;height:24px}.melement-div{padding:16px;border-radius:15px;width:249px}.banner-metrics{background:linear-gradient(180deg,#f9cb97 -107.59%,#ef951e 110.74%)}.infra-element-div{min-width:325px;padding:25px 0;align-items:baseline}.infra-objIcon{width:32px;height:32px}.infra-objHeader{font-family:Montserrat;font-size:36px;font-weight:600;line-height:29.26px;text-align:left}.infra-objDescription{font-family:Lato;font-size:16px;font-weight:400;line-height:19.2px;text-align:left;width:230px;text-overflow:ellipsis;overflow:hidden}.flex-container{display:flex}.top-container{overflow-x:auto;width:100%}::-webkit-scrollbar{height:4px}::-webkit-scrollbar-track{border-radius:10px;background:#000}::-webkit-scrollbar-thumb{background:#cccc;border-radius:10px}.flex-item{flex:0 0 auto;white-space:nowrap;min-width:200px}.space-around{justify-content:space-evenly}@media screen and (max-width:768px){.infra-objIcon{width:24px;height:24px}.infra-objHeader{font-size:24px}.infra-element-div{min-width:250px;padding:15px 0 25px}}"]
7000
7223
  }] }
7001
7224
  ];
7002
7225
  /** @nocollapse */
@@ -8484,6 +8707,8 @@ var AnnouncementsComponent = /** @class */ (function () {
8484
8707
  this.openDialog = new EventEmitter();
8485
8708
  this.isLoading = false;
8486
8709
  this.announcements = [];
8710
+ this.expand = false;
8711
+ this.expanded = false;
8487
8712
  }
8488
8713
  /**
8489
8714
  * @return {?}
@@ -8541,6 +8766,9 @@ var AnnouncementsComponent = /** @class */ (function () {
8541
8766
  });
8542
8767
  }));
8543
8768
  }
8769
+ if (_this.announcements.length > 3) {
8770
+ _this.expand = true;
8771
+ }
8544
8772
  _this.objectData.list = _this.announcements;
8545
8773
  _this.isLoading = false;
8546
8774
  }), (/**
@@ -8575,11 +8803,20 @@ var AnnouncementsComponent = /** @class */ (function () {
8575
8803
  function () {
8576
8804
  this.openDialog.emit(true);
8577
8805
  };
8806
+ /**
8807
+ * @return {?}
8808
+ */
8809
+ AnnouncementsComponent.prototype.showMoreOrLess = /**
8810
+ * @return {?}
8811
+ */
8812
+ function () {
8813
+ this.expanded = !this.expanded;
8814
+ };
8578
8815
  AnnouncementsComponent.decorators = [
8579
8816
  { type: Component, args: [{
8580
8817
  selector: 'sb-uic-announcements',
8581
- template: "<div class=\"w-full\" *ngIf=\"layoutType === 'web' && !isLoading\">\n <div class=\"flex item-center key-logo\">\n <img class=\"\" [src]=\"objectData?.logoUrl\">\n </div>\n <div class=\"flex item-center key-logo\">\n <div class=\"key-heading\"\n [style.backgroundColor]=\"objectData?.header?.background\"\n [style.color]=\"objectData?.header?.color\">\n {{objectData?.title}}\n </div>\n </div>\n <div class=\"key-list-container\"\n [style.borderColor]=\"objectData?.panelborder\"\n [style.backgroundColor]=\"objectData?.panelBackground\">\n <div class=\"{{mobileHeight ? 'mob-key-list' : 'key-list'}}\" *ngIf=\"objectData?.list?.length\">\n <div *ngFor=\"let item of objectData?.list; let i = index\">\n <div class=\"key-list-item mb-{{ objectData?.list?.length === (i+1) ? '' : '4'}}\" \n [style.borderColor]=\"objectData?.listItem?.border\"\n [style.backgroundColor]=\"objectData?.listItem?.background\">\n <div class=\"key-list-item-content {{item?.value?.length > 152 && !item?.expanded ? 'expand' : 'un-expand'}}\" [innerHTML]=\"item?.value\"></div>\n <div class=\"more-or-less\" *ngIf=\"item?.value?.length > 152\" [style.color]=\"objectData?.panelborder\">\n <div class=\"cursor-pointer\" (click)=\"viewMoreOrLess(item)\" *ngIf=\"!item?.expanded\">View more</div>\n <div class=\"cursor-pointer\" (click)=\"viewMoreOrLess(item)\" *ngIf=\"item?.expanded\">View less</div>\n </div>\n </div>\n </div> \n </div>\n <div class=\"{{mobileHeight ? 'mob-key-list' : 'key-list'}}\" *ngIf=\"!objectData?.list?.length\">\n <div class=\"text-center\">No announcements yet!</div>\n </div>\n </div>\n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'mobile'\">\n <div class=\"flex item-center key-logo \">\n <div class=\"mob-key-heading\" (click)=\"openAnnouncements()\"\n [style.backgroundColor]=\"objectData?.header?.background\"\n [style.color]=\"objectData?.header?.color\">\n <div class=\"flex key-button gap-3\">\n <div>\n <img [src]=\"objectData?.mobileIcon\">\n </div>\n <div>{{objectData?.title}}</div> \n <div><mat-icon class=\"key-mob-icon\">arrow_forward_ios</mat-icon></div>\n </div> \n </div>\n </div>\n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'web' && isLoading\">\n <div class=\"flex item-center key-logo\">\n <img class=\"\" [src]=\"objectData?.logoUrl\">\n </div>\n <div class=\"flex item-center key-logo pt-1\">\n <div class=\"key-heading\"\n [style.backgroundColor]=\"objectData?.header?.background\"\n [style.color]=\"objectData?.header?.color\">\n {{objectData?.title}}\n </div>\n </div>\n <div class=\"key-list-container\"\n [style.borderColor]=\"objectData?.panelborder\"\n [style.backgroundColor]=\"objectData?.panelBackground\">\n <div class=\"{{mobileHeight ? 'mob-key-list' : 'key-list'}}\" > \n <div class=\"key-list-item mb-4\" \n *ngFor=\"let item of[0,1,2,3,4]; let i = index\"\n [style.borderColor]=\"objectData?.listItem?.border\"\n [style.backgroundColor]=\"objectData?.listItem?.background\">\n <div class=\"key-list-item-content un-expand\">\n <div class=\"py-1\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon '\" [width]=\"'350px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div class=\"py-1\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon '\" [width]=\"'350px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div> \n </div>\n</div>\n",
8582
- styles: [".key-logo{align-items:center;justify-content:center}.key-list-container{border:1px solid #ccc;padding:45px 15px 15px;border-radius:12px;margin-top:-20px}.key-list{height:600px;overflow:auto}.mob-key-list{height:calc(100vh - 252px);overflow:auto}.key-list::-webkit-scrollbar{display:none}.key-list-item{padding:16px;border:1px solid #ccc;border-radius:12px;min-height:56px}::ng-deep .key-list-item-content a{color:#1b4ca1!important}.key-list-item-content{font-family:Lato;font-size:14px;font-weight:400;line-height:20px;text-align:left;white-space:initial;position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical}.expand{-webkit-line-clamp:3}.un-expand{-webkit-line-clamp:0}.more-or-less{font-family:Lato;font-size:14px;line-height:20px;font-weight:600}.mob-key-heading{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:center;padding:7px 25px;border-radius:20px;animation:.9s infinite mobPaddingAnimation;cursor:pointer}.key-mob-icon{font-size:12px;width:12px;height:12px}.key-button{align-items:center;justify-content:center}.key-heading{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:center;padding:10px 50px;border-radius:20px;margin-top:-3px;animation:.9s infinite paddingAnimation}@keyframes mobPaddingAnimation{0%,100%{padding:7px 25px}25%,75%{padding:7px 30px}50%{padding:7px 35px}}@keyframes paddingAnimation{0%,100%{padding:10px 50px}25%,75%{padding:10px 55px}50%{padding:10px 60px}}"]
8818
+ template: "<div class=\"w-full\" *ngIf=\"layoutType === 'web' && !isLoading\">\n <div class=\"flex item-center key-logo\">\n <img class=\"\" [src]=\"objectData?.logoUrl\">\n </div>\n <div class=\"flex item-center key-logo\">\n <div class=\"key-heading\"\n [style.backgroundColor]=\"objectData?.header?.background\"\n [style.color]=\"objectData?.header?.color\">\n {{objectData?.title}}\n </div>\n </div>\n <div class=\"key-list-container\"\n [style.borderColor]=\"objectData?.panelborder\"\n [style.backgroundColor]=\"objectData?.panelBackground\">\n <div class=\"{{mobileHeight ? 'mob-key-list' : expand && expanded ? 'exp-key-list' : 'key-list'}}\" *ngIf=\"objectData?.list?.length\">\n <div *ngFor=\"let item of objectData?.list; let i = index\">\n <div class=\"key-list-item mb-{{ objectData?.list?.length === (i+1) ? '' : '4'}}\" \n [style.borderColor]=\"objectData?.listItem?.border\"\n [style.backgroundColor]=\"objectData?.listItem?.background\">\n <div class=\"key-list-item-content {{item?.value?.length > 152 && !item?.expanded ? 'expand' : 'un-expand'}}\" [innerHTML]=\"item?.value\"></div>\n <div class=\"more-or-less\" *ngIf=\"item?.value?.length > 152\" [style.color]=\"objectData?.panelborder\">\n <div class=\"cursor-pointer\" (click)=\"viewMoreOrLess(item)\" *ngIf=\"!item?.expanded\">View more</div>\n <div class=\"cursor-pointer\" (click)=\"viewMoreOrLess(item)\" *ngIf=\"item?.expanded\">View less</div>\n </div>\n </div>\n </div> \n </div>\n <div class=\"{{mobileHeight ? 'mob-key-list' : 'key-list'}}\" *ngIf=\"!objectData?.list?.length\">\n <div class=\"text-center\">No announcements yet!</div>\n </div>\n </div>\n</div>\n\n<ng-container *ngIf=\"!mobileHeight && expand\">\n <div (click)=\"showMoreOrLess()\" class=\"announcements-expand\" *ngIf=\"!expanded\">\n <mat-icon>expand_more</mat-icon>\n </div>\n <div (click)=\"showMoreOrLess()\" class=\"announcements-expand\" *ngIf=\"expanded\">\n <mat-icon>expand_less</mat-icon>\n </div>\n</ng-container>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'mobile'\">\n <div class=\"flex item-center key-logo \">\n <div class=\"mob-key-heading\" (click)=\"openAnnouncements()\"\n [style.backgroundColor]=\"objectData?.header?.background\"\n [style.color]=\"objectData?.header?.color\">\n <div class=\"flex key-button gap-3\">\n <div>\n <img [src]=\"objectData?.mobileIcon\">\n </div>\n <div>{{objectData?.title}}</div> \n <div><mat-icon class=\"key-mob-icon\">arrow_forward_ios</mat-icon></div>\n </div> \n </div>\n </div>\n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'web' && isLoading\">\n <div class=\"flex item-center key-logo\">\n <img class=\"\" [src]=\"objectData?.logoUrl\">\n </div>\n <div class=\"flex item-center key-logo pt-1\">\n <div class=\"key-heading\"\n [style.backgroundColor]=\"objectData?.header?.background\"\n [style.color]=\"objectData?.header?.color\">\n {{objectData?.title}}\n </div>\n </div>\n <div class=\"key-list-container\"\n [style.borderColor]=\"objectData?.panelborder\"\n [style.backgroundColor]=\"objectData?.panelBackground\">\n <div class=\"{{mobileHeight ? 'mob-key-list' : 'key-list'}}\" > \n <div class=\"key-list-item mb-4\" \n *ngFor=\"let item of[0,1,2,3,4]; let i = index\"\n [style.borderColor]=\"objectData?.listItem?.border\"\n [style.backgroundColor]=\"objectData?.listItem?.background\">\n <div class=\"key-list-item-content un-expand\">\n <div class=\"py-1\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon '\" [width]=\"'350px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div class=\"py-1\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon '\" [width]=\"'350px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div> \n </div>\n</div>\n",
8819
+ styles: [".key-logo{align-items:center;justify-content:center}.key-list-container{border:1px solid #ccc;padding:45px 15px 15px;border-radius:12px;margin-top:-20px}.key-list{height:325px;overflow:auto}.exp-key-list{height:100%;overflow:auto}.mob-key-list{height:calc(100vh - 252px);overflow:auto}.key-list::-webkit-scrollbar{display:none}.key-list-item{padding:16px;border:1px solid #ccc;border-radius:12px;min-height:56px}::ng-deep .key-list-item-content a{color:#1b4ca1!important}.key-list-item-content{font-family:Lato;font-size:14px;font-weight:400;line-height:20px;text-align:left;white-space:initial;position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical}.expand{-webkit-line-clamp:3}.un-expand{-webkit-line-clamp:0}.more-or-less{font-family:Lato;font-size:14px;line-height:20px;font-weight:600}.mob-key-heading{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:center;padding:7px 25px;border-radius:20px;animation:.9s infinite mobPaddingAnimation;cursor:pointer}.key-mob-icon{font-size:12px;width:12px;height:12px}.key-button{align-items:center;justify-content:center}.key-heading{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:center;padding:10px 50px;border-radius:20px;margin-top:-3px;animation:.9s infinite paddingAnimation}.announcements-expand{width:32px;height:32px;position:relative;background:#000;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;left:50%;right:50%;top:-16px;cursor:pointer}@keyframes mobPaddingAnimation{0%,100%{padding:7px 25px}25%,75%{padding:7px 30px}50%{padding:7px 35px}}@keyframes paddingAnimation{0%,100%{padding:10px 50px}25%,75%{padding:10px 55px}50%{padding:10px 60px}}"]
8583
8820
  }] }
8584
8821
  ];
8585
8822
  /** @nocollapse */
@@ -8614,6 +8851,10 @@ if (false) {
8614
8851
  /** @type {?} */
8615
8852
  AnnouncementsComponent.prototype.announcements;
8616
8853
  /** @type {?} */
8854
+ AnnouncementsComponent.prototype.expand;
8855
+ /** @type {?} */
8856
+ AnnouncementsComponent.prototype.expanded;
8857
+ /** @type {?} */
8617
8858
  AnnouncementsComponent.prototype.insightSvc;
8618
8859
  }
8619
8860
 
@@ -8638,560 +8879,1296 @@ var AnnouncementsModule = /** @class */ (function () {
8638
8879
  return AnnouncementsModule;
8639
8880
  }());
8640
8881
 
8641
- /**
8642
- * @fileoverview added by tsickle
8643
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8644
- */
8645
- var ConsumptionModule = /** @class */ (function () {
8646
- function ConsumptionModule() {
8647
- }
8648
- ConsumptionModule.decorators = [
8649
- { type: NgModule, args: [{
8650
- declarations: [ConsumptionComponent],
8651
- imports: [
8652
- ContentStripWithTabsLibModule,
8653
- SlidersLibModule
8654
- ],
8655
- exports: [ConsumptionComponent,
8656
- ContentStripWithTabsLibModule,
8657
- SlidersLibModule,
8658
- DataPointsModule,
8659
- CalenderModule,
8660
- CommonStripModule,
8661
- AnnouncementsModule
8662
- ],
8663
- },] }
8664
- ];
8665
- return ConsumptionModule;
8666
- }());
8667
-
8668
8882
  /**
8669
8883
  * @fileoverview added by tsickle
8670
8884
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8671
8885
  */
8672
8886
  /** @type {?} */
8673
- var ROOT_WIDGET_CONFIG = {
8674
- card: {
8675
- _type: 'cardLib',
8676
- cardResource: 'cardContentLib'
8677
- },
8678
- };
8679
-
8680
- /**
8681
- * @fileoverview added by tsickle
8682
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8683
- */
8684
- var NsCardContent$1;
8685
- (function (NsCardContent) {
8686
- /**
8687
- * @record
8688
- */
8689
- function ICard() { }
8690
- NsCardContent.ICard = ICard;
8691
- if (false) {
8692
- /** @type {?} */
8693
- ICard.prototype.content;
8694
- /** @type {?} */
8695
- ICard.prototype.cardSubType;
8696
- /** @type {?} */
8697
- ICard.prototype.context;
8698
- /** @type {?|undefined} */
8699
- ICard.prototype.intranetMode;
8700
- /** @type {?|undefined} */
8701
- ICard.prototype.deletedMode;
8702
- /** @type {?|undefined} */
8703
- ICard.prototype.likes;
8704
- /** @type {?|undefined} */
8705
- ICard.prototype.contentTags;
8706
- /** @type {?} */
8707
- ICard.prototype.stateData;
8708
- /** @type {?|undefined} */
8709
- ICard.prototype.cardCustomeClass;
8887
+ var moment$1 = moment$2;
8888
+ var TopLearnersComponent = /** @class */ (function () {
8889
+ function TopLearnersComponent(insightSvc) {
8890
+ this.insightSvc = insightSvc;
8891
+ this.loading = false;
8892
+ this.month = '';
8893
+ this.results = [];
8894
+ this.colors = [
8895
+ '#EB7181',
8896
+ '#306933',
8897
+ '#000000',
8898
+ '#3670B2',
8899
+ '#4E9E87',
8900
+ '#7E4C8D',
8901
+ '#EB7181',
8902
+ '#306933',
8903
+ '#000000',
8904
+ '#3670B2',
8905
+ ];
8710
8906
  }
8711
8907
  /**
8712
- * @record
8908
+ * @return {?}
8713
8909
  */
8714
- function IContentTags() { }
8715
- NsCardContent.IContentTags = IContentTags;
8716
- if (false) {
8717
- /** @type {?|undefined} */
8718
- IContentTags.prototype.daysSpan;
8719
- /** @type {?|undefined} */
8720
- IContentTags.prototype.excludeContentType;
8721
- /** @type {?|undefined} */
8722
- IContentTags.prototype.excludeMimeType;
8723
- /** @type {?} */
8724
- IContentTags.prototype.tag;
8725
- /** @type {?|undefined} */
8726
- IContentTags.prototype.criteriaField;
8727
- }
8728
- var EContentStatus;
8729
- (function (EContentStatus) {
8730
- EContentStatus["LIVE"] = "Live";
8731
- EContentStatus["EXPIRED"] = "Expired";
8732
- EContentStatus["DELETED"] = "Deleted";
8733
- EContentStatus["MARK_FOR_DELETION"] = "MarkedForDeletion";
8734
- })(EContentStatus = NsCardContent.EContentStatus || (NsCardContent.EContentStatus = {}));
8735
- var ACBPConst;
8736
- (function (ACBPConst) {
8737
- ACBPConst["UPCOMING"] = "upcoming";
8738
- ACBPConst["ALL"] = "All";
8739
- ACBPConst["OVERDUE"] = "overdue";
8740
- ACBPConst["SUCCESS"] = "success";
8741
- })(ACBPConst = NsCardContent.ACBPConst || (NsCardContent.ACBPConst = {}));
8742
- var IGOTConst;
8743
- (function (IGOTConst) {
8744
- IGOTConst["COMPETENCIES"] = "competencies_v5";
8745
- IGOTConst["RETIRED"] = "Retired";
8746
- })(IGOTConst = NsCardContent.IGOTConst || (NsCardContent.IGOTConst = {}));
8747
- })(NsCardContent$1 || (NsCardContent$1 = {}));
8748
-
8749
- /**
8750
- * @fileoverview added by tsickle
8751
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8752
- */
8753
- var CardsComponent = /** @class */ (function (_super) {
8754
- __extends(CardsComponent, _super);
8755
- function CardsComponent(utilitySvc, contSvc, router) {
8756
- var _this = _super.call(this) || this;
8757
- _this.utilitySvc = utilitySvc;
8758
- _this.contSvc = contSvc;
8759
- _this.router = router;
8760
- _this.triggerTelemetry = new EventEmitter();
8761
- _this.isIntranetAllowedSettings = false;
8762
- return _this;
8763
- }
8910
+ TopLearnersComponent.prototype.ngOnInit = /**
8911
+ * @return {?}
8912
+ */
8913
+ function () {
8914
+ this.getData();
8915
+ this.month = new Date().toLocaleString('default', { month: 'long' });
8916
+ };
8764
8917
  /**
8765
8918
  * @return {?}
8766
8919
  */
8767
- CardsComponent.prototype.ngOnInit = /**
8920
+ TopLearnersComponent.prototype.getData = /**
8768
8921
  * @return {?}
8769
8922
  */
8770
8923
  function () {
8771
8924
  var _this = this;
8772
- this.cbPlanInterval = setInterval((/**
8773
- * @return {?}
8774
- */
8775
- function () {
8776
- _this.getCbPlanData();
8777
- }), 1000);
8778
- this.enrollInterval = setInterval((/**
8779
- * @return {?}
8780
- */
8781
- function () {
8782
- _this.getEnrollmentData();
8783
- // tslint:disable-next-line
8784
- }), 1000);
8785
- };
8786
- Object.defineProperty(CardsComponent.prototype, "isLiveOrMarkForDeletion", {
8787
- get: /**
8925
+ this.loading = true;
8926
+ this.insightSvc.fetchLearner().subscribe((/**
8927
+ * @param {?} res
8788
8928
  * @return {?}
8789
8929
  */
8790
- function () {
8791
- if (!this.widgetData.content.status ||
8792
- this.widgetData.content.status === 'Live' ||
8793
- this.widgetData.content.status === 'MarkedForDeletion') {
8794
- return true;
8930
+ function (res) {
8931
+ if (res && res.result && res.result.result) {
8932
+ _this.results = res.result.result;
8933
+ _this.month = moment$1().month(Number(res.result.result[0].month) - 1).format('MMMM');
8795
8934
  }
8796
- return false;
8797
- },
8798
- enumerable: true,
8799
- configurable: true
8800
- });
8801
- Object.defineProperty(CardsComponent.prototype, "showIntranetContent", {
8802
- get: /**
8935
+ _this.loading = false;
8936
+ }), (/**
8937
+ * @param {?} _error
8803
8938
  * @return {?}
8804
8939
  */
8805
- function () {
8806
- if (this.widgetData.content.isInIntranet && this.utilitySvc.isMobile) {
8807
- return !this.isIntranetAllowedSettings;
8808
- }
8809
- return false;
8810
- },
8811
- enumerable: true,
8812
- configurable: true
8813
- });
8814
- /**
8815
- * @param {?} content
8816
- * @return {?}
8817
- */
8818
- CardsComponent.prototype.getRedirectUrlData = /**
8819
- * @param {?} content
8820
- * @return {?}
8821
- */
8822
- function (content) {
8823
- return __awaiter(this, void 0, void 0, function () {
8824
- var urlData;
8825
- return __generator(this, function (_a) {
8826
- switch (_a.label) {
8827
- case 0:
8828
- if (!content.externalId) return [3 /*break*/, 1];
8829
- this.router.navigate(["app/toc/ext/" + content.contentId]);
8830
- return [3 /*break*/, 3];
8831
- case 1: return [4 /*yield*/, this.contSvc.getResourseLink(content)];
8832
- case 2:
8833
- urlData = _a.sent();
8834
- this.router.navigate([urlData.url], {
8835
- queryParams: urlData.queryParams
8836
- });
8837
- _a.label = 3;
8838
- case 3: return [2 /*return*/];
8839
- }
8840
- });
8841
- });
8940
+ function (_error) {
8941
+ // tslint:disable-next-line: align
8942
+ _this.loading = false;
8943
+ }));
8842
8944
  };
8843
8945
  /**
8946
+ * @param {?} rank
8844
8947
  * @return {?}
8845
8948
  */
8846
- CardsComponent.prototype.getCbPlanData = /**
8949
+ TopLearnersComponent.prototype.getRank = /**
8950
+ * @param {?} rank
8847
8951
  * @return {?}
8848
8952
  */
8849
- function () {
8850
- /** @type {?} */
8851
- var cbpList = {};
8852
- if (localStorage.getItem('cbpData')) {
8853
- /** @type {?} */
8854
- var cbpListArr = JSON.parse(localStorage.getItem('cbpData') || '');
8855
- if (cbpListArr && cbpListArr.length) {
8856
- cbpListArr.forEach((/**
8857
- * @param {?} data
8858
- * @return {?}
8859
- */
8860
- function (data) {
8861
- cbpList[data.identifier] = data;
8862
- }));
8863
- }
8864
- this.cbPlanMapData = cbpList;
8865
- // this.karmaPointLoading = false
8866
- clearInterval(this.cbPlanInterval);
8953
+ function (rank) {
8954
+ if (rank === 1) {
8955
+ return "1st";
8956
+ }
8957
+ if (rank === 2) {
8958
+ return "2nd";
8959
+ }
8960
+ if (rank === 3) {
8961
+ return "3rd";
8962
+ }
8963
+ else {
8964
+ return rank + "th";
8867
8965
  }
8868
8966
  };
8869
8967
  /**
8870
8968
  * @return {?}
8871
8969
  */
8872
- CardsComponent.prototype.getEnrollmentData = /**
8970
+ TopLearnersComponent.prototype.getColor = /**
8873
8971
  * @return {?}
8874
8972
  */
8875
8973
  function () {
8876
- if (localStorage.getItem('enrollmentMapData')) {
8877
- this.enrollmentMapData = JSON.parse(localStorage.getItem('enrollmentMapData') || '{}');
8878
- clearInterval(this.enrollInterval);
8879
- }
8974
+ /** @type {?} */
8975
+ var circleColor = '';
8976
+ /** @type {?} */
8977
+ var randomIndex = Math.floor(Math.random() * Math.floor(this.colors.length));
8978
+ circleColor = this.colors[randomIndex];
8979
+ return circleColor;
8880
8980
  };
8881
8981
  /**
8882
- * @param {?} data
8982
+ * @param {?} name
8883
8983
  * @return {?}
8884
8984
  */
8885
- CardsComponent.prototype.raiseCardClick = /**
8886
- * @param {?} data
8985
+ TopLearnersComponent.prototype.createInititals = /**
8986
+ * @param {?} name
8887
8987
  * @return {?}
8888
8988
  */
8889
- function (data) {
8890
- this.triggerTelemetry.emit(data);
8989
+ function (name) {
8990
+ /** @type {?} */
8991
+ var initials = '';
8992
+ /** @type {?} */
8993
+ var array = name.toString().split(' ');
8994
+ if (array[0] !== 'undefined' && typeof array[1] !== 'undefined') {
8995
+ initials += array[0].charAt(0);
8996
+ initials += array[1].charAt(0);
8997
+ }
8998
+ else {
8999
+ for (var i = 0; i < name.length; i += 1) {
9000
+ if (name.charAt(i) === ' ') {
9001
+ continue;
9002
+ }
9003
+ if (name.charAt(i) === name.charAt(i)) {
9004
+ initials += name.charAt(i);
9005
+ if (initials.length === 2) {
9006
+ break;
9007
+ }
9008
+ }
9009
+ }
9010
+ }
9011
+ return initials.toUpperCase();
8891
9012
  };
8892
- CardsComponent.decorators = [
9013
+ TopLearnersComponent.decorators = [
8893
9014
  { type: Component, args: [{
8894
- selector: 'sb-uic-cards',
8895
- template: "<div class=\"widget-card-content-new\">\n <ng-container *ngIf=\"widgetData && (((widgetData?.deletedMode || 'none') === 'hide' && !!!isLiveOrMarkForDeletion)\n ? false\n : !((widgetData?.intranetMode || 'none') === 'hide' && !!showIntranetContent))\"\n [ngSwitch]=\"( (widgetData && widgetData?.cardSubType) || 'cardPortraitLib')\">\n <ng-container *ngSwitchDefault [ngTemplateOutlet]=\"cardPortraitLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'user-card'\" [ngTemplateOutlet]=\"cardUser\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-lib-skeleton'\" [ngTemplateOutlet]=\"cardPortraitLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-lib'\" [ngTemplateOutlet]=\"cardPortraitLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-landscape-lib-skeleton'\" [ngTemplateOutlet]=\"cardLandscapeLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-landscape-lib'\" [ngTemplateOutlet]=\"cardLandscapeLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-lib-skeleton'\" [ngTemplateOutlet]=\"cardWideLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-lib'\" [ngTemplateOutlet]=\"cardWideLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-v2'\" [ngTemplateOutlet]=\"cardWideV2\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-v2-skeleton'\" [ngTemplateOutlet]=\"cardWideV2Skeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-mdo-lib'\" [ngTemplateOutlet]=\"cardMdo\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-mdo-home-lib'\" [ngTemplateOutlet]=\"cardMdoHome\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-mdo-home-lib-skeleton'\" [ngTemplateOutlet]=\"cardMdoHomeSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-mdo-lib-skeleton'\" [ngTemplateOutlet]=\"cardMdoSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-scheduled-assessment'\" [ngTemplateOutlet]=\"cardScheduledAssessment\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-scheduled-assessment-skeleton'\" [ngTemplateOutlet]=\"cardScheduledAssessmentSkelton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib'\" [ngTemplateOutlet]=\"cardKarmaProgram\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib-skeleton'\" [ngTemplateOutlet]=\"cardKarmaProgramSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-progress-portrait-lib'\" [ngTemplateOutlet]=\"cardProgressLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-progress-portrait-lib-skeleton'\" [ngTemplateOutlet]=\"cardProgressLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib-v2'\" [ngTemplateOutlet]=\"cardKarmaProgramV2\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib-v2-skeleton'\" [ngTemplateOutlet]=\"cardKarmaProgramV2\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-providers-lib'\" [ngTemplateOutlet]=\"cardProvider\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-providers-lib-skeleton'\" [ngTemplateOutlet]=\"cardProviderSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-ext-lib-skeleton'\" [ngTemplateOutlet]=\"cardPortraitExtLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-ext-lib'\" [ngTemplateOutlet]=\"cardPortraitExtLib\"></ng-container>\n\n </ng-container>\n</div>\n\n<ng-template #cardPortraitLibSkeleton>\n <sb-uic-card-portrait [widgetData]=\"widgetData\" [isCardLoading]=\"true\"></sb-uic-card-portrait>\n</ng-template>\n<ng-template #cardPortraitLib>\n <sb-uic-card-portrait \n [cbPlanMapData]=\"cbPlanMapData\"\n (contentData)=\"getRedirectUrlData($event)\" [widgetData]=\"widgetData\" [isCardLoading]=\"false\"></sb-uic-card-portrait>\n</ng-template>\n<ng-template #cardLandscapeLibSkeleton>\n <sb-uic-card-landscape [widgetData]=\"widgetData\" \n [cbPlanMapData]=\"cbPlanMapData\" [isCardLoading]=\"true\"></sb-uic-card-landscape>\n</ng-template>\n<ng-template #cardLandscapeLib>\n <sb-uic-card-landscape\n (contentData)=\"getRedirectUrlData($event)\"\n (triggerTelemetry)=\"raiseCardClick($event)\"\n [widgetData]=\"widgetData\"\n [cbPlanMapData]=\"cbPlanMapData\"\n [isCardLoading]=\"false\">\n </sb-uic-card-landscape>\n</ng-template>\n\n<ng-template #cardWideLib>\n <sb-uic-card-wide (contentData)=\"getRedirectUrlData($event)\" [widgetData]=\"widgetData\"></sb-uic-card-wide>\n</ng-template>\n<ng-template #cardWideLibSkeleton>\n <sb-uic-card-wide [widgetData]=\"widgetData\"></sb-uic-card-wide>\n</ng-template>\n\n<ng-template #cardWideV2Skeleton>\n <sb-uic-card-wide-v2 [widgetData]=\"widgetData\" [isCardLoading]=\"true\" ></sb-uic-card-wide-v2>\n</ng-template>\n<ng-template #cardWideV2>\n <sb-uic-card-wide-v2\n (contentData)=\"getRedirectUrlData($event)\"\n (triggerTelemetry)=\"raiseCardClick($event)\"\n [cbPlanMapData]=\"cbPlanMapData\"\n [isCardLoading]=\"false\"\n [widgetData]=\"widgetData\">\n </sb-uic-card-wide-v2>\n</ng-template>\n\n<ng-template #cardUser>\n <sb-uic-card-user [widgetData]=\"widgetData\"></sb-uic-card-user>\n</ng-template>\n<ng-template #cardMdoHome>\n <sb-uic-card-mdo-channel-v1 [isCardLoading]=\"false\" [widgetData]=\"widgetData\"></sb-uic-card-mdo-channel-v1>\n</ng-template>\n<ng-template #cardMdoHomeSkeleton>\n <sb-uic-card-mdo-channel-v1 [isCardLoading]=\"true\" [widgetData]=\"widgetData\"></sb-uic-card-mdo-channel-v1>\n</ng-template>\n<ng-template #cardMdo>\n <sb-uic-card-mdo-channel [isCardLoading]=\"true\" [widgetData]=\"widgetData\"></sb-uic-card-mdo-channel>\n</ng-template>\n<ng-template #cardMdoSkeleton>\n <sb-uic-card-mdo-channel [isCardLoading]=\"true\" [widgetData]=\"widgetData\"></sb-uic-card-mdo-channel>\n</ng-template>\n<ng-template #cardKarmaProgramSkeleton>\n <sb-uic-card-karma-programs [randomColorApply]=\"true\" \n [isCardLoading]=\"true\" [widgetData]=\"widgetData\"></sb-uic-card-karma-programs>\n</ng-template>\n<ng-template #cardKarmaProgram>\n <sb-uic-card-karma-programs [randomColorApply]=\"true\" \n [isCardLoading]=\"false\" [widgetData]=\"widgetData\"></sb-uic-card-karma-programs>\n</ng-template>\n<ng-template #cardScheduledAssessmentSkelton>\n <sb-uic-card-assessment [widgetData]=\"widgetData\" [isCardLoading]=\"true\"></sb-uic-card-assessment>\n</ng-template>\n<ng-template #cardScheduledAssessment>\n <sb-uic-card-assessment [widgetData]=\"widgetData\" (contentData)=\"getRedirectUrlData($event)\" [isCardLoading]=\"false\" [enrollmentMapData]=\"enrollmentMapData\"></sb-uic-card-assessment>\n</ng-template>\n<ng-template #cardProgressLibSkeleton>\n <sb-uic-card-progress-portrait-lib \n [isCardLoading]=\"true\" [widgetData]=\"widgetData\"></sb-uic-card-progress-portrait-lib>\n</ng-template>\n<ng-template #cardProgressLib>\n <sb-uic-card-progress-portrait-lib \n [isCardLoading]=\"false\" (contentData)=\"getRedirectUrlData($event)\" [widgetData]=\"widgetData\"></sb-uic-card-progress-portrait-lib>\n</ng-template>\n<ng-template #cardKarmaProgramV2>\n <!-- <sb-uic-card-karma-programs-v2 [widgetData]=\"widgetData\"><sb-uic-card-karma-programs-v2> -->\n</ng-template>\n<ng-template #cardProvider>\n <sb-uic-provider-card [isCardLoading]=\"false\" [widgetData]=\"widgetData\"></sb-uic-provider-card>\n</ng-template>\n<ng-template #cardProviderSkeleton>\n <sb-uic-provider-card [isCardLoading]=\"true\" [widgetData]=\"widgetData\"></sb-uic-provider-card>\n</ng-template>\n\n<!-- cios card -->\n<ng-template #cardPortraitExtLibSkeleton>\n <sb-uic-card-portrait-ext [widgetData]=\"widgetData\" [isCardLoading]=\"true\"></sb-uic-card-portrait-ext>\n</ng-template>\n<ng-template #cardPortraitExtLib>\n <sb-uic-card-portrait-ext \n [cbPlanMapData]=\"cbPlanMapData\"\n (contentData)=\"getRedirectUrlData($event)\" [widgetData]=\"widgetData\" [isCardLoading]=\"false\"></sb-uic-card-portrait-ext>\n</ng-template>\n",
8896
- styles: [""]
9015
+ selector: 'sb-uic-top-learners',
9016
+ template: "<div class=\"flex flex-center\">\n <div>\n <div class=\"title-border\"></div>\n <div class=\"title\" [style.color]=\"objectData?.titleFontColor\">{{objectData?.title}} ({{month}})</div>\n <div class=\"title-border\"></div>\n </div> \n</div>\n<div class=\"top-learners-container\" *ngIf=\"!loading && results.length\">\n <div class=\"w-full margin-bottom-l margin-top-l\">\n <div class=\"flex gap-3\">\n <div *ngFor=\"let obj of results; let i=index\" class=\"flex-container\">\n <div class=\"flex-item user-box\">\n <div class=\"flex gap-3 img-name-sec\">\n <div class=\"flex gap-3\">\n <div class=\"profile-pic\" *ngIf=\"obj?.profile_image\">\n <img [src]=\"obj?.profile_image\" class=\"user-image\"/>\n </div>\n <div class=\"initial\" *ngIf=\"!obj?.profile_image\"\n [style.backgroundColor]=\"colors[i]\">\n {{createInititals(obj?.fullname)}}\n </div>\n <div class=\"flex flex-col gap-1\">\n <div class=\"name-sec\">{{obj?.fullname}}</div>\n <div class=\"designation-sec\">{{obj?.designation}}</div>\n <div class=\"designation-sec\">{{channnelName}}</div>\n </div>\n </div>\n <div class=\"flex gap-3\"> \n <div class=\"rank-sec\">{{getRank(+obj?.rank)}}</div>\n </div> \n </div>\n <div class=\"flex gap-2 kp-section\">\n <div class=\"kp-icon\"><img [src]=\"objectData?.kpIcon\" class=\"kp-image\"/></div>\n <div class=\"points\">{{obj?.total_points || 0}}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<div class=\"top-learners-container\" *ngIf=\"!loading && results.length === 0\">\n <div class=\"margin-top-l noData\">\n No data\n </div>\n</div>\n\n<ng-container>\n <div class=\"top-learners-container\" *ngIf=\"loading\">\n <div class=\"w-full margin-bottom-l margin-top-l\">\n <div class=\"flex gap-3\">\n <div *ngFor=\"let obj of [1,2,3]\" class=\"flex-container\">\n <div class=\"flex-item user-box\">\n <div class=\"flex gap-3 img-name-sec\">\n <div class=\"flex gap-3\">\n <div class=\"profile-pic\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'44px'\"\n [height]=\"'44px'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"flex flex-col gap-1\">\n <div class=\"name-sec\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'200px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"designation-sec\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'200px'\"\n [height]=\"'16px'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"designation-sec\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'200px'\"\n [height]=\"'16px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n <div class=\"flex gap-3\"> \n <div class=\"rank-sec\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'44px'\"\n [height]=\"'44px'\"></sb-uic-skeleton-loader>\n </div>\n </div> \n </div>\n <div class=\"flex gap-2 kp-section\">\n <div class=\"kp-icon\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'32px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader> \n </div>\n <div class=\"points\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'32px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-container>",
9017
+ styles: [".title{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:center;padding:15px}.title-border{margin:10px;width:240px;height:3px;background:linear-gradient(90deg,rgba(255,255,255,0) 0,#ef951e 20%,#ef951e 80%,rgba(255,255,255,0) 100%)}.noData{border:1px solid #1b4ca1;padding:15px;display:flex;justify-content:center;border-radius:12px}.top-learners-container{overflow:auto}::-webkit-scrollbar{height:10px!important}::-webkit-scrollbar-track{background:#eff3f9!important}.user-box{width:360px;height:134px;border-radius:8px;background-color:#fff;padding:16px;position:relative}.flex-container{display:flex}.flex-item{flex:0 0 auto;white-space:nowrap}.img-name-sec{justify-content:space-between}.initial{width:44px;height:44px;border-radius:50%;align-items:center;display:flex;justify-content:center;font-weight:700;color:#fff}.user-image{width:44px;height:44px;border-radius:50%}.name-sec{font-family:Lato;font-size:16px;font-weight:700;line-height:19.2px;text-align:left;width:200px!important;overflow:hidden;text-overflow:ellipsis}.designation-sec{font-family:Lato;font-size:12px;font-weight:400;line-height:14.4px;text-align:left;opacity:.6;width:200px!important;overflow:hidden;text-overflow:ellipsis}.rank-sec{font-family:Montserrat;font-size:36px;font-weight:700;line-height:43.88px;text-align:left;color:#ef951e}.kp-section{justify-content:flex-end;position:absolute;right:18px;bottom:16px;align-items:center}.kp-image{width:32px;height:32px;padding-top:3px}.points{font-family:Lato;font-size:24px;font-weight:700;line-height:28.8px;text-align:left;color:#1b4ca1;padding-bottom:3px}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:rgba(204,204,204,.8);border-radius:10px}@media screen and (max-width:768px){.user-box{width:343px}}"]
8897
9018
  }] }
8898
9019
  ];
8899
9020
  /** @nocollapse */
8900
- CardsComponent.ctorParameters = function () { return [
8901
- { type: UtilityService },
8902
- { type: WidgetContentService },
8903
- { type: Router }
9021
+ TopLearnersComponent.ctorParameters = function () { return [
9022
+ { type: InsiteDataService }
8904
9023
  ]; };
8905
- CardsComponent.propDecorators = {
8906
- widgetData: [{ type: Input }],
8907
- triggerTelemetry: [{ type: Output }]
9024
+ TopLearnersComponent.propDecorators = {
9025
+ objectData: [{ type: Input }],
9026
+ channelId: [{ type: Input }],
9027
+ channnelName: [{ type: Input }]
8908
9028
  };
8909
- return CardsComponent;
8910
- }(WidgetBaseComponent));
9029
+ return TopLearnersComponent;
9030
+ }());
8911
9031
  if (false) {
8912
9032
  /** @type {?} */
8913
- CardsComponent.prototype.widgetData;
9033
+ TopLearnersComponent.prototype.objectData;
8914
9034
  /** @type {?} */
8915
- CardsComponent.prototype.triggerTelemetry;
9035
+ TopLearnersComponent.prototype.channelId;
8916
9036
  /** @type {?} */
8917
- CardsComponent.prototype.isIntranetAllowedSettings;
9037
+ TopLearnersComponent.prototype.channnelName;
8918
9038
  /** @type {?} */
8919
- CardsComponent.prototype.cbPlanMapData;
9039
+ TopLearnersComponent.prototype.loading;
8920
9040
  /** @type {?} */
8921
- CardsComponent.prototype.cbPlanInterval;
9041
+ TopLearnersComponent.prototype.month;
8922
9042
  /** @type {?} */
8923
- CardsComponent.prototype.enrollInterval;
9043
+ TopLearnersComponent.prototype.results;
8924
9044
  /** @type {?} */
8925
- CardsComponent.prototype.enrollmentMapData;
8926
- /**
8927
- * @type {?}
8928
- * @private
8929
- */
8930
- CardsComponent.prototype.utilitySvc;
8931
- /**
8932
- * @type {?}
8933
- * @private
8934
- */
8935
- CardsComponent.prototype.contSvc;
9045
+ TopLearnersComponent.prototype.colors;
8936
9046
  /** @type {?} */
8937
- CardsComponent.prototype.router;
9047
+ TopLearnersComponent.prototype.insightSvc;
8938
9048
  }
8939
9049
 
8940
9050
  /**
8941
9051
  * @fileoverview added by tsickle
8942
9052
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8943
9053
  */
8944
- var CardResourceComponent = /** @class */ (function (_super) {
8945
- __extends(CardResourceComponent, _super);
8946
- function CardResourceComponent() {
8947
- return _super.call(this) || this;
9054
+ var TopLearnersModule = /** @class */ (function () {
9055
+ function TopLearnersModule() {
9056
+ }
9057
+ TopLearnersModule.decorators = [
9058
+ { type: NgModule, args: [{
9059
+ declarations: [TopLearnersComponent],
9060
+ imports: [
9061
+ CommonModule,
9062
+ SkeletonLoaderLibModule
9063
+ ],
9064
+ exports: [TopLearnersComponent],
9065
+ },] }
9066
+ ];
9067
+ return TopLearnersModule;
9068
+ }());
9069
+
9070
+ /**
9071
+ * @fileoverview added by tsickle
9072
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9073
+ */
9074
+ var ScrollableItemDirective = /** @class */ (function () {
9075
+ function ScrollableItemDirective(el) {
9076
+ this.el = el;
8948
9077
  }
8949
9078
  /**
9079
+ * @param {?} blockValue
8950
9080
  * @return {?}
8951
9081
  */
8952
- CardResourceComponent.prototype.ngOnInit = /**
9082
+ ScrollableItemDirective.prototype.scrollIntoView = /**
9083
+ * @param {?} blockValue
8953
9084
  * @return {?}
8954
9085
  */
8955
- function () {
9086
+ function (blockValue) {
9087
+ this.el.nativeElement.scrollIntoView({ behavior: 'smooth', block: blockValue });
8956
9088
  };
8957
- CardResourceComponent.decorators = [
8958
- { type: Component, args: [{
8959
- selector: 'ws-cb-widget-card-resource',
8960
- template: " <!-- <mat-card class=\"card-resource-container mr-5 padding-remove cursor-pointer \" [ngClass]=\"{\n greyOut:\n widgetData.deletedMode === 'greyOut' && !isLiveOrMarkForDeletion\n ? true\n : widgetData?.intranetMode === 'greyOut' && showIntranetContent\n }\" (click)=\"(showIntranetContent || !isLiveOrMarkForDeletion) && showSnackbar()\">\n <div class=\"display-contents\" [ngClass]=\"{\n disableClick:\n widgetData.deletedMode === 'greyOut' && !isLiveOrMarkForDeletion\n ? true\n : widgetData?.intranetMode === 'greyOut' && showIntranetContent\n }\">\n <ng-container *ngIf=\"widgetData.content\">\n <a (click)=\"raiseTelemetry();getRedirectUrlData(widgetData?.content); $event.stopPropagation()\" \n role=\"link\" i18n-aria-label>\n <ng-container *ngIf=\"!isCardFlipped\">\n <div class=\"status-danger\" role=\"note\" i18n-aria-label aria-label=\"Content expired or deleted\" i18n-matTooltip\n matTooltip=\"Content may be expired or deleted\" *ngIf=\"!isLiveOrMarkForDeletion\"></div>\n <div class=\"status-danger\" role=\"note\" i18n-aria-label aria-label=\"Intranet content\" i18n-matTooltip\n matTooltip=\"Available only in Company's network\"\n *ngIf=\"widgetData?.intranetMode === 'greyOut' && showIntranetContent\"></div>\n <button *ngIf=\"showFlip\" class=\"detail-button ws-mat-primary-lite-background-op30\" mat-icon-button\n (click)=\"isCardFlipped = true\" aria-label=\"Details\" i18n-aria-label=\"Details | Click to see details\">\n <mat-icon>flip_to_back</mat-icon>\n </button>\n <mat-card-content class=\"min-top\">\n <div style=\"position: relative; z-index: 1;\">\n <ng-container *ngIf=\"widgetData.content.posterImage\">\n <img mat-card-image [src]=\"widgetData.content.posterImage | pipePublicURL\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData.content.name\" />\n </ng-container>\n <ng-container *ngIf=\"!widgetData.content.posterImage\">\n <ng-container *ngIf=\"widgetData.content.appIcon; else defaultImg\">\n <img mat-card-image [src]=\"widgetData.content.appIcon | pipePublicURL\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData.content.name\" />\n </ng-container>\n <ng-template #defaultImg>\n <img mat-card-image [src]=\"defaultThumbnail\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\"\n [alt]=\"widgetData.content.name\" />\n </ng-template>\n </ng-container>\n <div class=\"source-div\" style=\"display: none;\">\n <img [src]=\"widgetData.content.creatorLogo\" class=\"source-icon\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData.content.sourceName + '_' + widgetData.content.identifier)\" />\n </div>\n <ng-container *ngIf=\"widgetData?.content?.cbPlanEndDate\">\n <div class=\"cbp-mark\">\n <span>{{widgetData?.content?.cbPlanEndDate | date: 'd MMM, y'}}</span>\n </div>\n </ng-container>\n <ng-container *ngIf=\"cbPlanMapData && cbPlanMapData[widgetData?.content?.identifier]\">\n <ng-container [ngTemplateOutlet]=\"cbpPlan\" [ngTemplateOutletContext]=\"{data: {\n cbpData: cbPlanMapData[widgetData?.content?.identifier]\n }}\"></ng-container>\n </ng-container>\n <div class=\"duration-box right-corner\" *ngIf=\"widgetData?.content?.duration > 0\">\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\n <span class=\" ws-mat-white-text duration\">\n {{ (widgetData?.content?.duration || 120)| pipeDurationTransform: 'hms' }}\n </span>\n </div>\n <div class=\"duration-box right-corner\" *ngIf=\"widgetData?.content?.programDuration > 0\">\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\n <span class=\" ws-mat-white-text duration\">\n {{widgetData?.content?.programDuration}} {{widgetData?.content?.programDuration === 1 ? 'day' : 'days'}}\n </span>\n </div>\n </div>\n <div class=\"padding-m\">\n <div class=\"course_widget flex margin-remove\">\n <div class=\"flex flex-end course_v2\">\n <mat-icon class=\"mat-icon main_icon ws-mat-default-text margin-right-xs\">video_library</mat-icon>\n <ws-widget-display-content-type i18n-title title=\"Content Type\" *ngIf=\"widgetData.content?.primaryCategory\"\n class=\"ws-mat-black60-text font-normal mat-caption \" [displayContentType]=\"widgetData.content?.primaryCategory==='Course Unit'\n ?'Module'\n :widgetData.content?.primaryCategory\">\n\n </ws-widget-display-content-type>\n </div>\n <div class=\"flex ml-5 flex-end course_v2\">\n <mat-icon class=\"mat-icon main_icon ws-mat-default-text margin-right-xs\">video_library</mat-icon>\n <ws-widget-display-content-type i18n-title title=\"Content Type\" *ngIf=\"widgetData.content?.primaryCategory\"\n class=\"ws-mat-black60-text font-normal mat-caption \" [displayContentType]=\"widgetData.content?.primaryCategory==='Course Unit'\n ?'Module'\n :widgetData.content?.primaryCategory\">\n\n </ws-widget-display-content-type>\n </div>\n </div>\n <div [id]=\"'m-c-'+ widgetData.content?.identifier\"\n class=\"mat-subheading-1 title-text ws-mat-text-block-fade-gradient\">\n {{ widgetData.content.name }}\n </div>\n <div [id]=\"'m-c-'+ widgetData.content?.identifier\"\n class=\"mat-subheading-1 description-text font-medium ws-mat-text-block-fade-gradient\">\n {{ widgetData.content.name }}\n </div>\n <div class=\"flex w-full flex-wrap flex-middle\">\n <div class=\"course_logo_box\">\n <img [src]=\"widgetData.content.creatorLogo | pipePublicURL \" class=\"source-icon\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData.content.sourceName + '_' + widgetData.content.identifier)\" />\n </div>\n <span class=\"org-text\">{{'cardcontentv2.by' | translate}} {{ (widgetData.content.organisation && widgetData.content.organisation[0]) ? widgetData.content.organisation[0] : 'Karmayogi Bharat' }}</span>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n <ng-container *ngIf=\"isCardFlipped\">\n <div class=\"flex items-center\">\n <h2 class=\"mat-subheading-2 flex-1 min-w-0 margin-remove-bottom\" i18n>{{'cardcontentv2.reason' | translate}}</h2>\n <button mat-icon-button (click)=\"isCardFlipped = false\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n <p class=\"text-justify mat-body-1\">\n {{ widgetData.content.reason }}\n </p>\n </ng-container>\n </a>\n </ng-container>\n </div>\n </mat-card> -->\n",
8961
- styles: [".card-resource-container{position:relative;width:384px;min-height:346px;border-radius:8px;box-sizing:border-box;box-shadow:0 10px 30px rgba(153,153,153,.2);overflow:hidden;height:450px;margin:20px 8px}.card-resource-container .icon_text{font-size:12px;line-height:16px;text-transform:uppercase}.card-resource-container .description-text{margin:12px 0;font-weight:400}.card-resource-container .course_logo_box{width:24px;height:24px;background:#fff;border-radius:4px;border:1px solid rgba(0,0,0,.1607843137);box-sizing:border-box}.card-resource-container .course_logo_box img{height:18px;width:18px;padding:2px;display:inline-block}.card-resource-container .course_logo_box p{display:inline-block;vertical-align:top}.card-resource-container .org-text{font-size:12px;font-weight:400;width:75%;padding-left:10px;word-break:break-all;white-space:initial;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.card-resource-container .source-div{position:relative;top:100px;background:#fff;z-index:3;border:1px solid #dedfe0;min-width:72px;min-height:72px;max-width:72px;max-height:72px;display:flex;border-radius:8px}.card-resource-container .source-div .source-icon{border-radius:8px;display:block;margin:auto;max-width:58px;max-height:-webkit-fill-available}.card-resource-container mat-card-content{background:#fff}.card-resource-container .card-img{max-height:240px;min-height:240px;width:100%;display:block;-o-object-fit:fill;object-fit:fill;border-top-left-radius:8px;border-top-right-radius:8px}.card-resource-container .mat-subheading-1{font:600 14px/24px Montserrat}.card-resource-container .complexity{padding-top:70px;display:flex;font-size:14px;line-height:21px;padding-bottom:10px}.card-resource-container .complexity .mode-tag{border-radius:5px;order:2;margin-left:auto;color:#fff;font-size:10px}.card-resource-container .complexity .duration{display:flex;margin-left:auto;order:3;font-weight:700}.card-resource-container .complexity .time-text{margin:0 5px 0 6px;font-weight:700}.card-resource-container .basic{margin:auto 0}.card-resource-container .title-text{word-break:break-all;white-space:initial;margin:8px 0;position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:48px}.card-resource-container .description-text{position:relative;overflow:hidden;height:42px;white-space:normal;text-overflow:ellipsis}"]
8962
- }] }
9089
+ ScrollableItemDirective.decorators = [
9090
+ { type: Directive, args: [{
9091
+ selector: '[sbUicScrollableItem]'
9092
+ },] }
8963
9093
  ];
8964
9094
  /** @nocollapse */
8965
- CardResourceComponent.ctorParameters = function () { return []; };
8966
- CardResourceComponent.propDecorators = {
8967
- widgetData: [{ type: Input }]
9095
+ ScrollableItemDirective.ctorParameters = function () { return [
9096
+ { type: ElementRef }
9097
+ ]; };
9098
+ ScrollableItemDirective.propDecorators = {
9099
+ key: [{ type: Input, args: ['sbUicScrollableItem',] }]
8968
9100
  };
8969
- return CardResourceComponent;
8970
- }(WidgetBaseComponent));
9101
+ return ScrollableItemDirective;
9102
+ }());
8971
9103
  if (false) {
8972
9104
  /** @type {?} */
8973
- CardResourceComponent.prototype.widgetData;
9105
+ ScrollableItemDirective.prototype.key;
9106
+ /**
9107
+ * @type {?}
9108
+ * @private
9109
+ */
9110
+ ScrollableItemDirective.prototype.el;
8974
9111
  }
8975
9112
 
8976
9113
  /**
8977
9114
  * @fileoverview added by tsickle
8978
9115
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8979
9116
  */
8980
- var CardPortraitComponent = /** @class */ (function () {
8981
- function CardPortraitComponent(snackBar, translate, langtranslations, configSvc, contSvc) {
8982
- var _this = this;
8983
- this.snackBar = snackBar;
9117
+ var CbpPlanComponent = /** @class */ (function () {
9118
+ function CbpPlanComponent(translate, langtranslations) {
8984
9119
  this.translate = translate;
8985
9120
  this.langtranslations = langtranslations;
8986
- this.configSvc = configSvc;
8987
- this.contSvc = contSvc;
8988
- this.isCardLoading = false;
8989
- this.contentData = new EventEmitter();
8990
- this.isCardFlipped = false;
8991
- this.acbpConstants = NsCardContent$1.ACBPConst;
8992
- this.showFlip = false;
8993
- this.widgetType = 'df';
8994
- this.widgetSubType = 'sdf';
8995
- this.langtranslations.languageSelectedObservable.subscribe((/**
8996
- * @return {?}
8997
- */
8998
- function () {
8999
- if (localStorage.getItem('websiteLanguage')) {
9000
- _this.translate.setDefaultLang('en');
9001
- /** @type {?} */
9002
- var lang = (/** @type {?} */ (localStorage.getItem('websiteLanguage')));
9003
- _this.translate.use(lang);
9004
- }
9005
- }));
9121
+ this.mobileHeight = false;
9122
+ this.fetchDataFromApi = false;
9123
+ this.openDialog = new EventEmitter();
9124
+ this.isLoading = false;
9125
+ this.currentIndex = 0;
9126
+ this.styleData = {};
9127
+ this.contentdata = [];
9006
9128
  }
9007
9129
  /**
9008
9130
  * @return {?}
9009
9131
  */
9010
- CardPortraitComponent.prototype.ngOnInit = /**
9132
+ CbpPlanComponent.prototype.ngOnInit = /**
9011
9133
  * @return {?}
9012
9134
  */
9013
9135
  function () {
9014
- /** @type {?} */
9015
- var instanceConfig = this.configSvc.instanceConfig;
9016
- if (instanceConfig) {
9017
- this.defaultThumbnail = instanceConfig.logos.defaultContent || '';
9018
- this.sourceLogos = instanceConfig.sources;
9019
- this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '';
9020
- }
9021
- else {
9022
- this.defaultThumbnail = '/assets/instances/eagle/app_logos/default.png';
9023
- this.defaultSLogo = '/assets/instances/eagle/app_logos/KarmayogiBharat_Logo.svg';
9136
+ var _this = this;
9137
+ this.styleData = this.objectData && this.objectData.sliderData && this.objectData.sliderData.styleData;
9138
+ if (this.objectData && this.objectData.list) {
9139
+ this.objectData.list.forEach((/**
9140
+ * @param {?} contentEle
9141
+ * @return {?}
9142
+ */
9143
+ function (contentEle) {
9144
+ /** @type {?} */
9145
+ var localData = {};
9146
+ localData['title'] = contentEle.title;
9147
+ localData['downloaUrl'] = contentEle.downloaUrl;
9148
+ localData['cardSubType'] = "card-wide-lib";
9149
+ localData['cardCustomeClass'] = "";
9150
+ _this.contentdata.push(localData);
9151
+ }));
9024
9152
  }
9025
9153
  };
9026
9154
  /**
9155
+ * @param {?} indexValue
9027
9156
  * @return {?}
9028
9157
  */
9029
- CardPortraitComponent.prototype.showSnackbar = /**
9158
+ CbpPlanComponent.prototype.getCurrentIndex = /**
9159
+ * @param {?} indexValue
9030
9160
  * @return {?}
9031
9161
  */
9032
- function () {
9033
- if (this.showIntranetContent) {
9034
- this.snackBar.open('Content is only available in intranet', 'X', { duration: 2000 });
9035
- }
9036
- else if (!this.isLiveOrMarkForDeletion) {
9037
- this.snackBar.open('Content may be expired or deleted', 'X', { duration: 2000 });
9038
- }
9162
+ function (indexValue) {
9163
+ this.currentIndex = indexValue;
9039
9164
  };
9040
9165
  /**
9041
- * @param {?} contentData
9166
+ * @param {?} item
9042
9167
  * @return {?}
9043
9168
  */
9044
- CardPortraitComponent.prototype.getRedirectUrlData = /**
9045
- * @param {?} contentData
9169
+ CbpPlanComponent.prototype.getFileName = /**
9170
+ * @param {?} item
9046
9171
  * @return {?}
9047
9172
  */
9048
- function (contentData) {
9049
- // for telemetry
9050
- if (this.widgetData && this.widgetData.context && this.widgetData.context.pageSection) {
9051
- contentData['typeOfTelemetry'] = this.widgetData.context.pageSection;
9052
- }
9053
- this.contSvc.changeTelemetryData(contentData);
9054
- // for redirection
9055
- this.contentData.emit(contentData);
9173
+ function (item) {
9174
+ console.log(item.downloadUrl);
9175
+ return item.downloadUrl.split("/").at(-1);
9056
9176
  };
9057
- CardPortraitComponent.decorators = [
9177
+ /**
9178
+ * @param {?} label
9179
+ * @param {?} type
9180
+ * @return {?}
9181
+ */
9182
+ CbpPlanComponent.prototype.translateLabels = /**
9183
+ * @param {?} label
9184
+ * @param {?} type
9185
+ * @return {?}
9186
+ */
9187
+ function (label, type) {
9188
+ return this.langtranslations.translateActualLabel(label, type, '');
9189
+ };
9190
+ /**
9191
+ * @param {?} item
9192
+ * @return {?}
9193
+ */
9194
+ CbpPlanComponent.prototype.downloadCBPPlan = /**
9195
+ * @param {?} item
9196
+ * @return {?}
9197
+ */
9198
+ function (item) {
9199
+ /** @type {?} */
9200
+ var downloadUrl = item.downloaUrl;
9201
+ /** @type {?} */
9202
+ var xhr = new XMLHttpRequest();
9203
+ xhr.open('GET', downloadUrl, true);
9204
+ xhr.responseType = 'blob';
9205
+ xhr.onload = (/**
9206
+ * @return {?}
9207
+ */
9208
+ function () {
9209
+ if (xhr.status === 200) {
9210
+ /** @type {?} */
9211
+ var blob = new Blob([xhr.response], { type: 'application/pdf' });
9212
+ /** @type {?} */
9213
+ var url = window.URL.createObjectURL(blob);
9214
+ /** @type {?} */
9215
+ var a = document.createElement('a');
9216
+ a.href = url;
9217
+ a.download = downloadUrl.split("/").at(-1);
9218
+ document.body.appendChild(a);
9219
+ a.click();
9220
+ document.body.removeChild(a);
9221
+ window.URL.revokeObjectURL(url);
9222
+ }
9223
+ else {
9224
+ console.error('Error downloading the PDF', xhr.statusText);
9225
+ }
9226
+ });
9227
+ xhr.onerror = (/**
9228
+ * @return {?}
9229
+ */
9230
+ function () {
9231
+ console.error('Network error');
9232
+ });
9233
+ xhr.send();
9234
+ };
9235
+ CbpPlanComponent.decorators = [
9058
9236
  { type: Component, args: [{
9059
- selector: 'sb-uic-card-portrait',
9060
- template: "<ng-container *ngIf=\"!isCardLoading\">\n <mat-card class=\"card-standard-container mr-5 padding-remove cursor-pointer {{widgetData?.cardCustomeClass}}\" [ngClass]=\"{\n greyOut:\n widgetData.deletedMode === 'greyOut' && !isLiveOrMarkForDeletion\n ? true\n : widgetData?.intranetMode === 'greyOut' && showIntranetContent\n }\" (click)=\"(showIntranetContent || !isLiveOrMarkForDeletion) && showSnackbar()\">\n <div class=\"display-contents\" [ngClass]=\"{\n disableClick:\n widgetData.deletedMode === 'greyOut' && !isLiveOrMarkForDeletion\n ? true\n : widgetData?.intranetMode === 'greyOut' && showIntranetContent\n }\">\n <ng-container *ngIf=\"widgetData.content\">\n <a (click)=\"getRedirectUrlData(widgetData?.content); $event.stopPropagation()\"\n role=\"link\" i18n-aria-label>\n <ng-container *ngIf=\"!isCardFlipped\">\n <div class=\"status-danger\" role=\"note\" i18n-aria-label aria-label=\"Content expired or deleted\" i18n-matTooltip\n matTooltip=\"Content may be expired or deleted\" *ngIf=\"!isLiveOrMarkForDeletion\"></div>\n <div class=\"status-danger\" role=\"note\" i18n-aria-label aria-label=\"Intranet content\" i18n-matTooltip\n matTooltip=\"Available only in Company's network\"\n *ngIf=\"widgetData?.intranetMode === 'greyOut' && showIntranetContent\"></div>\n <button *ngIf=\"showFlip\" class=\"detail-button ws-mat-primary-lite-background-op30\" mat-icon-button\n (click)=\"isCardFlipped = true\" aria-label=\"Details\" i18n-aria-label=\"Details | Click to see details\">\n <mat-icon>flip_to_back</mat-icon>\n </button>\n <mat-card-content class=\"min-top\">\n <div style=\"position: relative; z-index: 1;\">\n <ng-container *ngIf=\"widgetData.content.posterImage\">\n <img mat-card-image [src]=\"widgetData.content.posterImage | pipePublicURL\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData.content.name\" />\n </ng-container>\n <ng-container *ngIf=\"!widgetData.content.posterImage\">\n <ng-container *ngIf=\"widgetData.content.appIcon; else defaultImg\">\n <img mat-card-image [src]=\"widgetData.content.appIcon | pipePublicURL\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData.content.name\" />\n </ng-container>\n <ng-template #defaultImg>\n <img mat-card-image [src]=\"defaultThumbnail\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\"\n [alt]=\"widgetData.content.name\" />\n </ng-template>\n </ng-container>\n <div class=\"source-div\" style=\"display: none;\">\n <img [src]=\"widgetData.content.creatorLogo\" class=\"source-icon\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData.content.sourceName + '_' + widgetData.content.identifier)\" />\n </div>\n <ng-container *ngIf=\"widgetData?.content?.cbPlanEndDate\">\n <div class=\"cbp-mark\">\n <span>{{widgetData?.content?.cbPlanEndDate | date: 'd MMM, y'}}</span>\n </div>\n </ng-container>\n <!-- <ng-container *ngIf=\"widgetData?.content?.endDate\">\n <div class=\"cbp-mark\">\n <p *ngIf=\"widgetData?.content?.planDuration === acbpConstants?.UPCOMING\" class=\"cbp-warning\">{{widgetData?.content?.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"widgetData?.content?.planDuration === acbpConstants?.SUCCESS\" class=\"cbp-success\">{{widgetData?.content?.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"widgetData?.content?.planDuration === acbpConstants?.OVERDUE\" class=\"cbp-danger\">Over due</p>\n </div>\n </ng-container> -->\n <ng-container *ngIf=\"cbPlanMapData && cbPlanMapData[widgetData?.content?.identifier] && cbPlanMapData[widgetData?.content?.identifier]?.contentStatus < 2\">\n <ng-container [ngTemplateOutlet]=\"cbpPlan\" [ngTemplateOutletContext]=\"{data: {\n cbpData: cbPlanMapData[widgetData?.content?.identifier]\n }}\"></ng-container>\n </ng-container>\n <div class=\"duration-box right-corner\" *ngIf=\"widgetData?.content?.duration > 0\">\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\n <span class=\" ws-mat-white-text duration\">\n {{ (widgetData?.content?.duration || 120)| pipeDurationTransform: 'hms' }}\n </span>\n </div>\n <div class=\"duration-box right-corner\" *ngIf=\"widgetData?.content?.programDuration > 0\">\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\n <span class=\" ws-mat-white-text duration\">\n {{widgetData?.content?.programDuration}} {{widgetData?.content?.programDuration === 1 ? 'day' : 'days'}}\n </span>\n </div>\n </div>\n <div class=\"padding-m\">\n <div class=\"course_widget flex margin-remove\">\n <div class=\"flex flex-end course_v2\">\n <mat-icon class=\"mat-icon main_icon ws-mat-default-text margin-right-xs\">video_library</mat-icon>\n <sb-uic-display-content-type i18n-title title=\"Content Type\" *ngIf=\"widgetData.content?.primaryCategory\"\n class=\"ws-mat-black60-text font-normal mat-caption \" [displayContentType]=\"widgetData.content?.primaryCategory==='Course Unit'\n ?'Module'\n :widgetData.content?.primaryCategory\">\n\n </sb-uic-display-content-type>\n </div>\n </div>\n <div [id]=\"'m-c-'+ widgetData.content?.identifier\"\n class=\"mat-subheading-1 title-text ws-mat-text-block-fade-gradient\">\n {{ widgetData.content.name }}\n </div>\n <div class=\"flex w-full flex-wrap flex-middle\">\n <div class=\"course_logo_box\">\n <img [src]=\"widgetData.content.creatorLogo | pipePublicURL \" class=\"source-icon\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData.content.sourceName + '_' + widgetData.content.identifier)\" />\n </div>\n <!-- <span class=\"org-text\">{{'cardcontentv2.by' | translate}} -->\n <span class=\"org-text\">By&nbsp; {{ (widgetData?.content?.organisation && widgetData?.content?.organisation[0]) ? widgetData?.content?.organisation[0] : 'Karmayogi Bharat' }}</span>\n </div>\n <div class=\"flex flex-middle rating-session margin-top-m\">\n <div class=\"flex flex-middle\" *ngIf=\"widgetData?.content?.avgRating\">\n <mat-icon class=\"mr-1\">star</mat-icon>\n <span>{{widgetData.content.avgRating}}</span>\n </div>\n <!-- <span class=\"most-enrolled-text margin-left-m\">{{ 'cardcontentv2.mostEnrolled' | translate }}</span> -->\n <ng-container *ngIf=\"widgetData?.content?.additionalTags && widgetData?.content?.additionalTags.includes('mostEnrolled')\">\n <span class=\"most-enrolled-text margin-left-xs\">\n <!-- {{ 'cardcontentv2.mostEnrolled' | translate }} -->\n </span>\n </ng-container>\n <ng-container *ngIf=\"widgetData?.content?.additionalTags && widgetData?.content?.additionalTags.includes('mostTrending')\">\n <span class=\"most-enrolled-text margin-left-xs\">\n <!-- {{ 'cardcontentv2.mostTrending' | translate }} -->\n </span>\n </ng-container>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n <ng-container *ngIf=\"isCardFlipped\">\n <div class=\"flex items-center\">\n <!-- <h2 class=\"mat-subheading-2 flex-1 min-w-0 margin-remove-bottom\" i18n>{{'cardcontentv2.reason' | translate}}</h2> -->\n <button mat-icon-button (click)=\"isCardFlipped = false\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n <p class=\"text-justify mat-body-1\">\n {{ widgetData.content.reason }}\n </p>\n </ng-container>\n </a>\n </ng-container>\n </div>\n</mat-card>\n</ng-container>\n\n<ng-container *ngIf=\"isCardLoading\">\n <mat-card class=\"card-standard-container mr-5 padding-remove\" >\n <div class=\"display-contents\" >\n <ng-container *ngIf=\"!isCardFlipped\">\n <mat-card-content class=\"min-top\">\n <div style=\"position: relative; z-index: 1;\">\n <ng-container>\n <sb-uic-skeleton-loader [width]=\"'100%'\" [height]=\"'140px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </ng-container>\n </div>\n <div class=\"padding-m\">\n <div class=\"course_widget flex margin-remove\">\n <div class=\"flex flex-end\">\n <sb-uic-skeleton-loader [width]=\"'65px'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded br-8'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n <div class=\"mat-subheading-1 title-text ws-mat-text-block-fade-gradient\">\n <sb-uic-skeleton-loader [width]=\"'100%'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader [width]=\"'111px'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded margin-top-s'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"flex w-full flex-wrap flex-middle margin-top-m\">\n <div class=\"\">\n <sb-uic-skeleton-loader [width]=\"'28px'\" [height]=\"'28px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n <span class=\"org-text\"> <sb-uic-skeleton-loader [width]=\"'111px'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader></span>\n </div>\n <div class=\"flex flex-middle rating-session margin-top-m\">\n <div class=\"flex flex-middle\">\n <sb-uic-skeleton-loader [width]=\"'45px'\" [height]=\"'12px'\" [bindingClass]=\"'flex rounded margin-top-m'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n </div>\n </mat-card>\n</ng-container>\n\n<ng-template #cbpPlan let-data=\"data\">\n <div class=\"cbp-mark left-0 border-top-radius\">\n <p *ngIf=\"data.cbpData.planDuration === acbpConstants?.UPCOMING\" class=\"cbp-warning\">{{data.cbpData.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"data.cbpData.planDuration === acbpConstants?.SUCCESS\" class=\"cbp-success\">{{data.cbpData.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"data.cbpData.planDuration === acbpConstants?.OVERDUE\" class=\"cbp-danger\">{{'OverDue' }}</p>\n </div>\n</ng-template>",
9061
- styles: [".course_widget{margin-top:10px}.course_widget .mat-icon{vertical-align:middle;color:#ef951e!important}.course_widget .course_v2{border:1px solid #ef951e;padding:4px 8px;align-items:end;border-radius:16px}.course_widget .main_icon{font-size:16px;width:16px;height:16px}.rating-session mat-icon{font-size:16px;height:16px;width:12px;padding-right:3px;color:#ef951e}.rating-session span{font-size:11px}.rating-session .most-enrolled-text{padding:0 8px;background:#ffea9e;border-radius:4px}.card-standard-container{position:relative;width:245px;min-height:346px;border-radius:8px;box-sizing:border-box;box-shadow:0 10px 30px rgba(153,153,153,.2);overflow:hidden;height:346px;margin:20px 8px}.card-standard-container .progress-bar{width:101%;margin-left:-15px;display:flex;margin-top:0;background:bisque;position:absolute;bottom:0}.card-standard-container ::ng-deep .mat-progress-bar{height:8px!important}.card-standard-container .icon_text{font-size:12px;line-height:16px;text-transform:uppercase}.card-standard-container .course_logo_box{width:38px;height:38px;background:#fff;border-radius:8px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.card-standard-container .course_logo_box img{height:28px;width:28px;padding:5px;display:inline-block}.card-standard-container .course_logo_box p{display:inline-block;vertical-align:top}.card-standard-container .org-text{font-size:12px;font-weight:400;width:75%;padding-left:10px;word-break:break-all;white-space:initial;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.card-standard-container .source-div{position:relative;top:100px;background:#fff;z-index:3;border:1px solid #dedfe0;min-width:72px;min-height:72px;max-width:72px;max-height:72px;display:flex;border-radius:8px}.card-standard-container .source-div .source-icon{border-radius:8px;display:block;margin:auto;max-width:58px;max-height:-webkit-fill-available}.card-standard-container mat-card-content{background:#fff}.card-standard-container .card-img{min-width:245px;max-height:140px;min-height:140px;display:block;-o-object-fit:fill;object-fit:fill;border-top-left-radius:8px;border-top-right-radius:8px;width:100%}.card-standard-container .mat-subheading-1{font:600 14px/24px Montserrat}.card-standard-container .complexity{padding-top:70px;display:flex;font-size:14px;line-height:21px;padding-bottom:10px}.card-standard-container .complexity .mode-tag{border-radius:5px;order:2;margin-left:auto;color:#fff;font-size:10px}.card-standard-container .complexity .duration{display:flex;margin-left:auto;order:3;font-weight:700}.card-standard-container .complexity .time-text{margin:0 5px 0 6px;font-weight:700}.card-standard-container .basic{margin:auto 0}.card-standard-container .title-text{word-break:break-all;white-space:initial;margin:8px 0;position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:48px}.card-standard-container .description-text{position:relative;overflow:hidden;height:42px;white-space:normal;text-overflow:ellipsis}.duration-box{background:#000;position:absolute;border:none;display:flex;align-items:center;padding:4px;border-radius:4px}.duration-box.right-corner{right:4px;bottom:4px}.duration-box .mat-icon{vertical-align:middle;color:#fff!important;height:14px!important;width:14px!important;font-size:14px}.duration-box .duration{font:700 12px/16px Lato;display:inline-block;margin:0;padding:0}.width-238{width:238px!important}.cbp-mark{border-radius:12px 0;opacity:1;background-image:linear-gradient(90deg,rgba(0,0,0,.6) 0,rgba(0,0,0,0) 100%);position:absolute;top:0;padding:8px}.cbp-mark p{opacity:1;background-color:#fff;padding:4px;opacity:1;color:#1b2133;font-family:Lato-Regular;font-size:10px;font-weight:400;font-style:Regular;letter-spacing:.5px;text-align:left;line-height:12px;margin-bottom:0}.cbpwidth{width:340px}.cbp-plan{border-radius:4px;opacity:1;background-color:#1b4ca1;top:4px;left:4px;opacity:1;color:rgba(255,255,255,.95);font-family:Lato-Bold;font-size:12px;font-weight:700;font-style:normal;letter-spacing:.25px;text-align:center;line-height:16px;padding:4px}.cbp-info{opacity:1;color:#fff;font-family:Lato-Regular;font-size:10px;font-weight:400;font-style:normal;letter-spacing:.5px;text-align:left;line-height:12px;padding:2px}.cbp-danger{border-radius:2px;border:1px solid rgba(0,0,0,.08);background-color:#d13924!important;color:#fff!important;opacity:1}.cbp-success{border-radius:2px;border:1px solid #1d8922;background-color:#1d8922!important;color:#fff!important;opacity:1}.cbp-warning{border-radius:2px;border:1px solid #ef951e;background-color:#ef951e!important;color:#fff!important;opacity:1}"]
9237
+ selector: 'sb-uic-cbp-plan',
9238
+ template: "<div class=\"w-full\">\n <div class=\"flex item-center cbp-logo\">\n <div class=\"cbp-heading\"\n [style.backgroundColor]=\"objectData?.header?.background\"\n [style.color]=\"objectData?.header?.color\">\n {{objectData?.title}}\n </div>\n </div>\n \n <div class=\"cbp-list-container\" *ngIf=\"contentdata.length\"\n [style.borderColor]=\"objectData?.panelborder\"\n [style.backgroundColor]=\"objectData?.panelBackground\">\n <ng-container *ngIf=\"contentdata.length; else msgTemp\">\n <sb-uic-sliders-ng-content\n [title]=\"'providerName'\"\n [currentIndex]=\"currentIndex\"\n (currentIndexValue)=\"getCurrentIndex($event)\"\n [loadNgContentData]=\"true\" [widgetData]=\"contentdata\"\n [styleData]=\"styleData\">\n <div sliderbody>\n <div *ngFor=\"let item of contentdata; let i = index\" [hidden]=\"i !== currentIndex\">\n <div class=\"cbp-list-item\"\n [style.borderColor]=\"objectData?.listItem?.border\"\n [style.color]=\"objectData?.listItem?.border\"\n [style.backgroundColor]=\"objectData?.listItem?.background\">\n <div class=\"cbp-item-title\">{{item?.title}}</div>\n <div class=\"flex download-sec\">\n <div class=\"flex gap-3 cbp-download\" (click)=\"downloadCBPPlan(item)\">\n <img [src]=\"objectData?.downloadIcon\">Download\n </div>\n </div>\n </div>\n </div>\n </div>\n </sb-uic-sliders-ng-content>\n </ng-container>\n <ng-template #msgTemp>\n <div class=\"padding-bottom-m\">\n {{ translateLabels(objectData?.noData, 'home') }}\n </div>\n </ng-template>\n </div>\n</div>",
9239
+ styles: [".cbp-logo{align-items:center;justify-content:center}.cbp-heading{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:center;padding:10px 50px;border-radius:20px;margin-top:-3px}.cbp-list-container{border:1px solid #ccc;padding:40px 25px 0;border-radius:12px;margin-top:-20px}.cbp-list-item{padding:16px;border:1px solid #ccc;border-radius:12px}.cbp-item-title{font-family:Lato;font-size:14px;font-weight:400;line-height:20px;text-align:left;height:48px;padding-bottom:10px}.cbp-mob-icon{font-size:20px;width:20px;height:20px}.download-sec{align-items:center;justify-content:end}.cbp-download{display:flex;align-items:center;gap:4px;background:#fff;padding:6px 8px;border-radius:20px;cursor:pointer;font-family:Lato;font-size:12px;font-weight:700;line-height:20px;text-align:left}[hidden]{display:none!important}.cbp-list-container ::ng-deep.cbp-card{min-height:115px!important;padding-bottom:30px!important}.cbp-list-container ::ng-deep.banner-title{display:none}.cbp-list-container ::ng-deep.prev{font-size:10px;height:20px!important;width:20px!important;margin-left:-11px}.cbp-list-container ::ng-deep.next{font-size:10px;height:20px!important;width:20px!important;margin-right:-11px}"]
9062
9240
  }] }
9063
9241
  ];
9064
9242
  /** @nocollapse */
9065
- CardPortraitComponent.ctorParameters = function () { return [
9066
- { type: MatSnackBar },
9243
+ CbpPlanComponent.ctorParameters = function () { return [
9067
9244
  { type: TranslateService },
9068
- { type: MultilingualTranslationsService },
9069
- { type: ConfigurationsService$1 },
9070
- { type: WidgetContentService }
9245
+ { type: MultilingualTranslationsService }
9071
9246
  ]; };
9072
- CardPortraitComponent.propDecorators = {
9073
- widgetData: [{ type: Input }],
9074
- isLiveOrMarkForDeletion: [{ type: Input }],
9075
- showIntranetContent: [{ type: Input }],
9076
- isIntranetAllowedSettings: [{ type: Input }],
9077
- isCardLoading: [{ type: Input }],
9078
- contentData: [{ type: Output }],
9079
- cbPlanMapData: [{ type: Input }]
9247
+ CbpPlanComponent.propDecorators = {
9248
+ objectData: [{ type: Input }],
9249
+ layoutType: [{ type: Input }],
9250
+ mobileHeight: [{ type: Input }],
9251
+ fetchDataFromApi: [{ type: Input }],
9252
+ channelId: [{ type: Input }],
9253
+ openDialog: [{ type: Output }],
9254
+ scrollableItems: [{ type: ViewChildren, args: [ScrollableItemDirective,] }]
9080
9255
  };
9081
- return CardPortraitComponent;
9256
+ return CbpPlanComponent;
9082
9257
  }());
9083
9258
  if (false) {
9084
9259
  /** @type {?} */
9085
- CardPortraitComponent.prototype.widgetData;
9086
- /** @type {?} */
9087
- CardPortraitComponent.prototype.isLiveOrMarkForDeletion;
9088
- /** @type {?} */
9089
- CardPortraitComponent.prototype.showIntranetContent;
9090
- /** @type {?} */
9091
- CardPortraitComponent.prototype.isIntranetAllowedSettings;
9092
- /** @type {?} */
9093
- CardPortraitComponent.prototype.isCardLoading;
9260
+ CbpPlanComponent.prototype.objectData;
9094
9261
  /** @type {?} */
9095
- CardPortraitComponent.prototype.contentData;
9262
+ CbpPlanComponent.prototype.layoutType;
9096
9263
  /** @type {?} */
9097
- CardPortraitComponent.prototype.cbPlanMapData;
9264
+ CbpPlanComponent.prototype.mobileHeight;
9098
9265
  /** @type {?} */
9099
- CardPortraitComponent.prototype.isCardFlipped;
9266
+ CbpPlanComponent.prototype.fetchDataFromApi;
9100
9267
  /** @type {?} */
9101
- CardPortraitComponent.prototype.acbpConstants;
9268
+ CbpPlanComponent.prototype.channelId;
9102
9269
  /** @type {?} */
9103
- CardPortraitComponent.prototype.defaultThumbnail;
9270
+ CbpPlanComponent.prototype.openDialog;
9104
9271
  /** @type {?} */
9105
- CardPortraitComponent.prototype.sourceLogos;
9272
+ CbpPlanComponent.prototype.isLoading;
9106
9273
  /** @type {?} */
9107
- CardPortraitComponent.prototype.defaultSLogo;
9274
+ CbpPlanComponent.prototype.currentIndex;
9108
9275
  /** @type {?} */
9109
- CardPortraitComponent.prototype.showFlip;
9276
+ CbpPlanComponent.prototype.styleData;
9110
9277
  /** @type {?} */
9111
- CardPortraitComponent.prototype.widgetType;
9278
+ CbpPlanComponent.prototype.contentdata;
9112
9279
  /** @type {?} */
9113
- CardPortraitComponent.prototype.widgetSubType;
9114
- /**
9115
- * @type {?}
9116
- * @private
9117
- */
9118
- CardPortraitComponent.prototype.snackBar;
9119
- /**
9120
- * @type {?}
9121
- * @private
9122
- */
9123
- CardPortraitComponent.prototype.translate;
9280
+ CbpPlanComponent.prototype.scrollableItems;
9124
9281
  /**
9125
9282
  * @type {?}
9126
9283
  * @private
9127
9284
  */
9128
- CardPortraitComponent.prototype.langtranslations;
9129
- /**
9130
- * @type {?}
9131
- * @private
9132
- */
9133
- CardPortraitComponent.prototype.configSvc;
9285
+ CbpPlanComponent.prototype.translate;
9134
9286
  /**
9135
9287
  * @type {?}
9136
9288
  * @private
9137
9289
  */
9138
- CardPortraitComponent.prototype.contSvc;
9290
+ CbpPlanComponent.prototype.langtranslations;
9139
9291
  }
9140
9292
 
9141
9293
  /**
9142
9294
  * @fileoverview added by tsickle
9143
9295
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9144
9296
  */
9145
- var PipePublicURL = /** @class */ (function () {
9146
- function PipePublicURL(environment) {
9147
- this.environment = environment;
9297
+ var SlidersNgContentLibComponent = /** @class */ (function (_super) {
9298
+ __extends(SlidersNgContentLibComponent, _super);
9299
+ function SlidersNgContentLibComponent(events, valueSvc) {
9300
+ var _this = _super.call(this) || this;
9301
+ _this.events = events;
9302
+ _this.valueSvc = valueSvc;
9303
+ _this.title = '';
9304
+ _this.loadNgContentData = false;
9305
+ _this.autoScroll = false;
9306
+ _this.currentIndexValue = new EventEmitter();
9307
+ _this.id = "banner_" + Math.random();
9308
+ _this.defaultMenuSubscribe = null;
9309
+ _this.isLtMedium$ = _this.valueSvc.isLtMedium$;
9310
+ _this.currentIndex = 0;
9311
+ _this.slideInterval = null;
9312
+ _this.isMobile = false;
9313
+ return _this;
9148
9314
  }
9149
9315
  /**
9150
- * @param {?} value
9151
9316
  * @return {?}
9152
9317
  */
9153
- PipePublicURL.prototype.transform = /**
9154
- * @param {?} value
9318
+ SlidersNgContentLibComponent.prototype.ngOnInit = /**
9155
9319
  * @return {?}
9156
9320
  */
9157
- function (value) {
9158
- /** @type {?} */
9159
- var mainUrl = value && value.split('/content').pop() || '';
9160
- /** @type {?} */
9161
- var finalURL = this.environment.contentHost + "/" + this.environment.contentBucket + "/content" + mainUrl;
9162
- return value ? finalURL : '';
9321
+ function () {
9322
+ var _this = this;
9323
+ if (this.autoScroll) {
9324
+ this.reInitiateSlideInterval();
9325
+ }
9326
+ this.defaultMenuSubscribe = this.isLtMedium$.subscribe((/**
9327
+ * @param {?} isLtMedium
9328
+ * @return {?}
9329
+ */
9330
+ function (isLtMedium) {
9331
+ _this.isMobile = isLtMedium;
9332
+ }));
9163
9333
  };
9164
- PipePublicURL.decorators = [
9165
- { type: Pipe, args: [{
9166
- name: 'pipePublicURL',
9167
- },] }
9168
- ];
9169
- /** @nocollapse */
9170
- PipePublicURL.ctorParameters = function () { return [
9171
- { type: undefined, decorators: [{ type: Inject, args: ['environment',] }] }
9172
- ]; };
9173
- return PipePublicURL;
9174
- }());
9175
- if (false) {
9176
- /** @type {?} */
9177
- PipePublicURL.prototype.environment;
9178
- }
9179
-
9180
- /**
9181
- * @fileoverview added by tsickle
9182
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9183
- */
9184
- var PipePublicURLModule = /** @class */ (function () {
9185
- function PipePublicURLModule() {
9186
- }
9187
- PipePublicURLModule.decorators = [
9188
- { type: NgModule, args: [{
9189
- declarations: [PipePublicURL],
9190
- imports: [
9191
- CommonModule,
9192
- ],
9193
- exports: [PipePublicURL],
9194
- },] }
9334
+ /**
9335
+ * @return {?}
9336
+ */
9337
+ SlidersNgContentLibComponent.prototype.reInitiateSlideInterval = /**
9338
+ * @return {?}
9339
+ */
9340
+ function () {
9341
+ var _this = this;
9342
+ if (this.widgetData && this.widgetData.length > 1) {
9343
+ try {
9344
+ if (this.slideInterval) {
9345
+ this.slideInterval.unsubscribe();
9346
+ }
9347
+ }
9348
+ catch (e) {
9349
+ }
9350
+ finally {
9351
+ this.slideInterval = interval(8000).subscribe((/**
9352
+ * @return {?}
9353
+ */
9354
+ function () {
9355
+ if (_this.currentIndex === _this.widgetData.length - 1) {
9356
+ _this.currentIndex = 0;
9357
+ _this.currentIndexValue.emit(_this.currentIndex);
9358
+ }
9359
+ else {
9360
+ _this.currentIndex += 1;
9361
+ _this.currentIndexValue.emit(_this.currentIndex);
9362
+ }
9363
+ }));
9364
+ }
9365
+ }
9366
+ };
9367
+ /**
9368
+ * @param {?} index
9369
+ * @return {?}
9370
+ */
9371
+ SlidersNgContentLibComponent.prototype.slideTo = /**
9372
+ * @param {?} index
9373
+ * @return {?}
9374
+ */
9375
+ function (index) {
9376
+ if (index >= 0 && index < this.widgetData.length) {
9377
+ this.currentIndex = index;
9378
+ this.currentIndexValue.emit(this.currentIndex);
9379
+ }
9380
+ else if (index === this.widgetData.length) {
9381
+ this.currentIndex = 0;
9382
+ this.currentIndexValue.emit(this.currentIndex);
9383
+ }
9384
+ else {
9385
+ this.currentIndex = this.widgetData.length + index;
9386
+ this.currentIndexValue.emit(this.currentIndex);
9387
+ }
9388
+ if (this.autoScroll) {
9389
+ this.reInitiateSlideInterval();
9390
+ }
9391
+ };
9392
+ Object.defineProperty(SlidersNgContentLibComponent.prototype, "isOpenInNewTab", {
9393
+ get: /**
9394
+ * @return {?}
9395
+ */
9396
+ function () {
9397
+ /** @type {?} */
9398
+ var currentData = this.widgetData[this.currentIndex];
9399
+ if (currentData.redirectUrl && currentData.redirectUrl.includes('mailto') || this.widgetData[this.currentIndex].openInNewTab) {
9400
+ return true;
9401
+ }
9402
+ return false;
9403
+ },
9404
+ enumerable: true,
9405
+ configurable: true
9406
+ });
9407
+ /**
9408
+ * @return {?}
9409
+ */
9410
+ SlidersNgContentLibComponent.prototype.openInNewTab = /**
9411
+ * @return {?}
9412
+ */
9413
+ function () {
9414
+ /** @type {?} */
9415
+ var currentData = this.widgetData[this.currentIndex];
9416
+ if (currentData.redirectUrl && currentData.redirectUrl.includes('mailto') || this.widgetData[this.currentIndex].openInNewTab) {
9417
+ window.open(currentData.redirectUrl);
9418
+ }
9419
+ };
9420
+ /**
9421
+ * @param {?} bannerUrl
9422
+ * @return {?}
9423
+ */
9424
+ SlidersNgContentLibComponent.prototype.raiseTelemetry = /**
9425
+ * @param {?} bannerUrl
9426
+ * @return {?}
9427
+ */
9428
+ function (bannerUrl) {
9429
+ this.openInNewTab();
9430
+ /** @type {?} */
9431
+ var path = window.location.pathname.replace('/', '');
9432
+ /** @type {?} */
9433
+ var url = path + window.location.search;
9434
+ this.events.raiseInteractTelemetry({
9435
+ type: 'click',
9436
+ subType: 'banner',
9437
+ }, {
9438
+ pageUrl: url,
9439
+ bannerRedirectUrl: bannerUrl,
9440
+ }, {
9441
+ pageIdExt: 'banner',
9442
+ module: WsEvents.EnumTelemetrymodules.CONTENT,
9443
+ });
9444
+ };
9445
+ /**
9446
+ * @return {?}
9447
+ */
9448
+ SlidersNgContentLibComponent.prototype.ngOnDestroy = /**
9449
+ * @return {?}
9450
+ */
9451
+ function () {
9452
+ if (this.defaultMenuSubscribe) {
9453
+ this.defaultMenuSubscribe.unsubscribe();
9454
+ }
9455
+ };
9456
+ SlidersNgContentLibComponent.decorators = [
9457
+ { type: Component, args: [{
9458
+ selector: 'sb-uic-sliders-ng-content',
9459
+ template: "<div class=\"banner-container {{isMobile? styleData?.responsive?.bannerMetaClass : styleData?.bannerMetaClass}}\" (swipeleft)=\"slideTo(currentIndex + 1)\" (swiperight)=\"slideTo(currentIndex - 1)\"\n *ngIf=\"widgetData?.length > 1\" [style.height]=\"isMobile? styleData?.responsive?.customHeight : styleData?.customHeight\"\n [ngStyle]=\"{'border-radius': styleData?.borderRadius || '12px'}\">\n <ng-container *ngIf=\"!loadNgContentData\">\n <a (click)=\"raiseTelemetry(widgetData[currentIndex].redirectUrl)\"\n [routerLink]=\" !isOpenInNewTab && widgetData[currentIndex].redirectUrl? widgetData[currentIndex].redirectUrl : null\" class=\"banner-overlay\"\n [ngClass]=\"{'cursor-auto': !widgetData[currentIndex].redirectUrl}\">\n <div class=\"banner WidgetInstanceId\" *ngFor=\"let slide of widgetData; let i = index\" [hidden]=\"i !== currentIndex\">\n <img i18n-alt alt=\"Page Banner\" [src]=\"slide.banners\" wsUtilsImageResponsive class=\"banner-image\" />\n </div>\n </a>\n <ng-container *ngIf=\"isMobile && styleData?.responsive?.dots !== 'hidden' || !isMobile && styleData?.dots !== 'hidden'\">\n <div class=\"banner-meta {{isMobile? styleData?.responsive?.bannerMetaAlign : styleData?.bannerMetaAlign}}\">\n <a [routerLink]=\" !isOpenInNewTab && widgetData[currentIndex].redirectUrl? widgetData[currentIndex].redirectUrl : null\" class=\"banner-title text-truncate\"\n *ngIf=\"widgetData[currentIndex].title\" [title]=\"widgetData[currentIndex].title\">\n {{ widgetData[currentIndex].title }}\n </a>\n <div class=\"dots-container\" *ngIf=\"widgetData?.length > 1\">\n <span class=\"dot\" [ngClass]=\"{ active: j === currentIndex }\" *ngFor=\"let slide of widgetData; let j = index\"\n (click)=\"slideTo(j)\"></span>\n </div>\n </div>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"loadNgContentData\">\n <!-- <div class=\"banner WidgetInstanceId\" *ngFor=\"let slide of widgetData; let i = index\" [hidden]=\"i !== currentIndex\"> -->\n <ng-content select=\"[sliderbody]\"></ng-content>\n <!-- </div> -->\n <ng-container *ngIf=\"isMobile && styleData?.responsive?.dots !== 'hidden' || !isMobile && styleData?.dots !== 'hidden'\">\n <div class=\"banner-meta {{isMobile? styleData?.responsive?.bannerMetaAlign : styleData?.bannerMetaAlign}}\">\n <a [routerLink]=\" !isOpenInNewTab && widgetData[currentIndex].redirectUrl? widgetData[currentIndex].redirectUrl : null\" class=\"banner-title text-truncate\"\n *ngIf=\"widgetData[currentIndex].title\" [title]=\"widgetData[currentIndex].title\">\n {{ widgetData[currentIndex].title }}\n </a>\n <div class=\"dots-container\" *ngIf=\"widgetData?.length > 1\">\n <span class=\"dot\" [ngClass]=\"{ active: j === currentIndex }\" *ngFor=\"let slide of widgetData; let j = index\"\n (click)=\"slideTo(j)\"></span>\n <ng-content select=\"[sliderMeta]\"></ng-content>\n </div>\n </div>\n </ng-container>\n </ng-container>\n <div class=\"navigation {{isMobile? styleData?.responsive?.arrowsPlacement : styleData?.arrowsPlacement}}\" \n *ngIf=\"isMobile && styleData?.responsive?.navigationArrows !== 'hidden' || !isMobile && styleData?.navigationArrows !== 'hidden'\">\n <a *ngIf=\"widgetData?.length > 1\" role=\"button\" class=\"prev\" (click)=\"slideTo(currentIndex - 1)\">&#10094;</a>\n <a *ngIf=\"widgetData?.length > 1\" role=\"button\" class=\"next\" (click)=\"slideTo(currentIndex + 1)\">&#10095;</a>\n </div>\n</div>\n<div class=\"banner-container-solo margin-top-s\" *ngIf=\"widgetData?.length == 1\">\n <img i18n-alt alt=\"Page Banner\" width=\"100%\" height=\"100%\" [src]=\"widgetData[0].banners\" wsUtilsImageResponsive class=\"banner-image-solo\" />\n</div>\n\n<!-- <ng-container *ngIf=\"!widgetData?.length\">\n <div class=\"slider default-slider h-full\">\n <div class=\"relative h-full\">\n <img class=\"h-full\" src=\"assets/icons/home/default-slider-image.svg\" alt=\"\">\n <div class=\"default-title rounded-full\">\n <p class=\"mat-h1\">{{title}}</p>\n </div>\n </div>\n </div>\n</ng-container> -->\n",
9460
+ styles: [".banner-container{min-height:243px;position:relative;margin:auto;padding-bottom:40px}.banner-container.inline-meta{padding-bottom:0!important}.banner-container.flat .banner .banner-image{border-radius:0!important}.banner-overlay{z-index:1;top:0;left:0;width:100%;height:100%;background:linear-gradient(to left,rgba(0,0,0,.25) 0,rgba(0,0,0,0) 15%,rgba(0,0,0,0) 85%,rgba(0,0,0,.25) 100%);border-radius:inherit}.banner{-webkit-animation-name:fade;-webkit-animation-duration:1.5s;animation-name:fade;animation-duration:1.5s;border-radius:inherit;height:inherit}.banner .banner-image{width:100%;min-height:243px;display:block;border-radius:inherit;height:inherit}.banner-meta{text-align:center;z-index:2;padding:8px 12px;position:absolute;bottom:0;left:50%;border-radius:12px;transform:translateX(-50%);box-sizing:border-box}.banner-meta.left{left:0;transform:translateX(0)}.banner-meta.right{left:100%;transform:translateX(-100%)}.banner-meta.top-center{left:0;bottom:100%;transform:translateX(-100%)}.banner-meta .banner-title{color:#f2f2f2;margin-bottom:8px;font-size:1.1rem}@media only screen and (max-width:599px){.banner-meta .banner-title{display:none}}.banner-meta .dots-container{padding:8px;display:flex;align-items:center;justify-content:center}.banner-meta .dots-container .dot{cursor:pointer;height:6px;width:6px;margin:0 4px;background-color:rgba(0,0,0,.4);border-radius:50%;display:inline-block;transition:background-color .5s!important}@media only screen and (max-width:599px){.banner-meta .dots-container .dot{height:8px;width:8px;margin:0 4px}}.banner-meta .dots-container .dot.active{border-radius:4px;background-color:#f3962f;width:16px}@keyframes fade{from{opacity:.25}to{opacity:1}}.next,.prev{cursor:pointer;position:absolute;top:50%;transform:translateY(-50%);color:#fff;font-weight:700;background-color:#1b2133!important;border-radius:50%;z-index:999;height:32px!important;width:32px!important;display:flex;align-items:center;margin-top:-16px;justify-content:center}.prev{left:0;margin-left:-16px}.next{right:0;margin-right:-16px}.navigation.bottom-right .prev{left:unset;right:45px;bottom:-15px;top:unset}.navigation.bottom-right .next{left:unset;right:15px;bottom:-15px;top:unset}.navigation.bottom-center .prev{left:calc(50% - 20px);right:unset;bottom:-15px;top:unset}.navigation.bottom-center .next{left:calc(50% + 20px);right:unset;bottom:-15px;top:unset}.navigation.bottom-left .prev{left:15px;right:unset;bottom:-15px;top:unset}.navigation.bottom-left .next{left:60px;right:unset;bottom:-15px;top:unset}.navigation.middle-inline .prev{left:30px}.navigation.middle-inline .next{right:30px}.banner-container-solo{overflow:hidden;margin:auto;border-radius:12px}.banner-image-solo{width:100%;display:block;border-radius:12px}.default-slider{height:100%;background:#d4e2fb}.default-slider .default-title{text-align:center;position:absolute;top:50%;left:0;right:0;margin:auto;transform:translateY(-50%);z-index:999;background:#e6efff;padding:32px;width:500px}.default-slider .default-title p{word-break:break-word;margin:0!important;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;text-transform:uppercase}@media screen and (max-width:768px){.default-slider{height:384px;width:100%}.default-slider .default-title{width:unset!important}}"]
9461
+ }] }
9462
+ ];
9463
+ /** @nocollapse */
9464
+ SlidersNgContentLibComponent.ctorParameters = function () { return [
9465
+ { type: EventService },
9466
+ { type: ValueService }
9467
+ ]; };
9468
+ SlidersNgContentLibComponent.propDecorators = {
9469
+ widgetData: [{ type: Input }],
9470
+ styleData: [{ type: Input }],
9471
+ title: [{ type: Input }],
9472
+ loadNgContentData: [{ type: Input }],
9473
+ autoScroll: [{ type: Input }],
9474
+ currentIndexValue: [{ type: Output }],
9475
+ id: [{ type: HostBinding, args: ['id',] }],
9476
+ currentIndex: [{ type: Input }]
9477
+ };
9478
+ return SlidersNgContentLibComponent;
9479
+ }(WidgetBaseComponent));
9480
+ if (false) {
9481
+ /** @type {?} */
9482
+ SlidersNgContentLibComponent.prototype.widgetData;
9483
+ /** @type {?} */
9484
+ SlidersNgContentLibComponent.prototype.styleData;
9485
+ /** @type {?} */
9486
+ SlidersNgContentLibComponent.prototype.title;
9487
+ /** @type {?} */
9488
+ SlidersNgContentLibComponent.prototype.loadNgContentData;
9489
+ /** @type {?} */
9490
+ SlidersNgContentLibComponent.prototype.autoScroll;
9491
+ /** @type {?} */
9492
+ SlidersNgContentLibComponent.prototype.currentIndexValue;
9493
+ /** @type {?} */
9494
+ SlidersNgContentLibComponent.prototype.id;
9495
+ /**
9496
+ * @type {?}
9497
+ * @private
9498
+ */
9499
+ SlidersNgContentLibComponent.prototype.defaultMenuSubscribe;
9500
+ /** @type {?} */
9501
+ SlidersNgContentLibComponent.prototype.isLtMedium$;
9502
+ /** @type {?} */
9503
+ SlidersNgContentLibComponent.prototype.currentIndex;
9504
+ /** @type {?} */
9505
+ SlidersNgContentLibComponent.prototype.slideInterval;
9506
+ /** @type {?} */
9507
+ SlidersNgContentLibComponent.prototype.isMobile;
9508
+ /**
9509
+ * @type {?}
9510
+ * @private
9511
+ */
9512
+ SlidersNgContentLibComponent.prototype.events;
9513
+ /**
9514
+ * @type {?}
9515
+ * @private
9516
+ */
9517
+ SlidersNgContentLibComponent.prototype.valueSvc;
9518
+ }
9519
+
9520
+ /**
9521
+ * @fileoverview added by tsickle
9522
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9523
+ */
9524
+ /* tslint:enable */
9525
+ var /* tslint:enable */
9526
+ MyHammerConfig$1 = /** @class */ (function (_super) {
9527
+ __extends(MyHammerConfig, _super);
9528
+ function MyHammerConfig() {
9529
+ return _super !== null && _super.apply(this, arguments) || this;
9530
+ }
9531
+ /**
9532
+ * @param {?} element
9533
+ * @return {?}
9534
+ */
9535
+ MyHammerConfig.prototype.buildHammer = /**
9536
+ * @param {?} element
9537
+ * @return {?}
9538
+ */
9539
+ function (element) {
9540
+ /** @type {?} */
9541
+ var mc = new Hammer(element, {
9542
+ touchAction: 'pan-y',
9543
+ });
9544
+ return mc;
9545
+ };
9546
+ return MyHammerConfig;
9547
+ }(HammerGestureConfig));
9548
+ // tslint:disable-next-line: max-classes-per-file
9549
+ var SlidersNgContentLibModule = /** @class */ (function () {
9550
+ function SlidersNgContentLibModule() {
9551
+ }
9552
+ SlidersNgContentLibModule.decorators = [
9553
+ { type: NgModule, args: [{
9554
+ declarations: [SlidersNgContentLibComponent],
9555
+ imports: [
9556
+ CommonModule,
9557
+ RouterModule,
9558
+ NavigationModule,
9559
+ ImageResponsiveModule,
9560
+ ],
9561
+ exports: [SlidersNgContentLibComponent],
9562
+ entryComponents: [SlidersNgContentLibComponent],
9563
+ providers: [
9564
+ {
9565
+ provide: HAMMER_GESTURE_CONFIG,
9566
+ useClass: MyHammerConfig$1,
9567
+ },
9568
+ ],
9569
+ },] }
9570
+ ];
9571
+ return SlidersNgContentLibModule;
9572
+ }());
9573
+
9574
+ /**
9575
+ * @fileoverview added by tsickle
9576
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9577
+ */
9578
+ var ScrollableItemModule = /** @class */ (function () {
9579
+ function ScrollableItemModule() {
9580
+ }
9581
+ ScrollableItemModule.decorators = [
9582
+ { type: NgModule, args: [{
9583
+ declarations: [ScrollableItemDirective],
9584
+ imports: [
9585
+ CommonModule,
9586
+ ],
9587
+ exports: [ScrollableItemDirective],
9588
+ },] }
9589
+ ];
9590
+ return ScrollableItemModule;
9591
+ }());
9592
+
9593
+ /**
9594
+ * @fileoverview added by tsickle
9595
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9596
+ */
9597
+ var CbpPlanModule = /** @class */ (function () {
9598
+ function CbpPlanModule() {
9599
+ }
9600
+ CbpPlanModule.decorators = [
9601
+ { type: NgModule, args: [{
9602
+ declarations: [CbpPlanComponent],
9603
+ imports: [
9604
+ CommonModule,
9605
+ SkeletonLoaderLibModule,
9606
+ MatIconModule,
9607
+ ScrollableItemModule,
9608
+ SlidersNgContentLibModule,
9609
+ ],
9610
+ exports: [CbpPlanComponent]
9611
+ },] }
9612
+ ];
9613
+ return CbpPlanModule;
9614
+ }());
9615
+
9616
+ /**
9617
+ * @fileoverview added by tsickle
9618
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9619
+ */
9620
+ var ConsumptionModule = /** @class */ (function () {
9621
+ function ConsumptionModule() {
9622
+ }
9623
+ ConsumptionModule.decorators = [
9624
+ { type: NgModule, args: [{
9625
+ declarations: [ConsumptionComponent,],
9626
+ imports: [
9627
+ ContentStripWithTabsLibModule,
9628
+ SlidersLibModule
9629
+ ],
9630
+ exports: [ConsumptionComponent,
9631
+ ContentStripWithTabsLibModule,
9632
+ SlidersLibModule,
9633
+ DataPointsModule,
9634
+ CalenderModule,
9635
+ CommonStripModule,
9636
+ AnnouncementsModule,
9637
+ TopLearnersModule,
9638
+ CbpPlanModule,
9639
+ ],
9640
+ },] }
9641
+ ];
9642
+ return ConsumptionModule;
9643
+ }());
9644
+
9645
+ /**
9646
+ * @fileoverview added by tsickle
9647
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9648
+ */
9649
+ /** @type {?} */
9650
+ var ROOT_WIDGET_CONFIG = {
9651
+ card: {
9652
+ _type: 'cardLib',
9653
+ cardResource: 'cardContentLib'
9654
+ },
9655
+ };
9656
+
9657
+ /**
9658
+ * @fileoverview added by tsickle
9659
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9660
+ */
9661
+ var NsCardContent$1;
9662
+ (function (NsCardContent) {
9663
+ /**
9664
+ * @record
9665
+ */
9666
+ function ICard() { }
9667
+ NsCardContent.ICard = ICard;
9668
+ if (false) {
9669
+ /** @type {?} */
9670
+ ICard.prototype.content;
9671
+ /** @type {?} */
9672
+ ICard.prototype.cardSubType;
9673
+ /** @type {?} */
9674
+ ICard.prototype.context;
9675
+ /** @type {?|undefined} */
9676
+ ICard.prototype.intranetMode;
9677
+ /** @type {?|undefined} */
9678
+ ICard.prototype.deletedMode;
9679
+ /** @type {?|undefined} */
9680
+ ICard.prototype.likes;
9681
+ /** @type {?|undefined} */
9682
+ ICard.prototype.contentTags;
9683
+ /** @type {?} */
9684
+ ICard.prototype.stateData;
9685
+ /** @type {?|undefined} */
9686
+ ICard.prototype.cardCustomeClass;
9687
+ }
9688
+ /**
9689
+ * @record
9690
+ */
9691
+ function IContentTags() { }
9692
+ NsCardContent.IContentTags = IContentTags;
9693
+ if (false) {
9694
+ /** @type {?|undefined} */
9695
+ IContentTags.prototype.daysSpan;
9696
+ /** @type {?|undefined} */
9697
+ IContentTags.prototype.excludeContentType;
9698
+ /** @type {?|undefined} */
9699
+ IContentTags.prototype.excludeMimeType;
9700
+ /** @type {?} */
9701
+ IContentTags.prototype.tag;
9702
+ /** @type {?|undefined} */
9703
+ IContentTags.prototype.criteriaField;
9704
+ }
9705
+ var EContentStatus;
9706
+ (function (EContentStatus) {
9707
+ EContentStatus["LIVE"] = "Live";
9708
+ EContentStatus["EXPIRED"] = "Expired";
9709
+ EContentStatus["DELETED"] = "Deleted";
9710
+ EContentStatus["MARK_FOR_DELETION"] = "MarkedForDeletion";
9711
+ })(EContentStatus = NsCardContent.EContentStatus || (NsCardContent.EContentStatus = {}));
9712
+ var ACBPConst;
9713
+ (function (ACBPConst) {
9714
+ ACBPConst["UPCOMING"] = "upcoming";
9715
+ ACBPConst["ALL"] = "All";
9716
+ ACBPConst["OVERDUE"] = "overdue";
9717
+ ACBPConst["SUCCESS"] = "success";
9718
+ })(ACBPConst = NsCardContent.ACBPConst || (NsCardContent.ACBPConst = {}));
9719
+ var IGOTConst;
9720
+ (function (IGOTConst) {
9721
+ IGOTConst["COMPETENCIES"] = "competencies_v5";
9722
+ IGOTConst["RETIRED"] = "Retired";
9723
+ })(IGOTConst = NsCardContent.IGOTConst || (NsCardContent.IGOTConst = {}));
9724
+ })(NsCardContent$1 || (NsCardContent$1 = {}));
9725
+
9726
+ /**
9727
+ * @fileoverview added by tsickle
9728
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9729
+ */
9730
+ var CardsComponent = /** @class */ (function (_super) {
9731
+ __extends(CardsComponent, _super);
9732
+ function CardsComponent(utilitySvc, contSvc, router) {
9733
+ var _this = _super.call(this) || this;
9734
+ _this.utilitySvc = utilitySvc;
9735
+ _this.contSvc = contSvc;
9736
+ _this.router = router;
9737
+ _this.triggerTelemetry = new EventEmitter();
9738
+ _this.isIntranetAllowedSettings = false;
9739
+ return _this;
9740
+ }
9741
+ /**
9742
+ * @return {?}
9743
+ */
9744
+ CardsComponent.prototype.ngOnInit = /**
9745
+ * @return {?}
9746
+ */
9747
+ function () {
9748
+ var _this = this;
9749
+ this.cbPlanInterval = setInterval((/**
9750
+ * @return {?}
9751
+ */
9752
+ function () {
9753
+ _this.getCbPlanData();
9754
+ }), 1000);
9755
+ this.enrollInterval = setInterval((/**
9756
+ * @return {?}
9757
+ */
9758
+ function () {
9759
+ _this.getEnrollmentData();
9760
+ // tslint:disable-next-line
9761
+ }), 1000);
9762
+ };
9763
+ Object.defineProperty(CardsComponent.prototype, "isLiveOrMarkForDeletion", {
9764
+ get: /**
9765
+ * @return {?}
9766
+ */
9767
+ function () {
9768
+ if (!this.widgetData.content.status ||
9769
+ this.widgetData.content.status === 'Live' ||
9770
+ this.widgetData.content.status === 'MarkedForDeletion') {
9771
+ return true;
9772
+ }
9773
+ return false;
9774
+ },
9775
+ enumerable: true,
9776
+ configurable: true
9777
+ });
9778
+ Object.defineProperty(CardsComponent.prototype, "showIntranetContent", {
9779
+ get: /**
9780
+ * @return {?}
9781
+ */
9782
+ function () {
9783
+ if (this.widgetData.content.isInIntranet && this.utilitySvc.isMobile) {
9784
+ return !this.isIntranetAllowedSettings;
9785
+ }
9786
+ return false;
9787
+ },
9788
+ enumerable: true,
9789
+ configurable: true
9790
+ });
9791
+ /**
9792
+ * @param {?} content
9793
+ * @return {?}
9794
+ */
9795
+ CardsComponent.prototype.getRedirectUrlData = /**
9796
+ * @param {?} content
9797
+ * @return {?}
9798
+ */
9799
+ function (content) {
9800
+ return __awaiter(this, void 0, void 0, function () {
9801
+ var urlData;
9802
+ return __generator(this, function (_a) {
9803
+ switch (_a.label) {
9804
+ case 0:
9805
+ if (!content.externalId) return [3 /*break*/, 1];
9806
+ this.router.navigate(["app/toc/ext/" + content.contentId]);
9807
+ return [3 /*break*/, 3];
9808
+ case 1: return [4 /*yield*/, this.contSvc.getResourseLink(content)];
9809
+ case 2:
9810
+ urlData = _a.sent();
9811
+ this.router.navigate([urlData.url], {
9812
+ queryParams: urlData.queryParams
9813
+ });
9814
+ _a.label = 3;
9815
+ case 3: return [2 /*return*/];
9816
+ }
9817
+ });
9818
+ });
9819
+ };
9820
+ /**
9821
+ * @return {?}
9822
+ */
9823
+ CardsComponent.prototype.getCbPlanData = /**
9824
+ * @return {?}
9825
+ */
9826
+ function () {
9827
+ /** @type {?} */
9828
+ var cbpList = {};
9829
+ if (localStorage.getItem('cbpData')) {
9830
+ /** @type {?} */
9831
+ var cbpListArr = JSON.parse(localStorage.getItem('cbpData') || '');
9832
+ if (cbpListArr && cbpListArr.length) {
9833
+ cbpListArr.forEach((/**
9834
+ * @param {?} data
9835
+ * @return {?}
9836
+ */
9837
+ function (data) {
9838
+ cbpList[data.identifier] = data;
9839
+ }));
9840
+ }
9841
+ this.cbPlanMapData = cbpList;
9842
+ // this.karmaPointLoading = false
9843
+ clearInterval(this.cbPlanInterval);
9844
+ }
9845
+ };
9846
+ /**
9847
+ * @return {?}
9848
+ */
9849
+ CardsComponent.prototype.getEnrollmentData = /**
9850
+ * @return {?}
9851
+ */
9852
+ function () {
9853
+ if (localStorage.getItem('enrollmentMapData')) {
9854
+ this.enrollmentMapData = JSON.parse(localStorage.getItem('enrollmentMapData') || '{}');
9855
+ clearInterval(this.enrollInterval);
9856
+ }
9857
+ };
9858
+ /**
9859
+ * @param {?} data
9860
+ * @return {?}
9861
+ */
9862
+ CardsComponent.prototype.raiseCardClick = /**
9863
+ * @param {?} data
9864
+ * @return {?}
9865
+ */
9866
+ function (data) {
9867
+ this.triggerTelemetry.emit(data);
9868
+ };
9869
+ CardsComponent.decorators = [
9870
+ { type: Component, args: [{
9871
+ selector: 'sb-uic-cards',
9872
+ template: "<div class=\"widget-card-content-new\">\n <ng-container *ngIf=\"widgetData && (((widgetData?.deletedMode || 'none') === 'hide' && !!!isLiveOrMarkForDeletion)\n ? false\n : !((widgetData?.intranetMode || 'none') === 'hide' && !!showIntranetContent))\"\n [ngSwitch]=\"( (widgetData && widgetData?.cardSubType) || 'cardPortraitLib')\">\n <ng-container *ngSwitchDefault [ngTemplateOutlet]=\"cardPortraitLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'user-card'\" [ngTemplateOutlet]=\"cardUser\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-lib-skeleton'\" [ngTemplateOutlet]=\"cardPortraitLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-lib'\" [ngTemplateOutlet]=\"cardPortraitLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-landscape-lib-skeleton'\" [ngTemplateOutlet]=\"cardLandscapeLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-landscape-lib'\" [ngTemplateOutlet]=\"cardLandscapeLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-lib-skeleton'\" [ngTemplateOutlet]=\"cardWideLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-lib'\" [ngTemplateOutlet]=\"cardWideLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-v2'\" [ngTemplateOutlet]=\"cardWideV2\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-v2-skeleton'\" [ngTemplateOutlet]=\"cardWideV2Skeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-mdo-lib'\" [ngTemplateOutlet]=\"cardMdo\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-mdo-home-lib'\" [ngTemplateOutlet]=\"cardMdoHome\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-mdo-home-lib-skeleton'\" [ngTemplateOutlet]=\"cardMdoHomeSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-mdo-lib-skeleton'\" [ngTemplateOutlet]=\"cardMdoSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-scheduled-assessment'\" [ngTemplateOutlet]=\"cardScheduledAssessment\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-scheduled-assessment-skeleton'\" [ngTemplateOutlet]=\"cardScheduledAssessmentSkelton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib'\" [ngTemplateOutlet]=\"cardKarmaProgram\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib-skeleton'\" [ngTemplateOutlet]=\"cardKarmaProgramSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-progress-portrait-lib'\" [ngTemplateOutlet]=\"cardProgressLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-progress-portrait-lib-skeleton'\" [ngTemplateOutlet]=\"cardProgressLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib-v2'\" [ngTemplateOutlet]=\"cardKarmaProgramV2\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib-v2-skeleton'\" [ngTemplateOutlet]=\"cardKarmaProgramV2\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-providers-lib'\" [ngTemplateOutlet]=\"cardProvider\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-providers-lib-skeleton'\" [ngTemplateOutlet]=\"cardProviderSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-ext-lib-skeleton'\" [ngTemplateOutlet]=\"cardPortraitExtLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-ext-lib'\" [ngTemplateOutlet]=\"cardPortraitExtLib\"></ng-container>\n\n </ng-container>\n</div>\n\n<ng-template #cardPortraitLibSkeleton>\n <sb-uic-card-portrait [widgetData]=\"widgetData\" [isCardLoading]=\"true\"></sb-uic-card-portrait>\n</ng-template>\n<ng-template #cardPortraitLib>\n <sb-uic-card-portrait \n [cbPlanMapData]=\"cbPlanMapData\"\n (contentData)=\"getRedirectUrlData($event)\" [widgetData]=\"widgetData\" [isCardLoading]=\"false\"></sb-uic-card-portrait>\n</ng-template>\n<ng-template #cardLandscapeLibSkeleton>\n <sb-uic-card-landscape [widgetData]=\"widgetData\" \n [cbPlanMapData]=\"cbPlanMapData\" [isCardLoading]=\"true\"></sb-uic-card-landscape>\n</ng-template>\n<ng-template #cardLandscapeLib>\n <sb-uic-card-landscape\n (contentData)=\"getRedirectUrlData($event)\"\n (triggerTelemetry)=\"raiseCardClick($event)\"\n [widgetData]=\"widgetData\"\n [cbPlanMapData]=\"cbPlanMapData\"\n [isCardLoading]=\"false\">\n </sb-uic-card-landscape>\n</ng-template>\n\n<ng-template #cardWideLib>\n <sb-uic-card-wide (contentData)=\"getRedirectUrlData($event)\" [widgetData]=\"widgetData\"></sb-uic-card-wide>\n</ng-template>\n<ng-template #cardWideLibSkeleton>\n <sb-uic-card-wide [widgetData]=\"widgetData\"></sb-uic-card-wide>\n</ng-template>\n\n<ng-template #cardWideV2Skeleton>\n <sb-uic-card-wide-v2 [widgetData]=\"widgetData\" [isCardLoading]=\"true\" ></sb-uic-card-wide-v2>\n</ng-template>\n<ng-template #cardWideV2>\n <sb-uic-card-wide-v2\n (contentData)=\"getRedirectUrlData($event)\"\n (triggerTelemetry)=\"raiseCardClick($event)\"\n [cbPlanMapData]=\"cbPlanMapData\"\n [isCardLoading]=\"false\"\n [widgetData]=\"widgetData\">\n </sb-uic-card-wide-v2>\n</ng-template>\n\n<ng-template #cardUser>\n <sb-uic-card-user [widgetData]=\"widgetData\"></sb-uic-card-user>\n</ng-template>\n<ng-template #cardMdoHome>\n <sb-uic-card-mdo-channel-v1 [isCardLoading]=\"false\" [widgetData]=\"widgetData\"></sb-uic-card-mdo-channel-v1>\n</ng-template>\n<ng-template #cardMdoHomeSkeleton>\n <sb-uic-card-mdo-channel-v1 [isCardLoading]=\"true\" [widgetData]=\"widgetData\"></sb-uic-card-mdo-channel-v1>\n</ng-template>\n<ng-template #cardMdo>\n <sb-uic-card-mdo-channel [isCardLoading]=\"true\" [widgetData]=\"widgetData\"></sb-uic-card-mdo-channel>\n</ng-template>\n<ng-template #cardMdoSkeleton>\n <sb-uic-card-mdo-channel [isCardLoading]=\"true\" [widgetData]=\"widgetData\"></sb-uic-card-mdo-channel>\n</ng-template>\n<ng-template #cardKarmaProgramSkeleton>\n <sb-uic-card-karma-programs [randomColorApply]=\"true\" \n [isCardLoading]=\"true\" [widgetData]=\"widgetData\"></sb-uic-card-karma-programs>\n</ng-template>\n<ng-template #cardKarmaProgram>\n <sb-uic-card-karma-programs [randomColorApply]=\"true\" \n [isCardLoading]=\"false\" [widgetData]=\"widgetData\"></sb-uic-card-karma-programs>\n</ng-template>\n<ng-template #cardScheduledAssessmentSkelton>\n <sb-uic-card-assessment [widgetData]=\"widgetData\" [isCardLoading]=\"true\"></sb-uic-card-assessment>\n</ng-template>\n<ng-template #cardScheduledAssessment>\n <sb-uic-card-assessment [widgetData]=\"widgetData\" (contentData)=\"getRedirectUrlData($event)\" [isCardLoading]=\"false\" [enrollmentMapData]=\"enrollmentMapData\"></sb-uic-card-assessment>\n</ng-template>\n<ng-template #cardProgressLibSkeleton>\n <sb-uic-card-progress-portrait-lib \n [isCardLoading]=\"true\" [widgetData]=\"widgetData\"></sb-uic-card-progress-portrait-lib>\n</ng-template>\n<ng-template #cardProgressLib>\n <sb-uic-card-progress-portrait-lib \n [isCardLoading]=\"false\" (contentData)=\"getRedirectUrlData($event)\" [widgetData]=\"widgetData\"></sb-uic-card-progress-portrait-lib>\n</ng-template>\n<ng-template #cardKarmaProgramV2>\n <!-- <sb-uic-card-karma-programs-v2 [widgetData]=\"widgetData\"><sb-uic-card-karma-programs-v2> -->\n</ng-template>\n<ng-template #cardProvider>\n <sb-uic-provider-card [isCardLoading]=\"false\" [widgetData]=\"widgetData\"></sb-uic-provider-card>\n</ng-template>\n<ng-template #cardProviderSkeleton>\n <sb-uic-provider-card [isCardLoading]=\"true\" [widgetData]=\"widgetData\"></sb-uic-provider-card>\n</ng-template>\n\n<!-- cios card -->\n<ng-template #cardPortraitExtLibSkeleton>\n <sb-uic-card-portrait-ext [widgetData]=\"widgetData\" [isCardLoading]=\"true\"></sb-uic-card-portrait-ext>\n</ng-template>\n<ng-template #cardPortraitExtLib>\n <sb-uic-card-portrait-ext \n [cbPlanMapData]=\"cbPlanMapData\"\n (contentData)=\"getRedirectUrlData($event)\" [widgetData]=\"widgetData\" [isCardLoading]=\"false\"></sb-uic-card-portrait-ext>\n</ng-template>\n",
9873
+ styles: [""]
9874
+ }] }
9875
+ ];
9876
+ /** @nocollapse */
9877
+ CardsComponent.ctorParameters = function () { return [
9878
+ { type: UtilityService },
9879
+ { type: WidgetContentService },
9880
+ { type: Router }
9881
+ ]; };
9882
+ CardsComponent.propDecorators = {
9883
+ widgetData: [{ type: Input }],
9884
+ triggerTelemetry: [{ type: Output }]
9885
+ };
9886
+ return CardsComponent;
9887
+ }(WidgetBaseComponent));
9888
+ if (false) {
9889
+ /** @type {?} */
9890
+ CardsComponent.prototype.widgetData;
9891
+ /** @type {?} */
9892
+ CardsComponent.prototype.triggerTelemetry;
9893
+ /** @type {?} */
9894
+ CardsComponent.prototype.isIntranetAllowedSettings;
9895
+ /** @type {?} */
9896
+ CardsComponent.prototype.cbPlanMapData;
9897
+ /** @type {?} */
9898
+ CardsComponent.prototype.cbPlanInterval;
9899
+ /** @type {?} */
9900
+ CardsComponent.prototype.enrollInterval;
9901
+ /** @type {?} */
9902
+ CardsComponent.prototype.enrollmentMapData;
9903
+ /**
9904
+ * @type {?}
9905
+ * @private
9906
+ */
9907
+ CardsComponent.prototype.utilitySvc;
9908
+ /**
9909
+ * @type {?}
9910
+ * @private
9911
+ */
9912
+ CardsComponent.prototype.contSvc;
9913
+ /** @type {?} */
9914
+ CardsComponent.prototype.router;
9915
+ }
9916
+
9917
+ /**
9918
+ * @fileoverview added by tsickle
9919
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9920
+ */
9921
+ var CardResourceComponent = /** @class */ (function (_super) {
9922
+ __extends(CardResourceComponent, _super);
9923
+ function CardResourceComponent() {
9924
+ return _super.call(this) || this;
9925
+ }
9926
+ /**
9927
+ * @return {?}
9928
+ */
9929
+ CardResourceComponent.prototype.ngOnInit = /**
9930
+ * @return {?}
9931
+ */
9932
+ function () {
9933
+ };
9934
+ CardResourceComponent.decorators = [
9935
+ { type: Component, args: [{
9936
+ selector: 'ws-cb-widget-card-resource',
9937
+ template: " <!-- <mat-card class=\"card-resource-container mr-5 padding-remove cursor-pointer \" [ngClass]=\"{\n greyOut:\n widgetData.deletedMode === 'greyOut' && !isLiveOrMarkForDeletion\n ? true\n : widgetData?.intranetMode === 'greyOut' && showIntranetContent\n }\" (click)=\"(showIntranetContent || !isLiveOrMarkForDeletion) && showSnackbar()\">\n <div class=\"display-contents\" [ngClass]=\"{\n disableClick:\n widgetData.deletedMode === 'greyOut' && !isLiveOrMarkForDeletion\n ? true\n : widgetData?.intranetMode === 'greyOut' && showIntranetContent\n }\">\n <ng-container *ngIf=\"widgetData.content\">\n <a (click)=\"raiseTelemetry();getRedirectUrlData(widgetData?.content); $event.stopPropagation()\" \n role=\"link\" i18n-aria-label>\n <ng-container *ngIf=\"!isCardFlipped\">\n <div class=\"status-danger\" role=\"note\" i18n-aria-label aria-label=\"Content expired or deleted\" i18n-matTooltip\n matTooltip=\"Content may be expired or deleted\" *ngIf=\"!isLiveOrMarkForDeletion\"></div>\n <div class=\"status-danger\" role=\"note\" i18n-aria-label aria-label=\"Intranet content\" i18n-matTooltip\n matTooltip=\"Available only in Company's network\"\n *ngIf=\"widgetData?.intranetMode === 'greyOut' && showIntranetContent\"></div>\n <button *ngIf=\"showFlip\" class=\"detail-button ws-mat-primary-lite-background-op30\" mat-icon-button\n (click)=\"isCardFlipped = true\" aria-label=\"Details\" i18n-aria-label=\"Details | Click to see details\">\n <mat-icon>flip_to_back</mat-icon>\n </button>\n <mat-card-content class=\"min-top\">\n <div style=\"position: relative; z-index: 1;\">\n <ng-container *ngIf=\"widgetData.content.posterImage\">\n <img mat-card-image [src]=\"widgetData.content.posterImage | pipePublicURL\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData.content.name\" />\n </ng-container>\n <ng-container *ngIf=\"!widgetData.content.posterImage\">\n <ng-container *ngIf=\"widgetData.content.appIcon; else defaultImg\">\n <img mat-card-image [src]=\"widgetData.content.appIcon | pipePublicURL\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData.content.name\" />\n </ng-container>\n <ng-template #defaultImg>\n <img mat-card-image [src]=\"defaultThumbnail\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\"\n [alt]=\"widgetData.content.name\" />\n </ng-template>\n </ng-container>\n <div class=\"source-div\" style=\"display: none;\">\n <img [src]=\"widgetData.content.creatorLogo\" class=\"source-icon\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData.content.sourceName + '_' + widgetData.content.identifier)\" />\n </div>\n <ng-container *ngIf=\"widgetData?.content?.cbPlanEndDate\">\n <div class=\"cbp-mark\">\n <span>{{widgetData?.content?.cbPlanEndDate | date: 'd MMM, y'}}</span>\n </div>\n </ng-container>\n <ng-container *ngIf=\"cbPlanMapData && cbPlanMapData[widgetData?.content?.identifier]\">\n <ng-container [ngTemplateOutlet]=\"cbpPlan\" [ngTemplateOutletContext]=\"{data: {\n cbpData: cbPlanMapData[widgetData?.content?.identifier]\n }}\"></ng-container>\n </ng-container>\n <div class=\"duration-box right-corner\" *ngIf=\"widgetData?.content?.duration > 0\">\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\n <span class=\" ws-mat-white-text duration\">\n {{ (widgetData?.content?.duration || 120)| pipeDurationTransform: 'hms' }}\n </span>\n </div>\n <div class=\"duration-box right-corner\" *ngIf=\"widgetData?.content?.programDuration > 0\">\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\n <span class=\" ws-mat-white-text duration\">\n {{widgetData?.content?.programDuration}} {{widgetData?.content?.programDuration === 1 ? 'day' : 'days'}}\n </span>\n </div>\n </div>\n <div class=\"padding-m\">\n <div class=\"course_widget flex margin-remove\">\n <div class=\"flex flex-end course_v2\">\n <mat-icon class=\"mat-icon main_icon ws-mat-default-text margin-right-xs\">video_library</mat-icon>\n <ws-widget-display-content-type i18n-title title=\"Content Type\" *ngIf=\"widgetData.content?.primaryCategory\"\n class=\"ws-mat-black60-text font-normal mat-caption \" [displayContentType]=\"widgetData.content?.primaryCategory==='Course Unit'\n ?'Module'\n :widgetData.content?.primaryCategory\">\n\n </ws-widget-display-content-type>\n </div>\n <div class=\"flex ml-5 flex-end course_v2\">\n <mat-icon class=\"mat-icon main_icon ws-mat-default-text margin-right-xs\">video_library</mat-icon>\n <ws-widget-display-content-type i18n-title title=\"Content Type\" *ngIf=\"widgetData.content?.primaryCategory\"\n class=\"ws-mat-black60-text font-normal mat-caption \" [displayContentType]=\"widgetData.content?.primaryCategory==='Course Unit'\n ?'Module'\n :widgetData.content?.primaryCategory\">\n\n </ws-widget-display-content-type>\n </div>\n </div>\n <div [id]=\"'m-c-'+ widgetData.content?.identifier\"\n class=\"mat-subheading-1 title-text ws-mat-text-block-fade-gradient\">\n {{ widgetData.content.name }}\n </div>\n <div [id]=\"'m-c-'+ widgetData.content?.identifier\"\n class=\"mat-subheading-1 description-text font-medium ws-mat-text-block-fade-gradient\">\n {{ widgetData.content.name }}\n </div>\n <div class=\"flex w-full flex-wrap flex-middle\">\n <div class=\"course_logo_box\">\n <img [src]=\"widgetData.content.creatorLogo | pipePublicURL \" class=\"source-icon\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData.content.sourceName + '_' + widgetData.content.identifier)\" />\n </div>\n <span class=\"org-text\">{{'cardcontentv2.by' | translate}} {{ (widgetData.content.organisation && widgetData.content.organisation[0]) ? widgetData.content.organisation[0] : 'Karmayogi Bharat' }}</span>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n <ng-container *ngIf=\"isCardFlipped\">\n <div class=\"flex items-center\">\n <h2 class=\"mat-subheading-2 flex-1 min-w-0 margin-remove-bottom\" i18n>{{'cardcontentv2.reason' | translate}}</h2>\n <button mat-icon-button (click)=\"isCardFlipped = false\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n <p class=\"text-justify mat-body-1\">\n {{ widgetData.content.reason }}\n </p>\n </ng-container>\n </a>\n </ng-container>\n </div>\n </mat-card> -->\n",
9938
+ styles: [".card-resource-container{position:relative;width:384px;min-height:346px;border-radius:8px;box-sizing:border-box;box-shadow:0 10px 30px rgba(153,153,153,.2);overflow:hidden;height:450px;margin:20px 8px}.card-resource-container .icon_text{font-size:12px;line-height:16px;text-transform:uppercase}.card-resource-container .description-text{margin:12px 0;font-weight:400}.card-resource-container .course_logo_box{width:24px;height:24px;background:#fff;border-radius:4px;border:1px solid rgba(0,0,0,.1607843137);box-sizing:border-box}.card-resource-container .course_logo_box img{height:18px;width:18px;padding:2px;display:inline-block}.card-resource-container .course_logo_box p{display:inline-block;vertical-align:top}.card-resource-container .org-text{font-size:12px;font-weight:400;width:75%;padding-left:10px;word-break:break-all;white-space:initial;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.card-resource-container .source-div{position:relative;top:100px;background:#fff;z-index:3;border:1px solid #dedfe0;min-width:72px;min-height:72px;max-width:72px;max-height:72px;display:flex;border-radius:8px}.card-resource-container .source-div .source-icon{border-radius:8px;display:block;margin:auto;max-width:58px;max-height:-webkit-fill-available}.card-resource-container mat-card-content{background:#fff}.card-resource-container .card-img{max-height:240px;min-height:240px;width:100%;display:block;-o-object-fit:fill;object-fit:fill;border-top-left-radius:8px;border-top-right-radius:8px}.card-resource-container .mat-subheading-1{font:600 14px/24px Montserrat}.card-resource-container .complexity{padding-top:70px;display:flex;font-size:14px;line-height:21px;padding-bottom:10px}.card-resource-container .complexity .mode-tag{border-radius:5px;order:2;margin-left:auto;color:#fff;font-size:10px}.card-resource-container .complexity .duration{display:flex;margin-left:auto;order:3;font-weight:700}.card-resource-container .complexity .time-text{margin:0 5px 0 6px;font-weight:700}.card-resource-container .basic{margin:auto 0}.card-resource-container .title-text{word-break:break-all;white-space:initial;margin:8px 0;position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:48px}.card-resource-container .description-text{position:relative;overflow:hidden;height:42px;white-space:normal;text-overflow:ellipsis}"]
9939
+ }] }
9940
+ ];
9941
+ /** @nocollapse */
9942
+ CardResourceComponent.ctorParameters = function () { return []; };
9943
+ CardResourceComponent.propDecorators = {
9944
+ widgetData: [{ type: Input }]
9945
+ };
9946
+ return CardResourceComponent;
9947
+ }(WidgetBaseComponent));
9948
+ if (false) {
9949
+ /** @type {?} */
9950
+ CardResourceComponent.prototype.widgetData;
9951
+ }
9952
+
9953
+ /**
9954
+ * @fileoverview added by tsickle
9955
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9956
+ */
9957
+ var CardPortraitComponent = /** @class */ (function () {
9958
+ function CardPortraitComponent(snackBar, translate, langtranslations, configSvc, contSvc) {
9959
+ var _this = this;
9960
+ this.snackBar = snackBar;
9961
+ this.translate = translate;
9962
+ this.langtranslations = langtranslations;
9963
+ this.configSvc = configSvc;
9964
+ this.contSvc = contSvc;
9965
+ this.isCardLoading = false;
9966
+ this.contentData = new EventEmitter();
9967
+ this.isCardFlipped = false;
9968
+ this.acbpConstants = NsCardContent$1.ACBPConst;
9969
+ this.showFlip = false;
9970
+ this.widgetType = 'df';
9971
+ this.widgetSubType = 'sdf';
9972
+ this.langtranslations.languageSelectedObservable.subscribe((/**
9973
+ * @return {?}
9974
+ */
9975
+ function () {
9976
+ if (localStorage.getItem('websiteLanguage')) {
9977
+ _this.translate.setDefaultLang('en');
9978
+ /** @type {?} */
9979
+ var lang = (/** @type {?} */ (localStorage.getItem('websiteLanguage')));
9980
+ _this.translate.use(lang);
9981
+ }
9982
+ }));
9983
+ }
9984
+ /**
9985
+ * @return {?}
9986
+ */
9987
+ CardPortraitComponent.prototype.ngOnInit = /**
9988
+ * @return {?}
9989
+ */
9990
+ function () {
9991
+ /** @type {?} */
9992
+ var instanceConfig = this.configSvc.instanceConfig;
9993
+ if (instanceConfig) {
9994
+ this.defaultThumbnail = instanceConfig.logos.defaultContent || '';
9995
+ this.sourceLogos = instanceConfig.sources;
9996
+ this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '';
9997
+ }
9998
+ else {
9999
+ this.defaultThumbnail = '/assets/instances/eagle/app_logos/default.png';
10000
+ this.defaultSLogo = '/assets/instances/eagle/app_logos/KarmayogiBharat_Logo.svg';
10001
+ }
10002
+ };
10003
+ /**
10004
+ * @return {?}
10005
+ */
10006
+ CardPortraitComponent.prototype.showSnackbar = /**
10007
+ * @return {?}
10008
+ */
10009
+ function () {
10010
+ if (this.showIntranetContent) {
10011
+ this.snackBar.open('Content is only available in intranet', 'X', { duration: 2000 });
10012
+ }
10013
+ else if (!this.isLiveOrMarkForDeletion) {
10014
+ this.snackBar.open('Content may be expired or deleted', 'X', { duration: 2000 });
10015
+ }
10016
+ };
10017
+ /**
10018
+ * @param {?} contentData
10019
+ * @return {?}
10020
+ */
10021
+ CardPortraitComponent.prototype.getRedirectUrlData = /**
10022
+ * @param {?} contentData
10023
+ * @return {?}
10024
+ */
10025
+ function (contentData) {
10026
+ // for telemetry
10027
+ if (this.widgetData && this.widgetData.context && this.widgetData.context.pageSection) {
10028
+ contentData['typeOfTelemetry'] = this.widgetData.context.pageSection;
10029
+ }
10030
+ this.contSvc.changeTelemetryData(contentData);
10031
+ // for redirection
10032
+ this.contentData.emit(contentData);
10033
+ };
10034
+ CardPortraitComponent.decorators = [
10035
+ { type: Component, args: [{
10036
+ selector: 'sb-uic-card-portrait',
10037
+ template: "<ng-container *ngIf=\"!isCardLoading\">\n <mat-card class=\"card-standard-container mr-5 padding-remove cursor-pointer {{widgetData?.cardCustomeClass}}\" [ngClass]=\"{\n greyOut:\n widgetData.deletedMode === 'greyOut' && !isLiveOrMarkForDeletion\n ? true\n : widgetData?.intranetMode === 'greyOut' && showIntranetContent\n }\" (click)=\"(showIntranetContent || !isLiveOrMarkForDeletion) && showSnackbar()\">\n <div class=\"display-contents\" [ngClass]=\"{\n disableClick:\n widgetData.deletedMode === 'greyOut' && !isLiveOrMarkForDeletion\n ? true\n : widgetData?.intranetMode === 'greyOut' && showIntranetContent\n }\">\n <ng-container *ngIf=\"widgetData.content\">\n <a (click)=\"getRedirectUrlData(widgetData?.content); $event.stopPropagation()\"\n role=\"link\" i18n-aria-label>\n <ng-container *ngIf=\"!isCardFlipped\">\n <div class=\"status-danger\" role=\"note\" i18n-aria-label aria-label=\"Content expired or deleted\" i18n-matTooltip\n matTooltip=\"Content may be expired or deleted\" *ngIf=\"!isLiveOrMarkForDeletion\"></div>\n <div class=\"status-danger\" role=\"note\" i18n-aria-label aria-label=\"Intranet content\" i18n-matTooltip\n matTooltip=\"Available only in Company's network\"\n *ngIf=\"widgetData?.intranetMode === 'greyOut' && showIntranetContent\"></div>\n <button *ngIf=\"showFlip\" class=\"detail-button ws-mat-primary-lite-background-op30\" mat-icon-button\n (click)=\"isCardFlipped = true\" aria-label=\"Details\" i18n-aria-label=\"Details | Click to see details\">\n <mat-icon>flip_to_back</mat-icon>\n </button>\n <mat-card-content class=\"min-top\">\n <div style=\"position: relative; z-index: 1;\">\n <ng-container *ngIf=\"widgetData.content.posterImage\">\n <img mat-card-image [src]=\"widgetData.content.posterImage | pipePublicURL\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData.content.name\" />\n </ng-container>\n <ng-container *ngIf=\"!widgetData.content.posterImage\">\n <ng-container *ngIf=\"widgetData.content.appIcon; else defaultImg\">\n <img mat-card-image [src]=\"widgetData.content.appIcon | pipePublicURL\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData.content.name\" />\n </ng-container>\n <ng-template #defaultImg>\n <img mat-card-image [src]=\"defaultThumbnail\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\"\n [alt]=\"widgetData.content.name\" />\n </ng-template>\n </ng-container>\n <div class=\"source-div\" style=\"display: none;\">\n <img [src]=\"widgetData.content.creatorLogo\" class=\"source-icon\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData.content.sourceName + '_' + widgetData.content.identifier)\" />\n </div>\n <ng-container *ngIf=\"widgetData?.content?.cbPlanEndDate\">\n <div class=\"cbp-mark\">\n <span>{{widgetData?.content?.cbPlanEndDate | date: 'd MMM, y'}}</span>\n </div>\n </ng-container>\n <!-- <ng-container *ngIf=\"widgetData?.content?.endDate\">\n <div class=\"cbp-mark\">\n <p *ngIf=\"widgetData?.content?.planDuration === acbpConstants?.UPCOMING\" class=\"cbp-warning\">{{widgetData?.content?.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"widgetData?.content?.planDuration === acbpConstants?.SUCCESS\" class=\"cbp-success\">{{widgetData?.content?.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"widgetData?.content?.planDuration === acbpConstants?.OVERDUE\" class=\"cbp-danger\">Over due</p>\n </div>\n </ng-container> -->\n <ng-container *ngIf=\"cbPlanMapData && cbPlanMapData[widgetData?.content?.identifier] && cbPlanMapData[widgetData?.content?.identifier]?.contentStatus < 2\">\n <ng-container [ngTemplateOutlet]=\"cbpPlan\" [ngTemplateOutletContext]=\"{data: {\n cbpData: cbPlanMapData[widgetData?.content?.identifier]\n }}\"></ng-container>\n </ng-container>\n <div class=\"duration-box right-corner\" *ngIf=\"widgetData?.content?.duration > 0\">\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\n <span class=\" ws-mat-white-text duration\">\n {{ (widgetData?.content?.duration || 120)| pipeDurationTransform: 'hms' }}\n </span>\n </div>\n <div class=\"duration-box right-corner\" *ngIf=\"widgetData?.content?.programDuration > 0\">\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\n <span class=\" ws-mat-white-text duration\">\n {{widgetData?.content?.programDuration}} {{widgetData?.content?.programDuration === 1 ? 'day' : 'days'}}\n </span>\n </div>\n </div>\n <div class=\"padding-m\">\n <div class=\"course_widget flex margin-remove\">\n <div class=\"flex flex-end course_v2\">\n <mat-icon class=\"mat-icon main_icon ws-mat-default-text margin-right-xs\">video_library</mat-icon>\n <sb-uic-display-content-type i18n-title title=\"Content Type\" *ngIf=\"widgetData.content?.primaryCategory\"\n class=\"ws-mat-black60-text font-normal mat-caption \" [displayContentType]=\"widgetData.content?.primaryCategory==='Course Unit'\n ?'Module'\n :widgetData.content?.primaryCategory\">\n\n </sb-uic-display-content-type>\n </div>\n </div>\n <div [id]=\"'m-c-'+ widgetData.content?.identifier\"\n class=\"mat-subheading-1 title-text ws-mat-text-block-fade-gradient\">\n {{ widgetData.content.name }}\n </div>\n <div class=\"flex w-full flex-wrap flex-middle\">\n <div class=\"course_logo_box\">\n <img [src]=\"widgetData.content.creatorLogo | pipePublicURL \" class=\"source-icon\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData.content.sourceName + '_' + widgetData.content.identifier)\" />\n </div>\n <!-- <span class=\"org-text\">{{'cardcontentv2.by' | translate}} -->\n <span class=\"org-text\">By&nbsp; {{ (widgetData?.content?.organisation && widgetData?.content?.organisation[0]) ? widgetData?.content?.organisation[0] : 'Karmayogi Bharat' }}</span>\n </div>\n <div class=\"flex flex-middle rating-session margin-top-m\">\n <div class=\"flex flex-middle\" *ngIf=\"widgetData?.content?.avgRating\">\n <mat-icon class=\"mr-1\">star</mat-icon>\n <span>{{widgetData.content.avgRating}}</span>\n </div>\n <!-- <span class=\"most-enrolled-text margin-left-m\">{{ 'cardcontentv2.mostEnrolled' | translate }}</span> -->\n <ng-container *ngIf=\"widgetData?.content?.additionalTags && widgetData?.content?.additionalTags.includes('mostEnrolled')\">\n <span class=\"most-enrolled-text margin-left-xs\">\n <!-- {{ 'cardcontentv2.mostEnrolled' | translate }} -->\n </span>\n </ng-container>\n <ng-container *ngIf=\"widgetData?.content?.additionalTags && widgetData?.content?.additionalTags.includes('mostTrending')\">\n <span class=\"most-enrolled-text margin-left-xs\">\n <!-- {{ 'cardcontentv2.mostTrending' | translate }} -->\n </span>\n </ng-container>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n <ng-container *ngIf=\"isCardFlipped\">\n <div class=\"flex items-center\">\n <!-- <h2 class=\"mat-subheading-2 flex-1 min-w-0 margin-remove-bottom\" i18n>{{'cardcontentv2.reason' | translate}}</h2> -->\n <button mat-icon-button (click)=\"isCardFlipped = false\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n <p class=\"text-justify mat-body-1\">\n {{ widgetData.content.reason }}\n </p>\n </ng-container>\n </a>\n </ng-container>\n </div>\n</mat-card>\n</ng-container>\n\n<ng-container *ngIf=\"isCardLoading\">\n <mat-card class=\"card-standard-container mr-5 padding-remove\" >\n <div class=\"display-contents\" >\n <ng-container *ngIf=\"!isCardFlipped\">\n <mat-card-content class=\"min-top\">\n <div style=\"position: relative; z-index: 1;\">\n <ng-container>\n <sb-uic-skeleton-loader [width]=\"'100%'\" [height]=\"'140px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </ng-container>\n </div>\n <div class=\"padding-m\">\n <div class=\"course_widget flex margin-remove\">\n <div class=\"flex flex-end\">\n <sb-uic-skeleton-loader [width]=\"'65px'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded br-8'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n <div class=\"mat-subheading-1 title-text ws-mat-text-block-fade-gradient\">\n <sb-uic-skeleton-loader [width]=\"'100%'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader [width]=\"'111px'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded margin-top-s'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"flex w-full flex-wrap flex-middle margin-top-m\">\n <div class=\"\">\n <sb-uic-skeleton-loader [width]=\"'28px'\" [height]=\"'28px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n <span class=\"org-text\"> <sb-uic-skeleton-loader [width]=\"'111px'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader></span>\n </div>\n <div class=\"flex flex-middle rating-session margin-top-m\">\n <div class=\"flex flex-middle\">\n <sb-uic-skeleton-loader [width]=\"'45px'\" [height]=\"'12px'\" [bindingClass]=\"'flex rounded margin-top-m'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n </div>\n </mat-card>\n</ng-container>\n\n<ng-template #cbpPlan let-data=\"data\">\n <div class=\"cbp-mark left-0 border-top-radius\">\n <p *ngIf=\"data.cbpData.planDuration === acbpConstants?.UPCOMING\" class=\"cbp-warning\">{{data.cbpData.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"data.cbpData.planDuration === acbpConstants?.SUCCESS\" class=\"cbp-success\">{{data.cbpData.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"data.cbpData.planDuration === acbpConstants?.OVERDUE\" class=\"cbp-danger\">{{'OverDue' }}</p>\n </div>\n</ng-template>",
10038
+ styles: [".course_widget{margin-top:10px}.course_widget .mat-icon{vertical-align:middle;color:#ef951e!important}.course_widget .course_v2{border:1px solid #ef951e;padding:4px 8px;align-items:end;border-radius:16px}.course_widget .main_icon{font-size:16px;width:16px;height:16px}.rating-session mat-icon{font-size:16px;height:16px;width:12px;padding-right:3px;color:#ef951e}.rating-session span{font-size:11px}.rating-session .most-enrolled-text{padding:0 8px;background:#ffea9e;border-radius:4px}.card-standard-container{position:relative;width:245px;min-height:346px;border-radius:8px;box-sizing:border-box;box-shadow:0 10px 30px rgba(153,153,153,.2);overflow:hidden;height:346px;margin:20px 8px}.card-standard-container .progress-bar{width:101%;margin-left:-15px;display:flex;margin-top:0;background:bisque;position:absolute;bottom:0}.card-standard-container ::ng-deep .mat-progress-bar{height:8px!important}.card-standard-container .icon_text{font-size:12px;line-height:16px;text-transform:uppercase}.card-standard-container .course_logo_box{width:38px;height:38px;background:#fff;border-radius:8px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.card-standard-container .course_logo_box img{height:28px;width:28px;padding:5px;display:inline-block}.card-standard-container .course_logo_box p{display:inline-block;vertical-align:top}.card-standard-container .org-text{font-size:12px;font-weight:400;width:75%;padding-left:10px;word-break:break-all;white-space:initial;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.card-standard-container .source-div{position:relative;top:100px;background:#fff;z-index:3;border:1px solid #dedfe0;min-width:72px;min-height:72px;max-width:72px;max-height:72px;display:flex;border-radius:8px}.card-standard-container .source-div .source-icon{border-radius:8px;display:block;margin:auto;max-width:58px;max-height:-webkit-fill-available}.card-standard-container mat-card-content{background:#fff}.card-standard-container .card-img{min-width:245px;max-height:140px;min-height:140px;display:block;-o-object-fit:fill;object-fit:fill;border-top-left-radius:8px;border-top-right-radius:8px;width:100%}.card-standard-container .mat-subheading-1{font:600 14px/24px Montserrat}.card-standard-container .complexity{padding-top:70px;display:flex;font-size:14px;line-height:21px;padding-bottom:10px}.card-standard-container .complexity .mode-tag{border-radius:5px;order:2;margin-left:auto;color:#fff;font-size:10px}.card-standard-container .complexity .duration{display:flex;margin-left:auto;order:3;font-weight:700}.card-standard-container .complexity .time-text{margin:0 5px 0 6px;font-weight:700}.card-standard-container .basic{margin:auto 0}.card-standard-container .title-text{word-break:break-all;white-space:initial;margin:8px 0;position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:48px}.card-standard-container .description-text{position:relative;overflow:hidden;height:42px;white-space:normal;text-overflow:ellipsis}.duration-box{background:#000;position:absolute;border:none;display:flex;align-items:center;padding:4px;border-radius:4px}.duration-box.right-corner{right:4px;bottom:4px}.duration-box .mat-icon{vertical-align:middle;color:#fff!important;height:14px!important;width:14px!important;font-size:14px}.duration-box .duration{font:700 12px/16px Lato;display:inline-block;margin:0;padding:0}.width-238{width:238px!important}.cbp-mark{border-radius:12px 0;opacity:1;background-image:linear-gradient(90deg,rgba(0,0,0,.6) 0,rgba(0,0,0,0) 100%);position:absolute;top:0;padding:8px}.cbp-mark p{opacity:1;background-color:#fff;padding:4px;opacity:1;color:#1b2133;font-family:Lato-Regular;font-size:10px;font-weight:400;font-style:Regular;letter-spacing:.5px;text-align:left;line-height:12px;margin-bottom:0}.cbpwidth{width:340px}.cbp-plan{border-radius:4px;opacity:1;background-color:#1b4ca1;top:4px;left:4px;opacity:1;color:rgba(255,255,255,.95);font-family:Lato-Bold;font-size:12px;font-weight:700;font-style:normal;letter-spacing:.25px;text-align:center;line-height:16px;padding:4px}.cbp-info{opacity:1;color:#fff;font-family:Lato-Regular;font-size:10px;font-weight:400;font-style:normal;letter-spacing:.5px;text-align:left;line-height:12px;padding:2px}.cbp-danger{border-radius:2px;border:1px solid rgba(0,0,0,.08);background-color:#d13924!important;color:#fff!important;opacity:1}.cbp-success{border-radius:2px;border:1px solid #1d8922;background-color:#1d8922!important;color:#fff!important;opacity:1}.cbp-warning{border-radius:2px;border:1px solid #ef951e;background-color:#ef951e!important;color:#fff!important;opacity:1}"]
10039
+ }] }
10040
+ ];
10041
+ /** @nocollapse */
10042
+ CardPortraitComponent.ctorParameters = function () { return [
10043
+ { type: MatSnackBar },
10044
+ { type: TranslateService },
10045
+ { type: MultilingualTranslationsService },
10046
+ { type: ConfigurationsService$1 },
10047
+ { type: WidgetContentService }
10048
+ ]; };
10049
+ CardPortraitComponent.propDecorators = {
10050
+ widgetData: [{ type: Input }],
10051
+ isLiveOrMarkForDeletion: [{ type: Input }],
10052
+ showIntranetContent: [{ type: Input }],
10053
+ isIntranetAllowedSettings: [{ type: Input }],
10054
+ isCardLoading: [{ type: Input }],
10055
+ contentData: [{ type: Output }],
10056
+ cbPlanMapData: [{ type: Input }]
10057
+ };
10058
+ return CardPortraitComponent;
10059
+ }());
10060
+ if (false) {
10061
+ /** @type {?} */
10062
+ CardPortraitComponent.prototype.widgetData;
10063
+ /** @type {?} */
10064
+ CardPortraitComponent.prototype.isLiveOrMarkForDeletion;
10065
+ /** @type {?} */
10066
+ CardPortraitComponent.prototype.showIntranetContent;
10067
+ /** @type {?} */
10068
+ CardPortraitComponent.prototype.isIntranetAllowedSettings;
10069
+ /** @type {?} */
10070
+ CardPortraitComponent.prototype.isCardLoading;
10071
+ /** @type {?} */
10072
+ CardPortraitComponent.prototype.contentData;
10073
+ /** @type {?} */
10074
+ CardPortraitComponent.prototype.cbPlanMapData;
10075
+ /** @type {?} */
10076
+ CardPortraitComponent.prototype.isCardFlipped;
10077
+ /** @type {?} */
10078
+ CardPortraitComponent.prototype.acbpConstants;
10079
+ /** @type {?} */
10080
+ CardPortraitComponent.prototype.defaultThumbnail;
10081
+ /** @type {?} */
10082
+ CardPortraitComponent.prototype.sourceLogos;
10083
+ /** @type {?} */
10084
+ CardPortraitComponent.prototype.defaultSLogo;
10085
+ /** @type {?} */
10086
+ CardPortraitComponent.prototype.showFlip;
10087
+ /** @type {?} */
10088
+ CardPortraitComponent.prototype.widgetType;
10089
+ /** @type {?} */
10090
+ CardPortraitComponent.prototype.widgetSubType;
10091
+ /**
10092
+ * @type {?}
10093
+ * @private
10094
+ */
10095
+ CardPortraitComponent.prototype.snackBar;
10096
+ /**
10097
+ * @type {?}
10098
+ * @private
10099
+ */
10100
+ CardPortraitComponent.prototype.translate;
10101
+ /**
10102
+ * @type {?}
10103
+ * @private
10104
+ */
10105
+ CardPortraitComponent.prototype.langtranslations;
10106
+ /**
10107
+ * @type {?}
10108
+ * @private
10109
+ */
10110
+ CardPortraitComponent.prototype.configSvc;
10111
+ /**
10112
+ * @type {?}
10113
+ * @private
10114
+ */
10115
+ CardPortraitComponent.prototype.contSvc;
10116
+ }
10117
+
10118
+ /**
10119
+ * @fileoverview added by tsickle
10120
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
10121
+ */
10122
+ var PipePublicURL = /** @class */ (function () {
10123
+ function PipePublicURL(environment) {
10124
+ this.environment = environment;
10125
+ }
10126
+ /**
10127
+ * @param {?} value
10128
+ * @return {?}
10129
+ */
10130
+ PipePublicURL.prototype.transform = /**
10131
+ * @param {?} value
10132
+ * @return {?}
10133
+ */
10134
+ function (value) {
10135
+ /** @type {?} */
10136
+ var mainUrl = value && value.split('/content').pop() || '';
10137
+ /** @type {?} */
10138
+ var finalURL = this.environment.contentHost + "/" + this.environment.contentBucket + "/content" + mainUrl;
10139
+ return value ? finalURL : '';
10140
+ };
10141
+ PipePublicURL.decorators = [
10142
+ { type: Pipe, args: [{
10143
+ name: 'pipePublicURL',
10144
+ },] }
10145
+ ];
10146
+ /** @nocollapse */
10147
+ PipePublicURL.ctorParameters = function () { return [
10148
+ { type: undefined, decorators: [{ type: Inject, args: ['environment',] }] }
10149
+ ]; };
10150
+ return PipePublicURL;
10151
+ }());
10152
+ if (false) {
10153
+ /** @type {?} */
10154
+ PipePublicURL.prototype.environment;
10155
+ }
10156
+
10157
+ /**
10158
+ * @fileoverview added by tsickle
10159
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
10160
+ */
10161
+ var PipePublicURLModule = /** @class */ (function () {
10162
+ function PipePublicURLModule() {
10163
+ }
10164
+ PipePublicURLModule.decorators = [
10165
+ { type: NgModule, args: [{
10166
+ declarations: [PipePublicURL],
10167
+ imports: [
10168
+ CommonModule,
10169
+ ],
10170
+ exports: [PipePublicURL],
10171
+ },] }
9195
10172
  ];
9196
10173
  return PipePublicURLModule;
9197
10174
  }());
@@ -10024,7 +11001,7 @@ var CardWideComponent = /** @class */ (function () {
10024
11001
  { type: Component, args: [{
10025
11002
  selector: 'sb-uic-card-wide',
10026
11003
  template: "<mat-card class=\"card-wide-lib\">\n <a (click)=\"raiseTelemetry();getRedirectUrlData(widgetData?.content); $event.stopPropagation()\" \n role=\"link\" i18n-aria-label>\n <div class=\"flex\">\n <div>\n <ng-container *ngIf=\"widgetData?.content?.posterImage\">\n <img mat-card-image [src]=\"widgetData?.content?.posterImage | pipePublicURL\" loading=\"lazy\"\n class=\"card-wide-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData?.content?.name\" />\n </ng-container>\n <ng-container *ngIf=\"!widgetData?.content?.posterImage\">\n <ng-container *ngIf=\"widgetData?.content?.appIcon; else defaultImg\">\n <img mat-card-image [src]=\"widgetData?.content?.appIcon | pipePublicURL\" loading=\"lazy\"\n class=\"card-wide-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData?.content?.name\" />\n </ng-container>\n <ng-template #defaultImg>\n <img mat-card-image [src]=\"defaultThumbnail\" loading=\"lazy\"\n class=\"card-wide-img ws-mat-primary-lite-background margin-remove\"\n [alt]=\"widgetData?.content?.name\" />\n </ng-template>\n </ng-container>\n </div>\n <div>\n <div class=\"pl-4 pr-4 w-full\">\n <div class=\"course_widget flex margin-remove\">\n <div class=\"flex flex-end course_v2\">\n <mat-icon class=\"mat-icon main_icon ws-mat-default-text margin-right-xs\">video_library</mat-icon>\n <sb-uic-display-content-type i18n-title title=\"Content Type\" *ngIf=\"widgetData?.content?.primaryCategory\"\n class=\"ws-mat-black60-text font-normal mat-caption \" [displayContentType]=\"widgetData?.content?.primaryCategory==='Course Unit'\n ?'Module'\n :widgetData?.content?.primaryCategory\">\n </sb-uic-display-content-type>\n </div>\n </div>\n <div [id]=\"'m-c-'+ widgetData?.content?.identifier\"\n class=\"mat-subheading-1 title-text ws-mat-text-block-fade-gradient\">\n {{ widgetData?.content?.name }}\n </div>\n\n <div class=\"flex w-full flex-middle\">\n <div class=\"course_logo_box\">\n <img [src]=\"widgetData?.content?.creatorLogo | pipePublicURL \" class=\"source-icon\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData?.content?.sourceName + '_' + widgetData?.content?.identifier)\" />\n </div>\n <!-- <span class=\"org-text\">{{'cardcontentv2.by' | translate}} -->\n <span class=\"org-text\">By&nbsp; {{ (widgetData?.content?.organisation && widgetData?.content?.organisation[0]) ? widgetData?.content?.organisation[0] : 'Karmayogi Bharat' }}</span>\n </div>\n </div>\n </div>\n </div>\n </a>\n</mat-card>\n",
10027
- styles: [".card-wide-lib{width:inherit;padding:16px;border-radius:12px;background:#fff;border:1px solid rgba(0,0,0,.16)}.card-wide-lib .card-wide-img{width:190px;height:107px;border-radius:12px}.card-wide-lib .course_widget{margin-top:10px}.card-wide-lib .course_widget .mat-icon{vertical-align:middle;color:#ef951e!important}.card-wide-lib .course_widget .course_v2{border:1px solid #ef951e;padding:4px 8px;align-items:end;border-radius:16px}.card-wide-lib .course_widget .main_icon{font-size:16px;width:16px;height:16px}.card-wide-lib .course_logo_box{width:38px;height:38px;background:#fff;border-radius:8px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.card-wide-lib .course_logo_box img{height:28px;width:28px;padding:5px;display:inline-block}.card-wide-lib .course_logo_box p{display:inline-block;vertical-align:top}.card-wide-lib .org-text{font-size:12px;font-weight:400;width:75%;padding-left:10px;word-break:break-all;white-space:initial;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}@media screen and (max-width:768px){.card-wide-img{width:147px!important;height:117px!important;border-radius:12px!important}}"]
11004
+ styles: [".card-wide-lib{width:inherit;padding:16px;border-radius:12px;background:#fff;border:1px solid rgba(0,0,0,.16)}.card-wide-lib .card-wide-img{width:190px;height:107px;border-radius:12px}.card-wide-lib .course_widget{margin-top:10px}.card-wide-lib .course_widget .mat-icon{vertical-align:middle;color:#ef951e!important}.card-wide-lib .course_widget .course_v2{border:1px solid #ef951e;padding:4px 8px;align-items:end;border-radius:16px}.card-wide-lib .course_widget .main_icon{font-size:16px;width:16px;height:16px}.card-wide-lib .course_logo_box{width:38px;height:38px;background:#fff;border-radius:8px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.card-wide-lib .course_logo_box img{height:28px;width:28px;padding:5px;display:inline-block}.card-wide-lib .course_logo_box p{display:inline-block;vertical-align:top}.card-wide-lib .org-text{font-size:12px;font-weight:400;width:75%;padding-left:10px;word-break:break-all;white-space:initial;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}@media screen and (max-width:768px){.card-wide-img{width:147px!important;height:117px!important;border-radius:12px!important}.course_widget{max-width:145px}.org-text{width:56%!important}}"]
10028
11005
  }] }
10029
11006
  ];
10030
11007
  /** @nocollapse */
@@ -15509,666 +16486,1029 @@ var RatingService = /** @class */ (function () {
15509
16486
  * @param {?} avg
15510
16487
  * @return {?}
15511
16488
  */
15512
- RatingService.prototype.getRatingIcon = /**
16489
+ RatingService.prototype.getRatingIcon = /**
16490
+ * @param {?} ratingIndex
16491
+ * @param {?} avg
16492
+ * @return {?}
16493
+ */
16494
+ function (ratingIndex, avg) {
16495
+ if (avg) {
16496
+ /** @type {?} */
16497
+ var avgRating = avg;
16498
+ /** @type {?} */
16499
+ var ratingFloor = Math.floor(avgRating)
16500
+ // const difference = avgRating - ratingIndex
16501
+ ;
16502
+ // const difference = avgRating - ratingIndex
16503
+ if (ratingIndex <= ratingFloor) {
16504
+ return 'star';
16505
+ }
16506
+ if (ratingFloor === ratingIndex - 1 && avgRating % 1 >= 0.29 && avgRating % 1 < 0.71) {
16507
+ return 'star_half';
16508
+ }
16509
+ }
16510
+ return 'star';
16511
+ };
16512
+ /**
16513
+ * @param {?} ratingIndex
16514
+ * @param {?} avg
16515
+ * @return {?}
16516
+ */
16517
+ RatingService.prototype.getRatingIconClass = /**
16518
+ * @param {?} ratingIndex
16519
+ * @param {?} avg
16520
+ * @return {?}
16521
+ */
16522
+ function (ratingIndex, avg) {
16523
+ if (avg) {
16524
+ /** @type {?} */
16525
+ var avgRating = avg;
16526
+ /** @type {?} */
16527
+ var ratingFloor = Math.floor(avgRating);
16528
+ if (ratingIndex <= ratingFloor) {
16529
+ return true;
16530
+ }
16531
+ if (ratingFloor === ratingIndex - 1 && avgRating % 1 >= 0.29 && avgRating % 1 < 0.71) {
16532
+ return true;
16533
+ }
16534
+ if (ratingFloor === ratingIndex - 1 && avgRating % 1 > 0.71) {
16535
+ return true;
16536
+ }
16537
+ if (ratingFloor === ratingIndex - 1 && avgRating % 1 < 0.29) {
16538
+ return false;
16539
+ }
16540
+ }
16541
+ return false;
16542
+ };
16543
+ /**
16544
+ * @param {?} contentId
16545
+ * @param {?} userID
16546
+ * @return {?}
16547
+ */
16548
+ RatingService.prototype.getAuthorReply = /**
16549
+ * @param {?} contentId
16550
+ * @param {?} userID
16551
+ * @return {?}
16552
+ */
16553
+ function (contentId, userID) {
16554
+ return this.http.get(API_END_POINTS$3.GET_AUTHOR_REPLY(contentId, userID));
16555
+ };
16556
+ RatingService.decorators = [
16557
+ { type: Injectable, args: [{
16558
+ providedIn: 'root',
16559
+ },] }
16560
+ ];
16561
+ /** @nocollapse */
16562
+ RatingService.ctorParameters = function () { return [
16563
+ { type: HttpClient }
16564
+ ]; };
16565
+ /** @nocollapse */ RatingService.ngInjectableDef = ɵɵdefineInjectable({ factory: function RatingService_Factory() { return new RatingService(ɵɵinject(HttpClient)); }, token: RatingService, providedIn: "root" });
16566
+ return RatingService;
16567
+ }());
16568
+ if (false) {
16569
+ /** @type {?} */
16570
+ RatingService.prototype.http;
16571
+ }
16572
+
16573
+ /**
16574
+ * @fileoverview added by tsickle
16575
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
16576
+ */
16577
+ /** @type {?} */
16578
+ var API_END_POINTS$4 = {
16579
+ TOP_REVIEWS: "/apis/proxies/v8/ratings/v1/topReviews"
16580
+ };
16581
+ var UserContentRatingLibService = /** @class */ (function () {
16582
+ function UserContentRatingLibService(http) {
16583
+ this.http = http;
16584
+ }
16585
+ /**
16586
+ * @param {?} doId
16587
+ * @return {?}
16588
+ */
16589
+ UserContentRatingLibService.prototype.fetchTopReviews = /**
16590
+ * @param {?} doId
16591
+ * @return {?}
16592
+ */
16593
+ function (doId) {
16594
+ return this.http.get(API_END_POINTS$4.TOP_REVIEWS + "/" + doId);
16595
+ };
16596
+ UserContentRatingLibService.decorators = [
16597
+ { type: Injectable, args: [{
16598
+ providedIn: 'root'
16599
+ },] }
16600
+ ];
16601
+ /** @nocollapse */
16602
+ UserContentRatingLibService.ctorParameters = function () { return [
16603
+ { type: HttpClient }
16604
+ ]; };
16605
+ /** @nocollapse */ UserContentRatingLibService.ngInjectableDef = ɵɵdefineInjectable({ factory: function UserContentRatingLibService_Factory() { return new UserContentRatingLibService(ɵɵinject(HttpClient)); }, token: UserContentRatingLibService, providedIn: "root" });
16606
+ return UserContentRatingLibService;
16607
+ }());
16608
+ if (false) {
16609
+ /**
16610
+ * @type {?}
16611
+ * @private
16612
+ */
16613
+ UserContentRatingLibService.prototype.http;
16614
+ }
16615
+
16616
+ /**
16617
+ * @fileoverview added by tsickle
16618
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
16619
+ */
16620
+ var UserContentRatingLibComponent = /** @class */ (function () {
16621
+ function UserContentRatingLibComponent(ratingService, userRatingSvc) {
16622
+ this.ratingService = ratingService;
16623
+ this.userRatingSvc = userRatingSvc;
16624
+ this.currentIndex = 0;
16625
+ this.providerId = '';
16626
+ this.formData = '';
16627
+ this.emptyResponse = new EventEmitter();
16628
+ this.styleData = {};
16629
+ this.contentdata = [];
16630
+ }
16631
+ /**
16632
+ * @return {?}
16633
+ */
16634
+ UserContentRatingLibComponent.prototype.ngOnInit = /**
16635
+ * @return {?}
16636
+ */
16637
+ function () {
16638
+ this.styleData = this.formData && this.formData.sliderData && this.formData.sliderData.styleData;
16639
+ this.getTopReviews();
16640
+ };
16641
+ /**
16642
+ * @return {?}
16643
+ */
16644
+ UserContentRatingLibComponent.prototype.getTopReviews = /**
16645
+ * @return {?}
16646
+ */
16647
+ function () {
16648
+ var _this = this;
16649
+ this.contentdata = [];
16650
+ this.userRatingSvc.fetchTopReviews(this.providerId).subscribe((/**
16651
+ * @param {?} response
16652
+ * @return {?}
16653
+ */
16654
+ function (response) {
16655
+ if (response && response.result && response.result.content.length) {
16656
+ response.result.content.forEach((/**
16657
+ * @param {?} contentEle
16658
+ * @return {?}
16659
+ */
16660
+ function (contentEle) {
16661
+ /** @type {?} */
16662
+ var localData = {};
16663
+ localData['content'] = contentEle.contentInfo;
16664
+ localData['rating'] = contentEle.rating;
16665
+ localData['review'] = contentEle.review;
16666
+ localData['userDetails'] = contentEle.userDetails;
16667
+ localData['cardSubType'] = "card-wide-lib";
16668
+ localData['cardCustomeClass'] = "";
16669
+ _this.contentdata.push(localData);
16670
+ }));
16671
+ }
16672
+ else {
16673
+ _this.emptyResponse.emit(true);
16674
+ }
16675
+ }), (/**
16676
+ * @param {?} _error
16677
+ * @return {?}
16678
+ */
16679
+ function (_error) {
16680
+ _this.emptyResponse.emit(true);
16681
+ }));
16682
+ };
16683
+ /**
16684
+ * @param {?} ratingIndex
16685
+ * @param {?} avg
16686
+ * @return {?}
16687
+ */
16688
+ UserContentRatingLibComponent.prototype.getRatingIcon = /**
15513
16689
  * @param {?} ratingIndex
15514
16690
  * @param {?} avg
15515
16691
  * @return {?}
15516
16692
  */
15517
16693
  function (ratingIndex, avg) {
15518
- if (avg) {
15519
- /** @type {?} */
15520
- var avgRating = avg;
15521
- /** @type {?} */
15522
- var ratingFloor = Math.floor(avgRating)
15523
- // const difference = avgRating - ratingIndex
15524
- ;
15525
- // const difference = avgRating - ratingIndex
15526
- if (ratingIndex <= ratingFloor) {
15527
- return 'star';
15528
- }
15529
- if (ratingFloor === ratingIndex - 1 && avgRating % 1 >= 0.29 && avgRating % 1 < 0.71) {
15530
- return 'star_half';
15531
- }
15532
- }
15533
- return 'star';
16694
+ return this.ratingService.getRatingIcon(ratingIndex, avg);
15534
16695
  };
15535
16696
  /**
15536
16697
  * @param {?} ratingIndex
15537
16698
  * @param {?} avg
15538
16699
  * @return {?}
15539
16700
  */
15540
- RatingService.prototype.getRatingIconClass = /**
16701
+ UserContentRatingLibComponent.prototype.getRatingIconClass = /**
15541
16702
  * @param {?} ratingIndex
15542
16703
  * @param {?} avg
15543
16704
  * @return {?}
15544
16705
  */
15545
16706
  function (ratingIndex, avg) {
15546
- if (avg) {
15547
- /** @type {?} */
15548
- var avgRating = avg;
15549
- /** @type {?} */
15550
- var ratingFloor = Math.floor(avgRating);
15551
- if (ratingIndex <= ratingFloor) {
15552
- return true;
15553
- }
15554
- if (ratingFloor === ratingIndex - 1 && avgRating % 1 >= 0.29 && avgRating % 1 < 0.71) {
15555
- return true;
15556
- }
15557
- if (ratingFloor === ratingIndex - 1 && avgRating % 1 > 0.71) {
15558
- return true;
15559
- }
15560
- if (ratingFloor === ratingIndex - 1 && avgRating % 1 < 0.29) {
15561
- return false;
15562
- }
15563
- }
15564
- return false;
16707
+ return this.ratingService.getRatingIconClass(ratingIndex, avg);
15565
16708
  };
15566
16709
  /**
15567
- * @param {?} contentId
15568
- * @param {?} userID
16710
+ * @param {?} indexValue
15569
16711
  * @return {?}
15570
16712
  */
15571
- RatingService.prototype.getAuthorReply = /**
15572
- * @param {?} contentId
15573
- * @param {?} userID
16713
+ UserContentRatingLibComponent.prototype.getCurrentIndex = /**
16714
+ * @param {?} indexValue
15574
16715
  * @return {?}
15575
16716
  */
15576
- function (contentId, userID) {
15577
- return this.http.get(API_END_POINTS$3.GET_AUTHOR_REPLY(contentId, userID));
16717
+ function (indexValue) {
16718
+ this.currentIndex = indexValue;
16719
+ this.handleScrollClick(indexValue);
15578
16720
  };
15579
- RatingService.decorators = [
15580
- { type: Injectable, args: [{
15581
- providedIn: 'root',
15582
- },] }
16721
+ /**
16722
+ * @param {?} dataValue
16723
+ * @return {?}
16724
+ */
16725
+ UserContentRatingLibComponent.prototype.handleScrollClick = /**
16726
+ * @param {?} dataValue
16727
+ * @return {?}
16728
+ */
16729
+ function (dataValue) {
16730
+ /** @type {?} */
16731
+ var item = this.scrollableItems.find((/**
16732
+ * @param {?} x
16733
+ * @return {?}
16734
+ */
16735
+ function (x) { return x.key === dataValue; }));
16736
+ item.scrollIntoView("nearest");
16737
+ };
16738
+ UserContentRatingLibComponent.decorators = [
16739
+ { type: Component, args: [{
16740
+ selector: 'sb-uic-user-content-rating',
16741
+ template: "<ng-container *ngIf=\"contentdata.length\">\n <div class=\"user-rating-section\">\n <sb-uic-sliders-ng-content [title]=\"'providerName'\" [currentIndex]=\"currentIndex\" (currentIndexValue)=\"getCurrentIndex($event)\" [loadNgContentData]=\"true\" [widgetData]=\"contentdata\" [styleData]=\"styleData\">\n <div sliderbody>\n <div class=\"flex justify-start md:justify-center users-block\">\n <ng-container *ngFor=\"let userData of contentdata; let j = index\">\n <div class=\"avatar-block mr-1\" [sbUicScrollableItem]=\"j\"\n [ngClass]=\"{'user-active': j === currentIndex}\" (click)=\"handleScrollClick(currentIndex);currentIndex = j\">\n <sb-uic-avatar-photo [defaulfColor]=\"'#1B2133'\" [datalen]=\"1\" [randomColor]=\"true\" [name]=\"userData?.userDetails?.firstName\" [photoUrl]=\"userData?.userDetails?.profileImageUrl\" size=\"m-side-rating\">\n </sb-uic-avatar-photo>\n </div>\n </ng-container>\n </div>\n <div *ngFor=\"let ratingData of contentdata; let i = index\" [hidden]=\"i !== currentIndex\">\n <div class=\"user-ratting-wrapper flex flex-wrap justify-center\">\n <div class=\"w-full mr-0 md:mr-8 ml-0 md:ml-8 pb-5\">\n <sb-uic-cards [widgetData]=\"ratingData\"></sb-uic-cards>\n </div>\n <div class=\"title-border-v2\"></div>\n <p class=\"userName w-full mb-4 pt-6\">{{ratingData?.userDetails?.firstName}}</p>\n <div class=\"flex w-full flex-row justify-center gap-2 mb-4\">\n <mat-icon class=\"mat-icon material-icons rating-icon ws-mat-black16-text\"\n [ngClass]=\"{'ws-mat-orange-text': getRatingIconClass(rating, ratingData?.rating)}\"\n *ngFor=\"let rating of [1, 2, 3, 4, 5]\">\n {{ getRatingIcon(rating, ratingData?.rating) }}\n </mat-icon>\n </div>\n <p class=\"content-feedback w-full mb-4 px-4 md:px-8\">{{ratingData?.review}}</p>\n </div>\n </div>\n </div>\n </sb-uic-sliders-ng-content>\n </div>\n</ng-container>\n\n",
16742
+ styles: [".user-ratting-wrapper .userName{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:center}.user-ratting-wrapper .content-feedback{font-family:Lato;font-size:16px;font-weight:400;line-height:19.2px;text-align:center;color:rgba(0,0,0,.87)}.user-ratting-wrapper .content-info{font-family:Lato;font-size:14px;font-weight:700;line-height:16.8px;text-align:center;color:#666}.avatar-block{border:8px solid transparent;position:relative;cursor:pointer;width:48px;height:48px}.user-active{content:\"\";border:5px solid #f3972e;border-radius:50%;display:flex;justify-content:center;align-items:center;margin-bottom:0;width:48px;height:48px}.user-active::after{content:\" \";position:absolute;top:106%;left:50%;margin-left:-10px;border-left:10px solid transparent;border-right:10px solid transparent;border-top:18px solid #f3972e}.users-block{overflow-x:auto;padding:16px;padding-bottom:10px!important;width:100%}.title-border-v2{margin:10px;width:300px;height:3px;background:linear-gradient(90deg,rgba(255,255,255,0) 0,#ef951e 20%,#ef951e 80%,rgba(255,255,255,0) 100%)}.user-ratting-wrapper{border:2px solid #f3962f;border-radius:15px;padding:30px 0;background:linear-gradient(111.16deg,rgba(243,150,47,.24) 9.09%,rgba(255,255,255,0) 74.81%)}.user-rating-section ::ng-deep.prev{margin-left:-50px;top:59%}.user-rating-section ::ng-deep.next{margin-right:-50px;top:59%}.user-rating-section ::ng-deep.dots-container{display:none!important}@media screen and (max-width:768px){.user-rating-section ::ng-deep.next{margin-right:-16px;top:59%}.user-rating-section .users-block{width:90%}.user-rating-section ::ng-deep.widget-card-content-new{margin:0 15px}.user-rating-section .user-ratting-wrapper{padding:15px 0}.user-rating-section ::ng-deep.dots-container{display:block!important}.user-rating-section ::ng-deep.banner-meta{bottom:-12px}}"]
16743
+ }] }
15583
16744
  ];
15584
16745
  /** @nocollapse */
15585
- RatingService.ctorParameters = function () { return [
15586
- { type: HttpClient }
16746
+ UserContentRatingLibComponent.ctorParameters = function () { return [
16747
+ { type: RatingService },
16748
+ { type: UserContentRatingLibService }
15587
16749
  ]; };
15588
- /** @nocollapse */ RatingService.ngInjectableDef = ɵɵdefineInjectable({ factory: function RatingService_Factory() { return new RatingService(ɵɵinject(HttpClient)); }, token: RatingService, providedIn: "root" });
15589
- return RatingService;
16750
+ UserContentRatingLibComponent.propDecorators = {
16751
+ providerId: [{ type: Input }],
16752
+ formData: [{ type: Input }],
16753
+ emptyResponse: [{ type: Output }],
16754
+ scrollableItems: [{ type: ViewChildren, args: [ScrollableItemDirective,] }]
16755
+ };
16756
+ return UserContentRatingLibComponent;
15590
16757
  }());
15591
16758
  if (false) {
15592
16759
  /** @type {?} */
15593
- RatingService.prototype.http;
16760
+ UserContentRatingLibComponent.prototype.currentIndex;
16761
+ /** @type {?} */
16762
+ UserContentRatingLibComponent.prototype.providerId;
16763
+ /** @type {?} */
16764
+ UserContentRatingLibComponent.prototype.formData;
16765
+ /** @type {?} */
16766
+ UserContentRatingLibComponent.prototype.emptyResponse;
16767
+ /** @type {?} */
16768
+ UserContentRatingLibComponent.prototype.styleData;
16769
+ /** @type {?} */
16770
+ UserContentRatingLibComponent.prototype.contentdata;
16771
+ /** @type {?} */
16772
+ UserContentRatingLibComponent.prototype.scrollableItems;
16773
+ /** @type {?} */
16774
+ UserContentRatingLibComponent.prototype.ratingService;
16775
+ /** @type {?} */
16776
+ UserContentRatingLibComponent.prototype.userRatingSvc;
15594
16777
  }
15595
16778
 
15596
16779
  /**
15597
16780
  * @fileoverview added by tsickle
15598
16781
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
15599
16782
  */
15600
- var ScrollableItemDirective = /** @class */ (function () {
15601
- function ScrollableItemDirective(el) {
15602
- this.el = el;
16783
+ var UserContentRatingLibModule = /** @class */ (function () {
16784
+ function UserContentRatingLibModule() {
15603
16785
  }
15604
- /**
15605
- * @param {?} blockValue
15606
- * @return {?}
15607
- */
15608
- ScrollableItemDirective.prototype.scrollIntoView = /**
15609
- * @param {?} blockValue
15610
- * @return {?}
15611
- */
15612
- function (blockValue) {
15613
- this.el.nativeElement.scrollIntoView({ behavior: 'smooth', block: blockValue });
15614
- };
15615
- ScrollableItemDirective.decorators = [
15616
- { type: Directive, args: [{
15617
- selector: '[sbUicScrollableItem]'
16786
+ UserContentRatingLibModule.decorators = [
16787
+ { type: NgModule, args: [{
16788
+ declarations: [UserContentRatingLibComponent],
16789
+ imports: [
16790
+ CommonModule,
16791
+ MatIconModule,
16792
+ MatChipsModule,
16793
+ SkeletonLoaderLibModule,
16794
+ SlidersLibModule,
16795
+ CardsModule,
16796
+ AvatarPhotoLibModule,
16797
+ SlidersNgContentLibModule,
16798
+ ScrollableItemModule
16799
+ ],
16800
+ exports: [UserContentRatingLibComponent],
16801
+ providers: [RatingService, UserContentRatingLibService],
16802
+ schemas: [CUSTOM_ELEMENTS_SCHEMA]
15618
16803
  },] }
15619
16804
  ];
15620
- /** @nocollapse */
15621
- ScrollableItemDirective.ctorParameters = function () { return [
15622
- { type: ElementRef }
15623
- ]; };
15624
- ScrollableItemDirective.propDecorators = {
15625
- key: [{ type: Input, args: ['sbUicScrollableItem',] }]
15626
- };
15627
- return ScrollableItemDirective;
16805
+ return UserContentRatingLibModule;
15628
16806
  }());
15629
- if (false) {
15630
- /** @type {?} */
15631
- ScrollableItemDirective.prototype.key;
15632
- /**
15633
- * @type {?}
15634
- * @private
15635
- */
15636
- ScrollableItemDirective.prototype.el;
15637
- }
15638
16807
 
15639
16808
  /**
15640
16809
  * @fileoverview added by tsickle
15641
16810
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
15642
16811
  */
15643
- /** @type {?} */
15644
- var API_END_POINTS$4 = {
15645
- TOP_REVIEWS: "/apis/proxies/v8/ratings/v1/topReviews"
15646
- };
15647
- var UserContentRatingLibService = /** @class */ (function () {
15648
- function UserContentRatingLibService(http) {
15649
- this.http = http;
16812
+ var MdoChannelV1Component = /** @class */ (function () {
16813
+ function MdoChannelV1Component() {
15650
16814
  }
15651
16815
  /**
15652
- * @param {?} doId
15653
16816
  * @return {?}
15654
16817
  */
15655
- UserContentRatingLibService.prototype.fetchTopReviews = /**
15656
- * @param {?} doId
16818
+ MdoChannelV1Component.prototype.ngOnInit = /**
15657
16819
  * @return {?}
15658
16820
  */
15659
- function (doId) {
15660
- return this.http.get(API_END_POINTS$4.TOP_REVIEWS + "/" + doId);
16821
+ function () {
15661
16822
  };
15662
- UserContentRatingLibService.decorators = [
15663
- { type: Injectable, args: [{
15664
- providedIn: 'root'
15665
- },] }
16823
+ MdoChannelV1Component.decorators = [
16824
+ { type: Component, args: [{
16825
+ selector: 'sb-uic-mdo-channel-v1',
16826
+ template: "<p>mdo-channel-v1 works!</p>\n",
16827
+ styles: [""]
16828
+ }] }
15666
16829
  ];
15667
16830
  /** @nocollapse */
15668
- UserContentRatingLibService.ctorParameters = function () { return [
15669
- { type: HttpClient }
15670
- ]; };
15671
- /** @nocollapse */ UserContentRatingLibService.ngInjectableDef = ɵɵdefineInjectable({ factory: function UserContentRatingLibService_Factory() { return new UserContentRatingLibService(ɵɵinject(HttpClient)); }, token: UserContentRatingLibService, providedIn: "root" });
15672
- return UserContentRatingLibService;
16831
+ MdoChannelV1Component.ctorParameters = function () { return []; };
16832
+ return MdoChannelV1Component;
15673
16833
  }());
15674
- if (false) {
15675
- /**
15676
- * @type {?}
15677
- * @private
15678
- */
15679
- UserContentRatingLibService.prototype.http;
15680
- }
15681
16834
 
15682
16835
  /**
15683
16836
  * @fileoverview added by tsickle
15684
16837
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
15685
16838
  */
15686
- var UserContentRatingLibComponent = /** @class */ (function () {
15687
- function UserContentRatingLibComponent(ratingService, userRatingSvc) {
15688
- this.ratingService = ratingService;
15689
- this.userRatingSvc = userRatingSvc;
15690
- this.currentIndex = 0;
15691
- this.providerId = '';
15692
- this.formData = '';
15693
- this.emptyResponse = new EventEmitter();
15694
- this.styleData = {};
15695
- this.contentdata = [];
16839
+ var MdoChannelV2Component = /** @class */ (function () {
16840
+ function MdoChannelV2Component(route, router, eventSvc, translate, langtranslations) {
16841
+ var _this = this;
16842
+ this.route = route;
16843
+ this.router = router;
16844
+ this.eventSvc = eventSvc;
16845
+ this.translate = translate;
16846
+ this.langtranslations = langtranslations;
16847
+ this.sectionList = [];
16848
+ this.channnelName = '';
16849
+ this.orgId = '';
16850
+ this.selectedIndex = 0;
16851
+ this.hideCompetencyBlock = false;
16852
+ this.contentTabEmptyResponseCount = 0;
16853
+ this.titles = [
16854
+ { title: 'Learn', url: '/page/learn', icon: 'school', disableTranslate: false },
16855
+ {
16856
+ title: "MDO Channel",
16857
+ url: "/app/learn/mdo-channels/all-channels",
16858
+ icon: '', disableTranslate: true,
16859
+ },
16860
+ ];
16861
+ this.showModal = false;
16862
+ this.descriptionMaxLength = 500;
16863
+ this.isTelemetryRaised = false;
16864
+ if (this.route.snapshot.data && this.route.snapshot.data.formData
16865
+ && this.route.snapshot.data.formData.data
16866
+ && this.route.snapshot.data.formData.data.result
16867
+ && this.route.snapshot.data.formData.data.result.form
16868
+ && this.route.snapshot.data.formData.data.result.form.data
16869
+ && this.route.snapshot.data.formData.data.result.form.data.sectionList) {
16870
+ this.sectionList = this.route.snapshot.data.formData.data.result.form.data.sectionList;
16871
+ }
16872
+ this.langtranslations.languageSelectedObservable.subscribe((/**
16873
+ * @return {?}
16874
+ */
16875
+ function () {
16876
+ if (localStorage.getItem('websiteLanguage')) {
16877
+ _this.translate.setDefaultLang('en');
16878
+ /** @type {?} */
16879
+ var lang = (/** @type {?} */ (localStorage.getItem('websiteLanguage')));
16880
+ _this.translate.use(lang);
16881
+ }
16882
+ }));
15696
16883
  }
15697
16884
  /**
15698
16885
  * @return {?}
15699
16886
  */
15700
- UserContentRatingLibComponent.prototype.ngOnInit = /**
16887
+ MdoChannelV2Component.prototype.ngOnInit = /**
16888
+ * @return {?}
16889
+ */
16890
+ function () {
16891
+ var _this = this;
16892
+ this.route.params.subscribe((/**
16893
+ * @param {?} params
16894
+ * @return {?}
16895
+ */
16896
+ function (params) {
16897
+ _this.channnelName = params['channel'];
16898
+ _this.orgId = params['orgId'];
16899
+ _this.titles.push({
16900
+ title: _this.channnelName, icon: '', url: 'none', disableTranslate: true,
16901
+ });
16902
+ }));
16903
+ };
16904
+ /**
16905
+ * @param {?} tabEvent
16906
+ * @return {?}
16907
+ */
16908
+ MdoChannelV2Component.prototype.tabClicked = /**
16909
+ * @param {?} tabEvent
16910
+ * @return {?}
16911
+ */
16912
+ function (tabEvent) {
16913
+ this.raiseTelemetry(tabEvent.tab.textLabel + " tab");
16914
+ };
16915
+ /**
16916
+ * @param {?} event
16917
+ * @param {?} contentStripData
16918
+ * @return {?}
16919
+ */
16920
+ MdoChannelV2Component.prototype.hideContentStrip = /**
16921
+ * @param {?} event
16922
+ * @param {?} contentStripData
16923
+ * @return {?}
16924
+ */
16925
+ function (event, contentStripData) {
16926
+ if (event) {
16927
+ contentStripData['hideSection'] = true;
16928
+ this.contentTabEmptyResponseCount = this.contentTabEmptyResponseCount + 1;
16929
+ // if(this.contentTabEmptyResponseCount === 4 ) {
16930
+ // this.selectedIndex = 1
16931
+ // }
16932
+ }
16933
+ };
16934
+ /**
16935
+ * @param {?} event
16936
+ * @return {?}
16937
+ */
16938
+ MdoChannelV2Component.prototype.triggerOpenDialog = /**
16939
+ * @param {?} event
15701
16940
  * @return {?}
15702
16941
  */
15703
- function () {
15704
- this.styleData = this.formData && this.formData.sliderData && this.formData.sliderData.styleData;
15705
- this.getTopReviews();
16942
+ function (event) {
16943
+ if (event) {
16944
+ this.showModal = true;
16945
+ document.body.style.overflow = 'hidden';
16946
+ }
16947
+ this.raiseTelemetry('btn open key annoucements');
15706
16948
  };
15707
16949
  /**
15708
16950
  * @return {?}
15709
16951
  */
15710
- UserContentRatingLibComponent.prototype.getTopReviews = /**
16952
+ MdoChannelV2Component.prototype.onClose = /**
15711
16953
  * @return {?}
15712
16954
  */
15713
16955
  function () {
15714
- var _this = this;
15715
- this.contentdata = [];
15716
- this.userRatingSvc.fetchTopReviews(this.providerId).subscribe((/**
15717
- * @param {?} response
15718
- * @return {?}
15719
- */
15720
- function (response) {
15721
- if (response && response.result && response.result.content.length) {
15722
- response.result.content.forEach((/**
15723
- * @param {?} contentEle
15724
- * @return {?}
15725
- */
15726
- function (contentEle) {
15727
- /** @type {?} */
15728
- var localData = {};
15729
- localData['content'] = contentEle.contentInfo;
15730
- localData['rating'] = contentEle.rating;
15731
- localData['review'] = contentEle.review;
15732
- localData['userDetails'] = contentEle.userDetails;
15733
- localData['cardSubType'] = "card-wide-lib";
15734
- localData['cardCustomeClass'] = "";
15735
- _this.contentdata.push(localData);
15736
- }));
15737
- }
15738
- else {
15739
- _this.emptyResponse.emit(true);
15740
- }
15741
- }), (/**
15742
- * @param {?} _error
15743
- * @return {?}
15744
- */
15745
- function (_error) {
15746
- _this.emptyResponse.emit(true);
15747
- }));
16956
+ this.showModal = false;
16957
+ document.body.style.overflow = 'auto';
16958
+ this.raiseTelemetry('btn close key annoucements');
15748
16959
  };
15749
16960
  /**
15750
- * @param {?} ratingIndex
15751
- * @param {?} avg
16961
+ * @param {?} event
15752
16962
  * @return {?}
15753
16963
  */
15754
- UserContentRatingLibComponent.prototype.getRatingIcon = /**
15755
- * @param {?} ratingIndex
15756
- * @param {?} avg
16964
+ MdoChannelV2Component.prototype.raiseTelemetryInteratEvent = /**
16965
+ * @param {?} event
15757
16966
  * @return {?}
15758
16967
  */
15759
- function (ratingIndex, avg) {
15760
- return this.ratingService.getRatingIcon(ratingIndex, avg);
16968
+ function (event) {
16969
+ if (event && event.viewMoreUrl) {
16970
+ this.raiseTelemetry(event.stripTitle + " " + event.viewMoreUrl.viewMoreText);
16971
+ }
16972
+ if (!this.isTelemetryRaised && event && !event.viewMoreUrl) {
16973
+ this.eventSvc.raiseInteractTelemetry({
16974
+ type: 'click',
16975
+ subType: 'mdo-channel',
16976
+ id: kebabCase(event.typeOfTelemetry.toLocaleLowerCase()) + "-card",
16977
+ }, {
16978
+ id: event.identifier,
16979
+ type: event.primaryCategory,
16980
+ }, {
16981
+ pageIdExt: kebabCase(event.primaryCategory.toLocaleLowerCase()) + "-card",
16982
+ module: WsEvents.EnumTelemetrymodules.LEARN,
16983
+ });
16984
+ this.isTelemetryRaised = true;
16985
+ }
15761
16986
  };
15762
16987
  /**
15763
- * @param {?} ratingIndex
15764
- * @param {?} avg
16988
+ * @param {?} name
15765
16989
  * @return {?}
15766
16990
  */
15767
- UserContentRatingLibComponent.prototype.getRatingIconClass = /**
15768
- * @param {?} ratingIndex
15769
- * @param {?} avg
16991
+ MdoChannelV2Component.prototype.raiseCompetencyTelemetry = /**
16992
+ * @param {?} name
15770
16993
  * @return {?}
15771
16994
  */
15772
- function (ratingIndex, avg) {
15773
- return this.ratingService.getRatingIconClass(ratingIndex, avg);
16995
+ function (name) {
16996
+ this.raiseTelemetry(name + " core expertise");
15774
16997
  };
15775
16998
  /**
15776
- * @param {?} indexValue
16999
+ * @param {?} name
15777
17000
  * @return {?}
15778
17001
  */
15779
- UserContentRatingLibComponent.prototype.getCurrentIndex = /**
15780
- * @param {?} indexValue
17002
+ MdoChannelV2Component.prototype.raiseTelemetry = /**
17003
+ * @param {?} name
15781
17004
  * @return {?}
15782
17005
  */
15783
- function (indexValue) {
15784
- this.currentIndex = indexValue;
15785
- this.handleScrollClick(indexValue);
17006
+ function (name) {
17007
+ this.eventSvc.raiseInteractTelemetry({
17008
+ type: 'click',
17009
+ subType: 'mdo-channel',
17010
+ id: "" + kebabCase(name).toLocaleLowerCase(),
17011
+ }, {}, {
17012
+ module: WsEvents.EnumTelemetrymodules.LEARN,
17013
+ });
15786
17014
  };
15787
17015
  /**
15788
- * @param {?} dataValue
17016
+ * @param {?} event
15789
17017
  * @return {?}
15790
17018
  */
15791
- UserContentRatingLibComponent.prototype.handleScrollClick = /**
15792
- * @param {?} dataValue
17019
+ MdoChannelV2Component.prototype.hideCompetency = /**
17020
+ * @param {?} event
15793
17021
  * @return {?}
15794
17022
  */
15795
- function (dataValue) {
15796
- /** @type {?} */
15797
- var item = this.scrollableItems.find((/**
15798
- * @param {?} x
15799
- * @return {?}
15800
- */
15801
- function (x) { return x.key === dataValue; }));
15802
- item.scrollIntoView("nearest");
17023
+ function (event) {
17024
+ if (event) {
17025
+ this.hideCompetencyBlock = true;
17026
+ }
15803
17027
  };
15804
- UserContentRatingLibComponent.decorators = [
17028
+ /**
17029
+ * @param {?} _stripData
17030
+ * @param {?} contentStrip
17031
+ * @return {?}
17032
+ */
17033
+ MdoChannelV2Component.prototype.showAllContent = /**
17034
+ * @param {?} _stripData
17035
+ * @param {?} contentStrip
17036
+ * @return {?}
17037
+ */
17038
+ function (_stripData, contentStrip) {
17039
+ if (contentStrip && contentStrip.strips && contentStrip.strips.length) {
17040
+ /** @type {?} */
17041
+ var stripData = contentStrip.strips[0];
17042
+ if (stripData && stripData.request) {
17043
+ delete (stripData['loaderWidgets']);
17044
+ this.router.navigate(["/app/learn/mdo-channels/" + this.channnelName + "/" + this.orgId + "/all-content"], { queryParams: { stripData: JSON.stringify(stripData) } });
17045
+ }
17046
+ }
17047
+ else {
17048
+ this.router.navigate(["/app/learn/browse-by/provider/" + this.channnelName + "/" + this.orgId + "/all-CBP"]);
17049
+ }
17050
+ };
17051
+ MdoChannelV2Component.decorators = [
15805
17052
  { type: Component, args: [{
15806
- selector: 'sb-uic-user-content-rating',
15807
- template: "<ng-container *ngIf=\"contentdata.length\">\n <sb-uic-sliders-ng-content [title]=\"'providerName'\" [currentIndex]=\"currentIndex\" (currentIndexValue)=\"getCurrentIndex($event)\" [loadNgContentData]=\"true\" [widgetData]=\"contentdata\" [styleData]=\"styleData\">\n <div sliderbody>\n <div class=\"flex justify-start md:justify-center users-block mb-4 \">\n <ng-container *ngFor=\"let userData of contentdata; let j = index\">\n <div class=\"avatar-block mr-1\" [sbUicScrollableItem]=\"j\"\n [ngClass]=\"{'user-active': j === currentIndex}\" (click)=\"handleScrollClick(currentIndex);currentIndex = j\">\n <sb-uic-avatar-photo [defaulfColor]=\"'#1B2133'\" [datalen]=\"1\" [randomColor]=\"true\" [name]=\"userData?.userDetails?.firstName\" [photoUrl]=\"userData?.userDetails?.profileImageUrl\" size=\"m-side-rating\">\n </sb-uic-avatar-photo>\n </div>\n </ng-container>\n </div>\n <div *ngFor=\"let ratingData of contentdata; let i = index\" [hidden]=\"i !== currentIndex\">\n <div class=\"user-ratting-wrapper flex flex-wrap justify-center\">\n <p class=\"userName w-full mb-4\">{{ratingData?.userDetails?.firstName}}</p>\n \n <div class=\"flex w-full flex-row justify-center gap-2 mb-4\">\n <mat-icon class=\"mat-icon material-icons rating-icon ws-mat-black16-text\"\n [ngClass]=\"{'ws-mat-orange-text': getRatingIconClass(rating, ratingData?.rating)}\"\n *ngFor=\"let rating of [1, 2, 3, 4, 5]\">\n {{ getRatingIcon(rating, ratingData?.rating) }}\n </mat-icon>\n </div>\n <p class=\"content-feedback w-full mb-4 pl-0 pr-0 md:pl-12 md:pr-12 \">{{ratingData?.review}}</p>\n \n <hr class=\"divider mb-4\">\n <p class=\"content-info w-full mb-4\">For The Content</p>\n <div class=\"w-full mr-0 md:mr-8 ml-0 md:ml-8\">\n <sb-uic-cards [widgetData]=\"ratingData\"></sb-uic-cards>\n </div>\n </div>\n </div>\n </div>\n </sb-uic-sliders-ng-content>\n</ng-container>\n\n",
15808
- styles: [".user-ratting-wrapper .userName{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:center}.user-ratting-wrapper .content-feedback{font-family:Lato;font-size:16px;font-weight:400;line-height:19.2px;text-align:center;color:rgba(0,0,0,.87)}.user-ratting-wrapper .content-info{font-family:Lato;font-size:14px;font-weight:700;line-height:16.8px;text-align:center;color:#666}.avatar-block{border:8px solid transparent;position:relative;cursor:pointer;width:48px;height:48px}.user-active{content:\"\";border:5px solid #f3972e;border-radius:50%;display:flex;justify-content:center;align-items:center;margin-bottom:0;width:48px;height:48px}.user-active::after{content:\" \";position:absolute;top:106%;left:50%;margin-left:-10px;border-left:10px solid transparent;border-right:10px solid transparent;border-top:18px solid #f3972e}.users-block{overflow-x:auto;padding:16px;padding-bottom:24px!important;width:100%}hr.divider{border:1px solid #f3972e;width:185px}"]
17053
+ selector: 'sb-uic-mdo-channel-v2',
17054
+ template: "<ws-widget-btn-page-back [widgetData]=\"{ url: 'home', titles: titles }\">\n</ws-widget-btn-page-back>\n\n<div class=\"container-fluid\" id=\"section-micro-sites\">\n <div class=\"flex flex-col flex-1\">\n <ng-container *ngIf=\"sectionList?.length\">\n <ng-container *ngFor=\"let section of sectionList\">\n <ng-container *ngIf=\"section?.enabled\">\n <section id=\"{{section?.key}}\" class=\"w-full grid grid-cols-12 gap-4\" [ngClass]=\"{'container': section.wrapperClass}\">\n <ng-container *ngFor=\"let column of section.column\">\n <div id=\"{{column?.key}}\" class=\"col-span-{{column.colspan || 12}} \">\n <ng-container *ngIf=\"column?.enabled\" [ngSwitch]=\"column?.key\">\n <ng-container *ngSwitchCase=\"'topSection'\" [ngTemplateOutlet]=\"topSection\"\n [ngTemplateOutletContext]=\"{data: column?.data}\"></ng-container>\n <ng-container *ngSwitchCase=\"'topLearners'\" [ngTemplateOutlet]=\"topLearners\"\n [ngTemplateOutletContext]=\"{data: column?.data}\"></ng-container>\n <ng-container *ngSwitchCase=\"'mainContent'\" [ngTemplateOutlet]=\"mainContent\"\n [ngTemplateOutletContext]=\"{data: column?.data}\"></ng-container>\n </ng-container>\n </div>\n </ng-container>\n </section>\n </ng-container>\n </ng-container>\n </ng-container>\n </div>\n</div>\n\n\n<ng-template #topSection let-data=\"data\">\n <!-- top section desktop layout -->\n <div class=\"hidden md:block\">\n <div class=\"web-banner-background\">\n <div class=\"flex sticky-logo-square\">\n </div>\n <div class=\"flex items-center justify-center\">\n <div class=\"container\">\n <div class=\"grid grid-cols-12 gap-4 padding-top-xxxl mb-10\">\n <div class=\"col-span-12 md:col-span-6\">\n <div class=\"flex-1 flex flex-col mr-4 ws-mat-black-text\">\n <div class=\"\">\n <div class=\"flex items-center logo-square \">\n <img alt=\"Application Logo\" class=\"logo-img\" [src]=\"data?.logo\">\n </div>\n <h1 class=\" txt-ellipsis-2 break-words pt-10\"\n [style.color]=\"data.titleColor\">{{data.title || channnelName}}</h1>\n <p class=\"mat-body-1\" [style.color]=\"data.descriptionColor\">\n {{data?.description | slice:0:descriptionMaxLength}}\n <span *ngIf=\"data?.description?.length > descriptionMaxLength\">...</span>\n </p>\n </div>\n </div>\n </div>\n <div class=\"col-span-12 md:col-span-6\">\n <div class=\"slider slider-box\" *ngIf=\"data.sliderData && data.sliderData.sliders\">\n <sb-uic-sliders [widgetData]=\"data.sliderData.sliders\" [styleData]=\"data.sliderData.styleData\" ></sb-uic-sliders>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n \n </div>\n <!-- top section m-site layout -->\n <div class=\"block md:hidden\">\n <div class=\"col-span-12\">\n <div class=\"slider slider-box\" *ngIf=\"data.sliderData && data.sliderData.sliders\">\n <sb-uic-sliders [widgetData]=\"data.sliderData.sliders\" [styleData]=\"data.sliderData.styleData\" ></sb-uic-sliders>\n </div>\n </div>\n <div class=\"container px-4 flex flex-col mob-container\">\n <div class=\"mr-4 logo-box-container\">\n <div class=\"flex logo-box-square top mr-4\">\n <img alt=\"Application Logo\" class=\"logo-img\" [src]=\"data?.logo\">\n </div>\n </div>\n <div class=\"w-full md:w-9/12 flex-1 flex flex-col\">\n <h1 class=\" txt-ellipsis-2 break-words\">{{data?.title || channnelName}}</h1>\n <p class=\"mat-body-2\">\n {{data?.description | slice:0:descriptionMaxLength}}\n <span *ngIf=\"data?.description?.length > descriptionMaxLength\">...</span>\n </p>\n </div>\n </div>\n </div>\n <div class=\"flex items-center justify-center\">\n <div class=\"container metrics-section\" >\n <div class=\"hidden md:block\">\n <div class=\"metrics\"\n [ngStyle]=\"{'background': data?.metrics?.background}\">\n <sb-uic-data-points\n [providerId]=\"orgId\"\n [fetchDataFromApi]=\"true\"\n [objectData]=\"data?.metrics?.data\"\n [layoutType]=\"'singleFlexeRow'\"\n [pageLayout]=\"'mdo'\">\n </sb-uic-data-points>\n </div>\n </div>\n <div class=\"block md:hidden pt-14 px-4\">\n <div class=\"mob-metrics mob-metrics-sec\">\n <sb-uic-data-points\n [providerId]=\"orgId\"\n [fetchDataFromApi]=\"true\"\n [objectData]=\"data?.metrics?.data\"\n [layoutType]=\"'singleRow'\"\n [pageLayout]=\"'mdo'\">\n </sb-uic-data-points>\n </div>\n \n </div>\n </div>\n </div>\n</ng-template>\n\n<ng-template #mainContent let-data=\"data\">\n <div class=\"flex items-center justify-center\" [ngStyle]=\"{'background': data.background}\">\n <div class=\"container\">\n <div class=\"block md:hidden col-span-12 padding-left-m padding-right-m padding-top-m padding-bottom-m\">\n <sb-uic-cbp-plan\n [layoutType]=\"'web'\"\n [mobileHeight]=\"false\"\n [fetchDataFromApi]=\"true\"\n [channelId]=\"orgId\"\n [objectData]=\"data?.cbpPlanSection?.data\">\n </sb-uic-cbp-plan>\n </div>\n <div class=\"block md:hidden col-span-12 mt-6\">\n <sb-uic-announcements\n [layoutType]=\"'mobile'\"\n (openDialog)=\"triggerOpenDialog($event)\"\n [objectData]=\"data?.announcementSection?.data\"\n [fetchDataFromApi]=\"false\"\n [channelId]=\"orgId\">\n </sb-uic-announcements>\n <div class=\"announcements-container\" *ngIf=\"showModal\">\n <div class=\"cursor-pointer close-share-dialog\">\n <mat-icon (click)=\"onClose()\" class=\"close-icon\">close</mat-icon>\n </div>\n <div class=\"share-modal px-3 pt-8\">\n <sb-uic-announcements\n [layoutType]=\"'web'\"\n (openDialog)=\"triggerOpenDialog($event)\"\n [objectData]=\"data?.announcementSection?.data\"\n [mobileHeight]=\"true\"\n [fetchDataFromApi]=\"true\"\n [channelId]=\"orgId\">\n </sb-uic-announcements>\n </div>\n </div>\n </div>\n <div class=\"grid grid-cols-12 gap-4 padding-top-m mb-6\">\n <div class=\"col-span-12 md:col-span-{{data.tabSection.colspan}}\">\n <!-- Tabs Section -->\n <mat-tab-group animationDuration=\"0ms\" class=\"mat-tab-labels mytabs w-full \"\n [selectedIndex]=\"selectedIndex\" (selectedTabChange)=\"selectedIndex = $event.index; tabClicked($event)\">\n <mat-tab label=\"Content\" >\n <ng-template mat-tab-label i18n>\n Learn\n </ng-template>\n <ng-container *ngIf=\"data.tabSection.contentTab.length === contentTabEmptyResponseCount\">\n <div class=\"flex justify-center w-full\">\n <div class=\"margin-xl text-center\" >\n <img src=\"/assets/common/error-pages/empty_search.svg\" wsUtilsImageResponsive alt=\"No results\"\n class=\"margin-top-l margin-bottom-s\">\n <h2 class=\"mat-h2\" i18n=\"search route no result\">{{'learnsearch.noResults' | translate}}</h2>\n </div>\n </div>\n </ng-container>\n <div class=\"padding-top-l \">\n <ng-container [ngTemplateOutlet]=\"columnSectionDisplay\"\n [ngTemplateOutletContext]=\"{data: data.tabSection.contentTab}\"></ng-container>\n </div>\n </mat-tab>\n <mat-tab label=\"Core Areas\">\n <ng-template mat-tab-label i18n>\n Competency\n </ng-template>\n <div>\n <ng-container [ngTemplateOutlet]=\"columnSectionDisplay\"\n [ngTemplateOutletContext]=\"{data: data.tabSection.coreAreasTab}\"></ng-container>\n </div>\n </mat-tab>\n </mat-tab-group>\n </div>\n <div class=\"col-span-12 md:col-span-4\">\n <div class=\"hidden md:block padding-top-xl padding-bottom-m\"\n *ngIf=\"data?.cbpPlanSection?.data\">\n <div class=\"pt-4\">\n <sb-uic-cbp-plan\n [layoutType]=\"'web'\"\n [mobileHeight]=\"false\"\n [fetchDataFromApi]=\"true\"\n [channelId]=\"orgId\"\n [objectData]=\"data?.cbpPlanSection?.data\">\n </sb-uic-cbp-plan>\n </div> \n </div>\n <div class=\"hidden md:block\" \n *ngIf=\"data?.announcementSection?.data\">\n <div class=\"pt-4\">\n <sb-uic-announcements\n [layoutType]=\"'web'\"\n [mobileHeight]=\"false\"\n [fetchDataFromApi]=\"true\"\n [channelId]=\"orgId\"\n [objectData]=\"data?.announcementSection?.data\">\n </sb-uic-announcements>\n </div> \n </div>\n </div> \n </div>\n </div>\n </div>\n</ng-template>\n<!-- \n<ng-template #announcement let-data=\"data\">\n <div class=\"flex items-center justify-center\" [ngStyle]=\"{'background': data.background}\">\n <div class=\"w-full\">\n Announcement Section -->\n <!-- <h1>Announcement</h1>\n </div>\n </div>\n</ng-template> -->\n\n\n<ng-template #columnSectionDisplay let-data=\"data\">\n <ng-container *ngIf=\"data?.length\">\n <ng-container *ngFor=\"let section of data\">\n <ng-container *ngIf=\"section?.enabled\">\n <section id=\"{{section?.key}}\" class=\"w-full grid grid-cols-12 gap-4\" [ngClass]=\"{'container': section.wrapperClass}\">\n <ng-container *ngFor=\"let column of section.column\">\n <div id=\"{{column?.key}}\" class=\"col-span-{{column.colspan || 12}} \">\n <ng-container *ngIf=\"column?.enabled\" [ngSwitch]=\"column?.key\">\n <ng-container *ngSwitchCase=\"'competency'\" [ngTemplateOutlet]=\"competency\"\n [ngTemplateOutletContext]=\"{competency: column}\"></ng-container>\n <ng-container *ngSwitchCase=\"'contentRecommendedProgramStrip'\" [ngTemplateOutlet]=\"contentStrip\"\n [ngTemplateOutletContext]=\"{contentStrip: column?.data}\"></ng-container>\n <ng-container *ngSwitchCase=\"'contentRecommendedCoursesStrip'\" [ngTemplateOutlet]=\"contentStrip\"\n [ngTemplateOutletContext]=\"{contentStrip: column?.data}\"></ng-container>\n <ng-container *ngSwitchCase=\"'contentFeaturedStrip'\" [ngTemplateOutlet]=\"contentStrip\"\n [ngTemplateOutletContext]=\"{contentStrip: column?.data}\"></ng-container>\n <ng-container *ngSwitchCase=\"'contentcertificationsOfWeekStrip'\" [ngTemplateOutlet]=\"contentStrip\"\n [ngTemplateOutletContext]=\"{contentStrip: column?.data}\"></ng-container>\n </ng-container>\n </div>\n </ng-container>\n </section>\n </ng-container>\n </ng-container>\n </ng-container>\n</ng-template>\n\n\n<!-- Start Competencies -->\n<ng-template #competency let-competency=\"competency\">\n <div class=\"padding-top-l padding-bottom-l relative\" [style.background]=\"competency?.background\" *ngIf=\"!hideCompetencyBlock;else noData\">\n <div class=\"w-full container-balanced\">\n <p class=\"mat-body-1\">This section shows the list of top competencies users in this MDO are learning, based on the courses they've completed and enrolled in.</p>\n <div class=\"pl-4 pr-4 md:pl-0 md:pr-0\">\n <sb-uic-competency-passbook-mdo\n [dynamicColor]=\"'#999999'\"\n [dynamicAlignPills]=\"'start'\"\n [cardDisplayCount]=\"2\"\n (emptyResponse)=\"hideCompetency($event)\"\n (temeletryResponse)=\"raiseCompetencyTelemetry($event)\"\n [objectData]=\"competency\"\n [providerId]=\"orgId\"\n >\n </sb-uic-competency-passbook-mdo>\n </div>\n </div>\n <!-- <img class=\"absolute comp-back-img\" src=\"assets/icons/microsite/competency.svg\" alt=\"\"> -->\n </div>\n</ng-template>\n<!-- End Competencies -->\n\n<ng-template #contentStrip let-contentStrip=\"contentStrip\">\n <ng-container *ngIf=\"!contentStrip?.hideSection\">\n <div class=\"flex mb-8\">\n <div class=\"w-full\">\n <sb-uic-content-strip-with-tabs\n [emitViewAll]=\"true\"\n (viewAllResponse)=\"showAllContent($event, contentStrip)\"\n (telemtryResponse)=\"raiseTelemetryInteratEvent($event)\"\n (emptyResponse)=\"hideContentStrip($event, contentStrip)\"\n [providerId]=\"orgId\"\n [widgetData]=\"contentStrip\"\n [channnelName]=\"channnelName\"\n >\n </sb-uic-content-strip-with-tabs>\n </div>\n </div>\n </ng-container>\n</ng-template>\n\n<ng-template #noData>\n <div class=\"flex justify-center w-full\">\n <div class=\"margin-xl text-center\" >\n <img src=\"/assets/common/error-pages/empty_search.svg\" wsUtilsImageResponsive alt=\"No results\"\n class=\"margin-top-l margin-bottom-s\">\n <h2 class=\"mat-h2\" i18n=\"search route no result\">{{'learnsearch.noResults' | translate}}</h2>\n </div>\n </div>\n</ng-template>\n\n<ng-template #topLearners let-data=\"data\">\n <div class=\"flex items-center justify-center\">\n <div class=\"container top-learners margin-bottom-l margin-top-l\">\n <sb-uic-top-learners\n [objectData]=\"data\"\n [channnelName]=\"channnelName\"\n [channelId]=\"orgId\">\n </sb-uic-top-learners>\n </div>\n </div>\n</ng-template>",
17055
+ styles: [".container-balanced{max-width:1202px;margin-left:auto!important;margin-right:auto!important}.container{max-width:1200px}.padding-top-xxxl{padding-top:47px}.banner-container{align-items:center;background:#eee;padding:16px;gap:2.5rem;justify-content:center}.web-banner-background{background-image:url(https://portal.karmayogiqa.nic.in/content-store/orgStore/0135071359030722569/1720698778795_MDO-channel-banner.png);background-size:cover;min-height:464px}.mob-container{background-image:url(https://portal.karmayogiqa.nic.in/content-store/orgStore/0135071359030722569/1720693634596_MDOChannel_RightGraphic%202.svg);background-position:right;background-repeat:no-repeat}.sticky-logo-square{position:absolute;top:215px;justify-content:end;width:20.5%;border-bottom-right-radius:12px;border-top-right-radius:12px;background:#fff;display:flex;padding:10px;justify-content:end;height:53px}.logo-square{width:112px;max-height:73px;border-radius:12px;background:#fff;display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}.logo-box-container{width:157px;position:relative;height:64px}.logo-box-square{height:99px;width:157px;background:#fff;border-radius:12px;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px 0 rgba(0,0,0,.06)}.logo-box-square .logo-img{max-width:122px}.logo-box-square.top{position:absolute;top:-54px}.logo-img{-o-object-fit:contain;object-fit:contain;max-height:52px;height:96px;z-index:10}.metrics{border:3px solid #fff;border-radius:10px;align-items:center}.mob-metrics{overflow:auto}.metrics-section{margin-top:-30px}.empty-div{height:15px}.mob-metrics-sec{padding-top:1rem}.announcements-container{position:fixed;height:calc(100vh - 67px);background:rgba(19,19,19,.6392156863);width:100vw;top:0;left:0;z-index:1000}.close-announcements-dialog{position:absolute;right:30px;top:30px}.close-icon{color:#fff;border-radius:15px;float:right;position:absolute;top:15px;right:15px}@media screen and (max-width:768px){.metrics-section{margin-top:0}.top-learners{padding-left:30px}}::ng-deep .mytabs .mat-tab-label.mat-tab-label-active.cdk-keyboard-focused:not(.mat-tab-disabled),::ng-deep .mytabs .mat-tab-label.mat-tab-label-active:not(.mat-tab-disabled){font-weight:700;color:#000;opacity:1}"]
15809
17056
  }] }
15810
17057
  ];
15811
17058
  /** @nocollapse */
15812
- UserContentRatingLibComponent.ctorParameters = function () { return [
15813
- { type: RatingService },
15814
- { type: UserContentRatingLibService }
17059
+ MdoChannelV2Component.ctorParameters = function () { return [
17060
+ { type: ActivatedRoute },
17061
+ { type: Router },
17062
+ { type: EventService },
17063
+ { type: TranslateService },
17064
+ { type: MultilingualTranslationsService$1 }
15815
17065
  ]; };
15816
- UserContentRatingLibComponent.propDecorators = {
15817
- providerId: [{ type: Input }],
15818
- formData: [{ type: Input }],
15819
- emptyResponse: [{ type: Output }],
15820
- scrollableItems: [{ type: ViewChildren, args: [ScrollableItemDirective,] }]
17066
+ MdoChannelV2Component.propDecorators = {
17067
+ sectionList: [{ type: Input }]
15821
17068
  };
15822
- return UserContentRatingLibComponent;
17069
+ return MdoChannelV2Component;
15823
17070
  }());
15824
17071
  if (false) {
15825
17072
  /** @type {?} */
15826
- UserContentRatingLibComponent.prototype.currentIndex;
17073
+ MdoChannelV2Component.prototype.sectionList;
15827
17074
  /** @type {?} */
15828
- UserContentRatingLibComponent.prototype.providerId;
17075
+ MdoChannelV2Component.prototype.channnelName;
15829
17076
  /** @type {?} */
15830
- UserContentRatingLibComponent.prototype.formData;
17077
+ MdoChannelV2Component.prototype.orgId;
15831
17078
  /** @type {?} */
15832
- UserContentRatingLibComponent.prototype.emptyResponse;
17079
+ MdoChannelV2Component.prototype.selectedIndex;
15833
17080
  /** @type {?} */
15834
- UserContentRatingLibComponent.prototype.styleData;
17081
+ MdoChannelV2Component.prototype.hideCompetencyBlock;
15835
17082
  /** @type {?} */
15836
- UserContentRatingLibComponent.prototype.contentdata;
17083
+ MdoChannelV2Component.prototype.contentTabEmptyResponseCount;
15837
17084
  /** @type {?} */
15838
- UserContentRatingLibComponent.prototype.scrollableItems;
17085
+ MdoChannelV2Component.prototype.titles;
15839
17086
  /** @type {?} */
15840
- UserContentRatingLibComponent.prototype.ratingService;
17087
+ MdoChannelV2Component.prototype.showModal;
15841
17088
  /** @type {?} */
15842
- UserContentRatingLibComponent.prototype.userRatingSvc;
17089
+ MdoChannelV2Component.prototype.descriptionMaxLength;
17090
+ /** @type {?} */
17091
+ MdoChannelV2Component.prototype.isTelemetryRaised;
17092
+ /**
17093
+ * @type {?}
17094
+ * @private
17095
+ */
17096
+ MdoChannelV2Component.prototype.route;
17097
+ /**
17098
+ * @type {?}
17099
+ * @private
17100
+ */
17101
+ MdoChannelV2Component.prototype.router;
17102
+ /**
17103
+ * @type {?}
17104
+ * @private
17105
+ */
17106
+ MdoChannelV2Component.prototype.eventSvc;
17107
+ /**
17108
+ * @type {?}
17109
+ * @private
17110
+ */
17111
+ MdoChannelV2Component.prototype.translate;
17112
+ /**
17113
+ * @type {?}
17114
+ * @private
17115
+ */
17116
+ MdoChannelV2Component.prototype.langtranslations;
15843
17117
  }
15844
17118
 
15845
17119
  /**
15846
17120
  * @fileoverview added by tsickle
15847
17121
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
15848
17122
  */
15849
- var SlidersNgContentLibComponent = /** @class */ (function (_super) {
15850
- __extends(SlidersNgContentLibComponent, _super);
15851
- function SlidersNgContentLibComponent(events, valueSvc) {
15852
- var _this = _super.call(this) || this;
15853
- _this.events = events;
15854
- _this.valueSvc = valueSvc;
15855
- _this.title = '';
15856
- _this.loadNgContentData = false;
15857
- _this.autoScroll = false;
15858
- _this.currentIndexValue = new EventEmitter();
15859
- _this.id = "banner_" + Math.random();
15860
- _this.defaultMenuSubscribe = null;
15861
- _this.isLtMedium$ = _this.valueSvc.isLtMedium$;
15862
- _this.currentIndex = 0;
15863
- _this.slideInterval = null;
15864
- _this.isMobile = false;
15865
- return _this;
17123
+ var ɵ0$7 = HttpLoaderFactory;
17124
+ var MDOChannelModule = /** @class */ (function () {
17125
+ function MDOChannelModule() {
17126
+ }
17127
+ MDOChannelModule.decorators = [
17128
+ { type: NgModule, args: [{
17129
+ declarations: [MdoChannelV1Component, MdoChannelV2Component],
17130
+ imports: [
17131
+ CommonModule,
17132
+ MatIconModule,
17133
+ MatChipsModule,
17134
+ SkeletonLoaderLibModule,
17135
+ AnnouncementsModule,
17136
+ TopLearnersModule,
17137
+ CbpPlanModule,
17138
+ CardsModule,
17139
+ CommonStripModule,
17140
+ CompetencyPassbookModule,
17141
+ CompetencyPassbookMdoModule,
17142
+ ContentStripWithTabsLibModule,
17143
+ DataPointsModule,
17144
+ SlidersLibModule,
17145
+ MatTabsModule,
17146
+ TranslateModule.forRoot({
17147
+ loader: {
17148
+ provide: TranslateLoader,
17149
+ useFactory: ɵ0$7,
17150
+ deps: [HttpClient],
17151
+ },
17152
+ }),
17153
+ ],
17154
+ exports: [MdoChannelV1Component, MdoChannelV2Component],
17155
+ providers: [
17156
+ CommonMethodsService
17157
+ ],
17158
+ schemas: [CUSTOM_ELEMENTS_SCHEMA]
17159
+ },] }
17160
+ ];
17161
+ return MDOChannelModule;
17162
+ }());
17163
+
17164
+ /**
17165
+ * @fileoverview added by tsickle
17166
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
17167
+ */
17168
+ var ProvidersV2Component = /** @class */ (function () {
17169
+ function ProvidersV2Component(route, router, datePipe, events) {
17170
+ this.route = route;
17171
+ this.router = router;
17172
+ this.datePipe = datePipe;
17173
+ this.events = events;
17174
+ this.sectionList = [];
17175
+ this.providerName = '';
17176
+ this.providerId = '';
17177
+ this.hideCompetencyBlock = false;
17178
+ this.titles = [
17179
+ { title: 'Learn', url: '/page/learn', icon: 'school', disableTranslate: false },
17180
+ { title: "All Providers",
17181
+ url: "/app/learn/browse-by/provider/all-providers",
17182
+ icon: '', disableTranslate: true,
17183
+ },
17184
+ ];
17185
+ this.descriptionMaxLength = 500;
17186
+ this.isTelemetryRaised = false;
15866
17187
  }
15867
17188
  /**
15868
17189
  * @return {?}
15869
17190
  */
15870
- SlidersNgContentLibComponent.prototype.ngOnInit = /**
17191
+ ProvidersV2Component.prototype.ngOnInit = /**
17192
+ * @return {?}
17193
+ */
17194
+ function () {
17195
+ var _this = this;
17196
+ if (this.route.snapshot.data && this.route.snapshot.data.formData
17197
+ && this.route.snapshot.data.formData.data
17198
+ && this.route.snapshot.data.formData.data.result
17199
+ && this.route.snapshot.data.formData.data.result.form
17200
+ && this.route.snapshot.data.formData.data.result.form.data
17201
+ && this.route.snapshot.data.formData.data.result.form.data.sectionList) {
17202
+ this.sectionList = this.route.snapshot.data.formData.data.result.form.data.sectionList;
17203
+ }
17204
+ this.route.params.subscribe((/**
17205
+ * @param {?} params
17206
+ * @return {?}
17207
+ */
17208
+ function (params) {
17209
+ _this.providerName = params['provider'];
17210
+ _this.providerId = params['orgId'];
17211
+ _this.titles.push({
17212
+ title: _this.providerName, icon: '', url: 'none', disableTranslate: true,
17213
+ });
17214
+ }));
17215
+ this.getNavitems();
17216
+ this.currentMonthAndYear = this.datePipe.transform(new Date(), 'MMMM y');
17217
+ };
17218
+ /**
17219
+ * @return {?}
17220
+ */
17221
+ ProvidersV2Component.prototype.getNavitems = /**
17222
+ * @return {?}
17223
+ */
17224
+ function () {
17225
+ this.navList = this.sectionList.filter((/**
17226
+ * @param {?} obj
17227
+ * @return {?}
17228
+ */
17229
+ function (obj) { return obj.enabled && obj.navigation && obj.navOrder; })).sort((/**
17230
+ * @param {?} a
17231
+ * @param {?} b
17232
+ * @return {?}
17233
+ */
17234
+ function (a, b) { return a.navOrder - b.navOrder; }));
17235
+ };
17236
+ /**
17237
+ * @param {?} name
17238
+ * @return {?}
17239
+ */
17240
+ ProvidersV2Component.prototype.scrollToSection = /**
17241
+ * @param {?} name
17242
+ * @return {?}
17243
+ */
17244
+ function (name) {
17245
+ /** @type {?} */
17246
+ var section;
17247
+ section = document.getElementById(name);
17248
+ if (section) {
17249
+ // section.scrollIntoView({ behavior: 'smooth', block: 'start',inline: 'nearest', offsetTop: yOffset })
17250
+ window.scrollTo({
17251
+ top: section.offsetTop - 121,
17252
+ behavior: 'smooth',
17253
+ });
17254
+ }
17255
+ };
17256
+ /**
17257
+ * @param {?} event
17258
+ * @param {?} columnData
17259
+ * @return {?}
17260
+ */
17261
+ ProvidersV2Component.prototype.hideCompetency = /**
17262
+ * @param {?} event
17263
+ * @param {?} columnData
17264
+ * @return {?}
17265
+ */
17266
+ function (event, columnData) {
17267
+ if (event) {
17268
+ this.hideCompetencyBlock = true;
17269
+ columnData['navigation'] = false;
17270
+ columnData['enabled'] = false;
17271
+ this.navList.forEach((/**
17272
+ * @param {?} navItem
17273
+ * @return {?}
17274
+ */
17275
+ function (navItem) {
17276
+ navItem.column.forEach((/**
17277
+ * @param {?} colEle
17278
+ * @return {?}
17279
+ */
17280
+ function (colEle) {
17281
+ if (colEle.key === columnData.key) {
17282
+ navItem['navigation'] = false;
17283
+ }
17284
+ }));
17285
+ }));
17286
+ }
17287
+ };
17288
+ /**
17289
+ * @param {?} event
17290
+ * @param {?} contentStripData
17291
+ * @return {?}
17292
+ */
17293
+ ProvidersV2Component.prototype.hideContentStrip = /**
17294
+ * @param {?} event
17295
+ * @param {?} contentStripData
15871
17296
  * @return {?}
15872
17297
  */
15873
- function () {
15874
- var _this = this;
15875
- if (this.autoScroll) {
15876
- this.reInitiateSlideInterval();
17298
+ function (event, contentStripData) {
17299
+ if (event) {
17300
+ contentStripData['hideSection'] = true;
15877
17301
  }
15878
- this.defaultMenuSubscribe = this.isLtMedium$.subscribe((/**
15879
- * @param {?} isLtMedium
15880
- * @return {?}
15881
- */
15882
- function (isLtMedium) {
15883
- _this.isMobile = isLtMedium;
15884
- }));
15885
17302
  };
15886
17303
  /**
17304
+ * @param {?} event
17305
+ * @param {?} learnerReview
15887
17306
  * @return {?}
15888
17307
  */
15889
- SlidersNgContentLibComponent.prototype.reInitiateSlideInterval = /**
17308
+ ProvidersV2Component.prototype.hideLearnerReview = /**
17309
+ * @param {?} event
17310
+ * @param {?} learnerReview
15890
17311
  * @return {?}
15891
17312
  */
15892
- function () {
15893
- var _this = this;
15894
- if (this.widgetData && this.widgetData.length > 1) {
15895
- try {
15896
- if (this.slideInterval) {
15897
- this.slideInterval.unsubscribe();
15898
- }
15899
- }
15900
- catch (e) {
15901
- }
15902
- finally {
15903
- this.slideInterval = interval(8000).subscribe((/**
15904
- * @return {?}
15905
- */
15906
- function () {
15907
- if (_this.currentIndex === _this.widgetData.length - 1) {
15908
- _this.currentIndex = 0;
15909
- _this.currentIndexValue.emit(_this.currentIndex);
15910
- }
15911
- else {
15912
- _this.currentIndex += 1;
15913
- _this.currentIndexValue.emit(_this.currentIndex);
15914
- }
15915
- }));
15916
- }
17313
+ function (event, learnerReview) {
17314
+ if (event) {
17315
+ learnerReview['hideSection'] = true;
15917
17316
  }
15918
17317
  };
15919
17318
  /**
15920
- * @param {?} index
17319
+ * @param {?} _stripData
17320
+ * @param {?} contentStrip
15921
17321
  * @return {?}
15922
17322
  */
15923
- SlidersNgContentLibComponent.prototype.slideTo = /**
15924
- * @param {?} index
17323
+ ProvidersV2Component.prototype.showAllContent = /**
17324
+ * @param {?} _stripData
17325
+ * @param {?} contentStrip
15925
17326
  * @return {?}
15926
17327
  */
15927
- function (index) {
15928
- if (index >= 0 && index < this.widgetData.length) {
15929
- this.currentIndex = index;
15930
- this.currentIndexValue.emit(this.currentIndex);
15931
- }
15932
- else if (index === this.widgetData.length) {
15933
- this.currentIndex = 0;
15934
- this.currentIndexValue.emit(this.currentIndex);
17328
+ function (_stripData, contentStrip) {
17329
+ if (contentStrip && contentStrip.strips && contentStrip.strips.length) {
17330
+ /** @type {?} */
17331
+ var stripData = contentStrip.strips[0];
17332
+ if (stripData && stripData.request) {
17333
+ delete (stripData['loaderWidgets']);
17334
+ this.router.navigate(["/app/learn/browse-by/provider/" + this.providerName + "/" + this.providerId + "/all-content"], { queryParams: { stripData: JSON.stringify(stripData), pageDetails: true } });
17335
+ }
15935
17336
  }
15936
17337
  else {
15937
- this.currentIndex = this.widgetData.length + index;
15938
- this.currentIndexValue.emit(this.currentIndex);
15939
- }
15940
- if (this.autoScroll) {
15941
- this.reInitiateSlideInterval();
17338
+ this.router.navigate(["/app/learn/browse-by/provider/" + this.providerName + "/" + this.providerId + "/all-CBP"], { queryParams: { pageDetails: true } });
15942
17339
  }
15943
17340
  };
15944
- Object.defineProperty(SlidersNgContentLibComponent.prototype, "isOpenInNewTab", {
15945
- get: /**
15946
- * @return {?}
15947
- */
15948
- function () {
15949
- /** @type {?} */
15950
- var currentData = this.widgetData[this.currentIndex];
15951
- if (currentData.redirectUrl && currentData.redirectUrl.includes('mailto') || this.widgetData[this.currentIndex].openInNewTab) {
15952
- return true;
15953
- }
15954
- return false;
15955
- },
15956
- enumerable: true,
15957
- configurable: true
15958
- });
15959
17341
  /**
17342
+ * @param {?} event
15960
17343
  * @return {?}
15961
17344
  */
15962
- SlidersNgContentLibComponent.prototype.openInNewTab = /**
17345
+ ProvidersV2Component.prototype.raiseTelemetryInteratEvent = /**
17346
+ * @param {?} event
15963
17347
  * @return {?}
15964
17348
  */
15965
- function () {
15966
- /** @type {?} */
15967
- var currentData = this.widgetData[this.currentIndex];
15968
- if (currentData.redirectUrl && currentData.redirectUrl.includes('mailto') || this.widgetData[this.currentIndex].openInNewTab) {
15969
- window.open(currentData.redirectUrl);
17349
+ function (event) {
17350
+ if (event && event.viewMoreUrl) {
17351
+ this.raiseTelemetry(event.stripTitle + " " + event.viewMoreUrl.viewMoreText);
17352
+ }
17353
+ if (!this.isTelemetryRaised && event && !event.viewMoreUrl) {
17354
+ this.events.raiseInteractTelemetry({
17355
+ type: 'click',
17356
+ subType: 'ATI/CTI',
17357
+ id: kebabCase(event.typeOfTelemetry.toLocaleLowerCase()) + "-card",
17358
+ }, {
17359
+ id: event.identifier,
17360
+ type: event.primaryCategory,
17361
+ }, {
17362
+ pageIdExt: kebabCase(event.primaryCategory.toLocaleLowerCase()) + "-card",
17363
+ module: WsEvents.EnumTelemetrymodules.LEARN,
17364
+ });
17365
+ this.isTelemetryRaised = true;
15970
17366
  }
15971
17367
  };
15972
17368
  /**
15973
- * @param {?} bannerUrl
17369
+ * @param {?} name
15974
17370
  * @return {?}
15975
17371
  */
15976
- SlidersNgContentLibComponent.prototype.raiseTelemetry = /**
15977
- * @param {?} bannerUrl
17372
+ ProvidersV2Component.prototype.raiseCompetencyTelemetry = /**
17373
+ * @param {?} name
15978
17374
  * @return {?}
15979
17375
  */
15980
- function (bannerUrl) {
15981
- this.openInNewTab();
15982
- /** @type {?} */
15983
- var path = window.location.pathname.replace('/', '');
15984
- /** @type {?} */
15985
- var url = path + window.location.search;
17376
+ function (name) {
17377
+ this.raiseTelemetry(name + " core expertise");
17378
+ };
17379
+ /**
17380
+ * @param {?} name
17381
+ * @return {?}
17382
+ */
17383
+ ProvidersV2Component.prototype.raiseTelemetry = /**
17384
+ * @param {?} name
17385
+ * @return {?}
17386
+ */
17387
+ function (name) {
15986
17388
  this.events.raiseInteractTelemetry({
15987
17389
  type: 'click',
15988
- subType: 'banner',
15989
- }, {
15990
- pageUrl: url,
15991
- bannerRedirectUrl: bannerUrl,
15992
- }, {
15993
- pageIdExt: 'banner',
15994
- module: WsEvents.EnumTelemetrymodules.CONTENT,
17390
+ subType: 'ATI/CTI',
17391
+ id: "" + kebabCase(name).toLocaleLowerCase(),
17392
+ }, {}, {
17393
+ module: WsEvents.EnumTelemetrymodules.LEARN,
15995
17394
  });
15996
17395
  };
15997
17396
  /**
17397
+ * @param {?} name
15998
17398
  * @return {?}
15999
17399
  */
16000
- SlidersNgContentLibComponent.prototype.ngOnDestroy = /**
17400
+ ProvidersV2Component.prototype.raiseNavTelemetry = /**
17401
+ * @param {?} name
16001
17402
  * @return {?}
16002
17403
  */
16003
- function () {
16004
- if (this.defaultMenuSubscribe) {
16005
- this.defaultMenuSubscribe.unsubscribe();
16006
- }
17404
+ function (name) {
17405
+ this.events.raiseInteractTelemetry({
17406
+ type: 'click',
17407
+ subType: 'ATI/CTI',
17408
+ id: kebabCase(name).toLocaleLowerCase() + "-navigation",
17409
+ }, {}, {
17410
+ module: WsEvents.EnumTelemetrymodules.LEARN,
17411
+ });
16007
17412
  };
16008
- SlidersNgContentLibComponent.decorators = [
17413
+ ProvidersV2Component.decorators = [
16009
17414
  { type: Component, args: [{
16010
- selector: 'sb-uic-sliders-ng-content',
16011
- template: "<div class=\"banner-container {{isMobile? styleData?.responsive?.bannerMetaClass : styleData?.bannerMetaClass}}\" (swipeleft)=\"slideTo(currentIndex + 1)\" (swiperight)=\"slideTo(currentIndex - 1)\"\n *ngIf=\"widgetData?.length > 1\" [style.height]=\"isMobile? styleData?.responsive?.customHeight : styleData?.customHeight\"\n [ngStyle]=\"{'border-radius': styleData?.borderRadius || '12px'}\">\n <ng-container *ngIf=\"!loadNgContentData\">\n <a (click)=\"raiseTelemetry(widgetData[currentIndex].redirectUrl)\"\n [routerLink]=\" !isOpenInNewTab && widgetData[currentIndex].redirectUrl? widgetData[currentIndex].redirectUrl : null\" class=\"banner-overlay\"\n [ngClass]=\"{'cursor-auto': !widgetData[currentIndex].redirectUrl}\">\n <div class=\"banner WidgetInstanceId\" *ngFor=\"let slide of widgetData; let i = index\" [hidden]=\"i !== currentIndex\">\n <img i18n-alt alt=\"Page Banner\" [src]=\"slide.banners\" wsUtilsImageResponsive class=\"banner-image\" />\n </div>\n </a>\n <ng-container *ngIf=\"isMobile && styleData?.responsive?.dots !== 'hidden' || !isMobile && styleData?.dots !== 'hidden'\">\n <div class=\"banner-meta {{isMobile? styleData?.responsive?.bannerMetaAlign : styleData?.bannerMetaAlign}}\">\n <a [routerLink]=\" !isOpenInNewTab && widgetData[currentIndex].redirectUrl? widgetData[currentIndex].redirectUrl : null\" class=\"banner-title text-truncate\"\n *ngIf=\"widgetData[currentIndex].title\" [title]=\"widgetData[currentIndex].title\">\n {{ widgetData[currentIndex].title }}\n </a>\n <div class=\"dots-container\" *ngIf=\"widgetData?.length > 1\">\n <span class=\"dot\" [ngClass]=\"{ active: j === currentIndex }\" *ngFor=\"let slide of widgetData; let j = index\"\n (click)=\"slideTo(j)\"></span>\n </div>\n </div>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"loadNgContentData\">\n <!-- <div class=\"banner WidgetInstanceId\" *ngFor=\"let slide of widgetData; let i = index\" [hidden]=\"i !== currentIndex\"> -->\n <ng-content select=\"[sliderbody]\"></ng-content>\n <!-- </div> -->\n <ng-container *ngIf=\"isMobile && styleData?.responsive?.dots !== 'hidden' || !isMobile && styleData?.dots !== 'hidden'\">\n <div class=\"banner-meta {{isMobile? styleData?.responsive?.bannerMetaAlign : styleData?.bannerMetaAlign}}\">\n <a [routerLink]=\" !isOpenInNewTab && widgetData[currentIndex].redirectUrl? widgetData[currentIndex].redirectUrl : null\" class=\"banner-title text-truncate\"\n *ngIf=\"widgetData[currentIndex].title\" [title]=\"widgetData[currentIndex].title\">\n {{ widgetData[currentIndex].title }}\n </a>\n <div class=\"dots-container\" *ngIf=\"widgetData?.length > 1\">\n <span class=\"dot\" [ngClass]=\"{ active: j === currentIndex }\" *ngFor=\"let slide of widgetData; let j = index\"\n (click)=\"slideTo(j)\"></span>\n <ng-content select=\"[sliderMeta]\"></ng-content>\n </div>\n </div>\n </ng-container>\n </ng-container>\n <div class=\"navigation {{isMobile? styleData?.responsive?.arrowsPlacement : styleData?.arrowsPlacement}}\" \n *ngIf=\"isMobile && styleData?.responsive?.navigationArrows !== 'hidden' || !isMobile && styleData?.navigationArrows !== 'hidden'\">\n <a *ngIf=\"widgetData?.length > 1\" role=\"button\" class=\"prev\" (click)=\"slideTo(currentIndex - 1)\">&#10094;</a>\n <a *ngIf=\"widgetData?.length > 1\" role=\"button\" class=\"next\" (click)=\"slideTo(currentIndex + 1)\">&#10095;</a>\n </div>\n</div>\n<div class=\"banner-container-solo margin-top-s\" *ngIf=\"widgetData?.length == 1\">\n <img i18n-alt alt=\"Page Banner\" width=\"100%\" height=\"100%\" [src]=\"widgetData[0].banners\" wsUtilsImageResponsive class=\"banner-image-solo\" />\n</div>\n\n<!-- <ng-container *ngIf=\"!widgetData?.length\">\n <div class=\"slider default-slider h-full\">\n <div class=\"relative h-full\">\n <img class=\"h-full\" src=\"assets/icons/home/default-slider-image.svg\" alt=\"\">\n <div class=\"default-title rounded-full\">\n <p class=\"mat-h1\">{{title}}</p>\n </div>\n </div>\n </div>\n</ng-container> -->\n",
16012
- styles: [".banner-container{min-height:243px;position:relative;margin:auto;padding-bottom:40px}.banner-container.inline-meta{padding-bottom:0!important}.banner-container.flat .banner .banner-image{border-radius:0!important}.banner-overlay{z-index:1;top:0;left:0;width:100%;height:100%;background:linear-gradient(to left,rgba(0,0,0,.25) 0,rgba(0,0,0,0) 15%,rgba(0,0,0,0) 85%,rgba(0,0,0,.25) 100%);border-radius:inherit}.banner{-webkit-animation-name:fade;-webkit-animation-duration:1.5s;animation-name:fade;animation-duration:1.5s;border-radius:inherit;height:inherit}.banner .banner-image{width:100%;min-height:243px;display:block;border-radius:inherit;height:inherit}.banner-meta{text-align:center;z-index:2;padding:8px 12px;position:absolute;bottom:0;left:50%;border-radius:12px;transform:translateX(-50%);box-sizing:border-box}.banner-meta.left{left:0;transform:translateX(0)}.banner-meta.right{left:100%;transform:translateX(-100%)}.banner-meta.top-center{left:0;bottom:100%;transform:translateX(-100%)}.banner-meta .banner-title{color:#f2f2f2;margin-bottom:8px;font-size:1.1rem}@media only screen and (max-width:599px){.banner-meta .banner-title{display:none}}.banner-meta .dots-container{padding:8px;display:flex;align-items:center;justify-content:center}.banner-meta .dots-container .dot{cursor:pointer;height:6px;width:6px;margin:0 4px;background-color:rgba(0,0,0,.4);border-radius:50%;display:inline-block;transition:background-color .5s!important}@media only screen and (max-width:599px){.banner-meta .dots-container .dot{height:8px;width:8px;margin:0 4px}}.banner-meta .dots-container .dot.active{border-radius:4px;background-color:#f3962f;width:16px}@keyframes fade{from{opacity:.25}to{opacity:1}}.next,.prev{cursor:pointer;position:absolute;top:50%;transform:translateY(-50%);color:#fff;font-weight:700;background-color:#1b2133!important;border-radius:50%;z-index:999;height:32px!important;width:32px!important;display:flex;align-items:center;margin-top:-16px;justify-content:center}.prev{left:0;margin-left:-16px}.next{right:0;margin-right:-16px}.navigation.bottom-right .prev{left:unset;right:45px;bottom:-15px;top:unset}.navigation.bottom-right .next{left:unset;right:15px;bottom:-15px;top:unset}.navigation.bottom-center .prev{left:calc(50% - 20px);right:unset;bottom:-15px;top:unset}.navigation.bottom-center .next{left:calc(50% + 20px);right:unset;bottom:-15px;top:unset}.navigation.bottom-left .prev{left:15px;right:unset;bottom:-15px;top:unset}.navigation.bottom-left .next{left:60px;right:unset;bottom:-15px;top:unset}.navigation.middle-inline .prev{left:30px}.navigation.middle-inline .next{right:30px}.banner-container-solo{overflow:hidden;margin:auto;border-radius:12px}.banner-image-solo{width:100%;display:block;border-radius:12px}.default-slider{height:100%;background:#d4e2fb}.default-slider .default-title{text-align:center;position:absolute;top:50%;left:0;right:0;margin:auto;transform:translateY(-50%);z-index:999;background:#e6efff;padding:32px;width:500px}.default-slider .default-title p{word-break:break-word;margin:0!important;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;text-transform:uppercase}@media screen and (max-width:768px){.default-slider{height:384px;width:100%}.default-slider .default-title{width:unset!important}}"]
17415
+ selector: 'sb-uic-providers-v2',
17416
+ template: "<ws-widget-btn-page-back [widgetData]=\"{ url: 'home', titles: titles }\">\n</ws-widget-btn-page-back>\n<div class=\"container-fluid\" id=\"section-micro-sites\">\n <div class=\"flex flex-col flex-1\">\n <ng-container *ngIf=\"sectionList?.length\">\n <ng-container *ngFor=\"let section of sectionList\">\n <ng-container *ngIf=\"section?.enabled\">\n <section id=\"{{section?.key}}\" class=\"w-full grid grid-cols-12 gap-4\">\n <ng-container *ngFor=\"let column of section.column\">\n <div id=\"{{column?.key}}\" class=\"col-span-{{column.colspan || 12}} \">\n <ng-container *ngIf=\"column?.enabled\" [ngSwitch]=\"column?.key\">\n <ng-container *ngSwitchCase=\"'topSection'\" [ngTemplateOutlet]=\"topSection\"\n [ngTemplateOutletContext]=\"{data: column?.data}\"></ng-container>\n <ng-container *ngSwitchCase=\"'trainingCalendar'\" [ngTemplateOutlet]=\"trainingCalendar\"\n [ngTemplateOutletContext]=\"{trainingCalendar: column.data}\"></ng-container>\n <ng-container *ngSwitchCase=\"'contributors'\" [ngTemplateOutlet]=\"contributors\"\n [ngTemplateOutletContext]=\"{data: column?.data}\"></ng-container>\n <ng-container *ngSwitchCase=\"'infra'\" [ngTemplateOutlet]=\"infra\"\n [ngTemplateOutletContext]=\"{infra: column?.data}\"></ng-container>\n <ng-container *ngSwitchCase=\"'contentFeaturedStrip'\" [ngTemplateOutlet]=\"contentStrip\"\n [ngTemplateOutletContext]=\"{contentStrip: column?.data}\"></ng-container>\n <ng-container *ngSwitchCase=\"'contentTopStrip'\" [ngTemplateOutlet]=\"contentStrip\"\n [ngTemplateOutletContext]=\"{contentStrip: column?.data}\"></ng-container> \n <ng-container *ngSwitchCase=\"'competency'\" [ngTemplateOutlet]=\"competency\"\n [ngTemplateOutletContext]=\"{competency: column}\"></ng-container> \n <ng-container *ngSwitchCase=\"'learnerReview'\" [ngTemplateOutlet]=\"learnerReviewBlock\"\n [ngTemplateOutletContext]=\"{data: column?.data}\"></ng-container> \n </ng-container>\n </div>\n </ng-container>\n </section>\n </ng-container>\n </ng-container>\n </ng-container>\n </div>\n</div>\n<div class=\"container-fluid\" *ngIf=\"navList?.length\">\n <div class=\"flex sticky-navigator gap-4\">\n <mat-icon class=\"nav-up-arrow cursor-pointer\" (click)=\"scrollToSection('section-micro-sites')\">arrow_upwards</mat-icon>\n <ng-container *ngFor=\"let section of navList\">\n <ng-container *ngIf=\"section.navigation\">\n <div class=\"nav-button\" (click)=\"scrollToSection(section?.key); raiseNavTelemetry(section?.title)\">{{section?.title}}</div>\n </ng-container>\n </ng-container>\n </div>\n\n</div>\n\n\n<ng-template #topSection let-data=\"data\">\n <!-- <div class=\"w-full grid grid-cols-12 gap-4\"> -->\n <div class=\"col-span-12 \">\n <div class=\"grid grid-cols-12\">\n <div class=\"col-span-12 md:col-span-8\">\n <div class=\"slider h-full\" *ngIf=\"data?.sliderData?.sliders\">\n <sb-uic-sliders [title]=\"providerName\" [widgetData]=\"data?.sliderData?.sliders\" [styleData]=\"data?.sliderData?.styleData\"></sb-uic-sliders>\n </div>\n </div>\n <div class=\"hidden md:block col-span-4 p-5\" style=\"background: #0754AC;\" >\n <sb-uic-data-points [providerId]=\"providerId\" [fetchDataFromApi]=\"true\" [objectData]=\"data?.metrics?.data\" [layoutType]=\"'multipleRows-V2'\"></sb-uic-data-points>\n </div>\n </div>\n </div>\n <div class=\"col-span-12 title-section px-5 md:py-5 mob-container\">\n <div class=\"container flex flex-col md:flex-row\">\n <div class=\"mr-4 logo-box-container\">\n <div class=\"flex logo-box-rounded top mr-4\">\n <img alt=\"Application Logo\" class=\"logo-img\" [src]=\"data?.logo\">\n </div>\n </div>\n <div class=\"w-full md:w-9/12 flex-1 flex flex-col\">\n <h1 class=\" txt-ellipsis-2 break-words\">{{data?.title || providerName}}</h1>\n <p>{{data?.description | slice:0:descriptionMaxLength}}\n <span *ngIf=\"data?.description?.length > descriptionMaxLength\">...</span>\n </p>\n <div class=\"block md:hidden overflow-y-auto mb-3\">\n <sb-uic-data-points [providerId]=\"providerId\" [fetchDataFromApi]=\"true\" [objectData]=\"data?.metrics?.data\" [layoutType]=\"'singleRow-v2'\"></sb-uic-data-points>\n </div>\n <button\n (click)=\"raiseTelemetry(data?.contentButton?.title)\"\n [routerLink]=\"[data?.contentButton?.redirectUrl, providerName, providerId, 'all-CBP']\"\n [queryParams]=\"{pageDetails: true}\" mat-button type=\"button\"\n class=\"view-btn margin-left-xs margin-right-xs small-button blue-border flex-auto-display\">\n <span class=\"mat-heading-1 bold ws-mat-default-text\" i18n>\n {{data?.contentButton?.title}}\n </span>\n </button>\n </div>\n </div>\n </div>\n <!-- </div> -->\n</ng-template>\n\n<ng-template #contentStrip let-contentStrip=\"contentStrip\">\n <ng-container *ngIf=\"!contentStrip?.hideSection\">\n <div class=\"flex justify-center relative mt-8 mb-8\">\n <img class=\"absolute {{contentStrip?.sectionImagePosition}}\" src=\"{{contentStrip?.sectionImage}}\" alt=\"\">\n <div class=\"container \">\n <div class=\"w-full\">\n <sb-uic-content-strip-with-tabs\n [emitViewAll]=\"true\"\n (viewAllResponse)=\"showAllContent($event,contentStrip)\"\n (emptyResponse)=\"hideContentStrip($event, contentStrip)\"\n (telemtryResponse)=\"raiseTelemetryInteratEvent($event)\"\n [providerId]=\"providerId\"\n [widgetData]=\"contentStrip\">\n </sb-uic-content-strip-with-tabs>\n </div>\n </div>\n </div>\n </ng-container>\n</ng-template>\n\n<ng-template #contributors let-data=\"data\">\n <div class=\"contributors-background px-5 py-5\" [style.background]=\"data?.background\">\n <div class=\"container\">\n <div class=\"grid grid-cols-12 gap-4 padding-top-l mb-6\">\n <div class=\"col-span-12 md:col-span-3 contributor-desc\">\n <div class=\"infra-box flex flex-col\">\n <div class=\"infra-title-v2 hidden md:block\">\n {{data.detaulTitle}}<span class=\"infra-title2-v2\">{{data.defaultTitle1}}</span>\n </div>\n <div class=\"infra-title-v2 hidden md:block\">\n {{data.myTitle}}<span class=\"infra-title2-v2\">{{data.myTitle1}}</span>\n </div>\n <div class=\"block md:hidden\">\n <span class=\"infra-title-v2\">{{data.detaulTitle}}</span>\n <span class=\"infra-title2-v2\">{{data.defaultTitle1}}</span>\n <span class=\"infra-title-v2\"> {{data.myTitle}}</span>\n <span class=\"infra-title2-v2\">{{data.myTitle1}}</span>\n </div>\n <div class=\"infra-description padding-top-s\">\n {{data.description}}\n </div>\n </div>\n </div>\n <div class=\"col-span-12 md:col-span-9\">\n <sb-uic-common-strip [widgetData]=\"data\"></sb-uic-common-strip>\n </div>\n </div>\n <div class=\"w-full section-divider pt-6\">\n </div>\n </div>\n </div>\n</ng-template>\n\n<ng-template #infra let-infra=\"infra\">\n <div class=\"infra-background px-5\" [style.background]=\"infra?.background\">\n <div class=\"container\">\n <div class=\"grid grid-cols-12 gap-4 infra-sec padding-top-l\">\n <div class=\"col-span-12 md:col-span-4 infra-sec-desc\">\n <div class=\"infra-box flex flex-col\">\n <div class=\"infra-title2 hidden md:block\">\n {{infra?.detaulTitle}}\n </div>\n <div class=\"block md:hidden\">\n <span class=\"infra-title2\">{{infra?.detaulTitle}}</span>\n </div>\n <div class=\"infra-description padding-top-s\">\n {{infra?.description}}\n </div>\n </div>\n </div>\n <div class=\"col-span-12 md:col-span-8\">\n <sb-uic-data-points [objectData]=\"infra\" [layoutType]=\"'gridLayout'\"></sb-uic-data-points>\n </div>\n </div>\n </div>\n </div>\n <div class=\"infra-background slider-background\" [style.background]=\"infra?.background\">\n </div>\n <div class=\"slider-background1 mb-8\">\n <div class=\"container-balanced w-full slider-background-2\">\n <div class=\"info-slider\">\n <sb-uic-sliders [widgetData]=\"infra?.sliderData?.sliders\" [styleData]=\"infra?.sliderData?.styleData\"></sb-uic-sliders>\n </div>\n </div>\n </div>\n</ng-template>\n\n<!-- Start Competencies -->\n<ng-template #competency let-competency=\"competency\">\n <div class=\"padding-top-l padding-bottom-l relative\" [style.background]=\"competency?.background\" *ngIf=\"!hideCompetencyBlock\">\n <div class=\"w-full container-balanced\">\n <div class=\"pl-4 pr-4 md:pl-0 md:pr-0\">\n <sb-uic-competency-passbook\n (emptyResponse)=\"hideCompetency($event, competency)\"\n (temeletryResponse)=\"raiseCompetencyTelemetry($event)\"\n [objectData]=\"competency\"\n [providerId]=\"providerId\">\n </sb-uic-competency-passbook>\n </div>\n </div>\n <img class=\"absolute comp-back-img\" src=\"assets/icons/microsite/competency.svg\" alt=\"\">\n </div>\n</ng-template>\n<!-- End Competencies -->\n\n\n<ng-template #trainingCalendar let-trainingCalendar=\"trainingCalendar\">\n <div class=\"hidden md:block\">\n <div class=\"col-span-12 px-8 py-8\" [style.background]=\"trainingCalendar?.background\">\n <div class=\"container-balanced flex flex-col\">\n <div class=\"col-span-12 mat-subheading-1 margin-remove\">{{trainingCalendar?.title}}: {{currentMonthAndYear}}</div>\n <sb-uic-calender\n [objectData]=\"trainingCalendar\"\n [fetchDataFromApi]=\"true\"\n [layoutType]=\"'grid'\"\n [defaultDays]=\"trainingCalendar?.defaultDays\"\n [providerId]=\"providerId\">\n </sb-uic-calender>\n </div>\n <div class=\"flex item-center justify-center\">\n <button mat-button type=\"button\"\n (click)=\"raiseTelemetry(trainingCalendar?.contentButton?.title)\"\n [routerLink]=\"[trainingCalendar?.contentButton?.redirectUrl, providerName, providerId, 'training-calendar']\"\n class=\"view-btn margin-left-xs margin-right-xs small-button blue-border flex-auto-display\">\n <span class=\"mat-heading-1 bold ws-mat-default-text\" i18n>\n {{trainingCalendar?.contentButton?.title}}\n </span>\n </button>\n </div>\n </div>\n </div>\n <div class=\"block md:hidden\">\n <div class=\"col-span-12 px-5 py-3 mob-header\">{{trainingCalendar?.title}}: {{currentMonthAndYear}}</div>\n <div class=\"col-span-12\">\n <sb-uic-calender\n [objectData]=\"trainingCalendar\"\n [fetchDataFromApi]=\"true\"\n [layoutType]=\"'row'\"\n [defaultDays]=\"trainingCalendar?.defaultDays\"\n [providerId]=\"providerId\">\n </sb-uic-calender>\n </div>\n <div class=\"col-span-12 flex item-center justify-center\">\n <button mat-button type=\"button\"\n (click)=\"raiseTelemetry(trainingCalendar?.contentButton?.title)\"\n [routerLink]=\"[trainingCalendar?.contentButton?.redirectUrl, providerName, providerId, 'training-calendar']\"\n class=\"view-btn margin-left-xs margin-right-xs small-button blue-border flex-auto-display\">\n <span class=\"mat-heading-1 bold ws-mat-default-text\" i18n>\n {{trainingCalendar?.contentButton?.title}}\n </span>\n </button>\n </div>\n </div>\n</ng-template>\n<ng-template #learnerReviewBlock let-data=\"data\">\n <div class=\"contributors-background px-5 py-5\" [style.background]=\"data?.background\" *ngIf=\"!data?.hideSection\">\n <div class=\"container\">\n <div class=\"grid grid-cols-12 gap-4 padding-top-l mb-6\">\n <div class=\"col-span-12 md:col-span-4 contributor-desc\">\n <div class=\"infra-box-review flex flex-col\">\n <div class=\"learner-title hidden md:block\">\n {{data?.detaulTitle}}\n </div>\n <div class=\"infra-title2 hidden md:block\">\n {{data?.myTitle}}\n </div>\n <div class=\"block md:hidden\">\n <span class=\"learner-title\">{{data?.detaulTitle}}</span> <span class=\"infra-title2\"> {{data?.myTitle}}</span>\n </div> \n </div> \n </div>\n <div class=\"col-span-12 md:col-span-8\">\n <sb-uic-user-content-rating (emptyResponse)=\"hideLearnerReview($event, data)\" [formData]=\"data\" [providerId]=\"providerId\"></sb-uic-user-content-rating>\n </div>\n </div>\n </div>\n </div>\n</ng-template>\n",
17417
+ styles: [".container-balanced{max-width:1202px;margin-left:auto!important;margin-right:auto!important}.container{max-width:1200px}.section-divider{border-bottom:1px solid rgba(0,0,0,.16)}.banner-container{align-items:center;background:#eee;padding:16px;gap:2.5rem;justify-content:center}.logo-box{vertical-align:middle;max-width:250px;background:#f5fdf1;padding:8px;border:1px solid rgba(0,0,0,.5)}.title-section{position:relative;display:flex;justify-content:center;background-color:#fff}.logo-box-container{width:180px;position:relative}@media only screen and (max-width:599px){.logo-box-container{width:112px;height:72px}}.view-btn{width:160px;background:#fff;padding:0 16px;border-radius:49px;border:1px solid #1b4ca9;font-weight:700!important;font-size:14px;margin-top:4px;margin-bottom:4px;line-height:36px}.logo-box-rounded{height:180px;width:180px;background:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px 0 rgba(0,0,0,.06)}.logo-box-rounded .logo-img{max-width:122px}@media only screen and (max-width:599px){.view-btn{margin-top:12px;margin-bottom:16px}.logo-box-rounded{width:112px;height:112px}.logo-box-rounded .logo-img{max-width:84px}}.logo-box-rounded.top{position:absolute;top:-110px}.slider-box{max-width:30%}.stats-container{justify-content:space-around;display:flex;flex-wrap:wrap}.stats-item{display:flex;align-items:center;flex-wrap:nowrap;padding:8px 16px;margin-bottom:16px}.banner-metrics{background:linear-gradient(180deg,#f9cb97 -107.59%,#ef951e 110.74%)}.infra-sec{padding:25px 0}.infra-sec-desc{padding-top:32px}.contributors-background,.infra-background{align-items:center;justify-content:center;display:flex}.contributor-desc{align-items:center;display:inline-flex;margin-top:-24px}.infra-box{width:256px}.infra-box-review{width:100%}.infra-title-v2{font-family:Montserrat;font-size:24px;font-weight:600;line-height:29.26px;text-align:left;color:#fff}.infra-title2-v2{font-family:Montserrat;font-size:24px;font-weight:600;line-height:29.26px;text-align:left;color:#ef951e}.infra-title{font-family:Montserrat;font-size:24px;font-weight:600;line-height:29.26px;text-align:left;color:#fff}.infra-title2{font-family:Montserrat;font-size:24px;font-weight:600;line-height:29.26px;text-align:left;color:#ef951e}.infra-description{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left;color:#fff;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical}.overlay{position:absolute;top:-20px}.slider-background{height:160px}.slider-background1{height:195px}.slider-background-2{position:relative}.info-slider{position:absolute;top:-180px;padding:25px}.sticky-navigator{padding:15px 5px;background-color:#fdead5;align-items:center;overflow:auto;position:fixed;left:0;bottom:0;width:100%;z-index:1002;justify-content:center}.nav-button{padding:12px 16px;border-radius:40px;border:1px solid #000;text-align:center;font-family:Lato;font-size:14px;font-weight:700;line-height:16.8px;cursor:pointer;min-width:140px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.nav-up-arrow{height:28px}.img-left{left:0}.img-right{right:0}.learner-title{font-family:Montserrat;font-size:24px;font-weight:600;line-height:29.26px;text-align:left;color:#000}@media screen and (max-width:1201px){.img-left,.img-right{display:none}}@media screen and (max-width:768px){.infra-sec{padding:0}.infra-box,.infra-box-review{width:99%;height:auto}.infra-sec-desc{padding-top:0}.mob-container{background-image:url(https://portal.karmayogiqa.nic.in/content-store/orgStore/0135071359030722569/1720693634596_MDOChannel_RightGraphic%202.svg);background-position:bottom 0 right 0;background-repeat:no-repeat}.infra-title,.infra-title-v2,.infra-title2,.infra-title2-v2{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.slider-background,.slider-background1{height:150px}.info-slider{position:absolute;top:-155px}.sticky-navigator{align-items:center;justify-content:left;bottom:63px}.logo-box-rounded.top{position:absolute;top:-50px}.learner-title{font-size:16px}}.competencies-backgroud{background-color:#1b2133}.txt-ellipsis-2{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.comp-back-img{bottom:0;left:0;right:0;margin-left:auto;margin-right:auto;width:50%;filter:brightness(100)}.mob-header{font-family:Lato;font-size:16px;font-weight:600}"]
16013
17418
  }] }
16014
17419
  ];
16015
17420
  /** @nocollapse */
16016
- SlidersNgContentLibComponent.ctorParameters = function () { return [
16017
- { type: EventService },
16018
- { type: ValueService }
17421
+ ProvidersV2Component.ctorParameters = function () { return [
17422
+ { type: ActivatedRoute },
17423
+ { type: Router },
17424
+ { type: DatePipe },
17425
+ { type: EventService }
16019
17426
  ]; };
16020
- SlidersNgContentLibComponent.propDecorators = {
16021
- widgetData: [{ type: Input }],
16022
- styleData: [{ type: Input }],
16023
- title: [{ type: Input }],
16024
- loadNgContentData: [{ type: Input }],
16025
- autoScroll: [{ type: Input }],
16026
- currentIndexValue: [{ type: Output }],
16027
- id: [{ type: HostBinding, args: ['id',] }],
16028
- currentIndex: [{ type: Input }]
17427
+ ProvidersV2Component.propDecorators = {
17428
+ sectionList: [{ type: Input }]
16029
17429
  };
16030
- return SlidersNgContentLibComponent;
16031
- }(WidgetBaseComponent));
17430
+ return ProvidersV2Component;
17431
+ }());
16032
17432
  if (false) {
16033
17433
  /** @type {?} */
16034
- SlidersNgContentLibComponent.prototype.widgetData;
17434
+ ProvidersV2Component.prototype.sectionList;
16035
17435
  /** @type {?} */
16036
- SlidersNgContentLibComponent.prototype.styleData;
17436
+ ProvidersV2Component.prototype.providerName;
16037
17437
  /** @type {?} */
16038
- SlidersNgContentLibComponent.prototype.title;
17438
+ ProvidersV2Component.prototype.providerId;
16039
17439
  /** @type {?} */
16040
- SlidersNgContentLibComponent.prototype.loadNgContentData;
17440
+ ProvidersV2Component.prototype.navList;
16041
17441
  /** @type {?} */
16042
- SlidersNgContentLibComponent.prototype.autoScroll;
17442
+ ProvidersV2Component.prototype.hideCompetencyBlock;
16043
17443
  /** @type {?} */
16044
- SlidersNgContentLibComponent.prototype.currentIndexValue;
17444
+ ProvidersV2Component.prototype.currentMonthAndYear;
16045
17445
  /** @type {?} */
16046
- SlidersNgContentLibComponent.prototype.id;
17446
+ ProvidersV2Component.prototype.titles;
17447
+ /** @type {?} */
17448
+ ProvidersV2Component.prototype.descriptionMaxLength;
17449
+ /** @type {?} */
17450
+ ProvidersV2Component.prototype.isTelemetryRaised;
16047
17451
  /**
16048
17452
  * @type {?}
16049
17453
  * @private
16050
17454
  */
16051
- SlidersNgContentLibComponent.prototype.defaultMenuSubscribe;
16052
- /** @type {?} */
16053
- SlidersNgContentLibComponent.prototype.isLtMedium$;
16054
- /** @type {?} */
16055
- SlidersNgContentLibComponent.prototype.currentIndex;
17455
+ ProvidersV2Component.prototype.route;
16056
17456
  /** @type {?} */
16057
- SlidersNgContentLibComponent.prototype.slideInterval;
16058
- /** @type {?} */
16059
- SlidersNgContentLibComponent.prototype.isMobile;
17457
+ ProvidersV2Component.prototype.router;
16060
17458
  /**
16061
17459
  * @type {?}
16062
17460
  * @private
16063
17461
  */
16064
- SlidersNgContentLibComponent.prototype.events;
17462
+ ProvidersV2Component.prototype.datePipe;
16065
17463
  /**
16066
17464
  * @type {?}
16067
17465
  * @private
16068
17466
  */
16069
- SlidersNgContentLibComponent.prototype.valueSvc;
17467
+ ProvidersV2Component.prototype.events;
16070
17468
  }
16071
17469
 
16072
17470
  /**
16073
17471
  * @fileoverview added by tsickle
16074
17472
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
16075
17473
  */
16076
- /* tslint:enable */
16077
- var /* tslint:enable */
16078
- MyHammerConfig$1 = /** @class */ (function (_super) {
16079
- __extends(MyHammerConfig, _super);
16080
- function MyHammerConfig() {
16081
- return _super !== null && _super.apply(this, arguments) || this;
16082
- }
16083
- /**
16084
- * @param {?} element
16085
- * @return {?}
16086
- */
16087
- MyHammerConfig.prototype.buildHammer = /**
16088
- * @param {?} element
16089
- * @return {?}
16090
- */
16091
- function (element) {
16092
- /** @type {?} */
16093
- var mc = new Hammer(element, {
16094
- touchAction: 'pan-y',
16095
- });
16096
- return mc;
16097
- };
16098
- return MyHammerConfig;
16099
- }(HammerGestureConfig));
16100
- // tslint:disable-next-line: max-classes-per-file
16101
- var SlidersNgContentLibModule = /** @class */ (function () {
16102
- function SlidersNgContentLibModule() {
16103
- }
16104
- SlidersNgContentLibModule.decorators = [
16105
- { type: NgModule, args: [{
16106
- declarations: [SlidersNgContentLibComponent],
16107
- imports: [
16108
- CommonModule,
16109
- RouterModule,
16110
- NavigationModule,
16111
- ImageResponsiveModule,
16112
- ],
16113
- exports: [SlidersNgContentLibComponent],
16114
- entryComponents: [SlidersNgContentLibComponent],
16115
- providers: [
16116
- {
16117
- provide: HAMMER_GESTURE_CONFIG,
16118
- useClass: MyHammerConfig$1,
16119
- },
16120
- ],
16121
- },] }
16122
- ];
16123
- return SlidersNgContentLibModule;
16124
- }());
16125
-
16126
- /**
16127
- * @fileoverview added by tsickle
16128
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
16129
- */
16130
- var ScrollableItemModule = /** @class */ (function () {
16131
- function ScrollableItemModule() {
16132
- }
16133
- ScrollableItemModule.decorators = [
16134
- { type: NgModule, args: [{
16135
- declarations: [ScrollableItemDirective],
16136
- imports: [
16137
- CommonModule,
16138
- ],
16139
- exports: [ScrollableItemDirective],
16140
- },] }
16141
- ];
16142
- return ScrollableItemModule;
16143
- }());
16144
-
16145
- /**
16146
- * @fileoverview added by tsickle
16147
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
16148
- */
16149
- var UserContentRatingLibModule = /** @class */ (function () {
16150
- function UserContentRatingLibModule() {
17474
+ var ɵ0$8 = HttpLoaderFactory;
17475
+ var ProvidersModule = /** @class */ (function () {
17476
+ function ProvidersModule() {
16151
17477
  }
16152
- UserContentRatingLibModule.decorators = [
17478
+ ProvidersModule.decorators = [
16153
17479
  { type: NgModule, args: [{
16154
- declarations: [UserContentRatingLibComponent],
17480
+ declarations: [ProvidersV2Component],
16155
17481
  imports: [
16156
17482
  CommonModule,
16157
17483
  MatIconModule,
17484
+ RouterModule,
16158
17485
  MatChipsModule,
16159
17486
  SkeletonLoaderLibModule,
16160
- SlidersLibModule,
17487
+ CalenderModule,
16161
17488
  CardsModule,
16162
- AvatarPhotoLibModule,
16163
- SlidersNgContentLibModule,
16164
- ScrollableItemModule
17489
+ CommonStripModule,
17490
+ CompetencyPassbookModule,
17491
+ UserContentRatingLibModule,
17492
+ ContentStripWithTabsLibModule,
17493
+ DataPointsModule,
17494
+ SlidersLibModule,
17495
+ MatTabsModule,
17496
+ TranslateModule.forRoot({
17497
+ loader: {
17498
+ provide: TranslateLoader,
17499
+ useFactory: ɵ0$8,
17500
+ deps: [HttpClient],
17501
+ },
17502
+ }),
17503
+ ],
17504
+ exports: [ProvidersV2Component],
17505
+ providers: [
17506
+ CommonMethodsService
16165
17507
  ],
16166
- exports: [UserContentRatingLibComponent],
16167
- providers: [RatingService, UserContentRatingLibService],
16168
17508
  schemas: [CUSTOM_ELEMENTS_SCHEMA]
16169
17509
  },] }
16170
17510
  ];
16171
- return UserContentRatingLibModule;
17511
+ return ProvidersModule;
16172
17512
  }());
16173
17513
 
16174
17514
  /**
@@ -16181,5 +17521,5 @@ var UserContentRatingLibModule = /** @class */ (function () {
16181
17521
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
16182
17522
  */
16183
17523
 
16184
- export { AnnouncementsModule, CalenderModule, CardsModule, CommonMethodsService, CommonStripModule, CompetencyPassbookMdoModule, CompetencyPassbookModule, ConsumptionComponent, ConsumptionModule, ConsumptionService, ContentProgressModule, ContentStripWithTabsLibModule, ContentStripWithTabsPillsModule, DataPointsModule, HttpLoaderFactory, HttpLoaderFactory1, MyHammerConfig, ROOT_WIDGET_CONFIG, SlidersLibModule, UserContentRatingLibModule, WIDGET_REGISTERED_LIB_MODULES, WIDGET_REGISTRATION_LIB_CONFIG, WidgetContentService, ContentStripWithTabsLibComponent as ɵa, WidgetUserService as ɵb, CardWideV2Component as ɵba, CardKarmaProgramsComponent as ɵbb, CardKarmaProgramsV2Component as ɵbc, ProviderCardComponent as ɵbd, CardPortraitExtComponent as ɵbe, CardAssessmentComponent as ɵbf, CardProgressPortraitLibComponent as ɵbg, CertificateService as ɵbh, CardMdoChannelV1Component as ɵbi, PipePublicURLModule as ɵbj, PipePublicURL as ɵbk, ObjectToArrayPipeModule as ɵbl, ObjectToArrayPipe as ɵbm, DisplayContentTypeLibModule as ɵbn, DisplayContentTypeLibComponent as ɵbo, DefaultThumbnailModule as ɵbp, DefaultThumbnailDirective as ɵbq, PipeDurationTransformModule as ɵbr, PipeDurationTransformPipe as ɵbs, ContentProgressComponent as ɵbt, DialogComponentsModule as ɵbu, CertificateDialogComponent as ɵbv, AvatarPhotoLibModule as ɵbw, AvatarPhotoLibComponent as ɵbx, ContentStripWithTabsPillsComponent as ɵby, CompetencyPassbookComponent as ɵbz, MultilingualTranslationsService as ɵc, CompetencyPassbookService as ɵca, PillsModule as ɵcb, PillsComponent as ɵcc, CompetencyPassbookMdoComponent as ɵcd, CompetencyPassbookMdoService as ɵce, UserContentRatingLibComponent as ɵcf, ScrollableItemDirective as ɵcg, RatingService as ɵch, UserContentRatingLibService as ɵci, MyHammerConfig$1 as ɵcj, SlidersNgContentLibModule as ɵck, SlidersNgContentLibComponent as ɵcl, ScrollableItemModule as ɵcm, ConfigurationsService as ɵd, HorizontalScrollerV2Module as ɵe, HorizontalScrollerV2Component as ɵf, SlidersLibComponent as ɵg, NavigationModule as ɵh, NavigationDirective as ɵi, ImageResponsiveModule as ɵj, ImageResponsiveDirective as ɵk, DataPointsComponent as ɵl, InsiteDataService as ɵm, SkeletonLoaderLibModule as ɵn, SkeletonLoaderLibComponent as ɵo, CalenderComponent as ɵp, CalenderDayComponent as ɵq, CommonStripComponent as ɵr, AnnouncementsComponent as ɵs, CardResourceComponent as ɵt, CardsComponent as ɵu, CardPortraitComponent as ɵv, CardUserComponent as ɵw, CardLandscapeComponent as ɵx, CardWideComponent as ɵy, CardMDOChannelComponent as ɵz };
17524
+ export { AnnouncementsModule, CalenderModule, CardsModule, CbpPlanModule, CommonMethodsService, CommonStripModule, CompetencyPassbookMdoModule, CompetencyPassbookModule, ConsumptionComponent, ConsumptionModule, ConsumptionService, ContentProgressModule, ContentStripWithTabsLibModule, ContentStripWithTabsPillsModule, DataPointsModule, HttpLoaderFactory, HttpLoaderFactory1, MDOChannelModule, MyHammerConfig, ProvidersModule, ROOT_WIDGET_CONFIG, SlidersLibModule, TopLearnersModule, UserContentRatingLibModule, WIDGET_REGISTERED_LIB_MODULES, WIDGET_REGISTRATION_LIB_CONFIG, WidgetContentService, ContentStripWithTabsLibComponent as ɵa, WidgetUserService as ɵb, CardResourceComponent as ɵba, CardsComponent as ɵbb, CardPortraitComponent as ɵbc, CardUserComponent as ɵbd, CardLandscapeComponent as ɵbe, CardWideComponent as ɵbf, CardMDOChannelComponent as ɵbg, CardWideV2Component as ɵbh, CardKarmaProgramsComponent as ɵbi, CardKarmaProgramsV2Component as ɵbj, ProviderCardComponent as ɵbk, CardPortraitExtComponent as ɵbl, CardAssessmentComponent as ɵbm, CardProgressPortraitLibComponent as ɵbn, CertificateService as ɵbo, CardMdoChannelV1Component as ɵbp, PipePublicURLModule as ɵbq, PipePublicURL as ɵbr, ObjectToArrayPipeModule as ɵbs, ObjectToArrayPipe as ɵbt, DisplayContentTypeLibModule as ɵbu, DisplayContentTypeLibComponent as ɵbv, DefaultThumbnailModule as ɵbw, DefaultThumbnailDirective as ɵbx, PipeDurationTransformModule as ɵby, PipeDurationTransformPipe as ɵbz, MultilingualTranslationsService as ɵc, ContentProgressComponent as ɵca, DialogComponentsModule as ɵcb, CertificateDialogComponent as ɵcc, AvatarPhotoLibModule as ɵcd, AvatarPhotoLibComponent as ɵce, ContentStripWithTabsPillsComponent as ɵcf, CompetencyPassbookComponent as ɵcg, CompetencyPassbookService as ɵch, PillsModule as ɵci, PillsComponent as ɵcj, CompetencyPassbookMdoComponent as ɵck, CompetencyPassbookMdoService as ɵcl, UserContentRatingLibComponent as ɵcm, RatingService as ɵcn, UserContentRatingLibService as ɵco, MdoChannelV1Component as ɵcp, MdoChannelV2Component as ɵcq, ProvidersV2Component as ɵcr, ConfigurationsService as ɵd, HorizontalScrollerV2Module as ɵe, HorizontalScrollerV2Component as ɵf, SlidersLibComponent as ɵg, NavigationModule as ɵh, NavigationDirective as ɵi, ImageResponsiveModule as ɵj, ImageResponsiveDirective as ɵk, DataPointsComponent as ɵl, InsiteDataService as ɵm, SkeletonLoaderLibModule as ɵn, SkeletonLoaderLibComponent as ɵo, CalenderComponent as ɵp, CalenderDayComponent as ɵq, CommonStripComponent as ɵr, AnnouncementsComponent as ɵs, TopLearnersComponent as ɵt, CbpPlanComponent as ɵu, ScrollableItemDirective as ɵv, ScrollableItemModule as ɵw, MyHammerConfig$1 as ɵx, SlidersNgContentLibModule as ɵy, SlidersNgContentLibComponent as ɵz };
16185
17525
  //# sourceMappingURL=sunbird-cb-consumption.js.map