@sunbird-cb/consumption 0.0.43 → 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 +1244 -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/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/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 +1075 -136
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +1211 -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
|
}
|
|
@@ -2916,33 +2915,36 @@ var MultilingualTranslationsService = /** @class */ (function () {
|
|
|
2916
2915
|
* @return {?}
|
|
2917
2916
|
*/
|
|
2918
2917
|
function (label, type, subtype) {
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
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);
|
|
2932
2941
|
}
|
|
2933
|
-
}));
|
|
2934
|
-
nlabel = sl.join('');
|
|
2935
|
-
nlabel = nlabel.replace(/\s/g, '');
|
|
2936
|
-
if (subtype) {
|
|
2937
2942
|
// tslint:disable-next-line: prefer-template
|
|
2938
2943
|
/** @type {?} */
|
|
2939
|
-
var
|
|
2940
|
-
return this.translate.instant(
|
|
2944
|
+
var translationKeyn = type + '.' + nlabel;
|
|
2945
|
+
return this.translate.instant(translationKeyn);
|
|
2941
2946
|
}
|
|
2942
|
-
|
|
2943
|
-
/** @type {?} */
|
|
2944
|
-
var translationKeyn = type + '.' + nlabel;
|
|
2945
|
-
return this.translate.instant(translationKeyn);
|
|
2947
|
+
return label;
|
|
2946
2948
|
};
|
|
2947
2949
|
/**
|
|
2948
2950
|
* @param {?} label
|
|
@@ -4385,7 +4387,8 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
4385
4387
|
function (strip, calculateParentStatus) {
|
|
4386
4388
|
if (calculateParentStatus === void 0) { calculateParentStatus = true; }
|
|
4387
4389
|
return __awaiter(this, void 0, void 0, function () {
|
|
4388
|
-
var originalFilters, firstTab, allTabs, currentTabFromMap,
|
|
4390
|
+
var originalFilters, firstTab, allTabs, currentTabFromMap, response_1, error_1;
|
|
4391
|
+
var _this = this;
|
|
4389
4392
|
return __generator(this, function (_a) {
|
|
4390
4393
|
switch (_a.label) {
|
|
4391
4394
|
case 0:
|
|
@@ -4423,15 +4426,26 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
4423
4426
|
_a.trys.push([1, 3, , 4]);
|
|
4424
4427
|
return [4 /*yield*/, this.searchV6Request(strip, strip.request, calculateParentStatus)];
|
|
4425
4428
|
case 2:
|
|
4426
|
-
|
|
4429
|
+
response_1 = _a.sent();
|
|
4427
4430
|
// console.log('calling after - response, ', response)
|
|
4428
|
-
if (
|
|
4431
|
+
if (response_1 && response_1.results) {
|
|
4429
4432
|
// console.log('calling after-- ')
|
|
4430
|
-
if (
|
|
4431
|
-
|
|
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
|
+
}
|
|
4432
4446
|
}
|
|
4433
|
-
else if (
|
|
4434
|
-
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);
|
|
4435
4449
|
}
|
|
4436
4450
|
else {
|
|
4437
4451
|
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
@@ -4449,6 +4463,41 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
4449
4463
|
});
|
|
4450
4464
|
});
|
|
4451
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
|
+
};
|
|
4452
4501
|
/**
|
|
4453
4502
|
* @param {?} strip
|
|
4454
4503
|
* @param {?} request
|
|
@@ -5967,6 +6016,7 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
5967
6016
|
switch (_a.label) {
|
|
5968
6017
|
case 0:
|
|
5969
6018
|
if (!(strip.request && strip.request.ciosContent && Object.keys(strip.request.ciosContent).length)) return [3 /*break*/, 4];
|
|
6019
|
+
debugger;
|
|
5970
6020
|
originalFilters = [];
|
|
5971
6021
|
if (strip.request &&
|
|
5972
6022
|
strip.request.ciosContent &&
|
|
@@ -6094,6 +6144,8 @@ if (false) {
|
|
|
6094
6144
|
ContentStripWithTabsLibComponent.prototype.enrollInterval;
|
|
6095
6145
|
/** @type {?} */
|
|
6096
6146
|
ContentStripWithTabsLibComponent.prototype.todaysEvents;
|
|
6147
|
+
/** @type {?} */
|
|
6148
|
+
ContentStripWithTabsLibComponent.prototype.enrollmentMapData;
|
|
6097
6149
|
/**
|
|
6098
6150
|
* @type {?}
|
|
6099
6151
|
* @private
|
|
@@ -8610,10 +8662,9 @@ var NsCardContent$1;
|
|
|
8610
8662
|
*/
|
|
8611
8663
|
var CardsComponent = /** @class */ (function (_super) {
|
|
8612
8664
|
__extends(CardsComponent, _super);
|
|
8613
|
-
function CardsComponent(utilitySvc,
|
|
8665
|
+
function CardsComponent(utilitySvc, contSvc, router) {
|
|
8614
8666
|
var _this = _super.call(this) || this;
|
|
8615
8667
|
_this.utilitySvc = utilitySvc;
|
|
8616
|
-
_this.configSvc = configSvc;
|
|
8617
8668
|
_this.contSvc = contSvc;
|
|
8618
8669
|
_this.router = router;
|
|
8619
8670
|
_this.triggerTelemetry = new EventEmitter();
|
|
@@ -8634,6 +8685,13 @@ var CardsComponent = /** @class */ (function (_super) {
|
|
|
8634
8685
|
function () {
|
|
8635
8686
|
_this.getCbPlanData();
|
|
8636
8687
|
}), 1000);
|
|
8688
|
+
this.enrollInterval = setInterval((/**
|
|
8689
|
+
* @return {?}
|
|
8690
|
+
*/
|
|
8691
|
+
function () {
|
|
8692
|
+
_this.getEnrollmentData();
|
|
8693
|
+
// tslint:disable-next-line
|
|
8694
|
+
}), 1000);
|
|
8637
8695
|
};
|
|
8638
8696
|
Object.defineProperty(CardsComponent.prototype, "isLiveOrMarkForDeletion", {
|
|
8639
8697
|
get: /**
|
|
@@ -8673,16 +8731,11 @@ var CardsComponent = /** @class */ (function (_super) {
|
|
|
8673
8731
|
*/
|
|
8674
8732
|
function (content) {
|
|
8675
8733
|
return __awaiter(this, void 0, void 0, function () {
|
|
8676
|
-
var
|
|
8734
|
+
var urlData;
|
|
8677
8735
|
return __generator(this, function (_a) {
|
|
8678
8736
|
switch (_a.label) {
|
|
8679
8737
|
case 0:
|
|
8680
|
-
userProfile = this.configSvc.userProfile;
|
|
8681
8738
|
if (!content.externalId) return [3 /*break*/, 1];
|
|
8682
|
-
extUrl = content.redirectUrl.replace('<username>', userProfile.userId);
|
|
8683
|
-
// const url = this.router.serializeUrl(
|
|
8684
|
-
// this.router.createUrlTree([extUrl])
|
|
8685
|
-
// );
|
|
8686
8739
|
this.router.navigate(["app/toc/ext/" + content.contentId]);
|
|
8687
8740
|
return [3 /*break*/, 3];
|
|
8688
8741
|
case 1: return [4 /*yield*/, this.contSvc.getResourseLink(content)];
|
|
@@ -8723,6 +8776,18 @@ var CardsComponent = /** @class */ (function (_super) {
|
|
|
8723
8776
|
clearInterval(this.cbPlanInterval);
|
|
8724
8777
|
}
|
|
8725
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
|
+
};
|
|
8726
8791
|
/**
|
|
8727
8792
|
* @param {?} data
|
|
8728
8793
|
* @return {?}
|
|
@@ -8737,14 +8802,13 @@ var CardsComponent = /** @class */ (function (_super) {
|
|
|
8737
8802
|
CardsComponent.decorators = [
|
|
8738
8803
|
{ type: Component, args: [{
|
|
8739
8804
|
selector: 'sb-uic-cards',
|
|
8740
|
-
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>",
|
|
8741
8806
|
styles: [""]
|
|
8742
8807
|
}] }
|
|
8743
8808
|
];
|
|
8744
8809
|
/** @nocollapse */
|
|
8745
8810
|
CardsComponent.ctorParameters = function () { return [
|
|
8746
8811
|
{ type: UtilityService },
|
|
8747
|
-
{ type: ConfigurationsService$1 },
|
|
8748
8812
|
{ type: WidgetContentService },
|
|
8749
8813
|
{ type: Router }
|
|
8750
8814
|
]; };
|
|
@@ -8765,16 +8829,15 @@ if (false) {
|
|
|
8765
8829
|
CardsComponent.prototype.cbPlanMapData;
|
|
8766
8830
|
/** @type {?} */
|
|
8767
8831
|
CardsComponent.prototype.cbPlanInterval;
|
|
8832
|
+
/** @type {?} */
|
|
8833
|
+
CardsComponent.prototype.enrollInterval;
|
|
8834
|
+
/** @type {?} */
|
|
8835
|
+
CardsComponent.prototype.enrollmentMapData;
|
|
8768
8836
|
/**
|
|
8769
8837
|
* @type {?}
|
|
8770
8838
|
* @private
|
|
8771
8839
|
*/
|
|
8772
8840
|
CardsComponent.prototype.utilitySvc;
|
|
8773
|
-
/**
|
|
8774
|
-
* @type {?}
|
|
8775
|
-
* @private
|
|
8776
|
-
*/
|
|
8777
|
-
CardsComponent.prototype.configSvc;
|
|
8778
8841
|
/**
|
|
8779
8842
|
* @type {?}
|
|
8780
8843
|
* @private
|
|
@@ -9043,6 +9106,80 @@ var PipePublicURLModule = /** @class */ (function () {
|
|
|
9043
9106
|
return PipePublicURLModule;
|
|
9044
9107
|
}());
|
|
9045
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
|
+
|
|
9046
9183
|
/**
|
|
9047
9184
|
* @fileoverview added by tsickle
|
|
9048
9185
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -9209,12 +9346,12 @@ var PipeDurationTransformPipe = /** @class */ (function () {
|
|
|
9209
9346
|
}
|
|
9210
9347
|
/**
|
|
9211
9348
|
* @param {?} data
|
|
9212
|
-
* @param {
|
|
9349
|
+
* @param {?=} type
|
|
9213
9350
|
* @return {?}
|
|
9214
9351
|
*/
|
|
9215
9352
|
PipeDurationTransformPipe.prototype.transform = /**
|
|
9216
9353
|
* @param {?} data
|
|
9217
|
-
* @param {
|
|
9354
|
+
* @param {?=} type
|
|
9218
9355
|
* @return {?}
|
|
9219
9356
|
*/
|
|
9220
9357
|
function (data, type) {
|
|
@@ -10721,35 +10858,22 @@ if (false) {
|
|
|
10721
10858
|
* @fileoverview added by tsickle
|
|
10722
10859
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
10723
10860
|
*/
|
|
10724
|
-
var
|
|
10725
|
-
function
|
|
10726
|
-
var _this = this;
|
|
10727
|
-
this.events = events;
|
|
10728
|
-
this.translate = translate;
|
|
10729
|
-
this.langtranslations = langtranslations;
|
|
10861
|
+
var CardAssessmentComponent = /** @class */ (function () {
|
|
10862
|
+
function CardAssessmentComponent(configSvc, contSvc) {
|
|
10730
10863
|
this.configSvc = configSvc;
|
|
10731
10864
|
this.contSvc = contSvc;
|
|
10732
|
-
this.
|
|
10733
|
-
this.
|
|
10734
|
-
this.
|
|
10735
|
-
this.
|
|
10736
|
-
this.
|
|
10737
|
-
this.
|
|
10738
|
-
|
|
10739
|
-
*/
|
|
10740
|
-
function () {
|
|
10741
|
-
if (localStorage.getItem('websiteLanguage')) {
|
|
10742
|
-
_this.translate.setDefaultLang('en');
|
|
10743
|
-
/** @type {?} */
|
|
10744
|
-
var lang = (/** @type {?} */ (localStorage.getItem('websiteLanguage')));
|
|
10745
|
-
_this.translate.use(lang);
|
|
10746
|
-
}
|
|
10747
|
-
}));
|
|
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;
|
|
10748
10872
|
}
|
|
10749
10873
|
/**
|
|
10750
10874
|
* @return {?}
|
|
10751
10875
|
*/
|
|
10752
|
-
|
|
10876
|
+
CardAssessmentComponent.prototype.ngOnInit = /**
|
|
10753
10877
|
* @return {?}
|
|
10754
10878
|
*/
|
|
10755
10879
|
function () {
|
|
@@ -10757,8 +10881,7 @@ var CardMdoChannelV1Component = /** @class */ (function () {
|
|
|
10757
10881
|
var instanceConfig = this.configSvc.instanceConfig;
|
|
10758
10882
|
if (instanceConfig) {
|
|
10759
10883
|
this.defaultThumbnail = instanceConfig.logos.defaultContent || '';
|
|
10760
|
-
this.
|
|
10761
|
-
this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '';
|
|
10884
|
+
this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '/assets/instances/eagle/app_logos/KarmayogiBharat_Logo.svg';
|
|
10762
10885
|
}
|
|
10763
10886
|
else {
|
|
10764
10887
|
this.defaultThumbnail = '/assets/instances/eagle/app_logos/default.png';
|
|
@@ -10766,116 +10889,1049 @@ var CardMdoChannelV1Component = /** @class */ (function () {
|
|
|
10766
10889
|
}
|
|
10767
10890
|
};
|
|
10768
10891
|
/**
|
|
10769
|
-
* @param {?}
|
|
10892
|
+
* @param {?} startDate
|
|
10770
10893
|
* @return {?}
|
|
10771
10894
|
*/
|
|
10772
|
-
|
|
10773
|
-
* @param {?}
|
|
10895
|
+
CardAssessmentComponent.prototype.updateStartDate = /**
|
|
10896
|
+
* @param {?} startDate
|
|
10774
10897
|
* @return {?}
|
|
10775
10898
|
*/
|
|
10776
|
-
function (
|
|
10777
|
-
this.
|
|
10778
|
-
|
|
10779
|
-
|
|
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();
|
|
10780
10951
|
}
|
|
10781
|
-
this.contSvc.changeTelemetryData(contentData);
|
|
10782
10952
|
};
|
|
10953
|
+
// Method to clear the interval
|
|
10954
|
+
// Method to clear the interval
|
|
10783
10955
|
/**
|
|
10784
|
-
* @param {?} channeldata
|
|
10785
10956
|
* @return {?}
|
|
10786
10957
|
*/
|
|
10787
|
-
|
|
10788
|
-
|
|
10958
|
+
CardAssessmentComponent.prototype.clearTimer =
|
|
10959
|
+
// Method to clear the interval
|
|
10960
|
+
/**
|
|
10789
10961
|
* @return {?}
|
|
10790
10962
|
*/
|
|
10791
|
-
function (
|
|
10792
|
-
this.
|
|
10963
|
+
function () {
|
|
10964
|
+
clearInterval(this.intervalId);
|
|
10793
10965
|
};
|
|
10794
10966
|
/**
|
|
10795
|
-
* @param {?} content
|
|
10796
10967
|
* @return {?}
|
|
10797
10968
|
*/
|
|
10798
|
-
|
|
10799
|
-
* @param {?} content
|
|
10969
|
+
CardAssessmentComponent.prototype.ngOnDestroy = /**
|
|
10800
10970
|
* @return {?}
|
|
10801
10971
|
*/
|
|
10802
|
-
function (
|
|
10803
|
-
this.
|
|
10972
|
+
function () {
|
|
10973
|
+
this.clearTimer();
|
|
10804
10974
|
};
|
|
10805
|
-
|
|
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 = [
|
|
10806
10993
|
{ type: Component, args: [{
|
|
10807
|
-
selector: 'sb-uic-card-
|
|
10808
|
-
template: "<mat-card class=\"
|
|
10809
|
-
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}"]
|
|
10810
10997
|
}] }
|
|
10811
10998
|
];
|
|
10812
10999
|
/** @nocollapse */
|
|
10813
|
-
|
|
10814
|
-
{ type: EventService },
|
|
10815
|
-
{ type: TranslateService },
|
|
10816
|
-
{ type: MultilingualTranslationsService$1 },
|
|
11000
|
+
CardAssessmentComponent.ctorParameters = function () { return [
|
|
10817
11001
|
{ type: ConfigurationsService$1 },
|
|
10818
|
-
{ type: WidgetContentService }
|
|
10819
|
-
{ type: Router }
|
|
11002
|
+
{ type: WidgetContentService }
|
|
10820
11003
|
]; };
|
|
10821
|
-
|
|
11004
|
+
CardAssessmentComponent.propDecorators = {
|
|
10822
11005
|
widgetData: [{ type: Input }],
|
|
10823
|
-
|
|
10824
|
-
|
|
11006
|
+
enrollmentMapData: [{ type: Input }],
|
|
11007
|
+
contentData: [{ type: Output }],
|
|
11008
|
+
isCardLoading: [{ type: Input }]
|
|
10825
11009
|
};
|
|
10826
|
-
return
|
|
11010
|
+
return CardAssessmentComponent;
|
|
10827
11011
|
}());
|
|
10828
11012
|
if (false) {
|
|
10829
11013
|
/** @type {?} */
|
|
10830
|
-
|
|
11014
|
+
CardAssessmentComponent.prototype.widgetData;
|
|
10831
11015
|
/** @type {?} */
|
|
10832
|
-
|
|
11016
|
+
CardAssessmentComponent.prototype.enrollmentMapData;
|
|
10833
11017
|
/** @type {?} */
|
|
10834
|
-
|
|
11018
|
+
CardAssessmentComponent.prototype.contentData;
|
|
10835
11019
|
/** @type {?} */
|
|
10836
|
-
|
|
11020
|
+
CardAssessmentComponent.prototype.isCardLoading;
|
|
10837
11021
|
/** @type {?} */
|
|
10838
|
-
|
|
11022
|
+
CardAssessmentComponent.prototype.stripData;
|
|
10839
11023
|
/** @type {?} */
|
|
10840
|
-
|
|
11024
|
+
CardAssessmentComponent.prototype.enrollList;
|
|
10841
11025
|
/** @type {?} */
|
|
10842
|
-
|
|
11026
|
+
CardAssessmentComponent.prototype.activeResource;
|
|
10843
11027
|
/** @type {?} */
|
|
10844
|
-
|
|
10845
|
-
/**
|
|
10846
|
-
|
|
10847
|
-
|
|
10848
|
-
|
|
10849
|
-
|
|
10850
|
-
|
|
10851
|
-
|
|
10852
|
-
|
|
10853
|
-
*/
|
|
10854
|
-
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;
|
|
10855
11037
|
/**
|
|
10856
11038
|
* @type {?}
|
|
10857
11039
|
* @private
|
|
10858
11040
|
*/
|
|
10859
|
-
|
|
11041
|
+
CardAssessmentComponent.prototype.intervalId;
|
|
10860
11042
|
/**
|
|
10861
11043
|
* @type {?}
|
|
10862
11044
|
* @private
|
|
10863
11045
|
*/
|
|
10864
|
-
|
|
11046
|
+
CardAssessmentComponent.prototype.configSvc;
|
|
10865
11047
|
/**
|
|
10866
11048
|
* @type {?}
|
|
10867
11049
|
* @private
|
|
10868
11050
|
*/
|
|
10869
|
-
|
|
10870
|
-
/** @type {?} */
|
|
10871
|
-
CardMdoChannelV1Component.prototype.router;
|
|
11051
|
+
CardAssessmentComponent.prototype.contSvc;
|
|
10872
11052
|
}
|
|
10873
11053
|
|
|
10874
11054
|
/**
|
|
10875
11055
|
* @fileoverview added by tsickle
|
|
10876
11056
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
10877
11057
|
*/
|
|
10878
|
-
var
|
|
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;
|
|
11928
|
+
}
|
|
11929
|
+
|
|
11930
|
+
/**
|
|
11931
|
+
* @fileoverview added by tsickle
|
|
11932
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
11933
|
+
*/
|
|
11934
|
+
var AvatarPhotoLibComponent = /** @class */ (function () {
|
|
10879
11935
|
function AvatarPhotoLibComponent() {
|
|
10880
11936
|
this.size = '';
|
|
10881
11937
|
this.defaulfColor = '';
|
|
@@ -11074,6 +12130,7 @@ var AvatarPhotoLibModule = /** @class */ (function () {
|
|
|
11074
12130
|
* @fileoverview added by tsickle
|
|
11075
12131
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
11076
12132
|
*/
|
|
12133
|
+
var ɵ0$5 = HttpLoaderFactory;
|
|
11077
12134
|
var CardsModule = /** @class */ (function () {
|
|
11078
12135
|
function CardsModule() {
|
|
11079
12136
|
}
|
|
@@ -11090,20 +12147,34 @@ var CardsModule = /** @class */ (function () {
|
|
|
11090
12147
|
CardKarmaProgramsComponent,
|
|
11091
12148
|
CardKarmaProgramsV2Component,
|
|
11092
12149
|
CardPortraitExtComponent,
|
|
12150
|
+
CardAssessmentComponent,
|
|
12151
|
+
CardProgressPortraitLibComponent,
|
|
11093
12152
|
CardMdoChannelV1Component
|
|
11094
12153
|
],
|
|
11095
12154
|
imports: [
|
|
11096
12155
|
CommonModule,
|
|
11097
12156
|
MatCardModule,
|
|
11098
12157
|
MatButtonModule,
|
|
12158
|
+
MatTooltipModule,
|
|
11099
12159
|
MatIconModule,
|
|
11100
12160
|
MatTooltipModule,
|
|
11101
12161
|
RouterModule,
|
|
11102
12162
|
PipePublicURLModule,
|
|
12163
|
+
ObjectToArrayPipeModule,
|
|
11103
12164
|
DisplayContentTypeLibModule,
|
|
11104
12165
|
DefaultThumbnailModule,
|
|
11105
12166
|
PipeDurationTransformModule,
|
|
11106
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
|
+
}),
|
|
11107
12178
|
AvatarPhotoLibModule
|
|
11108
12179
|
],
|
|
11109
12180
|
entryComponents: [CardsComponent],
|
|
@@ -11117,7 +12188,7 @@ var CardsModule = /** @class */ (function () {
|
|
|
11117
12188
|
CardMDOChannelComponent,
|
|
11118
12189
|
CardWideV2Component,
|
|
11119
12190
|
CardKarmaProgramsComponent,
|
|
11120
|
-
CardKarmaProgramsV2Component
|
|
12191
|
+
CardKarmaProgramsV2Component,
|
|
11121
12192
|
],
|
|
11122
12193
|
},] }
|
|
11123
12194
|
];
|
|
@@ -12214,7 +13285,7 @@ var CompetencyPassbookMdoModule = /** @class */ (function () {
|
|
|
12214
13285
|
*/
|
|
12215
13286
|
/** @type {?} */
|
|
12216
13287
|
var PROXY_SLAG_V8 = '/apis/proxies/v8';
|
|
12217
|
-
var ɵ0$
|
|
13288
|
+
var ɵ0$6 = /**
|
|
12218
13289
|
* @param {?} contentId
|
|
12219
13290
|
* @param {?} contentType
|
|
12220
13291
|
* @param {?} userId
|
|
@@ -12222,7 +13293,7 @@ var ɵ0$3 = /**
|
|
|
12222
13293
|
*/
|
|
12223
13294
|
function (contentId, contentType, userId) {
|
|
12224
13295
|
return PROXY_SLAG_V8 + "/ratings/v1/read/" + contentId + "/" + contentType + "/" + userId;
|
|
12225
|
-
}, ɵ1$
|
|
13296
|
+
}, ɵ1$3 = /**
|
|
12226
13297
|
* @param {?} contentId
|
|
12227
13298
|
* @param {?} contentType
|
|
12228
13299
|
* @return {?}
|
|
@@ -12239,9 +13310,9 @@ function (contentId, userID) {
|
|
|
12239
13310
|
};
|
|
12240
13311
|
/** @type {?} */
|
|
12241
13312
|
var API_END_POINTS$3 = {
|
|
12242
|
-
GET_RATING: (ɵ0$
|
|
13313
|
+
GET_RATING: (ɵ0$6),
|
|
12243
13314
|
ADD_OR_UPDATE: PROXY_SLAG_V8 + "/ratings/v1/upsert",
|
|
12244
|
-
GET_RATING_SUMMARY: (ɵ1$
|
|
13315
|
+
GET_RATING_SUMMARY: (ɵ1$3),
|
|
12245
13316
|
GET_RATING_LOOKUP: PROXY_SLAG_V8 + "/ratings/v1/ratingLookUp",
|
|
12246
13317
|
GET_AUTHOR_REPLY: (ɵ2$2),
|
|
12247
13318
|
POST_AUTHOR_REPLY: PROXY_SLAG_V8 + "/ratings/v2/read",
|
|
@@ -13003,5 +14074,5 @@ var UserContentRatingLibModule = /** @class */ (function () {
|
|
|
13003
14074
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
13004
14075
|
*/
|
|
13005
14076
|
|
|
13006
|
-
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 };
|
|
13007
14078
|
//# sourceMappingURL=sunbird-cb-consumption.js.map
|