@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
|
@@ -4391,6 +4391,7 @@
|
|
|
4391
4391
|
this.fetchAllBookMarkData(strip, calculateParentStatus);
|
|
4392
4392
|
this.fetchAllPlaylistSearch(strip, calculateParentStatus);
|
|
4393
4393
|
this.fetchPlaylistReadData(strip, calculateParentStatus);
|
|
4394
|
+
this.fetchCiosContentData(strip, calculateParentStatus);
|
|
4394
4395
|
// this.enrollInterval = setInterval(() => {
|
|
4395
4396
|
// this.fetchAllCbpPlans(strip, calculateParentStatus)
|
|
4396
4397
|
// }, 1000)
|
|
@@ -5127,7 +5128,8 @@
|
|
|
5127
5128
|
(strip.request.featureContent && Object.keys(strip.request.featureContent).length) ||
|
|
5128
5129
|
(strip.request.bookmarkRead && Object.keys(strip.request.bookmarkRead).length) ||
|
|
5129
5130
|
(strip.request.playlistSearch && Object.keys(strip.request.playlistSearch).length) ||
|
|
5130
|
-
(strip.request.playlistRead && Object.keys(strip.request.playlistRead).length)
|
|
5131
|
+
(strip.request.playlistRead && Object.keys(strip.request.playlistRead).length) ||
|
|
5132
|
+
(strip.request.ciosContent && Object.keys(strip.request.ciosContent).length))) {
|
|
5131
5133
|
return true;
|
|
5132
5134
|
}
|
|
5133
5135
|
return false;
|
|
@@ -5755,10 +5757,8 @@
|
|
|
5755
5757
|
*/
|
|
5756
5758
|
function (strip, request, apiUrl, calculateParentStatus) {
|
|
5757
5759
|
return __awaiter(this, void 0, void 0, function () {
|
|
5758
|
-
var originalFilters;
|
|
5759
5760
|
var _this = this;
|
|
5760
5761
|
return __generator(this, function (_a) {
|
|
5761
|
-
originalFilters = [];
|
|
5762
5762
|
return [2 /*return*/, new Promise((/**
|
|
5763
5763
|
* @param {?} resolve
|
|
5764
5764
|
* @param {?} reject
|
|
@@ -5771,25 +5771,37 @@
|
|
|
5771
5771
|
* @return {?}
|
|
5772
5772
|
*/
|
|
5773
5773
|
function (results) {
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5774
|
+
if (results.result && results.result.content) {
|
|
5775
|
+
/** @type {?} */
|
|
5776
|
+
var showViewMore = Boolean(results.result.content && results.result.content.length > 5 && strip.stripConfig && strip.stripConfig.postCardForSearch);
|
|
5777
|
+
/** @type {?} */
|
|
5778
|
+
var viewMoreUrl = showViewMore
|
|
5779
|
+
? {
|
|
5780
|
+
path: strip.viewMoreUrl && strip.viewMoreUrl.path || '',
|
|
5781
|
+
queryParams: {
|
|
5782
|
+
tab: 'Learn',
|
|
5783
|
+
q: strip.viewMoreUrl && strip.viewMoreUrl.queryParams,
|
|
5784
|
+
f: {},
|
|
5785
|
+
},
|
|
5786
|
+
}
|
|
5787
|
+
: null;
|
|
5788
|
+
resolve({ results: results, viewMoreUrl: viewMoreUrl });
|
|
5789
|
+
}
|
|
5790
|
+
else if (results && results.data) {
|
|
5791
|
+
/** @type {?} */
|
|
5792
|
+
var showViewMore = Boolean(results.data && results.data.length > 5 && strip.stripConfig && strip.stripConfig.postCardForSearch);
|
|
5793
|
+
/** @type {?} */
|
|
5794
|
+
var viewMoreUrl = showViewMore ? {
|
|
5779
5795
|
path: strip.viewMoreUrl && strip.viewMoreUrl.path || '',
|
|
5780
5796
|
queryParams: {
|
|
5781
5797
|
tab: 'Learn',
|
|
5782
5798
|
q: strip.viewMoreUrl && strip.viewMoreUrl.queryParams,
|
|
5783
|
-
f:
|
|
5784
|
-
request.searchV6 &&
|
|
5785
|
-
request.searchV6.request &&
|
|
5786
|
-
request.searchV6.request.filters
|
|
5787
|
-
? JSON.stringify(_this.transformSearchV6FiltersV2(originalFilters))
|
|
5788
|
-
: {},
|
|
5799
|
+
f: {},
|
|
5789
5800
|
},
|
|
5790
5801
|
}
|
|
5791
|
-
|
|
5792
|
-
|
|
5802
|
+
: null;
|
|
5803
|
+
resolve({ results: results, viewMoreUrl: viewMoreUrl });
|
|
5804
|
+
}
|
|
5793
5805
|
}), (/**
|
|
5794
5806
|
* @param {?} error
|
|
5795
5807
|
* @return {?}
|
|
@@ -6007,7 +6019,7 @@
|
|
|
6007
6019
|
function (strip, calculateParentStatus) {
|
|
6008
6020
|
if (calculateParentStatus === void 0) { calculateParentStatus = true; }
|
|
6009
6021
|
return __awaiter(this, void 0, void 0, function () {
|
|
6010
|
-
var originalFilters, response, error_8;
|
|
6022
|
+
var originalFilters, response, finalPlaylistData_1, programData, error_8;
|
|
6011
6023
|
return __generator(this, function (_a) {
|
|
6012
6024
|
switch (_a.label) {
|
|
6013
6025
|
case 0:
|
|
@@ -6030,7 +6042,23 @@
|
|
|
6030
6042
|
if (response && response.results) {
|
|
6031
6043
|
// console.log('calling after-- ')
|
|
6032
6044
|
if (response.results.result.data && response.results.result.data.length) {
|
|
6033
|
-
|
|
6045
|
+
finalPlaylistData_1 = [];
|
|
6046
|
+
programData = response.results.result.data;
|
|
6047
|
+
programData.forEach((/**
|
|
6048
|
+
* @param {?} prgData
|
|
6049
|
+
* @return {?}
|
|
6050
|
+
*/
|
|
6051
|
+
function (prgData) {
|
|
6052
|
+
if (prgData.children && prgData.children.length) {
|
|
6053
|
+
finalPlaylistData_1.push(prgData);
|
|
6054
|
+
}
|
|
6055
|
+
}));
|
|
6056
|
+
if (finalPlaylistData_1.length) {
|
|
6057
|
+
this.processStrip(strip, this.transformContentsToWidgets(finalPlaylistData_1, strip), 'done', calculateParentStatus, response.viewMoreUrl);
|
|
6058
|
+
}
|
|
6059
|
+
else {
|
|
6060
|
+
this.emptyResponse.emit(true);
|
|
6061
|
+
}
|
|
6034
6062
|
}
|
|
6035
6063
|
else {
|
|
6036
6064
|
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
@@ -6100,6 +6128,68 @@
|
|
|
6100
6128
|
});
|
|
6101
6129
|
});
|
|
6102
6130
|
};
|
|
6131
|
+
/**
|
|
6132
|
+
* @param {?} strip
|
|
6133
|
+
* @param {?=} calculateParentStatus
|
|
6134
|
+
* @return {?}
|
|
6135
|
+
*/
|
|
6136
|
+
ContentStripWithTabsLibComponent.prototype.fetchCiosContentData = /**
|
|
6137
|
+
* @param {?} strip
|
|
6138
|
+
* @param {?=} calculateParentStatus
|
|
6139
|
+
* @return {?}
|
|
6140
|
+
*/
|
|
6141
|
+
function (strip, calculateParentStatus) {
|
|
6142
|
+
if (calculateParentStatus === void 0) { calculateParentStatus = true; }
|
|
6143
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6144
|
+
var originalFilters, response, extContentData, error_10;
|
|
6145
|
+
return __generator(this, function (_a) {
|
|
6146
|
+
switch (_a.label) {
|
|
6147
|
+
case 0:
|
|
6148
|
+
if (!(strip.request && strip.request.ciosContent && Object.keys(strip.request.ciosContent).length)) return [3 /*break*/, 4];
|
|
6149
|
+
originalFilters = [];
|
|
6150
|
+
if (strip.request &&
|
|
6151
|
+
strip.request.ciosContent &&
|
|
6152
|
+
strip.request.ciosContent.filterCriteriaMap) {
|
|
6153
|
+
originalFilters = strip.request.ciosContent.filterCriteriaMap;
|
|
6154
|
+
strip.request.ciosContent.filterCriteriaMap = this.postMethodFilters(strip.request.ciosContent.filterCriteriaMap);
|
|
6155
|
+
}
|
|
6156
|
+
_a.label = 1;
|
|
6157
|
+
case 1:
|
|
6158
|
+
_a.trys.push([1, 3, , 4]);
|
|
6159
|
+
return [4 /*yield*/, this.postRequestMethod(strip, strip.request.ciosContent, strip.request.apiUrl, calculateParentStatus)];
|
|
6160
|
+
case 2:
|
|
6161
|
+
response = _a.sent();
|
|
6162
|
+
// console.log('calling after - response, ', response)
|
|
6163
|
+
if (response && response.results) {
|
|
6164
|
+
// console.log('calling after-- ')
|
|
6165
|
+
if (response.results.data && response.results.data.length) {
|
|
6166
|
+
extContentData = response.results.data;
|
|
6167
|
+
if (extContentData.length) {
|
|
6168
|
+
this.processStrip(strip, this.transformContentsToWidgets(extContentData, strip), 'done', calculateParentStatus, response.viewMoreUrl);
|
|
6169
|
+
}
|
|
6170
|
+
else {
|
|
6171
|
+
this.emptyResponse.emit(true);
|
|
6172
|
+
}
|
|
6173
|
+
}
|
|
6174
|
+
else {
|
|
6175
|
+
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
6176
|
+
this.emptyResponse.emit(true);
|
|
6177
|
+
}
|
|
6178
|
+
}
|
|
6179
|
+
else {
|
|
6180
|
+
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
6181
|
+
this.emptyResponse.emit(true);
|
|
6182
|
+
}
|
|
6183
|
+
return [3 /*break*/, 4];
|
|
6184
|
+
case 3:
|
|
6185
|
+
error_10 = _a.sent();
|
|
6186
|
+
this.emptyResponse.emit(true);
|
|
6187
|
+
return [3 /*break*/, 4];
|
|
6188
|
+
case 4: return [2 /*return*/];
|
|
6189
|
+
}
|
|
6190
|
+
});
|
|
6191
|
+
});
|
|
6192
|
+
};
|
|
6103
6193
|
ContentStripWithTabsLibComponent.decorators = [
|
|
6104
6194
|
{ type: core.Component, args: [{
|
|
6105
6195
|
selector: 'sb-uic-content-strip-with-tabs',
|
|
@@ -8730,16 +8820,28 @@
|
|
|
8730
8820
|
*/
|
|
8731
8821
|
function (content) {
|
|
8732
8822
|
return __awaiter(this, void 0, void 0, function () {
|
|
8733
|
-
var urlData;
|
|
8823
|
+
var userProfile, extUrl, urlData;
|
|
8734
8824
|
return __generator(this, function (_a) {
|
|
8735
8825
|
switch (_a.label) {
|
|
8736
|
-
case 0:
|
|
8737
|
-
|
|
8826
|
+
case 0:
|
|
8827
|
+
userProfile = this.configSvc.userProfile;
|
|
8828
|
+
debugger;
|
|
8829
|
+
if (!content.externalId) return [3 /*break*/, 1];
|
|
8830
|
+
extUrl = content.redirectUrl.replace('<username>', userProfile.userId);
|
|
8831
|
+
// const url = this.router.serializeUrl(
|
|
8832
|
+
// this.router.createUrlTree([extUrl])
|
|
8833
|
+
// );
|
|
8834
|
+
window.open(extUrl, '_blank');
|
|
8835
|
+
window.open(content.redirectUrl);
|
|
8836
|
+
return [3 /*break*/, 3];
|
|
8837
|
+
case 1: return [4 /*yield*/, this.contSvc.getResourseLink(content)];
|
|
8838
|
+
case 2:
|
|
8738
8839
|
urlData = _a.sent();
|
|
8739
8840
|
this.router.navigate([urlData.url], {
|
|
8740
8841
|
queryParams: urlData.queryParams
|
|
8741
8842
|
});
|
|
8742
|
-
|
|
8843
|
+
_a.label = 3;
|
|
8844
|
+
case 3: return [2 /*return*/];
|
|
8743
8845
|
}
|
|
8744
8846
|
});
|
|
8745
8847
|
});
|
|
@@ -8784,14 +8886,14 @@
|
|
|
8784
8886
|
CardsComponent.decorators = [
|
|
8785
8887
|
{ type: core.Component, args: [{
|
|
8786
8888
|
selector: 'sb-uic-cards',
|
|
8787
|
-
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>",
|
|
8889
|
+
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>",
|
|
8788
8890
|
styles: [""]
|
|
8789
8891
|
}] }
|
|
8790
8892
|
];
|
|
8791
8893
|
/** @nocollapse */
|
|
8792
8894
|
CardsComponent.ctorParameters = function () { return [
|
|
8793
8895
|
{ type: utilsV2.UtilityService },
|
|
8794
|
-
{ type: ConfigurationsService },
|
|
8896
|
+
{ type: utilsV2.ConfigurationsService },
|
|
8795
8897
|
{ type: WidgetContentService },
|
|
8796
8898
|
{ type: router.Router }
|
|
8797
8899
|
]; };
|
|
@@ -9843,8 +9945,8 @@
|
|
|
9843
9945
|
CardWideComponent.decorators = [
|
|
9844
9946
|
{ type: core.Component, args: [{
|
|
9845
9947
|
selector: 'sb-uic-card-wide',
|
|
9846
|
-
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
|
|
9847
|
-
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}}"]
|
|
9948
|
+
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",
|
|
9949
|
+
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}}"]
|
|
9848
9950
|
}] }
|
|
9849
9951
|
];
|
|
9850
9952
|
/** @nocollapse */
|
|
@@ -10595,6 +10697,171 @@
|
|
|
10595
10697
|
CardKarmaProgramsV2Component.prototype.router;
|
|
10596
10698
|
}
|
|
10597
10699
|
|
|
10700
|
+
/**
|
|
10701
|
+
* @fileoverview added by tsickle
|
|
10702
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
10703
|
+
*/
|
|
10704
|
+
var CardPortraitExtComponent = /** @class */ (function () {
|
|
10705
|
+
function CardPortraitExtComponent(snackBar, translate, langtranslations, configSvc, contSvc) {
|
|
10706
|
+
var _this = this;
|
|
10707
|
+
this.snackBar = snackBar;
|
|
10708
|
+
this.translate = translate;
|
|
10709
|
+
this.langtranslations = langtranslations;
|
|
10710
|
+
this.configSvc = configSvc;
|
|
10711
|
+
this.contSvc = contSvc;
|
|
10712
|
+
this.isCardLoading = false;
|
|
10713
|
+
this.contentData = new core.EventEmitter();
|
|
10714
|
+
this.isCardFlipped = false;
|
|
10715
|
+
this.acbpConstants = NsCardContent$1.ACBPConst;
|
|
10716
|
+
this.showFlip = false;
|
|
10717
|
+
this.widgetType = 'df';
|
|
10718
|
+
this.widgetSubType = 'sdf';
|
|
10719
|
+
this.langtranslations.languageSelectedObservable.subscribe((/**
|
|
10720
|
+
* @return {?}
|
|
10721
|
+
*/
|
|
10722
|
+
function () {
|
|
10723
|
+
if (localStorage.getItem('websiteLanguage')) {
|
|
10724
|
+
_this.translate.setDefaultLang('en');
|
|
10725
|
+
/** @type {?} */
|
|
10726
|
+
var lang = (/** @type {?} */ (localStorage.getItem('websiteLanguage')));
|
|
10727
|
+
_this.translate.use(lang);
|
|
10728
|
+
}
|
|
10729
|
+
}));
|
|
10730
|
+
}
|
|
10731
|
+
/**
|
|
10732
|
+
* @return {?}
|
|
10733
|
+
*/
|
|
10734
|
+
CardPortraitExtComponent.prototype.ngOnInit = /**
|
|
10735
|
+
* @return {?}
|
|
10736
|
+
*/
|
|
10737
|
+
function () {
|
|
10738
|
+
/** @type {?} */
|
|
10739
|
+
var instanceConfig = this.configSvc.instanceConfig;
|
|
10740
|
+
if (instanceConfig) {
|
|
10741
|
+
this.defaultThumbnail = instanceConfig.logos.defaultContent || '';
|
|
10742
|
+
this.sourceLogos = instanceConfig.sources;
|
|
10743
|
+
this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '';
|
|
10744
|
+
}
|
|
10745
|
+
else {
|
|
10746
|
+
this.defaultThumbnail = '/assets/instances/eagle/app_logos/default.png';
|
|
10747
|
+
this.defaultSLogo = '/assets/instances/eagle/app_logos/KarmayogiBharat_Logo.svg';
|
|
10748
|
+
}
|
|
10749
|
+
};
|
|
10750
|
+
/**
|
|
10751
|
+
* @return {?}
|
|
10752
|
+
*/
|
|
10753
|
+
CardPortraitExtComponent.prototype.showSnackbar = /**
|
|
10754
|
+
* @return {?}
|
|
10755
|
+
*/
|
|
10756
|
+
function () {
|
|
10757
|
+
if (this.showIntranetContent) {
|
|
10758
|
+
this.snackBar.open('Content is only available in intranet', 'X', { duration: 2000 });
|
|
10759
|
+
}
|
|
10760
|
+
else if (!this.isLiveOrMarkForDeletion) {
|
|
10761
|
+
this.snackBar.open('Content may be expired or deleted', 'X', { duration: 2000 });
|
|
10762
|
+
}
|
|
10763
|
+
};
|
|
10764
|
+
/**
|
|
10765
|
+
* @param {?} contentData
|
|
10766
|
+
* @return {?}
|
|
10767
|
+
*/
|
|
10768
|
+
CardPortraitExtComponent.prototype.getRedirectUrlData = /**
|
|
10769
|
+
* @param {?} contentData
|
|
10770
|
+
* @return {?}
|
|
10771
|
+
*/
|
|
10772
|
+
function (contentData) {
|
|
10773
|
+
// for telemetry
|
|
10774
|
+
if (this.widgetData && this.widgetData.context && this.widgetData.context.pageSection) {
|
|
10775
|
+
contentData['typeOfTelemetry'] = this.widgetData.context.pageSection;
|
|
10776
|
+
}
|
|
10777
|
+
this.contSvc.changeTelemetryData(contentData);
|
|
10778
|
+
// for redirection
|
|
10779
|
+
this.contentData.emit(contentData);
|
|
10780
|
+
};
|
|
10781
|
+
CardPortraitExtComponent.decorators = [
|
|
10782
|
+
{ type: core.Component, args: [{
|
|
10783
|
+
selector: 'sb-uic-card-portrait-ext',
|
|
10784
|
+
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>",
|
|
10785
|
+
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}"]
|
|
10786
|
+
}] }
|
|
10787
|
+
];
|
|
10788
|
+
/** @nocollapse */
|
|
10789
|
+
CardPortraitExtComponent.ctorParameters = function () { return [
|
|
10790
|
+
{ type: material.MatSnackBar },
|
|
10791
|
+
{ type: core$1.TranslateService },
|
|
10792
|
+
{ type: MultilingualTranslationsService },
|
|
10793
|
+
{ type: utilsV2.ConfigurationsService },
|
|
10794
|
+
{ type: WidgetContentService }
|
|
10795
|
+
]; };
|
|
10796
|
+
CardPortraitExtComponent.propDecorators = {
|
|
10797
|
+
widgetData: [{ type: core.Input }],
|
|
10798
|
+
isLiveOrMarkForDeletion: [{ type: core.Input }],
|
|
10799
|
+
showIntranetContent: [{ type: core.Input }],
|
|
10800
|
+
isIntranetAllowedSettings: [{ type: core.Input }],
|
|
10801
|
+
isCardLoading: [{ type: core.Input }],
|
|
10802
|
+
contentData: [{ type: core.Output }],
|
|
10803
|
+
cbPlanMapData: [{ type: core.Input }]
|
|
10804
|
+
};
|
|
10805
|
+
return CardPortraitExtComponent;
|
|
10806
|
+
}());
|
|
10807
|
+
if (false) {
|
|
10808
|
+
/** @type {?} */
|
|
10809
|
+
CardPortraitExtComponent.prototype.widgetData;
|
|
10810
|
+
/** @type {?} */
|
|
10811
|
+
CardPortraitExtComponent.prototype.isLiveOrMarkForDeletion;
|
|
10812
|
+
/** @type {?} */
|
|
10813
|
+
CardPortraitExtComponent.prototype.showIntranetContent;
|
|
10814
|
+
/** @type {?} */
|
|
10815
|
+
CardPortraitExtComponent.prototype.isIntranetAllowedSettings;
|
|
10816
|
+
/** @type {?} */
|
|
10817
|
+
CardPortraitExtComponent.prototype.isCardLoading;
|
|
10818
|
+
/** @type {?} */
|
|
10819
|
+
CardPortraitExtComponent.prototype.contentData;
|
|
10820
|
+
/** @type {?} */
|
|
10821
|
+
CardPortraitExtComponent.prototype.cbPlanMapData;
|
|
10822
|
+
/** @type {?} */
|
|
10823
|
+
CardPortraitExtComponent.prototype.isCardFlipped;
|
|
10824
|
+
/** @type {?} */
|
|
10825
|
+
CardPortraitExtComponent.prototype.acbpConstants;
|
|
10826
|
+
/** @type {?} */
|
|
10827
|
+
CardPortraitExtComponent.prototype.defaultThumbnail;
|
|
10828
|
+
/** @type {?} */
|
|
10829
|
+
CardPortraitExtComponent.prototype.sourceLogos;
|
|
10830
|
+
/** @type {?} */
|
|
10831
|
+
CardPortraitExtComponent.prototype.defaultSLogo;
|
|
10832
|
+
/** @type {?} */
|
|
10833
|
+
CardPortraitExtComponent.prototype.showFlip;
|
|
10834
|
+
/** @type {?} */
|
|
10835
|
+
CardPortraitExtComponent.prototype.widgetType;
|
|
10836
|
+
/** @type {?} */
|
|
10837
|
+
CardPortraitExtComponent.prototype.widgetSubType;
|
|
10838
|
+
/**
|
|
10839
|
+
* @type {?}
|
|
10840
|
+
* @private
|
|
10841
|
+
*/
|
|
10842
|
+
CardPortraitExtComponent.prototype.snackBar;
|
|
10843
|
+
/**
|
|
10844
|
+
* @type {?}
|
|
10845
|
+
* @private
|
|
10846
|
+
*/
|
|
10847
|
+
CardPortraitExtComponent.prototype.translate;
|
|
10848
|
+
/**
|
|
10849
|
+
* @type {?}
|
|
10850
|
+
* @private
|
|
10851
|
+
*/
|
|
10852
|
+
CardPortraitExtComponent.prototype.langtranslations;
|
|
10853
|
+
/**
|
|
10854
|
+
* @type {?}
|
|
10855
|
+
* @private
|
|
10856
|
+
*/
|
|
10857
|
+
CardPortraitExtComponent.prototype.configSvc;
|
|
10858
|
+
/**
|
|
10859
|
+
* @type {?}
|
|
10860
|
+
* @private
|
|
10861
|
+
*/
|
|
10862
|
+
CardPortraitExtComponent.prototype.contSvc;
|
|
10863
|
+
}
|
|
10864
|
+
|
|
10598
10865
|
/**
|
|
10599
10866
|
* @fileoverview added by tsickle
|
|
10600
10867
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -10613,7 +10880,8 @@
|
|
|
10613
10880
|
CardMDOChannelComponent,
|
|
10614
10881
|
CardWideV2Component,
|
|
10615
10882
|
CardKarmaProgramsComponent,
|
|
10616
|
-
CardKarmaProgramsV2Component
|
|
10883
|
+
CardKarmaProgramsV2Component,
|
|
10884
|
+
CardPortraitExtComponent
|
|
10617
10885
|
],
|
|
10618
10886
|
imports: [
|
|
10619
10887
|
common.CommonModule,
|
|
@@ -12285,28 +12553,29 @@
|
|
|
12285
12553
|
exports.ɵba = CardWideV2Component;
|
|
12286
12554
|
exports.ɵbb = CardKarmaProgramsComponent;
|
|
12287
12555
|
exports.ɵbc = CardKarmaProgramsV2Component;
|
|
12288
|
-
exports.ɵbd =
|
|
12289
|
-
exports.ɵbe =
|
|
12290
|
-
exports.ɵbf =
|
|
12291
|
-
exports.ɵbg =
|
|
12292
|
-
exports.ɵbh =
|
|
12293
|
-
exports.ɵbi =
|
|
12294
|
-
exports.ɵbj =
|
|
12295
|
-
exports.ɵbk =
|
|
12296
|
-
exports.ɵbl =
|
|
12297
|
-
exports.ɵbm =
|
|
12298
|
-
exports.ɵbn =
|
|
12299
|
-
exports.ɵbo =
|
|
12300
|
-
exports.ɵbp =
|
|
12301
|
-
exports.ɵbq =
|
|
12302
|
-
exports.ɵbr =
|
|
12303
|
-
exports.ɵbs =
|
|
12304
|
-
exports.ɵbt =
|
|
12305
|
-
exports.ɵbu =
|
|
12306
|
-
exports.ɵbv =
|
|
12307
|
-
exports.ɵbw =
|
|
12308
|
-
exports.ɵbx =
|
|
12309
|
-
exports.ɵby =
|
|
12556
|
+
exports.ɵbd = CardPortraitExtComponent;
|
|
12557
|
+
exports.ɵbe = PipePublicURLModule;
|
|
12558
|
+
exports.ɵbf = PipePublicURL;
|
|
12559
|
+
exports.ɵbg = DisplayContentTypeLibModule;
|
|
12560
|
+
exports.ɵbh = DisplayContentTypeLibComponent;
|
|
12561
|
+
exports.ɵbi = DefaultThumbnailModule;
|
|
12562
|
+
exports.ɵbj = DefaultThumbnailDirective;
|
|
12563
|
+
exports.ɵbk = PipeDurationTransformModule;
|
|
12564
|
+
exports.ɵbl = PipeDurationTransformPipe;
|
|
12565
|
+
exports.ɵbm = CompetencyPassbookComponent;
|
|
12566
|
+
exports.ɵbn = CompetencyPassbookService;
|
|
12567
|
+
exports.ɵbo = PillsModule;
|
|
12568
|
+
exports.ɵbp = PillsComponent;
|
|
12569
|
+
exports.ɵbq = UserContentRatingLibComponent;
|
|
12570
|
+
exports.ɵbr = ScrollableItemDirective;
|
|
12571
|
+
exports.ɵbs = RatingService;
|
|
12572
|
+
exports.ɵbt = UserContentRatingLibService;
|
|
12573
|
+
exports.ɵbu = AvatarPhotoLibModule;
|
|
12574
|
+
exports.ɵbv = AvatarPhotoLibComponent;
|
|
12575
|
+
exports.ɵbw = MyHammerConfig$1;
|
|
12576
|
+
exports.ɵbx = SlidersNgContentLibModule;
|
|
12577
|
+
exports.ɵby = SlidersNgContentLibComponent;
|
|
12578
|
+
exports.ɵbz = ScrollableItemModule;
|
|
12310
12579
|
exports.ɵc = MultilingualTranslationsService;
|
|
12311
12580
|
exports.ɵd = ConfigurationsService;
|
|
12312
12581
|
exports.ɵe = HorizontalScrollerV2Module;
|