@sunbird-cb/consumption 0.0.12 → 0.0.14

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 (82) hide show
  1. package/bundles/sunbird-cb-consumption.umd.js +1699 -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 +158 -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 +206 -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-lib.component.js +139 -0
  22. package/esm2015/lib/_common/user-content-rating/user-content-rating-lib.module.js +38 -0
  23. package/esm2015/lib/_common/user-content-rating/user-content-rating-lib.service.js +45 -0
  24. package/esm2015/lib/_directives/scrollable-item/scrollable-item.directive.js +42 -0
  25. package/esm2015/lib/_directives/scrollable-item/scrollable-item.module.js +19 -0
  26. package/esm2015/lib/_models/rating.model.js +44 -0
  27. package/esm2015/lib/_services/insite-data.service.js +10 -2
  28. package/esm2015/lib/_services/rating.service.js +171 -0
  29. package/esm2015/public-api.js +2 -1
  30. package/esm2015/sunbird-cb-consumption.js +31 -20
  31. package/esm5/lib/_common/avatar-photo-lib/avatar-photo-lib.component.js +175 -0
  32. package/esm5/lib/_common/avatar-photo-lib/avatar-photo-lib.module.js +33 -0
  33. package/esm5/lib/_common/calender/calender-day/calender-day.component.js +101 -0
  34. package/esm5/lib/_common/calender/calender.component.js +305 -9
  35. package/esm5/lib/_common/calender/calender.module.js +15 -5
  36. package/esm5/lib/_common/cards/card-portrait/card-portrait.component.js +5 -1
  37. package/esm5/lib/_common/cards/card-wide/card-wide.component.js +172 -0
  38. package/esm5/lib/_common/cards/cards.component.js +2 -2
  39. package/esm5/lib/_common/cards/cards.module.js +5 -3
  40. package/esm5/lib/_common/common-strip/common-strip.component.js +22 -19
  41. package/esm5/lib/_common/competency-passbook/competency-passbook.component.js +26 -3
  42. package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +36 -3
  43. package/esm5/lib/_common/data-points/data-points.component.js +2 -2
  44. package/esm5/lib/_common/sliders-ng-content/sliders-ng-content.component.js +233 -0
  45. package/esm5/lib/_common/sliders-ng-content/sliders-ng-content.model.js +61 -0
  46. package/esm5/lib/_common/sliders-ng-content/sliders-ng-content.module.js +67 -0
  47. package/esm5/lib/_common/user-content-rating/user-content-rating-lib.component.js +162 -0
  48. package/esm5/lib/_common/user-content-rating/user-content-rating-lib.module.js +42 -0
  49. package/esm5/lib/_common/user-content-rating/user-content-rating-lib.service.js +48 -0
  50. package/esm5/lib/_directives/scrollable-item/scrollable-item.directive.js +45 -0
  51. package/esm5/lib/_directives/scrollable-item/scrollable-item.module.js +23 -0
  52. package/esm5/lib/_models/rating.model.js +44 -0
  53. package/esm5/lib/_services/insite-data.service.js +14 -2
  54. package/esm5/lib/_services/rating.service.js +214 -0
  55. package/esm5/public-api.js +2 -1
  56. package/esm5/sunbird-cb-consumption.js +31 -20
  57. package/fesm2015/sunbird-cb-consumption.js +1515 -88
  58. package/fesm2015/sunbird-cb-consumption.js.map +1 -1
  59. package/fesm5/sunbird-cb-consumption.js +1673 -58
  60. package/fesm5/sunbird-cb-consumption.js.map +1 -1
  61. package/lib/_common/avatar-photo-lib/avatar-photo-lib.component.d.ts +20 -0
  62. package/lib/_common/avatar-photo-lib/avatar-photo-lib.module.d.ts +2 -0
  63. package/lib/_common/calender/calender-day/calender-day.component.d.ts +18 -0
  64. package/lib/_common/calender/calender.component.d.ts +29 -1
  65. package/lib/_common/cards/card-wide/card-wide.component.d.ts +30 -0
  66. package/lib/_common/competency-passbook/competency-passbook.component.d.ts +1 -0
  67. package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.d.ts +6 -1
  68. package/lib/_common/sliders-ng-content/sliders-ng-content.component.d.ts +29 -0
  69. package/lib/_common/sliders-ng-content/sliders-ng-content.model.d.ts +34 -0
  70. package/lib/_common/sliders-ng-content/sliders-ng-content.module.d.ts +6 -0
  71. package/lib/_common/user-content-rating/user-content-rating-lib.component.d.ts +22 -0
  72. package/lib/_common/user-content-rating/user-content-rating-lib.module.d.ts +2 -0
  73. package/lib/_common/user-content-rating/user-content-rating-lib.service.d.ts +7 -0
  74. package/lib/_directives/scrollable-item/scrollable-item.directive.d.ts +7 -0
  75. package/lib/_directives/scrollable-item/scrollable-item.module.d.ts +2 -0
  76. package/lib/_models/rating.model.d.ts +17 -0
  77. package/lib/_services/insite-data.service.d.ts +1 -0
  78. package/lib/_services/rating.service.d.ts +15 -0
  79. package/package.json +1 -1
  80. package/public-api.d.ts +1 -0
  81. package/sunbird-cb-consumption.d.ts +29 -18
  82. 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 (contentData)=\"getRedirectUrlData($event)\" [widgetData]=\"widgetData\"></sb-uic-card-wide>\n</ng-template>\n<ng-template #cardWideLibSkeleton>\n <sb-uic-card-wide [widgetData]=\"widgetData\"></sb-uic-card-wide>\n</ng-template>\n\n <ng-template #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}@media screen and (max-width:768px){.card-wide-img{width:167px;height:117px;border-radius:12px}}"]
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,984 @@
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 ScrollableItemDirective = /** @class */ (function () {
10133
+ function ScrollableItemDirective(el) {
10134
+ this.el = el;
10135
+ }
10136
+ /**
10137
+ * @param {?} blockValue
10138
+ * @return {?}
10139
+ */
10140
+ ScrollableItemDirective.prototype.scrollIntoView = /**
10141
+ * @param {?} blockValue
10142
+ * @return {?}
10143
+ */
10144
+ function (blockValue) {
10145
+ this.el.nativeElement.scrollIntoView({ behavior: 'smooth', block: blockValue });
10146
+ };
10147
+ ScrollableItemDirective.decorators = [
10148
+ { type: core.Directive, args: [{
10149
+ selector: '[sbUicScrollableItem]'
10150
+ },] }
10151
+ ];
10152
+ /** @nocollapse */
10153
+ ScrollableItemDirective.ctorParameters = function () { return [
10154
+ { type: core.ElementRef }
10155
+ ]; };
10156
+ ScrollableItemDirective.propDecorators = {
10157
+ key: [{ type: core.Input, args: ['sbUicScrollableItem',] }]
10158
+ };
10159
+ return ScrollableItemDirective;
10160
+ }());
10161
+ if (false) {
10162
+ /** @type {?} */
10163
+ ScrollableItemDirective.prototype.key;
10164
+ /**
10165
+ * @type {?}
10166
+ * @private
10167
+ */
10168
+ ScrollableItemDirective.prototype.el;
10169
+ }
10170
+
10171
+ /**
10172
+ * @fileoverview added by tsickle
10173
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
10174
+ */
10175
+ /** @type {?} */
10176
+ var API_END_POINTS$4 = {
10177
+ TOP_REVIEWS: "/apis/proxies/v8/ratings/v1/topReviews"
10178
+ };
10179
+ var UserContentRatingLibService = /** @class */ (function () {
10180
+ function UserContentRatingLibService(http) {
10181
+ this.http = http;
10182
+ }
10183
+ /**
10184
+ * @param {?} doId
10185
+ * @return {?}
10186
+ */
10187
+ UserContentRatingLibService.prototype.fetchTopReviews = /**
10188
+ * @param {?} doId
10189
+ * @return {?}
10190
+ */
10191
+ function (doId) {
10192
+ return this.http.get(API_END_POINTS$4.TOP_REVIEWS + "/" + doId);
10193
+ };
10194
+ UserContentRatingLibService.decorators = [
10195
+ { type: core.Injectable, args: [{
10196
+ providedIn: 'root'
10197
+ },] }
10198
+ ];
10199
+ /** @nocollapse */
10200
+ UserContentRatingLibService.ctorParameters = function () { return [
10201
+ { type: http.HttpClient }
10202
+ ]; };
10203
+ /** @nocollapse */ UserContentRatingLibService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function UserContentRatingLibService_Factory() { return new UserContentRatingLibService(core.ɵɵinject(http.HttpClient)); }, token: UserContentRatingLibService, providedIn: "root" });
10204
+ return UserContentRatingLibService;
10205
+ }());
10206
+ if (false) {
10207
+ /**
10208
+ * @type {?}
10209
+ * @private
10210
+ */
10211
+ UserContentRatingLibService.prototype.http;
10212
+ }
10213
+
10214
+ /**
10215
+ * @fileoverview added by tsickle
10216
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
10217
+ */
10218
+ var UserContentRatingLibComponent = /** @class */ (function () {
10219
+ function UserContentRatingLibComponent(ratingService, userRatingSvc) {
10220
+ this.ratingService = ratingService;
10221
+ this.userRatingSvc = userRatingSvc;
10222
+ this.currentIndex = 0;
10223
+ this.providerId = '';
10224
+ this.formData = '';
10225
+ this.emptyResponse = new core.EventEmitter();
10226
+ this.styleData = {};
10227
+ this.contentdata = [];
10228
+ }
10229
+ /**
10230
+ * @return {?}
10231
+ */
10232
+ UserContentRatingLibComponent.prototype.ngOnInit = /**
10233
+ * @return {?}
10234
+ */
10235
+ function () {
10236
+ this.styleData = this.formData && this.formData.sliderData && this.formData.sliderData.styleData;
10237
+ this.getTopReviews();
10238
+ };
10239
+ /**
10240
+ * @return {?}
10241
+ */
10242
+ UserContentRatingLibComponent.prototype.getTopReviews = /**
10243
+ * @return {?}
10244
+ */
10245
+ function () {
10246
+ var _this = this;
10247
+ this.contentdata = [];
10248
+ this.userRatingSvc.fetchTopReviews(this.providerId).subscribe((/**
10249
+ * @param {?} response
10250
+ * @return {?}
10251
+ */
10252
+ function (response) {
10253
+ if (response && response.result && response.result.content.length) {
10254
+ response.result.content.forEach((/**
10255
+ * @param {?} contentEle
10256
+ * @return {?}
10257
+ */
10258
+ function (contentEle) {
10259
+ /** @type {?} */
10260
+ var localData = {};
10261
+ localData['content'] = contentEle.contentInfo;
10262
+ localData['rating'] = contentEle.rating;
10263
+ localData['review'] = contentEle.review;
10264
+ localData['userDetails'] = contentEle.userDetails;
10265
+ localData['cardSubType'] = "card-wide-lib";
10266
+ localData['cardCustomeClass'] = "";
10267
+ _this.contentdata.push(localData);
10268
+ }));
10269
+ }
10270
+ else {
10271
+ _this.emptyResponse.emit(true);
10272
+ }
10273
+ }));
10274
+ };
10275
+ /**
10276
+ * @param {?} ratingIndex
10277
+ * @param {?} avg
10278
+ * @return {?}
10279
+ */
10280
+ UserContentRatingLibComponent.prototype.getRatingIcon = /**
10281
+ * @param {?} ratingIndex
10282
+ * @param {?} avg
10283
+ * @return {?}
10284
+ */
10285
+ function (ratingIndex, avg) {
10286
+ return this.ratingService.getRatingIcon(ratingIndex, avg);
10287
+ };
10288
+ /**
10289
+ * @param {?} ratingIndex
10290
+ * @param {?} avg
10291
+ * @return {?}
10292
+ */
10293
+ UserContentRatingLibComponent.prototype.getRatingIconClass = /**
10294
+ * @param {?} ratingIndex
10295
+ * @param {?} avg
10296
+ * @return {?}
10297
+ */
10298
+ function (ratingIndex, avg) {
10299
+ return this.ratingService.getRatingIconClass(ratingIndex, avg);
10300
+ };
10301
+ /**
10302
+ * @param {?} indexValue
10303
+ * @return {?}
10304
+ */
10305
+ UserContentRatingLibComponent.prototype.getCurrentIndex = /**
10306
+ * @param {?} indexValue
10307
+ * @return {?}
10308
+ */
10309
+ function (indexValue) {
10310
+ this.currentIndex = indexValue;
10311
+ this.handleScrollClick(indexValue);
10312
+ };
10313
+ /**
10314
+ * @param {?} dataValue
10315
+ * @return {?}
10316
+ */
10317
+ UserContentRatingLibComponent.prototype.handleScrollClick = /**
10318
+ * @param {?} dataValue
10319
+ * @return {?}
10320
+ */
10321
+ function (dataValue) {
10322
+ /** @type {?} */
10323
+ var item = this.scrollableItems.find((/**
10324
+ * @param {?} x
10325
+ * @return {?}
10326
+ */
10327
+ function (x) { return x.key === dataValue; }));
10328
+ item.scrollIntoView("nearest");
10329
+ };
10330
+ UserContentRatingLibComponent.decorators = [
10331
+ { type: core.Component, args: [{
10332
+ selector: 'sb-uic-user-content-rating',
10333
+ template: "<ng-container *ngIf=\"contentdata.length\">\n <sb-uic-sliders-ng-content [title]=\"'providerName'\" [currentIndex]=\"currentIndex\" (currentIndexValue)=\"getCurrentIndex($event)\" [loadNgContentData]=\"true\" [widgetData]=\"contentdata\" [styleData]=\"styleData\">\n <div sliderbody>\n <div class=\"flex justify-start md:justify-center users-block mb-4 \">\n <ng-container *ngFor=\"let userData of contentdata; let j = index\">\n <div class=\"avatar-block mr-1\" [sbUicScrollableItem]=\"j\"\n [ngClass]=\"{'user-active': j === currentIndex}\" (click)=\"handleScrollClick(currentIndex);currentIndex = j\">\n <sb-uic-avatar-photo [defaulfColor]=\"'#1B2133'\" [datalen]=\"1\" [randomColor]=\"true\" [name]=\"userData?.userDetails?.firstName\" [photoUrl]=\"userData?.userDetails?.profileImageUrl\" size=\"m-side-rating\">\n </sb-uic-avatar-photo>\n </div>\n </ng-container>\n </div>\n <div *ngFor=\"let ratingData of contentdata; let i = index\" [hidden]=\"i !== currentIndex\">\n <div class=\"user-ratting-wrapper flex flex-wrap justify-center\">\n <p class=\"userName w-full mb-4\">{{ratingData?.userDetails?.firstName}}</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, ratingData?.rating)}\"\n *ngFor=\"let rating of [1, 2, 3, 4, 5]\">\n {{ getRatingIcon(rating, ratingData?.rating) }}\n </mat-icon>\n </div>\n <p class=\"content-feedback w-full mb-4 pl-0 pr-0 md:pl-12 md:pr-12 \">{{ratingData?.review}}</p>\n \n <hr class=\"divider mb-4\">\n <p class=\"content-info w-full mb-4\">For The Content</p>\n <div class=\"w-full mr-0 md:mr-8 ml-0 md:ml-8\">\n <sb-uic-cards [widgetData]=\"ratingData\"></sb-uic-cards>\n </div>\n </div>\n </div>\n </div>\n </sb-uic-sliders-ng-content>\n</ng-container>\n\n",
10334
+ 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)}.user-ratting-wrapper .content-info{font-family:Lato;font-size:14px;font-weight:700;line-height:16.8px;text-align:center;color:#666}.avatar-block{border:8px solid transparent;position:relative;cursor:pointer;width:48px;height:48px}.user-active{content:\"\";border:5px solid #f3972e;border-radius:50%;display:flex;justify-content:center;align-items:center;margin-bottom:0;width:48px;height:48px}.user-active::after{content:\" \";position:absolute;top:106%;left:50%;margin-left:-10px;border-left:10px solid transparent;border-right:10px solid transparent;border-top:18px solid #f3972e}.users-block{overflow-x:auto;padding:16px;padding-bottom:24px!important;width:100%}hr.divider{border:1px solid #f3972e;width:185px}"]
10335
+ }] }
10336
+ ];
10337
+ /** @nocollapse */
10338
+ UserContentRatingLibComponent.ctorParameters = function () { return [
10339
+ { type: RatingService },
10340
+ { type: UserContentRatingLibService }
10341
+ ]; };
10342
+ UserContentRatingLibComponent.propDecorators = {
10343
+ providerId: [{ type: core.Input }],
10344
+ formData: [{ type: core.Input }],
10345
+ emptyResponse: [{ type: core.Output }],
10346
+ scrollableItems: [{ type: core.ViewChildren, args: [ScrollableItemDirective,] }]
10347
+ };
10348
+ return UserContentRatingLibComponent;
10349
+ }());
10350
+ if (false) {
10351
+ /** @type {?} */
10352
+ UserContentRatingLibComponent.prototype.currentIndex;
10353
+ /** @type {?} */
10354
+ UserContentRatingLibComponent.prototype.providerId;
10355
+ /** @type {?} */
10356
+ UserContentRatingLibComponent.prototype.formData;
10357
+ /** @type {?} */
10358
+ UserContentRatingLibComponent.prototype.emptyResponse;
10359
+ /** @type {?} */
10360
+ UserContentRatingLibComponent.prototype.styleData;
10361
+ /** @type {?} */
10362
+ UserContentRatingLibComponent.prototype.contentdata;
10363
+ /** @type {?} */
10364
+ UserContentRatingLibComponent.prototype.scrollableItems;
10365
+ /** @type {?} */
10366
+ UserContentRatingLibComponent.prototype.ratingService;
10367
+ /** @type {?} */
10368
+ UserContentRatingLibComponent.prototype.userRatingSvc;
10369
+ }
10370
+
10371
+ /**
10372
+ * @fileoverview added by tsickle
10373
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
10374
+ */
10375
+ var AvatarPhotoLibComponent = /** @class */ (function () {
10376
+ function AvatarPhotoLibComponent() {
10377
+ this.size = '';
10378
+ this.defaulfColor = '';
10379
+ this.randomColor = false;
10380
+ this.showBadge = false;
10381
+ this.showInitials = false;
10382
+ this.random = Math.random().toString(36).slice(2);
10383
+ // public initials!: string
10384
+ this.colors = [
10385
+ '#EB7181',
10386
+ '#306933',
10387
+ '#000000',
10388
+ '#3670B2',
10389
+ '#4E9E87',
10390
+ '#7E4C8D',
10391
+ ];
10392
+ this.randomcolors = [
10393
+ '#EB7181',
10394
+ '#006400',
10395
+ '#000000',
10396
+ '#3670B2',
10397
+ '#4E9E87',
10398
+ '#7E4C8D',
10399
+ ];
10400
+ }
10401
+ /**
10402
+ * @return {?}
10403
+ */
10404
+ AvatarPhotoLibComponent.prototype.ngOnInit = /**
10405
+ * @return {?}
10406
+ */
10407
+ function () {
10408
+ if (!this.photoUrl) {
10409
+ this.showInitials = true;
10410
+ if (!this.initials) {
10411
+ this.createInititals();
10412
+ }
10413
+ if (this.datalen === 1) {
10414
+ if (this.defaulfColor) {
10415
+ this.randomcolors = [
10416
+ this.defaulfColor
10417
+ ];
10418
+ }
10419
+ else {
10420
+ this.randomcolors = [
10421
+ '#006400',
10422
+ ];
10423
+ }
10424
+ }
10425
+ /** @type {?} */
10426
+ var randomIndex = Math.floor(Math.random() * Math.floor(this.colors.length));
10427
+ this.circleColor = this.colors[randomIndex];
10428
+ if (this.randomColor) {
10429
+ /** @type {?} */
10430
+ var randomIndex1 = Math.floor(Math.random() * Math.floor(this.randomcolors.length));
10431
+ this.circleColor = this.randomcolors[randomIndex1];
10432
+ }
10433
+ }
10434
+ };
10435
+ /**
10436
+ * @param {?} change
10437
+ * @return {?}
10438
+ */
10439
+ AvatarPhotoLibComponent.prototype.ngOnChanges = /**
10440
+ * @param {?} change
10441
+ * @return {?}
10442
+ */
10443
+ function (change) {
10444
+ if (change.name.currentValue !== change.name.previousValue && !change.name.firstChange) {
10445
+ this.createInititals();
10446
+ }
10447
+ };
10448
+ Object.defineProperty(AvatarPhotoLibComponent.prototype, "userInitials", {
10449
+ get: /**
10450
+ * @return {?}
10451
+ */
10452
+ function () {
10453
+ return this.initials;
10454
+ },
10455
+ enumerable: true,
10456
+ configurable: true
10457
+ });
10458
+ /**
10459
+ * @private
10460
+ * @return {?}
10461
+ */
10462
+ AvatarPhotoLibComponent.prototype.createInititals = /**
10463
+ * @private
10464
+ * @return {?}
10465
+ */
10466
+ function () {
10467
+ /** @type {?} */
10468
+ var initials = '';
10469
+ /** @type {?} */
10470
+ var array = (this.name + " ").toString().split(' ');
10471
+ if (array[0] !== 'undefined' && typeof array[1] !== 'undefined') {
10472
+ initials += array[0].charAt(0);
10473
+ initials += array[1].charAt(0);
10474
+ }
10475
+ else {
10476
+ for (var i = 0; i < this.name.length; i += 1) {
10477
+ if (this.name.charAt(i) === ' ') {
10478
+ continue;
10479
+ }
10480
+ if (this.name.charAt(i) === this.name.charAt(i)) {
10481
+ initials += this.name.charAt(i);
10482
+ if (initials.length === 2) {
10483
+ break;
10484
+ }
10485
+ }
10486
+ }
10487
+ }
10488
+ this.initials = initials.toUpperCase();
10489
+ };
10490
+ AvatarPhotoLibComponent.decorators = [
10491
+ { type: core.Component, args: [{
10492
+ selector: 'sb-uic-avatar-photo',
10493
+ 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>",
10494
+ 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}"]
10495
+ }] }
10496
+ ];
10497
+ AvatarPhotoLibComponent.propDecorators = {
10498
+ datalen: [{ type: core.Input }],
10499
+ photoUrl: [{ type: core.Input }],
10500
+ name: [{ type: core.Input }],
10501
+ size: [{ type: core.Input }],
10502
+ defaulfColor: [{ type: core.Input }],
10503
+ randomColor: [{ type: core.Input }],
10504
+ initials: [{ type: core.Input }],
10505
+ showBadge: [{ type: core.Input }]
10506
+ };
10507
+ return AvatarPhotoLibComponent;
10508
+ }());
10509
+ if (false) {
10510
+ /** @type {?} */
10511
+ AvatarPhotoLibComponent.prototype.datalen;
10512
+ /** @type {?} */
10513
+ AvatarPhotoLibComponent.prototype.photoUrl;
10514
+ /** @type {?} */
10515
+ AvatarPhotoLibComponent.prototype.name;
10516
+ /** @type {?} */
10517
+ AvatarPhotoLibComponent.prototype.size;
10518
+ /** @type {?} */
10519
+ AvatarPhotoLibComponent.prototype.defaulfColor;
10520
+ /** @type {?} */
10521
+ AvatarPhotoLibComponent.prototype.randomColor;
10522
+ /** @type {?} */
10523
+ AvatarPhotoLibComponent.prototype.initials;
10524
+ /** @type {?} */
10525
+ AvatarPhotoLibComponent.prototype.showBadge;
10526
+ /** @type {?} */
10527
+ AvatarPhotoLibComponent.prototype.showInitials;
10528
+ /** @type {?} */
10529
+ AvatarPhotoLibComponent.prototype.circleColor;
10530
+ /** @type {?} */
10531
+ AvatarPhotoLibComponent.prototype.random;
10532
+ /**
10533
+ * @type {?}
10534
+ * @private
10535
+ */
10536
+ AvatarPhotoLibComponent.prototype.colors;
10537
+ /**
10538
+ * @type {?}
10539
+ * @private
10540
+ */
10541
+ AvatarPhotoLibComponent.prototype.randomcolors;
10542
+ }
10543
+
10544
+ /**
10545
+ * @fileoverview added by tsickle
10546
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
10547
+ */
10548
+ var AvatarPhotoLibModule = /** @class */ (function () {
10549
+ function AvatarPhotoLibModule() {
10550
+ }
10551
+ AvatarPhotoLibModule.decorators = [
10552
+ { type: core.NgModule, args: [{
10553
+ declarations: [AvatarPhotoLibComponent],
10554
+ imports: [
10555
+ common.CommonModule,
10556
+ router.RouterModule,
10557
+ material.MatButtonModule,
10558
+ material.MatIconModule,
10559
+ material.MatMenuModule,
10560
+ material.MatRippleModule,
10561
+ resolverV2.SbUiResolverModule,
10562
+ ],
10563
+ exports: [AvatarPhotoLibComponent],
10564
+ entryComponents: [AvatarPhotoLibComponent],
10565
+ },] }
10566
+ ];
10567
+ return AvatarPhotoLibModule;
10568
+ }());
10569
+
10570
+ /**
10571
+ * @fileoverview added by tsickle
10572
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
10573
+ */
10574
+ var SlidersNgContentLibComponent = /** @class */ (function (_super) {
10575
+ __extends(SlidersNgContentLibComponent, _super);
10576
+ function SlidersNgContentLibComponent(events, valueSvc) {
10577
+ var _this = _super.call(this) || this;
10578
+ _this.events = events;
10579
+ _this.valueSvc = valueSvc;
10580
+ _this.title = '';
10581
+ _this.loadNgContentData = false;
10582
+ _this.autoScroll = false;
10583
+ _this.currentIndexValue = new core.EventEmitter();
10584
+ _this.id = "banner_" + Math.random();
10585
+ _this.defaultMenuSubscribe = null;
10586
+ _this.isLtMedium$ = _this.valueSvc.isLtMedium$;
10587
+ _this.currentIndex = 0;
10588
+ _this.slideInterval = null;
10589
+ _this.isMobile = false;
10590
+ return _this;
10591
+ }
10592
+ /**
10593
+ * @return {?}
10594
+ */
10595
+ SlidersNgContentLibComponent.prototype.ngOnInit = /**
10596
+ * @return {?}
10597
+ */
10598
+ function () {
10599
+ var _this = this;
10600
+ if (this.autoScroll) {
10601
+ this.reInitiateSlideInterval();
10602
+ }
10603
+ this.defaultMenuSubscribe = this.isLtMedium$.subscribe((/**
10604
+ * @param {?} isLtMedium
10605
+ * @return {?}
10606
+ */
10607
+ function (isLtMedium) {
10608
+ _this.isMobile = isLtMedium;
10609
+ }));
10610
+ };
10611
+ /**
10612
+ * @return {?}
10613
+ */
10614
+ SlidersNgContentLibComponent.prototype.reInitiateSlideInterval = /**
10615
+ * @return {?}
10616
+ */
10617
+ function () {
10618
+ var _this = this;
10619
+ if (this.widgetData && this.widgetData.length > 1) {
10620
+ try {
10621
+ if (this.slideInterval) {
10622
+ this.slideInterval.unsubscribe();
10623
+ }
10624
+ }
10625
+ catch (e) {
10626
+ }
10627
+ finally {
10628
+ this.slideInterval = rxjs.interval(8000).subscribe((/**
10629
+ * @return {?}
10630
+ */
10631
+ function () {
10632
+ if (_this.currentIndex === _this.widgetData.length - 1) {
10633
+ _this.currentIndex = 0;
10634
+ _this.currentIndexValue.emit(_this.currentIndex);
10635
+ }
10636
+ else {
10637
+ _this.currentIndex += 1;
10638
+ _this.currentIndexValue.emit(_this.currentIndex);
10639
+ }
10640
+ }));
10641
+ }
10642
+ }
10643
+ };
10644
+ /**
10645
+ * @param {?} index
10646
+ * @return {?}
10647
+ */
10648
+ SlidersNgContentLibComponent.prototype.slideTo = /**
10649
+ * @param {?} index
10650
+ * @return {?}
10651
+ */
10652
+ function (index) {
10653
+ if (index >= 0 && index < this.widgetData.length) {
10654
+ this.currentIndex = index;
10655
+ this.currentIndexValue.emit(this.currentIndex);
10656
+ }
10657
+ else if (index === this.widgetData.length) {
10658
+ this.currentIndex = 0;
10659
+ this.currentIndexValue.emit(this.currentIndex);
10660
+ }
10661
+ else {
10662
+ this.currentIndex = this.widgetData.length + index;
10663
+ this.currentIndexValue.emit(this.currentIndex);
10664
+ }
10665
+ if (this.autoScroll) {
10666
+ this.reInitiateSlideInterval();
10667
+ }
10668
+ };
10669
+ Object.defineProperty(SlidersNgContentLibComponent.prototype, "isOpenInNewTab", {
10670
+ get: /**
10671
+ * @return {?}
10672
+ */
10673
+ function () {
10674
+ /** @type {?} */
10675
+ var currentData = this.widgetData[this.currentIndex];
10676
+ if (currentData.redirectUrl && currentData.redirectUrl.includes('mailto') || this.widgetData[this.currentIndex].openInNewTab) {
10677
+ return true;
10678
+ }
10679
+ return false;
10680
+ },
10681
+ enumerable: true,
10682
+ configurable: true
10683
+ });
10684
+ /**
10685
+ * @return {?}
10686
+ */
10687
+ SlidersNgContentLibComponent.prototype.openInNewTab = /**
10688
+ * @return {?}
10689
+ */
10690
+ function () {
10691
+ /** @type {?} */
10692
+ var currentData = this.widgetData[this.currentIndex];
10693
+ if (currentData.redirectUrl && currentData.redirectUrl.includes('mailto') || this.widgetData[this.currentIndex].openInNewTab) {
10694
+ window.open(currentData.redirectUrl);
10695
+ }
10696
+ };
10697
+ /**
10698
+ * @param {?} bannerUrl
10699
+ * @return {?}
10700
+ */
10701
+ SlidersNgContentLibComponent.prototype.raiseTelemetry = /**
10702
+ * @param {?} bannerUrl
10703
+ * @return {?}
10704
+ */
10705
+ function (bannerUrl) {
10706
+ this.openInNewTab();
10707
+ /** @type {?} */
10708
+ var path = window.location.pathname.replace('/', '');
10709
+ /** @type {?} */
10710
+ var url = path + window.location.search;
10711
+ this.events.raiseInteractTelemetry({
10712
+ type: 'click',
10713
+ subType: 'banner',
10714
+ }, {
10715
+ pageUrl: url,
10716
+ bannerRedirectUrl: bannerUrl,
10717
+ }, {
10718
+ pageIdExt: 'banner',
10719
+ module: utilsV2.WsEvents.EnumTelemetrymodules.CONTENT,
10720
+ });
10721
+ };
10722
+ /**
10723
+ * @return {?}
10724
+ */
10725
+ SlidersNgContentLibComponent.prototype.ngOnDestroy = /**
10726
+ * @return {?}
10727
+ */
10728
+ function () {
10729
+ if (this.defaultMenuSubscribe) {
10730
+ this.defaultMenuSubscribe.unsubscribe();
10731
+ }
10732
+ };
10733
+ SlidersNgContentLibComponent.decorators = [
10734
+ { type: core.Component, args: [{
10735
+ selector: 'sb-uic-sliders-ng-content',
10736
+ template: "<div class=\"banner-container {{isMobile? styleData?.responsive?.bannerMetaClass : styleData?.bannerMetaClass}}\" (swipeleft)=\"slideTo(currentIndex + 1)\" (swiperight)=\"slideTo(currentIndex - 1)\"\n *ngIf=\"widgetData?.length > 1\" [style.height]=\"isMobile? styleData?.responsive?.customHeight : styleData?.customHeight\"\n [ngStyle]=\"{'border-radius': styleData?.borderRadius || '12px'}\">\n <ng-container *ngIf=\"!loadNgContentData\">\n <a (click)=\"raiseTelemetry(widgetData[currentIndex].redirectUrl)\"\n [routerLink]=\" !isOpenInNewTab && widgetData[currentIndex].redirectUrl? widgetData[currentIndex].redirectUrl : null\" class=\"banner-overlay\"\n [ngClass]=\"{'cursor-auto': !widgetData[currentIndex].redirectUrl}\">\n <div class=\"banner WidgetInstanceId\" *ngFor=\"let slide of widgetData; let i = index\" [hidden]=\"i !== currentIndex\">\n <img i18n-alt alt=\"Page Banner\" [src]=\"slide.banners\" wsUtilsImageResponsive class=\"banner-image\" />\n </div>\n </a>\n <ng-container *ngIf=\"isMobile && styleData?.responsive?.dots !== 'hidden' || !isMobile && styleData?.dots !== 'hidden'\">\n <div class=\"banner-meta {{isMobile? styleData?.responsive?.bannerMetaAlign : styleData?.bannerMetaAlign}}\">\n <a [routerLink]=\" !isOpenInNewTab && widgetData[currentIndex].redirectUrl? widgetData[currentIndex].redirectUrl : null\" class=\"banner-title text-truncate\"\n *ngIf=\"widgetData[currentIndex].title\" [title]=\"widgetData[currentIndex].title\">\n {{ widgetData[currentIndex].title }}\n </a>\n <div class=\"dots-container\" *ngIf=\"widgetData?.length > 1\">\n <span class=\"dot\" [ngClass]=\"{ active: j === currentIndex }\" *ngFor=\"let slide of widgetData; let j = index\"\n (click)=\"slideTo(j)\"></span>\n </div>\n </div>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"loadNgContentData\">\n <!-- <div class=\"banner WidgetInstanceId\" *ngFor=\"let slide of widgetData; let i = index\" [hidden]=\"i !== currentIndex\"> -->\n <ng-content select=\"[sliderbody]\"></ng-content>\n <!-- </div> -->\n <ng-container *ngIf=\"isMobile && styleData?.responsive?.dots !== 'hidden' || !isMobile && styleData?.dots !== 'hidden'\">\n <div class=\"banner-meta {{isMobile? styleData?.responsive?.bannerMetaAlign : styleData?.bannerMetaAlign}}\">\n <a [routerLink]=\" !isOpenInNewTab && widgetData[currentIndex].redirectUrl? widgetData[currentIndex].redirectUrl : null\" class=\"banner-title text-truncate\"\n *ngIf=\"widgetData[currentIndex].title\" [title]=\"widgetData[currentIndex].title\">\n {{ widgetData[currentIndex].title }}\n </a>\n <div class=\"dots-container\" *ngIf=\"widgetData?.length > 1\">\n <span class=\"dot\" [ngClass]=\"{ active: j === currentIndex }\" *ngFor=\"let slide of widgetData; let j = index\"\n (click)=\"slideTo(j)\"></span>\n <ng-content select=\"[sliderMeta]\"></ng-content>\n </div>\n </div>\n </ng-container>\n </ng-container>\n <div class=\"navigation {{isMobile? styleData?.responsive?.arrowsPlacement : styleData?.arrowsPlacement}}\" \n *ngIf=\"isMobile && styleData?.responsive?.navigationArrows !== 'hidden' || !isMobile && styleData?.navigationArrows !== 'hidden'\">\n <a *ngIf=\"widgetData?.length > 1\" role=\"button\" class=\"prev\" (click)=\"slideTo(currentIndex - 1)\">&#10094;</a>\n <a *ngIf=\"widgetData?.length > 1\" role=\"button\" class=\"next\" (click)=\"slideTo(currentIndex + 1)\">&#10095;</a>\n </div>\n</div>\n<div class=\"banner-container-solo margin-top-s\" *ngIf=\"widgetData?.length == 1\">\n <img i18n-alt alt=\"Page Banner\" width=\"100%\" height=\"100%\" [src]=\"widgetData[0].banners\" wsUtilsImageResponsive class=\"banner-image-solo\" />\n</div>\n\n<!-- <ng-container *ngIf=\"!widgetData?.length\">\n <div class=\"slider default-slider h-full\">\n <div class=\"relative h-full\">\n <img class=\"h-full\" src=\"assets/icons/home/default-slider-image.svg\" alt=\"\">\n <div class=\"default-title rounded-full\">\n <p class=\"mat-h1\">{{title}}</p>\n </div>\n </div>\n </div>\n</ng-container> -->\n",
10737
+ styles: [".banner-container{min-height:243px;position:relative;margin:auto;padding-bottom:40px}.banner-container.inline-meta{padding-bottom:0!important}.banner-container.flat .banner .banner-image{border-radius:0!important}.banner-overlay{z-index:1;top:0;left:0;width:100%;height:100%;background:linear-gradient(to left,rgba(0,0,0,.25) 0,rgba(0,0,0,0) 15%,rgba(0,0,0,0) 85%,rgba(0,0,0,.25) 100%);border-radius:inherit}.banner{-webkit-animation-name:fade;-webkit-animation-duration:1.5s;animation-name:fade;animation-duration:1.5s;border-radius:inherit;height:inherit}.banner .banner-image{width:100%;min-height:243px;display:block;border-radius:inherit;height:inherit}.banner-meta{text-align:center;z-index:2;padding:8px 12px;position:absolute;bottom:0;left:50%;border-radius:12px;transform:translateX(-50%);box-sizing:border-box}.banner-meta.left{left:0;transform:translateX(0)}.banner-meta.right{left:100%;transform:translateX(-100%)}.banner-meta.top-center{left:0;bottom:100%;transform:translateX(-100%)}.banner-meta .banner-title{color:#f2f2f2;margin-bottom:8px;font-size:1.1rem}@media only screen and (max-width:599px){.banner-meta .banner-title{display:none}}.banner-meta .dots-container{padding:8px;display:flex;align-items:center;justify-content:center}.banner-meta .dots-container .dot{cursor:pointer;height:6px;width:6px;margin:0 4px;background-color:rgba(0,0,0,.4);border-radius:50%;display:inline-block;transition:background-color .5s!important}@media only screen and (max-width:599px){.banner-meta .dots-container .dot{height:8px;width:8px;margin:0 4px}}.banner-meta .dots-container .dot.active{border-radius:4px;background-color:#f3962f;width:16px}@keyframes fade{from{opacity:.25}to{opacity:1}}.next,.prev{cursor:pointer;position:absolute;top:50%;transform:translateY(-50%);color:#fff;font-weight:700;background-color:#1b2133!important;border-radius:50%;z-index:999;height:32px!important;width:32px!important;display:flex;align-items:center;margin-top:-16px;justify-content:center}.prev{left:0;margin-left:-16px}.next{right:0;margin-right:-16px}.navigation.bottom-right .prev{left:unset;right:45px;bottom:-15px;top:unset}.navigation.bottom-right .next{left:unset;right:15px;bottom:-15px;top:unset}.navigation.bottom-center .prev{left:calc(50% - 20px);right:unset;bottom:-15px;top:unset}.navigation.bottom-center .next{left:calc(50% + 20px);right:unset;bottom:-15px;top:unset}.navigation.bottom-left .prev{left:15px;right:unset;bottom:-15px;top:unset}.navigation.bottom-left .next{left:60px;right:unset;bottom:-15px;top:unset}.navigation.middle-inline .prev{left:30px}.navigation.middle-inline .next{right:30px}.banner-container-solo{overflow:hidden;margin:auto;border-radius:12px}.banner-image-solo{width:100%;display:block;border-radius:12px}.default-slider{height:100%;background:#d4e2fb}.default-slider .default-title{text-align:center;position:absolute;top:50%;left:0;right:0;margin:auto;transform:translateY(-50%);z-index:999;background:#e6efff;padding:32px;width:500px}.default-slider .default-title p{word-break:break-word;margin:0!important;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;text-transform:uppercase}@media screen and (max-width:768px){.default-slider{height:384px;width:100%}.default-slider .default-title{width:unset!important}}"]
10738
+ }] }
10739
+ ];
10740
+ /** @nocollapse */
10741
+ SlidersNgContentLibComponent.ctorParameters = function () { return [
10742
+ { type: utilsV2.EventService },
10743
+ { type: utilsV2.ValueService }
10744
+ ]; };
10745
+ SlidersNgContentLibComponent.propDecorators = {
10746
+ widgetData: [{ type: core.Input }],
10747
+ styleData: [{ type: core.Input }],
10748
+ title: [{ type: core.Input }],
10749
+ loadNgContentData: [{ type: core.Input }],
10750
+ autoScroll: [{ type: core.Input }],
10751
+ currentIndexValue: [{ type: core.Output }],
10752
+ id: [{ type: core.HostBinding, args: ['id',] }],
10753
+ currentIndex: [{ type: core.Input }]
10754
+ };
10755
+ return SlidersNgContentLibComponent;
10756
+ }(resolverV2.WidgetBaseComponent));
10757
+ if (false) {
10758
+ /** @type {?} */
10759
+ SlidersNgContentLibComponent.prototype.widgetData;
10760
+ /** @type {?} */
10761
+ SlidersNgContentLibComponent.prototype.styleData;
10762
+ /** @type {?} */
10763
+ SlidersNgContentLibComponent.prototype.title;
10764
+ /** @type {?} */
10765
+ SlidersNgContentLibComponent.prototype.loadNgContentData;
10766
+ /** @type {?} */
10767
+ SlidersNgContentLibComponent.prototype.autoScroll;
10768
+ /** @type {?} */
10769
+ SlidersNgContentLibComponent.prototype.currentIndexValue;
10770
+ /** @type {?} */
10771
+ SlidersNgContentLibComponent.prototype.id;
10772
+ /**
10773
+ * @type {?}
10774
+ * @private
10775
+ */
10776
+ SlidersNgContentLibComponent.prototype.defaultMenuSubscribe;
10777
+ /** @type {?} */
10778
+ SlidersNgContentLibComponent.prototype.isLtMedium$;
10779
+ /** @type {?} */
10780
+ SlidersNgContentLibComponent.prototype.currentIndex;
10781
+ /** @type {?} */
10782
+ SlidersNgContentLibComponent.prototype.slideInterval;
10783
+ /** @type {?} */
10784
+ SlidersNgContentLibComponent.prototype.isMobile;
10785
+ /**
10786
+ * @type {?}
10787
+ * @private
10788
+ */
10789
+ SlidersNgContentLibComponent.prototype.events;
10790
+ /**
10791
+ * @type {?}
10792
+ * @private
10793
+ */
10794
+ SlidersNgContentLibComponent.prototype.valueSvc;
10795
+ }
10796
+
10797
+ /**
10798
+ * @fileoverview added by tsickle
10799
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
10800
+ */
10801
+ /* tslint:enable */
10802
+ var /* tslint:enable */
10803
+ MyHammerConfig$1 = /** @class */ (function (_super) {
10804
+ __extends(MyHammerConfig, _super);
10805
+ function MyHammerConfig() {
10806
+ return _super !== null && _super.apply(this, arguments) || this;
10807
+ }
10808
+ /**
10809
+ * @param {?} element
10810
+ * @return {?}
10811
+ */
10812
+ MyHammerConfig.prototype.buildHammer = /**
10813
+ * @param {?} element
10814
+ * @return {?}
10815
+ */
10816
+ function (element) {
10817
+ /** @type {?} */
10818
+ var mc = new Hammer(element, {
10819
+ touchAction: 'pan-y',
10820
+ });
10821
+ return mc;
10822
+ };
10823
+ return MyHammerConfig;
10824
+ }(platformBrowser.HammerGestureConfig));
10825
+ // tslint:disable-next-line: max-classes-per-file
10826
+ var SlidersNgContentLibModule = /** @class */ (function () {
10827
+ function SlidersNgContentLibModule() {
10828
+ }
10829
+ SlidersNgContentLibModule.decorators = [
10830
+ { type: core.NgModule, args: [{
10831
+ declarations: [SlidersNgContentLibComponent],
10832
+ imports: [
10833
+ common.CommonModule,
10834
+ router.RouterModule,
10835
+ NavigationModule,
10836
+ ImageResponsiveModule,
10837
+ ],
10838
+ exports: [SlidersNgContentLibComponent],
10839
+ entryComponents: [SlidersNgContentLibComponent],
10840
+ providers: [
10841
+ {
10842
+ provide: platformBrowser.HAMMER_GESTURE_CONFIG,
10843
+ useClass: MyHammerConfig$1,
10844
+ },
10845
+ ],
10846
+ },] }
10847
+ ];
10848
+ return SlidersNgContentLibModule;
10849
+ }());
10850
+
10851
+ /**
10852
+ * @fileoverview added by tsickle
10853
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
10854
+ */
10855
+ var ScrollableItemModule = /** @class */ (function () {
10856
+ function ScrollableItemModule() {
10857
+ }
10858
+ ScrollableItemModule.decorators = [
10859
+ { type: core.NgModule, args: [{
10860
+ declarations: [ScrollableItemDirective],
10861
+ imports: [
10862
+ common.CommonModule,
10863
+ ],
10864
+ exports: [ScrollableItemDirective],
10865
+ },] }
10866
+ ];
10867
+ return ScrollableItemModule;
10868
+ }());
10869
+
10870
+ /**
10871
+ * @fileoverview added by tsickle
10872
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
10873
+ */
10874
+ var UserContentRatingLibModule = /** @class */ (function () {
10875
+ function UserContentRatingLibModule() {
10876
+ }
10877
+ UserContentRatingLibModule.decorators = [
10878
+ { type: core.NgModule, args: [{
10879
+ declarations: [UserContentRatingLibComponent],
10880
+ imports: [
10881
+ common.CommonModule,
10882
+ material.MatIconModule,
10883
+ material.MatChipsModule,
10884
+ SkeletonLoaderLibModule,
10885
+ SlidersLibModule,
10886
+ CardsModule,
10887
+ AvatarPhotoLibModule,
10888
+ SlidersNgContentLibModule,
10889
+ ScrollableItemModule
10890
+ ],
10891
+ exports: [UserContentRatingLibComponent],
10892
+ providers: [RatingService, UserContentRatingLibService],
10893
+ schemas: [core.CUSTOM_ELEMENTS_SCHEMA]
10894
+ },] }
10895
+ ];
10896
+ return UserContentRatingLibModule;
10897
+ }());
10898
+
9284
10899
  exports.CalenderModule = CalenderModule;
9285
10900
  exports.CardsModule = CardsModule;
9286
10901
  exports.CommonMethodsService = CommonMethodsService;
@@ -9295,19 +10910,32 @@
9295
10910
  exports.MyHammerConfig = MyHammerConfig;
9296
10911
  exports.ROOT_WIDGET_CONFIG = ROOT_WIDGET_CONFIG;
9297
10912
  exports.SlidersLibModule = SlidersLibModule;
10913
+ exports.UserContentRatingLibModule = UserContentRatingLibModule;
9298
10914
  exports.WIDGET_REGISTERED_LIB_MODULES = WIDGET_REGISTERED_LIB_MODULES;
9299
10915
  exports.WIDGET_REGISTRATION_LIB_CONFIG = WIDGET_REGISTRATION_LIB_CONFIG;
9300
10916
  exports.ɵa = ContentStripWithTabsLibComponent;
9301
10917
  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;
10918
+ exports.ɵba = PipePublicURL;
10919
+ exports.ɵbb = DisplayContentTypeLibModule;
10920
+ exports.ɵbc = DisplayContentTypeLibComponent;
10921
+ exports.ɵbd = DefaultThumbnailModule;
10922
+ exports.ɵbe = DefaultThumbnailDirective;
10923
+ exports.ɵbf = PipeDurationTransformModule;
10924
+ exports.ɵbg = PipeDurationTransformPipe;
10925
+ exports.ɵbh = CompetencyPassbookComponent;
10926
+ exports.ɵbi = CompetencyPassbookService;
10927
+ exports.ɵbj = PillsModule;
10928
+ exports.ɵbk = PillsComponent;
10929
+ exports.ɵbl = UserContentRatingLibComponent;
10930
+ exports.ɵbm = ScrollableItemDirective;
10931
+ exports.ɵbn = RatingService;
10932
+ exports.ɵbo = UserContentRatingLibService;
10933
+ exports.ɵbp = AvatarPhotoLibModule;
10934
+ exports.ɵbq = AvatarPhotoLibComponent;
10935
+ exports.ɵbr = MyHammerConfig$1;
10936
+ exports.ɵbs = SlidersNgContentLibModule;
10937
+ exports.ɵbt = SlidersNgContentLibComponent;
10938
+ exports.ɵbu = ScrollableItemModule;
9311
10939
  exports.ɵc = WidgetUserService;
9312
10940
  exports.ɵd = MultilingualTranslationsService;
9313
10941
  exports.ɵe = ConfigurationsService;
@@ -9323,15 +10951,15 @@
9323
10951
  exports.ɵo = SkeletonLoaderLibModule;
9324
10952
  exports.ɵp = SkeletonLoaderLibComponent;
9325
10953
  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;
10954
+ exports.ɵr = CalenderDayComponent;
10955
+ exports.ɵs = CommonStripComponent;
10956
+ exports.ɵt = CardResourceComponent;
10957
+ exports.ɵu = CardsComponent;
10958
+ exports.ɵv = CardPortraitComponent;
10959
+ exports.ɵw = CardUserComponent;
10960
+ exports.ɵx = CardLandscapeComponent;
10961
+ exports.ɵy = CardWideComponent;
10962
+ exports.ɵz = PipePublicURLModule;
9335
10963
 
9336
10964
  Object.defineProperty(exports, '__esModule', { value: true });
9337
10965