@blaze-cms/react-page-builder 0.145.0-core-styles.4 → 0.145.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 (962) hide show
  1. package/CHANGELOG.md +5 -5
  2. package/lib/BannerContext/helpers/index.js.map +1 -1
  3. package/lib/BannerContext/helpers/set-initial-banner-counters.js +1 -1
  4. package/lib/BannerContext/helpers/set-initial-banner-counters.js.map +1 -1
  5. package/lib/BannerContext/index.js +2 -2
  6. package/lib/BannerContext/index.js.map +1 -1
  7. package/lib/HOC/index.js.map +1 -1
  8. package/lib/HOC/recreateOnNavigation.js +1 -1
  9. package/lib/HOC/recreateOnNavigation.js.map +1 -1
  10. package/lib/HOC/withInfiniteScroll.js +2 -2
  11. package/lib/HOC/withInfiniteScroll.js.map +1 -1
  12. package/lib/HOC/withTitle.js +2 -2
  13. package/lib/HOC/withTitle.js.map +1 -1
  14. package/lib/PBContext/index.js.map +1 -1
  15. package/lib/application/query/index.js +1 -1
  16. package/lib/application/query/index.js.map +1 -1
  17. package/lib/components/BackToTop/BackToTop.js +2 -2
  18. package/lib/components/BackToTop/BackToTop.js.map +1 -1
  19. package/lib/components/BackToTop/index.js.map +1 -1
  20. package/lib/components/Banner/AdSlotRender.js +4 -4
  21. package/lib/components/Banner/AdSlotRender.js.map +1 -1
  22. package/lib/components/Banner/Banner.js +3 -3
  23. package/lib/components/Banner/Banner.js.map +1 -1
  24. package/lib/components/Banner/BannerRender.js +4 -4
  25. package/lib/components/Banner/BannerRender.js.map +1 -1
  26. package/lib/components/Banner/helpers.js +16 -16
  27. package/lib/components/Banner/helpers.js.map +1 -1
  28. package/lib/components/Banner/index.js +3 -3
  29. package/lib/components/Banner/index.js.map +1 -1
  30. package/lib/components/BlazeLink.js +6 -6
  31. package/lib/components/BlazeLink.js.map +1 -1
  32. package/lib/components/Breadcrumb/Breadcrumb.js +3 -3
  33. package/lib/components/Breadcrumb/Breadcrumb.js.map +1 -1
  34. package/lib/components/Breadcrumb/index.js.map +1 -1
  35. package/lib/components/Button.js +6 -6
  36. package/lib/components/Button.js.map +1 -1
  37. package/lib/components/Card/Card.js +4 -4
  38. package/lib/components/Card/Card.js.map +1 -1
  39. package/lib/components/Card/CardsContainer.js +8 -8
  40. package/lib/components/Card/CardsContainer.js.map +1 -1
  41. package/lib/components/Card/CardsFactory.js.map +1 -1
  42. package/lib/components/Card/CardsRender.js +12 -12
  43. package/lib/components/Card/CardsRender.js.map +1 -1
  44. package/lib/components/Card/constants.js.map +1 -1
  45. package/lib/components/Card/helpers/filter-query-setup.js +5 -5
  46. package/lib/components/Card/helpers/filter-query-setup.js.map +1 -1
  47. package/lib/components/Card/helpers/filters-setup.js.map +1 -1
  48. package/lib/components/Card/helpers/get-dynamic-grid-classes.js +3 -3
  49. package/lib/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -1
  50. package/lib/components/Card/helpers/get-published-listing-url.js.map +1 -1
  51. package/lib/components/Card/helpers/get-updated-items-to-display.js +3 -3
  52. package/lib/components/Card/helpers/get-updated-items-to-display.js.map +1 -1
  53. package/lib/components/Card/helpers/get-updated-sort-properties.js +2 -2
  54. package/lib/components/Card/helpers/get-updated-sort-properties.js.map +1 -1
  55. package/lib/components/Card/helpers/index.js.map +1 -1
  56. package/lib/components/Card/helpers/should-return.js.map +1 -1
  57. package/lib/components/Card/helpers/should-skip-single-query.js.map +1 -1
  58. package/lib/components/Card/helpers/use-dynamic-size-key.js +3 -3
  59. package/lib/components/Card/helpers/use-dynamic-size-key.js.map +1 -1
  60. package/lib/components/Card/index.js.map +1 -1
  61. package/lib/components/Carousel/Carousel.js.map +1 -1
  62. package/lib/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
  63. package/lib/components/Carousel/CarouselImage/index.js.map +1 -1
  64. package/lib/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
  65. package/lib/components/Carousel/CarouselRender/index.js.map +1 -1
  66. package/lib/components/Carousel/hooks/useCarouselNavigation.js.map +1 -1
  67. package/lib/components/Carousel/index.js.map +1 -1
  68. package/lib/components/CarouselWrapper/CarouselWrapper.js.map +1 -1
  69. package/lib/components/CarouselWrapper/DefaultCarousel.js +3 -3
  70. package/lib/components/CarouselWrapper/DefaultCarousel.js.map +1 -1
  71. package/lib/components/CarouselWrapper/SmoothScrollCarousel.js.map +1 -1
  72. package/lib/components/CarouselWrapper/index.js.map +1 -1
  73. package/lib/components/ClickWrapper.js +6 -6
  74. package/lib/components/ClickWrapper.js.map +1 -1
  75. package/lib/components/Code/Code.js +6 -6
  76. package/lib/components/Code/Code.js.map +1 -1
  77. package/lib/components/Code/ScriptTag.js +3 -3
  78. package/lib/components/Code/ScriptTag.js.map +1 -1
  79. package/lib/components/Code/helpers/index.js.map +1 -1
  80. package/lib/components/Code/helpers/wrap-script-tags.js +1 -1
  81. package/lib/components/Code/helpers/wrap-script-tags.js.map +1 -1
  82. package/lib/components/Code/index.js.map +1 -1
  83. package/lib/components/ContentGroup/ContentGroup.js.map +1 -1
  84. package/lib/components/ContentGroup/ContentGroupTabs.js +3 -3
  85. package/lib/components/ContentGroup/ContentGroupTabs.js.map +1 -1
  86. package/lib/components/ContentGroup/constants.js.map +1 -1
  87. package/lib/components/ContentGroup/helpers/get-active-tab.js +1 -1
  88. package/lib/components/ContentGroup/helpers/get-active-tab.js.map +1 -1
  89. package/lib/components/ContentGroup/helpers/get-sections-data.js.map +1 -1
  90. package/lib/components/ContentGroup/helpers/index.js.map +1 -1
  91. package/lib/components/ContentGroup/index.js.map +1 -1
  92. package/lib/components/ContentGroupSection/ContentGroupSection.js.map +1 -1
  93. package/lib/components/ContentGroupSection/index.js.map +1 -1
  94. package/lib/components/DataSummary/DataSummaryFactory.js +2 -2
  95. package/lib/components/DataSummary/DataSummaryFactory.js.map +1 -1
  96. package/lib/components/DataSummary/DataSummaryRender.js.map +1 -1
  97. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -1
  98. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js +3 -3
  99. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
  100. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js.map +1 -1
  101. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map +1 -1
  102. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js +3 -3
  103. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
  104. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js.map +1 -1
  105. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.map +1 -1
  106. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js +3 -3
  107. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
  108. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/index.js.map +1 -1
  109. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.map +1 -1
  110. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js +3 -3
  111. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
  112. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/index.js.map +1 -1
  113. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.map +1 -1
  114. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js +3 -3
  115. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
  116. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/index.js.map +1 -1
  117. package/lib/components/DataSummary/DataSummaryTypes/index.js +3 -3
  118. package/lib/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
  119. package/lib/components/DataSummary/helpers/build-loop-props-content.js +5 -5
  120. package/lib/components/DataSummary/helpers/build-loop-props-content.js.map +1 -1
  121. package/lib/components/DataSummary/helpers/build-props-to-display-with-content.js +2 -2
  122. package/lib/components/DataSummary/helpers/build-props-to-display-with-content.js.map +1 -1
  123. package/lib/components/DataSummary/helpers/get-data-summary-query.js.map +1 -1
  124. package/lib/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -1
  125. package/lib/components/DataSummary/helpers/get-link-props.js +2 -2
  126. package/lib/components/DataSummary/helpers/get-link-props.js.map +1 -1
  127. package/lib/components/DataSummary/helpers/get-link-to-published-content.js.map +1 -1
  128. package/lib/components/DataSummary/helpers/get-loop-props-limit.js +2 -2
  129. package/lib/components/DataSummary/helpers/get-loop-props-limit.js.map +1 -1
  130. package/lib/components/DataSummary/helpers/get-prop-value.js +3 -3
  131. package/lib/components/DataSummary/helpers/get-prop-value.js.map +1 -1
  132. package/lib/components/DataSummary/helpers/get-value-from-array.js +2 -2
  133. package/lib/components/DataSummary/helpers/get-value-from-array.js.map +1 -1
  134. package/lib/components/DataSummary/helpers/index.js.map +1 -1
  135. package/lib/components/DataSummary/helpers/parse-boolean-values.js.map +1 -1
  136. package/lib/components/DataSummary/helpers/strip-summary-props-content.js.map +1 -1
  137. package/lib/components/DataSummary/index.js.map +1 -1
  138. package/lib/components/DateTime/DateTime.js +4 -4
  139. package/lib/components/DateTime/DateTime.js.map +1 -1
  140. package/lib/components/DateTime/index.js.map +1 -1
  141. package/lib/components/EmailConfirm/EmailConfirm.js +2 -2
  142. package/lib/components/EmailConfirm/EmailConfirm.js.map +1 -1
  143. package/lib/components/EmailConfirm/index.js.map +1 -1
  144. package/lib/components/EmailConfirm/mutation.js.map +1 -1
  145. package/lib/components/Iframe/Iframe.js.map +1 -1
  146. package/lib/components/Iframe/constants.js.map +1 -1
  147. package/lib/components/Iframe/index.js.map +1 -1
  148. package/lib/components/Image/GlobalLightbox/GlobalLightbox.js +3 -3
  149. package/lib/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
  150. package/lib/components/Image/GlobalLightbox/NavButton.js.map +1 -1
  151. package/lib/components/Image/GlobalLightbox/index.js +3 -3
  152. package/lib/components/Image/GlobalLightbox/index.js.map +1 -1
  153. package/lib/components/Image/Image.js +7 -7
  154. package/lib/components/Image/Image.js.map +1 -1
  155. package/lib/components/Image/ImageDetails.js.map +1 -1
  156. package/lib/components/Image/ImageFactory.js +2 -2
  157. package/lib/components/Image/ImageFactory.js.map +1 -1
  158. package/lib/components/Image/ImageRender.js.map +1 -1
  159. package/lib/components/Image/Lightbox/Lightbox.js +2 -2
  160. package/lib/components/Image/Lightbox/Lightbox.js.map +1 -1
  161. package/lib/components/Image/Lightbox/index.js.map +1 -1
  162. package/lib/components/Image/index.js.map +1 -1
  163. package/lib/components/ItemList/ItemListButton/ItemListButton.js +4 -4
  164. package/lib/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
  165. package/lib/components/ItemList/ItemListButton/index.js.map +1 -1
  166. package/lib/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
  167. package/lib/components/ItemList/ItemListCounter/index.js.map +1 -1
  168. package/lib/components/ItemList/ItemListNew/ItemListNew.js.map +1 -1
  169. package/lib/components/ItemList/ItemListNew/index.js.map +1 -1
  170. package/lib/components/ItemList/constants.js.map +1 -1
  171. package/lib/components/ItemList/helpers/get-item-list-data.js.map +1 -1
  172. package/lib/components/ItemList/helpers/get-item-list-id.js.map +1 -1
  173. package/lib/components/ItemList/helpers/get-item-list-ids.js.map +1 -1
  174. package/lib/components/ItemList/helpers/index.js.map +1 -1
  175. package/lib/components/ItemList/helpers/set-item-list-id.js.map +1 -1
  176. package/lib/components/ItemList/helpers/set-param-and-redirect.js +4 -4
  177. package/lib/components/ItemList/helpers/set-param-and-redirect.js.map +1 -1
  178. package/lib/components/ItemList/hooks/index.js.map +1 -1
  179. package/lib/components/ItemList/hooks/use-item-list-id.js.map +1 -1
  180. package/lib/components/Layout/Layout.js +5 -5
  181. package/lib/components/Layout/Layout.js.map +1 -1
  182. package/lib/components/Layout/LayoutFactory.js +3 -3
  183. package/lib/components/Layout/LayoutFactory.js.map +1 -1
  184. package/lib/components/Layout/LayoutWithStickyTimer.js +2 -2
  185. package/lib/components/Layout/LayoutWithStickyTimer.js.map +1 -1
  186. package/lib/components/Layout/constants.js.map +1 -1
  187. package/lib/components/Layout/helpers/check-if-row-has-columns.js +1 -1
  188. package/lib/components/Layout/helpers/check-if-row-has-columns.js.map +1 -1
  189. package/lib/components/Layout/helpers/get-styles-to-update.js.map +1 -1
  190. package/lib/components/Layout/helpers/index.js.map +1 -1
  191. package/lib/components/Layout/index.js.map +1 -1
  192. package/lib/components/LazyImage/LazyImage.js.map +1 -1
  193. package/lib/components/LazyImage/index.js +3 -3
  194. package/lib/components/LazyImage/index.js.map +1 -1
  195. package/lib/components/List/ListBuilder.js +5 -5
  196. package/lib/components/List/ListBuilder.js.map +1 -1
  197. package/lib/components/List/ListFactory.js +10 -10
  198. package/lib/components/List/ListFactory.js.map +1 -1
  199. package/lib/components/List/ListRender.js.map +1 -1
  200. package/lib/components/List/components/Cards/CardRenderWithInfiniteScroll.js.map +1 -1
  201. package/lib/components/List/components/Cards/CardsRender.js +7 -7
  202. package/lib/components/List/components/Cards/CardsRender.js.map +1 -1
  203. package/lib/components/List/components/Cards/CardsRenderItem.js.map +1 -1
  204. package/lib/components/List/components/Cards/CardsRenderWrapper.js +2 -2
  205. package/lib/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
  206. package/lib/components/List/components/Cards/index.js.map +1 -1
  207. package/lib/components/List/components/Full/FullRender.js +6 -6
  208. package/lib/components/List/components/Full/FullRender.js.map +1 -1
  209. package/lib/components/List/components/Full/FullRenderItem.js +6 -6
  210. package/lib/components/List/components/Full/FullRenderItem.js.map +1 -1
  211. package/lib/components/List/components/Full/FullRenderWithInfiniteScroll.js.map +1 -1
  212. package/lib/components/List/components/Full/index.js.map +1 -1
  213. package/lib/components/List/components/Header/ListHeader.js +1 -1
  214. package/lib/components/List/components/Header/ListHeader.js.map +1 -1
  215. package/lib/components/List/components/Header/index.js.map +1 -1
  216. package/lib/components/List/components/Pagination/Classic.js.map +1 -1
  217. package/lib/components/List/components/Pagination/ListPagination.js +6 -6
  218. package/lib/components/List/components/Pagination/ListPagination.js.map +1 -1
  219. package/lib/components/List/components/Pagination/LoadMore.js.map +1 -1
  220. package/lib/components/List/components/Pagination/index.js.map +1 -1
  221. package/lib/components/List/components/helpers/check-if-should-render-banner.js +2 -2
  222. package/lib/components/List/components/helpers/check-if-should-render-banner.js.map +1 -1
  223. package/lib/components/List/components/helpers/check-if-should-render-gtm.js +2 -2
  224. package/lib/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -1
  225. package/lib/components/List/components/helpers/index.js.map +1 -1
  226. package/lib/components/List/components/index.js.map +1 -1
  227. package/lib/components/List/constants.js.map +1 -1
  228. package/lib/components/List/helpers/build-az-aggregations.js +3 -3
  229. package/lib/components/List/helpers/build-az-aggregations.js.map +1 -1
  230. package/lib/components/List/helpers/build-az-url.js +5 -5
  231. package/lib/components/List/helpers/build-az-url.js.map +1 -1
  232. package/lib/components/List/helpers/build-pagination-items.js.map +1 -1
  233. package/lib/components/List/helpers/build-pagination-url.js +5 -5
  234. package/lib/components/List/helpers/build-pagination-url.js.map +1 -1
  235. package/lib/components/List/helpers/build-query-booster.js +6 -6
  236. package/lib/components/List/helpers/build-query-booster.js.map +1 -1
  237. package/lib/components/List/helpers/get-az-query-filter.js.map +1 -1
  238. package/lib/components/List/helpers/get-items-per-page-to-use.js.map +1 -1
  239. package/lib/components/List/helpers/get-list-component.js.map +1 -1
  240. package/lib/components/List/helpers/get-list-query.js +3 -3
  241. package/lib/components/List/helpers/get-list-query.js.map +1 -1
  242. package/lib/components/List/helpers/get-list-specific-search-filter.js.map +1 -1
  243. package/lib/components/List/helpers/get-sort-props.js +2 -2
  244. package/lib/components/List/helpers/get-sort-props.js.map +1 -1
  245. package/lib/components/List/helpers/has-required-item-list-details.js.map +1 -1
  246. package/lib/components/List/helpers/index.js.map +1 -1
  247. package/lib/components/List/helpers/sort-aggs.js.map +1 -1
  248. package/lib/components/List/helpers/strip-query-key.js.map +1 -1
  249. package/lib/components/List/index.js.map +1 -1
  250. package/lib/components/Menu/Menu.js +2 -2
  251. package/lib/components/Menu/Menu.js.map +1 -1
  252. package/lib/components/Menu/MenuContext.js.map +1 -1
  253. package/lib/components/Menu/index.js.map +1 -1
  254. package/lib/components/MenuItem/MenuItem.js +2 -2
  255. package/lib/components/MenuItem/MenuItem.js.map +1 -1
  256. package/lib/components/MenuItem/index.js.map +1 -1
  257. package/lib/components/Modal/Modal.js.map +1 -1
  258. package/lib/components/Modal/index.js.map +1 -1
  259. package/lib/components/SearchContent/SearchContent.js +3 -3
  260. package/lib/components/SearchContent/SearchContent.js.map +1 -1
  261. package/lib/components/SearchContent/SearchContentItems.js.map +1 -1
  262. package/lib/components/SearchContent/SearchContentResults.js.map +1 -1
  263. package/lib/components/SearchContent/SearchContentToggleIcon.js.map +1 -1
  264. package/lib/components/SearchContent/constants.js.map +1 -1
  265. package/lib/components/SearchContent/index.js.map +1 -1
  266. package/lib/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
  267. package/lib/components/SearchFilter/SearchFilter/FiltersList.js +3 -3
  268. package/lib/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
  269. package/lib/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -1
  270. package/lib/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
  271. package/lib/components/SearchFilter/SearchFilter/SearchFilter.js +3 -3
  272. package/lib/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
  273. package/lib/components/SearchFilter/SearchFilter/index.js.map +1 -1
  274. package/lib/components/SearchFilter/SearchFilterContainer.js +7 -7
  275. package/lib/components/SearchFilter/SearchFilterContainer.js.map +1 -1
  276. package/lib/components/SearchFilter/components/Checkbox.js +7 -7
  277. package/lib/components/SearchFilter/components/Checkbox.js.map +1 -1
  278. package/lib/components/SearchFilter/components/Range.js +4 -4
  279. package/lib/components/SearchFilter/components/Range.js.map +1 -1
  280. package/lib/components/SearchFilter/components/Select.js +3 -3
  281. package/lib/components/SearchFilter/components/Select.js.map +1 -1
  282. package/lib/components/SearchFilter/components/TextSearch.js.map +1 -1
  283. package/lib/components/SearchFilter/components/index.js.map +1 -1
  284. package/lib/components/SearchFilter/constants.js.map +1 -1
  285. package/lib/components/SearchFilter/helpers/build-filters-query.js +6 -6
  286. package/lib/components/SearchFilter/helpers/build-filters-query.js.map +1 -1
  287. package/lib/components/SearchFilter/helpers/build-new-url.js.map +1 -1
  288. package/lib/components/SearchFilter/helpers/build-raw-query-stringified.js +1 -1
  289. package/lib/components/SearchFilter/helpers/build-raw-query-stringified.js.map +1 -1
  290. package/lib/components/SearchFilter/helpers/build-url-query.js +3 -3
  291. package/lib/components/SearchFilter/helpers/build-url-query.js.map +1 -1
  292. package/lib/components/SearchFilter/helpers/calculate-min-max.js.map +1 -1
  293. package/lib/components/SearchFilter/helpers/calculate-step.js.map +1 -1
  294. package/lib/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -1
  295. package/lib/components/SearchFilter/helpers/decode-encode.js.map +1 -1
  296. package/lib/components/SearchFilter/helpers/get-display-value.js +1 -1
  297. package/lib/components/SearchFilter/helpers/get-display-value.js.map +1 -1
  298. package/lib/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js +2 -2
  299. package/lib/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js.map +1 -1
  300. package/lib/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
  301. package/lib/components/SearchFilter/helpers/get-filter-values.js.map +1 -1
  302. package/lib/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -1
  303. package/lib/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -1
  304. package/lib/components/SearchFilter/helpers/get-range-value.js.map +1 -1
  305. package/lib/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
  306. package/lib/components/SearchFilter/helpers/get-select-options.js.map +1 -1
  307. package/lib/components/SearchFilter/helpers/get-updated-filter-by.js +2 -2
  308. package/lib/components/SearchFilter/helpers/get-updated-filter-by.js.map +1 -1
  309. package/lib/components/SearchFilter/helpers/index.js.map +1 -1
  310. package/lib/components/SearchFilter/helpers/is-device-desktop.js.map +1 -1
  311. package/lib/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
  312. package/lib/components/SearchFilter/index.js.map +1 -1
  313. package/lib/components/SearchFilter/searchFilterReducer.js +5 -5
  314. package/lib/components/SearchFilter/searchFilterReducer.js.map +1 -1
  315. package/lib/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
  316. package/lib/components/SearchFilterSort/constants.js.map +1 -1
  317. package/lib/components/SearchFilterSort/helpers/handle-sort-update.js +2 -2
  318. package/lib/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
  319. package/lib/components/SearchFilterSort/helpers/index.js.map +1 -1
  320. package/lib/components/SearchFilterSort/helpers/update-sort.js +5 -5
  321. package/lib/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
  322. package/lib/components/SearchFilterSort/index.js.map +1 -1
  323. package/lib/components/SocialFollow/SFItem.js.map +1 -1
  324. package/lib/components/SocialFollow/SocialFollow.js.map +1 -1
  325. package/lib/components/SocialFollow/SocialFollowRender.js.map +1 -1
  326. package/lib/components/SocialFollow/index.js.map +1 -1
  327. package/lib/components/SocialFollow/sf.config.js.map +1 -1
  328. package/lib/components/SubMenu/SubMenu.js.map +1 -1
  329. package/lib/components/SubMenu/index.js.map +1 -1
  330. package/lib/components/TextBlock/TextBlockRender.js.map +1 -1
  331. package/lib/components/TextBlock/index.js +5 -5
  332. package/lib/components/TextBlock/index.js.map +1 -1
  333. package/lib/components/Video/Video.js +5 -5
  334. package/lib/components/Video/Video.js.map +1 -1
  335. package/lib/components/Video/VideoModal.js +2 -2
  336. package/lib/components/Video/VideoModal.js.map +1 -1
  337. package/lib/components/Video/VideoRender.js.map +1 -1
  338. package/lib/components/Video/index.js.map +1 -1
  339. package/lib/components/Video/providers/Default.js.map +1 -1
  340. package/lib/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
  341. package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js +5 -5
  342. package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
  343. package/lib/components/Video/providers/Vimeo/VimeoProvider.js +2 -2
  344. package/lib/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
  345. package/lib/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js +6 -6
  346. package/lib/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js.map +1 -1
  347. package/lib/components/Video/providers/Vimeo/helpers/index.js.map +1 -1
  348. package/lib/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
  349. package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js +2 -2
  350. package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
  351. package/lib/components/Video/providers/YouTube/helpers/index.js +1 -1
  352. package/lib/components/Video/providers/YouTube/helpers/index.js.map +1 -1
  353. package/lib/components/Video/providers/get-provider.js +3 -3
  354. package/lib/components/Video/providers/get-provider.js.map +1 -1
  355. package/lib/components/Video/providers/index.js.map +1 -1
  356. package/lib/components/Wrapper.js.map +1 -1
  357. package/lib/components/index.js +3 -3
  358. package/lib/components/index.js.map +1 -1
  359. package/lib/constants/componentsDefaultValues.js.map +1 -1
  360. package/lib/constants/index.js.map +1 -1
  361. package/lib/helpers/append-images.js +5 -5
  362. package/lib/helpers/append-images.js.map +1 -1
  363. package/lib/helpers/build-az-filter.js.map +1 -1
  364. package/lib/helpers/build-checkbox-filters.js.map +1 -1
  365. package/lib/helpers/build-image-properties.js.map +1 -1
  366. package/lib/helpers/build-inherited-filters.js +4 -4
  367. package/lib/helpers/build-inherited-filters.js.map +1 -1
  368. package/lib/helpers/build-link-extra-props.js.map +1 -1
  369. package/lib/helpers/build-props-query.js +9 -9
  370. package/lib/helpers/build-props-query.js.map +1 -1
  371. package/lib/helpers/build-query-fields.js +1 -1
  372. package/lib/helpers/build-query-fields.js.map +1 -1
  373. package/lib/helpers/build-query-key.js.map +1 -1
  374. package/lib/helpers/build-raw-query-base.js +9 -9
  375. package/lib/helpers/build-raw-query-base.js.map +1 -1
  376. package/lib/helpers/build-raw-query.js +5 -5
  377. package/lib/helpers/build-raw-query.js.map +1 -1
  378. package/lib/helpers/build-search-values-checkbox-select.js +7 -7
  379. package/lib/helpers/build-search-values-checkbox-select.js.map +1 -1
  380. package/lib/helpers/build-search-values-text.js.map +1 -1
  381. package/lib/helpers/build-set-filters.js +3 -3
  382. package/lib/helpers/build-set-filters.js.map +1 -1
  383. package/lib/helpers/build-sort-values.js +6 -6
  384. package/lib/helpers/build-sort-values.js.map +1 -1
  385. package/lib/helpers/check-for-error.js.map +1 -1
  386. package/lib/helpers/check-props-to-use.js.map +1 -1
  387. package/lib/helpers/entities/constants.js.map +1 -1
  388. package/lib/helpers/get-banner-data.js +5 -5
  389. package/lib/helpers/get-banner-data.js.map +1 -1
  390. package/lib/helpers/get-checkbox-filters.js.map +1 -1
  391. package/lib/helpers/get-click-wrapper-options.js +6 -6
  392. package/lib/helpers/get-click-wrapper-options.js.map +1 -1
  393. package/lib/helpers/get-current-offset.js.map +1 -1
  394. package/lib/helpers/get-dictionary-match.js.map +1 -1
  395. package/lib/helpers/get-display-count-data.js.map +1 -1
  396. package/lib/helpers/get-elasticsearch-operator.js.map +1 -1
  397. package/lib/helpers/get-entities-with-banner.js +5 -5
  398. package/lib/helpers/get-entities-with-banner.js.map +1 -1
  399. package/lib/helpers/get-entity-data.js.map +1 -1
  400. package/lib/helpers/get-entity-render-props.js.map +1 -1
  401. package/lib/helpers/get-extra-az-bits.js.map +1 -1
  402. package/lib/helpers/get-filter-props.js.map +1 -1
  403. package/lib/helpers/get-filter-relation-keys.js +1 -1
  404. package/lib/helpers/get-filter-relation-keys.js.map +1 -1
  405. package/lib/helpers/get-generic-props.js +5 -5
  406. package/lib/helpers/get-generic-props.js.map +1 -1
  407. package/lib/helpers/get-generic-render-variables.js +6 -6
  408. package/lib/helpers/get-generic-render-variables.js.map +1 -1
  409. package/lib/helpers/get-image-ids.js +2 -2
  410. package/lib/helpers/get-image-ids.js.map +1 -1
  411. package/lib/helpers/get-inherited-filters.js +2 -2
  412. package/lib/helpers/get-inherited-filters.js.map +1 -1
  413. package/lib/helpers/get-items-to-display-ids.js +2 -2
  414. package/lib/helpers/get-items-to-display-ids.js.map +1 -1
  415. package/lib/helpers/get-modifiers.js +3 -3
  416. package/lib/helpers/get-modifiers.js.map +1 -1
  417. package/lib/helpers/get-not-equal-query.js.map +1 -1
  418. package/lib/helpers/get-pagination-index.js.map +1 -1
  419. package/lib/helpers/get-parsed-prop-values.js +3 -3
  420. package/lib/helpers/get-parsed-prop-values.js.map +1 -1
  421. package/lib/helpers/get-parsed-summary-value.js.map +1 -1
  422. package/lib/helpers/get-prop-values.js +2 -2
  423. package/lib/helpers/get-prop-values.js.map +1 -1
  424. package/lib/helpers/get-query-filters.js.map +1 -1
  425. package/lib/helpers/get-query-props.js +3 -3
  426. package/lib/helpers/get-query-props.js.map +1 -1
  427. package/lib/helpers/get-required-schemas.js +3 -3
  428. package/lib/helpers/get-required-schemas.js.map +1 -1
  429. package/lib/helpers/get-sanitized-prop-values.js.map +1 -1
  430. package/lib/helpers/get-search-filter-type.js.map +1 -1
  431. package/lib/helpers/get-sort-by-field-name.js +4 -4
  432. package/lib/helpers/get-sort-by-field-name.js.map +1 -1
  433. package/lib/helpers/get-unpublished-entity-name.js +1 -1
  434. package/lib/helpers/get-unpublished-entity-name.js.map +1 -1
  435. package/lib/helpers/get-updated-filter-by.js.map +1 -1
  436. package/lib/helpers/get-wrapped-value-with-link.js +1 -1
  437. package/lib/helpers/get-wrapped-value-with-link.js.map +1 -1
  438. package/lib/helpers/group-entities.js +1 -1
  439. package/lib/helpers/group-entities.js.map +1 -1
  440. package/lib/helpers/has-children.js.map +1 -1
  441. package/lib/helpers/index.js.map +1 -1
  442. package/lib/helpers/inject-banner.js.map +1 -1
  443. package/lib/helpers/inject-banners-to-entities.js.map +1 -1
  444. package/lib/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.map +1 -1
  445. package/lib/helpers/inject-multiple-banners/get-banners-for-entities/index.js.map +1 -1
  446. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js +6 -6
  447. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.map +1 -1
  448. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js +3 -3
  449. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js.map +1 -1
  450. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js.map +1 -1
  451. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/index.js.map +1 -1
  452. package/lib/helpers/inject-multiple-banners/index.js.map +1 -1
  453. package/lib/helpers/inject-multiple-banners/inject-multiple-banners.js.map +1 -1
  454. package/lib/helpers/is-browser.js.map +1 -1
  455. package/lib/helpers/is-filter-entitys-id.js +1 -1
  456. package/lib/helpers/is-filter-entitys-id.js.map +1 -1
  457. package/lib/helpers/is-object.js.map +1 -1
  458. package/lib/helpers/is-using-relation-image.js.map +1 -1
  459. package/lib/helpers/parse-TextBlock.js +2 -2
  460. package/lib/helpers/parse-TextBlock.js.map +1 -1
  461. package/lib/helpers/parse-interval.js.map +1 -1
  462. package/lib/helpers/parse-props-to-display.js +4 -4
  463. package/lib/helpers/parse-props-to-display.js.map +1 -1
  464. package/lib/helpers/process-data-summary-value.js +8 -8
  465. package/lib/helpers/process-data-summary-value.js.map +1 -1
  466. package/lib/helpers/remove-extra-items.js.map +1 -1
  467. package/lib/helpers/remove-unwanted-characters.js +6 -6
  468. package/lib/helpers/remove-unwanted-characters.js.map +1 -1
  469. package/lib/helpers/render-children.js +5 -5
  470. package/lib/helpers/render-children.js.map +1 -1
  471. package/lib/helpers/should-render-waypoint.js.map +1 -1
  472. package/lib/helpers/should-show-property.js.map +1 -1
  473. package/lib/helpers/sort-response-data.js +2 -2
  474. package/lib/helpers/sort-response-data.js.map +1 -1
  475. package/lib/helpers/split-children.js +5 -5
  476. package/lib/helpers/split-children.js.map +1 -1
  477. package/lib/helpers/update-childrens-parent.js +3 -3
  478. package/lib/helpers/update-childrens-parent.js.map +1 -1
  479. package/lib/hooks/helpers/RenderComponent.js +1 -1
  480. package/lib/hooks/helpers/RenderComponent.js.map +1 -1
  481. package/lib/hooks/helpers/StoreImages.js +4 -4
  482. package/lib/hooks/helpers/StoreImages.js.map +1 -1
  483. package/lib/hooks/helpers/append-gtm-classname.js +7 -7
  484. package/lib/hooks/helpers/append-gtm-classname.js.map +1 -1
  485. package/lib/hooks/helpers/buildPBComponents.js +7 -7
  486. package/lib/hooks/helpers/buildPBComponents.js.map +1 -1
  487. package/lib/hooks/helpers/check-banner-insertion-set.js.map +1 -1
  488. package/lib/hooks/helpers/check-collisions.js +3 -3
  489. package/lib/hooks/helpers/check-collisions.js.map +1 -1
  490. package/lib/hooks/helpers/constants.js.map +1 -1
  491. package/lib/hooks/helpers/get-banner-index.js.map +1 -1
  492. package/lib/hooks/helpers/get-components-to-insert-by-type.js.map +1 -1
  493. package/lib/hooks/helpers/get-lightbox-images.js +8 -8
  494. package/lib/hooks/helpers/get-lightbox-images.js.map +1 -1
  495. package/lib/hooks/helpers/getComponent.js.map +1 -1
  496. package/lib/hooks/helpers/getVariant.js.map +1 -1
  497. package/lib/hooks/helpers/index.js.map +1 -1
  498. package/lib/hooks/helpers/inject-element-components.js +4 -4
  499. package/lib/hooks/helpers/inject-element-components.js.map +1 -1
  500. package/lib/hooks/helpers/inject-textblock-banners.js +7 -7
  501. package/lib/hooks/helpers/inject-textblock-banners.js.map +1 -1
  502. package/lib/hooks/helpers/insert-banners.js +9 -9
  503. package/lib/hooks/helpers/insert-banners.js.map +1 -1
  504. package/lib/hooks/helpers/update-targetings.js.map +1 -1
  505. package/lib/hooks/index.js.map +1 -1
  506. package/lib/hooks/use-app-sync-event-hook.js.map +1 -1
  507. package/lib/hooks/use-banner-insertion.js +1 -1
  508. package/lib/hooks/use-banner-insertion.js.map +1 -1
  509. package/lib/hooks/use-check-mobile-screen.js.map +1 -1
  510. package/lib/hooks/use-get-entity-schema.js.map +1 -1
  511. package/lib/hooks/use-get-entity-schemas-as-obj.js +1 -1
  512. package/lib/hooks/use-get-entity-schemas-as-obj.js.map +1 -1
  513. package/lib/hooks/use-get-image-id-from-relation.js +1 -1
  514. package/lib/hooks/use-get-image-id-from-relation.js.map +1 -1
  515. package/lib/hooks/use-get-images.js.map +1 -1
  516. package/lib/hooks/use-get-single-entity-schema.js.map +1 -1
  517. package/lib/hooks/use-page-builder.js.map +1 -1
  518. package/lib/index.js.map +1 -1
  519. package/lib/utils/component-map.js +1 -1
  520. package/lib/utils/component-map.js.map +1 -1
  521. package/lib/utils/get-class-modifiers.js +7 -7
  522. package/lib/utils/get-class-modifiers.js.map +1 -1
  523. package/lib/utils/get-image-data.js.map +1 -1
  524. package/lib/utils/get-props-to-display-modifiers.js.map +1 -1
  525. package/lib/utils/index.js.map +1 -1
  526. package/lib/utils/is-object-empty.js.map +1 -1
  527. package/lib/utils/variant-handler.js +1 -1
  528. package/lib/utils/variant-handler.js.map +1 -1
  529. package/lib/variants/HeroImage/index.js +5 -5
  530. package/lib/variants/HeroImage/index.js.map +1 -1
  531. package/lib/variants/Infographic/Infographic.js.map +1 -1
  532. package/lib/variants/Infographic/index.js +5 -5
  533. package/lib/variants/Infographic/index.js.map +1 -1
  534. package/lib/variants/Infographic/useInfographic.js +5 -5
  535. package/lib/variants/Infographic/useInfographic.js.map +1 -1
  536. package/lib/variants/LongformGallery/LongformGallery.js.map +1 -1
  537. package/lib/variants/LongformGallery/LongformGalleryImage.js.map +1 -1
  538. package/lib/variants/LongformGallery/constants.js.map +1 -1
  539. package/lib/variants/LongformGallery/helpers/index.js.map +1 -1
  540. package/lib/variants/LongformGallery/helpers/parseImageData.js +3 -3
  541. package/lib/variants/LongformGallery/helpers/parseImageData.js.map +1 -1
  542. package/lib/variants/LongformGallery/helpers/separateImages.js.map +1 -1
  543. package/lib/variants/LongformGallery/helpers/shouldSkip.js.map +1 -1
  544. package/lib/variants/LongformGallery/index.js +6 -6
  545. package/lib/variants/LongformGallery/index.js.map +1 -1
  546. package/lib/variants/LongformGallery/useLongformGallery.js.map +1 -1
  547. package/lib/variants/LongformRow/index.js +5 -5
  548. package/lib/variants/LongformRow/index.js.map +1 -1
  549. package/lib/variants/ParallaxImageTextRight/index.js +5 -5
  550. package/lib/variants/ParallaxImageTextRight/index.js.map +1 -1
  551. package/lib/variants/SlideSummary/SlideSummary.js.map +1 -1
  552. package/lib/variants/SlideSummary/index.js +5 -5
  553. package/lib/variants/SlideSummary/index.js.map +1 -1
  554. package/lib/variants/ThumbnailCarousel/ThumbnailCarousel.js.map +1 -1
  555. package/lib/variants/ThumbnailCarousel/ThumbnailImage/ThumbnailImage.js.map +1 -1
  556. package/lib/variants/ThumbnailCarousel/ThumbnailImage/index.js.map +1 -1
  557. package/lib/variants/ThumbnailCarousel/ThumbnailImage/useThumbnailImage.js.map +1 -1
  558. package/lib/variants/ThumbnailCarousel/index.js +5 -5
  559. package/lib/variants/ThumbnailCarousel/index.js.map +1 -1
  560. package/lib/variants/ThumbnailCarousel/useThumbnailCarousel.js +5 -5
  561. package/lib/variants/ThumbnailCarousel/useThumbnailCarousel.js.map +1 -1
  562. package/lib/variants/index.js.map +1 -1
  563. package/lib-es/BannerContext/helpers/index.js.map +1 -1
  564. package/lib-es/BannerContext/helpers/set-initial-banner-counters.js.map +1 -1
  565. package/lib-es/BannerContext/index.js.map +1 -1
  566. package/lib-es/HOC/index.js.map +1 -1
  567. package/lib-es/HOC/recreateOnNavigation.js.map +1 -1
  568. package/lib-es/HOC/withInfiniteScroll.js.map +1 -1
  569. package/lib-es/HOC/withTitle.js.map +1 -1
  570. package/lib-es/PBContext/index.js.map +1 -1
  571. package/lib-es/application/query/index.js.map +1 -1
  572. package/lib-es/components/BackToTop/BackToTop.js.map +1 -1
  573. package/lib-es/components/BackToTop/index.js.map +1 -1
  574. package/lib-es/components/Banner/AdSlotRender.js.map +1 -1
  575. package/lib-es/components/Banner/Banner.js.map +1 -1
  576. package/lib-es/components/Banner/BannerRender.js.map +1 -1
  577. package/lib-es/components/Banner/helpers.js.map +1 -1
  578. package/lib-es/components/Banner/index.js.map +1 -1
  579. package/lib-es/components/BlazeLink.js.map +1 -1
  580. package/lib-es/components/Breadcrumb/Breadcrumb.js.map +1 -1
  581. package/lib-es/components/Breadcrumb/index.js.map +1 -1
  582. package/lib-es/components/Button.js.map +1 -1
  583. package/lib-es/components/Card/Card.js.map +1 -1
  584. package/lib-es/components/Card/CardsContainer.js.map +1 -1
  585. package/lib-es/components/Card/CardsFactory.js.map +1 -1
  586. package/lib-es/components/Card/CardsRender.js.map +1 -1
  587. package/lib-es/components/Card/constants.js.map +1 -1
  588. package/lib-es/components/Card/helpers/filter-query-setup.js.map +1 -1
  589. package/lib-es/components/Card/helpers/filters-setup.js.map +1 -1
  590. package/lib-es/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -1
  591. package/lib-es/components/Card/helpers/get-published-listing-url.js.map +1 -1
  592. package/lib-es/components/Card/helpers/get-updated-items-to-display.js.map +1 -1
  593. package/lib-es/components/Card/helpers/get-updated-sort-properties.js.map +1 -1
  594. package/lib-es/components/Card/helpers/index.js.map +1 -1
  595. package/lib-es/components/Card/helpers/should-return.js.map +1 -1
  596. package/lib-es/components/Card/helpers/should-skip-single-query.js.map +1 -1
  597. package/lib-es/components/Card/helpers/use-dynamic-size-key.js.map +1 -1
  598. package/lib-es/components/Card/index.js.map +1 -1
  599. package/lib-es/components/Carousel/Carousel.js.map +1 -1
  600. package/lib-es/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
  601. package/lib-es/components/Carousel/CarouselImage/index.js.map +1 -1
  602. package/lib-es/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
  603. package/lib-es/components/Carousel/CarouselRender/index.js.map +1 -1
  604. package/lib-es/components/Carousel/hooks/useCarouselNavigation.js.map +1 -1
  605. package/lib-es/components/Carousel/index.js.map +1 -1
  606. package/lib-es/components/CarouselWrapper/CarouselWrapper.js.map +1 -1
  607. package/lib-es/components/CarouselWrapper/DefaultCarousel.js.map +1 -1
  608. package/lib-es/components/CarouselWrapper/SmoothScrollCarousel.js.map +1 -1
  609. package/lib-es/components/CarouselWrapper/index.js.map +1 -1
  610. package/lib-es/components/ClickWrapper.js.map +1 -1
  611. package/lib-es/components/Code/Code.js.map +1 -1
  612. package/lib-es/components/Code/ScriptTag.js.map +1 -1
  613. package/lib-es/components/Code/helpers/index.js.map +1 -1
  614. package/lib-es/components/Code/helpers/wrap-script-tags.js.map +1 -1
  615. package/lib-es/components/Code/index.js.map +1 -1
  616. package/lib-es/components/ContentGroup/ContentGroup.js.map +1 -1
  617. package/lib-es/components/ContentGroup/ContentGroupTabs.js.map +1 -1
  618. package/lib-es/components/ContentGroup/constants.js.map +1 -1
  619. package/lib-es/components/ContentGroup/helpers/get-active-tab.js.map +1 -1
  620. package/lib-es/components/ContentGroup/helpers/get-sections-data.js.map +1 -1
  621. package/lib-es/components/ContentGroup/helpers/index.js.map +1 -1
  622. package/lib-es/components/ContentGroup/index.js.map +1 -1
  623. package/lib-es/components/ContentGroupSection/ContentGroupSection.js.map +1 -1
  624. package/lib-es/components/ContentGroupSection/index.js.map +1 -1
  625. package/lib-es/components/DataSummary/DataSummaryFactory.js.map +1 -1
  626. package/lib-es/components/DataSummary/DataSummaryRender.js.map +1 -1
  627. package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -1
  628. package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
  629. package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js.map +1 -1
  630. package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map +1 -1
  631. package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
  632. package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js.map +1 -1
  633. package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.map +1 -1
  634. package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
  635. package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/index.js.map +1 -1
  636. package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.map +1 -1
  637. package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
  638. package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/index.js.map +1 -1
  639. package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.map +1 -1
  640. package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
  641. package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/index.js.map +1 -1
  642. package/lib-es/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
  643. package/lib-es/components/DataSummary/helpers/build-loop-props-content.js.map +1 -1
  644. package/lib-es/components/DataSummary/helpers/build-props-to-display-with-content.js.map +1 -1
  645. package/lib-es/components/DataSummary/helpers/get-data-summary-query.js.map +1 -1
  646. package/lib-es/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -1
  647. package/lib-es/components/DataSummary/helpers/get-link-props.js.map +1 -1
  648. package/lib-es/components/DataSummary/helpers/get-link-to-published-content.js.map +1 -1
  649. package/lib-es/components/DataSummary/helpers/get-loop-props-limit.js.map +1 -1
  650. package/lib-es/components/DataSummary/helpers/get-prop-value.js.map +1 -1
  651. package/lib-es/components/DataSummary/helpers/get-value-from-array.js.map +1 -1
  652. package/lib-es/components/DataSummary/helpers/index.js.map +1 -1
  653. package/lib-es/components/DataSummary/helpers/parse-boolean-values.js.map +1 -1
  654. package/lib-es/components/DataSummary/helpers/strip-summary-props-content.js.map +1 -1
  655. package/lib-es/components/DataSummary/index.js.map +1 -1
  656. package/lib-es/components/DateTime/DateTime.js +4 -4
  657. package/lib-es/components/DateTime/DateTime.js.map +1 -1
  658. package/lib-es/components/DateTime/index.js.map +1 -1
  659. package/lib-es/components/EmailConfirm/EmailConfirm.js.map +1 -1
  660. package/lib-es/components/EmailConfirm/index.js.map +1 -1
  661. package/lib-es/components/EmailConfirm/mutation.js.map +1 -1
  662. package/lib-es/components/Iframe/Iframe.js.map +1 -1
  663. package/lib-es/components/Iframe/constants.js.map +1 -1
  664. package/lib-es/components/Iframe/index.js.map +1 -1
  665. package/lib-es/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
  666. package/lib-es/components/Image/GlobalLightbox/NavButton.js.map +1 -1
  667. package/lib-es/components/Image/GlobalLightbox/index.js.map +1 -1
  668. package/lib-es/components/Image/Image.js.map +1 -1
  669. package/lib-es/components/Image/ImageDetails.js.map +1 -1
  670. package/lib-es/components/Image/ImageFactory.js.map +1 -1
  671. package/lib-es/components/Image/ImageRender.js.map +1 -1
  672. package/lib-es/components/Image/Lightbox/Lightbox.js.map +1 -1
  673. package/lib-es/components/Image/Lightbox/index.js.map +1 -1
  674. package/lib-es/components/Image/index.js.map +1 -1
  675. package/lib-es/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
  676. package/lib-es/components/ItemList/ItemListButton/index.js.map +1 -1
  677. package/lib-es/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
  678. package/lib-es/components/ItemList/ItemListCounter/index.js.map +1 -1
  679. package/lib-es/components/ItemList/ItemListNew/ItemListNew.js.map +1 -1
  680. package/lib-es/components/ItemList/ItemListNew/index.js.map +1 -1
  681. package/lib-es/components/ItemList/constants.js.map +1 -1
  682. package/lib-es/components/ItemList/helpers/get-item-list-data.js.map +1 -1
  683. package/lib-es/components/ItemList/helpers/get-item-list-id.js.map +1 -1
  684. package/lib-es/components/ItemList/helpers/get-item-list-ids.js.map +1 -1
  685. package/lib-es/components/ItemList/helpers/index.js.map +1 -1
  686. package/lib-es/components/ItemList/helpers/set-item-list-id.js.map +1 -1
  687. package/lib-es/components/ItemList/helpers/set-param-and-redirect.js.map +1 -1
  688. package/lib-es/components/ItemList/hooks/index.js.map +1 -1
  689. package/lib-es/components/ItemList/hooks/use-item-list-id.js.map +1 -1
  690. package/lib-es/components/Layout/Layout.js.map +1 -1
  691. package/lib-es/components/Layout/LayoutFactory.js.map +1 -1
  692. package/lib-es/components/Layout/LayoutWithStickyTimer.js.map +1 -1
  693. package/lib-es/components/Layout/constants.js.map +1 -1
  694. package/lib-es/components/Layout/helpers/check-if-row-has-columns.js.map +1 -1
  695. package/lib-es/components/Layout/helpers/get-styles-to-update.js.map +1 -1
  696. package/lib-es/components/Layout/helpers/index.js.map +1 -1
  697. package/lib-es/components/Layout/index.js.map +1 -1
  698. package/lib-es/components/LazyImage/LazyImage.js.map +1 -1
  699. package/lib-es/components/LazyImage/index.js.map +1 -1
  700. package/lib-es/components/List/ListBuilder.js.map +1 -1
  701. package/lib-es/components/List/ListFactory.js.map +1 -1
  702. package/lib-es/components/List/ListRender.js.map +1 -1
  703. package/lib-es/components/List/components/Cards/CardRenderWithInfiniteScroll.js.map +1 -1
  704. package/lib-es/components/List/components/Cards/CardsRender.js.map +1 -1
  705. package/lib-es/components/List/components/Cards/CardsRenderItem.js.map +1 -1
  706. package/lib-es/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
  707. package/lib-es/components/List/components/Cards/index.js.map +1 -1
  708. package/lib-es/components/List/components/Full/FullRender.js.map +1 -1
  709. package/lib-es/components/List/components/Full/FullRenderItem.js.map +1 -1
  710. package/lib-es/components/List/components/Full/FullRenderWithInfiniteScroll.js.map +1 -1
  711. package/lib-es/components/List/components/Full/index.js.map +1 -1
  712. package/lib-es/components/List/components/Header/ListHeader.js.map +1 -1
  713. package/lib-es/components/List/components/Header/index.js.map +1 -1
  714. package/lib-es/components/List/components/Pagination/Classic.js.map +1 -1
  715. package/lib-es/components/List/components/Pagination/ListPagination.js.map +1 -1
  716. package/lib-es/components/List/components/Pagination/LoadMore.js.map +1 -1
  717. package/lib-es/components/List/components/Pagination/index.js.map +1 -1
  718. package/lib-es/components/List/components/helpers/check-if-should-render-banner.js.map +1 -1
  719. package/lib-es/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -1
  720. package/lib-es/components/List/components/helpers/index.js.map +1 -1
  721. package/lib-es/components/List/components/index.js.map +1 -1
  722. package/lib-es/components/List/constants.js.map +1 -1
  723. package/lib-es/components/List/helpers/build-az-aggregations.js.map +1 -1
  724. package/lib-es/components/List/helpers/build-az-url.js.map +1 -1
  725. package/lib-es/components/List/helpers/build-pagination-items.js.map +1 -1
  726. package/lib-es/components/List/helpers/build-pagination-url.js.map +1 -1
  727. package/lib-es/components/List/helpers/build-query-booster.js.map +1 -1
  728. package/lib-es/components/List/helpers/get-az-query-filter.js.map +1 -1
  729. package/lib-es/components/List/helpers/get-items-per-page-to-use.js.map +1 -1
  730. package/lib-es/components/List/helpers/get-list-component.js.map +1 -1
  731. package/lib-es/components/List/helpers/get-list-query.js.map +1 -1
  732. package/lib-es/components/List/helpers/get-list-specific-search-filter.js.map +1 -1
  733. package/lib-es/components/List/helpers/get-sort-props.js.map +1 -1
  734. package/lib-es/components/List/helpers/has-required-item-list-details.js.map +1 -1
  735. package/lib-es/components/List/helpers/index.js.map +1 -1
  736. package/lib-es/components/List/helpers/sort-aggs.js.map +1 -1
  737. package/lib-es/components/List/helpers/strip-query-key.js.map +1 -1
  738. package/lib-es/components/List/index.js.map +1 -1
  739. package/lib-es/components/Menu/Menu.js.map +1 -1
  740. package/lib-es/components/Menu/MenuContext.js.map +1 -1
  741. package/lib-es/components/Menu/index.js.map +1 -1
  742. package/lib-es/components/MenuItem/MenuItem.js.map +1 -1
  743. package/lib-es/components/MenuItem/index.js.map +1 -1
  744. package/lib-es/components/Modal/Modal.js.map +1 -1
  745. package/lib-es/components/Modal/index.js.map +1 -1
  746. package/lib-es/components/SearchContent/SearchContent.js.map +1 -1
  747. package/lib-es/components/SearchContent/SearchContentItems.js.map +1 -1
  748. package/lib-es/components/SearchContent/SearchContentResults.js.map +1 -1
  749. package/lib-es/components/SearchContent/SearchContentToggleIcon.js.map +1 -1
  750. package/lib-es/components/SearchContent/constants.js.map +1 -1
  751. package/lib-es/components/SearchContent/index.js.map +1 -1
  752. package/lib-es/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
  753. package/lib-es/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
  754. package/lib-es/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -1
  755. package/lib-es/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
  756. package/lib-es/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
  757. package/lib-es/components/SearchFilter/SearchFilter/index.js.map +1 -1
  758. package/lib-es/components/SearchFilter/SearchFilterContainer.js.map +1 -1
  759. package/lib-es/components/SearchFilter/components/Checkbox.js.map +1 -1
  760. package/lib-es/components/SearchFilter/components/Range.js.map +1 -1
  761. package/lib-es/components/SearchFilter/components/Select.js.map +1 -1
  762. package/lib-es/components/SearchFilter/components/TextSearch.js.map +1 -1
  763. package/lib-es/components/SearchFilter/components/index.js.map +1 -1
  764. package/lib-es/components/SearchFilter/constants.js.map +1 -1
  765. package/lib-es/components/SearchFilter/helpers/build-filters-query.js.map +1 -1
  766. package/lib-es/components/SearchFilter/helpers/build-new-url.js.map +1 -1
  767. package/lib-es/components/SearchFilter/helpers/build-raw-query-stringified.js.map +1 -1
  768. package/lib-es/components/SearchFilter/helpers/build-url-query.js.map +1 -1
  769. package/lib-es/components/SearchFilter/helpers/calculate-min-max.js.map +1 -1
  770. package/lib-es/components/SearchFilter/helpers/calculate-step.js.map +1 -1
  771. package/lib-es/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -1
  772. package/lib-es/components/SearchFilter/helpers/decode-encode.js.map +1 -1
  773. package/lib-es/components/SearchFilter/helpers/get-display-value.js.map +1 -1
  774. package/lib-es/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js.map +1 -1
  775. package/lib-es/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
  776. package/lib-es/components/SearchFilter/helpers/get-filter-values.js.map +1 -1
  777. package/lib-es/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -1
  778. package/lib-es/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -1
  779. package/lib-es/components/SearchFilter/helpers/get-range-value.js.map +1 -1
  780. package/lib-es/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
  781. package/lib-es/components/SearchFilter/helpers/get-select-options.js.map +1 -1
  782. package/lib-es/components/SearchFilter/helpers/get-updated-filter-by.js.map +1 -1
  783. package/lib-es/components/SearchFilter/helpers/index.js.map +1 -1
  784. package/lib-es/components/SearchFilter/helpers/is-device-desktop.js.map +1 -1
  785. package/lib-es/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
  786. package/lib-es/components/SearchFilter/index.js.map +1 -1
  787. package/lib-es/components/SearchFilter/searchFilterReducer.js.map +1 -1
  788. package/lib-es/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
  789. package/lib-es/components/SearchFilterSort/constants.js.map +1 -1
  790. package/lib-es/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
  791. package/lib-es/components/SearchFilterSort/helpers/index.js.map +1 -1
  792. package/lib-es/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
  793. package/lib-es/components/SearchFilterSort/index.js.map +1 -1
  794. package/lib-es/components/SocialFollow/SFItem.js.map +1 -1
  795. package/lib-es/components/SocialFollow/SocialFollow.js.map +1 -1
  796. package/lib-es/components/SocialFollow/SocialFollowRender.js.map +1 -1
  797. package/lib-es/components/SocialFollow/index.js.map +1 -1
  798. package/lib-es/components/SocialFollow/sf.config.js.map +1 -1
  799. package/lib-es/components/SubMenu/SubMenu.js.map +1 -1
  800. package/lib-es/components/SubMenu/index.js.map +1 -1
  801. package/lib-es/components/TextBlock/TextBlockRender.js.map +1 -1
  802. package/lib-es/components/TextBlock/index.js.map +1 -1
  803. package/lib-es/components/Video/Video.js.map +1 -1
  804. package/lib-es/components/Video/VideoModal.js.map +1 -1
  805. package/lib-es/components/Video/VideoRender.js.map +1 -1
  806. package/lib-es/components/Video/index.js.map +1 -1
  807. package/lib-es/components/Video/providers/Default.js.map +1 -1
  808. package/lib-es/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
  809. package/lib-es/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
  810. package/lib-es/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
  811. package/lib-es/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js.map +1 -1
  812. package/lib-es/components/Video/providers/Vimeo/helpers/index.js.map +1 -1
  813. package/lib-es/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
  814. package/lib-es/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
  815. package/lib-es/components/Video/providers/YouTube/helpers/index.js.map +1 -1
  816. package/lib-es/components/Video/providers/get-provider.js.map +1 -1
  817. package/lib-es/components/Video/providers/index.js.map +1 -1
  818. package/lib-es/components/Wrapper.js.map +1 -1
  819. package/lib-es/components/index.js.map +1 -1
  820. package/lib-es/constants/componentsDefaultValues.js.map +1 -1
  821. package/lib-es/constants/index.js.map +1 -1
  822. package/lib-es/helpers/append-images.js.map +1 -1
  823. package/lib-es/helpers/build-az-filter.js.map +1 -1
  824. package/lib-es/helpers/build-checkbox-filters.js.map +1 -1
  825. package/lib-es/helpers/build-image-properties.js.map +1 -1
  826. package/lib-es/helpers/build-inherited-filters.js.map +1 -1
  827. package/lib-es/helpers/build-link-extra-props.js.map +1 -1
  828. package/lib-es/helpers/build-props-query.js.map +1 -1
  829. package/lib-es/helpers/build-query-fields.js.map +1 -1
  830. package/lib-es/helpers/build-query-key.js.map +1 -1
  831. package/lib-es/helpers/build-raw-query-base.js.map +1 -1
  832. package/lib-es/helpers/build-raw-query.js.map +1 -1
  833. package/lib-es/helpers/build-search-values-checkbox-select.js.map +1 -1
  834. package/lib-es/helpers/build-search-values-text.js.map +1 -1
  835. package/lib-es/helpers/build-set-filters.js.map +1 -1
  836. package/lib-es/helpers/build-sort-values.js.map +1 -1
  837. package/lib-es/helpers/check-for-error.js.map +1 -1
  838. package/lib-es/helpers/check-props-to-use.js.map +1 -1
  839. package/lib-es/helpers/entities/constants.js.map +1 -1
  840. package/lib-es/helpers/get-banner-data.js.map +1 -1
  841. package/lib-es/helpers/get-checkbox-filters.js.map +1 -1
  842. package/lib-es/helpers/get-click-wrapper-options.js.map +1 -1
  843. package/lib-es/helpers/get-current-offset.js.map +1 -1
  844. package/lib-es/helpers/get-dictionary-match.js.map +1 -1
  845. package/lib-es/helpers/get-display-count-data.js.map +1 -1
  846. package/lib-es/helpers/get-elasticsearch-operator.js.map +1 -1
  847. package/lib-es/helpers/get-entities-with-banner.js.map +1 -1
  848. package/lib-es/helpers/get-entity-data.js.map +1 -1
  849. package/lib-es/helpers/get-entity-render-props.js.map +1 -1
  850. package/lib-es/helpers/get-extra-az-bits.js.map +1 -1
  851. package/lib-es/helpers/get-filter-props.js.map +1 -1
  852. package/lib-es/helpers/get-filter-relation-keys.js.map +1 -1
  853. package/lib-es/helpers/get-generic-props.js.map +1 -1
  854. package/lib-es/helpers/get-generic-render-variables.js.map +1 -1
  855. package/lib-es/helpers/get-image-ids.js.map +1 -1
  856. package/lib-es/helpers/get-inherited-filters.js.map +1 -1
  857. package/lib-es/helpers/get-items-to-display-ids.js.map +1 -1
  858. package/lib-es/helpers/get-modifiers.js.map +1 -1
  859. package/lib-es/helpers/get-not-equal-query.js.map +1 -1
  860. package/lib-es/helpers/get-pagination-index.js.map +1 -1
  861. package/lib-es/helpers/get-parsed-prop-values.js.map +1 -1
  862. package/lib-es/helpers/get-parsed-summary-value.js.map +1 -1
  863. package/lib-es/helpers/get-prop-values.js.map +1 -1
  864. package/lib-es/helpers/get-query-filters.js.map +1 -1
  865. package/lib-es/helpers/get-query-props.js.map +1 -1
  866. package/lib-es/helpers/get-required-schemas.js.map +1 -1
  867. package/lib-es/helpers/get-sanitized-prop-values.js.map +1 -1
  868. package/lib-es/helpers/get-search-filter-type.js.map +1 -1
  869. package/lib-es/helpers/get-sort-by-field-name.js.map +1 -1
  870. package/lib-es/helpers/get-unpublished-entity-name.js.map +1 -1
  871. package/lib-es/helpers/get-updated-filter-by.js.map +1 -1
  872. package/lib-es/helpers/get-wrapped-value-with-link.js.map +1 -1
  873. package/lib-es/helpers/group-entities.js.map +1 -1
  874. package/lib-es/helpers/has-children.js.map +1 -1
  875. package/lib-es/helpers/index.js.map +1 -1
  876. package/lib-es/helpers/inject-banner.js.map +1 -1
  877. package/lib-es/helpers/inject-banners-to-entities.js.map +1 -1
  878. package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.map +1 -1
  879. package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/index.js.map +1 -1
  880. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.map +1 -1
  881. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js.map +1 -1
  882. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js.map +1 -1
  883. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/index.js.map +1 -1
  884. package/lib-es/helpers/inject-multiple-banners/index.js.map +1 -1
  885. package/lib-es/helpers/inject-multiple-banners/inject-multiple-banners.js.map +1 -1
  886. package/lib-es/helpers/is-browser.js.map +1 -1
  887. package/lib-es/helpers/is-filter-entitys-id.js.map +1 -1
  888. package/lib-es/helpers/is-object.js.map +1 -1
  889. package/lib-es/helpers/is-using-relation-image.js.map +1 -1
  890. package/lib-es/helpers/parse-TextBlock.js.map +1 -1
  891. package/lib-es/helpers/parse-interval.js.map +1 -1
  892. package/lib-es/helpers/parse-props-to-display.js.map +1 -1
  893. package/lib-es/helpers/process-data-summary-value.js.map +1 -1
  894. package/lib-es/helpers/remove-extra-items.js.map +1 -1
  895. package/lib-es/helpers/remove-unwanted-characters.js.map +1 -1
  896. package/lib-es/helpers/render-children.js.map +1 -1
  897. package/lib-es/helpers/should-render-waypoint.js.map +1 -1
  898. package/lib-es/helpers/should-show-property.js.map +1 -1
  899. package/lib-es/helpers/sort-response-data.js.map +1 -1
  900. package/lib-es/helpers/split-children.js.map +1 -1
  901. package/lib-es/helpers/update-childrens-parent.js.map +1 -1
  902. package/lib-es/hooks/helpers/RenderComponent.js.map +1 -1
  903. package/lib-es/hooks/helpers/StoreImages.js.map +1 -1
  904. package/lib-es/hooks/helpers/append-gtm-classname.js.map +1 -1
  905. package/lib-es/hooks/helpers/buildPBComponents.js.map +1 -1
  906. package/lib-es/hooks/helpers/check-banner-insertion-set.js.map +1 -1
  907. package/lib-es/hooks/helpers/check-collisions.js.map +1 -1
  908. package/lib-es/hooks/helpers/constants.js.map +1 -1
  909. package/lib-es/hooks/helpers/get-banner-index.js.map +1 -1
  910. package/lib-es/hooks/helpers/get-components-to-insert-by-type.js.map +1 -1
  911. package/lib-es/hooks/helpers/get-lightbox-images.js.map +1 -1
  912. package/lib-es/hooks/helpers/getComponent.js.map +1 -1
  913. package/lib-es/hooks/helpers/getVariant.js.map +1 -1
  914. package/lib-es/hooks/helpers/index.js.map +1 -1
  915. package/lib-es/hooks/helpers/inject-element-components.js.map +1 -1
  916. package/lib-es/hooks/helpers/inject-textblock-banners.js.map +1 -1
  917. package/lib-es/hooks/helpers/insert-banners.js.map +1 -1
  918. package/lib-es/hooks/helpers/update-targetings.js.map +1 -1
  919. package/lib-es/hooks/index.js.map +1 -1
  920. package/lib-es/hooks/use-app-sync-event-hook.js.map +1 -1
  921. package/lib-es/hooks/use-banner-insertion.js.map +1 -1
  922. package/lib-es/hooks/use-check-mobile-screen.js.map +1 -1
  923. package/lib-es/hooks/use-get-entity-schema.js.map +1 -1
  924. package/lib-es/hooks/use-get-entity-schemas-as-obj.js.map +1 -1
  925. package/lib-es/hooks/use-get-image-id-from-relation.js.map +1 -1
  926. package/lib-es/hooks/use-get-images.js.map +1 -1
  927. package/lib-es/hooks/use-get-single-entity-schema.js.map +1 -1
  928. package/lib-es/hooks/use-page-builder.js.map +1 -1
  929. package/lib-es/index.js.map +1 -1
  930. package/lib-es/utils/component-map.js.map +1 -1
  931. package/lib-es/utils/get-class-modifiers.js.map +1 -1
  932. package/lib-es/utils/get-image-data.js.map +1 -1
  933. package/lib-es/utils/get-props-to-display-modifiers.js.map +1 -1
  934. package/lib-es/utils/index.js.map +1 -1
  935. package/lib-es/utils/is-object-empty.js.map +1 -1
  936. package/lib-es/utils/variant-handler.js.map +1 -1
  937. package/lib-es/variants/HeroImage/index.js.map +1 -1
  938. package/lib-es/variants/Infographic/Infographic.js.map +1 -1
  939. package/lib-es/variants/Infographic/index.js.map +1 -1
  940. package/lib-es/variants/Infographic/useInfographic.js.map +1 -1
  941. package/lib-es/variants/LongformGallery/LongformGallery.js.map +1 -1
  942. package/lib-es/variants/LongformGallery/LongformGalleryImage.js.map +1 -1
  943. package/lib-es/variants/LongformGallery/constants.js.map +1 -1
  944. package/lib-es/variants/LongformGallery/helpers/index.js.map +1 -1
  945. package/lib-es/variants/LongformGallery/helpers/parseImageData.js.map +1 -1
  946. package/lib-es/variants/LongformGallery/helpers/separateImages.js.map +1 -1
  947. package/lib-es/variants/LongformGallery/helpers/shouldSkip.js.map +1 -1
  948. package/lib-es/variants/LongformGallery/index.js.map +1 -1
  949. package/lib-es/variants/LongformGallery/useLongformGallery.js.map +1 -1
  950. package/lib-es/variants/LongformRow/index.js.map +1 -1
  951. package/lib-es/variants/ParallaxImageTextRight/index.js.map +1 -1
  952. package/lib-es/variants/SlideSummary/SlideSummary.js.map +1 -1
  953. package/lib-es/variants/SlideSummary/index.js.map +1 -1
  954. package/lib-es/variants/ThumbnailCarousel/ThumbnailCarousel.js.map +1 -1
  955. package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/ThumbnailImage.js.map +1 -1
  956. package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/index.js.map +1 -1
  957. package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/useThumbnailImage.js.map +1 -1
  958. package/lib-es/variants/ThumbnailCarousel/index.js.map +1 -1
  959. package/lib-es/variants/ThumbnailCarousel/useThumbnailCarousel.js.map +1 -1
  960. package/lib-es/variants/index.js.map +1 -1
  961. package/package.json +10 -10
  962. package/src/components/DateTime/DateTime.js +4 -4
@@ -6,14 +6,14 @@ 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");
12
9
  require("core-js/modules/es.object.to-string.js");
13
10
  require("core-js/modules/es.promise.js");
11
+ require("core-js/modules/es.array.iterator.js");
14
12
  require("core-js/modules/es.string.iterator.js");
15
13
  require("core-js/modules/es.weak-map.js");
16
14
  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 _react = _interopRequireDefault(require("react"));
18
18
  var _dynamic = _interopRequireDefault(require("next/dynamic"));
19
19
  var _Layout = _interopRequireDefault(require("./Layout"));
@@ -1 +1 @@
1
- {"version":3,"file":"LayoutFactory.js","names":["_react","_interopRequireDefault","require","_dynamic","_Layout","_getRequireWildcardCache","e","WeakMap","r","t","_interopRequireWildcard","__esModule","_typeof2","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","LayoutWithStickyTimer","dynamic","Promise","resolve","then","LayoutFactory","props","sticky","stickyTimer","createElement","_default","exports"],"sources":["../../../src/components/Layout/LayoutFactory.js"],"sourcesContent":["import React from 'react';\nimport dynamic from 'next/dynamic';\nimport Layout from './Layout';\n\nconst LayoutWithStickyTimer = dynamic(() =>\n import(/* webpackChunkName: \"blazePbLayoutWithStickyTimer\" */ './LayoutWithStickyTimer')\n);\n\nconst LayoutFactory = props => {\n const { sticky, stickyTimer } = props;\n\n if (sticky && stickyTimer) return <LayoutWithStickyTimer {...props} />;\n\n return <Layout {...props} />;\n};\n\nexport default LayoutFactory;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,OAAA,GAAAH,sBAAA,CAAAC,OAAA;AAA8B,SAAAG,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,SAAAI,wBAAAJ,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,eAAAA,CAAA,oBAAAM,QAAA,aAAAN,CAAA,0BAAAA,CAAA,sBAAAA,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAI,GAAA,CAAAP,CAAA,UAAAG,CAAA,CAAAK,GAAA,CAAAR,CAAA,OAAAS,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAf,CAAA,oBAAAe,CAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAlB,CAAA,EAAAe,CAAA,SAAAI,CAAA,GAAAR,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAd,CAAA,EAAAe,CAAA,UAAAI,CAAA,KAAAA,CAAA,CAAAX,GAAA,IAAAW,CAAA,CAAAC,GAAA,IAAAR,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAI,CAAA,IAAAV,CAAA,CAAAM,CAAA,IAAAf,CAAA,CAAAe,CAAA,YAAAN,CAAA,cAAAT,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAiB,GAAA,CAAApB,CAAA,EAAAS,CAAA,GAAAA,CAAA;AAE9B,IAAMY,qBAAqB,GAAG,IAAAC,mBAAO,EAAC;EAAA,OAAAC,OAAA,CAAAC,OAAA,GAAAC,IAAA;IAAA,OAAArB,uBAAA,CAAAR,OAAA,EAC7B,sDAAuD,yBAAyB;EAAA;AAAA,CACzF,CAAC;AAED,IAAM8B,aAAa,GAAG,SAAhBA,aAAaA,CAAGC,KAAK,EAAI;EAC7B,IAAQC,MAAM,GAAkBD,KAAK,CAA7BC,MAAM;IAAEC,WAAW,GAAKF,KAAK,CAArBE,WAAW;EAE3B,IAAID,MAAM,IAAIC,WAAW,EAAE,oBAAOnC,MAAA,YAAAoC,aAAA,CAACT,qBAAqB,EAAKM,KAAQ,CAAC;EAEtE,oBAAOjC,MAAA,YAAAoC,aAAA,CAAChC,OAAA,WAAM,EAAK6B,KAAQ,CAAC;AAC9B,CAAC;AAAC,IAAAI,QAAA,GAAAC,OAAA,cAEaN,aAAa","ignoreList":[]}
1
+ {"version":3,"file":"LayoutFactory.js","names":["_react","_interopRequireDefault","require","_dynamic","_Layout","_getRequireWildcardCache","e","WeakMap","r","t","_interopRequireWildcard","__esModule","_typeof2","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","LayoutWithStickyTimer","dynamic","Promise","resolve","then","LayoutFactory","props","sticky","stickyTimer","createElement","_default","exports"],"sources":["../../../src/components/Layout/LayoutFactory.js"],"sourcesContent":["import React from 'react';\nimport dynamic from 'next/dynamic';\nimport Layout from './Layout';\n\nconst LayoutWithStickyTimer = dynamic(() =>\n import(/* webpackChunkName: \"blazePbLayoutWithStickyTimer\" */ './LayoutWithStickyTimer')\n);\n\nconst LayoutFactory = props => {\n const { sticky, stickyTimer } = props;\n\n if (sticky && stickyTimer) return <LayoutWithStickyTimer {...props} />;\n\n return <Layout {...props} />;\n};\n\nexport default LayoutFactory;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,OAAA,GAAAH,sBAAA,CAAAC,OAAA;AAA8B,SAAAG,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,SAAAI,wBAAAJ,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,eAAAA,CAAA,oBAAAM,QAAA,aAAAN,CAAA,0BAAAA,CAAA,sBAAAA,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAI,GAAA,CAAAP,CAAA,UAAAG,CAAA,CAAAK,GAAA,CAAAR,CAAA,OAAAS,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAf,CAAA,oBAAAe,CAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAlB,CAAA,EAAAe,CAAA,SAAAI,CAAA,GAAAR,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAd,CAAA,EAAAe,CAAA,UAAAI,CAAA,KAAAA,CAAA,CAAAX,GAAA,IAAAW,CAAA,CAAAC,GAAA,IAAAR,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAI,CAAA,IAAAV,CAAA,CAAAM,CAAA,IAAAf,CAAA,CAAAe,CAAA,YAAAN,CAAA,cAAAT,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAiB,GAAA,CAAApB,CAAA,EAAAS,CAAA,GAAAA,CAAA;AAE9B,IAAMY,qBAAqB,GAAG,IAAAC,mBAAO,EAAC;EAAA,OAAAC,OAAA,CAAAC,OAAA,GAAAC,IAAA;IAAA,OAAArB,uBAAA,CAAAR,OAAA,EAC7B,sDAAuD,yBAAyB;EAAA;AAAA,CACzF,CAAC;AAED,IAAM8B,aAAa,GAAG,SAAhBA,aAAaA,CAAGC,KAAK,EAAI;EAC7B,IAAQC,MAAM,GAAkBD,KAAK,CAA7BC,MAAM;IAAEC,WAAW,GAAKF,KAAK,CAArBE,WAAW;EAE3B,IAAID,MAAM,IAAIC,WAAW,EAAE,oBAAOnC,MAAA,YAAAoC,aAAA,CAACT,qBAAqB,EAAKM,KAAQ,CAAC;EAEtE,oBAAOjC,MAAA,YAAAoC,aAAA,CAAChC,OAAA,WAAM,EAAK6B,KAAQ,CAAC;AAC9B,CAAC;AAAC,IAAAI,QAAA,GAAAC,OAAA,cAEaN,aAAa"}
@@ -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");
6
4
  require("core-js/modules/es.object.to-string.js");
7
5
  require("core-js/modules/es.string.iterator.js");
8
6
  require("core-js/modules/es.weak-map.js");
9
7
  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", {
@@ -1 +1 @@
1
- {"version":3,"file":"LayoutWithStickyTimer.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_customHooks","_recreateOnNavigation","_Layout","_excluded","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","LayoutWithStickyTimer","_ref","sticky","stickyTimer","otherProps","_objectWithoutProperties2","_useInView","useInView","_useInView2","_slicedToArray2","isIntersecting","outerRef","_useState","useState","_useState2","isSticky","setIsSticky","useEffect","timer","setTimeout","clearTimeout","createElement","_extends2","ref","propTypes","PropTypes","bool","number","defaultProps","_default","exports","recreateOnNavigation"],"sources":["../../../src/components/Layout/LayoutWithStickyTimer.js"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { useInView } from '@blaze-react/utils/lib/customHooks';\nimport recreateOnNavigation from '../../HOC/recreateOnNavigation';\nimport Layout from './Layout';\n\nconst LayoutWithStickyTimer = ({ sticky, stickyTimer, ...otherProps }) => {\n const [isIntersecting, outerRef] = useInView({});\n const [isSticky, setIsSticky] = useState(sticky);\n\n useEffect(\n () => {\n if (isIntersecting && sticky && !!stickyTimer) {\n setIsSticky(true);\n const timer = setTimeout(() => {\n setIsSticky(false);\n }, stickyTimer);\n\n return () => {\n clearTimeout(timer);\n };\n }\n },\n [isIntersecting, stickyTimer, sticky]\n );\n\n return <Layout {...otherProps} sticky={isSticky} ref={sticky ? outerRef : null} />;\n};\n\nLayoutWithStickyTimer.propTypes = {\n sticky: PropTypes.bool,\n stickyTimer: PropTypes.number\n};\n\nLayoutWithStickyTimer.defaultProps = {\n sticky: false,\n stickyTimer: 0\n};\n\n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ACpF,CAAC;AAEDX,qBAAqB,CAACwB,SAAS,GAAG;EAChCtB,MAAM,EAAEuB,qBAAS,CAACC,IAAI;EACtBvB,WAAW,EAAEsB,qBAAS,CAACE;AACzB,CAAC;AAED3B,qBAAqB,CAAC4B,YAAY,GAAG;EACnC1B,MAAM,EAAE,KAAK;EACbC,WAAW,EAAE;AACf,CAAC;AAAC,IAAA0B,QAAA,GAAAC,OAAA,cAEa,IAAAC,gCAAoB,EAAC/B,qBAAqB,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"LayoutWithStickyTimer.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_customHooks","_recreateOnNavigation","_Layout","_excluded","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","LayoutWithStickyTimer","_ref","sticky","stickyTimer","otherProps","_objectWithoutProperties2","_useInView","useInView","_useInView2","_slicedToArray2","isIntersecting","outerRef","_useState","useState","_useState2","isSticky","setIsSticky","useEffect","timer","setTimeout","clearTimeout","createElement","_extends2","ref","propTypes","PropTypes","bool","number","defaultProps","_default","exports","recreateOnNavigation"],"sources":["../../../src/components/Layout/LayoutWithStickyTimer.js"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { useInView } from '@blaze-react/utils/lib/customHooks';\nimport recreateOnNavigation from '../../HOC/recreateOnNavigation';\nimport Layout from './Layout';\n\nconst LayoutWithStickyTimer = ({ sticky, stickyTimer, ...otherProps }) => {\n const [isIntersecting, outerRef] = useInView({});\n const [isSticky, setIsSticky] = useState(sticky);\n\n useEffect(\n () => {\n if (isIntersecting && sticky && !!stickyTimer) {\n setIsSticky(true);\n const timer = setTimeout(() => {\n setIsSticky(false);\n }, stickyTimer);\n\n return () => {\n clearTimeout(timer);\n };\n }\n },\n [isIntersecting, stickyTimer, sticky]\n );\n\n return <Layout {...otherProps} sticky={isSticky} ref={sticky ? outerRef : null} />;\n};\n\nLayoutWithStickyTimer.propTypes = {\n sticky: PropTypes.bool,\n stickyTimer: PropTypes.number\n};\n\nLayoutWithStickyTimer.defaultProps = {\n sticky: false,\n stickyTimer: 0\n};\n\nexport default recreateOnNavigation(LayoutWithStickyTimer);\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,qBAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,OAAA,GAAAH,sBAAA,CAAAF,OAAA;AAA8B,IAAAM,SAAA;AAAA,SAAAC,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,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,EAAAc,CAAA,SAAAI,CAAA,GAAAR,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,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AmD,aAAA,CAAC5C,OAAA,WAAM,MAAA6C,SAAA,iBAAKlB,UAAU;IAAEF,MAAM,EAAEa,QAAS;IAACQ,GAAG,EAAErB,MAAM,GAAGS,QAAQ,GAAG;EAAK,EAAE,CAAC;AACpF,CAAC;AAEDX,qBAAqB,CAACwB,SAAS,GAAG;EAChCtB,MAAM,EAAEuB,qBAAS,CAACC,IAAI;EACtBvB,WAAW,EAAEsB,qBAAS,CAACE;AACzB,CAAC;AAED3B,qBAAqB,CAAC4B,YAAY,GAAG;EACnC1B,MAAM,EAAE,KAAK;EACbC,WAAW,EAAE;AACf,CAAC;AAAC,IAAA0B,QAAA,GAAAC,OAAA,cAEa,IAAAC,gCAAoB,EAAC/B,qBAAqB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","names":["childPropsToUse","exports","ROW","COLUMN"],"sources":["../../../src/components/Layout/constants.js"],"sourcesContent":["// Expand array with new prop keys as needed\nconst childPropsToUse = ['width'];\nconst ROW = 'row';\nconst COLUMN = 'column';\n\nexport { childPropsToUse, ROW, COLUMN };\n"],"mappings":";;;;;;;AAAA;AACA,IAAMA,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAG,CAAC,OAAO,CAAC;AACjC,IAAME,GAAG,GAAAD,OAAA,CAAAC,GAAA,GAAG,KAAK;AACjB,IAAMC,MAAM,GAAAF,OAAA,CAAAE,MAAA,GAAG,QAAQ","ignoreList":[]}
1
+ {"version":3,"file":"constants.js","names":["childPropsToUse","exports","ROW","COLUMN"],"sources":["../../../src/components/Layout/constants.js"],"sourcesContent":["// Expand array with new prop keys as needed\nconst childPropsToUse = ['width'];\nconst ROW = 'row';\nconst COLUMN = 'column';\n\nexport { childPropsToUse, ROW, COLUMN };\n"],"mappings":";;;;;;;AAAA;AACA,IAAMA,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAG,CAAC,OAAO,CAAC;AACjC,IAAME,GAAG,GAAAD,OAAA,CAAAC,GAAA,GAAG,KAAK;AACjB,IAAMC,MAAM,GAAAF,OAAA,CAAAE,MAAA,GAAG,QAAQ"}
@@ -8,9 +8,9 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports["default"] = void 0;
9
9
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
10
  require("core-js/modules/es.array.for-each.js");
11
- require("core-js/modules/es.array.is-array.js");
12
11
  require("core-js/modules/es.object.to-string.js");
13
12
  require("core-js/modules/web.dom-collections.for-each.js");
13
+ require("core-js/modules/es.array.is-array.js");
14
14
  var _react = _interopRequireDefault(require("react"));
15
15
  var _constants = require("../constants");
16
16
  function checkIfRowHasColumns(type, children) {
@@ -1 +1 @@
1
- {"version":3,"file":"check-if-row-has-columns.js","names":["_react","_interopRequireDefault","require","_constants","checkIfRowHasColumns","type","children","ROW","hasColumn","React","Children","forEach","child","childrenElements","props","Array","isArray","length","_child$props$children","_slicedToArray2","nestedChildren","nestedChild","nestedChildType","component","COLUMN","_default","exports"],"sources":["../../../../src/components/Layout/helpers/check-if-row-has-columns.js"],"sourcesContent":["import React from 'react';\nimport { ROW, COLUMN } from '../constants';\n\nfunction checkIfRowHasColumns(type, children) {\n if (type !== ROW) return false;\n let hasColumn = false;\n\n React.Children.forEach(children, child => {\n const childrenElements = child.props.children;\n if (Array.isArray(childrenElements) && childrenElements.length) {\n const [, nestedChildren] = child.props.children;\n nestedChildren.forEach(nestedChild => {\n const nestedChildType = nestedChild.props.component.type;\n if (nestedChildType === COLUMN) hasColumn = true;\n });\n }\n });\n return hasColumn;\n}\n\nexport default checkIfRowHasColumns;\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAEA,SAASE,oBAAoBA,CAACC,IAAI,EAAEC,QAAQ,EAAE;EAC5C,IAAID,IAAI,KAAKE,cAAG,EAAE,OAAO,KAAK;EAC9B,IAAIC,SAAS,GAAG,KAAK;EAErBC,iBAAK,CAACC,QAAQ,CAACC,OAAO,CAACL,QAAQ,EAAE,UAAAM,KAAK,EAAI;IACxC,IAAMC,gBAAgB,GAAGD,KAAK,CAACE,KAAK,CAACR,QAAQ;IAC7C,IAAIS,KAAK,CAACC,OAAO,CAACH,gBAAgB,CAAC,IAAIA,gBAAgB,CAACI,MAAM,EAAE;MAC9D,IAAAC,qBAAA,OAAAC,eAAA,aAA2BP,KAAK,CAACE,KAAK,CAACR,QAAQ;QAAtCc,cAAc,GAAAF,qBAAA;MACvBE,cAAc,CAACT,OAAO,CAAC,UAAAU,WAAW,EAAI;QACpC,IAAMC,eAAe,GAAGD,WAAW,CAACP,KAAK,CAACS,SAAS,CAAClB,IAAI;QACxD,IAAIiB,eAAe,KAAKE,iBAAM,EAAEhB,SAAS,GAAG,IAAI;MAClD,CAAC,CAAC;IACJ;EACF,CAAC,CAAC;EACF,OAAOA,SAAS;AAClB;AAAC,IAAAiB,QAAA,GAAAC,OAAA,cAEctB,oBAAoB","ignoreList":[]}
1
+ {"version":3,"file":"check-if-row-has-columns.js","names":["_react","_interopRequireDefault","require","_constants","checkIfRowHasColumns","type","children","ROW","hasColumn","React","Children","forEach","child","childrenElements","props","Array","isArray","length","_child$props$children","_slicedToArray2","nestedChildren","nestedChild","nestedChildType","component","COLUMN","_default","exports"],"sources":["../../../../src/components/Layout/helpers/check-if-row-has-columns.js"],"sourcesContent":["import React from 'react';\nimport { ROW, COLUMN } from '../constants';\n\nfunction checkIfRowHasColumns(type, children) {\n if (type !== ROW) return false;\n let hasColumn = false;\n\n React.Children.forEach(children, child => {\n const childrenElements = child.props.children;\n if (Array.isArray(childrenElements) && childrenElements.length) {\n const [, nestedChildren] = child.props.children;\n nestedChildren.forEach(nestedChild => {\n const nestedChildType = nestedChild.props.component.type;\n if (nestedChildType === COLUMN) hasColumn = true;\n });\n }\n });\n return hasColumn;\n}\n\nexport default checkIfRowHasColumns;\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAEA,SAASE,oBAAoBA,CAACC,IAAI,EAAEC,QAAQ,EAAE;EAC5C,IAAID,IAAI,KAAKE,cAAG,EAAE,OAAO,KAAK;EAC9B,IAAIC,SAAS,GAAG,KAAK;EAErBC,iBAAK,CAACC,QAAQ,CAACC,OAAO,CAACL,QAAQ,EAAE,UAAAM,KAAK,EAAI;IACxC,IAAMC,gBAAgB,GAAGD,KAAK,CAACE,KAAK,CAACR,QAAQ;IAC7C,IAAIS,KAAK,CAACC,OAAO,CAACH,gBAAgB,CAAC,IAAIA,gBAAgB,CAACI,MAAM,EAAE;MAC9D,IAAAC,qBAAA,OAAAC,eAAA,aAA2BP,KAAK,CAACE,KAAK,CAACR,QAAQ;QAAtCc,cAAc,GAAAF,qBAAA;MACvBE,cAAc,CAACT,OAAO,CAAC,UAAAU,WAAW,EAAI;QACpC,IAAMC,eAAe,GAAGD,WAAW,CAACP,KAAK,CAACS,SAAS,CAAClB,IAAI;QACxD,IAAIiB,eAAe,KAAKE,iBAAM,EAAEhB,SAAS,GAAG,IAAI;MAClD,CAAC,CAAC;IACJ;EACF,CAAC,CAAC;EACF,OAAOA,SAAS;AAClB;AAAC,IAAAiB,QAAA,GAAAC,OAAA,cAEctB,oBAAoB"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-styles-to-update.js","names":["getStylesToUpdate","_ref","backgroundImage","concat","_default","exports"],"sources":["../../../../src/components/Layout/helpers/get-styles-to-update.js"],"sourcesContent":["const getStylesToUpdate = ({ backgroundImage }) => {\n if (!backgroundImage) return {};\n\n return {\n backgroundImage: `url(\"${backgroundImage}\")`\n };\n};\n\nexport default getStylesToUpdate;\n"],"mappings":";;;;;;;AAAA,IAAMA,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAAC,IAAA,EAA4B;EAAA,IAAtBC,eAAe,GAAAD,IAAA,CAAfC,eAAe;EAC1C,IAAI,CAACA,eAAe,EAAE,OAAO,CAAC,CAAC;EAE/B,OAAO;IACLA,eAAe,WAAAC,MAAA,CAAUD,eAAe;EAC1C,CAAC;AACH,CAAC;AAAC,IAAAE,QAAA,GAAAC,OAAA,cAEaL,iBAAiB","ignoreList":[]}
1
+ {"version":3,"file":"get-styles-to-update.js","names":["getStylesToUpdate","_ref","backgroundImage","concat","_default","exports"],"sources":["../../../../src/components/Layout/helpers/get-styles-to-update.js"],"sourcesContent":["const getStylesToUpdate = ({ backgroundImage }) => {\n if (!backgroundImage) return {};\n\n return {\n backgroundImage: `url(\"${backgroundImage}\")`\n };\n};\n\nexport default getStylesToUpdate;\n"],"mappings":";;;;;;;AAAA,IAAMA,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAAC,IAAA,EAA4B;EAAA,IAAtBC,eAAe,GAAAD,IAAA,CAAfC,eAAe;EAC1C,IAAI,CAACA,eAAe,EAAE,OAAO,CAAC,CAAC;EAE/B,OAAO;IACLA,eAAe,WAAAC,MAAA,CAAUD,eAAe;EAC1C,CAAC;AACH,CAAC;AAAC,IAAAE,QAAA,GAAAC,OAAA,cAEaL,iBAAiB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_getStylesToUpdate","_interopRequireDefault","require","_checkIfRowHasColumns"],"sources":["../../../../src/components/Layout/helpers/index.js"],"sourcesContent":["import getStylesToUpdate from './get-styles-to-update';\nimport checkIfRowHasColumns from './check-if-row-has-columns';\n\nexport { getStylesToUpdate, checkIfRowHasColumns };\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,kBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAF,sBAAA,CAAAC,OAAA","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_getStylesToUpdate","_interopRequireDefault","require","_checkIfRowHasColumns"],"sources":["../../../../src/components/Layout/helpers/index.js"],"sourcesContent":["import getStylesToUpdate from './get-styles-to-update';\nimport checkIfRowHasColumns from './check-if-row-has-columns';\n\nexport { getStylesToUpdate, checkIfRowHasColumns };\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,kBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAF,sBAAA,CAAAC,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_LayoutFactory","_interopRequireDefault","require","_default","exports","LayoutFactory"],"sources":["../../../src/components/Layout/index.js"],"sourcesContent":["import LayoutFactory from './LayoutFactory';\n\nexport default LayoutFactory;\n"],"mappings":";;;;;;;;AAAA,IAAAA,cAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA4C,IAAAC,QAAA,GAAAC,OAAA,cAE7BC,yBAAa","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_LayoutFactory","_interopRequireDefault","require","_default","exports","LayoutFactory"],"sources":["../../../src/components/Layout/index.js"],"sourcesContent":["import LayoutFactory from './LayoutFactory';\n\nexport default LayoutFactory;\n"],"mappings":";;;;;;;;AAAA,IAAAA,cAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA4C,IAAAC,QAAA,GAAAC,OAAA,cAE7BC,yBAAa"}
@@ -1 +1 @@
1
- {"version":3,"file":"LazyImage.js","names":["_react","_interopRequireDefault","require","_propTypes","_imageCdnReact","_head","_customHooks","_constants","_excluded","LazyImage","_ref","src","alt","sizeKey","priority","props","_objectWithoutProperties2","_useInView","useInView","IN_VIEW_CONFIG","_useInView2","_slicedToArray2","isIntersecting","outerRef","shouldRender","HeadComponent","Head","createElement","ref","ResponsiveImage","_extends2","propTypes","PropTypes","string","isRequired","bool","defaultProps","_default","exports"],"sources":["../../../src/components/LazyImage/LazyImage.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { ResponsiveImage } from '@blaze-cms/image-cdn-react';\nimport Head from 'next/head';\nimport { useInView } from '@blaze-react/utils/lib/customHooks';\nimport { IN_VIEW_CONFIG } from '../../constants';\n\nconst LazyImage = ({ src, alt, sizeKey, priority, ...props }) => {\n const [isIntersecting, outerRef] = useInView(IN_VIEW_CONFIG);\n const shouldRender = priority || isIntersecting;\n const HeadComponent = priority ? Head : null;\n\n return (\n <span ref={outerRef}>\n {shouldRender && (\n <ResponsiveImage\n src={src}\n alt={alt}\n sizeKey={sizeKey}\n HeadComponent={HeadComponent}\n {...props}\n />\n )}\n </span>\n );\n};\n\nLazyImage.propTypes = {\n src: PropTypes.string.isRequired,\n alt: PropTypes.string,\n sizeKey: PropTypes.string.isRequired,\n priority: PropTypes.bool\n};\n\nLazyImage.defaultProps = {\n alt: '',\n priority: false\n};\n\nexport default LazyImage;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AAAiD,IAAAM,SAAA;AAEjD,IAAMC,SAAS,GAAG,SAAZA,SAASA,CAAAC,IAAA,EAAkD;EAAA,IAA5CC,GAAG,GAAAD,IAAA,CAAHC,GAAG;IAAEC,GAAG,GAAAF,IAAA,CAAHE,GAAG;IAAEC,OAAO,GAAAH,IAAA,CAAPG,OAAO;IAAEC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;IAAKC,KAAK,OAAAC,yBAAA,aAAAN,IAAA,EAAAF,SAAA;EACxD,IAAAS,UAAA,GAAmC,IAAAC,sBAAS,EAACC,yBAAc,CAAC;IAAAC,WAAA,OAAAC,eAAA,aAAAJ,UAAA;IAArDK,cAAc,GAAAF,WAAA;IAAEG,QAAQ,GAAAH,WAAA;EAC/B,IAAMI,YAAY,GAAGV,QAAQ,IAAIQ,cAAc;EAC/C,IAAMG,aAAa,GAAGX,QAAQ,GAAGY,gBAAI,GAAG,IAAI;EAE5C,oBACE1B,MAAA,YAAA2B,aAAA;IAAMC,GAAG,EAAEL;EAAS,GACjBC,YAAY,iBACXxB,MAAA,YAAA2B,aAAA,CAACvB,cAAA,CAAAyB,eAAe,MAAAC,SAAA;IACdnB,GAAG,EAAEA,GAAI;IACTC,GAAG,EAAEA,GAAI;IACTC,OAAO,EAAEA,OAAQ;IACjBY,aAAa,EAAEA;EAAc,GACzBV,KAAK,CACV,CAEC,CAAC;AAEX,CAAC;AAEDN,SAAS,CAACsB,SAAS,GAAG;EACpBpB,GAAG,EAAEqB,qBAAS,CAACC,MAAM,CAACC,UAAU;EAChCtB,GAAG,EAAEoB,qBAAS,CAACC,MAAM;EACrBpB,OAAO,EAAEmB,qBAAS,CAACC,MAAM,CAACC,UAAU;EACpCpB,QAAQ,EAAEkB,qBAAS,CAACG;AACtB,CAAC;AAED1B,SAAS,CAAC2B,YAAY,GAAG;EACvBxB,GAAG,EAAE,EAAE;EACPE,QAAQ,EAAE;AACZ,CAAC;AAAC,IAAAuB,QAAA,GAAAC,OAAA,cAEa7B,SAAS","ignoreList":[]}
1
+ {"version":3,"file":"LazyImage.js","names":["_react","_interopRequireDefault","require","_propTypes","_imageCdnReact","_head","_customHooks","_constants","_excluded","LazyImage","_ref","src","alt","sizeKey","priority","props","_objectWithoutProperties2","_useInView","useInView","IN_VIEW_CONFIG","_useInView2","_slicedToArray2","isIntersecting","outerRef","shouldRender","HeadComponent","Head","createElement","ref","ResponsiveImage","_extends2","propTypes","PropTypes","string","isRequired","bool","defaultProps","_default","exports"],"sources":["../../../src/components/LazyImage/LazyImage.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { ResponsiveImage } from '@blaze-cms/image-cdn-react';\nimport Head from 'next/head';\nimport { useInView } from '@blaze-react/utils/lib/customHooks';\nimport { IN_VIEW_CONFIG } from '../../constants';\n\nconst LazyImage = ({ src, alt, sizeKey, priority, ...props }) => {\n const [isIntersecting, outerRef] = useInView(IN_VIEW_CONFIG);\n const shouldRender = priority || isIntersecting;\n const HeadComponent = priority ? Head : null;\n\n return (\n <span ref={outerRef}>\n {shouldRender && (\n <ResponsiveImage\n src={src}\n alt={alt}\n sizeKey={sizeKey}\n HeadComponent={HeadComponent}\n {...props}\n />\n )}\n </span>\n );\n};\n\nLazyImage.propTypes = {\n src: PropTypes.string.isRequired,\n alt: PropTypes.string,\n sizeKey: PropTypes.string.isRequired,\n priority: PropTypes.bool\n};\n\nLazyImage.defaultProps = {\n alt: '',\n priority: false\n};\n\nexport default LazyImage;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AAAiD,IAAAM,SAAA;AAEjD,IAAMC,SAAS,GAAG,SAAZA,SAASA,CAAAC,IAAA,EAAkD;EAAA,IAA5CC,GAAG,GAAAD,IAAA,CAAHC,GAAG;IAAEC,GAAG,GAAAF,IAAA,CAAHE,GAAG;IAAEC,OAAO,GAAAH,IAAA,CAAPG,OAAO;IAAEC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;IAAKC,KAAK,OAAAC,yBAAA,aAAAN,IAAA,EAAAF,SAAA;EACxD,IAAAS,UAAA,GAAmC,IAAAC,sBAAS,EAACC,yBAAc,CAAC;IAAAC,WAAA,OAAAC,eAAA,aAAAJ,UAAA;IAArDK,cAAc,GAAAF,WAAA;IAAEG,QAAQ,GAAAH,WAAA;EAC/B,IAAMI,YAAY,GAAGV,QAAQ,IAAIQ,cAAc;EAC/C,IAAMG,aAAa,GAAGX,QAAQ,GAAGY,gBAAI,GAAG,IAAI;EAE5C,oBACE1B,MAAA,YAAA2B,aAAA;IAAMC,GAAG,EAAEL;EAAS,GACjBC,YAAY,iBACXxB,MAAA,YAAA2B,aAAA,CAACvB,cAAA,CAAAyB,eAAe,MAAAC,SAAA;IACdnB,GAAG,EAAEA,GAAI;IACTC,GAAG,EAAEA,GAAI;IACTC,OAAO,EAAEA,OAAQ;IACjBY,aAAa,EAAEA;EAAc,GACzBV,KAAK,CACV,CAEC,CAAC;AAEX,CAAC;AAEDN,SAAS,CAACsB,SAAS,GAAG;EACpBpB,GAAG,EAAEqB,qBAAS,CAACC,MAAM,CAACC,UAAU;EAChCtB,GAAG,EAAEoB,qBAAS,CAACC,MAAM;EACrBpB,OAAO,EAAEmB,qBAAS,CAACC,MAAM,CAACC,UAAU;EACpCpB,QAAQ,EAAEkB,qBAAS,CAACG;AACtB,CAAC;AAED1B,SAAS,CAAC2B,YAAY,GAAG;EACvBxB,GAAG,EAAE,EAAE;EACPE,QAAQ,EAAE;AACZ,CAAC;AAAC,IAAAuB,QAAA,GAAAC,OAAA,cAEa7B,SAAS"}
@@ -6,14 +6,14 @@ 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");
12
9
  require("core-js/modules/es.object.to-string.js");
13
10
  require("core-js/modules/es.promise.js");
11
+ require("core-js/modules/es.array.iterator.js");
14
12
  require("core-js/modules/es.string.iterator.js");
15
13
  require("core-js/modules/es.weak-map.js");
16
14
  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
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; }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_dynamic","_interopRequireDefault","require","_getRequireWildcardCache","e","WeakMap","r","t","_interopRequireWildcard","__esModule","_typeof2","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_default","exports","dynamic","Promise","resolve","then"],"sources":["../../../src/components/LazyImage/index.js"],"sourcesContent":["import dynamic from 'next/dynamic';\n\nexport default dynamic(() => import(/* webpackChunkName: \"blazePbLazyImage\" */ './LazyImage'));\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,QAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAmC,SAAAC,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,SAAAI,wBAAAJ,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,eAAAA,CAAA,oBAAAM,QAAA,aAAAN,CAAA,0BAAAA,CAAA,sBAAAA,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAI,GAAA,CAAAP,CAAA,UAAAG,CAAA,CAAAK,GAAA,CAAAR,CAAA,OAAAS,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAf,CAAA,oBAAAe,CAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAlB,CAAA,EAAAe,CAAA,SAAAI,CAAA,GAAAR,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAd,CAAA,EAAAe,CAAA,UAAAI,CAAA,KAAAA,CAAA,CAAAX,GAAA,IAAAW,CAAA,CAAAC,GAAA,IAAAR,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAI,CAAA,IAAAV,CAAA,CAAAM,CAAA,IAAAf,CAAA,CAAAe,CAAA,YAAAN,CAAA,cAAAT,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAiB,GAAA,CAAApB,CAAA,EAAAS,CAAA,GAAAA,CAAA;AAAA,IAAAY,QAAA,GAAAC,OAAA,cAEpB,IAAAC,mBAAO,EAAC;EAAA,OAAAC,OAAA,CAAAC,OAAA,GAAAC,IAAA;IAAA,OAAAtB,uBAAA,CAAAN,OAAA,EAAa,0CAA2C,aAAa;EAAA;AAAA,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_dynamic","_interopRequireDefault","require","_getRequireWildcardCache","e","WeakMap","r","t","_interopRequireWildcard","__esModule","_typeof2","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_default","exports","dynamic","Promise","resolve","then"],"sources":["../../../src/components/LazyImage/index.js"],"sourcesContent":["import dynamic from 'next/dynamic';\n\nexport default dynamic(() => import(/* webpackChunkName: \"blazePbLazyImage\" */ './LazyImage'));\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,QAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAmC,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,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3
+ require("core-js/modules/es.object.keys.js");
3
4
  require("core-js/modules/es.symbol.js");
4
5
  require("core-js/modules/es.array.filter.js");
6
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
5
7
  require("core-js/modules/es.array.for-each.js");
8
+ require("core-js/modules/web.dom-collections.for-each.js");
9
+ require("core-js/modules/es.object.get-own-property-descriptors.js");
6
10
  require("core-js/modules/es.object.define-properties.js");
7
11
  require("core-js/modules/es.object.define-property.js");
8
- require("core-js/modules/es.object.get-own-property-descriptor.js");
9
- require("core-js/modules/es.object.get-own-property-descriptors.js");
10
- require("core-js/modules/es.object.keys.js");
11
- require("core-js/modules/web.dom-collections.for-each.js");
12
12
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
13
13
  Object.defineProperty(exports, "__esModule", {
14
14
  value: true
@@ -17,9 +17,9 @@ exports["default"] = void 0;
17
17
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
18
18
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
19
19
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
20
+ require("core-js/modules/es.array.sort.js");
20
21
  require("core-js/modules/es.array.map.js");
21
22
  require("core-js/modules/es.array.reduce.js");
22
- require("core-js/modules/es.array.sort.js");
23
23
  require("core-js/modules/es.object.to-string.js");
24
24
  require("core-js/modules/es.object.values.js");
25
25
  var _react = _interopRequireDefault(require("react"));
@@ -1 +1 @@
1
- {"version":3,"file":"ListBuilder.js","names":["_react","_interopRequireDefault","require","_propTypes","_client","_helpers","_ListRender","_query","_helpers2","_helpers3","_constants","_constants2","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","ListBuilder","props","mainSchemas","isCard","isAZ","inheritedFilters","paginationType","entities","itemId","parent","itemsPerPage","itemsToDisplay","limit","propsToDisplay","offset","entityData","sortby","sort","paginationIndex","omitWrappers","operator","filterOperator","currentSchema","filterEntitySchema","requiredSchema","searchValues","azFilter","sortProperties","itemListIds","_entities","_slicedToArray2","entity","isInfinite","INFINITE","listComponent","getListComponent","propsToDisplayValues","checkPropsToUse","entitiesTypes","map","ent","getEntityData","graphqlEntityMap","reduce","acc","entityType","docTypes","_ref","type","docType","entityTypes","_ref2","eType","entityFields","buildPropsQuery","itemsToDisplayToUse","limitToUse","shouldApplyDefaultSort","itemsPerPageToUse","getItemsPerPageToUse","initialOffset","getCurrentOffset","fields","buildQueryFields","action","getSearchPublishedContent","actionKey","SEARCH_PUBLISHED_CONTENT","updatedFilterBy","getUpdatedFilterBy","filterValues","buildSetFilters","filterBy","_filterEntitySchema$r","relations","stringProps","getStringTypeProps","values","filterData","azRawQuery","buildRawQuery","id","shouldApplySort","azOptions","shouldReturnAggs","filterProps","propsForVariables","azVariables","getGenericRenderVariables","rawQuery","azAction","RAW_RESULTS","_useQuery","useQuery","variables","skip","data","error","loading","message","listAggregations","sortAggs","updatedAggregations","buildAzAggregations","createElement","_extends2","propTypes","PropTypes","array","isRequired","object","bool","number","string","defaultProps","_default","exports"],"sources":["../../../src/components/List/ListBuilder.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { useQuery } from '@apollo/client';\nimport { getStringTypeProps } from '@blaze-cms/utils/src/helpers';\nimport ListRender from './ListRender';\nimport { getSearchPublishedContent } from '../../application/query';\nimport {\n buildRawQuery,\n buildQueryFields,\n buildSetFilters,\n getGenericRenderVariables,\n getEntityData,\n getCurrentOffset,\n getUpdatedFilterBy,\n checkPropsToUse,\n buildPropsQuery\n} from '../../helpers';\nimport { sortAggs, getItemsPerPageToUse, buildAzAggregations, getListComponent } from './helpers';\nimport { SEARCH_PUBLISHED_CONTENT, INFINITE } from '../../constants';\nimport { RAW_RESULTS } from './constants';\n\nconst ListBuilder = props => {\n const {\n mainSchemas,\n isCard,\n isAZ,\n inheritedFilters,\n paginationType,\n entities,\n parent: { itemId },\n itemsPerPage,\n itemsToDisplay,\n limit,\n propsToDisplay,\n offset,\n entityData,\n sortby,\n sort,\n paginationIndex,\n omitWrappers,\n operator,\n filterOperator,\n currentSchema,\n filterEntitySchema,\n requiredSchema,\n searchValues,\n azFilter,\n sortProperties,\n itemListIds\n } = props;\n\n const [entity] = entities;\n const isInfinite = paginationType === INFINITE;\n const listComponent = getListComponent(isCard, paginationType);\n const propsToDisplayValues = checkPropsToUse(propsToDisplay);\n const entitiesTypes = entities.map(ent => getEntityData(ent, mainSchemas[ent]));\n const graphqlEntityMap = entitiesTypes.reduce(\n (acc, entityType) => ({ ...acc, [entityType.entityType]: entityType.entity }),\n {}\n );\n const docTypes = entitiesTypes.map(({ docType: type }) => type);\n const entityTypes = entitiesTypes.map(({ entityType: eType }) => eType);\n const entityFields = buildPropsQuery(filterEntitySchema, propsToDisplayValues, props) || '';\n const itemsToDisplayToUse = itemListIds || itemsToDisplay;\n const limitToUse = limit || itemsToDisplayToUse.length;\n const shouldApplyDefaultSort = !sortProperties || !sortProperties.length;\n const itemsPerPageToUse = getItemsPerPageToUse(itemsPerPage, limitToUse);\n const initialOffset = getCurrentOffset(offset, itemsPerPageToUse, paginationIndex, limitToUse);\n const fields = buildQueryFields(entityFields, entityTypes, !isCard);\n const action = getSearchPublishedContent(fields);\n const actionKey = SEARCH_PUBLISHED_CONTENT;\n const updatedFilterBy = getUpdatedFilterBy(\n inheritedFilters,\n entityData,\n currentSchema,\n filterEntitySchema,\n itemId,\n props\n );\n\n const filterValues =\n updatedFilterBy && updatedFilterBy.length\n ? buildSetFilters({ ...props, filterBy: updatedFilterBy })\n : buildSetFilters({ ...props });\n\n const { relations = [] } = filterEntitySchema;\n const stringProps = getStringTypeProps(entity, relations, Object.values(requiredSchema));\n const filterData = {\n filterValues,\n filterOperator,\n relations,\n stringProps\n };\n const azRawQuery = buildRawQuery({\n docType: docTypes,\n operator,\n searchValues,\n filterData,\n id: itemId,\n itemsToDisplay: itemsToDisplayToUse,\n shouldApplySort: shouldApplyDefaultSort,\n azOptions: { shouldReturnAggs: true, isAZ, sortProperties }\n });\n\n const filterProps = {\n ...props,\n limit: itemsPerPageToUse,\n offset: initialOffset,\n sort,\n sortby,\n sortProperties\n };\n\n const propsForVariables = {\n relations,\n filterProps,\n stringProps\n };\n\n const azVariables = getGenericRenderVariables({\n ...propsForVariables,\n rawQuery: azRawQuery\n });\n\n const azAction = getSearchPublishedContent(RAW_RESULTS);\n const { data, error, loading } = useQuery(azAction, {\n variables: azVariables,\n skip: !isAZ\n });\n if (loading) return '';\n if (error) return error.message;\n\n const listAggregations = isAZ ? sortAggs(data) : [];\n const updatedAggregations = buildAzAggregations(listAggregations);\n\n const rawQuery = buildRawQuery({\n docType: docTypes,\n operator,\n searchValues,\n filterData: {\n ...filterData,\n azFilter\n },\n id: itemId,\n itemsToDisplay: itemsToDisplayToUse,\n shouldApplySort: shouldApplyDefaultSort,\n azOptions: { shouldReturnAggs: false, isAZ, sortProperties },\n sortProperties\n });\n\n const variables = getGenericRenderVariables({\n ...propsForVariables,\n rawQuery\n });\n\n return (\n <ListRender\n variables={variables}\n isInfinite={isInfinite}\n initialOffset={initialOffset}\n actionKey={actionKey}\n limitToUse={limitToUse}\n itemsPerPageToUse={itemsPerPageToUse}\n action={action}\n omitWrappers={omitWrappers}\n listComponent={listComponent}\n listAggregations={updatedAggregations}\n isAZ={isAZ}\n azFilter={azFilter}\n graphqlEntityMap={graphqlEntityMap}\n {...props}\n itemsToDisplay={itemsToDisplayToUse}\n />\n );\n};\n\nListBuilder.propTypes = {\n entities: PropTypes.array.isRequired,\n mainSchemas: PropTypes.object.isRequired,\n isCard: PropTypes.bool.isRequired,\n isAZ: PropTypes.bool.isRequired,\n parent: PropTypes.object.isRequired,\n itemsPerPage: PropTypes.number.isRequired,\n paginationIndex: PropTypes.number.isRequired,\n propsToDisplay: PropTypes.array.isRequired,\n currentSchema: PropTypes.object.isRequired,\n filterEntitySchema: PropTypes.object.isRequired,\n requiredSchema: PropTypes.object.isRequired,\n searchValues: PropTypes.object.isRequired,\n inheritedFilters: PropTypes.array,\n entityData: PropTypes.object,\n itemsToDisplay: PropTypes.array,\n limit: PropTypes.number,\n omitWrappers: PropTypes.bool,\n offset: PropTypes.number,\n sortby: PropTypes.array,\n sort: PropTypes.string,\n operator: PropTypes.string.isRequired,\n filterOperator: PropTypes.string.isRequired,\n paginationType: PropTypes.string,\n azFilter: PropTypes.string,\n sortProperties: PropTypes.array,\n itemListIds: PropTypes.array\n};\n\nListBuilder.defaultProps = {\n sort: '',\n sortby: [],\n entityData: {},\n itemsToDisplay: [],\n itemListIds: null,\n limit: 0,\n omitWrappers: false,\n offset: 0,\n paginationType: 'infinite',\n inheritedFilters: [],\n azFilter: '',\n sortProperties: []\n};\n\nexport default ListBuilder;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;AAWA,IAAAO,SAAA,GAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAR,OAAA;AACA,IAAAS,WAAA,GAAAT,OAAA;AAA0C,SAAAU,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,MAAA,WAAAN,CAAA,WAAAE,MAAA,CAAAK,wBAAA,CAAAR,CAAA,EAAAC,CAAA,EAAAQ,UAAA,OAA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AAM;EAC5BnG,cAAc,EAAEgG,qBAAS,CAACC,KAAK;EAC/BhG,KAAK,EAAE+F,qBAAS,CAACK,MAAM;EACvB7F,YAAY,EAAEwF,qBAAS,CAACI,IAAI;EAC5BjG,MAAM,EAAE6F,qBAAS,CAACK,MAAM;EACxBhG,MAAM,EAAE2F,qBAAS,CAACC,KAAK;EACvB3F,IAAI,EAAE0F,qBAAS,CAACM,MAAM;EACtB7F,QAAQ,EAAEuF,qBAAS,CAACM,MAAM,CAACJ,UAAU;EACrCxF,cAAc,EAAEsF,qBAAS,CAACM,MAAM,CAACJ,UAAU;EAC3CvG,cAAc,EAAEqG,qBAAS,CAACM,MAAM;EAChCvF,QAAQ,EAAEiF,qBAAS,CAACM,MAAM;EAC1BtF,cAAc,EAAEgF,qBAAS,CAACC,KAAK;EAC/BhF,WAAW,EAAE+E,qBAAS,CAACC;AACzB,CAAC;AAED5G,WAAW,CAACkH,YAAY,GAAG;EACzBjG,IAAI,EAAE,EAAE;EACRD,MAAM,EAAE,EAAE;EACVD,UAAU,EAAE,CAAC,CAAC;EACdJ,cAAc,EAAE,EAAE;EAClBiB,WAAW,EAAE,IAAI;EACjBhB,KAAK,EAAE,CAAC;EACRO,YAAY,EAAE,KAAK;EACnBL,MAAM,EAAE,CAAC;EACTR,cAAc,EAAE,UAAU;EAC1BD,gBAAgB,EAAE,EAAE;EACpBqB,QAAQ,EAAE,EAAE;EACZC,cAAc,EAAE;AAClB,CAAC;AAAC,IAAAwF,QAAA,GAAAC,OAAA,cAEapH,WAAW","ignoreList":[]}
1
+ {"version":3,"file":"ListBuilder.js","names":["_react","_interopRequireDefault","require","_propTypes","_client","_helpers","_ListRender","_query","_helpers2","_helpers3","_constants","_constants2","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","ListBuilder","props","mainSchemas","isCard","isAZ","inheritedFilters","paginationType","entities","itemId","parent","itemsPerPage","itemsToDisplay","limit","propsToDisplay","offset","entityData","sortby","sort","paginationIndex","omitWrappers","operator","filterOperator","currentSchema","filterEntitySchema","requiredSchema","searchValues","azFilter","sortProperties","itemListIds","_entities","_slicedToArray2","entity","isInfinite","INFINITE","listComponent","getListComponent","propsToDisplayValues","checkPropsToUse","entitiesTypes","map","ent","getEntityData","graphqlEntityMap","reduce","acc","entityType","docTypes","_ref","type","docType","entityTypes","_ref2","eType","entityFields","buildPropsQuery","itemsToDisplayToUse","limitToUse","shouldApplyDefaultSort","itemsPerPageToUse","getItemsPerPageToUse","initialOffset","getCurrentOffset","fields","buildQueryFields","action","getSearchPublishedContent","actionKey","SEARCH_PUBLISHED_CONTENT","updatedFilterBy","getUpdatedFilterBy","filterValues","buildSetFilters","filterBy","_filterEntitySchema$r","relations","stringProps","getStringTypeProps","values","filterData","azRawQuery","buildRawQuery","id","shouldApplySort","azOptions","shouldReturnAggs","filterProps","propsForVariables","azVariables","getGenericRenderVariables","rawQuery","azAction","RAW_RESULTS","_useQuery","useQuery","variables","skip","data","error","loading","message","listAggregations","sortAggs","updatedAggregations","buildAzAggregations","createElement","_extends2","propTypes","PropTypes","array","isRequired","object","bool","number","string","defaultProps","_default","exports"],"sources":["../../../src/components/List/ListBuilder.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { useQuery } from '@apollo/client';\nimport { getStringTypeProps } from '@blaze-cms/utils/src/helpers';\nimport ListRender from './ListRender';\nimport { getSearchPublishedContent } from '../../application/query';\nimport {\n buildRawQuery,\n buildQueryFields,\n buildSetFilters,\n getGenericRenderVariables,\n getEntityData,\n getCurrentOffset,\n getUpdatedFilterBy,\n checkPropsToUse,\n buildPropsQuery\n} from '../../helpers';\nimport { sortAggs, getItemsPerPageToUse, buildAzAggregations, getListComponent } from './helpers';\nimport { SEARCH_PUBLISHED_CONTENT, INFINITE } from '../../constants';\nimport { RAW_RESULTS } from './constants';\n\nconst ListBuilder = props => {\n const {\n mainSchemas,\n isCard,\n isAZ,\n inheritedFilters,\n paginationType,\n entities,\n parent: { itemId },\n itemsPerPage,\n itemsToDisplay,\n limit,\n propsToDisplay,\n offset,\n entityData,\n sortby,\n sort,\n paginationIndex,\n omitWrappers,\n operator,\n filterOperator,\n currentSchema,\n filterEntitySchema,\n requiredSchema,\n searchValues,\n azFilter,\n sortProperties,\n itemListIds\n } = props;\n\n const [entity] = entities;\n const isInfinite = paginationType === INFINITE;\n const listComponent = getListComponent(isCard, paginationType);\n const propsToDisplayValues = checkPropsToUse(propsToDisplay);\n const entitiesTypes = entities.map(ent => getEntityData(ent, mainSchemas[ent]));\n const graphqlEntityMap = entitiesTypes.reduce(\n (acc, entityType) => ({ ...acc, [entityType.entityType]: entityType.entity }),\n {}\n );\n const docTypes = entitiesTypes.map(({ docType: type }) => type);\n const entityTypes = entitiesTypes.map(({ entityType: eType }) => eType);\n const entityFields = buildPropsQuery(filterEntitySchema, propsToDisplayValues, props) || '';\n const itemsToDisplayToUse = itemListIds || itemsToDisplay;\n const limitToUse = limit || itemsToDisplayToUse.length;\n const shouldApplyDefaultSort = !sortProperties || !sortProperties.length;\n const itemsPerPageToUse = getItemsPerPageToUse(itemsPerPage, limitToUse);\n const initialOffset = getCurrentOffset(offset, itemsPerPageToUse, paginationIndex, limitToUse);\n const fields = buildQueryFields(entityFields, entityTypes, !isCard);\n const action = getSearchPublishedContent(fields);\n const actionKey = SEARCH_PUBLISHED_CONTENT;\n const updatedFilterBy = getUpdatedFilterBy(\n inheritedFilters,\n entityData,\n currentSchema,\n filterEntitySchema,\n itemId,\n props\n );\n\n const filterValues =\n updatedFilterBy && updatedFilterBy.length\n ? buildSetFilters({ ...props, filterBy: updatedFilterBy })\n : buildSetFilters({ ...props });\n\n const { relations = [] } = filterEntitySchema;\n const stringProps = getStringTypeProps(entity, relations, Object.values(requiredSchema));\n const filterData = {\n filterValues,\n filterOperator,\n relations,\n stringProps\n };\n const azRawQuery = buildRawQuery({\n docType: docTypes,\n operator,\n searchValues,\n filterData,\n id: itemId,\n itemsToDisplay: itemsToDisplayToUse,\n shouldApplySort: shouldApplyDefaultSort,\n azOptions: { shouldReturnAggs: true, isAZ, sortProperties }\n });\n\n const filterProps = {\n ...props,\n limit: itemsPerPageToUse,\n offset: initialOffset,\n sort,\n sortby,\n sortProperties\n };\n\n const propsForVariables = {\n relations,\n filterProps,\n stringProps\n };\n\n const azVariables = getGenericRenderVariables({\n ...propsForVariables,\n rawQuery: azRawQuery\n });\n\n const azAction = getSearchPublishedContent(RAW_RESULTS);\n const { data, error, loading } = useQuery(azAction, {\n variables: azVariables,\n skip: !isAZ\n });\n if (loading) return '';\n if (error) return error.message;\n\n const listAggregations = isAZ ? sortAggs(data) : [];\n const updatedAggregations = buildAzAggregations(listAggregations);\n\n const rawQuery = buildRawQuery({\n docType: docTypes,\n operator,\n searchValues,\n filterData: {\n ...filterData,\n azFilter\n },\n id: itemId,\n itemsToDisplay: itemsToDisplayToUse,\n shouldApplySort: shouldApplyDefaultSort,\n azOptions: { shouldReturnAggs: false, isAZ, sortProperties },\n sortProperties\n });\n\n const variables = getGenericRenderVariables({\n ...propsForVariables,\n rawQuery\n });\n\n return (\n <ListRender\n variables={variables}\n isInfinite={isInfinite}\n initialOffset={initialOffset}\n actionKey={actionKey}\n limitToUse={limitToUse}\n itemsPerPageToUse={itemsPerPageToUse}\n action={action}\n omitWrappers={omitWrappers}\n listComponent={listComponent}\n listAggregations={updatedAggregations}\n isAZ={isAZ}\n azFilter={azFilter}\n graphqlEntityMap={graphqlEntityMap}\n {...props}\n itemsToDisplay={itemsToDisplayToUse}\n />\n );\n};\n\nListBuilder.propTypes = {\n entities: PropTypes.array.isRequired,\n mainSchemas: PropTypes.object.isRequired,\n isCard: PropTypes.bool.isRequired,\n isAZ: PropTypes.bool.isRequired,\n parent: PropTypes.object.isRequired,\n itemsPerPage: PropTypes.number.isRequired,\n paginationIndex: PropTypes.number.isRequired,\n propsToDisplay: PropTypes.array.isRequired,\n currentSchema: PropTypes.object.isRequired,\n filterEntitySchema: PropTypes.object.isRequired,\n requiredSchema: PropTypes.object.isRequired,\n searchValues: PropTypes.object.isRequired,\n inheritedFilters: PropTypes.array,\n entityData: PropTypes.object,\n itemsToDisplay: PropTypes.array,\n limit: PropTypes.number,\n omitWrappers: PropTypes.bool,\n offset: PropTypes.number,\n sortby: PropTypes.array,\n sort: PropTypes.string,\n operator: PropTypes.string.isRequired,\n filterOperator: PropTypes.string.isRequired,\n paginationType: PropTypes.string,\n azFilter: PropTypes.string,\n sortProperties: PropTypes.array,\n itemListIds: PropTypes.array\n};\n\nListBuilder.defaultProps = {\n sort: '',\n sortby: [],\n entityData: {},\n itemsToDisplay: [],\n itemListIds: null,\n limit: 0,\n omitWrappers: false,\n offset: 0,\n paginationType: 'infinite',\n inheritedFilters: [],\n azFilter: '',\n sortProperties: []\n};\n\nexport default ListBuilder;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;AAWA,IAAAO,SAAA,GAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAR,OAAA;AACA,IAAAS,WAAA,GAAAT,OAAA;AAA0C,SAAAU,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,MAAA,WAAAN,CAAA,WAAAE,MAAA,CAAAK,wBAA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ACC,KAAK;EACjC7F,UAAU,EAAE4F,qBAAS,CAACG,MAAM;EAC5BnG,cAAc,EAAEgG,qBAAS,CAACC,KAAK;EAC/BhG,KAAK,EAAE+F,qBAAS,CAACK,MAAM;EACvB7F,YAAY,EAAEwF,qBAAS,CAACI,IAAI;EAC5BjG,MAAM,EAAE6F,qBAAS,CAACK,MAAM;EACxBhG,MAAM,EAAE2F,qBAAS,CAACC,KAAK;EACvB3F,IAAI,EAAE0F,qBAAS,CAACM,MAAM;EACtB7F,QAAQ,EAAEuF,qBAAS,CAACM,MAAM,CAACJ,UAAU;EACrCxF,cAAc,EAAEsF,qBAAS,CAACM,MAAM,CAACJ,UAAU;EAC3CvG,cAAc,EAAEqG,qBAAS,CAACM,MAAM;EAChCvF,QAAQ,EAAEiF,qBAAS,CAACM,MAAM;EAC1BtF,cAAc,EAAEgF,qBAAS,CAACC,KAAK;EAC/BhF,WAAW,EAAE+E,qBAAS,CAACC;AACzB,CAAC;AAED5G,WAAW,CAACkH,YAAY,GAAG;EACzBjG,IAAI,EAAE,EAAE;EACRD,MAAM,EAAE,EAAE;EACVD,UAAU,EAAE,CAAC,CAAC;EACdJ,cAAc,EAAE,EAAE;EAClBiB,WAAW,EAAE,IAAI;EACjBhB,KAAK,EAAE,CAAC;EACRO,YAAY,EAAE,KAAK;EACnBL,MAAM,EAAE,CAAC;EACTR,cAAc,EAAE,UAAU;EAC1BD,gBAAgB,EAAE,EAAE;EACpBqB,QAAQ,EAAE,EAAE;EACZC,cAAc,EAAE;AAClB,CAAC;AAAC,IAAAwF,QAAA,GAAAC,OAAA,cAEapH,WAAW"}
@@ -1,18 +1,18 @@
1
1
  "use strict";
2
2
 
3
+ require("core-js/modules/es.object.keys.js");
3
4
  require("core-js/modules/es.symbol.js");
4
5
  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");
5
8
  require("core-js/modules/es.array.for-each.js");
6
- require("core-js/modules/es.array.iterator.js");
9
+ require("core-js/modules/web.dom-collections.for-each.js");
10
+ require("core-js/modules/es.object.get-own-property-descriptors.js");
7
11
  require("core-js/modules/es.object.define-properties.js");
8
12
  require("core-js/modules/es.object.define-property.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");
13
+ require("core-js/modules/es.array.iterator.js");
13
14
  require("core-js/modules/es.string.iterator.js");
14
15
  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");
@@ -23,13 +23,13 @@ exports["default"] = void 0;
23
23
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
24
24
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
25
25
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
26
- require("core-js/modules/es.array.concat.js");
27
- require("core-js/modules/es.array.includes.js");
28
- require("core-js/modules/es.array.sort.js");
29
26
  require("core-js/modules/es.function.name.js");
27
+ require("core-js/modules/es.array.sort.js");
30
28
  require("core-js/modules/es.regexp.exec.js");
31
- require("core-js/modules/es.string.includes.js");
32
29
  require("core-js/modules/es.string.replace.js");
30
+ require("core-js/modules/es.array.concat.js");
31
+ require("core-js/modules/es.array.includes.js");
32
+ require("core-js/modules/es.string.includes.js");
33
33
  var _react = _interopRequireWildcard(require("react"));
34
34
  var _client = require("@apollo/client");
35
35
  var _queryString = require("query-string");
@@ -1 +1 @@
1
- {"version":3,"file":"ListFactory.js","names":["_react","_interopRequireWildcard","require","_client","_queryString","_propTypes","_interopRequireDefault","_router","_nextjsComponents","_query","_ListBuilder","_constants","_helpers","_helpers2","_helpers3","_hooks","_constants2","_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","ListFactory","props","legacyEntity","entity","entities","parent","name","filterByProperty","filterBy","omitWrappers","type","defaultSortBy","sortby","defaultSort","sort","allSearchFilters","filterOperator","operator","sortProperties","itemListName","_useContext","useContext","MainContext","isPreview","router","useRouter","asPath","parsedQuery","replace","_getListSpecificSearc","getListSpecificSearchFilter","_getListSpecificSearc2","_slicedToArray2","searchFilter","hasListSpecificFilters","_parseUrl","parseUrl","query","url","_parseUrl$query","_parseUrl$query2","queryItemListId","itemListId","updatedQuery","getListQuery","isTextSearchFilterApplied","search_term","getSearchFilterType","TEXT_SEARCH","querySort","querySortBy","_getSortProps","getSortProps","sortbyFilters","updatedSortProperties","getItemListId","parentEntity","itemEntity","parentId","itemId","updatedParentEntity","getUnpublishedEntityName","paginationIndex","getPaginationIndex","azFilter","getAzQueryFilter","entitiesToUse","_entitiesToUse","filterEntity","_useGetEntitySchemasA","useGetEntitySchemasAsObj","concat","_toConsumableArray2","_useGetEntitySchemasA2","data","mainSchemas","schemasLoading","loading","schemasError","error","_mainSchemas$updatedP","currentSchema","_mainSchemas$filterEn","filterEntitySchema","_useGetEntitySchemasA3","getRequiredSchemas","_useGetEntitySchemasA4","requiredSchema","requiredSchemaLoading","requiredSchemaError","inheritedFilters","getInheritedFilters","queryProps","getQueryProps","_ref","_ref$actions","actions","getAction","getPublished","_useQuery","useQuery","generateSingleItemQuery","variables","id","skip","ID","_useQuery$data","_useQuery$data2","_useQuery$data2$entit","entityData","itemQueryError","itemQueryLoading","_useQuery2","getItemList","_useQuery2$data","itemListData","itemListError","itemListLoading","hasRequiredItemListDetails","errorsToCheck","_checkForError","checkForError","hasErr","errMsg","itemListIds","getItemListIds","isCard","includes","FULL","isAZ","AZ_LIST_TYPE","genericProps","getGenericProps","_getSearchFilterType","_getSearchFilterType2","textFilter","shouldApplyTextFilter","propsToDisplay","getElasticsearchOperator","AND_OPERATOR","valuesText","buildSearchValuesText","_getQueryFilters","getQueryFilters","valuesAnd","valuesOr","searchValues","searchValuesText","searchValuesCheckboxSelectRange","searchValuesCheckboxOr","listProps","createElement","propTypes","PropTypes","object","isRequired","string","array","bool","defaultProps","AND","_default","exports"],"sources":["../../../src/components/List/ListFactory.js"],"sourcesContent":["import React, { useContext } from 'react';\nimport { useQuery } from '@apollo/client';\nimport { parseUrl } from 'query-string';\nimport PropTypes from 'prop-types';\nimport { useRouter } from 'next/router';\nimport { MainContext } from '@blaze-cms/nextjs-components';\nimport { generateSingleItemQuery, getItemList } from '../../application/query';\nimport ListBuilder from './ListBuilder';\nimport { AZ_LIST_TYPE } from './constants';\nimport {\n getAzQueryFilter,\n getSortProps,\n hasRequiredItemListDetails,\n getListSpecificSearchFilter,\n getListQuery\n} from './helpers';\nimport {\n getGenericProps,\n getRequiredSchemas,\n checkForError,\n getUnpublishedEntityName,\n getPaginationIndex,\n getSearchFilterType,\n getElasticsearchOperator,\n buildSearchValuesText,\n getQueryFilters,\n getInheritedFilters,\n getQueryProps\n} from '../../helpers';\nimport { getItemListId, getItemListIds } from '../ItemList/helpers';\nimport { useGetEntitySchemasAsObj } from '../../hooks';\nimport { AND_OPERATOR, TEXT_SEARCH, ID, AND, FULL } from '../../constants';\n\nconst ListFactory = props => {\n const {\n entity: legacyEntity,\n entities,\n parent,\n name,\n filterByProperty,\n filterBy,\n omitWrappers,\n type,\n sortby: defaultSortBy,\n sort: defaultSort,\n allSearchFilters,\n operator: filterOperator,\n sortProperties,\n itemListName\n } = props;\n const { isPreview } = useContext(MainContext);\n const router = useRouter();\n const { asPath } = router;\n const parsedQuery = asPath.replace(/%5D/g, ']').replace(/%5B/g, '[');\n const [searchFilter, hasListSpecificFilters] = getListSpecificSearchFilter(\n allSearchFilters,\n name\n );\n const { query, url, query: { itemListId: queryItemListId } = {} } = parseUrl(parsedQuery);\n const updatedQuery = getListQuery(query, hasListSpecificFilters, name);\n const isTextSearchFilterApplied = !!(\n updatedQuery.search_term &&\n searchFilter &&\n getSearchFilterType(searchFilter, TEXT_SEARCH).length\n );\n\n const { sort: querySort, sortby: querySortBy } = updatedQuery;\n\n const { sortbyFilters, updatedSortProperties } = getSortProps({\n querySort,\n sortProperties,\n defaultSort,\n querySortBy,\n defaultSortBy,\n isTextSearchFilterApplied\n });\n\n const itemListId = getItemListId(itemListName, queryItemListId);\n const { itemEntity: parentEntity, itemId: parentId } = parent;\n const updatedParentEntity = getUnpublishedEntityName(parentEntity);\n const paginationIndex = getPaginationIndex(updatedQuery, name);\n const azFilter = getAzQueryFilter(updatedQuery, name);\n\n const entitiesToUse = entities && entities.length ? entities : [legacyEntity];\n const [filterEntity] = entitiesToUse;\n const {\n data: mainSchemas = {},\n loading: schemasLoading,\n error: schemasError\n } = useGetEntitySchemasAsObj([updatedParentEntity, ...entitiesToUse]);\n\n const {\n [updatedParentEntity]: currentSchema = {},\n [filterEntity]: filterEntitySchema = {}\n } = mainSchemas;\n\n const {\n data: requiredSchema = {},\n loading: requiredSchemaLoading,\n error: requiredSchemaError\n } = useGetEntitySchemasAsObj(\n getRequiredSchemas([...filterByProperty, ...sortbyFilters], filterEntitySchema),\n schemasLoading\n );\n const inheritedFilters = getInheritedFilters(filterBy, filterByProperty);\n const queryProps = getQueryProps(inheritedFilters, currentSchema, filterEntitySchema);\n const { actions = {} } = currentSchema || {};\n const getAction = isPreview ? actions.get : actions.getPublished;\n\n const {\n data: { entityData = {} } = {},\n error: itemQueryError,\n loading: itemQueryLoading\n } = useQuery(generateSingleItemQuery(getAction, queryProps), {\n variables: { id: parentId },\n skip: schemasLoading || (!inheritedFilters.length && queryProps === ID)\n });\n\n const { data: itemListData = {}, error: itemListError, loading: itemListLoading } = useQuery(\n getItemList,\n {\n variables: { id: itemListId },\n skip: !itemListId\n }\n );\n\n if (!hasRequiredItemListDetails({ itemListName, router, itemListId, queryItemListId })) return '';\n\n const errorsToCheck = [schemasError, requiredSchemaError, itemQueryError, itemListError];\n const { hasErr, errMsg } = checkForError(errorsToCheck);\n\n if (requiredSchemaLoading || schemasLoading || itemQueryLoading || itemListLoading) return '';\n if (hasErr) return errMsg;\n\n const itemListIds = getItemListIds(itemListData);\n const isCard = !type.includes(FULL);\n const isAZ = type.includes(AZ_LIST_TYPE);\n const genericProps = getGenericProps(props);\n const [textFilter] = getSearchFilterType(searchFilter, TEXT_SEARCH);\n const shouldApplyTextFilter = textFilter && textFilter.propsToDisplay.length;\n const operator = shouldApplyTextFilter ? getElasticsearchOperator(textFilter) : AND_OPERATOR;\n const valuesText = shouldApplyTextFilter\n ? buildSearchValuesText(textFilter, updatedQuery, name)\n : [];\n const { valuesAnd, valuesOr } = getQueryFilters(searchFilter, updatedQuery, name);\n\n const searchValues = {\n searchValuesText: valuesText,\n searchValuesCheckboxSelectRange: valuesAnd,\n searchValuesCheckboxOr: valuesOr\n };\n const listProps = {\n ...props,\n ...genericProps,\n query: updatedQuery,\n url,\n isCard,\n isAZ,\n router,\n sort: null,\n sortby: null,\n sortProperties: updatedSortProperties,\n azFilter,\n searchValues,\n filterEntitySchema,\n requiredSchema,\n currentSchema,\n omitWrappers,\n operator,\n paginationIndex,\n entityData,\n inheritedFilters,\n filterOperator,\n itemListIds,\n entities: entitiesToUse,\n mainSchemas\n };\n\n return <ListBuilder {...listProps} />;\n};\n\nListFactory.propTypes = {\n parent: PropTypes.object.isRequired,\n type: PropTypes.string.isRequired,\n entity: PropTypes.string,\n entities: PropTypes.array,\n filterBy: PropTypes.array,\n filterByProperty: PropTypes.array,\n omitWrappers: PropTypes.bool,\n operator: PropTypes.string,\n name: PropTypes.string,\n sortby: PropTypes.array,\n sort: PropTypes.string,\n allSearchFilters: PropTypes.array,\n sortProperties: PropTypes.array,\n itemListName: PropTypes.string\n};\n\nListFactory.defaultProps = {\n entity: '',\n entities: [],\n filterBy: [],\n filterByProperty: [],\n omitWrappers: false,\n name: '',\n sortby: [],\n sortProperties: [],\n sort: '',\n operator: AND,\n allSearchFilters: [],\n itemListName: ''\n};\n\nexport default ListFactory;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,iBAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,YAAA,GAAAJ,sBAAA,CAAAJ,OAAA;AACA,IAAAS,UAAA,GAAAT,OAAA;AACA,IAAAU,QAAA,GAAAV,OAAA;AAOA,IAAAW,SAAA,GAAAX,OAAA;AAaA,IAAAY,SAAA,GAAAZ,OAAA;AACA,IAAAa,MAAA,GAAAb,OAAA;AACA,IAAAc,WAAA,GAAAd,OAAA;AAA2E,SAAAe,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,SAAAjB,wBAAAiB,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,CAAAP,CAAA,OAAAQ,CAAA,KAAA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,YAAA4M,aAAA,CAAClM,YAAA,WAAW,EAAKiM,SAAY,CAAC;AACvC,CAAC;AAEDtJ,WAAW,CAACwJ,SAAS,GAAG;EACtBnJ,MAAM,EAAEoJ,qBAAS,CAACC,MAAM,CAACC,UAAU;EACnCjJ,IAAI,EAAE+I,qBAAS,CAACG,MAAM,CAACD,UAAU;EACjCxJ,MAAM,EAAEsJ,qBAAS,CAACG,MAAM;EACxBxJ,QAAQ,EAAEqJ,qBAAS,CAACI,KAAK;EACzBrJ,QAAQ,EAAEiJ,qBAAS,CAACI,KAAK;EACzBtJ,gBAAgB,EAAEkJ,qBAAS,CAACI,KAAK;EACjCpJ,YAAY,EAAEgJ,qBAAS,CAACK,IAAI;EAC5B7I,QAAQ,EAAEwI,qBAAS,CAACG,MAAM;EAC1BtJ,IAAI,EAAEmJ,qBAAS,CAACG,MAAM;EACtBhJ,MAAM,EAAE6I,qBAAS,CAACI,KAAK;EACvB/I,IAAI,EAAE2I,qBAAS,CAACG,MAAM;EACtB7I,gBAAgB,EAAE0I,qBAAS,CAACI,KAAK;EACjC3I,cAAc,EAAEuI,qBAAS,CAACI,KAAK;EAC/B1I,YAAY,EAAEsI,qBAAS,CAACG;AAC1B,CAAC;AAED5J,WAAW,CAAC+J,YAAY,GAAG;EACzB5J,MAAM,EAAE,EAAE;EACVC,QAAQ,EAAE,EAAE;EACZI,QAAQ,EAAE,EAAE;EACZD,gBAAgB,EAAE,EAAE;EACpBE,YAAY,EAAE,KAAK;EACnBH,IAAI,EAAE,EAAE;EACRM,MAAM,EAAE,EAAE;EACVM,cAAc,EAAE,EAAE;EAClBJ,IAAI,EAAE,EAAE;EACRG,QAAQ,EAAE+I,eAAG;EACbjJ,gBAAgB,EAAE,EAAE;EACpBI,YAAY,EAAE;AAChB,CAAC;AAAC,IAAA8I,QAAA,GAAAC,OAAA,cAEalK,WAAW","ignoreList":[]}
1
+ {"version":3,"file":"ListFactory.js","names":["_react","_interopRequireWildcard","require","_client","_queryString","_propTypes","_interopRequireDefault","_router","_nextjsComponents","_query","_ListBuilder","_constants","_helpers","_helpers2","_helpers3","_hooks","_constants2","_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","ListFactory","props","legacyEntity","entity","entities","parent","name","filterByProperty","filterBy","omitWrappers","type","defaultSortBy","sortby","defaultSort","sort","allSearchFilters","filterOperator","operator","sortProperties","itemListName","_useContext","useContext","MainContext","isPreview","router","useRouter","asPath","parsedQuery","replace","_getListSpecificSearc","getListSpecificSearchFilter","_getListSpecificSearc2","_slicedToArray2","searchFilter","hasListSpecificFilters","_parseUrl","parseUrl","query","url","_parseUrl$query","_parseUrl$query2","queryItemListId","itemListId","updatedQuery","getListQuery","isTextSearchFilterApplied","search_term","getSearchFilterType","TEXT_SEARCH","querySort","querySortBy","_getSortProps","getSortProps","sortbyFilters","updatedSortProperties","getItemListId","parentEntity","itemEntity","parentId","itemId","updatedParentEntity","getUnpublishedEntityName","paginationIndex","getPaginationIndex","azFilter","getAzQueryFilter","entitiesToUse","_entitiesToUse","filterEntity","_useGetEntitySchemasA","useGetEntitySchemasAsObj","concat","_toConsumableArray2","_useGetEntitySchemasA2","data","mainSchemas","schemasLoading","loading","schemasError","error","_mainSchemas$updatedP","currentSchema","_mainSchemas$filterEn","filterEntitySchema","_useGetEntitySchemasA3","getRequiredSchemas","_useGetEntitySchemasA4","requiredSchema","requiredSchemaLoading","requiredSchemaError","inheritedFilters","getInheritedFilters","queryProps","getQueryProps","_ref","_ref$actions","actions","getAction","getPublished","_useQuery","useQuery","generateSingleItemQuery","variables","id","skip","ID","_useQuery$data","_useQuery$data2","_useQuery$data2$entit","entityData","itemQueryError","itemQueryLoading","_useQuery2","getItemList","_useQuery2$data","itemListData","itemListError","itemListLoading","hasRequiredItemListDetails","errorsToCheck","_checkForError","checkForError","hasErr","errMsg","itemListIds","getItemListIds","isCard","includes","FULL","isAZ","AZ_LIST_TYPE","genericProps","getGenericProps","_getSearchFilterType","_getSearchFilterType2","textFilter","shouldApplyTextFilter","propsToDisplay","getElasticsearchOperator","AND_OPERATOR","valuesText","buildSearchValuesText","_getQueryFilters","getQueryFilters","valuesAnd","valuesOr","searchValues","searchValuesText","searchValuesCheckboxSelectRange","searchValuesCheckboxOr","listProps","createElement","propTypes","PropTypes","object","isRequired","string","array","bool","defaultProps","AND","_default","exports"],"sources":["../../../src/components/List/ListFactory.js"],"sourcesContent":["import React, { useContext } from 'react';\nimport { useQuery } from '@apollo/client';\nimport { parseUrl } from 'query-string';\nimport PropTypes from 'prop-types';\nimport { useRouter } from 'next/router';\nimport { MainContext } from '@blaze-cms/nextjs-components';\nimport { generateSingleItemQuery, getItemList } from '../../application/query';\nimport ListBuilder from './ListBuilder';\nimport { AZ_LIST_TYPE } from './constants';\nimport {\n getAzQueryFilter,\n getSortProps,\n hasRequiredItemListDetails,\n getListSpecificSearchFilter,\n getListQuery\n} from './helpers';\nimport {\n getGenericProps,\n getRequiredSchemas,\n checkForError,\n getUnpublishedEntityName,\n getPaginationIndex,\n getSearchFilterType,\n getElasticsearchOperator,\n buildSearchValuesText,\n getQueryFilters,\n getInheritedFilters,\n getQueryProps\n} from '../../helpers';\nimport { getItemListId, getItemListIds } from '../ItemList/helpers';\nimport { useGetEntitySchemasAsObj } from '../../hooks';\nimport { AND_OPERATOR, TEXT_SEARCH, ID, AND, FULL } from '../../constants';\n\nconst ListFactory = props => {\n const {\n entity: legacyEntity,\n entities,\n parent,\n name,\n filterByProperty,\n filterBy,\n omitWrappers,\n type,\n sortby: defaultSortBy,\n sort: defaultSort,\n allSearchFilters,\n operator: filterOperator,\n sortProperties,\n itemListName\n } = props;\n const { isPreview } = useContext(MainContext);\n const router = useRouter();\n const { asPath } = router;\n const parsedQuery = asPath.replace(/%5D/g, ']').replace(/%5B/g, '[');\n const [searchFilter, hasListSpecificFilters] = getListSpecificSearchFilter(\n allSearchFilters,\n name\n );\n const { query, url, query: { itemListId: queryItemListId } = {} } = parseUrl(parsedQuery);\n const updatedQuery = getListQuery(query, hasListSpecificFilters, name);\n const isTextSearchFilterApplied = !!(\n updatedQuery.search_term &&\n searchFilter &&\n getSearchFilterType(searchFilter, TEXT_SEARCH).length\n );\n\n const { sort: querySort, sortby: querySortBy } = updatedQuery;\n\n const { sortbyFilters, updatedSortProperties } = getSortProps({\n querySort,\n sortProperties,\n defaultSort,\n querySortBy,\n defaultSortBy,\n isTextSearchFilterApplied\n });\n\n const itemListId = getItemListId(itemListName, queryItemListId);\n const { itemEntity: parentEntity, itemId: parentId } = parent;\n const updatedParentEntity = getUnpublishedEntityName(parentEntity);\n const paginationIndex = getPaginationIndex(updatedQuery, name);\n const azFilter = getAzQueryFilter(updatedQuery, name);\n\n const entitiesToUse = entities && entities.length ? entities : [legacyEntity];\n const [filterEntity] = entitiesToUse;\n const {\n data: mainSchemas = {},\n loading: schemasLoading,\n error: schemasError\n } = useGetEntitySchemasAsObj([updatedParentEntity, ...entitiesToUse]);\n\n const {\n [updatedParentEntity]: currentSchema = {},\n [filterEntity]: filterEntitySchema = {}\n } = mainSchemas;\n\n const {\n data: requiredSchema = {},\n loading: requiredSchemaLoading,\n error: requiredSchemaError\n } = useGetEntitySchemasAsObj(\n getRequiredSchemas([...filterByProperty, ...sortbyFilters], filterEntitySchema),\n schemasLoading\n );\n const inheritedFilters = getInheritedFilters(filterBy, filterByProperty);\n const queryProps = getQueryProps(inheritedFilters, currentSchema, filterEntitySchema);\n const { actions = {} } = currentSchema || {};\n const getAction = isPreview ? actions.get : actions.getPublished;\n\n const {\n data: { entityData = {} } = {},\n error: itemQueryError,\n loading: itemQueryLoading\n } = useQuery(generateSingleItemQuery(getAction, queryProps), {\n variables: { id: parentId },\n skip: schemasLoading || (!inheritedFilters.length && queryProps === ID)\n });\n\n const { data: itemListData = {}, error: itemListError, loading: itemListLoading } = useQuery(\n getItemList,\n {\n variables: { id: itemListId },\n skip: !itemListId\n }\n );\n\n if (!hasRequiredItemListDetails({ itemListName, router, itemListId, queryItemListId })) return '';\n\n const errorsToCheck = [schemasError, requiredSchemaError, itemQueryError, itemListError];\n const { hasErr, errMsg } = checkForError(errorsToCheck);\n\n if (requiredSchemaLoading || schemasLoading || itemQueryLoading || itemListLoading) return '';\n if (hasErr) return errMsg;\n\n const itemListIds = getItemListIds(itemListData);\n const isCard = !type.includes(FULL);\n const isAZ = type.includes(AZ_LIST_TYPE);\n const genericProps = getGenericProps(props);\n const [textFilter] = getSearchFilterType(searchFilter, TEXT_SEARCH);\n const shouldApplyTextFilter = textFilter && textFilter.propsToDisplay.length;\n const operator = shouldApplyTextFilter ? getElasticsearchOperator(textFilter) : AND_OPERATOR;\n const valuesText = shouldApplyTextFilter\n ? buildSearchValuesText(textFilter, updatedQuery, name)\n : [];\n const { valuesAnd, valuesOr } = getQueryFilters(searchFilter, updatedQuery, name);\n\n const searchValues = {\n searchValuesText: valuesText,\n searchValuesCheckboxSelectRange: valuesAnd,\n searchValuesCheckboxOr: valuesOr\n };\n const listProps = {\n ...props,\n ...genericProps,\n query: updatedQuery,\n url,\n isCard,\n isAZ,\n router,\n sort: null,\n sortby: null,\n sortProperties: updatedSortProperties,\n azFilter,\n searchValues,\n filterEntitySchema,\n requiredSchema,\n currentSchema,\n omitWrappers,\n operator,\n paginationIndex,\n entityData,\n inheritedFilters,\n filterOperator,\n itemListIds,\n entities: entitiesToUse,\n mainSchemas\n };\n\n return <ListBuilder {...listProps} />;\n};\n\nListFactory.propTypes = {\n parent: PropTypes.object.isRequired,\n type: PropTypes.string.isRequired,\n entity: PropTypes.string,\n entities: PropTypes.array,\n filterBy: PropTypes.array,\n filterByProperty: PropTypes.array,\n omitWrappers: PropTypes.bool,\n operator: PropTypes.string,\n name: PropTypes.string,\n sortby: PropTypes.array,\n sort: PropTypes.string,\n allSearchFilters: PropTypes.array,\n sortProperties: PropTypes.array,\n itemListName: PropTypes.string\n};\n\nListFactory.defaultProps = {\n entity: '',\n entities: [],\n filterBy: [],\n filterByProperty: [],\n omitWrappers: false,\n name: '',\n sortby: [],\n sortProperties: [],\n sort: '',\n operator: AND,\n allSearchFilters: [],\n itemListName: ''\n};\n\nexport default ListFactory;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,iBAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,YAAA,GAAAJ,sBAAA,CAAAJ,OAAA;AACA,IAAAS,UAAA,GAAAT,OAAA;AACA,IAAAU,QAAA,GAAAV,OAAA;AAOA,IAAAW,SAAA,GAAAX,OAAA;AAaA,IAAAY,SAAA,GAAAZ,OAAA;AACA,IAAAa,MAAA,GAAAb,OAAA;AACA,IAAAc,WAAA,GAAAd,OAAA;AAA2E,SAAAe,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,SAAAjB,wBAAAiB,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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ListRender.js","names":["_react","_interopRequireDefault","require","_client","_propTypes","_Pagination","_Header","_constants","_hooks","_helpers","ListRender","props","variables","actionKey","action","name","itemsToDisplay","itemsPerPageToUse","limitToUse","initialOffset","isInfinite","omitWrappers","paginationType","ListComponent","listComponent","query","url","listAggregations","isAZ","azFilter","displayTotal","_useAppSyncEventHook","useAppSyncEventHook","eventName","data","updatedVariables","boostedVariables","buildQueryBooster","_useQuery","useQuery","_useQuery$data","error","loading","fetchMore","message","results","listData","listTotal","total","length","currentListLength","currentPage","Math","ceil","totalDisplay","createElement","Fragment","className","_extends2","orderedListData","LOAD_MORE","itemsPerPage","propTypes","PropTypes","string","isRequired","object","number","bool","func","array","defaultProps","_default","exports"],"sources":["../../../src/components/List/ListRender.js"],"sourcesContent":["import React from 'react';\nimport { useQuery } from '@apollo/client';\nimport PropTypes from 'prop-types';\nimport ListPagination from './components/Pagination';\nimport ListHeader from './components/Header';\nimport { LOAD_MORE } from '../../constants';\nimport { useAppSyncEventHook } from '../../hooks';\nimport { buildQueryBooster } from './helpers';\n\nconst ListRender = props => {\n const {\n variables,\n actionKey,\n action,\n name,\n itemsToDisplay,\n itemsPerPageToUse,\n limitToUse,\n initialOffset,\n isInfinite,\n omitWrappers,\n paginationType,\n listComponent: ListComponent,\n query,\n url,\n listAggregations,\n isAZ,\n azFilter,\n displayTotal\n } = props;\n const { data: updatedVariables } = useAppSyncEventHook({\n eventName: 'list:query-variables',\n data: variables,\n props\n });\n const boostedVariables = buildQueryBooster(props, updatedVariables);\n\n const { data = {}, error, loading, fetchMore } = useQuery(action, {\n variables: boostedVariables\n });\n\n if (loading) return '';\n if (error) return error.message;\n if (!data[actionKey] || !data[actionKey].results) return null;\n\n const listData = data[actionKey].results;\n const listTotal = data[actionKey].total;\n\n if (!listData || !listData.length) return null;\n const { length: currentListLength } = listData;\n const currentPage = Math.ceil((initialOffset + currentListLength) / itemsPerPageToUse);\n const totalDisplay = limitToUse && listTotal > limitToUse ? limitToUse : listTotal;\n\n return (\n <>\n <span className=\"list-top\" />\n {isAZ && <ListHeader name={name} listAggregations={listAggregations} azFilter={azFilter} />}\n {displayTotal && (\n <div className=\"list_total_results w-full text-left p-4\">Total results: {totalDisplay}</div>\n )}\n <ListComponent\n orderedListData={listData}\n isInfinite={isInfinite}\n initialOffset={initialOffset}\n actionKey={actionKey}\n limitToUse={limitToUse}\n fetchMore={fetchMore}\n omitWrappers={omitWrappers}\n itemsPerPageToUse={itemsPerPageToUse || listData.length}\n listTotal={listTotal}\n currentListLength={currentListLength}\n currentPage={currentPage}\n query={query}\n url={url}\n itemsToDisplay={itemsToDisplay}\n {...props}\n />\n {paginationType !== LOAD_MORE && (\n <ListPagination\n limitToUse={limitToUse}\n itemsPerPage={itemsPerPageToUse}\n listTotal={listTotal}\n name={name}\n isInfinite={isInfinite}\n currentListLength={currentListLength}\n paginationType={paginationType}\n currentPage={currentPage}\n query={query}\n url={url}\n />\n )}\n </>\n );\n};\n\nListRender.propTypes = {\n name: PropTypes.string.isRequired,\n paginationType: PropTypes.string.isRequired,\n variables: PropTypes.object.isRequired,\n actionKey: PropTypes.string.isRequired,\n action: PropTypes.object.isRequired,\n itemsPerPageToUse: PropTypes.number.isRequired,\n limitToUse: PropTypes.number.isRequired,\n initialOffset: PropTypes.number.isRequired,\n isInfinite: PropTypes.bool.isRequired,\n omitWrappers: PropTypes.bool,\n query: PropTypes.object.isRequired,\n url: PropTypes.string.isRequired,\n listComponent: PropTypes.func.isRequired,\n isAZ: PropTypes.bool.isRequired,\n azFilter: PropTypes.string.isRequired,\n listAggregations: PropTypes.array,\n itemsToDisplay: PropTypes.array,\n displayTotal: PropTypes.bool\n};\n\nListRender.defaultProps = {\n omitWrappers: false,\n itemsToDisplay: [],\n listAggregations: [],\n displayTotal: false\n};\n\nexport default ListRender;\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,G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,UAAU;EACtCpD,SAAS,EAAEkD,qBAAS,CAACC,MAAM,CAACC,UAAU;EACtCnD,MAAM,EAAEiD,qBAAS,CAACG,MAAM,CAACD,UAAU;EACnChD,iBAAiB,EAAE8C,qBAAS,CAACI,MAAM,CAACF,UAAU;EAC9C/C,UAAU,EAAE6C,qBAAS,CAACI,MAAM,CAACF,UAAU;EACvC9C,aAAa,EAAE4C,qBAAS,CAACI,MAAM,CAACF,UAAU;EAC1C7C,UAAU,EAAE2C,qBAAS,CAACK,IAAI,CAACH,UAAU;EACrC5C,YAAY,EAAE0C,qBAAS,CAACK,IAAI;EAC5B3C,KAAK,EAAEsC,qBAAS,CAACG,MAAM,CAACD,UAAU;EAClCvC,GAAG,EAAEqC,qBAAS,CAACC,MAAM,CAACC,UAAU;EAChCzC,aAAa,EAAEuC,qBAAS,CAACM,IAAI,CAACJ,UAAU;EACxCrC,IAAI,EAAEmC,qBAAS,CAACK,IAAI,CAACH,UAAU;EAC/BpC,QAAQ,EAAEkC,qBAAS,CAACC,MAAM,CAACC,UAAU;EACrCtC,gBAAgB,EAAEoC,qBAAS,CAACO,KAAK;EACjCtD,cAAc,EAAE+C,qBAAS,CAACO,KAAK;EAC/BxC,YAAY,EAAEiC,qBAAS,CAACK;AAC1B,CAAC;AAED1D,UAAU,CAAC6D,YAAY,GAAG;EACxBlD,YAAY,EAAE,KAAK;EACnBL,cAAc,EAAE,EAAE;EAClBW,gBAAgB,EAAE,EAAE;EACpBG,YAAY,EAAE;AAChB,CAAC;AAAC,IAAA0C,QAAA,GAAAC,OAAA,cAEa/D,UAAU","ignoreList":[]}
1
+ {"version":3,"file":"ListRender.js","names":["_react","_interopRequireDefault","require","_client","_propTypes","_Pagination","_Header","_constants","_hooks","_helpers","ListRender","props","variables","actionKey","action","name","itemsToDisplay","itemsPerPageToUse","limitToUse","initialOffset","isInfinite","omitWrappers","paginationType","ListComponent","listComponent","query","url","listAggregations","isAZ","azFilter","displayTotal","_useAppSyncEventHook","useAppSyncEventHook","eventName","data","updatedVariables","boostedVariables","buildQueryBooster","_useQuery","useQuery","_useQuery$data","error","loading","fetchMore","message","results","listData","listTotal","total","length","currentListLength","currentPage","Math","ceil","totalDisplay","createElement","Fragment","className","_extends2","orderedListData","LOAD_MORE","itemsPerPage","propTypes","PropTypes","string","isRequired","object","number","bool","func","array","defaultProps","_default","exports"],"sources":["../../../src/components/List/ListRender.js"],"sourcesContent":["import React from 'react';\nimport { useQuery } from '@apollo/client';\nimport PropTypes from 'prop-types';\nimport ListPagination from './components/Pagination';\nimport ListHeader from './components/Header';\nimport { LOAD_MORE } from '../../constants';\nimport { useAppSyncEventHook } from '../../hooks';\nimport { buildQueryBooster } from './helpers';\n\nconst ListRender = props => {\n const {\n variables,\n actionKey,\n action,\n name,\n itemsToDisplay,\n itemsPerPageToUse,\n limitToUse,\n initialOffset,\n isInfinite,\n omitWrappers,\n paginationType,\n listComponent: ListComponent,\n query,\n url,\n listAggregations,\n isAZ,\n azFilter,\n displayTotal\n } = props;\n const { data: updatedVariables } = useAppSyncEventHook({\n eventName: 'list:query-variables',\n data: variables,\n props\n });\n const boostedVariables = buildQueryBooster(props, updatedVariables);\n\n const { data = {}, error, loading, fetchMore } = useQuery(action, {\n variables: boostedVariables\n });\n\n if (loading) return '';\n if (error) return error.message;\n if (!data[actionKey] || !data[actionKey].results) return null;\n\n const listData = data[actionKey].results;\n const listTotal = data[actionKey].total;\n\n if (!listData || !listData.length) return null;\n const { length: currentListLength } = listData;\n const currentPage = Math.ceil((initialOffset + currentListLength) / itemsPerPageToUse);\n const totalDisplay = limitToUse && listTotal > limitToUse ? limitToUse : listTotal;\n\n return (\n <>\n <span className=\"list-top\" />\n {isAZ && <ListHeader name={name} listAggregations={listAggregations} azFilter={azFilter} />}\n {displayTotal && (\n <div className=\"list_total_results w-full text-left p-4\">Total results: {totalDisplay}</div>\n )}\n <ListComponent\n orderedListData={listData}\n isInfinite={isInfinite}\n initialOffset={initialOffset}\n actionKey={actionKey}\n limitToUse={limitToUse}\n fetchMore={fetchMore}\n omitWrappers={omitWrappers}\n itemsPerPageToUse={itemsPerPageToUse || listData.length}\n listTotal={listTotal}\n currentListLength={currentListLength}\n currentPage={currentPage}\n query={query}\n url={url}\n itemsToDisplay={itemsToDisplay}\n {...props}\n />\n {paginationType !== LOAD_MORE && (\n <ListPagination\n limitToUse={limitToUse}\n itemsPerPage={itemsPerPageToUse}\n listTotal={listTotal}\n name={name}\n isInfinite={isInfinite}\n currentListLength={currentListLength}\n paginationType={paginationType}\n currentPage={currentPage}\n query={query}\n url={url}\n />\n )}\n </>\n );\n};\n\nListRender.propTypes = {\n name: PropTypes.string.isRequired,\n paginationType: PropTypes.string.isRequired,\n variables: PropTypes.object.isRequired,\n actionKey: PropTypes.string.isRequired,\n action: PropTypes.object.isRequired,\n itemsPerPageToUse: PropTypes.number.isRequired,\n limitToUse: PropTypes.number.isRequired,\n initialOffset: PropTypes.number.isRequired,\n isInfinite: PropTypes.bool.isRequired,\n omitWrappers: PropTypes.bool,\n query: PropTypes.object.isRequired,\n url: PropTypes.string.isRequired,\n listComponent: PropTypes.func.isRequired,\n isAZ: PropTypes.bool.isRequired,\n azFilter: PropTypes.string.isRequired,\n listAggregations: PropTypes.array,\n itemsToDisplay: PropTypes.array,\n displayTotal: PropTypes.bool\n};\n\nListRender.defaultProps = {\n omitWrappers: false,\n itemsToDisplay: [],\n listAggregations: [],\n displayTotal: false\n};\n\nexport default ListRender;\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,OAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,QAAA,GAAAP,OAAA;AAEA,I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UAAU;EACvC9C,aAAa,EAAE4C,qBAAS,CAACI,MAAM,CAACF,UAAU;EAC1C7C,UAAU,EAAE2C,qBAAS,CAACK,IAAI,CAACH,UAAU;EACrC5C,YAAY,EAAE0C,qBAAS,CAACK,IAAI;EAC5B3C,KAAK,EAAEsC,qBAAS,CAACG,MAAM,CAACD,UAAU;EAClCvC,GAAG,EAAEqC,qBAAS,CAACC,MAAM,CAACC,UAAU;EAChCzC,aAAa,EAAEuC,qBAAS,CAACM,IAAI,CAACJ,UAAU;EACxCrC,IAAI,EAAEmC,qBAAS,CAACK,IAAI,CAACH,UAAU;EAC/BpC,QAAQ,EAAEkC,qBAAS,CAACC,MAAM,CAACC,UAAU;EACrCtC,gBAAgB,EAAEoC,qBAAS,CAACO,KAAK;EACjCtD,cAAc,EAAE+C,qBAAS,CAACO,KAAK;EAC/BxC,YAAY,EAAEiC,qBAAS,CAACK;AAC1B,CAAC;AAED1D,UAAU,CAAC6D,YAAY,GAAG;EACxBlD,YAAY,EAAE,KAAK;EACnBL,cAAc,EAAE,EAAE;EAClBW,gBAAgB,EAAE,EAAE;EACpBG,YAAY,EAAE;AAChB,CAAC;AAAC,IAAA0C,QAAA,GAAAC,OAAA,cAEa/D,UAAU"}
@@ -1 +1 @@
1
- {"version":3,"file":"CardRenderWithInfiniteScroll.js","names":["_CardsRender","_interopRequireDefault","require","_withInfiniteScroll","_default","exports","withInfiniteScroll","CardsRender"],"sources":["../../../../../src/components/List/components/Cards/CardRenderWithInfiniteScroll.js"],"sourcesContent":["import CardsRender from './CardsRender';\nimport withInfiniteScroll from '../../../../HOC/withInfiniteScroll';\n\nexport default withInfiniteScroll(CardsRender);\n"],"mappings":";;;;;;;;AAAA,IAAAA,YAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,mBAAA,GAAAF,sBAAA,CAAAC,OAAA;AAAoE,IAAAE,QAAA,GAAAC,OAAA,cAErD,IAAAC,8BAAkB,EAACC,uBAAW,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"CardRenderWithInfiniteScroll.js","names":["_CardsRender","_interopRequireDefault","require","_withInfiniteScroll","_default","exports","withInfiniteScroll","CardsRender"],"sources":["../../../../../src/components/List/components/Cards/CardRenderWithInfiniteScroll.js"],"sourcesContent":["import CardsRender from './CardsRender';\nimport withInfiniteScroll from '../../../../HOC/withInfiniteScroll';\n\nexport default withInfiniteScroll(CardsRender);\n"],"mappings":";;;;;;;;AAAA,IAAAA,YAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,mBAAA,GAAAF,sBAAA,CAAAC,OAAA;AAAoE,IAAAE,QAAA,GAAAC,OAAA,cAErD,IAAAC,8BAAkB,EAACC,uBAAW,CAAC"}
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
 
3
+ require("core-js/modules/es.object.keys.js");
3
4
  require("core-js/modules/es.symbol.js");
5
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
4
6
  require("core-js/modules/es.array.for-each.js");
5
- require("core-js/modules/es.array.iterator.js");
7
+ require("core-js/modules/web.dom-collections.for-each.js");
8
+ require("core-js/modules/es.object.get-own-property-descriptors.js");
6
9
  require("core-js/modules/es.object.define-properties.js");
7
10
  require("core-js/modules/es.object.define-property.js");
8
- require("core-js/modules/es.object.get-own-property-descriptor.js");
9
- require("core-js/modules/es.object.get-own-property-descriptors.js");
10
- require("core-js/modules/es.object.keys.js");
11
+ require("core-js/modules/es.array.iterator.js");
11
12
  require("core-js/modules/es.string.iterator.js");
12
13
  require("core-js/modules/es.weak-map.js");
13
- require("core-js/modules/web.dom-collections.for-each.js");
14
14
  require("core-js/modules/web.dom-collections.iterator.js");
15
15
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
16
16
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -18,10 +18,10 @@ Object.defineProperty(exports, "__esModule", {
18
18
  value: true
19
19
  });
20
20
  exports["default"] = void 0;
21
- require("core-js/modules/es.array.filter.js");
22
- require("core-js/modules/es.array.map.js");
23
21
  require("core-js/modules/es.function.name.js");
22
+ require("core-js/modules/es.array.filter.js");
24
23
  require("core-js/modules/es.object.to-string.js");
24
+ require("core-js/modules/es.array.map.js");
25
25
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
26
26
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
27
27
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));