@sunbird-cb/consumption 0.0.85 → 0.0.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/sunbird-cb-consumption.umd.js +1720 -57
- package/bundles/sunbird-cb-consumption.umd.js.map +1 -1
- package/bundles/sunbird-cb-consumption.umd.min.js +1 -1
- package/bundles/sunbird-cb-consumption.umd.min.js.map +1 -1
- package/esm2015/lib/_common/events/events.component.js +2 -2
- package/esm2015/lib/_common/events/events.module.js +3 -1
- package/esm2015/lib/_common/microsites/national-learning-week/national-learning/national-learning.component.js +2 -2
- package/esm2015/lib/_common/microsites/national-learning-week/national-learning.module.js +4 -2
- package/esm2015/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.component.js +1170 -0
- package/esm2015/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.model.js +231 -0
- package/esm2015/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.module.js +63 -0
- package/esm2015/lib/consumption.module.js +2 -2
- package/esm2015/public-api.js +2 -1
- package/esm2015/sunbird-cb-consumption.js +24 -23
- package/esm5/lib/_common/events/events.component.js +2 -2
- package/esm5/lib/_common/events/events.module.js +3 -1
- package/esm5/lib/_common/microsites/national-learning-week/national-learning/national-learning.component.js +2 -2
- package/esm5/lib/_common/microsites/national-learning-week/national-learning.module.js +4 -2
- package/esm5/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.component.js +1390 -0
- package/esm5/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.model.js +231 -0
- package/esm5/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.module.js +67 -0
- package/esm5/lib/consumption.module.js +2 -2
- package/esm5/public-api.js +2 -1
- package/esm5/sunbird-cb-consumption.js +24 -23
- package/fesm2015/sunbird-cb-consumption.js +1476 -37
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +1698 -37
- package/fesm5/sunbird-cb-consumption.js.map +1 -1
- package/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.component.d.ts +127 -0
- package/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.model.d.ts +157 -0
- package/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.module.d.ts +2 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/sunbird-cb-consumption.d.ts +22 -21
- package/sunbird-cb-consumption.metadata.json +1 -1
|
@@ -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,1610 @@ 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) {
|
|
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.emptyResponse = new EventEmitter();
|
|
13939
|
+
_this.viewAllResponse = new EventEmitter();
|
|
13940
|
+
_this.telemtryResponse = new EventEmitter();
|
|
13941
|
+
_this.providerId = '';
|
|
13942
|
+
_this.emitViewAll = false;
|
|
13943
|
+
_this.channnelName = '';
|
|
13944
|
+
_this.id = "ws-strip-miltiple_" + Math.random();
|
|
13945
|
+
_this.stripsResultDataMap = {};
|
|
13946
|
+
_this.stripsKeyOrder = [];
|
|
13947
|
+
_this.showAccordionData = true;
|
|
13948
|
+
_this.showParentLoader = false;
|
|
13949
|
+
_this.showParentError = false;
|
|
13950
|
+
_this.showParentNoData = false;
|
|
13951
|
+
_this.errorDataCount = 0;
|
|
13952
|
+
_this.noDataCount = 0;
|
|
13953
|
+
_this.successDataCount = 0;
|
|
13954
|
+
_this.contentAvailable = true;
|
|
13955
|
+
_this.baseUrl = _this.configSvc.sitePath || '';
|
|
13956
|
+
_this.veifiedKarmayogi = false;
|
|
13957
|
+
_this.changeEventSubscription = null;
|
|
13958
|
+
_this.defaultMaxWidgets = 12;
|
|
13959
|
+
_this.todaysEvents = [];
|
|
13960
|
+
if (localStorage.getItem('websiteLanguage')) {
|
|
13961
|
+
_this.translate.setDefaultLang('en');
|
|
13962
|
+
/** @type {?} */
|
|
13963
|
+
var lang = JSON.stringify(localStorage.getItem('websiteLanguage'));
|
|
13964
|
+
lang = lang.replace(/\"/g, '');
|
|
13965
|
+
_this.translate.use(lang);
|
|
13966
|
+
}
|
|
13967
|
+
_this.environment = environment;
|
|
13968
|
+
return _this;
|
|
13969
|
+
}
|
|
13970
|
+
/**
|
|
13971
|
+
* @return {?}
|
|
13972
|
+
*/
|
|
13973
|
+
ContentStripFacetFilterComponent.prototype.ngOnDestroy = /**
|
|
13974
|
+
* @return {?}
|
|
13975
|
+
*/
|
|
13976
|
+
function () {
|
|
13977
|
+
throw new Error('Method not implemented.');
|
|
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
|
+
};
|
|
13996
|
+
/**
|
|
13997
|
+
* @private
|
|
13998
|
+
* @return {?}
|
|
13999
|
+
*/
|
|
14000
|
+
ContentStripFacetFilterComponent.prototype.initData = /**
|
|
14001
|
+
* @private
|
|
14002
|
+
* @return {?}
|
|
14003
|
+
*/
|
|
14004
|
+
function () {
|
|
14005
|
+
var e_1, _a;
|
|
14006
|
+
var _this = this;
|
|
14007
|
+
this.stripsKeyOrder = this.widgetData && this.widgetData.strips && this.widgetData.strips.map((/**
|
|
14008
|
+
* @param {?} strip
|
|
14009
|
+
* @return {?}
|
|
14010
|
+
*/
|
|
14011
|
+
function (strip) { return strip.key; })) || [];
|
|
14012
|
+
if (this.widgetData.loader && this.widgetData.strips.length) {
|
|
14013
|
+
this.showParentLoader = true;
|
|
14014
|
+
}
|
|
14015
|
+
try {
|
|
14016
|
+
// Fetch the data
|
|
14017
|
+
for (var _b = __values(this.widgetData.strips), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
14018
|
+
var strip = _c.value;
|
|
14019
|
+
if (this.checkForEmptyWidget(strip)) {
|
|
14020
|
+
this.fetchStripFromRequestData(strip, false);
|
|
14021
|
+
}
|
|
14022
|
+
else {
|
|
14023
|
+
this.processStrip(strip, [], 'done', true, null);
|
|
14024
|
+
}
|
|
14025
|
+
}
|
|
14026
|
+
}
|
|
14027
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
14028
|
+
finally {
|
|
14029
|
+
try {
|
|
14030
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
14031
|
+
}
|
|
14032
|
+
finally { if (e_1) throw e_1.error; }
|
|
14033
|
+
}
|
|
14034
|
+
// Subscription for changes
|
|
14035
|
+
/** @type {?} */
|
|
14036
|
+
var keyAndEvent = this.widgetData.strips
|
|
14037
|
+
.map((/**
|
|
14038
|
+
* @param {?} strip
|
|
14039
|
+
* @return {?}
|
|
14040
|
+
*/
|
|
14041
|
+
function (strip) { return ({
|
|
14042
|
+
key: strip.key,
|
|
14043
|
+
type: (strip.refreshEvent && strip.refreshEvent.eventType) || '',
|
|
14044
|
+
from: (strip.refreshEvent && strip.refreshEvent.from.toString()) || '',
|
|
14045
|
+
}); }))
|
|
14046
|
+
.filter((/**
|
|
14047
|
+
* @param {?} __0
|
|
14048
|
+
* @return {?}
|
|
14049
|
+
*/
|
|
14050
|
+
function (_a) {
|
|
14051
|
+
var key = _a.key, type = _a.type, from = _a.from;
|
|
14052
|
+
return key && type && from;
|
|
14053
|
+
}));
|
|
14054
|
+
/** @type {?} */
|
|
14055
|
+
var eventTypeSet = new Set(keyAndEvent.map((/**
|
|
14056
|
+
* @param {?} e
|
|
14057
|
+
* @return {?}
|
|
14058
|
+
*/
|
|
14059
|
+
function (e) { return e.type; })));
|
|
14060
|
+
this.changeEventSubscription = this.eventSvc.events$
|
|
14061
|
+
.pipe(filter((/**
|
|
14062
|
+
* @param {?} event
|
|
14063
|
+
* @return {?}
|
|
14064
|
+
*/
|
|
14065
|
+
function (event) { return eventTypeSet.has(event.eventType); })))
|
|
14066
|
+
.subscribe((/**
|
|
14067
|
+
* @param {?} event
|
|
14068
|
+
* @return {?}
|
|
14069
|
+
*/
|
|
14070
|
+
function (event) {
|
|
14071
|
+
keyAndEvent
|
|
14072
|
+
.filter((/**
|
|
14073
|
+
* @param {?} e
|
|
14074
|
+
* @return {?}
|
|
14075
|
+
*/
|
|
14076
|
+
function (e) { return e.type === event.eventType && e.from === event.from; }))
|
|
14077
|
+
.map((/**
|
|
14078
|
+
* @param {?} e
|
|
14079
|
+
* @return {?}
|
|
14080
|
+
*/
|
|
14081
|
+
function (e) { return e.key; }))
|
|
14082
|
+
.forEach((/**
|
|
14083
|
+
* @param {?} k
|
|
14084
|
+
* @return {?}
|
|
14085
|
+
*/
|
|
14086
|
+
function (k) { return _this.fetchStripFromKey(k, false); }));
|
|
14087
|
+
}));
|
|
14088
|
+
};
|
|
14089
|
+
/**
|
|
14090
|
+
* @private
|
|
14091
|
+
* @param {?} key
|
|
14092
|
+
* @param {?=} calculateParentStatus
|
|
14093
|
+
* @return {?}
|
|
14094
|
+
*/
|
|
14095
|
+
ContentStripFacetFilterComponent.prototype.fetchStripFromKey = /**
|
|
14096
|
+
* @private
|
|
14097
|
+
* @param {?} key
|
|
14098
|
+
* @param {?=} calculateParentStatus
|
|
14099
|
+
* @return {?}
|
|
14100
|
+
*/
|
|
14101
|
+
function (key, calculateParentStatus) {
|
|
14102
|
+
if (calculateParentStatus === void 0) { calculateParentStatus = true; }
|
|
14103
|
+
/** @type {?} */
|
|
14104
|
+
var stripData = this.widgetData.strips.find((/**
|
|
14105
|
+
* @param {?} strip
|
|
14106
|
+
* @return {?}
|
|
14107
|
+
*/
|
|
14108
|
+
function (strip) { return strip.key === key; }));
|
|
14109
|
+
if (stripData) {
|
|
14110
|
+
this.fetchStripFromRequestData(stripData, calculateParentStatus);
|
|
14111
|
+
}
|
|
14112
|
+
};
|
|
14113
|
+
/**
|
|
14114
|
+
* @private
|
|
14115
|
+
* @param {?} strip
|
|
14116
|
+
* @param {?=} calculateParentStatus
|
|
14117
|
+
* @return {?}
|
|
14118
|
+
*/
|
|
14119
|
+
ContentStripFacetFilterComponent.prototype.fetchStripFromRequestData = /**
|
|
14120
|
+
* @private
|
|
14121
|
+
* @param {?} strip
|
|
14122
|
+
* @param {?=} calculateParentStatus
|
|
14123
|
+
* @return {?}
|
|
14124
|
+
*/
|
|
14125
|
+
function (strip, calculateParentStatus) {
|
|
14126
|
+
if (calculateParentStatus === void 0) { calculateParentStatus = true; }
|
|
14127
|
+
// setting initial values
|
|
14128
|
+
strip.loaderWidgets = this.transformSkeletonToWidgets(strip);
|
|
14129
|
+
this.processStrip(strip, [], 'fetching', false, null);
|
|
14130
|
+
if (strip && strip.stripRequestFor === ApiRequestFor.SEARCH && !strip.onTabClickRequest) {
|
|
14131
|
+
this.fetchFromSearch(strip, calculateParentStatus);
|
|
14132
|
+
}
|
|
14133
|
+
};
|
|
14134
|
+
/**
|
|
14135
|
+
* @private
|
|
14136
|
+
* @param {?} strip
|
|
14137
|
+
* @return {?}
|
|
14138
|
+
*/
|
|
14139
|
+
ContentStripFacetFilterComponent.prototype.transformSkeletonToWidgets = /**
|
|
14140
|
+
* @private
|
|
14141
|
+
* @param {?} strip
|
|
14142
|
+
* @return {?}
|
|
14143
|
+
*/
|
|
14144
|
+
function (strip) {
|
|
14145
|
+
return [1, 2, 3, 4, 5, 6, 7, 7, 8, 9, 10].map((/**
|
|
14146
|
+
* @param {?} _content
|
|
14147
|
+
* @return {?}
|
|
14148
|
+
*/
|
|
14149
|
+
function (_content) { return ({
|
|
14150
|
+
widgetType: 'cardLib',
|
|
14151
|
+
widgetSubType: 'cardContentLib',
|
|
14152
|
+
widgetHostClass: 'mb-2',
|
|
14153
|
+
widgetData: {
|
|
14154
|
+
cardSubType: strip.loaderConfig && strip.loaderConfig.cardSubType || 'card-standard-skeleton',
|
|
14155
|
+
cardCustomeClass: strip.customeClass ? strip.customeClass : '',
|
|
14156
|
+
},
|
|
14157
|
+
}); }));
|
|
14158
|
+
};
|
|
14159
|
+
/**
|
|
14160
|
+
* @private
|
|
14161
|
+
* @param {?} strip
|
|
14162
|
+
* @param {?=} results
|
|
14163
|
+
* @param {?=} fetchStatus
|
|
14164
|
+
* @param {?=} calculateParentStatus
|
|
14165
|
+
* @param {?=} _viewMoreUrl
|
|
14166
|
+
* @param {?=} tabsResults
|
|
14167
|
+
* @return {?}
|
|
14168
|
+
*/
|
|
14169
|
+
ContentStripFacetFilterComponent.prototype.processStrip = /**
|
|
14170
|
+
* @private
|
|
14171
|
+
* @param {?} strip
|
|
14172
|
+
* @param {?=} results
|
|
14173
|
+
* @param {?=} fetchStatus
|
|
14174
|
+
* @param {?=} calculateParentStatus
|
|
14175
|
+
* @param {?=} _viewMoreUrl
|
|
14176
|
+
* @param {?=} tabsResults
|
|
14177
|
+
* @return {?}
|
|
14178
|
+
*/
|
|
14179
|
+
function (strip, results, fetchStatus, calculateParentStatus, _viewMoreUrl, tabsResults) {
|
|
14180
|
+
if (results === void 0) { results = []; }
|
|
14181
|
+
if (calculateParentStatus === void 0) { calculateParentStatus = true; }
|
|
14182
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14183
|
+
var stripData;
|
|
14184
|
+
var _a;
|
|
14185
|
+
return __generator(this, function (_b) {
|
|
14186
|
+
stripData = {
|
|
14187
|
+
viewMoreUrl: strip.viewMoreUrl,
|
|
14188
|
+
key: strip.key,
|
|
14189
|
+
canHideStrip: Boolean(strip.canHideStrip),
|
|
14190
|
+
showStrip: this.getIfStripHidden(strip.key),
|
|
14191
|
+
noDataWidget: strip.noDataWidget,
|
|
14192
|
+
errorWidget: strip.errorWidget,
|
|
14193
|
+
stripInfo: strip.info,
|
|
14194
|
+
stripTitle: strip.title,
|
|
14195
|
+
stripTitleLink: strip.stripTitleLink,
|
|
14196
|
+
disableTranslate: strip.disableTranslate,
|
|
14197
|
+
sliderConfig: strip.sliderConfig,
|
|
14198
|
+
tabs: tabsResults ? tabsResults : strip.tabs,
|
|
14199
|
+
stripName: strip.name,
|
|
14200
|
+
mode: strip.mode,
|
|
14201
|
+
stripConfig: strip.stripConfig,
|
|
14202
|
+
stripBackground: strip.stripBackground,
|
|
14203
|
+
secondaryHeading: strip.secondaryHeading,
|
|
14204
|
+
loaderWidgets: strip.loaderWidgets || [],
|
|
14205
|
+
hideViewMoreUrl: strip.hideViewMoreUrl || false,
|
|
14206
|
+
widgets: fetchStatus === 'done'
|
|
14207
|
+
? __spread((strip.preWidgets || []).map((/**
|
|
14208
|
+
* @param {?} w
|
|
14209
|
+
* @return {?}
|
|
14210
|
+
*/
|
|
14211
|
+
function (w) { return (__assign({}, w, { widgetHostClass: "mb-2 " + w.widgetHostClass })); })), results, (strip.postWidgets || []).map((/**
|
|
14212
|
+
* @param {?} w
|
|
14213
|
+
* @return {?}
|
|
14214
|
+
*/
|
|
14215
|
+
function (w) { return (__assign({}, w, { widgetHostClass: "mb-2 " + w.widgetHostClass })); }))) : [],
|
|
14216
|
+
showOnNoData: Boolean(strip.noDataWidget &&
|
|
14217
|
+
!((strip.preWidgets || []).length + results.length + (strip.postWidgets || []).length) &&
|
|
14218
|
+
fetchStatus === 'done'),
|
|
14219
|
+
showOnLoader: Boolean(strip.loader && fetchStatus === 'fetching'),
|
|
14220
|
+
showOnError: Boolean(strip.errorWidget && fetchStatus === 'error'),
|
|
14221
|
+
};
|
|
14222
|
+
// const stripData = this.stripsResultDataMap[strip.key]
|
|
14223
|
+
this.stripsResultDataMap = __assign({}, this.stripsResultDataMap, (_a = {}, _a[strip.key] = stripData, _a));
|
|
14224
|
+
if (!tabsResults) {
|
|
14225
|
+
if (calculateParentStatus &&
|
|
14226
|
+
(fetchStatus === 'done' || fetchStatus === 'error') &&
|
|
14227
|
+
stripData.widgets) {
|
|
14228
|
+
this.checkParentStatus(fetchStatus, stripData.widgets.length);
|
|
14229
|
+
}
|
|
14230
|
+
if (calculateParentStatus && !(results && results.length > 0)) {
|
|
14231
|
+
this.contentAvailable = false;
|
|
14232
|
+
}
|
|
14233
|
+
else if (results && results.length > 0) {
|
|
14234
|
+
this.contentAvailable = true;
|
|
14235
|
+
}
|
|
14236
|
+
}
|
|
14237
|
+
else {
|
|
14238
|
+
this.contentAvailable = true;
|
|
14239
|
+
}
|
|
14240
|
+
return [2 /*return*/];
|
|
14241
|
+
});
|
|
14242
|
+
});
|
|
14243
|
+
};
|
|
14244
|
+
/**
|
|
14245
|
+
* @private
|
|
14246
|
+
* @param {?} fetchStatus
|
|
14247
|
+
* @param {?} stripWidgetsCount
|
|
14248
|
+
* @return {?}
|
|
14249
|
+
*/
|
|
14250
|
+
ContentStripFacetFilterComponent.prototype.checkParentStatus = /**
|
|
14251
|
+
* @private
|
|
14252
|
+
* @param {?} fetchStatus
|
|
14253
|
+
* @param {?} stripWidgetsCount
|
|
14254
|
+
* @return {?}
|
|
14255
|
+
*/
|
|
14256
|
+
function (fetchStatus, stripWidgetsCount) {
|
|
14257
|
+
if (fetchStatus === 'done' && !stripWidgetsCount) {
|
|
14258
|
+
this.noDataCount += 1;
|
|
14259
|
+
}
|
|
14260
|
+
else if (fetchStatus === 'done' && stripWidgetsCount) {
|
|
14261
|
+
this.successDataCount += 1;
|
|
14262
|
+
}
|
|
14263
|
+
else if (fetchStatus === 'error') {
|
|
14264
|
+
this.errorDataCount += 1;
|
|
14265
|
+
}
|
|
14266
|
+
/** @type {?} */
|
|
14267
|
+
var settledCount = this.noDataCount + this.successDataCount + this.errorDataCount;
|
|
14268
|
+
/** @type {?} */
|
|
14269
|
+
var totalCount = this.widgetData.strips.length;
|
|
14270
|
+
if (this.successDataCount > 0 && settledCount < totalCount) {
|
|
14271
|
+
return;
|
|
14272
|
+
}
|
|
14273
|
+
this.showParentLoader = settledCount !== totalCount;
|
|
14274
|
+
this.showParentNoData =
|
|
14275
|
+
this.noDataCount > 0 && this.noDataCount + this.errorDataCount === totalCount;
|
|
14276
|
+
this.showParentError = this.errorDataCount === totalCount;
|
|
14277
|
+
};
|
|
14278
|
+
/**
|
|
14279
|
+
* @param {?} strip
|
|
14280
|
+
* @return {?}
|
|
14281
|
+
*/
|
|
14282
|
+
ContentStripFacetFilterComponent.prototype.checkForEmptyWidget = /**
|
|
14283
|
+
* @param {?} strip
|
|
14284
|
+
* @return {?}
|
|
14285
|
+
*/
|
|
14286
|
+
function (strip) {
|
|
14287
|
+
if (strip.request &&
|
|
14288
|
+
((strip.request.requestBody && Object.keys(strip.request.requestBody).length))) {
|
|
14289
|
+
return true;
|
|
14290
|
+
}
|
|
14291
|
+
return false;
|
|
14292
|
+
};
|
|
14293
|
+
// strip settings
|
|
14294
|
+
// strip settings
|
|
14295
|
+
/**
|
|
14296
|
+
* @param {?} data
|
|
14297
|
+
* @return {?}
|
|
14298
|
+
*/
|
|
14299
|
+
ContentStripFacetFilterComponent.prototype.toggleInfo =
|
|
14300
|
+
// strip settings
|
|
14301
|
+
/**
|
|
14302
|
+
* @param {?} data
|
|
14303
|
+
* @return {?}
|
|
14304
|
+
*/
|
|
14305
|
+
function (data) {
|
|
14306
|
+
/** @type {?} */
|
|
14307
|
+
var stripInfo = this.stripsResultDataMap[data.key].stripInfo;
|
|
14308
|
+
if (stripInfo) {
|
|
14309
|
+
if (stripInfo.mode !== 'below') {
|
|
14310
|
+
this.loggerSvc.warn("strip info mode: " + stripInfo.mode + " not implemented yet");
|
|
14311
|
+
stripInfo.mode = 'below';
|
|
14312
|
+
}
|
|
14313
|
+
if (stripInfo.mode === 'below') {
|
|
14314
|
+
this.stripsResultDataMap[data.key].stripInfo = __assign({}, stripInfo, { visibilityMode: stripInfo.visibilityMode === 'hidden' ? 'visible' : 'hidden' });
|
|
14315
|
+
}
|
|
14316
|
+
}
|
|
14317
|
+
};
|
|
14318
|
+
/**
|
|
14319
|
+
* @param {?} stripData
|
|
14320
|
+
* @return {?}
|
|
14321
|
+
*/
|
|
14322
|
+
ContentStripFacetFilterComponent.prototype.raiseTelemetry = /**
|
|
14323
|
+
* @param {?} stripData
|
|
14324
|
+
* @return {?}
|
|
14325
|
+
*/
|
|
14326
|
+
function (stripData) {
|
|
14327
|
+
this.telemtryResponse.emit(stripData);
|
|
14328
|
+
};
|
|
14329
|
+
/**
|
|
14330
|
+
* @param {?} key
|
|
14331
|
+
* @return {?}
|
|
14332
|
+
*/
|
|
14333
|
+
ContentStripFacetFilterComponent.prototype.setHiddenForStrip = /**
|
|
14334
|
+
* @param {?} key
|
|
14335
|
+
* @return {?}
|
|
14336
|
+
*/
|
|
14337
|
+
function (key) {
|
|
14338
|
+
this.stripsResultDataMap[key].showStrip = false;
|
|
14339
|
+
sessionStorage.setItem("cstrip_" + key, '1');
|
|
14340
|
+
};
|
|
14341
|
+
// selected pills data
|
|
14342
|
+
// selected pills data
|
|
14343
|
+
/**
|
|
14344
|
+
* @param {?} tabdata
|
|
14345
|
+
* @param {?} tabIndex
|
|
14346
|
+
* @return {?}
|
|
14347
|
+
*/
|
|
14348
|
+
ContentStripFacetFilterComponent.prototype.getSelectedPillIndex =
|
|
14349
|
+
// selected pills data
|
|
14350
|
+
/**
|
|
14351
|
+
* @param {?} tabdata
|
|
14352
|
+
* @param {?} tabIndex
|
|
14353
|
+
* @return {?}
|
|
14354
|
+
*/
|
|
14355
|
+
function (tabdata, tabIndex) {
|
|
14356
|
+
if (tabdata.pillsData && tabdata.pillsData.length) {
|
|
14357
|
+
/** @type {?} */
|
|
14358
|
+
var index = tabdata.pillsData.findIndex((/**
|
|
14359
|
+
* @param {?} pill
|
|
14360
|
+
* @return {?}
|
|
14361
|
+
*/
|
|
14362
|
+
function (pill) {
|
|
14363
|
+
return pill.selected;
|
|
14364
|
+
}));
|
|
14365
|
+
return index;
|
|
14366
|
+
}
|
|
14367
|
+
return 0;
|
|
14368
|
+
};
|
|
14369
|
+
/**
|
|
14370
|
+
* @param {?} data
|
|
14371
|
+
* @return {?}
|
|
14372
|
+
*/
|
|
14373
|
+
ContentStripFacetFilterComponent.prototype.getdata = /**
|
|
14374
|
+
* @param {?} data
|
|
14375
|
+
* @return {?}
|
|
14376
|
+
*/
|
|
14377
|
+
function (data) {
|
|
14378
|
+
if (data.stripInfo) {
|
|
14379
|
+
return data.stripInfo.widget;
|
|
14380
|
+
}
|
|
14381
|
+
return {};
|
|
14382
|
+
};
|
|
14383
|
+
/**
|
|
14384
|
+
* @param {?} tabEvent
|
|
14385
|
+
* @param {?} pillIndex
|
|
14386
|
+
* @param {?} stripMap
|
|
14387
|
+
* @param {?} stripKey
|
|
14388
|
+
* @return {?}
|
|
14389
|
+
*/
|
|
14390
|
+
ContentStripFacetFilterComponent.prototype.tabClicked = /**
|
|
14391
|
+
* @param {?} tabEvent
|
|
14392
|
+
* @param {?} pillIndex
|
|
14393
|
+
* @param {?} stripMap
|
|
14394
|
+
* @param {?} stripKey
|
|
14395
|
+
* @return {?}
|
|
14396
|
+
*/
|
|
14397
|
+
function (tabEvent, pillIndex, stripMap, stripKey) {
|
|
14398
|
+
var _this = this;
|
|
14399
|
+
if (stripMap && stripMap.tabs && stripMap.tabs[tabEvent.index]) {
|
|
14400
|
+
stripMap.tabs[tabEvent.index].pillsData[pillIndex].fetchTabStatus = 'inprogress';
|
|
14401
|
+
stripMap.tabs[tabEvent.index].pillsData[pillIndex].tabLoading = true;
|
|
14402
|
+
stripMap.showOnLoader = true;
|
|
14403
|
+
}
|
|
14404
|
+
/** @type {?} */
|
|
14405
|
+
var data = {
|
|
14406
|
+
label: "" + tabEvent.tab.textLabel,
|
|
14407
|
+
index: tabEvent.index,
|
|
14408
|
+
};
|
|
14409
|
+
this.eventSvc.raiseInteractTelemetry({
|
|
14410
|
+
type: WsEvents.EnumInteractTypes.CLICK,
|
|
14411
|
+
subType: WsEvents.EnumInteractSubTypes.HOME_PAGE_STRIP_TABS,
|
|
14412
|
+
id: camelCase(data.label) + "-tab",
|
|
14413
|
+
}, {}, {
|
|
14414
|
+
module: WsEvents.EnumTelemetrymodules.HOME,
|
|
14415
|
+
});
|
|
14416
|
+
/** @type {?} */
|
|
14417
|
+
var currentTabFromMap = stripMap.tabs && stripMap.tabs[tabEvent.index];
|
|
14418
|
+
/** @type {?} */
|
|
14419
|
+
var currentPillFromMap = stripMap.tabs && stripMap.tabs[tabEvent.index].pillsData[pillIndex];
|
|
14420
|
+
/** @type {?} */
|
|
14421
|
+
var currentStrip = this.widgetData.strips.find((/**
|
|
14422
|
+
* @param {?} s
|
|
14423
|
+
* @return {?}
|
|
14424
|
+
*/
|
|
14425
|
+
function (s) { return s.key === stripKey; }));
|
|
14426
|
+
if (this.stripsResultDataMap[stripKey] && currentTabFromMap) {
|
|
14427
|
+
this.stripsResultDataMap[stripKey].viewMoreUrl.queryParams = __assign({}, this.stripsResultDataMap[stripKey].viewMoreUrl.queryParams, { tabSelected: currentTabFromMap.value, pillSelected: currentPillFromMap.value });
|
|
14428
|
+
}
|
|
14429
|
+
if (currentStrip && currentTabFromMap && !currentTabFromMap.computeDataOnClick && currentPillFromMap) {
|
|
14430
|
+
if (currentPillFromMap.requestRequired && currentPillFromMap.request) {
|
|
14431
|
+
if (currentPillFromMap.request.searchV6) {
|
|
14432
|
+
// this.getTabDataByNewReqSearchV6(currentStrip, tabEvent.index, currentTabFromMap, true);
|
|
14433
|
+
}
|
|
14434
|
+
stripMap.tabs[tabEvent.index].pillsData[pillIndex].tabLoading = false;
|
|
14435
|
+
}
|
|
14436
|
+
else {
|
|
14437
|
+
this.getTabDataByfilter(currentStrip, currentTabFromMap, true);
|
|
14438
|
+
if (stripMap && stripMap.tabs && stripMap.tabs[tabEvent.index]) {
|
|
14439
|
+
stripMap.tabs[tabEvent.index].pillsData[pillIndex].fetchTabStatus = 'inprogress';
|
|
14440
|
+
stripMap.tabs[tabEvent.index].pillsData[pillIndex].tabLoading = false;
|
|
14441
|
+
stripMap.showOnLoader = true;
|
|
14442
|
+
}
|
|
14443
|
+
setTimeout((/**
|
|
14444
|
+
* @return {?}
|
|
14445
|
+
*/
|
|
14446
|
+
function () {
|
|
14447
|
+
if (stripMap && stripMap.tabs && stripMap.tabs[tabEvent.index]) {
|
|
14448
|
+
stripMap.tabs[tabEvent.index].pillsData[pillIndex].fetchTabStatus = 'done';
|
|
14449
|
+
stripMap.tabs[tabEvent.index].pillsData[pillIndex].tabLoading = false;
|
|
14450
|
+
stripMap.showOnLoader = false;
|
|
14451
|
+
_this.resetSelectedPill(stripMap.tabs[tabEvent.index].pillsData);
|
|
14452
|
+
stripMap.tabs[tabEvent.index].pillsData[pillIndex]['selected'] = true;
|
|
14453
|
+
}
|
|
14454
|
+
}), 200);
|
|
14455
|
+
}
|
|
14456
|
+
}
|
|
14457
|
+
};
|
|
14458
|
+
/**
|
|
14459
|
+
* @param {?} event
|
|
14460
|
+
* @param {?} stripMap
|
|
14461
|
+
* @param {?} stripKey
|
|
14462
|
+
* @param {?} pillIndex
|
|
14463
|
+
* @param {?} tabIndex
|
|
14464
|
+
* @return {?}
|
|
14465
|
+
*/
|
|
14466
|
+
ContentStripFacetFilterComponent.prototype.pillClicked = /**
|
|
14467
|
+
* @param {?} event
|
|
14468
|
+
* @param {?} stripMap
|
|
14469
|
+
* @param {?} stripKey
|
|
14470
|
+
* @param {?} pillIndex
|
|
14471
|
+
* @param {?} tabIndex
|
|
14472
|
+
* @return {?}
|
|
14473
|
+
*/
|
|
14474
|
+
function (event, stripMap, stripKey, pillIndex, tabIndex) {
|
|
14475
|
+
var _this = this;
|
|
14476
|
+
if (stripMap && stripMap.tabs && stripMap.tabs[tabIndex]) {
|
|
14477
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].fetchTabStatus = 'inprogress';
|
|
14478
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = true;
|
|
14479
|
+
stripMap.showOnLoader = true;
|
|
14480
|
+
}
|
|
14481
|
+
/** @type {?} */
|
|
14482
|
+
var currentTabFromMap = stripMap.tabs && stripMap.tabs[tabIndex];
|
|
14483
|
+
/** @type {?} */
|
|
14484
|
+
var currentPillFromMap = stripMap.tabs && stripMap.tabs[tabIndex].pillsData[pillIndex];
|
|
14485
|
+
/** @type {?} */
|
|
14486
|
+
var currentStrip = this.widgetData.strips.find((/**
|
|
14487
|
+
* @param {?} s
|
|
14488
|
+
* @return {?}
|
|
14489
|
+
*/
|
|
14490
|
+
function (s) { return s.key === stripKey; }));
|
|
14491
|
+
if (this.stripsResultDataMap[stripKey] && currentTabFromMap) {
|
|
14492
|
+
this.stripsResultDataMap[stripKey].viewMoreUrl.queryParams = __assign({}, this.stripsResultDataMap[stripKey].viewMoreUrl.queryParams, { tabSelected: currentTabFromMap.value, pillSelected: currentPillFromMap.value });
|
|
14493
|
+
}
|
|
14494
|
+
if (currentStrip && currentTabFromMap && !currentTabFromMap.computeDataOnClick && currentPillFromMap) {
|
|
14495
|
+
if (currentPillFromMap.requestRequired && currentPillFromMap.request) {
|
|
14496
|
+
// call API to get tab data and process
|
|
14497
|
+
// this.processStrip(currentStrip, [], 'fetching', true, null)
|
|
14498
|
+
if (currentPillFromMap.request.searchV6) {
|
|
14499
|
+
// this.getTabDataByNewReqSearchV6(currentStrip, tabIndex, pillIndex, currentPillFromMap, true);
|
|
14500
|
+
}
|
|
14501
|
+
else if (currentPillFromMap.request.trendingSearch) {
|
|
14502
|
+
// this.getTabDataByNewReqTrending(currentStrip, tabIndex, pillIndex, currentPillFromMap, true);
|
|
14503
|
+
}
|
|
14504
|
+
// if (stripMap && stripMap.tabs && stripMap.tabs[tabEvent.index]) {
|
|
14505
|
+
// stripMap.tabs[tabEvent.index].tabLoading = false;
|
|
14506
|
+
// }
|
|
14507
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = false;
|
|
14508
|
+
}
|
|
14509
|
+
else {
|
|
14510
|
+
this.getTabDataByfilter(currentStrip, currentTabFromMap, true);
|
|
14511
|
+
if (stripMap && stripMap.tabs && stripMap.tabs[tabIndex]) {
|
|
14512
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].fetchTabStatus = 'inprogress';
|
|
14513
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = false;
|
|
14514
|
+
stripMap.showOnLoader = true;
|
|
14515
|
+
}
|
|
14516
|
+
setTimeout((/**
|
|
14517
|
+
* @return {?}
|
|
14518
|
+
*/
|
|
14519
|
+
function () {
|
|
14520
|
+
if (stripMap && stripMap.tabs && stripMap.tabs[tabIndex]) {
|
|
14521
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].fetchTabStatus = 'done';
|
|
14522
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = false;
|
|
14523
|
+
stripMap.showOnLoader = false;
|
|
14524
|
+
_this.resetSelectedPill(stripMap.tabs[tabIndex].pillsData);
|
|
14525
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex]['selected'] = true;
|
|
14526
|
+
}
|
|
14527
|
+
}), 200);
|
|
14528
|
+
}
|
|
14529
|
+
}
|
|
14530
|
+
};
|
|
14531
|
+
/**
|
|
14532
|
+
* @param {?} pillData
|
|
14533
|
+
* @return {?}
|
|
14534
|
+
*/
|
|
14535
|
+
ContentStripFacetFilterComponent.prototype.resetSelectedPill = /**
|
|
14536
|
+
* @param {?} pillData
|
|
14537
|
+
* @return {?}
|
|
14538
|
+
*/
|
|
14539
|
+
function (pillData) {
|
|
14540
|
+
if (pillData && pillData.length) {
|
|
14541
|
+
pillData.forEach((/**
|
|
14542
|
+
* @param {?} pill
|
|
14543
|
+
* @return {?}
|
|
14544
|
+
*/
|
|
14545
|
+
function (pill) {
|
|
14546
|
+
pill['selected'] = false;
|
|
14547
|
+
}));
|
|
14548
|
+
}
|
|
14549
|
+
};
|
|
14550
|
+
/**
|
|
14551
|
+
* @param {?} strip
|
|
14552
|
+
* @param {?} currentTab
|
|
14553
|
+
* @param {?} calculateParentStatus
|
|
14554
|
+
* @return {?}
|
|
14555
|
+
*/
|
|
14556
|
+
ContentStripFacetFilterComponent.prototype.getTabDataByfilter = /**
|
|
14557
|
+
* @param {?} strip
|
|
14558
|
+
* @param {?} currentTab
|
|
14559
|
+
* @param {?} calculateParentStatus
|
|
14560
|
+
* @return {?}
|
|
14561
|
+
*/
|
|
14562
|
+
function (strip, currentTab, calculateParentStatus) {
|
|
14563
|
+
// tslint:disable:no-console
|
|
14564
|
+
console.log('strip -- ', strip);
|
|
14565
|
+
// tslint:disable:no-console
|
|
14566
|
+
console.log('currentTab -- ', currentTab);
|
|
14567
|
+
// tslint:disable:no-console
|
|
14568
|
+
console.log('calculateParentStatus-- ', calculateParentStatus);
|
|
14569
|
+
// TODO: Write logic for individual filter if passed in config
|
|
14570
|
+
// add switch case based on config key passed
|
|
14571
|
+
};
|
|
14572
|
+
/**
|
|
14573
|
+
* @private
|
|
14574
|
+
* @param {?} key
|
|
14575
|
+
* @return {?}
|
|
14576
|
+
*/
|
|
14577
|
+
ContentStripFacetFilterComponent.prototype.getIfStripHidden = /**
|
|
14578
|
+
* @private
|
|
14579
|
+
* @param {?} key
|
|
14580
|
+
* @return {?}
|
|
14581
|
+
*/
|
|
14582
|
+
function (key) {
|
|
14583
|
+
/** @type {?} */
|
|
14584
|
+
var storageItem = sessionStorage.getItem("cstrip_" + key);
|
|
14585
|
+
return Boolean(storageItem !== '1');
|
|
14586
|
+
};
|
|
14587
|
+
// translate labes
|
|
14588
|
+
// translate labes
|
|
14589
|
+
/**
|
|
14590
|
+
* @param {?} label
|
|
14591
|
+
* @param {?} type
|
|
14592
|
+
* @return {?}
|
|
14593
|
+
*/
|
|
14594
|
+
ContentStripFacetFilterComponent.prototype.translateLabels =
|
|
14595
|
+
// translate labes
|
|
14596
|
+
/**
|
|
14597
|
+
* @param {?} label
|
|
14598
|
+
* @param {?} type
|
|
14599
|
+
* @return {?}
|
|
14600
|
+
*/
|
|
14601
|
+
function (label, type) {
|
|
14602
|
+
return this.langtranslations.translateLabel(label, type, '');
|
|
14603
|
+
};
|
|
14604
|
+
/**
|
|
14605
|
+
* @param {?} stripData
|
|
14606
|
+
* @param {?} path
|
|
14607
|
+
* @param {?} queryParamsData
|
|
14608
|
+
* @return {?}
|
|
14609
|
+
*/
|
|
14610
|
+
ContentStripFacetFilterComponent.prototype.redirectViewAll = /**
|
|
14611
|
+
* @param {?} stripData
|
|
14612
|
+
* @param {?} path
|
|
14613
|
+
* @param {?} queryParamsData
|
|
14614
|
+
* @return {?}
|
|
14615
|
+
*/
|
|
14616
|
+
function (stripData, path, queryParamsData) {
|
|
14617
|
+
if (this.emitViewAll) {
|
|
14618
|
+
this.viewAllResponse.emit(stripData);
|
|
14619
|
+
}
|
|
14620
|
+
else {
|
|
14621
|
+
this.router.navigate([path], { queryParams: queryParamsData });
|
|
14622
|
+
}
|
|
14623
|
+
};
|
|
14624
|
+
/**
|
|
14625
|
+
* @param {?} index
|
|
14626
|
+
* @param {?} item
|
|
14627
|
+
* @return {?}
|
|
14628
|
+
*/
|
|
14629
|
+
ContentStripFacetFilterComponent.prototype.identify = /**
|
|
14630
|
+
* @param {?} index
|
|
14631
|
+
* @param {?} item
|
|
14632
|
+
* @return {?}
|
|
14633
|
+
*/
|
|
14634
|
+
function (index, item) {
|
|
14635
|
+
if (index >= 0) { }
|
|
14636
|
+
return item;
|
|
14637
|
+
};
|
|
14638
|
+
/**
|
|
14639
|
+
* @param {?} index
|
|
14640
|
+
* @param {?} item
|
|
14641
|
+
* @return {?}
|
|
14642
|
+
*/
|
|
14643
|
+
ContentStripFacetFilterComponent.prototype.tracker = /**
|
|
14644
|
+
* @param {?} index
|
|
14645
|
+
* @param {?} item
|
|
14646
|
+
* @return {?}
|
|
14647
|
+
*/
|
|
14648
|
+
function (index, item) {
|
|
14649
|
+
if (index >= 0) { }
|
|
14650
|
+
return get(item, 'widgetData.content.identifier');
|
|
14651
|
+
};
|
|
14652
|
+
/**
|
|
14653
|
+
* @param {?} data
|
|
14654
|
+
* @return {?}
|
|
14655
|
+
*/
|
|
14656
|
+
ContentStripFacetFilterComponent.prototype.getContineuLearningLenth = /**
|
|
14657
|
+
* @param {?} data
|
|
14658
|
+
* @return {?}
|
|
14659
|
+
*/
|
|
14660
|
+
function (data) {
|
|
14661
|
+
return data.widgets ? data.widgets.length : 0;
|
|
14662
|
+
};
|
|
14663
|
+
/**
|
|
14664
|
+
* @param {?} key
|
|
14665
|
+
* @return {?}
|
|
14666
|
+
*/
|
|
14667
|
+
ContentStripFacetFilterComponent.prototype.showAccordion = /**
|
|
14668
|
+
* @param {?} key
|
|
14669
|
+
* @return {?}
|
|
14670
|
+
*/
|
|
14671
|
+
function (key) {
|
|
14672
|
+
if (this.utilitySvc.isMobile && this.stripsResultDataMap[key].mode === 'accordion') {
|
|
14673
|
+
return this.showAccordionData;
|
|
14674
|
+
}
|
|
14675
|
+
return true;
|
|
14676
|
+
};
|
|
14677
|
+
/**
|
|
14678
|
+
* @param {?} wData
|
|
14679
|
+
* @param {?} data
|
|
14680
|
+
* @return {?}
|
|
14681
|
+
*/
|
|
14682
|
+
ContentStripFacetFilterComponent.prototype.checkCondition = /**
|
|
14683
|
+
* @param {?} wData
|
|
14684
|
+
* @param {?} data
|
|
14685
|
+
* @return {?}
|
|
14686
|
+
*/
|
|
14687
|
+
function (wData, data) {
|
|
14688
|
+
if (wData.strips[0].stripConfig && wData.strips[0].stripConfig.hideShowAll) {
|
|
14689
|
+
return !wData.strips[0].stripConfig.hideShowAll;
|
|
14690
|
+
}
|
|
14691
|
+
return wData.strips[0].viewMoreUrl && data.widgets && data.widgets.length >= 4;
|
|
14692
|
+
};
|
|
14693
|
+
/**
|
|
14694
|
+
* @param {?} data
|
|
14695
|
+
* @return {?}
|
|
14696
|
+
*/
|
|
14697
|
+
ContentStripFacetFilterComponent.prototype.checkVisible = /**
|
|
14698
|
+
* @param {?} data
|
|
14699
|
+
* @return {?}
|
|
14700
|
+
*/
|
|
14701
|
+
function (data) {
|
|
14702
|
+
return data.stripInfo && data.stripInfo.visibilityMode === 'visible';
|
|
14703
|
+
};
|
|
14704
|
+
/**
|
|
14705
|
+
* @param {?} stripsResultDataMap
|
|
14706
|
+
* @param {?} key
|
|
14707
|
+
* @return {?}
|
|
14708
|
+
*/
|
|
14709
|
+
ContentStripFacetFilterComponent.prototype.getSelectedIndex = /**
|
|
14710
|
+
* @param {?} stripsResultDataMap
|
|
14711
|
+
* @param {?} key
|
|
14712
|
+
* @return {?}
|
|
14713
|
+
*/
|
|
14714
|
+
function (stripsResultDataMap, key) {
|
|
14715
|
+
/** @type {?} */
|
|
14716
|
+
var returnValue = 0;
|
|
14717
|
+
return returnValue;
|
|
14718
|
+
};
|
|
14719
|
+
/**
|
|
14720
|
+
* @param {?} data
|
|
14721
|
+
* @return {?}
|
|
14722
|
+
*/
|
|
14723
|
+
ContentStripFacetFilterComponent.prototype.getLength = /**
|
|
14724
|
+
* @param {?} data
|
|
14725
|
+
* @return {?}
|
|
14726
|
+
*/
|
|
14727
|
+
function (data) {
|
|
14728
|
+
if (!data.tabs || !data.tabs.length) {
|
|
14729
|
+
return data.widgets ? data.widgets.length : 0;
|
|
14730
|
+
}
|
|
14731
|
+
{
|
|
14732
|
+
// if tabs are there check if each tab has widgets and get the tab with max widgets
|
|
14733
|
+
/** @type {?} */
|
|
14734
|
+
var tabWithMaxWidgets_1 = {};
|
|
14735
|
+
data.tabs.forEach((/**
|
|
14736
|
+
* @param {?} tab
|
|
14737
|
+
* @return {?}
|
|
14738
|
+
*/
|
|
14739
|
+
function (tab) {
|
|
14740
|
+
if (tab.pillsData && tab.pillsData.length) {
|
|
14741
|
+
tabWithMaxWidgets_1 = tab.pillsData.reduce((/**
|
|
14742
|
+
* @param {?} prev
|
|
14743
|
+
* @param {?} current
|
|
14744
|
+
* @return {?}
|
|
14745
|
+
*/
|
|
14746
|
+
function (prev, current) {
|
|
14747
|
+
if (!prev.widgets && !current.widgets) {
|
|
14748
|
+
return current;
|
|
14749
|
+
}
|
|
14750
|
+
if (prev.widgets && current.widgets) {
|
|
14751
|
+
return (prev.widgets.length > current.widgets.length) ? prev : current;
|
|
14752
|
+
}
|
|
14753
|
+
if (current.widgets && !prev.widgets) {
|
|
14754
|
+
return current;
|
|
14755
|
+
}
|
|
14756
|
+
if (!current.widgets && prev.widgets) {
|
|
14757
|
+
return prev;
|
|
14758
|
+
}
|
|
14759
|
+
return current;
|
|
14760
|
+
// return (prev.widgets && current.widgets && (prev.widgets.length > current.widgets.length) ) ? prev : current
|
|
14761
|
+
// tslint:disable-next-line: align
|
|
14762
|
+
}), data.tabs[0]);
|
|
14763
|
+
}
|
|
14764
|
+
}));
|
|
14765
|
+
// if tabs has atleast 1 widgets then strip will show or else not
|
|
14766
|
+
return tabWithMaxWidgets_1.widgets ? tabWithMaxWidgets_1.widgets.length : 0;
|
|
14767
|
+
}
|
|
14768
|
+
};
|
|
14769
|
+
/**
|
|
14770
|
+
* @param {?} data
|
|
14771
|
+
* @return {?}
|
|
14772
|
+
*/
|
|
14773
|
+
ContentStripFacetFilterComponent.prototype.isStripShowing = /**
|
|
14774
|
+
* @param {?} data
|
|
14775
|
+
* @return {?}
|
|
14776
|
+
*/
|
|
14777
|
+
function (data) {
|
|
14778
|
+
var _this = this;
|
|
14779
|
+
/** @type {?} */
|
|
14780
|
+
var count = 0;
|
|
14781
|
+
if (data && data.key === this.environment.programStripKey && (!data.tabs || !data.tabs.length) &&
|
|
14782
|
+
data.stripTitle === this.environment.programStripName && data.widgets.length > 0) {
|
|
14783
|
+
data.widgets.forEach((/**
|
|
14784
|
+
* @param {?} key
|
|
14785
|
+
* @return {?}
|
|
14786
|
+
*/
|
|
14787
|
+
function (key) {
|
|
14788
|
+
if (key && key.widgetData.content.primaryCategory === _this.environment.programStripPrimaryCategory) {
|
|
14789
|
+
count = count + 1;
|
|
14790
|
+
}
|
|
14791
|
+
}));
|
|
14792
|
+
if (count > 0) {
|
|
14793
|
+
data.showStrip = true;
|
|
14794
|
+
}
|
|
14795
|
+
else {
|
|
14796
|
+
data.showStrip = false;
|
|
14797
|
+
}
|
|
14798
|
+
}
|
|
14799
|
+
// console.log('data.key', data, data.key, data.widgets);
|
|
14800
|
+
return data.showStrip;
|
|
14801
|
+
};
|
|
14802
|
+
Object.defineProperty(ContentStripFacetFilterComponent.prototype, "isMobile", {
|
|
14803
|
+
get: /**
|
|
14804
|
+
* @return {?}
|
|
14805
|
+
*/
|
|
14806
|
+
function () {
|
|
14807
|
+
return this.utilitySvc.isMobile || false;
|
|
14808
|
+
},
|
|
14809
|
+
enumerable: true,
|
|
14810
|
+
configurable: true
|
|
14811
|
+
});
|
|
14812
|
+
// search api with facets
|
|
14813
|
+
// search api with facets
|
|
14814
|
+
/**
|
|
14815
|
+
* @param {?} strip
|
|
14816
|
+
* @param {?} request
|
|
14817
|
+
* @param {?} apiUrl
|
|
14818
|
+
* @param {?} calculateParentStatus
|
|
14819
|
+
* @return {?}
|
|
14820
|
+
*/
|
|
14821
|
+
ContentStripFacetFilterComponent.prototype.postRequestMethod =
|
|
14822
|
+
// search api with facets
|
|
14823
|
+
/**
|
|
14824
|
+
* @param {?} strip
|
|
14825
|
+
* @param {?} request
|
|
14826
|
+
* @param {?} apiUrl
|
|
14827
|
+
* @param {?} calculateParentStatus
|
|
14828
|
+
* @return {?}
|
|
14829
|
+
*/
|
|
14830
|
+
function (strip, request, apiUrl, calculateParentStatus) {
|
|
14831
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14832
|
+
var _this = this;
|
|
14833
|
+
return __generator(this, function (_a) {
|
|
14834
|
+
return [2 /*return*/, new Promise((/**
|
|
14835
|
+
* @param {?} resolve
|
|
14836
|
+
* @param {?} reject
|
|
14837
|
+
* @return {?}
|
|
14838
|
+
*/
|
|
14839
|
+
function (resolve, reject) {
|
|
14840
|
+
if (request && request) {
|
|
14841
|
+
_this.contentSvc.postApiMethod(apiUrl, request).subscribe((/**
|
|
14842
|
+
* @param {?} results
|
|
14843
|
+
* @return {?}
|
|
14844
|
+
*/
|
|
14845
|
+
function (results) {
|
|
14846
|
+
if (results.result && results.result.content) {
|
|
14847
|
+
/** @type {?} */
|
|
14848
|
+
var showViewMore = Boolean(results.result.content && results.result.content.length > 5 && strip.stripConfig && strip.stripConfig.postCardForSearch);
|
|
14849
|
+
/** @type {?} */
|
|
14850
|
+
var viewMoreUrl = showViewMore
|
|
14851
|
+
? {
|
|
14852
|
+
path: strip.viewMoreUrl && strip.viewMoreUrl.path || '',
|
|
14853
|
+
queryParams: {
|
|
14854
|
+
tab: 'Learn',
|
|
14855
|
+
q: strip.viewMoreUrl && strip.viewMoreUrl.queryParams,
|
|
14856
|
+
f: {},
|
|
14857
|
+
},
|
|
14858
|
+
}
|
|
14859
|
+
: null;
|
|
14860
|
+
resolve({ results: results, viewMoreUrl: viewMoreUrl });
|
|
14861
|
+
}
|
|
14862
|
+
}), (/**
|
|
14863
|
+
* @param {?} error
|
|
14864
|
+
* @return {?}
|
|
14865
|
+
*/
|
|
14866
|
+
function (error) {
|
|
14867
|
+
_this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
14868
|
+
reject(error);
|
|
14869
|
+
}));
|
|
14870
|
+
}
|
|
14871
|
+
}))];
|
|
14872
|
+
});
|
|
14873
|
+
});
|
|
14874
|
+
};
|
|
14875
|
+
/**
|
|
14876
|
+
* @param {?} strip
|
|
14877
|
+
* @param {?=} calculateParentStatus
|
|
14878
|
+
* @return {?}
|
|
14879
|
+
*/
|
|
14880
|
+
ContentStripFacetFilterComponent.prototype.fetchFromSearch = /**
|
|
14881
|
+
* @param {?} strip
|
|
14882
|
+
* @param {?=} calculateParentStatus
|
|
14883
|
+
* @return {?}
|
|
14884
|
+
*/
|
|
14885
|
+
function (strip, calculateParentStatus) {
|
|
14886
|
+
if (calculateParentStatus === void 0) { calculateParentStatus = true; }
|
|
14887
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14888
|
+
var response, tabIndex, pillIndex, widgets, tabResults, error_1;
|
|
14889
|
+
return __generator(this, function (_a) {
|
|
14890
|
+
switch (_a.label) {
|
|
14891
|
+
case 0:
|
|
14892
|
+
if (!(strip.request && Object.keys(strip.request.requestBody).length)) return [3 /*break*/, 4];
|
|
14893
|
+
_a.label = 1;
|
|
14894
|
+
case 1:
|
|
14895
|
+
_a.trys.push([1, 3, , 4]);
|
|
14896
|
+
return [4 /*yield*/, this.postRequestMethod(strip, strip.request.requestBody, strip.request.apiUrl, calculateParentStatus)];
|
|
14897
|
+
case 2:
|
|
14898
|
+
response = _a.sent();
|
|
14899
|
+
tabIndex = 0;
|
|
14900
|
+
pillIndex = 0;
|
|
14901
|
+
if (response.results && response.results.result) {
|
|
14902
|
+
this.mapAllDataWithFacets(strip, response.results.result.content, response.results.result.facets, calculateParentStatus);
|
|
14903
|
+
widgets = this.transformContentsToWidgets(response.results.result.content, strip);
|
|
14904
|
+
tabResults = [];
|
|
14905
|
+
// if (this.stripsResultDataMap[strip.key] && this.stripsResultDataMap[strip.key].tabs) {
|
|
14906
|
+
// const allTabs = this.stripsResultDataMap[strip.key].tabs;
|
|
14907
|
+
// const allPills = this.stripsResultDataMap[strip.key].tabs[tabIndex].pillsData;
|
|
14908
|
+
// this.resetSelectedPill(allPills)
|
|
14909
|
+
// if (allTabs && allTabs.length && allTabs[tabIndex]) {
|
|
14910
|
+
// if(allPills && allPills.length && allPills[pillIndex]){
|
|
14911
|
+
// allPills[pillIndex] = {
|
|
14912
|
+
// ...allPills[pillIndex],
|
|
14913
|
+
// widgets,
|
|
14914
|
+
// fetchTabStatus: 'done',
|
|
14915
|
+
// selected: true
|
|
14916
|
+
// };
|
|
14917
|
+
// }
|
|
14918
|
+
// allTabs[tabIndex] = {
|
|
14919
|
+
// ...allTabs[tabIndex],
|
|
14920
|
+
// widgets,
|
|
14921
|
+
// fetchTabStatus: 'done',
|
|
14922
|
+
// };
|
|
14923
|
+
// tabResults = allTabs;
|
|
14924
|
+
// }
|
|
14925
|
+
// }
|
|
14926
|
+
// this.processStrip(
|
|
14927
|
+
// strip,
|
|
14928
|
+
// widgets,
|
|
14929
|
+
// 'done',
|
|
14930
|
+
// calculateParentStatus,
|
|
14931
|
+
// response.viewMoreUrl,
|
|
14932
|
+
// tabResults // tabResults as widgets
|
|
14933
|
+
// );
|
|
14934
|
+
}
|
|
14935
|
+
return [3 /*break*/, 4];
|
|
14936
|
+
case 3:
|
|
14937
|
+
error_1 = _a.sent();
|
|
14938
|
+
return [3 /*break*/, 4];
|
|
14939
|
+
case 4: return [2 /*return*/];
|
|
14940
|
+
}
|
|
14941
|
+
});
|
|
14942
|
+
});
|
|
14943
|
+
};
|
|
14944
|
+
/**
|
|
14945
|
+
* @param {?} strip
|
|
14946
|
+
* @param {?} content
|
|
14947
|
+
* @param {?} facets
|
|
14948
|
+
* @param {?} calculateParentStatus
|
|
14949
|
+
* @return {?}
|
|
14950
|
+
*/
|
|
14951
|
+
ContentStripFacetFilterComponent.prototype.mapAllDataWithFacets = /**
|
|
14952
|
+
* @param {?} strip
|
|
14953
|
+
* @param {?} content
|
|
14954
|
+
* @param {?} facets
|
|
14955
|
+
* @param {?} calculateParentStatus
|
|
14956
|
+
* @return {?}
|
|
14957
|
+
*/
|
|
14958
|
+
function (strip, content, facets, calculateParentStatus) {
|
|
14959
|
+
var _this = this;
|
|
14960
|
+
console.log(strip, content);
|
|
14961
|
+
/** @type {?} */
|
|
14962
|
+
var allTabs = this.stripsResultDataMap[strip.key].tabs;
|
|
14963
|
+
/** @type {?} */
|
|
14964
|
+
var facet = [];
|
|
14965
|
+
allTabs.forEach((/**
|
|
14966
|
+
* @param {?} ele
|
|
14967
|
+
* @return {?}
|
|
14968
|
+
*/
|
|
14969
|
+
function (ele) {
|
|
14970
|
+
ele['fetchTabStatus'] = 'done';
|
|
14971
|
+
/** @type {?} */
|
|
14972
|
+
var filteredData = content.filter((/**
|
|
14973
|
+
* @param {?} contEle
|
|
14974
|
+
* @return {?}
|
|
14975
|
+
*/
|
|
14976
|
+
function (contEle) { return contEle.nlwUserExp.includes(ele.value); }))
|
|
14977
|
+
// filteredData.forEach(element => {
|
|
14978
|
+
// facet = [...facet,..._.difference(element.nlwOrgs ,facet)];
|
|
14979
|
+
// });
|
|
14980
|
+
;
|
|
14981
|
+
// filteredData.forEach(element => {
|
|
14982
|
+
// facet = [...facet,..._.difference(element.nlwOrgs ,facet)];
|
|
14983
|
+
// });
|
|
14984
|
+
ele['widgets'] = filteredData;
|
|
14985
|
+
ele.pillsData.forEach((/**
|
|
14986
|
+
* @param {?} pill
|
|
14987
|
+
* @return {?}
|
|
14988
|
+
*/
|
|
14989
|
+
function (pill) {
|
|
14990
|
+
if (pill.value === 'all') {
|
|
14991
|
+
pill['widgets'] = _this.transformContentsToWidgets(filteredData, strip);
|
|
14992
|
+
pill['fetchTabStatus'] = 'done';
|
|
14993
|
+
}
|
|
14994
|
+
else if (pill.value === 'course') {
|
|
14995
|
+
/** @type {?} */
|
|
14996
|
+
var contentFilteredData = filteredData.filter((/**
|
|
14997
|
+
* @param {?} contEle
|
|
14998
|
+
* @return {?}
|
|
14999
|
+
*/
|
|
15000
|
+
function (contEle) { return contEle.courseCategory.toLowerCase() === pill.value; }));
|
|
15001
|
+
pill['widgets'] = _this.transformContentsToWidgets(contentFilteredData, strip);
|
|
15002
|
+
pill['fetchTabStatus'] = 'done';
|
|
15003
|
+
}
|
|
15004
|
+
else {
|
|
15005
|
+
/** @type {?} */
|
|
15006
|
+
var contentFilteredData = filteredData.filter((/**
|
|
15007
|
+
* @param {?} contEle
|
|
15008
|
+
* @return {?}
|
|
15009
|
+
*/
|
|
15010
|
+
function (contEle) { return contEle.courseCategory.toLowerCase() !== 'course'; }));
|
|
15011
|
+
pill['widgets'] = _this.transformContentsToWidgets(contentFilteredData, strip);
|
|
15012
|
+
pill['fetchTabStatus'] = 'done';
|
|
15013
|
+
}
|
|
15014
|
+
}));
|
|
15015
|
+
// ele['facets'] = [{
|
|
15016
|
+
// name:'nlwOrgs',
|
|
15017
|
+
// values: facet
|
|
15018
|
+
// }]
|
|
15019
|
+
ele['facets'] = facets;
|
|
15020
|
+
}));
|
|
15021
|
+
strip.tabs[0].pillsData[0].fetchTabStatus = 'done';
|
|
15022
|
+
strip.tabs[0].pillsData[0].tabLoading = false;
|
|
15023
|
+
strip.showOnLoader = false;
|
|
15024
|
+
this.resetSelectedPill(strip.tabs[0].pillsData);
|
|
15025
|
+
strip.tabs[0].pillsData[0]['selected'] = true;
|
|
15026
|
+
this.processStrip(strip, [], 'done', calculateParentStatus, strip.viewMoreUrl, allTabs // tabResults as widgets
|
|
15027
|
+
);
|
|
15028
|
+
};
|
|
15029
|
+
/**
|
|
15030
|
+
* @private
|
|
15031
|
+
* @param {?} contents
|
|
15032
|
+
* @param {?} strip
|
|
15033
|
+
* @return {?}
|
|
15034
|
+
*/
|
|
15035
|
+
ContentStripFacetFilterComponent.prototype.transformContentsToWidgets = /**
|
|
15036
|
+
* @private
|
|
15037
|
+
* @param {?} contents
|
|
15038
|
+
* @param {?} strip
|
|
15039
|
+
* @return {?}
|
|
15040
|
+
*/
|
|
15041
|
+
function (contents, strip) {
|
|
15042
|
+
return (contents || []).map((/**
|
|
15043
|
+
* @param {?} content
|
|
15044
|
+
* @param {?} idx
|
|
15045
|
+
* @return {?}
|
|
15046
|
+
*/
|
|
15047
|
+
function (content, idx) { return (content ? {
|
|
15048
|
+
widgetType: 'cardLib',
|
|
15049
|
+
widgetSubType: 'cardContentLib',
|
|
15050
|
+
widgetHostClass: 'mb-2',
|
|
15051
|
+
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 }),
|
|
15052
|
+
} : {
|
|
15053
|
+
widgetType: 'card',
|
|
15054
|
+
widgetSubType: 'cardContent',
|
|
15055
|
+
widgetHostClass: 'mb-2',
|
|
15056
|
+
widgetData: {},
|
|
15057
|
+
}); }));
|
|
15058
|
+
};
|
|
15059
|
+
/**
|
|
15060
|
+
* @param {?} eventData
|
|
15061
|
+
* @param {?} stripMap
|
|
15062
|
+
* @param {?} tabIndex
|
|
15063
|
+
* @return {?}
|
|
15064
|
+
*/
|
|
15065
|
+
ContentStripFacetFilterComponent.prototype.getorgData = /**
|
|
15066
|
+
* @param {?} eventData
|
|
15067
|
+
* @param {?} stripMap
|
|
15068
|
+
* @param {?} tabIndex
|
|
15069
|
+
* @return {?}
|
|
15070
|
+
*/
|
|
15071
|
+
function (eventData, stripMap, tabIndex) {
|
|
15072
|
+
var _this = this;
|
|
15073
|
+
console.log(eventData);
|
|
15074
|
+
/** @type {?} */
|
|
15075
|
+
var selectedValue = eventData.target.value;
|
|
15076
|
+
/** @type {?} */
|
|
15077
|
+
var pillIndex = this.getSelectedPillIndex(stripMap.tabs[tabIndex], tabIndex);
|
|
15078
|
+
if (stripMap && stripMap.tabs && stripMap.tabs[tabIndex]) {
|
|
15079
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].fetchTabStatus = 'inprogress';
|
|
15080
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = false;
|
|
15081
|
+
stripMap.showOnLoader = true;
|
|
15082
|
+
/** @type {?} */
|
|
15083
|
+
var returnedValues = stripMap.tabs[tabIndex].widgets.filter((/**
|
|
15084
|
+
* @param {?} ele
|
|
15085
|
+
* @return {?}
|
|
15086
|
+
*/
|
|
15087
|
+
function (ele) {
|
|
15088
|
+
/** @type {?} */
|
|
15089
|
+
var words = ele.nlwOrgs.map((/**
|
|
15090
|
+
* @param {?} v
|
|
15091
|
+
* @return {?}
|
|
15092
|
+
*/
|
|
15093
|
+
function (v) { return v.toLowerCase(); }));
|
|
15094
|
+
return words.includes(selectedValue);
|
|
15095
|
+
}));
|
|
15096
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex]['widgets'] = this.transformContentsToWidgets(returnedValues, stripMap);
|
|
15097
|
+
}
|
|
15098
|
+
setTimeout((/**
|
|
15099
|
+
* @return {?}
|
|
15100
|
+
*/
|
|
15101
|
+
function () {
|
|
15102
|
+
if (stripMap && stripMap.tabs && stripMap.tabs[tabIndex]) {
|
|
15103
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].fetchTabStatus = 'done';
|
|
15104
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = false;
|
|
15105
|
+
stripMap.showOnLoader = false;
|
|
15106
|
+
_this.resetSelectedPill(stripMap.tabs[tabIndex].pillsData);
|
|
15107
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex]['selected'] = true;
|
|
15108
|
+
}
|
|
15109
|
+
}), 200);
|
|
15110
|
+
};
|
|
15111
|
+
ContentStripFacetFilterComponent.decorators = [
|
|
15112
|
+
{ type: Component, args: [{
|
|
15113
|
+
selector: 'sb-uic-content-strip-facet-filter',
|
|
15114
|
+
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> </span>\n <span *ngIf=\"tab?.showTabDataCount && tab?.widgets?.length\">({{tab?.widgets?.length}})</span>\n </ng-template>\n\n <div class=\"wfull\" *ngIf=\"tab?.pillsData && tab?.pillsData?.length\">\n <div class=\"flex justify-between item-center flex-wrap gap-4\">\n <div class=\"\">\n <ng-container *ngFor=\"let facet of tab?.facets\">\n <div class=\"facets-select\">\n <select (change)=\"getorgData($event, stripsResultDataMap[key], tabIndex)\">\n <option value=\"\" selected disabled>Choose by organisation</option>\n <option value=\"{{d.name}}\" *ngFor=\"let d of facet.values\" >{{d.name}}</option>\n </select>\n </div>\n </ng-container>\n </div>\n <div>\n <ng-container >\n <mat-chip-list class=\"content-pill-data\" aria-label=\"Fish selection\">\n <ng-container *ngFor=\"let pill of tab?.pillsData;let p = index\">\n <mat-chip [selected]=\"pill?.selected\" (click)=\"pillClicked($event, stripsResultDataMap[key], key, p, tabIndex)\">\n <span class=\"pill-name\">{{pill?.label}}</span></mat-chip>\n </ng-container>\n </mat-chip-list>\n </ng-container>\n </div>\n <!-- viewAll start-->\n <div *ngIf=\"!stripsResultDataMap[key]?.hideViewMoreUrl && checkCondition(widgetData , stripsResultDataMap[key])\" class=\" hidden md:block\">\n <div class=\"ml-4 pl-2 view-more ws-mat-default-text\">\n <a class=\"flex ws-mat-default-text items-center justify-center mat-body-1 cursor-pointer\" \n (click)=\"raiseTelemetry(stripsResultDataMap[key]);redirectViewAll(stripsResultDataMap[key], stripsResultDataMap[key]?.viewMoreUrl?.path, stripsResultDataMap[key]?.viewMoreUrl?.queryParams )\">\n <span i18n class=\"ws-mat-default-text\">{{translateLabels(widgetData.strips[0].viewMoreUrl.viewMoreText,'home') || 'See all'}}</span>\n <mat-icon class=\"ws-mat-default-text mat-icon notranslate material-icons mat-icon-no-color\" color=\"accent\">navigate_next</mat-icon>\n </a>\n </div>\n </div>\n \n <!-- viewAll end-->\n </div>\n <div *ngIf=\"stripsResultDataMap && stripsResultDataMap[key]?.showOnLoader ||\n !tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.fetchTabStatus\"\n class=\"text-center my-2\">\n <sb-uic-horizontal-scroller-v2 [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\" [id]=\"key+'-scroller'\"\n [loadStatus]=\"'fetching'\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of stripsResultDataMap[key]?.loaderWidgets; trackBy: tracker\">\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </div>\n <ng-container *ngIf=\"tab?.pillsData && tab?.pillsData.length && tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]\">\n <div *ngIf=\"((tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.fetchTabStatus && tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.fetchTabStatus === 'done') &&\n (!tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.widgets || !tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.widgets?.length))\">\n <ng-container *ngIf=\"tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.value === 'inprogress'; else msgTemp\">\n <div class=\"w-full flex flex-col items-center justify-center\">\n <img alt=\"\" class=\"mt-4 mb-4\" src=\"assets/icons/home/nodataDefault.svg\">\n <div class=\"mat-subheading-1 text-center info-content\">{{ 'contentstripmultiple.getReadyForLearningAdventure' | translate }} -\n <a class=\"click-here\" [routerLink]=\"'/page/learn'\">{{ 'contentstripmultiple.clickHere' | translate }}</a> {{ 'contentstripmultiple.toEnrollNextCourse' | translate }}</div>\n </div>\n </ng-container>\n <ng-template #msgTemp>\n <div class=\"w-full flex flex-col items-center justify-center\">\n <img alt=\"\" class=\"mt-4 mb-4\" src=\"assets/icons/home/nodataDefault.png\">\n <div class=\"mat-subheading-1 text-center\">{{ translateLabels(tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.nodataMsg, 'home') }}</div>\n </div>\n </ng-template>\n </div>\n </ng-container>\n <ng-container *ngIf=\"(tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.fetchTabStatus === 'done' || tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.widgets?.length)\">\n <ng-container *ngIf=\"!tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.tabLoading\">\n <sb-uic-horizontal-scroller-v2 [id]=\"key+'-scroller'\" [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\" [widgetsLength]=\"tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.widgets?.length\"\n [loadStatus]=\"'done'\" [defaultMaxWidgets]=\"tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.maxWidgets ||\n stripsResultDataMap[key]?.sliderConfig?.maxWidgets || defaultMaxWidgets\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.widgets| slice:0:(tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.maxWidgets ||\n stripsResultDataMap[key]?.sliderConfig?.maxWidgets || defaultMaxWidgets); trackBy: tracker\">\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </ng-container>\n </ng-container>\n </div>\n </mat-tab>\n </mat-tab-group>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </a>\n\n </ng-container>\n </ng-container>\n</ng-template>",
|
|
15115
|
+
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}"]
|
|
15116
|
+
}] }
|
|
15117
|
+
];
|
|
15118
|
+
/** @nocollapse */
|
|
15119
|
+
ContentStripFacetFilterComponent.ctorParameters = function () { return [
|
|
15120
|
+
{ type: undefined, decorators: [{ type: Inject, args: ['environment',] }] },
|
|
15121
|
+
{ type: WidgetContentService },
|
|
15122
|
+
{ type: LoggerService },
|
|
15123
|
+
{ type: EventService },
|
|
15124
|
+
{ type: ConfigurationsService$1 },
|
|
15125
|
+
{ type: UtilityService },
|
|
15126
|
+
{ type: Router },
|
|
15127
|
+
{ type: WidgetUserService },
|
|
15128
|
+
{ type: TranslateService },
|
|
15129
|
+
{ type: MultilingualTranslationsService }
|
|
15130
|
+
]; };
|
|
15131
|
+
ContentStripFacetFilterComponent.propDecorators = {
|
|
15132
|
+
widgetData: [{ type: Input }],
|
|
15133
|
+
emptyResponse: [{ type: Output }],
|
|
15134
|
+
viewAllResponse: [{ type: Output }],
|
|
15135
|
+
telemtryResponse: [{ type: Output }],
|
|
15136
|
+
providerId: [{ type: Input }],
|
|
15137
|
+
emitViewAll: [{ type: Input }],
|
|
15138
|
+
channnelName: [{ type: Input }],
|
|
15139
|
+
id: [{ type: HostBinding, args: ['id',] }]
|
|
15140
|
+
};
|
|
15141
|
+
return ContentStripFacetFilterComponent;
|
|
15142
|
+
}(WidgetBaseComponent));
|
|
15143
|
+
if (false) {
|
|
15144
|
+
/** @type {?} */
|
|
15145
|
+
ContentStripFacetFilterComponent.prototype.widgetData;
|
|
15146
|
+
/** @type {?} */
|
|
15147
|
+
ContentStripFacetFilterComponent.prototype.emptyResponse;
|
|
15148
|
+
/** @type {?} */
|
|
15149
|
+
ContentStripFacetFilterComponent.prototype.viewAllResponse;
|
|
15150
|
+
/** @type {?} */
|
|
15151
|
+
ContentStripFacetFilterComponent.prototype.telemtryResponse;
|
|
15152
|
+
/** @type {?} */
|
|
15153
|
+
ContentStripFacetFilterComponent.prototype.providerId;
|
|
15154
|
+
/** @type {?} */
|
|
15155
|
+
ContentStripFacetFilterComponent.prototype.emitViewAll;
|
|
15156
|
+
/** @type {?} */
|
|
15157
|
+
ContentStripFacetFilterComponent.prototype.channnelName;
|
|
15158
|
+
/** @type {?} */
|
|
15159
|
+
ContentStripFacetFilterComponent.prototype.id;
|
|
15160
|
+
/** @type {?} */
|
|
15161
|
+
ContentStripFacetFilterComponent.prototype.stripsResultDataMap;
|
|
15162
|
+
/** @type {?} */
|
|
15163
|
+
ContentStripFacetFilterComponent.prototype.stripsKeyOrder;
|
|
15164
|
+
/** @type {?} */
|
|
15165
|
+
ContentStripFacetFilterComponent.prototype.showAccordionData;
|
|
15166
|
+
/** @type {?} */
|
|
15167
|
+
ContentStripFacetFilterComponent.prototype.showParentLoader;
|
|
15168
|
+
/** @type {?} */
|
|
15169
|
+
ContentStripFacetFilterComponent.prototype.showParentError;
|
|
15170
|
+
/** @type {?} */
|
|
15171
|
+
ContentStripFacetFilterComponent.prototype.showParentNoData;
|
|
15172
|
+
/** @type {?} */
|
|
15173
|
+
ContentStripFacetFilterComponent.prototype.errorDataCount;
|
|
15174
|
+
/** @type {?} */
|
|
15175
|
+
ContentStripFacetFilterComponent.prototype.noDataCount;
|
|
15176
|
+
/** @type {?} */
|
|
15177
|
+
ContentStripFacetFilterComponent.prototype.successDataCount;
|
|
15178
|
+
/** @type {?} */
|
|
15179
|
+
ContentStripFacetFilterComponent.prototype.contentAvailable;
|
|
15180
|
+
/** @type {?} */
|
|
15181
|
+
ContentStripFacetFilterComponent.prototype.baseUrl;
|
|
15182
|
+
/** @type {?} */
|
|
15183
|
+
ContentStripFacetFilterComponent.prototype.veifiedKarmayogi;
|
|
15184
|
+
/** @type {?} */
|
|
15185
|
+
ContentStripFacetFilterComponent.prototype.environment;
|
|
15186
|
+
/** @type {?} */
|
|
15187
|
+
ContentStripFacetFilterComponent.prototype.changeEventSubscription;
|
|
15188
|
+
/** @type {?} */
|
|
15189
|
+
ContentStripFacetFilterComponent.prototype.defaultMaxWidgets;
|
|
15190
|
+
/** @type {?} */
|
|
15191
|
+
ContentStripFacetFilterComponent.prototype.enrollInterval;
|
|
15192
|
+
/** @type {?} */
|
|
15193
|
+
ContentStripFacetFilterComponent.prototype.todaysEvents;
|
|
15194
|
+
/** @type {?} */
|
|
15195
|
+
ContentStripFacetFilterComponent.prototype.enrollmentMapData;
|
|
15196
|
+
/**
|
|
15197
|
+
* @type {?}
|
|
15198
|
+
* @private
|
|
15199
|
+
*/
|
|
15200
|
+
ContentStripFacetFilterComponent.prototype.contentSvc;
|
|
15201
|
+
/**
|
|
15202
|
+
* @type {?}
|
|
15203
|
+
* @private
|
|
15204
|
+
*/
|
|
15205
|
+
ContentStripFacetFilterComponent.prototype.loggerSvc;
|
|
15206
|
+
/**
|
|
15207
|
+
* @type {?}
|
|
15208
|
+
* @private
|
|
15209
|
+
*/
|
|
15210
|
+
ContentStripFacetFilterComponent.prototype.eventSvc;
|
|
15211
|
+
/**
|
|
15212
|
+
* @type {?}
|
|
15213
|
+
* @private
|
|
15214
|
+
*/
|
|
15215
|
+
ContentStripFacetFilterComponent.prototype.configSvc;
|
|
15216
|
+
/** @type {?} */
|
|
15217
|
+
ContentStripFacetFilterComponent.prototype.utilitySvc;
|
|
15218
|
+
/** @type {?} */
|
|
15219
|
+
ContentStripFacetFilterComponent.prototype.router;
|
|
15220
|
+
/**
|
|
15221
|
+
* @type {?}
|
|
15222
|
+
* @private
|
|
15223
|
+
*/
|
|
15224
|
+
ContentStripFacetFilterComponent.prototype.userSvc;
|
|
15225
|
+
/**
|
|
15226
|
+
* @type {?}
|
|
15227
|
+
* @private
|
|
15228
|
+
*/
|
|
15229
|
+
ContentStripFacetFilterComponent.prototype.translate;
|
|
15230
|
+
/**
|
|
15231
|
+
* @type {?}
|
|
15232
|
+
* @private
|
|
15233
|
+
*/
|
|
15234
|
+
ContentStripFacetFilterComponent.prototype.langtranslations;
|
|
15235
|
+
}
|
|
15236
|
+
|
|
13633
15237
|
/**
|
|
13634
15238
|
* @fileoverview added by tsickle
|
|
13635
15239
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -13637,58 +15241,58 @@ var WIDGET_REGISTRATION_LIB_CONFIG = [
|
|
|
13637
15241
|
/**
|
|
13638
15242
|
* @record
|
|
13639
15243
|
*/
|
|
13640
|
-
function IStripUnitContentData$
|
|
15244
|
+
function IStripUnitContentData$2() { }
|
|
13641
15245
|
if (false) {
|
|
13642
15246
|
/** @type {?} */
|
|
13643
|
-
IStripUnitContentData$
|
|
15247
|
+
IStripUnitContentData$2.prototype.key;
|
|
13644
15248
|
/** @type {?} */
|
|
13645
|
-
IStripUnitContentData$
|
|
15249
|
+
IStripUnitContentData$2.prototype.canHideStrip;
|
|
13646
15250
|
/** @type {?|undefined} */
|
|
13647
|
-
IStripUnitContentData$
|
|
15251
|
+
IStripUnitContentData$2.prototype.mode;
|
|
13648
15252
|
/** @type {?} */
|
|
13649
|
-
IStripUnitContentData$
|
|
15253
|
+
IStripUnitContentData$2.prototype.showStrip;
|
|
13650
15254
|
/** @type {?} */
|
|
13651
|
-
IStripUnitContentData$
|
|
15255
|
+
IStripUnitContentData$2.prototype.disableTranslate;
|
|
13652
15256
|
/** @type {?|undefined} */
|
|
13653
|
-
IStripUnitContentData$
|
|
15257
|
+
IStripUnitContentData$2.prototype.widgets;
|
|
13654
15258
|
/** @type {?} */
|
|
13655
|
-
IStripUnitContentData$
|
|
15259
|
+
IStripUnitContentData$2.prototype.stripTitle;
|
|
13656
15260
|
/** @type {?|undefined} */
|
|
13657
|
-
IStripUnitContentData$
|
|
15261
|
+
IStripUnitContentData$2.prototype.stripTitleLink;
|
|
13658
15262
|
/** @type {?|undefined} */
|
|
13659
|
-
IStripUnitContentData$
|
|
15263
|
+
IStripUnitContentData$2.prototype.sliderConfig;
|
|
13660
15264
|
/** @type {?} */
|
|
13661
|
-
IStripUnitContentData$
|
|
15265
|
+
IStripUnitContentData$2.prototype.stripConfig;
|
|
13662
15266
|
/** @type {?|undefined} */
|
|
13663
|
-
IStripUnitContentData$
|
|
15267
|
+
IStripUnitContentData$2.prototype.tabs;
|
|
13664
15268
|
/** @type {?|undefined} */
|
|
13665
|
-
IStripUnitContentData$
|
|
15269
|
+
IStripUnitContentData$2.prototype.stripName;
|
|
13666
15270
|
/** @type {?|undefined} */
|
|
13667
|
-
IStripUnitContentData$
|
|
15271
|
+
IStripUnitContentData$2.prototype.stripLogo;
|
|
13668
15272
|
/** @type {?|undefined} */
|
|
13669
|
-
IStripUnitContentData$
|
|
15273
|
+
IStripUnitContentData$2.prototype.description;
|
|
13670
15274
|
/** @type {?|undefined} */
|
|
13671
|
-
IStripUnitContentData$
|
|
15275
|
+
IStripUnitContentData$2.prototype.stripInfo;
|
|
13672
15276
|
/** @type {?|undefined} */
|
|
13673
|
-
IStripUnitContentData$
|
|
15277
|
+
IStripUnitContentData$2.prototype.noDataWidget;
|
|
13674
15278
|
/** @type {?|undefined} */
|
|
13675
|
-
IStripUnitContentData$
|
|
15279
|
+
IStripUnitContentData$2.prototype.errorWidget;
|
|
13676
15280
|
/** @type {?} */
|
|
13677
|
-
IStripUnitContentData$
|
|
15281
|
+
IStripUnitContentData$2.prototype.showOnNoData;
|
|
13678
15282
|
/** @type {?} */
|
|
13679
|
-
IStripUnitContentData$
|
|
15283
|
+
IStripUnitContentData$2.prototype.showOnLoader;
|
|
13680
15284
|
/** @type {?} */
|
|
13681
|
-
IStripUnitContentData$
|
|
15285
|
+
IStripUnitContentData$2.prototype.showOnError;
|
|
13682
15286
|
/** @type {?|undefined} */
|
|
13683
|
-
IStripUnitContentData$
|
|
15287
|
+
IStripUnitContentData$2.prototype.loaderWidgets;
|
|
13684
15288
|
/** @type {?|undefined} */
|
|
13685
|
-
IStripUnitContentData$
|
|
15289
|
+
IStripUnitContentData$2.prototype.stripBackground;
|
|
13686
15290
|
/** @type {?|undefined} */
|
|
13687
|
-
IStripUnitContentData$
|
|
15291
|
+
IStripUnitContentData$2.prototype.secondaryHeading;
|
|
13688
15292
|
/** @type {?} */
|
|
13689
|
-
IStripUnitContentData$
|
|
15293
|
+
IStripUnitContentData$2.prototype.viewMoreUrl;
|
|
13690
15294
|
/** @type {?|undefined} */
|
|
13691
|
-
IStripUnitContentData$
|
|
15295
|
+
IStripUnitContentData$2.prototype.request;
|
|
13692
15296
|
}
|
|
13693
15297
|
var ContentStripWithTabsPillsComponent = /** @class */ (function (_super) {
|
|
13694
15298
|
__extends(ContentStripWithTabsPillsComponent, _super);
|
|
@@ -15568,6 +17172,61 @@ var ContentStripWithTabsPillsModule = /** @class */ (function () {
|
|
|
15568
17172
|
return ContentStripWithTabsPillsModule;
|
|
15569
17173
|
}());
|
|
15570
17174
|
|
|
17175
|
+
/**
|
|
17176
|
+
* @fileoverview added by tsickle
|
|
17177
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
17178
|
+
*/
|
|
17179
|
+
var ɵ0$6 = HttpLoaderFactory1;
|
|
17180
|
+
var ContentStripFacetFilterModule = /** @class */ (function () {
|
|
17181
|
+
function ContentStripFacetFilterModule() {
|
|
17182
|
+
}
|
|
17183
|
+
ContentStripFacetFilterModule.decorators = [
|
|
17184
|
+
{ type: NgModule, args: [{
|
|
17185
|
+
declarations: [ContentStripFacetFilterComponent],
|
|
17186
|
+
imports: [
|
|
17187
|
+
SbUiResolverModule,
|
|
17188
|
+
CommonModule,
|
|
17189
|
+
RouterModule,
|
|
17190
|
+
HorizontalScrollerV2Module,
|
|
17191
|
+
MatProgressSpinnerModule,
|
|
17192
|
+
MatToolbarModule,
|
|
17193
|
+
MatIconModule,
|
|
17194
|
+
MatButtonModule,
|
|
17195
|
+
MatTooltipModule,
|
|
17196
|
+
MatListModule,
|
|
17197
|
+
MatSidenavModule,
|
|
17198
|
+
MatCardModule,
|
|
17199
|
+
MatExpansionModule,
|
|
17200
|
+
MatRadioModule,
|
|
17201
|
+
MatChipsModule,
|
|
17202
|
+
MatInputModule,
|
|
17203
|
+
MatFormFieldModule,
|
|
17204
|
+
MatDialogModule,
|
|
17205
|
+
MatSnackBarModule,
|
|
17206
|
+
MatSelectModule,
|
|
17207
|
+
MatDatepickerModule,
|
|
17208
|
+
MatNativeDateModule,
|
|
17209
|
+
MatTableModule,
|
|
17210
|
+
MatCheckboxModule,
|
|
17211
|
+
MatProgressSpinnerModule,
|
|
17212
|
+
MatButtonToggleModule,
|
|
17213
|
+
MatTabsModule,
|
|
17214
|
+
MatAutocompleteModule,
|
|
17215
|
+
TranslateModule.forRoot({
|
|
17216
|
+
loader: {
|
|
17217
|
+
provide: TranslateLoader,
|
|
17218
|
+
useFactory: ɵ0$6,
|
|
17219
|
+
deps: [HttpClient],
|
|
17220
|
+
},
|
|
17221
|
+
}),
|
|
17222
|
+
],
|
|
17223
|
+
entryComponents: [ContentStripFacetFilterComponent],
|
|
17224
|
+
exports: [ContentStripFacetFilterComponent],
|
|
17225
|
+
},] }
|
|
17226
|
+
];
|
|
17227
|
+
return ContentStripFacetFilterModule;
|
|
17228
|
+
}());
|
|
17229
|
+
|
|
15571
17230
|
/**
|
|
15572
17231
|
* @fileoverview added by tsickle
|
|
15573
17232
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -16918,7 +18577,7 @@ var CompetencyPassbookMdoModule = /** @class */ (function () {
|
|
|
16918
18577
|
*/
|
|
16919
18578
|
/** @type {?} */
|
|
16920
18579
|
var PROXY_SLAG_V8 = '/apis/proxies/v8';
|
|
16921
|
-
var ɵ0$
|
|
18580
|
+
var ɵ0$7 = /**
|
|
16922
18581
|
* @param {?} contentId
|
|
16923
18582
|
* @param {?} contentType
|
|
16924
18583
|
* @param {?} userId
|
|
@@ -16943,7 +18602,7 @@ function (contentId, userID) {
|
|
|
16943
18602
|
};
|
|
16944
18603
|
/** @type {?} */
|
|
16945
18604
|
var API_END_POINTS$3 = {
|
|
16946
|
-
GET_RATING: (ɵ0$
|
|
18605
|
+
GET_RATING: (ɵ0$7),
|
|
16947
18606
|
ADD_OR_UPDATE: PROXY_SLAG_V8 + "/ratings/v1/upsert",
|
|
16948
18607
|
GET_RATING_SUMMARY: (ɵ1$3),
|
|
16949
18608
|
GET_RATING_LOOKUP: PROXY_SLAG_V8 + "/ratings/v1/ratingLookUp",
|
|
@@ -17687,7 +19346,7 @@ if (false) {
|
|
|
17687
19346
|
* @fileoverview added by tsickle
|
|
17688
19347
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
17689
19348
|
*/
|
|
17690
|
-
var ɵ0$
|
|
19349
|
+
var ɵ0$8 = HttpLoaderFactory;
|
|
17691
19350
|
var MDOChannelModule = /** @class */ (function () {
|
|
17692
19351
|
function MDOChannelModule() {
|
|
17693
19352
|
}
|
|
@@ -17713,7 +19372,7 @@ var MDOChannelModule = /** @class */ (function () {
|
|
|
17713
19372
|
TranslateModule.forRoot({
|
|
17714
19373
|
loader: {
|
|
17715
19374
|
provide: TranslateLoader,
|
|
17716
|
-
useFactory: ɵ0$
|
|
19375
|
+
useFactory: ɵ0$8,
|
|
17717
19376
|
deps: [HttpClient],
|
|
17718
19377
|
},
|
|
17719
19378
|
}),
|
|
@@ -18037,7 +19696,7 @@ if (false) {
|
|
|
18037
19696
|
* @fileoverview added by tsickle
|
|
18038
19697
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
18039
19698
|
*/
|
|
18040
|
-
var ɵ0$
|
|
19699
|
+
var ɵ0$9 = HttpLoaderFactory;
|
|
18041
19700
|
var ProvidersModule = /** @class */ (function () {
|
|
18042
19701
|
function ProvidersModule() {
|
|
18043
19702
|
}
|
|
@@ -18062,7 +19721,7 @@ var ProvidersModule = /** @class */ (function () {
|
|
|
18062
19721
|
TranslateModule.forRoot({
|
|
18063
19722
|
loader: {
|
|
18064
19723
|
provide: TranslateLoader,
|
|
18065
|
-
useFactory: ɵ0$
|
|
19724
|
+
useFactory: ɵ0$9,
|
|
18066
19725
|
deps: [HttpClient],
|
|
18067
19726
|
},
|
|
18068
19727
|
}),
|
|
@@ -18190,7 +19849,7 @@ var NationalLearningComponent = /** @class */ (function () {
|
|
|
18190
19849
|
NationalLearningComponent.decorators = [
|
|
18191
19850
|
{ type: Component, args: [{
|
|
18192
19851
|
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",
|
|
19852
|
+
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
19853
|
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
19854
|
}] }
|
|
18196
19855
|
];
|
|
@@ -18471,7 +20130,7 @@ var EventsComponent = /** @class */ (function () {
|
|
|
18471
20130
|
EventsComponent.decorators = [
|
|
18472
20131
|
{ type: Component, args: [{
|
|
18473
20132
|
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
|
|
20133
|
+
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
20134
|
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
20135
|
}] }
|
|
18477
20136
|
];
|
|
@@ -18606,6 +20265,7 @@ var EventsModule = /** @class */ (function () {
|
|
|
18606
20265
|
CommonModule,
|
|
18607
20266
|
RouterModule,
|
|
18608
20267
|
SkeletonLoaderLibModule,
|
|
20268
|
+
MatIconModule
|
|
18609
20269
|
],
|
|
18610
20270
|
exports: [EventsComponent, EventCardComponent]
|
|
18611
20271
|
},] }
|
|
@@ -19359,7 +21019,8 @@ var NationalLearningModule = /** @class */ (function () {
|
|
|
19359
21019
|
MdoLeaderboardModule,
|
|
19360
21020
|
HighlightsOfWeekModule,
|
|
19361
21021
|
SpeakersModule,
|
|
19362
|
-
UserProgressModule
|
|
21022
|
+
UserProgressModule,
|
|
21023
|
+
ContentStripFacetFilterModule
|
|
19363
21024
|
],
|
|
19364
21025
|
exports: [
|
|
19365
21026
|
NationalLearningComponent,
|
|
@@ -19383,5 +21044,5 @@ var NationalLearningModule = /** @class */ (function () {
|
|
|
19383
21044
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
19384
21045
|
*/
|
|
19385
21046
|
|
|
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,
|
|
21047
|
+
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
21048
|
//# sourceMappingURL=sunbird-cb-consumption.js.map
|