@sunbird-cb/consumption 0.0.89 → 0.0.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/bundles/sunbird-cb-consumption.umd.js +1265 -1349
  2. package/bundles/sunbird-cb-consumption.umd.js.map +1 -1
  3. package/bundles/sunbird-cb-consumption.umd.min.js +2 -2
  4. package/bundles/sunbird-cb-consumption.umd.min.js.map +1 -1
  5. package/esm2015/lib/_common/cards/card-assessment/card-assessment/card-assessment.component.js +7 -4
  6. package/esm2015/lib/_common/cards/card-karma-programs/card-karma-programs.component.js +3 -3
  7. package/esm2015/lib/_common/cards/card-mdo-channel/card-mdo-channel.component.js +3 -3
  8. package/esm2015/lib/_common/cards/card-mdo-channel-v1/card-mdo-channel-v1.component.js +3 -3
  9. package/esm2015/lib/_common/cards/card-portrait/card-portrait.component.js +3 -3
  10. package/esm2015/lib/_common/cards/card-portrait-ext/card-portrait-ext.component.js +3 -3
  11. package/esm2015/lib/_common/cards/card-progress-portrait-lib/card-progress-portrait-lib.component.js +3 -3
  12. package/esm2015/lib/_common/cards/cards.component.js +24 -4
  13. package/esm2015/lib/_common/common-strip/common-strip.component.js +5 -5
  14. package/esm2015/lib/_common/competency-passbook/competency-passbook.component.js +3 -3
  15. package/esm2015/lib/_common/competency-passbook-mdo/competency-passbook-mdo.component.js +3 -3
  16. package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +54 -50
  17. package/esm2015/lib/_common/microsites/national-learning-week/national-learning/national-learning.component.js +12 -4
  18. package/esm2015/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.component.js +19 -18
  19. package/esm2015/lib/_common/strips/content-strip-with-tabs-pills/content-strip-with-tabs-pills.component.js +8 -8
  20. package/esm2015/lib/_common/user-progress/user-progress.component.js +2 -1
  21. package/esm2015/lib/_services/widget-content.service.js +852 -0
  22. package/esm2015/lib/_services/widget-user.service.js +475 -0
  23. package/esm2015/public-api.js +2 -3
  24. package/esm2015/sunbird-cb-consumption.js +78 -77
  25. package/esm5/lib/_common/cards/card-assessment/card-assessment/card-assessment.component.js +7 -4
  26. package/esm5/lib/_common/cards/card-karma-programs/card-karma-programs.component.js +3 -3
  27. package/esm5/lib/_common/cards/card-mdo-channel/card-mdo-channel.component.js +3 -3
  28. package/esm5/lib/_common/cards/card-mdo-channel-v1/card-mdo-channel-v1.component.js +3 -3
  29. package/esm5/lib/_common/cards/card-portrait/card-portrait.component.js +3 -3
  30. package/esm5/lib/_common/cards/card-portrait-ext/card-portrait-ext.component.js +3 -3
  31. package/esm5/lib/_common/cards/card-progress-portrait-lib/card-progress-portrait-lib.component.js +3 -3
  32. package/esm5/lib/_common/cards/cards.component.js +27 -4
  33. package/esm5/lib/_common/common-strip/common-strip.component.js +5 -5
  34. package/esm5/lib/_common/competency-passbook/competency-passbook.component.js +3 -3
  35. package/esm5/lib/_common/competency-passbook-mdo/competency-passbook-mdo.component.js +3 -3
  36. package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +87 -83
  37. package/esm5/lib/_common/microsites/national-learning-week/national-learning/national-learning.component.js +12 -4
  38. package/esm5/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.component.js +19 -19
  39. package/esm5/lib/_common/strips/content-strip-with-tabs-pills/content-strip-with-tabs-pills.component.js +9 -8
  40. package/esm5/lib/_common/user-progress/user-progress.component.js +2 -1
  41. package/esm5/lib/_services/widget-content.service.js +1109 -0
  42. package/esm5/lib/_services/widget-user.service.js +542 -0
  43. package/esm5/public-api.js +2 -3
  44. package/esm5/sunbird-cb-consumption.js +78 -77
  45. package/fesm2015/sunbird-cb-consumption.js +1059 -1115
  46. package/fesm2015/sunbird-cb-consumption.js.map +1 -1
  47. package/fesm5/sunbird-cb-consumption.js +1322 -1406
  48. package/fesm5/sunbird-cb-consumption.js.map +1 -1
  49. package/lib/_common/cards/card-assessment/card-assessment/card-assessment.component.d.ts +3 -2
  50. package/lib/_common/cards/card-karma-programs/card-karma-programs.component.d.ts +2 -2
  51. package/lib/_common/cards/card-mdo-channel/card-mdo-channel.component.d.ts +2 -2
  52. package/lib/_common/cards/card-mdo-channel-v1/card-mdo-channel-v1.component.d.ts +2 -2
  53. package/lib/_common/cards/card-portrait/card-portrait.component.d.ts +2 -2
  54. package/lib/_common/cards/card-portrait-ext/card-portrait-ext.component.d.ts +2 -2
  55. package/lib/_common/cards/card-progress-portrait-lib/card-progress-portrait-lib.component.d.ts +2 -2
  56. package/lib/_common/cards/cards.component.d.ts +5 -2
  57. package/lib/_common/common-strip/common-strip.component.d.ts +3 -3
  58. package/lib/_common/competency-passbook/competency-passbook.component.d.ts +3 -3
  59. package/lib/_common/competency-passbook-mdo/competency-passbook-mdo.component.d.ts +3 -3
  60. package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.d.ts +6 -4
  61. package/lib/_common/strips/content-strip-facet-filter/content-strip-facet-filter.component.d.ts +5 -4
  62. package/lib/_common/strips/content-strip-with-tabs-pills/content-strip-with-tabs-pills.component.d.ts +4 -3
  63. package/lib/_services/{widget-content-lib.service.d.ts → widget-content.service.d.ts} +3 -6
  64. package/lib/_services/{widget-user-lib.service.d.ts → widget-user.service.d.ts} +4 -9
  65. package/package.json +1 -1
  66. package/public-api.d.ts +1 -2
  67. package/sunbird-cb-consumption.d.ts +76 -75
  68. package/sunbird-cb-consumption.metadata.json +1 -1
  69. package/esm2015/lib/_services/widget-content-lib.service.js +0 -899
  70. package/esm2015/lib/_services/widget-user-lib.service.js +0 -523
  71. package/esm5/lib/_services/widget-content-lib.service.js +0 -1170
  72. package/esm5/lib/_services/widget-user-lib.service.js +0 -607
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('rxjs'), require('rxjs/operators'), require('@sunbird-cb/utils-v2'), require('@angular/material'), require('@sunbird-cb/resolver-v2'), require('@angular/common/http'), require('lodash'), require('rxjs/add/observable/of'), require('dayjs'), require('moment'), require('@ngx-translate/core'), require('@ngx-translate/http-loader'), require('@angular/cdk/layout'), require('@angular/platform-browser'), require('hammerjs'), require('@angular/forms'), require('jspdf')) :
3
- typeof define === 'function' && define.amd ? define('@sunbird-cb/consumption', ['exports', '@angular/core', '@angular/common', '@angular/router', 'rxjs', 'rxjs/operators', '@sunbird-cb/utils-v2', '@angular/material', '@sunbird-cb/resolver-v2', '@angular/common/http', 'lodash', 'rxjs/add/observable/of', 'dayjs', 'moment', '@ngx-translate/core', '@ngx-translate/http-loader', '@angular/cdk/layout', '@angular/platform-browser', 'hammerjs', '@angular/forms', 'jspdf'], factory) :
4
- (global = global || self, factory((global['sunbird-cb'] = global['sunbird-cb'] || {}, global['sunbird-cb'].consumption = {}), global.ng.core, global.ng.common, global.ng.router, global.rxjs, global.rxjs.operators, global['@sunbird-cb/utils-v2'], global.ng.material, global['@sunbird-cb/resolver-v2'], global.ng.common.http, global.lodash, global.rxjs['add/observable/of'], global.dayjs_, global.moment, global.core$1, global.httpLoader, global.ng.cdk.layout, global.ng.platformBrowser, global.hammerjs, global.ng.forms, global.jspdf));
5
- }(this, (function (exports, core, common, router, rxjs, operators, utilsV2, material, resolverV2, http, lodash, of, dayjs_, moment$4, core$1, httpLoader, layout, platformBrowser, Hammer, forms, jspdf) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('rxjs'), require('rxjs/operators'), require('@sunbird-cb/utils-v2'), require('@angular/material'), require('@sunbird-cb/resolver-v2'), require('@angular/common/http'), require('lodash'), require('moment'), require('@ngx-translate/core'), require('rxjs/add/observable/of'), require('dayjs'), require('@ngx-translate/http-loader'), require('@angular/cdk/layout'), require('@angular/platform-browser'), require('hammerjs'), require('@angular/forms'), require('jspdf')) :
3
+ typeof define === 'function' && define.amd ? define('@sunbird-cb/consumption', ['exports', '@angular/core', '@angular/common', '@angular/router', 'rxjs', 'rxjs/operators', '@sunbird-cb/utils-v2', '@angular/material', '@sunbird-cb/resolver-v2', '@angular/common/http', 'lodash', 'moment', '@ngx-translate/core', 'rxjs/add/observable/of', 'dayjs', '@ngx-translate/http-loader', '@angular/cdk/layout', '@angular/platform-browser', 'hammerjs', '@angular/forms', 'jspdf'], factory) :
4
+ (global = global || self, factory((global['sunbird-cb'] = global['sunbird-cb'] || {}, global['sunbird-cb'].consumption = {}), global.ng.core, global.ng.common, global.ng.router, global.rxjs, global.rxjs.operators, global['@sunbird-cb/utils-v2'], global.ng.material, global['@sunbird-cb/resolver-v2'], global.ng.common.http, global.lodash, global.moment, global.core$1, global.rxjs['add/observable/of'], global.dayjs_, global.httpLoader, global.ng.cdk.layout, global.ng.platformBrowser, global.hammerjs, global.ng.forms, global.jspdf));
5
+ }(this, (function (exports, core, common, router, rxjs, operators, utilsV2, material, resolverV2, http, lodash, moment$4, core$1, of, dayjs_, httpLoader, layout, platformBrowser, Hammer, forms, jspdf) { 'use strict';
6
6
 
7
7
  Hammer = Hammer && Hammer.hasOwnProperty('default') ? Hammer['default'] : Hammer;
8
8
 
@@ -1678,1125 +1678,453 @@
1678
1678
  };
1679
1679
  }
1680
1680
 
1681
- /**
1682
- * @fileoverview added by tsickle
1683
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1684
- */
1685
- var NsCardContent;
1686
- (function (NsCardContent) {
1687
- /**
1688
- * @record
1689
- */
1690
- function ICard() { }
1691
- NsCardContent.ICard = ICard;
1692
- if (false) {
1693
- /** @type {?} */
1694
- ICard.prototype.content;
1695
- /** @type {?} */
1696
- ICard.prototype.cardSubType;
1697
- /** @type {?} */
1698
- ICard.prototype.context;
1699
- /** @type {?|undefined} */
1700
- ICard.prototype.intranetMode;
1701
- /** @type {?|undefined} */
1702
- ICard.prototype.deletedMode;
1703
- /** @type {?|undefined} */
1704
- ICard.prototype.likes;
1705
- /** @type {?|undefined} */
1706
- ICard.prototype.contentTags;
1707
- /** @type {?} */
1708
- ICard.prototype.stateData;
1709
- }
1710
- /**
1711
- * @record
1712
- */
1713
- function IContentTags() { }
1714
- NsCardContent.IContentTags = IContentTags;
1715
- if (false) {
1716
- /** @type {?|undefined} */
1717
- IContentTags.prototype.daysSpan;
1718
- /** @type {?|undefined} */
1719
- IContentTags.prototype.excludeContentType;
1720
- /** @type {?|undefined} */
1721
- IContentTags.prototype.excludeMimeType;
1722
- /** @type {?} */
1723
- IContentTags.prototype.tag;
1724
- /** @type {?|undefined} */
1725
- IContentTags.prototype.criteriaField;
1726
- }
1727
- /**
1728
- * @record
1729
- */
1730
- function ICompetency() { }
1731
- NsCardContent.ICompetency = ICompetency;
1732
- if (false) {
1733
- /** @type {?} */
1734
- ICompetency.prototype.competencyArea;
1735
- /** @type {?} */
1736
- ICompetency.prototype.competencyObject;
1737
- }
1738
- var EContentStatus;
1739
- (function (EContentStatus) {
1740
- EContentStatus["LIVE"] = "Live";
1741
- EContentStatus["EXPIRED"] = "Expired";
1742
- EContentStatus["DELETED"] = "Deleted";
1743
- EContentStatus["MARK_FOR_DELETION"] = "MarkedForDeletion";
1744
- })(EContentStatus = NsCardContent.EContentStatus || (NsCardContent.EContentStatus = {}));
1745
- var ACBPConst;
1746
- (function (ACBPConst) {
1747
- ACBPConst["UPCOMING"] = "upcoming";
1748
- ACBPConst["ALL"] = "All";
1749
- ACBPConst["OVERDUE"] = "overdue";
1750
- ACBPConst["SUCCESS"] = "success";
1751
- })(ACBPConst = NsCardContent.ACBPConst || (NsCardContent.ACBPConst = {}));
1752
- var IGOTConst;
1753
- (function (IGOTConst) {
1754
- IGOTConst["COMPETENCIES"] = "competencies_v5";
1755
- IGOTConst["RETIRED"] = "Retired";
1756
- })(IGOTConst = NsCardContent.IGOTConst || (NsCardContent.IGOTConst = {}));
1757
- })(NsCardContent || (NsCardContent = {}));
1758
-
1759
1681
  /**
1760
1682
  * @fileoverview added by tsickle
1761
1683
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1762
1684
  */
1763
1685
  /** @type {?} */
1764
- var dayjs = dayjs_
1765
- // import { environment } from 'src/environments/environment'
1766
- ;
1686
+ var moment = moment$4;
1687
+ // tslint:enable
1688
+ // TODO: move this in some common place
1767
1689
  /** @type {?} */
1768
1690
  var PROTECTED_SLAG_V8 = '/apis/protected/v8';
1769
1691
  var ɵ0 = /**
1770
- * @param {?} userId
1692
+ * @param {?} type
1693
+ * @param {?} id
1771
1694
  * @return {?}
1772
1695
  */
1773
- function (userId) {
1774
- return PROTECTED_SLAG_V8 + "/user/group/fetchUserGroup?userId=" + userId;
1696
+ function (type, id) {
1697
+ return PROTECTED_SLAG_V8 + "/content/collection/" + type + "/" + id;
1775
1698
  }, ɵ1 = /**
1776
- * @param {?} userId
1699
+ * @param {?} contentId
1777
1700
  * @return {?}
1778
1701
  */
1779
- function (userId) {
1780
- // tslint:disable-next-line: max-line-length
1781
- return "/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";
1782
- }, ɵ2 = /**
1783
- * @param {?} userId
1702
+ function (contentId) { return PROTECTED_SLAG_V8 + "/user/progress/" + contentId; }, ɵ2 = /**
1703
+ * @param {?} certId
1784
1704
  * @return {?}
1785
1705
  */
1786
- function (userId) {
1787
- // tslint:disable-next-line: max-line-length
1788
- return "/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";
1789
- }, ɵ3 = /**
1790
- * @param {?} userId
1791
- * @param {?} orgdetails
1792
- * @param {?} licenseDetails
1793
- * @param {?} fields
1794
- * @param {?} batchDetails
1706
+ function (certId) { return PROTECTED_SLAG_V8 + "/cohorts/course/batch/cert/download/" + certId; }, ɵ3 = /**
1707
+ * @param {?} contentId
1795
1708
  * @return {?}
1796
1709
  */
1797
- function (userId, orgdetails, licenseDetails, fields, batchDetails) {
1798
- // tslint:disable-next-line: max-line-length
1799
- return "apis/proxies/v8/learner/course/v2/user/enrollment/list/" + userId + "?orgdetails=" + orgdetails + "&licenseDetails=" + licenseDetails + "&fields=" + fields + ",courseCategory," + NsCardContent.IGOTConst.COMPETENCIES + "&batchDetails=" + batchDetails;
1800
- };
1710
+ function (contentId) { return "/apis/proxies/v8/action/content/v3/read/" + contentId; };
1801
1711
  /** @type {?} */
1802
1712
  var API_END_POINTS = {
1803
- FETCH_USER_GROUPS: (ɵ0),
1804
- FETCH_CPB_PLANS: "/apis/proxies/v8/user/v1/cbplan",
1805
- FETCH_USER_ENROLLMENT_LIST: (ɵ1),
1806
- FETCH_USER_ENROLLMENT_LIST_PROFILE: (ɵ2),
1807
- // tslint:disable-next-line: max-line-length
1808
- FETCH_USER_ENROLLMENT_LIST_V2: (ɵ3),
1713
+ CONTENT: PROTECTED_SLAG_V8 + "/content",
1714
+ AUTHORING_CONTENT: "/api/course/v1/hierarchy",
1715
+ CONTENT_LIKES: PROTECTED_SLAG_V8 + "/content/likeCount",
1716
+ SET_S3_COOKIE: PROTECTED_SLAG_V8 + "/content/setCookie",
1717
+ SET_S3_IMAGE_COOKIE: PROTECTED_SLAG_V8 + "/content/setImageCookie",
1718
+ FETCH_MANIFEST: PROTECTED_SLAG_V8 + "/content/getWebModuleManifest",
1719
+ FETCH_WEB_MODULE_FILES: PROTECTED_SLAG_V8 + "/content/getWebModuleFiles",
1720
+ MULTIPLE_CONTENT: PROTECTED_SLAG_V8 + "/content/multiple",
1721
+ CONTENT_SEARCH_V5: PROTECTED_SLAG_V8 + "/content/searchV5",
1722
+ CONTENT_SEARCH_V6: "/apis/proxies/v8/sunbirdigot/search",
1723
+ TRENDING_CONTENT_SEARCH: "apis/proxies/v8/trending/content/search",
1724
+ CONTENT_SEARCH_RELATED_CBP_V6: "/apis/proxies/v8/sunbirdigot/search",
1725
+ CONTENT_SEARCH_REGION_RECOMMENDATION: PROTECTED_SLAG_V8 + "/content/searchRegionRecommendation",
1726
+ CONTENT_HISTORY: PROTECTED_SLAG_V8 + "/user/history",
1727
+ CONTENT_HISTORYV2: "/apis/proxies/v8/read/content-progres",
1728
+ COURSE_BATCH_LIST: "/apis/proxies/v8/learner/course/v1/batch/list",
1729
+ COURSE_BATCH: "/apis/proxies/v8/course/v1/batch/read",
1730
+ AUTO_ASSIGN_BATCH: "/apis/protected/v8/cohorts/user/autoenrollment/",
1731
+ AUTO_ASSIGN_CURATED_BATCH: "/apis/proxies/v8/curatedprogram/v1/enrol",
1732
+ AUTO_ASSIGN_OPEN_PROGRAM: "/apis/proxies/v8/openprogram/v1/enrol",
1733
+ USER_CONTINUE_LEARNING: PROTECTED_SLAG_V8 + "/user/history/continue",
1734
+ CONTENT_RATING: PROTECTED_SLAG_V8 + "/user/rating",
1735
+ COLLECTION_HIERARCHY: (ɵ0),
1736
+ REGISTRATION_STATUS: PROTECTED_SLAG_V8 + "/admin/userRegistration/checkUserRegistrationContent",
1737
+ MARK_AS_COMPLETE_META: (ɵ1),
1738
+ ENROLL_BATCH: "/apis/proxies/v8/learner/course/v1/enrol",
1739
+ ENROLL_BATCH_WF: "/apis/proxies/v8/workflow/blendedprogram/enrol",
1740
+ WITHDRAW_BATCH_WF: "/apis/proxies/v8/workflow/blendedprogram/unenrol",
1741
+ BLENDED_USER_WF: "/apis/proxies/v8/workflow/blendedprogram/user/search",
1742
+ BLENDED_USER_COUNT: "apis/proxies/v8/workflow/blendedprogram/enrol/status/count",
1743
+ CERT_ADD_TEMPLATE: PROTECTED_SLAG_V8 + "/cohorts/course/batch/cert/template/add",
1744
+ CERT_ISSUE: PROTECTED_SLAG_V8 + "/cohorts/course/batch/cert/issue",
1745
+ CERT_DOWNLOAD: (ɵ2),
1746
+ READ_KARMAPOINTS: "/apis/proxies/v8/karmapoints/read",
1747
+ CONTENT_READ: (ɵ3),
1748
+ READ_COURSE_KARMAPOINTS: '/apis/proxies/v8/karmapoints/user/course/read',
1749
+ CLAIM_KARMAPOINTS: '/apis/proxies/v8/claimkarmapoints',
1750
+ USER_KARMA_POINTS: '/apis/proxies/v8/user/totalkarmapoints',
1751
+ AGGREGATION_SEARCH: '/apis/proxies/v8/content/aggregation/search',
1752
+ FEATURE_SEARCH: '/apis/proxies/v8/featured/content/search',
1809
1753
  };
1810
- var WidgetUserServiceLib = /** @class */ (function () {
1811
- function WidgetUserServiceLib(environment, http) {
1754
+ var WidgetContentService = /** @class */ (function () {
1755
+ function WidgetContentService(http, configSvc) {
1812
1756
  this.http = http;
1813
- this.environment = environment;
1757
+ this.configSvc = configSvc;
1758
+ this.tocConfigData = new rxjs.BehaviorSubject({});
1759
+ this.tocConfigData$ = this.tocConfigData.asObservable();
1760
+ this.telemetryData = new rxjs.Subject();
1761
+ this.telemetryData$ = this.telemetryData.asObservable();
1762
+ this.programChildCourseResumeData = new rxjs.BehaviorSubject({});
1763
+ this.programChildCourseResumeData$ = this.programChildCourseResumeData.asObservable();
1814
1764
  }
1815
1765
  /**
1816
- * @param {?} error
1766
+ * @param {?} message
1817
1767
  * @return {?}
1818
1768
  */
1819
- WidgetUserServiceLib.prototype.handleError = /**
1820
- * @param {?} error
1769
+ WidgetContentService.prototype.changeTelemetryData = /**
1770
+ * @param {?} message
1821
1771
  * @return {?}
1822
1772
  */
1823
- function (error) {
1824
- /** @type {?} */
1825
- var errorMessage = '';
1826
- if (error.error instanceof ErrorEvent) {
1827
- errorMessage = "Error: " + error.error.message;
1828
- }
1829
- return rxjs.throwError(errorMessage);
1773
+ function (message) {
1774
+ this.telemetryData.next(message);
1830
1775
  };
1831
1776
  /**
1832
- * @param {?} userId
1777
+ * @param {?} primaryCategory
1833
1778
  * @return {?}
1834
1779
  */
1835
- WidgetUserServiceLib.prototype.fetchUserGroupDetails = /**
1836
- * @param {?} userId
1780
+ WidgetContentService.prototype.isResource = /**
1781
+ * @param {?} primaryCategory
1837
1782
  * @return {?}
1838
1783
  */
1839
- function (userId) {
1840
- return this.http
1841
- .get(API_END_POINTS.FETCH_USER_GROUPS(userId))
1842
- .pipe(operators.catchError(this.handleError));
1784
+ function (primaryCategory) {
1785
+ if (primaryCategory) {
1786
+ /** @type {?} */
1787
+ var isResource = (primaryCategory === NsContent.EResourcePrimaryCategories.LEARNING_RESOURCE) ||
1788
+ (primaryCategory === NsContent.EResourcePrimaryCategories.PRACTICE_RESOURCE) ||
1789
+ (primaryCategory === NsContent.EResourcePrimaryCategories.FINAL_ASSESSMENT) ||
1790
+ (primaryCategory === NsContent.EResourcePrimaryCategories.COMP_ASSESSMENT) ||
1791
+ (primaryCategory === NsContent.EResourcePrimaryCategories.OFFLINE_SESSION);
1792
+ return isResource;
1793
+ }
1794
+ return false;
1843
1795
  };
1844
- // tslint:disable-next-line: max-line-length
1845
- // tslint:disable-next-line: max-line-length
1846
1796
  /**
1847
- * @param {?} userId
1848
- * @param {?=} queryParams
1797
+ * @param {?} identifier
1849
1798
  * @return {?}
1850
1799
  */
1851
- WidgetUserServiceLib.prototype.fetchUserBatchList =
1852
- // tslint:disable-next-line: max-line-length
1853
- /**
1854
- * @param {?} userId
1855
- * @param {?=} queryParams
1800
+ WidgetContentService.prototype.fetchMarkAsCompleteMeta = /**
1801
+ * @param {?} identifier
1856
1802
  * @return {?}
1857
1803
  */
1858
- function (userId, queryParams) {
1859
- var _this = this;
1860
- /** @type {?} */
1861
- var path = '';
1862
- if (queryParams) {
1863
- // tslint:disable-next-line: max-line-length
1864
- path = API_END_POINTS.FETCH_USER_ENROLLMENT_LIST_V2(userId, queryParams.orgdetails, queryParams.licenseDetails, queryParams.fields, queryParams.batchDetails);
1865
- }
1866
- else {
1867
- path = API_END_POINTS.FETCH_USER_ENROLLMENT_LIST(userId);
1868
- }
1869
- /** @type {?} */
1870
- var headers = new http.HttpHeaders({
1871
- 'Cache-Control': 'no-cache, no-store, must-revalidate, post-check=0, pre-check=0',
1872
- Pragma: 'no-cache',
1873
- Expires: '0',
1874
- });
1804
+ function (identifier) {
1805
+ // tslint:disable-next-line
1875
1806
  /** @type {?} */
1876
- var result = this.http.get(path, { headers: headers }).pipe(operators.catchError(this.handleError), operators.map((/**
1877
- * @param {?} data
1878
- * @return {?}
1879
- */
1880
- function (data) {
1881
- /** @type {?} */
1882
- var coursesData = [];
1883
- if (data && data.result && data.result.courses) {
1884
- data.result.courses.forEach((/**
1885
- * @param {?} content
1886
- * @return {?}
1887
- */
1888
- function (content) {
1889
- if (content.contentStatus) {
1890
- delete content.contentStatus;
1891
- }
1892
- coursesData.push(content);
1893
- }));
1894
- _this.storeUserEnrollmentInfo(data.result.userCourseEnrolmentInfo, data.result.courses.length);
1895
- data.result.courses = coursesData;
1896
- }
1897
- return data.result;
1898
- })));
1899
- return result;
1807
+ var url = API_END_POINTS.MARK_AS_COMPLETE_META(identifier)
1808
+ // return this.http.get(url).toPromise()
1809
+ ;
1810
+ // return this.http.get(url).toPromise()
1811
+ if (url) { }
1812
+ return rxjs.of().toPromise();
1900
1813
  };
1901
- // tslint:disable-next-line: max-line-length
1902
- // tslint:disable-next-line: max-line-length
1903
1814
  /**
1904
- * @param {?} userId
1905
- * @param {?=} queryParams
1815
+ * @param {?} data
1906
1816
  * @return {?}
1907
1817
  */
1908
- WidgetUserServiceLib.prototype.fetchProfileUserBatchList =
1909
- // tslint:disable-next-line: max-line-length
1910
- /**
1911
- * @param {?} userId
1912
- * @param {?=} queryParams
1818
+ WidgetContentService.prototype.updateTocConfig = /**
1819
+ * @param {?} data
1913
1820
  * @return {?}
1914
1821
  */
1915
- function (userId, queryParams) {
1916
- /** @type {?} */
1917
- var path = '';
1918
- if (queryParams) {
1919
- // tslint:disable-next-line: max-line-length
1920
- path = API_END_POINTS.FETCH_USER_ENROLLMENT_LIST_V2(userId, queryParams.orgdetails, queryParams.licenseDetails, queryParams.fields, queryParams.batchDetails);
1921
- }
1922
- else {
1923
- path = API_END_POINTS.FETCH_USER_ENROLLMENT_LIST_PROFILE(userId);
1924
- }
1925
- /** @type {?} */
1926
- var headers = new http.HttpHeaders({
1927
- 'Cache-Control': 'no-cache, no-store, must-revalidate, post-check=0, pre-check=0',
1928
- Pragma: 'no-cache',
1929
- Expires: '0',
1930
- });
1931
- return this.http
1932
- .get(path, { headers: headers })
1933
- .pipe(operators.catchError(this.handleError), operators.map((/**
1934
- * @param {?} data
1935
- * @return {?}
1936
- */
1937
- function (data) { return data.result; })));
1822
+ function (data) {
1823
+ this.tocConfigData.next(data);
1938
1824
  };
1939
1825
  /**
1940
- * @param {?} key
1941
- * @param {?} dataKey
1826
+ * @param {?} contentId
1827
+ * @param {?=} hierarchyType
1828
+ * @param {?=} _additionalFields
1829
+ * @param {?=} primaryCategory
1942
1830
  * @return {?}
1943
1831
  */
1944
- WidgetUserServiceLib.prototype.checkStorageData = /**
1945
- * @param {?} key
1946
- * @param {?} dataKey
1832
+ WidgetContentService.prototype.fetchContent = /**
1833
+ * @param {?} contentId
1834
+ * @param {?=} hierarchyType
1835
+ * @param {?=} _additionalFields
1836
+ * @param {?=} primaryCategory
1947
1837
  * @return {?}
1948
1838
  */
1949
- function (key, dataKey) {
1839
+ function (contentId, hierarchyType, _additionalFields, primaryCategory) {
1840
+ if (hierarchyType === void 0) { hierarchyType = 'detail'; }
1841
+ if (_additionalFields === void 0) { _additionalFields = []; }
1842
+ // const url = `${API_END_POINTS.CONTENT}/${contentId}?hierarchyType=${hierarchyType}`
1950
1843
  /** @type {?} */
1951
- var checkTime = localStorage.getItem('timeCheck');
1952
- if (checkTime) {
1953
- /** @type {?} */
1954
- var parsedData = JSON.parse(checkTime);
1955
- if (parsedData[key]) {
1956
- /** @type {?} */
1957
- var date = dayjs();
1958
- /** @type {?} */
1959
- var diffMin = date.diff(parsedData[key], 'minute');
1844
+ var url = '';
1845
+ /** @type {?} */
1846
+ var forPreview = window.location.href.includes('/public/') || window.location.href.includes('&preview=true');
1847
+ if (primaryCategory && this.isResource(primaryCategory)) {
1848
+ if (!forPreview) {
1849
+ url = "/apis/proxies/v8/action/content/v3/read/" + contentId;
1850
+ }
1851
+ else {
1852
+ url = "/api/content/v1/read/" + contentId;
1853
+ }
1854
+ }
1855
+ else {
1856
+ if (!forPreview) {
1857
+ url = "/apis/proxies/v8/action/content/v3/hierarchy/" + contentId + "?hierarchyType=" + hierarchyType;
1858
+ }
1859
+ else {
1960
1860
  /** @type {?} */
1961
- var timeCheck = this.environment.apiCache || 0;
1962
- if (diffMin >= timeCheck) {
1963
- return true;
1861
+ var forcreator = window.location.href.includes('editMode=true');
1862
+ if (forcreator) {
1863
+ url = "apis/proxies/v8/action/content/v3/hierarchy/" + contentId + "?mode=edit";
1864
+ }
1865
+ else {
1866
+ url = "/api/course/v1/hierarchy/" + contentId + "?hierarchyType=" + hierarchyType;
1964
1867
  }
1965
- return localStorage.getItem(dataKey) ? false : true;
1966
1868
  }
1967
- return true;
1968
1869
  }
1969
- return true;
1870
+ // return this.http
1871
+ // .post<NsContent.IContent>(url, { additionalFields })
1872
+ // .pipe(retry(1))
1873
+ return this.http
1874
+ .get(url)
1875
+ .pipe(operators.shareReplay(1));
1876
+ // if (apiData && apiData.result) {
1877
+ // return apiData.result.content
1878
+ // }
1970
1879
  };
1971
1880
  /**
1972
- * @param {?} key
1881
+ * @param {?} contentId
1973
1882
  * @return {?}
1974
1883
  */
1975
- WidgetUserServiceLib.prototype.getData = /**
1976
- * @param {?} key
1884
+ WidgetContentService.prototype.fetchAuthoringContent = /**
1885
+ * @param {?} contentId
1977
1886
  * @return {?}
1978
1887
  */
1979
- function (key) {
1980
- return rxjs.Observable.of(JSON.parse(localStorage.getItem(key) || '{}'));
1888
+ function (contentId) {
1889
+ /** @type {?} */
1890
+ var forcreator = window.location.href.includes('editMode=true');
1891
+ /** @type {?} */
1892
+ var url = '';
1893
+ if (forcreator) {
1894
+ url = "apis/proxies/v8/action/content/v3/hierarchy/" + contentId + "?mode=edit";
1895
+ }
1896
+ else {
1897
+ url = API_END_POINTS.AUTHORING_CONTENT + "/" + contentId + "?hierarchyType=detail";
1898
+ }
1899
+ return this.http.get(url).pipe(operators.shareReplay(1), (/**
1900
+ * @param {?} r
1901
+ * @return {?}
1902
+ */
1903
+ function (r) { return r; }));
1981
1904
  };
1982
1905
  /**
1983
- * @param {?} key
1906
+ * @param {?} ids
1984
1907
  * @return {?}
1985
1908
  */
1986
- WidgetUserServiceLib.prototype.getSavedData = /**
1987
- * @param {?} key
1909
+ WidgetContentService.prototype.fetchMultipleContent = /**
1910
+ * @param {?} ids
1988
1911
  * @return {?}
1989
1912
  */
1990
- function (key) {
1991
- return JSON.parse(localStorage.getItem(key) || '');
1913
+ function (ids) {
1914
+ return this.http.get(API_END_POINTS.MULTIPLE_CONTENT + "/" + ids.join(','));
1992
1915
  };
1993
1916
  /**
1994
- * @param {?} key
1917
+ * @param {?} type
1918
+ * @param {?} id
1919
+ * @param {?=} pageNumber
1920
+ * @param {?=} pageSize
1995
1921
  * @return {?}
1996
1922
  */
1997
- WidgetUserServiceLib.prototype.setTime = /**
1998
- * @param {?} key
1923
+ WidgetContentService.prototype.fetchCollectionHierarchy = /**
1924
+ * @param {?} type
1925
+ * @param {?} id
1926
+ * @param {?=} pageNumber
1927
+ * @param {?=} pageSize
1999
1928
  * @return {?}
2000
1929
  */
2001
- function (key) {
2002
- /** @type {?} */
2003
- var checkTime = localStorage.getItem('timeCheck');
2004
- if (checkTime) {
2005
- /** @type {?} */
2006
- var parsedData = JSON.parse(checkTime);
2007
- parsedData[key] = new Date().getTime();
2008
- localStorage.setItem('timeCheck', JSON.stringify(parsedData));
2009
- }
2010
- else {
2011
- /** @type {?} */
2012
- var data = {};
2013
- data[key] = new Date().getTime();
2014
- localStorage.setItem('timeCheck', JSON.stringify(data));
2015
- }
1930
+ function (type, id, pageNumber, pageSize) {
1931
+ if (pageNumber === void 0) { pageNumber = 0; }
1932
+ if (pageSize === void 0) { pageSize = 1; }
1933
+ return this.http.get(API_END_POINTS.COLLECTION_HIERARCHY(type, id) + "?pageNumber=" + pageNumber + "&pageSize=" + pageSize);
2016
1934
  };
2017
1935
  /**
2018
- * @param {?} key
2019
1936
  * @return {?}
2020
1937
  */
2021
- WidgetUserServiceLib.prototype.resetTime = /**
2022
- * @param {?} key
1938
+ WidgetContentService.prototype.fetchBlendedCourse = /**
2023
1939
  * @return {?}
2024
1940
  */
2025
- function (key) {
2026
- /** @type {?} */
2027
- var checkTime = localStorage.getItem('timeCheck');
2028
- if (checkTime) {
2029
- /** @type {?} */
2030
- var parsedData = JSON.parse(checkTime);
2031
- if (parsedData[key]) {
2032
- delete parsedData[key];
2033
- localStorage.setItem('timeCheck', JSON.stringify(parsedData));
2034
- }
2035
- }
1941
+ function () {
2036
1942
  };
2037
1943
  /**
2038
- * @param {?} userId
1944
+ * @param {?} req
2039
1945
  * @return {?}
2040
1946
  */
2041
- WidgetUserServiceLib.prototype.fetchCbpPlanList = /**
2042
- * @param {?} userId
1947
+ WidgetContentService.prototype.fetchCourseBatches = /**
1948
+ * @param {?} req
2043
1949
  * @return {?}
2044
1950
  */
2045
- function (userId) {
2046
- var _this = this;
2047
- if (this.checkStorageData('cbpService', 'cbpData')) {
2048
- /** @type {?} */
2049
- var result = this.http.get(API_END_POINTS.FETCH_CPB_PLANS).pipe(operators.catchError(this.handleError), operators.map((/**
2050
- * @param {?} data
2051
- * @return {?}
2052
- */
2053
- function (data) { return __awaiter(_this, void 0, void 0, function () {
2054
- var cbpData, cbpDoIds, cbpContentData, responseData;
2055
- var _this = this;
2056
- return __generator(this, function (_a) {
2057
- switch (_a.label) {
2058
- case 0:
2059
- if (!(data.result && data.result.content && data.result.content.length)) return [3 /*break*/, 3];
2060
- cbpData = this.getCbpFormatedData(data.result.content);
2061
- cbpDoIds = cbpData.contentIds.join(',');
2062
- cbpContentData = cbpData.cbpContentData || [];
2063
- return [4 /*yield*/, this.fetchEnrollmentDataByContentId(userId, cbpDoIds).toPromise().then((/**
2064
- * @param {?} res
2065
- * @return {?}
2066
- */
2067
- function (res) { return __awaiter(_this, void 0, void 0, function () {
2068
- var enrollData;
2069
- return __generator(this, function (_a) {
2070
- enrollData = {};
2071
- if (res && res.courses && res.courses.length) {
2072
- res.courses.forEach((/**
2073
- * @param {?} data
2074
- * @return {?}
2075
- */
2076
- function (data) {
2077
- enrollData[data.collectionId] = data;
2078
- }));
2079
- return [2 /*return*/, enrollData];
2080
- }
2081
- else {
2082
- return [2 /*return*/, {}];
2083
- }
2084
- return [2 /*return*/];
2085
- });
2086
- }); })).catch((/**
2087
- * @param {?} _err
2088
- * @return {?}
2089
- */
2090
- function (_err) {
2091
- return {};
2092
- }))];
2093
- case 1:
2094
- responseData = _a.sent();
2095
- return [4 /*yield*/, this.mapCbpData(cbpContentData, responseData)];
2096
- case 2: return [2 /*return*/, _a.sent()];
2097
- case 3: return [2 /*return*/];
2098
- }
2099
- });
2100
- }); })));
2101
- this.setTime('cbpService');
2102
- return result;
2103
- }
2104
- return this.getData('cbpData');
1951
+ function (req) {
1952
+ return this.http
1953
+ .post(API_END_POINTS.COURSE_BATCH_LIST, req)
1954
+ .pipe(operators.retry(1), operators.map((/**
1955
+ * @param {?} data
1956
+ * @return {?}
1957
+ */
1958
+ function (data) { return data.result.response; })));
2105
1959
  };
1960
+ // fetch individual batch
1961
+ // fetch individual batch
2106
1962
  /**
2107
- * @param {?} enrollmentData
2108
- * @param {?} enrolledCourseCount
1963
+ * @param {?} batchId
2109
1964
  * @return {?}
2110
1965
  */
2111
- WidgetUserServiceLib.prototype.storeUserEnrollmentInfo = /**
2112
- * @param {?} enrollmentData
2113
- * @param {?} enrolledCourseCount
1966
+ WidgetContentService.prototype.fetchCourseBatch =
1967
+ // fetch individual batch
1968
+ /**
1969
+ * @param {?} batchId
2114
1970
  * @return {?}
2115
1971
  */
2116
- function (enrollmentData, enrolledCourseCount) {
2117
- /** @type {?} */
2118
- var userData = {
2119
- enrolledCourseCount: enrolledCourseCount,
2120
- userCourseEnrolmentInfo: enrollmentData,
2121
- };
2122
- localStorage.removeItem('userEnrollmentCount');
2123
- localStorage.setItem('userEnrollmentCount', JSON.stringify(userData));
1972
+ function (batchId) {
1973
+ return this.http.get(API_END_POINTS.COURSE_BATCH + "/" + batchId);
2124
1974
  };
2125
1975
  /**
2126
- * @param {?} userId
2127
- * @param {?} contentdata
1976
+ * @param {?} identifier
2128
1977
  * @return {?}
2129
1978
  */
2130
- WidgetUserServiceLib.prototype.fetchEnrollmentDataByContentId = /**
2131
- * @param {?} userId
2132
- * @param {?} contentdata
1979
+ WidgetContentService.prototype.autoAssignBatchApi = /**
1980
+ * @param {?} identifier
2133
1981
  * @return {?}
2134
1982
  */
2135
- function (userId, contentdata) {
2136
- /** @type {?} */
2137
- var path = API_END_POINTS.FETCH_USER_ENROLLMENT_LIST(userId);
2138
- path = path + "&courseIds=" + contentdata + "&cache=false'";
2139
- /** @type {?} */
2140
- var headers = new http.HttpHeaders({
2141
- 'Cache-Control': 'no-cache, no-store, must-revalidate, post-check=0, pre-check=0',
2142
- Pragma: 'no-cache',
2143
- Expires: '0',
2144
- });
2145
- return this.http
2146
- .get(path, { headers: headers })
2147
- .pipe(operators.catchError(this.handleError), operators.map((/**
1983
+ function (identifier) {
1984
+ return this.http.get("" + API_END_POINTS.AUTO_ASSIGN_BATCH + identifier)
1985
+ .pipe(operators.retry(1), operators.map((/**
2148
1986
  * @param {?} data
2149
1987
  * @return {?}
2150
1988
  */
2151
- function (data) { return data.result; })));
1989
+ function (data) { return data.result.response; })));
2152
1990
  };
2153
1991
  /**
2154
- * @param {?} cbpContent
1992
+ * @param {?} request
1993
+ * @param {?} programType
2155
1994
  * @return {?}
2156
1995
  */
2157
- WidgetUserServiceLib.prototype.getCbpFormatedData = /**
2158
- * @param {?} cbpContent
1996
+ WidgetContentService.prototype.autoAssignCuratedBatchApi = /**
1997
+ * @param {?} request
1998
+ * @param {?} programType
2159
1999
  * @return {?}
2160
2000
  */
2161
- function (cbpContent) {
2162
- /** @type {?} */
2163
- var cbpContentData = [];
2164
- /** @type {?} */
2165
- var contentIds = [];
2001
+ function (request, programType) {
2166
2002
  /** @type {?} */
2167
- var todayDate = dayjs().format('YYYY-MM-DD');
2168
- cbpContent.forEach((/**
2169
- * @param {?} c
2003
+ var url = programType === NsContent.ECourseCategory.MODERATED_PROGRAM ?
2004
+ API_END_POINTS.AUTO_ASSIGN_OPEN_PROGRAM : API_END_POINTS.AUTO_ASSIGN_CURATED_BATCH;
2005
+ return this.http.post("" + url, request)
2006
+ .pipe(operators.retry(1), operators.map((/**
2007
+ * @param {?} data
2170
2008
  * @return {?}
2171
2009
  */
2172
- function (c) {
2173
- c.contentList.forEach((/**
2174
- * @param {?} childData
2175
- * @return {?}
2176
- */
2177
- function (childData) {
2178
- /** @type {?} */
2179
- var endDate = dayjs(c.endDate).format('YYYY-MM-DD');
2180
- /** @type {?} */
2181
- var daysCount = dayjs(endDate).diff(todayDate, 'day');
2182
- childData['planDuration'] = daysCount < 0 ? NsCardContent.ACBPConst.OVERDUE : daysCount > 29
2183
- ? NsCardContent.ACBPConst.SUCCESS : NsCardContent.ACBPConst.UPCOMING;
2184
- childData['endDate'] = c.endDate;
2185
- childData['parentId'] = c.id;
2186
- childData['planType'] = 'cbPlan';
2187
- childData['contentStatus'] = 0;
2188
- contentIds.push(childData.identifier);
2189
- if (childData.status !== NsCardContent.IGOTConst.RETIRED) {
2190
- cbpContentData.push(childData);
2191
- }
2192
- }));
2193
- }));
2194
- return { cbpContentData: cbpContentData, contentIds: contentIds };
2010
+ function (data) { return data.result.response; })));
2195
2011
  };
2196
2012
  /**
2197
- * @param {?} cbpContent
2198
- * @param {?} enrollmentData
2013
+ * @param {?} req
2199
2014
  * @return {?}
2200
2015
  */
2201
- WidgetUserServiceLib.prototype.mapCbpData = /**
2202
- * @param {?} cbpContent
2203
- * @param {?} enrollmentData
2016
+ WidgetContentService.prototype.enrollUserToBatch = /**
2017
+ * @param {?} req
2204
2018
  * @return {?}
2205
2019
  */
2206
- function (cbpContent, enrollmentData) {
2207
- return __awaiter(this, void 0, void 0, function () {
2208
- var cbpFilteredContent, sortedData, uniqueUsersByID, sortedByEndDate, sortedByStatus;
2209
- return __generator(this, function (_a) {
2210
- cbpFilteredContent = [];
2211
- if (cbpContent && cbpContent.length) {
2212
- if (Object.keys(enrollmentData).length) {
2213
- cbpContent.forEach((/**
2214
- * @param {?} cbp
2215
- * @return {?}
2216
- */
2217
- function (cbp) {
2218
- /** @type {?} */
2219
- var childEnrollData = enrollmentData[cbp.identifier];
2220
- /** @type {?} */
2221
- var competencyArea = [];
2222
- /** @type {?} */
2223
- var competencyTheme = [];
2224
- /** @type {?} */
2225
- var competencyThemeType = [];
2226
- /** @type {?} */
2227
- var competencySubTheme = [];
2228
- /** @type {?} */
2229
- var competencyAreaId = [];
2230
- /** @type {?} */
2231
- var competencyThemeId = [];
2232
- /** @type {?} */
2233
- var competencySubThemeId = [];
2234
- cbp['contentStatus'] = 0;
2235
- if (childEnrollData) {
2236
- cbp['contentStatus'] = childEnrollData.status;
2237
- }
2238
- if (cbp.competencies_v5) {
2239
- cbp.competencies_v5.forEach((/**
2240
- * @param {?} element
2241
- * @return {?}
2242
- */
2243
- function (element) {
2244
- if (!competencyArea.includes(element.competencyArea)) {
2245
- competencyArea.push(element.competencyArea);
2246
- competencyAreaId.push(element.competencyAreaId);
2247
- }
2248
- if (!competencyTheme.includes(element.competencyTheme)) {
2249
- competencyTheme.push(element.competencyTheme);
2250
- competencyThemeId.push(element.competencyThemeId);
2251
- }
2252
- if (!competencyThemeType.includes(element.competencyThemeType)) {
2253
- competencyThemeType.push(element.competencyThemeType);
2254
- }
2255
- if (!competencySubTheme.includes(element.competencySubTheme)) {
2256
- competencySubTheme.push(element.competencySubTheme);
2257
- competencySubThemeId.push(element.competencySubThemeId);
2258
- }
2259
- }));
2260
- }
2261
- cbp['competencyArea'] = competencyArea;
2262
- cbp['competencyTheme'] = competencyTheme;
2263
- cbp['competencyThemeType'] = competencyThemeType;
2264
- cbp['competencySubTheme'] = competencySubTheme;
2265
- cbp['competencyAreaId'] = competencyAreaId;
2266
- cbp['competencyThemeId'] = competencyThemeId;
2267
- cbp['competencySubThemeId'] = competencySubThemeId;
2268
- if (cbp.status !== NsCardContent.IGOTConst.RETIRED) {
2269
- cbpFilteredContent.push(cbp);
2270
- }
2271
- else {
2272
- if (childEnrollData && childEnrollData.status === 2) {
2273
- cbpFilteredContent.push(cbp);
2274
- }
2275
- }
2276
- }));
2277
- if (cbpFilteredContent.length > 1) {
2278
- sortedData = cbpFilteredContent.sort((/**
2279
- * @param {?} a
2280
- * @param {?} b
2281
- * @return {?}
2282
- */
2283
- function (a, b) {
2284
- /** @type {?} */
2285
- var firstDate = new Date(a.endDate);
2286
- /** @type {?} */
2287
- var secondDate = new Date(b.endDate);
2288
- return secondDate > firstDate ? 1 : -1;
2289
- }));
2290
- uniqueUsersByID = lodash.uniqBy(sortedData, 'identifier');
2291
- sortedByEndDate = lodash.orderBy(uniqueUsersByID, ['endDate'], ['asc']);
2292
- sortedByStatus = lodash.orderBy(sortedByEndDate, ['contentStatus'], ['asc']);
2293
- localStorage.setItem('cbpData', JSON.stringify(sortedByStatus));
2294
- return [2 /*return*/, sortedByStatus];
2295
- }
2296
- localStorage.setItem('cbpData', JSON.stringify(cbpFilteredContent));
2297
- return [2 /*return*/, cbpFilteredContent];
2298
- }
2299
- localStorage.setItem('cbpData', JSON.stringify(cbpContent));
2300
- return [2 /*return*/, cbpContent];
2301
- }
2302
- localStorage.setItem('cbpData', JSON.stringify([]));
2303
- return [2 /*return*/, []];
2304
- });
2305
- });
2020
+ function (req) {
2021
+ return this.http
2022
+ .post(API_END_POINTS.ENROLL_BATCH, req)
2023
+ .toPromise();
2306
2024
  };
2307
2025
  /**
2308
- * @param {?} courseData
2026
+ * @param {?} req
2027
+ * @param {?} type
2309
2028
  * @return {?}
2310
2029
  */
2311
- WidgetUserServiceLib.prototype.mapEnrollmentData = /**
2312
- * @param {?} courseData
2030
+ WidgetContentService.prototype.enrollAndUnenrollUserToBatchWF = /**
2031
+ * @param {?} req
2032
+ * @param {?} type
2313
2033
  * @return {?}
2314
2034
  */
2315
- function (courseData) {
2035
+ function (req, type) {
2316
2036
  /** @type {?} */
2317
- var enrollData = {};
2318
- if (courseData && courseData.courses.length) {
2319
- courseData.courses.forEach((/**
2320
- * @param {?} data
2321
- * @return {?}
2322
- */
2323
- function (data) {
2324
- enrollData[data.collectionId] = data;
2325
- }));
2326
- }
2327
- return enrollData;
2037
+ var url = type === 'WITHDRAW' ? API_END_POINTS.WITHDRAW_BATCH_WF : API_END_POINTS.ENROLL_BATCH_WF;
2038
+ return this.http
2039
+ .post(url, req)
2040
+ .toPromise();
2328
2041
  };
2329
- WidgetUserServiceLib.decorators = [
2330
- { type: core.Injectable, args: [{
2331
- providedIn: 'root',
2332
- },] }
2333
- ];
2334
- /** @nocollapse */
2335
- WidgetUserServiceLib.ctorParameters = function () { return [
2336
- { type: undefined, decorators: [{ type: core.Inject, args: ['environment',] }] },
2337
- { type: http.HttpClient }
2338
- ]; };
2339
- /** @nocollapse */ WidgetUserServiceLib.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function WidgetUserServiceLib_Factory() { return new WidgetUserServiceLib(core.ɵɵinject("environment"), core.ɵɵinject(http.HttpClient)); }, token: WidgetUserServiceLib, providedIn: "root" });
2340
- return WidgetUserServiceLib;
2341
- }());
2342
- if (false) {
2343
- /** @type {?} */
2344
- WidgetUserServiceLib.prototype.environment;
2345
- /**
2346
- * @type {?}
2347
- * @private
2348
- */
2349
- WidgetUserServiceLib.prototype.http;
2350
- }
2351
-
2352
- /**
2353
- * @fileoverview added by tsickle
2354
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2355
- */
2356
- /** @type {?} */
2357
- var moment = moment$4;
2358
- // tslint:enable
2359
- // TODO: move this in some common place
2360
- /** @type {?} */
2361
- var PROTECTED_SLAG_V8$1 = '/apis/protected/v8';
2362
- var ɵ0$1 = /**
2363
- * @param {?} type
2364
- * @param {?} id
2365
- * @return {?}
2366
- */
2367
- function (type, id) {
2368
- return PROTECTED_SLAG_V8$1 + "/content/collection/" + type + "/" + id;
2369
- }, ɵ1$1 = /**
2370
- * @param {?} contentId
2371
- * @return {?}
2372
- */
2373
- function (contentId) { return PROTECTED_SLAG_V8$1 + "/user/progress/" + contentId; }, ɵ2$1 = /**
2374
- * @param {?} certId
2375
- * @return {?}
2376
- */
2377
- function (certId) { return PROTECTED_SLAG_V8$1 + "/cohorts/course/batch/cert/download/" + certId; }, ɵ3$1 = /**
2378
- * @param {?} contentId
2379
- * @return {?}
2380
- */
2381
- function (contentId) { return "/apis/proxies/v8/action/content/v3/read/" + contentId; };
2382
- /** @type {?} */
2383
- var API_END_POINTS$1 = {
2384
- CONTENT: PROTECTED_SLAG_V8$1 + "/content",
2385
- AUTHORING_CONTENT: "/api/course/v1/hierarchy",
2386
- CONTENT_LIKES: PROTECTED_SLAG_V8$1 + "/content/likeCount",
2387
- SET_S3_COOKIE: PROTECTED_SLAG_V8$1 + "/content/setCookie",
2388
- SET_S3_IMAGE_COOKIE: PROTECTED_SLAG_V8$1 + "/content/setImageCookie",
2389
- FETCH_MANIFEST: PROTECTED_SLAG_V8$1 + "/content/getWebModuleManifest",
2390
- FETCH_WEB_MODULE_FILES: PROTECTED_SLAG_V8$1 + "/content/getWebModuleFiles",
2391
- MULTIPLE_CONTENT: PROTECTED_SLAG_V8$1 + "/content/multiple",
2392
- CONTENT_SEARCH_V5: PROTECTED_SLAG_V8$1 + "/content/searchV5",
2393
- CONTENT_SEARCH_V6: "/apis/proxies/v8/sunbirdigot/search",
2394
- TRENDING_CONTENT_SEARCH: "apis/proxies/v8/trending/content/search",
2395
- CONTENT_SEARCH_RELATED_CBP_V6: "/apis/proxies/v8/sunbirdigot/search",
2396
- CONTENT_SEARCH_REGION_RECOMMENDATION: PROTECTED_SLAG_V8$1 + "/content/searchRegionRecommendation",
2397
- CONTENT_HISTORY: PROTECTED_SLAG_V8$1 + "/user/history",
2398
- CONTENT_HISTORYV2: "/apis/proxies/v8/read/content-progres",
2399
- COURSE_BATCH_LIST: "/apis/proxies/v8/learner/course/v1/batch/list",
2400
- COURSE_BATCH: "/apis/proxies/v8/course/v1/batch/read",
2401
- AUTO_ASSIGN_BATCH: "/apis/protected/v8/cohorts/user/autoenrollment/",
2402
- AUTO_ASSIGN_CURATED_BATCH: "/apis/proxies/v8/curatedprogram/v1/enrol",
2403
- AUTO_ASSIGN_OPEN_PROGRAM: "/apis/proxies/v8/openprogram/v1/enrol",
2404
- USER_CONTINUE_LEARNING: PROTECTED_SLAG_V8$1 + "/user/history/continue",
2405
- CONTENT_RATING: PROTECTED_SLAG_V8$1 + "/user/rating",
2406
- COLLECTION_HIERARCHY: (ɵ0$1),
2407
- REGISTRATION_STATUS: PROTECTED_SLAG_V8$1 + "/admin/userRegistration/checkUserRegistrationContent",
2408
- MARK_AS_COMPLETE_META: (ɵ1$1),
2409
- ENROLL_BATCH: "/apis/proxies/v8/learner/course/v1/enrol",
2410
- ENROLL_BATCH_WF: "/apis/proxies/v8/workflow/blendedprogram/enrol",
2411
- WITHDRAW_BATCH_WF: "/apis/proxies/v8/workflow/blendedprogram/unenrol",
2412
- BLENDED_USER_WF: "/apis/proxies/v8/workflow/blendedprogram/user/search",
2413
- BLENDED_USER_COUNT: "apis/proxies/v8/workflow/blendedprogram/enrol/status/count",
2414
- CERT_ADD_TEMPLATE: PROTECTED_SLAG_V8$1 + "/cohorts/course/batch/cert/template/add",
2415
- CERT_ISSUE: PROTECTED_SLAG_V8$1 + "/cohorts/course/batch/cert/issue",
2416
- CERT_DOWNLOAD: (ɵ2$1),
2417
- READ_KARMAPOINTS: "/apis/proxies/v8/karmapoints/read",
2418
- CONTENT_READ: (ɵ3$1),
2419
- READ_COURSE_KARMAPOINTS: '/apis/proxies/v8/karmapoints/user/course/read',
2420
- CLAIM_KARMAPOINTS: '/apis/proxies/v8/claimkarmapoints',
2421
- USER_KARMA_POINTS: '/apis/proxies/v8/user/totalkarmapoints',
2422
- AGGREGATION_SEARCH: '/apis/proxies/v8/content/aggregation/search',
2423
- FEATURE_SEARCH: '/apis/proxies/v8/featured/content/search',
2424
- };
2425
- var WidgetContentLibService = /** @class */ (function () {
2426
- function WidgetContentLibService(http, configSvc, userSvc) {
2427
- this.http = http;
2428
- this.configSvc = configSvc;
2429
- this.userSvc = userSvc;
2430
- this.tocConfigData = new rxjs.BehaviorSubject({});
2431
- this.tocConfigData$ = this.tocConfigData.asObservable();
2432
- this.telemetryData = new rxjs.Subject();
2433
- this.telemetryData$ = this.telemetryData.asObservable();
2434
- this.programChildCourseResumeData = new rxjs.BehaviorSubject({});
2435
- this.programChildCourseResumeData$ = this.programChildCourseResumeData.asObservable();
2436
- }
2437
2042
  /**
2438
- * @param {?} message
2043
+ * @param {?} req
2439
2044
  * @return {?}
2440
2045
  */
2441
- WidgetContentLibService.prototype.changeTelemetryData = /**
2442
- * @param {?} message
2046
+ WidgetContentService.prototype.fetchBlendedUserWF = /**
2047
+ * @param {?} req
2443
2048
  * @return {?}
2444
2049
  */
2445
- function (message) {
2446
- this.telemetryData.next(message);
2050
+ function (req) {
2051
+ return this.http
2052
+ .post(API_END_POINTS.BLENDED_USER_WF, req)
2053
+ .toPromise();
2447
2054
  };
2448
2055
  /**
2449
- * @param {?} primaryCategory
2056
+ * @param {?} req
2450
2057
  * @return {?}
2451
2058
  */
2452
- WidgetContentLibService.prototype.isResource = /**
2453
- * @param {?} primaryCategory
2059
+ WidgetContentService.prototype.fetchBlendedUserCOUNT = /**
2060
+ * @param {?} req
2454
2061
  * @return {?}
2455
2062
  */
2456
- function (primaryCategory) {
2457
- if (primaryCategory) {
2458
- /** @type {?} */
2459
- var isResource = (primaryCategory === NsContent.EResourcePrimaryCategories.LEARNING_RESOURCE) ||
2460
- (primaryCategory === NsContent.EResourcePrimaryCategories.PRACTICE_RESOURCE) ||
2461
- (primaryCategory === NsContent.EResourcePrimaryCategories.FINAL_ASSESSMENT) ||
2462
- (primaryCategory === NsContent.EResourcePrimaryCategories.COMP_ASSESSMENT) ||
2463
- (primaryCategory === NsContent.EResourcePrimaryCategories.OFFLINE_SESSION);
2464
- return isResource;
2465
- }
2466
- return false;
2063
+ function (req) {
2064
+ return this.http
2065
+ .post(API_END_POINTS.BLENDED_USER_COUNT, req)
2066
+ .toPromise();
2467
2067
  };
2468
2068
  /**
2469
- * @param {?} identifier
2069
+ * @param {?} contentIds
2470
2070
  * @return {?}
2471
2071
  */
2472
- WidgetContentLibService.prototype.fetchMarkAsCompleteMeta = /**
2473
- * @param {?} identifier
2072
+ WidgetContentService.prototype.fetchContentLikes = /**
2073
+ * @param {?} contentIds
2474
2074
  * @return {?}
2475
2075
  */
2476
- function (identifier) {
2477
- // tslint:disable-next-line
2478
- /** @type {?} */
2479
- var url = API_END_POINTS$1.MARK_AS_COMPLETE_META(identifier)
2480
- // return this.http.get(url).toPromise()
2481
- ;
2482
- // return this.http.get(url).toPromise()
2483
- if (url) { }
2484
- return rxjs.of().toPromise();
2076
+ function (contentIds) {
2077
+ return this.http
2078
+ .post(API_END_POINTS.CONTENT_LIKES, contentIds)
2079
+ .toPromise();
2485
2080
  };
2486
2081
  /**
2487
- * @param {?} data
2082
+ * @param {?} contentIds
2488
2083
  * @return {?}
2489
2084
  */
2490
- WidgetContentLibService.prototype.updateTocConfig = /**
2491
- * @param {?} data
2085
+ WidgetContentService.prototype.fetchContentRatings = /**
2086
+ * @param {?} contentIds
2492
2087
  * @return {?}
2493
2088
  */
2494
- function (data) {
2495
- this.tocConfigData.next(data);
2089
+ function (contentIds) {
2090
+ if (contentIds) { }
2091
+ // return this.http
2092
+ // .post(`${API_END_POINTS.CONTENT_RATING}/rating`, contentIds)
2093
+ // .toPromise()
2094
+ return rxjs.of().toPromise();
2496
2095
  };
2497
2096
  /**
2498
2097
  * @param {?} contentId
2499
- * @param {?=} hierarchyType
2500
- * @param {?=} _additionalFields
2501
- * @param {?=} primaryCategory
2502
2098
  * @return {?}
2503
2099
  */
2504
- WidgetContentLibService.prototype.fetchContent = /**
2100
+ WidgetContentService.prototype.fetchContentHistory = /**
2505
2101
  * @param {?} contentId
2506
- * @param {?=} hierarchyType
2507
- * @param {?=} _additionalFields
2508
- * @param {?=} primaryCategory
2509
2102
  * @return {?}
2510
2103
  */
2511
- function (contentId, hierarchyType, _additionalFields, primaryCategory) {
2512
- if (hierarchyType === void 0) { hierarchyType = 'detail'; }
2513
- if (_additionalFields === void 0) { _additionalFields = []; }
2514
- // const url = `${API_END_POINTS.CONTENT}/${contentId}?hierarchyType=${hierarchyType}`
2515
- /** @type {?} */
2516
- var url = '';
2517
- /** @type {?} */
2518
- var forPreview = window.location.href.includes('/public/') || window.location.href.includes('&preview=true');
2519
- if (primaryCategory && this.isResource(primaryCategory)) {
2520
- if (!forPreview) {
2521
- url = "/apis/proxies/v8/action/content/v3/read/" + contentId;
2522
- }
2523
- else {
2524
- url = "/api/content/v1/read/" + contentId;
2525
- }
2526
- }
2527
- else {
2528
- if (!forPreview) {
2529
- url = "/apis/proxies/v8/action/content/v3/hierarchy/" + contentId + "?hierarchyType=" + hierarchyType;
2530
- }
2531
- else {
2532
- /** @type {?} */
2533
- var forcreator = window.location.href.includes('editMode=true');
2534
- if (forcreator) {
2535
- url = "apis/proxies/v8/action/content/v3/hierarchy/" + contentId + "?mode=edit";
2536
- }
2537
- else {
2538
- url = "/api/course/v1/hierarchy/" + contentId + "?hierarchyType=" + hierarchyType;
2539
- }
2540
- }
2541
- }
2542
- // return this.http
2543
- // .post<NsContent.IContent>(url, { additionalFields })
2544
- // .pipe(retry(1))
2545
- return this.http
2546
- .get(url)
2547
- .pipe(operators.shareReplay(1));
2548
- // if (apiData && apiData.result) {
2549
- // return apiData.result.content
2550
- // }
2104
+ function (contentId) {
2105
+ return this.http.get(API_END_POINTS.CONTENT_HISTORY + "/" + contentId);
2551
2106
  };
2552
2107
  /**
2553
- * @param {?} contentId
2108
+ * @param {?} req
2554
2109
  * @return {?}
2555
2110
  */
2556
- WidgetContentLibService.prototype.fetchAuthoringContent = /**
2557
- * @param {?} contentId
2111
+ WidgetContentService.prototype.fetchContentHistoryV2 = /**
2112
+ * @param {?} req
2558
2113
  * @return {?}
2559
2114
  */
2560
- function (contentId) {
2561
- /** @type {?} */
2562
- var forcreator = window.location.href.includes('editMode=true');
2115
+ function (req) {
2116
+ var _this = this;
2117
+ req.request.fields = ['progressdetails'];
2563
2118
  /** @type {?} */
2564
- var url = '';
2565
- if (forcreator) {
2566
- url = "apis/proxies/v8/action/content/v3/hierarchy/" + contentId + "?mode=edit";
2567
- }
2568
- else {
2569
- url = API_END_POINTS$1.AUTHORING_CONTENT + "/" + contentId + "?hierarchyType=detail";
2570
- }
2571
- return this.http.get(url).pipe(operators.shareReplay(1), (/**
2572
- * @param {?} r
2119
+ var data = this.http.post(API_END_POINTS.CONTENT_HISTORYV2 + "/" + req.request.courseId, req);
2120
+ data.subscribe((/**
2121
+ * @param {?} subscribeData
2573
2122
  * @return {?}
2574
2123
  */
2575
- function (r) { return r; }));
2576
- };
2577
- /**
2578
- * @param {?} ids
2579
- * @return {?}
2580
- */
2581
- WidgetContentLibService.prototype.fetchMultipleContent = /**
2582
- * @param {?} ids
2583
- * @return {?}
2584
- */
2585
- function (ids) {
2586
- return this.http.get(API_END_POINTS$1.MULTIPLE_CONTENT + "/" + ids.join(','));
2587
- };
2588
- /**
2589
- * @param {?} type
2590
- * @param {?} id
2591
- * @param {?=} pageNumber
2592
- * @param {?=} pageSize
2593
- * @return {?}
2594
- */
2595
- WidgetContentLibService.prototype.fetchCollectionHierarchy = /**
2596
- * @param {?} type
2597
- * @param {?} id
2598
- * @param {?=} pageNumber
2599
- * @param {?=} pageSize
2600
- * @return {?}
2601
- */
2602
- function (type, id, pageNumber, pageSize) {
2603
- if (pageNumber === void 0) { pageNumber = 0; }
2604
- if (pageSize === void 0) { pageSize = 1; }
2605
- return this.http.get(API_END_POINTS$1.COLLECTION_HIERARCHY(type, id) + "?pageNumber=" + pageNumber + "&pageSize=" + pageSize);
2606
- };
2607
- /**
2608
- * @return {?}
2609
- */
2610
- WidgetContentLibService.prototype.fetchBlendedCourse = /**
2611
- * @return {?}
2612
- */
2613
- function () {
2614
- };
2615
- /**
2616
- * @param {?} req
2617
- * @return {?}
2618
- */
2619
- WidgetContentLibService.prototype.fetchCourseBatches = /**
2620
- * @param {?} req
2621
- * @return {?}
2622
- */
2623
- function (req) {
2624
- return this.http
2625
- .post(API_END_POINTS$1.COURSE_BATCH_LIST, req)
2626
- .pipe(operators.retry(1), operators.map((/**
2627
- * @param {?} data
2628
- * @return {?}
2629
- */
2630
- function (data) { return data.result.response; })));
2631
- };
2632
- // fetch individual batch
2633
- // fetch individual batch
2634
- /**
2635
- * @param {?} batchId
2636
- * @return {?}
2637
- */
2638
- WidgetContentLibService.prototype.fetchCourseBatch =
2639
- // fetch individual batch
2640
- /**
2641
- * @param {?} batchId
2642
- * @return {?}
2643
- */
2644
- function (batchId) {
2645
- return this.http.get(API_END_POINTS$1.COURSE_BATCH + "/" + batchId);
2646
- };
2647
- /**
2648
- * @param {?} identifier
2649
- * @return {?}
2650
- */
2651
- WidgetContentLibService.prototype.autoAssignBatchApi = /**
2652
- * @param {?} identifier
2653
- * @return {?}
2654
- */
2655
- function (identifier) {
2656
- return this.http.get("" + API_END_POINTS$1.AUTO_ASSIGN_BATCH + identifier)
2657
- .pipe(operators.retry(1), operators.map((/**
2658
- * @param {?} data
2659
- * @return {?}
2660
- */
2661
- function (data) { return data.result.response; })));
2662
- };
2663
- /**
2664
- * @param {?} request
2665
- * @param {?} programType
2666
- * @return {?}
2667
- */
2668
- WidgetContentLibService.prototype.autoAssignCuratedBatchApi = /**
2669
- * @param {?} request
2670
- * @param {?} programType
2671
- * @return {?}
2672
- */
2673
- function (request, programType) {
2674
- /** @type {?} */
2675
- var url = programType === NsContent.ECourseCategory.MODERATED_PROGRAM ?
2676
- API_END_POINTS$1.AUTO_ASSIGN_OPEN_PROGRAM : API_END_POINTS$1.AUTO_ASSIGN_CURATED_BATCH;
2677
- return this.http.post("" + url, request)
2678
- .pipe(operators.retry(1), operators.map((/**
2679
- * @param {?} data
2680
- * @return {?}
2681
- */
2682
- function (data) { return data.result.response; })));
2683
- };
2684
- /**
2685
- * @param {?} req
2686
- * @return {?}
2687
- */
2688
- WidgetContentLibService.prototype.enrollUserToBatch = /**
2689
- * @param {?} req
2690
- * @return {?}
2691
- */
2692
- function (req) {
2693
- return this.http
2694
- .post(API_END_POINTS$1.ENROLL_BATCH, req)
2695
- .toPromise();
2696
- };
2697
- /**
2698
- * @param {?} req
2699
- * @param {?} type
2700
- * @return {?}
2701
- */
2702
- WidgetContentLibService.prototype.enrollAndUnenrollUserToBatchWF = /**
2703
- * @param {?} req
2704
- * @param {?} type
2705
- * @return {?}
2706
- */
2707
- function (req, type) {
2708
- /** @type {?} */
2709
- var url = type === 'WITHDRAW' ? API_END_POINTS$1.WITHDRAW_BATCH_WF : API_END_POINTS$1.ENROLL_BATCH_WF;
2710
- return this.http
2711
- .post(url, req)
2712
- .toPromise();
2713
- };
2714
- /**
2715
- * @param {?} req
2716
- * @return {?}
2717
- */
2718
- WidgetContentLibService.prototype.fetchBlendedUserWF = /**
2719
- * @param {?} req
2720
- * @return {?}
2721
- */
2722
- function (req) {
2723
- return this.http
2724
- .post(API_END_POINTS$1.BLENDED_USER_WF, req)
2725
- .toPromise();
2726
- };
2727
- /**
2728
- * @param {?} req
2729
- * @return {?}
2730
- */
2731
- WidgetContentLibService.prototype.fetchBlendedUserCOUNT = /**
2732
- * @param {?} req
2733
- * @return {?}
2734
- */
2735
- function (req) {
2736
- return this.http
2737
- .post(API_END_POINTS$1.BLENDED_USER_COUNT, req)
2738
- .toPromise();
2739
- };
2740
- /**
2741
- * @param {?} contentIds
2742
- * @return {?}
2743
- */
2744
- WidgetContentLibService.prototype.fetchContentLikes = /**
2745
- * @param {?} contentIds
2746
- * @return {?}
2747
- */
2748
- function (contentIds) {
2749
- return this.http
2750
- .post(API_END_POINTS$1.CONTENT_LIKES, contentIds)
2751
- .toPromise();
2752
- };
2753
- /**
2754
- * @param {?} contentIds
2755
- * @return {?}
2756
- */
2757
- WidgetContentLibService.prototype.fetchContentRatings = /**
2758
- * @param {?} contentIds
2759
- * @return {?}
2760
- */
2761
- function (contentIds) {
2762
- if (contentIds) { }
2763
- // return this.http
2764
- // .post(`${API_END_POINTS.CONTENT_RATING}/rating`, contentIds)
2765
- // .toPromise()
2766
- return rxjs.of().toPromise();
2767
- };
2768
- /**
2769
- * @param {?} contentId
2770
- * @return {?}
2771
- */
2772
- WidgetContentLibService.prototype.fetchContentHistory = /**
2773
- * @param {?} contentId
2774
- * @return {?}
2775
- */
2776
- function (contentId) {
2777
- return this.http.get(API_END_POINTS$1.CONTENT_HISTORY + "/" + contentId);
2778
- };
2779
- /**
2780
- * @param {?} req
2781
- * @return {?}
2782
- */
2783
- WidgetContentLibService.prototype.fetchContentHistoryV2 = /**
2784
- * @param {?} req
2785
- * @return {?}
2786
- */
2787
- function (req) {
2788
- var _this = this;
2789
- req.request.fields = ['progressdetails'];
2790
- /** @type {?} */
2791
- var data = this.http.post(API_END_POINTS$1.CONTENT_HISTORYV2 + "/" + req.request.courseId, req);
2792
- data.subscribe((/**
2793
- * @param {?} subscribeData
2794
- * @return {?}
2795
- */
2796
- function (subscribeData) {
2797
- _this.programChildCourseResumeData.next({ resumeData: subscribeData.result.contentList, courseId: req.request.courseId });
2798
- }));
2799
- return data;
2124
+ function (subscribeData) {
2125
+ _this.programChildCourseResumeData.next({ resumeData: subscribeData.result.contentList, courseId: req.request.courseId });
2126
+ }));
2127
+ return data;
2800
2128
  };
2801
2129
  /**
2802
2130
  * @param {?} id
@@ -2804,7 +2132,7 @@
2804
2132
  * @param {?=} collectionType
2805
2133
  * @return {?}
2806
2134
  */
2807
- WidgetContentLibService.prototype.continueLearning = /**
2135
+ WidgetContentService.prototype.continueLearning = /**
2808
2136
  * @param {?} id
2809
2137
  * @param {?=} collectionId
2810
2138
  * @param {?=} collectionType
@@ -2871,7 +2199,7 @@
2871
2199
  * @param {?} content
2872
2200
  * @return {?}
2873
2201
  */
2874
- WidgetContentLibService.prototype.saveContinueLearning = /**
2202
+ WidgetContentService.prototype.saveContinueLearning = /**
2875
2203
  * @param {?} content
2876
2204
  * @return {?}
2877
2205
  */
@@ -2886,7 +2214,7 @@
2886
2214
  * @param {?} _contentId
2887
2215
  * @return {?}
2888
2216
  */
2889
- WidgetContentLibService.prototype.setS3Cookie = /**
2217
+ WidgetContentService.prototype.setS3Cookie = /**
2890
2218
  * @param {?} _contentId
2891
2219
  * @return {?}
2892
2220
  */
@@ -2899,11 +2227,11 @@
2899
2227
  /**
2900
2228
  * @return {?}
2901
2229
  */
2902
- WidgetContentLibService.prototype.setS3ImageCookie = /**
2230
+ WidgetContentService.prototype.setS3ImageCookie = /**
2903
2231
  * @return {?}
2904
2232
  */
2905
2233
  function () {
2906
- return this.http.post(API_END_POINTS$1.SET_S3_IMAGE_COOKIE, {}).pipe(operators.catchError((/**
2234
+ return this.http.post(API_END_POINTS.SET_S3_IMAGE_COOKIE, {}).pipe(operators.catchError((/**
2907
2235
  * @param {?} _err
2908
2236
  * @return {?}
2909
2237
  */
@@ -2913,35 +2241,35 @@
2913
2241
  * @param {?} url
2914
2242
  * @return {?}
2915
2243
  */
2916
- WidgetContentLibService.prototype.fetchManifest = /**
2244
+ WidgetContentService.prototype.fetchManifest = /**
2917
2245
  * @param {?} url
2918
2246
  * @return {?}
2919
2247
  */
2920
2248
  function (url) {
2921
- return this.http.post(API_END_POINTS$1.FETCH_MANIFEST, { url: url });
2249
+ return this.http.post(API_END_POINTS.FETCH_MANIFEST, { url: url });
2922
2250
  };
2923
2251
  /**
2924
2252
  * @param {?} url
2925
2253
  * @return {?}
2926
2254
  */
2927
- WidgetContentLibService.prototype.fetchWebModuleContent = /**
2255
+ WidgetContentService.prototype.fetchWebModuleContent = /**
2928
2256
  * @param {?} url
2929
2257
  * @return {?}
2930
2258
  */
2931
2259
  function (url) {
2932
- return this.http.get(API_END_POINTS$1.FETCH_WEB_MODULE_FILES + "?url=" + encodeURIComponent(url));
2260
+ return this.http.get(API_END_POINTS.FETCH_WEB_MODULE_FILES + "?url=" + encodeURIComponent(url));
2933
2261
  };
2934
2262
  /**
2935
2263
  * @param {?} req
2936
2264
  * @return {?}
2937
2265
  */
2938
- WidgetContentLibService.prototype.search = /**
2266
+ WidgetContentService.prototype.search = /**
2939
2267
  * @param {?} req
2940
2268
  * @return {?}
2941
2269
  */
2942
2270
  function (req) {
2943
2271
  req.query = req.query || '';
2944
- return this.http.post(API_END_POINTS$1.CONTENT_SEARCH_V5, {
2272
+ return this.http.post(API_END_POINTS.CONTENT_SEARCH_V5, {
2945
2273
  request: req,
2946
2274
  });
2947
2275
  };
@@ -2949,7 +2277,7 @@
2949
2277
  * @param {?} req
2950
2278
  * @return {?}
2951
2279
  */
2952
- WidgetContentLibService.prototype.searchRegionRecommendation = /**
2280
+ WidgetContentService.prototype.searchRegionRecommendation = /**
2953
2281
  * @param {?} req
2954
2282
  * @return {?}
2955
2283
  */
@@ -2959,13 +2287,13 @@
2959
2287
  (req.preLabelValue || '') +
2960
2288
  ((this.configSvc.userProfile && this.configSvc.userProfile.country) || '');
2961
2289
  req.filters = __assign({}, req.filters, { labels: [req.preLabelValue || ''] });
2962
- return this.http.post(API_END_POINTS$1.CONTENT_SEARCH_REGION_RECOMMENDATION, { request: req });
2290
+ return this.http.post(API_END_POINTS.CONTENT_SEARCH_REGION_RECOMMENDATION, { request: req });
2963
2291
  };
2964
2292
  /**
2965
2293
  * @param {?} req
2966
2294
  * @return {?}
2967
2295
  */
2968
- WidgetContentLibService.prototype.searchV6 = /**
2296
+ WidgetContentService.prototype.searchV6 = /**
2969
2297
  * @param {?} req
2970
2298
  * @return {?}
2971
2299
  */
@@ -2976,59 +2304,59 @@
2976
2304
  if (apiPath) {
2977
2305
  return this.http.get(apiPath);
2978
2306
  }
2979
- return this.http.post(API_END_POINTS$1.CONTENT_SEARCH_V6, req);
2307
+ return this.http.post(API_END_POINTS.CONTENT_SEARCH_V6, req);
2980
2308
  };
2981
2309
  /**
2982
2310
  * @param {?} req
2983
2311
  * @return {?}
2984
2312
  */
2985
- WidgetContentLibService.prototype.searchRelatedCBPV6 = /**
2313
+ WidgetContentService.prototype.searchRelatedCBPV6 = /**
2986
2314
  * @param {?} req
2987
2315
  * @return {?}
2988
2316
  */
2989
2317
  function (req) {
2990
- return this.http.post(API_END_POINTS$1.CONTENT_SEARCH_RELATED_CBP_V6, req);
2318
+ return this.http.post(API_END_POINTS.CONTENT_SEARCH_RELATED_CBP_V6, req);
2991
2319
  };
2992
2320
  /**
2993
2321
  * @param {?} contentId
2994
2322
  * @return {?}
2995
2323
  */
2996
- WidgetContentLibService.prototype.fetchContentRating = /**
2324
+ WidgetContentService.prototype.fetchContentRating = /**
2997
2325
  * @param {?} contentId
2998
2326
  * @return {?}
2999
2327
  */
3000
2328
  function (contentId) {
3001
- return this.http.get(API_END_POINTS$1.CONTENT_RATING + "/" + contentId);
2329
+ return this.http.get(API_END_POINTS.CONTENT_RATING + "/" + contentId);
3002
2330
  };
3003
2331
  /**
3004
2332
  * @param {?} contentId
3005
2333
  * @return {?}
3006
2334
  */
3007
- WidgetContentLibService.prototype.deleteContentRating = /**
2335
+ WidgetContentService.prototype.deleteContentRating = /**
3008
2336
  * @param {?} contentId
3009
2337
  * @return {?}
3010
2338
  */
3011
2339
  function (contentId) {
3012
- return this.http.delete(API_END_POINTS$1.CONTENT_RATING + "/" + contentId);
2340
+ return this.http.delete(API_END_POINTS.CONTENT_RATING + "/" + contentId);
3013
2341
  };
3014
2342
  /**
3015
2343
  * @param {?} contentId
3016
2344
  * @param {?} data
3017
2345
  * @return {?}
3018
2346
  */
3019
- WidgetContentLibService.prototype.addContentRating = /**
2347
+ WidgetContentService.prototype.addContentRating = /**
3020
2348
  * @param {?} contentId
3021
2349
  * @param {?} data
3022
2350
  * @return {?}
3023
2351
  */
3024
2352
  function (contentId, data) {
3025
- return this.http.post(API_END_POINTS$1.CONTENT_RATING + "/" + contentId, data);
2353
+ return this.http.post(API_END_POINTS.CONTENT_RATING + "/" + contentId, data);
3026
2354
  };
3027
2355
  /**
3028
2356
  * @param {?} content
3029
2357
  * @return {?}
3030
2358
  */
3031
- WidgetContentLibService.prototype.getFirstChildInHierarchy = /**
2359
+ WidgetContentService.prototype.getFirstChildInHierarchy = /**
3032
2360
  * @param {?} content
3033
2361
  * @return {?}
3034
2362
  */
@@ -3067,18 +2395,18 @@
3067
2395
  * @param {?} source
3068
2396
  * @return {?}
3069
2397
  */
3070
- WidgetContentLibService.prototype.getRegistrationStatus = /**
2398
+ WidgetContentService.prototype.getRegistrationStatus = /**
3071
2399
  * @param {?} source
3072
2400
  * @return {?}
3073
2401
  */
3074
2402
  function (source) {
3075
- return this.http.get(API_END_POINTS$1.REGISTRATION_STATUS + "/" + source).toPromise();
2403
+ return this.http.get(API_END_POINTS.REGISTRATION_STATUS + "/" + source).toPromise();
3076
2404
  };
3077
2405
  /**
3078
2406
  * @param {?} url
3079
2407
  * @return {?}
3080
2408
  */
3081
- WidgetContentLibService.prototype.fetchConfig = /**
2409
+ WidgetContentService.prototype.fetchConfig = /**
3082
2410
  * @param {?} url
3083
2411
  * @return {?}
3084
2412
  */
@@ -3089,59 +2417,59 @@
3089
2417
  * @param {?} body
3090
2418
  * @return {?}
3091
2419
  */
3092
- WidgetContentLibService.prototype.addCertTemplate = /**
2420
+ WidgetContentService.prototype.addCertTemplate = /**
3093
2421
  * @param {?} body
3094
2422
  * @return {?}
3095
2423
  */
3096
2424
  function (body) {
3097
- return this.http.patch("" + API_END_POINTS$1.CERT_ADD_TEMPLATE, body);
2425
+ return this.http.patch("" + API_END_POINTS.CERT_ADD_TEMPLATE, body);
3098
2426
  };
3099
2427
  /**
3100
2428
  * @param {?} body
3101
2429
  * @return {?}
3102
2430
  */
3103
- WidgetContentLibService.prototype.issueCert = /**
2431
+ WidgetContentService.prototype.issueCert = /**
3104
2432
  * @param {?} body
3105
2433
  * @return {?}
3106
2434
  */
3107
2435
  function (body) {
3108
- return this.http.post("" + API_END_POINTS$1.CERT_ISSUE, body);
2436
+ return this.http.post("" + API_END_POINTS.CERT_ISSUE, body);
3109
2437
  };
3110
2438
  /**
3111
2439
  * @param {?} certId
3112
2440
  * @return {?}
3113
2441
  */
3114
- WidgetContentLibService.prototype.downloadCert = /**
2442
+ WidgetContentService.prototype.downloadCert = /**
3115
2443
  * @param {?} certId
3116
2444
  * @return {?}
3117
2445
  */
3118
2446
  function (certId) {
3119
- return this.http.get("" + API_END_POINTS$1.CERT_DOWNLOAD(certId));
2447
+ return this.http.get("" + API_END_POINTS.CERT_DOWNLOAD(certId));
3120
2448
  };
3121
2449
  /**
3122
2450
  * @param {?} req
3123
2451
  * @return {?}
3124
2452
  */
3125
- WidgetContentLibService.prototype.trendingContentSearch = /**
2453
+ WidgetContentService.prototype.trendingContentSearch = /**
3126
2454
  * @param {?} req
3127
2455
  * @return {?}
3128
2456
  */
3129
2457
  function (req) {
3130
2458
  req.query = req.query || '';
3131
- return this.http.post(API_END_POINTS$1.TRENDING_CONTENT_SEARCH, req);
2459
+ return this.http.post(API_END_POINTS.TRENDING_CONTENT_SEARCH, req);
3132
2460
  };
3133
2461
  /**
3134
2462
  * @param {?} limit
3135
2463
  * @param {?} offset
3136
2464
  * @return {?}
3137
2465
  */
3138
- WidgetContentLibService.prototype.getKarmaPoitns = /**
2466
+ WidgetContentService.prototype.getKarmaPoitns = /**
3139
2467
  * @param {?} limit
3140
2468
  * @param {?} offset
3141
2469
  * @return {?}
3142
2470
  */
3143
2471
  function (limit, offset) {
3144
- return this.http.post(API_END_POINTS$1.READ_KARMAPOINTS, { limit: limit, offset: offset }).pipe(operators.catchError((/**
2472
+ return this.http.post(API_END_POINTS.READ_KARMAPOINTS, { limit: limit, offset: offset }).pipe(operators.catchError((/**
3145
2473
  * @param {?} _err
3146
2474
  * @return {?}
3147
2475
  */
@@ -3151,7 +2479,7 @@
3151
2479
  * @param {?} contentId
3152
2480
  * @return {?}
3153
2481
  */
3154
- WidgetContentLibService.prototype.fetchProgramContent = /**
2482
+ WidgetContentService.prototype.fetchProgramContent = /**
3155
2483
  * @param {?} contentId
3156
2484
  * @return {?}
3157
2485
  */
@@ -3161,7 +2489,7 @@
3161
2489
  /** @type {?} */
3162
2490
  var forPreview = window.location.href.includes('/public/') || window.location.href.includes('&preview=true');
3163
2491
  if (!forPreview) {
3164
- return this.http.get(API_END_POINTS$1.CONTENT_READ(contentId));
2492
+ return this.http.get(API_END_POINTS.CONTENT_READ(contentId));
3165
2493
  }
3166
2494
  url = "/api/content/v1/read/" + contentId;
3167
2495
  return this.http.get(url);
@@ -3171,112 +2499,81 @@
3171
2499
  * @param {?} request
3172
2500
  * @return {?}
3173
2501
  */
3174
- WidgetContentLibService.prototype.getCourseKarmaPoints = /**
2502
+ WidgetContentService.prototype.getCourseKarmaPoints = /**
3175
2503
  * @param {?} request
3176
2504
  * @return {?}
3177
2505
  */
3178
2506
  function (request) {
3179
- return this.http.post(API_END_POINTS$1.READ_COURSE_KARMAPOINTS, request);
2507
+ return this.http.post(API_END_POINTS.READ_COURSE_KARMAPOINTS, request);
3180
2508
  };
3181
2509
  /**
3182
2510
  * @param {?} request
3183
2511
  * @return {?}
3184
2512
  */
3185
- WidgetContentLibService.prototype.claimKarmapoints = /**
2513
+ WidgetContentService.prototype.claimKarmapoints = /**
3186
2514
  * @param {?} request
3187
2515
  * @return {?}
3188
2516
  */
3189
2517
  function (request) {
3190
- return this.http.post(API_END_POINTS$1.CLAIM_KARMAPOINTS, request);
2518
+ return this.http.post(API_END_POINTS.CLAIM_KARMAPOINTS, request);
3191
2519
  };
3192
2520
  /**
3193
2521
  * @return {?}
3194
2522
  */
3195
- WidgetContentLibService.prototype.userKarmaPoints = /**
2523
+ WidgetContentService.prototype.userKarmaPoints = /**
3196
2524
  * @return {?}
3197
2525
  */
3198
2526
  function () {
3199
- return this.http.post(API_END_POINTS$1.USER_KARMA_POINTS, {});
2527
+ return this.http.post(API_END_POINTS.USER_KARMA_POINTS, {});
3200
2528
  };
3201
2529
  /**
3202
2530
  * @param {?} doId
3203
2531
  * @return {?}
3204
2532
  */
3205
- WidgetContentLibService.prototype.getEnrolledData = /**
2533
+ WidgetContentService.prototype.getEnrolledData = /**
3206
2534
  * @param {?} doId
3207
2535
  * @return {?}
3208
2536
  */
3209
2537
  function (doId) {
3210
- return __awaiter(this, void 0, void 0, function () {
3211
- var userId, responseData;
3212
- var _this = this;
3213
- return __generator(this, function (_a) {
3214
- switch (_a.label) {
3215
- case 0:
3216
- userId = this.configSvc.userProfile.userId;
3217
- return [4 /*yield*/, this.userSvc.fetchEnrollmentDataByContentId(userId, doId).toPromise().then((/**
3218
- * @param {?} res
3219
- * @return {?}
3220
- */
3221
- function (res) { return __awaiter(_this, void 0, void 0, function () {
3222
- return __generator(this, function (_a) {
3223
- if (res && res.courses && res.courses.length) {
3224
- return [2 /*return*/, res.courses];
3225
- }
3226
- else {
3227
- return [2 /*return*/, []];
3228
- }
3229
- return [2 /*return*/];
3230
- });
3231
- }); })).catch((/**
3232
- * @param {?} _err
3233
- * @return {?}
3234
- */
3235
- function (_err) {
3236
- return [];
3237
- }))];
3238
- case 1:
3239
- responseData = _a.sent();
3240
- return [2 /*return*/, responseData || []];
3241
- }
3242
- });
3243
- });
2538
+ /** @type {?} */
2539
+ var enrollmentMapData = JSON.parse(localStorage.getItem('enrollmentMapData') || '{}');
2540
+ /** @type {?} */
2541
+ var enrolledCourseData = enrollmentMapData[doId];
2542
+ return enrolledCourseData;
3244
2543
  };
3245
2544
  /**
3246
2545
  * @param {?} content
3247
2546
  * @return {?}
3248
2547
  */
3249
- WidgetContentLibService.prototype.getResourseLink = /**
2548
+ WidgetContentService.prototype.getResourseLink = /**
3250
2549
  * @param {?} content
3251
2550
  * @return {?}
3252
2551
  */
3253
2552
  function (content) {
3254
2553
  return __awaiter(this, void 0, void 0, function () {
3255
- var enrolledCourse, enrolledCourseData, data, data;
2554
+ var enrolledCourseData, data, data;
3256
2555
  return __generator(this, function (_a) {
3257
2556
  switch (_a.label) {
3258
- case 0: return [4 /*yield*/, this.getEnrolledData(content.identifier)];
3259
- case 1:
3260
- enrolledCourse = _a.sent();
3261
- if (!(enrolledCourse && enrolledCourse.length)) return [3 /*break*/, 5];
3262
- enrolledCourseData = enrolledCourse[0];
2557
+ case 0:
2558
+ enrolledCourseData = this.getEnrolledData(content.identifier);
2559
+ if (!enrolledCourseData) return [3 /*break*/, 4];
3263
2560
  if (!(enrolledCourseData.content.courseCategory === NsContent.ECourseCategory.BLENDED_PROGRAM ||
3264
2561
  enrolledCourseData.content.courseCategory === NsContent.ECourseCategory.INVITE_ONLY_PROGRAM ||
3265
2562
  enrolledCourseData.content.courseCategory === NsContent.ECourseCategory.MODERATED_PROGRAM ||
3266
2563
  enrolledCourseData.content.primaryCategory === NsContent.EPrimaryCategory.BLENDED_PROGRAM ||
3267
- enrolledCourseData.content.primaryCategory === NsContent.EPrimaryCategory.PROGRAM)) return [3 /*break*/, 3];
2564
+ enrolledCourseData.content.primaryCategory === NsContent.EPrimaryCategory.PROGRAM)) return [3 /*break*/, 2];
3268
2565
  if (!this.isBatchInProgress(enrolledCourseData.batch)) {
3269
2566
  return [2 /*return*/, this.gotoTocPage(content)];
3270
2567
  }
3271
2568
  return [4 /*yield*/, this.checkForDataToFormUrl(content, enrolledCourseData)];
3272
- case 2:
2569
+ case 1:
3273
2570
  data = _a.sent();
3274
2571
  return [2 /*return*/, data];
3275
- case 3: return [4 /*yield*/, this.checkForDataToFormUrl(content, enrolledCourseData)];
3276
- case 4:
2572
+ case 2: return [4 /*yield*/, this.checkForDataToFormUrl(content, enrolledCourseData)];
2573
+ case 3:
3277
2574
  data = _a.sent();
3278
2575
  return [2 /*return*/, data];
3279
- case 5: return [2 /*return*/, this.gotoTocPage(content)];
2576
+ case 4: return [2 /*return*/, this.gotoTocPage(content)];
3280
2577
  }
3281
2578
  });
3282
2579
  });
@@ -3286,7 +2583,7 @@
3286
2583
  * @param {?} enrollData
3287
2584
  * @return {?}
3288
2585
  */
3289
- WidgetContentLibService.prototype.checkForDataToFormUrl = /**
2586
+ WidgetContentService.prototype.checkForDataToFormUrl = /**
3290
2587
  * @param {?} content
3291
2588
  * @param {?} enrollData
3292
2589
  * @return {?}
@@ -3344,7 +2641,7 @@
3344
2641
  * @param {?} mimeType
3345
2642
  * @return {?}
3346
2643
  */
3347
- WidgetContentLibService.prototype.getResourseDataWithData = /**
2644
+ WidgetContentService.prototype.getResourseDataWithData = /**
3348
2645
  * @param {?} content
3349
2646
  * @param {?} resourseId
3350
2647
  * @param {?} mimeType
@@ -3362,7 +2659,7 @@
3362
2659
  * @param {?} content
3363
2660
  * @return {?}
3364
2661
  */
3365
- WidgetContentLibService.prototype.gotoTocPage = /**
2662
+ WidgetContentService.prototype.gotoTocPage = /**
3366
2663
  * @param {?} content
3367
2664
  * @return {?}
3368
2665
  */
@@ -3381,7 +2678,7 @@
3381
2678
  * @param {?} batchData
3382
2679
  * @return {?}
3383
2680
  */
3384
- WidgetContentLibService.prototype.isBatchInProgress = /**
2681
+ WidgetContentService.prototype.isBatchInProgress = /**
3385
2682
  * @param {?} batchData
3386
2683
  * @return {?}
3387
2684
  */
@@ -3407,7 +2704,7 @@
3407
2704
  * @param {?} req
3408
2705
  * @return {?}
3409
2706
  */
3410
- WidgetContentLibService.prototype.postApiMethod = /**
2707
+ WidgetContentService.prototype.postApiMethod = /**
3411
2708
  * @param {?} apiUrl
3412
2709
  * @param {?} req
3413
2710
  * @return {?}
@@ -3419,7 +2716,7 @@
3419
2716
  * @param {?} apiUrl
3420
2717
  * @return {?}
3421
2718
  */
3422
- WidgetContentLibService.prototype.getApiMethod = /**
2719
+ WidgetContentService.prototype.getApiMethod = /**
3423
2720
  * @param {?} apiUrl
3424
2721
  * @return {?}
3425
2722
  */
@@ -3427,78 +2724,51 @@
3427
2724
  // req.query = req.query || '';
3428
2725
  return this.http.get(apiUrl);
3429
2726
  };
3430
- /**
3431
- * @param {?} enrollmentList
3432
- * @param {?} collectionId
3433
- * @return {?}
3434
- */
3435
- WidgetContentLibService.prototype.getEnrolledDataFromList = /**
3436
- * @param {?} enrollmentList
3437
- * @param {?} collectionId
3438
- * @return {?}
3439
- */
3440
- function (enrollmentList, collectionId) {
3441
- if (enrollmentList && enrollmentList.length) {
3442
- /** @type {?} */
3443
- var enrolledData = enrollmentList.filter((/**
3444
- * @param {?} ele
3445
- * @return {?}
3446
- */
3447
- function (ele) { return ele.collectionId === collectionId; }));
3448
- return enrolledData.length ? enrolledData[0] : {};
3449
- }
3450
- };
3451
- WidgetContentLibService.decorators = [
2727
+ WidgetContentService.decorators = [
3452
2728
  { type: core.Injectable, args: [{
3453
2729
  providedIn: 'root',
3454
2730
  },] }
3455
2731
  ];
3456
2732
  /** @nocollapse */
3457
- WidgetContentLibService.ctorParameters = function () { return [
2733
+ WidgetContentService.ctorParameters = function () { return [
3458
2734
  { type: http.HttpClient },
3459
- { type: utilsV2.ConfigurationsService },
3460
- { type: WidgetUserServiceLib }
2735
+ { type: utilsV2.ConfigurationsService }
3461
2736
  ]; };
3462
- /** @nocollapse */ WidgetContentLibService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function WidgetContentLibService_Factory() { return new WidgetContentLibService(core.ɵɵinject(http.HttpClient), core.ɵɵinject(utilsV2.ConfigurationsService), core.ɵɵinject(WidgetUserServiceLib)); }, token: WidgetContentLibService, providedIn: "root" });
3463
- return WidgetContentLibService;
2737
+ /** @nocollapse */ WidgetContentService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function WidgetContentService_Factory() { return new WidgetContentService(core.ɵɵinject(http.HttpClient), core.ɵɵinject(utilsV2.ConfigurationsService)); }, token: WidgetContentService, providedIn: "root" });
2738
+ return WidgetContentService;
3464
2739
  }());
3465
2740
  if (false) {
3466
2741
  /** @type {?} */
3467
- WidgetContentLibService.prototype.tocConfigData;
2742
+ WidgetContentService.prototype.tocConfigData;
3468
2743
  /** @type {?} */
3469
- WidgetContentLibService.prototype.tocConfigData$;
2744
+ WidgetContentService.prototype.tocConfigData$;
3470
2745
  /**
3471
2746
  * @type {?}
3472
2747
  * @private
3473
2748
  */
3474
- WidgetContentLibService.prototype.telemetryData;
2749
+ WidgetContentService.prototype.telemetryData;
3475
2750
  /** @type {?} */
3476
- WidgetContentLibService.prototype.telemetryData$;
2751
+ WidgetContentService.prototype.telemetryData$;
3477
2752
  /** @type {?} */
3478
- WidgetContentLibService.prototype.currentMetaData;
2753
+ WidgetContentService.prototype.currentMetaData;
3479
2754
  /** @type {?} */
3480
- WidgetContentLibService.prototype.currentContentReadMetaData;
2755
+ WidgetContentService.prototype.currentContentReadMetaData;
3481
2756
  /** @type {?} */
3482
- WidgetContentLibService.prototype.currentBatchEnrollmentList;
2757
+ WidgetContentService.prototype.currentBatchEnrollmentList;
3483
2758
  /** @type {?} */
3484
- WidgetContentLibService.prototype.programChildCourseResumeData;
2759
+ WidgetContentService.prototype.programChildCourseResumeData;
3485
2760
  /** @type {?} */
3486
- WidgetContentLibService.prototype.programChildCourseResumeData$;
3487
- /**
3488
- * @type {?}
3489
- * @private
3490
- */
3491
- WidgetContentLibService.prototype.http;
2761
+ WidgetContentService.prototype.programChildCourseResumeData$;
3492
2762
  /**
3493
2763
  * @type {?}
3494
2764
  * @private
3495
2765
  */
3496
- WidgetContentLibService.prototype.configSvc;
2766
+ WidgetContentService.prototype.http;
3497
2767
  /**
3498
2768
  * @type {?}
3499
2769
  * @private
3500
2770
  */
3501
- WidgetContentLibService.prototype.userSvc;
2771
+ WidgetContentService.prototype.configSvc;
3502
2772
  }
3503
2773
 
3504
2774
  /**
@@ -3916,91 +3186,697 @@
3916
3186
  var translationKey = type + '.' + nlabel + subtype;
3917
3187
  return this.translate.instant(translationKey);
3918
3188
  }
3919
- // tslint:disable-next-line: prefer-template
3920
- /** @type {?} */
3921
- var translationKeyn = type + '.' + nlabel;
3922
- return this.translate.instant(translationKeyn);
3189
+ // tslint:disable-next-line: prefer-template
3190
+ /** @type {?} */
3191
+ var translationKeyn = type + '.' + nlabel;
3192
+ return this.translate.instant(translationKeyn);
3193
+ };
3194
+ /**
3195
+ * @param {?} data
3196
+ * @return {?}
3197
+ */
3198
+ MultilingualTranslationsService.prototype.editProfileDetailsAPI = /**
3199
+ * @param {?} data
3200
+ * @return {?}
3201
+ */
3202
+ function (data) {
3203
+ return this.http.post(this.editProfileDetails, data);
3204
+ };
3205
+ /**
3206
+ * @param {?} state
3207
+ * @param {?} lang
3208
+ * @param {?} userid
3209
+ * @return {?}
3210
+ */
3211
+ MultilingualTranslationsService.prototype.updatelanguageSelected = /**
3212
+ * @param {?} state
3213
+ * @param {?} lang
3214
+ * @param {?} userid
3215
+ * @return {?}
3216
+ */
3217
+ function (state, lang, userid) {
3218
+ this.languageSelected.next(state);
3219
+ this.translate.use(lang);
3220
+ this.selectedLang = lang;
3221
+ if (userid) {
3222
+ /** @type {?} */
3223
+ var reqUpdates = {
3224
+ request: {
3225
+ userId: userid,
3226
+ profileDetails: {
3227
+ additionalProperties: {
3228
+ webPortalLang: this.selectedLang,
3229
+ },
3230
+ },
3231
+ },
3232
+ };
3233
+ this.editProfileDetailsAPI(reqUpdates).subscribe();
3234
+ }
3235
+ };
3236
+ MultilingualTranslationsService.decorators = [
3237
+ { type: core.Injectable, args: [{
3238
+ providedIn: 'root',
3239
+ },] }
3240
+ ];
3241
+ /** @nocollapse */
3242
+ MultilingualTranslationsService.ctorParameters = function () { return [
3243
+ { type: core$1.TranslateService },
3244
+ { type: http.HttpClient },
3245
+ { type: ConfigurationsService }
3246
+ ]; };
3247
+ /** @nocollapse */ MultilingualTranslationsService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function MultilingualTranslationsService_Factory() { return new MultilingualTranslationsService(core.ɵɵinject(core$1.TranslateService), core.ɵɵinject(http.HttpClient), core.ɵɵinject(ConfigurationsService)); }, token: MultilingualTranslationsService, providedIn: "root" });
3248
+ return MultilingualTranslationsService;
3249
+ }());
3250
+ if (false) {
3251
+ /** @type {?} */
3252
+ MultilingualTranslationsService.prototype.selectedLang;
3253
+ /** @type {?} */
3254
+ MultilingualTranslationsService.prototype.languageSelected;
3255
+ /** @type {?} */
3256
+ MultilingualTranslationsService.prototype.languageSelectedObservable;
3257
+ /** @type {?} */
3258
+ MultilingualTranslationsService.prototype.editProfileDetails;
3259
+ /**
3260
+ * @type {?}
3261
+ * @private
3262
+ */
3263
+ MultilingualTranslationsService.prototype.translate;
3264
+ /**
3265
+ * @type {?}
3266
+ * @private
3267
+ */
3268
+ MultilingualTranslationsService.prototype.http;
3269
+ /**
3270
+ * @type {?}
3271
+ * @private
3272
+ */
3273
+ MultilingualTranslationsService.prototype.configSvc;
3274
+ }
3275
+
3276
+ /**
3277
+ * @fileoverview added by tsickle
3278
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3279
+ */
3280
+ var NsCardContent;
3281
+ (function (NsCardContent) {
3282
+ /**
3283
+ * @record
3284
+ */
3285
+ function ICard() { }
3286
+ NsCardContent.ICard = ICard;
3287
+ if (false) {
3288
+ /** @type {?} */
3289
+ ICard.prototype.content;
3290
+ /** @type {?} */
3291
+ ICard.prototype.cardSubType;
3292
+ /** @type {?} */
3293
+ ICard.prototype.context;
3294
+ /** @type {?|undefined} */
3295
+ ICard.prototype.intranetMode;
3296
+ /** @type {?|undefined} */
3297
+ ICard.prototype.deletedMode;
3298
+ /** @type {?|undefined} */
3299
+ ICard.prototype.likes;
3300
+ /** @type {?|undefined} */
3301
+ ICard.prototype.contentTags;
3302
+ /** @type {?} */
3303
+ ICard.prototype.stateData;
3304
+ }
3305
+ /**
3306
+ * @record
3307
+ */
3308
+ function IContentTags() { }
3309
+ NsCardContent.IContentTags = IContentTags;
3310
+ if (false) {
3311
+ /** @type {?|undefined} */
3312
+ IContentTags.prototype.daysSpan;
3313
+ /** @type {?|undefined} */
3314
+ IContentTags.prototype.excludeContentType;
3315
+ /** @type {?|undefined} */
3316
+ IContentTags.prototype.excludeMimeType;
3317
+ /** @type {?} */
3318
+ IContentTags.prototype.tag;
3319
+ /** @type {?|undefined} */
3320
+ IContentTags.prototype.criteriaField;
3321
+ }
3322
+ /**
3323
+ * @record
3324
+ */
3325
+ function ICompetency() { }
3326
+ NsCardContent.ICompetency = ICompetency;
3327
+ if (false) {
3328
+ /** @type {?} */
3329
+ ICompetency.prototype.competencyArea;
3330
+ /** @type {?} */
3331
+ ICompetency.prototype.competencyObject;
3332
+ }
3333
+ var EContentStatus;
3334
+ (function (EContentStatus) {
3335
+ EContentStatus["LIVE"] = "Live";
3336
+ EContentStatus["EXPIRED"] = "Expired";
3337
+ EContentStatus["DELETED"] = "Deleted";
3338
+ EContentStatus["MARK_FOR_DELETION"] = "MarkedForDeletion";
3339
+ })(EContentStatus = NsCardContent.EContentStatus || (NsCardContent.EContentStatus = {}));
3340
+ var ACBPConst;
3341
+ (function (ACBPConst) {
3342
+ ACBPConst["UPCOMING"] = "upcoming";
3343
+ ACBPConst["ALL"] = "All";
3344
+ ACBPConst["OVERDUE"] = "overdue";
3345
+ ACBPConst["SUCCESS"] = "success";
3346
+ })(ACBPConst = NsCardContent.ACBPConst || (NsCardContent.ACBPConst = {}));
3347
+ var IGOTConst;
3348
+ (function (IGOTConst) {
3349
+ IGOTConst["COMPETENCIES"] = "competencies_v5";
3350
+ IGOTConst["RETIRED"] = "Retired";
3351
+ })(IGOTConst = NsCardContent.IGOTConst || (NsCardContent.IGOTConst = {}));
3352
+ })(NsCardContent || (NsCardContent = {}));
3353
+
3354
+ /**
3355
+ * @fileoverview added by tsickle
3356
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3357
+ */
3358
+ /** @type {?} */
3359
+ var dayjs = dayjs_
3360
+ // import { environment } from 'src/environments/environment'
3361
+ ;
3362
+ /** @type {?} */
3363
+ var PROTECTED_SLAG_V8$1 = '/apis/protected/v8';
3364
+ var ɵ0$1 = /**
3365
+ * @param {?} userId
3366
+ * @return {?}
3367
+ */
3368
+ function (userId) {
3369
+ return PROTECTED_SLAG_V8$1 + "/user/group/fetchUserGroup?userId=" + userId;
3370
+ }, ɵ1$1 = /**
3371
+ * @param {?} userId
3372
+ * @return {?}
3373
+ */
3374
+ function (userId) {
3375
+ // tslint:disable-next-line: max-line-length
3376
+ return "/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";
3377
+ }, ɵ2$1 = /**
3378
+ * @param {?} userId
3379
+ * @return {?}
3380
+ */
3381
+ function (userId) {
3382
+ // tslint:disable-next-line: max-line-length
3383
+ return "/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";
3384
+ }, ɵ3$1 = /**
3385
+ * @param {?} userId
3386
+ * @param {?} orgdetails
3387
+ * @param {?} licenseDetails
3388
+ * @param {?} fields
3389
+ * @param {?} batchDetails
3390
+ * @return {?}
3391
+ */
3392
+ function (userId, orgdetails, licenseDetails, fields, batchDetails) {
3393
+ // tslint:disable-next-line: max-line-length
3394
+ return "apis/proxies/v8/learner/course/v2/user/enrollment/list/" + userId + "?orgdetails=" + orgdetails + "&licenseDetails=" + licenseDetails + "&fields=" + fields + ",courseCategory," + NsCardContent.IGOTConst.COMPETENCIES + "&batchDetails=" + batchDetails;
3395
+ };
3396
+ /** @type {?} */
3397
+ var API_END_POINTS$1 = {
3398
+ FETCH_USER_GROUPS: (ɵ0$1),
3399
+ FETCH_CPB_PLANS: "/apis/proxies/v8/user/v1/cbplan",
3400
+ FETCH_USER_ENROLLMENT_LIST: (ɵ1$1),
3401
+ FETCH_USER_ENROLLMENT_LIST_PROFILE: (ɵ2$1),
3402
+ // tslint:disable-next-line: max-line-length
3403
+ FETCH_USER_ENROLLMENT_LIST_V2: (ɵ3$1),
3404
+ };
3405
+ var WidgetUserService = /** @class */ (function () {
3406
+ function WidgetUserService(environment, http) {
3407
+ this.http = http;
3408
+ this.environment = environment;
3409
+ }
3410
+ /**
3411
+ * @param {?} error
3412
+ * @return {?}
3413
+ */
3414
+ WidgetUserService.prototype.handleError = /**
3415
+ * @param {?} error
3416
+ * @return {?}
3417
+ */
3418
+ function (error) {
3419
+ /** @type {?} */
3420
+ var errorMessage = '';
3421
+ if (error.error instanceof ErrorEvent) {
3422
+ errorMessage = "Error: " + error.error.message;
3423
+ }
3424
+ return rxjs.throwError(errorMessage);
3425
+ };
3426
+ /**
3427
+ * @param {?} userId
3428
+ * @return {?}
3429
+ */
3430
+ WidgetUserService.prototype.fetchUserGroupDetails = /**
3431
+ * @param {?} userId
3432
+ * @return {?}
3433
+ */
3434
+ function (userId) {
3435
+ return this.http
3436
+ .get(API_END_POINTS$1.FETCH_USER_GROUPS(userId))
3437
+ .pipe(operators.catchError(this.handleError));
3438
+ };
3439
+ // tslint:disable-next-line: max-line-length
3440
+ // tslint:disable-next-line: max-line-length
3441
+ /**
3442
+ * @param {?} userId
3443
+ * @param {?=} queryParams
3444
+ * @return {?}
3445
+ */
3446
+ WidgetUserService.prototype.fetchUserBatchList =
3447
+ // tslint:disable-next-line: max-line-length
3448
+ /**
3449
+ * @param {?} userId
3450
+ * @param {?=} queryParams
3451
+ * @return {?}
3452
+ */
3453
+ function (userId, queryParams) {
3454
+ var _this = this;
3455
+ /** @type {?} */
3456
+ var path = '';
3457
+ if (queryParams) {
3458
+ // tslint:disable-next-line: max-line-length
3459
+ path = API_END_POINTS$1.FETCH_USER_ENROLLMENT_LIST_V2(userId, queryParams.orgdetails, queryParams.licenseDetails, queryParams.fields, queryParams.batchDetails);
3460
+ }
3461
+ else {
3462
+ path = API_END_POINTS$1.FETCH_USER_ENROLLMENT_LIST(userId);
3463
+ }
3464
+ /** @type {?} */
3465
+ var headers = new http.HttpHeaders({
3466
+ 'Cache-Control': 'no-cache, no-store, must-revalidate, post-check=0, pre-check=0',
3467
+ Pragma: 'no-cache',
3468
+ Expires: '0',
3469
+ });
3470
+ if (this.checkStorageData('enrollmentService', 'enrollmentData')) {
3471
+ /** @type {?} */
3472
+ var result = this.http.get(path, { headers: headers }).pipe(operators.catchError(this.handleError), operators.map((/**
3473
+ * @param {?} data
3474
+ * @return {?}
3475
+ */
3476
+ function (data) {
3477
+ /** @type {?} */
3478
+ var coursesData = [];
3479
+ if (data && data.result && data.result.courses) {
3480
+ data.result.courses.forEach((/**
3481
+ * @param {?} content
3482
+ * @return {?}
3483
+ */
3484
+ function (content) {
3485
+ if (content.contentStatus) {
3486
+ delete content.contentStatus;
3487
+ }
3488
+ coursesData.push(content);
3489
+ }));
3490
+ _this.storeUserEnrollmentInfo(data.result.userCourseEnrolmentInfo, data.result.courses.length);
3491
+ data.result.courses = coursesData;
3492
+ if (data.result.courses.length < 200) {
3493
+ localStorage.removeItem('enrollmentData');
3494
+ _this.setTime('enrollmentService');
3495
+ localStorage.setItem('enrollmentData', JSON.stringify(data.result));
3496
+ _this.mapEnrollmentData(data.result);
3497
+ return data.result;
3498
+ }
3499
+ }
3500
+ _this.mapEnrollmentData(data.result);
3501
+ return data.result;
3502
+ })));
3503
+ return result;
3504
+ }
3505
+ return this.getData('enrollmentData');
3506
+ };
3507
+ // tslint:disable-next-line: max-line-length
3508
+ // tslint:disable-next-line: max-line-length
3509
+ /**
3510
+ * @param {?} userId
3511
+ * @param {?=} queryParams
3512
+ * @return {?}
3513
+ */
3514
+ WidgetUserService.prototype.fetchProfileUserBatchList =
3515
+ // tslint:disable-next-line: max-line-length
3516
+ /**
3517
+ * @param {?} userId
3518
+ * @param {?=} queryParams
3519
+ * @return {?}
3520
+ */
3521
+ function (userId, queryParams) {
3522
+ /** @type {?} */
3523
+ var path = '';
3524
+ if (queryParams) {
3525
+ // tslint:disable-next-line: max-line-length
3526
+ path = API_END_POINTS$1.FETCH_USER_ENROLLMENT_LIST_V2(userId, queryParams.orgdetails, queryParams.licenseDetails, queryParams.fields, queryParams.batchDetails);
3527
+ }
3528
+ else {
3529
+ path = API_END_POINTS$1.FETCH_USER_ENROLLMENT_LIST_PROFILE(userId);
3530
+ }
3531
+ /** @type {?} */
3532
+ var headers = new http.HttpHeaders({
3533
+ 'Cache-Control': 'no-cache, no-store, must-revalidate, post-check=0, pre-check=0',
3534
+ Pragma: 'no-cache',
3535
+ Expires: '0',
3536
+ });
3537
+ return this.http
3538
+ .get(path, { headers: headers })
3539
+ .pipe(operators.catchError(this.handleError), operators.map((/**
3540
+ * @param {?} data
3541
+ * @return {?}
3542
+ */
3543
+ function (data) { return data.result; })));
3544
+ // if (this.checkStorageData('enrollmentService')) {
3545
+ // const result: any = this.http.get(path, { headers }).pipe(catchError(this.handleError), map(
3546
+ // (data: any) => {
3547
+ // localStorage.setItem('enrollmentData', JSON.stringify(data.result))
3548
+ // this.mapEnrollmentData(data.result)
3549
+ // return data.result
3550
+ // }
3551
+ // )
3552
+ // )
3553
+ // this.setTime('enrollmentService')
3554
+ // return result
3555
+ // }
3556
+ // return this.getData('enrollmentData')
3557
+ };
3558
+ /**
3559
+ * @param {?} key
3560
+ * @param {?} dataKey
3561
+ * @return {?}
3562
+ */
3563
+ WidgetUserService.prototype.checkStorageData = /**
3564
+ * @param {?} key
3565
+ * @param {?} dataKey
3566
+ * @return {?}
3567
+ */
3568
+ function (key, dataKey) {
3569
+ /** @type {?} */
3570
+ var checkTime = localStorage.getItem('timeCheck');
3571
+ if (checkTime) {
3572
+ /** @type {?} */
3573
+ var parsedData = JSON.parse(checkTime);
3574
+ if (parsedData[key]) {
3575
+ /** @type {?} */
3576
+ var date = dayjs();
3577
+ /** @type {?} */
3578
+ var diffMin = date.diff(parsedData[key], 'minute');
3579
+ /** @type {?} */
3580
+ var timeCheck = this.environment.apiCache || 0;
3581
+ if (diffMin >= timeCheck) {
3582
+ return true;
3583
+ }
3584
+ return localStorage.getItem(dataKey) ? false : true;
3585
+ }
3586
+ return true;
3587
+ }
3588
+ return true;
3589
+ };
3590
+ /**
3591
+ * @param {?} key
3592
+ * @return {?}
3593
+ */
3594
+ WidgetUserService.prototype.getData = /**
3595
+ * @param {?} key
3596
+ * @return {?}
3597
+ */
3598
+ function (key) {
3599
+ return rxjs.Observable.of(JSON.parse(localStorage.getItem(key) || '{}'));
3600
+ };
3601
+ /**
3602
+ * @param {?} key
3603
+ * @return {?}
3604
+ */
3605
+ WidgetUserService.prototype.getSavedData = /**
3606
+ * @param {?} key
3607
+ * @return {?}
3608
+ */
3609
+ function (key) {
3610
+ return JSON.parse(localStorage.getItem(key) || '');
3611
+ };
3612
+ /**
3613
+ * @param {?} key
3614
+ * @return {?}
3615
+ */
3616
+ WidgetUserService.prototype.setTime = /**
3617
+ * @param {?} key
3618
+ * @return {?}
3619
+ */
3620
+ function (key) {
3621
+ /** @type {?} */
3622
+ var checkTime = localStorage.getItem('timeCheck');
3623
+ if (checkTime) {
3624
+ /** @type {?} */
3625
+ var parsedData = JSON.parse(checkTime);
3626
+ parsedData[key] = new Date().getTime();
3627
+ localStorage.setItem('timeCheck', JSON.stringify(parsedData));
3628
+ }
3629
+ else {
3630
+ /** @type {?} */
3631
+ var data = {};
3632
+ data[key] = new Date().getTime();
3633
+ localStorage.setItem('timeCheck', JSON.stringify(data));
3634
+ }
3635
+ };
3636
+ /**
3637
+ * @param {?} key
3638
+ * @return {?}
3639
+ */
3640
+ WidgetUserService.prototype.resetTime = /**
3641
+ * @param {?} key
3642
+ * @return {?}
3643
+ */
3644
+ function (key) {
3645
+ /** @type {?} */
3646
+ var checkTime = localStorage.getItem('timeCheck');
3647
+ if (checkTime) {
3648
+ /** @type {?} */
3649
+ var parsedData = JSON.parse(checkTime);
3650
+ if (parsedData[key]) {
3651
+ delete parsedData[key];
3652
+ localStorage.setItem('timeCheck', JSON.stringify(parsedData));
3653
+ }
3654
+ }
3655
+ };
3656
+ /**
3657
+ * @return {?}
3658
+ */
3659
+ WidgetUserService.prototype.fetchCbpPlanList = /**
3660
+ * @return {?}
3661
+ */
3662
+ function () {
3663
+ // let data = JSON.parse(localStorage.getItem('cbpData')|| '')
3664
+ // if(!data) {
3665
+ // this.http.get(API_END_POINTS.FETCH_CPB_PLANS).pipe(catchError(this.handleError), map(
3666
+ // (data: any) => {
3667
+ // const courseData = this.mapData(data.result)
3668
+ // return courseData
3669
+ // }
3670
+ // )
3671
+ // )
3672
+ // } else {
3673
+ // return this.getData('cbpData')
3674
+ var _this = this;
3675
+ // }
3676
+ if (this.checkStorageData('cbpService', 'cbpData')) {
3677
+ /** @type {?} */
3678
+ var result = this.http.get(API_END_POINTS$1.FETCH_CPB_PLANS).pipe(operators.catchError(this.handleError), operators.map((/**
3679
+ * @param {?} data
3680
+ * @return {?}
3681
+ */
3682
+ function (data) { return __awaiter(_this, void 0, void 0, function () {
3683
+ return __generator(this, function (_a) {
3684
+ switch (_a.label) {
3685
+ case 0: return [4 /*yield*/, this.mapData(data.result)];
3686
+ case 1: return [2 /*return*/, _a.sent()];
3687
+ }
3688
+ });
3689
+ }); })));
3690
+ this.setTime('cbpService');
3691
+ return result;
3692
+ }
3693
+ return this.getData('cbpData');
3923
3694
  };
3924
3695
  /**
3925
3696
  * @param {?} data
3926
3697
  * @return {?}
3927
3698
  */
3928
- MultilingualTranslationsService.prototype.editProfileDetailsAPI = /**
3699
+ WidgetUserService.prototype.mapData = /**
3929
3700
  * @param {?} data
3930
3701
  * @return {?}
3931
3702
  */
3932
3703
  function (data) {
3933
- return this.http.post(this.editProfileDetails, data);
3704
+ return __awaiter(this, void 0, void 0, function () {
3705
+ var contentNew, todayDate, enrollList, sortedData, uniqueUsersByID, sortedByEndDate, sortedByStatus;
3706
+ return __generator(this, function (_a) {
3707
+ contentNew = [];
3708
+ todayDate = dayjs().format('YYYY-MM-DD');
3709
+ enrollList = JSON.parse(localStorage.getItem('enrollmentMapData') || '{}');
3710
+ if (data && data.count) {
3711
+ data.content.forEach((/**
3712
+ * @param {?} c
3713
+ * @return {?}
3714
+ */
3715
+ function (c) {
3716
+ c.contentList.forEach((/**
3717
+ * @param {?} childData
3718
+ * @return {?}
3719
+ */
3720
+ function (childData) {
3721
+ /** @type {?} */
3722
+ var childEnrollData = enrollList[childData.identifier];
3723
+ /** @type {?} */
3724
+ var endDate = dayjs(c.endDate).format('YYYY-MM-DD');
3725
+ /** @type {?} */
3726
+ var daysCount = dayjs(endDate).diff(todayDate, 'day');
3727
+ childData['planDuration'] = daysCount < 0 ? NsCardContent.ACBPConst.OVERDUE : daysCount > 29
3728
+ ? NsCardContent.ACBPConst.SUCCESS : NsCardContent.ACBPConst.UPCOMING;
3729
+ childData['endDate'] = c.endDate;
3730
+ childData['parentId'] = c.id;
3731
+ childData['planType'] = 'cbPlan';
3732
+ if (childData.status !== NsCardContent.IGOTConst.RETIRED) {
3733
+ contentNew.push(childData);
3734
+ }
3735
+ else {
3736
+ if (childEnrollData && childEnrollData.status === 2) {
3737
+ contentNew.push(childData);
3738
+ }
3739
+ }
3740
+ /** @type {?} */
3741
+ var competencyArea = [];
3742
+ /** @type {?} */
3743
+ var competencyTheme = [];
3744
+ /** @type {?} */
3745
+ var competencyThemeType = [];
3746
+ /** @type {?} */
3747
+ var competencySubTheme = [];
3748
+ /** @type {?} */
3749
+ var competencyAreaId = [];
3750
+ /** @type {?} */
3751
+ var competencyThemeId = [];
3752
+ /** @type {?} */
3753
+ var competencySubThemeId = [];
3754
+ childData['contentStatus'] = 0;
3755
+ if (childEnrollData) {
3756
+ childData['contentStatus'] = childEnrollData.status;
3757
+ }
3758
+ if (childData.competencies_v5) {
3759
+ childData.competencies_v5.forEach((/**
3760
+ * @param {?} element
3761
+ * @return {?}
3762
+ */
3763
+ function (element) {
3764
+ if (!competencyArea.includes(element.competencyArea)) {
3765
+ competencyArea.push(element.competencyArea);
3766
+ competencyAreaId.push(element.competencyAreaId);
3767
+ }
3768
+ if (!competencyTheme.includes(element.competencyTheme)) {
3769
+ competencyTheme.push(element.competencyTheme);
3770
+ competencyThemeId.push(element.competencyThemeId);
3771
+ }
3772
+ if (!competencyThemeType.includes(element.competencyThemeType)) {
3773
+ competencyThemeType.push(element.competencyThemeType);
3774
+ }
3775
+ if (!competencySubTheme.includes(element.competencySubTheme)) {
3776
+ competencySubTheme.push(element.competencySubTheme);
3777
+ competencySubThemeId.push(element.competencySubThemeId);
3778
+ }
3779
+ }));
3780
+ }
3781
+ childData['competencyArea'] = competencyArea;
3782
+ childData['competencyTheme'] = competencyTheme;
3783
+ childData['competencyThemeType'] = competencyThemeType;
3784
+ childData['competencySubTheme'] = competencySubTheme;
3785
+ childData['competencyAreaId'] = competencyAreaId;
3786
+ childData['competencyThemeId'] = competencyThemeId;
3787
+ childData['competencySubThemeId'] = competencySubThemeId;
3788
+ }));
3789
+ }));
3790
+ if (contentNew.length > 1) {
3791
+ sortedData = contentNew.sort((/**
3792
+ * @param {?} a
3793
+ * @param {?} b
3794
+ * @return {?}
3795
+ */
3796
+ function (a, b) {
3797
+ /** @type {?} */
3798
+ var firstDate = new Date(a.endDate);
3799
+ /** @type {?} */
3800
+ var secondDate = new Date(b.endDate);
3801
+ return secondDate > firstDate ? 1 : -1;
3802
+ }));
3803
+ uniqueUsersByID = lodash.uniqBy(sortedData, 'identifier');
3804
+ sortedByEndDate = lodash.orderBy(uniqueUsersByID, ['endDate'], ['asc']);
3805
+ sortedByStatus = lodash.orderBy(sortedByEndDate, ['contentStatus'], ['asc']);
3806
+ localStorage.setItem('cbpData', JSON.stringify(sortedByStatus));
3807
+ return [2 /*return*/, sortedByStatus];
3808
+ }
3809
+ localStorage.setItem('cbpData', JSON.stringify(contentNew));
3810
+ return [2 /*return*/, contentNew];
3811
+ }
3812
+ localStorage.setItem('cbpData', JSON.stringify([]));
3813
+ return [2 /*return*/, []];
3814
+ });
3815
+ });
3934
3816
  };
3935
3817
  /**
3936
- * @param {?} state
3937
- * @param {?} lang
3938
- * @param {?} userid
3818
+ * @param {?} courseData
3939
3819
  * @return {?}
3940
3820
  */
3941
- MultilingualTranslationsService.prototype.updatelanguageSelected = /**
3942
- * @param {?} state
3943
- * @param {?} lang
3944
- * @param {?} userid
3821
+ WidgetUserService.prototype.mapEnrollmentData = /**
3822
+ * @param {?} courseData
3945
3823
  * @return {?}
3946
3824
  */
3947
- function (state, lang, userid) {
3948
- this.languageSelected.next(state);
3949
- this.translate.use(lang);
3950
- this.selectedLang = lang;
3951
- if (userid) {
3952
- /** @type {?} */
3953
- var reqUpdates = {
3954
- request: {
3955
- userId: userid,
3956
- profileDetails: {
3957
- additionalProperties: {
3958
- webPortalLang: this.selectedLang,
3959
- },
3960
- },
3961
- },
3962
- };
3963
- this.editProfileDetailsAPI(reqUpdates).subscribe();
3825
+ function (courseData) {
3826
+ /** @type {?} */
3827
+ var enrollData = {};
3828
+ if (courseData && courseData.courses.length) {
3829
+ courseData.courses.forEach((/**
3830
+ * @param {?} data
3831
+ * @return {?}
3832
+ */
3833
+ function (data) {
3834
+ enrollData[data.collectionId] = data;
3835
+ }));
3964
3836
  }
3837
+ localStorage.removeItem('enrollmentMapData');
3838
+ localStorage.setItem('enrollmentMapData', JSON.stringify(enrollData));
3965
3839
  };
3966
- MultilingualTranslationsService.decorators = [
3840
+ /**
3841
+ * @param {?} enrollmentData
3842
+ * @param {?} enrolledCourseCount
3843
+ * @return {?}
3844
+ */
3845
+ WidgetUserService.prototype.storeUserEnrollmentInfo = /**
3846
+ * @param {?} enrollmentData
3847
+ * @param {?} enrolledCourseCount
3848
+ * @return {?}
3849
+ */
3850
+ function (enrollmentData, enrolledCourseCount) {
3851
+ /** @type {?} */
3852
+ var userData = {
3853
+ enrolledCourseCount: enrolledCourseCount,
3854
+ userCourseEnrolmentInfo: enrollmentData,
3855
+ };
3856
+ localStorage.removeItem('userEnrollmentCount');
3857
+ localStorage.setItem('userEnrollmentCount', JSON.stringify(userData));
3858
+ };
3859
+ WidgetUserService.decorators = [
3967
3860
  { type: core.Injectable, args: [{
3968
3861
  providedIn: 'root',
3969
3862
  },] }
3970
3863
  ];
3971
3864
  /** @nocollapse */
3972
- MultilingualTranslationsService.ctorParameters = function () { return [
3973
- { type: core$1.TranslateService },
3974
- { type: http.HttpClient },
3975
- { type: ConfigurationsService }
3865
+ WidgetUserService.ctorParameters = function () { return [
3866
+ { type: undefined, decorators: [{ type: core.Inject, args: ['environment',] }] },
3867
+ { type: http.HttpClient }
3976
3868
  ]; };
3977
- /** @nocollapse */ MultilingualTranslationsService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function MultilingualTranslationsService_Factory() { return new MultilingualTranslationsService(core.ɵɵinject(core$1.TranslateService), core.ɵɵinject(http.HttpClient), core.ɵɵinject(ConfigurationsService)); }, token: MultilingualTranslationsService, providedIn: "root" });
3978
- return MultilingualTranslationsService;
3869
+ /** @nocollapse */ WidgetUserService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function WidgetUserService_Factory() { return new WidgetUserService(core.ɵɵinject("environment"), core.ɵɵinject(http.HttpClient)); }, token: WidgetUserService, providedIn: "root" });
3870
+ return WidgetUserService;
3979
3871
  }());
3980
3872
  if (false) {
3981
3873
  /** @type {?} */
3982
- MultilingualTranslationsService.prototype.selectedLang;
3983
- /** @type {?} */
3984
- MultilingualTranslationsService.prototype.languageSelected;
3985
- /** @type {?} */
3986
- MultilingualTranslationsService.prototype.languageSelectedObservable;
3987
- /** @type {?} */
3988
- MultilingualTranslationsService.prototype.editProfileDetails;
3989
- /**
3990
- * @type {?}
3991
- * @private
3992
- */
3993
- MultilingualTranslationsService.prototype.translate;
3994
- /**
3995
- * @type {?}
3996
- * @private
3997
- */
3998
- MultilingualTranslationsService.prototype.http;
3874
+ WidgetUserService.prototype.environment;
3999
3875
  /**
4000
3876
  * @type {?}
4001
3877
  * @private
4002
3878
  */
4003
- MultilingualTranslationsService.prototype.configSvc;
3879
+ WidgetUserService.prototype.http;
4004
3880
  }
4005
3881
 
4006
3882
  /**
@@ -4561,6 +4437,9 @@
4561
4437
  this.fetchAllPlaylistSearch(strip, calculateParentStatus);
4562
4438
  this.fetchPlaylistReadData(strip, calculateParentStatus);
4563
4439
  this.fetchCiosContentData(strip, calculateParentStatus);
4440
+ // this.enrollInterval = setInterval(() => {
4441
+ // this.fetchAllCbpPlans(strip, calculateParentStatus)
4442
+ // }, 1000)
4564
4443
  };
4565
4444
  /**
4566
4445
  * @param {?} strip
@@ -4803,12 +4682,12 @@
4803
4682
  function (strip, calculateParentStatus) {
4804
4683
  if (calculateParentStatus === void 0) { calculateParentStatus = true; }
4805
4684
  return __awaiter(this, void 0, void 0, function () {
4806
- var originalFilters, firstTab, allTabs, currentTabFromMap, response, result, responseData, error_1;
4685
+ var originalFilters, firstTab, allTabs, currentTabFromMap, response_1, error_1;
4807
4686
  var _this = this;
4808
4687
  return __generator(this, function (_a) {
4809
4688
  switch (_a.label) {
4810
4689
  case 0:
4811
- if (!(strip.request && strip.request.searchV6 && Object.keys(strip.request.searchV6).length)) return [3 /*break*/, 11];
4690
+ if (!(strip.request && strip.request.searchV6 && Object.keys(strip.request.searchV6).length)) return [3 /*break*/, 4];
4812
4691
  // if (!(strip.request.searchV6.locale && strip.request.searchV6.locale.length > 0)) {
4813
4692
  // if (this.configSvc.activeLocale) {
4814
4693
  // strip.request.searchV6.locale = [this.configSvc.activeLocale.locals[0]]
@@ -4837,75 +4716,44 @@
4837
4716
  this.getTabDataByNewReqSearchV6(strip, 0, currentTabFromMap, calculateParentStatus);
4838
4717
  }
4839
4718
  }
4840
- return [3 /*break*/, 11];
4719
+ return [3 /*break*/, 4];
4841
4720
  case 1:
4842
- _a.trys.push([1, 10, , 11]);
4721
+ _a.trys.push([1, 3, , 4]);
4843
4722
  return [4 /*yield*/, this.searchV6Request(strip, strip.request, calculateParentStatus)];
4844
4723
  case 2:
4845
- response = _a.sent();
4846
- if (!(response && response.results)) return [3 /*break*/, 8];
4847
- if (!response.results.result.content) return [3 /*break*/, 6];
4848
- if (!(strip.key === 'scheduledAssessment')) return [3 /*break*/, 4];
4849
- result = response.results.result.content.map((/**
4850
- * @param {?} a
4851
- * @return {?}
4852
- */
4853
- function (a) { return a.identifier; }));
4854
- return [4 /*yield*/, this.userSvc.fetchEnrollmentDataByContentId(this.configSvc.userProfile.userId, result.join(',')).toPromise().then((/**
4855
- * @param {?} res
4856
- * @return {?}
4857
- */
4858
- function (res) { return __awaiter(_this, void 0, void 0, function () {
4859
- var enrollData;
4860
- return __generator(this, function (_a) {
4861
- enrollData = {};
4862
- if (res && res.courses && res.courses.length) {
4863
- res.courses.forEach((/**
4864
- * @param {?} data
4865
- * @return {?}
4866
- */
4867
- function (data) {
4868
- enrollData[data.collectionId] = data;
4869
- }));
4870
- return [2 /*return*/, enrollData];
4871
- }
4872
- else {
4873
- return [2 /*return*/, {}];
4874
- }
4875
- return [2 /*return*/];
4876
- });
4877
- }); })).catch((/**
4878
- * @param {?} _err
4879
- * @return {?}
4880
- */
4881
- function (_err) {
4882
- return {};
4883
- }))];
4884
- case 3:
4885
- responseData = _a.sent();
4886
- this.checkInvitOnlyAssessments(response.results.result.content, strip, calculateParentStatus, response.viewMoreUrl, responseData);
4887
- return [3 /*break*/, 5];
4888
- case 4:
4889
- this.processStrip(strip, this.transformContentsToWidgets(response.results.result.content, strip), 'done', calculateParentStatus, response.viewMoreUrl);
4890
- _a.label = 5;
4891
- case 5: return [3 /*break*/, 7];
4892
- case 6:
4893
- if (response.results.result.Event) {
4894
- this.processStrip(strip, this.transformEventsToWidgets(response.results.result.Event, strip), 'done', calculateParentStatus, response.viewMoreUrl);
4724
+ response_1 = _a.sent();
4725
+ // console.log('calling after - response, ', response)
4726
+ if (response_1 && response_1.results) {
4727
+ // console.log('calling after-- ')
4728
+ if (response_1.results.result.content) {
4729
+ if (strip.key === 'scheduledAssessment') {
4730
+ this.enrollInterval = setInterval((/**
4731
+ * @return {?}
4732
+ */
4733
+ function () {
4734
+ _this.checkInvitOnlyAssessments(response_1.results.result.content, strip, calculateParentStatus, response_1.viewMoreUrl);
4735
+ // tslint:disable-next-line
4736
+ }), 1000);
4737
+ }
4738
+ else {
4739
+ this.processStrip(strip, this.transformContentsToWidgets(response_1.results.result.content, strip), 'done', calculateParentStatus, response_1.viewMoreUrl);
4740
+ }
4741
+ }
4742
+ else if (response_1.results.result.Event) {
4743
+ this.processStrip(strip, this.transformEventsToWidgets(response_1.results.result.Event, strip), 'done', calculateParentStatus, response_1.viewMoreUrl);
4744
+ }
4745
+ else {
4746
+ this.processStrip(strip, [], 'error', calculateParentStatus, null);
4747
+ }
4895
4748
  }
4896
4749
  else {
4897
4750
  this.processStrip(strip, [], 'error', calculateParentStatus, null);
4898
4751
  }
4899
- _a.label = 7;
4900
- case 7: return [3 /*break*/, 9];
4901
- case 8:
4902
- this.processStrip(strip, [], 'error', calculateParentStatus, null);
4903
- _a.label = 9;
4904
- case 9: return [3 /*break*/, 11];
4905
- case 10:
4752
+ return [3 /*break*/, 4];
4753
+ case 3:
4906
4754
  error_1 = _a.sent();
4907
- return [3 /*break*/, 11];
4908
- case 11: return [2 /*return*/];
4755
+ return [3 /*break*/, 4];
4756
+ case 4: return [2 /*return*/];
4909
4757
  }
4910
4758
  });
4911
4759
  });
@@ -4915,7 +4763,6 @@
4915
4763
  * @param {?} strip
4916
4764
  * @param {?} calculateParentStatus
4917
4765
  * @param {?} viewMoreUrl
4918
- * @param {?} enrollmentData
4919
4766
  * @return {?}
4920
4767
  */
4921
4768
  ContentStripWithTabsLibComponent.prototype.checkInvitOnlyAssessments = /**
@@ -4923,12 +4770,12 @@
4923
4770
  * @param {?} strip
4924
4771
  * @param {?} calculateParentStatus
4925
4772
  * @param {?} viewMoreUrl
4926
- * @param {?} enrollmentData
4927
4773
  * @return {?}
4928
4774
  */
4929
- function (content, strip, calculateParentStatus, viewMoreUrl, enrollmentData) {
4930
- if (Object.keys(enrollmentData).length) {
4931
- enrollmentData = enrollmentData;
4775
+ function (content, strip, calculateParentStatus, viewMoreUrl) {
4776
+ var _this = this;
4777
+ if (localStorage.getItem('enrollmentMapData')) {
4778
+ this.enrollmentMapData = JSON.parse(localStorage.getItem('enrollmentMapData') || '{}');
4932
4779
  /** @type {?} */
4933
4780
  var filteredArray_1 = [];
4934
4781
  /** @type {?} */
@@ -4938,10 +4785,10 @@
4938
4785
  * @return {?}
4939
4786
  */
4940
4787
  function (data) {
4941
- if (enrollmentData[data.identifier]) {
4942
- if (enrollmentData[data.identifier].status !== 2 && enrollmentData[data.identifier].batch) {
4788
+ if (_this.enrollmentMapData[data.identifier]) {
4789
+ if (_this.enrollmentMapData[data.identifier].status !== 2 && _this.enrollmentMapData[data.identifier].batch) {
4943
4790
  /** @type {?} */
4944
- var enrollData = enrollmentData[data.identifier].batch;
4791
+ var enrollData = _this.enrollmentMapData[data.identifier].batch;
4945
4792
  /** @type {?} */
4946
4793
  var endDate = new Date(enrollData.endDate).getTime()
4947
4794
  // let endDate:any = '2024-07-7T00:00:00.000Z'
@@ -4950,8 +4797,8 @@
4950
4797
  /** @type {?} */
4951
4798
  var timeDuration = endDate - now_1;
4952
4799
  if (timeDuration > 0) {
4953
- data['batch'] = enrollmentData[data.identifier].batch;
4954
- data['completionPercentage'] = enrollmentData[data.identifier].completionPercentage;
4800
+ data['batch'] = _this.enrollmentMapData[data.identifier].batch;
4801
+ data['completionPercentage'] = _this.enrollmentMapData[data.identifier].completionPercentage;
4955
4802
  filteredArray_1.push(data);
4956
4803
  }
4957
4804
  }
@@ -4970,6 +4817,7 @@
4970
4817
  return dateA - dateB;
4971
4818
  }));
4972
4819
  this.processStrip(strip, this.transformContentsToWidgets(filteredArray_1, strip), 'done', calculateParentStatus, viewMoreUrl);
4820
+ clearInterval(this.enrollInterval);
4973
4821
  }
4974
4822
  };
4975
4823
  /**
@@ -5685,15 +5533,14 @@
5685
5533
  function (strip, calculateParentStatus) {
5686
5534
  if (calculateParentStatus === void 0) { calculateParentStatus = true; }
5687
5535
  return __awaiter(this, void 0, void 0, function () {
5688
- var courses, tabResults, userId, response;
5536
+ var courses, tabResults, response;
5689
5537
  return __generator(this, function (_a) {
5690
5538
  switch (_a.label) {
5691
5539
  case 0:
5692
- if (!(strip.request && strip.request.cbpList && Object.keys(strip.request.cbpList).length)) return [3 /*break*/, 4];
5540
+ if (!(strip.request && strip.request.cbpList && Object.keys(strip.request.cbpList).length)) return [3 /*break*/, 5];
5693
5541
  courses = void 0;
5694
5542
  tabResults = [];
5695
- userId = this.configSvc.userProfile.userId;
5696
- return [4 /*yield*/, this.userSvc.fetchCbpPlanList(userId).toPromise()];
5543
+ return [4 /*yield*/, this.userSvc.fetchCbpPlanList().toPromise()];
5697
5544
  case 1:
5698
5545
  response = _a.sent();
5699
5546
  if (!response) return [3 /*break*/, 4];
@@ -5707,7 +5554,36 @@
5707
5554
  case 3:
5708
5555
  this.processStrip(strip, this.transformContentsToWidgets(courses, strip), 'done', calculateParentStatus, 'viewMoreUrl');
5709
5556
  _a.label = 4;
5710
- case 4: return [2 /*return*/];
5557
+ case 4:
5558
+ // this.userSvc.fetchCbpPlanList().subscribe( async (res: any) => {
5559
+ // if (res) {
5560
+ // console.log(res,'===============================>')
5561
+ // courses = res
5562
+ // if (strip.tabs && strip.tabs.length) {
5563
+ // tabResults = this.splitCbpTabsData(courses, strip)
5564
+ // await this.processStrip(
5565
+ // strip,
5566
+ // this.transformContentsToWidgets(courses, strip),
5567
+ // 'done',
5568
+ // calculateParentStatus,
5569
+ // '',
5570
+ // tabResults
5571
+ // )
5572
+ // } else {
5573
+ // this.processStrip(
5574
+ // strip,
5575
+ // this.transformContentsToWidgets(courses, strip),
5576
+ // 'done',
5577
+ // calculateParentStatus,
5578
+ // 'viewMoreUrl',
5579
+ // )
5580
+ // }
5581
+ // }
5582
+ // }, (_err: any) => {
5583
+ // })
5584
+ clearInterval(this.enrollInterval);
5585
+ _a.label = 5;
5586
+ case 5: return [2 /*return*/];
5711
5587
  }
5712
5588
  });
5713
5589
  });
@@ -6841,13 +6717,13 @@
6841
6717
  /** @nocollapse */
6842
6718
  ContentStripWithTabsLibComponent.ctorParameters = function () { return [
6843
6719
  { type: undefined, decorators: [{ type: core.Inject, args: ['environment',] }] },
6844
- { type: WidgetContentLibService },
6720
+ { type: WidgetContentService },
6845
6721
  { type: utilsV2.LoggerService },
6846
6722
  { type: utilsV2.EventService },
6847
6723
  { type: utilsV2.ConfigurationsService },
6848
6724
  { type: utilsV2.UtilityService },
6849
6725
  { type: router.Router },
6850
- { type: WidgetUserServiceLib },
6726
+ { type: WidgetUserService },
6851
6727
  { type: core$1.TranslateService },
6852
6728
  { type: MultilingualTranslationsService }
6853
6729
  ]; };
@@ -6911,7 +6787,11 @@
6911
6787
  /** @type {?} */
6912
6788
  ContentStripWithTabsLibComponent.prototype.defaultMaxWidgets;
6913
6789
  /** @type {?} */
6790
+ ContentStripWithTabsLibComponent.prototype.enrollInterval;
6791
+ /** @type {?} */
6914
6792
  ContentStripWithTabsLibComponent.prototype.todaysEvents;
6793
+ /** @type {?} */
6794
+ ContentStripWithTabsLibComponent.prototype.enrollmentMapData;
6915
6795
  /**
6916
6796
  * @type {?}
6917
6797
  * @private
@@ -9129,12 +9009,12 @@
9129
9009
  /** @nocollapse */
9130
9010
  CommonStripComponent.ctorParameters = function () { return [
9131
9011
  { type: undefined, decorators: [{ type: core.Inject, args: ['environment',] }] },
9132
- { type: WidgetContentLibService },
9012
+ { type: WidgetContentService },
9133
9013
  { type: utilsV2.LoggerService },
9134
9014
  { type: utilsV2.EventService },
9135
9015
  { type: utilsV2.ConfigurationsService },
9136
9016
  { type: utilsV2.UtilityService },
9137
- { type: WidgetUserServiceLib },
9017
+ { type: WidgetUserService },
9138
9018
  { type: core$1.TranslateService },
9139
9019
  { type: MultilingualTranslationsService },
9140
9020
  { type: CommonMethodsService }
@@ -10344,6 +10224,13 @@
10344
10224
  function () {
10345
10225
  _this.getCbPlanData();
10346
10226
  }), 1000);
10227
+ this.enrollInterval = setInterval((/**
10228
+ * @return {?}
10229
+ */
10230
+ function () {
10231
+ _this.getEnrollmentData();
10232
+ // tslint:disable-next-line
10233
+ }), 1000);
10347
10234
  };
10348
10235
  Object.defineProperty(CardsComponent.prototype, "isLiveOrMarkForDeletion", {
10349
10236
  get: /**
@@ -10428,6 +10315,18 @@
10428
10315
  clearInterval(this.cbPlanInterval);
10429
10316
  }
10430
10317
  };
10318
+ /**
10319
+ * @return {?}
10320
+ */
10321
+ CardsComponent.prototype.getEnrollmentData = /**
10322
+ * @return {?}
10323
+ */
10324
+ function () {
10325
+ if (localStorage.getItem('enrollmentMapData')) {
10326
+ this.enrollmentMapData = JSON.parse(localStorage.getItem('enrollmentMapData') || '{}');
10327
+ clearInterval(this.enrollInterval);
10328
+ }
10329
+ };
10431
10330
  /**
10432
10331
  * @param {?} data
10433
10332
  * @return {?}
@@ -10442,14 +10341,14 @@
10442
10341
  CardsComponent.decorators = [
10443
10342
  { type: core.Component, args: [{
10444
10343
  selector: 'sb-uic-cards',
10445
- 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",
10344
+ 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",
10446
10345
  styles: [""]
10447
10346
  }] }
10448
10347
  ];
10449
10348
  /** @nocollapse */
10450
10349
  CardsComponent.ctorParameters = function () { return [
10451
10350
  { type: utilsV2.UtilityService },
10452
- { type: WidgetContentLibService },
10351
+ { type: WidgetContentService },
10453
10352
  { type: router.Router }
10454
10353
  ]; };
10455
10354
  CardsComponent.propDecorators = {
@@ -10469,6 +10368,10 @@
10469
10368
  CardsComponent.prototype.cbPlanMapData;
10470
10369
  /** @type {?} */
10471
10370
  CardsComponent.prototype.cbPlanInterval;
10371
+ /** @type {?} */
10372
+ CardsComponent.prototype.enrollInterval;
10373
+ /** @type {?} */
10374
+ CardsComponent.prototype.enrollmentMapData;
10472
10375
  /**
10473
10376
  * @type {?}
10474
10377
  * @private
@@ -10613,7 +10516,7 @@
10613
10516
  { type: core$1.TranslateService },
10614
10517
  { type: MultilingualTranslationsService },
10615
10518
  { type: utilsV2.ConfigurationsService },
10616
- { type: WidgetContentLibService }
10519
+ { type: WidgetContentService }
10617
10520
  ]; };
10618
10521
  CardPortraitComponent.propDecorators = {
10619
10522
  widgetData: [{ type: core.Input }],
@@ -11744,7 +11647,7 @@
11744
11647
  { type: core$1.TranslateService },
11745
11648
  { type: utilsV2.MultilingualTranslationsService },
11746
11649
  { type: utilsV2.ConfigurationsService },
11747
- { type: WidgetContentLibService },
11650
+ { type: WidgetContentService },
11748
11651
  { type: router.Router }
11749
11652
  ]; };
11750
11653
  CardMDOChannelComponent.propDecorators = {
@@ -12094,7 +11997,7 @@
12094
11997
  { type: core$1.TranslateService },
12095
11998
  { type: utilsV2.MultilingualTranslationsService },
12096
11999
  { type: utilsV2.ConfigurationsService },
12097
- { type: WidgetContentLibService },
12000
+ { type: WidgetContentService },
12098
12001
  { type: router.Router }
12099
12002
  ]; };
12100
12003
  CardKarmaProgramsComponent.propDecorators = {
@@ -12512,7 +12415,7 @@
12512
12415
  { type: core$1.TranslateService },
12513
12416
  { type: MultilingualTranslationsService },
12514
12417
  { type: utilsV2.ConfigurationsService },
12515
- { type: WidgetContentLibService }
12418
+ { type: WidgetContentService }
12516
12419
  ]; };
12517
12420
  CardPortraitExtComponent.propDecorators = {
12518
12421
  widgetData: [{ type: core.Input }],
@@ -12702,10 +12605,11 @@
12702
12605
  /** @nocollapse */
12703
12606
  CardAssessmentComponent.ctorParameters = function () { return [
12704
12607
  { type: utilsV2.ConfigurationsService },
12705
- { type: WidgetContentLibService }
12608
+ { type: WidgetContentService }
12706
12609
  ]; };
12707
12610
  CardAssessmentComponent.propDecorators = {
12708
12611
  widgetData: [{ type: core.Input }],
12612
+ enrollmentMapData: [{ type: core.Input }],
12709
12613
  contentData: [{ type: core.Output }],
12710
12614
  isCardLoading: [{ type: core.Input }]
12711
12615
  };
@@ -12715,6 +12619,8 @@
12715
12619
  /** @type {?} */
12716
12620
  CardAssessmentComponent.prototype.widgetData;
12717
12621
  /** @type {?} */
12622
+ CardAssessmentComponent.prototype.enrollmentMapData;
12623
+ /** @type {?} */
12718
12624
  CardAssessmentComponent.prototype.contentData;
12719
12625
  /** @type {?} */
12720
12626
  CardAssessmentComponent.prototype.isCardLoading;
@@ -13243,7 +13149,7 @@
13243
13149
  { type: utilsV2.EventService },
13244
13150
  { type: MultilingualTranslationsService },
13245
13151
  { type: utilsV2.ConfigurationsService },
13246
- { type: WidgetContentLibService },
13152
+ { type: WidgetContentService },
13247
13153
  { type: CertificateService },
13248
13154
  { type: material.MatDialog }
13249
13155
  ]; };
@@ -13582,7 +13488,7 @@
13582
13488
  { type: core$1.TranslateService },
13583
13489
  { type: utilsV2.MultilingualTranslationsService },
13584
13490
  { type: utilsV2.ConfigurationsService },
13585
- { type: WidgetContentLibService },
13491
+ { type: WidgetContentService },
13586
13492
  { type: router.Router }
13587
13493
  ]; };
13588
13494
  CardMdoChannelV1Component.propDecorators = {
@@ -14236,7 +14142,7 @@
14236
14142
  _this._fb = _fb;
14237
14143
  _this.emptyResponse = new core.EventEmitter();
14238
14144
  _this.viewAllResponse = new core.EventEmitter();
14239
- _this.telemtryResponse = new core.EventEmitter();
14145
+ _this.telemtryLearningContentResponse = new core.EventEmitter();
14240
14146
  _this.providerId = '';
14241
14147
  _this.emitViewAll = false;
14242
14148
  _this.channnelName = '';
@@ -14281,15 +14187,10 @@
14281
14187
  * @return {?}
14282
14188
  */
14283
14189
  function () {
14284
- var _this = this;
14285
14190
  this.initData();
14286
- this.contentSvc.telemetryData$.subscribe((/**
14287
- * @param {?} data
14288
- * @return {?}
14289
- */
14290
- function (data) {
14291
- _this.telemtryResponse.emit(data);
14292
- }));
14191
+ // this.contentSvc.telemetryData$.subscribe((data: any) => {
14192
+ // this.telemtryLearningContentResponse.emit(data)
14193
+ // })
14293
14194
  this.facetForm = this._fb.group({
14294
14195
  org: ['0']
14295
14196
  });
@@ -14625,7 +14526,7 @@
14625
14526
  * @return {?}
14626
14527
  */
14627
14528
  function (stripData) {
14628
- this.telemtryResponse.emit(stripData);
14529
+ this.telemtryLearningContentResponse.emit(stripData);
14629
14530
  };
14630
14531
  /**
14631
14532
  * @param {?} key
@@ -14709,7 +14610,7 @@
14709
14610
  };
14710
14611
  this.eventSvc.raiseInteractTelemetry({
14711
14612
  type: utilsV2.WsEvents.EnumInteractTypes.CLICK,
14712
- subType: utilsV2.WsEvents.EnumInteractSubTypes.HOME_PAGE_STRIP_TABS,
14613
+ subType: 'explore-learning-content',
14713
14614
  id: lodash.camelCase(data.label) + "-tab",
14714
14615
  }, {}, {
14715
14616
  module: utilsV2.WsEvents.EnumTelemetrymodules.HOME,
@@ -15201,7 +15102,7 @@
15201
15102
  response = _a.sent();
15202
15103
  tabIndex = 0;
15203
15104
  pillIndex = 0;
15204
- if (response.results && response.results.result) {
15105
+ if (response.results && response.results.result && response.results.result.content && response.results.result.content.length > 0) {
15205
15106
  this.mapAllDataWithFacets(strip, response.results.result.content, response.results.result.facets, calculateParentStatus);
15206
15107
  widgets = this.transformContentsToWidgets(response.results.result.content, strip);
15207
15108
  tabResults = [];
@@ -15235,6 +15136,9 @@
15235
15136
  // tabResults // tabResults as widgets
15236
15137
  // );
15237
15138
  }
15139
+ else {
15140
+ this.processStrip(strip, [], 'error', calculateParentStatus, null);
15141
+ }
15238
15142
  return [3 /*break*/, 4];
15239
15143
  case 3:
15240
15144
  error_1 = _a.sent();
@@ -15467,13 +15371,13 @@
15467
15371
  /** @nocollapse */
15468
15372
  ContentStripFacetFilterComponent.ctorParameters = function () { return [
15469
15373
  { type: undefined, decorators: [{ type: core.Inject, args: ['environment',] }] },
15470
- { type: WidgetContentLibService },
15374
+ { type: WidgetContentService },
15471
15375
  { type: utilsV2.LoggerService },
15472
15376
  { type: utilsV2.EventService },
15473
15377
  { type: utilsV2.ConfigurationsService },
15474
15378
  { type: utilsV2.UtilityService },
15475
15379
  { type: router.Router },
15476
- { type: WidgetUserServiceLib },
15380
+ { type: WidgetUserService },
15477
15381
  { type: core$1.TranslateService },
15478
15382
  { type: MultilingualTranslationsService },
15479
15383
  { type: forms.FormBuilder }
@@ -15482,7 +15386,7 @@
15482
15386
  widgetData: [{ type: core.Input }],
15483
15387
  emptyResponse: [{ type: core.Output }],
15484
15388
  viewAllResponse: [{ type: core.Output }],
15485
- telemtryResponse: [{ type: core.Output }],
15389
+ telemtryLearningContentResponse: [{ type: core.Output }],
15486
15390
  providerId: [{ type: core.Input }],
15487
15391
  emitViewAll: [{ type: core.Input }],
15488
15392
  channnelName: [{ type: core.Input }],
@@ -15498,7 +15402,7 @@
15498
15402
  /** @type {?} */
15499
15403
  ContentStripFacetFilterComponent.prototype.viewAllResponse;
15500
15404
  /** @type {?} */
15501
- ContentStripFacetFilterComponent.prototype.telemtryResponse;
15405
+ ContentStripFacetFilterComponent.prototype.telemtryLearningContentResponse;
15502
15406
  /** @type {?} */
15503
15407
  ContentStripFacetFilterComponent.prototype.providerId;
15504
15408
  /** @type {?} */
@@ -15542,6 +15446,8 @@
15542
15446
  /** @type {?} */
15543
15447
  ContentStripFacetFilterComponent.prototype.todaysEvents;
15544
15448
  /** @type {?} */
15449
+ ContentStripFacetFilterComponent.prototype.enrollmentMapData;
15450
+ /** @type {?} */
15545
15451
  ContentStripFacetFilterComponent.prototype.facetForm;
15546
15452
  /**
15547
15453
  * @type {?}
@@ -17097,15 +17003,14 @@
17097
17003
  function (strip, calculateParentStatus) {
17098
17004
  if (calculateParentStatus === void 0) { calculateParentStatus = true; }
17099
17005
  return __awaiter(this, void 0, void 0, function () {
17100
- var courses, tabResults, userId, response, countOfWidget_1;
17006
+ var courses, tabResults, response, countOfWidget_1;
17101
17007
  return __generator(this, function (_a) {
17102
17008
  switch (_a.label) {
17103
17009
  case 0:
17104
17010
  if (!(strip.request && strip.request.cbpList && Object.keys(strip.request.cbpList).length)) return [3 /*break*/, 5];
17105
17011
  courses = void 0;
17106
17012
  tabResults = [];
17107
- userId = this.configSvc.userProfile.userId;
17108
- return [4 /*yield*/, this.userSvc.fetchCbpPlanList(userId).toPromise()];
17013
+ return [4 /*yield*/, this.userSvc.fetchCbpPlanList().toPromise()];
17109
17014
  case 1:
17110
17015
  response = _a.sent();
17111
17016
  if (!response) return [3 /*break*/, 4];
@@ -17350,13 +17255,13 @@
17350
17255
  /** @nocollapse */
17351
17256
  ContentStripWithTabsPillsComponent.ctorParameters = function () { return [
17352
17257
  { type: undefined, decorators: [{ type: core.Inject, args: ['environment',] }] },
17353
- { type: WidgetContentLibService },
17258
+ { type: WidgetContentService },
17354
17259
  { type: utilsV2.LoggerService },
17355
17260
  { type: utilsV2.EventService },
17356
17261
  { type: utilsV2.ConfigurationsService },
17357
17262
  { type: utilsV2.UtilityService },
17358
17263
  { type: router.Router },
17359
- { type: WidgetUserServiceLib },
17264
+ { type: WidgetUserService },
17360
17265
  { type: core$1.TranslateService },
17361
17266
  { type: MultilingualTranslationsService }
17362
17267
  ]; };
@@ -17423,6 +17328,8 @@
17423
17328
  ContentStripWithTabsPillsComponent.prototype.enrollInterval;
17424
17329
  /** @type {?} */
17425
17330
  ContentStripWithTabsPillsComponent.prototype.todaysEvents;
17331
+ /** @type {?} */
17332
+ ContentStripWithTabsPillsComponent.prototype.enrollmentMapData;
17426
17333
  /**
17427
17334
  * @type {?}
17428
17335
  * @private
@@ -18272,7 +18179,7 @@
18272
18179
  /** @nocollapse */
18273
18180
  CompetencyPassbookComponent.ctorParameters = function () { return [
18274
18181
  { type: utilsV2.ConfigurationsService },
18275
- { type: WidgetContentLibService },
18182
+ { type: WidgetContentService },
18276
18183
  { type: CompetencyPassbookService },
18277
18184
  { type: router.Router },
18278
18185
  { type: undefined, decorators: [{ type: core.Inject, args: ['environment',] }] }
@@ -18831,7 +18738,7 @@
18831
18738
  /** @nocollapse */
18832
18739
  CompetencyPassbookMdoComponent.ctorParameters = function () { return [
18833
18740
  { type: utilsV2.ConfigurationsService },
18834
- { type: WidgetContentLibService },
18741
+ { type: WidgetContentService },
18835
18742
  { type: CompetencyPassbookMdoService },
18836
18743
  { type: router.Router },
18837
18744
  { type: undefined, decorators: [{ type: core.Inject, args: ['environment',] }] }
@@ -20189,15 +20096,23 @@
20189
20096
  * @return {?}
20190
20097
  */
20191
20098
  function (event) {
20099
+ /** @type {?} */
20100
+ var _subType = 'mandatory-courses';
20101
+ /** @type {?} */
20102
+ var _id = 'mandatory-courses-card';
20103
+ if (event.typeOfTelemetry === 'learningContent') {
20104
+ _subType = 'explore-learning-content';
20105
+ _id = 'explore-learning-content-card';
20106
+ }
20192
20107
  this.events.raiseInteractTelemetry({
20193
20108
  type: 'click',
20194
- subType: 'mandatory-courses',
20195
- id: "mandatory-courses-card",
20109
+ subType: _subType,
20110
+ id: _id,
20196
20111
  }, {
20197
20112
  id: event.identifier,
20198
20113
  type: event.primaryCategory,
20199
20114
  }, {
20200
- pageIdExt: "mandatory-courses-card",
20115
+ pageIdExt: _id,
20201
20116
  module: 'National Learning Week',
20202
20117
  });
20203
20118
  };
@@ -21159,6 +21074,7 @@
21159
21074
  */
21160
21075
  function () {
21161
21076
  var _this = this;
21077
+ debugger;
21162
21078
  this.insightSvc.fetchUserProgress().subscribe((/**
21163
21079
  * @param {?} res
21164
21080
  * @return {?}
@@ -21424,85 +21340,85 @@
21424
21340
  exports.UserProgressModule = UserProgressModule;
21425
21341
  exports.WIDGET_REGISTERED_LIB_MODULES = WIDGET_REGISTERED_LIB_MODULES;
21426
21342
  exports.WIDGET_REGISTRATION_LIB_CONFIG = WIDGET_REGISTRATION_LIB_CONFIG;
21427
- exports.WidgetContentLibService = WidgetContentLibService;
21428
- exports.WidgetUserServiceLib = WidgetUserServiceLib;
21343
+ exports.WidgetContentService = WidgetContentService;
21429
21344
  exports.ɵa = ContentStripWithTabsLibComponent;
21430
- exports.ɵb = MultilingualTranslationsService;
21431
- exports.ɵba = CardsComponent;
21432
- exports.ɵbb = CardPortraitComponent;
21433
- exports.ɵbc = CardUserComponent;
21434
- exports.ɵbd = CardLandscapeComponent;
21435
- exports.ɵbe = CardWideComponent;
21436
- exports.ɵbf = CardMDOChannelComponent;
21437
- exports.ɵbg = CardWideV2Component;
21438
- exports.ɵbh = CardKarmaProgramsComponent;
21439
- exports.ɵbi = CardKarmaProgramsV2Component;
21440
- exports.ɵbj = ProviderCardComponent;
21441
- exports.ɵbk = CardPortraitExtComponent;
21442
- exports.ɵbl = CardAssessmentComponent;
21443
- exports.ɵbm = CardProgressPortraitLibComponent;
21444
- exports.ɵbn = CertificateService;
21445
- exports.ɵbo = CardMdoChannelV1Component;
21446
- exports.ɵbp = PipePublicURLModule;
21447
- exports.ɵbq = PipePublicURL;
21448
- exports.ɵbr = ObjectToArrayPipeModule;
21449
- exports.ɵbs = ObjectToArrayPipe;
21450
- exports.ɵbt = DisplayContentTypeLibModule;
21451
- exports.ɵbu = DisplayContentTypeLibComponent;
21452
- exports.ɵbv = DefaultThumbnailModule;
21453
- exports.ɵbw = DefaultThumbnailDirective;
21454
- exports.ɵbx = PipeDurationTransformModule;
21455
- exports.ɵby = PipeDurationTransformPipe;
21456
- exports.ɵbz = ContentProgressComponent;
21457
- exports.ɵc = ConfigurationsService;
21458
- exports.ɵca = CertificateDialogComponent;
21459
- exports.ɵcb = AvatarPhotoLibModule;
21460
- exports.ɵcc = AvatarPhotoLibComponent;
21461
- exports.ɵcd = ContentStripFacetFilterComponent;
21462
- exports.ɵce = ContentStripWithTabsPillsComponent;
21463
- exports.ɵcf = CompetencyPassbookComponent;
21464
- exports.ɵcg = CompetencyPassbookService;
21465
- exports.ɵch = PillsModule;
21466
- exports.ɵci = PillsComponent;
21467
- exports.ɵcj = CompetencyPassbookMdoComponent;
21468
- exports.ɵck = CompetencyPassbookMdoService;
21469
- exports.ɵcl = UserContentRatingLibComponent;
21470
- exports.ɵcm = RatingService;
21471
- exports.ɵcn = UserContentRatingLibService;
21472
- exports.ɵco = MdoChannelV1Component;
21473
- exports.ɵcp = MdoChannelV2Component;
21474
- exports.ɵcq = ProvidersV2Component;
21475
- exports.ɵcr = NationalLearningComponent;
21476
- exports.ɵcs = KeyHighlightsComponent;
21477
- exports.ɵct = EventsComponent;
21478
- exports.ɵcu = EventCardComponent;
21479
- exports.ɵcv = MdoLeaderboardComponent;
21480
- exports.ɵcw = HighlightsOfWeekComponent;
21481
- exports.ɵcx = SpeakersComponent;
21482
- exports.ɵcy = UserProgressComponent;
21483
- exports.ɵd = HorizontalScrollerV2Module;
21484
- exports.ɵe = HorizontalScrollerV2Component;
21485
- exports.ɵf = SlidersLibComponent;
21486
- exports.ɵg = NavigationModule;
21487
- exports.ɵh = NavigationDirective;
21488
- exports.ɵi = ImageResponsiveModule;
21489
- exports.ɵj = ImageResponsiveDirective;
21490
- exports.ɵk = DataPointsComponent;
21491
- exports.ɵl = InsiteDataService;
21492
- exports.ɵm = SkeletonLoaderLibModule;
21493
- exports.ɵn = SkeletonLoaderLibComponent;
21494
- exports.ɵo = CalenderComponent;
21495
- exports.ɵp = CalenderDayComponent;
21496
- exports.ɵq = CommonStripComponent;
21497
- exports.ɵr = AnnouncementsComponent;
21498
- exports.ɵs = TopLearnersComponent;
21499
- exports.ɵt = CbpPlanComponent;
21500
- exports.ɵu = ScrollableItemDirective;
21501
- exports.ɵv = ScrollableItemModule;
21502
- exports.ɵw = MyHammerConfig$1;
21503
- exports.ɵx = SlidersNgContentLibModule;
21504
- exports.ɵy = SlidersNgContentLibComponent;
21505
- exports.ɵz = CardResourceComponent;
21345
+ exports.ɵb = WidgetUserService;
21346
+ exports.ɵba = CardResourceComponent;
21347
+ exports.ɵbb = CardsComponent;
21348
+ exports.ɵbc = CardPortraitComponent;
21349
+ exports.ɵbd = CardUserComponent;
21350
+ exports.ɵbe = CardLandscapeComponent;
21351
+ exports.ɵbf = CardWideComponent;
21352
+ exports.ɵbg = CardMDOChannelComponent;
21353
+ exports.ɵbh = CardWideV2Component;
21354
+ exports.ɵbi = CardKarmaProgramsComponent;
21355
+ exports.ɵbj = CardKarmaProgramsV2Component;
21356
+ exports.ɵbk = ProviderCardComponent;
21357
+ exports.ɵbl = CardPortraitExtComponent;
21358
+ exports.ɵbm = CardAssessmentComponent;
21359
+ exports.ɵbn = CardProgressPortraitLibComponent;
21360
+ exports.ɵbo = CertificateService;
21361
+ exports.ɵbp = CardMdoChannelV1Component;
21362
+ exports.ɵbq = PipePublicURLModule;
21363
+ exports.ɵbr = PipePublicURL;
21364
+ exports.ɵbs = ObjectToArrayPipeModule;
21365
+ exports.ɵbt = ObjectToArrayPipe;
21366
+ exports.ɵbu = DisplayContentTypeLibModule;
21367
+ exports.ɵbv = DisplayContentTypeLibComponent;
21368
+ exports.ɵbw = DefaultThumbnailModule;
21369
+ exports.ɵbx = DefaultThumbnailDirective;
21370
+ exports.ɵby = PipeDurationTransformModule;
21371
+ exports.ɵbz = PipeDurationTransformPipe;
21372
+ exports.ɵc = MultilingualTranslationsService;
21373
+ exports.ɵca = ContentProgressComponent;
21374
+ exports.ɵcb = CertificateDialogComponent;
21375
+ exports.ɵcc = AvatarPhotoLibModule;
21376
+ exports.ɵcd = AvatarPhotoLibComponent;
21377
+ exports.ɵce = ContentStripFacetFilterComponent;
21378
+ exports.ɵcf = ContentStripWithTabsPillsComponent;
21379
+ exports.ɵcg = CompetencyPassbookComponent;
21380
+ exports.ɵch = CompetencyPassbookService;
21381
+ exports.ɵci = PillsModule;
21382
+ exports.ɵcj = PillsComponent;
21383
+ exports.ɵck = CompetencyPassbookMdoComponent;
21384
+ exports.ɵcl = CompetencyPassbookMdoService;
21385
+ exports.ɵcm = UserContentRatingLibComponent;
21386
+ exports.ɵcn = RatingService;
21387
+ exports.ɵco = UserContentRatingLibService;
21388
+ exports.ɵcp = MdoChannelV1Component;
21389
+ exports.ɵcq = MdoChannelV2Component;
21390
+ exports.ɵcr = ProvidersV2Component;
21391
+ exports.ɵcs = NationalLearningComponent;
21392
+ exports.ɵct = KeyHighlightsComponent;
21393
+ exports.ɵcu = EventsComponent;
21394
+ exports.ɵcv = EventCardComponent;
21395
+ exports.ɵcw = MdoLeaderboardComponent;
21396
+ exports.ɵcx = HighlightsOfWeekComponent;
21397
+ exports.ɵcy = SpeakersComponent;
21398
+ exports.ɵcz = UserProgressComponent;
21399
+ exports.ɵd = ConfigurationsService;
21400
+ exports.ɵe = HorizontalScrollerV2Module;
21401
+ exports.ɵf = HorizontalScrollerV2Component;
21402
+ exports.ɵg = SlidersLibComponent;
21403
+ exports.ɵh = NavigationModule;
21404
+ exports.ɵi = NavigationDirective;
21405
+ exports.ɵj = ImageResponsiveModule;
21406
+ exports.ɵk = ImageResponsiveDirective;
21407
+ exports.ɵl = DataPointsComponent;
21408
+ exports.ɵm = InsiteDataService;
21409
+ exports.ɵn = SkeletonLoaderLibModule;
21410
+ exports.ɵo = SkeletonLoaderLibComponent;
21411
+ exports.ɵp = CalenderComponent;
21412
+ exports.ɵq = CalenderDayComponent;
21413
+ exports.ɵr = CommonStripComponent;
21414
+ exports.ɵs = AnnouncementsComponent;
21415
+ exports.ɵt = TopLearnersComponent;
21416
+ exports.ɵu = CbpPlanComponent;
21417
+ exports.ɵv = ScrollableItemDirective;
21418
+ exports.ɵw = ScrollableItemModule;
21419
+ exports.ɵx = MyHammerConfig$1;
21420
+ exports.ɵy = SlidersNgContentLibModule;
21421
+ exports.ɵz = SlidersNgContentLibComponent;
21506
21422
 
21507
21423
  Object.defineProperty(exports, '__esModule', { value: true });
21508
21424