@sunbird-cb/consumption 0.0.12 → 0.0.13

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 (73) hide show
  1. package/bundles/sunbird-cb-consumption.umd.js +2136 -71
  2. package/bundles/sunbird-cb-consumption.umd.js.map +1 -1
  3. package/bundles/sunbird-cb-consumption.umd.min.js +1 -1
  4. package/bundles/sunbird-cb-consumption.umd.min.js.map +1 -1
  5. package/esm2015/lib/_common/avatar-photo-lib/avatar-photo-lib.component.js +147 -0
  6. package/esm2015/lib/_common/avatar-photo-lib/avatar-photo-lib.module.js +29 -0
  7. package/esm2015/lib/_common/calender/calender-day/calender-day.component.js +90 -0
  8. package/esm2015/lib/_common/calender/calender.component.js +275 -9
  9. package/esm2015/lib/_common/calender/calender.module.js +15 -5
  10. package/esm2015/lib/_common/cards/card-portrait/card-portrait.component.js +5 -1
  11. package/esm2015/lib/_common/cards/card-wide/card-wide.component.js +166 -0
  12. package/esm2015/lib/_common/cards/cards.component.js +2 -2
  13. package/esm2015/lib/_common/cards/cards.module.js +5 -3
  14. package/esm2015/lib/_common/common-strip/common-strip.component.js +14 -11
  15. package/esm2015/lib/_common/competency-passbook/competency-passbook.component.js +22 -2
  16. package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +31 -3
  17. package/esm2015/lib/_common/data-points/data-points.component.js +2 -2
  18. package/esm2015/lib/_common/sliders-ng-content/sliders-ng-content.component.js +197 -0
  19. package/esm2015/lib/_common/sliders-ng-content/sliders-ng-content.model.js +61 -0
  20. package/esm2015/lib/_common/sliders-ng-content/sliders-ng-content.module.js +50 -0
  21. package/esm2015/lib/_common/user-content-rating/user-content-rating.component.js +710 -0
  22. package/esm2015/lib/_common/user-content-rating/user-content-rating.module.js +35 -0
  23. package/esm2015/lib/_models/rating.model.js +44 -0
  24. package/esm2015/lib/_services/insite-data.service.js +10 -2
  25. package/esm2015/lib/_services/rating.service.js +171 -0
  26. package/esm2015/public-api.js +2 -1
  27. package/esm2015/sunbird-cb-consumption.js +28 -20
  28. package/esm5/lib/_common/avatar-photo-lib/avatar-photo-lib.component.js +164 -0
  29. package/esm5/lib/_common/avatar-photo-lib/avatar-photo-lib.module.js +33 -0
  30. package/esm5/lib/_common/calender/calender-day/calender-day.component.js +101 -0
  31. package/esm5/lib/_common/calender/calender.component.js +305 -9
  32. package/esm5/lib/_common/calender/calender.module.js +15 -5
  33. package/esm5/lib/_common/cards/card-portrait/card-portrait.component.js +5 -1
  34. package/esm5/lib/_common/cards/card-wide/card-wide.component.js +172 -0
  35. package/esm5/lib/_common/cards/cards.component.js +2 -2
  36. package/esm5/lib/_common/cards/cards.module.js +5 -3
  37. package/esm5/lib/_common/common-strip/common-strip.component.js +22 -19
  38. package/esm5/lib/_common/competency-passbook/competency-passbook.component.js +26 -3
  39. package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +36 -3
  40. package/esm5/lib/_common/data-points/data-points.component.js +2 -2
  41. package/esm5/lib/_common/sliders-ng-content/sliders-ng-content.component.js +224 -0
  42. package/esm5/lib/_common/sliders-ng-content/sliders-ng-content.model.js +61 -0
  43. package/esm5/lib/_common/sliders-ng-content/sliders-ng-content.module.js +67 -0
  44. package/esm5/lib/_common/user-content-rating/user-content-rating.component.js +726 -0
  45. package/esm5/lib/_common/user-content-rating/user-content-rating.module.js +39 -0
  46. package/esm5/lib/_models/rating.model.js +44 -0
  47. package/esm5/lib/_services/insite-data.service.js +14 -2
  48. package/esm5/lib/_services/rating.service.js +214 -0
  49. package/esm5/public-api.js +2 -1
  50. package/esm5/sunbird-cb-consumption.js +28 -20
  51. package/fesm2015/sunbird-cb-consumption.js +1969 -88
  52. package/fesm2015/sunbird-cb-consumption.js.map +1 -1
  53. package/fesm5/sunbird-cb-consumption.js +2113 -58
  54. package/fesm5/sunbird-cb-consumption.js.map +1 -1
  55. package/lib/_common/avatar-photo-lib/avatar-photo-lib.component.d.ts +19 -0
  56. package/lib/_common/avatar-photo-lib/avatar-photo-lib.module.d.ts +2 -0
  57. package/lib/_common/calender/calender-day/calender-day.component.d.ts +18 -0
  58. package/lib/_common/calender/calender.component.d.ts +29 -1
  59. package/lib/_common/cards/card-wide/card-wide.component.d.ts +30 -0
  60. package/lib/_common/competency-passbook/competency-passbook.component.d.ts +1 -0
  61. package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.d.ts +6 -1
  62. package/lib/_common/sliders-ng-content/sliders-ng-content.component.d.ts +28 -0
  63. package/lib/_common/sliders-ng-content/sliders-ng-content.model.d.ts +34 -0
  64. package/lib/_common/sliders-ng-content/sliders-ng-content.module.d.ts +6 -0
  65. package/lib/_common/user-content-rating/user-content-rating.component.d.ts +167 -0
  66. package/lib/_common/user-content-rating/user-content-rating.module.d.ts +2 -0
  67. package/lib/_models/rating.model.d.ts +17 -0
  68. package/lib/_services/insite-data.service.d.ts +1 -0
  69. package/lib/_services/rating.service.d.ts +15 -0
  70. package/package.json +1 -1
  71. package/public-api.d.ts +1 -0
  72. package/sunbird-cb-consumption.d.ts +26 -18
  73. package/sunbird-cb-consumption.metadata.json +1 -1
@@ -3822,18 +3822,21 @@
3822
3822
  __extends(ContentStripWithTabsLibComponent, _super);
3823
3823
  function ContentStripWithTabsLibComponent(
3824
3824
  // private contentStripSvc: ContentStripNewMultipleService,
3825
- environment, contentSvc, loggerSvc, eventSvc, configSvc, utilitySvc, userSvc, translate, langtranslations) {
3825
+ environment, contentSvc, loggerSvc, eventSvc, configSvc, utilitySvc, router, userSvc, translate, langtranslations) {
3826
3826
  var _this = _super.call(this) || this;
3827
3827
  _this.contentSvc = contentSvc;
3828
3828
  _this.loggerSvc = loggerSvc;
3829
3829
  _this.eventSvc = eventSvc;
3830
3830
  _this.configSvc = configSvc;
3831
3831
  _this.utilitySvc = utilitySvc;
3832
+ _this.router = router;
3832
3833
  _this.userSvc = userSvc;
3833
3834
  _this.translate = translate;
3834
3835
  _this.langtranslations = langtranslations;
3835
3836
  _this.emptyResponse = new core.EventEmitter();
3837
+ _this.viewAllResponse = new core.EventEmitter();
3836
3838
  _this.providerId = '';
3839
+ _this.emitViewAll = false;
3837
3840
  _this.id = "ws-strip-miltiple_" + Math.random();
3838
3841
  _this.stripsResultDataMap = {};
3839
3842
  _this.stripsKeyOrder = [];
@@ -5701,10 +5704,30 @@
5701
5704
  }
5702
5705
  return filters;
5703
5706
  };
5707
+ /**
5708
+ * @param {?} stripData
5709
+ * @param {?} path
5710
+ * @param {?} queryParamsData
5711
+ * @return {?}
5712
+ */
5713
+ ContentStripWithTabsLibComponent.prototype.redirectViewAll = /**
5714
+ * @param {?} stripData
5715
+ * @param {?} path
5716
+ * @param {?} queryParamsData
5717
+ * @return {?}
5718
+ */
5719
+ function (stripData, path, queryParamsData) {
5720
+ if (this.emitViewAll) {
5721
+ this.viewAllResponse.emit(stripData);
5722
+ }
5723
+ else {
5724
+ this.router.navigate([path], { queryParams: queryParamsData });
5725
+ }
5726
+ };
5704
5727
  ContentStripWithTabsLibComponent.decorators = [
5705
5728
  { type: core.Component, args: [{
5706
5729
  selector: 'sb-uic-content-strip-with-tabs',
5707
- template: "<ng-container *ngIf=\"!contentAvailable; else otherTemplate\"></ng-container>\n<ng-template #otherTemplate>\n <!-- <div *ngIf=\"showParentLoader\" class=\"text-center my-2\">\n <mat-spinner class=\"inline-block\"></mat-spinner>\n </div> -->\n <ng-container *ngIf=\"showParentError\" [sbUiResolverWidget]=\"widgetData.errorWidget\"></ng-container>\n <ng-container *ngIf=\"showParentNoData\" [sbUiResolverWidget]=\"widgetData.noDataWidget\"></ng-container>\n <ng-container *ngFor=\"let key of stripsKeyOrder; let i = index; trackBy: identify\">\n <ng-container *ngIf=\"isStripShowing(stripsResultDataMap[key])\">\n <a name=\"{{stripsResultDataMap[key]?.stripTitle}}\" [class]=\"key\">\n <div *ngIf=\"stripsResultDataMap && (getLength(stripsResultDataMap[key]) ||\n stripsResultDataMap[key]?.showOnNoData ||\n stripsResultDataMap[key]?.showOnLoader ||\n stripsResultDataMap[key]?.showOnError)\n \" [ngClass]=\"\n !widgetData?.isChannelStrip ? 'xs:px-8 sx:px-10ss' : i > 0 ? 'mt-12' : ''\n \" [id]=\"key\" [ngClass]=\"!widgetData?.isChannelStrip ? margin-bottom-custom : margin-bottom-xs\">\n <div [ngClass]=\"{ pad: stripsResultDataMap[key]?.stripBackground }\"\n [ngStyle]=\"{ 'background-color': stripsResultDataMap[key]?.stripBackground }\">\n <div class=\"flex flex-col pl-4 pr-4 md:pr-0 md:pl-0 \" [ngClass]=\"\n !widgetData?.isChannelStrip\n ? ''\n : stripsResultDataMap[key]?.stripTitle\n ? 'mb-8'\n : ''\n \">\n <div class=\"flex flex-1 items-center\">\n <p class=\"mat-subheading-1 margin-remove inline-block \" *ngIf=\"stripsResultDataMap[key]?.stripTitle\">\n <span class=\"capitalize\" *ngIf=\"stripsResultDataMap[key]?.disableTranslate\">\n {{stripsResultDataMap[key]?.stripTitle}}\n </span>\n <span *ngIf=\"!stripsResultDataMap[key]?.disableTranslate\">\n {{ translateLabels(stripsResultDataMap[key]?.stripTitle, 'home') }}\n </span>\n </p>\n\n <button *ngIf=\"stripsResultDataMap[key]?.stripInfo?.icon\" type=\"button\" mat-icon-button\n (click)=\"toggleInfo(stripsResultDataMap[key])\" i18n-matTooltip matTooltip=\"info\"\n class=\"margin-left-xs\">\n <mat-icon>{{ stripsResultDataMap[key]?.stripInfo?.icon.icon }}</mat-icon>\n </button>\n <a *ngIf=\"stripsResultDataMap[key]?.stripTitleLink?.link\"\n [routerLink]=\"stripsResultDataMap[key]?.stripTitleLink?.link\"\n [queryParams]=\"stripsResultDataMap[key]?.stripTitleLink?.link?.queryParams\">\n <mat-icon class=\"ws-mat-primary-primary-text ws-mat-default-text\" [color]=\"'accent'\">{{\n stripsResultDataMap[key]?.stripTitleLink?.icon }}</mat-icon>\n </a>\n <span class=\"spacer\"></span>\n <!-- viewAll start-->\n <div *ngIf=\"checkCondition(widgetData , stripsResultDataMap[key])\"\n class=\"ml-4 view-more ws-mat-default-text\">\n <a class=\"flex ws-mat-default-text items-center justify-center mat-body-1\" [routerLink]=\"stripsResultDataMap[key]?.viewMoreUrl?.path\"\n [queryParams]=\"stripsResultDataMap[key]?.viewMoreUrl?.queryParams\">\n <span i18n class=\"ws-mat-default-text\">{{translateLabels(widgetData.strips[0].viewMoreUrl.viewMoreText,'home') || 'See all'}}</span>\n <mat-icon class=\"ws-mat-default-text mat-icon notranslate material-icons mat-icon-no-color\" color=\"accent\">navigate_next</mat-icon>\n </a>\n </div>\n <!-- viewAll end-->\n </div>\n <button mat-icon-button (click)=\"setHiddenForStrip(key)\" *ngIf=\"stripsResultDataMap[key]?.canHideStrip\">\n <mat-icon>close</mat-icon>\n </button>\n <mat-icon class=\"cursor-pointer\" *ngIf=\"stripsResultDataMap[key]?.mode === 'accordion' && isMobile\"\n (click)=\"showAccordionData = !showAccordionData\">{{ showAccordionData ? 'expand_less' : 'expand_more' }}\n </mat-icon>\n </div>\n\n <div class=\"mb-4\" *ngIf=\"checkVisible(stripsResultDataMap[key])\">\n <ng-container [sbUiResolverWidget]=\"getdata(stripsResultDataMap[key])\">\n </ng-container>\n </div>\n\n <ng-container *ngIf=\"stripsResultDataMap[key]?.showOnNoData\"\n [sbUiResolverWidget]=\"stripsResultDataMap[key]?.noDataWidget\"></ng-container>\n <ng-container *ngIf=\"stripsResultDataMap[key]?.showOnError\"\n [sbUiResolverWidget]=\"stripsResultDataMap[key]?.errorWidget\"></ng-container>\n <!-- IF no errors then proceed to show tabs or non tabs strip -->\n <ng-container *ngIf=\"!stripsResultDataMap[key]?.showOnNoData && !stripsResultDataMap[key]?.showOnError\">\n <ng-container *ngIf=\"stripsResultDataMap[key].tabs && stripsResultDataMap[key].tabs.length\">\n <mat-tab-group animationDuration=\"0ms\" [selectedIndex]=\"getSelectedIndex(stripsResultDataMap[key], key)\"\n class=\"mat-tab-labels w-full strips-tabgroup\" dynamicHeight\n (selectedTabChange)=\"tabClicked($event, stripsResultDataMap[key], key)\">\n <mat-tab label=\"{{tab?.label}}\" *ngFor=\"let tab of stripsResultDataMap[key].tabs; let last = last;\">\n <ng-template mat-tab-label>\n <span>{{ translateLabels(tab?.label, 'home') }} &nbsp;</span>\n <span *ngIf=\"tab?.showTabDataCount && tab?.widgets?.length\">({{tab?.widgets?.length}})</span>\n </ng-template>\n <div>\n <!-- <ng-container [ngTemplateOutlet]=\"loader\" *ngIf=\"stripsResultDataMap[key]?.showOnLoader\">\n </ng-container> -->\n <div *ngIf=\"stripsResultDataMap && stripsResultDataMap[key]?.showOnLoader ||\n !tab.fetchTabStatus\"\n class=\"text-center my-2\">\n <sb-uic-horizontal-scroller-v2 [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\" [id]=\"key+'-scroller'\"\n [loadStatus]=\"'fetching'\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of stripsResultDataMap[key]?.loaderWidgets; trackBy: tracker\">\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </div>\n <div *ngIf=\"((tab?.fetchTabStatus && tab?.fetchTabStatus === 'done') &&\n (!tab?.widgets || !tab?.widgets?.length))\">\n <ng-container *ngIf=\"tab?.value === 'inprogress'; else msgTemp\">\n <div class=\"w-full flex flex-col items-center justify-center\">\n <img alt=\"\" class=\"mt-4 mb-4\" src=\"assets/icons/home/nodataDefault.svg\">\n <div class=\"mat-subheading-1 text-center info-content\">{{ 'contentstripmultiple.getReadyForLearningAdventure' | translate }} -\n <a class=\"click-here\" [routerLink]=\"'/page/learn'\">{{ 'contentstripmultiple.clickHere' | translate }}</a> {{ 'contentstripmultiple.toEnrollNextCourse' | translate }}</div>\n </div>\n </ng-container>\n <ng-template #msgTemp>\n <div class=\"w-full flex flex-col items-center justify-center\">\n <img alt=\"\" class=\"mt-4 mb-4\" src=\"assets/icons/home/nodataDefault.png\">\n <div class=\"mat-subheading-1 text-center\">{{ translateLabels(tab.nodataMsg, 'home') }}</div>\n </div>\n </ng-template>\n </div>\n <ng-container *ngIf=\"(tab?.fetchTabStatus === 'done' || tab?.widgets?.length)\">\n <ng-container *ngIf=\"!tab?.tabLoading\">\n\n <sb-uic-horizontal-scroller-v2 [id]=\"key+'-scroller'\" [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\" [widgetsLength]=\"tab?.widgets?.length\"\n *ngIf=\"getContineuLearningLenth(stripsResultDataMap[key]) && showAccordion(key)\"\n [loadStatus]=\"'done'\" [defaultMaxWidgets]=\"tab?.maxWidgets ||\n stripsResultDataMap[key]?.sliderConfig?.maxWidgets || defaultMaxWidgets\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of tab?.widgets| slice:0:(tab?.maxWidgets ||\n stripsResultDataMap[key]?.sliderConfig?.maxWidgets || defaultMaxWidgets); trackBy: tracker\">\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </ng-container>\n </ng-container>\n </div>\n </mat-tab>\n </mat-tab-group>\n </ng-container>\n <ng-container *ngIf=\"!stripsResultDataMap[key].tabs || !stripsResultDataMap[key].tabs.length\">\n <div *ngIf=\"stripsResultDataMap && stripsResultDataMap[key]?.showOnLoader\" class=\"text-center my-2\">\n <sb-uic-horizontal-scroller-v2 [id]=\"key+'-scroller'\" [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\"\n [loadStatus]=\"'fetching'\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of stripsResultDataMap[key]?.loaderWidgets; trackBy: tracker\">\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </div>\n <div class=\"\">\n <sb-uic-horizontal-scroller-v2 [id]=\"key+'-scroller'\" [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\"\n *ngIf=\"getContineuLearningLenth(stripsResultDataMap[key]) && showAccordion(key)\" [widgetsLength]=\"stripsResultDataMap[key]?.widgets?.length\" [loadStatus]=\"'done'\" [defaultMaxWidgets]=\"stripsResultDataMap[key].sliderConfig?.maxWidgets || defaultMaxWidgets\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of stripsResultDataMap[key]?.widgets| slice:0:(stripsResultDataMap[key].sliderConfig?.maxWidgets || defaultMaxWidgets); trackBy: tracker\">\n <!-- <ng-container *ngIf=\"widget.widgetData.context.pageSection === 'continueLearning' \"> -->\n <!-- <ng-container *ngIf=\"widget.widgetData.content.completionPercentage !== 100\"\n [sbUiResolverWidget]=\"widget\"></ng-container> -->\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n <!-- </ng-container> -->\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </a>\n\n </ng-container>\n </ng-container>\n</ng-template>",
5730
+ template: "<ng-container *ngIf=\"!contentAvailable; else otherTemplate\"></ng-container>\n<ng-template #otherTemplate>\n <!-- <div *ngIf=\"showParentLoader\" class=\"text-center my-2\">\n <mat-spinner class=\"inline-block\"></mat-spinner>\n </div> -->\n <ng-container *ngIf=\"showParentError\" [sbUiResolverWidget]=\"widgetData.errorWidget\"></ng-container>\n <ng-container *ngIf=\"showParentNoData\" [sbUiResolverWidget]=\"widgetData.noDataWidget\"></ng-container>\n <ng-container *ngFor=\"let key of stripsKeyOrder; let i = index; trackBy: identify\">\n <ng-container *ngIf=\"isStripShowing(stripsResultDataMap[key])\">\n <a name=\"{{stripsResultDataMap[key]?.stripTitle}}\" [class]=\"key\">\n <div *ngIf=\"stripsResultDataMap && (getLength(stripsResultDataMap[key]) ||\n stripsResultDataMap[key]?.showOnNoData ||\n stripsResultDataMap[key]?.showOnLoader ||\n stripsResultDataMap[key]?.showOnError)\n \" [ngClass]=\"\n !widgetData?.isChannelStrip ? 'xs:px-8 sx:px-10ss' : i > 0 ? 'mt-12' : ''\n \" [id]=\"key\" [ngClass]=\"!widgetData?.isChannelStrip ? margin-bottom-custom : margin-bottom-xs\">\n <div [ngClass]=\"{ pad: stripsResultDataMap[key]?.stripBackground }\"\n [ngStyle]=\"{ 'background-color': stripsResultDataMap[key]?.stripBackground }\">\n <div class=\"flex flex-col pl-4 pr-4 md:pr-0 md:pl-0 \" [ngClass]=\"\n !widgetData?.isChannelStrip\n ? ''\n : stripsResultDataMap[key]?.stripTitle\n ? 'mb-8'\n : ''\n \">\n <div class=\"flex flex-1 items-center\">\n <p class=\"mat-subheading-1 margin-remove inline-block \" *ngIf=\"stripsResultDataMap[key]?.stripTitle\">\n <span class=\"capitalize\" *ngIf=\"stripsResultDataMap[key]?.disableTranslate\">\n {{stripsResultDataMap[key]?.stripTitle}}\n </span>\n <span *ngIf=\"!stripsResultDataMap[key]?.disableTranslate\">\n {{ translateLabels(stripsResultDataMap[key]?.stripTitle, 'home') }}\n </span>\n </p>\n\n <button *ngIf=\"stripsResultDataMap[key]?.stripInfo?.icon\" type=\"button\" mat-icon-button\n (click)=\"toggleInfo(stripsResultDataMap[key])\" i18n-matTooltip matTooltip=\"info\"\n class=\"margin-left-xs\">\n <mat-icon>{{ stripsResultDataMap[key]?.stripInfo?.icon.icon }}</mat-icon>\n </button>\n <a *ngIf=\"stripsResultDataMap[key]?.stripTitleLink?.link\"\n [routerLink]=\"stripsResultDataMap[key]?.stripTitleLink?.link\"\n [queryParams]=\"stripsResultDataMap[key]?.stripTitleLink?.link?.queryParams\">\n <mat-icon class=\"ws-mat-primary-primary-text ws-mat-default-text\" [color]=\"'accent'\">{{\n stripsResultDataMap[key]?.stripTitleLink?.icon }}</mat-icon>\n </a>\n <span class=\"spacer\"></span>\n <!-- viewAll start-->\n <div *ngIf=\"checkCondition(widgetData , stripsResultDataMap[key])\"\n class=\"ml-4 view-more ws-mat-default-text\">\n <a class=\"flex ws-mat-default-text items-center justify-center mat-body-1\" (click)=\"redirectViewAll(stripsResultDataMap[key], stripsResultDataMap[key]?.viewMoreUrl?.path, stripsResultDataMap[key]?.viewMoreUrl?.queryParams )\">\n <span i18n class=\"ws-mat-default-text\">{{translateLabels(widgetData.strips[0].viewMoreUrl.viewMoreText,'home') || 'See all'}}</span>\n <mat-icon class=\"ws-mat-default-text mat-icon notranslate material-icons mat-icon-no-color\" color=\"accent\">navigate_next</mat-icon>\n </a>\n </div>\n <!-- viewAll end-->\n </div>\n <button mat-icon-button (click)=\"setHiddenForStrip(key)\" *ngIf=\"stripsResultDataMap[key]?.canHideStrip\">\n <mat-icon>close</mat-icon>\n </button>\n <mat-icon class=\"cursor-pointer\" *ngIf=\"stripsResultDataMap[key]?.mode === 'accordion' && isMobile\"\n (click)=\"showAccordionData = !showAccordionData\">{{ showAccordionData ? 'expand_less' : 'expand_more' }}\n </mat-icon>\n </div>\n\n <div class=\"mb-4\" *ngIf=\"checkVisible(stripsResultDataMap[key])\">\n <ng-container [sbUiResolverWidget]=\"getdata(stripsResultDataMap[key])\">\n </ng-container>\n </div>\n\n <ng-container *ngIf=\"stripsResultDataMap[key]?.showOnNoData\"\n [sbUiResolverWidget]=\"stripsResultDataMap[key]?.noDataWidget\"></ng-container>\n <ng-container *ngIf=\"stripsResultDataMap[key]?.showOnError\"\n [sbUiResolverWidget]=\"stripsResultDataMap[key]?.errorWidget\"></ng-container>\n <!-- IF no errors then proceed to show tabs or non tabs strip -->\n <ng-container *ngIf=\"!stripsResultDataMap[key]?.showOnNoData && !stripsResultDataMap[key]?.showOnError\">\n <ng-container *ngIf=\"stripsResultDataMap[key].tabs && stripsResultDataMap[key].tabs.length\">\n <mat-tab-group animationDuration=\"0ms\" [selectedIndex]=\"getSelectedIndex(stripsResultDataMap[key], key)\"\n class=\"mat-tab-labels w-full strips-tabgroup\" dynamicHeight\n (selectedTabChange)=\"tabClicked($event, stripsResultDataMap[key], key)\">\n <mat-tab label=\"{{tab?.label}}\" *ngFor=\"let tab of stripsResultDataMap[key].tabs; let last = last;\">\n <ng-template mat-tab-label>\n <span>{{ translateLabels(tab?.label, 'home') }} &nbsp;</span>\n <span *ngIf=\"tab?.showTabDataCount && tab?.widgets?.length\">({{tab?.widgets?.length}})</span>\n </ng-template>\n <div>\n <!-- <ng-container [ngTemplateOutlet]=\"loader\" *ngIf=\"stripsResultDataMap[key]?.showOnLoader\">\n </ng-container> -->\n <div *ngIf=\"stripsResultDataMap && stripsResultDataMap[key]?.showOnLoader ||\n !tab.fetchTabStatus\"\n class=\"text-center my-2\">\n <sb-uic-horizontal-scroller-v2 [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\" [id]=\"key+'-scroller'\"\n [loadStatus]=\"'fetching'\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of stripsResultDataMap[key]?.loaderWidgets; trackBy: tracker\">\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </div>\n <div *ngIf=\"((tab?.fetchTabStatus && tab?.fetchTabStatus === 'done') &&\n (!tab?.widgets || !tab?.widgets?.length))\">\n <ng-container *ngIf=\"tab?.value === 'inprogress'; else msgTemp\">\n <div class=\"w-full flex flex-col items-center justify-center\">\n <img alt=\"\" class=\"mt-4 mb-4\" src=\"assets/icons/home/nodataDefault.svg\">\n <div class=\"mat-subheading-1 text-center info-content\">{{ 'contentstripmultiple.getReadyForLearningAdventure' | translate }} -\n <a class=\"click-here\" [routerLink]=\"'/page/learn'\">{{ 'contentstripmultiple.clickHere' | translate }}</a> {{ 'contentstripmultiple.toEnrollNextCourse' | translate }}</div>\n </div>\n </ng-container>\n <ng-template #msgTemp>\n <div class=\"w-full flex flex-col items-center justify-center\">\n <img alt=\"\" class=\"mt-4 mb-4\" src=\"assets/icons/home/nodataDefault.png\">\n <div class=\"mat-subheading-1 text-center\">{{ translateLabels(tab.nodataMsg, 'home') }}</div>\n </div>\n </ng-template>\n </div>\n <ng-container *ngIf=\"(tab?.fetchTabStatus === 'done' || tab?.widgets?.length)\">\n <ng-container *ngIf=\"!tab?.tabLoading\">\n\n <sb-uic-horizontal-scroller-v2 [id]=\"key+'-scroller'\" [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\" [widgetsLength]=\"tab?.widgets?.length\"\n *ngIf=\"getContineuLearningLenth(stripsResultDataMap[key]) && showAccordion(key)\"\n [loadStatus]=\"'done'\" [defaultMaxWidgets]=\"tab?.maxWidgets ||\n stripsResultDataMap[key]?.sliderConfig?.maxWidgets || defaultMaxWidgets\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of tab?.widgets| slice:0:(tab?.maxWidgets ||\n stripsResultDataMap[key]?.sliderConfig?.maxWidgets || defaultMaxWidgets); trackBy: tracker\">\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </ng-container>\n </ng-container>\n </div>\n </mat-tab>\n </mat-tab-group>\n </ng-container>\n <ng-container *ngIf=\"!stripsResultDataMap[key].tabs || !stripsResultDataMap[key].tabs.length\">\n <div *ngIf=\"stripsResultDataMap && stripsResultDataMap[key]?.showOnLoader\" class=\"text-center my-2\">\n <sb-uic-horizontal-scroller-v2 [id]=\"key+'-scroller'\" [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\"\n [loadStatus]=\"'fetching'\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of stripsResultDataMap[key]?.loaderWidgets; trackBy: tracker\">\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </div>\n <div class=\"\">\n <sb-uic-horizontal-scroller-v2 [id]=\"key+'-scroller'\" [sliderConfig]=\"stripsResultDataMap[key]?.sliderConfig\"\n *ngIf=\"getContineuLearningLenth(stripsResultDataMap[key]) && showAccordion(key)\" [widgetsLength]=\"stripsResultDataMap[key]?.widgets?.length\" [loadStatus]=\"'done'\" [defaultMaxWidgets]=\"stripsResultDataMap[key].sliderConfig?.maxWidgets || defaultMaxWidgets\" [stripConfig]=\"stripsResultDataMap[key]?.stripConfig\">\n <ng-container *ngFor=\"let widget of stripsResultDataMap[key]?.widgets| slice:0:(stripsResultDataMap[key].sliderConfig?.maxWidgets || defaultMaxWidgets); trackBy: tracker\">\n <!-- <ng-container *ngIf=\"widget.widgetData.context.pageSection === 'continueLearning' \"> -->\n <!-- <ng-container *ngIf=\"widget.widgetData.content.completionPercentage !== 100\"\n [sbUiResolverWidget]=\"widget\"></ng-container> -->\n <ng-container [sbUiResolverWidget]=\"widget\"></ng-container>\n <!-- </ng-container> -->\n </ng-container>\n </sb-uic-horizontal-scroller-v2>\n </div>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </a>\n\n </ng-container>\n </ng-container>\n</ng-template>",
5708
5731
  styles: [".view-more{display:flex;align-items:center;text-align:center;height:40px;justify-content:center}.view-more .icon{font-size:24px;width:24px;height:24px;border:1px solid;border-radius:50%;padding:8px;margin-bottom:8px}.margin-bottom-custom{margin-bottom:60px}.view-more:hover{background-color:#dcdfe5}::ng-deep.strips-tabgroup .mat-tab-header{border-bottom:2px solid rgba(0,0,0,.12)}::ng-deep.strips-tabgroup .mat-tab-body{padding:20px 0!important;box-sizing:border-box;overflow-y:initial!important}::ng-deep.strips-tabgroup .mat-tab-body-wrapper{overflow:inherit!important}::ng-deep.strips-tabgroup .mat-tab-label{border-bottom:0 solid rgba(0,0,0,.1);margin-right:0;opacity:1}::ng-deep.strips-tabgroup .mat-tab-label .mat-tab-label-content{text-transform:inherit;font:400 14px/20px Lato}::ng-deep.strips-tabgroup .mat-tab-label-active .mat-tab-label-content{font-weight:700!important}.click-here{color:#1b4ca1}.info-content{opacity:1;color:rgba(0,0,0,.87);font:700 14px/20px Lato-Bold;text-align:center}"]
5709
5732
  }] }
5710
5733
  ];
@@ -5716,6 +5739,7 @@
5716
5739
  { type: utilsV2.EventService },
5717
5740
  { type: utilsV2.ConfigurationsService },
5718
5741
  { type: utilsV2.UtilityService },
5742
+ { type: router.Router },
5719
5743
  { type: WidgetUserService },
5720
5744
  { type: core$1.TranslateService },
5721
5745
  { type: MultilingualTranslationsService }
@@ -5723,7 +5747,9 @@
5723
5747
  ContentStripWithTabsLibComponent.propDecorators = {
5724
5748
  widgetData: [{ type: core.Input }],
5725
5749
  emptyResponse: [{ type: core.Output }],
5750
+ viewAllResponse: [{ type: core.Output }],
5726
5751
  providerId: [{ type: core.Input }],
5752
+ emitViewAll: [{ type: core.Input }],
5727
5753
  id: [{ type: core.HostBinding, args: ['id',] }]
5728
5754
  };
5729
5755
  return ContentStripWithTabsLibComponent;
@@ -5734,8 +5760,12 @@
5734
5760
  /** @type {?} */
5735
5761
  ContentStripWithTabsLibComponent.prototype.emptyResponse;
5736
5762
  /** @type {?} */
5763
+ ContentStripWithTabsLibComponent.prototype.viewAllResponse;
5764
+ /** @type {?} */
5737
5765
  ContentStripWithTabsLibComponent.prototype.providerId;
5738
5766
  /** @type {?} */
5767
+ ContentStripWithTabsLibComponent.prototype.emitViewAll;
5768
+ /** @type {?} */
5739
5769
  ContentStripWithTabsLibComponent.prototype.id;
5740
5770
  /** @type {?} */
5741
5771
  ContentStripWithTabsLibComponent.prototype.stripsResultDataMap;
@@ -5793,6 +5823,8 @@
5793
5823
  ContentStripWithTabsLibComponent.prototype.configSvc;
5794
5824
  /** @type {?} */
5795
5825
  ContentStripWithTabsLibComponent.prototype.utilitySvc;
5826
+ /** @type {?} */
5827
+ ContentStripWithTabsLibComponent.prototype.router;
5796
5828
  /**
5797
5829
  * @type {?}
5798
5830
  * @private
@@ -6369,7 +6401,8 @@
6369
6401
  */
6370
6402
  /** @type {?} */
6371
6403
  var API_END_POINTS$2 = {
6372
- PROVIDER_INSIGHTS: "/apis/proxies/v8/microsite/read/insights"
6404
+ PROVIDER_INSIGHTS: "/apis/proxies/v8/microsite/read/insights",
6405
+ TRAINING_DETAILS: "apis/proxies/v8/sunbirdigot/search"
6373
6406
  };
6374
6407
  var InsiteDataService = /** @class */ (function () {
6375
6408
  function InsiteDataService(http) {
@@ -6386,6 +6419,17 @@
6386
6419
  function (request) {
6387
6420
  return this.http.post(API_END_POINTS$2.PROVIDER_INSIGHTS, request);
6388
6421
  };
6422
+ /**
6423
+ * @param {?} request
6424
+ * @return {?}
6425
+ */
6426
+ InsiteDataService.prototype.fetchTrainingDetails = /**
6427
+ * @param {?} request
6428
+ * @return {?}
6429
+ */
6430
+ function (request) {
6431
+ return this.http.post(API_END_POINTS$2.TRAINING_DETAILS, request);
6432
+ };
6389
6433
  InsiteDataService.decorators = [
6390
6434
  { type: core.Injectable, args: [{
6391
6435
  providedIn: 'root'
@@ -6490,7 +6534,7 @@
6490
6534
  DataPointsComponent.decorators = [
6491
6535
  { type: core.Component, args: [{
6492
6536
  selector: 'sb-uic-data-points',
6493
- template: "<div class=\"w-full metrics-web\" *ngIf=\"layoutType === 'multipleRows' && !isDataLoading\">\n <div *ngFor=\"let obj of objectData\" class=\"\">\n <div class=\"element-div\" [ngClass]=\"{'linebreak': obj?.linebreak}\">\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\" >{{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\" *ngIf=\"layoutType === 'singleRow'\">\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\">\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\">{{obj?.value | number: '1.1-2'}}</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\">{{item?.value}}</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\n<!-- skeleton loaders -->\n\n<ng-container>\n <div class=\"w-full metrics-web\" *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</ng-container>",
6537
+ 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 }\">\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\" >{{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\" *ngIf=\"layoutType === 'singleRow'\">\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\">\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\">{{obj?.value | number: '1.1-2'}}</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\">{{item?.value}}</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\n<!-- skeleton loaders -->\n\n<ng-container>\n <div class=\"w-full metrics-web\" *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</ng-container>",
6494
6538
  styles: [".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)}.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}.flex-container{display:flex}.top-container{overflow-x:auto;width:100%}.flex-item{flex:0 0 auto;white-space:nowrap;min-width:200px}@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}}"]
6495
6539
  }] }
6496
6540
  ];
@@ -6618,8 +6662,23 @@
6618
6662
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
6619
6663
  */
6620
6664
  var CalenderComponent = /** @class */ (function () {
6621
- function CalenderComponent() {
6622
- this.toDay = new Date();
6665
+ function CalenderComponent(datePipe, insightSvc) {
6666
+ this.datePipe = datePipe;
6667
+ this.insightSvc = insightSvc;
6668
+ this.fetchDataFromApi = false;
6669
+ this.showHeader = false;
6670
+ this.defaultDays = 3;
6671
+ this.fullCalendor = false;
6672
+ this.days = [];
6673
+ this.trainings = {};
6674
+ this.isDataLoading = false;
6675
+ this.currentDate = new Date();
6676
+ this.allMonths = ["January", "February", "March",
6677
+ "April", "May", "June", "July",
6678
+ "August", "September", "October",
6679
+ "November", "December"
6680
+ ];
6681
+ this.monthsDropdown = [];
6623
6682
  }
6624
6683
  /**
6625
6684
  * @return {?}
@@ -6628,18 +6687,260 @@
6628
6687
  * @return {?}
6629
6688
  */
6630
6689
  function () {
6631
- console.log("data ===== ", this.objectData);
6632
- console.log("toDay ", this.toDay);
6690
+ this.currentMonthAndYear = this.datePipe.transform(this.currentDate, 'MMMM y');
6691
+ this.selectedMonth = this.datePipe.transform(this.currentDate, 'LLLL yyyy');
6692
+ if (this.fullCalendor) {
6693
+ console.log("this.currentDate ", this.currentDate);
6694
+ this.days = this.getDaysInMonth(this.currentDate.getFullYear(), this.currentDate.getMonth());
6695
+ this.getMonthsDropdownData();
6696
+ }
6697
+ if (!this.fullCalendor) {
6698
+ this.days = this.getDays(this.currentDate, +this.defaultDays);
6699
+ }
6700
+ this.startDate = this.days[0];
6701
+ this.endDate = this.days[this.days.length - 1];
6702
+ if (this.fetchDataFromApi) {
6703
+ this.isDataLoading = true;
6704
+ this.getInsiteData();
6705
+ }
6706
+ };
6707
+ /**
6708
+ * @return {?}
6709
+ */
6710
+ CalenderComponent.prototype.getInsiteData = /**
6711
+ * @return {?}
6712
+ */
6713
+ function () {
6714
+ var _this = this;
6715
+ /** @type {?} */
6716
+ var request = {
6717
+ "locale": [
6718
+ "en"
6719
+ ],
6720
+ "query": "",
6721
+ "request": {
6722
+ "query": "",
6723
+ "filters": {
6724
+ "category": [
6725
+ "Calendar"
6726
+ ],
6727
+ "status": [
6728
+ "Live",
6729
+ "Retired"
6730
+ ],
6731
+ "contentType": "Event",
6732
+ "startDate": {
6733
+ ">=": this.startDate,
6734
+ "<=": this.endDate
6735
+ // ">=": "2024-01-15",
6736
+ // "<": "2024-05-31"
6737
+ },
6738
+ "channel": [this.providerId]
6739
+ },
6740
+ "sort_by": {
6741
+ "lastUpdatedOn": "desc"
6742
+ }
6743
+ }
6744
+ };
6745
+ this.insightSvc.fetchTrainingDetails(request).subscribe((/**
6746
+ * @param {?} res
6747
+ * @return {?}
6748
+ */
6749
+ function (res) {
6750
+ if (res && res.result && res.result.Event) {
6751
+ res.result.Event.forEach((/**
6752
+ * @param {?} resp
6753
+ * @return {?}
6754
+ */
6755
+ function (resp) {
6756
+ if (_this.trainings[resp.startDate]) {
6757
+ /** @type {?} */
6758
+ var prevData = _this.trainings[resp.startDate];
6759
+ /** @type {?} */
6760
+ var location_1 = resp.eventType;
6761
+ if (resp.venue && location_1 !== "Online") {
6762
+ /** @type {?} */
6763
+ var jsonResp = JSON.parse(resp.venue);
6764
+ location_1 = jsonResp['address'];
6765
+ }
6766
+ /** @type {?} */
6767
+ var formatObject = {
6768
+ location: location_1,
6769
+ startTime: _this.convertTo12HourFormat(resp.startTime),
6770
+ endTime: _this.convertTo12HourFormat(resp.endTime),
6771
+ title: resp.name,
6772
+ startDate: _this.formatDate(resp.startDate),
6773
+ endDate: _this.formatDate(resp.endDate),
6774
+ registrationLink: resp.registrationLink,
6775
+ };
6776
+ prevData.push(formatObject);
6777
+ _this.trainings[resp.startDate] = prevData;
6778
+ }
6779
+ }));
6780
+ }
6781
+ _this.isDataLoading = false;
6782
+ }));
6783
+ };
6784
+ /**
6785
+ * @param {?} obj
6786
+ * @return {?}
6787
+ */
6788
+ CalenderComponent.prototype.getKeys = /**
6789
+ * @param {?} obj
6790
+ * @return {?}
6791
+ */
6792
+ function (obj) {
6793
+ return Object.keys(obj);
6794
+ };
6795
+ /**
6796
+ * @param {?} date
6797
+ * @return {?}
6798
+ */
6799
+ CalenderComponent.prototype.formatDate = /**
6800
+ * @param {?} date
6801
+ * @return {?}
6802
+ */
6803
+ function (date) {
6804
+ /** @type {?} */
6805
+ var formatDate = new Date(date);
6806
+ return this.datePipe.transform(formatDate, 'E, dd LLL');
6807
+ };
6808
+ /**
6809
+ * @param {?} timeString
6810
+ * @return {?}
6811
+ */
6812
+ CalenderComponent.prototype.convertTo12HourFormat = /**
6813
+ * @param {?} timeString
6814
+ * @return {?}
6815
+ */
6816
+ function (timeString) {
6817
+ /** @type {?} */
6818
+ var time = timeString.split(":");
6819
+ /** @type {?} */
6820
+ var hours = +time[0];
6821
+ /** @type {?} */
6822
+ var minutes = +time[1];
6823
+ /** @type {?} */
6824
+ var ampm = hours >= 12 ? 'PM' : 'AM';
6825
+ hours = hours % 12;
6826
+ hours = hours ? hours : 12;
6827
+ /** @type {?} */
6828
+ var strHours = hours < 10 ? '0' + hours : hours.toString();
6829
+ /** @type {?} */
6830
+ var strMinutes = minutes < 10 ? '0' + minutes : minutes.toString();
6831
+ return strHours + ":" + strMinutes + ": " + ampm;
6832
+ };
6833
+ /**
6834
+ * @param {?} cDate
6835
+ * @param {?} counter
6836
+ * @return {?}
6837
+ */
6838
+ CalenderComponent.prototype.getDays = /**
6839
+ * @param {?} cDate
6840
+ * @param {?} counter
6841
+ * @return {?}
6842
+ */
6843
+ function (cDate, counter) {
6844
+ /** @type {?} */
6845
+ var days = [];
6846
+ /** @type {?} */
6847
+ var initDate = new Date(cDate);
6848
+ initDate = this.datePipe.transform(initDate, 'y-MM-dd');
6849
+ days.push(initDate);
6850
+ this.trainings[initDate] = [];
6851
+ while (counter > 0) {
6852
+ /** @type {?} */
6853
+ var myDate = new Date(cDate);
6854
+ myDate = myDate.setDate(myDate.getDate() + 1);
6855
+ cDate = myDate;
6856
+ myDate = this.datePipe.transform(myDate, 'y-MM-dd');
6857
+ days.push(myDate);
6858
+ this.trainings[myDate] = [];
6859
+ counter = counter - 1;
6860
+ }
6861
+ return days;
6862
+ };
6863
+ /**
6864
+ * @param {?} year
6865
+ * @param {?} month
6866
+ * @return {?}
6867
+ */
6868
+ CalenderComponent.prototype.getDaysInMonth = /**
6869
+ * @param {?} year
6870
+ * @param {?} month
6871
+ * @return {?}
6872
+ */
6873
+ function (year, month) {
6874
+ /** @type {?} */
6875
+ var date = new Date(year, month, 1);
6876
+ /** @type {?} */
6877
+ var days = [];
6878
+ this.trainings = {};
6879
+ while (date.getMonth() === month) {
6880
+ /** @type {?} */
6881
+ var myDate = new Date(date);
6882
+ myDate = this.datePipe.transform(myDate, 'y-MM-dd');
6883
+ days.push(myDate);
6884
+ this.trainings[myDate] = [];
6885
+ date.setDate(date.getDate() + 1);
6886
+ }
6887
+ return days;
6888
+ };
6889
+ /**
6890
+ * @return {?}
6891
+ */
6892
+ CalenderComponent.prototype.getMonthsDropdownData = /**
6893
+ * @return {?}
6894
+ */
6895
+ function () {
6896
+ var _this = this;
6897
+ this.allMonths.forEach((/**
6898
+ * @param {?} month
6899
+ * @return {?}
6900
+ */
6901
+ function (month) {
6902
+ _this.monthsDropdown.push(month + " " + _this.currentDate.getFullYear());
6903
+ }));
6904
+ };
6905
+ /**
6906
+ * @param {?} event
6907
+ * @return {?}
6908
+ */
6909
+ CalenderComponent.prototype.selectMonth = /**
6910
+ * @param {?} event
6911
+ * @return {?}
6912
+ */
6913
+ function (event) {
6914
+ /** @type {?} */
6915
+ var selectedMonth = new Date(event);
6916
+ this.currentDate = selectedMonth;
6917
+ this.days = [];
6918
+ this.days = this.getDaysInMonth(this.currentDate.getFullYear(), this.currentDate.getMonth());
6919
+ this.startDate = this.days[0];
6920
+ this.endDate = this.days[this.days.length - 1];
6921
+ this.isDataLoading = true;
6922
+ this.getInsiteData();
6633
6923
  };
6634
6924
  CalenderComponent.decorators = [
6635
6925
  { type: core.Component, args: [{
6636
6926
  selector: 'sb-uic-calender',
6637
- template: "<div class=\"w-full p-3 event-day my-3\" \n *ngFor=\"let obj of objectData?.training\"\n [style.backgroundColor]=\"obj?.backgroundColor\" \n [style.borderColor]=\"objectData?.activeColor\">\n <div class=\"flex item-top gap-8 {{ obj.events.length ? '' : 'aliginCenter'}}\">\n <div class=\"event-date\">\n <div class=\"currentDay\">{{obj.eventDate}}</div>\n </div>\n <div class=\"details w-full\" *ngIf=\"obj.events.length\">\n <div class=\"flex p-4 item-center events-list mb-{{obj.events.length === (i+1) ? '0' : '2'}} gap-20\" [style.backgroundColor]=\"event?.backgroundColor\"\n *ngFor=\"let event of obj.events; let i = index\" >\n <div>\n <div class=\"flex flex-row item-center gap-10 pb-2\">\n <div class=\"flex item-center gap-2 row1 col1\">\n <div><mat-icon class=\"icon-tour\">schedule</mat-icon> </div>\n <div>{{event.startTime}} to {{event.endTime}}</div>\n </div>\n <div class=\"flex item-center col1\">{{event.title}}</div>\n </div>\n <div class=\"flex flex-row item-center gap-10\">\n <div class=\"flex item-center gap-2 row1 col1\" *ngIf=\"event.startDate && event.endDate\">\n <div><mat-icon class=\"icon-tour\">date_range</mat-icon> </div>\n <div>{{event.startDate}} - {{event.endDate}}</div>\n </div>\n <div class=\"flex item-center gap-2 col1\">\n <div><mat-icon class=\"icon-tour\">location_on</mat-icon> </div>\n <div class=\"flex item-center\">{{event.location}}</div>\n </div>\n </div>\n </div>\n <div class=\"visit-link\">\n Visit\n </div>\n </div>\n </div>\n <div class=\"details w-full\" *ngIf=\"!obj.events.length\">\n No trainings.\n </div>\n </div>\n</div>",
6638
- styles: [".event-day{border:1px solid #c3c3c3;border-radius:15px}.event-date{font-family:Lato;font-size:14px;font-weight:700;line-height:16.8px;text-align:center;width:10%}.events-list{border:1px solid #c3c3c3;border-radius:15px;justify-content:space-between;align-items:center;font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px}.row1{width:235px}.aliginCenter,.col1{align-items:center}.visit-link{opacity:.7;cursor:pointer}.currentDay{padding:5px;background:#1d8923;border-radius:20px;color:#fff}"]
6927
+ template: "<div class=\"calendar-header flex flex-row c-padding center gap-2\" *ngIf=\"showHeader\">\n <div class=\"pt-3\">{{ objectData?.title }}:</div>\n <div class=\"choose-month\">\n <mat-form-field class=\"custom-month\">\n <mat-select matNativeControl panelClass=\"custom-select\" [ngModel]=\"selectedMonth\" (ngModelChange)=\"selectMonth($event)\" class=\"month-select\">\n <span *ngFor=\"let month of monthsDropdown\">\n <mat-option [value]=\"month\">{{month}}</mat-option>\n </span>\n </mat-select>\n </mat-form-field>\n </div>\n</div>\n<div *ngIf=\"layoutType==='grid'\">\n <div *ngFor=\"let obj of getKeys(trainings); let i = index\">\n <sb-uic-calender-day [day]=\"trainings[obj]\"\n [layoutType]=\"layoutType\"\n [objectData]=\"objectData\"\n [dataLoading]=\"isDataLoading\"\n [eventDate]=\"obj\"\n [rowId]=\"i\">\n </sb-uic-calender-day>\n </div> \n</div>\n<div *ngIf=\"layoutType==='row'\">\n <div *ngFor=\"let obj of getKeys(trainings); let j = index\">\n <sb-uic-calender-day [day]=\"trainings[obj]\"\n [layoutType]=\"layoutType\"\n [objectData]=\"objectData\"\n [dataLoading]=\"isDataLoading\"\n [eventDate]=\"obj\"\n [rowId]=\"j\">\n </sb-uic-calender-day>\n </div>\n</div>",
6928
+ styles: [".calendar-header{font-family:Montserrat;font-size:16px;font-weight:600;line-height:19.5px;text-align:left}.c-padding{padding:0}.center{align-items:center}::ng-deep .custom-month .mat-form-field-wrapper{padding-bottom:0!important;width:110px}::ng-deep .custom-month .mat-form-field.mat-focused.mat-primary .mat-select-arrow{color:#000!important}::ng-deep .custom-month .mat-select-value{width:89%}::ng-deep .custom-month .mat-select-value-text{font-weight:600}@media screen and (max-width:768px){.c-padding{padding:0 1.25rem 1rem}.calendar-header{font-size:15px}}"]
6639
6929
  }] }
6640
6930
  ];
6931
+ /** @nocollapse */
6932
+ CalenderComponent.ctorParameters = function () { return [
6933
+ { type: common.DatePipe },
6934
+ { type: InsiteDataService }
6935
+ ]; };
6641
6936
  CalenderComponent.propDecorators = {
6642
- objectData: [{ type: core.Input }]
6937
+ objectData: [{ type: core.Input }],
6938
+ layoutType: [{ type: core.Input }],
6939
+ fetchDataFromApi: [{ type: core.Input }],
6940
+ showHeader: [{ type: core.Input }],
6941
+ defaultDays: [{ type: core.Input }],
6942
+ providerId: [{ type: core.Input }],
6943
+ fullCalendor: [{ type: core.Input }]
6643
6944
  };
6644
6945
  return CalenderComponent;
6645
6946
  }());
@@ -6647,7 +6948,142 @@
6647
6948
  /** @type {?} */
6648
6949
  CalenderComponent.prototype.objectData;
6649
6950
  /** @type {?} */
6650
- CalenderComponent.prototype.toDay;
6951
+ CalenderComponent.prototype.layoutType;
6952
+ /** @type {?} */
6953
+ CalenderComponent.prototype.fetchDataFromApi;
6954
+ /** @type {?} */
6955
+ CalenderComponent.prototype.showHeader;
6956
+ /** @type {?} */
6957
+ CalenderComponent.prototype.defaultDays;
6958
+ /** @type {?} */
6959
+ CalenderComponent.prototype.providerId;
6960
+ /** @type {?} */
6961
+ CalenderComponent.prototype.fullCalendor;
6962
+ /** @type {?} */
6963
+ CalenderComponent.prototype.days;
6964
+ /** @type {?} */
6965
+ CalenderComponent.prototype.trainings;
6966
+ /** @type {?} */
6967
+ CalenderComponent.prototype.currentMonthAndYear;
6968
+ /** @type {?} */
6969
+ CalenderComponent.prototype.isDataLoading;
6970
+ /** @type {?} */
6971
+ CalenderComponent.prototype.currentDate;
6972
+ /** @type {?} */
6973
+ CalenderComponent.prototype.endDate;
6974
+ /** @type {?} */
6975
+ CalenderComponent.prototype.startDate;
6976
+ /** @type {?} */
6977
+ CalenderComponent.prototype.allMonths;
6978
+ /** @type {?} */
6979
+ CalenderComponent.prototype.monthsDropdown;
6980
+ /** @type {?} */
6981
+ CalenderComponent.prototype.selectedMonth;
6982
+ /**
6983
+ * @type {?}
6984
+ * @private
6985
+ */
6986
+ CalenderComponent.prototype.datePipe;
6987
+ /** @type {?} */
6988
+ CalenderComponent.prototype.insightSvc;
6989
+ }
6990
+
6991
+ /**
6992
+ * @fileoverview added by tsickle
6993
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
6994
+ */
6995
+ var CalenderDayComponent = /** @class */ (function () {
6996
+ function CalenderDayComponent(datePipe) {
6997
+ this.datePipe = datePipe;
6998
+ this.webDisplayDate = "";
6999
+ this.mobileDisplayDate = "";
7000
+ this.currentDate = new Date();
7001
+ }
7002
+ /**
7003
+ * @return {?}
7004
+ */
7005
+ CalenderDayComponent.prototype.ngOnInit = /**
7006
+ * @return {?}
7007
+ */
7008
+ function () {
7009
+ this.currentDate = this.datePipe.transform(this.currentDate, 'y-MM-dd');
7010
+ };
7011
+ /**
7012
+ * @param {?} link
7013
+ * @return {?}
7014
+ */
7015
+ CalenderDayComponent.prototype.openLink = /**
7016
+ * @param {?} link
7017
+ * @return {?}
7018
+ */
7019
+ function (link) {
7020
+ window.open(link, "_blank");
7021
+ };
7022
+ /**
7023
+ * @param {?} date
7024
+ * @param {?} type
7025
+ * @return {?}
7026
+ */
7027
+ CalenderDayComponent.prototype.formatDate = /**
7028
+ * @param {?} date
7029
+ * @param {?} type
7030
+ * @return {?}
7031
+ */
7032
+ function (date, type) {
7033
+ /** @type {?} */
7034
+ var fDate = new Date(date);
7035
+ if (type === 'web') {
7036
+ return this.datePipe.transform(fDate, 'E, dd LLL');
7037
+ }
7038
+ if (type === 'mob') {
7039
+ return this.datePipe.transform(fDate, 'E dd LLL');
7040
+ }
7041
+ };
7042
+ CalenderDayComponent.decorators = [
7043
+ { type: core.Component, args: [{
7044
+ selector: 'sb-uic-calender-day',
7045
+ template: "<div *ngIf=\"layoutType==='grid' && !dataLoading\">\n <div class=\"p-3 event-day my-3\"\n [style.backgroundColor]=\"objectData?.webBackgroundColor\"\n [style.borderColor]=\"currentDate === eventDate ? objectData?.activeBackgroudColor: ''\">\n \n <div class=\"flex item-top gap-8 {{ day.length ? '' : 'aliginCenter'}}\">\n <div class=\"event-date\">\n <div class=\"currentDay\"\n [style.backgroundColor]=\"currentDate === eventDate ? objectData?.activeBackgroudColor: ''\"\n [style.color]=\"currentDate === eventDate ? objectData?.activeColor: ''\">\n {{formatDate(eventDate, 'web')}}\n </div>\n </div>\n <div class=\"details w-full\" *ngIf=\"day.length\">\n <div class=\"flex p-4 item-center events-list mb-{{day.length === (i+1) ? '0' : '2'}} gap-20\" [style.backgroundColor]=\"objectData?.eventBackgroundColor\"\n *ngFor=\"let event of day; let i = index\" >\n <div>\n <div class=\"flex flex-row item-center gap-10 pb-2\">\n <div class=\"flex item-center gap-1 row1 col1\">\n <div><mat-icon class=\"icon-web\">schedule</mat-icon> </div>\n <div>{{event.startTime}} to {{event.endTime}}</div>\n </div>\n <div class=\"flex item-center col1\">{{event.title}}</div>\n </div>\n <div class=\"flex flex-row item-center gap-10\">\n <div class=\"flex item-center gap-1 row1 col1\" *ngIf=\"event.startDate && event.endDate && event.startDate !== event.endDate\">\n <div><mat-icon class=\"icon-web\">date_range</mat-icon> </div>\n <div class=\"upcase\">{{event.startDate}} - {{event.endDate}}</div>\n </div>\n <div class=\"flex item-center col1\">\n <div><mat-icon class=\"icon-web\">location_on</mat-icon> </div>\n <div class=\"flex item-center\">{{event.location}}</div>\n </div>\n </div>\n </div>\n <div class=\"visit-link flex gap-2\"\n *ngIf=\"event?.registrationLink\">\n <div (click)=\"openLink(event?.registrationLink)\">Visit</div>\n <div (click)=\"openLink(event?.registrationLink)\"><mat-icon class=\"visit-icon\">open_in_new</mat-icon> </div>\n </div>\n </div>\n </div>\n <div class=\"details w-full\" *ngIf=\"!day.length\">\n No trainings.\n </div>\n </div>\n </div>\n</div>\n\n<div *ngIf=\"layoutType==='row' && !dataLoading\">\n <div class=\"p-5 mb-{{day?.length === (rowId+1) ? '0' : '3'}}\"\n [style.backgroundColor]=\"objectData?.mobileBackground\">\n <div class=\"flex item-center gap-4\">\n <div class=\"event-date\">\n <div class=\"flex flex-col\">\n <div> {{formatDate(eventDate, 'mob').split(' ')[0]}}</div>\n <div class=\"mob-currentDay\"\n [style.backgroundColor]=\"currentDate === eventDate ? objectData?.activeBackgroudColor: ''\"\n [style.color]=\"currentDate === eventDate ? objectData?.activeColor: ''\">\n {{formatDate(eventDate, 'mob').split(' ')[1]}}\n </div>\n <div> {{formatDate(eventDate, 'mob').split(' ')[2]}}</div>\n </div>\n </div>\n <div class=\"details w-full\" *ngIf=\"day.length\">\n <div class=\"flex flex-col mob-events-list p-3 mb-{{day.length === (i+1) ? '0' : '2'}}\"\n *ngFor=\"let event of day; let i = index\" [style.backgroundColor]=\"objectData?.eventBackgroundColor\">\n <div>\n <div class=\"flex pb-2\">{{event.title}}</div>\n <div class=\"flex pb-1\">\n <div><mat-icon class=\"mob-icon\">schedule</mat-icon> </div>\n <div>{{event.startTime}} to {{event.endTime}}</div>\n </div>\n <div class=\"flex pb-1\" *ngIf=\"event.startDate && event.endDate && event.startDate !== event.endDate\">\n <div><mat-icon class=\"mob-icon\">date_range</mat-icon> </div>\n <div class=\"upcase\">{{event.startDate}} - {{event.endDate}}</div>\n </div>\n <div class=\"flex\">\n <div><mat-icon class=\"mob-icon\">location_on</mat-icon> </div>\n <div class=\"flex item-center\">{{event.location}}</div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"details w-full flex no-data\" *ngIf=\"!day.length\">\n No trainings.\n </div>\n </div> \n </div> \n</div>\n\n<!-- skeleton loaders -->\n<div *ngIf=\"dataLoading\">\n <div *ngIf=\"layoutType==='grid'\">\n <div class=\"hidden md:block\">\n <div class=\"p-3 event-day my-3\"\n [style.backgroundColor]=\"'#FFF'\">\n <div class=\"flex item-top gap-8\">\n <div class=\"event-date\">\n <div class=\"currentDay\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'90px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader> \n </div>\n </div>\n <div class=\"details w-full\">\n <div class=\"flex p-4 item-center events-list mb-2 gap-20\">\n <div>\n <div class=\"flex flex-row item-center gap-20 pb-2\">\n <div class=\"flex item-center gap-2 row1 col1\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'50px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\n </div>\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'250px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n <div class=\"flex item-center col1\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'250px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader> </div>\n </div>\n <div class=\"flex flex-row item-center gap-20 pb-2\">\n <div class=\"flex item-center gap-2 row1 col1\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'50px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\n </div>\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'250px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n <div class=\"flex item-center col1\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'250px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader> </div>\n </div>\n </div>\n <div class=\"visit-link flex gap-2\">\n <div><sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'200px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader> </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div *ngIf=\"layoutType==='row'\">\n <div class=\"block md:hidden\">\n <div class=\"p-5\" \n [style.backgroundColor]=\"'#FFFFFF'\">\n <div class=\"flex item-center gap-4\">\n <div class=\"event-date\">\n <div class=\"flex flex-col\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'30px'\"\n [height]=\"'90px'\"></sb-uic-skeleton-loader> \n </div>\n </div>\n <div class=\"details w-full\">\n <div class=\"flex flex-col mob-events-list p-3 mb-2\">\n <div>\n <div class=\"flex pb-2\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'265px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader> \n </div>\n <div class=\"flex pb-1 gap-2\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'30px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\n </div>\n <div><sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'230px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n <div class=\"flex pb-1 gap-2\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'30px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\n </div>\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'230px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n <div class=\"flex gap-2\">\n <div><sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'30px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"flex item-center\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'230px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader> \n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div> \n</div>",
7046
+ styles: [".event-day{border:1px solid #c3c3c3;border-radius:15px}.event-date{font-family:Lato;font-size:14px;font-weight:700;line-height:16.8px;text-align:center;width:10%;text-transform:uppercase}.events-list{border:1px solid #c3c3c3;border-radius:15px;justify-content:space-between;align-items:center;font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px}.row1{width:235px}.icon-web{font-size:17px;height:17px}.upcase{text-transform:uppercase}.aliginCenter,.col1{align-items:center}.visit-link{cursor:pointer;align-items:center;justify-content:center}.visit-icon{font-size:17px;height:17px;color:#1b4ca1}.currentDay{padding:5px;border-radius:20px}.mob-currentDay{padding:8px;border-radius:20px}.mob-events-list{border:1px solid #e8e6e5;border-radius:10px;justify-content:space-between;font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px}.mob-icon{font-size:17px;height:17px}.no-data{display:flex;align-items:center}"]
7047
+ }] }
7048
+ ];
7049
+ /** @nocollapse */
7050
+ CalenderDayComponent.ctorParameters = function () { return [
7051
+ { type: common.DatePipe }
7052
+ ]; };
7053
+ CalenderDayComponent.propDecorators = {
7054
+ objectData: [{ type: core.Input }],
7055
+ layoutType: [{ type: core.Input }],
7056
+ day: [{ type: core.Input }],
7057
+ dataLoading: [{ type: core.Input }],
7058
+ rowId: [{ type: core.Input }],
7059
+ eventDate: [{ type: core.Input }]
7060
+ };
7061
+ return CalenderDayComponent;
7062
+ }());
7063
+ if (false) {
7064
+ /** @type {?} */
7065
+ CalenderDayComponent.prototype.objectData;
7066
+ /** @type {?} */
7067
+ CalenderDayComponent.prototype.layoutType;
7068
+ /** @type {?} */
7069
+ CalenderDayComponent.prototype.day;
7070
+ /** @type {?} */
7071
+ CalenderDayComponent.prototype.dataLoading;
7072
+ /** @type {?} */
7073
+ CalenderDayComponent.prototype.rowId;
7074
+ /** @type {?} */
7075
+ CalenderDayComponent.prototype.eventDate;
7076
+ /** @type {?} */
7077
+ CalenderDayComponent.prototype.webDisplayDate;
7078
+ /** @type {?} */
7079
+ CalenderDayComponent.prototype.mobileDisplayDate;
7080
+ /** @type {?} */
7081
+ CalenderDayComponent.prototype.currentDate;
7082
+ /**
7083
+ * @type {?}
7084
+ * @private
7085
+ */
7086
+ CalenderDayComponent.prototype.datePipe;
6651
7087
  }
6652
7088
 
6653
7089
  /**
@@ -6662,9 +7098,15 @@
6662
7098
  imports: [
6663
7099
  common.CommonModule,
6664
7100
  material.MatIconModule,
7101
+ forms.FormsModule,
7102
+ forms.ReactiveFormsModule,
7103
+ material.MatSelectModule,
7104
+ SkeletonLoaderLibModule
6665
7105
  ],
6666
- declarations: [CalenderComponent],
7106
+ declarations: [CalenderComponent, CalenderDayComponent],
6667
7107
  exports: [CalenderComponent],
7108
+ schemas: [core.CUSTOM_ELEMENTS_SCHEMA],
7109
+ providers: [common.DatePipe, InsiteDataService],
6668
7110
  },] }
6669
7111
  ];
6670
7112
  return CalenderModule;
@@ -6910,30 +7352,33 @@
6910
7352
  if (this.widgetData.loader && this.widgetData.strips.length) {
6911
7353
  this.showParentLoader = true;
6912
7354
  }
6913
- try {
6914
- // Fetch the data
6915
- for (var _b = __values(this.widgetData.strips), _c = _b.next(); !_c.done; _c = _b.next()) {
6916
- var strip = _c.value;
6917
- this.processStrip(strip, [], 'fetching', false, null);
6918
- if (strip.dataType === 'in-hand' && this.widgetData[strip.dataKey]) {
6919
- this.processStrip(strip, this.commonMethodsSvc.transformContentsToWidgets(this.widgetData[strip.dataKey], strip), 'done', true, strip.viewMoreUrl || '');
6920
- }
6921
- else {
6922
- if (this.checkForEmptyWidget(strip)) {
6923
- // this.fetchStripFromRequestData(strip, false);
7355
+ // null check if in case no strips key in config
7356
+ if (this.widgetData && this.widgetData.strips) {
7357
+ try {
7358
+ // Fetch the data
7359
+ for (var _b = __values(this.widgetData.strips), _c = _b.next(); !_c.done; _c = _b.next()) {
7360
+ var strip = _c.value;
7361
+ this.processStrip(strip, [], 'fetching', false, null);
7362
+ if (strip.dataType === 'in-hand' && this.widgetData[strip.dataKey]) {
7363
+ this.processStrip(strip, this.commonMethodsSvc.transformContentsToWidgets(this.widgetData[strip.dataKey], strip), 'done', true, strip.viewMoreUrl || '');
6924
7364
  }
6925
7365
  else {
6926
- this.processStrip(strip, [], 'done', true, null);
7366
+ if (this.checkForEmptyWidget(strip)) {
7367
+ // this.fetchStripFromRequestData(strip, false);
7368
+ }
7369
+ else {
7370
+ this.processStrip(strip, [], 'done', true, null);
7371
+ }
6927
7372
  }
6928
7373
  }
6929
7374
  }
6930
- }
6931
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
6932
- finally {
6933
- try {
6934
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7375
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
7376
+ finally {
7377
+ try {
7378
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
7379
+ }
7380
+ finally { if (e_1) throw e_1.error; }
6935
7381
  }
6936
- finally { if (e_1) throw e_1.error; }
6937
7382
  }
6938
7383
  // Subscription for changes
6939
7384
  /** @type {?} */
@@ -7720,7 +8165,7 @@
7720
8165
  CardsComponent.decorators = [
7721
8166
  { type: core.Component, args: [{
7722
8167
  selector: 'sb-uic-cards',
7723
- template: "<div class=\"widget-card-content-new\">\n <ng-container *ngIf=\"widgetData && (((widgetData?.deletedMode || 'none') === 'hide' && !!!isLiveOrMarkForDeletion)\n ? false\n : !((widgetData?.intranetMode || 'none') === 'hide' && !!showIntranetContent))\"\n [ngSwitch]=\"( (widgetData && widgetData?.cardSubType) || 'cardPortraitLib')\">\n <ng-container *ngSwitchDefault [ngTemplateOutlet]=\"cardPortraitLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'user-card'\" [ngTemplateOutlet]=\"cardUser\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-lib-skeleton'\" [ngTemplateOutlet]=\"cardPortraitLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-lib'\" [ngTemplateOutlet]=\"cardPortraitLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-landscape-lib-skeleton'\" [ngTemplateOutlet]=\"cardLandscapeLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-landscape-lib'\" [ngTemplateOutlet]=\"cardLandscapeLib\"></ng-container>\n </ng-container>\n</div>\n\n<ng-template #cardPortraitLibSkeleton>\n <sb-uic-card-portrait [widgetData]=\"widgetData\" [isCardLoading]=\"true\"></sb-uic-card-portrait>\n</ng-template>\n<ng-template #cardPortraitLib>\n <sb-uic-card-portrait [widgetData]=\"widgetData\" [isCardLoading]=\"false\"></sb-uic-card-portrait>\n</ng-template>\n<ng-template #cardLandscapeLibSkeleton>\n <sb-uic-card-landscape [widgetData]=\"widgetData\" [isCardLoading]=\"true\"></sb-uic-card-landscape>\n</ng-template>\n<ng-template #cardLandscapeLib>\n <sb-uic-card-landscape [widgetData]=\"widgetData\" [isCardLoading]=\"false\"></sb-uic-card-landscape>\n</ng-template>\n\n\n <ng-template #cardUser>\n <sb-uic-card-user [widgetData]=\"widgetData\"></sb-uic-card-user>\n </ng-template>\n",
8168
+ template: "<div class=\"widget-card-content-new\">\n <ng-container *ngIf=\"widgetData && (((widgetData?.deletedMode || 'none') === 'hide' && !!!isLiveOrMarkForDeletion)\n ? false\n : !((widgetData?.intranetMode || 'none') === 'hide' && !!showIntranetContent))\"\n [ngSwitch]=\"( (widgetData && widgetData?.cardSubType) || 'cardPortraitLib')\">\n <ng-container *ngSwitchDefault [ngTemplateOutlet]=\"cardPortraitLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'user-card'\" [ngTemplateOutlet]=\"cardUser\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-lib-skeleton'\" [ngTemplateOutlet]=\"cardPortraitLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-lib'\" [ngTemplateOutlet]=\"cardPortraitLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-landscape-lib-skeleton'\" [ngTemplateOutlet]=\"cardLandscapeLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-landscape-lib'\" [ngTemplateOutlet]=\"cardLandscapeLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-lib-skeleton'\" [ngTemplateOutlet]=\"cardWideLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-lib'\" [ngTemplateOutlet]=\"cardWideLib\"></ng-container>\n </ng-container>\n</div>\n\n<ng-template #cardPortraitLibSkeleton>\n <sb-uic-card-portrait [widgetData]=\"widgetData\" [isCardLoading]=\"true\"></sb-uic-card-portrait>\n</ng-template>\n<ng-template #cardPortraitLib>\n <sb-uic-card-portrait (contentData)=\"getRedirectUrlData($event)\" [widgetData]=\"widgetData\" [isCardLoading]=\"false\"></sb-uic-card-portrait>\n</ng-template>\n<ng-template #cardLandscapeLibSkeleton>\n <sb-uic-card-landscape [widgetData]=\"widgetData\" [isCardLoading]=\"true\"></sb-uic-card-landscape>\n</ng-template>\n<ng-template #cardLandscapeLib>\n <sb-uic-card-landscape [widgetData]=\"widgetData\" [isCardLoading]=\"false\"></sb-uic-card-landscape>\n</ng-template>\n\n<ng-template #cardWideLib>\n <sb-uic-card-wide [widgetData]=\"widgetData\"></sb-uic-card-wide>\n</ng-template>\n<ng-template #cardWideLibSkeleton>\n <sb-uic-card-wide [widgetData]=\"widgetData\"></sb-uic-card-wide>\n</ng-template>\n\n <ng-template #cardUser>\n <sb-uic-card-user [widgetData]=\"widgetData\"></sb-uic-card-user>\n </ng-template>\n",
7724
8169
  styles: [""]
7725
8170
  }] }
7726
8171
  ];
@@ -7840,6 +8285,10 @@
7840
8285
  this.sourceLogos = instanceConfig.sources;
7841
8286
  this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '';
7842
8287
  }
8288
+ else {
8289
+ this.defaultThumbnail = '/assets/instances/eagle/app_logos/default.png';
8290
+ this.defaultSLogo = '/assets/instances/eagle/app_logos/KarmayogiBharat_Logo.svg';
8291
+ }
7843
8292
  };
7844
8293
  /**
7845
8294
  * @return {?}
@@ -8698,24 +9147,188 @@
8698
9147
  * @fileoverview added by tsickle
8699
9148
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8700
9149
  */
8701
- var CardsModule = /** @class */ (function () {
8702
- function CardsModule() {
8703
- }
8704
- CardsModule.decorators = [
8705
- { type: core.NgModule, args: [{
8706
- declarations: [CardResourceComponent, CardsComponent, CardPortraitComponent, CardUserComponent, CardLandscapeComponent],
8707
- imports: [
8708
- common.CommonModule,
8709
- material.MatCardModule,
8710
- material.MatButtonModule,
8711
- material.MatIconModule,
8712
- material.MatTooltipModule,
8713
- router.RouterModule,
8714
- PipePublicURLModule,
8715
- DisplayContentTypeLibModule,
8716
- DefaultThumbnailModule,
8717
- PipeDurationTransformModule,
8718
- SkeletonLoaderLibModule
9150
+ var CardWideComponent = /** @class */ (function () {
9151
+ function CardWideComponent(snackBar, events, translate, langtranslations, configSvc) {
9152
+ var _this = this;
9153
+ this.snackBar = snackBar;
9154
+ this.events = events;
9155
+ this.translate = translate;
9156
+ this.langtranslations = langtranslations;
9157
+ this.configSvc = configSvc;
9158
+ this.isCardLoading = false;
9159
+ this.contentData = new core.EventEmitter();
9160
+ this.isCardFlipped = false;
9161
+ this.showFlip = false;
9162
+ this.widgetType = 'df';
9163
+ this.widgetSubType = 'sdf';
9164
+ this.langtranslations.languageSelectedObservable.subscribe((/**
9165
+ * @return {?}
9166
+ */
9167
+ function () {
9168
+ if (localStorage.getItem('websiteLanguage')) {
9169
+ _this.translate.setDefaultLang('en');
9170
+ /** @type {?} */
9171
+ var lang = (/** @type {?} */ (localStorage.getItem('websiteLanguage')));
9172
+ _this.translate.use(lang);
9173
+ }
9174
+ }));
9175
+ }
9176
+ /**
9177
+ * @return {?}
9178
+ */
9179
+ CardWideComponent.prototype.ngOnInit = /**
9180
+ * @return {?}
9181
+ */
9182
+ function () {
9183
+ /** @type {?} */
9184
+ var instanceConfig = this.configSvc.instanceConfig;
9185
+ if (instanceConfig) {
9186
+ this.defaultThumbnail = instanceConfig.logos.defaultContent || '';
9187
+ this.sourceLogos = instanceConfig.sources;
9188
+ this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '/assets/instances/eagle/app_logos/KarmayogiBharat_Logo.svg';
9189
+ }
9190
+ else {
9191
+ this.defaultThumbnail = '/assets/instances/eagle/app_logos/default.png';
9192
+ this.defaultSLogo = '/assets/instances/eagle/app_logos/KarmayogiBharat_Logo.svg';
9193
+ }
9194
+ };
9195
+ /**
9196
+ * @param {?} contentData
9197
+ * @return {?}
9198
+ */
9199
+ CardWideComponent.prototype.getRedirectUrlData = /**
9200
+ * @param {?} contentData
9201
+ * @return {?}
9202
+ */
9203
+ function (contentData) {
9204
+ this.contentData.emit(contentData);
9205
+ };
9206
+ /**
9207
+ * @return {?}
9208
+ */
9209
+ CardWideComponent.prototype.raiseTelemetry = /**
9210
+ * @return {?}
9211
+ */
9212
+ function () {
9213
+ // if(this.forPreview){
9214
+ // return
9215
+ // }
9216
+ this.events.raiseInteractTelemetry({
9217
+ type: 'click',
9218
+ subType: this.widgetType + "-" + this.widgetSubType,
9219
+ id: lodash.camelCase(this.widgetData.content.primaryCategory) + "-card",
9220
+ }, {
9221
+ id: this.widgetData.content.identifier,
9222
+ type: this.widgetData.content.primaryCategory,
9223
+ //context: this.widgetData.context,
9224
+ rollup: {},
9225
+ ver: "" + this.widgetData.content.version + '',
9226
+ }, {
9227
+ pageIdExt: lodash.camelCase(this.widgetData.content.primaryCategory) + "-card",
9228
+ module: lodash.camelCase(this.widgetData.content.primaryCategory),
9229
+ });
9230
+ };
9231
+ CardWideComponent.decorators = [
9232
+ { type: core.Component, args: [{
9233
+ selector: 'sb-uic-card-wide',
9234
+ template: "<mat-card class=\"card-wide-lib\">\n <a (click)=\"raiseTelemetry();getRedirectUrlData(widgetData?.content); $event.stopPropagation()\" \n role=\"link\" i18n-aria-label>\n <div class=\"flex\">\n <div>\n <ng-container *ngIf=\"widgetData?.content?.posterImage\">\n <img mat-card-image [src]=\"widgetData?.content?.posterImage | pipePublicURL\" loading=\"lazy\"\n class=\"card-wide-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData?.content?.name\" />\n </ng-container>\n <ng-container *ngIf=\"!widgetData?.content?.posterImage\">\n <ng-container *ngIf=\"widgetData?.content?.appIcon; else defaultImg\">\n <img mat-card-image [src]=\"widgetData?.content?.appIcon | pipePublicURL\" loading=\"lazy\"\n class=\"card-wide-img ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData?.content?.name\" />\n </ng-container>\n <ng-template #defaultImg>\n <img mat-card-image [src]=\"defaultThumbnail\" loading=\"lazy\"\n class=\"card-wide-img ws-mat-primary-lite-background margin-remove\"\n [alt]=\"widgetData?.content?.name\" />\n </ng-template>\n </ng-container>\n </div>\n <div>\n <div class=\"pl-4 pr-4 w-full\">\n <div class=\"course_widget flex margin-remove\">\n <div class=\"flex flex-end course_v2\">\n <mat-icon class=\"mat-icon main_icon ws-mat-default-text margin-right-xs\">video_library</mat-icon>\n <sb-uic-display-content-type i18n-title title=\"Content Type\" *ngIf=\"widgetData?.content?.primaryCategory\"\n class=\"ws-mat-black60-text font-normal mat-caption \" [displayContentType]=\"widgetData?.content?.primaryCategory==='Course Unit'\n ?'Module'\n :widgetData?.content?.primaryCategory\">\n </sb-uic-display-content-type>\n </div>\n </div>\n <div [id]=\"'m-c-'+ widgetData?.content?.identifier\"\n class=\"mat-subheading-1 title-text ws-mat-text-block-fade-gradient\">\n {{ widgetData?.content?.name }}\n </div>\n\n <div class=\"flex w-full flex-wrap flex-middle\">\n <div class=\"course_logo_box\">\n <img [src]=\"widgetData?.content?.creatorLogo | pipePublicURL \" class=\"source-icon\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData?.content?.sourceName + '_' + widgetData?.content?.identifier)\" />\n </div>\n <!-- <span class=\"org-text\">{{'cardcontentv2.by' | translate}} -->\n <span class=\"org-text\">By&nbsp; {{ (widgetData?.content?.organisation && widgetData?.content?.organisation[0]) ? widgetData?.content?.organisation[0] : 'Karmayogi Bharat' }}</span>\n </div>\n </div>\n </div>\n </div>\n </a>\n</mat-card>\n",
9235
+ styles: [".card-wide-lib{width:inherit;padding:16px;border-radius:12px;background:#fff;border:1px solid rgba(0,0,0,.16)}.card-wide-lib .card-wide-img{width:190px;height:107px;border-radius:12px}.card-wide-lib .course_widget{margin-top:10px}.card-wide-lib .course_widget .mat-icon{vertical-align:middle;color:#ef951e!important}.card-wide-lib .course_widget .course_v2{border:1px solid #ef951e;padding:4px 8px;align-items:end;border-radius:16px}.card-wide-lib .course_widget .main_icon{font-size:16px;width:16px;height:16px}.card-wide-lib .course_logo_box{width:38px;height:38px;background:#fff;border-radius:8px;box-sizing:border-box;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.card-wide-lib .course_logo_box img{height:28px;width:28px;padding:5px;display:inline-block}.card-wide-lib .course_logo_box p{display:inline-block;vertical-align:top}.card-wide-lib .org-text{font-size:12px;font-weight:400;width:75%;padding-left:10px;word-break:break-all;white-space:initial;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}"]
9236
+ }] }
9237
+ ];
9238
+ /** @nocollapse */
9239
+ CardWideComponent.ctorParameters = function () { return [
9240
+ { type: material.MatSnackBar },
9241
+ { type: utilsV2.EventService },
9242
+ { type: core$1.TranslateService },
9243
+ { type: MultilingualTranslationsService },
9244
+ { type: utilsV2.ConfigurationsService }
9245
+ ]; };
9246
+ CardWideComponent.propDecorators = {
9247
+ widgetData: [{ type: core.Input }],
9248
+ isLiveOrMarkForDeletion: [{ type: core.Input }],
9249
+ showIntranetContent: [{ type: core.Input }],
9250
+ isIntranetAllowedSettings: [{ type: core.Input }],
9251
+ isCardLoading: [{ type: core.Input }],
9252
+ contentData: [{ type: core.Output }]
9253
+ };
9254
+ return CardWideComponent;
9255
+ }());
9256
+ if (false) {
9257
+ /** @type {?} */
9258
+ CardWideComponent.prototype.widgetData;
9259
+ /** @type {?} */
9260
+ CardWideComponent.prototype.isLiveOrMarkForDeletion;
9261
+ /** @type {?} */
9262
+ CardWideComponent.prototype.showIntranetContent;
9263
+ /** @type {?} */
9264
+ CardWideComponent.prototype.isIntranetAllowedSettings;
9265
+ /** @type {?} */
9266
+ CardWideComponent.prototype.isCardLoading;
9267
+ /** @type {?} */
9268
+ CardWideComponent.prototype.contentData;
9269
+ /** @type {?} */
9270
+ CardWideComponent.prototype.isCardFlipped;
9271
+ /** @type {?} */
9272
+ CardWideComponent.prototype.defaultThumbnail;
9273
+ /** @type {?} */
9274
+ CardWideComponent.prototype.sourceLogos;
9275
+ /** @type {?} */
9276
+ CardWideComponent.prototype.defaultSLogo;
9277
+ /** @type {?} */
9278
+ CardWideComponent.prototype.showFlip;
9279
+ /** @type {?} */
9280
+ CardWideComponent.prototype.widgetType;
9281
+ /** @type {?} */
9282
+ CardWideComponent.prototype.widgetSubType;
9283
+ /**
9284
+ * @type {?}
9285
+ * @private
9286
+ */
9287
+ CardWideComponent.prototype.snackBar;
9288
+ /**
9289
+ * @type {?}
9290
+ * @private
9291
+ */
9292
+ CardWideComponent.prototype.events;
9293
+ /**
9294
+ * @type {?}
9295
+ * @private
9296
+ */
9297
+ CardWideComponent.prototype.translate;
9298
+ /**
9299
+ * @type {?}
9300
+ * @private
9301
+ */
9302
+ CardWideComponent.prototype.langtranslations;
9303
+ /**
9304
+ * @type {?}
9305
+ * @private
9306
+ */
9307
+ CardWideComponent.prototype.configSvc;
9308
+ }
9309
+
9310
+ /**
9311
+ * @fileoverview added by tsickle
9312
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9313
+ */
9314
+ var CardsModule = /** @class */ (function () {
9315
+ function CardsModule() {
9316
+ }
9317
+ CardsModule.decorators = [
9318
+ { type: core.NgModule, args: [{
9319
+ declarations: [CardResourceComponent, CardsComponent, CardPortraitComponent, CardUserComponent, CardLandscapeComponent, CardWideComponent],
9320
+ imports: [
9321
+ common.CommonModule,
9322
+ material.MatCardModule,
9323
+ material.MatButtonModule,
9324
+ material.MatIconModule,
9325
+ material.MatTooltipModule,
9326
+ router.RouterModule,
9327
+ PipePublicURLModule,
9328
+ DisplayContentTypeLibModule,
9329
+ DefaultThumbnailModule,
9330
+ PipeDurationTransformModule,
9331
+ SkeletonLoaderLibModule
8719
9332
  ],
8720
9333
  entryComponents: [CardsComponent],
8721
9334
  exports: [
@@ -8723,7 +9336,8 @@
8723
9336
  CardResourceComponent,
8724
9337
  CardPortraitComponent,
8725
9338
  CardLandscapeComponent,
8726
- CardUserComponent
9339
+ CardUserComponent,
9340
+ CardWideComponent
8727
9341
  ],
8728
9342
  },] }
8729
9343
  ];
@@ -8871,7 +9485,7 @@
8871
9485
  */
8872
9486
  function () {
8873
9487
  return __awaiter(this, void 0, void 0, function () {
8874
- var addfilter, request, response, error_1;
9488
+ var addfilter, request, response, addFilter, error_1;
8875
9489
  return __generator(this, function (_a) {
8876
9490
  switch (_a.label) {
8877
9491
  case 0:
@@ -8917,7 +9531,12 @@
8917
9531
  */
8918
9532
  function (partialSum, data) { return partialSum + data.count; }), 0);
8919
9533
  this.selectedValue = this.competencyArea[0].name.toLowerCase();
8920
- this.getcompetencyTheme(this.competencyArea[0].name);
9534
+ addFilter = {
9535
+ "channel": [
9536
+ this.providerId
9537
+ ]
9538
+ };
9539
+ this.getcompetencyTheme(this.competencyArea[0].name, addFilter);
8921
9540
  this.loadCompetencyArea = false;
8922
9541
  }
8923
9542
  }
@@ -9075,6 +9694,7 @@
9075
9694
  if (response && response.results) {
9076
9695
  if (response.results.result.facets) {
9077
9696
  this.competencyTheme = response.results.result.facets[0].values;
9697
+ this.resetViewMore();
9078
9698
  }
9079
9699
  this.loadCometency = false;
9080
9700
  }
@@ -9087,6 +9707,22 @@
9087
9707
  });
9088
9708
  });
9089
9709
  };
9710
+ /**
9711
+ * @return {?}
9712
+ */
9713
+ CompetencyPassbookComponent.prototype.resetViewMore = /**
9714
+ * @return {?}
9715
+ */
9716
+ function () {
9717
+ var _this = this;
9718
+ Object.keys(this.allcompetencyTheme).forEach((/**
9719
+ * @param {?} comp
9720
+ * @return {?}
9721
+ */
9722
+ function (comp) {
9723
+ _this.allcompetencyTheme[comp]['viewMore'] = false;
9724
+ }));
9725
+ };
9090
9726
  /**
9091
9727
  * @param {?} data
9092
9728
  * @return {?}
@@ -9097,6 +9733,7 @@
9097
9733
  */
9098
9734
  function (data) {
9099
9735
  data.viewMore = !data.viewMore;
9736
+ this.allcompetencyTheme[data.name.toLowerCase()].viewMore = data.viewMore;
9100
9737
  };
9101
9738
  /**
9102
9739
  * @param {?} event
@@ -9281,6 +9918,1424 @@
9281
9918
  return CompetencyPassbookModule;
9282
9919
  }());
9283
9920
 
9921
+ /**
9922
+ * @fileoverview added by tsickle
9923
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9924
+ */
9925
+ /** @type {?} */
9926
+ var PROXY_SLAG_V8 = '/apis/proxies/v8';
9927
+ var ɵ0$3 = /**
9928
+ * @param {?} contentId
9929
+ * @param {?} contentType
9930
+ * @param {?} userId
9931
+ * @return {?}
9932
+ */
9933
+ function (contentId, contentType, userId) {
9934
+ return PROXY_SLAG_V8 + "/ratings/v1/read/" + contentId + "/" + contentType + "/" + userId;
9935
+ }, ɵ1$2 = /**
9936
+ * @param {?} contentId
9937
+ * @param {?} contentType
9938
+ * @return {?}
9939
+ */
9940
+ function (contentId, contentType) {
9941
+ return PROXY_SLAG_V8 + "/ratings/v1/summary/" + contentId + "/" + contentType;
9942
+ }, ɵ2$2 = /**
9943
+ * @param {?} contentId
9944
+ * @param {?} userID
9945
+ * @return {?}
9946
+ */
9947
+ function (contentId, userID) {
9948
+ return PROXY_SLAG_V8 + "/ratings/v1/read/" + contentId + "/Course/" + userID;
9949
+ };
9950
+ /** @type {?} */
9951
+ var API_END_POINTS$3 = {
9952
+ GET_RATING: (ɵ0$3),
9953
+ ADD_OR_UPDATE: PROXY_SLAG_V8 + "/ratings/v1/upsert",
9954
+ GET_RATING_SUMMARY: (ɵ1$2),
9955
+ GET_RATING_LOOKUP: PROXY_SLAG_V8 + "/ratings/v1/ratingLookUp",
9956
+ GET_AUTHOR_REPLY: (ɵ2$2),
9957
+ POST_AUTHOR_REPLY: PROXY_SLAG_V8 + "/ratings/v2/read",
9958
+ };
9959
+ var RatingService = /** @class */ (function () {
9960
+ function RatingService(http) {
9961
+ this.http = http;
9962
+ }
9963
+ /**
9964
+ * @param {?} contentId
9965
+ * @param {?} contentType
9966
+ * @param {?} userId
9967
+ * @return {?}
9968
+ */
9969
+ RatingService.prototype.getRating = /**
9970
+ * @param {?} contentId
9971
+ * @param {?} contentType
9972
+ * @param {?} userId
9973
+ * @return {?}
9974
+ */
9975
+ function (contentId, contentType, userId) {
9976
+ /** @type {?} */
9977
+ var forPreview = window.location.href.includes('/public/') || window.location.href.includes('&preview=true');
9978
+ if (!forPreview) {
9979
+ return this.http.get(API_END_POINTS$3.GET_RATING(contentId, contentType, userId));
9980
+ }
9981
+ return rxjs.of({});
9982
+ };
9983
+ /**
9984
+ * @param {?} req
9985
+ * @return {?}
9986
+ */
9987
+ RatingService.prototype.addOrUpdateRating = /**
9988
+ * @param {?} req
9989
+ * @return {?}
9990
+ */
9991
+ function (req) {
9992
+ return this.http.post(API_END_POINTS$3.ADD_OR_UPDATE, req);
9993
+ };
9994
+ /**
9995
+ * @param {?} contentId
9996
+ * @param {?} contentType
9997
+ * @return {?}
9998
+ */
9999
+ RatingService.prototype.getRatingSummary = /**
10000
+ * @param {?} contentId
10001
+ * @param {?} contentType
10002
+ * @return {?}
10003
+ */
10004
+ function (contentId, contentType) {
10005
+ /** @type {?} */
10006
+ var forPreview = window.location.href.includes('/public/') || window.location.href.includes('&preview=true');
10007
+ if (!forPreview) {
10008
+ return this.http.get(API_END_POINTS$3.GET_RATING_SUMMARY(contentId, contentType));
10009
+ }
10010
+ return rxjs.of({});
10011
+ };
10012
+ /**
10013
+ * @param {?} req
10014
+ * @return {?}
10015
+ */
10016
+ RatingService.prototype.getRatingLookup = /**
10017
+ * @param {?} req
10018
+ * @return {?}
10019
+ */
10020
+ function (req) {
10021
+ return this.http.post(API_END_POINTS$3.GET_RATING_LOOKUP, req);
10022
+ };
10023
+ /**
10024
+ * @param {?} req
10025
+ * @return {?}
10026
+ */
10027
+ RatingService.prototype.getRatingReply = /**
10028
+ * @param {?} req
10029
+ * @return {?}
10030
+ */
10031
+ function (req) {
10032
+ /** @type {?} */
10033
+ var forPreview = window.location.href.includes('/public/') || window.location.href.includes('&preview=true');
10034
+ if (!forPreview) {
10035
+ return this.http.post(API_END_POINTS$3.POST_AUTHOR_REPLY, req);
10036
+ }
10037
+ return rxjs.of({});
10038
+ };
10039
+ /**
10040
+ * @param {?} ratingIndex
10041
+ * @param {?} avg
10042
+ * @return {?}
10043
+ */
10044
+ RatingService.prototype.getRatingIcon = /**
10045
+ * @param {?} ratingIndex
10046
+ * @param {?} avg
10047
+ * @return {?}
10048
+ */
10049
+ function (ratingIndex, avg) {
10050
+ if (avg) {
10051
+ /** @type {?} */
10052
+ var avgRating = avg;
10053
+ /** @type {?} */
10054
+ var ratingFloor = Math.floor(avgRating)
10055
+ // const difference = avgRating - ratingIndex
10056
+ ;
10057
+ // const difference = avgRating - ratingIndex
10058
+ if (ratingIndex <= ratingFloor) {
10059
+ return 'star';
10060
+ }
10061
+ if (ratingFloor === ratingIndex - 1 && avgRating % 1 >= 0.29 && avgRating % 1 < 0.71) {
10062
+ return 'star_half';
10063
+ }
10064
+ }
10065
+ return 'star';
10066
+ };
10067
+ /**
10068
+ * @param {?} ratingIndex
10069
+ * @param {?} avg
10070
+ * @return {?}
10071
+ */
10072
+ RatingService.prototype.getRatingIconClass = /**
10073
+ * @param {?} ratingIndex
10074
+ * @param {?} avg
10075
+ * @return {?}
10076
+ */
10077
+ function (ratingIndex, avg) {
10078
+ if (avg) {
10079
+ /** @type {?} */
10080
+ var avgRating = avg;
10081
+ /** @type {?} */
10082
+ var ratingFloor = Math.floor(avgRating);
10083
+ if (ratingIndex <= ratingFloor) {
10084
+ return true;
10085
+ }
10086
+ if (ratingFloor === ratingIndex - 1 && avgRating % 1 >= 0.29 && avgRating % 1 < 0.71) {
10087
+ return true;
10088
+ }
10089
+ if (ratingFloor === ratingIndex - 1 && avgRating % 1 > 0.71) {
10090
+ return true;
10091
+ }
10092
+ if (ratingFloor === ratingIndex - 1 && avgRating % 1 < 0.29) {
10093
+ return false;
10094
+ }
10095
+ }
10096
+ return false;
10097
+ };
10098
+ /**
10099
+ * @param {?} contentId
10100
+ * @param {?} userID
10101
+ * @return {?}
10102
+ */
10103
+ RatingService.prototype.getAuthorReply = /**
10104
+ * @param {?} contentId
10105
+ * @param {?} userID
10106
+ * @return {?}
10107
+ */
10108
+ function (contentId, userID) {
10109
+ return this.http.get(API_END_POINTS$3.GET_AUTHOR_REPLY(contentId, userID));
10110
+ };
10111
+ RatingService.decorators = [
10112
+ { type: core.Injectable, args: [{
10113
+ providedIn: 'root',
10114
+ },] }
10115
+ ];
10116
+ /** @nocollapse */
10117
+ RatingService.ctorParameters = function () { return [
10118
+ { type: http.HttpClient }
10119
+ ]; };
10120
+ /** @nocollapse */ RatingService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function RatingService_Factory() { return new RatingService(core.ɵɵinject(http.HttpClient)); }, token: RatingService, providedIn: "root" });
10121
+ return RatingService;
10122
+ }());
10123
+ if (false) {
10124
+ /** @type {?} */
10125
+ RatingService.prototype.http;
10126
+ }
10127
+
10128
+ /**
10129
+ * @fileoverview added by tsickle
10130
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
10131
+ */
10132
+ var UserContentRatingComponent = /** @class */ (function () {
10133
+ function UserContentRatingComponent(ratingService) {
10134
+ this.ratingService = ratingService;
10135
+ this.currentIndex = 0;
10136
+ this.styleData = {
10137
+ "bannerMetaClass": "inline-meta",
10138
+ "bannerMeta": "visible",
10139
+ "bannerMetaAlign": "right",
10140
+ "navigationArrows": "visible",
10141
+ "borderRadius": "0",
10142
+ "customHeight": "424px",
10143
+ "arrowsPlacement": "middle-inline",
10144
+ "responsive": {
10145
+ "bannerMetaClass": "inline-meta",
10146
+ "customHeight": "232px",
10147
+ "bannerMetaAlign": "right",
10148
+ "navigationArrows": "visible",
10149
+ "dots": "hidden",
10150
+ "arrowsPlacement": "middle-inline"
10151
+ }
10152
+ };
10153
+ this.sliders = [
10154
+ {
10155
+ "active": true,
10156
+ "banners": {
10157
+ "l": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
10158
+ "m": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
10159
+ "s": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
10160
+ "xl": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
10161
+ "xs": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
10162
+ "xxl": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png"
10163
+ },
10164
+ "redirectUrl": "",
10165
+ "queryParams": {},
10166
+ "title": ""
10167
+ },
10168
+ {
10169
+ "active": true,
10170
+ "banners": {
10171
+ "l": "https://portal.karmayogi.nic.in/content-store/content/do_114051312372424704125/artifact/do_114051312372424704125_1715248147439_l.png",
10172
+ "m": "https://portal.karmayogi.nic.in/content-store/content/do_114051312372424704125/artifact/do_114051312372424704125_1715248147439_l.png",
10173
+ "s": "https://portal.karmayogi.nic.in/content-store/content/do_114051312372424704125/artifact/do_114051312372424704125_1715248147439_l.png",
10174
+ "xl": "https://portal.karmayogi.nic.in/content-store/content/do_114051312372424704125/artifact/do_114051312372424704125_1715248147439_l.png",
10175
+ "xs": "https://portal.karmayogi.nic.in/content-store/content/do_114051312372424704125/artifact/do_114051312372424704125_1715248147439_l.png",
10176
+ "xxl": "https://portal.karmayogi.nic.in/content-store/content/do_114051312372424704125/artifact/do_114051312372424704125_1715248147439_l.png"
10177
+ },
10178
+ "redirectUrl": "",
10179
+ "queryParams": {},
10180
+ "title": ""
10181
+ },
10182
+ {
10183
+ "active": true,
10184
+ "banners": {
10185
+ "l": "https://portal.karmayogi.nic.in/content-store/content/do_114051314864234496126/artifact/do_114051314864234496126_1715248438443_l.png",
10186
+ "m": "https://portal.karmayogi.nic.in/content-store/content/do_114051314864234496126/artifact/do_114051314864234496126_1715248438443_l.png",
10187
+ "s": "https://portal.karmayogi.nic.in/content-store/content/do_114051314864234496126/artifact/do_114051314864234496126_1715248438443_l.png",
10188
+ "xl": "https://portal.karmayogi.nic.in/content-store/content/do_114051314864234496126/artifact/do_114051314864234496126_1715248438443_l.png",
10189
+ "xs": "https://portal.karmayogi.nic.in/content-store/content/do_114051314864234496126/artifact/do_114051314864234496126_1715248438443_l.png",
10190
+ "xxl": "https://portal.karmayogi.nic.in/content-store/content/do_114051314864234496126/artifact/do_114051314864234496126_1715248438443_l.png"
10191
+ },
10192
+ "redirectUrl": "",
10193
+ "queryParams": {},
10194
+ "title": ""
10195
+ },
10196
+ {
10197
+ "active": true,
10198
+ "banners": {
10199
+ "l": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
10200
+ "m": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
10201
+ "s": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
10202
+ "xl": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
10203
+ "xs": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
10204
+ "xxl": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png"
10205
+ },
10206
+ "redirectUrl": "",
10207
+ "queryParams": {},
10208
+ "title": ""
10209
+ },
10210
+ {
10211
+ "active": true,
10212
+ "banners": {
10213
+ "l": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
10214
+ "m": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
10215
+ "s": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
10216
+ "xl": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
10217
+ "xs": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
10218
+ "xxl": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png"
10219
+ },
10220
+ "redirectUrl": "",
10221
+ "queryParams": {},
10222
+ "title": ""
10223
+ }
10224
+ ];
10225
+ this.contentCard = {
10226
+ "content": {
10227
+ "identifier": "do_113990515935854592111",
10228
+ "competencies_v5": [
10229
+ {
10230
+ "competencyArea": "Behavioural",
10231
+ "competencyAreaId": 1,
10232
+ "competencyAreaDescription": "Behavioural Competency Area",
10233
+ "competencyTheme": "Collaboration",
10234
+ "competencyThemeId": 25,
10235
+ "competecnyThemeDescription": "Collaboration competency Theme",
10236
+ "competencyThemeType": "Core",
10237
+ "competencySubTheme": "Diversity & Inclusion",
10238
+ "competencySubThemeId": 27,
10239
+ "competecnySubThemeDescription": "Diversity & Inclusion Competency Sub-Theme"
10240
+ }
10241
+ ],
10242
+ "description": "Invite only program",
10243
+ "organisation": [
10244
+ "Ministry of Finance"
10245
+ ],
10246
+ "creatorLogo": null,
10247
+ "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_1139430185765847041226/artifact/do_1139430185765847041226_1702028635111_maxresdefault.jpg",
10248
+ "duration": "2280",
10249
+ "additionalTags": null,
10250
+ "appIcon": "https://static.karmayogiprod.nic.in/igotqa/collection/do_113990515935854592111/artifact/do_1139430185765847041226_1702028635111_maxresdefault.thumb.jpg",
10251
+ "primaryCategory": "Program",
10252
+ "name": "Invite only program",
10253
+ "avgRating": null,
10254
+ "contentType": "Course"
10255
+ },
10256
+ "cardSubType": "card-wide-lib",
10257
+ "cardCustomeClass": "",
10258
+ "context": {
10259
+ "pageSection": "featuredContents",
10260
+ "position": 3
10261
+ },
10262
+ "review": "Credit",
10263
+ "rating": 5.0,
10264
+ "userDetails": {
10265
+ "firstName": "Agri usertwo",
10266
+ "userId": "f00473e1-54e8-40b7-b541-461250f298d1",
10267
+ "profileImageUrl": null
10268
+ }
10269
+ };
10270
+ this.widgetData = {
10271
+ cardSubType: ''
10272
+ };
10273
+ this.responseData = [
10274
+ {
10275
+ "review": "Credit",
10276
+ "rating": 5.0,
10277
+ "userDetails": {
10278
+ "firstName": "Agri usertwo",
10279
+ "userId": "f00473e1-54e8-40b7-b541-461250f298d1",
10280
+ "profileImageUrl": null
10281
+ },
10282
+ "content": {
10283
+ "identifier": "do_113990515935854592111",
10284
+ "competencies_v5": [
10285
+ {
10286
+ "competencyArea": "Behavioural",
10287
+ "competencyAreaId": 1,
10288
+ "competencyAreaDescription": "Behavioural Competency Area",
10289
+ "competencyTheme": "Collaboration",
10290
+ "competencyThemeId": 25,
10291
+ "competecnyThemeDescription": "Collaboration competency Theme",
10292
+ "competencyThemeType": "Core",
10293
+ "competencySubTheme": "Diversity & Inclusion",
10294
+ "competencySubThemeId": 27,
10295
+ "competecnySubThemeDescription": "Diversity & Inclusion Competency Sub-Theme"
10296
+ }
10297
+ ],
10298
+ "description": "Invite only program",
10299
+ "organisation": [
10300
+ "Ministry of Finance"
10301
+ ],
10302
+ "creatorLogo": null,
10303
+ "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_1139430185765847041226/artifact/do_1139430185765847041226_1702028635111_maxresdefault.jpg",
10304
+ "duration": "2280",
10305
+ "additionalTags": null,
10306
+ "appIcon": "https://static.karmayogiprod.nic.in/igotqa/collection/do_113990515935854592111/artifact/do_1139430185765847041226_1702028635111_maxresdefault.thumb.jpg",
10307
+ "primaryCategory": "Program",
10308
+ "name": "Invite only program",
10309
+ "avgRating": null,
10310
+ "contentType": "Course"
10311
+ },
10312
+ "cardSubType": "card-wide-lib",
10313
+ "cardCustomeClass": "",
10314
+ "context": {
10315
+ "pageSection": "featuredContents",
10316
+ "position": 3
10317
+ }
10318
+ },
10319
+ {
10320
+ "review": "Abc xyz1",
10321
+ "rating": 5.0,
10322
+ "userDetails": {
10323
+ "firstName": "Qa test user one @#$ 123",
10324
+ "userId": "7fd686b6-d5b2-4e0a-a43f-d6e57cd2ea09",
10325
+ "profileImageUrl": null
10326
+ },
10327
+ "cardSubType": "card-wide-lib",
10328
+ "cardCustomeClass": "",
10329
+ "context": {
10330
+ "pageSection": "featuredContents",
10331
+ "position": 3
10332
+ },
10333
+ "content": {
10334
+ "identifier": "do_113987549775609856182_rc",
10335
+ "competencies_v5": [
10336
+ {
10337
+ "competencyArea": "Domain",
10338
+ "competencyAreaId": 145,
10339
+ "competencyAreaDescription": "Domain Competency Area",
10340
+ "competencyTheme": "Account Management",
10341
+ "competencyThemeId": 148,
10342
+ "competecnyThemeDescription": "Account Management competency Theme",
10343
+ "competencyThemeType": "Core",
10344
+ "competencySubTheme": "Account Management",
10345
+ "competencySubThemeId": 149,
10346
+ "competecnySubThemeDescription": "Account Management Competency Sub-Theme"
10347
+ }
10348
+ ],
10349
+ "description": "Course Check for MDO Specific All Users 09 Feb",
10350
+ "organisation": [
10351
+ "Ministry of Finance"
10352
+ ],
10353
+ "creatorLogo": null,
10354
+ "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_11395704427130060819/artifact/do_11395704427130060819_1703740756028_capture71703740758098.png",
10355
+ "duration": "606",
10356
+ "additionalTags": null,
10357
+ "appIcon": "https://static.karmayogiprod.nic.in/igotqa/collection/do_113987549775609856182_rc/artifact/do_11395704427130060819_1703740756028_capture71703740758098.thumb.png",
10358
+ "primaryCategory": "Course",
10359
+ "name": "Course Check for MDO Specific All Users 09 Feb",
10360
+ "avgRating": 5.0,
10361
+ "contentType": "Course"
10362
+ }
10363
+ },
10364
+ {
10365
+ "review": "Testing ratings - Lorem ipsum dolor sit amet consectetur adipisicing elit. Eos eum, assumenda quasi accusamus perferendis voluptas saepe, ducimus architecto animi iste numquam vitae minima sed explica",
10366
+ "rating": 5.0,
10367
+ "userDetails": {
10368
+ "firstName": "Agri usertwo",
10369
+ "userId": "f00473e1-54e8-40b7-b541-461250f298d1",
10370
+ "profileImageUrl": null
10371
+ },
10372
+ "cardSubType": "card-wide-lib",
10373
+ "cardCustomeClass": "",
10374
+ "context": {
10375
+ "pageSection": "featuredContents",
10376
+ "position": 3
10377
+ },
10378
+ "content": {
10379
+ "identifier": "do_114006606955921408144",
10380
+ "competencies_v5": [
10381
+ {
10382
+ "competencyArea": "Behavioural",
10383
+ "competencyAreaId": 1,
10384
+ "competencyAreaDescription": "Behavioural Competency Area",
10385
+ "competencyTheme": "Collaborative Leadership",
10386
+ "competencyThemeId": 46,
10387
+ "competecnyThemeDescription": "Collaborative Leadership competency Theme",
10388
+ "competencyThemeType": "Leadership",
10389
+ "competencySubTheme": "Influencing and Negotiation",
10390
+ "competencySubThemeId": 47,
10391
+ "competecnySubThemeDescription": "Influencing and Negotiation Competency Sub-Theme"
10392
+ }
10393
+ ],
10394
+ "description": "test Scrom",
10395
+ "organisation": [
10396
+ "Ministry of Finance"
10397
+ ],
10398
+ "creatorLogo": null,
10399
+ "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_1139430185765847041226/artifact/do_1139430185765847041226_1702028635111_maxresdefault.jpg",
10400
+ "duration": "180",
10401
+ "additionalTags": null,
10402
+ "appIcon": "https://static.karmayogiprod.nic.in/igotqa/collection/do_114006606955921408144/artifact/do_1139430185765847041226_1702028635111_maxresdefault.thumb.jpg",
10403
+ "primaryCategory": "Course",
10404
+ "name": "Large PDF test Cases",
10405
+ "avgRating": 4.0,
10406
+ "contentType": "Course"
10407
+ }
10408
+ },
10409
+ {
10410
+ "review": "Good courseQA",
10411
+ "rating": 5.0,
10412
+ "userDetails": {
10413
+ "firstName": "Public User QA env",
10414
+ "userId": "0517056e-b57b-49ca-a44c-cdc3a251dd3e",
10415
+ "profileImageUrl": null
10416
+ },
10417
+ "cardSubType": "card-wide-lib",
10418
+ "cardCustomeClass": "",
10419
+ "context": {
10420
+ "pageSection": "featuredContents",
10421
+ "position": 3
10422
+ },
10423
+ "content": {
10424
+ "identifier": "do_113902049969004544112",
10425
+ "competencies_v5": [
10426
+ {
10427
+ "competencyArea": "Domain",
10428
+ "competencyAreaDescription": "Domain Competency Area",
10429
+ "competencyAreaId": 145,
10430
+ "competencyTheme": "Communication Backbone System Maintenance",
10431
+ "competencyThemeDescription": "Communication Backbone System Maintenance competency Theme",
10432
+ "competencyThemeId": 186,
10433
+ "competencyThemeType": "Core",
10434
+ "competencySubTheme": "Communication Backbone System Maintenance",
10435
+ "competencySubThemeId": 187,
10436
+ "competencySubThemeDescription": "Communication Backbone System Maintenance Competency Sub-Theme"
10437
+ },
10438
+ {
10439
+ "competencyArea": "Domain",
10440
+ "competencyAreaDescription": "Domain Competency Area",
10441
+ "competencyAreaId": 145,
10442
+ "competencyTheme": "Communication Auxiliary Systems Maintenance",
10443
+ "competencyThemeDescription": "Communication Auxiliary Systems Maintenance competency Theme",
10444
+ "competencyThemeId": 184,
10445
+ "competencyThemeType": "Core",
10446
+ "competencySubTheme": "Communication Auxiliary Systems Maintenance",
10447
+ "competencySubThemeId": 185,
10448
+ "competencySubThemeDescription": "Communication Auxiliary Systems Maintenance Competency Sub-Theme"
10449
+ }
10450
+ ],
10451
+ "description": "QATestCourse2",
10452
+ "organisation": [
10453
+ "Ministry of Finance"
10454
+ ],
10455
+ "creatorLogo": null,
10456
+ "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_113902071254761472117/artifact/do_113902071254761472117_1697030308090_screenshotfrom202310101224021697030170978.png",
10457
+ "duration": "540",
10458
+ "additionalTags": null,
10459
+ "appIcon": "https://portal.karmayogiqa.nic.in/content-store/content/do_113902071254761472117/artifact/do_113902071254761472117_1697030308090_screenshotfrom202310101224021697030170978.png",
10460
+ "primaryCategory": "Course",
10461
+ "name": "QATestCourse2",
10462
+ "avgRating": 5.0,
10463
+ "contentType": "Course"
10464
+ }
10465
+ },
10466
+ {
10467
+ "review": "ok",
10468
+ "rating": 5.0,
10469
+ "userDetails": {
10470
+ "firstName": "qatestcreator",
10471
+ "userId": "54548483-0708-417c-ac9f-9b2260e13962",
10472
+ "profileImageUrl": null
10473
+ },
10474
+ "cardSubType": "card-wide-lib",
10475
+ "cardCustomeClass": "",
10476
+ "context": {
10477
+ "pageSection": "featuredContents",
10478
+ "position": 3
10479
+ },
10480
+ "content": {
10481
+ "identifier": "do_113902049969004544112",
10482
+ "competencies_v5": [
10483
+ {
10484
+ "competencyArea": "Domain",
10485
+ "competencyAreaDescription": "Domain Competency Area",
10486
+ "competencyAreaId": 145,
10487
+ "competencyTheme": "Communication Backbone System Maintenance",
10488
+ "competencyThemeDescription": "Communication Backbone System Maintenance competency Theme",
10489
+ "competencyThemeId": 186,
10490
+ "competencyThemeType": "Core",
10491
+ "competencySubTheme": "Communication Backbone System Maintenance",
10492
+ "competencySubThemeId": 187,
10493
+ "competencySubThemeDescription": "Communication Backbone System Maintenance Competency Sub-Theme"
10494
+ },
10495
+ {
10496
+ "competencyArea": "Domain",
10497
+ "competencyAreaDescription": "Domain Competency Area",
10498
+ "competencyAreaId": 145,
10499
+ "competencyTheme": "Communication Auxiliary Systems Maintenance",
10500
+ "competencyThemeDescription": "Communication Auxiliary Systems Maintenance competency Theme",
10501
+ "competencyThemeId": 184,
10502
+ "competencyThemeType": "Core",
10503
+ "competencySubTheme": "Communication Auxiliary Systems Maintenance",
10504
+ "competencySubThemeId": 185,
10505
+ "competencySubThemeDescription": "Communication Auxiliary Systems Maintenance Competency Sub-Theme"
10506
+ }
10507
+ ],
10508
+ "description": "QATestCourse2",
10509
+ "organisation": [
10510
+ "Ministry of Finance"
10511
+ ],
10512
+ "creatorLogo": null,
10513
+ "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_113902071254761472117/artifact/do_113902071254761472117_1697030308090_screenshotfrom202310101224021697030170978.png",
10514
+ "duration": "540",
10515
+ "additionalTags": null,
10516
+ "appIcon": "https://portal.karmayogiqa.nic.in/content-store/content/do_113902071254761472117/artifact/do_113902071254761472117_1697030308090_screenshotfrom202310101224021697030170978.png",
10517
+ "primaryCategory": "Course",
10518
+ "name": "QATestCourse2",
10519
+ "avgRating": 5.0,
10520
+ "contentType": "Course"
10521
+ }
10522
+ },
10523
+ {
10524
+ "review": "nic onenic onenic onenic onenic onenic onenic onenic onenic onenic onenic onenic onenic one",
10525
+ "rating": 5.0,
10526
+ "userDetails": {
10527
+ "firstName": "Qa test user one @#$ 123",
10528
+ "userId": "7fd686b6-d5b2-4e0a-a43f-d6e57cd2ea09",
10529
+ "profileImageUrl": null
10530
+ },
10531
+ "cardSubType": "card-wide-lib",
10532
+ "cardCustomeClass": "",
10533
+ "context": {
10534
+ "pageSection": "featuredContents",
10535
+ "position": 3
10536
+ },
10537
+ "content": {
10538
+ "identifier": "do_113902049969004544112",
10539
+ "competencies_v5": [
10540
+ {
10541
+ "competencyArea": "Domain",
10542
+ "competencyAreaDescription": "Domain Competency Area",
10543
+ "competencyAreaId": 145,
10544
+ "competencyTheme": "Communication Backbone System Maintenance",
10545
+ "competencyThemeDescription": "Communication Backbone System Maintenance competency Theme",
10546
+ "competencyThemeId": 186,
10547
+ "competencyThemeType": "Core",
10548
+ "competencySubTheme": "Communication Backbone System Maintenance",
10549
+ "competencySubThemeId": 187,
10550
+ "competencySubThemeDescription": "Communication Backbone System Maintenance Competency Sub-Theme"
10551
+ },
10552
+ {
10553
+ "competencyArea": "Domain",
10554
+ "competencyAreaDescription": "Domain Competency Area",
10555
+ "competencyAreaId": 145,
10556
+ "competencyTheme": "Communication Auxiliary Systems Maintenance",
10557
+ "competencyThemeDescription": "Communication Auxiliary Systems Maintenance competency Theme",
10558
+ "competencyThemeId": 184,
10559
+ "competencyThemeType": "Core",
10560
+ "competencySubTheme": "Communication Auxiliary Systems Maintenance",
10561
+ "competencySubThemeId": 185,
10562
+ "competencySubThemeDescription": "Communication Auxiliary Systems Maintenance Competency Sub-Theme"
10563
+ }
10564
+ ],
10565
+ "description": "QATestCourse2",
10566
+ "organisation": [
10567
+ "Ministry of Finance"
10568
+ ],
10569
+ "creatorLogo": null,
10570
+ "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_113902071254761472117/artifact/do_113902071254761472117_1697030308090_screenshotfrom202310101224021697030170978.png",
10571
+ "duration": "540",
10572
+ "additionalTags": null,
10573
+ "appIcon": "https://portal.karmayogiqa.nic.in/content-store/content/do_113902071254761472117/artifact/do_113902071254761472117_1697030308090_screenshotfrom202310101224021697030170978.png",
10574
+ "primaryCategory": "Course",
10575
+ "name": "QATestCourse2",
10576
+ "avgRating": 5.0,
10577
+ "contentType": "Course"
10578
+ }
10579
+ },
10580
+ {
10581
+ "review": "Checking Ratings and alignment under Overview",
10582
+ "rating": 5.0,
10583
+ "userDetails": {
10584
+ "firstName": "Get Started User Five",
10585
+ "userId": "e6a9d4b6-b30a-405f-9bcb-166038600218",
10586
+ "profileImageUrl": null
10587
+ },
10588
+ "cardSubType": "card-wide-lib",
10589
+ "cardCustomeClass": "",
10590
+ "context": {
10591
+ "pageSection": "featuredContents",
10592
+ "position": 3
10593
+ },
10594
+ "content": {
10595
+ "identifier": "do_113902049969004544112",
10596
+ "competencies_v5": [
10597
+ {
10598
+ "competencyArea": "Domain",
10599
+ "competencyAreaDescription": "Domain Competency Area",
10600
+ "competencyAreaId": 145,
10601
+ "competencyTheme": "Communication Backbone System Maintenance",
10602
+ "competencyThemeDescription": "Communication Backbone System Maintenance competency Theme",
10603
+ "competencyThemeId": 186,
10604
+ "competencyThemeType": "Core",
10605
+ "competencySubTheme": "Communication Backbone System Maintenance",
10606
+ "competencySubThemeId": 187,
10607
+ "competencySubThemeDescription": "Communication Backbone System Maintenance Competency Sub-Theme"
10608
+ },
10609
+ {
10610
+ "competencyArea": "Domain",
10611
+ "competencyAreaDescription": "Domain Competency Area",
10612
+ "competencyAreaId": 145,
10613
+ "competencyTheme": "Communication Auxiliary Systems Maintenance",
10614
+ "competencyThemeDescription": "Communication Auxiliary Systems Maintenance competency Theme",
10615
+ "competencyThemeId": 184,
10616
+ "competencyThemeType": "Core",
10617
+ "competencySubTheme": "Communication Auxiliary Systems Maintenance",
10618
+ "competencySubThemeId": 185,
10619
+ "competencySubThemeDescription": "Communication Auxiliary Systems Maintenance Competency Sub-Theme"
10620
+ }
10621
+ ],
10622
+ "description": "QATestCourse2",
10623
+ "organisation": [
10624
+ "Ministry of Finance"
10625
+ ],
10626
+ "creatorLogo": null,
10627
+ "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_113902071254761472117/artifact/do_113902071254761472117_1697030308090_screenshotfrom202310101224021697030170978.png",
10628
+ "duration": "540",
10629
+ "additionalTags": null,
10630
+ "appIcon": "https://portal.karmayogiqa.nic.in/content-store/content/do_113902071254761472117/artifact/do_113902071254761472117_1697030308090_screenshotfrom202310101224021697030170978.png",
10631
+ "primaryCategory": "Course",
10632
+ "name": "QATestCourse2",
10633
+ "avgRating": 5.0,
10634
+ "contentType": "Course"
10635
+ }
10636
+ },
10637
+ {
10638
+ "review": "Testing rating 123",
10639
+ "rating": 5.0,
10640
+ "userDetails": {
10641
+ "firstName": "Qa test user one @#$ 123",
10642
+ "userId": "7fd686b6-d5b2-4e0a-a43f-d6e57cd2ea09",
10643
+ "profileImageUrl": null
10644
+ },
10645
+ "cardSubType": "card-wide-lib",
10646
+ "cardCustomeClass": "",
10647
+ "context": {
10648
+ "pageSection": "featuredContents",
10649
+ "position": 3
10650
+ },
10651
+ "content": {
10652
+ "identifier": "do_1139400923254046721119",
10653
+ "competencies_v5": [
10654
+ {
10655
+ "competencyArea": "Functional",
10656
+ "competencyAreaDescription": "Functional Competency Area",
10657
+ "competencyAreaId": 56,
10658
+ "competencyTheme": "Administration Matters",
10659
+ "competencyThemeDescription": "Administration Matters competency Theme",
10660
+ "competencyThemeId": 140,
10661
+ "competencyThemeType": "Core",
10662
+ "competencySubTheme": "Handling Miscellaneous Matters (Car, Residence, Personal Staff etc.)",
10663
+ "competencySubThemeId": 143,
10664
+ "competencySubThemeDescription": "Handling Miscellaneous Matters (Car, Residence, Personal Staff etc.) Competency Sub-Theme"
10665
+ }
10666
+ ],
10667
+ "description": "Youtube Links",
10668
+ "organisation": [
10669
+ "Ministry of Finance"
10670
+ ],
10671
+ "creatorLogo": null,
10672
+ "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_1139400694644490241113/artifact/do_1139400694644490241113_1701668637063_effective-communication.png",
10673
+ "duration": "420",
10674
+ "additionalTags": null,
10675
+ "appIcon": "https://static.karmayogiprod.nic.in/igotqa/collection/do_1139400923254046721119/artifact/do_1139400694644490241113_1701668637063_effective-communication.thumb.png",
10676
+ "primaryCategory": "Course",
10677
+ "name": "Course New 04 Dec",
10678
+ "avgRating": 5.0,
10679
+ "contentType": "Course"
10680
+ }
10681
+ },
10682
+ {
10683
+ "review": "nice1",
10684
+ "rating": 5.0,
10685
+ "userDetails": {
10686
+ "firstName": "Qa test user one @#$ 123",
10687
+ "userId": "7fd686b6-d5b2-4e0a-a43f-d6e57cd2ea09",
10688
+ "profileImageUrl": null
10689
+ },
10690
+ "cardSubType": "card-wide-lib",
10691
+ "cardCustomeClass": "",
10692
+ "context": {
10693
+ "pageSection": "featuredContents",
10694
+ "position": 3
10695
+ },
10696
+ "content": {
10697
+ "identifier": "do_1139967854457651201519_rc",
10698
+ "competencies_v5": [
10699
+ {
10700
+ "competencyArea": "Behavioural",
10701
+ "competencyAreaId": 1,
10702
+ "competencyAreaDescription": "Behavioural Competency Area",
10703
+ "competencyTheme": "Personal Effectiveness",
10704
+ "competencyThemeId": 7,
10705
+ "competecnyThemeDescription": "Personal Effectiveness competency Theme",
10706
+ "competencyThemeType": "Core",
10707
+ "competencySubTheme": "Resilience",
10708
+ "competencySubThemeId": 9,
10709
+ "competecnySubThemeDescription": "Resilience Competency Sub-Theme"
10710
+ }
10711
+ ],
10712
+ "description": "Sub:- Vikas- New Program '22/02/24' ",
10713
+ "organisation": [
10714
+ "Ministry of Finance"
10715
+ ],
10716
+ "creatorLogo": null,
10717
+ "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_1139946848192430081395/artifact/do_1139946848192430081395_1708335549501_digitalindiaandegovernance1708335549950.jpg",
10718
+ "duration": "12761",
10719
+ "additionalTags": null,
10720
+ "appIcon": "https://static.karmayogiprod.nic.in/igotqa/collection/do_1139967854457651201519_rc/artifact/do_1139946848192430081395_1708335549501_digitalindiaandegovernance1708335549950.thumb.jpg",
10721
+ "primaryCategory": "Program",
10722
+ "name": "Vikas- New Program '22/02/24'",
10723
+ "avgRating": 2.0,
10724
+ "contentType": "Course"
10725
+ }
10726
+ },
10727
+ {
10728
+ "review": "bv",
10729
+ "rating": 5.0,
10730
+ "userDetails": {
10731
+ "firstName": "qa dstuserone",
10732
+ "userId": "31c81730-bf33-437a-a53e-0bd8ac2fc3d6",
10733
+ "profileImageUrl": null
10734
+ },
10735
+ "cardSubType": "card-wide-lib",
10736
+ "cardCustomeClass": "",
10737
+ "context": {
10738
+ "pageSection": "featuredContents",
10739
+ "position": 3
10740
+ },
10741
+ "content": {
10742
+ "identifier": "do_113965740548784128178",
10743
+ "competencies_v5": [
10744
+ {
10745
+ "competencyArea": "Functional",
10746
+ "competencyAreaId": 56,
10747
+ "competencyAreaDescription": "Functional Competency Area",
10748
+ "competencyTheme": "Establishment & HR",
10749
+ "competencyThemeId": 101,
10750
+ "competecnyThemeDescription": "Establishment & HR competency Theme",
10751
+ "competencyThemeType": "Core",
10752
+ "competencySubTheme": "Handling Fundamental Rules /Supplementary Rules",
10753
+ "competencySubThemeId": 104,
10754
+ "competecnySubThemeDescription": "Handling Fundamental Rules /Supplementary Rules Competency Sub-Theme"
10755
+ }
10756
+ ],
10757
+ "description": "Course with more subthemes",
10758
+ "organisation": [
10759
+ "Ministry of Finance"
10760
+ ],
10761
+ "creatorLogo": null,
10762
+ "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_113921119628378112168/artifact/do_113921119628378112168_1699355423624_capture121699355424283.png",
10763
+ "duration": "540",
10764
+ "additionalTags": [
10765
+ "mostEnrolled"
10766
+ ],
10767
+ "appIcon": "https://static.karmayogiprod.nic.in/igotqa/collection/do_113965740548784128178/artifact/do_113921119628378112168_1699355423624_capture121699355424283.thumb.png",
10768
+ "primaryCategory": "Course",
10769
+ "name": "Course with more subthemes",
10770
+ "avgRating": 5.0,
10771
+ "contentType": "Course"
10772
+ }
10773
+ }
10774
+ ];
10775
+ }
10776
+ /**
10777
+ * @return {?}
10778
+ */
10779
+ UserContentRatingComponent.prototype.ngOnInit = /**
10780
+ * @return {?}
10781
+ */
10782
+ function () {
10783
+ };
10784
+ /**
10785
+ * @param {?} ratingIndex
10786
+ * @param {?} avg
10787
+ * @return {?}
10788
+ */
10789
+ UserContentRatingComponent.prototype.getRatingIcon = /**
10790
+ * @param {?} ratingIndex
10791
+ * @param {?} avg
10792
+ * @return {?}
10793
+ */
10794
+ function (ratingIndex, avg) {
10795
+ return this.ratingService.getRatingIcon(ratingIndex, avg);
10796
+ };
10797
+ /**
10798
+ * @param {?} ratingIndex
10799
+ * @param {?} avg
10800
+ * @return {?}
10801
+ */
10802
+ UserContentRatingComponent.prototype.getRatingIconClass = /**
10803
+ * @param {?} ratingIndex
10804
+ * @param {?} avg
10805
+ * @return {?}
10806
+ */
10807
+ function (ratingIndex, avg) {
10808
+ return this.ratingService.getRatingIconClass(ratingIndex, avg);
10809
+ };
10810
+ /**
10811
+ * @param {?} indexValue
10812
+ * @return {?}
10813
+ */
10814
+ UserContentRatingComponent.prototype.getCurrentIndex = /**
10815
+ * @param {?} indexValue
10816
+ * @return {?}
10817
+ */
10818
+ function (indexValue) {
10819
+ this.currentIndex = indexValue;
10820
+ };
10821
+ UserContentRatingComponent.decorators = [
10822
+ { type: core.Component, args: [{
10823
+ selector: 'sb-uic-user-content-rating',
10824
+ template: "<!-- <sb-uic-sliders [title]=\"'providerName'\" [widgetData]=\"[]\" [styleData]=\"styleData\">\n <div sliderbody>\n <div class=\"flex justify-center\">\n <div class=\"avatar-block mr-3\">\n <sb-uic-avatar-photo [name]=\"contentCard?.userDetails?.firstName\" [photoUrl]=\"contentCard?.userDetails?.profileImageUrl\" size=\"m-side-rating\">\n </sb-uic-avatar-photo>\n </div>\n <div class=\"avatar-block mr-3\">\n <sb-uic-avatar-photo [name]=\"contentCard?.userDetails?.firstName\" [photoUrl]=\"contentCard?.userDetails?.profileImageUrl\" size=\"m-side-rating\">\n </sb-uic-avatar-photo>\n </div>\n </div>\n <div class=\"user-ratting-wrapper flex flex-wrap justify-center\">\n <p class=\"userName w-full\">Harshit Rao</p>\n\n <div class=\"flex w-full flex-row justify-center gap-2 mb-4\">\n <mat-icon class=\"mat-icon material-icons rating-icon ws-mat-black16-text\"\n [ngClass]=\"{'ws-mat-orange-text': getRatingIconClass(rating, 3.3)}\"\n *ngFor=\"let rating of [1, 2, 3, 4, 5]\">\n {{ getRatingIcon(rating, 3.3) }}\n </mat-icon>\n </div>\n <p class=\"content-feedback w-full\">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua enim ad minim veniam, quis nostrud.</p>\n <div class=\"w-full m-8\">\n <sb-uic-cards [widgetData]=\"contentCard\"></sb-uic-cards>\n </div>\n </div>\n </div>\n</sb-uic-sliders> -->\n\n<sb-uic-sliders-ng-content [title]=\"'providerName'\" (currentIndexValue)=\"getCurrentIndex($event)\" [loadNgContentData]=\"true\" [widgetData]=\"responseData\" [styleData]=\"styleData\">\n <div sliderbody>\n <div *ngFor=\"let data of responseData; let i = index\" [hidden]=\"i !== currentIndex\">\n <div class=\"flex justify-center\">\n <div class=\"avatar-block mr-3\">\n <sb-uic-avatar-photo [name]=\"contentCard?.userDetails?.firstName\" [photoUrl]=\"contentCard?.userDetails?.profileImageUrl\" size=\"m-side-rating\">\n </sb-uic-avatar-photo>\n </div>\n <div class=\"avatar-block mr-3\">\n <sb-uic-avatar-photo [name]=\"contentCard?.userDetails?.firstName\" [photoUrl]=\"contentCard?.userDetails?.profileImageUrl\" size=\"m-side-rating\">\n </sb-uic-avatar-photo>\n </div>\n </div>\n <div class=\"user-ratting-wrapper flex flex-wrap justify-center\">\n <p class=\"userName w-full\">Harshit Rao</p>\n \n <div class=\"flex w-full flex-row justify-center gap-2 mb-4\">\n <mat-icon class=\"mat-icon material-icons rating-icon ws-mat-black16-text\"\n [ngClass]=\"{'ws-mat-orange-text': getRatingIconClass(rating, 3.3)}\"\n *ngFor=\"let rating of [1, 2, 3, 4, 5]\">\n {{ getRatingIcon(rating, 3.3) }}\n </mat-icon>\n </div>\n <p class=\"content-feedback w-full\">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua enim ad minim veniam, quis nostrud.</p>\n <div class=\"w-full m-8\">\n <sb-uic-cards [widgetData]=\"contentCard\"></sb-uic-cards>\n </div>\n </div>\n </div>\n </div>\n</sb-uic-sliders-ng-content>\n\n",
10825
+ styles: [".user-ratting-wrapper .userName{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:center}.user-ratting-wrapper .content-feedback{font-family:Lato;font-size:16px;font-weight:400;line-height:19.2px;text-align:center;color:rgba(0,0,0,.87)}.avatar-block::before{content:\"\";border:4px solid #f3972e;border-radius:50%;width:41px;height:41px;display:flex;justify-content:center;align-items:center;position:absolute}"]
10826
+ }] }
10827
+ ];
10828
+ /** @nocollapse */
10829
+ UserContentRatingComponent.ctorParameters = function () { return [
10830
+ { type: RatingService }
10831
+ ]; };
10832
+ return UserContentRatingComponent;
10833
+ }());
10834
+ if (false) {
10835
+ /** @type {?} */
10836
+ UserContentRatingComponent.prototype.currentIndex;
10837
+ /** @type {?} */
10838
+ UserContentRatingComponent.prototype.styleData;
10839
+ /** @type {?} */
10840
+ UserContentRatingComponent.prototype.sliders;
10841
+ /** @type {?} */
10842
+ UserContentRatingComponent.prototype.contentCard;
10843
+ /** @type {?} */
10844
+ UserContentRatingComponent.prototype.widgetData;
10845
+ /** @type {?} */
10846
+ UserContentRatingComponent.prototype.responseData;
10847
+ /** @type {?} */
10848
+ UserContentRatingComponent.prototype.ratingService;
10849
+ }
10850
+
10851
+ /**
10852
+ * @fileoverview added by tsickle
10853
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
10854
+ */
10855
+ var AvatarPhotoLibComponent = /** @class */ (function () {
10856
+ function AvatarPhotoLibComponent() {
10857
+ this.size = '';
10858
+ this.randomColor = false;
10859
+ this.showBadge = false;
10860
+ this.showInitials = false;
10861
+ this.random = Math.random().toString(36).slice(2);
10862
+ // public initials!: string
10863
+ this.colors = [
10864
+ '#EB7181',
10865
+ '#306933',
10866
+ '#000000',
10867
+ '#3670B2',
10868
+ '#4E9E87',
10869
+ '#7E4C8D',
10870
+ ];
10871
+ this.randomcolors = [
10872
+ '#EB7181',
10873
+ '#006400',
10874
+ '#000000',
10875
+ '#3670B2',
10876
+ '#4E9E87',
10877
+ '#7E4C8D',
10878
+ ];
10879
+ }
10880
+ /**
10881
+ * @return {?}
10882
+ */
10883
+ AvatarPhotoLibComponent.prototype.ngOnInit = /**
10884
+ * @return {?}
10885
+ */
10886
+ function () {
10887
+ if (!this.photoUrl) {
10888
+ this.showInitials = true;
10889
+ if (!this.initials) {
10890
+ this.createInititals();
10891
+ }
10892
+ if (this.datalen === 1) {
10893
+ this.randomcolors = [
10894
+ '#006400',
10895
+ ];
10896
+ }
10897
+ /** @type {?} */
10898
+ var randomIndex = Math.floor(Math.random() * Math.floor(this.colors.length));
10899
+ this.circleColor = this.colors[randomIndex];
10900
+ if (this.randomColor) {
10901
+ /** @type {?} */
10902
+ var randomIndex1 = Math.floor(Math.random() * Math.floor(this.randomcolors.length));
10903
+ this.circleColor = this.randomcolors[randomIndex1];
10904
+ }
10905
+ }
10906
+ };
10907
+ /**
10908
+ * @param {?} change
10909
+ * @return {?}
10910
+ */
10911
+ AvatarPhotoLibComponent.prototype.ngOnChanges = /**
10912
+ * @param {?} change
10913
+ * @return {?}
10914
+ */
10915
+ function (change) {
10916
+ if (change.name.currentValue !== change.name.previousValue && !change.name.firstChange) {
10917
+ this.createInititals();
10918
+ }
10919
+ };
10920
+ Object.defineProperty(AvatarPhotoLibComponent.prototype, "userInitials", {
10921
+ get: /**
10922
+ * @return {?}
10923
+ */
10924
+ function () {
10925
+ return this.initials;
10926
+ },
10927
+ enumerable: true,
10928
+ configurable: true
10929
+ });
10930
+ /**
10931
+ * @private
10932
+ * @return {?}
10933
+ */
10934
+ AvatarPhotoLibComponent.prototype.createInititals = /**
10935
+ * @private
10936
+ * @return {?}
10937
+ */
10938
+ function () {
10939
+ /** @type {?} */
10940
+ var initials = '';
10941
+ /** @type {?} */
10942
+ var array = (this.name + " ").toString().split(' ');
10943
+ if (array[0] !== 'undefined' && typeof array[1] !== 'undefined') {
10944
+ initials += array[0].charAt(0);
10945
+ initials += array[1].charAt(0);
10946
+ }
10947
+ else {
10948
+ for (var i = 0; i < this.name.length; i += 1) {
10949
+ if (this.name.charAt(i) === ' ') {
10950
+ continue;
10951
+ }
10952
+ if (this.name.charAt(i) === this.name.charAt(i)) {
10953
+ initials += this.name.charAt(i);
10954
+ if (initials.length === 2) {
10955
+ break;
10956
+ }
10957
+ }
10958
+ }
10959
+ }
10960
+ this.initials = initials.toUpperCase();
10961
+ };
10962
+ AvatarPhotoLibComponent.decorators = [
10963
+ { type: core.Component, args: [{
10964
+ selector: 'sb-uic-avatar-photo',
10965
+ template: "<div id=\"user_icon\" [ngClass]=\"{'circle-s' : size=== 's',\n'circle-m' : size=== 'm',\n'circle-l' : size=== 'l',\n'circle-xl' : size=== 'xl',\n'circle-xxl' : size=== 'xxl',\n'circle-l-xs' : size=== 'l-xs',\n'circle-l-s' : size=== 'l-s',\n'circle-xl-s' : size=== 'xl-s',\n'circle-r-m': size=== 'round-m',\n'circle-r-p-m': size=== 'profile-round-m',\n'circle-m-side': size=== 'm-side',\n'circle-r-m-48': size=== 'm-side-rating',\n'circle-m-recommended': size==='m-recommended',\n'circle-xxl-s': size=== 'xxl-s'}\" [ngStyle]=\"{'background-color': circleColor }\">\n <img *ngIf=\"!showInitials\" loading=\"lazy\" src=\"{{photoUrl}}\" [alt]=\"photoUrl? '' :(name || userInitials || size || random)\">\n\n <div *ngIf=\"showInitials\" class=\"initials\" i18n-aria-label>\n {{ userInitials }} \n </div>\n <div *ngIf=\"showBadge\"><span class=\"profile-badge\"> \n <img src=\"fusion-assets/images/profile-badge.png\">\n </span></div>\n\n <!-- <div *ngIf=\"imageType === 'user-photo'\">\n <img *ngIf=\"imageUrl\" [src]=\"imageUrl\" alt=\"user-image\" class=\"user-image\" [ngClass]=\"{'user-image-small': imageSize === 'small'}\">\n <div class=\"user-image\" [ngClass]=\"{'user-image-small': imageSize === 'small'}\">\n <span class=\"name-initials-image font-normal ws-mat-primary-default-text ws-mat-accent-background\"\n *ngIf=\"!imageUrl\">{{ shortName }}</span>\n </div>\n </div> -->\n</div>",
10966
+ styles: ["@charset \"UTF-8\";.success-checkmark::after{content:\"\u2714\";position:absolute;left:25px;top:20px;width:11px;height:11px;border:1px solid #1d8923;background:#1d8923;border-radius:50%;color:#fff;line-height:11px;text-align:center;font-size:9px}.profile-badge{position:absolute;top:10px;right:0}.profile-badge img{height:15px!important;width:15px!important}.circle-s{border-radius:50%;width:24px;height:24px;display:flex;justify-content:center;align-items:center}.circle-s img{border-radius:50%;width:100%;height:100%}.circle-s .initials{color:#fff;font-size:10px;line-height:12px;letter-spacing:.2625px}.circle-m{border-radius:50%;width:72px!important;height:72px!important;display:flex;justify-content:center;align-items:center;margin-top:-36px}.circle-m img{border-radius:10%;width:40px;height:40px}.circle-m .initials{color:#fff;font-size:14px;line-height:19px;letter-spacing:.2625px}.circle-l{border-radius:50%;width:80px;height:80px;display:flex;justify-content:center;align-items:center}.circle-l img{border-radius:10%;width:80px;height:80px}.circle-l .initials{color:#fff;font-size:20px;line-height:19px;letter-spacing:.2625px}.circle-xl{border-radius:50%;width:105px;height:105px;display:flex;justify-content:center;align-items:center}.circle-xl img{border-radius:10%;width:105px;height:105px}.circle-xl .initials{color:#fff;font-size:20px;line-height:19px;letter-spacing:.2625px}.circle-xxl{border-radius:50%;width:145px;height:145px;display:flex;justify-content:center;align-items:center}.circle-xxl img{border-radius:10%;width:145px;height:145px}.circle-xxl .initials{color:#fff;font-size:20px;line-height:19px;letter-spacing:.2625px}.circle-l-xs{border-radius:50%;width:29px;height:29px;display:flex;justify-content:center;align-items:center}.circle-l-xs img{border-radius:50%;width:100%;height:100%}.circle-l-xs .initials{color:#fff;font-size:12px;line-height:12px;letter-spacing:.2625px}.circle-l-s{border-radius:50%;width:80px;height:80px;display:flex;justify-content:center;align-items:center}.circle-l-s img{border-radius:4px;width:80px;height:80px}.circle-l-s .initials{color:#fff;font-size:24px;line-height:24px;letter-spacing:.2625px}.circle-xl-s{border-radius:50%;width:125px;height:125px;display:flex;justify-content:center;align-items:center}.circle-xl-s img{border-radius:4px;width:152px;height:125px}.circle-xl-s .initials{color:#fff;font-size:32px;line-height:32px;letter-spacing:.2625px}.circle-xxl-s{border-radius:50%;width:208px;height:208px;display:flex;justify-content:center;align-items:center}.circle-xxl-s img{border-radius:50%;width:100%;height:100%}.circle-xxl-s .initials{color:#fff;font-size:40px;line-height:40px;letter-spacing:.2625px}.circle-r-m{border-radius:50%;width:50px;height:50px;display:flex;justify-content:center;align-items:center}.circle-r-m img{border-radius:50%;width:100%;height:100%}.circle-r-m .initials{color:#fff;font-size:16px;line-height:40px;letter-spacing:.2625px}.circle-r-m-48{border-radius:50%;width:48px;height:48px;display:flex;justify-content:center;align-items:center}.circle-r-m-48 img{border-radius:50%;width:100%;height:100%}.circle-r-m-48 .initials{color:#fff;font-size:16px;line-height:40px;letter-spacing:.2625px}.circle-r-p-m{border-radius:50%;width:40px;height:40px;display:flex;justify-content:center;align-items:center}.circle-r-p-m img{border-radius:50%;width:100%;height:100%}.circle-r-p-m .initials{color:#fff;font-size:16px;line-height:40px;letter-spacing:.2625px}.circle-m-side{border-radius:50%;width:72px!important;height:72px!important;display:flex;justify-content:center;align-items:center}.circle-m-side img{border-radius:10%;width:40px;height:40px}.circle-m-side .initials{color:#fff;font-size:14px;line-height:19px;letter-spacing:.2625px}@media only screen and (max-width:960px){.circle-xxl-s{width:100px;height:100px}.circle-xxl-s .initials{font-size:24px;line-height:24px}}.circle-m-recommended{border-radius:50%;width:72px!important;height:72px!important;display:flex;justify-content:center;align-items:center;margin-top:-49px}.circle-m-recommended img{border-radius:10%;width:40px;height:40px}.circle-m-recommended .initials{color:#fff;font-size:14px;line-height:19px;letter-spacing:.2625px}.circle-l-s::before{content:\"\";border:1px solid red}"]
10967
+ }] }
10968
+ ];
10969
+ AvatarPhotoLibComponent.propDecorators = {
10970
+ datalen: [{ type: core.Input }],
10971
+ photoUrl: [{ type: core.Input }],
10972
+ name: [{ type: core.Input }],
10973
+ size: [{ type: core.Input }],
10974
+ randomColor: [{ type: core.Input }],
10975
+ initials: [{ type: core.Input }],
10976
+ showBadge: [{ type: core.Input }]
10977
+ };
10978
+ return AvatarPhotoLibComponent;
10979
+ }());
10980
+ if (false) {
10981
+ /** @type {?} */
10982
+ AvatarPhotoLibComponent.prototype.datalen;
10983
+ /** @type {?} */
10984
+ AvatarPhotoLibComponent.prototype.photoUrl;
10985
+ /** @type {?} */
10986
+ AvatarPhotoLibComponent.prototype.name;
10987
+ /** @type {?} */
10988
+ AvatarPhotoLibComponent.prototype.size;
10989
+ /** @type {?} */
10990
+ AvatarPhotoLibComponent.prototype.randomColor;
10991
+ /** @type {?} */
10992
+ AvatarPhotoLibComponent.prototype.initials;
10993
+ /** @type {?} */
10994
+ AvatarPhotoLibComponent.prototype.showBadge;
10995
+ /** @type {?} */
10996
+ AvatarPhotoLibComponent.prototype.showInitials;
10997
+ /** @type {?} */
10998
+ AvatarPhotoLibComponent.prototype.circleColor;
10999
+ /** @type {?} */
11000
+ AvatarPhotoLibComponent.prototype.random;
11001
+ /**
11002
+ * @type {?}
11003
+ * @private
11004
+ */
11005
+ AvatarPhotoLibComponent.prototype.colors;
11006
+ /**
11007
+ * @type {?}
11008
+ * @private
11009
+ */
11010
+ AvatarPhotoLibComponent.prototype.randomcolors;
11011
+ }
11012
+
11013
+ /**
11014
+ * @fileoverview added by tsickle
11015
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
11016
+ */
11017
+ var AvatarPhotoLibModule = /** @class */ (function () {
11018
+ function AvatarPhotoLibModule() {
11019
+ }
11020
+ AvatarPhotoLibModule.decorators = [
11021
+ { type: core.NgModule, args: [{
11022
+ declarations: [AvatarPhotoLibComponent],
11023
+ imports: [
11024
+ common.CommonModule,
11025
+ router.RouterModule,
11026
+ material.MatButtonModule,
11027
+ material.MatIconModule,
11028
+ material.MatMenuModule,
11029
+ material.MatRippleModule,
11030
+ resolverV2.SbUiResolverModule,
11031
+ ],
11032
+ exports: [AvatarPhotoLibComponent],
11033
+ entryComponents: [AvatarPhotoLibComponent],
11034
+ },] }
11035
+ ];
11036
+ return AvatarPhotoLibModule;
11037
+ }());
11038
+
11039
+ /**
11040
+ * @fileoverview added by tsickle
11041
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
11042
+ */
11043
+ var SlidersNgContentLibComponent = /** @class */ (function (_super) {
11044
+ __extends(SlidersNgContentLibComponent, _super);
11045
+ function SlidersNgContentLibComponent(events, valueSvc) {
11046
+ var _this = _super.call(this) || this;
11047
+ _this.events = events;
11048
+ _this.valueSvc = valueSvc;
11049
+ _this.title = '';
11050
+ _this.loadNgContentData = false;
11051
+ _this.currentIndexValue = new core.EventEmitter();
11052
+ _this.id = "banner_" + Math.random();
11053
+ _this.defaultMenuSubscribe = null;
11054
+ _this.isLtMedium$ = _this.valueSvc.isLtMedium$;
11055
+ _this.currentIndex = 0;
11056
+ _this.slideInterval = null;
11057
+ _this.isMobile = false;
11058
+ return _this;
11059
+ }
11060
+ /**
11061
+ * @return {?}
11062
+ */
11063
+ SlidersNgContentLibComponent.prototype.ngOnInit = /**
11064
+ * @return {?}
11065
+ */
11066
+ function () {
11067
+ var _this = this;
11068
+ this.reInitiateSlideInterval();
11069
+ this.defaultMenuSubscribe = this.isLtMedium$.subscribe((/**
11070
+ * @param {?} isLtMedium
11071
+ * @return {?}
11072
+ */
11073
+ function (isLtMedium) {
11074
+ _this.isMobile = isLtMedium;
11075
+ }));
11076
+ };
11077
+ /**
11078
+ * @return {?}
11079
+ */
11080
+ SlidersNgContentLibComponent.prototype.reInitiateSlideInterval = /**
11081
+ * @return {?}
11082
+ */
11083
+ function () {
11084
+ var _this = this;
11085
+ if (this.widgetData && this.widgetData.length > 1) {
11086
+ try {
11087
+ if (this.slideInterval) {
11088
+ this.slideInterval.unsubscribe();
11089
+ }
11090
+ }
11091
+ catch (e) {
11092
+ }
11093
+ finally {
11094
+ this.slideInterval = rxjs.interval(8000).subscribe((/**
11095
+ * @return {?}
11096
+ */
11097
+ function () {
11098
+ if (_this.currentIndex === _this.widgetData.length - 1) {
11099
+ _this.currentIndex = 0;
11100
+ _this.currentIndexValue.emit(_this.currentIndex);
11101
+ }
11102
+ else {
11103
+ _this.currentIndex += 1;
11104
+ _this.currentIndexValue.emit(_this.currentIndex);
11105
+ }
11106
+ }));
11107
+ }
11108
+ }
11109
+ };
11110
+ /**
11111
+ * @param {?} index
11112
+ * @return {?}
11113
+ */
11114
+ SlidersNgContentLibComponent.prototype.slideTo = /**
11115
+ * @param {?} index
11116
+ * @return {?}
11117
+ */
11118
+ function (index) {
11119
+ if (index >= 0 && index < this.widgetData.length) {
11120
+ this.currentIndex = index;
11121
+ this.currentIndexValue.emit(this.currentIndex);
11122
+ }
11123
+ else if (index === this.widgetData.length) {
11124
+ this.currentIndex = 0;
11125
+ this.currentIndexValue.emit(this.currentIndex);
11126
+ }
11127
+ else {
11128
+ this.currentIndex = this.widgetData.length + index;
11129
+ this.currentIndexValue.emit(this.currentIndex);
11130
+ }
11131
+ this.reInitiateSlideInterval();
11132
+ };
11133
+ Object.defineProperty(SlidersNgContentLibComponent.prototype, "isOpenInNewTab", {
11134
+ get: /**
11135
+ * @return {?}
11136
+ */
11137
+ function () {
11138
+ /** @type {?} */
11139
+ var currentData = this.widgetData[this.currentIndex];
11140
+ if (currentData.redirectUrl && currentData.redirectUrl.includes('mailto') || this.widgetData[this.currentIndex].openInNewTab) {
11141
+ return true;
11142
+ }
11143
+ return false;
11144
+ },
11145
+ enumerable: true,
11146
+ configurable: true
11147
+ });
11148
+ /**
11149
+ * @return {?}
11150
+ */
11151
+ SlidersNgContentLibComponent.prototype.openInNewTab = /**
11152
+ * @return {?}
11153
+ */
11154
+ function () {
11155
+ /** @type {?} */
11156
+ var currentData = this.widgetData[this.currentIndex];
11157
+ if (currentData.redirectUrl && currentData.redirectUrl.includes('mailto') || this.widgetData[this.currentIndex].openInNewTab) {
11158
+ window.open(currentData.redirectUrl);
11159
+ }
11160
+ };
11161
+ /**
11162
+ * @param {?} bannerUrl
11163
+ * @return {?}
11164
+ */
11165
+ SlidersNgContentLibComponent.prototype.raiseTelemetry = /**
11166
+ * @param {?} bannerUrl
11167
+ * @return {?}
11168
+ */
11169
+ function (bannerUrl) {
11170
+ this.openInNewTab();
11171
+ /** @type {?} */
11172
+ var path = window.location.pathname.replace('/', '');
11173
+ /** @type {?} */
11174
+ var url = path + window.location.search;
11175
+ this.events.raiseInteractTelemetry({
11176
+ type: 'click',
11177
+ subType: 'banner',
11178
+ }, {
11179
+ pageUrl: url,
11180
+ bannerRedirectUrl: bannerUrl,
11181
+ }, {
11182
+ pageIdExt: 'banner',
11183
+ module: utilsV2.WsEvents.EnumTelemetrymodules.CONTENT,
11184
+ });
11185
+ };
11186
+ /**
11187
+ * @return {?}
11188
+ */
11189
+ SlidersNgContentLibComponent.prototype.ngOnDestroy = /**
11190
+ * @return {?}
11191
+ */
11192
+ function () {
11193
+ if (this.defaultMenuSubscribe) {
11194
+ this.defaultMenuSubscribe.unsubscribe();
11195
+ }
11196
+ };
11197
+ SlidersNgContentLibComponent.decorators = [
11198
+ { type: core.Component, args: [{
11199
+ selector: 'sb-uic-sliders-ng-content',
11200
+ 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 \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",
11201
+ 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 .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}}"]
11202
+ }] }
11203
+ ];
11204
+ /** @nocollapse */
11205
+ SlidersNgContentLibComponent.ctorParameters = function () { return [
11206
+ { type: utilsV2.EventService },
11207
+ { type: utilsV2.ValueService }
11208
+ ]; };
11209
+ SlidersNgContentLibComponent.propDecorators = {
11210
+ widgetData: [{ type: core.Input }],
11211
+ styleData: [{ type: core.Input }],
11212
+ title: [{ type: core.Input }],
11213
+ loadNgContentData: [{ type: core.Input }],
11214
+ currentIndexValue: [{ type: core.Output }],
11215
+ id: [{ type: core.HostBinding, args: ['id',] }]
11216
+ };
11217
+ return SlidersNgContentLibComponent;
11218
+ }(resolverV2.WidgetBaseComponent));
11219
+ if (false) {
11220
+ /** @type {?} */
11221
+ SlidersNgContentLibComponent.prototype.widgetData;
11222
+ /** @type {?} */
11223
+ SlidersNgContentLibComponent.prototype.styleData;
11224
+ /** @type {?} */
11225
+ SlidersNgContentLibComponent.prototype.title;
11226
+ /** @type {?} */
11227
+ SlidersNgContentLibComponent.prototype.loadNgContentData;
11228
+ /** @type {?} */
11229
+ SlidersNgContentLibComponent.prototype.currentIndexValue;
11230
+ /** @type {?} */
11231
+ SlidersNgContentLibComponent.prototype.id;
11232
+ /**
11233
+ * @type {?}
11234
+ * @private
11235
+ */
11236
+ SlidersNgContentLibComponent.prototype.defaultMenuSubscribe;
11237
+ /** @type {?} */
11238
+ SlidersNgContentLibComponent.prototype.isLtMedium$;
11239
+ /** @type {?} */
11240
+ SlidersNgContentLibComponent.prototype.currentIndex;
11241
+ /** @type {?} */
11242
+ SlidersNgContentLibComponent.prototype.slideInterval;
11243
+ /** @type {?} */
11244
+ SlidersNgContentLibComponent.prototype.isMobile;
11245
+ /**
11246
+ * @type {?}
11247
+ * @private
11248
+ */
11249
+ SlidersNgContentLibComponent.prototype.events;
11250
+ /**
11251
+ * @type {?}
11252
+ * @private
11253
+ */
11254
+ SlidersNgContentLibComponent.prototype.valueSvc;
11255
+ }
11256
+
11257
+ /**
11258
+ * @fileoverview added by tsickle
11259
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
11260
+ */
11261
+ /* tslint:enable */
11262
+ var /* tslint:enable */
11263
+ MyHammerConfig$1 = /** @class */ (function (_super) {
11264
+ __extends(MyHammerConfig, _super);
11265
+ function MyHammerConfig() {
11266
+ return _super !== null && _super.apply(this, arguments) || this;
11267
+ }
11268
+ /**
11269
+ * @param {?} element
11270
+ * @return {?}
11271
+ */
11272
+ MyHammerConfig.prototype.buildHammer = /**
11273
+ * @param {?} element
11274
+ * @return {?}
11275
+ */
11276
+ function (element) {
11277
+ /** @type {?} */
11278
+ var mc = new Hammer(element, {
11279
+ touchAction: 'pan-y',
11280
+ });
11281
+ return mc;
11282
+ };
11283
+ return MyHammerConfig;
11284
+ }(platformBrowser.HammerGestureConfig));
11285
+ // tslint:disable-next-line: max-classes-per-file
11286
+ var SlidersNgContentLibModule = /** @class */ (function () {
11287
+ function SlidersNgContentLibModule() {
11288
+ }
11289
+ SlidersNgContentLibModule.decorators = [
11290
+ { type: core.NgModule, args: [{
11291
+ declarations: [SlidersNgContentLibComponent],
11292
+ imports: [
11293
+ common.CommonModule,
11294
+ router.RouterModule,
11295
+ NavigationModule,
11296
+ ImageResponsiveModule,
11297
+ ],
11298
+ exports: [SlidersNgContentLibComponent],
11299
+ entryComponents: [SlidersNgContentLibComponent],
11300
+ providers: [
11301
+ {
11302
+ provide: platformBrowser.HAMMER_GESTURE_CONFIG,
11303
+ useClass: MyHammerConfig$1,
11304
+ },
11305
+ ],
11306
+ },] }
11307
+ ];
11308
+ return SlidersNgContentLibModule;
11309
+ }());
11310
+
11311
+ /**
11312
+ * @fileoverview added by tsickle
11313
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
11314
+ */
11315
+ var UserContentRatingModule = /** @class */ (function () {
11316
+ function UserContentRatingModule() {
11317
+ }
11318
+ UserContentRatingModule.decorators = [
11319
+ { type: core.NgModule, args: [{
11320
+ declarations: [UserContentRatingComponent],
11321
+ imports: [
11322
+ common.CommonModule,
11323
+ material.MatIconModule,
11324
+ material.MatChipsModule,
11325
+ SkeletonLoaderLibModule,
11326
+ SlidersLibModule,
11327
+ CardsModule,
11328
+ AvatarPhotoLibModule,
11329
+ SlidersNgContentLibModule
11330
+ ],
11331
+ exports: [UserContentRatingComponent],
11332
+ providers: [RatingService],
11333
+ schemas: [core.CUSTOM_ELEMENTS_SCHEMA]
11334
+ },] }
11335
+ ];
11336
+ return UserContentRatingModule;
11337
+ }());
11338
+
9284
11339
  exports.CalenderModule = CalenderModule;
9285
11340
  exports.CardsModule = CardsModule;
9286
11341
  exports.CommonMethodsService = CommonMethodsService;
@@ -9295,19 +11350,29 @@
9295
11350
  exports.MyHammerConfig = MyHammerConfig;
9296
11351
  exports.ROOT_WIDGET_CONFIG = ROOT_WIDGET_CONFIG;
9297
11352
  exports.SlidersLibModule = SlidersLibModule;
11353
+ exports.UserContentRatingModule = UserContentRatingModule;
9298
11354
  exports.WIDGET_REGISTERED_LIB_MODULES = WIDGET_REGISTERED_LIB_MODULES;
9299
11355
  exports.WIDGET_REGISTRATION_LIB_CONFIG = WIDGET_REGISTRATION_LIB_CONFIG;
9300
11356
  exports.ɵa = ContentStripWithTabsLibComponent;
9301
11357
  exports.ɵb = WidgetContentService;
9302
- exports.ɵba = DisplayContentTypeLibComponent;
9303
- exports.ɵbb = DefaultThumbnailModule;
9304
- exports.ɵbc = DefaultThumbnailDirective;
9305
- exports.ɵbd = PipeDurationTransformModule;
9306
- exports.ɵbe = PipeDurationTransformPipe;
9307
- exports.ɵbf = CompetencyPassbookComponent;
9308
- exports.ɵbg = CompetencyPassbookService;
9309
- exports.ɵbh = PillsModule;
9310
- exports.ɵbi = PillsComponent;
11358
+ exports.ɵba = PipePublicURL;
11359
+ exports.ɵbb = DisplayContentTypeLibModule;
11360
+ exports.ɵbc = DisplayContentTypeLibComponent;
11361
+ exports.ɵbd = DefaultThumbnailModule;
11362
+ exports.ɵbe = DefaultThumbnailDirective;
11363
+ exports.ɵbf = PipeDurationTransformModule;
11364
+ exports.ɵbg = PipeDurationTransformPipe;
11365
+ exports.ɵbh = CompetencyPassbookComponent;
11366
+ exports.ɵbi = CompetencyPassbookService;
11367
+ exports.ɵbj = PillsModule;
11368
+ exports.ɵbk = PillsComponent;
11369
+ exports.ɵbl = UserContentRatingComponent;
11370
+ exports.ɵbm = RatingService;
11371
+ exports.ɵbn = AvatarPhotoLibModule;
11372
+ exports.ɵbo = AvatarPhotoLibComponent;
11373
+ exports.ɵbp = MyHammerConfig$1;
11374
+ exports.ɵbq = SlidersNgContentLibModule;
11375
+ exports.ɵbr = SlidersNgContentLibComponent;
9311
11376
  exports.ɵc = WidgetUserService;
9312
11377
  exports.ɵd = MultilingualTranslationsService;
9313
11378
  exports.ɵe = ConfigurationsService;
@@ -9323,15 +11388,15 @@
9323
11388
  exports.ɵo = SkeletonLoaderLibModule;
9324
11389
  exports.ɵp = SkeletonLoaderLibComponent;
9325
11390
  exports.ɵq = CalenderComponent;
9326
- exports.ɵr = CommonStripComponent;
9327
- exports.ɵs = CardResourceComponent;
9328
- exports.ɵt = CardsComponent;
9329
- exports.ɵu = CardPortraitComponent;
9330
- exports.ɵv = CardUserComponent;
9331
- exports.ɵw = CardLandscapeComponent;
9332
- exports.ɵx = PipePublicURLModule;
9333
- exports.ɵy = PipePublicURL;
9334
- exports.ɵz = DisplayContentTypeLibModule;
11391
+ exports.ɵr = CalenderDayComponent;
11392
+ exports.ɵs = CommonStripComponent;
11393
+ exports.ɵt = CardResourceComponent;
11394
+ exports.ɵu = CardsComponent;
11395
+ exports.ɵv = CardPortraitComponent;
11396
+ exports.ɵw = CardUserComponent;
11397
+ exports.ɵx = CardLandscapeComponent;
11398
+ exports.ɵy = CardWideComponent;
11399
+ exports.ɵz = PipePublicURLModule;
9335
11400
 
9336
11401
  Object.defineProperty(exports, '__esModule', { value: true });
9337
11402