@sunbird-cb/consumption 0.0.1

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 (185) hide show
  1. package/README.md +24 -0
  2. package/bundles/sunbird-cb-consumption.umd.js +8116 -0
  3. package/bundles/sunbird-cb-consumption.umd.js.map +1 -0
  4. package/bundles/sunbird-cb-consumption.umd.min.js +17 -0
  5. package/bundles/sunbird-cb-consumption.umd.min.js.map +1 -0
  6. package/esm2015/lib/_common/cards/card-landscape/card-landscape.component.js +209 -0
  7. package/esm2015/lib/_common/cards/card-portrait/card-portrait.component.js +173 -0
  8. package/esm2015/lib/_common/cards/card-resource/card-resource.component.js +34 -0
  9. package/esm2015/lib/_common/cards/card-user/card-user.component.js +141 -0
  10. package/esm2015/lib/_common/cards/cards.component.js +107 -0
  11. package/esm2015/lib/_common/cards/cards.module.js +47 -0
  12. package/esm2015/lib/_common/competency-passbook/competency-passbook.component.js +324 -0
  13. package/esm2015/lib/_common/competency-passbook/competency-passbook.module.js +27 -0
  14. package/esm2015/lib/_common/competency-passbook/competency-passbook.service.js +52 -0
  15. package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +1594 -0
  16. package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +212 -0
  17. package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.module.js +69 -0
  18. package/esm2015/lib/_common/data-points/data-points.component.js +53 -0
  19. package/esm2015/lib/_common/data-points/data-points.module.js +19 -0
  20. package/esm2015/lib/_common/display-content-type-lib/display-content-type-lib.component.js +56 -0
  21. package/esm2015/lib/_common/display-content-type-lib/display-content-type-lib.module.js +18 -0
  22. package/esm2015/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.js +268 -0
  23. package/esm2015/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.module.js +23 -0
  24. package/esm2015/lib/_common/pills/pills.component.js +49 -0
  25. package/esm2015/lib/_common/pills/pills.module.js +24 -0
  26. package/esm2015/lib/_common/skeleton-loader-lib/skeleton-loader-lib.component.js +40 -0
  27. package/esm2015/lib/_common/skeleton-loader-lib/skeleton-loader-lib.module.js +28 -0
  28. package/esm2015/lib/_common/sliders/sliders.component.js +184 -0
  29. package/esm2015/lib/_common/sliders/sliders.model.js +61 -0
  30. package/esm2015/lib/_common/sliders/sliders.module.js +50 -0
  31. package/esm2015/lib/_constants/misc.constants.js +5 -0
  32. package/esm2015/lib/_directives/default-thumbnail/default-thumbnail.directive.js +52 -0
  33. package/esm2015/lib/_directives/default-thumbnail/default-thumbnail.module.js +19 -0
  34. package/esm2015/lib/_directives/image-responsive/image-responsive.directive.js +127 -0
  35. package/esm2015/lib/_directives/image-responsive/image-responsive.module.js +19 -0
  36. package/esm2015/lib/_directives/navigation/navigation.directive.js +54 -0
  37. package/esm2015/lib/_directives/navigation/navigation.module.js +19 -0
  38. package/esm2015/lib/_models/card-content-v2.model.js +78 -0
  39. package/esm2015/lib/_models/card-content.model.js +69 -0
  40. package/esm2015/lib/_models/card-users.model.js +101 -0
  41. package/esm2015/lib/_models/content-strip-multiple.model.js +195 -0
  42. package/esm2015/lib/_models/event.js +45 -0
  43. package/esm2015/lib/_models/profile-v3.models.js +196 -0
  44. package/esm2015/lib/_models/widget-content.model.js +876 -0
  45. package/esm2015/lib/_models/widget-search.model.js +472 -0
  46. package/esm2015/lib/_models/widget-user.model.js +17 -0
  47. package/esm2015/lib/_pipes/pipe-duration-transform/pipe-duration-transform.module.js +19 -0
  48. package/esm2015/lib/_pipes/pipe-duration-transform/pipe-duration-transform.pipe.js +120 -0
  49. package/esm2015/lib/_pipes/pipe-public-URL/pipe-public-URL.module.js +19 -0
  50. package/esm2015/lib/_pipes/pipe-public-URL/pipe-public-URL.pipe.js +38 -0
  51. package/esm2015/lib/_services/common-methods.service.js +60 -0
  52. package/esm2015/lib/_services/configurations.service.js +243 -0
  53. package/esm2015/lib/_services/multilingual-translations.service.js +228 -0
  54. package/esm2015/lib/_services/viewer-route-util.js +125 -0
  55. package/esm2015/lib/_services/widget-content.service.js +818 -0
  56. package/esm2015/lib/_services/widget-user.service.js +439 -0
  57. package/esm2015/lib/consumption.component.js +26 -0
  58. package/esm2015/lib/consumption.config.js +12 -0
  59. package/esm2015/lib/consumption.module.js +26 -0
  60. package/esm2015/lib/consumption.service.js +18 -0
  61. package/esm2015/lib/registration-lib.config.js +21 -0
  62. package/esm2015/public-api.js +19 -0
  63. package/esm2015/sunbird-cb-consumption.js +41 -0
  64. package/esm5/lib/_common/cards/card-landscape/card-landscape.component.js +222 -0
  65. package/esm5/lib/_common/cards/card-portrait/card-portrait.component.js +182 -0
  66. package/esm5/lib/_common/cards/card-resource/card-resource.component.js +41 -0
  67. package/esm5/lib/_common/cards/card-user/card-user.component.js +147 -0
  68. package/esm5/lib/_common/cards/cards.component.js +127 -0
  69. package/esm5/lib/_common/cards/cards.module.js +51 -0
  70. package/esm5/lib/_common/competency-passbook/competency-passbook.component.js +391 -0
  71. package/esm5/lib/_common/competency-passbook/competency-passbook.module.js +31 -0
  72. package/esm5/lib/_common/competency-passbook/competency-passbook.service.js +59 -0
  73. package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +1861 -0
  74. package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +212 -0
  75. package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.module.js +73 -0
  76. package/esm5/lib/_common/data-points/data-points.component.js +62 -0
  77. package/esm5/lib/_common/data-points/data-points.module.js +23 -0
  78. package/esm5/lib/_common/display-content-type-lib/display-content-type-lib.component.js +63 -0
  79. package/esm5/lib/_common/display-content-type-lib/display-content-type-lib.module.js +22 -0
  80. package/esm5/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.js +300 -0
  81. package/esm5/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.module.js +27 -0
  82. package/esm5/lib/_common/pills/pills.component.js +58 -0
  83. package/esm5/lib/_common/pills/pills.module.js +28 -0
  84. package/esm5/lib/_common/skeleton-loader-lib/skeleton-loader-lib.component.js +45 -0
  85. package/esm5/lib/_common/skeleton-loader-lib/skeleton-loader-lib.module.js +32 -0
  86. package/esm5/lib/_common/sliders/sliders.component.js +211 -0
  87. package/esm5/lib/_common/sliders/sliders.model.js +61 -0
  88. package/esm5/lib/_common/sliders/sliders.module.js +67 -0
  89. package/esm5/lib/_constants/misc.constants.js +5 -0
  90. package/esm5/lib/_directives/default-thumbnail/default-thumbnail.directive.js +60 -0
  91. package/esm5/lib/_directives/default-thumbnail/default-thumbnail.module.js +23 -0
  92. package/esm5/lib/_directives/image-responsive/image-responsive.directive.js +137 -0
  93. package/esm5/lib/_directives/image-responsive/image-responsive.module.js +23 -0
  94. package/esm5/lib/_directives/navigation/navigation.directive.js +63 -0
  95. package/esm5/lib/_directives/navigation/navigation.module.js +23 -0
  96. package/esm5/lib/_models/card-content-v2.model.js +78 -0
  97. package/esm5/lib/_models/card-content.model.js +69 -0
  98. package/esm5/lib/_models/card-users.model.js +101 -0
  99. package/esm5/lib/_models/content-strip-multiple.model.js +195 -0
  100. package/esm5/lib/_models/event.js +45 -0
  101. package/esm5/lib/_models/profile-v3.models.js +196 -0
  102. package/esm5/lib/_models/widget-content.model.js +876 -0
  103. package/esm5/lib/_models/widget-search.model.js +472 -0
  104. package/esm5/lib/_models/widget-user.model.js +17 -0
  105. package/esm5/lib/_pipes/pipe-duration-transform/pipe-duration-transform.module.js +23 -0
  106. package/esm5/lib/_pipes/pipe-duration-transform/pipe-duration-transform.pipe.js +143 -0
  107. package/esm5/lib/_pipes/pipe-public-URL/pipe-public-URL.module.js +23 -0
  108. package/esm5/lib/_pipes/pipe-public-URL/pipe-public-URL.pipe.js +41 -0
  109. package/esm5/lib/_services/common-methods.service.js +73 -0
  110. package/esm5/lib/_services/configurations.service.js +257 -0
  111. package/esm5/lib/_services/multilingual-translations.service.js +256 -0
  112. package/esm5/lib/_services/viewer-route-util.js +127 -0
  113. package/esm5/lib/_services/widget-content.service.js +1062 -0
  114. package/esm5/lib/_services/widget-user.service.js +501 -0
  115. package/esm5/lib/consumption.component.js +28 -0
  116. package/esm5/lib/consumption.config.js +12 -0
  117. package/esm5/lib/consumption.module.js +30 -0
  118. package/esm5/lib/consumption.service.js +21 -0
  119. package/esm5/lib/registration-lib.config.js +21 -0
  120. package/esm5/public-api.js +19 -0
  121. package/esm5/sunbird-cb-consumption.js +41 -0
  122. package/fesm2015/sunbird-cb-consumption.js +6940 -0
  123. package/fesm2015/sunbird-cb-consumption.js.map +1 -0
  124. package/fesm5/sunbird-cb-consumption.js +7871 -0
  125. package/fesm5/sunbird-cb-consumption.js.map +1 -0
  126. package/lib/_common/cards/card-landscape/card-landscape.component.d.ts +35 -0
  127. package/lib/_common/cards/card-portrait/card-portrait.component.d.ts +31 -0
  128. package/lib/_common/cards/card-resource/card-resource.component.d.ts +8 -0
  129. package/lib/_common/cards/card-user/card-user.component.d.ts +24 -0
  130. package/lib/_common/cards/cards.component.d.ts +20 -0
  131. package/lib/_common/cards/cards.module.d.ts +2 -0
  132. package/lib/_common/competency-passbook/competency-passbook.component.d.ts +36 -0
  133. package/lib/_common/competency-passbook/competency-passbook.module.d.ts +2 -0
  134. package/lib/_common/competency-passbook/competency-passbook.service.d.ts +8 -0
  135. package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.d.ts +174 -0
  136. package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.d.ts +131 -0
  137. package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.module.d.ts +5 -0
  138. package/lib/_common/data-points/data-points.component.d.ts +9 -0
  139. package/lib/_common/data-points/data-points.module.d.ts +2 -0
  140. package/lib/_common/display-content-type-lib/display-content-type-lib.component.d.ts +11 -0
  141. package/lib/_common/display-content-type-lib/display-content-type-lib.module.d.ts +2 -0
  142. package/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.d.ts +31 -0
  143. package/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.module.d.ts +2 -0
  144. package/lib/_common/pills/pills.component.d.ts +10 -0
  145. package/lib/_common/pills/pills.module.d.ts +2 -0
  146. package/lib/_common/skeleton-loader-lib/skeleton-loader-lib.component.d.ts +8 -0
  147. package/lib/_common/skeleton-loader-lib/skeleton-loader-lib.module.d.ts +2 -0
  148. package/lib/_common/sliders/sliders.component.d.ts +26 -0
  149. package/lib/_common/sliders/sliders.model.d.ts +34 -0
  150. package/lib/_common/sliders/sliders.module.d.ts +6 -0
  151. package/lib/_constants/misc.constants.d.ts +2 -0
  152. package/lib/_directives/default-thumbnail/default-thumbnail.directive.d.ts +9 -0
  153. package/lib/_directives/default-thumbnail/default-thumbnail.module.d.ts +2 -0
  154. package/lib/_directives/image-responsive/image-responsive.directive.d.ts +17 -0
  155. package/lib/_directives/image-responsive/image-responsive.module.d.ts +2 -0
  156. package/lib/_directives/navigation/navigation.directive.d.ts +9 -0
  157. package/lib/_directives/navigation/navigation.module.d.ts +2 -0
  158. package/lib/_models/card-content-v2.model.d.ts +44 -0
  159. package/lib/_models/card-content.model.d.ts +41 -0
  160. package/lib/_models/card-users.model.d.ts +49 -0
  161. package/lib/_models/content-strip-multiple.model.d.ts +128 -0
  162. package/lib/_models/event.d.ts +18 -0
  163. package/lib/_models/profile-v3.models.d.ts +91 -0
  164. package/lib/_models/widget-content.model.d.ts +497 -0
  165. package/lib/_models/widget-search.model.d.ts +252 -0
  166. package/lib/_models/widget-user.model.d.ts +5 -0
  167. package/lib/_pipes/pipe-duration-transform/pipe-duration-transform.module.d.ts +2 -0
  168. package/lib/_pipes/pipe-duration-transform/pipe-duration-transform.pipe.d.ts +6 -0
  169. package/lib/_pipes/pipe-public-URL/pipe-public-URL.module.d.ts +2 -0
  170. package/lib/_pipes/pipe-public-URL/pipe-public-URL.pipe.d.ts +6 -0
  171. package/lib/_services/common-methods.service.d.ts +37 -0
  172. package/lib/_services/configurations.service.d.ts +71 -0
  173. package/lib/_services/multilingual-translations.service.d.ts +20 -0
  174. package/lib/_services/viewer-route-util.d.ts +8 -0
  175. package/lib/_services/widget-content.service.d.ts +82 -0
  176. package/lib/_services/widget-user.service.d.ts +31 -0
  177. package/lib/consumption.component.d.ts +5 -0
  178. package/lib/consumption.config.d.ts +6 -0
  179. package/lib/consumption.module.d.ts +2 -0
  180. package/lib/consumption.service.d.ts +3 -0
  181. package/lib/registration-lib.config.d.ts +4 -0
  182. package/package.json +23 -0
  183. package/public-api.d.ts +11 -0
  184. package/sunbird-cb-consumption.d.ts +36 -0
  185. package/sunbird-cb-consumption.metadata.json +1 -0
@@ -0,0 +1,41 @@
1
+ /**
2
+ * @fileoverview added by tsickle
3
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
+ */
5
+ /**
6
+ * Generated bundle index. Do not edit.
7
+ */
8
+ export { ConsumptionService, ConsumptionComponent, ConsumptionModule, WIDGET_REGISTERED_LIB_MODULES, WIDGET_REGISTRATION_LIB_CONFIG, ROOT_WIDGET_CONFIG, HttpLoaderFactory, ContentStripWithTabsLibModule, MyHammerConfig, SlidersLibModule, DataPointsModule, CardsModule, CompetencyPassbookModule, CommonMethodsService } from './public-api';
9
+ export { CardLandscapeComponent as ɵr } from './lib/_common/cards/card-landscape/card-landscape.component';
10
+ export { CardPortraitComponent as ɵp } from './lib/_common/cards/card-portrait/card-portrait.component';
11
+ export { CardResourceComponent as ɵn } from './lib/_common/cards/card-resource/card-resource.component';
12
+ export { CardUserComponent as ɵq } from './lib/_common/cards/card-user/card-user.component';
13
+ export { CardsComponent as ɵo } from './lib/_common/cards/cards.component';
14
+ export { CompetencyPassbookComponent as ɵbc } from './lib/_common/competency-passbook/competency-passbook.component';
15
+ export { CompetencyPassbookService as ɵbd } from './lib/_common/competency-passbook/competency-passbook.service';
16
+ export { ContentStripWithTabsLibComponent as ɵa } from './lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component';
17
+ export { DataPointsComponent as ɵm } from './lib/_common/data-points/data-points.component';
18
+ export { DisplayContentTypeLibComponent as ɵv } from './lib/_common/display-content-type-lib/display-content-type-lib.component';
19
+ export { DisplayContentTypeLibModule as ɵu } from './lib/_common/display-content-type-lib/display-content-type-lib.module';
20
+ export { HorizontalScrollerV2Component as ɵg } from './lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component';
21
+ export { HorizontalScrollerV2Module as ɵf } from './lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.module';
22
+ export { PillsComponent as ɵbf } from './lib/_common/pills/pills.component';
23
+ export { PillsModule as ɵbe } from './lib/_common/pills/pills.module';
24
+ export { SkeletonLoaderLibComponent as ɵbb } from './lib/_common/skeleton-loader-lib/skeleton-loader-lib.component';
25
+ export { SkeletonLoaderLibModule as ɵba } from './lib/_common/skeleton-loader-lib/skeleton-loader-lib.module';
26
+ export { SlidersLibComponent as ɵh } from './lib/_common/sliders/sliders.component';
27
+ export { DefaultThumbnailDirective as ɵx } from './lib/_directives/default-thumbnail/default-thumbnail.directive';
28
+ export { DefaultThumbnailModule as ɵw } from './lib/_directives/default-thumbnail/default-thumbnail.module';
29
+ export { ImageResponsiveDirective as ɵl } from './lib/_directives/image-responsive/image-responsive.directive';
30
+ export { ImageResponsiveModule as ɵk } from './lib/_directives/image-responsive/image-responsive.module';
31
+ export { NavigationDirective as ɵj } from './lib/_directives/navigation/navigation.directive';
32
+ export { NavigationModule as ɵi } from './lib/_directives/navigation/navigation.module';
33
+ export { PipeDurationTransformModule as ɵy } from './lib/_pipes/pipe-duration-transform/pipe-duration-transform.module';
34
+ export { PipeDurationTransformPipe as ɵz } from './lib/_pipes/pipe-duration-transform/pipe-duration-transform.pipe';
35
+ export { PipePublicURLModule as ɵs } from './lib/_pipes/pipe-public-URL/pipe-public-URL.module';
36
+ export { PipePublicURL as ɵt } from './lib/_pipes/pipe-public-URL/pipe-public-URL.pipe';
37
+ export { ConfigurationsService as ɵe } from './lib/_services/configurations.service';
38
+ export { MultilingualTranslationsService as ɵd } from './lib/_services/multilingual-translations.service';
39
+ export { WidgetContentService as ɵb } from './lib/_services/widget-content.service';
40
+ export { WidgetUserService as ɵc } from './lib/_services/widget-user.service';
41
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3VuYmlyZC1jYi1jb25zdW1wdGlvbi5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWNiL2NvbnN1bXB0aW9uLyIsInNvdXJjZXMiOlsic3VuYmlyZC1jYi1jb25zdW1wdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsa1VBQWMsY0FBYyxDQUFDO0FBRTdCLE9BQU8sRUFBQyxzQkFBc0IsSUFBSSxFQUFFLEVBQUMsTUFBTSw2REFBNkQsQ0FBQztBQUN6RyxPQUFPLEVBQUMscUJBQXFCLElBQUksRUFBRSxFQUFDLE1BQU0sMkRBQTJELENBQUM7QUFDdEcsT0FBTyxFQUFDLHFCQUFxQixJQUFJLEVBQUUsRUFBQyxNQUFNLDJEQUEyRCxDQUFDO0FBQ3RHLE9BQU8sRUFBQyxpQkFBaUIsSUFBSSxFQUFFLEVBQUMsTUFBTSxtREFBbUQsQ0FBQztBQUMxRixPQUFPLEVBQUMsY0FBYyxJQUFJLEVBQUUsRUFBQyxNQUFNLHFDQUFxQyxDQUFDO0FBQ3pFLE9BQU8sRUFBQywyQkFBMkIsSUFBSSxHQUFHLEVBQUMsTUFBTSxpRUFBaUUsQ0FBQztBQUNuSCxPQUFPLEVBQUMseUJBQXlCLElBQUksR0FBRyxFQUFDLE1BQU0sK0RBQStELENBQUM7QUFDL0csT0FBTyxFQUFDLGdDQUFnQyxJQUFJLEVBQUUsRUFBQyxNQUFNLGlGQUFpRixDQUFDO0FBQ3ZJLE9BQU8sRUFBQyxtQkFBbUIsSUFBSSxFQUFFLEVBQUMsTUFBT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IHtQaXBlRHVyYXRpb25UcmFuc2Zvcm1QaXBlIGFzIMm1en0gZnJvbSAnLi9saWIvX3BpcGVzL3BpcGUtZHVyYXRpb24tdHJhbnNmb3JtL3BpcGUtZHVyYXRpb24tdHJhbnNmb3JtLnBpcGUnO1xuZXhwb3J0IHtQaXBlUHVibGljVVJMTW9kdWxlIGFzIMm1c30gZnJvbSAnLi9saWIvX3BpcGVzL3BpcGUtcHVibGljLVVSTC9waXBlLXB1YmxpYy1VUkwubW9kdWxlJztcbmV4cG9ydCB7UGlwZVB1YmxpY1VSTCBhcyDJtXR9IGZyb20gJy4vbGliL19waXBlcy9waXBlLXB1YmxpYy1VUkwvcGlwZS1wdWJsaWMtVVJMLnBpcGUnO1xuZXhwb3J0IHtDb25maWd1cmF0aW9uc1NlcnZpY2UgYXMgybVlfSBmcm9tICcuL2xpYi9fc2VydmljZXMvY29uZmlndXJhdGlvbnMuc2VydmljZSc7XG5leHBvcnQge011bHRpbGluZ3VhbFRyYW5zbGF0aW9uc1NlcnZpY2UgYXMgybVkfSBmcm9tICcuL2xpYi9fc2VydmljZXMvbXVsdGlsaW5ndWFsLXRyYW5zbGF0aW9ucy5zZXJ2aWNlJztcbmV4cG9ydCB7V2lkZ2V0Q29udGVudFNlcnZpY2UgYXMgybVifSBmcm9tICcuL2xpYi9fc2VydmljZXMvd2lkZ2V0LWNvbnRlbnQuc2VydmljZSc7XG5leHBvcnQge1dpZGdldFVzZXJTZXJ2aWNlIGFzIMm1Y30gZnJvbSAnLi9saWIvX3NlcnZpY2VzL3dpZGdldC11c2VyLnNlcnZpY2UnOyJdfQ==
@@ -0,0 +1,222 @@
1
+ /**
2
+ * @fileoverview added by tsickle
3
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
+ */
5
+ import { Component, EventEmitter, Input, Output } from '@angular/core';
6
+ import { NsCardContent } from '../../../_models/card-content.model';
7
+ import { MatSnackBar } from '@angular/material';
8
+ import { ConfigurationsService, EventService } from '@sunbird-cb/utils';
9
+ import * as _ from "lodash";
10
+ import { TranslateService } from '@ngx-translate/core';
11
+ import { MultilingualTranslationsService } from '../../../_services/multilingual-translations.service';
12
+ var CardLandscapeComponent = /** @class */ (function () {
13
+ function CardLandscapeComponent(snackBar, events, translate, langtranslations, configSvc) {
14
+ var _this = this;
15
+ this.snackBar = snackBar;
16
+ this.events = events;
17
+ this.translate = translate;
18
+ this.langtranslations = langtranslations;
19
+ this.configSvc = configSvc;
20
+ this.isCardLoading = false;
21
+ this.contentData = new EventEmitter();
22
+ this.isCardFlipped = false;
23
+ this.acbpConstants = NsCardContent.ACBPConst;
24
+ this.showFlip = false;
25
+ this.widgetType = 'df';
26
+ this.widgetSubType = 'sdf';
27
+ this.langtranslations.languageSelectedObservable.subscribe((/**
28
+ * @return {?}
29
+ */
30
+ function () {
31
+ if (localStorage.getItem('websiteLanguage')) {
32
+ _this.translate.setDefaultLang('en');
33
+ /** @type {?} */
34
+ var lang = (/** @type {?} */ (localStorage.getItem('websiteLanguage')));
35
+ _this.translate.use(lang);
36
+ }
37
+ }));
38
+ }
39
+ /**
40
+ * @return {?}
41
+ */
42
+ CardLandscapeComponent.prototype.ngOnInit = /**
43
+ * @return {?}
44
+ */
45
+ function () {
46
+ var _this = this;
47
+ /** @type {?} */
48
+ var instanceConfig = this.configSvc.instanceConfig;
49
+ if (instanceConfig) {
50
+ this.defaultThumbnail = instanceConfig.logos.defaultContent || '';
51
+ this.sourceLogos = instanceConfig.sources;
52
+ this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '';
53
+ }
54
+ this.cbPlanInterval = setInterval((/**
55
+ * @return {?}
56
+ */
57
+ function () {
58
+ _this.getCbPlanData();
59
+ }), 1000);
60
+ };
61
+ /**
62
+ * @return {?}
63
+ */
64
+ CardLandscapeComponent.prototype.showSnackbar = /**
65
+ * @return {?}
66
+ */
67
+ function () {
68
+ if (this.showIntranetContent) {
69
+ this.snackBar.open('Content is only available in intranet', 'X', { duration: 2000 });
70
+ }
71
+ else if (!this.isLiveOrMarkForDeletion) {
72
+ this.snackBar.open('Content may be expired or deleted', 'X', { duration: 2000 });
73
+ }
74
+ };
75
+ /**
76
+ * @param {?} contentData
77
+ * @return {?}
78
+ */
79
+ CardLandscapeComponent.prototype.getRedirectUrlData = /**
80
+ * @param {?} contentData
81
+ * @return {?}
82
+ */
83
+ function (contentData) {
84
+ this.contentData.emit(contentData);
85
+ };
86
+ /**
87
+ * @return {?}
88
+ */
89
+ CardLandscapeComponent.prototype.raiseTelemetry = /**
90
+ * @return {?}
91
+ */
92
+ function () {
93
+ // if(this.forPreview){
94
+ // return
95
+ // }
96
+ this.events.raiseInteractTelemetry({
97
+ type: 'click',
98
+ subType: this.widgetType + "-" + this.widgetSubType,
99
+ id: _.camelCase(this.widgetData.content.primaryCategory) + "-card",
100
+ }, {
101
+ id: this.widgetData.content.identifier,
102
+ type: this.widgetData.content.primaryCategory,
103
+ //context: this.widgetData.context,
104
+ rollup: {},
105
+ ver: "" + this.widgetData.content.version + '',
106
+ }, {
107
+ pageIdExt: _.camelCase(this.widgetData.content.primaryCategory) + "-card",
108
+ module: _.camelCase(this.widgetData.content.primaryCategory),
109
+ });
110
+ };
111
+ /**
112
+ * @return {?}
113
+ */
114
+ CardLandscapeComponent.prototype.getCbPlanData = /**
115
+ * @return {?}
116
+ */
117
+ function () {
118
+ /** @type {?} */
119
+ var cbpList = {};
120
+ if (localStorage.getItem('cbpData')) {
121
+ /** @type {?} */
122
+ var cbpListArr = JSON.parse(localStorage.getItem('cbpData') || '');
123
+ if (cbpListArr && cbpListArr.length) {
124
+ cbpListArr.forEach((/**
125
+ * @param {?} data
126
+ * @return {?}
127
+ */
128
+ function (data) {
129
+ cbpList[data.identifier] = data;
130
+ }));
131
+ }
132
+ this.cbPlanMapData = cbpList;
133
+ // this.karmaPointLoading = false
134
+ clearInterval(this.cbPlanInterval);
135
+ }
136
+ };
137
+ CardLandscapeComponent.decorators = [
138
+ { type: Component, args: [{
139
+ selector: 'sb-uic-card-landscape',
140
+ template: "<ng-container *ngIf=\"!isCardLoading\">\n <a class=\"cursor-pointer\" (click)=\"raiseTelemetry();getRedirectUrlData(widgetData?.content); $event.stopPropagation()\" \n role=\"link\" i18n-aria-label>\n <mat-card class=\"card-portrait mr-2 card-portrait-clickable min-height-remove\" [ngClass]=\"widgetData.cardCustomeClass ? widgetData.cardCustomeClass : ''\">\n <div class=\"course_widget portrait_widget flex margin-bottom-xs\">\n <div class=\"flex flex-end flex-middle course_port\">\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 class=\"flex\">\n <div class=\"margin-right-s\">\n <ng-container *ngIf=\"widgetData?.content?.posterImage\">\n <div class=\" img-block-portrait position-relative\">\n <img mat-card-image [src]=\"widgetData?.content?.posterImage | pipePublicURL\" loading=\"lazy\"\n class=\"card-image ws-mat-primary-lite-background margin-remove\" [wsUtilsDefaultThumbnail]=\"defaultThumbnail\"\n [alt]=\"widgetData.content.name\" />\n <div class=\"duration-box right-corner-portrait\" *ngIf=\"widgetData?.content?.duration > 0\">\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\n <span class=\" ws-mat-white-text duration\">\n {{ (widgetData?.content?.duration || 120)| pipeDurationTransform: 'hms' }}\n </span>\n </div>\n <div class=\"duration-box right-corner-portrait\" *ngIf=\"widgetData?.content?.programDuration > 0\">\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\n <span class=\" ws-mat-white-text duration\">\n {{widgetData?.content?.programDuration}} {{widgetData?.content?.programDuration === 1 ? 'day' : 'days'}}\n </span>\n </div>\n <ng-container *ngIf=\"cbPlanMapData && cbPlanMapData[widgetData?.content?.identifier]\">\n <ng-container [ngTemplateOutlet]=\"cbpPlan\" [ngTemplateOutletContext]=\"{data: {\n cbpData: cbPlanMapData[widgetData?.content?.identifier]\n }}\"></ng-container>\n </ng-container>\n </div>\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-image 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-image ws-mat-primary-lite-background margin-remove\"\n [alt]=\"widgetData?.content?.name\" />\n </ng-template>\n </ng-container>\n </div>\n <div class=\"width-1-1\">\n <div [id]=\"'m-c-'+ widgetData?.content?.identifier\"\n class=\"portrait-subheading mat-subheading-2 title-text\">\n {{ widgetData?.content?.name }}\n </div>\n <div class=\"flex w-full flex-middle\">\n <div class=\"portrait_course_logo_box margin-right-xs\">\n <img [src]=\"widgetData?.content?.creatorLogo | pipePublicURL \" class=\"source-icon\" loading=\"lazy\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData?.content?.sourceName + '_' + widgetData?.content?.identifier)\" />\n </div>\n <!-- <span class=\"portrait-org-name font-normal mat-caption\">{{'cardcontentv2.by' | translate}} {{ (widgetData.content.organisation && widgetData.content.organisation[0]) ? widgetData.content.organisation[0] : 'Karmayogi Bharat' }}</span> -->\n </div>\n\n <div class=\"flex flex-middle rating-session margin-top-xs\">\n <div class=\"flex flex-middle\" *ngIf=\"widgetData?.content?.avgRating\">\n <mat-icon class=\"mr-1\">star</mat-icon>\n <span>{{widgetData.content.avgRating}}</span>\n </div>\n <!-- <ng-container *ngIf=\"widgetData?.content?.additionalTags && widgetData?.content?.additionalTags.includes('mostEnrolled')\">\n <span class=\"most-enrolled-text margin-left-xs\">{{ 'cardcontentv2.mostEnrolled' | translate }}</span>\n </ng-container>\n <ng-container *ngIf=\"widgetData?.content?.additionalTags && widgetData?.content?.additionalTags.includes('mostTrending')\">\n <span class=\"most-enrolled-text margin-left-xs\">{{ 'cardcontentv2.mostTrending' | translate }}</span>\n </ng-container> -->\n </div>\n </div>\n </div>\n </mat-card>\n </a>\n</ng-container>\n\n<ng-template #cbpPlan let-data=\"data\">\n <div class=\"cbp-mark left-0 border-top-radius\">\n <p *ngIf=\"data.cbpData.planDuration === acbpConstants?.UPCOMING\" class=\"cbp-warning\">{{data.cbpData.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"data.cbpData.planDuration === acbpConstants?.SUCCESS\" class=\"cbp-success\">{{data.cbpData.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"data.cbpData.planDuration === acbpConstants?.OVERDUE\" class=\"cbp-danger\">{{'OverDue' }}</p>\n </div>\n </ng-template>\n\n<ng-container *ngIf=\"isCardLoading\">\n <mat-card class=\"card-portrait mr-2 card-portrait-clickable\" [ngClass]=\"widgetData.cardCustomeClass ? widgetData.cardCustomeClass : ''\">\n <div class=\"flex\">\n <div class=\"margin-right-s\">\n <ng-container>\n <sb-uic-skeleton-loader [width]=\"'147px'\" [height]=\"'100px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </ng-container>\n </div>\n <div class=\"width-1-1\">\n <div class=\"portrait-subheading title-text\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded width-1-1'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"flex w-full flex-wrap flex-middle\">\n <sb-uic-skeleton-loader [width]=\"'24px'\" [height]=\"'24px'\" [bindingClass]=\"'flex rounded margin-right-xs'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader [width]=\"'100px'\" [height]=\"'12px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"portrait_widget flex margin-top-xs\">\n <div class=\"flex flex-end flex-middle\">\n <sb-uic-skeleton-loader [width]=\"'65px'\" [height]=\"'12px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </div>\n </mat-card>\n</ng-container>",
141
+ styles: [".card-portrait{border-radius:12px;border:1px solid rgba(0,0,0,.08);opacity:1;width:350px;min-height:154px;padding:16px}.card-portrait .img-block-portrait{line-height:10px}.card-portrait .card-image{border-radius:8px;opacity:1;background-size:100%;width:147px;height:100px}.card-portrait .portrait-subheading{opacity:1;color:rgba(0,0,0,.87);font-weight:700;font-style:normal;letter-spacing:.25px;text-align:left;word-break:break-word;white-space:initial;margin:0 0 8px;position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:40px}.card-portrait .portrait_course_logo_box img{padding:3px;display:inline-block;width:24px;height:24px;border:1px solid #d6d6d6;border-radius:4px;box-sizing:border-box}.card-portrait span.portrait-org-name{width:75%;word-break:break-all;white-space:initial;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.card-portrait .portrait_widget{align-items:center;margin-top:0}.card-portrait .portrait_widget .course_port{border:1px solid #ef951e;padding:4px 8px;align-items:center;border-radius:16px}.card-portrait .portrait_widget .video-icon{opacity:1;color:#ef951e;width:15px;height:15px;font-size:15px}.card-portrait .portrait_widget .portrait-category{color:rgba(0,0,0,.6)!important;font-size:.75rem;opacity:1;font-family:Lato-Regular;font-weight:400;font-style:normal;letter-spacing:.25px;text-align:left;line-height:20px}.card-portrait .progress-wrapper .progress-block{width:60%}.card-portrait .progress-wrapper .progress-block .completed-time{color:#ef951e;display:flex;padding:8px 0}.card-portrait .progress-wrapper .progress-block .completed-time mat-icon{width:1rem;height:1rem;font-size:1rem}.card-portrait .progress-wrapper .progress-block .completed-time span{opacity:1;color:rgba(0,0,0,.87);font-family:Lato-Regular;font-size:.75rem;font-weight:400;font-style:normal;letter-spacing:.25px;text-align:left;line-height:16px}.card-portrait .progress-wrapper .progress-btn .resume-btn{opacity:1;color:#fff;font-family:Lato-Bold;font-size:14px;font-weight:700;font-style:normal;letter-spacing:.5px;text-align:left;line-height:20px;background:#1a4ca1;border-radius:63px;padding:6px 16px;border:none;width:100%;cursor:pointer}.card-portrait .progress-wrapper .progress-btn .resume-btn .textwrap{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:82px}.card-portrait .progress-wrapper .progress-btn .resume-btn:hover{background-color:#253379}.card-portrait .progress-bar-new{color:#ef951e!important;height:10px;border-radius:5px}.card-portrait .rating-session mat-icon{font-size:20px;height:20px;width:20px;color:#ef951e}.card-portrait .rating-session .rating-number{font-size:14px}.card-portrait .rating-session .most-enrolled-text{font-size:10px;font-weight:400;padding:4px;background:#ffea9e;border-radius:4px;line-height:12px}.card-portrait .right-corner-portrait{right:8px;bottom:8px}.card-portrait-clickable{min-height:146px!important}.card-portrait-clickable .right-corner-portrait{right:8px;bottom:8px}.card-portrait-clickable:hover{transform:scale(1.02)}.course_widget{margin-top:10px}.course_widget .mat-icon{vertical-align:middle;color:#ef951e!important}.course_widget .course_v2{border:1px solid #ef951e;padding:4px 8px;align-items:end;border-radius:16px}.course_widget .main_icon{font-size:16px;width:16px;height:16px}.rating-session mat-icon{font-size:16px;height:16px;width:12px;padding-right:3px;color:#ef951e}.rating-session span{font-size:11px}.rating-session .most-enrolled-text{padding:0 8px;background:#ffea9e;border-radius:4px}.duration-box{background:#000;position:absolute;border:none;display:flex;align-items:center;padding:4px;border-radius:4px}.duration-box.right-corner{right:4px;bottom:4px}.duration-box .mat-icon{vertical-align:middle;color:#fff!important;height:14px!important;width:14px!important;font-size:14px}.duration-box .duration{font:700 12px/16px Lato;display:inline-block;margin:0;padding:0}@media only screen and (max-width:768px){.card-portrait{width:calc(100vw - 66px)}.card-wide-v2{min-height:356px}.card-wide-v2 .imageholder img{border-radius:12px 12px 0 0!important}.cbpwidth{width:calc(100vw - 100px)}}"]
142
+ }] }
143
+ ];
144
+ /** @nocollapse */
145
+ CardLandscapeComponent.ctorParameters = function () { return [
146
+ { type: MatSnackBar },
147
+ { type: EventService },
148
+ { type: TranslateService },
149
+ { type: MultilingualTranslationsService },
150
+ { type: ConfigurationsService }
151
+ ]; };
152
+ CardLandscapeComponent.propDecorators = {
153
+ widgetData: [{ type: Input }],
154
+ isLiveOrMarkForDeletion: [{ type: Input }],
155
+ showIntranetContent: [{ type: Input }],
156
+ isIntranetAllowedSettings: [{ type: Input }],
157
+ isCardLoading: [{ type: Input }],
158
+ contentData: [{ type: Output }]
159
+ };
160
+ return CardLandscapeComponent;
161
+ }());
162
+ export { CardLandscapeComponent };
163
+ if (false) {
164
+ /** @type {?} */
165
+ CardLandscapeComponent.prototype.widgetData;
166
+ /** @type {?} */
167
+ CardLandscapeComponent.prototype.isLiveOrMarkForDeletion;
168
+ /** @type {?} */
169
+ CardLandscapeComponent.prototype.showIntranetContent;
170
+ /** @type {?} */
171
+ CardLandscapeComponent.prototype.isIntranetAllowedSettings;
172
+ /** @type {?} */
173
+ CardLandscapeComponent.prototype.isCardLoading;
174
+ /** @type {?} */
175
+ CardLandscapeComponent.prototype.contentData;
176
+ /** @type {?} */
177
+ CardLandscapeComponent.prototype.isCardFlipped;
178
+ /** @type {?} */
179
+ CardLandscapeComponent.prototype.defaultThumbnail;
180
+ /** @type {?} */
181
+ CardLandscapeComponent.prototype.acbpConstants;
182
+ /** @type {?} */
183
+ CardLandscapeComponent.prototype.sourceLogos;
184
+ /** @type {?} */
185
+ CardLandscapeComponent.prototype.defaultSLogo;
186
+ /** @type {?} */
187
+ CardLandscapeComponent.prototype.showFlip;
188
+ /** @type {?} */
189
+ CardLandscapeComponent.prototype.widgetType;
190
+ /** @type {?} */
191
+ CardLandscapeComponent.prototype.widgetSubType;
192
+ /** @type {?} */
193
+ CardLandscapeComponent.prototype.cbPlanMapData;
194
+ /** @type {?} */
195
+ CardLandscapeComponent.prototype.cbPlanInterval;
196
+ /**
197
+ * @type {?}
198
+ * @private
199
+ */
200
+ CardLandscapeComponent.prototype.snackBar;
201
+ /**
202
+ * @type {?}
203
+ * @private
204
+ */
205
+ CardLandscapeComponent.prototype.events;
206
+ /**
207
+ * @type {?}
208
+ * @private
209
+ */
210
+ CardLandscapeComponent.prototype.translate;
211
+ /**
212
+ * @type {?}
213
+ * @private
214
+ */
215
+ CardLandscapeComponent.prototype.langtranslations;
216
+ /**
217
+ * @type {?}
218
+ * @private
219
+ */
220
+ CardLandscapeComponent.prototype.configSvc;
221
+ }
222
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FyZC1sYW5kc2NhcGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQHN1bmJpcmQtY2IvY29uc3VtcHRpb24vIiwic291cmNlcyI6WyJsaWIvX2NvbW1vbi9jYXJkcy9jYXJkLWxhbmRzY2FwZS9jYXJkLWxhbmRzY2FwZS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBVSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDL0UsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLHFDQUFxQyxDQUFDO0FBQ3BFLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUNoRCxPQUFPLEVBQUUscUJBQXFCLEVBQUUsWUFBWSxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDeEUsT0FBTyxLQUFLLENBQUMsTUFBTSxRQUFRLENBQUM7QUFDNUIsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDdkQsT0FBTyxFQUFFLCtCQUErQixFQUFFLE1BQU0sc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FxuICAgICAgICBtb2R1bGU6IF8uY2FtZWxDYXNlKHRoaXMud2lkZ2V0RGF0YS5jb250ZW50LnByaW1hcnlDYXRlZ29yeSksXG4gICAgICB9KVxuICB9XG5cbiAgZ2V0Q2JQbGFuRGF0YSgpIHtcbiAgICBsZXQgY2JwTGlzdDogYW55PXt9XG4gICAgaWYgKGxvY2FsU3RvcmFnZS5nZXRJdGVtKCdjYnBEYXRhJykpIHtcbiAgICAgIGxldCBjYnBMaXN0QXJyID0gSlNPTi5wYXJzZShsb2NhbFN0b3JhZ2UuZ2V0SXRlbSgnY2JwRGF0YScpIHx8ICcnKVxuICAgICAgaWYgKGNicExpc3RBcnIgJiYgY2JwTGlzdEFyci5sZW5ndGgpIHtcbiAgICAgICAgY2JwTGlzdEFyci5mb3JFYWNoKChkYXRhOiBhbnkpID0+IHtcbiAgICAgICAgICBjYnBMaXN0W2RhdGEuaWRlbnRpZmllcl0gPSBkYXRhXG4gICAgICAgIH0pXG4gICAgICB9XG4gICAgICB0aGlzLmNiUGxhbk1hcERhdGEgPSBjYnBMaXN0XG4gICAgICAvLyB0aGlzLmthcm1hUG9pbnRMb2FkaW5nID0gZmFsc2VcbiAgICAgIGNsZWFySW50ZXJ2YWwodGhpcy5jYlBsYW5JbnRlcnZhbClcbiAgICB9XG4gIH1cblxuXG59XG4iXX0=
@@ -0,0 +1,182 @@
1
+ /**
2
+ * @fileoverview added by tsickle
3
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
+ */
5
+ import { Component, EventEmitter, Input, Output } from '@angular/core';
6
+ import { NsCardContent } from '../../../_models/card-content.model';
7
+ import { MatSnackBar } from '@angular/material';
8
+ import { ConfigurationsService, EventService } from '@sunbird-cb/utils';
9
+ import * as _ from "lodash";
10
+ import { TranslateService } from '@ngx-translate/core';
11
+ import { MultilingualTranslationsService } from '../../../_services/multilingual-translations.service';
12
+ var CardPortraitComponent = /** @class */ (function () {
13
+ function CardPortraitComponent(snackBar, events, translate, langtranslations, configSvc) {
14
+ var _this = this;
15
+ this.snackBar = snackBar;
16
+ this.events = events;
17
+ this.translate = translate;
18
+ this.langtranslations = langtranslations;
19
+ this.configSvc = configSvc;
20
+ this.isCardLoading = false;
21
+ this.contentData = new EventEmitter();
22
+ this.isCardFlipped = false;
23
+ this.showFlip = false;
24
+ this.widgetType = 'df';
25
+ this.widgetSubType = 'sdf';
26
+ this.langtranslations.languageSelectedObservable.subscribe((/**
27
+ * @return {?}
28
+ */
29
+ function () {
30
+ if (localStorage.getItem('websiteLanguage')) {
31
+ _this.translate.setDefaultLang('en');
32
+ /** @type {?} */
33
+ var lang = (/** @type {?} */ (localStorage.getItem('websiteLanguage')));
34
+ _this.translate.use(lang);
35
+ }
36
+ }));
37
+ }
38
+ /**
39
+ * @return {?}
40
+ */
41
+ CardPortraitComponent.prototype.ngOnInit = /**
42
+ * @return {?}
43
+ */
44
+ function () {
45
+ /** @type {?} */
46
+ var instanceConfig = this.configSvc.instanceConfig;
47
+ if (instanceConfig) {
48
+ this.defaultThumbnail = instanceConfig.logos.defaultContent || '';
49
+ this.sourceLogos = instanceConfig.sources;
50
+ this.defaultSLogo = instanceConfig.logos.defaultSourceLogo || '';
51
+ }
52
+ };
53
+ /**
54
+ * @return {?}
55
+ */
56
+ CardPortraitComponent.prototype.showSnackbar = /**
57
+ * @return {?}
58
+ */
59
+ function () {
60
+ if (this.showIntranetContent) {
61
+ this.snackBar.open('Content is only available in intranet', 'X', { duration: 2000 });
62
+ }
63
+ else if (!this.isLiveOrMarkForDeletion) {
64
+ this.snackBar.open('Content may be expired or deleted', 'X', { duration: 2000 });
65
+ }
66
+ };
67
+ /**
68
+ * @param {?} contentData
69
+ * @return {?}
70
+ */
71
+ CardPortraitComponent.prototype.getRedirectUrlData = /**
72
+ * @param {?} contentData
73
+ * @return {?}
74
+ */
75
+ function (contentData) {
76
+ this.contentData.emit(contentData);
77
+ };
78
+ /**
79
+ * @return {?}
80
+ */
81
+ CardPortraitComponent.prototype.raiseTelemetry = /**
82
+ * @return {?}
83
+ */
84
+ function () {
85
+ // if(this.forPreview){
86
+ // return
87
+ // }
88
+ this.events.raiseInteractTelemetry({
89
+ type: 'click',
90
+ subType: this.widgetType + "-" + this.widgetSubType,
91
+ id: _.camelCase(this.widgetData.content.primaryCategory) + "-card",
92
+ }, {
93
+ id: this.widgetData.content.identifier,
94
+ type: this.widgetData.content.primaryCategory,
95
+ //context: this.widgetData.context,
96
+ rollup: {},
97
+ ver: "" + this.widgetData.content.version + '',
98
+ }, {
99
+ pageIdExt: _.camelCase(this.widgetData.content.primaryCategory) + "-card",
100
+ module: _.camelCase(this.widgetData.content.primaryCategory),
101
+ });
102
+ };
103
+ CardPortraitComponent.decorators = [
104
+ { type: Component, args: [{
105
+ selector: 'sb-uic-card-portrait',
106
+ template: "<ng-container *ngIf=\"!isCardLoading\">\n <mat-card class=\"card-standard-container mr-5 padding-remove cursor-pointer \" [ngClass]=\"{\n greyOut:\n widgetData.deletedMode === 'greyOut' && !isLiveOrMarkForDeletion\n ? true\n : widgetData?.intranetMode === 'greyOut' && showIntranetContent\n }\" (click)=\"(showIntranetContent || !isLiveOrMarkForDeletion) && showSnackbar()\">\n <div class=\"display-contents\" [ngClass]=\"{\n disableClick:\n widgetData.deletedMode === 'greyOut' && !isLiveOrMarkForDeletion\n ? true\n : widgetData?.intranetMode === 'greyOut' && showIntranetContent\n }\">\n <ng-container *ngIf=\"widgetData.content\">\n <a (click)=\"raiseTelemetry();getRedirectUrlData(widgetData?.content); $event.stopPropagation()\" \n role=\"link\" i18n-aria-label>\n <ng-container *ngIf=\"!isCardFlipped\">\n <div class=\"status-danger\" role=\"note\" i18n-aria-label aria-label=\"Content expired or deleted\" i18n-matTooltip\n matTooltip=\"Content may be expired or deleted\" *ngIf=\"!isLiveOrMarkForDeletion\"></div>\n <div class=\"status-danger\" role=\"note\" i18n-aria-label aria-label=\"Intranet content\" i18n-matTooltip\n matTooltip=\"Available only in Company's network\"\n *ngIf=\"widgetData?.intranetMode === 'greyOut' && showIntranetContent\"></div>\n <button *ngIf=\"showFlip\" class=\"detail-button ws-mat-primary-lite-background-op30\" mat-icon-button\n (click)=\"isCardFlipped = true\" aria-label=\"Details\" i18n-aria-label=\"Details | Click to see details\">\n <mat-icon>flip_to_back</mat-icon>\n </button>\n <mat-card-content class=\"min-top\">\n <div style=\"position: relative; z-index: 1;\">\n <ng-container *ngIf=\"widgetData.content.posterImage\">\n <img mat-card-image [src]=\"widgetData.content.posterImage | pipePublicURL\" loading=\"lazy\"\n class=\"card-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-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-img ws-mat-primary-lite-background margin-remove\"\n [alt]=\"widgetData.content.name\" />\n </ng-template>\n </ng-container>\n <div class=\"source-div\" style=\"display: none;\">\n <img [src]=\"widgetData.content.creatorLogo\" class=\"source-icon\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData.content.sourceName + '_' + widgetData.content.identifier)\" />\n </div>\n <ng-container *ngIf=\"widgetData?.content?.cbPlanEndDate\">\n <div class=\"cbp-mark\">\n <span>{{widgetData?.content?.cbPlanEndDate | date: 'd MMM, y'}}</span>\n </div>\n </ng-container>\n <!-- <ng-container *ngIf=\"widgetData?.content?.endDate\">\n <div class=\"cbp-mark\">\n <p *ngIf=\"widgetData?.content?.planDuration === acbpConstants?.UPCOMING\" class=\"cbp-warning\">{{widgetData?.content?.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"widgetData?.content?.planDuration === acbpConstants?.SUCCESS\" class=\"cbp-success\">{{widgetData?.content?.endDate | date: 'd MMM, y'}}</p>\n <p *ngIf=\"widgetData?.content?.planDuration === acbpConstants?.OVERDUE\" class=\"cbp-danger\">Over due</p>\n </div>\n </ng-container> -->\n <!-- <ng-container *ngIf=\"cbPlanMapData && cbPlanMapData[widgetData?.content?.identifier]\">\n <ng-container [ngTemplateOutlet]=\"cbpPlan\" [ngTemplateOutletContext]=\"{data: {\n cbpData: cbPlanMapData[widgetData?.content?.identifier]\n }}\"></ng-container>\n </ng-container> -->\n <div class=\"duration-box right-corner\" *ngIf=\"widgetData?.content?.duration > 0\">\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\n <span class=\" ws-mat-white-text duration\">\n {{ (widgetData?.content?.duration || 120)| pipeDurationTransform: 'hms' }}\n </span>\n </div>\n <div class=\"duration-box right-corner\" *ngIf=\"widgetData?.content?.programDuration > 0\">\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\n <span class=\" ws-mat-white-text duration\">\n {{widgetData?.content?.programDuration}} {{widgetData?.content?.programDuration === 1 ? 'day' : 'days'}}\n </span>\n </div>\n </div>\n <div class=\"padding-m\">\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\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 <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 class=\"flex flex-middle rating-session margin-top-m\">\n <div class=\"flex flex-middle\" *ngIf=\"widgetData?.content?.avgRating\">\n <mat-icon class=\"mr-1\">star</mat-icon>\n <span>{{widgetData.content.avgRating}}</span>\n </div>\n <!-- <span class=\"most-enrolled-text margin-left-m\">{{ 'cardcontentv2.mostEnrolled' | translate }}</span> -->\n <ng-container *ngIf=\"widgetData?.content?.additionalTags && widgetData?.content?.additionalTags.includes('mostEnrolled')\">\n <span class=\"most-enrolled-text margin-left-xs\">\n <!-- {{ 'cardcontentv2.mostEnrolled' | translate }} -->\n </span>\n </ng-container>\n <ng-container *ngIf=\"widgetData?.content?.additionalTags && widgetData?.content?.additionalTags.includes('mostTrending')\">\n <span class=\"most-enrolled-text margin-left-xs\">\n <!-- {{ 'cardcontentv2.mostTrending' | translate }} -->\n </span>\n </ng-container>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n <ng-container *ngIf=\"isCardFlipped\">\n <div class=\"flex items-center\">\n <!-- <h2 class=\"mat-subheading-2 flex-1 min-w-0 margin-remove-bottom\" i18n>{{'cardcontentv2.reason' | translate}}</h2> -->\n <button mat-icon-button (click)=\"isCardFlipped = false\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n <p class=\"text-justify mat-body-1\">\n {{ widgetData.content.reason }}\n </p>\n </ng-container>\n </a>\n </ng-container>\n </div>\n</mat-card>\n</ng-container>\n\n<ng-container *ngIf=\"isCardLoading\">\n <mat-card class=\"card-standard-container mr-5 padding-remove\" >\n <div class=\"display-contents\" >\n <ng-container *ngIf=\"!isCardFlipped\">\n <mat-card-content class=\"min-top\">\n <div style=\"position: relative; z-index: 1;\">\n <ng-container>\n <sb-uic-skeleton-loader [width]=\"'100%'\" [height]=\"'140px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </ng-container>\n </div>\n <div class=\"padding-m\">\n <div class=\"course_widget flex margin-remove\">\n <div class=\"flex flex-end\">\n <sb-uic-skeleton-loader [width]=\"'65px'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded br-8'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n <div class=\"mat-subheading-1 title-text ws-mat-text-block-fade-gradient\">\n <sb-uic-skeleton-loader [width]=\"'100%'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n <sb-uic-skeleton-loader [width]=\"'111px'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded margin-top-s'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"flex w-full flex-wrap flex-middle margin-top-m\">\n <div class=\"\">\n <sb-uic-skeleton-loader [width]=\"'28px'\" [height]=\"'28px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader>\n </div>\n <span class=\"org-text\"> <sb-uic-skeleton-loader [width]=\"'111px'\" [height]=\"'16px'\" [bindingClass]=\"'flex rounded'\"></sb-uic-skeleton-loader></span>\n </div>\n <div class=\"flex flex-middle rating-session margin-top-m\">\n <div class=\"flex flex-middle\">\n <sb-uic-skeleton-loader [width]=\"'45px'\" [height]=\"'12px'\" [bindingClass]=\"'flex rounded margin-top-m'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n </div>\n </mat-card>\n</ng-container>",
107
+ styles: [".course_widget{margin-top:10px}.course_widget .mat-icon{vertical-align:middle;color:#ef951e!important}.course_widget .course_v2{border:1px solid #ef951e;padding:4px 8px;align-items:end;border-radius:16px}.course_widget .main_icon{font-size:16px;width:16px;height:16px}.rating-session mat-icon{font-size:16px;height:16px;width:12px;padding-right:3px;color:#ef951e}.rating-session span{font-size:11px}.rating-session .most-enrolled-text{padding:0 8px;background:#ffea9e;border-radius:4px}.card-standard-container{position:relative;width:268px;min-height:346px;border-radius:8px;box-sizing:border-box;box-shadow:0 10px 30px rgba(153,153,153,.2);overflow:hidden;height:346px;margin:20px 8px}.card-standard-container .progress-bar{width:101%;margin-left:-15px;display:flex;margin-top:0;background:bisque;position:absolute;bottom:0}.card-standard-container ::ng-deep .mat-progress-bar{height:8px!important}.card-standard-container .icon_text{font-size:12px;line-height:16px;text-transform:uppercase}.card-standard-container .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-standard-container .course_logo_box img{height:28px;width:28px;padding:5px;display:inline-block}.card-standard-container .course_logo_box p{display:inline-block;vertical-align:top}.card-standard-container .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}.card-standard-container .source-div{position:relative;top:100px;background:#fff;z-index:3;border:1px solid #dedfe0;min-width:72px;min-height:72px;max-width:72px;max-height:72px;display:flex;border-radius:8px}.card-standard-container .source-div .source-icon{border-radius:8px;display:block;margin:auto;max-width:58px;max-height:-webkit-fill-available}.card-standard-container mat-card-content{background:#fff}.card-standard-container .card-img{min-width:245px;max-height:140px;min-height:140px;display:block;-o-object-fit:fill;object-fit:fill;border-top-left-radius:8px;border-top-right-radius:8px;width:100%}.card-standard-container .mat-subheading-1{font:600 14px/24px Montserrat}.card-standard-container .complexity{padding-top:70px;display:flex;font-size:14px;line-height:21px;padding-bottom:10px}.card-standard-container .complexity .mode-tag{border-radius:5px;order:2;margin-left:auto;color:#fff;font-size:10px}.card-standard-container .complexity .duration{display:flex;margin-left:auto;order:3;font-weight:700}.card-standard-container .complexity .time-text{margin:0 5px 0 6px;font-weight:700}.card-standard-container .basic{margin:auto 0}.card-standard-container .title-text{word-break:break-all;white-space:initial;margin:8px 0;position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:48px}.card-standard-container .description-text{position:relative;overflow:hidden;height:42px;white-space:normal;text-overflow:ellipsis}.duration-box{background:#000;position:absolute;border:none;display:flex;align-items:center;padding:4px;border-radius:4px}.duration-box.right-corner{right:4px;bottom:4px}.duration-box .mat-icon{vertical-align:middle;color:#fff!important;height:14px!important;width:14px!important;font-size:14px}.duration-box .duration{font:700 12px/16px Lato;display:inline-block;margin:0;padding:0}"]
108
+ }] }
109
+ ];
110
+ /** @nocollapse */
111
+ CardPortraitComponent.ctorParameters = function () { return [
112
+ { type: MatSnackBar },
113
+ { type: EventService },
114
+ { type: TranslateService },
115
+ { type: MultilingualTranslationsService },
116
+ { type: ConfigurationsService }
117
+ ]; };
118
+ CardPortraitComponent.propDecorators = {
119
+ widgetData: [{ type: Input }],
120
+ isLiveOrMarkForDeletion: [{ type: Input }],
121
+ showIntranetContent: [{ type: Input }],
122
+ isIntranetAllowedSettings: [{ type: Input }],
123
+ isCardLoading: [{ type: Input }],
124
+ contentData: [{ type: Output }]
125
+ };
126
+ return CardPortraitComponent;
127
+ }());
128
+ export { CardPortraitComponent };
129
+ if (false) {
130
+ /** @type {?} */
131
+ CardPortraitComponent.prototype.widgetData;
132
+ /** @type {?} */
133
+ CardPortraitComponent.prototype.isLiveOrMarkForDeletion;
134
+ /** @type {?} */
135
+ CardPortraitComponent.prototype.showIntranetContent;
136
+ /** @type {?} */
137
+ CardPortraitComponent.prototype.isIntranetAllowedSettings;
138
+ /** @type {?} */
139
+ CardPortraitComponent.prototype.isCardLoading;
140
+ /** @type {?} */
141
+ CardPortraitComponent.prototype.contentData;
142
+ /** @type {?} */
143
+ CardPortraitComponent.prototype.isCardFlipped;
144
+ /** @type {?} */
145
+ CardPortraitComponent.prototype.defaultThumbnail;
146
+ /** @type {?} */
147
+ CardPortraitComponent.prototype.sourceLogos;
148
+ /** @type {?} */
149
+ CardPortraitComponent.prototype.defaultSLogo;
150
+ /** @type {?} */
151
+ CardPortraitComponent.prototype.showFlip;
152
+ /** @type {?} */
153
+ CardPortraitComponent.prototype.widgetType;
154
+ /** @type {?} */
155
+ CardPortraitComponent.prototype.widgetSubType;
156
+ /**
157
+ * @type {?}
158
+ * @private
159
+ */
160
+ CardPortraitComponent.prototype.snackBar;
161
+ /**
162
+ * @type {?}
163
+ * @private
164
+ */
165
+ CardPortraitComponent.prototype.events;
166
+ /**
167
+ * @type {?}
168
+ * @private
169
+ */
170
+ CardPortraitComponent.prototype.translate;
171
+ /**
172
+ * @type {?}
173
+ * @private
174
+ */
175
+ CardPortraitComponent.prototype.langtranslations;
176
+ /**
177
+ * @type {?}
178
+ * @private
179
+ */
180
+ CardPortraitComponent.prototype.configSvc;
181
+ }
182
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FyZC1wb3J0cmFpdC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1jYi9jb25zdW1wdGlvbi8iLCJzb3VyY2VzIjpbImxpYi9fY29tbW9uL2NhcmRzL2NhcmQtcG9ydHJhaXQvY2FyZC1wb3J0cmFpdC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBVSxNQUFNLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDL0UsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLHFDQUFxQyxDQUFDO0FBQ3BFLE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTS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9LFxuICAgICAgICB2ZXI6IGAke3RoaXMud2lkZ2V0RGF0YS5jb250ZW50LnZlcnNpb259JHsnJ31gLFxuICAgICAgfSxcbiAgICAgIHtcbiAgICAgICAgcGFnZUlkRXh0OiBgJHtfLmNhbWVsQ2FzZSh0aGlzLndpZGdldERhdGEuY29udGVudC5wcmltYXJ5Q2F0ZWdvcnkpfS1jYXJkYCxcbiAgICAgICAgbW9kdWxlOiBfLmNhbWVsQ2FzZSh0aGlzLndpZGdldERhdGEuY29udGVudC5wcmltYXJ5Q2F0ZWdvcnkpLFxuICAgICAgfSlcbiAgfVxuXG59XG4iXX0=
@@ -0,0 +1,41 @@
1
+ /**
2
+ * @fileoverview added by tsickle
3
+ * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
+ */
5
+ import * as tslib_1 from "tslib";
6
+ import { Component, Input } from '@angular/core';
7
+ import { WidgetBaseComponent } from '@sunbird-cb/resolver';
8
+ import { NsCardContent } from '../../../_models/card-content.model';
9
+ var CardResourceComponent = /** @class */ (function (_super) {
10
+ tslib_1.__extends(CardResourceComponent, _super);
11
+ function CardResourceComponent() {
12
+ return _super.call(this) || this;
13
+ }
14
+ /**
15
+ * @return {?}
16
+ */
17
+ CardResourceComponent.prototype.ngOnInit = /**
18
+ * @return {?}
19
+ */
20
+ function () {
21
+ };
22
+ CardResourceComponent.decorators = [
23
+ { type: Component, args: [{
24
+ selector: 'ws-cb-widget-card-resource',
25
+ template: " <!-- <mat-card class=\"card-resource-container mr-5 padding-remove cursor-pointer \" [ngClass]=\"{\n greyOut:\n widgetData.deletedMode === 'greyOut' && !isLiveOrMarkForDeletion\n ? true\n : widgetData?.intranetMode === 'greyOut' && showIntranetContent\n }\" (click)=\"(showIntranetContent || !isLiveOrMarkForDeletion) && showSnackbar()\">\n <div class=\"display-contents\" [ngClass]=\"{\n disableClick:\n widgetData.deletedMode === 'greyOut' && !isLiveOrMarkForDeletion\n ? true\n : widgetData?.intranetMode === 'greyOut' && showIntranetContent\n }\">\n <ng-container *ngIf=\"widgetData.content\">\n <a (click)=\"raiseTelemetry();getRedirectUrlData(widgetData?.content); $event.stopPropagation()\" \n role=\"link\" i18n-aria-label>\n <ng-container *ngIf=\"!isCardFlipped\">\n <div class=\"status-danger\" role=\"note\" i18n-aria-label aria-label=\"Content expired or deleted\" i18n-matTooltip\n matTooltip=\"Content may be expired or deleted\" *ngIf=\"!isLiveOrMarkForDeletion\"></div>\n <div class=\"status-danger\" role=\"note\" i18n-aria-label aria-label=\"Intranet content\" i18n-matTooltip\n matTooltip=\"Available only in Company's network\"\n *ngIf=\"widgetData?.intranetMode === 'greyOut' && showIntranetContent\"></div>\n <button *ngIf=\"showFlip\" class=\"detail-button ws-mat-primary-lite-background-op30\" mat-icon-button\n (click)=\"isCardFlipped = true\" aria-label=\"Details\" i18n-aria-label=\"Details | Click to see details\">\n <mat-icon>flip_to_back</mat-icon>\n </button>\n <mat-card-content class=\"min-top\">\n <div style=\"position: relative; z-index: 1;\">\n <ng-container *ngIf=\"widgetData.content.posterImage\">\n <img mat-card-image [src]=\"widgetData.content.posterImage | pipePublicURL\" loading=\"lazy\"\n class=\"card-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-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-img ws-mat-primary-lite-background margin-remove\"\n [alt]=\"widgetData.content.name\" />\n </ng-template>\n </ng-container>\n <div class=\"source-div\" style=\"display: none;\">\n <img [src]=\"widgetData.content.creatorLogo\" class=\"source-icon\" [wsUtilsDefaultThumbnail]=\"defaultSLogo\"\n [alt]=\"(widgetData.content.sourceName + '_' + widgetData.content.identifier)\" />\n </div>\n <ng-container *ngIf=\"widgetData?.content?.cbPlanEndDate\">\n <div class=\"cbp-mark\">\n <span>{{widgetData?.content?.cbPlanEndDate | date: 'd MMM, y'}}</span>\n </div>\n </ng-container>\n <ng-container *ngIf=\"cbPlanMapData && cbPlanMapData[widgetData?.content?.identifier]\">\n <ng-container [ngTemplateOutlet]=\"cbpPlan\" [ngTemplateOutletContext]=\"{data: {\n cbpData: cbPlanMapData[widgetData?.content?.identifier]\n }}\"></ng-container>\n </ng-container>\n <div class=\"duration-box right-corner\" *ngIf=\"widgetData?.content?.duration > 0\">\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\n <span class=\" ws-mat-white-text duration\">\n {{ (widgetData?.content?.duration || 120)| pipeDurationTransform: 'hms' }}\n </span>\n </div>\n <div class=\"duration-box right-corner\" *ngIf=\"widgetData?.content?.programDuration > 0\">\n <mat-icon class=\"mat-icon main_icon mr-1\">access_time</mat-icon>\n <span class=\" ws-mat-white-text duration\">\n {{widgetData?.content?.programDuration}} {{widgetData?.content?.programDuration === 1 ? 'day' : 'days'}}\n </span>\n </div>\n </div>\n <div class=\"padding-m\">\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 <ws-widget-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\n </ws-widget-display-content-type>\n </div>\n <div class=\"flex ml-5 flex-end course_v2\">\n <mat-icon class=\"mat-icon main_icon ws-mat-default-text margin-right-xs\">video_library</mat-icon>\n <ws-widget-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\n </ws-widget-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 <div [id]=\"'m-c-'+ widgetData.content?.identifier\"\n class=\"mat-subheading-1 description-text font-medium ws-mat-text-block-fade-gradient\">\n {{ widgetData.content.name }}\n </div>\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}} {{ (widgetData.content.organisation && widgetData.content.organisation[0]) ? widgetData.content.organisation[0] : 'Karmayogi Bharat' }}</span>\n </div>\n </div>\n </mat-card-content>\n </ng-container>\n <ng-container *ngIf=\"isCardFlipped\">\n <div class=\"flex items-center\">\n <h2 class=\"mat-subheading-2 flex-1 min-w-0 margin-remove-bottom\" i18n>{{'cardcontentv2.reason' | translate}}</h2>\n <button mat-icon-button (click)=\"isCardFlipped = false\">\n <mat-icon>close</mat-icon>\n </button>\n </div>\n <p class=\"text-justify mat-body-1\">\n {{ widgetData.content.reason }}\n </p>\n </ng-container>\n </a>\n </ng-container>\n </div>\n </mat-card> -->\n",
26
+ styles: [".card-resource-container{position:relative;width:384px;min-height:346px;border-radius:8px;box-sizing:border-box;box-shadow:0 10px 30px rgba(153,153,153,.2);overflow:hidden;height:450px;margin:20px 8px}.card-resource-container .icon_text{font-size:12px;line-height:16px;text-transform:uppercase}.card-resource-container .description-text{margin:12px 0;font-weight:400}.card-resource-container .course_logo_box{width:24px;height:24px;background:#fff;border-radius:4px;border:1px solid rgba(0,0,0,.1607843137);box-sizing:border-box}.card-resource-container .course_logo_box img{height:18px;width:18px;padding:2px;display:inline-block}.card-resource-container .course_logo_box p{display:inline-block;vertical-align:top}.card-resource-container .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}.card-resource-container .source-div{position:relative;top:100px;background:#fff;z-index:3;border:1px solid #dedfe0;min-width:72px;min-height:72px;max-width:72px;max-height:72px;display:flex;border-radius:8px}.card-resource-container .source-div .source-icon{border-radius:8px;display:block;margin:auto;max-width:58px;max-height:-webkit-fill-available}.card-resource-container mat-card-content{background:#fff}.card-resource-container .card-img{max-height:240px;min-height:240px;width:100%;display:block;-o-object-fit:fill;object-fit:fill;border-top-left-radius:8px;border-top-right-radius:8px}.card-resource-container .mat-subheading-1{font:600 14px/24px Montserrat}.card-resource-container .complexity{padding-top:70px;display:flex;font-size:14px;line-height:21px;padding-bottom:10px}.card-resource-container .complexity .mode-tag{border-radius:5px;order:2;margin-left:auto;color:#fff;font-size:10px}.card-resource-container .complexity .duration{display:flex;margin-left:auto;order:3;font-weight:700}.card-resource-container .complexity .time-text{margin:0 5px 0 6px;font-weight:700}.card-resource-container .basic{margin:auto 0}.card-resource-container .title-text{word-break:break-all;white-space:initial;margin:8px 0;position:relative;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:48px}.card-resource-container .description-text{position:relative;overflow:hidden;height:42px;white-space:normal;text-overflow:ellipsis}"]
27
+ }] }
28
+ ];
29
+ /** @nocollapse */
30
+ CardResourceComponent.ctorParameters = function () { return []; };
31
+ CardResourceComponent.propDecorators = {
32
+ widgetData: [{ type: Input }]
33
+ };
34
+ return CardResourceComponent;
35
+ }(WidgetBaseComponent));
36
+ export { CardResourceComponent };
37
+ if (false) {
38
+ /** @type {?} */
39
+ CardResourceComponent.prototype.widgetData;
40
+ }
41
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FyZC1yZXNvdXJjZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1jYi9jb25zdW1wdGlvbi8iLCJzb3VyY2VzIjpbImxpYi9fY29tbW9uL2NhcmRzL2NhcmQtcmVzb3VyY2UvY2FyZC1yZXNvdXJjZS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUN6RCxPQUFPLEVBQW9CLG1CQUFtQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDN0UsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLHFDQUFxQyxDQUFDO0FBRXBFO0lBSzJDLGlEQUFtQjtJQUs1RDtlQUNFLGlCQUFPO0lBQ1QsQ0FBQzs7OztJQUVELHdDQUFROzs7SUFBUjtJQUNBLENBQUM7O2dCQWZGLFNBQVMsU0FBQztvQkFDVCxRQUFRLEVBQUUsNEJBQTRCO29CQUN0Qyx1aVBBQTZDOztpQkFFOUM7Ozs7OzZCQUlFLEtBQUs7O0lBU1IsNEJBQUM7Q0FBQSxBQWpCRCxDQUsyQyxtQkFBbUIsR0FZN0Q7U0FaWSxxQkFBcUI7OztJQUdoQywyQ0FBMEMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQsIElucHV0LCBPbkluaXQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IE5zV2lkZ2V0UmVzb2x2ZXIsIFdpZGdldEJhc2VDb21wb25lbnQgfSBmcm9tICdAc3VuYmlyZC1jYi9yZXNvbHZlcic7XG5pbXBvcnQg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