@sunbird-cb/consumption 0.0.13 → 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 (47) hide show
  1. package/bundles/sunbird-cb-consumption.umd.js +247 -684
  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 +15 -4
  6. package/esm2015/lib/_common/cards/card-wide/card-wide.component.js +1 -1
  7. package/esm2015/lib/_common/cards/cards.component.js +2 -2
  8. package/esm2015/lib/_common/sliders-ng-content/sliders-ng-content.component.js +15 -6
  9. package/esm2015/lib/_common/user-content-rating/user-content-rating-lib.component.js +139 -0
  10. package/esm2015/lib/_common/user-content-rating/user-content-rating-lib.module.js +38 -0
  11. package/esm2015/lib/_common/user-content-rating/user-content-rating-lib.service.js +45 -0
  12. package/esm2015/lib/_directives/scrollable-item/scrollable-item.directive.js +42 -0
  13. package/esm2015/lib/_directives/scrollable-item/scrollable-item.module.js +19 -0
  14. package/esm2015/public-api.js +2 -2
  15. package/esm2015/sunbird-cb-consumption.js +11 -8
  16. package/esm5/lib/_common/avatar-photo-lib/avatar-photo-lib.component.js +15 -4
  17. package/esm5/lib/_common/cards/card-wide/card-wide.component.js +1 -1
  18. package/esm5/lib/_common/cards/cards.component.js +2 -2
  19. package/esm5/lib/_common/sliders-ng-content/sliders-ng-content.component.js +15 -6
  20. package/esm5/lib/_common/user-content-rating/user-content-rating-lib.component.js +162 -0
  21. package/esm5/lib/_common/user-content-rating/user-content-rating-lib.module.js +42 -0
  22. package/esm5/lib/_common/user-content-rating/user-content-rating-lib.service.js +48 -0
  23. package/esm5/lib/_directives/scrollable-item/scrollable-item.directive.js +45 -0
  24. package/esm5/lib/_directives/scrollable-item/scrollable-item.module.js +23 -0
  25. package/esm5/public-api.js +2 -2
  26. package/esm5/sunbird-cb-consumption.js +11 -8
  27. package/fesm2015/sunbird-cb-consumption.js +217 -671
  28. package/fesm2015/sunbird-cb-consumption.js.map +1 -1
  29. package/fesm5/sunbird-cb-consumption.js +238 -678
  30. package/fesm5/sunbird-cb-consumption.js.map +1 -1
  31. package/lib/_common/avatar-photo-lib/avatar-photo-lib.component.d.ts +1 -0
  32. package/lib/_common/sliders-ng-content/sliders-ng-content.component.d.ts +1 -0
  33. package/lib/_common/user-content-rating/user-content-rating-lib.component.d.ts +22 -0
  34. package/lib/_common/user-content-rating/user-content-rating-lib.module.d.ts +2 -0
  35. package/lib/_common/user-content-rating/user-content-rating-lib.service.d.ts +7 -0
  36. package/lib/_directives/scrollable-item/scrollable-item.directive.d.ts +7 -0
  37. package/lib/_directives/scrollable-item/scrollable-item.module.d.ts +2 -0
  38. package/package.json +1 -1
  39. package/public-api.d.ts +1 -1
  40. package/sunbird-cb-consumption.d.ts +9 -6
  41. package/sunbird-cb-consumption.metadata.json +1 -1
  42. package/esm2015/lib/_common/user-content-rating/user-content-rating.component.js +0 -710
  43. package/esm2015/lib/_common/user-content-rating/user-content-rating.module.js +0 -35
  44. package/esm5/lib/_common/user-content-rating/user-content-rating.component.js +0 -726
  45. package/esm5/lib/_common/user-content-rating/user-content-rating.module.js +0 -39
  46. package/lib/_common/user-content-rating/user-content-rating.component.d.ts +0 -167
  47. package/lib/_common/user-content-rating/user-content-rating.module.d.ts +0 -2
@@ -1,4 +1,4 @@
1
- import { Injectable, ɵɵdefineInjectable, Component, EventEmitter, Input, Output, ViewChild, NgModule, ɵɵinject, Inject, HostBinding, Directive, HostListener, CUSTOM_ELEMENTS_SCHEMA, Pipe } from '@angular/core';
1
+ import { Injectable, ɵɵdefineInjectable, Component, EventEmitter, Input, Output, ViewChild, NgModule, ɵɵinject, Inject, HostBinding, Directive, HostListener, CUSTOM_ELEMENTS_SCHEMA, Pipe, ElementRef, ViewChildren } from '@angular/core';
2
2
  import { CommonModule, DatePipe } from '@angular/common';
3
3
  import { Router, RouterModule } from '@angular/router';
4
4
  import { fromEvent, timer, BehaviorSubject, of, EMPTY, ReplaySubject, Subject, throwError, interval } from 'rxjs';
@@ -6981,7 +6981,7 @@ class CardsComponent extends WidgetBaseComponent {
6981
6981
  CardsComponent.decorators = [
6982
6982
  { type: Component, args: [{
6983
6983
  selector: 'sb-uic-cards',
6984
- template: "<div class=\"widget-card-content-new\">\n <ng-container *ngIf=\"widgetData && (((widgetData?.deletedMode || 'none') === 'hide' && !!!isLiveOrMarkForDeletion)\n ? false\n : !((widgetData?.intranetMode || 'none') === 'hide' && !!showIntranetContent))\"\n [ngSwitch]=\"( (widgetData && widgetData?.cardSubType) || 'cardPortraitLib')\">\n <ng-container *ngSwitchDefault [ngTemplateOutlet]=\"cardPortraitLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'user-card'\" [ngTemplateOutlet]=\"cardUser\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-lib-skeleton'\" [ngTemplateOutlet]=\"cardPortraitLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-portrait-lib'\" [ngTemplateOutlet]=\"cardPortraitLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-landscape-lib-skeleton'\" [ngTemplateOutlet]=\"cardLandscapeLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-landscape-lib'\" [ngTemplateOutlet]=\"cardLandscapeLib\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-lib-skeleton'\" [ngTemplateOutlet]=\"cardWideLibSkeleton\"></ng-container>\n <ng-container *ngSwitchCase=\"'card-wide-lib'\" [ngTemplateOutlet]=\"cardWideLib\"></ng-container>\n </ng-container>\n</div>\n\n<ng-template #cardPortraitLibSkeleton>\n <sb-uic-card-portrait [widgetData]=\"widgetData\" [isCardLoading]=\"true\"></sb-uic-card-portrait>\n</ng-template>\n<ng-template #cardPortraitLib>\n <sb-uic-card-portrait (contentData)=\"getRedirectUrlData($event)\" [widgetData]=\"widgetData\" [isCardLoading]=\"false\"></sb-uic-card-portrait>\n</ng-template>\n<ng-template #cardLandscapeLibSkeleton>\n <sb-uic-card-landscape [widgetData]=\"widgetData\" [isCardLoading]=\"true\"></sb-uic-card-landscape>\n</ng-template>\n<ng-template #cardLandscapeLib>\n <sb-uic-card-landscape [widgetData]=\"widgetData\" [isCardLoading]=\"false\"></sb-uic-card-landscape>\n</ng-template>\n\n<ng-template #cardWideLib>\n <sb-uic-card-wide [widgetData]=\"widgetData\"></sb-uic-card-wide>\n</ng-template>\n<ng-template #cardWideLibSkeleton>\n <sb-uic-card-wide [widgetData]=\"widgetData\"></sb-uic-card-wide>\n</ng-template>\n\n <ng-template #cardUser>\n <sb-uic-card-user [widgetData]=\"widgetData\"></sb-uic-card-user>\n </ng-template>\n",
6984
+ 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",
6985
6985
  styles: [""]
6986
6986
  }] }
6987
6987
  ];
@@ -7964,7 +7964,7 @@ CardWideComponent.decorators = [
7964
7964
  { type: Component, args: [{
7965
7965
  selector: 'sb-uic-card-wide',
7966
7966
  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",
7967
- 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}"]
7967
+ 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}}"]
7968
7968
  }] }
7969
7969
  ];
7970
7970
  /** @nocollapse */
@@ -8725,657 +8725,141 @@ if (false) {
8725
8725
  * @fileoverview added by tsickle
8726
8726
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8727
8727
  */
8728
- class UserContentRatingComponent {
8728
+ class ScrollableItemDirective {
8729
+ /**
8730
+ * @param {?} el
8731
+ */
8732
+ constructor(el) {
8733
+ this.el = el;
8734
+ }
8735
+ /**
8736
+ * @param {?} blockValue
8737
+ * @return {?}
8738
+ */
8739
+ scrollIntoView(blockValue) {
8740
+ this.el.nativeElement.scrollIntoView({ behavior: 'smooth', block: blockValue });
8741
+ }
8742
+ }
8743
+ ScrollableItemDirective.decorators = [
8744
+ { type: Directive, args: [{
8745
+ selector: '[sbUicScrollableItem]'
8746
+ },] }
8747
+ ];
8748
+ /** @nocollapse */
8749
+ ScrollableItemDirective.ctorParameters = () => [
8750
+ { type: ElementRef }
8751
+ ];
8752
+ ScrollableItemDirective.propDecorators = {
8753
+ key: [{ type: Input, args: ['sbUicScrollableItem',] }]
8754
+ };
8755
+ if (false) {
8756
+ /** @type {?} */
8757
+ ScrollableItemDirective.prototype.key;
8758
+ /**
8759
+ * @type {?}
8760
+ * @private
8761
+ */
8762
+ ScrollableItemDirective.prototype.el;
8763
+ }
8764
+
8765
+ /**
8766
+ * @fileoverview added by tsickle
8767
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8768
+ */
8769
+ /** @type {?} */
8770
+ const API_END_POINTS$4 = {
8771
+ TOP_REVIEWS: `/apis/proxies/v8/ratings/v1/topReviews`
8772
+ };
8773
+ class UserContentRatingLibService {
8774
+ /**
8775
+ * @param {?} http
8776
+ */
8777
+ constructor(http) {
8778
+ this.http = http;
8779
+ }
8780
+ /**
8781
+ * @param {?} doId
8782
+ * @return {?}
8783
+ */
8784
+ fetchTopReviews(doId) {
8785
+ return this.http.get(`${API_END_POINTS$4.TOP_REVIEWS}/${doId}`);
8786
+ }
8787
+ }
8788
+ UserContentRatingLibService.decorators = [
8789
+ { type: Injectable, args: [{
8790
+ providedIn: 'root'
8791
+ },] }
8792
+ ];
8793
+ /** @nocollapse */
8794
+ UserContentRatingLibService.ctorParameters = () => [
8795
+ { type: HttpClient }
8796
+ ];
8797
+ /** @nocollapse */ UserContentRatingLibService.ngInjectableDef = ɵɵdefineInjectable({ factory: function UserContentRatingLibService_Factory() { return new UserContentRatingLibService(ɵɵinject(HttpClient)); }, token: UserContentRatingLibService, providedIn: "root" });
8798
+ if (false) {
8799
+ /**
8800
+ * @type {?}
8801
+ * @private
8802
+ */
8803
+ UserContentRatingLibService.prototype.http;
8804
+ }
8805
+
8806
+ /**
8807
+ * @fileoverview added by tsickle
8808
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
8809
+ */
8810
+ class UserContentRatingLibComponent {
8729
8811
  /**
8730
8812
  * @param {?} ratingService
8813
+ * @param {?} userRatingSvc
8731
8814
  */
8732
- constructor(ratingService) {
8815
+ constructor(ratingService, userRatingSvc) {
8733
8816
  this.ratingService = ratingService;
8817
+ this.userRatingSvc = userRatingSvc;
8734
8818
  this.currentIndex = 0;
8735
- this.styleData = {
8736
- "bannerMetaClass": "inline-meta",
8737
- "bannerMeta": "visible",
8738
- "bannerMetaAlign": "right",
8739
- "navigationArrows": "visible",
8740
- "borderRadius": "0",
8741
- "customHeight": "424px",
8742
- "arrowsPlacement": "middle-inline",
8743
- "responsive": {
8744
- "bannerMetaClass": "inline-meta",
8745
- "customHeight": "232px",
8746
- "bannerMetaAlign": "right",
8747
- "navigationArrows": "visible",
8748
- "dots": "hidden",
8749
- "arrowsPlacement": "middle-inline"
8750
- }
8751
- };
8752
- this.sliders = [
8753
- {
8754
- "active": true,
8755
- "banners": {
8756
- "l": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
8757
- "m": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
8758
- "s": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
8759
- "xl": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
8760
- "xs": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
8761
- "xxl": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png"
8762
- },
8763
- "redirectUrl": "",
8764
- "queryParams": {},
8765
- "title": ""
8766
- },
8767
- {
8768
- "active": true,
8769
- "banners": {
8770
- "l": "https://portal.karmayogi.nic.in/content-store/content/do_114051312372424704125/artifact/do_114051312372424704125_1715248147439_l.png",
8771
- "m": "https://portal.karmayogi.nic.in/content-store/content/do_114051312372424704125/artifact/do_114051312372424704125_1715248147439_l.png",
8772
- "s": "https://portal.karmayogi.nic.in/content-store/content/do_114051312372424704125/artifact/do_114051312372424704125_1715248147439_l.png",
8773
- "xl": "https://portal.karmayogi.nic.in/content-store/content/do_114051312372424704125/artifact/do_114051312372424704125_1715248147439_l.png",
8774
- "xs": "https://portal.karmayogi.nic.in/content-store/content/do_114051312372424704125/artifact/do_114051312372424704125_1715248147439_l.png",
8775
- "xxl": "https://portal.karmayogi.nic.in/content-store/content/do_114051312372424704125/artifact/do_114051312372424704125_1715248147439_l.png"
8776
- },
8777
- "redirectUrl": "",
8778
- "queryParams": {},
8779
- "title": ""
8780
- },
8781
- {
8782
- "active": true,
8783
- "banners": {
8784
- "l": "https://portal.karmayogi.nic.in/content-store/content/do_114051314864234496126/artifact/do_114051314864234496126_1715248438443_l.png",
8785
- "m": "https://portal.karmayogi.nic.in/content-store/content/do_114051314864234496126/artifact/do_114051314864234496126_1715248438443_l.png",
8786
- "s": "https://portal.karmayogi.nic.in/content-store/content/do_114051314864234496126/artifact/do_114051314864234496126_1715248438443_l.png",
8787
- "xl": "https://portal.karmayogi.nic.in/content-store/content/do_114051314864234496126/artifact/do_114051314864234496126_1715248438443_l.png",
8788
- "xs": "https://portal.karmayogi.nic.in/content-store/content/do_114051314864234496126/artifact/do_114051314864234496126_1715248438443_l.png",
8789
- "xxl": "https://portal.karmayogi.nic.in/content-store/content/do_114051314864234496126/artifact/do_114051314864234496126_1715248438443_l.png"
8790
- },
8791
- "redirectUrl": "",
8792
- "queryParams": {},
8793
- "title": ""
8794
- },
8795
- {
8796
- "active": true,
8797
- "banners": {
8798
- "l": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
8799
- "m": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
8800
- "s": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
8801
- "xl": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
8802
- "xs": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
8803
- "xxl": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png"
8804
- },
8805
- "redirectUrl": "",
8806
- "queryParams": {},
8807
- "title": ""
8808
- },
8809
- {
8810
- "active": true,
8811
- "banners": {
8812
- "l": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
8813
- "m": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
8814
- "s": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
8815
- "xl": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
8816
- "xs": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
8817
- "xxl": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png"
8818
- },
8819
- "redirectUrl": "",
8820
- "queryParams": {},
8821
- "title": ""
8822
- }
8823
- ];
8824
- this.contentCard = {
8825
- "content": {
8826
- "identifier": "do_113990515935854592111",
8827
- "competencies_v5": [
8828
- {
8829
- "competencyArea": "Behavioural",
8830
- "competencyAreaId": 1,
8831
- "competencyAreaDescription": "Behavioural Competency Area",
8832
- "competencyTheme": "Collaboration",
8833
- "competencyThemeId": 25,
8834
- "competecnyThemeDescription": "Collaboration competency Theme",
8835
- "competencyThemeType": "Core",
8836
- "competencySubTheme": "Diversity & Inclusion",
8837
- "competencySubThemeId": 27,
8838
- "competecnySubThemeDescription": "Diversity & Inclusion Competency Sub-Theme"
8839
- }
8840
- ],
8841
- "description": "Invite only program",
8842
- "organisation": [
8843
- "Ministry of Finance"
8844
- ],
8845
- "creatorLogo": null,
8846
- "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_1139430185765847041226/artifact/do_1139430185765847041226_1702028635111_maxresdefault.jpg",
8847
- "duration": "2280",
8848
- "additionalTags": null,
8849
- "appIcon": "https://static.karmayogiprod.nic.in/igotqa/collection/do_113990515935854592111/artifact/do_1139430185765847041226_1702028635111_maxresdefault.thumb.jpg",
8850
- "primaryCategory": "Program",
8851
- "name": "Invite only program",
8852
- "avgRating": null,
8853
- "contentType": "Course"
8854
- },
8855
- "cardSubType": "card-wide-lib",
8856
- "cardCustomeClass": "",
8857
- "context": {
8858
- "pageSection": "featuredContents",
8859
- "position": 3
8860
- },
8861
- "review": "Credit",
8862
- "rating": 5.0,
8863
- "userDetails": {
8864
- "firstName": "Agri usertwo",
8865
- "userId": "f00473e1-54e8-40b7-b541-461250f298d1",
8866
- "profileImageUrl": null
8867
- }
8868
- };
8869
- this.widgetData = {
8870
- cardSubType: ''
8871
- };
8872
- this.responseData = [
8873
- {
8874
- "review": "Credit",
8875
- "rating": 5.0,
8876
- "userDetails": {
8877
- "firstName": "Agri usertwo",
8878
- "userId": "f00473e1-54e8-40b7-b541-461250f298d1",
8879
- "profileImageUrl": null
8880
- },
8881
- "content": {
8882
- "identifier": "do_113990515935854592111",
8883
- "competencies_v5": [
8884
- {
8885
- "competencyArea": "Behavioural",
8886
- "competencyAreaId": 1,
8887
- "competencyAreaDescription": "Behavioural Competency Area",
8888
- "competencyTheme": "Collaboration",
8889
- "competencyThemeId": 25,
8890
- "competecnyThemeDescription": "Collaboration competency Theme",
8891
- "competencyThemeType": "Core",
8892
- "competencySubTheme": "Diversity & Inclusion",
8893
- "competencySubThemeId": 27,
8894
- "competecnySubThemeDescription": "Diversity & Inclusion Competency Sub-Theme"
8895
- }
8896
- ],
8897
- "description": "Invite only program",
8898
- "organisation": [
8899
- "Ministry of Finance"
8900
- ],
8901
- "creatorLogo": null,
8902
- "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_1139430185765847041226/artifact/do_1139430185765847041226_1702028635111_maxresdefault.jpg",
8903
- "duration": "2280",
8904
- "additionalTags": null,
8905
- "appIcon": "https://static.karmayogiprod.nic.in/igotqa/collection/do_113990515935854592111/artifact/do_1139430185765847041226_1702028635111_maxresdefault.thumb.jpg",
8906
- "primaryCategory": "Program",
8907
- "name": "Invite only program",
8908
- "avgRating": null,
8909
- "contentType": "Course"
8910
- },
8911
- "cardSubType": "card-wide-lib",
8912
- "cardCustomeClass": "",
8913
- "context": {
8914
- "pageSection": "featuredContents",
8915
- "position": 3
8916
- }
8917
- },
8918
- {
8919
- "review": "Abc xyz1",
8920
- "rating": 5.0,
8921
- "userDetails": {
8922
- "firstName": "Qa test user one @#$ 123",
8923
- "userId": "7fd686b6-d5b2-4e0a-a43f-d6e57cd2ea09",
8924
- "profileImageUrl": null
8925
- },
8926
- "cardSubType": "card-wide-lib",
8927
- "cardCustomeClass": "",
8928
- "context": {
8929
- "pageSection": "featuredContents",
8930
- "position": 3
8931
- },
8932
- "content": {
8933
- "identifier": "do_113987549775609856182_rc",
8934
- "competencies_v5": [
8935
- {
8936
- "competencyArea": "Domain",
8937
- "competencyAreaId": 145,
8938
- "competencyAreaDescription": "Domain Competency Area",
8939
- "competencyTheme": "Account Management",
8940
- "competencyThemeId": 148,
8941
- "competecnyThemeDescription": "Account Management competency Theme",
8942
- "competencyThemeType": "Core",
8943
- "competencySubTheme": "Account Management",
8944
- "competencySubThemeId": 149,
8945
- "competecnySubThemeDescription": "Account Management Competency Sub-Theme"
8946
- }
8947
- ],
8948
- "description": "Course Check for MDO Specific All Users 09 Feb",
8949
- "organisation": [
8950
- "Ministry of Finance"
8951
- ],
8952
- "creatorLogo": null,
8953
- "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_11395704427130060819/artifact/do_11395704427130060819_1703740756028_capture71703740758098.png",
8954
- "duration": "606",
8955
- "additionalTags": null,
8956
- "appIcon": "https://static.karmayogiprod.nic.in/igotqa/collection/do_113987549775609856182_rc/artifact/do_11395704427130060819_1703740756028_capture71703740758098.thumb.png",
8957
- "primaryCategory": "Course",
8958
- "name": "Course Check for MDO Specific All Users 09 Feb",
8959
- "avgRating": 5.0,
8960
- "contentType": "Course"
8961
- }
8962
- },
8963
- {
8964
- "review": "Testing ratings - Lorem ipsum dolor sit amet consectetur adipisicing elit. Eos eum, assumenda quasi accusamus perferendis voluptas saepe, ducimus architecto animi iste numquam vitae minima sed explica",
8965
- "rating": 5.0,
8966
- "userDetails": {
8967
- "firstName": "Agri usertwo",
8968
- "userId": "f00473e1-54e8-40b7-b541-461250f298d1",
8969
- "profileImageUrl": null
8970
- },
8971
- "cardSubType": "card-wide-lib",
8972
- "cardCustomeClass": "",
8973
- "context": {
8974
- "pageSection": "featuredContents",
8975
- "position": 3
8976
- },
8977
- "content": {
8978
- "identifier": "do_114006606955921408144",
8979
- "competencies_v5": [
8980
- {
8981
- "competencyArea": "Behavioural",
8982
- "competencyAreaId": 1,
8983
- "competencyAreaDescription": "Behavioural Competency Area",
8984
- "competencyTheme": "Collaborative Leadership",
8985
- "competencyThemeId": 46,
8986
- "competecnyThemeDescription": "Collaborative Leadership competency Theme",
8987
- "competencyThemeType": "Leadership",
8988
- "competencySubTheme": "Influencing and Negotiation",
8989
- "competencySubThemeId": 47,
8990
- "competecnySubThemeDescription": "Influencing and Negotiation Competency Sub-Theme"
8991
- }
8992
- ],
8993
- "description": "test Scrom",
8994
- "organisation": [
8995
- "Ministry of Finance"
8996
- ],
8997
- "creatorLogo": null,
8998
- "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_1139430185765847041226/artifact/do_1139430185765847041226_1702028635111_maxresdefault.jpg",
8999
- "duration": "180",
9000
- "additionalTags": null,
9001
- "appIcon": "https://static.karmayogiprod.nic.in/igotqa/collection/do_114006606955921408144/artifact/do_1139430185765847041226_1702028635111_maxresdefault.thumb.jpg",
9002
- "primaryCategory": "Course",
9003
- "name": "Large PDF test Cases",
9004
- "avgRating": 4.0,
9005
- "contentType": "Course"
9006
- }
9007
- },
9008
- {
9009
- "review": "Good courseQA",
9010
- "rating": 5.0,
9011
- "userDetails": {
9012
- "firstName": "Public User QA env",
9013
- "userId": "0517056e-b57b-49ca-a44c-cdc3a251dd3e",
9014
- "profileImageUrl": null
9015
- },
9016
- "cardSubType": "card-wide-lib",
9017
- "cardCustomeClass": "",
9018
- "context": {
9019
- "pageSection": "featuredContents",
9020
- "position": 3
9021
- },
9022
- "content": {
9023
- "identifier": "do_113902049969004544112",
9024
- "competencies_v5": [
9025
- {
9026
- "competencyArea": "Domain",
9027
- "competencyAreaDescription": "Domain Competency Area",
9028
- "competencyAreaId": 145,
9029
- "competencyTheme": "Communication Backbone System Maintenance",
9030
- "competencyThemeDescription": "Communication Backbone System Maintenance competency Theme",
9031
- "competencyThemeId": 186,
9032
- "competencyThemeType": "Core",
9033
- "competencySubTheme": "Communication Backbone System Maintenance",
9034
- "competencySubThemeId": 187,
9035
- "competencySubThemeDescription": "Communication Backbone System Maintenance Competency Sub-Theme"
9036
- },
9037
- {
9038
- "competencyArea": "Domain",
9039
- "competencyAreaDescription": "Domain Competency Area",
9040
- "competencyAreaId": 145,
9041
- "competencyTheme": "Communication Auxiliary Systems Maintenance",
9042
- "competencyThemeDescription": "Communication Auxiliary Systems Maintenance competency Theme",
9043
- "competencyThemeId": 184,
9044
- "competencyThemeType": "Core",
9045
- "competencySubTheme": "Communication Auxiliary Systems Maintenance",
9046
- "competencySubThemeId": 185,
9047
- "competencySubThemeDescription": "Communication Auxiliary Systems Maintenance Competency Sub-Theme"
9048
- }
9049
- ],
9050
- "description": "QATestCourse2",
9051
- "organisation": [
9052
- "Ministry of Finance"
9053
- ],
9054
- "creatorLogo": null,
9055
- "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_113902071254761472117/artifact/do_113902071254761472117_1697030308090_screenshotfrom202310101224021697030170978.png",
9056
- "duration": "540",
9057
- "additionalTags": null,
9058
- "appIcon": "https://portal.karmayogiqa.nic.in/content-store/content/do_113902071254761472117/artifact/do_113902071254761472117_1697030308090_screenshotfrom202310101224021697030170978.png",
9059
- "primaryCategory": "Course",
9060
- "name": "QATestCourse2",
9061
- "avgRating": 5.0,
9062
- "contentType": "Course"
9063
- }
9064
- },
9065
- {
9066
- "review": "ok",
9067
- "rating": 5.0,
9068
- "userDetails": {
9069
- "firstName": "qatestcreator",
9070
- "userId": "54548483-0708-417c-ac9f-9b2260e13962",
9071
- "profileImageUrl": null
9072
- },
9073
- "cardSubType": "card-wide-lib",
9074
- "cardCustomeClass": "",
9075
- "context": {
9076
- "pageSection": "featuredContents",
9077
- "position": 3
9078
- },
9079
- "content": {
9080
- "identifier": "do_113902049969004544112",
9081
- "competencies_v5": [
9082
- {
9083
- "competencyArea": "Domain",
9084
- "competencyAreaDescription": "Domain Competency Area",
9085
- "competencyAreaId": 145,
9086
- "competencyTheme": "Communication Backbone System Maintenance",
9087
- "competencyThemeDescription": "Communication Backbone System Maintenance competency Theme",
9088
- "competencyThemeId": 186,
9089
- "competencyThemeType": "Core",
9090
- "competencySubTheme": "Communication Backbone System Maintenance",
9091
- "competencySubThemeId": 187,
9092
- "competencySubThemeDescription": "Communication Backbone System Maintenance Competency Sub-Theme"
9093
- },
9094
- {
9095
- "competencyArea": "Domain",
9096
- "competencyAreaDescription": "Domain Competency Area",
9097
- "competencyAreaId": 145,
9098
- "competencyTheme": "Communication Auxiliary Systems Maintenance",
9099
- "competencyThemeDescription": "Communication Auxiliary Systems Maintenance competency Theme",
9100
- "competencyThemeId": 184,
9101
- "competencyThemeType": "Core",
9102
- "competencySubTheme": "Communication Auxiliary Systems Maintenance",
9103
- "competencySubThemeId": 185,
9104
- "competencySubThemeDescription": "Communication Auxiliary Systems Maintenance Competency Sub-Theme"
9105
- }
9106
- ],
9107
- "description": "QATestCourse2",
9108
- "organisation": [
9109
- "Ministry of Finance"
9110
- ],
9111
- "creatorLogo": null,
9112
- "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_113902071254761472117/artifact/do_113902071254761472117_1697030308090_screenshotfrom202310101224021697030170978.png",
9113
- "duration": "540",
9114
- "additionalTags": null,
9115
- "appIcon": "https://portal.karmayogiqa.nic.in/content-store/content/do_113902071254761472117/artifact/do_113902071254761472117_1697030308090_screenshotfrom202310101224021697030170978.png",
9116
- "primaryCategory": "Course",
9117
- "name": "QATestCourse2",
9118
- "avgRating": 5.0,
9119
- "contentType": "Course"
9120
- }
9121
- },
9122
- {
9123
- "review": "nic onenic onenic onenic onenic onenic onenic onenic onenic onenic onenic onenic onenic one",
9124
- "rating": 5.0,
9125
- "userDetails": {
9126
- "firstName": "Qa test user one @#$ 123",
9127
- "userId": "7fd686b6-d5b2-4e0a-a43f-d6e57cd2ea09",
9128
- "profileImageUrl": null
9129
- },
9130
- "cardSubType": "card-wide-lib",
9131
- "cardCustomeClass": "",
9132
- "context": {
9133
- "pageSection": "featuredContents",
9134
- "position": 3
9135
- },
9136
- "content": {
9137
- "identifier": "do_113902049969004544112",
9138
- "competencies_v5": [
9139
- {
9140
- "competencyArea": "Domain",
9141
- "competencyAreaDescription": "Domain Competency Area",
9142
- "competencyAreaId": 145,
9143
- "competencyTheme": "Communication Backbone System Maintenance",
9144
- "competencyThemeDescription": "Communication Backbone System Maintenance competency Theme",
9145
- "competencyThemeId": 186,
9146
- "competencyThemeType": "Core",
9147
- "competencySubTheme": "Communication Backbone System Maintenance",
9148
- "competencySubThemeId": 187,
9149
- "competencySubThemeDescription": "Communication Backbone System Maintenance Competency Sub-Theme"
9150
- },
9151
- {
9152
- "competencyArea": "Domain",
9153
- "competencyAreaDescription": "Domain Competency Area",
9154
- "competencyAreaId": 145,
9155
- "competencyTheme": "Communication Auxiliary Systems Maintenance",
9156
- "competencyThemeDescription": "Communication Auxiliary Systems Maintenance competency Theme",
9157
- "competencyThemeId": 184,
9158
- "competencyThemeType": "Core",
9159
- "competencySubTheme": "Communication Auxiliary Systems Maintenance",
9160
- "competencySubThemeId": 185,
9161
- "competencySubThemeDescription": "Communication Auxiliary Systems Maintenance Competency Sub-Theme"
9162
- }
9163
- ],
9164
- "description": "QATestCourse2",
9165
- "organisation": [
9166
- "Ministry of Finance"
9167
- ],
9168
- "creatorLogo": null,
9169
- "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_113902071254761472117/artifact/do_113902071254761472117_1697030308090_screenshotfrom202310101224021697030170978.png",
9170
- "duration": "540",
9171
- "additionalTags": null,
9172
- "appIcon": "https://portal.karmayogiqa.nic.in/content-store/content/do_113902071254761472117/artifact/do_113902071254761472117_1697030308090_screenshotfrom202310101224021697030170978.png",
9173
- "primaryCategory": "Course",
9174
- "name": "QATestCourse2",
9175
- "avgRating": 5.0,
9176
- "contentType": "Course"
9177
- }
9178
- },
9179
- {
9180
- "review": "Checking Ratings and alignment under Overview",
9181
- "rating": 5.0,
9182
- "userDetails": {
9183
- "firstName": "Get Started User Five",
9184
- "userId": "e6a9d4b6-b30a-405f-9bcb-166038600218",
9185
- "profileImageUrl": null
9186
- },
9187
- "cardSubType": "card-wide-lib",
9188
- "cardCustomeClass": "",
9189
- "context": {
9190
- "pageSection": "featuredContents",
9191
- "position": 3
9192
- },
9193
- "content": {
9194
- "identifier": "do_113902049969004544112",
9195
- "competencies_v5": [
9196
- {
9197
- "competencyArea": "Domain",
9198
- "competencyAreaDescription": "Domain Competency Area",
9199
- "competencyAreaId": 145,
9200
- "competencyTheme": "Communication Backbone System Maintenance",
9201
- "competencyThemeDescription": "Communication Backbone System Maintenance competency Theme",
9202
- "competencyThemeId": 186,
9203
- "competencyThemeType": "Core",
9204
- "competencySubTheme": "Communication Backbone System Maintenance",
9205
- "competencySubThemeId": 187,
9206
- "competencySubThemeDescription": "Communication Backbone System Maintenance Competency Sub-Theme"
9207
- },
9208
- {
9209
- "competencyArea": "Domain",
9210
- "competencyAreaDescription": "Domain Competency Area",
9211
- "competencyAreaId": 145,
9212
- "competencyTheme": "Communication Auxiliary Systems Maintenance",
9213
- "competencyThemeDescription": "Communication Auxiliary Systems Maintenance competency Theme",
9214
- "competencyThemeId": 184,
9215
- "competencyThemeType": "Core",
9216
- "competencySubTheme": "Communication Auxiliary Systems Maintenance",
9217
- "competencySubThemeId": 185,
9218
- "competencySubThemeDescription": "Communication Auxiliary Systems Maintenance Competency Sub-Theme"
9219
- }
9220
- ],
9221
- "description": "QATestCourse2",
9222
- "organisation": [
9223
- "Ministry of Finance"
9224
- ],
9225
- "creatorLogo": null,
9226
- "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_113902071254761472117/artifact/do_113902071254761472117_1697030308090_screenshotfrom202310101224021697030170978.png",
9227
- "duration": "540",
9228
- "additionalTags": null,
9229
- "appIcon": "https://portal.karmayogiqa.nic.in/content-store/content/do_113902071254761472117/artifact/do_113902071254761472117_1697030308090_screenshotfrom202310101224021697030170978.png",
9230
- "primaryCategory": "Course",
9231
- "name": "QATestCourse2",
9232
- "avgRating": 5.0,
9233
- "contentType": "Course"
9234
- }
9235
- },
9236
- {
9237
- "review": "Testing rating 123",
9238
- "rating": 5.0,
9239
- "userDetails": {
9240
- "firstName": "Qa test user one @#$ 123",
9241
- "userId": "7fd686b6-d5b2-4e0a-a43f-d6e57cd2ea09",
9242
- "profileImageUrl": null
9243
- },
9244
- "cardSubType": "card-wide-lib",
9245
- "cardCustomeClass": "",
9246
- "context": {
9247
- "pageSection": "featuredContents",
9248
- "position": 3
9249
- },
9250
- "content": {
9251
- "identifier": "do_1139400923254046721119",
9252
- "competencies_v5": [
9253
- {
9254
- "competencyArea": "Functional",
9255
- "competencyAreaDescription": "Functional Competency Area",
9256
- "competencyAreaId": 56,
9257
- "competencyTheme": "Administration Matters",
9258
- "competencyThemeDescription": "Administration Matters competency Theme",
9259
- "competencyThemeId": 140,
9260
- "competencyThemeType": "Core",
9261
- "competencySubTheme": "Handling Miscellaneous Matters (Car, Residence, Personal Staff etc.)",
9262
- "competencySubThemeId": 143,
9263
- "competencySubThemeDescription": "Handling Miscellaneous Matters (Car, Residence, Personal Staff etc.) Competency Sub-Theme"
9264
- }
9265
- ],
9266
- "description": "Youtube Links",
9267
- "organisation": [
9268
- "Ministry of Finance"
9269
- ],
9270
- "creatorLogo": null,
9271
- "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_1139400694644490241113/artifact/do_1139400694644490241113_1701668637063_effective-communication.png",
9272
- "duration": "420",
9273
- "additionalTags": null,
9274
- "appIcon": "https://static.karmayogiprod.nic.in/igotqa/collection/do_1139400923254046721119/artifact/do_1139400694644490241113_1701668637063_effective-communication.thumb.png",
9275
- "primaryCategory": "Course",
9276
- "name": "Course New 04 Dec",
9277
- "avgRating": 5.0,
9278
- "contentType": "Course"
9279
- }
9280
- },
9281
- {
9282
- "review": "nice1",
9283
- "rating": 5.0,
9284
- "userDetails": {
9285
- "firstName": "Qa test user one @#$ 123",
9286
- "userId": "7fd686b6-d5b2-4e0a-a43f-d6e57cd2ea09",
9287
- "profileImageUrl": null
9288
- },
9289
- "cardSubType": "card-wide-lib",
9290
- "cardCustomeClass": "",
9291
- "context": {
9292
- "pageSection": "featuredContents",
9293
- "position": 3
9294
- },
9295
- "content": {
9296
- "identifier": "do_1139967854457651201519_rc",
9297
- "competencies_v5": [
9298
- {
9299
- "competencyArea": "Behavioural",
9300
- "competencyAreaId": 1,
9301
- "competencyAreaDescription": "Behavioural Competency Area",
9302
- "competencyTheme": "Personal Effectiveness",
9303
- "competencyThemeId": 7,
9304
- "competecnyThemeDescription": "Personal Effectiveness competency Theme",
9305
- "competencyThemeType": "Core",
9306
- "competencySubTheme": "Resilience",
9307
- "competencySubThemeId": 9,
9308
- "competecnySubThemeDescription": "Resilience Competency Sub-Theme"
9309
- }
9310
- ],
9311
- "description": "Sub:- Vikas- New Program '22/02/24' ",
9312
- "organisation": [
9313
- "Ministry of Finance"
9314
- ],
9315
- "creatorLogo": null,
9316
- "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_1139946848192430081395/artifact/do_1139946848192430081395_1708335549501_digitalindiaandegovernance1708335549950.jpg",
9317
- "duration": "12761",
9318
- "additionalTags": null,
9319
- "appIcon": "https://static.karmayogiprod.nic.in/igotqa/collection/do_1139967854457651201519_rc/artifact/do_1139946848192430081395_1708335549501_digitalindiaandegovernance1708335549950.thumb.jpg",
9320
- "primaryCategory": "Program",
9321
- "name": "Vikas- New Program '22/02/24'",
9322
- "avgRating": 2.0,
9323
- "contentType": "Course"
9324
- }
9325
- },
9326
- {
9327
- "review": "bv",
9328
- "rating": 5.0,
9329
- "userDetails": {
9330
- "firstName": "qa dstuserone",
9331
- "userId": "31c81730-bf33-437a-a53e-0bd8ac2fc3d6",
9332
- "profileImageUrl": null
9333
- },
9334
- "cardSubType": "card-wide-lib",
9335
- "cardCustomeClass": "",
9336
- "context": {
9337
- "pageSection": "featuredContents",
9338
- "position": 3
9339
- },
9340
- "content": {
9341
- "identifier": "do_113965740548784128178",
9342
- "competencies_v5": [
9343
- {
9344
- "competencyArea": "Functional",
9345
- "competencyAreaId": 56,
9346
- "competencyAreaDescription": "Functional Competency Area",
9347
- "competencyTheme": "Establishment & HR",
9348
- "competencyThemeId": 101,
9349
- "competecnyThemeDescription": "Establishment & HR competency Theme",
9350
- "competencyThemeType": "Core",
9351
- "competencySubTheme": "Handling Fundamental Rules /Supplementary Rules",
9352
- "competencySubThemeId": 104,
9353
- "competecnySubThemeDescription": "Handling Fundamental Rules /Supplementary Rules Competency Sub-Theme"
9354
- }
9355
- ],
9356
- "description": "Course with more subthemes",
9357
- "organisation": [
9358
- "Ministry of Finance"
9359
- ],
9360
- "creatorLogo": null,
9361
- "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_113921119628378112168/artifact/do_113921119628378112168_1699355423624_capture121699355424283.png",
9362
- "duration": "540",
9363
- "additionalTags": [
9364
- "mostEnrolled"
9365
- ],
9366
- "appIcon": "https://static.karmayogiprod.nic.in/igotqa/collection/do_113965740548784128178/artifact/do_113921119628378112168_1699355423624_capture121699355424283.thumb.png",
9367
- "primaryCategory": "Course",
9368
- "name": "Course with more subthemes",
9369
- "avgRating": 5.0,
9370
- "contentType": "Course"
9371
- }
9372
- }
9373
- ];
8819
+ this.providerId = '';
8820
+ this.formData = '';
8821
+ this.emptyResponse = new EventEmitter();
8822
+ this.styleData = {};
8823
+ this.contentdata = [];
9374
8824
  }
9375
8825
  /**
9376
8826
  * @return {?}
9377
8827
  */
9378
8828
  ngOnInit() {
8829
+ this.styleData = this.formData && this.formData.sliderData && this.formData.sliderData.styleData;
8830
+ this.getTopReviews();
8831
+ }
8832
+ /**
8833
+ * @return {?}
8834
+ */
8835
+ getTopReviews() {
8836
+ this.contentdata = [];
8837
+ this.userRatingSvc.fetchTopReviews(this.providerId).subscribe((/**
8838
+ * @param {?} response
8839
+ * @return {?}
8840
+ */
8841
+ (response) => {
8842
+ if (response && response.result && response.result.content.length) {
8843
+ response.result.content.forEach((/**
8844
+ * @param {?} contentEle
8845
+ * @return {?}
8846
+ */
8847
+ (contentEle) => {
8848
+ /** @type {?} */
8849
+ let localData = {};
8850
+ localData['content'] = contentEle.contentInfo;
8851
+ localData['rating'] = contentEle.rating;
8852
+ localData['review'] = contentEle.review;
8853
+ localData['userDetails'] = contentEle.userDetails;
8854
+ localData['cardSubType'] = "card-wide-lib";
8855
+ localData['cardCustomeClass'] = "";
8856
+ this.contentdata.push(localData);
8857
+ }));
8858
+ }
8859
+ else {
8860
+ this.emptyResponse.emit(true);
8861
+ }
8862
+ }));
9379
8863
  }
9380
8864
  /**
9381
8865
  * @param {?} ratingIndex
@@ -9399,34 +8883,59 @@ class UserContentRatingComponent {
9399
8883
  */
9400
8884
  getCurrentIndex(indexValue) {
9401
8885
  this.currentIndex = indexValue;
8886
+ this.handleScrollClick(indexValue);
8887
+ }
8888
+ /**
8889
+ * @param {?} dataValue
8890
+ * @return {?}
8891
+ */
8892
+ handleScrollClick(dataValue) {
8893
+ /** @type {?} */
8894
+ const item = this.scrollableItems.find((/**
8895
+ * @param {?} x
8896
+ * @return {?}
8897
+ */
8898
+ x => x.key === dataValue));
8899
+ item.scrollIntoView("nearest");
9402
8900
  }
9403
8901
  }
9404
- UserContentRatingComponent.decorators = [
8902
+ UserContentRatingLibComponent.decorators = [
9405
8903
  { type: Component, args: [{
9406
8904
  selector: 'sb-uic-user-content-rating',
9407
- template: "<!-- <sb-uic-sliders [title]=\"'providerName'\" [widgetData]=\"[]\" [styleData]=\"styleData\">\n <div sliderbody>\n <div class=\"flex justify-center\">\n <div class=\"avatar-block mr-3\">\n <sb-uic-avatar-photo [name]=\"contentCard?.userDetails?.firstName\" [photoUrl]=\"contentCard?.userDetails?.profileImageUrl\" size=\"m-side-rating\">\n </sb-uic-avatar-photo>\n </div>\n <div class=\"avatar-block mr-3\">\n <sb-uic-avatar-photo [name]=\"contentCard?.userDetails?.firstName\" [photoUrl]=\"contentCard?.userDetails?.profileImageUrl\" size=\"m-side-rating\">\n </sb-uic-avatar-photo>\n </div>\n </div>\n <div class=\"user-ratting-wrapper flex flex-wrap justify-center\">\n <p class=\"userName w-full\">Harshit Rao</p>\n\n <div class=\"flex w-full flex-row justify-center gap-2 mb-4\">\n <mat-icon class=\"mat-icon material-icons rating-icon ws-mat-black16-text\"\n [ngClass]=\"{'ws-mat-orange-text': getRatingIconClass(rating, 3.3)}\"\n *ngFor=\"let rating of [1, 2, 3, 4, 5]\">\n {{ getRatingIcon(rating, 3.3) }}\n </mat-icon>\n </div>\n <p class=\"content-feedback w-full\">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua enim ad minim veniam, quis nostrud.</p>\n <div class=\"w-full m-8\">\n <sb-uic-cards [widgetData]=\"contentCard\"></sb-uic-cards>\n </div>\n </div>\n </div>\n</sb-uic-sliders> -->\n\n<sb-uic-sliders-ng-content [title]=\"'providerName'\" (currentIndexValue)=\"getCurrentIndex($event)\" [loadNgContentData]=\"true\" [widgetData]=\"responseData\" [styleData]=\"styleData\">\n <div sliderbody>\n <div *ngFor=\"let data of responseData; let i = index\" [hidden]=\"i !== currentIndex\">\n <div class=\"flex justify-center\">\n <div class=\"avatar-block mr-3\">\n <sb-uic-avatar-photo [name]=\"contentCard?.userDetails?.firstName\" [photoUrl]=\"contentCard?.userDetails?.profileImageUrl\" size=\"m-side-rating\">\n </sb-uic-avatar-photo>\n </div>\n <div class=\"avatar-block mr-3\">\n <sb-uic-avatar-photo [name]=\"contentCard?.userDetails?.firstName\" [photoUrl]=\"contentCard?.userDetails?.profileImageUrl\" size=\"m-side-rating\">\n </sb-uic-avatar-photo>\n </div>\n </div>\n <div class=\"user-ratting-wrapper flex flex-wrap justify-center\">\n <p class=\"userName w-full\">Harshit Rao</p>\n \n <div class=\"flex w-full flex-row justify-center gap-2 mb-4\">\n <mat-icon class=\"mat-icon material-icons rating-icon ws-mat-black16-text\"\n [ngClass]=\"{'ws-mat-orange-text': getRatingIconClass(rating, 3.3)}\"\n *ngFor=\"let rating of [1, 2, 3, 4, 5]\">\n {{ getRatingIcon(rating, 3.3) }}\n </mat-icon>\n </div>\n <p class=\"content-feedback w-full\">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua enim ad minim veniam, quis nostrud.</p>\n <div class=\"w-full m-8\">\n <sb-uic-cards [widgetData]=\"contentCard\"></sb-uic-cards>\n </div>\n </div>\n </div>\n </div>\n</sb-uic-sliders-ng-content>\n\n",
9408
- styles: [".user-ratting-wrapper .userName{font-family:Montserrat;font-size:20px;font-weight:600;line-height:24.38px;text-align:center}.user-ratting-wrapper .content-feedback{font-family:Lato;font-size:16px;font-weight:400;line-height:19.2px;text-align:center;color:rgba(0,0,0,.87)}.avatar-block::before{content:\"\";border:4px solid #f3972e;border-radius:50%;width:41px;height:41px;display:flex;justify-content:center;align-items:center;position:absolute}"]
8905
+ 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",
8906
+ 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}"]
9409
8907
  }] }
9410
8908
  ];
9411
8909
  /** @nocollapse */
9412
- UserContentRatingComponent.ctorParameters = () => [
9413
- { type: RatingService }
8910
+ UserContentRatingLibComponent.ctorParameters = () => [
8911
+ { type: RatingService },
8912
+ { type: UserContentRatingLibService }
9414
8913
  ];
8914
+ UserContentRatingLibComponent.propDecorators = {
8915
+ providerId: [{ type: Input }],
8916
+ formData: [{ type: Input }],
8917
+ emptyResponse: [{ type: Output }],
8918
+ scrollableItems: [{ type: ViewChildren, args: [ScrollableItemDirective,] }]
8919
+ };
9415
8920
  if (false) {
9416
8921
  /** @type {?} */
9417
- UserContentRatingComponent.prototype.currentIndex;
8922
+ UserContentRatingLibComponent.prototype.currentIndex;
8923
+ /** @type {?} */
8924
+ UserContentRatingLibComponent.prototype.providerId;
9418
8925
  /** @type {?} */
9419
- UserContentRatingComponent.prototype.styleData;
8926
+ UserContentRatingLibComponent.prototype.formData;
9420
8927
  /** @type {?} */
9421
- UserContentRatingComponent.prototype.sliders;
8928
+ UserContentRatingLibComponent.prototype.emptyResponse;
9422
8929
  /** @type {?} */
9423
- UserContentRatingComponent.prototype.contentCard;
8930
+ UserContentRatingLibComponent.prototype.styleData;
9424
8931
  /** @type {?} */
9425
- UserContentRatingComponent.prototype.widgetData;
8932
+ UserContentRatingLibComponent.prototype.contentdata;
9426
8933
  /** @type {?} */
9427
- UserContentRatingComponent.prototype.responseData;
8934
+ UserContentRatingLibComponent.prototype.scrollableItems;
9428
8935
  /** @type {?} */
9429
- UserContentRatingComponent.prototype.ratingService;
8936
+ UserContentRatingLibComponent.prototype.ratingService;
8937
+ /** @type {?} */
8938
+ UserContentRatingLibComponent.prototype.userRatingSvc;
9430
8939
  }
9431
8940
 
9432
8941
  /**
@@ -9436,6 +8945,7 @@ if (false) {
9436
8945
  class AvatarPhotoLibComponent {
9437
8946
  constructor() {
9438
8947
  this.size = '';
8948
+ this.defaulfColor = '';
9439
8949
  this.randomColor = false;
9440
8950
  this.showBadge = false;
9441
8951
  this.showInitials = false;
@@ -9468,9 +8978,16 @@ class AvatarPhotoLibComponent {
9468
8978
  this.createInititals();
9469
8979
  }
9470
8980
  if (this.datalen === 1) {
9471
- this.randomcolors = [
9472
- '#006400',
9473
- ];
8981
+ if (this.defaulfColor) {
8982
+ this.randomcolors = [
8983
+ this.defaulfColor
8984
+ ];
8985
+ }
8986
+ else {
8987
+ this.randomcolors = [
8988
+ '#006400',
8989
+ ];
8990
+ }
9474
8991
  }
9475
8992
  /** @type {?} */
9476
8993
  const randomIndex = Math.floor(Math.random() * Math.floor(this.colors.length));
@@ -9538,6 +9055,7 @@ AvatarPhotoLibComponent.propDecorators = {
9538
9055
  photoUrl: [{ type: Input }],
9539
9056
  name: [{ type: Input }],
9540
9057
  size: [{ type: Input }],
9058
+ defaulfColor: [{ type: Input }],
9541
9059
  randomColor: [{ type: Input }],
9542
9060
  initials: [{ type: Input }],
9543
9061
  showBadge: [{ type: Input }]
@@ -9552,6 +9070,8 @@ if (false) {
9552
9070
  /** @type {?} */
9553
9071
  AvatarPhotoLibComponent.prototype.size;
9554
9072
  /** @type {?} */
9073
+ AvatarPhotoLibComponent.prototype.defaulfColor;
9074
+ /** @type {?} */
9555
9075
  AvatarPhotoLibComponent.prototype.randomColor;
9556
9076
  /** @type {?} */
9557
9077
  AvatarPhotoLibComponent.prototype.initials;
@@ -9613,6 +9133,7 @@ class SlidersNgContentLibComponent extends WidgetBaseComponent {
9613
9133
  this.valueSvc = valueSvc;
9614
9134
  this.title = '';
9615
9135
  this.loadNgContentData = false;
9136
+ this.autoScroll = false;
9616
9137
  this.currentIndexValue = new EventEmitter();
9617
9138
  this.id = `banner_${Math.random()}`;
9618
9139
  this.defaultMenuSubscribe = null;
@@ -9625,7 +9146,9 @@ class SlidersNgContentLibComponent extends WidgetBaseComponent {
9625
9146
  * @return {?}
9626
9147
  */
9627
9148
  ngOnInit() {
9628
- this.reInitiateSlideInterval();
9149
+ if (this.autoScroll) {
9150
+ this.reInitiateSlideInterval();
9151
+ }
9629
9152
  this.defaultMenuSubscribe = this.isLtMedium$.subscribe((/**
9630
9153
  * @param {?} isLtMedium
9631
9154
  * @return {?}
@@ -9680,7 +9203,9 @@ class SlidersNgContentLibComponent extends WidgetBaseComponent {
9680
9203
  this.currentIndex = this.widgetData.length + index;
9681
9204
  this.currentIndexValue.emit(this.currentIndex);
9682
9205
  }
9683
- this.reInitiateSlideInterval();
9206
+ if (this.autoScroll) {
9207
+ this.reInitiateSlideInterval();
9208
+ }
9684
9209
  }
9685
9210
  /**
9686
9211
  * @return {?}
@@ -9736,8 +9261,8 @@ class SlidersNgContentLibComponent extends WidgetBaseComponent {
9736
9261
  SlidersNgContentLibComponent.decorators = [
9737
9262
  { type: Component, args: [{
9738
9263
  selector: 'sb-uic-sliders-ng-content',
9739
- template: "<div class=\"banner-container {{isMobile? styleData?.responsive?.bannerMetaClass : styleData?.bannerMetaClass}}\" (swipeleft)=\"slideTo(currentIndex + 1)\" (swiperight)=\"slideTo(currentIndex - 1)\"\n *ngIf=\"widgetData?.length > 1\" [style.height]=\"isMobile? styleData?.responsive?.customHeight : styleData?.customHeight\"\n [ngStyle]=\"{'border-radius': styleData?.borderRadius || '12px'}\">\n <ng-container *ngIf=\"!loadNgContentData\">\n <a (click)=\"raiseTelemetry(widgetData[currentIndex].redirectUrl)\"\n [routerLink]=\" !isOpenInNewTab && widgetData[currentIndex].redirectUrl? widgetData[currentIndex].redirectUrl : null\" class=\"banner-overlay\"\n [ngClass]=\"{'cursor-auto': !widgetData[currentIndex].redirectUrl}\">\n <div class=\"banner WidgetInstanceId\" *ngFor=\"let slide of widgetData; let i = index\" [hidden]=\"i !== currentIndex\">\n <img i18n-alt alt=\"Page Banner\" [src]=\"slide.banners\" wsUtilsImageResponsive class=\"banner-image\" />\n </div>\n </a>\n <ng-container *ngIf=\"isMobile && styleData?.responsive?.dots !== 'hidden' || !isMobile && styleData?.dots !== 'hidden'\">\n <div class=\"banner-meta {{isMobile? styleData?.responsive?.bannerMetaAlign : styleData?.bannerMetaAlign}}\">\n <a [routerLink]=\" !isOpenInNewTab && widgetData[currentIndex].redirectUrl? widgetData[currentIndex].redirectUrl : null\" class=\"banner-title text-truncate\"\n *ngIf=\"widgetData[currentIndex].title\" [title]=\"widgetData[currentIndex].title\">\n {{ widgetData[currentIndex].title }}\n </a>\n <div class=\"dots-container\" *ngIf=\"widgetData?.length > 1\">\n <span class=\"dot\" [ngClass]=\"{ active: j === currentIndex }\" *ngFor=\"let slide of widgetData; let j = index\"\n (click)=\"slideTo(j)\"></span>\n </div>\n </div>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"loadNgContentData\">\n <!-- <div class=\"banner WidgetInstanceId\" *ngFor=\"let slide of widgetData; let i = index\" [hidden]=\"i !== currentIndex\"> -->\n <ng-content select=\"[sliderbody]\"></ng-content>\n <!-- </div> -->\n \n </ng-container>\n <div class=\"navigation {{isMobile? styleData?.responsive?.arrowsPlacement : styleData?.arrowsPlacement}}\" \n *ngIf=\"isMobile && styleData?.responsive?.navigationArrows !== 'hidden' || !isMobile && styleData?.navigationArrows !== 'hidden'\">\n <a *ngIf=\"widgetData?.length > 1\" role=\"button\" class=\"prev\" (click)=\"slideTo(currentIndex - 1)\">&#10094;</a>\n <a *ngIf=\"widgetData?.length > 1\" role=\"button\" class=\"next\" (click)=\"slideTo(currentIndex + 1)\">&#10095;</a>\n </div>\n</div>\n<div class=\"banner-container-solo margin-top-s\" *ngIf=\"widgetData?.length == 1\">\n <img i18n-alt alt=\"Page Banner\" width=\"100%\" height=\"100%\" [src]=\"widgetData[0].banners\" wsUtilsImageResponsive class=\"banner-image-solo\" />\n</div>\n\n<!-- <ng-container *ngIf=\"!widgetData?.length\">\n <div class=\"slider default-slider h-full\">\n <div class=\"relative h-full\">\n <img class=\"h-full\" src=\"assets/icons/home/default-slider-image.svg\" alt=\"\">\n <div class=\"default-title rounded-full\">\n <p class=\"mat-h1\">{{title}}</p>\n </div>\n </div>\n </div>\n</ng-container> -->\n",
9740
- styles: [".banner-container{min-height:243px;position:relative;margin:auto;padding-bottom:40px}.banner-container.inline-meta{padding-bottom:0!important}.banner-container.flat .banner .banner-image{border-radius:0!important}.banner-overlay{z-index:1;top:0;left:0;width:100%;height:100%;background:linear-gradient(to left,rgba(0,0,0,.25) 0,rgba(0,0,0,0) 15%,rgba(0,0,0,0) 85%,rgba(0,0,0,.25) 100%);border-radius:inherit}.banner{-webkit-animation-name:fade;-webkit-animation-duration:1.5s;animation-name:fade;animation-duration:1.5s;border-radius:inherit;height:inherit}.banner .banner-image{width:100%;min-height:243px;display:block;border-radius:inherit;height:inherit}.banner-meta{text-align:center;z-index:2;padding:8px 12px;position:absolute;bottom:0;left:50%;border-radius:12px;transform:translateX(-50%);box-sizing:border-box}.banner-meta.left{left:0;transform:translateX(0)}.banner-meta.right{left:100%;transform:translateX(-100%)}.banner-meta .banner-title{color:#f2f2f2;margin-bottom:8px;font-size:1.1rem}@media only screen and (max-width:599px){.banner-meta .banner-title{display:none}}.banner-meta .dots-container{padding:8px;display:flex;align-items:center;justify-content:center}.banner-meta .dots-container .dot{cursor:pointer;height:6px;width:6px;margin:0 4px;background-color:rgba(0,0,0,.4);border-radius:50%;display:inline-block;transition:background-color .5s!important}@media only screen and (max-width:599px){.banner-meta .dots-container .dot{height:8px;width:8px;margin:0 4px}}.banner-meta .dots-container .dot.active{border-radius:4px;background-color:#f3962f;width:16px}@keyframes fade{from{opacity:.25}to{opacity:1}}.next,.prev{cursor:pointer;position:absolute;top:50%;transform:translateY(-50%);color:#fff;font-weight:700;background-color:#1b2133!important;border-radius:50%;z-index:999;height:32px!important;width:32px!important;display:flex;align-items:center;margin-top:-16px;justify-content:center}.prev{left:0;margin-left:-16px}.next{right:0;margin-right:-16px}.navigation.bottom-right .prev{left:unset;right:45px;bottom:-15px;top:unset}.navigation.bottom-right .next{left:unset;right:15px;bottom:-15px;top:unset}.navigation.bottom-center .prev{left:calc(50% - 20px);right:unset;bottom:-15px;top:unset}.navigation.bottom-center .next{left:calc(50% + 20px);right:unset;bottom:-15px;top:unset}.navigation.bottom-left .prev{left:15px;right:unset;bottom:-15px;top:unset}.navigation.bottom-left .next{left:60px;right:unset;bottom:-15px;top:unset}.navigation.middle-inline .prev{left:30px}.navigation.middle-inline .next{right:30px}.banner-container-solo{overflow:hidden;margin:auto;border-radius:12px}.banner-image-solo{width:100%;display:block;border-radius:12px}.default-slider{height:100%;background:#d4e2fb}.default-slider .default-title{text-align:center;position:absolute;top:50%;left:0;right:0;margin:auto;transform:translateY(-50%);z-index:999;background:#e6efff;padding:32px;width:500px}.default-slider .default-title p{word-break:break-word;margin:0!important;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;text-transform:uppercase}@media screen and (max-width:768px){.default-slider{height:384px;width:100%}.default-slider .default-title{width:unset!important}}"]
9264
+ 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",
9265
+ 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}}"]
9741
9266
  }] }
9742
9267
  ];
9743
9268
  /** @nocollapse */
@@ -9750,8 +9275,10 @@ SlidersNgContentLibComponent.propDecorators = {
9750
9275
  styleData: [{ type: Input }],
9751
9276
  title: [{ type: Input }],
9752
9277
  loadNgContentData: [{ type: Input }],
9278
+ autoScroll: [{ type: Input }],
9753
9279
  currentIndexValue: [{ type: Output }],
9754
- id: [{ type: HostBinding, args: ['id',] }]
9280
+ id: [{ type: HostBinding, args: ['id',] }],
9281
+ currentIndex: [{ type: Input }]
9755
9282
  };
9756
9283
  if (false) {
9757
9284
  /** @type {?} */
@@ -9763,6 +9290,8 @@ if (false) {
9763
9290
  /** @type {?} */
9764
9291
  SlidersNgContentLibComponent.prototype.loadNgContentData;
9765
9292
  /** @type {?} */
9293
+ SlidersNgContentLibComponent.prototype.autoScroll;
9294
+ /** @type {?} */
9766
9295
  SlidersNgContentLibComponent.prototype.currentIndexValue;
9767
9296
  /** @type {?} */
9768
9297
  SlidersNgContentLibComponent.prototype.id;
@@ -9836,11 +9365,27 @@ SlidersNgContentLibModule.decorators = [
9836
9365
  * @fileoverview added by tsickle
9837
9366
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9838
9367
  */
9839
- class UserContentRatingModule {
9368
+ class ScrollableItemModule {
9369
+ }
9370
+ ScrollableItemModule.decorators = [
9371
+ { type: NgModule, args: [{
9372
+ declarations: [ScrollableItemDirective],
9373
+ imports: [
9374
+ CommonModule,
9375
+ ],
9376
+ exports: [ScrollableItemDirective],
9377
+ },] }
9378
+ ];
9379
+
9380
+ /**
9381
+ * @fileoverview added by tsickle
9382
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9383
+ */
9384
+ class UserContentRatingLibModule {
9840
9385
  }
9841
- UserContentRatingModule.decorators = [
9386
+ UserContentRatingLibModule.decorators = [
9842
9387
  { type: NgModule, args: [{
9843
- declarations: [UserContentRatingComponent],
9388
+ declarations: [UserContentRatingLibComponent],
9844
9389
  imports: [
9845
9390
  CommonModule,
9846
9391
  MatIconModule,
@@ -9849,10 +9394,11 @@ UserContentRatingModule.decorators = [
9849
9394
  SlidersLibModule,
9850
9395
  CardsModule,
9851
9396
  AvatarPhotoLibModule,
9852
- SlidersNgContentLibModule
9397
+ SlidersNgContentLibModule,
9398
+ ScrollableItemModule
9853
9399
  ],
9854
- exports: [UserContentRatingComponent],
9855
- providers: [RatingService],
9400
+ exports: [UserContentRatingLibComponent],
9401
+ providers: [RatingService, UserContentRatingLibService],
9856
9402
  schemas: [CUSTOM_ELEMENTS_SCHEMA]
9857
9403
  },] }
9858
9404
  ];
@@ -9867,5 +9413,5 @@ UserContentRatingModule.decorators = [
9867
9413
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9868
9414
  */
9869
9415
 
9870
- export { CalenderModule, CardsModule, CommonMethodsService, CommonStripModule, CompetencyPassbookModule, ConsumptionComponent, ConsumptionModule, ConsumptionService, ContentStripWithTabsLibModule, DataPointsModule, HttpLoaderFactory, MyHammerConfig, ROOT_WIDGET_CONFIG, SlidersLibModule, UserContentRatingModule, WIDGET_REGISTERED_LIB_MODULES, WIDGET_REGISTRATION_LIB_CONFIG, ContentStripWithTabsLibComponent as ɵa, WidgetContentService as ɵb, PipePublicURL as ɵba, DisplayContentTypeLibModule as ɵbb, DisplayContentTypeLibComponent as ɵbc, DefaultThumbnailModule as ɵbd, DefaultThumbnailDirective as ɵbe, PipeDurationTransformModule as ɵbf, PipeDurationTransformPipe as ɵbg, CompetencyPassbookComponent as ɵbh, CompetencyPassbookService as ɵbi, PillsModule as ɵbj, PillsComponent as ɵbk, UserContentRatingComponent as ɵbl, RatingService as ɵbm, AvatarPhotoLibModule as ɵbn, AvatarPhotoLibComponent as ɵbo, MyHammerConfig$1 as ɵbp, SlidersNgContentLibModule as ɵbq, SlidersNgContentLibComponent as ɵbr, WidgetUserService as ɵc, MultilingualTranslationsService as ɵd, ConfigurationsService as ɵe, HorizontalScrollerV2Module as ɵf, HorizontalScrollerV2Component as ɵg, SlidersLibComponent as ɵh, NavigationModule as ɵi, NavigationDirective as ɵj, ImageResponsiveModule as ɵk, ImageResponsiveDirective as ɵl, DataPointsComponent as ɵm, InsiteDataService as ɵn, SkeletonLoaderLibModule as ɵo, SkeletonLoaderLibComponent as ɵp, CalenderComponent as ɵq, CalenderDayComponent as ɵr, CommonStripComponent as ɵs, CardResourceComponent as ɵt, CardsComponent as ɵu, CardPortraitComponent as ɵv, CardUserComponent as ɵw, CardLandscapeComponent as ɵx, CardWideComponent as ɵy, PipePublicURLModule as ɵz };
9416
+ export { CalenderModule, CardsModule, CommonMethodsService, CommonStripModule, CompetencyPassbookModule, ConsumptionComponent, ConsumptionModule, ConsumptionService, ContentStripWithTabsLibModule, DataPointsModule, HttpLoaderFactory, MyHammerConfig, ROOT_WIDGET_CONFIG, SlidersLibModule, UserContentRatingLibModule, WIDGET_REGISTERED_LIB_MODULES, WIDGET_REGISTRATION_LIB_CONFIG, ContentStripWithTabsLibComponent as ɵa, WidgetContentService as ɵb, PipePublicURL as ɵba, DisplayContentTypeLibModule as ɵbb, DisplayContentTypeLibComponent as ɵbc, DefaultThumbnailModule as ɵbd, DefaultThumbnailDirective as ɵbe, PipeDurationTransformModule as ɵbf, PipeDurationTransformPipe as ɵbg, CompetencyPassbookComponent as ɵbh, CompetencyPassbookService as ɵbi, PillsModule as ɵbj, PillsComponent as ɵbk, UserContentRatingLibComponent as ɵbl, ScrollableItemDirective as ɵbm, RatingService as ɵbn, UserContentRatingLibService as ɵbo, AvatarPhotoLibModule as ɵbp, AvatarPhotoLibComponent as ɵbq, MyHammerConfig$1 as ɵbr, SlidersNgContentLibModule as ɵbs, SlidersNgContentLibComponent as ɵbt, ScrollableItemModule as ɵbu, WidgetUserService as ɵc, MultilingualTranslationsService as ɵd, ConfigurationsService as ɵe, HorizontalScrollerV2Module as ɵf, HorizontalScrollerV2Component as ɵg, SlidersLibComponent as ɵh, NavigationModule as ɵi, NavigationDirective as ɵj, ImageResponsiveModule as ɵk, ImageResponsiveDirective as ɵl, DataPointsComponent as ɵm, InsiteDataService as ɵn, SkeletonLoaderLibModule as ɵo, SkeletonLoaderLibComponent as ɵp, CalenderComponent as ɵq, CalenderDayComponent as ɵr, CommonStripComponent as ɵs, CardResourceComponent as ɵt, CardsComponent as ɵu, CardPortraitComponent as ɵv, CardUserComponent as ɵw, CardLandscapeComponent as ɵx, CardWideComponent as ɵy, PipePublicURLModule as ɵz };
9871
9417
  //# sourceMappingURL=sunbird-cb-consumption.js.map