@sunbird-cb/consumption 0.0.90 → 0.0.92

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 +1597 -1500
  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 +4 -7
  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 +4 -24
  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 +53 -54
  17. package/esm2015/lib/_common/microsites/mdo-channels/mdo-channel-v2/mdo-channel-v2.component.js +2 -2
  18. package/esm2015/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.component.js +5 -7
  19. package/esm2015/lib/_common/strips/content-strip-with-tabs-pills/content-strip-with-tabs-pills.component.js +11 -8
  20. package/esm2015/lib/_common/user-progress/user-progress.component.js +1 -2
  21. package/esm2015/lib/_services/widget-content-lib.service.js +899 -0
  22. package/esm2015/lib/_services/widget-user-lib.service.js +523 -0
  23. package/esm2015/public-api.js +3 -2
  24. package/esm2015/sunbird-cb-consumption.js +77 -78
  25. package/esm5/lib/_common/cards/card-assessment/card-assessment/card-assessment.component.js +4 -7
  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 +4 -27
  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 +86 -87
  37. package/esm5/lib/_common/microsites/mdo-channels/mdo-channel-v2/mdo-channel-v2.component.js +2 -2
  38. package/esm5/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.component.js +5 -7
  39. package/esm5/lib/_common/strips/content-strip-with-tabs-pills/content-strip-with-tabs-pills.component.js +17 -14
  40. package/esm5/lib/_common/user-progress/user-progress.component.js +1 -2
  41. package/esm5/lib/_services/widget-content-lib.service.js +1170 -0
  42. package/esm5/lib/_services/widget-user-lib.service.js +607 -0
  43. package/esm5/public-api.js +3 -2
  44. package/esm5/sunbird-cb-consumption.js +77 -78
  45. package/fesm2015/sunbird-cb-consumption.js +1160 -1091
  46. package/fesm2015/sunbird-cb-consumption.js.map +1 -1
  47. package/fesm5/sunbird-cb-consumption.js +1522 -1425
  48. package/fesm5/sunbird-cb-consumption.js.map +1 -1
  49. package/lib/_common/cards/card-assessment/card-assessment/card-assessment.component.d.ts +2 -3
  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 +2 -5
  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 +4 -6
  61. package/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.component.d.ts +3 -4
  62. package/lib/_common/strips/content-strip-with-tabs-pills/content-strip-with-tabs-pills.component.d.ts +3 -4
  63. package/lib/_services/{widget-content.service.d.ts → widget-content-lib.service.d.ts} +6 -3
  64. package/lib/_services/{widget-user.service.d.ts → widget-user-lib.service.d.ts} +9 -4
  65. package/package.json +1 -1
  66. package/public-api.d.ts +2 -1
  67. package/sunbird-cb-consumption.d.ts +75 -76
  68. package/sunbird-cb-consumption.metadata.json +1 -1
  69. package/esm2015/lib/_services/widget-content.service.js +0 -852
  70. package/esm2015/lib/_services/widget-user.service.js +0 -475
  71. package/esm5/lib/_services/widget-content.service.js +0 -1109
  72. package/esm5/lib/_services/widget-user.service.js +0 -542
@@ -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, BehaviorSubject, Subject, of, EMPTY, ReplaySubject, throwError, Observable, interval } from 'rxjs';
5
- import { debounceTime, throttleTime, shareReplay, retry, map, catchError, filter, distinctUntilChanged } from 'rxjs/operators';
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';
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 { HttpClient, HttpHeaders } from '@angular/common/http';
11
- import { get, uniqBy, orderBy, camelCase, kebabCase } from 'lodash';
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';
12
14
  import * as moment$4 from 'moment';
13
15
  import { duration, utc } from 'moment';
14
16
  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,426 +1439,1016 @@ 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
+
1442
1520
  /**
1443
1521
  * @fileoverview added by tsickle
1444
1522
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1445
1523
  */
1446
1524
  /** @type {?} */
1447
- const moment = moment$4;
1448
- // tslint:enable
1449
- // TODO: move this in some common place
1525
+ const dayjs = dayjs_
1526
+ // import { environment } from 'src/environments/environment'
1527
+ ;
1450
1528
  /** @type {?} */
1451
1529
  const PROTECTED_SLAG_V8 = '/apis/protected/v8';
1452
1530
  const ɵ0 = /**
1453
- * @param {?} type
1454
- * @param {?} id
1531
+ * @param {?} userId
1455
1532
  * @return {?}
1456
1533
  */
1457
- (type, id) => `${PROTECTED_SLAG_V8}/content/collection/${type}/${id}`, ɵ1 = /**
1458
- * @param {?} contentId
1534
+ (userId) => `${PROTECTED_SLAG_V8}/user/group/fetchUserGroup?userId=${userId}`, ɵ1 = /**
1535
+ * @param {?} userId
1459
1536
  * @return {?}
1460
1537
  */
1461
- (contentId) => `${PROTECTED_SLAG_V8}/user/progress/${contentId}`, ɵ2 = /**
1462
- * @param {?} certId
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
1463
1542
  * @return {?}
1464
1543
  */
1465
- (certId) => `${PROTECTED_SLAG_V8}/cohorts/course/batch/cert/download/${certId}`, ɵ3 = /**
1466
- * @param {?} contentId
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
1467
1552
  * @return {?}
1468
1553
  */
1469
- (contentId) => `/apis/proxies/v8/action/content/v3/read/${contentId}`;
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}`;
1470
1557
  /** @type {?} */
1471
1558
  const API_END_POINTS = {
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',
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),
1512
1565
  };
1513
- class WidgetContentService {
1566
+ class WidgetUserServiceLib {
1514
1567
  /**
1568
+ * @param {?} environment
1515
1569
  * @param {?} http
1516
- * @param {?} configSvc
1517
1570
  */
1518
- constructor(http, configSvc) {
1571
+ constructor(environment, http) {
1519
1572
  this.http = http;
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();
1573
+ this.environment = environment;
1527
1574
  }
1528
1575
  /**
1529
- * @param {?} message
1576
+ * @param {?} error
1530
1577
  * @return {?}
1531
1578
  */
1532
- changeTelemetryData(message) {
1533
- this.telemetryData.next(message);
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);
1534
1586
  }
1535
1587
  /**
1536
- * @param {?} primaryCategory
1588
+ * @param {?} userId
1537
1589
  * @return {?}
1538
1590
  */
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;
1591
+ fetchUserGroupDetails(userId) {
1592
+ return this.http
1593
+ .get(API_END_POINTS.FETCH_USER_GROUPS(userId))
1594
+ .pipe(catchError(this.handleError));
1550
1595
  }
1596
+ // tslint:disable-next-line: max-line-length
1551
1597
  /**
1552
- * @param {?} identifier
1598
+ * @param {?} userId
1599
+ * @param {?=} queryParams
1553
1600
  * @return {?}
1554
1601
  */
1555
- fetchMarkAsCompleteMeta(identifier) {
1556
- // tslint:disable-next-line
1602
+ fetchUserBatchList(userId, queryParams) {
1557
1603
  /** @type {?} */
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();
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
+ });
1618
+ /** @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;
1564
1643
  }
1644
+ // tslint:disable-next-line: max-line-length
1565
1645
  /**
1566
- * @param {?} data
1646
+ * @param {?} userId
1647
+ * @param {?=} queryParams
1567
1648
  * @return {?}
1568
1649
  */
1569
- updateTocConfig(data) {
1570
- this.tocConfigData.next(data);
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)));
1571
1673
  }
1572
1674
  /**
1573
- * @param {?} contentId
1574
- * @param {?=} hierarchyType
1575
- * @param {?=} _additionalFields
1576
- * @param {?=} primaryCategory
1675
+ * @param {?} key
1676
+ * @param {?} dataKey
1577
1677
  * @return {?}
1578
1678
  */
1579
- fetchContent(contentId, hierarchyType = 'detail', _additionalFields = [], primaryCategory) {
1580
- // const url = `${API_END_POINTS.CONTENT}/${contentId}?hierarchyType=${hierarchyType}`
1581
- /** @type {?} */
1582
- let url = '';
1679
+ checkStorageData(key, dataKey) {
1583
1680
  /** @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 {
1681
+ const checkTime = localStorage.getItem('timeCheck');
1682
+ if (checkTime) {
1683
+ /** @type {?} */
1684
+ const parsedData = JSON.parse(checkTime);
1685
+ if (parsedData[key]) {
1598
1686
  /** @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}`;
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;
1605
1694
  }
1695
+ return localStorage.getItem(dataKey) ? false : true;
1606
1696
  }
1697
+ return true;
1607
1698
  }
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
- // }
1699
+ return true;
1617
1700
  }
1618
1701
  /**
1619
- * @param {?} contentId
1702
+ * @param {?} key
1620
1703
  * @return {?}
1621
1704
  */
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));
1705
+ getData(key) {
1706
+ return Observable.of(JSON.parse(localStorage.getItem(key) || '{}'));
1638
1707
  }
1639
1708
  /**
1640
- * @param {?} ids
1709
+ * @param {?} key
1641
1710
  * @return {?}
1642
1711
  */
1643
- fetchMultipleContent(ids) {
1644
- return this.http.get(`${API_END_POINTS.MULTIPLE_CONTENT}/${ids.join(',')}`);
1712
+ getSavedData(key) {
1713
+ return JSON.parse(localStorage.getItem(key) || '');
1645
1714
  }
1646
1715
  /**
1647
- * @param {?} type
1648
- * @param {?} id
1649
- * @param {?=} pageNumber
1650
- * @param {?=} pageSize
1716
+ * @param {?} key
1651
1717
  * @return {?}
1652
1718
  */
1653
- fetchCollectionHierarchy(type, id, pageNumber = 0, pageSize = 1) {
1654
- return this.http.get(`${API_END_POINTS.COLLECTION_HIERARCHY(type, id)}?pageNumber=${pageNumber}&pageSize=${pageSize}`);
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
+ }
1655
1734
  }
1656
1735
  /**
1736
+ * @param {?} key
1657
1737
  * @return {?}
1658
1738
  */
1659
- fetchBlendedCourse() {
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
+ }
1660
1750
  }
1661
1751
  /**
1662
- * @param {?} req
1752
+ * @param {?} userId
1663
1753
  * @return {?}
1664
1754
  */
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)));
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');
1673
1805
  }
1674
- // fetch individual batch
1675
1806
  /**
1676
- * @param {?} batchId
1807
+ * @param {?} enrollmentData
1808
+ * @param {?} enrolledCourseCount
1677
1809
  * @return {?}
1678
1810
  */
1679
- fetchCourseBatch(batchId) {
1680
- return this.http.get(`${API_END_POINTS.COURSE_BATCH}/${batchId}`);
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));
1681
1819
  }
1682
1820
  /**
1683
- * @param {?} identifier
1821
+ * @param {?} userId
1822
+ * @param {?} contentdata
1684
1823
  * @return {?}
1685
1824
  */
1686
- autoAssignBatchApi(identifier) {
1687
- return this.http.get(`${API_END_POINTS.AUTO_ASSIGN_BATCH}${identifier}`)
1688
- .pipe(retry(1), map((/**
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((/**
1689
1838
  * @param {?} data
1690
1839
  * @return {?}
1691
1840
  */
1692
- (data) => data.result.response)));
1841
+ (data) => data.result)));
1693
1842
  }
1694
1843
  /**
1695
- * @param {?} request
1696
- * @param {?} programType
1844
+ * @param {?} cbpContent
1697
1845
  * @return {?}
1698
1846
  */
1699
- autoAssignCuratedBatchApi(request, programType) {
1847
+ getCbpFormatedData(cbpContent) {
1700
1848
  /** @type {?} */
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
1849
+ let cbpContentData = [];
1850
+ /** @type {?} */
1851
+ let contentIds = [];
1852
+ /** @type {?} */
1853
+ const todayDate = dayjs().format('YYYY-MM-DD');
1854
+ cbpContent.forEach((/**
1855
+ * @param {?} c
1706
1856
  * @return {?}
1707
1857
  */
1708
- (data) => data.result.response)));
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 };
1709
1881
  }
1710
1882
  /**
1711
- * @param {?} req
1883
+ * @param {?} cbpContent
1884
+ * @param {?} enrollmentData
1712
1885
  * @return {?}
1713
1886
  */
1714
- enrollUserToBatch(req) {
1715
- return this.http
1716
- .post(API_END_POINTS.ENROLL_BATCH, req)
1717
- .toPromise();
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
+ });
1718
1989
  }
1719
1990
  /**
1720
- * @param {?} req
1721
- * @param {?} type
1991
+ * @param {?} courseData
1722
1992
  * @return {?}
1723
1993
  */
1724
- enrollAndUnenrollUserToBatchWF(req, type) {
1994
+ mapEnrollmentData(courseData) {
1725
1995
  /** @type {?} */
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();
1730
- }
1731
- /**
1732
- * @param {?} req
1733
- * @return {?}
1734
- */
1735
- fetchBlendedUserWF(req) {
1736
- return this.http
1737
- .post(API_END_POINTS.BLENDED_USER_WF, req)
1738
- .toPromise();
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;
1739
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;
1740
2023
  /**
1741
- * @param {?} req
1742
- * @return {?}
2024
+ * @type {?}
2025
+ * @private
1743
2026
  */
1744
- fetchBlendedUserCOUNT(req) {
1745
- return this.http
1746
- .post(API_END_POINTS.BLENDED_USER_COUNT, req)
1747
- .toPromise();
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();
1748
2117
  }
1749
2118
  /**
1750
- * @param {?} contentIds
2119
+ * @param {?} message
1751
2120
  * @return {?}
1752
2121
  */
1753
- fetchContentLikes(contentIds) {
1754
- return this.http
1755
- .post(API_END_POINTS.CONTENT_LIKES, contentIds)
1756
- .toPromise();
2122
+ changeTelemetryData(message) {
2123
+ this.telemetryData.next(message);
1757
2124
  }
1758
2125
  /**
1759
- * @param {?} contentIds
2126
+ * @param {?} primaryCategory
1760
2127
  * @return {?}
1761
2128
  */
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();
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;
1768
2140
  }
1769
2141
  /**
1770
- * @param {?} contentId
2142
+ * @param {?} identifier
1771
2143
  * @return {?}
1772
2144
  */
1773
- fetchContentHistory(contentId) {
1774
- return this.http.get(`${API_END_POINTS.CONTENT_HISTORY}/${contentId}`);
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();
1775
2154
  }
1776
2155
  /**
1777
- * @param {?} req
2156
+ * @param {?} data
1778
2157
  * @return {?}
1779
2158
  */
1780
- fetchContentHistoryV2(req) {
1781
- req.request.fields = ['progressdetails'];
1782
- /** @type {?} */
1783
- const data = this.http.post(`${API_END_POINTS.CONTENT_HISTORYV2}/${req.request.courseId}`, req);
1784
- data.subscribe((/**
1785
- * @param {?} subscribeData
1786
- * @return {?}
1787
- */
1788
- (subscribeData) => {
1789
- this.programChildCourseResumeData.next({ resumeData: subscribeData.result.contentList, courseId: req.request.courseId });
1790
- }));
1791
- return data;
2159
+ updateTocConfig(data) {
2160
+ this.tocConfigData.next(data);
1792
2161
  }
1793
2162
  /**
1794
- * @param {?} id
1795
- * @param {?=} collectionId
1796
- * @param {?=} collectionType
2163
+ * @param {?} contentId
2164
+ * @param {?=} hierarchyType
2165
+ * @param {?=} _additionalFields
2166
+ * @param {?=} primaryCategory
1797
2167
  * @return {?}
1798
2168
  */
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
- }));
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`;
1825
2192
  }
1826
2193
  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
- }));
2194
+ url = `/api/course/v1/hierarchy/${contentId}?hierarchyType=${hierarchyType}`;
1840
2195
  }
1841
- })));
1842
- });
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
+ // }
1843
2207
  }
1844
2208
  /**
1845
- * @param {?} content
2209
+ * @param {?} contentId
1846
2210
  * @return {?}
1847
2211
  */
1848
- saveContinueLearning(content) {
1849
- // const url = API_END_POINTS.USER_CONTINUE_LEARNING
1850
- // return this.http.post<any>(url, content)
1851
- if (content) {
2212
+ fetchAuthoringContent(contentId) {
2213
+ /** @type {?} */
2214
+ const forcreator = window.location.href.includes('editMode=true');
2215
+ /** @type {?} */
2216
+ let url = '';
2217
+ if (forcreator) {
2218
+ url = `apis/proxies/v8/action/content/v3/hierarchy/${contentId}?mode=edit`;
1852
2219
  }
1853
- return (/** @type {?} */ (of()));
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
2225
+ * @return {?}
2226
+ */
2227
+ r => r));
1854
2228
  }
1855
2229
  /**
1856
- * @param {?} _contentId
2230
+ * @param {?} ids
1857
2231
  * @return {?}
1858
2232
  */
1859
- setS3Cookie(_contentId) {
1860
- // return this.http
1861
- // .post(API_END_POINTS.SET_S3_COOKIE, { contentId })
2233
+ fetchMultipleContent(ids) {
2234
+ return this.http.get(`${API_END_POINTS$1.MULTIPLE_CONTENT}/${ids.join(',')}`);
2235
+ }
2236
+ /**
2237
+ * @param {?} type
2238
+ * @param {?} id
2239
+ * @param {?=} pageNumber
2240
+ * @param {?=} pageSize
2241
+ * @return {?}
2242
+ */
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}`);
2245
+ }
2246
+ /**
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
2436
+ * @return {?}
2437
+ */
2438
+ saveContinueLearning(content) {
2439
+ // const url = API_END_POINTS.USER_CONTINUE_LEARNING
2440
+ // return this.http.post<any>(url, content)
2441
+ if (content) {
2442
+ }
2443
+ return (/** @type {?} */ (of()));
2444
+ }
2445
+ /**
2446
+ * @param {?} _contentId
2447
+ * @return {?}
2448
+ */
2449
+ setS3Cookie(_contentId) {
2450
+ // return this.http
2451
+ // .post(API_END_POINTS.SET_S3_COOKIE, { contentId })
1862
2452
  // .pipe(catchError(_err => of(true)))
1863
2453
  return EMPTY;
1864
2454
  }
@@ -1866,7 +2456,7 @@ class WidgetContentService {
1866
2456
  * @return {?}
1867
2457
  */
1868
2458
  setS3ImageCookie() {
1869
- return this.http.post(API_END_POINTS.SET_S3_IMAGE_COOKIE, {}).pipe(catchError((/**
2459
+ return this.http.post(API_END_POINTS$1.SET_S3_IMAGE_COOKIE, {}).pipe(catchError((/**
1870
2460
  * @param {?} _err
1871
2461
  * @return {?}
1872
2462
  */
@@ -1877,14 +2467,14 @@ class WidgetContentService {
1877
2467
  * @return {?}
1878
2468
  */
1879
2469
  fetchManifest(url) {
1880
- return this.http.post(API_END_POINTS.FETCH_MANIFEST, { url });
2470
+ return this.http.post(API_END_POINTS$1.FETCH_MANIFEST, { url });
1881
2471
  }
1882
2472
  /**
1883
2473
  * @param {?} url
1884
2474
  * @return {?}
1885
2475
  */
1886
2476
  fetchWebModuleContent(url) {
1887
- return this.http.get(`${API_END_POINTS.FETCH_WEB_MODULE_FILES}?url=${encodeURIComponent(url)}`);
2477
+ return this.http.get(`${API_END_POINTS$1.FETCH_WEB_MODULE_FILES}?url=${encodeURIComponent(url)}`);
1888
2478
  }
1889
2479
  /**
1890
2480
  * @param {?} req
@@ -1892,7 +2482,7 @@ class WidgetContentService {
1892
2482
  */
1893
2483
  search(req) {
1894
2484
  req.query = req.query || '';
1895
- return this.http.post(API_END_POINTS.CONTENT_SEARCH_V5, {
2485
+ return this.http.post(API_END_POINTS$1.CONTENT_SEARCH_V5, {
1896
2486
  request: req,
1897
2487
  });
1898
2488
  }
@@ -1906,7 +2496,7 @@ class WidgetContentService {
1906
2496
  (req.preLabelValue || '') +
1907
2497
  ((this.configSvc.userProfile && this.configSvc.userProfile.country) || '');
1908
2498
  req.filters = Object.assign({}, req.filters, { labels: [req.preLabelValue || ''] });
1909
- return this.http.post(API_END_POINTS.CONTENT_SEARCH_REGION_RECOMMENDATION, { request: req });
2499
+ return this.http.post(API_END_POINTS$1.CONTENT_SEARCH_REGION_RECOMMENDATION, { request: req });
1910
2500
  }
1911
2501
  /**
1912
2502
  * @param {?} req
@@ -1919,28 +2509,28 @@ class WidgetContentService {
1919
2509
  if (apiPath) {
1920
2510
  return this.http.get(apiPath);
1921
2511
  }
1922
- return this.http.post(API_END_POINTS.CONTENT_SEARCH_V6, req);
2512
+ return this.http.post(API_END_POINTS$1.CONTENT_SEARCH_V6, req);
1923
2513
  }
1924
2514
  /**
1925
2515
  * @param {?} req
1926
2516
  * @return {?}
1927
2517
  */
1928
2518
  searchRelatedCBPV6(req) {
1929
- return this.http.post(API_END_POINTS.CONTENT_SEARCH_RELATED_CBP_V6, req);
2519
+ return this.http.post(API_END_POINTS$1.CONTENT_SEARCH_RELATED_CBP_V6, req);
1930
2520
  }
1931
2521
  /**
1932
2522
  * @param {?} contentId
1933
2523
  * @return {?}
1934
2524
  */
1935
2525
  fetchContentRating(contentId) {
1936
- return this.http.get(`${API_END_POINTS.CONTENT_RATING}/${contentId}`);
2526
+ return this.http.get(`${API_END_POINTS$1.CONTENT_RATING}/${contentId}`);
1937
2527
  }
1938
2528
  /**
1939
2529
  * @param {?} contentId
1940
2530
  * @return {?}
1941
2531
  */
1942
2532
  deleteContentRating(contentId) {
1943
- return this.http.delete(`${API_END_POINTS.CONTENT_RATING}/${contentId}`);
2533
+ return this.http.delete(`${API_END_POINTS$1.CONTENT_RATING}/${contentId}`);
1944
2534
  }
1945
2535
  /**
1946
2536
  * @param {?} contentId
@@ -1948,7 +2538,7 @@ class WidgetContentService {
1948
2538
  * @return {?}
1949
2539
  */
1950
2540
  addContentRating(contentId, data) {
1951
- return this.http.post(`${API_END_POINTS.CONTENT_RATING}/${contentId}`, data);
2541
+ return this.http.post(`${API_END_POINTS$1.CONTENT_RATING}/${contentId}`, data);
1952
2542
  }
1953
2543
  /**
1954
2544
  * @param {?} content
@@ -1990,7 +2580,7 @@ class WidgetContentService {
1990
2580
  * @return {?}
1991
2581
  */
1992
2582
  getRegistrationStatus(source) {
1993
- return this.http.get(`${API_END_POINTS.REGISTRATION_STATUS}/${source}`).toPromise();
2583
+ return this.http.get(`${API_END_POINTS$1.REGISTRATION_STATUS}/${source}`).toPromise();
1994
2584
  }
1995
2585
  /**
1996
2586
  * @param {?} url
@@ -2004,21 +2594,21 @@ class WidgetContentService {
2004
2594
  * @return {?}
2005
2595
  */
2006
2596
  addCertTemplate(body) {
2007
- return this.http.patch(`${API_END_POINTS.CERT_ADD_TEMPLATE}`, body);
2597
+ return this.http.patch(`${API_END_POINTS$1.CERT_ADD_TEMPLATE}`, body);
2008
2598
  }
2009
2599
  /**
2010
2600
  * @param {?} body
2011
2601
  * @return {?}
2012
2602
  */
2013
2603
  issueCert(body) {
2014
- return this.http.post(`${API_END_POINTS.CERT_ISSUE}`, body);
2604
+ return this.http.post(`${API_END_POINTS$1.CERT_ISSUE}`, body);
2015
2605
  }
2016
2606
  /**
2017
2607
  * @param {?} certId
2018
2608
  * @return {?}
2019
2609
  */
2020
2610
  downloadCert(certId) {
2021
- return this.http.get(`${API_END_POINTS.CERT_DOWNLOAD(certId)}`);
2611
+ return this.http.get(`${API_END_POINTS$1.CERT_DOWNLOAD(certId)}`);
2022
2612
  }
2023
2613
  /**
2024
2614
  * @param {?} req
@@ -2026,7 +2616,7 @@ class WidgetContentService {
2026
2616
  */
2027
2617
  trendingContentSearch(req) {
2028
2618
  req.query = req.query || '';
2029
- return this.http.post(API_END_POINTS.TRENDING_CONTENT_SEARCH, req);
2619
+ return this.http.post(API_END_POINTS$1.TRENDING_CONTENT_SEARCH, req);
2030
2620
  }
2031
2621
  /**
2032
2622
  * @param {?} limit
@@ -2034,7 +2624,7 @@ class WidgetContentService {
2034
2624
  * @return {?}
2035
2625
  */
2036
2626
  getKarmaPoitns(limit, offset) {
2037
- return this.http.post(API_END_POINTS.READ_KARMAPOINTS, { limit, offset }).pipe(catchError((/**
2627
+ return this.http.post(API_END_POINTS$1.READ_KARMAPOINTS, { limit, offset }).pipe(catchError((/**
2038
2628
  * @param {?} _err
2039
2629
  * @return {?}
2040
2630
  */
@@ -2050,7 +2640,7 @@ class WidgetContentService {
2050
2640
  /** @type {?} */
2051
2641
  const forPreview = window.location.href.includes('/public/') || window.location.href.includes('&preview=true');
2052
2642
  if (!forPreview) {
2053
- return this.http.get(API_END_POINTS.CONTENT_READ(contentId));
2643
+ return this.http.get(API_END_POINTS$1.CONTENT_READ(contentId));
2054
2644
  }
2055
2645
  url = `/api/content/v1/read/${contentId}`;
2056
2646
  return this.http.get(url);
@@ -2061,31 +2651,50 @@ class WidgetContentService {
2061
2651
  * @return {?}
2062
2652
  */
2063
2653
  getCourseKarmaPoints(request) {
2064
- return this.http.post(API_END_POINTS.READ_COURSE_KARMAPOINTS, request);
2654
+ return this.http.post(API_END_POINTS$1.READ_COURSE_KARMAPOINTS, request);
2065
2655
  }
2066
2656
  /**
2067
2657
  * @param {?} request
2068
2658
  * @return {?}
2069
2659
  */
2070
2660
  claimKarmapoints(request) {
2071
- return this.http.post(API_END_POINTS.CLAIM_KARMAPOINTS, request);
2661
+ return this.http.post(API_END_POINTS$1.CLAIM_KARMAPOINTS, request);
2072
2662
  }
2073
2663
  /**
2074
2664
  * @return {?}
2075
2665
  */
2076
2666
  userKarmaPoints() {
2077
- return this.http.post(API_END_POINTS.USER_KARMA_POINTS, {});
2667
+ return this.http.post(API_END_POINTS$1.USER_KARMA_POINTS, {});
2078
2668
  }
2079
2669
  /**
2080
2670
  * @param {?} doId
2081
2671
  * @return {?}
2082
2672
  */
2083
2673
  getEnrolledData(doId) {
2084
- /** @type {?} */
2085
- const enrollmentMapData = JSON.parse(localStorage.getItem('enrollmentMapData') || '{}');
2086
- /** @type {?} */
2087
- const enrolledCourseData = enrollmentMapData[doId];
2088
- return enrolledCourseData;
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
+ });
2089
2698
  }
2090
2699
  /**
2091
2700
  * @param {?} content
@@ -2094,8 +2703,10 @@ class WidgetContentService {
2094
2703
  getResourseLink(content) {
2095
2704
  return __awaiter(this, void 0, void 0, function* () {
2096
2705
  /** @type {?} */
2097
- const enrolledCourseData = this.getEnrolledData(content.identifier);
2098
- if (enrolledCourseData) {
2706
+ const enrolledCourse = yield this.getEnrolledData(content.identifier);
2707
+ if (enrolledCourse && enrolledCourse.length) {
2708
+ /** @type {?} */
2709
+ const enrolledCourseData = enrolledCourse[0];
2099
2710
  if (enrolledCourseData.content.courseCategory === NsContent.ECourseCategory.BLENDED_PROGRAM ||
2100
2711
  enrolledCourseData.content.courseCategory === NsContent.ECourseCategory.INVITE_ONLY_PROGRAM ||
2101
2712
  enrolledCourseData.content.courseCategory === NsContent.ECourseCategory.MODERATED_PROGRAM ||
@@ -2230,50 +2841,72 @@ class WidgetContentService {
2230
2841
  // req.query = req.query || '';
2231
2842
  return this.http.get(apiUrl);
2232
2843
  }
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
+ }
2233
2860
  }
2234
- WidgetContentService.decorators = [
2861
+ WidgetContentLibService.decorators = [
2235
2862
  { type: Injectable, args: [{
2236
2863
  providedIn: 'root',
2237
2864
  },] }
2238
2865
  ];
2239
2866
  /** @nocollapse */
2240
- WidgetContentService.ctorParameters = () => [
2867
+ WidgetContentLibService.ctorParameters = () => [
2241
2868
  { type: HttpClient },
2242
- { type: ConfigurationsService$1 }
2869
+ { type: ConfigurationsService$1 },
2870
+ { type: WidgetUserServiceLib }
2243
2871
  ];
2244
- /** @nocollapse */ WidgetContentService.ngInjectableDef = ɵɵdefineInjectable({ factory: function WidgetContentService_Factory() { return new WidgetContentService(ɵɵinject(HttpClient), ɵɵinject(ConfigurationsService$1)); }, token: WidgetContentService, providedIn: "root" });
2872
+ /** @nocollapse */ WidgetContentLibService.ngInjectableDef = ɵɵdefineInjectable({ factory: function WidgetContentLibService_Factory() { return new WidgetContentLibService(ɵɵinject(HttpClient), ɵɵinject(ConfigurationsService$1), ɵɵinject(WidgetUserServiceLib)); }, token: WidgetContentLibService, providedIn: "root" });
2245
2873
  if (false) {
2246
2874
  /** @type {?} */
2247
- WidgetContentService.prototype.tocConfigData;
2875
+ WidgetContentLibService.prototype.tocConfigData;
2248
2876
  /** @type {?} */
2249
- WidgetContentService.prototype.tocConfigData$;
2877
+ WidgetContentLibService.prototype.tocConfigData$;
2250
2878
  /**
2251
2879
  * @type {?}
2252
2880
  * @private
2253
2881
  */
2254
- WidgetContentService.prototype.telemetryData;
2882
+ WidgetContentLibService.prototype.telemetryData;
2255
2883
  /** @type {?} */
2256
- WidgetContentService.prototype.telemetryData$;
2884
+ WidgetContentLibService.prototype.telemetryData$;
2257
2885
  /** @type {?} */
2258
- WidgetContentService.prototype.currentMetaData;
2886
+ WidgetContentLibService.prototype.currentMetaData;
2259
2887
  /** @type {?} */
2260
- WidgetContentService.prototype.currentContentReadMetaData;
2888
+ WidgetContentLibService.prototype.currentContentReadMetaData;
2261
2889
  /** @type {?} */
2262
- WidgetContentService.prototype.currentBatchEnrollmentList;
2890
+ WidgetContentLibService.prototype.currentBatchEnrollmentList;
2263
2891
  /** @type {?} */
2264
- WidgetContentService.prototype.programChildCourseResumeData;
2892
+ WidgetContentLibService.prototype.programChildCourseResumeData;
2265
2893
  /** @type {?} */
2266
- WidgetContentService.prototype.programChildCourseResumeData$;
2894
+ WidgetContentLibService.prototype.programChildCourseResumeData$;
2895
+ /**
2896
+ * @type {?}
2897
+ * @private
2898
+ */
2899
+ WidgetContentLibService.prototype.http;
2267
2900
  /**
2268
2901
  * @type {?}
2269
2902
  * @private
2270
2903
  */
2271
- WidgetContentService.prototype.http;
2904
+ WidgetContentLibService.prototype.configSvc;
2272
2905
  /**
2273
2906
  * @type {?}
2274
2907
  * @private
2275
2908
  */
2276
- WidgetContentService.prototype.configSvc;
2909
+ WidgetContentLibService.prototype.userSvc;
2277
2910
  }
2278
2911
 
2279
2912
  /**
@@ -2586,696 +3219,156 @@ class MultilingualTranslationsService {
2586
3219
  nlabel = nlabel && nlabel.replace(/\s/g, '');
2587
3220
  if (subtype) {
2588
3221
  // tslint:disable-next-line: prefer-template
2589
- /** @type {?} */
2590
- const translationKey = type + '.' + nlabel + subtype;
2591
- return this.translate.instant(translationKey);
2592
- }
2593
- // tslint:disable-next-line: prefer-template
2594
- /** @type {?} */
2595
- const translationKeyn = type + '.' + nlabel;
2596
- return this.translate.instant(translationKeyn);
2597
- }
2598
- /**
2599
- * @param {?} label
2600
- * @param {?} type
2601
- * @param {?} subtype
2602
- * @return {?}
2603
- */
2604
- translateLabel(label, type, subtype) {
2605
- if (label) {
2606
- /** @type {?} */
2607
- let nlabel = label;
2608
- nlabel = nlabel && nlabel.toLowerCase();
2609
- /** @type {?} */
2610
- const sl = nlabel.split(' ');
2611
- sl.forEach((/**
2612
- * @param {?} w
2613
- * @param {?} index
2614
- * @return {?}
2615
- */
2616
- (w, index) => {
2617
- if (index !== 0) {
2618
- sl[index] = w[0].toUpperCase() + w.slice(1);
2619
- }
2620
- }));
2621
- nlabel = sl.join('');
2622
- nlabel = nlabel.replace(/\s/g, '');
2623
- if (subtype) {
2624
- // tslint:disable-next-line: prefer-template
2625
- /** @type {?} */
2626
- const translationKey = type + '.' + nlabel + subtype;
2627
- return this.translate.instant(translationKey);
2628
- }
2629
- // tslint:disable-next-line: prefer-template
2630
- /** @type {?} */
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));
3056
- }
3057
- }
3058
- /**
3059
- * @param {?} key
3060
- * @return {?}
3061
- */
3062
- resetTime(key) {
3063
- /** @type {?} */
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));
3071
- }
3222
+ /** @type {?} */
3223
+ const translationKey = type + '.' + nlabel + subtype;
3224
+ return this.translate.instant(translationKey);
3072
3225
  }
3226
+ // tslint:disable-next-line: prefer-template
3227
+ /** @type {?} */
3228
+ const translationKeyn = type + '.' + nlabel;
3229
+ return this.translate.instant(translationKeyn);
3073
3230
  }
3074
3231
  /**
3232
+ * @param {?} label
3233
+ * @param {?} type
3234
+ * @param {?} subtype
3075
3235
  * @return {?}
3076
3236
  */
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')) {
3237
+ translateLabel(label, type, subtype) {
3238
+ if (label) {
3091
3239
  /** @type {?} */
3092
- const result = this.http.get(API_END_POINTS$1.FETCH_CPB_PLANS).pipe(catchError(this.handleError), map((/**
3093
- * @param {?} data
3240
+ let nlabel = label;
3241
+ nlabel = nlabel && nlabel.toLowerCase();
3242
+ /** @type {?} */
3243
+ const sl = nlabel.split(' ');
3244
+ sl.forEach((/**
3245
+ * @param {?} w
3246
+ * @param {?} index
3094
3247
  * @return {?}
3095
3248
  */
3096
- (data) => __awaiter(this, void 0, void 0, function* () {
3097
- return yield this.mapData(data.result);
3098
- }))));
3099
- this.setTime('cbpService');
3100
- return result;
3249
+ (w, index) => {
3250
+ if (index !== 0) {
3251
+ sl[index] = w[0].toUpperCase() + w.slice(1);
3252
+ }
3253
+ }));
3254
+ nlabel = sl.join('');
3255
+ nlabel = nlabel.replace(/\s/g, '');
3256
+ if (subtype) {
3257
+ // tslint:disable-next-line: prefer-template
3258
+ /** @type {?} */
3259
+ const translationKey = type + '.' + nlabel + subtype;
3260
+ return this.translate.instant(translationKey);
3261
+ }
3262
+ // tslint:disable-next-line: prefer-template
3263
+ /** @type {?} */
3264
+ const translationKeyn = type + '.' + nlabel;
3265
+ return this.translate.instant(translationKeyn);
3101
3266
  }
3102
- return this.getData('cbpData');
3267
+ return label;
3103
3268
  }
3104
3269
  /**
3105
- * @param {?} data
3270
+ * @param {?} label
3271
+ * @param {?} type
3272
+ * @param {?} subtype
3106
3273
  * @return {?}
3107
3274
  */
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;
3275
+ translateActualLabel(label, type, subtype) {
3276
+ /** @type {?} */
3277
+ let nlabel = label;
3278
+ /** @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);
3221
3288
  }
3222
- localStorage.setItem('cbpData', JSON.stringify([]));
3223
- return [];
3224
- });
3289
+ }));
3290
+ nlabel = sl.join('');
3291
+ nlabel = nlabel.replace(/\s/g, '');
3292
+ if (subtype) {
3293
+ // tslint:disable-next-line: prefer-template
3294
+ /** @type {?} */
3295
+ const translationKey = type + '.' + nlabel + subtype;
3296
+ return this.translate.instant(translationKey);
3297
+ }
3298
+ // tslint:disable-next-line: prefer-template
3299
+ /** @type {?} */
3300
+ const translationKeyn = type + '.' + nlabel;
3301
+ return this.translate.instant(translationKeyn);
3225
3302
  }
3226
3303
  /**
3227
- * @param {?} courseData
3304
+ * @param {?} data
3228
3305
  * @return {?}
3229
3306
  */
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
- }));
3241
- }
3242
- localStorage.removeItem('enrollmentMapData');
3243
- localStorage.setItem('enrollmentMapData', JSON.stringify(enrollData));
3307
+ editProfileDetailsAPI(data) {
3308
+ return this.http.post(this.editProfileDetails, data);
3244
3309
  }
3245
3310
  /**
3246
- * @param {?} enrollmentData
3247
- * @param {?} enrolledCourseCount
3311
+ * @param {?} state
3312
+ * @param {?} lang
3313
+ * @param {?} userid
3248
3314
  * @return {?}
3249
3315
  */
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));
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();
3333
+ }
3258
3334
  }
3259
3335
  }
3260
- WidgetUserService.decorators = [
3336
+ MultilingualTranslationsService.decorators = [
3261
3337
  { type: Injectable, args: [{
3262
3338
  providedIn: 'root',
3263
3339
  },] }
3264
3340
  ];
3265
3341
  /** @nocollapse */
3266
- WidgetUserService.ctorParameters = () => [
3267
- { type: undefined, decorators: [{ type: Inject, args: ['environment',] }] },
3268
- { type: HttpClient }
3342
+ MultilingualTranslationsService.ctorParameters = () => [
3343
+ { type: TranslateService },
3344
+ { type: HttpClient },
3345
+ { type: ConfigurationsService }
3269
3346
  ];
3270
- /** @nocollapse */ WidgetUserService.ngInjectableDef = ɵɵdefineInjectable({ factory: function WidgetUserService_Factory() { return new WidgetUserService(ɵɵinject("environment"), ɵɵinject(HttpClient)); }, token: WidgetUserService, providedIn: "root" });
3347
+ /** @nocollapse */ MultilingualTranslationsService.ngInjectableDef = ɵɵdefineInjectable({ factory: function MultilingualTranslationsService_Factory() { return new MultilingualTranslationsService(ɵɵinject(TranslateService), ɵɵinject(HttpClient), ɵɵinject(ConfigurationsService)); }, token: MultilingualTranslationsService, providedIn: "root" });
3271
3348
  if (false) {
3272
3349
  /** @type {?} */
3273
- WidgetUserService.prototype.environment;
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;
3274
3367
  /**
3275
3368
  * @type {?}
3276
3369
  * @private
3277
3370
  */
3278
- WidgetUserService.prototype.http;
3371
+ MultilingualTranslationsService.prototype.configSvc;
3279
3372
  }
3280
3373
 
3281
3374
  /**
@@ -3749,9 +3842,6 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
3749
3842
  this.fetchAllPlaylistSearch(strip, calculateParentStatus);
3750
3843
  this.fetchPlaylistReadData(strip, calculateParentStatus);
3751
3844
  this.fetchCiosContentData(strip, calculateParentStatus);
3752
- // this.enrollInterval = setInterval(() => {
3753
- // this.fetchAllCbpPlans(strip, calculateParentStatus)
3754
- // }, 1000)
3755
3845
  }
3756
3846
  /**
3757
3847
  * @param {?} strip
@@ -4010,13 +4100,41 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
4010
4100
  // console.log('calling after-- ')
4011
4101
  if (response.results.result.content) {
4012
4102
  if (strip.key === 'scheduledAssessment') {
4013
- this.enrollInterval = setInterval((/**
4103
+ /** @type {?} */
4104
+ let result = response.results.result.content.map((/**
4105
+ * @param {?} a
4106
+ * @return {?}
4107
+ */
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
4014
4132
  * @return {?}
4015
4133
  */
4016
- () => {
4017
- this.checkInvitOnlyAssessments(response.results.result.content, strip, calculateParentStatus, response.viewMoreUrl);
4018
- // tslint:disable-next-line
4019
- }), 1000);
4134
+ (_err) => {
4135
+ return {};
4136
+ }));
4137
+ this.checkInvitOnlyAssessments(response.results.result.content, strip, calculateParentStatus, response.viewMoreUrl, responseData);
4020
4138
  }
4021
4139
  else {
4022
4140
  this.processStrip(strip, this.transformContentsToWidgets(response.results.result.content, strip), 'done', calculateParentStatus, response.viewMoreUrl);
@@ -4046,11 +4164,12 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
4046
4164
  * @param {?} strip
4047
4165
  * @param {?} calculateParentStatus
4048
4166
  * @param {?} viewMoreUrl
4167
+ * @param {?} enrollmentData
4049
4168
  * @return {?}
4050
4169
  */
4051
- checkInvitOnlyAssessments(content, strip, calculateParentStatus, viewMoreUrl) {
4052
- if (localStorage.getItem('enrollmentMapData')) {
4053
- this.enrollmentMapData = JSON.parse(localStorage.getItem('enrollmentMapData') || '{}');
4170
+ checkInvitOnlyAssessments(content, strip, calculateParentStatus, viewMoreUrl, enrollmentData) {
4171
+ if (Object.keys(enrollmentData).length) {
4172
+ enrollmentData = enrollmentData;
4054
4173
  /** @type {?} */
4055
4174
  let filteredArray = [];
4056
4175
  /** @type {?} */
@@ -4060,10 +4179,10 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
4060
4179
  * @return {?}
4061
4180
  */
4062
4181
  (data) => {
4063
- if (this.enrollmentMapData[data.identifier]) {
4064
- if (this.enrollmentMapData[data.identifier].status !== 2 && this.enrollmentMapData[data.identifier].batch) {
4182
+ if (enrollmentData[data.identifier]) {
4183
+ if (enrollmentData[data.identifier].status !== 2 && enrollmentData[data.identifier].batch) {
4065
4184
  /** @type {?} */
4066
- const enrollData = this.enrollmentMapData[data.identifier].batch;
4185
+ const enrollData = enrollmentData[data.identifier].batch;
4067
4186
  /** @type {?} */
4068
4187
  let endDate = new Date(enrollData.endDate).getTime()
4069
4188
  // let endDate:any = '2024-07-7T00:00:00.000Z'
@@ -4072,8 +4191,8 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
4072
4191
  /** @type {?} */
4073
4192
  let timeDuration = endDate - now;
4074
4193
  if (timeDuration > 0) {
4075
- data['batch'] = this.enrollmentMapData[data.identifier].batch;
4076
- data['completionPercentage'] = this.enrollmentMapData[data.identifier].completionPercentage;
4194
+ data['batch'] = enrollmentData[data.identifier].batch;
4195
+ data['completionPercentage'] = enrollmentData[data.identifier].completionPercentage;
4077
4196
  filteredArray.push(data);
4078
4197
  }
4079
4198
  }
@@ -4092,7 +4211,9 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
4092
4211
  return dateA - dateB;
4093
4212
  }));
4094
4213
  this.processStrip(strip, this.transformContentsToWidgets(filteredArray, strip), 'done', calculateParentStatus, viewMoreUrl);
4095
- clearInterval(this.enrollInterval);
4214
+ }
4215
+ else {
4216
+ this.processStrip(strip, [], 'done', calculateParentStatus, viewMoreUrl);
4096
4217
  }
4097
4218
  }
4098
4219
  /**
@@ -4705,7 +4826,9 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
4705
4826
  /** @type {?} */
4706
4827
  let tabResults = [];
4707
4828
  /** @type {?} */
4708
- const response = yield this.userSvc.fetchCbpPlanList().toPromise();
4829
+ let userId = this.configSvc.userProfile.userId;
4830
+ /** @type {?} */
4831
+ const response = yield this.userSvc.fetchCbpPlanList(userId).toPromise();
4709
4832
  if (response) {
4710
4833
  courses = response;
4711
4834
  if (strip.tabs && strip.tabs.length) {
@@ -4716,33 +4839,6 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
4716
4839
  this.processStrip(strip, this.transformContentsToWidgets(courses, strip), 'done', calculateParentStatus, 'viewMoreUrl');
4717
4840
  }
4718
4841
  }
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);
4746
4842
  }
4747
4843
  });
4748
4844
  }
@@ -5708,13 +5804,13 @@ ContentStripWithTabsLibComponent.decorators = [
5708
5804
  /** @nocollapse */
5709
5805
  ContentStripWithTabsLibComponent.ctorParameters = () => [
5710
5806
  { type: undefined, decorators: [{ type: Inject, args: ['environment',] }] },
5711
- { type: WidgetContentService },
5807
+ { type: WidgetContentLibService },
5712
5808
  { type: LoggerService },
5713
5809
  { type: EventService },
5714
5810
  { type: ConfigurationsService$1 },
5715
5811
  { type: UtilityService },
5716
5812
  { type: Router },
5717
- { type: WidgetUserService },
5813
+ { type: WidgetUserServiceLib },
5718
5814
  { type: TranslateService },
5719
5815
  { type: MultilingualTranslationsService }
5720
5816
  ];
@@ -5776,11 +5872,7 @@ if (false) {
5776
5872
  /** @type {?} */
5777
5873
  ContentStripWithTabsLibComponent.prototype.defaultMaxWidgets;
5778
5874
  /** @type {?} */
5779
- ContentStripWithTabsLibComponent.prototype.enrollInterval;
5780
- /** @type {?} */
5781
5875
  ContentStripWithTabsLibComponent.prototype.todaysEvents;
5782
- /** @type {?} */
5783
- ContentStripWithTabsLibComponent.prototype.enrollmentMapData;
5784
5876
  /**
5785
5877
  * @type {?}
5786
5878
  * @private
@@ -7702,12 +7794,12 @@ CommonStripComponent.decorators = [
7702
7794
  /** @nocollapse */
7703
7795
  CommonStripComponent.ctorParameters = () => [
7704
7796
  { type: undefined, decorators: [{ type: Inject, args: ['environment',] }] },
7705
- { type: WidgetContentService },
7797
+ { type: WidgetContentLibService },
7706
7798
  { type: LoggerService },
7707
7799
  { type: EventService },
7708
7800
  { type: ConfigurationsService$1 },
7709
7801
  { type: UtilityService },
7710
- { type: WidgetUserService },
7802
+ { type: WidgetUserServiceLib },
7711
7803
  { type: TranslateService },
7712
7804
  { type: MultilingualTranslationsService },
7713
7805
  { type: CommonMethodsService }
@@ -8807,13 +8899,6 @@ class CardsComponent extends WidgetBaseComponent {
8807
8899
  () => {
8808
8900
  this.getCbPlanData();
8809
8901
  }), 1000);
8810
- this.enrollInterval = setInterval((/**
8811
- * @return {?}
8812
- */
8813
- () => {
8814
- this.getEnrollmentData();
8815
- // tslint:disable-next-line
8816
- }), 1000);
8817
8902
  }
8818
8903
  /**
8819
8904
  * @return {?}
@@ -8876,15 +8961,6 @@ class CardsComponent extends WidgetBaseComponent {
8876
8961
  clearInterval(this.cbPlanInterval);
8877
8962
  }
8878
8963
  }
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
- }
8888
8964
  /**
8889
8965
  * @param {?} data
8890
8966
  * @return {?}
@@ -8896,14 +8972,14 @@ class CardsComponent extends WidgetBaseComponent {
8896
8972
  CardsComponent.decorators = [
8897
8973
  { type: Component, args: [{
8898
8974
  selector: 'sb-uic-cards',
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",
8975
+ 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",
8900
8976
  styles: [""]
8901
8977
  }] }
8902
8978
  ];
8903
8979
  /** @nocollapse */
8904
8980
  CardsComponent.ctorParameters = () => [
8905
8981
  { type: UtilityService },
8906
- { type: WidgetContentService },
8982
+ { type: WidgetContentLibService },
8907
8983
  { type: Router }
8908
8984
  ];
8909
8985
  CardsComponent.propDecorators = {
@@ -8921,10 +8997,6 @@ if (false) {
8921
8997
  CardsComponent.prototype.cbPlanMapData;
8922
8998
  /** @type {?} */
8923
8999
  CardsComponent.prototype.cbPlanInterval;
8924
- /** @type {?} */
8925
- CardsComponent.prototype.enrollInterval;
8926
- /** @type {?} */
8927
- CardsComponent.prototype.enrollmentMapData;
8928
9000
  /**
8929
9001
  * @type {?}
8930
9002
  * @private
@@ -9061,7 +9133,7 @@ CardPortraitComponent.ctorParameters = () => [
9061
9133
  { type: TranslateService },
9062
9134
  { type: MultilingualTranslationsService },
9063
9135
  { type: ConfigurationsService$1 },
9064
- { type: WidgetContentService }
9136
+ { type: WidgetContentLibService }
9065
9137
  ];
9066
9138
  CardPortraitComponent.propDecorators = {
9067
9139
  widgetData: [{ type: Input }],
@@ -10080,7 +10152,7 @@ CardMDOChannelComponent.ctorParameters = () => [
10080
10152
  { type: TranslateService },
10081
10153
  { type: MultilingualTranslationsService$1 },
10082
10154
  { type: ConfigurationsService$1 },
10083
- { type: WidgetContentService },
10155
+ { type: WidgetContentLibService },
10084
10156
  { type: Router }
10085
10157
  ];
10086
10158
  CardMDOChannelComponent.propDecorators = {
@@ -10413,7 +10485,7 @@ CardKarmaProgramsComponent.ctorParameters = () => [
10413
10485
  { type: TranslateService },
10414
10486
  { type: MultilingualTranslationsService$1 },
10415
10487
  { type: ConfigurationsService$1 },
10416
- { type: WidgetContentService },
10488
+ { type: WidgetContentLibService },
10417
10489
  { type: Router }
10418
10490
  ];
10419
10491
  CardKarmaProgramsComponent.propDecorators = {
@@ -10809,7 +10881,7 @@ CardPortraitExtComponent.ctorParameters = () => [
10809
10881
  { type: TranslateService },
10810
10882
  { type: MultilingualTranslationsService },
10811
10883
  { type: ConfigurationsService$1 },
10812
- { type: WidgetContentService }
10884
+ { type: WidgetContentLibService }
10813
10885
  ];
10814
10886
  CardPortraitExtComponent.propDecorators = {
10815
10887
  widgetData: [{ type: Input }],
@@ -10984,11 +11056,10 @@ CardAssessmentComponent.decorators = [
10984
11056
  /** @nocollapse */
10985
11057
  CardAssessmentComponent.ctorParameters = () => [
10986
11058
  { type: ConfigurationsService$1 },
10987
- { type: WidgetContentService }
11059
+ { type: WidgetContentLibService }
10988
11060
  ];
10989
11061
  CardAssessmentComponent.propDecorators = {
10990
11062
  widgetData: [{ type: Input }],
10991
- enrollmentMapData: [{ type: Input }],
10992
11063
  contentData: [{ type: Output }],
10993
11064
  isCardLoading: [{ type: Input }]
10994
11065
  };
@@ -10996,8 +11067,6 @@ if (false) {
10996
11067
  /** @type {?} */
10997
11068
  CardAssessmentComponent.prototype.widgetData;
10998
11069
  /** @type {?} */
10999
- CardAssessmentComponent.prototype.enrollmentMapData;
11000
- /** @type {?} */
11001
11070
  CardAssessmentComponent.prototype.contentData;
11002
11071
  /** @type {?} */
11003
11072
  CardAssessmentComponent.prototype.isCardLoading;
@@ -11484,7 +11553,7 @@ CardProgressPortraitLibComponent.ctorParameters = () => [
11484
11553
  { type: EventService },
11485
11554
  { type: MultilingualTranslationsService },
11486
11555
  { type: ConfigurationsService$1 },
11487
- { type: WidgetContentService },
11556
+ { type: WidgetContentLibService },
11488
11557
  { type: CertificateService },
11489
11558
  { type: MatDialog }
11490
11559
  ];
@@ -11804,7 +11873,7 @@ CardMdoChannelV1Component.ctorParameters = () => [
11804
11873
  { type: TranslateService },
11805
11874
  { type: MultilingualTranslationsService$1 },
11806
11875
  { type: ConfigurationsService$1 },
11807
- { type: WidgetContentService },
11876
+ { type: WidgetContentLibService },
11808
11877
  { type: Router }
11809
11878
  ];
11810
11879
  CardMdoChannelV1Component.propDecorators = {
@@ -13441,13 +13510,13 @@ ContentStripFacetFilterComponent.decorators = [
13441
13510
  /** @nocollapse */
13442
13511
  ContentStripFacetFilterComponent.ctorParameters = () => [
13443
13512
  { type: undefined, decorators: [{ type: Inject, args: ['environment',] }] },
13444
- { type: WidgetContentService },
13513
+ { type: WidgetContentLibService },
13445
13514
  { type: LoggerService },
13446
13515
  { type: EventService },
13447
13516
  { type: ConfigurationsService$1 },
13448
13517
  { type: UtilityService },
13449
13518
  { type: Router },
13450
- { type: WidgetUserService },
13519
+ { type: WidgetUserServiceLib },
13451
13520
  { type: TranslateService },
13452
13521
  { type: MultilingualTranslationsService },
13453
13522
  { type: FormBuilder }
@@ -13514,8 +13583,6 @@ if (false) {
13514
13583
  /** @type {?} */
13515
13584
  ContentStripFacetFilterComponent.prototype.todaysEvents;
13516
13585
  /** @type {?} */
13517
- ContentStripFacetFilterComponent.prototype.enrollmentMapData;
13518
- /** @type {?} */
13519
13586
  ContentStripFacetFilterComponent.prototype.facetForm;
13520
13587
  /**
13521
13588
  * @type {?}
@@ -14827,7 +14894,9 @@ class ContentStripWithTabsPillsComponent extends WidgetBaseComponent {
14827
14894
  /** @type {?} */
14828
14895
  let tabResults = [];
14829
14896
  /** @type {?} */
14830
- const response = yield this.userSvc.fetchCbpPlanList().toPromise();
14897
+ let userId = this.configSvc.userProfile.userId;
14898
+ /** @type {?} */
14899
+ const response = yield this.userSvc.fetchCbpPlanList(userId).toPromise();
14831
14900
  if (response) {
14832
14901
  courses = response;
14833
14902
  if (strip.tabs && strip.tabs.length) {
@@ -14862,6 +14931,9 @@ class ContentStripWithTabsPillsComponent extends WidgetBaseComponent {
14862
14931
  this.processStrip(strip, this.transformContentsToWidgets(courses, strip), 'done', calculateParentStatus, 'viewMoreUrl');
14863
14932
  }
14864
14933
  }
14934
+ else {
14935
+ this.processStrip(strip, this.transformContentsToWidgets(courses, strip), 'done', calculateParentStatus, '', tabResults);
14936
+ }
14865
14937
  clearInterval(this.enrollInterval);
14866
14938
  }
14867
14939
  });
@@ -15047,13 +15119,13 @@ ContentStripWithTabsPillsComponent.decorators = [
15047
15119
  /** @nocollapse */
15048
15120
  ContentStripWithTabsPillsComponent.ctorParameters = () => [
15049
15121
  { type: undefined, decorators: [{ type: Inject, args: ['environment',] }] },
15050
- { type: WidgetContentService },
15122
+ { type: WidgetContentLibService },
15051
15123
  { type: LoggerService },
15052
15124
  { type: EventService },
15053
15125
  { type: ConfigurationsService$1 },
15054
15126
  { type: UtilityService },
15055
15127
  { type: Router },
15056
- { type: WidgetUserService },
15128
+ { type: WidgetUserServiceLib },
15057
15129
  { type: TranslateService },
15058
15130
  { type: MultilingualTranslationsService }
15059
15131
  ];
@@ -15118,8 +15190,6 @@ if (false) {
15118
15190
  ContentStripWithTabsPillsComponent.prototype.enrollInterval;
15119
15191
  /** @type {?} */
15120
15192
  ContentStripWithTabsPillsComponent.prototype.todaysEvents;
15121
- /** @type {?} */
15122
- ContentStripWithTabsPillsComponent.prototype.enrollmentMapData;
15123
15193
  /**
15124
15194
  * @type {?}
15125
15195
  * @private
@@ -15842,7 +15912,7 @@ CompetencyPassbookComponent.decorators = [
15842
15912
  /** @nocollapse */
15843
15913
  CompetencyPassbookComponent.ctorParameters = () => [
15844
15914
  { type: ConfigurationsService$1 },
15845
- { type: WidgetContentService },
15915
+ { type: WidgetContentLibService },
15846
15916
  { type: CompetencyPassbookService },
15847
15917
  { type: Router },
15848
15918
  { type: undefined, decorators: [{ type: Inject, args: ['environment',] }] }
@@ -16329,7 +16399,7 @@ CompetencyPassbookMdoComponent.decorators = [
16329
16399
  /** @nocollapse */
16330
16400
  CompetencyPassbookMdoComponent.ctorParameters = () => [
16331
16401
  { type: ConfigurationsService$1 },
16332
- { type: WidgetContentService },
16402
+ { type: WidgetContentLibService },
16333
16403
  { type: CompetencyPassbookMdoService },
16334
16404
  { type: Router },
16335
16405
  { type: undefined, decorators: [{ type: Inject, args: ['environment',] }] }
@@ -17008,7 +17078,7 @@ class MdoChannelV2Component {
17008
17078
  MdoChannelV2Component.decorators = [
17009
17079
  { type: Component, args: [{
17010
17080
  selector: 'sb-uic-mdo-channel-v2',
17011
- template: "<ws-widget-btn-page-back [widgetData]=\"{ url: 'home', titles: titles }\">\n</ws-widget-btn-page-back>\n\n<div class=\"container-fluid\" id=\"section-micro-sites\">\n <div class=\"flex flex-col flex-1\">\n <ng-container *ngIf=\"sectionList?.length\">\n <ng-container *ngFor=\"let section of sectionList\">\n <ng-container *ngIf=\"section?.enabled\">\n <section id=\"{{section?.key}}\" class=\"w-full grid grid-cols-12 gap-4\" [ngClass]=\"{'container': section.wrapperClass}\">\n <ng-container *ngFor=\"let column of section.column\">\n <div id=\"{{column?.key}}\" class=\"col-span-{{column.colspan || 12}} \">\n <ng-container *ngIf=\"column?.enabled\" [ngSwitch]=\"column?.key\">\n <ng-container *ngSwitchCase=\"'topSection'\" [ngTemplateOutlet]=\"topSection\"\n [ngTemplateOutletContext]=\"{data: column?.data}\"></ng-container>\n <ng-container *ngSwitchCase=\"'topLearners'\" [ngTemplateOutlet]=\"topLearners\"\n [ngTemplateOutletContext]=\"{data: column?.data}\"></ng-container>\n <ng-container *ngSwitchCase=\"'mainContent'\" [ngTemplateOutlet]=\"mainContent\"\n [ngTemplateOutletContext]=\"{data: column?.data}\"></ng-container>\n </ng-container>\n </div>\n </ng-container>\n </section>\n </ng-container>\n </ng-container>\n </ng-container>\n </div>\n</div>\n\n\n<ng-template #topSection let-data=\"data\">\n <!-- top section desktop layout -->\n <div class=\"hidden md:block\">\n <div class=\"web-banner-background\">\n <div class=\"flex items-center justify-center\">\n <div class=\"container\">\n <div class=\"flex sticky-logo-square\" [style.width]=\"stripWidth\">\n </div>\n <div class=\"grid grid-cols-12 gap-4 padding-top-xxxl mb-10\">\n <div class=\"col-span-12 md:col-span-6\">\n <div class=\"flex-1 flex flex-col mr-4 ws-mat-black-text\">\n <div class=\"\">\n <div class=\"flex items-center logo-square \">\n <img alt=\"Application Logo\" class=\"logo-img\" [src]=\"data?.logo\">\n </div>\n <h1 class=\" txt-ellipsis-2 break-words pt-10\"\n [style.color]=\"data.titleColor\">{{data.title || channnelName}}</h1>\n <p class=\"mat-body-1\" [style.color]=\"data.descriptionColor\">\n {{data?.description | slice:0:descriptionMaxLength}}\n <span *ngIf=\"data?.description?.length > descriptionMaxLength\">...</span>\n </p>\n </div>\n </div>\n </div>\n <div class=\"col-span-12 md:col-span-6\">\n <div class=\"slider slider-box\" *ngIf=\"data.sliderData && data.sliderData.sliders\">\n <sb-uic-sliders [widgetData]=\"data.sliderData.sliders\" [styleData]=\"data.sliderData.styleData\" ></sb-uic-sliders>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n \n </div>\n <!-- top section m-site layout -->\n <div class=\"block md:hidden\">\n <div class=\"col-span-12\">\n <div class=\"slider slider-box\" *ngIf=\"data.sliderData && data.sliderData.sliders\">\n <sb-uic-sliders [widgetData]=\"data.sliderData.sliders\" [styleData]=\"data.sliderData.styleData\" ></sb-uic-sliders>\n </div>\n </div>\n <div class=\"container px-4 flex flex-col mob-container\">\n <div class=\"mr-4 logo-box-container\">\n <div class=\"flex logo-box-square top mr-4\">\n <img alt=\"Application Logo\" class=\"logo-img\" [src]=\"data?.logo\">\n </div>\n </div>\n <div class=\"w-full md:w-9/12 flex-1 flex flex-col\">\n <h1 class=\" txt-ellipsis-2 break-words\">{{data?.title || channnelName}}</h1>\n <p class=\"mat-body-2\">\n {{data?.description | slice:0:descriptionMaxLength}}\n <span *ngIf=\"data?.description?.length > descriptionMaxLength\">...</span>\n </p>\n </div>\n </div>\n </div>\n <div class=\"flex items-center justify-center\">\n <div class=\"container metrics-section\" >\n <div class=\"hidden md:block\">\n <div class=\"metrics\"\n [ngStyle]=\"{'background': data?.metrics?.background}\">\n <sb-uic-data-points\n [providerId]=\"orgId\"\n [fetchDataFromApi]=\"true\"\n [objectData]=\"data?.metrics?.data\"\n [layoutType]=\"'singleFlexeRow'\"\n [pageLayout]=\"'mdo'\">\n </sb-uic-data-points>\n </div>\n </div>\n <div class=\"block md:hidden pt-14 px-4\">\n <div class=\"mob-metrics mob-metrics-sec\">\n <sb-uic-data-points\n [providerId]=\"orgId\"\n [fetchDataFromApi]=\"true\"\n [objectData]=\"data?.metrics?.data\"\n [layoutType]=\"'singleRow'\"\n [pageLayout]=\"'mdo'\">\n </sb-uic-data-points>\n </div>\n \n </div>\n </div>\n </div>\n</ng-template>\n\n<ng-template #mainContent let-data=\"data\">\n <div class=\"flex items-center justify-center\" [ngStyle]=\"{'background': data.background}\">\n <div class=\"container\">\n <div class=\"block md:hidden col-span-12 padding-left-m padding-right-m padding-top-m padding-bottom-m\">\n <sb-uic-cbp-plan\n [layoutType]=\"'web'\"\n [mobileHeight]=\"false\"\n [fetchDataFromApi]=\"true\"\n [channelId]=\"orgId\"\n [objectData]=\"data?.cbpPlanSection?.data\">\n </sb-uic-cbp-plan>\n </div>\n <div class=\"block md:hidden col-span-12 mt-6\">\n <sb-uic-announcements\n [layoutType]=\"'mobile'\"\n (openDialog)=\"triggerOpenDialog($event)\"\n [objectData]=\"data?.announcementSection?.data\"\n [fetchDataFromApi]=\"false\"\n [channelId]=\"orgId\">\n </sb-uic-announcements>\n <div class=\"announcements-container\" *ngIf=\"showModal\">\n <div class=\"cursor-pointer close-share-dialog\">\n <mat-icon (click)=\"onClose()\" class=\"close-icon\">close</mat-icon>\n </div>\n <div class=\"share-modal px-3 pt-8\">\n <sb-uic-announcements\n [layoutType]=\"'web'\"\n (openDialog)=\"triggerOpenDialog($event)\"\n [objectData]=\"data?.announcementSection?.data\"\n [mobileHeight]=\"true\"\n [fetchDataFromApi]=\"true\"\n [channelId]=\"orgId\">\n </sb-uic-announcements>\n </div>\n </div>\n </div>\n <div class=\"grid grid-cols-12 gap-4 padding-top-m mb-6\">\n <div class=\"col-span-12 md:col-span-{{data.tabSection.colspan}}\">\n <!-- Tabs Section -->\n <mat-tab-group animationDuration=\"0ms\" class=\"mat-tab-labels mytabs w-full \"\n [selectedIndex]=\"selectedIndex\" (selectedTabChange)=\"selectedIndex = $event.index; tabClicked($event)\">\n <mat-tab label=\"Content\" >\n <ng-template mat-tab-label i18n>\n Learn\n </ng-template>\n <ng-container *ngIf=\"data.tabSection.contentTab.length === contentTabEmptyResponseCount\">\n <div class=\"flex justify-center w-full\">\n <div class=\"margin-xl text-center\" >\n <img src=\"/assets/common/error-pages/empty_search.svg\" wsUtilsImageResponsive alt=\"No results\"\n class=\"margin-top-l margin-bottom-s\">\n <h2 class=\"mat-h2\" i18n=\"search route no result\">{{'learnsearch.noResults' | translate}}</h2>\n </div>\n </div>\n </ng-container>\n <div class=\"padding-top-l \">\n <ng-container [ngTemplateOutlet]=\"columnSectionDisplay\"\n [ngTemplateOutletContext]=\"{data: data.tabSection.contentTab}\"></ng-container>\n </div>\n </mat-tab>\n <mat-tab label=\"Core Areas\">\n <ng-template mat-tab-label i18n>\n Competency\n </ng-template>\n <div>\n <ng-container [ngTemplateOutlet]=\"columnSectionDisplay\"\n [ngTemplateOutletContext]=\"{data: data.tabSection.coreAreasTab}\"></ng-container>\n </div>\n </mat-tab>\n </mat-tab-group>\n </div>\n <div class=\"col-span-12 md:col-span-4\">\n <div class=\"hidden md:block padding-top-xl padding-bottom-m\"\n *ngIf=\"data?.cbpPlanSection?.data\">\n <div class=\"pt-4\">\n <sb-uic-cbp-plan\n [layoutType]=\"'web'\"\n [mobileHeight]=\"false\"\n [fetchDataFromApi]=\"true\"\n [channelId]=\"orgId\"\n [objectData]=\"data?.cbpPlanSection?.data\">\n </sb-uic-cbp-plan>\n </div> \n </div>\n <div class=\"hidden md:block\" \n *ngIf=\"data?.announcementSection?.data\">\n <div class=\"pt-4\">\n <sb-uic-announcements\n [layoutType]=\"'web'\"\n [mobileHeight]=\"false\"\n [fetchDataFromApi]=\"true\"\n [channelId]=\"orgId\"\n [objectData]=\"data?.announcementSection?.data\">\n </sb-uic-announcements>\n </div> \n </div>\n </div> \n </div>\n </div>\n </div>\n</ng-template>\n<!-- \n<ng-template #announcement let-data=\"data\">\n <div class=\"flex items-center justify-center\" [ngStyle]=\"{'background': data.background}\">\n <div class=\"w-full\">\n Announcement Section -->\n <!-- <h1>Announcement</h1>\n </div>\n </div>\n</ng-template> -->\n\n\n<ng-template #columnSectionDisplay let-data=\"data\">\n <ng-container *ngIf=\"data?.length\">\n <ng-container *ngFor=\"let section of data\">\n <ng-container *ngIf=\"section?.enabled\">\n <section id=\"{{section?.key}}\" class=\"w-full grid grid-cols-12 gap-4\" [ngClass]=\"{'container': section.wrapperClass}\">\n <ng-container *ngFor=\"let column of section.column\">\n <div id=\"{{column?.key}}\" class=\"col-span-{{column.colspan || 12}} \">\n <ng-container *ngIf=\"column?.enabled\" [ngSwitch]=\"column?.key\">\n <ng-container *ngSwitchCase=\"'competency'\" [ngTemplateOutlet]=\"competency\"\n [ngTemplateOutletContext]=\"{competency: column}\"></ng-container>\n <ng-container *ngSwitchCase=\"'contentRecommendedProgramStrip'\" [ngTemplateOutlet]=\"contentStripTemplate\"\n [ngTemplateOutletContext]=\"{\n data: {contentStrip: column?.data, sectionKey: section.key}\n }\"></ng-container>\n <ng-container *ngSwitchCase=\"'contentRecommendedCoursesStrip'\" [ngTemplateOutlet]=\"contentStripTemplate\"\n [ngTemplateOutletContext]=\"{\n data: {contentStrip: column?.data, sectionKey: section.key}\n }\"></ng-container>\n <ng-container *ngSwitchCase=\"'contentFeaturedStrip'\" [ngTemplateOutlet]=\"contentStripTemplate\"\n [ngTemplateOutletContext]=\"{\n data: {contentStrip: column?.data, sectionKey: section.key}\n }\"></ng-container>\n <ng-container *ngSwitchCase=\"'contentcertificationsOfWeekStrip'\" [ngTemplateOutlet]=\"contentStripTemplate\"\n [ngTemplateOutletContext]=\"{\n data: {contentStrip: column?.data, sectionKey: section.key}\n }\"></ng-container>\n </ng-container>\n </div>\n </ng-container>\n </section>\n </ng-container>\n </ng-container>\n </ng-container>\n</ng-template>\n\n\n<!-- Start Competencies -->\n<ng-template #competency let-competency=\"competency\">\n <div class=\"padding-top-l padding-bottom-l relative\" [style.background]=\"competency?.background\" *ngIf=\"!hideCompetencyBlock;else noData\">\n <div class=\"w-full container-balanced\">\n <p class=\"mat-body-1 pl-5 pr-4 md:pl-0 md:pr-0\">This section shows the list of top competencies users in this MDO are learning, based on the courses they've completed and enrolled in.</p>\n <div class=\"pl-4 pr-4 md:pl-0 md:pr-0\">\n <sb-uic-competency-passbook-mdo\n [dynamicColor]=\"'#999999'\"\n [dynamicAlignPills]=\"'start'\"\n [cardDisplayCount]=\"2\"\n (emptyResponse)=\"hideCompetency($event)\"\n (temeletryResponse)=\"raiseCompetencyTelemetry($event)\"\n [objectData]=\"competency\"\n [providerId]=\"orgId\"\n >\n </sb-uic-competency-passbook-mdo>\n </div>\n </div>\n <!-- <img class=\"absolute comp-back-img\" src=\"assets/icons/microsite/competency.svg\" alt=\"\"> -->\n </div>\n</ng-template>\n<!-- End Competencies -->\n{{contentTabEmptyResponseCount}}hiiii\n<ng-template #contentStripTemplate let-data=\"data\">\n <ng-container *ngIf=\"!data?.contentStrip?.hideSection\">\n <div class=\"flex mb-8\">\n <div class=\"w-full\">\n <sb-uic-content-strip-with-tabs\n [emitViewAll]=\"true\"\n (viewAllResponse)=\"showAllContent($event, data)\"\n (telemtryResponse)=\"raiseTelemetryInteratEvent($event)\"\n (emptyResponse)=\"hideContentStrip($event, data)\"\n [providerId]=\"orgId\"\n [widgetData]=\"data?.contentStrip\"\n [channnelName]=\"channnelName\"\n >\n </sb-uic-content-strip-with-tabs>\n </div>\n </div>\n </ng-container>\n</ng-template>\n\n<ng-template #noData>\n <div class=\"flex justify-center w-full\">\n <div class=\"margin-xl text-center\" >\n <img src=\"/assets/common/error-pages/empty_search.svg\" wsUtilsImageResponsive alt=\"No results\"\n class=\"margin-top-l margin-bottom-s\">\n <h2 class=\"mat-h2\" i18n=\"search route no result\">{{'learnsearch.noResults' | translate}}</h2>\n </div>\n </div>\n</ng-template>\n\n<ng-template #topLearners let-data=\"data\">\n <div class=\"flex items-center justify-center\">\n <div class=\"container top-learners margin-bottom-l margin-top-l\">\n <sb-uic-top-learners\n [objectData]=\"data\"\n [channnelName]=\"channnelName\"\n [channelId]=\"orgId\">\n </sb-uic-top-learners>\n </div>\n </div>\n</ng-template>",
17081
+ template: "<ws-widget-btn-page-back [widgetData]=\"{ url: 'home', titles: titles }\">\n</ws-widget-btn-page-back>\n\n<div class=\"container-fluid\" id=\"section-micro-sites\">\n <div class=\"flex flex-col flex-1\">\n <ng-container *ngIf=\"sectionList?.length\">\n <ng-container *ngFor=\"let section of sectionList\">\n <ng-container *ngIf=\"section?.enabled\">\n <section id=\"{{section?.key}}\" class=\"w-full grid grid-cols-12 gap-4\" [ngClass]=\"{'container': section.wrapperClass}\">\n <ng-container *ngFor=\"let column of section.column\">\n <div id=\"{{column?.key}}\" class=\"col-span-{{column.colspan || 12}} \">\n <ng-container *ngIf=\"column?.enabled\" [ngSwitch]=\"column?.key\">\n <ng-container *ngSwitchCase=\"'topSection'\" [ngTemplateOutlet]=\"topSection\"\n [ngTemplateOutletContext]=\"{data: column?.data}\"></ng-container>\n <ng-container *ngSwitchCase=\"'topLearners'\" [ngTemplateOutlet]=\"topLearners\"\n [ngTemplateOutletContext]=\"{data: column?.data}\"></ng-container>\n <ng-container *ngSwitchCase=\"'mainContent'\" [ngTemplateOutlet]=\"mainContent\"\n [ngTemplateOutletContext]=\"{data: column?.data}\"></ng-container>\n </ng-container>\n </div>\n </ng-container>\n </section>\n </ng-container>\n </ng-container>\n </ng-container>\n </div>\n</div>\n\n\n<ng-template #topSection let-data=\"data\">\n <!-- top section desktop layout -->\n <div class=\"hidden md:block\">\n <div class=\"web-banner-background\">\n <div class=\"flex items-center justify-center\">\n <div class=\"container\">\n <div class=\"flex sticky-logo-square\" [style.width]=\"stripWidth\">\n </div>\n <div class=\"grid grid-cols-12 gap-4 padding-top-xxxl mb-10\">\n <div class=\"col-span-12 md:col-span-6\">\n <div class=\"flex-1 flex flex-col mr-4 ws-mat-black-text\">\n <div class=\"\">\n <div class=\"flex items-center logo-square \">\n <img alt=\"Application Logo\" class=\"logo-img\" [src]=\"data?.logo\">\n </div>\n <h1 class=\" txt-ellipsis-2 break-words pt-10\"\n [style.color]=\"data.titleColor\">{{data.title || channnelName}}</h1>\n <p class=\"mat-body-1\" [style.color]=\"data.descriptionColor\">\n {{data?.description | slice:0:descriptionMaxLength}}\n <span *ngIf=\"data?.description?.length > descriptionMaxLength\">...</span>\n </p>\n </div>\n </div>\n </div>\n <div class=\"col-span-12 md:col-span-6\">\n <div class=\"slider slider-box\" *ngIf=\"data.sliderData && data.sliderData.sliders\">\n <sb-uic-sliders [widgetData]=\"data.sliderData.sliders\" [styleData]=\"data.sliderData.styleData\" ></sb-uic-sliders>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n \n </div>\n <!-- top section m-site layout -->\n <div class=\"block md:hidden\">\n <div class=\"col-span-12\">\n <div class=\"slider slider-box\" *ngIf=\"data.sliderData && data.sliderData.sliders\">\n <sb-uic-sliders [widgetData]=\"data.sliderData.sliders\" [styleData]=\"data.sliderData.styleData\" ></sb-uic-sliders>\n </div>\n </div>\n <div class=\"container px-4 flex flex-col mob-container\">\n <div class=\"mr-4 logo-box-container\">\n <div class=\"flex logo-box-square top mr-4\">\n <img alt=\"Application Logo\" class=\"logo-img\" [src]=\"data?.logo\">\n </div>\n </div>\n <div class=\"w-full md:w-9/12 flex-1 flex flex-col\">\n <h1 class=\" txt-ellipsis-2 break-words\">{{data?.title || channnelName}}</h1>\n <p class=\"mat-body-2\">\n {{data?.description | slice:0:descriptionMaxLength}}\n <span *ngIf=\"data?.description?.length > descriptionMaxLength\">...</span>\n </p>\n </div>\n </div>\n </div>\n <div class=\"flex items-center justify-center\">\n <div class=\"container metrics-section\" >\n <div class=\"hidden md:block\">\n <div class=\"metrics\"\n [ngStyle]=\"{'background': data?.metrics?.background}\">\n <sb-uic-data-points\n [providerId]=\"orgId\"\n [fetchDataFromApi]=\"true\"\n [objectData]=\"data?.metrics?.data\"\n [layoutType]=\"'singleFlexeRow'\"\n [pageLayout]=\"'mdo'\">\n </sb-uic-data-points>\n </div>\n </div>\n <div class=\"block md:hidden pt-14 px-4\">\n <div class=\"mob-metrics mob-metrics-sec\">\n <sb-uic-data-points\n [providerId]=\"orgId\"\n [fetchDataFromApi]=\"true\"\n [objectData]=\"data?.metrics?.data\"\n [layoutType]=\"'singleRow'\"\n [pageLayout]=\"'mdo'\">\n </sb-uic-data-points>\n </div>\n \n </div>\n </div>\n </div>\n</ng-template>\n\n<ng-template #mainContent let-data=\"data\">\n <div class=\"flex items-center justify-center\" [ngStyle]=\"{'background': data.background}\">\n <div class=\"container\">\n <div class=\"block md:hidden col-span-12 padding-left-m padding-right-m padding-top-m padding-bottom-m\">\n <sb-uic-cbp-plan\n [layoutType]=\"'web'\"\n [mobileHeight]=\"false\"\n [fetchDataFromApi]=\"true\"\n [channelId]=\"orgId\"\n [objectData]=\"data?.cbpPlanSection?.data\">\n </sb-uic-cbp-plan>\n </div>\n <div class=\"block md:hidden col-span-12 mt-6\">\n <sb-uic-announcements\n [layoutType]=\"'mobile'\"\n (openDialog)=\"triggerOpenDialog($event)\"\n [objectData]=\"data?.announcementSection?.data\"\n [fetchDataFromApi]=\"false\"\n [channelId]=\"orgId\">\n </sb-uic-announcements>\n <div class=\"announcements-container\" *ngIf=\"showModal\">\n <div class=\"cursor-pointer close-share-dialog\">\n <mat-icon (click)=\"onClose()\" class=\"close-icon\">close</mat-icon>\n </div>\n <div class=\"share-modal px-3 pt-8\">\n <sb-uic-announcements\n [layoutType]=\"'web'\"\n (openDialog)=\"triggerOpenDialog($event)\"\n [objectData]=\"data?.announcementSection?.data\"\n [mobileHeight]=\"true\"\n [fetchDataFromApi]=\"true\"\n [channelId]=\"orgId\">\n </sb-uic-announcements>\n </div>\n </div>\n </div>\n <div class=\"grid grid-cols-12 gap-4 padding-top-m mb-6\">\n <div class=\"col-span-12 md:col-span-{{data.tabSection.colspan}}\">\n <!-- Tabs Section -->\n <mat-tab-group animationDuration=\"0ms\" class=\"mat-tab-labels mytabs w-full \"\n [selectedIndex]=\"selectedIndex\" (selectedTabChange)=\"selectedIndex = $event.index; tabClicked($event)\">\n <mat-tab label=\"Content\" >\n <ng-template mat-tab-label i18n>\n Learn\n </ng-template>\n <ng-container *ngIf=\"data.tabSection.contentTab.length === contentTabEmptyResponseCount\">\n <div class=\"flex justify-center w-full\">\n <div class=\"margin-xl text-center\" >\n <img src=\"/assets/common/error-pages/empty_search.svg\" wsUtilsImageResponsive alt=\"No results\"\n class=\"margin-top-l margin-bottom-s\">\n <h2 class=\"mat-h2\" i18n=\"search route no result\">{{'learnsearch.noResults' | translate}}</h2>\n </div>\n </div>\n </ng-container>\n <div class=\"padding-top-l \">\n <ng-container [ngTemplateOutlet]=\"columnSectionDisplay\"\n [ngTemplateOutletContext]=\"{data: data.tabSection.contentTab}\"></ng-container>\n </div>\n </mat-tab>\n <mat-tab label=\"Core Areas\">\n <ng-template mat-tab-label i18n>\n Competency\n </ng-template>\n <div>\n <ng-container [ngTemplateOutlet]=\"columnSectionDisplay\"\n [ngTemplateOutletContext]=\"{data: data.tabSection.coreAreasTab}\"></ng-container>\n </div>\n </mat-tab>\n </mat-tab-group>\n </div>\n <div class=\"col-span-12 md:col-span-4\">\n <div class=\"hidden md:block padding-top-xl padding-bottom-m\"\n *ngIf=\"data?.cbpPlanSection?.data\">\n <div class=\"pt-4\">\n <sb-uic-cbp-plan\n [layoutType]=\"'web'\"\n [mobileHeight]=\"false\"\n [fetchDataFromApi]=\"true\"\n [channelId]=\"orgId\"\n [objectData]=\"data?.cbpPlanSection?.data\">\n </sb-uic-cbp-plan>\n </div> \n </div>\n <div class=\"hidden md:block\" \n *ngIf=\"data?.announcementSection?.data\">\n <div class=\"pt-4\">\n <sb-uic-announcements\n [layoutType]=\"'web'\"\n [mobileHeight]=\"false\"\n [fetchDataFromApi]=\"true\"\n [channelId]=\"orgId\"\n [objectData]=\"data?.announcementSection?.data\">\n </sb-uic-announcements>\n </div> \n </div>\n </div> \n </div>\n </div>\n </div>\n</ng-template>\n<!-- \n<ng-template #announcement let-data=\"data\">\n <div class=\"flex items-center justify-center\" [ngStyle]=\"{'background': data.background}\">\n <div class=\"w-full\">\n Announcement Section -->\n <!-- <h1>Announcement</h1>\n </div>\n </div>\n</ng-template> -->\n\n\n<ng-template #columnSectionDisplay let-data=\"data\">\n <ng-container *ngIf=\"data?.length\">\n <ng-container *ngFor=\"let section of data\">\n <ng-container *ngIf=\"section?.enabled\">\n <section id=\"{{section?.key}}\" class=\"w-full grid grid-cols-12 gap-4\" [ngClass]=\"{'container': section.wrapperClass}\">\n <ng-container *ngFor=\"let column of section.column\">\n <div id=\"{{column?.key}}\" class=\"col-span-{{column.colspan || 12}} \">\n <ng-container *ngIf=\"column?.enabled\" [ngSwitch]=\"column?.key\">\n <ng-container *ngSwitchCase=\"'competency'\" [ngTemplateOutlet]=\"competency\"\n [ngTemplateOutletContext]=\"{competency: column}\"></ng-container>\n <ng-container *ngSwitchCase=\"'contentRecommendedProgramStrip'\" [ngTemplateOutlet]=\"contentStripTemplate\"\n [ngTemplateOutletContext]=\"{\n data: {contentStrip: column?.data, sectionKey: section.key}\n }\"></ng-container>\n <ng-container *ngSwitchCase=\"'contentRecommendedCoursesStrip'\" [ngTemplateOutlet]=\"contentStripTemplate\"\n [ngTemplateOutletContext]=\"{\n data: {contentStrip: column?.data, sectionKey: section.key}\n }\"></ng-container>\n <ng-container *ngSwitchCase=\"'contentFeaturedStrip'\" [ngTemplateOutlet]=\"contentStripTemplate\"\n [ngTemplateOutletContext]=\"{\n data: {contentStrip: column?.data, sectionKey: section.key}\n }\"></ng-container>\n <ng-container *ngSwitchCase=\"'contentcertificationsOfWeekStrip'\" [ngTemplateOutlet]=\"contentStripTemplate\"\n [ngTemplateOutletContext]=\"{\n data: {contentStrip: column?.data, sectionKey: section.key}\n }\"></ng-container>\n </ng-container>\n </div>\n </ng-container>\n </section>\n </ng-container>\n </ng-container>\n </ng-container>\n</ng-template>\n\n\n<!-- Start Competencies -->\n<ng-template #competency let-competency=\"competency\">\n <div class=\"padding-top-l padding-bottom-l relative\" [style.background]=\"competency?.background\" *ngIf=\"!hideCompetencyBlock;else noData\">\n <div class=\"w-full container-balanced\">\n <p class=\"mat-body-1 pl-5 pr-4 md:pl-0 md:pr-0\">This section shows the list of top competencies users in this MDO are learning, based on the courses they've completed and enrolled in.</p>\n <div class=\"pl-4 pr-4 md:pl-0 md:pr-0\">\n <sb-uic-competency-passbook-mdo\n [dynamicColor]=\"'#999999'\"\n [dynamicAlignPills]=\"'start'\"\n [cardDisplayCount]=\"2\"\n (emptyResponse)=\"hideCompetency($event)\"\n (temeletryResponse)=\"raiseCompetencyTelemetry($event)\"\n [objectData]=\"competency\"\n [providerId]=\"orgId\"\n >\n </sb-uic-competency-passbook-mdo>\n </div>\n </div>\n <!-- <img class=\"absolute comp-back-img\" src=\"assets/icons/microsite/competency.svg\" alt=\"\"> -->\n </div>\n</ng-template>\n<!-- End Competencies -->\n<ng-template #contentStripTemplate let-data=\"data\">\n <ng-container *ngIf=\"!data?.contentStrip?.hideSection\">\n <div class=\"flex mb-8\">\n <div class=\"w-full\">\n <sb-uic-content-strip-with-tabs\n [emitViewAll]=\"true\"\n (viewAllResponse)=\"showAllContent($event, data)\"\n (telemtryResponse)=\"raiseTelemetryInteratEvent($event)\"\n (emptyResponse)=\"hideContentStrip($event, data)\"\n [providerId]=\"orgId\"\n [widgetData]=\"data?.contentStrip\"\n [channnelName]=\"channnelName\"\n >\n </sb-uic-content-strip-with-tabs>\n </div>\n </div>\n </ng-container>\n</ng-template>\n\n<ng-template #noData>\n <div class=\"flex justify-center w-full\">\n <div class=\"margin-xl text-center\" >\n <img src=\"/assets/common/error-pages/empty_search.svg\" wsUtilsImageResponsive alt=\"No results\"\n class=\"margin-top-l margin-bottom-s\">\n <h2 class=\"mat-h2\" i18n=\"search route no result\">{{'learnsearch.noResults' | translate}}</h2>\n </div>\n </div>\n</ng-template>\n\n<ng-template #topLearners let-data=\"data\">\n <div class=\"flex items-center justify-center\">\n <div class=\"container top-learners margin-bottom-l margin-top-l\">\n <sb-uic-top-learners\n [objectData]=\"data\"\n [channnelName]=\"channnelName\"\n [channelId]=\"orgId\">\n </sb-uic-top-learners>\n </div>\n </div>\n</ng-template>",
17012
17082
  styles: [".container-balanced{max-width:1202px;margin-left:auto!important;margin-right:auto!important}.container{max-width:1200px}.padding-top-xxxl{padding-top:47px}.banner-container{align-items:center;background:#eee;padding:16px;gap:2.5rem;justify-content:center}.web-banner-background{background-image:url(/assets/icons/microsite/MDO-channel-banner.png);background-size:cover;min-height:464px}.mob-container{background-image:url(/assets/icons/microsite/MDOChannel_RightGraphic.svg);background-position:right;background-repeat:no-repeat}.sticky-logo-square{position:absolute;top:215px;justify-content:end;border-bottom-right-radius:12px;border-top-right-radius:12px;background:#fff;display:flex;padding:10px;justify-content:end;height:53px;left:0}.logo-square{width:112px;max-height:73px;border-radius:12px;background:#fff;display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}.logo-box-container{width:157px;position:relative;height:64px}.logo-box-square{height:99px;width:157px;background:#fff;border-radius:12px;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px 0 rgba(0,0,0,.06)}.logo-box-square .logo-img{max-width:122px}.logo-box-square.top{position:absolute;top:-54px}.logo-img{-o-object-fit:contain;object-fit:contain;max-height:52px;height:96px;z-index:10}.metrics{border:3px solid #fff;border-radius:10px;align-items:center}.mob-metrics{overflow:auto}.metrics-section{margin-top:-30px}.empty-div{height:15px}.mob-metrics-sec{padding-top:1rem}.announcements-container{position:fixed;height:calc(100vh - 67px);background:rgba(19,19,19,.6392156863);width:100vw;top:0;left:0;z-index:1000}.close-announcements-dialog{position:absolute;right:30px;top:30px}.close-icon{color:#fff;border-radius:15px;float:right;position:absolute;top:15px;right:15px}@media screen and (max-width:768px){::ng-deep.recommendedProgram .mat-tab-header{padding-left:20px}::ng-deep.featuredCourses .mat-tab-header{padding-left:20px}.metrics-section{margin-top:0}.top-learners{padding-left:30px}}::ng-deep .mytabs .mat-tab-label.mat-tab-label-active.cdk-keyboard-focused:not(.mat-tab-disabled),::ng-deep .mytabs .mat-tab-label.mat-tab-label-active:not(.mat-tab-disabled){font-weight:700;color:#000;opacity:1}"]
17013
17083
  }] }
17014
17084
  ];
@@ -18371,7 +18441,6 @@ class UserProgressComponent {
18371
18441
  * @return {?}
18372
18442
  */
18373
18443
  getUserProgress() {
18374
- debugger;
18375
18444
  this.insightSvc.fetchUserProgress().subscribe((/**
18376
18445
  * @param {?} res
18377
18446
  * @return {?}
@@ -18586,5 +18655,5 @@ NationalLearningModule.decorators = [
18586
18655
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
18587
18656
  */
18588
18657
 
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 };
18658
+ 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 };
18590
18659
  //# sourceMappingURL=sunbird-cb-consumption.js.map