@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
|
@@ -452,7 +452,6 @@
|
|
|
452
452
|
* @return {?}
|
|
453
453
|
*/
|
|
454
454
|
function (elem) {
|
|
455
|
-
debugger;
|
|
456
455
|
this.enablePrev = true;
|
|
457
456
|
this.enableNext = true;
|
|
458
457
|
if (elem.scrollLeft === 0) {
|
|
@@ -461,14 +460,29 @@
|
|
|
461
460
|
}
|
|
462
461
|
this.activeNav = 0;
|
|
463
462
|
}
|
|
464
|
-
if (elem.scrollWidth === Math.round(elem.clientWidth + elem.scrollLeft)) {
|
|
463
|
+
// if (elem.scrollWidth === Math.round(elem.clientWidth + elem.scrollLeft)) {
|
|
464
|
+
// if (this.loadStatus === 'hasMore') {
|
|
465
|
+
// this.loadNext.emit();
|
|
466
|
+
// } else {
|
|
467
|
+
// if(!this.sliderConfig.arrowsAlwaysOn) {
|
|
468
|
+
// this.enableNext = false;
|
|
469
|
+
// }
|
|
470
|
+
// if (this.bottomDotsArray.length) {
|
|
471
|
+
// this.activeNav = this.bottomDotsArray.length - 1;
|
|
472
|
+
// }
|
|
473
|
+
// }
|
|
474
|
+
// }
|
|
475
|
+
// if (elem.scrollLeft !== 0 && (elem.scrollWidth !== elem.clientWidth + elem.scrollLeft)) {
|
|
476
|
+
// this.activeNav = Math.ceil(elem.scrollLeft / elem.clientWidth);
|
|
477
|
+
// }
|
|
478
|
+
/** @type {?} */
|
|
479
|
+
var widthDiff = Math.abs(elem.scrollWidth - Math.round(elem.clientWidth + elem.scrollLeft));
|
|
480
|
+
if (widthDiff === 0 || widthDiff === 1) {
|
|
465
481
|
if (this.loadStatus === 'hasMore') {
|
|
466
482
|
this.loadNext.emit();
|
|
467
483
|
}
|
|
468
484
|
else {
|
|
469
|
-
|
|
470
|
-
this.enableNext = false;
|
|
471
|
-
}
|
|
485
|
+
this.enableNext = false;
|
|
472
486
|
if (this.bottomDotsArray.length) {
|
|
473
487
|
this.activeNav = this.bottomDotsArray.length - 1;
|
|
474
488
|
}
|
|
@@ -2700,6 +2714,18 @@
|
|
|
2700
2714
|
req.query = req.query || '';
|
|
2701
2715
|
return this.http.post(apiUrl, req);
|
|
2702
2716
|
};
|
|
2717
|
+
/**
|
|
2718
|
+
* @param {?} apiUrl
|
|
2719
|
+
* @return {?}
|
|
2720
|
+
*/
|
|
2721
|
+
WidgetContentService.prototype.getApiMethod = /**
|
|
2722
|
+
* @param {?} apiUrl
|
|
2723
|
+
* @return {?}
|
|
2724
|
+
*/
|
|
2725
|
+
function (apiUrl) {
|
|
2726
|
+
// req.query = req.query || '';
|
|
2727
|
+
return this.http.get(apiUrl);
|
|
2728
|
+
};
|
|
2703
2729
|
WidgetContentService.decorators = [
|
|
2704
2730
|
{ type: core.Injectable, args: [{
|
|
2705
2731
|
providedIn: 'root',
|
|
@@ -3915,7 +3941,6 @@
|
|
|
3915
3941
|
_this.translate.use(lang);
|
|
3916
3942
|
}
|
|
3917
3943
|
_this.environment = environment;
|
|
3918
|
-
console.log('plugin');
|
|
3919
3944
|
return _this;
|
|
3920
3945
|
}
|
|
3921
3946
|
/**
|
|
@@ -4327,10 +4352,15 @@
|
|
|
4327
4352
|
}
|
|
4328
4353
|
else if (filters.organisation &&
|
|
4329
4354
|
filters.organisation.indexOf('<orgID>') >= 0) {
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4355
|
+
if (this.providerId) {
|
|
4356
|
+
filters.organisation = this.providerId;
|
|
4357
|
+
}
|
|
4358
|
+
else {
|
|
4359
|
+
filters.organisation = userData && userData.rootOrgId;
|
|
4360
|
+
if (filters && filters.hasOwnProperty('designation')) {
|
|
4361
|
+
filters.designation = userData.professionalDetails.length > 0 ?
|
|
4362
|
+
userData.professionalDetails[0].designation : '';
|
|
4363
|
+
}
|
|
4334
4364
|
}
|
|
4335
4365
|
}
|
|
4336
4366
|
return filters;
|
|
@@ -4358,7 +4388,9 @@
|
|
|
4358
4388
|
this.fetchAllCbpPlans(strip, calculateParentStatus);
|
|
4359
4389
|
this.fetchAllTopContent(strip, calculateParentStatus);
|
|
4360
4390
|
this.fetchAllFeaturedContent(strip, calculateParentStatus);
|
|
4361
|
-
this.
|
|
4391
|
+
this.fetchAllBookMarkData(strip, calculateParentStatus);
|
|
4392
|
+
this.fetchAllPlaylistSearch(strip, calculateParentStatus);
|
|
4393
|
+
this.fetchPlaylistReadData(strip, calculateParentStatus);
|
|
4362
4394
|
// this.enrollInterval = setInterval(() => {
|
|
4363
4395
|
// this.fetchAllCbpPlans(strip, calculateParentStatus)
|
|
4364
4396
|
// }, 1000)
|
|
@@ -5088,7 +5120,9 @@
|
|
|
5088
5120
|
(strip.request.trendingSearch && Object.keys(strip.request.trendingSearch).length) ||
|
|
5089
5121
|
(strip.request.topContent && Object.keys(strip.request.topContent).length) ||
|
|
5090
5122
|
(strip.request.featureContent && Object.keys(strip.request.featureContent).length) ||
|
|
5091
|
-
(strip.request.
|
|
5123
|
+
(strip.request.bookmarkRead && Object.keys(strip.request.bookmarkRead).length) ||
|
|
5124
|
+
(strip.request.playlistSearch && Object.keys(strip.request.playlistSearch).length) ||
|
|
5125
|
+
(strip.request.playlistRead && Object.keys(strip.request.playlistRead).length))) {
|
|
5092
5126
|
return true;
|
|
5093
5127
|
}
|
|
5094
5128
|
return false;
|
|
@@ -5764,6 +5798,61 @@
|
|
|
5764
5798
|
});
|
|
5765
5799
|
});
|
|
5766
5800
|
};
|
|
5801
|
+
/**
|
|
5802
|
+
* @param {?} strip
|
|
5803
|
+
* @param {?} request
|
|
5804
|
+
* @param {?} apiUrl
|
|
5805
|
+
* @param {?} calculateParentStatus
|
|
5806
|
+
* @return {?}
|
|
5807
|
+
*/
|
|
5808
|
+
ContentStripWithTabsLibComponent.prototype.getRequestMethod = /**
|
|
5809
|
+
* @param {?} strip
|
|
5810
|
+
* @param {?} request
|
|
5811
|
+
* @param {?} apiUrl
|
|
5812
|
+
* @param {?} calculateParentStatus
|
|
5813
|
+
* @return {?}
|
|
5814
|
+
*/
|
|
5815
|
+
function (strip, request, apiUrl, calculateParentStatus) {
|
|
5816
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5817
|
+
var originalFilters;
|
|
5818
|
+
var _this = this;
|
|
5819
|
+
return __generator(this, function (_a) {
|
|
5820
|
+
originalFilters = [];
|
|
5821
|
+
return [2 /*return*/, new Promise((/**
|
|
5822
|
+
* @param {?} resolve
|
|
5823
|
+
* @param {?} reject
|
|
5824
|
+
* @return {?}
|
|
5825
|
+
*/
|
|
5826
|
+
function (resolve, reject) {
|
|
5827
|
+
if (request && request) {
|
|
5828
|
+
_this.contentSvc.getApiMethod(apiUrl).subscribe((/**
|
|
5829
|
+
* @param {?} results
|
|
5830
|
+
* @return {?}
|
|
5831
|
+
*/
|
|
5832
|
+
function (results) {
|
|
5833
|
+
console.log(results, 'results=========');
|
|
5834
|
+
/** @type {?} */
|
|
5835
|
+
var showViewMore = Boolean(results.result.data && results.result.data.orgList.length > 5 && strip.stripConfig && strip.stripConfig.postCardForSearch);
|
|
5836
|
+
/** @type {?} */
|
|
5837
|
+
var viewMoreUrl = showViewMore
|
|
5838
|
+
? {
|
|
5839
|
+
path: strip.viewMoreUrl && strip.viewMoreUrl.path || '',
|
|
5840
|
+
}
|
|
5841
|
+
: null;
|
|
5842
|
+
resolve({ results: results, viewMoreUrl: viewMoreUrl });
|
|
5843
|
+
}), (/**
|
|
5844
|
+
* @param {?} error
|
|
5845
|
+
* @return {?}
|
|
5846
|
+
*/
|
|
5847
|
+
function (error) {
|
|
5848
|
+
_this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
5849
|
+
reject(error);
|
|
5850
|
+
}));
|
|
5851
|
+
}
|
|
5852
|
+
}))];
|
|
5853
|
+
});
|
|
5854
|
+
});
|
|
5855
|
+
};
|
|
5767
5856
|
/**
|
|
5768
5857
|
* @param {?} filters
|
|
5769
5858
|
* @return {?}
|
|
@@ -5779,6 +5868,28 @@
|
|
|
5779
5868
|
}
|
|
5780
5869
|
return filters;
|
|
5781
5870
|
};
|
|
5871
|
+
/**
|
|
5872
|
+
* @param {?} apiUrl
|
|
5873
|
+
* @param {?} id
|
|
5874
|
+
* @return {?}
|
|
5875
|
+
*/
|
|
5876
|
+
ContentStripWithTabsLibComponent.prototype.getFullUrl = /**
|
|
5877
|
+
* @param {?} apiUrl
|
|
5878
|
+
* @param {?} id
|
|
5879
|
+
* @return {?}
|
|
5880
|
+
*/
|
|
5881
|
+
function (apiUrl, id) {
|
|
5882
|
+
/** @type {?} */
|
|
5883
|
+
var formedUrl = '';
|
|
5884
|
+
if (apiUrl.indexOf('<bookmarkId>') >= 0) {
|
|
5885
|
+
formedUrl = apiUrl.replace('<bookmarkId>', this.environment.mdoChannelsBookmarkId);
|
|
5886
|
+
}
|
|
5887
|
+
else if (apiUrl.indexOf('<playlistKey>') >= 0 && apiUrl.indexOf('<orgID>') >= 0) {
|
|
5888
|
+
formedUrl = apiUrl.replace('<playlistKey>', this.providerId + id);
|
|
5889
|
+
formedUrl = formedUrl.replace('<orgID>', this.providerId);
|
|
5890
|
+
}
|
|
5891
|
+
return formedUrl;
|
|
5892
|
+
};
|
|
5782
5893
|
/**
|
|
5783
5894
|
* @param {?} stripData
|
|
5784
5895
|
* @param {?} path
|
|
@@ -5804,7 +5915,7 @@
|
|
|
5804
5915
|
* @param {?=} calculateParentStatus
|
|
5805
5916
|
* @return {?}
|
|
5806
5917
|
*/
|
|
5807
|
-
ContentStripWithTabsLibComponent.prototype.
|
|
5918
|
+
ContentStripWithTabsLibComponent.prototype.fetchAllBookMarkData = /**
|
|
5808
5919
|
* @param {?} strip
|
|
5809
5920
|
* @param {?=} calculateParentStatus
|
|
5810
5921
|
* @return {?}
|
|
@@ -5812,74 +5923,27 @@
|
|
|
5812
5923
|
function (strip, calculateParentStatus) {
|
|
5813
5924
|
if (calculateParentStatus === void 0) { calculateParentStatus = true; }
|
|
5814
5925
|
return __awaiter(this, void 0, void 0, function () {
|
|
5815
|
-
var originalFilters,
|
|
5926
|
+
var originalFilters, response, content, error_7;
|
|
5816
5927
|
return __generator(this, function (_a) {
|
|
5817
5928
|
switch (_a.label) {
|
|
5818
5929
|
case 0:
|
|
5819
|
-
if (!(strip.request && strip.request.
|
|
5930
|
+
if (!(strip.request && strip.request.bookmarkRead && Object.keys(strip.request.bookmarkRead).length)) return [3 /*break*/, 4];
|
|
5820
5931
|
originalFilters = [];
|
|
5821
5932
|
if (strip.request &&
|
|
5822
|
-
strip.request.
|
|
5823
|
-
strip.request.
|
|
5824
|
-
strip.request.
|
|
5825
|
-
originalFilters = strip.request.channels.request.filters;
|
|
5826
|
-
strip.request.channels.request.filters = this.postMethodFilters(strip.request.channels.request.filters);
|
|
5933
|
+
strip.request.bookmarkRead &&
|
|
5934
|
+
strip.request.bookmarkRead.bookmarkId) {
|
|
5935
|
+
strip.request.apiUrl = this.getFullUrl(strip.request.apiUrl, strip.request.bookmarkRead.bookmarkId);
|
|
5827
5936
|
}
|
|
5828
5937
|
_a.label = 1;
|
|
5829
5938
|
case 1:
|
|
5830
5939
|
_a.trys.push([1, 3, , 4]);
|
|
5831
|
-
|
|
5832
|
-
{
|
|
5833
|
-
// tslint:disable-next-line: max-line-length
|
|
5834
|
-
posterImage: 'https://portal.karmayogi.nic.in/content-store/content/do_114051411119235072127/artifact/do_114051411119235072127_1715260168985_default-provider.svg',
|
|
5835
|
-
appIcon: '',
|
|
5836
|
-
name: 'Ministry of Consumer Affairs, Food and Public Distribution',
|
|
5837
|
-
programCount: '10',
|
|
5838
|
-
},
|
|
5839
|
-
{
|
|
5840
|
-
// tslint:disable-next-line: max-line-length
|
|
5841
|
-
posterImage: 'https://portal.karmayogi.nic.in/content-store/content/do_114051411119235072127/artifact/do_114051411119235072127_1715260168985_default-provider.svg',
|
|
5842
|
-
appIcon: '',
|
|
5843
|
-
name: 'Ministry of Railways',
|
|
5844
|
-
programCount: '10',
|
|
5845
|
-
},
|
|
5846
|
-
{
|
|
5847
|
-
// tslint:disable-next-line: max-line-length
|
|
5848
|
-
posterImage: 'https://portal.karmayogi.nic.in/content-store/content/do_114051411119235072127/artifact/do_114051411119235072127_1715260168985_default-provider.svg',
|
|
5849
|
-
appIcon: '',
|
|
5850
|
-
name: 'Department of Post',
|
|
5851
|
-
programCount: '10',
|
|
5852
|
-
},
|
|
5853
|
-
{
|
|
5854
|
-
// tslint:disable-next-line: max-line-length
|
|
5855
|
-
posterImage: 'https://portal.karmayogi.nic.in/content-store/content/do_114051411119235072127/artifact/do_114051411119235072127_1715260168985_default-provider.svg',
|
|
5856
|
-
appIcon: '',
|
|
5857
|
-
name: 'NLC India Limited',
|
|
5858
|
-
programCount: '30',
|
|
5859
|
-
},
|
|
5860
|
-
{
|
|
5861
|
-
// tslint:disable-next-line: max-line-length
|
|
5862
|
-
posterImage: 'https://portal.karmayogi.nic.in/content-store/content/do_114051411119235072127/artifact/do_114051411119235072127_1715260168985_default-provider.svg',
|
|
5863
|
-
appIcon: '',
|
|
5864
|
-
name: 'Mission Karmayogi',
|
|
5865
|
-
programCount: '24',
|
|
5866
|
-
},
|
|
5867
|
-
{
|
|
5868
|
-
// tslint:disable-next-line: max-line-length
|
|
5869
|
-
posterImage: 'https://portal.karmayogi.nic.in/content-store/content/do_114051411119235072127/artifact/do_114051411119235072127_1715260168985_default-provider.svg',
|
|
5870
|
-
appIcon: '',
|
|
5871
|
-
name: 'Mission Karmayogi',
|
|
5872
|
-
programCount: '50',
|
|
5873
|
-
},
|
|
5874
|
-
];
|
|
5875
|
-
return [4 /*yield*/, data
|
|
5876
|
-
// console.log('calling after - response, ', response)
|
|
5877
|
-
];
|
|
5940
|
+
return [4 /*yield*/, this.getRequestMethod(strip, strip.request.bookmarkRead, strip.request.apiUrl, calculateParentStatus)];
|
|
5878
5941
|
case 2:
|
|
5879
5942
|
response = _a.sent();
|
|
5880
|
-
|
|
5943
|
+
console.log('calling after - response, ', response);
|
|
5944
|
+
content = response.results.result.data.orgList;
|
|
5881
5945
|
if (response) {
|
|
5882
|
-
this.processStrip(strip, this.transformAllContentsToWidgets(
|
|
5946
|
+
this.processStrip(strip, this.transformAllContentsToWidgets(content, strip), 'done', calculateParentStatus, response);
|
|
5883
5947
|
}
|
|
5884
5948
|
else {
|
|
5885
5949
|
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
@@ -5925,6 +5989,112 @@
|
|
|
5925
5989
|
widgetData: {},
|
|
5926
5990
|
}); }));
|
|
5927
5991
|
};
|
|
5992
|
+
/**
|
|
5993
|
+
* @param {?} strip
|
|
5994
|
+
* @param {?=} calculateParentStatus
|
|
5995
|
+
* @return {?}
|
|
5996
|
+
*/
|
|
5997
|
+
ContentStripWithTabsLibComponent.prototype.fetchAllPlaylistSearch = /**
|
|
5998
|
+
* @param {?} strip
|
|
5999
|
+
* @param {?=} calculateParentStatus
|
|
6000
|
+
* @return {?}
|
|
6001
|
+
*/
|
|
6002
|
+
function (strip, calculateParentStatus) {
|
|
6003
|
+
if (calculateParentStatus === void 0) { calculateParentStatus = true; }
|
|
6004
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6005
|
+
var originalFilters, response, error_8;
|
|
6006
|
+
return __generator(this, function (_a) {
|
|
6007
|
+
switch (_a.label) {
|
|
6008
|
+
case 0:
|
|
6009
|
+
if (!(strip.request && strip.request.playlistSearch && Object.keys(strip.request.playlistSearch).length)) return [3 /*break*/, 4];
|
|
6010
|
+
originalFilters = [];
|
|
6011
|
+
if (strip.request &&
|
|
6012
|
+
strip.request.playlistSearch &&
|
|
6013
|
+
strip.request.playlistSearch.request &&
|
|
6014
|
+
strip.request.playlistSearch.request.filters) {
|
|
6015
|
+
originalFilters = strip.request.playlistSearch.request.filters;
|
|
6016
|
+
strip.request.playlistSearch.request.filters = this.postMethodFilters(strip.request.playlistSearch.request.filters);
|
|
6017
|
+
}
|
|
6018
|
+
_a.label = 1;
|
|
6019
|
+
case 1:
|
|
6020
|
+
_a.trys.push([1, 3, , 4]);
|
|
6021
|
+
return [4 /*yield*/, this.postRequestMethod(strip, strip.request.playlistSearch.request, strip.request.apiUrl, calculateParentStatus)];
|
|
6022
|
+
case 2:
|
|
6023
|
+
response = _a.sent();
|
|
6024
|
+
// console.log('calling after - response, ', response)
|
|
6025
|
+
if (response && response.results) {
|
|
6026
|
+
// console.log('calling after-- ')
|
|
6027
|
+
if (response.results.result.data && response.results.result.data.length) {
|
|
6028
|
+
this.processStrip(strip, this.transformContentsToWidgets(response.results.result.data, strip), 'done', calculateParentStatus, response.viewMoreUrl);
|
|
6029
|
+
}
|
|
6030
|
+
else {
|
|
6031
|
+
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
6032
|
+
this.emptyResponse.emit(true);
|
|
6033
|
+
}
|
|
6034
|
+
}
|
|
6035
|
+
else {
|
|
6036
|
+
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
6037
|
+
this.emptyResponse.emit(true);
|
|
6038
|
+
}
|
|
6039
|
+
return [3 /*break*/, 4];
|
|
6040
|
+
case 3:
|
|
6041
|
+
error_8 = _a.sent();
|
|
6042
|
+
this.emptyResponse.emit(true);
|
|
6043
|
+
return [3 /*break*/, 4];
|
|
6044
|
+
case 4: return [2 /*return*/];
|
|
6045
|
+
}
|
|
6046
|
+
});
|
|
6047
|
+
});
|
|
6048
|
+
};
|
|
6049
|
+
/**
|
|
6050
|
+
* @param {?} strip
|
|
6051
|
+
* @param {?=} calculateParentStatus
|
|
6052
|
+
* @return {?}
|
|
6053
|
+
*/
|
|
6054
|
+
ContentStripWithTabsLibComponent.prototype.fetchPlaylistReadData = /**
|
|
6055
|
+
* @param {?} strip
|
|
6056
|
+
* @param {?=} calculateParentStatus
|
|
6057
|
+
* @return {?}
|
|
6058
|
+
*/
|
|
6059
|
+
function (strip, calculateParentStatus) {
|
|
6060
|
+
if (calculateParentStatus === void 0) { calculateParentStatus = true; }
|
|
6061
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6062
|
+
var originalFilters, response, content, error_9;
|
|
6063
|
+
return __generator(this, function (_a) {
|
|
6064
|
+
switch (_a.label) {
|
|
6065
|
+
case 0:
|
|
6066
|
+
if (!(strip.request && strip.request.playlistRead && Object.keys(strip.request.playlistRead).length)) return [3 /*break*/, 4];
|
|
6067
|
+
originalFilters = [];
|
|
6068
|
+
if (strip.request &&
|
|
6069
|
+
strip.request.playlistRead &&
|
|
6070
|
+
strip.request.playlistRead.type) {
|
|
6071
|
+
strip.request.apiUrl = this.getFullUrl(strip.request.apiUrl, strip.request.playlistRead.type);
|
|
6072
|
+
}
|
|
6073
|
+
_a.label = 1;
|
|
6074
|
+
case 1:
|
|
6075
|
+
_a.trys.push([1, 3, , 4]);
|
|
6076
|
+
return [4 /*yield*/, this.getRequestMethod(strip, strip.request.playlistRead, strip.request.apiUrl, calculateParentStatus)];
|
|
6077
|
+
case 2:
|
|
6078
|
+
response = _a.sent();
|
|
6079
|
+
console.log('calling after - response, ', response);
|
|
6080
|
+
if (response && response.results.result.content) {
|
|
6081
|
+
content = response.results.result.content;
|
|
6082
|
+
this.processStrip(strip, this.transformAllContentsToWidgets(content, strip), 'done', calculateParentStatus, response);
|
|
6083
|
+
}
|
|
6084
|
+
else {
|
|
6085
|
+
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
6086
|
+
this.emptyResponse.emit(true);
|
|
6087
|
+
}
|
|
6088
|
+
return [3 /*break*/, 4];
|
|
6089
|
+
case 3:
|
|
6090
|
+
error_9 = _a.sent();
|
|
6091
|
+
this.emptyResponse.emit(true);
|
|
6092
|
+
return [3 /*break*/, 4];
|
|
6093
|
+
case 4: return [2 /*return*/];
|
|
6094
|
+
}
|
|
6095
|
+
});
|
|
6096
|
+
});
|
|
6097
|
+
};
|
|
5928
6098
|
ContentStripWithTabsLibComponent.decorators = [
|
|
5929
6099
|
{ type: core.Component, args: [{
|
|
5930
6100
|
selector: 'sb-uic-content-strip-with-tabs',
|
|
@@ -6606,7 +6776,8 @@
|
|
|
6606
6776
|
/** @type {?} */
|
|
6607
6777
|
var API_END_POINTS$2 = {
|
|
6608
6778
|
PROVIDER_INSIGHTS: "/apis/proxies/v8/microsite/read/insights",
|
|
6609
|
-
TRAINING_DETAILS: "apis/proxies/v8/sunbirdigot/search"
|
|
6779
|
+
TRAINING_DETAILS: "apis/proxies/v8/sunbirdigot/search",
|
|
6780
|
+
ANNOUNCEMENTS_DETAILS: "apis/proxies/v8/announcements/v1/search"
|
|
6610
6781
|
};
|
|
6611
6782
|
var InsiteDataService = /** @class */ (function () {
|
|
6612
6783
|
function InsiteDataService(http) {
|
|
@@ -6623,6 +6794,17 @@
|
|
|
6623
6794
|
function (request) {
|
|
6624
6795
|
return this.http.post(API_END_POINTS$2.PROVIDER_INSIGHTS, request);
|
|
6625
6796
|
};
|
|
6797
|
+
/**
|
|
6798
|
+
* @param {?} request
|
|
6799
|
+
* @return {?}
|
|
6800
|
+
*/
|
|
6801
|
+
InsiteDataService.prototype.fetchAnnouncementsData = /**
|
|
6802
|
+
* @param {?} request
|
|
6803
|
+
* @return {?}
|
|
6804
|
+
*/
|
|
6805
|
+
function (request) {
|
|
6806
|
+
return this.http.post(API_END_POINTS$2.ANNOUNCEMENTS_DETAILS, request);
|
|
6807
|
+
};
|
|
6626
6808
|
/**
|
|
6627
6809
|
* @param {?} request
|
|
6628
6810
|
* @return {?}
|
|
@@ -6911,7 +7093,6 @@
|
|
|
6911
7093
|
this.currentMonthAndYear = this.datePipe.transform(this.currentDate, 'MMMM y');
|
|
6912
7094
|
this.selectedMonth = this.datePipe.transform(this.currentDate, 'LLLL yyyy');
|
|
6913
7095
|
if (this.fullCalendor) {
|
|
6914
|
-
console.log("this.currentDate ", this.currentDate);
|
|
6915
7096
|
this.days = this.getDaysInMonth(this.currentDate.getFullYear(), this.currentDate.getMonth());
|
|
6916
7097
|
this.getMonthsDropdownData();
|
|
6917
7098
|
}
|
|
@@ -8206,11 +8387,13 @@
|
|
|
8206
8387
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
8207
8388
|
*/
|
|
8208
8389
|
var AnnouncementsComponent = /** @class */ (function () {
|
|
8209
|
-
function AnnouncementsComponent() {
|
|
8390
|
+
function AnnouncementsComponent(insightSvc) {
|
|
8391
|
+
this.insightSvc = insightSvc;
|
|
8210
8392
|
this.mobileHeight = false;
|
|
8393
|
+
this.fetchDataFromApi = false;
|
|
8211
8394
|
this.openDialog = new core.EventEmitter();
|
|
8212
8395
|
this.isLoading = false;
|
|
8213
|
-
this.
|
|
8396
|
+
this.announcements = [];
|
|
8214
8397
|
}
|
|
8215
8398
|
/**
|
|
8216
8399
|
* @return {?}
|
|
@@ -8218,14 +8401,67 @@
|
|
|
8218
8401
|
AnnouncementsComponent.prototype.ngOnInit = /**
|
|
8219
8402
|
* @return {?}
|
|
8220
8403
|
*/
|
|
8404
|
+
function () {
|
|
8405
|
+
if (this.fetchDataFromApi) {
|
|
8406
|
+
this.isLoading = true;
|
|
8407
|
+
this.fetchData();
|
|
8408
|
+
}
|
|
8409
|
+
};
|
|
8410
|
+
/**
|
|
8411
|
+
* @return {?}
|
|
8412
|
+
*/
|
|
8413
|
+
AnnouncementsComponent.prototype.fetchData = /**
|
|
8414
|
+
* @return {?}
|
|
8415
|
+
*/
|
|
8221
8416
|
function () {
|
|
8222
8417
|
var _this = this;
|
|
8223
|
-
|
|
8418
|
+
/** @type {?} */
|
|
8419
|
+
var request = {
|
|
8420
|
+
filterCriteriaMap: {
|
|
8421
|
+
channel: [this.channelId],
|
|
8422
|
+
},
|
|
8423
|
+
requestedFields: [
|
|
8424
|
+
"name",
|
|
8425
|
+
"description",
|
|
8426
|
+
"createdOn",
|
|
8427
|
+
"updatedOn",
|
|
8428
|
+
"category"
|
|
8429
|
+
],
|
|
8430
|
+
orderBy: "createdOn",
|
|
8431
|
+
orderDirection: "ASC",
|
|
8432
|
+
facets: [
|
|
8433
|
+
"channel"
|
|
8434
|
+
],
|
|
8435
|
+
pageSize: this.objectData.pageSize
|
|
8436
|
+
};
|
|
8437
|
+
this.insightSvc.fetchAnnouncementsData(request).subscribe((/**
|
|
8438
|
+
* @param {?} res
|
|
8224
8439
|
* @return {?}
|
|
8225
8440
|
*/
|
|
8226
|
-
function () {
|
|
8441
|
+
function (res) {
|
|
8442
|
+
if (res && res.result && res.result.data) {
|
|
8443
|
+
res.result.data.forEach((/**
|
|
8444
|
+
* @param {?} resp
|
|
8445
|
+
* @return {?}
|
|
8446
|
+
*/
|
|
8447
|
+
function (resp) {
|
|
8448
|
+
_this.announcements.push({
|
|
8449
|
+
value: resp.description,
|
|
8450
|
+
expanded: false
|
|
8451
|
+
});
|
|
8452
|
+
}));
|
|
8453
|
+
}
|
|
8454
|
+
_this.objectData.list = _this.announcements;
|
|
8455
|
+
_this.isLoading = false;
|
|
8456
|
+
}), (/**
|
|
8457
|
+
* @param {?} error
|
|
8458
|
+
* @return {?}
|
|
8459
|
+
*/
|
|
8460
|
+
function (error) {
|
|
8461
|
+
console.log(error);
|
|
8462
|
+
_this.objectData.list = [];
|
|
8227
8463
|
_this.isLoading = false;
|
|
8228
|
-
})
|
|
8464
|
+
}));
|
|
8229
8465
|
};
|
|
8230
8466
|
/**
|
|
8231
8467
|
* @param {?} item
|
|
@@ -8252,16 +8488,20 @@
|
|
|
8252
8488
|
AnnouncementsComponent.decorators = [
|
|
8253
8489
|
{ type: core.Component, args: [{
|
|
8254
8490
|
selector: 'sb-uic-announcements',
|
|
8255
|
-
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
|
|
8256
|
-
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{
|
|
8491
|
+
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",
|
|
8492
|
+
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}}"]
|
|
8257
8493
|
}] }
|
|
8258
8494
|
];
|
|
8259
8495
|
/** @nocollapse */
|
|
8260
|
-
AnnouncementsComponent.ctorParameters = function () { return [
|
|
8496
|
+
AnnouncementsComponent.ctorParameters = function () { return [
|
|
8497
|
+
{ type: InsiteDataService }
|
|
8498
|
+
]; };
|
|
8261
8499
|
AnnouncementsComponent.propDecorators = {
|
|
8262
8500
|
objectData: [{ type: core.Input }],
|
|
8263
8501
|
layoutType: [{ type: core.Input }],
|
|
8264
8502
|
mobileHeight: [{ type: core.Input }],
|
|
8503
|
+
fetchDataFromApi: [{ type: core.Input }],
|
|
8504
|
+
channelId: [{ type: core.Input }],
|
|
8265
8505
|
openDialog: [{ type: core.Output }]
|
|
8266
8506
|
};
|
|
8267
8507
|
return AnnouncementsComponent;
|
|
@@ -8274,9 +8514,17 @@
|
|
|
8274
8514
|
/** @type {?} */
|
|
8275
8515
|
AnnouncementsComponent.prototype.mobileHeight;
|
|
8276
8516
|
/** @type {?} */
|
|
8517
|
+
AnnouncementsComponent.prototype.fetchDataFromApi;
|
|
8518
|
+
/** @type {?} */
|
|
8519
|
+
AnnouncementsComponent.prototype.channelId;
|
|
8520
|
+
/** @type {?} */
|
|
8277
8521
|
AnnouncementsComponent.prototype.openDialog;
|
|
8278
8522
|
/** @type {?} */
|
|
8279
8523
|
AnnouncementsComponent.prototype.isLoading;
|
|
8524
|
+
/** @type {?} */
|
|
8525
|
+
AnnouncementsComponent.prototype.announcements;
|
|
8526
|
+
/** @type {?} */
|
|
8527
|
+
AnnouncementsComponent.prototype.insightSvc;
|
|
8280
8528
|
}
|
|
8281
8529
|
|
|
8282
8530
|
/**
|
|
@@ -8420,6 +8668,7 @@
|
|
|
8420
8668
|
_this.configSvc = configSvc;
|
|
8421
8669
|
_this.contSvc = contSvc;
|
|
8422
8670
|
_this.router = router;
|
|
8671
|
+
_this.triggerTelemetry = new core.EventEmitter();
|
|
8423
8672
|
_this.isIntranetAllowedSettings = false;
|
|
8424
8673
|
return _this;
|
|
8425
8674
|
}
|
|
@@ -8516,10 +8765,21 @@
|
|
|
8516
8765
|
clearInterval(this.cbPlanInterval);
|
|
8517
8766
|
}
|
|
8518
8767
|
};
|
|
8768
|
+
/**
|
|
8769
|
+
* @param {?} data
|
|
8770
|
+
* @return {?}
|
|
8771
|
+
*/
|
|
8772
|
+
CardsComponent.prototype.raiseCardClick = /**
|
|
8773
|
+
* @param {?} data
|
|
8774
|
+
* @return {?}
|
|
8775
|
+
*/
|
|
8776
|
+
function (data) {
|
|
8777
|
+
this.triggerTelemetry.emit(data);
|
|
8778
|
+
};
|
|
8519
8779
|
CardsComponent.decorators = [
|
|
8520
8780
|
{ type: core.Component, args: [{
|
|
8521
8781
|
selector: 'sb-uic-cards',
|
|
8522
|
-
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
|
|
8782
|
+
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>",
|
|
8523
8783
|
styles: [""]
|
|
8524
8784
|
}] }
|
|
8525
8785
|
];
|
|
@@ -8531,7 +8791,8 @@
|
|
|
8531
8791
|
{ type: router.Router }
|
|
8532
8792
|
]; };
|
|
8533
8793
|
CardsComponent.propDecorators = {
|
|
8534
|
-
widgetData: [{ type: core.Input }]
|
|
8794
|
+
widgetData: [{ type: core.Input }],
|
|
8795
|
+
triggerTelemetry: [{ type: core.Output }]
|
|
8535
8796
|
};
|
|
8536
8797
|
return CardsComponent;
|
|
8537
8798
|
}(resolverV2.WidgetBaseComponent));
|
|
@@ -8539,6 +8800,8 @@
|
|
|
8539
8800
|
/** @type {?} */
|
|
8540
8801
|
CardsComponent.prototype.widgetData;
|
|
8541
8802
|
/** @type {?} */
|
|
8803
|
+
CardsComponent.prototype.triggerTelemetry;
|
|
8804
|
+
/** @type {?} */
|
|
8542
8805
|
CardsComponent.prototype.isIntranetAllowedSettings;
|
|
8543
8806
|
/** @type {?} */
|
|
8544
8807
|
CardsComponent.prototype.cbPlanMapData;
|
|
@@ -8682,8 +8945,8 @@
|
|
|
8682
8945
|
CardPortraitComponent.decorators = [
|
|
8683
8946
|
{ type: core.Component, args: [{
|
|
8684
8947
|
selector: 'sb-uic-card-portrait',
|
|
8685
|
-
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>",
|
|
8686
|
-
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:
|
|
8948
|
+
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>",
|
|
8949
|
+
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}"]
|
|
8687
8950
|
}] }
|
|
8688
8951
|
];
|
|
8689
8952
|
/** @nocollapse */
|
|
@@ -9282,6 +9545,7 @@
|
|
|
9282
9545
|
this.configSvc = configSvc;
|
|
9283
9546
|
this.isCardLoading = false;
|
|
9284
9547
|
this.contentData = new core.EventEmitter();
|
|
9548
|
+
this.triggerTelemetry = new core.EventEmitter();
|
|
9285
9549
|
this.isCardFlipped = false;
|
|
9286
9550
|
this.acbpConstants = NsCardContent$1.ACBPConst;
|
|
9287
9551
|
this.showFlip = false;
|
|
@@ -9351,29 +9615,15 @@
|
|
|
9351
9615
|
this.contentData.emit(contentData);
|
|
9352
9616
|
};
|
|
9353
9617
|
/**
|
|
9618
|
+
* @param {?} content
|
|
9354
9619
|
* @return {?}
|
|
9355
9620
|
*/
|
|
9356
9621
|
CardLandscapeComponent.prototype.raiseTelemetry = /**
|
|
9622
|
+
* @param {?} content
|
|
9357
9623
|
* @return {?}
|
|
9358
9624
|
*/
|
|
9359
|
-
function () {
|
|
9360
|
-
|
|
9361
|
-
// return
|
|
9362
|
-
// }
|
|
9363
|
-
this.events.raiseInteractTelemetry({
|
|
9364
|
-
type: 'click',
|
|
9365
|
-
subType: this.widgetType + "-" + this.widgetSubType,
|
|
9366
|
-
id: lodash.camelCase(this.widgetData.content.primaryCategory) + "-card",
|
|
9367
|
-
}, {
|
|
9368
|
-
id: this.widgetData.content.identifier,
|
|
9369
|
-
type: this.widgetData.content.primaryCategory,
|
|
9370
|
-
//context: this.widgetData.context,
|
|
9371
|
-
rollup: {},
|
|
9372
|
-
ver: "" + this.widgetData.content.version + '',
|
|
9373
|
-
}, {
|
|
9374
|
-
pageIdExt: lodash.camelCase(this.widgetData.content.primaryCategory) + "-card",
|
|
9375
|
-
module: lodash.camelCase(this.widgetData.content.primaryCategory),
|
|
9376
|
-
});
|
|
9625
|
+
function (content) {
|
|
9626
|
+
this.triggerTelemetry.emit(content);
|
|
9377
9627
|
};
|
|
9378
9628
|
/**
|
|
9379
9629
|
* @return {?}
|
|
@@ -9404,7 +9654,7 @@
|
|
|
9404
9654
|
CardLandscapeComponent.decorators = [
|
|
9405
9655
|
{ type: core.Component, args: [{
|
|
9406
9656
|
selector: 'sb-uic-card-landscape',
|
|
9407
|
-
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>",
|
|
9657
|
+
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>",
|
|
9408
9658
|
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)}}"]
|
|
9409
9659
|
}] }
|
|
9410
9660
|
];
|
|
@@ -9422,7 +9672,8 @@
|
|
|
9422
9672
|
showIntranetContent: [{ type: core.Input }],
|
|
9423
9673
|
isIntranetAllowedSettings: [{ type: core.Input }],
|
|
9424
9674
|
isCardLoading: [{ type: core.Input }],
|
|
9425
|
-
contentData: [{ type: core.Output }]
|
|
9675
|
+
contentData: [{ type: core.Output }],
|
|
9676
|
+
triggerTelemetry: [{ type: core.Output }]
|
|
9426
9677
|
};
|
|
9427
9678
|
return CardLandscapeComponent;
|
|
9428
9679
|
}());
|
|
@@ -9440,6 +9691,8 @@
|
|
|
9440
9691
|
/** @type {?} */
|
|
9441
9692
|
CardLandscapeComponent.prototype.contentData;
|
|
9442
9693
|
/** @type {?} */
|
|
9694
|
+
CardLandscapeComponent.prototype.triggerTelemetry;
|
|
9695
|
+
/** @type {?} */
|
|
9443
9696
|
CardLandscapeComponent.prototype.isCardFlipped;
|
|
9444
9697
|
/** @type {?} */
|
|
9445
9698
|
CardLandscapeComponent.prototype.defaultThumbnail;
|
|
@@ -9655,14 +9908,17 @@
|
|
|
9655
9908
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9656
9909
|
*/
|
|
9657
9910
|
var CardMDOChannelComponent = /** @class */ (function () {
|
|
9658
|
-
function CardMDOChannelComponent(events, translate, langtranslations, configSvc) {
|
|
9911
|
+
function CardMDOChannelComponent(events, translate, langtranslations, configSvc, contSvc, router) {
|
|
9659
9912
|
var _this = this;
|
|
9660
9913
|
this.events = events;
|
|
9661
9914
|
this.translate = translate;
|
|
9662
9915
|
this.langtranslations = langtranslations;
|
|
9663
9916
|
this.configSvc = configSvc;
|
|
9664
|
-
this.
|
|
9665
|
-
this.
|
|
9917
|
+
this.contSvc = contSvc;
|
|
9918
|
+
this.router = router;
|
|
9919
|
+
this.channelData = new core.EventEmitter();
|
|
9920
|
+
this.emitTelemetry = new core.EventEmitter();
|
|
9921
|
+
this.widgetType = '';
|
|
9666
9922
|
this.widgetSubType = '';
|
|
9667
9923
|
this.langtranslations.languageSelectedObservable.subscribe((/**
|
|
9668
9924
|
* @return {?}
|
|
@@ -9696,34 +9952,47 @@
|
|
|
9696
9952
|
}
|
|
9697
9953
|
};
|
|
9698
9954
|
/**
|
|
9955
|
+
* @param {?} contentData
|
|
9699
9956
|
* @return {?}
|
|
9700
9957
|
*/
|
|
9701
9958
|
CardMDOChannelComponent.prototype.raiseTelemetry = /**
|
|
9959
|
+
* @param {?} contentData
|
|
9702
9960
|
* @return {?}
|
|
9703
9961
|
*/
|
|
9704
|
-
function () {
|
|
9705
|
-
|
|
9706
|
-
|
|
9707
|
-
|
|
9708
|
-
|
|
9709
|
-
|
|
9710
|
-
|
|
9711
|
-
|
|
9712
|
-
|
|
9713
|
-
|
|
9714
|
-
|
|
9715
|
-
|
|
9716
|
-
|
|
9717
|
-
|
|
9718
|
-
|
|
9719
|
-
|
|
9720
|
-
|
|
9962
|
+
function (contentData) {
|
|
9963
|
+
this.emitTelemetry.emit(contentData);
|
|
9964
|
+
if (this.widgetData) {
|
|
9965
|
+
contentData['typeOfTelemetry'] = 'mdo-channel';
|
|
9966
|
+
}
|
|
9967
|
+
this.contSvc.changeTelemetryData(contentData);
|
|
9968
|
+
};
|
|
9969
|
+
/**
|
|
9970
|
+
* @param {?} channeldata
|
|
9971
|
+
* @return {?}
|
|
9972
|
+
*/
|
|
9973
|
+
CardMDOChannelComponent.prototype.channelClick = /**
|
|
9974
|
+
* @param {?} channeldata
|
|
9975
|
+
* @return {?}
|
|
9976
|
+
*/
|
|
9977
|
+
function (channeldata) {
|
|
9978
|
+
this.channelData.emit(channeldata);
|
|
9979
|
+
};
|
|
9980
|
+
/**
|
|
9981
|
+
* @param {?} content
|
|
9982
|
+
* @return {?}
|
|
9983
|
+
*/
|
|
9984
|
+
CardMDOChannelComponent.prototype.redirectTo = /**
|
|
9985
|
+
* @param {?} content
|
|
9986
|
+
* @return {?}
|
|
9987
|
+
*/
|
|
9988
|
+
function (content) {
|
|
9989
|
+
this.router.navigate(["/app/learn/mdo-channels/" + content.orgName + "/" + content.identifier + "/micro-sites"]);
|
|
9721
9990
|
};
|
|
9722
9991
|
CardMDOChannelComponent.decorators = [
|
|
9723
9992
|
{ type: core.Component, args: [{
|
|
9724
9993
|
selector: 'sb-uic-card-mdo-channel',
|
|
9725
|
-
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()
|
|
9726
|
-
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}"]
|
|
9994
|
+
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>",
|
|
9995
|
+
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}}"]
|
|
9727
9996
|
}] }
|
|
9728
9997
|
];
|
|
9729
9998
|
/** @nocollapse */
|
|
@@ -9731,11 +10000,14 @@
|
|
|
9731
10000
|
{ type: utilsV2.EventService },
|
|
9732
10001
|
{ type: core$1.TranslateService },
|
|
9733
10002
|
{ type: utilsV2.MultilingualTranslationsService },
|
|
9734
|
-
{ type: utilsV2.ConfigurationsService }
|
|
10003
|
+
{ type: utilsV2.ConfigurationsService },
|
|
10004
|
+
{ type: WidgetContentService },
|
|
10005
|
+
{ type: router.Router }
|
|
9735
10006
|
]; };
|
|
9736
10007
|
CardMDOChannelComponent.propDecorators = {
|
|
9737
10008
|
widgetData: [{ type: core.Input }],
|
|
9738
|
-
|
|
10009
|
+
channelData: [{ type: core.Output }],
|
|
10010
|
+
emitTelemetry: [{ type: core.Output }]
|
|
9739
10011
|
};
|
|
9740
10012
|
return CardMDOChannelComponent;
|
|
9741
10013
|
}());
|
|
@@ -9743,7 +10015,9 @@
|
|
|
9743
10015
|
/** @type {?} */
|
|
9744
10016
|
CardMDOChannelComponent.prototype.widgetData;
|
|
9745
10017
|
/** @type {?} */
|
|
9746
|
-
CardMDOChannelComponent.prototype.
|
|
10018
|
+
CardMDOChannelComponent.prototype.channelData;
|
|
10019
|
+
/** @type {?} */
|
|
10020
|
+
CardMDOChannelComponent.prototype.emitTelemetry;
|
|
9747
10021
|
/** @type {?} */
|
|
9748
10022
|
CardMDOChannelComponent.prototype.defaultThumbnail;
|
|
9749
10023
|
/** @type {?} */
|
|
@@ -9774,6 +10048,13 @@
|
|
|
9774
10048
|
* @private
|
|
9775
10049
|
*/
|
|
9776
10050
|
CardMDOChannelComponent.prototype.configSvc;
|
|
10051
|
+
/**
|
|
10052
|
+
* @type {?}
|
|
10053
|
+
* @private
|
|
10054
|
+
*/
|
|
10055
|
+
CardMDOChannelComponent.prototype.contSvc;
|
|
10056
|
+
/** @type {?} */
|
|
10057
|
+
CardMDOChannelComponent.prototype.router;
|
|
9777
10058
|
}
|
|
9778
10059
|
|
|
9779
10060
|
/**
|
|
@@ -9790,6 +10071,7 @@
|
|
|
9790
10071
|
this.configSvc = configSvc;
|
|
9791
10072
|
this.isCardLoading = false;
|
|
9792
10073
|
this.contentData = new core.EventEmitter();
|
|
10074
|
+
this.triggerTelemetry = new core.EventEmitter();
|
|
9793
10075
|
this.isCardFlipped = false;
|
|
9794
10076
|
this.acbpConstants = NsCardContent$1.ACBPConst;
|
|
9795
10077
|
this.showFlip = false;
|
|
@@ -9852,35 +10134,21 @@
|
|
|
9852
10134
|
this.contentData.emit(contentData);
|
|
9853
10135
|
};
|
|
9854
10136
|
/**
|
|
10137
|
+
* @param {?} contentData
|
|
9855
10138
|
* @return {?}
|
|
9856
10139
|
*/
|
|
9857
10140
|
CardWideV2Component.prototype.raiseTelemetry = /**
|
|
10141
|
+
* @param {?} contentData
|
|
9858
10142
|
* @return {?}
|
|
9859
10143
|
*/
|
|
9860
|
-
function () {
|
|
9861
|
-
|
|
9862
|
-
// return
|
|
9863
|
-
// }
|
|
9864
|
-
this.events.raiseInteractTelemetry({
|
|
9865
|
-
type: 'click',
|
|
9866
|
-
subType: this.widgetType + "-" + this.widgetSubType,
|
|
9867
|
-
id: lodash.camelCase(this.widgetData.content.primaryCategory) + "-card",
|
|
9868
|
-
}, {
|
|
9869
|
-
id: this.widgetData.content.identifier,
|
|
9870
|
-
type: this.widgetData.content.primaryCategory,
|
|
9871
|
-
//context: this.widgetData.context,
|
|
9872
|
-
rollup: {},
|
|
9873
|
-
ver: "" + this.widgetData.content.version + '',
|
|
9874
|
-
}, {
|
|
9875
|
-
pageIdExt: lodash.camelCase(this.widgetData.content.primaryCategory) + "-card",
|
|
9876
|
-
module: lodash.camelCase(this.widgetData.content.primaryCategory),
|
|
9877
|
-
});
|
|
10144
|
+
function (contentData) {
|
|
10145
|
+
this.triggerTelemetry.emit(contentData);
|
|
9878
10146
|
};
|
|
9879
10147
|
CardWideV2Component.decorators = [
|
|
9880
10148
|
{ type: core.Component, args: [{
|
|
9881
10149
|
selector: 'sb-uic-card-wide-v2',
|
|
9882
|
-
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
|
|
9883
|
-
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}"]
|
|
10150
|
+
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>",
|
|
10151
|
+
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}"]
|
|
9884
10152
|
}] }
|
|
9885
10153
|
];
|
|
9886
10154
|
/** @nocollapse */
|
|
@@ -9898,7 +10166,8 @@
|
|
|
9898
10166
|
isIntranetAllowedSettings: [{ type: core.Input }],
|
|
9899
10167
|
cbPlanMapData: [{ type: core.Input }],
|
|
9900
10168
|
isCardLoading: [{ type: core.Input }],
|
|
9901
|
-
contentData: [{ type: core.Output }]
|
|
10169
|
+
contentData: [{ type: core.Output }],
|
|
10170
|
+
triggerTelemetry: [{ type: core.Output }]
|
|
9902
10171
|
};
|
|
9903
10172
|
return CardWideV2Component;
|
|
9904
10173
|
}());
|
|
@@ -9918,6 +10187,8 @@
|
|
|
9918
10187
|
/** @type {?} */
|
|
9919
10188
|
CardWideV2Component.prototype.contentData;
|
|
9920
10189
|
/** @type {?} */
|
|
10190
|
+
CardWideV2Component.prototype.triggerTelemetry;
|
|
10191
|
+
/** @type {?} */
|
|
9921
10192
|
CardWideV2Component.prototype.isCardFlipped;
|
|
9922
10193
|
/** @type {?} */
|
|
9923
10194
|
CardWideV2Component.prototype.acbpConstants;
|
|
@@ -9965,12 +10236,14 @@
|
|
|
9965
10236
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9966
10237
|
*/
|
|
9967
10238
|
var CardKarmaProgramsComponent = /** @class */ (function () {
|
|
9968
|
-
function CardKarmaProgramsComponent(events, translate, langtranslations, configSvc) {
|
|
10239
|
+
function CardKarmaProgramsComponent(events, translate, langtranslations, configSvc, contSvc, router) {
|
|
9969
10240
|
var _this = this;
|
|
9970
10241
|
this.events = events;
|
|
9971
10242
|
this.translate = translate;
|
|
9972
10243
|
this.langtranslations = langtranslations;
|
|
9973
10244
|
this.configSvc = configSvc;
|
|
10245
|
+
this.contSvc = contSvc;
|
|
10246
|
+
this.router = router;
|
|
9974
10247
|
this.randomColorApply = false;
|
|
9975
10248
|
this.userData = new core.EventEmitter();
|
|
9976
10249
|
this.widgetType = '';
|
|
@@ -10033,31 +10306,6 @@
|
|
|
10033
10306
|
this.widgetData.content['bgColor'] = '#1a4ca1';
|
|
10034
10307
|
}
|
|
10035
10308
|
}
|
|
10036
|
-
console.log(this.widgetData.content, this.randomColorApply);
|
|
10037
|
-
};
|
|
10038
|
-
/**
|
|
10039
|
-
* @return {?}
|
|
10040
|
-
*/
|
|
10041
|
-
CardKarmaProgramsComponent.prototype.raiseTelemetry = /**
|
|
10042
|
-
* @return {?}
|
|
10043
|
-
*/
|
|
10044
|
-
function () {
|
|
10045
|
-
// if(this.forPreview){
|
|
10046
|
-
// return
|
|
10047
|
-
// }
|
|
10048
|
-
this.events.raiseInteractTelemetry({
|
|
10049
|
-
type: 'click',
|
|
10050
|
-
subType: this.widgetType + "-" + this.widgetSubType,
|
|
10051
|
-
id: lodash.camelCase(this.widgetData.content.userId) + "-card",
|
|
10052
|
-
}, {
|
|
10053
|
-
id: this.widgetData.content.userId,
|
|
10054
|
-
// type: this.widgetData.user.primaryCategory,
|
|
10055
|
-
//context: this.widgetData.context,
|
|
10056
|
-
rollup: {},
|
|
10057
|
-
}, {
|
|
10058
|
-
pageIdExt: lodash.camelCase('user') + "-card",
|
|
10059
|
-
module: lodash.camelCase('user'),
|
|
10060
|
-
});
|
|
10061
10309
|
};
|
|
10062
10310
|
Object.defineProperty(CardKarmaProgramsComponent.prototype, "getRandomColors", {
|
|
10063
10311
|
get: /**
|
|
@@ -10071,10 +10319,25 @@
|
|
|
10071
10319
|
enumerable: true,
|
|
10072
10320
|
configurable: true
|
|
10073
10321
|
});
|
|
10322
|
+
/**
|
|
10323
|
+
* @param {?} data
|
|
10324
|
+
* @return {?}
|
|
10325
|
+
*/
|
|
10326
|
+
CardKarmaProgramsComponent.prototype.redirectTo = /**
|
|
10327
|
+
* @param {?} data
|
|
10328
|
+
* @return {?}
|
|
10329
|
+
*/
|
|
10330
|
+
function (data) {
|
|
10331
|
+
if (this.widgetData && this.widgetData.context && this.widgetData.context.pageSection) {
|
|
10332
|
+
data['typeOfTelemetry'] = 'karma-programs';
|
|
10333
|
+
}
|
|
10334
|
+
this.contSvc.changeTelemetryData(data);
|
|
10335
|
+
this.router.navigate(["/app/learn/karma-programs/" + data.title + "/" + data.playListKey + "/" + data.orgId + "/micro-sites"]);
|
|
10336
|
+
};
|
|
10074
10337
|
CardKarmaProgramsComponent.decorators = [
|
|
10075
10338
|
{ type: core.Component, args: [{
|
|
10076
10339
|
selector: 'sb-uic-card-karma-programs',
|
|
10077
|
-
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)=\"
|
|
10340
|
+
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>",
|
|
10078
10341
|
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}"]
|
|
10079
10342
|
}] }
|
|
10080
10343
|
];
|
|
@@ -10083,7 +10346,9 @@
|
|
|
10083
10346
|
{ type: utilsV2.EventService },
|
|
10084
10347
|
{ type: core$1.TranslateService },
|
|
10085
10348
|
{ type: utilsV2.MultilingualTranslationsService },
|
|
10086
|
-
{ type: utilsV2.ConfigurationsService }
|
|
10349
|
+
{ type: utilsV2.ConfigurationsService },
|
|
10350
|
+
{ type: WidgetContentService },
|
|
10351
|
+
{ type: router.Router }
|
|
10087
10352
|
]; };
|
|
10088
10353
|
CardKarmaProgramsComponent.propDecorators = {
|
|
10089
10354
|
widgetData: [{ type: core.Input }],
|
|
@@ -10131,6 +10396,188 @@
|
|
|
10131
10396
|
* @private
|
|
10132
10397
|
*/
|
|
10133
10398
|
CardKarmaProgramsComponent.prototype.configSvc;
|
|
10399
|
+
/**
|
|
10400
|
+
* @type {?}
|
|
10401
|
+
* @private
|
|
10402
|
+
*/
|
|
10403
|
+
CardKarmaProgramsComponent.prototype.contSvc;
|
|
10404
|
+
/**
|
|
10405
|
+
* @type {?}
|
|
10406
|
+
* @private
|
|
10407
|
+
*/
|
|
10408
|
+
CardKarmaProgramsComponent.prototype.router;
|
|
10409
|
+
}
|
|
10410
|
+
|
|
10411
|
+
/**
|
|
10412
|
+
* @fileoverview added by tsickle
|
|
10413
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
10414
|
+
*/
|
|
10415
|
+
var CardKarmaProgramsV2Component = /** @class */ (function () {
|
|
10416
|
+
function CardKarmaProgramsV2Component(events, translate, langtranslations, configSvc, router) {
|
|
10417
|
+
var _this = this;
|
|
10418
|
+
this.events = events;
|
|
10419
|
+
this.translate = translate;
|
|
10420
|
+
this.langtranslations = langtranslations;
|
|
10421
|
+
this.configSvc = configSvc;
|
|
10422
|
+
this.router = router;
|
|
10423
|
+
this.randomColorApply = false;
|
|
10424
|
+
this.userData = new core.EventEmitter();
|
|
10425
|
+
this.raiseTemeletry = new core.EventEmitter();
|
|
10426
|
+
this.widgetType = '';
|
|
10427
|
+
this.widgetSubType = '';
|
|
10428
|
+
this.randomColors = [
|
|
10429
|
+
'#EF941D',
|
|
10430
|
+
'#F97440',
|
|
10431
|
+
'#35B5B0',
|
|
10432
|
+
'#9988FF',
|
|
10433
|
+
'#254092',
|
|
10434
|
+
'#926525',
|
|
10435
|
+
'#4F72DF'
|
|
10436
|
+
];
|
|
10437
|
+
this.langtranslations.languageSelectedObservable.subscribe((/**
|
|
10438
|
+
* @return {?}
|
|
10439
|
+
*/
|
|
10440
|
+
function () {
|
|
10441
|
+
if (localStorage.getItem('websiteLanguage')) {
|
|
10442
|
+
_this.translate.setDefaultLang('en');
|
|
10443
|
+
/** @type {?} */
|
|
10444
|
+
var lang = (/** @type {?} */ (localStorage.getItem('websiteLanguage')));
|
|
10445
|
+
_this.translate.use(lang);
|
|
10446
|
+
}
|
|
10447
|
+
}));
|
|
10448
|
+
}
|
|
10449
|
+
/**
|
|
10450
|
+
* @return {?}
|
|
10451
|
+
*/
|
|
10452
|
+
CardKarmaProgramsV2Component.prototype.ngOnInit = /**
|
|
10453
|
+
* @return {?}
|
|
10454
|
+
*/
|
|
10455
|
+
function () {
|
|
10456
|
+
/** @type {?} */
|
|
10457
|
+
var instanceConfig = this.configSvc.instanceConfig;
|
|
10458
|
+
if (instanceConfig) {
|
|
10459
|
+
this.defaultThumbnail = instanceConfig.logos.defaultContent || '';
|
|
10460
|
+
this.sourceLogos = instanceConfig.sources;
|
|
10461
|
+
this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '';
|
|
10462
|
+
}
|
|
10463
|
+
else {
|
|
10464
|
+
this.defaultThumbnail = '/assets/instances/eagle/app_logos/default.png';
|
|
10465
|
+
this.defaultSLogo = '/assets/instances/eagle/app_logos/KarmayogiBharat_Logo.svg';
|
|
10466
|
+
}
|
|
10467
|
+
this.setRandomColor();
|
|
10468
|
+
};
|
|
10469
|
+
/**
|
|
10470
|
+
* @return {?}
|
|
10471
|
+
*/
|
|
10472
|
+
CardKarmaProgramsV2Component.prototype.setRandomColor = /**
|
|
10473
|
+
* @return {?}
|
|
10474
|
+
*/
|
|
10475
|
+
function () {
|
|
10476
|
+
if (this.widgetData && this.widgetData.content) {
|
|
10477
|
+
if (this.randomColorApply) {
|
|
10478
|
+
/** @type {?} */
|
|
10479
|
+
var randomIndex1 = Math.floor(Math.random() * Math.floor(this.randomColors.length));
|
|
10480
|
+
this.widgetData.content['bgColor'] = this.randomColors[randomIndex1];
|
|
10481
|
+
}
|
|
10482
|
+
else {
|
|
10483
|
+
this.widgetData.content['bgColor'] = '#1a4ca1';
|
|
10484
|
+
}
|
|
10485
|
+
}
|
|
10486
|
+
};
|
|
10487
|
+
/**
|
|
10488
|
+
* @param {?} content
|
|
10489
|
+
* @return {?}
|
|
10490
|
+
*/
|
|
10491
|
+
CardKarmaProgramsV2Component.prototype.redirectTo = /**
|
|
10492
|
+
* @param {?} content
|
|
10493
|
+
* @return {?}
|
|
10494
|
+
*/
|
|
10495
|
+
function (content) {
|
|
10496
|
+
this.raiseTemeletry.emit(content);
|
|
10497
|
+
//this.router.navigate([`/app/learn/karma-programs/${content.identifier}/${content.identifier}/micro-sites`])
|
|
10498
|
+
this.router.navigate(['/app/learn/karma-programs/India%20post/0132593267437813768program/0132593267437813768/micro-sites']);
|
|
10499
|
+
};
|
|
10500
|
+
Object.defineProperty(CardKarmaProgramsV2Component.prototype, "getRandomColors", {
|
|
10501
|
+
get: /**
|
|
10502
|
+
* @return {?}
|
|
10503
|
+
*/
|
|
10504
|
+
function () {
|
|
10505
|
+
/** @type {?} */
|
|
10506
|
+
var randomIndex1 = Math.floor(Math.random() * Math.floor(this.randomColors.length));
|
|
10507
|
+
return this.randomColors[randomIndex1];
|
|
10508
|
+
},
|
|
10509
|
+
enumerable: true,
|
|
10510
|
+
configurable: true
|
|
10511
|
+
});
|
|
10512
|
+
CardKarmaProgramsV2Component.decorators = [
|
|
10513
|
+
{ type: core.Component, args: [{
|
|
10514
|
+
selector: 'sb-uic-card-karma-programs-v2',
|
|
10515
|
+
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>",
|
|
10516
|
+
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}}"]
|
|
10517
|
+
}] }
|
|
10518
|
+
];
|
|
10519
|
+
/** @nocollapse */
|
|
10520
|
+
CardKarmaProgramsV2Component.ctorParameters = function () { return [
|
|
10521
|
+
{ type: utilsV2.EventService },
|
|
10522
|
+
{ type: core$1.TranslateService },
|
|
10523
|
+
{ type: utilsV2.MultilingualTranslationsService },
|
|
10524
|
+
{ type: utilsV2.ConfigurationsService },
|
|
10525
|
+
{ type: router.Router }
|
|
10526
|
+
]; };
|
|
10527
|
+
CardKarmaProgramsV2Component.propDecorators = {
|
|
10528
|
+
widgetData: [{ type: core.Input }],
|
|
10529
|
+
randomColorApply: [{ type: core.Input }],
|
|
10530
|
+
userData: [{ type: core.Output }],
|
|
10531
|
+
raiseTemeletry: [{ type: core.Output }]
|
|
10532
|
+
};
|
|
10533
|
+
return CardKarmaProgramsV2Component;
|
|
10534
|
+
}());
|
|
10535
|
+
if (false) {
|
|
10536
|
+
/** @type {?} */
|
|
10537
|
+
CardKarmaProgramsV2Component.prototype.widgetData;
|
|
10538
|
+
/** @type {?} */
|
|
10539
|
+
CardKarmaProgramsV2Component.prototype.randomColorApply;
|
|
10540
|
+
/** @type {?} */
|
|
10541
|
+
CardKarmaProgramsV2Component.prototype.userData;
|
|
10542
|
+
/** @type {?} */
|
|
10543
|
+
CardKarmaProgramsV2Component.prototype.raiseTemeletry;
|
|
10544
|
+
/** @type {?} */
|
|
10545
|
+
CardKarmaProgramsV2Component.prototype.defaultThumbnail;
|
|
10546
|
+
/** @type {?} */
|
|
10547
|
+
CardKarmaProgramsV2Component.prototype.sourceLogos;
|
|
10548
|
+
/** @type {?} */
|
|
10549
|
+
CardKarmaProgramsV2Component.prototype.defaultSLogo;
|
|
10550
|
+
/** @type {?} */
|
|
10551
|
+
CardKarmaProgramsV2Component.prototype.widgetType;
|
|
10552
|
+
/** @type {?} */
|
|
10553
|
+
CardKarmaProgramsV2Component.prototype.widgetSubType;
|
|
10554
|
+
/** @type {?} */
|
|
10555
|
+
CardKarmaProgramsV2Component.prototype.randomColors;
|
|
10556
|
+
/**
|
|
10557
|
+
* @type {?}
|
|
10558
|
+
* @private
|
|
10559
|
+
*/
|
|
10560
|
+
CardKarmaProgramsV2Component.prototype.events;
|
|
10561
|
+
/**
|
|
10562
|
+
* @type {?}
|
|
10563
|
+
* @private
|
|
10564
|
+
*/
|
|
10565
|
+
CardKarmaProgramsV2Component.prototype.translate;
|
|
10566
|
+
/**
|
|
10567
|
+
* @type {?}
|
|
10568
|
+
* @private
|
|
10569
|
+
*/
|
|
10570
|
+
CardKarmaProgramsV2Component.prototype.langtranslations;
|
|
10571
|
+
/**
|
|
10572
|
+
* @type {?}
|
|
10573
|
+
* @private
|
|
10574
|
+
*/
|
|
10575
|
+
CardKarmaProgramsV2Component.prototype.configSvc;
|
|
10576
|
+
/**
|
|
10577
|
+
* @type {?}
|
|
10578
|
+
* @private
|
|
10579
|
+
*/
|
|
10580
|
+
CardKarmaProgramsV2Component.prototype.router;
|
|
10134
10581
|
}
|
|
10135
10582
|
|
|
10136
10583
|
/**
|
|
@@ -10150,7 +10597,8 @@
|
|
|
10150
10597
|
CardWideComponent,
|
|
10151
10598
|
CardMDOChannelComponent,
|
|
10152
10599
|
CardWideV2Component,
|
|
10153
|
-
CardKarmaProgramsComponent
|
|
10600
|
+
CardKarmaProgramsComponent,
|
|
10601
|
+
CardKarmaProgramsV2Component
|
|
10154
10602
|
],
|
|
10155
10603
|
imports: [
|
|
10156
10604
|
common.CommonModule,
|
|
@@ -10175,7 +10623,8 @@
|
|
|
10175
10623
|
CardWideComponent,
|
|
10176
10624
|
CardMDOChannelComponent,
|
|
10177
10625
|
CardWideV2Component,
|
|
10178
|
-
CardKarmaProgramsComponent
|
|
10626
|
+
CardKarmaProgramsComponent,
|
|
10627
|
+
CardKarmaProgramsV2Component
|
|
10179
10628
|
],
|
|
10180
10629
|
},] }
|
|
10181
10630
|
];
|
|
@@ -11820,28 +12269,29 @@
|
|
|
11820
12269
|
exports.ɵb = WidgetUserService;
|
|
11821
12270
|
exports.ɵba = CardWideV2Component;
|
|
11822
12271
|
exports.ɵbb = CardKarmaProgramsComponent;
|
|
11823
|
-
exports.ɵbc =
|
|
11824
|
-
exports.ɵbd =
|
|
11825
|
-
exports.ɵbe =
|
|
11826
|
-
exports.ɵbf =
|
|
11827
|
-
exports.ɵbg =
|
|
11828
|
-
exports.ɵbh =
|
|
11829
|
-
exports.ɵbi =
|
|
11830
|
-
exports.ɵbj =
|
|
11831
|
-
exports.ɵbk =
|
|
11832
|
-
exports.ɵbl =
|
|
11833
|
-
exports.ɵbm =
|
|
11834
|
-
exports.ɵbn =
|
|
11835
|
-
exports.ɵbo =
|
|
11836
|
-
exports.ɵbp =
|
|
11837
|
-
exports.ɵbq =
|
|
11838
|
-
exports.ɵbr =
|
|
11839
|
-
exports.ɵbs =
|
|
11840
|
-
exports.ɵbt =
|
|
11841
|
-
exports.ɵbu =
|
|
11842
|
-
exports.ɵbv =
|
|
11843
|
-
exports.ɵbw =
|
|
11844
|
-
exports.ɵbx =
|
|
12272
|
+
exports.ɵbc = CardKarmaProgramsV2Component;
|
|
12273
|
+
exports.ɵbd = PipePublicURLModule;
|
|
12274
|
+
exports.ɵbe = PipePublicURL;
|
|
12275
|
+
exports.ɵbf = DisplayContentTypeLibModule;
|
|
12276
|
+
exports.ɵbg = DisplayContentTypeLibComponent;
|
|
12277
|
+
exports.ɵbh = DefaultThumbnailModule;
|
|
12278
|
+
exports.ɵbi = DefaultThumbnailDirective;
|
|
12279
|
+
exports.ɵbj = PipeDurationTransformModule;
|
|
12280
|
+
exports.ɵbk = PipeDurationTransformPipe;
|
|
12281
|
+
exports.ɵbl = CompetencyPassbookComponent;
|
|
12282
|
+
exports.ɵbm = CompetencyPassbookService;
|
|
12283
|
+
exports.ɵbn = PillsModule;
|
|
12284
|
+
exports.ɵbo = PillsComponent;
|
|
12285
|
+
exports.ɵbp = UserContentRatingLibComponent;
|
|
12286
|
+
exports.ɵbq = ScrollableItemDirective;
|
|
12287
|
+
exports.ɵbr = RatingService;
|
|
12288
|
+
exports.ɵbs = UserContentRatingLibService;
|
|
12289
|
+
exports.ɵbt = AvatarPhotoLibModule;
|
|
12290
|
+
exports.ɵbu = AvatarPhotoLibComponent;
|
|
12291
|
+
exports.ɵbv = MyHammerConfig$1;
|
|
12292
|
+
exports.ɵbw = SlidersNgContentLibModule;
|
|
12293
|
+
exports.ɵbx = SlidersNgContentLibComponent;
|
|
12294
|
+
exports.ɵby = ScrollableItemModule;
|
|
11845
12295
|
exports.ɵc = MultilingualTranslationsService;
|
|
11846
12296
|
exports.ɵd = ConfigurationsService;
|
|
11847
12297
|
exports.ɵe = HorizontalScrollerV2Module;
|