@sunbird-cb/consumption 0.0.89 → 0.0.90

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.
Files changed (72) hide show
  1. package/bundles/sunbird-cb-consumption.umd.js +1265 -1349
  2. package/bundles/sunbird-cb-consumption.umd.js.map +1 -1
  3. package/bundles/sunbird-cb-consumption.umd.min.js +2 -2
  4. package/bundles/sunbird-cb-consumption.umd.min.js.map +1 -1
  5. package/esm2015/lib/_common/cards/card-assessment/card-assessment/card-assessment.component.js +7 -4
  6. package/esm2015/lib/_common/cards/card-karma-programs/card-karma-programs.component.js +3 -3
  7. package/esm2015/lib/_common/cards/card-mdo-channel/card-mdo-channel.component.js +3 -3
  8. package/esm2015/lib/_common/cards/card-mdo-channel-v1/card-mdo-channel-v1.component.js +3 -3
  9. package/esm2015/lib/_common/cards/card-portrait/card-portrait.component.js +3 -3
  10. package/esm2015/lib/_common/cards/card-portrait-ext/card-portrait-ext.component.js +3 -3
  11. package/esm2015/lib/_common/cards/card-progress-portrait-lib/card-progress-portrait-lib.component.js +3 -3
  12. package/esm2015/lib/_common/cards/cards.component.js +24 -4
  13. package/esm2015/lib/_common/common-strip/common-strip.component.js +5 -5
  14. package/esm2015/lib/_common/competency-passbook/competency-passbook.component.js +3 -3
  15. package/esm2015/lib/_common/competency-passbook-mdo/competency-passbook-mdo.component.js +3 -3
  16. package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +54 -50
  17. package/esm2015/lib/_common/microsites/national-learning-week/national-learning/national-learning.component.js +12 -4
  18. package/esm2015/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.component.js +19 -18
  19. package/esm2015/lib/_common/strips/content-strip-with-tabs-pills/content-strip-with-tabs-pills.component.js +8 -8
  20. package/esm2015/lib/_common/user-progress/user-progress.component.js +2 -1
  21. package/esm2015/lib/_services/widget-content.service.js +852 -0
  22. package/esm2015/lib/_services/widget-user.service.js +475 -0
  23. package/esm2015/public-api.js +2 -3
  24. package/esm2015/sunbird-cb-consumption.js +78 -77
  25. package/esm5/lib/_common/cards/card-assessment/card-assessment/card-assessment.component.js +7 -4
  26. package/esm5/lib/_common/cards/card-karma-programs/card-karma-programs.component.js +3 -3
  27. package/esm5/lib/_common/cards/card-mdo-channel/card-mdo-channel.component.js +3 -3
  28. package/esm5/lib/_common/cards/card-mdo-channel-v1/card-mdo-channel-v1.component.js +3 -3
  29. package/esm5/lib/_common/cards/card-portrait/card-portrait.component.js +3 -3
  30. package/esm5/lib/_common/cards/card-portrait-ext/card-portrait-ext.component.js +3 -3
  31. package/esm5/lib/_common/cards/card-progress-portrait-lib/card-progress-portrait-lib.component.js +3 -3
  32. package/esm5/lib/_common/cards/cards.component.js +27 -4
  33. package/esm5/lib/_common/common-strip/common-strip.component.js +5 -5
  34. package/esm5/lib/_common/competency-passbook/competency-passbook.component.js +3 -3
  35. package/esm5/lib/_common/competency-passbook-mdo/competency-passbook-mdo.component.js +3 -3
  36. package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +87 -83
  37. package/esm5/lib/_common/microsites/national-learning-week/national-learning/national-learning.component.js +12 -4
  38. package/esm5/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.component.js +19 -19
  39. package/esm5/lib/_common/strips/content-strip-with-tabs-pills/content-strip-with-tabs-pills.component.js +9 -8
  40. package/esm5/lib/_common/user-progress/user-progress.component.js +2 -1
  41. package/esm5/lib/_services/widget-content.service.js +1109 -0
  42. package/esm5/lib/_services/widget-user.service.js +542 -0
  43. package/esm5/public-api.js +2 -3
  44. package/esm5/sunbird-cb-consumption.js +78 -77
  45. package/fesm2015/sunbird-cb-consumption.js +1059 -1115
  46. package/fesm2015/sunbird-cb-consumption.js.map +1 -1
  47. package/fesm5/sunbird-cb-consumption.js +1322 -1406
  48. package/fesm5/sunbird-cb-consumption.js.map +1 -1
  49. package/lib/_common/cards/card-assessment/card-assessment/card-assessment.component.d.ts +3 -2
  50. package/lib/_common/cards/card-karma-programs/card-karma-programs.component.d.ts +2 -2
  51. package/lib/_common/cards/card-mdo-channel/card-mdo-channel.component.d.ts +2 -2
  52. package/lib/_common/cards/card-mdo-channel-v1/card-mdo-channel-v1.component.d.ts +2 -2
  53. package/lib/_common/cards/card-portrait/card-portrait.component.d.ts +2 -2
  54. package/lib/_common/cards/card-portrait-ext/card-portrait-ext.component.d.ts +2 -2
  55. package/lib/_common/cards/card-progress-portrait-lib/card-progress-portrait-lib.component.d.ts +2 -2
  56. package/lib/_common/cards/cards.component.d.ts +5 -2
  57. package/lib/_common/common-strip/common-strip.component.d.ts +3 -3
  58. package/lib/_common/competency-passbook/competency-passbook.component.d.ts +3 -3
  59. package/lib/_common/competency-passbook-mdo/competency-passbook-mdo.component.d.ts +3 -3
  60. package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.d.ts +6 -4
  61. package/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.component.d.ts +5 -4
  62. package/lib/_common/strips/content-strip-with-tabs-pills/content-strip-with-tabs-pills.component.d.ts +4 -3
  63. package/lib/_services/{widget-content-lib.service.d.ts → widget-content.service.d.ts} +3 -6
  64. package/lib/_services/{widget-user-lib.service.d.ts → widget-user.service.d.ts} +4 -9
  65. package/package.json +1 -1
  66. package/public-api.d.ts +1 -2
  67. package/sunbird-cb-consumption.d.ts +76 -75
  68. package/sunbird-cb-consumption.metadata.json +1 -1
  69. package/esm2015/lib/_services/widget-content-lib.service.js +0 -899
  70. package/esm2015/lib/_services/widget-user-lib.service.js +0 -523
  71. package/esm5/lib/_services/widget-content-lib.service.js +0 -1170
  72. package/esm5/lib/_services/widget-user-lib.service.js +0 -607
@@ -1,19 +1,19 @@
1
- import { Injectable, ɵɵdefineInjectable, Component, EventEmitter, Input, Output, ViewChild, NgModule, Inject, ɵɵinject, HostBinding, Directive, HostListener, CUSTOM_ELEMENTS_SCHEMA, ElementRef, ViewChildren, Pipe } from '@angular/core';
1
+ import { Injectable, ɵɵdefineInjectable, Component, EventEmitter, Input, Output, ViewChild, NgModule, ɵɵinject, Inject, HostBinding, Directive, HostListener, CUSTOM_ELEMENTS_SCHEMA, ElementRef, ViewChildren, Pipe } from '@angular/core';
2
2
  import { CommonModule, DatePipe } from '@angular/common';
3
3
  import { Router, RouterModule, ActivatedRoute } from '@angular/router';
4
- import { fromEvent, timer, throwError, Observable, BehaviorSubject, Subject, of, EMPTY, ReplaySubject, interval } from 'rxjs';
5
- import { debounceTime, throttleTime, catchError, map, shareReplay, retry, filter, distinctUntilChanged } from 'rxjs/operators';
4
+ import { fromEvent, timer, BehaviorSubject, Subject, of, EMPTY, ReplaySubject, throwError, Observable, interval } from 'rxjs';
5
+ import { debounceTime, throttleTime, shareReplay, retry, map, catchError, filter, distinctUntilChanged } from 'rxjs/operators';
6
6
  import { ValueService, ConfigurationsService as ConfigurationsService$1, WsEvents, LoggerService, EventService, UtilityService, MultilingualTranslationsService as MultilingualTranslationsService$1, PipeSafeSanitizerModule } from '@sunbird-cb/utils-v2';
7
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
8
  import { __awaiter } from 'tslib';
9
9
  import { WidgetBaseComponent, SbUiResolverModule } from '@sunbird-cb/resolver-v2';
10
- import { HttpHeaders, HttpClient } from '@angular/common/http';
11
- import { uniqBy, orderBy, get, camelCase, kebabCase } from 'lodash';
12
- import 'rxjs/add/observable/of';
13
- import * as dayjs_ from 'dayjs';
10
+ import { HttpClient, HttpHeaders } from '@angular/common/http';
11
+ import { get, uniqBy, orderBy, camelCase, kebabCase } from 'lodash';
14
12
  import * as moment$4 from 'moment';
15
13
  import { duration, utc } from 'moment';
16
14
  import { TranslateService, TranslateModule, TranslateLoader } from '@ngx-translate/core';
15
+ import 'rxjs/add/observable/of';
16
+ import * as dayjs_ from 'dayjs';
17
17
  import { TranslateHttpLoader } from '@ngx-translate/http-loader';
18
18
  import { BreakpointObserver } from '@angular/cdk/layout';
19
19
  import { HammerGestureConfig, HAMMER_GESTURE_CONFIG } from '@angular/platform-browser';
@@ -1439,1000 +1439,410 @@ function viewerRouteGenerator(id, mimeType, collectionId, collectionType, forPre
1439
1439
  };
1440
1440
  }
1441
1441
 
1442
- /**
1443
- * @fileoverview added by tsickle
1444
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1445
- */
1446
- var NsCardContent;
1447
- (function (NsCardContent) {
1448
- /**
1449
- * @record
1450
- */
1451
- function ICard() { }
1452
- NsCardContent.ICard = ICard;
1453
- if (false) {
1454
- /** @type {?} */
1455
- ICard.prototype.content;
1456
- /** @type {?} */
1457
- ICard.prototype.cardSubType;
1458
- /** @type {?} */
1459
- ICard.prototype.context;
1460
- /** @type {?|undefined} */
1461
- ICard.prototype.intranetMode;
1462
- /** @type {?|undefined} */
1463
- ICard.prototype.deletedMode;
1464
- /** @type {?|undefined} */
1465
- ICard.prototype.likes;
1466
- /** @type {?|undefined} */
1467
- ICard.prototype.contentTags;
1468
- /** @type {?} */
1469
- ICard.prototype.stateData;
1470
- }
1471
- /**
1472
- * @record
1473
- */
1474
- function IContentTags() { }
1475
- NsCardContent.IContentTags = IContentTags;
1476
- if (false) {
1477
- /** @type {?|undefined} */
1478
- IContentTags.prototype.daysSpan;
1479
- /** @type {?|undefined} */
1480
- IContentTags.prototype.excludeContentType;
1481
- /** @type {?|undefined} */
1482
- IContentTags.prototype.excludeMimeType;
1483
- /** @type {?} */
1484
- IContentTags.prototype.tag;
1485
- /** @type {?|undefined} */
1486
- IContentTags.prototype.criteriaField;
1487
- }
1488
- /**
1489
- * @record
1490
- */
1491
- function ICompetency() { }
1492
- NsCardContent.ICompetency = ICompetency;
1493
- if (false) {
1494
- /** @type {?} */
1495
- ICompetency.prototype.competencyArea;
1496
- /** @type {?} */
1497
- ICompetency.prototype.competencyObject;
1498
- }
1499
- let EContentStatus;
1500
- (function (EContentStatus) {
1501
- EContentStatus["LIVE"] = "Live";
1502
- EContentStatus["EXPIRED"] = "Expired";
1503
- EContentStatus["DELETED"] = "Deleted";
1504
- EContentStatus["MARK_FOR_DELETION"] = "MarkedForDeletion";
1505
- })(EContentStatus = NsCardContent.EContentStatus || (NsCardContent.EContentStatus = {}));
1506
- let ACBPConst;
1507
- (function (ACBPConst) {
1508
- ACBPConst["UPCOMING"] = "upcoming";
1509
- ACBPConst["ALL"] = "All";
1510
- ACBPConst["OVERDUE"] = "overdue";
1511
- ACBPConst["SUCCESS"] = "success";
1512
- })(ACBPConst = NsCardContent.ACBPConst || (NsCardContent.ACBPConst = {}));
1513
- let IGOTConst;
1514
- (function (IGOTConst) {
1515
- IGOTConst["COMPETENCIES"] = "competencies_v5";
1516
- IGOTConst["RETIRED"] = "Retired";
1517
- })(IGOTConst = NsCardContent.IGOTConst || (NsCardContent.IGOTConst = {}));
1518
- })(NsCardContent || (NsCardContent = {}));
1519
-
1520
1442
  /**
1521
1443
  * @fileoverview added by tsickle
1522
1444
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1523
1445
  */
1524
1446
  /** @type {?} */
1525
- const dayjs = dayjs_
1526
- // import { environment } from 'src/environments/environment'
1527
- ;
1447
+ const moment = moment$4;
1448
+ // tslint:enable
1449
+ // TODO: move this in some common place
1528
1450
  /** @type {?} */
1529
1451
  const PROTECTED_SLAG_V8 = '/apis/protected/v8';
1530
1452
  const ɵ0 = /**
1531
- * @param {?} userId
1453
+ * @param {?} type
1454
+ * @param {?} id
1532
1455
  * @return {?}
1533
1456
  */
1534
- (userId) => `${PROTECTED_SLAG_V8}/user/group/fetchUserGroup?userId=${userId}`, ɵ1 = /**
1535
- * @param {?} userId
1457
+ (type, id) => `${PROTECTED_SLAG_V8}/content/collection/${type}/${id}`, ɵ1 = /**
1458
+ * @param {?} contentId
1536
1459
  * @return {?}
1537
1460
  */
1538
- (userId) =>
1539
- // tslint:disable-next-line: max-line-length
1540
- `/apis/proxies/v8/learner/course/v2/user/enrollment/list/${userId}?orgdetails=orgName,email&licenseDetails=name,description,url&fields=contentType,primaryCategory,courseCategory,topic,name,channel,mimeType,appIcon,gradeLevel,resourceType,identifier,medium,pkgVersion,board,subject,trackable,posterImage,duration,creatorLogo,license,version,versionKey,avgRating,additionalTags,${NsCardContent.IGOTConst.COMPETENCIES}&batchDetails=name,endDate,startDate,status,enrollmentType,createdBy,certificates,batchAttributes`, ɵ2 = /**
1541
- * @param {?} userId
1461
+ (contentId) => `${PROTECTED_SLAG_V8}/user/progress/${contentId}`, ɵ2 = /**
1462
+ * @param {?} certId
1542
1463
  * @return {?}
1543
1464
  */
1544
- (userId) =>
1545
- // tslint:disable-next-line: max-line-length
1546
- `/apis/proxies/v8/learner/course/v2/user/enrollment/list/${userId}?orgdetails=orgName,email&licenseDetails=name,description,url&fields=contentType,primaryCategory,courseCategory,topic,name,channel,mimeType,appIcon,gradeLevel,resourceType,identifier,medium,pkgVersion,board,subject,trackable,posterImage,duration,creatorLogo,license,version,versionKey,avgRating,additionalTags,${NsCardContent.IGOTConst.COMPETENCIES}&batchDetails=name,endDate,startDate,status,enrollmentType,createdBy,certificates,batchAttributes&retiredCoursesEnabled=true`, ɵ3 = /**
1547
- * @param {?} userId
1548
- * @param {?} orgdetails
1549
- * @param {?} licenseDetails
1550
- * @param {?} fields
1551
- * @param {?} batchDetails
1465
+ (certId) => `${PROTECTED_SLAG_V8}/cohorts/course/batch/cert/download/${certId}`, ɵ3 = /**
1466
+ * @param {?} contentId
1552
1467
  * @return {?}
1553
1468
  */
1554
- (userId, orgdetails, licenseDetails, fields, batchDetails) =>
1555
- // tslint:disable-next-line: max-line-length
1556
- `apis/proxies/v8/learner/course/v2/user/enrollment/list/${userId}?orgdetails=${orgdetails}&licenseDetails=${licenseDetails}&fields=${fields},courseCategory,${NsCardContent.IGOTConst.COMPETENCIES}&batchDetails=${batchDetails}`;
1469
+ (contentId) => `/apis/proxies/v8/action/content/v3/read/${contentId}`;
1557
1470
  /** @type {?} */
1558
1471
  const API_END_POINTS = {
1559
- FETCH_USER_GROUPS: (ɵ0),
1560
- FETCH_CPB_PLANS: `/apis/proxies/v8/user/v1/cbplan`,
1561
- FETCH_USER_ENROLLMENT_LIST: (ɵ1),
1562
- FETCH_USER_ENROLLMENT_LIST_PROFILE: (ɵ2),
1563
- // tslint:disable-next-line: max-line-length
1564
- FETCH_USER_ENROLLMENT_LIST_V2: (ɵ3),
1472
+ CONTENT: `${PROTECTED_SLAG_V8}/content`,
1473
+ AUTHORING_CONTENT: `/api/course/v1/hierarchy`,
1474
+ CONTENT_LIKES: `${PROTECTED_SLAG_V8}/content/likeCount`,
1475
+ SET_S3_COOKIE: `${PROTECTED_SLAG_V8}/content/setCookie`,
1476
+ SET_S3_IMAGE_COOKIE: `${PROTECTED_SLAG_V8}/content/setImageCookie`,
1477
+ FETCH_MANIFEST: `${PROTECTED_SLAG_V8}/content/getWebModuleManifest`,
1478
+ FETCH_WEB_MODULE_FILES: `${PROTECTED_SLAG_V8}/content/getWebModuleFiles`,
1479
+ MULTIPLE_CONTENT: `${PROTECTED_SLAG_V8}/content/multiple`,
1480
+ CONTENT_SEARCH_V5: `${PROTECTED_SLAG_V8}/content/searchV5`,
1481
+ CONTENT_SEARCH_V6: `/apis/proxies/v8/sunbirdigot/search`,
1482
+ TRENDING_CONTENT_SEARCH: `apis/proxies/v8/trending/content/search`,
1483
+ CONTENT_SEARCH_RELATED_CBP_V6: `/apis/proxies/v8/sunbirdigot/search`,
1484
+ CONTENT_SEARCH_REGION_RECOMMENDATION: `${PROTECTED_SLAG_V8}/content/searchRegionRecommendation`,
1485
+ CONTENT_HISTORY: `${PROTECTED_SLAG_V8}/user/history`,
1486
+ CONTENT_HISTORYV2: `/apis/proxies/v8/read/content-progres`,
1487
+ COURSE_BATCH_LIST: `/apis/proxies/v8/learner/course/v1/batch/list`,
1488
+ COURSE_BATCH: `/apis/proxies/v8/course/v1/batch/read`,
1489
+ AUTO_ASSIGN_BATCH: `/apis/protected/v8/cohorts/user/autoenrollment/`,
1490
+ AUTO_ASSIGN_CURATED_BATCH: `/apis/proxies/v8/curatedprogram/v1/enrol`,
1491
+ AUTO_ASSIGN_OPEN_PROGRAM: `/apis/proxies/v8/openprogram/v1/enrol`,
1492
+ USER_CONTINUE_LEARNING: `${PROTECTED_SLAG_V8}/user/history/continue`,
1493
+ CONTENT_RATING: `${PROTECTED_SLAG_V8}/user/rating`,
1494
+ COLLECTION_HIERARCHY: (ɵ0),
1495
+ REGISTRATION_STATUS: `${PROTECTED_SLAG_V8}/admin/userRegistration/checkUserRegistrationContent`,
1496
+ MARK_AS_COMPLETE_META: (ɵ1),
1497
+ ENROLL_BATCH: `/apis/proxies/v8/learner/course/v1/enrol`,
1498
+ ENROLL_BATCH_WF: `/apis/proxies/v8/workflow/blendedprogram/enrol`,
1499
+ WITHDRAW_BATCH_WF: `/apis/proxies/v8/workflow/blendedprogram/unenrol`,
1500
+ BLENDED_USER_WF: `/apis/proxies/v8/workflow/blendedprogram/user/search`,
1501
+ BLENDED_USER_COUNT: `apis/proxies/v8/workflow/blendedprogram/enrol/status/count`,
1502
+ CERT_ADD_TEMPLATE: `${PROTECTED_SLAG_V8}/cohorts/course/batch/cert/template/add`,
1503
+ CERT_ISSUE: `${PROTECTED_SLAG_V8}/cohorts/course/batch/cert/issue`,
1504
+ CERT_DOWNLOAD: (ɵ2),
1505
+ READ_KARMAPOINTS: `/apis/proxies/v8/karmapoints/read`,
1506
+ CONTENT_READ: (ɵ3),
1507
+ READ_COURSE_KARMAPOINTS: '/apis/proxies/v8/karmapoints/user/course/read',
1508
+ CLAIM_KARMAPOINTS: '/apis/proxies/v8/claimkarmapoints',
1509
+ USER_KARMA_POINTS: '/apis/proxies/v8/user/totalkarmapoints',
1510
+ AGGREGATION_SEARCH: '/apis/proxies/v8/content/aggregation/search',
1511
+ FEATURE_SEARCH: '/apis/proxies/v8/featured/content/search',
1565
1512
  };
1566
- class WidgetUserServiceLib {
1513
+ class WidgetContentService {
1567
1514
  /**
1568
- * @param {?} environment
1569
1515
  * @param {?} http
1516
+ * @param {?} configSvc
1570
1517
  */
1571
- constructor(environment, http) {
1518
+ constructor(http, configSvc) {
1572
1519
  this.http = http;
1573
- this.environment = environment;
1520
+ this.configSvc = configSvc;
1521
+ this.tocConfigData = new BehaviorSubject({});
1522
+ this.tocConfigData$ = this.tocConfigData.asObservable();
1523
+ this.telemetryData = new Subject();
1524
+ this.telemetryData$ = this.telemetryData.asObservable();
1525
+ this.programChildCourseResumeData = new BehaviorSubject({});
1526
+ this.programChildCourseResumeData$ = this.programChildCourseResumeData.asObservable();
1574
1527
  }
1575
1528
  /**
1576
- * @param {?} error
1529
+ * @param {?} message
1577
1530
  * @return {?}
1578
1531
  */
1579
- handleError(error) {
1580
- /** @type {?} */
1581
- let errorMessage = '';
1582
- if (error.error instanceof ErrorEvent) {
1583
- errorMessage = `Error: ${error.error.message}`;
1584
- }
1585
- return throwError(errorMessage);
1532
+ changeTelemetryData(message) {
1533
+ this.telemetryData.next(message);
1586
1534
  }
1587
1535
  /**
1588
- * @param {?} userId
1536
+ * @param {?} primaryCategory
1589
1537
  * @return {?}
1590
1538
  */
1591
- fetchUserGroupDetails(userId) {
1592
- return this.http
1593
- .get(API_END_POINTS.FETCH_USER_GROUPS(userId))
1594
- .pipe(catchError(this.handleError));
1539
+ isResource(primaryCategory) {
1540
+ if (primaryCategory) {
1541
+ /** @type {?} */
1542
+ const isResource = (primaryCategory === NsContent.EResourcePrimaryCategories.LEARNING_RESOURCE) ||
1543
+ (primaryCategory === NsContent.EResourcePrimaryCategories.PRACTICE_RESOURCE) ||
1544
+ (primaryCategory === NsContent.EResourcePrimaryCategories.FINAL_ASSESSMENT) ||
1545
+ (primaryCategory === NsContent.EResourcePrimaryCategories.COMP_ASSESSMENT) ||
1546
+ (primaryCategory === NsContent.EResourcePrimaryCategories.OFFLINE_SESSION);
1547
+ return isResource;
1548
+ }
1549
+ return false;
1595
1550
  }
1596
- // tslint:disable-next-line: max-line-length
1597
1551
  /**
1598
- * @param {?} userId
1599
- * @param {?=} queryParams
1552
+ * @param {?} identifier
1600
1553
  * @return {?}
1601
1554
  */
1602
- fetchUserBatchList(userId, queryParams) {
1603
- /** @type {?} */
1604
- let path = '';
1605
- if (queryParams) {
1606
- // tslint:disable-next-line: max-line-length
1607
- path = API_END_POINTS.FETCH_USER_ENROLLMENT_LIST_V2(userId, queryParams.orgdetails, queryParams.licenseDetails, queryParams.fields, queryParams.batchDetails);
1608
- }
1609
- else {
1610
- path = API_END_POINTS.FETCH_USER_ENROLLMENT_LIST(userId);
1611
- }
1612
- /** @type {?} */
1613
- const headers = new HttpHeaders({
1614
- 'Cache-Control': 'no-cache, no-store, must-revalidate, post-check=0, pre-check=0',
1615
- Pragma: 'no-cache',
1616
- Expires: '0',
1617
- });
1555
+ fetchMarkAsCompleteMeta(identifier) {
1556
+ // tslint:disable-next-line
1618
1557
  /** @type {?} */
1619
- const result = this.http.get(path, { headers }).pipe(catchError(this.handleError), map((/**
1620
- * @param {?} data
1621
- * @return {?}
1622
- */
1623
- (data) => {
1624
- /** @type {?} */
1625
- const coursesData = [];
1626
- if (data && data.result && data.result.courses) {
1627
- data.result.courses.forEach((/**
1628
- * @param {?} content
1629
- * @return {?}
1630
- */
1631
- (content) => {
1632
- if (content.contentStatus) {
1633
- delete content.contentStatus;
1634
- }
1635
- coursesData.push(content);
1636
- }));
1637
- this.storeUserEnrollmentInfo(data.result.userCourseEnrolmentInfo, data.result.courses.length);
1638
- data.result.courses = coursesData;
1639
- }
1640
- return data.result;
1641
- })));
1642
- return result;
1558
+ const url = API_END_POINTS.MARK_AS_COMPLETE_META(identifier)
1559
+ // return this.http.get(url).toPromise()
1560
+ ;
1561
+ // return this.http.get(url).toPromise()
1562
+ if (url) { }
1563
+ return of().toPromise();
1643
1564
  }
1644
- // tslint:disable-next-line: max-line-length
1645
1565
  /**
1646
- * @param {?} userId
1647
- * @param {?=} queryParams
1566
+ * @param {?} data
1648
1567
  * @return {?}
1649
1568
  */
1650
- fetchProfileUserBatchList(userId, queryParams) {
1651
- /** @type {?} */
1652
- let path = '';
1653
- if (queryParams) {
1654
- // tslint:disable-next-line: max-line-length
1655
- path = API_END_POINTS.FETCH_USER_ENROLLMENT_LIST_V2(userId, queryParams.orgdetails, queryParams.licenseDetails, queryParams.fields, queryParams.batchDetails);
1656
- }
1657
- else {
1658
- path = API_END_POINTS.FETCH_USER_ENROLLMENT_LIST_PROFILE(userId);
1659
- }
1660
- /** @type {?} */
1661
- const headers = new HttpHeaders({
1662
- 'Cache-Control': 'no-cache, no-store, must-revalidate, post-check=0, pre-check=0',
1663
- Pragma: 'no-cache',
1664
- Expires: '0',
1665
- });
1666
- return this.http
1667
- .get(path, { headers })
1668
- .pipe(catchError(this.handleError), map((/**
1669
- * @param {?} data
1670
- * @return {?}
1671
- */
1672
- (data) => data.result)));
1569
+ updateTocConfig(data) {
1570
+ this.tocConfigData.next(data);
1673
1571
  }
1674
1572
  /**
1675
- * @param {?} key
1676
- * @param {?} dataKey
1573
+ * @param {?} contentId
1574
+ * @param {?=} hierarchyType
1575
+ * @param {?=} _additionalFields
1576
+ * @param {?=} primaryCategory
1677
1577
  * @return {?}
1678
1578
  */
1679
- checkStorageData(key, dataKey) {
1579
+ fetchContent(contentId, hierarchyType = 'detail', _additionalFields = [], primaryCategory) {
1580
+ // const url = `${API_END_POINTS.CONTENT}/${contentId}?hierarchyType=${hierarchyType}`
1680
1581
  /** @type {?} */
1681
- const checkTime = localStorage.getItem('timeCheck');
1682
- if (checkTime) {
1683
- /** @type {?} */
1684
- const parsedData = JSON.parse(checkTime);
1685
- if (parsedData[key]) {
1686
- /** @type {?} */
1687
- const date = dayjs();
1688
- /** @type {?} */
1689
- const diffMin = date.diff(parsedData[key], 'minute');
1690
- /** @type {?} */
1691
- const timeCheck = this.environment.apiCache || 0;
1692
- if (diffMin >= timeCheck) {
1693
- return true;
1582
+ let url = '';
1583
+ /** @type {?} */
1584
+ const forPreview = window.location.href.includes('/public/') || window.location.href.includes('&preview=true');
1585
+ if (primaryCategory && this.isResource(primaryCategory)) {
1586
+ if (!forPreview) {
1587
+ url = `/apis/proxies/v8/action/content/v3/read/${contentId}`;
1588
+ }
1589
+ else {
1590
+ url = `/api/content/v1/read/${contentId}`;
1591
+ }
1592
+ }
1593
+ else {
1594
+ if (!forPreview) {
1595
+ url = `/apis/proxies/v8/action/content/v3/hierarchy/${contentId}?hierarchyType=${hierarchyType}`;
1596
+ }
1597
+ else {
1598
+ /** @type {?} */
1599
+ const forcreator = window.location.href.includes('editMode=true');
1600
+ if (forcreator) {
1601
+ url = `apis/proxies/v8/action/content/v3/hierarchy/${contentId}?mode=edit`;
1602
+ }
1603
+ else {
1604
+ url = `/api/course/v1/hierarchy/${contentId}?hierarchyType=${hierarchyType}`;
1694
1605
  }
1695
- return localStorage.getItem(dataKey) ? false : true;
1696
1606
  }
1697
- return true;
1698
1607
  }
1699
- return true;
1608
+ // return this.http
1609
+ // .post<NsContent.IContent>(url, { additionalFields })
1610
+ // .pipe(retry(1))
1611
+ return this.http
1612
+ .get(url)
1613
+ .pipe(shareReplay(1));
1614
+ // if (apiData && apiData.result) {
1615
+ // return apiData.result.content
1616
+ // }
1700
1617
  }
1701
1618
  /**
1702
- * @param {?} key
1619
+ * @param {?} contentId
1703
1620
  * @return {?}
1704
1621
  */
1705
- getData(key) {
1706
- return Observable.of(JSON.parse(localStorage.getItem(key) || '{}'));
1622
+ fetchAuthoringContent(contentId) {
1623
+ /** @type {?} */
1624
+ const forcreator = window.location.href.includes('editMode=true');
1625
+ /** @type {?} */
1626
+ let url = '';
1627
+ if (forcreator) {
1628
+ url = `apis/proxies/v8/action/content/v3/hierarchy/${contentId}?mode=edit`;
1629
+ }
1630
+ else {
1631
+ url = `${API_END_POINTS.AUTHORING_CONTENT}/${contentId}?hierarchyType=detail`;
1632
+ }
1633
+ return this.http.get(url).pipe(shareReplay(1), (/**
1634
+ * @param {?} r
1635
+ * @return {?}
1636
+ */
1637
+ r => r));
1707
1638
  }
1708
1639
  /**
1709
- * @param {?} key
1640
+ * @param {?} ids
1710
1641
  * @return {?}
1711
1642
  */
1712
- getSavedData(key) {
1713
- return JSON.parse(localStorage.getItem(key) || '');
1643
+ fetchMultipleContent(ids) {
1644
+ return this.http.get(`${API_END_POINTS.MULTIPLE_CONTENT}/${ids.join(',')}`);
1714
1645
  }
1715
1646
  /**
1716
- * @param {?} key
1647
+ * @param {?} type
1648
+ * @param {?} id
1649
+ * @param {?=} pageNumber
1650
+ * @param {?=} pageSize
1717
1651
  * @return {?}
1718
1652
  */
1719
- setTime(key) {
1720
- /** @type {?} */
1721
- const checkTime = localStorage.getItem('timeCheck');
1722
- if (checkTime) {
1723
- /** @type {?} */
1724
- const parsedData = JSON.parse(checkTime);
1725
- parsedData[key] = new Date().getTime();
1726
- localStorage.setItem('timeCheck', JSON.stringify(parsedData));
1727
- }
1728
- else {
1729
- /** @type {?} */
1730
- const data = {};
1731
- data[key] = new Date().getTime();
1732
- localStorage.setItem('timeCheck', JSON.stringify(data));
1733
- }
1653
+ fetchCollectionHierarchy(type, id, pageNumber = 0, pageSize = 1) {
1654
+ return this.http.get(`${API_END_POINTS.COLLECTION_HIERARCHY(type, id)}?pageNumber=${pageNumber}&pageSize=${pageSize}`);
1734
1655
  }
1735
1656
  /**
1736
- * @param {?} key
1737
1657
  * @return {?}
1738
1658
  */
1739
- resetTime(key) {
1740
- /** @type {?} */
1741
- const checkTime = localStorage.getItem('timeCheck');
1742
- if (checkTime) {
1743
- /** @type {?} */
1744
- const parsedData = JSON.parse(checkTime);
1745
- if (parsedData[key]) {
1746
- delete parsedData[key];
1747
- localStorage.setItem('timeCheck', JSON.stringify(parsedData));
1748
- }
1749
- }
1659
+ fetchBlendedCourse() {
1750
1660
  }
1751
1661
  /**
1752
- * @param {?} userId
1662
+ * @param {?} req
1753
1663
  * @return {?}
1754
1664
  */
1755
- fetchCbpPlanList(userId) {
1756
- if (this.checkStorageData('cbpService', 'cbpData')) {
1757
- /** @type {?} */
1758
- const result = this.http.get(API_END_POINTS.FETCH_CPB_PLANS).pipe(catchError(this.handleError), map((/**
1759
- * @param {?} data
1760
- * @return {?}
1761
- */
1762
- (data) => __awaiter(this, void 0, void 0, function* () {
1763
- if (data.result && data.result.content && data.result.content.length) {
1764
- /** @type {?} */
1765
- let cbpData = this.getCbpFormatedData(data.result.content);
1766
- /** @type {?} */
1767
- let cbpDoIds = cbpData.contentIds.join(',');
1768
- /** @type {?} */
1769
- let cbpContentData = cbpData.cbpContentData || [];
1770
- /** @type {?} */
1771
- const responseData = yield this.fetchEnrollmentDataByContentId(userId, cbpDoIds).toPromise().then((/**
1772
- * @param {?} res
1773
- * @return {?}
1774
- */
1775
- (res) => __awaiter(this, void 0, void 0, function* () {
1776
- /** @type {?} */
1777
- const enrollData = {};
1778
- if (res && res.courses && res.courses.length) {
1779
- res.courses.forEach((/**
1780
- * @param {?} data
1781
- * @return {?}
1782
- */
1783
- (data) => {
1784
- enrollData[data.collectionId] = data;
1785
- }));
1786
- return enrollData;
1787
- }
1788
- else {
1789
- return {};
1790
- }
1791
- }))).catch((/**
1792
- * @param {?} _err
1793
- * @return {?}
1794
- */
1795
- (_err) => {
1796
- return {};
1797
- }));
1798
- return yield this.mapCbpData(cbpContentData, responseData);
1799
- }
1800
- }))));
1801
- this.setTime('cbpService');
1802
- return result;
1803
- }
1804
- return this.getData('cbpData');
1665
+ fetchCourseBatches(req) {
1666
+ return this.http
1667
+ .post(API_END_POINTS.COURSE_BATCH_LIST, req)
1668
+ .pipe(retry(1), map((/**
1669
+ * @param {?} data
1670
+ * @return {?}
1671
+ */
1672
+ (data) => data.result.response)));
1805
1673
  }
1674
+ // fetch individual batch
1806
1675
  /**
1807
- * @param {?} enrollmentData
1808
- * @param {?} enrolledCourseCount
1676
+ * @param {?} batchId
1809
1677
  * @return {?}
1810
1678
  */
1811
- storeUserEnrollmentInfo(enrollmentData, enrolledCourseCount) {
1812
- /** @type {?} */
1813
- const userData = {
1814
- enrolledCourseCount,
1815
- userCourseEnrolmentInfo: enrollmentData,
1816
- };
1817
- localStorage.removeItem('userEnrollmentCount');
1818
- localStorage.setItem('userEnrollmentCount', JSON.stringify(userData));
1679
+ fetchCourseBatch(batchId) {
1680
+ return this.http.get(`${API_END_POINTS.COURSE_BATCH}/${batchId}`);
1819
1681
  }
1820
1682
  /**
1821
- * @param {?} userId
1822
- * @param {?} contentdata
1683
+ * @param {?} identifier
1823
1684
  * @return {?}
1824
1685
  */
1825
- fetchEnrollmentDataByContentId(userId, contentdata) {
1826
- /** @type {?} */
1827
- let path = API_END_POINTS.FETCH_USER_ENROLLMENT_LIST(userId);
1828
- path = `${path}&courseIds=${contentdata}&cache=false'`;
1829
- /** @type {?} */
1830
- const headers = new HttpHeaders({
1831
- 'Cache-Control': 'no-cache, no-store, must-revalidate, post-check=0, pre-check=0',
1832
- Pragma: 'no-cache',
1833
- Expires: '0',
1834
- });
1835
- return this.http
1836
- .get(path, { headers })
1837
- .pipe(catchError(this.handleError), map((/**
1686
+ autoAssignBatchApi(identifier) {
1687
+ return this.http.get(`${API_END_POINTS.AUTO_ASSIGN_BATCH}${identifier}`)
1688
+ .pipe(retry(1), map((/**
1838
1689
  * @param {?} data
1839
1690
  * @return {?}
1840
1691
  */
1841
- (data) => data.result)));
1692
+ (data) => data.result.response)));
1842
1693
  }
1843
1694
  /**
1844
- * @param {?} cbpContent
1695
+ * @param {?} request
1696
+ * @param {?} programType
1845
1697
  * @return {?}
1846
1698
  */
1847
- getCbpFormatedData(cbpContent) {
1848
- /** @type {?} */
1849
- let cbpContentData = [];
1850
- /** @type {?} */
1851
- let contentIds = [];
1699
+ autoAssignCuratedBatchApi(request, programType) {
1852
1700
  /** @type {?} */
1853
- const todayDate = dayjs().format('YYYY-MM-DD');
1854
- cbpContent.forEach((/**
1855
- * @param {?} c
1701
+ const url = programType === NsContent.ECourseCategory.MODERATED_PROGRAM ?
1702
+ API_END_POINTS.AUTO_ASSIGN_OPEN_PROGRAM : API_END_POINTS.AUTO_ASSIGN_CURATED_BATCH;
1703
+ return this.http.post(`${url}`, request)
1704
+ .pipe(retry(1), map((/**
1705
+ * @param {?} data
1856
1706
  * @return {?}
1857
1707
  */
1858
- (c) => {
1859
- c.contentList.forEach((/**
1860
- * @param {?} childData
1861
- * @return {?}
1862
- */
1863
- (childData) => {
1864
- /** @type {?} */
1865
- const endDate = dayjs(c.endDate).format('YYYY-MM-DD');
1866
- /** @type {?} */
1867
- const daysCount = dayjs(endDate).diff(todayDate, 'day');
1868
- childData['planDuration'] = daysCount < 0 ? NsCardContent.ACBPConst.OVERDUE : daysCount > 29
1869
- ? NsCardContent.ACBPConst.SUCCESS : NsCardContent.ACBPConst.UPCOMING;
1870
- childData['endDate'] = c.endDate;
1871
- childData['parentId'] = c.id;
1872
- childData['planType'] = 'cbPlan';
1873
- childData['contentStatus'] = 0;
1874
- contentIds.push(childData.identifier);
1875
- if (childData.status !== NsCardContent.IGOTConst.RETIRED) {
1876
- cbpContentData.push(childData);
1877
- }
1878
- }));
1879
- }));
1880
- return { cbpContentData, contentIds };
1708
+ (data) => data.result.response)));
1881
1709
  }
1882
1710
  /**
1883
- * @param {?} cbpContent
1884
- * @param {?} enrollmentData
1711
+ * @param {?} req
1885
1712
  * @return {?}
1886
1713
  */
1887
- mapCbpData(cbpContent, enrollmentData) {
1888
- return __awaiter(this, void 0, void 0, function* () {
1889
- /** @type {?} */
1890
- let cbpFilteredContent = [];
1891
- if (cbpContent && cbpContent.length) {
1892
- if (Object.keys(enrollmentData).length) {
1893
- cbpContent.forEach((/**
1894
- * @param {?} cbp
1895
- * @return {?}
1896
- */
1897
- (cbp) => {
1898
- /** @type {?} */
1899
- const childEnrollData = enrollmentData[cbp.identifier];
1900
- /** @type {?} */
1901
- const competencyArea = [];
1902
- /** @type {?} */
1903
- const competencyTheme = [];
1904
- /** @type {?} */
1905
- const competencyThemeType = [];
1906
- /** @type {?} */
1907
- const competencySubTheme = [];
1908
- /** @type {?} */
1909
- const competencyAreaId = [];
1910
- /** @type {?} */
1911
- const competencyThemeId = [];
1912
- /** @type {?} */
1913
- const competencySubThemeId = [];
1914
- cbp['contentStatus'] = 0;
1915
- if (childEnrollData) {
1916
- cbp['contentStatus'] = childEnrollData.status;
1917
- }
1918
- if (cbp.competencies_v5) {
1919
- cbp.competencies_v5.forEach((/**
1920
- * @param {?} element
1921
- * @return {?}
1922
- */
1923
- (element) => {
1924
- if (!competencyArea.includes(element.competencyArea)) {
1925
- competencyArea.push(element.competencyArea);
1926
- competencyAreaId.push(element.competencyAreaId);
1927
- }
1928
- if (!competencyTheme.includes(element.competencyTheme)) {
1929
- competencyTheme.push(element.competencyTheme);
1930
- competencyThemeId.push(element.competencyThemeId);
1931
- }
1932
- if (!competencyThemeType.includes(element.competencyThemeType)) {
1933
- competencyThemeType.push(element.competencyThemeType);
1934
- }
1935
- if (!competencySubTheme.includes(element.competencySubTheme)) {
1936
- competencySubTheme.push(element.competencySubTheme);
1937
- competencySubThemeId.push(element.competencySubThemeId);
1938
- }
1939
- }));
1940
- }
1941
- cbp['competencyArea'] = competencyArea;
1942
- cbp['competencyTheme'] = competencyTheme;
1943
- cbp['competencyThemeType'] = competencyThemeType;
1944
- cbp['competencySubTheme'] = competencySubTheme;
1945
- cbp['competencyAreaId'] = competencyAreaId;
1946
- cbp['competencyThemeId'] = competencyThemeId;
1947
- cbp['competencySubThemeId'] = competencySubThemeId;
1948
- if (cbp.status !== NsCardContent.IGOTConst.RETIRED) {
1949
- cbpFilteredContent.push(cbp);
1950
- }
1951
- else {
1952
- if (childEnrollData && childEnrollData.status === 2) {
1953
- cbpFilteredContent.push(cbp);
1954
- }
1955
- }
1956
- }));
1957
- if (cbpFilteredContent.length > 1) {
1958
- /** @type {?} */
1959
- const sortedData = cbpFilteredContent.sort((/**
1960
- * @param {?} a
1961
- * @param {?} b
1962
- * @return {?}
1963
- */
1964
- (a, b) => {
1965
- /** @type {?} */
1966
- const firstDate = new Date(a.endDate);
1967
- /** @type {?} */
1968
- const secondDate = new Date(b.endDate);
1969
- return secondDate > firstDate ? 1 : -1;
1970
- }));
1971
- /** @type {?} */
1972
- const uniqueUsersByID = uniqBy(sortedData, 'identifier');
1973
- /** @type {?} */
1974
- const sortedByEndDate = orderBy(uniqueUsersByID, ['endDate'], ['asc']);
1975
- /** @type {?} */
1976
- const sortedByStatus = orderBy(sortedByEndDate, ['contentStatus'], ['asc']);
1977
- localStorage.setItem('cbpData', JSON.stringify(sortedByStatus));
1978
- return sortedByStatus;
1979
- }
1980
- localStorage.setItem('cbpData', JSON.stringify(cbpFilteredContent));
1981
- return cbpFilteredContent;
1982
- }
1983
- localStorage.setItem('cbpData', JSON.stringify(cbpContent));
1984
- return cbpContent;
1985
- }
1986
- localStorage.setItem('cbpData', JSON.stringify([]));
1987
- return [];
1988
- });
1714
+ enrollUserToBatch(req) {
1715
+ return this.http
1716
+ .post(API_END_POINTS.ENROLL_BATCH, req)
1717
+ .toPromise();
1989
1718
  }
1990
1719
  /**
1991
- * @param {?} courseData
1720
+ * @param {?} req
1721
+ * @param {?} type
1992
1722
  * @return {?}
1993
1723
  */
1994
- mapEnrollmentData(courseData) {
1724
+ enrollAndUnenrollUserToBatchWF(req, type) {
1995
1725
  /** @type {?} */
1996
- const enrollData = {};
1997
- if (courseData && courseData.courses.length) {
1998
- courseData.courses.forEach((/**
1999
- * @param {?} data
2000
- * @return {?}
2001
- */
2002
- (data) => {
2003
- enrollData[data.collectionId] = data;
2004
- }));
2005
- }
2006
- return enrollData;
2007
- }
2008
- }
2009
- WidgetUserServiceLib.decorators = [
2010
- { type: Injectable, args: [{
2011
- providedIn: 'root',
2012
- },] }
2013
- ];
2014
- /** @nocollapse */
2015
- WidgetUserServiceLib.ctorParameters = () => [
2016
- { type: undefined, decorators: [{ type: Inject, args: ['environment',] }] },
2017
- { type: HttpClient }
2018
- ];
2019
- /** @nocollapse */ WidgetUserServiceLib.ngInjectableDef = ɵɵdefineInjectable({ factory: function WidgetUserServiceLib_Factory() { return new WidgetUserServiceLib(ɵɵinject("environment"), ɵɵinject(HttpClient)); }, token: WidgetUserServiceLib, providedIn: "root" });
2020
- if (false) {
2021
- /** @type {?} */
2022
- WidgetUserServiceLib.prototype.environment;
2023
- /**
2024
- * @type {?}
2025
- * @private
2026
- */
2027
- WidgetUserServiceLib.prototype.http;
2028
- }
2029
-
2030
- /**
2031
- * @fileoverview added by tsickle
2032
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2033
- */
2034
- /** @type {?} */
2035
- const moment = moment$4;
2036
- // tslint:enable
2037
- // TODO: move this in some common place
2038
- /** @type {?} */
2039
- const PROTECTED_SLAG_V8$1 = '/apis/protected/v8';
2040
- const ɵ0$1 = /**
2041
- * @param {?} type
2042
- * @param {?} id
2043
- * @return {?}
2044
- */
2045
- (type, id) => `${PROTECTED_SLAG_V8$1}/content/collection/${type}/${id}`, ɵ1$1 = /**
2046
- * @param {?} contentId
2047
- * @return {?}
2048
- */
2049
- (contentId) => `${PROTECTED_SLAG_V8$1}/user/progress/${contentId}`, ɵ2$1 = /**
2050
- * @param {?} certId
2051
- * @return {?}
2052
- */
2053
- (certId) => `${PROTECTED_SLAG_V8$1}/cohorts/course/batch/cert/download/${certId}`, ɵ3$1 = /**
2054
- * @param {?} contentId
2055
- * @return {?}
2056
- */
2057
- (contentId) => `/apis/proxies/v8/action/content/v3/read/${contentId}`;
2058
- /** @type {?} */
2059
- const API_END_POINTS$1 = {
2060
- CONTENT: `${PROTECTED_SLAG_V8$1}/content`,
2061
- AUTHORING_CONTENT: `/api/course/v1/hierarchy`,
2062
- CONTENT_LIKES: `${PROTECTED_SLAG_V8$1}/content/likeCount`,
2063
- SET_S3_COOKIE: `${PROTECTED_SLAG_V8$1}/content/setCookie`,
2064
- SET_S3_IMAGE_COOKIE: `${PROTECTED_SLAG_V8$1}/content/setImageCookie`,
2065
- FETCH_MANIFEST: `${PROTECTED_SLAG_V8$1}/content/getWebModuleManifest`,
2066
- FETCH_WEB_MODULE_FILES: `${PROTECTED_SLAG_V8$1}/content/getWebModuleFiles`,
2067
- MULTIPLE_CONTENT: `${PROTECTED_SLAG_V8$1}/content/multiple`,
2068
- CONTENT_SEARCH_V5: `${PROTECTED_SLAG_V8$1}/content/searchV5`,
2069
- CONTENT_SEARCH_V6: `/apis/proxies/v8/sunbirdigot/search`,
2070
- TRENDING_CONTENT_SEARCH: `apis/proxies/v8/trending/content/search`,
2071
- CONTENT_SEARCH_RELATED_CBP_V6: `/apis/proxies/v8/sunbirdigot/search`,
2072
- CONTENT_SEARCH_REGION_RECOMMENDATION: `${PROTECTED_SLAG_V8$1}/content/searchRegionRecommendation`,
2073
- CONTENT_HISTORY: `${PROTECTED_SLAG_V8$1}/user/history`,
2074
- CONTENT_HISTORYV2: `/apis/proxies/v8/read/content-progres`,
2075
- COURSE_BATCH_LIST: `/apis/proxies/v8/learner/course/v1/batch/list`,
2076
- COURSE_BATCH: `/apis/proxies/v8/course/v1/batch/read`,
2077
- AUTO_ASSIGN_BATCH: `/apis/protected/v8/cohorts/user/autoenrollment/`,
2078
- AUTO_ASSIGN_CURATED_BATCH: `/apis/proxies/v8/curatedprogram/v1/enrol`,
2079
- AUTO_ASSIGN_OPEN_PROGRAM: `/apis/proxies/v8/openprogram/v1/enrol`,
2080
- USER_CONTINUE_LEARNING: `${PROTECTED_SLAG_V8$1}/user/history/continue`,
2081
- CONTENT_RATING: `${PROTECTED_SLAG_V8$1}/user/rating`,
2082
- COLLECTION_HIERARCHY: (ɵ0$1),
2083
- REGISTRATION_STATUS: `${PROTECTED_SLAG_V8$1}/admin/userRegistration/checkUserRegistrationContent`,
2084
- MARK_AS_COMPLETE_META: (ɵ1$1),
2085
- ENROLL_BATCH: `/apis/proxies/v8/learner/course/v1/enrol`,
2086
- ENROLL_BATCH_WF: `/apis/proxies/v8/workflow/blendedprogram/enrol`,
2087
- WITHDRAW_BATCH_WF: `/apis/proxies/v8/workflow/blendedprogram/unenrol`,
2088
- BLENDED_USER_WF: `/apis/proxies/v8/workflow/blendedprogram/user/search`,
2089
- BLENDED_USER_COUNT: `apis/proxies/v8/workflow/blendedprogram/enrol/status/count`,
2090
- CERT_ADD_TEMPLATE: `${PROTECTED_SLAG_V8$1}/cohorts/course/batch/cert/template/add`,
2091
- CERT_ISSUE: `${PROTECTED_SLAG_V8$1}/cohorts/course/batch/cert/issue`,
2092
- CERT_DOWNLOAD: (ɵ2$1),
2093
- READ_KARMAPOINTS: `/apis/proxies/v8/karmapoints/read`,
2094
- CONTENT_READ: (ɵ3$1),
2095
- READ_COURSE_KARMAPOINTS: '/apis/proxies/v8/karmapoints/user/course/read',
2096
- CLAIM_KARMAPOINTS: '/apis/proxies/v8/claimkarmapoints',
2097
- USER_KARMA_POINTS: '/apis/proxies/v8/user/totalkarmapoints',
2098
- AGGREGATION_SEARCH: '/apis/proxies/v8/content/aggregation/search',
2099
- FEATURE_SEARCH: '/apis/proxies/v8/featured/content/search',
2100
- };
2101
- class WidgetContentLibService {
2102
- /**
2103
- * @param {?} http
2104
- * @param {?} configSvc
2105
- * @param {?} userSvc
2106
- */
2107
- constructor(http, configSvc, userSvc) {
2108
- this.http = http;
2109
- this.configSvc = configSvc;
2110
- this.userSvc = userSvc;
2111
- this.tocConfigData = new BehaviorSubject({});
2112
- this.tocConfigData$ = this.tocConfigData.asObservable();
2113
- this.telemetryData = new Subject();
2114
- this.telemetryData$ = this.telemetryData.asObservable();
2115
- this.programChildCourseResumeData = new BehaviorSubject({});
2116
- this.programChildCourseResumeData$ = this.programChildCourseResumeData.asObservable();
1726
+ const url = type === 'WITHDRAW' ? API_END_POINTS.WITHDRAW_BATCH_WF : API_END_POINTS.ENROLL_BATCH_WF;
1727
+ return this.http
1728
+ .post(url, req)
1729
+ .toPromise();
2117
1730
  }
2118
1731
  /**
2119
- * @param {?} message
1732
+ * @param {?} req
2120
1733
  * @return {?}
2121
1734
  */
2122
- changeTelemetryData(message) {
2123
- this.telemetryData.next(message);
1735
+ fetchBlendedUserWF(req) {
1736
+ return this.http
1737
+ .post(API_END_POINTS.BLENDED_USER_WF, req)
1738
+ .toPromise();
2124
1739
  }
2125
1740
  /**
2126
- * @param {?} primaryCategory
1741
+ * @param {?} req
2127
1742
  * @return {?}
2128
1743
  */
2129
- isResource(primaryCategory) {
2130
- if (primaryCategory) {
2131
- /** @type {?} */
2132
- const isResource = (primaryCategory === NsContent.EResourcePrimaryCategories.LEARNING_RESOURCE) ||
2133
- (primaryCategory === NsContent.EResourcePrimaryCategories.PRACTICE_RESOURCE) ||
2134
- (primaryCategory === NsContent.EResourcePrimaryCategories.FINAL_ASSESSMENT) ||
2135
- (primaryCategory === NsContent.EResourcePrimaryCategories.COMP_ASSESSMENT) ||
2136
- (primaryCategory === NsContent.EResourcePrimaryCategories.OFFLINE_SESSION);
2137
- return isResource;
2138
- }
2139
- return false;
1744
+ fetchBlendedUserCOUNT(req) {
1745
+ return this.http
1746
+ .post(API_END_POINTS.BLENDED_USER_COUNT, req)
1747
+ .toPromise();
2140
1748
  }
2141
1749
  /**
2142
- * @param {?} identifier
1750
+ * @param {?} contentIds
2143
1751
  * @return {?}
2144
1752
  */
2145
- fetchMarkAsCompleteMeta(identifier) {
2146
- // tslint:disable-next-line
2147
- /** @type {?} */
2148
- const url = API_END_POINTS$1.MARK_AS_COMPLETE_META(identifier)
2149
- // return this.http.get(url).toPromise()
2150
- ;
2151
- // return this.http.get(url).toPromise()
2152
- if (url) { }
2153
- return of().toPromise();
1753
+ fetchContentLikes(contentIds) {
1754
+ return this.http
1755
+ .post(API_END_POINTS.CONTENT_LIKES, contentIds)
1756
+ .toPromise();
2154
1757
  }
2155
1758
  /**
2156
- * @param {?} data
1759
+ * @param {?} contentIds
2157
1760
  * @return {?}
2158
1761
  */
2159
- updateTocConfig(data) {
2160
- this.tocConfigData.next(data);
1762
+ fetchContentRatings(contentIds) {
1763
+ if (contentIds) { }
1764
+ // return this.http
1765
+ // .post(`${API_END_POINTS.CONTENT_RATING}/rating`, contentIds)
1766
+ // .toPromise()
1767
+ return of().toPromise();
2161
1768
  }
2162
1769
  /**
2163
1770
  * @param {?} contentId
2164
- * @param {?=} hierarchyType
2165
- * @param {?=} _additionalFields
2166
- * @param {?=} primaryCategory
2167
1771
  * @return {?}
2168
1772
  */
2169
- fetchContent(contentId, hierarchyType = 'detail', _additionalFields = [], primaryCategory) {
2170
- // const url = `${API_END_POINTS.CONTENT}/${contentId}?hierarchyType=${hierarchyType}`
2171
- /** @type {?} */
2172
- let url = '';
2173
- /** @type {?} */
2174
- const forPreview = window.location.href.includes('/public/') || window.location.href.includes('&preview=true');
2175
- if (primaryCategory && this.isResource(primaryCategory)) {
2176
- if (!forPreview) {
2177
- url = `/apis/proxies/v8/action/content/v3/read/${contentId}`;
2178
- }
2179
- else {
2180
- url = `/api/content/v1/read/${contentId}`;
2181
- }
2182
- }
2183
- else {
2184
- if (!forPreview) {
2185
- url = `/apis/proxies/v8/action/content/v3/hierarchy/${contentId}?hierarchyType=${hierarchyType}`;
2186
- }
2187
- else {
2188
- /** @type {?} */
2189
- const forcreator = window.location.href.includes('editMode=true');
2190
- if (forcreator) {
2191
- url = `apis/proxies/v8/action/content/v3/hierarchy/${contentId}?mode=edit`;
2192
- }
2193
- else {
2194
- url = `/api/course/v1/hierarchy/${contentId}?hierarchyType=${hierarchyType}`;
2195
- }
2196
- }
2197
- }
2198
- // return this.http
2199
- // .post<NsContent.IContent>(url, { additionalFields })
2200
- // .pipe(retry(1))
2201
- return this.http
2202
- .get(url)
2203
- .pipe(shareReplay(1));
2204
- // if (apiData && apiData.result) {
2205
- // return apiData.result.content
2206
- // }
1773
+ fetchContentHistory(contentId) {
1774
+ return this.http.get(`${API_END_POINTS.CONTENT_HISTORY}/${contentId}`);
2207
1775
  }
2208
1776
  /**
2209
- * @param {?} contentId
1777
+ * @param {?} req
2210
1778
  * @return {?}
2211
1779
  */
2212
- fetchAuthoringContent(contentId) {
2213
- /** @type {?} */
2214
- const forcreator = window.location.href.includes('editMode=true');
1780
+ fetchContentHistoryV2(req) {
1781
+ req.request.fields = ['progressdetails'];
2215
1782
  /** @type {?} */
2216
- let url = '';
2217
- if (forcreator) {
2218
- url = `apis/proxies/v8/action/content/v3/hierarchy/${contentId}?mode=edit`;
2219
- }
2220
- else {
2221
- url = `${API_END_POINTS$1.AUTHORING_CONTENT}/${contentId}?hierarchyType=detail`;
2222
- }
2223
- return this.http.get(url).pipe(shareReplay(1), (/**
2224
- * @param {?} r
1783
+ const data = this.http.post(`${API_END_POINTS.CONTENT_HISTORYV2}/${req.request.courseId}`, req);
1784
+ data.subscribe((/**
1785
+ * @param {?} subscribeData
2225
1786
  * @return {?}
2226
1787
  */
2227
- r => r));
2228
- }
2229
- /**
2230
- * @param {?} ids
2231
- * @return {?}
2232
- */
2233
- fetchMultipleContent(ids) {
2234
- return this.http.get(`${API_END_POINTS$1.MULTIPLE_CONTENT}/${ids.join(',')}`);
1788
+ (subscribeData) => {
1789
+ this.programChildCourseResumeData.next({ resumeData: subscribeData.result.contentList, courseId: req.request.courseId });
1790
+ }));
1791
+ return data;
2235
1792
  }
2236
1793
  /**
2237
- * @param {?} type
2238
1794
  * @param {?} id
2239
- * @param {?=} pageNumber
2240
- * @param {?=} pageSize
1795
+ * @param {?=} collectionId
1796
+ * @param {?=} collectionType
2241
1797
  * @return {?}
2242
1798
  */
2243
- fetchCollectionHierarchy(type, id, pageNumber = 0, pageSize = 1) {
2244
- return this.http.get(`${API_END_POINTS$1.COLLECTION_HIERARCHY(type, id)}?pageNumber=${pageNumber}&pageSize=${pageSize}`);
1799
+ continueLearning(id, collectionId, collectionType) {
1800
+ return __awaiter(this, void 0, void 0, function* () {
1801
+ return new Promise((/**
1802
+ * @param {?} resolve
1803
+ * @return {?}
1804
+ */
1805
+ (resolve) => __awaiter(this, void 0, void 0, function* () {
1806
+ if (collectionType &&
1807
+ collectionType.toLowerCase() === 'playlist') {
1808
+ /** @type {?} */
1809
+ const reqBody = {
1810
+ contextPathId: collectionId ? collectionId : id,
1811
+ resourceId: id,
1812
+ data: JSON.stringify({
1813
+ timestamp: Date.now(),
1814
+ contextFullPath: [collectionId, id],
1815
+ }),
1816
+ dateAccessed: Date.now(),
1817
+ contextType: 'playlist',
1818
+ };
1819
+ yield this.saveContinueLearning(reqBody).toPromise().catch().finally((/**
1820
+ * @return {?}
1821
+ */
1822
+ () => {
1823
+ resolve(true);
1824
+ }));
1825
+ }
1826
+ else {
1827
+ /** @type {?} */
1828
+ const reqBody = {
1829
+ contextPathId: collectionId ? collectionId : id,
1830
+ resourceId: id,
1831
+ data: JSON.stringify({ timestamp: Date.now() }),
1832
+ dateAccessed: Date.now(),
1833
+ };
1834
+ yield this.saveContinueLearning(reqBody).toPromise().catch().finally((/**
1835
+ * @return {?}
1836
+ */
1837
+ () => {
1838
+ resolve(true);
1839
+ }));
1840
+ }
1841
+ })));
1842
+ });
2245
1843
  }
2246
1844
  /**
2247
- * @return {?}
2248
- */
2249
- fetchBlendedCourse() {
2250
- }
2251
- /**
2252
- * @param {?} req
2253
- * @return {?}
2254
- */
2255
- fetchCourseBatches(req) {
2256
- return this.http
2257
- .post(API_END_POINTS$1.COURSE_BATCH_LIST, req)
2258
- .pipe(retry(1), map((/**
2259
- * @param {?} data
2260
- * @return {?}
2261
- */
2262
- (data) => data.result.response)));
2263
- }
2264
- // fetch individual batch
2265
- /**
2266
- * @param {?} batchId
2267
- * @return {?}
2268
- */
2269
- fetchCourseBatch(batchId) {
2270
- return this.http.get(`${API_END_POINTS$1.COURSE_BATCH}/${batchId}`);
2271
- }
2272
- /**
2273
- * @param {?} identifier
2274
- * @return {?}
2275
- */
2276
- autoAssignBatchApi(identifier) {
2277
- return this.http.get(`${API_END_POINTS$1.AUTO_ASSIGN_BATCH}${identifier}`)
2278
- .pipe(retry(1), map((/**
2279
- * @param {?} data
2280
- * @return {?}
2281
- */
2282
- (data) => data.result.response)));
2283
- }
2284
- /**
2285
- * @param {?} request
2286
- * @param {?} programType
2287
- * @return {?}
2288
- */
2289
- autoAssignCuratedBatchApi(request, programType) {
2290
- /** @type {?} */
2291
- const url = programType === NsContent.ECourseCategory.MODERATED_PROGRAM ?
2292
- API_END_POINTS$1.AUTO_ASSIGN_OPEN_PROGRAM : API_END_POINTS$1.AUTO_ASSIGN_CURATED_BATCH;
2293
- return this.http.post(`${url}`, request)
2294
- .pipe(retry(1), map((/**
2295
- * @param {?} data
2296
- * @return {?}
2297
- */
2298
- (data) => data.result.response)));
2299
- }
2300
- /**
2301
- * @param {?} req
2302
- * @return {?}
2303
- */
2304
- enrollUserToBatch(req) {
2305
- return this.http
2306
- .post(API_END_POINTS$1.ENROLL_BATCH, req)
2307
- .toPromise();
2308
- }
2309
- /**
2310
- * @param {?} req
2311
- * @param {?} type
2312
- * @return {?}
2313
- */
2314
- enrollAndUnenrollUserToBatchWF(req, type) {
2315
- /** @type {?} */
2316
- const url = type === 'WITHDRAW' ? API_END_POINTS$1.WITHDRAW_BATCH_WF : API_END_POINTS$1.ENROLL_BATCH_WF;
2317
- return this.http
2318
- .post(url, req)
2319
- .toPromise();
2320
- }
2321
- /**
2322
- * @param {?} req
2323
- * @return {?}
2324
- */
2325
- fetchBlendedUserWF(req) {
2326
- return this.http
2327
- .post(API_END_POINTS$1.BLENDED_USER_WF, req)
2328
- .toPromise();
2329
- }
2330
- /**
2331
- * @param {?} req
2332
- * @return {?}
2333
- */
2334
- fetchBlendedUserCOUNT(req) {
2335
- return this.http
2336
- .post(API_END_POINTS$1.BLENDED_USER_COUNT, req)
2337
- .toPromise();
2338
- }
2339
- /**
2340
- * @param {?} contentIds
2341
- * @return {?}
2342
- */
2343
- fetchContentLikes(contentIds) {
2344
- return this.http
2345
- .post(API_END_POINTS$1.CONTENT_LIKES, contentIds)
2346
- .toPromise();
2347
- }
2348
- /**
2349
- * @param {?} contentIds
2350
- * @return {?}
2351
- */
2352
- fetchContentRatings(contentIds) {
2353
- if (contentIds) { }
2354
- // return this.http
2355
- // .post(`${API_END_POINTS.CONTENT_RATING}/rating`, contentIds)
2356
- // .toPromise()
2357
- return of().toPromise();
2358
- }
2359
- /**
2360
- * @param {?} contentId
2361
- * @return {?}
2362
- */
2363
- fetchContentHistory(contentId) {
2364
- return this.http.get(`${API_END_POINTS$1.CONTENT_HISTORY}/${contentId}`);
2365
- }
2366
- /**
2367
- * @param {?} req
2368
- * @return {?}
2369
- */
2370
- fetchContentHistoryV2(req) {
2371
- req.request.fields = ['progressdetails'];
2372
- /** @type {?} */
2373
- const data = this.http.post(`${API_END_POINTS$1.CONTENT_HISTORYV2}/${req.request.courseId}`, req);
2374
- data.subscribe((/**
2375
- * @param {?} subscribeData
2376
- * @return {?}
2377
- */
2378
- (subscribeData) => {
2379
- this.programChildCourseResumeData.next({ resumeData: subscribeData.result.contentList, courseId: req.request.courseId });
2380
- }));
2381
- return data;
2382
- }
2383
- /**
2384
- * @param {?} id
2385
- * @param {?=} collectionId
2386
- * @param {?=} collectionType
2387
- * @return {?}
2388
- */
2389
- continueLearning(id, collectionId, collectionType) {
2390
- return __awaiter(this, void 0, void 0, function* () {
2391
- return new Promise((/**
2392
- * @param {?} resolve
2393
- * @return {?}
2394
- */
2395
- (resolve) => __awaiter(this, void 0, void 0, function* () {
2396
- if (collectionType &&
2397
- collectionType.toLowerCase() === 'playlist') {
2398
- /** @type {?} */
2399
- const reqBody = {
2400
- contextPathId: collectionId ? collectionId : id,
2401
- resourceId: id,
2402
- data: JSON.stringify({
2403
- timestamp: Date.now(),
2404
- contextFullPath: [collectionId, id],
2405
- }),
2406
- dateAccessed: Date.now(),
2407
- contextType: 'playlist',
2408
- };
2409
- yield this.saveContinueLearning(reqBody).toPromise().catch().finally((/**
2410
- * @return {?}
2411
- */
2412
- () => {
2413
- resolve(true);
2414
- }));
2415
- }
2416
- else {
2417
- /** @type {?} */
2418
- const reqBody = {
2419
- contextPathId: collectionId ? collectionId : id,
2420
- resourceId: id,
2421
- data: JSON.stringify({ timestamp: Date.now() }),
2422
- dateAccessed: Date.now(),
2423
- };
2424
- yield this.saveContinueLearning(reqBody).toPromise().catch().finally((/**
2425
- * @return {?}
2426
- */
2427
- () => {
2428
- resolve(true);
2429
- }));
2430
- }
2431
- })));
2432
- });
2433
- }
2434
- /**
2435
- * @param {?} content
1845
+ * @param {?} content
2436
1846
  * @return {?}
2437
1847
  */
2438
1848
  saveContinueLearning(content) {
@@ -2456,7 +1866,7 @@ class WidgetContentLibService {
2456
1866
  * @return {?}
2457
1867
  */
2458
1868
  setS3ImageCookie() {
2459
- return this.http.post(API_END_POINTS$1.SET_S3_IMAGE_COOKIE, {}).pipe(catchError((/**
1869
+ return this.http.post(API_END_POINTS.SET_S3_IMAGE_COOKIE, {}).pipe(catchError((/**
2460
1870
  * @param {?} _err
2461
1871
  * @return {?}
2462
1872
  */
@@ -2467,14 +1877,14 @@ class WidgetContentLibService {
2467
1877
  * @return {?}
2468
1878
  */
2469
1879
  fetchManifest(url) {
2470
- return this.http.post(API_END_POINTS$1.FETCH_MANIFEST, { url });
1880
+ return this.http.post(API_END_POINTS.FETCH_MANIFEST, { url });
2471
1881
  }
2472
1882
  /**
2473
1883
  * @param {?} url
2474
1884
  * @return {?}
2475
1885
  */
2476
1886
  fetchWebModuleContent(url) {
2477
- return this.http.get(`${API_END_POINTS$1.FETCH_WEB_MODULE_FILES}?url=${encodeURIComponent(url)}`);
1887
+ return this.http.get(`${API_END_POINTS.FETCH_WEB_MODULE_FILES}?url=${encodeURIComponent(url)}`);
2478
1888
  }
2479
1889
  /**
2480
1890
  * @param {?} req
@@ -2482,7 +1892,7 @@ class WidgetContentLibService {
2482
1892
  */
2483
1893
  search(req) {
2484
1894
  req.query = req.query || '';
2485
- return this.http.post(API_END_POINTS$1.CONTENT_SEARCH_V5, {
1895
+ return this.http.post(API_END_POINTS.CONTENT_SEARCH_V5, {
2486
1896
  request: req,
2487
1897
  });
2488
1898
  }
@@ -2496,7 +1906,7 @@ class WidgetContentLibService {
2496
1906
  (req.preLabelValue || '') +
2497
1907
  ((this.configSvc.userProfile && this.configSvc.userProfile.country) || '');
2498
1908
  req.filters = Object.assign({}, req.filters, { labels: [req.preLabelValue || ''] });
2499
- return this.http.post(API_END_POINTS$1.CONTENT_SEARCH_REGION_RECOMMENDATION, { request: req });
1909
+ return this.http.post(API_END_POINTS.CONTENT_SEARCH_REGION_RECOMMENDATION, { request: req });
2500
1910
  }
2501
1911
  /**
2502
1912
  * @param {?} req
@@ -2509,28 +1919,28 @@ class WidgetContentLibService {
2509
1919
  if (apiPath) {
2510
1920
  return this.http.get(apiPath);
2511
1921
  }
2512
- return this.http.post(API_END_POINTS$1.CONTENT_SEARCH_V6, req);
1922
+ return this.http.post(API_END_POINTS.CONTENT_SEARCH_V6, req);
2513
1923
  }
2514
1924
  /**
2515
1925
  * @param {?} req
2516
1926
  * @return {?}
2517
1927
  */
2518
1928
  searchRelatedCBPV6(req) {
2519
- return this.http.post(API_END_POINTS$1.CONTENT_SEARCH_RELATED_CBP_V6, req);
1929
+ return this.http.post(API_END_POINTS.CONTENT_SEARCH_RELATED_CBP_V6, req);
2520
1930
  }
2521
1931
  /**
2522
1932
  * @param {?} contentId
2523
1933
  * @return {?}
2524
1934
  */
2525
1935
  fetchContentRating(contentId) {
2526
- return this.http.get(`${API_END_POINTS$1.CONTENT_RATING}/${contentId}`);
1936
+ return this.http.get(`${API_END_POINTS.CONTENT_RATING}/${contentId}`);
2527
1937
  }
2528
1938
  /**
2529
1939
  * @param {?} contentId
2530
1940
  * @return {?}
2531
1941
  */
2532
1942
  deleteContentRating(contentId) {
2533
- return this.http.delete(`${API_END_POINTS$1.CONTENT_RATING}/${contentId}`);
1943
+ return this.http.delete(`${API_END_POINTS.CONTENT_RATING}/${contentId}`);
2534
1944
  }
2535
1945
  /**
2536
1946
  * @param {?} contentId
@@ -2538,7 +1948,7 @@ class WidgetContentLibService {
2538
1948
  * @return {?}
2539
1949
  */
2540
1950
  addContentRating(contentId, data) {
2541
- return this.http.post(`${API_END_POINTS$1.CONTENT_RATING}/${contentId}`, data);
1951
+ return this.http.post(`${API_END_POINTS.CONTENT_RATING}/${contentId}`, data);
2542
1952
  }
2543
1953
  /**
2544
1954
  * @param {?} content
@@ -2580,7 +1990,7 @@ class WidgetContentLibService {
2580
1990
  * @return {?}
2581
1991
  */
2582
1992
  getRegistrationStatus(source) {
2583
- return this.http.get(`${API_END_POINTS$1.REGISTRATION_STATUS}/${source}`).toPromise();
1993
+ return this.http.get(`${API_END_POINTS.REGISTRATION_STATUS}/${source}`).toPromise();
2584
1994
  }
2585
1995
  /**
2586
1996
  * @param {?} url
@@ -2594,21 +2004,21 @@ class WidgetContentLibService {
2594
2004
  * @return {?}
2595
2005
  */
2596
2006
  addCertTemplate(body) {
2597
- return this.http.patch(`${API_END_POINTS$1.CERT_ADD_TEMPLATE}`, body);
2007
+ return this.http.patch(`${API_END_POINTS.CERT_ADD_TEMPLATE}`, body);
2598
2008
  }
2599
2009
  /**
2600
2010
  * @param {?} body
2601
2011
  * @return {?}
2602
2012
  */
2603
2013
  issueCert(body) {
2604
- return this.http.post(`${API_END_POINTS$1.CERT_ISSUE}`, body);
2014
+ return this.http.post(`${API_END_POINTS.CERT_ISSUE}`, body);
2605
2015
  }
2606
2016
  /**
2607
2017
  * @param {?} certId
2608
2018
  * @return {?}
2609
2019
  */
2610
2020
  downloadCert(certId) {
2611
- return this.http.get(`${API_END_POINTS$1.CERT_DOWNLOAD(certId)}`);
2021
+ return this.http.get(`${API_END_POINTS.CERT_DOWNLOAD(certId)}`);
2612
2022
  }
2613
2023
  /**
2614
2024
  * @param {?} req
@@ -2616,7 +2026,7 @@ class WidgetContentLibService {
2616
2026
  */
2617
2027
  trendingContentSearch(req) {
2618
2028
  req.query = req.query || '';
2619
- return this.http.post(API_END_POINTS$1.TRENDING_CONTENT_SEARCH, req);
2029
+ return this.http.post(API_END_POINTS.TRENDING_CONTENT_SEARCH, req);
2620
2030
  }
2621
2031
  /**
2622
2032
  * @param {?} limit
@@ -2624,7 +2034,7 @@ class WidgetContentLibService {
2624
2034
  * @return {?}
2625
2035
  */
2626
2036
  getKarmaPoitns(limit, offset) {
2627
- return this.http.post(API_END_POINTS$1.READ_KARMAPOINTS, { limit, offset }).pipe(catchError((/**
2037
+ return this.http.post(API_END_POINTS.READ_KARMAPOINTS, { limit, offset }).pipe(catchError((/**
2628
2038
  * @param {?} _err
2629
2039
  * @return {?}
2630
2040
  */
@@ -2640,7 +2050,7 @@ class WidgetContentLibService {
2640
2050
  /** @type {?} */
2641
2051
  const forPreview = window.location.href.includes('/public/') || window.location.href.includes('&preview=true');
2642
2052
  if (!forPreview) {
2643
- return this.http.get(API_END_POINTS$1.CONTENT_READ(contentId));
2053
+ return this.http.get(API_END_POINTS.CONTENT_READ(contentId));
2644
2054
  }
2645
2055
  url = `/api/content/v1/read/${contentId}`;
2646
2056
  return this.http.get(url);
@@ -2651,50 +2061,31 @@ class WidgetContentLibService {
2651
2061
  * @return {?}
2652
2062
  */
2653
2063
  getCourseKarmaPoints(request) {
2654
- return this.http.post(API_END_POINTS$1.READ_COURSE_KARMAPOINTS, request);
2064
+ return this.http.post(API_END_POINTS.READ_COURSE_KARMAPOINTS, request);
2655
2065
  }
2656
2066
  /**
2657
2067
  * @param {?} request
2658
2068
  * @return {?}
2659
2069
  */
2660
2070
  claimKarmapoints(request) {
2661
- return this.http.post(API_END_POINTS$1.CLAIM_KARMAPOINTS, request);
2071
+ return this.http.post(API_END_POINTS.CLAIM_KARMAPOINTS, request);
2662
2072
  }
2663
2073
  /**
2664
2074
  * @return {?}
2665
2075
  */
2666
2076
  userKarmaPoints() {
2667
- return this.http.post(API_END_POINTS$1.USER_KARMA_POINTS, {});
2077
+ return this.http.post(API_END_POINTS.USER_KARMA_POINTS, {});
2668
2078
  }
2669
2079
  /**
2670
2080
  * @param {?} doId
2671
2081
  * @return {?}
2672
2082
  */
2673
2083
  getEnrolledData(doId) {
2674
- return __awaiter(this, void 0, void 0, function* () {
2675
- /** @type {?} */
2676
- let userId = this.configSvc.userProfile.userId;
2677
- /** @type {?} */
2678
- const responseData = yield this.userSvc.fetchEnrollmentDataByContentId(userId, doId).toPromise().then((/**
2679
- * @param {?} res
2680
- * @return {?}
2681
- */
2682
- (res) => __awaiter(this, void 0, void 0, function* () {
2683
- if (res && res.courses && res.courses.length) {
2684
- return res.courses;
2685
- }
2686
- else {
2687
- return [];
2688
- }
2689
- }))).catch((/**
2690
- * @param {?} _err
2691
- * @return {?}
2692
- */
2693
- (_err) => {
2694
- return [];
2695
- }));
2696
- return responseData || [];
2697
- });
2084
+ /** @type {?} */
2085
+ const enrollmentMapData = JSON.parse(localStorage.getItem('enrollmentMapData') || '{}');
2086
+ /** @type {?} */
2087
+ const enrolledCourseData = enrollmentMapData[doId];
2088
+ return enrolledCourseData;
2698
2089
  }
2699
2090
  /**
2700
2091
  * @param {?} content
@@ -2703,10 +2094,8 @@ class WidgetContentLibService {
2703
2094
  getResourseLink(content) {
2704
2095
  return __awaiter(this, void 0, void 0, function* () {
2705
2096
  /** @type {?} */
2706
- const enrolledCourse = yield this.getEnrolledData(content.identifier);
2707
- if (enrolledCourse && enrolledCourse.length) {
2708
- /** @type {?} */
2709
- const enrolledCourseData = enrolledCourse[0];
2097
+ const enrolledCourseData = this.getEnrolledData(content.identifier);
2098
+ if (enrolledCourseData) {
2710
2099
  if (enrolledCourseData.content.courseCategory === NsContent.ECourseCategory.BLENDED_PROGRAM ||
2711
2100
  enrolledCourseData.content.courseCategory === NsContent.ECourseCategory.INVITE_ONLY_PROGRAM ||
2712
2101
  enrolledCourseData.content.courseCategory === NsContent.ECourseCategory.MODERATED_PROGRAM ||
@@ -2841,72 +2230,50 @@ class WidgetContentLibService {
2841
2230
  // req.query = req.query || '';
2842
2231
  return this.http.get(apiUrl);
2843
2232
  }
2844
- /**
2845
- * @param {?} enrollmentList
2846
- * @param {?} collectionId
2847
- * @return {?}
2848
- */
2849
- getEnrolledDataFromList(enrollmentList, collectionId) {
2850
- if (enrollmentList && enrollmentList.length) {
2851
- /** @type {?} */
2852
- let enrolledData = enrollmentList.filter((/**
2853
- * @param {?} ele
2854
- * @return {?}
2855
- */
2856
- (ele) => ele.collectionId === collectionId));
2857
- return enrolledData.length ? enrolledData[0] : {};
2858
- }
2859
- }
2860
2233
  }
2861
- WidgetContentLibService.decorators = [
2234
+ WidgetContentService.decorators = [
2862
2235
  { type: Injectable, args: [{
2863
2236
  providedIn: 'root',
2864
2237
  },] }
2865
2238
  ];
2866
2239
  /** @nocollapse */
2867
- WidgetContentLibService.ctorParameters = () => [
2240
+ WidgetContentService.ctorParameters = () => [
2868
2241
  { type: HttpClient },
2869
- { type: ConfigurationsService$1 },
2870
- { type: WidgetUserServiceLib }
2242
+ { type: ConfigurationsService$1 }
2871
2243
  ];
2872
- /** @nocollapse */ WidgetContentLibService.ngInjectableDef = ɵɵdefineInjectable({ factory: function WidgetContentLibService_Factory() { return new WidgetContentLibService(ɵɵinject(HttpClient), ɵɵinject(ConfigurationsService$1), ɵɵinject(WidgetUserServiceLib)); }, token: WidgetContentLibService, providedIn: "root" });
2244
+ /** @nocollapse */ WidgetContentService.ngInjectableDef = ɵɵdefineInjectable({ factory: function WidgetContentService_Factory() { return new WidgetContentService(ɵɵinject(HttpClient), ɵɵinject(ConfigurationsService$1)); }, token: WidgetContentService, providedIn: "root" });
2873
2245
  if (false) {
2874
2246
  /** @type {?} */
2875
- WidgetContentLibService.prototype.tocConfigData;
2247
+ WidgetContentService.prototype.tocConfigData;
2876
2248
  /** @type {?} */
2877
- WidgetContentLibService.prototype.tocConfigData$;
2249
+ WidgetContentService.prototype.tocConfigData$;
2878
2250
  /**
2879
2251
  * @type {?}
2880
2252
  * @private
2881
2253
  */
2882
- WidgetContentLibService.prototype.telemetryData;
2254
+ WidgetContentService.prototype.telemetryData;
2883
2255
  /** @type {?} */
2884
- WidgetContentLibService.prototype.telemetryData$;
2256
+ WidgetContentService.prototype.telemetryData$;
2885
2257
  /** @type {?} */
2886
- WidgetContentLibService.prototype.currentMetaData;
2258
+ WidgetContentService.prototype.currentMetaData;
2887
2259
  /** @type {?} */
2888
- WidgetContentLibService.prototype.currentContentReadMetaData;
2260
+ WidgetContentService.prototype.currentContentReadMetaData;
2889
2261
  /** @type {?} */
2890
- WidgetContentLibService.prototype.currentBatchEnrollmentList;
2262
+ WidgetContentService.prototype.currentBatchEnrollmentList;
2891
2263
  /** @type {?} */
2892
- WidgetContentLibService.prototype.programChildCourseResumeData;
2264
+ WidgetContentService.prototype.programChildCourseResumeData;
2893
2265
  /** @type {?} */
2894
- WidgetContentLibService.prototype.programChildCourseResumeData$;
2895
- /**
2896
- * @type {?}
2897
- * @private
2898
- */
2899
- WidgetContentLibService.prototype.http;
2266
+ WidgetContentService.prototype.programChildCourseResumeData$;
2900
2267
  /**
2901
2268
  * @type {?}
2902
2269
  * @private
2903
2270
  */
2904
- WidgetContentLibService.prototype.configSvc;
2271
+ WidgetContentService.prototype.http;
2905
2272
  /**
2906
2273
  * @type {?}
2907
2274
  * @private
2908
2275
  */
2909
- WidgetContentLibService.prototype.userSvc;
2276
+ WidgetContentService.prototype.configSvc;
2910
2277
  }
2911
2278
 
2912
2279
  /**
@@ -3261,114 +2628,654 @@ class MultilingualTranslationsService {
3261
2628
  }
3262
2629
  // tslint:disable-next-line: prefer-template
3263
2630
  /** @type {?} */
3264
- const translationKeyn = type + '.' + nlabel;
3265
- return this.translate.instant(translationKeyn);
2631
+ const translationKeyn = type + '.' + nlabel;
2632
+ return this.translate.instant(translationKeyn);
2633
+ }
2634
+ return label;
2635
+ }
2636
+ /**
2637
+ * @param {?} label
2638
+ * @param {?} type
2639
+ * @param {?} subtype
2640
+ * @return {?}
2641
+ */
2642
+ translateActualLabel(label, type, subtype) {
2643
+ /** @type {?} */
2644
+ let nlabel = label;
2645
+ /** @type {?} */
2646
+ const sl = nlabel.split(' ');
2647
+ sl.forEach((/**
2648
+ * @param {?} w
2649
+ * @param {?} index
2650
+ * @return {?}
2651
+ */
2652
+ (w, index) => {
2653
+ if (index !== 0) {
2654
+ sl[index] = w[0].toUpperCase() + w.slice(1);
2655
+ }
2656
+ }));
2657
+ nlabel = sl.join('');
2658
+ nlabel = nlabel.replace(/\s/g, '');
2659
+ if (subtype) {
2660
+ // tslint:disable-next-line: prefer-template
2661
+ /** @type {?} */
2662
+ const translationKey = type + '.' + nlabel + subtype;
2663
+ return this.translate.instant(translationKey);
2664
+ }
2665
+ // tslint:disable-next-line: prefer-template
2666
+ /** @type {?} */
2667
+ const translationKeyn = type + '.' + nlabel;
2668
+ return this.translate.instant(translationKeyn);
2669
+ }
2670
+ /**
2671
+ * @param {?} data
2672
+ * @return {?}
2673
+ */
2674
+ editProfileDetailsAPI(data) {
2675
+ return this.http.post(this.editProfileDetails, data);
2676
+ }
2677
+ /**
2678
+ * @param {?} state
2679
+ * @param {?} lang
2680
+ * @param {?} userid
2681
+ * @return {?}
2682
+ */
2683
+ updatelanguageSelected(state, lang, userid) {
2684
+ this.languageSelected.next(state);
2685
+ this.translate.use(lang);
2686
+ this.selectedLang = lang;
2687
+ if (userid) {
2688
+ /** @type {?} */
2689
+ const reqUpdates = {
2690
+ request: {
2691
+ userId: userid,
2692
+ profileDetails: {
2693
+ additionalProperties: {
2694
+ webPortalLang: this.selectedLang,
2695
+ },
2696
+ },
2697
+ },
2698
+ };
2699
+ this.editProfileDetailsAPI(reqUpdates).subscribe();
2700
+ }
2701
+ }
2702
+ }
2703
+ MultilingualTranslationsService.decorators = [
2704
+ { type: Injectable, args: [{
2705
+ providedIn: 'root',
2706
+ },] }
2707
+ ];
2708
+ /** @nocollapse */
2709
+ MultilingualTranslationsService.ctorParameters = () => [
2710
+ { type: TranslateService },
2711
+ { type: HttpClient },
2712
+ { type: ConfigurationsService }
2713
+ ];
2714
+ /** @nocollapse */ MultilingualTranslationsService.ngInjectableDef = ɵɵdefineInjectable({ factory: function MultilingualTranslationsService_Factory() { return new MultilingualTranslationsService(ɵɵinject(TranslateService), ɵɵinject(HttpClient), ɵɵinject(ConfigurationsService)); }, token: MultilingualTranslationsService, providedIn: "root" });
2715
+ if (false) {
2716
+ /** @type {?} */
2717
+ MultilingualTranslationsService.prototype.selectedLang;
2718
+ /** @type {?} */
2719
+ MultilingualTranslationsService.prototype.languageSelected;
2720
+ /** @type {?} */
2721
+ MultilingualTranslationsService.prototype.languageSelectedObservable;
2722
+ /** @type {?} */
2723
+ MultilingualTranslationsService.prototype.editProfileDetails;
2724
+ /**
2725
+ * @type {?}
2726
+ * @private
2727
+ */
2728
+ MultilingualTranslationsService.prototype.translate;
2729
+ /**
2730
+ * @type {?}
2731
+ * @private
2732
+ */
2733
+ MultilingualTranslationsService.prototype.http;
2734
+ /**
2735
+ * @type {?}
2736
+ * @private
2737
+ */
2738
+ MultilingualTranslationsService.prototype.configSvc;
2739
+ }
2740
+
2741
+ /**
2742
+ * @fileoverview added by tsickle
2743
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2744
+ */
2745
+ var NsCardContent;
2746
+ (function (NsCardContent) {
2747
+ /**
2748
+ * @record
2749
+ */
2750
+ function ICard() { }
2751
+ NsCardContent.ICard = ICard;
2752
+ if (false) {
2753
+ /** @type {?} */
2754
+ ICard.prototype.content;
2755
+ /** @type {?} */
2756
+ ICard.prototype.cardSubType;
2757
+ /** @type {?} */
2758
+ ICard.prototype.context;
2759
+ /** @type {?|undefined} */
2760
+ ICard.prototype.intranetMode;
2761
+ /** @type {?|undefined} */
2762
+ ICard.prototype.deletedMode;
2763
+ /** @type {?|undefined} */
2764
+ ICard.prototype.likes;
2765
+ /** @type {?|undefined} */
2766
+ ICard.prototype.contentTags;
2767
+ /** @type {?} */
2768
+ ICard.prototype.stateData;
2769
+ }
2770
+ /**
2771
+ * @record
2772
+ */
2773
+ function IContentTags() { }
2774
+ NsCardContent.IContentTags = IContentTags;
2775
+ if (false) {
2776
+ /** @type {?|undefined} */
2777
+ IContentTags.prototype.daysSpan;
2778
+ /** @type {?|undefined} */
2779
+ IContentTags.prototype.excludeContentType;
2780
+ /** @type {?|undefined} */
2781
+ IContentTags.prototype.excludeMimeType;
2782
+ /** @type {?} */
2783
+ IContentTags.prototype.tag;
2784
+ /** @type {?|undefined} */
2785
+ IContentTags.prototype.criteriaField;
2786
+ }
2787
+ /**
2788
+ * @record
2789
+ */
2790
+ function ICompetency() { }
2791
+ NsCardContent.ICompetency = ICompetency;
2792
+ if (false) {
2793
+ /** @type {?} */
2794
+ ICompetency.prototype.competencyArea;
2795
+ /** @type {?} */
2796
+ ICompetency.prototype.competencyObject;
2797
+ }
2798
+ let EContentStatus;
2799
+ (function (EContentStatus) {
2800
+ EContentStatus["LIVE"] = "Live";
2801
+ EContentStatus["EXPIRED"] = "Expired";
2802
+ EContentStatus["DELETED"] = "Deleted";
2803
+ EContentStatus["MARK_FOR_DELETION"] = "MarkedForDeletion";
2804
+ })(EContentStatus = NsCardContent.EContentStatus || (NsCardContent.EContentStatus = {}));
2805
+ let ACBPConst;
2806
+ (function (ACBPConst) {
2807
+ ACBPConst["UPCOMING"] = "upcoming";
2808
+ ACBPConst["ALL"] = "All";
2809
+ ACBPConst["OVERDUE"] = "overdue";
2810
+ ACBPConst["SUCCESS"] = "success";
2811
+ })(ACBPConst = NsCardContent.ACBPConst || (NsCardContent.ACBPConst = {}));
2812
+ let IGOTConst;
2813
+ (function (IGOTConst) {
2814
+ IGOTConst["COMPETENCIES"] = "competencies_v5";
2815
+ IGOTConst["RETIRED"] = "Retired";
2816
+ })(IGOTConst = NsCardContent.IGOTConst || (NsCardContent.IGOTConst = {}));
2817
+ })(NsCardContent || (NsCardContent = {}));
2818
+
2819
+ /**
2820
+ * @fileoverview added by tsickle
2821
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2822
+ */
2823
+ /** @type {?} */
2824
+ const dayjs = dayjs_
2825
+ // import { environment } from 'src/environments/environment'
2826
+ ;
2827
+ /** @type {?} */
2828
+ const PROTECTED_SLAG_V8$1 = '/apis/protected/v8';
2829
+ const ɵ0$1 = /**
2830
+ * @param {?} userId
2831
+ * @return {?}
2832
+ */
2833
+ (userId) => `${PROTECTED_SLAG_V8$1}/user/group/fetchUserGroup?userId=${userId}`, ɵ1$1 = /**
2834
+ * @param {?} userId
2835
+ * @return {?}
2836
+ */
2837
+ (userId) =>
2838
+ // tslint:disable-next-line: max-line-length
2839
+ `/apis/proxies/v8/learner/course/v2/user/enrollment/list/${userId}?orgdetails=orgName,email&licenseDetails=name,description,url&fields=contentType,primaryCategory,courseCategory,topic,name,channel,mimeType,appIcon,gradeLevel,resourceType,identifier,medium,pkgVersion,board,subject,trackable,posterImage,duration,creatorLogo,license,version,versionKey,avgRating,additionalTags,${NsCardContent.IGOTConst.COMPETENCIES}&batchDetails=name,endDate,startDate,status,enrollmentType,createdBy,certificates,batchAttributes`, ɵ2$1 = /**
2840
+ * @param {?} userId
2841
+ * @return {?}
2842
+ */
2843
+ (userId) =>
2844
+ // tslint:disable-next-line: max-line-length
2845
+ `/apis/proxies/v8/learner/course/v2/user/enrollment/list/${userId}?orgdetails=orgName,email&licenseDetails=name,description,url&fields=contentType,primaryCategory,courseCategory,topic,name,channel,mimeType,appIcon,gradeLevel,resourceType,identifier,medium,pkgVersion,board,subject,trackable,posterImage,duration,creatorLogo,license,version,versionKey,avgRating,additionalTags,${NsCardContent.IGOTConst.COMPETENCIES}&batchDetails=name,endDate,startDate,status,enrollmentType,createdBy,certificates,batchAttributes&retiredCoursesEnabled=true`, ɵ3$1 = /**
2846
+ * @param {?} userId
2847
+ * @param {?} orgdetails
2848
+ * @param {?} licenseDetails
2849
+ * @param {?} fields
2850
+ * @param {?} batchDetails
2851
+ * @return {?}
2852
+ */
2853
+ (userId, orgdetails, licenseDetails, fields, batchDetails) =>
2854
+ // tslint:disable-next-line: max-line-length
2855
+ `apis/proxies/v8/learner/course/v2/user/enrollment/list/${userId}?orgdetails=${orgdetails}&licenseDetails=${licenseDetails}&fields=${fields},courseCategory,${NsCardContent.IGOTConst.COMPETENCIES}&batchDetails=${batchDetails}`;
2856
+ /** @type {?} */
2857
+ const API_END_POINTS$1 = {
2858
+ FETCH_USER_GROUPS: (ɵ0$1),
2859
+ FETCH_CPB_PLANS: `/apis/proxies/v8/user/v1/cbplan`,
2860
+ FETCH_USER_ENROLLMENT_LIST: (ɵ1$1),
2861
+ FETCH_USER_ENROLLMENT_LIST_PROFILE: (ɵ2$1),
2862
+ // tslint:disable-next-line: max-line-length
2863
+ FETCH_USER_ENROLLMENT_LIST_V2: (ɵ3$1),
2864
+ };
2865
+ class WidgetUserService {
2866
+ /**
2867
+ * @param {?} environment
2868
+ * @param {?} http
2869
+ */
2870
+ constructor(environment, http) {
2871
+ this.http = http;
2872
+ this.environment = environment;
2873
+ }
2874
+ /**
2875
+ * @param {?} error
2876
+ * @return {?}
2877
+ */
2878
+ handleError(error) {
2879
+ /** @type {?} */
2880
+ let errorMessage = '';
2881
+ if (error.error instanceof ErrorEvent) {
2882
+ errorMessage = `Error: ${error.error.message}`;
2883
+ }
2884
+ return throwError(errorMessage);
2885
+ }
2886
+ /**
2887
+ * @param {?} userId
2888
+ * @return {?}
2889
+ */
2890
+ fetchUserGroupDetails(userId) {
2891
+ return this.http
2892
+ .get(API_END_POINTS$1.FETCH_USER_GROUPS(userId))
2893
+ .pipe(catchError(this.handleError));
2894
+ }
2895
+ // tslint:disable-next-line: max-line-length
2896
+ /**
2897
+ * @param {?} userId
2898
+ * @param {?=} queryParams
2899
+ * @return {?}
2900
+ */
2901
+ fetchUserBatchList(userId, queryParams) {
2902
+ /** @type {?} */
2903
+ let path = '';
2904
+ if (queryParams) {
2905
+ // tslint:disable-next-line: max-line-length
2906
+ path = API_END_POINTS$1.FETCH_USER_ENROLLMENT_LIST_V2(userId, queryParams.orgdetails, queryParams.licenseDetails, queryParams.fields, queryParams.batchDetails);
2907
+ }
2908
+ else {
2909
+ path = API_END_POINTS$1.FETCH_USER_ENROLLMENT_LIST(userId);
2910
+ }
2911
+ /** @type {?} */
2912
+ const headers = new HttpHeaders({
2913
+ 'Cache-Control': 'no-cache, no-store, must-revalidate, post-check=0, pre-check=0',
2914
+ Pragma: 'no-cache',
2915
+ Expires: '0',
2916
+ });
2917
+ if (this.checkStorageData('enrollmentService', 'enrollmentData')) {
2918
+ /** @type {?} */
2919
+ const result = this.http.get(path, { headers }).pipe(catchError(this.handleError), map((/**
2920
+ * @param {?} data
2921
+ * @return {?}
2922
+ */
2923
+ (data) => {
2924
+ /** @type {?} */
2925
+ const coursesData = [];
2926
+ if (data && data.result && data.result.courses) {
2927
+ data.result.courses.forEach((/**
2928
+ * @param {?} content
2929
+ * @return {?}
2930
+ */
2931
+ (content) => {
2932
+ if (content.contentStatus) {
2933
+ delete content.contentStatus;
2934
+ }
2935
+ coursesData.push(content);
2936
+ }));
2937
+ this.storeUserEnrollmentInfo(data.result.userCourseEnrolmentInfo, data.result.courses.length);
2938
+ data.result.courses = coursesData;
2939
+ if (data.result.courses.length < 200) {
2940
+ localStorage.removeItem('enrollmentData');
2941
+ this.setTime('enrollmentService');
2942
+ localStorage.setItem('enrollmentData', JSON.stringify(data.result));
2943
+ this.mapEnrollmentData(data.result);
2944
+ return data.result;
2945
+ }
2946
+ }
2947
+ this.mapEnrollmentData(data.result);
2948
+ return data.result;
2949
+ })));
2950
+ return result;
2951
+ }
2952
+ return this.getData('enrollmentData');
2953
+ }
2954
+ // tslint:disable-next-line: max-line-length
2955
+ /**
2956
+ * @param {?} userId
2957
+ * @param {?=} queryParams
2958
+ * @return {?}
2959
+ */
2960
+ fetchProfileUserBatchList(userId, queryParams) {
2961
+ /** @type {?} */
2962
+ let path = '';
2963
+ if (queryParams) {
2964
+ // tslint:disable-next-line: max-line-length
2965
+ path = API_END_POINTS$1.FETCH_USER_ENROLLMENT_LIST_V2(userId, queryParams.orgdetails, queryParams.licenseDetails, queryParams.fields, queryParams.batchDetails);
2966
+ }
2967
+ else {
2968
+ path = API_END_POINTS$1.FETCH_USER_ENROLLMENT_LIST_PROFILE(userId);
2969
+ }
2970
+ /** @type {?} */
2971
+ const headers = new HttpHeaders({
2972
+ 'Cache-Control': 'no-cache, no-store, must-revalidate, post-check=0, pre-check=0',
2973
+ Pragma: 'no-cache',
2974
+ Expires: '0',
2975
+ });
2976
+ return this.http
2977
+ .get(path, { headers })
2978
+ .pipe(catchError(this.handleError), map((/**
2979
+ * @param {?} data
2980
+ * @return {?}
2981
+ */
2982
+ (data) => data.result)));
2983
+ // if (this.checkStorageData('enrollmentService')) {
2984
+ // const result: any = this.http.get(path, { headers }).pipe(catchError(this.handleError), map(
2985
+ // (data: any) => {
2986
+ // localStorage.setItem('enrollmentData', JSON.stringify(data.result))
2987
+ // this.mapEnrollmentData(data.result)
2988
+ // return data.result
2989
+ // }
2990
+ // )
2991
+ // )
2992
+ // this.setTime('enrollmentService')
2993
+ // return result
2994
+ // }
2995
+ // return this.getData('enrollmentData')
2996
+ }
2997
+ /**
2998
+ * @param {?} key
2999
+ * @param {?} dataKey
3000
+ * @return {?}
3001
+ */
3002
+ checkStorageData(key, dataKey) {
3003
+ /** @type {?} */
3004
+ const checkTime = localStorage.getItem('timeCheck');
3005
+ if (checkTime) {
3006
+ /** @type {?} */
3007
+ const parsedData = JSON.parse(checkTime);
3008
+ if (parsedData[key]) {
3009
+ /** @type {?} */
3010
+ const date = dayjs();
3011
+ /** @type {?} */
3012
+ const diffMin = date.diff(parsedData[key], 'minute');
3013
+ /** @type {?} */
3014
+ const timeCheck = this.environment.apiCache || 0;
3015
+ if (diffMin >= timeCheck) {
3016
+ return true;
3017
+ }
3018
+ return localStorage.getItem(dataKey) ? false : true;
3019
+ }
3020
+ return true;
3021
+ }
3022
+ return true;
3023
+ }
3024
+ /**
3025
+ * @param {?} key
3026
+ * @return {?}
3027
+ */
3028
+ getData(key) {
3029
+ return Observable.of(JSON.parse(localStorage.getItem(key) || '{}'));
3030
+ }
3031
+ /**
3032
+ * @param {?} key
3033
+ * @return {?}
3034
+ */
3035
+ getSavedData(key) {
3036
+ return JSON.parse(localStorage.getItem(key) || '');
3037
+ }
3038
+ /**
3039
+ * @param {?} key
3040
+ * @return {?}
3041
+ */
3042
+ setTime(key) {
3043
+ /** @type {?} */
3044
+ const checkTime = localStorage.getItem('timeCheck');
3045
+ if (checkTime) {
3046
+ /** @type {?} */
3047
+ const parsedData = JSON.parse(checkTime);
3048
+ parsedData[key] = new Date().getTime();
3049
+ localStorage.setItem('timeCheck', JSON.stringify(parsedData));
3050
+ }
3051
+ else {
3052
+ /** @type {?} */
3053
+ const data = {};
3054
+ data[key] = new Date().getTime();
3055
+ localStorage.setItem('timeCheck', JSON.stringify(data));
3266
3056
  }
3267
- return label;
3268
3057
  }
3269
3058
  /**
3270
- * @param {?} label
3271
- * @param {?} type
3272
- * @param {?} subtype
3059
+ * @param {?} key
3273
3060
  * @return {?}
3274
3061
  */
3275
- translateActualLabel(label, type, subtype) {
3276
- /** @type {?} */
3277
- let nlabel = label;
3062
+ resetTime(key) {
3278
3063
  /** @type {?} */
3279
- const sl = nlabel.split(' ');
3280
- sl.forEach((/**
3281
- * @param {?} w
3282
- * @param {?} index
3283
- * @return {?}
3284
- */
3285
- (w, index) => {
3286
- if (index !== 0) {
3287
- sl[index] = w[0].toUpperCase() + w.slice(1);
3064
+ const checkTime = localStorage.getItem('timeCheck');
3065
+ if (checkTime) {
3066
+ /** @type {?} */
3067
+ const parsedData = JSON.parse(checkTime);
3068
+ if (parsedData[key]) {
3069
+ delete parsedData[key];
3070
+ localStorage.setItem('timeCheck', JSON.stringify(parsedData));
3288
3071
  }
3289
- }));
3290
- nlabel = sl.join('');
3291
- nlabel = nlabel.replace(/\s/g, '');
3292
- if (subtype) {
3293
- // tslint:disable-next-line: prefer-template
3072
+ }
3073
+ }
3074
+ /**
3075
+ * @return {?}
3076
+ */
3077
+ fetchCbpPlanList() {
3078
+ // let data = JSON.parse(localStorage.getItem('cbpData')|| '')
3079
+ // if(!data) {
3080
+ // this.http.get(API_END_POINTS.FETCH_CPB_PLANS).pipe(catchError(this.handleError), map(
3081
+ // (data: any) => {
3082
+ // const courseData = this.mapData(data.result)
3083
+ // return courseData
3084
+ // }
3085
+ // )
3086
+ // )
3087
+ // } else {
3088
+ // return this.getData('cbpData')
3089
+ // }
3090
+ if (this.checkStorageData('cbpService', 'cbpData')) {
3294
3091
  /** @type {?} */
3295
- const translationKey = type + '.' + nlabel + subtype;
3296
- return this.translate.instant(translationKey);
3092
+ const result = this.http.get(API_END_POINTS$1.FETCH_CPB_PLANS).pipe(catchError(this.handleError), map((/**
3093
+ * @param {?} data
3094
+ * @return {?}
3095
+ */
3096
+ (data) => __awaiter(this, void 0, void 0, function* () {
3097
+ return yield this.mapData(data.result);
3098
+ }))));
3099
+ this.setTime('cbpService');
3100
+ return result;
3297
3101
  }
3298
- // tslint:disable-next-line: prefer-template
3299
- /** @type {?} */
3300
- const translationKeyn = type + '.' + nlabel;
3301
- return this.translate.instant(translationKeyn);
3102
+ return this.getData('cbpData');
3302
3103
  }
3303
3104
  /**
3304
3105
  * @param {?} data
3305
3106
  * @return {?}
3306
3107
  */
3307
- editProfileDetailsAPI(data) {
3308
- return this.http.post(this.editProfileDetails, data);
3108
+ mapData(data) {
3109
+ return __awaiter(this, void 0, void 0, function* () {
3110
+ /** @type {?} */
3111
+ const contentNew = [];
3112
+ /** @type {?} */
3113
+ const todayDate = dayjs().format('YYYY-MM-DD');
3114
+ /** @type {?} */
3115
+ const enrollList = JSON.parse(localStorage.getItem('enrollmentMapData') || '{}');
3116
+ if (data && data.count) {
3117
+ data.content.forEach((/**
3118
+ * @param {?} c
3119
+ * @return {?}
3120
+ */
3121
+ (c) => {
3122
+ c.contentList.forEach((/**
3123
+ * @param {?} childData
3124
+ * @return {?}
3125
+ */
3126
+ (childData) => {
3127
+ /** @type {?} */
3128
+ const childEnrollData = enrollList[childData.identifier];
3129
+ /** @type {?} */
3130
+ const endDate = dayjs(c.endDate).format('YYYY-MM-DD');
3131
+ /** @type {?} */
3132
+ const daysCount = dayjs(endDate).diff(todayDate, 'day');
3133
+ childData['planDuration'] = daysCount < 0 ? NsCardContent.ACBPConst.OVERDUE : daysCount > 29
3134
+ ? NsCardContent.ACBPConst.SUCCESS : NsCardContent.ACBPConst.UPCOMING;
3135
+ childData['endDate'] = c.endDate;
3136
+ childData['parentId'] = c.id;
3137
+ childData['planType'] = 'cbPlan';
3138
+ if (childData.status !== NsCardContent.IGOTConst.RETIRED) {
3139
+ contentNew.push(childData);
3140
+ }
3141
+ else {
3142
+ if (childEnrollData && childEnrollData.status === 2) {
3143
+ contentNew.push(childData);
3144
+ }
3145
+ }
3146
+ /** @type {?} */
3147
+ const competencyArea = [];
3148
+ /** @type {?} */
3149
+ const competencyTheme = [];
3150
+ /** @type {?} */
3151
+ const competencyThemeType = [];
3152
+ /** @type {?} */
3153
+ const competencySubTheme = [];
3154
+ /** @type {?} */
3155
+ const competencyAreaId = [];
3156
+ /** @type {?} */
3157
+ const competencyThemeId = [];
3158
+ /** @type {?} */
3159
+ const competencySubThemeId = [];
3160
+ childData['contentStatus'] = 0;
3161
+ if (childEnrollData) {
3162
+ childData['contentStatus'] = childEnrollData.status;
3163
+ }
3164
+ if (childData.competencies_v5) {
3165
+ childData.competencies_v5.forEach((/**
3166
+ * @param {?} element
3167
+ * @return {?}
3168
+ */
3169
+ (element) => {
3170
+ if (!competencyArea.includes(element.competencyArea)) {
3171
+ competencyArea.push(element.competencyArea);
3172
+ competencyAreaId.push(element.competencyAreaId);
3173
+ }
3174
+ if (!competencyTheme.includes(element.competencyTheme)) {
3175
+ competencyTheme.push(element.competencyTheme);
3176
+ competencyThemeId.push(element.competencyThemeId);
3177
+ }
3178
+ if (!competencyThemeType.includes(element.competencyThemeType)) {
3179
+ competencyThemeType.push(element.competencyThemeType);
3180
+ }
3181
+ if (!competencySubTheme.includes(element.competencySubTheme)) {
3182
+ competencySubTheme.push(element.competencySubTheme);
3183
+ competencySubThemeId.push(element.competencySubThemeId);
3184
+ }
3185
+ }));
3186
+ }
3187
+ childData['competencyArea'] = competencyArea;
3188
+ childData['competencyTheme'] = competencyTheme;
3189
+ childData['competencyThemeType'] = competencyThemeType;
3190
+ childData['competencySubTheme'] = competencySubTheme;
3191
+ childData['competencyAreaId'] = competencyAreaId;
3192
+ childData['competencyThemeId'] = competencyThemeId;
3193
+ childData['competencySubThemeId'] = competencySubThemeId;
3194
+ }));
3195
+ }));
3196
+ if (contentNew.length > 1) {
3197
+ /** @type {?} */
3198
+ const sortedData = contentNew.sort((/**
3199
+ * @param {?} a
3200
+ * @param {?} b
3201
+ * @return {?}
3202
+ */
3203
+ (a, b) => {
3204
+ /** @type {?} */
3205
+ const firstDate = new Date(a.endDate);
3206
+ /** @type {?} */
3207
+ const secondDate = new Date(b.endDate);
3208
+ return secondDate > firstDate ? 1 : -1;
3209
+ }));
3210
+ /** @type {?} */
3211
+ const uniqueUsersByID = uniqBy(sortedData, 'identifier');
3212
+ /** @type {?} */
3213
+ const sortedByEndDate = orderBy(uniqueUsersByID, ['endDate'], ['asc']);
3214
+ /** @type {?} */
3215
+ const sortedByStatus = orderBy(sortedByEndDate, ['contentStatus'], ['asc']);
3216
+ localStorage.setItem('cbpData', JSON.stringify(sortedByStatus));
3217
+ return sortedByStatus;
3218
+ }
3219
+ localStorage.setItem('cbpData', JSON.stringify(contentNew));
3220
+ return contentNew;
3221
+ }
3222
+ localStorage.setItem('cbpData', JSON.stringify([]));
3223
+ return [];
3224
+ });
3309
3225
  }
3310
3226
  /**
3311
- * @param {?} state
3312
- * @param {?} lang
3313
- * @param {?} userid
3227
+ * @param {?} courseData
3314
3228
  * @return {?}
3315
3229
  */
3316
- updatelanguageSelected(state, lang, userid) {
3317
- this.languageSelected.next(state);
3318
- this.translate.use(lang);
3319
- this.selectedLang = lang;
3320
- if (userid) {
3321
- /** @type {?} */
3322
- const reqUpdates = {
3323
- request: {
3324
- userId: userid,
3325
- profileDetails: {
3326
- additionalProperties: {
3327
- webPortalLang: this.selectedLang,
3328
- },
3329
- },
3330
- },
3331
- };
3332
- this.editProfileDetailsAPI(reqUpdates).subscribe();
3230
+ mapEnrollmentData(courseData) {
3231
+ /** @type {?} */
3232
+ const enrollData = {};
3233
+ if (courseData && courseData.courses.length) {
3234
+ courseData.courses.forEach((/**
3235
+ * @param {?} data
3236
+ * @return {?}
3237
+ */
3238
+ (data) => {
3239
+ enrollData[data.collectionId] = data;
3240
+ }));
3333
3241
  }
3242
+ localStorage.removeItem('enrollmentMapData');
3243
+ localStorage.setItem('enrollmentMapData', JSON.stringify(enrollData));
3244
+ }
3245
+ /**
3246
+ * @param {?} enrollmentData
3247
+ * @param {?} enrolledCourseCount
3248
+ * @return {?}
3249
+ */
3250
+ storeUserEnrollmentInfo(enrollmentData, enrolledCourseCount) {
3251
+ /** @type {?} */
3252
+ const userData = {
3253
+ enrolledCourseCount,
3254
+ userCourseEnrolmentInfo: enrollmentData,
3255
+ };
3256
+ localStorage.removeItem('userEnrollmentCount');
3257
+ localStorage.setItem('userEnrollmentCount', JSON.stringify(userData));
3334
3258
  }
3335
3259
  }
3336
- MultilingualTranslationsService.decorators = [
3260
+ WidgetUserService.decorators = [
3337
3261
  { type: Injectable, args: [{
3338
3262
  providedIn: 'root',
3339
3263
  },] }
3340
3264
  ];
3341
3265
  /** @nocollapse */
3342
- MultilingualTranslationsService.ctorParameters = () => [
3343
- { type: TranslateService },
3344
- { type: HttpClient },
3345
- { type: ConfigurationsService }
3266
+ WidgetUserService.ctorParameters = () => [
3267
+ { type: undefined, decorators: [{ type: Inject, args: ['environment',] }] },
3268
+ { type: HttpClient }
3346
3269
  ];
3347
- /** @nocollapse */ MultilingualTranslationsService.ngInjectableDef = ɵɵdefineInjectable({ factory: function MultilingualTranslationsService_Factory() { return new MultilingualTranslationsService(ɵɵinject(TranslateService), ɵɵinject(HttpClient), ɵɵinject(ConfigurationsService)); }, token: MultilingualTranslationsService, providedIn: "root" });
3270
+ /** @nocollapse */ WidgetUserService.ngInjectableDef = ɵɵdefineInjectable({ factory: function WidgetUserService_Factory() { return new WidgetUserService(ɵɵinject("environment"), ɵɵinject(HttpClient)); }, token: WidgetUserService, providedIn: "root" });
3348
3271
  if (false) {
3349
3272
  /** @type {?} */
3350
- MultilingualTranslationsService.prototype.selectedLang;
3351
- /** @type {?} */
3352
- MultilingualTranslationsService.prototype.languageSelected;
3353
- /** @type {?} */
3354
- MultilingualTranslationsService.prototype.languageSelectedObservable;
3355
- /** @type {?} */
3356
- MultilingualTranslationsService.prototype.editProfileDetails;
3357
- /**
3358
- * @type {?}
3359
- * @private
3360
- */
3361
- MultilingualTranslationsService.prototype.translate;
3362
- /**
3363
- * @type {?}
3364
- * @private
3365
- */
3366
- MultilingualTranslationsService.prototype.http;
3273
+ WidgetUserService.prototype.environment;
3367
3274
  /**
3368
3275
  * @type {?}
3369
3276
  * @private
3370
3277
  */
3371
- MultilingualTranslationsService.prototype.configSvc;
3278
+ WidgetUserService.prototype.http;
3372
3279
  }
3373
3280
 
3374
3281
  /**
@@ -3842,6 +3749,9 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
3842
3749
  this.fetchAllPlaylistSearch(strip, calculateParentStatus);
3843
3750
  this.fetchPlaylistReadData(strip, calculateParentStatus);
3844
3751
  this.fetchCiosContentData(strip, calculateParentStatus);
3752
+ // this.enrollInterval = setInterval(() => {
3753
+ // this.fetchAllCbpPlans(strip, calculateParentStatus)
3754
+ // }, 1000)
3845
3755
  }
3846
3756
  /**
3847
3757
  * @param {?} strip
@@ -4100,41 +4010,13 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
4100
4010
  // console.log('calling after-- ')
4101
4011
  if (response.results.result.content) {
4102
4012
  if (strip.key === 'scheduledAssessment') {
4103
- /** @type {?} */
4104
- let result = response.results.result.content.map((/**
4105
- * @param {?} a
4013
+ this.enrollInterval = setInterval((/**
4106
4014
  * @return {?}
4107
4015
  */
4108
- a => a.identifier));
4109
- /** @type {?} */
4110
- const responseData = yield this.userSvc.fetchEnrollmentDataByContentId(this.configSvc.userProfile.userId, result.join(',')).toPromise().then((/**
4111
- * @param {?} res
4112
- * @return {?}
4113
- */
4114
- (res) => __awaiter(this, void 0, void 0, function* () {
4115
- /** @type {?} */
4116
- const enrollData = {};
4117
- if (res && res.courses && res.courses.length) {
4118
- res.courses.forEach((/**
4119
- * @param {?} data
4120
- * @return {?}
4121
- */
4122
- (data) => {
4123
- enrollData[data.collectionId] = data;
4124
- }));
4125
- return enrollData;
4126
- }
4127
- else {
4128
- return {};
4129
- }
4130
- }))).catch((/**
4131
- * @param {?} _err
4132
- * @return {?}
4133
- */
4134
- (_err) => {
4135
- return {};
4136
- }));
4137
- this.checkInvitOnlyAssessments(response.results.result.content, strip, calculateParentStatus, response.viewMoreUrl, responseData);
4016
+ () => {
4017
+ this.checkInvitOnlyAssessments(response.results.result.content, strip, calculateParentStatus, response.viewMoreUrl);
4018
+ // tslint:disable-next-line
4019
+ }), 1000);
4138
4020
  }
4139
4021
  else {
4140
4022
  this.processStrip(strip, this.transformContentsToWidgets(response.results.result.content, strip), 'done', calculateParentStatus, response.viewMoreUrl);
@@ -4164,12 +4046,11 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
4164
4046
  * @param {?} strip
4165
4047
  * @param {?} calculateParentStatus
4166
4048
  * @param {?} viewMoreUrl
4167
- * @param {?} enrollmentData
4168
4049
  * @return {?}
4169
4050
  */
4170
- checkInvitOnlyAssessments(content, strip, calculateParentStatus, viewMoreUrl, enrollmentData) {
4171
- if (Object.keys(enrollmentData).length) {
4172
- enrollmentData = enrollmentData;
4051
+ checkInvitOnlyAssessments(content, strip, calculateParentStatus, viewMoreUrl) {
4052
+ if (localStorage.getItem('enrollmentMapData')) {
4053
+ this.enrollmentMapData = JSON.parse(localStorage.getItem('enrollmentMapData') || '{}');
4173
4054
  /** @type {?} */
4174
4055
  let filteredArray = [];
4175
4056
  /** @type {?} */
@@ -4179,10 +4060,10 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
4179
4060
  * @return {?}
4180
4061
  */
4181
4062
  (data) => {
4182
- if (enrollmentData[data.identifier]) {
4183
- if (enrollmentData[data.identifier].status !== 2 && enrollmentData[data.identifier].batch) {
4063
+ if (this.enrollmentMapData[data.identifier]) {
4064
+ if (this.enrollmentMapData[data.identifier].status !== 2 && this.enrollmentMapData[data.identifier].batch) {
4184
4065
  /** @type {?} */
4185
- const enrollData = enrollmentData[data.identifier].batch;
4066
+ const enrollData = this.enrollmentMapData[data.identifier].batch;
4186
4067
  /** @type {?} */
4187
4068
  let endDate = new Date(enrollData.endDate).getTime()
4188
4069
  // let endDate:any = '2024-07-7T00:00:00.000Z'
@@ -4191,8 +4072,8 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
4191
4072
  /** @type {?} */
4192
4073
  let timeDuration = endDate - now;
4193
4074
  if (timeDuration > 0) {
4194
- data['batch'] = enrollmentData[data.identifier].batch;
4195
- data['completionPercentage'] = enrollmentData[data.identifier].completionPercentage;
4075
+ data['batch'] = this.enrollmentMapData[data.identifier].batch;
4076
+ data['completionPercentage'] = this.enrollmentMapData[data.identifier].completionPercentage;
4196
4077
  filteredArray.push(data);
4197
4078
  }
4198
4079
  }
@@ -4211,6 +4092,7 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
4211
4092
  return dateA - dateB;
4212
4093
  }));
4213
4094
  this.processStrip(strip, this.transformContentsToWidgets(filteredArray, strip), 'done', calculateParentStatus, viewMoreUrl);
4095
+ clearInterval(this.enrollInterval);
4214
4096
  }
4215
4097
  }
4216
4098
  /**
@@ -4823,9 +4705,7 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
4823
4705
  /** @type {?} */
4824
4706
  let tabResults = [];
4825
4707
  /** @type {?} */
4826
- let userId = this.configSvc.userProfile.userId;
4827
- /** @type {?} */
4828
- const response = yield this.userSvc.fetchCbpPlanList(userId).toPromise();
4708
+ const response = yield this.userSvc.fetchCbpPlanList().toPromise();
4829
4709
  if (response) {
4830
4710
  courses = response;
4831
4711
  if (strip.tabs && strip.tabs.length) {
@@ -4836,6 +4716,33 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
4836
4716
  this.processStrip(strip, this.transformContentsToWidgets(courses, strip), 'done', calculateParentStatus, 'viewMoreUrl');
4837
4717
  }
4838
4718
  }
4719
+ // this.userSvc.fetchCbpPlanList().subscribe( async (res: any) => {
4720
+ // if (res) {
4721
+ // console.log(res,'===============================>')
4722
+ // courses = res
4723
+ // if (strip.tabs && strip.tabs.length) {
4724
+ // tabResults = this.splitCbpTabsData(courses, strip)
4725
+ // await this.processStrip(
4726
+ // strip,
4727
+ // this.transformContentsToWidgets(courses, strip),
4728
+ // 'done',
4729
+ // calculateParentStatus,
4730
+ // '',
4731
+ // tabResults
4732
+ // )
4733
+ // } else {
4734
+ // this.processStrip(
4735
+ // strip,
4736
+ // this.transformContentsToWidgets(courses, strip),
4737
+ // 'done',
4738
+ // calculateParentStatus,
4739
+ // 'viewMoreUrl',
4740
+ // )
4741
+ // }
4742
+ // }
4743
+ // }, (_err: any) => {
4744
+ // })
4745
+ clearInterval(this.enrollInterval);
4839
4746
  }
4840
4747
  });
4841
4748
  }
@@ -5801,13 +5708,13 @@ ContentStripWithTabsLibComponent.decorators = [
5801
5708
  /** @nocollapse */
5802
5709
  ContentStripWithTabsLibComponent.ctorParameters = () => [
5803
5710
  { type: undefined, decorators: [{ type: Inject, args: ['environment',] }] },
5804
- { type: WidgetContentLibService },
5711
+ { type: WidgetContentService },
5805
5712
  { type: LoggerService },
5806
5713
  { type: EventService },
5807
5714
  { type: ConfigurationsService$1 },
5808
5715
  { type: UtilityService },
5809
5716
  { type: Router },
5810
- { type: WidgetUserServiceLib },
5717
+ { type: WidgetUserService },
5811
5718
  { type: TranslateService },
5812
5719
  { type: MultilingualTranslationsService }
5813
5720
  ];
@@ -5869,7 +5776,11 @@ if (false) {
5869
5776
  /** @type {?} */
5870
5777
  ContentStripWithTabsLibComponent.prototype.defaultMaxWidgets;
5871
5778
  /** @type {?} */
5779
+ ContentStripWithTabsLibComponent.prototype.enrollInterval;
5780
+ /** @type {?} */
5872
5781
  ContentStripWithTabsLibComponent.prototype.todaysEvents;
5782
+ /** @type {?} */
5783
+ ContentStripWithTabsLibComponent.prototype.enrollmentMapData;
5873
5784
  /**
5874
5785
  * @type {?}
5875
5786
  * @private
@@ -7791,12 +7702,12 @@ CommonStripComponent.decorators = [
7791
7702
  /** @nocollapse */
7792
7703
  CommonStripComponent.ctorParameters = () => [
7793
7704
  { type: undefined, decorators: [{ type: Inject, args: ['environment',] }] },
7794
- { type: WidgetContentLibService },
7705
+ { type: WidgetContentService },
7795
7706
  { type: LoggerService },
7796
7707
  { type: EventService },
7797
7708
  { type: ConfigurationsService$1 },
7798
7709
  { type: UtilityService },
7799
- { type: WidgetUserServiceLib },
7710
+ { type: WidgetUserService },
7800
7711
  { type: TranslateService },
7801
7712
  { type: MultilingualTranslationsService },
7802
7713
  { type: CommonMethodsService }
@@ -8896,6 +8807,13 @@ class CardsComponent extends WidgetBaseComponent {
8896
8807
  () => {
8897
8808
  this.getCbPlanData();
8898
8809
  }), 1000);
8810
+ this.enrollInterval = setInterval((/**
8811
+ * @return {?}
8812
+ */
8813
+ () => {
8814
+ this.getEnrollmentData();
8815
+ // tslint:disable-next-line
8816
+ }), 1000);
8899
8817
  }
8900
8818
  /**
8901
8819
  * @return {?}
@@ -8958,6 +8876,15 @@ class CardsComponent extends WidgetBaseComponent {
8958
8876
  clearInterval(this.cbPlanInterval);
8959
8877
  }
8960
8878
  }
8879
+ /**
8880
+ * @return {?}
8881
+ */
8882
+ getEnrollmentData() {
8883
+ if (localStorage.getItem('enrollmentMapData')) {
8884
+ this.enrollmentMapData = JSON.parse(localStorage.getItem('enrollmentMapData') || '{}');
8885
+ clearInterval(this.enrollInterval);
8886
+ }
8887
+ }
8961
8888
  /**
8962
8889
  * @param {?} data
8963
8890
  * @return {?}
@@ -8969,14 +8896,14 @@ class CardsComponent extends WidgetBaseComponent {
8969
8896
  CardsComponent.decorators = [
8970
8897
  { type: Component, args: [{
8971
8898
  selector: 'sb-uic-cards',
8972
- 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-home-lib-skeleton'\" [ngTemplateOutlet]=\"cardMdoHomeSkeleton\"></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-providers-lib-skeleton'\" [ngTemplateOutlet]=\"cardProviderSkeleton\"></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 [isCardLoading]=\"false\" [widgetData]=\"widgetData\"></sb-uic-card-mdo-channel-v1>\n</ng-template>\n<ng-template #cardMdoHomeSkeleton>\n <sb-uic-card-mdo-channel-v1 [isCardLoading]=\"true\" [widgetData]=\"widgetData\"></sb-uic-card-mdo-channel-v1>\n</ng-template>\n<ng-template #cardMdo>\n <sb-uic-card-mdo-channel [isCardLoading]=\"true\" [widgetData]=\"widgetData\"></sb-uic-card-mdo-channel>\n</ng-template>\n<ng-template #cardMdoSkeleton>\n <sb-uic-card-mdo-channel [isCardLoading]=\"true\" [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\" ></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 [isCardLoading]=\"false\" [widgetData]=\"widgetData\"></sb-uic-provider-card>\n</ng-template>\n<ng-template #cardProviderSkeleton>\n <sb-uic-provider-card [isCardLoading]=\"true\" [widgetData]=\"widgetData\"></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",
8899
+ 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-home-lib-skeleton'\" [ngTemplateOutlet]=\"cardMdoHomeSkeleton\"></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-providers-lib-skeleton'\" [ngTemplateOutlet]=\"cardProviderSkeleton\"></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 [isCardLoading]=\"false\" [widgetData]=\"widgetData\"></sb-uic-card-mdo-channel-v1>\n</ng-template>\n<ng-template #cardMdoHomeSkeleton>\n <sb-uic-card-mdo-channel-v1 [isCardLoading]=\"true\" [widgetData]=\"widgetData\"></sb-uic-card-mdo-channel-v1>\n</ng-template>\n<ng-template #cardMdo>\n <sb-uic-card-mdo-channel [isCardLoading]=\"true\" [widgetData]=\"widgetData\"></sb-uic-card-mdo-channel>\n</ng-template>\n<ng-template #cardMdoSkeleton>\n <sb-uic-card-mdo-channel [isCardLoading]=\"true\" [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 [isCardLoading]=\"false\" [widgetData]=\"widgetData\"></sb-uic-provider-card>\n</ng-template>\n<ng-template #cardProviderSkeleton>\n <sb-uic-provider-card [isCardLoading]=\"true\" [widgetData]=\"widgetData\"></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",
8973
8900
  styles: [""]
8974
8901
  }] }
8975
8902
  ];
8976
8903
  /** @nocollapse */
8977
8904
  CardsComponent.ctorParameters = () => [
8978
8905
  { type: UtilityService },
8979
- { type: WidgetContentLibService },
8906
+ { type: WidgetContentService },
8980
8907
  { type: Router }
8981
8908
  ];
8982
8909
  CardsComponent.propDecorators = {
@@ -8994,6 +8921,10 @@ if (false) {
8994
8921
  CardsComponent.prototype.cbPlanMapData;
8995
8922
  /** @type {?} */
8996
8923
  CardsComponent.prototype.cbPlanInterval;
8924
+ /** @type {?} */
8925
+ CardsComponent.prototype.enrollInterval;
8926
+ /** @type {?} */
8927
+ CardsComponent.prototype.enrollmentMapData;
8997
8928
  /**
8998
8929
  * @type {?}
8999
8930
  * @private
@@ -9130,7 +9061,7 @@ CardPortraitComponent.ctorParameters = () => [
9130
9061
  { type: TranslateService },
9131
9062
  { type: MultilingualTranslationsService },
9132
9063
  { type: ConfigurationsService$1 },
9133
- { type: WidgetContentLibService }
9064
+ { type: WidgetContentService }
9134
9065
  ];
9135
9066
  CardPortraitComponent.propDecorators = {
9136
9067
  widgetData: [{ type: Input }],
@@ -10149,7 +10080,7 @@ CardMDOChannelComponent.ctorParameters = () => [
10149
10080
  { type: TranslateService },
10150
10081
  { type: MultilingualTranslationsService$1 },
10151
10082
  { type: ConfigurationsService$1 },
10152
- { type: WidgetContentLibService },
10083
+ { type: WidgetContentService },
10153
10084
  { type: Router }
10154
10085
  ];
10155
10086
  CardMDOChannelComponent.propDecorators = {
@@ -10482,7 +10413,7 @@ CardKarmaProgramsComponent.ctorParameters = () => [
10482
10413
  { type: TranslateService },
10483
10414
  { type: MultilingualTranslationsService$1 },
10484
10415
  { type: ConfigurationsService$1 },
10485
- { type: WidgetContentLibService },
10416
+ { type: WidgetContentService },
10486
10417
  { type: Router }
10487
10418
  ];
10488
10419
  CardKarmaProgramsComponent.propDecorators = {
@@ -10878,7 +10809,7 @@ CardPortraitExtComponent.ctorParameters = () => [
10878
10809
  { type: TranslateService },
10879
10810
  { type: MultilingualTranslationsService },
10880
10811
  { type: ConfigurationsService$1 },
10881
- { type: WidgetContentLibService }
10812
+ { type: WidgetContentService }
10882
10813
  ];
10883
10814
  CardPortraitExtComponent.propDecorators = {
10884
10815
  widgetData: [{ type: Input }],
@@ -11053,10 +10984,11 @@ CardAssessmentComponent.decorators = [
11053
10984
  /** @nocollapse */
11054
10985
  CardAssessmentComponent.ctorParameters = () => [
11055
10986
  { type: ConfigurationsService$1 },
11056
- { type: WidgetContentLibService }
10987
+ { type: WidgetContentService }
11057
10988
  ];
11058
10989
  CardAssessmentComponent.propDecorators = {
11059
10990
  widgetData: [{ type: Input }],
10991
+ enrollmentMapData: [{ type: Input }],
11060
10992
  contentData: [{ type: Output }],
11061
10993
  isCardLoading: [{ type: Input }]
11062
10994
  };
@@ -11064,6 +10996,8 @@ if (false) {
11064
10996
  /** @type {?} */
11065
10997
  CardAssessmentComponent.prototype.widgetData;
11066
10998
  /** @type {?} */
10999
+ CardAssessmentComponent.prototype.enrollmentMapData;
11000
+ /** @type {?} */
11067
11001
  CardAssessmentComponent.prototype.contentData;
11068
11002
  /** @type {?} */
11069
11003
  CardAssessmentComponent.prototype.isCardLoading;
@@ -11550,7 +11484,7 @@ CardProgressPortraitLibComponent.ctorParameters = () => [
11550
11484
  { type: EventService },
11551
11485
  { type: MultilingualTranslationsService },
11552
11486
  { type: ConfigurationsService$1 },
11553
- { type: WidgetContentLibService },
11487
+ { type: WidgetContentService },
11554
11488
  { type: CertificateService },
11555
11489
  { type: MatDialog }
11556
11490
  ];
@@ -11870,7 +11804,7 @@ CardMdoChannelV1Component.ctorParameters = () => [
11870
11804
  { type: TranslateService },
11871
11805
  { type: MultilingualTranslationsService$1 },
11872
11806
  { type: ConfigurationsService$1 },
11873
- { type: WidgetContentLibService },
11807
+ { type: WidgetContentService },
11874
11808
  { type: Router }
11875
11809
  ];
11876
11810
  CardMdoChannelV1Component.propDecorators = {
@@ -12512,7 +12446,7 @@ class ContentStripFacetFilterComponent extends WidgetBaseComponent {
12512
12446
  this._fb = _fb;
12513
12447
  this.emptyResponse = new EventEmitter();
12514
12448
  this.viewAllResponse = new EventEmitter();
12515
- this.telemtryResponse = new EventEmitter();
12449
+ this.telemtryLearningContentResponse = new EventEmitter();
12516
12450
  this.providerId = '';
12517
12451
  this.emitViewAll = false;
12518
12452
  this.channnelName = '';
@@ -12551,13 +12485,9 @@ class ContentStripFacetFilterComponent extends WidgetBaseComponent {
12551
12485
  */
12552
12486
  ngOnInit() {
12553
12487
  this.initData();
12554
- this.contentSvc.telemetryData$.subscribe((/**
12555
- * @param {?} data
12556
- * @return {?}
12557
- */
12558
- (data) => {
12559
- this.telemtryResponse.emit(data);
12560
- }));
12488
+ // this.contentSvc.telemetryData$.subscribe((data: any) => {
12489
+ // this.telemtryLearningContentResponse.emit(data)
12490
+ // })
12561
12491
  this.facetForm = this._fb.group({
12562
12492
  org: ['0']
12563
12493
  });
@@ -12823,7 +12753,7 @@ class ContentStripFacetFilterComponent extends WidgetBaseComponent {
12823
12753
  * @return {?}
12824
12754
  */
12825
12755
  raiseTelemetry(stripData) {
12826
- this.telemtryResponse.emit(stripData);
12756
+ this.telemtryLearningContentResponse.emit(stripData);
12827
12757
  }
12828
12758
  /**
12829
12759
  * @param {?} key
@@ -12883,7 +12813,7 @@ class ContentStripFacetFilterComponent extends WidgetBaseComponent {
12883
12813
  };
12884
12814
  this.eventSvc.raiseInteractTelemetry({
12885
12815
  type: WsEvents.EnumInteractTypes.CLICK,
12886
- subType: WsEvents.EnumInteractSubTypes.HOME_PAGE_STRIP_TABS,
12816
+ subType: 'explore-learning-content',
12887
12817
  id: `${camelCase(data.label)}-tab`,
12888
12818
  }, {}, {
12889
12819
  module: WsEvents.EnumTelemetrymodules.HOME,
@@ -13268,7 +13198,7 @@ class ContentStripFacetFilterComponent extends WidgetBaseComponent {
13268
13198
  let tabIndex = 0;
13269
13199
  /** @type {?} */
13270
13200
  let pillIndex = 0;
13271
- if (response.results && response.results.result) {
13201
+ if (response.results && response.results.result && response.results.result.content && response.results.result.content.length > 0) {
13272
13202
  this.mapAllDataWithFacets(strip, response.results.result.content, response.results.result.facets, calculateParentStatus);
13273
13203
  /** @type {?} */
13274
13204
  const widgets = this.transformContentsToWidgets(response.results.result.content, strip);
@@ -13304,6 +13234,9 @@ class ContentStripFacetFilterComponent extends WidgetBaseComponent {
13304
13234
  // tabResults // tabResults as widgets
13305
13235
  // );
13306
13236
  }
13237
+ else {
13238
+ this.processStrip(strip, [], 'error', calculateParentStatus, null);
13239
+ }
13307
13240
  }
13308
13241
  catch (error) {
13309
13242
  // Handle errors
@@ -13508,13 +13441,13 @@ ContentStripFacetFilterComponent.decorators = [
13508
13441
  /** @nocollapse */
13509
13442
  ContentStripFacetFilterComponent.ctorParameters = () => [
13510
13443
  { type: undefined, decorators: [{ type: Inject, args: ['environment',] }] },
13511
- { type: WidgetContentLibService },
13444
+ { type: WidgetContentService },
13512
13445
  { type: LoggerService },
13513
13446
  { type: EventService },
13514
13447
  { type: ConfigurationsService$1 },
13515
13448
  { type: UtilityService },
13516
13449
  { type: Router },
13517
- { type: WidgetUserServiceLib },
13450
+ { type: WidgetUserService },
13518
13451
  { type: TranslateService },
13519
13452
  { type: MultilingualTranslationsService },
13520
13453
  { type: FormBuilder }
@@ -13523,7 +13456,7 @@ ContentStripFacetFilterComponent.propDecorators = {
13523
13456
  widgetData: [{ type: Input }],
13524
13457
  emptyResponse: [{ type: Output }],
13525
13458
  viewAllResponse: [{ type: Output }],
13526
- telemtryResponse: [{ type: Output }],
13459
+ telemtryLearningContentResponse: [{ type: Output }],
13527
13460
  providerId: [{ type: Input }],
13528
13461
  emitViewAll: [{ type: Input }],
13529
13462
  channnelName: [{ type: Input }],
@@ -13537,7 +13470,7 @@ if (false) {
13537
13470
  /** @type {?} */
13538
13471
  ContentStripFacetFilterComponent.prototype.viewAllResponse;
13539
13472
  /** @type {?} */
13540
- ContentStripFacetFilterComponent.prototype.telemtryResponse;
13473
+ ContentStripFacetFilterComponent.prototype.telemtryLearningContentResponse;
13541
13474
  /** @type {?} */
13542
13475
  ContentStripFacetFilterComponent.prototype.providerId;
13543
13476
  /** @type {?} */
@@ -13581,6 +13514,8 @@ if (false) {
13581
13514
  /** @type {?} */
13582
13515
  ContentStripFacetFilterComponent.prototype.todaysEvents;
13583
13516
  /** @type {?} */
13517
+ ContentStripFacetFilterComponent.prototype.enrollmentMapData;
13518
+ /** @type {?} */
13584
13519
  ContentStripFacetFilterComponent.prototype.facetForm;
13585
13520
  /**
13586
13521
  * @type {?}
@@ -14892,9 +14827,7 @@ class ContentStripWithTabsPillsComponent extends WidgetBaseComponent {
14892
14827
  /** @type {?} */
14893
14828
  let tabResults = [];
14894
14829
  /** @type {?} */
14895
- let userId = this.configSvc.userProfile.userId;
14896
- /** @type {?} */
14897
- const response = yield this.userSvc.fetchCbpPlanList(userId).toPromise();
14830
+ const response = yield this.userSvc.fetchCbpPlanList().toPromise();
14898
14831
  if (response) {
14899
14832
  courses = response;
14900
14833
  if (strip.tabs && strip.tabs.length) {
@@ -15114,13 +15047,13 @@ ContentStripWithTabsPillsComponent.decorators = [
15114
15047
  /** @nocollapse */
15115
15048
  ContentStripWithTabsPillsComponent.ctorParameters = () => [
15116
15049
  { type: undefined, decorators: [{ type: Inject, args: ['environment',] }] },
15117
- { type: WidgetContentLibService },
15050
+ { type: WidgetContentService },
15118
15051
  { type: LoggerService },
15119
15052
  { type: EventService },
15120
15053
  { type: ConfigurationsService$1 },
15121
15054
  { type: UtilityService },
15122
15055
  { type: Router },
15123
- { type: WidgetUserServiceLib },
15056
+ { type: WidgetUserService },
15124
15057
  { type: TranslateService },
15125
15058
  { type: MultilingualTranslationsService }
15126
15059
  ];
@@ -15185,6 +15118,8 @@ if (false) {
15185
15118
  ContentStripWithTabsPillsComponent.prototype.enrollInterval;
15186
15119
  /** @type {?} */
15187
15120
  ContentStripWithTabsPillsComponent.prototype.todaysEvents;
15121
+ /** @type {?} */
15122
+ ContentStripWithTabsPillsComponent.prototype.enrollmentMapData;
15188
15123
  /**
15189
15124
  * @type {?}
15190
15125
  * @private
@@ -15907,7 +15842,7 @@ CompetencyPassbookComponent.decorators = [
15907
15842
  /** @nocollapse */
15908
15843
  CompetencyPassbookComponent.ctorParameters = () => [
15909
15844
  { type: ConfigurationsService$1 },
15910
- { type: WidgetContentLibService },
15845
+ { type: WidgetContentService },
15911
15846
  { type: CompetencyPassbookService },
15912
15847
  { type: Router },
15913
15848
  { type: undefined, decorators: [{ type: Inject, args: ['environment',] }] }
@@ -16394,7 +16329,7 @@ CompetencyPassbookMdoComponent.decorators = [
16394
16329
  /** @nocollapse */
16395
16330
  CompetencyPassbookMdoComponent.ctorParameters = () => [
16396
16331
  { type: ConfigurationsService$1 },
16397
- { type: WidgetContentLibService },
16332
+ { type: WidgetContentService },
16398
16333
  { type: CompetencyPassbookMdoService },
16399
16334
  { type: Router },
16400
16335
  { type: undefined, decorators: [{ type: Inject, args: ['environment',] }] }
@@ -17561,15 +17496,23 @@ class NationalLearningComponent {
17561
17496
  * @return {?}
17562
17497
  */
17563
17498
  raiseTelemetryInteratEvent(event) {
17499
+ /** @type {?} */
17500
+ let _subType = 'mandatory-courses';
17501
+ /** @type {?} */
17502
+ let _id = 'mandatory-courses-card';
17503
+ if (event.typeOfTelemetry === 'learningContent') {
17504
+ _subType = 'explore-learning-content';
17505
+ _id = 'explore-learning-content-card';
17506
+ }
17564
17507
  this.events.raiseInteractTelemetry({
17565
17508
  type: 'click',
17566
- subType: 'mandatory-courses',
17567
- id: `mandatory-courses-card`,
17509
+ subType: _subType,
17510
+ id: _id,
17568
17511
  }, {
17569
17512
  id: event.identifier,
17570
17513
  type: event.primaryCategory,
17571
17514
  }, {
17572
- pageIdExt: `mandatory-courses-card`,
17515
+ pageIdExt: _id,
17573
17516
  module: 'National Learning Week',
17574
17517
  });
17575
17518
  }
@@ -18428,6 +18371,7 @@ class UserProgressComponent {
18428
18371
  * @return {?}
18429
18372
  */
18430
18373
  getUserProgress() {
18374
+ debugger;
18431
18375
  this.insightSvc.fetchUserProgress().subscribe((/**
18432
18376
  * @param {?} res
18433
18377
  * @return {?}
@@ -18642,5 +18586,5 @@ NationalLearningModule.decorators = [
18642
18586
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
18643
18587
  */
18644
18588
 
18645
- export { AnnouncementsModule, CalenderModule, CardsModule, CbpPlanModule, CommonMethodsService, CommonStripModule, CompetencyPassbookMdoModule, CompetencyPassbookModule, ConsumptionComponent, ConsumptionModule, ConsumptionService, ContentProgressModule, ContentStripFacetFilterModule, ContentStripWithTabsLibModule, ContentStripWithTabsPillsModule, DataPointsModule, DialogComponentsModule, EventsModule, HighlightsOfWeekModule, HttpLoaderFactory, HttpLoaderFactory1, KeyHighlightsModule, MDOChannelModule, MdoLeaderboardModule, MyHammerConfig, NationalLearningModule, ProvidersModule, ROOT_WIDGET_CONFIG, SlidersLibModule, SpeakersModule, TopLearnersModule, UserContentRatingLibModule, UserProgressModule, WIDGET_REGISTERED_LIB_MODULES, WIDGET_REGISTRATION_LIB_CONFIG, WidgetContentLibService, WidgetUserServiceLib, ContentStripWithTabsLibComponent as ɵa, MultilingualTranslationsService as ɵb, CardsComponent as ɵba, CardPortraitComponent as ɵbb, CardUserComponent as ɵbc, CardLandscapeComponent as ɵbd, CardWideComponent as ɵbe, CardMDOChannelComponent as ɵbf, CardWideV2Component as ɵbg, CardKarmaProgramsComponent as ɵbh, CardKarmaProgramsV2Component as ɵbi, ProviderCardComponent as ɵbj, CardPortraitExtComponent as ɵbk, CardAssessmentComponent as ɵbl, CardProgressPortraitLibComponent as ɵbm, CertificateService as ɵbn, CardMdoChannelV1Component as ɵbo, PipePublicURLModule as ɵbp, PipePublicURL as ɵbq, ObjectToArrayPipeModule as ɵbr, ObjectToArrayPipe as ɵbs, DisplayContentTypeLibModule as ɵbt, DisplayContentTypeLibComponent as ɵbu, DefaultThumbnailModule as ɵbv, DefaultThumbnailDirective as ɵbw, PipeDurationTransformModule as ɵbx, PipeDurationTransformPipe as ɵby, ContentProgressComponent as ɵbz, ConfigurationsService as ɵc, CertificateDialogComponent as ɵca, AvatarPhotoLibModule as ɵcb, AvatarPhotoLibComponent as ɵcc, ContentStripFacetFilterComponent as ɵcd, ContentStripWithTabsPillsComponent as ɵce, CompetencyPassbookComponent as ɵcf, CompetencyPassbookService as ɵcg, PillsModule as ɵch, PillsComponent as ɵci, CompetencyPassbookMdoComponent as ɵcj, CompetencyPassbookMdoService as ɵck, UserContentRatingLibComponent as ɵcl, RatingService as ɵcm, UserContentRatingLibService as ɵcn, MdoChannelV1Component as ɵco, MdoChannelV2Component as ɵcp, ProvidersV2Component as ɵcq, NationalLearningComponent as ɵcr, KeyHighlightsComponent as ɵcs, EventsComponent as ɵct, EventCardComponent as ɵcu, MdoLeaderboardComponent as ɵcv, HighlightsOfWeekComponent as ɵcw, SpeakersComponent as ɵcx, UserProgressComponent as ɵcy, HorizontalScrollerV2Module as ɵd, HorizontalScrollerV2Component as ɵe, SlidersLibComponent as ɵf, NavigationModule as ɵg, NavigationDirective as ɵh, ImageResponsiveModule as ɵi, ImageResponsiveDirective as ɵj, DataPointsComponent as ɵk, InsiteDataService as ɵl, SkeletonLoaderLibModule as ɵm, SkeletonLoaderLibComponent as ɵn, CalenderComponent as ɵo, CalenderDayComponent as ɵp, CommonStripComponent as ɵq, AnnouncementsComponent as ɵr, TopLearnersComponent as ɵs, CbpPlanComponent as ɵt, ScrollableItemDirective as ɵu, ScrollableItemModule as ɵv, MyHammerConfig$1 as ɵw, SlidersNgContentLibModule as ɵx, SlidersNgContentLibComponent as ɵy, CardResourceComponent as ɵz };
18589
+ export { AnnouncementsModule, CalenderModule, CardsModule, CbpPlanModule, CommonMethodsService, CommonStripModule, CompetencyPassbookMdoModule, CompetencyPassbookModule, ConsumptionComponent, ConsumptionModule, ConsumptionService, ContentProgressModule, ContentStripFacetFilterModule, ContentStripWithTabsLibModule, ContentStripWithTabsPillsModule, DataPointsModule, DialogComponentsModule, EventsModule, HighlightsOfWeekModule, HttpLoaderFactory, HttpLoaderFactory1, KeyHighlightsModule, MDOChannelModule, MdoLeaderboardModule, MyHammerConfig, NationalLearningModule, ProvidersModule, ROOT_WIDGET_CONFIG, SlidersLibModule, SpeakersModule, TopLearnersModule, UserContentRatingLibModule, UserProgressModule, WIDGET_REGISTERED_LIB_MODULES, WIDGET_REGISTRATION_LIB_CONFIG, WidgetContentService, ContentStripWithTabsLibComponent as ɵa, WidgetUserService as ɵb, CardResourceComponent as ɵba, CardsComponent as ɵbb, CardPortraitComponent as ɵbc, CardUserComponent as ɵbd, CardLandscapeComponent as ɵbe, CardWideComponent as ɵbf, CardMDOChannelComponent as ɵbg, CardWideV2Component as ɵbh, CardKarmaProgramsComponent as ɵbi, CardKarmaProgramsV2Component as ɵbj, ProviderCardComponent as ɵbk, CardPortraitExtComponent as ɵbl, CardAssessmentComponent as ɵbm, CardProgressPortraitLibComponent as ɵbn, CertificateService as ɵbo, CardMdoChannelV1Component as ɵbp, PipePublicURLModule as ɵbq, PipePublicURL as ɵbr, ObjectToArrayPipeModule as ɵbs, ObjectToArrayPipe as ɵbt, DisplayContentTypeLibModule as ɵbu, DisplayContentTypeLibComponent as ɵbv, DefaultThumbnailModule as ɵbw, DefaultThumbnailDirective as ɵbx, PipeDurationTransformModule as ɵby, PipeDurationTransformPipe as ɵbz, MultilingualTranslationsService as ɵc, ContentProgressComponent as ɵca, CertificateDialogComponent as ɵcb, AvatarPhotoLibModule as ɵcc, AvatarPhotoLibComponent as ɵcd, ContentStripFacetFilterComponent as ɵce, ContentStripWithTabsPillsComponent as ɵcf, CompetencyPassbookComponent as ɵcg, CompetencyPassbookService as ɵch, PillsModule as ɵci, PillsComponent as ɵcj, CompetencyPassbookMdoComponent as ɵck, CompetencyPassbookMdoService as ɵcl, UserContentRatingLibComponent as ɵcm, RatingService as ɵcn, UserContentRatingLibService as ɵco, MdoChannelV1Component as ɵcp, MdoChannelV2Component as ɵcq, ProvidersV2Component as ɵcr, NationalLearningComponent as ɵcs, KeyHighlightsComponent as ɵct, EventsComponent as ɵcu, EventCardComponent as ɵcv, MdoLeaderboardComponent as ɵcw, HighlightsOfWeekComponent as ɵcx, SpeakersComponent as ɵcy, UserProgressComponent as ɵcz, 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, TopLearnersComponent as ɵt, CbpPlanComponent as ɵu, ScrollableItemDirective as ɵv, ScrollableItemModule as ɵw, MyHammerConfig$1 as ɵx, SlidersNgContentLibModule as ɵy, SlidersNgContentLibComponent as ɵz };
18646
18590
  //# sourceMappingURL=sunbird-cb-consumption.js.map