@sunbird-cb/consumption 0.0.26 → 0.0.28
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 +651 -201
- 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/announcements/announcements.component.js +77 -9
- package/esm2015/lib/_common/calender/calender.component.js +1 -2
- package/esm2015/lib/_common/cards/card-karma-programs/card-karma-programs.component.js +33 -27
- package/esm2015/lib/_common/cards/card-karma-programs-v2/card-karma-programs-v2.component.js +167 -0
- package/esm2015/lib/_common/cards/card-landscape/card-landscape.component.js +10 -22
- package/esm2015/lib/_common/cards/card-mdo-channel/card-mdo-channel.component.js +48 -26
- package/esm2015/lib/_common/cards/card-portrait/card-portrait.component.js +3 -3
- package/esm2015/lib/_common/cards/card-wide-v2/card-wide-v2.component.js +11 -23
- package/esm2015/lib/_common/cards/cards.component.js +15 -4
- package/esm2015/lib/_common/cards/cards.module.js +6 -3
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +168 -64
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +1 -1
- package/esm2015/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.js +20 -6
- package/esm2015/lib/_services/insite-data.service.js +10 -2
- package/esm2015/lib/_services/widget-content.service.js +9 -1
- package/esm2015/sunbird-cb-consumption.js +23 -22
- package/esm5/lib/_common/announcements/announcements.component.js +77 -9
- package/esm5/lib/_common/calender/calender.component.js +1 -2
- package/esm5/lib/_common/cards/card-karma-programs/card-karma-programs.component.js +35 -30
- package/esm5/lib/_common/cards/card-karma-programs-v2/card-karma-programs-v2.component.js +177 -0
- package/esm5/lib/_common/cards/card-landscape/card-landscape.component.js +11 -22
- package/esm5/lib/_common/cards/card-mdo-channel/card-mdo-channel.component.js +55 -26
- package/esm5/lib/_common/cards/card-portrait/card-portrait.component.js +3 -3
- package/esm5/lib/_common/cards/card-wide-v2/card-wide-v2.component.js +12 -23
- package/esm5/lib/_common/cards/cards.component.js +19 -4
- package/esm5/lib/_common/cards/cards.module.js +6 -3
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +209 -65
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +1 -1
- package/esm5/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.js +20 -6
- package/esm5/lib/_services/insite-data.service.js +14 -2
- package/esm5/lib/_services/widget-content.service.js +13 -1
- package/esm5/sunbird-cb-consumption.js +23 -22
- package/fesm2015/sunbird-cb-consumption.js +555 -175
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +629 -180
- package/fesm5/sunbird-cb-consumption.js.map +1 -1
- package/lib/_common/announcements/announcements.component.d.ts +7 -1
- package/lib/_common/cards/card-karma-programs/card-karma-programs.component.d.ts +6 -2
- package/lib/_common/cards/card-karma-programs-v2/card-karma-programs-v2.component.d.ts +26 -0
- package/lib/_common/cards/card-landscape/card-landscape.component.d.ts +2 -1
- package/lib/_common/cards/card-mdo-channel/card-mdo-channel.component.d.ts +10 -3
- package/lib/_common/cards/card-wide-v2/card-wide-v2.component.d.ts +2 -1
- package/lib/_common/cards/cards.component.d.ts +3 -1
- package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.d.ts +5 -1
- package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.d.ts +3 -1
- package/lib/_services/insite-data.service.d.ts +1 -0
- package/lib/_services/widget-content.service.d.ts +1 -0
- package/package.json +1 -1
- package/sunbird-cb-consumption.d.ts +22 -21
- package/sunbird-cb-consumption.metadata.json +1 -1
|
@@ -246,7 +246,6 @@ var HorizontalScrollerV2Component = /** @class */ (function () {
|
|
|
246
246
|
* @return {?}
|
|
247
247
|
*/
|
|
248
248
|
function (elem) {
|
|
249
|
-
debugger;
|
|
250
249
|
this.enablePrev = true;
|
|
251
250
|
this.enableNext = true;
|
|
252
251
|
if (elem.scrollLeft === 0) {
|
|
@@ -255,14 +254,29 @@ var HorizontalScrollerV2Component = /** @class */ (function () {
|
|
|
255
254
|
}
|
|
256
255
|
this.activeNav = 0;
|
|
257
256
|
}
|
|
258
|
-
if (elem.scrollWidth === Math.round(elem.clientWidth + elem.scrollLeft)) {
|
|
257
|
+
// if (elem.scrollWidth === Math.round(elem.clientWidth + elem.scrollLeft)) {
|
|
258
|
+
// if (this.loadStatus === 'hasMore') {
|
|
259
|
+
// this.loadNext.emit();
|
|
260
|
+
// } else {
|
|
261
|
+
// if(!this.sliderConfig.arrowsAlwaysOn) {
|
|
262
|
+
// this.enableNext = false;
|
|
263
|
+
// }
|
|
264
|
+
// if (this.bottomDotsArray.length) {
|
|
265
|
+
// this.activeNav = this.bottomDotsArray.length - 1;
|
|
266
|
+
// }
|
|
267
|
+
// }
|
|
268
|
+
// }
|
|
269
|
+
// if (elem.scrollLeft !== 0 && (elem.scrollWidth !== elem.clientWidth + elem.scrollLeft)) {
|
|
270
|
+
// this.activeNav = Math.ceil(elem.scrollLeft / elem.clientWidth);
|
|
271
|
+
// }
|
|
272
|
+
/** @type {?} */
|
|
273
|
+
var widthDiff = Math.abs(elem.scrollWidth - Math.round(elem.clientWidth + elem.scrollLeft));
|
|
274
|
+
if (widthDiff === 0 || widthDiff === 1) {
|
|
259
275
|
if (this.loadStatus === 'hasMore') {
|
|
260
276
|
this.loadNext.emit();
|
|
261
277
|
}
|
|
262
278
|
else {
|
|
263
|
-
|
|
264
|
-
this.enableNext = false;
|
|
265
|
-
}
|
|
279
|
+
this.enableNext = false;
|
|
266
280
|
if (this.bottomDotsArray.length) {
|
|
267
281
|
this.activeNav = this.bottomDotsArray.length - 1;
|
|
268
282
|
}
|
|
@@ -2494,6 +2508,18 @@ var WidgetContentService = /** @class */ (function () {
|
|
|
2494
2508
|
req.query = req.query || '';
|
|
2495
2509
|
return this.http.post(apiUrl, req);
|
|
2496
2510
|
};
|
|
2511
|
+
/**
|
|
2512
|
+
* @param {?} apiUrl
|
|
2513
|
+
* @return {?}
|
|
2514
|
+
*/
|
|
2515
|
+
WidgetContentService.prototype.getApiMethod = /**
|
|
2516
|
+
* @param {?} apiUrl
|
|
2517
|
+
* @return {?}
|
|
2518
|
+
*/
|
|
2519
|
+
function (apiUrl) {
|
|
2520
|
+
// req.query = req.query || '';
|
|
2521
|
+
return this.http.get(apiUrl);
|
|
2522
|
+
};
|
|
2497
2523
|
WidgetContentService.decorators = [
|
|
2498
2524
|
{ type: Injectable, args: [{
|
|
2499
2525
|
providedIn: 'root',
|
|
@@ -3709,7 +3735,6 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
3709
3735
|
_this.translate.use(lang);
|
|
3710
3736
|
}
|
|
3711
3737
|
_this.environment = environment;
|
|
3712
|
-
console.log('plugin');
|
|
3713
3738
|
return _this;
|
|
3714
3739
|
}
|
|
3715
3740
|
/**
|
|
@@ -4121,10 +4146,15 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
4121
4146
|
}
|
|
4122
4147
|
else if (filters.organisation &&
|
|
4123
4148
|
filters.organisation.indexOf('<orgID>') >= 0) {
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4149
|
+
if (this.providerId) {
|
|
4150
|
+
filters.organisation = this.providerId;
|
|
4151
|
+
}
|
|
4152
|
+
else {
|
|
4153
|
+
filters.organisation = userData && userData.rootOrgId;
|
|
4154
|
+
if (filters && filters.hasOwnProperty('designation')) {
|
|
4155
|
+
filters.designation = userData.professionalDetails.length > 0 ?
|
|
4156
|
+
userData.professionalDetails[0].designation : '';
|
|
4157
|
+
}
|
|
4128
4158
|
}
|
|
4129
4159
|
}
|
|
4130
4160
|
return filters;
|
|
@@ -4152,7 +4182,9 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
4152
4182
|
this.fetchAllCbpPlans(strip, calculateParentStatus);
|
|
4153
4183
|
this.fetchAllTopContent(strip, calculateParentStatus);
|
|
4154
4184
|
this.fetchAllFeaturedContent(strip, calculateParentStatus);
|
|
4155
|
-
this.
|
|
4185
|
+
this.fetchAllBookMarkData(strip, calculateParentStatus);
|
|
4186
|
+
this.fetchAllPlaylistSearch(strip, calculateParentStatus);
|
|
4187
|
+
this.fetchPlaylistReadData(strip, calculateParentStatus);
|
|
4156
4188
|
// this.enrollInterval = setInterval(() => {
|
|
4157
4189
|
// this.fetchAllCbpPlans(strip, calculateParentStatus)
|
|
4158
4190
|
// }, 1000)
|
|
@@ -4882,7 +4914,9 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
4882
4914
|
(strip.request.trendingSearch && Object.keys(strip.request.trendingSearch).length) ||
|
|
4883
4915
|
(strip.request.topContent && Object.keys(strip.request.topContent).length) ||
|
|
4884
4916
|
(strip.request.featureContent && Object.keys(strip.request.featureContent).length) ||
|
|
4885
|
-
(strip.request.
|
|
4917
|
+
(strip.request.bookmarkRead && Object.keys(strip.request.bookmarkRead).length) ||
|
|
4918
|
+
(strip.request.playlistSearch && Object.keys(strip.request.playlistSearch).length) ||
|
|
4919
|
+
(strip.request.playlistRead && Object.keys(strip.request.playlistRead).length))) {
|
|
4886
4920
|
return true;
|
|
4887
4921
|
}
|
|
4888
4922
|
return false;
|
|
@@ -5558,6 +5592,61 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
5558
5592
|
});
|
|
5559
5593
|
});
|
|
5560
5594
|
};
|
|
5595
|
+
/**
|
|
5596
|
+
* @param {?} strip
|
|
5597
|
+
* @param {?} request
|
|
5598
|
+
* @param {?} apiUrl
|
|
5599
|
+
* @param {?} calculateParentStatus
|
|
5600
|
+
* @return {?}
|
|
5601
|
+
*/
|
|
5602
|
+
ContentStripWithTabsLibComponent.prototype.getRequestMethod = /**
|
|
5603
|
+
* @param {?} strip
|
|
5604
|
+
* @param {?} request
|
|
5605
|
+
* @param {?} apiUrl
|
|
5606
|
+
* @param {?} calculateParentStatus
|
|
5607
|
+
* @return {?}
|
|
5608
|
+
*/
|
|
5609
|
+
function (strip, request, apiUrl, calculateParentStatus) {
|
|
5610
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5611
|
+
var originalFilters;
|
|
5612
|
+
var _this = this;
|
|
5613
|
+
return __generator(this, function (_a) {
|
|
5614
|
+
originalFilters = [];
|
|
5615
|
+
return [2 /*return*/, new Promise((/**
|
|
5616
|
+
* @param {?} resolve
|
|
5617
|
+
* @param {?} reject
|
|
5618
|
+
* @return {?}
|
|
5619
|
+
*/
|
|
5620
|
+
function (resolve, reject) {
|
|
5621
|
+
if (request && request) {
|
|
5622
|
+
_this.contentSvc.getApiMethod(apiUrl).subscribe((/**
|
|
5623
|
+
* @param {?} results
|
|
5624
|
+
* @return {?}
|
|
5625
|
+
*/
|
|
5626
|
+
function (results) {
|
|
5627
|
+
console.log(results, 'results=========');
|
|
5628
|
+
/** @type {?} */
|
|
5629
|
+
var showViewMore = Boolean(results.result.data && results.result.data.orgList.length > 5 && strip.stripConfig && strip.stripConfig.postCardForSearch);
|
|
5630
|
+
/** @type {?} */
|
|
5631
|
+
var viewMoreUrl = showViewMore
|
|
5632
|
+
? {
|
|
5633
|
+
path: strip.viewMoreUrl && strip.viewMoreUrl.path || '',
|
|
5634
|
+
}
|
|
5635
|
+
: null;
|
|
5636
|
+
resolve({ results: results, viewMoreUrl: viewMoreUrl });
|
|
5637
|
+
}), (/**
|
|
5638
|
+
* @param {?} error
|
|
5639
|
+
* @return {?}
|
|
5640
|
+
*/
|
|
5641
|
+
function (error) {
|
|
5642
|
+
_this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
5643
|
+
reject(error);
|
|
5644
|
+
}));
|
|
5645
|
+
}
|
|
5646
|
+
}))];
|
|
5647
|
+
});
|
|
5648
|
+
});
|
|
5649
|
+
};
|
|
5561
5650
|
/**
|
|
5562
5651
|
* @param {?} filters
|
|
5563
5652
|
* @return {?}
|
|
@@ -5573,6 +5662,28 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
5573
5662
|
}
|
|
5574
5663
|
return filters;
|
|
5575
5664
|
};
|
|
5665
|
+
/**
|
|
5666
|
+
* @param {?} apiUrl
|
|
5667
|
+
* @param {?} id
|
|
5668
|
+
* @return {?}
|
|
5669
|
+
*/
|
|
5670
|
+
ContentStripWithTabsLibComponent.prototype.getFullUrl = /**
|
|
5671
|
+
* @param {?} apiUrl
|
|
5672
|
+
* @param {?} id
|
|
5673
|
+
* @return {?}
|
|
5674
|
+
*/
|
|
5675
|
+
function (apiUrl, id) {
|
|
5676
|
+
/** @type {?} */
|
|
5677
|
+
var formedUrl = '';
|
|
5678
|
+
if (apiUrl.indexOf('<bookmarkId>') >= 0) {
|
|
5679
|
+
formedUrl = apiUrl.replace('<bookmarkId>', this.environment.mdoChannelsBookmarkId);
|
|
5680
|
+
}
|
|
5681
|
+
else if (apiUrl.indexOf('<playlistKey>') >= 0 && apiUrl.indexOf('<orgID>') >= 0) {
|
|
5682
|
+
formedUrl = apiUrl.replace('<playlistKey>', this.providerId + id);
|
|
5683
|
+
formedUrl = formedUrl.replace('<orgID>', this.providerId);
|
|
5684
|
+
}
|
|
5685
|
+
return formedUrl;
|
|
5686
|
+
};
|
|
5576
5687
|
/**
|
|
5577
5688
|
* @param {?} stripData
|
|
5578
5689
|
* @param {?} path
|
|
@@ -5598,7 +5709,7 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
5598
5709
|
* @param {?=} calculateParentStatus
|
|
5599
5710
|
* @return {?}
|
|
5600
5711
|
*/
|
|
5601
|
-
ContentStripWithTabsLibComponent.prototype.
|
|
5712
|
+
ContentStripWithTabsLibComponent.prototype.fetchAllBookMarkData = /**
|
|
5602
5713
|
* @param {?} strip
|
|
5603
5714
|
* @param {?=} calculateParentStatus
|
|
5604
5715
|
* @return {?}
|
|
@@ -5606,74 +5717,27 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
5606
5717
|
function (strip, calculateParentStatus) {
|
|
5607
5718
|
if (calculateParentStatus === void 0) { calculateParentStatus = true; }
|
|
5608
5719
|
return __awaiter(this, void 0, void 0, function () {
|
|
5609
|
-
var originalFilters,
|
|
5720
|
+
var originalFilters, response, content, error_7;
|
|
5610
5721
|
return __generator(this, function (_a) {
|
|
5611
5722
|
switch (_a.label) {
|
|
5612
5723
|
case 0:
|
|
5613
|
-
if (!(strip.request && strip.request.
|
|
5724
|
+
if (!(strip.request && strip.request.bookmarkRead && Object.keys(strip.request.bookmarkRead).length)) return [3 /*break*/, 4];
|
|
5614
5725
|
originalFilters = [];
|
|
5615
5726
|
if (strip.request &&
|
|
5616
|
-
strip.request.
|
|
5617
|
-
strip.request.
|
|
5618
|
-
strip.request.
|
|
5619
|
-
originalFilters = strip.request.channels.request.filters;
|
|
5620
|
-
strip.request.channels.request.filters = this.postMethodFilters(strip.request.channels.request.filters);
|
|
5727
|
+
strip.request.bookmarkRead &&
|
|
5728
|
+
strip.request.bookmarkRead.bookmarkId) {
|
|
5729
|
+
strip.request.apiUrl = this.getFullUrl(strip.request.apiUrl, strip.request.bookmarkRead.bookmarkId);
|
|
5621
5730
|
}
|
|
5622
5731
|
_a.label = 1;
|
|
5623
5732
|
case 1:
|
|
5624
5733
|
_a.trys.push([1, 3, , 4]);
|
|
5625
|
-
|
|
5626
|
-
{
|
|
5627
|
-
// tslint:disable-next-line: max-line-length
|
|
5628
|
-
posterImage: 'https://portal.karmayogi.nic.in/content-store/content/do_114051411119235072127/artifact/do_114051411119235072127_1715260168985_default-provider.svg',
|
|
5629
|
-
appIcon: '',
|
|
5630
|
-
name: 'Ministry of Consumer Affairs, Food and Public Distribution',
|
|
5631
|
-
programCount: '10',
|
|
5632
|
-
},
|
|
5633
|
-
{
|
|
5634
|
-
// tslint:disable-next-line: max-line-length
|
|
5635
|
-
posterImage: 'https://portal.karmayogi.nic.in/content-store/content/do_114051411119235072127/artifact/do_114051411119235072127_1715260168985_default-provider.svg',
|
|
5636
|
-
appIcon: '',
|
|
5637
|
-
name: 'Ministry of Railways',
|
|
5638
|
-
programCount: '10',
|
|
5639
|
-
},
|
|
5640
|
-
{
|
|
5641
|
-
// tslint:disable-next-line: max-line-length
|
|
5642
|
-
posterImage: 'https://portal.karmayogi.nic.in/content-store/content/do_114051411119235072127/artifact/do_114051411119235072127_1715260168985_default-provider.svg',
|
|
5643
|
-
appIcon: '',
|
|
5644
|
-
name: 'Department of Post',
|
|
5645
|
-
programCount: '10',
|
|
5646
|
-
},
|
|
5647
|
-
{
|
|
5648
|
-
// tslint:disable-next-line: max-line-length
|
|
5649
|
-
posterImage: 'https://portal.karmayogi.nic.in/content-store/content/do_114051411119235072127/artifact/do_114051411119235072127_1715260168985_default-provider.svg',
|
|
5650
|
-
appIcon: '',
|
|
5651
|
-
name: 'NLC India Limited',
|
|
5652
|
-
programCount: '30',
|
|
5653
|
-
},
|
|
5654
|
-
{
|
|
5655
|
-
// tslint:disable-next-line: max-line-length
|
|
5656
|
-
posterImage: 'https://portal.karmayogi.nic.in/content-store/content/do_114051411119235072127/artifact/do_114051411119235072127_1715260168985_default-provider.svg',
|
|
5657
|
-
appIcon: '',
|
|
5658
|
-
name: 'Mission Karmayogi',
|
|
5659
|
-
programCount: '24',
|
|
5660
|
-
},
|
|
5661
|
-
{
|
|
5662
|
-
// tslint:disable-next-line: max-line-length
|
|
5663
|
-
posterImage: 'https://portal.karmayogi.nic.in/content-store/content/do_114051411119235072127/artifact/do_114051411119235072127_1715260168985_default-provider.svg',
|
|
5664
|
-
appIcon: '',
|
|
5665
|
-
name: 'Mission Karmayogi',
|
|
5666
|
-
programCount: '50',
|
|
5667
|
-
},
|
|
5668
|
-
];
|
|
5669
|
-
return [4 /*yield*/, data
|
|
5670
|
-
// console.log('calling after - response, ', response)
|
|
5671
|
-
];
|
|
5734
|
+
return [4 /*yield*/, this.getRequestMethod(strip, strip.request.bookmarkRead, strip.request.apiUrl, calculateParentStatus)];
|
|
5672
5735
|
case 2:
|
|
5673
5736
|
response = _a.sent();
|
|
5674
|
-
|
|
5737
|
+
console.log('calling after - response, ', response);
|
|
5738
|
+
content = response.results.result.data.orgList;
|
|
5675
5739
|
if (response) {
|
|
5676
|
-
this.processStrip(strip, this.transformAllContentsToWidgets(
|
|
5740
|
+
this.processStrip(strip, this.transformAllContentsToWidgets(content, strip), 'done', calculateParentStatus, response);
|
|
5677
5741
|
}
|
|
5678
5742
|
else {
|
|
5679
5743
|
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
@@ -5719,6 +5783,112 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
5719
5783
|
widgetData: {},
|
|
5720
5784
|
}); }));
|
|
5721
5785
|
};
|
|
5786
|
+
/**
|
|
5787
|
+
* @param {?} strip
|
|
5788
|
+
* @param {?=} calculateParentStatus
|
|
5789
|
+
* @return {?}
|
|
5790
|
+
*/
|
|
5791
|
+
ContentStripWithTabsLibComponent.prototype.fetchAllPlaylistSearch = /**
|
|
5792
|
+
* @param {?} strip
|
|
5793
|
+
* @param {?=} calculateParentStatus
|
|
5794
|
+
* @return {?}
|
|
5795
|
+
*/
|
|
5796
|
+
function (strip, calculateParentStatus) {
|
|
5797
|
+
if (calculateParentStatus === void 0) { calculateParentStatus = true; }
|
|
5798
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5799
|
+
var originalFilters, response, error_8;
|
|
5800
|
+
return __generator(this, function (_a) {
|
|
5801
|
+
switch (_a.label) {
|
|
5802
|
+
case 0:
|
|
5803
|
+
if (!(strip.request && strip.request.playlistSearch && Object.keys(strip.request.playlistSearch).length)) return [3 /*break*/, 4];
|
|
5804
|
+
originalFilters = [];
|
|
5805
|
+
if (strip.request &&
|
|
5806
|
+
strip.request.playlistSearch &&
|
|
5807
|
+
strip.request.playlistSearch.request &&
|
|
5808
|
+
strip.request.playlistSearch.request.filters) {
|
|
5809
|
+
originalFilters = strip.request.playlistSearch.request.filters;
|
|
5810
|
+
strip.request.playlistSearch.request.filters = this.postMethodFilters(strip.request.playlistSearch.request.filters);
|
|
5811
|
+
}
|
|
5812
|
+
_a.label = 1;
|
|
5813
|
+
case 1:
|
|
5814
|
+
_a.trys.push([1, 3, , 4]);
|
|
5815
|
+
return [4 /*yield*/, this.postRequestMethod(strip, strip.request.playlistSearch.request, strip.request.apiUrl, calculateParentStatus)];
|
|
5816
|
+
case 2:
|
|
5817
|
+
response = _a.sent();
|
|
5818
|
+
// console.log('calling after - response, ', response)
|
|
5819
|
+
if (response && response.results) {
|
|
5820
|
+
// console.log('calling after-- ')
|
|
5821
|
+
if (response.results.result.data && response.results.result.data.length) {
|
|
5822
|
+
this.processStrip(strip, this.transformContentsToWidgets(response.results.result.data, strip), 'done', calculateParentStatus, response.viewMoreUrl);
|
|
5823
|
+
}
|
|
5824
|
+
else {
|
|
5825
|
+
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
5826
|
+
this.emptyResponse.emit(true);
|
|
5827
|
+
}
|
|
5828
|
+
}
|
|
5829
|
+
else {
|
|
5830
|
+
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
5831
|
+
this.emptyResponse.emit(true);
|
|
5832
|
+
}
|
|
5833
|
+
return [3 /*break*/, 4];
|
|
5834
|
+
case 3:
|
|
5835
|
+
error_8 = _a.sent();
|
|
5836
|
+
this.emptyResponse.emit(true);
|
|
5837
|
+
return [3 /*break*/, 4];
|
|
5838
|
+
case 4: return [2 /*return*/];
|
|
5839
|
+
}
|
|
5840
|
+
});
|
|
5841
|
+
});
|
|
5842
|
+
};
|
|
5843
|
+
/**
|
|
5844
|
+
* @param {?} strip
|
|
5845
|
+
* @param {?=} calculateParentStatus
|
|
5846
|
+
* @return {?}
|
|
5847
|
+
*/
|
|
5848
|
+
ContentStripWithTabsLibComponent.prototype.fetchPlaylistReadData = /**
|
|
5849
|
+
* @param {?} strip
|
|
5850
|
+
* @param {?=} calculateParentStatus
|
|
5851
|
+
* @return {?}
|
|
5852
|
+
*/
|
|
5853
|
+
function (strip, calculateParentStatus) {
|
|
5854
|
+
if (calculateParentStatus === void 0) { calculateParentStatus = true; }
|
|
5855
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5856
|
+
var originalFilters, response, content, error_9;
|
|
5857
|
+
return __generator(this, function (_a) {
|
|
5858
|
+
switch (_a.label) {
|
|
5859
|
+
case 0:
|
|
5860
|
+
if (!(strip.request && strip.request.playlistRead && Object.keys(strip.request.playlistRead).length)) return [3 /*break*/, 4];
|
|
5861
|
+
originalFilters = [];
|
|
5862
|
+
if (strip.request &&
|
|
5863
|
+
strip.request.playlistRead &&
|
|
5864
|
+
strip.request.playlistRead.type) {
|
|
5865
|
+
strip.request.apiUrl = this.getFullUrl(strip.request.apiUrl, strip.request.playlistRead.type);
|
|
5866
|
+
}
|
|
5867
|
+
_a.label = 1;
|
|
5868
|
+
case 1:
|
|
5869
|
+
_a.trys.push([1, 3, , 4]);
|
|
5870
|
+
return [4 /*yield*/, this.getRequestMethod(strip, strip.request.playlistRead, strip.request.apiUrl, calculateParentStatus)];
|
|
5871
|
+
case 2:
|
|
5872
|
+
response = _a.sent();
|
|
5873
|
+
console.log('calling after - response, ', response);
|
|
5874
|
+
if (response && response.results.result.content) {
|
|
5875
|
+
content = response.results.result.content;
|
|
5876
|
+
this.processStrip(strip, this.transformAllContentsToWidgets(content, strip), 'done', calculateParentStatus, response);
|
|
5877
|
+
}
|
|
5878
|
+
else {
|
|
5879
|
+
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
5880
|
+
this.emptyResponse.emit(true);
|
|
5881
|
+
}
|
|
5882
|
+
return [3 /*break*/, 4];
|
|
5883
|
+
case 3:
|
|
5884
|
+
error_9 = _a.sent();
|
|
5885
|
+
this.emptyResponse.emit(true);
|
|
5886
|
+
return [3 /*break*/, 4];
|
|
5887
|
+
case 4: return [2 /*return*/];
|
|
5888
|
+
}
|
|
5889
|
+
});
|
|
5890
|
+
});
|
|
5891
|
+
};
|
|
5722
5892
|
ContentStripWithTabsLibComponent.decorators = [
|
|
5723
5893
|
{ type: Component, args: [{
|
|
5724
5894
|
selector: 'sb-uic-content-strip-with-tabs',
|
|
@@ -6400,7 +6570,8 @@ var SlidersLibModule = /** @class */ (function () {
|
|
|
6400
6570
|
/** @type {?} */
|
|
6401
6571
|
var API_END_POINTS$2 = {
|
|
6402
6572
|
PROVIDER_INSIGHTS: "/apis/proxies/v8/microsite/read/insights",
|
|
6403
|
-
TRAINING_DETAILS: "apis/proxies/v8/sunbirdigot/search"
|
|
6573
|
+
TRAINING_DETAILS: "apis/proxies/v8/sunbirdigot/search",
|
|
6574
|
+
ANNOUNCEMENTS_DETAILS: "apis/proxies/v8/announcements/v1/search"
|
|
6404
6575
|
};
|
|
6405
6576
|
var InsiteDataService = /** @class */ (function () {
|
|
6406
6577
|
function InsiteDataService(http) {
|
|
@@ -6417,6 +6588,17 @@ var InsiteDataService = /** @class */ (function () {
|
|
|
6417
6588
|
function (request) {
|
|
6418
6589
|
return this.http.post(API_END_POINTS$2.PROVIDER_INSIGHTS, request);
|
|
6419
6590
|
};
|
|
6591
|
+
/**
|
|
6592
|
+
* @param {?} request
|
|
6593
|
+
* @return {?}
|
|
6594
|
+
*/
|
|
6595
|
+
InsiteDataService.prototype.fetchAnnouncementsData = /**
|
|
6596
|
+
* @param {?} request
|
|
6597
|
+
* @return {?}
|
|
6598
|
+
*/
|
|
6599
|
+
function (request) {
|
|
6600
|
+
return this.http.post(API_END_POINTS$2.ANNOUNCEMENTS_DETAILS, request);
|
|
6601
|
+
};
|
|
6420
6602
|
/**
|
|
6421
6603
|
* @param {?} request
|
|
6422
6604
|
* @return {?}
|
|
@@ -6705,7 +6887,6 @@ var CalenderComponent = /** @class */ (function () {
|
|
|
6705
6887
|
this.currentMonthAndYear = this.datePipe.transform(this.currentDate, 'MMMM y');
|
|
6706
6888
|
this.selectedMonth = this.datePipe.transform(this.currentDate, 'LLLL yyyy');
|
|
6707
6889
|
if (this.fullCalendor) {
|
|
6708
|
-
console.log("this.currentDate ", this.currentDate);
|
|
6709
6890
|
this.days = this.getDaysInMonth(this.currentDate.getFullYear(), this.currentDate.getMonth());
|
|
6710
6891
|
this.getMonthsDropdownData();
|
|
6711
6892
|
}
|
|
@@ -8000,11 +8181,13 @@ var CommonStripModule = /** @class */ (function () {
|
|
|
8000
8181
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
8001
8182
|
*/
|
|
8002
8183
|
var AnnouncementsComponent = /** @class */ (function () {
|
|
8003
|
-
function AnnouncementsComponent() {
|
|
8184
|
+
function AnnouncementsComponent(insightSvc) {
|
|
8185
|
+
this.insightSvc = insightSvc;
|
|
8004
8186
|
this.mobileHeight = false;
|
|
8187
|
+
this.fetchDataFromApi = false;
|
|
8005
8188
|
this.openDialog = new EventEmitter();
|
|
8006
8189
|
this.isLoading = false;
|
|
8007
|
-
this.
|
|
8190
|
+
this.announcements = [];
|
|
8008
8191
|
}
|
|
8009
8192
|
/**
|
|
8010
8193
|
* @return {?}
|
|
@@ -8012,14 +8195,67 @@ var AnnouncementsComponent = /** @class */ (function () {
|
|
|
8012
8195
|
AnnouncementsComponent.prototype.ngOnInit = /**
|
|
8013
8196
|
* @return {?}
|
|
8014
8197
|
*/
|
|
8198
|
+
function () {
|
|
8199
|
+
if (this.fetchDataFromApi) {
|
|
8200
|
+
this.isLoading = true;
|
|
8201
|
+
this.fetchData();
|
|
8202
|
+
}
|
|
8203
|
+
};
|
|
8204
|
+
/**
|
|
8205
|
+
* @return {?}
|
|
8206
|
+
*/
|
|
8207
|
+
AnnouncementsComponent.prototype.fetchData = /**
|
|
8208
|
+
* @return {?}
|
|
8209
|
+
*/
|
|
8015
8210
|
function () {
|
|
8016
8211
|
var _this = this;
|
|
8017
|
-
|
|
8212
|
+
/** @type {?} */
|
|
8213
|
+
var request = {
|
|
8214
|
+
filterCriteriaMap: {
|
|
8215
|
+
channel: [this.channelId],
|
|
8216
|
+
},
|
|
8217
|
+
requestedFields: [
|
|
8218
|
+
"name",
|
|
8219
|
+
"description",
|
|
8220
|
+
"createdOn",
|
|
8221
|
+
"updatedOn",
|
|
8222
|
+
"category"
|
|
8223
|
+
],
|
|
8224
|
+
orderBy: "createdOn",
|
|
8225
|
+
orderDirection: "ASC",
|
|
8226
|
+
facets: [
|
|
8227
|
+
"channel"
|
|
8228
|
+
],
|
|
8229
|
+
pageSize: this.objectData.pageSize
|
|
8230
|
+
};
|
|
8231
|
+
this.insightSvc.fetchAnnouncementsData(request).subscribe((/**
|
|
8232
|
+
* @param {?} res
|
|
8018
8233
|
* @return {?}
|
|
8019
8234
|
*/
|
|
8020
|
-
function () {
|
|
8235
|
+
function (res) {
|
|
8236
|
+
if (res && res.result && res.result.data) {
|
|
8237
|
+
res.result.data.forEach((/**
|
|
8238
|
+
* @param {?} resp
|
|
8239
|
+
* @return {?}
|
|
8240
|
+
*/
|
|
8241
|
+
function (resp) {
|
|
8242
|
+
_this.announcements.push({
|
|
8243
|
+
value: resp.description,
|
|
8244
|
+
expanded: false
|
|
8245
|
+
});
|
|
8246
|
+
}));
|
|
8247
|
+
}
|
|
8248
|
+
_this.objectData.list = _this.announcements;
|
|
8249
|
+
_this.isLoading = false;
|
|
8250
|
+
}), (/**
|
|
8251
|
+
* @param {?} error
|
|
8252
|
+
* @return {?}
|
|
8253
|
+
*/
|
|
8254
|
+
function (error) {
|
|
8255
|
+
console.log(error);
|
|
8256
|
+
_this.objectData.list = [];
|
|
8021
8257
|
_this.isLoading = false;
|
|
8022
|
-
})
|
|
8258
|
+
}));
|
|
8023
8259
|
};
|
|
8024
8260
|
/**
|
|
8025
8261
|
* @param {?} item
|
|
@@ -8046,16 +8282,20 @@ var AnnouncementsComponent = /** @class */ (function () {
|
|
|
8046
8282
|
AnnouncementsComponent.decorators = [
|
|
8047
8283
|
{ type: Component, args: [{
|
|
8048
8284
|
selector: 'sb-uic-announcements',
|
|
8049
|
-
template: "<div class=\"w-full\" *ngIf=\"layoutType === 'web' && !isLoading\">\n <div class=\"flex item-center key-logo\">\n <img class=\"\" [src]=\"objectData?.logoUrl\">\n </div>\n <div class=\"flex item-center key-logo\">\n <div class=\"key-heading\"\n [style.backgroundColor]=\"objectData?.header?.background\"\n [style.color]=\"objectData?.header?.color\">\n {{objectData?.title}}\n </div>\n </div>\n <div class=\"key-list-container\"\n [style.borderColor]=\"objectData?.panelborder\"\n [style.backgroundColor]=\"objectData?.panelBackground\">\n <div class=\"{{mobileHeight ? 'mob-key-list' : 'key-list'}}\" >\n <div *ngFor=\"let item of objectData?.list; let i = index\">\n <div class=\"key-list-item mb-{{ objectData?.list?.length === (i+1) ? '' : '4'}}\" \n [style.borderColor]=\"objectData?.listItem?.border\"\n [style.backgroundColor]=\"objectData?.listItem?.background\">\n <div class=\"key-list-item-content {{item?.value?.length > 152 && !item?.expanded ? 'expand' : 'un-expand'}}\" [innerHTML]=\"item?.value\"></div>\n <div class=\"more-or-less\" *ngIf=\"item?.value?.length > 152\" [style.color]=\"objectData?.panelborder\">\n <div class=\"cursor-pointer\" (click)=\"viewMoreOrLess(item)\" *ngIf=\"!item?.expanded\">View more</div>\n <div class=\"cursor-pointer\" (click)=\"viewMoreOrLess(item)\" *ngIf=\"item?.expanded\">View less</div>\n </div>\n </div>\n </div> \n </div
|
|
8050
|
-
styles: [".key-logo{align-items:center;justify-content:center}.key-list-container{border:1px solid #ccc;padding:45px 15px 15px;border-radius:12px;margin-top:-20px}.key-list{
|
|
8285
|
+
template: "<div class=\"w-full\" *ngIf=\"layoutType === 'web' && !isLoading\">\n <div class=\"flex item-center key-logo\">\n <img class=\"\" [src]=\"objectData?.logoUrl\">\n </div>\n <div class=\"flex item-center key-logo\">\n <div class=\"key-heading\"\n [style.backgroundColor]=\"objectData?.header?.background\"\n [style.color]=\"objectData?.header?.color\">\n {{objectData?.title}}\n </div>\n </div>\n <div class=\"key-list-container\"\n [style.borderColor]=\"objectData?.panelborder\"\n [style.backgroundColor]=\"objectData?.panelBackground\">\n <div class=\"{{mobileHeight ? 'mob-key-list' : 'key-list'}}\" *ngIf=\"objectData?.list?.length\">\n <div *ngFor=\"let item of objectData?.list; let i = index\">\n <div class=\"key-list-item mb-{{ objectData?.list?.length === (i+1) ? '' : '4'}}\" \n [style.borderColor]=\"objectData?.listItem?.border\"\n [style.backgroundColor]=\"objectData?.listItem?.background\">\n <div class=\"key-list-item-content {{item?.value?.length > 152 && !item?.expanded ? 'expand' : 'un-expand'}}\" [innerHTML]=\"item?.value\"></div>\n <div class=\"more-or-less\" *ngIf=\"item?.value?.length > 152\" [style.color]=\"objectData?.panelborder\">\n <div class=\"cursor-pointer\" (click)=\"viewMoreOrLess(item)\" *ngIf=\"!item?.expanded\">View more</div>\n <div class=\"cursor-pointer\" (click)=\"viewMoreOrLess(item)\" *ngIf=\"item?.expanded\">View less</div>\n </div>\n </div>\n </div> \n </div>\n <div class=\"{{mobileHeight ? 'mob-key-list' : 'key-list'}}\" *ngIf=\"!objectData?.list?.length\">\n <div class=\"text-center\">No announcements yet!</div>\n </div>\n </div>\n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'mobile'\">\n <div class=\"flex item-center key-logo \">\n <div class=\"mob-key-heading\" (click)=\"openAnnouncements()\"\n [style.backgroundColor]=\"objectData?.header?.background\"\n [style.color]=\"objectData?.header?.color\">\n <div class=\"flex key-button gap-3\">\n <div>\n <img [src]=\"objectData?.mobileIcon\">\n </div>\n <div>{{objectData?.title}}</div> \n <div><mat-icon class=\"key-mob-icon\">arrow_forward_ios</mat-icon></div>\n </div> \n </div>\n </div>\n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'web' && isLoading\">\n <div class=\"flex item-center key-logo\">\n <img class=\"\" [src]=\"objectData?.logoUrl\">\n </div>\n <div class=\"flex item-center key-logo pt-1\">\n <div class=\"key-heading\"\n [style.backgroundColor]=\"objectData?.header?.background\"\n [style.color]=\"objectData?.header?.color\">\n {{objectData?.title}}\n </div>\n </div>\n <div class=\"key-list-container\"\n [style.borderColor]=\"objectData?.panelborder\"\n [style.backgroundColor]=\"objectData?.panelBackground\">\n <div class=\"{{mobileHeight ? 'mob-key-list' : 'key-list'}}\" > \n <div class=\"key-list-item mb-4\" \n *ngFor=\"let item of[0,1,2,3,4]; let i = index\"\n [style.borderColor]=\"objectData?.listItem?.border\"\n [style.backgroundColor]=\"objectData?.listItem?.background\">\n <div class=\"key-list-item-content un-expand\">\n <div class=\"py-1\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon '\" [width]=\"'350px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div class=\"py-1\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon '\" [width]=\"'350px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div> \n </div>\n</div>\n",
|
|
8286
|
+
styles: [".key-logo{align-items:center;justify-content:center}.key-list-container{border:1px solid #ccc;padding:45px 15px 15px;border-radius:12px;margin-top:-20px}.key-list{height:600px;overflow:auto}.mob-key-list{height:calc(100vh - 252px);overflow:auto}.key-list::-webkit-scrollbar{display:none}.key-list-item{padding:16px;border:1px solid #ccc;border-radius:12px;min-height:56px}::ng-deep .key-list-item-content a{color:#1b4ca1!important}.key-list-item-content{font-family:Lato;font-size:14px;font-weight:400;line-height:20px;text-align:left;white-space:initial;position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical}.expand{-webkit-line-clamp:3}.un-expand{-webkit-line-clamp:0}.more-or-less{font-family:Lato;font-size:14px;line-height:20px;font-weight:600}.mob-key-heading{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:center;padding:7px 25px;border-radius:20px;animation:.9s infinite mobPaddingAnimation;cursor:pointer}.key-mob-icon{font-size:12px;width:12px;height:12px}.key-button{align-items:center;justify-content:center}.key-heading{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:center;padding:10px 50px;border-radius:20px;margin-top:-3px;animation:.9s infinite paddingAnimation}@keyframes mobPaddingAnimation{0%,100%{padding:7px 25px}25%,75%{padding:7px 30px}50%{padding:7px 35px}}@keyframes paddingAnimation{0%,100%{padding:10px 50px}25%,75%{padding:10px 55px}50%{padding:10px 60px}}"]
|
|
8051
8287
|
}] }
|
|
8052
8288
|
];
|
|
8053
8289
|
/** @nocollapse */
|
|
8054
|
-
AnnouncementsComponent.ctorParameters = function () { return [
|
|
8290
|
+
AnnouncementsComponent.ctorParameters = function () { return [
|
|
8291
|
+
{ type: InsiteDataService }
|
|
8292
|
+
]; };
|
|
8055
8293
|
AnnouncementsComponent.propDecorators = {
|
|
8056
8294
|
objectData: [{ type: Input }],
|
|
8057
8295
|
layoutType: [{ type: Input }],
|
|
8058
8296
|
mobileHeight: [{ type: Input }],
|
|
8297
|
+
fetchDataFromApi: [{ type: Input }],
|
|
8298
|
+
channelId: [{ type: Input }],
|
|
8059
8299
|
openDialog: [{ type: Output }]
|
|
8060
8300
|
};
|
|
8061
8301
|
return AnnouncementsComponent;
|
|
@@ -8068,9 +8308,17 @@ if (false) {
|
|
|
8068
8308
|
/** @type {?} */
|
|
8069
8309
|
AnnouncementsComponent.prototype.mobileHeight;
|
|
8070
8310
|
/** @type {?} */
|
|
8311
|
+
AnnouncementsComponent.prototype.fetchDataFromApi;
|
|
8312
|
+
/** @type {?} */
|
|
8313
|
+
AnnouncementsComponent.prototype.channelId;
|
|
8314
|
+
/** @type {?} */
|
|
8071
8315
|
AnnouncementsComponent.prototype.openDialog;
|
|
8072
8316
|
/** @type {?} */
|
|
8073
8317
|
AnnouncementsComponent.prototype.isLoading;
|
|
8318
|
+
/** @type {?} */
|
|
8319
|
+
AnnouncementsComponent.prototype.announcements;
|
|
8320
|
+
/** @type {?} */
|
|
8321
|
+
AnnouncementsComponent.prototype.insightSvc;
|
|
8074
8322
|
}
|
|
8075
8323
|
|
|
8076
8324
|
/**
|
|
@@ -8214,6 +8462,7 @@ var CardsComponent = /** @class */ (function (_super) {
|
|
|
8214
8462
|
_this.configSvc = configSvc;
|
|
8215
8463
|
_this.contSvc = contSvc;
|
|
8216
8464
|
_this.router = router;
|
|
8465
|
+
_this.triggerTelemetry = new EventEmitter();
|
|
8217
8466
|
_this.isIntranetAllowedSettings = false;
|
|
8218
8467
|
return _this;
|
|
8219
8468
|
}
|
|
@@ -8310,10 +8559,21 @@ var CardsComponent = /** @class */ (function (_super) {
|
|
|
8310
8559
|
clearInterval(this.cbPlanInterval);
|
|
8311
8560
|
}
|
|
8312
8561
|
};
|
|
8562
|
+
/**
|
|
8563
|
+
* @param {?} data
|
|
8564
|
+
* @return {?}
|
|
8565
|
+
*/
|
|
8566
|
+
CardsComponent.prototype.raiseCardClick = /**
|
|
8567
|
+
* @param {?} data
|
|
8568
|
+
* @return {?}
|
|
8569
|
+
*/
|
|
8570
|
+
function (data) {
|
|
8571
|
+
this.triggerTelemetry.emit(data);
|
|
8572
|
+
};
|
|
8313
8573
|
CardsComponent.decorators = [
|
|
8314
8574
|
{ type: Component, args: [{
|
|
8315
8575
|
selector: 'sb-uic-cards',
|
|
8316
|
-
template: "<div class=\"widget-card-content-new\">\n <ng-container *ngIf=\"widgetData && (((widgetData?.deletedMode || 'none') === 'hide' && !!!isLiveOrMarkForDeletion)\n ? false\n : !((widgetData?.intranetMode || 'none') === 'hide' && !!showIntranetContent))\"\n [ngSwitch]=\"( (widgetData && widgetData?.cardSubType) || 'cardPortraitLib')\">\n <ng-container *ngSwitchDefault [ngTemplateOutlet]=\"cardPortraitLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'user-card'\" [ngTemplateOutlet]=\"cardUser\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-lib-skeleton'\" [ngTemplateOutlet]=\"cardPortraitLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-lib'\" [ngTemplateOutlet]=\"cardPortraitLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-landscape-lib-skeleton'\" [ngTemplateOutlet]=\"cardLandscapeLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-landscape-lib'\" [ngTemplateOutlet]=\"cardLandscapeLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-lib-skeleton'\" [ngTemplateOutlet]=\"cardWideLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-lib'\" [ngTemplateOutlet]=\"cardWideLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-v2'\" [ngTemplateOutlet]=\"cardWideV2\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-v2-skeleton'\" [ngTemplateOutlet]=\"cardWideV2Skeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-mdo-lib'\" [ngTemplateOutlet]=\"cardMdo\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-mdo-lib-skeleton'\" [ngTemplateOutlet]=\"cardMdoSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib'\" [ngTemplateOutlet]=\"cardKarmaProgram\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib-skeleton'\" [ngTemplateOutlet]=\"cardKarmaProgram\"></ng-container>\n </ng-container>\n</div>\n\n<ng-template #cardPortraitLibSkeleton>\n <sb-uic-card-portrait [widgetData]=\"widgetData\" [isCardLoading]=\"true\"></sb-uic-card-portrait>\n</ng-template>\n<ng-template #cardPortraitLib>\n <sb-uic-card-portrait (contentData)=\"getRedirectUrlData($event)\" [widgetData]=\"widgetData\" [isCardLoading]=\"false\"></sb-uic-card-portrait>\n</ng-template>\n<ng-template #cardLandscapeLibSkeleton>\n <sb-uic-card-landscape [widgetData]=\"widgetData\" [isCardLoading]=\"true\"></sb-uic-card-landscape>\n</ng-template>\n<ng-template #cardLandscapeLib>\n <sb-uic-card-landscape
|
|
8576
|
+
template: "<div class=\"widget-card-content-new\">\n <ng-container *ngIf=\"widgetData && (((widgetData?.deletedMode || 'none') === 'hide' && !!!isLiveOrMarkForDeletion)\n ? false\n : !((widgetData?.intranetMode || 'none') === 'hide' && !!showIntranetContent))\"\n [ngSwitch]=\"( (widgetData && widgetData?.cardSubType) || 'cardPortraitLib')\">\n <ng-container *ngSwitchDefault [ngTemplateOutlet]=\"cardPortraitLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'user-card'\" [ngTemplateOutlet]=\"cardUser\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-lib-skeleton'\" [ngTemplateOutlet]=\"cardPortraitLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-lib'\" [ngTemplateOutlet]=\"cardPortraitLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-landscape-lib-skeleton'\" [ngTemplateOutlet]=\"cardLandscapeLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-landscape-lib'\" [ngTemplateOutlet]=\"cardLandscapeLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-lib-skeleton'\" [ngTemplateOutlet]=\"cardWideLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-lib'\" [ngTemplateOutlet]=\"cardWideLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-v2'\" [ngTemplateOutlet]=\"cardWideV2\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-v2-skeleton'\" [ngTemplateOutlet]=\"cardWideV2Skeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-mdo-lib'\" [ngTemplateOutlet]=\"cardMdo\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-mdo-lib-skeleton'\" [ngTemplateOutlet]=\"cardMdoSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib'\" [ngTemplateOutlet]=\"cardKarmaProgram\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib-skeleton'\" [ngTemplateOutlet]=\"cardKarmaProgram\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib-v2'\" [ngTemplateOutlet]=\"cardKarmaProgramV2\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib-v2-skeleton'\" [ngTemplateOutlet]=\"cardKarmaProgramV2\"></ng-container>\n </ng-container>\n</div>\n\n<ng-template #cardPortraitLibSkeleton>\n <sb-uic-card-portrait [widgetData]=\"widgetData\" [isCardLoading]=\"true\"></sb-uic-card-portrait>\n</ng-template>\n<ng-template #cardPortraitLib>\n <sb-uic-card-portrait (contentData)=\"getRedirectUrlData($event)\" [widgetData]=\"widgetData\" [isCardLoading]=\"false\"></sb-uic-card-portrait>\n</ng-template>\n<ng-template #cardLandscapeLibSkeleton>\n <sb-uic-card-landscape [widgetData]=\"widgetData\" [isCardLoading]=\"true\"></sb-uic-card-landscape>\n</ng-template>\n<ng-template #cardLandscapeLib>\n <sb-uic-card-landscape\n (contentData)=\"getRedirectUrlData($event)\"\n (triggerTelemetry)=\"raiseCardClick($event)\"\n [widgetData]=\"widgetData\"\n [isCardLoading]=\"false\">\n </sb-uic-card-landscape>\n</ng-template>\n\n<ng-template #cardWideLib>\n <sb-uic-card-wide (contentData)=\"getRedirectUrlData($event)\" [widgetData]=\"widgetData\"></sb-uic-card-wide>\n</ng-template>\n<ng-template #cardWideLibSkeleton>\n <sb-uic-card-wide [widgetData]=\"widgetData\"></sb-uic-card-wide>\n</ng-template>\n\n<ng-template #cardWideV2Skeleton>\n <sb-uic-card-wide-v2 [widgetData]=\"widgetData\" [isCardLoading]=\"true\" ></sb-uic-card-wide-v2>\n</ng-template>\n<ng-template #cardWideV2>\n <sb-uic-card-wide-v2\n (contentData)=\"getRedirectUrlData($event)\"\n (triggerTelemetry)=\"raiseCardClick($event)\"\n [cbPlanMapData]=\"cbPlanMapData\"\n [isCardLoading]=\"false\"\n [widgetData]=\"widgetData\">\n </sb-uic-card-wide-v2>\n</ng-template>\n\n<ng-template #cardUser>\n <sb-uic-card-user [widgetData]=\"widgetData\"></sb-uic-card-user>\n</ng-template>\n<ng-template #cardMdo>\n <sb-uic-card-mdo-channel [widgetData]=\"widgetData\"></sb-uic-card-mdo-channel>\n</ng-template>\n<ng-template #cardMdoSkeleton>\n <sb-uic-card-mdo-channel [widgetData]=\"widgetData\"></sb-uic-card-mdo-channel>\n</ng-template>\n<ng-template #cardKarmaProgram>\n <sb-uic-card-karma-programs [randomColorApply]=\"true\" [widgetData]=\"widgetData\"></sb-uic-card-karma-programs>\n</ng-template>\n<ng-template #cardKarmaProgramV2>\n <!-- <sb-uic-card-karma-programs-v2 [widgetData]=\"widgetData\"><sb-uic-card-karma-programs-v2> -->\n</ng-template>",
|
|
8317
8577
|
styles: [""]
|
|
8318
8578
|
}] }
|
|
8319
8579
|
];
|
|
@@ -8325,7 +8585,8 @@ var CardsComponent = /** @class */ (function (_super) {
|
|
|
8325
8585
|
{ type: Router }
|
|
8326
8586
|
]; };
|
|
8327
8587
|
CardsComponent.propDecorators = {
|
|
8328
|
-
widgetData: [{ type: Input }]
|
|
8588
|
+
widgetData: [{ type: Input }],
|
|
8589
|
+
triggerTelemetry: [{ type: Output }]
|
|
8329
8590
|
};
|
|
8330
8591
|
return CardsComponent;
|
|
8331
8592
|
}(WidgetBaseComponent));
|
|
@@ -8333,6 +8594,8 @@ if (false) {
|
|
|
8333
8594
|
/** @type {?} */
|
|
8334
8595
|
CardsComponent.prototype.widgetData;
|
|
8335
8596
|
/** @type {?} */
|
|
8597
|
+
CardsComponent.prototype.triggerTelemetry;
|
|
8598
|
+
/** @type {?} */
|
|
8336
8599
|
CardsComponent.prototype.isIntranetAllowedSettings;
|
|
8337
8600
|
/** @type {?} */
|
|
8338
8601
|
CardsComponent.prototype.cbPlanMapData;
|
|
@@ -8476,8 +8739,8 @@ var CardPortraitComponent = /** @class */ (function () {
|
|
|
8476
8739
|
CardPortraitComponent.decorators = [
|
|
8477
8740
|
{ type: Component, args: [{
|
|
8478
8741
|
selector: 'sb-uic-card-portrait',
|
|
8479
|
-
template: "<ng-container *ngIf=\"!isCardLoading\">\n <mat-card class=\"card-standard-container mr-5 padding-remove cursor-pointer \" [ngClass]=\"{\n greyOut:\n widgetData.deletedMode === 'greyOut' && !isLiveOrMarkForDeletion\n ? true\n : widgetData?.intranetMode === 'greyOut' && showIntranetContent\n }\" (click)=\"(showIntranetContent || !isLiveOrMarkForDeletion) && showSnackbar()\">\n <div class=\"display-contents\" [ngClass]=\"{\n disableClick:\n widgetData.deletedMode === 'greyOut' && !isLiveOrMarkForDeletion\n ? true\n : widgetData?.intranetMode === 'greyOut' && showIntranetContent\n }\">\n <ng-container *ngIf=\"widgetData.content\">\n <a (click)=\"getRedirectUrlData(widgetData?.content); $event.stopPropagation()\"\n role=\"link\" i18n-aria-label>\n <ng-container *ngIf=\"!isCardFlipped\">\n <div class=\"status-danger\" role=\"note\" i18n-aria-label aria-label=\"Content expired or deleted\" i18n-matTooltip\n matTooltip=\"Content may be expired or deleted\" *ngIf=\"!isLiveOrMarkForDeletion\"></div>\n <div class=\"status-danger\" role=\"note\" i18n-aria-label aria-label=\"Intranet content\" i18n-matTooltip\n matTooltip=\"Available only in Company's network\"\n *ngIf=\"widgetData?.intranetMode === 'greyOut' && showIntranetContent\"></div>\n <button *ngIf=\"showFlip\" class=\"detail-button ws-mat-primary-lite-background-op30\" mat-icon-button\n (click)=\"isCardFlipped = true\" aria-label=\"Details\" i18n-aria-label=\"Details | Click to see details\">\n <mat-icon>flip_to_back</mat-icon>\n </button>\n <mat-card-content class=\"min-top\">\n <div style=\"position: relative; z-index: 1;\">\n <ng-container *ngIf=\"widgetData.content.posterImage\">\n <img mat-card-image [src]=\"widgetData.content.posterImage | pipePublicURL\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData.content.name\" />\n </ng-container>\n <ng-container *ngIf=\"!widgetData.content.posterImage\">\n <ng-container *ngIf=\"widgetData.content.appIcon; else defaultImg\">\n <img mat-card-image [src]=\"widgetData.content.appIcon | pipePublicURL\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData.content.name\" />\n </ng-container>\n <ng-template #defaultImg>\n <img mat-card-image [src]=\"defaultThumbnail\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\"\n [alt]=\"widgetData.content.name\" />\n </ng-template>\n </ng-container>\n <div class=\"source-div\" style=\"display: none;\">\n <img [src]=\"widgetData.content.creatorLogo\" class=\"source-icon\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData.content.sourceName + '_' + widgetData.content.identifier)\" />\n </div>\n <ng-container *ngIf=\"widgetData?.content?.cbPlanEndDate\">\n <div class=\"cbp-mark\">\n <span>{{widgetData?.content?.cbPlanEndDate | date: 'd MMM, y'}}</span>\n </div>\n </ng-container>\n <!-- <ng-container *ngIf=\"widgetData?.content?.endDate\">\n <div class=\"cbp-mark\">\n <p *ngIf=\"widgetData?.content?.planDuration === acbpConstants?.UPCOMING\" class=\"cbp-warning\">{{widgetData?.content?.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"widgetData?.content?.planDuration === acbpConstants?.SUCCESS\" class=\"cbp-success\">{{widgetData?.content?.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"widgetData?.content?.planDuration === acbpConstants?.OVERDUE\" class=\"cbp-danger\">Over due</p>\n </div>\n </ng-container> -->\n <!-- <ng-container *ngIf=\"cbPlanMapData && cbPlanMapData[widgetData?.content?.identifier]\">\n <ng-container [ngTemplateOutlet]=\"cbpPlan\" [ngTemplateOutletContext]=\"{data: {\n cbpData: cbPlanMapData[widgetData?.content?.identifier]\n }}\"></ng-container>\n </ng-container> -->\n <div class=\"duration-box right-corner\" *ngIf=\"widgetData?.content?.duration > 0\">\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\n <span class=\" ws-mat-white-text duration\">\n {{ (widgetData?.content?.duration || 120)| pipeDurationTransform: 'hms' }}\n </span>\n </div>\n <div class=\"duration-box right-corner\" *ngIf=\"widgetData?.content?.programDuration > 0\">\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\n <span class=\" ws-mat-white-text duration\">\n {{widgetData?.content?.programDuration}} {{widgetData?.content?.programDuration === 1 ? 'day' : 'days'}}\n </span>\n </div>\n </div>\n <div class=\"padding-m\">\n <div class=\"course_widget flex margin-remove\">\n <div class=\"flex flex-end course_v2\">\n <mat-icon class=\"mat-icon main_icon ws-mat-default-text margin-right-xs\">video_library</mat-icon>\n <sb-uic-display-content-type i18n-title title=\"Content Type\" *ngIf=\"widgetData.content?.primaryCategory\"\n class=\"ws-mat-black60-text font-normal mat-caption \" [displayContentType]=\"widgetData.content?.primaryCategory==='Course Unit'\n ?'Module'\n :widgetData.content?.primaryCategory\">\n\n </sb-uic-display-content-type>\n </div>\n </div>\n <div [id]=\"'m-c-'+ widgetData.content?.identifier\"\n class=\"mat-subheading-1 title-text ws-mat-text-block-fade-gradient\">\n {{ widgetData.content.name }}\n </div>\n <div class=\"flex w-full flex-wrap flex-middle\">\n <div class=\"course_logo_box\">\n <img [src]=\"widgetData.content.creatorLogo | pipePublicURL \" class=\"source-icon\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData.content.sourceName + '_' + widgetData.content.identifier)\" />\n </div>\n <!-- <span class=\"org-text\">{{'cardcontentv2.by' | translate}} -->\n <span class=\"org-text\">By {{ (widgetData?.content?.organisation && widgetData?.content?.organisation[0]) ? widgetData?.content?.organisation[0] : 'Karmayogi Bharat' }}</span>\n </div>\n <div class=\"flex flex-middle rating-session margin-top-m\">\n <div class=\"flex flex-middle\" *ngIf=\"widgetData?.content?.avgRating\">\n <mat-icon class=\"mr-1\">star</mat-icon>\n <span>{{widgetData.content.avgRating}}</span>\n </div>\n <!-- <span class=\"most-enrolled-text margin-left-m\">{{ 'cardcontentv2.mostEnrolled' | translate }}</span> -->\n <ng-container *ngIf=\"widgetData?.content?.additionalTags && widgetData?.content?.additionalTags.includes('mostEnrolled')\">\n <span class=\"most-enrolled-text margin-left-xs\">\n <!-- {{ 'cardcontentv2.mostEnrolled' | translate }} -->\n </span>\n </ng-container>\n <ng-container *ngIf=\"widgetData?.content?.additionalTags && widgetData?.content?.additionalTags.includes('mostTrending')\">\n <span class=\"most-enrolled-text margin-left-xs\">\n <!-- {{ 'cardcontentv2.mostTrending' | translate }} -->\n </span>\n </ng-container>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n <ng-container *ngIf=\"isCardFlipped\">\n <div class=\"flex items-center\">\n <!-- <h2 class=\"mat-subheading-2 flex-1 min-w-0 margin-remove-bottom\" i18n>{{'cardcontentv2.reason' | translate}}</h2> -->\n <button mat-icon-button (click)=\"isCardFlipped = false\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n <p class=\"text-justify mat-body-1\">\n {{ widgetData.content.reason }}\n </p>\n </ng-container>\n </a>\n </ng-container>\n </div>\n</mat-card>\n</ng-container>\n\n<ng-container *ngIf=\"isCardLoading\">\n <mat-card class=\"card-standard-container mr-5 padding-remove\" >\n <div class=\"display-contents\" >\n <ng-container *ngIf=\"!isCardFlipped\">\n <mat-card-content class=\"min-top\">\n <div style=\"position: relative; z-index: 1;\">\n <ng-container>\n <sb-uic-skeleton-loader [width]=\"'100%'\" [height]=\"'140px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </ng-container>\n </div>\n <div class=\"padding-m\">\n <div class=\"course_widget flex margin-remove\">\n <div class=\"flex flex-end\">\n <sb-uic-skeleton-loader [width]=\"'65px'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded br-8'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n <div class=\"mat-subheading-1 title-text ws-mat-text-block-fade-gradient\">\n <sb-uic-skeleton-loader [width]=\"'100%'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader [width]=\"'111px'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded margin-top-s'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"flex w-full flex-wrap flex-middle margin-top-m\">\n <div class=\"\">\n <sb-uic-skeleton-loader [width]=\"'28px'\" [height]=\"'28px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n <span class=\"org-text\"> <sb-uic-skeleton-loader [width]=\"'111px'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader></span>\n </div>\n <div class=\"flex flex-middle rating-session margin-top-m\">\n <div class=\"flex flex-middle\">\n <sb-uic-skeleton-loader [width]=\"'45px'\" [height]=\"'12px'\" [bindingClass]=\"'flex rounded margin-top-m'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n </div>\n </mat-card>\n</ng-container>",
|
|
8480
|
-
styles: [".course_widget{margin-top:10px}.course_widget .mat-icon{vertical-align:middle;color:#ef951e!important}.course_widget .course_v2{border:1px solid #ef951e;padding:4px 8px;align-items:end;border-radius:16px}.course_widget .main_icon{font-size:16px;width:16px;height:16px}.rating-session mat-icon{font-size:16px;height:16px;width:12px;padding-right:3px;color:#ef951e}.rating-session span{font-size:11px}.rating-session .most-enrolled-text{padding:0 8px;background:#ffea9e;border-radius:4px}.card-standard-container{position:relative;width:
|
|
8742
|
+
template: "<ng-container *ngIf=\"!isCardLoading\">\n <mat-card class=\"card-standard-container mr-5 padding-remove cursor-pointer {{widgetData?.cardCustomeClass}}\" [ngClass]=\"{\n greyOut:\n widgetData.deletedMode === 'greyOut' && !isLiveOrMarkForDeletion\n ? true\n : widgetData?.intranetMode === 'greyOut' && showIntranetContent\n }\" (click)=\"(showIntranetContent || !isLiveOrMarkForDeletion) && showSnackbar()\">\n <div class=\"display-contents\" [ngClass]=\"{\n disableClick:\n widgetData.deletedMode === 'greyOut' && !isLiveOrMarkForDeletion\n ? true\n : widgetData?.intranetMode === 'greyOut' && showIntranetContent\n }\">\n <ng-container *ngIf=\"widgetData.content\">\n <a (click)=\"getRedirectUrlData(widgetData?.content); $event.stopPropagation()\"\n role=\"link\" i18n-aria-label>\n <ng-container *ngIf=\"!isCardFlipped\">\n <div class=\"status-danger\" role=\"note\" i18n-aria-label aria-label=\"Content expired or deleted\" i18n-matTooltip\n matTooltip=\"Content may be expired or deleted\" *ngIf=\"!isLiveOrMarkForDeletion\"></div>\n <div class=\"status-danger\" role=\"note\" i18n-aria-label aria-label=\"Intranet content\" i18n-matTooltip\n matTooltip=\"Available only in Company's network\"\n *ngIf=\"widgetData?.intranetMode === 'greyOut' && showIntranetContent\"></div>\n <button *ngIf=\"showFlip\" class=\"detail-button ws-mat-primary-lite-background-op30\" mat-icon-button\n (click)=\"isCardFlipped = true\" aria-label=\"Details\" i18n-aria-label=\"Details | Click to see details\">\n <mat-icon>flip_to_back</mat-icon>\n </button>\n <mat-card-content class=\"min-top\">\n <div style=\"position: relative; z-index: 1;\">\n <ng-container *ngIf=\"widgetData.content.posterImage\">\n <img mat-card-image [src]=\"widgetData.content.posterImage | pipePublicURL\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData.content.name\" />\n </ng-container>\n <ng-container *ngIf=\"!widgetData.content.posterImage\">\n <ng-container *ngIf=\"widgetData.content.appIcon; else defaultImg\">\n <img mat-card-image [src]=\"widgetData.content.appIcon | pipePublicURL\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData.content.name\" />\n </ng-container>\n <ng-template #defaultImg>\n <img mat-card-image [src]=\"defaultThumbnail\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\"\n [alt]=\"widgetData.content.name\" />\n </ng-template>\n </ng-container>\n <div class=\"source-div\" style=\"display: none;\">\n <img [src]=\"widgetData.content.creatorLogo\" class=\"source-icon\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData.content.sourceName + '_' + widgetData.content.identifier)\" />\n </div>\n <ng-container *ngIf=\"widgetData?.content?.cbPlanEndDate\">\n <div class=\"cbp-mark\">\n <span>{{widgetData?.content?.cbPlanEndDate | date: 'd MMM, y'}}</span>\n </div>\n </ng-container>\n <!-- <ng-container *ngIf=\"widgetData?.content?.endDate\">\n <div class=\"cbp-mark\">\n <p *ngIf=\"widgetData?.content?.planDuration === acbpConstants?.UPCOMING\" class=\"cbp-warning\">{{widgetData?.content?.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"widgetData?.content?.planDuration === acbpConstants?.SUCCESS\" class=\"cbp-success\">{{widgetData?.content?.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"widgetData?.content?.planDuration === acbpConstants?.OVERDUE\" class=\"cbp-danger\">Over due</p>\n </div>\n </ng-container> -->\n <!-- <ng-container *ngIf=\"cbPlanMapData && cbPlanMapData[widgetData?.content?.identifier]\">\n <ng-container [ngTemplateOutlet]=\"cbpPlan\" [ngTemplateOutletContext]=\"{data: {\n cbpData: cbPlanMapData[widgetData?.content?.identifier]\n }}\"></ng-container>\n </ng-container> -->\n <div class=\"duration-box right-corner\" *ngIf=\"widgetData?.content?.duration > 0\">\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\n <span class=\" ws-mat-white-text duration\">\n {{ (widgetData?.content?.duration || 120)| pipeDurationTransform: 'hms' }}\n </span>\n </div>\n <div class=\"duration-box right-corner\" *ngIf=\"widgetData?.content?.programDuration > 0\">\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\n <span class=\" ws-mat-white-text duration\">\n {{widgetData?.content?.programDuration}} {{widgetData?.content?.programDuration === 1 ? 'day' : 'days'}}\n </span>\n </div>\n </div>\n <div class=\"padding-m\">\n <div class=\"course_widget flex margin-remove\">\n <div class=\"flex flex-end course_v2\">\n <mat-icon class=\"mat-icon main_icon ws-mat-default-text margin-right-xs\">video_library</mat-icon>\n <sb-uic-display-content-type i18n-title title=\"Content Type\" *ngIf=\"widgetData.content?.primaryCategory\"\n class=\"ws-mat-black60-text font-normal mat-caption \" [displayContentType]=\"widgetData.content?.primaryCategory==='Course Unit'\n ?'Module'\n :widgetData.content?.primaryCategory\">\n\n </sb-uic-display-content-type>\n </div>\n </div>\n <div [id]=\"'m-c-'+ widgetData.content?.identifier\"\n class=\"mat-subheading-1 title-text ws-mat-text-block-fade-gradient\">\n {{ widgetData.content.name }}\n </div>\n <div class=\"flex w-full flex-wrap flex-middle\">\n <div class=\"course_logo_box\">\n <img [src]=\"widgetData.content.creatorLogo | pipePublicURL \" class=\"source-icon\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData.content.sourceName + '_' + widgetData.content.identifier)\" />\n </div>\n <!-- <span class=\"org-text\">{{'cardcontentv2.by' | translate}} -->\n <span class=\"org-text\">By {{ (widgetData?.content?.organisation && widgetData?.content?.organisation[0]) ? widgetData?.content?.organisation[0] : 'Karmayogi Bharat' }}</span>\n </div>\n <div class=\"flex flex-middle rating-session margin-top-m\">\n <div class=\"flex flex-middle\" *ngIf=\"widgetData?.content?.avgRating\">\n <mat-icon class=\"mr-1\">star</mat-icon>\n <span>{{widgetData.content.avgRating}}</span>\n </div>\n <!-- <span class=\"most-enrolled-text margin-left-m\">{{ 'cardcontentv2.mostEnrolled' | translate }}</span> -->\n <ng-container *ngIf=\"widgetData?.content?.additionalTags && widgetData?.content?.additionalTags.includes('mostEnrolled')\">\n <span class=\"most-enrolled-text margin-left-xs\">\n <!-- {{ 'cardcontentv2.mostEnrolled' | translate }} -->\n </span>\n </ng-container>\n <ng-container *ngIf=\"widgetData?.content?.additionalTags && widgetData?.content?.additionalTags.includes('mostTrending')\">\n <span class=\"most-enrolled-text margin-left-xs\">\n <!-- {{ 'cardcontentv2.mostTrending' | translate }} -->\n </span>\n </ng-container>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n <ng-container *ngIf=\"isCardFlipped\">\n <div class=\"flex items-center\">\n <!-- <h2 class=\"mat-subheading-2 flex-1 min-w-0 margin-remove-bottom\" i18n>{{'cardcontentv2.reason' | translate}}</h2> -->\n <button mat-icon-button (click)=\"isCardFlipped = false\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n <p class=\"text-justify mat-body-1\">\n {{ widgetData.content.reason }}\n </p>\n </ng-container>\n </a>\n </ng-container>\n </div>\n</mat-card>\n</ng-container>\n\n<ng-container *ngIf=\"isCardLoading\">\n <mat-card class=\"card-standard-container mr-5 padding-remove\" >\n <div class=\"display-contents\" >\n <ng-container *ngIf=\"!isCardFlipped\">\n <mat-card-content class=\"min-top\">\n <div style=\"position: relative; z-index: 1;\">\n <ng-container>\n <sb-uic-skeleton-loader [width]=\"'100%'\" [height]=\"'140px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </ng-container>\n </div>\n <div class=\"padding-m\">\n <div class=\"course_widget flex margin-remove\">\n <div class=\"flex flex-end\">\n <sb-uic-skeleton-loader [width]=\"'65px'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded br-8'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n <div class=\"mat-subheading-1 title-text ws-mat-text-block-fade-gradient\">\n <sb-uic-skeleton-loader [width]=\"'100%'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader [width]=\"'111px'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded margin-top-s'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"flex w-full flex-wrap flex-middle margin-top-m\">\n <div class=\"\">\n <sb-uic-skeleton-loader [width]=\"'28px'\" [height]=\"'28px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n <span class=\"org-text\"> <sb-uic-skeleton-loader [width]=\"'111px'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader></span>\n </div>\n <div class=\"flex flex-middle rating-session margin-top-m\">\n <div class=\"flex flex-middle\">\n <sb-uic-skeleton-loader [width]=\"'45px'\" [height]=\"'12px'\" [bindingClass]=\"'flex rounded margin-top-m'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n </div>\n </mat-card>\n</ng-container>",
|
|
8743
|
+
styles: [".course_widget{margin-top:10px}.course_widget .mat-icon{vertical-align:middle;color:#ef951e!important}.course_widget .course_v2{border:1px solid #ef951e;padding:4px 8px;align-items:end;border-radius:16px}.course_widget .main_icon{font-size:16px;width:16px;height:16px}.rating-session mat-icon{font-size:16px;height:16px;width:12px;padding-right:3px;color:#ef951e}.rating-session span{font-size:11px}.rating-session .most-enrolled-text{padding:0 8px;background:#ffea9e;border-radius:4px}.card-standard-container{position:relative;width:245px;min-height:346px;border-radius:8px;box-sizing:border-box;box-shadow:0 10px 30px rgba(153,153,153,.2);overflow:hidden;height:346px;margin:20px 8px}.card-standard-container .progress-bar{width:101%;margin-left:-15px;display:flex;margin-top:0;background:bisque;position:absolute;bottom:0}.card-standard-container ::ng-deep .mat-progress-bar{height:8px!important}.card-standard-container .icon_text{font-size:12px;line-height:16px;text-transform:uppercase}.card-standard-container .course_logo_box{width:38px;height:38px;background:#fff;border-radius:8px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.card-standard-container .course_logo_box img{height:28px;width:28px;padding:5px;display:inline-block}.card-standard-container .course_logo_box p{display:inline-block;vertical-align:top}.card-standard-container .org-text{font-size:12px;font-weight:400;width:75%;padding-left:10px;word-break:break-all;white-space:initial;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.card-standard-container .source-div{position:relative;top:100px;background:#fff;z-index:3;border:1px solid #dedfe0;min-width:72px;min-height:72px;max-width:72px;max-height:72px;display:flex;border-radius:8px}.card-standard-container .source-div .source-icon{border-radius:8px;display:block;margin:auto;max-width:58px;max-height:-webkit-fill-available}.card-standard-container mat-card-content{background:#fff}.card-standard-container .card-img{min-width:245px;max-height:140px;min-height:140px;display:block;-o-object-fit:fill;object-fit:fill;border-top-left-radius:8px;border-top-right-radius:8px;width:100%}.card-standard-container .mat-subheading-1{font:600 14px/24px Montserrat}.card-standard-container .complexity{padding-top:70px;display:flex;font-size:14px;line-height:21px;padding-bottom:10px}.card-standard-container .complexity .mode-tag{border-radius:5px;order:2;margin-left:auto;color:#fff;font-size:10px}.card-standard-container .complexity .duration{display:flex;margin-left:auto;order:3;font-weight:700}.card-standard-container .complexity .time-text{margin:0 5px 0 6px;font-weight:700}.card-standard-container .basic{margin:auto 0}.card-standard-container .title-text{word-break:break-all;white-space:initial;margin:8px 0;position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:48px}.card-standard-container .description-text{position:relative;overflow:hidden;height:42px;white-space:normal;text-overflow:ellipsis}.duration-box{background:#000;position:absolute;border:none;display:flex;align-items:center;padding:4px;border-radius:4px}.duration-box.right-corner{right:4px;bottom:4px}.duration-box .mat-icon{vertical-align:middle;color:#fff!important;height:14px!important;width:14px!important;font-size:14px}.duration-box .duration{font:700 12px/16px Lato;display:inline-block;margin:0;padding:0}.width-238{width:238px!important}"]
|
|
8481
8744
|
}] }
|
|
8482
8745
|
];
|
|
8483
8746
|
/** @nocollapse */
|
|
@@ -9076,6 +9339,7 @@ var CardLandscapeComponent = /** @class */ (function () {
|
|
|
9076
9339
|
this.configSvc = configSvc;
|
|
9077
9340
|
this.isCardLoading = false;
|
|
9078
9341
|
this.contentData = new EventEmitter();
|
|
9342
|
+
this.triggerTelemetry = new EventEmitter();
|
|
9079
9343
|
this.isCardFlipped = false;
|
|
9080
9344
|
this.acbpConstants = NsCardContent$1.ACBPConst;
|
|
9081
9345
|
this.showFlip = false;
|
|
@@ -9145,29 +9409,15 @@ var CardLandscapeComponent = /** @class */ (function () {
|
|
|
9145
9409
|
this.contentData.emit(contentData);
|
|
9146
9410
|
};
|
|
9147
9411
|
/**
|
|
9412
|
+
* @param {?} content
|
|
9148
9413
|
* @return {?}
|
|
9149
9414
|
*/
|
|
9150
9415
|
CardLandscapeComponent.prototype.raiseTelemetry = /**
|
|
9416
|
+
* @param {?} content
|
|
9151
9417
|
* @return {?}
|
|
9152
9418
|
*/
|
|
9153
|
-
function () {
|
|
9154
|
-
|
|
9155
|
-
// return
|
|
9156
|
-
// }
|
|
9157
|
-
this.events.raiseInteractTelemetry({
|
|
9158
|
-
type: 'click',
|
|
9159
|
-
subType: this.widgetType + "-" + this.widgetSubType,
|
|
9160
|
-
id: camelCase(this.widgetData.content.primaryCategory) + "-card",
|
|
9161
|
-
}, {
|
|
9162
|
-
id: this.widgetData.content.identifier,
|
|
9163
|
-
type: this.widgetData.content.primaryCategory,
|
|
9164
|
-
//context: this.widgetData.context,
|
|
9165
|
-
rollup: {},
|
|
9166
|
-
ver: "" + this.widgetData.content.version + '',
|
|
9167
|
-
}, {
|
|
9168
|
-
pageIdExt: camelCase(this.widgetData.content.primaryCategory) + "-card",
|
|
9169
|
-
module: camelCase(this.widgetData.content.primaryCategory),
|
|
9170
|
-
});
|
|
9419
|
+
function (content) {
|
|
9420
|
+
this.triggerTelemetry.emit(content);
|
|
9171
9421
|
};
|
|
9172
9422
|
/**
|
|
9173
9423
|
* @return {?}
|
|
@@ -9198,7 +9448,7 @@ var CardLandscapeComponent = /** @class */ (function () {
|
|
|
9198
9448
|
CardLandscapeComponent.decorators = [
|
|
9199
9449
|
{ type: Component, args: [{
|
|
9200
9450
|
selector: 'sb-uic-card-landscape',
|
|
9201
|
-
template: "<ng-container *ngIf=\"!isCardLoading\">\n <a class=\"cursor-pointer\" (click)=\"raiseTelemetry();getRedirectUrlData(widgetData?.content); $event.stopPropagation()\" \n role=\"link\" i18n-aria-label>\n <mat-card class=\"card-portrait mr-2 card-portrait-clickable min-height-remove\" [ngClass]=\"widgetData.cardCustomeClass ? widgetData.cardCustomeClass : ''\">\n <div class=\"course_widget portrait_widget flex margin-bottom-xs\">\n <div class=\"flex flex-end flex-middle course_port\">\n <mat-icon class=\"mat-icon main_icon ws-mat-default-text margin-right-xs\">video_library</mat-icon>\n <sb-uic-display-content-type i18n-title title=\"Content Type\" *ngIf=\"widgetData.content?.primaryCategory\"\n class=\"ws-mat-black60-text font-normal mat-caption \" [displayContentType]=\"widgetData.content?.primaryCategory==='Course Unit'\n ?'Module'\n :widgetData.content?.primaryCategory\">\n </sb-uic-display-content-type>\n </div>\n </div>\n <div class=\"flex\">\n <div class=\"margin-right-s\">\n <ng-container *ngIf=\"widgetData?.content?.posterImage\">\n <div class=\" img-block-portrait position-relative\">\n <img mat-card-image [src]=\"widgetData?.content?.posterImage | pipePublicURL\" loading=\"lazy\"\n class=\"card-image ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData.content.name\" />\n <div class=\"duration-box right-corner-portrait\" *ngIf=\"widgetData?.content?.duration > 0\">\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\n <span class=\" ws-mat-white-text duration\">\n {{ (widgetData?.content?.duration || 120)| pipeDurationTransform: 'hms' }}\n </span>\n </div>\n <div class=\"duration-box right-corner-portrait\" *ngIf=\"widgetData?.content?.programDuration > 0\">\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\n <span class=\" ws-mat-white-text duration\">\n {{widgetData?.content?.programDuration}} {{widgetData?.content?.programDuration === 1 ? 'day' : 'days'}}\n </span>\n </div>\n <ng-container *ngIf=\"cbPlanMapData && cbPlanMapData[widgetData?.content?.identifier]\">\n <ng-container [ngTemplateOutlet]=\"cbpPlan\" [ngTemplateOutletContext]=\"{data: {\n cbpData: cbPlanMapData[widgetData?.content?.identifier]\n }}\"></ng-container>\n </ng-container>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!widgetData?.content?.posterImage\">\n <ng-container *ngIf=\"widgetData?.content?.appIcon; else defaultImg\">\n <img mat-card-image [src]=\"widgetData.content.appIcon | pipePublicURL\" loading=\"lazy\"\n class=\"card-image ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData.content.name\" />\n </ng-container>\n <ng-template #defaultImg>\n <img mat-card-image [src]=\"defaultThumbnail\" loading=\"lazy\"\n class=\"card-image ws-mat-primary-lite-background margin-remove\"\n [alt]=\"widgetData?.content?.name\" />\n </ng-template>\n </ng-container>\n </div>\n <div class=\"width-1-1\">\n <div [id]=\"'m-c-'+ widgetData?.content?.identifier\"\n class=\"portrait-subheading mat-subheading-2 title-text\">\n {{ widgetData?.content?.name }}\n </div>\n <div class=\"flex w-full flex-middle\">\n <div class=\"portrait_course_logo_box margin-right-xs\">\n <img [src]=\"widgetData?.content?.creatorLogo | pipePublicURL \" class=\"source-icon\" loading=\"lazy\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData?.content?.sourceName + '_' + widgetData?.content?.identifier)\" />\n </div>\n <!-- <span class=\"portrait-org-name font-normal mat-caption\">{{'cardcontentv2.by' | translate}} {{ (widgetData.content.organisation && widgetData.content.organisation[0]) ? widgetData.content.organisation[0] : 'Karmayogi Bharat' }}</span> -->\n </div>\n\n <div class=\"flex flex-middle rating-session margin-top-xs\">\n <div class=\"flex flex-middle\" *ngIf=\"widgetData?.content?.avgRating\">\n <mat-icon class=\"mr-1\">star</mat-icon>\n <span>{{widgetData.content.avgRating}}</span>\n </div>\n <!-- <ng-container *ngIf=\"widgetData?.content?.additionalTags && widgetData?.content?.additionalTags.includes('mostEnrolled')\">\n <span class=\"most-enrolled-text margin-left-xs\">{{ 'cardcontentv2.mostEnrolled' | translate }}</span>\n </ng-container>\n <ng-container *ngIf=\"widgetData?.content?.additionalTags && widgetData?.content?.additionalTags.includes('mostTrending')\">\n <span class=\"most-enrolled-text margin-left-xs\">{{ 'cardcontentv2.mostTrending' | translate }}</span>\n </ng-container> -->\n </div>\n </div>\n </div>\n </mat-card>\n </a>\n</ng-container>\n\n<ng-template #cbpPlan let-data=\"data\">\n <div class=\"cbp-mark left-0 border-top-radius\">\n <p *ngIf=\"data.cbpData.planDuration === acbpConstants?.UPCOMING\" class=\"cbp-warning\">{{data.cbpData.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"data.cbpData.planDuration === acbpConstants?.SUCCESS\" class=\"cbp-success\">{{data.cbpData.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"data.cbpData.planDuration === acbpConstants?.OVERDUE\" class=\"cbp-danger\">{{'OverDue' }}</p>\n </div>\n </ng-template>\n\n<ng-container *ngIf=\"isCardLoading\">\n <mat-card class=\"card-portrait mr-2 card-portrait-clickable\" [ngClass]=\"widgetData.cardCustomeClass ? widgetData.cardCustomeClass : ''\">\n <div class=\"flex\">\n <div class=\"margin-right-s\">\n <ng-container>\n <sb-uic-skeleton-loader [width]=\"'147px'\" [height]=\"'100px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </ng-container>\n </div>\n <div class=\"width-1-1\">\n <div class=\"portrait-subheading title-text\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded width-1-1'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"flex w-full flex-wrap flex-middle\">\n <sb-uic-skeleton-loader [width]=\"'24px'\" [height]=\"'24px'\" [bindingClass]=\"'flex rounded margin-right-xs'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader [width]=\"'100px'\" [height]=\"'12px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"portrait_widget flex margin-top-xs\">\n <div class=\"flex flex-end flex-middle\">\n <sb-uic-skeleton-loader [width]=\"'65px'\" [height]=\"'12px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </mat-card>\n</ng-container>",
|
|
9451
|
+
template: "<ng-container *ngIf=\"!isCardLoading\">\n <a class=\"cursor-pointer\" (click)=\"raiseTelemetry(widgetData?.content);getRedirectUrlData(widgetData?.content); $event.stopPropagation()\" \n role=\"link\" i18n-aria-label>\n <mat-card class=\"card-portrait mr-2 card-portrait-clickable min-height-remove\" [ngClass]=\"widgetData.cardCustomeClass ? widgetData.cardCustomeClass : ''\">\n <div class=\"course_widget portrait_widget flex margin-bottom-xs\">\n <div class=\"flex flex-end flex-middle course_port\">\n <mat-icon class=\"mat-icon main_icon ws-mat-default-text margin-right-xs\">video_library</mat-icon>\n <sb-uic-display-content-type i18n-title title=\"Content Type\" *ngIf=\"widgetData.content?.primaryCategory\"\n class=\"ws-mat-black60-text font-normal mat-caption \" [displayContentType]=\"widgetData.content?.primaryCategory==='Course Unit'\n ?'Module'\n :widgetData.content?.primaryCategory\">\n </sb-uic-display-content-type>\n </div>\n </div>\n <div class=\"flex\">\n <div class=\"margin-right-s\">\n <ng-container *ngIf=\"widgetData?.content?.posterImage\">\n <div class=\" img-block-portrait position-relative\">\n <img mat-card-image [src]=\"widgetData?.content?.posterImage | pipePublicURL\" loading=\"lazy\"\n class=\"card-image ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData.content.name\" />\n <div class=\"duration-box right-corner-portrait\" *ngIf=\"widgetData?.content?.duration > 0\">\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\n <span class=\" ws-mat-white-text duration\">\n {{ (widgetData?.content?.duration || 120)| pipeDurationTransform: 'hms' }}\n </span>\n </div>\n <div class=\"duration-box right-corner-portrait\" *ngIf=\"widgetData?.content?.programDuration > 0\">\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\n <span class=\" ws-mat-white-text duration\">\n {{widgetData?.content?.programDuration}} {{widgetData?.content?.programDuration === 1 ? 'day' : 'days'}}\n </span>\n </div>\n <ng-container *ngIf=\"cbPlanMapData && cbPlanMapData[widgetData?.content?.identifier]\">\n <ng-container [ngTemplateOutlet]=\"cbpPlan\" [ngTemplateOutletContext]=\"{data: {\n cbpData: cbPlanMapData[widgetData?.content?.identifier]\n }}\"></ng-container>\n </ng-container>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!widgetData?.content?.posterImage\">\n <ng-container *ngIf=\"widgetData?.content?.appIcon; else defaultImg\">\n <img mat-card-image [src]=\"widgetData.content.appIcon | pipePublicURL\" loading=\"lazy\"\n class=\"card-image ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData.content.name\" />\n </ng-container>\n <ng-template #defaultImg>\n <img mat-card-image [src]=\"defaultThumbnail\" loading=\"lazy\"\n class=\"card-image ws-mat-primary-lite-background margin-remove\"\n [alt]=\"widgetData?.content?.name\" />\n </ng-template>\n </ng-container>\n </div>\n <div class=\"width-1-1\">\n <div [id]=\"'m-c-'+ widgetData?.content?.identifier\"\n class=\"portrait-subheading mat-subheading-2 title-text\">\n {{ widgetData?.content?.name }}\n </div>\n <div class=\"flex w-full flex-middle\">\n <div class=\"portrait_course_logo_box margin-right-xs\">\n <img [src]=\"widgetData?.content?.creatorLogo | pipePublicURL \" class=\"source-icon\" loading=\"lazy\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData?.content?.sourceName + '_' + widgetData?.content?.identifier)\" />\n </div>\n <!-- <span class=\"portrait-org-name font-normal mat-caption\">{{'cardcontentv2.by' | translate}} {{ (widgetData.content.organisation && widgetData.content.organisation[0]) ? widgetData.content.organisation[0] : 'Karmayogi Bharat' }}</span> -->\n </div>\n\n <div class=\"flex flex-middle rating-session margin-top-xs\">\n <div class=\"flex flex-middle\" *ngIf=\"widgetData?.content?.avgRating\">\n <mat-icon class=\"mr-1\">star</mat-icon>\n <span>{{widgetData.content.avgRating}}</span>\n </div>\n <!-- <ng-container *ngIf=\"widgetData?.content?.additionalTags && widgetData?.content?.additionalTags.includes('mostEnrolled')\">\n <span class=\"most-enrolled-text margin-left-xs\">{{ 'cardcontentv2.mostEnrolled' | translate }}</span>\n </ng-container>\n <ng-container *ngIf=\"widgetData?.content?.additionalTags && widgetData?.content?.additionalTags.includes('mostTrending')\">\n <span class=\"most-enrolled-text margin-left-xs\">{{ 'cardcontentv2.mostTrending' | translate }}</span>\n </ng-container> -->\n </div>\n </div>\n </div>\n </mat-card>\n </a>\n</ng-container>\n\n<ng-template #cbpPlan let-data=\"data\">\n <div class=\"cbp-mark left-0 border-top-radius\">\n <p *ngIf=\"data.cbpData.planDuration === acbpConstants?.UPCOMING\" class=\"cbp-warning\">{{data.cbpData.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"data.cbpData.planDuration === acbpConstants?.SUCCESS\" class=\"cbp-success\">{{data.cbpData.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"data.cbpData.planDuration === acbpConstants?.OVERDUE\" class=\"cbp-danger\">{{'OverDue' }}</p>\n </div>\n </ng-template>\n\n<ng-container *ngIf=\"isCardLoading\">\n <mat-card class=\"card-portrait mr-2 card-portrait-clickable\" [ngClass]=\"widgetData.cardCustomeClass ? widgetData.cardCustomeClass : ''\">\n <div class=\"flex\">\n <div class=\"margin-right-s\">\n <ng-container>\n <sb-uic-skeleton-loader [width]=\"'147px'\" [height]=\"'100px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </ng-container>\n </div>\n <div class=\"width-1-1\">\n <div class=\"portrait-subheading title-text\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded width-1-1'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"flex w-full flex-wrap flex-middle\">\n <sb-uic-skeleton-loader [width]=\"'24px'\" [height]=\"'24px'\" [bindingClass]=\"'flex rounded margin-right-xs'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader [width]=\"'100px'\" [height]=\"'12px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"portrait_widget flex margin-top-xs\">\n <div class=\"flex flex-end flex-middle\">\n <sb-uic-skeleton-loader [width]=\"'65px'\" [height]=\"'12px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </mat-card>\n</ng-container>",
|
|
9202
9452
|
styles: [".card-portrait{border-radius:12px;border:1px solid rgba(0,0,0,.08);opacity:1;width:350px;min-height:154px;padding:16px}.card-portrait .img-block-portrait{line-height:10px}.card-portrait .card-image{border-radius:8px;opacity:1;background-size:100%;width:147px;height:100px}.card-portrait .portrait-subheading{opacity:1;color:rgba(0,0,0,.87);font-weight:700;font-style:normal;letter-spacing:.25px;text-align:left;word-break:break-word;white-space:initial;margin:0 0 8px;position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:40px}.card-portrait .portrait_course_logo_box img{padding:3px;display:inline-block;width:24px;height:24px;border:1px solid #d6d6d6;border-radius:4px;box-sizing:border-box}.card-portrait span.portrait-org-name{width:75%;word-break:break-all;white-space:initial;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.card-portrait .portrait_widget{align-items:center;margin-top:0}.card-portrait .portrait_widget .course_port{border:1px solid #ef951e;padding:4px 8px;align-items:center;border-radius:16px}.card-portrait .portrait_widget .video-icon{opacity:1;color:#ef951e;width:15px;height:15px;font-size:15px}.card-portrait .portrait_widget .portrait-category{color:rgba(0,0,0,.6)!important;font-size:.75rem;opacity:1;font-family:Lato-Regular;font-weight:400;font-style:normal;letter-spacing:.25px;text-align:left;line-height:20px}.card-portrait .progress-wrapper .progress-block{width:60%}.card-portrait .progress-wrapper .progress-block .completed-time{color:#ef951e;display:flex;padding:8px 0}.card-portrait .progress-wrapper .progress-block .completed-time mat-icon{width:1rem;height:1rem;font-size:1rem}.card-portrait .progress-wrapper .progress-block .completed-time span{opacity:1;color:rgba(0,0,0,.87);font-family:Lato-Regular;font-size:.75rem;font-weight:400;font-style:normal;letter-spacing:.25px;text-align:left;line-height:16px}.card-portrait .progress-wrapper .progress-btn .resume-btn{opacity:1;color:#fff;font-family:Lato-Bold;font-size:14px;font-weight:700;font-style:normal;letter-spacing:.5px;text-align:left;line-height:20px;background:#1a4ca1;border-radius:63px;padding:6px 16px;border:none;width:100%;cursor:pointer}.card-portrait .progress-wrapper .progress-btn .resume-btn .textwrap{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:82px}.card-portrait .progress-wrapper .progress-btn .resume-btn:hover{background-color:#253379}.card-portrait .progress-bar-new{color:#ef951e!important;height:10px;border-radius:5px}.card-portrait .rating-session mat-icon{font-size:20px;height:20px;width:20px;color:#ef951e}.card-portrait .rating-session .rating-number{font-size:14px}.card-portrait .rating-session .most-enrolled-text{font-size:10px;font-weight:400;padding:4px;background:#ffea9e;border-radius:4px;line-height:12px}.card-portrait .right-corner-portrait{right:8px;bottom:8px}.card-portrait-clickable{min-height:146px!important}.card-portrait-clickable .right-corner-portrait{right:8px;bottom:8px}.card-portrait-clickable:hover{transform:scale(1.02)}.course_widget{margin-top:10px}.course_widget .mat-icon{vertical-align:middle;color:#ef951e!important}.course_widget .course_v2{border:1px solid #ef951e;padding:4px 8px;align-items:end;border-radius:16px}.course_widget .main_icon{font-size:16px;width:16px;height:16px}.rating-session mat-icon{font-size:16px;height:16px;width:12px;padding-right:3px;color:#ef951e}.rating-session span{font-size:11px}.rating-session .most-enrolled-text{padding:0 8px;background:#ffea9e;border-radius:4px}.duration-box{background:#000;position:absolute;border:none;display:flex;align-items:center;padding:4px;border-radius:4px}.duration-box.right-corner{right:4px;bottom:4px}.duration-box .mat-icon{vertical-align:middle;color:#fff!important;height:14px!important;width:14px!important;font-size:14px}.duration-box .duration{font:700 12px/16px Lato;display:inline-block;margin:0;padding:0}@media only screen and (max-width:768px){.card-portrait{width:calc(100vw - 66px)}.card-wide-v2{min-height:356px}.card-wide-v2 .imageholder img{border-radius:12px 12px 0 0!important}.cbpwidth{width:calc(100vw - 100px)}}"]
|
|
9203
9453
|
}] }
|
|
9204
9454
|
];
|
|
@@ -9216,7 +9466,8 @@ var CardLandscapeComponent = /** @class */ (function () {
|
|
|
9216
9466
|
showIntranetContent: [{ type: Input }],
|
|
9217
9467
|
isIntranetAllowedSettings: [{ type: Input }],
|
|
9218
9468
|
isCardLoading: [{ type: Input }],
|
|
9219
|
-
contentData: [{ type: Output }]
|
|
9469
|
+
contentData: [{ type: Output }],
|
|
9470
|
+
triggerTelemetry: [{ type: Output }]
|
|
9220
9471
|
};
|
|
9221
9472
|
return CardLandscapeComponent;
|
|
9222
9473
|
}());
|
|
@@ -9234,6 +9485,8 @@ if (false) {
|
|
|
9234
9485
|
/** @type {?} */
|
|
9235
9486
|
CardLandscapeComponent.prototype.contentData;
|
|
9236
9487
|
/** @type {?} */
|
|
9488
|
+
CardLandscapeComponent.prototype.triggerTelemetry;
|
|
9489
|
+
/** @type {?} */
|
|
9237
9490
|
CardLandscapeComponent.prototype.isCardFlipped;
|
|
9238
9491
|
/** @type {?} */
|
|
9239
9492
|
CardLandscapeComponent.prototype.defaultThumbnail;
|
|
@@ -9449,14 +9702,17 @@ if (false) {
|
|
|
9449
9702
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9450
9703
|
*/
|
|
9451
9704
|
var CardMDOChannelComponent = /** @class */ (function () {
|
|
9452
|
-
function CardMDOChannelComponent(events, translate, langtranslations, configSvc) {
|
|
9705
|
+
function CardMDOChannelComponent(events, translate, langtranslations, configSvc, contSvc, router) {
|
|
9453
9706
|
var _this = this;
|
|
9454
9707
|
this.events = events;
|
|
9455
9708
|
this.translate = translate;
|
|
9456
9709
|
this.langtranslations = langtranslations;
|
|
9457
9710
|
this.configSvc = configSvc;
|
|
9458
|
-
this.
|
|
9459
|
-
this.
|
|
9711
|
+
this.contSvc = contSvc;
|
|
9712
|
+
this.router = router;
|
|
9713
|
+
this.channelData = new EventEmitter();
|
|
9714
|
+
this.emitTelemetry = new EventEmitter();
|
|
9715
|
+
this.widgetType = '';
|
|
9460
9716
|
this.widgetSubType = '';
|
|
9461
9717
|
this.langtranslations.languageSelectedObservable.subscribe((/**
|
|
9462
9718
|
* @return {?}
|
|
@@ -9490,34 +9746,47 @@ var CardMDOChannelComponent = /** @class */ (function () {
|
|
|
9490
9746
|
}
|
|
9491
9747
|
};
|
|
9492
9748
|
/**
|
|
9749
|
+
* @param {?} contentData
|
|
9493
9750
|
* @return {?}
|
|
9494
9751
|
*/
|
|
9495
9752
|
CardMDOChannelComponent.prototype.raiseTelemetry = /**
|
|
9753
|
+
* @param {?} contentData
|
|
9496
9754
|
* @return {?}
|
|
9497
9755
|
*/
|
|
9498
|
-
function () {
|
|
9499
|
-
|
|
9500
|
-
|
|
9501
|
-
|
|
9502
|
-
|
|
9503
|
-
|
|
9504
|
-
|
|
9505
|
-
|
|
9506
|
-
|
|
9507
|
-
|
|
9508
|
-
|
|
9509
|
-
|
|
9510
|
-
|
|
9511
|
-
|
|
9512
|
-
|
|
9513
|
-
|
|
9514
|
-
|
|
9756
|
+
function (contentData) {
|
|
9757
|
+
this.emitTelemetry.emit(contentData);
|
|
9758
|
+
if (this.widgetData) {
|
|
9759
|
+
contentData['typeOfTelemetry'] = 'mdo-channel';
|
|
9760
|
+
}
|
|
9761
|
+
this.contSvc.changeTelemetryData(contentData);
|
|
9762
|
+
};
|
|
9763
|
+
/**
|
|
9764
|
+
* @param {?} channeldata
|
|
9765
|
+
* @return {?}
|
|
9766
|
+
*/
|
|
9767
|
+
CardMDOChannelComponent.prototype.channelClick = /**
|
|
9768
|
+
* @param {?} channeldata
|
|
9769
|
+
* @return {?}
|
|
9770
|
+
*/
|
|
9771
|
+
function (channeldata) {
|
|
9772
|
+
this.channelData.emit(channeldata);
|
|
9773
|
+
};
|
|
9774
|
+
/**
|
|
9775
|
+
* @param {?} content
|
|
9776
|
+
* @return {?}
|
|
9777
|
+
*/
|
|
9778
|
+
CardMDOChannelComponent.prototype.redirectTo = /**
|
|
9779
|
+
* @param {?} content
|
|
9780
|
+
* @return {?}
|
|
9781
|
+
*/
|
|
9782
|
+
function (content) {
|
|
9783
|
+
this.router.navigate(["/app/learn/mdo-channels/" + content.orgName + "/" + content.identifier + "/micro-sites"]);
|
|
9515
9784
|
};
|
|
9516
9785
|
CardMDOChannelComponent.decorators = [
|
|
9517
9786
|
{ type: Component, args: [{
|
|
9518
9787
|
selector: 'sb-uic-card-mdo-channel',
|
|
9519
|
-
template: "<mat-card class=\"channels-card card-channels-container mr-5 padding-remove cursor-pointer\">\n <div class=\"display-contents\">\n <ng-container *ngIf=\"widgetData.content\">\n <a (click)=\"raiseTelemetry()
|
|
9520
|
-
styles: [".card-channels-container{position:relative;width:282px;box-sizing:border-box;box-shadow:0 10px 30px rgba(153,153,153,.2);overflow:hidden;min-height:156px;height:156px;max-height:156px;margin:0 8px;background:#7faeff!important;border-radius:12px;padding:4px!important}.card-channels-container .min-top{background:inherit;margin-bottom:0;height:inherit}.card-channels-container .image-container{background-color:#fff;width:inherit;height:86px;max-height:86px;overflow:hidden;display:flex;align-items:center;justify-content:center;border-radius:12px}.card-channels-container .card-img{max-height:62px;min-height:62px;display:block;-o-object-fit:fill;object-fit:contain}.card-channels-container .mat-subheading-1{font:600 14px/24px Montserrat}.card-channels-container .title-container{background:inherit}.card-channels-container .description-text{position:relative;overflow:hidden;height:51px}.card-channels-container .title-text{word-break:break-all;white-space:initial;margin:8px 0;position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:48px}"]
|
|
9788
|
+
template: "<mat-card class=\"channels-card card-channels-container mr-5 padding-remove cursor-pointer\">\n <div class=\"display-contents\">\n <ng-container *ngIf=\"widgetData.content\">\n <a (click)=\"raiseTelemetry(widgetData.content); redirectTo(widgetData.content); $event.stopPropagation()\"\n i18n-aria-label>\n <ng-container>\n <mat-card-content class=\"min-top\">\n <div class=\"flex flex-col h-full\">\n <div class=\"image-container\">\n <ng-container *ngIf=\"widgetData.content.posterImage\">\n <img mat-card-image [src]=\"widgetData.content.posterImage | pipePublicURL\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData.content.name\" />\n </ng-container>\n <ng-container *ngIf=\"!widgetData.content.posterImage\">\n <ng-container *ngIf=\"widgetData.content.imgUrl; else defaultImg\">\n <img mat-card-image [src]=\"widgetData.content.imgUrl | pipePublicURL\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData.content.name\" />\n </ng-container>\n <ng-template #defaultImg>\n <img mat-card-image [src]=\"defaultThumbnail\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\"\n [alt]=\"widgetData.content.name\" />\n </ng-template>\n </ng-container>\n </div>\n <div class=\"flex title-container px-2\">\n <div [id]=\"'m-c-'+ widgetData.content?.identifier\"\n class=\"flex-1 text-center mat-subheading-2 title-text ws-mat-black-text\">\n {{ widgetData?.content?.orgName }}\n </div>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n </a>\n </ng-container>\n </div>\n</mat-card>",
|
|
9789
|
+
styles: [".card-channels-container{position:relative;width:282px;box-sizing:border-box;box-shadow:0 10px 30px rgba(153,153,153,.2);overflow:hidden;min-height:156px;height:156px;max-height:156px;margin:0 8px;background:#7faeff!important;border-radius:12px;padding:4px!important}.card-channels-container .min-top{background:inherit;margin-bottom:0;height:inherit}.card-channels-container .image-container{background-color:#fff;width:inherit;height:86px;max-height:86px;overflow:hidden;display:flex;align-items:center;justify-content:center;border-radius:12px}.card-channels-container .card-img{max-height:62px;min-height:62px;display:block;-o-object-fit:fill;object-fit:contain}.card-channels-container .mat-subheading-1{font:600 14px/24px Montserrat}.card-channels-container .title-container{background:inherit}.card-channels-container .description-text{position:relative;overflow:hidden;height:51px}.card-channels-container .title-text{word-break:break-all;white-space:initial;margin:8px 0;position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:48px}@media screen and (max-width:768px){.card-channels-container{width:100%;margin:0}}"]
|
|
9521
9790
|
}] }
|
|
9522
9791
|
];
|
|
9523
9792
|
/** @nocollapse */
|
|
@@ -9525,11 +9794,14 @@ var CardMDOChannelComponent = /** @class */ (function () {
|
|
|
9525
9794
|
{ type: EventService },
|
|
9526
9795
|
{ type: TranslateService },
|
|
9527
9796
|
{ type: MultilingualTranslationsService$1 },
|
|
9528
|
-
{ type: ConfigurationsService$1 }
|
|
9797
|
+
{ type: ConfigurationsService$1 },
|
|
9798
|
+
{ type: WidgetContentService },
|
|
9799
|
+
{ type: Router }
|
|
9529
9800
|
]; };
|
|
9530
9801
|
CardMDOChannelComponent.propDecorators = {
|
|
9531
9802
|
widgetData: [{ type: Input }],
|
|
9532
|
-
|
|
9803
|
+
channelData: [{ type: Output }],
|
|
9804
|
+
emitTelemetry: [{ type: Output }]
|
|
9533
9805
|
};
|
|
9534
9806
|
return CardMDOChannelComponent;
|
|
9535
9807
|
}());
|
|
@@ -9537,7 +9809,9 @@ if (false) {
|
|
|
9537
9809
|
/** @type {?} */
|
|
9538
9810
|
CardMDOChannelComponent.prototype.widgetData;
|
|
9539
9811
|
/** @type {?} */
|
|
9540
|
-
CardMDOChannelComponent.prototype.
|
|
9812
|
+
CardMDOChannelComponent.prototype.channelData;
|
|
9813
|
+
/** @type {?} */
|
|
9814
|
+
CardMDOChannelComponent.prototype.emitTelemetry;
|
|
9541
9815
|
/** @type {?} */
|
|
9542
9816
|
CardMDOChannelComponent.prototype.defaultThumbnail;
|
|
9543
9817
|
/** @type {?} */
|
|
@@ -9568,6 +9842,13 @@ if (false) {
|
|
|
9568
9842
|
* @private
|
|
9569
9843
|
*/
|
|
9570
9844
|
CardMDOChannelComponent.prototype.configSvc;
|
|
9845
|
+
/**
|
|
9846
|
+
* @type {?}
|
|
9847
|
+
* @private
|
|
9848
|
+
*/
|
|
9849
|
+
CardMDOChannelComponent.prototype.contSvc;
|
|
9850
|
+
/** @type {?} */
|
|
9851
|
+
CardMDOChannelComponent.prototype.router;
|
|
9571
9852
|
}
|
|
9572
9853
|
|
|
9573
9854
|
/**
|
|
@@ -9584,6 +9865,7 @@ var CardWideV2Component = /** @class */ (function () {
|
|
|
9584
9865
|
this.configSvc = configSvc;
|
|
9585
9866
|
this.isCardLoading = false;
|
|
9586
9867
|
this.contentData = new EventEmitter();
|
|
9868
|
+
this.triggerTelemetry = new EventEmitter();
|
|
9587
9869
|
this.isCardFlipped = false;
|
|
9588
9870
|
this.acbpConstants = NsCardContent$1.ACBPConst;
|
|
9589
9871
|
this.showFlip = false;
|
|
@@ -9646,35 +9928,21 @@ var CardWideV2Component = /** @class */ (function () {
|
|
|
9646
9928
|
this.contentData.emit(contentData);
|
|
9647
9929
|
};
|
|
9648
9930
|
/**
|
|
9931
|
+
* @param {?} contentData
|
|
9649
9932
|
* @return {?}
|
|
9650
9933
|
*/
|
|
9651
9934
|
CardWideV2Component.prototype.raiseTelemetry = /**
|
|
9935
|
+
* @param {?} contentData
|
|
9652
9936
|
* @return {?}
|
|
9653
9937
|
*/
|
|
9654
|
-
function () {
|
|
9655
|
-
|
|
9656
|
-
// return
|
|
9657
|
-
// }
|
|
9658
|
-
this.events.raiseInteractTelemetry({
|
|
9659
|
-
type: 'click',
|
|
9660
|
-
subType: this.widgetType + "-" + this.widgetSubType,
|
|
9661
|
-
id: camelCase(this.widgetData.content.primaryCategory) + "-card",
|
|
9662
|
-
}, {
|
|
9663
|
-
id: this.widgetData.content.identifier,
|
|
9664
|
-
type: this.widgetData.content.primaryCategory,
|
|
9665
|
-
//context: this.widgetData.context,
|
|
9666
|
-
rollup: {},
|
|
9667
|
-
ver: "" + this.widgetData.content.version + '',
|
|
9668
|
-
}, {
|
|
9669
|
-
pageIdExt: camelCase(this.widgetData.content.primaryCategory) + "-card",
|
|
9670
|
-
module: camelCase(this.widgetData.content.primaryCategory),
|
|
9671
|
-
});
|
|
9938
|
+
function (contentData) {
|
|
9939
|
+
this.triggerTelemetry.emit(contentData);
|
|
9672
9940
|
};
|
|
9673
9941
|
CardWideV2Component.decorators = [
|
|
9674
9942
|
{ type: Component, args: [{
|
|
9675
9943
|
selector: 'sb-uic-card-wide-v2',
|
|
9676
|
-
template: "<ng-container *ngIf=\"!isCardLoading\">\n <mat-card class=\"card-wide-v2 padding-remove position-relative flex\">\n <div class=\"imageholder \">\n <img mat-card-image class=\"margin-remove\"\n [src]=\"widgetData?.content?.posterImage || widgetData?.content?.appIcon | pipePublicURL\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData?.content?.name\">\n <div class=\"source-div\" [hidden]=\"true\">\n <img [src]=\"widgetData?.content?.creatorLogo\" class=\"source-icon\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData?.content?.sourceName + '_' + widgetData?.content?.identifier)\" />\n </div>\n <div class=\"duration-box right-corner\" *ngIf=\"widgetData?.content?.duration > 0\">\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\n <span class=\" ws-mat-white-text duration\"> {{ (widgetData?.content?.duration || 120)| pipeDurationTransform: 'hms' }}</span>\n </div>\n <ng-container *ngIf=\"cbPlanMapData && cbPlanMapData[widgetData?.content?.identifier]\">\n <ng-container [ngTemplateOutlet]=\"cbpPlan\" [ngTemplateOutletContext]=\"{data: {\n cbpData: cbPlanMapData[widgetData?.content?.identifier]\n }}\"></ng-container>\n </ng-container>\n </div>\n <mat-card-content class=\"mat-text-box\">\n <div class=\"course_widget flex flex-between margin-remove\">\n <div class=\"flex flex-end course_v2\">\n <ng-container *ngIf=\"widgetData?.content?.contentType === 'Resource' || widgetData?.content?.contentType === 'Course' || widgetData?.content?.contentType === 'Module'\">\n <mat-icon class=\"mat-icon main_icon ws-mat-default-text margin-right-xs\">video_library</mat-icon>\n <span class=\"ws-mat-black60-text font-normal mat-caption \">\n {{widgetData?.content?.primaryCategory || widgetData?.content?.contentType}}\n <!-- {{ translateLabel(widgetData.content.primaryCategory || widgetData.content.contentType, 'searchfilters') }} -->\n </span>\n </ng-container>\n </div>\n </div>\n\n <div class=\"flex main_title_box\">\n <p class=\"mat-subheading-1 title-text font-bold-imp cursor-pointer content-title\">\n <a (click)=\"raiseTelemetry();getRedirectUrlData(widgetData?.content); $event.stopPropagation()\">\n {{widgetData?.content?.name}}\n </a>\n </p>\n </div>\n\n <div class=\"bottomsection\">\n <div class=\"flex w-full flex-wrap flex-middle provider\">\n <div class=\"course_logo_box\">\n <img [src]=\"widgetData?.content?.creatorLogo | pipePublicURL \" class=\"source-icon\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData?.content?.sourceName + '_' + widgetData?.content?.identifier)\" />\n </div>\n <span class=\"org-text\">By \n <!-- {{'cardcontentv2.by' | translate}} -->\n {{widgetData?.content?.organisation[0] }}</span>\n </div>\n <div class=\"flex flex-middle rating-session margin-top-xs\">\n <div class=\"flex flex-middle\" *ngIf=\"widgetData?.content?.avgRating\">\n <mat-icon>star</mat-icon>\n <span class=\"rating-number\">{{widgetData?.content?.avgRating}}</span>\n </div>\n <!-- <span class=\"most-enrolled-text margin-left-m\">{{ 'cardcontentv2.mostEnrolled' | translate }}</span> -->\n <ng-container *ngIf=\"widgetData?.content?.additionalTags && widgetData?.content?.additionalTags.includes('mostEnrolled')\">\n <!-- <span class=\"most-enrolled-text margin-left-xs\">{{ 'cardcontentv2.mostEnrolled' | translate }}</span> -->\n </ng-container>\n <ng-container *ngIf=\"widgetData?.content?.additionalTags && widgetData?.content?.additionalTags.includes('mostTrending')\">\n <!-- <span class=\"most-enrolled-text margin-left-xs\">{{ 'cardcontentv2.mostTrending' | translate }}</span> -->\n </ng-container>\n </div>\n </div>\n </mat-card-content>\n </mat-card>\n <ng-template #cbpPlan let-data=\"data\">\n <div class=\"cbp-mark left-0 border-top-radius\">\n <p *ngIf=\"data?.cbpData?.planDuration === acbpConstants?.UPCOMING\" class=\"cbp-warning\">{{data?.cbpData?.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"data?.cbpData?.planDuration === acbpConstants?.SUCCESS\" class=\"cbp-success\">{{data?.cbpData?.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"data?.cbpData?.planDuration === acbpConstants?.OVERDUE\" class=\"cbp-danger\">{{'OverDue' }}</p>\n </div>\n </ng-template>\n</ng-container>\n
|
|
9677
|
-
styles: [".course_widget{margin-top:10px}.course_widget .mat-icon{vertical-align:middle;color:#ef951e!important}.course_widget .course_v2{border:1px solid #ef951e;padding:4px 8px;align-items:end;border-radius:16px}.course_widget .main_icon{font-size:16px;width:16px;height:16px}.rating-session mat-icon{font-size:16px;height:16px;width:12px;padding-right:3px;color:#ef951e}.rating-session span{font-size:11px}.rating-session .most-enrolled-text{padding:0 8px;background:#ffea9e;border-radius:4px}.duration-box{background:#000;position:absolute;border:none;display:flex;align-items:center;padding:4px;border-radius:4px}.duration-box.right-corner{right:4px;bottom:4px}.duration-box .mat-icon{vertical-align:middle;color:#fff!important;height:14px!important;width:14px!important;font-size:14px}.duration-box .duration{font:700 12px/16px Lato;display:inline-block;margin:0;padding:0}.card-wide-v2{border-radius:12px;max-width:100%;min-width:784px;display:flex}.card-wide-v2 .title-text{word-break:break-all;white-space:initial;margin:8px 0 4px;position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:40px}.card-wide-v2 .course_logo_box{width:30px;height:30px;background:#fff;border-radius:4px;box-sizing:border-box;border:1px solid rgba(0,0,0,.16)}.card-wide-v2 .course_logo_box img{height:28px;width:28px;display:inline-block;-o-object-fit:cover;object-fit:cover}.card-wide-v2 .course_logo_box p{display:inline-block;vertical-align:top}.card-wide-v2 .org-text{font-size:14px;font-weight:400;padding-left:10px;word-break:break-all;white-space:initial;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.card-wide-v2 .rating-session mat-icon{font-size:20px;height:20px;width:20px;color:#ef951e}.card-wide-v2 .rating-session .rating-number{font-size:14px}.card-wide-v2 .rating-session .most-enrolled-text{font-size:12px;padding:0 10px;background:#ffea9e;border-radius:4px}.card-wide-v2 .highlight_point_text{margin-top:15px}.card-wide-v2 ul.highlighting_list li{display:inline-block;padding-right:10px}.card-wide-v2 ul.highlighting_list li .rating-number{letter-spacing:0;color:#f69953}.card-wide-v2 ul.highlighting_list li.rating .mat-icon{width:16px;height:16px;display:inline-table;color:#f69953;font-size:18px;vertical-align:text-bottom}.card-wide-v2 img.text_seperator{vertical-align:middle}.card-wide-v2 .mat-text-box{padding:12px;box-sizing:border-box;width:calc(100% - 315px)}@media (max-width:992px){.card-wide-v2 .mat-text-box{width:66%;padding:8px;position:relative;height:auto}}.card-wide-v2 .mat-text-box p.mat-caption .mat-icon{vertical-align:middle;height:18px!important;width:16px!important;font-size:16px!important;line-height:1.2}.card-wide-v2 .mat-text-box p.mat-caption .title_icon{vertical-align:middle}.card-wide-v2 .imageholder{width:310px;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:center}.card-wide-v2 .imageholder img{width:100%;display:block;border-radius:10px 0 0 10px;height:100%;max-height:172px;-o-object-fit:cover;object-fit:cover;vertical-align:middle}@media (max-width:992px){.card-wide-v2 .imageholder{width:34%;height:auto}.card-wide-v2 .imageholder img{height:auto}}.card-wide-v2 .imageholder .source-div{position:absolute;top:12px;right:12px;background:#fff;z-index:3;border:1px solid #dedfe0;min-width:98px;min-height:32px;max-width:98px;max-height:32px;display:flex;border-radius:16px;display:inline-flex}.card-wide-v2 .imageholder .source-div .source-icon{border-radius:8px;display:block;margin:auto;max-width:58px;max-height:-webkit-fill-available}.card-wide-v2 .main_title_box{height:60px}.card-wide-v2 p.actionbtns{margin-bottom:0}.card-wide-v2 .contenticon{vertical-align:middle;margin-right:6px;width:16px;max-height:16px}@media only screen and (min-width:600px) and (max-width:959px){.card-wide-v2{min-width:auto;display:flex;flex-direction:column;min-width:calc(100vw - 32px)}.card-wide-v2 .imageholder,.card-wide-v2 .mat-text-box{width:100%}.card-wide-v2 .provider{flex-wrap:nowrap}}@media only screen and (max-width:599px){.card-wide-v2{min-width:auto;display:flex;flex-direction:column;min-width:calc(100vw - 32px)}.card-wide-v2 .imageholder,.card-wide-v2 .mat-text-box{width:100%}.card-wide-v2 .provider{flex-wrap:nowrap}}.cbp-mark{border-radius:12px 0;opacity:1;background-image:linear-gradient(90deg,rgba(0,0,0,.6) 0,rgba(0,0,0,0) 100%);position:absolute;top:0;padding:8px}.cbp-mark p{opacity:1;background-color:#fff;padding:4px;opacity:1;color:#1b2133;font-family:Lato-Regular;font-size:10px;font-weight:400;font-style:Regular;letter-spacing:.5px;text-align:left;line-height:12px;margin-bottom:0}.cbpwidth{width:340px}.cbp-plan{border-radius:4px;opacity:1;background-color:#1b4ca1;top:4px;left:4px;opacity:1;color:rgba(255,255,255,.95);font-family:Lato-Bold;font-size:12px;font-weight:700;font-style:normal;letter-spacing:.25px;text-align:center;line-height:16px;padding:4px}.cbp-info{opacity:1;color:#fff;font-family:Lato-Regular;font-size:10px;font-weight:400;font-style:normal;letter-spacing:.5px;text-align:left;line-height:12px;padding:2px}.cbp-danger{border-radius:2px;border:1px solid rgba(0,0,0,.08);background-color:#d13924!important;color:#fff!important;opacity:1}.cbp-success{border-radius:2px;border:1px solid #1d8922;background-color:#1d8922!important;color:#fff!important;opacity:1}.cbp-warning{border-radius:2px;border:1px solid #ef951e;background-color:#ef951e!important;color:#fff!important;opacity:1}"]
|
|
9944
|
+
template: "<ng-container *ngIf=\"!isCardLoading\">\n <mat-card class=\"card-wide-v2 padding-remove position-relative flex {{widgetData?.cardCustomeClass}}\">\n <div class=\"imageholder \">\n <img mat-card-image class=\"margin-remove\"\n [src]=\"widgetData?.content?.posterImage || widgetData?.content?.appIcon | pipePublicURL\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData?.content?.name\">\n <div class=\"source-div\" [hidden]=\"true\">\n <img [src]=\"widgetData?.content?.creatorLogo\" class=\"source-icon\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData?.content?.sourceName + '_' + widgetData?.content?.identifier)\" />\n </div>\n <div class=\"duration-box right-corner\" *ngIf=\"widgetData?.content?.duration > 0\">\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\n <span class=\" ws-mat-white-text duration\"> {{ (widgetData?.content?.duration || 120)| pipeDurationTransform: 'hms' }}</span>\n </div>\n <ng-container *ngIf=\"cbPlanMapData && cbPlanMapData[widgetData?.content?.identifier]\">\n <ng-container [ngTemplateOutlet]=\"cbpPlan\" [ngTemplateOutletContext]=\"{data: {\n cbpData: cbPlanMapData[widgetData?.content?.identifier]\n }}\"></ng-container>\n </ng-container>\n </div>\n <mat-card-content class=\"mat-text-box\">\n <div class=\"course_widget flex flex-between margin-remove\">\n <div class=\"flex flex-end course_v2\">\n <ng-container *ngIf=\"widgetData?.content?.contentType === 'Resource' || widgetData?.content?.contentType === 'Course' || widgetData?.content?.contentType === 'Module'\">\n <mat-icon class=\"mat-icon main_icon ws-mat-default-text margin-right-xs\">video_library</mat-icon>\n <span class=\"ws-mat-black60-text font-normal mat-caption \">\n {{widgetData?.content?.primaryCategory || widgetData?.content?.contentType}}\n <!-- {{ translateLabel(widgetData.content.primaryCategory || widgetData.content.contentType, 'searchfilters') }} -->\n </span>\n </ng-container>\n </div>\n </div>\n\n <div class=\"flex main_title_box\">\n <p class=\"mat-subheading-1 title-text font-bold-imp cursor-pointer content-title\">\n <a (click)=\"raiseTelemetry(widgetData?.content);getRedirectUrlData(widgetData?.content); $event.stopPropagation()\">\n {{widgetData?.content?.name}}\n </a>\n </p>\n </div>\n\n <div class=\"bottomsection\">\n <div class=\"flex w-full flex-wrap flex-middle provider\">\n <div class=\"course_logo_box\">\n <img [src]=\"widgetData?.content?.creatorLogo | pipePublicURL \" class=\"source-icon\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData?.content?.sourceName + '_' + widgetData?.content?.identifier)\" />\n </div>\n <span class=\"org-text\">By \n <!-- {{'cardcontentv2.by' | translate}} -->\n {{widgetData?.content?.organisation[0] }}</span>\n </div>\n <div class=\"flex flex-middle rating-session margin-top-xs\">\n <div class=\"flex flex-middle\" *ngIf=\"widgetData?.content?.avgRating\">\n <mat-icon>star</mat-icon>\n <span class=\"rating-number\">{{widgetData?.content?.avgRating}}</span>\n </div>\n <!-- <span class=\"most-enrolled-text margin-left-m\">{{ 'cardcontentv2.mostEnrolled' | translate }}</span> -->\n <ng-container *ngIf=\"widgetData?.content?.additionalTags && widgetData?.content?.additionalTags.includes('mostEnrolled')\">\n <!-- <span class=\"most-enrolled-text margin-left-xs\">{{ 'cardcontentv2.mostEnrolled' | translate }}</span> -->\n </ng-container>\n <ng-container *ngIf=\"widgetData?.content?.additionalTags && widgetData?.content?.additionalTags.includes('mostTrending')\">\n <!-- <span class=\"most-enrolled-text margin-left-xs\">{{ 'cardcontentv2.mostTrending' | translate }}</span> -->\n </ng-container>\n </div>\n </div>\n </mat-card-content>\n </mat-card>\n <ng-template #cbpPlan let-data=\"data\">\n <div class=\"cbp-mark left-0 border-top-radius\">\n <p *ngIf=\"data?.cbpData?.planDuration === acbpConstants?.UPCOMING\" class=\"cbp-warning\">{{data?.cbpData?.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"data?.cbpData?.planDuration === acbpConstants?.SUCCESS\" class=\"cbp-success\">{{data?.cbpData?.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"data?.cbpData?.planDuration === acbpConstants?.OVERDUE\" class=\"cbp-danger\">{{'OverDue' }}</p>\n </div>\n </ng-template>\n</ng-container>\n <ng-container *ngIf=\"isCardLoading\">\n <mat-card class=\"card-wide-v2 padding-remove position-relative flex\">\n <div class=\"\">\n <sb-uic-skeleton-loader [width]=\"'300px'\" [height]=\"'100%'\" class=\"h-full\" [bindingClass]=\"'flex rounded h-full min-height-width'\"></sb-uic-skeleton-loader>\n </div>\n <mat-card-content class=\"mat-text-box\">\n <div class=\"course_widget flex margin-remove\">\n <div class=\"flex flex-end \">\n <sb-uic-skeleton-loader [width]=\"'100px'\" [height]=\"'21px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n \n <div class=\"flex main_title_box\">\n <!-- <p class=\"mat-subheading-1 title-text font-bold-imp cursor-pointer content-title\"> -->\n <sb-uic-skeleton-loader [width]=\"'100%'\" [height]=\"'21px'\" class=\"w-full h-full mt-2\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n <!-- </p> -->\n </div>\n \n <div class=\"bottomsection\">\n <div class=\"flex w-full flex-wrap flex-middle\">\n <div class=\"course_logo_box mr-2\">\n <sb-uic-skeleton-loader [width]=\"'28px'\" [height]=\"'28px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n <sb-uic-skeleton-loader [width]=\"'100px'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"flex flex-middle rating-session margin-top-xs\">\n <div class=\"flex flex-middle mr-2\">\n <sb-uic-skeleton-loader [width]=\"'50px'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n <sb-uic-skeleton-loader [width]=\"'80px'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </mat-card-content>\n </mat-card>\n </ng-container>",
|
|
9945
|
+
styles: [".course_widget{margin-top:10px}.course_widget .mat-icon{vertical-align:middle;color:#ef951e!important}.course_widget .course_v2{border:1px solid #ef951e;padding:4px 8px;align-items:end;border-radius:16px}.course_widget .main_icon{font-size:16px;width:16px;height:16px}.rating-session mat-icon{font-size:16px;height:16px;width:12px;padding-right:3px;color:#ef951e}.rating-session span{font-size:11px}.rating-session .most-enrolled-text{padding:0 8px;background:#ffea9e;border-radius:4px}.duration-box{background:#000;position:absolute;border:none;display:flex;align-items:center;padding:4px;border-radius:4px}.duration-box.right-corner{right:4px;bottom:4px}.duration-box .mat-icon{vertical-align:middle;color:#fff!important;height:14px!important;width:14px!important;font-size:14px}.duration-box .duration{font:700 12px/16px Lato;display:inline-block;margin:0;padding:0}.card-wide-v2{border-radius:12px;max-width:100%;min-width:784px;display:flex;background-color:#fff}.card-wide-v2 .title-text{word-break:break-all;white-space:initial;margin:8px 0 4px;position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:40px}.card-wide-v2 .course_logo_box{width:30px;height:30px;background:#fff;border-radius:4px;box-sizing:border-box;border:1px solid rgba(0,0,0,.16)}.card-wide-v2 .course_logo_box img{height:28px;width:28px;display:inline-block;-o-object-fit:cover;object-fit:cover}.card-wide-v2 .course_logo_box p{display:inline-block;vertical-align:top}.card-wide-v2 .org-text{font-size:14px;font-weight:400;padding-left:10px;word-break:break-all;white-space:initial;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.card-wide-v2 .rating-session mat-icon{font-size:20px;height:20px;width:20px;color:#ef951e}.card-wide-v2 .rating-session .rating-number{font-size:14px}.card-wide-v2 .rating-session .most-enrolled-text{font-size:12px;padding:0 10px;background:#ffea9e;border-radius:4px}.card-wide-v2 .highlight_point_text{margin-top:15px}.card-wide-v2 ul.highlighting_list li{display:inline-block;padding-right:10px}.card-wide-v2 ul.highlighting_list li .rating-number{letter-spacing:0;color:#f69953}.card-wide-v2 ul.highlighting_list li.rating .mat-icon{width:16px;height:16px;display:inline-table;color:#f69953;font-size:18px;vertical-align:text-bottom}.card-wide-v2 img.text_seperator{vertical-align:middle}.card-wide-v2 .mat-text-box{padding:12px;box-sizing:border-box;width:calc(100% - 315px)}@media (max-width:992px){.card-wide-v2 .mat-text-box{width:66%;padding:8px;position:relative;height:auto}}.card-wide-v2 .mat-text-box p.mat-caption .mat-icon{vertical-align:middle;height:18px!important;width:16px!important;font-size:16px!important;line-height:1.2}.card-wide-v2 .mat-text-box p.mat-caption .title_icon{vertical-align:middle}.card-wide-v2 .imageholder{width:310px;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:center}.card-wide-v2 .imageholder img{width:100%;display:block;border-radius:10px 0 0 10px;height:100%;max-height:172px;-o-object-fit:cover;object-fit:cover;vertical-align:middle}@media (max-width:992px){.card-wide-v2 .imageholder{width:34%;height:auto}.card-wide-v2 .imageholder img{height:auto}}.card-wide-v2 .imageholder .source-div{position:absolute;top:12px;right:12px;background:#fff;z-index:3;border:1px solid #dedfe0;min-width:98px;min-height:32px;max-width:98px;max-height:32px;display:flex;border-radius:16px;display:inline-flex}.card-wide-v2 .imageholder .source-div .source-icon{border-radius:8px;display:block;margin:auto;max-width:58px;max-height:-webkit-fill-available}.card-wide-v2 .main_title_box{height:60px}.card-wide-v2 p.actionbtns{margin-bottom:0}.card-wide-v2 .contenticon{vertical-align:middle;margin-right:6px;width:16px;max-height:16px}@media only screen and (min-width:600px) and (max-width:959px){.card-wide-v2{min-width:auto;display:flex;flex-direction:column;min-width:calc(100vw - 32px)}.card-wide-v2 .imageholder,.card-wide-v2 .mat-text-box{width:100%}.card-wide-v2 .provider{flex-wrap:nowrap}}@media only screen and (max-width:599px){.card-wide-v2{min-width:auto;display:flex;flex-direction:column;min-width:calc(100vw - 32px)}.card-wide-v2 .imageholder,.card-wide-v2 .mat-text-box{width:100%}.card-wide-v2 .provider{flex-wrap:nowrap}}.cbp-mark{border-radius:12px 0;opacity:1;background-image:linear-gradient(90deg,rgba(0,0,0,.6) 0,rgba(0,0,0,0) 100%);position:absolute;top:0;padding:8px}.cbp-mark p{opacity:1;background-color:#fff;padding:4px;opacity:1;color:#1b2133;font-family:Lato-Regular;font-size:10px;font-weight:400;font-style:Regular;letter-spacing:.5px;text-align:left;line-height:12px;margin-bottom:0}.cbpwidth{width:340px}.cbp-plan{border-radius:4px;opacity:1;background-color:#1b4ca1;top:4px;left:4px;opacity:1;color:rgba(255,255,255,.95);font-family:Lato-Bold;font-size:12px;font-weight:700;font-style:normal;letter-spacing:.25px;text-align:center;line-height:16px;padding:4px}.cbp-info{opacity:1;color:#fff;font-family:Lato-Regular;font-size:10px;font-weight:400;font-style:normal;letter-spacing:.5px;text-align:left;line-height:12px;padding:2px}.cbp-danger{border-radius:2px;border:1px solid rgba(0,0,0,.08);background-color:#d13924!important;color:#fff!important;opacity:1}.cbp-success{border-radius:2px;border:1px solid #1d8922;background-color:#1d8922!important;color:#fff!important;opacity:1}.cbp-warning{border-radius:2px;border:1px solid #ef951e;background-color:#ef951e!important;color:#fff!important;opacity:1}.min-width-763{min-width:763px;background-color:#fff}"]
|
|
9678
9946
|
}] }
|
|
9679
9947
|
];
|
|
9680
9948
|
/** @nocollapse */
|
|
@@ -9692,7 +9960,8 @@ var CardWideV2Component = /** @class */ (function () {
|
|
|
9692
9960
|
isIntranetAllowedSettings: [{ type: Input }],
|
|
9693
9961
|
cbPlanMapData: [{ type: Input }],
|
|
9694
9962
|
isCardLoading: [{ type: Input }],
|
|
9695
|
-
contentData: [{ type: Output }]
|
|
9963
|
+
contentData: [{ type: Output }],
|
|
9964
|
+
triggerTelemetry: [{ type: Output }]
|
|
9696
9965
|
};
|
|
9697
9966
|
return CardWideV2Component;
|
|
9698
9967
|
}());
|
|
@@ -9712,6 +9981,8 @@ if (false) {
|
|
|
9712
9981
|
/** @type {?} */
|
|
9713
9982
|
CardWideV2Component.prototype.contentData;
|
|
9714
9983
|
/** @type {?} */
|
|
9984
|
+
CardWideV2Component.prototype.triggerTelemetry;
|
|
9985
|
+
/** @type {?} */
|
|
9715
9986
|
CardWideV2Component.prototype.isCardFlipped;
|
|
9716
9987
|
/** @type {?} */
|
|
9717
9988
|
CardWideV2Component.prototype.acbpConstants;
|
|
@@ -9759,12 +10030,14 @@ if (false) {
|
|
|
9759
10030
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9760
10031
|
*/
|
|
9761
10032
|
var CardKarmaProgramsComponent = /** @class */ (function () {
|
|
9762
|
-
function CardKarmaProgramsComponent(events, translate, langtranslations, configSvc) {
|
|
10033
|
+
function CardKarmaProgramsComponent(events, translate, langtranslations, configSvc, contSvc, router) {
|
|
9763
10034
|
var _this = this;
|
|
9764
10035
|
this.events = events;
|
|
9765
10036
|
this.translate = translate;
|
|
9766
10037
|
this.langtranslations = langtranslations;
|
|
9767
10038
|
this.configSvc = configSvc;
|
|
10039
|
+
this.contSvc = contSvc;
|
|
10040
|
+
this.router = router;
|
|
9768
10041
|
this.randomColorApply = false;
|
|
9769
10042
|
this.userData = new EventEmitter();
|
|
9770
10043
|
this.widgetType = '';
|
|
@@ -9827,31 +10100,6 @@ var CardKarmaProgramsComponent = /** @class */ (function () {
|
|
|
9827
10100
|
this.widgetData.content['bgColor'] = '#1a4ca1';
|
|
9828
10101
|
}
|
|
9829
10102
|
}
|
|
9830
|
-
console.log(this.widgetData.content, this.randomColorApply);
|
|
9831
|
-
};
|
|
9832
|
-
/**
|
|
9833
|
-
* @return {?}
|
|
9834
|
-
*/
|
|
9835
|
-
CardKarmaProgramsComponent.prototype.raiseTelemetry = /**
|
|
9836
|
-
* @return {?}
|
|
9837
|
-
*/
|
|
9838
|
-
function () {
|
|
9839
|
-
// if(this.forPreview){
|
|
9840
|
-
// return
|
|
9841
|
-
// }
|
|
9842
|
-
this.events.raiseInteractTelemetry({
|
|
9843
|
-
type: 'click',
|
|
9844
|
-
subType: this.widgetType + "-" + this.widgetSubType,
|
|
9845
|
-
id: camelCase(this.widgetData.content.userId) + "-card",
|
|
9846
|
-
}, {
|
|
9847
|
-
id: this.widgetData.content.userId,
|
|
9848
|
-
// type: this.widgetData.user.primaryCategory,
|
|
9849
|
-
//context: this.widgetData.context,
|
|
9850
|
-
rollup: {},
|
|
9851
|
-
}, {
|
|
9852
|
-
pageIdExt: camelCase('user') + "-card",
|
|
9853
|
-
module: camelCase('user'),
|
|
9854
|
-
});
|
|
9855
10103
|
};
|
|
9856
10104
|
Object.defineProperty(CardKarmaProgramsComponent.prototype, "getRandomColors", {
|
|
9857
10105
|
get: /**
|
|
@@ -9865,10 +10113,25 @@ var CardKarmaProgramsComponent = /** @class */ (function () {
|
|
|
9865
10113
|
enumerable: true,
|
|
9866
10114
|
configurable: true
|
|
9867
10115
|
});
|
|
10116
|
+
/**
|
|
10117
|
+
* @param {?} data
|
|
10118
|
+
* @return {?}
|
|
10119
|
+
*/
|
|
10120
|
+
CardKarmaProgramsComponent.prototype.redirectTo = /**
|
|
10121
|
+
* @param {?} data
|
|
10122
|
+
* @return {?}
|
|
10123
|
+
*/
|
|
10124
|
+
function (data) {
|
|
10125
|
+
if (this.widgetData && this.widgetData.context && this.widgetData.context.pageSection) {
|
|
10126
|
+
data['typeOfTelemetry'] = 'karma-programs';
|
|
10127
|
+
}
|
|
10128
|
+
this.contSvc.changeTelemetryData(data);
|
|
10129
|
+
this.router.navigate(["/app/learn/karma-programs/" + data.title + "/" + data.playListKey + "/" + data.orgId + "/micro-sites"]);
|
|
10130
|
+
};
|
|
9868
10131
|
CardKarmaProgramsComponent.decorators = [
|
|
9869
10132
|
{ type: Component, args: [{
|
|
9870
10133
|
selector: 'sb-uic-card-karma-programs',
|
|
9871
|
-
template: "<mat-card class=\"channels-card card-channels-container mr-5 padding-remove cursor-pointer\" [ngStyle]=\"{'background': widgetData?.content?.bgColor}\">\n <div class=\"display-contents\">\n <ng-container *ngIf=\"widgetData.content\">\n <a (click)=\"
|
|
10134
|
+
template: "<mat-card class=\"channels-card card-channels-container mr-5 padding-remove cursor-pointer\" [ngStyle]=\"{'background': widgetData?.content?.bgColor}\">\n <div class=\"display-contents\">\n <ng-container *ngIf=\"widgetData.content\">\n <a (click)=\"redirectTo(widgetData?.content);$event.stopPropagation();\">\n <ng-container>\n <mat-card-content class=\"min-top\">\n <div class=\"flex flex-col h-full\">\n <div class=\"image-container\">\n <ng-container *ngIf=\"widgetData.content.posterImage\">\n <img mat-card-image [src]=\"widgetData.content.posterImage | pipePublicURL\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData.content.title\" />\n </ng-container>\n <ng-container *ngIf=\"!widgetData.content.posterImage\">\n <ng-container *ngIf=\"widgetData.content.appIcon; else defaultImg\">\n <img mat-card-image [src]=\"widgetData.content.appIcon | pipePublicURL\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData?.content?.title\" />\n </ng-container>\n <ng-template #defaultImg>\n <img mat-card-image [src]=\"defaultThumbnail\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\"\n [alt]=\"widgetData?.content?.title\" />\n </ng-template>\n </ng-container>\n </div>\n <div class=\"title-container\">\n <div class=\"flex px-2\">\n <div [id]=\"'m-c-'+ widgetData.content?.identifier\"\n class=\"flex-1 text-start mat-subheading-2 title-text ws-mat-white-text\">\n {{ widgetData?.content?.title }}\n </div>\n </div>\n <div class=\"flex px-2\">\n <div [id]=\"'m-c-'+ widgetData?.content?.identifier\"\n class=\"flex-1 text-start margin-remove margin-top-xxs mat-subheading-2 title-text ws-mat-white-text\">\n {{ widgetData?.content?.children?.length}} Programs\n </div>\n </div>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n </a>\n </ng-container>\n </div>\n</mat-card>",
|
|
9872
10135
|
styles: [".card-channels-container{position:relative;width:245px;box-sizing:border-box;box-shadow:0 10px 30px rgba(153,153,153,.2);overflow:hidden;min-height:217px;height:217px;max-height:217px;margin:0 8px;background:#1a4ca1;border-radius:12px}.card-channels-container .min-top{background:inherit;margin-bottom:0;height:inherit}.card-channels-container .image-container{background-color:#fff;width:inherit;height:139px;max-height:139px;overflow:hidden;display:flex;align-items:center;justify-content:center;border-top-left-radius:12px;border-top-right-radius:12px}.card-channels-container .card-img{max-height:100%;min-height:100%;display:block;-o-object-fit:fill;object-fit:fill}.card-channels-container .mat-subheading-1{font:600 14px/24px Montserrat}.card-channels-container .title-container{background:inherit}.card-channels-container .description-text{position:relative;overflow:hidden;height:51px}.card-channels-container .title-text{word-break:break-all;white-space:initial;margin:8px 0;position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;min-height:24px}"]
|
|
9873
10136
|
}] }
|
|
9874
10137
|
];
|
|
@@ -9877,7 +10140,9 @@ var CardKarmaProgramsComponent = /** @class */ (function () {
|
|
|
9877
10140
|
{ type: EventService },
|
|
9878
10141
|
{ type: TranslateService },
|
|
9879
10142
|
{ type: MultilingualTranslationsService$1 },
|
|
9880
|
-
{ type: ConfigurationsService$1 }
|
|
10143
|
+
{ type: ConfigurationsService$1 },
|
|
10144
|
+
{ type: WidgetContentService },
|
|
10145
|
+
{ type: Router }
|
|
9881
10146
|
]; };
|
|
9882
10147
|
CardKarmaProgramsComponent.propDecorators = {
|
|
9883
10148
|
widgetData: [{ type: Input }],
|
|
@@ -9925,6 +10190,188 @@ if (false) {
|
|
|
9925
10190
|
* @private
|
|
9926
10191
|
*/
|
|
9927
10192
|
CardKarmaProgramsComponent.prototype.configSvc;
|
|
10193
|
+
/**
|
|
10194
|
+
* @type {?}
|
|
10195
|
+
* @private
|
|
10196
|
+
*/
|
|
10197
|
+
CardKarmaProgramsComponent.prototype.contSvc;
|
|
10198
|
+
/**
|
|
10199
|
+
* @type {?}
|
|
10200
|
+
* @private
|
|
10201
|
+
*/
|
|
10202
|
+
CardKarmaProgramsComponent.prototype.router;
|
|
10203
|
+
}
|
|
10204
|
+
|
|
10205
|
+
/**
|
|
10206
|
+
* @fileoverview added by tsickle
|
|
10207
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
10208
|
+
*/
|
|
10209
|
+
var CardKarmaProgramsV2Component = /** @class */ (function () {
|
|
10210
|
+
function CardKarmaProgramsV2Component(events, translate, langtranslations, configSvc, router) {
|
|
10211
|
+
var _this = this;
|
|
10212
|
+
this.events = events;
|
|
10213
|
+
this.translate = translate;
|
|
10214
|
+
this.langtranslations = langtranslations;
|
|
10215
|
+
this.configSvc = configSvc;
|
|
10216
|
+
this.router = router;
|
|
10217
|
+
this.randomColorApply = false;
|
|
10218
|
+
this.userData = new EventEmitter();
|
|
10219
|
+
this.raiseTemeletry = new EventEmitter();
|
|
10220
|
+
this.widgetType = '';
|
|
10221
|
+
this.widgetSubType = '';
|
|
10222
|
+
this.randomColors = [
|
|
10223
|
+
'#EF941D',
|
|
10224
|
+
'#F97440',
|
|
10225
|
+
'#35B5B0',
|
|
10226
|
+
'#9988FF',
|
|
10227
|
+
'#254092',
|
|
10228
|
+
'#926525',
|
|
10229
|
+
'#4F72DF'
|
|
10230
|
+
];
|
|
10231
|
+
this.langtranslations.languageSelectedObservable.subscribe((/**
|
|
10232
|
+
* @return {?}
|
|
10233
|
+
*/
|
|
10234
|
+
function () {
|
|
10235
|
+
if (localStorage.getItem('websiteLanguage')) {
|
|
10236
|
+
_this.translate.setDefaultLang('en');
|
|
10237
|
+
/** @type {?} */
|
|
10238
|
+
var lang = (/** @type {?} */ (localStorage.getItem('websiteLanguage')));
|
|
10239
|
+
_this.translate.use(lang);
|
|
10240
|
+
}
|
|
10241
|
+
}));
|
|
10242
|
+
}
|
|
10243
|
+
/**
|
|
10244
|
+
* @return {?}
|
|
10245
|
+
*/
|
|
10246
|
+
CardKarmaProgramsV2Component.prototype.ngOnInit = /**
|
|
10247
|
+
* @return {?}
|
|
10248
|
+
*/
|
|
10249
|
+
function () {
|
|
10250
|
+
/** @type {?} */
|
|
10251
|
+
var instanceConfig = this.configSvc.instanceConfig;
|
|
10252
|
+
if (instanceConfig) {
|
|
10253
|
+
this.defaultThumbnail = instanceConfig.logos.defaultContent || '';
|
|
10254
|
+
this.sourceLogos = instanceConfig.sources;
|
|
10255
|
+
this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '';
|
|
10256
|
+
}
|
|
10257
|
+
else {
|
|
10258
|
+
this.defaultThumbnail = '/assets/instances/eagle/app_logos/default.png';
|
|
10259
|
+
this.defaultSLogo = '/assets/instances/eagle/app_logos/KarmayogiBharat_Logo.svg';
|
|
10260
|
+
}
|
|
10261
|
+
this.setRandomColor();
|
|
10262
|
+
};
|
|
10263
|
+
/**
|
|
10264
|
+
* @return {?}
|
|
10265
|
+
*/
|
|
10266
|
+
CardKarmaProgramsV2Component.prototype.setRandomColor = /**
|
|
10267
|
+
* @return {?}
|
|
10268
|
+
*/
|
|
10269
|
+
function () {
|
|
10270
|
+
if (this.widgetData && this.widgetData.content) {
|
|
10271
|
+
if (this.randomColorApply) {
|
|
10272
|
+
/** @type {?} */
|
|
10273
|
+
var randomIndex1 = Math.floor(Math.random() * Math.floor(this.randomColors.length));
|
|
10274
|
+
this.widgetData.content['bgColor'] = this.randomColors[randomIndex1];
|
|
10275
|
+
}
|
|
10276
|
+
else {
|
|
10277
|
+
this.widgetData.content['bgColor'] = '#1a4ca1';
|
|
10278
|
+
}
|
|
10279
|
+
}
|
|
10280
|
+
};
|
|
10281
|
+
/**
|
|
10282
|
+
* @param {?} content
|
|
10283
|
+
* @return {?}
|
|
10284
|
+
*/
|
|
10285
|
+
CardKarmaProgramsV2Component.prototype.redirectTo = /**
|
|
10286
|
+
* @param {?} content
|
|
10287
|
+
* @return {?}
|
|
10288
|
+
*/
|
|
10289
|
+
function (content) {
|
|
10290
|
+
this.raiseTemeletry.emit(content);
|
|
10291
|
+
//this.router.navigate([`/app/learn/karma-programs/${content.identifier}/${content.identifier}/micro-sites`])
|
|
10292
|
+
this.router.navigate(['/app/learn/karma-programs/India%20post/0132593267437813768program/0132593267437813768/micro-sites']);
|
|
10293
|
+
};
|
|
10294
|
+
Object.defineProperty(CardKarmaProgramsV2Component.prototype, "getRandomColors", {
|
|
10295
|
+
get: /**
|
|
10296
|
+
* @return {?}
|
|
10297
|
+
*/
|
|
10298
|
+
function () {
|
|
10299
|
+
/** @type {?} */
|
|
10300
|
+
var randomIndex1 = Math.floor(Math.random() * Math.floor(this.randomColors.length));
|
|
10301
|
+
return this.randomColors[randomIndex1];
|
|
10302
|
+
},
|
|
10303
|
+
enumerable: true,
|
|
10304
|
+
configurable: true
|
|
10305
|
+
});
|
|
10306
|
+
CardKarmaProgramsV2Component.decorators = [
|
|
10307
|
+
{ type: Component, args: [{
|
|
10308
|
+
selector: 'sb-uic-card-karma-programs-v2',
|
|
10309
|
+
template: "<mat-card class=\"channels-card card-channels-container mr-5 padding-remove cursor-pointer\" [ngStyle]=\"{'background': widgetData?.content?.bgColor}\">\n <div class=\"display-contents\">\n <ng-container *ngIf=\"widgetData.content\">\n <a (click)=\"redirectTo(widgetData?.content);$event.stopPropagation()\">\n <ng-container>\n <mat-card-content class=\"min-top\">\n <div class=\"flex flex-row md:flex-col h-full\">\n <div class=\"image-container\">\n <ng-container *ngIf=\"widgetData.content.posterImage\">\n <img mat-card-image [src]=\"widgetData.content.posterImage | pipePublicURL\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData.content.title\" />\n </ng-container>\n <ng-container *ngIf=\"!widgetData.content.posterImage\">\n <ng-container *ngIf=\"widgetData.content.appIcon; else defaultImg\">\n <img mat-card-image [src]=\"widgetData.content.appIcon | pipePublicURL\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData.content.title\" />\n </ng-container>\n <ng-template #defaultImg>\n <img mat-card-image [src]=\"defaultThumbnail\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\"\n [alt]=\"widgetData.content.title\" />\n </ng-template>\n </ng-container>\n </div>\n <div class=\"flex items-center\">\n <div class=\"title-container\">\n <div class=\"flex px-2\">\n <div [id]=\"'m-c-'+ widgetData.content?.identifier\"\n class=\"flex-1 text-start mat-subheading-2 title-text ws-mat-white-text\">\n {{ widgetData?.content?.title }}\n </div>\n </div>\n <div class=\"flex px-2\">\n <div [id]=\"'m-c-'+ widgetData?.content?.identifier\"\n class=\"flex-1 text-start margin-remove margin-top-xxs mat-subheading-2 title-text ws-mat-white-text\">\n {{ widgetData?.content?.children?.length}} Programs\n </div>\n </div>\n </div>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n </a>\n </ng-container>\n </div>\n</mat-card>",
|
|
10310
|
+
styles: [".card-channels-container{position:relative;width:282px;box-sizing:border-box;box-shadow:0 10px 30px rgba(153,153,153,.2);overflow:hidden;min-height:233px;height:233px;max-height:233px;margin:0 8px;background:#1a4ca1;border-radius:12px}.card-channels-container .min-top{background:inherit;margin-bottom:0;height:inherit}.card-channels-container .image-container{background-color:#fff;width:inherit;height:156px;max-height:156px;overflow:hidden;display:flex;align-items:center;justify-content:center;border-top-left-radius:12px;border-top-right-radius:12px}.card-channels-container .card-img{max-height:100%;min-height:100%;display:block;-o-object-fit:fill;object-fit:fill}.card-channels-container .mat-subheading-1{font:600 14px/24px Montserrat}.card-channels-container .title-container{background:inherit}.card-channels-container .description-text{position:relative;overflow:hidden;height:51px}.card-channels-container .title-text{word-break:break-all;white-space:initial;margin:8px 0;position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;min-height:24px}@media screen and (max-width:768px){.card-channels-container{width:100%;box-sizing:border-box;box-shadow:0 10px 30px rgba(153,153,153,.2);overflow:hidden;min-height:unset;height:unset;max-height:unset;margin:0;padding:8px!important}.image-container{background-color:#fff;width:190px;height:106px;max-height:106px;border-radius:12px}}"]
|
|
10311
|
+
}] }
|
|
10312
|
+
];
|
|
10313
|
+
/** @nocollapse */
|
|
10314
|
+
CardKarmaProgramsV2Component.ctorParameters = function () { return [
|
|
10315
|
+
{ type: EventService },
|
|
10316
|
+
{ type: TranslateService },
|
|
10317
|
+
{ type: MultilingualTranslationsService$1 },
|
|
10318
|
+
{ type: ConfigurationsService$1 },
|
|
10319
|
+
{ type: Router }
|
|
10320
|
+
]; };
|
|
10321
|
+
CardKarmaProgramsV2Component.propDecorators = {
|
|
10322
|
+
widgetData: [{ type: Input }],
|
|
10323
|
+
randomColorApply: [{ type: Input }],
|
|
10324
|
+
userData: [{ type: Output }],
|
|
10325
|
+
raiseTemeletry: [{ type: Output }]
|
|
10326
|
+
};
|
|
10327
|
+
return CardKarmaProgramsV2Component;
|
|
10328
|
+
}());
|
|
10329
|
+
if (false) {
|
|
10330
|
+
/** @type {?} */
|
|
10331
|
+
CardKarmaProgramsV2Component.prototype.widgetData;
|
|
10332
|
+
/** @type {?} */
|
|
10333
|
+
CardKarmaProgramsV2Component.prototype.randomColorApply;
|
|
10334
|
+
/** @type {?} */
|
|
10335
|
+
CardKarmaProgramsV2Component.prototype.userData;
|
|
10336
|
+
/** @type {?} */
|
|
10337
|
+
CardKarmaProgramsV2Component.prototype.raiseTemeletry;
|
|
10338
|
+
/** @type {?} */
|
|
10339
|
+
CardKarmaProgramsV2Component.prototype.defaultThumbnail;
|
|
10340
|
+
/** @type {?} */
|
|
10341
|
+
CardKarmaProgramsV2Component.prototype.sourceLogos;
|
|
10342
|
+
/** @type {?} */
|
|
10343
|
+
CardKarmaProgramsV2Component.prototype.defaultSLogo;
|
|
10344
|
+
/** @type {?} */
|
|
10345
|
+
CardKarmaProgramsV2Component.prototype.widgetType;
|
|
10346
|
+
/** @type {?} */
|
|
10347
|
+
CardKarmaProgramsV2Component.prototype.widgetSubType;
|
|
10348
|
+
/** @type {?} */
|
|
10349
|
+
CardKarmaProgramsV2Component.prototype.randomColors;
|
|
10350
|
+
/**
|
|
10351
|
+
* @type {?}
|
|
10352
|
+
* @private
|
|
10353
|
+
*/
|
|
10354
|
+
CardKarmaProgramsV2Component.prototype.events;
|
|
10355
|
+
/**
|
|
10356
|
+
* @type {?}
|
|
10357
|
+
* @private
|
|
10358
|
+
*/
|
|
10359
|
+
CardKarmaProgramsV2Component.prototype.translate;
|
|
10360
|
+
/**
|
|
10361
|
+
* @type {?}
|
|
10362
|
+
* @private
|
|
10363
|
+
*/
|
|
10364
|
+
CardKarmaProgramsV2Component.prototype.langtranslations;
|
|
10365
|
+
/**
|
|
10366
|
+
* @type {?}
|
|
10367
|
+
* @private
|
|
10368
|
+
*/
|
|
10369
|
+
CardKarmaProgramsV2Component.prototype.configSvc;
|
|
10370
|
+
/**
|
|
10371
|
+
* @type {?}
|
|
10372
|
+
* @private
|
|
10373
|
+
*/
|
|
10374
|
+
CardKarmaProgramsV2Component.prototype.router;
|
|
9928
10375
|
}
|
|
9929
10376
|
|
|
9930
10377
|
/**
|
|
@@ -9944,7 +10391,8 @@ var CardsModule = /** @class */ (function () {
|
|
|
9944
10391
|
CardWideComponent,
|
|
9945
10392
|
CardMDOChannelComponent,
|
|
9946
10393
|
CardWideV2Component,
|
|
9947
|
-
CardKarmaProgramsComponent
|
|
10394
|
+
CardKarmaProgramsComponent,
|
|
10395
|
+
CardKarmaProgramsV2Component
|
|
9948
10396
|
],
|
|
9949
10397
|
imports: [
|
|
9950
10398
|
CommonModule,
|
|
@@ -9969,7 +10417,8 @@ var CardsModule = /** @class */ (function () {
|
|
|
9969
10417
|
CardWideComponent,
|
|
9970
10418
|
CardMDOChannelComponent,
|
|
9971
10419
|
CardWideV2Component,
|
|
9972
|
-
CardKarmaProgramsComponent
|
|
10420
|
+
CardKarmaProgramsComponent,
|
|
10421
|
+
CardKarmaProgramsV2Component
|
|
9973
10422
|
],
|
|
9974
10423
|
},] }
|
|
9975
10424
|
];
|
|
@@ -11601,5 +12050,5 @@ var UserContentRatingLibModule = /** @class */ (function () {
|
|
|
11601
12050
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
11602
12051
|
*/
|
|
11603
12052
|
|
|
11604
|
-
export { AnnouncementsModule, CalenderModule, CardsModule, CommonMethodsService, CommonStripModule, CompetencyPassbookModule, ConsumptionComponent, ConsumptionModule, ConsumptionService, ContentStripWithTabsLibModule, DataPointsModule, HttpLoaderFactory, MyHammerConfig, ROOT_WIDGET_CONFIG, SlidersLibModule, UserContentRatingLibModule, WIDGET_REGISTERED_LIB_MODULES, WIDGET_REGISTRATION_LIB_CONFIG, WidgetContentService, ContentStripWithTabsLibComponent as ɵa, WidgetUserService as ɵb, CardWideV2Component as ɵba, CardKarmaProgramsComponent as ɵbb,
|
|
12053
|
+
export { AnnouncementsModule, CalenderModule, CardsModule, CommonMethodsService, CommonStripModule, CompetencyPassbookModule, ConsumptionComponent, ConsumptionModule, ConsumptionService, ContentStripWithTabsLibModule, DataPointsModule, HttpLoaderFactory, MyHammerConfig, ROOT_WIDGET_CONFIG, SlidersLibModule, UserContentRatingLibModule, WIDGET_REGISTERED_LIB_MODULES, WIDGET_REGISTRATION_LIB_CONFIG, WidgetContentService, ContentStripWithTabsLibComponent as ɵa, WidgetUserService as ɵb, CardWideV2Component as ɵba, CardKarmaProgramsComponent as ɵbb, CardKarmaProgramsV2Component as ɵbc, PipePublicURLModule as ɵbd, PipePublicURL as ɵbe, DisplayContentTypeLibModule as ɵbf, DisplayContentTypeLibComponent as ɵbg, DefaultThumbnailModule as ɵbh, DefaultThumbnailDirective as ɵbi, PipeDurationTransformModule as ɵbj, PipeDurationTransformPipe as ɵbk, CompetencyPassbookComponent as ɵbl, CompetencyPassbookService as ɵbm, PillsModule as ɵbn, PillsComponent as ɵbo, UserContentRatingLibComponent as ɵbp, ScrollableItemDirective as ɵbq, RatingService as ɵbr, UserContentRatingLibService as ɵbs, AvatarPhotoLibModule as ɵbt, AvatarPhotoLibComponent as ɵbu, MyHammerConfig$1 as ɵbv, SlidersNgContentLibModule as ɵbw, SlidersNgContentLibComponent as ɵbx, ScrollableItemModule as ɵby, MultilingualTranslationsService as ɵc, 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, CardResourceComponent as ɵt, CardsComponent as ɵu, CardPortraitComponent as ɵv, CardUserComponent as ɵw, CardLandscapeComponent as ɵx, CardWideComponent as ɵy, CardMDOChannelComponent as ɵz };
|
|
11605
12054
|
//# sourceMappingURL=sunbird-cb-consumption.js.map
|