@blaze-cms/react-page-builder 0.146.0-core-styles.43 → 0.146.0-node18.0

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 (1166) hide show
  1. package/CHANGELOG.md +31 -216
  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 +3 -3
  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 +4 -4
  11. package/lib/HOC/withInfiniteScroll.js.map +1 -1
  12. package/lib/HOC/withTitle.js +3 -3
  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 +2 -1
  16. package/lib/application/query/index.js.map +1 -1
  17. package/lib/components/BackToTop/BackToTop.js +3 -3
  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 +6 -6
  21. package/lib/components/Banner/AdSlotRender.js.map +1 -1
  22. package/lib/components/Banner/Banner.js +5 -5
  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 +19 -19
  27. package/lib/components/Banner/helpers.js.map +1 -1
  28. package/lib/components/Banner/index.js +5 -5
  29. package/lib/components/Banner/index.js.map +1 -1
  30. package/lib/components/BlazeLink.js +7 -7
  31. package/lib/components/BlazeLink.js.map +1 -1
  32. package/lib/components/Breadcrumb/Breadcrumb.js +5 -5
  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 +7 -7
  36. package/lib/components/Button.js.map +1 -1
  37. package/lib/components/Card/Card.js +5 -5
  38. package/lib/components/Card/Card.js.map +1 -1
  39. package/lib/components/Card/CardsContainer.js +9 -9
  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 +13 -13
  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 +1 -0
  58. package/lib/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
  59. package/lib/components/Carousel/CarouselRender/index.js.map +1 -1
  60. package/lib/components/Carousel/hooks/useCarouselNavigation.js.map +1 -1
  61. package/lib/components/Carousel/index.js.map +1 -1
  62. package/lib/components/CarouselWrapper/CarouselWrapper.js.map +1 -1
  63. package/lib/components/CarouselWrapper/DefaultCarousel.js +4 -4
  64. package/lib/components/CarouselWrapper/DefaultCarousel.js.map +1 -1
  65. package/lib/components/CarouselWrapper/SmoothScrollCarousel.js.map +1 -1
  66. package/lib/components/CarouselWrapper/index.js.map +1 -1
  67. package/lib/components/ClickWrapper.js +7 -7
  68. package/lib/components/ClickWrapper.js.map +1 -1
  69. package/lib/components/Code/Code.js +7 -7
  70. package/lib/components/Code/Code.js.map +1 -1
  71. package/lib/components/Code/ScriptTag.js +4 -4
  72. package/lib/components/Code/ScriptTag.js.map +1 -1
  73. package/lib/components/Code/helpers/index.js.map +1 -1
  74. package/lib/components/Code/helpers/wrap-script-tags.js +1 -1
  75. package/lib/components/Code/helpers/wrap-script-tags.js.map +1 -1
  76. package/lib/components/Code/index.js.map +1 -1
  77. package/lib/components/ContentGroup/ContentGroup.js.map +1 -1
  78. package/lib/components/ContentGroup/ContentGroupTabs.js +5 -5
  79. package/lib/components/ContentGroup/ContentGroupTabs.js.map +1 -1
  80. package/lib/components/ContentGroup/constants.js.map +1 -1
  81. package/lib/components/ContentGroup/helpers/get-active-tab.js +1 -1
  82. package/lib/components/ContentGroup/helpers/get-active-tab.js.map +1 -1
  83. package/lib/components/ContentGroup/helpers/get-sections-data.js +1 -0
  84. package/lib/components/ContentGroup/helpers/get-sections-data.js.map +1 -1
  85. package/lib/components/ContentGroup/helpers/index.js.map +1 -1
  86. package/lib/components/ContentGroup/index.js.map +1 -1
  87. package/lib/components/ContentGroupSection/ContentGroupSection.js.map +1 -1
  88. package/lib/components/ContentGroupSection/index.js.map +1 -1
  89. package/lib/components/DataSummary/DataSummaryFactory.js +3 -3
  90. package/lib/components/DataSummary/DataSummaryFactory.js.map +1 -1
  91. package/lib/components/DataSummary/DataSummaryRender.js +1 -0
  92. package/lib/components/DataSummary/DataSummaryRender.js.map +1 -1
  93. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -1
  94. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js +5 -5
  95. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
  96. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js.map +1 -1
  97. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map +1 -1
  98. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js +5 -5
  99. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
  100. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js.map +1 -1
  101. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.map +1 -1
  102. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js +5 -5
  103. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
  104. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/index.js.map +1 -1
  105. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.map +1 -1
  106. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js +5 -5
  107. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
  108. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/index.js.map +1 -1
  109. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.map +1 -1
  110. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js +5 -5
  111. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
  112. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/index.js.map +1 -1
  113. package/lib/components/DataSummary/DataSummaryTypes/index.js +9 -9
  114. package/lib/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
  115. package/lib/components/DataSummary/helpers/build-loop-props-content.js +5 -5
  116. package/lib/components/DataSummary/helpers/build-loop-props-content.js.map +1 -1
  117. package/lib/components/DataSummary/helpers/build-props-to-display-with-content.js +2 -2
  118. package/lib/components/DataSummary/helpers/build-props-to-display-with-content.js.map +1 -1
  119. package/lib/components/DataSummary/helpers/get-data-summary-query.js.map +1 -1
  120. package/lib/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -1
  121. package/lib/components/DataSummary/helpers/get-link-props.js +2 -2
  122. package/lib/components/DataSummary/helpers/get-link-props.js.map +1 -1
  123. package/lib/components/DataSummary/helpers/get-link-to-published-content.js.map +1 -1
  124. package/lib/components/DataSummary/helpers/get-loop-props-limit.js +2 -2
  125. package/lib/components/DataSummary/helpers/get-loop-props-limit.js.map +1 -1
  126. package/lib/components/DataSummary/helpers/get-prop-value.js +3 -3
  127. package/lib/components/DataSummary/helpers/get-prop-value.js.map +1 -1
  128. package/lib/components/DataSummary/helpers/get-value-from-array.js +2 -2
  129. package/lib/components/DataSummary/helpers/get-value-from-array.js.map +1 -1
  130. package/lib/components/DataSummary/helpers/index.js.map +1 -1
  131. package/lib/components/DataSummary/helpers/parse-boolean-values.js.map +1 -1
  132. package/lib/components/DataSummary/helpers/strip-summary-props-content.js.map +1 -1
  133. package/lib/components/DataSummary/index.js.map +1 -1
  134. package/lib/components/DateTime/DateTime.js +4 -4
  135. package/lib/components/DateTime/DateTime.js.map +1 -1
  136. package/lib/components/DateTime/index.js.map +1 -1
  137. package/lib/components/EmailConfirm/EmailConfirm.js +6 -6
  138. package/lib/components/EmailConfirm/EmailConfirm.js.map +1 -1
  139. package/lib/components/EmailConfirm/index.js.map +1 -1
  140. package/lib/components/EmailConfirm/mutation.js.map +1 -1
  141. package/lib/components/Iframe/Iframe.js.map +1 -1
  142. package/lib/components/Iframe/constants.js.map +1 -1
  143. package/lib/components/Iframe/index.js.map +1 -1
  144. package/lib/components/Image/GlobalLightbox/GlobalLightbox.js +6 -6
  145. package/lib/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
  146. package/lib/components/Image/GlobalLightbox/NavButton.js.map +1 -1
  147. package/lib/components/Image/GlobalLightbox/index.js +5 -5
  148. package/lib/components/Image/GlobalLightbox/index.js.map +1 -1
  149. package/lib/components/Image/Image.js +8 -8
  150. package/lib/components/Image/Image.js.map +1 -1
  151. package/lib/components/Image/ImageDetails.js.map +1 -1
  152. package/lib/components/Image/ImageFactory.js +4 -4
  153. package/lib/components/Image/ImageFactory.js.map +1 -1
  154. package/lib/components/Image/ImageRender.js.map +1 -1
  155. package/lib/components/Image/Lightbox/Lightbox.js +3 -3
  156. package/lib/components/Image/Lightbox/Lightbox.js.map +1 -1
  157. package/lib/components/Image/Lightbox/index.js.map +1 -1
  158. package/lib/components/Image/index.js.map +1 -1
  159. package/lib/components/ItemList/ItemListButton/ItemListButton.js +5 -5
  160. package/lib/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
  161. package/lib/components/ItemList/ItemListButton/index.js.map +1 -1
  162. package/lib/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
  163. package/lib/components/ItemList/ItemListCounter/index.js.map +1 -1
  164. package/lib/components/ItemList/ItemListNew/ItemListNew.js.map +1 -1
  165. package/lib/components/ItemList/ItemListNew/index.js.map +1 -1
  166. package/lib/components/ItemList/constants.js.map +1 -1
  167. package/lib/components/ItemList/helpers/get-item-list-data.js.map +1 -1
  168. package/lib/components/ItemList/helpers/get-item-list-id.js.map +1 -1
  169. package/lib/components/ItemList/helpers/get-item-list-ids.js +1 -0
  170. package/lib/components/ItemList/helpers/get-item-list-ids.js.map +1 -1
  171. package/lib/components/ItemList/helpers/index.js.map +1 -1
  172. package/lib/components/ItemList/helpers/set-item-list-id.js.map +1 -1
  173. package/lib/components/ItemList/helpers/set-param-and-redirect.js +5 -4
  174. package/lib/components/ItemList/helpers/set-param-and-redirect.js.map +1 -1
  175. package/lib/components/ItemList/hooks/index.js.map +1 -1
  176. package/lib/components/ItemList/hooks/use-item-list-id.js.map +1 -1
  177. package/lib/components/Layout/Layout.js +5 -5
  178. package/lib/components/Layout/Layout.js.map +1 -1
  179. package/lib/components/Layout/LayoutFactory.js +5 -5
  180. package/lib/components/Layout/LayoutFactory.js.map +1 -1
  181. package/lib/components/Layout/LayoutWithStickyTimer.js +3 -3
  182. package/lib/components/Layout/LayoutWithStickyTimer.js.map +1 -1
  183. package/lib/components/Layout/constants.js.map +1 -1
  184. package/lib/components/Layout/helpers/check-if-row-has-columns.js +1 -1
  185. package/lib/components/Layout/helpers/check-if-row-has-columns.js.map +1 -1
  186. package/lib/components/Layout/helpers/get-styles-to-update.js.map +1 -1
  187. package/lib/components/Layout/helpers/index.js.map +1 -1
  188. package/lib/components/Layout/index.js.map +1 -1
  189. package/lib/components/LazyImage/LazyImage.js.map +1 -1
  190. package/lib/components/LazyImage/index.js +5 -5
  191. package/lib/components/LazyImage/index.js.map +1 -1
  192. package/lib/components/List/ListBuilder.js +5 -5
  193. package/lib/components/List/ListBuilder.js.map +1 -1
  194. package/lib/components/List/ListFactory.js +11 -11
  195. package/lib/components/List/ListFactory.js.map +1 -1
  196. package/lib/components/List/ListRender.js.map +1 -1
  197. package/lib/components/List/components/Cards/CardRenderWithInfiniteScroll.js.map +1 -1
  198. package/lib/components/List/components/Cards/CardsRender.js +8 -8
  199. package/lib/components/List/components/Cards/CardsRender.js.map +1 -1
  200. package/lib/components/List/components/Cards/CardsRenderItem.js.map +1 -1
  201. package/lib/components/List/components/Cards/CardsRenderWrapper.js +4 -4
  202. package/lib/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
  203. package/lib/components/List/components/Cards/index.js.map +1 -1
  204. package/lib/components/List/components/Full/FullRender.js +7 -7
  205. package/lib/components/List/components/Full/FullRender.js.map +1 -1
  206. package/lib/components/List/components/Full/FullRenderItem.js +7 -7
  207. package/lib/components/List/components/Full/FullRenderItem.js.map +1 -1
  208. package/lib/components/List/components/Full/FullRenderWithInfiniteScroll.js.map +1 -1
  209. package/lib/components/List/components/Full/index.js.map +1 -1
  210. package/lib/components/List/components/Header/ListHeader.js +2 -1
  211. package/lib/components/List/components/Header/ListHeader.js.map +1 -1
  212. package/lib/components/List/components/Header/index.js.map +1 -1
  213. package/lib/components/List/components/Pagination/Classic.js.map +1 -1
  214. package/lib/components/List/components/Pagination/ListPagination.js +7 -7
  215. package/lib/components/List/components/Pagination/ListPagination.js.map +1 -1
  216. package/lib/components/List/components/Pagination/LoadMore.js +2 -2
  217. package/lib/components/List/components/Pagination/LoadMore.js.map +1 -1
  218. package/lib/components/List/components/Pagination/index.js.map +1 -1
  219. package/lib/components/List/components/helpers/check-if-should-render-banner.js +1 -2
  220. package/lib/components/List/components/helpers/check-if-should-render-banner.js.map +1 -1
  221. package/lib/components/List/components/helpers/check-if-should-render-gtm.js +1 -2
  222. package/lib/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -1
  223. package/lib/components/List/components/helpers/index.js.map +1 -1
  224. package/lib/components/List/components/index.js.map +1 -1
  225. package/lib/components/List/constants.js.map +1 -1
  226. package/lib/components/List/helpers/build-az-aggregations.js +3 -3
  227. package/lib/components/List/helpers/build-az-aggregations.js.map +1 -1
  228. package/lib/components/List/helpers/build-az-url.js +5 -5
  229. package/lib/components/List/helpers/build-az-url.js.map +1 -1
  230. package/lib/components/List/helpers/build-pagination-items.js.map +1 -1
  231. package/lib/components/List/helpers/build-pagination-url.js +5 -5
  232. package/lib/components/List/helpers/build-pagination-url.js.map +1 -1
  233. package/lib/components/List/helpers/build-query-booster.js +7 -6
  234. package/lib/components/List/helpers/build-query-booster.js.map +1 -1
  235. package/lib/components/List/helpers/get-az-query-filter.js.map +1 -1
  236. package/lib/components/List/helpers/get-items-per-page-to-use.js.map +1 -1
  237. package/lib/components/List/helpers/get-list-component.js.map +1 -1
  238. package/lib/components/List/helpers/get-list-query.js +3 -3
  239. package/lib/components/List/helpers/get-list-query.js.map +1 -1
  240. package/lib/components/List/helpers/get-list-specific-search-filter.js.map +1 -1
  241. package/lib/components/List/helpers/get-sort-props.js +2 -2
  242. package/lib/components/List/helpers/get-sort-props.js.map +1 -1
  243. package/lib/components/List/helpers/has-required-item-list-details.js.map +1 -1
  244. package/lib/components/List/helpers/index.js.map +1 -1
  245. package/lib/components/List/helpers/sort-aggs.js.map +1 -1
  246. package/lib/components/List/helpers/strip-query-key.js.map +1 -1
  247. package/lib/components/List/index.js.map +1 -1
  248. package/lib/components/Loading/Loading.js.map +1 -1
  249. package/lib/components/Loading/constants.js.map +1 -1
  250. package/lib/components/Loading/helpers.js.map +1 -1
  251. package/lib/components/Loading/index.js.map +1 -1
  252. package/lib/components/Menu/Menu.js +4 -7
  253. package/lib/components/Menu/Menu.js.map +1 -1
  254. package/lib/components/Menu/MenuContext.js +1 -2
  255. package/lib/components/Menu/MenuContext.js.map +1 -1
  256. package/lib/components/Menu/index.js.map +1 -1
  257. package/lib/components/MenuItem/MenuEntitiesItem.js +5 -5
  258. package/lib/components/MenuItem/MenuEntitiesItem.js.map +1 -1
  259. package/lib/components/MenuItem/MenuItem.js.map +1 -1
  260. package/lib/components/MenuItem/MenuItemRender.js +9 -23
  261. package/lib/components/MenuItem/MenuItemRender.js.map +1 -1
  262. package/lib/components/MenuItem/helpers/index.js +0 -14
  263. package/lib/components/MenuItem/helpers/index.js.map +1 -1
  264. package/lib/components/MenuItem/helpers/inject-helper-into-template.js.map +1 -1
  265. package/lib/components/MenuItem/index.js.map +1 -1
  266. package/lib/components/Modal/Modal.js.map +1 -1
  267. package/lib/components/Modal/index.js.map +1 -1
  268. package/lib/components/ModalAdapter/ModalAdapter.js +1 -1
  269. package/lib/components/ModalAdapter/ModalAdapter.js.map +1 -1
  270. package/lib/components/ModalAdapter/index.js +5 -5
  271. package/lib/components/ModalAdapter/index.js.map +1 -1
  272. package/lib/components/SearchContent/SearchContent.js +4 -4
  273. package/lib/components/SearchContent/SearchContent.js.map +1 -1
  274. package/lib/components/SearchContent/SearchContentItems.js +1 -0
  275. package/lib/components/SearchContent/SearchContentItems.js.map +1 -1
  276. package/lib/components/SearchContent/SearchContentResults.js.map +1 -1
  277. package/lib/components/SearchContent/SearchContentToggleIcon.js.map +1 -1
  278. package/lib/components/SearchContent/constants.js.map +1 -1
  279. package/lib/components/SearchContent/index.js.map +1 -1
  280. package/lib/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
  281. package/lib/components/SearchFilter/SearchFilter/FiltersList.js +5 -5
  282. package/lib/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
  283. package/lib/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -1
  284. package/lib/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
  285. package/lib/components/SearchFilter/SearchFilter/SearchFilter.js +4 -4
  286. package/lib/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
  287. package/lib/components/SearchFilter/SearchFilter/index.js.map +1 -1
  288. package/lib/components/SearchFilter/SearchFilterContainer.js +5 -6
  289. package/lib/components/SearchFilter/SearchFilterContainer.js.map +1 -1
  290. package/lib/components/SearchFilter/components/Checkbox.js +8 -8
  291. package/lib/components/SearchFilter/components/Checkbox.js.map +1 -1
  292. package/lib/components/SearchFilter/components/Range.js +4 -4
  293. package/lib/components/SearchFilter/components/Range.js.map +1 -1
  294. package/lib/components/SearchFilter/components/Select.js +3 -3
  295. package/lib/components/SearchFilter/components/Select.js.map +1 -1
  296. package/lib/components/SearchFilter/components/TextSearch.js.map +1 -1
  297. package/lib/components/SearchFilter/components/index.js.map +1 -1
  298. package/lib/components/SearchFilter/constants.js.map +1 -1
  299. package/lib/components/SearchFilter/helpers/build-list-name-query.js +3 -3
  300. package/lib/components/SearchFilter/helpers/build-list-name-query.js.map +1 -1
  301. package/lib/components/SearchFilter/helpers/build-new-url.js.map +1 -1
  302. package/lib/components/SearchFilter/helpers/build-url-query.js +3 -3
  303. package/lib/components/SearchFilter/helpers/build-url-query.js.map +1 -1
  304. package/lib/components/SearchFilter/helpers/calculate-min-max.js.map +1 -1
  305. package/lib/components/SearchFilter/helpers/calculate-step.js.map +1 -1
  306. package/lib/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -1
  307. package/lib/components/SearchFilter/helpers/decode-encode.js.map +1 -1
  308. package/lib/components/SearchFilter/helpers/get-display-value.js +1 -1
  309. package/lib/components/SearchFilter/helpers/get-display-value.js.map +1 -1
  310. package/lib/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js +2 -2
  311. package/lib/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js.map +1 -1
  312. package/lib/components/SearchFilter/helpers/get-filter-value-from-query.js +1 -0
  313. package/lib/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
  314. package/lib/components/SearchFilter/helpers/get-filter-values.js.map +1 -1
  315. package/lib/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -1
  316. package/lib/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -1
  317. package/lib/components/SearchFilter/helpers/get-range-value.js.map +1 -1
  318. package/lib/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
  319. package/lib/components/SearchFilter/helpers/get-select-options.js +1 -0
  320. package/lib/components/SearchFilter/helpers/get-select-options.js.map +1 -1
  321. package/lib/components/SearchFilter/helpers/get-updated-filter-by.js +2 -2
  322. package/lib/components/SearchFilter/helpers/get-updated-filter-by.js.map +1 -1
  323. package/lib/components/SearchFilter/helpers/index.js.map +1 -1
  324. package/lib/components/SearchFilter/helpers/is-device-desktop.js.map +1 -1
  325. package/lib/components/SearchFilter/helpers/parse-filter-value.js +1 -0
  326. package/lib/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
  327. package/lib/components/SearchFilter/index.js.map +1 -1
  328. package/lib/components/SearchFilter/searchFilterReducer.js +5 -5
  329. package/lib/components/SearchFilter/searchFilterReducer.js.map +1 -1
  330. package/lib/components/SearchFilterSort/SearchFilterSort.js +1 -0
  331. package/lib/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
  332. package/lib/components/SearchFilterSort/constants.js.map +1 -1
  333. package/lib/components/SearchFilterSort/helpers/handle-sort-update.js +2 -2
  334. package/lib/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
  335. package/lib/components/SearchFilterSort/helpers/index.js.map +1 -1
  336. package/lib/components/SearchFilterSort/helpers/update-sort.js +5 -5
  337. package/lib/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
  338. package/lib/components/SearchFilterSort/index.js.map +1 -1
  339. package/lib/components/SocialFollow/SFItem.js.map +1 -1
  340. package/lib/components/SocialFollow/SocialFollow.js.map +1 -1
  341. package/lib/components/SocialFollow/SocialFollowRender.js +1 -0
  342. package/lib/components/SocialFollow/SocialFollowRender.js.map +1 -1
  343. package/lib/components/SocialFollow/index.js.map +1 -1
  344. package/lib/components/SocialFollow/sf.config.js.map +1 -1
  345. package/lib/components/SubMenu/SubMenu.js.map +1 -1
  346. package/lib/components/SubMenu/index.js.map +1 -1
  347. package/lib/components/TextBlock/TextBlockRender.js.map +1 -1
  348. package/lib/components/TextBlock/index.js +5 -5
  349. package/lib/components/TextBlock/index.js.map +1 -1
  350. package/lib/components/Video/Video.js +5 -5
  351. package/lib/components/Video/Video.js.map +1 -1
  352. package/lib/components/Video/VideoContext.js.map +1 -1
  353. package/lib/components/Video/VideoModal.js +3 -3
  354. package/lib/components/Video/VideoModal.js.map +1 -1
  355. package/lib/components/Video/VideoRender.js +3 -3
  356. package/lib/components/Video/VideoRender.js.map +1 -1
  357. package/lib/components/Video/constants.js.map +1 -1
  358. package/lib/components/Video/helpers/emit-gtm-event.js.map +1 -1
  359. package/lib/components/Video/index.js.map +1 -1
  360. package/lib/components/Video/providers/Default.js.map +1 -1
  361. package/lib/components/Video/providers/JWPlayer/JWPlayerController.js +1 -2
  362. package/lib/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
  363. package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js +7 -7
  364. package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
  365. package/lib/components/Video/providers/Vimeo/VimeoProvider.js +4 -4
  366. package/lib/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
  367. package/lib/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js +6 -6
  368. package/lib/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js.map +1 -1
  369. package/lib/components/Video/providers/Vimeo/helpers/index.js.map +1 -1
  370. package/lib/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
  371. package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js +3 -3
  372. package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
  373. package/lib/components/Video/providers/YouTube/helpers/index.js +1 -1
  374. package/lib/components/Video/providers/YouTube/helpers/index.js.map +1 -1
  375. package/lib/components/Video/providers/get-provider.js +9 -9
  376. package/lib/components/Video/providers/get-provider.js.map +1 -1
  377. package/lib/components/Video/providers/index.js.map +1 -1
  378. package/lib/components/Wrapper.js +2 -2
  379. package/lib/components/Wrapper.js.map +1 -1
  380. package/lib/components/index.js +34 -34
  381. package/lib/components/index.js.map +1 -1
  382. package/lib/constants/componentsDefaultValues.js.map +1 -1
  383. package/lib/constants/index.js.map +1 -1
  384. package/lib/helpers/append-images.js +5 -5
  385. package/lib/helpers/append-images.js.map +1 -1
  386. package/lib/helpers/build-az-filter.js.map +1 -1
  387. package/lib/helpers/build-checkbox-filters.js.map +1 -1
  388. package/lib/helpers/build-filters-query.js +6 -6
  389. package/lib/helpers/build-filters-query.js.map +1 -1
  390. package/lib/helpers/build-image-properties.js.map +1 -1
  391. package/lib/helpers/build-inherited-filters.js +4 -4
  392. package/lib/helpers/build-inherited-filters.js.map +1 -1
  393. package/lib/helpers/build-link-extra-props.js.map +1 -1
  394. package/lib/helpers/build-props-query.js +9 -9
  395. package/lib/helpers/build-props-query.js.map +1 -1
  396. package/lib/helpers/build-query-fields.js +2 -1
  397. package/lib/helpers/build-query-fields.js.map +1 -1
  398. package/lib/helpers/build-query-key.js.map +1 -1
  399. package/lib/helpers/build-raw-query-base.js +9 -9
  400. package/lib/helpers/build-raw-query-base.js.map +1 -1
  401. package/lib/helpers/build-raw-query-stringified.js +2 -1
  402. package/lib/helpers/build-raw-query-stringified.js.map +1 -1
  403. package/lib/helpers/build-raw-query.js +5 -5
  404. package/lib/helpers/build-raw-query.js.map +1 -1
  405. package/lib/helpers/build-search-values-checkbox-select.js +8 -8
  406. package/lib/helpers/build-search-values-checkbox-select.js.map +1 -1
  407. package/lib/helpers/build-search-values-text.js.map +1 -1
  408. package/lib/helpers/build-set-filters.js +3 -3
  409. package/lib/helpers/build-set-filters.js.map +1 -1
  410. package/lib/helpers/build-sort-values.js +6 -6
  411. package/lib/helpers/build-sort-values.js.map +1 -1
  412. package/lib/helpers/check-for-error.js.map +1 -1
  413. package/lib/helpers/check-props-to-use.js +1 -0
  414. package/lib/helpers/check-props-to-use.js.map +1 -1
  415. package/lib/helpers/entities/constants.js.map +1 -1
  416. package/lib/helpers/filter-query-setup.js +5 -5
  417. package/lib/helpers/filter-query-setup.js.map +1 -1
  418. package/lib/helpers/filters-setup.js.map +1 -1
  419. package/lib/helpers/get-banner-data.js +5 -5
  420. package/lib/helpers/get-banner-data.js.map +1 -1
  421. package/lib/helpers/get-checkbox-filters.js.map +1 -1
  422. package/lib/helpers/get-click-wrapper-options.js +6 -6
  423. package/lib/helpers/get-click-wrapper-options.js.map +1 -1
  424. package/lib/helpers/get-current-offset.js +4 -5
  425. package/lib/helpers/get-current-offset.js.map +1 -1
  426. package/lib/helpers/get-dictionary-match.js.map +1 -1
  427. package/lib/helpers/get-display-count-data.js.map +1 -1
  428. package/lib/helpers/get-elasticsearch-operator.js.map +1 -1
  429. package/lib/helpers/get-entities-with-banner.js +5 -5
  430. package/lib/helpers/get-entities-with-banner.js.map +1 -1
  431. package/lib/helpers/get-entity-data.js.map +1 -1
  432. package/lib/helpers/get-entity-render-props.js.map +1 -1
  433. package/lib/helpers/get-extra-az-bits.js.map +1 -1
  434. package/lib/helpers/get-filter-props.js.map +1 -1
  435. package/lib/helpers/get-filter-relation-keys.js +1 -1
  436. package/lib/helpers/get-filter-relation-keys.js.map +1 -1
  437. package/lib/helpers/get-generic-props.js +5 -5
  438. package/lib/helpers/get-generic-props.js.map +1 -1
  439. package/lib/helpers/get-generic-render-variables.js +7 -6
  440. package/lib/helpers/get-generic-render-variables.js.map +1 -1
  441. package/lib/helpers/get-image-ids.js +2 -2
  442. package/lib/helpers/get-image-ids.js.map +1 -1
  443. package/lib/helpers/get-inherited-filters.js +2 -2
  444. package/lib/helpers/get-inherited-filters.js.map +1 -1
  445. package/lib/helpers/get-items-to-display-ids.js +2 -2
  446. package/lib/helpers/get-items-to-display-ids.js.map +1 -1
  447. package/lib/helpers/get-modifiers.js +3 -3
  448. package/lib/helpers/get-modifiers.js.map +1 -1
  449. package/lib/helpers/get-not-equal-query.js.map +1 -1
  450. package/lib/helpers/get-pagination-index.js.map +1 -1
  451. package/lib/helpers/get-parsed-prop-values.js +3 -3
  452. package/lib/helpers/get-parsed-prop-values.js.map +1 -1
  453. package/lib/helpers/get-parsed-summary-value.js.map +1 -1
  454. package/lib/helpers/get-prop-values.js +2 -2
  455. package/lib/helpers/get-prop-values.js.map +1 -1
  456. package/lib/helpers/get-query-filters.js.map +1 -1
  457. package/lib/helpers/get-query-props.js +3 -3
  458. package/lib/helpers/get-query-props.js.map +1 -1
  459. package/lib/helpers/get-required-schemas.js +3 -3
  460. package/lib/helpers/get-required-schemas.js.map +1 -1
  461. package/lib/helpers/get-sanitized-prop-values.js.map +1 -1
  462. package/lib/helpers/get-search-filter-type.js.map +1 -1
  463. package/lib/helpers/get-sort-by-field-name.js +4 -4
  464. package/lib/helpers/get-sort-by-field-name.js.map +1 -1
  465. package/lib/helpers/get-unpublished-entity-name.js +1 -1
  466. package/lib/helpers/get-unpublished-entity-name.js.map +1 -1
  467. package/lib/helpers/get-updated-filter-by.js.map +1 -1
  468. package/lib/helpers/get-updated-items-to-display.js +3 -3
  469. package/lib/helpers/get-updated-items-to-display.js.map +1 -1
  470. package/lib/helpers/get-updated-sort-properties.js +2 -2
  471. package/lib/helpers/get-updated-sort-properties.js.map +1 -1
  472. package/lib/helpers/get-wrapped-value-with-link.js +2 -1
  473. package/lib/helpers/get-wrapped-value-with-link.js.map +1 -1
  474. package/lib/helpers/group-entities.js +1 -1
  475. package/lib/helpers/group-entities.js.map +1 -1
  476. package/lib/helpers/has-children.js.map +1 -1
  477. package/lib/helpers/index.js.map +1 -1
  478. package/lib/helpers/inject-banner.js.map +1 -1
  479. package/lib/helpers/inject-banners-to-entities.js.map +1 -1
  480. package/lib/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js +1 -0
  481. package/lib/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.map +1 -1
  482. package/lib/helpers/inject-multiple-banners/get-banners-for-entities/index.js.map +1 -1
  483. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js +6 -6
  484. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.map +1 -1
  485. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js +3 -3
  486. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js.map +1 -1
  487. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js.map +1 -1
  488. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/index.js.map +1 -1
  489. package/lib/helpers/inject-multiple-banners/index.js.map +1 -1
  490. package/lib/helpers/inject-multiple-banners/inject-multiple-banners.js.map +1 -1
  491. package/lib/helpers/is-browser.js.map +1 -1
  492. package/lib/helpers/is-filter-entitys-id.js +1 -1
  493. package/lib/helpers/is-filter-entitys-id.js.map +1 -1
  494. package/lib/helpers/is-object.js.map +1 -1
  495. package/lib/helpers/is-using-relation-image.js.map +1 -1
  496. package/lib/helpers/parse-TextBlock.js +3 -3
  497. package/lib/helpers/parse-TextBlock.js.map +1 -1
  498. package/lib/helpers/parse-interval.js.map +1 -1
  499. package/lib/helpers/parse-props-to-display.js +5 -5
  500. package/lib/helpers/parse-props-to-display.js.map +1 -1
  501. package/lib/helpers/process-data-summary-value.js +9 -10
  502. package/lib/helpers/process-data-summary-value.js.map +1 -1
  503. package/lib/helpers/remove-extra-items.js.map +1 -1
  504. package/lib/helpers/remove-unwanted-characters.js +6 -6
  505. package/lib/helpers/remove-unwanted-characters.js.map +1 -1
  506. package/lib/helpers/render-children.js +8 -8
  507. package/lib/helpers/render-children.js.map +1 -1
  508. package/lib/helpers/should-render-waypoint.js.map +1 -1
  509. package/lib/helpers/should-return.js.map +1 -1
  510. package/lib/helpers/should-show-property.js.map +1 -1
  511. package/lib/helpers/should-skip-single-query.js.map +1 -1
  512. package/lib/helpers/sort-response-data.js +2 -2
  513. package/lib/helpers/sort-response-data.js.map +1 -1
  514. package/lib/helpers/split-children.js +5 -5
  515. package/lib/helpers/split-children.js.map +1 -1
  516. package/lib/helpers/update-childrens-parent.js +3 -3
  517. package/lib/helpers/update-childrens-parent.js.map +1 -1
  518. package/lib/hooks/helpers/RenderComponent.js +1 -1
  519. package/lib/hooks/helpers/RenderComponent.js.map +1 -1
  520. package/lib/hooks/helpers/StoreImages.js +5 -6
  521. package/lib/hooks/helpers/StoreImages.js.map +1 -1
  522. package/lib/hooks/helpers/append-gtm-classname.js +7 -7
  523. package/lib/hooks/helpers/append-gtm-classname.js.map +1 -1
  524. package/lib/hooks/helpers/buildPBComponents.js +7 -7
  525. package/lib/hooks/helpers/buildPBComponents.js.map +1 -1
  526. package/lib/hooks/helpers/check-banner-insertion-set.js.map +1 -1
  527. package/lib/hooks/helpers/check-collisions.js +3 -3
  528. package/lib/hooks/helpers/check-collisions.js.map +1 -1
  529. package/lib/hooks/helpers/constants.js.map +1 -1
  530. package/lib/hooks/helpers/get-banner-index.js.map +1 -1
  531. package/lib/hooks/helpers/get-components-to-insert-by-type.js.map +1 -1
  532. package/lib/hooks/helpers/get-lightbox-images.js +14 -14
  533. package/lib/hooks/helpers/get-lightbox-images.js.map +1 -1
  534. package/lib/hooks/helpers/getComponent.js.map +1 -1
  535. package/lib/hooks/helpers/getVariant.js.map +1 -1
  536. package/lib/hooks/helpers/index.js.map +1 -1
  537. package/lib/hooks/helpers/inject-element-components.js +4 -4
  538. package/lib/hooks/helpers/inject-element-components.js.map +1 -1
  539. package/lib/hooks/helpers/inject-textblock-banners.js +8 -8
  540. package/lib/hooks/helpers/inject-textblock-banners.js.map +1 -1
  541. package/lib/hooks/helpers/insert-banners.js +9 -9
  542. package/lib/hooks/helpers/insert-banners.js.map +1 -1
  543. package/lib/hooks/helpers/update-targetings.js.map +1 -1
  544. package/lib/hooks/index.js.map +1 -1
  545. package/lib/hooks/use-app-sync-event-hook.js.map +1 -1
  546. package/lib/hooks/use-banner-insertion.js +1 -1
  547. package/lib/hooks/use-banner-insertion.js.map +1 -1
  548. package/lib/hooks/use-check-mobile-screen.js.map +1 -1
  549. package/lib/hooks/use-filter-aggregation-values.js +5 -5
  550. package/lib/hooks/use-filter-aggregation-values.js.map +1 -1
  551. package/lib/hooks/use-get-entity-schema.js.map +1 -1
  552. package/lib/hooks/use-get-entity-schemas-as-obj.js +1 -1
  553. package/lib/hooks/use-get-entity-schemas-as-obj.js.map +1 -1
  554. package/lib/hooks/use-get-image-id-from-relation.js +1 -1
  555. package/lib/hooks/use-get-image-id-from-relation.js.map +1 -1
  556. package/lib/hooks/use-get-images.js.map +1 -1
  557. package/lib/hooks/use-get-single-entity-schema.js.map +1 -1
  558. package/lib/hooks/use-page-builder.js +2 -2
  559. package/lib/hooks/use-page-builder.js.map +1 -1
  560. package/lib/hooks/use-portal.js +3 -3
  561. package/lib/hooks/use-portal.js.map +1 -1
  562. package/lib/index.js.map +1 -1
  563. package/lib/utils/component-map.js +1 -1
  564. package/lib/utils/component-map.js.map +1 -1
  565. package/lib/utils/get-class-modifiers.js +7 -7
  566. package/lib/utils/get-class-modifiers.js.map +1 -1
  567. package/lib/utils/get-image-data.js.map +1 -1
  568. package/lib/utils/get-props-to-display-modifiers.js +1 -0
  569. package/lib/utils/get-props-to-display-modifiers.js.map +1 -1
  570. package/lib/utils/index.js.map +1 -1
  571. package/lib/utils/is-object-empty.js.map +1 -1
  572. package/lib/utils/variant-handler.js +1 -1
  573. package/lib/utils/variant-handler.js.map +1 -1
  574. package/lib/variants/FloatingSideButton/index.js +5 -5
  575. package/lib/variants/FloatingSideButton/index.js.map +1 -1
  576. package/lib/variants/HeroImage/index.js +5 -5
  577. package/lib/variants/HeroImage/index.js.map +1 -1
  578. package/lib/variants/Infographic/Infographic.js.map +1 -1
  579. package/lib/variants/Infographic/index.js +7 -7
  580. package/lib/variants/Infographic/index.js.map +1 -1
  581. package/lib/variants/Infographic/useInfographic.js +5 -5
  582. package/lib/variants/Infographic/useInfographic.js.map +1 -1
  583. package/lib/variants/LongformGallery/LongformGallery.js +1 -0
  584. package/lib/variants/LongformGallery/LongformGallery.js.map +1 -1
  585. package/lib/variants/LongformGallery/LongformGalleryImage.js.map +1 -1
  586. package/lib/variants/LongformGallery/constants.js.map +1 -1
  587. package/lib/variants/LongformGallery/helpers/index.js.map +1 -1
  588. package/lib/variants/LongformGallery/helpers/parseImageData.js +3 -3
  589. package/lib/variants/LongformGallery/helpers/parseImageData.js.map +1 -1
  590. package/lib/variants/LongformGallery/helpers/separateImages.js.map +1 -1
  591. package/lib/variants/LongformGallery/helpers/shouldSkip.js.map +1 -1
  592. package/lib/variants/LongformGallery/index.js +8 -8
  593. package/lib/variants/LongformGallery/index.js.map +1 -1
  594. package/lib/variants/LongformGallery/useLongformGallery.js.map +1 -1
  595. package/lib/variants/LongformRow/index.js +5 -5
  596. package/lib/variants/LongformRow/index.js.map +1 -1
  597. package/lib/variants/ParallaxImageTextRight/index.js +5 -5
  598. package/lib/variants/ParallaxImageTextRight/index.js.map +1 -1
  599. package/lib/variants/SlideSummary/SlideSummary.js.map +1 -1
  600. package/lib/variants/SlideSummary/index.js +7 -7
  601. package/lib/variants/SlideSummary/index.js.map +1 -1
  602. package/lib/variants/ThumbnailCarousel/ThumbnailCarousel.js +1 -0
  603. package/lib/variants/ThumbnailCarousel/ThumbnailCarousel.js.map +1 -1
  604. package/lib/variants/ThumbnailCarousel/ThumbnailImage/ThumbnailImage.js.map +1 -1
  605. package/lib/variants/ThumbnailCarousel/ThumbnailImage/index.js.map +1 -1
  606. package/lib/variants/ThumbnailCarousel/ThumbnailImage/useThumbnailImage.js.map +1 -1
  607. package/lib/variants/ThumbnailCarousel/index.js +7 -7
  608. package/lib/variants/ThumbnailCarousel/index.js.map +1 -1
  609. package/lib/variants/ThumbnailCarousel/useThumbnailCarousel.js +5 -5
  610. package/lib/variants/ThumbnailCarousel/useThumbnailCarousel.js.map +1 -1
  611. package/lib/variants/index.js.map +1 -1
  612. package/lib-es/BannerContext/helpers/index.js.map +1 -1
  613. package/lib-es/BannerContext/helpers/set-initial-banner-counters.js.map +1 -1
  614. package/lib-es/BannerContext/index.js.map +1 -1
  615. package/lib-es/HOC/index.js.map +1 -1
  616. package/lib-es/HOC/recreateOnNavigation.js.map +1 -1
  617. package/lib-es/HOC/withInfiniteScroll.js.map +1 -1
  618. package/lib-es/HOC/withTitle.js.map +1 -1
  619. package/lib-es/PBContext/index.js.map +1 -1
  620. package/lib-es/application/query/index.js.map +1 -1
  621. package/lib-es/components/BackToTop/BackToTop.js.map +1 -1
  622. package/lib-es/components/BackToTop/index.js.map +1 -1
  623. package/lib-es/components/Banner/AdSlotRender.js.map +1 -1
  624. package/lib-es/components/Banner/Banner.js.map +1 -1
  625. package/lib-es/components/Banner/BannerRender.js.map +1 -1
  626. package/lib-es/components/Banner/helpers.js.map +1 -1
  627. package/lib-es/components/Banner/index.js +1 -1
  628. package/lib-es/components/Banner/index.js.map +1 -1
  629. package/lib-es/components/BlazeLink.js.map +1 -1
  630. package/lib-es/components/Breadcrumb/Breadcrumb.js.map +1 -1
  631. package/lib-es/components/Breadcrumb/index.js.map +1 -1
  632. package/lib-es/components/Button.js.map +1 -1
  633. package/lib-es/components/Card/Card.js.map +1 -1
  634. package/lib-es/components/Card/CardsContainer.js.map +1 -1
  635. package/lib-es/components/Card/CardsFactory.js.map +1 -1
  636. package/lib-es/components/Card/CardsRender.js.map +1 -1
  637. package/lib-es/components/Card/constants.js.map +1 -1
  638. package/lib-es/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -1
  639. package/lib-es/components/Card/helpers/get-published-listing-url.js.map +1 -1
  640. package/lib-es/components/Card/helpers/index.js.map +1 -1
  641. package/lib-es/components/Card/helpers/use-dynamic-size-key.js.map +1 -1
  642. package/lib-es/components/Card/index.js.map +1 -1
  643. package/lib-es/components/Carousel/Carousel.js.map +1 -1
  644. package/lib-es/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
  645. package/lib-es/components/Carousel/CarouselImage/constants.js.map +1 -1
  646. package/lib-es/components/Carousel/CarouselImage/index.js.map +1 -1
  647. package/lib-es/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
  648. package/lib-es/components/Carousel/CarouselRender/index.js.map +1 -1
  649. package/lib-es/components/Carousel/hooks/useCarouselNavigation.js.map +1 -1
  650. package/lib-es/components/Carousel/index.js.map +1 -1
  651. package/lib-es/components/CarouselWrapper/CarouselWrapper.js.map +1 -1
  652. package/lib-es/components/CarouselWrapper/DefaultCarousel.js.map +1 -1
  653. package/lib-es/components/CarouselWrapper/SmoothScrollCarousel.js.map +1 -1
  654. package/lib-es/components/CarouselWrapper/index.js.map +1 -1
  655. package/lib-es/components/ClickWrapper.js.map +1 -1
  656. package/lib-es/components/Code/Code.js.map +1 -1
  657. package/lib-es/components/Code/ScriptTag.js.map +1 -1
  658. package/lib-es/components/Code/helpers/index.js.map +1 -1
  659. package/lib-es/components/Code/helpers/wrap-script-tags.js.map +1 -1
  660. package/lib-es/components/Code/index.js.map +1 -1
  661. package/lib-es/components/ContentGroup/ContentGroup.js.map +1 -1
  662. package/lib-es/components/ContentGroup/ContentGroupTabs.js.map +1 -1
  663. package/lib-es/components/ContentGroup/constants.js.map +1 -1
  664. package/lib-es/components/ContentGroup/helpers/get-active-tab.js.map +1 -1
  665. package/lib-es/components/ContentGroup/helpers/get-sections-data.js.map +1 -1
  666. package/lib-es/components/ContentGroup/helpers/index.js.map +1 -1
  667. package/lib-es/components/ContentGroup/index.js.map +1 -1
  668. package/lib-es/components/ContentGroupSection/ContentGroupSection.js.map +1 -1
  669. package/lib-es/components/ContentGroupSection/index.js.map +1 -1
  670. package/lib-es/components/DataSummary/DataSummaryFactory.js.map +1 -1
  671. package/lib-es/components/DataSummary/DataSummaryRender.js.map +1 -1
  672. package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -1
  673. package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
  674. package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js.map +1 -1
  675. package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map +1 -1
  676. package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
  677. package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js.map +1 -1
  678. package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.map +1 -1
  679. package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
  680. package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/index.js.map +1 -1
  681. package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.map +1 -1
  682. package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
  683. package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/index.js.map +1 -1
  684. package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.map +1 -1
  685. package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
  686. package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/index.js.map +1 -1
  687. package/lib-es/components/DataSummary/DataSummaryTypes/index.js +5 -5
  688. package/lib-es/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
  689. package/lib-es/components/DataSummary/helpers/build-loop-props-content.js.map +1 -1
  690. package/lib-es/components/DataSummary/helpers/build-props-to-display-with-content.js.map +1 -1
  691. package/lib-es/components/DataSummary/helpers/get-data-summary-query.js.map +1 -1
  692. package/lib-es/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -1
  693. package/lib-es/components/DataSummary/helpers/get-link-props.js.map +1 -1
  694. package/lib-es/components/DataSummary/helpers/get-link-to-published-content.js.map +1 -1
  695. package/lib-es/components/DataSummary/helpers/get-loop-props-limit.js.map +1 -1
  696. package/lib-es/components/DataSummary/helpers/get-prop-value.js.map +1 -1
  697. package/lib-es/components/DataSummary/helpers/get-value-from-array.js.map +1 -1
  698. package/lib-es/components/DataSummary/helpers/index.js.map +1 -1
  699. package/lib-es/components/DataSummary/helpers/parse-boolean-values.js.map +1 -1
  700. package/lib-es/components/DataSummary/helpers/strip-summary-props-content.js.map +1 -1
  701. package/lib-es/components/DataSummary/index.js.map +1 -1
  702. package/lib-es/components/DateTime/DateTime.js +4 -4
  703. package/lib-es/components/DateTime/DateTime.js.map +1 -1
  704. package/lib-es/components/DateTime/index.js.map +1 -1
  705. package/lib-es/components/EmailConfirm/EmailConfirm.js +4 -4
  706. package/lib-es/components/EmailConfirm/EmailConfirm.js.map +1 -1
  707. package/lib-es/components/EmailConfirm/index.js.map +1 -1
  708. package/lib-es/components/EmailConfirm/mutation.js.map +1 -1
  709. package/lib-es/components/Iframe/Iframe.js.map +1 -1
  710. package/lib-es/components/Iframe/constants.js.map +1 -1
  711. package/lib-es/components/Iframe/index.js.map +1 -1
  712. package/lib-es/components/Image/GlobalLightbox/GlobalLightbox.js +3 -3
  713. package/lib-es/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
  714. package/lib-es/components/Image/GlobalLightbox/NavButton.js.map +1 -1
  715. package/lib-es/components/Image/GlobalLightbox/index.js +1 -1
  716. package/lib-es/components/Image/GlobalLightbox/index.js.map +1 -1
  717. package/lib-es/components/Image/Image.js.map +1 -1
  718. package/lib-es/components/Image/ImageDetails.js.map +1 -1
  719. package/lib-es/components/Image/ImageFactory.js.map +1 -1
  720. package/lib-es/components/Image/ImageRender.js.map +1 -1
  721. package/lib-es/components/Image/Lightbox/Lightbox.js.map +1 -1
  722. package/lib-es/components/Image/Lightbox/index.js.map +1 -1
  723. package/lib-es/components/Image/index.js.map +1 -1
  724. package/lib-es/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
  725. package/lib-es/components/ItemList/ItemListButton/index.js.map +1 -1
  726. package/lib-es/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
  727. package/lib-es/components/ItemList/ItemListCounter/index.js.map +1 -1
  728. package/lib-es/components/ItemList/ItemListNew/ItemListNew.js.map +1 -1
  729. package/lib-es/components/ItemList/ItemListNew/index.js.map +1 -1
  730. package/lib-es/components/ItemList/constants.js.map +1 -1
  731. package/lib-es/components/ItemList/helpers/get-item-list-data.js.map +1 -1
  732. package/lib-es/components/ItemList/helpers/get-item-list-id.js.map +1 -1
  733. package/lib-es/components/ItemList/helpers/get-item-list-ids.js.map +1 -1
  734. package/lib-es/components/ItemList/helpers/index.js.map +1 -1
  735. package/lib-es/components/ItemList/helpers/set-item-list-id.js.map +1 -1
  736. package/lib-es/components/ItemList/helpers/set-param-and-redirect.js.map +1 -1
  737. package/lib-es/components/ItemList/hooks/index.js.map +1 -1
  738. package/lib-es/components/ItemList/hooks/use-item-list-id.js.map +1 -1
  739. package/lib-es/components/Layout/Layout.js.map +1 -1
  740. package/lib-es/components/Layout/LayoutFactory.js +1 -1
  741. package/lib-es/components/Layout/LayoutFactory.js.map +1 -1
  742. package/lib-es/components/Layout/LayoutWithStickyTimer.js.map +1 -1
  743. package/lib-es/components/Layout/constants.js.map +1 -1
  744. package/lib-es/components/Layout/helpers/check-if-row-has-columns.js.map +1 -1
  745. package/lib-es/components/Layout/helpers/get-styles-to-update.js.map +1 -1
  746. package/lib-es/components/Layout/helpers/index.js.map +1 -1
  747. package/lib-es/components/Layout/index.js.map +1 -1
  748. package/lib-es/components/LazyImage/LazyImage.js.map +1 -1
  749. package/lib-es/components/LazyImage/index.js +1 -1
  750. package/lib-es/components/LazyImage/index.js.map +1 -1
  751. package/lib-es/components/List/ListBuilder.js.map +1 -1
  752. package/lib-es/components/List/ListFactory.js.map +1 -1
  753. package/lib-es/components/List/ListRender.js.map +1 -1
  754. package/lib-es/components/List/components/Cards/CardRenderWithInfiniteScroll.js.map +1 -1
  755. package/lib-es/components/List/components/Cards/CardsRender.js.map +1 -1
  756. package/lib-es/components/List/components/Cards/CardsRenderItem.js.map +1 -1
  757. package/lib-es/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
  758. package/lib-es/components/List/components/Cards/index.js.map +1 -1
  759. package/lib-es/components/List/components/Full/FullRender.js.map +1 -1
  760. package/lib-es/components/List/components/Full/FullRenderItem.js.map +1 -1
  761. package/lib-es/components/List/components/Full/FullRenderWithInfiniteScroll.js.map +1 -1
  762. package/lib-es/components/List/components/Full/index.js.map +1 -1
  763. package/lib-es/components/List/components/Header/ListHeader.js.map +1 -1
  764. package/lib-es/components/List/components/Header/index.js.map +1 -1
  765. package/lib-es/components/List/components/Pagination/Classic.js.map +1 -1
  766. package/lib-es/components/List/components/Pagination/ListPagination.js.map +1 -1
  767. package/lib-es/components/List/components/Pagination/LoadMore.js +2 -2
  768. package/lib-es/components/List/components/Pagination/LoadMore.js.map +1 -1
  769. package/lib-es/components/List/components/Pagination/index.js.map +1 -1
  770. package/lib-es/components/List/components/helpers/check-if-should-render-banner.js.map +1 -1
  771. package/lib-es/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -1
  772. package/lib-es/components/List/components/helpers/index.js.map +1 -1
  773. package/lib-es/components/List/components/index.js.map +1 -1
  774. package/lib-es/components/List/constants.js.map +1 -1
  775. package/lib-es/components/List/helpers/build-az-aggregations.js.map +1 -1
  776. package/lib-es/components/List/helpers/build-az-url.js.map +1 -1
  777. package/lib-es/components/List/helpers/build-pagination-items.js.map +1 -1
  778. package/lib-es/components/List/helpers/build-pagination-url.js.map +1 -1
  779. package/lib-es/components/List/helpers/build-query-booster.js.map +1 -1
  780. package/lib-es/components/List/helpers/get-az-query-filter.js.map +1 -1
  781. package/lib-es/components/List/helpers/get-items-per-page-to-use.js.map +1 -1
  782. package/lib-es/components/List/helpers/get-list-component.js.map +1 -1
  783. package/lib-es/components/List/helpers/get-list-query.js.map +1 -1
  784. package/lib-es/components/List/helpers/get-list-specific-search-filter.js.map +1 -1
  785. package/lib-es/components/List/helpers/get-sort-props.js.map +1 -1
  786. package/lib-es/components/List/helpers/has-required-item-list-details.js.map +1 -1
  787. package/lib-es/components/List/helpers/index.js.map +1 -1
  788. package/lib-es/components/List/helpers/sort-aggs.js.map +1 -1
  789. package/lib-es/components/List/helpers/strip-query-key.js.map +1 -1
  790. package/lib-es/components/List/index.js.map +1 -1
  791. package/lib-es/components/Loading/Loading.js.map +1 -1
  792. package/lib-es/components/Loading/constants.js.map +1 -1
  793. package/lib-es/components/Loading/helpers.js.map +1 -1
  794. package/lib-es/components/Loading/index.js.map +1 -1
  795. package/lib-es/components/Menu/Menu.js +1 -4
  796. package/lib-es/components/Menu/Menu.js.map +1 -1
  797. package/lib-es/components/Menu/MenuContext.js +1 -2
  798. package/lib-es/components/Menu/MenuContext.js.map +1 -1
  799. package/lib-es/components/Menu/index.js.map +1 -1
  800. package/lib-es/components/MenuItem/MenuEntitiesItem.js.map +1 -1
  801. package/lib-es/components/MenuItem/MenuItem.js.map +1 -1
  802. package/lib-es/components/MenuItem/MenuItemRender.js +7 -20
  803. package/lib-es/components/MenuItem/MenuItemRender.js.map +1 -1
  804. package/lib-es/components/MenuItem/helpers/index.js +1 -3
  805. package/lib-es/components/MenuItem/helpers/index.js.map +1 -1
  806. package/lib-es/components/MenuItem/helpers/inject-helper-into-template.js.map +1 -1
  807. package/lib-es/components/MenuItem/index.js.map +1 -1
  808. package/lib-es/components/Modal/Modal.js.map +1 -1
  809. package/lib-es/components/Modal/index.js.map +1 -1
  810. package/lib-es/components/ModalAdapter/ModalAdapter.js +1 -1
  811. package/lib-es/components/ModalAdapter/ModalAdapter.js.map +1 -1
  812. package/lib-es/components/ModalAdapter/index.js +1 -1
  813. package/lib-es/components/ModalAdapter/index.js.map +1 -1
  814. package/lib-es/components/SearchContent/SearchContent.js.map +1 -1
  815. package/lib-es/components/SearchContent/SearchContentItems.js.map +1 -1
  816. package/lib-es/components/SearchContent/SearchContentResults.js.map +1 -1
  817. package/lib-es/components/SearchContent/SearchContentToggleIcon.js.map +1 -1
  818. package/lib-es/components/SearchContent/constants.js.map +1 -1
  819. package/lib-es/components/SearchContent/index.js.map +1 -1
  820. package/lib-es/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
  821. package/lib-es/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
  822. package/lib-es/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -1
  823. package/lib-es/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
  824. package/lib-es/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
  825. package/lib-es/components/SearchFilter/SearchFilter/index.js.map +1 -1
  826. package/lib-es/components/SearchFilter/SearchFilterContainer.js.map +1 -1
  827. package/lib-es/components/SearchFilter/components/Checkbox.js.map +1 -1
  828. package/lib-es/components/SearchFilter/components/Range.js.map +1 -1
  829. package/lib-es/components/SearchFilter/components/Select.js.map +1 -1
  830. package/lib-es/components/SearchFilter/components/TextSearch.js.map +1 -1
  831. package/lib-es/components/SearchFilter/components/index.js.map +1 -1
  832. package/lib-es/components/SearchFilter/constants.js.map +1 -1
  833. package/lib-es/components/SearchFilter/helpers/build-list-name-query.js.map +1 -1
  834. package/lib-es/components/SearchFilter/helpers/build-new-url.js.map +1 -1
  835. package/lib-es/components/SearchFilter/helpers/build-url-query.js.map +1 -1
  836. package/lib-es/components/SearchFilter/helpers/calculate-min-max.js.map +1 -1
  837. package/lib-es/components/SearchFilter/helpers/calculate-step.js.map +1 -1
  838. package/lib-es/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -1
  839. package/lib-es/components/SearchFilter/helpers/decode-encode.js.map +1 -1
  840. package/lib-es/components/SearchFilter/helpers/get-display-value.js.map +1 -1
  841. package/lib-es/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js.map +1 -1
  842. package/lib-es/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
  843. package/lib-es/components/SearchFilter/helpers/get-filter-values.js.map +1 -1
  844. package/lib-es/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -1
  845. package/lib-es/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -1
  846. package/lib-es/components/SearchFilter/helpers/get-range-value.js.map +1 -1
  847. package/lib-es/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
  848. package/lib-es/components/SearchFilter/helpers/get-select-options.js.map +1 -1
  849. package/lib-es/components/SearchFilter/helpers/get-updated-filter-by.js.map +1 -1
  850. package/lib-es/components/SearchFilter/helpers/index.js.map +1 -1
  851. package/lib-es/components/SearchFilter/helpers/is-device-desktop.js.map +1 -1
  852. package/lib-es/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
  853. package/lib-es/components/SearchFilter/index.js.map +1 -1
  854. package/lib-es/components/SearchFilter/searchFilterReducer.js.map +1 -1
  855. package/lib-es/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
  856. package/lib-es/components/SearchFilterSort/constants.js.map +1 -1
  857. package/lib-es/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
  858. package/lib-es/components/SearchFilterSort/helpers/index.js.map +1 -1
  859. package/lib-es/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
  860. package/lib-es/components/SearchFilterSort/index.js.map +1 -1
  861. package/lib-es/components/SocialFollow/SFItem.js.map +1 -1
  862. package/lib-es/components/SocialFollow/SocialFollow.js.map +1 -1
  863. package/lib-es/components/SocialFollow/SocialFollowRender.js.map +1 -1
  864. package/lib-es/components/SocialFollow/index.js.map +1 -1
  865. package/lib-es/components/SocialFollow/sf.config.js.map +1 -1
  866. package/lib-es/components/SubMenu/SubMenu.js.map +1 -1
  867. package/lib-es/components/SubMenu/index.js.map +1 -1
  868. package/lib-es/components/TextBlock/TextBlockRender.js.map +1 -1
  869. package/lib-es/components/TextBlock/index.js.map +1 -1
  870. package/lib-es/components/Video/Video.js.map +1 -1
  871. package/lib-es/components/Video/VideoContext.js.map +1 -1
  872. package/lib-es/components/Video/VideoModal.js.map +1 -1
  873. package/lib-es/components/Video/VideoRender.js.map +1 -1
  874. package/lib-es/components/Video/constants.js.map +1 -1
  875. package/lib-es/components/Video/helpers/emit-gtm-event.js.map +1 -1
  876. package/lib-es/components/Video/index.js.map +1 -1
  877. package/lib-es/components/Video/providers/Default.js.map +1 -1
  878. package/lib-es/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
  879. package/lib-es/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
  880. package/lib-es/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
  881. package/lib-es/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js.map +1 -1
  882. package/lib-es/components/Video/providers/Vimeo/helpers/index.js.map +1 -1
  883. package/lib-es/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
  884. package/lib-es/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
  885. package/lib-es/components/Video/providers/YouTube/helpers/index.js.map +1 -1
  886. package/lib-es/components/Video/providers/get-provider.js +5 -5
  887. package/lib-es/components/Video/providers/get-provider.js.map +1 -1
  888. package/lib-es/components/Video/providers/index.js.map +1 -1
  889. package/lib-es/components/Wrapper.js +2 -2
  890. package/lib-es/components/Wrapper.js.map +1 -1
  891. package/lib-es/components/index.js +30 -30
  892. package/lib-es/components/index.js.map +1 -1
  893. package/lib-es/constants/componentsDefaultValues.js.map +1 -1
  894. package/lib-es/constants/index.js.map +1 -1
  895. package/lib-es/helpers/append-images.js.map +1 -1
  896. package/lib-es/helpers/build-az-filter.js.map +1 -1
  897. package/lib-es/helpers/build-checkbox-filters.js.map +1 -1
  898. package/lib-es/helpers/build-filters-query.js.map +1 -1
  899. package/lib-es/helpers/build-image-properties.js.map +1 -1
  900. package/lib-es/helpers/build-inherited-filters.js.map +1 -1
  901. package/lib-es/helpers/build-link-extra-props.js.map +1 -1
  902. package/lib-es/helpers/build-props-query.js.map +1 -1
  903. package/lib-es/helpers/build-query-fields.js.map +1 -1
  904. package/lib-es/helpers/build-query-key.js.map +1 -1
  905. package/lib-es/helpers/build-raw-query-base.js.map +1 -1
  906. package/lib-es/helpers/build-raw-query-stringified.js.map +1 -1
  907. package/lib-es/helpers/build-raw-query.js.map +1 -1
  908. package/lib-es/helpers/build-search-values-checkbox-select.js +1 -1
  909. package/lib-es/helpers/build-search-values-checkbox-select.js.map +1 -1
  910. package/lib-es/helpers/build-search-values-text.js.map +1 -1
  911. package/lib-es/helpers/build-set-filters.js.map +1 -1
  912. package/lib-es/helpers/build-sort-values.js.map +1 -1
  913. package/lib-es/helpers/check-for-error.js.map +1 -1
  914. package/lib-es/helpers/check-props-to-use.js.map +1 -1
  915. package/lib-es/helpers/entities/constants.js.map +1 -1
  916. package/lib-es/helpers/filter-query-setup.js.map +1 -1
  917. package/lib-es/helpers/filters-setup.js.map +1 -1
  918. package/lib-es/helpers/get-banner-data.js.map +1 -1
  919. package/lib-es/helpers/get-checkbox-filters.js.map +1 -1
  920. package/lib-es/helpers/get-click-wrapper-options.js.map +1 -1
  921. package/lib-es/helpers/get-current-offset.js +1 -1
  922. package/lib-es/helpers/get-current-offset.js.map +1 -1
  923. package/lib-es/helpers/get-dictionary-match.js.map +1 -1
  924. package/lib-es/helpers/get-display-count-data.js.map +1 -1
  925. package/lib-es/helpers/get-elasticsearch-operator.js.map +1 -1
  926. package/lib-es/helpers/get-entities-with-banner.js.map +1 -1
  927. package/lib-es/helpers/get-entity-data.js.map +1 -1
  928. package/lib-es/helpers/get-entity-render-props.js.map +1 -1
  929. package/lib-es/helpers/get-extra-az-bits.js.map +1 -1
  930. package/lib-es/helpers/get-filter-props.js.map +1 -1
  931. package/lib-es/helpers/get-filter-relation-keys.js.map +1 -1
  932. package/lib-es/helpers/get-generic-props.js.map +1 -1
  933. package/lib-es/helpers/get-generic-render-variables.js.map +1 -1
  934. package/lib-es/helpers/get-image-ids.js.map +1 -1
  935. package/lib-es/helpers/get-inherited-filters.js.map +1 -1
  936. package/lib-es/helpers/get-items-to-display-ids.js.map +1 -1
  937. package/lib-es/helpers/get-modifiers.js.map +1 -1
  938. package/lib-es/helpers/get-not-equal-query.js.map +1 -1
  939. package/lib-es/helpers/get-pagination-index.js.map +1 -1
  940. package/lib-es/helpers/get-parsed-prop-values.js.map +1 -1
  941. package/lib-es/helpers/get-parsed-summary-value.js.map +1 -1
  942. package/lib-es/helpers/get-prop-values.js.map +1 -1
  943. package/lib-es/helpers/get-query-filters.js.map +1 -1
  944. package/lib-es/helpers/get-query-props.js.map +1 -1
  945. package/lib-es/helpers/get-required-schemas.js.map +1 -1
  946. package/lib-es/helpers/get-sanitized-prop-values.js.map +1 -1
  947. package/lib-es/helpers/get-search-filter-type.js.map +1 -1
  948. package/lib-es/helpers/get-sort-by-field-name.js.map +1 -1
  949. package/lib-es/helpers/get-unpublished-entity-name.js.map +1 -1
  950. package/lib-es/helpers/get-updated-filter-by.js.map +1 -1
  951. package/lib-es/helpers/get-updated-items-to-display.js.map +1 -1
  952. package/lib-es/helpers/get-updated-sort-properties.js.map +1 -1
  953. package/lib-es/helpers/get-wrapped-value-with-link.js.map +1 -1
  954. package/lib-es/helpers/group-entities.js.map +1 -1
  955. package/lib-es/helpers/has-children.js.map +1 -1
  956. package/lib-es/helpers/index.js.map +1 -1
  957. package/lib-es/helpers/inject-banner.js.map +1 -1
  958. package/lib-es/helpers/inject-banners-to-entities.js.map +1 -1
  959. package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.map +1 -1
  960. package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/index.js.map +1 -1
  961. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.map +1 -1
  962. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js.map +1 -1
  963. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js.map +1 -1
  964. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/index.js.map +1 -1
  965. package/lib-es/helpers/inject-multiple-banners/index.js.map +1 -1
  966. package/lib-es/helpers/inject-multiple-banners/inject-multiple-banners.js.map +1 -1
  967. package/lib-es/helpers/is-browser.js.map +1 -1
  968. package/lib-es/helpers/is-filter-entitys-id.js.map +1 -1
  969. package/lib-es/helpers/is-object.js.map +1 -1
  970. package/lib-es/helpers/is-using-relation-image.js.map +1 -1
  971. package/lib-es/helpers/parse-TextBlock.js.map +1 -1
  972. package/lib-es/helpers/parse-interval.js.map +1 -1
  973. package/lib-es/helpers/parse-props-to-display.js.map +1 -1
  974. package/lib-es/helpers/process-data-summary-value.js +1 -1
  975. package/lib-es/helpers/process-data-summary-value.js.map +1 -1
  976. package/lib-es/helpers/remove-extra-items.js.map +1 -1
  977. package/lib-es/helpers/remove-unwanted-characters.js.map +1 -1
  978. package/lib-es/helpers/render-children.js.map +1 -1
  979. package/lib-es/helpers/should-render-waypoint.js.map +1 -1
  980. package/lib-es/helpers/should-return.js.map +1 -1
  981. package/lib-es/helpers/should-show-property.js.map +1 -1
  982. package/lib-es/helpers/should-skip-single-query.js.map +1 -1
  983. package/lib-es/helpers/sort-response-data.js.map +1 -1
  984. package/lib-es/helpers/split-children.js.map +1 -1
  985. package/lib-es/helpers/update-childrens-parent.js.map +1 -1
  986. package/lib-es/hooks/helpers/RenderComponent.js.map +1 -1
  987. package/lib-es/hooks/helpers/StoreImages.js.map +1 -1
  988. package/lib-es/hooks/helpers/append-gtm-classname.js.map +1 -1
  989. package/lib-es/hooks/helpers/buildPBComponents.js.map +1 -1
  990. package/lib-es/hooks/helpers/check-banner-insertion-set.js.map +1 -1
  991. package/lib-es/hooks/helpers/check-collisions.js.map +1 -1
  992. package/lib-es/hooks/helpers/constants.js.map +1 -1
  993. package/lib-es/hooks/helpers/get-banner-index.js.map +1 -1
  994. package/lib-es/hooks/helpers/get-components-to-insert-by-type.js.map +1 -1
  995. package/lib-es/hooks/helpers/get-lightbox-images.js.map +1 -1
  996. package/lib-es/hooks/helpers/getComponent.js.map +1 -1
  997. package/lib-es/hooks/helpers/getVariant.js.map +1 -1
  998. package/lib-es/hooks/helpers/index.js.map +1 -1
  999. package/lib-es/hooks/helpers/inject-element-components.js.map +1 -1
  1000. package/lib-es/hooks/helpers/inject-textblock-banners.js +1 -1
  1001. package/lib-es/hooks/helpers/inject-textblock-banners.js.map +1 -1
  1002. package/lib-es/hooks/helpers/insert-banners.js.map +1 -1
  1003. package/lib-es/hooks/helpers/update-targetings.js.map +1 -1
  1004. package/lib-es/hooks/index.js.map +1 -1
  1005. package/lib-es/hooks/use-app-sync-event-hook.js.map +1 -1
  1006. package/lib-es/hooks/use-banner-insertion.js.map +1 -1
  1007. package/lib-es/hooks/use-check-mobile-screen.js.map +1 -1
  1008. package/lib-es/hooks/use-filter-aggregation-values.js.map +1 -1
  1009. package/lib-es/hooks/use-get-entity-schema.js.map +1 -1
  1010. package/lib-es/hooks/use-get-entity-schemas-as-obj.js.map +1 -1
  1011. package/lib-es/hooks/use-get-image-id-from-relation.js.map +1 -1
  1012. package/lib-es/hooks/use-get-images.js.map +1 -1
  1013. package/lib-es/hooks/use-get-single-entity-schema.js.map +1 -1
  1014. package/lib-es/hooks/use-page-builder.js +1 -1
  1015. package/lib-es/hooks/use-page-builder.js.map +1 -1
  1016. package/lib-es/hooks/use-portal.js.map +1 -1
  1017. package/lib-es/index.js.map +1 -1
  1018. package/lib-es/utils/component-map.js.map +1 -1
  1019. package/lib-es/utils/get-class-modifiers.js.map +1 -1
  1020. package/lib-es/utils/get-image-data.js.map +1 -1
  1021. package/lib-es/utils/get-props-to-display-modifiers.js.map +1 -1
  1022. package/lib-es/utils/index.js.map +1 -1
  1023. package/lib-es/utils/is-object-empty.js.map +1 -1
  1024. package/lib-es/utils/variant-handler.js.map +1 -1
  1025. package/lib-es/variants/FloatingSideButton/index.js.map +1 -1
  1026. package/lib-es/variants/HeroImage/index.js.map +1 -1
  1027. package/lib-es/variants/Infographic/Infographic.js.map +1 -1
  1028. package/lib-es/variants/Infographic/index.js +1 -1
  1029. package/lib-es/variants/Infographic/index.js.map +1 -1
  1030. package/lib-es/variants/Infographic/useInfographic.js.map +1 -1
  1031. package/lib-es/variants/LongformGallery/LongformGallery.js.map +1 -1
  1032. package/lib-es/variants/LongformGallery/LongformGalleryImage.js.map +1 -1
  1033. package/lib-es/variants/LongformGallery/constants.js.map +1 -1
  1034. package/lib-es/variants/LongformGallery/helpers/index.js.map +1 -1
  1035. package/lib-es/variants/LongformGallery/helpers/parseImageData.js.map +1 -1
  1036. package/lib-es/variants/LongformGallery/helpers/separateImages.js.map +1 -1
  1037. package/lib-es/variants/LongformGallery/helpers/shouldSkip.js.map +1 -1
  1038. package/lib-es/variants/LongformGallery/index.js +1 -1
  1039. package/lib-es/variants/LongformGallery/index.js.map +1 -1
  1040. package/lib-es/variants/LongformGallery/useLongformGallery.js.map +1 -1
  1041. package/lib-es/variants/LongformRow/index.js.map +1 -1
  1042. package/lib-es/variants/ParallaxImageTextRight/index.js.map +1 -1
  1043. package/lib-es/variants/SlideSummary/SlideSummary.js.map +1 -1
  1044. package/lib-es/variants/SlideSummary/index.js +1 -1
  1045. package/lib-es/variants/SlideSummary/index.js.map +1 -1
  1046. package/lib-es/variants/ThumbnailCarousel/ThumbnailCarousel.js.map +1 -1
  1047. package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/ThumbnailImage.js.map +1 -1
  1048. package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/index.js.map +1 -1
  1049. package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/useThumbnailImage.js.map +1 -1
  1050. package/lib-es/variants/ThumbnailCarousel/index.js +1 -1
  1051. package/lib-es/variants/ThumbnailCarousel/index.js.map +1 -1
  1052. package/lib-es/variants/ThumbnailCarousel/useThumbnailCarousel.js.map +1 -1
  1053. package/lib-es/variants/index.js.map +1 -1
  1054. package/package.json +20 -19
  1055. package/src/HOC/recreateOnNavigation.js +3 -3
  1056. package/src/HOC/withTitle.js +3 -3
  1057. package/src/components/BackToTop/BackToTop.js +5 -8
  1058. package/src/components/Banner/BannerRender.js +0 -2
  1059. package/src/components/Breadcrumb/Breadcrumb.js +5 -1
  1060. package/src/components/Button.js +3 -6
  1061. package/src/components/Card/CardsFactory.js +8 -7
  1062. package/src/components/Card/CardsRender.js +5 -3
  1063. package/src/components/CarouselWrapper/DefaultCarousel.js +20 -26
  1064. package/src/components/ContentGroup/ContentGroupTabs.js +4 -7
  1065. package/src/components/DataSummary/DataSummaryTypes/index.js +14 -10
  1066. package/src/components/DateTime/DateTime.js +4 -4
  1067. package/src/components/EmailConfirm/EmailConfirm.js +9 -11
  1068. package/src/components/Image/GlobalLightbox/GlobalLightbox.js +7 -9
  1069. package/src/components/Image/GlobalLightbox/index.js +2 -2
  1070. package/src/components/Image/Image.js +6 -4
  1071. package/src/components/Image/ImageFactory.js +5 -5
  1072. package/src/components/ItemList/hooks/use-item-list-id.js +10 -13
  1073. package/src/components/Layout/LayoutFactory.js +2 -2
  1074. package/src/components/Layout/LayoutWithStickyTimer.js +11 -14
  1075. package/src/components/List/ListFactory.js +10 -11
  1076. package/src/components/List/ListRender.js +6 -1
  1077. package/src/components/List/components/Pagination/ListPagination.js +3 -6
  1078. package/src/components/List/components/Pagination/LoadMore.js +7 -9
  1079. package/src/components/List/helpers/sort-aggs.js +1 -2
  1080. package/src/components/Menu/Menu.js +13 -19
  1081. package/src/components/Menu/MenuContext.js +1 -1
  1082. package/src/components/MenuItem/MenuItemRender.js +10 -30
  1083. package/src/components/MenuItem/helpers/index.js +1 -3
  1084. package/src/components/ModalAdapter/index.js +2 -2
  1085. package/src/components/SearchContent/SearchContent.js +26 -32
  1086. package/src/components/SearchFilter/SearchFilter/SearchFilter.js +15 -19
  1087. package/src/components/Video/providers/Vimeo/VimeoProvider.js +19 -22
  1088. package/src/components/Video/providers/YouTube/YoutubeEmbeded.js +58 -64
  1089. package/src/components/Video/providers/get-provider.js +4 -4
  1090. package/src/components/Wrapper.js +5 -7
  1091. package/src/components/index.js +20 -20
  1092. package/src/constants/index.js +2 -1
  1093. package/src/helpers/build-search-values-checkbox-select.js +1 -1
  1094. package/src/helpers/get-current-offset.js +1 -1
  1095. package/src/helpers/get-wrapped-value-with-link.js +1 -1
  1096. package/src/helpers/remove-unwanted-characters.js +1 -4
  1097. package/src/hooks/helpers/buildPBComponents.js +2 -4
  1098. package/src/hooks/helpers/get-components-to-insert-by-type.js +3 -1
  1099. package/src/hooks/helpers/inject-textblock-banners.js +2 -8
  1100. package/src/hooks/use-check-mobile-screen.js +5 -8
  1101. package/src/hooks/use-get-entity-schema.js +5 -1
  1102. package/src/hooks/use-get-image-id-from-relation.js +5 -1
  1103. package/src/hooks/use-page-builder.js +9 -12
  1104. package/src/variants/Infographic/index.js +2 -2
  1105. package/src/variants/LongformGallery/LongformGallery.js +2 -8
  1106. package/src/variants/LongformGallery/index.js +2 -2
  1107. package/src/variants/SlideSummary/index.js +2 -2
  1108. package/src/variants/ThumbnailCarousel/ThumbnailImage/ThumbnailImage.js +2 -3
  1109. package/src/variants/ThumbnailCarousel/index.js +2 -2
  1110. package/tests/unit/src/HOC/withTitle.test.js +11 -21
  1111. package/tests/unit/src/Layout/Layout.test.js +2 -1
  1112. package/tests/unit/src/Layout/helpers/check-if-row-has-columns.test.js +1 -0
  1113. package/tests/unit/src/components/Banner/AdSlotRender.test.js +4 -1
  1114. package/tests/unit/src/components/Banner/helpers.test.js +34 -7
  1115. package/tests/unit/src/components/BlazeLink.test.js +1 -4
  1116. package/tests/unit/src/components/Breadcrumb/__snapshots__/Breadcrumb.test.js.snap +18 -0
  1117. package/tests/unit/src/components/Card/Card.test.js +17 -4
  1118. package/tests/unit/src/components/Card/CardContainer.test.js +7 -1
  1119. package/tests/unit/src/components/Card/__snapshots__/Card.test.js.snap +15 -0
  1120. package/tests/unit/src/components/Card/__snapshots__/CardContainer.test.js.snap +12 -0
  1121. package/tests/unit/src/components/Card/mockData.js +2 -4
  1122. package/tests/unit/src/components/Carousel/CarouselRender/CarouselRender.test.js +47 -46
  1123. package/tests/unit/src/components/Carousel/CarouselRender/__snapshots__/CarouselRender.test.js.snap +45 -1
  1124. package/tests/unit/src/components/Carousel/CarouselRender/mocks.js +0 -0
  1125. package/tests/unit/src/components/Carousel/__snapshots__/Carousel.test.js.snap +1 -1
  1126. package/tests/unit/src/components/ContentGroup/ContentGroupTabs.test.js +4 -1
  1127. package/tests/unit/src/components/ContentGroup/helpers/get-sections-data.test.js +4 -1
  1128. package/tests/unit/src/components/DataSummary/__snapshots__/DataSummaryRender.test.js.snap +0 -1
  1129. package/tests/unit/src/components/DataSummary/helpers/build-props-to-display-with-content.test.js +5 -1
  1130. package/tests/unit/src/components/DataSummary/helpers/get-value-from-array.test.js +4 -1
  1131. package/tests/unit/src/components/DataSummary/helpers/strip-summary-props-content.test.js +8 -2
  1132. package/tests/unit/src/components/DataSummary/mockData.js +4 -1
  1133. package/tests/unit/src/components/Image/ImageFactory.test.js +4 -3
  1134. package/tests/unit/src/components/ItemList/ItemListCounter.test.js +2 -1
  1135. package/tests/unit/src/components/ItemList/hooks/use-item-list-id.test.js +1 -1
  1136. package/tests/unit/src/components/Layout/LayoutFactory.test.js +0 -4
  1137. package/tests/unit/src/components/List/components/Cards/CardsRender.test.js +8 -1
  1138. package/tests/unit/src/components/List/components/Pagination/Classic.test.js +1 -1
  1139. package/tests/unit/src/components/PlaceholderIcon/index.test.js +2 -2
  1140. package/tests/unit/src/components/SearchFilter/components/Range.test.js +5 -5
  1141. package/tests/unit/src/components/SearchFilter/components/__snapshots__/Range.test.js.snap +175 -190
  1142. package/tests/unit/src/components/SearchFilter/helpers/get-select-options.test.js +8 -2
  1143. package/tests/unit/src/components/TextBlock/TextBlock.test.js +1 -1
  1144. package/tests/unit/src/components/TextBlock/__snapshots__/TextBlock.test.js.snap +12 -0
  1145. package/tests/unit/src/helpers/__snapshots__/parse-textBlock.test.js.snap +3 -0
  1146. package/tests/unit/src/helpers/build-checkbox-filters.test.js +4 -1
  1147. package/tests/unit/src/helpers/get-dictionary-match.test.js +1 -1
  1148. package/tests/unit/src/helpers/parse-textBlock.test.js +3 -1
  1149. package/tests/unit/src/hooks/use-check-mobile-screen.test.js +3 -2
  1150. package/tests/unit/src/hooks/use-get-image-id-from-relation.test.js +3 -3
  1151. package/tests/unit/src/hooks/use-get-images.test.js +16 -14
  1152. package/tests/unit/src/hooks/use-get-single-entity-schema.test.js +6 -4
  1153. package/lib/components/MenuItem/helpers/has-active-child.js +0 -19
  1154. package/lib/components/MenuItem/helpers/has-active-child.js.map +0 -1
  1155. package/lib/components/MenuItem/helpers/isUrlPathMatch.js +0 -18
  1156. package/lib/components/MenuItem/helpers/isUrlPathMatch.js.map +0 -1
  1157. package/lib-es/components/MenuItem/helpers/has-active-child.js +0 -5
  1158. package/lib-es/components/MenuItem/helpers/has-active-child.js.map +0 -1
  1159. package/lib-es/components/MenuItem/helpers/isUrlPathMatch.js +0 -8
  1160. package/lib-es/components/MenuItem/helpers/isUrlPathMatch.js.map +0 -1
  1161. package/src/components/MenuItem/helpers/has-active-child.js +0 -10
  1162. package/src/components/MenuItem/helpers/isUrlPathMatch.js +0 -10
  1163. package/tests/unit/src/components/MenuItem/helpers/constants.js +0 -73
  1164. package/tests/unit/src/components/MenuItem/helpers/has-active-child.test.js +0 -35
  1165. package/tests/unit/src/components/MenuItem/helpers/is-url-path-match.test.js +0 -46
  1166. package/tests/unit/src/hooks/use-page-builder.test.js +0 -48
@@ -1,12 +1,12 @@
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", {
@@ -22,7 +22,7 @@ var _VideoContext = require("./VideoContext");
22
22
  var _emitGtmEvent = _interopRequireDefault(require("./helpers/emit-gtm-event"));
23
23
  var _excluded = ["provider"];
24
24
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
25
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
25
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
26
26
  var VideoRender = function VideoRender(_ref) {
27
27
  var provider = _ref.provider,
28
28
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
@@ -1 +1 @@
1
- {"version":3,"file":"VideoRender.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_providers","_HOC","_VideoContext","_emitGtmEvent","_excluded","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","VideoRender","_ref","provider","props","_objectWithoutProperties2","ref","useRef","Provider","getProvider","propEventName","gtmEventName","process","env","BLAZE_VIDEO_EVENT_NAME","emitEvent","_ref2","action","videoId","emitGtmEvent","playCounter","createElement","VideoContextProvider","value","propTypes","PropTypes","string","isRequired","defaultProps","_default","exports","withTitle"],"sources":["../../../src/components/Video/VideoRender.js"],"sourcesContent":["import React, { useRef } from 'react';\nimport PropTypes from 'prop-types';\nimport getProvider from './providers';\nimport { withTitle } from '../../HOC';\nimport { VideoContextProvider } from './VideoContext';\nimport emitGtmEvent from './helpers/emit-gtm-event';\n\nconst VideoRender = ({ provider, ...props }) => {\n const ref = useRef(0);\n const Provider = getProvider(provider);\n const { gtmEventName: propEventName } = props;\n const gtmEventName = propEventName || process.env.BLAZE_VIDEO_EVENT_NAME;\n const emitEvent = gtmEventName\n ? ({ action, videoId }) =>\n emitGtmEvent({\n gtmEventName,\n provider,\n action,\n videoId,\n playCounter: ref\n })\n : null;\n\n return (\n <VideoContextProvider value={{ emitEvent }}>\n <Provider {...props} />\n </VideoContextProvider>\n );\n};\n\nVideoRender.propTypes = {\n provider: PropTypes.string.isRequired,\n gtmEventName: PropTypes.string\n};\n\nVideoRender.defaultProps = {\n gtmEventName: ''\n};\n\nexport default withTitle(VideoRender);\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uB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IAAAkB,QAAA,GAAAC,OAAA,cAEa,IAAAC,cAAS,EAAC9B,WAAW,CAAC"}
1
+ {"version":3,"file":"VideoRender.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_providers","_HOC","_VideoContext","_emitGtmEvent","_excluded","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","VideoRender","_ref","provider","props","_objectWithoutProperties2","ref","useRef","Provider","getProvider","propEventName","gtmEventName","process","env","BLAZE_VIDEO_EVENT_NAME","emitEvent","_ref2","action","videoId","emitGtmEvent","playCounter","createElement","VideoContextProvider","value","propTypes","PropTypes","string","isRequired","defaultProps","_default","exports","withTitle"],"sources":["../../../src/components/Video/VideoRender.js"],"sourcesContent":["import React, { useRef } from 'react';\nimport PropTypes from 'prop-types';\nimport getProvider from './providers';\nimport { withTitle } from '../../HOC';\nimport { VideoContextProvider } from './VideoContext';\nimport emitGtmEvent from './helpers/emit-gtm-event';\n\nconst VideoRender = ({ provider, ...props }) => {\n const ref = useRef(0);\n const Provider = getProvider(provider);\n const { gtmEventName: propEventName } = props;\n const gtmEventName = propEventName || process.env.BLAZE_VIDEO_EVENT_NAME;\n const emitEvent = gtmEventName\n ? ({ action, videoId }) =>\n emitGtmEvent({\n gtmEventName,\n provider,\n action,\n videoId,\n playCounter: ref\n })\n : null;\n\n return (\n <VideoContextProvider value={{ emitEvent }}>\n <Provider {...props} />\n </VideoContextProvider>\n );\n};\n\nVideoRender.propTypes = {\n provider: PropTypes.string.isRequired,\n gtmEventName: PropTypes.string\n};\n\nVideoRender.defaultProps = {\n gtmEventName: ''\n};\n\nexport default withTitle(VideoRender);\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,UAAA,GAAAD,sBAAA,CAA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TIONS","exports","START","PLAYING","PAUSED","ENDED"],"sources":["../../../src/components/Video/constants.js"],"sourcesContent":["export const EVENT_ACTIONS = {\n START: 'start',\n PLAYING: 'playing',\n PAUSED: 'paused',\n ENDED: 'ended'\n};\n"],"mappings":";;;;;;;AAAO,IAAMA,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG;EAC3BE,KAAK,EAAE,OAAO;EACdC,OAAO,EAAE,SAAS;EAClBC,MAAM,EAAE,QAAQ;EAChBC,KAAK,EAAE;AACT,CAAC"}
1
+ {"version":3,"file":"constants.js","names":["EVENT_ACTIONS","exports","START","PLAYING","PAUSED","ENDED"],"sources":["../../../src/components/Video/constants.js"],"sourcesContent":["export const EVENT_ACTIONS = {\n START: 'start',\n PLAYING: 'playing',\n PAUSED: 'paused',\n ENDED: 'ended'\n};\n"],"mappings":";;;;;;;AAAO,IAAMA,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG;EAC3BE,KAAK,EAAE,OAAO;EACdC,OAAO,EAAE,SAAS;EAClBC,MAAM,EAAE,QAAQ;EAChBC,KAAK,EAAE;AACT,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"emit-gtm-event.js","names":["_constants","require","emitGtmEvent","_ref","gtmEventName","provider","action","videoId","playCounter","window","dataLayer","actionToUse","EVENT_ACTIONS","PLAYING","current","START","playCount","push","event","video_action","video_provider","video_id","video_play_count","_default","exports"],"sources":["../../../../src/components/Video/helpers/emit-gtm-event.js"],"sourcesContent":["import { EVENT_ACTIONS } from '../constants';\n\nconst emitGtmEvent = ({ gtmEventName, provider, action, videoId, playCounter }) => {\n if (!window.dataLayer || !action) return;\n\n const actionToUse =\n action === EVENT_ACTIONS.PLAYING && playCounter.current < 1 ? EVENT_ACTIONS.START : action;\n\n if (action === EVENT_ACTIONS.PLAYING) {\n // eslint-disable-next-line no-param-reassign\n playCounter.current += 1;\n }\n\n const playCount = playCounter.current;\n\n window.dataLayer.push({\n event: gtmEventName,\n video_action: actionToUse,\n video_provider: provider,\n video_id: videoId,\n video_play_count: playCount\n });\n};\n\nexport default emitGtmEvent;\n"],"mappings":";;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAAiE;EAAA,IAA3DC,YAAY,GAAAD,IAAA,CAAZC,YAAY;IAAEC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAEC,MAAM,GAAAH,IAAA,CAANG,MAAM;IAAEC,OAAO,GAAAJ,IAAA,CAAPI,OAAO;IAAEC,WAAW,GAAAL,IAAA,CAAXK,WAAW;EAC1E,IAAI,CAACC,MAAM,CAACC,SAAS,IAAI,CAACJ,MAAM,EAAE;EAElC,IAAMK,WAAW,GACfL,MAAM,KAAKM,wBAAa,CAACC,OAAO,IAAIL,WAAW,CAACM,OAAO,GAAG,CAAC,GAAGF,wBAAa,CAACG,KAAK,GAAGT,MAAM;EAE5F,IAAIA,MAAM,KAAKM,wBAAa,CAACC,OAAO,EAAE;IACpC;IACAL,WAAW,CAACM,OAAO,IAAI,CAAC;EAC1B;EAEA,IAAME,SAAS,GAAGR,WAAW,CAACM,OAAO;EAErCL,MAAM,CAACC,SAAS,CAACO,IAAI,CAAC;IACpBC,KAAK,EAAEd,YAAY;IACnBe,YAAY,EAAER,WAAW;IACzBS,cAAc,EAAEf,QAAQ;IACxBgB,QAAQ,EAAEd,OAAO;IACjBe,gBAAgB,EAAEN;EACpB,CAAC,CAAC;AACJ,CAAC;AAAC,IAAAO,QAAA,GAAAC,OAAA,cAEatB,YAAY"}
1
+ {"version":3,"file":"emit-gtm-event.js","names":["_constants","require","emitGtmEvent","_ref","gtmEventName","provider","action","videoId","playCounter","window","dataLayer","actionToUse","EVENT_ACTIONS","PLAYING","current","START","playCount","push","event","video_action","video_provider","video_id","video_play_count","_default","exports"],"sources":["../../../../src/components/Video/helpers/emit-gtm-event.js"],"sourcesContent":["import { EVENT_ACTIONS } from '../constants';\n\nconst emitGtmEvent = ({ gtmEventName, provider, action, videoId, playCounter }) => {\n if (!window.dataLayer || !action) return;\n\n const actionToUse =\n action === EVENT_ACTIONS.PLAYING && playCounter.current < 1 ? EVENT_ACTIONS.START : action;\n\n if (action === EVENT_ACTIONS.PLAYING) {\n // eslint-disable-next-line no-param-reassign\n playCounter.current += 1;\n }\n\n const playCount = playCounter.current;\n\n window.dataLayer.push({\n event: gtmEventName,\n video_action: actionToUse,\n video_provider: provider,\n video_id: videoId,\n video_play_count: playCount\n });\n};\n\nexport default emitGtmEvent;\n"],"mappings":";;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAAiE;EAAA,IAA3DC,YAAY,GAAAD,IAAA,CAAZC,YAAY;IAAEC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAEC,MAAM,GAAAH,IAAA,CAANG,MAAM;IAAEC,OAAO,GAAAJ,IAAA,CAAPI,OAAO;IAAEC,WAAW,GAAAL,IAAA,CAAXK,WAAW;EAC1E,IAAI,CAACC,MAAM,CAACC,SAAS,IAAI,CAACJ,MAAM,EAAE;EAElC,IAAMK,WAAW,GACfL,MAAM,KAAKM,wBAAa,CAACC,OAAO,IAAIL,WAAW,CAACM,OAAO,GAAG,CAAC,GAAGF,wBAAa,CAACG,KAAK,GAAGT,MAAM;EAE5F,IAAIA,MAAM,KAAKM,wBAAa,CAACC,OAAO,EAAE;IACpC;IACAL,WAAW,CAACM,OAAO,IAAI,CAAC;EAC1B;EAEA,IAAME,SAAS,GAAGR,WAAW,CAACM,OAAO;EAErCL,MAAM,CAACC,SAAS,CAACO,IAAI,CAAC;IACpBC,KAAK,EAAEd,YAAY;IACnBe,YAAY,EAAER,WAAW;IACzBS,cAAc,EAAEf,QAAQ;IACxBgB,QAAQ,EAAEd,OAAO;IACjBe,gBAAgB,EAAEN;EACpB,CAAC,CAAC;AACJ,CAAC;AAAC,IAAAO,QAAA,GAAAC,OAAA,cAEatB,YAAY","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_Video","_interopRequireDefault","require","_default","exports","Video"],"sources":["../../../src/components/Video/index.js"],"sourcesContent":["import Video from './Video';\n\nexport default Video;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA4B,IAAAC,QAAA,GAAAC,OAAA,cAEbC,iBAAK"}
1
+ {"version":3,"file":"index.js","names":["_Video","_interopRequireDefault","require","_default","exports","Video"],"sources":["../../../src/components/Video/index.js"],"sourcesContent":["import Video from './Video';\n\nexport default Video;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA4B,IAAAC,QAAA,GAAAC,OAAA,cAEbC,iBAAK","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"Default.js","names":["_react","_interopRequireDefault","require","_propTypes","_videoReact","_constants","Default","_ref","modifier","url","autoplay","loop","createElement","className","VIDEO_WRAPPER_CLASS_NAME","Player","preload","autoPlay","muted","src","propTypes","PropTypes","string","isRequired","bool","defaultProps","_default","exports"],"sources":["../../../../src/components/Video/providers/Default.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Player } from 'video-react';\nimport { VIDEO_WRAPPER_CLASS_NAME } from '../../../constants';\n\n// import 'video-react/styles/scss/video-react.scss';\n\nconst Default = ({ modifier, url, autoplay, loop }) => (\n <div className={VIDEO_WRAPPER_CLASS_NAME}>\n <Player className={modifier} preload=\"none\" autoPlay={autoplay} loop={loop} muted={autoplay}>\n <source src={url} />\n </Player>\n </div>\n);\n\nDefault.propTypes = {\n url: PropTypes.string.isRequired,\n modifier: PropTypes.string,\n autoplay: PropTypes.bool,\n loop: PropTypes.bool\n};\n\nDefault.defaultProps = {\n modifier: null,\n autoplay: false,\n loop: false\n};\n\nexport default Default;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAEA;;AAEA,IAAMI,OAAO,GAAG,SAAVA,OAAOA,CAAAC,IAAA;EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAEC,GAAG,GAAAF,IAAA,CAAHE,GAAG;IAAEC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;IAAEC,IAAI,GAAAJ,IAAA,CAAJI,IAAI;EAAA,oBAC9CX,MAAA,YAAAY,aAAA;IAAKC,SAAS,EAAEC;EAAyB,gBACvCd,MAAA,YAAAY,aAAA,CAACR,WAAA,CAAAW,MAAM;IAACF,SAAS,EAAEL,QAAS;IAACQ,OAAO,EAAC,MAAM;IAACC,QAAQ,EAAEP,QAAS;IAACC,IAAI,EAAEA,IAAK;IAACO,KAAK,EAAER;EAAS,gBAC1FV,MAAA,YAAAY,aAAA;IAAQO,GAAG,EAAEV;EAAI,CAAE,CACb,CACL,CAAC;AAAA,CACP;AAEDH,OAAO,CAACc,SAAS,GAAG;EAClBX,GAAG,EAAEY,qBAAS,CAACC,MAAM,CAACC,UAAU;EAChCf,QAAQ,EAAEa,qBAAS,CAACC,MAAM;EAC1BZ,QAAQ,EAAEW,qBAAS,CAACG,IAAI;EACxBb,IAAI,EAAEU,qBAAS,CAACG;AAClB,CAAC;AAEDlB,OAAO,CAACmB,YAAY,GAAG;EACrBjB,QAAQ,EAAE,IAAI;EACdE,QAAQ,EAAE,KAAK;EACfC,IAAI,EAAE;AACR,CAAC;AAAC,IAAAe,QAAA,GAAAC,OAAA,cAEarB,OAAO"}
1
+ {"version":3,"file":"Default.js","names":["_react","_interopRequireDefault","require","_propTypes","_videoReact","_constants","Default","_ref","modifier","url","autoplay","loop","createElement","className","VIDEO_WRAPPER_CLASS_NAME","Player","preload","autoPlay","muted","src","propTypes","PropTypes","string","isRequired","bool","defaultProps","_default","exports"],"sources":["../../../../src/components/Video/providers/Default.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Player } from 'video-react';\nimport { VIDEO_WRAPPER_CLASS_NAME } from '../../../constants';\n\n// import 'video-react/styles/scss/video-react.scss';\n\nconst Default = ({ modifier, url, autoplay, loop }) => (\n <div className={VIDEO_WRAPPER_CLASS_NAME}>\n <Player className={modifier} preload=\"none\" autoPlay={autoplay} loop={loop} muted={autoplay}>\n <source src={url} />\n </Player>\n </div>\n);\n\nDefault.propTypes = {\n url: PropTypes.string.isRequired,\n modifier: PropTypes.string,\n autoplay: PropTypes.bool,\n loop: PropTypes.bool\n};\n\nDefault.defaultProps = {\n modifier: null,\n autoplay: false,\n loop: false\n};\n\nexport default Default;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAEA;;AAEA,IAAMI,OAAO,GAAG,SAAVA,OAAOA,CAAAC,IAAA;EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAEC,GAAG,GAAAF,IAAA,CAAHE,GAAG;IAAEC,QAAQ,GAAAH,IAAA,CAARG,QAAQ;IAAEC,IAAI,GAAAJ,IAAA,CAAJI,IAAI;EAAA,oBAC9CX,MAAA,YAAAY,aAAA;IAAKC,SAAS,EAAEC;EAAyB,gBACvCd,MAAA,YAAAY,aAAA,CAACR,WAAA,CAAAW,MAAM;IAACF,SAAS,EAAEL,QAAS;IAACQ,OAAO,EAAC,MAAM;IAACC,QAAQ,EAAEP,QAAS;IAACC,IAAI,EAAEA,IAAK;IAACO,KAAK,EAAER;EAAS,gBAC1FV,MAAA,YAAAY,aAAA;IAAQO,GAAG,EAAEV;EAAI,CAAE,CACb,CACL,CAAC;AAAA,CACP;AAEDH,OAAO,CAACc,SAAS,GAAG;EAClBX,GAAG,EAAEY,qBAAS,CAACC,MAAM,CAACC,UAAU;EAChCf,QAAQ,EAAEa,qBAAS,CAACC,MAAM;EAC1BZ,QAAQ,EAAEW,qBAAS,CAACG,IAAI;EACxBb,IAAI,EAAEU,qBAAS,CAACG;AAClB,CAAC;AAEDlB,OAAO,CAACmB,YAAY,GAAG;EACrBjB,QAAQ,EAAE,IAAI;EACdE,QAAQ,EAAE,KAAK;EACfC,IAAI,EAAE;AACR,CAAC;AAAC,IAAAe,QAAA,GAAAC,OAAA,cAEarB,OAAO","ignoreList":[]}
@@ -56,7 +56,7 @@ var JWPlayerController = /*#__PURE__*/function () {
56
56
  this.error = null;
57
57
  this.emitEvent = _emitEvent;
58
58
  }
59
- (0, _createClass2["default"])(JWPlayerController, [{
59
+ return (0, _createClass2["default"])(JWPlayerController, [{
60
60
  key: "events",
61
61
  get: function get() {
62
62
  return {
@@ -68,7 +68,6 @@ var JWPlayerController = /*#__PURE__*/function () {
68
68
  };
69
69
  }
70
70
  }]);
71
- return JWPlayerController;
72
71
  }();
73
72
  var _default = exports["default"] = JWPlayerController;
74
73
  //# sourceMappingURL=JWPlayerController.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"JWPlayerController.js","names":["_constants","require","JWPlayerController","_ref","_this","emitEvent","_classCallCheck2","_defineProperty2","player","setError","_ref2","message","error","_ref3","action","_this$player$getPlayl","getPlaylistItem","videoId","mediaid","event","doEmitEvent","EVENT_ACTIONS","ENDED","PAUSED","PLAYING","_createClass2","key","get","play","onPlay","pause","onPause","onError","complete","onComplete","setupError","_default","exports"],"sources":["../../../../../src/components/Video/providers/JWPlayer/JWPlayerController.js"],"sourcesContent":["/*\n Custom controller to extend and scale the 'react-jw-player' library for future updates.\n*/\n\nimport { EVENT_ACTIONS } from '../../constants';\n\nclass JWPlayerController {\n constructor({ emitEvent }) {\n this.player = null;\n this.error = null;\n this.emitEvent = emitEvent;\n }\n\n setPlayer = player => {\n this.player = player;\n };\n\n setErrorHandler = setError => {\n this.setError = setError;\n };\n\n onError = ({ message }) => {\n this.error = message;\n };\n\n onSetupError = ({ message }) => {\n this.error = message;\n };\n\n doEmitEvent = action => {\n const { emitEvent } = this;\n if (emitEvent) {\n const { mediaid: videoId } = this.player.getPlaylistItem();\n emitEvent({ action, videoId });\n }\n };\n\n onComplete = event => {\n this.doEmitEvent(EVENT_ACTIONS.ENDED);\n };\n\n onPause = event => {\n this.doEmitEvent(EVENT_ACTIONS.PAUSED);\n };\n\n onPlay = event => {\n this.doEmitEvent(EVENT_ACTIONS.PLAYING);\n };\n\n get events() {\n return {\n play: this.onPlay,\n pause: this.onPause,\n error: this.onError,\n complete: this.onComplete,\n setupError: this.setupError\n };\n }\n}\n\nexport default JWPlayerController;\n"],"mappings":";;;;;;;;;;;AAIA,IAAAA,UAAA,GAAAC,OAAA;AAJA;AACA;AACA;AAFA,IAMMC,kBAAkB;EACtB,SAAAA,mBAAAC,IAAA,EAA2B;IAAA,IAAAC,KAAA;IAAA,IAAbC,UAAS,GAAAF,IAAA,CAATE,SAAS;IAAA,IAAAC,gBAAA,mBAAAJ,kBAAA;IAAA,IAAAK,gBAAA,gCAMX,UAAAC,MAAM,EAAI;MACpBJ,KAAI,CAACI,MAAM,GAAGA,MAAM;IACtB,CAAC;IAAA,IAAAD,gBAAA,sCAEiB,UAAAE,QAAQ,EAAI;MAC5BL,KAAI,CAACK,QAAQ,GAAGA,QAAQ;IAC1B,CAAC;IAAA,IAAAF,gBAAA,8BAES,UAAAG,KAAA,EAAiB;MAAA,IAAdC,OAAO,GAAAD,KAAA,CAAPC,OAAO;MAClBP,KAAI,CAACQ,KAAK,GAAGD,OAAO;IACtB,CAAC;IAAA,IAAAJ,gBAAA,mCAEc,UAAAM,KAAA,EAAiB;MAAA,IAAdF,OAAO,GAAAE,KAAA,CAAPF,OAAO;MACvBP,KAAI,CAACQ,KAAK,GAAGD,OAAO;IACtB,CAAC;IAAA,IAAAJ,gBAAA,kCAEa,UAAAO,MAAM,EAAI;MACtB,IAAQT,SAAS,GAAKD,KAAI,CAAlBC,SAAS;MACjB,IAAIA,SAAS,EAAE;QACb,IAAAU,qBAAA,GAA6BX,KAAI,CAACI,MAAM,CAACQ,eAAe,CAAC,CAAC;UAAzCC,OAAO,GAAAF,qBAAA,CAAhBG,OAAO;QACfb,SAAS,CAAC;UAAES,MAAM,EAANA,MAAM;UAAEG,OAAO,EAAPA;QAAQ,CAAC,CAAC;MAChC;IACF,CAAC;IAAA,IAAAV,gBAAA,iCAEY,UAAAY,KAAK,EAAI;MACpBf,KAAI,CAACgB,WAAW,CAACC,wBAAa,CAACC,KAAK,CAAC;IACvC,CAAC;IAAA,IAAAf,gBAAA,8BAES,UAAAY,KAAK,EAAI;MACjBf,KAAI,CAACgB,WAAW,CAACC,wBAAa,CAACE,MAAM,CAAC;IACxC,CAAC;IAAA,IAAAhB,gBAAA,6BAEQ,UAAAY,KAAK,EAAI;MAChBf,KAAI,CAACgB,WAAW,CAACC,wBAAa,CAACG,OAAO,CAAC;IACzC,CAAC;IAvCC,IAAI,CAAChB,MAAM,GAAG,IAAI;IAClB,IAAI,CAACI,KAAK,GAAG,IAAI;IACjB,IAAI,CAACP,SAAS,GAAGA,UAAS;EAC5B;EAAC,IAAAoB,aAAA,aAAAvB,kBAAA;IAAAwB,GAAA;IAAAC,GAAA,EAsCD,SAAAA,IAAA,EAAa;MACX,OAAO;QACLC,IAAI,EAAE,IAAI,CAACC,MAAM;QACjBC,KAAK,EAAE,IAAI,CAACC,OAAO;QACnBnB,KAAK,EAAE,IAAI,CAACoB,OAAO;QACnBC,QAAQ,EAAE,IAAI,CAACC,UAAU;QACzBC,UAAU,EAAE,IAAI,CAACA;MACnB,CAAC;IACH;EAAC;EAAA,OAAAjC,kBAAA;AAAA;AAAA,IAAAkC,QAAA,GAAAC,OAAA,cAGYnC,kBAAkB"}
1
+ {"version":3,"file":"JWPlayerController.js","names":["_constants","require","JWPlayerController","_ref","_this","emitEvent","_classCallCheck2","_defineProperty2","player","setError","_ref2","message","error","_ref3","action","_this$player$getPlayl","getPlaylistItem","videoId","mediaid","event","doEmitEvent","EVENT_ACTIONS","ENDED","PAUSED","PLAYING","_createClass2","key","get","play","onPlay","pause","onPause","onError","complete","onComplete","setupError","_default","exports"],"sources":["../../../../../src/components/Video/providers/JWPlayer/JWPlayerController.js"],"sourcesContent":["/*\n Custom controller to extend and scale the 'react-jw-player' library for future updates.\n*/\n\nimport { EVENT_ACTIONS } from '../../constants';\n\nclass JWPlayerController {\n constructor({ emitEvent }) {\n this.player = null;\n this.error = null;\n this.emitEvent = emitEvent;\n }\n\n setPlayer = player => {\n this.player = player;\n };\n\n setErrorHandler = setError => {\n this.setError = setError;\n };\n\n onError = ({ message }) => {\n this.error = message;\n };\n\n onSetupError = ({ message }) => {\n this.error = message;\n };\n\n doEmitEvent = action => {\n const { emitEvent } = this;\n if (emitEvent) {\n const { mediaid: videoId } = this.player.getPlaylistItem();\n emitEvent({ action, videoId });\n }\n };\n\n onComplete = event => {\n this.doEmitEvent(EVENT_ACTIONS.ENDED);\n };\n\n onPause = event => {\n this.doEmitEvent(EVENT_ACTIONS.PAUSED);\n };\n\n onPlay = event => {\n this.doEmitEvent(EVENT_ACTIONS.PLAYING);\n };\n\n get events() {\n return {\n play: this.onPlay,\n pause: this.onPause,\n error: this.onError,\n complete: this.onComplete,\n setupError: this.setupError\n };\n }\n}\n\nexport default JWPlayerController;\n"],"mappings":";;;;;;;;;;;AAIA,IAAAA,UAAA,GAAAC,OAAA;AAJA;AACA;AACA;AAFA,IAMMC,kBAAkB;EACtB,SAAAA,mBAAAC,IAAA,EAA2B;IAAA,IAAAC,KAAA;IAAA,IAAbC,UAAS,GAAAF,IAAA,CAATE,SAAS;IAAA,IAAAC,gBAAA,mBAAAJ,kBAAA;IAAA,IAAAK,gBAAA,gCAMX,UAAAC,MAAM,EAAI;MACpBJ,KAAI,CAACI,MAAM,GAAGA,MAAM;IACtB,CAAC;IAAA,IAAAD,gBAAA,sCAEiB,UA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EAsCD,SAAAA,IAAA,EAAa;MACX,OAAO;QACLC,IAAI,EAAE,IAAI,CAACC,MAAM;QACjBC,KAAK,EAAE,IAAI,CAACC,OAAO;QACnBnB,KAAK,EAAE,IAAI,CAACoB,OAAO;QACnBC,QAAQ,EAAE,IAAI,CAACC,UAAU;QACzBC,UAAU,EAAE,IAAI,CAACA;MACnB,CAAC;IACH;EAAC;AAAA;AAAA,IAAAC,QAAA,GAAAC,OAAA,cAGYnC,kBAAkB","ignoreList":[]}
@@ -1,18 +1,18 @@
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.filter.js");
6
- require("core-js/modules/es.object.to-string.js");
7
- require("core-js/modules/es.object.get-own-property-descriptor.js");
8
5
  require("core-js/modules/es.array.for-each.js");
9
- require("core-js/modules/web.dom-collections.for-each.js");
10
- require("core-js/modules/es.object.get-own-property-descriptors.js");
6
+ require("core-js/modules/es.array.iterator.js");
11
7
  require("core-js/modules/es.object.define-properties.js");
12
8
  require("core-js/modules/es.object.define-property.js");
13
- require("core-js/modules/es.array.iterator.js");
9
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
10
+ require("core-js/modules/es.object.get-own-property-descriptors.js");
11
+ require("core-js/modules/es.object.keys.js");
12
+ require("core-js/modules/es.object.to-string.js");
14
13
  require("core-js/modules/es.string.iterator.js");
15
14
  require("core-js/modules/es.weak-map.js");
15
+ require("core-js/modules/web.dom-collections.for-each.js");
16
16
  require("core-js/modules/web.dom-collections.iterator.js");
17
17
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
18
18
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -29,7 +29,7 @@ var _constants = require("../../../../constants");
29
29
  var _JWPlayerController = _interopRequireDefault(require("./JWPlayerController"));
30
30
  var _VideoContext = require("../../VideoContext");
31
31
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
32
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
32
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
33
33
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
34
34
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
35
35
  var JWPlayerProvider = function JWPlayerProvider(_ref) {
@@ -1 +1 @@
1
- {"version":3,"file":"JWPlayerProvider.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_reactJwPlayer","_constants","_JWPlayerController","_VideoContext","_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","JWPlayerProvider","_ref","url","name","autoplay","controls","type","urlScript","muted","imageData","repeat","loop","_useContext","useContext","VideoContext","emitEvent","PlayerController","useRef","JWPlayerController","handleOnReady","jwPlayer","window","jwplayer","current","setPlayer","getJWPlayerProps","events","props","customProps","playerScript","isAutoPlay","isMuted","playerId","onReady","className","VIDEO_WRAPPER_CLASS_NAME","JW_PLAYER_TYPE_FILE","_imageData$url","imageURL","image","file","playlist","createElement","propTypes","PropTypes","string","isRequired","imageId","bool","object","defaultProps","_default","exports"],"sources":["../../../../../src/components/Video/providers/JWPlayer/JWPlayerProvider.js"],"sourcesContent":["import React, { useContext, useRef } from 'react';\nimport PropTypes from 'prop-types';\nimport ReactJWPlayer from 'react-jw-player';\nimport { JW_PLAYER_TYPE_FILE, VIDEO_WRAPPER_CLASS_NAME } from '../../../../constants';\nimport JWPlayerController from './JWPlayerController';\nimport { VideoContext } from '../../VideoContext';\n\nconst JWPlayerProvider = ({\n url,\n name,\n autoplay,\n controls,\n type,\n urlScript,\n muted,\n imageData,\n loop: repeat\n}) => {\n const { emitEvent } = useContext(VideoContext);\n const PlayerController = useRef(new JWPlayerController({ emitEvent }));\n\n const handleOnReady = () => {\n const jwPlayer = window.jwplayer(name);\n if (jwPlayer) {\n PlayerController.current.setPlayer(jwPlayer);\n }\n };\n\n const getJWPlayerProps = () => {\n const { events } = PlayerController.current;\n\n const props = {\n customProps: { repeat, controls, events },\n playerScript: urlScript,\n isAutoPlay: autoplay,\n isMuted: muted,\n playerId: name,\n onReady: handleOnReady,\n className: VIDEO_WRAPPER_CLASS_NAME\n };\n\n if (type === JW_PLAYER_TYPE_FILE) {\n const { url: imageURL = '' } = imageData;\n return { ...props, image: imageURL, file: url };\n }\n\n return { ...props, playlist: url };\n };\n\n return <ReactJWPlayer {...getJWPlayerProps()} />;\n};\n\nJWPlayerProvider.propTypes = {\n url: PropTypes.string.isRequired,\n name: PropTypes.string.isRequired,\n urlScript: PropTypes.string.isRequired,\n imageId: PropTypes.string,\n autoplay: PropTypes.bool,\n loop: PropTypes.bool,\n controls: PropTypes.bool,\n muted: PropTypes.bool,\n type: PropTypes.string,\n imageData: PropTypes.object\n};\n\nJWPlayerProvider.defaultProps = {\n autoplay: false,\n loop: false,\n controls: true,\n muted: false,\n type: 'playlist',\n imageId: null,\n imageData: {}\n};\n\nexport default JWPlayerProvider;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,cAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,mBAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,aAAA,GAAAN,OAAA;AAAkD,SAAAO,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAT,wBAAAS,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,gBAAAK,OAAA,CAAAL,CAAA,0BAAAA,CAAA,sBAAAA,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CA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I,IAAI;EACxBrC,IAAI,EAAEiC,qBAAS,CAACI,IAAI;EACpB3C,QAAQ,EAAEuC,qBAAS,CAACI,IAAI;EACxBxC,KAAK,EAAEoC,qBAAS,CAACI,IAAI;EACrB1C,IAAI,EAAEsC,qBAAS,CAACC,MAAM;EACtBpC,SAAS,EAAEmC,qBAAS,CAACK;AACvB,CAAC;AAEDjD,gBAAgB,CAACkD,YAAY,GAAG;EAC9B9C,QAAQ,EAAE,KAAK;EACfO,IAAI,EAAE,KAAK;EACXN,QAAQ,EAAE,IAAI;EACdG,KAAK,EAAE,KAAK;EACZF,IAAI,EAAE,UAAU;EAChByC,OAAO,EAAE,IAAI;EACbtC,SAAS,EAAE,CAAC;AACd,CAAC;AAAC,IAAA0C,QAAA,GAAAC,OAAA,cAEapD,gBAAgB"}
1
+ {"version":3,"file":"JWPlayerProvider.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_reactJwPlayer","_constants","_JWPlayerController","_VideoContext","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ownKeys","keys","getOwnPropertySymbols","o","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","JWPlayerProvider","_ref","url","name","autoplay","controls","type","urlScript","muted","imageData","repeat","loop","_useContext","useContext","VideoContext","emitEvent","PlayerController","useRef","JWPlayerController","handleOnReady","jwPlayer","window","jwplayer","current","setPlayer","getJWPlayerProps","events","props","customProps","playerScript","isAutoPlay","isMuted","playerId","onReady","className","VIDEO_WRAPPER_CLASS_NAME","JW_PLAYER_TYPE_FILE","_imageData$url","imageURL","image","file","playlist","createElement","propTypes","PropTypes","string","isRequired","imageId","bool","object","defaultProps","_default","exports"],"sources":["../../../../../src/components/Video/providers/JWPlayer/JWPlayerProvider.js"],"sourcesContent":["import React, { useContext, useRef } from 'react';\nimport PropTypes from 'prop-types';\nimport ReactJWPlayer from 'react-jw-player';\nimport { JW_PLAYER_TYPE_FILE, VIDEO_WRAPPER_CLASS_NAME } from '../../../../constants';\nimport JWPlayerController from './JWPlayerController';\nimport { VideoContext } from '../../VideoContext';\n\nconst JWPlayerProvider = ({\n url,\n name,\n autoplay,\n controls,\n type,\n urlScript,\n muted,\n imageData,\n loop: repeat\n}) => {\n const { emitEvent } = useContext(VideoContext);\n const PlayerController = useRef(new JWPlayerController({ emitEvent }));\n\n const handleOnReady = () => {\n const jwPlayer = window.jwplayer(name);\n if (jwPlayer) {\n PlayerController.current.setPlayer(jwPlayer);\n }\n };\n\n const getJWPlayerProps = () => {\n const { events } = PlayerController.current;\n\n const props = {\n customProps: { repeat, controls, events },\n playerScript: urlScript,\n isAutoPlay: autoplay,\n isMuted: muted,\n playerId: name,\n onReady: handleOnReady,\n className: VIDEO_WRAPPER_CLASS_NAME\n };\n\n if (type === JW_PLAYER_TYPE_FILE) {\n const { url: imageURL = '' } = imageData;\n return { ...props, image: imageURL, file: url };\n }\n\n return { ...props, playlist: url };\n };\n\n return <ReactJWPlayer {...getJWPlayerProps()} />;\n};\n\nJWPlayerProvider.propTypes = {\n url: PropTypes.string.isRequired,\n name: PropTypes.string.isRequired,\n urlScript: PropTypes.string.isRequired,\n imageId: PropTypes.string,\n autoplay: PropTypes.bool,\n loop: PropTypes.bool,\n controls: PropTypes.bool,\n muted: PropTypes.bool,\n type: PropTypes.string,\n imageData: PropTypes.object\n};\n\nJWPlayerProvider.defaultProps = {\n autoplay: false,\n loop: false,\n controls: true,\n muted: false,\n type: 'playlist',\n imageId: null,\n imageData: {}\n};\n\nexport default JWPlayerProvider;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,cAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,UAAA,GAAAJ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AEtC;MAAG;IAC/C;IAEA,OAAAT,aAAA,CAAAA,aAAA,KAAYkC,KAAK;MAAEc,QAAQ,EAAEvC;IAAG;EAClC,CAAC;EAED,oBAAO9C,MAAA,YAAAsF,aAAA,CAACjF,cAAA,WAAa,EAAKgE,gBAAgB,CAAC,CAAI,CAAC;AAClD,CAAC;AAEDzB,gBAAgB,CAAC2C,SAAS,GAAG;EAC3BzC,GAAG,EAAE0C,qBAAS,CAACC,MAAM,CAACC,UAAU;EAChC3C,IAAI,EAAEyC,qBAAS,CAACC,MAAM,CAACC,UAAU;EACjCvC,SAAS,EAAEqC,qBAAS,CAACC,MAAM,CAACC,UAAU;EACtCC,OAAO,EAAEH,qBAAS,CAACC,MAAM;EACzBzC,QAAQ,EAAEwC,qBAAS,CAACI,IAAI;EACxBrC,IAAI,EAAEiC,qBAAS,CAACI,IAAI;EACpB3C,QAAQ,EAAEuC,qBAAS,CAACI,IAAI;EACxBxC,KAAK,EAAEoC,qBAAS,CAACI,IAAI;EACrB1C,IAAI,EAAEsC,qBAAS,CAACC,MAAM;EACtBpC,SAAS,EAAEmC,qBAAS,CAACK;AACvB,CAAC;AAEDjD,gBAAgB,CAACkD,YAAY,GAAG;EAC9B9C,QAAQ,EAAE,KAAK;EACfO,IAAI,EAAE,KAAK;EACXN,QAAQ,EAAE,IAAI;EACdG,KAAK,EAAE,KAAK;EACZF,IAAI,EAAE,UAAU;EAChByC,OAAO,EAAE,IAAI;EACbtC,SAAS,EAAE,CAAC;AACd,CAAC;AAAC,IAAA0C,QAAA,GAAAC,OAAA,cAEapD,gBAAgB","ignoreList":[]}
@@ -1,11 +1,11 @@
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.string.iterator.js");
5
7
  require("core-js/modules/es.weak-map.js");
6
8
  require("core-js/modules/web.dom-collections.iterator.js");
7
- require("core-js/modules/es.object.define-property.js");
8
- require("core-js/modules/es.object.get-own-property-descriptor.js");
9
9
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
10
10
  var _typeof = require("@babel/runtime/helpers/typeof");
11
11
  Object.defineProperty(exports, "__esModule", {
@@ -24,7 +24,7 @@ var _helpers = require("./helpers");
24
24
  var _helpers2 = require("../../../Code/helpers");
25
25
  var _constants = require("../../../../constants");
26
26
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
27
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
27
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
28
28
  var VimeoProvider = function VimeoProvider(_ref) {
29
29
  var url = _ref.url,
30
30
  autoplay = _ref.autoplay,
@@ -48,7 +48,7 @@ var VimeoProvider = function VimeoProvider(_ref) {
48
48
  return _fetchVideoData.apply(this, arguments);
49
49
  }
50
50
  function _fetchVideoData() {
51
- _fetchVideoData = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(videoUrl) {
51
+ _fetchVideoData = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(videoUrl) {
52
52
  var res, data;
53
53
  return _regenerator["default"].wrap(function _callee$(_context) {
54
54
  while (1) switch (_context.prev = _context.next) {
@@ -1 +1 @@
1
- {"version":3,"file":"VimeoProvider.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_htmlReactParser","_helpers","_helpers2","_constants","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","VimeoProvider","_ref","url","autoplay","loop","imageData","inputEl","useRef","_useState","useState","_useState2","_slicedToArray2","videoData","setVideoData","_useState3","_useState4","videoError","setVideoError","_useState5","_useState6","shouldRenderVideo","setShouldRenderVideo","useEffect","fetchVideoData","_x","_fetchVideoData","apply","arguments","_asyncToGenerator2","_regenerator","mark","_callee","videoUrl","res","data","wrap","_callee$","_context","prev","next","fetch","sent","json","t0","stop","currentHeight","current","clientHeight","urlWithParams","addExtraParamsToUrl","height","_ref2","thumbnailUrl","thumbnail_url_with_play_button","_ref2$html","html","imageUrl","backgroundUrl","videoStyle","backgroundImage","concat","maxheight","parsedCode","parseHTML","wrappedCode","wrapScriptTags","createElement","ref","role","className","VIDEO_WRAPPER_CLASS_NAME","style","onClick","message","propTypes","PropTypes","string","isRequired","bool","object","defaultProps","_default","exports"],"sources":["../../../../../src/components/Video/providers/Vimeo/VimeoProvider.js"],"sourcesContent":["import React, { useEffect, useState, useRef } from 'react';\nimport PropTypes from 'prop-types';\nimport parseHTML from 'html-react-parser';\nimport { addExtraParamsToUrl } from './helpers';\nimport { wrapScriptTags } from '../../../Code/helpers';\nimport { VIDEO_WRAPPER_CLASS_NAME } from '../../../../constants';\n\nconst VimeoProvider = ({ url, autoplay, loop, imageData }) => {\n const inputEl = useRef(null);\n const [videoData, setVideoData] = useState(null);\n const [videoError, setVideoError] = useState(null);\n const [shouldRenderVideo, setShouldRenderVideo] = useState(!!autoplay);\n\n useEffect(\n () => {\n async function fetchVideoData(videoUrl) {\n try {\n const res = await fetch(videoUrl);\n const data = await res.json();\n setVideoData(data);\n } catch (err) {\n setVideoError(err);\n }\n }\n if (url) {\n const currentHeight = inputEl.current.clientHeight;\n const urlWithParams = addExtraParamsToUrl(url, {\n autoplay: true,\n loop,\n height: currentHeight\n });\n fetchVideoData(urlWithParams);\n }\n },\n [autoplay, loop, url]\n );\n\n const { thumbnail_url_with_play_button: thumbnailUrl, html = '' } = videoData || {};\n const imageUrl = imageData && imageData.url;\n const backgroundUrl = imageUrl || thumbnailUrl;\n const videoStyle = {};\n if (!shouldRenderVideo && backgroundUrl)\n videoStyle.backgroundImage = `url(${!shouldRenderVideo ? backgroundUrl : ''})`;\n if (inputEl && inputEl.current) videoStyle.maxheight = inputEl.current.clientHeight;\n const parsedCode = parseHTML(html);\n const wrappedCode = wrapScriptTags(parsedCode);\n\n return (\n <div\n ref={inputEl}\n role=\"button\"\n className={VIDEO_WRAPPER_CLASS_NAME}\n style={videoStyle}\n onClick={() => !shouldRenderVideo && setShouldRenderVideo(true)}>\n {shouldRenderVideo && !videoError && wrappedCode}\n {videoError && videoError.message}\n </div>\n );\n};\n\nVimeoProvider.propTypes = {\n url: PropTypes.string.isRequired,\n autoplay: PropTypes.bool,\n loop: PropTypes.bool,\n imageData: PropTypes.object\n};\n\nVimeoProvider.defaultProps = {\n autoplay: false,\n loop: false,\n imageData: null\n};\n\nexport default VimeoProvider;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,QAAA,GAAAJ,O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G;EAChF,IAAInD,OAAO,IAAIA,OAAO,CAACwC,OAAO,EAAEY,UAAU,CAACG,SAAS,GAAGvD,OAAO,CAACwC,OAAO,CAACC,YAAY;EACnF,IAAMe,UAAU,GAAG,IAAAC,2BAAS,EAACR,IAAI,CAAC;EAClC,IAAMS,WAAW,GAAG,IAAAC,wBAAc,EAACH,UAAU,CAAC;EAE9C,oBACE5F,MAAA,YAAAgG,aAAA;IACEC,GAAG,EAAE7D,OAAQ;IACb8D,IAAI,EAAC,QAAQ;IACbC,SAAS,EAAEC,mCAAyB;IACpCC,KAAK,EAAEb,UAAW;IAClBc,OAAO,EAAE,SAAAA,QAAA;MAAA,OAAM,CAACpD,iBAAiB,IAAIC,oBAAoB,CAAC,IAAI,CAAC;IAAA;EAAC,GAC/DD,iBAAiB,IAAI,CAACJ,UAAU,IAAIgD,WAAW,EAC/ChD,UAAU,IAAIA,UAAU,CAACyD,OACvB,CAAC;AAEV,CAAC;AAEDzE,aAAa,CAAC0E,SAAS,GAAG;EACxBxE,GAAG,EAAEyE,qBAAS,CAACC,MAAM,CAACC,UAAU;EAChC1E,QAAQ,EAAEwE,qBAAS,CAACG,IAAI;EACxB1E,IAAI,EAAEuE,qBAAS,CAACG,IAAI;EACpBzE,SAAS,EAAEsE,qBAAS,CAACI;AACvB,CAAC;AAED/E,aAAa,CAACgF,YAAY,GAAG;EAC3B7E,QAAQ,EAAE,KAAK;EACfC,IAAI,EAAE,KAAK;EACXC,SAAS,EAAE;AACb,CAAC;AAAC,IAAA4E,QAAA,GAAAC,OAAA,cAEalF,aAAa"}
1
+ {"version":3,"file":"VimeoProvider.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_htmlReactParser","_helpers","_helpers2","_constants","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","VimeoProvider","_ref","url","autoplay","loop","imageData","inputEl","useRef","_useState","useState","_useState2","_slicedToArray2","videoData","setVideoData","_useState3","_useState4","videoError","setVideoError","_useState5","_useState6","shouldRenderVideo","setShouldRenderVideo","useEffect","fetchVideoData","_x","_fetchVideoData","apply","arguments","_asyncToGenerator2","_regenerator","mark","_callee","videoUrl","res","data","wrap","_callee$","_context","prev","next","fetch","sent","json","t0","stop","currentHeight","current","clientHeight","urlWithParams","addExtraParamsToUrl","height","_ref2","thumbnailUrl","thumbnail_url_with_play_button","_ref2$html","html","imageUrl","backgroundUrl","videoStyle","backgroundImage","concat","maxheight","parsedCode","parseHTML","wrappedCode","wrapScriptTags","createElement","ref","role","className","VIDEO_WRAPPER_CLASS_NAME","style","onClick","message","propTypes","PropTypes","string","isRequired","bool","object","defaultProps","_default","exports"],"sources":["../../../../../src/components/Video/providers/Vimeo/VimeoProvider.js"],"sourcesContent":["import React, { useEffect, useState, useRef } from 'react';\nimport PropTypes from 'prop-types';\nimport parseHTML from 'html-react-parser';\nimport { addExtraParamsToUrl } from './helpers';\nimport { wrapScriptTags } from '../../../Code/helpers';\nimport { VIDEO_WRAPPER_CLASS_NAME } from '../../../../constants';\n\nconst VimeoProvider = ({ url, autoplay, loop, imageData }) => {\n const inputEl = useRef(null);\n const [videoData, setVideoData] = useState(null);\n const [videoError, setVideoError] = useState(null);\n const [shouldRenderVideo, setShouldRenderVideo] = useState(!!autoplay);\n\n useEffect(() => {\n async function fetchVideoData(videoUrl) {\n try {\n const res = await fetch(videoUrl);\n const data = await res.json();\n setVideoData(data);\n } catch (err) {\n setVideoError(err);\n }\n }\n if (url) {\n const currentHeight = inputEl.current.clientHeight;\n const urlWithParams = addExtraParamsToUrl(url, {\n autoplay: true,\n loop,\n height: currentHeight\n });\n fetchVideoData(urlWithParams);\n }\n }, [autoplay, loop, url]);\n\n const { thumbnail_url_with_play_button: thumbnailUrl, html = '' } = videoData || {};\n const imageUrl = imageData && imageData.url;\n const backgroundUrl = imageUrl || thumbnailUrl;\n const videoStyle = {};\n if (!shouldRenderVideo && backgroundUrl)\n videoStyle.backgroundImage = `url(${!shouldRenderVideo ? backgroundUrl : ''})`;\n if (inputEl && inputEl.current) videoStyle.maxheight = inputEl.current.clientHeight;\n const parsedCode = parseHTML(html);\n const wrappedCode = wrapScriptTags(parsedCode);\n\n return (\n <div\n ref={inputEl}\n role=\"button\"\n className={VIDEO_WRAPPER_CLASS_NAME}\n style={videoStyle}\n onClick={() => !shouldRenderVideo && setShouldRenderVideo(true)}>\n {shouldRenderVideo && !videoError && wrappedCode}\n {videoError && videoError.message}\n </div>\n );\n};\n\nVimeoProvider.propTypes = {\n url: PropTypes.string.isRequired,\n autoplay: PropTypes.bool,\n loop: PropTypes.bool,\n imageData: PropTypes.object\n};\n\nVimeoProvider.defaultProps = {\n autoplay: false,\n loop: false,\n imageData: null\n};\n\nexport default VimeoProvider;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AAAiE,SAAAO,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAT,wBAAAS,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,gBAAAK,OAAA,CAAAL,CAAA,0BAAAA,CAAA,sBAAAA,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,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U,IAAIA,UAAU,CAACyD,OACvB,CAAC;AAEV,CAAC;AAEDzE,aAAa,CAAC0E,SAAS,GAAG;EACxBxE,GAAG,EAAEyE,qBAAS,CAACC,MAAM,CAACC,UAAU;EAChC1E,QAAQ,EAAEwE,qBAAS,CAACG,IAAI;EACxB1E,IAAI,EAAEuE,qBAAS,CAACG,IAAI;EACpBzE,SAAS,EAAEsE,qBAAS,CAACI;AACvB,CAAC;AAED/E,aAAa,CAACgF,YAAY,GAAG;EAC3B7E,QAAQ,EAAE,KAAK;EACfC,IAAI,EAAE,KAAK;EACXC,SAAS,EAAE;AACb,CAAC;AAAC,IAAA4E,QAAA,GAAAC,OAAA,cAEalF,aAAa","ignoreList":[]}
@@ -5,17 +5,17 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports["default"] = void 0;
8
+ require("core-js/modules/es.array.concat.js");
8
9
  require("core-js/modules/es.array.for-each.js");
9
- require("core-js/modules/es.object.to-string.js");
10
- require("core-js/modules/web.dom-collections.for-each.js");
11
- require("core-js/modules/es.object.keys.js");
12
10
  require("core-js/modules/es.array.iterator.js");
11
+ require("core-js/modules/es.date.to-string.js");
12
+ require("core-js/modules/es.object.keys.js");
13
+ require("core-js/modules/es.object.to-string.js");
14
+ require("core-js/modules/es.regexp.to-string.js");
13
15
  require("core-js/modules/es.string.iterator.js");
16
+ require("core-js/modules/web.dom-collections.for-each.js");
14
17
  require("core-js/modules/web.dom-collections.iterator.js");
15
18
  require("core-js/modules/web.url-search-params.js");
16
- require("core-js/modules/es.date.to-string.js");
17
- require("core-js/modules/es.regexp.to-string.js");
18
- require("core-js/modules/es.array.concat.js");
19
19
  var _constants = require("../../../../../constants");
20
20
  var addExtraParamsToUrl = function addExtraParamsToUrl(url) {
21
21
  var queryParams = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -1 +1 @@
1
- {"version":3,"file":"add-extra-params-to-url.js","names":["_constants","require","addExtraParamsToUrl","url","queryParams","arguments","length","undefined","paramsWithValues","Object","keys","forEach","key","parsedParams","URLSearchParams","stringParams","toString","concat","VIMEO_OEMBED_URL","_default","exports"],"sources":["../../../../../../src/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js"],"sourcesContent":["import { VIMEO_OEMBED_URL } from '../../../../../constants';\n\nconst addExtraParamsToUrl = (url, queryParams = {}) => {\n const paramsWithValues = {};\n Object.keys(queryParams).forEach(key => {\n if (queryParams[key]) {\n paramsWithValues[key] = queryParams[key];\n }\n });\n const parsedParams = new URLSearchParams(paramsWithValues);\n const stringParams = parsedParams.toString();\n return `${VIMEO_OEMBED_URL}?url=${url}${stringParams ? `&${stringParams}` : ''}`;\n};\n\nexport default addExtraParamsToUrl;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAIC,GAAG,EAAuB;EAAA,IAArBC,WAAW,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EAChD,IAAMG,gBAAgB,GAAG,CAAC,CAAC;EAC3BC,MAAM,CAACC,IAAI,CAACN,WAAW,CAAC,CAACO,OAAO,CAAC,UAAAC,GAAG,EAAI;IACtC,IAAIR,WAAW,CAACQ,GAAG,CAAC,EAAE;MACpBJ,gBAAgB,CAACI,GAAG,CAAC,GAAGR,WAAW,CAACQ,GAAG,CAAC;IAC1C;EACF,CAAC,CAAC;EACF,IAAMC,YAAY,GAAG,IAAIC,eAAe,CAACN,gBAAgB,CAAC;EAC1D,IAAMO,YAAY,GAAGF,YAAY,CAACG,QAAQ,CAAC,CAAC;EAC5C,UAAAC,MAAA,CAAUC,2BAAgB,WAAAD,MAAA,CAAQd,GAAG,EAAAc,MAAA,CAAGF,YAAY,OAAAE,MAAA,CAAOF,YAAY,IAAK,EAAE;AAChF,CAAC;AAAC,IAAAI,QAAA,GAAAC,OAAA,cAEalB,mBAAmB"}
1
+ {"version":3,"file":"add-extra-params-to-url.js","names":["_constants","require","addExtraParamsToUrl","url","queryParams","arguments","length","undefined","paramsWithValues","Object","keys","forEach","key","parsedParams","URLSearchParams","stringParams","toString","concat","VIMEO_OEMBED_URL","_default","exports"],"sources":["../../../../../../src/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js"],"sourcesContent":["import { VIMEO_OEMBED_URL } from '../../../../../constants';\n\nconst addExtraParamsToUrl = (url, queryParams = {}) => {\n const paramsWithValues = {};\n Object.keys(queryParams).forEach(key => {\n if (queryParams[key]) {\n paramsWithValues[key] = queryParams[key];\n }\n });\n const parsedParams = new URLSearchParams(paramsWithValues);\n const stringParams = parsedParams.toString();\n return `${VIMEO_OEMBED_URL}?url=${url}${stringParams ? `&${stringParams}` : ''}`;\n};\n\nexport default addExtraParamsToUrl;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAIC,GAAG,EAAuB;EAAA,IAArBC,WAAW,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EAChD,IAAMG,gBAAgB,GAAG,CAAC,CAAC;EAC3BC,MAAM,CAACC,IAAI,CAACN,WAAW,CAAC,CAACO,OAAO,CAAC,UAAAC,GAAG,EAAI;IACtC,IAAIR,WAAW,CAACQ,GAAG,CAAC,EAAE;MACpBJ,gBAAgB,CAACI,GAAG,CAAC,GAAGR,WAAW,CAACQ,GAAG,CAAC;IAC1C;EACF,CAAC,CAAC;EACF,IAAMC,YAAY,GAAG,IAAIC,eAAe,CAACN,gBAAgB,CAAC;EAC1D,IAAMO,YAAY,GAAGF,YAAY,CAACG,QAAQ,CAAC,CAAC;EAC5C,UAAAC,MAAA,CAAUC,2BAAgB,WAAAD,MAAA,CAAQd,GAAG,EAAAc,MAAA,CAAGF,YAAY,OAAAE,MAAA,CAAOF,YAAY,IAAK,EAAE;AAChF,CAAC;AAAC,IAAAI,QAAA,GAAAC,OAAA,cAEalB,mBAAmB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_addExtraParamsToUrl","_interopRequireDefault","require"],"sources":["../../../../../../src/components/Video/providers/Vimeo/helpers/index.js"],"sourcesContent":["import addExtraParamsToUrl from './add-extra-params-to-url';\n\nexport { addExtraParamsToUrl };\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,oBAAA,GAAAC,sBAAA,CAAAC,OAAA"}
1
+ {"version":3,"file":"index.js","names":["_addExtraParamsToUrl","_interopRequireDefault","require"],"sources":["../../../../../../src/components/Video/providers/Vimeo/helpers/index.js"],"sourcesContent":["import addExtraParamsToUrl from './add-extra-params-to-url';\n\nexport { addExtraParamsToUrl };\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,oBAAA,GAAAC,sBAAA,CAAAC,OAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"YouTubeProvider.js","names":["_react","_interopRequireDefault","require","_propTypes","_YoutubeEmbeded","_helpers","_constants","YouTubeProvider","_ref","url","autoplay","loop","placeholderOnly","imageData","videoId","getYouTubeID","params","concat","booleanToNumber","createElement","className","VIDEO_WRAPPER_CLASS_NAME","propTypes","PropTypes","string","isRequired","bool","object","defaultProps","_default","exports"],"sources":["../../../../../src/components/Video/providers/YouTube/YouTubeProvider.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport YoutubeEmbeded from './YoutubeEmbeded';\nimport { getYouTubeID, booleanToNumber } from './helpers';\nimport { VIDEO_WRAPPER_CLASS_NAME } from '../../../../constants';\n\nconst YouTubeProvider = ({ url, autoplay, loop, placeholderOnly, imageData }) => {\n const videoId = getYouTubeID(url);\n\n if (!videoId) return null;\n const params = `loop=${booleanToNumber(loop)}`;\n\n return (\n <div className={VIDEO_WRAPPER_CLASS_NAME}>\n <YoutubeEmbeded\n autoplay={autoplay}\n videoId={videoId}\n params={params}\n placeholderOnly={placeholderOnly}\n imageData={imageData}\n />\n </div>\n );\n};\n\nYouTubeProvider.propTypes = {\n url: PropTypes.string.isRequired,\n autoplay: PropTypes.bool,\n loop: PropTypes.bool,\n placeholderOnly: PropTypes.bool,\n imageData: PropTypes.object\n};\n\nYouTubeProvider.defaultProps = {\n autoplay: false,\n loop: false,\n placeholderOnly: false,\n imageData: {}\n};\n\nexport default YouTubeProvider;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,eAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAEA,IAAMK,eAAe,GAAG,SAAlBA,eAAeA,CAAAC,IAAA,EAA4D;EAAA,IAAtDC,GAAG,GAAAD,IAAA,CAAHC,GAAG;IAAEC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAEC,IAAI,GAAAH,IAAA,CAAJG,IAAI;IAAEC,eAAe,GAAAJ,IAAA,CAAfI,eAAe;IAAEC,SAAS,GAAAL,IAAA,CAATK,SAAS;EACxE,IAAMC,OAAO,GAAG,IAAAC,qBAAY,EAACN,GAAG,CAAC;EAEjC,IAAI,CAACK,OAAO,EAAE,OAAO,IAAI;EACzB,IAAME,MAAM,WAAAC,MAAA,CAAW,IAAAC,wBAAe,EAACP,IAAI,CAAC,CAAE;EAE9C,oBACEX,MAAA,YAAAmB,aAAA;IAAKC,SAAS,EAAEC;EAAyB,gBACvCrB,MAAA,YAAAmB,aAAA,CAACf,eAAA,WAAc;IACbM,QAAQ,EAAEA,QAAS;IACnBI,OAAO,EAAEA,OAAQ;IACjBE,MAAM,EAAEA,MAAO;IACfJ,eAAe,EAAEA,eAAgB;IACjCC,SAAS,EAAEA;EAAU,CACtB,CACE,CAAC;AAEV,CAAC;AAEDN,eAAe,CAACe,SAAS,GAAG;EAC1Bb,GAAG,EAAEc,qBAAS,CAACC,MAAM,CAACC,UAAU;EAChCf,QAAQ,EAAEa,qBAAS,CAACG,IAAI;EACxBf,IAAI,EAAEY,qBAAS,CAACG,IAAI;EACpBd,eAAe,EAAEW,qBAAS,CAACG,IAAI;EAC/Bb,SAAS,EAAEU,qBAAS,CAACI;AACvB,CAAC;AAEDpB,eAAe,CAACqB,YAAY,GAAG;EAC7BlB,QAAQ,EAAE,KAAK;EACfC,IAAI,EAAE,KAAK;EACXC,eAAe,EAAE,KAAK;EACtBC,SAAS,EAAE,CAAC;AACd,CAAC;AAAC,IAAAgB,QAAA,GAAAC,OAAA,cAEavB,eAAe"}
1
+ {"version":3,"file":"YouTubeProvider.js","names":["_react","_interopRequireDefault","require","_propTypes","_YoutubeEmbeded","_helpers","_constants","YouTubeProvider","_ref","url","autoplay","loop","placeholderOnly","imageData","videoId","getYouTubeID","params","concat","booleanToNumber","createElement","className","VIDEO_WRAPPER_CLASS_NAME","propTypes","PropTypes","string","isRequired","bool","object","defaultProps","_default","exports"],"sources":["../../../../../src/components/Video/providers/YouTube/YouTubeProvider.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport YoutubeEmbeded from './YoutubeEmbeded';\nimport { getYouTubeID, booleanToNumber } from './helpers';\nimport { VIDEO_WRAPPER_CLASS_NAME } from '../../../../constants';\n\nconst YouTubeProvider = ({ url, autoplay, loop, placeholderOnly, imageData }) => {\n const videoId = getYouTubeID(url);\n\n if (!videoId) return null;\n const params = `loop=${booleanToNumber(loop)}`;\n\n return (\n <div className={VIDEO_WRAPPER_CLASS_NAME}>\n <YoutubeEmbeded\n autoplay={autoplay}\n videoId={videoId}\n params={params}\n placeholderOnly={placeholderOnly}\n imageData={imageData}\n />\n </div>\n );\n};\n\nYouTubeProvider.propTypes = {\n url: PropTypes.string.isRequired,\n autoplay: PropTypes.bool,\n loop: PropTypes.bool,\n placeholderOnly: PropTypes.bool,\n imageData: PropTypes.object\n};\n\nYouTubeProvider.defaultProps = {\n autoplay: false,\n loop: false,\n placeholderOnly: false,\n imageData: {}\n};\n\nexport default YouTubeProvider;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,eAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAEA,IAAMK,eAAe,GAAG,SAAlBA,eAAeA,CAAAC,IAAA,EAA4D;EAAA,IAAtDC,GAAG,GAAAD,IAAA,CAAHC,GAAG;IAAEC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAEC,IAAI,GAAAH,IAAA,CAAJG,IAAI;IAAEC,eAAe,GAAAJ,IAAA,CAAfI,eAAe;IAAEC,SAAS,GAAAL,IAAA,CAATK,SAAS;EACxE,IAAMC,OAAO,GAAG,IAAAC,qBAAY,EAACN,GAAG,CAAC;EAEjC,IAAI,CAACK,OAAO,EAAE,OAAO,IAAI;EACzB,IAAME,MAAM,WAAAC,MAAA,CAAW,IAAAC,wBAAe,EAACP,IAAI,CAAC,CAAE;EAE9C,oBACEX,MAAA,YAAAmB,aAAA;IAAKC,SAAS,EAAEC;EAAyB,gBACvCrB,MAAA,YAAAmB,aAAA,CAACf,eAAA,WAAc;IACbM,QAAQ,EAAEA,QAAS;IACnBI,OAAO,EAAEA,OAAQ;IACjBE,MAAM,EAAEA,MAAO;IACfJ,eAAe,EAAEA,eAAgB;IACjCC,SAAS,EAAEA;EAAU,CACtB,CACE,CAAC;AAEV,CAAC;AAEDN,eAAe,CAACe,SAAS,GAAG;EAC1Bb,GAAG,EAAEc,qBAAS,CAACC,MAAM,CAACC,UAAU;EAChCf,QAAQ,EAAEa,qBAAS,CAACG,IAAI;EACxBf,IAAI,EAAEY,qBAAS,CAACG,IAAI;EACpBd,eAAe,EAAEW,qBAAS,CAACG,IAAI;EAC/Bb,SAAS,EAAEU,qBAAS,CAACI;AACvB,CAAC;AAEDpB,eAAe,CAACqB,YAAY,GAAG;EAC7BlB,QAAQ,EAAE,KAAK;EACfC,IAAI,EAAE,KAAK;EACXC,eAAe,EAAE,KAAK;EACtBC,SAAS,EAAE,CAAC;AACd,CAAC;AAAC,IAAAgB,QAAA,GAAAC,OAAA,cAEavB,eAAe","ignoreList":[]}
@@ -1,12 +1,12 @@
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", {
@@ -23,7 +23,7 @@ var _helpers = require("./helpers");
23
23
  var _VideoContext = require("../../VideoContext");
24
24
  var _constants2 = require("../../constants");
25
25
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
26
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
26
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
27
27
  var SCRIPT_ID = 'youtube-iframe-api';
28
28
  var YoutubeEmbeded = function YoutubeEmbeded(_ref) {
29
29
  var autoplay = _ref.autoplay,
@@ -1 +1 @@
1
- {"version":3,"file":"YoutubeEmbeded.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_customHooks","_constants","_helpers","_VideoContext","_constants2","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","SCRIPT_ID","YoutubeEmbeded","_ref","autoplay","videoId","playlistCoverId","videoTitle","poster","videoParams","announce","noCookie","webp","playlist","onIframeAdded","muted","adNetwork","iframeClass","priority","placeholderOnly","imageData","ref","useRef","playerRef","_useContext","useContext","VideoContext","emitEvent","_useInView","useInView","IN_VIEW_CONFIG","_useInView2","_slicedToArray2","isIntersecting","outerRef","_useState","useState","_useState2","preconnected","setPreconnected","_useState3","_useState4","renderIframe","setRenderIframe","_useState5","imageSize","displayImage","_useState6","_useState6$","setImageDetails","encodedId","encodeURIComponent","paramsImp","concat","ytUrl","posterUrl","getPosterUrl","mutedValue","iframeSrc","parsedWrapperClassname","iframeId","useEffect","document","getElementById","tag","createElement","id","src","firstScriptTag","getElementsByTagName","parentNode","insertBefore","onStateChange","event","action","data","window","YT","PlayerState","ENDED","EVENT_ACTIONS","PAUSED","PLAYING","ready","current","Player","events","onYouTubeIframeAPIReady","isMounted","YT_HQ_FORMAT","img","Image","onload","newImageSize","width","warmConnections","addIframe","Fragment","rel","href","YT_IMAGE_URL","role","onPointerOver","onClick","className","style","backgroundImage","type","title","allow","allowFullScreen","propTypes","PropTypes","bool","func","string","object","defaultProps","_default","exports"],"sources":["../../../../../src/components/Video/providers/YouTube/YoutubeEmbeded.js"],"sourcesContent":["import React, { useState, useEffect, useContext, useRef } from 'react';\nimport PropTypes from 'prop-types';\nimport { useInView } from '@blaze-react/utils/lib/customHooks';\nimport { IN_VIEW_CONFIG } from '../../../../constants';\nimport { getPosterUrl, YT_HQ_FORMAT, YT_IMAGE_URL } from './helpers';\nimport { VideoContext } from '../../VideoContext';\nimport { EVENT_ACTIONS } from '../../constants';\n\nconst SCRIPT_ID = 'youtube-iframe-api';\n\nconst YoutubeEmbeded = ({\n autoplay,\n videoId,\n playlistCoverId,\n videoTitle,\n poster,\n videoParams,\n announce,\n noCookie,\n webp,\n playlist,\n onIframeAdded,\n muted,\n adNetwork,\n iframeClass,\n priority,\n placeholderOnly,\n imageData\n}) => {\n const ref = useRef(null);\n const playerRef = useRef(null);\n const { emitEvent } = useContext(VideoContext);\n const [isIntersecting, outerRef] = useInView(IN_VIEW_CONFIG);\n const [preconnected, setPreconnected] = useState(false);\n const [renderIframe, setRenderIframe] = useState(!!autoplay);\n const [{ imageSize, displayImage }, setImageDetails] = useState({\n imageSize: poster,\n displayImage: priority\n });\n\n const encodedId = encodeURIComponent(videoId);\n const paramsImp = videoParams ? `&${videoParams}` : '';\n const ytUrl = noCookie ? 'https://www.youtube-nocookie.com' : 'https://www.youtube.com';\n const posterUrl = getPosterUrl({\n imageData,\n playlistCoverId,\n playlist,\n encodedId,\n imageSize,\n webp\n });\n const mutedValue = muted ? '&mute=1' : '';\n let iframeSrc = !playlist\n ? `${ytUrl}/embed/${encodedId}?autoplay=1${mutedValue}${paramsImp}`\n : `${ytUrl}/embed/videoseries?autoplay=1${mutedValue}&list=${encodedId}${paramsImp}`;\n if (emitEvent) {\n iframeSrc += `&enablejsapi=1`;\n }\n\n const parsedWrapperClassname = `yt-facade ${renderIframe ? 'yt-activated' : ''}`;\n const iframeId = `yt-iframe-${videoId}`;\n\n useEffect(\n () => {\n if (!emitEvent || !renderIframe) return;\n\n if (!document.getElementById(SCRIPT_ID)) {\n // if script not already loaded\n const tag = document.createElement('script');\n tag.id = SCRIPT_ID;\n tag.src = 'https://www.youtube.com/iframe_api';\n const firstScriptTag = document.getElementsByTagName('script')[0];\n firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);\n }\n\n const onStateChange = event => {\n let action = '';\n if (event.data === window.YT.PlayerState.ENDED) {\n action = EVENT_ACTIONS.ENDED;\n } else if (event.data === window.YT.PlayerState.PAUSED) {\n action = EVENT_ACTIONS.PAUSED;\n } else if (event.data === window.YT.PlayerState.PLAYING) {\n action = EVENT_ACTIONS.PLAYING;\n }\n\n emitEvent({ action, videoId });\n };\n\n if (window.YT) {\n // if script already loaded then attach player\n window.YT.ready(() => {\n playerRef.current = new window.YT.Player(iframeId, {\n events: {\n onStateChange\n }\n });\n });\n } else {\n // called on script load\n window.onYouTubeIframeAPIReady = () => {\n playerRef.current = new window.YT.Player(ref.current, {\n events: {\n onStateChange\n }\n });\n };\n }\n },\n [emitEvent, iframeId, renderIframe, videoId]\n );\n\n useEffect(\n () => {\n let isMounted = true;\n if ((!priority && !isIntersecting) || imageSize === YT_HQ_FORMAT) return;\n\n const img = new Image();\n // eslint-disable-next-line func-names\n img.onload = function() {\n let newImageSize = imageSize;\n if (this && this.width === 120) newImageSize = YT_HQ_FORMAT;\n if (isMounted) setImageDetails({ imageSize: newImageSize, displayImage: true });\n };\n\n img.src = posterUrl;\n return () => {\n isMounted = false;\n };\n },\n [imageSize, isIntersecting, posterUrl, priority]\n );\n\n const warmConnections = () => {\n if (preconnected) return;\n setPreconnected(true);\n };\n\n const addIframe = () => {\n if (renderIframe || placeholderOnly) return;\n onIframeAdded();\n setRenderIframe(true);\n };\n\n return (\n <>\n {preconnected && (\n <>\n <link rel=\"preconnect\" href={YT_IMAGE_URL} />\n <link rel=\"preconnect\" href={ytUrl} />\n <link rel=\"preconnect\" href=\"https://www.google.com\" />\n {adNetwork && (\n <>\n <link rel=\"preconnect\" href=\"https://static.doubleclick.net\" />\n <link rel=\"preconnect\" href=\"https://googleads.g.doubleclick.net\" />\n </>\n )}\n </>\n )}\n <div\n ref={outerRef}\n role=\"button\"\n onPointerOver={warmConnections}\n onClick={addIframe}\n className={parsedWrapperClassname}\n data-title={videoTitle}\n aria-label={`View ${videoTitle || 'video'}`}\n style={{\n backgroundImage: `url(${displayImage ? posterUrl : ''})`\n }}>\n <div\n type=\"button\"\n className=\"yt-facade-button-wrapper\"\n aria-label={`${announce} ${videoTitle}`}>\n <div className=\"yt-facade-button\" />\n </div>\n {renderIframe && (\n <iframe\n ref={ref}\n id={iframeId}\n className={iframeClass}\n title={videoTitle}\n allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\"\n allowFullScreen\n src={iframeSrc}\n />\n )}\n </div>\n </>\n );\n};\n\nYoutubeEmbeded.propTypes = {\n priority: PropTypes.bool,\n onIframeAdded: PropTypes.func,\n adNetwork: PropTypes.bool,\n autoplay: PropTypes.bool,\n playlist: PropTypes.bool,\n muted: PropTypes.bool,\n webp: PropTypes.bool,\n noCookie: PropTypes.bool,\n videoId: PropTypes.string,\n iframeClass: PropTypes.string,\n poster: PropTypes.string,\n announce: PropTypes.string,\n playlistCoverId: PropTypes.string,\n videoParams: PropTypes.string,\n videoTitle: PropTypes.string,\n placeholderOnly: PropTypes.bool,\n imageData: PropTypes.object\n};\n\nYoutubeEmbeded.defaultProps = {\n priority: true,\n onIframeAdded: () => {},\n adNetwork: false,\n autoplay: false,\n playlist: false,\n muted: false,\n webp: false,\n noCookie: false,\n iframeClass: '',\n poster: 'sddefault',\n announce: 'Watch',\n videoId: '',\n playlistCoverId: '',\n videoParams: '',\n vide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AACG,MAAM;EACzBlG,WAAW,EAAE+F,qBAAS,CAACG,MAAM;EAC7B3G,MAAM,EAAEwG,qBAAS,CAACG,MAAM;EACxBzG,QAAQ,EAAEsG,qBAAS,CAACG,MAAM;EAC1B7G,eAAe,EAAE0G,qBAAS,CAACG,MAAM;EACjC1G,WAAW,EAAEuG,qBAAS,CAACG,MAAM;EAC7B5G,UAAU,EAAEyG,qBAAS,CAACG,MAAM;EAC5BhG,eAAe,EAAE6F,qBAAS,CAACC,IAAI;EAC/B7F,SAAS,EAAE4F,qBAAS,CAACI;AACvB,CAAC;AAEDlH,cAAc,CAACmH,YAAY,GAAG;EAC5BnG,QAAQ,EAAE,IAAI;EACdJ,aAAa,EAAE,SAAAA,cAAA,EAAM,CAAC,CAAC;EACvBE,SAAS,EAAE,KAAK;EAChBZ,QAAQ,EAAE,KAAK;EACfS,QAAQ,EAAE,KAAK;EACfE,KAAK,EAAE,KAAK;EACZH,IAAI,EAAE,KAAK;EACXD,QAAQ,EAAE,KAAK;EACfM,WAAW,EAAE,EAAE;EACfT,MAAM,EAAE,WAAW;EACnBE,QAAQ,EAAE,OAAO;EACjBL,OAAO,EAAE,EAAE;EACXC,eAAe,EAAE,EAAE;EACnBG,WAAW,EAAE,EAAE;EACfF,UAAU,EAAE,EAAE;EACdY,eAAe,EAAE,KAAK;EACtBC,SAAS,EAAE,CAAC;AACd,CAAC;AAAC,IAAAkG,QAAA,GAAAC,OAAA,cAEarH,cAAc"}
1
+ {"version":3,"file":"YoutubeEmbeded.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_customHooks","_constants","_helpers","_VideoContext","_constants2","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","SCRIPT_ID","YoutubeEmbeded","_ref","autoplay","videoId","playlistCoverId","videoTitle","poster","videoParams","announce","noCookie","webp","playlist","onIframeAdded","muted","adNetwork","iframeClass","priority","placeholderOnly","imageData","ref","useRef","playerRef","_useContext","useContext","VideoContext","emitEvent","_useInView","useInView","IN_VIEW_CONFIG","_useInView2","_slicedToArray2","isIntersecting","outerRef","_useState","useState","_useState2","preconnected","setPreconnected","_useState3","_useState4","renderIframe","setRenderIframe","_useState5","imageSize","displayImage","_useState6","_useState6$","setImageDetails","encodedId","encodeURIComponent","paramsImp","concat","ytUrl","posterUrl","getPosterUrl","mutedValue","iframeSrc","parsedWrapperClassname","iframeId","useEffect","document","getElementById","tag","createElement","id","src","firstScriptTag","getElementsByTagName","parentNode","insertBefore","onStateChange","event","action","data","window","YT","PlayerState","ENDED","EVENT_ACTIONS","PAUSED","PLAYING","ready","current","Player","events","onYouTubeIframeAPIReady","isMounted","YT_HQ_FORMAT","img","Image","onload","newImageSize","width","warmConnections","addIframe","Fragment","rel","href","YT_IMAGE_URL","role","onPointerOver","onClick","className","style","backgroundImage","type","title","allow","allowFullScreen","propTypes","PropTypes","bool","func","string","object","defaultProps","_default","exports"],"sources":["../../../../../src/components/Video/providers/YouTube/YoutubeEmbeded.js"],"sourcesContent":["import React, { useState, useEffect, useContext, useRef } from 'react';\nimport PropTypes from 'prop-types';\nimport { useInView } from '@blaze-react/utils/lib/customHooks';\nimport { IN_VIEW_CONFIG } from '../../../../constants';\nimport { getPosterUrl, YT_HQ_FORMAT, YT_IMAGE_URL } from './helpers';\nimport { VideoContext } from '../../VideoContext';\nimport { EVENT_ACTIONS } from '../../constants';\n\nconst SCRIPT_ID = 'youtube-iframe-api';\n\nconst YoutubeEmbeded = ({\n autoplay,\n videoId,\n playlistCoverId,\n videoTitle,\n poster,\n videoParams,\n announce,\n noCookie,\n webp,\n playlist,\n onIframeAdded,\n muted,\n adNetwork,\n iframeClass,\n priority,\n placeholderOnly,\n imageData\n}) => {\n const ref = useRef(null);\n const playerRef = useRef(null);\n const { emitEvent } = useContext(VideoContext);\n const [isIntersecting, outerRef] = useInView(IN_VIEW_CONFIG);\n const [preconnected, setPreconnected] = useState(false);\n const [renderIframe, setRenderIframe] = useState(!!autoplay);\n const [{ imageSize, displayImage }, setImageDetails] = useState({\n imageSize: poster,\n displayImage: priority\n });\n\n const encodedId = encodeURIComponent(videoId);\n const paramsImp = videoParams ? `&${videoParams}` : '';\n const ytUrl = noCookie ? 'https://www.youtube-nocookie.com' : 'https://www.youtube.com';\n const posterUrl = getPosterUrl({\n imageData,\n playlistCoverId,\n playlist,\n encodedId,\n imageSize,\n webp\n });\n const mutedValue = muted ? '&mute=1' : '';\n let iframeSrc = !playlist\n ? `${ytUrl}/embed/${encodedId}?autoplay=1${mutedValue}${paramsImp}`\n : `${ytUrl}/embed/videoseries?autoplay=1${mutedValue}&list=${encodedId}${paramsImp}`;\n if (emitEvent) {\n iframeSrc += `&enablejsapi=1`;\n }\n\n const parsedWrapperClassname = `yt-facade ${renderIframe ? 'yt-activated' : ''}`;\n const iframeId = `yt-iframe-${videoId}`;\n\n useEffect(() => {\n if (!emitEvent || !renderIframe) return;\n\n if (!document.getElementById(SCRIPT_ID)) {\n // if script not already loaded\n const tag = document.createElement('script');\n tag.id = SCRIPT_ID;\n tag.src = 'https://www.youtube.com/iframe_api';\n const firstScriptTag = document.getElementsByTagName('script')[0];\n firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);\n }\n\n const onStateChange = event => {\n let action = '';\n if (event.data === window.YT.PlayerState.ENDED) {\n action = EVENT_ACTIONS.ENDED;\n } else if (event.data === window.YT.PlayerState.PAUSED) {\n action = EVENT_ACTIONS.PAUSED;\n } else if (event.data === window.YT.PlayerState.PLAYING) {\n action = EVENT_ACTIONS.PLAYING;\n }\n\n emitEvent({ action, videoId });\n };\n\n if (window.YT) {\n // if script already loaded then attach player\n window.YT.ready(() => {\n playerRef.current = new window.YT.Player(iframeId, {\n events: {\n onStateChange\n }\n });\n });\n } else {\n // called on script load\n window.onYouTubeIframeAPIReady = () => {\n playerRef.current = new window.YT.Player(ref.current, {\n events: {\n onStateChange\n }\n });\n };\n }\n }, [emitEvent, iframeId, renderIframe, videoId]);\n\n useEffect(() => {\n let isMounted = true;\n if ((!priority && !isIntersecting) || imageSize === YT_HQ_FORMAT) return;\n\n const img = new Image();\n // eslint-disable-next-line func-names\n img.onload = function () {\n let newImageSize = imageSize;\n if (this && this.width === 120) newImageSize = YT_HQ_FORMAT;\n if (isMounted) setImageDetails({ imageSize: newImageSize, displayImage: true });\n };\n\n img.src = posterUrl;\n return () => {\n isMounted = false;\n };\n }, [imageSize, isIntersecting, posterUrl, priority]);\n\n const warmConnections = () => {\n if (preconnected) return;\n setPreconnected(true);\n };\n\n const addIframe = () => {\n if (renderIframe || placeholderOnly) return;\n onIframeAdded();\n setRenderIframe(true);\n };\n\n return (\n <>\n {preconnected && (\n <>\n <link rel=\"preconnect\" href={YT_IMAGE_URL} />\n <link rel=\"preconnect\" href={ytUrl} />\n <link rel=\"preconnect\" href=\"https://www.google.com\" />\n {adNetwork && (\n <>\n <link rel=\"preconnect\" href=\"https://static.doubleclick.net\" />\n <link rel=\"preconnect\" href=\"https://googleads.g.doubleclick.net\" />\n </>\n )}\n </>\n )}\n <div\n ref={outerRef}\n role=\"button\"\n onPointerOver={warmConnections}\n onClick={addIframe}\n className={parsedWrapperClassname}\n data-title={videoTitle}\n aria-label={`View ${videoTitle || 'video'}`}\n style={{\n backgroundImage: `url(${displayImage ? posterUrl : ''})`\n }}>\n <div\n type=\"button\"\n className=\"yt-facade-button-wrapper\"\n aria-label={`${announce} ${videoTitle}`}>\n <div className=\"yt-facade-button\" />\n </div>\n {renderIframe && (\n <iframe\n ref={ref}\n id={iframeId}\n className={iframeClass}\n title={videoTitle}\n allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\"\n allowFullScreen\n src={iframeSrc}\n />\n )}\n </div>\n </>\n );\n};\n\nYoutubeEmbeded.propTypes = {\n priority: PropTypes.bool,\n onIframeAdded: PropTypes.func,\n adNetwork: PropTypes.bool,\n autoplay: PropTypes.bool,\n playlist: PropTypes.bool,\n muted: PropTypes.bool,\n webp: PropTypes.bool,\n noCookie: PropTypes.bool,\n videoId: PropTypes.string,\n iframeClass: PropTypes.string,\n poster: PropTypes.string,\n announce: PropTypes.string,\n playlistCoverId: PropTypes.string,\n videoParams: PropTypes.string,\n videoTitle: PropTypes.string,\n placeholderOnly: PropTypes.bool,\n imageData: PropTypes.object\n};\n\nYoutubeEmbeded.defaultProps = {\n priority: true,\n onIframeAdded: () => {},\n adNetwork: false,\n autoplay: false,\n playlist: false,\n muted: false,\n webp: false,\n noCookie: false,\n iframeClass: '',\n poster: 'sddefault',\n announce: 'Watch',\n videoId: '',\n playlistCoverId: '',\n videoParams: '',\n videoTitle: '',\n placeholderOnly: false,\n imageData: {}\n};\n\nexport default YoutubeEmbeded;\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AACA,IAAAM,aAAA,GAAAN,OAAA;AACA,IAAAO,WAAA,GAAAP,OAAA;AAAgD,SAAAQ,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAV,wBAAAU,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,gBAAAK,OAAA,CAAAL,CAAA,0BAAAA,CAAA,sBAAAA,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAA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C;AACd,CAAC;AAAC,IAAAkG,QAAA,GAAAC,OAAA,cAEarH,cAAc","ignoreList":[]}
@@ -9,9 +9,9 @@ exports.YT_IMAGE_URL = exports.YT_HQ_FORMAT = void 0;
9
9
  exports.booleanToNumber = booleanToNumber;
10
10
  exports.getPosterUrl = void 0;
11
11
  exports.getYouTubeID = getYouTubeID;
12
+ require("core-js/modules/es.array.concat.js");
12
13
  require("core-js/modules/es.regexp.exec.js");
13
14
  require("core-js/modules/es.string.match.js");
14
- require("core-js/modules/es.array.concat.js");
15
15
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
16
16
  var YOUTUBE_REGEX = /^.*((m\.)?youtu\.be\/|vi?\/|u\/\w\/|embed\/|\?vi?=|\&vi?=)([^#\&\?]*).*/;
17
17
  var YT_IMAGE_URL = exports.YT_IMAGE_URL = 'https://i.ytimg.com';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["YOUTUBE_REGEX","YT_IMAGE_URL","exports","YT_HQ_FORMAT","getYouTubeID","uri","_ref","match","_ref2","_slicedToArray2","videoId","booleanToNumber","flag","getPosterUrl","_ref3","imageData","playlistCoverId","playlist","encodedId","imageSize","webp","url","videoPlaylisCovertId","encodeURIComponent","format","vi","concat"],"sources":["../../../../../../src/components/Video/providers/YouTube/helpers/index.js"],"sourcesContent":["const YOUTUBE_REGEX = /^.*((m\\.)?youtu\\.be\\/|vi?\\/|u\\/\\w\\/|embed\\/|\\?vi?=|\\&vi?=)([^#\\&\\?]*).*/;\nconst YT_IMAGE_URL = 'https://i.ytimg.com';\nconst YT_HQ_FORMAT = 'hqdefault';\n\nfunction getYouTubeID(uri) {\n const [, , , videoId] = uri.match(YOUTUBE_REGEX) || [];\n return videoId;\n}\n\nfunction booleanToNumber(flag) {\n return flag ? 1 : 0;\n}\n\nconst getPosterUrl = ({ imageData, playlistCoverId, playlist, encodedId, imageSize, webp }) => {\n if (imageData && imageData.url) return imageData.url;\n const videoPlaylisCovertId =\n typeof playlistCoverId === 'string' ? encodeURIComponent(playlistCoverId) : null;\n\n const format = webp ? 'webp' : 'jpg';\n const vi = webp ? 'vi_webp' : 'vi';\n return !playlist\n ? `${YT_IMAGE_URL}/${vi}/${encodedId}/${imageSize}.${format}`\n : `${YT_IMAGE_URL}/${vi}/${videoPlaylisCovertId}/${imageSize}.${format}`;\n};\n\nexport { getYouTubeID, booleanToNumber, getPosterUrl, YT_IMAGE_URL, YT_HQ_FORMAT };\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAMA,aAAa,GAAG,yEAAyE;AAC/F,IAAMC,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG,qBAAqB;AAC1C,IAAME,YAAY,GAAAD,OAAA,CAAAC,YAAA,GAAG,WAAW;AAEhC,SAASC,YAAYA,CAACC,GAAG,EAAE;EACzB,IAAAC,IAAA,GAAwBD,GAAG,CAACE,KAAK,CAACP,aAAa,CAAC,IAAI,EAAE;IAAAQ,KAAA,OAAAC,eAAA,aAAAH,IAAA;IAAzCI,OAAO,GAAAF,KAAA;EACpB,OAAOE,OAAO;AAChB;AAEA,SAASC,eAAeA,CAACC,IAAI,EAAE;EAC7B,OAAOA,IAAI,GAAG,CAAC,GAAG,CAAC;AACrB;AAEA,IAAMC,YAAY,GAAAX,OAAA,CAAAW,YAAA,GAAG,SAAfA,YAAYA,CAAAC,KAAA,EAA6E;EAAA,IAAvEC,SAAS,GAAAD,KAAA,CAATC,SAAS;IAAEC,eAAe,GAAAF,KAAA,CAAfE,eAAe;IAAEC,QAAQ,GAAAH,KAAA,CAARG,QAAQ;IAAEC,SAAS,GAAAJ,KAAA,CAATI,SAAS;IAAEC,SAAS,GAAAL,KAAA,CAATK,SAAS;IAAEC,IAAI,GAAAN,KAAA,CAAJM,IAAI;EACtF,IAAIL,SAAS,IAAIA,SAAS,CAACM,GAAG,EAAE,OAAON,SAAS,CAACM,GAAG;EACpD,IAAMC,oBAAoB,GACxB,OAAON,eAAe,KAAK,QAAQ,GAAGO,kBAAkB,CAACP,eAAe,CAAC,GAAG,IAAI;EAElF,IAAMQ,MAAM,GAAGJ,IAAI,GAAG,MAAM,GAAG,KAAK;EACpC,IAAMK,EAAE,GAAGL,IAAI,GAAG,SAAS,GAAG,IAAI;EAClC,OAAO,CAACH,QAAQ,MAAAS,MAAA,CACTzB,YAAY,OAAAyB,MAAA,CAAID,EAAE,OAAAC,MAAA,CAAIR,SAAS,OAAAQ,MAAA,CAAIP,SAAS,OAAAO,MAAA,CAAIF,MAAM,OAAAE,MAAA,CACtDzB,YAAY,OAAAyB,MAAA,CAAID,EAAE,OAAAC,MAAA,CAAIJ,oBAAoB,OAAAI,MAAA,CAAIP,SAAS,OAAAO,MAAA,CAAIF,MAAM,CAAE;AAC5E,CAAC"}
1
+ {"version":3,"file":"index.js","names":["YOUTUBE_REGEX","YT_IMAGE_URL","exports","YT_HQ_FORMAT","getYouTubeID","uri","_ref","match","_ref2","_slicedToArray2","videoId","booleanToNumber","flag","getPosterUrl","_ref3","imageData","playlistCoverId","playlist","encodedId","imageSize","webp","url","videoPlaylisCovertId","encodeURIComponent","format","vi","concat"],"sources":["../../../../../../src/components/Video/providers/YouTube/helpers/index.js"],"sourcesContent":["const YOUTUBE_REGEX = /^.*((m\\.)?youtu\\.be\\/|vi?\\/|u\\/\\w\\/|embed\\/|\\?vi?=|\\&vi?=)([^#\\&\\?]*).*/;\nconst YT_IMAGE_URL = 'https://i.ytimg.com';\nconst YT_HQ_FORMAT = 'hqdefault';\n\nfunction getYouTubeID(uri) {\n const [, , , videoId] = uri.match(YOUTUBE_REGEX) || [];\n return videoId;\n}\n\nfunction booleanToNumber(flag) {\n return flag ? 1 : 0;\n}\n\nconst getPosterUrl = ({ imageData, playlistCoverId, playlist, encodedId, imageSize, webp }) => {\n if (imageData && imageData.url) return imageData.url;\n const videoPlaylisCovertId =\n typeof playlistCoverId === 'string' ? encodeURIComponent(playlistCoverId) : null;\n\n const format = webp ? 'webp' : 'jpg';\n const vi = webp ? 'vi_webp' : 'vi';\n return !playlist\n ? `${YT_IMAGE_URL}/${vi}/${encodedId}/${imageSize}.${format}`\n : `${YT_IMAGE_URL}/${vi}/${videoPlaylisCovertId}/${imageSize}.${format}`;\n};\n\nexport { getYouTubeID, booleanToNumber, getPosterUrl, YT_IMAGE_URL, YT_HQ_FORMAT };\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAMA,aAAa,GAAG,yEAAyE;AAC/F,IAAMC,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG,qBAAqB;AAC1C,IAAME,YAAY,GAAAD,OAAA,CAAAC,YAAA,GAAG,WAAW;AAEhC,SAASC,YAAYA,CAACC,GAAG,EAAE;EACzB,IAAAC,IAAA,GAAwBD,GAAG,CAACE,KAAK,CAACP,aAAa,CAAC,IAAI,EAAE;IAAAQ,KAAA,OAAAC,eAAA,aAAAH,IAAA;IAAzCI,OAAO,GAAAF,KAAA;EACpB,OAAOE,OAAO;AAChB;AAEA,SAASC,eAAeA,CAACC,IAAI,EAAE;EAC7B,OAAOA,IAAI,GAAG,CAAC,GAAG,CAAC;AACrB;AAEA,IAAMC,YAAY,GAAAX,OAAA,CAAAW,YAAA,GAAG,SAAfA,YAAYA,CAAAC,KAAA,EAA6E;EAAA,IAAvEC,SAAS,GAAAD,KAAA,CAATC,SAAS;IAAEC,eAAe,GAAAF,KAAA,CAAfE,eAAe;IAAEC,QAAQ,GAAAH,KAAA,CAARG,QAAQ;IAAEC,SAAS,GAAAJ,KAAA,CAATI,SAAS;IAAEC,SAAS,GAAAL,KAAA,CAATK,SAAS;IAAEC,IAAI,GAAAN,KAAA,CAAJM,IAAI;EACtF,IAAIL,SAAS,IAAIA,SAAS,CAACM,GAAG,EAAE,OAAON,SAAS,CAACM,GAAG;EACpD,IAAMC,oBAAoB,GACxB,OAAON,eAAe,KAAK,QAAQ,GAAGO,kBAAkB,CAACP,eAAe,CAAC,GAAG,IAAI;EAElF,IAAMQ,MAAM,GAAGJ,IAAI,GAAG,MAAM,GAAG,KAAK;EACpC,IAAMK,EAAE,GAAGL,IAAI,GAAG,SAAS,GAAG,IAAI;EAClC,OAAO,CAACH,QAAQ,MAAAS,MAAA,CACTzB,YAAY,OAAAyB,MAAA,CAAID,EAAE,OAAAC,MAAA,CAAIR,SAAS,OAAAQ,MAAA,CAAIP,SAAS,OAAAO,MAAA,CAAIF,MAAM,OAAAE,MAAA,CACtDzB,YAAY,OAAAyB,MAAA,CAAID,EAAE,OAAAC,MAAA,CAAIJ,oBAAoB,OAAAI,MAAA,CAAIP,SAAS,OAAAO,MAAA,CAAIF,MAAM,CAAE;AAC5E,CAAC","ignoreList":[]}
@@ -6,41 +6,41 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports["default"] = void 0;
8
8
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
9
+ require("core-js/modules/es.array.iterator.js");
10
+ require("core-js/modules/es.object.define-property.js");
11
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
9
12
  require("core-js/modules/es.object.to-string.js");
10
13
  require("core-js/modules/es.promise.js");
11
- require("core-js/modules/es.array.iterator.js");
12
14
  require("core-js/modules/es.string.iterator.js");
13
15
  require("core-js/modules/es.weak-map.js");
14
16
  require("core-js/modules/web.dom-collections.iterator.js");
15
- require("core-js/modules/es.object.define-property.js");
16
- require("core-js/modules/es.object.get-own-property-descriptor.js");
17
17
  var _dynamic = _interopRequireDefault(require("next/dynamic"));
18
18
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
19
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != (0, _typeof2["default"])(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
19
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != (0, _typeof2["default"])(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
20
20
  var SUPPORTED_PROVIDERS = {
21
21
  youtube: (0, _dynamic["default"])(function () {
22
22
  return Promise.resolve().then(function () {
23
- return _interopRequireWildcard(require( /* webpackChunkName: "blazePbVideoYouTube" */'./YouTube/YouTubeProvider'));
23
+ return _interopRequireWildcard(require(/* webpackChunkName: "blazePbVideoYouTube" */'./YouTube/YouTubeProvider'));
24
24
  });
25
25
  }),
26
26
  JWPlayer: (0, _dynamic["default"])(function () {
27
27
  return Promise.resolve().then(function () {
28
- return _interopRequireWildcard(require( /* webpackChunkName: "blazePbVideoJWPlayer" */'./JWPlayer/JWPlayerProvider'));
28
+ return _interopRequireWildcard(require(/* webpackChunkName: "blazePbVideoJWPlayer" */'./JWPlayer/JWPlayerProvider'));
29
29
  });
30
30
  }),
31
31
  vimeo: (0, _dynamic["default"])(function () {
32
32
  return Promise.resolve().then(function () {
33
- return _interopRequireWildcard(require( /* webpackChunkName: "blazePbVideoVimeo" */'./Vimeo/VimeoProvider'));
33
+ return _interopRequireWildcard(require(/* webpackChunkName: "blazePbVideoVimeo" */'./Vimeo/VimeoProvider'));
34
34
  });
35
35
  }),
36
36
  "default": (0, _dynamic["default"])(function () {
37
37
  return Promise.resolve().then(function () {
38
- return _interopRequireWildcard(require( /* webpackChunkName: "blazePbVideoDefault" */'./Default'));
38
+ return _interopRequireWildcard(require(/* webpackChunkName: "blazePbVideoDefault" */'./Default'));
39
39
  });
40
40
  }),
41
41
  html: (0, _dynamic["default"])(function () {
42
42
  return Promise.resolve().then(function () {
43
- return _interopRequireWildcard(require( /* webpackChunkName: "blazePbVideoDefault" */'./Default'));
43
+ return _interopRequireWildcard(require(/* webpackChunkName: "blazePbVideoDefault" */'./Default'));
44
44
  });
45
45
  })
46
46
  };