@sunbird-cb/consumption 0.0.34 → 0.0.36
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 +318 -49
- 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/cards/card-portrait-ext/card-portrait-ext.component.js +167 -0
- package/esm2015/lib/_common/cards/card-wide/card-wide.component.js +3 -3
- package/esm2015/lib/_common/cards/cards.component.js +25 -8
- package/esm2015/lib/_common/cards/cards.module.js +4 -2
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +98 -18
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +1 -1
- package/esm2015/sunbird-cb-consumption.js +23 -22
- package/esm5/lib/_common/cards/card-portrait-ext/card-portrait-ext.component.js +173 -0
- package/esm5/lib/_common/cards/card-wide/card-wide.component.js +3 -3
- package/esm5/lib/_common/cards/cards.component.js +19 -8
- package/esm5/lib/_common/cards/cards.module.js +4 -2
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +109 -19
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +1 -1
- package/esm5/sunbird-cb-consumption.js +23 -22
- package/fesm2015/sunbird-cb-consumption.js +286 -27
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +296 -28
- package/fesm5/sunbird-cb-consumption.js.map +1 -1
- package/lib/_common/cards/card-portrait-ext/card-portrait-ext.component.d.ts +33 -0
- package/lib/_common/cards/cards.component.d.ts +1 -2
- package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.d.ts +1 -0
- package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.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
|
@@ -3706,6 +3706,7 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
|
|
|
3706
3706
|
this.fetchAllBookMarkData(strip, calculateParentStatus);
|
|
3707
3707
|
this.fetchAllPlaylistSearch(strip, calculateParentStatus);
|
|
3708
3708
|
this.fetchPlaylistReadData(strip, calculateParentStatus);
|
|
3709
|
+
this.fetchCiosContentData(strip, calculateParentStatus);
|
|
3709
3710
|
// this.enrollInterval = setInterval(() => {
|
|
3710
3711
|
// this.fetchAllCbpPlans(strip, calculateParentStatus)
|
|
3711
3712
|
// }, 1000)
|
|
@@ -4346,7 +4347,8 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
|
|
|
4346
4347
|
(strip.request.featureContent && Object.keys(strip.request.featureContent).length) ||
|
|
4347
4348
|
(strip.request.bookmarkRead && Object.keys(strip.request.bookmarkRead).length) ||
|
|
4348
4349
|
(strip.request.playlistSearch && Object.keys(strip.request.playlistSearch).length) ||
|
|
4349
|
-
(strip.request.playlistRead && Object.keys(strip.request.playlistRead).length)
|
|
4350
|
+
(strip.request.playlistRead && Object.keys(strip.request.playlistRead).length) ||
|
|
4351
|
+
(strip.request.ciosContent && Object.keys(strip.request.ciosContent).length))) {
|
|
4350
4352
|
return true;
|
|
4351
4353
|
}
|
|
4352
4354
|
return false;
|
|
@@ -4855,8 +4857,6 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
|
|
|
4855
4857
|
*/
|
|
4856
4858
|
postRequestMethod(strip, request, apiUrl, calculateParentStatus) {
|
|
4857
4859
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4858
|
-
/** @type {?} */
|
|
4859
|
-
const originalFilters = [];
|
|
4860
4860
|
return new Promise((/**
|
|
4861
4861
|
* @param {?} resolve
|
|
4862
4862
|
* @param {?} reject
|
|
@@ -4869,25 +4869,37 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
|
|
|
4869
4869
|
* @return {?}
|
|
4870
4870
|
*/
|
|
4871
4871
|
results => {
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4872
|
+
if (results.result && results.result.content) {
|
|
4873
|
+
/** @type {?} */
|
|
4874
|
+
const showViewMore = Boolean(results.result.content && results.result.content.length > 5 && strip.stripConfig && strip.stripConfig.postCardForSearch);
|
|
4875
|
+
/** @type {?} */
|
|
4876
|
+
const viewMoreUrl = showViewMore
|
|
4877
|
+
? {
|
|
4878
|
+
path: strip.viewMoreUrl && strip.viewMoreUrl.path || '',
|
|
4879
|
+
queryParams: {
|
|
4880
|
+
tab: 'Learn',
|
|
4881
|
+
q: strip.viewMoreUrl && strip.viewMoreUrl.queryParams,
|
|
4882
|
+
f: {},
|
|
4883
|
+
},
|
|
4884
|
+
}
|
|
4885
|
+
: null;
|
|
4886
|
+
resolve({ results, viewMoreUrl });
|
|
4887
|
+
}
|
|
4888
|
+
else if (results && results.data) {
|
|
4889
|
+
/** @type {?} */
|
|
4890
|
+
const showViewMore = Boolean(results.data && results.data.length > 5 && strip.stripConfig && strip.stripConfig.postCardForSearch);
|
|
4891
|
+
/** @type {?} */
|
|
4892
|
+
const viewMoreUrl = showViewMore ? {
|
|
4877
4893
|
path: strip.viewMoreUrl && strip.viewMoreUrl.path || '',
|
|
4878
4894
|
queryParams: {
|
|
4879
4895
|
tab: 'Learn',
|
|
4880
4896
|
q: strip.viewMoreUrl && strip.viewMoreUrl.queryParams,
|
|
4881
|
-
f:
|
|
4882
|
-
request.searchV6 &&
|
|
4883
|
-
request.searchV6.request &&
|
|
4884
|
-
request.searchV6.request.filters
|
|
4885
|
-
? JSON.stringify(this.transformSearchV6FiltersV2(originalFilters))
|
|
4886
|
-
: {},
|
|
4897
|
+
f: {},
|
|
4887
4898
|
},
|
|
4888
4899
|
}
|
|
4889
|
-
|
|
4890
|
-
|
|
4900
|
+
: null;
|
|
4901
|
+
resolve({ results, viewMoreUrl });
|
|
4902
|
+
}
|
|
4891
4903
|
}), (/**
|
|
4892
4904
|
* @param {?} error
|
|
4893
4905
|
* @return {?}
|
|
@@ -5072,7 +5084,25 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
|
|
|
5072
5084
|
if (response && response.results) {
|
|
5073
5085
|
// console.log('calling after-- ')
|
|
5074
5086
|
if (response.results.result.data && response.results.result.data.length) {
|
|
5075
|
-
|
|
5087
|
+
/** @type {?} */
|
|
5088
|
+
let finalPlaylistData = [];
|
|
5089
|
+
/** @type {?} */
|
|
5090
|
+
let programData = response.results.result.data;
|
|
5091
|
+
programData.forEach((/**
|
|
5092
|
+
* @param {?} prgData
|
|
5093
|
+
* @return {?}
|
|
5094
|
+
*/
|
|
5095
|
+
(prgData) => {
|
|
5096
|
+
if (prgData.children && prgData.children.length) {
|
|
5097
|
+
finalPlaylistData.push(prgData);
|
|
5098
|
+
}
|
|
5099
|
+
}));
|
|
5100
|
+
if (finalPlaylistData.length) {
|
|
5101
|
+
this.processStrip(strip, this.transformContentsToWidgets(finalPlaylistData, strip), 'done', calculateParentStatus, response.viewMoreUrl);
|
|
5102
|
+
}
|
|
5103
|
+
else {
|
|
5104
|
+
this.emptyResponse.emit(true);
|
|
5105
|
+
}
|
|
5076
5106
|
}
|
|
5077
5107
|
else {
|
|
5078
5108
|
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
@@ -5129,6 +5159,56 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
|
|
|
5129
5159
|
}
|
|
5130
5160
|
});
|
|
5131
5161
|
}
|
|
5162
|
+
/**
|
|
5163
|
+
* @param {?} strip
|
|
5164
|
+
* @param {?=} calculateParentStatus
|
|
5165
|
+
* @return {?}
|
|
5166
|
+
*/
|
|
5167
|
+
fetchCiosContentData(strip, calculateParentStatus = true) {
|
|
5168
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5169
|
+
if (strip.request && strip.request.ciosContent && Object.keys(strip.request.ciosContent).length) {
|
|
5170
|
+
/** @type {?} */
|
|
5171
|
+
let originalFilters = [];
|
|
5172
|
+
if (strip.request &&
|
|
5173
|
+
strip.request.ciosContent &&
|
|
5174
|
+
strip.request.ciosContent.filterCriteriaMap) {
|
|
5175
|
+
originalFilters = strip.request.ciosContent.filterCriteriaMap;
|
|
5176
|
+
strip.request.ciosContent.filterCriteriaMap = this.postMethodFilters(strip.request.ciosContent.filterCriteriaMap);
|
|
5177
|
+
}
|
|
5178
|
+
try {
|
|
5179
|
+
/** @type {?} */
|
|
5180
|
+
const response = yield this.postRequestMethod(strip, strip.request.ciosContent, strip.request.apiUrl, calculateParentStatus);
|
|
5181
|
+
// console.log('calling after - response, ', response)
|
|
5182
|
+
if (response && response.results) {
|
|
5183
|
+
// console.log('calling after-- ')
|
|
5184
|
+
if (response.results.data && response.results.data.length) {
|
|
5185
|
+
/** @type {?} */
|
|
5186
|
+
let extContentData = response.results.data;
|
|
5187
|
+
if (extContentData.length) {
|
|
5188
|
+
this.processStrip(strip, this.transformContentsToWidgets(extContentData, strip), 'done', calculateParentStatus, response.viewMoreUrl);
|
|
5189
|
+
}
|
|
5190
|
+
else {
|
|
5191
|
+
this.emptyResponse.emit(true);
|
|
5192
|
+
}
|
|
5193
|
+
}
|
|
5194
|
+
else {
|
|
5195
|
+
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
5196
|
+
this.emptyResponse.emit(true);
|
|
5197
|
+
}
|
|
5198
|
+
}
|
|
5199
|
+
else {
|
|
5200
|
+
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
5201
|
+
this.emptyResponse.emit(true);
|
|
5202
|
+
}
|
|
5203
|
+
}
|
|
5204
|
+
catch (error) {
|
|
5205
|
+
this.emptyResponse.emit(true);
|
|
5206
|
+
// Handle errors
|
|
5207
|
+
// console.error('Error:', error);
|
|
5208
|
+
}
|
|
5209
|
+
}
|
|
5210
|
+
});
|
|
5211
|
+
}
|
|
5132
5212
|
}
|
|
5133
5213
|
ContentStripWithTabsLibComponent.decorators = [
|
|
5134
5214
|
{ type: Component, args: [{
|
|
@@ -7462,10 +7542,28 @@ class CardsComponent extends WidgetBaseComponent {
|
|
|
7462
7542
|
getRedirectUrlData(content) {
|
|
7463
7543
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7464
7544
|
/** @type {?} */
|
|
7465
|
-
|
|
7466
|
-
|
|
7467
|
-
|
|
7468
|
-
|
|
7545
|
+
const userProfile = this.configSvc.userProfile;
|
|
7546
|
+
debugger;
|
|
7547
|
+
if (content.externalId) {
|
|
7548
|
+
/** @type {?} */
|
|
7549
|
+
let extUrl = content.redirectUrl.replace('<username>', userProfile.userId)
|
|
7550
|
+
// const url = this.router.serializeUrl(
|
|
7551
|
+
// this.router.createUrlTree([extUrl])
|
|
7552
|
+
// );
|
|
7553
|
+
;
|
|
7554
|
+
// const url = this.router.serializeUrl(
|
|
7555
|
+
// this.router.createUrlTree([extUrl])
|
|
7556
|
+
// );
|
|
7557
|
+
window.open(extUrl, '_blank');
|
|
7558
|
+
window.open(content.redirectUrl);
|
|
7559
|
+
}
|
|
7560
|
+
else {
|
|
7561
|
+
/** @type {?} */
|
|
7562
|
+
let urlData = yield this.contSvc.getResourseLink(content);
|
|
7563
|
+
this.router.navigate([urlData.url], {
|
|
7564
|
+
queryParams: urlData.queryParams
|
|
7565
|
+
});
|
|
7566
|
+
}
|
|
7469
7567
|
});
|
|
7470
7568
|
}
|
|
7471
7569
|
/**
|
|
@@ -7502,14 +7600,14 @@ class CardsComponent extends WidgetBaseComponent {
|
|
|
7502
7600
|
CardsComponent.decorators = [
|
|
7503
7601
|
{ type: Component, args: [{
|
|
7504
7602
|
selector: 'sb-uic-cards',
|
|
7505
|
-
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 \n [cbPlanMapData]=\"cbPlanMapData\"\n (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\" \n [cbPlanMapData]=\"cbPlanMapData\" [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 [cbPlanMapData]=\"cbPlanMapData\"\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>",
|
|
7603
|
+
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 *ngSwitchCase=\"'card-portrait-ext-lib-skeleton'\" [ngTemplateOutlet]=\"cardPortraitExtLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-ext-lib'\" [ngTemplateOutlet]=\"cardPortraitExtLib\"></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 \n [cbPlanMapData]=\"cbPlanMapData\"\n (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\" \n [cbPlanMapData]=\"cbPlanMapData\" [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 [cbPlanMapData]=\"cbPlanMapData\"\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>\n\n<!-- cios card -->\n<ng-template #cardPortraitExtLibSkeleton>\n <sb-uic-card-portrait-ext [widgetData]=\"widgetData\" [isCardLoading]=\"true\"></sb-uic-card-portrait-ext>\n</ng-template>\n<ng-template #cardPortraitExtLib>\n <sb-uic-card-portrait-ext \n [cbPlanMapData]=\"cbPlanMapData\"\n (contentData)=\"getRedirectUrlData($event)\" [widgetData]=\"widgetData\" [isCardLoading]=\"false\"></sb-uic-card-portrait-ext>\n</ng-template>",
|
|
7506
7604
|
styles: [""]
|
|
7507
7605
|
}] }
|
|
7508
7606
|
];
|
|
7509
7607
|
/** @nocollapse */
|
|
7510
7608
|
CardsComponent.ctorParameters = () => [
|
|
7511
7609
|
{ type: UtilityService },
|
|
7512
|
-
{ type: ConfigurationsService },
|
|
7610
|
+
{ type: ConfigurationsService$1 },
|
|
7513
7611
|
{ type: WidgetContentService },
|
|
7514
7612
|
{ type: Router }
|
|
7515
7613
|
];
|
|
@@ -8479,8 +8577,8 @@ class CardWideComponent {
|
|
|
8479
8577
|
CardWideComponent.decorators = [
|
|
8480
8578
|
{ type: Component, args: [{
|
|
8481
8579
|
selector: 'sb-uic-card-wide',
|
|
8482
|
-
template: "<mat-card class=\"card-wide-lib\">\n <a (click)=\"raiseTelemetry();getRedirectUrlData(widgetData?.content); $event.stopPropagation()\" \n role=\"link\" i18n-aria-label>\n <div class=\"flex\">\n <div>\n <ng-container *ngIf=\"widgetData?.content?.posterImage\">\n <img mat-card-image [src]=\"widgetData?.content?.posterImage | pipePublicURL\" loading=\"lazy\"\n class=\"card-wide-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-wide-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-wide-img ws-mat-primary-lite-background margin-remove\"\n [alt]=\"widgetData?.content?.name\" />\n </ng-template>\n </ng-container>\n </div>\n <div>\n <div class=\"pl-4 pr-4 w-full\">\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 </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\n <div class=\"flex w-full
|
|
8483
|
-
styles: [".card-wide-lib{width:inherit;padding:16px;border-radius:12px;background:#fff;border:1px solid rgba(0,0,0,.16)}.card-wide-lib .card-wide-img{width:190px;height:107px;border-radius:12px}.card-wide-lib .course_widget{margin-top:10px}.card-wide-lib .course_widget .mat-icon{vertical-align:middle;color:#ef951e!important}.card-wide-lib .course_widget .course_v2{border:1px solid #ef951e;padding:4px 8px;align-items:end;border-radius:16px}.card-wide-lib .course_widget .main_icon{font-size:16px;width:16px;height:16px}.card-wide-lib .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-wide-lib .course_logo_box img{height:28px;width:28px;padding:5px;display:inline-block}.card-wide-lib .course_logo_box p{display:inline-block;vertical-align:top}.card-wide-lib .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}@media screen and (max-width:768px){.card-wide-img{width:147px;height:117px;border-radius:12px}}"]
|
|
8580
|
+
template: "<mat-card class=\"card-wide-lib\">\n <a (click)=\"raiseTelemetry();getRedirectUrlData(widgetData?.content); $event.stopPropagation()\" \n role=\"link\" i18n-aria-label>\n <div class=\"flex\">\n <div>\n <ng-container *ngIf=\"widgetData?.content?.posterImage\">\n <img mat-card-image [src]=\"widgetData?.content?.posterImage | pipePublicURL\" loading=\"lazy\"\n class=\"card-wide-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-wide-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-wide-img ws-mat-primary-lite-background margin-remove\"\n [alt]=\"widgetData?.content?.name\" />\n </ng-template>\n </ng-container>\n </div>\n <div>\n <div class=\"pl-4 pr-4 w-full\">\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 </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\n <div class=\"flex w-full 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>\n </div>\n </div>\n </a>\n</mat-card>\n",
|
|
8581
|
+
styles: [".card-wide-lib{width:inherit;padding:16px;border-radius:12px;background:#fff;border:1px solid rgba(0,0,0,.16)}.card-wide-lib .card-wide-img{width:190px;height:107px;border-radius:12px}.card-wide-lib .course_widget{margin-top:10px}.card-wide-lib .course_widget .mat-icon{vertical-align:middle;color:#ef951e!important}.card-wide-lib .course_widget .course_v2{border:1px solid #ef951e;padding:4px 8px;align-items:end;border-radius:16px}.card-wide-lib .course_widget .main_icon{font-size:16px;width:16px;height:16px}.card-wide-lib .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-wide-lib .course_logo_box img{height:28px;width:28px;padding:5px;display:inline-block}.card-wide-lib .course_logo_box p{display:inline-block;vertical-align:top}.card-wide-lib .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}@media screen and (max-width:768px){.card-wide-img{width:147px!important;height:117px!important;border-radius:12px!important}}"]
|
|
8484
8582
|
}] }
|
|
8485
8583
|
];
|
|
8486
8584
|
/** @nocollapse */
|
|
@@ -9194,6 +9292,166 @@ if (false) {
|
|
|
9194
9292
|
CardKarmaProgramsV2Component.prototype.router;
|
|
9195
9293
|
}
|
|
9196
9294
|
|
|
9295
|
+
/**
|
|
9296
|
+
* @fileoverview added by tsickle
|
|
9297
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9298
|
+
*/
|
|
9299
|
+
class CardPortraitExtComponent {
|
|
9300
|
+
/**
|
|
9301
|
+
* @param {?} snackBar
|
|
9302
|
+
* @param {?} translate
|
|
9303
|
+
* @param {?} langtranslations
|
|
9304
|
+
* @param {?} configSvc
|
|
9305
|
+
* @param {?} contSvc
|
|
9306
|
+
*/
|
|
9307
|
+
constructor(snackBar, translate, langtranslations, configSvc, contSvc) {
|
|
9308
|
+
this.snackBar = snackBar;
|
|
9309
|
+
this.translate = translate;
|
|
9310
|
+
this.langtranslations = langtranslations;
|
|
9311
|
+
this.configSvc = configSvc;
|
|
9312
|
+
this.contSvc = contSvc;
|
|
9313
|
+
this.isCardLoading = false;
|
|
9314
|
+
this.contentData = new EventEmitter();
|
|
9315
|
+
this.isCardFlipped = false;
|
|
9316
|
+
this.acbpConstants = NsCardContent$1.ACBPConst;
|
|
9317
|
+
this.showFlip = false;
|
|
9318
|
+
this.widgetType = 'df';
|
|
9319
|
+
this.widgetSubType = 'sdf';
|
|
9320
|
+
this.langtranslations.languageSelectedObservable.subscribe((/**
|
|
9321
|
+
* @return {?}
|
|
9322
|
+
*/
|
|
9323
|
+
() => {
|
|
9324
|
+
if (localStorage.getItem('websiteLanguage')) {
|
|
9325
|
+
this.translate.setDefaultLang('en');
|
|
9326
|
+
/** @type {?} */
|
|
9327
|
+
const lang = (/** @type {?} */ (localStorage.getItem('websiteLanguage')));
|
|
9328
|
+
this.translate.use(lang);
|
|
9329
|
+
}
|
|
9330
|
+
}));
|
|
9331
|
+
}
|
|
9332
|
+
/**
|
|
9333
|
+
* @return {?}
|
|
9334
|
+
*/
|
|
9335
|
+
ngOnInit() {
|
|
9336
|
+
/** @type {?} */
|
|
9337
|
+
const instanceConfig = this.configSvc.instanceConfig;
|
|
9338
|
+
if (instanceConfig) {
|
|
9339
|
+
this.defaultThumbnail = instanceConfig.logos.defaultContent || '';
|
|
9340
|
+
this.sourceLogos = instanceConfig.sources;
|
|
9341
|
+
this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '';
|
|
9342
|
+
}
|
|
9343
|
+
else {
|
|
9344
|
+
this.defaultThumbnail = '/assets/instances/eagle/app_logos/default.png';
|
|
9345
|
+
this.defaultSLogo = '/assets/instances/eagle/app_logos/KarmayogiBharat_Logo.svg';
|
|
9346
|
+
}
|
|
9347
|
+
}
|
|
9348
|
+
/**
|
|
9349
|
+
* @return {?}
|
|
9350
|
+
*/
|
|
9351
|
+
showSnackbar() {
|
|
9352
|
+
if (this.showIntranetContent) {
|
|
9353
|
+
this.snackBar.open('Content is only available in intranet', 'X', { duration: 2000 });
|
|
9354
|
+
}
|
|
9355
|
+
else if (!this.isLiveOrMarkForDeletion) {
|
|
9356
|
+
this.snackBar.open('Content may be expired or deleted', 'X', { duration: 2000 });
|
|
9357
|
+
}
|
|
9358
|
+
}
|
|
9359
|
+
/**
|
|
9360
|
+
* @param {?} contentData
|
|
9361
|
+
* @return {?}
|
|
9362
|
+
*/
|
|
9363
|
+
getRedirectUrlData(contentData) {
|
|
9364
|
+
// for telemetry
|
|
9365
|
+
if (this.widgetData && this.widgetData.context && this.widgetData.context.pageSection) {
|
|
9366
|
+
contentData['typeOfTelemetry'] = this.widgetData.context.pageSection;
|
|
9367
|
+
}
|
|
9368
|
+
this.contSvc.changeTelemetryData(contentData);
|
|
9369
|
+
// for redirection
|
|
9370
|
+
this.contentData.emit(contentData);
|
|
9371
|
+
}
|
|
9372
|
+
}
|
|
9373
|
+
CardPortraitExtComponent.decorators = [
|
|
9374
|
+
{ type: Component, args: [{
|
|
9375
|
+
selector: 'sb-uic-card-portrait-ext',
|
|
9376
|
+
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 \" 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?.contentId)\" />\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=\"cbPlanMapData && cbPlanMapData[widgetData?.content?.contentId]\">\n <ng-container [ngTemplateOutlet]=\"cbpPlan\" [ngTemplateOutletContext]=\"{data: {\n cbpData: cbPlanMapData[widgetData?.content?.contentId]\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 [useTranslation]=\"false\" i18n-title title=\"Content Type\" *ngIf=\"widgetData.content?.topic\"\n class=\"ws-mat-black60-text font-normal mat-caption \" [displayContentType]=\"widgetData?.content?.primaryCategory==='Course Unit'\n ?'Module'\n :widgetData?.content?.primaryCategory? widgetData?.content?.primaryCategory : 'Course'\">\n \n </sb-uic-display-content-type>\n </div>\n </div>\n <div [id]=\"'m-c-'+ widgetData.content?.contentId\"\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.contentId)\" />\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>\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>",
|
|
9377
|
+
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}.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}"]
|
|
9378
|
+
}] }
|
|
9379
|
+
];
|
|
9380
|
+
/** @nocollapse */
|
|
9381
|
+
CardPortraitExtComponent.ctorParameters = () => [
|
|
9382
|
+
{ type: MatSnackBar },
|
|
9383
|
+
{ type: TranslateService },
|
|
9384
|
+
{ type: MultilingualTranslationsService },
|
|
9385
|
+
{ type: ConfigurationsService$1 },
|
|
9386
|
+
{ type: WidgetContentService }
|
|
9387
|
+
];
|
|
9388
|
+
CardPortraitExtComponent.propDecorators = {
|
|
9389
|
+
widgetData: [{ type: Input }],
|
|
9390
|
+
isLiveOrMarkForDeletion: [{ type: Input }],
|
|
9391
|
+
showIntranetContent: [{ type: Input }],
|
|
9392
|
+
isIntranetAllowedSettings: [{ type: Input }],
|
|
9393
|
+
isCardLoading: [{ type: Input }],
|
|
9394
|
+
contentData: [{ type: Output }],
|
|
9395
|
+
cbPlanMapData: [{ type: Input }]
|
|
9396
|
+
};
|
|
9397
|
+
if (false) {
|
|
9398
|
+
/** @type {?} */
|
|
9399
|
+
CardPortraitExtComponent.prototype.widgetData;
|
|
9400
|
+
/** @type {?} */
|
|
9401
|
+
CardPortraitExtComponent.prototype.isLiveOrMarkForDeletion;
|
|
9402
|
+
/** @type {?} */
|
|
9403
|
+
CardPortraitExtComponent.prototype.showIntranetContent;
|
|
9404
|
+
/** @type {?} */
|
|
9405
|
+
CardPortraitExtComponent.prototype.isIntranetAllowedSettings;
|
|
9406
|
+
/** @type {?} */
|
|
9407
|
+
CardPortraitExtComponent.prototype.isCardLoading;
|
|
9408
|
+
/** @type {?} */
|
|
9409
|
+
CardPortraitExtComponent.prototype.contentData;
|
|
9410
|
+
/** @type {?} */
|
|
9411
|
+
CardPortraitExtComponent.prototype.cbPlanMapData;
|
|
9412
|
+
/** @type {?} */
|
|
9413
|
+
CardPortraitExtComponent.prototype.isCardFlipped;
|
|
9414
|
+
/** @type {?} */
|
|
9415
|
+
CardPortraitExtComponent.prototype.acbpConstants;
|
|
9416
|
+
/** @type {?} */
|
|
9417
|
+
CardPortraitExtComponent.prototype.defaultThumbnail;
|
|
9418
|
+
/** @type {?} */
|
|
9419
|
+
CardPortraitExtComponent.prototype.sourceLogos;
|
|
9420
|
+
/** @type {?} */
|
|
9421
|
+
CardPortraitExtComponent.prototype.defaultSLogo;
|
|
9422
|
+
/** @type {?} */
|
|
9423
|
+
CardPortraitExtComponent.prototype.showFlip;
|
|
9424
|
+
/** @type {?} */
|
|
9425
|
+
CardPortraitExtComponent.prototype.widgetType;
|
|
9426
|
+
/** @type {?} */
|
|
9427
|
+
CardPortraitExtComponent.prototype.widgetSubType;
|
|
9428
|
+
/**
|
|
9429
|
+
* @type {?}
|
|
9430
|
+
* @private
|
|
9431
|
+
*/
|
|
9432
|
+
CardPortraitExtComponent.prototype.snackBar;
|
|
9433
|
+
/**
|
|
9434
|
+
* @type {?}
|
|
9435
|
+
* @private
|
|
9436
|
+
*/
|
|
9437
|
+
CardPortraitExtComponent.prototype.translate;
|
|
9438
|
+
/**
|
|
9439
|
+
* @type {?}
|
|
9440
|
+
* @private
|
|
9441
|
+
*/
|
|
9442
|
+
CardPortraitExtComponent.prototype.langtranslations;
|
|
9443
|
+
/**
|
|
9444
|
+
* @type {?}
|
|
9445
|
+
* @private
|
|
9446
|
+
*/
|
|
9447
|
+
CardPortraitExtComponent.prototype.configSvc;
|
|
9448
|
+
/**
|
|
9449
|
+
* @type {?}
|
|
9450
|
+
* @private
|
|
9451
|
+
*/
|
|
9452
|
+
CardPortraitExtComponent.prototype.contSvc;
|
|
9453
|
+
}
|
|
9454
|
+
|
|
9197
9455
|
/**
|
|
9198
9456
|
* @fileoverview added by tsickle
|
|
9199
9457
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -9211,7 +9469,8 @@ CardsModule.decorators = [
|
|
|
9211
9469
|
CardMDOChannelComponent,
|
|
9212
9470
|
CardWideV2Component,
|
|
9213
9471
|
CardKarmaProgramsComponent,
|
|
9214
|
-
CardKarmaProgramsV2Component
|
|
9472
|
+
CardKarmaProgramsV2Component,
|
|
9473
|
+
CardPortraitExtComponent
|
|
9215
9474
|
],
|
|
9216
9475
|
imports: [
|
|
9217
9476
|
CommonModule,
|
|
@@ -10647,5 +10906,5 @@ UserContentRatingLibModule.decorators = [
|
|
|
10647
10906
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
10648
10907
|
*/
|
|
10649
10908
|
|
|
10650
|
-
export { AnnouncementsModule, CalenderModule, CardsModule, CommonMethodsService, CommonStripModule, CompetencyPassbookModule, ConsumptionComponent, ConsumptionModule, ConsumptionService, ContentStripWithTabsLibModule, DataPointsModule, HttpLoaderFactory, MyHammerConfig, ROOT_WIDGET_CONFIG, SlidersLibModule, UserContentRatingLibModule, WIDGET_REGISTERED_LIB_MODULES, WIDGET_REGISTRATION_LIB_CONFIG, WidgetContentService, ContentStripWithTabsLibComponent as ɵa, WidgetUserService as ɵb, CardWideV2Component as ɵba, CardKarmaProgramsComponent as ɵbb, CardKarmaProgramsV2Component as ɵbc,
|
|
10909
|
+
export { AnnouncementsModule, CalenderModule, CardsModule, CommonMethodsService, CommonStripModule, CompetencyPassbookModule, ConsumptionComponent, ConsumptionModule, ConsumptionService, ContentStripWithTabsLibModule, DataPointsModule, HttpLoaderFactory, MyHammerConfig, ROOT_WIDGET_CONFIG, SlidersLibModule, UserContentRatingLibModule, WIDGET_REGISTERED_LIB_MODULES, WIDGET_REGISTRATION_LIB_CONFIG, WidgetContentService, ContentStripWithTabsLibComponent as ɵa, WidgetUserService as ɵb, CardWideV2Component as ɵba, CardKarmaProgramsComponent as ɵbb, CardKarmaProgramsV2Component as ɵbc, CardPortraitExtComponent as ɵbd, PipePublicURLModule as ɵbe, PipePublicURL as ɵbf, DisplayContentTypeLibModule as ɵbg, DisplayContentTypeLibComponent as ɵbh, DefaultThumbnailModule as ɵbi, DefaultThumbnailDirective as ɵbj, PipeDurationTransformModule as ɵbk, PipeDurationTransformPipe as ɵbl, CompetencyPassbookComponent as ɵbm, CompetencyPassbookService as ɵbn, PillsModule as ɵbo, PillsComponent as ɵbp, UserContentRatingLibComponent as ɵbq, ScrollableItemDirective as ɵbr, RatingService as ɵbs, UserContentRatingLibService as ɵbt, AvatarPhotoLibModule as ɵbu, AvatarPhotoLibComponent as ɵbv, MyHammerConfig$1 as ɵbw, SlidersNgContentLibModule as ɵbx, SlidersNgContentLibComponent as ɵby, ScrollableItemModule as ɵbz, MultilingualTranslationsService as ɵc, ConfigurationsService as ɵd, HorizontalScrollerV2Module as ɵe, HorizontalScrollerV2Component as ɵf, SlidersLibComponent as ɵg, NavigationModule as ɵh, NavigationDirective as ɵi, ImageResponsiveModule as ɵj, ImageResponsiveDirective as ɵk, DataPointsComponent as ɵl, InsiteDataService as ɵm, SkeletonLoaderLibModule as ɵn, SkeletonLoaderLibComponent as ɵo, CalenderComponent as ɵp, CalenderDayComponent as ɵq, CommonStripComponent as ɵr, AnnouncementsComponent as ɵs, CardResourceComponent as ɵt, CardsComponent as ɵu, CardPortraitComponent as ɵv, CardUserComponent as ɵw, CardLandscapeComponent as ɵx, CardWideComponent as ɵy, CardMDOChannelComponent as ɵz };
|
|
10651
10910
|
//# sourceMappingURL=sunbird-cb-consumption.js.map
|