@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';
@@ -7959,7 +7959,7 @@ var CardsComponent = /** @class */ (function (_super) {
7959
7959
  CardsComponent.decorators = [
7960
7960
  { type: Component, args: [{
7961
7961
  selector: 'sb-uic-cards',
7962
- 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",
7962
+ 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",
7963
7963
  styles: [""]
7964
7964
  }] }
7965
7965
  ];
@@ -9026,7 +9026,7 @@ var CardWideComponent = /** @class */ (function () {
9026
9026
  { type: Component, args: [{
9027
9027
  selector: 'sb-uic-card-wide',
9028
9028
  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",
9029
- 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}"]
9029
+ 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}}"]
9030
9030
  }] }
9031
9031
  ];
9032
9032
  /** @nocollapse */
@@ -9923,664 +9923,155 @@ if (false) {
9923
9923
  * @fileoverview added by tsickle
9924
9924
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9925
9925
  */
9926
- var UserContentRatingComponent = /** @class */ (function () {
9927
- function UserContentRatingComponent(ratingService) {
9926
+ var ScrollableItemDirective = /** @class */ (function () {
9927
+ function ScrollableItemDirective(el) {
9928
+ this.el = el;
9929
+ }
9930
+ /**
9931
+ * @param {?} blockValue
9932
+ * @return {?}
9933
+ */
9934
+ ScrollableItemDirective.prototype.scrollIntoView = /**
9935
+ * @param {?} blockValue
9936
+ * @return {?}
9937
+ */
9938
+ function (blockValue) {
9939
+ this.el.nativeElement.scrollIntoView({ behavior: 'smooth', block: blockValue });
9940
+ };
9941
+ ScrollableItemDirective.decorators = [
9942
+ { type: Directive, args: [{
9943
+ selector: '[sbUicScrollableItem]'
9944
+ },] }
9945
+ ];
9946
+ /** @nocollapse */
9947
+ ScrollableItemDirective.ctorParameters = function () { return [
9948
+ { type: ElementRef }
9949
+ ]; };
9950
+ ScrollableItemDirective.propDecorators = {
9951
+ key: [{ type: Input, args: ['sbUicScrollableItem',] }]
9952
+ };
9953
+ return ScrollableItemDirective;
9954
+ }());
9955
+ if (false) {
9956
+ /** @type {?} */
9957
+ ScrollableItemDirective.prototype.key;
9958
+ /**
9959
+ * @type {?}
9960
+ * @private
9961
+ */
9962
+ ScrollableItemDirective.prototype.el;
9963
+ }
9964
+
9965
+ /**
9966
+ * @fileoverview added by tsickle
9967
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
9968
+ */
9969
+ /** @type {?} */
9970
+ var API_END_POINTS$4 = {
9971
+ TOP_REVIEWS: "/apis/proxies/v8/ratings/v1/topReviews"
9972
+ };
9973
+ var UserContentRatingLibService = /** @class */ (function () {
9974
+ function UserContentRatingLibService(http) {
9975
+ this.http = http;
9976
+ }
9977
+ /**
9978
+ * @param {?} doId
9979
+ * @return {?}
9980
+ */
9981
+ UserContentRatingLibService.prototype.fetchTopReviews = /**
9982
+ * @param {?} doId
9983
+ * @return {?}
9984
+ */
9985
+ function (doId) {
9986
+ return this.http.get(API_END_POINTS$4.TOP_REVIEWS + "/" + doId);
9987
+ };
9988
+ UserContentRatingLibService.decorators = [
9989
+ { type: Injectable, args: [{
9990
+ providedIn: 'root'
9991
+ },] }
9992
+ ];
9993
+ /** @nocollapse */
9994
+ UserContentRatingLibService.ctorParameters = function () { return [
9995
+ { type: HttpClient }
9996
+ ]; };
9997
+ /** @nocollapse */ UserContentRatingLibService.ngInjectableDef = ɵɵdefineInjectable({ factory: function UserContentRatingLibService_Factory() { return new UserContentRatingLibService(ɵɵinject(HttpClient)); }, token: UserContentRatingLibService, providedIn: "root" });
9998
+ return UserContentRatingLibService;
9999
+ }());
10000
+ if (false) {
10001
+ /**
10002
+ * @type {?}
10003
+ * @private
10004
+ */
10005
+ UserContentRatingLibService.prototype.http;
10006
+ }
10007
+
10008
+ /**
10009
+ * @fileoverview added by tsickle
10010
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
10011
+ */
10012
+ var UserContentRatingLibComponent = /** @class */ (function () {
10013
+ function UserContentRatingLibComponent(ratingService, userRatingSvc) {
9928
10014
  this.ratingService = ratingService;
10015
+ this.userRatingSvc = userRatingSvc;
9929
10016
  this.currentIndex = 0;
9930
- this.styleData = {
9931
- "bannerMetaClass": "inline-meta",
9932
- "bannerMeta": "visible",
9933
- "bannerMetaAlign": "right",
9934
- "navigationArrows": "visible",
9935
- "borderRadius": "0",
9936
- "customHeight": "424px",
9937
- "arrowsPlacement": "middle-inline",
9938
- "responsive": {
9939
- "bannerMetaClass": "inline-meta",
9940
- "customHeight": "232px",
9941
- "bannerMetaAlign": "right",
9942
- "navigationArrows": "visible",
9943
- "dots": "hidden",
9944
- "arrowsPlacement": "middle-inline"
9945
- }
9946
- };
9947
- this.sliders = [
9948
- {
9949
- "active": true,
9950
- "banners": {
9951
- "l": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
9952
- "m": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
9953
- "s": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
9954
- "xl": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
9955
- "xs": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
9956
- "xxl": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png"
9957
- },
9958
- "redirectUrl": "",
9959
- "queryParams": {},
9960
- "title": ""
9961
- },
9962
- {
9963
- "active": true,
9964
- "banners": {
9965
- "l": "https://portal.karmayogi.nic.in/content-store/content/do_114051312372424704125/artifact/do_114051312372424704125_1715248147439_l.png",
9966
- "m": "https://portal.karmayogi.nic.in/content-store/content/do_114051312372424704125/artifact/do_114051312372424704125_1715248147439_l.png",
9967
- "s": "https://portal.karmayogi.nic.in/content-store/content/do_114051312372424704125/artifact/do_114051312372424704125_1715248147439_l.png",
9968
- "xl": "https://portal.karmayogi.nic.in/content-store/content/do_114051312372424704125/artifact/do_114051312372424704125_1715248147439_l.png",
9969
- "xs": "https://portal.karmayogi.nic.in/content-store/content/do_114051312372424704125/artifact/do_114051312372424704125_1715248147439_l.png",
9970
- "xxl": "https://portal.karmayogi.nic.in/content-store/content/do_114051312372424704125/artifact/do_114051312372424704125_1715248147439_l.png"
9971
- },
9972
- "redirectUrl": "",
9973
- "queryParams": {},
9974
- "title": ""
9975
- },
9976
- {
9977
- "active": true,
9978
- "banners": {
9979
- "l": "https://portal.karmayogi.nic.in/content-store/content/do_114051314864234496126/artifact/do_114051314864234496126_1715248438443_l.png",
9980
- "m": "https://portal.karmayogi.nic.in/content-store/content/do_114051314864234496126/artifact/do_114051314864234496126_1715248438443_l.png",
9981
- "s": "https://portal.karmayogi.nic.in/content-store/content/do_114051314864234496126/artifact/do_114051314864234496126_1715248438443_l.png",
9982
- "xl": "https://portal.karmayogi.nic.in/content-store/content/do_114051314864234496126/artifact/do_114051314864234496126_1715248438443_l.png",
9983
- "xs": "https://portal.karmayogi.nic.in/content-store/content/do_114051314864234496126/artifact/do_114051314864234496126_1715248438443_l.png",
9984
- "xxl": "https://portal.karmayogi.nic.in/content-store/content/do_114051314864234496126/artifact/do_114051314864234496126_1715248438443_l.png"
9985
- },
9986
- "redirectUrl": "",
9987
- "queryParams": {},
9988
- "title": ""
9989
- },
9990
- {
9991
- "active": true,
9992
- "banners": {
9993
- "l": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
9994
- "m": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
9995
- "s": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
9996
- "xl": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
9997
- "xs": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
9998
- "xxl": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png"
9999
- },
10000
- "redirectUrl": "",
10001
- "queryParams": {},
10002
- "title": ""
10003
- },
10004
- {
10005
- "active": true,
10006
- "banners": {
10007
- "l": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
10008
- "m": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
10009
- "s": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
10010
- "xl": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
10011
- "xs": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png",
10012
- "xxl": "https://portal.karmayogi.nic.in/content-store/content/do_114051307572264960124/artifact/do_114051307572264960124_1715247613335_l.png"
10013
- },
10014
- "redirectUrl": "",
10015
- "queryParams": {},
10016
- "title": ""
10017
- }
10018
- ];
10019
- this.contentCard = {
10020
- "content": {
10021
- "identifier": "do_113990515935854592111",
10022
- "competencies_v5": [
10023
- {
10024
- "competencyArea": "Behavioural",
10025
- "competencyAreaId": 1,
10026
- "competencyAreaDescription": "Behavioural Competency Area",
10027
- "competencyTheme": "Collaboration",
10028
- "competencyThemeId": 25,
10029
- "competecnyThemeDescription": "Collaboration competency Theme",
10030
- "competencyThemeType": "Core",
10031
- "competencySubTheme": "Diversity & Inclusion",
10032
- "competencySubThemeId": 27,
10033
- "competecnySubThemeDescription": "Diversity & Inclusion Competency Sub-Theme"
10034
- }
10035
- ],
10036
- "description": "Invite only program",
10037
- "organisation": [
10038
- "Ministry of Finance"
10039
- ],
10040
- "creatorLogo": null,
10041
- "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_1139430185765847041226/artifact/do_1139430185765847041226_1702028635111_maxresdefault.jpg",
10042
- "duration": "2280",
10043
- "additionalTags": null,
10044
- "appIcon": "https://static.karmayogiprod.nic.in/igotqa/collection/do_113990515935854592111/artifact/do_1139430185765847041226_1702028635111_maxresdefault.thumb.jpg",
10045
- "primaryCategory": "Program",
10046
- "name": "Invite only program",
10047
- "avgRating": null,
10048
- "contentType": "Course"
10049
- },
10050
- "cardSubType": "card-wide-lib",
10051
- "cardCustomeClass": "",
10052
- "context": {
10053
- "pageSection": "featuredContents",
10054
- "position": 3
10055
- },
10056
- "review": "Credit",
10057
- "rating": 5.0,
10058
- "userDetails": {
10059
- "firstName": "Agri usertwo",
10060
- "userId": "f00473e1-54e8-40b7-b541-461250f298d1",
10061
- "profileImageUrl": null
10062
- }
10063
- };
10064
- this.widgetData = {
10065
- cardSubType: ''
10066
- };
10067
- this.responseData = [
10068
- {
10069
- "review": "Credit",
10070
- "rating": 5.0,
10071
- "userDetails": {
10072
- "firstName": "Agri usertwo",
10073
- "userId": "f00473e1-54e8-40b7-b541-461250f298d1",
10074
- "profileImageUrl": null
10075
- },
10076
- "content": {
10077
- "identifier": "do_113990515935854592111",
10078
- "competencies_v5": [
10079
- {
10080
- "competencyArea": "Behavioural",
10081
- "competencyAreaId": 1,
10082
- "competencyAreaDescription": "Behavioural Competency Area",
10083
- "competencyTheme": "Collaboration",
10084
- "competencyThemeId": 25,
10085
- "competecnyThemeDescription": "Collaboration competency Theme",
10086
- "competencyThemeType": "Core",
10087
- "competencySubTheme": "Diversity & Inclusion",
10088
- "competencySubThemeId": 27,
10089
- "competecnySubThemeDescription": "Diversity & Inclusion Competency Sub-Theme"
10090
- }
10091
- ],
10092
- "description": "Invite only program",
10093
- "organisation": [
10094
- "Ministry of Finance"
10095
- ],
10096
- "creatorLogo": null,
10097
- "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_1139430185765847041226/artifact/do_1139430185765847041226_1702028635111_maxresdefault.jpg",
10098
- "duration": "2280",
10099
- "additionalTags": null,
10100
- "appIcon": "https://static.karmayogiprod.nic.in/igotqa/collection/do_113990515935854592111/artifact/do_1139430185765847041226_1702028635111_maxresdefault.thumb.jpg",
10101
- "primaryCategory": "Program",
10102
- "name": "Invite only program",
10103
- "avgRating": null,
10104
- "contentType": "Course"
10105
- },
10106
- "cardSubType": "card-wide-lib",
10107
- "cardCustomeClass": "",
10108
- "context": {
10109
- "pageSection": "featuredContents",
10110
- "position": 3
10111
- }
10112
- },
10113
- {
10114
- "review": "Abc xyz1",
10115
- "rating": 5.0,
10116
- "userDetails": {
10117
- "firstName": "Qa test user one @#$ 123",
10118
- "userId": "7fd686b6-d5b2-4e0a-a43f-d6e57cd2ea09",
10119
- "profileImageUrl": null
10120
- },
10121
- "cardSubType": "card-wide-lib",
10122
- "cardCustomeClass": "",
10123
- "context": {
10124
- "pageSection": "featuredContents",
10125
- "position": 3
10126
- },
10127
- "content": {
10128
- "identifier": "do_113987549775609856182_rc",
10129
- "competencies_v5": [
10130
- {
10131
- "competencyArea": "Domain",
10132
- "competencyAreaId": 145,
10133
- "competencyAreaDescription": "Domain Competency Area",
10134
- "competencyTheme": "Account Management",
10135
- "competencyThemeId": 148,
10136
- "competecnyThemeDescription": "Account Management competency Theme",
10137
- "competencyThemeType": "Core",
10138
- "competencySubTheme": "Account Management",
10139
- "competencySubThemeId": 149,
10140
- "competecnySubThemeDescription": "Account Management Competency Sub-Theme"
10141
- }
10142
- ],
10143
- "description": "Course Check for MDO Specific All Users 09 Feb",
10144
- "organisation": [
10145
- "Ministry of Finance"
10146
- ],
10147
- "creatorLogo": null,
10148
- "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_11395704427130060819/artifact/do_11395704427130060819_1703740756028_capture71703740758098.png",
10149
- "duration": "606",
10150
- "additionalTags": null,
10151
- "appIcon": "https://static.karmayogiprod.nic.in/igotqa/collection/do_113987549775609856182_rc/artifact/do_11395704427130060819_1703740756028_capture71703740758098.thumb.png",
10152
- "primaryCategory": "Course",
10153
- "name": "Course Check for MDO Specific All Users 09 Feb",
10154
- "avgRating": 5.0,
10155
- "contentType": "Course"
10156
- }
10157
- },
10158
- {
10159
- "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",
10160
- "rating": 5.0,
10161
- "userDetails": {
10162
- "firstName": "Agri usertwo",
10163
- "userId": "f00473e1-54e8-40b7-b541-461250f298d1",
10164
- "profileImageUrl": null
10165
- },
10166
- "cardSubType": "card-wide-lib",
10167
- "cardCustomeClass": "",
10168
- "context": {
10169
- "pageSection": "featuredContents",
10170
- "position": 3
10171
- },
10172
- "content": {
10173
- "identifier": "do_114006606955921408144",
10174
- "competencies_v5": [
10175
- {
10176
- "competencyArea": "Behavioural",
10177
- "competencyAreaId": 1,
10178
- "competencyAreaDescription": "Behavioural Competency Area",
10179
- "competencyTheme": "Collaborative Leadership",
10180
- "competencyThemeId": 46,
10181
- "competecnyThemeDescription": "Collaborative Leadership competency Theme",
10182
- "competencyThemeType": "Leadership",
10183
- "competencySubTheme": "Influencing and Negotiation",
10184
- "competencySubThemeId": 47,
10185
- "competecnySubThemeDescription": "Influencing and Negotiation Competency Sub-Theme"
10186
- }
10187
- ],
10188
- "description": "test Scrom",
10189
- "organisation": [
10190
- "Ministry of Finance"
10191
- ],
10192
- "creatorLogo": null,
10193
- "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_1139430185765847041226/artifact/do_1139430185765847041226_1702028635111_maxresdefault.jpg",
10194
- "duration": "180",
10195
- "additionalTags": null,
10196
- "appIcon": "https://static.karmayogiprod.nic.in/igotqa/collection/do_114006606955921408144/artifact/do_1139430185765847041226_1702028635111_maxresdefault.thumb.jpg",
10197
- "primaryCategory": "Course",
10198
- "name": "Large PDF test Cases",
10199
- "avgRating": 4.0,
10200
- "contentType": "Course"
10201
- }
10202
- },
10203
- {
10204
- "review": "Good courseQA",
10205
- "rating": 5.0,
10206
- "userDetails": {
10207
- "firstName": "Public User QA env",
10208
- "userId": "0517056e-b57b-49ca-a44c-cdc3a251dd3e",
10209
- "profileImageUrl": null
10210
- },
10211
- "cardSubType": "card-wide-lib",
10212
- "cardCustomeClass": "",
10213
- "context": {
10214
- "pageSection": "featuredContents",
10215
- "position": 3
10216
- },
10217
- "content": {
10218
- "identifier": "do_113902049969004544112",
10219
- "competencies_v5": [
10220
- {
10221
- "competencyArea": "Domain",
10222
- "competencyAreaDescription": "Domain Competency Area",
10223
- "competencyAreaId": 145,
10224
- "competencyTheme": "Communication Backbone System Maintenance",
10225
- "competencyThemeDescription": "Communication Backbone System Maintenance competency Theme",
10226
- "competencyThemeId": 186,
10227
- "competencyThemeType": "Core",
10228
- "competencySubTheme": "Communication Backbone System Maintenance",
10229
- "competencySubThemeId": 187,
10230
- "competencySubThemeDescription": "Communication Backbone System Maintenance Competency Sub-Theme"
10231
- },
10232
- {
10233
- "competencyArea": "Domain",
10234
- "competencyAreaDescription": "Domain Competency Area",
10235
- "competencyAreaId": 145,
10236
- "competencyTheme": "Communication Auxiliary Systems Maintenance",
10237
- "competencyThemeDescription": "Communication Auxiliary Systems Maintenance competency Theme",
10238
- "competencyThemeId": 184,
10239
- "competencyThemeType": "Core",
10240
- "competencySubTheme": "Communication Auxiliary Systems Maintenance",
10241
- "competencySubThemeId": 185,
10242
- "competencySubThemeDescription": "Communication Auxiliary Systems Maintenance Competency Sub-Theme"
10243
- }
10244
- ],
10245
- "description": "QATestCourse2",
10246
- "organisation": [
10247
- "Ministry of Finance"
10248
- ],
10249
- "creatorLogo": null,
10250
- "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_113902071254761472117/artifact/do_113902071254761472117_1697030308090_screenshotfrom202310101224021697030170978.png",
10251
- "duration": "540",
10252
- "additionalTags": null,
10253
- "appIcon": "https://portal.karmayogiqa.nic.in/content-store/content/do_113902071254761472117/artifact/do_113902071254761472117_1697030308090_screenshotfrom202310101224021697030170978.png",
10254
- "primaryCategory": "Course",
10255
- "name": "QATestCourse2",
10256
- "avgRating": 5.0,
10257
- "contentType": "Course"
10258
- }
10259
- },
10260
- {
10261
- "review": "ok",
10262
- "rating": 5.0,
10263
- "userDetails": {
10264
- "firstName": "qatestcreator",
10265
- "userId": "54548483-0708-417c-ac9f-9b2260e13962",
10266
- "profileImageUrl": null
10267
- },
10268
- "cardSubType": "card-wide-lib",
10269
- "cardCustomeClass": "",
10270
- "context": {
10271
- "pageSection": "featuredContents",
10272
- "position": 3
10273
- },
10274
- "content": {
10275
- "identifier": "do_113902049969004544112",
10276
- "competencies_v5": [
10277
- {
10278
- "competencyArea": "Domain",
10279
- "competencyAreaDescription": "Domain Competency Area",
10280
- "competencyAreaId": 145,
10281
- "competencyTheme": "Communication Backbone System Maintenance",
10282
- "competencyThemeDescription": "Communication Backbone System Maintenance competency Theme",
10283
- "competencyThemeId": 186,
10284
- "competencyThemeType": "Core",
10285
- "competencySubTheme": "Communication Backbone System Maintenance",
10286
- "competencySubThemeId": 187,
10287
- "competencySubThemeDescription": "Communication Backbone System Maintenance Competency Sub-Theme"
10288
- },
10289
- {
10290
- "competencyArea": "Domain",
10291
- "competencyAreaDescription": "Domain Competency Area",
10292
- "competencyAreaId": 145,
10293
- "competencyTheme": "Communication Auxiliary Systems Maintenance",
10294
- "competencyThemeDescription": "Communication Auxiliary Systems Maintenance competency Theme",
10295
- "competencyThemeId": 184,
10296
- "competencyThemeType": "Core",
10297
- "competencySubTheme": "Communication Auxiliary Systems Maintenance",
10298
- "competencySubThemeId": 185,
10299
- "competencySubThemeDescription": "Communication Auxiliary Systems Maintenance Competency Sub-Theme"
10300
- }
10301
- ],
10302
- "description": "QATestCourse2",
10303
- "organisation": [
10304
- "Ministry of Finance"
10305
- ],
10306
- "creatorLogo": null,
10307
- "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_113902071254761472117/artifact/do_113902071254761472117_1697030308090_screenshotfrom202310101224021697030170978.png",
10308
- "duration": "540",
10309
- "additionalTags": null,
10310
- "appIcon": "https://portal.karmayogiqa.nic.in/content-store/content/do_113902071254761472117/artifact/do_113902071254761472117_1697030308090_screenshotfrom202310101224021697030170978.png",
10311
- "primaryCategory": "Course",
10312
- "name": "QATestCourse2",
10313
- "avgRating": 5.0,
10314
- "contentType": "Course"
10315
- }
10316
- },
10317
- {
10318
- "review": "nic onenic onenic onenic onenic onenic onenic onenic onenic onenic onenic onenic onenic one",
10319
- "rating": 5.0,
10320
- "userDetails": {
10321
- "firstName": "Qa test user one @#$ 123",
10322
- "userId": "7fd686b6-d5b2-4e0a-a43f-d6e57cd2ea09",
10323
- "profileImageUrl": null
10324
- },
10325
- "cardSubType": "card-wide-lib",
10326
- "cardCustomeClass": "",
10327
- "context": {
10328
- "pageSection": "featuredContents",
10329
- "position": 3
10330
- },
10331
- "content": {
10332
- "identifier": "do_113902049969004544112",
10333
- "competencies_v5": [
10334
- {
10335
- "competencyArea": "Domain",
10336
- "competencyAreaDescription": "Domain Competency Area",
10337
- "competencyAreaId": 145,
10338
- "competencyTheme": "Communication Backbone System Maintenance",
10339
- "competencyThemeDescription": "Communication Backbone System Maintenance competency Theme",
10340
- "competencyThemeId": 186,
10341
- "competencyThemeType": "Core",
10342
- "competencySubTheme": "Communication Backbone System Maintenance",
10343
- "competencySubThemeId": 187,
10344
- "competencySubThemeDescription": "Communication Backbone System Maintenance Competency Sub-Theme"
10345
- },
10346
- {
10347
- "competencyArea": "Domain",
10348
- "competencyAreaDescription": "Domain Competency Area",
10349
- "competencyAreaId": 145,
10350
- "competencyTheme": "Communication Auxiliary Systems Maintenance",
10351
- "competencyThemeDescription": "Communication Auxiliary Systems Maintenance competency Theme",
10352
- "competencyThemeId": 184,
10353
- "competencyThemeType": "Core",
10354
- "competencySubTheme": "Communication Auxiliary Systems Maintenance",
10355
- "competencySubThemeId": 185,
10356
- "competencySubThemeDescription": "Communication Auxiliary Systems Maintenance Competency Sub-Theme"
10357
- }
10358
- ],
10359
- "description": "QATestCourse2",
10360
- "organisation": [
10361
- "Ministry of Finance"
10362
- ],
10363
- "creatorLogo": null,
10364
- "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_113902071254761472117/artifact/do_113902071254761472117_1697030308090_screenshotfrom202310101224021697030170978.png",
10365
- "duration": "540",
10366
- "additionalTags": null,
10367
- "appIcon": "https://portal.karmayogiqa.nic.in/content-store/content/do_113902071254761472117/artifact/do_113902071254761472117_1697030308090_screenshotfrom202310101224021697030170978.png",
10368
- "primaryCategory": "Course",
10369
- "name": "QATestCourse2",
10370
- "avgRating": 5.0,
10371
- "contentType": "Course"
10372
- }
10373
- },
10374
- {
10375
- "review": "Checking Ratings and alignment under Overview",
10376
- "rating": 5.0,
10377
- "userDetails": {
10378
- "firstName": "Get Started User Five",
10379
- "userId": "e6a9d4b6-b30a-405f-9bcb-166038600218",
10380
- "profileImageUrl": null
10381
- },
10382
- "cardSubType": "card-wide-lib",
10383
- "cardCustomeClass": "",
10384
- "context": {
10385
- "pageSection": "featuredContents",
10386
- "position": 3
10387
- },
10388
- "content": {
10389
- "identifier": "do_113902049969004544112",
10390
- "competencies_v5": [
10391
- {
10392
- "competencyArea": "Domain",
10393
- "competencyAreaDescription": "Domain Competency Area",
10394
- "competencyAreaId": 145,
10395
- "competencyTheme": "Communication Backbone System Maintenance",
10396
- "competencyThemeDescription": "Communication Backbone System Maintenance competency Theme",
10397
- "competencyThemeId": 186,
10398
- "competencyThemeType": "Core",
10399
- "competencySubTheme": "Communication Backbone System Maintenance",
10400
- "competencySubThemeId": 187,
10401
- "competencySubThemeDescription": "Communication Backbone System Maintenance Competency Sub-Theme"
10402
- },
10403
- {
10404
- "competencyArea": "Domain",
10405
- "competencyAreaDescription": "Domain Competency Area",
10406
- "competencyAreaId": 145,
10407
- "competencyTheme": "Communication Auxiliary Systems Maintenance",
10408
- "competencyThemeDescription": "Communication Auxiliary Systems Maintenance competency Theme",
10409
- "competencyThemeId": 184,
10410
- "competencyThemeType": "Core",
10411
- "competencySubTheme": "Communication Auxiliary Systems Maintenance",
10412
- "competencySubThemeId": 185,
10413
- "competencySubThemeDescription": "Communication Auxiliary Systems Maintenance Competency Sub-Theme"
10414
- }
10415
- ],
10416
- "description": "QATestCourse2",
10417
- "organisation": [
10418
- "Ministry of Finance"
10419
- ],
10420
- "creatorLogo": null,
10421
- "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_113902071254761472117/artifact/do_113902071254761472117_1697030308090_screenshotfrom202310101224021697030170978.png",
10422
- "duration": "540",
10423
- "additionalTags": null,
10424
- "appIcon": "https://portal.karmayogiqa.nic.in/content-store/content/do_113902071254761472117/artifact/do_113902071254761472117_1697030308090_screenshotfrom202310101224021697030170978.png",
10425
- "primaryCategory": "Course",
10426
- "name": "QATestCourse2",
10427
- "avgRating": 5.0,
10428
- "contentType": "Course"
10429
- }
10430
- },
10431
- {
10432
- "review": "Testing rating 123",
10433
- "rating": 5.0,
10434
- "userDetails": {
10435
- "firstName": "Qa test user one @#$ 123",
10436
- "userId": "7fd686b6-d5b2-4e0a-a43f-d6e57cd2ea09",
10437
- "profileImageUrl": null
10438
- },
10439
- "cardSubType": "card-wide-lib",
10440
- "cardCustomeClass": "",
10441
- "context": {
10442
- "pageSection": "featuredContents",
10443
- "position": 3
10444
- },
10445
- "content": {
10446
- "identifier": "do_1139400923254046721119",
10447
- "competencies_v5": [
10448
- {
10449
- "competencyArea": "Functional",
10450
- "competencyAreaDescription": "Functional Competency Area",
10451
- "competencyAreaId": 56,
10452
- "competencyTheme": "Administration Matters",
10453
- "competencyThemeDescription": "Administration Matters competency Theme",
10454
- "competencyThemeId": 140,
10455
- "competencyThemeType": "Core",
10456
- "competencySubTheme": "Handling Miscellaneous Matters (Car, Residence, Personal Staff etc.)",
10457
- "competencySubThemeId": 143,
10458
- "competencySubThemeDescription": "Handling Miscellaneous Matters (Car, Residence, Personal Staff etc.) Competency Sub-Theme"
10459
- }
10460
- ],
10461
- "description": "Youtube Links",
10462
- "organisation": [
10463
- "Ministry of Finance"
10464
- ],
10465
- "creatorLogo": null,
10466
- "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_1139400694644490241113/artifact/do_1139400694644490241113_1701668637063_effective-communication.png",
10467
- "duration": "420",
10468
- "additionalTags": null,
10469
- "appIcon": "https://static.karmayogiprod.nic.in/igotqa/collection/do_1139400923254046721119/artifact/do_1139400694644490241113_1701668637063_effective-communication.thumb.png",
10470
- "primaryCategory": "Course",
10471
- "name": "Course New 04 Dec",
10472
- "avgRating": 5.0,
10473
- "contentType": "Course"
10474
- }
10475
- },
10476
- {
10477
- "review": "nice1",
10478
- "rating": 5.0,
10479
- "userDetails": {
10480
- "firstName": "Qa test user one @#$ 123",
10481
- "userId": "7fd686b6-d5b2-4e0a-a43f-d6e57cd2ea09",
10482
- "profileImageUrl": null
10483
- },
10484
- "cardSubType": "card-wide-lib",
10485
- "cardCustomeClass": "",
10486
- "context": {
10487
- "pageSection": "featuredContents",
10488
- "position": 3
10489
- },
10490
- "content": {
10491
- "identifier": "do_1139967854457651201519_rc",
10492
- "competencies_v5": [
10493
- {
10494
- "competencyArea": "Behavioural",
10495
- "competencyAreaId": 1,
10496
- "competencyAreaDescription": "Behavioural Competency Area",
10497
- "competencyTheme": "Personal Effectiveness",
10498
- "competencyThemeId": 7,
10499
- "competecnyThemeDescription": "Personal Effectiveness competency Theme",
10500
- "competencyThemeType": "Core",
10501
- "competencySubTheme": "Resilience",
10502
- "competencySubThemeId": 9,
10503
- "competecnySubThemeDescription": "Resilience Competency Sub-Theme"
10504
- }
10505
- ],
10506
- "description": "Sub:- Vikas- New Program '22/02/24' ",
10507
- "organisation": [
10508
- "Ministry of Finance"
10509
- ],
10510
- "creatorLogo": null,
10511
- "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_1139946848192430081395/artifact/do_1139946848192430081395_1708335549501_digitalindiaandegovernance1708335549950.jpg",
10512
- "duration": "12761",
10513
- "additionalTags": null,
10514
- "appIcon": "https://static.karmayogiprod.nic.in/igotqa/collection/do_1139967854457651201519_rc/artifact/do_1139946848192430081395_1708335549501_digitalindiaandegovernance1708335549950.thumb.jpg",
10515
- "primaryCategory": "Program",
10516
- "name": "Vikas- New Program '22/02/24'",
10517
- "avgRating": 2.0,
10518
- "contentType": "Course"
10519
- }
10520
- },
10521
- {
10522
- "review": "bv",
10523
- "rating": 5.0,
10524
- "userDetails": {
10525
- "firstName": "qa dstuserone",
10526
- "userId": "31c81730-bf33-437a-a53e-0bd8ac2fc3d6",
10527
- "profileImageUrl": null
10528
- },
10529
- "cardSubType": "card-wide-lib",
10530
- "cardCustomeClass": "",
10531
- "context": {
10532
- "pageSection": "featuredContents",
10533
- "position": 3
10534
- },
10535
- "content": {
10536
- "identifier": "do_113965740548784128178",
10537
- "competencies_v5": [
10538
- {
10539
- "competencyArea": "Functional",
10540
- "competencyAreaId": 56,
10541
- "competencyAreaDescription": "Functional Competency Area",
10542
- "competencyTheme": "Establishment & HR",
10543
- "competencyThemeId": 101,
10544
- "competecnyThemeDescription": "Establishment & HR competency Theme",
10545
- "competencyThemeType": "Core",
10546
- "competencySubTheme": "Handling Fundamental Rules /Supplementary Rules",
10547
- "competencySubThemeId": 104,
10548
- "competecnySubThemeDescription": "Handling Fundamental Rules /Supplementary Rules Competency Sub-Theme"
10549
- }
10550
- ],
10551
- "description": "Course with more subthemes",
10552
- "organisation": [
10553
- "Ministry of Finance"
10554
- ],
10555
- "creatorLogo": null,
10556
- "posterImage": "https://portal.karmayogiqa.nic.in/content-store/content/do_113921119628378112168/artifact/do_113921119628378112168_1699355423624_capture121699355424283.png",
10557
- "duration": "540",
10558
- "additionalTags": [
10559
- "mostEnrolled"
10560
- ],
10561
- "appIcon": "https://static.karmayogiprod.nic.in/igotqa/collection/do_113965740548784128178/artifact/do_113921119628378112168_1699355423624_capture121699355424283.thumb.png",
10562
- "primaryCategory": "Course",
10563
- "name": "Course with more subthemes",
10564
- "avgRating": 5.0,
10565
- "contentType": "Course"
10566
- }
10567
- }
10568
- ];
10017
+ this.providerId = '';
10018
+ this.formData = '';
10019
+ this.emptyResponse = new EventEmitter();
10020
+ this.styleData = {};
10021
+ this.contentdata = [];
10569
10022
  }
10570
10023
  /**
10571
10024
  * @return {?}
10572
10025
  */
10573
- UserContentRatingComponent.prototype.ngOnInit = /**
10026
+ UserContentRatingLibComponent.prototype.ngOnInit = /**
10027
+ * @return {?}
10028
+ */
10029
+ function () {
10030
+ this.styleData = this.formData && this.formData.sliderData && this.formData.sliderData.styleData;
10031
+ this.getTopReviews();
10032
+ };
10033
+ /**
10034
+ * @return {?}
10035
+ */
10036
+ UserContentRatingLibComponent.prototype.getTopReviews = /**
10574
10037
  * @return {?}
10575
10038
  */
10576
10039
  function () {
10040
+ var _this = this;
10041
+ this.contentdata = [];
10042
+ this.userRatingSvc.fetchTopReviews(this.providerId).subscribe((/**
10043
+ * @param {?} response
10044
+ * @return {?}
10045
+ */
10046
+ function (response) {
10047
+ if (response && response.result && response.result.content.length) {
10048
+ response.result.content.forEach((/**
10049
+ * @param {?} contentEle
10050
+ * @return {?}
10051
+ */
10052
+ function (contentEle) {
10053
+ /** @type {?} */
10054
+ var localData = {};
10055
+ localData['content'] = contentEle.contentInfo;
10056
+ localData['rating'] = contentEle.rating;
10057
+ localData['review'] = contentEle.review;
10058
+ localData['userDetails'] = contentEle.userDetails;
10059
+ localData['cardSubType'] = "card-wide-lib";
10060
+ localData['cardCustomeClass'] = "";
10061
+ _this.contentdata.push(localData);
10062
+ }));
10063
+ }
10064
+ else {
10065
+ _this.emptyResponse.emit(true);
10066
+ }
10067
+ }));
10577
10068
  };
10578
10069
  /**
10579
10070
  * @param {?} ratingIndex
10580
10071
  * @param {?} avg
10581
10072
  * @return {?}
10582
10073
  */
10583
- UserContentRatingComponent.prototype.getRatingIcon = /**
10074
+ UserContentRatingLibComponent.prototype.getRatingIcon = /**
10584
10075
  * @param {?} ratingIndex
10585
10076
  * @param {?} avg
10586
10077
  * @return {?}
@@ -10593,7 +10084,7 @@ var UserContentRatingComponent = /** @class */ (function () {
10593
10084
  * @param {?} avg
10594
10085
  * @return {?}
10595
10086
  */
10596
- UserContentRatingComponent.prototype.getRatingIconClass = /**
10087
+ UserContentRatingLibComponent.prototype.getRatingIconClass = /**
10597
10088
  * @param {?} ratingIndex
10598
10089
  * @param {?} avg
10599
10090
  * @return {?}
@@ -10605,41 +10096,70 @@ var UserContentRatingComponent = /** @class */ (function () {
10605
10096
  * @param {?} indexValue
10606
10097
  * @return {?}
10607
10098
  */
10608
- UserContentRatingComponent.prototype.getCurrentIndex = /**
10099
+ UserContentRatingLibComponent.prototype.getCurrentIndex = /**
10609
10100
  * @param {?} indexValue
10610
10101
  * @return {?}
10611
10102
  */
10612
10103
  function (indexValue) {
10613
10104
  this.currentIndex = indexValue;
10105
+ this.handleScrollClick(indexValue);
10106
+ };
10107
+ /**
10108
+ * @param {?} dataValue
10109
+ * @return {?}
10110
+ */
10111
+ UserContentRatingLibComponent.prototype.handleScrollClick = /**
10112
+ * @param {?} dataValue
10113
+ * @return {?}
10114
+ */
10115
+ function (dataValue) {
10116
+ /** @type {?} */
10117
+ var item = this.scrollableItems.find((/**
10118
+ * @param {?} x
10119
+ * @return {?}
10120
+ */
10121
+ function (x) { return x.key === dataValue; }));
10122
+ item.scrollIntoView("nearest");
10614
10123
  };
10615
- UserContentRatingComponent.decorators = [
10124
+ UserContentRatingLibComponent.decorators = [
10616
10125
  { type: Component, args: [{
10617
10126
  selector: 'sb-uic-user-content-rating',
10618
- 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",
10619
- 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}"]
10127
+ 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",
10128
+ 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}"]
10620
10129
  }] }
10621
10130
  ];
10622
10131
  /** @nocollapse */
10623
- UserContentRatingComponent.ctorParameters = function () { return [
10624
- { type: RatingService }
10132
+ UserContentRatingLibComponent.ctorParameters = function () { return [
10133
+ { type: RatingService },
10134
+ { type: UserContentRatingLibService }
10625
10135
  ]; };
10626
- return UserContentRatingComponent;
10136
+ UserContentRatingLibComponent.propDecorators = {
10137
+ providerId: [{ type: Input }],
10138
+ formData: [{ type: Input }],
10139
+ emptyResponse: [{ type: Output }],
10140
+ scrollableItems: [{ type: ViewChildren, args: [ScrollableItemDirective,] }]
10141
+ };
10142
+ return UserContentRatingLibComponent;
10627
10143
  }());
10628
10144
  if (false) {
10629
10145
  /** @type {?} */
10630
- UserContentRatingComponent.prototype.currentIndex;
10146
+ UserContentRatingLibComponent.prototype.currentIndex;
10147
+ /** @type {?} */
10148
+ UserContentRatingLibComponent.prototype.providerId;
10149
+ /** @type {?} */
10150
+ UserContentRatingLibComponent.prototype.formData;
10631
10151
  /** @type {?} */
10632
- UserContentRatingComponent.prototype.styleData;
10152
+ UserContentRatingLibComponent.prototype.emptyResponse;
10633
10153
  /** @type {?} */
10634
- UserContentRatingComponent.prototype.sliders;
10154
+ UserContentRatingLibComponent.prototype.styleData;
10635
10155
  /** @type {?} */
10636
- UserContentRatingComponent.prototype.contentCard;
10156
+ UserContentRatingLibComponent.prototype.contentdata;
10637
10157
  /** @type {?} */
10638
- UserContentRatingComponent.prototype.widgetData;
10158
+ UserContentRatingLibComponent.prototype.scrollableItems;
10639
10159
  /** @type {?} */
10640
- UserContentRatingComponent.prototype.responseData;
10160
+ UserContentRatingLibComponent.prototype.ratingService;
10641
10161
  /** @type {?} */
10642
- UserContentRatingComponent.prototype.ratingService;
10162
+ UserContentRatingLibComponent.prototype.userRatingSvc;
10643
10163
  }
10644
10164
 
10645
10165
  /**
@@ -10649,6 +10169,7 @@ if (false) {
10649
10169
  var AvatarPhotoLibComponent = /** @class */ (function () {
10650
10170
  function AvatarPhotoLibComponent() {
10651
10171
  this.size = '';
10172
+ this.defaulfColor = '';
10652
10173
  this.randomColor = false;
10653
10174
  this.showBadge = false;
10654
10175
  this.showInitials = false;
@@ -10684,9 +10205,16 @@ var AvatarPhotoLibComponent = /** @class */ (function () {
10684
10205
  this.createInititals();
10685
10206
  }
10686
10207
  if (this.datalen === 1) {
10687
- this.randomcolors = [
10688
- '#006400',
10689
- ];
10208
+ if (this.defaulfColor) {
10209
+ this.randomcolors = [
10210
+ this.defaulfColor
10211
+ ];
10212
+ }
10213
+ else {
10214
+ this.randomcolors = [
10215
+ '#006400',
10216
+ ];
10217
+ }
10690
10218
  }
10691
10219
  /** @type {?} */
10692
10220
  var randomIndex = Math.floor(Math.random() * Math.floor(this.colors.length));
@@ -10765,6 +10293,7 @@ var AvatarPhotoLibComponent = /** @class */ (function () {
10765
10293
  photoUrl: [{ type: Input }],
10766
10294
  name: [{ type: Input }],
10767
10295
  size: [{ type: Input }],
10296
+ defaulfColor: [{ type: Input }],
10768
10297
  randomColor: [{ type: Input }],
10769
10298
  initials: [{ type: Input }],
10770
10299
  showBadge: [{ type: Input }]
@@ -10781,6 +10310,8 @@ if (false) {
10781
10310
  /** @type {?} */
10782
10311
  AvatarPhotoLibComponent.prototype.size;
10783
10312
  /** @type {?} */
10313
+ AvatarPhotoLibComponent.prototype.defaulfColor;
10314
+ /** @type {?} */
10784
10315
  AvatarPhotoLibComponent.prototype.randomColor;
10785
10316
  /** @type {?} */
10786
10317
  AvatarPhotoLibComponent.prototype.initials;
@@ -10842,6 +10373,7 @@ var SlidersNgContentLibComponent = /** @class */ (function (_super) {
10842
10373
  _this.valueSvc = valueSvc;
10843
10374
  _this.title = '';
10844
10375
  _this.loadNgContentData = false;
10376
+ _this.autoScroll = false;
10845
10377
  _this.currentIndexValue = new EventEmitter();
10846
10378
  _this.id = "banner_" + Math.random();
10847
10379
  _this.defaultMenuSubscribe = null;
@@ -10859,7 +10391,9 @@ var SlidersNgContentLibComponent = /** @class */ (function (_super) {
10859
10391
  */
10860
10392
  function () {
10861
10393
  var _this = this;
10862
- this.reInitiateSlideInterval();
10394
+ if (this.autoScroll) {
10395
+ this.reInitiateSlideInterval();
10396
+ }
10863
10397
  this.defaultMenuSubscribe = this.isLtMedium$.subscribe((/**
10864
10398
  * @param {?} isLtMedium
10865
10399
  * @return {?}
@@ -10922,7 +10456,9 @@ var SlidersNgContentLibComponent = /** @class */ (function (_super) {
10922
10456
  this.currentIndex = this.widgetData.length + index;
10923
10457
  this.currentIndexValue.emit(this.currentIndex);
10924
10458
  }
10925
- this.reInitiateSlideInterval();
10459
+ if (this.autoScroll) {
10460
+ this.reInitiateSlideInterval();
10461
+ }
10926
10462
  };
10927
10463
  Object.defineProperty(SlidersNgContentLibComponent.prototype, "isOpenInNewTab", {
10928
10464
  get: /**
@@ -10991,8 +10527,8 @@ var SlidersNgContentLibComponent = /** @class */ (function (_super) {
10991
10527
  SlidersNgContentLibComponent.decorators = [
10992
10528
  { type: Component, args: [{
10993
10529
  selector: 'sb-uic-sliders-ng-content',
10994
- 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",
10995
- 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}}"]
10530
+ 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",
10531
+ 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}}"]
10996
10532
  }] }
10997
10533
  ];
10998
10534
  /** @nocollapse */
@@ -11005,8 +10541,10 @@ var SlidersNgContentLibComponent = /** @class */ (function (_super) {
11005
10541
  styleData: [{ type: Input }],
11006
10542
  title: [{ type: Input }],
11007
10543
  loadNgContentData: [{ type: Input }],
10544
+ autoScroll: [{ type: Input }],
11008
10545
  currentIndexValue: [{ type: Output }],
11009
- id: [{ type: HostBinding, args: ['id',] }]
10546
+ id: [{ type: HostBinding, args: ['id',] }],
10547
+ currentIndex: [{ type: Input }]
11010
10548
  };
11011
10549
  return SlidersNgContentLibComponent;
11012
10550
  }(WidgetBaseComponent));
@@ -11020,6 +10558,8 @@ if (false) {
11020
10558
  /** @type {?} */
11021
10559
  SlidersNgContentLibComponent.prototype.loadNgContentData;
11022
10560
  /** @type {?} */
10561
+ SlidersNgContentLibComponent.prototype.autoScroll;
10562
+ /** @type {?} */
11023
10563
  SlidersNgContentLibComponent.prototype.currentIndexValue;
11024
10564
  /** @type {?} */
11025
10565
  SlidersNgContentLibComponent.prototype.id;
@@ -11106,12 +10646,31 @@ var SlidersNgContentLibModule = /** @class */ (function () {
11106
10646
  * @fileoverview added by tsickle
11107
10647
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
11108
10648
  */
11109
- var UserContentRatingModule = /** @class */ (function () {
11110
- function UserContentRatingModule() {
10649
+ var ScrollableItemModule = /** @class */ (function () {
10650
+ function ScrollableItemModule() {
10651
+ }
10652
+ ScrollableItemModule.decorators = [
10653
+ { type: NgModule, args: [{
10654
+ declarations: [ScrollableItemDirective],
10655
+ imports: [
10656
+ CommonModule,
10657
+ ],
10658
+ exports: [ScrollableItemDirective],
10659
+ },] }
10660
+ ];
10661
+ return ScrollableItemModule;
10662
+ }());
10663
+
10664
+ /**
10665
+ * @fileoverview added by tsickle
10666
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
10667
+ */
10668
+ var UserContentRatingLibModule = /** @class */ (function () {
10669
+ function UserContentRatingLibModule() {
11111
10670
  }
11112
- UserContentRatingModule.decorators = [
10671
+ UserContentRatingLibModule.decorators = [
11113
10672
  { type: NgModule, args: [{
11114
- declarations: [UserContentRatingComponent],
10673
+ declarations: [UserContentRatingLibComponent],
11115
10674
  imports: [
11116
10675
  CommonModule,
11117
10676
  MatIconModule,
@@ -11120,14 +10679,15 @@ var UserContentRatingModule = /** @class */ (function () {
11120
10679
  SlidersLibModule,
11121
10680
  CardsModule,
11122
10681
  AvatarPhotoLibModule,
11123
- SlidersNgContentLibModule
10682
+ SlidersNgContentLibModule,
10683
+ ScrollableItemModule
11124
10684
  ],
11125
- exports: [UserContentRatingComponent],
11126
- providers: [RatingService],
10685
+ exports: [UserContentRatingLibComponent],
10686
+ providers: [RatingService, UserContentRatingLibService],
11127
10687
  schemas: [CUSTOM_ELEMENTS_SCHEMA]
11128
10688
  },] }
11129
10689
  ];
11130
- return UserContentRatingModule;
10690
+ return UserContentRatingLibModule;
11131
10691
  }());
11132
10692
 
11133
10693
  /**
@@ -11140,5 +10700,5 @@ var UserContentRatingModule = /** @class */ (function () {
11140
10700
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
11141
10701
  */
11142
10702
 
11143
- 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 };
10703
+ 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 };
11144
10704
  //# sourceMappingURL=sunbird-cb-consumption.js.map