@sunbird-cb/consumption 0.0.84 → 0.0.86

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 (44) hide show
  1. package/bundles/sunbird-cb-consumption.umd.js +1733 -60
  2. package/bundles/sunbird-cb-consumption.umd.js.map +1 -1
  3. package/bundles/sunbird-cb-consumption.umd.min.js +1 -1
  4. package/bundles/sunbird-cb-consumption.umd.min.js.map +1 -1
  5. package/esm2015/lib/_common/events/events.component.js +2 -2
  6. package/esm2015/lib/_common/events/events.module.js +3 -1
  7. package/esm2015/lib/_common/highlights-of-week/highlights-of-week.component.js +1 -1
  8. package/esm2015/lib/_common/key-highlights/key-highlights.component.js +5 -2
  9. package/esm2015/lib/_common/microsites/national-learning-week/national-learning/national-learning.component.js +2 -2
  10. package/esm2015/lib/_common/microsites/national-learning-week/national-learning.module.js +4 -2
  11. package/esm2015/lib/_common/speakers/speakers.component.js +1 -1
  12. package/esm2015/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.component.js +1170 -0
  13. package/esm2015/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.model.js +231 -0
  14. package/esm2015/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.module.js +63 -0
  15. package/esm2015/lib/_common/user-progress/user-progress.component.js +8 -1
  16. package/esm2015/lib/consumption.module.js +2 -2
  17. package/esm2015/public-api.js +2 -1
  18. package/esm2015/sunbird-cb-consumption.js +24 -23
  19. package/esm5/lib/_common/events/events.component.js +2 -2
  20. package/esm5/lib/_common/events/events.module.js +3 -1
  21. package/esm5/lib/_common/highlights-of-week/highlights-of-week.component.js +1 -1
  22. package/esm5/lib/_common/key-highlights/key-highlights.component.js +5 -2
  23. package/esm5/lib/_common/microsites/national-learning-week/national-learning/national-learning.component.js +2 -2
  24. package/esm5/lib/_common/microsites/national-learning-week/national-learning.module.js +4 -2
  25. package/esm5/lib/_common/speakers/speakers.component.js +1 -1
  26. package/esm5/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.component.js +1390 -0
  27. package/esm5/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.model.js +231 -0
  28. package/esm5/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.module.js +67 -0
  29. package/esm5/lib/_common/user-progress/user-progress.component.js +8 -1
  30. package/esm5/lib/consumption.module.js +2 -2
  31. package/esm5/public-api.js +2 -1
  32. package/esm5/sunbird-cb-consumption.js +24 -23
  33. package/fesm2015/sunbird-cb-consumption.js +1489 -40
  34. package/fesm2015/sunbird-cb-consumption.js.map +1 -1
  35. package/fesm5/sunbird-cb-consumption.js +1711 -40
  36. package/fesm5/sunbird-cb-consumption.js.map +1 -1
  37. package/lib/_common/key-highlights/key-highlights.component.d.ts +1 -0
  38. package/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.component.d.ts +127 -0
  39. package/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.model.d.ts +157 -0
  40. package/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.module.d.ts +2 -0
  41. package/package.json +1 -1
  42. package/public-api.d.ts +1 -0
  43. package/sunbird-cb-consumption.d.ts +22 -21
  44. package/sunbird-cb-consumption.metadata.json +1 -1
@@ -10094,7 +10094,7 @@
10094
10094
  }
10095
10095
  ConsumptionModule.decorators = [
10096
10096
  { type: core.NgModule, args: [{
10097
- declarations: [ConsumptionComponent,],
10097
+ declarations: [ConsumptionComponent],
10098
10098
  imports: [
10099
10099
  ContentStripWithTabsLibModule,
10100
10100
  SlidersLibModule
@@ -13834,6 +13834,1610 @@
13834
13834
  }
13835
13835
  ];
13836
13836
 
13837
+ /**
13838
+ * @fileoverview added by tsickle
13839
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
13840
+ */
13841
+ var NsContentStripWithFacets;
13842
+ (function (NsContentStripWithFacets) {
13843
+ /**
13844
+ * @record
13845
+ */
13846
+ function IContentStripMultiple() { }
13847
+ NsContentStripWithFacets.IContentStripMultiple = IContentStripMultiple;
13848
+ if (false) {
13849
+ /** @type {?|undefined} */
13850
+ IContentStripMultiple.prototype.errorWidget;
13851
+ /** @type {?|undefined} */
13852
+ IContentStripMultiple.prototype.loader;
13853
+ /** @type {?|undefined} */
13854
+ IContentStripMultiple.prototype.noDataWidget;
13855
+ /** @type {?} */
13856
+ IContentStripMultiple.prototype.strips;
13857
+ /** @type {?|undefined} */
13858
+ IContentStripMultiple.prototype.isChannelStrip;
13859
+ }
13860
+ /**
13861
+ * @record
13862
+ */
13863
+ function IContentStripUnit() { }
13864
+ NsContentStripWithFacets.IContentStripUnit = IContentStripUnit;
13865
+ if (false) {
13866
+ /** @type {?|undefined} */
13867
+ IContentStripUnit.prototype.stripRequestFor;
13868
+ /** @type {?|undefined} */
13869
+ IContentStripUnit.prototype.onTabClickRequest;
13870
+ /** @type {?|undefined} */
13871
+ IContentStripUnit.prototype.hideViewMoreUrl;
13872
+ /** @type {?} */
13873
+ IContentStripUnit.prototype.type;
13874
+ /** @type {?|undefined} */
13875
+ IContentStripUnit.prototype.disableTranslate;
13876
+ /** @type {?} */
13877
+ IContentStripUnit.prototype.key;
13878
+ /** @type {?} */
13879
+ IContentStripUnit.prototype.title;
13880
+ /** @type {?|undefined} */
13881
+ IContentStripUnit.prototype.customeClass;
13882
+ /** @type {?|undefined} */
13883
+ IContentStripUnit.prototype.nodataMsg;
13884
+ /** @type {?|undefined} */
13885
+ IContentStripUnit.prototype.stripTitleLink;
13886
+ /** @type {?|undefined} */
13887
+ IContentStripUnit.prototype.sliderConfig;
13888
+ /** @type {?|undefined} */
13889
+ IContentStripUnit.prototype.tabs;
13890
+ /** @type {?|undefined} */
13891
+ IContentStripUnit.prototype.titleDescription;
13892
+ /** @type {?|undefined} */
13893
+ IContentStripUnit.prototype.name;
13894
+ /** @type {?|undefined} */
13895
+ IContentStripUnit.prototype.mode;
13896
+ /** @type {?|undefined} */
13897
+ IContentStripUnit.prototype.info;
13898
+ /** @type {?|undefined} */
13899
+ IContentStripUnit.prototype.logo;
13900
+ /** @type {?|undefined} */
13901
+ IContentStripUnit.prototype.preWidgets;
13902
+ /** @type {?|undefined} */
13903
+ IContentStripUnit.prototype.postWidgets;
13904
+ /** @type {?|undefined} */
13905
+ IContentStripUnit.prototype.stripConfig;
13906
+ /** @type {?|undefined} */
13907
+ IContentStripUnit.prototype.canHideStrip;
13908
+ /** @type {?} */
13909
+ IContentStripUnit.prototype.showStrip;
13910
+ /** @type {?|undefined} */
13911
+ IContentStripUnit.prototype.filters;
13912
+ /** @type {?|undefined} */
13913
+ IContentStripUnit.prototype.selectAll;
13914
+ /** @type {?|undefined} */
13915
+ IContentStripUnit.prototype.request;
13916
+ /** @type {?|undefined} */
13917
+ IContentStripUnit.prototype.searchV6Type;
13918
+ /** @type {?|undefined} */
13919
+ IContentStripUnit.prototype.stripBackground;
13920
+ /** @type {?|undefined} */
13921
+ IContentStripUnit.prototype.noDataWidget;
13922
+ /** @type {?|undefined} */
13923
+ IContentStripUnit.prototype.loader;
13924
+ /** @type {?|undefined} */
13925
+ IContentStripUnit.prototype.loaderWidgets;
13926
+ /** @type {?|undefined} */
13927
+ IContentStripUnit.prototype.errorWidget;
13928
+ /** @type {?|undefined} */
13929
+ IContentStripUnit.prototype.refreshEvent;
13930
+ /** @type {?|undefined} */
13931
+ IContentStripUnit.prototype.fetchLikes;
13932
+ /** @type {?|undefined} */
13933
+ IContentStripUnit.prototype.secondaryHeading;
13934
+ /** @type {?|undefined} */
13935
+ IContentStripUnit.prototype.viewMoreUrl;
13936
+ /** @type {?|undefined} */
13937
+ IContentStripUnit.prototype.data;
13938
+ }
13939
+ /**
13940
+ * @record
13941
+ */
13942
+ function IStripRequestApi() { }
13943
+ NsContentStripWithFacets.IStripRequestApi = IStripRequestApi;
13944
+ if (false) {
13945
+ /** @type {?} */
13946
+ IStripRequestApi.prototype.path;
13947
+ /** @type {?|undefined} */
13948
+ IStripRequestApi.prototype.queryParams;
13949
+ }
13950
+ /**
13951
+ * @record
13952
+ */
13953
+ function INetworkRequestApi() { }
13954
+ NsContentStripWithFacets.INetworkRequestApi = INetworkRequestApi;
13955
+ if (false) {
13956
+ /** @type {?} */
13957
+ INetworkRequestApi.prototype.path;
13958
+ /** @type {?|undefined} */
13959
+ INetworkRequestApi.prototype.data;
13960
+ }
13961
+ /**
13962
+ * @record
13963
+ */
13964
+ function IStripInfo() { }
13965
+ NsContentStripWithFacets.IStripInfo = IStripInfo;
13966
+ if (false) {
13967
+ /** @type {?} */
13968
+ IStripInfo.prototype.mode;
13969
+ /** @type {?|undefined} */
13970
+ IStripInfo.prototype.visibilityMode;
13971
+ /** @type {?} */
13972
+ IStripInfo.prototype.icon;
13973
+ /** @type {?} */
13974
+ IStripInfo.prototype.widget;
13975
+ }
13976
+ /**
13977
+ * @record
13978
+ */
13979
+ function IStripConfig() { }
13980
+ if (false) {
13981
+ /** @type {?} */
13982
+ IStripConfig.prototype.cardSubType;
13983
+ /** @type {?|undefined} */
13984
+ IStripConfig.prototype.postCardForSearch;
13985
+ /** @type {?|undefined} */
13986
+ IStripConfig.prototype.intranetMode;
13987
+ /** @type {?|undefined} */
13988
+ IStripConfig.prototype.deletedMode;
13989
+ /** @type {?|undefined} */
13990
+ IStripConfig.prototype.contentTags;
13991
+ /** @type {?|undefined} */
13992
+ IStripConfig.prototype.hideShowAll;
13993
+ }
13994
+ /**
13995
+ * @record
13996
+ */
13997
+ function IContentTags() { }
13998
+ NsContentStripWithFacets.IContentTags = IContentTags;
13999
+ if (false) {
14000
+ /** @type {?|undefined} */
14001
+ IContentTags.prototype.daysSpan;
14002
+ /** @type {?|undefined} */
14003
+ IContentTags.prototype.excludeContentType;
14004
+ /** @type {?|undefined} */
14005
+ IContentTags.prototype.excludeMimeType;
14006
+ /** @type {?} */
14007
+ IContentTags.prototype.tag;
14008
+ /** @type {?} */
14009
+ IContentTags.prototype.criteriaField;
14010
+ }
14011
+ /**
14012
+ * @record
14013
+ */
14014
+ function IContentStripResponseApi() { }
14015
+ NsContentStripWithFacets.IContentStripResponseApi = IContentStripResponseApi;
14016
+ if (false) {
14017
+ /** @type {?} */
14018
+ IContentStripResponseApi.prototype.contents;
14019
+ /** @type {?|undefined} */
14020
+ IContentStripResponseApi.prototype.hasMore;
14021
+ /** @type {?|undefined} */
14022
+ IContentStripResponseApi.prototype.pageState;
14023
+ /** @type {?|undefined} */
14024
+ IContentStripResponseApi.prototype.totalHits;
14025
+ }
14026
+ /**
14027
+ * @record
14028
+ */
14029
+ function IContentStripTab() { }
14030
+ NsContentStripWithFacets.IContentStripTab = IContentStripTab;
14031
+ if (false) {
14032
+ /** @type {?|undefined} */
14033
+ IContentStripTab.prototype.pillsData;
14034
+ /** @type {?} */
14035
+ IContentStripTab.prototype.label;
14036
+ /** @type {?} */
14037
+ IContentStripTab.prototype.value;
14038
+ /** @type {?} */
14039
+ IContentStripTab.prototype.showTabDataCount;
14040
+ /** @type {?|undefined} */
14041
+ IContentStripTab.prototype.requestRequired;
14042
+ /** @type {?|undefined} */
14043
+ IContentStripTab.prototype.computeDataOnClick;
14044
+ /** @type {?|undefined} */
14045
+ IContentStripTab.prototype.computeDataOnClickKey;
14046
+ /** @type {?|undefined} */
14047
+ IContentStripTab.prototype.request;
14048
+ /** @type {?|undefined} */
14049
+ IContentStripTab.prototype.widgets;
14050
+ /** @type {?|undefined} */
14051
+ IContentStripTab.prototype.maxWidgets;
14052
+ /** @type {?|undefined} */
14053
+ IContentStripTab.prototype.fetchTabStatus;
14054
+ /** @type {?|undefined} */
14055
+ IContentStripTab.prototype.nodataMsg;
14056
+ /** @type {?|undefined} */
14057
+ IContentStripTab.prototype.tabLoading;
14058
+ /** @type {?|undefined} */
14059
+ IContentStripTab.prototype.facets;
14060
+ }
14061
+ })(NsContentStripWithFacets || (NsContentStripWithFacets = {}));
14062
+ /** @enum {string} */
14063
+ var ApiRequestFor = {
14064
+ SEARCH: 'search',
14065
+ };
14066
+
14067
+ /**
14068
+ * @fileoverview added by tsickle
14069
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
14070
+ */
14071
+ /**
14072
+ * @record
14073
+ */
14074
+ function IStripUnitContentData$1() { }
14075
+ if (false) {
14076
+ /** @type {?} */
14077
+ IStripUnitContentData$1.prototype.key;
14078
+ /** @type {?} */
14079
+ IStripUnitContentData$1.prototype.canHideStrip;
14080
+ /** @type {?|undefined} */
14081
+ IStripUnitContentData$1.prototype.mode;
14082
+ /** @type {?} */
14083
+ IStripUnitContentData$1.prototype.showStrip;
14084
+ /** @type {?} */
14085
+ IStripUnitContentData$1.prototype.disableTranslate;
14086
+ /** @type {?|undefined} */
14087
+ IStripUnitContentData$1.prototype.widgets;
14088
+ /** @type {?} */
14089
+ IStripUnitContentData$1.prototype.stripTitle;
14090
+ /** @type {?|undefined} */
14091
+ IStripUnitContentData$1.prototype.hideViewMoreUrl;
14092
+ /** @type {?|undefined} */
14093
+ IStripUnitContentData$1.prototype.stripTitleLink;
14094
+ /** @type {?|undefined} */
14095
+ IStripUnitContentData$1.prototype.sliderConfig;
14096
+ /** @type {?} */
14097
+ IStripUnitContentData$1.prototype.stripConfig;
14098
+ /** @type {?|undefined} */
14099
+ IStripUnitContentData$1.prototype.tabs;
14100
+ /** @type {?|undefined} */
14101
+ IStripUnitContentData$1.prototype.stripName;
14102
+ /** @type {?|undefined} */
14103
+ IStripUnitContentData$1.prototype.stripLogo;
14104
+ /** @type {?|undefined} */
14105
+ IStripUnitContentData$1.prototype.description;
14106
+ /** @type {?|undefined} */
14107
+ IStripUnitContentData$1.prototype.stripInfo;
14108
+ /** @type {?|undefined} */
14109
+ IStripUnitContentData$1.prototype.noDataWidget;
14110
+ /** @type {?|undefined} */
14111
+ IStripUnitContentData$1.prototype.errorWidget;
14112
+ /** @type {?} */
14113
+ IStripUnitContentData$1.prototype.showOnNoData;
14114
+ /** @type {?} */
14115
+ IStripUnitContentData$1.prototype.showOnLoader;
14116
+ /** @type {?} */
14117
+ IStripUnitContentData$1.prototype.showOnError;
14118
+ /** @type {?|undefined} */
14119
+ IStripUnitContentData$1.prototype.loaderWidgets;
14120
+ /** @type {?|undefined} */
14121
+ IStripUnitContentData$1.prototype.stripBackground;
14122
+ /** @type {?|undefined} */
14123
+ IStripUnitContentData$1.prototype.secondaryHeading;
14124
+ /** @type {?} */
14125
+ IStripUnitContentData$1.prototype.viewMoreUrl;
14126
+ /** @type {?|undefined} */
14127
+ IStripUnitContentData$1.prototype.request;
14128
+ }
14129
+ var ContentStripFacetFilterComponent = /** @class */ (function (_super) {
14130
+ __extends(ContentStripFacetFilterComponent, _super);
14131
+ function ContentStripFacetFilterComponent(environment, contentSvc, loggerSvc, eventSvc, configSvc, utilitySvc, router, userSvc, translate, langtranslations) {
14132
+ var _this = _super.call(this) || this;
14133
+ _this.contentSvc = contentSvc;
14134
+ _this.loggerSvc = loggerSvc;
14135
+ _this.eventSvc = eventSvc;
14136
+ _this.configSvc = configSvc;
14137
+ _this.utilitySvc = utilitySvc;
14138
+ _this.router = router;
14139
+ _this.userSvc = userSvc;
14140
+ _this.translate = translate;
14141
+ _this.langtranslations = langtranslations;
14142
+ _this.emptyResponse = new core.EventEmitter();
14143
+ _this.viewAllResponse = new core.EventEmitter();
14144
+ _this.telemtryResponse = new core.EventEmitter();
14145
+ _this.providerId = '';
14146
+ _this.emitViewAll = false;
14147
+ _this.channnelName = '';
14148
+ _this.id = "ws-strip-miltiple_" + Math.random();
14149
+ _this.stripsResultDataMap = {};
14150
+ _this.stripsKeyOrder = [];
14151
+ _this.showAccordionData = true;
14152
+ _this.showParentLoader = false;
14153
+ _this.showParentError = false;
14154
+ _this.showParentNoData = false;
14155
+ _this.errorDataCount = 0;
14156
+ _this.noDataCount = 0;
14157
+ _this.successDataCount = 0;
14158
+ _this.contentAvailable = true;
14159
+ _this.baseUrl = _this.configSvc.sitePath || '';
14160
+ _this.veifiedKarmayogi = false;
14161
+ _this.changeEventSubscription = null;
14162
+ _this.defaultMaxWidgets = 12;
14163
+ _this.todaysEvents = [];
14164
+ if (localStorage.getItem('websiteLanguage')) {
14165
+ _this.translate.setDefaultLang('en');
14166
+ /** @type {?} */
14167
+ var lang = JSON.stringify(localStorage.getItem('websiteLanguage'));
14168
+ lang = lang.replace(/\"/g, '');
14169
+ _this.translate.use(lang);
14170
+ }
14171
+ _this.environment = environment;
14172
+ return _this;
14173
+ }
14174
+ /**
14175
+ * @return {?}
14176
+ */
14177
+ ContentStripFacetFilterComponent.prototype.ngOnDestroy = /**
14178
+ * @return {?}
14179
+ */
14180
+ function () {
14181
+ throw new Error('Method not implemented.');
14182
+ };
14183
+ /**
14184
+ * @return {?}
14185
+ */
14186
+ ContentStripFacetFilterComponent.prototype.ngOnInit = /**
14187
+ * @return {?}
14188
+ */
14189
+ function () {
14190
+ var _this = this;
14191
+ this.initData();
14192
+ this.contentSvc.telemetryData$.subscribe((/**
14193
+ * @param {?} data
14194
+ * @return {?}
14195
+ */
14196
+ function (data) {
14197
+ _this.telemtryResponse.emit(data);
14198
+ }));
14199
+ };
14200
+ /**
14201
+ * @private
14202
+ * @return {?}
14203
+ */
14204
+ ContentStripFacetFilterComponent.prototype.initData = /**
14205
+ * @private
14206
+ * @return {?}
14207
+ */
14208
+ function () {
14209
+ var e_1, _a;
14210
+ var _this = this;
14211
+ this.stripsKeyOrder = this.widgetData && this.widgetData.strips && this.widgetData.strips.map((/**
14212
+ * @param {?} strip
14213
+ * @return {?}
14214
+ */
14215
+ function (strip) { return strip.key; })) || [];
14216
+ if (this.widgetData.loader && this.widgetData.strips.length) {
14217
+ this.showParentLoader = true;
14218
+ }
14219
+ try {
14220
+ // Fetch the data
14221
+ for (var _b = __values(this.widgetData.strips), _c = _b.next(); !_c.done; _c = _b.next()) {
14222
+ var strip = _c.value;
14223
+ if (this.checkForEmptyWidget(strip)) {
14224
+ this.fetchStripFromRequestData(strip, false);
14225
+ }
14226
+ else {
14227
+ this.processStrip(strip, [], 'done', true, null);
14228
+ }
14229
+ }
14230
+ }
14231
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
14232
+ finally {
14233
+ try {
14234
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
14235
+ }
14236
+ finally { if (e_1) throw e_1.error; }
14237
+ }
14238
+ // Subscription for changes
14239
+ /** @type {?} */
14240
+ var keyAndEvent = this.widgetData.strips
14241
+ .map((/**
14242
+ * @param {?} strip
14243
+ * @return {?}
14244
+ */
14245
+ function (strip) { return ({
14246
+ key: strip.key,
14247
+ type: (strip.refreshEvent && strip.refreshEvent.eventType) || '',
14248
+ from: (strip.refreshEvent && strip.refreshEvent.from.toString()) || '',
14249
+ }); }))
14250
+ .filter((/**
14251
+ * @param {?} __0
14252
+ * @return {?}
14253
+ */
14254
+ function (_a) {
14255
+ var key = _a.key, type = _a.type, from = _a.from;
14256
+ return key && type && from;
14257
+ }));
14258
+ /** @type {?} */
14259
+ var eventTypeSet = new Set(keyAndEvent.map((/**
14260
+ * @param {?} e
14261
+ * @return {?}
14262
+ */
14263
+ function (e) { return e.type; })));
14264
+ this.changeEventSubscription = this.eventSvc.events$
14265
+ .pipe(operators.filter((/**
14266
+ * @param {?} event
14267
+ * @return {?}
14268
+ */
14269
+ function (event) { return eventTypeSet.has(event.eventType); })))
14270
+ .subscribe((/**
14271
+ * @param {?} event
14272
+ * @return {?}
14273
+ */
14274
+ function (event) {
14275
+ keyAndEvent
14276
+ .filter((/**
14277
+ * @param {?} e
14278
+ * @return {?}
14279
+ */
14280
+ function (e) { return e.type === event.eventType && e.from === event.from; }))
14281
+ .map((/**
14282
+ * @param {?} e
14283
+ * @return {?}
14284
+ */
14285
+ function (e) { return e.key; }))
14286
+ .forEach((/**
14287
+ * @param {?} k
14288
+ * @return {?}
14289
+ */
14290
+ function (k) { return _this.fetchStripFromKey(k, false); }));
14291
+ }));
14292
+ };
14293
+ /**
14294
+ * @private
14295
+ * @param {?} key
14296
+ * @param {?=} calculateParentStatus
14297
+ * @return {?}
14298
+ */
14299
+ ContentStripFacetFilterComponent.prototype.fetchStripFromKey = /**
14300
+ * @private
14301
+ * @param {?} key
14302
+ * @param {?=} calculateParentStatus
14303
+ * @return {?}
14304
+ */
14305
+ function (key, calculateParentStatus) {
14306
+ if (calculateParentStatus === void 0) { calculateParentStatus = true; }
14307
+ /** @type {?} */
14308
+ var stripData = this.widgetData.strips.find((/**
14309
+ * @param {?} strip
14310
+ * @return {?}
14311
+ */
14312
+ function (strip) { return strip.key === key; }));
14313
+ if (stripData) {
14314
+ this.fetchStripFromRequestData(stripData, calculateParentStatus);
14315
+ }
14316
+ };
14317
+ /**
14318
+ * @private
14319
+ * @param {?} strip
14320
+ * @param {?=} calculateParentStatus
14321
+ * @return {?}
14322
+ */
14323
+ ContentStripFacetFilterComponent.prototype.fetchStripFromRequestData = /**
14324
+ * @private
14325
+ * @param {?} strip
14326
+ * @param {?=} calculateParentStatus
14327
+ * @return {?}
14328
+ */
14329
+ function (strip, calculateParentStatus) {
14330
+ if (calculateParentStatus === void 0) { calculateParentStatus = true; }
14331
+ // setting initial values
14332
+ strip.loaderWidgets = this.transformSkeletonToWidgets(strip);
14333
+ this.processStrip(strip, [], 'fetching', false, null);
14334
+ if (strip && strip.stripRequestFor === ApiRequestFor.SEARCH && !strip.onTabClickRequest) {
14335
+ this.fetchFromSearch(strip, calculateParentStatus);
14336
+ }
14337
+ };
14338
+ /**
14339
+ * @private
14340
+ * @param {?} strip
14341
+ * @return {?}
14342
+ */
14343
+ ContentStripFacetFilterComponent.prototype.transformSkeletonToWidgets = /**
14344
+ * @private
14345
+ * @param {?} strip
14346
+ * @return {?}
14347
+ */
14348
+ function (strip) {
14349
+ return [1, 2, 3, 4, 5, 6, 7, 7, 8, 9, 10].map((/**
14350
+ * @param {?} _content
14351
+ * @return {?}
14352
+ */
14353
+ function (_content) { return ({
14354
+ widgetType: 'cardLib',
14355
+ widgetSubType: 'cardContentLib',
14356
+ widgetHostClass: 'mb-2',
14357
+ widgetData: {
14358
+ cardSubType: strip.loaderConfig && strip.loaderConfig.cardSubType || 'card-standard-skeleton',
14359
+ cardCustomeClass: strip.customeClass ? strip.customeClass : '',
14360
+ },
14361
+ }); }));
14362
+ };
14363
+ /**
14364
+ * @private
14365
+ * @param {?} strip
14366
+ * @param {?=} results
14367
+ * @param {?=} fetchStatus
14368
+ * @param {?=} calculateParentStatus
14369
+ * @param {?=} _viewMoreUrl
14370
+ * @param {?=} tabsResults
14371
+ * @return {?}
14372
+ */
14373
+ ContentStripFacetFilterComponent.prototype.processStrip = /**
14374
+ * @private
14375
+ * @param {?} strip
14376
+ * @param {?=} results
14377
+ * @param {?=} fetchStatus
14378
+ * @param {?=} calculateParentStatus
14379
+ * @param {?=} _viewMoreUrl
14380
+ * @param {?=} tabsResults
14381
+ * @return {?}
14382
+ */
14383
+ function (strip, results, fetchStatus, calculateParentStatus, _viewMoreUrl, tabsResults) {
14384
+ if (results === void 0) { results = []; }
14385
+ if (calculateParentStatus === void 0) { calculateParentStatus = true; }
14386
+ return __awaiter(this, void 0, void 0, function () {
14387
+ var stripData;
14388
+ var _a;
14389
+ return __generator(this, function (_b) {
14390
+ stripData = {
14391
+ viewMoreUrl: strip.viewMoreUrl,
14392
+ key: strip.key,
14393
+ canHideStrip: Boolean(strip.canHideStrip),
14394
+ showStrip: this.getIfStripHidden(strip.key),
14395
+ noDataWidget: strip.noDataWidget,
14396
+ errorWidget: strip.errorWidget,
14397
+ stripInfo: strip.info,
14398
+ stripTitle: strip.title,
14399
+ stripTitleLink: strip.stripTitleLink,
14400
+ disableTranslate: strip.disableTranslate,
14401
+ sliderConfig: strip.sliderConfig,
14402
+ tabs: tabsResults ? tabsResults : strip.tabs,
14403
+ stripName: strip.name,
14404
+ mode: strip.mode,
14405
+ stripConfig: strip.stripConfig,
14406
+ stripBackground: strip.stripBackground,
14407
+ secondaryHeading: strip.secondaryHeading,
14408
+ loaderWidgets: strip.loaderWidgets || [],
14409
+ hideViewMoreUrl: strip.hideViewMoreUrl || false,
14410
+ widgets: fetchStatus === 'done'
14411
+ ? __spread((strip.preWidgets || []).map((/**
14412
+ * @param {?} w
14413
+ * @return {?}
14414
+ */
14415
+ function (w) { return (__assign({}, w, { widgetHostClass: "mb-2 " + w.widgetHostClass })); })), results, (strip.postWidgets || []).map((/**
14416
+ * @param {?} w
14417
+ * @return {?}
14418
+ */
14419
+ function (w) { return (__assign({}, w, { widgetHostClass: "mb-2 " + w.widgetHostClass })); }))) : [],
14420
+ showOnNoData: Boolean(strip.noDataWidget &&
14421
+ !((strip.preWidgets || []).length + results.length + (strip.postWidgets || []).length) &&
14422
+ fetchStatus === 'done'),
14423
+ showOnLoader: Boolean(strip.loader && fetchStatus === 'fetching'),
14424
+ showOnError: Boolean(strip.errorWidget && fetchStatus === 'error'),
14425
+ };
14426
+ // const stripData = this.stripsResultDataMap[strip.key]
14427
+ this.stripsResultDataMap = __assign({}, this.stripsResultDataMap, (_a = {}, _a[strip.key] = stripData, _a));
14428
+ if (!tabsResults) {
14429
+ if (calculateParentStatus &&
14430
+ (fetchStatus === 'done' || fetchStatus === 'error') &&
14431
+ stripData.widgets) {
14432
+ this.checkParentStatus(fetchStatus, stripData.widgets.length);
14433
+ }
14434
+ if (calculateParentStatus && !(results && results.length > 0)) {
14435
+ this.contentAvailable = false;
14436
+ }
14437
+ else if (results && results.length > 0) {
14438
+ this.contentAvailable = true;
14439
+ }
14440
+ }
14441
+ else {
14442
+ this.contentAvailable = true;
14443
+ }
14444
+ return [2 /*return*/];
14445
+ });
14446
+ });
14447
+ };
14448
+ /**
14449
+ * @private
14450
+ * @param {?} fetchStatus
14451
+ * @param {?} stripWidgetsCount
14452
+ * @return {?}
14453
+ */
14454
+ ContentStripFacetFilterComponent.prototype.checkParentStatus = /**
14455
+ * @private
14456
+ * @param {?} fetchStatus
14457
+ * @param {?} stripWidgetsCount
14458
+ * @return {?}
14459
+ */
14460
+ function (fetchStatus, stripWidgetsCount) {
14461
+ if (fetchStatus === 'done' && !stripWidgetsCount) {
14462
+ this.noDataCount += 1;
14463
+ }
14464
+ else if (fetchStatus === 'done' && stripWidgetsCount) {
14465
+ this.successDataCount += 1;
14466
+ }
14467
+ else if (fetchStatus === 'error') {
14468
+ this.errorDataCount += 1;
14469
+ }
14470
+ /** @type {?} */
14471
+ var settledCount = this.noDataCount + this.successDataCount + this.errorDataCount;
14472
+ /** @type {?} */
14473
+ var totalCount = this.widgetData.strips.length;
14474
+ if (this.successDataCount > 0 && settledCount < totalCount) {
14475
+ return;
14476
+ }
14477
+ this.showParentLoader = settledCount !== totalCount;
14478
+ this.showParentNoData =
14479
+ this.noDataCount > 0 && this.noDataCount + this.errorDataCount === totalCount;
14480
+ this.showParentError = this.errorDataCount === totalCount;
14481
+ };
14482
+ /**
14483
+ * @param {?} strip
14484
+ * @return {?}
14485
+ */
14486
+ ContentStripFacetFilterComponent.prototype.checkForEmptyWidget = /**
14487
+ * @param {?} strip
14488
+ * @return {?}
14489
+ */
14490
+ function (strip) {
14491
+ if (strip.request &&
14492
+ ((strip.request.requestBody && Object.keys(strip.request.requestBody).length))) {
14493
+ return true;
14494
+ }
14495
+ return false;
14496
+ };
14497
+ // strip settings
14498
+ // strip settings
14499
+ /**
14500
+ * @param {?} data
14501
+ * @return {?}
14502
+ */
14503
+ ContentStripFacetFilterComponent.prototype.toggleInfo =
14504
+ // strip settings
14505
+ /**
14506
+ * @param {?} data
14507
+ * @return {?}
14508
+ */
14509
+ function (data) {
14510
+ /** @type {?} */
14511
+ var stripInfo = this.stripsResultDataMap[data.key].stripInfo;
14512
+ if (stripInfo) {
14513
+ if (stripInfo.mode !== 'below') {
14514
+ this.loggerSvc.warn("strip info mode: " + stripInfo.mode + " not implemented yet");
14515
+ stripInfo.mode = 'below';
14516
+ }
14517
+ if (stripInfo.mode === 'below') {
14518
+ this.stripsResultDataMap[data.key].stripInfo = __assign({}, stripInfo, { visibilityMode: stripInfo.visibilityMode === 'hidden' ? 'visible' : 'hidden' });
14519
+ }
14520
+ }
14521
+ };
14522
+ /**
14523
+ * @param {?} stripData
14524
+ * @return {?}
14525
+ */
14526
+ ContentStripFacetFilterComponent.prototype.raiseTelemetry = /**
14527
+ * @param {?} stripData
14528
+ * @return {?}
14529
+ */
14530
+ function (stripData) {
14531
+ this.telemtryResponse.emit(stripData);
14532
+ };
14533
+ /**
14534
+ * @param {?} key
14535
+ * @return {?}
14536
+ */
14537
+ ContentStripFacetFilterComponent.prototype.setHiddenForStrip = /**
14538
+ * @param {?} key
14539
+ * @return {?}
14540
+ */
14541
+ function (key) {
14542
+ this.stripsResultDataMap[key].showStrip = false;
14543
+ sessionStorage.setItem("cstrip_" + key, '1');
14544
+ };
14545
+ // selected pills data
14546
+ // selected pills data
14547
+ /**
14548
+ * @param {?} tabdata
14549
+ * @param {?} tabIndex
14550
+ * @return {?}
14551
+ */
14552
+ ContentStripFacetFilterComponent.prototype.getSelectedPillIndex =
14553
+ // selected pills data
14554
+ /**
14555
+ * @param {?} tabdata
14556
+ * @param {?} tabIndex
14557
+ * @return {?}
14558
+ */
14559
+ function (tabdata, tabIndex) {
14560
+ if (tabdata.pillsData && tabdata.pillsData.length) {
14561
+ /** @type {?} */
14562
+ var index = tabdata.pillsData.findIndex((/**
14563
+ * @param {?} pill
14564
+ * @return {?}
14565
+ */
14566
+ function (pill) {
14567
+ return pill.selected;
14568
+ }));
14569
+ return index;
14570
+ }
14571
+ return 0;
14572
+ };
14573
+ /**
14574
+ * @param {?} data
14575
+ * @return {?}
14576
+ */
14577
+ ContentStripFacetFilterComponent.prototype.getdata = /**
14578
+ * @param {?} data
14579
+ * @return {?}
14580
+ */
14581
+ function (data) {
14582
+ if (data.stripInfo) {
14583
+ return data.stripInfo.widget;
14584
+ }
14585
+ return {};
14586
+ };
14587
+ /**
14588
+ * @param {?} tabEvent
14589
+ * @param {?} pillIndex
14590
+ * @param {?} stripMap
14591
+ * @param {?} stripKey
14592
+ * @return {?}
14593
+ */
14594
+ ContentStripFacetFilterComponent.prototype.tabClicked = /**
14595
+ * @param {?} tabEvent
14596
+ * @param {?} pillIndex
14597
+ * @param {?} stripMap
14598
+ * @param {?} stripKey
14599
+ * @return {?}
14600
+ */
14601
+ function (tabEvent, pillIndex, stripMap, stripKey) {
14602
+ var _this = this;
14603
+ if (stripMap && stripMap.tabs && stripMap.tabs[tabEvent.index]) {
14604
+ stripMap.tabs[tabEvent.index].pillsData[pillIndex].fetchTabStatus = 'inprogress';
14605
+ stripMap.tabs[tabEvent.index].pillsData[pillIndex].tabLoading = true;
14606
+ stripMap.showOnLoader = true;
14607
+ }
14608
+ /** @type {?} */
14609
+ var data = {
14610
+ label: "" + tabEvent.tab.textLabel,
14611
+ index: tabEvent.index,
14612
+ };
14613
+ this.eventSvc.raiseInteractTelemetry({
14614
+ type: utilsV2.WsEvents.EnumInteractTypes.CLICK,
14615
+ subType: utilsV2.WsEvents.EnumInteractSubTypes.HOME_PAGE_STRIP_TABS,
14616
+ id: lodash.camelCase(data.label) + "-tab",
14617
+ }, {}, {
14618
+ module: utilsV2.WsEvents.EnumTelemetrymodules.HOME,
14619
+ });
14620
+ /** @type {?} */
14621
+ var currentTabFromMap = stripMap.tabs && stripMap.tabs[tabEvent.index];
14622
+ /** @type {?} */
14623
+ var currentPillFromMap = stripMap.tabs && stripMap.tabs[tabEvent.index].pillsData[pillIndex];
14624
+ /** @type {?} */
14625
+ var currentStrip = this.widgetData.strips.find((/**
14626
+ * @param {?} s
14627
+ * @return {?}
14628
+ */
14629
+ function (s) { return s.key === stripKey; }));
14630
+ if (this.stripsResultDataMap[stripKey] && currentTabFromMap) {
14631
+ this.stripsResultDataMap[stripKey].viewMoreUrl.queryParams = __assign({}, this.stripsResultDataMap[stripKey].viewMoreUrl.queryParams, { tabSelected: currentTabFromMap.value, pillSelected: currentPillFromMap.value });
14632
+ }
14633
+ if (currentStrip && currentTabFromMap && !currentTabFromMap.computeDataOnClick && currentPillFromMap) {
14634
+ if (currentPillFromMap.requestRequired && currentPillFromMap.request) {
14635
+ if (currentPillFromMap.request.searchV6) {
14636
+ // this.getTabDataByNewReqSearchV6(currentStrip, tabEvent.index, currentTabFromMap, true);
14637
+ }
14638
+ stripMap.tabs[tabEvent.index].pillsData[pillIndex].tabLoading = false;
14639
+ }
14640
+ else {
14641
+ this.getTabDataByfilter(currentStrip, currentTabFromMap, true);
14642
+ if (stripMap && stripMap.tabs && stripMap.tabs[tabEvent.index]) {
14643
+ stripMap.tabs[tabEvent.index].pillsData[pillIndex].fetchTabStatus = 'inprogress';
14644
+ stripMap.tabs[tabEvent.index].pillsData[pillIndex].tabLoading = false;
14645
+ stripMap.showOnLoader = true;
14646
+ }
14647
+ setTimeout((/**
14648
+ * @return {?}
14649
+ */
14650
+ function () {
14651
+ if (stripMap && stripMap.tabs && stripMap.tabs[tabEvent.index]) {
14652
+ stripMap.tabs[tabEvent.index].pillsData[pillIndex].fetchTabStatus = 'done';
14653
+ stripMap.tabs[tabEvent.index].pillsData[pillIndex].tabLoading = false;
14654
+ stripMap.showOnLoader = false;
14655
+ _this.resetSelectedPill(stripMap.tabs[tabEvent.index].pillsData);
14656
+ stripMap.tabs[tabEvent.index].pillsData[pillIndex]['selected'] = true;
14657
+ }
14658
+ }), 200);
14659
+ }
14660
+ }
14661
+ };
14662
+ /**
14663
+ * @param {?} event
14664
+ * @param {?} stripMap
14665
+ * @param {?} stripKey
14666
+ * @param {?} pillIndex
14667
+ * @param {?} tabIndex
14668
+ * @return {?}
14669
+ */
14670
+ ContentStripFacetFilterComponent.prototype.pillClicked = /**
14671
+ * @param {?} event
14672
+ * @param {?} stripMap
14673
+ * @param {?} stripKey
14674
+ * @param {?} pillIndex
14675
+ * @param {?} tabIndex
14676
+ * @return {?}
14677
+ */
14678
+ function (event, stripMap, stripKey, pillIndex, tabIndex) {
14679
+ var _this = this;
14680
+ if (stripMap && stripMap.tabs && stripMap.tabs[tabIndex]) {
14681
+ stripMap.tabs[tabIndex].pillsData[pillIndex].fetchTabStatus = 'inprogress';
14682
+ stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = true;
14683
+ stripMap.showOnLoader = true;
14684
+ }
14685
+ /** @type {?} */
14686
+ var currentTabFromMap = stripMap.tabs && stripMap.tabs[tabIndex];
14687
+ /** @type {?} */
14688
+ var currentPillFromMap = stripMap.tabs && stripMap.tabs[tabIndex].pillsData[pillIndex];
14689
+ /** @type {?} */
14690
+ var currentStrip = this.widgetData.strips.find((/**
14691
+ * @param {?} s
14692
+ * @return {?}
14693
+ */
14694
+ function (s) { return s.key === stripKey; }));
14695
+ if (this.stripsResultDataMap[stripKey] && currentTabFromMap) {
14696
+ this.stripsResultDataMap[stripKey].viewMoreUrl.queryParams = __assign({}, this.stripsResultDataMap[stripKey].viewMoreUrl.queryParams, { tabSelected: currentTabFromMap.value, pillSelected: currentPillFromMap.value });
14697
+ }
14698
+ if (currentStrip && currentTabFromMap && !currentTabFromMap.computeDataOnClick && currentPillFromMap) {
14699
+ if (currentPillFromMap.requestRequired && currentPillFromMap.request) {
14700
+ // call API to get tab data and process
14701
+ // this.processStrip(currentStrip, [], 'fetching', true, null)
14702
+ if (currentPillFromMap.request.searchV6) {
14703
+ // this.getTabDataByNewReqSearchV6(currentStrip, tabIndex, pillIndex, currentPillFromMap, true);
14704
+ }
14705
+ else if (currentPillFromMap.request.trendingSearch) {
14706
+ // this.getTabDataByNewReqTrending(currentStrip, tabIndex, pillIndex, currentPillFromMap, true);
14707
+ }
14708
+ // if (stripMap && stripMap.tabs && stripMap.tabs[tabEvent.index]) {
14709
+ // stripMap.tabs[tabEvent.index].tabLoading = false;
14710
+ // }
14711
+ stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = false;
14712
+ }
14713
+ else {
14714
+ this.getTabDataByfilter(currentStrip, currentTabFromMap, true);
14715
+ if (stripMap && stripMap.tabs && stripMap.tabs[tabIndex]) {
14716
+ stripMap.tabs[tabIndex].pillsData[pillIndex].fetchTabStatus = 'inprogress';
14717
+ stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = false;
14718
+ stripMap.showOnLoader = true;
14719
+ }
14720
+ setTimeout((/**
14721
+ * @return {?}
14722
+ */
14723
+ function () {
14724
+ if (stripMap && stripMap.tabs && stripMap.tabs[tabIndex]) {
14725
+ stripMap.tabs[tabIndex].pillsData[pillIndex].fetchTabStatus = 'done';
14726
+ stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = false;
14727
+ stripMap.showOnLoader = false;
14728
+ _this.resetSelectedPill(stripMap.tabs[tabIndex].pillsData);
14729
+ stripMap.tabs[tabIndex].pillsData[pillIndex]['selected'] = true;
14730
+ }
14731
+ }), 200);
14732
+ }
14733
+ }
14734
+ };
14735
+ /**
14736
+ * @param {?} pillData
14737
+ * @return {?}
14738
+ */
14739
+ ContentStripFacetFilterComponent.prototype.resetSelectedPill = /**
14740
+ * @param {?} pillData
14741
+ * @return {?}
14742
+ */
14743
+ function (pillData) {
14744
+ if (pillData && pillData.length) {
14745
+ pillData.forEach((/**
14746
+ * @param {?} pill
14747
+ * @return {?}
14748
+ */
14749
+ function (pill) {
14750
+ pill['selected'] = false;
14751
+ }));
14752
+ }
14753
+ };
14754
+ /**
14755
+ * @param {?} strip
14756
+ * @param {?} currentTab
14757
+ * @param {?} calculateParentStatus
14758
+ * @return {?}
14759
+ */
14760
+ ContentStripFacetFilterComponent.prototype.getTabDataByfilter = /**
14761
+ * @param {?} strip
14762
+ * @param {?} currentTab
14763
+ * @param {?} calculateParentStatus
14764
+ * @return {?}
14765
+ */
14766
+ function (strip, currentTab, calculateParentStatus) {
14767
+ // tslint:disable:no-console
14768
+ console.log('strip -- ', strip);
14769
+ // tslint:disable:no-console
14770
+ console.log('currentTab -- ', currentTab);
14771
+ // tslint:disable:no-console
14772
+ console.log('calculateParentStatus-- ', calculateParentStatus);
14773
+ // TODO: Write logic for individual filter if passed in config
14774
+ // add switch case based on config key passed
14775
+ };
14776
+ /**
14777
+ * @private
14778
+ * @param {?} key
14779
+ * @return {?}
14780
+ */
14781
+ ContentStripFacetFilterComponent.prototype.getIfStripHidden = /**
14782
+ * @private
14783
+ * @param {?} key
14784
+ * @return {?}
14785
+ */
14786
+ function (key) {
14787
+ /** @type {?} */
14788
+ var storageItem = sessionStorage.getItem("cstrip_" + key);
14789
+ return Boolean(storageItem !== '1');
14790
+ };
14791
+ // translate labes
14792
+ // translate labes
14793
+ /**
14794
+ * @param {?} label
14795
+ * @param {?} type
14796
+ * @return {?}
14797
+ */
14798
+ ContentStripFacetFilterComponent.prototype.translateLabels =
14799
+ // translate labes
14800
+ /**
14801
+ * @param {?} label
14802
+ * @param {?} type
14803
+ * @return {?}
14804
+ */
14805
+ function (label, type) {
14806
+ return this.langtranslations.translateLabel(label, type, '');
14807
+ };
14808
+ /**
14809
+ * @param {?} stripData
14810
+ * @param {?} path
14811
+ * @param {?} queryParamsData
14812
+ * @return {?}
14813
+ */
14814
+ ContentStripFacetFilterComponent.prototype.redirectViewAll = /**
14815
+ * @param {?} stripData
14816
+ * @param {?} path
14817
+ * @param {?} queryParamsData
14818
+ * @return {?}
14819
+ */
14820
+ function (stripData, path, queryParamsData) {
14821
+ if (this.emitViewAll) {
14822
+ this.viewAllResponse.emit(stripData);
14823
+ }
14824
+ else {
14825
+ this.router.navigate([path], { queryParams: queryParamsData });
14826
+ }
14827
+ };
14828
+ /**
14829
+ * @param {?} index
14830
+ * @param {?} item
14831
+ * @return {?}
14832
+ */
14833
+ ContentStripFacetFilterComponent.prototype.identify = /**
14834
+ * @param {?} index
14835
+ * @param {?} item
14836
+ * @return {?}
14837
+ */
14838
+ function (index, item) {
14839
+ if (index >= 0) { }
14840
+ return item;
14841
+ };
14842
+ /**
14843
+ * @param {?} index
14844
+ * @param {?} item
14845
+ * @return {?}
14846
+ */
14847
+ ContentStripFacetFilterComponent.prototype.tracker = /**
14848
+ * @param {?} index
14849
+ * @param {?} item
14850
+ * @return {?}
14851
+ */
14852
+ function (index, item) {
14853
+ if (index >= 0) { }
14854
+ return lodash.get(item, 'widgetData.content.identifier');
14855
+ };
14856
+ /**
14857
+ * @param {?} data
14858
+ * @return {?}
14859
+ */
14860
+ ContentStripFacetFilterComponent.prototype.getContineuLearningLenth = /**
14861
+ * @param {?} data
14862
+ * @return {?}
14863
+ */
14864
+ function (data) {
14865
+ return data.widgets ? data.widgets.length : 0;
14866
+ };
14867
+ /**
14868
+ * @param {?} key
14869
+ * @return {?}
14870
+ */
14871
+ ContentStripFacetFilterComponent.prototype.showAccordion = /**
14872
+ * @param {?} key
14873
+ * @return {?}
14874
+ */
14875
+ function (key) {
14876
+ if (this.utilitySvc.isMobile && this.stripsResultDataMap[key].mode === 'accordion') {
14877
+ return this.showAccordionData;
14878
+ }
14879
+ return true;
14880
+ };
14881
+ /**
14882
+ * @param {?} wData
14883
+ * @param {?} data
14884
+ * @return {?}
14885
+ */
14886
+ ContentStripFacetFilterComponent.prototype.checkCondition = /**
14887
+ * @param {?} wData
14888
+ * @param {?} data
14889
+ * @return {?}
14890
+ */
14891
+ function (wData, data) {
14892
+ if (wData.strips[0].stripConfig && wData.strips[0].stripConfig.hideShowAll) {
14893
+ return !wData.strips[0].stripConfig.hideShowAll;
14894
+ }
14895
+ return wData.strips[0].viewMoreUrl && data.widgets && data.widgets.length >= 4;
14896
+ };
14897
+ /**
14898
+ * @param {?} data
14899
+ * @return {?}
14900
+ */
14901
+ ContentStripFacetFilterComponent.prototype.checkVisible = /**
14902
+ * @param {?} data
14903
+ * @return {?}
14904
+ */
14905
+ function (data) {
14906
+ return data.stripInfo && data.stripInfo.visibilityMode === 'visible';
14907
+ };
14908
+ /**
14909
+ * @param {?} stripsResultDataMap
14910
+ * @param {?} key
14911
+ * @return {?}
14912
+ */
14913
+ ContentStripFacetFilterComponent.prototype.getSelectedIndex = /**
14914
+ * @param {?} stripsResultDataMap
14915
+ * @param {?} key
14916
+ * @return {?}
14917
+ */
14918
+ function (stripsResultDataMap, key) {
14919
+ /** @type {?} */
14920
+ var returnValue = 0;
14921
+ return returnValue;
14922
+ };
14923
+ /**
14924
+ * @param {?} data
14925
+ * @return {?}
14926
+ */
14927
+ ContentStripFacetFilterComponent.prototype.getLength = /**
14928
+ * @param {?} data
14929
+ * @return {?}
14930
+ */
14931
+ function (data) {
14932
+ if (!data.tabs || !data.tabs.length) {
14933
+ return data.widgets ? data.widgets.length : 0;
14934
+ }
14935
+ {
14936
+ // if tabs are there check if each tab has widgets and get the tab with max widgets
14937
+ /** @type {?} */
14938
+ var tabWithMaxWidgets_1 = {};
14939
+ data.tabs.forEach((/**
14940
+ * @param {?} tab
14941
+ * @return {?}
14942
+ */
14943
+ function (tab) {
14944
+ if (tab.pillsData && tab.pillsData.length) {
14945
+ tabWithMaxWidgets_1 = tab.pillsData.reduce((/**
14946
+ * @param {?} prev
14947
+ * @param {?} current
14948
+ * @return {?}
14949
+ */
14950
+ function (prev, current) {
14951
+ if (!prev.widgets && !current.widgets) {
14952
+ return current;
14953
+ }
14954
+ if (prev.widgets && current.widgets) {
14955
+ return (prev.widgets.length > current.widgets.length) ? prev : current;
14956
+ }
14957
+ if (current.widgets && !prev.widgets) {
14958
+ return current;
14959
+ }
14960
+ if (!current.widgets && prev.widgets) {
14961
+ return prev;
14962
+ }
14963
+ return current;
14964
+ // return (prev.widgets && current.widgets && (prev.widgets.length > current.widgets.length) ) ? prev : current
14965
+ // tslint:disable-next-line: align
14966
+ }), data.tabs[0]);
14967
+ }
14968
+ }));
14969
+ // if tabs has atleast 1 widgets then strip will show or else not
14970
+ return tabWithMaxWidgets_1.widgets ? tabWithMaxWidgets_1.widgets.length : 0;
14971
+ }
14972
+ };
14973
+ /**
14974
+ * @param {?} data
14975
+ * @return {?}
14976
+ */
14977
+ ContentStripFacetFilterComponent.prototype.isStripShowing = /**
14978
+ * @param {?} data
14979
+ * @return {?}
14980
+ */
14981
+ function (data) {
14982
+ var _this = this;
14983
+ /** @type {?} */
14984
+ var count = 0;
14985
+ if (data && data.key === this.environment.programStripKey && (!data.tabs || !data.tabs.length) &&
14986
+ data.stripTitle === this.environment.programStripName && data.widgets.length > 0) {
14987
+ data.widgets.forEach((/**
14988
+ * @param {?} key
14989
+ * @return {?}
14990
+ */
14991
+ function (key) {
14992
+ if (key && key.widgetData.content.primaryCategory === _this.environment.programStripPrimaryCategory) {
14993
+ count = count + 1;
14994
+ }
14995
+ }));
14996
+ if (count > 0) {
14997
+ data.showStrip = true;
14998
+ }
14999
+ else {
15000
+ data.showStrip = false;
15001
+ }
15002
+ }
15003
+ // console.log('data.key', data, data.key, data.widgets);
15004
+ return data.showStrip;
15005
+ };
15006
+ Object.defineProperty(ContentStripFacetFilterComponent.prototype, "isMobile", {
15007
+ get: /**
15008
+ * @return {?}
15009
+ */
15010
+ function () {
15011
+ return this.utilitySvc.isMobile || false;
15012
+ },
15013
+ enumerable: true,
15014
+ configurable: true
15015
+ });
15016
+ // search api with facets
15017
+ // search api with facets
15018
+ /**
15019
+ * @param {?} strip
15020
+ * @param {?} request
15021
+ * @param {?} apiUrl
15022
+ * @param {?} calculateParentStatus
15023
+ * @return {?}
15024
+ */
15025
+ ContentStripFacetFilterComponent.prototype.postRequestMethod =
15026
+ // search api with facets
15027
+ /**
15028
+ * @param {?} strip
15029
+ * @param {?} request
15030
+ * @param {?} apiUrl
15031
+ * @param {?} calculateParentStatus
15032
+ * @return {?}
15033
+ */
15034
+ function (strip, request, apiUrl, calculateParentStatus) {
15035
+ return __awaiter(this, void 0, void 0, function () {
15036
+ var _this = this;
15037
+ return __generator(this, function (_a) {
15038
+ return [2 /*return*/, new Promise((/**
15039
+ * @param {?} resolve
15040
+ * @param {?} reject
15041
+ * @return {?}
15042
+ */
15043
+ function (resolve, reject) {
15044
+ if (request && request) {
15045
+ _this.contentSvc.postApiMethod(apiUrl, request).subscribe((/**
15046
+ * @param {?} results
15047
+ * @return {?}
15048
+ */
15049
+ function (results) {
15050
+ if (results.result && results.result.content) {
15051
+ /** @type {?} */
15052
+ var showViewMore = Boolean(results.result.content && results.result.content.length > 5 && strip.stripConfig && strip.stripConfig.postCardForSearch);
15053
+ /** @type {?} */
15054
+ var viewMoreUrl = showViewMore
15055
+ ? {
15056
+ path: strip.viewMoreUrl && strip.viewMoreUrl.path || '',
15057
+ queryParams: {
15058
+ tab: 'Learn',
15059
+ q: strip.viewMoreUrl && strip.viewMoreUrl.queryParams,
15060
+ f: {},
15061
+ },
15062
+ }
15063
+ : null;
15064
+ resolve({ results: results, viewMoreUrl: viewMoreUrl });
15065
+ }
15066
+ }), (/**
15067
+ * @param {?} error
15068
+ * @return {?}
15069
+ */
15070
+ function (error) {
15071
+ _this.processStrip(strip, [], 'error', calculateParentStatus, null);
15072
+ reject(error);
15073
+ }));
15074
+ }
15075
+ }))];
15076
+ });
15077
+ });
15078
+ };
15079
+ /**
15080
+ * @param {?} strip
15081
+ * @param {?=} calculateParentStatus
15082
+ * @return {?}
15083
+ */
15084
+ ContentStripFacetFilterComponent.prototype.fetchFromSearch = /**
15085
+ * @param {?} strip
15086
+ * @param {?=} calculateParentStatus
15087
+ * @return {?}
15088
+ */
15089
+ function (strip, calculateParentStatus) {
15090
+ if (calculateParentStatus === void 0) { calculateParentStatus = true; }
15091
+ return __awaiter(this, void 0, void 0, function () {
15092
+ var response, tabIndex, pillIndex, widgets, tabResults, error_1;
15093
+ return __generator(this, function (_a) {
15094
+ switch (_a.label) {
15095
+ case 0:
15096
+ if (!(strip.request && Object.keys(strip.request.requestBody).length)) return [3 /*break*/, 4];
15097
+ _a.label = 1;
15098
+ case 1:
15099
+ _a.trys.push([1, 3, , 4]);
15100
+ return [4 /*yield*/, this.postRequestMethod(strip, strip.request.requestBody, strip.request.apiUrl, calculateParentStatus)];
15101
+ case 2:
15102
+ response = _a.sent();
15103
+ tabIndex = 0;
15104
+ pillIndex = 0;
15105
+ if (response.results && response.results.result) {
15106
+ this.mapAllDataWithFacets(strip, response.results.result.content, response.results.result.facets, calculateParentStatus);
15107
+ widgets = this.transformContentsToWidgets(response.results.result.content, strip);
15108
+ tabResults = [];
15109
+ // if (this.stripsResultDataMap[strip.key] && this.stripsResultDataMap[strip.key].tabs) {
15110
+ // const allTabs = this.stripsResultDataMap[strip.key].tabs;
15111
+ // const allPills = this.stripsResultDataMap[strip.key].tabs[tabIndex].pillsData;
15112
+ // this.resetSelectedPill(allPills)
15113
+ // if (allTabs && allTabs.length && allTabs[tabIndex]) {
15114
+ // if(allPills && allPills.length && allPills[pillIndex]){
15115
+ // allPills[pillIndex] = {
15116
+ // ...allPills[pillIndex],
15117
+ // widgets,
15118
+ // fetchTabStatus: 'done',
15119
+ // selected: true
15120
+ // };
15121
+ // }
15122
+ // allTabs[tabIndex] = {
15123
+ // ...allTabs[tabIndex],
15124
+ // widgets,
15125
+ // fetchTabStatus: 'done',
15126
+ // };
15127
+ // tabResults = allTabs;
15128
+ // }
15129
+ // }
15130
+ // this.processStrip(
15131
+ // strip,
15132
+ // widgets,
15133
+ // 'done',
15134
+ // calculateParentStatus,
15135
+ // response.viewMoreUrl,
15136
+ // tabResults // tabResults as widgets
15137
+ // );
15138
+ }
15139
+ return [3 /*break*/, 4];
15140
+ case 3:
15141
+ error_1 = _a.sent();
15142
+ return [3 /*break*/, 4];
15143
+ case 4: return [2 /*return*/];
15144
+ }
15145
+ });
15146
+ });
15147
+ };
15148
+ /**
15149
+ * @param {?} strip
15150
+ * @param {?} content
15151
+ * @param {?} facets
15152
+ * @param {?} calculateParentStatus
15153
+ * @return {?}
15154
+ */
15155
+ ContentStripFacetFilterComponent.prototype.mapAllDataWithFacets = /**
15156
+ * @param {?} strip
15157
+ * @param {?} content
15158
+ * @param {?} facets
15159
+ * @param {?} calculateParentStatus
15160
+ * @return {?}
15161
+ */
15162
+ function (strip, content, facets, calculateParentStatus) {
15163
+ var _this = this;
15164
+ console.log(strip, content);
15165
+ /** @type {?} */
15166
+ var allTabs = this.stripsResultDataMap[strip.key].tabs;
15167
+ /** @type {?} */
15168
+ var facet = [];
15169
+ allTabs.forEach((/**
15170
+ * @param {?} ele
15171
+ * @return {?}
15172
+ */
15173
+ function (ele) {
15174
+ ele['fetchTabStatus'] = 'done';
15175
+ /** @type {?} */
15176
+ var filteredData = content.filter((/**
15177
+ * @param {?} contEle
15178
+ * @return {?}
15179
+ */
15180
+ function (contEle) { return contEle.nlwUserExp.includes(ele.value); }))
15181
+ // filteredData.forEach(element => {
15182
+ // facet = [...facet,..._.difference(element.nlwOrgs ,facet)];
15183
+ // });
15184
+ ;
15185
+ // filteredData.forEach(element => {
15186
+ // facet = [...facet,..._.difference(element.nlwOrgs ,facet)];
15187
+ // });
15188
+ ele['widgets'] = filteredData;
15189
+ ele.pillsData.forEach((/**
15190
+ * @param {?} pill
15191
+ * @return {?}
15192
+ */
15193
+ function (pill) {
15194
+ if (pill.value === 'all') {
15195
+ pill['widgets'] = _this.transformContentsToWidgets(filteredData, strip);
15196
+ pill['fetchTabStatus'] = 'done';
15197
+ }
15198
+ else if (pill.value === 'course') {
15199
+ /** @type {?} */
15200
+ var contentFilteredData = filteredData.filter((/**
15201
+ * @param {?} contEle
15202
+ * @return {?}
15203
+ */
15204
+ function (contEle) { return contEle.courseCategory.toLowerCase() === pill.value; }));
15205
+ pill['widgets'] = _this.transformContentsToWidgets(contentFilteredData, strip);
15206
+ pill['fetchTabStatus'] = 'done';
15207
+ }
15208
+ else {
15209
+ /** @type {?} */
15210
+ var contentFilteredData = filteredData.filter((/**
15211
+ * @param {?} contEle
15212
+ * @return {?}
15213
+ */
15214
+ function (contEle) { return contEle.courseCategory.toLowerCase() !== 'course'; }));
15215
+ pill['widgets'] = _this.transformContentsToWidgets(contentFilteredData, strip);
15216
+ pill['fetchTabStatus'] = 'done';
15217
+ }
15218
+ }));
15219
+ // ele['facets'] = [{
15220
+ // name:'nlwOrgs',
15221
+ // values: facet
15222
+ // }]
15223
+ ele['facets'] = facets;
15224
+ }));
15225
+ strip.tabs[0].pillsData[0].fetchTabStatus = 'done';
15226
+ strip.tabs[0].pillsData[0].tabLoading = false;
15227
+ strip.showOnLoader = false;
15228
+ this.resetSelectedPill(strip.tabs[0].pillsData);
15229
+ strip.tabs[0].pillsData[0]['selected'] = true;
15230
+ this.processStrip(strip, [], 'done', calculateParentStatus, strip.viewMoreUrl, allTabs // tabResults as widgets
15231
+ );
15232
+ };
15233
+ /**
15234
+ * @private
15235
+ * @param {?} contents
15236
+ * @param {?} strip
15237
+ * @return {?}
15238
+ */
15239
+ ContentStripFacetFilterComponent.prototype.transformContentsToWidgets = /**
15240
+ * @private
15241
+ * @param {?} contents
15242
+ * @param {?} strip
15243
+ * @return {?}
15244
+ */
15245
+ function (contents, strip) {
15246
+ return (contents || []).map((/**
15247
+ * @param {?} content
15248
+ * @param {?} idx
15249
+ * @return {?}
15250
+ */
15251
+ function (content, idx) { return (content ? {
15252
+ widgetType: 'cardLib',
15253
+ widgetSubType: 'cardContentLib',
15254
+ widgetHostClass: 'mb-2',
15255
+ widgetData: __assign({ content: content }, (content.batch && { batch: content.batch }), { cardSubType: strip.stripConfig && strip.stripConfig.cardSubType, cardCustomeClass: strip.customeClass ? strip.customeClass : '', context: { pageSection: strip.key, position: idx }, intranetMode: strip.stripConfig && strip.stripConfig.intranetMode, deletedMode: strip.stripConfig && strip.stripConfig.deletedMode, contentTags: strip.stripConfig && strip.stripConfig.contentTags }),
15256
+ } : {
15257
+ widgetType: 'card',
15258
+ widgetSubType: 'cardContent',
15259
+ widgetHostClass: 'mb-2',
15260
+ widgetData: {},
15261
+ }); }));
15262
+ };
15263
+ /**
15264
+ * @param {?} eventData
15265
+ * @param {?} stripMap
15266
+ * @param {?} tabIndex
15267
+ * @return {?}
15268
+ */
15269
+ ContentStripFacetFilterComponent.prototype.getorgData = /**
15270
+ * @param {?} eventData
15271
+ * @param {?} stripMap
15272
+ * @param {?} tabIndex
15273
+ * @return {?}
15274
+ */
15275
+ function (eventData, stripMap, tabIndex) {
15276
+ var _this = this;
15277
+ console.log(eventData);
15278
+ /** @type {?} */
15279
+ var selectedValue = eventData.target.value;
15280
+ /** @type {?} */
15281
+ var pillIndex = this.getSelectedPillIndex(stripMap.tabs[tabIndex], tabIndex);
15282
+ if (stripMap && stripMap.tabs && stripMap.tabs[tabIndex]) {
15283
+ stripMap.tabs[tabIndex].pillsData[pillIndex].fetchTabStatus = 'inprogress';
15284
+ stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = false;
15285
+ stripMap.showOnLoader = true;
15286
+ /** @type {?} */
15287
+ var returnedValues = stripMap.tabs[tabIndex].widgets.filter((/**
15288
+ * @param {?} ele
15289
+ * @return {?}
15290
+ */
15291
+ function (ele) {
15292
+ /** @type {?} */
15293
+ var words = ele.nlwOrgs.map((/**
15294
+ * @param {?} v
15295
+ * @return {?}
15296
+ */
15297
+ function (v) { return v.toLowerCase(); }));
15298
+ return words.includes(selectedValue);
15299
+ }));
15300
+ stripMap.tabs[tabIndex].pillsData[pillIndex]['widgets'] = this.transformContentsToWidgets(returnedValues, stripMap);
15301
+ }
15302
+ setTimeout((/**
15303
+ * @return {?}
15304
+ */
15305
+ function () {
15306
+ if (stripMap && stripMap.tabs && stripMap.tabs[tabIndex]) {
15307
+ stripMap.tabs[tabIndex].pillsData[pillIndex].fetchTabStatus = 'done';
15308
+ stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = false;
15309
+ stripMap.showOnLoader = false;
15310
+ _this.resetSelectedPill(stripMap.tabs[tabIndex].pillsData);
15311
+ stripMap.tabs[tabIndex].pillsData[pillIndex]['selected'] = true;
15312
+ }
15313
+ }), 200);
15314
+ };
15315
+ ContentStripFacetFilterComponent.decorators = [
15316
+ { type: core.Component, args: [{
15317
+ selector: 'sb-uic-content-strip-facet-filter',
15318
+ 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])\" class=\"block md:hidden\">\n <div \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 </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 <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, 0, stripsResultDataMap[key], key)\">\n <mat-tab label=\"{{tab?.label}}\" *ngFor=\"let tab of stripsResultDataMap[key].tabs; let last = last;let tabIndex = index\">\n <ng-template mat-tab-label>\n <span><span *ngIf=\"!tab?.disableTranslate\">{{ translateLabels(tab?.label, 'home') }}</span>\n <span *ngIf=\"tab?.disableTranslate\">{{tab?.label}}</span> &nbsp;</span>\n <span *ngIf=\"tab?.showTabDataCount && tab?.widgets?.length\">({{tab?.widgets?.length}})</span>\n </ng-template>\n\n <div class=\"wfull\" *ngIf=\"tab?.pillsData && tab?.pillsData?.length\">\n <div class=\"flex justify-between item-center flex-wrap gap-4\">\n <div class=\"\">\n <ng-container *ngFor=\"let facet of tab?.facets\">\n <div class=\"facets-select\">\n <select (change)=\"getorgData($event, stripsResultDataMap[key], tabIndex)\">\n <option value=\"\" selected disabled>Choose by organisation</option>\n <option value=\"{{d.name}}\" *ngFor=\"let d of facet.values\" >{{d.name}}</option>\n </select>\n </div>\n </ng-container>\n </div>\n <div>\n <ng-container >\n <mat-chip-list class=\"content-pill-data\" aria-label=\"Fish selection\">\n <ng-container *ngFor=\"let pill of tab?.pillsData;let p = index\">\n <mat-chip [selected]=\"pill?.selected\" (click)=\"pillClicked($event, stripsResultDataMap[key], key, p, tabIndex)\">\n <span class=\"pill-name\">{{pill?.label}}</span></mat-chip>\n </ng-container>\n </mat-chip-list>\n </ng-container>\n </div>\n <!-- viewAll start-->\n <div *ngIf=\"!stripsResultDataMap[key]?.hideViewMoreUrl && checkCondition(widgetData , stripsResultDataMap[key])\" class=\" hidden md:block\">\n <div 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 </div>\n \n <!-- viewAll end-->\n </div>\n <div *ngIf=\"stripsResultDataMap && stripsResultDataMap[key]?.showOnLoader ||\n !tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.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 <ng-container *ngIf=\"tab?.pillsData && tab?.pillsData.length && tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]\">\n <div *ngIf=\"((tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.fetchTabStatus && tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.fetchTabStatus === 'done') &&\n (!tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.widgets || !tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.widgets?.length))\">\n <ng-container *ngIf=\"tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.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?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.nodataMsg, 'home') }}</div>\n </div>\n </ng-template>\n </div>\n </ng-container>\n <ng-container *ngIf=\"(tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.fetchTabStatus === 'done' || tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.widgets?.length)\">\n <ng-container *ngIf=\"!tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.tabLoading\">\n <sb-uic-horizontal-scroller-v2 [id]=\"key+'-scroller'\" [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\" [widgetsLength]=\"tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.widgets?.length\"\n [loadStatus]=\"'done'\" [defaultMaxWidgets]=\"tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.maxWidgets ||\n stripsResultDataMap[key]?.sliderConfig?.maxWidgets || defaultMaxWidgets\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.widgets| slice:0:(tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.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>\n </div>\n </div>\n </a>\n\n </ng-container>\n </ng-container>\n</ng-template>",
15319
+ styles: ["@charset \"UTF-8\";.facets-select{position:relative;display:inline-block;width:250px}.facets-select select{appearance:none;-webkit-appearance:none;-moz-appearance:none;background-color:#fff;border:1px solid #ccc;border-radius:25px;padding:10px 30px 10px 10px;font-size:16px;font-family:Arial,sans-serif;width:100%;height:100%;cursor:pointer}.facets-select:after{content:\"\u25BC\";position:absolute;top:50%;right:10px;transform:translateY(-50%);pointer-events:none;font-size:14px;color:#555}::ng-deep mat-chip-list.content-pill-data .mat-chip-selected{background-color:#1b4ca1!important}::ng-deep mat-chip-list.content-pill-data .mat-chip-selected .pill-name{color:#fff!important}::ng-deep mat-chip-list.content-pill-data .mat-chip-list-wrapper .mat-chip{cursor:pointer!important}::ng-deep mat-chip-list.content-pill-data .mat-chip-list-wrapper .mat-chip.mat-standard-chip.mat-chip-selected.mat-primary{background:#1b4ca1!important;color:#fff!important}::ng-deep mat-chip-list.content-pill-data .mat-chip-list-wrapper .mat-chip.mat-standard-chip{background:#fff!important;border:1px solid rgba(0,0,0,.0784313725)!important}"]
15320
+ }] }
15321
+ ];
15322
+ /** @nocollapse */
15323
+ ContentStripFacetFilterComponent.ctorParameters = function () { return [
15324
+ { type: undefined, decorators: [{ type: core.Inject, args: ['environment',] }] },
15325
+ { type: WidgetContentService },
15326
+ { type: utilsV2.LoggerService },
15327
+ { type: utilsV2.EventService },
15328
+ { type: utilsV2.ConfigurationsService },
15329
+ { type: utilsV2.UtilityService },
15330
+ { type: router.Router },
15331
+ { type: WidgetUserService },
15332
+ { type: core$1.TranslateService },
15333
+ { type: MultilingualTranslationsService }
15334
+ ]; };
15335
+ ContentStripFacetFilterComponent.propDecorators = {
15336
+ widgetData: [{ type: core.Input }],
15337
+ emptyResponse: [{ type: core.Output }],
15338
+ viewAllResponse: [{ type: core.Output }],
15339
+ telemtryResponse: [{ type: core.Output }],
15340
+ providerId: [{ type: core.Input }],
15341
+ emitViewAll: [{ type: core.Input }],
15342
+ channnelName: [{ type: core.Input }],
15343
+ id: [{ type: core.HostBinding, args: ['id',] }]
15344
+ };
15345
+ return ContentStripFacetFilterComponent;
15346
+ }(resolverV2.WidgetBaseComponent));
15347
+ if (false) {
15348
+ /** @type {?} */
15349
+ ContentStripFacetFilterComponent.prototype.widgetData;
15350
+ /** @type {?} */
15351
+ ContentStripFacetFilterComponent.prototype.emptyResponse;
15352
+ /** @type {?} */
15353
+ ContentStripFacetFilterComponent.prototype.viewAllResponse;
15354
+ /** @type {?} */
15355
+ ContentStripFacetFilterComponent.prototype.telemtryResponse;
15356
+ /** @type {?} */
15357
+ ContentStripFacetFilterComponent.prototype.providerId;
15358
+ /** @type {?} */
15359
+ ContentStripFacetFilterComponent.prototype.emitViewAll;
15360
+ /** @type {?} */
15361
+ ContentStripFacetFilterComponent.prototype.channnelName;
15362
+ /** @type {?} */
15363
+ ContentStripFacetFilterComponent.prototype.id;
15364
+ /** @type {?} */
15365
+ ContentStripFacetFilterComponent.prototype.stripsResultDataMap;
15366
+ /** @type {?} */
15367
+ ContentStripFacetFilterComponent.prototype.stripsKeyOrder;
15368
+ /** @type {?} */
15369
+ ContentStripFacetFilterComponent.prototype.showAccordionData;
15370
+ /** @type {?} */
15371
+ ContentStripFacetFilterComponent.prototype.showParentLoader;
15372
+ /** @type {?} */
15373
+ ContentStripFacetFilterComponent.prototype.showParentError;
15374
+ /** @type {?} */
15375
+ ContentStripFacetFilterComponent.prototype.showParentNoData;
15376
+ /** @type {?} */
15377
+ ContentStripFacetFilterComponent.prototype.errorDataCount;
15378
+ /** @type {?} */
15379
+ ContentStripFacetFilterComponent.prototype.noDataCount;
15380
+ /** @type {?} */
15381
+ ContentStripFacetFilterComponent.prototype.successDataCount;
15382
+ /** @type {?} */
15383
+ ContentStripFacetFilterComponent.prototype.contentAvailable;
15384
+ /** @type {?} */
15385
+ ContentStripFacetFilterComponent.prototype.baseUrl;
15386
+ /** @type {?} */
15387
+ ContentStripFacetFilterComponent.prototype.veifiedKarmayogi;
15388
+ /** @type {?} */
15389
+ ContentStripFacetFilterComponent.prototype.environment;
15390
+ /** @type {?} */
15391
+ ContentStripFacetFilterComponent.prototype.changeEventSubscription;
15392
+ /** @type {?} */
15393
+ ContentStripFacetFilterComponent.prototype.defaultMaxWidgets;
15394
+ /** @type {?} */
15395
+ ContentStripFacetFilterComponent.prototype.enrollInterval;
15396
+ /** @type {?} */
15397
+ ContentStripFacetFilterComponent.prototype.todaysEvents;
15398
+ /** @type {?} */
15399
+ ContentStripFacetFilterComponent.prototype.enrollmentMapData;
15400
+ /**
15401
+ * @type {?}
15402
+ * @private
15403
+ */
15404
+ ContentStripFacetFilterComponent.prototype.contentSvc;
15405
+ /**
15406
+ * @type {?}
15407
+ * @private
15408
+ */
15409
+ ContentStripFacetFilterComponent.prototype.loggerSvc;
15410
+ /**
15411
+ * @type {?}
15412
+ * @private
15413
+ */
15414
+ ContentStripFacetFilterComponent.prototype.eventSvc;
15415
+ /**
15416
+ * @type {?}
15417
+ * @private
15418
+ */
15419
+ ContentStripFacetFilterComponent.prototype.configSvc;
15420
+ /** @type {?} */
15421
+ ContentStripFacetFilterComponent.prototype.utilitySvc;
15422
+ /** @type {?} */
15423
+ ContentStripFacetFilterComponent.prototype.router;
15424
+ /**
15425
+ * @type {?}
15426
+ * @private
15427
+ */
15428
+ ContentStripFacetFilterComponent.prototype.userSvc;
15429
+ /**
15430
+ * @type {?}
15431
+ * @private
15432
+ */
15433
+ ContentStripFacetFilterComponent.prototype.translate;
15434
+ /**
15435
+ * @type {?}
15436
+ * @private
15437
+ */
15438
+ ContentStripFacetFilterComponent.prototype.langtranslations;
15439
+ }
15440
+
13837
15441
  /**
13838
15442
  * @fileoverview added by tsickle
13839
15443
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -13841,58 +15445,58 @@
13841
15445
  /**
13842
15446
  * @record
13843
15447
  */
13844
- function IStripUnitContentData$1() { }
15448
+ function IStripUnitContentData$2() { }
13845
15449
  if (false) {
13846
15450
  /** @type {?} */
13847
- IStripUnitContentData$1.prototype.key;
15451
+ IStripUnitContentData$2.prototype.key;
13848
15452
  /** @type {?} */
13849
- IStripUnitContentData$1.prototype.canHideStrip;
15453
+ IStripUnitContentData$2.prototype.canHideStrip;
13850
15454
  /** @type {?|undefined} */
13851
- IStripUnitContentData$1.prototype.mode;
15455
+ IStripUnitContentData$2.prototype.mode;
13852
15456
  /** @type {?} */
13853
- IStripUnitContentData$1.prototype.showStrip;
15457
+ IStripUnitContentData$2.prototype.showStrip;
13854
15458
  /** @type {?} */
13855
- IStripUnitContentData$1.prototype.disableTranslate;
15459
+ IStripUnitContentData$2.prototype.disableTranslate;
13856
15460
  /** @type {?|undefined} */
13857
- IStripUnitContentData$1.prototype.widgets;
15461
+ IStripUnitContentData$2.prototype.widgets;
13858
15462
  /** @type {?} */
13859
- IStripUnitContentData$1.prototype.stripTitle;
15463
+ IStripUnitContentData$2.prototype.stripTitle;
13860
15464
  /** @type {?|undefined} */
13861
- IStripUnitContentData$1.prototype.stripTitleLink;
15465
+ IStripUnitContentData$2.prototype.stripTitleLink;
13862
15466
  /** @type {?|undefined} */
13863
- IStripUnitContentData$1.prototype.sliderConfig;
15467
+ IStripUnitContentData$2.prototype.sliderConfig;
13864
15468
  /** @type {?} */
13865
- IStripUnitContentData$1.prototype.stripConfig;
15469
+ IStripUnitContentData$2.prototype.stripConfig;
13866
15470
  /** @type {?|undefined} */
13867
- IStripUnitContentData$1.prototype.tabs;
15471
+ IStripUnitContentData$2.prototype.tabs;
13868
15472
  /** @type {?|undefined} */
13869
- IStripUnitContentData$1.prototype.stripName;
15473
+ IStripUnitContentData$2.prototype.stripName;
13870
15474
  /** @type {?|undefined} */
13871
- IStripUnitContentData$1.prototype.stripLogo;
15475
+ IStripUnitContentData$2.prototype.stripLogo;
13872
15476
  /** @type {?|undefined} */
13873
- IStripUnitContentData$1.prototype.description;
15477
+ IStripUnitContentData$2.prototype.description;
13874
15478
  /** @type {?|undefined} */
13875
- IStripUnitContentData$1.prototype.stripInfo;
15479
+ IStripUnitContentData$2.prototype.stripInfo;
13876
15480
  /** @type {?|undefined} */
13877
- IStripUnitContentData$1.prototype.noDataWidget;
15481
+ IStripUnitContentData$2.prototype.noDataWidget;
13878
15482
  /** @type {?|undefined} */
13879
- IStripUnitContentData$1.prototype.errorWidget;
15483
+ IStripUnitContentData$2.prototype.errorWidget;
13880
15484
  /** @type {?} */
13881
- IStripUnitContentData$1.prototype.showOnNoData;
15485
+ IStripUnitContentData$2.prototype.showOnNoData;
13882
15486
  /** @type {?} */
13883
- IStripUnitContentData$1.prototype.showOnLoader;
15487
+ IStripUnitContentData$2.prototype.showOnLoader;
13884
15488
  /** @type {?} */
13885
- IStripUnitContentData$1.prototype.showOnError;
15489
+ IStripUnitContentData$2.prototype.showOnError;
13886
15490
  /** @type {?|undefined} */
13887
- IStripUnitContentData$1.prototype.loaderWidgets;
15491
+ IStripUnitContentData$2.prototype.loaderWidgets;
13888
15492
  /** @type {?|undefined} */
13889
- IStripUnitContentData$1.prototype.stripBackground;
15493
+ IStripUnitContentData$2.prototype.stripBackground;
13890
15494
  /** @type {?|undefined} */
13891
- IStripUnitContentData$1.prototype.secondaryHeading;
15495
+ IStripUnitContentData$2.prototype.secondaryHeading;
13892
15496
  /** @type {?} */
13893
- IStripUnitContentData$1.prototype.viewMoreUrl;
15497
+ IStripUnitContentData$2.prototype.viewMoreUrl;
13894
15498
  /** @type {?|undefined} */
13895
- IStripUnitContentData$1.prototype.request;
15499
+ IStripUnitContentData$2.prototype.request;
13896
15500
  }
13897
15501
  var ContentStripWithTabsPillsComponent = /** @class */ (function (_super) {
13898
15502
  __extends(ContentStripWithTabsPillsComponent, _super);
@@ -15772,6 +17376,61 @@
15772
17376
  return ContentStripWithTabsPillsModule;
15773
17377
  }());
15774
17378
 
17379
+ /**
17380
+ * @fileoverview added by tsickle
17381
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
17382
+ */
17383
+ var ɵ0$6 = HttpLoaderFactory1;
17384
+ var ContentStripFacetFilterModule = /** @class */ (function () {
17385
+ function ContentStripFacetFilterModule() {
17386
+ }
17387
+ ContentStripFacetFilterModule.decorators = [
17388
+ { type: core.NgModule, args: [{
17389
+ declarations: [ContentStripFacetFilterComponent],
17390
+ imports: [
17391
+ resolverV2.SbUiResolverModule,
17392
+ common.CommonModule,
17393
+ router.RouterModule,
17394
+ HorizontalScrollerV2Module,
17395
+ material.MatProgressSpinnerModule,
17396
+ material.MatToolbarModule,
17397
+ material.MatIconModule,
17398
+ material.MatButtonModule,
17399
+ material.MatTooltipModule,
17400
+ material.MatListModule,
17401
+ material.MatSidenavModule,
17402
+ material.MatCardModule,
17403
+ material.MatExpansionModule,
17404
+ material.MatRadioModule,
17405
+ material.MatChipsModule,
17406
+ material.MatInputModule,
17407
+ material.MatFormFieldModule,
17408
+ material.MatDialogModule,
17409
+ material.MatSnackBarModule,
17410
+ material.MatSelectModule,
17411
+ material.MatDatepickerModule,
17412
+ material.MatNativeDateModule,
17413
+ material.MatTableModule,
17414
+ material.MatCheckboxModule,
17415
+ material.MatProgressSpinnerModule,
17416
+ material.MatButtonToggleModule,
17417
+ material.MatTabsModule,
17418
+ material.MatAutocompleteModule,
17419
+ core$1.TranslateModule.forRoot({
17420
+ loader: {
17421
+ provide: core$1.TranslateLoader,
17422
+ useFactory: ɵ0$6,
17423
+ deps: [http.HttpClient],
17424
+ },
17425
+ }),
17426
+ ],
17427
+ entryComponents: [ContentStripFacetFilterComponent],
17428
+ exports: [ContentStripFacetFilterComponent],
17429
+ },] }
17430
+ ];
17431
+ return ContentStripFacetFilterModule;
17432
+ }());
17433
+
15775
17434
  /**
15776
17435
  * @fileoverview added by tsickle
15777
17436
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -17122,7 +18781,7 @@
17122
18781
  */
17123
18782
  /** @type {?} */
17124
18783
  var PROXY_SLAG_V8 = '/apis/proxies/v8';
17125
- var ɵ0$6 = /**
18784
+ var ɵ0$7 = /**
17126
18785
  * @param {?} contentId
17127
18786
  * @param {?} contentType
17128
18787
  * @param {?} userId
@@ -17147,7 +18806,7 @@
17147
18806
  };
17148
18807
  /** @type {?} */
17149
18808
  var API_END_POINTS$3 = {
17150
- GET_RATING: (ɵ0$6),
18809
+ GET_RATING: (ɵ0$7),
17151
18810
  ADD_OR_UPDATE: PROXY_SLAG_V8 + "/ratings/v1/upsert",
17152
18811
  GET_RATING_SUMMARY: (ɵ1$3),
17153
18812
  GET_RATING_LOOKUP: PROXY_SLAG_V8 + "/ratings/v1/ratingLookUp",
@@ -17891,7 +19550,7 @@
17891
19550
  * @fileoverview added by tsickle
17892
19551
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
17893
19552
  */
17894
- var ɵ0$7 = HttpLoaderFactory;
19553
+ var ɵ0$8 = HttpLoaderFactory;
17895
19554
  var MDOChannelModule = /** @class */ (function () {
17896
19555
  function MDOChannelModule() {
17897
19556
  }
@@ -17917,7 +19576,7 @@
17917
19576
  core$1.TranslateModule.forRoot({
17918
19577
  loader: {
17919
19578
  provide: core$1.TranslateLoader,
17920
- useFactory: ɵ0$7,
19579
+ useFactory: ɵ0$8,
17921
19580
  deps: [http.HttpClient],
17922
19581
  },
17923
19582
  }),
@@ -18241,7 +19900,7 @@
18241
19900
  * @fileoverview added by tsickle
18242
19901
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
18243
19902
  */
18244
- var ɵ0$8 = HttpLoaderFactory;
19903
+ var ɵ0$9 = HttpLoaderFactory;
18245
19904
  var ProvidersModule = /** @class */ (function () {
18246
19905
  function ProvidersModule() {
18247
19906
  }
@@ -18266,7 +19925,7 @@
18266
19925
  core$1.TranslateModule.forRoot({
18267
19926
  loader: {
18268
19927
  provide: core$1.TranslateLoader,
18269
- useFactory: ɵ0$8,
19928
+ useFactory: ɵ0$9,
18270
19929
  deps: [http.HttpClient],
18271
19930
  },
18272
19931
  }),
@@ -18394,7 +20053,7 @@
18394
20053
  NationalLearningComponent.decorators = [
18395
20054
  { type: core.Component, args: [{
18396
20055
  selector: 'sb-uic-national-learning',
18397
- template: "<div class=\"container-fluid white-background nlm-micro-sites micro-white\" id=\"nlm-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=\"'contentSection'\" [ngTemplateOutlet]=\"contentSection\"\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<ng-template #topSection let-data=\"data\">\n <!-- top section desktop layout -->\n <div class=\"w-full topSection\">\n <div *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 *ngIf=\"data && data.metrics\">\n <div class=\"block md:hidden\">\n <sb-uic-data-points\n [providerId]=\"providerId\"\n [fetchDataFromApi]=\"true\"\n [objectData]=\"data?.metrics?.data\"\n [layoutType]=\"'nlwCol'\"\n [title]=\"data?.metrics?.title\"\n [pageLayout]=\"'nlw'\">\n </sb-uic-data-points>\n </div>\n <div class=\"hidden md:block\">\n <sb-uic-data-points\n [providerId]=\"providerId\"\n [fetchDataFromApi]=\"true\"\n [objectData]=\"data?.metrics?.data\"\n [layoutType]=\"'nlwRow'\"\n [title]=\"data?.metrics?.title\"\n [pageLayout]=\"'nlw'\">\n </sb-uic-data-points>\n </div>\n </div>\n\n <div class=\"col-span-12\">\n <div class=\"flex items-center justify-center\">\n <div class=\"container\">\n <div class=\"block md:hidden\">\n <sb-uic-key-highlights (emptyResponse)=\"hideKeyHightlight($event, data.keyHighlights)\" [formData]=\"data.keyHighlights\" [providerId]=\"providerId\" [mode]=\"'mobile'\"></sb-uic-key-highlights>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"col-span-12\">\n <div class=\"flex items-center justify-center\">\n <div class=\"container\">\n <div class=\"hidden md:block\">\n <div class=\"flex flex items-center justify-center gap-10\">\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?.imageUrl\">\n </div>\n </div>\n <div class=\"w-full md:w-9/12 flex-1 flex flex-col pr-3\">\n <div class=\" txt-ellipsis-2 break-words description-title\">{{data?.title}}</div>\n <div class=\"description\">{{data?.description | slice:0:descriptionMaxLength}}\n <span *ngIf=\"data?.description?.length > descriptionMaxLength\">...</span>\n </div>\n </div>\n </div>\n </div>\n <div class=\"block md:hidden\">\n <div class=\"flex flex-col items-center justify-center margin-bottom-xl px-5\">\n <div class=\"mlogo-box-rounded\">\n <img alt=\"Application Logo\" class=\"logo-img\" [src]=\"data?.imageUrl\">\n </div>\n </div>\n <div class=\"flex flex-col px-5\">\n <div class=\" txt-ellipsis-2 break-words description-title\">{{data?.title}}</div>\n <div class=\"mdescription\">{{data?.description | slice:0:descriptionMaxLength}}\n <span *ngIf=\"data?.description?.length > descriptionMaxLength\">...</span>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"col-span-12\">\n <div class=\"flex items-center justify-center\">\n <div class=\"container margin-top-xl\">\n <div class=\"hidden md:block\">\n <sb-uic-key-highlights (emptyResponse)=\"hideKeyHightlight($event, data.keyHighlights)\" [formData]=\"data.keyHighlights\" [providerId]=\"providerId\" [mode]=\"'desktop'\"></sb-uic-key-highlights>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-template>\n\n\n\n<ng-template #contentSection let-data=\"data\">\n <div class=\"flex items-center justify-center\">\n <div class=\"container\">\n <div class=\"grid grid-cols-12 gap-4 mb-6\">\n <div class=\"col-span-12 md:col-span-{{data.leftContent.colspan}}\">\n <div *ngIf=\"data.leftContent.data.weekHighlights.data\">\n <sb-uic-highlights-of-week\n [objectData]=\"data.leftContent.data.weekHighlights.data\">\n </sb-uic-highlights-of-week>\n </div>\n <div class=\"hidden md:block\">\n <div *ngIf=\"data.leftContent.data.mandatoryCourse.enabled && data?.leftContent?.data?.mandatoryCourse?.column[0]?.data\">\n <div class=\"margin-top-l nlw-mandatoryCourse\">\n <sb-uic-content-strip-with-tabs\n [emitViewAll]=\"false\"\n (viewAllResponse)=\"''\"\n (telemtryResponse)=\"raiseTelemetryInteratEvent($event)\"\n (emptyResponse)=\"''\"\n [providerId]=\"'123456789'\"\n [widgetData]=\"data?.leftContent?.data?.mandatoryCourse?.column[0]?.data\"\n [channnelName]=\"'channnelName'\">\n </sb-uic-content-strip-with-tabs>\n </div>\n </div>\n </div>\n <div class=\"hidden md:block\">\n <div *ngIf=\"data.leftContent.data.events.enabled && data.leftContent.data.events.column[0]\">\n <sb-uic-events [object]=\"data.leftContent.data.events.column[0]\" [nwlEventsConfig]=\"nwlConfiguration\"></sb-uic-events>\n </div>\n </div>\n </div>\n <div class=\"col-span-12 md:col-span-{{data.rightContent.colspan}}\">\n <div *ngIf=\"data.rightContent.data.myprogress\">\n <sb-uic-user-progress\n [objectData]=\"data.rightContent.data.myprogress.data\" [rootOrgId]=\"configDetails?.unMappedUser?.rootOrgId\">\n </sb-uic-user-progress>\n </div>\n <div *ngIf=\"data.rightContent.data.speakerOftheDay\">\n <sb-uic-speakers\n [objectData]=\"data.rightContent.data.speakerOftheDay.data\">\n </sb-uic-speakers>\n </div>\n <div *ngIf=\"data.rightContent.data.mdoLeaderboard\">\n <sb-uic-mdo-leaderboard\n [object]=\"data.rightContent.data.mdoLeaderboard.data\"\n (tabClicked)=\"raiseTabClick($event)\"></sb-uic-mdo-leaderboard>\n </div>\n\n <div class=\"block md:hidden\">\n <div *ngIf=\"data.leftContent.data.mandatoryCourse.enabled && data?.leftContent?.data?.mandatoryCourse?.column[0]?.data\">\n <div class=\"margin-top-l nlw-mandatoryCourse\">\n <sb-uic-content-strip-with-tabs\n [emitViewAll]=\"false\"\n (viewAllResponse)=\"''\"\n (telemtryResponse)=\"raiseTelemetryInteratEvent($event)\"\n (emptyResponse)=\"''\"\n [providerId]=\"'123456789'\"\n [widgetData]=\"data?.leftContent?.data?.mandatoryCourse?.column[0]?.data\"\n [channnelName]=\"'channnelName'\">\n </sb-uic-content-strip-with-tabs>\n </div>\n </div>\n </div>\n\n <div class=\"block md:hidden px-4 md-px-0\">\n <div *ngIf=\"data.leftContent.data.events.enabled && data.leftContent.data.events.column[0]\">\n <sb-uic-events [object]=\"data.leftContent.data.events.column[0]\" [nwlEventsConfig]=\"nwlConfiguration\"></sb-uic-events>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-template>\n\n\n",
20056
+ template: "<div class=\"container-fluid white-background nlm-micro-sites micro-white\" id=\"nlm-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=\"'contentSection'\" [ngTemplateOutlet]=\"contentSection\"\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<ng-template #topSection let-data=\"data\">\n <!-- top section desktop layout -->\n <div class=\"w-full topSection\">\n <div *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 *ngIf=\"data && data.metrics\">\n <div class=\"block md:hidden\">\n <sb-uic-data-points\n [providerId]=\"providerId\"\n [fetchDataFromApi]=\"true\"\n [objectData]=\"data?.metrics?.data\"\n [layoutType]=\"'nlwCol'\"\n [title]=\"data?.metrics?.title\"\n [pageLayout]=\"'nlw'\">\n </sb-uic-data-points>\n </div>\n <div class=\"hidden md:block\">\n <sb-uic-data-points\n [providerId]=\"providerId\"\n [fetchDataFromApi]=\"true\"\n [objectData]=\"data?.metrics?.data\"\n [layoutType]=\"'nlwRow'\"\n [title]=\"data?.metrics?.title\"\n [pageLayout]=\"'nlw'\">\n </sb-uic-data-points>\n </div>\n </div>\n\n <div class=\"col-span-12\">\n <div class=\"flex items-center justify-center\">\n <div class=\"container\">\n <div class=\"block md:hidden\">\n <sb-uic-key-highlights (emptyResponse)=\"hideKeyHightlight($event, data.keyHighlights)\" [formData]=\"data.keyHighlights\" [providerId]=\"providerId\" [mode]=\"'mobile'\"></sb-uic-key-highlights>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"col-span-12\">\n <div class=\"flex items-center justify-center\">\n <div class=\"container\">\n <div class=\"hidden md:block\">\n <div class=\"flex flex items-center justify-center gap-10\">\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?.imageUrl\">\n </div>\n </div>\n <div class=\"w-full md:w-9/12 flex-1 flex flex-col pr-3\">\n <div class=\" txt-ellipsis-2 break-words description-title\">{{data?.title}}</div>\n <div class=\"description\">{{data?.description | slice:0:descriptionMaxLength}}\n <span *ngIf=\"data?.description?.length > descriptionMaxLength\">...</span>\n </div>\n </div>\n </div>\n </div>\n <div class=\"block md:hidden\">\n <div class=\"flex flex-col items-center justify-center margin-bottom-xl px-5\">\n <div class=\"mlogo-box-rounded\">\n <img alt=\"Application Logo\" class=\"logo-img\" [src]=\"data?.imageUrl\">\n </div>\n </div>\n <div class=\"flex flex-col px-5\">\n <div class=\" txt-ellipsis-2 break-words description-title\">{{data?.title}}</div>\n <div class=\"mdescription\">{{data?.description | slice:0:descriptionMaxLength}}\n <span *ngIf=\"data?.description?.length > descriptionMaxLength\">...</span>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"col-span-12\">\n <div class=\"flex items-center justify-center\">\n <div class=\"container margin-top-xl\">\n <div class=\"hidden md:block\">\n <sb-uic-key-highlights (emptyResponse)=\"hideKeyHightlight($event, data.keyHighlights)\" [formData]=\"data.keyHighlights\" [providerId]=\"providerId\" [mode]=\"'desktop'\"></sb-uic-key-highlights>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-template>\n\n\n\n<ng-template #contentSection let-data=\"data\">\n <div class=\"flex items-center justify-center\">\n <div class=\"container\">\n <div class=\"grid grid-cols-12 gap-4 mb-6\">\n <div class=\"col-span-12 md:col-span-{{data.leftContent.colspan}}\">\n <div *ngIf=\"data.leftContent.data.weekHighlights.data\">\n <sb-uic-highlights-of-week\n [objectData]=\"data.leftContent.data.weekHighlights.data\">\n </sb-uic-highlights-of-week>\n </div>\n <div class=\"hidden md:block\">\n <div *ngIf=\"data.leftContent.data.mandatoryCourse.enabled && data?.leftContent?.data?.mandatoryCourse?.column[0]?.data\">\n <div class=\"margin-top-l nlw-mandatoryCourse\">\n <sb-uic-content-strip-with-tabs\n [emitViewAll]=\"false\"\n (viewAllResponse)=\"''\"\n (telemtryResponse)=\"raiseTelemetryInteratEvent($event)\"\n (emptyResponse)=\"''\"\n [providerId]=\"'123456789'\"\n [widgetData]=\"data?.leftContent?.data?.mandatoryCourse?.column[0]?.data\"\n [channnelName]=\"'channnelName'\">\n </sb-uic-content-strip-with-tabs>\n </div>\n </div>\n </div>\n\n <div class=\"hidden md:block\">\n <div *ngIf=\"data?.leftContent?.data?.exploreLearningContent?.strips[0]\">\n <sb-uic-content-strip-facet-filter [widgetData]=\"data?.leftContent?.data?.exploreLearningContent\"></sb-uic-content-strip-facet-filter>\n </div>\n </div>\n <div class=\"hidden md:block\">\n <div *ngIf=\"data.leftContent.data.events.enabled && data.leftContent.data.events.column[0]\">\n <sb-uic-events [object]=\"data.leftContent.data.events.column[0]\" [nwlEventsConfig]=\"nwlConfiguration\"></sb-uic-events>\n </div>\n </div>\n </div>\n <div class=\"col-span-12 md:col-span-{{data.rightContent.colspan}}\">\n <div *ngIf=\"data.rightContent.data.myprogress\">\n <sb-uic-user-progress\n [objectData]=\"data.rightContent.data.myprogress.data\" [rootOrgId]=\"configDetails?.unMappedUser?.rootOrgId\">\n </sb-uic-user-progress>\n </div>\n <div *ngIf=\"data.rightContent.data.speakerOftheDay\">\n <sb-uic-speakers\n [objectData]=\"data.rightContent.data.speakerOftheDay.data\">\n </sb-uic-speakers>\n </div>\n <div *ngIf=\"data.rightContent.data.mdoLeaderboard\">\n <sb-uic-mdo-leaderboard\n [object]=\"data.rightContent.data.mdoLeaderboard.data\"\n (tabClicked)=\"raiseTabClick($event)\"></sb-uic-mdo-leaderboard>\n </div>\n\n <div class=\"block md:hidden\">\n <div *ngIf=\"data.leftContent.data.mandatoryCourse.enabled && data?.leftContent?.data?.mandatoryCourse?.column[0]?.data\">\n <div class=\"margin-top-l nlw-mandatoryCourse\">\n <sb-uic-content-strip-with-tabs\n [emitViewAll]=\"false\"\n (viewAllResponse)=\"''\"\n (telemtryResponse)=\"raiseTelemetryInteratEvent($event)\"\n (emptyResponse)=\"''\"\n [providerId]=\"'123456789'\"\n [widgetData]=\"data?.leftContent?.data?.mandatoryCourse?.column[0]?.data\"\n [channnelName]=\"'channnelName'\">\n </sb-uic-content-strip-with-tabs>\n </div>\n </div>\n </div>\n <div class=\"block md:hidden px-4 md-px-0\">\n <div *ngIf=\"data?.leftContent?.data?.exploreLearningContent?.strips[0]\">\n <sb-uic-content-strip-facet-filter [widgetData]=\"data?.leftContent?.data?.exploreLearningContent\"></sb-uic-content-strip-facet-filter>\n </div>\n </div>\n <div class=\"block md:hidden px-4 md-px-0\">\n <div *ngIf=\"data.leftContent.data.events.enabled && data.leftContent.data.events.column[0]\">\n <sb-uic-events [object]=\"data.leftContent.data.events.column[0]\" [nwlEventsConfig]=\"nwlConfiguration\"></sb-uic-events>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-template>\n\n\n",
18398
20057
  styles: ["::ng-deep.mat-app-background{background-color:#fff!important}.nlw-mandatoryCourse ::ng-deep.capitalize{font-size:20px;line-height:24.38px}.nlm-micro-sites ::ng-deep.container{max-width:1200px!important}.nlm-micro-sites ::ng-deep.banner-container{padding-bottom:0!important}.topSection ::ng-deep.prev{margin-left:15px!important}.topSection ::ng-deep.next{margin-right:15px!important}.topSection .stats-header{display:flex;align-items:center;justify-content:center;position:absolute;left:43.5%;top:-20px;text-transform:capitalize}.topSection .stats-title{display:flex;align-items:center;justify-content:center;background-color:#f3962f;padding:12px 16px;color:#fff;font-family:Lato;font-size:14px;font-weight:700;line-height:16.8px;border-radius:35px}.topSection .my-arrow{font-size:12px}.topSection .less-opacity1{opacity:.75}.topSection .less-opacity2{opacity:.5}.topSection .details-wrapper{padding:16px;display:flex;gap:50px}.topSection .logo-box-container{width:180px;position:relative}@media only screen and (max-width:599px){.topSection .logo-box-container{width:112px;height:72px}}.topSection .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)}.topSection .logo-box-rounded .logo-img{max-width:122px}@media only screen and (max-width:599px){.topSection .logo-box-rounded{width:112px;height:112px}.topSection .logo-box-rounded .logo-img{max-width:84px}}.topSection .mlogo-box-rounded{height:180px;width:180px;background:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:1px 1px 8px 3px rgba(0,0,0,.06)}.topSection .mlogo-box-rounded .logo-img{max-width:122px}@media only screen and (max-width:599px){.topSection .mlogo-box-rounded{width:112px;height:112px}.topSection .mlogo-box-rounded .logo-img{max-width:84px}}.topSection .txt-ellipsis-2{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.topSection .description-title{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left;padding-bottom:16px}.topSection .description{font-family:Lato;font-size:16px;font-weight:400;line-height:24px;text-align:left}.topSection .mdescription{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left}@media screen and (min-width:320px) and (max-width:769px){.topSection ::ng-deep.prev{margin-left:15px!important}.topSection ::ng-deep.next{margin-right:15px!important}.topSection ::ng-deep.banner-container{min-height:212px!important}}"]
18399
20058
  }] }
18400
20059
  ];
@@ -18442,6 +20101,7 @@
18442
20101
  this.providerId = '';
18443
20102
  this.formData = '';
18444
20103
  this.emptyResponse = new core.EventEmitter();
20104
+ this.titleMaxLength = 100;
18445
20105
  this.styleData = {};
18446
20106
  this.contentdata = [];
18447
20107
  }
@@ -18469,7 +20129,7 @@
18469
20129
  KeyHighlightsComponent.decorators = [
18470
20130
  { type: core.Component, args: [{
18471
20131
  selector: 'sb-uic-key-highlights',
18472
- template: "<ng-container *ngIf=\"contentdata?.length && mode === 'desktop'\">\n <div class=\"key-highlighs-container\">\n <sb-uic-sliders-ng-content\n [title]=\"'providerName'\"\n [autoScroll]=\"true\"\n [currentIndex]=\"currentIndex\" \n (currentIndexValue)=\"getCurrentIndex($event)\"\n [loadNgContentData]=\"true\"\n [customBanner]=\"true\"\n [widgetData]=\"contentdata\" [styleData]=\"styleData\">\n <div sliderbody>\n <div *ngFor=\"let content of contentdata; let i = index\" [hidden]=\"i !== currentIndex\">\n <div class=\"flex flex-row key-wrapper items-center justify-center\">\n <div class=\"kh-description\"> {{content?.title}}</div>\n </div>\n </div>\n </div> \n </sb-uic-sliders-ng-content>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"contentdata?.length && mode === 'mobile'\">\n <div class=\"p-5\">\n <div class=\"mob-key-highlighs-container\">\n <sb-uic-sliders-ng-content\n [title]=\"'providerName'\"\n [autoScroll]=\"true\"\n [currentIndex]=\"currentIndex\" \n (currentIndexValue)=\"getCurrentIndex($event)\"\n [loadNgContentData]=\"true\"\n [customBanner]=\"true\"\n [widgetData]=\"contentdata\" [styleData]=\"styleData\">\n <div sliderbody>\n <div *ngFor=\"let content of contentdata; let i = index\" [hidden]=\"i !== currentIndex\">\n <div class=\"flex flex-row mkey-wrapper items-center justify-center\">\n <div class=\"mkh-description\"> {{content?.title}}</div>\n </div>\n </div>\n </div>\n </sb-uic-sliders-ng-content>\n </div>\n </div>\n</ng-container>",
20132
+ template: "<ng-container *ngIf=\"contentdata?.length && mode === 'desktop'\">\n <div class=\"key-highlighs-container\">\n <sb-uic-sliders-ng-content\n [title]=\"'providerName'\"\n [autoScroll]=\"true\"\n [currentIndex]=\"currentIndex\" \n (currentIndexValue)=\"getCurrentIndex($event)\"\n [loadNgContentData]=\"true\"\n [customBanner]=\"true\"\n [widgetData]=\"contentdata\" [styleData]=\"styleData\">\n <div sliderbody>\n <div *ngFor=\"let content of contentdata; let i = index\" [hidden]=\"i !== currentIndex\">\n <div class=\"flex flex-row key-wrapper items-center justify-center\">\n <div class=\"kh-description\">\n {{content?.title | slice:0:titleMaxLength}}\n <span *ngIf=\"content?.title?.length > titleMaxLength\">...</span>\n </div>\n </div>\n </div>\n </div> \n </sb-uic-sliders-ng-content>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"contentdata?.length && mode === 'mobile'\">\n <div class=\"p-5\">\n <div class=\"mob-key-highlighs-container\">\n <sb-uic-sliders-ng-content\n [title]=\"'providerName'\"\n [autoScroll]=\"true\"\n [currentIndex]=\"currentIndex\" \n (currentIndexValue)=\"getCurrentIndex($event)\"\n [loadNgContentData]=\"true\"\n [customBanner]=\"true\"\n [widgetData]=\"contentdata\" [styleData]=\"styleData\">\n <div sliderbody>\n <div *ngFor=\"let content of contentdata; let i = index\" [hidden]=\"i !== currentIndex\">\n <div class=\"flex flex-row mkey-wrapper items-center justify-center\">\n <div class=\"mkh-description\">\n {{content?.title | slice:0:titleMaxLength }}\n <span *ngIf=\"content?.title?.length > titleMaxLength\">...</span>\n </div>\n </div>\n </div>\n </div>\n </sb-uic-sliders-ng-content>\n </div>\n </div>\n</ng-container>",
18473
20133
  styles: [".kh-description{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:center;padding:0 10px}.key-wrapper{background-color:#eaf1f8;padding:25px 16px;border-radius:50px}.mkey-wrapper{background-color:#eaf1f8;padding:16px;border-radius:50px}.mkh-description{font-family:Lato;font-size:14px;font-weight:700;line-height:16.8px;text-align:center;padding:0 30px}"]
18474
20134
  }] }
18475
20135
  ];
@@ -18496,6 +20156,8 @@
18496
20156
  /** @type {?} */
18497
20157
  KeyHighlightsComponent.prototype.emptyResponse;
18498
20158
  /** @type {?} */
20159
+ KeyHighlightsComponent.prototype.titleMaxLength;
20160
+ /** @type {?} */
18499
20161
  KeyHighlightsComponent.prototype.styleData;
18500
20162
  /** @type {?} */
18501
20163
  KeyHighlightsComponent.prototype.contentdata;
@@ -18672,7 +20334,7 @@
18672
20334
  EventsComponent.decorators = [
18673
20335
  { type: core.Component, args: [{
18674
20336
  selector: 'sb-uic-events',
18675
- template: "<div class=\"flex items-center mb-4 mt-2 e-header\">\n <div class=\"event-title\">\n {{object?.title}}\n </div>\n <div class=\"events-select\">\n <select (change)=\"getEvents($event)\">\n <option value=\"{{d?.startDate}}\" *ngFor=\"let d of daysBetween\" [selected]=\"currentDay === d.startDate\">{{d?.diplayFormat}}</option>\n </select>\n </div>\n</div>\n<div class=\"grid grid-cols-1 gap-4\">\n <div class=\"events-card-wrapper\">\n <div *ngIf=\"!loader\">\n <div *ngIf=\"events?.length > 0\">\n <div *ngFor=\"let event of events\">\n <sb-uic-event-card [objectData]=\"object\" [eventDetails]=\"event\" [loader]=\"loader\"></sb-uic-event-card>\n </div>\n </div>\n <div *ngIf=\"events?.length === 0\">\n <div class=\"flex item-center justify-center p-5 no-events\">\n No events exist.\n </div>\n </div>\n </div>\n <div *ngIf=\"loader && events?.length === 0\">\n <div *ngFor=\"let event of [1,2,3]\">\n <sb-uic-event-card [objectData]=\"object\" [eventDetails]=\"event\" [loader]=\"loader\"></sb-uic-event-card>\n </div>\n </div>\n </div>\n</div>",
20337
+ template: "<div class=\"flex items-center mb-4 mt-2 e-header\">\n <div class=\"event-title\">\n {{object?.title}}\n </div>\n <div class=\"flex gap-4\">\n <div class=\"events-select\">\n <select (change)=\"getEvents($event)\">\n <option value=\"{{d?.startDate}}\" *ngFor=\"let d of daysBetween\" [selected]=\"currentDay === d.startDate\">{{d?.diplayFormat}}</option>\n </select>\n </div>\n <div class=\"flex gap-4\">\n <a [routerLink]=\"'/app/event-hub/home'\" class=\"flex ws-mat-default-text items-center justify-center mat-body-1 cursor-pointer \">Show All <mat-icon>chevron_right</mat-icon></a>\n </div>\n </div>\n</div>\n<div class=\"grid grid-cols-1 gap-4\">\n <div class=\"events-card-wrapper\">\n <div *ngIf=\"!loader\">\n <div *ngIf=\"events?.length > 0\">\n <div *ngFor=\"let event of events\">\n <sb-uic-event-card [objectData]=\"object\" [eventDetails]=\"event\" [loader]=\"loader\"></sb-uic-event-card>\n </div>\n </div>\n <div *ngIf=\"events?.length === 0\">\n <div class=\"flex item-center justify-center p-5 no-events\">\n No events exist.\n </div>\n </div>\n </div>\n <div *ngIf=\"loader && events?.length === 0\">\n <div *ngFor=\"let event of [1,2,3]\">\n <sb-uic-event-card [objectData]=\"object\" [eventDetails]=\"event\" [loader]=\"loader\"></sb-uic-event-card>\n </div>\n </div>\n </div>\n</div>",
18676
20338
  styles: ["@charset \"UTF-8\";.e-header{justify-content:space-between}.event-title{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:left}.events-select{position:relative;display:inline-block;width:150px}.events-select select{appearance:none;-webkit-appearance:none;-moz-appearance:none;background-color:#fff;border:1px solid #ccc;border-radius:25px;padding:10px 30px 10px 10px;font-size:16px;font-family:Arial,sans-serif;width:100%;height:100%;cursor:pointer}.events-select:after{content:\"\u25BC\";position:absolute;top:50%;right:10px;transform:translateY(-50%);pointer-events:none;font-size:14px;color:#555}.no-events{border:1px solid #c3c3c3;border-radius:12px}"]
18677
20339
  }] }
18678
20340
  ];
@@ -18807,6 +20469,7 @@
18807
20469
  common.CommonModule,
18808
20470
  router.RouterModule,
18809
20471
  SkeletonLoaderLibModule,
20472
+ material.MatIconModule
18810
20473
  ],
18811
20474
  exports: [EventsComponent, EventCardComponent]
18812
20475
  },] }
@@ -19117,7 +20780,7 @@
19117
20780
  { type: core.Component, args: [{
19118
20781
  selector: 'sb-uic-highlights-of-week',
19119
20782
  template: "<div *ngIf=\"contentdata.length\" class=\"highlights-of-the-week-container {{expand ? 'mb-4' : ''}}\">\n <ng-container *ngIf=\"contentdata.length\">\n <div class=\"flex title pb-3 no-radius items-center justify-between\">\n <div class=\"flex gap-2\">\n {{objectData?.title}}\n <div class=\"block md:hidden\">\n <img [src]=\"objectData?.infoIcon\" alt=\"\" i18n-matTooltip [matTooltip]=\"objectData?.infoText\">\n </div> \n </div>\n <div class=\"block md:hidden\">\n <mat-icon (click)=\"toggleWeekHightlits()\">expand_more</mat-icon>\n </div>\n </div>\n <div *ngIf=\"expand\">\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=\"wh-wrapper no-radius\">\n <div class=\"player\">\n <video width=\"100%\" height=\"100%\" controls *ngIf=\"i === currentIndex\">\n <source [src]=\"item.videoUrl\" type=\"video/mp4\">\n <source [src]=\"item.videoUrl\" type=\"application/x-mpegURL\" />\n </video>\n </div>\n <div class=\"player-title py-3\">\n {{item?.title}}\n </div>\n <div class=\"player-body\">\n {{item?.description}}\n </div>\n </div>\n </div>\n </div>\n </sb-uic-sliders-ng-content>\n </div>\n </ng-container>\n</div>\n\n",
19120
- styles: [".highlights-of-the-week-container ::ng-deep.banner-title{display:none}.highlights-of-the-week-container ::ng-deep.banner-meta{bottom:-37px}.highlights-of-the-week-container ::ng-deep.prev{margin-left:11px}.highlights-of-the-week-container ::ng-deep.next{margin-right:16px}.title{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:left;background-color:#d1dbec;padding:16px;border-top-left-radius:12px;border-top-right-radius:12px}.wh-wrapper{background-color:#d1dbec;padding:0 16px 16px;border-bottom-left-radius:12px;border-bottom-right-radius:12px}.wh-wrapper .player{height:420px}.wh-wrapper .player-title{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.wh-wrapper .player-body{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left}@media screen and (min-width:320px) and (max-width:769px){.highlights-of-the-week-container ::ng-deep.prev{display:none!important}.highlights-of-the-week-container ::ng-deep.next{display:none!important}.wh-wrapper .player{height:215px}.no-radius{border-radius:0}}"]
20783
+ styles: [".highlights-of-the-week-container ::ng-deep.banner-title{display:none}.highlights-of-the-week-container ::ng-deep.banner-meta{bottom:-37px}.highlights-of-the-week-container ::ng-deep.prev{margin-left:11px}.highlights-of-the-week-container ::ng-deep.next{margin-right:16px}.title{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:left;background-color:#d1dbec;padding:16px;border-top-left-radius:12px;border-top-right-radius:12px}.wh-wrapper{background-color:#d1dbec;padding:0 16px 16px;border-bottom-left-radius:12px;border-bottom-right-radius:12px}.wh-wrapper .player{height:420px}.wh-wrapper .player-title{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.wh-wrapper .player-body{font-family:Lato;line-clamp:2;-webkit-line-clamp:2;font-size:14px;font-weight:400;line-height:16.8px;text-align:left;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}@media screen and (min-width:320px) and (max-width:769px){.highlights-of-the-week-container ::ng-deep.prev{display:none!important}.highlights-of-the-week-container ::ng-deep.next{display:none!important}.wh-wrapper .player{height:215px}.no-radius{border-radius:0}}"]
19121
20784
  }] }
19122
20785
  ];
19123
20786
  /** @nocollapse */
@@ -19261,7 +20924,7 @@
19261
20924
  { type: core.Component, args: [{
19262
20925
  selector: 'sb-uic-speakers',
19263
20926
  template: "<div class=\"nlw-speakers-wrapper px-4 md:px-0 my-4 md:my-0\">\n <div class=\"flex speakers-title gap-2 justify-between pb-1\" *ngIf=\"contentdata.length\">\n <div class=\"flex gap-2\">\n {{objectData?.title}}\n <div><img [src]=\"objectData?.infoIcon\" alt=\"\" i18n-matTooltip [matTooltip]=\"objectData?.infoText\"></div>\n </div>\n <div class=\"block md:hidden\">\n <mat-icon (click)=\"toggleWeekHightlits()\">expand_more</mat-icon>\n </div>\n </div>\n <div *ngIf=\"expand\" class=\"speakers-container margin-bottom-xs\" >\n <ng-container *ngIf=\"contentdata.length\">\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=\"speakers-wrapper\">\n <div class=\"flex items-center justify-center pb-2\">\n <div class=\"speaker-initial\" *ngIf=\"!item.profileImage\">{{item?.initial}}</div>\n <img class='speaker-icon' [src]=\"item?.profileImage\" alt=\"\" *ngIf=\"item.profileImage\"/>\n </div>\n <div class=\"flex items-center justify-center pb-2\">\n <div class=\"speaker-title\">{{item.name}}</div>\n </div>\n <div class=\"flex items-center justify-center\">\n <div class=\"speaker-description\">{{item.description}}</div>\n </div>\n </div>\n </div>\n </div>\n </sb-uic-sliders-ng-content>\n </ng-container>\n </div>\n</div>",
19264
- styles: [".speakers-container ::ng-deep.banner-title{display:none}.speakers-container ::ng-deep.prev{margin-left:0;background-color:#fff4ec!important;color:#b6b4b4}.speakers-container ::ng-deep.next{margin-right:0;background-color:#fff4ec!important;color:#b6b4b4}.speakers-title{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:left}.speakers-wrapper{background-color:#fff4ec;border-radius:12px;padding:24px}.speaker-title{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.speaker-description{font-family:Lato;font-size:12px;font-weight:400;line-height:14.4px;text-align:center}.speaker-initial{font-family:Montserrat;font-size:24px;font-weight:600;line-height:29.26px;text-align:center;width:80px;height:80px;display:flex;align-items:center;justify-content:center;background-color:#1b4ca1;color:#fff;border-radius:50px}.speaker-icon{width:80px;height:80px;border-radius:50px}@media screen and (min-width:320px) and (max-width:769px){.nlw-speakers-wrapper{background-color:#d1dbec}.speakers-title{padding:16px 0}}"]
20927
+ styles: [".speakers-container ::ng-deep.banner-title{display:none}.speakers-container ::ng-deep.prev{margin-left:0;background-color:#fff4ec!important;color:#b6b4b4}.speakers-container ::ng-deep.next{margin-right:0;background-color:#fff4ec!important;color:#b6b4b4}.speakers-title{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:left}.speakers-wrapper{background-color:#fff4ec;border-radius:12px;padding:24px}.speaker-title{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.speaker-description{font-family:Lato;font-size:12px;font-weight:400;line-height:14.4px;text-align:center;display:-webkit-box;line-clamp:3;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.speaker-initial{font-family:Montserrat;font-size:24px;font-weight:600;line-height:29.26px;text-align:center;width:80px;height:80px;display:flex;align-items:center;justify-content:center;background-color:#1b4ca1;color:#fff;border-radius:50px}.speaker-icon{width:80px;height:80px;border-radius:50px}@media screen and (min-width:320px) and (max-width:769px){.nlw-speakers-wrapper{background-color:#d1dbec}.speakers-title{padding:16px 0}}"]
19265
20928
  }] }
19266
20929
  ];
19267
20930
  /** @nocollapse */
@@ -19357,6 +21020,13 @@
19357
21020
  _this.userProgress['fullname'] = _this.configSvc.userProfile.firstName;
19358
21021
  _this.userProgress['profile_image'] = _this.configSvc.userProfile.profileImageUrl;
19359
21022
  }
21023
+ }), (/**
21024
+ * @param {?} error
21025
+ * @return {?}
21026
+ */
21027
+ function (error) {
21028
+ _this.userProgress['fullname'] = _this.configSvc.userProfile.firstName;
21029
+ _this.userProgress['profile_image'] = _this.configSvc.userProfile.profileImageUrl;
19360
21030
  }));
19361
21031
  };
19362
21032
  /**
@@ -19553,7 +21223,8 @@
19553
21223
  MdoLeaderboardModule,
19554
21224
  HighlightsOfWeekModule,
19555
21225
  SpeakersModule,
19556
- UserProgressModule
21226
+ UserProgressModule,
21227
+ ContentStripFacetFilterModule
19557
21228
  ],
19558
21229
  exports: [
19559
21230
  NationalLearningComponent,
@@ -19579,6 +21250,7 @@
19579
21250
  exports.ConsumptionModule = ConsumptionModule;
19580
21251
  exports.ConsumptionService = ConsumptionService;
19581
21252
  exports.ContentProgressModule = ContentProgressModule;
21253
+ exports.ContentStripFacetFilterModule = ContentStripFacetFilterModule;
19582
21254
  exports.ContentStripWithTabsLibModule = ContentStripWithTabsLibModule;
19583
21255
  exports.ContentStripWithTabsPillsModule = ContentStripWithTabsPillsModule;
19584
21256
  exports.DataPointsModule = DataPointsModule;
@@ -19635,27 +21307,28 @@
19635
21307
  exports.ɵcb = CertificateDialogComponent;
19636
21308
  exports.ɵcc = AvatarPhotoLibModule;
19637
21309
  exports.ɵcd = AvatarPhotoLibComponent;
19638
- exports.ɵce = ContentStripWithTabsPillsComponent;
19639
- exports.ɵcf = CompetencyPassbookComponent;
19640
- exports.ɵcg = CompetencyPassbookService;
19641
- exports.ɵch = PillsModule;
19642
- exports.ɵci = PillsComponent;
19643
- exports.ɵcj = CompetencyPassbookMdoComponent;
19644
- exports.ɵck = CompetencyPassbookMdoService;
19645
- exports.ɵcl = UserContentRatingLibComponent;
19646
- exports.ɵcm = RatingService;
19647
- exports.ɵcn = UserContentRatingLibService;
19648
- exports.ɵco = MdoChannelV1Component;
19649
- exports.ɵcp = MdoChannelV2Component;
19650
- exports.ɵcq = ProvidersV2Component;
19651
- exports.ɵcr = NationalLearningComponent;
19652
- exports.ɵcs = KeyHighlightsComponent;
19653
- exports.ɵct = EventsComponent;
19654
- exports.ɵcu = EventCardComponent;
19655
- exports.ɵcv = MdoLeaderboardComponent;
19656
- exports.ɵcw = HighlightsOfWeekComponent;
19657
- exports.ɵcx = SpeakersComponent;
19658
- exports.ɵcy = UserProgressComponent;
21310
+ exports.ɵce = ContentStripFacetFilterComponent;
21311
+ exports.ɵcf = ContentStripWithTabsPillsComponent;
21312
+ exports.ɵcg = CompetencyPassbookComponent;
21313
+ exports.ɵch = CompetencyPassbookService;
21314
+ exports.ɵci = PillsModule;
21315
+ exports.ɵcj = PillsComponent;
21316
+ exports.ɵck = CompetencyPassbookMdoComponent;
21317
+ exports.ɵcl = CompetencyPassbookMdoService;
21318
+ exports.ɵcm = UserContentRatingLibComponent;
21319
+ exports.ɵcn = RatingService;
21320
+ exports.ɵco = UserContentRatingLibService;
21321
+ exports.ɵcp = MdoChannelV1Component;
21322
+ exports.ɵcq = MdoChannelV2Component;
21323
+ exports.ɵcr = ProvidersV2Component;
21324
+ exports.ɵcs = NationalLearningComponent;
21325
+ exports.ɵct = KeyHighlightsComponent;
21326
+ exports.ɵcu = EventsComponent;
21327
+ exports.ɵcv = EventCardComponent;
21328
+ exports.ɵcw = MdoLeaderboardComponent;
21329
+ exports.ɵcx = HighlightsOfWeekComponent;
21330
+ exports.ɵcy = SpeakersComponent;
21331
+ exports.ɵcz = UserProgressComponent;
19659
21332
  exports.ɵd = ConfigurationsService;
19660
21333
  exports.ɵe = HorizontalScrollerV2Module;
19661
21334
  exports.ɵf = HorizontalScrollerV2Component;