@sunbird-cb/consumption 0.0.82 → 0.0.84

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 +1412 -15
  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/data-points/data-points.component.js +37 -5
  6. package/esm2015/lib/_common/events/event-card/event-card.component.js +82 -0
  7. package/esm2015/lib/_common/events/events.component.js +167 -0
  8. package/esm2015/lib/_common/events/events.module.js +24 -0
  9. package/esm2015/lib/_common/highlights-of-week/highlights-of-week.component.js +76 -0
  10. package/esm2015/lib/_common/highlights-of-week/highlights-of-week.module.js +28 -0
  11. package/esm2015/lib/_common/key-highlights/key-highlights.component.js +65 -0
  12. package/esm2015/lib/_common/key-highlights/key-highlights.module.js +28 -0
  13. package/esm2015/lib/_common/mdo-leaderboard/mdo-leaderboard.component.js +193 -0
  14. package/esm2015/lib/_common/mdo-leaderboard/mdo-leaderboard.module.js +30 -0
  15. package/esm2015/lib/_common/microsites/national-learning-week/national-learning/national-learning.component.js +131 -0
  16. package/esm2015/lib/_common/microsites/national-learning-week/national-learning.module.js +50 -0
  17. package/esm2015/lib/_common/sliders-ng-content/sliders-ng-content.component.js +7 -3
  18. package/esm2015/lib/_common/speakers/speakers.component.js +105 -0
  19. package/esm2015/lib/_common/speakers/speakers.module.js +28 -0
  20. package/esm2015/lib/_common/user-progress/user-progress.component.js +173 -0
  21. package/esm2015/lib/_common/user-progress/user-progress.module.js +28 -0
  22. package/esm2015/lib/_services/insite-data.service.js +41 -2
  23. package/esm2015/lib/consumption.module.js +1 -1
  24. package/esm2015/public-api.js +8 -1
  25. package/esm2015/sunbird-cb-consumption.js +10 -2
  26. package/esm5/lib/_common/data-points/data-points.component.js +41 -5
  27. package/esm5/lib/_common/events/event-card/event-card.component.js +92 -0
  28. package/esm5/lib/_common/events/events.component.js +181 -0
  29. package/esm5/lib/_common/events/events.module.js +28 -0
  30. package/esm5/lib/_common/highlights-of-week/highlights-of-week.component.js +89 -0
  31. package/esm5/lib/_common/highlights-of-week/highlights-of-week.module.js +32 -0
  32. package/esm5/lib/_common/key-highlights/key-highlights.component.js +74 -0
  33. package/esm5/lib/_common/key-highlights/key-highlights.module.js +32 -0
  34. package/esm5/lib/_common/mdo-leaderboard/mdo-leaderboard.component.js +221 -0
  35. package/esm5/lib/_common/mdo-leaderboard/mdo-leaderboard.module.js +34 -0
  36. package/esm5/lib/_common/microsites/national-learning-week/national-learning/national-learning.component.js +155 -0
  37. package/esm5/lib/_common/microsites/national-learning-week/national-learning.module.js +54 -0
  38. package/esm5/lib/_common/sliders-ng-content/sliders-ng-content.component.js +7 -3
  39. package/esm5/lib/_common/speakers/speakers.component.js +122 -0
  40. package/esm5/lib/_common/speakers/speakers.module.js +32 -0
  41. package/esm5/lib/_common/user-progress/user-progress.component.js +198 -0
  42. package/esm5/lib/_common/user-progress/user-progress.module.js +32 -0
  43. package/esm5/lib/_services/insite-data.service.js +58 -2
  44. package/esm5/lib/consumption.module.js +1 -1
  45. package/esm5/public-api.js +8 -1
  46. package/esm5/sunbird-cb-consumption.js +10 -2
  47. package/fesm2015/sunbird-cb-consumption.js +1221 -11
  48. package/fesm2015/sunbird-cb-consumption.js.map +1 -1
  49. package/fesm5/sunbird-cb-consumption.js +1393 -11
  50. package/fesm5/sunbird-cb-consumption.js.map +1 -1
  51. package/lib/_common/data-points/data-points.component.d.ts +3 -0
  52. package/lib/_common/events/event-card/event-card.component.d.ts +13 -0
  53. package/lib/_common/events/events.component.d.ts +17 -0
  54. package/lib/_common/events/events.module.d.ts +2 -0
  55. package/lib/_common/highlights-of-week/highlights-of-week.component.d.ts +14 -0
  56. package/lib/_common/highlights-of-week/highlights-of-week.module.d.ts +2 -0
  57. package/lib/_common/key-highlights/key-highlights.component.d.ts +15 -0
  58. package/lib/_common/key-highlights/key-highlights.module.d.ts +2 -0
  59. package/lib/_common/mdo-leaderboard/mdo-leaderboard.component.d.ts +20 -0
  60. package/lib/_common/mdo-leaderboard/mdo-leaderboard.module.d.ts +2 -0
  61. package/lib/_common/microsites/national-learning-week/national-learning/national-learning.component.d.ts +20 -0
  62. package/lib/_common/microsites/national-learning-week/national-learning.module.d.ts +2 -0
  63. package/lib/_common/sliders-ng-content/sliders-ng-content.component.d.ts +1 -0
  64. package/lib/_common/speakers/speakers.component.d.ts +15 -0
  65. package/lib/_common/speakers/speakers.module.d.ts +2 -0
  66. package/lib/_common/user-progress/user-progress.component.d.ts +24 -0
  67. package/lib/_common/user-progress/user-progress.module.d.ts +2 -0
  68. package/lib/_services/insite-data.service.d.ts +5 -0
  69. package/package.json +1 -1
  70. package/public-api.d.ts +7 -0
  71. package/sunbird-cb-consumption.d.ts +8 -0
  72. package/sunbird-cb-consumption.metadata.json +1 -1
@@ -2,7 +2,7 @@
2
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
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
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$2, core$1, of, dayjs_, httpLoader, layout, platformBrowser, Hammer, forms, jspdf) { 'use strict';
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
 
@@ -1683,7 +1683,7 @@
1683
1683
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1684
1684
  */
1685
1685
  /** @type {?} */
1686
- var moment = moment$2;
1686
+ var moment = moment$4;
1687
1687
  // tslint:enable
1688
1688
  // TODO: move this in some common place
1689
1689
  /** @type {?} */
@@ -7398,7 +7398,12 @@
7398
7398
  PROVIDER_INSIGHTS: "/apis/proxies/v8/microsite/read/insights",
7399
7399
  TRAINING_DETAILS: "apis/proxies/v8/sunbirdigot/search",
7400
7400
  ANNOUNCEMENTS_DETAILS: "apis/proxies/v8/announcements/v1/search",
7401
- LEARNERS: "apis/proxies/v8/halloffame/top/learners"
7401
+ LEARNERS: "apis/proxies/v8/halloffame/top/learners",
7402
+ LEADERBOARD: 'apis/proxies/v8/halloffame/v1/mdoleaderboard',
7403
+ LEADERBOARD_USERS: "apis/proxies/v8/halloffame/v1/userleaderboard",
7404
+ NLW_LEADERBOARD: "apis/proxies/v8/national/learning/week/insights",
7405
+ INSIGHTS: "apis/proxies/v8/read/user/insights",
7406
+ USER_PROGRESS: "apis/proxies/v8/halloffame/v1/userleaderboard",
7402
7407
  };
7403
7408
  var InsiteDataService = /** @class */ (function () {
7404
7409
  function InsiteDataService(http) {
@@ -7448,6 +7453,57 @@
7448
7453
  function (channelId) {
7449
7454
  return this.http.get(API_END_POINTS$2.LEARNERS + "/" + channelId);
7450
7455
  };
7456
+ /**
7457
+ * @return {?}
7458
+ */
7459
+ InsiteDataService.prototype.fetchLeaderboard = /**
7460
+ * @return {?}
7461
+ */
7462
+ function () {
7463
+ return this.http.get("" + API_END_POINTS$2.LEADERBOARD);
7464
+ };
7465
+ /**
7466
+ * @param {?} orgId
7467
+ * @return {?}
7468
+ */
7469
+ InsiteDataService.prototype.fetchMdoUsers = /**
7470
+ * @param {?} orgId
7471
+ * @return {?}
7472
+ */
7473
+ function (orgId) {
7474
+ return this.http.get(API_END_POINTS$2.LEADERBOARD_USERS + "/" + orgId);
7475
+ };
7476
+ /**
7477
+ * @return {?}
7478
+ */
7479
+ InsiteDataService.prototype.fetchNwlStats = /**
7480
+ * @return {?}
7481
+ */
7482
+ function () {
7483
+ return this.http.get("" + API_END_POINTS$2.NLW_LEADERBOARD);
7484
+ };
7485
+ /**
7486
+ * @param {?} payload
7487
+ * @return {?}
7488
+ */
7489
+ InsiteDataService.prototype.fetchInsightsData = /**
7490
+ * @param {?} payload
7491
+ * @return {?}
7492
+ */
7493
+ function (payload) {
7494
+ /** @type {?} */
7495
+ var result = this.http.post(API_END_POINTS$2.INSIGHTS, payload);
7496
+ return result;
7497
+ };
7498
+ /**
7499
+ * @return {?}
7500
+ */
7501
+ InsiteDataService.prototype.fetchUserProgress = /**
7502
+ * @return {?}
7503
+ */
7504
+ function () {
7505
+ return this.http.get("" + API_END_POINTS$2.USER_PROGRESS);
7506
+ };
7451
7507
  InsiteDataService.decorators = [
7452
7508
  { type: core.Injectable, args: [{
7453
7509
  providedIn: 'root'
@@ -7494,7 +7550,12 @@
7494
7550
  }
7495
7551
  if (this.fetchDataFromApi) {
7496
7552
  this.isDataLoading = true;
7497
- this.getInsiteData();
7553
+ if (this.pageLayout === 'nlw') {
7554
+ this.getStats();
7555
+ }
7556
+ else {
7557
+ this.getInsiteData();
7558
+ }
7498
7559
  }
7499
7560
  };
7500
7561
  /**
@@ -7563,6 +7624,32 @@
7563
7624
  _this.isDataLoading = false;
7564
7625
  }));
7565
7626
  };
7627
+ /**
7628
+ * @return {?}
7629
+ */
7630
+ DataPointsComponent.prototype.getStats = /**
7631
+ * @return {?}
7632
+ */
7633
+ function () {
7634
+ var _this = this;
7635
+ this.insightSvc.fetchNwlStats().subscribe((/**
7636
+ * @param {?} res
7637
+ * @return {?}
7638
+ */
7639
+ function (res) {
7640
+ if (res && res.result && res.result.data) {
7641
+ _this.objectData = res.result.data;
7642
+ }
7643
+ _this.isDataLoading = false;
7644
+ }), (/**
7645
+ * @param {?} error
7646
+ * @return {?}
7647
+ */
7648
+ function (error) {
7649
+ console.log(error);
7650
+ _this.isDataLoading = false;
7651
+ }));
7652
+ };
7566
7653
  /**
7567
7654
  * @param {?} value
7568
7655
  * @return {?}
@@ -7593,8 +7680,8 @@
7593
7680
  DataPointsComponent.decorators = [
7594
7681
  { type: core.Component, args: [{
7595
7682
  selector: 'sb-uic-data-points',
7596
- template: "<div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'multipleRows' && !isDataLoading\">\n <div *ngFor=\"let obj of objectData; let last = last\" class=\"\">\n <div class=\"element-div\" [ngClass]=\"{'linebreak': obj?.linebreak && !last}\">\n <div class=\"flex flex-row gap-3 items-top\">\n <div>\n <img class=\"objIcon\" [src]=\"obj.icon\" [style.color]=\"obj?.iconColor\">\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"objHeader pb-1\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColor\" class=\"objHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n {{obj.value | number: obj.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"objDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<div class=\"w-full pl-5 margin-top-l\" *ngIf=\"layoutType === 'multipleRows-V2' && !isDataLoading\">\n <!-- <div class=\"logodiv margin-bottom-s\">\n <img alt=\"Application Logo\" class=\"logoimg\" src=\"/assets/instances/eagle/app_logos/KarmayogiBharat_Logo_Horizontal.svg\">\n </div> -->\n <div *ngFor=\"let obj of objectData; let i = index\">\n <div class=\"flex flex-row gap-3 {{(i+1 === objectData.length ? '' : 'pb-5')}}\">\n <div class=\"v2-icons-div\">\n <div class=\"v2-icon-contaier\"\n [style.background]=\"obj?.iconBackgroupColorV2\"\n [style.borderColor]=\"obj?.valueColorV2\">\n <img class=\"v2-objIcon\" [src]=\"obj.icon\" />\n </div>\n </div>\n <div class=\"v2-content-div\">\n <div class=\"flex flex-col\">\n <div class=\"v2-value\" [style.color]=\"obj?.valueColorV2\" *ngIf=\"!(obj && obj?.value)\">0</div>\n <div class=\"v2-value\" [style.color]=\"obj?.valueColorV2\">\n {{converToIndianSystem(obj?.value)}}\n </div>\n <div class=\"v2-label\" [style.color]=\"obj?.labelColorV2\">\n {{obj?.label}}\n </div>\n <div class=\"flex flex-row dot-container\" *ngIf=\"i+1 !== objectData?.length\">\n <div class=\"v2-dot\"\n [style.background]=\"obj?.valueColorV2\"\n [style.borderColor]=\"obj?.labelColorV2\"></div>\n <div class=\"v2-border\" [style.background]=\"obj?.labelColorV2\"></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'singleRow-v2' && !isDataLoading\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div flex-item\" [style.background]=\"obj?.backgroundV2\" >\n <div class=\"flex flex-row gap-3\">\n <div class=\"mob-image-container-v2\" [style.borderColor]=\"obj?.valueColorV2\">\n <img [style.color]=\"obj?.iconColor\" class=\"mobjIcon-v2\" [src]=\"obj.icon\">\n </div>\n <div>\n <div [style.color]=\"obj?.valueColorMobV2\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColorMobV2\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n {{converToIndianSystem(obj?.value)}}\n </div>\n <div [style.color]=\"obj?.labelColorV2\" class=\"mobjDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'singleRow' && !isDataLoading\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div {{obj?.background}} flex-item\" [style.background]=\"obj?.background\" >\n <div class=\"flex flex-row gap-3\">\n <div>\n <img [style.color]=\"obj?.iconColor\" class=\"mobjIcon\" [src]=\"obj.icon\">\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n {{obj?.value | number: obj.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"mobjDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n </div> \n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'gridLayout'\">\n <div class=\"w-full\" *ngIf=\"layoutType === 'gridLayout'\">\n <div class=\"top-container\">\n <div class=\"flex-container\" *ngFor=\"let chunk of customArray\">\n <div *ngFor=\"let item of chunk\">\n <div class=\"flex-item\">\n <div class=\"flex flex-row gap-5 infra-element-div\">\n <div>\n <div [style.color]=\"item?.valueColor\" class=\"infra-objHeader\" *ngIf=\"!(item && item.value)\">0</div>\n <div [style.color]=\"item?.valueColor\" class=\"infra-objHeader\" *ngIf=\"(item && item.value)\">\n {{item?.value | number: item.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div [style.color]=\"item?.labelColor\" class=\"custom-opacity infra-objDescription padding-top-s\">{{item?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n\n </div>\n </div>\n </div> \n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'singleFlexeRow' && !isDataLoading\">\n <div class=\"flex space-around\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"singleFlexeRow-div singleFlexeRow flex-item\">\n <div class=\"flex flex-row gap-3\">\n <div>\n <img [style.color]=\"obj?.iconColor\" class=\"singleFlexeRowIcon\" [src]=\"obj.icon\">\n </div>\n <div class=\"flex flex-col\">\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"(obj && obj.value)\">\n {{converToIndianSystem(obj?.value)}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"singleFlexeRowDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<!-- skeleton loaders -->\n\n<ng-container>\n <div class=\"w-full metrics-web customdiv\" *ngIf=\"layoutType === 'multipleRows-V2' && isDataLoading\">\n <div *ngFor=\"let obj of [1,2,3,4]l let i = index\">\n <div class=\"flex flex-row gap-4 {{(i+1 === objectData.length ? '' : 'pb-5')}}\">\n <div class=\"v2-icons-div\">\n <div class=\"v2-icon-contaier\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'55px'\"\n [height]=\"'55px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n <div class=\"v2-content-div\">\n <div class=\"flex flex-col\">\n <div class=\"v2-value\" [style.color]=\"obj?.valueColor\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"v2-label\" [style.color]=\"obj?.labelColor\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'100px'\"\n [height]=\"'16px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div> \n </div>\n </div>\n</ng-container>\n\n<ng-container>\n <div class=\"w-full metrics-web customdiv\" *ngIf=\"layoutType === 'multipleRows' && isDataLoading\">\n <div *ngFor=\"let obj of [0,1,2,3]\" class=\"\">\n <div class=\"element-div linebreak\" >\n <div class=\"flex flex-row gap-3 items-top\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'32px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\n </div>\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'150px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'singleFlexeRow' && isDataLoading\">\n <div class=\"flex\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"singleFlexeRow-div flex-item\">\n <div class=\"flex flex-row gap-3\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div class=\"flex flex-col\">\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"!(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"singleFlexeRowDescription\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'100px'\" [height]=\"'20px'\">\n </sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"w-full\" *ngIf=\"layoutType === 'singleRow' && isDataLoading\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div {{obj?.background}} flex-item\" [style.background]=\"obj?.background\" >\n <div class=\"flex flex-row gap-3\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'20px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"mobjDescription\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'100px'\" [height]=\"'18px'\">\n </sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"w-full\" *ngIf=\"layoutType === 'singleRow-v2' && isDataLoading\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div flex-item\" [style.background]=\"obj?.backgroundV2\" >\n <div class=\"flex flex-row gap-3\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"mobjDescription\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'100px'\" [height]=\"'18px'\">\n </sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-container>\n",
7597
- styles: ["@font-face{font-family:Poppins;src:url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-400-normal.woff2) format('woff2'),url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-400-normal.woff) format('woff')}.mob-image-container-v2{height:28px;width:28px;background:#fff;display:flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid #fff}.mobjIcon-v2{width:18px;height:18px}.v2-icon-contaier{height:45px;width:45px;border:1px solid #fff;border-radius:50%;align-items:center;display:flex;justify-content:center}.v2-value{font-family:Poppins;font-size:20px;font-weight:600;line-height:20px;text-align:left;padding-bottom:5px;padding-left:10px}.v2-label{font-family:Poppins;font-size:12px;font-weight:400;line-height:18px;text-align:left;padding-bottom:5px;padding-left:10px}.dot-container{align-items:center}.v2-dot{width:9px;height:9px;border:2px solid #fff;border-radius:50%}.v2-border{height:1px;width:182px}.white{color:#fff}.custom-opacity{opacity:.7}.black{color:#000}.objIcon{width:32px;height:32px}.mobjIcon{width:24px;height:24px}.objHeader{font-family:Montserrat;font-size:24px;font-weight:600;line-height:29.26px;text-align:left}.mobjHeader{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.objDescription{font-family:Lato;font-size:16px;font-weight:400;line-height:19.2px;text-align:left}.mobjDescription{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left}.metrics-web{height:inherit;overflow-y:auto}.element-div{padding:25px 0;margin:0 25px}.linebreak{border-bottom:1px solid rgba(0,0,0,.16)}.singleFlexeRow-flex-item{flex:0 0 auto;white-space:nowrap}.singleFlexeRow-div{padding:16px;border-radius:15px}.singleFlexeRowHeader{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:left}.singleFlexeRowDescription{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left}.singleFlexeRowIcon{width:24px;height:24px}.melement-div{padding:16px;border-radius:15px;width:249px}.banner-metrics{background:linear-gradient(180deg,#f9cb97 -107.59%,#ef951e 110.74%)}.infra-element-div{min-width:325px;padding:25px 0;align-items:baseline}.infra-objIcon{width:32px;height:32px}.infra-objHeader{font-family:Montserrat;font-size:36px;font-weight:600;line-height:29.26px;text-align:left}.infra-objDescription{font-family:Lato;font-size:16px;font-weight:400;line-height:19.2px;text-align:left;width:230px;text-overflow:ellipsis;overflow:hidden}.flex-container{display:flex}.top-container{overflow-x:auto;width:100%}::-webkit-scrollbar{height:4px}::-webkit-scrollbar-track{border-radius:10px;background:#000}::-webkit-scrollbar-thumb{background:#cccc;border-radius:10px}.flex-item{flex:0 0 auto;white-space:nowrap;min-width:200px}.space-around{justify-content:space-evenly}@media screen and (min-width:768px) and (max-width:1023px){.v2-icon-contaier{height:25px;width:25px}.v2-objIcon{width:14px}.v2-value{font-size:14px!important;line-height:14px!important;padding-left:0!important}.v2-label{font-size:9px!important;line-height:9px!important;padding-left:0!important}.v2-dot{width:6px!important;height:6px!important;border:1px solid #fff!important}.v2-border{width:109px!important}}@media screen and (min-width:1023px) and (max-width:1280px){.customdiv{margin-left:6%;margin-top:.6em!important}.v2-icon-contaier{height:34px;width:34px}.v2-objIcon{width:20px}.v2-value{font-size:16px!important;line-height:16px!important;padding-left:0!important}.v2-label{font-size:10px!important;line-height:10px!important;padding-left:0!important}.v2-dot{width:8px!important;height:8px!important;border:1px solid #fff!important}.v2-border{width:122px!important}}@media screen and (max-width:768px){.infra-objIcon{width:24px;height:24px}.infra-objHeader{font-size:24px}.infra-element-div{min-width:250px;padding:15px 0 25px}}@media screen and (min-width:1280px){.customdiv{margin-left:24%}}@media screen and (min-width:1690px){.customdiv{margin-left:34%}}@media screen and (min-width:1904px){.customdiv{margin-left:44%}}.logodiv{background:#fff;width:150px;border-radius:45px;text-align:center;padding:8px 0 2px}.logoimg{width:114px}"]
7683
+ template: "<div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'multipleRows' && !isDataLoading\">\n <div *ngFor=\"let obj of objectData; let last = last\" class=\"\">\n <div class=\"element-div\" [ngClass]=\"{'linebreak': obj?.linebreak && !last}\">\n <div class=\"flex flex-row gap-3 items-top\">\n <div>\n <img class=\"objIcon\" [src]=\"obj.icon\" [style.color]=\"obj?.iconColor\">\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"objHeader pb-1\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColor\" class=\"objHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n {{obj.value | number: obj.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"objDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<div class=\"w-full pl-5 margin-top-l\" *ngIf=\"layoutType === 'multipleRows-V2' && !isDataLoading\">\n <!-- <div class=\"logodiv margin-bottom-s\">\n <img alt=\"Application Logo\" class=\"logoimg\" src=\"/assets/instances/eagle/app_logos/KarmayogiBharat_Logo_Horizontal.svg\">\n </div> -->\n <div *ngFor=\"let obj of objectData; let i = index\">\n <div class=\"flex flex-row gap-3 {{(i+1 === objectData.length ? '' : 'pb-5')}}\">\n <div class=\"v2-icons-div\">\n <div class=\"v2-icon-contaier\"\n [style.background]=\"obj?.iconBackgroupColorV2\"\n [style.borderColor]=\"obj?.valueColorV2\">\n <img class=\"v2-objIcon\" [src]=\"obj.icon\" />\n </div>\n </div>\n <div class=\"v2-content-div\">\n <div class=\"flex flex-col\">\n <div class=\"v2-value\" [style.color]=\"obj?.valueColorV2\" *ngIf=\"!(obj && obj?.value)\">0</div>\n <div class=\"v2-value\" [style.color]=\"obj?.valueColorV2\">\n {{converToIndianSystem(obj?.value)}}\n </div>\n <div class=\"v2-label\" [style.color]=\"obj?.labelColorV2\">\n {{obj?.label}}\n </div>\n <div class=\"flex flex-row dot-container\" *ngIf=\"i+1 !== objectData?.length\">\n <div class=\"v2-dot\"\n [style.background]=\"obj?.valueColorV2\"\n [style.borderColor]=\"obj?.labelColorV2\"></div>\n <div class=\"v2-border\" [style.background]=\"obj?.labelColorV2\"></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'singleRow-v2' && !isDataLoading\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div flex-item\" [style.background]=\"obj?.backgroundV2\" >\n <div class=\"flex flex-row gap-3\">\n <div class=\"mob-image-container-v2\" [style.borderColor]=\"obj?.valueColorV2\">\n <img [style.color]=\"obj?.iconColor\" class=\"mobjIcon-v2\" [src]=\"obj.icon\">\n </div>\n <div>\n <div [style.color]=\"obj?.valueColorMobV2\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColorMobV2\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n {{converToIndianSystem(obj?.value)}}\n </div>\n <div [style.color]=\"obj?.labelColorV2\" class=\"mobjDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'singleRow' && !isDataLoading\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div {{obj?.background}} flex-item\" [style.background]=\"obj?.background\" >\n <div class=\"flex flex-row gap-3\">\n <div>\n <img [style.color]=\"obj?.iconColor\" class=\"mobjIcon\" [src]=\"obj.icon\">\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n {{obj?.value | number: obj.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"mobjDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n </div> \n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'gridLayout'\">\n <div class=\"w-full\" *ngIf=\"layoutType === 'gridLayout'\">\n <div class=\"top-container\">\n <div class=\"flex-container\" *ngFor=\"let chunk of customArray\">\n <div *ngFor=\"let item of chunk\">\n <div class=\"flex-item\">\n <div class=\"flex flex-row gap-5 infra-element-div\">\n <div>\n <div [style.color]=\"item?.valueColor\" class=\"infra-objHeader\" *ngIf=\"!(item && item.value)\">0</div>\n <div [style.color]=\"item?.valueColor\" class=\"infra-objHeader\" *ngIf=\"(item && item.value)\">\n {{item?.value | number: item.value % 1 === 0 ? '1.0-0' : '1.1-2'}}\n </div>\n <div [style.color]=\"item?.labelColor\" class=\"custom-opacity infra-objDescription padding-top-s\">{{item?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n\n </div>\n </div>\n </div> \n</div>\n\n<div class=\"w-full\" *ngIf=\"layoutType === 'singleFlexeRow' && !isDataLoading\">\n <div class=\"flex space-around\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"singleFlexeRow-div singleFlexeRow flex-item\">\n <div class=\"flex flex-row gap-3\">\n <div>\n <img [style.color]=\"obj?.iconColor\" class=\"singleFlexeRowIcon\" [src]=\"obj.icon\">\n </div>\n <div class=\"flex flex-col\">\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"(obj && obj.value)\">\n {{converToIndianSystem(obj?.value)}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"singleFlexeRowDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<div class=\"w-full\" *ngIf=\"pageLayout === 'nlw' && !isDataLoading\">\n <div class=\"stats-header\">\n <div class=\"flex items-center justify-center stats-title\">\n <span class=\"my-arrow\">&#10094;</span>\n <span class=\"my-arrow less-opacity1\">&#10094;</span>\n <span class=\"my-arrow less-opacity2\">&#10094;</span>\n <span class=\"px-4\">{{title}}</span>\n <span class=\"my-arrow less-opacity2\">&#10095;</span>\n <span class=\"my-arrow less-opacity1\">&#10095;</span>\n <span class=\"my-arrow\">&#10095;</span>\n </div>\n </div>\n <div class=\"nlw-status\" *ngIf=\"layoutType === 'nlwRow'\">\n <div class=\"flex space-around pt-5\">\n <div *ngFor=\"let obj of objectData; index as i\" class=\"flex-container\">\n <div class=\"nlw-div singleFlexeRow flex-item {{i === 0 ? '' : 'divider'}} \">\n <div class=\"flex flex-row gap-3\">\n <div>\n <img [style.color]=\"obj?.iconColor\" class=\"singleFlexeRowIcon\" [src]=\"obj.icon\">\n </div>\n <div class=\"flex flex-col\">\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"(obj && obj.value)\">\n {{converToIndianSystem(obj?.value)}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"singleFlexeRowDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"nlw-status-mob\" *ngIf=\"layoutType === 'nlwCol'\">\n <div *ngFor=\"let obj of objectData; index as i\" class=\"flex-container\">\n <div class=\"nlw-div singleFlexeRow flex-item {{i === 0 ? '' : 'divider'}} \">\n <div class=\"flex flex-row gap-3\">\n <div>\n <img [style.color]=\"obj?.iconColor\" class=\"singleFlexeRowIcon\" [src]=\"obj.icon\">\n </div>\n <div class=\"flex flex-col\">\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"!(obj && obj.value)\">0</div>\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"(obj && obj.value)\">\n {{converToIndianSystem(obj?.value)}}\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"singleFlexeRowDescription\">{{obj?.label}}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<!-- skeleton loaders -->\n\n<ng-container>\n <div class=\"w-full metrics-web customdiv\" *ngIf=\"layoutType === 'multipleRows-V2' && isDataLoading\">\n <div *ngFor=\"let obj of [1,2,3,4]l let i = index\">\n <div class=\"flex flex-row gap-4 {{(i+1 === objectData.length ? '' : 'pb-5')}}\">\n <div class=\"v2-icons-div\">\n <div class=\"v2-icon-contaier\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'55px'\"\n [height]=\"'55px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n <div class=\"v2-content-div\">\n <div class=\"flex flex-col\">\n <div class=\"v2-value\" [style.color]=\"obj?.valueColor\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"v2-label\" [style.color]=\"obj?.labelColor\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'100px'\"\n [height]=\"'16px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div> \n </div>\n </div>\n</ng-container>\n\n<ng-container>\n <div class=\"w-full metrics-web customdiv\" *ngIf=\"layoutType === 'multipleRows' && isDataLoading\">\n <div *ngFor=\"let obj of [0,1,2,3]\" class=\"\">\n <div class=\"element-div linebreak\" >\n <div class=\"flex flex-row gap-3 items-top\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'32px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\n </div>\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'100px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded mb-1'\" [width]=\"'150px'\"\n [height]=\"'24px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'singleFlexeRow' && isDataLoading\">\n <div class=\"flex\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"singleFlexeRow-div flex-item\">\n <div class=\"flex flex-row gap-3\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div class=\"flex flex-col\">\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"!(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.valueColor\" class=\"singleFlexeRowHeader pb-2\" *ngIf=\"(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"singleFlexeRowDescription\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'100px'\" [height]=\"'20px'\">\n </sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"w-full\" *ngIf=\"layoutType === 'singleRow' && isDataLoading\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div {{obj?.background}} flex-item\" [style.background]=\"obj?.background\" >\n <div class=\"flex flex-row gap-3\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'20px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"mobjDescription\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'100px'\" [height]=\"'18px'\">\n </sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"w-full\" *ngIf=\"layoutType === 'singleRow-v2' && isDataLoading\">\n <div class=\"flex gap-4\">\n <div *ngFor=\"let obj of objectData\" class=\"flex-container\">\n <div class=\"melement-div flex-item\" [style.background]=\"obj?.backgroundV2\" >\n <div class=\"flex flex-row gap-3\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'24px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"!(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.valueColor\" class=\"mobjHeader pb-1\" *ngIf=\"(obj && obj.value)\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'24px'\" [height]=\"'19px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div [style.color]=\"obj?.labelColor\" class=\"mobjDescription\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'100px'\" [height]=\"'18px'\">\n </sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-container>\n",
7684
+ styles: ["@font-face{font-family:Poppins;src:url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-400-normal.woff2) format('woff2'),url(https://cdn.jsdelivr.net/fontsource/fonts/poppins@latest/latin-400-normal.woff) format('woff')}.stats-header{display:flex;align-items:center;justify-content:center}.stats-title{background-color:#f3962f;padding:12px 16px;color:#fff;font-family:Lato;font-size:14px;font-weight:700;line-height:16.8px;border-radius:35px;margin-top:-20px;z-index:90}.my-arrow{font-size:12px}.less-opacity1{opacity:.75}.less-opacity2{opacity:.5}.nlw-status{background:linear-gradient(173.01deg,#266eeb -5.09%,#133f8b 133.16%);margin-top:-22px}.nlw-status-mob{background:linear-gradient(173.01deg,#266eeb -5.09%,#133f8b 133.16%);margin-top:-22px;padding-top:32px}.nlw-div{padding:0 16px;margin:10px 0 16px}.divider{border-left:1.6px solid #a6a4a4}.mob-image-container-v2{height:28px;width:28px;background:#fff;display:flex;align-items:center;justify-content:center;border-radius:50%;border:1px solid #fff}.mobjIcon-v2{width:18px;height:18px}.v2-icon-contaier{height:45px;width:45px;border:1px solid #fff;border-radius:50%;align-items:center;display:flex;justify-content:center}.v2-value{font-family:Poppins;font-size:20px;font-weight:600;line-height:20px;text-align:left;padding-bottom:5px;padding-left:10px}.v2-label{font-family:Poppins;font-size:12px;font-weight:400;line-height:18px;text-align:left;padding-bottom:5px;padding-left:10px}.dot-container{align-items:center}.v2-dot{width:9px;height:9px;border:2px solid #fff;border-radius:50%}.v2-border{height:1px;width:182px}.white{color:#fff}.custom-opacity{opacity:.7}.black{color:#000}.objIcon{width:32px;height:32px}.mobjIcon{width:24px;height:24px}.objHeader{font-family:Montserrat;font-size:24px;font-weight:600;line-height:29.26px;text-align:left}.mobjHeader{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.objDescription{font-family:Lato;font-size:16px;font-weight:400;line-height:19.2px;text-align:left}.mobjDescription{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left}.metrics-web{height:inherit;overflow-y:auto}.element-div{padding:25px 0;margin:0 25px}.linebreak{border-bottom:1px solid rgba(0,0,0,.16)}.singleFlexeRow-flex-item{flex:0 0 auto;white-space:nowrap}.singleFlexeRow-div{padding:16px;border-radius:15px}.singleFlexeRowHeader{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:left}.singleFlexeRowDescription{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left}.singleFlexeRowIcon{width:24px;height:24px}.melement-div{padding:16px;border-radius:15px;width:249px}.banner-metrics{background:linear-gradient(180deg,#f9cb97 -107.59%,#ef951e 110.74%)}.infra-element-div{min-width:325px;padding:25px 0;align-items:baseline}.infra-objIcon{width:32px;height:32px}.infra-objHeader{font-family:Montserrat;font-size:36px;font-weight:600;line-height:29.26px;text-align:left}.infra-objDescription{font-family:Lato;font-size:16px;font-weight:400;line-height:19.2px;text-align:left;width:230px;text-overflow:ellipsis;overflow:hidden}.flex-container{display:flex}.top-container{overflow-x:auto;width:100%}::-webkit-scrollbar{height:4px}::-webkit-scrollbar-track{border-radius:10px;background:#000}::-webkit-scrollbar-thumb{background:#cccc;border-radius:10px}.flex-item{flex:0 0 auto;white-space:nowrap;min-width:200px}.space-around{justify-content:space-evenly}@media screen and (min-width:768px) and (max-width:1023px){.v2-icon-contaier{height:25px;width:25px}.v2-objIcon{width:14px}.v2-value{font-size:14px!important;line-height:14px!important;padding-left:0!important}.v2-label{font-size:9px!important;line-height:9px!important;padding-left:0!important}.v2-dot{width:6px!important;height:6px!important;border:1px solid #fff!important}.v2-border{width:109px!important}}@media screen and (min-width:1023px) and (max-width:1280px){.customdiv{margin-left:6%;margin-top:.6em!important}.v2-icon-contaier{height:34px;width:34px}.v2-objIcon{width:20px}.v2-value{font-size:16px!important;line-height:16px!important;padding-left:0!important}.v2-label{font-size:10px!important;line-height:10px!important;padding-left:0!important}.v2-dot{width:8px!important;height:8px!important;border:1px solid #fff!important}.v2-border{width:122px!important}}@media screen and (max-width:768px){.infra-objIcon{width:24px;height:24px}.infra-objHeader{font-size:24px}.infra-element-div{min-width:250px;padding:15px 0 25px}}@media screen and (min-width:1280px){.customdiv{margin-left:24%}}@media screen and (min-width:1690px){.customdiv{margin-left:34%}}@media screen and (min-width:1904px){.customdiv{margin-left:44%}}.logodiv{background:#fff;width:150px;border-radius:45px;text-align:center;padding:8px 0 2px}.logoimg{width:114px}"]
7598
7685
  }] }
7599
7686
  ];
7600
7687
  /** @nocollapse */
@@ -7606,7 +7693,8 @@
7606
7693
  layoutType: [{ type: core.Input }],
7607
7694
  fetchDataFromApi: [{ type: core.Input }],
7608
7695
  providerId: [{ type: core.Input }],
7609
- pageLayout: [{ type: core.Input }]
7696
+ pageLayout: [{ type: core.Input }],
7697
+ title: [{ type: core.Input }]
7610
7698
  };
7611
7699
  return DataPointsComponent;
7612
7700
  }());
@@ -7622,10 +7710,14 @@
7622
7710
  /** @type {?} */
7623
7711
  DataPointsComponent.prototype.pageLayout;
7624
7712
  /** @type {?} */
7713
+ DataPointsComponent.prototype.title;
7714
+ /** @type {?} */
7625
7715
  DataPointsComponent.prototype.customArray;
7626
7716
  /** @type {?} */
7627
7717
  DataPointsComponent.prototype.isDataLoading;
7628
7718
  /** @type {?} */
7719
+ DataPointsComponent.prototype.apiResults;
7720
+ /** @type {?} */
7629
7721
  DataPointsComponent.prototype.insightSvc;
7630
7722
  }
7631
7723
 
@@ -9259,7 +9351,7 @@
9259
9351
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9260
9352
  */
9261
9353
  /** @type {?} */
9262
- var moment$1 = moment$2;
9354
+ var moment$1 = moment$4;
9263
9355
  var TopLearnersComponent = /** @class */ (function () {
9264
9356
  function TopLearnersComponent(insightSvc) {
9265
9357
  this.insightSvc = insightSvc;
@@ -9679,6 +9771,7 @@
9679
9771
  _this.title = '';
9680
9772
  _this.loadNgContentData = false;
9681
9773
  _this.autoScroll = false;
9774
+ _this.customBanner = false;
9682
9775
  _this.currentIndexValue = new core.EventEmitter();
9683
9776
  _this.id = "banner_" + Math.random();
9684
9777
  _this.defaultMenuSubscribe = null;
@@ -9832,8 +9925,8 @@
9832
9925
  SlidersNgContentLibComponent.decorators = [
9833
9926
  { type: core.Component, args: [{
9834
9927
  selector: 'sb-uic-sliders-ng-content',
9835
- template: "<div class=\"banner-container {{isMobile? styleData?.responsive?.bannerMetaClass : styleData?.bannerMetaClass}}\" (swipeleft)=\"slideTo(currentIndex + 1)\" (swiperight)=\"slideTo(currentIndex - 1)\"\n *ngIf=\"widgetData?.length > 1\" [style.height]=\"isMobile? styleData?.responsive?.customHeight : styleData?.customHeight\"\n [ngStyle]=\"{'border-radius': styleData?.borderRadius || '12px'}\">\n <ng-container *ngIf=\"!loadNgContentData\">\n <a (click)=\"raiseTelemetry(widgetData[currentIndex].redirectUrl)\"\n [routerLink]=\" !isOpenInNewTab && widgetData[currentIndex].redirectUrl? widgetData[currentIndex].redirectUrl : null\" class=\"banner-overlay\"\n [ngClass]=\"{'cursor-auto': !widgetData[currentIndex].redirectUrl}\">\n <div class=\"banner WidgetInstanceId\" *ngFor=\"let slide of widgetData; let i = index\" [hidden]=\"i !== currentIndex\">\n <img i18n-alt alt=\"Page Banner\" [src]=\"slide.banners\" wsUtilsImageResponsive class=\"banner-image\" />\n </div>\n </a>\n <ng-container *ngIf=\"isMobile && styleData?.responsive?.dots !== 'hidden' || !isMobile && styleData?.dots !== 'hidden'\">\n <div class=\"banner-meta {{isMobile? styleData?.responsive?.bannerMetaAlign : styleData?.bannerMetaAlign}}\">\n <a [routerLink]=\" !isOpenInNewTab && widgetData[currentIndex].redirectUrl? widgetData[currentIndex].redirectUrl : null\" class=\"banner-title text-truncate\"\n *ngIf=\"widgetData[currentIndex].title\" [title]=\"widgetData[currentIndex].title\">\n {{ widgetData[currentIndex].title }}\n </a>\n <div class=\"dots-container\" *ngIf=\"widgetData?.length > 1\">\n <span class=\"dot\" [ngClass]=\"{ active: j === currentIndex }\" *ngFor=\"let slide of widgetData; let j = index\"\n (click)=\"slideTo(j)\"></span>\n </div>\n </div>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"loadNgContentData\">\n <!-- <div class=\"banner WidgetInstanceId\" *ngFor=\"let slide of widgetData; let i = index\" [hidden]=\"i !== currentIndex\"> -->\n <ng-content select=\"[sliderbody]\"></ng-content>\n <!-- </div> -->\n <ng-container *ngIf=\"isMobile && styleData?.responsive?.dots !== 'hidden' || !isMobile && styleData?.dots !== 'hidden'\">\n <div class=\"banner-meta {{isMobile? styleData?.responsive?.bannerMetaAlign : styleData?.bannerMetaAlign}}\">\n <a [routerLink]=\" !isOpenInNewTab && widgetData[currentIndex].redirectUrl? widgetData[currentIndex].redirectUrl : null\" class=\"banner-title text-truncate\"\n *ngIf=\"widgetData[currentIndex].title\" [title]=\"widgetData[currentIndex].title\">\n {{ widgetData[currentIndex].title }}\n </a>\n <div class=\"dots-container\" *ngIf=\"widgetData?.length > 1\">\n <span class=\"dot\" [ngClass]=\"{ active: j === currentIndex }\" *ngFor=\"let slide of widgetData; let j = index\"\n (click)=\"slideTo(j)\"></span>\n <ng-content select=\"[sliderMeta]\"></ng-content>\n </div>\n </div>\n </ng-container>\n </ng-container>\n <div class=\"navigation {{isMobile? styleData?.responsive?.arrowsPlacement : styleData?.arrowsPlacement}}\" \n *ngIf=\"isMobile && styleData?.responsive?.navigationArrows !== 'hidden' || !isMobile && styleData?.navigationArrows !== 'hidden'\">\n <a *ngIf=\"widgetData?.length > 1\" role=\"button\" class=\"prev\" (click)=\"slideTo(currentIndex - 1)\">&#10094;</a>\n <a *ngIf=\"widgetData?.length > 1\" role=\"button\" class=\"next\" (click)=\"slideTo(currentIndex + 1)\">&#10095;</a>\n </div>\n</div>\n<div class=\"banner-container-solo margin-top-s\" *ngIf=\"widgetData?.length == 1\">\n <img i18n-alt alt=\"Page Banner\" width=\"100%\" height=\"100%\" [src]=\"widgetData[0].banners\" wsUtilsImageResponsive class=\"banner-image-solo\" />\n</div>\n\n<!-- <ng-container *ngIf=\"!widgetData?.length\">\n <div class=\"slider default-slider h-full\">\n <div class=\"relative h-full\">\n <img class=\"h-full\" src=\"assets/icons/home/default-slider-image.svg\" alt=\"\">\n <div class=\"default-title rounded-full\">\n <p class=\"mat-h1\">{{title}}</p>\n </div>\n </div>\n </div>\n</ng-container> -->\n",
9836
- styles: [".banner-container{min-height:243px;position:relative;margin:auto;padding-bottom:40px}.banner-container.inline-meta{padding-bottom:0!important}.banner-container.flat .banner .banner-image{border-radius:0!important}.banner-overlay{z-index:1;top:0;left:0;width:100%;height:100%;background:linear-gradient(to left,rgba(0,0,0,.25) 0,rgba(0,0,0,0) 15%,rgba(0,0,0,0) 85%,rgba(0,0,0,.25) 100%);border-radius:inherit}.banner{-webkit-animation-name:fade;-webkit-animation-duration:1.5s;animation-name:fade;animation-duration:1.5s;border-radius:inherit;height:inherit}.banner .banner-image{width:100%;min-height:243px;display:block;border-radius:inherit;height:inherit}.banner-meta{text-align:center;z-index:2;padding:8px 12px;position:absolute;bottom:0;left:50%;border-radius:12px;transform:translateX(-50%);box-sizing:border-box}.banner-meta.left{left:0;transform:translateX(0)}.banner-meta.right{left:100%;transform:translateX(-100%)}.banner-meta.top-center{left:0;bottom:100%;transform:translateX(-100%)}.banner-meta .banner-title{color:#f2f2f2;margin-bottom:8px;font-size:1.1rem}@media only screen and (max-width:599px){.banner-meta .banner-title{display:none}}.banner-meta .dots-container{padding:8px;display:flex;align-items:center;justify-content:center}.banner-meta .dots-container .dot{cursor:pointer;height:6px;width:6px;margin:0 4px;background-color:rgba(0,0,0,.4);border-radius:50%;display:inline-block;transition:background-color .5s!important}@media only screen and (max-width:599px){.banner-meta .dots-container .dot{height:8px;width:8px;margin:0 4px}}.banner-meta .dots-container .dot.active{border-radius:4px;background-color:#f3962f;width:16px}@keyframes fade{from{opacity:.25}to{opacity:1}}.next,.prev{cursor:pointer;position:absolute;top:50%;transform:translateY(-50%);color:#fff;font-weight:700;background-color:#1b2133!important;border-radius:50%;z-index:999;height:32px!important;width:32px!important;display:flex;align-items:center;margin-top:-16px;justify-content:center}.prev{left:0;margin-left:-16px}.next{right:0;margin-right:-16px}.navigation.bottom-right .prev{left:unset;right:45px;bottom:-15px;top:unset}.navigation.bottom-right .next{left:unset;right:15px;bottom:-15px;top:unset}.navigation.bottom-center .prev{left:calc(50% - 20px);right:unset;bottom:-15px;top:unset}.navigation.bottom-center .next{left:calc(50% + 20px);right:unset;bottom:-15px;top:unset}.navigation.bottom-left .prev{left:15px;right:unset;bottom:-15px;top:unset}.navigation.bottom-left .next{left:60px;right:unset;bottom:-15px;top:unset}.navigation.middle-inline .prev{left:30px}.navigation.middle-inline .next{right:30px}.banner-container-solo{overflow:hidden;margin:auto;border-radius:12px}.banner-image-solo{width:100%;display:block;border-radius:12px}.default-slider{height:100%;background:#d4e2fb}.default-slider .default-title{text-align:center;position:absolute;top:50%;left:0;right:0;margin:auto;transform:translateY(-50%);z-index:999;background:#e6efff;padding:32px;width:500px}.default-slider .default-title p{word-break:break-word;margin:0!important;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;text-transform:uppercase}@media screen and (max-width:768px){.default-slider{height:384px;width:100%}.default-slider .default-title{width:unset!important}}"]
9928
+ template: "<div class=\"{{customBanner ? 'keybanner' : 'banner-container'}} {{isMobile? styleData?.responsive?.bannerMetaClass : styleData?.bannerMetaClass}}\" (swipeleft)=\"slideTo(currentIndex + 1)\" (swiperight)=\"slideTo(currentIndex - 1)\"\n *ngIf=\"widgetData?.length > 1\" [style.height]=\"isMobile? styleData?.responsive?.customHeight : styleData?.customHeight\"\n [ngStyle]=\"{'border-radius': styleData?.borderRadius || '12px'}\">\n <ng-container *ngIf=\"!loadNgContentData\">\n <a (click)=\"raiseTelemetry(widgetData[currentIndex].redirectUrl)\"\n [routerLink]=\" !isOpenInNewTab && widgetData[currentIndex].redirectUrl? widgetData[currentIndex].redirectUrl : null\" class=\"banner-overlay\"\n [ngClass]=\"{'cursor-auto': !widgetData[currentIndex].redirectUrl}\">\n <div class=\"banner WidgetInstanceId\" *ngFor=\"let slide of widgetData; let i = index\" [hidden]=\"i !== currentIndex\">\n <img i18n-alt alt=\"Page Banner\" [src]=\"slide.banners\" wsUtilsImageResponsive class=\"banner-image\" />\n </div>\n </a>\n <ng-container *ngIf=\"isMobile && styleData?.responsive?.dots !== 'hidden' || !isMobile && styleData?.dots !== 'hidden'\">\n <div class=\"banner-meta {{isMobile? styleData?.responsive?.bannerMetaAlign : styleData?.bannerMetaAlign}}\">\n <a [routerLink]=\" !isOpenInNewTab && widgetData[currentIndex].redirectUrl? widgetData[currentIndex].redirectUrl : null\" class=\"banner-title text-truncate\"\n *ngIf=\"widgetData[currentIndex].title\" [title]=\"widgetData[currentIndex].title\">\n {{ widgetData[currentIndex].title }}\n </a>\n <div class=\"dots-container\" *ngIf=\"widgetData?.length > 1\">\n <span class=\"dot\" [ngClass]=\"{ active: j === currentIndex }\" *ngFor=\"let slide of widgetData; let j = index\"\n (click)=\"slideTo(j)\"></span>\n </div>\n </div>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"loadNgContentData\">\n <!-- <div class=\"banner WidgetInstanceId\" *ngFor=\"let slide of widgetData; let i = index\" [hidden]=\"i !== currentIndex\"> -->\n <ng-content select=\"[sliderbody]\"></ng-content>\n <!-- </div> -->\n <ng-container *ngIf=\"isMobile && styleData?.responsive?.dots !== 'hidden' || !isMobile && styleData?.dots !== 'hidden'\">\n <div class=\"banner-meta {{isMobile? styleData?.responsive?.bannerMetaAlign : styleData?.bannerMetaAlign}}\">\n <a [routerLink]=\" !isOpenInNewTab && widgetData[currentIndex].redirectUrl? widgetData[currentIndex].redirectUrl : null\" class=\"banner-title text-truncate\"\n *ngIf=\"widgetData[currentIndex].title\" [title]=\"widgetData[currentIndex].title\">\n {{ widgetData[currentIndex].title }}\n </a>\n <div class=\"dots-container\" *ngIf=\"widgetData?.length > 1\">\n <span class=\"dot\" [ngClass]=\"{ active: j === currentIndex }\" *ngFor=\"let slide of widgetData; let j = index\"\n (click)=\"slideTo(j)\"></span>\n <ng-content select=\"[sliderMeta]\"></ng-content>\n </div>\n </div>\n </ng-container>\n </ng-container>\n <div class=\"navigation {{isMobile? styleData?.responsive?.arrowsPlacement : styleData?.arrowsPlacement}}\" \n *ngIf=\"isMobile && styleData?.responsive?.navigationArrows !== 'hidden' || !isMobile && styleData?.navigationArrows !== 'hidden'\">\n <a *ngIf=\"widgetData?.length > 1\" role=\"button\" class=\"prev\" (click)=\"slideTo(currentIndex - 1)\">&#10094;</a>\n <a *ngIf=\"widgetData?.length > 1\" role=\"button\" class=\"next\" (click)=\"slideTo(currentIndex + 1)\">&#10095;</a>\n </div>\n</div>\n<div class=\"{{customBanner ? 'keybanner' : 'banner-container-solo'}} margin-top-s\" *ngIf=\"widgetData?.length == 1\">\n <img i18n-alt alt=\"Page Banner\" width=\"100%\" height=\"100%\" [src]=\"widgetData[0].banners\" wsUtilsImageResponsive class=\"banner-image-solo\" />\n</div>\n\n<!-- <ng-container *ngIf=\"!widgetData?.length\">\n <div class=\"slider default-slider h-full\">\n <div class=\"relative h-full\">\n <img class=\"h-full\" src=\"assets/icons/home/default-slider-image.svg\" alt=\"\">\n <div class=\"default-title rounded-full\">\n <p class=\"mat-h1\">{{title}}</p>\n </div>\n </div>\n </div>\n</ng-container> -->\n",
9929
+ styles: [".banner-container{min-height:243px;position:relative;margin:auto;padding-bottom:40px}.banner-container.inline-meta{padding-bottom:0!important}.banner-container.flat .banner .banner-image{border-radius:0!important}.keybanner{position:relative;margin:auto}.keybanner.inline-meta{padding-bottom:0!important}.keybanner.flat .banner .banner-image{border-radius:0!important}.banner-overlay{z-index:1;top:0;left:0;width:100%;height:100%;background:linear-gradient(to left,rgba(0,0,0,.25) 0,rgba(0,0,0,0) 15%,rgba(0,0,0,0) 85%,rgba(0,0,0,.25) 100%);border-radius:inherit}.banner{-webkit-animation-name:fade;-webkit-animation-duration:1.5s;animation-name:fade;animation-duration:1.5s;border-radius:inherit;height:inherit}.banner .banner-image{width:100%;min-height:243px;display:block;border-radius:inherit;height:inherit}.banner-meta{text-align:center;z-index:2;padding:8px 12px;position:absolute;bottom:0;left:50%;border-radius:12px;transform:translateX(-50%);box-sizing:border-box}.banner-meta.left{left:0;transform:translateX(0)}.banner-meta.right{left:100%;transform:translateX(-100%)}.banner-meta.top-center{left:0;bottom:100%;transform:translateX(-100%)}.banner-meta .banner-title{color:#f2f2f2;margin-bottom:8px;font-size:1.1rem}@media only screen and (max-width:599px){.banner-meta .banner-title{display:none}}.banner-meta .dots-container{padding:8px;display:flex;align-items:center;justify-content:center}.banner-meta .dots-container .dot{cursor:pointer;height:6px;width:6px;margin:0 4px;background-color:rgba(0,0,0,.4);border-radius:50%;display:inline-block;transition:background-color .5s!important}@media only screen and (max-width:599px){.banner-meta .dots-container .dot{height:8px;width:8px;margin:0 4px}}.banner-meta .dots-container .dot.active{border-radius:4px;background-color:#f3962f;width:16px}@keyframes fade{from{opacity:.25}to{opacity:1}}.next,.prev{cursor:pointer;position:absolute;top:50%;transform:translateY(-50%);color:#fff;font-weight:700;background-color:#1b2133!important;border-radius:50%;z-index:999;height:32px!important;width:32px!important;display:flex;align-items:center;margin-top:-16px;justify-content:center}.prev{left:0;margin-left:-16px}.next{right:0;margin-right:-16px}.navigation.bottom-right .prev{left:unset;right:45px;bottom:-15px;top:unset}.navigation.bottom-right .next{left:unset;right:15px;bottom:-15px;top:unset}.navigation.bottom-center .prev{left:calc(50% - 20px);right:unset;bottom:-15px;top:unset}.navigation.bottom-center .next{left:calc(50% + 20px);right:unset;bottom:-15px;top:unset}.navigation.bottom-left .prev{left:15px;right:unset;bottom:-15px;top:unset}.navigation.bottom-left .next{left:60px;right:unset;bottom:-15px;top:unset}.navigation.middle-inline .prev{left:30px}.navigation.middle-inline .next{right:30px}.banner-container-solo{overflow:hidden;margin:auto;border-radius:12px}.banner-image-solo{width:100%;display:block;border-radius:12px}.default-slider{height:100%;background:#d4e2fb}.default-slider .default-title{text-align:center;position:absolute;top:50%;left:0;right:0;margin:auto;transform:translateY(-50%);z-index:999;background:#e6efff;padding:32px;width:500px}.default-slider .default-title p{word-break:break-word;margin:0!important;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;text-transform:uppercase}@media screen and (max-width:768px){.default-slider{height:384px;width:100%}.default-slider .default-title{width:unset!important}}.keybanner .prev{background-color:#f3962f!important;color:#fff;top:50%;font-size:12px;height:26px!important;width:26px!important}.keybanner .next{top:50%;background-color:#f3962f!important;color:#fff;font-size:12px;height:26px!important;width:26px!important}@media screen and (max-width:768px){.keybanner .prev{top:50px;left:0;background-color:#f3962f!important;color:#fff}.keybanner .next{right:0;margin-right:-16px;top:50px;background-color:#f3962f!important;color:#fff}}"]
9837
9930
  }] }
9838
9931
  ];
9839
9932
  /** @nocollapse */
@@ -9847,6 +9940,7 @@
9847
9940
  title: [{ type: core.Input }],
9848
9941
  loadNgContentData: [{ type: core.Input }],
9849
9942
  autoScroll: [{ type: core.Input }],
9943
+ customBanner: [{ type: core.Input }],
9850
9944
  currentIndexValue: [{ type: core.Output }],
9851
9945
  id: [{ type: core.HostBinding, args: ['id',] }],
9852
9946
  currentIndex: [{ type: core.Input }]
@@ -9865,6 +9959,8 @@
9865
9959
  /** @type {?} */
9866
9960
  SlidersNgContentLibComponent.prototype.autoScroll;
9867
9961
  /** @type {?} */
9962
+ SlidersNgContentLibComponent.prototype.customBanner;
9963
+ /** @type {?} */
9868
9964
  SlidersNgContentLibComponent.prototype.currentIndexValue;
9869
9965
  /** @type {?} */
9870
9966
  SlidersNgContentLibComponent.prototype.id;
@@ -10819,18 +10915,18 @@
10819
10915
  * to Print HH:mm:ss
10820
10916
  * @type {?}
10821
10917
  */
10822
- var duration2 = moment$2.duration(data, 'seconds');
10918
+ var duration2 = moment$4.duration(data, 'seconds');
10823
10919
  /** @type {?} */
10824
- var resultstring = moment$2.utc(duration2.asMilliseconds()).format('HH:mm:ss');
10920
+ var resultstring = moment$4.utc(duration2.asMilliseconds()).format('HH:mm:ss');
10825
10921
  return resultstring;
10826
10922
  case 'hms2M': /**to Print mm:ss */
10827
10923
  /**
10828
10924
  * to Print mm:ss
10829
10925
  * @type {?}
10830
10926
  */
10831
- var duration2H = moment$2.duration(data, 'seconds');
10927
+ var duration2H = moment$4.duration(data, 'seconds');
10832
10928
  /** @type {?} */
10833
- var resultstring2H = moment$2.utc(duration2H.asMilliseconds()).format('mm:ss');
10929
+ var resultstring2H = moment$4.utc(duration2H.asMilliseconds()).format('mm:ss');
10834
10930
  return resultstring2H;
10835
10931
  case 'hour':
10836
10932
  if (h === 0) {
@@ -10846,7 +10942,7 @@
10846
10942
  case 'day':
10847
10943
  if (h > 24) {
10848
10944
  /** @type {?} */
10849
- var duration3 = moment$2.duration(data, 'seconds');
10945
+ var duration3 = moment$4.duration(data, 'seconds');
10850
10946
  return duration3.days() + " day(s)";
10851
10947
  }
10852
10948
  return this.hmsCalculation(h, m, s, duration$1, type);
@@ -18185,6 +18281,1292 @@
18185
18281
  return ProvidersModule;
18186
18282
  }());
18187
18283
 
18284
+ /**
18285
+ * @fileoverview added by tsickle
18286
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
18287
+ */
18288
+ var NationalLearningComponent = /** @class */ (function () {
18289
+ function NationalLearningComponent(router, events) {
18290
+ this.router = router;
18291
+ this.events = events;
18292
+ this.sectionList = [];
18293
+ this.providerId = '123456789';
18294
+ this.descriptionMaxLength = 500;
18295
+ }
18296
+ /**
18297
+ * @return {?}
18298
+ */
18299
+ NationalLearningComponent.prototype.ngOnInit = /**
18300
+ * @return {?}
18301
+ */
18302
+ function () {
18303
+ };
18304
+ /**
18305
+ * @param {?} event
18306
+ * @param {?} learnerReview
18307
+ * @return {?}
18308
+ */
18309
+ NationalLearningComponent.prototype.hideKeyHightlight = /**
18310
+ * @param {?} event
18311
+ * @param {?} learnerReview
18312
+ * @return {?}
18313
+ */
18314
+ function (event, learnerReview) {
18315
+ if (event) {
18316
+ learnerReview['hideSection'] = true;
18317
+ }
18318
+ };
18319
+ /**
18320
+ * @param {?} _stripData
18321
+ * @param {?} columnData
18322
+ * @return {?}
18323
+ */
18324
+ NationalLearningComponent.prototype.showAllContent = /**
18325
+ * @param {?} _stripData
18326
+ * @param {?} columnData
18327
+ * @return {?}
18328
+ */
18329
+ function (_stripData, columnData) {
18330
+ if (columnData && columnData.contentStrip && columnData.contentStrip.strips && columnData.contentStrip.strips.length) {
18331
+ /** @type {?} */
18332
+ var stripData = _stripData;
18333
+ /** @type {?} */
18334
+ var tabSelected = stripData.viewMoreUrl && stripData.viewMoreUrl.queryParams && stripData.viewMoreUrl.queryParams.tabSelected && stripData.viewMoreUrl.queryParams.tabSelected || '';
18335
+ this.router.navigate(["app/learn/national-learning-week/see-all"], { queryParams: { pageDetails: true, tabSelected: tabSelected, key: columnData.sectionKey } });
18336
+ }
18337
+ else {
18338
+ this.router.navigate(["/app/learn/browse-by/provider/" + this.providerName + "/" + this.providerId + "/all-CBP"], { queryParams: { pageDetails: true } });
18339
+ }
18340
+ };
18341
+ /**
18342
+ * @param {?} event
18343
+ * @param {?} contentStripData
18344
+ * @return {?}
18345
+ */
18346
+ NationalLearningComponent.prototype.hideContentStrip = /**
18347
+ * @param {?} event
18348
+ * @param {?} contentStripData
18349
+ * @return {?}
18350
+ */
18351
+ function (event, contentStripData) {
18352
+ if (event) {
18353
+ contentStripData.contentStrip['hideSection'] = true;
18354
+ }
18355
+ };
18356
+ /**
18357
+ * @param {?} event
18358
+ * @return {?}
18359
+ */
18360
+ NationalLearningComponent.prototype.raiseTabClick = /**
18361
+ * @param {?} event
18362
+ * @return {?}
18363
+ */
18364
+ function (event) {
18365
+ this.events.raiseInteractTelemetry({
18366
+ type: 'click',
18367
+ subType: 'mdo-leaderboard',
18368
+ id: event + "-tab",
18369
+ }, {}, {
18370
+ module: 'National Learning Week',
18371
+ });
18372
+ };
18373
+ /**
18374
+ * @param {?} event
18375
+ * @return {?}
18376
+ */
18377
+ NationalLearningComponent.prototype.raiseTelemetryInteratEvent = /**
18378
+ * @param {?} event
18379
+ * @return {?}
18380
+ */
18381
+ function (event) {
18382
+ this.events.raiseInteractTelemetry({
18383
+ type: 'click',
18384
+ subType: 'mandatory-courses',
18385
+ id: "mandatory-courses-card",
18386
+ }, {
18387
+ id: event.identifier,
18388
+ type: event.primaryCategory,
18389
+ }, {
18390
+ pageIdExt: "mandatory-courses-card",
18391
+ module: 'National Learning Week',
18392
+ });
18393
+ };
18394
+ NationalLearningComponent.decorators = [
18395
+ { type: core.Component, args: [{
18396
+ selector: 'sb-uic-national-learning',
18397
+ template: "<div class=\"container-fluid white-background nlm-micro-sites micro-white\" id=\"nlm-micro-sites\">\n <div class=\"flex flex-col flex-1\">\n <ng-container *ngIf=\"sectionList?.length\">\n <ng-container *ngFor=\"let section of sectionList\">\n <ng-container *ngIf=\"section?.enabled\">\n <section id=\"{{section?.key}}\" class=\"w-full grid grid-cols-12 gap-4\" [ngClass]=\"{'container': section.wrapperClass}\">\n <ng-container *ngFor=\"let column of section.column\">\n <div id=\"{{column?.key}}\" class=\"col-span-{{column.colspan || 12}} \">\n <ng-container *ngIf=\"column?.enabled\" [ngSwitch]=\"column?.key\">\n <ng-container *ngSwitchCase=\"'topSection'\" [ngTemplateOutlet]=\"topSection\"\n [ngTemplateOutletContext]=\"{data: column?.data}\"></ng-container>\n <ng-container *ngSwitchCase=\"'contentSection'\" [ngTemplateOutlet]=\"contentSection\"\n [ngTemplateOutletContext]=\"{data: column?.data}\"></ng-container>\n </ng-container>\n </div>\n </ng-container>\n </section>\n </ng-container>\n </ng-container>\n </ng-container>\n </div>\n</div>\n\n<ng-template #topSection let-data=\"data\">\n <!-- top section desktop layout -->\n <div class=\"w-full topSection\">\n <div *ngIf=\"data.sliderData && data.sliderData.sliders\">\n <sb-uic-sliders [widgetData]=\"data.sliderData.sliders\" [styleData]=\"data.sliderData.styleData\" ></sb-uic-sliders>\n </div>\n <div *ngIf=\"data && data.metrics\">\n <div class=\"block md:hidden\">\n <sb-uic-data-points\n [providerId]=\"providerId\"\n [fetchDataFromApi]=\"true\"\n [objectData]=\"data?.metrics?.data\"\n [layoutType]=\"'nlwCol'\"\n [title]=\"data?.metrics?.title\"\n [pageLayout]=\"'nlw'\">\n </sb-uic-data-points>\n </div>\n <div class=\"hidden md:block\">\n <sb-uic-data-points\n [providerId]=\"providerId\"\n [fetchDataFromApi]=\"true\"\n [objectData]=\"data?.metrics?.data\"\n [layoutType]=\"'nlwRow'\"\n [title]=\"data?.metrics?.title\"\n [pageLayout]=\"'nlw'\">\n </sb-uic-data-points>\n </div>\n </div>\n\n <div class=\"col-span-12\">\n <div class=\"flex items-center justify-center\">\n <div class=\"container\">\n <div class=\"block md:hidden\">\n <sb-uic-key-highlights (emptyResponse)=\"hideKeyHightlight($event, data.keyHighlights)\" [formData]=\"data.keyHighlights\" [providerId]=\"providerId\" [mode]=\"'mobile'\"></sb-uic-key-highlights>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"col-span-12\">\n <div class=\"flex items-center justify-center\">\n <div class=\"container\">\n <div class=\"hidden md:block\">\n <div class=\"flex flex items-center justify-center gap-10\">\n <div class=\"mr-4 logo-box-container\">\n <div class=\"flex logo-box-rounded top mr-4\">\n <img alt=\"Application Logo\" class=\"logo-img\" [src]=\"data?.imageUrl\">\n </div>\n </div>\n <div class=\"w-full md:w-9/12 flex-1 flex flex-col pr-3\">\n <div class=\" txt-ellipsis-2 break-words description-title\">{{data?.title}}</div>\n <div class=\"description\">{{data?.description | slice:0:descriptionMaxLength}}\n <span *ngIf=\"data?.description?.length > descriptionMaxLength\">...</span>\n </div>\n </div>\n </div>\n </div>\n <div class=\"block md:hidden\">\n <div class=\"flex flex-col items-center justify-center margin-bottom-xl px-5\">\n <div class=\"mlogo-box-rounded\">\n <img alt=\"Application Logo\" class=\"logo-img\" [src]=\"data?.imageUrl\">\n </div>\n </div>\n <div class=\"flex flex-col px-5\">\n <div class=\" txt-ellipsis-2 break-words description-title\">{{data?.title}}</div>\n <div class=\"mdescription\">{{data?.description | slice:0:descriptionMaxLength}}\n <span *ngIf=\"data?.description?.length > descriptionMaxLength\">...</span>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"col-span-12\">\n <div class=\"flex items-center justify-center\">\n <div class=\"container margin-top-xl\">\n <div class=\"hidden md:block\">\n <sb-uic-key-highlights (emptyResponse)=\"hideKeyHightlight($event, data.keyHighlights)\" [formData]=\"data.keyHighlights\" [providerId]=\"providerId\" [mode]=\"'desktop'\"></sb-uic-key-highlights>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-template>\n\n\n\n<ng-template #contentSection let-data=\"data\">\n <div class=\"flex items-center justify-center\">\n <div class=\"container\">\n <div class=\"grid grid-cols-12 gap-4 mb-6\">\n <div class=\"col-span-12 md:col-span-{{data.leftContent.colspan}}\">\n <div *ngIf=\"data.leftContent.data.weekHighlights.data\">\n <sb-uic-highlights-of-week\n [objectData]=\"data.leftContent.data.weekHighlights.data\">\n </sb-uic-highlights-of-week>\n </div>\n <div class=\"hidden md:block\">\n <div *ngIf=\"data.leftContent.data.mandatoryCourse.enabled && data?.leftContent?.data?.mandatoryCourse?.column[0]?.data\">\n <div class=\"margin-top-l nlw-mandatoryCourse\">\n <sb-uic-content-strip-with-tabs\n [emitViewAll]=\"false\"\n (viewAllResponse)=\"''\"\n (telemtryResponse)=\"raiseTelemetryInteratEvent($event)\"\n (emptyResponse)=\"''\"\n [providerId]=\"'123456789'\"\n [widgetData]=\"data?.leftContent?.data?.mandatoryCourse?.column[0]?.data\"\n [channnelName]=\"'channnelName'\">\n </sb-uic-content-strip-with-tabs>\n </div>\n </div>\n </div>\n <div class=\"hidden md:block\">\n <div *ngIf=\"data.leftContent.data.events.enabled && data.leftContent.data.events.column[0]\">\n <sb-uic-events [object]=\"data.leftContent.data.events.column[0]\" [nwlEventsConfig]=\"nwlConfiguration\"></sb-uic-events>\n </div>\n </div>\n </div>\n <div class=\"col-span-12 md:col-span-{{data.rightContent.colspan}}\">\n <div *ngIf=\"data.rightContent.data.myprogress\">\n <sb-uic-user-progress\n [objectData]=\"data.rightContent.data.myprogress.data\" [rootOrgId]=\"configDetails?.unMappedUser?.rootOrgId\">\n </sb-uic-user-progress>\n </div>\n <div *ngIf=\"data.rightContent.data.speakerOftheDay\">\n <sb-uic-speakers\n [objectData]=\"data.rightContent.data.speakerOftheDay.data\">\n </sb-uic-speakers>\n </div>\n <div *ngIf=\"data.rightContent.data.mdoLeaderboard\">\n <sb-uic-mdo-leaderboard\n [object]=\"data.rightContent.data.mdoLeaderboard.data\"\n (tabClicked)=\"raiseTabClick($event)\"></sb-uic-mdo-leaderboard>\n </div>\n\n <div class=\"block md:hidden\">\n <div *ngIf=\"data.leftContent.data.mandatoryCourse.enabled && data?.leftContent?.data?.mandatoryCourse?.column[0]?.data\">\n <div class=\"margin-top-l nlw-mandatoryCourse\">\n <sb-uic-content-strip-with-tabs\n [emitViewAll]=\"false\"\n (viewAllResponse)=\"''\"\n (telemtryResponse)=\"raiseTelemetryInteratEvent($event)\"\n (emptyResponse)=\"''\"\n [providerId]=\"'123456789'\"\n [widgetData]=\"data?.leftContent?.data?.mandatoryCourse?.column[0]?.data\"\n [channnelName]=\"'channnelName'\">\n </sb-uic-content-strip-with-tabs>\n </div>\n </div>\n </div>\n\n <div class=\"block md:hidden px-4 md-px-0\">\n <div *ngIf=\"data.leftContent.data.events.enabled && data.leftContent.data.events.column[0]\">\n <sb-uic-events [object]=\"data.leftContent.data.events.column[0]\" [nwlEventsConfig]=\"nwlConfiguration\"></sb-uic-events>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-template>\n\n\n",
18398
+ styles: ["::ng-deep.mat-app-background{background-color:#fff!important}.nlw-mandatoryCourse ::ng-deep.capitalize{font-size:20px;line-height:24.38px}.nlm-micro-sites ::ng-deep.container{max-width:1200px!important}.nlm-micro-sites ::ng-deep.banner-container{padding-bottom:0!important}.topSection ::ng-deep.prev{margin-left:15px!important}.topSection ::ng-deep.next{margin-right:15px!important}.topSection .stats-header{display:flex;align-items:center;justify-content:center;position:absolute;left:43.5%;top:-20px;text-transform:capitalize}.topSection .stats-title{display:flex;align-items:center;justify-content:center;background-color:#f3962f;padding:12px 16px;color:#fff;font-family:Lato;font-size:14px;font-weight:700;line-height:16.8px;border-radius:35px}.topSection .my-arrow{font-size:12px}.topSection .less-opacity1{opacity:.75}.topSection .less-opacity2{opacity:.5}.topSection .details-wrapper{padding:16px;display:flex;gap:50px}.topSection .logo-box-container{width:180px;position:relative}@media only screen and (max-width:599px){.topSection .logo-box-container{width:112px;height:72px}}.topSection .logo-box-rounded{height:180px;width:180px;background:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px 0 rgba(0,0,0,.06)}.topSection .logo-box-rounded .logo-img{max-width:122px}@media only screen and (max-width:599px){.topSection .logo-box-rounded{width:112px;height:112px}.topSection .logo-box-rounded .logo-img{max-width:84px}}.topSection .mlogo-box-rounded{height:180px;width:180px;background:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:1px 1px 8px 3px rgba(0,0,0,.06)}.topSection .mlogo-box-rounded .logo-img{max-width:122px}@media only screen and (max-width:599px){.topSection .mlogo-box-rounded{width:112px;height:112px}.topSection .mlogo-box-rounded .logo-img{max-width:84px}}.topSection .txt-ellipsis-2{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.topSection .description-title{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left;padding-bottom:16px}.topSection .description{font-family:Lato;font-size:16px;font-weight:400;line-height:24px;text-align:left}.topSection .mdescription{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left}@media screen and (min-width:320px) and (max-width:769px){.topSection ::ng-deep.prev{margin-left:15px!important}.topSection ::ng-deep.next{margin-right:15px!important}.topSection ::ng-deep.banner-container{min-height:212px!important}}"]
18399
+ }] }
18400
+ ];
18401
+ /** @nocollapse */
18402
+ NationalLearningComponent.ctorParameters = function () { return [
18403
+ { type: router.Router },
18404
+ { type: utilsV2.EventService }
18405
+ ]; };
18406
+ NationalLearningComponent.propDecorators = {
18407
+ sectionList: [{ type: core.Input }],
18408
+ configDetails: [{ type: core.Input }],
18409
+ nwlConfiguration: [{ type: core.Input }]
18410
+ };
18411
+ return NationalLearningComponent;
18412
+ }());
18413
+ if (false) {
18414
+ /** @type {?} */
18415
+ NationalLearningComponent.prototype.sectionList;
18416
+ /** @type {?} */
18417
+ NationalLearningComponent.prototype.configDetails;
18418
+ /** @type {?} */
18419
+ NationalLearningComponent.prototype.nwlConfiguration;
18420
+ /** @type {?} */
18421
+ NationalLearningComponent.prototype.providerId;
18422
+ /** @type {?} */
18423
+ NationalLearningComponent.prototype.providerName;
18424
+ /** @type {?} */
18425
+ NationalLearningComponent.prototype.descriptionMaxLength;
18426
+ /** @type {?} */
18427
+ NationalLearningComponent.prototype.router;
18428
+ /**
18429
+ * @type {?}
18430
+ * @private
18431
+ */
18432
+ NationalLearningComponent.prototype.events;
18433
+ }
18434
+
18435
+ /**
18436
+ * @fileoverview added by tsickle
18437
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
18438
+ */
18439
+ var KeyHighlightsComponent = /** @class */ (function () {
18440
+ function KeyHighlightsComponent() {
18441
+ this.currentIndex = 0;
18442
+ this.providerId = '';
18443
+ this.formData = '';
18444
+ this.emptyResponse = new core.EventEmitter();
18445
+ this.styleData = {};
18446
+ this.contentdata = [];
18447
+ }
18448
+ /**
18449
+ * @return {?}
18450
+ */
18451
+ KeyHighlightsComponent.prototype.ngOnInit = /**
18452
+ * @return {?}
18453
+ */
18454
+ function () {
18455
+ this.styleData = this.formData && this.formData.sliderData && this.formData.sliderData.styleData;
18456
+ this.contentdata = this.formData && this.formData.content ? this.formData.content : [];
18457
+ };
18458
+ /**
18459
+ * @param {?} indexValue
18460
+ * @return {?}
18461
+ */
18462
+ KeyHighlightsComponent.prototype.getCurrentIndex = /**
18463
+ * @param {?} indexValue
18464
+ * @return {?}
18465
+ */
18466
+ function (indexValue) {
18467
+ this.currentIndex = indexValue;
18468
+ };
18469
+ KeyHighlightsComponent.decorators = [
18470
+ { type: core.Component, args: [{
18471
+ selector: 'sb-uic-key-highlights',
18472
+ template: "<ng-container *ngIf=\"contentdata?.length && mode === 'desktop'\">\n <div class=\"key-highlighs-container\">\n <sb-uic-sliders-ng-content\n [title]=\"'providerName'\"\n [autoScroll]=\"true\"\n [currentIndex]=\"currentIndex\" \n (currentIndexValue)=\"getCurrentIndex($event)\"\n [loadNgContentData]=\"true\"\n [customBanner]=\"true\"\n [widgetData]=\"contentdata\" [styleData]=\"styleData\">\n <div sliderbody>\n <div *ngFor=\"let content of contentdata; let i = index\" [hidden]=\"i !== currentIndex\">\n <div class=\"flex flex-row key-wrapper items-center justify-center\">\n <div class=\"kh-description\"> {{content?.title}}</div>\n </div>\n </div>\n </div> \n </sb-uic-sliders-ng-content>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"contentdata?.length && mode === 'mobile'\">\n <div class=\"p-5\">\n <div class=\"mob-key-highlighs-container\">\n <sb-uic-sliders-ng-content\n [title]=\"'providerName'\"\n [autoScroll]=\"true\"\n [currentIndex]=\"currentIndex\" \n (currentIndexValue)=\"getCurrentIndex($event)\"\n [loadNgContentData]=\"true\"\n [customBanner]=\"true\"\n [widgetData]=\"contentdata\" [styleData]=\"styleData\">\n <div sliderbody>\n <div *ngFor=\"let content of contentdata; let i = index\" [hidden]=\"i !== currentIndex\">\n <div class=\"flex flex-row mkey-wrapper items-center justify-center\">\n <div class=\"mkh-description\"> {{content?.title}}</div>\n </div>\n </div>\n </div>\n </sb-uic-sliders-ng-content>\n </div>\n </div>\n</ng-container>",
18473
+ styles: [".kh-description{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:center;padding:0 10px}.key-wrapper{background-color:#eaf1f8;padding:25px 16px;border-radius:50px}.mkey-wrapper{background-color:#eaf1f8;padding:16px;border-radius:50px}.mkh-description{font-family:Lato;font-size:14px;font-weight:700;line-height:16.8px;text-align:center;padding:0 30px}"]
18474
+ }] }
18475
+ ];
18476
+ /** @nocollapse */
18477
+ KeyHighlightsComponent.ctorParameters = function () { return []; };
18478
+ KeyHighlightsComponent.propDecorators = {
18479
+ providerId: [{ type: core.Input }],
18480
+ formData: [{ type: core.Input }],
18481
+ mode: [{ type: core.Input }],
18482
+ emptyResponse: [{ type: core.Output }],
18483
+ scrollableItems: [{ type: core.ViewChildren, args: [ScrollableItemDirective,] }]
18484
+ };
18485
+ return KeyHighlightsComponent;
18486
+ }());
18487
+ if (false) {
18488
+ /** @type {?} */
18489
+ KeyHighlightsComponent.prototype.currentIndex;
18490
+ /** @type {?} */
18491
+ KeyHighlightsComponent.prototype.providerId;
18492
+ /** @type {?} */
18493
+ KeyHighlightsComponent.prototype.formData;
18494
+ /** @type {?} */
18495
+ KeyHighlightsComponent.prototype.mode;
18496
+ /** @type {?} */
18497
+ KeyHighlightsComponent.prototype.emptyResponse;
18498
+ /** @type {?} */
18499
+ KeyHighlightsComponent.prototype.styleData;
18500
+ /** @type {?} */
18501
+ KeyHighlightsComponent.prototype.contentdata;
18502
+ /** @type {?} */
18503
+ KeyHighlightsComponent.prototype.scrollableItems;
18504
+ }
18505
+
18506
+ /**
18507
+ * @fileoverview added by tsickle
18508
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
18509
+ */
18510
+ var KeyHighlightsModule = /** @class */ (function () {
18511
+ function KeyHighlightsModule() {
18512
+ }
18513
+ KeyHighlightsModule.decorators = [
18514
+ { type: core.NgModule, args: [{
18515
+ declarations: [KeyHighlightsComponent],
18516
+ imports: [
18517
+ common.CommonModule,
18518
+ material.MatIconModule,
18519
+ SlidersNgContentLibModule,
18520
+ ScrollableItemModule
18521
+ ],
18522
+ exports: [
18523
+ KeyHighlightsComponent
18524
+ ],
18525
+ schemas: [core.CUSTOM_ELEMENTS_SCHEMA]
18526
+ },] }
18527
+ ];
18528
+ return KeyHighlightsModule;
18529
+ }());
18530
+
18531
+ /**
18532
+ * @fileoverview added by tsickle
18533
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
18534
+ */
18535
+ /** @type {?} */
18536
+ var moment$2 = moment$4;
18537
+ var EventsComponent = /** @class */ (function () {
18538
+ function EventsComponent(insightSvc) {
18539
+ this.insightSvc = insightSvc;
18540
+ this.daysBetween = [];
18541
+ this.events = [];
18542
+ this.loader = false;
18543
+ }
18544
+ /**
18545
+ * @return {?}
18546
+ */
18547
+ EventsComponent.prototype.ngOnInit = /**
18548
+ * @return {?}
18549
+ */
18550
+ function () {
18551
+ this.requestBody = {
18552
+ locale: [
18553
+ 'en',
18554
+ ],
18555
+ query: '',
18556
+ request: {
18557
+ query: '',
18558
+ filters: {
18559
+ status: ['Live'],
18560
+ contentType: 'Event',
18561
+ category: 'Event',
18562
+ startDate: {
18563
+ ">=": '',
18564
+ "<": ''
18565
+ }
18566
+ },
18567
+ sort_by: {
18568
+ startDate: 'desc',
18569
+ },
18570
+ },
18571
+ };
18572
+ this.getEventsList();
18573
+ };
18574
+ /**
18575
+ * @return {?}
18576
+ */
18577
+ EventsComponent.prototype.getDaysBetweenDates = /**
18578
+ * @return {?}
18579
+ */
18580
+ function () {
18581
+ /** @type {?} */
18582
+ var currentDate = moment$2(this.nwlEventsConfig.startDate, 'DD-MM-YYYY');
18583
+ /** @type {?} */
18584
+ var endDate = moment$2(this.nwlEventsConfig.endDate, 'DD-MM-YYYY');
18585
+ while (currentDate.isSameOrBefore(endDate)) {
18586
+ /** @type {?} */
18587
+ var localObj = {};
18588
+ localObj['startDate'] = currentDate.format('YYYY-MM-DD');
18589
+ localObj['diplayFormat'] = currentDate.format('MMM DD, YYYY');
18590
+ if (currentDate.isSame(moment$2(), 'day')) {
18591
+ this.currentDay = currentDate.format('YYYY-MM-DD');
18592
+ }
18593
+ currentDate.add(1, 'days').format('YYYY-MM-DD');
18594
+ this.daysBetween.push(localObj);
18595
+ }
18596
+ console.log("currentDay ", this.currentDay);
18597
+ };
18598
+ /**
18599
+ * @param {?} slectedDate
18600
+ * @return {?}
18601
+ */
18602
+ EventsComponent.prototype.getEvents = /**
18603
+ * @param {?} slectedDate
18604
+ * @return {?}
18605
+ */
18606
+ function (slectedDate) {
18607
+ var _this = this;
18608
+ this.currentDay = slectedDate.target.value;
18609
+ /** @type {?} */
18610
+ var nextDay = moment$2(slectedDate.target.value, 'YYYY-MM-DD');
18611
+ nextDay.add(1, 'days');
18612
+ this.requestBody.request.filters.startDate[">="] = this.currentDay;
18613
+ this.requestBody.request.filters.startDate["<"] = nextDay.format('YYYY-MM-DD');
18614
+ this.loader = true;
18615
+ this.insightSvc.fetchTrainingDetails(this.requestBody).subscribe((/**
18616
+ * @param {?} res
18617
+ * @return {?}
18618
+ */
18619
+ function (res) {
18620
+ _this.events = [];
18621
+ if (res && res.result && res.result.count > 0) {
18622
+ _this.events = res.result.Event;
18623
+ _this.loader = false;
18624
+ }
18625
+ else {
18626
+ _this.loader = false;
18627
+ }
18628
+ }), (/**
18629
+ * @param {?} error
18630
+ * @return {?}
18631
+ */
18632
+ function (error) {
18633
+ _this.loader = false;
18634
+ }));
18635
+ };
18636
+ /**
18637
+ * @return {?}
18638
+ */
18639
+ EventsComponent.prototype.getEventsList = /**
18640
+ * @return {?}
18641
+ */
18642
+ function () {
18643
+ var _this = this;
18644
+ this.getDaysBetweenDates();
18645
+ /** @type {?} */
18646
+ var nextDay = moment$2(this.currentDay, 'YYYY-MM-DD');
18647
+ nextDay.add(1, 'days');
18648
+ this.requestBody.request.filters.startDate[">="] = this.currentDay;
18649
+ this.requestBody.request.filters.startDate["<"] = nextDay.format('YYYY-MM-DD');
18650
+ this.loader = true;
18651
+ this.insightSvc.fetchTrainingDetails(this.requestBody).subscribe((/**
18652
+ * @param {?} res
18653
+ * @return {?}
18654
+ */
18655
+ function (res) {
18656
+ _this.events = [];
18657
+ if (res && res.result && res.result.count > 0) {
18658
+ _this.events = res.result.Event;
18659
+ _this.loader = false;
18660
+ }
18661
+ else {
18662
+ _this.loader = false;
18663
+ }
18664
+ }), (/**
18665
+ * @param {?} error
18666
+ * @return {?}
18667
+ */
18668
+ function (error) {
18669
+ _this.loader = false;
18670
+ }));
18671
+ };
18672
+ EventsComponent.decorators = [
18673
+ { type: core.Component, args: [{
18674
+ selector: 'sb-uic-events',
18675
+ template: "<div class=\"flex items-center mb-4 mt-2 e-header\">\n <div class=\"event-title\">\n {{object?.title}}\n </div>\n <div class=\"events-select\">\n <select (change)=\"getEvents($event)\">\n <option value=\"{{d?.startDate}}\" *ngFor=\"let d of daysBetween\" [selected]=\"currentDay === d.startDate\">{{d?.diplayFormat}}</option>\n </select>\n </div>\n</div>\n<div class=\"grid grid-cols-1 gap-4\">\n <div class=\"events-card-wrapper\">\n <div *ngIf=\"!loader\">\n <div *ngIf=\"events?.length > 0\">\n <div *ngFor=\"let event of events\">\n <sb-uic-event-card [objectData]=\"object\" [eventDetails]=\"event\" [loader]=\"loader\"></sb-uic-event-card>\n </div>\n </div>\n <div *ngIf=\"events?.length === 0\">\n <div class=\"flex item-center justify-center p-5 no-events\">\n No events exist.\n </div>\n </div>\n </div>\n <div *ngIf=\"loader && events?.length === 0\">\n <div *ngFor=\"let event of [1,2,3]\">\n <sb-uic-event-card [objectData]=\"object\" [eventDetails]=\"event\" [loader]=\"loader\"></sb-uic-event-card>\n </div>\n </div>\n </div>\n</div>",
18676
+ styles: ["@charset \"UTF-8\";.e-header{justify-content:space-between}.event-title{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:left}.events-select{position:relative;display:inline-block;width:150px}.events-select select{appearance:none;-webkit-appearance:none;-moz-appearance:none;background-color:#fff;border:1px solid #ccc;border-radius:25px;padding:10px 30px 10px 10px;font-size:16px;font-family:Arial,sans-serif;width:100%;height:100%;cursor:pointer}.events-select:after{content:\"\u25BC\";position:absolute;top:50%;right:10px;transform:translateY(-50%);pointer-events:none;font-size:14px;color:#555}.no-events{border:1px solid #c3c3c3;border-radius:12px}"]
18677
+ }] }
18678
+ ];
18679
+ /** @nocollapse */
18680
+ EventsComponent.ctorParameters = function () { return [
18681
+ { type: InsiteDataService }
18682
+ ]; };
18683
+ EventsComponent.propDecorators = {
18684
+ object: [{ type: core.Input }],
18685
+ nwlEventsConfig: [{ type: core.Input }]
18686
+ };
18687
+ return EventsComponent;
18688
+ }());
18689
+ if (false) {
18690
+ /** @type {?} */
18691
+ EventsComponent.prototype.object;
18692
+ /** @type {?} */
18693
+ EventsComponent.prototype.nwlEventsConfig;
18694
+ /** @type {?} */
18695
+ EventsComponent.prototype.daysBetween;
18696
+ /** @type {?} */
18697
+ EventsComponent.prototype.events;
18698
+ /** @type {?} */
18699
+ EventsComponent.prototype.requestBody;
18700
+ /** @type {?} */
18701
+ EventsComponent.prototype.currentDay;
18702
+ /** @type {?} */
18703
+ EventsComponent.prototype.loader;
18704
+ /** @type {?} */
18705
+ EventsComponent.prototype.insightSvc;
18706
+ }
18707
+
18708
+ /**
18709
+ * @fileoverview added by tsickle
18710
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
18711
+ */
18712
+ /** @type {?} */
18713
+ var moment$3 = moment$4;
18714
+ var EventCardComponent = /** @class */ (function () {
18715
+ function EventCardComponent(environment, router) {
18716
+ this.router = router;
18717
+ this.descriptionMaxLength = 50;
18718
+ this.environment = environment;
18719
+ }
18720
+ /**
18721
+ * @param {?} event
18722
+ * @return {?}
18723
+ */
18724
+ EventCardComponent.prototype.getEventDate = /**
18725
+ * @param {?} event
18726
+ * @return {?}
18727
+ */
18728
+ function (event) {
18729
+ /** @type {?} */
18730
+ var timeString = event.startTime.split(":");
18731
+ /** @type {?} */
18732
+ var dataString = moment$3(event.startDate).format('MMM DD, YYYY') + " " + timeString[0] + ":" + timeString[1];
18733
+ return dataString;
18734
+ };
18735
+ /**
18736
+ * @param {?} url
18737
+ * @return {?}
18738
+ */
18739
+ EventCardComponent.prototype.getPublicUrl = /**
18740
+ * @param {?} url
18741
+ * @return {?}
18742
+ */
18743
+ function (url) {
18744
+ /** @type {?} */
18745
+ var mainUrl = url.split('/content').pop() || '';
18746
+ return this.environment.contentHost + "/" + this.environment.contentBucket + "/content" + mainUrl;
18747
+ };
18748
+ /**
18749
+ * @param {?} event
18750
+ * @return {?}
18751
+ */
18752
+ EventCardComponent.prototype.redirectTo = /**
18753
+ * @param {?} event
18754
+ * @return {?}
18755
+ */
18756
+ function (event) {
18757
+ this.router.navigate(["/app/event-hub/home/", event.identifier]);
18758
+ };
18759
+ EventCardComponent.decorators = [
18760
+ { type: core.Component, args: [{
18761
+ selector: 'sb-uic-event-card',
18762
+ template: "<div class=\"events-card margin-bottom-m cursor-pointer\" *ngIf=\"!loader\" (click)=\"redirectTo(eventDetails)\">\n <div class=\"flex gap-4\">\n <div class=\"event-poster\">\n <img class='poster' [src]=\"eventDetails.appIcon ? getPublicUrl(eventDetails.appIcon) : objectData?.defaultImage\" alt=\"\" />\n </div>\n <div class=\"flex flex-col\">\n <div class=\"flex\">\n <div class=\"flex event-label\">{{eventDetails?.resourceType}}</div>\n </div>\n <div class=\"orgName pt-2 pb-1\">\n {{eventDetails?.owner}}\n </div>\n <div class=\"event-title pt-1\">\n {{eventDetails?.name | slice:0:descriptionMaxLength}}\n <span *ngIf=\"eventDetails?.name?.length > descriptionMaxLength\">...</span>\n </div>\n <div class=\"event-date pt-2\">{{getEventDate(eventDetails)}}</div>\n </div>\n </div>\n</div>\n<div *ngIf=\"loader\">\n <div class=\"events-card margin-bottom-m\">\n <div class=\"flex gap-4\">\n <div class=\"event-poster\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon '\" [width]=\"'180px'\" [height]=\"'107px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div class=\"flex flex-col\">\n <div class=\"flex\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon '\" [width]=\"'60px'\" [height]=\"'21px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div class=\"flex orgName pt-2 pb-1\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon '\" [width]=\"'355px'\" [height]=\"'21px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div class=\"flex event-title pt-1\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon '\" [width]=\"'355px'\" [height]=\"'21px'\">\n </sb-uic-skeleton-loader>\n </div>\n <div class=\"event-date pt-2\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon '\" [width]=\"'355px'\" [height]=\"'21px'\">\n </sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n</div>",
18763
+ styles: [".events-card{padding:16px;border-radius:12px;border:1px solid #c3c3c3}.events-card .poster{width:180px;height:107px;border-radius:12px}.events-card .event-label{border:1px solid #ef951e;background:rgba(239,149,30,.05);border-radius:45px;font:400 14px/16.8px Lato;padding:8px 12px}.events-card .orgName{font-family:Lato;font-size:12px;font-weight:400;line-height:14.4px;text-align:left;opacity:.6}.events-card .event-title{font-family:Lato;font-size:14px;font-weight:700;line-height:16.8px;text-align:left}.events-card .event-date{font-family:Lato;font-size:12px;font-weight:400;line-height:14.4px;text-align:left;color:#1b4ca1}@media screen and (min-width:320px) and (max-width:769px){.events-card .poster{width:80px;height:69px}}"]
18764
+ }] }
18765
+ ];
18766
+ /** @nocollapse */
18767
+ EventCardComponent.ctorParameters = function () { return [
18768
+ { type: undefined, decorators: [{ type: core.Inject, args: ['environment',] }] },
18769
+ { type: router.Router }
18770
+ ]; };
18771
+ EventCardComponent.propDecorators = {
18772
+ objectData: [{ type: core.Input }],
18773
+ eventDetails: [{ type: core.Input }],
18774
+ loader: [{ type: core.Input }]
18775
+ };
18776
+ return EventCardComponent;
18777
+ }());
18778
+ if (false) {
18779
+ /** @type {?} */
18780
+ EventCardComponent.prototype.objectData;
18781
+ /** @type {?} */
18782
+ EventCardComponent.prototype.eventDetails;
18783
+ /** @type {?} */
18784
+ EventCardComponent.prototype.environment;
18785
+ /** @type {?} */
18786
+ EventCardComponent.prototype.loader;
18787
+ /** @type {?} */
18788
+ EventCardComponent.prototype.descriptionMaxLength;
18789
+ /**
18790
+ * @type {?}
18791
+ * @private
18792
+ */
18793
+ EventCardComponent.prototype.router;
18794
+ }
18795
+
18796
+ /**
18797
+ * @fileoverview added by tsickle
18798
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
18799
+ */
18800
+ var EventsModule = /** @class */ (function () {
18801
+ function EventsModule() {
18802
+ }
18803
+ EventsModule.decorators = [
18804
+ { type: core.NgModule, args: [{
18805
+ declarations: [EventsComponent, EventCardComponent],
18806
+ imports: [
18807
+ common.CommonModule,
18808
+ router.RouterModule,
18809
+ SkeletonLoaderLibModule,
18810
+ ],
18811
+ exports: [EventsComponent, EventCardComponent]
18812
+ },] }
18813
+ ];
18814
+ return EventsModule;
18815
+ }());
18816
+
18817
+ /**
18818
+ * @fileoverview added by tsickle
18819
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
18820
+ */
18821
+ var MdoLeaderboardComponent = /** @class */ (function () {
18822
+ function MdoLeaderboardComponent(insiteDataService) {
18823
+ this.insiteDataService = insiteDataService;
18824
+ this.currentTab = 'XL';
18825
+ this.result = [];
18826
+ this.searchTerm = '';
18827
+ this.expand = true;
18828
+ this.tabClicked = new core.EventEmitter();
18829
+ }
18830
+ /**
18831
+ * @return {?}
18832
+ */
18833
+ MdoLeaderboardComponent.prototype.ngOnInit = /**
18834
+ * @return {?}
18835
+ */
18836
+ function () {
18837
+ this.getData();
18838
+ };
18839
+ /**
18840
+ * @return {?}
18841
+ */
18842
+ MdoLeaderboardComponent.prototype.getData = /**
18843
+ * @return {?}
18844
+ */
18845
+ function () {
18846
+ var _this = this;
18847
+ this.insiteDataService.fetchLeaderboard().subscribe((/**
18848
+ * @param {?} res
18849
+ * @return {?}
18850
+ */
18851
+ function (res) {
18852
+ if (res && res.result) {
18853
+ _this.result = res.result;
18854
+ _this.filteredData = _this.result.mdoLeaderBoard
18855
+ .filter((/**
18856
+ * @param {?} user
18857
+ * @return {?}
18858
+ */
18859
+ function (user) { return user.size === _this.currentTab; }))
18860
+ .map((/**
18861
+ * @param {?} user
18862
+ * @return {?}
18863
+ */
18864
+ function (user) { return (__assign({}, user, { children: [], selected: false })); }));
18865
+ }
18866
+ }), (/**
18867
+ * @param {?} error
18868
+ * @return {?}
18869
+ */
18870
+ function (error) {
18871
+ console.log(error);
18872
+ }));
18873
+ };
18874
+ /**
18875
+ * @param {?} name
18876
+ * @return {?}
18877
+ */
18878
+ MdoLeaderboardComponent.prototype.getTabData = /**
18879
+ * @param {?} name
18880
+ * @return {?}
18881
+ */
18882
+ function (name) {
18883
+ var _this = this;
18884
+ this.currentTab = name;
18885
+ this.searchTerm = '';
18886
+ this.filteredData = this.result.mdoLeaderBoard
18887
+ .filter((/**
18888
+ * @param {?} user
18889
+ * @return {?}
18890
+ */
18891
+ function (user) { return user.size === _this.currentTab; }))
18892
+ .map((/**
18893
+ * @param {?} user
18894
+ * @return {?}
18895
+ */
18896
+ function (user) { return (__assign({}, user, { children: [], selected: false })); }));
18897
+ /** @type {?} */
18898
+ var nameStr = '';
18899
+ switch (name) {
18900
+ case 'XL':
18901
+ nameStr = 'greater-than-50K';
18902
+ break;
18903
+ case 'L':
18904
+ nameStr = '10K-50K';
18905
+ break;
18906
+ case 'M':
18907
+ nameStr = '1K-10K';
18908
+ break;
18909
+ case 'S':
18910
+ nameStr = '500-1K';
18911
+ break;
18912
+ default:
18913
+ nameStr = 'less-than-500';
18914
+ break;
18915
+ }
18916
+ this.tabClicked.emit(nameStr);
18917
+ };
18918
+ /**
18919
+ * @param {?} rank
18920
+ * @return {?}
18921
+ */
18922
+ MdoLeaderboardComponent.prototype.getRank = /**
18923
+ * @param {?} rank
18924
+ * @return {?}
18925
+ */
18926
+ function (rank) {
18927
+ return [1, 2, 3].includes(rank) ? "rank" + rank : 'rank0';
18928
+ };
18929
+ /**
18930
+ * @param {?} rank
18931
+ * @return {?}
18932
+ */
18933
+ MdoLeaderboardComponent.prototype.getMedal = /**
18934
+ * @param {?} rank
18935
+ * @return {?}
18936
+ */
18937
+ function (rank) {
18938
+ if (rank === 1) {
18939
+ return 'assets/images/national-learning/Medal1.svg';
18940
+ }
18941
+ else if (rank === 2) {
18942
+ return 'assets/images/national-learning/Medal2.svg';
18943
+ }
18944
+ else {
18945
+ return 'assets/images/national-learning/Medal3.svg';
18946
+ }
18947
+ };
18948
+ /**
18949
+ * @param {?} e
18950
+ * @return {?}
18951
+ */
18952
+ MdoLeaderboardComponent.prototype.handleSearchQuery = /**
18953
+ * @param {?} e
18954
+ * @return {?}
18955
+ */
18956
+ function (e) {
18957
+ var _this = this;
18958
+ if (e.target.value && e.target.value.length > 0) {
18959
+ this.searchTerm = e.target.value;
18960
+ this.filteredData = this.result.mdoLeaderBoard
18961
+ .filter((/**
18962
+ * @param {?} user
18963
+ * @return {?}
18964
+ */
18965
+ function (user) { return user.size === _this.currentTab && user.org_name.toLowerCase().includes(e.target.value); }))
18966
+ .map((/**
18967
+ * @param {?} user
18968
+ * @return {?}
18969
+ */
18970
+ function (user) { return (__assign({}, user, { children: [] })); }));
18971
+ }
18972
+ else {
18973
+ this.filteredData = this.result.mdoLeaderBoard
18974
+ .filter((/**
18975
+ * @param {?} user
18976
+ * @return {?}
18977
+ */
18978
+ function (user) { return user.size === _this.currentTab; }))
18979
+ .map((/**
18980
+ * @param {?} user
18981
+ * @return {?}
18982
+ */
18983
+ function (user) { return (__assign({}, user, { children: [] })); }));
18984
+ }
18985
+ };
18986
+ /**
18987
+ * @return {?}
18988
+ */
18989
+ MdoLeaderboardComponent.prototype.toggleWeekHightlits = /**
18990
+ * @return {?}
18991
+ */
18992
+ function () {
18993
+ this.expand = !this.expand;
18994
+ };
18995
+ MdoLeaderboardComponent.decorators = [
18996
+ { type: core.Component, args: [{
18997
+ selector: 'sb-uic-mdo-leaderboard',
18998
+ template: "<div class=\"mdo-leaderboard-container\">\n <div class=\"flex l-title gap-2 items-center justify-between px-4 md:px-0 py-4 md:py-0\">\n <div class=\"flex gap-2\">\n {{object?.title}} <div><img [src]=\"object?.infoIcon\" alt=\"\" i18n-matTooltip [matTooltip]=\"object?.infoText\"></div>\n </div>\n <div class=\"block md:hidden\">\n <mat-icon (click)=\"toggleWeekHightlits()\">expand_more</mat-icon>\n </div>\n </div>\n <div class=\"flex item-center justify-center\" *ngIf=\"expand\">\n <div class=\"flex fl-div\">\n <div class=\"pointer\">\n <span class=\"dot-dot\"></span>\n </div>\n </div>\n </div>\n <div class=\"l-content\" *ngIf=\"expand\">\n <div class=\"horizontal-scroll-container\">\n <div class=\"scroll-content\">\n <span class=\"tab-title\" [ngClass]=\"{'active' : currentTab === 'XL' }\" (click)=\"getTabData('XL')\">Greater than 50K</span>\n <span class=\"tab-title\" [ngClass]=\"{'active' : currentTab === 'L' }\" (click)=\"getTabData('L')\">10K-50K</span>\n <span class=\"tab-title\" [ngClass]=\"{'active' : currentTab === 'M' }\" (click)=\"getTabData('M')\">1K-10K</span>\n <span class=\"tab-title\" [ngClass]=\"{'active' : currentTab === 'S' }\" (click)=\"getTabData('S')\">500-1K</span>\n <span class=\"tab-title\" [ngClass]=\"{'active' : currentTab === 'XS' }\" (click)=\"getTabData('XS')\">Less than 500</span>\n </div>\n </div>\n <div class=\"relative search-wrapper margin-top-m mb-5\">\n <mat-icon matPrefix class=\"flex absolute items-center justify-center mr-2 icon-search\">search\n </mat-icon>\n <input type=\"search\" name=\"searchKey\" class=\"search-field\" i18-aria-label\n aria-label=\"Search\" i18n-placeholder=\"search\" [(ngModel)]=\"searchTerm\"\n placeholder=\"Search your MDO\" (keyup)=\"handleSearchQuery($event)\" />\n </div>\n <div class=\"l-tab-data\">\n <div *ngFor=\"let user of filteredData\">\n <div class=\"flex flex-row item mb-5 gap-3 {{user.row_num === 1 ? 'relative' : ''}}\" >\n <div><img class=\"crown absolute\" src=\"assets/images/national-learning/rank-crown.svg\" *ngIf=\"user.row_num === 1\"/></div>\n <div class=\"{{getRank(user.row_num)}}\">{{user.row_num}}</div>\n <div class=\"w-full\">\n <div class=\"flex flex-between gap-2\">\n <div>\n <div class=\"rank-name\">{{user.org_name}}</div>\n <div class=\"rank-points flex mt-1 gap-1\">\n <img class=\"nlw-kb\" src=\"assets/icons/home/karma-badge.svg\"/>\n <div class=\"points\">{{user.total_points || 0 }} points</div>\n </div>\n </div>\n <div class=\"rank-crown\" *ngIf=\"[1,2,3].includes(user.row_num)\">\n <img class=\"nlw-animation\" [src]=\"getMedal(user.row_num)\"/>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"no-data px-1\" *ngIf=\"filteredData?.length === 0\">\n No data found!\n </div>\n </div>\n </div>\n</div>\n",
18999
+ styles: [".l-title{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:left}.l-content{background-color:#e9eef6;border-radius:16px;padding:16px}.horizontal-scroll-container{overflow-x:auto;white-space:nowrap;-ms-overflow-style:none;scrollbar-width:none;height:32px}.horizontal-scroll-container::-webkit-scrollbar{display:none}.scroll-content{display:inline-block}.tab-title{font-family:Lato;font-size:14px;line-height:16.8px;text-align:left;cursor:pointer;padding:0 15px 8px;border-bottom:2px solid #c3c3c3}.active{font-weight:700;border-bottom:2px solid #1b4ca1}.search-field{height:34px;padding:0 16px 0 40px;border-radius:52px;background:#fff;border:2px solid rgba(0,0,0,.0784313725);width:100%}.icon-search{top:10px;left:15px;height:15px;width:17px}.item{border-radius:12px;background-color:#fff;padding:16px;align-items:flex-start}.rank1{background:#ffca28;font-family:Lato;font-size:14px;font-weight:700;line-height:9px;text-align:center;border-radius:50%;padding:10px}.rank2{background:#1b4ca1;font-family:Lato;font-size:14px;font-weight:700;line-height:9px;text-align:center;border-radius:50%;padding:10px;color:#fff}.rank3{background:#ff8228;font-family:Lato;font-size:14px;font-weight:700;line-height:9px;text-align:center;border-radius:50%;padding:10px}.rank0{font-family:Lato;font-size:14px;font-weight:700;line-height:9px;text-align:center;border-radius:50%;padding:10px;border:1px solid #c3c3c3}.rank-name{font-family:Montserrat;line-height:1.5em;font-size:16px;font-weight:600;text-align:left;align-items:center;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;line-clamp:2}.rank-points{align-items:center}.nlw-kb{height:24px;width:24px}.points{font-family:Lato;font-size:14px;font-weight:600;line-height:16.8px;text-align:right}.crown{left:10px;top:0;width:36px;height:36px}.l-tab-data{height:520px;overflow:auto;padding-bottom:16px}.l-tab-data::-webkit-scrollbar{display:none}.pointer{margin-bottom:-59px;border-radius:41px;background:#c3c3c3;border:35px solid #e9eef6}.dot-dot{width:7px;display:flex;height:7px;background:#c3c3c3;margin-top:-25px;border-radius:10px}@media screen and (min-width:320px) and (max-width:769px){.mdo-leaderboard-container{background-color:#d1dbec}}"]
19000
+ }] }
19001
+ ];
19002
+ /** @nocollapse */
19003
+ MdoLeaderboardComponent.ctorParameters = function () { return [
19004
+ { type: InsiteDataService }
19005
+ ]; };
19006
+ MdoLeaderboardComponent.propDecorators = {
19007
+ object: [{ type: core.Input }],
19008
+ tabClicked: [{ type: core.Output }]
19009
+ };
19010
+ return MdoLeaderboardComponent;
19011
+ }());
19012
+ if (false) {
19013
+ /** @type {?} */
19014
+ MdoLeaderboardComponent.prototype.currentTab;
19015
+ /** @type {?} */
19016
+ MdoLeaderboardComponent.prototype.result;
19017
+ /** @type {?} */
19018
+ MdoLeaderboardComponent.prototype.filteredData;
19019
+ /** @type {?} */
19020
+ MdoLeaderboardComponent.prototype.searchTerm;
19021
+ /** @type {?} */
19022
+ MdoLeaderboardComponent.prototype.expand;
19023
+ /** @type {?} */
19024
+ MdoLeaderboardComponent.prototype.object;
19025
+ /** @type {?} */
19026
+ MdoLeaderboardComponent.prototype.tabClicked;
19027
+ /**
19028
+ * @type {?}
19029
+ * @private
19030
+ */
19031
+ MdoLeaderboardComponent.prototype.insiteDataService;
19032
+ }
19033
+
19034
+ /**
19035
+ * @fileoverview added by tsickle
19036
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
19037
+ */
19038
+ var MdoLeaderboardModule = /** @class */ (function () {
19039
+ function MdoLeaderboardModule() {
19040
+ }
19041
+ MdoLeaderboardModule.decorators = [
19042
+ { type: core.NgModule, args: [{
19043
+ declarations: [MdoLeaderboardComponent],
19044
+ imports: [
19045
+ common.CommonModule,
19046
+ material.MatIconModule,
19047
+ SkeletonLoaderLibModule,
19048
+ forms.FormsModule,
19049
+ material.MatTooltipModule
19050
+ ],
19051
+ exports: [
19052
+ MdoLeaderboardComponent
19053
+ ],
19054
+ providers: [InsiteDataService]
19055
+ },] }
19056
+ ];
19057
+ return MdoLeaderboardModule;
19058
+ }());
19059
+
19060
+ /**
19061
+ * @fileoverview added by tsickle
19062
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
19063
+ */
19064
+ var HighlightsOfWeekComponent = /** @class */ (function () {
19065
+ function HighlightsOfWeekComponent() {
19066
+ this.currentIndex = 0;
19067
+ this.contentdata = [];
19068
+ this.styleData = {};
19069
+ this.expand = true;
19070
+ }
19071
+ /**
19072
+ * @return {?}
19073
+ */
19074
+ HighlightsOfWeekComponent.prototype.ngOnInit = /**
19075
+ * @return {?}
19076
+ */
19077
+ function () {
19078
+ var _this = this;
19079
+ this.styleData = this.objectData && this.objectData.sliderData && this.objectData.sliderData.styleData;
19080
+ if (this.objectData && this.objectData.list) {
19081
+ this.objectData.list.forEach((/**
19082
+ * @param {?} contentEle
19083
+ * @return {?}
19084
+ */
19085
+ function (contentEle) {
19086
+ /** @type {?} */
19087
+ var localData = {};
19088
+ localData['title'] = contentEle.title;
19089
+ localData['videoUrl'] = contentEle.videoUrl;
19090
+ localData['cardSubType'] = "card-wide-lib";
19091
+ localData['description'] = contentEle.description;
19092
+ _this.contentdata.push(localData);
19093
+ }));
19094
+ }
19095
+ };
19096
+ /**
19097
+ * @return {?}
19098
+ */
19099
+ HighlightsOfWeekComponent.prototype.toggleWeekHightlits = /**
19100
+ * @return {?}
19101
+ */
19102
+ function () {
19103
+ this.expand = !this.expand;
19104
+ };
19105
+ /**
19106
+ * @param {?} indexValue
19107
+ * @return {?}
19108
+ */
19109
+ HighlightsOfWeekComponent.prototype.getCurrentIndex = /**
19110
+ * @param {?} indexValue
19111
+ * @return {?}
19112
+ */
19113
+ function (indexValue) {
19114
+ this.currentIndex = indexValue;
19115
+ };
19116
+ HighlightsOfWeekComponent.decorators = [
19117
+ { type: core.Component, args: [{
19118
+ selector: 'sb-uic-highlights-of-week',
19119
+ template: "<div *ngIf=\"contentdata.length\" class=\"highlights-of-the-week-container {{expand ? 'mb-4' : ''}}\">\n <ng-container *ngIf=\"contentdata.length\">\n <div class=\"flex title pb-3 no-radius items-center justify-between\">\n <div class=\"flex gap-2\">\n {{objectData?.title}}\n <div class=\"block md:hidden\">\n <img [src]=\"objectData?.infoIcon\" alt=\"\" i18n-matTooltip [matTooltip]=\"objectData?.infoText\">\n </div> \n </div>\n <div class=\"block md:hidden\">\n <mat-icon (click)=\"toggleWeekHightlits()\">expand_more</mat-icon>\n </div>\n </div>\n <div *ngIf=\"expand\">\n <sb-uic-sliders-ng-content\n [title]=\"'providerName'\"\n [currentIndex]=\"currentIndex\"\n (currentIndexValue)=\"getCurrentIndex($event)\"\n [loadNgContentData]=\"true\" [widgetData]=\"contentdata\"\n [styleData]=\"styleData\">\n <div sliderbody>\n <div *ngFor=\"let item of contentdata; let i = index\" [hidden]=\"i !== currentIndex\">\n <div class=\"wh-wrapper no-radius\">\n <div class=\"player\">\n <video width=\"100%\" height=\"100%\" controls *ngIf=\"i === currentIndex\">\n <source [src]=\"item.videoUrl\" type=\"video/mp4\">\n <source [src]=\"item.videoUrl\" type=\"application/x-mpegURL\" />\n </video>\n </div>\n <div class=\"player-title py-3\">\n {{item?.title}}\n </div>\n <div class=\"player-body\">\n {{item?.description}}\n </div>\n </div>\n </div>\n </div>\n </sb-uic-sliders-ng-content>\n </div>\n </ng-container>\n</div>\n\n",
19120
+ styles: [".highlights-of-the-week-container ::ng-deep.banner-title{display:none}.highlights-of-the-week-container ::ng-deep.banner-meta{bottom:-37px}.highlights-of-the-week-container ::ng-deep.prev{margin-left:11px}.highlights-of-the-week-container ::ng-deep.next{margin-right:16px}.title{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:left;background-color:#d1dbec;padding:16px;border-top-left-radius:12px;border-top-right-radius:12px}.wh-wrapper{background-color:#d1dbec;padding:0 16px 16px;border-bottom-left-radius:12px;border-bottom-right-radius:12px}.wh-wrapper .player{height:420px}.wh-wrapper .player-title{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.wh-wrapper .player-body{font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px;text-align:left}@media screen and (min-width:320px) and (max-width:769px){.highlights-of-the-week-container ::ng-deep.prev{display:none!important}.highlights-of-the-week-container ::ng-deep.next{display:none!important}.wh-wrapper .player{height:215px}.no-radius{border-radius:0}}"]
19121
+ }] }
19122
+ ];
19123
+ /** @nocollapse */
19124
+ HighlightsOfWeekComponent.ctorParameters = function () { return []; };
19125
+ HighlightsOfWeekComponent.propDecorators = {
19126
+ objectData: [{ type: core.Input }],
19127
+ scrollableItems: [{ type: core.ViewChildren, args: [ScrollableItemDirective,] }]
19128
+ };
19129
+ return HighlightsOfWeekComponent;
19130
+ }());
19131
+ if (false) {
19132
+ /** @type {?} */
19133
+ HighlightsOfWeekComponent.prototype.objectData;
19134
+ /** @type {?} */
19135
+ HighlightsOfWeekComponent.prototype.currentIndex;
19136
+ /** @type {?} */
19137
+ HighlightsOfWeekComponent.prototype.contentdata;
19138
+ /** @type {?} */
19139
+ HighlightsOfWeekComponent.prototype.styleData;
19140
+ /** @type {?} */
19141
+ HighlightsOfWeekComponent.prototype.expand;
19142
+ /** @type {?} */
19143
+ HighlightsOfWeekComponent.prototype.scrollableItems;
19144
+ }
19145
+
19146
+ /**
19147
+ * @fileoverview added by tsickle
19148
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
19149
+ */
19150
+ var HighlightsOfWeekModule = /** @class */ (function () {
19151
+ function HighlightsOfWeekModule() {
19152
+ }
19153
+ HighlightsOfWeekModule.decorators = [
19154
+ { type: core.NgModule, args: [{
19155
+ declarations: [HighlightsOfWeekComponent],
19156
+ imports: [
19157
+ common.CommonModule,
19158
+ material.MatIconModule,
19159
+ material.MatTooltipModule,
19160
+ ScrollableItemModule,
19161
+ SlidersNgContentLibModule
19162
+ ],
19163
+ exports: [
19164
+ HighlightsOfWeekComponent
19165
+ ]
19166
+ },] }
19167
+ ];
19168
+ return HighlightsOfWeekModule;
19169
+ }());
19170
+
19171
+ /**
19172
+ * @fileoverview added by tsickle
19173
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
19174
+ */
19175
+ var SpeakersComponent = /** @class */ (function () {
19176
+ function SpeakersComponent() {
19177
+ this.currentIndex = 0;
19178
+ this.contentdata = [];
19179
+ this.styleData = {};
19180
+ this.expand = true;
19181
+ }
19182
+ /**
19183
+ * @return {?}
19184
+ */
19185
+ SpeakersComponent.prototype.ngOnInit = /**
19186
+ * @return {?}
19187
+ */
19188
+ function () {
19189
+ var _this = this;
19190
+ this.styleData = this.objectData && this.objectData.sliderData && this.objectData.sliderData.styleData;
19191
+ if (this.objectData && this.objectData.list) {
19192
+ this.objectData.list.forEach((/**
19193
+ * @param {?} contentEle
19194
+ * @return {?}
19195
+ */
19196
+ function (contentEle) {
19197
+ /** @type {?} */
19198
+ var localData = {};
19199
+ localData['name'] = contentEle.title;
19200
+ localData['cardSubType'] = "card-wide-lib";
19201
+ localData['description'] = contentEle.description;
19202
+ localData['initial'] = _this.createInititals(contentEle.title);
19203
+ localData['profileImage'] = contentEle.profileImage ? contentEle.profileImage : '';
19204
+ _this.contentdata.push(localData);
19205
+ }));
19206
+ }
19207
+ };
19208
+ /**
19209
+ * @param {?} name
19210
+ * @return {?}
19211
+ */
19212
+ SpeakersComponent.prototype.createInititals = /**
19213
+ * @param {?} name
19214
+ * @return {?}
19215
+ */
19216
+ function (name) {
19217
+ /** @type {?} */
19218
+ var initials = '';
19219
+ /** @type {?} */
19220
+ var array = name.toString().split(' ');
19221
+ if (array[0] !== 'undefined' && typeof array[1] !== 'undefined') {
19222
+ initials += array[0].charAt(0);
19223
+ initials += array[1].charAt(0);
19224
+ }
19225
+ else {
19226
+ for (var i = 0; i < name.length; i += 1) {
19227
+ if (name.charAt(i) === ' ') {
19228
+ continue;
19229
+ }
19230
+ if (name.charAt(i) === name.charAt(i)) {
19231
+ initials += name.charAt(i);
19232
+ if (initials.length === 2) {
19233
+ break;
19234
+ }
19235
+ }
19236
+ }
19237
+ }
19238
+ return initials.toUpperCase();
19239
+ };
19240
+ /**
19241
+ * @param {?} indexValue
19242
+ * @return {?}
19243
+ */
19244
+ SpeakersComponent.prototype.getCurrentIndex = /**
19245
+ * @param {?} indexValue
19246
+ * @return {?}
19247
+ */
19248
+ function (indexValue) {
19249
+ this.currentIndex = indexValue;
19250
+ };
19251
+ /**
19252
+ * @return {?}
19253
+ */
19254
+ SpeakersComponent.prototype.toggleWeekHightlits = /**
19255
+ * @return {?}
19256
+ */
19257
+ function () {
19258
+ this.expand = !this.expand;
19259
+ };
19260
+ SpeakersComponent.decorators = [
19261
+ { type: core.Component, args: [{
19262
+ selector: 'sb-uic-speakers',
19263
+ template: "<div class=\"nlw-speakers-wrapper px-4 md:px-0 my-4 md:my-0\">\n <div class=\"flex speakers-title gap-2 justify-between pb-1\" *ngIf=\"contentdata.length\">\n <div class=\"flex gap-2\">\n {{objectData?.title}}\n <div><img [src]=\"objectData?.infoIcon\" alt=\"\" i18n-matTooltip [matTooltip]=\"objectData?.infoText\"></div>\n </div>\n <div class=\"block md:hidden\">\n <mat-icon (click)=\"toggleWeekHightlits()\">expand_more</mat-icon>\n </div>\n </div>\n <div *ngIf=\"expand\" class=\"speakers-container margin-bottom-xs\" >\n <ng-container *ngIf=\"contentdata.length\">\n <sb-uic-sliders-ng-content\n [title]=\"'providerName'\"\n [currentIndex]=\"currentIndex\"\n (currentIndexValue)=\"getCurrentIndex($event)\"\n [loadNgContentData]=\"true\" [widgetData]=\"contentdata\"\n [styleData]=\"styleData\">\n <div sliderbody>\n <div *ngFor=\"let item of contentdata; let i = index\" [hidden]=\"i !== currentIndex\">\n <div class=\"speakers-wrapper\">\n <div class=\"flex items-center justify-center pb-2\">\n <div class=\"speaker-initial\" *ngIf=\"!item.profileImage\">{{item?.initial}}</div>\n <img class='speaker-icon' [src]=\"item?.profileImage\" alt=\"\" *ngIf=\"item.profileImage\"/>\n </div>\n <div class=\"flex items-center justify-center pb-2\">\n <div class=\"speaker-title\">{{item.name}}</div>\n </div>\n <div class=\"flex items-center justify-center\">\n <div class=\"speaker-description\">{{item.description}}</div>\n </div>\n </div>\n </div>\n </div>\n </sb-uic-sliders-ng-content>\n </ng-container>\n </div>\n</div>",
19264
+ styles: [".speakers-container ::ng-deep.banner-title{display:none}.speakers-container ::ng-deep.prev{margin-left:0;background-color:#fff4ec!important;color:#b6b4b4}.speakers-container ::ng-deep.next{margin-right:0;background-color:#fff4ec!important;color:#b6b4b4}.speakers-title{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:left}.speakers-wrapper{background-color:#fff4ec;border-radius:12px;padding:24px}.speaker-title{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.speaker-description{font-family:Lato;font-size:12px;font-weight:400;line-height:14.4px;text-align:center}.speaker-initial{font-family:Montserrat;font-size:24px;font-weight:600;line-height:29.26px;text-align:center;width:80px;height:80px;display:flex;align-items:center;justify-content:center;background-color:#1b4ca1;color:#fff;border-radius:50px}.speaker-icon{width:80px;height:80px;border-radius:50px}@media screen and (min-width:320px) and (max-width:769px){.nlw-speakers-wrapper{background-color:#d1dbec}.speakers-title{padding:16px 0}}"]
19265
+ }] }
19266
+ ];
19267
+ /** @nocollapse */
19268
+ SpeakersComponent.ctorParameters = function () { return []; };
19269
+ SpeakersComponent.propDecorators = {
19270
+ objectData: [{ type: core.Input }],
19271
+ scrollableItems: [{ type: core.ViewChildren, args: [ScrollableItemDirective,] }]
19272
+ };
19273
+ return SpeakersComponent;
19274
+ }());
19275
+ if (false) {
19276
+ /** @type {?} */
19277
+ SpeakersComponent.prototype.objectData;
19278
+ /** @type {?} */
19279
+ SpeakersComponent.prototype.currentIndex;
19280
+ /** @type {?} */
19281
+ SpeakersComponent.prototype.contentdata;
19282
+ /** @type {?} */
19283
+ SpeakersComponent.prototype.styleData;
19284
+ /** @type {?} */
19285
+ SpeakersComponent.prototype.expand;
19286
+ /** @type {?} */
19287
+ SpeakersComponent.prototype.scrollableItems;
19288
+ }
19289
+
19290
+ /**
19291
+ * @fileoverview added by tsickle
19292
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
19293
+ */
19294
+ var SpeakersModule = /** @class */ (function () {
19295
+ function SpeakersModule() {
19296
+ }
19297
+ SpeakersModule.decorators = [
19298
+ { type: core.NgModule, args: [{
19299
+ declarations: [SpeakersComponent],
19300
+ imports: [
19301
+ common.CommonModule,
19302
+ ScrollableItemModule,
19303
+ SlidersNgContentLibModule,
19304
+ material.MatTooltipModule,
19305
+ material.MatIconModule,
19306
+ ],
19307
+ exports: [
19308
+ SpeakersComponent
19309
+ ]
19310
+ },] }
19311
+ ];
19312
+ return SpeakersModule;
19313
+ }());
19314
+
19315
+ /**
19316
+ * @fileoverview added by tsickle
19317
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
19318
+ */
19319
+ var UserProgressComponent = /** @class */ (function () {
19320
+ function UserProgressComponent(insightSvc, configSvc) {
19321
+ this.insightSvc = insightSvc;
19322
+ this.configSvc = configSvc;
19323
+ this.insitesData = [];
19324
+ this.currentIndex = 0;
19325
+ this.styleData = {};
19326
+ this.userProgress = {};
19327
+ this.expand = true;
19328
+ }
19329
+ /**
19330
+ * @return {?}
19331
+ */
19332
+ UserProgressComponent.prototype.ngOnInit = /**
19333
+ * @return {?}
19334
+ */
19335
+ function () {
19336
+ this.styleData = this.objectData.insights.data.sliderData.styleData;
19337
+ this.getUserProgress();
19338
+ this.getInsightsData();
19339
+ };
19340
+ /**
19341
+ * @return {?}
19342
+ */
19343
+ UserProgressComponent.prototype.getUserProgress = /**
19344
+ * @return {?}
19345
+ */
19346
+ function () {
19347
+ var _this = this;
19348
+ this.insightSvc.fetchUserProgress().subscribe((/**
19349
+ * @param {?} res
19350
+ * @return {?}
19351
+ */
19352
+ function (res) {
19353
+ if (res && res.result && res.result.userLeaderBoard) {
19354
+ _this.userProgress = res.result.userLeaderBoard[0];
19355
+ }
19356
+ if (!_this.userProgress.fullname && _this.configSvc && _this.configSvc.userProfile && _this.configSvc.userProfile.firstName) {
19357
+ _this.userProgress['fullname'] = _this.configSvc.userProfile.firstName;
19358
+ _this.userProgress['profile_image'] = _this.configSvc.userProfile.profileImageUrl;
19359
+ }
19360
+ }));
19361
+ };
19362
+ /**
19363
+ * @return {?}
19364
+ */
19365
+ UserProgressComponent.prototype.getInsightsData = /**
19366
+ * @return {?}
19367
+ */
19368
+ function () {
19369
+ var _this = this;
19370
+ /** @type {?} */
19371
+ var request = {
19372
+ request: {
19373
+ filters: {
19374
+ primaryCategory: 'programs',
19375
+ organisations: [
19376
+ 'across',
19377
+ this.rootOrgId,
19378
+ ],
19379
+ },
19380
+ },
19381
+ };
19382
+ this.insightSvc.fetchInsightsData(request).subscribe((/**
19383
+ * @param {?} res
19384
+ * @return {?}
19385
+ */
19386
+ function (res) {
19387
+ if (res && res.result && res.result.response && res.result.response.nudges) {
19388
+ _this.insitesData = res.result.response.nudges;
19389
+ _this.insitesData = _this.insitesData.map((/**
19390
+ * @param {?} obj
19391
+ * @return {?}
19392
+ */
19393
+ function (obj) {
19394
+ return __assign({}, obj, { cardSubType: 'card-wide-lib' });
19395
+ }));
19396
+ }
19397
+ }));
19398
+ };
19399
+ /**
19400
+ * @param {?} number
19401
+ * @return {?}
19402
+ */
19403
+ UserProgressComponent.prototype.roundTo = /**
19404
+ * @param {?} number
19405
+ * @return {?}
19406
+ */
19407
+ function (number) {
19408
+ return Math.round(number * 100 / 100);
19409
+ };
19410
+ /**
19411
+ * @param {?} indexValue
19412
+ * @return {?}
19413
+ */
19414
+ UserProgressComponent.prototype.getCurrentIndex = /**
19415
+ * @param {?} indexValue
19416
+ * @return {?}
19417
+ */
19418
+ function (indexValue) {
19419
+ this.currentIndex = indexValue;
19420
+ };
19421
+ /**
19422
+ * @param {?} name
19423
+ * @return {?}
19424
+ */
19425
+ UserProgressComponent.prototype.createInititals = /**
19426
+ * @param {?} name
19427
+ * @return {?}
19428
+ */
19429
+ function (name) {
19430
+ /** @type {?} */
19431
+ var initials = '';
19432
+ /** @type {?} */
19433
+ var array = name.toString().split(' ');
19434
+ if (array[0] !== 'undefined' && typeof array[1] !== 'undefined') {
19435
+ initials += array[0].charAt(0);
19436
+ initials += array[1].charAt(0);
19437
+ }
19438
+ else {
19439
+ for (var i = 0; i < name.length; i += 1) {
19440
+ if (name.charAt(i) === ' ') {
19441
+ continue;
19442
+ }
19443
+ if (name.charAt(i) === name.charAt(i)) {
19444
+ initials += name.charAt(i);
19445
+ if (initials.length === 2) {
19446
+ break;
19447
+ }
19448
+ }
19449
+ }
19450
+ }
19451
+ return initials.toUpperCase();
19452
+ };
19453
+ /**
19454
+ * @return {?}
19455
+ */
19456
+ UserProgressComponent.prototype.toggleWeekHightlits = /**
19457
+ * @return {?}
19458
+ */
19459
+ function () {
19460
+ this.expand = !this.expand;
19461
+ };
19462
+ UserProgressComponent.decorators = [
19463
+ { type: core.Component, args: [{
19464
+ selector: 'sb-uic-user-progress',
19465
+ template: "<div class=\"px-4 md:px-0 pt-4 md:pt-0 week-progress {{expand ? 'pb-4' : 'pb-1'}}\">\n <div class=\"flex user-progress-title gap-2 margin-bottom-xs items-center justify-between\">\n <div class=\"flex gap-2\">\n {{objectData?.title}}\n <div><img [src]=\"objectData?.infoIcon\" alt=\"\" i18n-matTooltip [matTooltip]=\"objectData?.infoText\"></div>\n </div>\n <div class=\"block md:hidden\">\n <mat-icon (click)=\"toggleWeekHightlits()\">expand_more</mat-icon>\n </div>\n </div>\n <div class=\"user-progress-wrapper\" *ngIf=\"expand\">\n <div class=\"user-rank flex items-center\">\n <div class=\"flex item-center\">\n <div class=\"current-rank\" *ngIf=\"userProgress?.rank > 0\">#{{userProgress?.rank}} Rank</div>\n </div>\n </div>\n <div class=\"user-details-wrapper\">\n <div class=\"user-details flex gap-2\">\n <div class=\"user-initial\" *ngIf=\"userProgress?.profile_image\">\n <img class=\"user-profile\" [src]=\"userProgress?.profile_image\" alt=\"\"/>\n </div>\n <div class=\"user-initial\" *ngIf=\"!userProgress?.profile_image && userProgress?.fullname\">{{createInititals(userProgress?.fullname)}}</div>\n <div class=\"user-name pt-3\">{{userProgress?.fullname}}</div>\n </div>\n <div class=\"user-stats my-3\">\n <div class=\"flex gap-2 items-center justify-center\">\n <div class=\"my-hours\">\n <div class=\"flex items-center gap-3\">\n <img class=\"hours-icon\"\n src=\"https://portal.dev.karmayogibharat.net/content-store/orgStore/0135071359030722569/1726808794219_InProgress_Icon.svg\" alt=\"\">\n <div>\n <div class=\"counter\">{{userProgress?.total_learning_hours || 0}}</div>\n <div class=\"counter-title pt-1\">Learning Hours</div>\n </div>\n </div>\n </div>\n <div class=\"my-certificates\">\n <div class=\"flex items-center gap-3\">\n <img class=\"cert-icon\"\n src=\"https://portal.dev.karmayogibharat.net/content-store/orgStore/0135071359030722569/1726808775795_Certificate_icon.svg\" alt=\"\">\n <div>\n <div class=\"counter\">{{userProgress?.count || 0}}</div>\n <div class=\"counter-title pt-1\">Certificates</div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"flex gap-2 items-center justify-center pt-3\">\n <div class=\"k-points\">\n <div class=\"flex items-center gap-3\">\n <img class=\"kp-point-icon\"\n src=\"https://portal.dev.karmayogibharat.net/content-store/orgStore/0135071359030722569/1726808815206_karma-badge.svg\" alt=\"\">\n <div>\n <div class=\"counter\">{{userProgress?.total_points || 0}}</div>\n <div class=\"counter-title pt-1\">Karma Points</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"insights-wrapper\">\n <div class=\"insights-container\">\n <sb-uic-sliders-ng-content\n [title]=\"'p1'\"\n [currentIndex]=\"currentIndex\"\n (currentIndexValue)=\"getCurrentIndex($event)\"\n [loadNgContentData]=\"true\" [widgetData]=\"insitesData\"\n [customBanner]=\"true\" [autoScroll]=\"true\"\n [styleData]=\"styleData\">\n <div sliderbody>\n <div class=\"insights-item\" *ngFor=\"let item of insitesData; let i = index\" [hidden]=\"i !== currentIndex\">\n <div class=\"flex gap-4\">\n <div class=\"insights-lable\">{{item?.label}}</div>\n <div class=\"flex items-center growth-positive\" *ngIf=\"item?.growth === 'positive'\">\n <mat-icon class=\"positive-icon\">arrow_upward</mat-icon>\n <span class=\"positive-note pt-1\">+{{roundTo(item?.progress)}}%</span>\n </div>\n <div class=\"flex items-center growth-negative\" *ngIf=\"item?.growth === 'negative' && item?.progress > 0\">\n <mat-icon class=\"negative-icon\">arrow_downward</mat-icon>\n <span class=\"negative-note\">-{{roundTo(item?.progress)}}%</span>\n </div>\n </div>\n </div>\n </div>\n </sb-uic-sliders-ng-content>\n </div>\n </div>\n </div>\n </div>\n</div>\n",
19466
+ styles: [".user-progress-title{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:left}.user-progress-wrapper{border-radius:12px}.user-rank{background:url(https://portal.dev.karmayogibharat.net/content-store/orgStore/0132238763297177601/1727267061524_shadow.png),linear-gradient(124.59deg,#266eeb 51.53%,#133f8b 140.2%);height:76px;border-top-left-radius:12px;border-top-right-radius:12px;border-left-color:#266eeb;border-right-color:#266eeb;border-top-color:#266eeb;padding-left:25%}.current-rank{padding:3px 10px;border-radius:15px;background-color:#fff;color:#f3962f;font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:center}.user-details-wrapper{padding:0 8px;border:1px solid #e8e8e8;border-bottom-left-radius:12px;border-bottom-right-radius:12px;background-color:#fff}.user-details,.user-stats{padding:0 8px}.user-initial{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:center;width:70px;height:70px;display:flex;align-items:center;justify-content:center;background-color:#000;color:#fff;border-radius:50px;border:3px solid #fff;margin-top:-30px}.user-profile{width:70px;height:70px;border-radius:50px}.user-name{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.my-hours{padding:16px;background-color:#f0f3f4;border-radius:12px;width:50%;border:1px solid #c3c3c3}.my-certificates{padding:16px;background-color:#f0f3f4;width:50%;border-radius:12px;border:1px solid #c3c3c3}.k-points{padding:16px;background-color:#f0f3f4;width:40%;border-radius:12px;border:1px solid #c3c3c3}.hours-icon{background:linear-gradient(143.13deg,rgba(255,191,26,.15) 5.36%,rgba(255,64,128,.15) 94.64%);border-radius:50px;padding:5px}.counter-title{font-family:Lato;font-size:12px;font-weight:400;line-height:14.4px;text-align:left}.counter{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.cert-icon{background:linear-gradient(180deg,rgba(255,206,81,.24) 0,rgba(254,231,28,.24) 100%);border-radius:50px;padding:5px}.kp-point-icon{background:#dbe4ff;border-radius:50px;padding:5px;height:18px;width:18px}.insights-wrapper{padding:8px 0}.insights-container{background:rgba(243,150,47,.2);height:84px;border-radius:8px}.insights-container ::ng-deep .prev{display:none}.insights-container ::ng-deep .next{display:none}.insights-item{padding:16px}.insights-lable{font-family:Lato;font-size:12px;font-weight:400;line-height:14.4px;text-align:left}.positive-note{font-size:12px;font-weight:400;line-height:14.4px}.positive-icon{font-size:18px;height:18px;width:18px}.growth-positive{color:green}.growth-negative{color:red}.negative-icon{font-size:18px;height:18px;width:18px}.negative-note{font-size:12px;font-weight:400;line-height:14.4px}@media screen and (min-width:320px) and (max-width:769px){.week-progress{background-color:#d1dbec}}"]
19467
+ }] }
19468
+ ];
19469
+ /** @nocollapse */
19470
+ UserProgressComponent.ctorParameters = function () { return [
19471
+ { type: InsiteDataService },
19472
+ { type: utilsV2.ConfigurationsService }
19473
+ ]; };
19474
+ UserProgressComponent.propDecorators = {
19475
+ objectData: [{ type: core.Input }],
19476
+ rootOrgId: [{ type: core.Input }],
19477
+ scrollableItems: [{ type: core.ViewChildren, args: [ScrollableItemDirective,] }]
19478
+ };
19479
+ return UserProgressComponent;
19480
+ }());
19481
+ if (false) {
19482
+ /** @type {?} */
19483
+ UserProgressComponent.prototype.objectData;
19484
+ /** @type {?} */
19485
+ UserProgressComponent.prototype.rootOrgId;
19486
+ /** @type {?} */
19487
+ UserProgressComponent.prototype.insitesData;
19488
+ /** @type {?} */
19489
+ UserProgressComponent.prototype.currentIndex;
19490
+ /** @type {?} */
19491
+ UserProgressComponent.prototype.styleData;
19492
+ /** @type {?} */
19493
+ UserProgressComponent.prototype.userProgress;
19494
+ /** @type {?} */
19495
+ UserProgressComponent.prototype.expand;
19496
+ /** @type {?} */
19497
+ UserProgressComponent.prototype.scrollableItems;
19498
+ /** @type {?} */
19499
+ UserProgressComponent.prototype.insightSvc;
19500
+ /**
19501
+ * @type {?}
19502
+ * @private
19503
+ */
19504
+ UserProgressComponent.prototype.configSvc;
19505
+ }
19506
+
19507
+ /**
19508
+ * @fileoverview added by tsickle
19509
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
19510
+ */
19511
+ var UserProgressModule = /** @class */ (function () {
19512
+ function UserProgressModule() {
19513
+ }
19514
+ UserProgressModule.decorators = [
19515
+ { type: core.NgModule, args: [{
19516
+ declarations: [UserProgressComponent],
19517
+ imports: [
19518
+ common.CommonModule,
19519
+ material.MatTooltipModule,
19520
+ material.MatIconModule,
19521
+ ScrollableItemModule,
19522
+ SlidersNgContentLibModule,
19523
+ ],
19524
+ exports: [
19525
+ UserProgressComponent
19526
+ ]
19527
+ },] }
19528
+ ];
19529
+ return UserProgressModule;
19530
+ }());
19531
+
19532
+ /**
19533
+ * @fileoverview added by tsickle
19534
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
19535
+ */
19536
+ var NationalLearningModule = /** @class */ (function () {
19537
+ function NationalLearningModule() {
19538
+ }
19539
+ NationalLearningModule.decorators = [
19540
+ { type: core.NgModule, args: [{
19541
+ declarations: [NationalLearningComponent],
19542
+ imports: [
19543
+ common.CommonModule,
19544
+ material.MatIconModule,
19545
+ material.MatChipsModule,
19546
+ SkeletonLoaderLibModule,
19547
+ SlidersLibModule,
19548
+ material.MatTabsModule,
19549
+ KeyHighlightsModule,
19550
+ ContentStripWithTabsLibModule,
19551
+ DataPointsModule,
19552
+ EventsModule,
19553
+ MdoLeaderboardModule,
19554
+ HighlightsOfWeekModule,
19555
+ SpeakersModule,
19556
+ UserProgressModule
19557
+ ],
19558
+ exports: [
19559
+ NationalLearningComponent,
19560
+ ],
19561
+ providers: [
19562
+ CommonMethodsService
19563
+ ],
19564
+ schemas: [core.CUSTOM_ELEMENTS_SCHEMA]
19565
+ },] }
19566
+ ];
19567
+ return NationalLearningModule;
19568
+ }());
19569
+
18188
19570
  exports.AnnouncementsModule = AnnouncementsModule;
18189
19571
  exports.CalenderModule = CalenderModule;
18190
19572
  exports.CardsModule = CardsModule;
@@ -18201,15 +19583,22 @@
18201
19583
  exports.ContentStripWithTabsPillsModule = ContentStripWithTabsPillsModule;
18202
19584
  exports.DataPointsModule = DataPointsModule;
18203
19585
  exports.DialogComponentsModule = DialogComponentsModule;
19586
+ exports.EventsModule = EventsModule;
19587
+ exports.HighlightsOfWeekModule = HighlightsOfWeekModule;
18204
19588
  exports.HttpLoaderFactory = HttpLoaderFactory;
18205
19589
  exports.HttpLoaderFactory1 = HttpLoaderFactory1;
19590
+ exports.KeyHighlightsModule = KeyHighlightsModule;
18206
19591
  exports.MDOChannelModule = MDOChannelModule;
19592
+ exports.MdoLeaderboardModule = MdoLeaderboardModule;
18207
19593
  exports.MyHammerConfig = MyHammerConfig;
19594
+ exports.NationalLearningModule = NationalLearningModule;
18208
19595
  exports.ProvidersModule = ProvidersModule;
18209
19596
  exports.ROOT_WIDGET_CONFIG = ROOT_WIDGET_CONFIG;
18210
19597
  exports.SlidersLibModule = SlidersLibModule;
19598
+ exports.SpeakersModule = SpeakersModule;
18211
19599
  exports.TopLearnersModule = TopLearnersModule;
18212
19600
  exports.UserContentRatingLibModule = UserContentRatingLibModule;
19601
+ exports.UserProgressModule = UserProgressModule;
18213
19602
  exports.WIDGET_REGISTERED_LIB_MODULES = WIDGET_REGISTERED_LIB_MODULES;
18214
19603
  exports.WIDGET_REGISTRATION_LIB_CONFIG = WIDGET_REGISTRATION_LIB_CONFIG;
18215
19604
  exports.WidgetContentService = WidgetContentService;
@@ -18259,6 +19648,14 @@
18259
19648
  exports.ɵco = MdoChannelV1Component;
18260
19649
  exports.ɵcp = MdoChannelV2Component;
18261
19650
  exports.ɵcq = ProvidersV2Component;
19651
+ exports.ɵcr = NationalLearningComponent;
19652
+ exports.ɵcs = KeyHighlightsComponent;
19653
+ exports.ɵct = EventsComponent;
19654
+ exports.ɵcu = EventCardComponent;
19655
+ exports.ɵcv = MdoLeaderboardComponent;
19656
+ exports.ɵcw = HighlightsOfWeekComponent;
19657
+ exports.ɵcx = SpeakersComponent;
19658
+ exports.ɵcy = UserProgressComponent;
18262
19659
  exports.ɵd = ConfigurationsService;
18263
19660
  exports.ɵe = HorizontalScrollerV2Module;
18264
19661
  exports.ɵf = HorizontalScrollerV2Component;