@sunbird-cb/consumption 0.0.85 → 0.0.87

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 (37) hide show
  1. package/bundles/sunbird-cb-consumption.umd.js +1786 -62
  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/microsites/national-learning-week/national-learning/national-learning.component.js +2 -2
  8. package/esm2015/lib/_common/microsites/national-learning-week/national-learning.module.js +4 -2
  9. package/esm2015/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.component.js +1224 -0
  10. package/esm2015/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.model.js +231 -0
  11. package/esm2015/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.module.js +65 -0
  12. package/esm2015/lib/_common/user-progress/user-progress.component.js +7 -6
  13. package/esm2015/lib/consumption.module.js +2 -2
  14. package/esm2015/public-api.js +2 -1
  15. package/esm2015/sunbird-cb-consumption.js +24 -23
  16. package/esm5/lib/_common/events/events.component.js +2 -2
  17. package/esm5/lib/_common/events/events.module.js +3 -1
  18. package/esm5/lib/_common/microsites/national-learning-week/national-learning/national-learning.component.js +2 -2
  19. package/esm5/lib/_common/microsites/national-learning-week/national-learning.module.js +4 -2
  20. package/esm5/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.component.js +1450 -0
  21. package/esm5/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.model.js +231 -0
  22. package/esm5/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.module.js +69 -0
  23. package/esm5/lib/_common/user-progress/user-progress.component.js +7 -6
  24. package/esm5/lib/consumption.module.js +2 -2
  25. package/esm5/public-api.js +2 -1
  26. package/esm5/sunbird-cb-consumption.js +24 -23
  27. package/fesm2015/sunbird-cb-consumption.js +1537 -43
  28. package/fesm2015/sunbird-cb-consumption.js.map +1 -1
  29. package/fesm5/sunbird-cb-consumption.js +1765 -43
  30. package/fesm5/sunbird-cb-consumption.js.map +1 -1
  31. package/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.component.d.ts +131 -0
  32. package/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.model.d.ts +157 -0
  33. package/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.module.d.ts +2 -0
  34. package/package.json +1 -1
  35. package/public-api.d.ts +1 -0
  36. package/sunbird-cb-consumption.d.ts +22 -21
  37. package/sunbird-cb-consumption.metadata.json +1 -1
@@ -18,7 +18,7 @@ import { TranslateHttpLoader } from '@ngx-translate/http-loader';
18
18
  import { BreakpointObserver } from '@angular/cdk/layout';
19
19
  import { HammerGestureConfig, HAMMER_GESTURE_CONFIG } from '@angular/platform-browser';
20
20
  import Hammer from 'hammerjs';
21
- import { FormsModule, ReactiveFormsModule } from '@angular/forms';
21
+ import { FormsModule, ReactiveFormsModule, FormBuilder } from '@angular/forms';
22
22
  import { jsPDF } from 'jspdf';
23
23
 
24
24
  /**
@@ -9890,7 +9890,7 @@ var ConsumptionModule = /** @class */ (function () {
9890
9890
  }
9891
9891
  ConsumptionModule.decorators = [
9892
9892
  { type: NgModule, args: [{
9893
- declarations: [ConsumptionComponent,],
9893
+ declarations: [ConsumptionComponent],
9894
9894
  imports: [
9895
9895
  ContentStripWithTabsLibModule,
9896
9896
  SlidersLibModule
@@ -13630,6 +13630,1669 @@ var WIDGET_REGISTRATION_LIB_CONFIG = [
13630
13630
  }
13631
13631
  ];
13632
13632
 
13633
+ /**
13634
+ * @fileoverview added by tsickle
13635
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
13636
+ */
13637
+ var NsContentStripWithFacets;
13638
+ (function (NsContentStripWithFacets) {
13639
+ /**
13640
+ * @record
13641
+ */
13642
+ function IContentStripMultiple() { }
13643
+ NsContentStripWithFacets.IContentStripMultiple = IContentStripMultiple;
13644
+ if (false) {
13645
+ /** @type {?|undefined} */
13646
+ IContentStripMultiple.prototype.errorWidget;
13647
+ /** @type {?|undefined} */
13648
+ IContentStripMultiple.prototype.loader;
13649
+ /** @type {?|undefined} */
13650
+ IContentStripMultiple.prototype.noDataWidget;
13651
+ /** @type {?} */
13652
+ IContentStripMultiple.prototype.strips;
13653
+ /** @type {?|undefined} */
13654
+ IContentStripMultiple.prototype.isChannelStrip;
13655
+ }
13656
+ /**
13657
+ * @record
13658
+ */
13659
+ function IContentStripUnit() { }
13660
+ NsContentStripWithFacets.IContentStripUnit = IContentStripUnit;
13661
+ if (false) {
13662
+ /** @type {?|undefined} */
13663
+ IContentStripUnit.prototype.stripRequestFor;
13664
+ /** @type {?|undefined} */
13665
+ IContentStripUnit.prototype.onTabClickRequest;
13666
+ /** @type {?|undefined} */
13667
+ IContentStripUnit.prototype.hideViewMoreUrl;
13668
+ /** @type {?} */
13669
+ IContentStripUnit.prototype.type;
13670
+ /** @type {?|undefined} */
13671
+ IContentStripUnit.prototype.disableTranslate;
13672
+ /** @type {?} */
13673
+ IContentStripUnit.prototype.key;
13674
+ /** @type {?} */
13675
+ IContentStripUnit.prototype.title;
13676
+ /** @type {?|undefined} */
13677
+ IContentStripUnit.prototype.customeClass;
13678
+ /** @type {?|undefined} */
13679
+ IContentStripUnit.prototype.nodataMsg;
13680
+ /** @type {?|undefined} */
13681
+ IContentStripUnit.prototype.stripTitleLink;
13682
+ /** @type {?|undefined} */
13683
+ IContentStripUnit.prototype.sliderConfig;
13684
+ /** @type {?|undefined} */
13685
+ IContentStripUnit.prototype.tabs;
13686
+ /** @type {?|undefined} */
13687
+ IContentStripUnit.prototype.titleDescription;
13688
+ /** @type {?|undefined} */
13689
+ IContentStripUnit.prototype.name;
13690
+ /** @type {?|undefined} */
13691
+ IContentStripUnit.prototype.mode;
13692
+ /** @type {?|undefined} */
13693
+ IContentStripUnit.prototype.info;
13694
+ /** @type {?|undefined} */
13695
+ IContentStripUnit.prototype.logo;
13696
+ /** @type {?|undefined} */
13697
+ IContentStripUnit.prototype.preWidgets;
13698
+ /** @type {?|undefined} */
13699
+ IContentStripUnit.prototype.postWidgets;
13700
+ /** @type {?|undefined} */
13701
+ IContentStripUnit.prototype.stripConfig;
13702
+ /** @type {?|undefined} */
13703
+ IContentStripUnit.prototype.canHideStrip;
13704
+ /** @type {?} */
13705
+ IContentStripUnit.prototype.showStrip;
13706
+ /** @type {?|undefined} */
13707
+ IContentStripUnit.prototype.filters;
13708
+ /** @type {?|undefined} */
13709
+ IContentStripUnit.prototype.selectAll;
13710
+ /** @type {?|undefined} */
13711
+ IContentStripUnit.prototype.request;
13712
+ /** @type {?|undefined} */
13713
+ IContentStripUnit.prototype.searchV6Type;
13714
+ /** @type {?|undefined} */
13715
+ IContentStripUnit.prototype.stripBackground;
13716
+ /** @type {?|undefined} */
13717
+ IContentStripUnit.prototype.noDataWidget;
13718
+ /** @type {?|undefined} */
13719
+ IContentStripUnit.prototype.loader;
13720
+ /** @type {?|undefined} */
13721
+ IContentStripUnit.prototype.loaderWidgets;
13722
+ /** @type {?|undefined} */
13723
+ IContentStripUnit.prototype.errorWidget;
13724
+ /** @type {?|undefined} */
13725
+ IContentStripUnit.prototype.refreshEvent;
13726
+ /** @type {?|undefined} */
13727
+ IContentStripUnit.prototype.fetchLikes;
13728
+ /** @type {?|undefined} */
13729
+ IContentStripUnit.prototype.secondaryHeading;
13730
+ /** @type {?|undefined} */
13731
+ IContentStripUnit.prototype.viewMoreUrl;
13732
+ /** @type {?|undefined} */
13733
+ IContentStripUnit.prototype.data;
13734
+ }
13735
+ /**
13736
+ * @record
13737
+ */
13738
+ function IStripRequestApi() { }
13739
+ NsContentStripWithFacets.IStripRequestApi = IStripRequestApi;
13740
+ if (false) {
13741
+ /** @type {?} */
13742
+ IStripRequestApi.prototype.path;
13743
+ /** @type {?|undefined} */
13744
+ IStripRequestApi.prototype.queryParams;
13745
+ }
13746
+ /**
13747
+ * @record
13748
+ */
13749
+ function INetworkRequestApi() { }
13750
+ NsContentStripWithFacets.INetworkRequestApi = INetworkRequestApi;
13751
+ if (false) {
13752
+ /** @type {?} */
13753
+ INetworkRequestApi.prototype.path;
13754
+ /** @type {?|undefined} */
13755
+ INetworkRequestApi.prototype.data;
13756
+ }
13757
+ /**
13758
+ * @record
13759
+ */
13760
+ function IStripInfo() { }
13761
+ NsContentStripWithFacets.IStripInfo = IStripInfo;
13762
+ if (false) {
13763
+ /** @type {?} */
13764
+ IStripInfo.prototype.mode;
13765
+ /** @type {?|undefined} */
13766
+ IStripInfo.prototype.visibilityMode;
13767
+ /** @type {?} */
13768
+ IStripInfo.prototype.icon;
13769
+ /** @type {?} */
13770
+ IStripInfo.prototype.widget;
13771
+ }
13772
+ /**
13773
+ * @record
13774
+ */
13775
+ function IStripConfig() { }
13776
+ if (false) {
13777
+ /** @type {?} */
13778
+ IStripConfig.prototype.cardSubType;
13779
+ /** @type {?|undefined} */
13780
+ IStripConfig.prototype.postCardForSearch;
13781
+ /** @type {?|undefined} */
13782
+ IStripConfig.prototype.intranetMode;
13783
+ /** @type {?|undefined} */
13784
+ IStripConfig.prototype.deletedMode;
13785
+ /** @type {?|undefined} */
13786
+ IStripConfig.prototype.contentTags;
13787
+ /** @type {?|undefined} */
13788
+ IStripConfig.prototype.hideShowAll;
13789
+ }
13790
+ /**
13791
+ * @record
13792
+ */
13793
+ function IContentTags() { }
13794
+ NsContentStripWithFacets.IContentTags = IContentTags;
13795
+ if (false) {
13796
+ /** @type {?|undefined} */
13797
+ IContentTags.prototype.daysSpan;
13798
+ /** @type {?|undefined} */
13799
+ IContentTags.prototype.excludeContentType;
13800
+ /** @type {?|undefined} */
13801
+ IContentTags.prototype.excludeMimeType;
13802
+ /** @type {?} */
13803
+ IContentTags.prototype.tag;
13804
+ /** @type {?} */
13805
+ IContentTags.prototype.criteriaField;
13806
+ }
13807
+ /**
13808
+ * @record
13809
+ */
13810
+ function IContentStripResponseApi() { }
13811
+ NsContentStripWithFacets.IContentStripResponseApi = IContentStripResponseApi;
13812
+ if (false) {
13813
+ /** @type {?} */
13814
+ IContentStripResponseApi.prototype.contents;
13815
+ /** @type {?|undefined} */
13816
+ IContentStripResponseApi.prototype.hasMore;
13817
+ /** @type {?|undefined} */
13818
+ IContentStripResponseApi.prototype.pageState;
13819
+ /** @type {?|undefined} */
13820
+ IContentStripResponseApi.prototype.totalHits;
13821
+ }
13822
+ /**
13823
+ * @record
13824
+ */
13825
+ function IContentStripTab() { }
13826
+ NsContentStripWithFacets.IContentStripTab = IContentStripTab;
13827
+ if (false) {
13828
+ /** @type {?|undefined} */
13829
+ IContentStripTab.prototype.pillsData;
13830
+ /** @type {?} */
13831
+ IContentStripTab.prototype.label;
13832
+ /** @type {?} */
13833
+ IContentStripTab.prototype.value;
13834
+ /** @type {?} */
13835
+ IContentStripTab.prototype.showTabDataCount;
13836
+ /** @type {?|undefined} */
13837
+ IContentStripTab.prototype.requestRequired;
13838
+ /** @type {?|undefined} */
13839
+ IContentStripTab.prototype.computeDataOnClick;
13840
+ /** @type {?|undefined} */
13841
+ IContentStripTab.prototype.computeDataOnClickKey;
13842
+ /** @type {?|undefined} */
13843
+ IContentStripTab.prototype.request;
13844
+ /** @type {?|undefined} */
13845
+ IContentStripTab.prototype.widgets;
13846
+ /** @type {?|undefined} */
13847
+ IContentStripTab.prototype.maxWidgets;
13848
+ /** @type {?|undefined} */
13849
+ IContentStripTab.prototype.fetchTabStatus;
13850
+ /** @type {?|undefined} */
13851
+ IContentStripTab.prototype.nodataMsg;
13852
+ /** @type {?|undefined} */
13853
+ IContentStripTab.prototype.tabLoading;
13854
+ /** @type {?|undefined} */
13855
+ IContentStripTab.prototype.facets;
13856
+ }
13857
+ })(NsContentStripWithFacets || (NsContentStripWithFacets = {}));
13858
+ /** @enum {string} */
13859
+ var ApiRequestFor = {
13860
+ SEARCH: 'search',
13861
+ };
13862
+
13863
+ /**
13864
+ * @fileoverview added by tsickle
13865
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
13866
+ */
13867
+ /**
13868
+ * @record
13869
+ */
13870
+ function IStripUnitContentData$1() { }
13871
+ if (false) {
13872
+ /** @type {?} */
13873
+ IStripUnitContentData$1.prototype.key;
13874
+ /** @type {?} */
13875
+ IStripUnitContentData$1.prototype.canHideStrip;
13876
+ /** @type {?|undefined} */
13877
+ IStripUnitContentData$1.prototype.mode;
13878
+ /** @type {?} */
13879
+ IStripUnitContentData$1.prototype.showStrip;
13880
+ /** @type {?} */
13881
+ IStripUnitContentData$1.prototype.disableTranslate;
13882
+ /** @type {?|undefined} */
13883
+ IStripUnitContentData$1.prototype.widgets;
13884
+ /** @type {?} */
13885
+ IStripUnitContentData$1.prototype.stripTitle;
13886
+ /** @type {?|undefined} */
13887
+ IStripUnitContentData$1.prototype.hideViewMoreUrl;
13888
+ /** @type {?|undefined} */
13889
+ IStripUnitContentData$1.prototype.stripTitleLink;
13890
+ /** @type {?|undefined} */
13891
+ IStripUnitContentData$1.prototype.sliderConfig;
13892
+ /** @type {?} */
13893
+ IStripUnitContentData$1.prototype.stripConfig;
13894
+ /** @type {?|undefined} */
13895
+ IStripUnitContentData$1.prototype.tabs;
13896
+ /** @type {?|undefined} */
13897
+ IStripUnitContentData$1.prototype.stripName;
13898
+ /** @type {?|undefined} */
13899
+ IStripUnitContentData$1.prototype.stripLogo;
13900
+ /** @type {?|undefined} */
13901
+ IStripUnitContentData$1.prototype.description;
13902
+ /** @type {?|undefined} */
13903
+ IStripUnitContentData$1.prototype.stripInfo;
13904
+ /** @type {?|undefined} */
13905
+ IStripUnitContentData$1.prototype.noDataWidget;
13906
+ /** @type {?|undefined} */
13907
+ IStripUnitContentData$1.prototype.errorWidget;
13908
+ /** @type {?} */
13909
+ IStripUnitContentData$1.prototype.showOnNoData;
13910
+ /** @type {?} */
13911
+ IStripUnitContentData$1.prototype.showOnLoader;
13912
+ /** @type {?} */
13913
+ IStripUnitContentData$1.prototype.showOnError;
13914
+ /** @type {?|undefined} */
13915
+ IStripUnitContentData$1.prototype.loaderWidgets;
13916
+ /** @type {?|undefined} */
13917
+ IStripUnitContentData$1.prototype.stripBackground;
13918
+ /** @type {?|undefined} */
13919
+ IStripUnitContentData$1.prototype.secondaryHeading;
13920
+ /** @type {?} */
13921
+ IStripUnitContentData$1.prototype.viewMoreUrl;
13922
+ /** @type {?|undefined} */
13923
+ IStripUnitContentData$1.prototype.request;
13924
+ }
13925
+ var ContentStripFacetFilterComponent = /** @class */ (function (_super) {
13926
+ __extends(ContentStripFacetFilterComponent, _super);
13927
+ function ContentStripFacetFilterComponent(environment, contentSvc, loggerSvc, eventSvc, configSvc, utilitySvc, router, userSvc, translate, langtranslations, _fb) {
13928
+ var _this = _super.call(this) || this;
13929
+ _this.contentSvc = contentSvc;
13930
+ _this.loggerSvc = loggerSvc;
13931
+ _this.eventSvc = eventSvc;
13932
+ _this.configSvc = configSvc;
13933
+ _this.utilitySvc = utilitySvc;
13934
+ _this.router = router;
13935
+ _this.userSvc = userSvc;
13936
+ _this.translate = translate;
13937
+ _this.langtranslations = langtranslations;
13938
+ _this._fb = _fb;
13939
+ _this.emptyResponse = new EventEmitter();
13940
+ _this.viewAllResponse = new EventEmitter();
13941
+ _this.telemtryResponse = new EventEmitter();
13942
+ _this.providerId = '';
13943
+ _this.emitViewAll = false;
13944
+ _this.channnelName = '';
13945
+ _this.id = "ws-strip-miltiple_" + Math.random();
13946
+ _this.stripsResultDataMap = {};
13947
+ _this.stripsKeyOrder = [];
13948
+ _this.showAccordionData = true;
13949
+ _this.showParentLoader = false;
13950
+ _this.showParentError = false;
13951
+ _this.showParentNoData = false;
13952
+ _this.errorDataCount = 0;
13953
+ _this.noDataCount = 0;
13954
+ _this.successDataCount = 0;
13955
+ _this.contentAvailable = true;
13956
+ _this.baseUrl = _this.configSvc.sitePath || '';
13957
+ _this.veifiedKarmayogi = false;
13958
+ _this.changeEventSubscription = null;
13959
+ _this.defaultMaxWidgets = 12;
13960
+ _this.todaysEvents = [];
13961
+ if (localStorage.getItem('websiteLanguage')) {
13962
+ _this.translate.setDefaultLang('en');
13963
+ /** @type {?} */
13964
+ var lang = JSON.stringify(localStorage.getItem('websiteLanguage'));
13965
+ lang = lang.replace(/\"/g, '');
13966
+ _this.translate.use(lang);
13967
+ }
13968
+ _this.environment = environment;
13969
+ return _this;
13970
+ }
13971
+ /**
13972
+ * @return {?}
13973
+ */
13974
+ ContentStripFacetFilterComponent.prototype.ngOnDestroy = /**
13975
+ * @return {?}
13976
+ */
13977
+ function () {
13978
+ };
13979
+ /**
13980
+ * @return {?}
13981
+ */
13982
+ ContentStripFacetFilterComponent.prototype.ngOnInit = /**
13983
+ * @return {?}
13984
+ */
13985
+ function () {
13986
+ var _this = this;
13987
+ this.initData();
13988
+ this.contentSvc.telemetryData$.subscribe((/**
13989
+ * @param {?} data
13990
+ * @return {?}
13991
+ */
13992
+ function (data) {
13993
+ _this.telemtryResponse.emit(data);
13994
+ }));
13995
+ this.facetForm = this._fb.group({
13996
+ org: ['0']
13997
+ });
13998
+ };
13999
+ /**
14000
+ * @private
14001
+ * @return {?}
14002
+ */
14003
+ ContentStripFacetFilterComponent.prototype.initData = /**
14004
+ * @private
14005
+ * @return {?}
14006
+ */
14007
+ function () {
14008
+ var e_1, _a;
14009
+ var _this = this;
14010
+ this.stripsKeyOrder = this.widgetData && this.widgetData.strips && this.widgetData.strips.map((/**
14011
+ * @param {?} strip
14012
+ * @return {?}
14013
+ */
14014
+ function (strip) { return strip.key; })) || [];
14015
+ if (this.widgetData.loader && this.widgetData.strips.length) {
14016
+ this.showParentLoader = true;
14017
+ }
14018
+ try {
14019
+ // Fetch the data
14020
+ for (var _b = __values(this.widgetData.strips), _c = _b.next(); !_c.done; _c = _b.next()) {
14021
+ var strip = _c.value;
14022
+ if (this.checkForEmptyWidget(strip)) {
14023
+ this.fetchStripFromRequestData(strip, false);
14024
+ }
14025
+ else {
14026
+ this.processStrip(strip, [], 'done', true, null);
14027
+ }
14028
+ }
14029
+ }
14030
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
14031
+ finally {
14032
+ try {
14033
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
14034
+ }
14035
+ finally { if (e_1) throw e_1.error; }
14036
+ }
14037
+ // Subscription for changes
14038
+ /** @type {?} */
14039
+ var keyAndEvent = this.widgetData.strips
14040
+ .map((/**
14041
+ * @param {?} strip
14042
+ * @return {?}
14043
+ */
14044
+ function (strip) { return ({
14045
+ key: strip.key,
14046
+ type: (strip.refreshEvent && strip.refreshEvent.eventType) || '',
14047
+ from: (strip.refreshEvent && strip.refreshEvent.from.toString()) || '',
14048
+ }); }))
14049
+ .filter((/**
14050
+ * @param {?} __0
14051
+ * @return {?}
14052
+ */
14053
+ function (_a) {
14054
+ var key = _a.key, type = _a.type, from = _a.from;
14055
+ return key && type && from;
14056
+ }));
14057
+ /** @type {?} */
14058
+ var eventTypeSet = new Set(keyAndEvent.map((/**
14059
+ * @param {?} e
14060
+ * @return {?}
14061
+ */
14062
+ function (e) { return e.type; })));
14063
+ this.changeEventSubscription = this.eventSvc.events$
14064
+ .pipe(filter((/**
14065
+ * @param {?} event
14066
+ * @return {?}
14067
+ */
14068
+ function (event) { return eventTypeSet.has(event.eventType); })))
14069
+ .subscribe((/**
14070
+ * @param {?} event
14071
+ * @return {?}
14072
+ */
14073
+ function (event) {
14074
+ keyAndEvent
14075
+ .filter((/**
14076
+ * @param {?} e
14077
+ * @return {?}
14078
+ */
14079
+ function (e) { return e.type === event.eventType && e.from === event.from; }))
14080
+ .map((/**
14081
+ * @param {?} e
14082
+ * @return {?}
14083
+ */
14084
+ function (e) { return e.key; }))
14085
+ .forEach((/**
14086
+ * @param {?} k
14087
+ * @return {?}
14088
+ */
14089
+ function (k) { return _this.fetchStripFromKey(k, false); }));
14090
+ }));
14091
+ };
14092
+ /**
14093
+ * @private
14094
+ * @param {?} key
14095
+ * @param {?=} calculateParentStatus
14096
+ * @return {?}
14097
+ */
14098
+ ContentStripFacetFilterComponent.prototype.fetchStripFromKey = /**
14099
+ * @private
14100
+ * @param {?} key
14101
+ * @param {?=} calculateParentStatus
14102
+ * @return {?}
14103
+ */
14104
+ function (key, calculateParentStatus) {
14105
+ if (calculateParentStatus === void 0) { calculateParentStatus = true; }
14106
+ /** @type {?} */
14107
+ var stripData = this.widgetData.strips.find((/**
14108
+ * @param {?} strip
14109
+ * @return {?}
14110
+ */
14111
+ function (strip) { return strip.key === key; }));
14112
+ if (stripData) {
14113
+ this.fetchStripFromRequestData(stripData, calculateParentStatus);
14114
+ }
14115
+ };
14116
+ /**
14117
+ * @private
14118
+ * @param {?} strip
14119
+ * @param {?=} calculateParentStatus
14120
+ * @return {?}
14121
+ */
14122
+ ContentStripFacetFilterComponent.prototype.fetchStripFromRequestData = /**
14123
+ * @private
14124
+ * @param {?} strip
14125
+ * @param {?=} calculateParentStatus
14126
+ * @return {?}
14127
+ */
14128
+ function (strip, calculateParentStatus) {
14129
+ if (calculateParentStatus === void 0) { calculateParentStatus = true; }
14130
+ // setting initial values
14131
+ strip.loaderWidgets = this.transformSkeletonToWidgets(strip);
14132
+ this.processStrip(strip, [], 'fetching', false, null);
14133
+ if (strip && strip.stripRequestFor === ApiRequestFor.SEARCH && !strip.onTabClickRequest) {
14134
+ this.fetchFromSearch(strip, calculateParentStatus);
14135
+ }
14136
+ };
14137
+ /**
14138
+ * @private
14139
+ * @param {?} strip
14140
+ * @return {?}
14141
+ */
14142
+ ContentStripFacetFilterComponent.prototype.transformSkeletonToWidgets = /**
14143
+ * @private
14144
+ * @param {?} strip
14145
+ * @return {?}
14146
+ */
14147
+ function (strip) {
14148
+ return [1, 2, 3, 4, 5, 6, 7, 7, 8, 9, 10].map((/**
14149
+ * @param {?} _content
14150
+ * @return {?}
14151
+ */
14152
+ function (_content) { return ({
14153
+ widgetType: 'cardLib',
14154
+ widgetSubType: 'cardContentLib',
14155
+ widgetHostClass: 'mb-2',
14156
+ widgetData: {
14157
+ cardSubType: strip.loaderConfig && strip.loaderConfig.cardSubType || 'card-standard-skeleton',
14158
+ cardCustomeClass: strip.customeClass ? strip.customeClass : '',
14159
+ },
14160
+ }); }));
14161
+ };
14162
+ /**
14163
+ * @private
14164
+ * @param {?} strip
14165
+ * @param {?=} results
14166
+ * @param {?=} fetchStatus
14167
+ * @param {?=} calculateParentStatus
14168
+ * @param {?=} _viewMoreUrl
14169
+ * @param {?=} tabsResults
14170
+ * @return {?}
14171
+ */
14172
+ ContentStripFacetFilterComponent.prototype.processStrip = /**
14173
+ * @private
14174
+ * @param {?} strip
14175
+ * @param {?=} results
14176
+ * @param {?=} fetchStatus
14177
+ * @param {?=} calculateParentStatus
14178
+ * @param {?=} _viewMoreUrl
14179
+ * @param {?=} tabsResults
14180
+ * @return {?}
14181
+ */
14182
+ function (strip, results, fetchStatus, calculateParentStatus, _viewMoreUrl, tabsResults) {
14183
+ if (results === void 0) { results = []; }
14184
+ if (calculateParentStatus === void 0) { calculateParentStatus = true; }
14185
+ return __awaiter(this, void 0, void 0, function () {
14186
+ var stripData;
14187
+ var _a;
14188
+ return __generator(this, function (_b) {
14189
+ stripData = {
14190
+ viewMoreUrl: strip.viewMoreUrl,
14191
+ key: strip.key,
14192
+ canHideStrip: Boolean(strip.canHideStrip),
14193
+ showStrip: this.getIfStripHidden(strip.key),
14194
+ noDataWidget: strip.noDataWidget,
14195
+ errorWidget: strip.errorWidget,
14196
+ stripInfo: strip.info,
14197
+ stripTitle: strip.title,
14198
+ stripTitleLink: strip.stripTitleLink,
14199
+ disableTranslate: strip.disableTranslate,
14200
+ sliderConfig: strip.sliderConfig,
14201
+ tabs: tabsResults ? tabsResults : strip.tabs,
14202
+ stripName: strip.name,
14203
+ mode: strip.mode,
14204
+ stripConfig: strip.stripConfig,
14205
+ stripBackground: strip.stripBackground,
14206
+ secondaryHeading: strip.secondaryHeading,
14207
+ loaderWidgets: strip.loaderWidgets || [],
14208
+ hideViewMoreUrl: strip.hideViewMoreUrl || false,
14209
+ widgets: fetchStatus === 'done'
14210
+ ? __spread((strip.preWidgets || []).map((/**
14211
+ * @param {?} w
14212
+ * @return {?}
14213
+ */
14214
+ function (w) { return (__assign({}, w, { widgetHostClass: "mb-2 " + w.widgetHostClass })); })), results, (strip.postWidgets || []).map((/**
14215
+ * @param {?} w
14216
+ * @return {?}
14217
+ */
14218
+ function (w) { return (__assign({}, w, { widgetHostClass: "mb-2 " + w.widgetHostClass })); }))) : [],
14219
+ showOnNoData: Boolean(strip.noDataWidget &&
14220
+ !((strip.preWidgets || []).length + results.length + (strip.postWidgets || []).length) &&
14221
+ fetchStatus === 'done'),
14222
+ showOnLoader: Boolean(strip.loader && fetchStatus === 'fetching'),
14223
+ showOnError: Boolean(strip.errorWidget && fetchStatus === 'error'),
14224
+ };
14225
+ // const stripData = this.stripsResultDataMap[strip.key]
14226
+ this.stripsResultDataMap = __assign({}, this.stripsResultDataMap, (_a = {}, _a[strip.key] = stripData, _a));
14227
+ if (!tabsResults) {
14228
+ if (calculateParentStatus &&
14229
+ (fetchStatus === 'done' || fetchStatus === 'error') &&
14230
+ stripData.widgets) {
14231
+ this.checkParentStatus(fetchStatus, stripData.widgets.length);
14232
+ }
14233
+ if (calculateParentStatus && !(results && results.length > 0)) {
14234
+ this.contentAvailable = false;
14235
+ }
14236
+ else if (results && results.length > 0) {
14237
+ this.contentAvailable = true;
14238
+ }
14239
+ }
14240
+ else {
14241
+ this.contentAvailable = true;
14242
+ }
14243
+ return [2 /*return*/];
14244
+ });
14245
+ });
14246
+ };
14247
+ /**
14248
+ * @private
14249
+ * @param {?} fetchStatus
14250
+ * @param {?} stripWidgetsCount
14251
+ * @return {?}
14252
+ */
14253
+ ContentStripFacetFilterComponent.prototype.checkParentStatus = /**
14254
+ * @private
14255
+ * @param {?} fetchStatus
14256
+ * @param {?} stripWidgetsCount
14257
+ * @return {?}
14258
+ */
14259
+ function (fetchStatus, stripWidgetsCount) {
14260
+ if (fetchStatus === 'done' && !stripWidgetsCount) {
14261
+ this.noDataCount += 1;
14262
+ }
14263
+ else if (fetchStatus === 'done' && stripWidgetsCount) {
14264
+ this.successDataCount += 1;
14265
+ }
14266
+ else if (fetchStatus === 'error') {
14267
+ this.errorDataCount += 1;
14268
+ }
14269
+ /** @type {?} */
14270
+ var settledCount = this.noDataCount + this.successDataCount + this.errorDataCount;
14271
+ /** @type {?} */
14272
+ var totalCount = this.widgetData.strips.length;
14273
+ if (this.successDataCount > 0 && settledCount < totalCount) {
14274
+ return;
14275
+ }
14276
+ this.showParentLoader = settledCount !== totalCount;
14277
+ this.showParentNoData =
14278
+ this.noDataCount > 0 && this.noDataCount + this.errorDataCount === totalCount;
14279
+ this.showParentError = this.errorDataCount === totalCount;
14280
+ };
14281
+ /**
14282
+ * @param {?} strip
14283
+ * @return {?}
14284
+ */
14285
+ ContentStripFacetFilterComponent.prototype.checkForEmptyWidget = /**
14286
+ * @param {?} strip
14287
+ * @return {?}
14288
+ */
14289
+ function (strip) {
14290
+ if (strip.request &&
14291
+ ((strip.request.requestBody && Object.keys(strip.request.requestBody).length))) {
14292
+ return true;
14293
+ }
14294
+ return false;
14295
+ };
14296
+ // strip settings
14297
+ // strip settings
14298
+ /**
14299
+ * @param {?} data
14300
+ * @return {?}
14301
+ */
14302
+ ContentStripFacetFilterComponent.prototype.toggleInfo =
14303
+ // strip settings
14304
+ /**
14305
+ * @param {?} data
14306
+ * @return {?}
14307
+ */
14308
+ function (data) {
14309
+ /** @type {?} */
14310
+ var stripInfo = this.stripsResultDataMap[data.key].stripInfo;
14311
+ if (stripInfo) {
14312
+ if (stripInfo.mode !== 'below') {
14313
+ this.loggerSvc.warn("strip info mode: " + stripInfo.mode + " not implemented yet");
14314
+ stripInfo.mode = 'below';
14315
+ }
14316
+ if (stripInfo.mode === 'below') {
14317
+ this.stripsResultDataMap[data.key].stripInfo = __assign({}, stripInfo, { visibilityMode: stripInfo.visibilityMode === 'hidden' ? 'visible' : 'hidden' });
14318
+ }
14319
+ }
14320
+ };
14321
+ /**
14322
+ * @param {?} stripData
14323
+ * @return {?}
14324
+ */
14325
+ ContentStripFacetFilterComponent.prototype.raiseTelemetry = /**
14326
+ * @param {?} stripData
14327
+ * @return {?}
14328
+ */
14329
+ function (stripData) {
14330
+ this.telemtryResponse.emit(stripData);
14331
+ };
14332
+ /**
14333
+ * @param {?} key
14334
+ * @return {?}
14335
+ */
14336
+ ContentStripFacetFilterComponent.prototype.setHiddenForStrip = /**
14337
+ * @param {?} key
14338
+ * @return {?}
14339
+ */
14340
+ function (key) {
14341
+ this.stripsResultDataMap[key].showStrip = false;
14342
+ sessionStorage.setItem("cstrip_" + key, '1');
14343
+ };
14344
+ // selected pills data
14345
+ // selected pills data
14346
+ /**
14347
+ * @param {?} tabdata
14348
+ * @param {?} tabIndex
14349
+ * @return {?}
14350
+ */
14351
+ ContentStripFacetFilterComponent.prototype.getSelectedPillIndex =
14352
+ // selected pills data
14353
+ /**
14354
+ * @param {?} tabdata
14355
+ * @param {?} tabIndex
14356
+ * @return {?}
14357
+ */
14358
+ function (tabdata, tabIndex) {
14359
+ if (tabdata.pillsData && tabdata.pillsData.length) {
14360
+ /** @type {?} */
14361
+ var index = tabdata.pillsData.findIndex((/**
14362
+ * @param {?} pill
14363
+ * @return {?}
14364
+ */
14365
+ function (pill) {
14366
+ return pill.selected;
14367
+ }));
14368
+ return index;
14369
+ }
14370
+ return 0;
14371
+ };
14372
+ /**
14373
+ * @param {?} data
14374
+ * @return {?}
14375
+ */
14376
+ ContentStripFacetFilterComponent.prototype.getdata = /**
14377
+ * @param {?} data
14378
+ * @return {?}
14379
+ */
14380
+ function (data) {
14381
+ if (data.stripInfo) {
14382
+ return data.stripInfo.widget;
14383
+ }
14384
+ return {};
14385
+ };
14386
+ /**
14387
+ * @param {?} tabEvent
14388
+ * @param {?} pillIndex
14389
+ * @param {?} stripMap
14390
+ * @param {?} stripKey
14391
+ * @return {?}
14392
+ */
14393
+ ContentStripFacetFilterComponent.prototype.tabClicked = /**
14394
+ * @param {?} tabEvent
14395
+ * @param {?} pillIndex
14396
+ * @param {?} stripMap
14397
+ * @param {?} stripKey
14398
+ * @return {?}
14399
+ */
14400
+ function (tabEvent, pillIndex, stripMap, stripKey) {
14401
+ var _this = this;
14402
+ if (stripMap && stripMap.tabs && stripMap.tabs[tabEvent.index]) {
14403
+ stripMap.tabs[tabEvent.index].pillsData[pillIndex].fetchTabStatus = 'inprogress';
14404
+ stripMap.tabs[tabEvent.index].pillsData[pillIndex].tabLoading = true;
14405
+ stripMap.showOnLoader = true;
14406
+ }
14407
+ /** @type {?} */
14408
+ var data = {
14409
+ label: "" + tabEvent.tab.textLabel,
14410
+ index: tabEvent.index,
14411
+ };
14412
+ this.eventSvc.raiseInteractTelemetry({
14413
+ type: WsEvents.EnumInteractTypes.CLICK,
14414
+ subType: WsEvents.EnumInteractSubTypes.HOME_PAGE_STRIP_TABS,
14415
+ id: camelCase(data.label) + "-tab",
14416
+ }, {}, {
14417
+ module: WsEvents.EnumTelemetrymodules.HOME,
14418
+ });
14419
+ /** @type {?} */
14420
+ var currentTabFromMap = stripMap.tabs && stripMap.tabs[tabEvent.index];
14421
+ /** @type {?} */
14422
+ var currentPillFromMap = stripMap.tabs && stripMap.tabs[tabEvent.index].pillsData[pillIndex];
14423
+ /** @type {?} */
14424
+ var currentStrip = this.widgetData.strips.find((/**
14425
+ * @param {?} s
14426
+ * @return {?}
14427
+ */
14428
+ function (s) { return s.key === stripKey; }));
14429
+ if (this.stripsResultDataMap[stripKey] && currentTabFromMap) {
14430
+ this.stripsResultDataMap[stripKey].viewMoreUrl.queryParams = __assign({}, this.stripsResultDataMap[stripKey].viewMoreUrl.queryParams, { tabSelected: currentTabFromMap.value, pillSelected: currentPillFromMap.value });
14431
+ }
14432
+ if (currentStrip && currentTabFromMap && !currentTabFromMap.computeDataOnClick && currentPillFromMap) {
14433
+ if (currentPillFromMap.requestRequired && currentPillFromMap.request) {
14434
+ if (currentPillFromMap.request.searchV6) {
14435
+ // this.getTabDataByNewReqSearchV6(currentStrip, tabEvent.index, currentTabFromMap, true);
14436
+ }
14437
+ stripMap.tabs[tabEvent.index].pillsData[pillIndex].tabLoading = false;
14438
+ }
14439
+ else {
14440
+ this.getTabDataByfilter(currentStrip, currentTabFromMap, true);
14441
+ if (stripMap && stripMap.tabs && stripMap.tabs[tabEvent.index]) {
14442
+ stripMap.tabs[tabEvent.index].pillsData[pillIndex].fetchTabStatus = 'inprogress';
14443
+ stripMap.tabs[tabEvent.index].pillsData[pillIndex].tabLoading = false;
14444
+ stripMap.showOnLoader = true;
14445
+ this.resetFilter(stripMap, tabEvent.index, pillIndex);
14446
+ }
14447
+ setTimeout((/**
14448
+ * @return {?}
14449
+ */
14450
+ function () {
14451
+ if (stripMap && stripMap.tabs && stripMap.tabs[tabEvent.index]) {
14452
+ stripMap.tabs[tabEvent.index].pillsData[pillIndex].fetchTabStatus = 'done';
14453
+ stripMap.tabs[tabEvent.index].pillsData[pillIndex].tabLoading = false;
14454
+ stripMap.showOnLoader = false;
14455
+ _this.resetSelectedPill(stripMap.tabs[tabEvent.index].pillsData);
14456
+ stripMap.tabs[tabEvent.index].pillsData[pillIndex]['selected'] = true;
14457
+ }
14458
+ }), 200);
14459
+ }
14460
+ }
14461
+ };
14462
+ /**
14463
+ * @param {?} event
14464
+ * @param {?} stripMap
14465
+ * @param {?} stripKey
14466
+ * @param {?} pillIndex
14467
+ * @param {?} tabIndex
14468
+ * @return {?}
14469
+ */
14470
+ ContentStripFacetFilterComponent.prototype.pillClicked = /**
14471
+ * @param {?} event
14472
+ * @param {?} stripMap
14473
+ * @param {?} stripKey
14474
+ * @param {?} pillIndex
14475
+ * @param {?} tabIndex
14476
+ * @return {?}
14477
+ */
14478
+ function (event, stripMap, stripKey, pillIndex, tabIndex) {
14479
+ var _this = this;
14480
+ if (stripMap && stripMap.tabs && stripMap.tabs[tabIndex]) {
14481
+ stripMap.tabs[tabIndex].pillsData[pillIndex].fetchTabStatus = 'inprogress';
14482
+ stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = true;
14483
+ stripMap.showOnLoader = true;
14484
+ }
14485
+ /** @type {?} */
14486
+ var currentTabFromMap = stripMap.tabs && stripMap.tabs[tabIndex];
14487
+ /** @type {?} */
14488
+ var currentPillFromMap = stripMap.tabs && stripMap.tabs[tabIndex].pillsData[pillIndex];
14489
+ /** @type {?} */
14490
+ var currentStrip = this.widgetData.strips.find((/**
14491
+ * @param {?} s
14492
+ * @return {?}
14493
+ */
14494
+ function (s) { return s.key === stripKey; }));
14495
+ if (this.stripsResultDataMap[stripKey] && currentTabFromMap) {
14496
+ this.stripsResultDataMap[stripKey].viewMoreUrl.queryParams = __assign({}, this.stripsResultDataMap[stripKey].viewMoreUrl.queryParams, { tabSelected: currentTabFromMap.value, pillSelected: currentPillFromMap.value });
14497
+ }
14498
+ if (currentStrip && currentTabFromMap && !currentTabFromMap.computeDataOnClick && currentPillFromMap) {
14499
+ if (currentPillFromMap.requestRequired && currentPillFromMap.request) {
14500
+ // call API to get tab data and process
14501
+ // this.processStrip(currentStrip, [], 'fetching', true, null)
14502
+ if (currentPillFromMap.request.searchV6) {
14503
+ // this.getTabDataByNewReqSearchV6(currentStrip, tabIndex, pillIndex, currentPillFromMap, true);
14504
+ }
14505
+ else if (currentPillFromMap.request.trendingSearch) {
14506
+ // this.getTabDataByNewReqTrending(currentStrip, tabIndex, pillIndex, currentPillFromMap, true);
14507
+ }
14508
+ // if (stripMap && stripMap.tabs && stripMap.tabs[tabEvent.index]) {
14509
+ // stripMap.tabs[tabEvent.index].tabLoading = false;
14510
+ // }
14511
+ stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = false;
14512
+ }
14513
+ else {
14514
+ this.getTabDataByfilter(currentStrip, currentTabFromMap, true);
14515
+ if (stripMap && stripMap.tabs && stripMap.tabs[tabIndex]) {
14516
+ stripMap.tabs[tabIndex].pillsData[pillIndex].fetchTabStatus = 'inprogress';
14517
+ stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = false;
14518
+ stripMap.showOnLoader = true;
14519
+ this.resetFilter(stripMap, tabIndex, pillIndex);
14520
+ }
14521
+ setTimeout((/**
14522
+ * @return {?}
14523
+ */
14524
+ function () {
14525
+ if (stripMap && stripMap.tabs && stripMap.tabs[tabIndex]) {
14526
+ stripMap.tabs[tabIndex].pillsData[pillIndex].fetchTabStatus = 'done';
14527
+ stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = false;
14528
+ stripMap.showOnLoader = false;
14529
+ _this.resetSelectedPill(stripMap.tabs[tabIndex].pillsData);
14530
+ stripMap.tabs[tabIndex].pillsData[pillIndex]['selected'] = true;
14531
+ }
14532
+ }), 200);
14533
+ }
14534
+ }
14535
+ };
14536
+ /**
14537
+ * @param {?} pillData
14538
+ * @return {?}
14539
+ */
14540
+ ContentStripFacetFilterComponent.prototype.resetSelectedPill = /**
14541
+ * @param {?} pillData
14542
+ * @return {?}
14543
+ */
14544
+ function (pillData) {
14545
+ if (pillData && pillData.length) {
14546
+ pillData.forEach((/**
14547
+ * @param {?} pill
14548
+ * @return {?}
14549
+ */
14550
+ function (pill) {
14551
+ pill['selected'] = false;
14552
+ }));
14553
+ }
14554
+ };
14555
+ /**
14556
+ * @param {?} strip
14557
+ * @param {?} currentTab
14558
+ * @param {?} calculateParentStatus
14559
+ * @return {?}
14560
+ */
14561
+ ContentStripFacetFilterComponent.prototype.getTabDataByfilter = /**
14562
+ * @param {?} strip
14563
+ * @param {?} currentTab
14564
+ * @param {?} calculateParentStatus
14565
+ * @return {?}
14566
+ */
14567
+ function (strip, currentTab, calculateParentStatus) {
14568
+ // tslint:disable:no-console
14569
+ console.log('strip -- ', strip);
14570
+ // tslint:disable:no-console
14571
+ console.log('currentTab -- ', currentTab);
14572
+ // tslint:disable:no-console
14573
+ console.log('calculateParentStatus-- ', calculateParentStatus);
14574
+ // TODO: Write logic for individual filter if passed in config
14575
+ // add switch case based on config key passed
14576
+ };
14577
+ /**
14578
+ * @private
14579
+ * @param {?} key
14580
+ * @return {?}
14581
+ */
14582
+ ContentStripFacetFilterComponent.prototype.getIfStripHidden = /**
14583
+ * @private
14584
+ * @param {?} key
14585
+ * @return {?}
14586
+ */
14587
+ function (key) {
14588
+ /** @type {?} */
14589
+ var storageItem = sessionStorage.getItem("cstrip_" + key);
14590
+ return Boolean(storageItem !== '1');
14591
+ };
14592
+ // translate labes
14593
+ // translate labes
14594
+ /**
14595
+ * @param {?} label
14596
+ * @param {?} type
14597
+ * @return {?}
14598
+ */
14599
+ ContentStripFacetFilterComponent.prototype.translateLabels =
14600
+ // translate labes
14601
+ /**
14602
+ * @param {?} label
14603
+ * @param {?} type
14604
+ * @return {?}
14605
+ */
14606
+ function (label, type) {
14607
+ return this.langtranslations.translateLabel(label, type, '');
14608
+ };
14609
+ /**
14610
+ * @param {?} stripData
14611
+ * @param {?} path
14612
+ * @param {?} queryParamsData
14613
+ * @return {?}
14614
+ */
14615
+ ContentStripFacetFilterComponent.prototype.redirectViewAll = /**
14616
+ * @param {?} stripData
14617
+ * @param {?} path
14618
+ * @param {?} queryParamsData
14619
+ * @return {?}
14620
+ */
14621
+ function (stripData, path, queryParamsData) {
14622
+ if (this.emitViewAll) {
14623
+ this.viewAllResponse.emit(stripData);
14624
+ }
14625
+ else {
14626
+ this.router.navigate([path], { queryParams: queryParamsData });
14627
+ }
14628
+ };
14629
+ /**
14630
+ * @param {?} index
14631
+ * @param {?} item
14632
+ * @return {?}
14633
+ */
14634
+ ContentStripFacetFilterComponent.prototype.identify = /**
14635
+ * @param {?} index
14636
+ * @param {?} item
14637
+ * @return {?}
14638
+ */
14639
+ function (index, item) {
14640
+ if (index >= 0) { }
14641
+ return item;
14642
+ };
14643
+ /**
14644
+ * @param {?} index
14645
+ * @param {?} item
14646
+ * @return {?}
14647
+ */
14648
+ ContentStripFacetFilterComponent.prototype.tracker = /**
14649
+ * @param {?} index
14650
+ * @param {?} item
14651
+ * @return {?}
14652
+ */
14653
+ function (index, item) {
14654
+ if (index >= 0) { }
14655
+ return get(item, 'widgetData.content.identifier');
14656
+ };
14657
+ /**
14658
+ * @param {?} data
14659
+ * @return {?}
14660
+ */
14661
+ ContentStripFacetFilterComponent.prototype.getContineuLearningLenth = /**
14662
+ * @param {?} data
14663
+ * @return {?}
14664
+ */
14665
+ function (data) {
14666
+ return data.widgets ? data.widgets.length : 0;
14667
+ };
14668
+ /**
14669
+ * @param {?} key
14670
+ * @return {?}
14671
+ */
14672
+ ContentStripFacetFilterComponent.prototype.showAccordion = /**
14673
+ * @param {?} key
14674
+ * @return {?}
14675
+ */
14676
+ function (key) {
14677
+ if (this.utilitySvc.isMobile && this.stripsResultDataMap[key].mode === 'accordion') {
14678
+ return this.showAccordionData;
14679
+ }
14680
+ return true;
14681
+ };
14682
+ /**
14683
+ * @param {?} wData
14684
+ * @param {?} data
14685
+ * @return {?}
14686
+ */
14687
+ ContentStripFacetFilterComponent.prototype.checkCondition = /**
14688
+ * @param {?} wData
14689
+ * @param {?} data
14690
+ * @return {?}
14691
+ */
14692
+ function (wData, data) {
14693
+ if (wData.strips[0].stripConfig && wData.strips[0].stripConfig.hideShowAll) {
14694
+ return !wData.strips[0].stripConfig.hideShowAll;
14695
+ }
14696
+ return wData.strips[0].viewMoreUrl && data.widgets && data.widgets.length >= 4;
14697
+ };
14698
+ /**
14699
+ * @param {?} data
14700
+ * @return {?}
14701
+ */
14702
+ ContentStripFacetFilterComponent.prototype.checkVisible = /**
14703
+ * @param {?} data
14704
+ * @return {?}
14705
+ */
14706
+ function (data) {
14707
+ return data.stripInfo && data.stripInfo.visibilityMode === 'visible';
14708
+ };
14709
+ /**
14710
+ * @param {?} stripsResultDataMap
14711
+ * @param {?} key
14712
+ * @return {?}
14713
+ */
14714
+ ContentStripFacetFilterComponent.prototype.getSelectedIndex = /**
14715
+ * @param {?} stripsResultDataMap
14716
+ * @param {?} key
14717
+ * @return {?}
14718
+ */
14719
+ function (stripsResultDataMap, key) {
14720
+ /** @type {?} */
14721
+ var returnValue = 0;
14722
+ return returnValue;
14723
+ };
14724
+ /**
14725
+ * @param {?} data
14726
+ * @return {?}
14727
+ */
14728
+ ContentStripFacetFilterComponent.prototype.getLength = /**
14729
+ * @param {?} data
14730
+ * @return {?}
14731
+ */
14732
+ function (data) {
14733
+ if (!data.tabs || !data.tabs.length) {
14734
+ return data.widgets ? data.widgets.length : 0;
14735
+ }
14736
+ {
14737
+ // if tabs are there check if each tab has widgets and get the tab with max widgets
14738
+ /** @type {?} */
14739
+ var tabWithMaxWidgets_1 = {};
14740
+ data.tabs.forEach((/**
14741
+ * @param {?} tab
14742
+ * @return {?}
14743
+ */
14744
+ function (tab) {
14745
+ if (tab.pillsData && tab.pillsData.length) {
14746
+ tabWithMaxWidgets_1 = tab.pillsData.reduce((/**
14747
+ * @param {?} prev
14748
+ * @param {?} current
14749
+ * @return {?}
14750
+ */
14751
+ function (prev, current) {
14752
+ if (!prev.widgets && !current.widgets) {
14753
+ return current;
14754
+ }
14755
+ if (prev.widgets && current.widgets) {
14756
+ return (prev.widgets.length > current.widgets.length) ? prev : current;
14757
+ }
14758
+ if (current.widgets && !prev.widgets) {
14759
+ return current;
14760
+ }
14761
+ if (!current.widgets && prev.widgets) {
14762
+ return prev;
14763
+ }
14764
+ return current;
14765
+ // return (prev.widgets && current.widgets && (prev.widgets.length > current.widgets.length) ) ? prev : current
14766
+ // tslint:disable-next-line: align
14767
+ }), data.tabs[0]);
14768
+ }
14769
+ }));
14770
+ // if tabs has atleast 1 widgets then strip will show or else not
14771
+ return tabWithMaxWidgets_1.widgets ? tabWithMaxWidgets_1.widgets.length : 0;
14772
+ }
14773
+ };
14774
+ /**
14775
+ * @param {?} data
14776
+ * @return {?}
14777
+ */
14778
+ ContentStripFacetFilterComponent.prototype.isStripShowing = /**
14779
+ * @param {?} data
14780
+ * @return {?}
14781
+ */
14782
+ function (data) {
14783
+ var _this = this;
14784
+ /** @type {?} */
14785
+ var count = 0;
14786
+ if (data && data.key === this.environment.programStripKey && (!data.tabs || !data.tabs.length) &&
14787
+ data.stripTitle === this.environment.programStripName && data.widgets.length > 0) {
14788
+ data.widgets.forEach((/**
14789
+ * @param {?} key
14790
+ * @return {?}
14791
+ */
14792
+ function (key) {
14793
+ if (key && key.widgetData.content.primaryCategory === _this.environment.programStripPrimaryCategory) {
14794
+ count = count + 1;
14795
+ }
14796
+ }));
14797
+ if (count > 0) {
14798
+ data.showStrip = true;
14799
+ }
14800
+ else {
14801
+ data.showStrip = false;
14802
+ }
14803
+ }
14804
+ // console.log('data.key', data, data.key, data.widgets);
14805
+ return data.showStrip;
14806
+ };
14807
+ Object.defineProperty(ContentStripFacetFilterComponent.prototype, "isMobile", {
14808
+ get: /**
14809
+ * @return {?}
14810
+ */
14811
+ function () {
14812
+ return this.utilitySvc.isMobile || false;
14813
+ },
14814
+ enumerable: true,
14815
+ configurable: true
14816
+ });
14817
+ // search api with facets
14818
+ // search api with facets
14819
+ /**
14820
+ * @param {?} strip
14821
+ * @param {?} request
14822
+ * @param {?} apiUrl
14823
+ * @param {?} calculateParentStatus
14824
+ * @return {?}
14825
+ */
14826
+ ContentStripFacetFilterComponent.prototype.postRequestMethod =
14827
+ // search api with facets
14828
+ /**
14829
+ * @param {?} strip
14830
+ * @param {?} request
14831
+ * @param {?} apiUrl
14832
+ * @param {?} calculateParentStatus
14833
+ * @return {?}
14834
+ */
14835
+ function (strip, request, apiUrl, calculateParentStatus) {
14836
+ return __awaiter(this, void 0, void 0, function () {
14837
+ var _this = this;
14838
+ return __generator(this, function (_a) {
14839
+ return [2 /*return*/, new Promise((/**
14840
+ * @param {?} resolve
14841
+ * @param {?} reject
14842
+ * @return {?}
14843
+ */
14844
+ function (resolve, reject) {
14845
+ if (request && request) {
14846
+ _this.contentSvc.postApiMethod(apiUrl, request).subscribe((/**
14847
+ * @param {?} results
14848
+ * @return {?}
14849
+ */
14850
+ function (results) {
14851
+ if (results.result && results.result.content) {
14852
+ /** @type {?} */
14853
+ var showViewMore = Boolean(results.result.content && results.result.content.length > 5 && strip.stripConfig && strip.stripConfig.postCardForSearch);
14854
+ /** @type {?} */
14855
+ var viewMoreUrl = showViewMore
14856
+ ? {
14857
+ path: strip.viewMoreUrl && strip.viewMoreUrl.path || '',
14858
+ queryParams: {
14859
+ tab: 'Learn',
14860
+ q: strip.viewMoreUrl && strip.viewMoreUrl.queryParams,
14861
+ f: {},
14862
+ },
14863
+ }
14864
+ : null;
14865
+ resolve({ results: results, viewMoreUrl: viewMoreUrl });
14866
+ }
14867
+ }), (/**
14868
+ * @param {?} error
14869
+ * @return {?}
14870
+ */
14871
+ function (error) {
14872
+ _this.processStrip(strip, [], 'error', calculateParentStatus, null);
14873
+ reject(error);
14874
+ }));
14875
+ }
14876
+ }))];
14877
+ });
14878
+ });
14879
+ };
14880
+ /**
14881
+ * @param {?} strip
14882
+ * @param {?=} calculateParentStatus
14883
+ * @return {?}
14884
+ */
14885
+ ContentStripFacetFilterComponent.prototype.fetchFromSearch = /**
14886
+ * @param {?} strip
14887
+ * @param {?=} calculateParentStatus
14888
+ * @return {?}
14889
+ */
14890
+ function (strip, calculateParentStatus) {
14891
+ if (calculateParentStatus === void 0) { calculateParentStatus = true; }
14892
+ return __awaiter(this, void 0, void 0, function () {
14893
+ var response, tabIndex, pillIndex, widgets, tabResults, error_1;
14894
+ return __generator(this, function (_a) {
14895
+ switch (_a.label) {
14896
+ case 0:
14897
+ if (!(strip.request && Object.keys(strip.request.requestBody).length)) return [3 /*break*/, 4];
14898
+ _a.label = 1;
14899
+ case 1:
14900
+ _a.trys.push([1, 3, , 4]);
14901
+ return [4 /*yield*/, this.postRequestMethod(strip, strip.request.requestBody, strip.request.apiUrl, calculateParentStatus)];
14902
+ case 2:
14903
+ response = _a.sent();
14904
+ tabIndex = 0;
14905
+ pillIndex = 0;
14906
+ if (response.results && response.results.result) {
14907
+ this.mapAllDataWithFacets(strip, response.results.result.content, response.results.result.facets, calculateParentStatus);
14908
+ widgets = this.transformContentsToWidgets(response.results.result.content, strip);
14909
+ tabResults = [];
14910
+ // if (this.stripsResultDataMap[strip.key] && this.stripsResultDataMap[strip.key].tabs) {
14911
+ // const allTabs = this.stripsResultDataMap[strip.key].tabs;
14912
+ // const allPills = this.stripsResultDataMap[strip.key].tabs[tabIndex].pillsData;
14913
+ // this.resetSelectedPill(allPills)
14914
+ // if (allTabs && allTabs.length && allTabs[tabIndex]) {
14915
+ // if(allPills && allPills.length && allPills[pillIndex]){
14916
+ // allPills[pillIndex] = {
14917
+ // ...allPills[pillIndex],
14918
+ // widgets,
14919
+ // fetchTabStatus: 'done',
14920
+ // selected: true
14921
+ // };
14922
+ // }
14923
+ // allTabs[tabIndex] = {
14924
+ // ...allTabs[tabIndex],
14925
+ // widgets,
14926
+ // fetchTabStatus: 'done',
14927
+ // };
14928
+ // tabResults = allTabs;
14929
+ // }
14930
+ // }
14931
+ // this.processStrip(
14932
+ // strip,
14933
+ // widgets,
14934
+ // 'done',
14935
+ // calculateParentStatus,
14936
+ // response.viewMoreUrl,
14937
+ // tabResults // tabResults as widgets
14938
+ // );
14939
+ }
14940
+ return [3 /*break*/, 4];
14941
+ case 3:
14942
+ error_1 = _a.sent();
14943
+ return [3 /*break*/, 4];
14944
+ case 4: return [2 /*return*/];
14945
+ }
14946
+ });
14947
+ });
14948
+ };
14949
+ /**
14950
+ * @param {?} strip
14951
+ * @param {?} content
14952
+ * @param {?} facets
14953
+ * @param {?} calculateParentStatus
14954
+ * @return {?}
14955
+ */
14956
+ ContentStripFacetFilterComponent.prototype.mapAllDataWithFacets = /**
14957
+ * @param {?} strip
14958
+ * @param {?} content
14959
+ * @param {?} facets
14960
+ * @param {?} calculateParentStatus
14961
+ * @return {?}
14962
+ */
14963
+ function (strip, content, facets, calculateParentStatus) {
14964
+ var _this = this;
14965
+ console.log(strip, content);
14966
+ /** @type {?} */
14967
+ var allTabs = this.stripsResultDataMap[strip.key].tabs;
14968
+ /** @type {?} */
14969
+ var facet = [];
14970
+ allTabs.forEach((/**
14971
+ * @param {?} ele
14972
+ * @return {?}
14973
+ */
14974
+ function (ele) {
14975
+ ele['fetchTabStatus'] = 'done';
14976
+ /** @type {?} */
14977
+ var filteredData = content.filter((/**
14978
+ * @param {?} contEle
14979
+ * @return {?}
14980
+ */
14981
+ function (contEle) { return contEle.nlwUserExp.includes(ele.value); }))
14982
+ // filteredData.forEach(element => {
14983
+ // facet = [...facet,..._.difference(element.nlwOrgs ,facet)];
14984
+ // });
14985
+ ;
14986
+ // filteredData.forEach(element => {
14987
+ // facet = [...facet,..._.difference(element.nlwOrgs ,facet)];
14988
+ // });
14989
+ ele['widgets'] = filteredData;
14990
+ ele.pillsData.forEach((/**
14991
+ * @param {?} pill
14992
+ * @return {?}
14993
+ */
14994
+ function (pill) {
14995
+ if (pill.value === 'all') {
14996
+ pill['widgets'] = _this.transformContentsToWidgets(filteredData, strip);
14997
+ pill['fetchTabStatus'] = 'done';
14998
+ }
14999
+ else if (pill.value === 'course') {
15000
+ /** @type {?} */
15001
+ var contentFilteredData = filteredData.filter((/**
15002
+ * @param {?} contEle
15003
+ * @return {?}
15004
+ */
15005
+ function (contEle) { return contEle.courseCategory.toLowerCase() === pill.value; }));
15006
+ pill['widgets'] = _this.transformContentsToWidgets(contentFilteredData, strip);
15007
+ pill['fetchTabStatus'] = 'done';
15008
+ }
15009
+ else {
15010
+ /** @type {?} */
15011
+ var contentFilteredData = filteredData.filter((/**
15012
+ * @param {?} contEle
15013
+ * @return {?}
15014
+ */
15015
+ function (contEle) { return contEle.courseCategory.toLowerCase() !== 'course'; }));
15016
+ pill['widgets'] = _this.transformContentsToWidgets(contentFilteredData, strip);
15017
+ pill['fetchTabStatus'] = 'done';
15018
+ }
15019
+ }));
15020
+ // ele['facets'] = [{
15021
+ // name:'nlwOrgs',
15022
+ // values: facet
15023
+ // }]
15024
+ ele['facets'] = facets;
15025
+ }));
15026
+ strip.tabs[0].pillsData[0].fetchTabStatus = 'done';
15027
+ strip.tabs[0].pillsData[0].tabLoading = false;
15028
+ strip.showOnLoader = false;
15029
+ this.resetSelectedPill(strip.tabs[0].pillsData);
15030
+ strip.tabs[0].pillsData[0]['selected'] = true;
15031
+ this.processStrip(strip, [], 'done', calculateParentStatus, strip.viewMoreUrl, allTabs // tabResults as widgets
15032
+ );
15033
+ };
15034
+ /**
15035
+ * @private
15036
+ * @param {?} contents
15037
+ * @param {?} strip
15038
+ * @return {?}
15039
+ */
15040
+ ContentStripFacetFilterComponent.prototype.transformContentsToWidgets = /**
15041
+ * @private
15042
+ * @param {?} contents
15043
+ * @param {?} strip
15044
+ * @return {?}
15045
+ */
15046
+ function (contents, strip) {
15047
+ return (contents || []).map((/**
15048
+ * @param {?} content
15049
+ * @param {?} idx
15050
+ * @return {?}
15051
+ */
15052
+ function (content, idx) { return (content ? {
15053
+ widgetType: 'cardLib',
15054
+ widgetSubType: 'cardContentLib',
15055
+ widgetHostClass: 'mb-2',
15056
+ 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 }),
15057
+ } : {
15058
+ widgetType: 'card',
15059
+ widgetSubType: 'cardContent',
15060
+ widgetHostClass: 'mb-2',
15061
+ widgetData: {},
15062
+ }); }));
15063
+ };
15064
+ /**
15065
+ * @param {?} eventData
15066
+ * @param {?} stripMap
15067
+ * @param {?} tabIndex
15068
+ * @return {?}
15069
+ */
15070
+ ContentStripFacetFilterComponent.prototype.getorgData = /**
15071
+ * @param {?} eventData
15072
+ * @param {?} stripMap
15073
+ * @param {?} tabIndex
15074
+ * @return {?}
15075
+ */
15076
+ function (eventData, stripMap, tabIndex) {
15077
+ var _this = this;
15078
+ console.log(eventData);
15079
+ /** @type {?} */
15080
+ var selectedValue = eventData.target.value;
15081
+ /** @type {?} */
15082
+ var pillIndex = this.getSelectedPillIndex(stripMap.tabs[tabIndex], tabIndex);
15083
+ if (stripMap && stripMap.tabs && stripMap.tabs[tabIndex]) {
15084
+ stripMap.tabs[tabIndex].pillsData[pillIndex].fetchTabStatus = 'inprogress';
15085
+ stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = false;
15086
+ stripMap.showOnLoader = true;
15087
+ /** @type {?} */
15088
+ var returnedValues = stripMap.tabs[tabIndex].widgets.filter((/**
15089
+ * @param {?} ele
15090
+ * @return {?}
15091
+ */
15092
+ function (ele) {
15093
+ /** @type {?} */
15094
+ var words = ele.nlwOrgs.map((/**
15095
+ * @param {?} v
15096
+ * @return {?}
15097
+ */
15098
+ function (v) { return v.toLowerCase(); }));
15099
+ return words.includes(selectedValue);
15100
+ }));
15101
+ stripMap.tabs[tabIndex].pillsData[pillIndex]['widgets'] = this.transformContentsToWidgets(returnedValues, stripMap);
15102
+ }
15103
+ setTimeout((/**
15104
+ * @return {?}
15105
+ */
15106
+ function () {
15107
+ if (stripMap && stripMap.tabs && stripMap.tabs[tabIndex]) {
15108
+ stripMap.tabs[tabIndex].pillsData[pillIndex].fetchTabStatus = 'done';
15109
+ stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = false;
15110
+ stripMap.showOnLoader = false;
15111
+ _this.resetSelectedPill(stripMap.tabs[tabIndex].pillsData);
15112
+ stripMap.tabs[tabIndex].pillsData[pillIndex]['selected'] = true;
15113
+ }
15114
+ }), 200);
15115
+ };
15116
+ /**
15117
+ * @param {?} stripMap
15118
+ * @param {?} tabIndex
15119
+ * @param {?} pillIndex
15120
+ * @return {?}
15121
+ */
15122
+ ContentStripFacetFilterComponent.prototype.resetFilter = /**
15123
+ * @param {?} stripMap
15124
+ * @param {?} tabIndex
15125
+ * @param {?} pillIndex
15126
+ * @return {?}
15127
+ */
15128
+ function (stripMap, tabIndex, pillIndex) {
15129
+ var _this = this;
15130
+ // let selectedValue = eventData.target.value
15131
+ if (pillIndex) {
15132
+ pillIndex = this.getSelectedPillIndex(stripMap.tabs[tabIndex], tabIndex);
15133
+ }
15134
+ this.facetForm.reset({
15135
+ org: 0
15136
+ });
15137
+ if (stripMap && stripMap.tabs && stripMap.tabs[tabIndex]) {
15138
+ stripMap.tabs[tabIndex].pillsData[pillIndex].fetchTabStatus = 'inprogress';
15139
+ stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = false;
15140
+ stripMap.showOnLoader = true;
15141
+ // let returnedValues = stripMap.tabs[tabIndex].widgets.filter((ele: any) => {
15142
+ // var words = ele.nlwOrgs.map(v => v.toLowerCase());
15143
+ // return words.includes(selectedValue)
15144
+ // })
15145
+ /** @type {?} */
15146
+ var contentData = stripMap.tabs[tabIndex].widgets || [];
15147
+ stripMap.tabs[tabIndex].pillsData[pillIndex]['widgets'] = this.transformContentsToWidgets(contentData, stripMap);
15148
+ }
15149
+ setTimeout((/**
15150
+ * @return {?}
15151
+ */
15152
+ function () {
15153
+ if (stripMap && stripMap.tabs && stripMap.tabs[tabIndex]) {
15154
+ stripMap.tabs[tabIndex].pillsData[pillIndex].fetchTabStatus = 'done';
15155
+ stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = false;
15156
+ stripMap.showOnLoader = false;
15157
+ _this.resetSelectedPill(stripMap.tabs[tabIndex].pillsData);
15158
+ stripMap.tabs[tabIndex].pillsData[pillIndex]['selected'] = true;
15159
+ }
15160
+ }), 200);
15161
+ };
15162
+ ContentStripFacetFilterComponent.decorators = [
15163
+ { type: Component, args: [{
15164
+ selector: 'sb-uic-content-strip-facet-filter',
15165
+ 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 <form [formGroup]=\"facetForm\">\n <div class=\"facets-select\">\n <select formControlName=\"org\" (change)=\"getorgData($event, stripsResultDataMap[key], tabIndex)\">\n <option value=\"0\" 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 </form>\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>",
15166
+ 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}"]
15167
+ }] }
15168
+ ];
15169
+ /** @nocollapse */
15170
+ ContentStripFacetFilterComponent.ctorParameters = function () { return [
15171
+ { type: undefined, decorators: [{ type: Inject, args: ['environment',] }] },
15172
+ { type: WidgetContentService },
15173
+ { type: LoggerService },
15174
+ { type: EventService },
15175
+ { type: ConfigurationsService$1 },
15176
+ { type: UtilityService },
15177
+ { type: Router },
15178
+ { type: WidgetUserService },
15179
+ { type: TranslateService },
15180
+ { type: MultilingualTranslationsService },
15181
+ { type: FormBuilder }
15182
+ ]; };
15183
+ ContentStripFacetFilterComponent.propDecorators = {
15184
+ widgetData: [{ type: Input }],
15185
+ emptyResponse: [{ type: Output }],
15186
+ viewAllResponse: [{ type: Output }],
15187
+ telemtryResponse: [{ type: Output }],
15188
+ providerId: [{ type: Input }],
15189
+ emitViewAll: [{ type: Input }],
15190
+ channnelName: [{ type: Input }],
15191
+ id: [{ type: HostBinding, args: ['id',] }]
15192
+ };
15193
+ return ContentStripFacetFilterComponent;
15194
+ }(WidgetBaseComponent));
15195
+ if (false) {
15196
+ /** @type {?} */
15197
+ ContentStripFacetFilterComponent.prototype.widgetData;
15198
+ /** @type {?} */
15199
+ ContentStripFacetFilterComponent.prototype.emptyResponse;
15200
+ /** @type {?} */
15201
+ ContentStripFacetFilterComponent.prototype.viewAllResponse;
15202
+ /** @type {?} */
15203
+ ContentStripFacetFilterComponent.prototype.telemtryResponse;
15204
+ /** @type {?} */
15205
+ ContentStripFacetFilterComponent.prototype.providerId;
15206
+ /** @type {?} */
15207
+ ContentStripFacetFilterComponent.prototype.emitViewAll;
15208
+ /** @type {?} */
15209
+ ContentStripFacetFilterComponent.prototype.channnelName;
15210
+ /** @type {?} */
15211
+ ContentStripFacetFilterComponent.prototype.id;
15212
+ /** @type {?} */
15213
+ ContentStripFacetFilterComponent.prototype.stripsResultDataMap;
15214
+ /** @type {?} */
15215
+ ContentStripFacetFilterComponent.prototype.stripsKeyOrder;
15216
+ /** @type {?} */
15217
+ ContentStripFacetFilterComponent.prototype.showAccordionData;
15218
+ /** @type {?} */
15219
+ ContentStripFacetFilterComponent.prototype.showParentLoader;
15220
+ /** @type {?} */
15221
+ ContentStripFacetFilterComponent.prototype.showParentError;
15222
+ /** @type {?} */
15223
+ ContentStripFacetFilterComponent.prototype.showParentNoData;
15224
+ /** @type {?} */
15225
+ ContentStripFacetFilterComponent.prototype.errorDataCount;
15226
+ /** @type {?} */
15227
+ ContentStripFacetFilterComponent.prototype.noDataCount;
15228
+ /** @type {?} */
15229
+ ContentStripFacetFilterComponent.prototype.successDataCount;
15230
+ /** @type {?} */
15231
+ ContentStripFacetFilterComponent.prototype.contentAvailable;
15232
+ /** @type {?} */
15233
+ ContentStripFacetFilterComponent.prototype.baseUrl;
15234
+ /** @type {?} */
15235
+ ContentStripFacetFilterComponent.prototype.veifiedKarmayogi;
15236
+ /** @type {?} */
15237
+ ContentStripFacetFilterComponent.prototype.environment;
15238
+ /** @type {?} */
15239
+ ContentStripFacetFilterComponent.prototype.changeEventSubscription;
15240
+ /** @type {?} */
15241
+ ContentStripFacetFilterComponent.prototype.defaultMaxWidgets;
15242
+ /** @type {?} */
15243
+ ContentStripFacetFilterComponent.prototype.enrollInterval;
15244
+ /** @type {?} */
15245
+ ContentStripFacetFilterComponent.prototype.todaysEvents;
15246
+ /** @type {?} */
15247
+ ContentStripFacetFilterComponent.prototype.enrollmentMapData;
15248
+ /** @type {?} */
15249
+ ContentStripFacetFilterComponent.prototype.facetForm;
15250
+ /**
15251
+ * @type {?}
15252
+ * @private
15253
+ */
15254
+ ContentStripFacetFilterComponent.prototype.contentSvc;
15255
+ /**
15256
+ * @type {?}
15257
+ * @private
15258
+ */
15259
+ ContentStripFacetFilterComponent.prototype.loggerSvc;
15260
+ /**
15261
+ * @type {?}
15262
+ * @private
15263
+ */
15264
+ ContentStripFacetFilterComponent.prototype.eventSvc;
15265
+ /**
15266
+ * @type {?}
15267
+ * @private
15268
+ */
15269
+ ContentStripFacetFilterComponent.prototype.configSvc;
15270
+ /** @type {?} */
15271
+ ContentStripFacetFilterComponent.prototype.utilitySvc;
15272
+ /** @type {?} */
15273
+ ContentStripFacetFilterComponent.prototype.router;
15274
+ /**
15275
+ * @type {?}
15276
+ * @private
15277
+ */
15278
+ ContentStripFacetFilterComponent.prototype.userSvc;
15279
+ /**
15280
+ * @type {?}
15281
+ * @private
15282
+ */
15283
+ ContentStripFacetFilterComponent.prototype.translate;
15284
+ /**
15285
+ * @type {?}
15286
+ * @private
15287
+ */
15288
+ ContentStripFacetFilterComponent.prototype.langtranslations;
15289
+ /**
15290
+ * @type {?}
15291
+ * @private
15292
+ */
15293
+ ContentStripFacetFilterComponent.prototype._fb;
15294
+ }
15295
+
13633
15296
  /**
13634
15297
  * @fileoverview added by tsickle
13635
15298
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -13637,58 +15300,58 @@ var WIDGET_REGISTRATION_LIB_CONFIG = [
13637
15300
  /**
13638
15301
  * @record
13639
15302
  */
13640
- function IStripUnitContentData$1() { }
15303
+ function IStripUnitContentData$2() { }
13641
15304
  if (false) {
13642
15305
  /** @type {?} */
13643
- IStripUnitContentData$1.prototype.key;
15306
+ IStripUnitContentData$2.prototype.key;
13644
15307
  /** @type {?} */
13645
- IStripUnitContentData$1.prototype.canHideStrip;
15308
+ IStripUnitContentData$2.prototype.canHideStrip;
13646
15309
  /** @type {?|undefined} */
13647
- IStripUnitContentData$1.prototype.mode;
15310
+ IStripUnitContentData$2.prototype.mode;
13648
15311
  /** @type {?} */
13649
- IStripUnitContentData$1.prototype.showStrip;
15312
+ IStripUnitContentData$2.prototype.showStrip;
13650
15313
  /** @type {?} */
13651
- IStripUnitContentData$1.prototype.disableTranslate;
15314
+ IStripUnitContentData$2.prototype.disableTranslate;
13652
15315
  /** @type {?|undefined} */
13653
- IStripUnitContentData$1.prototype.widgets;
15316
+ IStripUnitContentData$2.prototype.widgets;
13654
15317
  /** @type {?} */
13655
- IStripUnitContentData$1.prototype.stripTitle;
15318
+ IStripUnitContentData$2.prototype.stripTitle;
13656
15319
  /** @type {?|undefined} */
13657
- IStripUnitContentData$1.prototype.stripTitleLink;
15320
+ IStripUnitContentData$2.prototype.stripTitleLink;
13658
15321
  /** @type {?|undefined} */
13659
- IStripUnitContentData$1.prototype.sliderConfig;
15322
+ IStripUnitContentData$2.prototype.sliderConfig;
13660
15323
  /** @type {?} */
13661
- IStripUnitContentData$1.prototype.stripConfig;
15324
+ IStripUnitContentData$2.prototype.stripConfig;
13662
15325
  /** @type {?|undefined} */
13663
- IStripUnitContentData$1.prototype.tabs;
15326
+ IStripUnitContentData$2.prototype.tabs;
13664
15327
  /** @type {?|undefined} */
13665
- IStripUnitContentData$1.prototype.stripName;
15328
+ IStripUnitContentData$2.prototype.stripName;
13666
15329
  /** @type {?|undefined} */
13667
- IStripUnitContentData$1.prototype.stripLogo;
15330
+ IStripUnitContentData$2.prototype.stripLogo;
13668
15331
  /** @type {?|undefined} */
13669
- IStripUnitContentData$1.prototype.description;
15332
+ IStripUnitContentData$2.prototype.description;
13670
15333
  /** @type {?|undefined} */
13671
- IStripUnitContentData$1.prototype.stripInfo;
15334
+ IStripUnitContentData$2.prototype.stripInfo;
13672
15335
  /** @type {?|undefined} */
13673
- IStripUnitContentData$1.prototype.noDataWidget;
15336
+ IStripUnitContentData$2.prototype.noDataWidget;
13674
15337
  /** @type {?|undefined} */
13675
- IStripUnitContentData$1.prototype.errorWidget;
15338
+ IStripUnitContentData$2.prototype.errorWidget;
13676
15339
  /** @type {?} */
13677
- IStripUnitContentData$1.prototype.showOnNoData;
15340
+ IStripUnitContentData$2.prototype.showOnNoData;
13678
15341
  /** @type {?} */
13679
- IStripUnitContentData$1.prototype.showOnLoader;
15342
+ IStripUnitContentData$2.prototype.showOnLoader;
13680
15343
  /** @type {?} */
13681
- IStripUnitContentData$1.prototype.showOnError;
15344
+ IStripUnitContentData$2.prototype.showOnError;
13682
15345
  /** @type {?|undefined} */
13683
- IStripUnitContentData$1.prototype.loaderWidgets;
15346
+ IStripUnitContentData$2.prototype.loaderWidgets;
13684
15347
  /** @type {?|undefined} */
13685
- IStripUnitContentData$1.prototype.stripBackground;
15348
+ IStripUnitContentData$2.prototype.stripBackground;
13686
15349
  /** @type {?|undefined} */
13687
- IStripUnitContentData$1.prototype.secondaryHeading;
15350
+ IStripUnitContentData$2.prototype.secondaryHeading;
13688
15351
  /** @type {?} */
13689
- IStripUnitContentData$1.prototype.viewMoreUrl;
15352
+ IStripUnitContentData$2.prototype.viewMoreUrl;
13690
15353
  /** @type {?|undefined} */
13691
- IStripUnitContentData$1.prototype.request;
15354
+ IStripUnitContentData$2.prototype.request;
13692
15355
  }
13693
15356
  var ContentStripWithTabsPillsComponent = /** @class */ (function (_super) {
13694
15357
  __extends(ContentStripWithTabsPillsComponent, _super);
@@ -15568,6 +17231,62 @@ var ContentStripWithTabsPillsModule = /** @class */ (function () {
15568
17231
  return ContentStripWithTabsPillsModule;
15569
17232
  }());
15570
17233
 
17234
+ /**
17235
+ * @fileoverview added by tsickle
17236
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
17237
+ */
17238
+ var ɵ0$6 = HttpLoaderFactory1;
17239
+ var ContentStripFacetFilterModule = /** @class */ (function () {
17240
+ function ContentStripFacetFilterModule() {
17241
+ }
17242
+ ContentStripFacetFilterModule.decorators = [
17243
+ { type: NgModule, args: [{
17244
+ declarations: [ContentStripFacetFilterComponent],
17245
+ imports: [
17246
+ SbUiResolverModule,
17247
+ CommonModule,
17248
+ RouterModule,
17249
+ HorizontalScrollerV2Module,
17250
+ MatProgressSpinnerModule,
17251
+ MatToolbarModule,
17252
+ MatIconModule,
17253
+ MatButtonModule,
17254
+ MatTooltipModule,
17255
+ MatListModule,
17256
+ MatSidenavModule,
17257
+ MatCardModule,
17258
+ MatExpansionModule,
17259
+ MatRadioModule,
17260
+ MatChipsModule,
17261
+ MatInputModule,
17262
+ MatFormFieldModule,
17263
+ MatDialogModule,
17264
+ MatSnackBarModule,
17265
+ MatSelectModule,
17266
+ MatDatepickerModule,
17267
+ MatNativeDateModule,
17268
+ MatTableModule,
17269
+ MatCheckboxModule,
17270
+ MatProgressSpinnerModule,
17271
+ MatButtonToggleModule,
17272
+ MatTabsModule,
17273
+ ReactiveFormsModule,
17274
+ MatAutocompleteModule,
17275
+ TranslateModule.forRoot({
17276
+ loader: {
17277
+ provide: TranslateLoader,
17278
+ useFactory: ɵ0$6,
17279
+ deps: [HttpClient],
17280
+ },
17281
+ }),
17282
+ ],
17283
+ entryComponents: [ContentStripFacetFilterComponent],
17284
+ exports: [ContentStripFacetFilterComponent],
17285
+ },] }
17286
+ ];
17287
+ return ContentStripFacetFilterModule;
17288
+ }());
17289
+
15571
17290
  /**
15572
17291
  * @fileoverview added by tsickle
15573
17292
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -16918,7 +18637,7 @@ var CompetencyPassbookMdoModule = /** @class */ (function () {
16918
18637
  */
16919
18638
  /** @type {?} */
16920
18639
  var PROXY_SLAG_V8 = '/apis/proxies/v8';
16921
- var ɵ0$6 = /**
18640
+ var ɵ0$7 = /**
16922
18641
  * @param {?} contentId
16923
18642
  * @param {?} contentType
16924
18643
  * @param {?} userId
@@ -16943,7 +18662,7 @@ function (contentId, userID) {
16943
18662
  };
16944
18663
  /** @type {?} */
16945
18664
  var API_END_POINTS$3 = {
16946
- GET_RATING: (ɵ0$6),
18665
+ GET_RATING: (ɵ0$7),
16947
18666
  ADD_OR_UPDATE: PROXY_SLAG_V8 + "/ratings/v1/upsert",
16948
18667
  GET_RATING_SUMMARY: (ɵ1$3),
16949
18668
  GET_RATING_LOOKUP: PROXY_SLAG_V8 + "/ratings/v1/ratingLookUp",
@@ -17687,7 +19406,7 @@ if (false) {
17687
19406
  * @fileoverview added by tsickle
17688
19407
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
17689
19408
  */
17690
- var ɵ0$7 = HttpLoaderFactory;
19409
+ var ɵ0$8 = HttpLoaderFactory;
17691
19410
  var MDOChannelModule = /** @class */ (function () {
17692
19411
  function MDOChannelModule() {
17693
19412
  }
@@ -17713,7 +19432,7 @@ var MDOChannelModule = /** @class */ (function () {
17713
19432
  TranslateModule.forRoot({
17714
19433
  loader: {
17715
19434
  provide: TranslateLoader,
17716
- useFactory: ɵ0$7,
19435
+ useFactory: ɵ0$8,
17717
19436
  deps: [HttpClient],
17718
19437
  },
17719
19438
  }),
@@ -18037,7 +19756,7 @@ if (false) {
18037
19756
  * @fileoverview added by tsickle
18038
19757
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
18039
19758
  */
18040
- var ɵ0$8 = HttpLoaderFactory;
19759
+ var ɵ0$9 = HttpLoaderFactory;
18041
19760
  var ProvidersModule = /** @class */ (function () {
18042
19761
  function ProvidersModule() {
18043
19762
  }
@@ -18062,7 +19781,7 @@ var ProvidersModule = /** @class */ (function () {
18062
19781
  TranslateModule.forRoot({
18063
19782
  loader: {
18064
19783
  provide: TranslateLoader,
18065
- useFactory: ɵ0$8,
19784
+ useFactory: ɵ0$9,
18066
19785
  deps: [HttpClient],
18067
19786
  },
18068
19787
  }),
@@ -18190,7 +19909,7 @@ var NationalLearningComponent = /** @class */ (function () {
18190
19909
  NationalLearningComponent.decorators = [
18191
19910
  { type: Component, args: [{
18192
19911
  selector: 'sb-uic-national-learning',
18193
- 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",
19912
+ 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",
18194
19913
  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}}"]
18195
19914
  }] }
18196
19915
  ];
@@ -18471,7 +20190,7 @@ var EventsComponent = /** @class */ (function () {
18471
20190
  EventsComponent.decorators = [
18472
20191
  { type: Component, args: [{
18473
20192
  selector: 'sb-uic-events',
18474
- 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>",
20193
+ 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>",
18475
20194
  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}"]
18476
20195
  }] }
18477
20196
  ];
@@ -18606,6 +20325,7 @@ var EventsModule = /** @class */ (function () {
18606
20325
  CommonModule,
18607
20326
  RouterModule,
18608
20327
  SkeletonLoaderLibModule,
20328
+ MatIconModule
18609
20329
  ],
18610
20330
  exports: [EventsComponent, EventCardComponent]
18611
20331
  },] }
@@ -19144,17 +20864,18 @@ var UserProgressComponent = /** @class */ (function () {
19144
20864
  */
19145
20865
  function () {
19146
20866
  var _this = this;
20867
+ debugger;
19147
20868
  this.insightSvc.fetchUserProgress().subscribe((/**
19148
20869
  * @param {?} res
19149
20870
  * @return {?}
19150
20871
  */
19151
20872
  function (res) {
19152
20873
  if (res && res.result && res.result.userLeaderBoard) {
19153
- _this.userProgress = res.result.userLeaderBoard[0];
19154
- }
19155
- if (!_this.userProgress.fullname && _this.configSvc && _this.configSvc.userProfile && _this.configSvc.userProfile.firstName) {
19156
- _this.userProgress['fullname'] = _this.configSvc.userProfile.firstName;
19157
- _this.userProgress['profile_image'] = _this.configSvc.userProfile.profileImageUrl;
20874
+ _this.userProgress = res.result.userLeaderBoard;
20875
+ if (!_this.userProgress.fullname && _this.configSvc && _this.configSvc.userProfile && _this.configSvc.userProfile.firstName) {
20876
+ _this.userProgress['fullname'] = _this.configSvc.userProfile.firstName;
20877
+ _this.userProgress['profile_image'] = _this.configSvc.userProfile.profileImageUrl;
20878
+ }
19158
20879
  }
19159
20880
  }), (/**
19160
20881
  * @param {?} error
@@ -19359,7 +21080,8 @@ var NationalLearningModule = /** @class */ (function () {
19359
21080
  MdoLeaderboardModule,
19360
21081
  HighlightsOfWeekModule,
19361
21082
  SpeakersModule,
19362
- UserProgressModule
21083
+ UserProgressModule,
21084
+ ContentStripFacetFilterModule
19363
21085
  ],
19364
21086
  exports: [
19365
21087
  NationalLearningComponent,
@@ -19383,5 +21105,5 @@ var NationalLearningModule = /** @class */ (function () {
19383
21105
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
19384
21106
  */
19385
21107
 
19386
- export { AnnouncementsModule, CalenderModule, CardsModule, CbpPlanModule, CommonMethodsService, CommonStripModule, CompetencyPassbookMdoModule, CompetencyPassbookModule, ConsumptionComponent, ConsumptionModule, ConsumptionService, ContentProgressModule, ContentStripWithTabsLibModule, ContentStripWithTabsPillsModule, DataPointsModule, DialogComponentsModule, EventsModule, HighlightsOfWeekModule, HttpLoaderFactory, HttpLoaderFactory1, KeyHighlightsModule, MDOChannelModule, MdoLeaderboardModule, MyHammerConfig, NationalLearningModule, ProvidersModule, ROOT_WIDGET_CONFIG, SlidersLibModule, SpeakersModule, TopLearnersModule, UserContentRatingLibModule, UserProgressModule, WIDGET_REGISTERED_LIB_MODULES, WIDGET_REGISTRATION_LIB_CONFIG, WidgetContentService, ContentStripWithTabsLibComponent as ɵa, WidgetUserService as ɵb, CardResourceComponent as ɵba, CardsComponent as ɵbb, CardPortraitComponent as ɵbc, CardUserComponent as ɵbd, CardLandscapeComponent as ɵbe, CardWideComponent as ɵbf, CardMDOChannelComponent as ɵbg, CardWideV2Component as ɵbh, CardKarmaProgramsComponent as ɵbi, CardKarmaProgramsV2Component as ɵbj, ProviderCardComponent as ɵbk, CardPortraitExtComponent as ɵbl, CardAssessmentComponent as ɵbm, CardProgressPortraitLibComponent as ɵbn, CertificateService as ɵbo, CardMdoChannelV1Component as ɵbp, PipePublicURLModule as ɵbq, PipePublicURL as ɵbr, ObjectToArrayPipeModule as ɵbs, ObjectToArrayPipe as ɵbt, DisplayContentTypeLibModule as ɵbu, DisplayContentTypeLibComponent as ɵbv, DefaultThumbnailModule as ɵbw, DefaultThumbnailDirective as ɵbx, PipeDurationTransformModule as ɵby, PipeDurationTransformPipe as ɵbz, MultilingualTranslationsService as ɵc, ContentProgressComponent as ɵca, CertificateDialogComponent as ɵcb, AvatarPhotoLibModule as ɵcc, AvatarPhotoLibComponent as ɵcd, ContentStripWithTabsPillsComponent as ɵce, CompetencyPassbookComponent as ɵcf, CompetencyPassbookService as ɵcg, PillsModule as ɵch, PillsComponent as ɵci, CompetencyPassbookMdoComponent as ɵcj, CompetencyPassbookMdoService as ɵck, UserContentRatingLibComponent as ɵcl, RatingService as ɵcm, UserContentRatingLibService as ɵcn, MdoChannelV1Component as ɵco, MdoChannelV2Component as ɵcp, ProvidersV2Component as ɵcq, NationalLearningComponent as ɵcr, KeyHighlightsComponent as ɵcs, EventsComponent as ɵct, EventCardComponent as ɵcu, MdoLeaderboardComponent as ɵcv, HighlightsOfWeekComponent as ɵcw, SpeakersComponent as ɵcx, UserProgressComponent as ɵcy, ConfigurationsService as ɵd, HorizontalScrollerV2Module as ɵe, HorizontalScrollerV2Component as ɵf, SlidersLibComponent as ɵg, NavigationModule as ɵh, NavigationDirective as ɵi, ImageResponsiveModule as ɵj, ImageResponsiveDirective as ɵk, DataPointsComponent as ɵl, InsiteDataService as ɵm, SkeletonLoaderLibModule as ɵn, SkeletonLoaderLibComponent as ɵo, CalenderComponent as ɵp, CalenderDayComponent as ɵq, CommonStripComponent as ɵr, AnnouncementsComponent as ɵs, TopLearnersComponent as ɵt, CbpPlanComponent as ɵu, ScrollableItemDirective as ɵv, ScrollableItemModule as ɵw, MyHammerConfig$1 as ɵx, SlidersNgContentLibModule as ɵy, SlidersNgContentLibComponent as ɵz };
21108
+ export { AnnouncementsModule, CalenderModule, CardsModule, CbpPlanModule, CommonMethodsService, CommonStripModule, CompetencyPassbookMdoModule, CompetencyPassbookModule, ConsumptionComponent, ConsumptionModule, ConsumptionService, ContentProgressModule, ContentStripFacetFilterModule, ContentStripWithTabsLibModule, ContentStripWithTabsPillsModule, DataPointsModule, DialogComponentsModule, EventsModule, HighlightsOfWeekModule, HttpLoaderFactory, HttpLoaderFactory1, KeyHighlightsModule, MDOChannelModule, MdoLeaderboardModule, MyHammerConfig, NationalLearningModule, ProvidersModule, ROOT_WIDGET_CONFIG, SlidersLibModule, SpeakersModule, TopLearnersModule, UserContentRatingLibModule, UserProgressModule, WIDGET_REGISTERED_LIB_MODULES, WIDGET_REGISTRATION_LIB_CONFIG, WidgetContentService, ContentStripWithTabsLibComponent as ɵa, WidgetUserService as ɵb, CardResourceComponent as ɵba, CardsComponent as ɵbb, CardPortraitComponent as ɵbc, CardUserComponent as ɵbd, CardLandscapeComponent as ɵbe, CardWideComponent as ɵbf, CardMDOChannelComponent as ɵbg, CardWideV2Component as ɵbh, CardKarmaProgramsComponent as ɵbi, CardKarmaProgramsV2Component as ɵbj, ProviderCardComponent as ɵbk, CardPortraitExtComponent as ɵbl, CardAssessmentComponent as ɵbm, CardProgressPortraitLibComponent as ɵbn, CertificateService as ɵbo, CardMdoChannelV1Component as ɵbp, PipePublicURLModule as ɵbq, PipePublicURL as ɵbr, ObjectToArrayPipeModule as ɵbs, ObjectToArrayPipe as ɵbt, DisplayContentTypeLibModule as ɵbu, DisplayContentTypeLibComponent as ɵbv, DefaultThumbnailModule as ɵbw, DefaultThumbnailDirective as ɵbx, PipeDurationTransformModule as ɵby, PipeDurationTransformPipe as ɵbz, MultilingualTranslationsService as ɵc, ContentProgressComponent as ɵca, CertificateDialogComponent as ɵcb, AvatarPhotoLibModule as ɵcc, AvatarPhotoLibComponent as ɵcd, ContentStripFacetFilterComponent as ɵce, ContentStripWithTabsPillsComponent as ɵcf, CompetencyPassbookComponent as ɵcg, CompetencyPassbookService as ɵch, PillsModule as ɵci, PillsComponent as ɵcj, CompetencyPassbookMdoComponent as ɵck, CompetencyPassbookMdoService as ɵcl, UserContentRatingLibComponent as ɵcm, RatingService as ɵcn, UserContentRatingLibService as ɵco, MdoChannelV1Component as ɵcp, MdoChannelV2Component as ɵcq, ProvidersV2Component as ɵcr, NationalLearningComponent as ɵcs, KeyHighlightsComponent as ɵct, EventsComponent as ɵcu, EventCardComponent as ɵcv, MdoLeaderboardComponent as ɵcw, HighlightsOfWeekComponent as ɵcx, SpeakersComponent as ɵcy, UserProgressComponent as ɵcz, ConfigurationsService as ɵd, HorizontalScrollerV2Module as ɵe, HorizontalScrollerV2Component as ɵf, SlidersLibComponent as ɵg, NavigationModule as ɵh, NavigationDirective as ɵi, ImageResponsiveModule as ɵj, ImageResponsiveDirective as ɵk, DataPointsComponent as ɵl, InsiteDataService as ɵm, SkeletonLoaderLibModule as ɵn, SkeletonLoaderLibComponent as ɵo, CalenderComponent as ɵp, CalenderDayComponent as ɵq, CommonStripComponent as ɵr, AnnouncementsComponent as ɵs, TopLearnersComponent as ɵt, CbpPlanComponent as ɵu, ScrollableItemDirective as ɵv, ScrollableItemModule as ɵw, MyHammerConfig$1 as ɵx, SlidersNgContentLibModule as ɵy, SlidersNgContentLibComponent as ɵz };
19387
21109
  //# sourceMappingURL=sunbird-cb-consumption.js.map