@sunbird-cb/consumption 0.0.85 → 0.0.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/sunbird-cb-consumption.umd.js +1786 -62
- 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 +1224 -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 +65 -0
- package/esm2015/lib/_common/user-progress/user-progress.component.js +7 -6
- 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 +1450 -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 +69 -0
- package/esm5/lib/_common/user-progress/user-progress.component.js +7 -6
- 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 +1537 -43
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +1765 -43
- package/fesm5/sunbird-cb-consumption.js.map +1 -1
- package/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.component.d.ts +131 -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
|
@@ -10094,7 +10094,7 @@
|
|
|
10094
10094
|
}
|
|
10095
10095
|
ConsumptionModule.decorators = [
|
|
10096
10096
|
{ type: core.NgModule, args: [{
|
|
10097
|
-
declarations: [ConsumptionComponent
|
|
10097
|
+
declarations: [ConsumptionComponent],
|
|
10098
10098
|
imports: [
|
|
10099
10099
|
ContentStripWithTabsLibModule,
|
|
10100
10100
|
SlidersLibModule
|
|
@@ -13834,6 +13834,1669 @@
|
|
|
13834
13834
|
}
|
|
13835
13835
|
];
|
|
13836
13836
|
|
|
13837
|
+
/**
|
|
13838
|
+
* @fileoverview added by tsickle
|
|
13839
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
13840
|
+
*/
|
|
13841
|
+
var NsContentStripWithFacets;
|
|
13842
|
+
(function (NsContentStripWithFacets) {
|
|
13843
|
+
/**
|
|
13844
|
+
* @record
|
|
13845
|
+
*/
|
|
13846
|
+
function IContentStripMultiple() { }
|
|
13847
|
+
NsContentStripWithFacets.IContentStripMultiple = IContentStripMultiple;
|
|
13848
|
+
if (false) {
|
|
13849
|
+
/** @type {?|undefined} */
|
|
13850
|
+
IContentStripMultiple.prototype.errorWidget;
|
|
13851
|
+
/** @type {?|undefined} */
|
|
13852
|
+
IContentStripMultiple.prototype.loader;
|
|
13853
|
+
/** @type {?|undefined} */
|
|
13854
|
+
IContentStripMultiple.prototype.noDataWidget;
|
|
13855
|
+
/** @type {?} */
|
|
13856
|
+
IContentStripMultiple.prototype.strips;
|
|
13857
|
+
/** @type {?|undefined} */
|
|
13858
|
+
IContentStripMultiple.prototype.isChannelStrip;
|
|
13859
|
+
}
|
|
13860
|
+
/**
|
|
13861
|
+
* @record
|
|
13862
|
+
*/
|
|
13863
|
+
function IContentStripUnit() { }
|
|
13864
|
+
NsContentStripWithFacets.IContentStripUnit = IContentStripUnit;
|
|
13865
|
+
if (false) {
|
|
13866
|
+
/** @type {?|undefined} */
|
|
13867
|
+
IContentStripUnit.prototype.stripRequestFor;
|
|
13868
|
+
/** @type {?|undefined} */
|
|
13869
|
+
IContentStripUnit.prototype.onTabClickRequest;
|
|
13870
|
+
/** @type {?|undefined} */
|
|
13871
|
+
IContentStripUnit.prototype.hideViewMoreUrl;
|
|
13872
|
+
/** @type {?} */
|
|
13873
|
+
IContentStripUnit.prototype.type;
|
|
13874
|
+
/** @type {?|undefined} */
|
|
13875
|
+
IContentStripUnit.prototype.disableTranslate;
|
|
13876
|
+
/** @type {?} */
|
|
13877
|
+
IContentStripUnit.prototype.key;
|
|
13878
|
+
/** @type {?} */
|
|
13879
|
+
IContentStripUnit.prototype.title;
|
|
13880
|
+
/** @type {?|undefined} */
|
|
13881
|
+
IContentStripUnit.prototype.customeClass;
|
|
13882
|
+
/** @type {?|undefined} */
|
|
13883
|
+
IContentStripUnit.prototype.nodataMsg;
|
|
13884
|
+
/** @type {?|undefined} */
|
|
13885
|
+
IContentStripUnit.prototype.stripTitleLink;
|
|
13886
|
+
/** @type {?|undefined} */
|
|
13887
|
+
IContentStripUnit.prototype.sliderConfig;
|
|
13888
|
+
/** @type {?|undefined} */
|
|
13889
|
+
IContentStripUnit.prototype.tabs;
|
|
13890
|
+
/** @type {?|undefined} */
|
|
13891
|
+
IContentStripUnit.prototype.titleDescription;
|
|
13892
|
+
/** @type {?|undefined} */
|
|
13893
|
+
IContentStripUnit.prototype.name;
|
|
13894
|
+
/** @type {?|undefined} */
|
|
13895
|
+
IContentStripUnit.prototype.mode;
|
|
13896
|
+
/** @type {?|undefined} */
|
|
13897
|
+
IContentStripUnit.prototype.info;
|
|
13898
|
+
/** @type {?|undefined} */
|
|
13899
|
+
IContentStripUnit.prototype.logo;
|
|
13900
|
+
/** @type {?|undefined} */
|
|
13901
|
+
IContentStripUnit.prototype.preWidgets;
|
|
13902
|
+
/** @type {?|undefined} */
|
|
13903
|
+
IContentStripUnit.prototype.postWidgets;
|
|
13904
|
+
/** @type {?|undefined} */
|
|
13905
|
+
IContentStripUnit.prototype.stripConfig;
|
|
13906
|
+
/** @type {?|undefined} */
|
|
13907
|
+
IContentStripUnit.prototype.canHideStrip;
|
|
13908
|
+
/** @type {?} */
|
|
13909
|
+
IContentStripUnit.prototype.showStrip;
|
|
13910
|
+
/** @type {?|undefined} */
|
|
13911
|
+
IContentStripUnit.prototype.filters;
|
|
13912
|
+
/** @type {?|undefined} */
|
|
13913
|
+
IContentStripUnit.prototype.selectAll;
|
|
13914
|
+
/** @type {?|undefined} */
|
|
13915
|
+
IContentStripUnit.prototype.request;
|
|
13916
|
+
/** @type {?|undefined} */
|
|
13917
|
+
IContentStripUnit.prototype.searchV6Type;
|
|
13918
|
+
/** @type {?|undefined} */
|
|
13919
|
+
IContentStripUnit.prototype.stripBackground;
|
|
13920
|
+
/** @type {?|undefined} */
|
|
13921
|
+
IContentStripUnit.prototype.noDataWidget;
|
|
13922
|
+
/** @type {?|undefined} */
|
|
13923
|
+
IContentStripUnit.prototype.loader;
|
|
13924
|
+
/** @type {?|undefined} */
|
|
13925
|
+
IContentStripUnit.prototype.loaderWidgets;
|
|
13926
|
+
/** @type {?|undefined} */
|
|
13927
|
+
IContentStripUnit.prototype.errorWidget;
|
|
13928
|
+
/** @type {?|undefined} */
|
|
13929
|
+
IContentStripUnit.prototype.refreshEvent;
|
|
13930
|
+
/** @type {?|undefined} */
|
|
13931
|
+
IContentStripUnit.prototype.fetchLikes;
|
|
13932
|
+
/** @type {?|undefined} */
|
|
13933
|
+
IContentStripUnit.prototype.secondaryHeading;
|
|
13934
|
+
/** @type {?|undefined} */
|
|
13935
|
+
IContentStripUnit.prototype.viewMoreUrl;
|
|
13936
|
+
/** @type {?|undefined} */
|
|
13937
|
+
IContentStripUnit.prototype.data;
|
|
13938
|
+
}
|
|
13939
|
+
/**
|
|
13940
|
+
* @record
|
|
13941
|
+
*/
|
|
13942
|
+
function IStripRequestApi() { }
|
|
13943
|
+
NsContentStripWithFacets.IStripRequestApi = IStripRequestApi;
|
|
13944
|
+
if (false) {
|
|
13945
|
+
/** @type {?} */
|
|
13946
|
+
IStripRequestApi.prototype.path;
|
|
13947
|
+
/** @type {?|undefined} */
|
|
13948
|
+
IStripRequestApi.prototype.queryParams;
|
|
13949
|
+
}
|
|
13950
|
+
/**
|
|
13951
|
+
* @record
|
|
13952
|
+
*/
|
|
13953
|
+
function INetworkRequestApi() { }
|
|
13954
|
+
NsContentStripWithFacets.INetworkRequestApi = INetworkRequestApi;
|
|
13955
|
+
if (false) {
|
|
13956
|
+
/** @type {?} */
|
|
13957
|
+
INetworkRequestApi.prototype.path;
|
|
13958
|
+
/** @type {?|undefined} */
|
|
13959
|
+
INetworkRequestApi.prototype.data;
|
|
13960
|
+
}
|
|
13961
|
+
/**
|
|
13962
|
+
* @record
|
|
13963
|
+
*/
|
|
13964
|
+
function IStripInfo() { }
|
|
13965
|
+
NsContentStripWithFacets.IStripInfo = IStripInfo;
|
|
13966
|
+
if (false) {
|
|
13967
|
+
/** @type {?} */
|
|
13968
|
+
IStripInfo.prototype.mode;
|
|
13969
|
+
/** @type {?|undefined} */
|
|
13970
|
+
IStripInfo.prototype.visibilityMode;
|
|
13971
|
+
/** @type {?} */
|
|
13972
|
+
IStripInfo.prototype.icon;
|
|
13973
|
+
/** @type {?} */
|
|
13974
|
+
IStripInfo.prototype.widget;
|
|
13975
|
+
}
|
|
13976
|
+
/**
|
|
13977
|
+
* @record
|
|
13978
|
+
*/
|
|
13979
|
+
function IStripConfig() { }
|
|
13980
|
+
if (false) {
|
|
13981
|
+
/** @type {?} */
|
|
13982
|
+
IStripConfig.prototype.cardSubType;
|
|
13983
|
+
/** @type {?|undefined} */
|
|
13984
|
+
IStripConfig.prototype.postCardForSearch;
|
|
13985
|
+
/** @type {?|undefined} */
|
|
13986
|
+
IStripConfig.prototype.intranetMode;
|
|
13987
|
+
/** @type {?|undefined} */
|
|
13988
|
+
IStripConfig.prototype.deletedMode;
|
|
13989
|
+
/** @type {?|undefined} */
|
|
13990
|
+
IStripConfig.prototype.contentTags;
|
|
13991
|
+
/** @type {?|undefined} */
|
|
13992
|
+
IStripConfig.prototype.hideShowAll;
|
|
13993
|
+
}
|
|
13994
|
+
/**
|
|
13995
|
+
* @record
|
|
13996
|
+
*/
|
|
13997
|
+
function IContentTags() { }
|
|
13998
|
+
NsContentStripWithFacets.IContentTags = IContentTags;
|
|
13999
|
+
if (false) {
|
|
14000
|
+
/** @type {?|undefined} */
|
|
14001
|
+
IContentTags.prototype.daysSpan;
|
|
14002
|
+
/** @type {?|undefined} */
|
|
14003
|
+
IContentTags.prototype.excludeContentType;
|
|
14004
|
+
/** @type {?|undefined} */
|
|
14005
|
+
IContentTags.prototype.excludeMimeType;
|
|
14006
|
+
/** @type {?} */
|
|
14007
|
+
IContentTags.prototype.tag;
|
|
14008
|
+
/** @type {?} */
|
|
14009
|
+
IContentTags.prototype.criteriaField;
|
|
14010
|
+
}
|
|
14011
|
+
/**
|
|
14012
|
+
* @record
|
|
14013
|
+
*/
|
|
14014
|
+
function IContentStripResponseApi() { }
|
|
14015
|
+
NsContentStripWithFacets.IContentStripResponseApi = IContentStripResponseApi;
|
|
14016
|
+
if (false) {
|
|
14017
|
+
/** @type {?} */
|
|
14018
|
+
IContentStripResponseApi.prototype.contents;
|
|
14019
|
+
/** @type {?|undefined} */
|
|
14020
|
+
IContentStripResponseApi.prototype.hasMore;
|
|
14021
|
+
/** @type {?|undefined} */
|
|
14022
|
+
IContentStripResponseApi.prototype.pageState;
|
|
14023
|
+
/** @type {?|undefined} */
|
|
14024
|
+
IContentStripResponseApi.prototype.totalHits;
|
|
14025
|
+
}
|
|
14026
|
+
/**
|
|
14027
|
+
* @record
|
|
14028
|
+
*/
|
|
14029
|
+
function IContentStripTab() { }
|
|
14030
|
+
NsContentStripWithFacets.IContentStripTab = IContentStripTab;
|
|
14031
|
+
if (false) {
|
|
14032
|
+
/** @type {?|undefined} */
|
|
14033
|
+
IContentStripTab.prototype.pillsData;
|
|
14034
|
+
/** @type {?} */
|
|
14035
|
+
IContentStripTab.prototype.label;
|
|
14036
|
+
/** @type {?} */
|
|
14037
|
+
IContentStripTab.prototype.value;
|
|
14038
|
+
/** @type {?} */
|
|
14039
|
+
IContentStripTab.prototype.showTabDataCount;
|
|
14040
|
+
/** @type {?|undefined} */
|
|
14041
|
+
IContentStripTab.prototype.requestRequired;
|
|
14042
|
+
/** @type {?|undefined} */
|
|
14043
|
+
IContentStripTab.prototype.computeDataOnClick;
|
|
14044
|
+
/** @type {?|undefined} */
|
|
14045
|
+
IContentStripTab.prototype.computeDataOnClickKey;
|
|
14046
|
+
/** @type {?|undefined} */
|
|
14047
|
+
IContentStripTab.prototype.request;
|
|
14048
|
+
/** @type {?|undefined} */
|
|
14049
|
+
IContentStripTab.prototype.widgets;
|
|
14050
|
+
/** @type {?|undefined} */
|
|
14051
|
+
IContentStripTab.prototype.maxWidgets;
|
|
14052
|
+
/** @type {?|undefined} */
|
|
14053
|
+
IContentStripTab.prototype.fetchTabStatus;
|
|
14054
|
+
/** @type {?|undefined} */
|
|
14055
|
+
IContentStripTab.prototype.nodataMsg;
|
|
14056
|
+
/** @type {?|undefined} */
|
|
14057
|
+
IContentStripTab.prototype.tabLoading;
|
|
14058
|
+
/** @type {?|undefined} */
|
|
14059
|
+
IContentStripTab.prototype.facets;
|
|
14060
|
+
}
|
|
14061
|
+
})(NsContentStripWithFacets || (NsContentStripWithFacets = {}));
|
|
14062
|
+
/** @enum {string} */
|
|
14063
|
+
var ApiRequestFor = {
|
|
14064
|
+
SEARCH: 'search',
|
|
14065
|
+
};
|
|
14066
|
+
|
|
14067
|
+
/**
|
|
14068
|
+
* @fileoverview added by tsickle
|
|
14069
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
14070
|
+
*/
|
|
14071
|
+
/**
|
|
14072
|
+
* @record
|
|
14073
|
+
*/
|
|
14074
|
+
function IStripUnitContentData$1() { }
|
|
14075
|
+
if (false) {
|
|
14076
|
+
/** @type {?} */
|
|
14077
|
+
IStripUnitContentData$1.prototype.key;
|
|
14078
|
+
/** @type {?} */
|
|
14079
|
+
IStripUnitContentData$1.prototype.canHideStrip;
|
|
14080
|
+
/** @type {?|undefined} */
|
|
14081
|
+
IStripUnitContentData$1.prototype.mode;
|
|
14082
|
+
/** @type {?} */
|
|
14083
|
+
IStripUnitContentData$1.prototype.showStrip;
|
|
14084
|
+
/** @type {?} */
|
|
14085
|
+
IStripUnitContentData$1.prototype.disableTranslate;
|
|
14086
|
+
/** @type {?|undefined} */
|
|
14087
|
+
IStripUnitContentData$1.prototype.widgets;
|
|
14088
|
+
/** @type {?} */
|
|
14089
|
+
IStripUnitContentData$1.prototype.stripTitle;
|
|
14090
|
+
/** @type {?|undefined} */
|
|
14091
|
+
IStripUnitContentData$1.prototype.hideViewMoreUrl;
|
|
14092
|
+
/** @type {?|undefined} */
|
|
14093
|
+
IStripUnitContentData$1.prototype.stripTitleLink;
|
|
14094
|
+
/** @type {?|undefined} */
|
|
14095
|
+
IStripUnitContentData$1.prototype.sliderConfig;
|
|
14096
|
+
/** @type {?} */
|
|
14097
|
+
IStripUnitContentData$1.prototype.stripConfig;
|
|
14098
|
+
/** @type {?|undefined} */
|
|
14099
|
+
IStripUnitContentData$1.prototype.tabs;
|
|
14100
|
+
/** @type {?|undefined} */
|
|
14101
|
+
IStripUnitContentData$1.prototype.stripName;
|
|
14102
|
+
/** @type {?|undefined} */
|
|
14103
|
+
IStripUnitContentData$1.prototype.stripLogo;
|
|
14104
|
+
/** @type {?|undefined} */
|
|
14105
|
+
IStripUnitContentData$1.prototype.description;
|
|
14106
|
+
/** @type {?|undefined} */
|
|
14107
|
+
IStripUnitContentData$1.prototype.stripInfo;
|
|
14108
|
+
/** @type {?|undefined} */
|
|
14109
|
+
IStripUnitContentData$1.prototype.noDataWidget;
|
|
14110
|
+
/** @type {?|undefined} */
|
|
14111
|
+
IStripUnitContentData$1.prototype.errorWidget;
|
|
14112
|
+
/** @type {?} */
|
|
14113
|
+
IStripUnitContentData$1.prototype.showOnNoData;
|
|
14114
|
+
/** @type {?} */
|
|
14115
|
+
IStripUnitContentData$1.prototype.showOnLoader;
|
|
14116
|
+
/** @type {?} */
|
|
14117
|
+
IStripUnitContentData$1.prototype.showOnError;
|
|
14118
|
+
/** @type {?|undefined} */
|
|
14119
|
+
IStripUnitContentData$1.prototype.loaderWidgets;
|
|
14120
|
+
/** @type {?|undefined} */
|
|
14121
|
+
IStripUnitContentData$1.prototype.stripBackground;
|
|
14122
|
+
/** @type {?|undefined} */
|
|
14123
|
+
IStripUnitContentData$1.prototype.secondaryHeading;
|
|
14124
|
+
/** @type {?} */
|
|
14125
|
+
IStripUnitContentData$1.prototype.viewMoreUrl;
|
|
14126
|
+
/** @type {?|undefined} */
|
|
14127
|
+
IStripUnitContentData$1.prototype.request;
|
|
14128
|
+
}
|
|
14129
|
+
var ContentStripFacetFilterComponent = /** @class */ (function (_super) {
|
|
14130
|
+
__extends(ContentStripFacetFilterComponent, _super);
|
|
14131
|
+
function ContentStripFacetFilterComponent(environment, contentSvc, loggerSvc, eventSvc, configSvc, utilitySvc, router, userSvc, translate, langtranslations, _fb) {
|
|
14132
|
+
var _this = _super.call(this) || this;
|
|
14133
|
+
_this.contentSvc = contentSvc;
|
|
14134
|
+
_this.loggerSvc = loggerSvc;
|
|
14135
|
+
_this.eventSvc = eventSvc;
|
|
14136
|
+
_this.configSvc = configSvc;
|
|
14137
|
+
_this.utilitySvc = utilitySvc;
|
|
14138
|
+
_this.router = router;
|
|
14139
|
+
_this.userSvc = userSvc;
|
|
14140
|
+
_this.translate = translate;
|
|
14141
|
+
_this.langtranslations = langtranslations;
|
|
14142
|
+
_this._fb = _fb;
|
|
14143
|
+
_this.emptyResponse = new core.EventEmitter();
|
|
14144
|
+
_this.viewAllResponse = new core.EventEmitter();
|
|
14145
|
+
_this.telemtryResponse = new core.EventEmitter();
|
|
14146
|
+
_this.providerId = '';
|
|
14147
|
+
_this.emitViewAll = false;
|
|
14148
|
+
_this.channnelName = '';
|
|
14149
|
+
_this.id = "ws-strip-miltiple_" + Math.random();
|
|
14150
|
+
_this.stripsResultDataMap = {};
|
|
14151
|
+
_this.stripsKeyOrder = [];
|
|
14152
|
+
_this.showAccordionData = true;
|
|
14153
|
+
_this.showParentLoader = false;
|
|
14154
|
+
_this.showParentError = false;
|
|
14155
|
+
_this.showParentNoData = false;
|
|
14156
|
+
_this.errorDataCount = 0;
|
|
14157
|
+
_this.noDataCount = 0;
|
|
14158
|
+
_this.successDataCount = 0;
|
|
14159
|
+
_this.contentAvailable = true;
|
|
14160
|
+
_this.baseUrl = _this.configSvc.sitePath || '';
|
|
14161
|
+
_this.veifiedKarmayogi = false;
|
|
14162
|
+
_this.changeEventSubscription = null;
|
|
14163
|
+
_this.defaultMaxWidgets = 12;
|
|
14164
|
+
_this.todaysEvents = [];
|
|
14165
|
+
if (localStorage.getItem('websiteLanguage')) {
|
|
14166
|
+
_this.translate.setDefaultLang('en');
|
|
14167
|
+
/** @type {?} */
|
|
14168
|
+
var lang = JSON.stringify(localStorage.getItem('websiteLanguage'));
|
|
14169
|
+
lang = lang.replace(/\"/g, '');
|
|
14170
|
+
_this.translate.use(lang);
|
|
14171
|
+
}
|
|
14172
|
+
_this.environment = environment;
|
|
14173
|
+
return _this;
|
|
14174
|
+
}
|
|
14175
|
+
/**
|
|
14176
|
+
* @return {?}
|
|
14177
|
+
*/
|
|
14178
|
+
ContentStripFacetFilterComponent.prototype.ngOnDestroy = /**
|
|
14179
|
+
* @return {?}
|
|
14180
|
+
*/
|
|
14181
|
+
function () {
|
|
14182
|
+
};
|
|
14183
|
+
/**
|
|
14184
|
+
* @return {?}
|
|
14185
|
+
*/
|
|
14186
|
+
ContentStripFacetFilterComponent.prototype.ngOnInit = /**
|
|
14187
|
+
* @return {?}
|
|
14188
|
+
*/
|
|
14189
|
+
function () {
|
|
14190
|
+
var _this = this;
|
|
14191
|
+
this.initData();
|
|
14192
|
+
this.contentSvc.telemetryData$.subscribe((/**
|
|
14193
|
+
* @param {?} data
|
|
14194
|
+
* @return {?}
|
|
14195
|
+
*/
|
|
14196
|
+
function (data) {
|
|
14197
|
+
_this.telemtryResponse.emit(data);
|
|
14198
|
+
}));
|
|
14199
|
+
this.facetForm = this._fb.group({
|
|
14200
|
+
org: ['0']
|
|
14201
|
+
});
|
|
14202
|
+
};
|
|
14203
|
+
/**
|
|
14204
|
+
* @private
|
|
14205
|
+
* @return {?}
|
|
14206
|
+
*/
|
|
14207
|
+
ContentStripFacetFilterComponent.prototype.initData = /**
|
|
14208
|
+
* @private
|
|
14209
|
+
* @return {?}
|
|
14210
|
+
*/
|
|
14211
|
+
function () {
|
|
14212
|
+
var e_1, _a;
|
|
14213
|
+
var _this = this;
|
|
14214
|
+
this.stripsKeyOrder = this.widgetData && this.widgetData.strips && this.widgetData.strips.map((/**
|
|
14215
|
+
* @param {?} strip
|
|
14216
|
+
* @return {?}
|
|
14217
|
+
*/
|
|
14218
|
+
function (strip) { return strip.key; })) || [];
|
|
14219
|
+
if (this.widgetData.loader && this.widgetData.strips.length) {
|
|
14220
|
+
this.showParentLoader = true;
|
|
14221
|
+
}
|
|
14222
|
+
try {
|
|
14223
|
+
// Fetch the data
|
|
14224
|
+
for (var _b = __values(this.widgetData.strips), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
14225
|
+
var strip = _c.value;
|
|
14226
|
+
if (this.checkForEmptyWidget(strip)) {
|
|
14227
|
+
this.fetchStripFromRequestData(strip, false);
|
|
14228
|
+
}
|
|
14229
|
+
else {
|
|
14230
|
+
this.processStrip(strip, [], 'done', true, null);
|
|
14231
|
+
}
|
|
14232
|
+
}
|
|
14233
|
+
}
|
|
14234
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
14235
|
+
finally {
|
|
14236
|
+
try {
|
|
14237
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
14238
|
+
}
|
|
14239
|
+
finally { if (e_1) throw e_1.error; }
|
|
14240
|
+
}
|
|
14241
|
+
// Subscription for changes
|
|
14242
|
+
/** @type {?} */
|
|
14243
|
+
var keyAndEvent = this.widgetData.strips
|
|
14244
|
+
.map((/**
|
|
14245
|
+
* @param {?} strip
|
|
14246
|
+
* @return {?}
|
|
14247
|
+
*/
|
|
14248
|
+
function (strip) { return ({
|
|
14249
|
+
key: strip.key,
|
|
14250
|
+
type: (strip.refreshEvent && strip.refreshEvent.eventType) || '',
|
|
14251
|
+
from: (strip.refreshEvent && strip.refreshEvent.from.toString()) || '',
|
|
14252
|
+
}); }))
|
|
14253
|
+
.filter((/**
|
|
14254
|
+
* @param {?} __0
|
|
14255
|
+
* @return {?}
|
|
14256
|
+
*/
|
|
14257
|
+
function (_a) {
|
|
14258
|
+
var key = _a.key, type = _a.type, from = _a.from;
|
|
14259
|
+
return key && type && from;
|
|
14260
|
+
}));
|
|
14261
|
+
/** @type {?} */
|
|
14262
|
+
var eventTypeSet = new Set(keyAndEvent.map((/**
|
|
14263
|
+
* @param {?} e
|
|
14264
|
+
* @return {?}
|
|
14265
|
+
*/
|
|
14266
|
+
function (e) { return e.type; })));
|
|
14267
|
+
this.changeEventSubscription = this.eventSvc.events$
|
|
14268
|
+
.pipe(operators.filter((/**
|
|
14269
|
+
* @param {?} event
|
|
14270
|
+
* @return {?}
|
|
14271
|
+
*/
|
|
14272
|
+
function (event) { return eventTypeSet.has(event.eventType); })))
|
|
14273
|
+
.subscribe((/**
|
|
14274
|
+
* @param {?} event
|
|
14275
|
+
* @return {?}
|
|
14276
|
+
*/
|
|
14277
|
+
function (event) {
|
|
14278
|
+
keyAndEvent
|
|
14279
|
+
.filter((/**
|
|
14280
|
+
* @param {?} e
|
|
14281
|
+
* @return {?}
|
|
14282
|
+
*/
|
|
14283
|
+
function (e) { return e.type === event.eventType && e.from === event.from; }))
|
|
14284
|
+
.map((/**
|
|
14285
|
+
* @param {?} e
|
|
14286
|
+
* @return {?}
|
|
14287
|
+
*/
|
|
14288
|
+
function (e) { return e.key; }))
|
|
14289
|
+
.forEach((/**
|
|
14290
|
+
* @param {?} k
|
|
14291
|
+
* @return {?}
|
|
14292
|
+
*/
|
|
14293
|
+
function (k) { return _this.fetchStripFromKey(k, false); }));
|
|
14294
|
+
}));
|
|
14295
|
+
};
|
|
14296
|
+
/**
|
|
14297
|
+
* @private
|
|
14298
|
+
* @param {?} key
|
|
14299
|
+
* @param {?=} calculateParentStatus
|
|
14300
|
+
* @return {?}
|
|
14301
|
+
*/
|
|
14302
|
+
ContentStripFacetFilterComponent.prototype.fetchStripFromKey = /**
|
|
14303
|
+
* @private
|
|
14304
|
+
* @param {?} key
|
|
14305
|
+
* @param {?=} calculateParentStatus
|
|
14306
|
+
* @return {?}
|
|
14307
|
+
*/
|
|
14308
|
+
function (key, calculateParentStatus) {
|
|
14309
|
+
if (calculateParentStatus === void 0) { calculateParentStatus = true; }
|
|
14310
|
+
/** @type {?} */
|
|
14311
|
+
var stripData = this.widgetData.strips.find((/**
|
|
14312
|
+
* @param {?} strip
|
|
14313
|
+
* @return {?}
|
|
14314
|
+
*/
|
|
14315
|
+
function (strip) { return strip.key === key; }));
|
|
14316
|
+
if (stripData) {
|
|
14317
|
+
this.fetchStripFromRequestData(stripData, calculateParentStatus);
|
|
14318
|
+
}
|
|
14319
|
+
};
|
|
14320
|
+
/**
|
|
14321
|
+
* @private
|
|
14322
|
+
* @param {?} strip
|
|
14323
|
+
* @param {?=} calculateParentStatus
|
|
14324
|
+
* @return {?}
|
|
14325
|
+
*/
|
|
14326
|
+
ContentStripFacetFilterComponent.prototype.fetchStripFromRequestData = /**
|
|
14327
|
+
* @private
|
|
14328
|
+
* @param {?} strip
|
|
14329
|
+
* @param {?=} calculateParentStatus
|
|
14330
|
+
* @return {?}
|
|
14331
|
+
*/
|
|
14332
|
+
function (strip, calculateParentStatus) {
|
|
14333
|
+
if (calculateParentStatus === void 0) { calculateParentStatus = true; }
|
|
14334
|
+
// setting initial values
|
|
14335
|
+
strip.loaderWidgets = this.transformSkeletonToWidgets(strip);
|
|
14336
|
+
this.processStrip(strip, [], 'fetching', false, null);
|
|
14337
|
+
if (strip && strip.stripRequestFor === ApiRequestFor.SEARCH && !strip.onTabClickRequest) {
|
|
14338
|
+
this.fetchFromSearch(strip, calculateParentStatus);
|
|
14339
|
+
}
|
|
14340
|
+
};
|
|
14341
|
+
/**
|
|
14342
|
+
* @private
|
|
14343
|
+
* @param {?} strip
|
|
14344
|
+
* @return {?}
|
|
14345
|
+
*/
|
|
14346
|
+
ContentStripFacetFilterComponent.prototype.transformSkeletonToWidgets = /**
|
|
14347
|
+
* @private
|
|
14348
|
+
* @param {?} strip
|
|
14349
|
+
* @return {?}
|
|
14350
|
+
*/
|
|
14351
|
+
function (strip) {
|
|
14352
|
+
return [1, 2, 3, 4, 5, 6, 7, 7, 8, 9, 10].map((/**
|
|
14353
|
+
* @param {?} _content
|
|
14354
|
+
* @return {?}
|
|
14355
|
+
*/
|
|
14356
|
+
function (_content) { return ({
|
|
14357
|
+
widgetType: 'cardLib',
|
|
14358
|
+
widgetSubType: 'cardContentLib',
|
|
14359
|
+
widgetHostClass: 'mb-2',
|
|
14360
|
+
widgetData: {
|
|
14361
|
+
cardSubType: strip.loaderConfig && strip.loaderConfig.cardSubType || 'card-standard-skeleton',
|
|
14362
|
+
cardCustomeClass: strip.customeClass ? strip.customeClass : '',
|
|
14363
|
+
},
|
|
14364
|
+
}); }));
|
|
14365
|
+
};
|
|
14366
|
+
/**
|
|
14367
|
+
* @private
|
|
14368
|
+
* @param {?} strip
|
|
14369
|
+
* @param {?=} results
|
|
14370
|
+
* @param {?=} fetchStatus
|
|
14371
|
+
* @param {?=} calculateParentStatus
|
|
14372
|
+
* @param {?=} _viewMoreUrl
|
|
14373
|
+
* @param {?=} tabsResults
|
|
14374
|
+
* @return {?}
|
|
14375
|
+
*/
|
|
14376
|
+
ContentStripFacetFilterComponent.prototype.processStrip = /**
|
|
14377
|
+
* @private
|
|
14378
|
+
* @param {?} strip
|
|
14379
|
+
* @param {?=} results
|
|
14380
|
+
* @param {?=} fetchStatus
|
|
14381
|
+
* @param {?=} calculateParentStatus
|
|
14382
|
+
* @param {?=} _viewMoreUrl
|
|
14383
|
+
* @param {?=} tabsResults
|
|
14384
|
+
* @return {?}
|
|
14385
|
+
*/
|
|
14386
|
+
function (strip, results, fetchStatus, calculateParentStatus, _viewMoreUrl, tabsResults) {
|
|
14387
|
+
if (results === void 0) { results = []; }
|
|
14388
|
+
if (calculateParentStatus === void 0) { calculateParentStatus = true; }
|
|
14389
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14390
|
+
var stripData;
|
|
14391
|
+
var _a;
|
|
14392
|
+
return __generator(this, function (_b) {
|
|
14393
|
+
stripData = {
|
|
14394
|
+
viewMoreUrl: strip.viewMoreUrl,
|
|
14395
|
+
key: strip.key,
|
|
14396
|
+
canHideStrip: Boolean(strip.canHideStrip),
|
|
14397
|
+
showStrip: this.getIfStripHidden(strip.key),
|
|
14398
|
+
noDataWidget: strip.noDataWidget,
|
|
14399
|
+
errorWidget: strip.errorWidget,
|
|
14400
|
+
stripInfo: strip.info,
|
|
14401
|
+
stripTitle: strip.title,
|
|
14402
|
+
stripTitleLink: strip.stripTitleLink,
|
|
14403
|
+
disableTranslate: strip.disableTranslate,
|
|
14404
|
+
sliderConfig: strip.sliderConfig,
|
|
14405
|
+
tabs: tabsResults ? tabsResults : strip.tabs,
|
|
14406
|
+
stripName: strip.name,
|
|
14407
|
+
mode: strip.mode,
|
|
14408
|
+
stripConfig: strip.stripConfig,
|
|
14409
|
+
stripBackground: strip.stripBackground,
|
|
14410
|
+
secondaryHeading: strip.secondaryHeading,
|
|
14411
|
+
loaderWidgets: strip.loaderWidgets || [],
|
|
14412
|
+
hideViewMoreUrl: strip.hideViewMoreUrl || false,
|
|
14413
|
+
widgets: fetchStatus === 'done'
|
|
14414
|
+
? __spread((strip.preWidgets || []).map((/**
|
|
14415
|
+
* @param {?} w
|
|
14416
|
+
* @return {?}
|
|
14417
|
+
*/
|
|
14418
|
+
function (w) { return (__assign({}, w, { widgetHostClass: "mb-2 " + w.widgetHostClass })); })), results, (strip.postWidgets || []).map((/**
|
|
14419
|
+
* @param {?} w
|
|
14420
|
+
* @return {?}
|
|
14421
|
+
*/
|
|
14422
|
+
function (w) { return (__assign({}, w, { widgetHostClass: "mb-2 " + w.widgetHostClass })); }))) : [],
|
|
14423
|
+
showOnNoData: Boolean(strip.noDataWidget &&
|
|
14424
|
+
!((strip.preWidgets || []).length + results.length + (strip.postWidgets || []).length) &&
|
|
14425
|
+
fetchStatus === 'done'),
|
|
14426
|
+
showOnLoader: Boolean(strip.loader && fetchStatus === 'fetching'),
|
|
14427
|
+
showOnError: Boolean(strip.errorWidget && fetchStatus === 'error'),
|
|
14428
|
+
};
|
|
14429
|
+
// const stripData = this.stripsResultDataMap[strip.key]
|
|
14430
|
+
this.stripsResultDataMap = __assign({}, this.stripsResultDataMap, (_a = {}, _a[strip.key] = stripData, _a));
|
|
14431
|
+
if (!tabsResults) {
|
|
14432
|
+
if (calculateParentStatus &&
|
|
14433
|
+
(fetchStatus === 'done' || fetchStatus === 'error') &&
|
|
14434
|
+
stripData.widgets) {
|
|
14435
|
+
this.checkParentStatus(fetchStatus, stripData.widgets.length);
|
|
14436
|
+
}
|
|
14437
|
+
if (calculateParentStatus && !(results && results.length > 0)) {
|
|
14438
|
+
this.contentAvailable = false;
|
|
14439
|
+
}
|
|
14440
|
+
else if (results && results.length > 0) {
|
|
14441
|
+
this.contentAvailable = true;
|
|
14442
|
+
}
|
|
14443
|
+
}
|
|
14444
|
+
else {
|
|
14445
|
+
this.contentAvailable = true;
|
|
14446
|
+
}
|
|
14447
|
+
return [2 /*return*/];
|
|
14448
|
+
});
|
|
14449
|
+
});
|
|
14450
|
+
};
|
|
14451
|
+
/**
|
|
14452
|
+
* @private
|
|
14453
|
+
* @param {?} fetchStatus
|
|
14454
|
+
* @param {?} stripWidgetsCount
|
|
14455
|
+
* @return {?}
|
|
14456
|
+
*/
|
|
14457
|
+
ContentStripFacetFilterComponent.prototype.checkParentStatus = /**
|
|
14458
|
+
* @private
|
|
14459
|
+
* @param {?} fetchStatus
|
|
14460
|
+
* @param {?} stripWidgetsCount
|
|
14461
|
+
* @return {?}
|
|
14462
|
+
*/
|
|
14463
|
+
function (fetchStatus, stripWidgetsCount) {
|
|
14464
|
+
if (fetchStatus === 'done' && !stripWidgetsCount) {
|
|
14465
|
+
this.noDataCount += 1;
|
|
14466
|
+
}
|
|
14467
|
+
else if (fetchStatus === 'done' && stripWidgetsCount) {
|
|
14468
|
+
this.successDataCount += 1;
|
|
14469
|
+
}
|
|
14470
|
+
else if (fetchStatus === 'error') {
|
|
14471
|
+
this.errorDataCount += 1;
|
|
14472
|
+
}
|
|
14473
|
+
/** @type {?} */
|
|
14474
|
+
var settledCount = this.noDataCount + this.successDataCount + this.errorDataCount;
|
|
14475
|
+
/** @type {?} */
|
|
14476
|
+
var totalCount = this.widgetData.strips.length;
|
|
14477
|
+
if (this.successDataCount > 0 && settledCount < totalCount) {
|
|
14478
|
+
return;
|
|
14479
|
+
}
|
|
14480
|
+
this.showParentLoader = settledCount !== totalCount;
|
|
14481
|
+
this.showParentNoData =
|
|
14482
|
+
this.noDataCount > 0 && this.noDataCount + this.errorDataCount === totalCount;
|
|
14483
|
+
this.showParentError = this.errorDataCount === totalCount;
|
|
14484
|
+
};
|
|
14485
|
+
/**
|
|
14486
|
+
* @param {?} strip
|
|
14487
|
+
* @return {?}
|
|
14488
|
+
*/
|
|
14489
|
+
ContentStripFacetFilterComponent.prototype.checkForEmptyWidget = /**
|
|
14490
|
+
* @param {?} strip
|
|
14491
|
+
* @return {?}
|
|
14492
|
+
*/
|
|
14493
|
+
function (strip) {
|
|
14494
|
+
if (strip.request &&
|
|
14495
|
+
((strip.request.requestBody && Object.keys(strip.request.requestBody).length))) {
|
|
14496
|
+
return true;
|
|
14497
|
+
}
|
|
14498
|
+
return false;
|
|
14499
|
+
};
|
|
14500
|
+
// strip settings
|
|
14501
|
+
// strip settings
|
|
14502
|
+
/**
|
|
14503
|
+
* @param {?} data
|
|
14504
|
+
* @return {?}
|
|
14505
|
+
*/
|
|
14506
|
+
ContentStripFacetFilterComponent.prototype.toggleInfo =
|
|
14507
|
+
// strip settings
|
|
14508
|
+
/**
|
|
14509
|
+
* @param {?} data
|
|
14510
|
+
* @return {?}
|
|
14511
|
+
*/
|
|
14512
|
+
function (data) {
|
|
14513
|
+
/** @type {?} */
|
|
14514
|
+
var stripInfo = this.stripsResultDataMap[data.key].stripInfo;
|
|
14515
|
+
if (stripInfo) {
|
|
14516
|
+
if (stripInfo.mode !== 'below') {
|
|
14517
|
+
this.loggerSvc.warn("strip info mode: " + stripInfo.mode + " not implemented yet");
|
|
14518
|
+
stripInfo.mode = 'below';
|
|
14519
|
+
}
|
|
14520
|
+
if (stripInfo.mode === 'below') {
|
|
14521
|
+
this.stripsResultDataMap[data.key].stripInfo = __assign({}, stripInfo, { visibilityMode: stripInfo.visibilityMode === 'hidden' ? 'visible' : 'hidden' });
|
|
14522
|
+
}
|
|
14523
|
+
}
|
|
14524
|
+
};
|
|
14525
|
+
/**
|
|
14526
|
+
* @param {?} stripData
|
|
14527
|
+
* @return {?}
|
|
14528
|
+
*/
|
|
14529
|
+
ContentStripFacetFilterComponent.prototype.raiseTelemetry = /**
|
|
14530
|
+
* @param {?} stripData
|
|
14531
|
+
* @return {?}
|
|
14532
|
+
*/
|
|
14533
|
+
function (stripData) {
|
|
14534
|
+
this.telemtryResponse.emit(stripData);
|
|
14535
|
+
};
|
|
14536
|
+
/**
|
|
14537
|
+
* @param {?} key
|
|
14538
|
+
* @return {?}
|
|
14539
|
+
*/
|
|
14540
|
+
ContentStripFacetFilterComponent.prototype.setHiddenForStrip = /**
|
|
14541
|
+
* @param {?} key
|
|
14542
|
+
* @return {?}
|
|
14543
|
+
*/
|
|
14544
|
+
function (key) {
|
|
14545
|
+
this.stripsResultDataMap[key].showStrip = false;
|
|
14546
|
+
sessionStorage.setItem("cstrip_" + key, '1');
|
|
14547
|
+
};
|
|
14548
|
+
// selected pills data
|
|
14549
|
+
// selected pills data
|
|
14550
|
+
/**
|
|
14551
|
+
* @param {?} tabdata
|
|
14552
|
+
* @param {?} tabIndex
|
|
14553
|
+
* @return {?}
|
|
14554
|
+
*/
|
|
14555
|
+
ContentStripFacetFilterComponent.prototype.getSelectedPillIndex =
|
|
14556
|
+
// selected pills data
|
|
14557
|
+
/**
|
|
14558
|
+
* @param {?} tabdata
|
|
14559
|
+
* @param {?} tabIndex
|
|
14560
|
+
* @return {?}
|
|
14561
|
+
*/
|
|
14562
|
+
function (tabdata, tabIndex) {
|
|
14563
|
+
if (tabdata.pillsData && tabdata.pillsData.length) {
|
|
14564
|
+
/** @type {?} */
|
|
14565
|
+
var index = tabdata.pillsData.findIndex((/**
|
|
14566
|
+
* @param {?} pill
|
|
14567
|
+
* @return {?}
|
|
14568
|
+
*/
|
|
14569
|
+
function (pill) {
|
|
14570
|
+
return pill.selected;
|
|
14571
|
+
}));
|
|
14572
|
+
return index;
|
|
14573
|
+
}
|
|
14574
|
+
return 0;
|
|
14575
|
+
};
|
|
14576
|
+
/**
|
|
14577
|
+
* @param {?} data
|
|
14578
|
+
* @return {?}
|
|
14579
|
+
*/
|
|
14580
|
+
ContentStripFacetFilterComponent.prototype.getdata = /**
|
|
14581
|
+
* @param {?} data
|
|
14582
|
+
* @return {?}
|
|
14583
|
+
*/
|
|
14584
|
+
function (data) {
|
|
14585
|
+
if (data.stripInfo) {
|
|
14586
|
+
return data.stripInfo.widget;
|
|
14587
|
+
}
|
|
14588
|
+
return {};
|
|
14589
|
+
};
|
|
14590
|
+
/**
|
|
14591
|
+
* @param {?} tabEvent
|
|
14592
|
+
* @param {?} pillIndex
|
|
14593
|
+
* @param {?} stripMap
|
|
14594
|
+
* @param {?} stripKey
|
|
14595
|
+
* @return {?}
|
|
14596
|
+
*/
|
|
14597
|
+
ContentStripFacetFilterComponent.prototype.tabClicked = /**
|
|
14598
|
+
* @param {?} tabEvent
|
|
14599
|
+
* @param {?} pillIndex
|
|
14600
|
+
* @param {?} stripMap
|
|
14601
|
+
* @param {?} stripKey
|
|
14602
|
+
* @return {?}
|
|
14603
|
+
*/
|
|
14604
|
+
function (tabEvent, pillIndex, stripMap, stripKey) {
|
|
14605
|
+
var _this = this;
|
|
14606
|
+
if (stripMap && stripMap.tabs && stripMap.tabs[tabEvent.index]) {
|
|
14607
|
+
stripMap.tabs[tabEvent.index].pillsData[pillIndex].fetchTabStatus = 'inprogress';
|
|
14608
|
+
stripMap.tabs[tabEvent.index].pillsData[pillIndex].tabLoading = true;
|
|
14609
|
+
stripMap.showOnLoader = true;
|
|
14610
|
+
}
|
|
14611
|
+
/** @type {?} */
|
|
14612
|
+
var data = {
|
|
14613
|
+
label: "" + tabEvent.tab.textLabel,
|
|
14614
|
+
index: tabEvent.index,
|
|
14615
|
+
};
|
|
14616
|
+
this.eventSvc.raiseInteractTelemetry({
|
|
14617
|
+
type: utilsV2.WsEvents.EnumInteractTypes.CLICK,
|
|
14618
|
+
subType: utilsV2.WsEvents.EnumInteractSubTypes.HOME_PAGE_STRIP_TABS,
|
|
14619
|
+
id: lodash.camelCase(data.label) + "-tab",
|
|
14620
|
+
}, {}, {
|
|
14621
|
+
module: utilsV2.WsEvents.EnumTelemetrymodules.HOME,
|
|
14622
|
+
});
|
|
14623
|
+
/** @type {?} */
|
|
14624
|
+
var currentTabFromMap = stripMap.tabs && stripMap.tabs[tabEvent.index];
|
|
14625
|
+
/** @type {?} */
|
|
14626
|
+
var currentPillFromMap = stripMap.tabs && stripMap.tabs[tabEvent.index].pillsData[pillIndex];
|
|
14627
|
+
/** @type {?} */
|
|
14628
|
+
var currentStrip = this.widgetData.strips.find((/**
|
|
14629
|
+
* @param {?} s
|
|
14630
|
+
* @return {?}
|
|
14631
|
+
*/
|
|
14632
|
+
function (s) { return s.key === stripKey; }));
|
|
14633
|
+
if (this.stripsResultDataMap[stripKey] && currentTabFromMap) {
|
|
14634
|
+
this.stripsResultDataMap[stripKey].viewMoreUrl.queryParams = __assign({}, this.stripsResultDataMap[stripKey].viewMoreUrl.queryParams, { tabSelected: currentTabFromMap.value, pillSelected: currentPillFromMap.value });
|
|
14635
|
+
}
|
|
14636
|
+
if (currentStrip && currentTabFromMap && !currentTabFromMap.computeDataOnClick && currentPillFromMap) {
|
|
14637
|
+
if (currentPillFromMap.requestRequired && currentPillFromMap.request) {
|
|
14638
|
+
if (currentPillFromMap.request.searchV6) {
|
|
14639
|
+
// this.getTabDataByNewReqSearchV6(currentStrip, tabEvent.index, currentTabFromMap, true);
|
|
14640
|
+
}
|
|
14641
|
+
stripMap.tabs[tabEvent.index].pillsData[pillIndex].tabLoading = false;
|
|
14642
|
+
}
|
|
14643
|
+
else {
|
|
14644
|
+
this.getTabDataByfilter(currentStrip, currentTabFromMap, true);
|
|
14645
|
+
if (stripMap && stripMap.tabs && stripMap.tabs[tabEvent.index]) {
|
|
14646
|
+
stripMap.tabs[tabEvent.index].pillsData[pillIndex].fetchTabStatus = 'inprogress';
|
|
14647
|
+
stripMap.tabs[tabEvent.index].pillsData[pillIndex].tabLoading = false;
|
|
14648
|
+
stripMap.showOnLoader = true;
|
|
14649
|
+
this.resetFilter(stripMap, tabEvent.index, pillIndex);
|
|
14650
|
+
}
|
|
14651
|
+
setTimeout((/**
|
|
14652
|
+
* @return {?}
|
|
14653
|
+
*/
|
|
14654
|
+
function () {
|
|
14655
|
+
if (stripMap && stripMap.tabs && stripMap.tabs[tabEvent.index]) {
|
|
14656
|
+
stripMap.tabs[tabEvent.index].pillsData[pillIndex].fetchTabStatus = 'done';
|
|
14657
|
+
stripMap.tabs[tabEvent.index].pillsData[pillIndex].tabLoading = false;
|
|
14658
|
+
stripMap.showOnLoader = false;
|
|
14659
|
+
_this.resetSelectedPill(stripMap.tabs[tabEvent.index].pillsData);
|
|
14660
|
+
stripMap.tabs[tabEvent.index].pillsData[pillIndex]['selected'] = true;
|
|
14661
|
+
}
|
|
14662
|
+
}), 200);
|
|
14663
|
+
}
|
|
14664
|
+
}
|
|
14665
|
+
};
|
|
14666
|
+
/**
|
|
14667
|
+
* @param {?} event
|
|
14668
|
+
* @param {?} stripMap
|
|
14669
|
+
* @param {?} stripKey
|
|
14670
|
+
* @param {?} pillIndex
|
|
14671
|
+
* @param {?} tabIndex
|
|
14672
|
+
* @return {?}
|
|
14673
|
+
*/
|
|
14674
|
+
ContentStripFacetFilterComponent.prototype.pillClicked = /**
|
|
14675
|
+
* @param {?} event
|
|
14676
|
+
* @param {?} stripMap
|
|
14677
|
+
* @param {?} stripKey
|
|
14678
|
+
* @param {?} pillIndex
|
|
14679
|
+
* @param {?} tabIndex
|
|
14680
|
+
* @return {?}
|
|
14681
|
+
*/
|
|
14682
|
+
function (event, stripMap, stripKey, pillIndex, tabIndex) {
|
|
14683
|
+
var _this = this;
|
|
14684
|
+
if (stripMap && stripMap.tabs && stripMap.tabs[tabIndex]) {
|
|
14685
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].fetchTabStatus = 'inprogress';
|
|
14686
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = true;
|
|
14687
|
+
stripMap.showOnLoader = true;
|
|
14688
|
+
}
|
|
14689
|
+
/** @type {?} */
|
|
14690
|
+
var currentTabFromMap = stripMap.tabs && stripMap.tabs[tabIndex];
|
|
14691
|
+
/** @type {?} */
|
|
14692
|
+
var currentPillFromMap = stripMap.tabs && stripMap.tabs[tabIndex].pillsData[pillIndex];
|
|
14693
|
+
/** @type {?} */
|
|
14694
|
+
var currentStrip = this.widgetData.strips.find((/**
|
|
14695
|
+
* @param {?} s
|
|
14696
|
+
* @return {?}
|
|
14697
|
+
*/
|
|
14698
|
+
function (s) { return s.key === stripKey; }));
|
|
14699
|
+
if (this.stripsResultDataMap[stripKey] && currentTabFromMap) {
|
|
14700
|
+
this.stripsResultDataMap[stripKey].viewMoreUrl.queryParams = __assign({}, this.stripsResultDataMap[stripKey].viewMoreUrl.queryParams, { tabSelected: currentTabFromMap.value, pillSelected: currentPillFromMap.value });
|
|
14701
|
+
}
|
|
14702
|
+
if (currentStrip && currentTabFromMap && !currentTabFromMap.computeDataOnClick && currentPillFromMap) {
|
|
14703
|
+
if (currentPillFromMap.requestRequired && currentPillFromMap.request) {
|
|
14704
|
+
// call API to get tab data and process
|
|
14705
|
+
// this.processStrip(currentStrip, [], 'fetching', true, null)
|
|
14706
|
+
if (currentPillFromMap.request.searchV6) {
|
|
14707
|
+
// this.getTabDataByNewReqSearchV6(currentStrip, tabIndex, pillIndex, currentPillFromMap, true);
|
|
14708
|
+
}
|
|
14709
|
+
else if (currentPillFromMap.request.trendingSearch) {
|
|
14710
|
+
// this.getTabDataByNewReqTrending(currentStrip, tabIndex, pillIndex, currentPillFromMap, true);
|
|
14711
|
+
}
|
|
14712
|
+
// if (stripMap && stripMap.tabs && stripMap.tabs[tabEvent.index]) {
|
|
14713
|
+
// stripMap.tabs[tabEvent.index].tabLoading = false;
|
|
14714
|
+
// }
|
|
14715
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = false;
|
|
14716
|
+
}
|
|
14717
|
+
else {
|
|
14718
|
+
this.getTabDataByfilter(currentStrip, currentTabFromMap, true);
|
|
14719
|
+
if (stripMap && stripMap.tabs && stripMap.tabs[tabIndex]) {
|
|
14720
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].fetchTabStatus = 'inprogress';
|
|
14721
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = false;
|
|
14722
|
+
stripMap.showOnLoader = true;
|
|
14723
|
+
this.resetFilter(stripMap, tabIndex, pillIndex);
|
|
14724
|
+
}
|
|
14725
|
+
setTimeout((/**
|
|
14726
|
+
* @return {?}
|
|
14727
|
+
*/
|
|
14728
|
+
function () {
|
|
14729
|
+
if (stripMap && stripMap.tabs && stripMap.tabs[tabIndex]) {
|
|
14730
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].fetchTabStatus = 'done';
|
|
14731
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = false;
|
|
14732
|
+
stripMap.showOnLoader = false;
|
|
14733
|
+
_this.resetSelectedPill(stripMap.tabs[tabIndex].pillsData);
|
|
14734
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex]['selected'] = true;
|
|
14735
|
+
}
|
|
14736
|
+
}), 200);
|
|
14737
|
+
}
|
|
14738
|
+
}
|
|
14739
|
+
};
|
|
14740
|
+
/**
|
|
14741
|
+
* @param {?} pillData
|
|
14742
|
+
* @return {?}
|
|
14743
|
+
*/
|
|
14744
|
+
ContentStripFacetFilterComponent.prototype.resetSelectedPill = /**
|
|
14745
|
+
* @param {?} pillData
|
|
14746
|
+
* @return {?}
|
|
14747
|
+
*/
|
|
14748
|
+
function (pillData) {
|
|
14749
|
+
if (pillData && pillData.length) {
|
|
14750
|
+
pillData.forEach((/**
|
|
14751
|
+
* @param {?} pill
|
|
14752
|
+
* @return {?}
|
|
14753
|
+
*/
|
|
14754
|
+
function (pill) {
|
|
14755
|
+
pill['selected'] = false;
|
|
14756
|
+
}));
|
|
14757
|
+
}
|
|
14758
|
+
};
|
|
14759
|
+
/**
|
|
14760
|
+
* @param {?} strip
|
|
14761
|
+
* @param {?} currentTab
|
|
14762
|
+
* @param {?} calculateParentStatus
|
|
14763
|
+
* @return {?}
|
|
14764
|
+
*/
|
|
14765
|
+
ContentStripFacetFilterComponent.prototype.getTabDataByfilter = /**
|
|
14766
|
+
* @param {?} strip
|
|
14767
|
+
* @param {?} currentTab
|
|
14768
|
+
* @param {?} calculateParentStatus
|
|
14769
|
+
* @return {?}
|
|
14770
|
+
*/
|
|
14771
|
+
function (strip, currentTab, calculateParentStatus) {
|
|
14772
|
+
// tslint:disable:no-console
|
|
14773
|
+
console.log('strip -- ', strip);
|
|
14774
|
+
// tslint:disable:no-console
|
|
14775
|
+
console.log('currentTab -- ', currentTab);
|
|
14776
|
+
// tslint:disable:no-console
|
|
14777
|
+
console.log('calculateParentStatus-- ', calculateParentStatus);
|
|
14778
|
+
// TODO: Write logic for individual filter if passed in config
|
|
14779
|
+
// add switch case based on config key passed
|
|
14780
|
+
};
|
|
14781
|
+
/**
|
|
14782
|
+
* @private
|
|
14783
|
+
* @param {?} key
|
|
14784
|
+
* @return {?}
|
|
14785
|
+
*/
|
|
14786
|
+
ContentStripFacetFilterComponent.prototype.getIfStripHidden = /**
|
|
14787
|
+
* @private
|
|
14788
|
+
* @param {?} key
|
|
14789
|
+
* @return {?}
|
|
14790
|
+
*/
|
|
14791
|
+
function (key) {
|
|
14792
|
+
/** @type {?} */
|
|
14793
|
+
var storageItem = sessionStorage.getItem("cstrip_" + key);
|
|
14794
|
+
return Boolean(storageItem !== '1');
|
|
14795
|
+
};
|
|
14796
|
+
// translate labes
|
|
14797
|
+
// translate labes
|
|
14798
|
+
/**
|
|
14799
|
+
* @param {?} label
|
|
14800
|
+
* @param {?} type
|
|
14801
|
+
* @return {?}
|
|
14802
|
+
*/
|
|
14803
|
+
ContentStripFacetFilterComponent.prototype.translateLabels =
|
|
14804
|
+
// translate labes
|
|
14805
|
+
/**
|
|
14806
|
+
* @param {?} label
|
|
14807
|
+
* @param {?} type
|
|
14808
|
+
* @return {?}
|
|
14809
|
+
*/
|
|
14810
|
+
function (label, type) {
|
|
14811
|
+
return this.langtranslations.translateLabel(label, type, '');
|
|
14812
|
+
};
|
|
14813
|
+
/**
|
|
14814
|
+
* @param {?} stripData
|
|
14815
|
+
* @param {?} path
|
|
14816
|
+
* @param {?} queryParamsData
|
|
14817
|
+
* @return {?}
|
|
14818
|
+
*/
|
|
14819
|
+
ContentStripFacetFilterComponent.prototype.redirectViewAll = /**
|
|
14820
|
+
* @param {?} stripData
|
|
14821
|
+
* @param {?} path
|
|
14822
|
+
* @param {?} queryParamsData
|
|
14823
|
+
* @return {?}
|
|
14824
|
+
*/
|
|
14825
|
+
function (stripData, path, queryParamsData) {
|
|
14826
|
+
if (this.emitViewAll) {
|
|
14827
|
+
this.viewAllResponse.emit(stripData);
|
|
14828
|
+
}
|
|
14829
|
+
else {
|
|
14830
|
+
this.router.navigate([path], { queryParams: queryParamsData });
|
|
14831
|
+
}
|
|
14832
|
+
};
|
|
14833
|
+
/**
|
|
14834
|
+
* @param {?} index
|
|
14835
|
+
* @param {?} item
|
|
14836
|
+
* @return {?}
|
|
14837
|
+
*/
|
|
14838
|
+
ContentStripFacetFilterComponent.prototype.identify = /**
|
|
14839
|
+
* @param {?} index
|
|
14840
|
+
* @param {?} item
|
|
14841
|
+
* @return {?}
|
|
14842
|
+
*/
|
|
14843
|
+
function (index, item) {
|
|
14844
|
+
if (index >= 0) { }
|
|
14845
|
+
return item;
|
|
14846
|
+
};
|
|
14847
|
+
/**
|
|
14848
|
+
* @param {?} index
|
|
14849
|
+
* @param {?} item
|
|
14850
|
+
* @return {?}
|
|
14851
|
+
*/
|
|
14852
|
+
ContentStripFacetFilterComponent.prototype.tracker = /**
|
|
14853
|
+
* @param {?} index
|
|
14854
|
+
* @param {?} item
|
|
14855
|
+
* @return {?}
|
|
14856
|
+
*/
|
|
14857
|
+
function (index, item) {
|
|
14858
|
+
if (index >= 0) { }
|
|
14859
|
+
return lodash.get(item, 'widgetData.content.identifier');
|
|
14860
|
+
};
|
|
14861
|
+
/**
|
|
14862
|
+
* @param {?} data
|
|
14863
|
+
* @return {?}
|
|
14864
|
+
*/
|
|
14865
|
+
ContentStripFacetFilterComponent.prototype.getContineuLearningLenth = /**
|
|
14866
|
+
* @param {?} data
|
|
14867
|
+
* @return {?}
|
|
14868
|
+
*/
|
|
14869
|
+
function (data) {
|
|
14870
|
+
return data.widgets ? data.widgets.length : 0;
|
|
14871
|
+
};
|
|
14872
|
+
/**
|
|
14873
|
+
* @param {?} key
|
|
14874
|
+
* @return {?}
|
|
14875
|
+
*/
|
|
14876
|
+
ContentStripFacetFilterComponent.prototype.showAccordion = /**
|
|
14877
|
+
* @param {?} key
|
|
14878
|
+
* @return {?}
|
|
14879
|
+
*/
|
|
14880
|
+
function (key) {
|
|
14881
|
+
if (this.utilitySvc.isMobile && this.stripsResultDataMap[key].mode === 'accordion') {
|
|
14882
|
+
return this.showAccordionData;
|
|
14883
|
+
}
|
|
14884
|
+
return true;
|
|
14885
|
+
};
|
|
14886
|
+
/**
|
|
14887
|
+
* @param {?} wData
|
|
14888
|
+
* @param {?} data
|
|
14889
|
+
* @return {?}
|
|
14890
|
+
*/
|
|
14891
|
+
ContentStripFacetFilterComponent.prototype.checkCondition = /**
|
|
14892
|
+
* @param {?} wData
|
|
14893
|
+
* @param {?} data
|
|
14894
|
+
* @return {?}
|
|
14895
|
+
*/
|
|
14896
|
+
function (wData, data) {
|
|
14897
|
+
if (wData.strips[0].stripConfig && wData.strips[0].stripConfig.hideShowAll) {
|
|
14898
|
+
return !wData.strips[0].stripConfig.hideShowAll;
|
|
14899
|
+
}
|
|
14900
|
+
return wData.strips[0].viewMoreUrl && data.widgets && data.widgets.length >= 4;
|
|
14901
|
+
};
|
|
14902
|
+
/**
|
|
14903
|
+
* @param {?} data
|
|
14904
|
+
* @return {?}
|
|
14905
|
+
*/
|
|
14906
|
+
ContentStripFacetFilterComponent.prototype.checkVisible = /**
|
|
14907
|
+
* @param {?} data
|
|
14908
|
+
* @return {?}
|
|
14909
|
+
*/
|
|
14910
|
+
function (data) {
|
|
14911
|
+
return data.stripInfo && data.stripInfo.visibilityMode === 'visible';
|
|
14912
|
+
};
|
|
14913
|
+
/**
|
|
14914
|
+
* @param {?} stripsResultDataMap
|
|
14915
|
+
* @param {?} key
|
|
14916
|
+
* @return {?}
|
|
14917
|
+
*/
|
|
14918
|
+
ContentStripFacetFilterComponent.prototype.getSelectedIndex = /**
|
|
14919
|
+
* @param {?} stripsResultDataMap
|
|
14920
|
+
* @param {?} key
|
|
14921
|
+
* @return {?}
|
|
14922
|
+
*/
|
|
14923
|
+
function (stripsResultDataMap, key) {
|
|
14924
|
+
/** @type {?} */
|
|
14925
|
+
var returnValue = 0;
|
|
14926
|
+
return returnValue;
|
|
14927
|
+
};
|
|
14928
|
+
/**
|
|
14929
|
+
* @param {?} data
|
|
14930
|
+
* @return {?}
|
|
14931
|
+
*/
|
|
14932
|
+
ContentStripFacetFilterComponent.prototype.getLength = /**
|
|
14933
|
+
* @param {?} data
|
|
14934
|
+
* @return {?}
|
|
14935
|
+
*/
|
|
14936
|
+
function (data) {
|
|
14937
|
+
if (!data.tabs || !data.tabs.length) {
|
|
14938
|
+
return data.widgets ? data.widgets.length : 0;
|
|
14939
|
+
}
|
|
14940
|
+
{
|
|
14941
|
+
// if tabs are there check if each tab has widgets and get the tab with max widgets
|
|
14942
|
+
/** @type {?} */
|
|
14943
|
+
var tabWithMaxWidgets_1 = {};
|
|
14944
|
+
data.tabs.forEach((/**
|
|
14945
|
+
* @param {?} tab
|
|
14946
|
+
* @return {?}
|
|
14947
|
+
*/
|
|
14948
|
+
function (tab) {
|
|
14949
|
+
if (tab.pillsData && tab.pillsData.length) {
|
|
14950
|
+
tabWithMaxWidgets_1 = tab.pillsData.reduce((/**
|
|
14951
|
+
* @param {?} prev
|
|
14952
|
+
* @param {?} current
|
|
14953
|
+
* @return {?}
|
|
14954
|
+
*/
|
|
14955
|
+
function (prev, current) {
|
|
14956
|
+
if (!prev.widgets && !current.widgets) {
|
|
14957
|
+
return current;
|
|
14958
|
+
}
|
|
14959
|
+
if (prev.widgets && current.widgets) {
|
|
14960
|
+
return (prev.widgets.length > current.widgets.length) ? prev : current;
|
|
14961
|
+
}
|
|
14962
|
+
if (current.widgets && !prev.widgets) {
|
|
14963
|
+
return current;
|
|
14964
|
+
}
|
|
14965
|
+
if (!current.widgets && prev.widgets) {
|
|
14966
|
+
return prev;
|
|
14967
|
+
}
|
|
14968
|
+
return current;
|
|
14969
|
+
// return (prev.widgets && current.widgets && (prev.widgets.length > current.widgets.length) ) ? prev : current
|
|
14970
|
+
// tslint:disable-next-line: align
|
|
14971
|
+
}), data.tabs[0]);
|
|
14972
|
+
}
|
|
14973
|
+
}));
|
|
14974
|
+
// if tabs has atleast 1 widgets then strip will show or else not
|
|
14975
|
+
return tabWithMaxWidgets_1.widgets ? tabWithMaxWidgets_1.widgets.length : 0;
|
|
14976
|
+
}
|
|
14977
|
+
};
|
|
14978
|
+
/**
|
|
14979
|
+
* @param {?} data
|
|
14980
|
+
* @return {?}
|
|
14981
|
+
*/
|
|
14982
|
+
ContentStripFacetFilterComponent.prototype.isStripShowing = /**
|
|
14983
|
+
* @param {?} data
|
|
14984
|
+
* @return {?}
|
|
14985
|
+
*/
|
|
14986
|
+
function (data) {
|
|
14987
|
+
var _this = this;
|
|
14988
|
+
/** @type {?} */
|
|
14989
|
+
var count = 0;
|
|
14990
|
+
if (data && data.key === this.environment.programStripKey && (!data.tabs || !data.tabs.length) &&
|
|
14991
|
+
data.stripTitle === this.environment.programStripName && data.widgets.length > 0) {
|
|
14992
|
+
data.widgets.forEach((/**
|
|
14993
|
+
* @param {?} key
|
|
14994
|
+
* @return {?}
|
|
14995
|
+
*/
|
|
14996
|
+
function (key) {
|
|
14997
|
+
if (key && key.widgetData.content.primaryCategory === _this.environment.programStripPrimaryCategory) {
|
|
14998
|
+
count = count + 1;
|
|
14999
|
+
}
|
|
15000
|
+
}));
|
|
15001
|
+
if (count > 0) {
|
|
15002
|
+
data.showStrip = true;
|
|
15003
|
+
}
|
|
15004
|
+
else {
|
|
15005
|
+
data.showStrip = false;
|
|
15006
|
+
}
|
|
15007
|
+
}
|
|
15008
|
+
// console.log('data.key', data, data.key, data.widgets);
|
|
15009
|
+
return data.showStrip;
|
|
15010
|
+
};
|
|
15011
|
+
Object.defineProperty(ContentStripFacetFilterComponent.prototype, "isMobile", {
|
|
15012
|
+
get: /**
|
|
15013
|
+
* @return {?}
|
|
15014
|
+
*/
|
|
15015
|
+
function () {
|
|
15016
|
+
return this.utilitySvc.isMobile || false;
|
|
15017
|
+
},
|
|
15018
|
+
enumerable: true,
|
|
15019
|
+
configurable: true
|
|
15020
|
+
});
|
|
15021
|
+
// search api with facets
|
|
15022
|
+
// search api with facets
|
|
15023
|
+
/**
|
|
15024
|
+
* @param {?} strip
|
|
15025
|
+
* @param {?} request
|
|
15026
|
+
* @param {?} apiUrl
|
|
15027
|
+
* @param {?} calculateParentStatus
|
|
15028
|
+
* @return {?}
|
|
15029
|
+
*/
|
|
15030
|
+
ContentStripFacetFilterComponent.prototype.postRequestMethod =
|
|
15031
|
+
// search api with facets
|
|
15032
|
+
/**
|
|
15033
|
+
* @param {?} strip
|
|
15034
|
+
* @param {?} request
|
|
15035
|
+
* @param {?} apiUrl
|
|
15036
|
+
* @param {?} calculateParentStatus
|
|
15037
|
+
* @return {?}
|
|
15038
|
+
*/
|
|
15039
|
+
function (strip, request, apiUrl, calculateParentStatus) {
|
|
15040
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15041
|
+
var _this = this;
|
|
15042
|
+
return __generator(this, function (_a) {
|
|
15043
|
+
return [2 /*return*/, new Promise((/**
|
|
15044
|
+
* @param {?} resolve
|
|
15045
|
+
* @param {?} reject
|
|
15046
|
+
* @return {?}
|
|
15047
|
+
*/
|
|
15048
|
+
function (resolve, reject) {
|
|
15049
|
+
if (request && request) {
|
|
15050
|
+
_this.contentSvc.postApiMethod(apiUrl, request).subscribe((/**
|
|
15051
|
+
* @param {?} results
|
|
15052
|
+
* @return {?}
|
|
15053
|
+
*/
|
|
15054
|
+
function (results) {
|
|
15055
|
+
if (results.result && results.result.content) {
|
|
15056
|
+
/** @type {?} */
|
|
15057
|
+
var showViewMore = Boolean(results.result.content && results.result.content.length > 5 && strip.stripConfig && strip.stripConfig.postCardForSearch);
|
|
15058
|
+
/** @type {?} */
|
|
15059
|
+
var viewMoreUrl = showViewMore
|
|
15060
|
+
? {
|
|
15061
|
+
path: strip.viewMoreUrl && strip.viewMoreUrl.path || '',
|
|
15062
|
+
queryParams: {
|
|
15063
|
+
tab: 'Learn',
|
|
15064
|
+
q: strip.viewMoreUrl && strip.viewMoreUrl.queryParams,
|
|
15065
|
+
f: {},
|
|
15066
|
+
},
|
|
15067
|
+
}
|
|
15068
|
+
: null;
|
|
15069
|
+
resolve({ results: results, viewMoreUrl: viewMoreUrl });
|
|
15070
|
+
}
|
|
15071
|
+
}), (/**
|
|
15072
|
+
* @param {?} error
|
|
15073
|
+
* @return {?}
|
|
15074
|
+
*/
|
|
15075
|
+
function (error) {
|
|
15076
|
+
_this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
15077
|
+
reject(error);
|
|
15078
|
+
}));
|
|
15079
|
+
}
|
|
15080
|
+
}))];
|
|
15081
|
+
});
|
|
15082
|
+
});
|
|
15083
|
+
};
|
|
15084
|
+
/**
|
|
15085
|
+
* @param {?} strip
|
|
15086
|
+
* @param {?=} calculateParentStatus
|
|
15087
|
+
* @return {?}
|
|
15088
|
+
*/
|
|
15089
|
+
ContentStripFacetFilterComponent.prototype.fetchFromSearch = /**
|
|
15090
|
+
* @param {?} strip
|
|
15091
|
+
* @param {?=} calculateParentStatus
|
|
15092
|
+
* @return {?}
|
|
15093
|
+
*/
|
|
15094
|
+
function (strip, calculateParentStatus) {
|
|
15095
|
+
if (calculateParentStatus === void 0) { calculateParentStatus = true; }
|
|
15096
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15097
|
+
var response, tabIndex, pillIndex, widgets, tabResults, error_1;
|
|
15098
|
+
return __generator(this, function (_a) {
|
|
15099
|
+
switch (_a.label) {
|
|
15100
|
+
case 0:
|
|
15101
|
+
if (!(strip.request && Object.keys(strip.request.requestBody).length)) return [3 /*break*/, 4];
|
|
15102
|
+
_a.label = 1;
|
|
15103
|
+
case 1:
|
|
15104
|
+
_a.trys.push([1, 3, , 4]);
|
|
15105
|
+
return [4 /*yield*/, this.postRequestMethod(strip, strip.request.requestBody, strip.request.apiUrl, calculateParentStatus)];
|
|
15106
|
+
case 2:
|
|
15107
|
+
response = _a.sent();
|
|
15108
|
+
tabIndex = 0;
|
|
15109
|
+
pillIndex = 0;
|
|
15110
|
+
if (response.results && response.results.result) {
|
|
15111
|
+
this.mapAllDataWithFacets(strip, response.results.result.content, response.results.result.facets, calculateParentStatus);
|
|
15112
|
+
widgets = this.transformContentsToWidgets(response.results.result.content, strip);
|
|
15113
|
+
tabResults = [];
|
|
15114
|
+
// if (this.stripsResultDataMap[strip.key] && this.stripsResultDataMap[strip.key].tabs) {
|
|
15115
|
+
// const allTabs = this.stripsResultDataMap[strip.key].tabs;
|
|
15116
|
+
// const allPills = this.stripsResultDataMap[strip.key].tabs[tabIndex].pillsData;
|
|
15117
|
+
// this.resetSelectedPill(allPills)
|
|
15118
|
+
// if (allTabs && allTabs.length && allTabs[tabIndex]) {
|
|
15119
|
+
// if(allPills && allPills.length && allPills[pillIndex]){
|
|
15120
|
+
// allPills[pillIndex] = {
|
|
15121
|
+
// ...allPills[pillIndex],
|
|
15122
|
+
// widgets,
|
|
15123
|
+
// fetchTabStatus: 'done',
|
|
15124
|
+
// selected: true
|
|
15125
|
+
// };
|
|
15126
|
+
// }
|
|
15127
|
+
// allTabs[tabIndex] = {
|
|
15128
|
+
// ...allTabs[tabIndex],
|
|
15129
|
+
// widgets,
|
|
15130
|
+
// fetchTabStatus: 'done',
|
|
15131
|
+
// };
|
|
15132
|
+
// tabResults = allTabs;
|
|
15133
|
+
// }
|
|
15134
|
+
// }
|
|
15135
|
+
// this.processStrip(
|
|
15136
|
+
// strip,
|
|
15137
|
+
// widgets,
|
|
15138
|
+
// 'done',
|
|
15139
|
+
// calculateParentStatus,
|
|
15140
|
+
// response.viewMoreUrl,
|
|
15141
|
+
// tabResults // tabResults as widgets
|
|
15142
|
+
// );
|
|
15143
|
+
}
|
|
15144
|
+
return [3 /*break*/, 4];
|
|
15145
|
+
case 3:
|
|
15146
|
+
error_1 = _a.sent();
|
|
15147
|
+
return [3 /*break*/, 4];
|
|
15148
|
+
case 4: return [2 /*return*/];
|
|
15149
|
+
}
|
|
15150
|
+
});
|
|
15151
|
+
});
|
|
15152
|
+
};
|
|
15153
|
+
/**
|
|
15154
|
+
* @param {?} strip
|
|
15155
|
+
* @param {?} content
|
|
15156
|
+
* @param {?} facets
|
|
15157
|
+
* @param {?} calculateParentStatus
|
|
15158
|
+
* @return {?}
|
|
15159
|
+
*/
|
|
15160
|
+
ContentStripFacetFilterComponent.prototype.mapAllDataWithFacets = /**
|
|
15161
|
+
* @param {?} strip
|
|
15162
|
+
* @param {?} content
|
|
15163
|
+
* @param {?} facets
|
|
15164
|
+
* @param {?} calculateParentStatus
|
|
15165
|
+
* @return {?}
|
|
15166
|
+
*/
|
|
15167
|
+
function (strip, content, facets, calculateParentStatus) {
|
|
15168
|
+
var _this = this;
|
|
15169
|
+
console.log(strip, content);
|
|
15170
|
+
/** @type {?} */
|
|
15171
|
+
var allTabs = this.stripsResultDataMap[strip.key].tabs;
|
|
15172
|
+
/** @type {?} */
|
|
15173
|
+
var facet = [];
|
|
15174
|
+
allTabs.forEach((/**
|
|
15175
|
+
* @param {?} ele
|
|
15176
|
+
* @return {?}
|
|
15177
|
+
*/
|
|
15178
|
+
function (ele) {
|
|
15179
|
+
ele['fetchTabStatus'] = 'done';
|
|
15180
|
+
/** @type {?} */
|
|
15181
|
+
var filteredData = content.filter((/**
|
|
15182
|
+
* @param {?} contEle
|
|
15183
|
+
* @return {?}
|
|
15184
|
+
*/
|
|
15185
|
+
function (contEle) { return contEle.nlwUserExp.includes(ele.value); }))
|
|
15186
|
+
// filteredData.forEach(element => {
|
|
15187
|
+
// facet = [...facet,..._.difference(element.nlwOrgs ,facet)];
|
|
15188
|
+
// });
|
|
15189
|
+
;
|
|
15190
|
+
// filteredData.forEach(element => {
|
|
15191
|
+
// facet = [...facet,..._.difference(element.nlwOrgs ,facet)];
|
|
15192
|
+
// });
|
|
15193
|
+
ele['widgets'] = filteredData;
|
|
15194
|
+
ele.pillsData.forEach((/**
|
|
15195
|
+
* @param {?} pill
|
|
15196
|
+
* @return {?}
|
|
15197
|
+
*/
|
|
15198
|
+
function (pill) {
|
|
15199
|
+
if (pill.value === 'all') {
|
|
15200
|
+
pill['widgets'] = _this.transformContentsToWidgets(filteredData, strip);
|
|
15201
|
+
pill['fetchTabStatus'] = 'done';
|
|
15202
|
+
}
|
|
15203
|
+
else if (pill.value === 'course') {
|
|
15204
|
+
/** @type {?} */
|
|
15205
|
+
var contentFilteredData = filteredData.filter((/**
|
|
15206
|
+
* @param {?} contEle
|
|
15207
|
+
* @return {?}
|
|
15208
|
+
*/
|
|
15209
|
+
function (contEle) { return contEle.courseCategory.toLowerCase() === pill.value; }));
|
|
15210
|
+
pill['widgets'] = _this.transformContentsToWidgets(contentFilteredData, strip);
|
|
15211
|
+
pill['fetchTabStatus'] = 'done';
|
|
15212
|
+
}
|
|
15213
|
+
else {
|
|
15214
|
+
/** @type {?} */
|
|
15215
|
+
var contentFilteredData = filteredData.filter((/**
|
|
15216
|
+
* @param {?} contEle
|
|
15217
|
+
* @return {?}
|
|
15218
|
+
*/
|
|
15219
|
+
function (contEle) { return contEle.courseCategory.toLowerCase() !== 'course'; }));
|
|
15220
|
+
pill['widgets'] = _this.transformContentsToWidgets(contentFilteredData, strip);
|
|
15221
|
+
pill['fetchTabStatus'] = 'done';
|
|
15222
|
+
}
|
|
15223
|
+
}));
|
|
15224
|
+
// ele['facets'] = [{
|
|
15225
|
+
// name:'nlwOrgs',
|
|
15226
|
+
// values: facet
|
|
15227
|
+
// }]
|
|
15228
|
+
ele['facets'] = facets;
|
|
15229
|
+
}));
|
|
15230
|
+
strip.tabs[0].pillsData[0].fetchTabStatus = 'done';
|
|
15231
|
+
strip.tabs[0].pillsData[0].tabLoading = false;
|
|
15232
|
+
strip.showOnLoader = false;
|
|
15233
|
+
this.resetSelectedPill(strip.tabs[0].pillsData);
|
|
15234
|
+
strip.tabs[0].pillsData[0]['selected'] = true;
|
|
15235
|
+
this.processStrip(strip, [], 'done', calculateParentStatus, strip.viewMoreUrl, allTabs // tabResults as widgets
|
|
15236
|
+
);
|
|
15237
|
+
};
|
|
15238
|
+
/**
|
|
15239
|
+
* @private
|
|
15240
|
+
* @param {?} contents
|
|
15241
|
+
* @param {?} strip
|
|
15242
|
+
* @return {?}
|
|
15243
|
+
*/
|
|
15244
|
+
ContentStripFacetFilterComponent.prototype.transformContentsToWidgets = /**
|
|
15245
|
+
* @private
|
|
15246
|
+
* @param {?} contents
|
|
15247
|
+
* @param {?} strip
|
|
15248
|
+
* @return {?}
|
|
15249
|
+
*/
|
|
15250
|
+
function (contents, strip) {
|
|
15251
|
+
return (contents || []).map((/**
|
|
15252
|
+
* @param {?} content
|
|
15253
|
+
* @param {?} idx
|
|
15254
|
+
* @return {?}
|
|
15255
|
+
*/
|
|
15256
|
+
function (content, idx) { return (content ? {
|
|
15257
|
+
widgetType: 'cardLib',
|
|
15258
|
+
widgetSubType: 'cardContentLib',
|
|
15259
|
+
widgetHostClass: 'mb-2',
|
|
15260
|
+
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 }),
|
|
15261
|
+
} : {
|
|
15262
|
+
widgetType: 'card',
|
|
15263
|
+
widgetSubType: 'cardContent',
|
|
15264
|
+
widgetHostClass: 'mb-2',
|
|
15265
|
+
widgetData: {},
|
|
15266
|
+
}); }));
|
|
15267
|
+
};
|
|
15268
|
+
/**
|
|
15269
|
+
* @param {?} eventData
|
|
15270
|
+
* @param {?} stripMap
|
|
15271
|
+
* @param {?} tabIndex
|
|
15272
|
+
* @return {?}
|
|
15273
|
+
*/
|
|
15274
|
+
ContentStripFacetFilterComponent.prototype.getorgData = /**
|
|
15275
|
+
* @param {?} eventData
|
|
15276
|
+
* @param {?} stripMap
|
|
15277
|
+
* @param {?} tabIndex
|
|
15278
|
+
* @return {?}
|
|
15279
|
+
*/
|
|
15280
|
+
function (eventData, stripMap, tabIndex) {
|
|
15281
|
+
var _this = this;
|
|
15282
|
+
console.log(eventData);
|
|
15283
|
+
/** @type {?} */
|
|
15284
|
+
var selectedValue = eventData.target.value;
|
|
15285
|
+
/** @type {?} */
|
|
15286
|
+
var pillIndex = this.getSelectedPillIndex(stripMap.tabs[tabIndex], tabIndex);
|
|
15287
|
+
if (stripMap && stripMap.tabs && stripMap.tabs[tabIndex]) {
|
|
15288
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].fetchTabStatus = 'inprogress';
|
|
15289
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = false;
|
|
15290
|
+
stripMap.showOnLoader = true;
|
|
15291
|
+
/** @type {?} */
|
|
15292
|
+
var returnedValues = stripMap.tabs[tabIndex].widgets.filter((/**
|
|
15293
|
+
* @param {?} ele
|
|
15294
|
+
* @return {?}
|
|
15295
|
+
*/
|
|
15296
|
+
function (ele) {
|
|
15297
|
+
/** @type {?} */
|
|
15298
|
+
var words = ele.nlwOrgs.map((/**
|
|
15299
|
+
* @param {?} v
|
|
15300
|
+
* @return {?}
|
|
15301
|
+
*/
|
|
15302
|
+
function (v) { return v.toLowerCase(); }));
|
|
15303
|
+
return words.includes(selectedValue);
|
|
15304
|
+
}));
|
|
15305
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex]['widgets'] = this.transformContentsToWidgets(returnedValues, stripMap);
|
|
15306
|
+
}
|
|
15307
|
+
setTimeout((/**
|
|
15308
|
+
* @return {?}
|
|
15309
|
+
*/
|
|
15310
|
+
function () {
|
|
15311
|
+
if (stripMap && stripMap.tabs && stripMap.tabs[tabIndex]) {
|
|
15312
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].fetchTabStatus = 'done';
|
|
15313
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = false;
|
|
15314
|
+
stripMap.showOnLoader = false;
|
|
15315
|
+
_this.resetSelectedPill(stripMap.tabs[tabIndex].pillsData);
|
|
15316
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex]['selected'] = true;
|
|
15317
|
+
}
|
|
15318
|
+
}), 200);
|
|
15319
|
+
};
|
|
15320
|
+
/**
|
|
15321
|
+
* @param {?} stripMap
|
|
15322
|
+
* @param {?} tabIndex
|
|
15323
|
+
* @param {?} pillIndex
|
|
15324
|
+
* @return {?}
|
|
15325
|
+
*/
|
|
15326
|
+
ContentStripFacetFilterComponent.prototype.resetFilter = /**
|
|
15327
|
+
* @param {?} stripMap
|
|
15328
|
+
* @param {?} tabIndex
|
|
15329
|
+
* @param {?} pillIndex
|
|
15330
|
+
* @return {?}
|
|
15331
|
+
*/
|
|
15332
|
+
function (stripMap, tabIndex, pillIndex) {
|
|
15333
|
+
var _this = this;
|
|
15334
|
+
// let selectedValue = eventData.target.value
|
|
15335
|
+
if (pillIndex) {
|
|
15336
|
+
pillIndex = this.getSelectedPillIndex(stripMap.tabs[tabIndex], tabIndex);
|
|
15337
|
+
}
|
|
15338
|
+
this.facetForm.reset({
|
|
15339
|
+
org: 0
|
|
15340
|
+
});
|
|
15341
|
+
if (stripMap && stripMap.tabs && stripMap.tabs[tabIndex]) {
|
|
15342
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].fetchTabStatus = 'inprogress';
|
|
15343
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = false;
|
|
15344
|
+
stripMap.showOnLoader = true;
|
|
15345
|
+
// let returnedValues = stripMap.tabs[tabIndex].widgets.filter((ele: any) => {
|
|
15346
|
+
// var words = ele.nlwOrgs.map(v => v.toLowerCase());
|
|
15347
|
+
// return words.includes(selectedValue)
|
|
15348
|
+
// })
|
|
15349
|
+
/** @type {?} */
|
|
15350
|
+
var contentData = stripMap.tabs[tabIndex].widgets || [];
|
|
15351
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex]['widgets'] = this.transformContentsToWidgets(contentData, stripMap);
|
|
15352
|
+
}
|
|
15353
|
+
setTimeout((/**
|
|
15354
|
+
* @return {?}
|
|
15355
|
+
*/
|
|
15356
|
+
function () {
|
|
15357
|
+
if (stripMap && stripMap.tabs && stripMap.tabs[tabIndex]) {
|
|
15358
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].fetchTabStatus = 'done';
|
|
15359
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = false;
|
|
15360
|
+
stripMap.showOnLoader = false;
|
|
15361
|
+
_this.resetSelectedPill(stripMap.tabs[tabIndex].pillsData);
|
|
15362
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex]['selected'] = true;
|
|
15363
|
+
}
|
|
15364
|
+
}), 200);
|
|
15365
|
+
};
|
|
15366
|
+
ContentStripFacetFilterComponent.decorators = [
|
|
15367
|
+
{ type: core.Component, args: [{
|
|
15368
|
+
selector: 'sb-uic-content-strip-facet-filter',
|
|
15369
|
+
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 <form [formGroup]=\"facetForm\">\n <div class=\"facets-select\">\n <select formControlName=\"org\" (change)=\"getorgData($event, stripsResultDataMap[key], tabIndex)\">\n <option value=\"0\" selected disabled>Choose by organisation</option>\n <option value=\"{{d.name}}\" *ngFor=\"let d of facet.values\" >{{d.name}}</option>\n </select>\n </div>\n </form>\n </ng-container>\n </div>\n <div>\n <ng-container >\n <mat-chip-list class=\"content-pill-data\" aria-label=\"Fish selection\">\n <ng-container *ngFor=\"let pill of tab?.pillsData;let p = index\">\n <mat-chip [selected]=\"pill?.selected\" (click)=\"pillClicked($event, stripsResultDataMap[key], key, p, tabIndex)\">\n <span class=\"pill-name\">{{pill?.label}}</span></mat-chip>\n </ng-container>\n </mat-chip-list>\n </ng-container>\n </div>\n <!-- viewAll start-->\n <div *ngIf=\"!stripsResultDataMap[key]?.hideViewMoreUrl && checkCondition(widgetData , stripsResultDataMap[key])\" class=\" hidden md:block\">\n <div class=\"ml-4 pl-2 view-more ws-mat-default-text\">\n <a class=\"flex ws-mat-default-text items-center justify-center mat-body-1 cursor-pointer\" \n (click)=\"raiseTelemetry(stripsResultDataMap[key]);redirectViewAll(stripsResultDataMap[key], stripsResultDataMap[key]?.viewMoreUrl?.path, stripsResultDataMap[key]?.viewMoreUrl?.queryParams )\">\n <span i18n class=\"ws-mat-default-text\">{{translateLabels(widgetData.strips[0].viewMoreUrl.viewMoreText,'home') || 'See all'}}</span>\n <mat-icon class=\"ws-mat-default-text mat-icon notranslate material-icons mat-icon-no-color\" color=\"accent\">navigate_next</mat-icon>\n </a>\n </div>\n </div>\n \n <!-- viewAll end-->\n </div>\n <div *ngIf=\"stripsResultDataMap && stripsResultDataMap[key]?.showOnLoader ||\n !tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.fetchTabStatus\"\n class=\"text-center my-2\">\n <sb-uic-horizontal-scroller-v2 [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\" [id]=\"key+'-scroller'\"\n [loadStatus]=\"'fetching'\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of stripsResultDataMap[key]?.loaderWidgets; trackBy: tracker\">\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </div>\n <ng-container *ngIf=\"tab?.pillsData && tab?.pillsData.length && tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]\">\n <div *ngIf=\"((tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.fetchTabStatus && tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.fetchTabStatus === 'done') &&\n (!tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.widgets || !tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.widgets?.length))\">\n <ng-container *ngIf=\"tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.value === 'inprogress'; else msgTemp\">\n <div class=\"w-full flex flex-col items-center justify-center\">\n <img alt=\"\" class=\"mt-4 mb-4\" src=\"assets/icons/home/nodataDefault.svg\">\n <div class=\"mat-subheading-1 text-center info-content\">{{ 'contentstripmultiple.getReadyForLearningAdventure' | translate }} -\n <a class=\"click-here\" [routerLink]=\"'/page/learn'\">{{ 'contentstripmultiple.clickHere' | translate }}</a> {{ 'contentstripmultiple.toEnrollNextCourse' | translate }}</div>\n </div>\n </ng-container>\n <ng-template #msgTemp>\n <div class=\"w-full flex flex-col items-center justify-center\">\n <img alt=\"\" class=\"mt-4 mb-4\" src=\"assets/icons/home/nodataDefault.png\">\n <div class=\"mat-subheading-1 text-center\">{{ translateLabels(tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.nodataMsg, 'home') }}</div>\n </div>\n </ng-template>\n </div>\n </ng-container>\n <ng-container *ngIf=\"(tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.fetchTabStatus === 'done' || tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.widgets?.length)\">\n <ng-container *ngIf=\"!tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.tabLoading\">\n <sb-uic-horizontal-scroller-v2 [id]=\"key+'-scroller'\" [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\" [widgetsLength]=\"tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.widgets?.length\"\n [loadStatus]=\"'done'\" [defaultMaxWidgets]=\"tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.maxWidgets ||\n stripsResultDataMap[key]?.sliderConfig?.maxWidgets || defaultMaxWidgets\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.widgets| slice:0:(tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.maxWidgets ||\n stripsResultDataMap[key]?.sliderConfig?.maxWidgets || defaultMaxWidgets); trackBy: tracker\">\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </ng-container>\n </ng-container>\n </div>\n </mat-tab>\n </mat-tab-group>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </a>\n\n </ng-container>\n </ng-container>\n</ng-template>",
|
|
15370
|
+
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}"]
|
|
15371
|
+
}] }
|
|
15372
|
+
];
|
|
15373
|
+
/** @nocollapse */
|
|
15374
|
+
ContentStripFacetFilterComponent.ctorParameters = function () { return [
|
|
15375
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: ['environment',] }] },
|
|
15376
|
+
{ type: WidgetContentService },
|
|
15377
|
+
{ type: utilsV2.LoggerService },
|
|
15378
|
+
{ type: utilsV2.EventService },
|
|
15379
|
+
{ type: utilsV2.ConfigurationsService },
|
|
15380
|
+
{ type: utilsV2.UtilityService },
|
|
15381
|
+
{ type: router.Router },
|
|
15382
|
+
{ type: WidgetUserService },
|
|
15383
|
+
{ type: core$1.TranslateService },
|
|
15384
|
+
{ type: MultilingualTranslationsService },
|
|
15385
|
+
{ type: forms.FormBuilder }
|
|
15386
|
+
]; };
|
|
15387
|
+
ContentStripFacetFilterComponent.propDecorators = {
|
|
15388
|
+
widgetData: [{ type: core.Input }],
|
|
15389
|
+
emptyResponse: [{ type: core.Output }],
|
|
15390
|
+
viewAllResponse: [{ type: core.Output }],
|
|
15391
|
+
telemtryResponse: [{ type: core.Output }],
|
|
15392
|
+
providerId: [{ type: core.Input }],
|
|
15393
|
+
emitViewAll: [{ type: core.Input }],
|
|
15394
|
+
channnelName: [{ type: core.Input }],
|
|
15395
|
+
id: [{ type: core.HostBinding, args: ['id',] }]
|
|
15396
|
+
};
|
|
15397
|
+
return ContentStripFacetFilterComponent;
|
|
15398
|
+
}(resolverV2.WidgetBaseComponent));
|
|
15399
|
+
if (false) {
|
|
15400
|
+
/** @type {?} */
|
|
15401
|
+
ContentStripFacetFilterComponent.prototype.widgetData;
|
|
15402
|
+
/** @type {?} */
|
|
15403
|
+
ContentStripFacetFilterComponent.prototype.emptyResponse;
|
|
15404
|
+
/** @type {?} */
|
|
15405
|
+
ContentStripFacetFilterComponent.prototype.viewAllResponse;
|
|
15406
|
+
/** @type {?} */
|
|
15407
|
+
ContentStripFacetFilterComponent.prototype.telemtryResponse;
|
|
15408
|
+
/** @type {?} */
|
|
15409
|
+
ContentStripFacetFilterComponent.prototype.providerId;
|
|
15410
|
+
/** @type {?} */
|
|
15411
|
+
ContentStripFacetFilterComponent.prototype.emitViewAll;
|
|
15412
|
+
/** @type {?} */
|
|
15413
|
+
ContentStripFacetFilterComponent.prototype.channnelName;
|
|
15414
|
+
/** @type {?} */
|
|
15415
|
+
ContentStripFacetFilterComponent.prototype.id;
|
|
15416
|
+
/** @type {?} */
|
|
15417
|
+
ContentStripFacetFilterComponent.prototype.stripsResultDataMap;
|
|
15418
|
+
/** @type {?} */
|
|
15419
|
+
ContentStripFacetFilterComponent.prototype.stripsKeyOrder;
|
|
15420
|
+
/** @type {?} */
|
|
15421
|
+
ContentStripFacetFilterComponent.prototype.showAccordionData;
|
|
15422
|
+
/** @type {?} */
|
|
15423
|
+
ContentStripFacetFilterComponent.prototype.showParentLoader;
|
|
15424
|
+
/** @type {?} */
|
|
15425
|
+
ContentStripFacetFilterComponent.prototype.showParentError;
|
|
15426
|
+
/** @type {?} */
|
|
15427
|
+
ContentStripFacetFilterComponent.prototype.showParentNoData;
|
|
15428
|
+
/** @type {?} */
|
|
15429
|
+
ContentStripFacetFilterComponent.prototype.errorDataCount;
|
|
15430
|
+
/** @type {?} */
|
|
15431
|
+
ContentStripFacetFilterComponent.prototype.noDataCount;
|
|
15432
|
+
/** @type {?} */
|
|
15433
|
+
ContentStripFacetFilterComponent.prototype.successDataCount;
|
|
15434
|
+
/** @type {?} */
|
|
15435
|
+
ContentStripFacetFilterComponent.prototype.contentAvailable;
|
|
15436
|
+
/** @type {?} */
|
|
15437
|
+
ContentStripFacetFilterComponent.prototype.baseUrl;
|
|
15438
|
+
/** @type {?} */
|
|
15439
|
+
ContentStripFacetFilterComponent.prototype.veifiedKarmayogi;
|
|
15440
|
+
/** @type {?} */
|
|
15441
|
+
ContentStripFacetFilterComponent.prototype.environment;
|
|
15442
|
+
/** @type {?} */
|
|
15443
|
+
ContentStripFacetFilterComponent.prototype.changeEventSubscription;
|
|
15444
|
+
/** @type {?} */
|
|
15445
|
+
ContentStripFacetFilterComponent.prototype.defaultMaxWidgets;
|
|
15446
|
+
/** @type {?} */
|
|
15447
|
+
ContentStripFacetFilterComponent.prototype.enrollInterval;
|
|
15448
|
+
/** @type {?} */
|
|
15449
|
+
ContentStripFacetFilterComponent.prototype.todaysEvents;
|
|
15450
|
+
/** @type {?} */
|
|
15451
|
+
ContentStripFacetFilterComponent.prototype.enrollmentMapData;
|
|
15452
|
+
/** @type {?} */
|
|
15453
|
+
ContentStripFacetFilterComponent.prototype.facetForm;
|
|
15454
|
+
/**
|
|
15455
|
+
* @type {?}
|
|
15456
|
+
* @private
|
|
15457
|
+
*/
|
|
15458
|
+
ContentStripFacetFilterComponent.prototype.contentSvc;
|
|
15459
|
+
/**
|
|
15460
|
+
* @type {?}
|
|
15461
|
+
* @private
|
|
15462
|
+
*/
|
|
15463
|
+
ContentStripFacetFilterComponent.prototype.loggerSvc;
|
|
15464
|
+
/**
|
|
15465
|
+
* @type {?}
|
|
15466
|
+
* @private
|
|
15467
|
+
*/
|
|
15468
|
+
ContentStripFacetFilterComponent.prototype.eventSvc;
|
|
15469
|
+
/**
|
|
15470
|
+
* @type {?}
|
|
15471
|
+
* @private
|
|
15472
|
+
*/
|
|
15473
|
+
ContentStripFacetFilterComponent.prototype.configSvc;
|
|
15474
|
+
/** @type {?} */
|
|
15475
|
+
ContentStripFacetFilterComponent.prototype.utilitySvc;
|
|
15476
|
+
/** @type {?} */
|
|
15477
|
+
ContentStripFacetFilterComponent.prototype.router;
|
|
15478
|
+
/**
|
|
15479
|
+
* @type {?}
|
|
15480
|
+
* @private
|
|
15481
|
+
*/
|
|
15482
|
+
ContentStripFacetFilterComponent.prototype.userSvc;
|
|
15483
|
+
/**
|
|
15484
|
+
* @type {?}
|
|
15485
|
+
* @private
|
|
15486
|
+
*/
|
|
15487
|
+
ContentStripFacetFilterComponent.prototype.translate;
|
|
15488
|
+
/**
|
|
15489
|
+
* @type {?}
|
|
15490
|
+
* @private
|
|
15491
|
+
*/
|
|
15492
|
+
ContentStripFacetFilterComponent.prototype.langtranslations;
|
|
15493
|
+
/**
|
|
15494
|
+
* @type {?}
|
|
15495
|
+
* @private
|
|
15496
|
+
*/
|
|
15497
|
+
ContentStripFacetFilterComponent.prototype._fb;
|
|
15498
|
+
}
|
|
15499
|
+
|
|
13837
15500
|
/**
|
|
13838
15501
|
* @fileoverview added by tsickle
|
|
13839
15502
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -13841,58 +15504,58 @@
|
|
|
13841
15504
|
/**
|
|
13842
15505
|
* @record
|
|
13843
15506
|
*/
|
|
13844
|
-
function IStripUnitContentData$
|
|
15507
|
+
function IStripUnitContentData$2() { }
|
|
13845
15508
|
if (false) {
|
|
13846
15509
|
/** @type {?} */
|
|
13847
|
-
IStripUnitContentData$
|
|
15510
|
+
IStripUnitContentData$2.prototype.key;
|
|
13848
15511
|
/** @type {?} */
|
|
13849
|
-
IStripUnitContentData$
|
|
15512
|
+
IStripUnitContentData$2.prototype.canHideStrip;
|
|
13850
15513
|
/** @type {?|undefined} */
|
|
13851
|
-
IStripUnitContentData$
|
|
15514
|
+
IStripUnitContentData$2.prototype.mode;
|
|
13852
15515
|
/** @type {?} */
|
|
13853
|
-
IStripUnitContentData$
|
|
15516
|
+
IStripUnitContentData$2.prototype.showStrip;
|
|
13854
15517
|
/** @type {?} */
|
|
13855
|
-
IStripUnitContentData$
|
|
15518
|
+
IStripUnitContentData$2.prototype.disableTranslate;
|
|
13856
15519
|
/** @type {?|undefined} */
|
|
13857
|
-
IStripUnitContentData$
|
|
15520
|
+
IStripUnitContentData$2.prototype.widgets;
|
|
13858
15521
|
/** @type {?} */
|
|
13859
|
-
IStripUnitContentData$
|
|
15522
|
+
IStripUnitContentData$2.prototype.stripTitle;
|
|
13860
15523
|
/** @type {?|undefined} */
|
|
13861
|
-
IStripUnitContentData$
|
|
15524
|
+
IStripUnitContentData$2.prototype.stripTitleLink;
|
|
13862
15525
|
/** @type {?|undefined} */
|
|
13863
|
-
IStripUnitContentData$
|
|
15526
|
+
IStripUnitContentData$2.prototype.sliderConfig;
|
|
13864
15527
|
/** @type {?} */
|
|
13865
|
-
IStripUnitContentData$
|
|
15528
|
+
IStripUnitContentData$2.prototype.stripConfig;
|
|
13866
15529
|
/** @type {?|undefined} */
|
|
13867
|
-
IStripUnitContentData$
|
|
15530
|
+
IStripUnitContentData$2.prototype.tabs;
|
|
13868
15531
|
/** @type {?|undefined} */
|
|
13869
|
-
IStripUnitContentData$
|
|
15532
|
+
IStripUnitContentData$2.prototype.stripName;
|
|
13870
15533
|
/** @type {?|undefined} */
|
|
13871
|
-
IStripUnitContentData$
|
|
15534
|
+
IStripUnitContentData$2.prototype.stripLogo;
|
|
13872
15535
|
/** @type {?|undefined} */
|
|
13873
|
-
IStripUnitContentData$
|
|
15536
|
+
IStripUnitContentData$2.prototype.description;
|
|
13874
15537
|
/** @type {?|undefined} */
|
|
13875
|
-
IStripUnitContentData$
|
|
15538
|
+
IStripUnitContentData$2.prototype.stripInfo;
|
|
13876
15539
|
/** @type {?|undefined} */
|
|
13877
|
-
IStripUnitContentData$
|
|
15540
|
+
IStripUnitContentData$2.prototype.noDataWidget;
|
|
13878
15541
|
/** @type {?|undefined} */
|
|
13879
|
-
IStripUnitContentData$
|
|
15542
|
+
IStripUnitContentData$2.prototype.errorWidget;
|
|
13880
15543
|
/** @type {?} */
|
|
13881
|
-
IStripUnitContentData$
|
|
15544
|
+
IStripUnitContentData$2.prototype.showOnNoData;
|
|
13882
15545
|
/** @type {?} */
|
|
13883
|
-
IStripUnitContentData$
|
|
15546
|
+
IStripUnitContentData$2.prototype.showOnLoader;
|
|
13884
15547
|
/** @type {?} */
|
|
13885
|
-
IStripUnitContentData$
|
|
15548
|
+
IStripUnitContentData$2.prototype.showOnError;
|
|
13886
15549
|
/** @type {?|undefined} */
|
|
13887
|
-
IStripUnitContentData$
|
|
15550
|
+
IStripUnitContentData$2.prototype.loaderWidgets;
|
|
13888
15551
|
/** @type {?|undefined} */
|
|
13889
|
-
IStripUnitContentData$
|
|
15552
|
+
IStripUnitContentData$2.prototype.stripBackground;
|
|
13890
15553
|
/** @type {?|undefined} */
|
|
13891
|
-
IStripUnitContentData$
|
|
15554
|
+
IStripUnitContentData$2.prototype.secondaryHeading;
|
|
13892
15555
|
/** @type {?} */
|
|
13893
|
-
IStripUnitContentData$
|
|
15556
|
+
IStripUnitContentData$2.prototype.viewMoreUrl;
|
|
13894
15557
|
/** @type {?|undefined} */
|
|
13895
|
-
IStripUnitContentData$
|
|
15558
|
+
IStripUnitContentData$2.prototype.request;
|
|
13896
15559
|
}
|
|
13897
15560
|
var ContentStripWithTabsPillsComponent = /** @class */ (function (_super) {
|
|
13898
15561
|
__extends(ContentStripWithTabsPillsComponent, _super);
|
|
@@ -15772,6 +17435,62 @@
|
|
|
15772
17435
|
return ContentStripWithTabsPillsModule;
|
|
15773
17436
|
}());
|
|
15774
17437
|
|
|
17438
|
+
/**
|
|
17439
|
+
* @fileoverview added by tsickle
|
|
17440
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
17441
|
+
*/
|
|
17442
|
+
var ɵ0$6 = HttpLoaderFactory1;
|
|
17443
|
+
var ContentStripFacetFilterModule = /** @class */ (function () {
|
|
17444
|
+
function ContentStripFacetFilterModule() {
|
|
17445
|
+
}
|
|
17446
|
+
ContentStripFacetFilterModule.decorators = [
|
|
17447
|
+
{ type: core.NgModule, args: [{
|
|
17448
|
+
declarations: [ContentStripFacetFilterComponent],
|
|
17449
|
+
imports: [
|
|
17450
|
+
resolverV2.SbUiResolverModule,
|
|
17451
|
+
common.CommonModule,
|
|
17452
|
+
router.RouterModule,
|
|
17453
|
+
HorizontalScrollerV2Module,
|
|
17454
|
+
material.MatProgressSpinnerModule,
|
|
17455
|
+
material.MatToolbarModule,
|
|
17456
|
+
material.MatIconModule,
|
|
17457
|
+
material.MatButtonModule,
|
|
17458
|
+
material.MatTooltipModule,
|
|
17459
|
+
material.MatListModule,
|
|
17460
|
+
material.MatSidenavModule,
|
|
17461
|
+
material.MatCardModule,
|
|
17462
|
+
material.MatExpansionModule,
|
|
17463
|
+
material.MatRadioModule,
|
|
17464
|
+
material.MatChipsModule,
|
|
17465
|
+
material.MatInputModule,
|
|
17466
|
+
material.MatFormFieldModule,
|
|
17467
|
+
material.MatDialogModule,
|
|
17468
|
+
material.MatSnackBarModule,
|
|
17469
|
+
material.MatSelectModule,
|
|
17470
|
+
material.MatDatepickerModule,
|
|
17471
|
+
material.MatNativeDateModule,
|
|
17472
|
+
material.MatTableModule,
|
|
17473
|
+
material.MatCheckboxModule,
|
|
17474
|
+
material.MatProgressSpinnerModule,
|
|
17475
|
+
material.MatButtonToggleModule,
|
|
17476
|
+
material.MatTabsModule,
|
|
17477
|
+
forms.ReactiveFormsModule,
|
|
17478
|
+
material.MatAutocompleteModule,
|
|
17479
|
+
core$1.TranslateModule.forRoot({
|
|
17480
|
+
loader: {
|
|
17481
|
+
provide: core$1.TranslateLoader,
|
|
17482
|
+
useFactory: ɵ0$6,
|
|
17483
|
+
deps: [http.HttpClient],
|
|
17484
|
+
},
|
|
17485
|
+
}),
|
|
17486
|
+
],
|
|
17487
|
+
entryComponents: [ContentStripFacetFilterComponent],
|
|
17488
|
+
exports: [ContentStripFacetFilterComponent],
|
|
17489
|
+
},] }
|
|
17490
|
+
];
|
|
17491
|
+
return ContentStripFacetFilterModule;
|
|
17492
|
+
}());
|
|
17493
|
+
|
|
15775
17494
|
/**
|
|
15776
17495
|
* @fileoverview added by tsickle
|
|
15777
17496
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -17122,7 +18841,7 @@
|
|
|
17122
18841
|
*/
|
|
17123
18842
|
/** @type {?} */
|
|
17124
18843
|
var PROXY_SLAG_V8 = '/apis/proxies/v8';
|
|
17125
|
-
var ɵ0$
|
|
18844
|
+
var ɵ0$7 = /**
|
|
17126
18845
|
* @param {?} contentId
|
|
17127
18846
|
* @param {?} contentType
|
|
17128
18847
|
* @param {?} userId
|
|
@@ -17147,7 +18866,7 @@
|
|
|
17147
18866
|
};
|
|
17148
18867
|
/** @type {?} */
|
|
17149
18868
|
var API_END_POINTS$3 = {
|
|
17150
|
-
GET_RATING: (ɵ0$
|
|
18869
|
+
GET_RATING: (ɵ0$7),
|
|
17151
18870
|
ADD_OR_UPDATE: PROXY_SLAG_V8 + "/ratings/v1/upsert",
|
|
17152
18871
|
GET_RATING_SUMMARY: (ɵ1$3),
|
|
17153
18872
|
GET_RATING_LOOKUP: PROXY_SLAG_V8 + "/ratings/v1/ratingLookUp",
|
|
@@ -17891,7 +19610,7 @@
|
|
|
17891
19610
|
* @fileoverview added by tsickle
|
|
17892
19611
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
17893
19612
|
*/
|
|
17894
|
-
var ɵ0$
|
|
19613
|
+
var ɵ0$8 = HttpLoaderFactory;
|
|
17895
19614
|
var MDOChannelModule = /** @class */ (function () {
|
|
17896
19615
|
function MDOChannelModule() {
|
|
17897
19616
|
}
|
|
@@ -17917,7 +19636,7 @@
|
|
|
17917
19636
|
core$1.TranslateModule.forRoot({
|
|
17918
19637
|
loader: {
|
|
17919
19638
|
provide: core$1.TranslateLoader,
|
|
17920
|
-
useFactory: ɵ0$
|
|
19639
|
+
useFactory: ɵ0$8,
|
|
17921
19640
|
deps: [http.HttpClient],
|
|
17922
19641
|
},
|
|
17923
19642
|
}),
|
|
@@ -18241,7 +19960,7 @@
|
|
|
18241
19960
|
* @fileoverview added by tsickle
|
|
18242
19961
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
18243
19962
|
*/
|
|
18244
|
-
var ɵ0$
|
|
19963
|
+
var ɵ0$9 = HttpLoaderFactory;
|
|
18245
19964
|
var ProvidersModule = /** @class */ (function () {
|
|
18246
19965
|
function ProvidersModule() {
|
|
18247
19966
|
}
|
|
@@ -18266,7 +19985,7 @@
|
|
|
18266
19985
|
core$1.TranslateModule.forRoot({
|
|
18267
19986
|
loader: {
|
|
18268
19987
|
provide: core$1.TranslateLoader,
|
|
18269
|
-
useFactory: ɵ0$
|
|
19988
|
+
useFactory: ɵ0$9,
|
|
18270
19989
|
deps: [http.HttpClient],
|
|
18271
19990
|
},
|
|
18272
19991
|
}),
|
|
@@ -18394,7 +20113,7 @@
|
|
|
18394
20113
|
NationalLearningComponent.decorators = [
|
|
18395
20114
|
{ type: core.Component, args: [{
|
|
18396
20115
|
selector: 'sb-uic-national-learning',
|
|
18397
|
-
template: "<div class=\"container-fluid white-background nlm-micro-sites micro-white\" id=\"nlm-micro-sites\">\n <div class=\"flex flex-col flex-1\">\n <ng-container *ngIf=\"sectionList?.length\">\n <ng-container *ngFor=\"let section of sectionList\">\n <ng-container *ngIf=\"section?.enabled\">\n <section id=\"{{section?.key}}\" class=\"w-full grid grid-cols-12 gap-4\" [ngClass]=\"{'container': section.wrapperClass}\">\n <ng-container *ngFor=\"let column of section.column\">\n <div id=\"{{column?.key}}\" class=\"col-span-{{column.colspan || 12}} \">\n <ng-container *ngIf=\"column?.enabled\" [ngSwitch]=\"column?.key\">\n <ng-container *ngSwitchCase=\"'topSection'\" [ngTemplateOutlet]=\"topSection\"\n [ngTemplateOutletContext]=\"{data: column?.data}\"></ng-container>\n <ng-container *ngSwitchCase=\"'contentSection'\" [ngTemplateOutlet]=\"contentSection\"\n [ngTemplateOutletContext]=\"{data: column?.data}\"></ng-container>\n </ng-container>\n </div>\n </ng-container>\n </section>\n </ng-container>\n </ng-container>\n </ng-container>\n </div>\n</div>\n\n<ng-template #topSection let-data=\"data\">\n <!-- top section desktop layout -->\n <div class=\"w-full topSection\">\n <div *ngIf=\"data.sliderData && data.sliderData.sliders\">\n <sb-uic-sliders [widgetData]=\"data.sliderData.sliders\" [styleData]=\"data.sliderData.styleData\" ></sb-uic-sliders>\n </div>\n <div *ngIf=\"data && data.metrics\">\n <div class=\"block md:hidden\">\n <sb-uic-data-points\n [providerId]=\"providerId\"\n [fetchDataFromApi]=\"true\"\n [objectData]=\"data?.metrics?.data\"\n [layoutType]=\"'nlwCol'\"\n [title]=\"data?.metrics?.title\"\n [pageLayout]=\"'nlw'\">\n </sb-uic-data-points>\n </div>\n <div class=\"hidden md:block\">\n <sb-uic-data-points\n [providerId]=\"providerId\"\n [fetchDataFromApi]=\"true\"\n [objectData]=\"data?.metrics?.data\"\n [layoutType]=\"'nlwRow'\"\n [title]=\"data?.metrics?.title\"\n [pageLayout]=\"'nlw'\">\n </sb-uic-data-points>\n </div>\n </div>\n\n <div class=\"col-span-12\">\n <div class=\"flex items-center justify-center\">\n <div class=\"container\">\n <div class=\"block md:hidden\">\n <sb-uic-key-highlights (emptyResponse)=\"hideKeyHightlight($event, data.keyHighlights)\" [formData]=\"data.keyHighlights\" [providerId]=\"providerId\" [mode]=\"'mobile'\"></sb-uic-key-highlights>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"col-span-12\">\n <div class=\"flex items-center justify-center\">\n <div class=\"container\">\n <div class=\"hidden md:block\">\n <div class=\"flex flex items-center justify-center gap-10\">\n <div class=\"mr-4 logo-box-container\">\n <div class=\"flex logo-box-rounded top mr-4\">\n <img alt=\"Application Logo\" class=\"logo-img\" [src]=\"data?.imageUrl\">\n </div>\n </div>\n <div class=\"w-full md:w-9/12 flex-1 flex flex-col pr-3\">\n <div class=\" txt-ellipsis-2 break-words description-title\">{{data?.title}}</div>\n <div class=\"description\">{{data?.description | slice:0:descriptionMaxLength}}\n <span *ngIf=\"data?.description?.length > descriptionMaxLength\">...</span>\n </div>\n </div>\n </div>\n </div>\n <div class=\"block md:hidden\">\n <div class=\"flex flex-col items-center justify-center margin-bottom-xl px-5\">\n <div class=\"mlogo-box-rounded\">\n <img alt=\"Application Logo\" class=\"logo-img\" [src]=\"data?.imageUrl\">\n </div>\n </div>\n <div class=\"flex flex-col px-5\">\n <div class=\" txt-ellipsis-2 break-words description-title\">{{data?.title}}</div>\n <div class=\"mdescription\">{{data?.description | slice:0:descriptionMaxLength}}\n <span *ngIf=\"data?.description?.length > descriptionMaxLength\">...</span>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"col-span-12\">\n <div class=\"flex items-center justify-center\">\n <div class=\"container margin-top-xl\">\n <div class=\"hidden md:block\">\n <sb-uic-key-highlights (emptyResponse)=\"hideKeyHightlight($event, data.keyHighlights)\" [formData]=\"data.keyHighlights\" [providerId]=\"providerId\" [mode]=\"'desktop'\"></sb-uic-key-highlights>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-template>\n\n\n\n<ng-template #contentSection let-data=\"data\">\n <div class=\"flex items-center justify-center\">\n <div class=\"container\">\n <div class=\"grid grid-cols-12 gap-4 mb-6\">\n <div class=\"col-span-12 md:col-span-{{data.leftContent.colspan}}\">\n <div *ngIf=\"data.leftContent.data.weekHighlights.data\">\n <sb-uic-highlights-of-week\n [objectData]=\"data.leftContent.data.weekHighlights.data\">\n </sb-uic-highlights-of-week>\n </div>\n <div class=\"hidden md:block\">\n <div *ngIf=\"data.leftContent.data.mandatoryCourse.enabled && data?.leftContent?.data?.mandatoryCourse?.column[0]?.data\">\n <div class=\"margin-top-l nlw-mandatoryCourse\">\n <sb-uic-content-strip-with-tabs\n [emitViewAll]=\"false\"\n (viewAllResponse)=\"''\"\n (telemtryResponse)=\"raiseTelemetryInteratEvent($event)\"\n (emptyResponse)=\"''\"\n [providerId]=\"'123456789'\"\n [widgetData]=\"data?.leftContent?.data?.mandatoryCourse?.column[0]?.data\"\n [channnelName]=\"'channnelName'\">\n </sb-uic-content-strip-with-tabs>\n </div>\n </div>\n </div>\n <div class=\"hidden md:block\">\n <div *ngIf=\"data.leftContent.data.events.enabled && data.leftContent.data.events.column[0]\">\n <sb-uic-events [object]=\"data.leftContent.data.events.column[0]\" [nwlEventsConfig]=\"nwlConfiguration\"></sb-uic-events>\n </div>\n </div>\n </div>\n <div class=\"col-span-12 md:col-span-{{data.rightContent.colspan}}\">\n <div *ngIf=\"data.rightContent.data.myprogress\">\n <sb-uic-user-progress\n [objectData]=\"data.rightContent.data.myprogress.data\" [rootOrgId]=\"configDetails?.unMappedUser?.rootOrgId\">\n </sb-uic-user-progress>\n </div>\n <div *ngIf=\"data.rightContent.data.speakerOftheDay\">\n <sb-uic-speakers\n [objectData]=\"data.rightContent.data.speakerOftheDay.data\">\n </sb-uic-speakers>\n </div>\n <div *ngIf=\"data.rightContent.data.mdoLeaderboard\">\n <sb-uic-mdo-leaderboard\n [object]=\"data.rightContent.data.mdoLeaderboard.data\"\n (tabClicked)=\"raiseTabClick($event)\"></sb-uic-mdo-leaderboard>\n </div>\n\n <div class=\"block md:hidden\">\n <div *ngIf=\"data.leftContent.data.mandatoryCourse.enabled && data?.leftContent?.data?.mandatoryCourse?.column[0]?.data\">\n <div class=\"margin-top-l nlw-mandatoryCourse\">\n <sb-uic-content-strip-with-tabs\n [emitViewAll]=\"false\"\n (viewAllResponse)=\"''\"\n (telemtryResponse)=\"raiseTelemetryInteratEvent($event)\"\n (emptyResponse)=\"''\"\n [providerId]=\"'123456789'\"\n [widgetData]=\"data?.leftContent?.data?.mandatoryCourse?.column[0]?.data\"\n [channnelName]=\"'channnelName'\">\n </sb-uic-content-strip-with-tabs>\n </div>\n </div>\n </div>\n\n <div class=\"block md:hidden px-4 md-px-0\">\n <div *ngIf=\"data.leftContent.data.events.enabled && data.leftContent.data.events.column[0]\">\n <sb-uic-events [object]=\"data.leftContent.data.events.column[0]\" [nwlEventsConfig]=\"nwlConfiguration\"></sb-uic-events>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-template>\n\n\n",
|
|
20116
|
+
template: "<div class=\"container-fluid white-background nlm-micro-sites micro-white\" id=\"nlm-micro-sites\">\n <div class=\"flex flex-col flex-1\">\n <ng-container *ngIf=\"sectionList?.length\">\n <ng-container *ngFor=\"let section of sectionList\">\n <ng-container *ngIf=\"section?.enabled\">\n <section id=\"{{section?.key}}\" class=\"w-full grid grid-cols-12 gap-4\" [ngClass]=\"{'container': section.wrapperClass}\">\n <ng-container *ngFor=\"let column of section.column\">\n <div id=\"{{column?.key}}\" class=\"col-span-{{column.colspan || 12}} \">\n <ng-container *ngIf=\"column?.enabled\" [ngSwitch]=\"column?.key\">\n <ng-container *ngSwitchCase=\"'topSection'\" [ngTemplateOutlet]=\"topSection\"\n [ngTemplateOutletContext]=\"{data: column?.data}\"></ng-container>\n <ng-container *ngSwitchCase=\"'contentSection'\" [ngTemplateOutlet]=\"contentSection\"\n [ngTemplateOutletContext]=\"{data: column?.data}\"></ng-container>\n </ng-container>\n </div>\n </ng-container>\n </section>\n </ng-container>\n </ng-container>\n </ng-container>\n </div>\n</div>\n\n<ng-template #topSection let-data=\"data\">\n <!-- top section desktop layout -->\n <div class=\"w-full topSection\">\n <div *ngIf=\"data.sliderData && data.sliderData.sliders\">\n <sb-uic-sliders [widgetData]=\"data.sliderData.sliders\" [styleData]=\"data.sliderData.styleData\" ></sb-uic-sliders>\n </div>\n <div *ngIf=\"data && data.metrics\">\n <div class=\"block md:hidden\">\n <sb-uic-data-points\n [providerId]=\"providerId\"\n [fetchDataFromApi]=\"true\"\n [objectData]=\"data?.metrics?.data\"\n [layoutType]=\"'nlwCol'\"\n [title]=\"data?.metrics?.title\"\n [pageLayout]=\"'nlw'\">\n </sb-uic-data-points>\n </div>\n <div class=\"hidden md:block\">\n <sb-uic-data-points\n [providerId]=\"providerId\"\n [fetchDataFromApi]=\"true\"\n [objectData]=\"data?.metrics?.data\"\n [layoutType]=\"'nlwRow'\"\n [title]=\"data?.metrics?.title\"\n [pageLayout]=\"'nlw'\">\n </sb-uic-data-points>\n </div>\n </div>\n\n <div class=\"col-span-12\">\n <div class=\"flex items-center justify-center\">\n <div class=\"container\">\n <div class=\"block md:hidden\">\n <sb-uic-key-highlights (emptyResponse)=\"hideKeyHightlight($event, data.keyHighlights)\" [formData]=\"data.keyHighlights\" [providerId]=\"providerId\" [mode]=\"'mobile'\"></sb-uic-key-highlights>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"col-span-12\">\n <div class=\"flex items-center justify-center\">\n <div class=\"container\">\n <div class=\"hidden md:block\">\n <div class=\"flex flex items-center justify-center gap-10\">\n <div class=\"mr-4 logo-box-container\">\n <div class=\"flex logo-box-rounded top mr-4\">\n <img alt=\"Application Logo\" class=\"logo-img\" [src]=\"data?.imageUrl\">\n </div>\n </div>\n <div class=\"w-full md:w-9/12 flex-1 flex flex-col pr-3\">\n <div class=\" txt-ellipsis-2 break-words description-title\">{{data?.title}}</div>\n <div class=\"description\">{{data?.description | slice:0:descriptionMaxLength}}\n <span *ngIf=\"data?.description?.length > descriptionMaxLength\">...</span>\n </div>\n </div>\n </div>\n </div>\n <div class=\"block md:hidden\">\n <div class=\"flex flex-col items-center justify-center margin-bottom-xl px-5\">\n <div class=\"mlogo-box-rounded\">\n <img alt=\"Application Logo\" class=\"logo-img\" [src]=\"data?.imageUrl\">\n </div>\n </div>\n <div class=\"flex flex-col px-5\">\n <div class=\" txt-ellipsis-2 break-words description-title\">{{data?.title}}</div>\n <div class=\"mdescription\">{{data?.description | slice:0:descriptionMaxLength}}\n <span *ngIf=\"data?.description?.length > descriptionMaxLength\">...</span>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"col-span-12\">\n <div class=\"flex items-center justify-center\">\n <div class=\"container margin-top-xl\">\n <div class=\"hidden md:block\">\n <sb-uic-key-highlights (emptyResponse)=\"hideKeyHightlight($event, data.keyHighlights)\" [formData]=\"data.keyHighlights\" [providerId]=\"providerId\" [mode]=\"'desktop'\"></sb-uic-key-highlights>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-template>\n\n\n\n<ng-template #contentSection let-data=\"data\">\n <div class=\"flex items-center justify-center\">\n <div class=\"container\">\n <div class=\"grid grid-cols-12 gap-4 mb-6\">\n <div class=\"col-span-12 md:col-span-{{data.leftContent.colspan}}\">\n <div *ngIf=\"data.leftContent.data.weekHighlights.data\">\n <sb-uic-highlights-of-week\n [objectData]=\"data.leftContent.data.weekHighlights.data\">\n </sb-uic-highlights-of-week>\n </div>\n <div class=\"hidden md:block\">\n <div *ngIf=\"data.leftContent.data.mandatoryCourse.enabled && data?.leftContent?.data?.mandatoryCourse?.column[0]?.data\">\n <div class=\"margin-top-l nlw-mandatoryCourse\">\n <sb-uic-content-strip-with-tabs\n [emitViewAll]=\"false\"\n (viewAllResponse)=\"''\"\n (telemtryResponse)=\"raiseTelemetryInteratEvent($event)\"\n (emptyResponse)=\"''\"\n [providerId]=\"'123456789'\"\n [widgetData]=\"data?.leftContent?.data?.mandatoryCourse?.column[0]?.data\"\n [channnelName]=\"'channnelName'\">\n </sb-uic-content-strip-with-tabs>\n </div>\n </div>\n </div>\n\n <div class=\"hidden md:block\">\n <div *ngIf=\"data?.leftContent?.data?.exploreLearningContent?.strips[0]\">\n <sb-uic-content-strip-facet-filter [widgetData]=\"data?.leftContent?.data?.exploreLearningContent\"></sb-uic-content-strip-facet-filter>\n </div>\n </div>\n <div class=\"hidden md:block\">\n <div *ngIf=\"data.leftContent.data.events.enabled && data.leftContent.data.events.column[0]\">\n <sb-uic-events [object]=\"data.leftContent.data.events.column[0]\" [nwlEventsConfig]=\"nwlConfiguration\"></sb-uic-events>\n </div>\n </div>\n </div>\n <div class=\"col-span-12 md:col-span-{{data.rightContent.colspan}}\">\n <div *ngIf=\"data.rightContent.data.myprogress\">\n <sb-uic-user-progress\n [objectData]=\"data.rightContent.data.myprogress.data\" [rootOrgId]=\"configDetails?.unMappedUser?.rootOrgId\">\n </sb-uic-user-progress>\n </div>\n <div *ngIf=\"data.rightContent.data.speakerOftheDay\">\n <sb-uic-speakers\n [objectData]=\"data.rightContent.data.speakerOftheDay.data\">\n </sb-uic-speakers>\n </div>\n <div *ngIf=\"data.rightContent.data.mdoLeaderboard\">\n <sb-uic-mdo-leaderboard\n [object]=\"data.rightContent.data.mdoLeaderboard.data\"\n (tabClicked)=\"raiseTabClick($event)\"></sb-uic-mdo-leaderboard>\n </div>\n\n <div class=\"block md:hidden\">\n <div *ngIf=\"data.leftContent.data.mandatoryCourse.enabled && data?.leftContent?.data?.mandatoryCourse?.column[0]?.data\">\n <div class=\"margin-top-l nlw-mandatoryCourse\">\n <sb-uic-content-strip-with-tabs\n [emitViewAll]=\"false\"\n (viewAllResponse)=\"''\"\n (telemtryResponse)=\"raiseTelemetryInteratEvent($event)\"\n (emptyResponse)=\"''\"\n [providerId]=\"'123456789'\"\n [widgetData]=\"data?.leftContent?.data?.mandatoryCourse?.column[0]?.data\"\n [channnelName]=\"'channnelName'\">\n </sb-uic-content-strip-with-tabs>\n </div>\n </div>\n </div>\n <div class=\"block md:hidden px-4 md-px-0\">\n <div *ngIf=\"data?.leftContent?.data?.exploreLearningContent?.strips[0]\">\n <sb-uic-content-strip-facet-filter [widgetData]=\"data?.leftContent?.data?.exploreLearningContent\"></sb-uic-content-strip-facet-filter>\n </div>\n </div>\n <div class=\"block md:hidden px-4 md-px-0\">\n <div *ngIf=\"data.leftContent.data.events.enabled && data.leftContent.data.events.column[0]\">\n <sb-uic-events [object]=\"data.leftContent.data.events.column[0]\" [nwlEventsConfig]=\"nwlConfiguration\"></sb-uic-events>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-template>\n\n\n",
|
|
18398
20117
|
styles: ["::ng-deep.mat-app-background{background-color:#fff!important}.nlw-mandatoryCourse ::ng-deep.capitalize{font-size:20px;line-height:24.38px}.nlm-micro-sites ::ng-deep.container{max-width:1200px!important}.nlm-micro-sites ::ng-deep.banner-container{padding-bottom:0!important}.topSection ::ng-deep.prev{margin-left:15px!important}.topSection ::ng-deep.next{margin-right:15px!important}.topSection .stats-header{display:flex;align-items:center;justify-content:center;position:absolute;left:43.5%;top:-20px;text-transform:capitalize}.topSection .stats-title{display:flex;align-items:center;justify-content:center;background-color:#f3962f;padding:12px 16px;color:#fff;font-family:Lato;font-size:14px;font-weight:700;line-height:16.8px;border-radius:35px}.topSection .my-arrow{font-size:12px}.topSection .less-opacity1{opacity:.75}.topSection .less-opacity2{opacity:.5}.topSection .details-wrapper{padding:16px;display:flex;gap:50px}.topSection .logo-box-container{width:180px;position:relative}@media only screen and (max-width:599px){.topSection .logo-box-container{width:112px;height:72px}}.topSection .logo-box-rounded{height:180px;width:180px;background:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px 0 rgba(0,0,0,.06)}.topSection .logo-box-rounded .logo-img{max-width:122px}@media only screen and (max-width:599px){.topSection .logo-box-rounded{width:112px;height:112px}.topSection .logo-box-rounded .logo-img{max-width:84px}}.topSection .mlogo-box-rounded{height:180px;width:180px;background:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:1px 1px 8px 3px rgba(0,0,0,.06)}.topSection .mlogo-box-rounded .logo-img{max-width:122px}@media only screen and (max-width:599px){.topSection .mlogo-box-rounded{width:112px;height:112px}.topSection .mlogo-box-rounded .logo-img{max-width:84px}}.topSection .txt-ellipsis-2{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.topSection .description-title{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left;padding-bottom:16px}.topSection .description{font-family:Lato;font-size:16px;font-weight:400;line-height:24px;text-align:left}.topSection .mdescription{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left}@media screen and (min-width:320px) and (max-width:769px){.topSection ::ng-deep.prev{margin-left:15px!important}.topSection ::ng-deep.next{margin-right:15px!important}.topSection ::ng-deep.banner-container{min-height:212px!important}}"]
|
|
18399
20118
|
}] }
|
|
18400
20119
|
];
|
|
@@ -18675,7 +20394,7 @@
|
|
|
18675
20394
|
EventsComponent.decorators = [
|
|
18676
20395
|
{ type: core.Component, args: [{
|
|
18677
20396
|
selector: 'sb-uic-events',
|
|
18678
|
-
template: "<div class=\"flex items-center mb-4 mt-2 e-header\">\n <div class=\"event-title\">\n {{object?.title}}\n </div>\n
|
|
20397
|
+
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>",
|
|
18679
20398
|
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}"]
|
|
18680
20399
|
}] }
|
|
18681
20400
|
];
|
|
@@ -18810,6 +20529,7 @@
|
|
|
18810
20529
|
common.CommonModule,
|
|
18811
20530
|
router.RouterModule,
|
|
18812
20531
|
SkeletonLoaderLibModule,
|
|
20532
|
+
material.MatIconModule
|
|
18813
20533
|
],
|
|
18814
20534
|
exports: [EventsComponent, EventCardComponent]
|
|
18815
20535
|
},] }
|
|
@@ -19348,17 +21068,18 @@
|
|
|
19348
21068
|
*/
|
|
19349
21069
|
function () {
|
|
19350
21070
|
var _this = this;
|
|
21071
|
+
debugger;
|
|
19351
21072
|
this.insightSvc.fetchUserProgress().subscribe((/**
|
|
19352
21073
|
* @param {?} res
|
|
19353
21074
|
* @return {?}
|
|
19354
21075
|
*/
|
|
19355
21076
|
function (res) {
|
|
19356
21077
|
if (res && res.result && res.result.userLeaderBoard) {
|
|
19357
|
-
_this.userProgress = res.result.userLeaderBoard
|
|
19358
|
-
|
|
19359
|
-
|
|
19360
|
-
|
|
19361
|
-
|
|
21078
|
+
_this.userProgress = res.result.userLeaderBoard;
|
|
21079
|
+
if (!_this.userProgress.fullname && _this.configSvc && _this.configSvc.userProfile && _this.configSvc.userProfile.firstName) {
|
|
21080
|
+
_this.userProgress['fullname'] = _this.configSvc.userProfile.firstName;
|
|
21081
|
+
_this.userProgress['profile_image'] = _this.configSvc.userProfile.profileImageUrl;
|
|
21082
|
+
}
|
|
19362
21083
|
}
|
|
19363
21084
|
}), (/**
|
|
19364
21085
|
* @param {?} error
|
|
@@ -19563,7 +21284,8 @@
|
|
|
19563
21284
|
MdoLeaderboardModule,
|
|
19564
21285
|
HighlightsOfWeekModule,
|
|
19565
21286
|
SpeakersModule,
|
|
19566
|
-
UserProgressModule
|
|
21287
|
+
UserProgressModule,
|
|
21288
|
+
ContentStripFacetFilterModule
|
|
19567
21289
|
],
|
|
19568
21290
|
exports: [
|
|
19569
21291
|
NationalLearningComponent,
|
|
@@ -19589,6 +21311,7 @@
|
|
|
19589
21311
|
exports.ConsumptionModule = ConsumptionModule;
|
|
19590
21312
|
exports.ConsumptionService = ConsumptionService;
|
|
19591
21313
|
exports.ContentProgressModule = ContentProgressModule;
|
|
21314
|
+
exports.ContentStripFacetFilterModule = ContentStripFacetFilterModule;
|
|
19592
21315
|
exports.ContentStripWithTabsLibModule = ContentStripWithTabsLibModule;
|
|
19593
21316
|
exports.ContentStripWithTabsPillsModule = ContentStripWithTabsPillsModule;
|
|
19594
21317
|
exports.DataPointsModule = DataPointsModule;
|
|
@@ -19645,27 +21368,28 @@
|
|
|
19645
21368
|
exports.ɵcb = CertificateDialogComponent;
|
|
19646
21369
|
exports.ɵcc = AvatarPhotoLibModule;
|
|
19647
21370
|
exports.ɵcd = AvatarPhotoLibComponent;
|
|
19648
|
-
exports.ɵce =
|
|
19649
|
-
exports.ɵcf =
|
|
19650
|
-
exports.ɵcg =
|
|
19651
|
-
exports.ɵch =
|
|
19652
|
-
exports.ɵci =
|
|
19653
|
-
exports.ɵcj =
|
|
19654
|
-
exports.ɵck =
|
|
19655
|
-
exports.ɵcl =
|
|
19656
|
-
exports.ɵcm =
|
|
19657
|
-
exports.ɵcn =
|
|
19658
|
-
exports.ɵco =
|
|
19659
|
-
exports.ɵcp =
|
|
19660
|
-
exports.ɵcq =
|
|
19661
|
-
exports.ɵcr =
|
|
19662
|
-
exports.ɵcs =
|
|
19663
|
-
exports.ɵct =
|
|
19664
|
-
exports.ɵcu =
|
|
19665
|
-
exports.ɵcv =
|
|
19666
|
-
exports.ɵcw =
|
|
19667
|
-
exports.ɵcx =
|
|
19668
|
-
exports.ɵcy =
|
|
21371
|
+
exports.ɵce = ContentStripFacetFilterComponent;
|
|
21372
|
+
exports.ɵcf = ContentStripWithTabsPillsComponent;
|
|
21373
|
+
exports.ɵcg = CompetencyPassbookComponent;
|
|
21374
|
+
exports.ɵch = CompetencyPassbookService;
|
|
21375
|
+
exports.ɵci = PillsModule;
|
|
21376
|
+
exports.ɵcj = PillsComponent;
|
|
21377
|
+
exports.ɵck = CompetencyPassbookMdoComponent;
|
|
21378
|
+
exports.ɵcl = CompetencyPassbookMdoService;
|
|
21379
|
+
exports.ɵcm = UserContentRatingLibComponent;
|
|
21380
|
+
exports.ɵcn = RatingService;
|
|
21381
|
+
exports.ɵco = UserContentRatingLibService;
|
|
21382
|
+
exports.ɵcp = MdoChannelV1Component;
|
|
21383
|
+
exports.ɵcq = MdoChannelV2Component;
|
|
21384
|
+
exports.ɵcr = ProvidersV2Component;
|
|
21385
|
+
exports.ɵcs = NationalLearningComponent;
|
|
21386
|
+
exports.ɵct = KeyHighlightsComponent;
|
|
21387
|
+
exports.ɵcu = EventsComponent;
|
|
21388
|
+
exports.ɵcv = EventCardComponent;
|
|
21389
|
+
exports.ɵcw = MdoLeaderboardComponent;
|
|
21390
|
+
exports.ɵcx = HighlightsOfWeekComponent;
|
|
21391
|
+
exports.ɵcy = SpeakersComponent;
|
|
21392
|
+
exports.ɵcz = UserProgressComponent;
|
|
19669
21393
|
exports.ɵd = ConfigurationsService;
|
|
19670
21394
|
exports.ɵe = HorizontalScrollerV2Module;
|
|
19671
21395
|
exports.ɵf = HorizontalScrollerV2Component;
|