@sunbird-cb/consumption 0.0.43 → 0.0.45
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 +1391 -135
- 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 +30 -3
- package/esm2015/lib/_common/cards/provider-card/provider-card.component.js +168 -0
- 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/_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 +36 -27
- 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 +30 -3
- package/esm5/lib/_common/cards/provider-card/provider-card.component.js +177 -0
- 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/_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 +36 -27
- package/fesm2015/sunbird-cb-consumption.js +1229 -122
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +1356 -109
- 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/cards/provider-card/provider-card.component.d.ts +12 -0
- 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/_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 +34 -25
- 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-providers-lib'\" [ngTemplateOutlet]=\"cardProvider\"></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\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<ng-template #cardProvider>\n <sb-uic-provider-card ></sb-uic-provider-card>\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>\n",
|
|
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
|
|
@@ -10552,6 +10689,181 @@ if (false) {
|
|
|
10552
10689
|
CardKarmaProgramsV2Component.prototype.router;
|
|
10553
10690
|
}
|
|
10554
10691
|
|
|
10692
|
+
/**
|
|
10693
|
+
* @fileoverview added by tsickle
|
|
10694
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
10695
|
+
*/
|
|
10696
|
+
var ProviderCardComponent = /** @class */ (function () {
|
|
10697
|
+
function ProviderCardComponent() {
|
|
10698
|
+
this.providers = [
|
|
10699
|
+
{
|
|
10700
|
+
name: 'Indian Institute of Management Bengaluru (IIMB)',
|
|
10701
|
+
link: 'https://portal.igotkarmayogi.gov.in/app/learn/browse-by/provider/IIMB/all-CBP',
|
|
10702
|
+
logo: 'assets/icons/top-providers/ef8a88cf-33cc-42de-bdc3-7deed1ab2418.png'
|
|
10703
|
+
},
|
|
10704
|
+
{
|
|
10705
|
+
name: 'Department for Promotion of Industry and Internal Trade',
|
|
10706
|
+
link: 'https://portal.igotkarmayogi.gov.in/app/learn/browse-by/provider/Department for Promotion of Industry and Internal Trade/all-CBP',
|
|
10707
|
+
logo: 'assets/icons/top-providers/0d400bdf-4ad8-45bf-914c-be44018c2d07.png'
|
|
10708
|
+
},
|
|
10709
|
+
{
|
|
10710
|
+
name: 'RAKNPA',
|
|
10711
|
+
link: 'https://portal.igotkarmayogi.gov.in/app/learn/browse-by/provider/RAKNPA/all-CBP',
|
|
10712
|
+
logo: 'assets/icons/top-providers/1becfffa-956e-48ba-8ffd-77c19cd720c8.jpeg'
|
|
10713
|
+
},
|
|
10714
|
+
{
|
|
10715
|
+
name: 'Lal Bahadur Shastri National Academy of Administration (LBSNAA)',
|
|
10716
|
+
link: 'https://portal.igotkarmayogi.gov.in/app/learn/browse-by/provider/Ministry of Environment, Forest and Climate Change/all-CBP',
|
|
10717
|
+
logo: 'assets/icons/top-providers/1d76c041-a7c9-437c-94d9-36d997f3804c.jpeg'
|
|
10718
|
+
},
|
|
10719
|
+
{
|
|
10720
|
+
name: 'Ministry of Environment, Forest and Climate Change',
|
|
10721
|
+
link: 'https://portal.igotkarmayogi.gov.in/app/learn/browse-by/provider/LBSNAA/all-CBP',
|
|
10722
|
+
logo: 'assets/icons/top-providers/1fb72c3f-1c96-4600-8e22-09871a85e6c4.jpeg'
|
|
10723
|
+
},
|
|
10724
|
+
{
|
|
10725
|
+
name: 'ISTM',
|
|
10726
|
+
link: 'https://portal.igotkarmayogi.gov.in/app/learn/browse-by/provider/Institute of Secretariat Training and Management/all-CBP',
|
|
10727
|
+
logo: 'assets/icons/top-providers/6f046f76-b778-476a-987b-8669e106b44c.jpeg'
|
|
10728
|
+
},
|
|
10729
|
+
{
|
|
10730
|
+
name: 'Department of Expenditure',
|
|
10731
|
+
link: 'https://portal.igotkarmayogi.gov.in/app/learn/browse-by/provider/Department%20of%20Expenditure%20/all-CBP',
|
|
10732
|
+
logo: 'assets/icons/top-providers/7f6df809-6930-44f4-abcf-c8297363d3e0.png'
|
|
10733
|
+
},
|
|
10734
|
+
{
|
|
10735
|
+
name: 'Department of Personnel and Training DoPT',
|
|
10736
|
+
link: 'https://portal.igotkarmayogi.gov.in/app/learn/browse-by/provider/Department%20of%20Personnel%20and%20Training%20DoPT/all-CBP',
|
|
10737
|
+
logo: 'assets/icons/top-providers/dopt.png'
|
|
10738
|
+
},
|
|
10739
|
+
{
|
|
10740
|
+
name: 'Indian Cybercrime Coordination Centre - I4C',
|
|
10741
|
+
link: 'https://portal.igotkarmayogi.gov.in/app/learn/browse-by/provider/Indian%20Cybercrime%20Coordination%20Centre%20-%20I4C/all-CBP',
|
|
10742
|
+
logo: 'assets/icons/top-providers/7f8cab8e-9d22-44ba-a41e-83b907e5a5f0.jpeg'
|
|
10743
|
+
},
|
|
10744
|
+
{
|
|
10745
|
+
"name": "Capacity Building Commission",
|
|
10746
|
+
"link": "https://portal.igotkarmayogi.gov.in/app/learn/browse-by/provider/Capacity%20Building%20Commission/all-CBP",
|
|
10747
|
+
"logo": "assets/icons/top-providers/33e9c66f-312f-4244-901e-7d7525ae8847.jpeg"
|
|
10748
|
+
},
|
|
10749
|
+
{
|
|
10750
|
+
"name": "Ministry of Railways",
|
|
10751
|
+
"link": "https://portal.igotkarmayogi.gov.in/app/learn/browse-by/provider/Ministry%20of%20Railways/all-CBP",
|
|
10752
|
+
"logo": "assets/icons/top-providers/36d93700-c43f-499e-ab3c-68ea76388a2a.png"
|
|
10753
|
+
},
|
|
10754
|
+
{
|
|
10755
|
+
"name": "World Bank",
|
|
10756
|
+
"link": "https://portal.igotkarmayogi.gov.in/app/learn/browse-by/provider/World%20Bank/all-CBP",
|
|
10757
|
+
"logo": "assets/icons/top-providers/385ff4a0-41af-4114-8015-10d26c1e8af4.jpeg"
|
|
10758
|
+
},
|
|
10759
|
+
{
|
|
10760
|
+
"name": "Sashastra Seema Bal (SSB)",
|
|
10761
|
+
"link": "https://portal.igotkarmayogi.gov.in/app/learn/browse-by/provider/Sashastra%20Seema%20Bal%20%28SSB%29/all-CBP",
|
|
10762
|
+
"logo": "assets/icons/top-providers/778b56bf-8946-45fe-87d3-358203f2faf4.png"
|
|
10763
|
+
},
|
|
10764
|
+
{
|
|
10765
|
+
"name": "SVPNPA",
|
|
10766
|
+
"link": "https://portal.igotkarmayogi.gov.in/app/learn/browse-by/provider/SVPNPA/all-CBP",
|
|
10767
|
+
"logo": "assets/icons/top-providers/2862d2e5-473e-4c55-abaa-8a2f86e5eee4.jpeg"
|
|
10768
|
+
},
|
|
10769
|
+
{
|
|
10770
|
+
"name": "Microsoft",
|
|
10771
|
+
"link": "https://portal.igotkarmayogi.gov.in/app/learn/browse-by/provider/Microsoft/all-CBP",
|
|
10772
|
+
"logo": "assets/icons/top-providers/53407dd6-d22c-4dba-a394-015fae667636.png"
|
|
10773
|
+
},
|
|
10774
|
+
{
|
|
10775
|
+
"name": "Indian Institute of Public Administration",
|
|
10776
|
+
"link": "https://portal.igotkarmayogi.gov.in/app/learn/browse-by/provider/Indian%20Institute%20of%20Public%20Administration/all-CBP",
|
|
10777
|
+
"logo": "assets/icons/top-providers/869960d7-2dc7-4205-8c4b-11321d901060.jpeg"
|
|
10778
|
+
},
|
|
10779
|
+
{
|
|
10780
|
+
"name": "Food Corporation of India (FCI)",
|
|
10781
|
+
"link": "https://portal.igotkarmayogi.gov.in/app/learn/browse-by/provider/Food%20Corporation%20of%20India%20%28FCI%29/all-CBP",
|
|
10782
|
+
"logo": "assets/icons/top-providers/4183673f-9063-4fa9-bf84-1e8856c8e531.jpeg"
|
|
10783
|
+
},
|
|
10784
|
+
{
|
|
10785
|
+
"name": "National Telecommunications Institute for Policy Research, Innovation and Training",
|
|
10786
|
+
"link": "https://portal.igotkarmayogi.gov.in/app/learn/browse-by/provider/NTIPRIT/all-CBP",
|
|
10787
|
+
"logo": "assets/icons/top-providers/a976f025-e990-49b0-a52a-9bd0a8e43584.jpeg"
|
|
10788
|
+
},
|
|
10789
|
+
{
|
|
10790
|
+
"name": "The Art of Living",
|
|
10791
|
+
"link": "https://portal.igotkarmayogi.gov.in/app/learn/browse-by/provider/The%20Art%20of%20Living/all-CBP",
|
|
10792
|
+
"logo": "assets/icons/top-providers/abbb8f64-84db-4a92-85c9-1b394ffab71c.png"
|
|
10793
|
+
},
|
|
10794
|
+
{
|
|
10795
|
+
"name": "National Institute of Communication Finance",
|
|
10796
|
+
"link": "https://portal.igotkarmayogi.gov.in/app/learn/browse-by/provider/National%20Institute%20of%20Communication%20Finance/all-CBP",
|
|
10797
|
+
"logo": "assets/icons/top-providers/b6bf0be6-7e29-4187-a29d-da6db1db7c69.jpeg"
|
|
10798
|
+
},
|
|
10799
|
+
{
|
|
10800
|
+
"name": "Department of Posts",
|
|
10801
|
+
"link": "https://portal.igotkarmayogi.gov.in/app/learn/browse-by/provider/Department%20of%20Posts/all-CBP",
|
|
10802
|
+
"logo": "assets/icons/top-providers/cf567f4c-d0fa-447f-aba4-cb378ea3c90d.png"
|
|
10803
|
+
},
|
|
10804
|
+
{
|
|
10805
|
+
"name": "Government e Market Place(GeM)",
|
|
10806
|
+
"link": "https://portal.igotkarmayogi.gov.in/app/learn/browse-by/provider/Government%20e%20Market%20Place%28GeM%29/all-CBP",
|
|
10807
|
+
"logo": "assets/icons/top-providers/f445c11b-ff73-4ca4-9dea-8d8945d92a4a.png"
|
|
10808
|
+
},
|
|
10809
|
+
{
|
|
10810
|
+
"name": "Bharat Sanchar Nigam Limited(BSNL)",
|
|
10811
|
+
"link": "https://portal.igotkarmayogi.gov.in/app/learn/browse-by/provider/Bharat%20Sanchar%20Nigam%20Limited%28BSNL%29/all-CBP",
|
|
10812
|
+
"logo": "assets/icons/top-providers/fc67226a-4bbc-449a-8c5c-e1b338716545.png"
|
|
10813
|
+
},
|
|
10814
|
+
{
|
|
10815
|
+
"name": "Defence Accounts Department (DAD)",
|
|
10816
|
+
"link": "https://portal.igotkarmayogi.gov.in/app/learn/browse-by/provider/Defence%20Accounts%20Department%20%28DAD%29/all-CBP",
|
|
10817
|
+
"logo": "assets/icons/top-providers/fccdb487-a389-48d9-bce0-c4d64315b546.png"
|
|
10818
|
+
},
|
|
10819
|
+
{
|
|
10820
|
+
"name": "Morarji Desai National Institute of Yoga (MDNIY)",
|
|
10821
|
+
"link": "https://portal.igotkarmayogi.gov.in/app/learn/browse-by/provider/Morarji%20Desai%20National%20Institute%20of%20Yoga%20%28MDNIY%29/all-CBP",
|
|
10822
|
+
"logo": "assets/icons/top-providers/fcde4c60-7ccd-456e-a5df-260dcfa2d3ee.png"
|
|
10823
|
+
}
|
|
10824
|
+
];
|
|
10825
|
+
this.colors = [
|
|
10826
|
+
'#EF941D', '#F97440', '#35B5B0', '#9988FF', '#816FEC',
|
|
10827
|
+
'#254092', '#926525', '#4F72DF'
|
|
10828
|
+
];
|
|
10829
|
+
}
|
|
10830
|
+
/**
|
|
10831
|
+
* @return {?}
|
|
10832
|
+
*/
|
|
10833
|
+
ProviderCardComponent.prototype.ngOnInit = /**
|
|
10834
|
+
* @return {?}
|
|
10835
|
+
*/
|
|
10836
|
+
function () {
|
|
10837
|
+
};
|
|
10838
|
+
/**
|
|
10839
|
+
* @param {?} provider
|
|
10840
|
+
* @return {?}
|
|
10841
|
+
*/
|
|
10842
|
+
ProviderCardComponent.prototype.redirectTo = /**
|
|
10843
|
+
* @param {?} provider
|
|
10844
|
+
* @return {?}
|
|
10845
|
+
*/
|
|
10846
|
+
function (provider) {
|
|
10847
|
+
window.open(provider.link, '_blank');
|
|
10848
|
+
};
|
|
10849
|
+
ProviderCardComponent.decorators = [
|
|
10850
|
+
{ type: Component, args: [{
|
|
10851
|
+
selector: 'sb-uic-provider-card',
|
|
10852
|
+
template: "<div class=\"providers-container\">\n <div class=\"provider-card\" *ngFor=\"let provider of providers; let i = index\" [ngStyle]=\"{'border-top': '72px solid ' + colors[i % colors.length]}\">\n <div class=\"circle-wrapper\">\n <div class=\"circle\">\n <div class=\"background-circle\">\n <img [src]=\"provider.logo\" alt=\"{{ provider.name }}\">\n </div>\n </div>\n </div>\n <div class=\"provider-content\">\n <p>{{ provider.name }}</p>\n <div class=\"view-provider-button\" (click)=\"redirectTo(provider)\">View Provider ></div>\n </div>\n </div>\n </div>\n ",
|
|
10853
|
+
styles: [".providers-container{display:flex;justify-content:center}.provider-card{height:168px;width:245px;margin:20px 8px;border-radius:12px;box-shadow:0 2px 4px rgba(0,0,0,.1);background-color:#fff;position:relative;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;z-index:1}.circle-wrapper{position:absolute;display:flex;justify-content:center;top:-50px;z-index:1}.circle{width:90px;height:90px;border-radius:50%;background-color:#f0f0f0;box-shadow:0 4px 8px rgba(0,0,0,.1)}.background-circle{position:relative;display:flex;justify-content:center;align-items:center;height:80px;width:80px;background-color:#fff;border-radius:50%;border:5px solid #fff;margin:0 auto}.background-circle img{width:66px;height:50px;background-size:cover;background-position:center;position:relative}.provider-content{padding:16px;text-align:center;flex-grow:1;display:flex;flex-direction:column;justify-content:center;align-items:center}.provider-content p{font-size:14px;font-weight:700;font-family:Lato,sans-serif;margin-bottom:8px;line-height:16.8px;word-wrap:break-word;white-space:normal;height:51px}.view-provider-button{color:#1b4ca1;font-size:14px;font-family:Lato,sans-serif;cursor:pointer;transition:color .3s}"]
|
|
10854
|
+
}] }
|
|
10855
|
+
];
|
|
10856
|
+
/** @nocollapse */
|
|
10857
|
+
ProviderCardComponent.ctorParameters = function () { return []; };
|
|
10858
|
+
return ProviderCardComponent;
|
|
10859
|
+
}());
|
|
10860
|
+
if (false) {
|
|
10861
|
+
/** @type {?} */
|
|
10862
|
+
ProviderCardComponent.prototype.providers;
|
|
10863
|
+
/** @type {?} */
|
|
10864
|
+
ProviderCardComponent.prototype.colors;
|
|
10865
|
+
}
|
|
10866
|
+
|
|
10555
10867
|
/**
|
|
10556
10868
|
* @fileoverview added by tsickle
|
|
10557
10869
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
@@ -10721,35 +11033,22 @@ if (false) {
|
|
|
10721
11033
|
* @fileoverview added by tsickle
|
|
10722
11034
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
10723
11035
|
*/
|
|
10724
|
-
var
|
|
10725
|
-
function
|
|
10726
|
-
var _this = this;
|
|
10727
|
-
this.events = events;
|
|
10728
|
-
this.translate = translate;
|
|
10729
|
-
this.langtranslations = langtranslations;
|
|
11036
|
+
var CardAssessmentComponent = /** @class */ (function () {
|
|
11037
|
+
function CardAssessmentComponent(configSvc, contSvc) {
|
|
10730
11038
|
this.configSvc = configSvc;
|
|
10731
11039
|
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
|
-
}));
|
|
11040
|
+
this.contentData = new EventEmitter();
|
|
11041
|
+
this.isCardLoading = false;
|
|
11042
|
+
this.stripData = [];
|
|
11043
|
+
this.enrollList = [];
|
|
11044
|
+
this.activeResource = [];
|
|
11045
|
+
this.daysRemaining = 0;
|
|
11046
|
+
this.daysPending = false;
|
|
10748
11047
|
}
|
|
10749
11048
|
/**
|
|
10750
11049
|
* @return {?}
|
|
10751
11050
|
*/
|
|
10752
|
-
|
|
11051
|
+
CardAssessmentComponent.prototype.ngOnInit = /**
|
|
10753
11052
|
* @return {?}
|
|
10754
11053
|
*/
|
|
10755
11054
|
function () {
|
|
@@ -10757,8 +11056,7 @@ var CardMdoChannelV1Component = /** @class */ (function () {
|
|
|
10757
11056
|
var instanceConfig = this.configSvc.instanceConfig;
|
|
10758
11057
|
if (instanceConfig) {
|
|
10759
11058
|
this.defaultThumbnail = instanceConfig.logos.defaultContent || '';
|
|
10760
|
-
this.
|
|
10761
|
-
this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '';
|
|
11059
|
+
this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '/assets/instances/eagle/app_logos/KarmayogiBharat_Logo.svg';
|
|
10762
11060
|
}
|
|
10763
11061
|
else {
|
|
10764
11062
|
this.defaultThumbnail = '/assets/instances/eagle/app_logos/default.png';
|
|
@@ -10766,51 +11064,984 @@ var CardMdoChannelV1Component = /** @class */ (function () {
|
|
|
10766
11064
|
}
|
|
10767
11065
|
};
|
|
10768
11066
|
/**
|
|
10769
|
-
* @param {?}
|
|
11067
|
+
* @param {?} startDate
|
|
10770
11068
|
* @return {?}
|
|
10771
11069
|
*/
|
|
10772
|
-
|
|
10773
|
-
* @param {?}
|
|
11070
|
+
CardAssessmentComponent.prototype.updateStartDate = /**
|
|
11071
|
+
* @param {?} startDate
|
|
10774
11072
|
* @return {?}
|
|
10775
11073
|
*/
|
|
10776
|
-
function (
|
|
10777
|
-
this.
|
|
10778
|
-
|
|
10779
|
-
|
|
11074
|
+
function (startDate) {
|
|
11075
|
+
this.startDate = startDate;
|
|
11076
|
+
this.startCountdown(this.startDate);
|
|
11077
|
+
};
|
|
11078
|
+
/**
|
|
11079
|
+
* @param {?} date
|
|
11080
|
+
* @return {?}
|
|
11081
|
+
*/
|
|
11082
|
+
CardAssessmentComponent.prototype.startCountdown = /**
|
|
11083
|
+
* @param {?} date
|
|
11084
|
+
* @return {?}
|
|
11085
|
+
*/
|
|
11086
|
+
function (date) {
|
|
11087
|
+
var _this = this;
|
|
11088
|
+
// Update the countdown immediately on start
|
|
11089
|
+
this.updateCountdown(date);
|
|
11090
|
+
// Update the countdown every second
|
|
11091
|
+
this.intervalId = setInterval((/**
|
|
11092
|
+
* @return {?}
|
|
11093
|
+
*/
|
|
11094
|
+
function () {
|
|
11095
|
+
_this.updateCountdown(date);
|
|
11096
|
+
}), 1000);
|
|
11097
|
+
};
|
|
11098
|
+
// Method to update the countdown values
|
|
11099
|
+
// Method to update the countdown values
|
|
11100
|
+
/**
|
|
11101
|
+
* @param {?} targetDate
|
|
11102
|
+
* @return {?}
|
|
11103
|
+
*/
|
|
11104
|
+
CardAssessmentComponent.prototype.updateCountdown =
|
|
11105
|
+
// Method to update the countdown values
|
|
11106
|
+
/**
|
|
11107
|
+
* @param {?} targetDate
|
|
11108
|
+
* @return {?}
|
|
11109
|
+
*/
|
|
11110
|
+
function (targetDate) {
|
|
11111
|
+
/** @type {?} */
|
|
11112
|
+
var now = new Date().getTime();
|
|
11113
|
+
// Current time in milliseconds
|
|
11114
|
+
/** @type {?} */
|
|
11115
|
+
var targetTime = new Date(targetDate).getTime();
|
|
11116
|
+
/** @type {?} */
|
|
11117
|
+
var distance = targetTime - now;
|
|
11118
|
+
if (distance > 0) {
|
|
11119
|
+
this.daysRemaining = Math.ceil(distance / (1000 * 60 * 60 * 24));
|
|
11120
|
+
this.daysPending = true;
|
|
11121
|
+
}
|
|
11122
|
+
else {
|
|
11123
|
+
this.daysRemaining = 0;
|
|
11124
|
+
this.daysPending = false;
|
|
11125
|
+
this.clearTimer();
|
|
10780
11126
|
}
|
|
10781
|
-
this.contSvc.changeTelemetryData(contentData);
|
|
10782
11127
|
};
|
|
11128
|
+
// Method to clear the interval
|
|
11129
|
+
// Method to clear the interval
|
|
10783
11130
|
/**
|
|
10784
|
-
* @param {?} channeldata
|
|
10785
11131
|
* @return {?}
|
|
10786
11132
|
*/
|
|
10787
|
-
|
|
10788
|
-
|
|
11133
|
+
CardAssessmentComponent.prototype.clearTimer =
|
|
11134
|
+
// Method to clear the interval
|
|
11135
|
+
/**
|
|
10789
11136
|
* @return {?}
|
|
10790
11137
|
*/
|
|
10791
|
-
function (
|
|
10792
|
-
this.
|
|
11138
|
+
function () {
|
|
11139
|
+
clearInterval(this.intervalId);
|
|
10793
11140
|
};
|
|
10794
11141
|
/**
|
|
10795
|
-
* @param {?} content
|
|
10796
11142
|
* @return {?}
|
|
10797
11143
|
*/
|
|
10798
|
-
|
|
10799
|
-
* @param {?} content
|
|
11144
|
+
CardAssessmentComponent.prototype.ngOnDestroy = /**
|
|
10800
11145
|
* @return {?}
|
|
10801
11146
|
*/
|
|
10802
|
-
function (
|
|
10803
|
-
this.
|
|
11147
|
+
function () {
|
|
11148
|
+
this.clearTimer();
|
|
10804
11149
|
};
|
|
10805
|
-
|
|
10806
|
-
|
|
10807
|
-
|
|
10808
|
-
|
|
10809
|
-
|
|
10810
|
-
|
|
10811
|
-
|
|
10812
|
-
|
|
10813
|
-
|
|
11150
|
+
/**
|
|
11151
|
+
* @param {?} contentData
|
|
11152
|
+
* @return {?}
|
|
11153
|
+
*/
|
|
11154
|
+
CardAssessmentComponent.prototype.getRedirectUrlData = /**
|
|
11155
|
+
* @param {?} contentData
|
|
11156
|
+
* @return {?}
|
|
11157
|
+
*/
|
|
11158
|
+
function (contentData) {
|
|
11159
|
+
// for telemetry
|
|
11160
|
+
if (this.widgetData && this.widgetData.context && this.widgetData.context.pageSection) {
|
|
11161
|
+
contentData['typeOfTelemetry'] = this.widgetData.context.pageSection;
|
|
11162
|
+
}
|
|
11163
|
+
this.contSvc.changeTelemetryData(contentData);
|
|
11164
|
+
// for redirection
|
|
11165
|
+
this.contentData.emit(contentData);
|
|
11166
|
+
};
|
|
11167
|
+
CardAssessmentComponent.decorators = [
|
|
11168
|
+
{ type: Component, args: [{
|
|
11169
|
+
selector: 'sb-uic-card-assessment',
|
|
11170
|
+
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>",
|
|
11171
|
+
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}"]
|
|
11172
|
+
}] }
|
|
11173
|
+
];
|
|
11174
|
+
/** @nocollapse */
|
|
11175
|
+
CardAssessmentComponent.ctorParameters = function () { return [
|
|
11176
|
+
{ type: ConfigurationsService$1 },
|
|
11177
|
+
{ type: WidgetContentService }
|
|
11178
|
+
]; };
|
|
11179
|
+
CardAssessmentComponent.propDecorators = {
|
|
11180
|
+
widgetData: [{ type: Input }],
|
|
11181
|
+
enrollmentMapData: [{ type: Input }],
|
|
11182
|
+
contentData: [{ type: Output }],
|
|
11183
|
+
isCardLoading: [{ type: Input }]
|
|
11184
|
+
};
|
|
11185
|
+
return CardAssessmentComponent;
|
|
11186
|
+
}());
|
|
11187
|
+
if (false) {
|
|
11188
|
+
/** @type {?} */
|
|
11189
|
+
CardAssessmentComponent.prototype.widgetData;
|
|
11190
|
+
/** @type {?} */
|
|
11191
|
+
CardAssessmentComponent.prototype.enrollmentMapData;
|
|
11192
|
+
/** @type {?} */
|
|
11193
|
+
CardAssessmentComponent.prototype.contentData;
|
|
11194
|
+
/** @type {?} */
|
|
11195
|
+
CardAssessmentComponent.prototype.isCardLoading;
|
|
11196
|
+
/** @type {?} */
|
|
11197
|
+
CardAssessmentComponent.prototype.stripData;
|
|
11198
|
+
/** @type {?} */
|
|
11199
|
+
CardAssessmentComponent.prototype.enrollList;
|
|
11200
|
+
/** @type {?} */
|
|
11201
|
+
CardAssessmentComponent.prototype.activeResource;
|
|
11202
|
+
/** @type {?} */
|
|
11203
|
+
CardAssessmentComponent.prototype.defaultThumbnail;
|
|
11204
|
+
/** @type {?} */
|
|
11205
|
+
CardAssessmentComponent.prototype.defaultSLogo;
|
|
11206
|
+
/** @type {?} */
|
|
11207
|
+
CardAssessmentComponent.prototype.daysRemaining;
|
|
11208
|
+
/** @type {?} */
|
|
11209
|
+
CardAssessmentComponent.prototype.startDate;
|
|
11210
|
+
/** @type {?} */
|
|
11211
|
+
CardAssessmentComponent.prototype.daysPending;
|
|
11212
|
+
/**
|
|
11213
|
+
* @type {?}
|
|
11214
|
+
* @private
|
|
11215
|
+
*/
|
|
11216
|
+
CardAssessmentComponent.prototype.intervalId;
|
|
11217
|
+
/**
|
|
11218
|
+
* @type {?}
|
|
11219
|
+
* @private
|
|
11220
|
+
*/
|
|
11221
|
+
CardAssessmentComponent.prototype.configSvc;
|
|
11222
|
+
/**
|
|
11223
|
+
* @type {?}
|
|
11224
|
+
* @private
|
|
11225
|
+
*/
|
|
11226
|
+
CardAssessmentComponent.prototype.contSvc;
|
|
11227
|
+
}
|
|
11228
|
+
|
|
11229
|
+
/**
|
|
11230
|
+
* @fileoverview added by tsickle
|
|
11231
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
11232
|
+
*/
|
|
11233
|
+
var ɵ0$3 = /**
|
|
11234
|
+
* @param {?} id
|
|
11235
|
+
* @return {?}
|
|
11236
|
+
*/
|
|
11237
|
+
function (id) { return "certreg/v2/certs/download/" + id; }, ɵ1$2 = /**
|
|
11238
|
+
* @param {?} id
|
|
11239
|
+
* @return {?}
|
|
11240
|
+
*/
|
|
11241
|
+
function (id) { return "apis/protected/v8/cohorts/course/batch/cert/download/" + id; };
|
|
11242
|
+
/** @type {?} */
|
|
11243
|
+
var urls = {
|
|
11244
|
+
DOWNLOAD_CERTIFICATE: (ɵ0$3),
|
|
11245
|
+
DOWNLOAD_CERTIFICATE_v2: (ɵ1$2),
|
|
11246
|
+
};
|
|
11247
|
+
var CertificateService = /** @class */ (function () {
|
|
11248
|
+
function CertificateService(http) {
|
|
11249
|
+
this.http = http;
|
|
11250
|
+
}
|
|
11251
|
+
/**
|
|
11252
|
+
* @param {?} id
|
|
11253
|
+
* @return {?}
|
|
11254
|
+
*/
|
|
11255
|
+
CertificateService.prototype.downloadCertificate = /**
|
|
11256
|
+
* @param {?} id
|
|
11257
|
+
* @return {?}
|
|
11258
|
+
*/
|
|
11259
|
+
function (id) {
|
|
11260
|
+
return this.http.get(urls.DOWNLOAD_CERTIFICATE(id));
|
|
11261
|
+
};
|
|
11262
|
+
/**
|
|
11263
|
+
* @param {?} id
|
|
11264
|
+
* @return {?}
|
|
11265
|
+
*/
|
|
11266
|
+
CertificateService.prototype.downloadCertificate_v2 = /**
|
|
11267
|
+
* @param {?} id
|
|
11268
|
+
* @return {?}
|
|
11269
|
+
*/
|
|
11270
|
+
function (id) {
|
|
11271
|
+
return this.http.get(urls.DOWNLOAD_CERTIFICATE_v2(id));
|
|
11272
|
+
};
|
|
11273
|
+
CertificateService.decorators = [
|
|
11274
|
+
{ type: Injectable, args: [{
|
|
11275
|
+
providedIn: 'root'
|
|
11276
|
+
},] }
|
|
11277
|
+
];
|
|
11278
|
+
/** @nocollapse */
|
|
11279
|
+
CertificateService.ctorParameters = function () { return [
|
|
11280
|
+
{ type: HttpClient }
|
|
11281
|
+
]; };
|
|
11282
|
+
/** @nocollapse */ CertificateService.ngInjectableDef = ɵɵdefineInjectable({ factory: function CertificateService_Factory() { return new CertificateService(ɵɵinject(HttpClient)); }, token: CertificateService, providedIn: "root" });
|
|
11283
|
+
return CertificateService;
|
|
11284
|
+
}());
|
|
11285
|
+
if (false) {
|
|
11286
|
+
/**
|
|
11287
|
+
* @type {?}
|
|
11288
|
+
* @private
|
|
11289
|
+
*/
|
|
11290
|
+
CertificateService.prototype.http;
|
|
11291
|
+
}
|
|
11292
|
+
|
|
11293
|
+
/**
|
|
11294
|
+
* @fileoverview added by tsickle
|
|
11295
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
11296
|
+
*/
|
|
11297
|
+
var CertificateDialogComponent = /** @class */ (function () {
|
|
11298
|
+
function CertificateDialogComponent(environment, events, translate, langtranslations, dialogRef, data) {
|
|
11299
|
+
var _this = this;
|
|
11300
|
+
this.events = events;
|
|
11301
|
+
this.translate = translate;
|
|
11302
|
+
this.langtranslations = langtranslations;
|
|
11303
|
+
this.dialogRef = dialogRef;
|
|
11304
|
+
this.data = data;
|
|
11305
|
+
this.navUrl = '';
|
|
11306
|
+
this.environment = environment;
|
|
11307
|
+
this.langtranslations.languageSelectedObservable.subscribe((/**
|
|
11308
|
+
* @return {?}
|
|
11309
|
+
*/
|
|
11310
|
+
function () {
|
|
11311
|
+
if (localStorage.getItem('websiteLanguage')) {
|
|
11312
|
+
_this.translate.setDefaultLang('en');
|
|
11313
|
+
/** @type {?} */
|
|
11314
|
+
var lang = (/** @type {?} */ (localStorage.getItem('websiteLanguage')));
|
|
11315
|
+
_this.translate.use(lang);
|
|
11316
|
+
}
|
|
11317
|
+
}));
|
|
11318
|
+
}
|
|
11319
|
+
/**
|
|
11320
|
+
* @return {?}
|
|
11321
|
+
*/
|
|
11322
|
+
CertificateDialogComponent.prototype.ngOnInit = /**
|
|
11323
|
+
* @return {?}
|
|
11324
|
+
*/
|
|
11325
|
+
function () {
|
|
11326
|
+
this.url = this.data.cet;
|
|
11327
|
+
// tslint:disable-next-line:max-line-length
|
|
11328
|
+
this.navUrl = "https://www.linkedin.com/sharing/share-offsite/?url=" + this.environment.contentHost + "/apis/public/v8/cert/download/" + this.data.certId;
|
|
11329
|
+
};
|
|
11330
|
+
/**
|
|
11331
|
+
* @return {?}
|
|
11332
|
+
*/
|
|
11333
|
+
CertificateDialogComponent.prototype.downloadCert = /**
|
|
11334
|
+
* @return {?}
|
|
11335
|
+
*/
|
|
11336
|
+
function () {
|
|
11337
|
+
this.raiseIntreactTelemetry('svg');
|
|
11338
|
+
/** @type {?} */
|
|
11339
|
+
var a = document.createElement('a');
|
|
11340
|
+
a.href = this.data.cet;
|
|
11341
|
+
a.download = 'Certificate';
|
|
11342
|
+
document.body.appendChild(a);
|
|
11343
|
+
a.style = 'display: none';
|
|
11344
|
+
a.click();
|
|
11345
|
+
a.remove();
|
|
11346
|
+
};
|
|
11347
|
+
/**
|
|
11348
|
+
* @return {?}
|
|
11349
|
+
*/
|
|
11350
|
+
CertificateDialogComponent.prototype.downloadCertPng = /**
|
|
11351
|
+
* @return {?}
|
|
11352
|
+
*/
|
|
11353
|
+
function () {
|
|
11354
|
+
this.raiseIntreactTelemetry('png');
|
|
11355
|
+
/** @type {?} */
|
|
11356
|
+
var uriData = this.data.cet;
|
|
11357
|
+
/** @type {?} */
|
|
11358
|
+
var img = new Image();
|
|
11359
|
+
img.src = uriData;
|
|
11360
|
+
img.width = 1820;
|
|
11361
|
+
img.height = 1000;
|
|
11362
|
+
img.onload = (/**
|
|
11363
|
+
* @return {?}
|
|
11364
|
+
*/
|
|
11365
|
+
function () {
|
|
11366
|
+
var _a;
|
|
11367
|
+
/** @type {?} */
|
|
11368
|
+
var canvas = document.createElement('canvas');
|
|
11369
|
+
_a = __read([img.width, img.height], 2), canvas.width = _a[0], canvas.height = _a[1];
|
|
11370
|
+
/** @type {?} */
|
|
11371
|
+
var ctx = canvas.getContext('2d');
|
|
11372
|
+
if (ctx) {
|
|
11373
|
+
// ctx.imageSmoothingEnabled = true
|
|
11374
|
+
ctx.drawImage(img, 0, 0, img.width, img.height);
|
|
11375
|
+
/** @type {?} */
|
|
11376
|
+
var a = document.createElement('a');
|
|
11377
|
+
/** @type {?} */
|
|
11378
|
+
var quality = 1.0 // https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/imageSmoothingQuality
|
|
11379
|
+
;
|
|
11380
|
+
a.href = canvas.toDataURL('image/png', quality);
|
|
11381
|
+
a.download = 'Certificate';
|
|
11382
|
+
a.append(canvas);
|
|
11383
|
+
a.click();
|
|
11384
|
+
a.remove();
|
|
11385
|
+
}
|
|
11386
|
+
});
|
|
11387
|
+
};
|
|
11388
|
+
/**
|
|
11389
|
+
* @return {?}
|
|
11390
|
+
*/
|
|
11391
|
+
CertificateDialogComponent.prototype.downloadCertPdf = /**
|
|
11392
|
+
* @return {?}
|
|
11393
|
+
*/
|
|
11394
|
+
function () {
|
|
11395
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11396
|
+
var uriData, img;
|
|
11397
|
+
return __generator(this, function (_a) {
|
|
11398
|
+
this.raiseIntreactTelemetry('pdf');
|
|
11399
|
+
uriData = this.data.cet;
|
|
11400
|
+
img = new Image();
|
|
11401
|
+
img.src = uriData;
|
|
11402
|
+
img.width = 1820;
|
|
11403
|
+
img.height = 1000;
|
|
11404
|
+
img.onload = (/**
|
|
11405
|
+
* @return {?}
|
|
11406
|
+
*/
|
|
11407
|
+
function () {
|
|
11408
|
+
var _a;
|
|
11409
|
+
/** @type {?} */
|
|
11410
|
+
var canvas = document.createElement('canvas');
|
|
11411
|
+
_a = __read([img.width, img.height], 2), canvas.width = _a[0], canvas.height = _a[1];
|
|
11412
|
+
/** @type {?} */
|
|
11413
|
+
var ctx = canvas.getContext('2d');
|
|
11414
|
+
if (ctx) {
|
|
11415
|
+
ctx.drawImage(img, 0, 0, img.width, img.height);
|
|
11416
|
+
/** @type {?} */
|
|
11417
|
+
var quality = 1.0 // https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/imageSmoothingQuality
|
|
11418
|
+
;
|
|
11419
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/imageSmoothingQuality
|
|
11420
|
+
/** @type {?} */
|
|
11421
|
+
var dataImg = canvas.toDataURL('application/pdf', quality);
|
|
11422
|
+
/** @type {?} */
|
|
11423
|
+
var pdf = new jsPDF('landscape', 'px', 'a4')
|
|
11424
|
+
// add the image to the PDF
|
|
11425
|
+
;
|
|
11426
|
+
// add the image to the PDF
|
|
11427
|
+
pdf.addImage(dataImg, 10, 20, 600, 350);
|
|
11428
|
+
// download the PDF
|
|
11429
|
+
pdf.save('Certificate.pdf');
|
|
11430
|
+
}
|
|
11431
|
+
});
|
|
11432
|
+
return [2 /*return*/];
|
|
11433
|
+
});
|
|
11434
|
+
});
|
|
11435
|
+
};
|
|
11436
|
+
/**
|
|
11437
|
+
* @return {?}
|
|
11438
|
+
*/
|
|
11439
|
+
CertificateDialogComponent.prototype.shareCert = /**
|
|
11440
|
+
* @return {?}
|
|
11441
|
+
*/
|
|
11442
|
+
function () {
|
|
11443
|
+
this.raiseShareIntreactTelemetry('share');
|
|
11444
|
+
return window.open(this.navUrl, '_blank');
|
|
11445
|
+
};
|
|
11446
|
+
/**
|
|
11447
|
+
* @param {?=} type
|
|
11448
|
+
* @param {?=} action
|
|
11449
|
+
* @return {?}
|
|
11450
|
+
*/
|
|
11451
|
+
CertificateDialogComponent.prototype.raiseShareIntreactTelemetry = /**
|
|
11452
|
+
* @param {?=} type
|
|
11453
|
+
* @param {?=} action
|
|
11454
|
+
* @return {?}
|
|
11455
|
+
*/
|
|
11456
|
+
function (type, action) {
|
|
11457
|
+
this.events.raiseInteractTelemetry({
|
|
11458
|
+
type: WsEvents.EnumInteractTypes.CLICK,
|
|
11459
|
+
id: type + "-" + WsEvents.EnumInteractSubTypes.CERTIFICATE,
|
|
11460
|
+
subType: action && action,
|
|
11461
|
+
}, {
|
|
11462
|
+
id: this.data.certId,
|
|
11463
|
+
// id of the certificate
|
|
11464
|
+
type: WsEvents.EnumInteractSubTypes.CERTIFICATE,
|
|
11465
|
+
});
|
|
11466
|
+
};
|
|
11467
|
+
/**
|
|
11468
|
+
* @param {?=} action
|
|
11469
|
+
* @return {?}
|
|
11470
|
+
*/
|
|
11471
|
+
CertificateDialogComponent.prototype.raiseIntreactTelemetry = /**
|
|
11472
|
+
* @param {?=} action
|
|
11473
|
+
* @return {?}
|
|
11474
|
+
*/
|
|
11475
|
+
function (action) {
|
|
11476
|
+
this.events.raiseInteractTelemetry({
|
|
11477
|
+
type: WsEvents.EnumInteractTypes.CLICK,
|
|
11478
|
+
id: 'download-certificate',
|
|
11479
|
+
subType: action && action,
|
|
11480
|
+
}, {
|
|
11481
|
+
id: this.data.certId,
|
|
11482
|
+
// id of the certificate
|
|
11483
|
+
type: WsEvents.EnumInteractSubTypes.CERTIFICATE,
|
|
11484
|
+
});
|
|
11485
|
+
};
|
|
11486
|
+
CertificateDialogComponent.decorators = [
|
|
11487
|
+
{ type: Component, args: [{
|
|
11488
|
+
selector: 'sb-uic-certificate-dialog',
|
|
11489
|
+
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 gap-4 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 btn-custom\">\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 btn-custom\" (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",
|
|
11490
|
+
/* tslint:disable */
|
|
11491
|
+
host: { class: 'certificate-inner-dialog-panel' },
|
|
11492
|
+
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}.btn-custom,.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}.close-icon{position:absolute!important;top:19px!important;right:18px!important}"]
|
|
11493
|
+
}] }
|
|
11494
|
+
];
|
|
11495
|
+
/** @nocollapse */
|
|
11496
|
+
CertificateDialogComponent.ctorParameters = function () { return [
|
|
11497
|
+
{ type: undefined, decorators: [{ type: Inject, args: ['environment',] }] },
|
|
11498
|
+
{ type: EventService },
|
|
11499
|
+
{ type: TranslateService },
|
|
11500
|
+
{ type: MultilingualTranslationsService$1 },
|
|
11501
|
+
{ type: MatDialogRef },
|
|
11502
|
+
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
11503
|
+
]; };
|
|
11504
|
+
return CertificateDialogComponent;
|
|
11505
|
+
}());
|
|
11506
|
+
if (false) {
|
|
11507
|
+
/** @type {?} */
|
|
11508
|
+
CertificateDialogComponent.prototype.url;
|
|
11509
|
+
/** @type {?} */
|
|
11510
|
+
CertificateDialogComponent.prototype.navUrl;
|
|
11511
|
+
/** @type {?} */
|
|
11512
|
+
CertificateDialogComponent.prototype.environment;
|
|
11513
|
+
/**
|
|
11514
|
+
* @type {?}
|
|
11515
|
+
* @private
|
|
11516
|
+
*/
|
|
11517
|
+
CertificateDialogComponent.prototype.events;
|
|
11518
|
+
/**
|
|
11519
|
+
* @type {?}
|
|
11520
|
+
* @private
|
|
11521
|
+
*/
|
|
11522
|
+
CertificateDialogComponent.prototype.translate;
|
|
11523
|
+
/**
|
|
11524
|
+
* @type {?}
|
|
11525
|
+
* @private
|
|
11526
|
+
*/
|
|
11527
|
+
CertificateDialogComponent.prototype.langtranslations;
|
|
11528
|
+
/** @type {?} */
|
|
11529
|
+
CertificateDialogComponent.prototype.dialogRef;
|
|
11530
|
+
/** @type {?} */
|
|
11531
|
+
CertificateDialogComponent.prototype.data;
|
|
11532
|
+
}
|
|
11533
|
+
|
|
11534
|
+
/**
|
|
11535
|
+
* @fileoverview added by tsickle
|
|
11536
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
11537
|
+
*/
|
|
11538
|
+
var CardProgressPortraitLibComponent = /** @class */ (function () {
|
|
11539
|
+
function CardProgressPortraitLibComponent(snackBar, translate, events, langtranslations, configSvc, contSvc, certificateService, dialog) {
|
|
11540
|
+
var _this = this;
|
|
11541
|
+
this.snackBar = snackBar;
|
|
11542
|
+
this.translate = translate;
|
|
11543
|
+
this.events = events;
|
|
11544
|
+
this.langtranslations = langtranslations;
|
|
11545
|
+
this.configSvc = configSvc;
|
|
11546
|
+
this.contSvc = contSvc;
|
|
11547
|
+
this.certificateService = certificateService;
|
|
11548
|
+
this.dialog = dialog;
|
|
11549
|
+
this.isCardLoading = false;
|
|
11550
|
+
this.contentData = new EventEmitter();
|
|
11551
|
+
this.isCardFlipped = false;
|
|
11552
|
+
this.acbpConstants = NsCardContent$1.ACBPConst;
|
|
11553
|
+
this.showFlip = false;
|
|
11554
|
+
this.widgetType = 'df';
|
|
11555
|
+
this.widgetSubType = 'sdf';
|
|
11556
|
+
this.downloadCertificateLoading = false;
|
|
11557
|
+
this.langtranslations.languageSelectedObservable.subscribe((/**
|
|
11558
|
+
* @return {?}
|
|
11559
|
+
*/
|
|
11560
|
+
function () {
|
|
11561
|
+
if (localStorage.getItem('websiteLanguage')) {
|
|
11562
|
+
_this.translate.setDefaultLang('en');
|
|
11563
|
+
/** @type {?} */
|
|
11564
|
+
var lang = (/** @type {?} */ (localStorage.getItem('websiteLanguage')));
|
|
11565
|
+
_this.translate.use(lang);
|
|
11566
|
+
}
|
|
11567
|
+
}));
|
|
11568
|
+
}
|
|
11569
|
+
/**
|
|
11570
|
+
* @return {?}
|
|
11571
|
+
*/
|
|
11572
|
+
CardProgressPortraitLibComponent.prototype.ngOnInit = /**
|
|
11573
|
+
* @return {?}
|
|
11574
|
+
*/
|
|
11575
|
+
function () {
|
|
11576
|
+
/** @type {?} */
|
|
11577
|
+
var instanceConfig = this.configSvc.instanceConfig;
|
|
11578
|
+
if (instanceConfig) {
|
|
11579
|
+
this.defaultThumbnail = instanceConfig.logos.defaultContent || '';
|
|
11580
|
+
this.sourceLogos = instanceConfig.sources;
|
|
11581
|
+
this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '';
|
|
11582
|
+
}
|
|
11583
|
+
else {
|
|
11584
|
+
this.defaultThumbnail = '/assets/instances/eagle/app_logos/default.png';
|
|
11585
|
+
this.defaultSLogo = '/assets/instances/eagle/app_logos/KarmayogiBharat_Logo.svg';
|
|
11586
|
+
}
|
|
11587
|
+
};
|
|
11588
|
+
/**
|
|
11589
|
+
* @return {?}
|
|
11590
|
+
*/
|
|
11591
|
+
CardProgressPortraitLibComponent.prototype.showSnackbar = /**
|
|
11592
|
+
* @return {?}
|
|
11593
|
+
*/
|
|
11594
|
+
function () {
|
|
11595
|
+
if (this.showIntranetContent) {
|
|
11596
|
+
this.snackBar.open('Content is only available in intranet', 'X', { duration: 2000 });
|
|
11597
|
+
}
|
|
11598
|
+
else if (!this.isLiveOrMarkForDeletion) {
|
|
11599
|
+
this.snackBar.open('Content may be expired or deleted', 'X', { duration: 2000 });
|
|
11600
|
+
}
|
|
11601
|
+
};
|
|
11602
|
+
/**
|
|
11603
|
+
* @param {?} contentData
|
|
11604
|
+
* @return {?}
|
|
11605
|
+
*/
|
|
11606
|
+
CardProgressPortraitLibComponent.prototype.getRedirectUrlData = /**
|
|
11607
|
+
* @param {?} contentData
|
|
11608
|
+
* @return {?}
|
|
11609
|
+
*/
|
|
11610
|
+
function (contentData) {
|
|
11611
|
+
// for telemetry
|
|
11612
|
+
if (this.widgetData && this.widgetData.context && this.widgetData.context.pageSection) {
|
|
11613
|
+
contentData['typeOfTelemetry'] = this.widgetData.context.pageSection;
|
|
11614
|
+
}
|
|
11615
|
+
this.contSvc.changeTelemetryData(contentData);
|
|
11616
|
+
// for redirection
|
|
11617
|
+
this.contentData.emit(contentData);
|
|
11618
|
+
};
|
|
11619
|
+
/**
|
|
11620
|
+
* @param {?} label
|
|
11621
|
+
* @param {?} type
|
|
11622
|
+
* @param {?=} subtype
|
|
11623
|
+
* @return {?}
|
|
11624
|
+
*/
|
|
11625
|
+
CardProgressPortraitLibComponent.prototype.translateLabels = /**
|
|
11626
|
+
* @param {?} label
|
|
11627
|
+
* @param {?} type
|
|
11628
|
+
* @param {?=} subtype
|
|
11629
|
+
* @return {?}
|
|
11630
|
+
*/
|
|
11631
|
+
function (label, type, subtype) {
|
|
11632
|
+
return this.langtranslations.translateLabelWithoutspace(label, type, subtype);
|
|
11633
|
+
};
|
|
11634
|
+
/**
|
|
11635
|
+
* @return {?}
|
|
11636
|
+
*/
|
|
11637
|
+
CardProgressPortraitLibComponent.prototype.raiseTelemetry = /**
|
|
11638
|
+
* @return {?}
|
|
11639
|
+
*/
|
|
11640
|
+
function () {
|
|
11641
|
+
this.events.raiseInteractTelemetry({
|
|
11642
|
+
type: 'click',
|
|
11643
|
+
subType: this.widgetType + "-" + this.widgetSubType,
|
|
11644
|
+
id: camelCase(this.widgetData.content.primaryCategory) + "-card",
|
|
11645
|
+
}, {
|
|
11646
|
+
id: this.widgetData.content.identifier,
|
|
11647
|
+
type: this.widgetData.content.primaryCategory,
|
|
11648
|
+
//context: this.widgetData.context,
|
|
11649
|
+
rollup: {},
|
|
11650
|
+
ver: "" + this.widgetData.content.version + '',
|
|
11651
|
+
}, {
|
|
11652
|
+
pageIdExt: camelCase(this.widgetData.content.primaryCategory) + "-card",
|
|
11653
|
+
module: camelCase(this.widgetData.content.primaryCategory),
|
|
11654
|
+
});
|
|
11655
|
+
};
|
|
11656
|
+
/**
|
|
11657
|
+
* @param {?} certificateData
|
|
11658
|
+
* @return {?}
|
|
11659
|
+
*/
|
|
11660
|
+
CardProgressPortraitLibComponent.prototype.downloadCertificate = /**
|
|
11661
|
+
* @param {?} certificateData
|
|
11662
|
+
* @return {?}
|
|
11663
|
+
*/
|
|
11664
|
+
function (certificateData) {
|
|
11665
|
+
var _this = this;
|
|
11666
|
+
this.events.raiseInteractTelemetry({
|
|
11667
|
+
type: WsEvents.EnumInteractTypes.CLICK,
|
|
11668
|
+
id: 'view-certificate',
|
|
11669
|
+
subType: WsEvents.EnumInteractSubTypes.CERTIFICATE,
|
|
11670
|
+
}, {
|
|
11671
|
+
id: certificateData.issuedCertificates[0].identifier,
|
|
11672
|
+
// id of the certificate
|
|
11673
|
+
type: WsEvents.EnumInteractSubTypes.CERTIFICATE,
|
|
11674
|
+
});
|
|
11675
|
+
if (certificateData.issuedCertificates.length > 0) {
|
|
11676
|
+
this.downloadCertificateLoading = true;
|
|
11677
|
+
/** @type {?} */
|
|
11678
|
+
var certData_1 = certificateData.issuedCertificates[0];
|
|
11679
|
+
this.certificateService.downloadCertificate_v2(certData_1.identifier).subscribe((/**
|
|
11680
|
+
* @param {?} res
|
|
11681
|
+
* @return {?}
|
|
11682
|
+
*/
|
|
11683
|
+
function (res) {
|
|
11684
|
+
_this.downloadCertificateLoading = false;
|
|
11685
|
+
/** @type {?} */
|
|
11686
|
+
var cet = res.result.printUri;
|
|
11687
|
+
_this.dialog.open(CertificateDialogComponent, {
|
|
11688
|
+
width: '1300px',
|
|
11689
|
+
data: { cet: cet, certId: certData_1.identifier },
|
|
11690
|
+
});
|
|
11691
|
+
}));
|
|
11692
|
+
}
|
|
11693
|
+
else {
|
|
11694
|
+
this.downloadCertificateLoading = false;
|
|
11695
|
+
}
|
|
11696
|
+
};
|
|
11697
|
+
CardProgressPortraitLibComponent.decorators = [
|
|
11698
|
+
{ type: Component, args: [{
|
|
11699
|
+
selector: 'sb-uic-card-progress-portrait-lib',
|
|
11700
|
+
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>",
|
|
11701
|
+
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}"]
|
|
11702
|
+
}] }
|
|
11703
|
+
];
|
|
11704
|
+
/** @nocollapse */
|
|
11705
|
+
CardProgressPortraitLibComponent.ctorParameters = function () { return [
|
|
11706
|
+
{ type: MatSnackBar },
|
|
11707
|
+
{ type: TranslateService },
|
|
11708
|
+
{ type: EventService },
|
|
11709
|
+
{ type: MultilingualTranslationsService },
|
|
11710
|
+
{ type: ConfigurationsService$1 },
|
|
11711
|
+
{ type: WidgetContentService },
|
|
11712
|
+
{ type: CertificateService },
|
|
11713
|
+
{ type: MatDialog }
|
|
11714
|
+
]; };
|
|
11715
|
+
CardProgressPortraitLibComponent.propDecorators = {
|
|
11716
|
+
widgetData: [{ type: Input }],
|
|
11717
|
+
isLiveOrMarkForDeletion: [{ type: Input }],
|
|
11718
|
+
showIntranetContent: [{ type: Input }],
|
|
11719
|
+
isIntranetAllowedSettings: [{ type: Input }],
|
|
11720
|
+
isCardLoading: [{ type: Input }],
|
|
11721
|
+
contentData: [{ type: Output }],
|
|
11722
|
+
cbPlanMapData: [{ type: Input }]
|
|
11723
|
+
};
|
|
11724
|
+
return CardProgressPortraitLibComponent;
|
|
11725
|
+
}());
|
|
11726
|
+
if (false) {
|
|
11727
|
+
/** @type {?} */
|
|
11728
|
+
CardProgressPortraitLibComponent.prototype.widgetData;
|
|
11729
|
+
/** @type {?} */
|
|
11730
|
+
CardProgressPortraitLibComponent.prototype.isLiveOrMarkForDeletion;
|
|
11731
|
+
/** @type {?} */
|
|
11732
|
+
CardProgressPortraitLibComponent.prototype.showIntranetContent;
|
|
11733
|
+
/** @type {?} */
|
|
11734
|
+
CardProgressPortraitLibComponent.prototype.isIntranetAllowedSettings;
|
|
11735
|
+
/** @type {?} */
|
|
11736
|
+
CardProgressPortraitLibComponent.prototype.isCardLoading;
|
|
11737
|
+
/** @type {?} */
|
|
11738
|
+
CardProgressPortraitLibComponent.prototype.contentData;
|
|
11739
|
+
/** @type {?} */
|
|
11740
|
+
CardProgressPortraitLibComponent.prototype.cbPlanMapData;
|
|
11741
|
+
/** @type {?} */
|
|
11742
|
+
CardProgressPortraitLibComponent.prototype.isCardFlipped;
|
|
11743
|
+
/** @type {?} */
|
|
11744
|
+
CardProgressPortraitLibComponent.prototype.acbpConstants;
|
|
11745
|
+
/** @type {?} */
|
|
11746
|
+
CardProgressPortraitLibComponent.prototype.defaultThumbnail;
|
|
11747
|
+
/** @type {?} */
|
|
11748
|
+
CardProgressPortraitLibComponent.prototype.sourceLogos;
|
|
11749
|
+
/** @type {?} */
|
|
11750
|
+
CardProgressPortraitLibComponent.prototype.defaultSLogo;
|
|
11751
|
+
/** @type {?} */
|
|
11752
|
+
CardProgressPortraitLibComponent.prototype.showFlip;
|
|
11753
|
+
/** @type {?} */
|
|
11754
|
+
CardProgressPortraitLibComponent.prototype.widgetType;
|
|
11755
|
+
/** @type {?} */
|
|
11756
|
+
CardProgressPortraitLibComponent.prototype.widgetSubType;
|
|
11757
|
+
/** @type {?} */
|
|
11758
|
+
CardProgressPortraitLibComponent.prototype.downloadCertificateLoading;
|
|
11759
|
+
/**
|
|
11760
|
+
* @type {?}
|
|
11761
|
+
* @private
|
|
11762
|
+
*/
|
|
11763
|
+
CardProgressPortraitLibComponent.prototype.snackBar;
|
|
11764
|
+
/**
|
|
11765
|
+
* @type {?}
|
|
11766
|
+
* @private
|
|
11767
|
+
*/
|
|
11768
|
+
CardProgressPortraitLibComponent.prototype.translate;
|
|
11769
|
+
/**
|
|
11770
|
+
* @type {?}
|
|
11771
|
+
* @private
|
|
11772
|
+
*/
|
|
11773
|
+
CardProgressPortraitLibComponent.prototype.events;
|
|
11774
|
+
/**
|
|
11775
|
+
* @type {?}
|
|
11776
|
+
* @private
|
|
11777
|
+
*/
|
|
11778
|
+
CardProgressPortraitLibComponent.prototype.langtranslations;
|
|
11779
|
+
/**
|
|
11780
|
+
* @type {?}
|
|
11781
|
+
* @private
|
|
11782
|
+
*/
|
|
11783
|
+
CardProgressPortraitLibComponent.prototype.configSvc;
|
|
11784
|
+
/**
|
|
11785
|
+
* @type {?}
|
|
11786
|
+
* @private
|
|
11787
|
+
*/
|
|
11788
|
+
CardProgressPortraitLibComponent.prototype.contSvc;
|
|
11789
|
+
/**
|
|
11790
|
+
* @type {?}
|
|
11791
|
+
* @private
|
|
11792
|
+
*/
|
|
11793
|
+
CardProgressPortraitLibComponent.prototype.certificateService;
|
|
11794
|
+
/**
|
|
11795
|
+
* @type {?}
|
|
11796
|
+
* @private
|
|
11797
|
+
*/
|
|
11798
|
+
CardProgressPortraitLibComponent.prototype.dialog;
|
|
11799
|
+
}
|
|
11800
|
+
|
|
11801
|
+
/**
|
|
11802
|
+
* @fileoverview added by tsickle
|
|
11803
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
11804
|
+
*/
|
|
11805
|
+
var ContentProgressComponent = /** @class */ (function () {
|
|
11806
|
+
function ContentProgressComponent() {
|
|
11807
|
+
this.contentId = '';
|
|
11808
|
+
this.progress = 0;
|
|
11809
|
+
this.progressType = '';
|
|
11810
|
+
this.forPreview = false;
|
|
11811
|
+
this.className = '';
|
|
11812
|
+
this.customClassName = 'accent-progress';
|
|
11813
|
+
this.rendom = Math.random();
|
|
11814
|
+
this.id = "progress_" + Math.random();
|
|
11815
|
+
if (this.contentId) {
|
|
11816
|
+
this.id = this.contentId;
|
|
11817
|
+
}
|
|
11818
|
+
}
|
|
11819
|
+
/**
|
|
11820
|
+
* @return {?}
|
|
11821
|
+
*/
|
|
11822
|
+
ContentProgressComponent.prototype.ngOnChanges = /**
|
|
11823
|
+
* @return {?}
|
|
11824
|
+
*/
|
|
11825
|
+
function () {
|
|
11826
|
+
if (this.contentId && !this.progress && !this.forPreview) {
|
|
11827
|
+
// this.progressSvc.getProgressFor(this.contentId).subscribe(data => {
|
|
11828
|
+
// this.progress = data
|
|
11829
|
+
// if (this.progress) {
|
|
11830
|
+
// this.progress = Math.round(this.progress * 10000) / 100
|
|
11831
|
+
// }
|
|
11832
|
+
// })
|
|
11833
|
+
}
|
|
11834
|
+
if (this.progress) {
|
|
11835
|
+
if (this.progressType === 'percentage') {
|
|
11836
|
+
this.progress = this.progress;
|
|
11837
|
+
}
|
|
11838
|
+
else {
|
|
11839
|
+
this.progress = Math.round(this.progress * 10000) / 100;
|
|
11840
|
+
}
|
|
11841
|
+
}
|
|
11842
|
+
};
|
|
11843
|
+
ContentProgressComponent.decorators = [
|
|
11844
|
+
{ type: Component, args: [{
|
|
11845
|
+
selector: 'sb-uic-content-progress',
|
|
11846
|
+
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>",
|
|
11847
|
+
/* tslint:disable */
|
|
11848
|
+
host: {
|
|
11849
|
+
// Sets the role for this component to "progressbar"
|
|
11850
|
+
role: 'progressbar',
|
|
11851
|
+
// Sets the minimum and maximum values for the progressbar role.
|
|
11852
|
+
'aria-valuemin': '0',
|
|
11853
|
+
'aria-valuemax': '100',
|
|
11854
|
+
'title': 'progres',
|
|
11855
|
+
// Binding that updates the current value of the progressbar.
|
|
11856
|
+
'[attr.aria-valuenow]': 'progress',
|
|
11857
|
+
},
|
|
11858
|
+
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}"]
|
|
11859
|
+
}] }
|
|
11860
|
+
];
|
|
11861
|
+
/** @nocollapse */
|
|
11862
|
+
ContentProgressComponent.ctorParameters = function () { return []; };
|
|
11863
|
+
ContentProgressComponent.propDecorators = {
|
|
11864
|
+
contentId: [{ type: Input }],
|
|
11865
|
+
progress: [{ type: Input }],
|
|
11866
|
+
progressType: [{ type: Input }],
|
|
11867
|
+
forPreview: [{ type: Input }],
|
|
11868
|
+
className: [{ type: Input }],
|
|
11869
|
+
customClassName: [{ type: Input }],
|
|
11870
|
+
id: [{ type: HostBinding, args: ['id',] }]
|
|
11871
|
+
};
|
|
11872
|
+
return ContentProgressComponent;
|
|
11873
|
+
}());
|
|
11874
|
+
if (false) {
|
|
11875
|
+
/** @type {?} */
|
|
11876
|
+
ContentProgressComponent.prototype.contentId;
|
|
11877
|
+
/** @type {?} */
|
|
11878
|
+
ContentProgressComponent.prototype.progress;
|
|
11879
|
+
/** @type {?} */
|
|
11880
|
+
ContentProgressComponent.prototype.progressType;
|
|
11881
|
+
/** @type {?} */
|
|
11882
|
+
ContentProgressComponent.prototype.forPreview;
|
|
11883
|
+
/** @type {?} */
|
|
11884
|
+
ContentProgressComponent.prototype.className;
|
|
11885
|
+
/** @type {?} */
|
|
11886
|
+
ContentProgressComponent.prototype.customClassName;
|
|
11887
|
+
/** @type {?} */
|
|
11888
|
+
ContentProgressComponent.prototype.rendom;
|
|
11889
|
+
/** @type {?} */
|
|
11890
|
+
ContentProgressComponent.prototype.id;
|
|
11891
|
+
}
|
|
11892
|
+
|
|
11893
|
+
/**
|
|
11894
|
+
* @fileoverview added by tsickle
|
|
11895
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
11896
|
+
*/
|
|
11897
|
+
var ContentProgressModule = /** @class */ (function () {
|
|
11898
|
+
function ContentProgressModule() {
|
|
11899
|
+
}
|
|
11900
|
+
ContentProgressModule.decorators = [
|
|
11901
|
+
{ type: NgModule, args: [{
|
|
11902
|
+
declarations: [ContentProgressComponent],
|
|
11903
|
+
imports: [
|
|
11904
|
+
CommonModule,
|
|
11905
|
+
MatProgressBarModule,
|
|
11906
|
+
MatTooltipModule,
|
|
11907
|
+
],
|
|
11908
|
+
exports: [ContentProgressComponent],
|
|
11909
|
+
},] }
|
|
11910
|
+
];
|
|
11911
|
+
return ContentProgressModule;
|
|
11912
|
+
}());
|
|
11913
|
+
|
|
11914
|
+
/**
|
|
11915
|
+
* @fileoverview added by tsickle
|
|
11916
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
11917
|
+
*/
|
|
11918
|
+
var ɵ0$4 = HttpLoaderFactory;
|
|
11919
|
+
var DialogComponentsModule = /** @class */ (function () {
|
|
11920
|
+
function DialogComponentsModule() {
|
|
11921
|
+
}
|
|
11922
|
+
DialogComponentsModule.decorators = [
|
|
11923
|
+
{ type: NgModule, args: [{
|
|
11924
|
+
declarations: [
|
|
11925
|
+
CertificateDialogComponent
|
|
11926
|
+
],
|
|
11927
|
+
imports: [
|
|
11928
|
+
CommonModule,
|
|
11929
|
+
MatMenuModule,
|
|
11930
|
+
MatCardModule,
|
|
11931
|
+
MatIconModule,
|
|
11932
|
+
MatDialogModule,
|
|
11933
|
+
PipeSafeSanitizerModule,
|
|
11934
|
+
TranslateModule.forRoot({
|
|
11935
|
+
loader: {
|
|
11936
|
+
provide: TranslateLoader,
|
|
11937
|
+
useFactory: ɵ0$4,
|
|
11938
|
+
deps: [HttpClient],
|
|
11939
|
+
},
|
|
11940
|
+
}),
|
|
11941
|
+
],
|
|
11942
|
+
exports: [
|
|
11943
|
+
CertificateDialogComponent
|
|
11944
|
+
],
|
|
11945
|
+
entryComponents: [CertificateDialogComponent],
|
|
11946
|
+
},] }
|
|
11947
|
+
];
|
|
11948
|
+
return DialogComponentsModule;
|
|
11949
|
+
}());
|
|
11950
|
+
|
|
11951
|
+
/**
|
|
11952
|
+
* @fileoverview added by tsickle
|
|
11953
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
11954
|
+
*/
|
|
11955
|
+
var CardMdoChannelV1Component = /** @class */ (function () {
|
|
11956
|
+
function CardMdoChannelV1Component(events, translate, langtranslations, configSvc, contSvc, router) {
|
|
11957
|
+
var _this = this;
|
|
11958
|
+
this.events = events;
|
|
11959
|
+
this.translate = translate;
|
|
11960
|
+
this.langtranslations = langtranslations;
|
|
11961
|
+
this.configSvc = configSvc;
|
|
11962
|
+
this.contSvc = contSvc;
|
|
11963
|
+
this.router = router;
|
|
11964
|
+
this.channelData = new EventEmitter();
|
|
11965
|
+
this.emitTelemetry = new EventEmitter();
|
|
11966
|
+
this.widgetType = '';
|
|
11967
|
+
this.widgetSubType = '';
|
|
11968
|
+
this.langtranslations.languageSelectedObservable.subscribe((/**
|
|
11969
|
+
* @return {?}
|
|
11970
|
+
*/
|
|
11971
|
+
function () {
|
|
11972
|
+
if (localStorage.getItem('websiteLanguage')) {
|
|
11973
|
+
_this.translate.setDefaultLang('en');
|
|
11974
|
+
/** @type {?} */
|
|
11975
|
+
var lang = (/** @type {?} */ (localStorage.getItem('websiteLanguage')));
|
|
11976
|
+
_this.translate.use(lang);
|
|
11977
|
+
}
|
|
11978
|
+
}));
|
|
11979
|
+
}
|
|
11980
|
+
/**
|
|
11981
|
+
* @return {?}
|
|
11982
|
+
*/
|
|
11983
|
+
CardMdoChannelV1Component.prototype.ngOnInit = /**
|
|
11984
|
+
* @return {?}
|
|
11985
|
+
*/
|
|
11986
|
+
function () {
|
|
11987
|
+
/** @type {?} */
|
|
11988
|
+
var instanceConfig = this.configSvc.instanceConfig;
|
|
11989
|
+
if (instanceConfig) {
|
|
11990
|
+
this.defaultThumbnail = instanceConfig.logos.defaultContent || '';
|
|
11991
|
+
this.sourceLogos = instanceConfig.sources;
|
|
11992
|
+
this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '';
|
|
11993
|
+
}
|
|
11994
|
+
else {
|
|
11995
|
+
this.defaultThumbnail = '/assets/instances/eagle/app_logos/default.png';
|
|
11996
|
+
this.defaultSLogo = '/assets/instances/eagle/app_logos/KarmayogiBharat_Logo.svg';
|
|
11997
|
+
}
|
|
11998
|
+
};
|
|
11999
|
+
/**
|
|
12000
|
+
* @param {?} contentData
|
|
12001
|
+
* @return {?}
|
|
12002
|
+
*/
|
|
12003
|
+
CardMdoChannelV1Component.prototype.raiseTelemetry = /**
|
|
12004
|
+
* @param {?} contentData
|
|
12005
|
+
* @return {?}
|
|
12006
|
+
*/
|
|
12007
|
+
function (contentData) {
|
|
12008
|
+
this.emitTelemetry.emit(contentData);
|
|
12009
|
+
if (this.widgetData) {
|
|
12010
|
+
contentData['typeOfTelemetry'] = 'mdo-channel';
|
|
12011
|
+
}
|
|
12012
|
+
this.contSvc.changeTelemetryData(contentData);
|
|
12013
|
+
};
|
|
12014
|
+
/**
|
|
12015
|
+
* @param {?} channeldata
|
|
12016
|
+
* @return {?}
|
|
12017
|
+
*/
|
|
12018
|
+
CardMdoChannelV1Component.prototype.channelClick = /**
|
|
12019
|
+
* @param {?} channeldata
|
|
12020
|
+
* @return {?}
|
|
12021
|
+
*/
|
|
12022
|
+
function (channeldata) {
|
|
12023
|
+
this.channelData.emit(channeldata);
|
|
12024
|
+
};
|
|
12025
|
+
/**
|
|
12026
|
+
* @param {?} content
|
|
12027
|
+
* @return {?}
|
|
12028
|
+
*/
|
|
12029
|
+
CardMdoChannelV1Component.prototype.redirectTo = /**
|
|
12030
|
+
* @param {?} content
|
|
12031
|
+
* @return {?}
|
|
12032
|
+
*/
|
|
12033
|
+
function (content) {
|
|
12034
|
+
this.router.navigate(["/app/learn/mdo-channels/" + content.orgName + "/" + content.identifier + "/micro-sites"]);
|
|
12035
|
+
};
|
|
12036
|
+
CardMdoChannelV1Component.decorators = [
|
|
12037
|
+
{ type: Component, args: [{
|
|
12038
|
+
selector: 'sb-uic-card-mdo-channel-v1',
|
|
12039
|
+
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>",
|
|
12040
|
+
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}"]
|
|
12041
|
+
}] }
|
|
12042
|
+
];
|
|
12043
|
+
/** @nocollapse */
|
|
12044
|
+
CardMdoChannelV1Component.ctorParameters = function () { return [
|
|
10814
12045
|
{ type: EventService },
|
|
10815
12046
|
{ type: TranslateService },
|
|
10816
12047
|
{ type: MultilingualTranslationsService$1 },
|
|
@@ -11074,6 +12305,7 @@ var AvatarPhotoLibModule = /** @class */ (function () {
|
|
|
11074
12305
|
* @fileoverview added by tsickle
|
|
11075
12306
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
11076
12307
|
*/
|
|
12308
|
+
var ɵ0$5 = HttpLoaderFactory;
|
|
11077
12309
|
var CardsModule = /** @class */ (function () {
|
|
11078
12310
|
function CardsModule() {
|
|
11079
12311
|
}
|
|
@@ -11089,21 +12321,36 @@ var CardsModule = /** @class */ (function () {
|
|
|
11089
12321
|
CardWideV2Component,
|
|
11090
12322
|
CardKarmaProgramsComponent,
|
|
11091
12323
|
CardKarmaProgramsV2Component,
|
|
12324
|
+
ProviderCardComponent,
|
|
11092
12325
|
CardPortraitExtComponent,
|
|
12326
|
+
CardAssessmentComponent,
|
|
12327
|
+
CardProgressPortraitLibComponent,
|
|
11093
12328
|
CardMdoChannelV1Component
|
|
11094
12329
|
],
|
|
11095
12330
|
imports: [
|
|
11096
12331
|
CommonModule,
|
|
11097
12332
|
MatCardModule,
|
|
11098
12333
|
MatButtonModule,
|
|
12334
|
+
MatTooltipModule,
|
|
11099
12335
|
MatIconModule,
|
|
11100
12336
|
MatTooltipModule,
|
|
11101
12337
|
RouterModule,
|
|
11102
12338
|
PipePublicURLModule,
|
|
12339
|
+
ObjectToArrayPipeModule,
|
|
11103
12340
|
DisplayContentTypeLibModule,
|
|
11104
12341
|
DefaultThumbnailModule,
|
|
11105
12342
|
PipeDurationTransformModule,
|
|
11106
12343
|
SkeletonLoaderLibModule,
|
|
12344
|
+
MatProgressSpinnerModule,
|
|
12345
|
+
ContentProgressModule,
|
|
12346
|
+
DialogComponentsModule,
|
|
12347
|
+
TranslateModule.forRoot({
|
|
12348
|
+
loader: {
|
|
12349
|
+
provide: TranslateLoader,
|
|
12350
|
+
useFactory: ɵ0$5,
|
|
12351
|
+
deps: [HttpClient],
|
|
12352
|
+
},
|
|
12353
|
+
}),
|
|
11107
12354
|
AvatarPhotoLibModule
|
|
11108
12355
|
],
|
|
11109
12356
|
entryComponents: [CardsComponent],
|
|
@@ -11117,7 +12364,7 @@ var CardsModule = /** @class */ (function () {
|
|
|
11117
12364
|
CardMDOChannelComponent,
|
|
11118
12365
|
CardWideV2Component,
|
|
11119
12366
|
CardKarmaProgramsComponent,
|
|
11120
|
-
CardKarmaProgramsV2Component
|
|
12367
|
+
CardKarmaProgramsV2Component,
|
|
11121
12368
|
],
|
|
11122
12369
|
},] }
|
|
11123
12370
|
];
|
|
@@ -12214,7 +13461,7 @@ var CompetencyPassbookMdoModule = /** @class */ (function () {
|
|
|
12214
13461
|
*/
|
|
12215
13462
|
/** @type {?} */
|
|
12216
13463
|
var PROXY_SLAG_V8 = '/apis/proxies/v8';
|
|
12217
|
-
var ɵ0$
|
|
13464
|
+
var ɵ0$6 = /**
|
|
12218
13465
|
* @param {?} contentId
|
|
12219
13466
|
* @param {?} contentType
|
|
12220
13467
|
* @param {?} userId
|
|
@@ -12222,7 +13469,7 @@ var ɵ0$3 = /**
|
|
|
12222
13469
|
*/
|
|
12223
13470
|
function (contentId, contentType, userId) {
|
|
12224
13471
|
return PROXY_SLAG_V8 + "/ratings/v1/read/" + contentId + "/" + contentType + "/" + userId;
|
|
12225
|
-
}, ɵ1$
|
|
13472
|
+
}, ɵ1$3 = /**
|
|
12226
13473
|
* @param {?} contentId
|
|
12227
13474
|
* @param {?} contentType
|
|
12228
13475
|
* @return {?}
|
|
@@ -12239,9 +13486,9 @@ function (contentId, userID) {
|
|
|
12239
13486
|
};
|
|
12240
13487
|
/** @type {?} */
|
|
12241
13488
|
var API_END_POINTS$3 = {
|
|
12242
|
-
GET_RATING: (ɵ0$
|
|
13489
|
+
GET_RATING: (ɵ0$6),
|
|
12243
13490
|
ADD_OR_UPDATE: PROXY_SLAG_V8 + "/ratings/v1/upsert",
|
|
12244
|
-
GET_RATING_SUMMARY: (ɵ1$
|
|
13491
|
+
GET_RATING_SUMMARY: (ɵ1$3),
|
|
12245
13492
|
GET_RATING_LOOKUP: PROXY_SLAG_V8 + "/ratings/v1/ratingLookUp",
|
|
12246
13493
|
GET_AUTHOR_REPLY: (ɵ2$2),
|
|
12247
13494
|
POST_AUTHOR_REPLY: PROXY_SLAG_V8 + "/ratings/v2/read",
|
|
@@ -13003,5 +14250,5 @@ var UserContentRatingLibModule = /** @class */ (function () {
|
|
|
13003
14250
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
13004
14251
|
*/
|
|
13005
14252
|
|
|
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,
|
|
14253
|
+
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, ProviderCardComponent as ɵbd, CardPortraitExtComponent as ɵbe, CardAssessmentComponent as ɵbf, CardProgressPortraitLibComponent as ɵbg, CertificateService as ɵbh, CardMdoChannelV1Component as ɵbi, PipePublicURLModule as ɵbj, PipePublicURL as ɵbk, ObjectToArrayPipeModule as ɵbl, ObjectToArrayPipe as ɵbm, DisplayContentTypeLibModule as ɵbn, DisplayContentTypeLibComponent as ɵbo, DefaultThumbnailModule as ɵbp, DefaultThumbnailDirective as ɵbq, PipeDurationTransformModule as ɵbr, PipeDurationTransformPipe as ɵbs, ContentProgressComponent as ɵbt, DialogComponentsModule as ɵbu, CertificateDialogComponent as ɵbv, AvatarPhotoLibModule as ɵbw, AvatarPhotoLibComponent as ɵbx, CompetencyPassbookComponent as ɵby, CompetencyPassbookService as ɵbz, MultilingualTranslationsService as ɵc, PillsModule as ɵca, PillsComponent as ɵcb, CompetencyPassbookMdoComponent as ɵcc, CompetencyPassbookMdoService as ɵcd, UserContentRatingLibComponent as ɵce, ScrollableItemDirective as ɵcf, RatingService as ɵcg, UserContentRatingLibService as ɵch, MyHammerConfig$1 as ɵci, SlidersNgContentLibModule as ɵcj, SlidersNgContentLibComponent as ɵck, ScrollableItemModule as ɵcl, 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
14254
|
//# sourceMappingURL=sunbird-cb-consumption.js.map
|