@sunbird-cb/consumption 0.0.42 → 0.0.44
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 +1243 -165
- package/bundles/sunbird-cb-consumption.umd.js.map +1 -1
- package/bundles/sunbird-cb-consumption.umd.min.js +2 -2
- package/bundles/sunbird-cb-consumption.umd.min.js.map +1 -1
- package/esm2015/lib/_common/cards/card-assessment/card-assessment/card-assessment.component.js +175 -0
- package/esm2015/lib/_common/cards/card-progress-portrait-lib/card-progress-portrait-lib.component.js +261 -0
- package/esm2015/lib/_common/cards/cards.component.js +24 -25
- package/esm2015/lib/_common/cards/cards.module.js +28 -3
- package/esm2015/lib/_common/content-progress/content-progress.component.js +89 -0
- package/esm2015/lib/_common/content-progress/content-progress.module.js +22 -0
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +43 -2
- package/esm2015/lib/_common/dialog-components/certificate-dialog/certificate-dialog.component.js +225 -0
- package/esm2015/lib/_common/dialog-components/dialog-components.module.js +43 -0
- package/esm2015/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.js +2 -4
- package/esm2015/lib/_pipes/object-to-array/object-to-array.pipe.js +28 -0
- package/esm2015/lib/_pipes/object-to-array/object-to-array.pipe.module.js +19 -0
- package/esm2015/lib/_pipes/pipe-duration-transform/pipe-duration-transform.pipe.js +2 -2
- package/esm2015/lib/_services/certificate.service.js +63 -0
- package/esm2015/lib/_services/multilingual-translations.service.js +27 -24
- package/esm2015/lib/_services/widget-content.service.js +1 -2
- package/esm2015/lib/consumption.module.js +1 -1
- package/esm2015/public-api.js +2 -1
- package/esm2015/sunbird-cb-consumption.js +34 -26
- package/esm5/lib/_common/cards/card-assessment/card-assessment/card-assessment.component.js +202 -0
- package/esm5/lib/_common/cards/card-progress-portrait-lib/card-progress-portrait-lib.component.js +278 -0
- package/esm5/lib/_common/cards/cards.component.js +28 -17
- package/esm5/lib/_common/cards/cards.module.js +28 -3
- package/esm5/lib/_common/content-progress/content-progress.component.js +94 -0
- package/esm5/lib/_common/content-progress/content-progress.module.js +26 -0
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +58 -8
- package/esm5/lib/_common/dialog-components/certificate-dialog/certificate-dialog.component.js +248 -0
- package/esm5/lib/_common/dialog-components/dialog-components.module.js +47 -0
- package/esm5/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.js +2 -4
- package/esm5/lib/_pipes/object-to-array/object-to-array.pipe.js +57 -0
- package/esm5/lib/_pipes/object-to-array/object-to-array.pipe.module.js +23 -0
- package/esm5/lib/_pipes/pipe-duration-transform/pipe-duration-transform.pipe.js +3 -3
- package/esm5/lib/_services/certificate.service.js +70 -0
- package/esm5/lib/_services/multilingual-translations.service.js +27 -24
- package/esm5/lib/_services/widget-content.service.js +1 -2
- package/esm5/lib/consumption.module.js +1 -1
- package/esm5/public-api.js +2 -1
- package/esm5/sunbird-cb-consumption.js +34 -26
- package/fesm2015/sunbird-cb-consumption.js +1074 -136
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +1210 -140
- package/fesm5/sunbird-cb-consumption.js.map +1 -1
- package/lib/_common/cards/card-assessment/card-assessment/card-assessment.component.d.ts +28 -0
- package/lib/_common/cards/card-progress-portrait-lib/card-progress-portrait-lib.component.d.ts +41 -0
- package/lib/_common/cards/cards.component.d.ts +5 -3
- package/lib/_common/content-progress/content-progress.component.d.ts +13 -0
- package/lib/_common/content-progress/content-progress.module.d.ts +2 -0
- package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.d.ts +2 -0
- package/lib/_common/dialog-components/certificate-dialog/certificate-dialog.component.d.ts +22 -0
- package/lib/_common/dialog-components/dialog-components.module.d.ts +2 -0
- package/lib/_pipes/object-to-array/object-to-array.pipe.d.ts +4 -0
- package/lib/_pipes/object-to-array/object-to-array.pipe.module.d.ts +2 -0
- package/lib/_pipes/pipe-duration-transform/pipe-duration-transform.pipe.d.ts +1 -1
- package/lib/_services/certificate.service.d.ts +8 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/sunbird-cb-consumption.d.ts +32 -24
- package/sunbird-cb-consumption.metadata.json +1 -1
|
@@ -3,9 +3,9 @@ import { CommonModule, DatePipe } from '@angular/common';
|
|
|
3
3
|
import { Router, RouterModule } from '@angular/router';
|
|
4
4
|
import { fromEvent, timer, BehaviorSubject, Subject, of, EMPTY, ReplaySubject, throwError, interval } from 'rxjs';
|
|
5
5
|
import { debounceTime, throttleTime, shareReplay, retry, map, catchError, filter, distinctUntilChanged } from 'rxjs/operators';
|
|
6
|
-
import { ValueService, ConfigurationsService as ConfigurationsService$1, WsEvents, LoggerService, EventService, UtilityService, MultilingualTranslationsService as MultilingualTranslationsService$1 } from '@sunbird-cb/utils-v2';
|
|
7
|
-
import { MatButtonModule, MatIconModule, MatProgressSpinnerModule, MatToolbarModule, MatTooltipModule, MatListModule, MatSidenavModule, MatCardModule, MatExpansionModule, MatRadioModule, MatChipsModule, MatInputModule, MatFormFieldModule, MatDialogModule, MatSnackBarModule, MatSelectModule, MatDatepickerModule, MatNativeDateModule, MatTableModule, MatCheckboxModule, MatButtonToggleModule, MatTabsModule, MatAutocompleteModule, MatSnackBar, MatMenuModule, MatRippleModule } from '@angular/material';
|
|
8
|
-
import { __assign, __awaiter, __generator, __extends, __values, __spread } from 'tslib';
|
|
6
|
+
import { ValueService, ConfigurationsService as ConfigurationsService$1, WsEvents, LoggerService, EventService, UtilityService, MultilingualTranslationsService as MultilingualTranslationsService$1, PipeSafeSanitizerModule } from '@sunbird-cb/utils-v2';
|
|
7
|
+
import { MatButtonModule, MatIconModule, MatProgressSpinnerModule, MatToolbarModule, MatTooltipModule, MatListModule, MatSidenavModule, MatCardModule, MatExpansionModule, MatRadioModule, MatChipsModule, MatInputModule, MatFormFieldModule, MatDialogModule, MatSnackBarModule, MatSelectModule, MatDatepickerModule, MatNativeDateModule, MatTableModule, MatCheckboxModule, MatButtonToggleModule, MatTabsModule, MatAutocompleteModule, MatSnackBar, MatDialogRef, MAT_DIALOG_DATA, MatDialog, MatProgressBarModule, MatMenuModule, MatRippleModule } from '@angular/material';
|
|
8
|
+
import { __assign, __awaiter, __generator, __extends, __values, __spread, __read } from 'tslib';
|
|
9
9
|
import { WidgetBaseComponent, SbUiResolverModule } from '@sunbird-cb/resolver-v2';
|
|
10
10
|
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
11
11
|
import { get, uniqBy, orderBy, camelCase } from 'lodash';
|
|
@@ -18,6 +18,7 @@ import { BreakpointObserver } from '@angular/cdk/layout';
|
|
|
18
18
|
import { HammerGestureConfig, HAMMER_GESTURE_CONFIG } from '@angular/platform-browser';
|
|
19
19
|
import Hammer from 'hammerjs';
|
|
20
20
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
21
|
+
import { jsPDF } from 'jspdf';
|
|
21
22
|
|
|
22
23
|
/**
|
|
23
24
|
* @fileoverview added by tsickle
|
|
@@ -351,15 +352,13 @@ var HorizontalScrollerV2Component = /** @class */ (function () {
|
|
|
351
352
|
/** @type {?} */
|
|
352
353
|
var totalCardsLength = cardWidth * this.widgetsLength;
|
|
353
354
|
if (totalCardsLength > scrollerWidth) {
|
|
354
|
-
arrLength_1 = (scrollerWidth / cardWidth);
|
|
355
|
+
arrLength_1 = Math.round(scrollerWidth / cardWidth);
|
|
355
356
|
this.defaultMaxWidgets = this.defaultMaxWidgets ? this.widgetsLength < this.defaultMaxWidgets ?
|
|
356
357
|
this.widgetsLength : this.defaultMaxWidgets : this.defaultMaxWidgets;
|
|
357
358
|
arrLength_1 = this.defaultMaxWidgets / arrLength_1;
|
|
358
359
|
for (var i = 0; i < arrLength_1; i += 1) {
|
|
359
360
|
this.bottomDotsArray.push(i);
|
|
360
361
|
}
|
|
361
|
-
// console.log('this.cardSubType', this.cardSubType, arrLength, this.widgetsLength ,
|
|
362
|
-
// this.defaultMaxWidgets, scrollerWidth, this.bottomDotsArray)
|
|
363
362
|
}
|
|
364
363
|
}
|
|
365
364
|
}
|
|
@@ -2506,7 +2505,6 @@ var WidgetContentService = /** @class */ (function () {
|
|
|
2506
2505
|
* @return {?}
|
|
2507
2506
|
*/
|
|
2508
2507
|
function (apiUrl, req) {
|
|
2509
|
-
req.query = req.query || '';
|
|
2510
2508
|
return this.http.post(apiUrl, req);
|
|
2511
2509
|
};
|
|
2512
2510
|
/**
|
|
@@ -2917,33 +2915,36 @@ var MultilingualTranslationsService = /** @class */ (function () {
|
|
|
2917
2915
|
* @return {?}
|
|
2918
2916
|
*/
|
|
2919
2917
|
function (label, type, subtype) {
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2918
|
+
if (label) {
|
|
2919
|
+
/** @type {?} */
|
|
2920
|
+
var nlabel = label;
|
|
2921
|
+
nlabel = nlabel && nlabel.toLowerCase();
|
|
2922
|
+
/** @type {?} */
|
|
2923
|
+
var sl_1 = nlabel.split(' ');
|
|
2924
|
+
sl_1.forEach((/**
|
|
2925
|
+
* @param {?} w
|
|
2926
|
+
* @param {?} index
|
|
2927
|
+
* @return {?}
|
|
2928
|
+
*/
|
|
2929
|
+
function (w, index) {
|
|
2930
|
+
if (index !== 0) {
|
|
2931
|
+
sl_1[index] = w[0].toUpperCase() + w.slice(1);
|
|
2932
|
+
}
|
|
2933
|
+
}));
|
|
2934
|
+
nlabel = sl_1.join('');
|
|
2935
|
+
nlabel = nlabel.replace(/\s/g, '');
|
|
2936
|
+
if (subtype) {
|
|
2937
|
+
// tslint:disable-next-line: prefer-template
|
|
2938
|
+
/** @type {?} */
|
|
2939
|
+
var translationKey = type + '.' + nlabel + subtype;
|
|
2940
|
+
return this.translate.instant(translationKey);
|
|
2933
2941
|
}
|
|
2934
|
-
}));
|
|
2935
|
-
nlabel = sl.join('');
|
|
2936
|
-
nlabel = nlabel.replace(/\s/g, '');
|
|
2937
|
-
if (subtype) {
|
|
2938
2942
|
// tslint:disable-next-line: prefer-template
|
|
2939
2943
|
/** @type {?} */
|
|
2940
|
-
var
|
|
2941
|
-
return this.translate.instant(
|
|
2944
|
+
var translationKeyn = type + '.' + nlabel;
|
|
2945
|
+
return this.translate.instant(translationKeyn);
|
|
2942
2946
|
}
|
|
2943
|
-
|
|
2944
|
-
/** @type {?} */
|
|
2945
|
-
var translationKeyn = type + '.' + nlabel;
|
|
2946
|
-
return this.translate.instant(translationKeyn);
|
|
2947
|
+
return label;
|
|
2947
2948
|
};
|
|
2948
2949
|
/**
|
|
2949
2950
|
* @param {?} label
|
|
@@ -4386,7 +4387,8 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
4386
4387
|
function (strip, calculateParentStatus) {
|
|
4387
4388
|
if (calculateParentStatus === void 0) { calculateParentStatus = true; }
|
|
4388
4389
|
return __awaiter(this, void 0, void 0, function () {
|
|
4389
|
-
var originalFilters, firstTab, allTabs, currentTabFromMap,
|
|
4390
|
+
var originalFilters, firstTab, allTabs, currentTabFromMap, response_1, error_1;
|
|
4391
|
+
var _this = this;
|
|
4390
4392
|
return __generator(this, function (_a) {
|
|
4391
4393
|
switch (_a.label) {
|
|
4392
4394
|
case 0:
|
|
@@ -4424,15 +4426,26 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
4424
4426
|
_a.trys.push([1, 3, , 4]);
|
|
4425
4427
|
return [4 /*yield*/, this.searchV6Request(strip, strip.request, calculateParentStatus)];
|
|
4426
4428
|
case 2:
|
|
4427
|
-
|
|
4429
|
+
response_1 = _a.sent();
|
|
4428
4430
|
// console.log('calling after - response, ', response)
|
|
4429
|
-
if (
|
|
4431
|
+
if (response_1 && response_1.results) {
|
|
4430
4432
|
// console.log('calling after-- ')
|
|
4431
|
-
if (
|
|
4432
|
-
|
|
4433
|
+
if (response_1.results.result.content) {
|
|
4434
|
+
if (strip.key === 'scheduledAssessment') {
|
|
4435
|
+
this.enrollInterval = setInterval((/**
|
|
4436
|
+
* @return {?}
|
|
4437
|
+
*/
|
|
4438
|
+
function () {
|
|
4439
|
+
_this.checkInvitOnlyAssessments(response_1.results.result.content, strip, calculateParentStatus, response_1.viewMoreUrl);
|
|
4440
|
+
// tslint:disable-next-line
|
|
4441
|
+
}), 1000);
|
|
4442
|
+
}
|
|
4443
|
+
else {
|
|
4444
|
+
this.processStrip(strip, this.transformContentsToWidgets(response_1.results.result.content, strip), 'done', calculateParentStatus, response_1.viewMoreUrl);
|
|
4445
|
+
}
|
|
4433
4446
|
}
|
|
4434
|
-
else if (
|
|
4435
|
-
this.processStrip(strip, this.transformEventsToWidgets(
|
|
4447
|
+
else if (response_1.results.result.Event) {
|
|
4448
|
+
this.processStrip(strip, this.transformEventsToWidgets(response_1.results.result.Event, strip), 'done', calculateParentStatus, response_1.viewMoreUrl);
|
|
4436
4449
|
}
|
|
4437
4450
|
else {
|
|
4438
4451
|
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
@@ -4450,6 +4463,41 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
4450
4463
|
});
|
|
4451
4464
|
});
|
|
4452
4465
|
};
|
|
4466
|
+
/**
|
|
4467
|
+
* @param {?} content
|
|
4468
|
+
* @param {?} strip
|
|
4469
|
+
* @param {?} calculateParentStatus
|
|
4470
|
+
* @param {?} viewMoreUrl
|
|
4471
|
+
* @return {?}
|
|
4472
|
+
*/
|
|
4473
|
+
ContentStripWithTabsLibComponent.prototype.checkInvitOnlyAssessments = /**
|
|
4474
|
+
* @param {?} content
|
|
4475
|
+
* @param {?} strip
|
|
4476
|
+
* @param {?} calculateParentStatus
|
|
4477
|
+
* @param {?} viewMoreUrl
|
|
4478
|
+
* @return {?}
|
|
4479
|
+
*/
|
|
4480
|
+
function (content, strip, calculateParentStatus, viewMoreUrl) {
|
|
4481
|
+
var _this = this;
|
|
4482
|
+
if (localStorage.getItem('enrollmentMapData')) {
|
|
4483
|
+
this.enrollmentMapData = JSON.parse(localStorage.getItem('enrollmentMapData') || '{}');
|
|
4484
|
+
/** @type {?} */
|
|
4485
|
+
var filteredArray_1 = [];
|
|
4486
|
+
content.forEach((/**
|
|
4487
|
+
* @param {?} data
|
|
4488
|
+
* @return {?}
|
|
4489
|
+
*/
|
|
4490
|
+
function (data) {
|
|
4491
|
+
if (_this.enrollmentMapData[data.identifier]) {
|
|
4492
|
+
data['batch'] = _this.enrollmentMapData[data.identifier].batch;
|
|
4493
|
+
data['completionPercentage'] = _this.enrollmentMapData[data.identifier].completionPercentage;
|
|
4494
|
+
filteredArray_1.push(data);
|
|
4495
|
+
}
|
|
4496
|
+
}));
|
|
4497
|
+
this.processStrip(strip, this.transformContentsToWidgets(filteredArray_1, strip), 'done', calculateParentStatus, viewMoreUrl);
|
|
4498
|
+
clearInterval(this.enrollInterval);
|
|
4499
|
+
}
|
|
4500
|
+
};
|
|
4453
4501
|
/**
|
|
4454
4502
|
* @param {?} strip
|
|
4455
4503
|
* @param {?} request
|
|
@@ -5968,6 +6016,7 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
5968
6016
|
switch (_a.label) {
|
|
5969
6017
|
case 0:
|
|
5970
6018
|
if (!(strip.request && strip.request.ciosContent && Object.keys(strip.request.ciosContent).length)) return [3 /*break*/, 4];
|
|
6019
|
+
debugger;
|
|
5971
6020
|
originalFilters = [];
|
|
5972
6021
|
if (strip.request &&
|
|
5973
6022
|
strip.request.ciosContent &&
|
|
@@ -6095,6 +6144,8 @@ if (false) {
|
|
|
6095
6144
|
ContentStripWithTabsLibComponent.prototype.enrollInterval;
|
|
6096
6145
|
/** @type {?} */
|
|
6097
6146
|
ContentStripWithTabsLibComponent.prototype.todaysEvents;
|
|
6147
|
+
/** @type {?} */
|
|
6148
|
+
ContentStripWithTabsLibComponent.prototype.enrollmentMapData;
|
|
6098
6149
|
/**
|
|
6099
6150
|
* @type {?}
|
|
6100
6151
|
* @private
|
|
@@ -8611,10 +8662,9 @@ var NsCardContent$1;
|
|
|
8611
8662
|
*/
|
|
8612
8663
|
var CardsComponent = /** @class */ (function (_super) {
|
|
8613
8664
|
__extends(CardsComponent, _super);
|
|
8614
|
-
function CardsComponent(utilitySvc,
|
|
8665
|
+
function CardsComponent(utilitySvc, contSvc, router) {
|
|
8615
8666
|
var _this = _super.call(this) || this;
|
|
8616
8667
|
_this.utilitySvc = utilitySvc;
|
|
8617
|
-
_this.configSvc = configSvc;
|
|
8618
8668
|
_this.contSvc = contSvc;
|
|
8619
8669
|
_this.router = router;
|
|
8620
8670
|
_this.triggerTelemetry = new EventEmitter();
|
|
@@ -8635,6 +8685,13 @@ var CardsComponent = /** @class */ (function (_super) {
|
|
|
8635
8685
|
function () {
|
|
8636
8686
|
_this.getCbPlanData();
|
|
8637
8687
|
}), 1000);
|
|
8688
|
+
this.enrollInterval = setInterval((/**
|
|
8689
|
+
* @return {?}
|
|
8690
|
+
*/
|
|
8691
|
+
function () {
|
|
8692
|
+
_this.getEnrollmentData();
|
|
8693
|
+
// tslint:disable-next-line
|
|
8694
|
+
}), 1000);
|
|
8638
8695
|
};
|
|
8639
8696
|
Object.defineProperty(CardsComponent.prototype, "isLiveOrMarkForDeletion", {
|
|
8640
8697
|
get: /**
|
|
@@ -8674,16 +8731,11 @@ var CardsComponent = /** @class */ (function (_super) {
|
|
|
8674
8731
|
*/
|
|
8675
8732
|
function (content) {
|
|
8676
8733
|
return __awaiter(this, void 0, void 0, function () {
|
|
8677
|
-
var
|
|
8734
|
+
var urlData;
|
|
8678
8735
|
return __generator(this, function (_a) {
|
|
8679
8736
|
switch (_a.label) {
|
|
8680
8737
|
case 0:
|
|
8681
|
-
userProfile = this.configSvc.userProfile;
|
|
8682
8738
|
if (!content.externalId) return [3 /*break*/, 1];
|
|
8683
|
-
extUrl = content.redirectUrl.replace('<username>', userProfile.userId);
|
|
8684
|
-
// const url = this.router.serializeUrl(
|
|
8685
|
-
// this.router.createUrlTree([extUrl])
|
|
8686
|
-
// );
|
|
8687
8739
|
this.router.navigate(["app/toc/ext/" + content.contentId]);
|
|
8688
8740
|
return [3 /*break*/, 3];
|
|
8689
8741
|
case 1: return [4 /*yield*/, this.contSvc.getResourseLink(content)];
|
|
@@ -8724,6 +8776,18 @@ var CardsComponent = /** @class */ (function (_super) {
|
|
|
8724
8776
|
clearInterval(this.cbPlanInterval);
|
|
8725
8777
|
}
|
|
8726
8778
|
};
|
|
8779
|
+
/**
|
|
8780
|
+
* @return {?}
|
|
8781
|
+
*/
|
|
8782
|
+
CardsComponent.prototype.getEnrollmentData = /**
|
|
8783
|
+
* @return {?}
|
|
8784
|
+
*/
|
|
8785
|
+
function () {
|
|
8786
|
+
if (localStorage.getItem('enrollmentMapData')) {
|
|
8787
|
+
this.enrollmentMapData = JSON.parse(localStorage.getItem('enrollmentMapData') || '{}');
|
|
8788
|
+
clearInterval(this.enrollInterval);
|
|
8789
|
+
}
|
|
8790
|
+
};
|
|
8727
8791
|
/**
|
|
8728
8792
|
* @param {?} data
|
|
8729
8793
|
* @return {?}
|
|
@@ -8738,14 +8802,13 @@ var CardsComponent = /** @class */ (function (_super) {
|
|
|
8738
8802
|
CardsComponent.decorators = [
|
|
8739
8803
|
{ type: Component, args: [{
|
|
8740
8804
|
selector: 'sb-uic-cards',
|
|
8741
|
-
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-home-lib'\" [ngTemplateOutlet]=\"cardMdoHome\"></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]=\"cardKarmaProgramSkeleton\"></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 #cardMdoHome>\n <sb-uic-card-mdo-channel-v1 [widgetData]=\"widgetData\"></sb-uic-card-mdo-channel-v1>\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 #cardKarmaProgramSkeleton>\n <sb-uic-card-karma-programs [randomColorApply]=\"true\" \n [isCardLoading]=\"true\" [widgetData]=\"widgetData\"></sb-uic-card-karma-programs>\n</ng-template>\n<ng-template #cardKarmaProgram>\n <sb-uic-card-karma-programs [randomColorApply]=\"true\" \n [isCardLoading]=\"false\" [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>",
|
|
8805
|
+
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-home-lib'\" [ngTemplateOutlet]=\"cardMdoHome\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-mdo-lib-skeleton'\" [ngTemplateOutlet]=\"cardMdoSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-scheduled-assessment'\" [ngTemplateOutlet]=\"cardScheduledAssessment\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-scheduled-assessment-skeleton'\" [ngTemplateOutlet]=\"cardScheduledAssessmentSkelton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib'\" [ngTemplateOutlet]=\"cardKarmaProgram\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-karma-program-lib-skeleton'\" [ngTemplateOutlet]=\"cardKarmaProgramSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-progress-portrait-lib'\" [ngTemplateOutlet]=\"cardProgressLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-progress-portrait-lib-skeleton'\" [ngTemplateOutlet]=\"cardProgressLibSkeleton\"></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 #cardMdoHome>\n <sb-uic-card-mdo-channel-v1 [widgetData]=\"widgetData\"></sb-uic-card-mdo-channel-v1>\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 #cardKarmaProgramSkeleton>\n <sb-uic-card-karma-programs [randomColorApply]=\"true\" \n [isCardLoading]=\"true\" [widgetData]=\"widgetData\"></sb-uic-card-karma-programs>\n</ng-template>\n<ng-template #cardKarmaProgram>\n <sb-uic-card-karma-programs [randomColorApply]=\"true\" \n [isCardLoading]=\"false\" [widgetData]=\"widgetData\"></sb-uic-card-karma-programs>\n</ng-template>\n<ng-template #cardScheduledAssessmentSkelton>\n <sb-uic-card-assessment [widgetData]=\"widgetData\" [isCardLoading]=\"true\"></sb-uic-card-assessment>\n</ng-template>\n<ng-template #cardScheduledAssessment>\n <sb-uic-card-assessment [widgetData]=\"widgetData\" (contentData)=\"getRedirectUrlData($event)\" [isCardLoading]=\"false\" [enrollmentMapData]=\"enrollmentMapData\"></sb-uic-card-assessment>\n</ng-template>\n<ng-template #cardProgressLibSkeleton>\n <sb-uic-card-progress-portrait-lib \n [isCardLoading]=\"true\" [widgetData]=\"widgetData\"></sb-uic-card-progress-portrait-lib>\n</ng-template>\n<ng-template #cardProgressLib>\n <sb-uic-card-progress-portrait-lib \n [isCardLoading]=\"false\" (contentData)=\"getRedirectUrlData($event)\" [widgetData]=\"widgetData\"></sb-uic-card-progress-portrait-lib>\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>",
|
|
8742
8806
|
styles: [""]
|
|
8743
8807
|
}] }
|
|
8744
8808
|
];
|
|
8745
8809
|
/** @nocollapse */
|
|
8746
8810
|
CardsComponent.ctorParameters = function () { return [
|
|
8747
8811
|
{ type: UtilityService },
|
|
8748
|
-
{ type: ConfigurationsService$1 },
|
|
8749
8812
|
{ type: WidgetContentService },
|
|
8750
8813
|
{ type: Router }
|
|
8751
8814
|
]; };
|
|
@@ -8766,16 +8829,15 @@ if (false) {
|
|
|
8766
8829
|
CardsComponent.prototype.cbPlanMapData;
|
|
8767
8830
|
/** @type {?} */
|
|
8768
8831
|
CardsComponent.prototype.cbPlanInterval;
|
|
8832
|
+
/** @type {?} */
|
|
8833
|
+
CardsComponent.prototype.enrollInterval;
|
|
8834
|
+
/** @type {?} */
|
|
8835
|
+
CardsComponent.prototype.enrollmentMapData;
|
|
8769
8836
|
/**
|
|
8770
8837
|
* @type {?}
|
|
8771
8838
|
* @private
|
|
8772
8839
|
*/
|
|
8773
8840
|
CardsComponent.prototype.utilitySvc;
|
|
8774
|
-
/**
|
|
8775
|
-
* @type {?}
|
|
8776
|
-
* @private
|
|
8777
|
-
*/
|
|
8778
|
-
CardsComponent.prototype.configSvc;
|
|
8779
8841
|
/**
|
|
8780
8842
|
* @type {?}
|
|
8781
8843
|
* @private
|
|
@@ -9044,6 +9106,80 @@ var PipePublicURLModule = /** @class */ (function () {
|
|
|
9044
9106
|
return PipePublicURLModule;
|
|
9045
9107
|
}());
|
|
9046
9108
|
|
|
9109
|
+
/**
|
|
9110
|
+
* @fileoverview added by tsickle
|
|
9111
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9112
|
+
*/
|
|
9113
|
+
var ObjectToArrayPipe = /** @class */ (function () {
|
|
9114
|
+
function ObjectToArrayPipe() {
|
|
9115
|
+
}
|
|
9116
|
+
// transform(value: any, ...args: any[]): any[] {
|
|
9117
|
+
// console.log("function called")
|
|
9118
|
+
// if (!value) {
|
|
9119
|
+
// return [];
|
|
9120
|
+
// }
|
|
9121
|
+
// console.log(Object.keys(value).map(key => ({ key, value: value[key] })), "Object.keys(value).map(key => ({ key, value: value[key] }))==----------")
|
|
9122
|
+
// return Object.keys(value).map(key => ({ key, value: value[key] }));
|
|
9123
|
+
// }
|
|
9124
|
+
// transform(value: any, ...args: any[]): any[] {
|
|
9125
|
+
// console.log("function called")
|
|
9126
|
+
// if (!value) {
|
|
9127
|
+
// return [];
|
|
9128
|
+
// }
|
|
9129
|
+
// console.log(Object.keys(value).map(key => ({ key, value: value[key] })), "Object.keys(value).map(key => ({ key, value: value[key] }))==----------")
|
|
9130
|
+
// return Object.keys(value).map(key => ({ key, value: value[key] }));
|
|
9131
|
+
// }
|
|
9132
|
+
/**
|
|
9133
|
+
* @param {...?} args
|
|
9134
|
+
* @return {?}
|
|
9135
|
+
*/
|
|
9136
|
+
ObjectToArrayPipe.prototype.transform =
|
|
9137
|
+
// transform(value: any, ...args: any[]): any[] {
|
|
9138
|
+
// console.log("function called")
|
|
9139
|
+
// if (!value) {
|
|
9140
|
+
// return [];
|
|
9141
|
+
// }
|
|
9142
|
+
// console.log(Object.keys(value).map(key => ({ key, value: value[key] })), "Object.keys(value).map(key => ({ key, value: value[key] }))==----------")
|
|
9143
|
+
// return Object.keys(value).map(key => ({ key, value: value[key] }));
|
|
9144
|
+
// }
|
|
9145
|
+
/**
|
|
9146
|
+
* @param {...?} args
|
|
9147
|
+
* @return {?}
|
|
9148
|
+
*/
|
|
9149
|
+
function () {
|
|
9150
|
+
var args = [];
|
|
9151
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
9152
|
+
args[_i] = arguments[_i];
|
|
9153
|
+
}
|
|
9154
|
+
return args;
|
|
9155
|
+
};
|
|
9156
|
+
ObjectToArrayPipe.decorators = [
|
|
9157
|
+
{ type: Pipe, args: [{
|
|
9158
|
+
name: 'objectToArray'
|
|
9159
|
+
},] }
|
|
9160
|
+
];
|
|
9161
|
+
return ObjectToArrayPipe;
|
|
9162
|
+
}());
|
|
9163
|
+
|
|
9164
|
+
/**
|
|
9165
|
+
* @fileoverview added by tsickle
|
|
9166
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
9167
|
+
*/
|
|
9168
|
+
var ObjectToArrayPipeModule = /** @class */ (function () {
|
|
9169
|
+
function ObjectToArrayPipeModule() {
|
|
9170
|
+
}
|
|
9171
|
+
ObjectToArrayPipeModule.decorators = [
|
|
9172
|
+
{ type: NgModule, args: [{
|
|
9173
|
+
declarations: [ObjectToArrayPipe],
|
|
9174
|
+
imports: [
|
|
9175
|
+
CommonModule,
|
|
9176
|
+
],
|
|
9177
|
+
exports: [ObjectToArrayPipe],
|
|
9178
|
+
},] }
|
|
9179
|
+
];
|
|
9180
|
+
return ObjectToArrayPipeModule;
|
|
9181
|
+
}());
|
|
9182
|
+
|
|
9047
9183
|
/**
|
|
9048
9184
|
* @fileoverview added by tsickle
|
|
9049
9185
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -9210,12 +9346,12 @@ var PipeDurationTransformPipe = /** @class */ (function () {
|
|
|
9210
9346
|
}
|
|
9211
9347
|
/**
|
|
9212
9348
|
* @param {?} data
|
|
9213
|
-
* @param {
|
|
9349
|
+
* @param {?=} type
|
|
9214
9350
|
* @return {?}
|
|
9215
9351
|
*/
|
|
9216
9352
|
PipeDurationTransformPipe.prototype.transform = /**
|
|
9217
9353
|
* @param {?} data
|
|
9218
|
-
* @param {
|
|
9354
|
+
* @param {?=} type
|
|
9219
9355
|
* @return {?}
|
|
9220
9356
|
*/
|
|
9221
9357
|
function (data, type) {
|
|
@@ -10722,35 +10858,22 @@ if (false) {
|
|
|
10722
10858
|
* @fileoverview added by tsickle
|
|
10723
10859
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
10724
10860
|
*/
|
|
10725
|
-
var
|
|
10726
|
-
function
|
|
10727
|
-
var _this = this;
|
|
10728
|
-
this.events = events;
|
|
10729
|
-
this.translate = translate;
|
|
10730
|
-
this.langtranslations = langtranslations;
|
|
10861
|
+
var CardAssessmentComponent = /** @class */ (function () {
|
|
10862
|
+
function CardAssessmentComponent(configSvc, contSvc) {
|
|
10731
10863
|
this.configSvc = configSvc;
|
|
10732
10864
|
this.contSvc = contSvc;
|
|
10733
|
-
this.
|
|
10734
|
-
this.
|
|
10735
|
-
this.
|
|
10736
|
-
this.
|
|
10737
|
-
this.
|
|
10738
|
-
this.
|
|
10739
|
-
|
|
10740
|
-
*/
|
|
10741
|
-
function () {
|
|
10742
|
-
if (localStorage.getItem('websiteLanguage')) {
|
|
10743
|
-
_this.translate.setDefaultLang('en');
|
|
10744
|
-
/** @type {?} */
|
|
10745
|
-
var lang = (/** @type {?} */ (localStorage.getItem('websiteLanguage')));
|
|
10746
|
-
_this.translate.use(lang);
|
|
10747
|
-
}
|
|
10748
|
-
}));
|
|
10865
|
+
this.contentData = new EventEmitter();
|
|
10866
|
+
this.isCardLoading = false;
|
|
10867
|
+
this.stripData = [];
|
|
10868
|
+
this.enrollList = [];
|
|
10869
|
+
this.activeResource = [];
|
|
10870
|
+
this.daysRemaining = 0;
|
|
10871
|
+
this.daysPending = false;
|
|
10749
10872
|
}
|
|
10750
10873
|
/**
|
|
10751
10874
|
* @return {?}
|
|
10752
10875
|
*/
|
|
10753
|
-
|
|
10876
|
+
CardAssessmentComponent.prototype.ngOnInit = /**
|
|
10754
10877
|
* @return {?}
|
|
10755
10878
|
*/
|
|
10756
10879
|
function () {
|
|
@@ -10758,8 +10881,7 @@ var CardMdoChannelV1Component = /** @class */ (function () {
|
|
|
10758
10881
|
var instanceConfig = this.configSvc.instanceConfig;
|
|
10759
10882
|
if (instanceConfig) {
|
|
10760
10883
|
this.defaultThumbnail = instanceConfig.logos.defaultContent || '';
|
|
10761
|
-
this.
|
|
10762
|
-
this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '';
|
|
10884
|
+
this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '/assets/instances/eagle/app_logos/KarmayogiBharat_Logo.svg';
|
|
10763
10885
|
}
|
|
10764
10886
|
else {
|
|
10765
10887
|
this.defaultThumbnail = '/assets/instances/eagle/app_logos/default.png';
|
|
@@ -10767,109 +10889,1042 @@ var CardMdoChannelV1Component = /** @class */ (function () {
|
|
|
10767
10889
|
}
|
|
10768
10890
|
};
|
|
10769
10891
|
/**
|
|
10770
|
-
* @param {?}
|
|
10892
|
+
* @param {?} startDate
|
|
10771
10893
|
* @return {?}
|
|
10772
10894
|
*/
|
|
10773
|
-
|
|
10774
|
-
* @param {?}
|
|
10895
|
+
CardAssessmentComponent.prototype.updateStartDate = /**
|
|
10896
|
+
* @param {?} startDate
|
|
10775
10897
|
* @return {?}
|
|
10776
10898
|
*/
|
|
10777
|
-
function (
|
|
10778
|
-
this.
|
|
10779
|
-
|
|
10780
|
-
|
|
10899
|
+
function (startDate) {
|
|
10900
|
+
this.startDate = startDate;
|
|
10901
|
+
this.startCountdown(this.startDate);
|
|
10902
|
+
};
|
|
10903
|
+
/**
|
|
10904
|
+
* @param {?} date
|
|
10905
|
+
* @return {?}
|
|
10906
|
+
*/
|
|
10907
|
+
CardAssessmentComponent.prototype.startCountdown = /**
|
|
10908
|
+
* @param {?} date
|
|
10909
|
+
* @return {?}
|
|
10910
|
+
*/
|
|
10911
|
+
function (date) {
|
|
10912
|
+
var _this = this;
|
|
10913
|
+
// Update the countdown immediately on start
|
|
10914
|
+
this.updateCountdown(date);
|
|
10915
|
+
// Update the countdown every second
|
|
10916
|
+
this.intervalId = setInterval((/**
|
|
10917
|
+
* @return {?}
|
|
10918
|
+
*/
|
|
10919
|
+
function () {
|
|
10920
|
+
_this.updateCountdown(date);
|
|
10921
|
+
}), 1000);
|
|
10922
|
+
};
|
|
10923
|
+
// Method to update the countdown values
|
|
10924
|
+
// Method to update the countdown values
|
|
10925
|
+
/**
|
|
10926
|
+
* @param {?} targetDate
|
|
10927
|
+
* @return {?}
|
|
10928
|
+
*/
|
|
10929
|
+
CardAssessmentComponent.prototype.updateCountdown =
|
|
10930
|
+
// Method to update the countdown values
|
|
10931
|
+
/**
|
|
10932
|
+
* @param {?} targetDate
|
|
10933
|
+
* @return {?}
|
|
10934
|
+
*/
|
|
10935
|
+
function (targetDate) {
|
|
10936
|
+
/** @type {?} */
|
|
10937
|
+
var now = new Date().getTime();
|
|
10938
|
+
// Current time in milliseconds
|
|
10939
|
+
/** @type {?} */
|
|
10940
|
+
var targetTime = new Date(targetDate).getTime();
|
|
10941
|
+
/** @type {?} */
|
|
10942
|
+
var distance = targetTime - now;
|
|
10943
|
+
if (distance > 0) {
|
|
10944
|
+
this.daysRemaining = Math.ceil(distance / (1000 * 60 * 60 * 24));
|
|
10945
|
+
this.daysPending = true;
|
|
10946
|
+
}
|
|
10947
|
+
else {
|
|
10948
|
+
this.daysRemaining = 0;
|
|
10949
|
+
this.daysPending = false;
|
|
10950
|
+
this.clearTimer();
|
|
10781
10951
|
}
|
|
10782
|
-
this.contSvc.changeTelemetryData(contentData);
|
|
10783
10952
|
};
|
|
10953
|
+
// Method to clear the interval
|
|
10954
|
+
// Method to clear the interval
|
|
10784
10955
|
/**
|
|
10785
|
-
* @param {?} channeldata
|
|
10786
10956
|
* @return {?}
|
|
10787
10957
|
*/
|
|
10788
|
-
|
|
10789
|
-
|
|
10958
|
+
CardAssessmentComponent.prototype.clearTimer =
|
|
10959
|
+
// Method to clear the interval
|
|
10960
|
+
/**
|
|
10790
10961
|
* @return {?}
|
|
10791
10962
|
*/
|
|
10792
|
-
function (
|
|
10793
|
-
this.
|
|
10963
|
+
function () {
|
|
10964
|
+
clearInterval(this.intervalId);
|
|
10794
10965
|
};
|
|
10795
10966
|
/**
|
|
10796
|
-
* @param {?} content
|
|
10797
10967
|
* @return {?}
|
|
10798
10968
|
*/
|
|
10799
|
-
|
|
10800
|
-
* @param {?} content
|
|
10969
|
+
CardAssessmentComponent.prototype.ngOnDestroy = /**
|
|
10801
10970
|
* @return {?}
|
|
10802
10971
|
*/
|
|
10803
|
-
function (
|
|
10804
|
-
this.
|
|
10972
|
+
function () {
|
|
10973
|
+
this.clearTimer();
|
|
10805
10974
|
};
|
|
10806
|
-
|
|
10975
|
+
/**
|
|
10976
|
+
* @param {?} contentData
|
|
10977
|
+
* @return {?}
|
|
10978
|
+
*/
|
|
10979
|
+
CardAssessmentComponent.prototype.getRedirectUrlData = /**
|
|
10980
|
+
* @param {?} contentData
|
|
10981
|
+
* @return {?}
|
|
10982
|
+
*/
|
|
10983
|
+
function (contentData) {
|
|
10984
|
+
// for telemetry
|
|
10985
|
+
if (this.widgetData && this.widgetData.context && this.widgetData.context.pageSection) {
|
|
10986
|
+
contentData['typeOfTelemetry'] = this.widgetData.context.pageSection;
|
|
10987
|
+
}
|
|
10988
|
+
this.contSvc.changeTelemetryData(contentData);
|
|
10989
|
+
// for redirection
|
|
10990
|
+
this.contentData.emit(contentData);
|
|
10991
|
+
};
|
|
10992
|
+
CardAssessmentComponent.decorators = [
|
|
10807
10993
|
{ type: Component, args: [{
|
|
10808
|
-
selector: 'sb-uic-card-
|
|
10809
|
-
template: "<mat-card class=\"
|
|
10810
|
-
styles: [".card-
|
|
10994
|
+
selector: 'sb-uic-card-assessment',
|
|
10995
|
+
template: "<ng-container *ngIf=\"!isCardLoading\">\n<ng-container >\n\t<mat-card class=\"card-assessment card-scheduled-assessment card-users-container padding-remove cursor-pointer mr-4\">\n\t<a (click)=\"getRedirectUrlData(widgetData?.content); $event.stopPropagation()\">\n\t\t<div class=\"display-contents\">\n\t\t\t<ng-container *ngIf=\"widgetData\">\n\t\t\t\t<mat-card-content>\n\t\t\t\t\t<div class=\"flex flex-col h-full\">\n\t\t\t\t\t\t<div class=\"flex flex-1 flex-row padding-s\">\n\t\t\t\t\t\t\t<div class=\"flex image-container\">\n\t\t\t\t\t\t\t\t<ng-container *ngIf=\"widgetData?.content?.posterImage\">\n\t\t\t\t\t\t\t\t\t<img mat-card-image class=\"margin-remove assess-img\" [src]=\"widgetData?.content?.posterImage | pipePublicURL\"\n\t\t\t\t\t\t\t\t\t\t[alt]=\"widgetData?.content?.name\">\n\t\t\t\t\t\t\t\t</ng-container>\n\t\t\t\t\t\t\t\t<ng-container *ngIf=\"!widgetData?.content?.posterImage\">\n\t\t\t\t\t\t\t\t\t<ng-template #defaultImg>\n\t\t\t\t\t\t\t\t\t\t<img mat-card-image [src]=\"defaultThumbnail\" loading=\"lazy\"\n\t\t\t\t\t\t\t\t\t\t\tclass=\"card-wide-img ws-mat-primary-lite-background margin-remove assess-img\"\n\t\t\t\t\t\t\t\t\t\t\t[alt]=\"widgetData?.content?.name\" />\n\t\t\t\t\t\t\t\t\t</ng-template>\n\t\t\t\t\t\t\t\t</ng-container>\n\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"flex title-container flex-col\">\n\t\t\t\t\t\t\t\t<div class=\"flex title-text mat-subheading-1\">\n\t\t\t\t\t\t\t\t\t{{ widgetData?.content?.name }}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"flex margin-remove margin-top-s font-normal mat-caption sub-title-text\">\n\t\t\t\t\t\t\t\t\t<div class=\"course_logo_box\">\n\t\t\t\t\t\t\t\t\t\t<img [src]=\"widgetData?.content?.creatorLogo | pipePublicURL \" class=\"source-icon\"\n\t\t\t\t\t\t\t\t\t\t\t[wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n\t\t\t\t\t\t\t\t\t\t\t[alt]=\"(widgetData?.content?.sourceName + '_' + widgetData?.content?.identifier)\" />\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<span class=\"sub-title-text\">\n\t\t\t\t\t\t\t\t\t\t{{ (widgetData?.content?.organisation && widgetData?.content?.organisation[0]) ?\n\t\t\t\t\t\t\t\t\t\twidgetData?.content?.organisation[0] : 'Karmayogi Bharat' }}\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<span class=\"start-span\">Assessment starts in </span>\n\t\t\t\t\t\t<mat-card-footer class=\"assessment-card-footer padding-m\">\n\t\t\t\t\t\t\t<div class=\"flex flex-1 items-center justify-center col-row margin-top-m\">\n\t\t\t\t\t\t\t\t<div class=\"flex margin-right-m\">\n\t\t\t\t\t\t\t\t\t<span *ngIf=\"daysPending\"> {{ startCountdown(widgetData?.content?.batch?.startDate) }}<div id=\"demo\"></div> </span>\n\t\t\t\t\t\t\t\t\t<span *ngIf=\"!daysPending\" class=\"start-btn\"> Start Assessment\n\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"flex\">\n\t\t\t\t\t\t\t\t\t<span class=\"time-span flex items-center justify-center\">{{widgetData?.content?.batch?.startDate | date: 'd MMM, y' }}</span>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</mat-card-footer>\n\t\t\t\t\t</div>\n\t\t\t\t</mat-card-content>\n\t\t\t</ng-container>\n\t\t</div>\n\t</a>\n</mat-card>\n</ng-container>\n</ng-container>\n\n\n\n<ng-container *ngIf=\"isCardLoading\">\n\t<ng-container [ngTemplateOutlet]=\"skeltonLoader\"></ng-container>\n</ng-container>\n\n<ng-template #skeltonLoader>\n\n\t<mat-card class=\"card-assessment card-scheduled-assessment card-users-container padding-remove cursor-pointer mr-4\">\n\t\t<a>\n\t\t\t<div class=\"display-contents\">\n\t\t\t\t<ng-container>\n\t\t\t\t\t<mat-card-content>\n\t\t\t\t\t\t<div class=\"flex flex-col h-full\">\n\t\t\t\t\t\t\t<div class=\"flex flex-1 flex-row padding-s\">\n\t\t\t\t\t\t\t\t<div class=\"flex image-container\">\n\t\t\t\t\t\t\t\t\t<ng-container>\n\t\t\t\t\t\t\t\t\t\t<sb-uic-skeleton-loader [width]=\"'300px'\" [height]=\"'155px'\"\n\t\t\t\t\t\t\t\t\t\t\t></sb-uic-skeleton-loader>\n\t\t\t\t\t\t\t\t\t</ng-container>\n\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"flex title-container flex-col\">\n\t\t\t\t\t\t\t\t\t<div class=\"flex\">\n\t\t\t\t\t\t\t\t\t\t<sb-uic-skeleton-loader [width]=\"'100px'\" [height]=\"'16px'\"\n\t\t\t\t\t\t\t\t\t\t\t[bindingClass]=\"'flex rounded br-8'\"></sb-uic-skeleton-loader>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class=\"flex margin-remove margin-top-l font-normal\">\n\t\t\t\t\t\t\t\t\t\t<sb-uic-skeleton-loader [width]=\"'100px'\" [height]=\"'16px'\"\n\t\t\t\t\t\t\t\t\t\t\t[bindingClass]=\"'flex rounded br-8'\"></sb-uic-skeleton-loader>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<!-- <span class=\"text-center\"><sb-uic-skeleton-loader [width]=\"'90px'\" [height]=\"'16px'\"\n\t\t\t\t\t\t\t\t\t[bindingClass]=\"'flex rounded br-8'\"></sb-uic-skeleton-loader> </span> -->\n\t\t\t\t\t\t\t<mat-card-footer\n\t\t\t\t\t\t\t\tclass=\"assessment-card-footer col-row padding-l\">\n\t\t\t\t\t\t\t\t<div class=\"flex flex-1 items-center justify-center col-row margin-top-m\">\n\t\t\t\t\t\t\t\t<div class=\"flex margin-right-m\">\n\t\t\t\t\t\t\t\t\t<sb-uic-skeleton-loader [width]=\"'100px'\" [height]=\"'16px'\"\n\t\t\t\t\t\t\t\t\t\t[bindingClass]=\"'flex rounded br-8'\"></sb-uic-skeleton-loader>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"flex\">\n\t\t\t\t\t\t\t\t\t<sb-uic-skeleton-loader [width]=\"'100px'\" [height]=\"'16px'\"\n\t\t\t\t\t\t\t\t\t\t[bindingClass]=\"'flex rounded br-8'\"></sb-uic-skeleton-loader>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</mat-card-footer>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</mat-card-content>\n\t\t\t\t</ng-container>\n\t\t\t</div>\n\t\t</a>\n\t</mat-card>\n</ng-template>",
|
|
10996
|
+
styles: [".card-assessment{width:100%;min-height:190px;box-sizing:border-box;min-width:335px;margin-top:16px}.image-container{width:155px;height:120px;border-radius:8px;overflow:hidden;border:1px solid rgba(0,0,0,.08)}.title-container{margin-left:12px}.title-text{word-break:break-word;white-space:initial;margin:8px 0;position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;max-height:48px;font:600 14px/24px Montserrat}.sub-title-text{width:75%;word-break:break-word;white-space:initial;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.course_logo_box{width:38px;height:38px;background:#fff;border-radius:8px;box-sizing:border-box;margin-right:4px;box-shadow:0 2px 1px -1px rgb(0 0 0 / 20%),0 1px 1px 0 rgb(0 0 0 / 14%),0 1px 3px 0 rgb(0 0 0 / 12%)}.course_logo_box img.source-icon{height:28px;width:28px;padding:5px;display:inline-block}.mat-card-footer{margin:0!important}.time-span{padding:2px 8px;color:#fff;border-radius:4px;text-align:center;font-size:12px;background-color:green}span.start-span{border-radius:50px;border:2px solid rgba(0,0,0,.08);font-size:12px;text-align:center;position:absolute;bottom:0;width:140px;left:50%;margin-left:-70px;background-color:#fff;margin-bottom:62px;margin-right:8px}.assessment-card-footer{background:rgba(239,149,30,.16)!important;text-align:center;box-sizing:border-box}.start-btn{background:#1b4ca1!important;color:#fff;font-size:14px;font-weight:600;border-radius:25px;text-align:center;padding:4px 12px}.dots-container{display:none}"]
|
|
10811
10997
|
}] }
|
|
10812
10998
|
];
|
|
10813
10999
|
/** @nocollapse */
|
|
10814
|
-
|
|
10815
|
-
{ type: EventService },
|
|
10816
|
-
{ type: TranslateService },
|
|
10817
|
-
{ type: MultilingualTranslationsService$1 },
|
|
11000
|
+
CardAssessmentComponent.ctorParameters = function () { return [
|
|
10818
11001
|
{ type: ConfigurationsService$1 },
|
|
10819
|
-
{ type: WidgetContentService }
|
|
10820
|
-
{ type: Router }
|
|
11002
|
+
{ type: WidgetContentService }
|
|
10821
11003
|
]; };
|
|
10822
|
-
|
|
11004
|
+
CardAssessmentComponent.propDecorators = {
|
|
10823
11005
|
widgetData: [{ type: Input }],
|
|
10824
|
-
|
|
10825
|
-
|
|
11006
|
+
enrollmentMapData: [{ type: Input }],
|
|
11007
|
+
contentData: [{ type: Output }],
|
|
11008
|
+
isCardLoading: [{ type: Input }]
|
|
10826
11009
|
};
|
|
10827
|
-
return
|
|
11010
|
+
return CardAssessmentComponent;
|
|
10828
11011
|
}());
|
|
10829
11012
|
if (false) {
|
|
10830
11013
|
/** @type {?} */
|
|
10831
|
-
|
|
11014
|
+
CardAssessmentComponent.prototype.widgetData;
|
|
10832
11015
|
/** @type {?} */
|
|
10833
|
-
|
|
11016
|
+
CardAssessmentComponent.prototype.enrollmentMapData;
|
|
10834
11017
|
/** @type {?} */
|
|
10835
|
-
|
|
11018
|
+
CardAssessmentComponent.prototype.contentData;
|
|
10836
11019
|
/** @type {?} */
|
|
10837
|
-
|
|
11020
|
+
CardAssessmentComponent.prototype.isCardLoading;
|
|
10838
11021
|
/** @type {?} */
|
|
10839
|
-
|
|
11022
|
+
CardAssessmentComponent.prototype.stripData;
|
|
10840
11023
|
/** @type {?} */
|
|
10841
|
-
|
|
11024
|
+
CardAssessmentComponent.prototype.enrollList;
|
|
10842
11025
|
/** @type {?} */
|
|
10843
|
-
|
|
11026
|
+
CardAssessmentComponent.prototype.activeResource;
|
|
10844
11027
|
/** @type {?} */
|
|
10845
|
-
|
|
10846
|
-
/**
|
|
10847
|
-
|
|
10848
|
-
|
|
10849
|
-
|
|
10850
|
-
|
|
10851
|
-
|
|
10852
|
-
|
|
10853
|
-
|
|
10854
|
-
*/
|
|
10855
|
-
CardMdoChannelV1Component.prototype.translate;
|
|
11028
|
+
CardAssessmentComponent.prototype.defaultThumbnail;
|
|
11029
|
+
/** @type {?} */
|
|
11030
|
+
CardAssessmentComponent.prototype.defaultSLogo;
|
|
11031
|
+
/** @type {?} */
|
|
11032
|
+
CardAssessmentComponent.prototype.daysRemaining;
|
|
11033
|
+
/** @type {?} */
|
|
11034
|
+
CardAssessmentComponent.prototype.startDate;
|
|
11035
|
+
/** @type {?} */
|
|
11036
|
+
CardAssessmentComponent.prototype.daysPending;
|
|
10856
11037
|
/**
|
|
10857
11038
|
* @type {?}
|
|
10858
11039
|
* @private
|
|
10859
11040
|
*/
|
|
10860
|
-
|
|
11041
|
+
CardAssessmentComponent.prototype.intervalId;
|
|
10861
11042
|
/**
|
|
10862
11043
|
* @type {?}
|
|
10863
11044
|
* @private
|
|
10864
11045
|
*/
|
|
10865
|
-
|
|
11046
|
+
CardAssessmentComponent.prototype.configSvc;
|
|
10866
11047
|
/**
|
|
10867
11048
|
* @type {?}
|
|
10868
11049
|
* @private
|
|
10869
11050
|
*/
|
|
10870
|
-
|
|
10871
|
-
|
|
10872
|
-
|
|
11051
|
+
CardAssessmentComponent.prototype.contSvc;
|
|
11052
|
+
}
|
|
11053
|
+
|
|
11054
|
+
/**
|
|
11055
|
+
* @fileoverview added by tsickle
|
|
11056
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
11057
|
+
*/
|
|
11058
|
+
var ɵ0$3 = /**
|
|
11059
|
+
* @param {?} id
|
|
11060
|
+
* @return {?}
|
|
11061
|
+
*/
|
|
11062
|
+
function (id) { return "certreg/v2/certs/download/" + id; }, ɵ1$2 = /**
|
|
11063
|
+
* @param {?} id
|
|
11064
|
+
* @return {?}
|
|
11065
|
+
*/
|
|
11066
|
+
function (id) { return "apis/protected/v8/cohorts/course/batch/cert/download/" + id; };
|
|
11067
|
+
/** @type {?} */
|
|
11068
|
+
var urls = {
|
|
11069
|
+
DOWNLOAD_CERTIFICATE: (ɵ0$3),
|
|
11070
|
+
DOWNLOAD_CERTIFICATE_v2: (ɵ1$2),
|
|
11071
|
+
};
|
|
11072
|
+
var CertificateService = /** @class */ (function () {
|
|
11073
|
+
function CertificateService(http) {
|
|
11074
|
+
this.http = http;
|
|
11075
|
+
}
|
|
11076
|
+
/**
|
|
11077
|
+
* @param {?} id
|
|
11078
|
+
* @return {?}
|
|
11079
|
+
*/
|
|
11080
|
+
CertificateService.prototype.downloadCertificate = /**
|
|
11081
|
+
* @param {?} id
|
|
11082
|
+
* @return {?}
|
|
11083
|
+
*/
|
|
11084
|
+
function (id) {
|
|
11085
|
+
return this.http.get(urls.DOWNLOAD_CERTIFICATE(id));
|
|
11086
|
+
};
|
|
11087
|
+
/**
|
|
11088
|
+
* @param {?} id
|
|
11089
|
+
* @return {?}
|
|
11090
|
+
*/
|
|
11091
|
+
CertificateService.prototype.downloadCertificate_v2 = /**
|
|
11092
|
+
* @param {?} id
|
|
11093
|
+
* @return {?}
|
|
11094
|
+
*/
|
|
11095
|
+
function (id) {
|
|
11096
|
+
return this.http.get(urls.DOWNLOAD_CERTIFICATE_v2(id));
|
|
11097
|
+
};
|
|
11098
|
+
CertificateService.decorators = [
|
|
11099
|
+
{ type: Injectable, args: [{
|
|
11100
|
+
providedIn: 'root'
|
|
11101
|
+
},] }
|
|
11102
|
+
];
|
|
11103
|
+
/** @nocollapse */
|
|
11104
|
+
CertificateService.ctorParameters = function () { return [
|
|
11105
|
+
{ type: HttpClient }
|
|
11106
|
+
]; };
|
|
11107
|
+
/** @nocollapse */ CertificateService.ngInjectableDef = ɵɵdefineInjectable({ factory: function CertificateService_Factory() { return new CertificateService(ɵɵinject(HttpClient)); }, token: CertificateService, providedIn: "root" });
|
|
11108
|
+
return CertificateService;
|
|
11109
|
+
}());
|
|
11110
|
+
if (false) {
|
|
11111
|
+
/**
|
|
11112
|
+
* @type {?}
|
|
11113
|
+
* @private
|
|
11114
|
+
*/
|
|
11115
|
+
CertificateService.prototype.http;
|
|
11116
|
+
}
|
|
11117
|
+
|
|
11118
|
+
/**
|
|
11119
|
+
* @fileoverview added by tsickle
|
|
11120
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
11121
|
+
*/
|
|
11122
|
+
var CertificateDialogComponent = /** @class */ (function () {
|
|
11123
|
+
function CertificateDialogComponent(environment, events, translate, langtranslations, dialogRef, data) {
|
|
11124
|
+
var _this = this;
|
|
11125
|
+
this.events = events;
|
|
11126
|
+
this.translate = translate;
|
|
11127
|
+
this.langtranslations = langtranslations;
|
|
11128
|
+
this.dialogRef = dialogRef;
|
|
11129
|
+
this.data = data;
|
|
11130
|
+
this.navUrl = '';
|
|
11131
|
+
this.environment = environment;
|
|
11132
|
+
this.langtranslations.languageSelectedObservable.subscribe((/**
|
|
11133
|
+
* @return {?}
|
|
11134
|
+
*/
|
|
11135
|
+
function () {
|
|
11136
|
+
if (localStorage.getItem('websiteLanguage')) {
|
|
11137
|
+
_this.translate.setDefaultLang('en');
|
|
11138
|
+
/** @type {?} */
|
|
11139
|
+
var lang = (/** @type {?} */ (localStorage.getItem('websiteLanguage')));
|
|
11140
|
+
_this.translate.use(lang);
|
|
11141
|
+
}
|
|
11142
|
+
}));
|
|
11143
|
+
}
|
|
11144
|
+
/**
|
|
11145
|
+
* @return {?}
|
|
11146
|
+
*/
|
|
11147
|
+
CertificateDialogComponent.prototype.ngOnInit = /**
|
|
11148
|
+
* @return {?}
|
|
11149
|
+
*/
|
|
11150
|
+
function () {
|
|
11151
|
+
this.url = this.data.cet;
|
|
11152
|
+
// tslint:disable-next-line:max-line-length
|
|
11153
|
+
this.navUrl = "https://www.linkedin.com/sharing/share-offsite/?url=" + this.environment.contentHost + "/apis/public/v8/cert/download/" + this.data.certId;
|
|
11154
|
+
};
|
|
11155
|
+
/**
|
|
11156
|
+
* @return {?}
|
|
11157
|
+
*/
|
|
11158
|
+
CertificateDialogComponent.prototype.downloadCert = /**
|
|
11159
|
+
* @return {?}
|
|
11160
|
+
*/
|
|
11161
|
+
function () {
|
|
11162
|
+
this.raiseIntreactTelemetry('svg');
|
|
11163
|
+
/** @type {?} */
|
|
11164
|
+
var a = document.createElement('a');
|
|
11165
|
+
a.href = this.data.cet;
|
|
11166
|
+
a.download = 'Certificate';
|
|
11167
|
+
document.body.appendChild(a);
|
|
11168
|
+
a.style = 'display: none';
|
|
11169
|
+
a.click();
|
|
11170
|
+
a.remove();
|
|
11171
|
+
};
|
|
11172
|
+
/**
|
|
11173
|
+
* @return {?}
|
|
11174
|
+
*/
|
|
11175
|
+
CertificateDialogComponent.prototype.downloadCertPng = /**
|
|
11176
|
+
* @return {?}
|
|
11177
|
+
*/
|
|
11178
|
+
function () {
|
|
11179
|
+
this.raiseIntreactTelemetry('png');
|
|
11180
|
+
/** @type {?} */
|
|
11181
|
+
var uriData = this.data.cet;
|
|
11182
|
+
/** @type {?} */
|
|
11183
|
+
var img = new Image();
|
|
11184
|
+
img.src = uriData;
|
|
11185
|
+
img.width = 1820;
|
|
11186
|
+
img.height = 1000;
|
|
11187
|
+
img.onload = (/**
|
|
11188
|
+
* @return {?}
|
|
11189
|
+
*/
|
|
11190
|
+
function () {
|
|
11191
|
+
var _a;
|
|
11192
|
+
/** @type {?} */
|
|
11193
|
+
var canvas = document.createElement('canvas');
|
|
11194
|
+
_a = __read([img.width, img.height], 2), canvas.width = _a[0], canvas.height = _a[1];
|
|
11195
|
+
/** @type {?} */
|
|
11196
|
+
var ctx = canvas.getContext('2d');
|
|
11197
|
+
if (ctx) {
|
|
11198
|
+
// ctx.imageSmoothingEnabled = true
|
|
11199
|
+
ctx.drawImage(img, 0, 0, img.width, img.height);
|
|
11200
|
+
/** @type {?} */
|
|
11201
|
+
var a = document.createElement('a');
|
|
11202
|
+
/** @type {?} */
|
|
11203
|
+
var quality = 1.0 // https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/imageSmoothingQuality
|
|
11204
|
+
;
|
|
11205
|
+
a.href = canvas.toDataURL('image/png', quality);
|
|
11206
|
+
a.download = 'Certificate';
|
|
11207
|
+
a.append(canvas);
|
|
11208
|
+
a.click();
|
|
11209
|
+
a.remove();
|
|
11210
|
+
}
|
|
11211
|
+
});
|
|
11212
|
+
};
|
|
11213
|
+
/**
|
|
11214
|
+
* @return {?}
|
|
11215
|
+
*/
|
|
11216
|
+
CertificateDialogComponent.prototype.downloadCertPdf = /**
|
|
11217
|
+
* @return {?}
|
|
11218
|
+
*/
|
|
11219
|
+
function () {
|
|
11220
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11221
|
+
var uriData, img;
|
|
11222
|
+
return __generator(this, function (_a) {
|
|
11223
|
+
this.raiseIntreactTelemetry('pdf');
|
|
11224
|
+
uriData = this.data.cet;
|
|
11225
|
+
img = new Image();
|
|
11226
|
+
img.src = uriData;
|
|
11227
|
+
img.width = 1820;
|
|
11228
|
+
img.height = 1000;
|
|
11229
|
+
img.onload = (/**
|
|
11230
|
+
* @return {?}
|
|
11231
|
+
*/
|
|
11232
|
+
function () {
|
|
11233
|
+
var _a;
|
|
11234
|
+
/** @type {?} */
|
|
11235
|
+
var canvas = document.createElement('canvas');
|
|
11236
|
+
_a = __read([img.width, img.height], 2), canvas.width = _a[0], canvas.height = _a[1];
|
|
11237
|
+
/** @type {?} */
|
|
11238
|
+
var ctx = canvas.getContext('2d');
|
|
11239
|
+
if (ctx) {
|
|
11240
|
+
ctx.drawImage(img, 0, 0, img.width, img.height);
|
|
11241
|
+
/** @type {?} */
|
|
11242
|
+
var quality = 1.0 // https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/imageSmoothingQuality
|
|
11243
|
+
;
|
|
11244
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/imageSmoothingQuality
|
|
11245
|
+
/** @type {?} */
|
|
11246
|
+
var dataImg = canvas.toDataURL('application/pdf', quality);
|
|
11247
|
+
/** @type {?} */
|
|
11248
|
+
var pdf = new jsPDF('landscape', 'px', 'a4')
|
|
11249
|
+
// add the image to the PDF
|
|
11250
|
+
;
|
|
11251
|
+
// add the image to the PDF
|
|
11252
|
+
pdf.addImage(dataImg, 10, 20, 600, 350);
|
|
11253
|
+
// download the PDF
|
|
11254
|
+
pdf.save('Certificate.pdf');
|
|
11255
|
+
}
|
|
11256
|
+
});
|
|
11257
|
+
return [2 /*return*/];
|
|
11258
|
+
});
|
|
11259
|
+
});
|
|
11260
|
+
};
|
|
11261
|
+
/**
|
|
11262
|
+
* @return {?}
|
|
11263
|
+
*/
|
|
11264
|
+
CertificateDialogComponent.prototype.shareCert = /**
|
|
11265
|
+
* @return {?}
|
|
11266
|
+
*/
|
|
11267
|
+
function () {
|
|
11268
|
+
this.raiseShareIntreactTelemetry('share');
|
|
11269
|
+
return window.open(this.navUrl, '_blank');
|
|
11270
|
+
};
|
|
11271
|
+
/**
|
|
11272
|
+
* @param {?=} type
|
|
11273
|
+
* @param {?=} action
|
|
11274
|
+
* @return {?}
|
|
11275
|
+
*/
|
|
11276
|
+
CertificateDialogComponent.prototype.raiseShareIntreactTelemetry = /**
|
|
11277
|
+
* @param {?=} type
|
|
11278
|
+
* @param {?=} action
|
|
11279
|
+
* @return {?}
|
|
11280
|
+
*/
|
|
11281
|
+
function (type, action) {
|
|
11282
|
+
this.events.raiseInteractTelemetry({
|
|
11283
|
+
type: WsEvents.EnumInteractTypes.CLICK,
|
|
11284
|
+
id: type + "-" + WsEvents.EnumInteractSubTypes.CERTIFICATE,
|
|
11285
|
+
subType: action && action,
|
|
11286
|
+
}, {
|
|
11287
|
+
id: this.data.certId,
|
|
11288
|
+
// id of the certificate
|
|
11289
|
+
type: WsEvents.EnumInteractSubTypes.CERTIFICATE,
|
|
11290
|
+
});
|
|
11291
|
+
};
|
|
11292
|
+
/**
|
|
11293
|
+
* @param {?=} action
|
|
11294
|
+
* @return {?}
|
|
11295
|
+
*/
|
|
11296
|
+
CertificateDialogComponent.prototype.raiseIntreactTelemetry = /**
|
|
11297
|
+
* @param {?=} action
|
|
11298
|
+
* @return {?}
|
|
11299
|
+
*/
|
|
11300
|
+
function (action) {
|
|
11301
|
+
this.events.raiseInteractTelemetry({
|
|
11302
|
+
type: WsEvents.EnumInteractTypes.CLICK,
|
|
11303
|
+
id: 'download-certificate',
|
|
11304
|
+
subType: action && action,
|
|
11305
|
+
}, {
|
|
11306
|
+
id: this.data.certId,
|
|
11307
|
+
// id of the certificate
|
|
11308
|
+
type: WsEvents.EnumInteractSubTypes.CERTIFICATE,
|
|
11309
|
+
});
|
|
11310
|
+
};
|
|
11311
|
+
CertificateDialogComponent.decorators = [
|
|
11312
|
+
{ type: Component, args: [{
|
|
11313
|
+
selector: 'sb-uic-certificate-dialog',
|
|
11314
|
+
template: "<mat-card class=\"no-shadow certificate-img-box\">\n <button mat-icon-button class=\"close-button\" [mat-dialog-close]=\"true\">\n <mat-icon class=\"close-icon\" color=\"warn\">close</mat-icon>\n </button>\n <!-- <mat-card-title>\n\n </mat-card-title> -->\n <mat-card-content class=\"certificate-img-content\">\n <img #certificate [src]=\"url| pipeSafeSanitizer: 'url'\" alt=\"Certificate\" role=\"image\" class=\"certificate-banner-image\">\n </mat-card-content>\n <mat-card-actions class=\"flex flex-row-reverse\">\n <!-- <ws-widget-svg-to-pdf></ws-widget-svg-to-pdf> -->\n <a mat-button (click)=\"shareCert()\" class=\"ws-mat-accent-border-active mat-accent\">\n <mat-icon class=\"mat-icon material-icons-outlined download_icon margin-right-xs\">share</mat-icon>\n Share\n </a>\n <a mat-button [matMenuTriggerFor]=\"menu\" class=\"ws-mat-accent-border-active mat-accent\" (click)=\"raiseIntreactTelemetry()\">\n <mat-icon class=\"mat-icon material-icons-outlined download_icon margin-right-xs\">cloud_download</mat-icon>\n {{'certificatedialog.download' | translate}}\n </a>\n <mat-menu #menu=\"matMenu\">\n <button mat-menu-item (click)='downloadCertPdf()'>\n <mat-icon>picture_as_pdf</mat-icon>\n <span>{{'certificatedialog.pdf' | translate}}</span>\n </button>\n <button mat-menu-item (click)='downloadCertPng()'>\n <mat-icon>photo</mat-icon>\n <span>{{'certificatedialog.png' | translate}}</span>\n </button>\n <button mat-menu-item (click)='downloadCert()'>\n <mat-icon>photo_size_select_actual</mat-icon>\n <span>{{'certificatedialog.svg' | translate}}</span>\n </button>\n </mat-menu>\n </mat-card-actions>\n</mat-card>\n",
|
|
11315
|
+
/* tslint:disable */
|
|
11316
|
+
host: { class: 'certificate-inner-dialog-panel' },
|
|
11317
|
+
styles: [".no-shadow{box-shadow:none!important}.certificate-banner-image{height:30rem;display:flex;width:auto;margin:0 auto}.certificate-img-box{max-height:35rem;overflow-y:auto;overflow-x:hidden}.certificate-img-content{overflow:hidden}a.download_btn{background-color:#f0f0f0;border-radius:4px;float:right;height:40px;padding:0 16px;text-align:center;line-height:40px;text-decoration:none;color:rgba(0,0,0,.6);font-size:14px;font-weight:600;margin-top:16px;margin-right:0}.download_icon{font-size:16px;vertical-align:text-top}.close-icon{transition:1s ease-in-out;color:#fff!important}.close-icon:hover{transform:rotate(180deg)}::ng-deep .icon-outside .close-button{float:right;top:-52px;right:-52px}::ng-deep .icon-outside .mat-dialog-container{overflow:unset}::ng-deep .cdk-overlay-pane{max-height:96%!important;overflow-y:auto!important}.certificate-banner-image svg{width:500;height:500}@media only screen and (max-width:1279px){.certificate-banner-image{width:100%;height:auto;flex:1}.certificate-banner-image svg{width:auto;height:auto;flex:1}}.close-button{float:right;top:-16px;right:-12px;height:30px;width:30px;line-height:30px;background:#000!important;color:#fff!important;border-radius:50%!important}.ws-mat-accent-border{border:1px solid rgba(255,255,255,.08)}.ws-mat-accent-border-active{border:1px solid #1b4ca1;color:#1b4ca1}.mat-button,.mat-flat-button,.mat-icon-button,.mat-stroked-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}"]
|
|
11318
|
+
}] }
|
|
11319
|
+
];
|
|
11320
|
+
/** @nocollapse */
|
|
11321
|
+
CertificateDialogComponent.ctorParameters = function () { return [
|
|
11322
|
+
{ type: undefined, decorators: [{ type: Inject, args: ['environment',] }] },
|
|
11323
|
+
{ type: EventService },
|
|
11324
|
+
{ type: TranslateService },
|
|
11325
|
+
{ type: MultilingualTranslationsService$1 },
|
|
11326
|
+
{ type: MatDialogRef },
|
|
11327
|
+
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
11328
|
+
]; };
|
|
11329
|
+
return CertificateDialogComponent;
|
|
11330
|
+
}());
|
|
11331
|
+
if (false) {
|
|
11332
|
+
/** @type {?} */
|
|
11333
|
+
CertificateDialogComponent.prototype.url;
|
|
11334
|
+
/** @type {?} */
|
|
11335
|
+
CertificateDialogComponent.prototype.navUrl;
|
|
11336
|
+
/** @type {?} */
|
|
11337
|
+
CertificateDialogComponent.prototype.environment;
|
|
11338
|
+
/**
|
|
11339
|
+
* @type {?}
|
|
11340
|
+
* @private
|
|
11341
|
+
*/
|
|
11342
|
+
CertificateDialogComponent.prototype.events;
|
|
11343
|
+
/**
|
|
11344
|
+
* @type {?}
|
|
11345
|
+
* @private
|
|
11346
|
+
*/
|
|
11347
|
+
CertificateDialogComponent.prototype.translate;
|
|
11348
|
+
/**
|
|
11349
|
+
* @type {?}
|
|
11350
|
+
* @private
|
|
11351
|
+
*/
|
|
11352
|
+
CertificateDialogComponent.prototype.langtranslations;
|
|
11353
|
+
/** @type {?} */
|
|
11354
|
+
CertificateDialogComponent.prototype.dialogRef;
|
|
11355
|
+
/** @type {?} */
|
|
11356
|
+
CertificateDialogComponent.prototype.data;
|
|
11357
|
+
}
|
|
11358
|
+
|
|
11359
|
+
/**
|
|
11360
|
+
* @fileoverview added by tsickle
|
|
11361
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
11362
|
+
*/
|
|
11363
|
+
var CardProgressPortraitLibComponent = /** @class */ (function () {
|
|
11364
|
+
function CardProgressPortraitLibComponent(snackBar, translate, events, langtranslations, configSvc, contSvc, certificateService, dialog) {
|
|
11365
|
+
var _this = this;
|
|
11366
|
+
this.snackBar = snackBar;
|
|
11367
|
+
this.translate = translate;
|
|
11368
|
+
this.events = events;
|
|
11369
|
+
this.langtranslations = langtranslations;
|
|
11370
|
+
this.configSvc = configSvc;
|
|
11371
|
+
this.contSvc = contSvc;
|
|
11372
|
+
this.certificateService = certificateService;
|
|
11373
|
+
this.dialog = dialog;
|
|
11374
|
+
this.isCardLoading = false;
|
|
11375
|
+
this.contentData = new EventEmitter();
|
|
11376
|
+
this.isCardFlipped = false;
|
|
11377
|
+
this.acbpConstants = NsCardContent$1.ACBPConst;
|
|
11378
|
+
this.showFlip = false;
|
|
11379
|
+
this.widgetType = 'df';
|
|
11380
|
+
this.widgetSubType = 'sdf';
|
|
11381
|
+
this.downloadCertificateLoading = false;
|
|
11382
|
+
this.langtranslations.languageSelectedObservable.subscribe((/**
|
|
11383
|
+
* @return {?}
|
|
11384
|
+
*/
|
|
11385
|
+
function () {
|
|
11386
|
+
if (localStorage.getItem('websiteLanguage')) {
|
|
11387
|
+
_this.translate.setDefaultLang('en');
|
|
11388
|
+
/** @type {?} */
|
|
11389
|
+
var lang = (/** @type {?} */ (localStorage.getItem('websiteLanguage')));
|
|
11390
|
+
_this.translate.use(lang);
|
|
11391
|
+
}
|
|
11392
|
+
}));
|
|
11393
|
+
}
|
|
11394
|
+
/**
|
|
11395
|
+
* @return {?}
|
|
11396
|
+
*/
|
|
11397
|
+
CardProgressPortraitLibComponent.prototype.ngOnInit = /**
|
|
11398
|
+
* @return {?}
|
|
11399
|
+
*/
|
|
11400
|
+
function () {
|
|
11401
|
+
/** @type {?} */
|
|
11402
|
+
var instanceConfig = this.configSvc.instanceConfig;
|
|
11403
|
+
if (instanceConfig) {
|
|
11404
|
+
this.defaultThumbnail = instanceConfig.logos.defaultContent || '';
|
|
11405
|
+
this.sourceLogos = instanceConfig.sources;
|
|
11406
|
+
this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '';
|
|
11407
|
+
}
|
|
11408
|
+
else {
|
|
11409
|
+
this.defaultThumbnail = '/assets/instances/eagle/app_logos/default.png';
|
|
11410
|
+
this.defaultSLogo = '/assets/instances/eagle/app_logos/KarmayogiBharat_Logo.svg';
|
|
11411
|
+
}
|
|
11412
|
+
};
|
|
11413
|
+
/**
|
|
11414
|
+
* @return {?}
|
|
11415
|
+
*/
|
|
11416
|
+
CardProgressPortraitLibComponent.prototype.showSnackbar = /**
|
|
11417
|
+
* @return {?}
|
|
11418
|
+
*/
|
|
11419
|
+
function () {
|
|
11420
|
+
if (this.showIntranetContent) {
|
|
11421
|
+
this.snackBar.open('Content is only available in intranet', 'X', { duration: 2000 });
|
|
11422
|
+
}
|
|
11423
|
+
else if (!this.isLiveOrMarkForDeletion) {
|
|
11424
|
+
this.snackBar.open('Content may be expired or deleted', 'X', { duration: 2000 });
|
|
11425
|
+
}
|
|
11426
|
+
};
|
|
11427
|
+
/**
|
|
11428
|
+
* @param {?} contentData
|
|
11429
|
+
* @return {?}
|
|
11430
|
+
*/
|
|
11431
|
+
CardProgressPortraitLibComponent.prototype.getRedirectUrlData = /**
|
|
11432
|
+
* @param {?} contentData
|
|
11433
|
+
* @return {?}
|
|
11434
|
+
*/
|
|
11435
|
+
function (contentData) {
|
|
11436
|
+
// for telemetry
|
|
11437
|
+
if (this.widgetData && this.widgetData.context && this.widgetData.context.pageSection) {
|
|
11438
|
+
contentData['typeOfTelemetry'] = this.widgetData.context.pageSection;
|
|
11439
|
+
}
|
|
11440
|
+
this.contSvc.changeTelemetryData(contentData);
|
|
11441
|
+
// for redirection
|
|
11442
|
+
this.contentData.emit(contentData);
|
|
11443
|
+
};
|
|
11444
|
+
/**
|
|
11445
|
+
* @param {?} label
|
|
11446
|
+
* @param {?} type
|
|
11447
|
+
* @param {?=} subtype
|
|
11448
|
+
* @return {?}
|
|
11449
|
+
*/
|
|
11450
|
+
CardProgressPortraitLibComponent.prototype.translateLabels = /**
|
|
11451
|
+
* @param {?} label
|
|
11452
|
+
* @param {?} type
|
|
11453
|
+
* @param {?=} subtype
|
|
11454
|
+
* @return {?}
|
|
11455
|
+
*/
|
|
11456
|
+
function (label, type, subtype) {
|
|
11457
|
+
return this.langtranslations.translateLabelWithoutspace(label, type, subtype);
|
|
11458
|
+
};
|
|
11459
|
+
/**
|
|
11460
|
+
* @return {?}
|
|
11461
|
+
*/
|
|
11462
|
+
CardProgressPortraitLibComponent.prototype.raiseTelemetry = /**
|
|
11463
|
+
* @return {?}
|
|
11464
|
+
*/
|
|
11465
|
+
function () {
|
|
11466
|
+
this.events.raiseInteractTelemetry({
|
|
11467
|
+
type: 'click',
|
|
11468
|
+
subType: this.widgetType + "-" + this.widgetSubType,
|
|
11469
|
+
id: camelCase(this.widgetData.content.primaryCategory) + "-card",
|
|
11470
|
+
}, {
|
|
11471
|
+
id: this.widgetData.content.identifier,
|
|
11472
|
+
type: this.widgetData.content.primaryCategory,
|
|
11473
|
+
//context: this.widgetData.context,
|
|
11474
|
+
rollup: {},
|
|
11475
|
+
ver: "" + this.widgetData.content.version + '',
|
|
11476
|
+
}, {
|
|
11477
|
+
pageIdExt: camelCase(this.widgetData.content.primaryCategory) + "-card",
|
|
11478
|
+
module: camelCase(this.widgetData.content.primaryCategory),
|
|
11479
|
+
});
|
|
11480
|
+
};
|
|
11481
|
+
/**
|
|
11482
|
+
* @param {?} certificateData
|
|
11483
|
+
* @return {?}
|
|
11484
|
+
*/
|
|
11485
|
+
CardProgressPortraitLibComponent.prototype.downloadCertificate = /**
|
|
11486
|
+
* @param {?} certificateData
|
|
11487
|
+
* @return {?}
|
|
11488
|
+
*/
|
|
11489
|
+
function (certificateData) {
|
|
11490
|
+
var _this = this;
|
|
11491
|
+
this.events.raiseInteractTelemetry({
|
|
11492
|
+
type: WsEvents.EnumInteractTypes.CLICK,
|
|
11493
|
+
id: 'view-certificate',
|
|
11494
|
+
subType: WsEvents.EnumInteractSubTypes.CERTIFICATE,
|
|
11495
|
+
}, {
|
|
11496
|
+
id: certificateData.issuedCertificates[0].identifier,
|
|
11497
|
+
// id of the certificate
|
|
11498
|
+
type: WsEvents.EnumInteractSubTypes.CERTIFICATE,
|
|
11499
|
+
});
|
|
11500
|
+
if (certificateData.issuedCertificates.length > 0) {
|
|
11501
|
+
this.downloadCertificateLoading = true;
|
|
11502
|
+
/** @type {?} */
|
|
11503
|
+
var certData_1 = certificateData.issuedCertificates[0];
|
|
11504
|
+
this.certificateService.downloadCertificate_v2(certData_1.identifier).subscribe((/**
|
|
11505
|
+
* @param {?} res
|
|
11506
|
+
* @return {?}
|
|
11507
|
+
*/
|
|
11508
|
+
function (res) {
|
|
11509
|
+
_this.downloadCertificateLoading = false;
|
|
11510
|
+
/** @type {?} */
|
|
11511
|
+
var cet = res.result.printUri;
|
|
11512
|
+
_this.dialog.open(CertificateDialogComponent, {
|
|
11513
|
+
width: '1300px',
|
|
11514
|
+
data: { cet: cet, certId: certData_1.identifier },
|
|
11515
|
+
});
|
|
11516
|
+
}));
|
|
11517
|
+
}
|
|
11518
|
+
else {
|
|
11519
|
+
this.downloadCertificateLoading = false;
|
|
11520
|
+
}
|
|
11521
|
+
};
|
|
11522
|
+
CardProgressPortraitLibComponent.decorators = [
|
|
11523
|
+
{ type: Component, args: [{
|
|
11524
|
+
selector: 'sb-uic-card-progress-portrait-lib',
|
|
11525
|
+
template: "<ng-container *ngIf=\"!isCardLoading\">\n <mat-card class=\"card-portrait card-progress-portrait-lib cursor-pointer\" [ngClass]=\"widgetData?.cardCustomeClass ? widgetData?.cardCustomeClass : ''\" (click)=\"raiseTelemetry();getRedirectUrlData(widgetData?.content); $event.stopPropagation()\" >\n <div class=\"course_widget portrait_widget flex margin-bottom-xs\">\n <div class=\"flex flex-end flex-middle course_port\">\n <mat-icon class=\"mat-icon main_icon ws-mat-default-text margin-right-xs\">video_library</mat-icon>\n <sb-uic-display-content-type i18n-title title=\"Content Type\" *ngIf=\"widgetData?.content?.primaryCategory\"\n class=\"ws-mat-black60-text font-normal mat-caption \" [displayContentType]=\"widgetData?.content?.primaryCategory==='Course Unit'\n ?'Module'\n :widgetData?.content?.primaryCategory\">\n </sb-uic-display-content-type>\n </div>\n </div>\n <div class=\"flex\">\n <div class=\"margin-right-s\">\n <ng-container *ngIf=\"widgetData?.content?.posterImage\">\n <div class=\" img-block-portrait position-relative\">\n <img mat-card-image [src]=\"widgetData?.content?.posterImage | pipePublicURL\" loading=\"lazy\"\n class=\"card-image ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData?.content?.name\" />\n <div class=\"duration-box right-corner-portrait\" *ngIf=\"widgetData?.content?.duration > 0\">\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\n <span class=\" ws-mat-white-text duration\">\n {{ (widgetData?.content?.duration || 120)| pipeDurationTransform: 'hms' }}\n </span>\n </div>\n <div class=\"duration-box right-corner-portrait\" *ngIf=\"widgetData?.content?.programDuration > 0\">\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\n <span class=\" ws-mat-white-text duration\">\n {{widgetData?.content?.programDuration}} {{widgetData?.content?.programDuration === 1 ? 'day' : 'days'}}\n </span>\n </div>\n <ng-container *ngIf=\"cbPlanMapData && cbPlanMapData[widgetData?.content?.identifier]\">\n <ng-container [ngTemplateOutlet]=\"cbpPlan\" [ngTemplateOutletContext]=\"{data: {\n cbpData: cbPlanMapData[widgetData?.content?.identifier]\n }}\"></ng-container>\n </ng-container>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!widgetData?.content?.posterImage\">\n <ng-container *ngIf=\"widgetData?.content?.appIcon; else defaultImg\">\n <img mat-card-image [src]=\"widgetData?.content?.appIcon | pipePublicURL\" loading=\"lazy\"\n class=\"card-image ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData?.content?.name\" />\n </ng-container>\n <ng-template #defaultImg>\n <img mat-card-image [src]=\"defaultThumbnail\" loading=\"lazy\"\n class=\"card-image ws-mat-primary-lite-background margin-remove\"\n [alt]=\"widgetData?.content?.name\" />\n </ng-template>\n </ng-container>\n </div>\n <div class=\"width-1-1\">\n <div [id]=\"'m-c-'+ widgetData?.content?.identifier\"\n class=\"portrait-subheading mat-subheading-2 title-text\">\n {{ widgetData?.content?.name }}\n </div>\n <div class=\"flex w-full flex-middle\">\n <div class=\"portrait_course_logo_box margin-right-xs\">\n <img [src]=\"widgetData?.content?.creatorLogo | pipePublicURL \" class=\"source-icon\" loading=\"lazy\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData?.content?.sourceName + '_' + widgetData?.content?.identifier)\" />\n </div>\n <span class=\"portrait-org-name font-normal mat-caption\">{{'cardcontentv2.by' | translate}} {{ (widgetData?.content?.organisation && widgetData?.content?.organisation[0]) ? widgetData?.content?.organisation[0] : 'Karmayogi Bharat' }}</span>\n </div>\n\n </div>\n </div>\n <ng-container *ngIf=\"widgetData?.content?.completionPercentage < 100\">\n <div class=\"flex flex-align-end progress-wrapper flex-between\" >\n <div class=\"progress-block\" >\n <div class=\"completed-time\">\n <mat-icon class=\"mat-icon schedule margin-right-xs\">schedule</mat-icon>\n <span>{{widgetData?.content?.completionPercentage}}%</span>\n </div>\n <div>\n <ng-container *ngIf=\"widgetData?.content?.completionStatus < 2\">\n <sb-uic-content-progress class=\"progress-bar-new\" [customClassName]=\"'course-progress-bar'\" *ngIf=\"widgetData?.content?.identifier\"\n [contentId]=\"widgetData?.content?.identifier\" [progress]=\"widgetData?.content?.completionPercentage\"\n [progressType]=\"'percentage'\">\n </sb-uic-content-progress>\n </ng-container>\n </div>\n </div>\n <div class=\"progress-btn\">\n <button class=\"resume-btn flex flex-middle flex-between\" [routerLink]=\"['/app/toc/',widgetData?.content?.identifier,'overview']\"\n [queryParams]=\"{primaryCategory: widgetData?.content?.primaryCategory}\" [state]=\"widgetData?.stateData\" \n [matTooltipPosition]=\"'below'\"\n [matTooltipDisabled]=\"(!widgetData?.content?.completionPercentage ? translateLabels('start', 'cardcontentv2') : translateLabels('resume', 'cardcontentv2')).length < 11\"\n matTooltip=\"{{!widgetData?.content?.completionPercentage ? translateLabels('start', 'cardcontentv2') : translateLabels('resume', 'cardcontentv2')}}\">\n <span class=\"textwrap margin-right-xs\">\n {{!widgetData?.content?.completionPercentage ? translateLabels('start', 'cardcontentv2') : translateLabels('resume', 'cardcontentv2')}}</span>\n <img class=\"stats-icon\" height=\"20\" width=\"20\" src=\"/assets/icons/home/play.svg\">\n </button>\n </div>\n </div>\n </ng-container>\n <ng-container *ngIf=\"widgetData?.content?.completionPercentage === 100\">\n <div class=\"flex flex-align-end progress-wrapper flex-end mt-1\">\n <div class=\"progress-btn\">\n <button class=\"resume-btn flex flex-middle flex-between view-btn\" [ngClass]=\"{'disable-btn': downloadCertificateLoading || widgetData?.content?.issuedCertificates?.length === 0}\" (click)=\"!downloadCertificateLoading && downloadCertificate(widgetData?.content);$event.stopPropagation()\" \n [matTooltipPosition]=\"'below'\"\n [matTooltipDisabled]=\"(translateLabels('viewCertificate', 'cardcontentv2')).length < 11\"\n matTooltip=\"{{'cardcontentv2.viewCertificate' | translate }}\">\n <span class=\"margin-right-xs textwrap\">{{'cardcontentv2.viewCertificate' | translate }}</span>\n <img class=\"stats-icon\" *ngIf=\"!downloadCertificateLoading\" height=\"20\" width=\"20\" src=\"/assets/icons/home/eye-white.svg\">\n <div class=\"center flex flex-middle\" *ngIf=\"downloadCertificateLoading\">\n <mat-spinner strokeWidth=\"2\" stroke=\"'red'\" class=\"white-spinner\" [diameter]=\"16\"></mat-spinner>\n </div>\n </button>\n </div>\n </div>\n </ng-container>\n </mat-card>\n</ng-container>\n\n\n<ng-template #cbpPlan let-data=\"data\">\n <div class=\"cbp-mark left-0 border-top-radius\">\n <p *ngIf=\"data.cbpData.planDuration === acbpConstants?.UPCOMING\" class=\"cbp-warning\">{{data.cbpData.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"data.cbpData.planDuration === acbpConstants?.SUCCESS\" class=\"cbp-success\">{{data.cbpData.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"data.cbpData.planDuration === acbpConstants?.OVERDUE\" class=\"cbp-danger\">{{'OverDue' }}</p>\n </div>\n</ng-template>\n\n<ng-container *ngIf=\"isCardLoading\">\n <mat-card class=\"card-portrait\" [ngClass]=\"widgetData.cardCustomeClass ? widgetData.cardCustomeClass : ''\">\n <div class=\"margin-bottom-xs\">\n <ng-container>\n <sb-uic-skeleton-loader [width]=\"'147px'\" [height]=\"'26px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </ng-container>\n </div>\n <div class=\"flex\">\n <div class=\"margin-right-s\">\n <ng-container>\n <sb-uic-skeleton-loader [width]=\"'147px'\" [height]=\"'98px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </ng-container>\n </div>\n <div class=\"width-1-1\">\n <div class=\"portrait-subheading title-text\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded width-1-1'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"flex w-full flex-wrap flex-middle\">\n <div class=\" margin-right-xs\">\n <sb-uic-skeleton-loader [width]=\"'24px'\" [height]=\"'24px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n <span class=\"\"><sb-uic-skeleton-loader [width]=\"'133px'\" [height]=\"'12px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader></span>\n </div>\n <div class=\"portrait_widget flex margin-top-xs\">\n <div class=\"flex flex-end flex-middle\">\n <sb-uic-skeleton-loader [width]=\"'65px'\" [height]=\"'12px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n <div class=\"flex flex-align-end progress-wrapper flex-between\">\n <div class=\"progress-block\">\n <div class=\"completed-time\">\n <sb-uic-skeleton-loader [width]=\"'211px'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded margin-top-xs md:w-211'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n <div class=\"progress-btn\">\n <sb-uic-skeleton-loader [width]=\"'117px'\" [height]=\"'32px'\" [bindingClass]=\"'flex rounded margin-top-xs'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </mat-card>\n</ng-container>",
|
|
11526
|
+
styles: [".card-portrait{border-radius:12px;border:1px solid rgba(0,0,0,.08);opacity:1;width:318px;min-height:154px;padding:16px}.card-portrait .img-block-portrait{line-height:10px}.card-portrait .card-image{border-radius:8px;opacity:1;background-size:100%;width:147px;height:100px}.card-portrait .portrait-subheading{opacity:1;color:rgba(0,0,0,.87);font-weight:700;font-style:normal;letter-spacing:.25px;text-align:left;word-break:break-word;white-space:initial;margin:0 0 8px;position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:40px}.card-portrait .portrait_course_logo_box img{padding:3px;display:inline-block;width:24px;height:24px;border:1px solid #d6d6d6;border-radius:4px;box-sizing:border-box}.card-portrait span.portrait-org-name{width:75%;word-break:break-all;white-space:initial;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.card-portrait .portrait_widget{align-items:center;margin-top:0}.card-portrait .portrait_widget .course_port{border:1px solid #ef951e;padding:4px 8px;align-items:center;border-radius:16px}.card-portrait .portrait_widget .video-icon{opacity:1;color:#ef951e;width:15px;height:15px;font-size:15px}.card-portrait .portrait_widget .portrait-category{color:rgba(0,0,0,.6)!important;font-size:.75rem;opacity:1;font-family:Lato-Regular;font-weight:400;font-style:normal;letter-spacing:.25px;text-align:left;line-height:20px}.card-portrait .progress-wrapper .progress-block{width:60%}.card-portrait .progress-wrapper .progress-block .completed-time{color:#ef951e;display:flex;padding:8px 0}.card-portrait .progress-wrapper .progress-block .completed-time mat-icon{width:1rem;height:1rem;font-size:1rem}.card-portrait .progress-wrapper .progress-block .completed-time span{opacity:1;color:rgba(0,0,0,.87);font-family:Lato-Regular;font-size:.75rem;font-weight:400;font-style:normal;letter-spacing:.25px;text-align:left;line-height:16px}.card-portrait .progress-wrapper .progress-btn .resume-btn{opacity:1;color:#fff;font-family:Lato-Bold;font-size:14px;font-weight:700;font-style:normal;letter-spacing:.5px;text-align:left;line-height:20px;background:#1a4ca1;border-radius:63px;padding:6px 16px;border:none;width:100%;cursor:pointer}.card-portrait .progress-wrapper .progress-btn .resume-btn .textwrap{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:82px}.card-portrait .progress-wrapper .progress-btn .resume-btn:hover{background-color:#253379}.card-portrait .progress-bar-new{color:#ef951e!important;height:10px;border-radius:5px}.card-portrait .rating-session mat-icon{font-size:20px;height:20px;width:20px;color:#ef951e}.card-portrait .rating-session .rating-number{font-size:14px}.card-portrait .rating-session .most-enrolled-text{font-size:10px;font-weight:400;padding:4px;background:#ffea9e;border-radius:4px;line-height:12px}.card-portrait .right-corner-portrait{right:8px;bottom:8px}.course_widget{margin-top:10px}.course_widget .mat-icon{vertical-align:middle;color:#ef951e!important}.course_widget .course_v2{border:1px solid #ef951e;padding:4px 8px;align-items:end;border-radius:16px}.course_widget .main_icon{font-size:16px;width:16px;height:16px}.rating-session mat-icon{font-size:16px;height:16px;width:12px;padding-right:3px;color:#ef951e}.rating-session span{font-size:11px}.rating-session .most-enrolled-text{padding:0 8px;background:#ffea9e;border-radius:4px}.duration-box{background:#000;position:absolute;border:none;display:flex;align-items:center;padding:4px;border-radius:4px}.duration-box.right-corner{right:4px;bottom:4px}.duration-box .mat-icon{vertical-align:middle;color:#fff!important;height:14px!important;width:14px!important;font-size:14px}.duration-box .duration{font:700 12px/16px Lato;display:inline-block;margin:0;padding:0}"]
|
|
11527
|
+
}] }
|
|
11528
|
+
];
|
|
11529
|
+
/** @nocollapse */
|
|
11530
|
+
CardProgressPortraitLibComponent.ctorParameters = function () { return [
|
|
11531
|
+
{ type: MatSnackBar },
|
|
11532
|
+
{ type: TranslateService },
|
|
11533
|
+
{ type: EventService },
|
|
11534
|
+
{ type: MultilingualTranslationsService },
|
|
11535
|
+
{ type: ConfigurationsService$1 },
|
|
11536
|
+
{ type: WidgetContentService },
|
|
11537
|
+
{ type: CertificateService },
|
|
11538
|
+
{ type: MatDialog }
|
|
11539
|
+
]; };
|
|
11540
|
+
CardProgressPortraitLibComponent.propDecorators = {
|
|
11541
|
+
widgetData: [{ type: Input }],
|
|
11542
|
+
isLiveOrMarkForDeletion: [{ type: Input }],
|
|
11543
|
+
showIntranetContent: [{ type: Input }],
|
|
11544
|
+
isIntranetAllowedSettings: [{ type: Input }],
|
|
11545
|
+
isCardLoading: [{ type: Input }],
|
|
11546
|
+
contentData: [{ type: Output }],
|
|
11547
|
+
cbPlanMapData: [{ type: Input }]
|
|
11548
|
+
};
|
|
11549
|
+
return CardProgressPortraitLibComponent;
|
|
11550
|
+
}());
|
|
11551
|
+
if (false) {
|
|
11552
|
+
/** @type {?} */
|
|
11553
|
+
CardProgressPortraitLibComponent.prototype.widgetData;
|
|
11554
|
+
/** @type {?} */
|
|
11555
|
+
CardProgressPortraitLibComponent.prototype.isLiveOrMarkForDeletion;
|
|
11556
|
+
/** @type {?} */
|
|
11557
|
+
CardProgressPortraitLibComponent.prototype.showIntranetContent;
|
|
11558
|
+
/** @type {?} */
|
|
11559
|
+
CardProgressPortraitLibComponent.prototype.isIntranetAllowedSettings;
|
|
11560
|
+
/** @type {?} */
|
|
11561
|
+
CardProgressPortraitLibComponent.prototype.isCardLoading;
|
|
11562
|
+
/** @type {?} */
|
|
11563
|
+
CardProgressPortraitLibComponent.prototype.contentData;
|
|
11564
|
+
/** @type {?} */
|
|
11565
|
+
CardProgressPortraitLibComponent.prototype.cbPlanMapData;
|
|
11566
|
+
/** @type {?} */
|
|
11567
|
+
CardProgressPortraitLibComponent.prototype.isCardFlipped;
|
|
11568
|
+
/** @type {?} */
|
|
11569
|
+
CardProgressPortraitLibComponent.prototype.acbpConstants;
|
|
11570
|
+
/** @type {?} */
|
|
11571
|
+
CardProgressPortraitLibComponent.prototype.defaultThumbnail;
|
|
11572
|
+
/** @type {?} */
|
|
11573
|
+
CardProgressPortraitLibComponent.prototype.sourceLogos;
|
|
11574
|
+
/** @type {?} */
|
|
11575
|
+
CardProgressPortraitLibComponent.prototype.defaultSLogo;
|
|
11576
|
+
/** @type {?} */
|
|
11577
|
+
CardProgressPortraitLibComponent.prototype.showFlip;
|
|
11578
|
+
/** @type {?} */
|
|
11579
|
+
CardProgressPortraitLibComponent.prototype.widgetType;
|
|
11580
|
+
/** @type {?} */
|
|
11581
|
+
CardProgressPortraitLibComponent.prototype.widgetSubType;
|
|
11582
|
+
/** @type {?} */
|
|
11583
|
+
CardProgressPortraitLibComponent.prototype.downloadCertificateLoading;
|
|
11584
|
+
/**
|
|
11585
|
+
* @type {?}
|
|
11586
|
+
* @private
|
|
11587
|
+
*/
|
|
11588
|
+
CardProgressPortraitLibComponent.prototype.snackBar;
|
|
11589
|
+
/**
|
|
11590
|
+
* @type {?}
|
|
11591
|
+
* @private
|
|
11592
|
+
*/
|
|
11593
|
+
CardProgressPortraitLibComponent.prototype.translate;
|
|
11594
|
+
/**
|
|
11595
|
+
* @type {?}
|
|
11596
|
+
* @private
|
|
11597
|
+
*/
|
|
11598
|
+
CardProgressPortraitLibComponent.prototype.events;
|
|
11599
|
+
/**
|
|
11600
|
+
* @type {?}
|
|
11601
|
+
* @private
|
|
11602
|
+
*/
|
|
11603
|
+
CardProgressPortraitLibComponent.prototype.langtranslations;
|
|
11604
|
+
/**
|
|
11605
|
+
* @type {?}
|
|
11606
|
+
* @private
|
|
11607
|
+
*/
|
|
11608
|
+
CardProgressPortraitLibComponent.prototype.configSvc;
|
|
11609
|
+
/**
|
|
11610
|
+
* @type {?}
|
|
11611
|
+
* @private
|
|
11612
|
+
*/
|
|
11613
|
+
CardProgressPortraitLibComponent.prototype.contSvc;
|
|
11614
|
+
/**
|
|
11615
|
+
* @type {?}
|
|
11616
|
+
* @private
|
|
11617
|
+
*/
|
|
11618
|
+
CardProgressPortraitLibComponent.prototype.certificateService;
|
|
11619
|
+
/**
|
|
11620
|
+
* @type {?}
|
|
11621
|
+
* @private
|
|
11622
|
+
*/
|
|
11623
|
+
CardProgressPortraitLibComponent.prototype.dialog;
|
|
11624
|
+
}
|
|
11625
|
+
|
|
11626
|
+
/**
|
|
11627
|
+
* @fileoverview added by tsickle
|
|
11628
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
11629
|
+
*/
|
|
11630
|
+
var ContentProgressComponent = /** @class */ (function () {
|
|
11631
|
+
function ContentProgressComponent() {
|
|
11632
|
+
this.contentId = '';
|
|
11633
|
+
this.progress = 0;
|
|
11634
|
+
this.progressType = '';
|
|
11635
|
+
this.forPreview = false;
|
|
11636
|
+
this.className = '';
|
|
11637
|
+
this.customClassName = 'accent-progress';
|
|
11638
|
+
this.rendom = Math.random();
|
|
11639
|
+
this.id = "progress_" + Math.random();
|
|
11640
|
+
if (this.contentId) {
|
|
11641
|
+
this.id = this.contentId;
|
|
11642
|
+
}
|
|
11643
|
+
}
|
|
11644
|
+
/**
|
|
11645
|
+
* @return {?}
|
|
11646
|
+
*/
|
|
11647
|
+
ContentProgressComponent.prototype.ngOnChanges = /**
|
|
11648
|
+
* @return {?}
|
|
11649
|
+
*/
|
|
11650
|
+
function () {
|
|
11651
|
+
if (this.contentId && !this.progress && !this.forPreview) {
|
|
11652
|
+
// this.progressSvc.getProgressFor(this.contentId).subscribe(data => {
|
|
11653
|
+
// this.progress = data
|
|
11654
|
+
// if (this.progress) {
|
|
11655
|
+
// this.progress = Math.round(this.progress * 10000) / 100
|
|
11656
|
+
// }
|
|
11657
|
+
// })
|
|
11658
|
+
}
|
|
11659
|
+
if (this.progress) {
|
|
11660
|
+
if (this.progressType === 'percentage') {
|
|
11661
|
+
this.progress = this.progress;
|
|
11662
|
+
}
|
|
11663
|
+
else {
|
|
11664
|
+
this.progress = Math.round(this.progress * 10000) / 100;
|
|
11665
|
+
}
|
|
11666
|
+
}
|
|
11667
|
+
};
|
|
11668
|
+
ContentProgressComponent.decorators = [
|
|
11669
|
+
{ type: Component, args: [{
|
|
11670
|
+
selector: 'sb-uic-content-progress',
|
|
11671
|
+
template: "<mat-progress-bar [mode]=\"'determinate'\" [matTooltip]=\"progress + ' %'\" [value]=\"progress\" class=\"new-w content-progress {{customClassName}}\"\n [attr.aria-labelledby]=\"'m-c-'+ contentId\" [ngClass]=\"{ 'visibility-0': progress === undefined, 'thick': className}\"\n i18n-aria-label> {{ progress }} % </mat-progress-bar>",
|
|
11672
|
+
/* tslint:disable */
|
|
11673
|
+
host: {
|
|
11674
|
+
// Sets the role for this component to "progressbar"
|
|
11675
|
+
role: 'progressbar',
|
|
11676
|
+
// Sets the minimum and maximum values for the progressbar role.
|
|
11677
|
+
'aria-valuemin': '0',
|
|
11678
|
+
'aria-valuemax': '100',
|
|
11679
|
+
'title': 'progres',
|
|
11680
|
+
// Binding that updates the current value of the progressbar.
|
|
11681
|
+
'[attr.aria-valuenow]': 'progress',
|
|
11682
|
+
},
|
|
11683
|
+
styles: [".visibility-0{display:none}::ng-deep.mat-progress-bar.thick{height:10px}::ng-deep.theme-igot.day-mode .mat-progress-bar-fill::after{background:no-repeat padding-box #34d6a4}::ng-deep.theme-igot.day-mode .mat-progress-bar-background{fill:rgba(0,0,0,.001)!important}::ng-deep.theme-igot.day-mode .mat-progress-bar-buffer{background-color:rgba(0,0,0,.1)!important}::ng-deep .content-progress .mat-progress-bar-fill::after{background:#f69953!important}::ng-deep.theme-igot.day-mode .viewer-progress .mat-progress-bar-background{fill:rgba(0,0,0,.1)!important}::ng-deep.theme-igot.day-mode .viewer-progress .mat-progress-bar-buffer{background-color:rgba(0,0,0,.1)!important}::ng-deep.mat-progress-bar.viewer-progress{height:4px;border-radius:5px}"]
|
|
11684
|
+
}] }
|
|
11685
|
+
];
|
|
11686
|
+
/** @nocollapse */
|
|
11687
|
+
ContentProgressComponent.ctorParameters = function () { return []; };
|
|
11688
|
+
ContentProgressComponent.propDecorators = {
|
|
11689
|
+
contentId: [{ type: Input }],
|
|
11690
|
+
progress: [{ type: Input }],
|
|
11691
|
+
progressType: [{ type: Input }],
|
|
11692
|
+
forPreview: [{ type: Input }],
|
|
11693
|
+
className: [{ type: Input }],
|
|
11694
|
+
customClassName: [{ type: Input }],
|
|
11695
|
+
id: [{ type: HostBinding, args: ['id',] }]
|
|
11696
|
+
};
|
|
11697
|
+
return ContentProgressComponent;
|
|
11698
|
+
}());
|
|
11699
|
+
if (false) {
|
|
11700
|
+
/** @type {?} */
|
|
11701
|
+
ContentProgressComponent.prototype.contentId;
|
|
11702
|
+
/** @type {?} */
|
|
11703
|
+
ContentProgressComponent.prototype.progress;
|
|
11704
|
+
/** @type {?} */
|
|
11705
|
+
ContentProgressComponent.prototype.progressType;
|
|
11706
|
+
/** @type {?} */
|
|
11707
|
+
ContentProgressComponent.prototype.forPreview;
|
|
11708
|
+
/** @type {?} */
|
|
11709
|
+
ContentProgressComponent.prototype.className;
|
|
11710
|
+
/** @type {?} */
|
|
11711
|
+
ContentProgressComponent.prototype.customClassName;
|
|
11712
|
+
/** @type {?} */
|
|
11713
|
+
ContentProgressComponent.prototype.rendom;
|
|
11714
|
+
/** @type {?} */
|
|
11715
|
+
ContentProgressComponent.prototype.id;
|
|
11716
|
+
}
|
|
11717
|
+
|
|
11718
|
+
/**
|
|
11719
|
+
* @fileoverview added by tsickle
|
|
11720
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
11721
|
+
*/
|
|
11722
|
+
var ContentProgressModule = /** @class */ (function () {
|
|
11723
|
+
function ContentProgressModule() {
|
|
11724
|
+
}
|
|
11725
|
+
ContentProgressModule.decorators = [
|
|
11726
|
+
{ type: NgModule, args: [{
|
|
11727
|
+
declarations: [ContentProgressComponent],
|
|
11728
|
+
imports: [
|
|
11729
|
+
CommonModule,
|
|
11730
|
+
MatProgressBarModule,
|
|
11731
|
+
MatTooltipModule,
|
|
11732
|
+
],
|
|
11733
|
+
exports: [ContentProgressComponent],
|
|
11734
|
+
},] }
|
|
11735
|
+
];
|
|
11736
|
+
return ContentProgressModule;
|
|
11737
|
+
}());
|
|
11738
|
+
|
|
11739
|
+
/**
|
|
11740
|
+
* @fileoverview added by tsickle
|
|
11741
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
11742
|
+
*/
|
|
11743
|
+
var ɵ0$4 = HttpLoaderFactory;
|
|
11744
|
+
var DialogComponentsModule = /** @class */ (function () {
|
|
11745
|
+
function DialogComponentsModule() {
|
|
11746
|
+
}
|
|
11747
|
+
DialogComponentsModule.decorators = [
|
|
11748
|
+
{ type: NgModule, args: [{
|
|
11749
|
+
declarations: [
|
|
11750
|
+
CertificateDialogComponent
|
|
11751
|
+
],
|
|
11752
|
+
imports: [
|
|
11753
|
+
CommonModule,
|
|
11754
|
+
MatMenuModule,
|
|
11755
|
+
MatCardModule,
|
|
11756
|
+
MatIconModule,
|
|
11757
|
+
MatDialogModule,
|
|
11758
|
+
PipeSafeSanitizerModule,
|
|
11759
|
+
TranslateModule.forRoot({
|
|
11760
|
+
loader: {
|
|
11761
|
+
provide: TranslateLoader,
|
|
11762
|
+
useFactory: ɵ0$4,
|
|
11763
|
+
deps: [HttpClient],
|
|
11764
|
+
},
|
|
11765
|
+
}),
|
|
11766
|
+
],
|
|
11767
|
+
exports: [
|
|
11768
|
+
CertificateDialogComponent
|
|
11769
|
+
],
|
|
11770
|
+
entryComponents: [CertificateDialogComponent],
|
|
11771
|
+
},] }
|
|
11772
|
+
];
|
|
11773
|
+
return DialogComponentsModule;
|
|
11774
|
+
}());
|
|
11775
|
+
|
|
11776
|
+
/**
|
|
11777
|
+
* @fileoverview added by tsickle
|
|
11778
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
11779
|
+
*/
|
|
11780
|
+
var CardMdoChannelV1Component = /** @class */ (function () {
|
|
11781
|
+
function CardMdoChannelV1Component(events, translate, langtranslations, configSvc, contSvc, router) {
|
|
11782
|
+
var _this = this;
|
|
11783
|
+
this.events = events;
|
|
11784
|
+
this.translate = translate;
|
|
11785
|
+
this.langtranslations = langtranslations;
|
|
11786
|
+
this.configSvc = configSvc;
|
|
11787
|
+
this.contSvc = contSvc;
|
|
11788
|
+
this.router = router;
|
|
11789
|
+
this.channelData = new EventEmitter();
|
|
11790
|
+
this.emitTelemetry = new EventEmitter();
|
|
11791
|
+
this.widgetType = '';
|
|
11792
|
+
this.widgetSubType = '';
|
|
11793
|
+
this.langtranslations.languageSelectedObservable.subscribe((/**
|
|
11794
|
+
* @return {?}
|
|
11795
|
+
*/
|
|
11796
|
+
function () {
|
|
11797
|
+
if (localStorage.getItem('websiteLanguage')) {
|
|
11798
|
+
_this.translate.setDefaultLang('en');
|
|
11799
|
+
/** @type {?} */
|
|
11800
|
+
var lang = (/** @type {?} */ (localStorage.getItem('websiteLanguage')));
|
|
11801
|
+
_this.translate.use(lang);
|
|
11802
|
+
}
|
|
11803
|
+
}));
|
|
11804
|
+
}
|
|
11805
|
+
/**
|
|
11806
|
+
* @return {?}
|
|
11807
|
+
*/
|
|
11808
|
+
CardMdoChannelV1Component.prototype.ngOnInit = /**
|
|
11809
|
+
* @return {?}
|
|
11810
|
+
*/
|
|
11811
|
+
function () {
|
|
11812
|
+
/** @type {?} */
|
|
11813
|
+
var instanceConfig = this.configSvc.instanceConfig;
|
|
11814
|
+
if (instanceConfig) {
|
|
11815
|
+
this.defaultThumbnail = instanceConfig.logos.defaultContent || '';
|
|
11816
|
+
this.sourceLogos = instanceConfig.sources;
|
|
11817
|
+
this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '';
|
|
11818
|
+
}
|
|
11819
|
+
else {
|
|
11820
|
+
this.defaultThumbnail = '/assets/instances/eagle/app_logos/default.png';
|
|
11821
|
+
this.defaultSLogo = '/assets/instances/eagle/app_logos/KarmayogiBharat_Logo.svg';
|
|
11822
|
+
}
|
|
11823
|
+
};
|
|
11824
|
+
/**
|
|
11825
|
+
* @param {?} contentData
|
|
11826
|
+
* @return {?}
|
|
11827
|
+
*/
|
|
11828
|
+
CardMdoChannelV1Component.prototype.raiseTelemetry = /**
|
|
11829
|
+
* @param {?} contentData
|
|
11830
|
+
* @return {?}
|
|
11831
|
+
*/
|
|
11832
|
+
function (contentData) {
|
|
11833
|
+
this.emitTelemetry.emit(contentData);
|
|
11834
|
+
if (this.widgetData) {
|
|
11835
|
+
contentData['typeOfTelemetry'] = 'mdo-channel';
|
|
11836
|
+
}
|
|
11837
|
+
this.contSvc.changeTelemetryData(contentData);
|
|
11838
|
+
};
|
|
11839
|
+
/**
|
|
11840
|
+
* @param {?} channeldata
|
|
11841
|
+
* @return {?}
|
|
11842
|
+
*/
|
|
11843
|
+
CardMdoChannelV1Component.prototype.channelClick = /**
|
|
11844
|
+
* @param {?} channeldata
|
|
11845
|
+
* @return {?}
|
|
11846
|
+
*/
|
|
11847
|
+
function (channeldata) {
|
|
11848
|
+
this.channelData.emit(channeldata);
|
|
11849
|
+
};
|
|
11850
|
+
/**
|
|
11851
|
+
* @param {?} content
|
|
11852
|
+
* @return {?}
|
|
11853
|
+
*/
|
|
11854
|
+
CardMdoChannelV1Component.prototype.redirectTo = /**
|
|
11855
|
+
* @param {?} content
|
|
11856
|
+
* @return {?}
|
|
11857
|
+
*/
|
|
11858
|
+
function (content) {
|
|
11859
|
+
this.router.navigate(["/app/learn/mdo-channels/" + content.orgName + "/" + content.identifier + "/micro-sites"]);
|
|
11860
|
+
};
|
|
11861
|
+
CardMdoChannelV1Component.decorators = [
|
|
11862
|
+
{ type: Component, args: [{
|
|
11863
|
+
selector: 'sb-uic-card-mdo-channel-v1',
|
|
11864
|
+
template: "<mat-card class=\"channels-card card-channels-container mr-5 padding-remove cursor-pointer\">\n <div class=\"display-contents\">\n <ng-container *ngIf=\"widgetData?.content\">\n <a (click)=\"raiseTelemetry(widgetData?.content); redirectTo(widgetData?.content); $event.stopPropagation()\"\n i18n-aria-label>\n <ng-container>\n <mat-card-content class=\"min-top\">\n <div class=\"flex flex-col h-full\">\n <div class=\"image-container\">\n <ng-container *ngIf=\"widgetData?.content?.imgUrl; else defaultImg\">\n <img mat-card-image [src]=\"widgetData?.content?.imgUrl\" loading=\"lazy\"\n class=\"card-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData?.content?.orgName\" />\n </ng-container>\n <ng-template #defaultImg>\n <sb-uic-avatar-photo [randomColor]=\"true\" [name]=\"widgetData?.content?.orgName\" [photoUrl]=\"widgetData?.content?.imgUrl\" size=\"m-side-rating\">\n </sb-uic-avatar-photo>\n </ng-template>\n </div>\n <div class=\"flex title-container px-2\">\n <div [id]=\"'m-c-'+ widgetData?.content?.identifier\"\n class=\"flex-1 text-center mat-subheading-2 title-text ws-mat-black-text\">\n {{ widgetData?.content?.orgName }}\n </div>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n </a>\n </ng-container>\n </div>\n</mat-card>",
|
|
11865
|
+
styles: [".card-channels-container{position:relative;width:245px;box-sizing:border-box;box-shadow:0 10px 30px rgba(153,153,153,.2);overflow:hidden;min-height:156px;height:156px;max-height:156px;margin:20px 8px;background:#7faeff!important;border-radius:12px;padding:4px!important}.card-channels-container .min-top{background:inherit;margin-bottom:0;height:inherit}.card-channels-container .image-container{background-color:#fff;width:inherit;height:86px;max-height:86px;overflow:hidden;display:flex;align-items:center;justify-content:center;border-radius:12px}.card-channels-container .card-img{max-height:62px;min-height:62px;display:block;-o-object-fit:fill;object-fit:contain}.card-channels-container .mat-subheading-1{font:600 14px/24px Montserrat}.card-channels-container .title-container{background:inherit}.card-channels-container .description-text{position:relative;overflow:hidden;height:51px}.card-channels-container .title-text{word-break:break-all;white-space:initial;margin:8px 0;position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}"]
|
|
11866
|
+
}] }
|
|
11867
|
+
];
|
|
11868
|
+
/** @nocollapse */
|
|
11869
|
+
CardMdoChannelV1Component.ctorParameters = function () { return [
|
|
11870
|
+
{ type: EventService },
|
|
11871
|
+
{ type: TranslateService },
|
|
11872
|
+
{ type: MultilingualTranslationsService$1 },
|
|
11873
|
+
{ type: ConfigurationsService$1 },
|
|
11874
|
+
{ type: WidgetContentService },
|
|
11875
|
+
{ type: Router }
|
|
11876
|
+
]; };
|
|
11877
|
+
CardMdoChannelV1Component.propDecorators = {
|
|
11878
|
+
widgetData: [{ type: Input }],
|
|
11879
|
+
channelData: [{ type: Output }],
|
|
11880
|
+
emitTelemetry: [{ type: Output }]
|
|
11881
|
+
};
|
|
11882
|
+
return CardMdoChannelV1Component;
|
|
11883
|
+
}());
|
|
11884
|
+
if (false) {
|
|
11885
|
+
/** @type {?} */
|
|
11886
|
+
CardMdoChannelV1Component.prototype.widgetData;
|
|
11887
|
+
/** @type {?} */
|
|
11888
|
+
CardMdoChannelV1Component.prototype.channelData;
|
|
11889
|
+
/** @type {?} */
|
|
11890
|
+
CardMdoChannelV1Component.prototype.emitTelemetry;
|
|
11891
|
+
/** @type {?} */
|
|
11892
|
+
CardMdoChannelV1Component.prototype.defaultThumbnail;
|
|
11893
|
+
/** @type {?} */
|
|
11894
|
+
CardMdoChannelV1Component.prototype.sourceLogos;
|
|
11895
|
+
/** @type {?} */
|
|
11896
|
+
CardMdoChannelV1Component.prototype.defaultSLogo;
|
|
11897
|
+
/** @type {?} */
|
|
11898
|
+
CardMdoChannelV1Component.prototype.widgetType;
|
|
11899
|
+
/** @type {?} */
|
|
11900
|
+
CardMdoChannelV1Component.prototype.widgetSubType;
|
|
11901
|
+
/**
|
|
11902
|
+
* @type {?}
|
|
11903
|
+
* @private
|
|
11904
|
+
*/
|
|
11905
|
+
CardMdoChannelV1Component.prototype.events;
|
|
11906
|
+
/**
|
|
11907
|
+
* @type {?}
|
|
11908
|
+
* @private
|
|
11909
|
+
*/
|
|
11910
|
+
CardMdoChannelV1Component.prototype.translate;
|
|
11911
|
+
/**
|
|
11912
|
+
* @type {?}
|
|
11913
|
+
* @private
|
|
11914
|
+
*/
|
|
11915
|
+
CardMdoChannelV1Component.prototype.langtranslations;
|
|
11916
|
+
/**
|
|
11917
|
+
* @type {?}
|
|
11918
|
+
* @private
|
|
11919
|
+
*/
|
|
11920
|
+
CardMdoChannelV1Component.prototype.configSvc;
|
|
11921
|
+
/**
|
|
11922
|
+
* @type {?}
|
|
11923
|
+
* @private
|
|
11924
|
+
*/
|
|
11925
|
+
CardMdoChannelV1Component.prototype.contSvc;
|
|
11926
|
+
/** @type {?} */
|
|
11927
|
+
CardMdoChannelV1Component.prototype.router;
|
|
10873
11928
|
}
|
|
10874
11929
|
|
|
10875
11930
|
/**
|
|
@@ -11075,6 +12130,7 @@ var AvatarPhotoLibModule = /** @class */ (function () {
|
|
|
11075
12130
|
* @fileoverview added by tsickle
|
|
11076
12131
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
11077
12132
|
*/
|
|
12133
|
+
var ɵ0$5 = HttpLoaderFactory;
|
|
11078
12134
|
var CardsModule = /** @class */ (function () {
|
|
11079
12135
|
function CardsModule() {
|
|
11080
12136
|
}
|
|
@@ -11091,20 +12147,34 @@ var CardsModule = /** @class */ (function () {
|
|
|
11091
12147
|
CardKarmaProgramsComponent,
|
|
11092
12148
|
CardKarmaProgramsV2Component,
|
|
11093
12149
|
CardPortraitExtComponent,
|
|
12150
|
+
CardAssessmentComponent,
|
|
12151
|
+
CardProgressPortraitLibComponent,
|
|
11094
12152
|
CardMdoChannelV1Component
|
|
11095
12153
|
],
|
|
11096
12154
|
imports: [
|
|
11097
12155
|
CommonModule,
|
|
11098
12156
|
MatCardModule,
|
|
11099
12157
|
MatButtonModule,
|
|
12158
|
+
MatTooltipModule,
|
|
11100
12159
|
MatIconModule,
|
|
11101
12160
|
MatTooltipModule,
|
|
11102
12161
|
RouterModule,
|
|
11103
12162
|
PipePublicURLModule,
|
|
12163
|
+
ObjectToArrayPipeModule,
|
|
11104
12164
|
DisplayContentTypeLibModule,
|
|
11105
12165
|
DefaultThumbnailModule,
|
|
11106
12166
|
PipeDurationTransformModule,
|
|
11107
12167
|
SkeletonLoaderLibModule,
|
|
12168
|
+
MatProgressSpinnerModule,
|
|
12169
|
+
ContentProgressModule,
|
|
12170
|
+
DialogComponentsModule,
|
|
12171
|
+
TranslateModule.forRoot({
|
|
12172
|
+
loader: {
|
|
12173
|
+
provide: TranslateLoader,
|
|
12174
|
+
useFactory: ɵ0$5,
|
|
12175
|
+
deps: [HttpClient],
|
|
12176
|
+
},
|
|
12177
|
+
}),
|
|
11108
12178
|
AvatarPhotoLibModule
|
|
11109
12179
|
],
|
|
11110
12180
|
entryComponents: [CardsComponent],
|
|
@@ -11118,7 +12188,7 @@ var CardsModule = /** @class */ (function () {
|
|
|
11118
12188
|
CardMDOChannelComponent,
|
|
11119
12189
|
CardWideV2Component,
|
|
11120
12190
|
CardKarmaProgramsComponent,
|
|
11121
|
-
CardKarmaProgramsV2Component
|
|
12191
|
+
CardKarmaProgramsV2Component,
|
|
11122
12192
|
],
|
|
11123
12193
|
},] }
|
|
11124
12194
|
];
|
|
@@ -12215,7 +13285,7 @@ var CompetencyPassbookMdoModule = /** @class */ (function () {
|
|
|
12215
13285
|
*/
|
|
12216
13286
|
/** @type {?} */
|
|
12217
13287
|
var PROXY_SLAG_V8 = '/apis/proxies/v8';
|
|
12218
|
-
var ɵ0$
|
|
13288
|
+
var ɵ0$6 = /**
|
|
12219
13289
|
* @param {?} contentId
|
|
12220
13290
|
* @param {?} contentType
|
|
12221
13291
|
* @param {?} userId
|
|
@@ -12223,7 +13293,7 @@ var ɵ0$3 = /**
|
|
|
12223
13293
|
*/
|
|
12224
13294
|
function (contentId, contentType, userId) {
|
|
12225
13295
|
return PROXY_SLAG_V8 + "/ratings/v1/read/" + contentId + "/" + contentType + "/" + userId;
|
|
12226
|
-
}, ɵ1$
|
|
13296
|
+
}, ɵ1$3 = /**
|
|
12227
13297
|
* @param {?} contentId
|
|
12228
13298
|
* @param {?} contentType
|
|
12229
13299
|
* @return {?}
|
|
@@ -12240,9 +13310,9 @@ function (contentId, userID) {
|
|
|
12240
13310
|
};
|
|
12241
13311
|
/** @type {?} */
|
|
12242
13312
|
var API_END_POINTS$3 = {
|
|
12243
|
-
GET_RATING: (ɵ0$
|
|
13313
|
+
GET_RATING: (ɵ0$6),
|
|
12244
13314
|
ADD_OR_UPDATE: PROXY_SLAG_V8 + "/ratings/v1/upsert",
|
|
12245
|
-
GET_RATING_SUMMARY: (ɵ1$
|
|
13315
|
+
GET_RATING_SUMMARY: (ɵ1$3),
|
|
12246
13316
|
GET_RATING_LOOKUP: PROXY_SLAG_V8 + "/ratings/v1/ratingLookUp",
|
|
12247
13317
|
GET_AUTHOR_REPLY: (ɵ2$2),
|
|
12248
13318
|
POST_AUTHOR_REPLY: PROXY_SLAG_V8 + "/ratings/v2/read",
|
|
@@ -13004,5 +14074,5 @@ var UserContentRatingLibModule = /** @class */ (function () {
|
|
|
13004
14074
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
13005
14075
|
*/
|
|
13006
14076
|
|
|
13007
|
-
export { AnnouncementsModule, CalenderModule, CardsModule, CommonMethodsService, CommonStripModule, CompetencyPassbookMdoModule, 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,
|
|
14077
|
+
export { AnnouncementsModule, CalenderModule, CardsModule, CommonMethodsService, CommonStripModule, CompetencyPassbookMdoModule, CompetencyPassbookModule, ConsumptionComponent, ConsumptionModule, ConsumptionService, ContentProgressModule, 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, CardAssessmentComponent as ɵbe, CardProgressPortraitLibComponent as ɵbf, CertificateService as ɵbg, CardMdoChannelV1Component as ɵbh, PipePublicURLModule as ɵbi, PipePublicURL as ɵbj, ObjectToArrayPipeModule as ɵbk, ObjectToArrayPipe as ɵbl, DisplayContentTypeLibModule as ɵbm, DisplayContentTypeLibComponent as ɵbn, DefaultThumbnailModule as ɵbo, DefaultThumbnailDirective as ɵbp, PipeDurationTransformModule as ɵbq, PipeDurationTransformPipe as ɵbr, ContentProgressComponent as ɵbs, DialogComponentsModule as ɵbt, CertificateDialogComponent as ɵbu, AvatarPhotoLibModule as ɵbv, AvatarPhotoLibComponent as ɵbw, CompetencyPassbookComponent as ɵbx, CompetencyPassbookService as ɵby, PillsModule as ɵbz, MultilingualTranslationsService as ɵc, PillsComponent as ɵca, CompetencyPassbookMdoComponent as ɵcb, CompetencyPassbookMdoService as ɵcc, UserContentRatingLibComponent as ɵcd, ScrollableItemDirective as ɵce, RatingService as ɵcf, UserContentRatingLibService as ɵcg, MyHammerConfig$1 as ɵch, SlidersNgContentLibModule as ɵci, SlidersNgContentLibComponent as ɵcj, ScrollableItemModule as ɵck, 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 };
|
|
13008
14078
|
//# sourceMappingURL=sunbird-cb-consumption.js.map
|