@blaze-cms/react-page-builder 0.146.0-alpha.13 → 0.146.0-alpha.16

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 (1021) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/lib/BannerContext/helpers/index.js.map +1 -1
  3. package/lib/BannerContext/helpers/set-initial-banner-counters.js +1 -1
  4. package/lib/BannerContext/helpers/set-initial-banner-counters.js.map +1 -1
  5. package/lib/BannerContext/index.js +2 -2
  6. package/lib/BannerContext/index.js.map +1 -1
  7. package/lib/HOC/index.js.map +1 -1
  8. package/lib/HOC/recreateOnNavigation.js +1 -1
  9. package/lib/HOC/recreateOnNavigation.js.map +1 -1
  10. package/lib/HOC/withInfiniteScroll.js +2 -2
  11. package/lib/HOC/withInfiniteScroll.js.map +1 -1
  12. package/lib/HOC/withTitle.js +2 -2
  13. package/lib/HOC/withTitle.js.map +1 -1
  14. package/lib/PBContext/index.js.map +1 -1
  15. package/lib/application/query/index.js +1 -1
  16. package/lib/application/query/index.js.map +1 -1
  17. package/lib/components/BackToTop/BackToTop.js +2 -2
  18. package/lib/components/BackToTop/BackToTop.js.map +1 -1
  19. package/lib/components/BackToTop/index.js.map +1 -1
  20. package/lib/components/Banner/AdSlotRender.js +4 -4
  21. package/lib/components/Banner/AdSlotRender.js.map +1 -1
  22. package/lib/components/Banner/Banner.js +3 -3
  23. package/lib/components/Banner/Banner.js.map +1 -1
  24. package/lib/components/Banner/BannerRender.js +4 -4
  25. package/lib/components/Banner/BannerRender.js.map +1 -1
  26. package/lib/components/Banner/helpers.js +16 -16
  27. package/lib/components/Banner/helpers.js.map +1 -1
  28. package/lib/components/Banner/index.js +3 -3
  29. package/lib/components/Banner/index.js.map +1 -1
  30. package/lib/components/BlazeLink.js +6 -6
  31. package/lib/components/BlazeLink.js.map +1 -1
  32. package/lib/components/Breadcrumb/Breadcrumb.js +3 -3
  33. package/lib/components/Breadcrumb/Breadcrumb.js.map +1 -1
  34. package/lib/components/Breadcrumb/index.js.map +1 -1
  35. package/lib/components/Button.js +6 -6
  36. package/lib/components/Button.js.map +1 -1
  37. package/lib/components/Card/Card.js +4 -4
  38. package/lib/components/Card/Card.js.map +1 -1
  39. package/lib/components/Card/CardsContainer.js +8 -8
  40. package/lib/components/Card/CardsContainer.js.map +1 -1
  41. package/lib/components/Card/CardsFactory.js +1 -1
  42. package/lib/components/Card/CardsFactory.js.map +1 -1
  43. package/lib/components/Card/CardsRender.js +12 -12
  44. package/lib/components/Card/CardsRender.js.map +1 -1
  45. package/lib/components/Card/constants.js.map +1 -1
  46. package/lib/components/Card/helpers/get-dynamic-grid-classes.js +3 -3
  47. package/lib/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -1
  48. package/lib/components/Card/helpers/get-published-listing-url.js.map +1 -1
  49. package/lib/components/Card/helpers/index.js.map +1 -1
  50. package/lib/components/Card/helpers/use-dynamic-size-key.js +3 -3
  51. package/lib/components/Card/helpers/use-dynamic-size-key.js.map +1 -1
  52. package/lib/components/Card/index.js.map +1 -1
  53. package/lib/components/Carousel/Carousel.js.map +1 -1
  54. package/lib/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
  55. package/lib/components/Carousel/CarouselImage/constants.js.map +1 -1
  56. package/lib/components/Carousel/CarouselImage/index.js.map +1 -1
  57. package/lib/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
  58. package/lib/components/Carousel/CarouselRender/index.js.map +1 -1
  59. package/lib/components/Carousel/hooks/useCarouselNavigation.js.map +1 -1
  60. package/lib/components/Carousel/index.js.map +1 -1
  61. package/lib/components/CarouselWrapper/CarouselWrapper.js.map +1 -1
  62. package/lib/components/CarouselWrapper/DefaultCarousel.js +3 -3
  63. package/lib/components/CarouselWrapper/DefaultCarousel.js.map +1 -1
  64. package/lib/components/CarouselWrapper/SmoothScrollCarousel.js.map +1 -1
  65. package/lib/components/CarouselWrapper/index.js.map +1 -1
  66. package/lib/components/ClickWrapper.js +6 -6
  67. package/lib/components/ClickWrapper.js.map +1 -1
  68. package/lib/components/Code/Code.js +6 -6
  69. package/lib/components/Code/Code.js.map +1 -1
  70. package/lib/components/Code/ScriptTag.js +3 -3
  71. package/lib/components/Code/ScriptTag.js.map +1 -1
  72. package/lib/components/Code/helpers/index.js.map +1 -1
  73. package/lib/components/Code/helpers/wrap-script-tags.js +1 -1
  74. package/lib/components/Code/helpers/wrap-script-tags.js.map +1 -1
  75. package/lib/components/Code/index.js.map +1 -1
  76. package/lib/components/ContentGroup/ContentGroup.js.map +1 -1
  77. package/lib/components/ContentGroup/ContentGroupTabs.js +3 -3
  78. package/lib/components/ContentGroup/ContentGroupTabs.js.map +1 -1
  79. package/lib/components/ContentGroup/constants.js.map +1 -1
  80. package/lib/components/ContentGroup/helpers/get-active-tab.js +1 -1
  81. package/lib/components/ContentGroup/helpers/get-active-tab.js.map +1 -1
  82. package/lib/components/ContentGroup/helpers/get-sections-data.js.map +1 -1
  83. package/lib/components/ContentGroup/helpers/index.js.map +1 -1
  84. package/lib/components/ContentGroup/index.js.map +1 -1
  85. package/lib/components/ContentGroupSection/ContentGroupSection.js.map +1 -1
  86. package/lib/components/ContentGroupSection/index.js.map +1 -1
  87. package/lib/components/DataSummary/DataSummaryFactory.js +2 -2
  88. package/lib/components/DataSummary/DataSummaryFactory.js.map +1 -1
  89. package/lib/components/DataSummary/DataSummaryRender.js.map +1 -1
  90. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -1
  91. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js +3 -3
  92. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
  93. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js.map +1 -1
  94. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map +1 -1
  95. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js +3 -3
  96. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
  97. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js.map +1 -1
  98. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.map +1 -1
  99. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js +3 -3
  100. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
  101. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/index.js.map +1 -1
  102. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.map +1 -1
  103. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js +3 -3
  104. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
  105. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/index.js.map +1 -1
  106. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.map +1 -1
  107. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js +3 -3
  108. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
  109. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/index.js.map +1 -1
  110. package/lib/components/DataSummary/DataSummaryTypes/index.js +3 -3
  111. package/lib/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
  112. package/lib/components/DataSummary/helpers/build-loop-props-content.js +5 -5
  113. package/lib/components/DataSummary/helpers/build-loop-props-content.js.map +1 -1
  114. package/lib/components/DataSummary/helpers/build-props-to-display-with-content.js +2 -2
  115. package/lib/components/DataSummary/helpers/build-props-to-display-with-content.js.map +1 -1
  116. package/lib/components/DataSummary/helpers/get-data-summary-query.js.map +1 -1
  117. package/lib/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -1
  118. package/lib/components/DataSummary/helpers/get-link-props.js +2 -2
  119. package/lib/components/DataSummary/helpers/get-link-props.js.map +1 -1
  120. package/lib/components/DataSummary/helpers/get-link-to-published-content.js.map +1 -1
  121. package/lib/components/DataSummary/helpers/get-loop-props-limit.js +2 -2
  122. package/lib/components/DataSummary/helpers/get-loop-props-limit.js.map +1 -1
  123. package/lib/components/DataSummary/helpers/get-prop-value.js +3 -3
  124. package/lib/components/DataSummary/helpers/get-prop-value.js.map +1 -1
  125. package/lib/components/DataSummary/helpers/get-value-from-array.js +2 -2
  126. package/lib/components/DataSummary/helpers/get-value-from-array.js.map +1 -1
  127. package/lib/components/DataSummary/helpers/index.js.map +1 -1
  128. package/lib/components/DataSummary/helpers/parse-boolean-values.js.map +1 -1
  129. package/lib/components/DataSummary/helpers/strip-summary-props-content.js.map +1 -1
  130. package/lib/components/DataSummary/index.js.map +1 -1
  131. package/lib/components/DateTime/DateTime.js.map +1 -1
  132. package/lib/components/DateTime/index.js.map +1 -1
  133. package/lib/components/EmailConfirm/EmailConfirm.js +2 -2
  134. package/lib/components/EmailConfirm/EmailConfirm.js.map +1 -1
  135. package/lib/components/EmailConfirm/index.js.map +1 -1
  136. package/lib/components/EmailConfirm/mutation.js.map +1 -1
  137. package/lib/components/Iframe/Iframe.js.map +1 -1
  138. package/lib/components/Iframe/constants.js.map +1 -1
  139. package/lib/components/Iframe/index.js.map +1 -1
  140. package/lib/components/Image/GlobalLightbox/GlobalLightbox.js +3 -3
  141. package/lib/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
  142. package/lib/components/Image/GlobalLightbox/NavButton.js.map +1 -1
  143. package/lib/components/Image/GlobalLightbox/index.js +3 -3
  144. package/lib/components/Image/GlobalLightbox/index.js.map +1 -1
  145. package/lib/components/Image/Image.js +7 -7
  146. package/lib/components/Image/Image.js.map +1 -1
  147. package/lib/components/Image/ImageDetails.js.map +1 -1
  148. package/lib/components/Image/ImageFactory.js +2 -2
  149. package/lib/components/Image/ImageFactory.js.map +1 -1
  150. package/lib/components/Image/ImageRender.js.map +1 -1
  151. package/lib/components/Image/Lightbox/Lightbox.js +2 -2
  152. package/lib/components/Image/Lightbox/Lightbox.js.map +1 -1
  153. package/lib/components/Image/Lightbox/index.js.map +1 -1
  154. package/lib/components/Image/index.js.map +1 -1
  155. package/lib/components/ItemList/ItemListButton/ItemListButton.js +4 -4
  156. package/lib/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
  157. package/lib/components/ItemList/ItemListButton/index.js.map +1 -1
  158. package/lib/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
  159. package/lib/components/ItemList/ItemListCounter/index.js.map +1 -1
  160. package/lib/components/ItemList/ItemListNew/ItemListNew.js.map +1 -1
  161. package/lib/components/ItemList/ItemListNew/index.js.map +1 -1
  162. package/lib/components/ItemList/constants.js.map +1 -1
  163. package/lib/components/ItemList/helpers/get-item-list-data.js.map +1 -1
  164. package/lib/components/ItemList/helpers/get-item-list-id.js.map +1 -1
  165. package/lib/components/ItemList/helpers/get-item-list-ids.js.map +1 -1
  166. package/lib/components/ItemList/helpers/index.js.map +1 -1
  167. package/lib/components/ItemList/helpers/set-item-list-id.js.map +1 -1
  168. package/lib/components/ItemList/helpers/set-param-and-redirect.js +4 -4
  169. package/lib/components/ItemList/helpers/set-param-and-redirect.js.map +1 -1
  170. package/lib/components/ItemList/hooks/index.js.map +1 -1
  171. package/lib/components/ItemList/hooks/use-item-list-id.js.map +1 -1
  172. package/lib/components/Layout/Layout.js +5 -5
  173. package/lib/components/Layout/Layout.js.map +1 -1
  174. package/lib/components/Layout/LayoutFactory.js +3 -3
  175. package/lib/components/Layout/LayoutFactory.js.map +1 -1
  176. package/lib/components/Layout/LayoutWithStickyTimer.js +2 -2
  177. package/lib/components/Layout/LayoutWithStickyTimer.js.map +1 -1
  178. package/lib/components/Layout/constants.js.map +1 -1
  179. package/lib/components/Layout/helpers/check-if-row-has-columns.js +1 -1
  180. package/lib/components/Layout/helpers/check-if-row-has-columns.js.map +1 -1
  181. package/lib/components/Layout/helpers/get-styles-to-update.js.map +1 -1
  182. package/lib/components/Layout/helpers/index.js.map +1 -1
  183. package/lib/components/Layout/index.js.map +1 -1
  184. package/lib/components/LazyImage/LazyImage.js.map +1 -1
  185. package/lib/components/LazyImage/index.js +3 -3
  186. package/lib/components/LazyImage/index.js.map +1 -1
  187. package/lib/components/List/ListBuilder.js +5 -5
  188. package/lib/components/List/ListBuilder.js.map +1 -1
  189. package/lib/components/List/ListFactory.js +10 -10
  190. package/lib/components/List/ListFactory.js.map +1 -1
  191. package/lib/components/List/ListRender.js.map +1 -1
  192. package/lib/components/List/components/Cards/CardRenderWithInfiniteScroll.js.map +1 -1
  193. package/lib/components/List/components/Cards/CardsRender.js +7 -7
  194. package/lib/components/List/components/Cards/CardsRender.js.map +1 -1
  195. package/lib/components/List/components/Cards/CardsRenderItem.js.map +1 -1
  196. package/lib/components/List/components/Cards/CardsRenderWrapper.js +2 -2
  197. package/lib/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
  198. package/lib/components/List/components/Cards/index.js.map +1 -1
  199. package/lib/components/List/components/Full/FullRender.js +6 -6
  200. package/lib/components/List/components/Full/FullRender.js.map +1 -1
  201. package/lib/components/List/components/Full/FullRenderItem.js +6 -6
  202. package/lib/components/List/components/Full/FullRenderItem.js.map +1 -1
  203. package/lib/components/List/components/Full/FullRenderWithInfiniteScroll.js.map +1 -1
  204. package/lib/components/List/components/Full/index.js.map +1 -1
  205. package/lib/components/List/components/Header/ListHeader.js +1 -1
  206. package/lib/components/List/components/Header/ListHeader.js.map +1 -1
  207. package/lib/components/List/components/Header/index.js.map +1 -1
  208. package/lib/components/List/components/Pagination/Classic.js.map +1 -1
  209. package/lib/components/List/components/Pagination/ListPagination.js +6 -6
  210. package/lib/components/List/components/Pagination/ListPagination.js.map +1 -1
  211. package/lib/components/List/components/Pagination/LoadMore.js.map +1 -1
  212. package/lib/components/List/components/Pagination/index.js.map +1 -1
  213. package/lib/components/List/components/helpers/check-if-should-render-banner.js +2 -2
  214. package/lib/components/List/components/helpers/check-if-should-render-banner.js.map +1 -1
  215. package/lib/components/List/components/helpers/check-if-should-render-gtm.js +2 -2
  216. package/lib/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -1
  217. package/lib/components/List/components/helpers/index.js.map +1 -1
  218. package/lib/components/List/components/index.js.map +1 -1
  219. package/lib/components/List/constants.js.map +1 -1
  220. package/lib/components/List/helpers/build-az-aggregations.js +3 -3
  221. package/lib/components/List/helpers/build-az-aggregations.js.map +1 -1
  222. package/lib/components/List/helpers/build-az-url.js +5 -5
  223. package/lib/components/List/helpers/build-az-url.js.map +1 -1
  224. package/lib/components/List/helpers/build-pagination-items.js.map +1 -1
  225. package/lib/components/List/helpers/build-pagination-url.js +5 -5
  226. package/lib/components/List/helpers/build-pagination-url.js.map +1 -1
  227. package/lib/components/List/helpers/build-query-booster.js +6 -6
  228. package/lib/components/List/helpers/build-query-booster.js.map +1 -1
  229. package/lib/components/List/helpers/get-az-query-filter.js.map +1 -1
  230. package/lib/components/List/helpers/get-items-per-page-to-use.js.map +1 -1
  231. package/lib/components/List/helpers/get-list-component.js.map +1 -1
  232. package/lib/components/List/helpers/get-list-query.js +3 -3
  233. package/lib/components/List/helpers/get-list-query.js.map +1 -1
  234. package/lib/components/List/helpers/get-list-specific-search-filter.js.map +1 -1
  235. package/lib/components/List/helpers/get-sort-props.js +2 -2
  236. package/lib/components/List/helpers/get-sort-props.js.map +1 -1
  237. package/lib/components/List/helpers/has-required-item-list-details.js.map +1 -1
  238. package/lib/components/List/helpers/index.js.map +1 -1
  239. package/lib/components/List/helpers/sort-aggs.js.map +1 -1
  240. package/lib/components/List/helpers/strip-query-key.js.map +1 -1
  241. package/lib/components/List/index.js.map +1 -1
  242. package/lib/components/Loading/Loading.js.map +1 -1
  243. package/lib/components/Loading/constants.js.map +1 -1
  244. package/lib/components/Loading/helpers.js.map +1 -1
  245. package/lib/components/Loading/index.js.map +1 -1
  246. package/lib/components/Menu/Menu.js +2 -2
  247. package/lib/components/Menu/Menu.js.map +1 -1
  248. package/lib/components/Menu/MenuContext.js.map +1 -1
  249. package/lib/components/Menu/index.js.map +1 -1
  250. package/lib/components/MenuItem/MenuEntitiesItem.js +6 -5
  251. package/lib/components/MenuItem/MenuEntitiesItem.js.map +1 -1
  252. package/lib/components/MenuItem/MenuItem.js.map +1 -1
  253. package/lib/components/MenuItem/MenuItemRender.js +2 -2
  254. package/lib/components/MenuItem/MenuItemRender.js.map +1 -1
  255. package/lib/components/MenuItem/helpers/index.js.map +1 -1
  256. package/lib/components/MenuItem/helpers/inject-helper-into-template.js.map +1 -1
  257. package/lib/components/MenuItem/index.js.map +1 -1
  258. package/lib/components/Modal/Modal.js.map +1 -1
  259. package/lib/components/Modal/index.js.map +1 -1
  260. package/lib/components/ModalAdapter/ModalAdapter.js.map +1 -1
  261. package/lib/components/ModalAdapter/index.js.map +1 -1
  262. package/lib/components/SearchContent/SearchContent.js +3 -3
  263. package/lib/components/SearchContent/SearchContent.js.map +1 -1
  264. package/lib/components/SearchContent/SearchContentItems.js.map +1 -1
  265. package/lib/components/SearchContent/SearchContentResults.js.map +1 -1
  266. package/lib/components/SearchContent/SearchContentToggleIcon.js.map +1 -1
  267. package/lib/components/SearchContent/constants.js.map +1 -1
  268. package/lib/components/SearchContent/index.js.map +1 -1
  269. package/lib/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
  270. package/lib/components/SearchFilter/SearchFilter/FiltersList.js +3 -3
  271. package/lib/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
  272. package/lib/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -1
  273. package/lib/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
  274. package/lib/components/SearchFilter/SearchFilter/SearchFilter.js +3 -3
  275. package/lib/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
  276. package/lib/components/SearchFilter/SearchFilter/index.js.map +1 -1
  277. package/lib/components/SearchFilter/SearchFilterContainer.js +4 -4
  278. package/lib/components/SearchFilter/SearchFilterContainer.js.map +1 -1
  279. package/lib/components/SearchFilter/components/Checkbox.js +7 -7
  280. package/lib/components/SearchFilter/components/Checkbox.js.map +1 -1
  281. package/lib/components/SearchFilter/components/Range.js +4 -4
  282. package/lib/components/SearchFilter/components/Range.js.map +1 -1
  283. package/lib/components/SearchFilter/components/Select.js +3 -3
  284. package/lib/components/SearchFilter/components/Select.js.map +1 -1
  285. package/lib/components/SearchFilter/components/TextSearch.js.map +1 -1
  286. package/lib/components/SearchFilter/components/index.js.map +1 -1
  287. package/lib/components/SearchFilter/constants.js.map +1 -1
  288. package/lib/components/SearchFilter/helpers/build-list-name-query.js +3 -3
  289. package/lib/components/SearchFilter/helpers/build-list-name-query.js.map +1 -1
  290. package/lib/components/SearchFilter/helpers/build-new-url.js.map +1 -1
  291. package/lib/components/SearchFilter/helpers/build-url-query.js +3 -3
  292. package/lib/components/SearchFilter/helpers/build-url-query.js.map +1 -1
  293. package/lib/components/SearchFilter/helpers/calculate-min-max.js.map +1 -1
  294. package/lib/components/SearchFilter/helpers/calculate-step.js.map +1 -1
  295. package/lib/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -1
  296. package/lib/components/SearchFilter/helpers/decode-encode.js.map +1 -1
  297. package/lib/components/SearchFilter/helpers/get-display-value.js +1 -1
  298. package/lib/components/SearchFilter/helpers/get-display-value.js.map +1 -1
  299. package/lib/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js +2 -2
  300. package/lib/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js.map +1 -1
  301. package/lib/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
  302. package/lib/components/SearchFilter/helpers/get-filter-values.js.map +1 -1
  303. package/lib/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -1
  304. package/lib/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -1
  305. package/lib/components/SearchFilter/helpers/get-range-value.js.map +1 -1
  306. package/lib/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
  307. package/lib/components/SearchFilter/helpers/get-select-options.js.map +1 -1
  308. package/lib/components/SearchFilter/helpers/get-updated-filter-by.js +2 -2
  309. package/lib/components/SearchFilter/helpers/get-updated-filter-by.js.map +1 -1
  310. package/lib/components/SearchFilter/helpers/index.js.map +1 -1
  311. package/lib/components/SearchFilter/helpers/is-device-desktop.js.map +1 -1
  312. package/lib/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
  313. package/lib/components/SearchFilter/index.js.map +1 -1
  314. package/lib/components/SearchFilter/searchFilterReducer.js +5 -5
  315. package/lib/components/SearchFilter/searchFilterReducer.js.map +1 -1
  316. package/lib/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
  317. package/lib/components/SearchFilterSort/constants.js.map +1 -1
  318. package/lib/components/SearchFilterSort/helpers/handle-sort-update.js +2 -2
  319. package/lib/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
  320. package/lib/components/SearchFilterSort/helpers/index.js.map +1 -1
  321. package/lib/components/SearchFilterSort/helpers/update-sort.js +5 -5
  322. package/lib/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
  323. package/lib/components/SearchFilterSort/index.js.map +1 -1
  324. package/lib/components/SocialFollow/SFItem.js.map +1 -1
  325. package/lib/components/SocialFollow/SocialFollow.js.map +1 -1
  326. package/lib/components/SocialFollow/SocialFollowRender.js.map +1 -1
  327. package/lib/components/SocialFollow/index.js.map +1 -1
  328. package/lib/components/SocialFollow/sf.config.js.map +1 -1
  329. package/lib/components/SubMenu/SubMenu.js.map +1 -1
  330. package/lib/components/SubMenu/index.js.map +1 -1
  331. package/lib/components/TextBlock/TextBlockRender.js.map +1 -1
  332. package/lib/components/TextBlock/index.js +5 -5
  333. package/lib/components/TextBlock/index.js.map +1 -1
  334. package/lib/components/Video/Video.js +7 -6
  335. package/lib/components/Video/Video.js.map +1 -1
  336. package/lib/components/Video/VideoContext.js +12 -0
  337. package/lib/components/Video/VideoContext.js.map +1 -0
  338. package/lib/components/Video/VideoModal.js +2 -2
  339. package/lib/components/Video/VideoModal.js.map +1 -1
  340. package/lib/components/Video/VideoRender.js +36 -3
  341. package/lib/components/Video/VideoRender.js.map +1 -1
  342. package/lib/components/Video/constants.js +14 -0
  343. package/lib/components/Video/constants.js.map +1 -0
  344. package/lib/components/Video/helpers/emit-gtm-event.js +31 -0
  345. package/lib/components/Video/helpers/emit-gtm-event.js.map +1 -0
  346. package/lib/components/Video/index.js.map +1 -1
  347. package/lib/components/Video/providers/Default.js.map +1 -1
  348. package/lib/components/Video/providers/JWPlayer/JWPlayerController.js +28 -8
  349. package/lib/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
  350. package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js +21 -9
  351. package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
  352. package/lib/components/Video/providers/Vimeo/VimeoProvider.js +2 -2
  353. package/lib/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
  354. package/lib/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js +6 -6
  355. package/lib/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js.map +1 -1
  356. package/lib/components/Video/providers/Vimeo/helpers/index.js.map +1 -1
  357. package/lib/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
  358. package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js +59 -2
  359. package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
  360. package/lib/components/Video/providers/YouTube/helpers/index.js +1 -1
  361. package/lib/components/Video/providers/YouTube/helpers/index.js.map +1 -1
  362. package/lib/components/Video/providers/get-provider.js +3 -3
  363. package/lib/components/Video/providers/get-provider.js.map +1 -1
  364. package/lib/components/Video/providers/index.js.map +1 -1
  365. package/lib/components/Wrapper.js.map +1 -1
  366. package/lib/components/index.js +3 -3
  367. package/lib/components/index.js.map +1 -1
  368. package/lib/constants/componentsDefaultValues.js.map +1 -1
  369. package/lib/constants/index.js.map +1 -1
  370. package/lib/helpers/append-images.js +5 -5
  371. package/lib/helpers/append-images.js.map +1 -1
  372. package/lib/helpers/build-az-filter.js.map +1 -1
  373. package/lib/helpers/build-checkbox-filters.js.map +1 -1
  374. package/lib/helpers/build-filters-query.js +6 -6
  375. package/lib/helpers/build-filters-query.js.map +1 -1
  376. package/lib/helpers/build-image-properties.js.map +1 -1
  377. package/lib/helpers/build-inherited-filters.js +4 -4
  378. package/lib/helpers/build-inherited-filters.js.map +1 -1
  379. package/lib/helpers/build-link-extra-props.js.map +1 -1
  380. package/lib/helpers/build-props-query.js +9 -9
  381. package/lib/helpers/build-props-query.js.map +1 -1
  382. package/lib/helpers/build-query-fields.js +1 -1
  383. package/lib/helpers/build-query-fields.js.map +1 -1
  384. package/lib/helpers/build-query-key.js.map +1 -1
  385. package/lib/helpers/build-raw-query-base.js +9 -9
  386. package/lib/helpers/build-raw-query-base.js.map +1 -1
  387. package/lib/helpers/build-raw-query-stringified.js +1 -1
  388. package/lib/helpers/build-raw-query-stringified.js.map +1 -1
  389. package/lib/helpers/build-raw-query.js +5 -5
  390. package/lib/helpers/build-raw-query.js.map +1 -1
  391. package/lib/helpers/build-search-values-checkbox-select.js +7 -7
  392. package/lib/helpers/build-search-values-checkbox-select.js.map +1 -1
  393. package/lib/helpers/build-search-values-text.js.map +1 -1
  394. package/lib/helpers/build-set-filters.js +3 -3
  395. package/lib/helpers/build-set-filters.js.map +1 -1
  396. package/lib/helpers/build-sort-values.js +6 -6
  397. package/lib/helpers/build-sort-values.js.map +1 -1
  398. package/lib/helpers/check-for-error.js.map +1 -1
  399. package/lib/helpers/check-props-to-use.js.map +1 -1
  400. package/lib/helpers/entities/constants.js.map +1 -1
  401. package/lib/helpers/filter-query-setup.js +5 -5
  402. package/lib/helpers/filter-query-setup.js.map +1 -1
  403. package/lib/helpers/filters-setup.js.map +1 -1
  404. package/lib/helpers/get-banner-data.js +5 -5
  405. package/lib/helpers/get-banner-data.js.map +1 -1
  406. package/lib/helpers/get-checkbox-filters.js.map +1 -1
  407. package/lib/helpers/get-click-wrapper-options.js +6 -6
  408. package/lib/helpers/get-click-wrapper-options.js.map +1 -1
  409. package/lib/helpers/get-current-offset.js.map +1 -1
  410. package/lib/helpers/get-dictionary-match.js.map +1 -1
  411. package/lib/helpers/get-display-count-data.js.map +1 -1
  412. package/lib/helpers/get-elasticsearch-operator.js.map +1 -1
  413. package/lib/helpers/get-entities-with-banner.js +5 -5
  414. package/lib/helpers/get-entities-with-banner.js.map +1 -1
  415. package/lib/helpers/get-entity-data.js.map +1 -1
  416. package/lib/helpers/get-entity-render-props.js.map +1 -1
  417. package/lib/helpers/get-extra-az-bits.js.map +1 -1
  418. package/lib/helpers/get-filter-props.js.map +1 -1
  419. package/lib/helpers/get-filter-relation-keys.js +1 -1
  420. package/lib/helpers/get-filter-relation-keys.js.map +1 -1
  421. package/lib/helpers/get-generic-props.js +5 -5
  422. package/lib/helpers/get-generic-props.js.map +1 -1
  423. package/lib/helpers/get-generic-render-variables.js +6 -6
  424. package/lib/helpers/get-generic-render-variables.js.map +1 -1
  425. package/lib/helpers/get-image-ids.js +2 -2
  426. package/lib/helpers/get-image-ids.js.map +1 -1
  427. package/lib/helpers/get-inherited-filters.js +2 -2
  428. package/lib/helpers/get-inherited-filters.js.map +1 -1
  429. package/lib/helpers/get-items-to-display-ids.js +2 -2
  430. package/lib/helpers/get-items-to-display-ids.js.map +1 -1
  431. package/lib/helpers/get-modifiers.js +3 -3
  432. package/lib/helpers/get-modifiers.js.map +1 -1
  433. package/lib/helpers/get-not-equal-query.js.map +1 -1
  434. package/lib/helpers/get-pagination-index.js.map +1 -1
  435. package/lib/helpers/get-parsed-prop-values.js +3 -3
  436. package/lib/helpers/get-parsed-prop-values.js.map +1 -1
  437. package/lib/helpers/get-parsed-summary-value.js.map +1 -1
  438. package/lib/helpers/get-prop-values.js +2 -2
  439. package/lib/helpers/get-prop-values.js.map +1 -1
  440. package/lib/helpers/get-query-filters.js.map +1 -1
  441. package/lib/helpers/get-query-props.js +3 -3
  442. package/lib/helpers/get-query-props.js.map +1 -1
  443. package/lib/helpers/get-required-schemas.js +3 -3
  444. package/lib/helpers/get-required-schemas.js.map +1 -1
  445. package/lib/helpers/get-sanitized-prop-values.js.map +1 -1
  446. package/lib/helpers/get-search-filter-type.js.map +1 -1
  447. package/lib/helpers/get-sort-by-field-name.js +4 -4
  448. package/lib/helpers/get-sort-by-field-name.js.map +1 -1
  449. package/lib/helpers/get-unpublished-entity-name.js +1 -1
  450. package/lib/helpers/get-unpublished-entity-name.js.map +1 -1
  451. package/lib/helpers/get-updated-filter-by.js.map +1 -1
  452. package/lib/helpers/get-updated-items-to-display.js +3 -3
  453. package/lib/helpers/get-updated-items-to-display.js.map +1 -1
  454. package/lib/helpers/get-updated-sort-properties.js +2 -2
  455. package/lib/helpers/get-updated-sort-properties.js.map +1 -1
  456. package/lib/helpers/get-wrapped-value-with-link.js +1 -1
  457. package/lib/helpers/get-wrapped-value-with-link.js.map +1 -1
  458. package/lib/helpers/group-entities.js +1 -1
  459. package/lib/helpers/group-entities.js.map +1 -1
  460. package/lib/helpers/has-children.js.map +1 -1
  461. package/lib/helpers/index.js.map +1 -1
  462. package/lib/helpers/inject-banner.js.map +1 -1
  463. package/lib/helpers/inject-banners-to-entities.js.map +1 -1
  464. package/lib/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.map +1 -1
  465. package/lib/helpers/inject-multiple-banners/get-banners-for-entities/index.js.map +1 -1
  466. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js +6 -6
  467. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.map +1 -1
  468. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js +3 -3
  469. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js.map +1 -1
  470. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js.map +1 -1
  471. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/index.js.map +1 -1
  472. package/lib/helpers/inject-multiple-banners/index.js.map +1 -1
  473. package/lib/helpers/inject-multiple-banners/inject-multiple-banners.js.map +1 -1
  474. package/lib/helpers/is-browser.js.map +1 -1
  475. package/lib/helpers/is-filter-entitys-id.js +1 -1
  476. package/lib/helpers/is-filter-entitys-id.js.map +1 -1
  477. package/lib/helpers/is-object.js.map +1 -1
  478. package/lib/helpers/is-using-relation-image.js.map +1 -1
  479. package/lib/helpers/parse-TextBlock.js +2 -2
  480. package/lib/helpers/parse-TextBlock.js.map +1 -1
  481. package/lib/helpers/parse-interval.js.map +1 -1
  482. package/lib/helpers/parse-props-to-display.js +4 -4
  483. package/lib/helpers/parse-props-to-display.js.map +1 -1
  484. package/lib/helpers/process-data-summary-value.js +8 -8
  485. package/lib/helpers/process-data-summary-value.js.map +1 -1
  486. package/lib/helpers/remove-extra-items.js.map +1 -1
  487. package/lib/helpers/remove-unwanted-characters.js +6 -6
  488. package/lib/helpers/remove-unwanted-characters.js.map +1 -1
  489. package/lib/helpers/render-children.js +5 -5
  490. package/lib/helpers/render-children.js.map +1 -1
  491. package/lib/helpers/should-render-waypoint.js.map +1 -1
  492. package/lib/helpers/should-return.js.map +1 -1
  493. package/lib/helpers/should-show-property.js.map +1 -1
  494. package/lib/helpers/should-skip-single-query.js.map +1 -1
  495. package/lib/helpers/sort-response-data.js +2 -2
  496. package/lib/helpers/sort-response-data.js.map +1 -1
  497. package/lib/helpers/split-children.js +5 -5
  498. package/lib/helpers/split-children.js.map +1 -1
  499. package/lib/helpers/update-childrens-parent.js +3 -3
  500. package/lib/helpers/update-childrens-parent.js.map +1 -1
  501. package/lib/hooks/helpers/RenderComponent.js +1 -1
  502. package/lib/hooks/helpers/RenderComponent.js.map +1 -1
  503. package/lib/hooks/helpers/StoreImages.js +4 -4
  504. package/lib/hooks/helpers/StoreImages.js.map +1 -1
  505. package/lib/hooks/helpers/append-gtm-classname.js +7 -7
  506. package/lib/hooks/helpers/append-gtm-classname.js.map +1 -1
  507. package/lib/hooks/helpers/buildPBComponents.js +7 -7
  508. package/lib/hooks/helpers/buildPBComponents.js.map +1 -1
  509. package/lib/hooks/helpers/check-banner-insertion-set.js.map +1 -1
  510. package/lib/hooks/helpers/check-collisions.js +3 -3
  511. package/lib/hooks/helpers/check-collisions.js.map +1 -1
  512. package/lib/hooks/helpers/constants.js.map +1 -1
  513. package/lib/hooks/helpers/get-banner-index.js.map +1 -1
  514. package/lib/hooks/helpers/get-components-to-insert-by-type.js.map +1 -1
  515. package/lib/hooks/helpers/get-lightbox-images.js +8 -8
  516. package/lib/hooks/helpers/get-lightbox-images.js.map +1 -1
  517. package/lib/hooks/helpers/getComponent.js.map +1 -1
  518. package/lib/hooks/helpers/getVariant.js.map +1 -1
  519. package/lib/hooks/helpers/index.js.map +1 -1
  520. package/lib/hooks/helpers/inject-element-components.js +4 -4
  521. package/lib/hooks/helpers/inject-element-components.js.map +1 -1
  522. package/lib/hooks/helpers/inject-textblock-banners.js +7 -7
  523. package/lib/hooks/helpers/inject-textblock-banners.js.map +1 -1
  524. package/lib/hooks/helpers/insert-banners.js +9 -9
  525. package/lib/hooks/helpers/insert-banners.js.map +1 -1
  526. package/lib/hooks/helpers/update-targetings.js.map +1 -1
  527. package/lib/hooks/index.js.map +1 -1
  528. package/lib/hooks/use-app-sync-event-hook.js.map +1 -1
  529. package/lib/hooks/use-banner-insertion.js +1 -1
  530. package/lib/hooks/use-banner-insertion.js.map +1 -1
  531. package/lib/hooks/use-check-mobile-screen.js.map +1 -1
  532. package/lib/hooks/use-filter-aggregation-values.js +5 -5
  533. package/lib/hooks/use-filter-aggregation-values.js.map +1 -1
  534. package/lib/hooks/use-get-entity-schema.js.map +1 -1
  535. package/lib/hooks/use-get-entity-schemas-as-obj.js +1 -1
  536. package/lib/hooks/use-get-entity-schemas-as-obj.js.map +1 -1
  537. package/lib/hooks/use-get-image-id-from-relation.js +1 -1
  538. package/lib/hooks/use-get-image-id-from-relation.js.map +1 -1
  539. package/lib/hooks/use-get-images.js.map +1 -1
  540. package/lib/hooks/use-get-single-entity-schema.js.map +1 -1
  541. package/lib/hooks/use-page-builder.js.map +1 -1
  542. package/lib/hooks/use-portal.js +2 -2
  543. package/lib/hooks/use-portal.js.map +1 -1
  544. package/lib/index.js.map +1 -1
  545. package/lib/utils/component-map.js +1 -1
  546. package/lib/utils/component-map.js.map +1 -1
  547. package/lib/utils/get-class-modifiers.js +7 -7
  548. package/lib/utils/get-class-modifiers.js.map +1 -1
  549. package/lib/utils/get-image-data.js.map +1 -1
  550. package/lib/utils/get-props-to-display-modifiers.js.map +1 -1
  551. package/lib/utils/index.js.map +1 -1
  552. package/lib/utils/is-object-empty.js.map +1 -1
  553. package/lib/utils/variant-handler.js +1 -1
  554. package/lib/utils/variant-handler.js.map +1 -1
  555. package/lib/variants/HeroImage/index.js +5 -5
  556. package/lib/variants/HeroImage/index.js.map +1 -1
  557. package/lib/variants/Infographic/Infographic.js.map +1 -1
  558. package/lib/variants/Infographic/index.js +5 -5
  559. package/lib/variants/Infographic/index.js.map +1 -1
  560. package/lib/variants/Infographic/useInfographic.js +5 -5
  561. package/lib/variants/Infographic/useInfographic.js.map +1 -1
  562. package/lib/variants/LongformGallery/LongformGallery.js.map +1 -1
  563. package/lib/variants/LongformGallery/LongformGalleryImage.js.map +1 -1
  564. package/lib/variants/LongformGallery/constants.js.map +1 -1
  565. package/lib/variants/LongformGallery/helpers/index.js.map +1 -1
  566. package/lib/variants/LongformGallery/helpers/parseImageData.js +3 -3
  567. package/lib/variants/LongformGallery/helpers/parseImageData.js.map +1 -1
  568. package/lib/variants/LongformGallery/helpers/separateImages.js.map +1 -1
  569. package/lib/variants/LongformGallery/helpers/shouldSkip.js.map +1 -1
  570. package/lib/variants/LongformGallery/index.js +6 -6
  571. package/lib/variants/LongformGallery/index.js.map +1 -1
  572. package/lib/variants/LongformGallery/useLongformGallery.js.map +1 -1
  573. package/lib/variants/LongformRow/index.js +5 -5
  574. package/lib/variants/LongformRow/index.js.map +1 -1
  575. package/lib/variants/ParallaxImageTextRight/index.js +5 -5
  576. package/lib/variants/ParallaxImageTextRight/index.js.map +1 -1
  577. package/lib/variants/SlideSummary/SlideSummary.js.map +1 -1
  578. package/lib/variants/SlideSummary/index.js +5 -5
  579. package/lib/variants/SlideSummary/index.js.map +1 -1
  580. package/lib/variants/ThumbnailCarousel/ThumbnailCarousel.js.map +1 -1
  581. package/lib/variants/ThumbnailCarousel/ThumbnailImage/ThumbnailImage.js.map +1 -1
  582. package/lib/variants/ThumbnailCarousel/ThumbnailImage/index.js.map +1 -1
  583. package/lib/variants/ThumbnailCarousel/ThumbnailImage/useThumbnailImage.js.map +1 -1
  584. package/lib/variants/ThumbnailCarousel/index.js +5 -5
  585. package/lib/variants/ThumbnailCarousel/index.js.map +1 -1
  586. package/lib/variants/ThumbnailCarousel/useThumbnailCarousel.js +5 -5
  587. package/lib/variants/ThumbnailCarousel/useThumbnailCarousel.js.map +1 -1
  588. package/lib/variants/index.js.map +1 -1
  589. package/lib-es/BannerContext/helpers/index.js.map +1 -1
  590. package/lib-es/BannerContext/helpers/set-initial-banner-counters.js.map +1 -1
  591. package/lib-es/BannerContext/index.js.map +1 -1
  592. package/lib-es/HOC/index.js.map +1 -1
  593. package/lib-es/HOC/recreateOnNavigation.js.map +1 -1
  594. package/lib-es/HOC/withInfiniteScroll.js.map +1 -1
  595. package/lib-es/HOC/withTitle.js.map +1 -1
  596. package/lib-es/PBContext/index.js.map +1 -1
  597. package/lib-es/application/query/index.js.map +1 -1
  598. package/lib-es/components/BackToTop/BackToTop.js.map +1 -1
  599. package/lib-es/components/BackToTop/index.js.map +1 -1
  600. package/lib-es/components/Banner/AdSlotRender.js.map +1 -1
  601. package/lib-es/components/Banner/Banner.js.map +1 -1
  602. package/lib-es/components/Banner/BannerRender.js.map +1 -1
  603. package/lib-es/components/Banner/helpers.js.map +1 -1
  604. package/lib-es/components/Banner/index.js.map +1 -1
  605. package/lib-es/components/BlazeLink.js.map +1 -1
  606. package/lib-es/components/Breadcrumb/Breadcrumb.js.map +1 -1
  607. package/lib-es/components/Breadcrumb/index.js.map +1 -1
  608. package/lib-es/components/Button.js.map +1 -1
  609. package/lib-es/components/Card/Card.js.map +1 -1
  610. package/lib-es/components/Card/CardsContainer.js.map +1 -1
  611. package/lib-es/components/Card/CardsFactory.js.map +1 -1
  612. package/lib-es/components/Card/CardsRender.js.map +1 -1
  613. package/lib-es/components/Card/constants.js.map +1 -1
  614. package/lib-es/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -1
  615. package/lib-es/components/Card/helpers/get-published-listing-url.js.map +1 -1
  616. package/lib-es/components/Card/helpers/index.js.map +1 -1
  617. package/lib-es/components/Card/helpers/use-dynamic-size-key.js.map +1 -1
  618. package/lib-es/components/Card/index.js.map +1 -1
  619. package/lib-es/components/Carousel/Carousel.js.map +1 -1
  620. package/lib-es/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
  621. package/lib-es/components/Carousel/CarouselImage/constants.js.map +1 -1
  622. package/lib-es/components/Carousel/CarouselImage/index.js.map +1 -1
  623. package/lib-es/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
  624. package/lib-es/components/Carousel/CarouselRender/index.js.map +1 -1
  625. package/lib-es/components/Carousel/hooks/useCarouselNavigation.js.map +1 -1
  626. package/lib-es/components/Carousel/index.js.map +1 -1
  627. package/lib-es/components/CarouselWrapper/CarouselWrapper.js.map +1 -1
  628. package/lib-es/components/CarouselWrapper/DefaultCarousel.js.map +1 -1
  629. package/lib-es/components/CarouselWrapper/SmoothScrollCarousel.js.map +1 -1
  630. package/lib-es/components/CarouselWrapper/index.js.map +1 -1
  631. package/lib-es/components/ClickWrapper.js.map +1 -1
  632. package/lib-es/components/Code/Code.js.map +1 -1
  633. package/lib-es/components/Code/ScriptTag.js.map +1 -1
  634. package/lib-es/components/Code/helpers/index.js.map +1 -1
  635. package/lib-es/components/Code/helpers/wrap-script-tags.js.map +1 -1
  636. package/lib-es/components/Code/index.js.map +1 -1
  637. package/lib-es/components/ContentGroup/ContentGroup.js.map +1 -1
  638. package/lib-es/components/ContentGroup/ContentGroupTabs.js.map +1 -1
  639. package/lib-es/components/ContentGroup/constants.js.map +1 -1
  640. package/lib-es/components/ContentGroup/helpers/get-active-tab.js.map +1 -1
  641. package/lib-es/components/ContentGroup/helpers/get-sections-data.js.map +1 -1
  642. package/lib-es/components/ContentGroup/helpers/index.js.map +1 -1
  643. package/lib-es/components/ContentGroup/index.js.map +1 -1
  644. package/lib-es/components/ContentGroupSection/ContentGroupSection.js.map +1 -1
  645. package/lib-es/components/ContentGroupSection/index.js.map +1 -1
  646. package/lib-es/components/DataSummary/DataSummaryFactory.js.map +1 -1
  647. package/lib-es/components/DataSummary/DataSummaryRender.js.map +1 -1
  648. package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -1
  649. package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
  650. package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js.map +1 -1
  651. package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map +1 -1
  652. package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
  653. package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js.map +1 -1
  654. package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.map +1 -1
  655. package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
  656. package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/index.js.map +1 -1
  657. package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.map +1 -1
  658. package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
  659. package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/index.js.map +1 -1
  660. package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.map +1 -1
  661. package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
  662. package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/index.js.map +1 -1
  663. package/lib-es/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
  664. package/lib-es/components/DataSummary/helpers/build-loop-props-content.js.map +1 -1
  665. package/lib-es/components/DataSummary/helpers/build-props-to-display-with-content.js.map +1 -1
  666. package/lib-es/components/DataSummary/helpers/get-data-summary-query.js.map +1 -1
  667. package/lib-es/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -1
  668. package/lib-es/components/DataSummary/helpers/get-link-props.js.map +1 -1
  669. package/lib-es/components/DataSummary/helpers/get-link-to-published-content.js.map +1 -1
  670. package/lib-es/components/DataSummary/helpers/get-loop-props-limit.js.map +1 -1
  671. package/lib-es/components/DataSummary/helpers/get-prop-value.js.map +1 -1
  672. package/lib-es/components/DataSummary/helpers/get-value-from-array.js.map +1 -1
  673. package/lib-es/components/DataSummary/helpers/index.js.map +1 -1
  674. package/lib-es/components/DataSummary/helpers/parse-boolean-values.js.map +1 -1
  675. package/lib-es/components/DataSummary/helpers/strip-summary-props-content.js.map +1 -1
  676. package/lib-es/components/DataSummary/index.js.map +1 -1
  677. package/lib-es/components/DateTime/DateTime.js.map +1 -1
  678. package/lib-es/components/DateTime/index.js.map +1 -1
  679. package/lib-es/components/EmailConfirm/EmailConfirm.js.map +1 -1
  680. package/lib-es/components/EmailConfirm/index.js.map +1 -1
  681. package/lib-es/components/EmailConfirm/mutation.js.map +1 -1
  682. package/lib-es/components/Iframe/Iframe.js.map +1 -1
  683. package/lib-es/components/Iframe/constants.js.map +1 -1
  684. package/lib-es/components/Iframe/index.js.map +1 -1
  685. package/lib-es/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
  686. package/lib-es/components/Image/GlobalLightbox/NavButton.js.map +1 -1
  687. package/lib-es/components/Image/GlobalLightbox/index.js.map +1 -1
  688. package/lib-es/components/Image/Image.js.map +1 -1
  689. package/lib-es/components/Image/ImageDetails.js.map +1 -1
  690. package/lib-es/components/Image/ImageFactory.js.map +1 -1
  691. package/lib-es/components/Image/ImageRender.js.map +1 -1
  692. package/lib-es/components/Image/Lightbox/Lightbox.js.map +1 -1
  693. package/lib-es/components/Image/Lightbox/index.js.map +1 -1
  694. package/lib-es/components/Image/index.js.map +1 -1
  695. package/lib-es/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
  696. package/lib-es/components/ItemList/ItemListButton/index.js.map +1 -1
  697. package/lib-es/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
  698. package/lib-es/components/ItemList/ItemListCounter/index.js.map +1 -1
  699. package/lib-es/components/ItemList/ItemListNew/ItemListNew.js.map +1 -1
  700. package/lib-es/components/ItemList/ItemListNew/index.js.map +1 -1
  701. package/lib-es/components/ItemList/constants.js.map +1 -1
  702. package/lib-es/components/ItemList/helpers/get-item-list-data.js.map +1 -1
  703. package/lib-es/components/ItemList/helpers/get-item-list-id.js.map +1 -1
  704. package/lib-es/components/ItemList/helpers/get-item-list-ids.js.map +1 -1
  705. package/lib-es/components/ItemList/helpers/index.js.map +1 -1
  706. package/lib-es/components/ItemList/helpers/set-item-list-id.js.map +1 -1
  707. package/lib-es/components/ItemList/helpers/set-param-and-redirect.js.map +1 -1
  708. package/lib-es/components/ItemList/hooks/index.js.map +1 -1
  709. package/lib-es/components/ItemList/hooks/use-item-list-id.js.map +1 -1
  710. package/lib-es/components/Layout/Layout.js.map +1 -1
  711. package/lib-es/components/Layout/LayoutFactory.js.map +1 -1
  712. package/lib-es/components/Layout/LayoutWithStickyTimer.js.map +1 -1
  713. package/lib-es/components/Layout/constants.js.map +1 -1
  714. package/lib-es/components/Layout/helpers/check-if-row-has-columns.js.map +1 -1
  715. package/lib-es/components/Layout/helpers/get-styles-to-update.js.map +1 -1
  716. package/lib-es/components/Layout/helpers/index.js.map +1 -1
  717. package/lib-es/components/Layout/index.js.map +1 -1
  718. package/lib-es/components/LazyImage/LazyImage.js.map +1 -1
  719. package/lib-es/components/LazyImage/index.js.map +1 -1
  720. package/lib-es/components/List/ListBuilder.js.map +1 -1
  721. package/lib-es/components/List/ListFactory.js.map +1 -1
  722. package/lib-es/components/List/ListRender.js.map +1 -1
  723. package/lib-es/components/List/components/Cards/CardRenderWithInfiniteScroll.js.map +1 -1
  724. package/lib-es/components/List/components/Cards/CardsRender.js.map +1 -1
  725. package/lib-es/components/List/components/Cards/CardsRenderItem.js.map +1 -1
  726. package/lib-es/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
  727. package/lib-es/components/List/components/Cards/index.js.map +1 -1
  728. package/lib-es/components/List/components/Full/FullRender.js.map +1 -1
  729. package/lib-es/components/List/components/Full/FullRenderItem.js.map +1 -1
  730. package/lib-es/components/List/components/Full/FullRenderWithInfiniteScroll.js.map +1 -1
  731. package/lib-es/components/List/components/Full/index.js.map +1 -1
  732. package/lib-es/components/List/components/Header/ListHeader.js.map +1 -1
  733. package/lib-es/components/List/components/Header/index.js.map +1 -1
  734. package/lib-es/components/List/components/Pagination/Classic.js.map +1 -1
  735. package/lib-es/components/List/components/Pagination/ListPagination.js.map +1 -1
  736. package/lib-es/components/List/components/Pagination/LoadMore.js.map +1 -1
  737. package/lib-es/components/List/components/Pagination/index.js.map +1 -1
  738. package/lib-es/components/List/components/helpers/check-if-should-render-banner.js.map +1 -1
  739. package/lib-es/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -1
  740. package/lib-es/components/List/components/helpers/index.js.map +1 -1
  741. package/lib-es/components/List/components/index.js.map +1 -1
  742. package/lib-es/components/List/constants.js.map +1 -1
  743. package/lib-es/components/List/helpers/build-az-aggregations.js.map +1 -1
  744. package/lib-es/components/List/helpers/build-az-url.js.map +1 -1
  745. package/lib-es/components/List/helpers/build-pagination-items.js.map +1 -1
  746. package/lib-es/components/List/helpers/build-pagination-url.js.map +1 -1
  747. package/lib-es/components/List/helpers/build-query-booster.js.map +1 -1
  748. package/lib-es/components/List/helpers/get-az-query-filter.js.map +1 -1
  749. package/lib-es/components/List/helpers/get-items-per-page-to-use.js.map +1 -1
  750. package/lib-es/components/List/helpers/get-list-component.js.map +1 -1
  751. package/lib-es/components/List/helpers/get-list-query.js.map +1 -1
  752. package/lib-es/components/List/helpers/get-list-specific-search-filter.js.map +1 -1
  753. package/lib-es/components/List/helpers/get-sort-props.js.map +1 -1
  754. package/lib-es/components/List/helpers/has-required-item-list-details.js.map +1 -1
  755. package/lib-es/components/List/helpers/index.js.map +1 -1
  756. package/lib-es/components/List/helpers/sort-aggs.js.map +1 -1
  757. package/lib-es/components/List/helpers/strip-query-key.js.map +1 -1
  758. package/lib-es/components/List/index.js.map +1 -1
  759. package/lib-es/components/Loading/Loading.js.map +1 -1
  760. package/lib-es/components/Loading/constants.js.map +1 -1
  761. package/lib-es/components/Loading/helpers.js.map +1 -1
  762. package/lib-es/components/Loading/index.js.map +1 -1
  763. package/lib-es/components/Menu/Menu.js.map +1 -1
  764. package/lib-es/components/Menu/MenuContext.js.map +1 -1
  765. package/lib-es/components/Menu/index.js.map +1 -1
  766. package/lib-es/components/MenuItem/MenuEntitiesItem.js +1 -0
  767. package/lib-es/components/MenuItem/MenuEntitiesItem.js.map +1 -1
  768. package/lib-es/components/MenuItem/MenuItem.js.map +1 -1
  769. package/lib-es/components/MenuItem/MenuItemRender.js.map +1 -1
  770. package/lib-es/components/MenuItem/helpers/index.js.map +1 -1
  771. package/lib-es/components/MenuItem/helpers/inject-helper-into-template.js.map +1 -1
  772. package/lib-es/components/MenuItem/index.js.map +1 -1
  773. package/lib-es/components/Modal/Modal.js.map +1 -1
  774. package/lib-es/components/Modal/index.js.map +1 -1
  775. package/lib-es/components/ModalAdapter/ModalAdapter.js.map +1 -1
  776. package/lib-es/components/ModalAdapter/index.js.map +1 -1
  777. package/lib-es/components/SearchContent/SearchContent.js.map +1 -1
  778. package/lib-es/components/SearchContent/SearchContentItems.js.map +1 -1
  779. package/lib-es/components/SearchContent/SearchContentResults.js.map +1 -1
  780. package/lib-es/components/SearchContent/SearchContentToggleIcon.js.map +1 -1
  781. package/lib-es/components/SearchContent/constants.js.map +1 -1
  782. package/lib-es/components/SearchContent/index.js.map +1 -1
  783. package/lib-es/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
  784. package/lib-es/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
  785. package/lib-es/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -1
  786. package/lib-es/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
  787. package/lib-es/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
  788. package/lib-es/components/SearchFilter/SearchFilter/index.js.map +1 -1
  789. package/lib-es/components/SearchFilter/SearchFilterContainer.js.map +1 -1
  790. package/lib-es/components/SearchFilter/components/Checkbox.js.map +1 -1
  791. package/lib-es/components/SearchFilter/components/Range.js.map +1 -1
  792. package/lib-es/components/SearchFilter/components/Select.js.map +1 -1
  793. package/lib-es/components/SearchFilter/components/TextSearch.js.map +1 -1
  794. package/lib-es/components/SearchFilter/components/index.js.map +1 -1
  795. package/lib-es/components/SearchFilter/constants.js.map +1 -1
  796. package/lib-es/components/SearchFilter/helpers/build-list-name-query.js.map +1 -1
  797. package/lib-es/components/SearchFilter/helpers/build-new-url.js.map +1 -1
  798. package/lib-es/components/SearchFilter/helpers/build-url-query.js.map +1 -1
  799. package/lib-es/components/SearchFilter/helpers/calculate-min-max.js.map +1 -1
  800. package/lib-es/components/SearchFilter/helpers/calculate-step.js.map +1 -1
  801. package/lib-es/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -1
  802. package/lib-es/components/SearchFilter/helpers/decode-encode.js.map +1 -1
  803. package/lib-es/components/SearchFilter/helpers/get-display-value.js.map +1 -1
  804. package/lib-es/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js.map +1 -1
  805. package/lib-es/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
  806. package/lib-es/components/SearchFilter/helpers/get-filter-values.js.map +1 -1
  807. package/lib-es/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -1
  808. package/lib-es/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -1
  809. package/lib-es/components/SearchFilter/helpers/get-range-value.js.map +1 -1
  810. package/lib-es/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
  811. package/lib-es/components/SearchFilter/helpers/get-select-options.js.map +1 -1
  812. package/lib-es/components/SearchFilter/helpers/get-updated-filter-by.js.map +1 -1
  813. package/lib-es/components/SearchFilter/helpers/index.js.map +1 -1
  814. package/lib-es/components/SearchFilter/helpers/is-device-desktop.js.map +1 -1
  815. package/lib-es/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
  816. package/lib-es/components/SearchFilter/index.js.map +1 -1
  817. package/lib-es/components/SearchFilter/searchFilterReducer.js.map +1 -1
  818. package/lib-es/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
  819. package/lib-es/components/SearchFilterSort/constants.js.map +1 -1
  820. package/lib-es/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
  821. package/lib-es/components/SearchFilterSort/helpers/index.js.map +1 -1
  822. package/lib-es/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
  823. package/lib-es/components/SearchFilterSort/index.js.map +1 -1
  824. package/lib-es/components/SocialFollow/SFItem.js.map +1 -1
  825. package/lib-es/components/SocialFollow/SocialFollow.js.map +1 -1
  826. package/lib-es/components/SocialFollow/SocialFollowRender.js.map +1 -1
  827. package/lib-es/components/SocialFollow/index.js.map +1 -1
  828. package/lib-es/components/SocialFollow/sf.config.js.map +1 -1
  829. package/lib-es/components/SubMenu/SubMenu.js.map +1 -1
  830. package/lib-es/components/SubMenu/index.js.map +1 -1
  831. package/lib-es/components/TextBlock/TextBlockRender.js.map +1 -1
  832. package/lib-es/components/TextBlock/index.js.map +1 -1
  833. package/lib-es/components/Video/Video.js +2 -1
  834. package/lib-es/components/Video/Video.js.map +1 -1
  835. package/lib-es/components/Video/VideoContext.js +6 -0
  836. package/lib-es/components/Video/VideoContext.js.map +1 -0
  837. package/lib-es/components/Video/VideoModal.js.map +1 -1
  838. package/lib-es/components/Video/VideoRender.js +28 -3
  839. package/lib-es/components/Video/VideoRender.js.map +1 -1
  840. package/lib-es/components/Video/constants.js +7 -0
  841. package/lib-es/components/Video/constants.js.map +1 -0
  842. package/lib-es/components/Video/helpers/emit-gtm-event.js +25 -0
  843. package/lib-es/components/Video/helpers/emit-gtm-event.js.map +1 -0
  844. package/lib-es/components/Video/index.js.map +1 -1
  845. package/lib-es/components/Video/providers/Default.js.map +1 -1
  846. package/lib-es/components/Video/providers/JWPlayer/JWPlayerController.js +28 -4
  847. package/lib-es/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
  848. package/lib-es/components/Video/providers/JWPlayer/JWPlayerProvider.js +10 -4
  849. package/lib-es/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
  850. package/lib-es/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
  851. package/lib-es/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js.map +1 -1
  852. package/lib-es/components/Video/providers/Vimeo/helpers/index.js.map +1 -1
  853. package/lib-es/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
  854. package/lib-es/components/Video/providers/YouTube/YoutubeEmbeded.js +60 -2
  855. package/lib-es/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
  856. package/lib-es/components/Video/providers/YouTube/helpers/index.js.map +1 -1
  857. package/lib-es/components/Video/providers/get-provider.js.map +1 -1
  858. package/lib-es/components/Video/providers/index.js.map +1 -1
  859. package/lib-es/components/Wrapper.js.map +1 -1
  860. package/lib-es/components/index.js.map +1 -1
  861. package/lib-es/constants/componentsDefaultValues.js.map +1 -1
  862. package/lib-es/constants/index.js.map +1 -1
  863. package/lib-es/helpers/append-images.js.map +1 -1
  864. package/lib-es/helpers/build-az-filter.js.map +1 -1
  865. package/lib-es/helpers/build-checkbox-filters.js.map +1 -1
  866. package/lib-es/helpers/build-filters-query.js.map +1 -1
  867. package/lib-es/helpers/build-image-properties.js.map +1 -1
  868. package/lib-es/helpers/build-inherited-filters.js.map +1 -1
  869. package/lib-es/helpers/build-link-extra-props.js.map +1 -1
  870. package/lib-es/helpers/build-props-query.js.map +1 -1
  871. package/lib-es/helpers/build-query-fields.js.map +1 -1
  872. package/lib-es/helpers/build-query-key.js.map +1 -1
  873. package/lib-es/helpers/build-raw-query-base.js.map +1 -1
  874. package/lib-es/helpers/build-raw-query-stringified.js.map +1 -1
  875. package/lib-es/helpers/build-raw-query.js.map +1 -1
  876. package/lib-es/helpers/build-search-values-checkbox-select.js.map +1 -1
  877. package/lib-es/helpers/build-search-values-text.js.map +1 -1
  878. package/lib-es/helpers/build-set-filters.js.map +1 -1
  879. package/lib-es/helpers/build-sort-values.js.map +1 -1
  880. package/lib-es/helpers/check-for-error.js.map +1 -1
  881. package/lib-es/helpers/check-props-to-use.js.map +1 -1
  882. package/lib-es/helpers/entities/constants.js.map +1 -1
  883. package/lib-es/helpers/filter-query-setup.js.map +1 -1
  884. package/lib-es/helpers/filters-setup.js.map +1 -1
  885. package/lib-es/helpers/get-banner-data.js.map +1 -1
  886. package/lib-es/helpers/get-checkbox-filters.js.map +1 -1
  887. package/lib-es/helpers/get-click-wrapper-options.js.map +1 -1
  888. package/lib-es/helpers/get-current-offset.js.map +1 -1
  889. package/lib-es/helpers/get-dictionary-match.js.map +1 -1
  890. package/lib-es/helpers/get-display-count-data.js.map +1 -1
  891. package/lib-es/helpers/get-elasticsearch-operator.js.map +1 -1
  892. package/lib-es/helpers/get-entities-with-banner.js.map +1 -1
  893. package/lib-es/helpers/get-entity-data.js.map +1 -1
  894. package/lib-es/helpers/get-entity-render-props.js.map +1 -1
  895. package/lib-es/helpers/get-extra-az-bits.js.map +1 -1
  896. package/lib-es/helpers/get-filter-props.js.map +1 -1
  897. package/lib-es/helpers/get-filter-relation-keys.js.map +1 -1
  898. package/lib-es/helpers/get-generic-props.js.map +1 -1
  899. package/lib-es/helpers/get-generic-render-variables.js.map +1 -1
  900. package/lib-es/helpers/get-image-ids.js.map +1 -1
  901. package/lib-es/helpers/get-inherited-filters.js.map +1 -1
  902. package/lib-es/helpers/get-items-to-display-ids.js.map +1 -1
  903. package/lib-es/helpers/get-modifiers.js.map +1 -1
  904. package/lib-es/helpers/get-not-equal-query.js.map +1 -1
  905. package/lib-es/helpers/get-pagination-index.js.map +1 -1
  906. package/lib-es/helpers/get-parsed-prop-values.js.map +1 -1
  907. package/lib-es/helpers/get-parsed-summary-value.js.map +1 -1
  908. package/lib-es/helpers/get-prop-values.js.map +1 -1
  909. package/lib-es/helpers/get-query-filters.js.map +1 -1
  910. package/lib-es/helpers/get-query-props.js.map +1 -1
  911. package/lib-es/helpers/get-required-schemas.js.map +1 -1
  912. package/lib-es/helpers/get-sanitized-prop-values.js.map +1 -1
  913. package/lib-es/helpers/get-search-filter-type.js.map +1 -1
  914. package/lib-es/helpers/get-sort-by-field-name.js.map +1 -1
  915. package/lib-es/helpers/get-unpublished-entity-name.js.map +1 -1
  916. package/lib-es/helpers/get-updated-filter-by.js.map +1 -1
  917. package/lib-es/helpers/get-updated-items-to-display.js.map +1 -1
  918. package/lib-es/helpers/get-updated-sort-properties.js.map +1 -1
  919. package/lib-es/helpers/get-wrapped-value-with-link.js.map +1 -1
  920. package/lib-es/helpers/group-entities.js.map +1 -1
  921. package/lib-es/helpers/has-children.js.map +1 -1
  922. package/lib-es/helpers/index.js.map +1 -1
  923. package/lib-es/helpers/inject-banner.js.map +1 -1
  924. package/lib-es/helpers/inject-banners-to-entities.js.map +1 -1
  925. package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.map +1 -1
  926. package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/index.js.map +1 -1
  927. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.map +1 -1
  928. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js.map +1 -1
  929. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js.map +1 -1
  930. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/index.js.map +1 -1
  931. package/lib-es/helpers/inject-multiple-banners/index.js.map +1 -1
  932. package/lib-es/helpers/inject-multiple-banners/inject-multiple-banners.js.map +1 -1
  933. package/lib-es/helpers/is-browser.js.map +1 -1
  934. package/lib-es/helpers/is-filter-entitys-id.js.map +1 -1
  935. package/lib-es/helpers/is-object.js.map +1 -1
  936. package/lib-es/helpers/is-using-relation-image.js.map +1 -1
  937. package/lib-es/helpers/parse-TextBlock.js.map +1 -1
  938. package/lib-es/helpers/parse-interval.js.map +1 -1
  939. package/lib-es/helpers/parse-props-to-display.js.map +1 -1
  940. package/lib-es/helpers/process-data-summary-value.js.map +1 -1
  941. package/lib-es/helpers/remove-extra-items.js.map +1 -1
  942. package/lib-es/helpers/remove-unwanted-characters.js.map +1 -1
  943. package/lib-es/helpers/render-children.js.map +1 -1
  944. package/lib-es/helpers/should-render-waypoint.js.map +1 -1
  945. package/lib-es/helpers/should-return.js.map +1 -1
  946. package/lib-es/helpers/should-show-property.js.map +1 -1
  947. package/lib-es/helpers/should-skip-single-query.js.map +1 -1
  948. package/lib-es/helpers/sort-response-data.js.map +1 -1
  949. package/lib-es/helpers/split-children.js.map +1 -1
  950. package/lib-es/helpers/update-childrens-parent.js.map +1 -1
  951. package/lib-es/hooks/helpers/RenderComponent.js.map +1 -1
  952. package/lib-es/hooks/helpers/StoreImages.js.map +1 -1
  953. package/lib-es/hooks/helpers/append-gtm-classname.js.map +1 -1
  954. package/lib-es/hooks/helpers/buildPBComponents.js.map +1 -1
  955. package/lib-es/hooks/helpers/check-banner-insertion-set.js.map +1 -1
  956. package/lib-es/hooks/helpers/check-collisions.js.map +1 -1
  957. package/lib-es/hooks/helpers/constants.js.map +1 -1
  958. package/lib-es/hooks/helpers/get-banner-index.js.map +1 -1
  959. package/lib-es/hooks/helpers/get-components-to-insert-by-type.js.map +1 -1
  960. package/lib-es/hooks/helpers/get-lightbox-images.js.map +1 -1
  961. package/lib-es/hooks/helpers/getComponent.js.map +1 -1
  962. package/lib-es/hooks/helpers/getVariant.js.map +1 -1
  963. package/lib-es/hooks/helpers/index.js.map +1 -1
  964. package/lib-es/hooks/helpers/inject-element-components.js.map +1 -1
  965. package/lib-es/hooks/helpers/inject-textblock-banners.js.map +1 -1
  966. package/lib-es/hooks/helpers/insert-banners.js.map +1 -1
  967. package/lib-es/hooks/helpers/update-targetings.js.map +1 -1
  968. package/lib-es/hooks/index.js.map +1 -1
  969. package/lib-es/hooks/use-app-sync-event-hook.js.map +1 -1
  970. package/lib-es/hooks/use-banner-insertion.js.map +1 -1
  971. package/lib-es/hooks/use-check-mobile-screen.js.map +1 -1
  972. package/lib-es/hooks/use-filter-aggregation-values.js.map +1 -1
  973. package/lib-es/hooks/use-get-entity-schema.js.map +1 -1
  974. package/lib-es/hooks/use-get-entity-schemas-as-obj.js.map +1 -1
  975. package/lib-es/hooks/use-get-image-id-from-relation.js.map +1 -1
  976. package/lib-es/hooks/use-get-images.js.map +1 -1
  977. package/lib-es/hooks/use-get-single-entity-schema.js.map +1 -1
  978. package/lib-es/hooks/use-page-builder.js.map +1 -1
  979. package/lib-es/hooks/use-portal.js.map +1 -1
  980. package/lib-es/index.js.map +1 -1
  981. package/lib-es/utils/component-map.js.map +1 -1
  982. package/lib-es/utils/get-class-modifiers.js.map +1 -1
  983. package/lib-es/utils/get-image-data.js.map +1 -1
  984. package/lib-es/utils/get-props-to-display-modifiers.js.map +1 -1
  985. package/lib-es/utils/index.js.map +1 -1
  986. package/lib-es/utils/is-object-empty.js.map +1 -1
  987. package/lib-es/utils/variant-handler.js.map +1 -1
  988. package/lib-es/variants/HeroImage/index.js.map +1 -1
  989. package/lib-es/variants/Infographic/Infographic.js.map +1 -1
  990. package/lib-es/variants/Infographic/index.js.map +1 -1
  991. package/lib-es/variants/Infographic/useInfographic.js.map +1 -1
  992. package/lib-es/variants/LongformGallery/LongformGallery.js.map +1 -1
  993. package/lib-es/variants/LongformGallery/LongformGalleryImage.js.map +1 -1
  994. package/lib-es/variants/LongformGallery/constants.js.map +1 -1
  995. package/lib-es/variants/LongformGallery/helpers/index.js.map +1 -1
  996. package/lib-es/variants/LongformGallery/helpers/parseImageData.js.map +1 -1
  997. package/lib-es/variants/LongformGallery/helpers/separateImages.js.map +1 -1
  998. package/lib-es/variants/LongformGallery/helpers/shouldSkip.js.map +1 -1
  999. package/lib-es/variants/LongformGallery/index.js.map +1 -1
  1000. package/lib-es/variants/LongformGallery/useLongformGallery.js.map +1 -1
  1001. package/lib-es/variants/LongformRow/index.js.map +1 -1
  1002. package/lib-es/variants/ParallaxImageTextRight/index.js.map +1 -1
  1003. package/lib-es/variants/SlideSummary/SlideSummary.js.map +1 -1
  1004. package/lib-es/variants/SlideSummary/index.js.map +1 -1
  1005. package/lib-es/variants/ThumbnailCarousel/ThumbnailCarousel.js.map +1 -1
  1006. package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/ThumbnailImage.js.map +1 -1
  1007. package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/index.js.map +1 -1
  1008. package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/useThumbnailImage.js.map +1 -1
  1009. package/lib-es/variants/ThumbnailCarousel/index.js.map +1 -1
  1010. package/lib-es/variants/ThumbnailCarousel/useThumbnailCarousel.js.map +1 -1
  1011. package/lib-es/variants/index.js.map +1 -1
  1012. package/package.json +2 -2
  1013. package/src/components/MenuItem/MenuEntitiesItem.js +2 -0
  1014. package/src/components/Video/Video.js +1 -1
  1015. package/src/components/Video/VideoContext.js +7 -0
  1016. package/src/components/Video/VideoRender.js +28 -3
  1017. package/src/components/Video/constants.js +6 -0
  1018. package/src/components/Video/helpers/emit-gtm-event.js +25 -0
  1019. package/src/components/Video/providers/JWPlayer/JWPlayerController.js +21 -4
  1020. package/src/components/Video/providers/JWPlayer/JWPlayerProvider.js +7 -5
  1021. package/src/components/Video/providers/YouTube/YoutubeEmbeded.js +65 -2
@@ -1 +1 @@
1
- {"version":3,"file":"CardsContainer.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_nextjsComponents","_HOC","_Banner","_Wrapper","_CarouselWrapper","_Card","_helpers","_helpers2","_utils","_helpers3","_excluded","_excluded2","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","ownKeys","keys","getOwnPropertySymbols","o","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","CardContainer","_ref","cardData","gridModifier","style","displayCategory","displayThumbnail","displayTitle","modifier","legacyEntity","entity","graphqlEntityMap","propsToDisplay","gtmChildren","cardChildren","name","designConfig","itemsPerRow","enableSmoothScroll","enableCarousel","bannerModifier","priorityLimit","enableAutoScroll","enableOverlay","autoScrollTimer","overlayModifier","titleOverlayModifier","VariantComponent","cardProps","_objectWithoutProperties2","_useContext","useContext","MainContext","itemId","banner","hasNewBannerSettings","checkNewBannerSettings","parsedCardsData","getEntitiesWithBanner","propsToDisplayModifiers","getPropsToDisplayModifiers","dynamicWrapperSizes","getDynamicGridClasses","InitialWrapper","CarouselWrapper","Wrapper","CardWrapper","bannerIndex","createElement","className","modifiers","numberOfCards","map","currentEntity","index","baseAdunit","id","entityProps","shouldRenderBanner","checkIfShouldRenderBanner","extraProps","parsePropsToDisplay","dynamicKey","join","priority","parsedCardProps","key","parsedPropsToDisplay","gtmId","bannerProps","type","Fragment","_extends2","__typename","renderCounter","propTypes","pageBuilderComponents","PropTypes","array","isRequired","object","string","oneOfType","arrayOf","node","bool","number","func","defaultProps","_default","exports","withTitle"],"sources":["../../../src/components/Card/CardsContainer.js"],"sourcesContent":["import React, { useContext } from 'react';\nimport PropTypes from 'prop-types';\nimport { MainContext } from '@blaze-cms/nextjs-components';\nimport { withTitle } from '../../HOC';\nimport Banner from '../Banner';\nimport Wrapper from '../Wrapper';\nimport CarouselWrapper from '../CarouselWrapper';\nimport Card from './Card';\nimport { getDynamicGridClasses } from './helpers';\nimport { getEntitiesWithBanner, parsePropsToDisplay } from '../../helpers';\nimport { getPropsToDisplayModifiers } from '../../utils';\nimport { checkIfShouldRenderBanner, checkNewBannerSettings } from '../List/components/helpers';\n\nconst CardContainer = ({\n cardData,\n gridModifier,\n style,\n displayCategory,\n displayThumbnail,\n displayTitle,\n modifier,\n entity: legacyEntity,\n graphqlEntityMap,\n propsToDisplay,\n gtmChildren,\n cardChildren,\n name,\n designConfig,\n itemsPerRow,\n enableSmoothScroll,\n enableCarousel,\n bannerModifier,\n priorityLimit,\n enableAutoScroll,\n enableOverlay,\n autoScrollTimer,\n overlayModifier,\n titleOverlayModifier,\n VariantComponent,\n ...cardProps\n}) => {\n const { itemId } = useContext(MainContext);\n const { banner } = cardProps;\n // TODO: remove this check and all associated code once old banner setup is no longer supported\n const hasNewBannerSettings = checkNewBannerSettings(banner);\n const parsedCardsData = getEntitiesWithBanner(cardData, cardProps, hasNewBannerSettings);\n const propsToDisplayModifiers = getPropsToDisplayModifiers(propsToDisplay);\n const dynamicWrapperSizes = enableCarousel\n ? ''\n : getDynamicGridClasses('grid', itemsPerRow, designConfig);\n const InitialWrapper = enableCarousel ? CarouselWrapper : Wrapper;\n const CardWrapper = VariantComponent || InitialWrapper;\n let bannerIndex = 0;\n\n return (\n <CardWrapper\n className={dynamicWrapperSizes}\n modifiers={gridModifier}\n itemsPerRow={itemsPerRow}\n bannerModifier={bannerModifier}\n enableAutoScroll={enableAutoScroll}\n enableSmoothScroll={enableSmoothScroll}\n autoScrollTimer={autoScrollTimer}\n numberOfCards={parsedCardsData.length}>\n {parsedCardsData.map((currentEntity, index) => {\n const { baseAdunit, id, ...entityProps } = currentEntity;\n const shouldRenderBanner = !!banner && checkIfShouldRenderBanner(index, banner);\n const extraProps = parsePropsToDisplay(entityProps, propsToDisplay);\n const dynamicKey = [itemId, index].join('-');\n const priority = !!enableSmoothScroll || (priorityLimit > 0 && index + 1 <= priorityLimit);\n if (hasNewBannerSettings && shouldRenderBanner) bannerIndex += 1;\n if (!hasNewBannerSettings && baseAdunit) bannerIndex += 1;\n const parsedCardProps = {\n key: id,\n id,\n enableCarousel,\n graphqlEntityMap,\n propsToDisplay,\n parsedPropsToDisplay: extraProps,\n propsToDisplayModifiers,\n modifier,\n style,\n cardChildren,\n gtmChildren,\n gtmId: name,\n gridModifier,\n entityProps,\n displayCategory,\n displayThumbnail,\n displayTitle,\n priority,\n enableOverlay,\n overlayModifier,\n titleOverlayModifier,\n ...entityProps\n };\n const bannerProps = { ...banner, type: 'banner' };\n\n if (hasNewBannerSettings)\n return (\n <>\n <Card key={id} {...parsedCardProps} />\n {shouldRenderBanner && (\n <Banner\n key={dynamicKey}\n entity={graphqlEntityMap[entityProps.__typename]}\n baseAdunit={baseAdunit}\n {...entityProps}\n {...bannerProps}\n modifier={modifier}\n renderCounter={bannerIndex}\n />\n )}\n </>\n );\n return baseAdunit ? (\n <Banner\n key={dynamicKey}\n entity={graphqlEntityMap[entityProps.__typename]}\n baseAdunit={baseAdunit}\n {...entityProps}\n {...bannerProps}\n modifier={modifier}\n renderCounter={bannerIndex}\n />\n ) : (\n <Card key={id} {...parsedCardProps} />\n );\n })}\n </CardWrapper>\n );\n};\n\nCardContainer.propTypes = {\n pageBuilderComponents: PropTypes.array,\n cardData: PropTypes.array.isRequired,\n graphqlEntityMap: PropTypes.object.isRequired,\n name: PropTypes.string,\n entity: PropTypes.string.isRequired,\n gridModifier: PropTypes.string,\n gtmChildren: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),\n cardChildren: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),\n propsToDisplay: PropTypes.array,\n displayCategory: PropTypes.bool,\n displayThumbnail: PropTypes.bool,\n displayTitle: PropTypes.bool,\n modifier: PropTypes.string,\n style: PropTypes.string,\n designConfig: PropTypes.object,\n itemsPerRow: PropTypes.number,\n enableSmoothScroll: PropTypes.bool,\n enableCarousel: PropTypes.bool,\n bannerModifier: PropTypes.string,\n priorityLimit: PropTypes.number,\n enableAutoScroll: PropTypes.bool,\n enableOverlay: PropTypes.bool,\n overlayModifier: PropTypes.string,\n titleOverlayModifier: PropTypes.string,\n autoScrollTimer: PropTypes.number,\n VariantComponent: PropTypes.func\n};\n\nCardContainer.defaultProps = {\n gtmChildren: [],\n cardChildren: [],\n pageBuilderComponents: [],\n name: '',\n gridModifier: '',\n propsToDisplay: [],\n displayCategory: true,\n displayThumbnail: true,\n displayTitle: true,\n modifier: '',\n style: 'portrait',\n designConfig: {},\n itemsPerRow: 1,\n enableSmoothScroll: false,\n enableCarousel: false,\n bannerModifier: '',\n priorityLimit: 0,\n enableAutoScroll: false,\n enableOverlay: false,\n autoScrollTimer: 0,\n overlayModifier: '',\n titleOverlayModifier: '',\n VariantComponent: null\n};\n\nexport default withTitle(CardContainer);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,IAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,QAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,gBAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,KAAA,GAAAN,sBAAA,CAAAF,OAAA;AACA,IAAAS,QAAA,GAAAT,OAAA;AACA,IAAAU,SAAA,GAAAV,OAAA;AACA,IAAAW,MAAA,GAAAX,OAAA;AACA,IAAAY,SA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EAClBC,eAAe,EAAE,EAAE;EACnBC,oBAAoB,EAAE,EAAE;EACxBC,gBAAgB,EAAE;AACpB,CAAC;AAAC,IAAA8D,QAAA,GAAAC,OAAA,cAEa,IAAAC,cAAS,EAAC3F,aAAa,CAAC"}
1
+ {"version":3,"file":"CardsContainer.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_nextjsComponents","_HOC","_Banner","_Wrapper","_CarouselWrapper","_Card","_helpers","_helpers2","_utils","_helpers3","_excluded","_excluded2","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","ownKeys","keys","getOwnPropertySymbols","o","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","CardContainer","_ref","cardData","gridModifier","style","displayCategory","displayThumbnail","displayTitle","modifier","legacyEntity","entity","graphqlEntityMap","propsToDisplay","gtmChildren","cardChildren","name","designConfig","itemsPerRow","enableSmoothScroll","enableCarousel","bannerModifier","priorityLimit","enableAutoScroll","enableOverlay","autoScrollTimer","overlayModifier","titleOverlayModifier","VariantComponent","cardProps","_objectWithoutProperties2","_useContext","useContext","MainContext","itemId","banner","hasNewBannerSettings","checkNewBannerSettings","parsedCardsData","getEntitiesWithBanner","propsToDisplayModifiers","getPropsToDisplayModifiers","dynamicWrapperSizes","getDynamicGridClasses","InitialWrapper","CarouselWrapper","Wrapper","CardWrapper","bannerIndex","createElement","className","modifiers","numberOfCards","map","currentEntity","index","baseAdunit","id","entityProps","shouldRenderBanner","checkIfShouldRenderBanner","extraProps","parsePropsToDisplay","dynamicKey","join","priority","parsedCardProps","key","parsedPropsToDisplay","gtmId","bannerProps","type","Fragment","_extends2","__typename","renderCounter","propTypes","pageBuilderComponents","PropTypes","array","isRequired","object","string","oneOfType","arrayOf","node","bool","number","func","defaultProps","_default","exports","withTitle"],"sources":["../../../src/components/Card/CardsContainer.js"],"sourcesContent":["import React, { useContext } from 'react';\nimport PropTypes from 'prop-types';\nimport { MainContext } from '@blaze-cms/nextjs-components';\nimport { withTitle } from '../../HOC';\nimport Banner from '../Banner';\nimport Wrapper from '../Wrapper';\nimport CarouselWrapper from '../CarouselWrapper';\nimport Card from './Card';\nimport { getDynamicGridClasses } from './helpers';\nimport { getEntitiesWithBanner, parsePropsToDisplay } from '../../helpers';\nimport { getPropsToDisplayModifiers } from '../../utils';\nimport { checkIfShouldRenderBanner, checkNewBannerSettings } from '../List/components/helpers';\n\nconst CardContainer = ({\n cardData,\n gridModifier,\n style,\n displayCategory,\n displayThumbnail,\n displayTitle,\n modifier,\n entity: legacyEntity,\n graphqlEntityMap,\n propsToDisplay,\n gtmChildren,\n cardChildren,\n name,\n designConfig,\n itemsPerRow,\n enableSmoothScroll,\n enableCarousel,\n bannerModifier,\n priorityLimit,\n enableAutoScroll,\n enableOverlay,\n autoScrollTimer,\n overlayModifier,\n titleOverlayModifier,\n VariantComponent,\n ...cardProps\n}) => {\n const { itemId } = useContext(MainContext);\n const { banner } = cardProps;\n // TODO: remove this check and all associated code once old banner setup is no longer supported\n const hasNewBannerSettings = checkNewBannerSettings(banner);\n const parsedCardsData = getEntitiesWithBanner(cardData, cardProps, hasNewBannerSettings);\n const propsToDisplayModifiers = getPropsToDisplayModifiers(propsToDisplay);\n const dynamicWrapperSizes = enableCarousel\n ? ''\n : getDynamicGridClasses('grid', itemsPerRow, designConfig);\n const InitialWrapper = enableCarousel ? CarouselWrapper : Wrapper;\n const CardWrapper = VariantComponent || InitialWrapper;\n let bannerIndex = 0;\n\n return (\n <CardWrapper\n className={dynamicWrapperSizes}\n modifiers={gridModifier}\n itemsPerRow={itemsPerRow}\n bannerModifier={bannerModifier}\n enableAutoScroll={enableAutoScroll}\n enableSmoothScroll={enableSmoothScroll}\n autoScrollTimer={autoScrollTimer}\n numberOfCards={parsedCardsData.length}>\n {parsedCardsData.map((currentEntity, index) => {\n const { baseAdunit, id, ...entityProps } = currentEntity;\n const shouldRenderBanner = !!banner && checkIfShouldRenderBanner(index, banner);\n const extraProps = parsePropsToDisplay(entityProps, propsToDisplay);\n const dynamicKey = [itemId, index].join('-');\n const priority = !!enableSmoothScroll || (priorityLimit > 0 && index + 1 <= priorityLimit);\n if (hasNewBannerSettings && shouldRenderBanner) bannerIndex += 1;\n if (!hasNewBannerSettings && baseAdunit) bannerIndex += 1;\n const parsedCardProps = {\n key: id,\n id,\n enableCarousel,\n graphqlEntityMap,\n propsToDisplay,\n parsedPropsToDisplay: extraProps,\n propsToDisplayModifiers,\n modifier,\n style,\n cardChildren,\n gtmChildren,\n gtmId: name,\n gridModifier,\n entityProps,\n displayCategory,\n displayThumbnail,\n displayTitle,\n priority,\n enableOverlay,\n overlayModifier,\n titleOverlayModifier,\n ...entityProps\n };\n const bannerProps = { ...banner, type: 'banner' };\n\n if (hasNewBannerSettings)\n return (\n <>\n <Card key={id} {...parsedCardProps} />\n {shouldRenderBanner && (\n <Banner\n key={dynamicKey}\n entity={graphqlEntityMap[entityProps.__typename]}\n baseAdunit={baseAdunit}\n {...entityProps}\n {...bannerProps}\n modifier={modifier}\n renderCounter={bannerIndex}\n />\n )}\n </>\n );\n return baseAdunit ? (\n <Banner\n key={dynamicKey}\n entity={graphqlEntityMap[entityProps.__typename]}\n baseAdunit={baseAdunit}\n {...entityProps}\n {...bannerProps}\n modifier={modifier}\n renderCounter={bannerIndex}\n />\n ) : (\n <Card key={id} {...parsedCardProps} />\n );\n })}\n </CardWrapper>\n );\n};\n\nCardContainer.propTypes = {\n pageBuilderComponents: PropTypes.array,\n cardData: PropTypes.array.isRequired,\n graphqlEntityMap: PropTypes.object.isRequired,\n name: PropTypes.string,\n entity: PropTypes.string.isRequired,\n gridModifier: PropTypes.string,\n gtmChildren: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),\n cardChildren: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),\n propsToDisplay: PropTypes.array,\n displayCategory: PropTypes.bool,\n displayThumbnail: PropTypes.bool,\n displayTitle: PropTypes.bool,\n modifier: PropTypes.string,\n style: PropTypes.string,\n designConfig: PropTypes.object,\n itemsPerRow: PropTypes.number,\n enableSmoothScroll: PropTypes.bool,\n enableCarousel: PropTypes.bool,\n bannerModifier: PropTypes.string,\n priorityLimit: PropTypes.number,\n enableAutoScroll: PropTypes.bool,\n enableOverlay: PropTypes.bool,\n overlayModifier: PropTypes.string,\n titleOverlayModifier: PropTypes.string,\n autoScrollTimer: PropTypes.number,\n VariantComponent: PropTypes.func\n};\n\nCardContainer.defaultProps = {\n gtmChildren: [],\n cardChildren: [],\n pageBuilderComponents: [],\n name: '',\n gridModifier: '',\n propsToDisplay: [],\n displayCategory: true,\n displayThumbnail: true,\n displayTitle: true,\n modifier: '',\n style: 'portrait',\n designConfig: {},\n itemsPerRow: 1,\n enableSmoothScroll: false,\n enableCarousel: false,\n bannerModifier: '',\n priorityLimit: 0,\n enableAutoScroll: false,\n enableOverlay: false,\n autoScrollTimer: 0,\n overlayModifier: '',\n titleOverlayModifier: '',\n VariantComponent: null\n};\n\nexport default withTitle(CardContainer);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,IAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,QAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,gBAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,KAAA,GAAAN,sBAAA,CAAAF,OAAA;AACA,IAAAS,QAAA,GAAAT,OAAA;AACA,IAAAU,SAAA,GAAAV,OAAA;AACA,IAAAW,MAAA,GAAAX,OAAA;AACA,IAAAY,SAAA,GAAAZ,O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EAAE,EAAE;EACnBC,oBAAoB,EAAE,EAAE;EACxBC,gBAAgB,EAAE;AACpB,CAAC;AAAC,IAAA8D,QAAA,GAAAC,OAAA,cAEa,IAAAC,cAAS,EAAC3F,aAAa,CAAC","ignoreList":[]}
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports["default"] = void 0;
9
+ require("core-js/modules/es.array.concat.js");
9
10
  require("core-js/modules/es.regexp.exec.js");
10
11
  require("core-js/modules/es.string.replace.js");
11
- require("core-js/modules/es.array.concat.js");
12
12
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
13
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
14
14
  var _react = _interopRequireDefault(require("react"));
@@ -1 +1 @@
1
- {"version":3,"file":"CardsFactory.js","names":["_react","_interopRequireDefault","require","_client","_propTypes","_router","_queryString","_query","_CardsRender","_helpers","_constants","_helpers2","_excluded","_excluded2","CardsFactory","_ref","entity","entities","propsToDisplay","itemsToDisplay","itemListName","VariantComponent","cardProps","_objectWithoutProperties2","entityTouse","length","router","useRouter","asPath","parsedQuery","replace","_parseUrl","parseUrl","_parseUrl$query","query","_parseUrl$query2","queryItemListId","itemListId","_useQuery","useQuery","getSingleEntitySchema","variables","id","data","error","loading","getItemListId","_useQuery2","getItemList","skip","_useQuery2$data","itemListData","itemListLoading","itemListError","message","propsToDisplayValues","checkPropsToUse","extraProps","buildPropsQuery","_getGenericProps","getGenericProps","gridModifier","cardRenderProps","extraModifierForBanner","banner","WITH_BANNER","itemListIds","getItemListIds","itemsToDisplayToUse","createElement","_extends2","concat","bannerModifier","entityFields","propTypes","PropTypes","string","array","func","defaultProps","_default","exports"],"sources":["../../../src/components/Card/CardsFactory.js"],"sourcesContent":["import React from 'react';\nimport { useQuery } from '@apollo/client';\nimport PropTypes from 'prop-types';\nimport { useRouter } from 'next/router';\nimport { parseUrl } from 'query-string';\nimport { getSingleEntitySchema, getItemList } from '../../application/query';\nimport CardsRender from './CardsRender';\nimport { buildPropsQuery, getGenericProps, checkPropsToUse } from '../../helpers';\nimport { WITH_BANNER } from '../../constants';\nimport { getItemListId, getItemListIds } from '../ItemList/helpers';\n\nconst CardsFactory = ({\n entity,\n entities,\n propsToDisplay,\n itemsToDisplay,\n itemListName,\n VariantComponent,\n ...cardProps\n}) => {\n const entityTouse = entities && entities.length ? entities[0] : entity;\n const router = useRouter();\n const { asPath } = router;\n const parsedQuery = asPath.replace(/%5D/g, ']').replace(/%5B/g, '[');\n\n const { query: { itemListId: queryItemListId } = {} } = parseUrl(parsedQuery);\n\n const { data, error, loading } = useQuery(getSingleEntitySchema, {\n variables: { id: entityTouse }\n });\n\n const itemListId = getItemListId(itemListName, queryItemListId);\n\n const { data: itemListData = {}, loading: itemListLoading, error: itemListError } = useQuery(\n getItemList,\n {\n variables: { id: itemListId },\n skip: !itemListId\n }\n );\n\n if (loading || itemListLoading) return '';\n if (error || itemListError) return error.message || itemListError.message;\n if (!data) return null;\n\n const propsToDisplayValues = checkPropsToUse(propsToDisplay);\n const extraProps = buildPropsQuery(data, propsToDisplayValues, cardProps) || '';\n const { gridModifier, ...cardRenderProps } = getGenericProps(cardProps);\n const extraModifierForBanner = cardRenderProps.banner ? WITH_BANNER : '';\n\n const itemListIds = getItemListIds(itemListData);\n const itemsToDisplayToUse = itemListIds || itemsToDisplay;\n\n if (itemListName && !itemListIds) return null;\n\n return (\n <CardsRender\n gridModifier={`${gridModifier}${extraModifierForBanner}`}\n bannerModifier={extraModifierForBanner}\n itemsToDisplay={itemsToDisplayToUse}\n propsToDisplay={propsToDisplay}\n entityFields={extraProps}\n VariantComponent={VariantComponent}\n {...cardRenderProps}\n entity={entityTouse}\n entities={entities}\n />\n );\n};\n\nCardsFactory.propTypes = {\n entity: PropTypes.string,\n propsToDisplay: PropTypes.array,\n itemsToDisplay: PropTypes.array,\n itemListName: PropTypes.string,\n entities: PropTypes.array,\n VariantComponent: PropTypes.func\n};\n\nCardsFactory.defaultProps = {\n propsToDisplay: [],\n itemsToDisplay: [],\n itemListName: '',\n entity: null,\n entities: null,\n VariantComponent: null\n};\n\nexport default CardsFactory;\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,QAAA,GAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAR,OAAA;AACA,IAAAS,SAAA,GAAAT,OAAA;AAAoE,IAAAU,SAAA;EAAAC,UAAA;AAEpE,IAAMC,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAQZ;EAAA,IAPJC,MAAM,GAAAD,IAAA,CAANC,MAAM;IACNC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IACRC,cAAc,GAAAH,IAAA,CAAdG,cAAc;IACdC,cAAc,GAAAJ,IAAA,CAAdI,cAAc;IACdC,YAAY,GAAAL,IAAA,CAAZK,YAAY;IACZC,gBAAgB,GAAAN,IAAA,CAAhBM,gBAAgB;IACbC,SAAS,OAAAC,yBAAA,aAAAR,IAAA,EAAAH,SAAA;EAEZ,IAAMY,WAAW,GAAGP,QAAQ,IAAIA,QAAQ,CAACQ,MAAM,GAAGR,QAAQ,CAAC,CAAC,CAAC,GAAGD,MAAM;EACtE,IAAMU,MAAM,GAAG,IAAAC,iBAAS,EAAC,CAAC;EAC1B,IAAQC,MAAM,GAAKF,MAAM,CAAjBE,MAAM;EACd,IAAMC,WAAW,GAAGD,MAAM,CAACE,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAACA,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;EAE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,IAAI;EACdI,gBAAgB,EAAE;AACpB,CAAC;AAAC,IAAA2D,QAAA,GAAAC,OAAA,cAEanE,YAAY"}
1
+ {"version":3,"file":"CardsFactory.js","names":["_react","_interopRequireDefault","require","_client","_propTypes","_router","_queryString","_query","_CardsRender","_helpers","_constants","_helpers2","_excluded","_excluded2","CardsFactory","_ref","entity","entities","propsToDisplay","itemsToDisplay","itemListName","VariantComponent","cardProps","_objectWithoutProperties2","entityTouse","length","router","useRouter","asPath","parsedQuery","replace","_parseUrl","parseUrl","_parseUrl$query","query","_parseUrl$query2","queryItemListId","itemListId","_useQuery","useQuery","getSingleEntitySchema","variables","id","data","error","loading","getItemListId","_useQuery2","getItemList","skip","_useQuery2$data","itemListData","itemListLoading","itemListError","message","propsToDisplayValues","checkPropsToUse","extraProps","buildPropsQuery","_getGenericProps","getGenericProps","gridModifier","cardRenderProps","extraModifierForBanner","banner","WITH_BANNER","itemListIds","getItemListIds","itemsToDisplayToUse","createElement","_extends2","concat","bannerModifier","entityFields","propTypes","PropTypes","string","array","func","defaultProps","_default","exports"],"sources":["../../../src/components/Card/CardsFactory.js"],"sourcesContent":["import React from 'react';\nimport { useQuery } from '@apollo/client';\nimport PropTypes from 'prop-types';\nimport { useRouter } from 'next/router';\nimport { parseUrl } from 'query-string';\nimport { getSingleEntitySchema, getItemList } from '../../application/query';\nimport CardsRender from './CardsRender';\nimport { buildPropsQuery, getGenericProps, checkPropsToUse } from '../../helpers';\nimport { WITH_BANNER } from '../../constants';\nimport { getItemListId, getItemListIds } from '../ItemList/helpers';\n\nconst CardsFactory = ({\n entity,\n entities,\n propsToDisplay,\n itemsToDisplay,\n itemListName,\n VariantComponent,\n ...cardProps\n}) => {\n const entityTouse = entities && entities.length ? entities[0] : entity;\n const router = useRouter();\n const { asPath } = router;\n const parsedQuery = asPath.replace(/%5D/g, ']').replace(/%5B/g, '[');\n\n const { query: { itemListId: queryItemListId } = {} } = parseUrl(parsedQuery);\n\n const { data, error, loading } = useQuery(getSingleEntitySchema, {\n variables: { id: entityTouse }\n });\n\n const itemListId = getItemListId(itemListName, queryItemListId);\n\n const { data: itemListData = {}, loading: itemListLoading, error: itemListError } = useQuery(\n getItemList,\n {\n variables: { id: itemListId },\n skip: !itemListId\n }\n );\n\n if (loading || itemListLoading) return '';\n if (error || itemListError) return error.message || itemListError.message;\n if (!data) return null;\n\n const propsToDisplayValues = checkPropsToUse(propsToDisplay);\n const extraProps = buildPropsQuery(data, propsToDisplayValues, cardProps) || '';\n const { gridModifier, ...cardRenderProps } = getGenericProps(cardProps);\n const extraModifierForBanner = cardRenderProps.banner ? WITH_BANNER : '';\n\n const itemListIds = getItemListIds(itemListData);\n const itemsToDisplayToUse = itemListIds || itemsToDisplay;\n\n if (itemListName && !itemListIds) return null;\n\n return (\n <CardsRender\n gridModifier={`${gridModifier}${extraModifierForBanner}`}\n bannerModifier={extraModifierForBanner}\n itemsToDisplay={itemsToDisplayToUse}\n propsToDisplay={propsToDisplay}\n entityFields={extraProps}\n VariantComponent={VariantComponent}\n {...cardRenderProps}\n entity={entityTouse}\n entities={entities}\n />\n );\n};\n\nCardsFactory.propTypes = {\n entity: PropTypes.string,\n propsToDisplay: PropTypes.array,\n itemsToDisplay: PropTypes.array,\n itemListName: PropTypes.string,\n entities: PropTypes.array,\n VariantComponent: PropTypes.func\n};\n\nCardsFactory.defaultProps = {\n propsToDisplay: [],\n itemsToDisplay: [],\n itemListName: '',\n entity: null,\n entities: null,\n VariantComponent: null\n};\n\nexport default CardsFactory;\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAA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AC7D,YAAA,WAAW,MAAA8D,SAAA;IACVT,YAAY,KAAAU,MAAA,CAAKV,YAAY,EAAAU,MAAA,CAAGR,sBAAsB,CAAG;IACzDS,cAAc,EAAET,sBAAuB;IACvC5C,cAAc,EAAEiD,mBAAoB;IACpClD,cAAc,EAAEA,cAAe;IAC/BuD,YAAY,EAAEhB,UAAW;IACzBpC,gBAAgB,EAAEA;EAAiB,GAC/ByC,eAAe;IACnB9C,MAAM,EAAEQ,WAAY;IACpBP,QAAQ,EAAEA;EAAS,EACpB,CAAC;AAEN,CAAC;AAEDH,YAAY,CAAC4D,SAAS,GAAG;EACvB1D,MAAM,EAAE2D,qBAAS,CAACC,MAAM;EACxB1D,cAAc,EAAEyD,qBAAS,CAACE,KAAK;EAC/B1D,cAAc,EAAEwD,qBAAS,CAACE,KAAK;EAC/BzD,YAAY,EAAEuD,qBAAS,CAACC,MAAM;EAC9B3D,QAAQ,EAAE0D,qBAAS,CAACE,KAAK;EACzBxD,gBAAgB,EAAEsD,qBAAS,CAACG;AAC9B,CAAC;AAEDhE,YAAY,CAACiE,YAAY,GAAG;EAC1B7D,cAAc,EAAE,EAAE;EAClBC,cAAc,EAAE,EAAE;EAClBC,YAAY,EAAE,EAAE;EAChBJ,MAAM,EAAE,IAAI;EACZC,QAAQ,EAAE,IAAI;EACdI,gBAAgB,EAAE;AACpB,CAAC;AAAC,IAAA2D,QAAA,GAAAC,OAAA,cAEanE,YAAY","ignoreList":[]}
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
 
3
- require("core-js/modules/es.object.keys.js");
4
3
  require("core-js/modules/es.symbol.js");
5
4
  require("core-js/modules/es.array.for-each.js");
6
- require("core-js/modules/web.dom-collections.for-each.js");
7
- require("core-js/modules/es.object.get-own-property-descriptors.js");
8
5
  require("core-js/modules/es.object.define-properties.js");
6
+ require("core-js/modules/es.object.get-own-property-descriptors.js");
7
+ require("core-js/modules/es.object.keys.js");
8
+ require("core-js/modules/web.dom-collections.for-each.js");
9
9
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
10
10
  Object.defineProperty(exports, "__esModule", {
11
11
  value: true
@@ -17,22 +17,22 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
17
17
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
18
18
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
19
19
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
20
- require("core-js/modules/es.object.to-string.js");
21
- require("core-js/modules/es.promise.js");
22
- require("core-js/modules/es.array.sort.js");
23
20
  require("core-js/modules/es.array.concat.js");
21
+ require("core-js/modules/es.array.filter.js");
24
22
  require("core-js/modules/es.array.iterator.js");
25
- require("core-js/modules/es.set.js");
26
- require("core-js/modules/es.string.iterator.js");
27
- require("core-js/modules/web.dom-collections.iterator.js");
28
23
  require("core-js/modules/es.array.map.js");
29
24
  require("core-js/modules/es.array.reduce.js");
30
- require("core-js/modules/es.object.values.js");
31
- require("core-js/modules/es.array.filter.js");
25
+ require("core-js/modules/es.array.sort.js");
32
26
  require("core-js/modules/es.function.name.js");
33
- require("core-js/modules/es.weak-map.js");
34
27
  require("core-js/modules/es.object.define-property.js");
35
28
  require("core-js/modules/es.object.get-own-property-descriptor.js");
29
+ require("core-js/modules/es.object.to-string.js");
30
+ require("core-js/modules/es.object.values.js");
31
+ require("core-js/modules/es.promise.js");
32
+ require("core-js/modules/es.set.js");
33
+ require("core-js/modules/es.string.iterator.js");
34
+ require("core-js/modules/es.weak-map.js");
35
+ require("core-js/modules/web.dom-collections.iterator.js");
36
36
  var _react = _interopRequireWildcard(require("react"));
37
37
  var _client = require("@apollo/client");
38
38
  var _dynamic = _interopRequireDefault(require("next/dynamic"));
@@ -1 +1 @@
1
- {"version":3,"file":"CardsRender.js","names":["_react","_interopRequireWildcard","require","_client","_dynamic","_interopRequireDefault","_propTypes","_nextjsComponents","_query","_constants","_hooks","_helpers","_helpers2","_excluded","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","_getRequireWildcardCache","WeakMap","__esModule","_typeof2","has","get","n","__proto__","a","u","prototype","hasOwnProperty","call","i","set","CardsContainer","dynamic","Promise","resolve","then","CardsRender","_ref","legacyEntity","entity","entities","entityFields","itemsToDisplay","children","VariantComponent","otherProps","_objectWithoutProperties2","_useContext","useContext","MainContext","isPreview","_otherProps$parent","parent","parentId","itemId","parentEntity","itemEntity","_otherProps$filterBy","filterBy","_otherProps$filterByP","filterByProperty","sortby","sort","_otherProps$sortPrope","sortProperties","_otherProps$operator","operator","filterOperator","AND","useRandomSort","_getUpdatedSortProper","getUpdatedSortProperties","_getUpdatedSortProper2","_slicedToArray2","updatedSortProperties","sortbyFilters","variableProps","entitiesToUse","primaryEntityToUse","unpublishedParentEntityName","getUnpublishedEntityName","allEntityNames","concat","_toConsumableArray2","uniqueEntityNames","Set","_useGetEntitySchemasA","useGetEntitySchemasAsObj","_useGetEntitySchemasA2","data","mainSchemas","_loading","loading","_error","error","parentSchema","filterEntitySchema","entitiesTypes","map","ent","getEntityData","graphqlEntityMap","reduce","acc","entityType","docTypes","_ref2","type","docType","entityTypes","_ref3","eType","style","_filtersSetup","filtersSetup","currentSchema","itemEntityUpdated","isFull","FULL","getAction","queryProps","inheritedFilters","entitySameAsCurrentItemEntity","action","filterEntityRelations","_useQuery","useQuery","generateSingleItemQuery","variables","id","skip","shouldSkipSingleQuery","_useQuery$data","_useQuery$data2","_useQuery$data2$entit","entityData","parentEntityData","_err","_load","_useGetEntitySchemasA3","getRequiredSchemas","_useGetEntitySchemasA4","requiredSchema","schemaLoading","schemaError","updatedFilterBy","getUpdatedFilterBy","updatedItemsToDisplay","getUpdatedItemsToDisplay","_filterQuerySetup","filterQuerySetup","getEntitySchemas","values","limit","hasNoFiltersOrItemsToDisplay","_useQuery2","fetchPolicy","shouldReturn","_useQuery2$data","cardData","cardsError","imageIds","_ref4","imageId","Boolean","_useGetImages","useGetImages","imagesData","imagesLoading","isLoading","hasError","message","_ref5","SEARCH_PUBLISHED_CONTENT","cardDataResults","results","removeExtraItems","orderedData","sortResponseData","_splitChildren","splitChildren","name","regularChildren","gtmChildren","updatedCards","appendImages","createElement","Fragment","renderChildren","_extends2","cardChildren","propTypes","PropTypes","oneOfType","arrayOf","node","string","isRequired","array","func","defaultProps","_default","exports"],"sources":["../../../src/components/Card/CardsRender.js"],"sourcesContent":["import React, { useContext } from 'react';\nimport { useQuery } from '@apollo/client';\nimport dynamic from 'next/dynamic';\nimport PropTypes from 'prop-types';\nimport { MainContext } from '@blaze-cms/nextjs-components';\nimport { generateSingleItemQuery } from '../../application/query';\nimport { SEARCH_PUBLISHED_CONTENT, AND, FULL } from '../../constants';\nimport { useGetEntitySchemasAsObj, useGetImages } from '../../hooks';\nimport {\n getUpdatedFilterBy,\n getEntityData,\n getRequiredSchemas,\n sortResponseData,\n getUnpublishedEntityName,\n renderChildren,\n splitChildren,\n removeExtraItems,\n appendImages\n} from '../../helpers';\nimport {\n filtersSetup,\n filterQuerySetup,\n shouldSkipSingleQuery,\n shouldReturn,\n getUpdatedSortProperties,\n getUpdatedItemsToDisplay\n} from './helpers';\n\nconst CardsContainer = dynamic(() => import('./CardsContainer'));\n\nconst CardsRender = ({\n entity: legacyEntity,\n entities,\n entityFields,\n itemsToDisplay,\n children,\n VariantComponent,\n ...otherProps\n}) => {\n const { isPreview } = useContext(MainContext);\n const {\n parent: { itemId: parentId, itemEntity: parentEntity },\n filterBy = [],\n filterByProperty = [],\n sortby,\n sort,\n sortProperties = [],\n operator: filterOperator = AND,\n useRandomSort\n } = otherProps;\n const [updatedSortProperties, sortbyFilters] = getUpdatedSortProperties(\n sort,\n sortby,\n sortProperties\n );\n\n const variableProps = {\n ...otherProps,\n sortProperties: updatedSortProperties,\n sort: null,\n sortby: null\n };\n\n const entitiesToUse = entities || [legacyEntity];\n const primaryEntityToUse = entitiesToUse[0];\n const unpublishedParentEntityName = getUnpublishedEntityName(parentEntity);\n const allEntityNames = [...entitiesToUse, unpublishedParentEntityName];\n const uniqueEntityNames = [...new Set(allEntityNames)];\n const { data: mainSchemas = {}, loading: _loading, error: _error } = useGetEntitySchemasAsObj(\n uniqueEntityNames\n );\n const parentSchema = mainSchemas[unpublishedParentEntityName] || {};\n const filterEntitySchema = mainSchemas[primaryEntityToUse] || {};\n const entitiesTypes = entitiesToUse.map(ent => getEntityData(ent, mainSchemas[ent]));\n const graphqlEntityMap = entitiesTypes.reduce(\n (acc, entityType) => ({ ...acc, [entityType.entityType]: entityType.entity }),\n {}\n );\n const docTypes = entitiesTypes.map(({ docType: type }) => type);\n const entityTypes = entitiesTypes.map(({ entityType: eType }) => eType);\n\n const { style } = otherProps;\n\n const {\n getAction,\n queryProps,\n inheritedFilters,\n entitySameAsCurrentItemEntity,\n action,\n filterEntityRelations\n } = filtersSetup({\n entityFields,\n entityTypes,\n filterBy,\n filterByProperty,\n entities: entitiesToUse,\n currentSchema: parentSchema,\n filterEntitySchema,\n isPreview,\n itemEntityUpdated: unpublishedParentEntityName,\n isFull: style === FULL\n });\n\n const {\n data: { entityData: parentEntityData = {} } = {},\n error: _err,\n loading: _load\n } = useQuery(generateSingleItemQuery(getAction, queryProps), {\n variables: { id: parentId },\n skip: shouldSkipSingleQuery(_loading, getAction, queryProps)\n });\n\n const {\n data: requiredSchema = {},\n loading: schemaLoading,\n error: schemaError\n } = useGetEntitySchemasAsObj(\n getRequiredSchemas([...filterByProperty, ...sortbyFilters], filterEntitySchema),\n _loading\n );\n\n const updatedFilterBy = getUpdatedFilterBy(\n inheritedFilters,\n parentEntityData,\n parentSchema,\n filterEntitySchema,\n parentId,\n variableProps\n );\n\n const updatedItemsToDisplay = getUpdatedItemsToDisplay({\n itemsToDisplay,\n inheritedFilters,\n parentSchema,\n parentEntityData\n });\n\n const { limit, variables } = filterQuerySetup({\n getEntitySchemas: Object.values(requiredSchema),\n entity: primaryEntityToUse,\n updatedFilterBy,\n variableProps,\n docType: docTypes,\n filterOperator,\n filterEntityRelations,\n itemsToDisplay: updatedItemsToDisplay,\n entitySameAsCurrentItemEntity,\n useRandomSort\n });\n\n const hasNoFiltersOrItemsToDisplay = !updatedItemsToDisplay.length && !updatedFilterBy;\n\n const { data: cardData = {}, error: cardsError } = useQuery(action, {\n variables,\n fetchPolicy: useRandomSort ? 'cache-and-network' : 'cache-first',\n skip: shouldReturn(\n hasNoFiltersOrItemsToDisplay,\n _loading,\n _load,\n schemaLoading,\n _error,\n _err,\n schemaError\n )\n });\n\n const imageIds = updatedItemsToDisplay.map(({ imageId }) => imageId).filter(Boolean);\n const { data: imagesData, loading: imagesLoading } = useGetImages(imageIds, true);\n const isLoading = shouldReturn(_loading, _load, schemaLoading, imagesLoading);\n const hasError = shouldReturn(_error, _err, schemaError);\n\n if (hasNoFiltersOrItemsToDisplay) return null;\n if (isLoading) return null;\n if (hasError) return null;\n if (cardsError) return cardsError.message;\n let { results: cardDataResults } = cardData[SEARCH_PUBLISHED_CONTENT] || {};\n\n if (!cardDataResults || !cardDataResults.length) return null;\n\n cardDataResults = entitySameAsCurrentItemEntity\n ? removeExtraItems(cardDataResults, limit, parentId)\n : cardDataResults;\n if (!cardDataResults.length) return null;\n\n const orderedData =\n useRandomSort || updatedSortProperties.length\n ? cardDataResults\n : sortResponseData(cardDataResults, updatedItemsToDisplay);\n const { regularChildren, gtmChildren } = splitChildren(\n children,\n cardDataResults,\n graphqlEntityMap,\n {\n name: variableProps.name\n }\n );\n const updatedCards = appendImages(imagesData, orderedData, updatedItemsToDisplay);\n\n return (\n <>\n {gtmChildren && renderChildren(gtmChildren)}\n <CardsContainer\n cardData={updatedCards}\n entity={primaryEntityToUse}\n gtmChildren={gtmChildren}\n cardChildren={regularChildren}\n graphqlEntityMap={graphqlEntityMap}\n VariantComponent={VariantComponent}\n {...variableProps}\n />\n </>\n );\n};\n\nCardsRender.propTypes = {\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),\n entity: PropTypes.string.isRequired,\n entityFields: PropTypes.string.isRequired,\n itemsToDisplay: PropTypes.array,\n entities: PropTypes.array,\n VariantComponent: PropTypes.func\n};\n\nCardsRender.defaultProps = {\n children: [],\n itemsToDisplay: [],\n entities: [],\n VariantComponent: null\n};\n\nexport default CardsRender;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,UAAA,GAAAD,sBAAA,CAAAH,OAAA;AACA,IAAAK,iBAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AACA,IAAAQ,MAAA,GAAAR,OAAA;AACA,IAAAS,QAAA,GAAAT,OAAA;AAWA,IAAAU,SAAA,GAAAV,OAAA;AAOmB,IAAAW,SAAA;AAAA,SAAAC,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,MAAA,WAAAN,CAAA,WAAAE,MAAA,CAAAK,wBAAA,CAAAR,CAAA,EAAAC,CAAA,EAAAQ,UAAA,OAAAP,CAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,CAAA,EAAAI,CAAA,YAAAJ,CAAA;AAAA,SAAAU,cAAAZ,CAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAY,SAAA,CAAAC,MAAA,EAAAb,CAAA,UAAAC,CAAA,WAAAW,SAAA,CAAAZ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,CAAC;AAEDnK,WAAW,CAACoK,YAAY,GAAG;EACzB7J,QAAQ,EAAE,EAAE;EACZD,cAAc,EAAE,EAAE;EAClBF,QAAQ,EAAE,EAAE;EACZI,gBAAgB,EAAE;AACpB,CAAC;AAAC,IAAA6J,QAAA,GAAAC,OAAA,cAEatK,WAAW"}
1
+ {"version":3,"file":"CardsRender.js","names":["_react","_interopRequireWildcard","require","_client","_dynamic","_interopRequireDefault","_propTypes","_nextjsComponents","_query","_constants","_hooks","_helpers","_helpers2","_excluded","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","_getRequireWildcardCache","WeakMap","__esModule","_typeof2","has","get","n","__proto__","a","u","prototype","hasOwnProperty","call","i","set","CardsContainer","dynamic","Promise","resolve","then","CardsRender","_ref","legacyEntity","entity","entities","entityFields","itemsToDisplay","children","VariantComponent","otherProps","_objectWithoutProperties2","_useContext","useContext","MainContext","isPreview","_otherProps$parent","parent","parentId","itemId","parentEntity","itemEntity","_otherProps$filterBy","filterBy","_otherProps$filterByP","filterByProperty","sortby","sort","_otherProps$sortPrope","sortProperties","_otherProps$operator","operator","filterOperator","AND","useRandomSort","_getUpdatedSortProper","getUpdatedSortProperties","_getUpdatedSortProper2","_slicedToArray2","updatedSortProperties","sortbyFilters","variableProps","entitiesToUse","primaryEntityToUse","unpublishedParentEntityName","getUnpublishedEntityName","allEntityNames","concat","_toConsumableArray2","uniqueEntityNames","Set","_useGetEntitySchemasA","useGetEntitySchemasAsObj","_useGetEntitySchemasA2","data","mainSchemas","_loading","loading","_error","error","parentSchema","filterEntitySchema","entitiesTypes","map","ent","getEntityData","graphqlEntityMap","reduce","acc","entityType","docTypes","_ref2","type","docType","entityTypes","_ref3","eType","style","_filtersSetup","filtersSetup","currentSchema","itemEntityUpdated","isFull","FULL","getAction","queryProps","inheritedFilters","entitySameAsCurrentItemEntity","action","filterEntityRelations","_useQuery","useQuery","generateSingleItemQuery","variables","id","skip","shouldSkipSingleQuery","_useQuery$data","_useQuery$data2","_useQuery$data2$entit","entityData","parentEntityData","_err","_load","_useGetEntitySchemasA3","getRequiredSchemas","_useGetEntitySchemasA4","requiredSchema","schemaLoading","schemaError","updatedFilterBy","getUpdatedFilterBy","updatedItemsToDisplay","getUpdatedItemsToDisplay","_filterQuerySetup","filterQuerySetup","getEntitySchemas","values","limit","hasNoFiltersOrItemsToDisplay","_useQuery2","fetchPolicy","shouldReturn","_useQuery2$data","cardData","cardsError","imageIds","_ref4","imageId","Boolean","_useGetImages","useGetImages","imagesData","imagesLoading","isLoading","hasError","message","_ref5","SEARCH_PUBLISHED_CONTENT","cardDataResults","results","removeExtraItems","orderedData","sortResponseData","_splitChildren","splitChildren","name","regularChildren","gtmChildren","updatedCards","appendImages","createElement","Fragment","renderChildren","_extends2","cardChildren","propTypes","PropTypes","oneOfType","arrayOf","node","string","isRequired","array","func","defaultProps","_default","exports"],"sources":["../../../src/components/Card/CardsRender.js"],"sourcesContent":["import React, { useContext } from 'react';\nimport { useQuery } from '@apollo/client';\nimport dynamic from 'next/dynamic';\nimport PropTypes from 'prop-types';\nimport { MainContext } from '@blaze-cms/nextjs-components';\nimport { generateSingleItemQuery } from '../../application/query';\nimport { SEARCH_PUBLISHED_CONTENT, AND, FULL } from '../../constants';\nimport { useGetEntitySchemasAsObj, useGetImages } from '../../hooks';\nimport {\n getUpdatedFilterBy,\n getEntityData,\n getRequiredSchemas,\n sortResponseData,\n getUnpublishedEntityName,\n renderChildren,\n splitChildren,\n removeExtraItems,\n appendImages\n} from '../../helpers';\nimport {\n filtersSetup,\n filterQuerySetup,\n shouldSkipSingleQuery,\n shouldReturn,\n getUpdatedSortProperties,\n getUpdatedItemsToDisplay\n} from './helpers';\n\nconst CardsContainer = dynamic(() => import('./CardsContainer'));\n\nconst CardsRender = ({\n entity: legacyEntity,\n entities,\n entityFields,\n itemsToDisplay,\n children,\n VariantComponent,\n ...otherProps\n}) => {\n const { isPreview } = useContext(MainContext);\n const {\n parent: { itemId: parentId, itemEntity: parentEntity },\n filterBy = [],\n filterByProperty = [],\n sortby,\n sort,\n sortProperties = [],\n operator: filterOperator = AND,\n useRandomSort\n } = otherProps;\n const [updatedSortProperties, sortbyFilters] = getUpdatedSortProperties(\n sort,\n sortby,\n sortProperties\n );\n\n const variableProps = {\n ...otherProps,\n sortProperties: updatedSortProperties,\n sort: null,\n sortby: null\n };\n\n const entitiesToUse = entities || [legacyEntity];\n const primaryEntityToUse = entitiesToUse[0];\n const unpublishedParentEntityName = getUnpublishedEntityName(parentEntity);\n const allEntityNames = [...entitiesToUse, unpublishedParentEntityName];\n const uniqueEntityNames = [...new Set(allEntityNames)];\n const { data: mainSchemas = {}, loading: _loading, error: _error } = useGetEntitySchemasAsObj(\n uniqueEntityNames\n );\n const parentSchema = mainSchemas[unpublishedParentEntityName] || {};\n const filterEntitySchema = mainSchemas[primaryEntityToUse] || {};\n const entitiesTypes = entitiesToUse.map(ent => getEntityData(ent, mainSchemas[ent]));\n const graphqlEntityMap = entitiesTypes.reduce(\n (acc, entityType) => ({ ...acc, [entityType.entityType]: entityType.entity }),\n {}\n );\n const docTypes = entitiesTypes.map(({ docType: type }) => type);\n const entityTypes = entitiesTypes.map(({ entityType: eType }) => eType);\n\n const { style } = otherProps;\n\n const {\n getAction,\n queryProps,\n inheritedFilters,\n entitySameAsCurrentItemEntity,\n action,\n filterEntityRelations\n } = filtersSetup({\n entityFields,\n entityTypes,\n filterBy,\n filterByProperty,\n entities: entitiesToUse,\n currentSchema: parentSchema,\n filterEntitySchema,\n isPreview,\n itemEntityUpdated: unpublishedParentEntityName,\n isFull: style === FULL\n });\n\n const {\n data: { entityData: parentEntityData = {} } = {},\n error: _err,\n loading: _load\n } = useQuery(generateSingleItemQuery(getAction, queryProps), {\n variables: { id: parentId },\n skip: shouldSkipSingleQuery(_loading, getAction, queryProps)\n });\n\n const {\n data: requiredSchema = {},\n loading: schemaLoading,\n error: schemaError\n } = useGetEntitySchemasAsObj(\n getRequiredSchemas([...filterByProperty, ...sortbyFilters], filterEntitySchema),\n _loading\n );\n\n const updatedFilterBy = getUpdatedFilterBy(\n inheritedFilters,\n parentEntityData,\n parentSchema,\n filterEntitySchema,\n parentId,\n variableProps\n );\n\n const updatedItemsToDisplay = getUpdatedItemsToDisplay({\n itemsToDisplay,\n inheritedFilters,\n parentSchema,\n parentEntityData\n });\n\n const { limit, variables } = filterQuerySetup({\n getEntitySchemas: Object.values(requiredSchema),\n entity: primaryEntityToUse,\n updatedFilterBy,\n variableProps,\n docType: docTypes,\n filterOperator,\n filterEntityRelations,\n itemsToDisplay: updatedItemsToDisplay,\n entitySameAsCurrentItemEntity,\n useRandomSort\n });\n\n const hasNoFiltersOrItemsToDisplay = !updatedItemsToDisplay.length && !updatedFilterBy;\n\n const { data: cardData = {}, error: cardsError } = useQuery(action, {\n variables,\n fetchPolicy: useRandomSort ? 'cache-and-network' : 'cache-first',\n skip: shouldReturn(\n hasNoFiltersOrItemsToDisplay,\n _loading,\n _load,\n schemaLoading,\n _error,\n _err,\n schemaError\n )\n });\n\n const imageIds = updatedItemsToDisplay.map(({ imageId }) => imageId).filter(Boolean);\n const { data: imagesData, loading: imagesLoading } = useGetImages(imageIds, true);\n const isLoading = shouldReturn(_loading, _load, schemaLoading, imagesLoading);\n const hasError = shouldReturn(_error, _err, schemaError);\n\n if (hasNoFiltersOrItemsToDisplay) return null;\n if (isLoading) return null;\n if (hasError) return null;\n if (cardsError) return cardsError.message;\n let { results: cardDataResults } = cardData[SEARCH_PUBLISHED_CONTENT] || {};\n\n if (!cardDataResults || !cardDataResults.length) return null;\n\n cardDataResults = entitySameAsCurrentItemEntity\n ? removeExtraItems(cardDataResults, limit, parentId)\n : cardDataResults;\n if (!cardDataResults.length) return null;\n\n const orderedData =\n useRandomSort || updatedSortProperties.length\n ? cardDataResults\n : sortResponseData(cardDataResults, updatedItemsToDisplay);\n const { regularChildren, gtmChildren } = splitChildren(\n children,\n cardDataResults,\n graphqlEntityMap,\n {\n name: variableProps.name\n }\n );\n const updatedCards = appendImages(imagesData, orderedData, updatedItemsToDisplay);\n\n return (\n <>\n {gtmChildren && renderChildren(gtmChildren)}\n <CardsContainer\n cardData={updatedCards}\n entity={primaryEntityToUse}\n gtmChildren={gtmChildren}\n cardChildren={regularChildren}\n graphqlEntityMap={graphqlEntityMap}\n VariantComponent={VariantComponent}\n {...variableProps}\n />\n </>\n );\n};\n\nCardsRender.propTypes = {\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),\n entity: PropTypes.string.isRequired,\n entityFields: PropTypes.string.isRequired,\n itemsToDisplay: PropTypes.array,\n entities: PropTypes.array,\n VariantComponent: PropTypes.func\n};\n\nCardsRender.defaultProps = {\n children: [],\n itemsToDisplay: [],\n entities: [],\n VariantComponent: null\n};\n\nexport default CardsRender;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,UAAA,GAAAD,sBAAA,CAAAH,OAAA;AACA,IAAAK,iBAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AACA,IAAAQ,MAAA,GAAAR,OAAA;AACA,IAAAS,QAAA,GAAAT,OAAA;AAWA,IAAAU,SAAA,GAAAV,OAAA;AAOmB,IAAAW,SAAA;AAAA,SAAAC,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,M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AAI,CAAC,EAAEH,qBAAS,CAACG,IAAI,CAAC,CAAC;EAClF5J,MAAM,EAAEyJ,qBAAS,CAACI,MAAM,CAACC,UAAU;EACnC5J,YAAY,EAAEuJ,qBAAS,CAACI,MAAM,CAACC,UAAU;EACzC3J,cAAc,EAAEsJ,qBAAS,CAACM,KAAK;EAC/B9J,QAAQ,EAAEwJ,qBAAS,CAACM,KAAK;EACzB1J,gBAAgB,EAAEoJ,qBAAS,CAACO;AAC9B,CAAC;AAEDnK,WAAW,CAACoK,YAAY,GAAG;EACzB7J,QAAQ,EAAE,EAAE;EACZD,cAAc,EAAE,EAAE;EAClBF,QAAQ,EAAE,EAAE;EACZI,gBAAgB,EAAE;AACpB,CAAC;AAAC,IAAA6J,QAAA,GAAAC,OAAA,cAEatK,WAAW","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","names":["CARD_STRING","exports","CARD_CHILDREN_WITH_LINKS"],"sources":["../../../src/components/Card/constants.js"],"sourcesContent":["const CARD_STRING = 'card';\nconst CARD_CHILDREN_WITH_LINKS = ['a', 'img', 'button', 'svg', 'i', 'path'];\n\nexport { CARD_STRING, CARD_CHILDREN_WITH_LINKS };\n"],"mappings":";;;;;;;AAAA,IAAMA,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG,MAAM;AAC1B,IAAME,wBAAwB,GAAAD,OAAA,CAAAC,wBAAA,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,CAAC"}
1
+ {"version":3,"file":"constants.js","names":["CARD_STRING","exports","CARD_CHILDREN_WITH_LINKS"],"sources":["../../../src/components/Card/constants.js"],"sourcesContent":["const CARD_STRING = 'card';\nconst CARD_CHILDREN_WITH_LINKS = ['a', 'img', 'button', 'svg', 'i', 'path'];\n\nexport { CARD_STRING, CARD_CHILDREN_WITH_LINKS };\n"],"mappings":";;;;;;;AAAA,IAAMA,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG,MAAM;AAC1B,IAAME,wBAAwB,GAAAD,OAAA,CAAAC,wBAAA,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,CAAC","ignoreList":[]}
@@ -8,11 +8,11 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports["default"] = void 0;
9
9
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
10
10
  require("core-js/modules/es.array.concat.js");
11
- require("core-js/modules/es.object.keys.js");
12
11
  require("core-js/modules/es.array.filter.js");
13
- require("core-js/modules/es.object.to-string.js");
14
- require("core-js/modules/es.array.map.js");
15
12
  require("core-js/modules/es.array.join.js");
13
+ require("core-js/modules/es.array.map.js");
14
+ require("core-js/modules/es.object.keys.js");
15
+ require("core-js/modules/es.object.to-string.js");
16
16
  var _constants = require("../../../constants");
17
17
  var getDynamicGridClasses = function getDynamicGridClasses(grid, defaulItemsPerRow) {
18
18
  var breakpoints = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
@@ -1 +1 @@
1
- {"version":3,"file":"get-dynamic-grid-classes.js","names":["_constants","require","getDynamicGridClasses","grid","defaulItemsPerRow","breakpoints","arguments","length","undefined","_breakpoints$global","global","_breakpoints$global2","breakpointConfig","defaultGrid","concat","Object","keys","wrapperBreakpoints","map","size","itemsPerRow","sizeString","BREAKPOINT_SIZES","filter","Boolean","_toConsumableArray2","join","_default","exports"],"sources":["../../../../src/components/Card/helpers/get-dynamic-grid-classes.js"],"sourcesContent":["import { BREAKPOINT_SIZES } from '../../../constants';\n\nconst getDynamicGridClasses = (grid, defaulItemsPerRow, breakpoints = {}) => {\n const { global: { breakpointConfig } = {} } = breakpoints;\n const defaultGrid = defaulItemsPerRow ? `${grid} grid-cols-${defaulItemsPerRow}` : grid;\n if (!breakpointConfig || !Object.keys(breakpointConfig).length) return defaultGrid;\n\n const wrapperBreakpoints = Object.keys(breakpointConfig)\n .map(size => {\n const { itemsPerRow } = breakpointConfig[size];\n if (!itemsPerRow) return '';\n const sizeString = BREAKPOINT_SIZES[size];\n return `${sizeString}:grid-cols-${itemsPerRow}`;\n })\n .filter(Boolean);\n return [defaultGrid, ...wrapperBreakpoints].join(' ');\n};\n\nexport default getDynamicGridClasses;\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,qBAAqB,GAAG,SAAxBA,qBAAqBA,CAAIC,IAAI,EAAEC,iBAAiB,EAAuB;EAAA,IAArBC,WAAW,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EACtE,IAAAG,mBAAA,GAA8CJ,WAAW,CAAjDK,MAAM;IAAAC,oBAAA,GAAAF,mBAAA,cAAyB,CAAC,CAAC,GAAAA,mBAAA;IAAvBG,gBAAgB,GAAAD,oBAAA,CAAhBC,gBAAgB;EAClC,IAAMC,WAAW,GAAGT,iBAAiB,MAAAU,MAAA,CAAMX,IAAI,iBAAAW,MAAA,CAAcV,iBAAiB,IAAKD,IAAI;EACvF,IAAI,CAACS,gBAAgB,IAAI,CAACG,MAAM,CAACC,IAAI,CAACJ,gBAAgB,CAAC,CAACL,MAAM,EAAE,OAAOM,WAAW;EAElF,IAAMI,kBAAkB,GAAGF,MAAM,CAACC,IAAI,CAACJ,gBAAgB,CAAC,CACrDM,GAAG,CAAC,UAAAC,IAAI,EAAI;IACX,IAAQC,WAAW,GAAKR,gBAAgB,CAACO,IAAI,CAAC,CAAtCC,WAAW;IACnB,IAAI,CAACA,WAAW,EAAE,OAAO,EAAE;IAC3B,IAAMC,UAAU,GAAGC,2BAAgB,CAACH,IAAI,CAAC;IACzC,UAAAL,MAAA,CAAUO,UAAU,iBAAAP,MAAA,CAAcM,WAAW;EAC/C,CAAC,CAAC,CACDG,MAAM,CAACC,OAAO,CAAC;EAClB,OAAO,CAACX,WAAW,EAAAC,MAAA,KAAAW,mBAAA,aAAKR,kBAAkB,GAAES,IAAI,CAAC,GAAG,CAAC;AACvD,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEa1B,qBAAqB"}
1
+ {"version":3,"file":"get-dynamic-grid-classes.js","names":["_constants","require","getDynamicGridClasses","grid","defaulItemsPerRow","breakpoints","arguments","length","undefined","_breakpoints$global","global","_breakpoints$global2","breakpointConfig","defaultGrid","concat","Object","keys","wrapperBreakpoints","map","size","itemsPerRow","sizeString","BREAKPOINT_SIZES","filter","Boolean","_toConsumableArray2","join","_default","exports"],"sources":["../../../../src/components/Card/helpers/get-dynamic-grid-classes.js"],"sourcesContent":["import { BREAKPOINT_SIZES } from '../../../constants';\n\nconst getDynamicGridClasses = (grid, defaulItemsPerRow, breakpoints = {}) => {\n const { global: { breakpointConfig } = {} } = breakpoints;\n const defaultGrid = defaulItemsPerRow ? `${grid} grid-cols-${defaulItemsPerRow}` : grid;\n if (!breakpointConfig || !Object.keys(breakpointConfig).length) return defaultGrid;\n\n const wrapperBreakpoints = Object.keys(breakpointConfig)\n .map(size => {\n const { itemsPerRow } = breakpointConfig[size];\n if (!itemsPerRow) return '';\n const sizeString = BREAKPOINT_SIZES[size];\n return `${sizeString}:grid-cols-${itemsPerRow}`;\n })\n .filter(Boolean);\n return [defaultGrid, ...wrapperBreakpoints].join(' ');\n};\n\nexport default getDynamicGridClasses;\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,qBAAqB,GAAG,SAAxBA,qBAAqBA,CAAIC,IAAI,EAAEC,iBAAiB,EAAuB;EAAA,IAArBC,WAAW,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EACtE,IAAAG,mBAAA,GAA8CJ,WAAW,CAAjDK,MAAM;IAAAC,oBAAA,GAAAF,mBAAA,cAAyB,CAAC,CAAC,GAAAA,mBAAA;IAAvBG,gBAAgB,GAAAD,oBAAA,CAAhBC,gBAAgB;EAClC,IAAMC,WAAW,GAAGT,iBAAiB,MAAAU,MAAA,CAAMX,IAAI,iBAAAW,MAAA,CAAcV,iBAAiB,IAAKD,IAAI;EACvF,IAAI,CAACS,gBAAgB,IAAI,CAACG,MAAM,CAACC,IAAI,CAACJ,gBAAgB,CAAC,CAACL,MAAM,EAAE,OAAOM,WAAW;EAElF,IAAMI,kBAAkB,GAAGF,MAAM,CAACC,IAAI,CAACJ,gBAAgB,CAAC,CACrDM,GAAG,CAAC,UAAAC,IAAI,EAAI;IACX,IAAQC,WAAW,GAAKR,gBAAgB,CAACO,IAAI,CAAC,CAAtCC,WAAW;IACnB,IAAI,CAACA,WAAW,EAAE,OAAO,EAAE;IAC3B,IAAMC,UAAU,GAAGC,2BAAgB,CAACH,IAAI,CAAC;IACzC,UAAAL,MAAA,CAAUO,UAAU,iBAAAP,MAAA,CAAcM,WAAW;EAC/C,CAAC,CAAC,CACDG,MAAM,CAACC,OAAO,CAAC;EAClB,OAAO,CAACX,WAAW,EAAAC,MAAA,KAAAW,mBAAA,aAAKR,kBAAkB,GAAES,IAAI,CAAC,GAAG,CAAC;AACvD,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEa1B,qBAAqB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"get-published-listing-url.js","names":["getPublishedListingUrl","category","publishedListingPage","url","_default","exports"],"sources":["../../../../src/components/Card/helpers/get-published-listing-url.js"],"sourcesContent":["const getPublishedListingUrl = category =>\n category && category.publishedListingPage && category.publishedListingPage.url;\n\nexport default getPublishedListingUrl;\n"],"mappings":";;;;;;;AAAA,IAAMA,sBAAsB,GAAG,SAAzBA,sBAAsBA,CAAGC,QAAQ;EAAA,OACrCA,QAAQ,IAAIA,QAAQ,CAACC,oBAAoB,IAAID,QAAQ,CAACC,oBAAoB,CAACC,GAAG;AAAA;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAElEL,sBAAsB"}
1
+ {"version":3,"file":"get-published-listing-url.js","names":["getPublishedListingUrl","category","publishedListingPage","url","_default","exports"],"sources":["../../../../src/components/Card/helpers/get-published-listing-url.js"],"sourcesContent":["const getPublishedListingUrl = category =>\n category && category.publishedListingPage && category.publishedListingPage.url;\n\nexport default getPublishedListingUrl;\n"],"mappings":";;;;;;;AAAA,IAAMA,sBAAsB,GAAG,SAAzBA,sBAAsBA,CAAGC,QAAQ;EAAA,OACrCA,QAAQ,IAAIA,QAAQ,CAACC,oBAAoB,IAAID,QAAQ,CAACC,oBAAoB,CAACC,GAAG;AAAA;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAElEL,sBAAsB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_getPublishedListingUrl","_interopRequireDefault","require","_useDynamicSizeKey","_getDynamicGridClasses","_filtersSetup","_filterQuerySetup","_shouldReturn","_shouldSkipSingleQuery","_getUpdatedSortProperties","_getUpdatedItemsToDisplay"],"sources":["../../../../src/components/Card/helpers/index.js"],"sourcesContent":["export { default as getPublishedListingUrl } from './get-published-listing-url';\nexport { default as useDynamicSizeKey } from './use-dynamic-size-key';\nexport { default as getDynamicGridClasses } from './get-dynamic-grid-classes';\nexport { default as filtersSetup } from '../../../helpers/filters-setup';\nexport { default as filterQuerySetup } from '../../../helpers/filter-query-setup';\nexport { default as shouldReturn } from '../../../helpers/should-return';\nexport { default as shouldSkipSingleQuery } from '../../../helpers/should-skip-single-query';\nexport { default as getUpdatedSortProperties } from '../../../helpers/get-updated-sort-properties';\nexport { default as getUpdatedItemsToDisplay } from '../../../helpers/get-updated-items-to-display';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,uBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,sBAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,aAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,iBAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,aAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,sBAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,yBAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,yBAAA,GAAAT,sBAAA,CAAAC,OAAA"}
1
+ {"version":3,"file":"index.js","names":["_getPublishedListingUrl","_interopRequireDefault","require","_useDynamicSizeKey","_getDynamicGridClasses","_filtersSetup","_filterQuerySetup","_shouldReturn","_shouldSkipSingleQuery","_getUpdatedSortProperties","_getUpdatedItemsToDisplay"],"sources":["../../../../src/components/Card/helpers/index.js"],"sourcesContent":["export { default as getPublishedListingUrl } from './get-published-listing-url';\nexport { default as useDynamicSizeKey } from './use-dynamic-size-key';\nexport { default as getDynamicGridClasses } from './get-dynamic-grid-classes';\nexport { default as filtersSetup } from '../../../helpers/filters-setup';\nexport { default as filterQuerySetup } from '../../../helpers/filter-query-setup';\nexport { default as shouldReturn } from '../../../helpers/should-return';\nexport { default as shouldSkipSingleQuery } from '../../../helpers/should-skip-single-query';\nexport { default as getUpdatedSortProperties } from '../../../helpers/get-updated-sort-properties';\nexport { default as getUpdatedItemsToDisplay } from '../../../helpers/get-updated-items-to-display';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,uBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,sBAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,aAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,iBAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,aAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,sBAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,yBAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,yBAAA,GAAAT,sBAAA,CAAAC,OAAA","ignoreList":[]}
@@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports["default"] = void 0;
8
- require("core-js/modules/es.object.values.js");
9
- require("core-js/modules/es.array.join.js");
8
+ require("core-js/modules/es.array.concat.js");
10
9
  require("core-js/modules/es.array.filter.js");
10
+ require("core-js/modules/es.array.join.js");
11
11
  require("core-js/modules/es.object.to-string.js");
12
- require("core-js/modules/es.array.concat.js");
12
+ require("core-js/modules/es.object.values.js");
13
13
  var useDynamicSizeKey = function useDynamicSizeKey(key, options) {
14
14
  var valuesToParse = Object.values(options);
15
15
  return [key].concat(valuesToParse).filter(Boolean).join(':');
@@ -1 +1 @@
1
- {"version":3,"file":"use-dynamic-size-key.js","names":["useDynamicSizeKey","key","options","valuesToParse","Object","values","concat","filter","Boolean","join","_default","exports"],"sources":["../../../../src/components/Card/helpers/use-dynamic-size-key.js"],"sourcesContent":["const useDynamicSizeKey = (key, options) => {\n const valuesToParse = Object.values(options);\n return [key, ...valuesToParse].filter(Boolean).join(':');\n};\n\nexport default useDynamicSizeKey;\n"],"mappings":";;;;;;;;;;;;AAAA,IAAMA,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAIC,GAAG,EAAEC,OAAO,EAAK;EAC1C,IAAMC,aAAa,GAAGC,MAAM,CAACC,MAAM,CAACH,OAAO,CAAC;EAC5C,OAAO,CAACD,GAAG,EAAAK,MAAA,CAAKH,aAAa,EAAEI,MAAM,CAACC,OAAO,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC;AAC1D,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEaX,iBAAiB"}
1
+ {"version":3,"file":"use-dynamic-size-key.js","names":["useDynamicSizeKey","key","options","valuesToParse","Object","values","concat","filter","Boolean","join","_default","exports"],"sources":["../../../../src/components/Card/helpers/use-dynamic-size-key.js"],"sourcesContent":["const useDynamicSizeKey = (key, options) => {\n const valuesToParse = Object.values(options);\n return [key, ...valuesToParse].filter(Boolean).join(':');\n};\n\nexport default useDynamicSizeKey;\n"],"mappings":";;;;;;;;;;;;AAAA,IAAMA,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAIC,GAAG,EAAEC,OAAO,EAAK;EAC1C,IAAMC,aAAa,GAAGC,MAAM,CAACC,MAAM,CAACH,OAAO,CAAC;EAC5C,OAAO,CAACD,GAAG,EAAAK,MAAA,CAAKH,aAAa,EAAEI,MAAM,CAACC,OAAO,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC;AAC1D,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEaX,iBAAiB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_CardsFactory","_interopRequireDefault","require","_default","exports","CardsFactory"],"sources":["../../../src/components/Card/index.js"],"sourcesContent":["import CardsFactory from './CardsFactory';\n\nexport default CardsFactory;\n"],"mappings":";;;;;;;;AAAA,IAAAA,aAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA0C,IAAAC,QAAA,GAAAC,OAAA,cAE3BC,wBAAY"}
1
+ {"version":3,"file":"index.js","names":["_CardsFactory","_interopRequireDefault","require","_default","exports","CardsFactory"],"sources":["../../../src/components/Card/index.js"],"sourcesContent":["import CardsFactory from './CardsFactory';\n\nexport default CardsFactory;\n"],"mappings":";;;;;;;;AAAA,IAAAA,aAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA0C,IAAAC,QAAA,GAAAC,OAAA,cAE3BC,wBAAY","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"Carousel.js","names":["_react","_interopRequireDefault","require","_propTypes","_CarouselImage","_CarouselRender","_useCarouselNavigation","_helpers","_excluded","Carousel","props","caption","imageIds","isCaptionDisplayed","VariantComponent","otherProps","_objectWithoutProperties2","navigationProps","useCarouselNavigation","length","shouldDisplayCaption","_getDisplayCountData","getDisplayCountData","showCount","shouldDisplayCount","countMessage","ComponentToRender","CarouselRender","createElement","_extends2","CarouselImage","propTypes","PropTypes","string","array","bool","func","defaultProps","_default","exports"],"sources":["../../../src/components/Carousel/Carousel.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport CarouselImage from './CarouselImage';\nimport CarouselRender from './CarouselRender';\nimport { useCarouselNavigation } from './hooks/useCarouselNavigation';\nimport { getDisplayCountData } from '../../helpers';\n\nconst Carousel = props => {\n const { caption, imageIds, isCaptionDisplayed, VariantComponent, ...otherProps } = props;\n\n const navigationProps = useCarouselNavigation(props);\n\n if (!imageIds || !imageIds.length) return null;\n const shouldDisplayCaption = isCaptionDisplayed && caption;\n\n const { shouldDisplayCount, countMessage } = getDisplayCountData(\n navigationProps.showCount,\n imageIds\n );\n\n const ComponentToRender = VariantComponent || CarouselRender;\n\n return (\n <ComponentToRender\n caption={caption}\n imageIds={imageIds}\n CarouselImage={CarouselImage}\n shouldDisplayCaption={shouldDisplayCaption}\n shouldDisplayCount={shouldDisplayCount}\n countMessage={countMessage}\n {...navigationProps}\n {...otherProps}\n />\n );\n};\n\nCarousel.propTypes = {\n caption: PropTypes.string,\n imageIds: PropTypes.array,\n isCaptionDisplayed: PropTypes.bool,\n VariantComponent: PropTypes.func\n};\n\nCarousel.defaultProps = {\n VariantComponent: null,\n caption: '',\n imageIds: [],\n isCaptionDisplayed: false\n};\n\nexport default Carousel;\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,cAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,eAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,sBAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AAAoD,IAAAM,SAAA;AAEpD,IAAMC,QAAQ,GAAG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;EACtBvB,gBAAgB,EAAE,IAAI;EACtBH,OAAO,EAAE,EAAE;EACXC,QAAQ,EAAE,EAAE;EACZC,kBAAkB,EAAE;AACtB,CAAC;AAAC,IAAAyB,QAAA,GAAAC,OAAA,cAEa9B,QAAQ"}
1
+ {"version":3,"file":"Carousel.js","names":["_react","_interopRequireDefault","require","_propTypes","_CarouselImage","_CarouselRender","_useCarouselNavigation","_helpers","_excluded","Carousel","props","caption","imageIds","isCaptionDisplayed","VariantComponent","otherProps","_objectWithoutProperties2","navigationProps","useCarouselNavigation","length","shouldDisplayCaption","_getDisplayCountData","getDisplayCountData","showCount","shouldDisplayCount","countMessage","ComponentToRender","CarouselRender","createElement","_extends2","CarouselImage","propTypes","PropTypes","string","array","bool","func","defaultProps","_default","exports"],"sources":["../../../src/components/Carousel/Carousel.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport CarouselImage from './CarouselImage';\nimport CarouselRender from './CarouselRender';\nimport { useCarouselNavigation } from './hooks/useCarouselNavigation';\nimport { getDisplayCountData } from '../../helpers';\n\nconst Carousel = props => {\n const { caption, imageIds, isCaptionDisplayed, VariantComponent, ...otherProps } = props;\n\n const navigationProps = useCarouselNavigation(props);\n\n if (!imageIds || !imageIds.length) return null;\n const shouldDisplayCaption = isCaptionDisplayed && caption;\n\n const { shouldDisplayCount, countMessage } = getDisplayCountData(\n navigationProps.showCount,\n imageIds\n );\n\n const ComponentToRender = VariantComponent || CarouselRender;\n\n return (\n <ComponentToRender\n caption={caption}\n imageIds={imageIds}\n CarouselImage={CarouselImage}\n shouldDisplayCaption={shouldDisplayCaption}\n shouldDisplayCount={shouldDisplayCount}\n countMessage={countMessage}\n {...navigationProps}\n {...otherProps}\n />\n );\n};\n\nCarousel.propTypes = {\n caption: PropTypes.string,\n imageIds: PropTypes.array,\n isCaptionDisplayed: PropTypes.bool,\n VariantComponent: PropTypes.func\n};\n\nCarousel.defaultProps = {\n VariantComponent: null,\n caption: '',\n imageIds: [],\n is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CI,kBAAkB,EAAEA,kBAAmB;IACvCC,YAAY,EAAEA;EAAa,GACvBR,eAAe,EACfF,UAAU,CACf,CAAC;AAEN,CAAC;AAEDN,QAAQ,CAACsB,SAAS,GAAG;EACnBpB,OAAO,EAAEqB,qBAAS,CAACC,MAAM;EACzBrB,QAAQ,EAAEoB,qBAAS,CAACE,KAAK;EACzBrB,kBAAkB,EAAEmB,qBAAS,CAACG,IAAI;EAClCrB,gBAAgB,EAAEkB,qBAAS,CAACI;AAC9B,CAAC;AAED3B,QAAQ,CAAC4B,YAAY,GAAG;EACtBvB,gBAAgB,EAAE,IAAI;EACtBH,OAAO,EAAE,EAAE;EACXC,QAAQ,EAAE,EAAE;EACZC,kBAAkB,EAAE;AACtB,CAAC;AAAC,IAAAyB,QAAA,GAAAC,OAAA,cAEa9B,QAAQ","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"CarouselImage.js","names":["_react","_interopRequireDefault","require","_propTypes","_hooks","_utils","_LazyImage","_constants","CarouselImage","_ref","imageId","enableLightbox","toggleModal","handleSelectedImage","priority","_useGetImages","useGetImages","data","loading","error","message","_ref2","getFile","url","_ref2$url","imageUrl","_ref2$data","imageData","_getImageData","getImageData","altText","alt","CAROUSEL_DEFAULT_ALT","handleEnableLightbox","createElement","className","src","sizeKey","onClick","role","propTypes","PropTypes","string","isRequired","bool","func","_default","exports"],"sources":["../../../../src/components/Carousel/CarouselImage/CarouselImage.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { useGetImages } from '../../../hooks';\nimport { getImageData } from '../../../utils';\nimport LazyImage from '../../LazyImage';\nimport { CAROUSEL_DEFAULT_ALT } from './constants';\n\nconst CarouselImage = ({ imageId, enableLightbox, toggleModal, handleSelectedImage, priority }) => {\n const { data, loading, error } = useGetImages(imageId);\n\n if (error) return error.message;\n\n const { url: imageUrl = '', data: imageData = {} } = data.getFile || {\n getFile: { url: '', data: {} }\n };\n\n const { altText } = getImageData({}, imageData);\n const alt = altText || CAROUSEL_DEFAULT_ALT;\n\n const handleEnableLightbox = () => {\n if (!enableLightbox) return;\n toggleModal();\n handleSelectedImage(imageId);\n };\n\n return (\n <div className=\"carousel__slide\">\n {loading ? (\n <div />\n ) : (\n <LazyImage\n src={imageUrl}\n alt={alt}\n sizeKey=\"carousel\"\n onClick={handleEnableLightbox}\n role=\"button\"\n aria-label=\"View Image\"\n priority={priority}\n />\n )}\n </div>\n );\n};\n\nCarouselImage.propTypes = {\n imageId: PropTypes.string.isRequired,\n enableLightbox: PropTypes.bool.isRequired,\n toggleModal: PropTypes.func.isRequired,\n handleSelectedImage: PropTypes.func.isRequired,\n priority: PropTypes.bool.isRequired\n};\n\nexport default CarouselImage;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AAEA,IAAMM,aAAa,GAAG,SAAhBA,aAAaA,CAAAC,IAAA,EAAgF;EAAA,IAA1EC,OAAO,GAAAD,IAAA,CAAPC,OAAO;IAAEC,cAAc,GAAAF,IAAA,CAAdE,cAAc;IAAEC,WAAW,GAAAH,IAAA,CAAXG,WAAW;IAAEC,mBAAmB,GAAAJ,IAAA,CAAnBI,mBAAmB;IAAEC,QAAQ,GAAAL,IAAA,CAARK,QAAQ;EAC1F,IAAAC,aAAA,GAAiC,IAAAC,mBAAY,EAACN,OAAO,CAAC;IAA9CO,IAAI,GAAAF,aAAA,CAAJE,IAAI;IAAEC,OAAO,GAAAH,aAAA,CAAPG,OAAO;IAAEC,KAAK,GAAAJ,aAAA,CAALI,KAAK;EAE5B,IAAIA,KAAK,EAAE,OAAOA,KAAK,CAACC,OAAO;EAE/B,IAAAC,KAAA,GAAqDJ,I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CAACI,IAAI,CAACF,UAAU;EAC9C7B,QAAQ,EAAE2B,qBAAS,CAACG,IAAI,CAACD;AAC3B,CAAC;AAAC,IAAAG,QAAA,GAAAC,OAAA,cAEavC,aAAa"}
1
+ {"version":3,"file":"CarouselImage.js","names":["_react","_interopRequireDefault","require","_propTypes","_hooks","_utils","_LazyImage","_constants","CarouselImage","_ref","imageId","enableLightbox","toggleModal","handleSelectedImage","priority","_useGetImages","useGetImages","data","loading","error","message","_ref2","getFile","url","_ref2$url","imageUrl","_ref2$data","imageData","_getImageData","getImageData","altText","alt","CAROUSEL_DEFAULT_ALT","handleEnableLightbox","createElement","className","src","sizeKey","onClick","role","propTypes","PropTypes","string","isRequired","bool","func","_default","exports"],"sources":["../../../../src/components/Carousel/CarouselImage/CarouselImage.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { useGetImages } from '../../../hooks';\nimport { getImageData } from '../../../utils';\nimport LazyImage from '../../LazyImage';\nimport { CAROUSEL_DEFAULT_ALT } from './constants';\n\nconst CarouselImage = ({ imageId, enableLightbox, toggleModal, handleSelectedImage, priority }) => {\n const { data, loading, error } = useGetImages(imageId);\n\n if (error) return error.message;\n\n const { url: imageUrl = '', data: imageData = {} } = data.getFile || {\n getFile: { url: '', data: {} }\n };\n\n const { altText } = getImageData({}, imageData);\n const alt = altText || CAROUSEL_DEFAULT_ALT;\n\n const handleEnableLightbox = () => {\n if (!enableLightbox) return;\n toggleModal();\n handleSelectedImage(imageId);\n };\n\n return (\n <div className=\"carousel__slide\">\n {loading ? (\n <div />\n ) : (\n <LazyImage\n src={imageUrl}\n alt={alt}\n sizeKey=\"carousel\"\n onClick={handleEnableLightbox}\n role=\"button\"\n aria-label=\"View Image\"\n priority={priority}\n />\n )}\n </div>\n );\n};\n\nCarouselImage.propTypes = {\n imageId: PropTypes.string.isRequired,\n enableLightbox: PropTypes.bool.isRequired,\n toggleModal: PropTypes.func.isRequired,\n handleSelectedImage: PropTypes.func.isRequired,\n priority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,aAAA,CAAPE,OAAO;EACf,IAAMC,GAAG,GAAGD,OAAO,IAAIE,+BAAoB;EAE3C,IAAMC,oBAAoB,GAAG,SAAvBA,oBAAoBA,CAAA,EAAS;IACjC,IAAI,CAACtB,cAAc,EAAE;IACrBC,WAAW,CAAC,CAAC;IACbC,mBAAmB,CAACH,OAAO,CAAC;EAC9B,CAAC;EAED,oBACEV,MAAA,YAAAkC,aAAA;IAAKC,SAAS,EAAC;EAAiB,GAC7BjB,OAAO,gBACNlB,MAAA,YAAAkC,aAAA,YAAM,CAAC,gBAEPlC,MAAA,YAAAkC,aAAA,CAAC5B,UAAA,WAAS;IACR8B,GAAG,EAAEX,QAAS;IACdM,GAAG,EAAEA,GAAI;IACTM,OAAO,EAAC,UAAU;IAClBC,OAAO,EAAEL,oBAAqB;IAC9BM,IAAI,EAAC,QAAQ;IACb,cAAW,YAAY;IACvBzB,QAAQ,EAAEA;EAAS,CACpB,CAEA,CAAC;AAEV,CAAC;AAEDN,aAAa,CAACgC,SAAS,GAAG;EACxB9B,OAAO,EAAE+B,qBAAS,CAACC,MAAM,CAACC,UAAU;EACpChC,cAAc,EAAE8B,qBAAS,CAACG,IAAI,CAACD,UAAU;EACzC/B,WAAW,EAAE6B,qBAAS,CAACI,IAAI,CAACF,UAAU;EACtC9B,mBAAmB,EAAE4B,qBAAS,CAACI,IAAI,CAACF,UAAU;EAC9C7B,QAAQ,EAAE2B,qBAAS,CAACG,IAAI,CAACD;AAC3B,CAAC;AAAC,IAAAG,QAAA,GAAAC,OAAA,cAEavC,aAAa","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","names":["CAROUSEL_DEFAULT_ALT","exports"],"sources":["../../../../src/components/Carousel/CarouselImage/constants.js"],"sourcesContent":["export const CAROUSEL_DEFAULT_ALT = 'Carousel image';\n"],"mappings":";;;;;;;AAAO,IAAMA,oBAAoB,GAAAC,OAAA,CAAAD,oBAAA,GAAG,gBAAgB"}
1
+ {"version":3,"file":"constants.js","names":["CAROUSEL_DEFAULT_ALT","exports"],"sources":["../../../../src/components/Carousel/CarouselImage/constants.js"],"sourcesContent":["export const CAROUSEL_DEFAULT_ALT = 'Carousel image';\n"],"mappings":";;;;;;;AAAO,IAAMA,oBAAoB,GAAAC,OAAA,CAAAD,oBAAA,GAAG,gBAAgB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_CarouselImage","_interopRequireDefault","require","_default","exports","CarouselImage"],"sources":["../../../../src/components/Carousel/CarouselImage/index.js"],"sourcesContent":["import CarouselImage from './CarouselImage';\n\nexport default CarouselImage;\n"],"mappings":";;;;;;;;AAAA,IAAAA,cAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA4C,IAAAC,QAAA,GAAAC,OAAA,cAE7BC,yBAAa"}
1
+ {"version":3,"file":"index.js","names":["_CarouselImage","_interopRequireDefault","require","_default","exports","CarouselImage"],"sources":["../../../../src/components/Carousel/CarouselImage/index.js"],"sourcesContent":["import CarouselImage from './CarouselImage';\n\nexport default CarouselImage;\n"],"mappings":";;;;;;;;AAAA,IAAAA,cAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA4C,IAAAC,QAAA,GAAAC,OAAA,cAE7BC,yBAAa","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"CarouselRender.js","names":["_react","_interopRequireDefault","require","_propTypes","_CarouselImage","_HOC","_excluded","CarouselRender","_ref","handleNavigation","imageIds","listRef","shouldDisplayCount","shouldDisplayCaption","caption","countMessage","direction","priorityLimit","otherProps","_objectWithoutProperties2","createElement","className","role","onClick","back","ref","map","imageId","index","_extends2","key","priority","next","propTypes","PropTypes","string","bool","isRequired","array","displayCount","object","number","func","defaultProps","_default","exports","withTitle"],"sources":["../../../../src/components/Carousel/CarouselRender/CarouselRender.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport CarouselImage from '../CarouselImage';\nimport { withTitle } from '../../../HOC';\n\nconst CarouselRender = ({\n handleNavigation,\n imageIds,\n listRef,\n shouldDisplayCount,\n shouldDisplayCaption,\n caption,\n countMessage,\n direction,\n priorityLimit,\n ...otherProps\n}) => (\n <div className=\"carousel\">\n <div>\n <div\n className=\"carousel__button carousel__button--previous\"\n role=\"button\"\n aria-label=\"Previous Slide\"\n onClick={() => handleNavigation(direction.back)}>\n <div className=\"arrow arrow--left\" />\n </div>\n <div className=\"carousel__list\" ref={listRef}>\n {imageIds.map((imageId, index) => (\n <CarouselImage\n key={imageId}\n priority={index < priorityLimit}\n imageId={imageId}\n {...otherProps}\n />\n ))}\n </div>\n <div\n className=\"carousel__button carousel__button--next\"\n role=\"button\"\n aria-label=\"Next Slide\"\n onClick={() => handleNavigation(direction.next)}>\n {shouldDisplayCount && <p data-testid=\"count\">{countMessage}</p>}\n <div className=\"arrow arrow--right\" />\n </div>\n </div>\n {shouldDisplayCaption && (\n <div className=\"carousel__details\" data-testid=\"carousel-details\">\n <div className=\"caption\">{caption}</div>\n </div>\n )}\n </div>\n);\n\nCarouselRender.propTypes = {\n caption: PropTypes.string,\n shouldDisplayCaption: PropTypes.bool.isRequired,\n imageIds: PropTypes.array,\n displayCount: PropTypes.bool,\n listRef: PropTypes.object,\n countMessage: PropTypes.number,\n direction: PropTypes.object.isRequired,\n handleNavigation: PropTypes.func.isRequired,\n shouldDisplayCount: PropTypes.bool.isRequired,\n priorityLimit: PropTypes.number\n};\n\nCarouselRender.defaultProps = {\n listRef: null,\n imageIds: [],\n caption: '',\n displayCount: false,\n countMessage: null,\n priorityLimit: 0\n};\n\nexport default withTitle(CarouselRender);\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,cAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,IAAA,GAAAH,OAAA;AAAyC,IAAAI,SAAA;AAEzC,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAA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S,EAACvC,cAAc,CAAC"}
1
+ {"version":3,"file":"CarouselRender.js","names":["_react","_interopRequireDefault","require","_propTypes","_CarouselImage","_HOC","_excluded","CarouselRender","_ref","handleNavigation","imageIds","listRef","shouldDisplayCount","shouldDisplayCaption","caption","countMessage","direction","priorityLimit","otherProps","_objectWithoutProperties2","createElement","className","role","onClick","back","ref","map","imageId","index","_extends2","key","priority","next","propTypes","PropTypes","string","bool","isRequired","array","displayCount","object","number","func","defaultProps","_default","exports","withTitle"],"sources":["../../../../src/components/Carousel/CarouselRender/CarouselRender.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport CarouselImage from '../CarouselImage';\nimport { withTitle } from '../../../HOC';\n\nconst CarouselRender = ({\n handleNavigation,\n imageIds,\n listRef,\n shouldDisplayCount,\n shouldDisplayCaption,\n caption,\n countMessage,\n direction,\n priorityLimit,\n ...otherProps\n}) => (\n <div className=\"carousel\">\n <div>\n <div\n className=\"carousel__button carousel__button--previous\"\n role=\"button\"\n aria-label=\"Previous Slide\"\n onClick={() => handleNavigation(direction.back)}>\n <div className=\"arrow arrow--left\" />\n </div>\n <div className=\"carousel__list\" ref={listRef}>\n {imageIds.map((imageId, index) => (\n <CarouselImage\n key={imageId}\n priority={index < priorityLimit}\n imageId={imageId}\n {...otherProps}\n />\n ))}\n </div>\n <div\n className=\"carousel__button carousel__button--next\"\n role=\"button\"\n aria-label=\"Next Slide\"\n onClick={() => handleNavigation(direction.next)}>\n {shouldDisplayCount && <p data-testid=\"count\">{countMessage}</p>}\n <div className=\"arrow arrow--right\" />\n </div>\n </div>\n {shouldDisplayCaption && (\n <div className=\"carousel__details\" data-testid=\"carousel-details\">\n <div className=\"caption\">{caption}</div>\n </div>\n )}\n </div>\n);\n\nCarouselRender.propTypes = {\n caption: PropTypes.string,\n shouldDisplayCaption: PropTypes.bool.isRequired,\n imageIds: PropTypes.array,\n displayCount: PropTypes.bool,\n listRef: PropTypes.object,\n countMessage: PropTypes.number,\n direction: PropTypes.object.isRequired,\n handleNavigation: PropTypes.func.isRequired,\n shouldDisplayCount: PropTypes.bool.isRequired,\n priorityLimit: PropTypes.number\n};\n\nCarouselRender.defaultProps = {\n listRef: null,\n imageIds: [],\n caption: '',\n displayCount: false,\n countMessage: null,\n priorityLimit: 0\n};\n\nexport default withTitle(CarouselRender);\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,cAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,IAAA,GAAAH,OAAA;AAAyC,IAAAI,SAAA;AAEzC,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,IAAA;EAAA,IAClBC,gBAAgB,GAAAD,IAAA,CAAhBC,gBAAgB;IAChBC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IACRC,OAAO,GAAAH,IAAA,CAAPG,OAAO;IACPC,kBAAkB,GAAAJ,IAAA,CAAlBI,kBAAkB;IAClBC,oBAAoB,GAAAL,IAAA,CAApBK,oBAAoB;IACpBC,OAAO,GAAAN,IAAA,CAAPM,OAAO;IACPC,YAAY,GAAAP,IAAA,CAAZO,YAAY;IACZC,SAAS,GAAAR,IAAA,CAATQ,SAAS;IACTC,aAAa,GAAAT,IAAA,CAAbS,aAAa;IACVC,UAAU,OAAAC,yBAAA,aAAAX,IAAA,EAAAF,SAAA;EAAA,oBAEbN,MAAA,YAAAoB,aAAA;IAAKC,SAAS,EAAC;EAAU,gBACvBrB,MAAA,YAAAoB,aAAA,2BACEpB,MAAA,YAAAoB,aAAA;IACEC,SAAS,EAAC,6CAA6C;IACvDC,IAAI,EAAC,QAAQ;IACb,cAAW,gBAAgB;IAC3BC,OAAO,EAAE,SAAAA,QAAA;MAAA,OAAMd,gBAAgB,CAACO,SAAS,CAACQ,IAAI,CAAC;IAAA;EAAC,gBAChDxB,MAAA,YAAAoB,aAAA;IAAKC,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,MAAM;EAC9BzB,SAAS,EAAEkB,qBAAS,CAACM,MAAM,CAACH,UAAU;EACtC5B,gBAAgB,EAAEyB,qBAAS,CAACQ,IAAI,CAACL,UAAU;EAC3CzB,kBAAkB,EAAEsB,qBAAS,CAACE,IAAI,CAACC,UAAU;EAC7CpB,aAAa,EAAEiB,qBAAS,CAACO;AAC3B,CAAC;AAEDlC,cAAc,CAACoC,YAAY,GAAG;EAC5BhC,OAAO,EAAE,IAAI;EACbD,QAAQ,EAAE,EAAE;EACZI,OAAO,EAAE,EAAE;EACXyB,YAAY,EAAE,KAAK;EACnBxB,YAAY,EAAE,IAAI;EAClBE,aAAa,EAAE;AACjB,CAAC;AAAC,IAAA2B,QAAA,GAAAC,OAAA,cAEa,IAAAC,cAAS,EAACvC,cAAc,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_CarouselRender","_interopRequireDefault","require","_default","exports","CarouselRender"],"sources":["../../../../src/components/Carousel/CarouselRender/index.js"],"sourcesContent":["import CarouselRender from './CarouselRender';\n\nexport default CarouselRender;\n"],"mappings":";;;;;;;;AAAA,IAAAA,eAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA8C,IAAAC,QAAA,GAAAC,OAAA,cAE/BC,0BAAc"}
1
+ {"version":3,"file":"index.js","names":["_CarouselRender","_interopRequireDefault","require","_default","exports","CarouselRender"],"sources":["../../../../src/components/Carousel/CarouselRender/index.js"],"sourcesContent":["import CarouselRender from './CarouselRender';\n\nexport default CarouselRender;\n"],"mappings":";;;;;;;;AAAA,IAAAA,eAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA8C,IAAAC,QAAA,GAAAC,OAAA,cAE/BC,0BAAc","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"useCarouselNavigation.js","names":["_react","require","useCarouselNavigation","_ref","imageIds","displayCount","_useState","useState","_useState2","_slicedToArray2","showCount","setShowCount","listRef","useRef","getListElement","current","moveScroll","numberOfPixels","isNext","listElement","totalDistance","scrollLeft","offsetWidth","scrollWidth","leftPosition","Math","max","scrollTo","top","left","behavior","handleNavigation","direction","offset","length","next","back"],"sources":["../../../../src/components/Carousel/hooks/useCarouselNavigation.js"],"sourcesContent":["import { useState, useRef } from 'react';\n\nexport function useCarouselNavigation({ imageIds, displayCount }) {\n const [showCount, setShowCount] = useState(displayCount);\n const listRef = useRef(null);\n\n const getListElement = () => {\n if (!listRef.current) return null;\n return listRef.current;\n };\n\n const moveScroll = (numberOfPixels, isNext) => {\n const listElement = getListElement();\n if (!listElement) return;\n\n const totalDistance = listElement.scrollLeft + numberOfPixels;\n const { scrollLeft, offsetWidth, scrollWidth } = listElement;\n if (isNext && offsetWidth + scrollLeft >= scrollWidth) return;\n\n const leftPosition = totalDistance < 0 ? 0 : Math.max(-scrollLeft, totalDistance);\n\n listElement.scrollTo({\n top: 0,\n left: leftPosition,\n behavior: 'smooth'\n });\n };\n\n const handleNavigation = direction => {\n setShowCount(false);\n\n const listElement = getListElement();\n if (!listElement) return;\n\n const { scrollWidth } = listElement;\n const offset = scrollWidth / imageIds.length;\n\n direction ? moveScroll(offset, direction) : moveScroll(-offset, direction);\n };\n\n return {\n listRef,\n showCount,\n handleNavigation,\n direction: {\n next: true,\n back: false\n }\n };\n}\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEO,SAASC,qBAAqBA,CAAAC,IAAA,EAA6B;EAAA,IAA1BC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAEC,YAAY,GAAAF,IAAA,CAAZE,YAAY;EAC5D,IAAAC,SAAA,GAAkC,IAAAC,eAAQ,EAACF,YAAY,CAAC;IAAAG,UAAA,OAAAC,eAAA,aAAAH,SAAA;IAAjDI,SAAS,GAAAF,UAAA;IAAEG,YAAY,GAAAH,UAAA;EAC9B,IAAMI,OAAO,GAAG,IAAAC,aAAM,EAAC,IAAI,CAAC;EAE5B,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAA,EAAS;IA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,gBAAgB,EAAhBA,gBAAgB;IAChBC,SAAS,EAAE;MACTG,IAAI,EAAE,IAAI;MACVC,IAAI,EAAE;IACR;EACF,CAAC;AACH"}
1
+ {"version":3,"file":"useCarouselNavigation.js","names":["_react","require","useCarouselNavigation","_ref","imageIds","displayCount","_useState","useState","_useState2","_slicedToArray2","showCount","setShowCount","listRef","useRef","getListElement","current","moveScroll","numberOfPixels","isNext","listElement","totalDistance","scrollLeft","offsetWidth","scrollWidth","leftPosition","Math","max","scrollTo","top","left","behavior","handleNavigation","direction","offset","length","next","back"],"sources":["../../../../src/components/Carousel/hooks/useCarouselNavigation.js"],"sourcesContent":["import { useState, useRef } from 'react';\n\nexport function useCarouselNavigation({ imageIds, displayCount }) {\n const [showCount, setShowCount] = useState(displayCount);\n const listRef = useRef(null);\n\n const getListElement = () => {\n if (!listRef.current) return null;\n return listRef.current;\n };\n\n const moveScroll = (numberOfPixels, isNext) => {\n const listElement = getListElement();\n if (!listElement) return;\n\n const totalDistance = listElement.scrollLeft + numberOfPixels;\n const { scrollLeft, offsetWidth, scrollWidth } = listElement;\n if (isNext && offsetWidth + scrollLeft >= scrollWidth) return;\n\n const leftPosition = totalDistance < 0 ? 0 : Math.max(-scrollLeft, totalDistance);\n\n listElement.scrollTo({\n top: 0,\n left: leftPosition,\n behavior: 'smooth'\n });\n };\n\n const handleNavigation = direction => {\n setShowCount(false);\n\n const listElement = getListElement();\n if (!listElement) return;\n\n const { scrollWidth } = listElement;\n const offset = scrollWidth / imageIds.length;\n\n direction ? moveScroll(offset, direction) : moveScroll(-offset, direction);\n };\n\n return {\n listRef,\n showCount,\n handleNavigation,\n direction: {\n next: true,\n back: false\n }\n };\n}\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEO,SAASC,qBAAqBA,CAAAC,IAAA,EAA6B;EAAA,IAA1BC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAEC,YAAY,GAAAF,IAAA,CAAZE,YAAY;EAC5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I,WAAW;IACnB,IAAMU,MAAM,GAAGV,WAAW,GAAGnB,QAAQ,CAAC8B,MAAM;IAE5CF,SAAS,GAAGhB,UAAU,CAACiB,MAAM,EAAED,SAAS,CAAC,GAAGhB,UAAU,CAAC,CAACiB,MAAM,EAAED,SAAS,CAAC;EAC5E,CAAC;EAED,OAAO;IACLpB,OAAO,EAAPA,OAAO;IACPF,SAAS,EAATA,SAAS;IACTqB,gBAAgB,EAAhBA,gBAAgB;IAChBC,SAAS,EAAE;MACTG,IAAI,EAAE,IAAI;MACVC,IAAI,EAAE;IACR;EACF,CAAC;AACH","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_Carousel","_interopRequireDefault","require","_default","exports","Carousel"],"sources":["../../../src/components/Carousel/index.js"],"sourcesContent":["import Carousel from './Carousel';\n\nexport default Carousel;\n"],"mappings":";;;;;;;;AAAA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAkC,IAAAC,QAAA,GAAAC,OAAA,cAEnBC,oBAAQ"}
1
+ {"version":3,"file":"index.js","names":["_Carousel","_interopRequireDefault","require","_default","exports","Carousel"],"sources":["../../../src/components/Carousel/index.js"],"sourcesContent":["import Carousel from './Carousel';\n\nexport default Carousel;\n"],"mappings":";;;;;;;;AAAA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAkC,IAAAC,QAAA,GAAAC,OAAA,cAEnBC,oBAAQ","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"CarouselWrapper.js","names":["_react","_interopRequireDefault","require","_propTypes","_DefaultCarousel","_SmoothScrollCarousel","_excluded","CarouselWrapper","_ref","enableSmoothScroll","props","_objectWithoutProperties2","createElement","propTypes","PropTypes","bool","defaultProps","_default","exports"],"sources":["../../../src/components/CarouselWrapper/CarouselWrapper.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport DefaultCarousel from './DefaultCarousel';\nimport SmoothScrollCarousel from './SmoothScrollCarousel';\n\nconst CarouselWrapper = ({ enableSmoothScroll, ...props }) => {\n if (enableSmoothScroll) return <SmoothScrollCarousel {...props} />;\n return <DefaultCarousel {...props} />;\n};\n\nCarouselWrapper.propTypes = {\n enableSmoothScroll: PropTypes.bool\n};\n\nCarouselWrapper.defaultProps = {\n enableSmoothScroll: false\n};\n\nexport default CarouselWrapper;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,gBAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,qBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAA0D,IAAAI,SAAA;AAE1D,IAAMC,eAAe,GAAG,SAAlBA,eAAeA,CAAAC,IAAA,EAAyC;EAAA,IAAnCC,kBAAkB,GAAAD,IAAA,CAAlBC,kBAAkB;IAAKC,KAAK,OAAAC,yBAAA,aAAAH,IAAA,EAAAF,SAAA;EACrD,IAAIG,kBAAkB,EAAE,oBAAOT,MAAA,YAAAY,aAAA,CAACP,qBAAA,WAAoB,EAAKK,KAAQ,CAAC;EAClE,oBAAOV,MAAA,YAAAY,aAAA,CAACR,gBAAA,WAAe,EAAKM,KAAQ,CAAC;AACvC,CAAC;AAEDH,eAAe,CAACM,SAAS,GAAG;EAC1BJ,kBAAkB,EAAEK,qBAAS,CAACC;AAChC,CAAC;AAEDR,eAAe,CAACS,YAAY,GAAG;EAC7BP,kBAAkB,EAAE;AACtB,CAAC;AAAC,IAAAQ,QAAA,GAAAC,OAAA,cAEaX,eAAe"}
1
+ {"version":3,"file":"CarouselWrapper.js","names":["_react","_interopRequireDefault","require","_propTypes","_DefaultCarousel","_SmoothScrollCarousel","_excluded","CarouselWrapper","_ref","enableSmoothScroll","props","_objectWithoutProperties2","createElement","propTypes","PropTypes","bool","defaultProps","_default","exports"],"sources":["../../../src/components/CarouselWrapper/CarouselWrapper.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport DefaultCarousel from './DefaultCarousel';\nimport SmoothScrollCarousel from './SmoothScrollCarousel';\n\nconst CarouselWrapper = ({ enableSmoothScroll, ...props }) => {\n if (enableSmoothScroll) return <SmoothScrollCarousel {...props} />;\n return <DefaultCarousel {...props} />;\n};\n\nCarouselWrapper.propTypes = {\n enableSmoothScroll: PropTypes.bool\n};\n\nCarouselWrapper.defaultProps = {\n enableSmoothScroll: false\n};\n\nexport default CarouselWrapper;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,gBAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,qBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAA0D,IAAAI,SAAA;AAE1D,IAAMC,eAAe,GAAG,SAAlBA,eAAeA,CAAAC,IAAA,EAAyC;EAAA,IAAnCC,kBAAkB,GAAAD,IAAA,CAAlBC,kBAAkB;IAAKC,KAAK,OAAAC,yBAAA,aAAAH,IAAA,EAAAF,SAAA;EACrD,IAAIG,kBAAkB,EAAE,oBAAOT,MAAA,YAAAY,aAAA,CAACP,qBAAA,WAAoB,EAAKK,KAAQ,CAAC;EAClE,oBAAOV,MAAA,YAAAY,aAAA,CAACR,gBAAA,WAAe,EAAKM,KAAQ,CAAC;AACvC,CAAC;AAEDH,eAAe,CAACM,SAAS,GAAG;EAC1BJ,kBAAkB,EAAEK,qBAAS,CAACC;AAChC,CAAC;AAEDR,eAAe,CAACS,YAAY,GAAG;EAC7BP,kBAAkB,EAAE;AACtB,CAAC;AAAC,IAAAQ,QAAA,GAAAC,OAAA,cAEaX,eAAe","ignoreList":[]}
@@ -1,20 +1,20 @@
1
1
  "use strict";
2
2
 
3
3
  require("core-js/modules/es.array.iterator.js");
4
+ require("core-js/modules/es.object.define-property.js");
5
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
4
6
  require("core-js/modules/es.object.to-string.js");
5
7
  require("core-js/modules/es.string.iterator.js");
6
8
  require("core-js/modules/es.weak-map.js");
7
9
  require("core-js/modules/web.dom-collections.iterator.js");
8
- require("core-js/modules/es.object.define-property.js");
9
- require("core-js/modules/es.object.get-own-property-descriptor.js");
10
10
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
11
11
  var _typeof = require("@babel/runtime/helpers/typeof");
12
12
  Object.defineProperty(exports, "__esModule", {
13
13
  value: true
14
14
  });
15
15
  exports["default"] = void 0;
16
- require("core-js/modules/web.timers.js");
17
16
  require("core-js/modules/es.array.concat.js");
17
+ require("core-js/modules/web.timers.js");
18
18
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
19
19
  var _react = _interopRequireWildcard(require("react"));
20
20
  var _propTypes = _interopRequireDefault(require("prop-types"));