@blaze-cms/react-page-builder 0.144.0-alpha.1 → 0.144.0-alpha.2

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 +8 -0
  2. package/lib/BannerContext/helpers/index.js.map +1 -1
  3. package/lib/BannerContext/helpers/set-initial-banner-counters.js +1 -1
  4. package/lib/BannerContext/helpers/set-initial-banner-counters.js.map +1 -1
  5. package/lib/BannerContext/index.js +2 -2
  6. package/lib/BannerContext/index.js.map +1 -1
  7. package/lib/HOC/index.js.map +1 -1
  8. package/lib/HOC/recreateOnNavigation.js +1 -1
  9. package/lib/HOC/recreateOnNavigation.js.map +1 -1
  10. package/lib/HOC/withInfiniteScroll.js +2 -2
  11. package/lib/HOC/withInfiniteScroll.js.map +1 -1
  12. package/lib/HOC/withTitle.js +2 -2
  13. package/lib/HOC/withTitle.js.map +1 -1
  14. package/lib/PBContext/index.js.map +1 -1
  15. package/lib/application/query/index.js +1 -1
  16. package/lib/application/query/index.js.map +1 -1
  17. package/lib/components/BackToTop/BackToTop.js +2 -2
  18. package/lib/components/BackToTop/BackToTop.js.map +1 -1
  19. package/lib/components/BackToTop/index.js.map +1 -1
  20. package/lib/components/Banner/AdSlotRender.js +4 -4
  21. package/lib/components/Banner/AdSlotRender.js.map +1 -1
  22. package/lib/components/Banner/Banner.js +3 -3
  23. package/lib/components/Banner/Banner.js.map +1 -1
  24. package/lib/components/Banner/BannerRender.js +4 -4
  25. package/lib/components/Banner/BannerRender.js.map +1 -1
  26. package/lib/components/Banner/helpers.js +16 -16
  27. package/lib/components/Banner/helpers.js.map +1 -1
  28. package/lib/components/Banner/index.js +3 -3
  29. package/lib/components/Banner/index.js.map +1 -1
  30. package/lib/components/BlazeLink.js +6 -6
  31. package/lib/components/BlazeLink.js.map +1 -1
  32. package/lib/components/Breadcrumb/Breadcrumb.js +3 -3
  33. package/lib/components/Breadcrumb/Breadcrumb.js.map +1 -1
  34. package/lib/components/Breadcrumb/index.js.map +1 -1
  35. package/lib/components/Button.js +6 -6
  36. package/lib/components/Button.js.map +1 -1
  37. package/lib/components/Card/Card.js +4 -4
  38. package/lib/components/Card/Card.js.map +1 -1
  39. package/lib/components/Card/CardsContainer.js +8 -8
  40. package/lib/components/Card/CardsContainer.js.map +1 -1
  41. package/lib/components/Card/CardsFactory.js.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.map +1 -1
  139. package/lib/components/DateTime/index.js.map +1 -1
  140. package/lib/components/EmailConfirm/EmailConfirm.js +2 -2
  141. package/lib/components/EmailConfirm/EmailConfirm.js.map +1 -1
  142. package/lib/components/EmailConfirm/index.js.map +1 -1
  143. package/lib/components/EmailConfirm/mutation.js.map +1 -1
  144. package/lib/components/Iframe/Iframe.js.map +1 -1
  145. package/lib/components/Iframe/constants.js.map +1 -1
  146. package/lib/components/Iframe/index.js.map +1 -1
  147. package/lib/components/Image/GlobalLightbox/GlobalLightbox.js +3 -3
  148. package/lib/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
  149. package/lib/components/Image/GlobalLightbox/NavButton.js.map +1 -1
  150. package/lib/components/Image/GlobalLightbox/index.js +3 -3
  151. package/lib/components/Image/GlobalLightbox/index.js.map +1 -1
  152. package/lib/components/Image/Image.js +7 -7
  153. package/lib/components/Image/Image.js.map +1 -1
  154. package/lib/components/Image/ImageDetails.js.map +1 -1
  155. package/lib/components/Image/ImageFactory.js +2 -2
  156. package/lib/components/Image/ImageFactory.js.map +1 -1
  157. package/lib/components/Image/ImageRender.js.map +1 -1
  158. package/lib/components/Image/Lightbox/Lightbox.js +2 -2
  159. package/lib/components/Image/Lightbox/Lightbox.js.map +1 -1
  160. package/lib/components/Image/Lightbox/index.js.map +1 -1
  161. package/lib/components/Image/index.js.map +1 -1
  162. package/lib/components/ItemList/ItemListButton/ItemListButton.js +4 -4
  163. package/lib/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
  164. package/lib/components/ItemList/ItemListButton/index.js.map +1 -1
  165. package/lib/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
  166. package/lib/components/ItemList/ItemListCounter/index.js.map +1 -1
  167. package/lib/components/ItemList/ItemListNew/ItemListNew.js.map +1 -1
  168. package/lib/components/ItemList/ItemListNew/index.js.map +1 -1
  169. package/lib/components/ItemList/constants.js.map +1 -1
  170. package/lib/components/ItemList/helpers/get-item-list-data.js.map +1 -1
  171. package/lib/components/ItemList/helpers/get-item-list-id.js.map +1 -1
  172. package/lib/components/ItemList/helpers/get-item-list-ids.js.map +1 -1
  173. package/lib/components/ItemList/helpers/index.js.map +1 -1
  174. package/lib/components/ItemList/helpers/set-item-list-id.js.map +1 -1
  175. package/lib/components/ItemList/helpers/set-param-and-redirect.js +4 -4
  176. package/lib/components/ItemList/helpers/set-param-and-redirect.js.map +1 -1
  177. package/lib/components/ItemList/hooks/index.js.map +1 -1
  178. package/lib/components/ItemList/hooks/use-item-list-id.js.map +1 -1
  179. package/lib/components/Layout/Layout.js +5 -5
  180. package/lib/components/Layout/Layout.js.map +1 -1
  181. package/lib/components/Layout/LayoutFactory.js +3 -3
  182. package/lib/components/Layout/LayoutFactory.js.map +1 -1
  183. package/lib/components/Layout/LayoutWithStickyTimer.js +2 -2
  184. package/lib/components/Layout/LayoutWithStickyTimer.js.map +1 -1
  185. package/lib/components/Layout/constants.js.map +1 -1
  186. package/lib/components/Layout/helpers/check-if-row-has-columns.js +1 -1
  187. package/lib/components/Layout/helpers/check-if-row-has-columns.js.map +1 -1
  188. package/lib/components/Layout/helpers/get-styles-to-update.js.map +1 -1
  189. package/lib/components/Layout/helpers/index.js.map +1 -1
  190. package/lib/components/Layout/index.js.map +1 -1
  191. package/lib/components/LazyImage/LazyImage.js.map +1 -1
  192. package/lib/components/LazyImage/index.js +3 -3
  193. package/lib/components/LazyImage/index.js.map +1 -1
  194. package/lib/components/List/ListBuilder.js +5 -5
  195. package/lib/components/List/ListBuilder.js.map +1 -1
  196. package/lib/components/List/ListFactory.js +10 -10
  197. package/lib/components/List/ListFactory.js.map +1 -1
  198. package/lib/components/List/ListRender.js.map +1 -1
  199. package/lib/components/List/components/Cards/CardRenderWithInfiniteScroll.js.map +1 -1
  200. package/lib/components/List/components/Cards/CardsRender.js +7 -7
  201. package/lib/components/List/components/Cards/CardsRender.js.map +1 -1
  202. package/lib/components/List/components/Cards/CardsRenderItem.js.map +1 -1
  203. package/lib/components/List/components/Cards/CardsRenderWrapper.js +2 -2
  204. package/lib/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
  205. package/lib/components/List/components/Cards/index.js.map +1 -1
  206. package/lib/components/List/components/Full/FullRender.js +6 -6
  207. package/lib/components/List/components/Full/FullRender.js.map +1 -1
  208. package/lib/components/List/components/Full/FullRenderItem.js +6 -6
  209. package/lib/components/List/components/Full/FullRenderItem.js.map +1 -1
  210. package/lib/components/List/components/Full/FullRenderWithInfiniteScroll.js.map +1 -1
  211. package/lib/components/List/components/Full/index.js.map +1 -1
  212. package/lib/components/List/components/Header/ListHeader.js +1 -1
  213. package/lib/components/List/components/Header/ListHeader.js.map +1 -1
  214. package/lib/components/List/components/Header/index.js.map +1 -1
  215. package/lib/components/List/components/Pagination/Classic.js.map +1 -1
  216. package/lib/components/List/components/Pagination/ListPagination.js +6 -6
  217. package/lib/components/List/components/Pagination/ListPagination.js.map +1 -1
  218. package/lib/components/List/components/Pagination/LoadMore.js.map +1 -1
  219. package/lib/components/List/components/Pagination/index.js.map +1 -1
  220. package/lib/components/List/components/helpers/check-if-should-render-banner.js +2 -2
  221. package/lib/components/List/components/helpers/check-if-should-render-banner.js.map +1 -1
  222. package/lib/components/List/components/helpers/check-if-should-render-gtm.js +2 -2
  223. package/lib/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -1
  224. package/lib/components/List/components/helpers/index.js.map +1 -1
  225. package/lib/components/List/components/index.js.map +1 -1
  226. package/lib/components/List/constants.js.map +1 -1
  227. package/lib/components/List/helpers/build-az-aggregations.js +3 -3
  228. package/lib/components/List/helpers/build-az-aggregations.js.map +1 -1
  229. package/lib/components/List/helpers/build-az-url.js +5 -5
  230. package/lib/components/List/helpers/build-az-url.js.map +1 -1
  231. package/lib/components/List/helpers/build-pagination-items.js.map +1 -1
  232. package/lib/components/List/helpers/build-pagination-url.js +5 -5
  233. package/lib/components/List/helpers/build-pagination-url.js.map +1 -1
  234. package/lib/components/List/helpers/build-query-booster.js +6 -6
  235. package/lib/components/List/helpers/build-query-booster.js.map +1 -1
  236. package/lib/components/List/helpers/get-az-query-filter.js.map +1 -1
  237. package/lib/components/List/helpers/get-items-per-page-to-use.js.map +1 -1
  238. package/lib/components/List/helpers/get-list-component.js.map +1 -1
  239. package/lib/components/List/helpers/get-list-query.js +3 -3
  240. package/lib/components/List/helpers/get-list-query.js.map +1 -1
  241. package/lib/components/List/helpers/get-list-specific-search-filter.js.map +1 -1
  242. package/lib/components/List/helpers/get-sort-props.js +2 -2
  243. package/lib/components/List/helpers/get-sort-props.js.map +1 -1
  244. package/lib/components/List/helpers/has-required-item-list-details.js.map +1 -1
  245. package/lib/components/List/helpers/index.js.map +1 -1
  246. package/lib/components/List/helpers/sort-aggs.js.map +1 -1
  247. package/lib/components/List/helpers/strip-query-key.js.map +1 -1
  248. package/lib/components/List/index.js.map +1 -1
  249. package/lib/components/Menu/Menu.js +2 -2
  250. package/lib/components/Menu/Menu.js.map +1 -1
  251. package/lib/components/Menu/MenuContext.js.map +1 -1
  252. package/lib/components/Menu/index.js.map +1 -1
  253. package/lib/components/MenuItem/MenuItem.js +2 -2
  254. package/lib/components/MenuItem/MenuItem.js.map +1 -1
  255. package/lib/components/MenuItem/index.js.map +1 -1
  256. package/lib/components/Modal/Modal.js.map +1 -1
  257. package/lib/components/Modal/index.js.map +1 -1
  258. package/lib/components/SearchContent/SearchContent.js +3 -3
  259. package/lib/components/SearchContent/SearchContent.js.map +1 -1
  260. package/lib/components/SearchContent/SearchContentItems.js.map +1 -1
  261. package/lib/components/SearchContent/SearchContentResults.js.map +1 -1
  262. package/lib/components/SearchContent/SearchContentToggleIcon.js.map +1 -1
  263. package/lib/components/SearchContent/constants.js.map +1 -1
  264. package/lib/components/SearchContent/index.js.map +1 -1
  265. package/lib/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
  266. package/lib/components/SearchFilter/SearchFilter/FiltersList.js +3 -3
  267. package/lib/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
  268. package/lib/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -1
  269. package/lib/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
  270. package/lib/components/SearchFilter/SearchFilter/SearchFilter.js +3 -3
  271. package/lib/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
  272. package/lib/components/SearchFilter/SearchFilter/index.js.map +1 -1
  273. package/lib/components/SearchFilter/SearchFilterContainer.js +7 -7
  274. package/lib/components/SearchFilter/SearchFilterContainer.js.map +1 -1
  275. package/lib/components/SearchFilter/components/Checkbox.js +7 -7
  276. package/lib/components/SearchFilter/components/Checkbox.js.map +1 -1
  277. package/lib/components/SearchFilter/components/Range.js +4 -4
  278. package/lib/components/SearchFilter/components/Range.js.map +1 -1
  279. package/lib/components/SearchFilter/components/Select.js +3 -3
  280. package/lib/components/SearchFilter/components/Select.js.map +1 -1
  281. package/lib/components/SearchFilter/components/TextSearch.js.map +1 -1
  282. package/lib/components/SearchFilter/components/index.js.map +1 -1
  283. package/lib/components/SearchFilter/constants.js.map +1 -1
  284. package/lib/components/SearchFilter/helpers/build-filters-query.js +6 -6
  285. package/lib/components/SearchFilter/helpers/build-filters-query.js.map +1 -1
  286. package/lib/components/SearchFilter/helpers/build-new-url.js.map +1 -1
  287. package/lib/components/SearchFilter/helpers/build-raw-query-stringified.js +1 -1
  288. package/lib/components/SearchFilter/helpers/build-raw-query-stringified.js.map +1 -1
  289. package/lib/components/SearchFilter/helpers/build-url-query.js +3 -3
  290. package/lib/components/SearchFilter/helpers/build-url-query.js.map +1 -1
  291. package/lib/components/SearchFilter/helpers/calculate-min-max.js.map +1 -1
  292. package/lib/components/SearchFilter/helpers/calculate-step.js.map +1 -1
  293. package/lib/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -1
  294. package/lib/components/SearchFilter/helpers/decode-encode.js.map +1 -1
  295. package/lib/components/SearchFilter/helpers/get-display-value.js +1 -1
  296. package/lib/components/SearchFilter/helpers/get-display-value.js.map +1 -1
  297. package/lib/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js +2 -2
  298. package/lib/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js.map +1 -1
  299. package/lib/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
  300. package/lib/components/SearchFilter/helpers/get-filter-values.js.map +1 -1
  301. package/lib/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -1
  302. package/lib/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -1
  303. package/lib/components/SearchFilter/helpers/get-range-value.js.map +1 -1
  304. package/lib/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
  305. package/lib/components/SearchFilter/helpers/get-select-options.js.map +1 -1
  306. package/lib/components/SearchFilter/helpers/get-updated-filter-by.js +2 -2
  307. package/lib/components/SearchFilter/helpers/get-updated-filter-by.js.map +1 -1
  308. package/lib/components/SearchFilter/helpers/index.js.map +1 -1
  309. package/lib/components/SearchFilter/helpers/is-device-desktop.js.map +1 -1
  310. package/lib/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
  311. package/lib/components/SearchFilter/index.js.map +1 -1
  312. package/lib/components/SearchFilter/searchFilterReducer.js +5 -5
  313. package/lib/components/SearchFilter/searchFilterReducer.js.map +1 -1
  314. package/lib/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
  315. package/lib/components/SearchFilterSort/constants.js.map +1 -1
  316. package/lib/components/SearchFilterSort/helpers/handle-sort-update.js +2 -2
  317. package/lib/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
  318. package/lib/components/SearchFilterSort/helpers/index.js.map +1 -1
  319. package/lib/components/SearchFilterSort/helpers/update-sort.js +5 -5
  320. package/lib/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
  321. package/lib/components/SearchFilterSort/index.js.map +1 -1
  322. package/lib/components/SocialFollow/SFItem.js.map +1 -1
  323. package/lib/components/SocialFollow/SocialFollow.js.map +1 -1
  324. package/lib/components/SocialFollow/SocialFollowRender.js.map +1 -1
  325. package/lib/components/SocialFollow/index.js.map +1 -1
  326. package/lib/components/SocialFollow/sf.config.js.map +1 -1
  327. package/lib/components/SubMenu/SubMenu.js.map +1 -1
  328. package/lib/components/SubMenu/index.js.map +1 -1
  329. package/lib/components/TextBlock/TextBlockRender.js.map +1 -1
  330. package/lib/components/TextBlock/index.js +5 -5
  331. package/lib/components/TextBlock/index.js.map +1 -1
  332. package/lib/components/Video/Video.js +5 -5
  333. package/lib/components/Video/Video.js.map +1 -1
  334. package/lib/components/Video/VideoModal.js +2 -2
  335. package/lib/components/Video/VideoModal.js.map +1 -1
  336. package/lib/components/Video/VideoRender.js.map +1 -1
  337. package/lib/components/Video/index.js.map +1 -1
  338. package/lib/components/Video/providers/Default.js.map +1 -1
  339. package/lib/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
  340. package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js +5 -5
  341. package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
  342. package/lib/components/Video/providers/Vimeo/VimeoProvider.js +2 -2
  343. package/lib/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
  344. package/lib/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js +6 -6
  345. package/lib/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js.map +1 -1
  346. package/lib/components/Video/providers/Vimeo/helpers/index.js.map +1 -1
  347. package/lib/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
  348. package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js +2 -2
  349. package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
  350. package/lib/components/Video/providers/YouTube/helpers/index.js +1 -1
  351. package/lib/components/Video/providers/YouTube/helpers/index.js.map +1 -1
  352. package/lib/components/Video/providers/get-provider.js +3 -3
  353. package/lib/components/Video/providers/get-provider.js.map +1 -1
  354. package/lib/components/Video/providers/index.js.map +1 -1
  355. package/lib/components/Wrapper.js.map +1 -1
  356. package/lib/components/index.js +3 -3
  357. package/lib/components/index.js.map +1 -1
  358. package/lib/constants/componentsDefaultValues.js.map +1 -1
  359. package/lib/constants/index.js.map +1 -1
  360. package/lib/helpers/append-images.js +5 -5
  361. package/lib/helpers/append-images.js.map +1 -1
  362. package/lib/helpers/build-az-filter.js.map +1 -1
  363. package/lib/helpers/build-checkbox-filters.js.map +1 -1
  364. package/lib/helpers/build-image-properties.js.map +1 -1
  365. package/lib/helpers/build-inherited-filters.js +4 -4
  366. package/lib/helpers/build-inherited-filters.js.map +1 -1
  367. package/lib/helpers/build-link-extra-props.js.map +1 -1
  368. package/lib/helpers/build-props-query.js +9 -9
  369. package/lib/helpers/build-props-query.js.map +1 -1
  370. package/lib/helpers/build-query-fields.js +1 -1
  371. package/lib/helpers/build-query-fields.js.map +1 -1
  372. package/lib/helpers/build-query-key.js.map +1 -1
  373. package/lib/helpers/build-raw-query-base.js +9 -9
  374. package/lib/helpers/build-raw-query-base.js.map +1 -1
  375. package/lib/helpers/build-raw-query.js +5 -5
  376. package/lib/helpers/build-raw-query.js.map +1 -1
  377. package/lib/helpers/build-search-values-checkbox-select.js +7 -7
  378. package/lib/helpers/build-search-values-checkbox-select.js.map +1 -1
  379. package/lib/helpers/build-search-values-text.js.map +1 -1
  380. package/lib/helpers/build-set-filters.js +3 -3
  381. package/lib/helpers/build-set-filters.js.map +1 -1
  382. package/lib/helpers/build-sort-values.js +6 -6
  383. package/lib/helpers/build-sort-values.js.map +1 -1
  384. package/lib/helpers/check-for-error.js.map +1 -1
  385. package/lib/helpers/check-props-to-use.js.map +1 -1
  386. package/lib/helpers/entities/constants.js.map +1 -1
  387. package/lib/helpers/get-banner-data.js +5 -5
  388. package/lib/helpers/get-banner-data.js.map +1 -1
  389. package/lib/helpers/get-checkbox-filters.js.map +1 -1
  390. package/lib/helpers/get-click-wrapper-options.js +6 -6
  391. package/lib/helpers/get-click-wrapper-options.js.map +1 -1
  392. package/lib/helpers/get-current-offset.js.map +1 -1
  393. package/lib/helpers/get-dictionary-match.js.map +1 -1
  394. package/lib/helpers/get-display-count-data.js.map +1 -1
  395. package/lib/helpers/get-elasticsearch-operator.js.map +1 -1
  396. package/lib/helpers/get-entities-with-banner.js +5 -5
  397. package/lib/helpers/get-entities-with-banner.js.map +1 -1
  398. package/lib/helpers/get-entity-data.js.map +1 -1
  399. package/lib/helpers/get-entity-render-props.js.map +1 -1
  400. package/lib/helpers/get-extra-az-bits.js.map +1 -1
  401. package/lib/helpers/get-filter-props.js.map +1 -1
  402. package/lib/helpers/get-filter-relation-keys.js +1 -1
  403. package/lib/helpers/get-filter-relation-keys.js.map +1 -1
  404. package/lib/helpers/get-generic-props.js +5 -5
  405. package/lib/helpers/get-generic-props.js.map +1 -1
  406. package/lib/helpers/get-generic-render-variables.js +6 -6
  407. package/lib/helpers/get-generic-render-variables.js.map +1 -1
  408. package/lib/helpers/get-image-ids.js +2 -2
  409. package/lib/helpers/get-image-ids.js.map +1 -1
  410. package/lib/helpers/get-inherited-filters.js +2 -2
  411. package/lib/helpers/get-inherited-filters.js.map +1 -1
  412. package/lib/helpers/get-items-to-display-ids.js +2 -2
  413. package/lib/helpers/get-items-to-display-ids.js.map +1 -1
  414. package/lib/helpers/get-modifiers.js +3 -3
  415. package/lib/helpers/get-modifiers.js.map +1 -1
  416. package/lib/helpers/get-not-equal-query.js.map +1 -1
  417. package/lib/helpers/get-pagination-index.js.map +1 -1
  418. package/lib/helpers/get-parsed-prop-values.js +3 -3
  419. package/lib/helpers/get-parsed-prop-values.js.map +1 -1
  420. package/lib/helpers/get-parsed-summary-value.js.map +1 -1
  421. package/lib/helpers/get-prop-values.js +2 -2
  422. package/lib/helpers/get-prop-values.js.map +1 -1
  423. package/lib/helpers/get-query-filters.js.map +1 -1
  424. package/lib/helpers/get-query-props.js +3 -3
  425. package/lib/helpers/get-query-props.js.map +1 -1
  426. package/lib/helpers/get-required-schemas.js +3 -3
  427. package/lib/helpers/get-required-schemas.js.map +1 -1
  428. package/lib/helpers/get-sanitized-prop-values.js.map +1 -1
  429. package/lib/helpers/get-search-filter-type.js.map +1 -1
  430. package/lib/helpers/get-sort-by-field-name.js +4 -4
  431. package/lib/helpers/get-sort-by-field-name.js.map +1 -1
  432. package/lib/helpers/get-unpublished-entity-name.js +1 -1
  433. package/lib/helpers/get-unpublished-entity-name.js.map +1 -1
  434. package/lib/helpers/get-updated-filter-by.js.map +1 -1
  435. package/lib/helpers/get-wrapped-value-with-link.js +1 -1
  436. package/lib/helpers/get-wrapped-value-with-link.js.map +1 -1
  437. package/lib/helpers/group-entities.js +1 -1
  438. package/lib/helpers/group-entities.js.map +1 -1
  439. package/lib/helpers/has-children.js.map +1 -1
  440. package/lib/helpers/index.js.map +1 -1
  441. package/lib/helpers/inject-banner.js.map +1 -1
  442. package/lib/helpers/inject-banners-to-entities.js.map +1 -1
  443. package/lib/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.map +1 -1
  444. package/lib/helpers/inject-multiple-banners/get-banners-for-entities/index.js.map +1 -1
  445. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js +6 -6
  446. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.map +1 -1
  447. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js +3 -3
  448. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js.map +1 -1
  449. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js.map +1 -1
  450. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/index.js.map +1 -1
  451. package/lib/helpers/inject-multiple-banners/index.js.map +1 -1
  452. package/lib/helpers/inject-multiple-banners/inject-multiple-banners.js.map +1 -1
  453. package/lib/helpers/is-browser.js.map +1 -1
  454. package/lib/helpers/is-filter-entitys-id.js +1 -1
  455. package/lib/helpers/is-filter-entitys-id.js.map +1 -1
  456. package/lib/helpers/is-object.js.map +1 -1
  457. package/lib/helpers/is-using-relation-image.js.map +1 -1
  458. package/lib/helpers/parse-TextBlock.js +2 -2
  459. package/lib/helpers/parse-TextBlock.js.map +1 -1
  460. package/lib/helpers/parse-interval.js.map +1 -1
  461. package/lib/helpers/parse-props-to-display.js +4 -4
  462. package/lib/helpers/parse-props-to-display.js.map +1 -1
  463. package/lib/helpers/process-data-summary-value.js +8 -8
  464. package/lib/helpers/process-data-summary-value.js.map +1 -1
  465. package/lib/helpers/remove-extra-items.js.map +1 -1
  466. package/lib/helpers/remove-unwanted-characters.js +6 -6
  467. package/lib/helpers/remove-unwanted-characters.js.map +1 -1
  468. package/lib/helpers/render-children.js +5 -5
  469. package/lib/helpers/render-children.js.map +1 -1
  470. package/lib/helpers/should-render-waypoint.js.map +1 -1
  471. package/lib/helpers/should-show-property.js.map +1 -1
  472. package/lib/helpers/sort-response-data.js +2 -2
  473. package/lib/helpers/sort-response-data.js.map +1 -1
  474. package/lib/helpers/split-children.js +5 -5
  475. package/lib/helpers/split-children.js.map +1 -1
  476. package/lib/helpers/update-childrens-parent.js +3 -3
  477. package/lib/helpers/update-childrens-parent.js.map +1 -1
  478. package/lib/hooks/helpers/RenderComponent.js +1 -1
  479. package/lib/hooks/helpers/RenderComponent.js.map +1 -1
  480. package/lib/hooks/helpers/StoreImages.js +4 -4
  481. package/lib/hooks/helpers/StoreImages.js.map +1 -1
  482. package/lib/hooks/helpers/append-gtm-classname.js +7 -7
  483. package/lib/hooks/helpers/append-gtm-classname.js.map +1 -1
  484. package/lib/hooks/helpers/buildPBComponents.js +7 -7
  485. package/lib/hooks/helpers/buildPBComponents.js.map +1 -1
  486. package/lib/hooks/helpers/check-banner-insertion-set.js.map +1 -1
  487. package/lib/hooks/helpers/check-collisions.js +3 -3
  488. package/lib/hooks/helpers/check-collisions.js.map +1 -1
  489. package/lib/hooks/helpers/constants.js.map +1 -1
  490. package/lib/hooks/helpers/get-banner-index.js.map +1 -1
  491. package/lib/hooks/helpers/get-components-to-insert-by-type.js.map +1 -1
  492. package/lib/hooks/helpers/get-lightbox-images.js +8 -8
  493. package/lib/hooks/helpers/get-lightbox-images.js.map +1 -1
  494. package/lib/hooks/helpers/getComponent.js.map +1 -1
  495. package/lib/hooks/helpers/getVariant.js.map +1 -1
  496. package/lib/hooks/helpers/index.js.map +1 -1
  497. package/lib/hooks/helpers/inject-element-components.js +4 -4
  498. package/lib/hooks/helpers/inject-element-components.js.map +1 -1
  499. package/lib/hooks/helpers/inject-textblock-banners.js +7 -7
  500. package/lib/hooks/helpers/inject-textblock-banners.js.map +1 -1
  501. package/lib/hooks/helpers/insert-banners.js +9 -9
  502. package/lib/hooks/helpers/insert-banners.js.map +1 -1
  503. package/lib/hooks/helpers/update-targetings.js.map +1 -1
  504. package/lib/hooks/index.js.map +1 -1
  505. package/lib/hooks/use-app-sync-event-hook.js.map +1 -1
  506. package/lib/hooks/use-banner-insertion.js +1 -1
  507. package/lib/hooks/use-banner-insertion.js.map +1 -1
  508. package/lib/hooks/use-check-mobile-screen.js.map +1 -1
  509. package/lib/hooks/use-get-entity-schema.js.map +1 -1
  510. package/lib/hooks/use-get-entity-schemas-as-obj.js +1 -1
  511. package/lib/hooks/use-get-entity-schemas-as-obj.js.map +1 -1
  512. package/lib/hooks/use-get-image-id-from-relation.js +1 -1
  513. package/lib/hooks/use-get-image-id-from-relation.js.map +1 -1
  514. package/lib/hooks/use-get-images.js.map +1 -1
  515. package/lib/hooks/use-get-single-entity-schema.js.map +1 -1
  516. package/lib/hooks/use-page-builder.js.map +1 -1
  517. package/lib/index.js.map +1 -1
  518. package/lib/utils/component-map.js +1 -1
  519. package/lib/utils/component-map.js.map +1 -1
  520. package/lib/utils/get-class-modifiers.js +7 -7
  521. package/lib/utils/get-class-modifiers.js.map +1 -1
  522. package/lib/utils/get-image-data.js.map +1 -1
  523. package/lib/utils/get-props-to-display-modifiers.js.map +1 -1
  524. package/lib/utils/index.js.map +1 -1
  525. package/lib/utils/is-object-empty.js.map +1 -1
  526. package/lib/utils/variant-handler.js +1 -1
  527. package/lib/utils/variant-handler.js.map +1 -1
  528. package/lib/variants/HeroImage/index.js +5 -5
  529. package/lib/variants/HeroImage/index.js.map +1 -1
  530. package/lib/variants/Infographic/Infographic.js.map +1 -1
  531. package/lib/variants/Infographic/index.js +5 -5
  532. package/lib/variants/Infographic/index.js.map +1 -1
  533. package/lib/variants/Infographic/useInfographic.js +5 -5
  534. package/lib/variants/Infographic/useInfographic.js.map +1 -1
  535. package/lib/variants/LongformGallery/LongformGallery.js.map +1 -1
  536. package/lib/variants/LongformGallery/LongformGalleryImage.js.map +1 -1
  537. package/lib/variants/LongformGallery/constants.js.map +1 -1
  538. package/lib/variants/LongformGallery/helpers/index.js.map +1 -1
  539. package/lib/variants/LongformGallery/helpers/parseImageData.js +3 -3
  540. package/lib/variants/LongformGallery/helpers/parseImageData.js.map +1 -1
  541. package/lib/variants/LongformGallery/helpers/separateImages.js.map +1 -1
  542. package/lib/variants/LongformGallery/helpers/shouldSkip.js.map +1 -1
  543. package/lib/variants/LongformGallery/index.js +6 -6
  544. package/lib/variants/LongformGallery/index.js.map +1 -1
  545. package/lib/variants/LongformGallery/useLongformGallery.js.map +1 -1
  546. package/lib/variants/LongformRow/index.js +5 -5
  547. package/lib/variants/LongformRow/index.js.map +1 -1
  548. package/lib/variants/ParallaxImageTextRight/index.js +5 -5
  549. package/lib/variants/ParallaxImageTextRight/index.js.map +1 -1
  550. package/lib/variants/SlideSummary/SlideSummary.js +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.map +1 -1
  657. package/lib-es/components/DateTime/index.js.map +1 -1
  658. package/lib-es/components/EmailConfirm/EmailConfirm.js.map +1 -1
  659. package/lib-es/components/EmailConfirm/index.js.map +1 -1
  660. package/lib-es/components/EmailConfirm/mutation.js.map +1 -1
  661. package/lib-es/components/Iframe/Iframe.js.map +1 -1
  662. package/lib-es/components/Iframe/constants.js.map +1 -1
  663. package/lib-es/components/Iframe/index.js.map +1 -1
  664. package/lib-es/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
  665. package/lib-es/components/Image/GlobalLightbox/NavButton.js.map +1 -1
  666. package/lib-es/components/Image/GlobalLightbox/index.js.map +1 -1
  667. package/lib-es/components/Image/Image.js.map +1 -1
  668. package/lib-es/components/Image/ImageDetails.js.map +1 -1
  669. package/lib-es/components/Image/ImageFactory.js.map +1 -1
  670. package/lib-es/components/Image/ImageRender.js.map +1 -1
  671. package/lib-es/components/Image/Lightbox/Lightbox.js.map +1 -1
  672. package/lib-es/components/Image/Lightbox/index.js.map +1 -1
  673. package/lib-es/components/Image/index.js.map +1 -1
  674. package/lib-es/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
  675. package/lib-es/components/ItemList/ItemListButton/index.js.map +1 -1
  676. package/lib-es/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
  677. package/lib-es/components/ItemList/ItemListCounter/index.js.map +1 -1
  678. package/lib-es/components/ItemList/ItemListNew/ItemListNew.js.map +1 -1
  679. package/lib-es/components/ItemList/ItemListNew/index.js.map +1 -1
  680. package/lib-es/components/ItemList/constants.js.map +1 -1
  681. package/lib-es/components/ItemList/helpers/get-item-list-data.js.map +1 -1
  682. package/lib-es/components/ItemList/helpers/get-item-list-id.js.map +1 -1
  683. package/lib-es/components/ItemList/helpers/get-item-list-ids.js.map +1 -1
  684. package/lib-es/components/ItemList/helpers/index.js.map +1 -1
  685. package/lib-es/components/ItemList/helpers/set-item-list-id.js.map +1 -1
  686. package/lib-es/components/ItemList/helpers/set-param-and-redirect.js.map +1 -1
  687. package/lib-es/components/ItemList/hooks/index.js.map +1 -1
  688. package/lib-es/components/ItemList/hooks/use-item-list-id.js.map +1 -1
  689. package/lib-es/components/Layout/Layout.js.map +1 -1
  690. package/lib-es/components/Layout/LayoutFactory.js.map +1 -1
  691. package/lib-es/components/Layout/LayoutWithStickyTimer.js.map +1 -1
  692. package/lib-es/components/Layout/constants.js.map +1 -1
  693. package/lib-es/components/Layout/helpers/check-if-row-has-columns.js.map +1 -1
  694. package/lib-es/components/Layout/helpers/get-styles-to-update.js.map +1 -1
  695. package/lib-es/components/Layout/helpers/index.js.map +1 -1
  696. package/lib-es/components/Layout/index.js.map +1 -1
  697. package/lib-es/components/LazyImage/LazyImage.js.map +1 -1
  698. package/lib-es/components/LazyImage/index.js.map +1 -1
  699. package/lib-es/components/List/ListBuilder.js.map +1 -1
  700. package/lib-es/components/List/ListFactory.js.map +1 -1
  701. package/lib-es/components/List/ListRender.js.map +1 -1
  702. package/lib-es/components/List/components/Cards/CardRenderWithInfiniteScroll.js.map +1 -1
  703. package/lib-es/components/List/components/Cards/CardsRender.js.map +1 -1
  704. package/lib-es/components/List/components/Cards/CardsRenderItem.js.map +1 -1
  705. package/lib-es/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
  706. package/lib-es/components/List/components/Cards/index.js.map +1 -1
  707. package/lib-es/components/List/components/Full/FullRender.js.map +1 -1
  708. package/lib-es/components/List/components/Full/FullRenderItem.js.map +1 -1
  709. package/lib-es/components/List/components/Full/FullRenderWithInfiniteScroll.js.map +1 -1
  710. package/lib-es/components/List/components/Full/index.js.map +1 -1
  711. package/lib-es/components/List/components/Header/ListHeader.js.map +1 -1
  712. package/lib-es/components/List/components/Header/index.js.map +1 -1
  713. package/lib-es/components/List/components/Pagination/Classic.js.map +1 -1
  714. package/lib-es/components/List/components/Pagination/ListPagination.js.map +1 -1
  715. package/lib-es/components/List/components/Pagination/LoadMore.js.map +1 -1
  716. package/lib-es/components/List/components/Pagination/index.js.map +1 -1
  717. package/lib-es/components/List/components/helpers/check-if-should-render-banner.js.map +1 -1
  718. package/lib-es/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -1
  719. package/lib-es/components/List/components/helpers/index.js.map +1 -1
  720. package/lib-es/components/List/components/index.js.map +1 -1
  721. package/lib-es/components/List/constants.js.map +1 -1
  722. package/lib-es/components/List/helpers/build-az-aggregations.js.map +1 -1
  723. package/lib-es/components/List/helpers/build-az-url.js.map +1 -1
  724. package/lib-es/components/List/helpers/build-pagination-items.js.map +1 -1
  725. package/lib-es/components/List/helpers/build-pagination-url.js.map +1 -1
  726. package/lib-es/components/List/helpers/build-query-booster.js.map +1 -1
  727. package/lib-es/components/List/helpers/get-az-query-filter.js.map +1 -1
  728. package/lib-es/components/List/helpers/get-items-per-page-to-use.js.map +1 -1
  729. package/lib-es/components/List/helpers/get-list-component.js.map +1 -1
  730. package/lib-es/components/List/helpers/get-list-query.js.map +1 -1
  731. package/lib-es/components/List/helpers/get-list-specific-search-filter.js.map +1 -1
  732. package/lib-es/components/List/helpers/get-sort-props.js.map +1 -1
  733. package/lib-es/components/List/helpers/has-required-item-list-details.js.map +1 -1
  734. package/lib-es/components/List/helpers/index.js.map +1 -1
  735. package/lib-es/components/List/helpers/sort-aggs.js.map +1 -1
  736. package/lib-es/components/List/helpers/strip-query-key.js.map +1 -1
  737. package/lib-es/components/List/index.js.map +1 -1
  738. package/lib-es/components/Menu/Menu.js.map +1 -1
  739. package/lib-es/components/Menu/MenuContext.js.map +1 -1
  740. package/lib-es/components/Menu/index.js.map +1 -1
  741. package/lib-es/components/MenuItem/MenuItem.js.map +1 -1
  742. package/lib-es/components/MenuItem/index.js.map +1 -1
  743. package/lib-es/components/Modal/Modal.js.map +1 -1
  744. package/lib-es/components/Modal/index.js.map +1 -1
  745. package/lib-es/components/SearchContent/SearchContent.js.map +1 -1
  746. package/lib-es/components/SearchContent/SearchContentItems.js.map +1 -1
  747. package/lib-es/components/SearchContent/SearchContentResults.js.map +1 -1
  748. package/lib-es/components/SearchContent/SearchContentToggleIcon.js.map +1 -1
  749. package/lib-es/components/SearchContent/constants.js.map +1 -1
  750. package/lib-es/components/SearchContent/index.js.map +1 -1
  751. package/lib-es/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
  752. package/lib-es/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
  753. package/lib-es/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -1
  754. package/lib-es/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
  755. package/lib-es/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
  756. package/lib-es/components/SearchFilter/SearchFilter/index.js.map +1 -1
  757. package/lib-es/components/SearchFilter/SearchFilterContainer.js.map +1 -1
  758. package/lib-es/components/SearchFilter/components/Checkbox.js.map +1 -1
  759. package/lib-es/components/SearchFilter/components/Range.js.map +1 -1
  760. package/lib-es/components/SearchFilter/components/Select.js.map +1 -1
  761. package/lib-es/components/SearchFilter/components/TextSearch.js.map +1 -1
  762. package/lib-es/components/SearchFilter/components/index.js.map +1 -1
  763. package/lib-es/components/SearchFilter/constants.js.map +1 -1
  764. package/lib-es/components/SearchFilter/helpers/build-filters-query.js.map +1 -1
  765. package/lib-es/components/SearchFilter/helpers/build-new-url.js.map +1 -1
  766. package/lib-es/components/SearchFilter/helpers/build-raw-query-stringified.js.map +1 -1
  767. package/lib-es/components/SearchFilter/helpers/build-url-query.js.map +1 -1
  768. package/lib-es/components/SearchFilter/helpers/calculate-min-max.js.map +1 -1
  769. package/lib-es/components/SearchFilter/helpers/calculate-step.js.map +1 -1
  770. package/lib-es/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -1
  771. package/lib-es/components/SearchFilter/helpers/decode-encode.js.map +1 -1
  772. package/lib-es/components/SearchFilter/helpers/get-display-value.js.map +1 -1
  773. package/lib-es/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js.map +1 -1
  774. package/lib-es/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
  775. package/lib-es/components/SearchFilter/helpers/get-filter-values.js.map +1 -1
  776. package/lib-es/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -1
  777. package/lib-es/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -1
  778. package/lib-es/components/SearchFilter/helpers/get-range-value.js.map +1 -1
  779. package/lib-es/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
  780. package/lib-es/components/SearchFilter/helpers/get-select-options.js.map +1 -1
  781. package/lib-es/components/SearchFilter/helpers/get-updated-filter-by.js.map +1 -1
  782. package/lib-es/components/SearchFilter/helpers/index.js.map +1 -1
  783. package/lib-es/components/SearchFilter/helpers/is-device-desktop.js.map +1 -1
  784. package/lib-es/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
  785. package/lib-es/components/SearchFilter/index.js.map +1 -1
  786. package/lib-es/components/SearchFilter/searchFilterReducer.js.map +1 -1
  787. package/lib-es/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
  788. package/lib-es/components/SearchFilterSort/constants.js.map +1 -1
  789. package/lib-es/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
  790. package/lib-es/components/SearchFilterSort/helpers/index.js.map +1 -1
  791. package/lib-es/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
  792. package/lib-es/components/SearchFilterSort/index.js.map +1 -1
  793. package/lib-es/components/SocialFollow/SFItem.js.map +1 -1
  794. package/lib-es/components/SocialFollow/SocialFollow.js.map +1 -1
  795. package/lib-es/components/SocialFollow/SocialFollowRender.js.map +1 -1
  796. package/lib-es/components/SocialFollow/index.js.map +1 -1
  797. package/lib-es/components/SocialFollow/sf.config.js.map +1 -1
  798. package/lib-es/components/SubMenu/SubMenu.js.map +1 -1
  799. package/lib-es/components/SubMenu/index.js.map +1 -1
  800. package/lib-es/components/TextBlock/TextBlockRender.js.map +1 -1
  801. package/lib-es/components/TextBlock/index.js.map +1 -1
  802. package/lib-es/components/Video/Video.js.map +1 -1
  803. package/lib-es/components/Video/VideoModal.js.map +1 -1
  804. package/lib-es/components/Video/VideoRender.js.map +1 -1
  805. package/lib-es/components/Video/index.js.map +1 -1
  806. package/lib-es/components/Video/providers/Default.js.map +1 -1
  807. package/lib-es/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
  808. package/lib-es/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
  809. package/lib-es/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
  810. package/lib-es/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js.map +1 -1
  811. package/lib-es/components/Video/providers/Vimeo/helpers/index.js.map +1 -1
  812. package/lib-es/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
  813. package/lib-es/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
  814. package/lib-es/components/Video/providers/YouTube/helpers/index.js.map +1 -1
  815. package/lib-es/components/Video/providers/get-provider.js.map +1 -1
  816. package/lib-es/components/Video/providers/index.js.map +1 -1
  817. package/lib-es/components/Wrapper.js.map +1 -1
  818. package/lib-es/components/index.js.map +1 -1
  819. package/lib-es/constants/componentsDefaultValues.js.map +1 -1
  820. package/lib-es/constants/index.js.map +1 -1
  821. package/lib-es/helpers/append-images.js.map +1 -1
  822. package/lib-es/helpers/build-az-filter.js.map +1 -1
  823. package/lib-es/helpers/build-checkbox-filters.js.map +1 -1
  824. package/lib-es/helpers/build-image-properties.js.map +1 -1
  825. package/lib-es/helpers/build-inherited-filters.js.map +1 -1
  826. package/lib-es/helpers/build-link-extra-props.js.map +1 -1
  827. package/lib-es/helpers/build-props-query.js.map +1 -1
  828. package/lib-es/helpers/build-query-fields.js.map +1 -1
  829. package/lib-es/helpers/build-query-key.js.map +1 -1
  830. package/lib-es/helpers/build-raw-query-base.js.map +1 -1
  831. package/lib-es/helpers/build-raw-query.js.map +1 -1
  832. package/lib-es/helpers/build-search-values-checkbox-select.js.map +1 -1
  833. package/lib-es/helpers/build-search-values-text.js.map +1 -1
  834. package/lib-es/helpers/build-set-filters.js.map +1 -1
  835. package/lib-es/helpers/build-sort-values.js.map +1 -1
  836. package/lib-es/helpers/check-for-error.js.map +1 -1
  837. package/lib-es/helpers/check-props-to-use.js.map +1 -1
  838. package/lib-es/helpers/entities/constants.js.map +1 -1
  839. package/lib-es/helpers/get-banner-data.js.map +1 -1
  840. package/lib-es/helpers/get-checkbox-filters.js.map +1 -1
  841. package/lib-es/helpers/get-click-wrapper-options.js.map +1 -1
  842. package/lib-es/helpers/get-current-offset.js.map +1 -1
  843. package/lib-es/helpers/get-dictionary-match.js.map +1 -1
  844. package/lib-es/helpers/get-display-count-data.js.map +1 -1
  845. package/lib-es/helpers/get-elasticsearch-operator.js.map +1 -1
  846. package/lib-es/helpers/get-entities-with-banner.js.map +1 -1
  847. package/lib-es/helpers/get-entity-data.js.map +1 -1
  848. package/lib-es/helpers/get-entity-render-props.js.map +1 -1
  849. package/lib-es/helpers/get-extra-az-bits.js.map +1 -1
  850. package/lib-es/helpers/get-filter-props.js.map +1 -1
  851. package/lib-es/helpers/get-filter-relation-keys.js.map +1 -1
  852. package/lib-es/helpers/get-generic-props.js.map +1 -1
  853. package/lib-es/helpers/get-generic-render-variables.js.map +1 -1
  854. package/lib-es/helpers/get-image-ids.js.map +1 -1
  855. package/lib-es/helpers/get-inherited-filters.js.map +1 -1
  856. package/lib-es/helpers/get-items-to-display-ids.js.map +1 -1
  857. package/lib-es/helpers/get-modifiers.js.map +1 -1
  858. package/lib-es/helpers/get-not-equal-query.js.map +1 -1
  859. package/lib-es/helpers/get-pagination-index.js.map +1 -1
  860. package/lib-es/helpers/get-parsed-prop-values.js.map +1 -1
  861. package/lib-es/helpers/get-parsed-summary-value.js.map +1 -1
  862. package/lib-es/helpers/get-prop-values.js.map +1 -1
  863. package/lib-es/helpers/get-query-filters.js.map +1 -1
  864. package/lib-es/helpers/get-query-props.js.map +1 -1
  865. package/lib-es/helpers/get-required-schemas.js.map +1 -1
  866. package/lib-es/helpers/get-sanitized-prop-values.js.map +1 -1
  867. package/lib-es/helpers/get-search-filter-type.js.map +1 -1
  868. package/lib-es/helpers/get-sort-by-field-name.js.map +1 -1
  869. package/lib-es/helpers/get-unpublished-entity-name.js.map +1 -1
  870. package/lib-es/helpers/get-updated-filter-by.js.map +1 -1
  871. package/lib-es/helpers/get-wrapped-value-with-link.js.map +1 -1
  872. package/lib-es/helpers/group-entities.js.map +1 -1
  873. package/lib-es/helpers/has-children.js.map +1 -1
  874. package/lib-es/helpers/index.js.map +1 -1
  875. package/lib-es/helpers/inject-banner.js.map +1 -1
  876. package/lib-es/helpers/inject-banners-to-entities.js.map +1 -1
  877. package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.map +1 -1
  878. package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/index.js.map +1 -1
  879. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.map +1 -1
  880. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js.map +1 -1
  881. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js.map +1 -1
  882. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/index.js.map +1 -1
  883. package/lib-es/helpers/inject-multiple-banners/index.js.map +1 -1
  884. package/lib-es/helpers/inject-multiple-banners/inject-multiple-banners.js.map +1 -1
  885. package/lib-es/helpers/is-browser.js.map +1 -1
  886. package/lib-es/helpers/is-filter-entitys-id.js.map +1 -1
  887. package/lib-es/helpers/is-object.js.map +1 -1
  888. package/lib-es/helpers/is-using-relation-image.js.map +1 -1
  889. package/lib-es/helpers/parse-TextBlock.js.map +1 -1
  890. package/lib-es/helpers/parse-interval.js.map +1 -1
  891. package/lib-es/helpers/parse-props-to-display.js.map +1 -1
  892. package/lib-es/helpers/process-data-summary-value.js.map +1 -1
  893. package/lib-es/helpers/remove-extra-items.js.map +1 -1
  894. package/lib-es/helpers/remove-unwanted-characters.js.map +1 -1
  895. package/lib-es/helpers/render-children.js.map +1 -1
  896. package/lib-es/helpers/should-render-waypoint.js.map +1 -1
  897. package/lib-es/helpers/should-show-property.js.map +1 -1
  898. package/lib-es/helpers/sort-response-data.js.map +1 -1
  899. package/lib-es/helpers/split-children.js.map +1 -1
  900. package/lib-es/helpers/update-childrens-parent.js.map +1 -1
  901. package/lib-es/hooks/helpers/RenderComponent.js.map +1 -1
  902. package/lib-es/hooks/helpers/StoreImages.js.map +1 -1
  903. package/lib-es/hooks/helpers/append-gtm-classname.js.map +1 -1
  904. package/lib-es/hooks/helpers/buildPBComponents.js.map +1 -1
  905. package/lib-es/hooks/helpers/check-banner-insertion-set.js.map +1 -1
  906. package/lib-es/hooks/helpers/check-collisions.js.map +1 -1
  907. package/lib-es/hooks/helpers/constants.js.map +1 -1
  908. package/lib-es/hooks/helpers/get-banner-index.js.map +1 -1
  909. package/lib-es/hooks/helpers/get-components-to-insert-by-type.js.map +1 -1
  910. package/lib-es/hooks/helpers/get-lightbox-images.js.map +1 -1
  911. package/lib-es/hooks/helpers/getComponent.js.map +1 -1
  912. package/lib-es/hooks/helpers/getVariant.js.map +1 -1
  913. package/lib-es/hooks/helpers/index.js.map +1 -1
  914. package/lib-es/hooks/helpers/inject-element-components.js.map +1 -1
  915. package/lib-es/hooks/helpers/inject-textblock-banners.js.map +1 -1
  916. package/lib-es/hooks/helpers/insert-banners.js.map +1 -1
  917. package/lib-es/hooks/helpers/update-targetings.js.map +1 -1
  918. package/lib-es/hooks/index.js.map +1 -1
  919. package/lib-es/hooks/use-app-sync-event-hook.js.map +1 -1
  920. package/lib-es/hooks/use-banner-insertion.js.map +1 -1
  921. package/lib-es/hooks/use-check-mobile-screen.js.map +1 -1
  922. package/lib-es/hooks/use-get-entity-schema.js.map +1 -1
  923. package/lib-es/hooks/use-get-entity-schemas-as-obj.js.map +1 -1
  924. package/lib-es/hooks/use-get-image-id-from-relation.js.map +1 -1
  925. package/lib-es/hooks/use-get-images.js.map +1 -1
  926. package/lib-es/hooks/use-get-single-entity-schema.js.map +1 -1
  927. package/lib-es/hooks/use-page-builder.js.map +1 -1
  928. package/lib-es/index.js.map +1 -1
  929. package/lib-es/utils/component-map.js.map +1 -1
  930. package/lib-es/utils/get-class-modifiers.js.map +1 -1
  931. package/lib-es/utils/get-image-data.js.map +1 -1
  932. package/lib-es/utils/get-props-to-display-modifiers.js.map +1 -1
  933. package/lib-es/utils/index.js.map +1 -1
  934. package/lib-es/utils/is-object-empty.js.map +1 -1
  935. package/lib-es/utils/variant-handler.js.map +1 -1
  936. package/lib-es/variants/HeroImage/index.js.map +1 -1
  937. package/lib-es/variants/Infographic/Infographic.js.map +1 -1
  938. package/lib-es/variants/Infographic/index.js.map +1 -1
  939. package/lib-es/variants/Infographic/useInfographic.js.map +1 -1
  940. package/lib-es/variants/LongformGallery/LongformGallery.js.map +1 -1
  941. package/lib-es/variants/LongformGallery/LongformGalleryImage.js.map +1 -1
  942. package/lib-es/variants/LongformGallery/constants.js.map +1 -1
  943. package/lib-es/variants/LongformGallery/helpers/index.js.map +1 -1
  944. package/lib-es/variants/LongformGallery/helpers/parseImageData.js.map +1 -1
  945. package/lib-es/variants/LongformGallery/helpers/separateImages.js.map +1 -1
  946. package/lib-es/variants/LongformGallery/helpers/shouldSkip.js.map +1 -1
  947. package/lib-es/variants/LongformGallery/index.js.map +1 -1
  948. package/lib-es/variants/LongformGallery/useLongformGallery.js.map +1 -1
  949. package/lib-es/variants/LongformRow/index.js.map +1 -1
  950. package/lib-es/variants/ParallaxImageTextRight/index.js.map +1 -1
  951. package/lib-es/variants/SlideSummary/SlideSummary.js +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 +2 -2
  962. package/src/variants/SlideSummary/SlideSummary.js +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"SearchContentResults.js","names":["React","BlazeLink","SearchContentItems","SearchContentResults","results","debouncedSearchTerm","onClick","hasResults","length","createElement","className","href"],"sources":["../../../src/components/SearchContent/SearchContentResults.js"],"sourcesContent":["import React from 'react';\nimport BlazeLink from '../BlazeLink';\nimport SearchContentItems from './SearchContentItems';\n\nconst SearchContentResults = ({ results, debouncedSearchTerm, onClick }) => {\n if (!debouncedSearchTerm) return null;\n const hasResults = results.length > 0;\n return (\n <div className=\"search-content--results__wrapper\">\n <div className=\"search-content--results__wrapper--message\">\n <div className=\"search-content--results__content\">\n {hasResults ? (\n <SearchContentItems results={results} onClick={onClick} />\n ) : (\n <div className=\"search-content--results__message\">\n <BlazeLink href={`/search?search_term=${debouncedSearchTerm}`}>\n {`Search all results for: ${debouncedSearchTerm}`}\n </BlazeLink>\n </div>\n )}\n </div>\n </div>\n </div>\n );\n};\n\nexport default SearchContentResults;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,cAAc;AACpC,OAAOC,kBAAkB,MAAM,sBAAsB;AAErD,MAAMC,oBAAoB,GAAGA,CAAC;EAAEC,OAAO;EAAEC,mBAAmB;EAAEC;AAAQ,CAAC,KAAK;EAC1E,IAAI,CAACD,mBAAmB,EAAE,OAAO,IAAI;EACrC,MAAME,UAAU,GAAGH,OAAO,CAACI,MAAM,GAAG,CAAC;EACrC,oBACER,KAAA,CAAAS,aAAA;IAAKC,SAAS,EAAC;EAAkC,gBAC/CV,KAAA,CAAAS,aAAA;IAAKC,SAAS,EAAC;EAA2C,gBACxDV,KAAA,CAAAS,aAAA;IAAKC,SAAS,EAAC;EAAkC,GAC9CH,UAAU,gBACTP,KAAA,CAAAS,aAAA,CAACP,kBAAkB;IAACE,OAAO,EAAEA,OAAQ;IAACE,OAAO,EAAEA;EAAQ,CAAE,CAAC,gBAE1DN,KAAA,CAAAS,aAAA;IAAKC,SAAS,EAAC;EAAkC,gBAC/CV,KAAA,CAAAS,aAAA,CAACR,SAAS;IAACU,IAAI,EAAG,uBAAsBN,mBAAoB;EAAE,GAC1D,2BAA0BA,mBAAoB,EACvC,CACR,CAEJ,CACF,CACF,CAAC;AAEV,CAAC;AAED,eAAeF,oBAAoB","ignoreList":[]}
1
+ {"version":3,"file":"SearchContentResults.js","names":["React","BlazeLink","SearchContentItems","SearchContentResults","results","debouncedSearchTerm","onClick","hasResults","length","createElement","className","href"],"sources":["../../../src/components/SearchContent/SearchContentResults.js"],"sourcesContent":["import React from 'react';\nimport BlazeLink from '../BlazeLink';\nimport SearchContentItems from './SearchContentItems';\n\nconst SearchContentResults = ({ results, debouncedSearchTerm, onClick }) => {\n if (!debouncedSearchTerm) return null;\n const hasResults = results.length > 0;\n return (\n <div className=\"search-content--results__wrapper\">\n <div className=\"search-content--results__wrapper--message\">\n <div className=\"search-content--results__content\">\n {hasResults ? (\n <SearchContentItems results={results} onClick={onClick} />\n ) : (\n <div className=\"search-content--results__message\">\n <BlazeLink href={`/search?search_term=${debouncedSearchTerm}`}>\n {`Search all results for: ${debouncedSearchTerm}`}\n </BlazeLink>\n </div>\n )}\n </div>\n </div>\n </div>\n );\n};\n\nexport default SearchContentResults;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,cAAc;AACpC,OAAOC,kBAAkB,MAAM,sBAAsB;AAErD,MAAMC,oBAAoB,GAAGA,CAAC;EAAEC,OAAO;EAAEC,mBAAmB;EAAEC;AAAQ,CAAC,KAAK;EAC1E,IAAI,CAACD,mBAAmB,EAAE,OAAO,IAAI;EACrC,MAAME,UAAU,GAAGH,OAAO,CAACI,MAAM,GAAG,CAAC;EACrC,oBACER,KAAA,CAAAS,aAAA;IAAKC,SAAS,EAAC;EAAkC,gBAC/CV,KAAA,CAAAS,aAAA;IAAKC,SAAS,EAAC;EAA2C,gBACxDV,KAAA,CAAAS,aAAA;IAAKC,SAAS,EAAC;EAAkC,GAC9CH,UAAU,gBACTP,KAAA,CAAAS,aAAA,CAACP,kBAAkB;IAACE,OAAO,EAAEA,OAAQ;IAACE,OAAO,EAAEA;EAAQ,CAAE,CAAC,gBAE1DN,KAAA,CAAAS,aAAA;IAAKC,SAAS,EAAC;EAAkC,gBAC/CV,KAAA,CAAAS,aAAA,CAACR,SAAS;IAACU,IAAI,EAAG,uBAAsBN,mBAAoB;EAAE,GAC1D,2BAA0BA,mBAAoB,EACvC,CACR,CAEJ,CACF,CACF,CAAC;AAEV,CAAC;AAED,eAAeF,oBAAoB"}
@@ -1 +1 @@
1
- {"version":3,"file":"SearchContentToggleIcon.js","names":["React","CLOSE_ICON","SEARCH_ICON","SearchContentToggleIcon","onClick","useCloseIcon","createElement","className","viewBox","fillRule","clipRule","d"],"sources":["../../../src/components/SearchContent/SearchContentToggleIcon.js"],"sourcesContent":["import React from 'react';\nimport { CLOSE_ICON, SEARCH_ICON } from './constants';\n\nconst SearchContentToggleIcon = ({ onClick, useCloseIcon }) => (\n <svg\n className=\"search-content--expanded__icon\"\n viewBox=\"0 0 20 20\"\n onClick={onClick}\n data-testid={useCloseIcon ? 'search-content-icon-close' : 'search-content-icon'}>\n <path fillRule=\"evenodd\" clipRule=\"evenodd\" d={useCloseIcon ? CLOSE_ICON : SEARCH_ICON} />\n </svg>\n);\n\nexport default SearchContentToggleIcon;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,WAAW,QAAQ,aAAa;AAErD,MAAMC,uBAAuB,GAAGA,CAAC;EAAEC,OAAO;EAAEC;AAAa,CAAC,kBACxDL,KAAA,CAAAM,aAAA;EACEC,SAAS,EAAC,gCAAgC;EAC1CC,OAAO,EAAC,WAAW;EACnBJ,OAAO,EAAEA,OAAQ;EACjB,eAAaC,YAAY,GAAG,2BAA2B,GAAG;AAAsB,gBAChFL,KAAA,CAAAM,aAAA;EAAMG,QAAQ,EAAC,SAAS;EAACC,QAAQ,EAAC,SAAS;EAACC,CAAC,EAAEN,YAAY,GAAGJ,UAAU,GAAGC;AAAY,CAAE,CACtF,CACN;AAED,eAAeC,uBAAuB","ignoreList":[]}
1
+ {"version":3,"file":"SearchContentToggleIcon.js","names":["React","CLOSE_ICON","SEARCH_ICON","SearchContentToggleIcon","onClick","useCloseIcon","createElement","className","viewBox","fillRule","clipRule","d"],"sources":["../../../src/components/SearchContent/SearchContentToggleIcon.js"],"sourcesContent":["import React from 'react';\nimport { CLOSE_ICON, SEARCH_ICON } from './constants';\n\nconst SearchContentToggleIcon = ({ onClick, useCloseIcon }) => (\n <svg\n className=\"search-content--expanded__icon\"\n viewBox=\"0 0 20 20\"\n onClick={onClick}\n data-testid={useCloseIcon ? 'search-content-icon-close' : 'search-content-icon'}>\n <path fillRule=\"evenodd\" clipRule=\"evenodd\" d={useCloseIcon ? CLOSE_ICON : SEARCH_ICON} />\n </svg>\n);\n\nexport default SearchContentToggleIcon;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,WAAW,QAAQ,aAAa;AAErD,MAAMC,uBAAuB,GAAGA,CAAC;EAAEC,OAAO;EAAEC;AAAa,CAAC,kBACxDL,KAAA,CAAAM,aAAA;EACEC,SAAS,EAAC,gCAAgC;EAC1CC,OAAO,EAAC,WAAW;EACnBJ,OAAO,EAAEA,OAAQ;EACjB,eAAaC,YAAY,GAAG,2BAA2B,GAAG;AAAsB,gBAChFL,KAAA,CAAAM,aAAA;EAAMG,QAAQ,EAAC,SAAS;EAACC,QAAQ,EAAC,SAAS;EAACC,CAAC,EAAEN,YAAY,GAAGJ,UAAU,GAAGC;AAAY,CAAE,CACtF,CACN;AAED,eAAeC,uBAAuB"}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","names":["SEARCH_ICON","CLOSE_ICON"],"sources":["../../../src/components/SearchContent/constants.js"],"sourcesContent":["const SEARCH_ICON =\n 'M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z';\nconst CLOSE_ICON =\n 'M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z';\n\nexport { SEARCH_ICON, CLOSE_ICON };\n"],"mappings":"AAAA,MAAMA,WAAW,GACf,kHAAkH;AACpH,MAAMC,UAAU,GACd,oMAAoM;AAEtM,SAASD,WAAW,EAAEC,UAAU","ignoreList":[]}
1
+ {"version":3,"file":"constants.js","names":["SEARCH_ICON","CLOSE_ICON"],"sources":["../../../src/components/SearchContent/constants.js"],"sourcesContent":["const SEARCH_ICON =\n 'M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z';\nconst CLOSE_ICON =\n 'M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z';\n\nexport { SEARCH_ICON, CLOSE_ICON };\n"],"mappings":"AAAA,MAAMA,WAAW,GACf,kHAAkH;AACpH,MAAMC,UAAU,GACd,oMAAoM;AAEtM,SAASD,WAAW,EAAEC,UAAU"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["SearchContent"],"sources":["../../../src/components/SearchContent/index.js"],"sourcesContent":["import SearchContent from './SearchContent';\n\nexport default SearchContent;\n"],"mappings":"AAAA,OAAOA,aAAa,MAAM,iBAAiB;AAE3C,eAAeA,aAAa","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["SearchContent"],"sources":["../../../src/components/SearchContent/index.js"],"sourcesContent":["import SearchContent from './SearchContent';\n\nexport default SearchContent;\n"],"mappings":"AAAA,OAAOA,aAAa,MAAM,iBAAiB;AAE3C,eAAeA,aAAa"}
@@ -1 +1 @@
1
- {"version":3,"file":"CloseMobileForm.js","names":["React","PropTypes","MdClose","MOBILE_REFINEMENT_TITLE","CloseMobileForm","handleClose","createElement","className","role","onClick","propTypes","func","isRequired"],"sources":["../../../../src/components/SearchFilter/SearchFilter/CloseMobileForm.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { MdClose } from 'react-icons/md';\nimport { MOBILE_REFINEMENT_TITLE } from '../constants';\n\nconst CloseMobileForm = ({ handleClose }) => (\n <div className=\"filter__header filter__header--mobile\">\n <p>{MOBILE_REFINEMENT_TITLE}</p>\n\n <i role=\"button\" onClick={handleClose} aria-label=\"Close\">\n <MdClose />\n </i>\n </div>\n);\n\nCloseMobileForm.propTypes = {\n handleClose: PropTypes.func.isRequired\n};\n\nexport default CloseMobileForm;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,OAAO,QAAQ,gBAAgB;AACxC,SAASC,uBAAuB,QAAQ,cAAc;AAEtD,MAAMC,eAAe,GAAGA,CAAC;EAAEC;AAAY,CAAC,kBACtCL,KAAA,CAAAM,aAAA;EAAKC,SAAS,EAAC;AAAuC,gBACpDP,KAAA,CAAAM,aAAA,YAAIH,uBAA2B,CAAC,eAEhCH,KAAA,CAAAM,aAAA;EAAGE,IAAI,EAAC,QAAQ;EAACC,OAAO,EAAEJ,WAAY;EAAC,cAAW;AAAO,gBACvDL,KAAA,CAAAM,aAAA,CAACJ,OAAO,MAAE,CACT,CACA,CACN;AAEDE,eAAe,CAACM,SAAS,GAAG;EAC1BL,WAAW,EAAEJ,SAAS,CAACU,IAAI,CAACC;AAC9B,CAAC;AAED,eAAeR,eAAe","ignoreList":[]}
1
+ {"version":3,"file":"CloseMobileForm.js","names":["React","PropTypes","MdClose","MOBILE_REFINEMENT_TITLE","CloseMobileForm","handleClose","createElement","className","role","onClick","propTypes","func","isRequired"],"sources":["../../../../src/components/SearchFilter/SearchFilter/CloseMobileForm.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { MdClose } from 'react-icons/md';\nimport { MOBILE_REFINEMENT_TITLE } from '../constants';\n\nconst CloseMobileForm = ({ handleClose }) => (\n <div className=\"filter__header filter__header--mobile\">\n <p>{MOBILE_REFINEMENT_TITLE}</p>\n\n <i role=\"button\" onClick={handleClose} aria-label=\"Close\">\n <MdClose />\n </i>\n </div>\n);\n\nCloseMobileForm.propTypes = {\n handleClose: PropTypes.func.isRequired\n};\n\nexport default CloseMobileForm;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,OAAO,QAAQ,gBAAgB;AACxC,SAASC,uBAAuB,QAAQ,cAAc;AAEtD,MAAMC,eAAe,GAAGA,CAAC;EAAEC;AAAY,CAAC,kBACtCL,KAAA,CAAAM,aAAA;EAAKC,SAAS,EAAC;AAAuC,gBACpDP,KAAA,CAAAM,aAAA,YAAIH,uBAA2B,CAAC,eAEhCH,KAAA,CAAAM,aAAA;EAAGE,IAAI,EAAC,QAAQ;EAACC,OAAO,EAAEJ,WAAY;EAAC,cAAW;AAAO,gBACvDL,KAAA,CAAAM,aAAA,CAACJ,OAAO,MAAE,CACT,CACA,CACN;AAEDE,eAAe,CAACM,SAAS,GAAG;EAC1BL,WAAW,EAAEJ,SAAS,CAACU,IAAI,CAACC;AAC9B,CAAC;AAED,eAAeR,eAAe"}
@@ -1 +1 @@
1
- {"version":3,"file":"FiltersList.js","names":["React","useContext","PropTypes","MainContext","TextSearch","Checkbox","SelectFilter","Range","CHECKBOX","SELECT","TEXT_SEARCH","RANGE","SEARCH_TERM","FiltersList","data","filters","hasUrl","entity","filterValues","updateFilterValues","shouldSearch","itemId","map","_ref","index","type","label","propsToDisplay","elementTitle","otherProps","_objectWithoutProperties","_excluded","length","dynamicKey","join","isDataAvailable","Object","keys","dataAggregations","areAggregationsAvailable","createElement","key","className","_extends","searchValue","prop","propTypes","bool","isRequired","string","object","func","array","defaultProps"],"sources":["../../../../src/components/SearchFilter/SearchFilter/FiltersList.js"],"sourcesContent":["import React, { useContext } from 'react';\nimport PropTypes from 'prop-types';\nimport { MainContext } from '@blaze-cms/nextjs-components';\nimport { TextSearch, Checkbox, SelectFilter, Range } from '../components';\nimport { CHECKBOX, SELECT, TEXT_SEARCH, RANGE, SEARCH_TERM } from '../constants';\n\nconst FiltersList = ({\n data,\n filters,\n hasUrl,\n entity,\n filterValues,\n updateFilterValues,\n shouldSearch\n}) => {\n const { itemId } = useContext(MainContext);\n\n return filters.map(({ type, label, propsToDisplay, elementTitle, ...otherProps }, index) => {\n if (!propsToDisplay && !propsToDisplay.length) return null;\n const dynamicKey = [itemId, index].join('-');\n const isDataAvailable = !!data && Object.keys(data).length;\n const dataAggregations = isDataAvailable ? data : null;\n const areAggregationsAvailable = isDataAvailable && !!dataAggregations;\n\n switch (type) {\n case TEXT_SEARCH:\n return (\n <div\n key={dynamicKey}\n className=\"filter__section filter__section--search-refine filter__section--search\">\n <TextSearch\n {...otherProps}\n label={label}\n elementTitle={elementTitle}\n searchValue={filterValues[SEARCH_TERM]}\n updateFilterValues={updateFilterValues}\n filterValues={filterValues}\n />\n </div>\n );\n case CHECKBOX:\n return (\n <div\n key={dynamicKey}\n className=\"filter__section filter__section--search-refine filter__section--checkboxes\">\n <Checkbox\n {...otherProps}\n data={data}\n prop={propsToDisplay[0]}\n label={label}\n elementTitle={elementTitle}\n hasUrl={hasUrl}\n filterValues={filterValues}\n updateFilterValues={updateFilterValues}\n shouldSearch={shouldSearch}\n />\n </div>\n );\n case SELECT:\n return (\n <div\n key={dynamicKey}\n className=\"filter__section filter__section--search-refine filter__section--selects\">\n <SelectFilter\n {...otherProps}\n data={data}\n prop={propsToDisplay[0]}\n label={label}\n elementTitle={elementTitle}\n hasUrl={hasUrl}\n filterValues={filterValues}\n updateFilterValues={updateFilterValues}\n shouldSearch={shouldSearch}\n />\n </div>\n );\n case RANGE:\n return (\n !!areAggregationsAvailable && (\n <div key={dynamicKey} className=\"range-slider__wrapper\">\n <Range\n {...otherProps}\n dataAggregations={dataAggregations}\n propsToDisplay={propsToDisplay}\n label={label}\n elementTitle={elementTitle}\n entity={entity}\n filterValues={filterValues}\n updateFilterValues={updateFilterValues}\n shouldSearch={shouldSearch}\n />\n </div>\n )\n );\n default:\n return null;\n }\n });\n};\n\nFiltersList.propTypes = {\n hasUrl: PropTypes.bool.isRequired,\n entity: PropTypes.string.isRequired,\n filterValues: PropTypes.object.isRequired,\n updateFilterValues: PropTypes.func.isRequired,\n data: PropTypes.object,\n filters: PropTypes.array,\n shouldSearch: PropTypes.bool\n};\n\nFiltersList.defaultProps = {\n shouldSearch: false,\n data: {},\n filters: []\n};\n\nexport default FiltersList;\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,WAAW,QAAQ,8BAA8B;AAC1D,SAASC,UAAU,EAAEC,QAAQ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3BX,MAAM,EAAEA,MAAO;UACfC,YAAY,EAAEA,YAAa;UAC3BC,kBAAkB,EAAEA,kBAAmB;UACvCC,YAAY,EAAEA;QAAa,EAC5B,CACE,CACN;MAEL;QACE,OAAO,IAAI;IACf;EACF,CAAC,CAAC;AACJ,CAAC;AAEDP,WAAW,CAACiC,SAAS,GAAG;EACtB9B,MAAM,EAAEd,SAAS,CAAC6C,IAAI,CAACC,UAAU;EACjC/B,MAAM,EAAEf,SAAS,CAAC+C,MAAM,CAACD,UAAU;EACnC9B,YAAY,EAAEhB,SAAS,CAACgD,MAAM,CAACF,UAAU;EACzC7B,kBAAkB,EAAEjB,SAAS,CAACiD,IAAI,CAACH,UAAU;EAC7ClC,IAAI,EAAEZ,SAAS,CAACgD,MAAM;EACtBnC,OAAO,EAAEb,SAAS,CAACkD,KAAK;EACxBhC,YAAY,EAAElB,SAAS,CAAC6C;AAC1B,CAAC;AAEDlC,WAAW,CAACwC,YAAY,GAAG;EACzBjC,YAAY,EAAE,KAAK;EACnBN,IAAI,EAAE,CAAC,CAAC;EACRC,OAAO,EAAE;AACX,CAAC;AAED,eAAeF,WAAW","ignoreList":[]}
1
+ {"version":3,"file":"FiltersList.js","names":["React","useContext","PropTypes","MainContext","TextSearch","Checkbox","SelectFilter","Range","CHECKBOX","SELECT","TEXT_SEARCH","RANGE","SEARCH_TERM","FiltersList","data","filters","hasUrl","entity","filterValues","updateFilterValues","shouldSearch","itemId","map","_ref","index","type","label","propsToDisplay","elementTitle","otherProps","_objectWithoutProperties","_excluded","length","dynamicKey","join","isDataAvailable","Object","keys","dataAggregations","areAggregationsAvailable","createElement","key","className","_extends","searchValue","prop","propTypes","bool","isRequired","string","object","func","array","defaultProps"],"sources":["../../../../src/components/SearchFilter/SearchFilter/FiltersList.js"],"sourcesContent":["import React, { useContext } from 'react';\nimport PropTypes from 'prop-types';\nimport { MainContext } from '@blaze-cms/nextjs-components';\nimport { TextSearch, Checkbox, SelectFilter, Range } from '../components';\nimport { CHECKBOX, SELECT, TEXT_SEARCH, RANGE, SEARCH_TERM } from '../constants';\n\nconst FiltersList = ({\n data,\n filters,\n hasUrl,\n entity,\n filterValues,\n updateFilterValues,\n shouldSearch\n}) => {\n const { itemId } = useContext(MainContext);\n\n return filters.map(({ type, label, propsToDisplay, elementTitle, ...otherProps }, index) => {\n if (!propsToDisplay && !propsToDisplay.length) return null;\n const dynamicKey = [itemId, index].join('-');\n const isDataAvailable = !!data && Object.keys(data).length;\n const dataAggregations = isDataAvailable ? data : null;\n const areAggregationsAvailable = isDataAvailable && !!dataAggregations;\n\n switch (type) {\n case TEXT_SEARCH:\n return (\n <div\n key={dynamicKey}\n className=\"filter__section filter__section--search-refine filter__section--search\">\n <TextSearch\n {...otherProps}\n label={label}\n elementTitle={elementTitle}\n searchValue={filterValues[SEARCH_TERM]}\n updateFilterValues={updateFilterValues}\n filterValues={filterValues}\n />\n </div>\n );\n case CHECKBOX:\n return (\n <div\n key={dynamicKey}\n className=\"filter__section filter__section--search-refine filter__section--checkboxes\">\n <Checkbox\n {...otherProps}\n data={data}\n prop={propsToDisplay[0]}\n label={label}\n elementTitle={elementTitle}\n hasUrl={hasUrl}\n filterValues={filterValues}\n updateFilterValues={updateFilterValues}\n shouldSearch={shouldSearch}\n />\n </div>\n );\n case SELECT:\n return (\n <div\n key={dynamicKey}\n className=\"filter__section filter__section--search-refine filter__section--selects\">\n <SelectFilter\n {...otherProps}\n data={data}\n prop={propsToDisplay[0]}\n label={label}\n elementTitle={elementTitle}\n hasUrl={hasUrl}\n filterValues={filterValues}\n updateFilterValues={updateFilterValues}\n shouldSearch={shouldSearch}\n />\n </div>\n );\n case RANGE:\n return (\n !!areAggregationsAvailable && (\n <div key={dynamicKey} className=\"range-slider__wrapper\">\n <Range\n {...otherProps}\n dataAggregations={dataAggregations}\n propsToDisplay={propsToDisplay}\n label={label}\n elementTitle={elementTitle}\n entity={entity}\n filterValues={filterValues}\n updateFilterValues={updateFilterValues}\n shouldSearch={shouldSearch}\n />\n </div>\n )\n );\n default:\n return null;\n }\n });\n};\n\nFiltersList.propTypes = {\n hasUrl: PropTypes.bool.isRequired,\n entity: PropTypes.string.isRequired,\n filterValues: PropTypes.object.isRequired,\n updateFilterValues: PropTypes.func.isRequired,\n data: PropTypes.object,\n filters: PropTypes.array,\n shouldSearch: PropTypes.bool\n};\n\nFiltersList.defaultProps = {\n shouldSearch: false,\n data: {},\n filters: []\n};\n\nexport default FiltersList;\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,WAAW,QAAQ,8BAA8B;AAC1D,SAASC,UAAU,EAAEC,QAAQ,EAAEC,YAAY,EAAEC,KAAK,QAAQ,eAAe;AACzE,SAASC,QAAQ,EAAEC,MAAM,EAAEC,WAAW,EAAEC,KAAK,EAAEC,WAAW,QAAQ,cAAc;AAEhF,MAAMC,WAAW,GAAGA,CAAC;EACnBC,IAAI;EACJC,OAAO;EACPC,MAAM;EACNC,MAAM;EACNC,YAAY;EACZC,kBAAkB;EAClBC;AACF,CAAC,KAAK;EACJ,MAAM;IAAEC;EAAO,CAAC,GAAGpB,UAAU,CAACE,WAAW,CAAC;EAE1C,OAAOY,OAAO,CAACO,GAAG,CAAC,CAAAC,IAAA,EAA+DC,KAAK,KAAK;IAAA,IAAxE;QAAEC,IAAI;QAAEC,KAAK;QAAEC,cAAc;QAAEC;MAA4B,CAAC,GAAAL,IAAA;MAAZM,UAAU,GAAAC,wBAAA,CAAAP,IAAA,EAAAQ,SAAA;IAC5E,IAAI,CAACJ,cAAc,IAAI,CAACA,cAAc,CAACK,MAAM,EAAE,OAAO,IAAI;IAC1D,MAAMC,UAAU,GAAG,CAACZ,MAAM,EAAEG,KAAK,CAAC,CAACU,IAAI,CAAC,GAAG,CAAC;IAC5C,MAAMC,eAAe,GAAG,CAAC,CAACrB,IAAI,IAAIsB,MAAM,CAACC,IAAI,CAACvB,IAAI,CAAC,CAACkB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,EAAEA,MAAO;UACfE,YAAY,EAAEA,YAAa;UAC3BC,kBAAkB,EAAEA,kBAAmB;UACvCC,YAAY,EAAEA;QAAa,EAC5B,CACE,CAAC;MAEV,KAAKT,KAAK;QACR,OACE,CAAC,CAAC4B,wBAAwB,iBACxBvC,KAAA,CAAAwC,aAAA;UAAKC,GAAG,EAAER,UAAW;UAACS,SAAS,EAAC;QAAuB,gBACrD1C,KAAA,CAAAwC,aAAA,CAACjC,KAAK,EAAAoC,QAAA,KACAd,UAAU;UACdS,gBAAgB,EAAEA,gBAAiB;UACnCX,cAAc,EAAEA,cAAe;UAC/BD,KAAK,EAAEA,KAAM;UACbE,YAAY,EAAEA,YAAa;UAC3BX,MAAM,EAAEA,MAAO;UACfC,YAAY,EAAEA,YAAa;UAC3BC,kBAAkB,EAAEA,kBAAmB;UACvCC,YAAY,EAAEA;QAAa,EAC5B,CACE,CACN;MAEL;QACE,OAAO,IAAI;IACf;EACF,CAAC,CAAC;AACJ,CAAC;AAEDP,WAAW,CAACiC,SAAS,GAAG;EACtB9B,MAAM,EAAEd,SAAS,CAAC6C,IAAI,CAACC,UAAU;EACjC/B,MAAM,EAAEf,SAAS,CAAC+C,MAAM,CAACD,UAAU;EACnC9B,YAAY,EAAEhB,SAAS,CAACgD,MAAM,CAACF,UAAU;EACzC7B,kBAAkB,EAAEjB,SAAS,CAACiD,IAAI,CAACH,UAAU;EAC7ClC,IAAI,EAAEZ,SAAS,CAACgD,MAAM;EACtBnC,OAAO,EAAEb,SAAS,CAACkD,KAAK;EACxBhC,YAAY,EAAElB,SAAS,CAAC6C;AAC1B,CAAC;AAEDlC,WAAW,CAACwC,YAAY,GAAG;EACzBjC,YAAY,EAAE,KAAK;EACnBN,IAAI,EAAE,CAAC,CAAC;EACRC,OAAO,EAAE;AACX,CAAC;AAED,eAAeF,WAAW"}
@@ -1 +1 @@
1
- {"version":3,"file":"MobileFormToolbar.js","names":["React","PropTypes","RESET","SEARCH","MobileFormToolbar","formId","handleReset","createElement","className","role","onClick","type","form","propTypes","string","isRequired","func"],"sources":["../../../../src/components/SearchFilter/SearchFilter/MobileFormToolbar.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { RESET, SEARCH } from '../constants';\n\nconst MobileFormToolbar = ({ formId, handleReset }) => (\n <div className=\"filter__refine filter__refine--mobile-open\">\n <div\n className=\"reset\"\n data-testid=\"reset-button\"\n role=\"button\"\n onClick={handleReset}\n aria-label=\"Reset Filters\">\n {RESET}\n </div>\n\n <button className=\"search\" type=\"submit\" form={formId}>\n {SEARCH}\n </button>\n </div>\n);\n\nMobileFormToolbar.propTypes = {\n formId: PropTypes.string.isRequired,\n handleReset: PropTypes.func.isRequired\n};\n\nexport default MobileFormToolbar;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,KAAK,EAAEC,MAAM,QAAQ,cAAc;AAE5C,MAAMC,iBAAiB,GAAGA,CAAC;EAAEC,MAAM;EAAEC;AAAY,CAAC,kBAChDN,KAAA,CAAAO,aAAA;EAAKC,SAAS,EAAC;AAA4C,gBACzDR,KAAA,CAAAO,aAAA;EACEC,SAAS,EAAC,OAAO;EACjB,eAAY,cAAc;EAC1BC,IAAI,EAAC,QAAQ;EACbC,OAAO,EAAEJ,WAAY;EACrB,cAAW;AAAe,GACzBJ,KACE,CAAC,eAENF,KAAA,CAAAO,aAAA;EAAQC,SAAS,EAAC,QAAQ;EAACG,IAAI,EAAC,QAAQ;EAACC,IAAI,EAAEP;AAAO,GACnDF,MACK,CACL,CACN;AAEDC,iBAAiB,CAACS,SAAS,GAAG;EAC5BR,MAAM,EAAEJ,SAAS,CAACa,MAAM,CAACC,UAAU;EACnCT,WAAW,EAAEL,SAAS,CAACe,IAAI,CAACD;AAC9B,CAAC;AAED,eAAeX,iBAAiB","ignoreList":[]}
1
+ {"version":3,"file":"MobileFormToolbar.js","names":["React","PropTypes","RESET","SEARCH","MobileFormToolbar","formId","handleReset","createElement","className","role","onClick","type","form","propTypes","string","isRequired","func"],"sources":["../../../../src/components/SearchFilter/SearchFilter/MobileFormToolbar.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { RESET, SEARCH } from '../constants';\n\nconst MobileFormToolbar = ({ formId, handleReset }) => (\n <div className=\"filter__refine filter__refine--mobile-open\">\n <div\n className=\"reset\"\n data-testid=\"reset-button\"\n role=\"button\"\n onClick={handleReset}\n aria-label=\"Reset Filters\">\n {RESET}\n </div>\n\n <button className=\"search\" type=\"submit\" form={formId}>\n {SEARCH}\n </button>\n </div>\n);\n\nMobileFormToolbar.propTypes = {\n formId: PropTypes.string.isRequired,\n handleReset: PropTypes.func.isRequired\n};\n\nexport default MobileFormToolbar;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,KAAK,EAAEC,MAAM,QAAQ,cAAc;AAE5C,MAAMC,iBAAiB,GAAGA,CAAC;EAAEC,MAAM;EAAEC;AAAY,CAAC,kBAChDN,KAAA,CAAAO,aAAA;EAAKC,SAAS,EAAC;AAA4C,gBACzDR,KAAA,CAAAO,aAAA;EACEC,SAAS,EAAC,OAAO;EACjB,eAAY,cAAc;EAC1BC,IAAI,EAAC,QAAQ;EACbC,OAAO,EAAEJ,WAAY;EACrB,cAAW;AAAe,GACzBJ,KACE,CAAC,eAENF,KAAA,CAAAO,aAAA;EAAQC,SAAS,EAAC,QAAQ;EAACG,IAAI,EAAC,QAAQ;EAACC,IAAI,EAAEP;AAAO,GACnDF,MACK,CACL,CACN;AAEDC,iBAAiB,CAACS,SAAS,GAAG;EAC5BR,MAAM,EAAEJ,SAAS,CAACa,MAAM,CAACC,UAAU;EACnCT,WAAW,EAAEL,SAAS,CAACe,IAAI,CAACD;AAC9B,CAAC;AAED,eAAeX,iBAAiB"}
@@ -1 +1 @@
1
- {"version":3,"file":"ResetDesktopForm.js","names":["React","PropTypes","FaRedoAlt","RESET","ResetDesktopForm","handleReset","createElement","className","type","title","onClick","role","propTypes","func","isRequired"],"sources":["../../../../src/components/SearchFilter/SearchFilter/ResetDesktopForm.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { FaRedoAlt } from 'react-icons/fa';\nimport { RESET } from '../constants';\n\nconst ResetDesktopForm = ({ handleReset }) => (\n <div className=\"filter__reset\">\n <button\n type=\"button\"\n className=\"icon-button icon-button--reset\"\n title=\"reset--button\"\n data-testid=\"reset-icon\"\n onClick={handleReset}>\n <i>\n <FaRedoAlt />\n </i>\n </button>\n\n <div role=\"button\" onClick={handleReset} data-testid=\"reset-button\" aria-label=\"Reset Filters\">\n {RESET}\n </div>\n </div>\n);\n\nResetDesktopForm.propTypes = {\n handleReset: PropTypes.func.isRequired\n};\n\nexport default ResetDesktopForm;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,SAAS,QAAQ,gBAAgB;AAC1C,SAASC,KAAK,QAAQ,cAAc;AAEpC,MAAMC,gBAAgB,GAAGA,CAAC;EAAEC;AAAY,CAAC,kBACvCL,KAAA,CAAAM,aAAA;EAAKC,SAAS,EAAC;AAAe,gBAC5BP,KAAA,CAAAM,aAAA;EACEE,IAAI,EAAC,QAAQ;EACbD,SAAS,EAAC,gCAAgC;EAC1CE,KAAK,EAAC,eAAe;EACrB,eAAY,YAAY;EACxBC,OAAO,EAAEL;AAAY,gBACrBL,KAAA,CAAAM,aAAA,yBACEN,KAAA,CAAAM,aAAA,CAACJ,SAAS,MAAE,CACX,CACG,CAAC,eAETF,KAAA,CAAAM,aAAA;EAAKK,IAAI,EAAC,QAAQ;EAACD,OAAO,EAAEL,WAAY;EAAC,eAAY,cAAc;EAAC,cAAW;AAAe,GAC3FF,KACE,CACF,CACN;AAEDC,gBAAgB,CAACQ,SAAS,GAAG;EAC3BP,WAAW,EAAEJ,SAAS,CAACY,IAAI,CAACC;AAC9B,CAAC;AAED,eAAeV,gBAAgB","ignoreList":[]}
1
+ {"version":3,"file":"ResetDesktopForm.js","names":["React","PropTypes","FaRedoAlt","RESET","ResetDesktopForm","handleReset","createElement","className","type","title","onClick","role","propTypes","func","isRequired"],"sources":["../../../../src/components/SearchFilter/SearchFilter/ResetDesktopForm.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { FaRedoAlt } from 'react-icons/fa';\nimport { RESET } from '../constants';\n\nconst ResetDesktopForm = ({ handleReset }) => (\n <div className=\"filter__reset\">\n <button\n type=\"button\"\n className=\"icon-button icon-button--reset\"\n title=\"reset--button\"\n data-testid=\"reset-icon\"\n onClick={handleReset}>\n <i>\n <FaRedoAlt />\n </i>\n </button>\n\n <div role=\"button\" onClick={handleReset} data-testid=\"reset-button\" aria-label=\"Reset Filters\">\n {RESET}\n </div>\n </div>\n);\n\nResetDesktopForm.propTypes = {\n handleReset: PropTypes.func.isRequired\n};\n\nexport default ResetDesktopForm;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,SAAS,QAAQ,gBAAgB;AAC1C,SAASC,KAAK,QAAQ,cAAc;AAEpC,MAAMC,gBAAgB,GAAGA,CAAC;EAAEC;AAAY,CAAC,kBACvCL,KAAA,CAAAM,aAAA;EAAKC,SAAS,EAAC;AAAe,gBAC5BP,KAAA,CAAAM,aAAA;EACEE,IAAI,EAAC,QAAQ;EACbD,SAAS,EAAC,gCAAgC;EAC1CE,KAAK,EAAC,eAAe;EACrB,eAAY,YAAY;EACxBC,OAAO,EAAEL;AAAY,gBACrBL,KAAA,CAAAM,aAAA,yBACEN,KAAA,CAAAM,aAAA,CAACJ,SAAS,MAAE,CACX,CACG,CAAC,eAETF,KAAA,CAAAM,aAAA;EAAKK,IAAI,EAAC,QAAQ;EAACD,OAAO,EAAEL,WAAY;EAAC,eAAY,cAAc;EAAC,cAAW;AAAe,GAC3FF,KACE,CACF,CACN;AAEDC,gBAAgB,CAACQ,SAAS,GAAG;EAC3BP,WAAW,EAAEJ,SAAS,CAACY,IAAI,CAACC;AAC9B,CAAC;AAED,eAAeV,gBAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"SearchFilter.js","names":["React","useState","useEffect","PropTypes","classnames","debounce","FiltersList","isDeviceDesktop","getResponsiveFilterClassnames","buildUrlQuery","CloseMobileForm","ResetDesktopForm","MobileFormToolbar","SEARCH","REFINE","MORE_FILTERS_CLASSES","SearchFilter","searchFilterRef","listComponentName","data","filters","hasUrl","entity","handleSearch","name","isCollapsedOnResponsive","displaySearchFilter","setDisplaySearchFilter","groupAfterDesktop","groupAfterMobile","filterValues","setAppliedFilters","query","moreFiltersMobileCollapsed","setMoreFiltersMobileCollapsed","moreFiltersDesktopCollapsed","setMoreFiltersDesktopCollapsed","doSubmit","newValues","newQuery","handleSubmit","shouldSearch","type","formClass","moreFiltersMobileWrapperClass","moreFiltersMobileTogglerClass","moreFiltersDesktopWrapperClass","moreFiltersDesktopTogglerClass","formId","handleReset","updateFilterValues","shouldSubmit","shouldGroup","createElement","Fragment","ref","className","id","onSubmit","e","preventDefault","handleClose","slice","onClick","MOBILE_CONTENT","DESKTOP_CONTENT","DESKTOP_BUTTONS","MOBILE_BUTTONS","role","propTypes","object","isRequired","array","bool","string","func","number","defaultProps"],"sources":["../../../../src/components/SearchFilter/SearchFilter/SearchFilter.js"],"sourcesContent":["import React, { useState, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport debounce from 'lodash.debounce';\nimport FiltersList from './FiltersList';\nimport { isDeviceDesktop, getResponsiveFilterClassnames, buildUrlQuery } from '../helpers';\n\nimport CloseMobileForm from './CloseMobileForm';\nimport ResetDesktopForm from './ResetDesktopForm';\nimport MobileFormToolbar from './MobileFormToolbar';\nimport { SEARCH, REFINE, MORE_FILTERS_CLASSES } from '../constants';\n\nconst SearchFilter = ({\n searchFilterRef,\n listComponentName,\n data,\n filters,\n hasUrl,\n entity,\n handleSearch,\n name,\n isCollapsedOnResponsive,\n displaySearchFilter,\n setDisplaySearchFilter,\n groupAfterDesktop,\n groupAfterMobile,\n filterValues,\n setAppliedFilters,\n query\n}) => {\n const [moreFiltersMobileCollapsed, setMoreFiltersMobileCollapsed] = useState(true);\n const [moreFiltersDesktopCollapsed, setMoreFiltersDesktopCollapsed] = useState(true);\n\n const doSubmit = newValues => {\n const newQuery = filterValues\n ? buildUrlQuery(newValues, filters, listComponentName, query)\n : '';\n handleSearch(newQuery);\n setMoreFiltersDesktopCollapsed(true);\n setMoreFiltersMobileCollapsed(true);\n };\n\n const handleSubmit = debounce(newValues => {\n doSubmit(newValues);\n }, 200);\n\n useEffect(\n () => {\n if (filterValues.shouldSearch) {\n handleSubmit(filterValues);\n setAppliedFilters({ type: 'resetSearch' });\n }\n },\n [filterValues, handleSubmit, setAppliedFilters]\n );\n\n const formClass = classnames('filter__form filter__form--initial', {\n 'filter__form--mobile': isCollapsedOnResponsive && displaySearchFilter,\n 'filter__form--collapsible': isCollapsedOnResponsive\n });\n\n const {\n moreFiltersMobileWrapperClass,\n moreFiltersMobileTogglerClass,\n moreFiltersDesktopWrapperClass,\n moreFiltersDesktopTogglerClass\n } = getResponsiveFilterClassnames(moreFiltersDesktopCollapsed, moreFiltersMobileCollapsed);\n\n const formId = `filter-${name}-form`;\n\n const handleReset = () => {\n setAppliedFilters({ type: 'reset' });\n doSubmit();\n };\n\n const updateFilterValues = (newValues, shouldSubmit) => {\n setAppliedFilters({ newValues, shouldSearch: shouldSubmit, type: 'update' });\n };\n\n const shouldGroup = !!(groupAfterDesktop || groupAfterMobile);\n\n return (\n <>\n <form\n ref={searchFilterRef}\n className={formClass}\n data-testid={formId}\n id={formId}\n onSubmit={e => {\n e.preventDefault();\n doSubmit(filterValues);\n }}>\n {displaySearchFilter && (\n <CloseMobileForm handleClose={() => setDisplaySearchFilter(false)} />\n )}\n\n <div className=\"filter filter--search-refine\">\n <ResetDesktopForm handleReset={handleReset} />\n\n <div className=\"filter__wrapper filter__wrapper--search-refine\">\n {!shouldGroup && (\n <FiltersList\n shouldSearch={!hasUrl}\n data={data}\n filters={filters}\n hasUrl={hasUrl}\n entity={entity}\n filterValues={filterValues}\n updateFilterValues={updateFilterValues}\n />\n )}\n\n {shouldGroup && (\n <>\n <FiltersList\n shouldSearch={!hasUrl}\n data={data}\n filters={filters.slice(0, groupAfterMobile)}\n hasUrl={hasUrl}\n entity={entity}\n filterValues={filterValues}\n updateFilterValues={updateFilterValues}\n />\n\n {!!groupAfterMobile && (\n <button\n data-testId=\"search-filter-mobile-toggler\"\n className={moreFiltersMobileTogglerClass}\n type=\"button\"\n onClick={() => setMoreFiltersMobileCollapsed(!moreFiltersMobileCollapsed)}>\n Filters\n </button>\n )}\n\n <div className={moreFiltersMobileWrapperClass}>\n <div className={MORE_FILTERS_CLASSES.MOBILE_CONTENT}>\n <FiltersList\n shouldSearch={!hasUrl && isDeviceDesktop()}\n data={data}\n filters={filters.slice(\n groupAfterMobile,\n groupAfterDesktop ? groupAfterDesktop - 1 : 0\n )}\n hasUrl={hasUrl}\n entity={entity}\n filterValues={filterValues}\n updateFilterValues={updateFilterValues}\n />\n\n {!!groupAfterDesktop && (\n <button\n data-testId=\"search-filter-desktop-toggler\"\n className={moreFiltersDesktopTogglerClass}\n type=\"button\"\n onClick={() =>\n setMoreFiltersDesktopCollapsed(!moreFiltersDesktopCollapsed)\n }>\n {moreFiltersDesktopCollapsed ? 'More filters' : 'Less filters'}\n </button>\n )}\n\n <div className={moreFiltersDesktopWrapperClass}>\n <div className={MORE_FILTERS_CLASSES.DESKTOP_CONTENT}>\n <FiltersList\n shouldSearch={false}\n data={data}\n filters={filters.slice(groupAfterDesktop)}\n hasUrl={hasUrl}\n entity={entity}\n filterValues={filterValues}\n updateFilterValues={updateFilterValues}\n />\n </div>\n\n <div className={MORE_FILTERS_CLASSES.DESKTOP_BUTTONS}>\n <ResetDesktopForm handleReset={handleReset} />\n\n <button className=\"button button--full-width\" type=\"submit\">\n {SEARCH}\n </button>\n </div>\n </div>\n </div>\n\n <div className={MORE_FILTERS_CLASSES.MOBILE_BUTTONS}>\n <ResetDesktopForm handleReset={handleReset} />\n\n <button className=\"button button--full-width\" type=\"submit\">\n {SEARCH}\n </button>\n </div>\n </div>\n </>\n )}\n\n {!displaySearchFilter && (\n <button className=\"button button--full-width\" type=\"submit\">\n {SEARCH}\n </button>\n )}\n </div>\n </div>\n\n {displaySearchFilter && <MobileFormToolbar formId={formId} handleReset={handleReset} />}\n </form>\n\n {isCollapsedOnResponsive &&\n !displaySearchFilter && (\n <div className=\"filter__refine filter__refine--mobile-close\" data-testid=\"refine-mobile\">\n <div\n role=\"button\"\n onClick={() => setDisplaySearchFilter(true)}\n aria-label=\"Toggle Search Filter\">\n {REFINE}\n </div>\n </div>\n )}\n </>\n );\n};\n\nSearchFilter.propTypes = {\n data: PropTypes.object.isRequired,\n filters: PropTypes.array.isRequired,\n searchFilterRef: PropTypes.object.isRequired,\n hasUrl: PropTypes.bool.isRequired,\n entity: PropTypes.string.isRequired,\n handleSearch: PropTypes.func.isRequired,\n name: PropTypes.string.isRequired,\n displaySearchFilter: PropTypes.bool.isRequired,\n setDisplaySearchFilter: PropTypes.func.isRequired,\n isCollapsedOnResponsive: PropTypes.bool.isRequired,\n groupAfterDesktop: PropTypes.number.isRequired,\n groupAfterMobile: PropTypes.number.isRequired,\n filterValues: PropTypes.object.isRequired,\n setAppliedFilters: PropTypes.func.isRequired,\n listComponentName: PropTypes.string,\n query: PropTypes.object\n};\n\nSearchFilter.defaultProps = {\n listComponentName: '',\n query: {}\n};\n\nexport default SearchFilter;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,SAAS,QAAQ,OAAO;AAClD,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,QAAQ,MAAM,iBAAiB;AACtC,OAAOC,WAAW,MAAM,eAAe;AACvC,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BAAmB,EAAEvB,SAAS,CAACsE,IAAI,CAACF,UAAU;EAC9C5C,sBAAsB,EAAExB,SAAS,CAACwE,IAAI,CAACJ,UAAU;EACjD9C,uBAAuB,EAAEtB,SAAS,CAACsE,IAAI,CAACF,UAAU;EAClD3C,iBAAiB,EAAEzB,SAAS,CAACyE,MAAM,CAACL,UAAU;EAC9C1C,gBAAgB,EAAE1B,SAAS,CAACyE,MAAM,CAACL,UAAU;EAC7CzC,YAAY,EAAE3B,SAAS,CAACmE,MAAM,CAACC,UAAU;EACzCxC,iBAAiB,EAAE5B,SAAS,CAACwE,IAAI,CAACJ,UAAU;EAC5CrD,iBAAiB,EAAEf,SAAS,CAACuE,MAAM;EACnC1C,KAAK,EAAE7B,SAAS,CAACmE;AACnB,CAAC;AAEDtD,YAAY,CAAC6D,YAAY,GAAG;EAC1B3D,iBAAiB,EAAE,EAAE;EACrBc,KAAK,EAAE,CAAC;AACV,CAAC;AAED,eAAehB,YAAY","ignoreList":[]}
1
+ {"version":3,"file":"SearchFilter.js","names":["React","useState","useEffect","PropTypes","classnames","debounce","FiltersList","isDeviceDesktop","getResponsiveFilterClassnames","buildUrlQuery","CloseMobileForm","ResetDesktopForm","MobileFormToolbar","SEARCH","REFINE","MORE_FILTERS_CLASSES","SearchFilter","searchFilterRef","listComponentName","data","filters","hasUrl","entity","handleSearch","name","isCollapsedOnResponsive","displaySearchFilter","setDisplaySearchFilter","groupAfterDesktop","groupAfterMobile","filterValues","setAppliedFilters","query","moreFiltersMobileCollapsed","setMoreFiltersMobileCollapsed","moreFiltersDesktopCollapsed","setMoreFiltersDesktopCollapsed","doSubmit","newValues","newQuery","handleSubmit","shouldSearch","type","formClass","moreFiltersMobileWrapperClass","moreFiltersMobileTogglerClass","moreFiltersDesktopWrapperClass","moreFiltersDesktopTogglerClass","formId","handleReset","updateFilterValues","shouldSubmit","shouldGroup","createElement","Fragment","ref","className","id","onSubmit","e","preventDefault","handleClose","slice","onClick","MOBILE_CONTENT","DESKTOP_CONTENT","DESKTOP_BUTTONS","MOBILE_BUTTONS","role","propTypes","object","isRequired","array","bool","string","func","number","defaultProps"],"sources":["../../../../src/components/SearchFilter/SearchFilter/SearchFilter.js"],"sourcesContent":["import React, { useState, useEffect } from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport debounce from 'lodash.debounce';\nimport FiltersList from './FiltersList';\nimport { isDeviceDesktop, getResponsiveFilterClassnames, buildUrlQuery } from '../helpers';\n\nimport CloseMobileForm from './CloseMobileForm';\nimport ResetDesktopForm from './ResetDesktopForm';\nimport MobileFormToolbar from './MobileFormToolbar';\nimport { SEARCH, REFINE, MORE_FILTERS_CLASSES } from '../constants';\n\nconst SearchFilter = ({\n searchFilterRef,\n listComponentName,\n data,\n filters,\n hasUrl,\n entity,\n handleSearch,\n name,\n isCollapsedOnResponsive,\n displaySearchFilter,\n setDisplaySearchFilter,\n groupAfterDesktop,\n groupAfterMobile,\n filterValues,\n setAppliedFilters,\n query\n}) => {\n const [moreFiltersMobileCollapsed, setMoreFiltersMobileCollapsed] = useState(true);\n const [moreFiltersDesktopCollapsed, setMoreFiltersDesktopCollapsed] = useState(true);\n\n const doSubmit = newValues => {\n const newQuery = filterValues\n ? buildUrlQuery(newValues, filters, listComponentName, query)\n : '';\n handleSearch(newQuery);\n setMoreFiltersDesktopCollapsed(true);\n setMoreFiltersMobileCollapsed(true);\n };\n\n const handleSubmit = debounce(newValues => {\n doSubmit(newValues);\n }, 200);\n\n useEffect(\n () => {\n if (filterValues.shouldSearch) {\n handleSubmit(filterValues);\n setAppliedFilters({ type: 'resetSearch' });\n }\n },\n [filterValues, handleSubmit, setAppliedFilters]\n );\n\n const formClass = classnames('filter__form filter__form--initial', {\n 'filter__form--mobile': isCollapsedOnResponsive && displaySearchFilter,\n 'filter__form--collapsible': isCollapsedOnResponsive\n });\n\n const {\n moreFiltersMobileWrapperClass,\n moreFiltersMobileTogglerClass,\n moreFiltersDesktopWrapperClass,\n moreFiltersDesktopTogglerClass\n } = getResponsiveFilterClassnames(moreFiltersDesktopCollapsed, moreFiltersMobileCollapsed);\n\n const formId = `filter-${name}-form`;\n\n const handleReset = () => {\n setAppliedFilters({ type: 'reset' });\n doSubmit();\n };\n\n const updateFilterValues = (newValues, shouldSubmit) => {\n setAppliedFilters({ newValues, shouldSearch: shouldSubmit, type: 'update' });\n };\n\n const shouldGroup = !!(groupAfterDesktop || groupAfterMobile);\n\n return (\n <>\n <form\n ref={searchFilterRef}\n className={formClass}\n data-testid={formId}\n id={formId}\n onSubmit={e => {\n e.preventDefault();\n doSubmit(filterValues);\n }}>\n {displaySearchFilter && (\n <CloseMobileForm handleClose={() => setDisplaySearchFilter(false)} />\n )}\n\n <div className=\"filter filter--search-refine\">\n <ResetDesktopForm handleReset={handleReset} />\n\n <div className=\"filter__wrapper filter__wrapper--search-refine\">\n {!shouldGroup && (\n <FiltersList\n shouldSearch={!hasUrl}\n data={data}\n filters={filters}\n hasUrl={hasUrl}\n entity={entity}\n filterValues={filterValues}\n updateFilterValues={updateFilterValues}\n />\n )}\n\n {shouldGroup && (\n <>\n <FiltersList\n shouldSearch={!hasUrl}\n data={data}\n filters={filters.slice(0, groupAfterMobile)}\n hasUrl={hasUrl}\n entity={entity}\n filterValues={filterValues}\n updateFilterValues={updateFilterValues}\n />\n\n {!!groupAfterMobile && (\n <button\n data-testId=\"search-filter-mobile-toggler\"\n className={moreFiltersMobileTogglerClass}\n type=\"button\"\n onClick={() => setMoreFiltersMobileCollapsed(!moreFiltersMobileCollapsed)}>\n Filters\n </button>\n )}\n\n <div className={moreFiltersMobileWrapperClass}>\n <div className={MORE_FILTERS_CLASSES.MOBILE_CONTENT}>\n <FiltersList\n shouldSearch={!hasUrl && isDeviceDesktop()}\n data={data}\n filters={filters.slice(\n groupAfterMobile,\n groupAfterDesktop ? groupAfterDesktop - 1 : 0\n )}\n hasUrl={hasUrl}\n entity={entity}\n filterValues={filterValues}\n updateFilterValues={updateFilterValues}\n />\n\n {!!groupAfterDesktop && (\n <button\n data-testId=\"search-filter-desktop-toggler\"\n className={moreFiltersDesktopTogglerClass}\n type=\"button\"\n onClick={() =>\n setMoreFiltersDesktopCollapsed(!moreFiltersDesktopCollapsed)\n }>\n {moreFiltersDesktopCollapsed ? 'More filters' : 'Less filters'}\n </button>\n )}\n\n <div className={moreFiltersDesktopWrapperClass}>\n <div className={MORE_FILTERS_CLASSES.DESKTOP_CONTENT}>\n <FiltersList\n shouldSearch={false}\n data={data}\n filters={filters.slice(groupAfterDesktop)}\n hasUrl={hasUrl}\n entity={entity}\n filterValues={filterValues}\n updateFilterValues={updateFilterValues}\n />\n </div>\n\n <div className={MORE_FILTERS_CLASSES.DESKTOP_BUTTONS}>\n <ResetDesktopForm handleReset={handleReset} />\n\n <button className=\"button button--full-width\" type=\"submit\">\n {SEARCH}\n </button>\n </div>\n </div>\n </div>\n\n <div className={MORE_FILTERS_CLASSES.MOBILE_BUTTONS}>\n <ResetDesktopForm handleReset={handleReset} />\n\n <button className=\"button button--full-width\" type=\"submit\">\n {SEARCH}\n </button>\n </div>\n </div>\n </>\n )}\n\n {!displaySearchFilter && (\n <button className=\"button button--full-width\" type=\"submit\">\n {SEARCH}\n </button>\n )}\n </div>\n </div>\n\n {displaySearchFilter && <MobileFormToolbar formId={formId} handleReset={handleReset} />}\n </form>\n\n {isCollapsedOnResponsive &&\n !displaySearchFilter && (\n <div className=\"filter__refine filter__refine--mobile-close\" data-testid=\"refine-mobile\">\n <div\n role=\"button\"\n onClick={() => setDisplaySearchFilter(true)}\n aria-label=\"Toggle Search Filter\">\n {REFINE}\n </div>\n </div>\n )}\n </>\n );\n};\n\nSearchFilter.propTypes = {\n data: PropTypes.object.isRequired,\n filters: PropTypes.array.isRequired,\n searchFilterRef: PropTypes.object.isRequired,\n hasUrl: PropTypes.bool.isRequired,\n entity: PropTypes.string.isRequired,\n handleSearch: PropTypes.func.isRequired,\n name: PropTypes.string.isRequired,\n displaySearchFilter: PropTypes.bool.isRequired,\n setDisplaySearchFilter: PropTypes.func.isRequired,\n isCollapsedOnResponsive: PropTypes.bool.isRequired,\n groupAfterDesktop: PropTypes.number.isRequired,\n groupAfterMobile: PropTypes.number.isRequired,\n filterValues: PropTypes.object.isRequired,\n setAppliedFilters: PropTypes.func.isRequired,\n listComponentName: PropTypes.string,\n query: PropTypes.object\n};\n\nSearchFilter.defaultProps = {\n listComponentName: '',\n query: {}\n};\n\nexport default SearchFilter;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,SAAS,QAAQ,OAAO;AAClD,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,QAAQ,MAAM,iBAAiB;AACtC,OAAOC,WAAW,MAAM,eAAe;AACvC,SAASC,eAAe,EAAEC,6BAA6B,EAAEC,aAAa,QAAQ,YAAY;AAE1F,OAAOC,eAAe,MAAM,mBAAmB;AAC/C,OAAOC,gBAAgB,MAAM,oBAAoB;AACjD,OAAOC,iBAAiB,MAAM,qBAAqB;AACnD,SAASC,MAAM,EAAEC,MAAM,EAAEC,oBAAoB,QAAQ,cAAc;AAEnE,MAAMC,YAAY,GAAGA,CAAC;EACpBC,eAAe;EACfC,iBAAiB;EACjBC,IAAI;EACJC,OAAO;EACPC,MAAM;EACNC,MAAM;EACNC,YAAY;EACZC,IAAI;EACJC,uBAAuB;EACvBC,mBAAmB;EACnBC,sBAAsB;EACtBC,iBAAiB;EACjBC,gBAAgB;EAChBC,YAAY;EACZC,iBAAiB;EACjBC;AACF,CAAC,KAAK;EACJ,MAAM,CAACC,0BAA0B,EAAEC,6BAA6B,CAAC,GAAGjC,QAAQ,CAAC,IAAI,CAAC;EAClF,MAAM,CAACkC,2BAA2B,EAAEC,8BAA8B,CAAC,GAAGnC,QAAQ,CAAC,IAAI,CAAC;EAEpF,MAAMoC,QAAQ,GAAGC,SAAS,IAAI;IAC5B,MAAMC,QAAQ,GAAGT,YAAY,GACzBrB,aAAa,CAAC6B,SAAS,EAAEl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AAW;EAAsB,GAChCb,MACE,CACF,CAET,CAAC;AAEP,CAAC;AAEDE,YAAY,CAACqD,SAAS,GAAG;EACvBlD,IAAI,EAAEhB,SAAS,CAACmE,MAAM,CAACC,UAAU;EACjCnD,OAAO,EAAEjB,SAAS,CAACqE,KAAK,CAACD,UAAU;EACnCtD,eAAe,EAAEd,SAAS,CAACmE,MAAM,CAACC,UAAU;EAC5ClD,MAAM,EAAElB,SAAS,CAACsE,IAAI,CAACF,UAAU;EACjCjD,MAAM,EAAEnB,SAAS,CAACuE,MAAM,CAACH,UAAU;EACnChD,YAAY,EAAEpB,SAAS,CAACwE,IAAI,CAACJ,UAAU;EACvC/C,IAAI,EAAErB,SAAS,CAACuE,MAAM,CAACH,UAAU;EACjC7C,mBAAmB,EAAEvB,SAAS,CAACsE,IAAI,CAACF,UAAU;EAC9C5C,sBAAsB,EAAExB,SAAS,CAACwE,IAAI,CAACJ,UAAU;EACjD9C,uBAAuB,EAAEtB,SAAS,CAACsE,IAAI,CAACF,UAAU;EAClD3C,iBAAiB,EAAEzB,SAAS,CAACyE,MAAM,CAACL,UAAU;EAC9C1C,gBAAgB,EAAE1B,SAAS,CAACyE,MAAM,CAACL,UAAU;EAC7CzC,YAAY,EAAE3B,SAAS,CAACmE,MAAM,CAACC,UAAU;EACzCxC,iBAAiB,EAAE5B,SAAS,CAACwE,IAAI,CAACJ,UAAU;EAC5CrD,iBAAiB,EAAEf,SAAS,CAACuE,MAAM;EACnC1C,KAAK,EAAE7B,SAAS,CAACmE;AACnB,CAAC;AAEDtD,YAAY,CAAC6D,YAAY,GAAG;EAC1B3D,iBAAiB,EAAE,EAAE;EACrBc,KAAK,EAAE,CAAC;AACV,CAAC;AAED,eAAehB,YAAY"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["SearchFilter"],"sources":["../../../../src/components/SearchFilter/SearchFilter/index.js"],"sourcesContent":["import SearchFilter from './SearchFilter';\n\nexport default SearchFilter;\n"],"mappings":"AAAA,OAAOA,YAAY,MAAM,gBAAgB;AAEzC,eAAeA,YAAY","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["SearchFilter"],"sources":["../../../../src/components/SearchFilter/SearchFilter/index.js"],"sourcesContent":["import SearchFilter from './SearchFilter';\n\nexport default SearchFilter;\n"],"mappings":"AAAA,OAAOA,YAAY,MAAM,gBAAgB;AAEzC,eAAeA,YAAY"}
@@ -1 +1 @@
1
- {"version":3,"file":"SearchFilterContainer.js","names":["React","useState","useEffect","useRef","useReducer","useContext","MainContext","useRouter","useQuery","PropTypes","parseUrl","SearchFilter","withTitle","getSearchPublishedContent","generateSingleItemQuery","buildNewUrl","buildRawQueryStringified","getFilterValues","buildFiltersQuery","getFilterRangesAndCheckboxesValues","getUpdatedFilterBy","getEntityData","getInheritedFilters","getQueryProps","RAW_RESULTS","SCROLL_OFFSET","searchFilterReducer","useGetEntitySchemasAsObj","getFiltersUrlQuery","query","listName","updatedQuery","listKey","Object","keys","forEach","queryKey","isListKey","indexOf","decodedQueryValue","Array","isArray","map","value","decodeURIComponent","strippedKey","substring","length","SearchFilterContainer","entity","url","filters","name","isCollapsedOnResponsive","groupAfterMobile","groupAfterDesktop","filterBy","filterByProperty","shouldAddFilters","listComponentName","parent","isPreview","router","asPath","searchFilterRef","key","setKey","displaySearchFilter","setDisplaySearchFilter","urlPath","setUrlPath","filterValues","dispatch","currentUrl","itemId","parentId","itemEntity","parentEntity","data","mainSchemas","loading","schemasLoading","parentSchema","filterEntitySchema","actions","getAction","get","getPublished","inheritedFilters","queryProps","entityData","parentData","parentQueryLoading","variables","id","skip","updatedFilterBy","updatedFilterByProperty","action","checkboxSelectValues","rangeValues","docType","filtersQuery","queryKeys","rawQueryStringified","error","limit","message","searchPublishedContent","rawResults","aggregations","filterData","newValues","shouldSearch","type","handleSearch","newQuery","hashBit","split","parsedHashBit","scrollToFirstList","baseQuery","push","shallow","scroll","then","Date","now","newUrl","list","document","getElementsByClassName","shouldScrollToFirstList","window","scrollTo","left","top","pageYOffset","getBoundingClientRect","createElement","setAppliedFilters","hasUrl","propTypes","string","array","isRequired","bool","number","object","defaultProps"],"sources":["../../../src/components/SearchFilter/SearchFilterContainer.js"],"sourcesContent":["import React, { useState, useEffect, useRef, useReducer, useContext } from 'react';\nimport { MainContext } from '@blaze-cms/nextjs-components';\nimport { useRouter } from 'next/router';\nimport { useQuery } from '@apollo/client';\nimport PropTypes from 'prop-types';\nimport { parseUrl } from 'query-string';\nimport SearchFilter from './SearchFilter';\nimport { withTitle } from '../../HOC';\nimport { getSearchPublishedContent, generateSingleItemQuery } from '../../application/query';\nimport {\n buildNewUrl,\n buildRawQueryStringified,\n getFilterValues,\n buildFiltersQuery,\n getFilterRangesAndCheckboxesValues,\n getUpdatedFilterBy\n} from './helpers';\nimport { getEntityData, getInheritedFilters, getQueryProps } from '../../helpers';\nimport { RAW_RESULTS } from './constants';\nimport { SCROLL_OFFSET } from '../../constants';\nimport searchFilterReducer from './searchFilterReducer';\nimport { useGetEntitySchemasAsObj } from '../../hooks';\n\nconst getFiltersUrlQuery = (query, listName) => {\n if (!listName) return query;\n const updatedQuery = {};\n const listKey = `pb[${listName}]`;\n Object.keys(query).forEach(queryKey => {\n const isListKey = queryKey.indexOf(`${listName}`) !== -1;\n if (!isListKey) return;\n const decodedQueryValue = Array.isArray(query[queryKey])\n ? query[queryKey].map(value => decodeURIComponent(value))\n : decodeURIComponent(query[queryKey]);\n const strippedKey = queryKey.substring(listKey.length + 1, queryKey.length - 1);\n if (isListKey) updatedQuery[strippedKey] = decodedQueryValue;\n });\n\n return updatedQuery;\n};\n\nconst SearchFilterContainer = ({\n entity,\n url,\n filters,\n name,\n isCollapsedOnResponsive,\n groupAfterMobile,\n groupAfterDesktop,\n filterBy,\n filterByProperty,\n shouldAddFilters,\n listComponentName,\n parent\n}) => {\n const { isPreview } = useContext(MainContext);\n const router = useRouter();\n const { asPath } = router;\n const searchFilterRef = useRef(null);\n const [key, setKey] = useState(`filter-${name}`);\n const [displaySearchFilter, setDisplaySearchFilter] = useState(false);\n const [urlPath, setUrlPath] = useState(asPath); // used as asPath can take too long to update\n const [filterValues, dispatch] = useReducer(searchFilterReducer, null);\n const { url: currentUrl, query } = parseUrl(urlPath);\n const updatedQuery = getFiltersUrlQuery(query, listComponentName);\n const { itemId: parentId, itemEntity: parentEntity } = parent;\n\n useEffect(\n () => {\n if (asPath) setUrlPath(asPath);\n },\n [asPath]\n );\n const { data: mainSchemas = {}, loading: schemasLoading } = useGetEntitySchemasAsObj([\n parentEntity,\n entity\n ]);\n const { [parentEntity]: parentSchema = {}, [entity]: filterEntitySchema = {} } = mainSchemas;\n const { actions = {} } = parentSchema || {};\n const getAction = isPreview ? actions.get : actions.getPublished;\n const inheritedFilters = getInheritedFilters(filterBy, filterByProperty);\n const queryProps = getQueryProps(inheritedFilters, parentSchema, filterEntitySchema);\n const { data: { entityData: parentData } = {}, loading: parentQueryLoading } = useQuery(\n generateSingleItemQuery(getAction, queryProps),\n {\n variables: { id: parentId },\n skip: schemasLoading || !inheritedFilters.length\n }\n );\n const { updatedFilterBy, updatedFilterByProperty } = getUpdatedFilterBy(\n filterBy,\n filterByProperty,\n parentData\n );\n\n const action = getSearchPublishedContent(RAW_RESULTS);\n const [checkboxSelectValues, rangeValues] = getFilterRangesAndCheckboxesValues(filters);\n\n const { docType } = getEntityData(entity);\n\n const filtersQuery = buildFiltersQuery({\n shouldAddFilters,\n query: filterValues,\n filterBy: updatedFilterBy,\n filterByProperty: updatedFilterByProperty,\n rangeValues,\n queryKeys: Object.keys(updatedQuery)\n });\n\n const rawQueryStringified = buildRawQueryStringified(\n checkboxSelectValues,\n rangeValues,\n docType,\n filtersQuery\n );\n\n const { data, error, loading } = useQuery(action, {\n variables: { rawQueryStringified, limit: 0 }, // we only want aggs so limit=0 for no search results\n skip: !rawQueryStringified || parentQueryLoading\n });\n\n if (error) return error.message;\n if (!filters.length) return null;\n\n const { searchPublishedContent: { rawResults: { aggregations: filterData } = {} } = {} } =\n data || {};\n\n if (!filterValues && !loading && !parentQueryLoading && (filterData || !rawQueryStringified)) {\n const newValues = getFilterValues(filterData, filters, updatedQuery);\n dispatch({ newValues, shouldSearch: false, type: 'update' });\n return null;\n }\n\n const handleSearch = newQuery => {\n setDisplaySearchFilter(false);\n const hashBit = asPath.split('#')[1] || '';\n const parsedHashBit = hashBit ? `#${hashBit}` : '';\n scrollToFirstList();\n if (!newQuery) {\n const baseQuery = `${currentUrl}${parsedHashBit}`;\n setUrlPath(baseQuery);\n return router.push('/Resolver', baseQuery, { shallow: !url, scroll: false }).then(() => {\n setKey(`filter-${name}:${Date.now()}`); // remove after range component update\n });\n }\n const newUrl = buildNewUrl(url, currentUrl, newQuery, hashBit);\n setUrlPath(newUrl);\n return router.push('/Resolver', newUrl, { shallow: !url, scroll: false });\n };\n\n const scrollToFirstList = () => {\n const [list] = document.getElementsByClassName('list-top');\n const shouldScrollToFirstList = !url && list;\n\n if (shouldScrollToFirstList) {\n window.scrollTo({\n left: 0,\n top: window.pageYOffset - SCROLL_OFFSET + list.getBoundingClientRect().top\n });\n } else {\n window.scrollTo(0, 0);\n }\n };\n\n if (!filterValues) return null;\n\n return (\n <SearchFilter\n key={key}\n setAppliedFilters={dispatch}\n query={updatedQuery}\n listComponentName={listComponentName}\n searchFilterRef={searchFilterRef}\n data={filterData}\n filters={filters}\n hasUrl={!!url}\n entity={entity}\n handleSearch={handleSearch}\n filterValues={filterValues}\n name={name}\n isCollapsedOnResponsive={isCollapsedOnResponsive}\n displaySearchFilter={displaySearchFilter}\n setDisplaySearchFilter={setDisplaySearchFilter}\n groupAfterMobile={groupAfterMobile}\n groupAfterDesktop={groupAfterDesktop}\n />\n );\n};\n\nSearchFilterContainer.propTypes = {\n entity: PropTypes.string,\n url: PropTypes.string,\n filters: PropTypes.array,\n name: PropTypes.string.isRequired,\n isCollapsedOnResponsive: PropTypes.bool,\n groupAfterMobile: PropTypes.number,\n groupAfterDesktop: PropTypes.number,\n filterBy: PropTypes.array,\n filterByProperty: PropTypes.array,\n shouldAddFilters: PropTypes.bool,\n listComponentName: PropTypes.string,\n parent: PropTypes.object\n};\n\nSearchFilterContainer.defaultProps = {\n url: null,\n filters: [],\n entity: '',\n isCollapsedOnResponsive: true,\n groupAfterMobile: 0,\n groupAfterDesktop: 0,\n filterBy: [],\n filterByProperty: [],\n shouldAddFilters: false,\n listComponentName: '',\n parent: {}\n};\n\nexport default withTitle(SearchFilterContainer);\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,SAAS,EAAEC,MAAM,EAAEC,UAAU,EAAEC,UAAU,QAAQ,OAAO;AAClF,SAASC,WAAW,QAAQ,8BAA8B;AAC1D,SAASC,SAAS,QAAQ,aAAa;AACvC,SAASC,QAAQ,QAAQ,gBAAgB;AACzC,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,QAAQ,QAAQ,cAAc;AACvC,OAAOC,YAAY,MAAM,gBAAgB;AACzC,SAASC,SAAS,QAAQ,WAAW;AACrC,SAASC,yBAAyB,EAAEC,uBAAuB,QAAQ,yBAAyB;AAC5F,SACEC,WAAW,EACXC,wBAAwB,EACxBC,eAAe,EACfC,iBAAiB,EACjBC,kCAAkC,EAClCC,kBAAkB,QACb,WAAW;AAClB,SAASC,aAAa,EAAEC,mBAAmB,EAAEC,aAAa,QAAQ,eAAe;AACjF,SAASC,WAAW,QAAQ,aAAa;AACzC,SAASC,aAAa,QAAQ,iBAAiB;AAC/C,OAAOC,mBAAmB,MAAM,uBAAuB;AACvD,SAASC,wBAAwB,QAAQ,aAAa;AAEtD,MAAMC,kBAAkB,GAAGA,CAACC,KAAK,EAAEC,QAAQ,KAAK;EAC9C,IAAI,CAACA,QAAQ,EAAE,OAAOD,KAAK;EAC3B,MAAME,YAAY,GAAG,CAAC,CAAC;EACvB,MAAMC,OAAO,GAAI,MAAKF,QAAS,GAAE;EACjCG,MAAM,CAACC,IAAI,CAACL,KAAK,CAAC,CAACM,OAAO,CAACC,QAAQ,IAAI;IACrC,MAAMC,SAA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AAiB,EAAEA;EAAkB,CACtC,CAAC;AAEN,CAAC;AAEDP,qBAAqB,CAAC8F,SAAS,GAAG;EAChC7F,MAAM,EAAExC,SAAS,CAACsI,MAAM;EACxB7F,GAAG,EAAEzC,SAAS,CAACsI,MAAM;EACrB5F,OAAO,EAAE1C,SAAS,CAACuI,KAAK;EACxB5F,IAAI,EAAE3C,SAAS,CAACsI,MAAM,CAACE,UAAU;EACjC5F,uBAAuB,EAAE5C,SAAS,CAACyI,IAAI;EACvC5F,gBAAgB,EAAE7C,SAAS,CAAC0I,MAAM;EAClC5F,iBAAiB,EAAE9C,SAAS,CAAC0I,MAAM;EACnC3F,QAAQ,EAAE/C,SAAS,CAACuI,KAAK;EACzBvF,gBAAgB,EAAEhD,SAAS,CAACuI,KAAK;EACjCtF,gBAAgB,EAAEjD,SAAS,CAACyI,IAAI;EAChCvF,iBAAiB,EAAElD,SAAS,CAACsI,MAAM;EACnCnF,MAAM,EAAEnD,SAAS,CAAC2I;AACpB,CAAC;AAEDpG,qBAAqB,CAACqG,YAAY,GAAG;EACnCnG,GAAG,EAAE,IAAI;EACTC,OAAO,EAAE,EAAE;EACXF,MAAM,EAAE,EAAE;EACVI,uBAAuB,EAAE,IAAI;EAC7BC,gBAAgB,EAAE,CAAC;EACnBC,iBAAiB,EAAE,CAAC;EACpBC,QAAQ,EAAE,EAAE;EACZC,gBAAgB,EAAE,EAAE;EACpBC,gBAAgB,EAAE,KAAK;EACvBC,iBAAiB,EAAE,EAAE;EACrBC,MAAM,EAAE,CAAC;AACX,CAAC;AAED,eAAehD,SAAS,CAACoC,qBAAqB,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"SearchFilterContainer.js","names":["React","useState","useEffect","useRef","useReducer","useContext","MainContext","useRouter","useQuery","PropTypes","parseUrl","SearchFilter","withTitle","getSearchPublishedContent","generateSingleItemQuery","buildNewUrl","buildRawQueryStringified","getFilterValues","buildFiltersQuery","getFilterRangesAndCheckboxesValues","getUpdatedFilterBy","getEntityData","getInheritedFilters","getQueryProps","RAW_RESULTS","SCROLL_OFFSET","searchFilterReducer","useGetEntitySchemasAsObj","getFiltersUrlQuery","query","listName","updatedQuery","listKey","Object","keys","forEach","queryKey","isListKey","indexOf","decodedQueryValue","Array","isArray","map","value","decodeURIComponent","strippedKey","substring","length","SearchFilterContainer","entity","url","filters","name","isCollapsedOnResponsive","groupAfterMobile","groupAfterDesktop","filterBy","filterByProperty","shouldAddFilters","listComponentName","parent","isPreview","router","asPath","searchFilterRef","key","setKey","displaySearchFilter","setDisplaySearchFilter","urlPath","setUrlPath","filterValues","dispatch","currentUrl","itemId","parentId","itemEntity","parentEntity","data","mainSchemas","loading","schemasLoading","parentSchema","filterEntitySchema","actions","getAction","get","getPublished","inheritedFilters","queryProps","entityData","parentData","parentQueryLoading","variables","id","skip","updatedFilterBy","updatedFilterByProperty","action","checkboxSelectValues","rangeValues","docType","filtersQuery","queryKeys","rawQueryStringified","error","limit","message","searchPublishedContent","rawResults","aggregations","filterData","newValues","shouldSearch","type","handleSearch","newQuery","hashBit","split","parsedHashBit","scrollToFirstList","baseQuery","push","shallow","scroll","then","Date","now","newUrl","list","document","getElementsByClassName","shouldScrollToFirstList","window","scrollTo","left","top","pageYOffset","getBoundingClientRect","createElement","setAppliedFilters","hasUrl","propTypes","string","array","isRequired","bool","number","object","defaultProps"],"sources":["../../../src/components/SearchFilter/SearchFilterContainer.js"],"sourcesContent":["import React, { useState, useEffect, useRef, useReducer, useContext } from 'react';\nimport { MainContext } from '@blaze-cms/nextjs-components';\nimport { useRouter } from 'next/router';\nimport { useQuery } from '@apollo/client';\nimport PropTypes from 'prop-types';\nimport { parseUrl } from 'query-string';\nimport SearchFilter from './SearchFilter';\nimport { withTitle } from '../../HOC';\nimport { getSearchPublishedContent, generateSingleItemQuery } from '../../application/query';\nimport {\n buildNewUrl,\n buildRawQueryStringified,\n getFilterValues,\n buildFiltersQuery,\n getFilterRangesAndCheckboxesValues,\n getUpdatedFilterBy\n} from './helpers';\nimport { getEntityData, getInheritedFilters, getQueryProps } from '../../helpers';\nimport { RAW_RESULTS } from './constants';\nimport { SCROLL_OFFSET } from '../../constants';\nimport searchFilterReducer from './searchFilterReducer';\nimport { useGetEntitySchemasAsObj } from '../../hooks';\n\nconst getFiltersUrlQuery = (query, listName) => {\n if (!listName) return query;\n const updatedQuery = {};\n const listKey = `pb[${listName}]`;\n Object.keys(query).forEach(queryKey => {\n const isListKey = queryKey.indexOf(`${listName}`) !== -1;\n if (!isListKey) return;\n const decodedQueryValue = Array.isArray(query[queryKey])\n ? query[queryKey].map(value => decodeURIComponent(value))\n : decodeURIComponent(query[queryKey]);\n const strippedKey = queryKey.substring(listKey.length + 1, queryKey.length - 1);\n if (isListKey) updatedQuery[strippedKey] = decodedQueryValue;\n });\n\n return updatedQuery;\n};\n\nconst SearchFilterContainer = ({\n entity,\n url,\n filters,\n name,\n isCollapsedOnResponsive,\n groupAfterMobile,\n groupAfterDesktop,\n filterBy,\n filterByProperty,\n shouldAddFilters,\n listComponentName,\n parent\n}) => {\n const { isPreview } = useContext(MainContext);\n const router = useRouter();\n const { asPath } = router;\n const searchFilterRef = useRef(null);\n const [key, setKey] = useState(`filter-${name}`);\n const [displaySearchFilter, setDisplaySearchFilter] = useState(false);\n const [urlPath, setUrlPath] = useState(asPath); // used as asPath can take too long to update\n const [filterValues, dispatch] = useReducer(searchFilterReducer, null);\n const { url: currentUrl, query } = parseUrl(urlPath);\n const updatedQuery = getFiltersUrlQuery(query, listComponentName);\n const { itemId: parentId, itemEntity: parentEntity } = parent;\n\n useEffect(\n () => {\n if (asPath) setUrlPath(asPath);\n },\n [asPath]\n );\n const { data: mainSchemas = {}, loading: schemasLoading } = useGetEntitySchemasAsObj([\n parentEntity,\n entity\n ]);\n const { [parentEntity]: parentSchema = {}, [entity]: filterEntitySchema = {} } = mainSchemas;\n const { actions = {} } = parentSchema || {};\n const getAction = isPreview ? actions.get : actions.getPublished;\n const inheritedFilters = getInheritedFilters(filterBy, filterByProperty);\n const queryProps = getQueryProps(inheritedFilters, parentSchema, filterEntitySchema);\n const { data: { entityData: parentData } = {}, loading: parentQueryLoading } = useQuery(\n generateSingleItemQuery(getAction, queryProps),\n {\n variables: { id: parentId },\n skip: schemasLoading || !inheritedFilters.length\n }\n );\n const { updatedFilterBy, updatedFilterByProperty } = getUpdatedFilterBy(\n filterBy,\n filterByProperty,\n parentData\n );\n\n const action = getSearchPublishedContent(RAW_RESULTS);\n const [checkboxSelectValues, rangeValues] = getFilterRangesAndCheckboxesValues(filters);\n\n const { docType } = getEntityData(entity);\n\n const filtersQuery = buildFiltersQuery({\n shouldAddFilters,\n query: filterValues,\n filterBy: updatedFilterBy,\n filterByProperty: updatedFilterByProperty,\n rangeValues,\n queryKeys: Object.keys(updatedQuery)\n });\n\n const rawQueryStringified = buildRawQueryStringified(\n checkboxSelectValues,\n rangeValues,\n docType,\n filtersQuery\n );\n\n const { data, error, loading } = useQuery(action, {\n variables: { rawQueryStringified, limit: 0 }, // we only want aggs so limit=0 for no search results\n skip: !rawQueryStringified || parentQueryLoading\n });\n\n if (error) return error.message;\n if (!filters.length) return null;\n\n const { searchPublishedContent: { rawResults: { aggregations: filterData } = {} } = {} } =\n data || {};\n\n if (!filterValues && !loading && !parentQueryLoading && (filterData || !rawQueryStringified)) {\n const newValues = getFilterValues(filterData, filters, updatedQuery);\n dispatch({ newValues, shouldSearch: false, type: 'update' });\n return null;\n }\n\n const handleSearch = newQuery => {\n setDisplaySearchFilter(false);\n const hashBit = asPath.split('#')[1] || '';\n const parsedHashBit = hashBit ? `#${hashBit}` : '';\n scrollToFirstList();\n if (!newQuery) {\n const baseQuery = `${currentUrl}${parsedHashBit}`;\n setUrlPath(baseQuery);\n return router.push('/Resolver', baseQuery, { shallow: !url, scroll: false }).then(() => {\n setKey(`filter-${name}:${Date.now()}`); // remove after range component update\n });\n }\n const newUrl = buildNewUrl(url, currentUrl, newQuery, hashBit);\n setUrlPath(newUrl);\n return router.push('/Resolver', newUrl, { shallow: !url, scroll: false });\n };\n\n const scrollToFirstList = () => {\n const [list] = document.getElementsByClassName('list-top');\n const shouldScrollToFirstList = !url && list;\n\n if (shouldScrollToFirstList) {\n window.scrollTo({\n left: 0,\n top: window.pageYOffset - SCROLL_OFFSET + list.getBoundingClientRect().top\n });\n } else {\n window.scrollTo(0, 0);\n }\n };\n\n if (!filterValues) return null;\n\n return (\n <SearchFilter\n key={key}\n setAppliedFilters={dispatch}\n query={updatedQuery}\n listComponentName={listComponentName}\n searchFilterRef={searchFilterRef}\n data={filterData}\n filters={filters}\n hasUrl={!!url}\n entity={entity}\n handleSearch={handleSearch}\n filterValues={filterValues}\n name={name}\n isCollapsedOnResponsive={isCollapsedOnResponsive}\n displaySearchFilter={displaySearchFilter}\n setDisplaySearchFilter={setDisplaySearchFilter}\n groupAfterMobile={groupAfterMobile}\n groupAfterDesktop={groupAfterDesktop}\n />\n );\n};\n\nSearchFilterContainer.propTypes = {\n entity: PropTypes.string,\n url: PropTypes.string,\n filters: PropTypes.array,\n name: PropTypes.string.isRequired,\n isCollapsedOnResponsive: PropTypes.bool,\n groupAfterMobile: PropTypes.number,\n groupAfterDesktop: PropTypes.number,\n filterBy: PropTypes.array,\n filterByProperty: PropTypes.array,\n shouldAddFilters: PropTypes.bool,\n listComponentName: PropTypes.string,\n parent: PropTypes.object\n};\n\nSearchFilterContainer.defaultProps = {\n url: null,\n filters: [],\n entity: '',\n isCollapsedOnResponsive: true,\n groupAfterMobile: 0,\n groupAfterDesktop: 0,\n filterBy: [],\n filterByProperty: [],\n shouldAddFilters: false,\n listComponentName: '',\n parent: {}\n};\n\nexport default withTitle(SearchFilterContainer);\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,SAAS,EAAEC,MAAM,EAAEC,UAAU,EAAEC,UAAU,QAAQ,OAAO;AAClF,SAASC,WAAW,QAAQ,8BAA8B;AAC1D,SAASC,SAAS,QAAQ,aAAa;AACvC,SAASC,QAAQ,QAAQ,gBAAgB;AACzC,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,KAAK;EACjCtF,gBAAgB,EAAEjD,SAAS,CAACyI,IAAI;EAChCvF,iBAAiB,EAAElD,SAAS,CAACsI,MAAM;EACnCnF,MAAM,EAAEnD,SAAS,CAAC2I;AACpB,CAAC;AAEDpG,qBAAqB,CAACqG,YAAY,GAAG;EACnCnG,GAAG,EAAE,IAAI;EACTC,OAAO,EAAE,EAAE;EACXF,MAAM,EAAE,EAAE;EACVI,uBAAuB,EAAE,IAAI;EAC7BC,gBAAgB,EAAE,CAAC;EACnBC,iBAAiB,EAAE,CAAC;EACpBC,QAAQ,EAAE,EAAE;EACZC,gBAAgB,EAAE,EAAE;EACpBC,gBAAgB,EAAE,KAAK;EACvBC,iBAAiB,EAAE,EAAE;EACrBC,MAAM,EAAE,CAAC;AACX,CAAC;AAED,eAAehD,SAAS,CAACoC,qBAAqB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.js","names":["React","useState","PropTypes","upperFirst","Checkboxes","FaChevronDown","FaChevronUp","withTitle","decodeValue","LIMIT_MIN","LIMIT_MAX","MORE","LESS","Checkbox","data","prop","updateFilterValues","filterValues","label","elementTitle","shouldSearch","displayFilterCount","checkboxLimit","setCheckboxLimit","handleCheckboxOptions","checkboxQueryParams","map","val","multiple","sortedValues","buckets","key","doc_count","count","optionLabel","filter","Boolean","sort","forEach","value","i","push","name","checked","includes","id","disabled","shouldDisplayMore","createElement","Fragment","className","options","onChange","eData","newCheckboxValues","length","role","onClick","propTypes","object","isRequired","string","func","bool","defaultProps"],"sources":["../../../../src/components/SearchFilter/components/Checkbox.js"],"sourcesContent":["import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport upperFirst from 'lodash.upperfirst';\nimport { Checkboxes } from '@blaze-react/checkboxes';\nimport { FaChevronDown, FaChevronUp } from 'react-icons/fa';\nimport { withTitle } from '../../../HOC';\nimport { decodeValue } from '../helpers';\nimport { LIMIT_MIN, LIMIT_MAX, MORE, LESS } from '../constants';\n\nconst Checkbox = ({\n data,\n prop,\n updateFilterValues,\n filterValues,\n label,\n elementTitle,\n shouldSearch,\n displayFilterCount\n}) => {\n const [checkboxLimit, setCheckboxLimit] = useState(null);\n if (!data[prop]) return null;\n\n const handleCheckboxOptions = () => {\n if (checkboxLimit[prop] === LIMIT_MIN) {\n setCheckboxLimit({ [prop]: LIMIT_MAX });\n } else {\n setCheckboxLimit({ [prop]: LIMIT_MIN });\n }\n };\n\n if (!checkboxLimit) {\n setCheckboxLimit({ [prop]: LIMIT_MIN });\n }\n\n if (!checkboxLimit) return null;\n\n let checkboxQueryParams = [];\n\n if (filterValues && filterValues[prop]) {\n checkboxQueryParams =\n typeof filterValues[prop] === 'string'\n ? [decodeValue(filterValues[prop])]\n : filterValues[prop].map(val => decodeValue(val));\n }\n const multiple = [];\n\n const sortedValues = data[prop].buckets\n .map(({ key, doc_count: count }) => {\n const optionLabel = displayFilterCount ? `${key} (${count})` : key;\n return [key, optionLabel, !count];\n })\n .filter(Boolean)\n .sort();\n\n sortedValues.forEach(\n (value, i) =>\n i < checkboxLimit[prop] &&\n multiple.push({\n label: upperFirst(value[1]),\n value: value[0],\n name: prop,\n checked: checkboxQueryParams.includes(value[0]),\n id: value[0],\n disabled: value[2]\n })\n );\n\n const shouldDisplayMore = !checkboxLimit || checkboxLimit[prop] === LIMIT_MIN;\n return (\n <>\n {label ? <p>{label}</p> : ''}\n <Checkboxes\n className=\"form-checkbox\"\n options={multiple}\n onChange={({ data: eData }) => {\n const newCheckboxValues = eData\n .filter(({ checked }) => checked)\n .map(({ value }) => value);\n updateFilterValues({ [prop]: newCheckboxValues }, shouldSearch);\n }}\n />\n {data[prop].buckets.length > LIMIT_MIN && (\n <div\n role=\"button\"\n className=\"see-more\"\n onClick={handleCheckboxOptions}\n aria-label={shouldDisplayMore ? `See ${MORE} options` : `See ${LESS} options`}>\n {shouldDisplayMore ? (\n <>\n <i>\n <FaChevronDown className=\"inline-icon\" />\n </i>\n {` See ${MORE}`}\n </>\n ) : (\n <>\n <i>\n <FaChevronUp className=\"inline-icon\" />\n </i>\n {` See ${LESS}`}\n </>\n )}\n </div>\n )}\n </>\n );\n};\n\nCheckbox.propTypes = {\n data: PropTypes.object.isRequired,\n prop: PropTypes.string.isRequired,\n filterValues: PropTypes.object.isRequired,\n updateFilterValues: PropTypes.func.isRequired,\n shouldSearch: PropTypes.bool,\n label: PropTypes.string,\n elementTitle: PropTypes.string,\n displayFilterCount: PropTypes.bool\n};\n\nCheckbox.defaultProps = {\n shouldSearch: false,\n label: '',\n elementTitle: '',\n displayFilterCount: false\n};\n\nexport default withTitle(Checkbox);\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,UAAU,MAAM,mBAAmB;AAC1C,SAASC,UAAU,QAAQ,yBAAyB;AACpD,SAASC,aAAa,EAAEC,WAAW,QAAQ,gBAAgB;AAC3D,SAASC,SAAS,QAAQ,cAAc;AACxC,SAASC,WAAW,QAAQ,YAAY;AACxC,SAASC,SAAS,EAAEC,SAAS,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAE/D,MAAMC,QAAQ,GAAGA,CAAC;EAChBC,IAAI;EACJC,IAAI;EACJC,kBAAkB;EAClBC,YAAY;EACZC,KAAK;EACLC,YAAY;EACZC,YAAY;EACZC;AACF,CAAC,KAAK;EACJ,MAAM,CAACC,aAAa,EAAEC,gBAAgB,CAAC,GAAGtB,QAAQ,CAAC,IAAI,CAAC;EACxD,IAAI,CAACa,IAAI,CAACC,IAAI,CAAC,EAAE,OAAO,IAAI;EAE5B,MAAMS,qBAAqB,GAAGA,CAAA,KAAM;IAClC,IAAIF,aAAa,CAACP,IAAI,CAAC,KAAKN,SAAS,EAAE;MACrCc,gBAAgB,CAAC;QAAE,CAACR,IAAI,GAAGL;MAAU,CAAC,CAAC;IACzC,CAAC,MAAM;MACLa,gBAAgB,CAAC;QAAE,CAACR,IAAI,GAAGN;MAAU,CAAC,CAAC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d,CAAC,gBAEHX,KAAA,CAAAgD,aAAA,CAAAhD,KAAA,CAAAiD,QAAA,qBACEjD,KAAA,CAAAgD,aAAA,yBACEhD,KAAA,CAAAgD,aAAA,CAAC1C,WAAW;IAAC4C,SAAS,EAAC;EAAa,CAAE,CACrC,CAAC,EACF,QAAOtC,IAAK,EACd,CAED,CAEP,CAAC;AAEP,CAAC;AAEDC,QAAQ,CAAC6C,SAAS,GAAG;EACnB5C,IAAI,EAAEZ,SAAS,CAACyD,MAAM,CAACC,UAAU;EACjC7C,IAAI,EAAEb,SAAS,CAAC2D,MAAM,CAACD,UAAU;EACjC3C,YAAY,EAAEf,SAAS,CAACyD,MAAM,CAACC,UAAU;EACzC5C,kBAAkB,EAAEd,SAAS,CAAC4D,IAAI,CAACF,UAAU;EAC7CxC,YAAY,EAAElB,SAAS,CAAC6D,IAAI;EAC5B7C,KAAK,EAAEhB,SAAS,CAAC2D,MAAM;EACvB1C,YAAY,EAAEjB,SAAS,CAAC2D,MAAM;EAC9BxC,kBAAkB,EAAEnB,SAAS,CAAC6D;AAChC,CAAC;AAEDlD,QAAQ,CAACmD,YAAY,GAAG;EACtB5C,YAAY,EAAE,KAAK;EACnBF,KAAK,EAAE,EAAE;EACTC,YAAY,EAAE,EAAE;EAChBE,kBAAkB,EAAE;AACtB,CAAC;AAED,eAAed,SAAS,CAACM,QAAQ,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"Checkbox.js","names":["React","useState","PropTypes","upperFirst","Checkboxes","FaChevronDown","FaChevronUp","withTitle","decodeValue","LIMIT_MIN","LIMIT_MAX","MORE","LESS","Checkbox","data","prop","updateFilterValues","filterValues","label","elementTitle","shouldSearch","displayFilterCount","checkboxLimit","setCheckboxLimit","handleCheckboxOptions","checkboxQueryParams","map","val","multiple","sortedValues","buckets","key","doc_count","count","optionLabel","filter","Boolean","sort","forEach","value","i","push","name","checked","includes","id","disabled","shouldDisplayMore","createElement","Fragment","className","options","onChange","eData","newCheckboxValues","length","role","onClick","propTypes","object","isRequired","string","func","bool","defaultProps"],"sources":["../../../../src/components/SearchFilter/components/Checkbox.js"],"sourcesContent":["import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport upperFirst from 'lodash.upperfirst';\nimport { Checkboxes } from '@blaze-react/checkboxes';\nimport { FaChevronDown, FaChevronUp } from 'react-icons/fa';\nimport { withTitle } from '../../../HOC';\nimport { decodeValue } from '../helpers';\nimport { LIMIT_MIN, LIMIT_MAX, MORE, LESS } from '../constants';\n\nconst Checkbox = ({\n data,\n prop,\n updateFilterValues,\n filterValues,\n label,\n elementTitle,\n shouldSearch,\n displayFilterCount\n}) => {\n const [checkboxLimit, setCheckboxLimit] = useState(null);\n if (!data[prop]) return null;\n\n const handleCheckboxOptions = () => {\n if (checkboxLimit[prop] === LIMIT_MIN) {\n setCheckboxLimit({ [prop]: LIMIT_MAX });\n } else {\n setCheckboxLimit({ [prop]: LIMIT_MIN });\n }\n };\n\n if (!checkboxLimit) {\n setCheckboxLimit({ [prop]: LIMIT_MIN });\n }\n\n if (!checkboxLimit) return null;\n\n let checkboxQueryParams = [];\n\n if (filterValues && filterValues[prop]) {\n checkboxQueryParams =\n typeof filterValues[prop] === 'string'\n ? [decodeValue(filterValues[prop])]\n : filterValues[prop].map(val => decodeValue(val));\n }\n const multiple = [];\n\n const sortedValues = data[prop].buckets\n .map(({ key, doc_count: count }) => {\n const optionLabel = displayFilterCount ? `${key} (${count})` : key;\n return [key, optionLabel, !count];\n })\n .filter(Boolean)\n .sort();\n\n sortedValues.forEach(\n (value, i) =>\n i < checkboxLimit[prop] &&\n multiple.push({\n label: upperFirst(value[1]),\n value: value[0],\n name: prop,\n checked: checkboxQueryParams.includes(value[0]),\n id: value[0],\n disabled: value[2]\n })\n );\n\n const shouldDisplayMore = !checkboxLimit || checkboxLimit[prop] === LIMIT_MIN;\n return (\n <>\n {label ? <p>{label}</p> : ''}\n <Checkboxes\n className=\"form-checkbox\"\n options={multiple}\n onChange={({ data: eData }) => {\n const newCheckboxValues = eData\n .filter(({ checked }) => checked)\n .map(({ value }) => value);\n updateFilterValues({ [prop]: newCheckboxValues }, shouldSearch);\n }}\n />\n {data[prop].buckets.length > LIMIT_MIN && (\n <div\n role=\"button\"\n className=\"see-more\"\n onClick={handleCheckboxOptions}\n aria-label={shouldDisplayMore ? `See ${MORE} options` : `See ${LESS} options`}>\n {shouldDisplayMore ? (\n <>\n <i>\n <FaChevronDown className=\"inline-icon\" />\n </i>\n {` See ${MORE}`}\n </>\n ) : (\n <>\n <i>\n <FaChevronUp className=\"inline-icon\" />\n </i>\n {` See ${LESS}`}\n </>\n )}\n </div>\n )}\n </>\n );\n};\n\nCheckbox.propTypes = {\n data: PropTypes.object.isRequired,\n prop: PropTypes.string.isRequired,\n filterValues: PropTypes.object.isRequired,\n updateFilterValues: PropTypes.func.isRequired,\n shouldSearch: PropTypes.bool,\n label: PropTypes.string,\n elementTitle: PropTypes.string,\n displayFilterCount: PropTypes.bool\n};\n\nCheckbox.defaultProps = {\n shouldSearch: false,\n label: '',\n elementTitle: '',\n displayFilterCount: false\n};\n\nexport default withTitle(Checkbox);\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,UAAU,MAAM,mBAAmB;AAC1C,SAASC,UAAU,QAAQ,yBAAyB;AACpD,SAASC,aAAa,EAAEC,WAAW,QAAQ,gBAAgB;AAC3D,SAASC,SAAS,QAAQ,cAAc;AACxC,SAASC,WAAW,QAAQ,YAAY;AACxC,SAASC,SAAS,EAAEC,SAAS,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAE/D,MAAMC,QAAQ,GAAGA,CAAC;EAChBC,IAAI;EACJC,IAAI;EACJC,kBAAkB;EAClBC,YAAY;EACZC,KAAK;EACLC,YAAY;EACZC,YAAY;EACZC;AACF,CAAC,KAAK;EACJ,MAAM,CAACC,aAAa,EAAEC,gBAAgB,CAAC,GAAGtB,QA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debounce","RangeFilter","useRouter","Select","parseUrl","useGetSingleEntitySchema","getSelectOptions","getIntersectedProp","getRangeValue","calculateMinMax","decodeValue","Range","rangeInterval","label","entity","propsToDisplay","dataAggregations","updateFilterValues","filterValues","shouldSearch","elementTitle","router","debounceAmount","query","asPath","hasMultipleOptions","length","initialRangeOption","rangeOption","selectedOption","rangeValue","data","getEntitySchema","loading","options","min","max","minValue","maxValue","valueToUse","_objectSpread","handleChange","option","value","createElement","Fragment","className","id","required","onChange","updatedOptions","forEach","prop","eMin","eMax","initValue","key","name","propTypes","array","isRequired","string","object","func","bool","number","defaultProps"],"sources":["../../../../src/components/SearchFilter/components/Range.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport debounce from 'lodash.debounce';\nimport RangeFilter from '@blaze-react/range-filter';\nimport { useRouter } from 'next/router';\nimport Select from '@blaze-react/select';\nimport { parseUrl } from 'query-string';\nimport { useGetSingleEntitySchema } from '../../../hooks';\nimport { getSelectOptions, getIntersectedProp, getRangeValue, calculateMinMax } from '../helpers';\nimport { decodeValue } from '../helpers/decode-encode';\n\nconst Range = ({\n rangeInterval,\n label,\n entity,\n propsToDisplay,\n dataAggregations,\n updateFilterValues,\n filterValues,\n shouldSearch,\n elementTitle\n}) => {\n const router = useRouter();\n const debounceAmount = shouldSearch ? 1200 : 400;\n const { query } = parseUrl(decodeValue(router.asPath));\n const hasMultipleOptions = propsToDisplay.length > 1;\n const initialRangeOption = getIntersectedProp(query, propsToDisplay) || propsToDisplay[0];\n const rangeOption =\n (filterValues[initialRangeOption] && filterValues[initialRangeOption].selectedOption) ||\n initialRangeOption;\n const rangeValue = filterValues[rangeOption];\n\n const { data: { getEntitySchema = {} } = {}, loading } = useGetSingleEntitySchema(\n entity,\n !hasMultipleOptions\n );\n\n if (loading || !rangeOption || !rangeValue) return '';\n\n const options = getSelectOptions(getEntitySchema, propsToDisplay);\n // get range from aggregations so it updates\n const { min, max } = calculateMinMax(dataAggregations[rangeOption], rangeInterval);\n const minValue = rangeValue.minValue < min ? min : rangeValue.minValue;\n const maxValue = rangeValue.maxValue > max ? max : rangeValue.maxValue;\n const valueToUse = { ...rangeValue, min, max, minValue, maxValue };\n\n const handleChange = debounce((option, value) => {\n updateFilterValues({ [option]: { ...value, selectedOption: rangeOption } }, shouldSearch);\n }, debounceAmount);\n\n return (\n <>\n {elementTitle && <div className=\"heading heading--section\">{elementTitle}</div>}\n {hasMultipleOptions && (\n <>\n <label>{label}</label>\n <Select\n value={rangeOption}\n id={rangeOption}\n options={options}\n required\n onChange={({ value }) => {\n const updatedOptions = {};\n propsToDisplay.forEach(prop => {\n const { min: eMin, max: eMax } = filterValues[prop];\n const initValue = getRangeValue(null, rangeInterval, eMin, eMax);\n updatedOptions[prop] = { ...initValue, selectedOption: value };\n });\n\n updateFilterValues(updatedOptions, false);\n }}\n />\n </>\n )}\n <RangeFilter\n key={`${rangeOption}-${minValue}-${maxValue}`}\n name={rangeOption}\n label={hasMultipleOptions ? '' : label}\n value={valueToUse}\n id={rangeOption}\n onChange={({ value }) => {\n handleChange(rangeOption, value);\n }}\n />\n </>\n );\n};\n\nRange.propTypes = {\n propsToDisplay: PropTypes.array.isRequired,\n entity: PropTypes.string.isRequired,\n filterValues: PropTypes.object.isRequired,\n updateFilterValues: PropTypes.func.isRequired,\n shouldSearch: PropTypes.bool,\n rangeInterval: PropTypes.number,\n label: PropTypes.string,\n elementTitle: PropTypes.string,\n dataAggregations: PropTypes.object.isRequired\n};\n\nRange.defaultProps = {\n shouldSearch: false,\n rangeInterval: 1,\n label: '',\n elementTitle: ''\n};\n\nexport default Range;\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,QAAQ,MAAM,iBAAiB;AACtC,OAAOC,WAAW,MAAM,2BAA2B;AACnD,SAASC,SAAS,QAAQ,aAAa;AACvC,OAAOC,MAAM,MAAM,qBAAqB;AACxC,SAASC,QAAQ,QAAQ,cA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AAG;EACnB/C,YAAY,EAAE,KAAK;EACnBP,aAAa,EAAE,CAAC;EAChBC,KAAK,EAAE,EAAE;EACTO,YAAY,EAAE;AAChB,CAAC;AAED,eAAeT,KAAK","ignoreList":[]}
1
+ {"version":3,"file":"Range.js","names":["React","PropTypes","debounce","RangeFilter","useRouter","Select","parseUrl","useGetSingleEntitySchema","getSelectOptions","getIntersectedProp","getRangeValue","calculateMinMax","decodeValue","Range","rangeInterval","label","entity","propsToDisplay","dataAggregations","updateFilterValues","filterValues","shouldSearch","elementTitle","router","debounceAmount","query","asPath","hasMultipleOptions","length","initialRangeOption","rangeOption","selectedOption","rangeValue","data","getEntitySchema","loading","options","min","max","minValue","maxValue","valueToUse","_objectSpread","handleChange","option","value","createElement","Fragment","className","id","required","onChange","updatedOptions","forEach","prop","eMin","eMax","initValue","key","name","propTypes","array","isRequired","string","object","func","bool","number","defaultProps"],"sources":["../../../../src/components/SearchFilter/components/Range.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport debounce from 'lodash.debounce';\nimport RangeFilter from '@blaze-react/range-filter';\nimport { useRouter } from 'next/router';\nimport Select from '@blaze-react/select';\nimport { parseUrl } from 'query-string';\nimport { useGetSingleEntitySchema } from '../../../hooks';\nimport { getSelectOptions, getIntersectedProp, getRangeValue, calculateMinMax } from '../helpers';\nimport { decodeValue } from '../helpers/decode-encode';\n\nconst Range = ({\n rangeInterval,\n label,\n entity,\n propsToDisplay,\n dataAggregations,\n updateFilterValues,\n filterValues,\n shouldSearch,\n elementTitle\n}) => {\n const router = useRouter();\n const debounceAmount = shouldSearch ? 1200 : 400;\n const { query } = parseUrl(decodeValue(router.asPath));\n const hasMultipleOptions = propsToDisplay.length > 1;\n const initialRangeOption = getIntersectedProp(query, propsToDisplay) || propsToDisplay[0];\n const rangeOption =\n (filterValues[initialRangeOption] && filterValues[initialRangeOption].selectedOption) ||\n initialRangeOption;\n const rangeValue = filterValues[rangeOption];\n\n const { data: { getEntitySchema = {} } = {}, loading } = useGetSingleEntitySchema(\n entity,\n !hasMultipleOptions\n );\n\n if (loading || !rangeOption || !rangeValue) return '';\n\n const options = getSelectOptions(getEntitySchema, propsToDisplay);\n // get range from aggregations so it updates\n const { min, max } = calculateMinMax(dataAggregations[rangeOption], rangeInterval);\n const minValue = rangeValue.minValue < min ? min : rangeValue.minValue;\n const maxValue = rangeValue.maxValue > max ? max : rangeValue.maxValue;\n const valueToUse = { ...rangeValue, min, max, minValue, maxValue };\n\n const handleChange = debounce((option, value) => {\n updateFilterValues({ [option]: { ...value, selectedOption: rangeOption } }, shouldSearch);\n }, debounceAmount);\n\n return (\n <>\n {elementTitle && <div className=\"heading heading--section\">{elementTitle}</div>}\n {hasMultipleOptions && (\n <>\n <label>{label}</label>\n <Select\n value={rangeOption}\n id={rangeOption}\n options={options}\n required\n onChange={({ value }) => {\n const updatedOptions = {};\n propsToDisplay.forEach(prop => {\n const { min: eMin, max: eMax } = filterValues[prop];\n const initValue = getRangeValue(null, rangeInterval, eMin, eMax);\n updatedOptions[prop] = { ...initValue, selectedOption: value };\n });\n\n updateFilterValues(updatedOptions, false);\n }}\n />\n </>\n )}\n <RangeFilter\n key={`${rangeOption}-${minValue}-${maxValue}`}\n name={rangeOption}\n label={hasMultipleOptions ? '' : label}\n value={valueToUse}\n id={rangeOption}\n onChange={({ value }) => {\n handleChange(rangeOption, value);\n }}\n />\n </>\n );\n};\n\nRange.propTypes = {\n propsToDisplay: PropTypes.array.isRequired,\n entity: PropTypes.string.isRequired,\n filterValues: PropTypes.object.isRequired,\n updateFilterValues: PropTypes.func.isRequired,\n shouldSearch: PropTypes.bool,\n rangeInterval: PropTypes.number,\n label: PropTypes.string,\n elementTitle: PropTypes.string,\n dataAggregations: PropTypes.object.isRequired\n};\n\nRange.defaultProps = {\n shouldSearch: false,\n rangeInterval: 1,\n label: '',\n elementTitle: ''\n};\n\nexport default Range;\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SA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AC/BpD,KAAK,EAAEd,SAAS,CAAC8D,MAAM;EACvBzC,YAAY,EAAErB,SAAS,CAAC8D,MAAM;EAC9B7C,gBAAgB,EAAEjB,SAAS,CAAC+D,MAAM,CAACF;AACrC,CAAC;AAEDjD,KAAK,CAACuD,YAAY,GAAG;EACnB/C,YAAY,EAAE,KAAK;EACnBP,aAAa,EAAE,CAAC;EAChBC,KAAK,EAAE,EAAE;EACTO,YAAY,EAAE;AAChB,CAAC;AAED,eAAeT,KAAK"}
@@ -1 +1 @@
1
- {"version":3,"file":"Select.js","names":["React","PropTypes","Select","DEFAULT_OPTION","SelectFilter","data","label","prop","updateFilterValues","filterValues","shouldSearch","displayLabelAsPlaceholder","displayFilterCount","elementTitle","filterValue","disabledOptions","buckets","options","map","key","doc_count","count","push","optionLabel","filter","Boolean","sort","labelText","labelToUse","defaultTextValue","createElement","Fragment","className","value","id","name","onChange","valueToUse","disabled","propTypes","object","isRequired","string","func","bool","defaultProps"],"sources":["../../../../src/components/SearchFilter/components/Select.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Select from '@blaze-react/select';\nimport { DEFAULT_OPTION } from '../constants';\n\nconst SelectFilter = ({\n data,\n label,\n prop,\n updateFilterValues,\n filterValues,\n shouldSearch,\n displayLabelAsPlaceholder,\n displayFilterCount,\n elementTitle\n}) => {\n const filterValue = filterValues[prop] || '';\n const disabledOptions = [];\n const { buckets = [] } = data[prop] || {};\n const options = buckets\n .map(({ key, doc_count: count }) => {\n if (!count) disabledOptions.push(key);\n const optionLabel = displayFilterCount ? `${key} (${count})` : key;\n return [key, optionLabel];\n })\n .filter(Boolean)\n .sort();\n\n const labelText = label || prop;\n let labelToUse = labelText;\n let defaultTextValue = DEFAULT_OPTION;\n if (displayLabelAsPlaceholder) {\n defaultTextValue = labelToUse;\n labelToUse = null;\n }\n\n return (\n <>\n {elementTitle && <div className=\"heading heading--section\">{elementTitle}</div>}\n <Select\n label={labelToUse}\n value={filterValue}\n id={prop}\n name={`filter-${prop}`}\n data-testid={`filter-${prop}`}\n options={options}\n defaultTextValue={defaultTextValue}\n onChange={({ value }) => {\n let valueToUse = value;\n if (value === defaultTextValue) valueToUse = '';\n updateFilterValues({ [prop]: valueToUse }, shouldSearch);\n }}\n disabled={disabledOptions}\n />\n </>\n );\n};\n\nSelectFilter.propTypes = {\n data: PropTypes.object.isRequired,\n prop: PropTypes.string.isRequired,\n filterValues: PropTypes.object,\n updateFilterValues: PropTypes.func.isRequired,\n shouldSearch: PropTypes.bool,\n label: PropTypes.string,\n elementTitle: PropTypes.string,\n\n displayLabelAsPlaceholder: PropTypes.bool,\n displayFilterCount: PropTypes.bool\n};\n\nSelectFilter.defaultProps = {\n filterValues: {},\n shouldSearch: false,\n label: '',\n elementTitle: '',\n displayLabelAsPlaceholder: false,\n displayFilterCount: false\n};\n\nexport default SelectFilter;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,MAAM,MAAM,qBAAqB;AACxC,SAASC,cAAc,QAAQ,cAAc;AAE7C,MAAMC,YAAY,GAAGA,CAAC;EACpBC,IAAI;EACJC,KAAK;EACLC,IAAI;EACJC,kBAAkB;EAClBC,YAAY;EACZC,YAAY;EACZC,yBAAyB;EACzBC,kBAAkB;EAClBC;AACF,CAAC,KAAK;EACJ,MAAMC,WAAW,GAAGL,YAAY,CAACF,IAAI,CAAC,IAAI,EAAE;EAC5C,MAAMQ,eAAe,GAAG,EAAE;EAC1B,MAAM;IAAEC,OAAO,GAAG;EAAG,CAAC,GAAGX,IAAI,CAACE,IAAI,CAAC,IAAI,CAAC,CAAC;EACzC,MAAMU,OAAO,GAAGD,OAAO,CACpBE,GAAG,CAAC,CAAC;IAAEC,GAAG;IAAEC,SAAS,EAAEC;EAAM,CAAC,KAAK;IAClC,IAAI,CAACA,KAAK,EAAEN,eAAe,CAACO,IAAI,CAACH,GAAG,CAAC;IACrC,MAAMI,WAAW,GAAGX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AACD,UAAU;EACjChC,YAAY,EAAER,SAAS,CAACuC,MAAM;EAC9BhC,kBAAkB,EAAEP,SAAS,CAAC0C,IAAI,CAACF,UAAU;EAC7C/B,YAAY,EAAET,SAAS,CAAC2C,IAAI;EAC5BtC,KAAK,EAAEL,SAAS,CAACyC,MAAM;EACvB7B,YAAY,EAAEZ,SAAS,CAACyC,MAAM;EAE9B/B,yBAAyB,EAAEV,SAAS,CAAC2C,IAAI;EACzChC,kBAAkB,EAAEX,SAAS,CAAC2C;AAChC,CAAC;AAEDxC,YAAY,CAACyC,YAAY,GAAG;EAC1BpC,YAAY,EAAE,CAAC,CAAC;EAChBC,YAAY,EAAE,KAAK;EACnBJ,KAAK,EAAE,EAAE;EACTO,YAAY,EAAE,EAAE;EAChBF,yBAAyB,EAAE,KAAK;EAChCC,kBAAkB,EAAE;AACtB,CAAC;AAED,eAAeR,YAAY","ignoreList":[]}
1
+ {"version":3,"file":"Select.js","names":["React","PropTypes","Select","DEFAULT_OPTION","SelectFilter","data","label","prop","updateFilterValues","filterValues","shouldSearch","displayLabelAsPlaceholder","displayFilterCount","elementTitle","filterValue","disabledOptions","buckets","options","map","key","doc_count","count","push","optionLabel","filter","Boolean","sort","labelText","labelToUse","defaultTextValue","createElement","Fragment","className","value","id","name","onChange","valueToUse","disabled","propTypes","object","isRequired","string","func","bool","defaultProps"],"sources":["../../../../src/components/SearchFilter/components/Select.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Select from '@blaze-react/select';\nimport { DEFAULT_OPTION } from '../constants';\n\nconst SelectFilter = ({\n data,\n label,\n prop,\n updateFilterValues,\n filterValues,\n shouldSearch,\n displayLabelAsPlaceholder,\n displayFilterCount,\n elementTitle\n}) => {\n const filterValue = filterValues[prop] || '';\n const disabledOptions = [];\n const { buckets = [] } = data[prop] || {};\n const options = buckets\n .map(({ key, doc_count: count }) => {\n if (!count) disabledOptions.push(key);\n const optionLabel = displayFilterCount ? `${key} (${count})` : key;\n return [key, optionLabel];\n })\n .filter(Boolean)\n .sort();\n\n const labelText = label || prop;\n let labelToUse = labelText;\n let defaultTextValue = DEFAULT_OPTION;\n if (displayLabelAsPlaceholder) {\n defaultTextValue = labelToUse;\n labelToUse = null;\n }\n\n return (\n <>\n {elementTitle && <div className=\"heading heading--section\">{elementTitle}</div>}\n <Select\n label={labelToUse}\n value={filterValue}\n id={prop}\n name={`filter-${prop}`}\n data-testid={`filter-${prop}`}\n options={options}\n defaultTextValue={defaultTextValue}\n onChange={({ value }) => {\n let valueToUse = value;\n if (value === defaultTextValue) valueToUse = '';\n updateFilterValues({ [prop]: valueToUse }, shouldSearch);\n }}\n disabled={disabledOptions}\n />\n </>\n );\n};\n\nSelectFilter.propTypes = {\n data: PropTypes.object.isRequired,\n prop: PropTypes.string.isRequired,\n filterValues: PropTypes.object,\n updateFilterValues: PropTypes.func.isRequired,\n shouldSearch: PropTypes.bool,\n label: PropTypes.string,\n elementTitle: PropTypes.string,\n\n displayLabelAsPlaceholder: PropTypes.bool,\n displayFilterCount: PropTypes.bool\n};\n\nSelectFilter.defaultProps = {\n filterValues: {},\n shouldSearch: false,\n label: '',\n elementTitle: '',\n displayLabelAsPlaceholder: false,\n displayFilterCount: false\n};\n\nexport default SelectFilter;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,MAAM,MAAM,qBAAqB;AACxC,SAASC,cAAc,QAAQ,cAAc;AAE7C,MAAMC,YAAY,GAAGA,CAAC;EACpBC,IAAI;EACJC,KAAK;EACLC,IAAI;EACJC,kBAAkB;EAClBC,YAAY;EACZC,YAAY;EACZC,yBAAyB;EACzBC,kBAAkB;EAClBC;AACF,CAAC,KAAK;EACJ,MAAMC,WAAW,GAAGL,YAAY,CAACF,IAAI,CAAC,IAAI,EAAE;EAC5C,MAAMQ,eAAe,GAAG,EAAE;EAC1B,MAAM;IAAEC,OAAO,GAAG;EAAG,CAAC,GAAGX,IAAI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AG8B;MAAW,CAAC,EAAE3B,YAAY,CAAC;IAC1D,CAAE;IACF4B,QAAQ,EAAEvB;EAAgB,CAC3B,CACD,CAAC;AAEP,CAAC;AAEDX,YAAY,CAACmC,SAAS,GAAG;EACvBlC,IAAI,EAAEJ,SAAS,CAACuC,MAAM,CAACC,UAAU;EACjClC,IAAI,EAAEN,SAAS,CAACyC,MAAM,CAACD,UAAU;EACjChC,YAAY,EAAER,SAAS,CAACuC,MAAM;EAC9BhC,kBAAkB,EAAEP,SAAS,CAAC0C,IAAI,CAACF,UAAU;EAC7C/B,YAAY,EAAET,SAAS,CAAC2C,IAAI;EAC5BtC,KAAK,EAAEL,SAAS,CAACyC,MAAM;EACvB7B,YAAY,EAAEZ,SAAS,CAACyC,MAAM;EAE9B/B,yBAAyB,EAAEV,SAAS,CAAC2C,IAAI;EACzChC,kBAAkB,EAAEX,SAAS,CAAC2C;AAChC,CAAC;AAEDxC,YAAY,CAACyC,YAAY,GAAG;EAC1BpC,YAAY,EAAE,CAAC,CAAC;EAChBC,YAAY,EAAE,KAAK;EACnBJ,KAAK,EAAE,EAAE;EACTO,YAAY,EAAE,EAAE;EAChBF,yBAAyB,EAAE,KAAK;EAChCC,kBAAkB,EAAE;AACtB,CAAC;AAED,eAAeR,YAAY"}
@@ -1 +1 @@
1
- {"version":3,"file":"TextSearch.js","names":["React","PropTypes","Input","MdSearch","SEARCH_TERM","TextSearch","label","searchValue","updateFilterValues","elementTitle","createElement","Fragment","className","id","value","placeholder","onChange","eValue","type","onClick","e","preventDefault","propTypes","string","isRequired","func","defaultProps"],"sources":["../../../../src/components/SearchFilter/components/TextSearch.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Input from '@blaze-react/input';\nimport { MdSearch } from 'react-icons/md';\nimport { SEARCH_TERM } from '../constants';\n\nconst TextSearch = ({ label, searchValue, updateFilterValues, elementTitle }) => (\n <>\n {elementTitle && <div className=\"heading heading--section\">{elementTitle}</div>}\n <div className=\"search\">\n <div className=\"search__wrapper\">\n <div className=\"form-field form-field--input form-field--search\">\n <Input\n id={SEARCH_TERM}\n value={searchValue}\n placeholder={label || 'Search'}\n onChange={({ value: eValue }) => {\n updateFilterValues({ [SEARCH_TERM]: eValue }, false);\n }}\n />\n </div>\n <button\n type=\"button\"\n className=\"icon-button icon-button--search\"\n onClick={e => {\n e.preventDefault();\n updateFilterValues({ [SEARCH_TERM]: searchValue }, true);\n }}>\n <i>\n <MdSearch />\n </i>\n </button>\n </div>\n </div>\n </>\n);\n\nTextSearch.propTypes = {\n searchValue: PropTypes.string.isRequired,\n updateFilterValues: PropTypes.func.isRequired,\n elementTitle: PropTypes.string,\n label: PropTypes.string\n};\n\nTextSearch.defaultProps = {\n elementTitle: '',\n label: ''\n};\n\nexport default TextSearch;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,KAAK,MAAM,oBAAoB;AACtC,SAASC,QAAQ,QAAQ,gBAAgB;AACzC,SAASC,WAAW,QAAQ,cAAc;AAE1C,MAAMC,UAAU,GAAGA,CAAC;EAAEC,KAAK;EAAEC,WAAW;EAAEC,kBAAkB;EAAEC;AAAa,CAAC,kBAC1ET,KAAA,CAAAU,aAAA,CAAAV,KAAA,CAAAW,QAAA,QACGF,YAAY,iBAAIT,KAAA,CAAAU,aAAA;EAAKE,SAAS,EAAC;AAA0B,GAAEH,YAAkB,CAAC,eAC/ET,KAAA,CAAAU,aAAA;EAAKE,SAAS,EAAC;AAAQ,gBACrBZ,KAAA,CAAAU,aAAA;EAAKE,SAAS,EAAC;AAAiB,gBAC9BZ,KAAA,CAAAU,aAAA;EAAKE,SAAS,EAAC;AAAiD,gBAC9DZ,KAAA,CAAAU,aAAA,CAACR,KAAK;EACJW,EAAE,EAAET,WAAY;EAChBU,KAAK,EAAEP,WAAY;EACnBQ,WAAW,EAAET,KAAK,IAAI,QAAS;EAC/BU,QAAQ,EAAEA,CAAC;IAAEF,KAAK,EAAEG;EAAO,CAAC,KAAK;IAC/BT,kBAAkB,CAAC;MAAE,CAACJ,WAAW,GAAGa;IAAO,CAAC,EAAE,KAAK,CAAC;EACtD;AAAE,CACH,CACE,CAAC,eACNjB,KAAA,CAAAU,aAAA;EACEQ,IAAI,EAAC,QAAQ;EACbN,SAAS,EAAC,iCAAiC;EAC3CO,OAAO,EAAEC,CAAC,IAAI;IACZA,CAAC,CAACC,cAAc,CAAC,CAAC;IAClBb,kBAAkB,CAAC;MAAE,CAACJ,WAAW,GAAGG;IAAY,CAAC,EAAE,IAAI,CAAC;EAC1D;AAAE,gBACFP,KAAA,CAAAU,aAAA,yBACEV,KAAA,CAAAU,aAAA,CAACP,QAAQ,MAAE,CACV,CACG,CACL,CACF,CACL,CACH;AAEDE,UAAU,CAACiB,SAAS,GAAG;EACrBf,WAAW,EAAEN,SAAS,CAACsB,MAAM,CAACC,UAAU;EACxChB,kBAAkB,EAAEP,SAAS,CAACwB,IAAI,CAACD,UAAU;EAC7Cf,YAAY,EAAER,SAAS,CAACsB,MAAM;EAC9BjB,KAAK,EAAEL,SAAS,CAACsB;AACnB,CAAC;AAEDlB,UAAU,CAACqB,YAAY,GAAG;EACxBjB,YAAY,EAAE,EAAE;EAChBH,KAAK,EAAE;AACT,CAAC;AAED,eAAeD,UAAU","ignoreList":[]}
1
+ {"version":3,"file":"TextSearch.js","names":["React","PropTypes","Input","MdSearch","SEARCH_TERM","TextSearch","label","searchValue","updateFilterValues","elementTitle","createElement","Fragment","className","id","value","placeholder","onChange","eValue","type","onClick","e","preventDefault","propTypes","string","isRequired","func","defaultProps"],"sources":["../../../../src/components/SearchFilter/components/TextSearch.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Input from '@blaze-react/input';\nimport { MdSearch } from 'react-icons/md';\nimport { SEARCH_TERM } from '../constants';\n\nconst TextSearch = ({ label, searchValue, updateFilterValues, elementTitle }) => (\n <>\n {elementTitle && <div className=\"heading heading--section\">{elementTitle}</div>}\n <div className=\"search\">\n <div className=\"search__wrapper\">\n <div className=\"form-field form-field--input form-field--search\">\n <Input\n id={SEARCH_TERM}\n value={searchValue}\n placeholder={label || 'Search'}\n onChange={({ value: eValue }) => {\n updateFilterValues({ [SEARCH_TERM]: eValue }, false);\n }}\n />\n </div>\n <button\n type=\"button\"\n className=\"icon-button icon-button--search\"\n onClick={e => {\n e.preventDefault();\n updateFilterValues({ [SEARCH_TERM]: searchValue }, true);\n }}>\n <i>\n <MdSearch />\n </i>\n </button>\n </div>\n </div>\n </>\n);\n\nTextSearch.propTypes = {\n searchValue: PropTypes.string.isRequired,\n updateFilterValues: PropTypes.func.isRequired,\n elementTitle: PropTypes.string,\n label: PropTypes.string\n};\n\nTextSearch.defaultProps = {\n elementTitle: '',\n label: ''\n};\n\nexport default TextSearch;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,KAAK,MAAM,oBAAoB;AACtC,SAASC,QAAQ,QAAQ,gBAAgB;AACzC,SAASC,WAAW,QAAQ,cAAc;AAE1C,MAAMC,UAAU,GAAGA,CAAC;EAAEC,KAAK;EAAEC,WAAW;EAAEC,kBAAkB;EAAEC;AAAa,CAAC,kBAC1ET,KAAA,CAAAU,aAAA,CAAAV,KAAA,CAAAW,QAAA,QACGF,YAAY,iBAAIT,KAAA,CAAAU,aAAA;EAAKE,SAAS,EAAC;AAA0B,GAAEH,YAAkB,CAAC,eAC/ET,KAAA,CAAAU,aAAA;EAAKE,SAAS,EAAC;AAAQ,gBACrBZ,KAAA,CAAAU,aAAA;EAAKE,SAAS,EAAC;AAAiB,gBAC9BZ,KAAA,CAAAU,aAAA;EAAKE,SAAS,EAAC;AAAiD,gBAC9DZ,KAAA,CAAAU,aAAA,CAACR,KAAK;EACJW,EAAE,EAAET,WAAY;EAChBU,KAAK,EAAEP,WAAY;EACnBQ,WAAW,EAAET,KAAK,IAAI,QAAS;EAC/BU,QAAQ,EAAEA,CAAC;IAAEF,KAAK,EAAEG;EAAO,CAAC,KAAK;IAC/BT,kBAAkB,CAAC;MAAE,CAACJ,WAAW,GAAGa;IAAO,CAAC,EAAE,KAAK,CAAC;EACtD;AAAE,CACH,CACE,CAAC,eACNjB,KAAA,CAAAU,aAAA;EACEQ,IAAI,EAAC,QAAQ;EACbN,SAAS,EAAC,iCAAiC;EAC3CO,OAAO,EAAEC,CAAC,IAAI;IACZA,CAAC,CAACC,cAAc,CAAC,CAAC;IAClBb,kBAAkB,CAAC;MAAE,CAACJ,WAAW,GAAGG;IAAY,CAAC,EAAE,IAAI,CAAC;EAC1D;AAAE,gBACFP,KAAA,CAAAU,aAAA,yBACEV,KAAA,CAAAU,aAAA,CAACP,QAAQ,MAAE,CACV,CACG,CACL,CACF,CACL,CACH;AAEDE,UAAU,CAACiB,SAAS,GAAG;EACrBf,WAAW,EAAEN,SAAS,CAACsB,MAAM,CAACC,UAAU;EACxChB,kBAAkB,EAAEP,SAAS,CAACwB,IAAI,CAACD,UAAU;EAC7Cf,YAAY,EAAER,SAAS,CAACsB,MAAM;EAC9BjB,KAAK,EAAEL,SAAS,CAACsB;AACnB,CAAC;AAEDlB,UAAU,CAACqB,YAAY,GAAG;EACxBjB,YAAY,EAAE,EAAE;EAChBH,KAAK,EAAE;AACT,CAAC;AAED,eAAeD,UAAU"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["TextSearch","Checkbox","SelectFilter","Range"],"sources":["../../../../src/components/SearchFilter/components/index.js"],"sourcesContent":["import TextSearch from './TextSearch';\nimport Checkbox from './Checkbox';\nimport SelectFilter from './Select';\nimport Range from './Range';\n\nexport { TextSearch, Checkbox, SelectFilter, Range };\n"],"mappings":"AAAA,OAAOA,UAAU,MAAM,cAAc;AACrC,OAAOC,QAAQ,MAAM,YAAY;AACjC,OAAOC,YAAY,MAAM,UAAU;AACnC,OAAOC,KAAK,MAAM,SAAS;AAE3B,SAASH,UAAU,EAAEC,QAAQ,EAAEC,YAAY,EAAEC,KAAK","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["TextSearch","Checkbox","SelectFilter","Range"],"sources":["../../../../src/components/SearchFilter/components/index.js"],"sourcesContent":["import TextSearch from './TextSearch';\nimport Checkbox from './Checkbox';\nimport SelectFilter from './Select';\nimport Range from './Range';\n\nexport { TextSearch, Checkbox, SelectFilter, Range };\n"],"mappings":"AAAA,OAAOA,UAAU,MAAM,cAAc;AACrC,OAAOC,QAAQ,MAAM,YAAY;AACjC,OAAOC,YAAY,MAAM,UAAU;AACnC,OAAOC,KAAK,MAAM,SAAS;AAE3B,SAASH,UAAU,EAAEC,QAAQ,EAAEC,YAAY,EAAEC,KAAK"}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","names":["CHECKBOX","SELECT","TEXT_SEARCH","SEARCH_TERM","SIZE","process","env","BLAZE_PB_SEARCH_FILETER_AGG_SIZE","KEYWORD","RAW_RESULTS","DEFAULT_OPTION","DEFAULT_VALUES","RANGE","CHECKBOX_SELECT","LIMIT_MIN","LIMIT_MAX","MORE","LESS","UPDATED_RANGES","MIN_VALUE","MAX_VALUE","TABLET_WIDTH","RESET","SEARCH","REFINE","MOBILE_REFINEMENT_TITLE","MORE_FILTERS_CLASSES_BASE","MORE_FILTERS_CLASSES","MOBILE_WRAPPER","MOBILE_CONTENT","MOBILE_TOGGLER","MOBILE_BUTTONS","DESKTOP_WRAPPER","DESKTOP_CONTENT","DESKTOP_TOGGLER","DESKTOP_BUTTONS"],"sources":["../../../src/components/SearchFilter/constants.js"],"sourcesContent":["const CHECKBOX = 'checkbox';\nconst SELECT = 'select';\nconst TEXT_SEARCH = 'text-search';\nconst SEARCH_TERM = 'search_term';\nconst SIZE = process.env.BLAZE_PB_SEARCH_FILETER_AGG_SIZE || 500;\nconst KEYWORD = 'keyword';\nconst RAW_RESULTS = 'rawResults';\nconst DEFAULT_OPTION = 'Any';\nconst DEFAULT_VALUES = ['Any', 'Please Choose...'];\nconst RANGE = 'range';\nconst CHECKBOX_SELECT = ['checkbox', 'select'];\nconst LIMIT_MIN = 5;\nconst LIMIT_MAX = 1000;\nconst MORE = 'more';\nconst LESS = 'less';\nconst UPDATED_RANGES = 'updated_ranges';\nconst MIN_VALUE = 'min-value';\nconst MAX_VALUE = 'max-value';\nconst TABLET_WIDTH = 768;\nconst RESET = 'Reset all filters';\nconst SEARCH = 'Search';\nconst REFINE = `Refine Search`;\nconst MOBILE_REFINEMENT_TITLE = 'Search refinement';\n\nconst MORE_FILTERS_CLASSES_BASE = 'filter__more-filters';\nconst MORE_FILTERS_CLASSES = {\n MOBILE_WRAPPER: `${MORE_FILTERS_CLASSES_BASE}-mobile-wrapper`,\n MOBILE_CONTENT: `${MORE_FILTERS_CLASSES_BASE}-mobile-content`,\n MOBILE_TOGGLER: `${MORE_FILTERS_CLASSES_BASE}-mobile-toggler`,\n MOBILE_BUTTONS: `${MORE_FILTERS_CLASSES_BASE}-mobile-buttons`,\n DESKTOP_WRAPPER: `${MORE_FILTERS_CLASSES_BASE}-desktop-wrapper`,\n DESKTOP_CONTENT: `${MORE_FILTERS_CLASSES_BASE}-desktop-content`,\n DESKTOP_TOGGLER: `${MORE_FILTERS_CLASSES_BASE}-desktop-toggler`,\n DESKTOP_BUTTONS: `${MORE_FILTERS_CLASSES_BASE}-desktop-buttons`\n};\n\nexport {\n CHECKBOX,\n SELECT,\n TEXT_SEARCH,\n SEARCH_TERM,\n SIZE,\n KEYWORD,\n RAW_RESULTS,\n DEFAULT_OPTION,\n DEFAULT_VALUES,\n RANGE,\n CHECKBOX_SELECT,\n LIMIT_MIN,\n LIMIT_MAX,\n MORE,\n LESS,\n UPDATED_RANGES,\n MIN_VALUE,\n MAX_VALUE,\n TABLET_WIDTH,\n RESET,\n SEARCH,\n REFINE,\n MOBILE_REFINEMENT_TITLE,\n MORE_FILTERS_CLASSES\n};\n"],"mappings":"AAAA,MAAMA,QAAQ,GAAG,UAAU;AAC3B,MAAMC,MAAM,GAAG,QAAQ;AACvB,MA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AAW,EACXC,IAAI,EACJI,OAAO,EACPC,WAAW,EACXC,cAAc,EACdC,cAAc,EACdC,KAAK,EACLC,eAAe,EACfC,SAAS,EACTC,SAAS,EACTC,IAAI,EACJC,IAAI,EACJC,cAAc,EACdC,SAAS,EACTC,SAAS,EACTC,YAAY,EACZC,KAAK,EACLC,MAAM,EACNC,MAAM,EACNC,uBAAuB,EACvBE,oBAAoB","ignoreList":[]}
1
+ {"version":3,"file":"constants.js","names":["CHECKBOX","SELECT","TEXT_SEARCH","SEARCH_TERM","SIZE","process","env","BLAZE_PB_SEARCH_FILETER_AGG_SIZE","KEYWORD","RAW_RESULTS","DEFAULT_OPTION","DEFAULT_VALUES","RANGE","CHECKBOX_SELECT","LIMIT_MIN","LIMIT_MAX","MORE","LESS","UPDATED_RANGES","MIN_VALUE","MAX_VALUE","TABLET_WIDTH","RESET","SEARCH","REFINE","MOBILE_REFINEMENT_TITLE","MORE_FILTERS_CLASSES_BASE","MORE_FILTERS_CLASSES","MOBILE_WRAPPER","MOBILE_CONTENT","MOBILE_TOGGLER","MOBILE_BUTTONS","DESKTOP_WRAPPER","DESKTOP_CONTENT","DESKTOP_TOGGLER","DESKTOP_BUTTONS"],"sources":["../../../src/components/SearchFilter/constants.js"],"sourcesContent":["const CHECKBOX = 'checkbox';\nconst SELECT = 'select';\nconst TEXT_SEARCH = 'text-search';\nconst SEARCH_TERM = 'search_term';\nconst SIZE = process.env.BLAZE_PB_SEARCH_FILETER_AGG_SIZE || 500;\nconst KEYWORD = 'keyword';\nconst RAW_RESULTS = 'rawResults';\nconst DEFAULT_OPTION = 'Any';\nconst DEFAULT_VALUES = ['Any', 'Please Choose...'];\nconst RANGE = 'range';\nconst CHECKBOX_SELECT = ['checkbox', 'select'];\nconst LIMIT_MIN = 5;\nconst LIMIT_MAX = 1000;\nconst MORE = 'more';\nconst LESS = 'less';\nconst UPDATED_RANGES = 'updated_ranges';\nconst MIN_VALUE = 'min-value';\nconst MAX_VALUE = 'max-value';\nconst TABLET_WIDTH = 768;\nconst RESET = 'Reset all filters';\nconst SEARCH = 'Search';\nconst REFINE = `Refine Search`;\nconst MOBILE_REFINEMENT_TITLE = 'Search refinement';\n\nconst MORE_FILTERS_CLASSES_BASE = 'filter__more-filters';\nconst MORE_FILTERS_CLASSES = {\n MOBILE_WRAPPER: `${MORE_FILTERS_CLASSES_BASE}-mobile-wrapper`,\n MOBILE_CONTENT: `${MORE_FILTERS_CLASSES_BASE}-mobile-content`,\n MOBILE_TOGGLER: `${MORE_FILTERS_CLASSES_BASE}-mobile-toggler`,\n MOBILE_BUTTONS: `${MORE_FILTERS_CLASSES_BASE}-mobile-buttons`,\n DESKTOP_WRAPPER: `${MORE_FILTERS_CLASSES_BASE}-desktop-wrapper`,\n DESKTOP_CONTENT: `${MORE_FILTERS_CLASSES_BASE}-desktop-content`,\n DESKTOP_TOGGLER: `${MORE_FILTERS_CLASSES_BASE}-desktop-toggler`,\n DESKTOP_BUTTONS: `${MORE_FILTERS_CLASSES_BASE}-desktop-buttons`\n};\n\nexport {\n CHECKBOX,\n SELECT,\n TEXT_SEARCH,\n SEARCH_TERM,\n SIZE,\n KEYWORD,\n RAW_RESULTS,\n DEFAULT_OPTION,\n DEFAULT_VALUES,\n RANGE,\n CHECKBOX_SELECT,\n LIMIT_MIN,\n LIMIT_MAX,\n MORE,\n LESS,\n UPDATED_RANGES,\n MIN_VALUE,\n MAX_VALUE,\n TABLET_WIDTH,\n RESET,\n SEARCH,\n REFINE,\n MOBILE_REFINEMENT_TITLE,\n MORE_FILTERS_CLASSES\n};\n"],"mappings":"AAAA,MAAMA,QAAQ,GAAG,UAAU;AAC3B,MAAMC,MAAM,GAAG,QAAQ;AACvB,MAAMC,WAAW,GAAG,aAAa;AACjC,MAAMC,WAAW,GAAG,aAAa;AACjC,MAAMC,IAAI,GAAGC,OAAO,CAACC,GAAG,CAACC,gCAAgC,IAAI,GAAG;AAChE,MAAMC,OAAO,GAAG,SAAS;AACzB,MAAMC,WAAW,GAAG,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AY,EACZC,KAAK,EACLC,MAAM,EACNC,MAAM,EACNC,uBAAuB,EACvBE,oBAAoB"}
@@ -1 +1 @@
1
- {"version":3,"file":"build-filters-query.js","names":["QUERY_KEYS_TO_IGNORE","builFilterObject","queryKey","value","filters","isRange","isInQuery","min","minValue","max","maxValue","push","range","gte","Number","lte","key","isArray","Array","singleFilterObj","match","forEach","filterValue","buildFiltersQuery","shouldAddFilters","filterBy","filterByProperty","rangeValues","queryKeys","query","mustFilters","Object","keys","includes","queryValue","length","filterByPropOption","filterByPropKey","split","filterByOption","indexOf","filteryByValue","filterByKeyword"],"sources":["../../../../src/components/SearchFilter/helpers/build-filters-query.js"],"sourcesContent":["const QUERY_KEYS_TO_IGNORE = ['dataNotSet', 'shouldSearch', 'search_term'];\n\nconst builFilterObject = ({ queryKey, value, filters, isRange, isInQuery }) => {\n if (isRange) {\n // don't add to query if value matches range values\n if (isInQuery || (value.min !== value.minValue && value.max !== value.maxValue)) {\n filters.push({\n range: {\n [queryKey]: {\n gte: Number(value.minValue),\n lte: Number(value.maxValue)\n }\n }\n });\n }\n return;\n }\n\n const key = isRange ? queryKey : `${queryKey}.keyword`;\n\n const isArray = Array.isArray(value);\n if (!isArray) {\n const singleFilterObj = { match: { [key]: value } };\n filters.push(singleFilterObj);\n return;\n }\n\n value.forEach(filterValue => {\n filters.push({ match: { [key]: filterValue } });\n });\n};\n\nconst buildFiltersQuery = ({\n shouldAddFilters,\n\n filterBy,\n filterByProperty,\n rangeValues,\n queryKeys,\n query\n}) => {\n if (!shouldAddFilters) return [];\n const mustFilters = [];\n if (query) {\n Object.keys(query).forEach(queryKey => {\n if (QUERY_KEYS_TO_IGNORE.includes(queryKey)) return;\n if (!queryKey || !query[queryKey]) return;\n const queryValue = query[queryKey];\n\n const isRange = rangeValues.includes(queryKey);\n const isInQuery = queryKeys.includes(queryKey);\n builFilterObject({ queryKey, value: queryValue, filters: mustFilters, isRange, isInQuery });\n });\n }\n\n if (filterByProperty && filterByProperty.length) {\n filterByProperty.forEach(filterByPropOption => {\n const [filterByPropKey] = filterByPropOption.split('/');\n filterBy.forEach(filterByOption => {\n if (filterByOption.indexOf(filterByPropKey) === -1) return;\n const [, filteryByValue] = filterByOption.split('/');\n const filterByKeyword = `${filterByPropKey}.keyword`;\n if (!filteryByValue) return;\n mustFilters.push({ match: { [filterByKeyword]: filteryByValue } });\n });\n });\n }\n\n return mustFilters;\n};\n\nexport default buildFiltersQuery;\n"],"mappings":"AAAA,MAAMA,oBAAoB,GAAG,CAAC,YAAY,EAAE,cAAc,EAAE,aAAa,CAAC;AAE1E,MAAMC,gBAAgB,GAAGA,CAAC;EAAEC,QAAQ;EAAEC,KAAK;EAAEC,OAAO;EAAEC,OAAO;EAAEC;AAAU,CAAC,KAAK;EAC7E,IAAID,OAAO,EAAE;IACX;IACA,IAAIC,SAAS,IAAKH,KAAK,CAACI,GAAG,KAAKJ,KAAK,CAACK,QAAQ,IAAIL,KAAK,CAACM,GAAG,KAAKN,KAAK,CAACO,QAAS,EAAE;MAC/EN,OAAO,CAACO,IAAI,CAAC;QACXC,KAAK,EAAE;UACL,CAACV,QAAQ,GAAG;YACVW,GAAG,EAAEC,MAAM,CAACX,KAAK,CAACK,QAAQ,CAAC;YAC3BO,GAAG,EAAED,MAAM,CAACX,KAAK,CAACO,QAAQ;UAC5B;QACF;MACF,CAAC,CAAC;IACJ;IACA;EACF;EAEA,MAAMM,GAAG,GAAGX,OAAO,GAAGH,QAAQ,GAAI,GAAEA,QAAS,UAAS;EAEtD,MAAMe,OAAO,GAAGC,KAAK,CAACD,OAAO,CAACd,KAAK,CAAC;EACpC,IAAI,CAACc,OAAO,EAAE;IACZ,MAAME,eAAe,GAAG;MAAEC,KAAK,EAAE;QAAE,CAACJ,GAAG,GAAGb;MAAM;IAAE,CAAC;IACnDC,OAAO,CAACO,IAAI,CAACQ,eAAe,CAAC;IAC7B;EACF;EAEAhB,KAAK,CAACkB,OAAO,CAACC,WAAW,IAAI;IAC3BlB,OAAO,CA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Ac,CAAC,GAAGF,cAAc,CAACD,KAAK,CAAC,GAAG,CAAC;QACpD,MAAMI,eAAe,GAAI,GAAEL,eAAgB,UAAS;QACpD,IAAI,CAACI,cAAc,EAAE;QACrBX,WAAW,CAACnB,IAAI,CAAC;UAAES,KAAK,EAAE;YAAE,CAACsB,eAAe,GAAGD;UAAe;QAAE,CAAC,CAAC;MACpE,CAAC,CAAC;IACJ,CAAC,CAAC;EACJ;EAEA,OAAOX,WAAW;AACpB,CAAC;AAED,eAAeP,iBAAiB","ignoreList":[]}
1
+ {"version":3,"file":"build-filters-query.js","names":["QUERY_KEYS_TO_IGNORE","builFilterObject","queryKey","value","filters","isRange","isInQuery","min","minValue","max","maxValue","push","range","gte","Number","lte","key","isArray","Array","singleFilterObj","match","forEach","filterValue","buildFiltersQuery","shouldAddFilters","filterBy","filterByProperty","rangeValues","queryKeys","query","mustFilters","Object","keys","includes","queryValue","length","filterByPropOption","filterByPropKey","split","filterByOption","indexOf","filteryByValue","filterByKeyword"],"sources":["../../../../src/components/SearchFilter/helpers/build-filters-query.js"],"sourcesContent":["const QUERY_KEYS_TO_IGNORE = ['dataNotSet', 'shouldSearch', 'search_term'];\n\nconst builFilterObject = ({ queryKey, value, filters, isRange, isInQuery }) => {\n if (isRange) {\n // don't add to query if value matches range values\n if (isInQuery || (value.min !== value.minValue && value.max !== value.maxValue)) {\n filters.push({\n range: {\n [queryKey]: {\n gte: Number(value.minValue),\n lte: Number(value.maxValue)\n }\n }\n });\n }\n return;\n }\n\n const key = isRange ? queryKey : `${queryKey}.keyword`;\n\n const isArray = Array.isArray(value);\n if (!isArray) {\n const singleFilterObj = { match: { [key]: value } };\n filters.push(singleFilterObj);\n return;\n }\n\n value.forEach(filterValue => {\n filters.push({ match: { [key]: filterValue } });\n });\n};\n\nconst buildFiltersQuery = ({\n shouldAddFilters,\n\n filterBy,\n filterByProperty,\n rangeValues,\n queryKeys,\n query\n}) => {\n if (!shouldAddFilters) return [];\n const mustFilters = [];\n if (query) {\n Object.keys(query).forEach(queryKey => {\n if (QUERY_KEYS_TO_IGNORE.includes(queryKey)) return;\n if (!queryKey || !query[queryKey]) return;\n const queryValue = query[queryKey];\n\n const isRange = rangeValues.includes(queryKey);\n const isInQuery = queryKeys.includes(queryKey);\n builFilterObject({ queryKey, value: queryValue, filters: mustFilters, isRange, isInQuery });\n });\n }\n\n if (filterByProperty && filterByProperty.length) {\n filterByProperty.forEach(filterByPropOption => {\n const [filterByPropKey] = filterByPropOption.split('/');\n filterBy.forEach(filterByOption => {\n if (filterByOption.indexOf(filterByPropKey) === -1) return;\n const [, filteryByValue] = filterByOption.split('/');\n const filterByKeyword = `${filterByPropKey}.keyword`;\n if (!filteryByValue) return;\n mustFilters.push({ match: { [filterByKeyword]: filteryByValue } });\n });\n });\n }\n\n return mustFilters;\n};\n\nexport default buildFiltersQuery;\n"],"mappings":"AAAA,MAAMA,oBAAoB,GAAG,CAAC,YAAY,EAAE,cAAc,EAAE,aAAa,CAAC;AAE1E,MAAMC,gBAAgB,GAAGA,CAAC;EAAEC,QAAQ;EAAEC,KAAK;EAAEC,OAAO;EAAEC,OAAO;EAAEC;AAAU,CAAC,KAAK;EAC7E,IAAID,OAAO,EAAE;IACX;IACA,IAAIC,SAAS,IAAKH,KAAK,CAACI,GAAG,KAAKJ,KAAK,CAACK,QAAQ,IAAIL,KAAK,CAACM,GAAG,KAAKN,KAAK,CAACO,QAAS,EAAE;MAC/EN,OAAO,CAACO,IAAI,CAAC;QACXC,KAAK,EAAE;UACL,CAACV,QAAQ,GAAG;YACVW,GAAG,EAAEC,MAAM,CAACX,KAAK,CAACK,QAAQ,CAAC;YAC3BO,GAAG,EAAED,MAAM,CAACX,KAAK,CAACO,QAAQ;UAC5B;QACF;MACF,CAAC,CAAC;IACJ;IACA;EACF;EAEA,MAAMM,GAAG,GAAGX,OAAO,GAAGH,QAAQ,GAAI,GAAEA,QAAS,UAAS;EAEtD,MAAMe,OAAO,GAAGC,KAAK,CAACD,OAAO,CAACd,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AACL,OAAO,CAACe,kBAAkB,IAAI;MAC7C,MAAM,CAACC,eAAe,CAAC,GAAGD,kBAAkB,CAACE,KAAK,CAAC,GAAG,CAAC;MACvDb,QAAQ,CAACJ,OAAO,CAACkB,cAAc,IAAI;QACjC,IAAIA,cAAc,CAACC,OAAO,CAACH,eAAe,CAAC,KAAK,CAAC,CAAC,EAAE;QACpD,MAAM,GAAGI,cAAc,CAAC,GAAGF,cAAc,CAACD,KAAK,CAAC,GAAG,CAAC;QACpD,MAAMI,eAAe,GAAI,GAAEL,eAAgB,UAAS;QACpD,IAAI,CAACI,cAAc,EAAE;QACrBX,WAAW,CAACnB,IAAI,CAAC;UAAES,KAAK,EAAE;YAAE,CAACsB,eAAe,GAAGD;UAAe;QAAE,CAAC,CAAC;MACpE,CAAC,CAAC;IACJ,CAAC,CAAC;EACJ;EAEA,OAAOX,WAAW;AACpB,CAAC;AAED,eAAeP,iBAAiB"}
@@ -1 +1 @@
1
- {"version":3,"file":"build-new-url.js","names":["buildNewUrl","url","currentUrl","queryParams","hashBit","encodedQuery","encodeURI","baseUrl","newUrl"],"sources":["../../../../src/components/SearchFilter/helpers/build-new-url.js"],"sourcesContent":["const buildNewUrl = (url, currentUrl, queryParams, hashBit) => {\n const encodedQuery = encodeURI(queryParams);\n const baseUrl = url || currentUrl;\n const newUrl = encodedQuery ? `${baseUrl}?${encodedQuery}` : `${baseUrl}`;\n return hashBit ? `${newUrl}#${hashBit}` : newUrl;\n};\n\nexport default buildNewUrl;\n"],"mappings":"AAAA,MAAMA,WAAW,GAAGA,CAACC,GAAG,EAAEC,UAAU,EAAEC,WAAW,EAAEC,OAAO,KAAK;EAC7D,MAAMC,YAAY,GAAGC,SAAS,CAACH,WAAW,CAAC;EAC3C,MAAMI,OAAO,GAAGN,GAAG,IAAIC,UAAU;EACjC,MAAMM,MAAM,GAAGH,YAAY,GAAI,GAAEE,OAAQ,IAAGF,YAAa,EAAC,GAAI,GAAEE,OAAQ,EAAC;EACzE,OAAOH,OAAO,GAAI,GAAEI,MAAO,IAAGJ,OAAQ,EAAC,GAAGI,MAAM;AAClD,CAAC;AAED,eAAeR,WAAW","ignoreList":[]}
1
+ {"version":3,"file":"build-new-url.js","names":["buildNewUrl","url","currentUrl","queryParams","hashBit","encodedQuery","encodeURI","baseUrl","newUrl"],"sources":["../../../../src/components/SearchFilter/helpers/build-new-url.js"],"sourcesContent":["const buildNewUrl = (url, currentUrl, queryParams, hashBit) => {\n const encodedQuery = encodeURI(queryParams);\n const baseUrl = url || currentUrl;\n const newUrl = encodedQuery ? `${baseUrl}?${encodedQuery}` : `${baseUrl}`;\n return hashBit ? `${newUrl}#${hashBit}` : newUrl;\n};\n\nexport default buildNewUrl;\n"],"mappings":"AAAA,MAAMA,WAAW,GAAGA,CAACC,GAAG,EAAEC,UAAU,EAAEC,WAAW,EAAEC,OAAO,KAAK;EAC7D,MAAMC,YAAY,GAAGC,SAAS,CAACH,WAAW,CAAC;EAC3C,MAAMI,OAAO,GAAGN,GAAG,IAAIC,UAAU;EACjC,MAAMM,MAAM,GAAGH,YAAY,GAAI,GAAEE,OAAQ,IAAGF,YAAa,EAAC,GAAI,GAAEE,OAAQ,EAAC;EACzE,OAAOH,OAAO,GAAI,GAAEI,MAAO,IAAGJ,OAAQ,EAAC,GAAGI,MAAM;AAClD,CAAC;AAED,eAAeR,WAAW"}
@@ -1 +1 @@
1
- {"version":3,"file":"build-raw-query-stringified.js","names":["KEYWORD","SIZE","buildRawQueryStringified","checkboxSelectValues","rangeValues","entity","mustFilters","length","aggs","forEach","fieldName","terms","field","size","stats","boolFilter","should","match","docType","minimum_should_match","must","JSON","stringify","query","bool","filter"],"sources":["../../../../src/components/SearchFilter/helpers/build-raw-query-stringified.js"],"sourcesContent":["import { KEYWORD, SIZE } from '../constants';\n\nconst buildRawQueryStringified = (checkboxSelectValues, rangeValues, entity, mustFilters = []) => {\n if (!checkboxSelectValues.length && !rangeValues.length) return '';\n\n const aggs = {};\n\n checkboxSelectValues.forEach(fieldName => {\n aggs[fieldName] = {\n terms: {\n field: `${fieldName}.${KEYWORD}`,\n size: SIZE\n }\n };\n });\n\n rangeValues.forEach(fieldName => {\n aggs[fieldName] = {\n stats: {\n field: fieldName\n }\n };\n });\n\n const boolFilter = {\n should: [\n {\n match: {\n docType: entity\n }\n }\n ],\n minimum_should_match: 1\n };\n\n if (mustFilters.length) {\n boolFilter.must = mustFilters;\n }\n\n return JSON.stringify({\n aggs,\n size: 0,\n query: {\n bool: {\n filter: {\n bool: boolFilter\n }\n }\n }\n });\n};\n\nexport default buildRawQueryStringified;\n"],"mappings":"AAAA,SAASA,OAAO,EAAEC,IAAI,QAAQ,cAAc;AAE5C,MAAMC,wBAAwB,GAAGA,CAACC,oBAAoB,EAAEC,WAAW,EAAEC,MAAM,EAAEC,WAAW,GAAG,EAAE,KAAK;EAChG,IAAI,CAACH,oBAAoB,CAACI,MAAM,IAAI,CAACH,WAAW,CAACG,MAAM,EAAE,OAAO,EAAE;EAElE,MAAMC,IAAI,GAAG,CAAC,CAAC;EAEfL,oBAAoB,CAACM,OAAO,CAACC,SAAS,IAAI;IACxCF,IAAI,CAACE,SAAS,CAAC,GAAG;MAChBC,KAAK,EAAE;QACLC,KAAK,EAAG,GAAEF,SAAU,IAAGV,OAAQ,EAAC;QAChCa,IAAI,EAAEZ;MACR;IACF,CAAC;EACH,CAAC,CAAC;EAEFG,WAAW,CAACK,OAAO,CAACC,SAAS,IAAI;IAC/BF,IAAI,CAACE,SAAS,CAAC,GAAG;MAChBI,KAAK,EAAE;QACLF,KAAK,EAAEF;MACT;IACF,CAAC;EACH,CAAC,CAAC;EAEF,MAAMK,UAAU,GAAG;IACjBC,MAAM,EAAE,CACN;MACEC,KAAK,EAAE;QACLC,OAAO,EAAEb;MACX;IACF,CAAC,CACF;IACDc,oBAAoB,EAAE;EACxB,CAAC;EAED,IAAIb,WAAW,CAACC,MAAM,EAAE;IACtBQ,UAAU,CAACK,IAAI,GAAGd,WAAW;EAC/B;EAEA,OAAOe,IAAI,CAACC,SAAS,CAAC;IACpBd,IAAI;IACJK,IAAI,EAAE,CAAC;IACPU,KAAK,EAAE;MACLC,IAAI,EAAE;QACJC,MAAM,EAAE;UACND,IAAI,EAAET;QACR;MACF;IACF;EACF,CAAC,CAAC;AACJ,CAAC;AAED,eAAeb,wBAAwB","ignoreList":[]}
1
+ {"version":3,"file":"build-raw-query-stringified.js","names":["KEYWORD","SIZE","buildRawQueryStringified","checkboxSelectValues","rangeValues","entity","mustFilters","length","aggs","forEach","fieldName","terms","field","size","stats","boolFilter","should","match","docType","minimum_should_match","must","JSON","stringify","query","bool","filter"],"sources":["../../../../src/components/SearchFilter/helpers/build-raw-query-stringified.js"],"sourcesContent":["import { KEYWORD, SIZE } from '../constants';\n\nconst buildRawQueryStringified = (checkboxSelectValues, rangeValues, entity, mustFilters = []) => {\n if (!checkboxSelectValues.length && !rangeValues.length) return '';\n\n const aggs = {};\n\n checkboxSelectValues.forEach(fieldName => {\n aggs[fieldName] = {\n terms: {\n field: `${fieldName}.${KEYWORD}`,\n size: SIZE\n }\n };\n });\n\n rangeValues.forEach(fieldName => {\n aggs[fieldName] = {\n stats: {\n field: fieldName\n }\n };\n });\n\n const boolFilter = {\n should: [\n {\n match: {\n docType: entity\n }\n }\n ],\n minimum_should_match: 1\n };\n\n if (mustFilters.length) {\n boolFilter.must = mustFilters;\n }\n\n return JSON.stringify({\n aggs,\n size: 0,\n query: {\n bool: {\n filter: {\n bool: boolFilter\n }\n }\n }\n });\n};\n\nexport default buildRawQueryStringified;\n"],"mappings":"AAAA,SAASA,OAAO,EAAEC,IAAI,QAAQ,cAAc;AAE5C,MAAMC,wBAAwB,GAAGA,CAACC,oBAAoB,EAAEC,WAAW,EAAEC,MAAM,EAAEC,WAAW,GAAG,EAAE,KAAK;EAChG,IAAI,CAACH,oBAAoB,CAACI,MAAM,IAAI,CAACH,WAAW,CAACG,MAAM,EAAE,OAAO,EAAE;EAElE,MAAMC,IAAI,GAAG,CAAC,CAAC;EAEfL,oBAAoB,CAACM,OAAO,CAACC,SAAS,IAAI;IACxCF,IAAI,CAACE,SAAS,CAAC,GAAG;MAChBC,KAAK,EAAE;QACLC,KAAK,EAAG,GAAEF,SAAU,IAAGV,OAAQ,EAAC;QAChCa,IAAI,EAAEZ;MACR;IACF,CAAC;EACH,CAAC,CAAC;EAEFG,WAAW,CAACK,OAAO,CAACC,SAAS,IAAI;IAC/BF,IAAI,CAACE,SAAS,CAAC,GAAG;MAChBI,KAAK,EAAE;QACLF,KAAK,EAAEF;MACT;IACF,CAAC;EACH,CAAC,CAAC;EAEF,MAAMK,UAAU,GAAG;IACjBC,MAAM,EAAE,CACN;MACEC,KAAK,EAAE;QACLC,OAAO,EAAEb;MACX;IACF,CAAC,CACF;IACDc,oBAAoB,EAAE;EACxB,CAAC;EAED,IAAIb,WAAW,CAACC,MAAM,EAAE;IACtBQ,UAAU,CAACK,IAAI,GAAGd,WAAW;EAC/B;EAEA,OAAOe,IAAI,CAACC,SAAS,CAAC;IACpBd,IAAI;IACJK,IAAI,EAAE,CAAC;IACPU,KAAK,EAAE;MACLC,IAAI,EAAE;QACJC,MAAM,EAAE;UACND,IAAI,EAAET;QACR;MACF;IACF;EACF,CAAC,CAAC;AACJ,CAAC;AAED,eAAeb,wBAAwB"}
@@ -1 +1 @@
1
- {"version":3,"file":"build-url-query.js","names":["SEARCH_TERM","TEXT_SEARCH","parseFilterValue","buildQueryKey","buildUrlQuery","filterValues","filters","listComponentName","query","newQuery","queryKeys","searchValue","searchKey","push","forEach","propsToDisplay","type","prop","value","filterKey","parsedValue","includes","Object","keys","key","indexOf","join"],"sources":["../../../../src/components/SearchFilter/helpers/build-url-query.js"],"sourcesContent":["import { SEARCH_TERM, TEXT_SEARCH } from '../constants';\nimport parseFilterValue from './parse-filter-value';\nimport { buildQueryKey } from '../../../helpers';\n\nconst buildUrlQuery = (filterValues = {}, filters = [], listComponentName = '', query = {}) => {\n const newQuery = [];\n const queryKeys = [];\n const searchValue = filterValues[SEARCH_TERM];\n const searchKey = buildQueryKey(SEARCH_TERM, listComponentName);\n queryKeys.push(searchKey);\n if (searchValue) newQuery.push(`${searchKey}=${searchValue}`);\n\n filters.forEach(({ propsToDisplay, type }) => {\n if (type === TEXT_SEARCH) return;\n propsToDisplay.forEach(prop => {\n const value = filterValues[prop];\n const filterKey = buildQueryKey(prop, listComponentName);\n queryKeys.push(filterKey);\n const parsedValue = parseFilterValue(filterKey, type, value, newQuery);\n if (parsedValue && !newQuery.includes(parsedValue)) newQuery.push(parsedValue);\n });\n });\n\n Object.keys(query).forEach(key => {\n if (queryKeys.indexOf(key) === -1) newQuery.push(`${key}=${query[key]}`);\n });\n\n return newQuery.join('&');\n};\n\nexport default buildUrlQuery;\n"],"mappings":"AAAA,SAASA,WAAW,EAAEC,WAAW,QAAQ,cAAc;AACvD,OAAOC,gBAAgB,MAAM,sBAAsB;AACnD,SAASC,aAAa,QAAQ,kBAAkB;AAEhD,MAAMC,aAAa,GAAGA,CAACC,YAAY,GAAG,CAAC,CAAC,EAAEC,OAAO,GAAG,EAAE,EAAEC,iBAAiB,GAAG,EAAE,EAAEC,KAAK,GAAG,CAAC,CAAC,KAAK;EAC7F,MAAMC,QAAQ,GAAG,EAAE;EACnB,MAAMC,SAAS,GAAG,EAAE;EACpB,MAAMC,WAAW,GAAGN,YAAY,CAACL,WAAW,CAAC;EAC7C,MAAMY,SAAS,GAAGT,aAAa,CAACH,WAAW,EAAEO,iBAAiB,CAAC;EAC/DG,SAAS,CAACG,IAAI,CAACD,SAAS,CAAC;EACzB,IAAID,WAAW,EAAEF,QAAQ,CAACI,IAAI,CAAE,GAAED,SAAU,IAAGD,WAAY,EAAC,CAAC;EAE7DL,OAAO,CAACQ,OAAO,CAAC,CAAC;IAAEC,cAAc;IAAEC;EAAK,CAAC,KAAK;IAC5C,IAAIA,IAAI,KAAKf,WAAW,EAAE;IAC1Bc,cAAc,CAACD,OAAO,CAACG,IAAI,IAAI;MAC7B,MAAMC,KAAK,GAAGb,YAAY,CAACY,IAAI,CAAC;MAChC,MAAME,SAAS,GAAGhB,aAAa,CAACc,IAAI,EAAEV,iBAAiB,CAAC;MACxDG,SAAS,CAACG,IAAI,CAACM,SAAS,CAAC;MACzB,MAAMC,WAAW,GAAGlB,gBAAgB,CAACiB,SAAS,EAAEH,IAAI,EAAEE,KAAK,EAAET,QAAQ,CAAC;MACtE,IAAIW,WAAW,IAAI,CAACX,QAAQ,CAACY,QAAQ,CAACD,WAAW,CAAC,EAAEX,QAAQ,CAACI,IAAI,CAACO,WAAW,CAAC;IAChF,CAAC,CAAC;EACJ,CAAC,CAAC;EAEFE,MAAM,CAACC,IAAI,CAACf,KAAK,CAAC,CAACM,OAAO,CAACU,GAAG,IAAI;IAChC,IAAId,SAAS,CAACe,OAAO,CAACD,GAAG,CAAC,KAAK,CAAC,CAAC,EAAEf,QAAQ,CAACI,IAAI,CAAE,GAAEW,GAAI,IAAGhB,KAAK,CAACgB,GAAG,CAAE,EAAC,CAAC;EAC1E,CAAC,CAAC;EAEF,OAAOf,QAAQ,CAACiB,IAAI,CAAC,GAAG,CAAC;AAC3B,CAAC;AAED,eAAetB,aAAa","ignoreList":[]}
1
+ {"version":3,"file":"build-url-query.js","names":["SEARCH_TERM","TEXT_SEARCH","parseFilterValue","buildQueryKey","buildUrlQuery","filterValues","filters","listComponentName","query","newQuery","queryKeys","searchValue","searchKey","push","forEach","propsToDisplay","type","prop","value","filterKey","parsedValue","includes","Object","keys","key","indexOf","join"],"sources":["../../../../src/components/SearchFilter/helpers/build-url-query.js"],"sourcesContent":["import { SEARCH_TERM, TEXT_SEARCH } from '../constants';\nimport parseFilterValue from './parse-filter-value';\nimport { buildQueryKey } from '../../../helpers';\n\nconst buildUrlQuery = (filterValues = {}, filters = [], listComponentName = '', query = {}) => {\n const newQuery = [];\n const queryKeys = [];\n const searchValue = filterValues[SEARCH_TERM];\n const searchKey = buildQueryKey(SEARCH_TERM, listComponentName);\n queryKeys.push(searchKey);\n if (searchValue) newQuery.push(`${searchKey}=${searchValue}`);\n\n filters.forEach(({ propsToDisplay, type }) => {\n if (type === TEXT_SEARCH) return;\n propsToDisplay.forEach(prop => {\n const value = filterValues[prop];\n const filterKey = buildQueryKey(prop, listComponentName);\n queryKeys.push(filterKey);\n const parsedValue = parseFilterValue(filterKey, type, value, newQuery);\n if (parsedValue && !newQuery.includes(parsedValue)) newQuery.push(parsedValue);\n });\n });\n\n Object.keys(query).forEach(key => {\n if (queryKeys.indexOf(key) === -1) newQuery.push(`${key}=${query[key]}`);\n });\n\n return newQuery.join('&');\n};\n\nexport default buildUrlQuery;\n"],"mappings":"AAAA,SAASA,WAAW,EAAEC,WAAW,QAAQ,cAAc;AACvD,OAAOC,gBAAgB,MAAM,sBAAsB;AACnD,SAASC,aAAa,QAAQ,kBAAkB;AAEhD,MAAMC,aAAa,GAAGA,CAACC,YAAY,GAAG,CAAC,CAAC,EAAEC,OAAO,GAAG,EAAE,EAAEC,iBAAiB,GAAG,EAAE,EAAEC,KAAK,GAAG,CAAC,CAAC,KAAK;EAC7F,MAAMC,QAAQ,GAAG,EAAE;EACnB,MAAMC,SAAS,GAAG,EAAE;EACpB,MAAMC,WAAW,GAAGN,YAAY,CAACL,WAAW,CAAC;EAC7C,MAAMY,SAAS,GAAGT,aAAa,CAACH,WAAW,EAAEO,iBAAiB,CAAC;EAC/DG,SAAS,CAACG,IAAI,CAACD,SAAS,CAAC;EACzB,IAAID,WAAW,EAAEF,QAAQ,CAACI,IAAI,CAAE,GAAED,SAAU,IAAGD,WAAY,EAAC,CAAC;EAE7DL,OAAO,CAACQ,OAAO,CAAC,CAAC;IAAEC,cAAc;IAAEC;EAAK,CAAC,KAAK;IAC5C,IAAIA,IAAI,KAAKf,WAAW,EAAE;IAC1Bc,cAAc,CAACD,OAAO,CAACG,IAAI,IAAI;MAC7B,MAAMC,KAAK,GAAGb,YAAY,CAACY,IAAI,CAAC;MAChC,MAAME,SAAS,GAAGhB,aAAa,CAACc,IAAI,EAAEV,iBAAiB,CAAC;MACxDG,SAAS,CAACG,IAAI,CAACM,SAAS,CAAC;MACzB,MAAMC,WAAW,GAAGlB,gBAAgB,CAACiB,SAAS,EAAEH,IAAI,EAAEE,KAAK,EAAET,QAAQ,CAAC;MACtE,IAAIW,WAAW,IAAI,CAACX,QAAQ,CAACY,QAAQ,CAACD,WAAW,CAAC,EAAEX,QAAQ,CAACI,IAAI,CAACO,WAAW,CAAC;IAChF,CAAC,CAAC;EACJ,CAAC,CAAC;EAEFE,MAAM,CAACC,IAAI,CAACf,KAAK,CAAC,CAACM,OAAO,CAACU,GAAG,IAAI;IAChC,IAAId,SAAS,CAACe,OAAO,CAACD,GAAG,CAAC,KAAK,CAAC,CAAC,EAAEf,QAAQ,CAACI,IAAI,CAAE,GAAEW,GAAI,IAAGhB,KAAK,CAACgB,GAAG,CAAE,EAAC,CAAC;EAC1E,CAAC,CAAC;EAEF,OAAOf,QAAQ,CAACiB,IAAI,CAAC,GAAG,CAAC;AAC3B,CAAC;AAED,eAAetB,aAAa"}
@@ -1 +1 @@
1
- {"version":3,"file":"calculate-min-max.js","names":["calculateStep","calculateMinMax","filterAggregations","rangeInterval","min","max","Math","floor","Number","ceil","step"],"sources":["../../../../src/components/SearchFilter/helpers/calculate-min-max.js"],"sourcesContent":["import calculateStep from './calculate-step';\n\nconst calculateMinMax = (filterAggregations, rangeInterval) => {\n let { min, max } = filterAggregations;\n min = Math.floor(Number(min));\n max = Math.ceil(Number(max));\n min -= min % rangeInterval;\n const step = calculateStep(max, rangeInterval);\n max += step;\n return { min, max };\n};\n\nexport default calculateMinMax;\n"],"mappings":"AAAA,OAAOA,aAAa,MAAM,kBAAkB;AAE5C,MAAMC,eAAe,GAAGA,CAACC,kBAAkB,EAAEC,aAAa,KAAK;EAC7D,IAAI;IAAEC,GAAG;IAAEC;EAAI,CAAC,GAAGH,kBAAkB;EACrCE,GAAG,GAAGE,IAAI,CAACC,KAAK,CAACC,MAAM,CAACJ,GAAG,CAAC,CAAC;EAC7BC,GAAG,GAAGC,IAAI,CAACG,IAAI,CAACD,MAAM,CAACH,GAAG,CAAC,CAAC;EAC5BD,GAAG,IAAIA,GAAG,GAAGD,aAAa;EAC1B,MAAMO,IAAI,GAAGV,aAAa,CAACK,GAAG,EAAEF,aAAa,CAAC;EAC9CE,GAAG,IAAIK,IAAI;EACX,OAAO;IAAEN,GAAG;IAAEC;EAAI,CAAC;AACrB,CAAC;AAED,eAAeJ,eAAe","ignoreList":[]}
1
+ {"version":3,"file":"calculate-min-max.js","names":["calculateStep","calculateMinMax","filterAggregations","rangeInterval","min","max","Math","floor","Number","ceil","step"],"sources":["../../../../src/components/SearchFilter/helpers/calculate-min-max.js"],"sourcesContent":["import calculateStep from './calculate-step';\n\nconst calculateMinMax = (filterAggregations, rangeInterval) => {\n let { min, max } = filterAggregations;\n min = Math.floor(Number(min));\n max = Math.ceil(Number(max));\n min -= min % rangeInterval;\n const step = calculateStep(max, rangeInterval);\n max += step;\n return { min, max };\n};\n\nexport default calculateMinMax;\n"],"mappings":"AAAA,OAAOA,aAAa,MAAM,kBAAkB;AAE5C,MAAMC,eAAe,GAAGA,CAACC,kBAAkB,EAAEC,aAAa,KAAK;EAC7D,IAAI;IAAEC,GAAG;IAAEC;EAAI,CAAC,GAAGH,kBAAkB;EACrCE,GAAG,GAAGE,IAAI,CAACC,KAAK,CAACC,MAAM,CAACJ,GAAG,CAAC,CAAC;EAC7BC,GAAG,GAAGC,IAAI,CAACG,IAAI,CAACD,MAAM,CAACH,GAAG,CAAC,CAAC;EAC5BD,GAAG,IAAIA,GAAG,GAAGD,aAAa;EAC1B,MAAMO,IAAI,GAAGV,aAAa,CAACK,GAAG,EAAEF,aAAa,CAAC;EAC9CE,GAAG,IAAIK,IAAI;EACX,OAAO;IAAEN,GAAG;IAAEC;EAAI,CAAC;AACrB,CAAC;AAED,eAAeJ,eAAe"}
@@ -1 +1 @@
1
- {"version":3,"file":"calculate-step.js","names":["calculateStep","max","rangeInterval"],"sources":["../../../../src/components/SearchFilter/helpers/calculate-step.js"],"sourcesContent":["const calculateStep = (max, rangeInterval) =>\n max % rangeInterval === 0 ? 0 : rangeInterval - (max % rangeInterval);\n\nexport default calculateStep;\n"],"mappings":"AAAA,MAAMA,aAAa,GAAGA,CAACC,GAAG,EAAEC,aAAa,KACvCD,GAAG,GAAGC,aAAa,KAAK,CAAC,GAAG,CAAC,GAAGA,aAAa,GAAID,GAAG,GAAGC,aAAc;AAEvE,eAAeF,aAAa","ignoreList":[]}
1
+ {"version":3,"file":"calculate-step.js","names":["calculateStep","max","rangeInterval"],"sources":["../../../../src/components/SearchFilter/helpers/calculate-step.js"],"sourcesContent":["const calculateStep = (max, rangeInterval) =>\n max % rangeInterval === 0 ? 0 : rangeInterval - (max % rangeInterval);\n\nexport default calculateStep;\n"],"mappings":"AAAA,MAAMA,aAAa,GAAGA,CAACC,GAAG,EAAEC,aAAa,KACvCD,GAAG,GAAGC,aAAa,KAAK,CAAC,GAAG,CAAC,GAAGA,aAAa,GAAID,GAAG,GAAGC,aAAc;AAEvE,eAAeF,aAAa"}
@@ -1 +1 @@
1
- {"version":3,"file":"check-if-range-updated.js","names":["isBrowser","checkIfRangeUpdated","value","min","max","minValue","maxValue"],"sources":["../../../../src/components/SearchFilter/helpers/check-if-range-updated.js"],"sourcesContent":["import { isBrowser } from '../../../helpers';\n\nconst checkIfRangeUpdated = (value, min, max) => {\n const { minValue, maxValue } = value;\n return isBrowser() && (minValue !== min || maxValue !== max);\n};\n\nexport default checkIfRangeUpdated;\n"],"mappings":"AAAA,SAASA,SAAS,QAAQ,kBAAkB;AAE5C,MAAMC,mBAAmB,GAAGA,CAACC,KAAK,EAAEC,GAAG,EAAEC,GAAG,KAAK;EAC/C,MAAM;IAAEC,QAAQ;IAAEC;EAAS,CAAC,GAAGJ,KAAK;EACpC,OAAOF,SAAS,CAAC,CAAC,KAAKK,QAAQ,KAAKF,GAAG,IAAIG,QAAQ,KAAKF,GAAG,CAAC;AAC9D,CAAC;AAED,eAAeH,mBAAmB","ignoreList":[]}
1
+ {"version":3,"file":"check-if-range-updated.js","names":["isBrowser","checkIfRangeUpdated","value","min","max","minValue","maxValue"],"sources":["../../../../src/components/SearchFilter/helpers/check-if-range-updated.js"],"sourcesContent":["import { isBrowser } from '../../../helpers';\n\nconst checkIfRangeUpdated = (value, min, max) => {\n const { minValue, maxValue } = value;\n return isBrowser() && (minValue !== min || maxValue !== max);\n};\n\nexport default checkIfRangeUpdated;\n"],"mappings":"AAAA,SAASA,SAAS,QAAQ,kBAAkB;AAE5C,MAAMC,mBAAmB,GAAGA,CAACC,KAAK,EAAEC,GAAG,EAAEC,GAAG,KAAK;EAC/C,MAAM;IAAEC,QAAQ;IAAEC;EAAS,CAAC,GAAGJ,KAAK;EACpC,OAAOF,SAAS,CAAC,CAAC,KAAKK,QAAQ,KAAKF,GAAG,IAAIG,QAAQ,KAAKF,GAAG,CAAC;AAC9D,CAAC;AAED,eAAeH,mBAAmB"}
@@ -1 +1 @@
1
- {"version":3,"file":"decode-encode.js","names":["decodeValue","value","decodeURIComponent","encodeValue","encodeURIComponent"],"sources":["../../../../src/components/SearchFilter/helpers/decode-encode.js"],"sourcesContent":["const decodeValue = value => decodeURIComponent(value);\n\nconst encodeValue = value => encodeURIComponent(value);\n\nexport { decodeValue, encodeValue };\n"],"mappings":"AAAA,MAAMA,WAAW,GAAGC,KAAK,IAAIC,kBAAkB,CAACD,KAAK,CAAC;AAEtD,MAAME,WAAW,GAAGF,KAAK,IAAIG,kBAAkB,CAACH,KAAK,CAAC;AAEtD,SAASD,WAAW,EAAEG,WAAW","ignoreList":[]}
1
+ {"version":3,"file":"decode-encode.js","names":["decodeValue","value","decodeURIComponent","encodeValue","encodeURIComponent"],"sources":["../../../../src/components/SearchFilter/helpers/decode-encode.js"],"sourcesContent":["const decodeValue = value => decodeURIComponent(value);\n\nconst encodeValue = value => encodeURIComponent(value);\n\nexport { decodeValue, encodeValue };\n"],"mappings":"AAAA,MAAMA,WAAW,GAAGC,KAAK,IAAIC,kBAAkB,CAACD,KAAK,CAAC;AAEtD,MAAME,WAAW,GAAGF,KAAK,IAAIG,kBAAkB,CAACH,KAAK,CAAC;AAEtD,SAASD,WAAW,EAAEG,WAAW"}