@sunbird-cb/consumption 0.0.84 → 0.0.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/sunbird-cb-consumption.umd.js +1733 -60
- 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/highlights-of-week/highlights-of-week.component.js +1 -1
- package/esm2015/lib/_common/key-highlights/key-highlights.component.js +5 -2
- 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/speakers/speakers.component.js +1 -1
- package/esm2015/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.component.js +1170 -0
- package/esm2015/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.model.js +231 -0
- package/esm2015/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.module.js +63 -0
- package/esm2015/lib/_common/user-progress/user-progress.component.js +8 -1
- 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/highlights-of-week/highlights-of-week.component.js +1 -1
- package/esm5/lib/_common/key-highlights/key-highlights.component.js +5 -2
- 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/speakers/speakers.component.js +1 -1
- package/esm5/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.component.js +1390 -0
- package/esm5/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.model.js +231 -0
- package/esm5/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.module.js +67 -0
- package/esm5/lib/_common/user-progress/user-progress.component.js +8 -1
- 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 +1489 -40
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +1711 -40
- package/fesm5/sunbird-cb-consumption.js.map +1 -1
- package/lib/_common/key-highlights/key-highlights.component.d.ts +1 -0
- package/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.component.d.ts +127 -0
- package/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.model.d.ts +157 -0
- package/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.module.d.ts +2 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/sunbird-cb-consumption.d.ts +22 -21
- package/sunbird-cb-consumption.metadata.json +1 -1
|
@@ -8680,7 +8680,7 @@ class ConsumptionModule {
|
|
|
8680
8680
|
}
|
|
8681
8681
|
ConsumptionModule.decorators = [
|
|
8682
8682
|
{ type: NgModule, args: [{
|
|
8683
|
-
declarations: [ConsumptionComponent
|
|
8683
|
+
declarations: [ConsumptionComponent],
|
|
8684
8684
|
imports: [
|
|
8685
8685
|
ContentStripWithTabsLibModule,
|
|
8686
8686
|
SlidersLibModule
|
|
@@ -12126,6 +12126,1391 @@ const WIDGET_REGISTRATION_LIB_CONFIG = [
|
|
|
12126
12126
|
}
|
|
12127
12127
|
];
|
|
12128
12128
|
|
|
12129
|
+
/**
|
|
12130
|
+
* @fileoverview added by tsickle
|
|
12131
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
12132
|
+
*/
|
|
12133
|
+
var NsContentStripWithFacets;
|
|
12134
|
+
(function (NsContentStripWithFacets) {
|
|
12135
|
+
/**
|
|
12136
|
+
* @record
|
|
12137
|
+
*/
|
|
12138
|
+
function IContentStripMultiple() { }
|
|
12139
|
+
NsContentStripWithFacets.IContentStripMultiple = IContentStripMultiple;
|
|
12140
|
+
if (false) {
|
|
12141
|
+
/** @type {?|undefined} */
|
|
12142
|
+
IContentStripMultiple.prototype.errorWidget;
|
|
12143
|
+
/** @type {?|undefined} */
|
|
12144
|
+
IContentStripMultiple.prototype.loader;
|
|
12145
|
+
/** @type {?|undefined} */
|
|
12146
|
+
IContentStripMultiple.prototype.noDataWidget;
|
|
12147
|
+
/** @type {?} */
|
|
12148
|
+
IContentStripMultiple.prototype.strips;
|
|
12149
|
+
/** @type {?|undefined} */
|
|
12150
|
+
IContentStripMultiple.prototype.isChannelStrip;
|
|
12151
|
+
}
|
|
12152
|
+
/**
|
|
12153
|
+
* @record
|
|
12154
|
+
*/
|
|
12155
|
+
function IContentStripUnit() { }
|
|
12156
|
+
NsContentStripWithFacets.IContentStripUnit = IContentStripUnit;
|
|
12157
|
+
if (false) {
|
|
12158
|
+
/** @type {?|undefined} */
|
|
12159
|
+
IContentStripUnit.prototype.stripRequestFor;
|
|
12160
|
+
/** @type {?|undefined} */
|
|
12161
|
+
IContentStripUnit.prototype.onTabClickRequest;
|
|
12162
|
+
/** @type {?|undefined} */
|
|
12163
|
+
IContentStripUnit.prototype.hideViewMoreUrl;
|
|
12164
|
+
/** @type {?} */
|
|
12165
|
+
IContentStripUnit.prototype.type;
|
|
12166
|
+
/** @type {?|undefined} */
|
|
12167
|
+
IContentStripUnit.prototype.disableTranslate;
|
|
12168
|
+
/** @type {?} */
|
|
12169
|
+
IContentStripUnit.prototype.key;
|
|
12170
|
+
/** @type {?} */
|
|
12171
|
+
IContentStripUnit.prototype.title;
|
|
12172
|
+
/** @type {?|undefined} */
|
|
12173
|
+
IContentStripUnit.prototype.customeClass;
|
|
12174
|
+
/** @type {?|undefined} */
|
|
12175
|
+
IContentStripUnit.prototype.nodataMsg;
|
|
12176
|
+
/** @type {?|undefined} */
|
|
12177
|
+
IContentStripUnit.prototype.stripTitleLink;
|
|
12178
|
+
/** @type {?|undefined} */
|
|
12179
|
+
IContentStripUnit.prototype.sliderConfig;
|
|
12180
|
+
/** @type {?|undefined} */
|
|
12181
|
+
IContentStripUnit.prototype.tabs;
|
|
12182
|
+
/** @type {?|undefined} */
|
|
12183
|
+
IContentStripUnit.prototype.titleDescription;
|
|
12184
|
+
/** @type {?|undefined} */
|
|
12185
|
+
IContentStripUnit.prototype.name;
|
|
12186
|
+
/** @type {?|undefined} */
|
|
12187
|
+
IContentStripUnit.prototype.mode;
|
|
12188
|
+
/** @type {?|undefined} */
|
|
12189
|
+
IContentStripUnit.prototype.info;
|
|
12190
|
+
/** @type {?|undefined} */
|
|
12191
|
+
IContentStripUnit.prototype.logo;
|
|
12192
|
+
/** @type {?|undefined} */
|
|
12193
|
+
IContentStripUnit.prototype.preWidgets;
|
|
12194
|
+
/** @type {?|undefined} */
|
|
12195
|
+
IContentStripUnit.prototype.postWidgets;
|
|
12196
|
+
/** @type {?|undefined} */
|
|
12197
|
+
IContentStripUnit.prototype.stripConfig;
|
|
12198
|
+
/** @type {?|undefined} */
|
|
12199
|
+
IContentStripUnit.prototype.canHideStrip;
|
|
12200
|
+
/** @type {?} */
|
|
12201
|
+
IContentStripUnit.prototype.showStrip;
|
|
12202
|
+
/** @type {?|undefined} */
|
|
12203
|
+
IContentStripUnit.prototype.filters;
|
|
12204
|
+
/** @type {?|undefined} */
|
|
12205
|
+
IContentStripUnit.prototype.selectAll;
|
|
12206
|
+
/** @type {?|undefined} */
|
|
12207
|
+
IContentStripUnit.prototype.request;
|
|
12208
|
+
/** @type {?|undefined} */
|
|
12209
|
+
IContentStripUnit.prototype.searchV6Type;
|
|
12210
|
+
/** @type {?|undefined} */
|
|
12211
|
+
IContentStripUnit.prototype.stripBackground;
|
|
12212
|
+
/** @type {?|undefined} */
|
|
12213
|
+
IContentStripUnit.prototype.noDataWidget;
|
|
12214
|
+
/** @type {?|undefined} */
|
|
12215
|
+
IContentStripUnit.prototype.loader;
|
|
12216
|
+
/** @type {?|undefined} */
|
|
12217
|
+
IContentStripUnit.prototype.loaderWidgets;
|
|
12218
|
+
/** @type {?|undefined} */
|
|
12219
|
+
IContentStripUnit.prototype.errorWidget;
|
|
12220
|
+
/** @type {?|undefined} */
|
|
12221
|
+
IContentStripUnit.prototype.refreshEvent;
|
|
12222
|
+
/** @type {?|undefined} */
|
|
12223
|
+
IContentStripUnit.prototype.fetchLikes;
|
|
12224
|
+
/** @type {?|undefined} */
|
|
12225
|
+
IContentStripUnit.prototype.secondaryHeading;
|
|
12226
|
+
/** @type {?|undefined} */
|
|
12227
|
+
IContentStripUnit.prototype.viewMoreUrl;
|
|
12228
|
+
/** @type {?|undefined} */
|
|
12229
|
+
IContentStripUnit.prototype.data;
|
|
12230
|
+
}
|
|
12231
|
+
/**
|
|
12232
|
+
* @record
|
|
12233
|
+
*/
|
|
12234
|
+
function IStripRequestApi() { }
|
|
12235
|
+
NsContentStripWithFacets.IStripRequestApi = IStripRequestApi;
|
|
12236
|
+
if (false) {
|
|
12237
|
+
/** @type {?} */
|
|
12238
|
+
IStripRequestApi.prototype.path;
|
|
12239
|
+
/** @type {?|undefined} */
|
|
12240
|
+
IStripRequestApi.prototype.queryParams;
|
|
12241
|
+
}
|
|
12242
|
+
/**
|
|
12243
|
+
* @record
|
|
12244
|
+
*/
|
|
12245
|
+
function INetworkRequestApi() { }
|
|
12246
|
+
NsContentStripWithFacets.INetworkRequestApi = INetworkRequestApi;
|
|
12247
|
+
if (false) {
|
|
12248
|
+
/** @type {?} */
|
|
12249
|
+
INetworkRequestApi.prototype.path;
|
|
12250
|
+
/** @type {?|undefined} */
|
|
12251
|
+
INetworkRequestApi.prototype.data;
|
|
12252
|
+
}
|
|
12253
|
+
/**
|
|
12254
|
+
* @record
|
|
12255
|
+
*/
|
|
12256
|
+
function IStripInfo() { }
|
|
12257
|
+
NsContentStripWithFacets.IStripInfo = IStripInfo;
|
|
12258
|
+
if (false) {
|
|
12259
|
+
/** @type {?} */
|
|
12260
|
+
IStripInfo.prototype.mode;
|
|
12261
|
+
/** @type {?|undefined} */
|
|
12262
|
+
IStripInfo.prototype.visibilityMode;
|
|
12263
|
+
/** @type {?} */
|
|
12264
|
+
IStripInfo.prototype.icon;
|
|
12265
|
+
/** @type {?} */
|
|
12266
|
+
IStripInfo.prototype.widget;
|
|
12267
|
+
}
|
|
12268
|
+
/**
|
|
12269
|
+
* @record
|
|
12270
|
+
*/
|
|
12271
|
+
function IStripConfig() { }
|
|
12272
|
+
if (false) {
|
|
12273
|
+
/** @type {?} */
|
|
12274
|
+
IStripConfig.prototype.cardSubType;
|
|
12275
|
+
/** @type {?|undefined} */
|
|
12276
|
+
IStripConfig.prototype.postCardForSearch;
|
|
12277
|
+
/** @type {?|undefined} */
|
|
12278
|
+
IStripConfig.prototype.intranetMode;
|
|
12279
|
+
/** @type {?|undefined} */
|
|
12280
|
+
IStripConfig.prototype.deletedMode;
|
|
12281
|
+
/** @type {?|undefined} */
|
|
12282
|
+
IStripConfig.prototype.contentTags;
|
|
12283
|
+
/** @type {?|undefined} */
|
|
12284
|
+
IStripConfig.prototype.hideShowAll;
|
|
12285
|
+
}
|
|
12286
|
+
/**
|
|
12287
|
+
* @record
|
|
12288
|
+
*/
|
|
12289
|
+
function IContentTags() { }
|
|
12290
|
+
NsContentStripWithFacets.IContentTags = IContentTags;
|
|
12291
|
+
if (false) {
|
|
12292
|
+
/** @type {?|undefined} */
|
|
12293
|
+
IContentTags.prototype.daysSpan;
|
|
12294
|
+
/** @type {?|undefined} */
|
|
12295
|
+
IContentTags.prototype.excludeContentType;
|
|
12296
|
+
/** @type {?|undefined} */
|
|
12297
|
+
IContentTags.prototype.excludeMimeType;
|
|
12298
|
+
/** @type {?} */
|
|
12299
|
+
IContentTags.prototype.tag;
|
|
12300
|
+
/** @type {?} */
|
|
12301
|
+
IContentTags.prototype.criteriaField;
|
|
12302
|
+
}
|
|
12303
|
+
/**
|
|
12304
|
+
* @record
|
|
12305
|
+
*/
|
|
12306
|
+
function IContentStripResponseApi() { }
|
|
12307
|
+
NsContentStripWithFacets.IContentStripResponseApi = IContentStripResponseApi;
|
|
12308
|
+
if (false) {
|
|
12309
|
+
/** @type {?} */
|
|
12310
|
+
IContentStripResponseApi.prototype.contents;
|
|
12311
|
+
/** @type {?|undefined} */
|
|
12312
|
+
IContentStripResponseApi.prototype.hasMore;
|
|
12313
|
+
/** @type {?|undefined} */
|
|
12314
|
+
IContentStripResponseApi.prototype.pageState;
|
|
12315
|
+
/** @type {?|undefined} */
|
|
12316
|
+
IContentStripResponseApi.prototype.totalHits;
|
|
12317
|
+
}
|
|
12318
|
+
/**
|
|
12319
|
+
* @record
|
|
12320
|
+
*/
|
|
12321
|
+
function IContentStripTab() { }
|
|
12322
|
+
NsContentStripWithFacets.IContentStripTab = IContentStripTab;
|
|
12323
|
+
if (false) {
|
|
12324
|
+
/** @type {?|undefined} */
|
|
12325
|
+
IContentStripTab.prototype.pillsData;
|
|
12326
|
+
/** @type {?} */
|
|
12327
|
+
IContentStripTab.prototype.label;
|
|
12328
|
+
/** @type {?} */
|
|
12329
|
+
IContentStripTab.prototype.value;
|
|
12330
|
+
/** @type {?} */
|
|
12331
|
+
IContentStripTab.prototype.showTabDataCount;
|
|
12332
|
+
/** @type {?|undefined} */
|
|
12333
|
+
IContentStripTab.prototype.requestRequired;
|
|
12334
|
+
/** @type {?|undefined} */
|
|
12335
|
+
IContentStripTab.prototype.computeDataOnClick;
|
|
12336
|
+
/** @type {?|undefined} */
|
|
12337
|
+
IContentStripTab.prototype.computeDataOnClickKey;
|
|
12338
|
+
/** @type {?|undefined} */
|
|
12339
|
+
IContentStripTab.prototype.request;
|
|
12340
|
+
/** @type {?|undefined} */
|
|
12341
|
+
IContentStripTab.prototype.widgets;
|
|
12342
|
+
/** @type {?|undefined} */
|
|
12343
|
+
IContentStripTab.prototype.maxWidgets;
|
|
12344
|
+
/** @type {?|undefined} */
|
|
12345
|
+
IContentStripTab.prototype.fetchTabStatus;
|
|
12346
|
+
/** @type {?|undefined} */
|
|
12347
|
+
IContentStripTab.prototype.nodataMsg;
|
|
12348
|
+
/** @type {?|undefined} */
|
|
12349
|
+
IContentStripTab.prototype.tabLoading;
|
|
12350
|
+
/** @type {?|undefined} */
|
|
12351
|
+
IContentStripTab.prototype.facets;
|
|
12352
|
+
}
|
|
12353
|
+
})(NsContentStripWithFacets || (NsContentStripWithFacets = {}));
|
|
12354
|
+
/** @enum {string} */
|
|
12355
|
+
const ApiRequestFor = {
|
|
12356
|
+
SEARCH: 'search',
|
|
12357
|
+
};
|
|
12358
|
+
|
|
12359
|
+
/**
|
|
12360
|
+
* @fileoverview added by tsickle
|
|
12361
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
12362
|
+
*/
|
|
12363
|
+
/**
|
|
12364
|
+
* @record
|
|
12365
|
+
*/
|
|
12366
|
+
function IStripUnitContentData$1() { }
|
|
12367
|
+
if (false) {
|
|
12368
|
+
/** @type {?} */
|
|
12369
|
+
IStripUnitContentData$1.prototype.key;
|
|
12370
|
+
/** @type {?} */
|
|
12371
|
+
IStripUnitContentData$1.prototype.canHideStrip;
|
|
12372
|
+
/** @type {?|undefined} */
|
|
12373
|
+
IStripUnitContentData$1.prototype.mode;
|
|
12374
|
+
/** @type {?} */
|
|
12375
|
+
IStripUnitContentData$1.prototype.showStrip;
|
|
12376
|
+
/** @type {?} */
|
|
12377
|
+
IStripUnitContentData$1.prototype.disableTranslate;
|
|
12378
|
+
/** @type {?|undefined} */
|
|
12379
|
+
IStripUnitContentData$1.prototype.widgets;
|
|
12380
|
+
/** @type {?} */
|
|
12381
|
+
IStripUnitContentData$1.prototype.stripTitle;
|
|
12382
|
+
/** @type {?|undefined} */
|
|
12383
|
+
IStripUnitContentData$1.prototype.hideViewMoreUrl;
|
|
12384
|
+
/** @type {?|undefined} */
|
|
12385
|
+
IStripUnitContentData$1.prototype.stripTitleLink;
|
|
12386
|
+
/** @type {?|undefined} */
|
|
12387
|
+
IStripUnitContentData$1.prototype.sliderConfig;
|
|
12388
|
+
/** @type {?} */
|
|
12389
|
+
IStripUnitContentData$1.prototype.stripConfig;
|
|
12390
|
+
/** @type {?|undefined} */
|
|
12391
|
+
IStripUnitContentData$1.prototype.tabs;
|
|
12392
|
+
/** @type {?|undefined} */
|
|
12393
|
+
IStripUnitContentData$1.prototype.stripName;
|
|
12394
|
+
/** @type {?|undefined} */
|
|
12395
|
+
IStripUnitContentData$1.prototype.stripLogo;
|
|
12396
|
+
/** @type {?|undefined} */
|
|
12397
|
+
IStripUnitContentData$1.prototype.description;
|
|
12398
|
+
/** @type {?|undefined} */
|
|
12399
|
+
IStripUnitContentData$1.prototype.stripInfo;
|
|
12400
|
+
/** @type {?|undefined} */
|
|
12401
|
+
IStripUnitContentData$1.prototype.noDataWidget;
|
|
12402
|
+
/** @type {?|undefined} */
|
|
12403
|
+
IStripUnitContentData$1.prototype.errorWidget;
|
|
12404
|
+
/** @type {?} */
|
|
12405
|
+
IStripUnitContentData$1.prototype.showOnNoData;
|
|
12406
|
+
/** @type {?} */
|
|
12407
|
+
IStripUnitContentData$1.prototype.showOnLoader;
|
|
12408
|
+
/** @type {?} */
|
|
12409
|
+
IStripUnitContentData$1.prototype.showOnError;
|
|
12410
|
+
/** @type {?|undefined} */
|
|
12411
|
+
IStripUnitContentData$1.prototype.loaderWidgets;
|
|
12412
|
+
/** @type {?|undefined} */
|
|
12413
|
+
IStripUnitContentData$1.prototype.stripBackground;
|
|
12414
|
+
/** @type {?|undefined} */
|
|
12415
|
+
IStripUnitContentData$1.prototype.secondaryHeading;
|
|
12416
|
+
/** @type {?} */
|
|
12417
|
+
IStripUnitContentData$1.prototype.viewMoreUrl;
|
|
12418
|
+
/** @type {?|undefined} */
|
|
12419
|
+
IStripUnitContentData$1.prototype.request;
|
|
12420
|
+
}
|
|
12421
|
+
class ContentStripFacetFilterComponent extends WidgetBaseComponent {
|
|
12422
|
+
/**
|
|
12423
|
+
* @param {?} environment
|
|
12424
|
+
* @param {?} contentSvc
|
|
12425
|
+
* @param {?} loggerSvc
|
|
12426
|
+
* @param {?} eventSvc
|
|
12427
|
+
* @param {?} configSvc
|
|
12428
|
+
* @param {?} utilitySvc
|
|
12429
|
+
* @param {?} router
|
|
12430
|
+
* @param {?} userSvc
|
|
12431
|
+
* @param {?} translate
|
|
12432
|
+
* @param {?} langtranslations
|
|
12433
|
+
*/
|
|
12434
|
+
constructor(environment, contentSvc, loggerSvc, eventSvc, configSvc, utilitySvc, router, userSvc, translate, langtranslations) {
|
|
12435
|
+
super();
|
|
12436
|
+
this.contentSvc = contentSvc;
|
|
12437
|
+
this.loggerSvc = loggerSvc;
|
|
12438
|
+
this.eventSvc = eventSvc;
|
|
12439
|
+
this.configSvc = configSvc;
|
|
12440
|
+
this.utilitySvc = utilitySvc;
|
|
12441
|
+
this.router = router;
|
|
12442
|
+
this.userSvc = userSvc;
|
|
12443
|
+
this.translate = translate;
|
|
12444
|
+
this.langtranslations = langtranslations;
|
|
12445
|
+
this.emptyResponse = new EventEmitter();
|
|
12446
|
+
this.viewAllResponse = new EventEmitter();
|
|
12447
|
+
this.telemtryResponse = new EventEmitter();
|
|
12448
|
+
this.providerId = '';
|
|
12449
|
+
this.emitViewAll = false;
|
|
12450
|
+
this.channnelName = '';
|
|
12451
|
+
this.id = `ws-strip-miltiple_${Math.random()}`;
|
|
12452
|
+
this.stripsResultDataMap = {};
|
|
12453
|
+
this.stripsKeyOrder = [];
|
|
12454
|
+
this.showAccordionData = true;
|
|
12455
|
+
this.showParentLoader = false;
|
|
12456
|
+
this.showParentError = false;
|
|
12457
|
+
this.showParentNoData = false;
|
|
12458
|
+
this.errorDataCount = 0;
|
|
12459
|
+
this.noDataCount = 0;
|
|
12460
|
+
this.successDataCount = 0;
|
|
12461
|
+
this.contentAvailable = true;
|
|
12462
|
+
this.baseUrl = this.configSvc.sitePath || '';
|
|
12463
|
+
this.veifiedKarmayogi = false;
|
|
12464
|
+
this.changeEventSubscription = null;
|
|
12465
|
+
this.defaultMaxWidgets = 12;
|
|
12466
|
+
this.todaysEvents = [];
|
|
12467
|
+
if (localStorage.getItem('websiteLanguage')) {
|
|
12468
|
+
this.translate.setDefaultLang('en');
|
|
12469
|
+
/** @type {?} */
|
|
12470
|
+
let lang = JSON.stringify(localStorage.getItem('websiteLanguage'));
|
|
12471
|
+
lang = lang.replace(/\"/g, '');
|
|
12472
|
+
this.translate.use(lang);
|
|
12473
|
+
}
|
|
12474
|
+
this.environment = environment;
|
|
12475
|
+
}
|
|
12476
|
+
/**
|
|
12477
|
+
* @return {?}
|
|
12478
|
+
*/
|
|
12479
|
+
ngOnDestroy() {
|
|
12480
|
+
throw new Error('Method not implemented.');
|
|
12481
|
+
}
|
|
12482
|
+
/**
|
|
12483
|
+
* @return {?}
|
|
12484
|
+
*/
|
|
12485
|
+
ngOnInit() {
|
|
12486
|
+
this.initData();
|
|
12487
|
+
this.contentSvc.telemetryData$.subscribe((/**
|
|
12488
|
+
* @param {?} data
|
|
12489
|
+
* @return {?}
|
|
12490
|
+
*/
|
|
12491
|
+
(data) => {
|
|
12492
|
+
this.telemtryResponse.emit(data);
|
|
12493
|
+
}));
|
|
12494
|
+
}
|
|
12495
|
+
/**
|
|
12496
|
+
* @private
|
|
12497
|
+
* @return {?}
|
|
12498
|
+
*/
|
|
12499
|
+
initData() {
|
|
12500
|
+
this.stripsKeyOrder = this.widgetData && this.widgetData.strips && this.widgetData.strips.map((/**
|
|
12501
|
+
* @param {?} strip
|
|
12502
|
+
* @return {?}
|
|
12503
|
+
*/
|
|
12504
|
+
strip => strip.key)) || [];
|
|
12505
|
+
if (this.widgetData.loader && this.widgetData.strips.length) {
|
|
12506
|
+
this.showParentLoader = true;
|
|
12507
|
+
}
|
|
12508
|
+
// Fetch the data
|
|
12509
|
+
for (const strip of this.widgetData.strips) {
|
|
12510
|
+
if (this.checkForEmptyWidget(strip)) {
|
|
12511
|
+
this.fetchStripFromRequestData(strip, false);
|
|
12512
|
+
}
|
|
12513
|
+
else {
|
|
12514
|
+
this.processStrip(strip, [], 'done', true, null);
|
|
12515
|
+
}
|
|
12516
|
+
}
|
|
12517
|
+
// Subscription for changes
|
|
12518
|
+
/** @type {?} */
|
|
12519
|
+
const keyAndEvent = this.widgetData.strips
|
|
12520
|
+
.map((/**
|
|
12521
|
+
* @param {?} strip
|
|
12522
|
+
* @return {?}
|
|
12523
|
+
*/
|
|
12524
|
+
strip => ({
|
|
12525
|
+
key: strip.key,
|
|
12526
|
+
type: (strip.refreshEvent && strip.refreshEvent.eventType) || '',
|
|
12527
|
+
from: (strip.refreshEvent && strip.refreshEvent.from.toString()) || '',
|
|
12528
|
+
})))
|
|
12529
|
+
.filter((/**
|
|
12530
|
+
* @param {?} __0
|
|
12531
|
+
* @return {?}
|
|
12532
|
+
*/
|
|
12533
|
+
({ key, type, from }) => key && type && from));
|
|
12534
|
+
/** @type {?} */
|
|
12535
|
+
const eventTypeSet = new Set(keyAndEvent.map((/**
|
|
12536
|
+
* @param {?} e
|
|
12537
|
+
* @return {?}
|
|
12538
|
+
*/
|
|
12539
|
+
e => e.type)));
|
|
12540
|
+
this.changeEventSubscription = this.eventSvc.events$
|
|
12541
|
+
.pipe(filter((/**
|
|
12542
|
+
* @param {?} event
|
|
12543
|
+
* @return {?}
|
|
12544
|
+
*/
|
|
12545
|
+
event => eventTypeSet.has(event.eventType))))
|
|
12546
|
+
.subscribe((/**
|
|
12547
|
+
* @param {?} event
|
|
12548
|
+
* @return {?}
|
|
12549
|
+
*/
|
|
12550
|
+
event => {
|
|
12551
|
+
keyAndEvent
|
|
12552
|
+
.filter((/**
|
|
12553
|
+
* @param {?} e
|
|
12554
|
+
* @return {?}
|
|
12555
|
+
*/
|
|
12556
|
+
e => e.type === event.eventType && e.from === event.from))
|
|
12557
|
+
.map((/**
|
|
12558
|
+
* @param {?} e
|
|
12559
|
+
* @return {?}
|
|
12560
|
+
*/
|
|
12561
|
+
e => e.key))
|
|
12562
|
+
.forEach((/**
|
|
12563
|
+
* @param {?} k
|
|
12564
|
+
* @return {?}
|
|
12565
|
+
*/
|
|
12566
|
+
k => this.fetchStripFromKey(k, false)));
|
|
12567
|
+
}));
|
|
12568
|
+
}
|
|
12569
|
+
/**
|
|
12570
|
+
* @private
|
|
12571
|
+
* @param {?} key
|
|
12572
|
+
* @param {?=} calculateParentStatus
|
|
12573
|
+
* @return {?}
|
|
12574
|
+
*/
|
|
12575
|
+
fetchStripFromKey(key, calculateParentStatus = true) {
|
|
12576
|
+
/** @type {?} */
|
|
12577
|
+
const stripData = this.widgetData.strips.find((/**
|
|
12578
|
+
* @param {?} strip
|
|
12579
|
+
* @return {?}
|
|
12580
|
+
*/
|
|
12581
|
+
strip => strip.key === key));
|
|
12582
|
+
if (stripData) {
|
|
12583
|
+
this.fetchStripFromRequestData(stripData, calculateParentStatus);
|
|
12584
|
+
}
|
|
12585
|
+
}
|
|
12586
|
+
/**
|
|
12587
|
+
* @private
|
|
12588
|
+
* @param {?} strip
|
|
12589
|
+
* @param {?=} calculateParentStatus
|
|
12590
|
+
* @return {?}
|
|
12591
|
+
*/
|
|
12592
|
+
fetchStripFromRequestData(strip, calculateParentStatus = true) {
|
|
12593
|
+
// setting initial values
|
|
12594
|
+
strip.loaderWidgets = this.transformSkeletonToWidgets(strip);
|
|
12595
|
+
this.processStrip(strip, [], 'fetching', false, null);
|
|
12596
|
+
if (strip && strip.stripRequestFor === ApiRequestFor.SEARCH && !strip.onTabClickRequest) {
|
|
12597
|
+
this.fetchFromSearch(strip, calculateParentStatus);
|
|
12598
|
+
}
|
|
12599
|
+
}
|
|
12600
|
+
/**
|
|
12601
|
+
* @private
|
|
12602
|
+
* @param {?} strip
|
|
12603
|
+
* @return {?}
|
|
12604
|
+
*/
|
|
12605
|
+
transformSkeletonToWidgets(strip) {
|
|
12606
|
+
return [1, 2, 3, 4, 5, 6, 7, 7, 8, 9, 10].map((/**
|
|
12607
|
+
* @param {?} _content
|
|
12608
|
+
* @return {?}
|
|
12609
|
+
*/
|
|
12610
|
+
_content => ({
|
|
12611
|
+
widgetType: 'cardLib',
|
|
12612
|
+
widgetSubType: 'cardContentLib',
|
|
12613
|
+
widgetHostClass: 'mb-2',
|
|
12614
|
+
widgetData: {
|
|
12615
|
+
cardSubType: strip.loaderConfig && strip.loaderConfig.cardSubType || 'card-standard-skeleton',
|
|
12616
|
+
cardCustomeClass: strip.customeClass ? strip.customeClass : '',
|
|
12617
|
+
},
|
|
12618
|
+
})));
|
|
12619
|
+
}
|
|
12620
|
+
/**
|
|
12621
|
+
* @private
|
|
12622
|
+
* @param {?} strip
|
|
12623
|
+
* @param {?=} results
|
|
12624
|
+
* @param {?=} fetchStatus
|
|
12625
|
+
* @param {?=} calculateParentStatus
|
|
12626
|
+
* @param {?=} _viewMoreUrl
|
|
12627
|
+
* @param {?=} tabsResults
|
|
12628
|
+
* @return {?}
|
|
12629
|
+
*/
|
|
12630
|
+
processStrip(strip, results = [], fetchStatus, calculateParentStatus = true, _viewMoreUrl, tabsResults) {
|
|
12631
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12632
|
+
/** @type {?} */
|
|
12633
|
+
const stripData = {
|
|
12634
|
+
viewMoreUrl: strip.viewMoreUrl,
|
|
12635
|
+
key: strip.key,
|
|
12636
|
+
canHideStrip: Boolean(strip.canHideStrip),
|
|
12637
|
+
showStrip: this.getIfStripHidden(strip.key),
|
|
12638
|
+
noDataWidget: strip.noDataWidget,
|
|
12639
|
+
errorWidget: strip.errorWidget,
|
|
12640
|
+
stripInfo: strip.info,
|
|
12641
|
+
stripTitle: strip.title,
|
|
12642
|
+
stripTitleLink: strip.stripTitleLink,
|
|
12643
|
+
disableTranslate: strip.disableTranslate,
|
|
12644
|
+
sliderConfig: strip.sliderConfig,
|
|
12645
|
+
tabs: tabsResults ? tabsResults : strip.tabs,
|
|
12646
|
+
stripName: strip.name,
|
|
12647
|
+
mode: strip.mode,
|
|
12648
|
+
stripConfig: strip.stripConfig,
|
|
12649
|
+
stripBackground: strip.stripBackground,
|
|
12650
|
+
secondaryHeading: strip.secondaryHeading,
|
|
12651
|
+
loaderWidgets: strip.loaderWidgets || [],
|
|
12652
|
+
hideViewMoreUrl: strip.hideViewMoreUrl || false,
|
|
12653
|
+
widgets: fetchStatus === 'done'
|
|
12654
|
+
? [
|
|
12655
|
+
...(strip.preWidgets || []).map((/**
|
|
12656
|
+
* @param {?} w
|
|
12657
|
+
* @return {?}
|
|
12658
|
+
*/
|
|
12659
|
+
w => (Object.assign({}, w, { widgetHostClass: `mb-2 ${w.widgetHostClass}` })))),
|
|
12660
|
+
...results,
|
|
12661
|
+
...(strip.postWidgets || []).map((/**
|
|
12662
|
+
* @param {?} w
|
|
12663
|
+
* @return {?}
|
|
12664
|
+
*/
|
|
12665
|
+
w => (Object.assign({}, w, { widgetHostClass: `mb-2 ${w.widgetHostClass}` })))),
|
|
12666
|
+
]
|
|
12667
|
+
: [],
|
|
12668
|
+
showOnNoData: Boolean(strip.noDataWidget &&
|
|
12669
|
+
!((strip.preWidgets || []).length + results.length + (strip.postWidgets || []).length) &&
|
|
12670
|
+
fetchStatus === 'done'),
|
|
12671
|
+
showOnLoader: Boolean(strip.loader && fetchStatus === 'fetching'),
|
|
12672
|
+
showOnError: Boolean(strip.errorWidget && fetchStatus === 'error'),
|
|
12673
|
+
};
|
|
12674
|
+
// const stripData = this.stripsResultDataMap[strip.key]
|
|
12675
|
+
this.stripsResultDataMap = Object.assign({}, this.stripsResultDataMap, { [strip.key]: stripData });
|
|
12676
|
+
if (!tabsResults) {
|
|
12677
|
+
if (calculateParentStatus &&
|
|
12678
|
+
(fetchStatus === 'done' || fetchStatus === 'error') &&
|
|
12679
|
+
stripData.widgets) {
|
|
12680
|
+
this.checkParentStatus(fetchStatus, stripData.widgets.length);
|
|
12681
|
+
}
|
|
12682
|
+
if (calculateParentStatus && !(results && results.length > 0)) {
|
|
12683
|
+
this.contentAvailable = false;
|
|
12684
|
+
}
|
|
12685
|
+
else if (results && results.length > 0) {
|
|
12686
|
+
this.contentAvailable = true;
|
|
12687
|
+
}
|
|
12688
|
+
}
|
|
12689
|
+
else {
|
|
12690
|
+
this.contentAvailable = true;
|
|
12691
|
+
}
|
|
12692
|
+
});
|
|
12693
|
+
}
|
|
12694
|
+
/**
|
|
12695
|
+
* @private
|
|
12696
|
+
* @param {?} fetchStatus
|
|
12697
|
+
* @param {?} stripWidgetsCount
|
|
12698
|
+
* @return {?}
|
|
12699
|
+
*/
|
|
12700
|
+
checkParentStatus(fetchStatus, stripWidgetsCount) {
|
|
12701
|
+
if (fetchStatus === 'done' && !stripWidgetsCount) {
|
|
12702
|
+
this.noDataCount += 1;
|
|
12703
|
+
}
|
|
12704
|
+
else if (fetchStatus === 'done' && stripWidgetsCount) {
|
|
12705
|
+
this.successDataCount += 1;
|
|
12706
|
+
}
|
|
12707
|
+
else if (fetchStatus === 'error') {
|
|
12708
|
+
this.errorDataCount += 1;
|
|
12709
|
+
}
|
|
12710
|
+
/** @type {?} */
|
|
12711
|
+
const settledCount = this.noDataCount + this.successDataCount + this.errorDataCount;
|
|
12712
|
+
/** @type {?} */
|
|
12713
|
+
const totalCount = this.widgetData.strips.length;
|
|
12714
|
+
if (this.successDataCount > 0 && settledCount < totalCount) {
|
|
12715
|
+
return;
|
|
12716
|
+
}
|
|
12717
|
+
this.showParentLoader = settledCount !== totalCount;
|
|
12718
|
+
this.showParentNoData =
|
|
12719
|
+
this.noDataCount > 0 && this.noDataCount + this.errorDataCount === totalCount;
|
|
12720
|
+
this.showParentError = this.errorDataCount === totalCount;
|
|
12721
|
+
}
|
|
12722
|
+
/**
|
|
12723
|
+
* @param {?} strip
|
|
12724
|
+
* @return {?}
|
|
12725
|
+
*/
|
|
12726
|
+
checkForEmptyWidget(strip) {
|
|
12727
|
+
if (strip.request &&
|
|
12728
|
+
((strip.request.requestBody && Object.keys(strip.request.requestBody).length))) {
|
|
12729
|
+
return true;
|
|
12730
|
+
}
|
|
12731
|
+
return false;
|
|
12732
|
+
}
|
|
12733
|
+
// strip settings
|
|
12734
|
+
/**
|
|
12735
|
+
* @param {?} data
|
|
12736
|
+
* @return {?}
|
|
12737
|
+
*/
|
|
12738
|
+
toggleInfo(data) {
|
|
12739
|
+
/** @type {?} */
|
|
12740
|
+
const stripInfo = this.stripsResultDataMap[data.key].stripInfo;
|
|
12741
|
+
if (stripInfo) {
|
|
12742
|
+
if (stripInfo.mode !== 'below') {
|
|
12743
|
+
this.loggerSvc.warn(`strip info mode: ${stripInfo.mode} not implemented yet`);
|
|
12744
|
+
stripInfo.mode = 'below';
|
|
12745
|
+
}
|
|
12746
|
+
if (stripInfo.mode === 'below') {
|
|
12747
|
+
this.stripsResultDataMap[data.key].stripInfo = Object.assign({}, stripInfo, { visibilityMode: stripInfo.visibilityMode === 'hidden' ? 'visible' : 'hidden' });
|
|
12748
|
+
}
|
|
12749
|
+
}
|
|
12750
|
+
}
|
|
12751
|
+
/**
|
|
12752
|
+
* @param {?} stripData
|
|
12753
|
+
* @return {?}
|
|
12754
|
+
*/
|
|
12755
|
+
raiseTelemetry(stripData) {
|
|
12756
|
+
this.telemtryResponse.emit(stripData);
|
|
12757
|
+
}
|
|
12758
|
+
/**
|
|
12759
|
+
* @param {?} key
|
|
12760
|
+
* @return {?}
|
|
12761
|
+
*/
|
|
12762
|
+
setHiddenForStrip(key) {
|
|
12763
|
+
this.stripsResultDataMap[key].showStrip = false;
|
|
12764
|
+
sessionStorage.setItem(`cstrip_${key}`, '1');
|
|
12765
|
+
}
|
|
12766
|
+
// selected pills data
|
|
12767
|
+
/**
|
|
12768
|
+
* @param {?} tabdata
|
|
12769
|
+
* @param {?} tabIndex
|
|
12770
|
+
* @return {?}
|
|
12771
|
+
*/
|
|
12772
|
+
getSelectedPillIndex(tabdata, tabIndex) {
|
|
12773
|
+
if (tabdata.pillsData && tabdata.pillsData.length) {
|
|
12774
|
+
/** @type {?} */
|
|
12775
|
+
let index = tabdata.pillsData.findIndex((/**
|
|
12776
|
+
* @param {?} pill
|
|
12777
|
+
* @return {?}
|
|
12778
|
+
*/
|
|
12779
|
+
(pill) => {
|
|
12780
|
+
return pill.selected;
|
|
12781
|
+
}));
|
|
12782
|
+
return index;
|
|
12783
|
+
}
|
|
12784
|
+
return 0;
|
|
12785
|
+
}
|
|
12786
|
+
/**
|
|
12787
|
+
* @param {?} data
|
|
12788
|
+
* @return {?}
|
|
12789
|
+
*/
|
|
12790
|
+
getdata(data) {
|
|
12791
|
+
if (data.stripInfo) {
|
|
12792
|
+
return data.stripInfo.widget;
|
|
12793
|
+
}
|
|
12794
|
+
return {};
|
|
12795
|
+
}
|
|
12796
|
+
/**
|
|
12797
|
+
* @param {?} tabEvent
|
|
12798
|
+
* @param {?} pillIndex
|
|
12799
|
+
* @param {?} stripMap
|
|
12800
|
+
* @param {?} stripKey
|
|
12801
|
+
* @return {?}
|
|
12802
|
+
*/
|
|
12803
|
+
tabClicked(tabEvent, pillIndex, stripMap, stripKey) {
|
|
12804
|
+
if (stripMap && stripMap.tabs && stripMap.tabs[tabEvent.index]) {
|
|
12805
|
+
stripMap.tabs[tabEvent.index].pillsData[pillIndex].fetchTabStatus = 'inprogress';
|
|
12806
|
+
stripMap.tabs[tabEvent.index].pillsData[pillIndex].tabLoading = true;
|
|
12807
|
+
stripMap.showOnLoader = true;
|
|
12808
|
+
}
|
|
12809
|
+
/** @type {?} */
|
|
12810
|
+
const data = {
|
|
12811
|
+
label: `${tabEvent.tab.textLabel}`,
|
|
12812
|
+
index: tabEvent.index,
|
|
12813
|
+
};
|
|
12814
|
+
this.eventSvc.raiseInteractTelemetry({
|
|
12815
|
+
type: WsEvents.EnumInteractTypes.CLICK,
|
|
12816
|
+
subType: WsEvents.EnumInteractSubTypes.HOME_PAGE_STRIP_TABS,
|
|
12817
|
+
id: `${camelCase(data.label)}-tab`,
|
|
12818
|
+
}, {}, {
|
|
12819
|
+
module: WsEvents.EnumTelemetrymodules.HOME,
|
|
12820
|
+
});
|
|
12821
|
+
/** @type {?} */
|
|
12822
|
+
const currentTabFromMap = stripMap.tabs && stripMap.tabs[tabEvent.index];
|
|
12823
|
+
/** @type {?} */
|
|
12824
|
+
const currentPillFromMap = stripMap.tabs && stripMap.tabs[tabEvent.index].pillsData[pillIndex];
|
|
12825
|
+
/** @type {?} */
|
|
12826
|
+
const currentStrip = this.widgetData.strips.find((/**
|
|
12827
|
+
* @param {?} s
|
|
12828
|
+
* @return {?}
|
|
12829
|
+
*/
|
|
12830
|
+
s => s.key === stripKey));
|
|
12831
|
+
if (this.stripsResultDataMap[stripKey] && currentTabFromMap) {
|
|
12832
|
+
this.stripsResultDataMap[stripKey].viewMoreUrl.queryParams = Object.assign({}, this.stripsResultDataMap[stripKey].viewMoreUrl.queryParams, { tabSelected: currentTabFromMap.value, pillSelected: currentPillFromMap.value });
|
|
12833
|
+
}
|
|
12834
|
+
if (currentStrip && currentTabFromMap && !currentTabFromMap.computeDataOnClick && currentPillFromMap) {
|
|
12835
|
+
if (currentPillFromMap.requestRequired && currentPillFromMap.request) {
|
|
12836
|
+
if (currentPillFromMap.request.searchV6) {
|
|
12837
|
+
// this.getTabDataByNewReqSearchV6(currentStrip, tabEvent.index, currentTabFromMap, true);
|
|
12838
|
+
}
|
|
12839
|
+
stripMap.tabs[tabEvent.index].pillsData[pillIndex].tabLoading = false;
|
|
12840
|
+
}
|
|
12841
|
+
else {
|
|
12842
|
+
this.getTabDataByfilter(currentStrip, currentTabFromMap, true);
|
|
12843
|
+
if (stripMap && stripMap.tabs && stripMap.tabs[tabEvent.index]) {
|
|
12844
|
+
stripMap.tabs[tabEvent.index].pillsData[pillIndex].fetchTabStatus = 'inprogress';
|
|
12845
|
+
stripMap.tabs[tabEvent.index].pillsData[pillIndex].tabLoading = false;
|
|
12846
|
+
stripMap.showOnLoader = true;
|
|
12847
|
+
}
|
|
12848
|
+
setTimeout((/**
|
|
12849
|
+
* @return {?}
|
|
12850
|
+
*/
|
|
12851
|
+
() => {
|
|
12852
|
+
if (stripMap && stripMap.tabs && stripMap.tabs[tabEvent.index]) {
|
|
12853
|
+
stripMap.tabs[tabEvent.index].pillsData[pillIndex].fetchTabStatus = 'done';
|
|
12854
|
+
stripMap.tabs[tabEvent.index].pillsData[pillIndex].tabLoading = false;
|
|
12855
|
+
stripMap.showOnLoader = false;
|
|
12856
|
+
this.resetSelectedPill(stripMap.tabs[tabEvent.index].pillsData);
|
|
12857
|
+
stripMap.tabs[tabEvent.index].pillsData[pillIndex]['selected'] = true;
|
|
12858
|
+
}
|
|
12859
|
+
}), 200);
|
|
12860
|
+
}
|
|
12861
|
+
}
|
|
12862
|
+
}
|
|
12863
|
+
/**
|
|
12864
|
+
* @param {?} event
|
|
12865
|
+
* @param {?} stripMap
|
|
12866
|
+
* @param {?} stripKey
|
|
12867
|
+
* @param {?} pillIndex
|
|
12868
|
+
* @param {?} tabIndex
|
|
12869
|
+
* @return {?}
|
|
12870
|
+
*/
|
|
12871
|
+
pillClicked(event, stripMap, stripKey, pillIndex, tabIndex) {
|
|
12872
|
+
if (stripMap && stripMap.tabs && stripMap.tabs[tabIndex]) {
|
|
12873
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].fetchTabStatus = 'inprogress';
|
|
12874
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = true;
|
|
12875
|
+
stripMap.showOnLoader = true;
|
|
12876
|
+
}
|
|
12877
|
+
/** @type {?} */
|
|
12878
|
+
const currentTabFromMap = stripMap.tabs && stripMap.tabs[tabIndex];
|
|
12879
|
+
/** @type {?} */
|
|
12880
|
+
const currentPillFromMap = stripMap.tabs && stripMap.tabs[tabIndex].pillsData[pillIndex];
|
|
12881
|
+
/** @type {?} */
|
|
12882
|
+
const currentStrip = this.widgetData.strips.find((/**
|
|
12883
|
+
* @param {?} s
|
|
12884
|
+
* @return {?}
|
|
12885
|
+
*/
|
|
12886
|
+
s => s.key === stripKey));
|
|
12887
|
+
if (this.stripsResultDataMap[stripKey] && currentTabFromMap) {
|
|
12888
|
+
this.stripsResultDataMap[stripKey].viewMoreUrl.queryParams = Object.assign({}, this.stripsResultDataMap[stripKey].viewMoreUrl.queryParams, { tabSelected: currentTabFromMap.value, pillSelected: currentPillFromMap.value });
|
|
12889
|
+
}
|
|
12890
|
+
if (currentStrip && currentTabFromMap && !currentTabFromMap.computeDataOnClick && currentPillFromMap) {
|
|
12891
|
+
if (currentPillFromMap.requestRequired && currentPillFromMap.request) {
|
|
12892
|
+
// call API to get tab data and process
|
|
12893
|
+
// this.processStrip(currentStrip, [], 'fetching', true, null)
|
|
12894
|
+
if (currentPillFromMap.request.searchV6) {
|
|
12895
|
+
// this.getTabDataByNewReqSearchV6(currentStrip, tabIndex, pillIndex, currentPillFromMap, true);
|
|
12896
|
+
}
|
|
12897
|
+
else if (currentPillFromMap.request.trendingSearch) {
|
|
12898
|
+
// this.getTabDataByNewReqTrending(currentStrip, tabIndex, pillIndex, currentPillFromMap, true);
|
|
12899
|
+
}
|
|
12900
|
+
// if (stripMap && stripMap.tabs && stripMap.tabs[tabEvent.index]) {
|
|
12901
|
+
// stripMap.tabs[tabEvent.index].tabLoading = false;
|
|
12902
|
+
// }
|
|
12903
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = false;
|
|
12904
|
+
}
|
|
12905
|
+
else {
|
|
12906
|
+
this.getTabDataByfilter(currentStrip, currentTabFromMap, true);
|
|
12907
|
+
if (stripMap && stripMap.tabs && stripMap.tabs[tabIndex]) {
|
|
12908
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].fetchTabStatus = 'inprogress';
|
|
12909
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = false;
|
|
12910
|
+
stripMap.showOnLoader = true;
|
|
12911
|
+
}
|
|
12912
|
+
setTimeout((/**
|
|
12913
|
+
* @return {?}
|
|
12914
|
+
*/
|
|
12915
|
+
() => {
|
|
12916
|
+
if (stripMap && stripMap.tabs && stripMap.tabs[tabIndex]) {
|
|
12917
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].fetchTabStatus = 'done';
|
|
12918
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = false;
|
|
12919
|
+
stripMap.showOnLoader = false;
|
|
12920
|
+
this.resetSelectedPill(stripMap.tabs[tabIndex].pillsData);
|
|
12921
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex]['selected'] = true;
|
|
12922
|
+
}
|
|
12923
|
+
}), 200);
|
|
12924
|
+
}
|
|
12925
|
+
}
|
|
12926
|
+
}
|
|
12927
|
+
/**
|
|
12928
|
+
* @param {?} pillData
|
|
12929
|
+
* @return {?}
|
|
12930
|
+
*/
|
|
12931
|
+
resetSelectedPill(pillData) {
|
|
12932
|
+
if (pillData && pillData.length) {
|
|
12933
|
+
pillData.forEach((/**
|
|
12934
|
+
* @param {?} pill
|
|
12935
|
+
* @return {?}
|
|
12936
|
+
*/
|
|
12937
|
+
(pill) => {
|
|
12938
|
+
pill['selected'] = false;
|
|
12939
|
+
}));
|
|
12940
|
+
}
|
|
12941
|
+
}
|
|
12942
|
+
/**
|
|
12943
|
+
* @param {?} strip
|
|
12944
|
+
* @param {?} currentTab
|
|
12945
|
+
* @param {?} calculateParentStatus
|
|
12946
|
+
* @return {?}
|
|
12947
|
+
*/
|
|
12948
|
+
getTabDataByfilter(strip, currentTab, calculateParentStatus) {
|
|
12949
|
+
// tslint:disable:no-console
|
|
12950
|
+
console.log('strip -- ', strip);
|
|
12951
|
+
// tslint:disable:no-console
|
|
12952
|
+
console.log('currentTab -- ', currentTab);
|
|
12953
|
+
// tslint:disable:no-console
|
|
12954
|
+
console.log('calculateParentStatus-- ', calculateParentStatus);
|
|
12955
|
+
// TODO: Write logic for individual filter if passed in config
|
|
12956
|
+
// add switch case based on config key passed
|
|
12957
|
+
}
|
|
12958
|
+
/**
|
|
12959
|
+
* @private
|
|
12960
|
+
* @param {?} key
|
|
12961
|
+
* @return {?}
|
|
12962
|
+
*/
|
|
12963
|
+
getIfStripHidden(key) {
|
|
12964
|
+
/** @type {?} */
|
|
12965
|
+
const storageItem = sessionStorage.getItem(`cstrip_${key}`);
|
|
12966
|
+
return Boolean(storageItem !== '1');
|
|
12967
|
+
}
|
|
12968
|
+
// translate labes
|
|
12969
|
+
/**
|
|
12970
|
+
* @param {?} label
|
|
12971
|
+
* @param {?} type
|
|
12972
|
+
* @return {?}
|
|
12973
|
+
*/
|
|
12974
|
+
translateLabels(label, type) {
|
|
12975
|
+
return this.langtranslations.translateLabel(label, type, '');
|
|
12976
|
+
}
|
|
12977
|
+
/**
|
|
12978
|
+
* @param {?} stripData
|
|
12979
|
+
* @param {?} path
|
|
12980
|
+
* @param {?} queryParamsData
|
|
12981
|
+
* @return {?}
|
|
12982
|
+
*/
|
|
12983
|
+
redirectViewAll(stripData, path, queryParamsData) {
|
|
12984
|
+
if (this.emitViewAll) {
|
|
12985
|
+
this.viewAllResponse.emit(stripData);
|
|
12986
|
+
}
|
|
12987
|
+
else {
|
|
12988
|
+
this.router.navigate([path], { queryParams: queryParamsData });
|
|
12989
|
+
}
|
|
12990
|
+
}
|
|
12991
|
+
/**
|
|
12992
|
+
* @param {?} index
|
|
12993
|
+
* @param {?} item
|
|
12994
|
+
* @return {?}
|
|
12995
|
+
*/
|
|
12996
|
+
identify(index, item) {
|
|
12997
|
+
if (index >= 0) { }
|
|
12998
|
+
return item;
|
|
12999
|
+
}
|
|
13000
|
+
/**
|
|
13001
|
+
* @param {?} index
|
|
13002
|
+
* @param {?} item
|
|
13003
|
+
* @return {?}
|
|
13004
|
+
*/
|
|
13005
|
+
tracker(index, item) {
|
|
13006
|
+
if (index >= 0) { }
|
|
13007
|
+
return get(item, 'widgetData.content.identifier');
|
|
13008
|
+
}
|
|
13009
|
+
/**
|
|
13010
|
+
* @param {?} data
|
|
13011
|
+
* @return {?}
|
|
13012
|
+
*/
|
|
13013
|
+
getContineuLearningLenth(data) {
|
|
13014
|
+
return data.widgets ? data.widgets.length : 0;
|
|
13015
|
+
}
|
|
13016
|
+
/**
|
|
13017
|
+
* @param {?} key
|
|
13018
|
+
* @return {?}
|
|
13019
|
+
*/
|
|
13020
|
+
showAccordion(key) {
|
|
13021
|
+
if (this.utilitySvc.isMobile && this.stripsResultDataMap[key].mode === 'accordion') {
|
|
13022
|
+
return this.showAccordionData;
|
|
13023
|
+
}
|
|
13024
|
+
return true;
|
|
13025
|
+
}
|
|
13026
|
+
/**
|
|
13027
|
+
* @param {?} wData
|
|
13028
|
+
* @param {?} data
|
|
13029
|
+
* @return {?}
|
|
13030
|
+
*/
|
|
13031
|
+
checkCondition(wData, data) {
|
|
13032
|
+
if (wData.strips[0].stripConfig && wData.strips[0].stripConfig.hideShowAll) {
|
|
13033
|
+
return !wData.strips[0].stripConfig.hideShowAll;
|
|
13034
|
+
}
|
|
13035
|
+
return wData.strips[0].viewMoreUrl && data.widgets && data.widgets.length >= 4;
|
|
13036
|
+
}
|
|
13037
|
+
/**
|
|
13038
|
+
* @param {?} data
|
|
13039
|
+
* @return {?}
|
|
13040
|
+
*/
|
|
13041
|
+
checkVisible(data) {
|
|
13042
|
+
return data.stripInfo && data.stripInfo.visibilityMode === 'visible';
|
|
13043
|
+
}
|
|
13044
|
+
/**
|
|
13045
|
+
* @param {?} stripsResultDataMap
|
|
13046
|
+
* @param {?} key
|
|
13047
|
+
* @return {?}
|
|
13048
|
+
*/
|
|
13049
|
+
getSelectedIndex(stripsResultDataMap, key) {
|
|
13050
|
+
/** @type {?} */
|
|
13051
|
+
let returnValue = 0;
|
|
13052
|
+
return returnValue;
|
|
13053
|
+
}
|
|
13054
|
+
/**
|
|
13055
|
+
* @param {?} data
|
|
13056
|
+
* @return {?}
|
|
13057
|
+
*/
|
|
13058
|
+
getLength(data) {
|
|
13059
|
+
if (!data.tabs || !data.tabs.length) {
|
|
13060
|
+
return data.widgets ? data.widgets.length : 0;
|
|
13061
|
+
}
|
|
13062
|
+
{
|
|
13063
|
+
// if tabs are there check if each tab has widgets and get the tab with max widgets
|
|
13064
|
+
/** @type {?} */
|
|
13065
|
+
let tabWithMaxWidgets = {};
|
|
13066
|
+
data.tabs.forEach((/**
|
|
13067
|
+
* @param {?} tab
|
|
13068
|
+
* @return {?}
|
|
13069
|
+
*/
|
|
13070
|
+
(tab) => {
|
|
13071
|
+
if (tab.pillsData && tab.pillsData.length) {
|
|
13072
|
+
tabWithMaxWidgets = tab.pillsData.reduce((/**
|
|
13073
|
+
* @param {?} prev
|
|
13074
|
+
* @param {?} current
|
|
13075
|
+
* @return {?}
|
|
13076
|
+
*/
|
|
13077
|
+
(prev, current) => {
|
|
13078
|
+
if (!prev.widgets && !current.widgets) {
|
|
13079
|
+
return current;
|
|
13080
|
+
}
|
|
13081
|
+
if (prev.widgets && current.widgets) {
|
|
13082
|
+
return (prev.widgets.length > current.widgets.length) ? prev : current;
|
|
13083
|
+
}
|
|
13084
|
+
if (current.widgets && !prev.widgets) {
|
|
13085
|
+
return current;
|
|
13086
|
+
}
|
|
13087
|
+
if (!current.widgets && prev.widgets) {
|
|
13088
|
+
return prev;
|
|
13089
|
+
}
|
|
13090
|
+
return current;
|
|
13091
|
+
// return (prev.widgets && current.widgets && (prev.widgets.length > current.widgets.length) ) ? prev : current
|
|
13092
|
+
// tslint:disable-next-line: align
|
|
13093
|
+
}), data.tabs[0]);
|
|
13094
|
+
}
|
|
13095
|
+
}));
|
|
13096
|
+
// if tabs has atleast 1 widgets then strip will show or else not
|
|
13097
|
+
return tabWithMaxWidgets.widgets ? tabWithMaxWidgets.widgets.length : 0;
|
|
13098
|
+
}
|
|
13099
|
+
}
|
|
13100
|
+
/**
|
|
13101
|
+
* @param {?} data
|
|
13102
|
+
* @return {?}
|
|
13103
|
+
*/
|
|
13104
|
+
isStripShowing(data) {
|
|
13105
|
+
/** @type {?} */
|
|
13106
|
+
let count = 0;
|
|
13107
|
+
if (data && data.key === this.environment.programStripKey && (!data.tabs || !data.tabs.length) &&
|
|
13108
|
+
data.stripTitle === this.environment.programStripName && data.widgets.length > 0) {
|
|
13109
|
+
data.widgets.forEach((/**
|
|
13110
|
+
* @param {?} key
|
|
13111
|
+
* @return {?}
|
|
13112
|
+
*/
|
|
13113
|
+
(key) => {
|
|
13114
|
+
if (key && key.widgetData.content.primaryCategory === this.environment.programStripPrimaryCategory) {
|
|
13115
|
+
count = count + 1;
|
|
13116
|
+
}
|
|
13117
|
+
}));
|
|
13118
|
+
if (count > 0) {
|
|
13119
|
+
data.showStrip = true;
|
|
13120
|
+
}
|
|
13121
|
+
else {
|
|
13122
|
+
data.showStrip = false;
|
|
13123
|
+
}
|
|
13124
|
+
}
|
|
13125
|
+
// console.log('data.key', data, data.key, data.widgets);
|
|
13126
|
+
return data.showStrip;
|
|
13127
|
+
}
|
|
13128
|
+
/**
|
|
13129
|
+
* @return {?}
|
|
13130
|
+
*/
|
|
13131
|
+
get isMobile() {
|
|
13132
|
+
return this.utilitySvc.isMobile || false;
|
|
13133
|
+
}
|
|
13134
|
+
// search api with facets
|
|
13135
|
+
/**
|
|
13136
|
+
* @param {?} strip
|
|
13137
|
+
* @param {?} request
|
|
13138
|
+
* @param {?} apiUrl
|
|
13139
|
+
* @param {?} calculateParentStatus
|
|
13140
|
+
* @return {?}
|
|
13141
|
+
*/
|
|
13142
|
+
postRequestMethod(strip, request, apiUrl, calculateParentStatus) {
|
|
13143
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13144
|
+
return new Promise((/**
|
|
13145
|
+
* @param {?} resolve
|
|
13146
|
+
* @param {?} reject
|
|
13147
|
+
* @return {?}
|
|
13148
|
+
*/
|
|
13149
|
+
(resolve, reject) => {
|
|
13150
|
+
if (request && request) {
|
|
13151
|
+
this.contentSvc.postApiMethod(apiUrl, request).subscribe((/**
|
|
13152
|
+
* @param {?} results
|
|
13153
|
+
* @return {?}
|
|
13154
|
+
*/
|
|
13155
|
+
results => {
|
|
13156
|
+
if (results.result && results.result.content) {
|
|
13157
|
+
/** @type {?} */
|
|
13158
|
+
const showViewMore = Boolean(results.result.content && results.result.content.length > 5 && strip.stripConfig && strip.stripConfig.postCardForSearch);
|
|
13159
|
+
/** @type {?} */
|
|
13160
|
+
const viewMoreUrl = showViewMore
|
|
13161
|
+
? {
|
|
13162
|
+
path: strip.viewMoreUrl && strip.viewMoreUrl.path || '',
|
|
13163
|
+
queryParams: {
|
|
13164
|
+
tab: 'Learn',
|
|
13165
|
+
q: strip.viewMoreUrl && strip.viewMoreUrl.queryParams,
|
|
13166
|
+
f: {},
|
|
13167
|
+
},
|
|
13168
|
+
}
|
|
13169
|
+
: null;
|
|
13170
|
+
resolve({ results, viewMoreUrl });
|
|
13171
|
+
}
|
|
13172
|
+
}), (/**
|
|
13173
|
+
* @param {?} error
|
|
13174
|
+
* @return {?}
|
|
13175
|
+
*/
|
|
13176
|
+
(error) => {
|
|
13177
|
+
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
13178
|
+
reject(error);
|
|
13179
|
+
}));
|
|
13180
|
+
}
|
|
13181
|
+
}));
|
|
13182
|
+
});
|
|
13183
|
+
}
|
|
13184
|
+
/**
|
|
13185
|
+
* @param {?} strip
|
|
13186
|
+
* @param {?=} calculateParentStatus
|
|
13187
|
+
* @return {?}
|
|
13188
|
+
*/
|
|
13189
|
+
fetchFromSearch(strip, calculateParentStatus = true) {
|
|
13190
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13191
|
+
if (strip.request && Object.keys(strip.request.requestBody).length) {
|
|
13192
|
+
try {
|
|
13193
|
+
/** @type {?} */
|
|
13194
|
+
const response = yield this.postRequestMethod(strip, strip.request.requestBody, strip.request.apiUrl, calculateParentStatus);
|
|
13195
|
+
/** @type {?} */
|
|
13196
|
+
let tabIndex = 0;
|
|
13197
|
+
/** @type {?} */
|
|
13198
|
+
let pillIndex = 0;
|
|
13199
|
+
if (response.results && response.results.result) {
|
|
13200
|
+
this.mapAllDataWithFacets(strip, response.results.result.content, response.results.result.facets, calculateParentStatus);
|
|
13201
|
+
/** @type {?} */
|
|
13202
|
+
const widgets = this.transformContentsToWidgets(response.results.result.content, strip);
|
|
13203
|
+
/** @type {?} */
|
|
13204
|
+
let tabResults = [];
|
|
13205
|
+
// if (this.stripsResultDataMap[strip.key] && this.stripsResultDataMap[strip.key].tabs) {
|
|
13206
|
+
// const allTabs = this.stripsResultDataMap[strip.key].tabs;
|
|
13207
|
+
// const allPills = this.stripsResultDataMap[strip.key].tabs[tabIndex].pillsData;
|
|
13208
|
+
// this.resetSelectedPill(allPills)
|
|
13209
|
+
// if (allTabs && allTabs.length && allTabs[tabIndex]) {
|
|
13210
|
+
// if(allPills && allPills.length && allPills[pillIndex]){
|
|
13211
|
+
// allPills[pillIndex] = {
|
|
13212
|
+
// ...allPills[pillIndex],
|
|
13213
|
+
// widgets,
|
|
13214
|
+
// fetchTabStatus: 'done',
|
|
13215
|
+
// selected: true
|
|
13216
|
+
// };
|
|
13217
|
+
// }
|
|
13218
|
+
// allTabs[tabIndex] = {
|
|
13219
|
+
// ...allTabs[tabIndex],
|
|
13220
|
+
// widgets,
|
|
13221
|
+
// fetchTabStatus: 'done',
|
|
13222
|
+
// };
|
|
13223
|
+
// tabResults = allTabs;
|
|
13224
|
+
// }
|
|
13225
|
+
// }
|
|
13226
|
+
// this.processStrip(
|
|
13227
|
+
// strip,
|
|
13228
|
+
// widgets,
|
|
13229
|
+
// 'done',
|
|
13230
|
+
// calculateParentStatus,
|
|
13231
|
+
// response.viewMoreUrl,
|
|
13232
|
+
// tabResults // tabResults as widgets
|
|
13233
|
+
// );
|
|
13234
|
+
}
|
|
13235
|
+
}
|
|
13236
|
+
catch (error) {
|
|
13237
|
+
// Handle errors
|
|
13238
|
+
// console.error('Error:', error);
|
|
13239
|
+
}
|
|
13240
|
+
}
|
|
13241
|
+
});
|
|
13242
|
+
}
|
|
13243
|
+
/**
|
|
13244
|
+
* @param {?} strip
|
|
13245
|
+
* @param {?} content
|
|
13246
|
+
* @param {?} facets
|
|
13247
|
+
* @param {?} calculateParentStatus
|
|
13248
|
+
* @return {?}
|
|
13249
|
+
*/
|
|
13250
|
+
mapAllDataWithFacets(strip, content, facets, calculateParentStatus) {
|
|
13251
|
+
console.log(strip, content);
|
|
13252
|
+
/** @type {?} */
|
|
13253
|
+
const allTabs = this.stripsResultDataMap[strip.key].tabs;
|
|
13254
|
+
/** @type {?} */
|
|
13255
|
+
let facet = [];
|
|
13256
|
+
allTabs.forEach((/**
|
|
13257
|
+
* @param {?} ele
|
|
13258
|
+
* @return {?}
|
|
13259
|
+
*/
|
|
13260
|
+
(ele) => {
|
|
13261
|
+
ele['fetchTabStatus'] = 'done';
|
|
13262
|
+
/** @type {?} */
|
|
13263
|
+
let filteredData = content.filter((/**
|
|
13264
|
+
* @param {?} contEle
|
|
13265
|
+
* @return {?}
|
|
13266
|
+
*/
|
|
13267
|
+
(contEle) => contEle.nlwUserExp.includes(ele.value)))
|
|
13268
|
+
// filteredData.forEach(element => {
|
|
13269
|
+
// facet = [...facet,..._.difference(element.nlwOrgs ,facet)];
|
|
13270
|
+
// });
|
|
13271
|
+
;
|
|
13272
|
+
// filteredData.forEach(element => {
|
|
13273
|
+
// facet = [...facet,..._.difference(element.nlwOrgs ,facet)];
|
|
13274
|
+
// });
|
|
13275
|
+
ele['widgets'] = filteredData;
|
|
13276
|
+
ele.pillsData.forEach((/**
|
|
13277
|
+
* @param {?} pill
|
|
13278
|
+
* @return {?}
|
|
13279
|
+
*/
|
|
13280
|
+
(pill) => {
|
|
13281
|
+
if (pill.value === 'all') {
|
|
13282
|
+
pill['widgets'] = this.transformContentsToWidgets(filteredData, strip);
|
|
13283
|
+
pill['fetchTabStatus'] = 'done';
|
|
13284
|
+
}
|
|
13285
|
+
else if (pill.value === 'course') {
|
|
13286
|
+
/** @type {?} */
|
|
13287
|
+
let contentFilteredData = filteredData.filter((/**
|
|
13288
|
+
* @param {?} contEle
|
|
13289
|
+
* @return {?}
|
|
13290
|
+
*/
|
|
13291
|
+
(contEle) => contEle.courseCategory.toLowerCase() === pill.value));
|
|
13292
|
+
pill['widgets'] = this.transformContentsToWidgets(contentFilteredData, strip);
|
|
13293
|
+
pill['fetchTabStatus'] = 'done';
|
|
13294
|
+
}
|
|
13295
|
+
else {
|
|
13296
|
+
/** @type {?} */
|
|
13297
|
+
let contentFilteredData = filteredData.filter((/**
|
|
13298
|
+
* @param {?} contEle
|
|
13299
|
+
* @return {?}
|
|
13300
|
+
*/
|
|
13301
|
+
(contEle) => contEle.courseCategory.toLowerCase() !== 'course'));
|
|
13302
|
+
pill['widgets'] = this.transformContentsToWidgets(contentFilteredData, strip);
|
|
13303
|
+
pill['fetchTabStatus'] = 'done';
|
|
13304
|
+
}
|
|
13305
|
+
}));
|
|
13306
|
+
// ele['facets'] = [{
|
|
13307
|
+
// name:'nlwOrgs',
|
|
13308
|
+
// values: facet
|
|
13309
|
+
// }]
|
|
13310
|
+
ele['facets'] = facets;
|
|
13311
|
+
}));
|
|
13312
|
+
strip.tabs[0].pillsData[0].fetchTabStatus = 'done';
|
|
13313
|
+
strip.tabs[0].pillsData[0].tabLoading = false;
|
|
13314
|
+
strip.showOnLoader = false;
|
|
13315
|
+
this.resetSelectedPill(strip.tabs[0].pillsData);
|
|
13316
|
+
strip.tabs[0].pillsData[0]['selected'] = true;
|
|
13317
|
+
this.processStrip(strip, [], 'done', calculateParentStatus, strip.viewMoreUrl, allTabs // tabResults as widgets
|
|
13318
|
+
);
|
|
13319
|
+
}
|
|
13320
|
+
/**
|
|
13321
|
+
* @private
|
|
13322
|
+
* @param {?} contents
|
|
13323
|
+
* @param {?} strip
|
|
13324
|
+
* @return {?}
|
|
13325
|
+
*/
|
|
13326
|
+
transformContentsToWidgets(contents, strip) {
|
|
13327
|
+
return (contents || []).map((/**
|
|
13328
|
+
* @param {?} content
|
|
13329
|
+
* @param {?} idx
|
|
13330
|
+
* @return {?}
|
|
13331
|
+
*/
|
|
13332
|
+
(content, idx) => (content ? {
|
|
13333
|
+
widgetType: 'cardLib',
|
|
13334
|
+
widgetSubType: 'cardContentLib',
|
|
13335
|
+
widgetHostClass: 'mb-2',
|
|
13336
|
+
widgetData: Object.assign({ 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 }),
|
|
13337
|
+
} : {
|
|
13338
|
+
widgetType: 'card',
|
|
13339
|
+
widgetSubType: 'cardContent',
|
|
13340
|
+
widgetHostClass: 'mb-2',
|
|
13341
|
+
widgetData: {},
|
|
13342
|
+
})));
|
|
13343
|
+
}
|
|
13344
|
+
/**
|
|
13345
|
+
* @param {?} eventData
|
|
13346
|
+
* @param {?} stripMap
|
|
13347
|
+
* @param {?} tabIndex
|
|
13348
|
+
* @return {?}
|
|
13349
|
+
*/
|
|
13350
|
+
getorgData(eventData, stripMap, tabIndex) {
|
|
13351
|
+
console.log(eventData);
|
|
13352
|
+
/** @type {?} */
|
|
13353
|
+
let selectedValue = eventData.target.value;
|
|
13354
|
+
/** @type {?} */
|
|
13355
|
+
let pillIndex = this.getSelectedPillIndex(stripMap.tabs[tabIndex], tabIndex);
|
|
13356
|
+
if (stripMap && stripMap.tabs && stripMap.tabs[tabIndex]) {
|
|
13357
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].fetchTabStatus = 'inprogress';
|
|
13358
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = false;
|
|
13359
|
+
stripMap.showOnLoader = true;
|
|
13360
|
+
/** @type {?} */
|
|
13361
|
+
let returnedValues = stripMap.tabs[tabIndex].widgets.filter((/**
|
|
13362
|
+
* @param {?} ele
|
|
13363
|
+
* @return {?}
|
|
13364
|
+
*/
|
|
13365
|
+
(ele) => {
|
|
13366
|
+
/** @type {?} */
|
|
13367
|
+
var words = ele.nlwOrgs.map((/**
|
|
13368
|
+
* @param {?} v
|
|
13369
|
+
* @return {?}
|
|
13370
|
+
*/
|
|
13371
|
+
v => v.toLowerCase()));
|
|
13372
|
+
return words.includes(selectedValue);
|
|
13373
|
+
}));
|
|
13374
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex]['widgets'] = this.transformContentsToWidgets(returnedValues, stripMap);
|
|
13375
|
+
}
|
|
13376
|
+
setTimeout((/**
|
|
13377
|
+
* @return {?}
|
|
13378
|
+
*/
|
|
13379
|
+
() => {
|
|
13380
|
+
if (stripMap && stripMap.tabs && stripMap.tabs[tabIndex]) {
|
|
13381
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].fetchTabStatus = 'done';
|
|
13382
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex].tabLoading = false;
|
|
13383
|
+
stripMap.showOnLoader = false;
|
|
13384
|
+
this.resetSelectedPill(stripMap.tabs[tabIndex].pillsData);
|
|
13385
|
+
stripMap.tabs[tabIndex].pillsData[pillIndex]['selected'] = true;
|
|
13386
|
+
}
|
|
13387
|
+
}), 200);
|
|
13388
|
+
}
|
|
13389
|
+
}
|
|
13390
|
+
ContentStripFacetFilterComponent.decorators = [
|
|
13391
|
+
{ type: Component, args: [{
|
|
13392
|
+
selector: 'sb-uic-content-strip-facet-filter',
|
|
13393
|
+
template: "<ng-container *ngIf=\"!contentAvailable; else otherTemplate\"></ng-container>\n<ng-template #otherTemplate>\n <!-- <div *ngIf=\"showParentLoader\" class=\"text-center my-2\">\n <mat-spinner class=\"inline-block\"></mat-spinner>\n </div> -->\n <ng-container *ngIf=\"showParentError\" [sbUiResolverWidget]=\"widgetData.errorWidget\"></ng-container>\n <ng-container *ngIf=\"showParentNoData\" [sbUiResolverWidget]=\"widgetData.noDataWidget\"></ng-container>\n <ng-container *ngFor=\"let key of stripsKeyOrder; let i = index; trackBy: identify\">\n <ng-container *ngIf=\"isStripShowing(stripsResultDataMap[key])\">\n <a name=\"{{stripsResultDataMap[key]?.stripTitle}}\" [class]=\"key\">\n <div *ngIf=\"stripsResultDataMap && (getLength(stripsResultDataMap[key]) ||\n stripsResultDataMap[key]?.showOnNoData ||\n stripsResultDataMap[key]?.showOnLoader ||\n stripsResultDataMap[key]?.showOnError)\n \" [ngClass]=\"\n !widgetData?.isChannelStrip ? 'xs:px-8 sx:px-10ss' : i > 0 ? 'mt-12' : ''\n \" [id]=\"key\" [ngClass]=\"!widgetData?.isChannelStrip ? margin-bottom-custom : margin-bottom-xs\">\n <div [ngClass]=\"{ pad: stripsResultDataMap[key]?.stripBackground }\"\n [ngStyle]=\"{ 'background-color': stripsResultDataMap[key]?.stripBackground }\">\n <div class=\"flex flex-col pl-4 pr-4 md:pr-0 md:pl-0 \" [ngClass]=\"\n !widgetData?.isChannelStrip\n ? ''\n : stripsResultDataMap[key]?.stripTitle\n ? 'mb-8'\n : ''\n \">\n <div class=\"flex flex-1 items-center\">\n <p class=\"mat-subheading-1 margin-remove inline-block \" *ngIf=\"stripsResultDataMap[key]?.stripTitle\">\n <span class=\"capitalize\" *ngIf=\"stripsResultDataMap[key]?.disableTranslate\">\n {{stripsResultDataMap[key]?.stripTitle}}\n </span>\n <span *ngIf=\"!stripsResultDataMap[key]?.disableTranslate\">\n {{ translateLabels(stripsResultDataMap[key]?.stripTitle, 'home') }}\n </span>\n </p>\n\n <button *ngIf=\"stripsResultDataMap[key]?.stripInfo?.icon\" type=\"button\" mat-icon-button\n (click)=\"toggleInfo(stripsResultDataMap[key])\" i18n-matTooltip matTooltip=\"info\"\n class=\"margin-left-xs\">\n <mat-icon>{{ stripsResultDataMap[key]?.stripInfo?.icon.icon }}</mat-icon>\n </button>\n <a *ngIf=\"stripsResultDataMap[key]?.stripTitleLink?.link\"\n [routerLink]=\"stripsResultDataMap[key]?.stripTitleLink?.link\"\n [queryParams]=\"stripsResultDataMap[key]?.stripTitleLink?.link?.queryParams\">\n <mat-icon class=\"ws-mat-primary-primary-text ws-mat-default-text\" [color]=\"'accent'\">{{\n stripsResultDataMap[key]?.stripTitleLink?.icon }}</mat-icon>\n </a>\n <span class=\"spacer\"></span>\n <!-- viewAll start-->\n <div *ngIf=\"checkCondition(widgetData , stripsResultDataMap[key])\" class=\"block md:hidden\">\n <div \n class=\"ml-4 pl-2 view-more ws-mat-default-text \">\n <a class=\"flex ws-mat-default-text items-center justify-center mat-body-1 cursor-pointer\" \n (click)=\"raiseTelemetry(stripsResultDataMap[key]);redirectViewAll(stripsResultDataMap[key], stripsResultDataMap[key]?.viewMoreUrl?.path, stripsResultDataMap[key]?.viewMoreUrl?.queryParams )\">\n <span i18n class=\"ws-mat-default-text\">{{translateLabels(widgetData.strips[0].viewMoreUrl.viewMoreText,'home') || 'See all'}}</span>\n <mat-icon class=\"ws-mat-default-text mat-icon notranslate material-icons mat-icon-no-color\" color=\"accent\">navigate_next</mat-icon>\n </a>\n </div>\n </div>\n <!-- viewAll end-->\n </div>\n <button mat-icon-button (click)=\"setHiddenForStrip(key)\" *ngIf=\"stripsResultDataMap[key]?.canHideStrip\">\n <mat-icon>close</mat-icon>\n </button>\n <mat-icon class=\"cursor-pointer\" *ngIf=\"stripsResultDataMap[key]?.mode === 'accordion' && isMobile\"\n (click)=\"showAccordionData = !showAccordionData\">{{ showAccordionData ? 'expand_less' : 'expand_more' }}\n </mat-icon>\n </div>\n\n <div class=\"mb-4\" *ngIf=\"checkVisible(stripsResultDataMap[key])\">\n <ng-container [sbUiResolverWidget]=\"getdata(stripsResultDataMap[key])\">\n </ng-container>\n </div>\n <ng-container *ngIf=\"stripsResultDataMap[key]?.showOnNoData\"\n [sbUiResolverWidget]=\"stripsResultDataMap[key]?.noDataWidget\"></ng-container>\n <ng-container *ngIf=\"stripsResultDataMap[key]?.showOnError\"\n [sbUiResolverWidget]=\"stripsResultDataMap[key]?.errorWidget\"></ng-container>\n <!-- IF no errors then proceed to show tabs or non tabs strip -->\n <ng-container *ngIf=\"!stripsResultDataMap[key]?.showOnNoData && !stripsResultDataMap[key]?.showOnError\">\n <ng-container *ngIf=\"stripsResultDataMap[key].tabs && stripsResultDataMap[key].tabs.length\">\n <mat-tab-group animationDuration=\"0ms\" [selectedIndex]=\"getSelectedIndex(stripsResultDataMap[key], key)\"\n class=\"mat-tab-labels w-full strips-tabgroup\" dynamicHeight\n (selectedTabChange)=\"tabClicked($event, 0, stripsResultDataMap[key], key)\">\n <mat-tab label=\"{{tab?.label}}\" *ngFor=\"let tab of stripsResultDataMap[key].tabs; let last = last;let tabIndex = index\">\n <ng-template mat-tab-label>\n <span><span *ngIf=\"!tab?.disableTranslate\">{{ translateLabels(tab?.label, 'home') }}</span>\n <span *ngIf=\"tab?.disableTranslate\">{{tab?.label}}</span> </span>\n <span *ngIf=\"tab?.showTabDataCount && tab?.widgets?.length\">({{tab?.widgets?.length}})</span>\n </ng-template>\n\n <div class=\"wfull\" *ngIf=\"tab?.pillsData && tab?.pillsData?.length\">\n <div class=\"flex justify-between item-center flex-wrap gap-4\">\n <div class=\"\">\n <ng-container *ngFor=\"let facet of tab?.facets\">\n <div class=\"facets-select\">\n <select (change)=\"getorgData($event, stripsResultDataMap[key], tabIndex)\">\n <option value=\"\" selected disabled>Choose by organisation</option>\n <option value=\"{{d.name}}\" *ngFor=\"let d of facet.values\" >{{d.name}}</option>\n </select>\n </div>\n </ng-container>\n </div>\n <div>\n <ng-container >\n <mat-chip-list class=\"content-pill-data\" aria-label=\"Fish selection\">\n <ng-container *ngFor=\"let pill of tab?.pillsData;let p = index\">\n <mat-chip [selected]=\"pill?.selected\" (click)=\"pillClicked($event, stripsResultDataMap[key], key, p, tabIndex)\">\n <span class=\"pill-name\">{{pill?.label}}</span></mat-chip>\n </ng-container>\n </mat-chip-list>\n </ng-container>\n </div>\n <!-- viewAll start-->\n <div *ngIf=\"!stripsResultDataMap[key]?.hideViewMoreUrl && checkCondition(widgetData , stripsResultDataMap[key])\" class=\" hidden md:block\">\n <div class=\"ml-4 pl-2 view-more ws-mat-default-text\">\n <a class=\"flex ws-mat-default-text items-center justify-center mat-body-1 cursor-pointer\" \n (click)=\"raiseTelemetry(stripsResultDataMap[key]);redirectViewAll(stripsResultDataMap[key], stripsResultDataMap[key]?.viewMoreUrl?.path, stripsResultDataMap[key]?.viewMoreUrl?.queryParams )\">\n <span i18n class=\"ws-mat-default-text\">{{translateLabels(widgetData.strips[0].viewMoreUrl.viewMoreText,'home') || 'See all'}}</span>\n <mat-icon class=\"ws-mat-default-text mat-icon notranslate material-icons mat-icon-no-color\" color=\"accent\">navigate_next</mat-icon>\n </a>\n </div>\n </div>\n \n <!-- viewAll end-->\n </div>\n <div *ngIf=\"stripsResultDataMap && stripsResultDataMap[key]?.showOnLoader ||\n !tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.fetchTabStatus\"\n class=\"text-center my-2\">\n <sb-uic-horizontal-scroller-v2 [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\" [id]=\"key+'-scroller'\"\n [loadStatus]=\"'fetching'\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of stripsResultDataMap[key]?.loaderWidgets; trackBy: tracker\">\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </div>\n <ng-container *ngIf=\"tab?.pillsData && tab?.pillsData.length && tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]\">\n <div *ngIf=\"((tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.fetchTabStatus && tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.fetchTabStatus === 'done') &&\n (!tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.widgets || !tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.widgets?.length))\">\n <ng-container *ngIf=\"tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.value === 'inprogress'; else msgTemp\">\n <div class=\"w-full flex flex-col items-center justify-center\">\n <img alt=\"\" class=\"mt-4 mb-4\" src=\"assets/icons/home/nodataDefault.svg\">\n <div class=\"mat-subheading-1 text-center info-content\">{{ 'contentstripmultiple.getReadyForLearningAdventure' | translate }} -\n <a class=\"click-here\" [routerLink]=\"'/page/learn'\">{{ 'contentstripmultiple.clickHere' | translate }}</a> {{ 'contentstripmultiple.toEnrollNextCourse' | translate }}</div>\n </div>\n </ng-container>\n <ng-template #msgTemp>\n <div class=\"w-full flex flex-col items-center justify-center\">\n <img alt=\"\" class=\"mt-4 mb-4\" src=\"assets/icons/home/nodataDefault.png\">\n <div class=\"mat-subheading-1 text-center\">{{ translateLabels(tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.nodataMsg, 'home') }}</div>\n </div>\n </ng-template>\n </div>\n </ng-container>\n <ng-container *ngIf=\"(tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.fetchTabStatus === 'done' || tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.widgets?.length)\">\n <ng-container *ngIf=\"!tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.tabLoading\">\n <sb-uic-horizontal-scroller-v2 [id]=\"key+'-scroller'\" [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\" [widgetsLength]=\"tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.widgets?.length\"\n [loadStatus]=\"'done'\" [defaultMaxWidgets]=\"tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.maxWidgets ||\n stripsResultDataMap[key]?.sliderConfig?.maxWidgets || defaultMaxWidgets\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.widgets| slice:0:(tab?.pillsData[getSelectedPillIndex(tab ,tabIndex)]?.maxWidgets ||\n stripsResultDataMap[key]?.sliderConfig?.maxWidgets || defaultMaxWidgets); trackBy: tracker\">\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </ng-container>\n </ng-container>\n </div>\n </mat-tab>\n </mat-tab-group>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </a>\n\n </ng-container>\n </ng-container>\n</ng-template>",
|
|
13394
|
+
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}"]
|
|
13395
|
+
}] }
|
|
13396
|
+
];
|
|
13397
|
+
/** @nocollapse */
|
|
13398
|
+
ContentStripFacetFilterComponent.ctorParameters = () => [
|
|
13399
|
+
{ type: undefined, decorators: [{ type: Inject, args: ['environment',] }] },
|
|
13400
|
+
{ type: WidgetContentService },
|
|
13401
|
+
{ type: LoggerService },
|
|
13402
|
+
{ type: EventService },
|
|
13403
|
+
{ type: ConfigurationsService$1 },
|
|
13404
|
+
{ type: UtilityService },
|
|
13405
|
+
{ type: Router },
|
|
13406
|
+
{ type: WidgetUserService },
|
|
13407
|
+
{ type: TranslateService },
|
|
13408
|
+
{ type: MultilingualTranslationsService }
|
|
13409
|
+
];
|
|
13410
|
+
ContentStripFacetFilterComponent.propDecorators = {
|
|
13411
|
+
widgetData: [{ type: Input }],
|
|
13412
|
+
emptyResponse: [{ type: Output }],
|
|
13413
|
+
viewAllResponse: [{ type: Output }],
|
|
13414
|
+
telemtryResponse: [{ type: Output }],
|
|
13415
|
+
providerId: [{ type: Input }],
|
|
13416
|
+
emitViewAll: [{ type: Input }],
|
|
13417
|
+
channnelName: [{ type: Input }],
|
|
13418
|
+
id: [{ type: HostBinding, args: ['id',] }]
|
|
13419
|
+
};
|
|
13420
|
+
if (false) {
|
|
13421
|
+
/** @type {?} */
|
|
13422
|
+
ContentStripFacetFilterComponent.prototype.widgetData;
|
|
13423
|
+
/** @type {?} */
|
|
13424
|
+
ContentStripFacetFilterComponent.prototype.emptyResponse;
|
|
13425
|
+
/** @type {?} */
|
|
13426
|
+
ContentStripFacetFilterComponent.prototype.viewAllResponse;
|
|
13427
|
+
/** @type {?} */
|
|
13428
|
+
ContentStripFacetFilterComponent.prototype.telemtryResponse;
|
|
13429
|
+
/** @type {?} */
|
|
13430
|
+
ContentStripFacetFilterComponent.prototype.providerId;
|
|
13431
|
+
/** @type {?} */
|
|
13432
|
+
ContentStripFacetFilterComponent.prototype.emitViewAll;
|
|
13433
|
+
/** @type {?} */
|
|
13434
|
+
ContentStripFacetFilterComponent.prototype.channnelName;
|
|
13435
|
+
/** @type {?} */
|
|
13436
|
+
ContentStripFacetFilterComponent.prototype.id;
|
|
13437
|
+
/** @type {?} */
|
|
13438
|
+
ContentStripFacetFilterComponent.prototype.stripsResultDataMap;
|
|
13439
|
+
/** @type {?} */
|
|
13440
|
+
ContentStripFacetFilterComponent.prototype.stripsKeyOrder;
|
|
13441
|
+
/** @type {?} */
|
|
13442
|
+
ContentStripFacetFilterComponent.prototype.showAccordionData;
|
|
13443
|
+
/** @type {?} */
|
|
13444
|
+
ContentStripFacetFilterComponent.prototype.showParentLoader;
|
|
13445
|
+
/** @type {?} */
|
|
13446
|
+
ContentStripFacetFilterComponent.prototype.showParentError;
|
|
13447
|
+
/** @type {?} */
|
|
13448
|
+
ContentStripFacetFilterComponent.prototype.showParentNoData;
|
|
13449
|
+
/** @type {?} */
|
|
13450
|
+
ContentStripFacetFilterComponent.prototype.errorDataCount;
|
|
13451
|
+
/** @type {?} */
|
|
13452
|
+
ContentStripFacetFilterComponent.prototype.noDataCount;
|
|
13453
|
+
/** @type {?} */
|
|
13454
|
+
ContentStripFacetFilterComponent.prototype.successDataCount;
|
|
13455
|
+
/** @type {?} */
|
|
13456
|
+
ContentStripFacetFilterComponent.prototype.contentAvailable;
|
|
13457
|
+
/** @type {?} */
|
|
13458
|
+
ContentStripFacetFilterComponent.prototype.baseUrl;
|
|
13459
|
+
/** @type {?} */
|
|
13460
|
+
ContentStripFacetFilterComponent.prototype.veifiedKarmayogi;
|
|
13461
|
+
/** @type {?} */
|
|
13462
|
+
ContentStripFacetFilterComponent.prototype.environment;
|
|
13463
|
+
/** @type {?} */
|
|
13464
|
+
ContentStripFacetFilterComponent.prototype.changeEventSubscription;
|
|
13465
|
+
/** @type {?} */
|
|
13466
|
+
ContentStripFacetFilterComponent.prototype.defaultMaxWidgets;
|
|
13467
|
+
/** @type {?} */
|
|
13468
|
+
ContentStripFacetFilterComponent.prototype.enrollInterval;
|
|
13469
|
+
/** @type {?} */
|
|
13470
|
+
ContentStripFacetFilterComponent.prototype.todaysEvents;
|
|
13471
|
+
/** @type {?} */
|
|
13472
|
+
ContentStripFacetFilterComponent.prototype.enrollmentMapData;
|
|
13473
|
+
/**
|
|
13474
|
+
* @type {?}
|
|
13475
|
+
* @private
|
|
13476
|
+
*/
|
|
13477
|
+
ContentStripFacetFilterComponent.prototype.contentSvc;
|
|
13478
|
+
/**
|
|
13479
|
+
* @type {?}
|
|
13480
|
+
* @private
|
|
13481
|
+
*/
|
|
13482
|
+
ContentStripFacetFilterComponent.prototype.loggerSvc;
|
|
13483
|
+
/**
|
|
13484
|
+
* @type {?}
|
|
13485
|
+
* @private
|
|
13486
|
+
*/
|
|
13487
|
+
ContentStripFacetFilterComponent.prototype.eventSvc;
|
|
13488
|
+
/**
|
|
13489
|
+
* @type {?}
|
|
13490
|
+
* @private
|
|
13491
|
+
*/
|
|
13492
|
+
ContentStripFacetFilterComponent.prototype.configSvc;
|
|
13493
|
+
/** @type {?} */
|
|
13494
|
+
ContentStripFacetFilterComponent.prototype.utilitySvc;
|
|
13495
|
+
/** @type {?} */
|
|
13496
|
+
ContentStripFacetFilterComponent.prototype.router;
|
|
13497
|
+
/**
|
|
13498
|
+
* @type {?}
|
|
13499
|
+
* @private
|
|
13500
|
+
*/
|
|
13501
|
+
ContentStripFacetFilterComponent.prototype.userSvc;
|
|
13502
|
+
/**
|
|
13503
|
+
* @type {?}
|
|
13504
|
+
* @private
|
|
13505
|
+
*/
|
|
13506
|
+
ContentStripFacetFilterComponent.prototype.translate;
|
|
13507
|
+
/**
|
|
13508
|
+
* @type {?}
|
|
13509
|
+
* @private
|
|
13510
|
+
*/
|
|
13511
|
+
ContentStripFacetFilterComponent.prototype.langtranslations;
|
|
13512
|
+
}
|
|
13513
|
+
|
|
12129
13514
|
/**
|
|
12130
13515
|
* @fileoverview added by tsickle
|
|
12131
13516
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -12133,58 +13518,58 @@ const WIDGET_REGISTRATION_LIB_CONFIG = [
|
|
|
12133
13518
|
/**
|
|
12134
13519
|
* @record
|
|
12135
13520
|
*/
|
|
12136
|
-
function IStripUnitContentData$
|
|
13521
|
+
function IStripUnitContentData$2() { }
|
|
12137
13522
|
if (false) {
|
|
12138
13523
|
/** @type {?} */
|
|
12139
|
-
IStripUnitContentData$
|
|
13524
|
+
IStripUnitContentData$2.prototype.key;
|
|
12140
13525
|
/** @type {?} */
|
|
12141
|
-
IStripUnitContentData$
|
|
13526
|
+
IStripUnitContentData$2.prototype.canHideStrip;
|
|
12142
13527
|
/** @type {?|undefined} */
|
|
12143
|
-
IStripUnitContentData$
|
|
13528
|
+
IStripUnitContentData$2.prototype.mode;
|
|
12144
13529
|
/** @type {?} */
|
|
12145
|
-
IStripUnitContentData$
|
|
13530
|
+
IStripUnitContentData$2.prototype.showStrip;
|
|
12146
13531
|
/** @type {?} */
|
|
12147
|
-
IStripUnitContentData$
|
|
13532
|
+
IStripUnitContentData$2.prototype.disableTranslate;
|
|
12148
13533
|
/** @type {?|undefined} */
|
|
12149
|
-
IStripUnitContentData$
|
|
13534
|
+
IStripUnitContentData$2.prototype.widgets;
|
|
12150
13535
|
/** @type {?} */
|
|
12151
|
-
IStripUnitContentData$
|
|
13536
|
+
IStripUnitContentData$2.prototype.stripTitle;
|
|
12152
13537
|
/** @type {?|undefined} */
|
|
12153
|
-
IStripUnitContentData$
|
|
13538
|
+
IStripUnitContentData$2.prototype.stripTitleLink;
|
|
12154
13539
|
/** @type {?|undefined} */
|
|
12155
|
-
IStripUnitContentData$
|
|
13540
|
+
IStripUnitContentData$2.prototype.sliderConfig;
|
|
12156
13541
|
/** @type {?} */
|
|
12157
|
-
IStripUnitContentData$
|
|
13542
|
+
IStripUnitContentData$2.prototype.stripConfig;
|
|
12158
13543
|
/** @type {?|undefined} */
|
|
12159
|
-
IStripUnitContentData$
|
|
13544
|
+
IStripUnitContentData$2.prototype.tabs;
|
|
12160
13545
|
/** @type {?|undefined} */
|
|
12161
|
-
IStripUnitContentData$
|
|
13546
|
+
IStripUnitContentData$2.prototype.stripName;
|
|
12162
13547
|
/** @type {?|undefined} */
|
|
12163
|
-
IStripUnitContentData$
|
|
13548
|
+
IStripUnitContentData$2.prototype.stripLogo;
|
|
12164
13549
|
/** @type {?|undefined} */
|
|
12165
|
-
IStripUnitContentData$
|
|
13550
|
+
IStripUnitContentData$2.prototype.description;
|
|
12166
13551
|
/** @type {?|undefined} */
|
|
12167
|
-
IStripUnitContentData$
|
|
13552
|
+
IStripUnitContentData$2.prototype.stripInfo;
|
|
12168
13553
|
/** @type {?|undefined} */
|
|
12169
|
-
IStripUnitContentData$
|
|
13554
|
+
IStripUnitContentData$2.prototype.noDataWidget;
|
|
12170
13555
|
/** @type {?|undefined} */
|
|
12171
|
-
IStripUnitContentData$
|
|
13556
|
+
IStripUnitContentData$2.prototype.errorWidget;
|
|
12172
13557
|
/** @type {?} */
|
|
12173
|
-
IStripUnitContentData$
|
|
13558
|
+
IStripUnitContentData$2.prototype.showOnNoData;
|
|
12174
13559
|
/** @type {?} */
|
|
12175
|
-
IStripUnitContentData$
|
|
13560
|
+
IStripUnitContentData$2.prototype.showOnLoader;
|
|
12176
13561
|
/** @type {?} */
|
|
12177
|
-
IStripUnitContentData$
|
|
13562
|
+
IStripUnitContentData$2.prototype.showOnError;
|
|
12178
13563
|
/** @type {?|undefined} */
|
|
12179
|
-
IStripUnitContentData$
|
|
13564
|
+
IStripUnitContentData$2.prototype.loaderWidgets;
|
|
12180
13565
|
/** @type {?|undefined} */
|
|
12181
|
-
IStripUnitContentData$
|
|
13566
|
+
IStripUnitContentData$2.prototype.stripBackground;
|
|
12182
13567
|
/** @type {?|undefined} */
|
|
12183
|
-
IStripUnitContentData$
|
|
13568
|
+
IStripUnitContentData$2.prototype.secondaryHeading;
|
|
12184
13569
|
/** @type {?} */
|
|
12185
|
-
IStripUnitContentData$
|
|
13570
|
+
IStripUnitContentData$2.prototype.viewMoreUrl;
|
|
12186
13571
|
/** @type {?|undefined} */
|
|
12187
|
-
IStripUnitContentData$
|
|
13572
|
+
IStripUnitContentData$2.prototype.request;
|
|
12188
13573
|
}
|
|
12189
13574
|
class ContentStripWithTabsPillsComponent extends WidgetBaseComponent {
|
|
12190
13575
|
/**
|
|
@@ -13783,6 +15168,58 @@ ContentStripWithTabsPillsModule.decorators = [
|
|
|
13783
15168
|
},] }
|
|
13784
15169
|
];
|
|
13785
15170
|
|
|
15171
|
+
/**
|
|
15172
|
+
* @fileoverview added by tsickle
|
|
15173
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
15174
|
+
*/
|
|
15175
|
+
const ɵ0$6 = HttpLoaderFactory1;
|
|
15176
|
+
class ContentStripFacetFilterModule {
|
|
15177
|
+
}
|
|
15178
|
+
ContentStripFacetFilterModule.decorators = [
|
|
15179
|
+
{ type: NgModule, args: [{
|
|
15180
|
+
declarations: [ContentStripFacetFilterComponent],
|
|
15181
|
+
imports: [
|
|
15182
|
+
SbUiResolverModule,
|
|
15183
|
+
CommonModule,
|
|
15184
|
+
RouterModule,
|
|
15185
|
+
HorizontalScrollerV2Module,
|
|
15186
|
+
MatProgressSpinnerModule,
|
|
15187
|
+
MatToolbarModule,
|
|
15188
|
+
MatIconModule,
|
|
15189
|
+
MatButtonModule,
|
|
15190
|
+
MatTooltipModule,
|
|
15191
|
+
MatListModule,
|
|
15192
|
+
MatSidenavModule,
|
|
15193
|
+
MatCardModule,
|
|
15194
|
+
MatExpansionModule,
|
|
15195
|
+
MatRadioModule,
|
|
15196
|
+
MatChipsModule,
|
|
15197
|
+
MatInputModule,
|
|
15198
|
+
MatFormFieldModule,
|
|
15199
|
+
MatDialogModule,
|
|
15200
|
+
MatSnackBarModule,
|
|
15201
|
+
MatSelectModule,
|
|
15202
|
+
MatDatepickerModule,
|
|
15203
|
+
MatNativeDateModule,
|
|
15204
|
+
MatTableModule,
|
|
15205
|
+
MatCheckboxModule,
|
|
15206
|
+
MatProgressSpinnerModule,
|
|
15207
|
+
MatButtonToggleModule,
|
|
15208
|
+
MatTabsModule,
|
|
15209
|
+
MatAutocompleteModule,
|
|
15210
|
+
TranslateModule.forRoot({
|
|
15211
|
+
loader: {
|
|
15212
|
+
provide: TranslateLoader,
|
|
15213
|
+
useFactory: ɵ0$6,
|
|
15214
|
+
deps: [HttpClient],
|
|
15215
|
+
},
|
|
15216
|
+
}),
|
|
15217
|
+
],
|
|
15218
|
+
entryComponents: [ContentStripFacetFilterComponent],
|
|
15219
|
+
exports: [ContentStripFacetFilterComponent],
|
|
15220
|
+
},] }
|
|
15221
|
+
];
|
|
15222
|
+
|
|
13786
15223
|
/**
|
|
13787
15224
|
* @fileoverview added by tsickle
|
|
13788
15225
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -14935,7 +16372,7 @@ CompetencyPassbookMdoModule.decorators = [
|
|
|
14935
16372
|
*/
|
|
14936
16373
|
/** @type {?} */
|
|
14937
16374
|
const PROXY_SLAG_V8 = '/apis/proxies/v8';
|
|
14938
|
-
const ɵ0$
|
|
16375
|
+
const ɵ0$7 = /**
|
|
14939
16376
|
* @param {?} contentId
|
|
14940
16377
|
* @param {?} contentType
|
|
14941
16378
|
* @param {?} userId
|
|
@@ -14954,7 +16391,7 @@ const ɵ0$6 = /**
|
|
|
14954
16391
|
(contentId, userID) => `${PROXY_SLAG_V8}/ratings/v1/read/${contentId}/Course/${userID}`;
|
|
14955
16392
|
/** @type {?} */
|
|
14956
16393
|
const API_END_POINTS$3 = {
|
|
14957
|
-
GET_RATING: (ɵ0$
|
|
16394
|
+
GET_RATING: (ɵ0$7),
|
|
14958
16395
|
ADD_OR_UPDATE: `${PROXY_SLAG_V8}/ratings/v1/upsert`,
|
|
14959
16396
|
GET_RATING_SUMMARY: (ɵ1$3),
|
|
14960
16397
|
GET_RATING_LOOKUP: `${PROXY_SLAG_V8}/ratings/v1/ratingLookUp`,
|
|
@@ -15588,7 +17025,7 @@ if (false) {
|
|
|
15588
17025
|
* @fileoverview added by tsickle
|
|
15589
17026
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
15590
17027
|
*/
|
|
15591
|
-
const ɵ0$
|
|
17028
|
+
const ɵ0$8 = HttpLoaderFactory;
|
|
15592
17029
|
class MDOChannelModule {
|
|
15593
17030
|
}
|
|
15594
17031
|
MDOChannelModule.decorators = [
|
|
@@ -15613,7 +17050,7 @@ MDOChannelModule.decorators = [
|
|
|
15613
17050
|
TranslateModule.forRoot({
|
|
15614
17051
|
loader: {
|
|
15615
17052
|
provide: TranslateLoader,
|
|
15616
|
-
useFactory: ɵ0$
|
|
17053
|
+
useFactory: ɵ0$8,
|
|
15617
17054
|
deps: [HttpClient],
|
|
15618
17055
|
},
|
|
15619
17056
|
}),
|
|
@@ -15893,7 +17330,7 @@ if (false) {
|
|
|
15893
17330
|
* @fileoverview added by tsickle
|
|
15894
17331
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
15895
17332
|
*/
|
|
15896
|
-
const ɵ0$
|
|
17333
|
+
const ɵ0$9 = HttpLoaderFactory;
|
|
15897
17334
|
class ProvidersModule {
|
|
15898
17335
|
}
|
|
15899
17336
|
ProvidersModule.decorators = [
|
|
@@ -15917,7 +17354,7 @@ ProvidersModule.decorators = [
|
|
|
15917
17354
|
TranslateModule.forRoot({
|
|
15918
17355
|
loader: {
|
|
15919
17356
|
provide: TranslateLoader,
|
|
15920
|
-
useFactory: ɵ0$
|
|
17357
|
+
useFactory: ɵ0$9,
|
|
15921
17358
|
deps: [HttpClient],
|
|
15922
17359
|
},
|
|
15923
17360
|
}),
|
|
@@ -16022,7 +17459,7 @@ class NationalLearningComponent {
|
|
|
16022
17459
|
NationalLearningComponent.decorators = [
|
|
16023
17460
|
{ type: Component, args: [{
|
|
16024
17461
|
selector: 'sb-uic-national-learning',
|
|
16025
|
-
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",
|
|
17462
|
+
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",
|
|
16026
17463
|
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}}"]
|
|
16027
17464
|
}] }
|
|
16028
17465
|
];
|
|
@@ -16068,6 +17505,7 @@ class KeyHighlightsComponent {
|
|
|
16068
17505
|
this.providerId = '';
|
|
16069
17506
|
this.formData = '';
|
|
16070
17507
|
this.emptyResponse = new EventEmitter();
|
|
17508
|
+
this.titleMaxLength = 100;
|
|
16071
17509
|
this.styleData = {};
|
|
16072
17510
|
this.contentdata = [];
|
|
16073
17511
|
}
|
|
@@ -16089,7 +17527,7 @@ class KeyHighlightsComponent {
|
|
|
16089
17527
|
KeyHighlightsComponent.decorators = [
|
|
16090
17528
|
{ type: Component, args: [{
|
|
16091
17529
|
selector: 'sb-uic-key-highlights',
|
|
16092
|
-
template: "<ng-container *ngIf=\"contentdata?.length && mode === 'desktop'\">\n <div class=\"key-highlighs-container\">\n <sb-uic-sliders-ng-content\n [title]=\"'providerName'\"\n [autoScroll]=\"true\"\n [currentIndex]=\"currentIndex\" \n (currentIndexValue)=\"getCurrentIndex($event)\"\n [loadNgContentData]=\"true\"\n [customBanner]=\"true\"\n [widgetData]=\"contentdata\" [styleData]=\"styleData\">\n <div sliderbody>\n <div *ngFor=\"let content of contentdata; let i = index\" [hidden]=\"i !== currentIndex\">\n <div class=\"flex flex-row key-wrapper items-center justify-center\">\n <div class=\"kh-description\"
|
|
17530
|
+
template: "<ng-container *ngIf=\"contentdata?.length && mode === 'desktop'\">\n <div class=\"key-highlighs-container\">\n <sb-uic-sliders-ng-content\n [title]=\"'providerName'\"\n [autoScroll]=\"true\"\n [currentIndex]=\"currentIndex\" \n (currentIndexValue)=\"getCurrentIndex($event)\"\n [loadNgContentData]=\"true\"\n [customBanner]=\"true\"\n [widgetData]=\"contentdata\" [styleData]=\"styleData\">\n <div sliderbody>\n <div *ngFor=\"let content of contentdata; let i = index\" [hidden]=\"i !== currentIndex\">\n <div class=\"flex flex-row key-wrapper items-center justify-center\">\n <div class=\"kh-description\">\n {{content?.title | slice:0:titleMaxLength}}\n <span *ngIf=\"content?.title?.length > titleMaxLength\">...</span>\n </div>\n </div>\n </div>\n </div> \n </sb-uic-sliders-ng-content>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"contentdata?.length && mode === 'mobile'\">\n <div class=\"p-5\">\n <div class=\"mob-key-highlighs-container\">\n <sb-uic-sliders-ng-content\n [title]=\"'providerName'\"\n [autoScroll]=\"true\"\n [currentIndex]=\"currentIndex\" \n (currentIndexValue)=\"getCurrentIndex($event)\"\n [loadNgContentData]=\"true\"\n [customBanner]=\"true\"\n [widgetData]=\"contentdata\" [styleData]=\"styleData\">\n <div sliderbody>\n <div *ngFor=\"let content of contentdata; let i = index\" [hidden]=\"i !== currentIndex\">\n <div class=\"flex flex-row mkey-wrapper items-center justify-center\">\n <div class=\"mkh-description\">\n {{content?.title | slice:0:titleMaxLength }}\n <span *ngIf=\"content?.title?.length > titleMaxLength\">...</span>\n </div>\n </div>\n </div>\n </div>\n </sb-uic-sliders-ng-content>\n </div>\n </div>\n</ng-container>",
|
|
16093
17531
|
styles: [".kh-description{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:center;padding:0 10px}.key-wrapper{background-color:#eaf1f8;padding:25px 16px;border-radius:50px}.mkey-wrapper{background-color:#eaf1f8;padding:16px;border-radius:50px}.mkh-description{font-family:Lato;font-size:14px;font-weight:700;line-height:16.8px;text-align:center;padding:0 30px}"]
|
|
16094
17532
|
}] }
|
|
16095
17533
|
];
|
|
@@ -16114,6 +17552,8 @@ if (false) {
|
|
|
16114
17552
|
/** @type {?} */
|
|
16115
17553
|
KeyHighlightsComponent.prototype.emptyResponse;
|
|
16116
17554
|
/** @type {?} */
|
|
17555
|
+
KeyHighlightsComponent.prototype.titleMaxLength;
|
|
17556
|
+
/** @type {?} */
|
|
16117
17557
|
KeyHighlightsComponent.prototype.styleData;
|
|
16118
17558
|
/** @type {?} */
|
|
16119
17559
|
KeyHighlightsComponent.prototype.contentdata;
|
|
@@ -16276,7 +17716,7 @@ class EventsComponent {
|
|
|
16276
17716
|
EventsComponent.decorators = [
|
|
16277
17717
|
{ type: Component, args: [{
|
|
16278
17718
|
selector: 'sb-uic-events',
|
|
16279
|
-
template: "<div class=\"flex items-center mb-4 mt-2 e-header\">\n <div class=\"event-title\">\n {{object?.title}}\n </div>\n
|
|
17719
|
+
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>",
|
|
16280
17720
|
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}"]
|
|
16281
17721
|
}] }
|
|
16282
17722
|
];
|
|
@@ -16399,6 +17839,7 @@ EventsModule.decorators = [
|
|
|
16399
17839
|
CommonModule,
|
|
16400
17840
|
RouterModule,
|
|
16401
17841
|
SkeletonLoaderLibModule,
|
|
17842
|
+
MatIconModule
|
|
16402
17843
|
],
|
|
16403
17844
|
exports: [EventsComponent, EventCardComponent]
|
|
16404
17845
|
},] }
|
|
@@ -16668,7 +18109,7 @@ HighlightsOfWeekComponent.decorators = [
|
|
|
16668
18109
|
{ type: Component, args: [{
|
|
16669
18110
|
selector: 'sb-uic-highlights-of-week',
|
|
16670
18111
|
template: "<div *ngIf=\"contentdata.length\" class=\"highlights-of-the-week-container {{expand ? 'mb-4' : ''}}\">\n <ng-container *ngIf=\"contentdata.length\">\n <div class=\"flex title pb-3 no-radius items-center justify-between\">\n <div class=\"flex gap-2\">\n {{objectData?.title}}\n <div class=\"block md:hidden\">\n <img [src]=\"objectData?.infoIcon\" alt=\"\" i18n-matTooltip [matTooltip]=\"objectData?.infoText\">\n </div> \n </div>\n <div class=\"block md:hidden\">\n <mat-icon (click)=\"toggleWeekHightlits()\">expand_more</mat-icon>\n </div>\n </div>\n <div *ngIf=\"expand\">\n <sb-uic-sliders-ng-content\n [title]=\"'providerName'\"\n [currentIndex]=\"currentIndex\"\n (currentIndexValue)=\"getCurrentIndex($event)\"\n [loadNgContentData]=\"true\" [widgetData]=\"contentdata\"\n [styleData]=\"styleData\">\n <div sliderbody>\n <div *ngFor=\"let item of contentdata; let i = index\" [hidden]=\"i !== currentIndex\">\n <div class=\"wh-wrapper no-radius\">\n <div class=\"player\">\n <video width=\"100%\" height=\"100%\" controls *ngIf=\"i === currentIndex\">\n <source [src]=\"item.videoUrl\" type=\"video/mp4\">\n <source [src]=\"item.videoUrl\" type=\"application/x-mpegURL\" />\n </video>\n </div>\n <div class=\"player-title py-3\">\n {{item?.title}}\n </div>\n <div class=\"player-body\">\n {{item?.description}}\n </div>\n </div>\n </div>\n </div>\n </sb-uic-sliders-ng-content>\n </div>\n </ng-container>\n</div>\n\n",
|
|
16671
|
-
styles: [".highlights-of-the-week-container ::ng-deep.banner-title{display:none}.highlights-of-the-week-container ::ng-deep.banner-meta{bottom:-37px}.highlights-of-the-week-container ::ng-deep.prev{margin-left:11px}.highlights-of-the-week-container ::ng-deep.next{margin-right:16px}.title{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:left;background-color:#d1dbec;padding:16px;border-top-left-radius:12px;border-top-right-radius:12px}.wh-wrapper{background-color:#d1dbec;padding:0 16px 16px;border-bottom-left-radius:12px;border-bottom-right-radius:12px}.wh-wrapper .player{height:420px}.wh-wrapper .player-title{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.wh-wrapper .player-body{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left}@media screen and (min-width:320px) and (max-width:769px){.highlights-of-the-week-container ::ng-deep.prev{display:none!important}.highlights-of-the-week-container ::ng-deep.next{display:none!important}.wh-wrapper .player{height:215px}.no-radius{border-radius:0}}"]
|
|
18112
|
+
styles: [".highlights-of-the-week-container ::ng-deep.banner-title{display:none}.highlights-of-the-week-container ::ng-deep.banner-meta{bottom:-37px}.highlights-of-the-week-container ::ng-deep.prev{margin-left:11px}.highlights-of-the-week-container ::ng-deep.next{margin-right:16px}.title{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:left;background-color:#d1dbec;padding:16px;border-top-left-radius:12px;border-top-right-radius:12px}.wh-wrapper{background-color:#d1dbec;padding:0 16px 16px;border-bottom-left-radius:12px;border-bottom-right-radius:12px}.wh-wrapper .player{height:420px}.wh-wrapper .player-title{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.wh-wrapper .player-body{font-family:Lato;line-clamp:2;-webkit-line-clamp:2;font-size:14px;font-weight:400;line-height:16.8px;text-align:left;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}@media screen and (min-width:320px) and (max-width:769px){.highlights-of-the-week-container ::ng-deep.prev{display:none!important}.highlights-of-the-week-container ::ng-deep.next{display:none!important}.wh-wrapper .player{height:215px}.no-radius{border-radius:0}}"]
|
|
16672
18113
|
}] }
|
|
16673
18114
|
];
|
|
16674
18115
|
/** @nocollapse */
|
|
@@ -16793,7 +18234,7 @@ SpeakersComponent.decorators = [
|
|
|
16793
18234
|
{ type: Component, args: [{
|
|
16794
18235
|
selector: 'sb-uic-speakers',
|
|
16795
18236
|
template: "<div class=\"nlw-speakers-wrapper px-4 md:px-0 my-4 md:my-0\">\n <div class=\"flex speakers-title gap-2 justify-between pb-1\" *ngIf=\"contentdata.length\">\n <div class=\"flex gap-2\">\n {{objectData?.title}}\n <div><img [src]=\"objectData?.infoIcon\" alt=\"\" i18n-matTooltip [matTooltip]=\"objectData?.infoText\"></div>\n </div>\n <div class=\"block md:hidden\">\n <mat-icon (click)=\"toggleWeekHightlits()\">expand_more</mat-icon>\n </div>\n </div>\n <div *ngIf=\"expand\" class=\"speakers-container margin-bottom-xs\" >\n <ng-container *ngIf=\"contentdata.length\">\n <sb-uic-sliders-ng-content\n [title]=\"'providerName'\"\n [currentIndex]=\"currentIndex\"\n (currentIndexValue)=\"getCurrentIndex($event)\"\n [loadNgContentData]=\"true\" [widgetData]=\"contentdata\"\n [styleData]=\"styleData\">\n <div sliderbody>\n <div *ngFor=\"let item of contentdata; let i = index\" [hidden]=\"i !== currentIndex\">\n <div class=\"speakers-wrapper\">\n <div class=\"flex items-center justify-center pb-2\">\n <div class=\"speaker-initial\" *ngIf=\"!item.profileImage\">{{item?.initial}}</div>\n <img class='speaker-icon' [src]=\"item?.profileImage\" alt=\"\" *ngIf=\"item.profileImage\"/>\n </div>\n <div class=\"flex items-center justify-center pb-2\">\n <div class=\"speaker-title\">{{item.name}}</div>\n </div>\n <div class=\"flex items-center justify-center\">\n <div class=\"speaker-description\">{{item.description}}</div>\n </div>\n </div>\n </div>\n </div>\n </sb-uic-sliders-ng-content>\n </ng-container>\n </div>\n</div>",
|
|
16796
|
-
styles: [".speakers-container ::ng-deep.banner-title{display:none}.speakers-container ::ng-deep.prev{margin-left:0;background-color:#fff4ec!important;color:#b6b4b4}.speakers-container ::ng-deep.next{margin-right:0;background-color:#fff4ec!important;color:#b6b4b4}.speakers-title{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:left}.speakers-wrapper{background-color:#fff4ec;border-radius:12px;padding:24px}.speaker-title{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.speaker-description{font-family:Lato;font-size:12px;font-weight:400;line-height:14.4px;text-align:center}.speaker-initial{font-family:Montserrat;font-size:24px;font-weight:600;line-height:29.26px;text-align:center;width:80px;height:80px;display:flex;align-items:center;justify-content:center;background-color:#1b4ca1;color:#fff;border-radius:50px}.speaker-icon{width:80px;height:80px;border-radius:50px}@media screen and (min-width:320px) and (max-width:769px){.nlw-speakers-wrapper{background-color:#d1dbec}.speakers-title{padding:16px 0}}"]
|
|
18237
|
+
styles: [".speakers-container ::ng-deep.banner-title{display:none}.speakers-container ::ng-deep.prev{margin-left:0;background-color:#fff4ec!important;color:#b6b4b4}.speakers-container ::ng-deep.next{margin-right:0;background-color:#fff4ec!important;color:#b6b4b4}.speakers-title{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:left}.speakers-wrapper{background-color:#fff4ec;border-radius:12px;padding:24px}.speaker-title{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.speaker-description{font-family:Lato;font-size:12px;font-weight:400;line-height:14.4px;text-align:center;display:-webkit-box;line-clamp:3;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.speaker-initial{font-family:Montserrat;font-size:24px;font-weight:600;line-height:29.26px;text-align:center;width:80px;height:80px;display:flex;align-items:center;justify-content:center;background-color:#1b4ca1;color:#fff;border-radius:50px}.speaker-icon{width:80px;height:80px;border-radius:50px}@media screen and (min-width:320px) and (max-width:769px){.nlw-speakers-wrapper{background-color:#d1dbec}.speakers-title{padding:16px 0}}"]
|
|
16797
18238
|
}] }
|
|
16798
18239
|
];
|
|
16799
18240
|
/** @nocollapse */
|
|
@@ -16881,6 +18322,13 @@ class UserProgressComponent {
|
|
|
16881
18322
|
this.userProgress['fullname'] = this.configSvc.userProfile.firstName;
|
|
16882
18323
|
this.userProgress['profile_image'] = this.configSvc.userProfile.profileImageUrl;
|
|
16883
18324
|
}
|
|
18325
|
+
}), (/**
|
|
18326
|
+
* @param {?} error
|
|
18327
|
+
* @return {?}
|
|
18328
|
+
*/
|
|
18329
|
+
error => {
|
|
18330
|
+
this.userProgress['fullname'] = this.configSvc.userProfile.firstName;
|
|
18331
|
+
this.userProgress['profile_image'] = this.configSvc.userProfile.profileImageUrl;
|
|
16884
18332
|
}));
|
|
16885
18333
|
}
|
|
16886
18334
|
/**
|
|
@@ -17053,7 +18501,8 @@ NationalLearningModule.decorators = [
|
|
|
17053
18501
|
MdoLeaderboardModule,
|
|
17054
18502
|
HighlightsOfWeekModule,
|
|
17055
18503
|
SpeakersModule,
|
|
17056
|
-
UserProgressModule
|
|
18504
|
+
UserProgressModule,
|
|
18505
|
+
ContentStripFacetFilterModule
|
|
17057
18506
|
],
|
|
17058
18507
|
exports: [
|
|
17059
18508
|
NationalLearningComponent,
|
|
@@ -17075,5 +18524,5 @@ NationalLearningModule.decorators = [
|
|
|
17075
18524
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
17076
18525
|
*/
|
|
17077
18526
|
|
|
17078
|
-
export { AnnouncementsModule, CalenderModule, CardsModule, CbpPlanModule, CommonMethodsService, CommonStripModule, CompetencyPassbookMdoModule, CompetencyPassbookModule, ConsumptionComponent, ConsumptionModule, ConsumptionService, ContentProgressModule, ContentStripWithTabsLibModule, ContentStripWithTabsPillsModule, DataPointsModule, DialogComponentsModule, EventsModule, HighlightsOfWeekModule, HttpLoaderFactory, HttpLoaderFactory1, KeyHighlightsModule, MDOChannelModule, MdoLeaderboardModule, MyHammerConfig, NationalLearningModule, ProvidersModule, ROOT_WIDGET_CONFIG, SlidersLibModule, SpeakersModule, TopLearnersModule, UserContentRatingLibModule, UserProgressModule, WIDGET_REGISTERED_LIB_MODULES, WIDGET_REGISTRATION_LIB_CONFIG, WidgetContentService, ContentStripWithTabsLibComponent as ɵa, WidgetUserService as ɵb, CardResourceComponent as ɵba, CardsComponent as ɵbb, CardPortraitComponent as ɵbc, CardUserComponent as ɵbd, CardLandscapeComponent as ɵbe, CardWideComponent as ɵbf, CardMDOChannelComponent as ɵbg, CardWideV2Component as ɵbh, CardKarmaProgramsComponent as ɵbi, CardKarmaProgramsV2Component as ɵbj, ProviderCardComponent as ɵbk, CardPortraitExtComponent as ɵbl, CardAssessmentComponent as ɵbm, CardProgressPortraitLibComponent as ɵbn, CertificateService as ɵbo, CardMdoChannelV1Component as ɵbp, PipePublicURLModule as ɵbq, PipePublicURL as ɵbr, ObjectToArrayPipeModule as ɵbs, ObjectToArrayPipe as ɵbt, DisplayContentTypeLibModule as ɵbu, DisplayContentTypeLibComponent as ɵbv, DefaultThumbnailModule as ɵbw, DefaultThumbnailDirective as ɵbx, PipeDurationTransformModule as ɵby, PipeDurationTransformPipe as ɵbz, MultilingualTranslationsService as ɵc, ContentProgressComponent as ɵca, CertificateDialogComponent as ɵcb, AvatarPhotoLibModule as ɵcc, AvatarPhotoLibComponent as ɵcd,
|
|
18527
|
+
export { AnnouncementsModule, CalenderModule, CardsModule, CbpPlanModule, CommonMethodsService, CommonStripModule, CompetencyPassbookMdoModule, CompetencyPassbookModule, ConsumptionComponent, ConsumptionModule, ConsumptionService, ContentProgressModule, ContentStripFacetFilterModule, ContentStripWithTabsLibModule, ContentStripWithTabsPillsModule, DataPointsModule, DialogComponentsModule, EventsModule, HighlightsOfWeekModule, HttpLoaderFactory, HttpLoaderFactory1, KeyHighlightsModule, MDOChannelModule, MdoLeaderboardModule, MyHammerConfig, NationalLearningModule, ProvidersModule, ROOT_WIDGET_CONFIG, SlidersLibModule, SpeakersModule, TopLearnersModule, UserContentRatingLibModule, UserProgressModule, WIDGET_REGISTERED_LIB_MODULES, WIDGET_REGISTRATION_LIB_CONFIG, WidgetContentService, ContentStripWithTabsLibComponent as ɵa, WidgetUserService as ɵb, CardResourceComponent as ɵba, CardsComponent as ɵbb, CardPortraitComponent as ɵbc, CardUserComponent as ɵbd, CardLandscapeComponent as ɵbe, CardWideComponent as ɵbf, CardMDOChannelComponent as ɵbg, CardWideV2Component as ɵbh, CardKarmaProgramsComponent as ɵbi, CardKarmaProgramsV2Component as ɵbj, ProviderCardComponent as ɵbk, CardPortraitExtComponent as ɵbl, CardAssessmentComponent as ɵbm, CardProgressPortraitLibComponent as ɵbn, CertificateService as ɵbo, CardMdoChannelV1Component as ɵbp, PipePublicURLModule as ɵbq, PipePublicURL as ɵbr, ObjectToArrayPipeModule as ɵbs, ObjectToArrayPipe as ɵbt, DisplayContentTypeLibModule as ɵbu, DisplayContentTypeLibComponent as ɵbv, DefaultThumbnailModule as ɵbw, DefaultThumbnailDirective as ɵbx, PipeDurationTransformModule as ɵby, PipeDurationTransformPipe as ɵbz, MultilingualTranslationsService as ɵc, ContentProgressComponent as ɵca, CertificateDialogComponent as ɵcb, AvatarPhotoLibModule as ɵcc, AvatarPhotoLibComponent as ɵcd, ContentStripFacetFilterComponent as ɵce, ContentStripWithTabsPillsComponent as ɵcf, CompetencyPassbookComponent as ɵcg, CompetencyPassbookService as ɵch, PillsModule as ɵci, PillsComponent as ɵcj, CompetencyPassbookMdoComponent as ɵck, CompetencyPassbookMdoService as ɵcl, UserContentRatingLibComponent as ɵcm, RatingService as ɵcn, UserContentRatingLibService as ɵco, MdoChannelV1Component as ɵcp, MdoChannelV2Component as ɵcq, ProvidersV2Component as ɵcr, NationalLearningComponent as ɵcs, KeyHighlightsComponent as ɵct, EventsComponent as ɵcu, EventCardComponent as ɵcv, MdoLeaderboardComponent as ɵcw, HighlightsOfWeekComponent as ɵcx, SpeakersComponent as ɵcy, UserProgressComponent as ɵcz, ConfigurationsService as ɵd, HorizontalScrollerV2Module as ɵe, HorizontalScrollerV2Component as ɵf, SlidersLibComponent as ɵg, NavigationModule as ɵh, NavigationDirective as ɵi, ImageResponsiveModule as ɵj, ImageResponsiveDirective as ɵk, DataPointsComponent as ɵl, InsiteDataService as ɵm, SkeletonLoaderLibModule as ɵn, SkeletonLoaderLibComponent as ɵo, CalenderComponent as ɵp, CalenderDayComponent as ɵq, CommonStripComponent as ɵr, AnnouncementsComponent as ɵs, TopLearnersComponent as ɵt, CbpPlanComponent as ɵu, ScrollableItemDirective as ɵv, ScrollableItemModule as ɵw, MyHammerConfig$1 as ɵx, SlidersNgContentLibModule as ɵy, SlidersNgContentLibComponent as ɵz };
|
|
17079
18528
|
//# sourceMappingURL=sunbird-cb-consumption.js.map
|