@blaze-cms/react-page-builder 0.146.0-alpha.0 → 0.146.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 (1030) 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 +10 -15
  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 +9 -7
  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 +3 -1
  63. package/lib/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
  64. package/lib/components/Carousel/CarouselImage/constants.js +9 -0
  65. package/lib/components/Carousel/CarouselImage/constants.js.map +1 -0
  66. package/lib/components/Carousel/CarouselImage/index.js.map +1 -1
  67. package/lib/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
  68. package/lib/components/Carousel/CarouselRender/index.js.map +1 -1
  69. package/lib/components/Carousel/hooks/useCarouselNavigation.js.map +1 -1
  70. package/lib/components/Carousel/index.js.map +1 -1
  71. package/lib/components/CarouselWrapper/CarouselWrapper.js.map +1 -1
  72. package/lib/components/CarouselWrapper/DefaultCarousel.js +5 -3
  73. package/lib/components/CarouselWrapper/DefaultCarousel.js.map +1 -1
  74. package/lib/components/CarouselWrapper/SmoothScrollCarousel.js.map +1 -1
  75. package/lib/components/CarouselWrapper/index.js.map +1 -1
  76. package/lib/components/ClickWrapper.js +6 -6
  77. package/lib/components/ClickWrapper.js.map +1 -1
  78. package/lib/components/Code/Code.js +6 -6
  79. package/lib/components/Code/Code.js.map +1 -1
  80. package/lib/components/Code/ScriptTag.js +3 -3
  81. package/lib/components/Code/ScriptTag.js.map +1 -1
  82. package/lib/components/Code/helpers/index.js.map +1 -1
  83. package/lib/components/Code/helpers/wrap-script-tags.js +1 -1
  84. package/lib/components/Code/helpers/wrap-script-tags.js.map +1 -1
  85. package/lib/components/Code/index.js.map +1 -1
  86. package/lib/components/ContentGroup/ContentGroup.js.map +1 -1
  87. package/lib/components/ContentGroup/ContentGroupTabs.js +4 -5
  88. package/lib/components/ContentGroup/ContentGroupTabs.js.map +1 -1
  89. package/lib/components/ContentGroup/constants.js.map +1 -1
  90. package/lib/components/ContentGroup/helpers/get-active-tab.js +1 -1
  91. package/lib/components/ContentGroup/helpers/get-active-tab.js.map +1 -1
  92. package/lib/components/ContentGroup/helpers/get-sections-data.js.map +1 -1
  93. package/lib/components/ContentGroup/helpers/index.js.map +1 -1
  94. package/lib/components/ContentGroup/index.js.map +1 -1
  95. package/lib/components/ContentGroupSection/ContentGroupSection.js.map +1 -1
  96. package/lib/components/ContentGroupSection/index.js.map +1 -1
  97. package/lib/components/DataSummary/DataSummaryFactory.js +2 -2
  98. package/lib/components/DataSummary/DataSummaryFactory.js.map +1 -1
  99. package/lib/components/DataSummary/DataSummaryRender.js.map +1 -1
  100. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -1
  101. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js +3 -3
  102. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
  103. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js.map +1 -1
  104. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map +1 -1
  105. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js +3 -3
  106. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
  107. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js.map +1 -1
  108. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.map +1 -1
  109. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js +3 -3
  110. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
  111. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/index.js.map +1 -1
  112. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.map +1 -1
  113. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js +3 -3
  114. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
  115. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/index.js.map +1 -1
  116. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.map +1 -1
  117. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js +3 -3
  118. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
  119. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/index.js.map +1 -1
  120. package/lib/components/DataSummary/DataSummaryTypes/index.js +3 -3
  121. package/lib/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
  122. package/lib/components/DataSummary/helpers/build-loop-props-content.js +5 -5
  123. package/lib/components/DataSummary/helpers/build-loop-props-content.js.map +1 -1
  124. package/lib/components/DataSummary/helpers/build-props-to-display-with-content.js +2 -2
  125. package/lib/components/DataSummary/helpers/build-props-to-display-with-content.js.map +1 -1
  126. package/lib/components/DataSummary/helpers/get-data-summary-query.js.map +1 -1
  127. package/lib/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -1
  128. package/lib/components/DataSummary/helpers/get-link-props.js +2 -2
  129. package/lib/components/DataSummary/helpers/get-link-props.js.map +1 -1
  130. package/lib/components/DataSummary/helpers/get-link-to-published-content.js.map +1 -1
  131. package/lib/components/DataSummary/helpers/get-loop-props-limit.js +2 -2
  132. package/lib/components/DataSummary/helpers/get-loop-props-limit.js.map +1 -1
  133. package/lib/components/DataSummary/helpers/get-prop-value.js +3 -3
  134. package/lib/components/DataSummary/helpers/get-prop-value.js.map +1 -1
  135. package/lib/components/DataSummary/helpers/get-value-from-array.js +2 -2
  136. package/lib/components/DataSummary/helpers/get-value-from-array.js.map +1 -1
  137. package/lib/components/DataSummary/helpers/index.js.map +1 -1
  138. package/lib/components/DataSummary/helpers/parse-boolean-values.js.map +1 -1
  139. package/lib/components/DataSummary/helpers/strip-summary-props-content.js.map +1 -1
  140. package/lib/components/DataSummary/index.js.map +1 -1
  141. package/lib/components/DateTime/DateTime.js.map +1 -1
  142. package/lib/components/DateTime/index.js.map +1 -1
  143. package/lib/components/EmailConfirm/EmailConfirm.js +2 -2
  144. package/lib/components/EmailConfirm/EmailConfirm.js.map +1 -1
  145. package/lib/components/EmailConfirm/index.js.map +1 -1
  146. package/lib/components/EmailConfirm/mutation.js.map +1 -1
  147. package/lib/components/Iframe/Iframe.js.map +1 -1
  148. package/lib/components/Iframe/constants.js.map +1 -1
  149. package/lib/components/Iframe/index.js.map +1 -1
  150. package/lib/components/Image/GlobalLightbox/GlobalLightbox.js +6 -6
  151. package/lib/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
  152. package/lib/components/Image/GlobalLightbox/NavButton.js +6 -3
  153. package/lib/components/Image/GlobalLightbox/NavButton.js.map +1 -1
  154. package/lib/components/Image/GlobalLightbox/index.js +3 -3
  155. package/lib/components/Image/GlobalLightbox/index.js.map +1 -1
  156. package/lib/components/Image/Image.js +8 -7
  157. package/lib/components/Image/Image.js.map +1 -1
  158. package/lib/components/Image/ImageDetails.js.map +1 -1
  159. package/lib/components/Image/ImageFactory.js +2 -2
  160. package/lib/components/Image/ImageFactory.js.map +1 -1
  161. package/lib/components/Image/ImageRender.js.map +1 -1
  162. package/lib/components/Image/Lightbox/Lightbox.js +2 -2
  163. package/lib/components/Image/Lightbox/Lightbox.js.map +1 -1
  164. package/lib/components/Image/Lightbox/index.js.map +1 -1
  165. package/lib/components/Image/index.js.map +1 -1
  166. package/lib/components/ItemList/ItemListButton/ItemListButton.js +4 -4
  167. package/lib/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
  168. package/lib/components/ItemList/ItemListButton/index.js.map +1 -1
  169. package/lib/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
  170. package/lib/components/ItemList/ItemListCounter/index.js.map +1 -1
  171. package/lib/components/ItemList/ItemListNew/ItemListNew.js +1 -2
  172. package/lib/components/ItemList/ItemListNew/ItemListNew.js.map +1 -1
  173. package/lib/components/ItemList/ItemListNew/index.js.map +1 -1
  174. package/lib/components/ItemList/constants.js.map +1 -1
  175. package/lib/components/ItemList/helpers/get-item-list-data.js.map +1 -1
  176. package/lib/components/ItemList/helpers/get-item-list-id.js.map +1 -1
  177. package/lib/components/ItemList/helpers/get-item-list-ids.js.map +1 -1
  178. package/lib/components/ItemList/helpers/index.js.map +1 -1
  179. package/lib/components/ItemList/helpers/set-item-list-id.js.map +1 -1
  180. package/lib/components/ItemList/helpers/set-param-and-redirect.js +4 -4
  181. package/lib/components/ItemList/helpers/set-param-and-redirect.js.map +1 -1
  182. package/lib/components/ItemList/hooks/index.js.map +1 -1
  183. package/lib/components/ItemList/hooks/use-item-list-id.js.map +1 -1
  184. package/lib/components/Layout/Layout.js +5 -5
  185. package/lib/components/Layout/Layout.js.map +1 -1
  186. package/lib/components/Layout/LayoutFactory.js +3 -3
  187. package/lib/components/Layout/LayoutFactory.js.map +1 -1
  188. package/lib/components/Layout/LayoutWithStickyTimer.js +2 -2
  189. package/lib/components/Layout/LayoutWithStickyTimer.js.map +1 -1
  190. package/lib/components/Layout/constants.js.map +1 -1
  191. package/lib/components/Layout/helpers/check-if-row-has-columns.js +1 -1
  192. package/lib/components/Layout/helpers/check-if-row-has-columns.js.map +1 -1
  193. package/lib/components/Layout/helpers/get-styles-to-update.js.map +1 -1
  194. package/lib/components/Layout/helpers/index.js.map +1 -1
  195. package/lib/components/Layout/index.js.map +1 -1
  196. package/lib/components/LazyImage/LazyImage.js.map +1 -1
  197. package/lib/components/LazyImage/index.js +3 -3
  198. package/lib/components/LazyImage/index.js.map +1 -1
  199. package/lib/components/List/ListBuilder.js +5 -5
  200. package/lib/components/List/ListBuilder.js.map +1 -1
  201. package/lib/components/List/ListFactory.js +10 -10
  202. package/lib/components/List/ListFactory.js.map +1 -1
  203. package/lib/components/List/ListRender.js.map +1 -1
  204. package/lib/components/List/components/Cards/CardRenderWithInfiniteScroll.js.map +1 -1
  205. package/lib/components/List/components/Cards/CardsRender.js +7 -7
  206. package/lib/components/List/components/Cards/CardsRender.js.map +1 -1
  207. package/lib/components/List/components/Cards/CardsRenderItem.js.map +1 -1
  208. package/lib/components/List/components/Cards/CardsRenderWrapper.js +2 -2
  209. package/lib/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
  210. package/lib/components/List/components/Cards/index.js.map +1 -1
  211. package/lib/components/List/components/Full/FullRender.js +8 -8
  212. package/lib/components/List/components/Full/FullRender.js.map +1 -1
  213. package/lib/components/List/components/Full/FullRenderItem.js +6 -6
  214. package/lib/components/List/components/Full/FullRenderItem.js.map +1 -1
  215. package/lib/components/List/components/Full/FullRenderWithInfiniteScroll.js.map +1 -1
  216. package/lib/components/List/components/Full/index.js.map +1 -1
  217. package/lib/components/List/components/Header/ListHeader.js +1 -1
  218. package/lib/components/List/components/Header/ListHeader.js.map +1 -1
  219. package/lib/components/List/components/Header/index.js.map +1 -1
  220. package/lib/components/List/components/Pagination/Classic.js.map +1 -1
  221. package/lib/components/List/components/Pagination/ListPagination.js +6 -6
  222. package/lib/components/List/components/Pagination/ListPagination.js.map +1 -1
  223. package/lib/components/List/components/Pagination/LoadMore.js.map +1 -1
  224. package/lib/components/List/components/Pagination/index.js.map +1 -1
  225. package/lib/components/List/components/helpers/check-if-should-render-banner.js +2 -2
  226. package/lib/components/List/components/helpers/check-if-should-render-banner.js.map +1 -1
  227. package/lib/components/List/components/helpers/check-if-should-render-gtm.js +2 -2
  228. package/lib/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -1
  229. package/lib/components/List/components/helpers/index.js.map +1 -1
  230. package/lib/components/List/components/index.js.map +1 -1
  231. package/lib/components/List/constants.js.map +1 -1
  232. package/lib/components/List/helpers/build-az-aggregations.js +3 -3
  233. package/lib/components/List/helpers/build-az-aggregations.js.map +1 -1
  234. package/lib/components/List/helpers/build-az-url.js +5 -5
  235. package/lib/components/List/helpers/build-az-url.js.map +1 -1
  236. package/lib/components/List/helpers/build-pagination-items.js.map +1 -1
  237. package/lib/components/List/helpers/build-pagination-url.js +5 -5
  238. package/lib/components/List/helpers/build-pagination-url.js.map +1 -1
  239. package/lib/components/List/helpers/build-query-booster.js +6 -6
  240. package/lib/components/List/helpers/build-query-booster.js.map +1 -1
  241. package/lib/components/List/helpers/get-az-query-filter.js.map +1 -1
  242. package/lib/components/List/helpers/get-items-per-page-to-use.js.map +1 -1
  243. package/lib/components/List/helpers/get-list-component.js.map +1 -1
  244. package/lib/components/List/helpers/get-list-query.js +3 -3
  245. package/lib/components/List/helpers/get-list-query.js.map +1 -1
  246. package/lib/components/List/helpers/get-list-specific-search-filter.js.map +1 -1
  247. package/lib/components/List/helpers/get-sort-props.js +2 -2
  248. package/lib/components/List/helpers/get-sort-props.js.map +1 -1
  249. package/lib/components/List/helpers/has-required-item-list-details.js.map +1 -1
  250. package/lib/components/List/helpers/index.js.map +1 -1
  251. package/lib/components/List/helpers/sort-aggs.js.map +1 -1
  252. package/lib/components/List/helpers/strip-query-key.js.map +1 -1
  253. package/lib/components/List/index.js.map +1 -1
  254. package/lib/components/Loading/Loading.js.map +1 -1
  255. package/lib/components/Loading/constants.js.map +1 -1
  256. package/lib/components/Loading/helpers.js.map +1 -1
  257. package/lib/components/Loading/index.js.map +1 -1
  258. package/lib/components/Menu/Menu.js +3 -3
  259. package/lib/components/Menu/Menu.js.map +1 -1
  260. package/lib/components/Menu/MenuContext.js.map +1 -1
  261. package/lib/components/Menu/index.js.map +1 -1
  262. package/lib/components/MenuItem/MenuItem.js +4 -7
  263. package/lib/components/MenuItem/MenuItem.js.map +1 -1
  264. package/lib/components/MenuItem/index.js.map +1 -1
  265. package/lib/components/Modal/Modal.js.map +1 -1
  266. package/lib/components/Modal/index.js.map +1 -1
  267. package/lib/components/SearchContent/SearchContent.js +3 -3
  268. package/lib/components/SearchContent/SearchContent.js.map +1 -1
  269. package/lib/components/SearchContent/SearchContentItems.js.map +1 -1
  270. package/lib/components/SearchContent/SearchContentResults.js.map +1 -1
  271. package/lib/components/SearchContent/SearchContentToggleIcon.js.map +1 -1
  272. package/lib/components/SearchContent/constants.js.map +1 -1
  273. package/lib/components/SearchContent/index.js.map +1 -1
  274. package/lib/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
  275. package/lib/components/SearchFilter/SearchFilter/FiltersList.js +3 -3
  276. package/lib/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
  277. package/lib/components/SearchFilter/SearchFilter/MobileFormToolbar.js +1 -1
  278. package/lib/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -1
  279. package/lib/components/SearchFilter/SearchFilter/ResetDesktopForm.js +3 -3
  280. package/lib/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
  281. package/lib/components/SearchFilter/SearchFilter/SearchFilter.js +7 -6
  282. package/lib/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
  283. package/lib/components/SearchFilter/SearchFilter/index.js.map +1 -1
  284. package/lib/components/SearchFilter/SearchFilterContainer.js +7 -7
  285. package/lib/components/SearchFilter/SearchFilterContainer.js.map +1 -1
  286. package/lib/components/SearchFilter/components/Checkbox.js +8 -8
  287. package/lib/components/SearchFilter/components/Checkbox.js.map +1 -1
  288. package/lib/components/SearchFilter/components/Range.js +4 -4
  289. package/lib/components/SearchFilter/components/Range.js.map +1 -1
  290. package/lib/components/SearchFilter/components/Select.js +3 -3
  291. package/lib/components/SearchFilter/components/Select.js.map +1 -1
  292. package/lib/components/SearchFilter/components/TextSearch.js +1 -0
  293. package/lib/components/SearchFilter/components/TextSearch.js.map +1 -1
  294. package/lib/components/SearchFilter/components/index.js.map +1 -1
  295. package/lib/components/SearchFilter/constants.js.map +1 -1
  296. package/lib/components/SearchFilter/helpers/build-new-url.js.map +1 -1
  297. package/lib/components/SearchFilter/helpers/build-url-query.js +3 -3
  298. package/lib/components/SearchFilter/helpers/build-url-query.js.map +1 -1
  299. package/lib/components/SearchFilter/helpers/calculate-min-max.js.map +1 -1
  300. package/lib/components/SearchFilter/helpers/calculate-step.js.map +1 -1
  301. package/lib/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -1
  302. package/lib/components/SearchFilter/helpers/decode-encode.js.map +1 -1
  303. package/lib/components/SearchFilter/helpers/get-display-value.js +1 -1
  304. package/lib/components/SearchFilter/helpers/get-display-value.js.map +1 -1
  305. package/lib/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js +2 -2
  306. package/lib/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js.map +1 -1
  307. package/lib/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
  308. package/lib/components/SearchFilter/helpers/get-filter-values.js.map +1 -1
  309. package/lib/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -1
  310. package/lib/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -1
  311. package/lib/components/SearchFilter/helpers/get-range-value.js.map +1 -1
  312. package/lib/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
  313. package/lib/components/SearchFilter/helpers/get-select-options.js.map +1 -1
  314. package/lib/components/SearchFilter/helpers/get-updated-filter-by.js +2 -2
  315. package/lib/components/SearchFilter/helpers/get-updated-filter-by.js.map +1 -1
  316. package/lib/components/SearchFilter/helpers/index.js.map +1 -1
  317. package/lib/components/SearchFilter/helpers/is-device-desktop.js.map +1 -1
  318. package/lib/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
  319. package/lib/components/SearchFilter/index.js.map +1 -1
  320. package/lib/components/SearchFilter/searchFilterReducer.js +5 -5
  321. package/lib/components/SearchFilter/searchFilterReducer.js.map +1 -1
  322. package/lib/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
  323. package/lib/components/SearchFilterSort/constants.js.map +1 -1
  324. package/lib/components/SearchFilterSort/helpers/handle-sort-update.js +2 -2
  325. package/lib/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
  326. package/lib/components/SearchFilterSort/helpers/index.js.map +1 -1
  327. package/lib/components/SearchFilterSort/helpers/update-sort.js +5 -5
  328. package/lib/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
  329. package/lib/components/SearchFilterSort/index.js.map +1 -1
  330. package/lib/components/SocialFollow/SFItem.js.map +1 -1
  331. package/lib/components/SocialFollow/SocialFollow.js.map +1 -1
  332. package/lib/components/SocialFollow/SocialFollowRender.js.map +1 -1
  333. package/lib/components/SocialFollow/index.js.map +1 -1
  334. package/lib/components/SocialFollow/sf.config.js.map +1 -1
  335. package/lib/components/SubMenu/SubMenu.js.map +1 -1
  336. package/lib/components/SubMenu/index.js.map +1 -1
  337. package/lib/components/TextBlock/TextBlockRender.js.map +1 -1
  338. package/lib/components/TextBlock/index.js +5 -5
  339. package/lib/components/TextBlock/index.js.map +1 -1
  340. package/lib/components/Video/Video.js +5 -5
  341. package/lib/components/Video/Video.js.map +1 -1
  342. package/lib/components/Video/VideoModal.js +2 -2
  343. package/lib/components/Video/VideoModal.js.map +1 -1
  344. package/lib/components/Video/VideoRender.js.map +1 -1
  345. package/lib/components/Video/index.js.map +1 -1
  346. package/lib/components/Video/providers/Default.js.map +1 -1
  347. package/lib/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
  348. package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js +5 -5
  349. package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
  350. package/lib/components/Video/providers/Vimeo/VimeoProvider.js +2 -3
  351. package/lib/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
  352. package/lib/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js +6 -6
  353. package/lib/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js.map +1 -1
  354. package/lib/components/Video/providers/Vimeo/helpers/index.js.map +1 -1
  355. package/lib/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
  356. package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js +2 -2
  357. package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
  358. package/lib/components/Video/providers/YouTube/helpers/index.js +1 -1
  359. package/lib/components/Video/providers/YouTube/helpers/index.js.map +1 -1
  360. package/lib/components/Video/providers/get-provider.js +3 -3
  361. package/lib/components/Video/providers/get-provider.js.map +1 -1
  362. package/lib/components/Video/providers/index.js.map +1 -1
  363. package/lib/components/Wrapper.js.map +1 -1
  364. package/lib/components/index.js +3 -3
  365. package/lib/components/index.js.map +1 -1
  366. package/lib/constants/componentsDefaultValues.js.map +1 -1
  367. package/lib/constants/index.js.map +1 -1
  368. package/lib/helpers/append-images.js +5 -5
  369. package/lib/helpers/append-images.js.map +1 -1
  370. package/lib/helpers/build-az-filter.js.map +1 -1
  371. package/lib/helpers/build-checkbox-filters.js.map +1 -1
  372. package/lib/helpers/build-filters-query.js +6 -6
  373. package/lib/helpers/build-filters-query.js.map +1 -1
  374. package/lib/helpers/build-image-properties.js.map +1 -1
  375. package/lib/helpers/build-inherited-filters.js +4 -4
  376. package/lib/helpers/build-inherited-filters.js.map +1 -1
  377. package/lib/helpers/build-link-extra-props.js.map +1 -1
  378. package/lib/helpers/build-props-query.js +9 -9
  379. package/lib/helpers/build-props-query.js.map +1 -1
  380. package/lib/helpers/build-query-fields.js +1 -1
  381. package/lib/helpers/build-query-fields.js.map +1 -1
  382. package/lib/helpers/build-query-key.js.map +1 -1
  383. package/lib/helpers/build-raw-query-base.js +9 -9
  384. package/lib/helpers/build-raw-query-base.js.map +1 -1
  385. package/lib/helpers/build-raw-query-stringified.js +1 -1
  386. package/lib/helpers/build-raw-query-stringified.js.map +1 -1
  387. package/lib/helpers/build-raw-query.js +5 -5
  388. package/lib/helpers/build-raw-query.js.map +1 -1
  389. package/lib/helpers/build-search-values-checkbox-select.js +7 -7
  390. package/lib/helpers/build-search-values-checkbox-select.js.map +1 -1
  391. package/lib/helpers/build-search-values-text.js.map +1 -1
  392. package/lib/helpers/build-set-filters.js +3 -3
  393. package/lib/helpers/build-set-filters.js.map +1 -1
  394. package/lib/helpers/build-sort-values.js +6 -6
  395. package/lib/helpers/build-sort-values.js.map +1 -1
  396. package/lib/helpers/check-for-error.js.map +1 -1
  397. package/lib/helpers/check-props-to-use.js.map +1 -1
  398. package/lib/helpers/entities/constants.js.map +1 -1
  399. package/lib/helpers/get-banner-data.js +5 -5
  400. package/lib/helpers/get-banner-data.js.map +1 -1
  401. package/lib/helpers/get-checkbox-filters.js.map +1 -1
  402. package/lib/helpers/get-click-wrapper-options.js +6 -6
  403. package/lib/helpers/get-click-wrapper-options.js.map +1 -1
  404. package/lib/helpers/get-current-offset.js.map +1 -1
  405. package/lib/helpers/get-dictionary-match.js.map +1 -1
  406. package/lib/helpers/get-display-count-data.js.map +1 -1
  407. package/lib/helpers/get-elasticsearch-operator.js.map +1 -1
  408. package/lib/helpers/get-entities-with-banner.js +5 -5
  409. package/lib/helpers/get-entities-with-banner.js.map +1 -1
  410. package/lib/helpers/get-entity-data.js.map +1 -1
  411. package/lib/helpers/get-entity-render-props.js.map +1 -1
  412. package/lib/helpers/get-extra-az-bits.js.map +1 -1
  413. package/lib/helpers/get-filter-props.js.map +1 -1
  414. package/lib/helpers/get-filter-relation-keys.js +1 -1
  415. package/lib/helpers/get-filter-relation-keys.js.map +1 -1
  416. package/lib/helpers/get-generic-props.js +5 -5
  417. package/lib/helpers/get-generic-props.js.map +1 -1
  418. package/lib/helpers/get-generic-render-variables.js +6 -6
  419. package/lib/helpers/get-generic-render-variables.js.map +1 -1
  420. package/lib/helpers/get-image-ids.js +2 -2
  421. package/lib/helpers/get-image-ids.js.map +1 -1
  422. package/lib/helpers/get-inherited-filters.js +2 -2
  423. package/lib/helpers/get-inherited-filters.js.map +1 -1
  424. package/lib/helpers/get-items-to-display-ids.js +2 -2
  425. package/lib/helpers/get-items-to-display-ids.js.map +1 -1
  426. package/lib/helpers/get-modifiers.js +3 -3
  427. package/lib/helpers/get-modifiers.js.map +1 -1
  428. package/lib/helpers/get-not-equal-query.js.map +1 -1
  429. package/lib/helpers/get-pagination-index.js.map +1 -1
  430. package/lib/helpers/get-parsed-prop-values.js +3 -3
  431. package/lib/helpers/get-parsed-prop-values.js.map +1 -1
  432. package/lib/helpers/get-parsed-summary-value.js.map +1 -1
  433. package/lib/helpers/get-prop-values.js +2 -2
  434. package/lib/helpers/get-prop-values.js.map +1 -1
  435. package/lib/helpers/get-query-filters.js.map +1 -1
  436. package/lib/helpers/get-query-props.js +3 -3
  437. package/lib/helpers/get-query-props.js.map +1 -1
  438. package/lib/helpers/get-required-schemas.js +3 -3
  439. package/lib/helpers/get-required-schemas.js.map +1 -1
  440. package/lib/helpers/get-sanitized-prop-values.js.map +1 -1
  441. package/lib/helpers/get-search-filter-type.js.map +1 -1
  442. package/lib/helpers/get-sort-by-field-name.js +4 -4
  443. package/lib/helpers/get-sort-by-field-name.js.map +1 -1
  444. package/lib/helpers/get-unpublished-entity-name.js +1 -1
  445. package/lib/helpers/get-unpublished-entity-name.js.map +1 -1
  446. package/lib/helpers/get-updated-filter-by.js.map +1 -1
  447. package/lib/helpers/get-wrapped-value-with-link.js +1 -1
  448. package/lib/helpers/get-wrapped-value-with-link.js.map +1 -1
  449. package/lib/helpers/group-entities.js +1 -1
  450. package/lib/helpers/group-entities.js.map +1 -1
  451. package/lib/helpers/has-children.js.map +1 -1
  452. package/lib/helpers/index.js.map +1 -1
  453. package/lib/helpers/inject-banner.js.map +1 -1
  454. package/lib/helpers/inject-banners-to-entities.js.map +1 -1
  455. package/lib/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.map +1 -1
  456. package/lib/helpers/inject-multiple-banners/get-banners-for-entities/index.js.map +1 -1
  457. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js +6 -6
  458. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.map +1 -1
  459. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js +3 -3
  460. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js.map +1 -1
  461. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js.map +1 -1
  462. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/index.js.map +1 -1
  463. package/lib/helpers/inject-multiple-banners/index.js.map +1 -1
  464. package/lib/helpers/inject-multiple-banners/inject-multiple-banners.js.map +1 -1
  465. package/lib/helpers/is-browser.js.map +1 -1
  466. package/lib/helpers/is-filter-entitys-id.js +1 -1
  467. package/lib/helpers/is-filter-entitys-id.js.map +1 -1
  468. package/lib/helpers/is-object.js.map +1 -1
  469. package/lib/helpers/is-using-relation-image.js.map +1 -1
  470. package/lib/helpers/parse-TextBlock.js +2 -2
  471. package/lib/helpers/parse-TextBlock.js.map +1 -1
  472. package/lib/helpers/parse-interval.js.map +1 -1
  473. package/lib/helpers/parse-props-to-display.js +4 -4
  474. package/lib/helpers/parse-props-to-display.js.map +1 -1
  475. package/lib/helpers/process-data-summary-value.js +8 -8
  476. package/lib/helpers/process-data-summary-value.js.map +1 -1
  477. package/lib/helpers/remove-extra-items.js.map +1 -1
  478. package/lib/helpers/remove-unwanted-characters.js +6 -6
  479. package/lib/helpers/remove-unwanted-characters.js.map +1 -1
  480. package/lib/helpers/render-children.js +5 -5
  481. package/lib/helpers/render-children.js.map +1 -1
  482. package/lib/helpers/should-render-waypoint.js.map +1 -1
  483. package/lib/helpers/should-show-property.js.map +1 -1
  484. package/lib/helpers/sort-response-data.js +2 -2
  485. package/lib/helpers/sort-response-data.js.map +1 -1
  486. package/lib/helpers/split-children.js +5 -5
  487. package/lib/helpers/split-children.js.map +1 -1
  488. package/lib/helpers/update-childrens-parent.js +3 -3
  489. package/lib/helpers/update-childrens-parent.js.map +1 -1
  490. package/lib/hooks/helpers/RenderComponent.js +1 -1
  491. package/lib/hooks/helpers/RenderComponent.js.map +1 -1
  492. package/lib/hooks/helpers/StoreImages.js +4 -4
  493. package/lib/hooks/helpers/StoreImages.js.map +1 -1
  494. package/lib/hooks/helpers/append-gtm-classname.js +7 -7
  495. package/lib/hooks/helpers/append-gtm-classname.js.map +1 -1
  496. package/lib/hooks/helpers/buildPBComponents.js +7 -7
  497. package/lib/hooks/helpers/buildPBComponents.js.map +1 -1
  498. package/lib/hooks/helpers/check-banner-insertion-set.js.map +1 -1
  499. package/lib/hooks/helpers/check-collisions.js +3 -3
  500. package/lib/hooks/helpers/check-collisions.js.map +1 -1
  501. package/lib/hooks/helpers/constants.js.map +1 -1
  502. package/lib/hooks/helpers/get-banner-index.js.map +1 -1
  503. package/lib/hooks/helpers/get-components-to-insert-by-type.js.map +1 -1
  504. package/lib/hooks/helpers/get-lightbox-images.js +8 -8
  505. package/lib/hooks/helpers/get-lightbox-images.js.map +1 -1
  506. package/lib/hooks/helpers/getComponent.js.map +1 -1
  507. package/lib/hooks/helpers/getVariant.js.map +1 -1
  508. package/lib/hooks/helpers/index.js.map +1 -1
  509. package/lib/hooks/helpers/inject-element-components.js +4 -4
  510. package/lib/hooks/helpers/inject-element-components.js.map +1 -1
  511. package/lib/hooks/helpers/inject-textblock-banners.js +7 -7
  512. package/lib/hooks/helpers/inject-textblock-banners.js.map +1 -1
  513. package/lib/hooks/helpers/insert-banners.js +9 -9
  514. package/lib/hooks/helpers/insert-banners.js.map +1 -1
  515. package/lib/hooks/helpers/update-targetings.js.map +1 -1
  516. package/lib/hooks/index.js.map +1 -1
  517. package/lib/hooks/use-app-sync-event-hook.js.map +1 -1
  518. package/lib/hooks/use-banner-insertion.js +1 -1
  519. package/lib/hooks/use-banner-insertion.js.map +1 -1
  520. package/lib/hooks/use-check-mobile-screen.js.map +1 -1
  521. package/lib/hooks/use-get-entity-schema.js.map +1 -1
  522. package/lib/hooks/use-get-entity-schemas-as-obj.js +1 -1
  523. package/lib/hooks/use-get-entity-schemas-as-obj.js.map +1 -1
  524. package/lib/hooks/use-get-image-id-from-relation.js +1 -1
  525. package/lib/hooks/use-get-image-id-from-relation.js.map +1 -1
  526. package/lib/hooks/use-get-images.js.map +1 -1
  527. package/lib/hooks/use-get-single-entity-schema.js.map +1 -1
  528. package/lib/hooks/use-page-builder.js.map +1 -1
  529. package/lib/index.js.map +1 -1
  530. package/lib/utils/component-map.js +1 -1
  531. package/lib/utils/component-map.js.map +1 -1
  532. package/lib/utils/get-class-modifiers.js +7 -7
  533. package/lib/utils/get-class-modifiers.js.map +1 -1
  534. package/lib/utils/get-image-data.js.map +1 -1
  535. package/lib/utils/get-props-to-display-modifiers.js.map +1 -1
  536. package/lib/utils/index.js.map +1 -1
  537. package/lib/utils/is-object-empty.js.map +1 -1
  538. package/lib/utils/variant-handler.js +1 -1
  539. package/lib/utils/variant-handler.js.map +1 -1
  540. package/lib/variants/HeroImage/index.js +5 -5
  541. package/lib/variants/HeroImage/index.js.map +1 -1
  542. package/lib/variants/Infographic/Infographic.js.map +1 -1
  543. package/lib/variants/Infographic/index.js +5 -5
  544. package/lib/variants/Infographic/index.js.map +1 -1
  545. package/lib/variants/Infographic/useInfographic.js +5 -5
  546. package/lib/variants/Infographic/useInfographic.js.map +1 -1
  547. package/lib/variants/LongformGallery/LongformGallery.js.map +1 -1
  548. package/lib/variants/LongformGallery/LongformGalleryImage.js.map +1 -1
  549. package/lib/variants/LongformGallery/constants.js.map +1 -1
  550. package/lib/variants/LongformGallery/helpers/index.js.map +1 -1
  551. package/lib/variants/LongformGallery/helpers/parseImageData.js +3 -3
  552. package/lib/variants/LongformGallery/helpers/parseImageData.js.map +1 -1
  553. package/lib/variants/LongformGallery/helpers/separateImages.js.map +1 -1
  554. package/lib/variants/LongformGallery/helpers/shouldSkip.js.map +1 -1
  555. package/lib/variants/LongformGallery/index.js +6 -6
  556. package/lib/variants/LongformGallery/index.js.map +1 -1
  557. package/lib/variants/LongformGallery/useLongformGallery.js.map +1 -1
  558. package/lib/variants/LongformRow/index.js +5 -5
  559. package/lib/variants/LongformRow/index.js.map +1 -1
  560. package/lib/variants/ParallaxImageTextRight/index.js +5 -5
  561. package/lib/variants/ParallaxImageTextRight/index.js.map +1 -1
  562. package/lib/variants/SlideSummary/SlideSummary.js.map +1 -1
  563. package/lib/variants/SlideSummary/index.js +5 -5
  564. package/lib/variants/SlideSummary/index.js.map +1 -1
  565. package/lib/variants/ThumbnailCarousel/ThumbnailCarousel.js.map +1 -1
  566. package/lib/variants/ThumbnailCarousel/ThumbnailImage/ThumbnailImage.js.map +1 -1
  567. package/lib/variants/ThumbnailCarousel/ThumbnailImage/index.js.map +1 -1
  568. package/lib/variants/ThumbnailCarousel/ThumbnailImage/useThumbnailImage.js.map +1 -1
  569. package/lib/variants/ThumbnailCarousel/index.js +5 -5
  570. package/lib/variants/ThumbnailCarousel/index.js.map +1 -1
  571. package/lib/variants/ThumbnailCarousel/useThumbnailCarousel.js +5 -5
  572. package/lib/variants/ThumbnailCarousel/useThumbnailCarousel.js.map +1 -1
  573. package/lib/variants/index.js.map +1 -1
  574. package/lib-es/BannerContext/helpers/index.js.map +1 -1
  575. package/lib-es/BannerContext/helpers/set-initial-banner-counters.js.map +1 -1
  576. package/lib-es/BannerContext/index.js.map +1 -1
  577. package/lib-es/HOC/index.js.map +1 -1
  578. package/lib-es/HOC/recreateOnNavigation.js.map +1 -1
  579. package/lib-es/HOC/withInfiniteScroll.js.map +1 -1
  580. package/lib-es/HOC/withTitle.js.map +1 -1
  581. package/lib-es/PBContext/index.js.map +1 -1
  582. package/lib-es/application/query/index.js.map +1 -1
  583. package/lib-es/components/BackToTop/BackToTop.js +11 -17
  584. package/lib-es/components/BackToTop/BackToTop.js.map +1 -1
  585. package/lib-es/components/BackToTop/index.js.map +1 -1
  586. package/lib-es/components/Banner/AdSlotRender.js.map +1 -1
  587. package/lib-es/components/Banner/Banner.js.map +1 -1
  588. package/lib-es/components/Banner/BannerRender.js.map +1 -1
  589. package/lib-es/components/Banner/helpers.js.map +1 -1
  590. package/lib-es/components/Banner/index.js.map +1 -1
  591. package/lib-es/components/BlazeLink.js.map +1 -1
  592. package/lib-es/components/Breadcrumb/Breadcrumb.js.map +1 -1
  593. package/lib-es/components/Breadcrumb/index.js.map +1 -1
  594. package/lib-es/components/Button.js.map +1 -1
  595. package/lib-es/components/Card/Card.js +5 -3
  596. package/lib-es/components/Card/Card.js.map +1 -1
  597. package/lib-es/components/Card/CardsContainer.js.map +1 -1
  598. package/lib-es/components/Card/CardsFactory.js.map +1 -1
  599. package/lib-es/components/Card/CardsRender.js.map +1 -1
  600. package/lib-es/components/Card/constants.js.map +1 -1
  601. package/lib-es/components/Card/helpers/filter-query-setup.js.map +1 -1
  602. package/lib-es/components/Card/helpers/filters-setup.js.map +1 -1
  603. package/lib-es/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -1
  604. package/lib-es/components/Card/helpers/get-published-listing-url.js.map +1 -1
  605. package/lib-es/components/Card/helpers/get-updated-items-to-display.js.map +1 -1
  606. package/lib-es/components/Card/helpers/get-updated-sort-properties.js.map +1 -1
  607. package/lib-es/components/Card/helpers/index.js.map +1 -1
  608. package/lib-es/components/Card/helpers/should-return.js.map +1 -1
  609. package/lib-es/components/Card/helpers/should-skip-single-query.js.map +1 -1
  610. package/lib-es/components/Card/helpers/use-dynamic-size-key.js.map +1 -1
  611. package/lib-es/components/Card/index.js.map +1 -1
  612. package/lib-es/components/Carousel/Carousel.js.map +1 -1
  613. package/lib-es/components/Carousel/CarouselImage/CarouselImage.js +3 -1
  614. package/lib-es/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
  615. package/lib-es/components/Carousel/CarouselImage/constants.js +2 -0
  616. package/lib-es/components/Carousel/CarouselImage/constants.js.map +1 -0
  617. package/lib-es/components/Carousel/CarouselImage/index.js.map +1 -1
  618. package/lib-es/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
  619. package/lib-es/components/Carousel/CarouselRender/index.js.map +1 -1
  620. package/lib-es/components/Carousel/hooks/useCarouselNavigation.js.map +1 -1
  621. package/lib-es/components/Carousel/index.js.map +1 -1
  622. package/lib-es/components/CarouselWrapper/CarouselWrapper.js.map +1 -1
  623. package/lib-es/components/CarouselWrapper/DefaultCarousel.js +2 -0
  624. package/lib-es/components/CarouselWrapper/DefaultCarousel.js.map +1 -1
  625. package/lib-es/components/CarouselWrapper/SmoothScrollCarousel.js.map +1 -1
  626. package/lib-es/components/CarouselWrapper/index.js.map +1 -1
  627. package/lib-es/components/ClickWrapper.js.map +1 -1
  628. package/lib-es/components/Code/Code.js.map +1 -1
  629. package/lib-es/components/Code/ScriptTag.js.map +1 -1
  630. package/lib-es/components/Code/helpers/index.js.map +1 -1
  631. package/lib-es/components/Code/helpers/wrap-script-tags.js.map +1 -1
  632. package/lib-es/components/Code/index.js.map +1 -1
  633. package/lib-es/components/ContentGroup/ContentGroup.js.map +1 -1
  634. package/lib-es/components/ContentGroup/ContentGroupTabs.js +1 -2
  635. package/lib-es/components/ContentGroup/ContentGroupTabs.js.map +1 -1
  636. package/lib-es/components/ContentGroup/constants.js.map +1 -1
  637. package/lib-es/components/ContentGroup/helpers/get-active-tab.js.map +1 -1
  638. package/lib-es/components/ContentGroup/helpers/get-sections-data.js.map +1 -1
  639. package/lib-es/components/ContentGroup/helpers/index.js.map +1 -1
  640. package/lib-es/components/ContentGroup/index.js.map +1 -1
  641. package/lib-es/components/ContentGroupSection/ContentGroupSection.js.map +1 -1
  642. package/lib-es/components/ContentGroupSection/index.js.map +1 -1
  643. package/lib-es/components/DataSummary/DataSummaryFactory.js.map +1 -1
  644. package/lib-es/components/DataSummary/DataSummaryRender.js.map +1 -1
  645. package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -1
  646. package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
  647. package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js.map +1 -1
  648. package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map +1 -1
  649. package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
  650. package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js.map +1 -1
  651. package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.map +1 -1
  652. package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
  653. package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/index.js.map +1 -1
  654. package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.map +1 -1
  655. package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
  656. package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/index.js.map +1 -1
  657. package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.map +1 -1
  658. package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
  659. package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/index.js.map +1 -1
  660. package/lib-es/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
  661. package/lib-es/components/DataSummary/helpers/build-loop-props-content.js.map +1 -1
  662. package/lib-es/components/DataSummary/helpers/build-props-to-display-with-content.js.map +1 -1
  663. package/lib-es/components/DataSummary/helpers/get-data-summary-query.js.map +1 -1
  664. package/lib-es/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -1
  665. package/lib-es/components/DataSummary/helpers/get-link-props.js.map +1 -1
  666. package/lib-es/components/DataSummary/helpers/get-link-to-published-content.js.map +1 -1
  667. package/lib-es/components/DataSummary/helpers/get-loop-props-limit.js.map +1 -1
  668. package/lib-es/components/DataSummary/helpers/get-prop-value.js.map +1 -1
  669. package/lib-es/components/DataSummary/helpers/get-value-from-array.js.map +1 -1
  670. package/lib-es/components/DataSummary/helpers/index.js.map +1 -1
  671. package/lib-es/components/DataSummary/helpers/parse-boolean-values.js.map +1 -1
  672. package/lib-es/components/DataSummary/helpers/strip-summary-props-content.js.map +1 -1
  673. package/lib-es/components/DataSummary/index.js.map +1 -1
  674. package/lib-es/components/DateTime/DateTime.js.map +1 -1
  675. package/lib-es/components/DateTime/index.js.map +1 -1
  676. package/lib-es/components/EmailConfirm/EmailConfirm.js.map +1 -1
  677. package/lib-es/components/EmailConfirm/index.js.map +1 -1
  678. package/lib-es/components/EmailConfirm/mutation.js.map +1 -1
  679. package/lib-es/components/Iframe/Iframe.js.map +1 -1
  680. package/lib-es/components/Iframe/constants.js.map +1 -1
  681. package/lib-es/components/Iframe/index.js.map +1 -1
  682. package/lib-es/components/Image/GlobalLightbox/GlobalLightbox.js +3 -3
  683. package/lib-es/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
  684. package/lib-es/components/Image/GlobalLightbox/NavButton.js +6 -3
  685. package/lib-es/components/Image/GlobalLightbox/NavButton.js.map +1 -1
  686. package/lib-es/components/Image/GlobalLightbox/index.js.map +1 -1
  687. package/lib-es/components/Image/Image.js +1 -0
  688. package/lib-es/components/Image/Image.js.map +1 -1
  689. package/lib-es/components/Image/ImageDetails.js.map +1 -1
  690. package/lib-es/components/Image/ImageFactory.js.map +1 -1
  691. package/lib-es/components/Image/ImageRender.js.map +1 -1
  692. package/lib-es/components/Image/Lightbox/Lightbox.js.map +1 -1
  693. package/lib-es/components/Image/Lightbox/index.js.map +1 -1
  694. package/lib-es/components/Image/index.js.map +1 -1
  695. package/lib-es/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
  696. package/lib-es/components/ItemList/ItemListButton/index.js.map +1 -1
  697. package/lib-es/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
  698. package/lib-es/components/ItemList/ItemListCounter/index.js.map +1 -1
  699. package/lib-es/components/ItemList/ItemListNew/ItemListNew.js +1 -2
  700. package/lib-es/components/ItemList/ItemListNew/ItemListNew.js.map +1 -1
  701. package/lib-es/components/ItemList/ItemListNew/index.js.map +1 -1
  702. package/lib-es/components/ItemList/constants.js.map +1 -1
  703. package/lib-es/components/ItemList/helpers/get-item-list-data.js.map +1 -1
  704. package/lib-es/components/ItemList/helpers/get-item-list-id.js.map +1 -1
  705. package/lib-es/components/ItemList/helpers/get-item-list-ids.js.map +1 -1
  706. package/lib-es/components/ItemList/helpers/index.js.map +1 -1
  707. package/lib-es/components/ItemList/helpers/set-item-list-id.js.map +1 -1
  708. package/lib-es/components/ItemList/helpers/set-param-and-redirect.js.map +1 -1
  709. package/lib-es/components/ItemList/hooks/index.js.map +1 -1
  710. package/lib-es/components/ItemList/hooks/use-item-list-id.js.map +1 -1
  711. package/lib-es/components/Layout/Layout.js.map +1 -1
  712. package/lib-es/components/Layout/LayoutFactory.js.map +1 -1
  713. package/lib-es/components/Layout/LayoutWithStickyTimer.js.map +1 -1
  714. package/lib-es/components/Layout/constants.js.map +1 -1
  715. package/lib-es/components/Layout/helpers/check-if-row-has-columns.js.map +1 -1
  716. package/lib-es/components/Layout/helpers/get-styles-to-update.js.map +1 -1
  717. package/lib-es/components/Layout/helpers/index.js.map +1 -1
  718. package/lib-es/components/Layout/index.js.map +1 -1
  719. package/lib-es/components/LazyImage/LazyImage.js.map +1 -1
  720. package/lib-es/components/LazyImage/index.js.map +1 -1
  721. package/lib-es/components/List/ListBuilder.js.map +1 -1
  722. package/lib-es/components/List/ListFactory.js.map +1 -1
  723. package/lib-es/components/List/ListRender.js.map +1 -1
  724. package/lib-es/components/List/components/Cards/CardRenderWithInfiniteScroll.js.map +1 -1
  725. package/lib-es/components/List/components/Cards/CardsRender.js.map +1 -1
  726. package/lib-es/components/List/components/Cards/CardsRenderItem.js.map +1 -1
  727. package/lib-es/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
  728. package/lib-es/components/List/components/Cards/index.js.map +1 -1
  729. package/lib-es/components/List/components/Full/FullRender.js +2 -2
  730. package/lib-es/components/List/components/Full/FullRender.js.map +1 -1
  731. package/lib-es/components/List/components/Full/FullRenderItem.js.map +1 -1
  732. package/lib-es/components/List/components/Full/FullRenderWithInfiniteScroll.js.map +1 -1
  733. package/lib-es/components/List/components/Full/index.js.map +1 -1
  734. package/lib-es/components/List/components/Header/ListHeader.js.map +1 -1
  735. package/lib-es/components/List/components/Header/index.js.map +1 -1
  736. package/lib-es/components/List/components/Pagination/Classic.js.map +1 -1
  737. package/lib-es/components/List/components/Pagination/ListPagination.js.map +1 -1
  738. package/lib-es/components/List/components/Pagination/LoadMore.js.map +1 -1
  739. package/lib-es/components/List/components/Pagination/index.js.map +1 -1
  740. package/lib-es/components/List/components/helpers/check-if-should-render-banner.js.map +1 -1
  741. package/lib-es/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -1
  742. package/lib-es/components/List/components/helpers/index.js.map +1 -1
  743. package/lib-es/components/List/components/index.js.map +1 -1
  744. package/lib-es/components/List/constants.js.map +1 -1
  745. package/lib-es/components/List/helpers/build-az-aggregations.js.map +1 -1
  746. package/lib-es/components/List/helpers/build-az-url.js.map +1 -1
  747. package/lib-es/components/List/helpers/build-pagination-items.js.map +1 -1
  748. package/lib-es/components/List/helpers/build-pagination-url.js.map +1 -1
  749. package/lib-es/components/List/helpers/build-query-booster.js.map +1 -1
  750. package/lib-es/components/List/helpers/get-az-query-filter.js.map +1 -1
  751. package/lib-es/components/List/helpers/get-items-per-page-to-use.js.map +1 -1
  752. package/lib-es/components/List/helpers/get-list-component.js.map +1 -1
  753. package/lib-es/components/List/helpers/get-list-query.js.map +1 -1
  754. package/lib-es/components/List/helpers/get-list-specific-search-filter.js.map +1 -1
  755. package/lib-es/components/List/helpers/get-sort-props.js.map +1 -1
  756. package/lib-es/components/List/helpers/has-required-item-list-details.js.map +1 -1
  757. package/lib-es/components/List/helpers/index.js.map +1 -1
  758. package/lib-es/components/List/helpers/sort-aggs.js.map +1 -1
  759. package/lib-es/components/List/helpers/strip-query-key.js.map +1 -1
  760. package/lib-es/components/List/index.js.map +1 -1
  761. package/lib-es/components/Loading/Loading.js.map +1 -1
  762. package/lib-es/components/Loading/constants.js.map +1 -1
  763. package/lib-es/components/Loading/helpers.js.map +1 -1
  764. package/lib-es/components/Loading/index.js.map +1 -1
  765. package/lib-es/components/Menu/Menu.js +1 -1
  766. package/lib-es/components/Menu/Menu.js.map +1 -1
  767. package/lib-es/components/Menu/MenuContext.js.map +1 -1
  768. package/lib-es/components/Menu/index.js.map +1 -1
  769. package/lib-es/components/MenuItem/MenuItem.js +2 -5
  770. package/lib-es/components/MenuItem/MenuItem.js.map +1 -1
  771. package/lib-es/components/MenuItem/index.js.map +1 -1
  772. package/lib-es/components/Modal/Modal.js.map +1 -1
  773. package/lib-es/components/Modal/index.js.map +1 -1
  774. package/lib-es/components/SearchContent/SearchContent.js.map +1 -1
  775. package/lib-es/components/SearchContent/SearchContentItems.js.map +1 -1
  776. package/lib-es/components/SearchContent/SearchContentResults.js.map +1 -1
  777. package/lib-es/components/SearchContent/SearchContentToggleIcon.js.map +1 -1
  778. package/lib-es/components/SearchContent/constants.js.map +1 -1
  779. package/lib-es/components/SearchContent/index.js.map +1 -1
  780. package/lib-es/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
  781. package/lib-es/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
  782. package/lib-es/components/SearchFilter/SearchFilter/MobileFormToolbar.js +1 -1
  783. package/lib-es/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -1
  784. package/lib-es/components/SearchFilter/SearchFilter/ResetDesktopForm.js +3 -3
  785. package/lib-es/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
  786. package/lib-es/components/SearchFilter/SearchFilter/SearchFilter.js +4 -3
  787. package/lib-es/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
  788. package/lib-es/components/SearchFilter/SearchFilter/index.js.map +1 -1
  789. package/lib-es/components/SearchFilter/SearchFilterContainer.js.map +1 -1
  790. package/lib-es/components/SearchFilter/components/Checkbox.js +1 -1
  791. package/lib-es/components/SearchFilter/components/Checkbox.js.map +1 -1
  792. package/lib-es/components/SearchFilter/components/Range.js.map +1 -1
  793. package/lib-es/components/SearchFilter/components/Select.js.map +1 -1
  794. package/lib-es/components/SearchFilter/components/TextSearch.js +1 -0
  795. package/lib-es/components/SearchFilter/components/TextSearch.js.map +1 -1
  796. package/lib-es/components/SearchFilter/components/index.js.map +1 -1
  797. package/lib-es/components/SearchFilter/constants.js.map +1 -1
  798. package/lib-es/components/SearchFilter/helpers/build-new-url.js.map +1 -1
  799. package/lib-es/components/SearchFilter/helpers/build-url-query.js.map +1 -1
  800. package/lib-es/components/SearchFilter/helpers/calculate-min-max.js.map +1 -1
  801. package/lib-es/components/SearchFilter/helpers/calculate-step.js.map +1 -1
  802. package/lib-es/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -1
  803. package/lib-es/components/SearchFilter/helpers/decode-encode.js.map +1 -1
  804. package/lib-es/components/SearchFilter/helpers/get-display-value.js.map +1 -1
  805. package/lib-es/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js.map +1 -1
  806. package/lib-es/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
  807. package/lib-es/components/SearchFilter/helpers/get-filter-values.js.map +1 -1
  808. package/lib-es/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -1
  809. package/lib-es/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -1
  810. package/lib-es/components/SearchFilter/helpers/get-range-value.js.map +1 -1
  811. package/lib-es/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
  812. package/lib-es/components/SearchFilter/helpers/get-select-options.js.map +1 -1
  813. package/lib-es/components/SearchFilter/helpers/get-updated-filter-by.js.map +1 -1
  814. package/lib-es/components/SearchFilter/helpers/index.js.map +1 -1
  815. package/lib-es/components/SearchFilter/helpers/is-device-desktop.js.map +1 -1
  816. package/lib-es/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
  817. package/lib-es/components/SearchFilter/index.js.map +1 -1
  818. package/lib-es/components/SearchFilter/searchFilterReducer.js.map +1 -1
  819. package/lib-es/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
  820. package/lib-es/components/SearchFilterSort/constants.js.map +1 -1
  821. package/lib-es/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
  822. package/lib-es/components/SearchFilterSort/helpers/index.js.map +1 -1
  823. package/lib-es/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
  824. package/lib-es/components/SearchFilterSort/index.js.map +1 -1
  825. package/lib-es/components/SocialFollow/SFItem.js.map +1 -1
  826. package/lib-es/components/SocialFollow/SocialFollow.js.map +1 -1
  827. package/lib-es/components/SocialFollow/SocialFollowRender.js.map +1 -1
  828. package/lib-es/components/SocialFollow/index.js.map +1 -1
  829. package/lib-es/components/SocialFollow/sf.config.js.map +1 -1
  830. package/lib-es/components/SubMenu/SubMenu.js.map +1 -1
  831. package/lib-es/components/SubMenu/index.js.map +1 -1
  832. package/lib-es/components/TextBlock/TextBlockRender.js.map +1 -1
  833. package/lib-es/components/TextBlock/index.js.map +1 -1
  834. package/lib-es/components/Video/Video.js.map +1 -1
  835. package/lib-es/components/Video/VideoModal.js.map +1 -1
  836. package/lib-es/components/Video/VideoRender.js.map +1 -1
  837. package/lib-es/components/Video/index.js.map +1 -1
  838. package/lib-es/components/Video/providers/Default.js.map +1 -1
  839. package/lib-es/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
  840. package/lib-es/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
  841. package/lib-es/components/Video/providers/Vimeo/VimeoProvider.js +0 -1
  842. package/lib-es/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
  843. package/lib-es/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js.map +1 -1
  844. package/lib-es/components/Video/providers/Vimeo/helpers/index.js.map +1 -1
  845. package/lib-es/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
  846. package/lib-es/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
  847. package/lib-es/components/Video/providers/YouTube/helpers/index.js.map +1 -1
  848. package/lib-es/components/Video/providers/get-provider.js.map +1 -1
  849. package/lib-es/components/Video/providers/index.js.map +1 -1
  850. package/lib-es/components/Wrapper.js.map +1 -1
  851. package/lib-es/components/index.js.map +1 -1
  852. package/lib-es/constants/componentsDefaultValues.js.map +1 -1
  853. package/lib-es/constants/index.js.map +1 -1
  854. package/lib-es/helpers/append-images.js.map +1 -1
  855. package/lib-es/helpers/build-az-filter.js.map +1 -1
  856. package/lib-es/helpers/build-checkbox-filters.js.map +1 -1
  857. package/lib-es/helpers/build-filters-query.js.map +1 -1
  858. package/lib-es/helpers/build-image-properties.js.map +1 -1
  859. package/lib-es/helpers/build-inherited-filters.js.map +1 -1
  860. package/lib-es/helpers/build-link-extra-props.js.map +1 -1
  861. package/lib-es/helpers/build-props-query.js.map +1 -1
  862. package/lib-es/helpers/build-query-fields.js.map +1 -1
  863. package/lib-es/helpers/build-query-key.js.map +1 -1
  864. package/lib-es/helpers/build-raw-query-base.js.map +1 -1
  865. package/lib-es/helpers/build-raw-query-stringified.js.map +1 -1
  866. package/lib-es/helpers/build-raw-query.js.map +1 -1
  867. package/lib-es/helpers/build-search-values-checkbox-select.js.map +1 -1
  868. package/lib-es/helpers/build-search-values-text.js.map +1 -1
  869. package/lib-es/helpers/build-set-filters.js.map +1 -1
  870. package/lib-es/helpers/build-sort-values.js.map +1 -1
  871. package/lib-es/helpers/check-for-error.js.map +1 -1
  872. package/lib-es/helpers/check-props-to-use.js.map +1 -1
  873. package/lib-es/helpers/entities/constants.js.map +1 -1
  874. package/lib-es/helpers/get-banner-data.js.map +1 -1
  875. package/lib-es/helpers/get-checkbox-filters.js.map +1 -1
  876. package/lib-es/helpers/get-click-wrapper-options.js.map +1 -1
  877. package/lib-es/helpers/get-current-offset.js.map +1 -1
  878. package/lib-es/helpers/get-dictionary-match.js.map +1 -1
  879. package/lib-es/helpers/get-display-count-data.js.map +1 -1
  880. package/lib-es/helpers/get-elasticsearch-operator.js.map +1 -1
  881. package/lib-es/helpers/get-entities-with-banner.js.map +1 -1
  882. package/lib-es/helpers/get-entity-data.js.map +1 -1
  883. package/lib-es/helpers/get-entity-render-props.js.map +1 -1
  884. package/lib-es/helpers/get-extra-az-bits.js.map +1 -1
  885. package/lib-es/helpers/get-filter-props.js.map +1 -1
  886. package/lib-es/helpers/get-filter-relation-keys.js.map +1 -1
  887. package/lib-es/helpers/get-generic-props.js.map +1 -1
  888. package/lib-es/helpers/get-generic-render-variables.js.map +1 -1
  889. package/lib-es/helpers/get-image-ids.js.map +1 -1
  890. package/lib-es/helpers/get-inherited-filters.js.map +1 -1
  891. package/lib-es/helpers/get-items-to-display-ids.js.map +1 -1
  892. package/lib-es/helpers/get-modifiers.js.map +1 -1
  893. package/lib-es/helpers/get-not-equal-query.js.map +1 -1
  894. package/lib-es/helpers/get-pagination-index.js.map +1 -1
  895. package/lib-es/helpers/get-parsed-prop-values.js.map +1 -1
  896. package/lib-es/helpers/get-parsed-summary-value.js.map +1 -1
  897. package/lib-es/helpers/get-prop-values.js.map +1 -1
  898. package/lib-es/helpers/get-query-filters.js.map +1 -1
  899. package/lib-es/helpers/get-query-props.js.map +1 -1
  900. package/lib-es/helpers/get-required-schemas.js.map +1 -1
  901. package/lib-es/helpers/get-sanitized-prop-values.js.map +1 -1
  902. package/lib-es/helpers/get-search-filter-type.js.map +1 -1
  903. package/lib-es/helpers/get-sort-by-field-name.js.map +1 -1
  904. package/lib-es/helpers/get-unpublished-entity-name.js.map +1 -1
  905. package/lib-es/helpers/get-updated-filter-by.js.map +1 -1
  906. package/lib-es/helpers/get-wrapped-value-with-link.js.map +1 -1
  907. package/lib-es/helpers/group-entities.js.map +1 -1
  908. package/lib-es/helpers/has-children.js.map +1 -1
  909. package/lib-es/helpers/index.js.map +1 -1
  910. package/lib-es/helpers/inject-banner.js.map +1 -1
  911. package/lib-es/helpers/inject-banners-to-entities.js.map +1 -1
  912. package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.map +1 -1
  913. package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/index.js.map +1 -1
  914. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.map +1 -1
  915. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js.map +1 -1
  916. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js.map +1 -1
  917. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/index.js.map +1 -1
  918. package/lib-es/helpers/inject-multiple-banners/index.js.map +1 -1
  919. package/lib-es/helpers/inject-multiple-banners/inject-multiple-banners.js.map +1 -1
  920. package/lib-es/helpers/is-browser.js.map +1 -1
  921. package/lib-es/helpers/is-filter-entitys-id.js.map +1 -1
  922. package/lib-es/helpers/is-object.js.map +1 -1
  923. package/lib-es/helpers/is-using-relation-image.js.map +1 -1
  924. package/lib-es/helpers/parse-TextBlock.js.map +1 -1
  925. package/lib-es/helpers/parse-interval.js.map +1 -1
  926. package/lib-es/helpers/parse-props-to-display.js.map +1 -1
  927. package/lib-es/helpers/process-data-summary-value.js.map +1 -1
  928. package/lib-es/helpers/remove-extra-items.js.map +1 -1
  929. package/lib-es/helpers/remove-unwanted-characters.js.map +1 -1
  930. package/lib-es/helpers/render-children.js.map +1 -1
  931. package/lib-es/helpers/should-render-waypoint.js.map +1 -1
  932. package/lib-es/helpers/should-show-property.js.map +1 -1
  933. package/lib-es/helpers/sort-response-data.js.map +1 -1
  934. package/lib-es/helpers/split-children.js.map +1 -1
  935. package/lib-es/helpers/update-childrens-parent.js.map +1 -1
  936. package/lib-es/hooks/helpers/RenderComponent.js.map +1 -1
  937. package/lib-es/hooks/helpers/StoreImages.js.map +1 -1
  938. package/lib-es/hooks/helpers/append-gtm-classname.js.map +1 -1
  939. package/lib-es/hooks/helpers/buildPBComponents.js.map +1 -1
  940. package/lib-es/hooks/helpers/check-banner-insertion-set.js.map +1 -1
  941. package/lib-es/hooks/helpers/check-collisions.js.map +1 -1
  942. package/lib-es/hooks/helpers/constants.js.map +1 -1
  943. package/lib-es/hooks/helpers/get-banner-index.js.map +1 -1
  944. package/lib-es/hooks/helpers/get-components-to-insert-by-type.js.map +1 -1
  945. package/lib-es/hooks/helpers/get-lightbox-images.js.map +1 -1
  946. package/lib-es/hooks/helpers/getComponent.js.map +1 -1
  947. package/lib-es/hooks/helpers/getVariant.js.map +1 -1
  948. package/lib-es/hooks/helpers/index.js.map +1 -1
  949. package/lib-es/hooks/helpers/inject-element-components.js.map +1 -1
  950. package/lib-es/hooks/helpers/inject-textblock-banners.js.map +1 -1
  951. package/lib-es/hooks/helpers/insert-banners.js.map +1 -1
  952. package/lib-es/hooks/helpers/update-targetings.js.map +1 -1
  953. package/lib-es/hooks/index.js.map +1 -1
  954. package/lib-es/hooks/use-app-sync-event-hook.js.map +1 -1
  955. package/lib-es/hooks/use-banner-insertion.js.map +1 -1
  956. package/lib-es/hooks/use-check-mobile-screen.js.map +1 -1
  957. package/lib-es/hooks/use-get-entity-schema.js.map +1 -1
  958. package/lib-es/hooks/use-get-entity-schemas-as-obj.js.map +1 -1
  959. package/lib-es/hooks/use-get-image-id-from-relation.js.map +1 -1
  960. package/lib-es/hooks/use-get-images.js.map +1 -1
  961. package/lib-es/hooks/use-get-single-entity-schema.js.map +1 -1
  962. package/lib-es/hooks/use-page-builder.js.map +1 -1
  963. package/lib-es/index.js.map +1 -1
  964. package/lib-es/utils/component-map.js.map +1 -1
  965. package/lib-es/utils/get-class-modifiers.js.map +1 -1
  966. package/lib-es/utils/get-image-data.js.map +1 -1
  967. package/lib-es/utils/get-props-to-display-modifiers.js.map +1 -1
  968. package/lib-es/utils/index.js.map +1 -1
  969. package/lib-es/utils/is-object-empty.js.map +1 -1
  970. package/lib-es/utils/variant-handler.js.map +1 -1
  971. package/lib-es/variants/HeroImage/index.js.map +1 -1
  972. package/lib-es/variants/Infographic/Infographic.js.map +1 -1
  973. package/lib-es/variants/Infographic/index.js.map +1 -1
  974. package/lib-es/variants/Infographic/useInfographic.js.map +1 -1
  975. package/lib-es/variants/LongformGallery/LongformGallery.js.map +1 -1
  976. package/lib-es/variants/LongformGallery/LongformGalleryImage.js.map +1 -1
  977. package/lib-es/variants/LongformGallery/constants.js.map +1 -1
  978. package/lib-es/variants/LongformGallery/helpers/index.js.map +1 -1
  979. package/lib-es/variants/LongformGallery/helpers/parseImageData.js.map +1 -1
  980. package/lib-es/variants/LongformGallery/helpers/separateImages.js.map +1 -1
  981. package/lib-es/variants/LongformGallery/helpers/shouldSkip.js.map +1 -1
  982. package/lib-es/variants/LongformGallery/index.js.map +1 -1
  983. package/lib-es/variants/LongformGallery/useLongformGallery.js.map +1 -1
  984. package/lib-es/variants/LongformRow/index.js.map +1 -1
  985. package/lib-es/variants/ParallaxImageTextRight/index.js.map +1 -1
  986. package/lib-es/variants/SlideSummary/SlideSummary.js.map +1 -1
  987. package/lib-es/variants/SlideSummary/index.js.map +1 -1
  988. package/lib-es/variants/ThumbnailCarousel/ThumbnailCarousel.js.map +1 -1
  989. package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/ThumbnailImage.js.map +1 -1
  990. package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/index.js.map +1 -1
  991. package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/useThumbnailImage.js.map +1 -1
  992. package/lib-es/variants/ThumbnailCarousel/index.js.map +1 -1
  993. package/lib-es/variants/ThumbnailCarousel/useThumbnailCarousel.js.map +1 -1
  994. package/lib-es/variants/index.js.map +1 -1
  995. package/package.json +4 -4
  996. package/src/components/BackToTop/BackToTop.js +6 -11
  997. package/src/components/Card/Card.js +4 -3
  998. package/src/components/Carousel/CarouselImage/CarouselImage.js +3 -1
  999. package/src/components/Carousel/CarouselImage/constants.js +1 -0
  1000. package/src/components/CarouselWrapper/DefaultCarousel.js +2 -0
  1001. package/src/components/ContentGroup/ContentGroupTabs.js +1 -3
  1002. package/src/components/Image/GlobalLightbox/GlobalLightbox.js +3 -3
  1003. package/src/components/Image/GlobalLightbox/NavButton.js +5 -3
  1004. package/src/components/Image/Image.js +1 -0
  1005. package/src/components/ItemList/ItemListNew/ItemListNew.js +1 -4
  1006. package/src/components/List/components/Cards/CardsRender.js +2 -0
  1007. package/src/components/List/components/Full/FullRender.js +2 -1
  1008. package/src/components/Menu/Menu.js +1 -1
  1009. package/src/components/MenuItem/MenuItem.js +2 -9
  1010. package/src/components/SearchFilter/SearchFilter/FiltersList.js +3 -0
  1011. package/src/components/SearchFilter/SearchFilter/MobileFormToolbar.js +1 -1
  1012. package/src/components/SearchFilter/SearchFilter/ResetDesktopForm.js +3 -2
  1013. package/src/components/SearchFilter/SearchFilter/SearchFilter.js +10 -5
  1014. package/src/components/SearchFilter/components/Checkbox.js +3 -1
  1015. package/src/components/SearchFilter/components/TextSearch.js +1 -0
  1016. package/src/components/Video/providers/Vimeo/VimeoProvider.js +0 -1
  1017. package/tests/unit/src/components/BackToTop/BackToTop.test.js +9 -5
  1018. package/tests/unit/src/components/BackToTop/__snapshots__/BackToTop.test.js.snap +1 -1
  1019. package/tests/unit/src/components/Carousel/CarouselImage/__snapshots__/CarouselImage.test.js.snap +1 -1
  1020. package/tests/unit/src/components/Carousel/__snapshots__/Carousel.test.js.snap +1 -1
  1021. package/tests/unit/src/components/ContentGroup/__snapshots__/ContentGroupTabs.test.js.snap +4 -4
  1022. package/tests/unit/src/components/ItemList/__snapshots__/ItemListNew.test.js.snap +0 -2
  1023. package/tests/unit/src/components/MenuItem/__snapshots__/MenuItem.test.js.snap +0 -5
  1024. package/tests/unit/src/components/SearchFilter/SearchFilter/__snapshots__/MobileFormToolbar.test.js.snap +1 -1
  1025. package/tests/unit/src/components/SearchFilter/SearchFilter/__snapshots__/ResetDesktopForm.test.js.snap +1 -1
  1026. package/tests/unit/src/components/SearchFilter/SearchFilter/__snapshots__/SearchFilter.test.js.snap +19 -17
  1027. package/tests/unit/src/components/SearchFilter/components/__snapshots__/Select.test.js.snap +1 -0
  1028. package/tests/unit/src/components/SearchFilter/components/__snapshots__/TextSearch.test.js.snap +1 -0
  1029. package/tests/unit/src/components/SearchFilterSort/__snapshots__/SearchFilterSort.test.js.snap +1 -0
  1030. package/tests/unit/src/components/Video/providers/Vimeo/__snapshots__/Vimeo.test.js.snap +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"SearchFilterContainer.js","names":["_react","_interopRequireWildcard","require","_nextjsComponents","_router","_client","_propTypes","_interopRequireDefault","_queryString","_SearchFilter","_HOC","_query","_helpers","_helpers2","_constants","_constants2","_searchFilterReducer","_hooks","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","getFiltersUrlQuery","query","listName","updatedQuery","listKey","concat","keys","forEach","queryKey","isListKey","indexOf","decodedQueryValue","Array","isArray","map","value","decodeURIComponent","strippedKey","substring","length","SearchFilterContainer","_ref","entity","url","filters","name","isCollapsedOnResponsive","groupAfterMobile","groupAfterDesktop","filterBy","filterByProperty","shouldAddFilters","listComponentName","parent","_useContext","useContext","MainContext","isPreview","router","useRouter","asPath","searchFilterRef","useRef","_useState","useState","_useState2","_slicedToArray2","key","setKey","_useState3","_useState4","displaySearchFilter","setDisplaySearchFilter","_useState5","_useState6","urlPath","setUrlPath","_useReducer","useReducer","searchFilterReducer","_useReducer2","filterValues","dispatch","_parseUrl","parseUrl","currentUrl","parentId","itemId","parentEntity","itemEntity","useEffect","_useGetEntitySchemasA","useGetEntitySchemasAsObj","_useGetEntitySchemasA2","data","mainSchemas","schemasLoading","loading","_mainSchemas$parentEn","parentSchema","_mainSchemas$entity","filterEntitySchema","_ref2","_ref2$actions","actions","getAction","getPublished","inheritedFilters","getInheritedFilters","queryProps","getQueryProps","_useQuery","useQuery","generateSingleItemQuery","variables","id","skip","_useQuery$data","_useQuery$data2","parentData","entityData","parentQueryLoading","_getUpdatedFilterBy","getUpdatedFilterBy","updatedFilterBy","updatedFilterByProperty","action","getSearchPublishedContent","RAW_RESULTS","_getFilterRangesAndCh","getFilterRangesAndCheckboxesValues","_getFilterRangesAndCh2","checkboxSelectValues","rangeValues","_getEntityData","getEntityData","docType","filtersQuery","buildFiltersQuery","queryKeys","rawQueryStringified","buildRawQueryStringified","_useQuery2","limit","error","message","_ref3","_ref3$searchPublished","searchPublishedContent","_ref3$searchPublished2","_ref3$searchPublished3","rawResults","_ref3$searchPublished4","filterData","aggregations","newValues","getFilterValues","shouldSearch","type","handleSearch","newQuery","hashBit","split","parsedHashBit","scrollToFirstList","baseQuery","push","shallow","scroll","then","Date","now","newUrl","buildNewUrl","_document$getElements","document","getElementsByClassName","_document$getElements2","list","shouldScrollToFirstList","window","scrollTo","left","top","pageYOffset","SCROLL_OFFSET","getBoundingClientRect","createElement","setAppliedFilters","hasUrl","propTypes","PropTypes","string","array","isRequired","bool","number","object","defaultProps","_default","exports","withTitle"],"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 getFilterValues,\n getFilterRangesAndCheckboxesValues,\n getUpdatedFilterBy\n} from './helpers';\nimport {\n getEntityData,\n getInheritedFilters,\n getQueryProps,\n buildRawQueryStringified,\n buildFiltersQuery\n} 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,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAC,sBAAA,CAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AACA,IAAAO,aAAA,GAAAF,sBAAA,CAAAL,OAAA;AACA,IAAAQ,IAAA,GAAAR,OAAA;AACA,IAAAS,MAAA,GAAAT,OAAA;AACA,IAAAU,QAAA,GAAAV,OAAA;AAMA,IAAAW,SAAA,GAAAX,OAAA;AAOA,IAAAY,UAAA,GAAAZ,OAAA;AACA,IAAAa,WAAA,GAAAb,OAAA;AACA,IAAAc,oBAAA,GAAAT,sBAAA,CAAAL,OAAA;AACA,IAAAe,MAAA,GAAAf,OAAA;AAAuD,SAAAgB,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAlB,wBAAAkB,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,g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I;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;AAAC,IAAAkJ,QAAA,GAAAC,OAAA,cAEa,IAAAC,cAAS,EAACjK,qBAAqB,CAAC"}
1
+ {"version":3,"file":"SearchFilterContainer.js","names":["_react","_interopRequireWildcard","require","_nextjsComponents","_router","_client","_propTypes","_interopRequireDefault","_queryString","_SearchFilter","_HOC","_query","_helpers","_helpers2","_constants","_constants2","_searchFilterReducer","_hooks","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","getFiltersUrlQuery","query","listName","updatedQuery","listKey","concat","keys","forEach","queryKey","isListKey","indexOf","decodedQueryValue","Array","isArray","map","value","decodeURIComponent","strippedKey","substring","length","SearchFilterContainer","_ref","entity","url","filters","name","isCollapsedOnResponsive","groupAfterMobile","groupAfterDesktop","filterBy","filterByProperty","shouldAddFilters","listComponentName","parent","_useContext","useContext","MainContext","isPreview","router","useRouter","asPath","searchFilterRef","useRef","_useState","useState","_useState2","_slicedToArray2","key","setKey","_useState3","_useState4","displaySearchFilter","setDisplaySearchFilter","_useState5","_useState6","urlPath","setUrlPath","_useReducer","useReducer","searchFilterReducer","_useReducer2","filterValues","dispatch","_parseUrl","parseUrl","currentUrl","parentId","itemId","parentEntity","itemEntity","useEffect","_useGetEntitySchemasA","useGetEntitySchemasAsObj","_useGetEntitySchemasA2","data","mainSchemas","schemasLoading","loading","_mainSchemas$parentEn","parentSchema","_mainSchemas$entity","filterEntitySchema","_ref2","_ref2$actions","actions","getAction","getPublished","inheritedFilters","getInheritedFilters","queryProps","getQueryProps","_useQuery","useQuery","generateSingleItemQuery","variables","id","skip","_useQuery$data","_useQuery$data2","parentData","entityData","parentQueryLoading","_getUpdatedFilterBy","getUpdatedFilterBy","updatedFilterBy","updatedFilterByProperty","action","getSearchPublishedContent","RAW_RESULTS","_getFilterRangesAndCh","getFilterRangesAndCheckboxesValues","_getFilterRangesAndCh2","checkboxSelectValues","rangeValues","_getEntityData","getEntityData","docType","filtersQuery","buildFiltersQuery","queryKeys","rawQueryStringified","buildRawQueryStringified","_useQuery2","limit","error","message","_ref3","_ref3$searchPublished","searchPublishedContent","_ref3$searchPublished2","_ref3$searchPublished3","rawResults","_ref3$searchPublished4","filterData","aggregations","newValues","getFilterValues","shouldSearch","type","handleSearch","newQuery","hashBit","split","parsedHashBit","scrollToFirstList","baseQuery","push","shallow","scroll","then","Date","now","newUrl","buildNewUrl","_document$getElements","document","getElementsByClassName","_document$getElements2","list","shouldScrollToFirstList","window","scrollTo","left","top","pageYOffset","SCROLL_OFFSET","getBoundingClientRect","createElement","setAppliedFilters","hasUrl","propTypes","PropTypes","string","array","isRequired","bool","number","object","defaultProps","_default","exports","withTitle"],"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 getFilterValues,\n getFilterRangesAndCheckboxesValues,\n getUpdatedFilterBy\n} from './helpers';\nimport {\n getEntityData,\n getInheritedFilters,\n getQueryProps,\n buildRawQueryStringified,\n buildFiltersQuery\n} 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,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAC,sBAAA,CAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AACA,IAAAO,aAAA,GAAAF,sBAAA,CAAAL,OAAA;AACA,IAAAQ,IAAA,GAAAR,OAAA;AACA,IAAAS,MAAA,GAAAT,OAAA;AACA,IAAA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ACE,UAAU;EACjCpJ,uBAAuB,EAAEiJ,qBAAS,CAACI,IAAI;EACvCpJ,gBAAgB,EAAEgJ,qBAAS,CAACK,MAAM;EAClCpJ,iBAAiB,EAAE+I,qBAAS,CAACK,MAAM;EACnCnJ,QAAQ,EAAE8I,qBAAS,CAACE,KAAK;EACzB/I,gBAAgB,EAAE6I,qBAAS,CAACE,KAAK;EACjC9I,gBAAgB,EAAE4I,qBAAS,CAACI,IAAI;EAChC/I,iBAAiB,EAAE2I,qBAAS,CAACC,MAAM;EACnC3I,MAAM,EAAE0I,qBAAS,CAACM;AACpB,CAAC;AAED7J,qBAAqB,CAAC8J,YAAY,GAAG;EACnC3J,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;AAAC,IAAAkJ,QAAA,GAAAC,OAAA,cAEa,IAAAC,cAAS,EAACjK,qBAAqB,CAAC","ignoreList":[]}
@@ -1,26 +1,26 @@
1
1
  "use strict";
2
2
 
3
3
  require("core-js/modules/es.array.iterator.js");
4
+ require("core-js/modules/es.object.define-property.js");
5
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
4
6
  require("core-js/modules/es.string.iterator.js");
5
7
  require("core-js/modules/es.weak-map.js");
6
8
  require("core-js/modules/web.dom-collections.iterator.js");
7
- require("core-js/modules/es.object.define-property.js");
8
- require("core-js/modules/es.object.get-own-property-descriptor.js");
9
9
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
10
10
  var _typeof = require("@babel/runtime/helpers/typeof");
11
11
  Object.defineProperty(exports, "__esModule", {
12
12
  value: true
13
13
  });
14
14
  exports["default"] = void 0;
15
- require("core-js/modules/es.array.map.js");
16
- require("core-js/modules/es.array.sort.js");
17
- require("core-js/modules/es.array.filter.js");
18
- require("core-js/modules/es.object.to-string.js");
19
15
  require("core-js/modules/es.array.concat.js");
16
+ require("core-js/modules/es.array.filter.js");
20
17
  require("core-js/modules/es.array.for-each.js");
21
- require("core-js/modules/web.dom-collections.for-each.js");
22
18
  require("core-js/modules/es.array.includes.js");
19
+ require("core-js/modules/es.array.map.js");
20
+ require("core-js/modules/es.array.sort.js");
21
+ require("core-js/modules/es.object.to-string.js");
23
22
  require("core-js/modules/es.string.includes.js");
23
+ require("core-js/modules/web.dom-collections.for-each.js");
24
24
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
25
25
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
26
26
  var _react = _interopRequireWildcard(require("react"));
@@ -100,7 +100,7 @@ var Checkbox = function Checkbox(_ref) {
100
100
  role: "button",
101
101
  className: "see-more",
102
102
  onClick: handleCheckboxOptions,
103
- "aria-label": shouldDisplayMore ? "See ".concat(_constants.MORE, " options") : "See ".concat(_constants.LESS, " options")
103
+ "aria-label": shouldDisplayMore ? "See ".concat(_constants.MORE, " ").concat(label, " options") : "See ".concat(_constants.LESS, " ").concat(label, " options")
104
104
  }, shouldDisplayMore ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("i", null, /*#__PURE__*/_react["default"].createElement(_fa.FaChevronDown, {
105
105
  className: "inline-icon"
106
106
  })), " See ".concat(_constants.MORE)) : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("i", null, /*#__PURE__*/_react["default"].createElement(_fa.FaChevronUp, {
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_lodash","_checkboxes","_fa","_HOC","_helpers","_constants","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","Checkbox","_ref","data","prop","updateFilterValues","filterValues","label","elementTitle","shouldSearch","displayFilterCount","_useState","useState","_useState2","_slicedToArray2","checkboxLimit","setCheckboxLimit","handleCheckboxOptions","LIMIT_MIN","_defineProperty2","LIMIT_MAX","checkboxQueryParams","decodeValue","map","val","multiple","sortedValues","buckets","_ref2","key","count","doc_count","optionLabel","concat","filter","Boolean","sort","forEach","value","push","upperFirst","name","checked","includes","id","disabled","shouldDisplayMore","createElement","Fragment","Checkboxes","className","options","onChange","_ref3","eData","newCheckboxValues","_ref4","_ref5","length","role","onClick","MORE","LESS","FaChevronDown","FaChevronUp","propTypes","PropTypes","object","isRequired","string","func","bool","defaultProps","_default","exports","withTitle"],"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":";;;;;;;;;;;;;;;;;;;;;;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E9E,MAAA,YAAA8E,aAAA,CAACvE,GAAA,CAAAuF,aAAa;IAACb,SAAS,EAAC;EAAa,CAAE,CACvC,CAAC,UAAAjB,MAAA,CACK4B,eAAI,CACb,CAAC,gBAEH5F,MAAA,YAAA8E,aAAA,CAAA9E,MAAA,YAAA+E,QAAA,qBACE/E,MAAA,YAAA8E,aAAA,yBACE9E,MAAA,YAAA8E,aAAA,CAACvE,GAAA,CAAAwF,WAAW;IAACd,SAAS,EAAC;EAAa,CAAE,CACrC,CAAC,UAAAjB,MAAA,CACK6B,eAAI,CACb,CAED,CAEP,CAAC;AAEP,CAAC;AAED7D,QAAQ,CAACgE,SAAS,GAAG;EACnB9D,IAAI,EAAE+D,qBAAS,CAACC,MAAM,CAACC,UAAU;EACjChE,IAAI,EAAE8D,qBAAS,CAACG,MAAM,CAACD,UAAU;EACjC9D,YAAY,EAAE4D,qBAAS,CAACC,MAAM,CAACC,UAAU;EACzC/D,kBAAkB,EAAE6D,qBAAS,CAACI,IAAI,CAACF,UAAU;EAC7C3D,YAAY,EAAEyD,qBAAS,CAACK,IAAI;EAC5BhE,KAAK,EAAE2D,qBAAS,CAACG,MAAM;EACvB7D,YAAY,EAAE0D,qBAAS,CAACG,MAAM;EAC9B3D,kBAAkB,EAAEwD,qBAAS,CAACK;AAChC,CAAC;AAEDtE,QAAQ,CAACuE,YAAY,GAAG;EACtB/D,YAAY,EAAE,KAAK;EACnBF,KAAK,EAAE,EAAE;EACTC,YAAY,EAAE,EAAE;EAChBE,kBAAkB,EAAE;AACtB,CAAC;AAAC,IAAA+D,QAAA,GAAAC,OAAA,cAEa,IAAAC,cAAS,EAAC1E,QAAQ,CAAC"}
1
+ {"version":3,"file":"Checkbox.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_lodash","_checkboxes","_fa","_HOC","_helpers","_constants","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","Checkbox","_ref","data","prop","updateFilterValues","filterValues","label","elementTitle","shouldSearch","displayFilterCount","_useState","useState","_useState2","_slicedToArray2","checkboxLimit","setCheckboxLimit","handleCheckboxOptions","LIMIT_MIN","_defineProperty2","LIMIT_MAX","checkboxQueryParams","decodeValue","map","val","multiple","sortedValues","buckets","_ref2","key","count","doc_count","optionLabel","concat","filter","Boolean","sort","forEach","value","push","upperFirst","name","checked","includes","id","disabled","shouldDisplayMore","createElement","Fragment","Checkboxes","className","options","onChange","_ref3","eData","newCheckboxValues","_ref4","_ref5","length","role","onClick","MORE","LESS","FaChevronDown","FaChevronUp","propTypes","PropTypes","object","isRequired","string","func","bool","defaultProps","_default","exports","withTitle"],"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={\n shouldDisplayMore ? `See ${MORE} ${label} options` : `See ${LESS} ${label} options`\n }>\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,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAA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E,aAAA,CAACvE,GAAA,CAAAuF,aAAa;IAACb,SAAS,EAAC;EAAa,CAAE,CACvC,CAAC,UAAAjB,MAAA,CACK4B,eAAI,CACb,CAAC,gBAEH5F,MAAA,YAAA8E,aAAA,CAAA9E,MAAA,YAAA+E,QAAA,qBACE/E,MAAA,YAAA8E,aAAA,yBACE9E,MAAA,YAAA8E,aAAA,CAACvE,GAAA,CAAAwF,WAAW;IAACd,SAAS,EAAC;EAAa,CAAE,CACrC,CAAC,UAAAjB,MAAA,CACK6B,eAAI,CACb,CAED,CAEP,CAAC;AAEP,CAAC;AAED7D,QAAQ,CAACgE,SAAS,GAAG;EACnB9D,IAAI,EAAE+D,qBAAS,CAACC,MAAM,CAACC,UAAU;EACjChE,IAAI,EAAE8D,qBAAS,CAACG,MAAM,CAACD,UAAU;EACjC9D,YAAY,EAAE4D,qBAAS,CAACC,MAAM,CAACC,UAAU;EACzC/D,kBAAkB,EAAE6D,qBAAS,CAACI,IAAI,CAACF,UAAU;EAC7C3D,YAAY,EAAEyD,qBAAS,CAACK,IAAI;EAC5BhE,KAAK,EAAE2D,qBAAS,CAACG,MAAM;EACvB7D,YAAY,EAAE0D,qBAAS,CAACG,MAAM;EAC9B3D,kBAAkB,EAAEwD,qBAAS,CAACK;AAChC,CAAC;AAEDtE,QAAQ,CAACuE,YAAY,GAAG;EACtB/D,YAAY,EAAE,KAAK;EACnBF,KAAK,EAAE,EAAE;EACTC,YAAY,EAAE,EAAE;EAChBE,kBAAkB,EAAE;AACtB,CAAC;AAAC,IAAA+D,QAAA,GAAAC,OAAA,cAEa,IAAAC,cAAS,EAAC1E,QAAQ,CAAC","ignoreList":[]}
@@ -1,21 +1,21 @@
1
1
  "use strict";
2
2
 
3
- require("core-js/modules/es.object.keys.js");
4
3
  require("core-js/modules/es.symbol.js");
5
4
  require("core-js/modules/es.array.filter.js");
6
- require("core-js/modules/es.object.get-own-property-descriptor.js");
7
- require("core-js/modules/es.object.get-own-property-descriptors.js");
8
5
  require("core-js/modules/es.object.define-properties.js");
9
6
  require("core-js/modules/es.object.define-property.js");
7
+ require("core-js/modules/es.object.get-own-property-descriptor.js");
8
+ require("core-js/modules/es.object.get-own-property-descriptors.js");
9
+ require("core-js/modules/es.object.keys.js");
10
10
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
11
11
  Object.defineProperty(exports, "__esModule", {
12
12
  value: true
13
13
  });
14
14
  exports["default"] = void 0;
15
+ require("core-js/modules/es.array.concat.js");
15
16
  require("core-js/modules/es.array.for-each.js");
16
17
  require("core-js/modules/es.object.to-string.js");
17
18
  require("core-js/modules/web.dom-collections.for-each.js");
18
- require("core-js/modules/es.array.concat.js");
19
19
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
20
20
  var _react = _interopRequireDefault(require("react"));
21
21
  var _propTypes = _interopRequireDefault(require("prop-types"));
@@ -1 +1 @@
1
- {"version":3,"file":"Range.js","names":["_react","_interopRequireDefault","require","_propTypes","_lodash","_rangeFilter","_router","_select","_queryString","_hooks","_helpers","_decodeEncode","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","Range","_ref","rangeInterval","label","entity","propsToDisplay","dataAggregations","updateFilterValues","filterValues","shouldSearch","elementTitle","router","useRouter","debounceAmount","_parseUrl","parseUrl","decodeValue","asPath","query","hasMultipleOptions","initialRangeOption","getIntersectedProp","rangeOption","selectedOption","rangeValue","_useGetSingleEntitySc","useGetSingleEntitySchema","_useGetSingleEntitySc2","data","_useGetSingleEntitySc3","_useGetSingleEntitySc4","getEntitySchema","loading","options","getSelectOptions","_calculateMinMax","calculateMinMax","min","max","minValue","maxValue","valueToUse","handleChange","debounce","option","value","createElement","Fragment","className","id","required","onChange","_ref2","updatedOptions","prop","_filterValues$prop","eMin","eMax","initValue","getRangeValue","key","concat","name","_ref3","propTypes","PropTypes","array","isRequired","string","object","func","bool","number","defaultProps","_default","exports"],"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,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,OAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,YAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,QAAA,GAAAR,OAAA;AACA,IAAAS,aAAA,GAAAT,OAAA;AAAuD,SAAAU,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CA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ACK,IAAI,CAACH,UAAU;EAC7C1D,YAAY,EAAEwD,qBAAS,CAACM,IAAI;EAC5BrE,aAAa,EAAE+D,qBAAS,CAACO,MAAM;EAC/BrE,KAAK,EAAE8D,qBAAS,CAACG,MAAM;EACvB1D,YAAY,EAAEuD,qBAAS,CAACG,MAAM;EAC9B9D,gBAAgB,EAAE2D,qBAAS,CAACI,MAAM,CAACF;AACrC,CAAC;AAEDnE,KAAK,CAACyE,YAAY,GAAG;EACnBhE,YAAY,EAAE,KAAK;EACnBP,aAAa,EAAE,CAAC;EAChBC,KAAK,EAAE,EAAE;EACTO,YAAY,EAAE;AAChB,CAAC;AAAC,IAAAgE,QAAA,GAAAC,OAAA,cAEa3E,KAAK"}
1
+ {"version":3,"file":"Range.js","names":["_react","_interopRequireDefault","require","_propTypes","_lodash","_rangeFilter","_router","_select","_queryString","_hooks","_helpers","_decodeEncode","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","Range","_ref","rangeInterval","label","entity","propsToDisplay","dataAggregations","updateFilterValues","filterValues","shouldSearch","elementTitle","router","useRouter","debounceAmount","_parseUrl","parseUrl","decodeValue","asPath","query","hasMultipleOptions","initialRangeOption","getIntersectedProp","rangeOption","selectedOption","rangeValue","_useGetSingleEntitySc","useGetSingleEntitySchema","_useGetSingleEntitySc2","data","_useGetSingleEntitySc3","_useGetSingleEntitySc4","getEntitySchema","loading","options","getSelectOptions","_calculateMinMax","calculateMinMax","min","max","minValue","maxValue","valueToUse","handleChange","debounce","option","value","createElement","Fragment","className","id","required","onChange","_ref2","updatedOptions","prop","_filterValues$prop","eMin","eMax","initValue","getRangeValue","key","concat","name","_ref3","propTypes","PropTypes","array","isRequired","string","object","func","bool","number","defaultProps","_default","exports"],"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,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,OAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,YAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,QAAA,GAAAR,OAAA;AACA,IAAAS,aAAA,GAAAT,OAAA;AAAuD,SAAAU,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,MAAA,WAAAN,CAAA,WAAAE,MAAA,CAAA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AC/BrE,KAAK,EAAE8D,qBAAS,CAACG,MAAM;EACvB1D,YAAY,EAAEuD,qBAAS,CAACG,MAAM;EAC9B9D,gBAAgB,EAAE2D,qBAAS,CAACI,MAAM,CAACF;AACrC,CAAC;AAEDnE,KAAK,CAACyE,YAAY,GAAG;EACnBhE,YAAY,EAAE,KAAK;EACnBP,aAAa,EAAE,CAAC;EAChBC,KAAK,EAAE,EAAE;EACTO,YAAY,EAAE;AAChB,CAAC;AAAC,IAAAgE,QAAA,GAAAC,OAAA,cAEa3E,KAAK","ignoreList":[]}
@@ -7,11 +7,11 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports["default"] = void 0;
9
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
- require("core-js/modules/es.array.sort.js");
10
+ require("core-js/modules/es.array.concat.js");
11
11
  require("core-js/modules/es.array.filter.js");
12
- require("core-js/modules/es.object.to-string.js");
13
12
  require("core-js/modules/es.array.map.js");
14
- require("core-js/modules/es.array.concat.js");
13
+ require("core-js/modules/es.array.sort.js");
14
+ require("core-js/modules/es.object.to-string.js");
15
15
  var _react = _interopRequireDefault(require("react"));
16
16
  var _propTypes = _interopRequireDefault(require("prop-types"));
17
17
  var _select = _interopRequireDefault(require("@blaze-react/select"));
@@ -1 +1 @@
1
- {"version":3,"file":"Select.js","names":["_react","_interopRequireDefault","require","_propTypes","_select","_constants","SelectFilter","_ref","data","label","prop","updateFilterValues","filterValues","shouldSearch","displayLabelAsPlaceholder","displayFilterCount","elementTitle","filterValue","disabledOptions","_ref2","_ref2$buckets","buckets","options","map","_ref3","key","count","doc_count","push","optionLabel","concat","filter","Boolean","sort","labelText","labelToUse","defaultTextValue","DEFAULT_OPTION","createElement","Fragment","className","value","id","name","onChange","_ref4","valueToUse","_defineProperty2","disabled","propTypes","PropTypes","object","isRequired","string","func","bool","defaultProps","_default","exports"],"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,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;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,EAAEqC,qBAAS,CAACK,IAAI;EAC5B9C,KAAK,EAAEyC,qBAAS,CAACG,MAAM;EACvBrC,YAAY,EAAEkC,qBAAS,CAACG,MAAM;EAE9BvC,yBAAyB,EAAEoC,qBAAS,CAACK,IAAI;EACzCxC,kBAAkB,EAAEmC,qBAAS,CAACK;AAChC,CAAC;AAEDjD,YAAY,CAACkD,YAAY,GAAG;EAC1B5C,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;AAAC,IAAA0C,QAAA,GAAAC,OAAA,cAEapD,YAAY"}
1
+ {"version":3,"file":"Select.js","names":["_react","_interopRequireDefault","require","_propTypes","_select","_constants","SelectFilter","_ref","data","label","prop","updateFilterValues","filterValues","shouldSearch","displayLabelAsPlaceholder","displayFilterCount","elementTitle","filterValue","disabledOptions","_ref2","_ref2$buckets","buckets","options","map","_ref3","key","count","doc_count","push","optionLabel","concat","filter","Boolean","sort","labelText","labelToUse","defaultTextValue","DEFAULT_OPTION","createElement","Fragment","className","value","id","name","onChange","_ref4","valueToUse","_defineProperty2","disabled","propTypes","PropTypes","object","isRequired","string","func","bool","defaultProps","_default","exports"],"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,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,OAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AAEA,IAAMI,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAUZ;EAAA,IATJC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IACJC,KAAK,GAAAF,IAAA,CAALE,KAAK;IACLC,IAAI,GAAAH,IAAA,CAAJG,IAAI;IACJC,kBAAkB,GAAAJ,IAAA,CAAlBI,kBAAkB;IAClBC,YAAY,GAAAL,IAAA,CAAZK,YAAY;IACZC,YAAY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EAChBF,yBAAyB,EAAE,KAAK;EAChCC,kBAAkB,EAAE;AACtB,CAAC;AAAC,IAAA0C,QAAA,GAAAC,OAAA,cAEapD,YAAY","ignoreList":[]}
@@ -36,6 +36,7 @@ var TextSearch = function TextSearch(_ref) {
36
36
  })), /*#__PURE__*/_react["default"].createElement("button", {
37
37
  type: "button",
38
38
  className: "icon-button icon-button--search",
39
+ "aria-label": "Search",
39
40
  onClick: function onClick(e) {
40
41
  e.preventDefault();
41
42
  updateFilterValues((0, _defineProperty2["default"])({}, _constants.SEARCH_TERM, searchValue), true);
@@ -1 +1 @@
1
- {"version":3,"file":"TextSearch.js","names":["_react","_interopRequireDefault","require","_propTypes","_input","_md","_constants","TextSearch","_ref","label","searchValue","updateFilterValues","elementTitle","createElement","Fragment","className","id","SEARCH_TERM","value","placeholder","onChange","_ref2","eValue","_defineProperty2","type","onClick","e","preventDefault","MdSearch","propTypes","PropTypes","string","isRequired","func","defaultProps","_default","exports"],"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,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,MAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,GAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAEA,IAAMK,UAAU,GAAG,SAAbA,UAAUA,CAAAC,IAAA;EAAA,IAAMC,KAAK,GAAAD,IAAA,CAALC,KAAK;IAAEC,WAAW,GAAAF,IAAA,CAAXE,WAAW;IAAEC,kBAAkB,GAAAH,IAAA,CAAlBG,kBAAkB;IAAEC,YAAY,GAAAJ,IAAA,CAAZI,YAAY;EAAA,oBACxEZ,MAAA,YAAAa,aAAA,CAAAb,MAAA,YAAAc,QAAA,QACGF,YAAY,iBAAIZ,MAAA,YAAAa,aAAA;IAAKE,SAAS,EAAC;EAA0B,GAAEH,YAAkB,CAAC,eAC/EZ,MAAA,YAAAa,aAAA;IAAKE,SAAS,EAAC;EAAQ,gBACrBf,MAAA,YAAAa,aAAA;IAAKE,SAAS,EAAC;EAAiB,gBAC9Bf,MAAA,YAAAa,aAAA;IAAKE,SAAS,EAAC;EAAiD,gBAC9Df,MAAA,YAAAa,aAAA,CAACT,MAAA,WAAK;IACJY,EAAE,EAAEC,sBAAY;IAChBC,KAAK,EAAER,WAAY;IACnBS,WAAW,EAAEV,KAAK,IAAI,QAAS;IAC/BW,QAAQ,EAAE,SAAAA,SAAAC,KAAA,EAAuB;MAAA,IAAbC,MAAM,GAAAD,KAAA,CAAbH,KAAK;MAChBP,kBAAkB,KAAAY,gBAAA,iBAAIN,sBAAW,EAAGK,MAAM,GAAI,KAAK,CAAC;IACtD;EAAE,CACH,CACE,CAAC,eACNtB,MAAA,YAAAa,aAAA;IACEW,IAAI,EAAC,QAAQ;IACbT,SAAS,EAAC,iCAAiC;IAC3CU,OAAO,EAAE,SAAAA,QAAAC,CAAC,EAAI;MACZA,CAAC,CAACC,cAAc,CAAC,CAAC;MAClBhB,kBAAkB,KAAAY,gBAAA,iBAAIN,sBAAW,EAAGP,WAAW,GAAI,IAAI,CAAC;IAC1D;EAAE,gBACFV,MAAA,YAAAa,aAAA,yBACEb,MAAA,YAAAa,aAAA,CAACR,GAAA,CAAAuB,QAAQ,MAAE,CACV,CACG,CACL,CACF,CACL,CAAC;AAAA,CACJ;AAEDrB,UAAU,CAACsB,SAAS,GAAG;EACrBnB,WAAW,EAAEoB,qBAAS,CAACC,MAAM,CAACC,UAAU;EACxCrB,kBAAkB,EAAEmB,qBAAS,CAACG,IAAI,CAACD,UAAU;EAC7CpB,YAAY,EAAEkB,qBAAS,CAACC,MAAM;EAC9BtB,KAAK,EAAEqB,qBAAS,CAACC;AACnB,CAAC;AAEDxB,UAAU,CAAC2B,YAAY,GAAG;EACxBtB,YAAY,EAAE,EAAE;EAChBH,KAAK,EAAE;AACT,CAAC;AAAC,IAAA0B,QAAA,GAAAC,OAAA,cAEa7B,UAAU"}
1
+ {"version":3,"file":"TextSearch.js","names":["_react","_interopRequireDefault","require","_propTypes","_input","_md","_constants","TextSearch","_ref","label","searchValue","updateFilterValues","elementTitle","createElement","Fragment","className","id","SEARCH_TERM","value","placeholder","onChange","_ref2","eValue","_defineProperty2","type","onClick","e","preventDefault","MdSearch","propTypes","PropTypes","string","isRequired","func","defaultProps","_default","exports"],"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 aria-label=\"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,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,MAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,GAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAEA,IAAMK,UAAU,GAAG,SAAbA,UAAUA,CAAAC,IAAA;EAAA,IAAMC,KAAK,GAAAD,IAAA,CAALC,KAAK;IAAEC,WAAW,GAAAF,IAAA,CAAXE,WAAW;IAAEC,kBAAkB,GAAAH,IAAA,CAAlBG,kBAAkB;IAAEC,YAAY,GAAAJ,IAAA,CAAZI,YAAY;EAAA,oBACxEZ,MAAA,YAAAa,aAAA,CAAAb,MAAA,YAAAc,QAAA,QACGF,YAAY,iBAAIZ,MAAA,YAAAa,aAAA;IAAKE,SAAS,EAAC;EAA0B,GAAEH,YAAkB,CAAC,eAC/EZ,MAAA,YAAAa,aAAA;IAAKE,SAAS,EAAC;EAAQ,gBACrBf,MAAA,YAAAa,aAAA;IAAKE,SAAS,EAAC;EAAiB,gBAC9Bf,MAAA,YAAAa,aAAA;IAAKE,SAAS,EAAC;EAAiD,gBAC9Df,MAAA,YAAAa,aAAA,CAACT,MAAA,WAAK;IACJY,EAAE,EAAEC,sBAAY;IAChBC,KAAK,EAAER,WAAY;IACnBS,WAAW,EAAEV,KAAK,IAAI,QAAS;IAC/BW,QAAQ,EAAE,SAAAA,SAAAC,KAAA,EAAuB;MAAA,IAAbC,MAAM,GAAAD,KAAA,CAAbH,KAAK;MAChBP,kBAAkB,KAAAY,gBAAA,iBAAIN,sBAAW,EAAGK,MAAM,GAAI,KAAK,CAAC;IACtD;EAAE,CACH,CACE,CAAC,eACNtB,MAAA,YAAAa,aAAA;IACEW,IAAI,EAAC,QAAQ;IACbT,SAAS,EAAC,iCAAiC;IAC3C,cAAW,QAAQ;IACnBU,OAAO,EAAE,SAAAA,QAAAC,CAAC,EAAI;MACZA,CAAC,CAACC,cAAc,CAAC,CAAC;MAClBhB,kBAAkB,KAAAY,gBAAA,iBAAIN,sBAAW,EAAGP,WAAW,GAAI,IAAI,CAAC;IAC1D;EAAE,gBACFV,MAAA,YAAAa,aAAA,yBACEb,MAAA,YAAAa,aAAA,CAACR,GAAA,CAAAuB,QAAQ,MAAE,CACV,CACG,CACL,CACF,CACL,CAAC;AAAA,CACJ;AAEDrB,UAAU,CAACsB,SAAS,GAAG;EACrBnB,WAAW,EAAEoB,qBAAS,CAACC,MAAM,CAACC,UAAU;EACxCrB,kBAAkB,EAAEmB,qBAAS,CAACG,IAAI,CAACD,UAAU;EAC7CpB,YAAY,EAAEkB,qBAAS,CAACC,MAAM;EAC9BtB,KAAK,EAAEqB,qBAAS,CAACC;AACnB,CAAC;AAEDxB,UAAU,CAAC2B,YAAY,GAAG;EACxBtB,YAAY,EAAE,EAAE;EAChBH,KAAK,EAAE;AACT,CAAC;AAAC,IAAA0B,QAAA,GAAAC,OAAA,cAEa7B,UAAU","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_TextSearch","_interopRequireDefault","require","_Checkbox","_Select","_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,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,OAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,MAAA,GAAAJ,sBAAA,CAAAC,OAAA"}
1
+ {"version":3,"file":"index.js","names":["_TextSearch","_interopRequireDefault","require","_Checkbox","_Select","_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,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,OAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,MAAA,GAAAJ,sBAAA,CAAAC,OAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","names":["CHECKBOX","exports","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","concat","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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S","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","concat","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,IAAMA,QAAQ,GAAAC,OAAA,CAAAD,QAAA,GAAG,UAAU;AAC3B,IAAME,MAAM,GAAAD,OAAA,CAAAC,MAAA,GAAG,QAAQ;AACvB,IAAMC,WAAW,GAAAF,OAAA,CAAAE,WAAA,GAAG,aAAa;AACjC,IAAMC,WAAW,GAAAH,OAAA,CAAAG,WAAA,GAAG,aAAa;AACjC,IAAMC,IAAI,GAAAJ,OAAA,CAAAI,IAAA,GAAGC,OAAO,CAACC,GAAG,CAACC,gCAAgC,IAAI,GAAG;AAChE,IAAMC,OAAO,GAAAR,OAAA,CAAAQ,OAAA,GAAG,SAAS;AACzB,IAAMC,WAAW,GAAAT,OAAA,CAAAS,WAAA,GAAG,YAAY;AAChC,IAAMC,cAAc,GAAAV,OAAA,CAAAU,cAAA,GAAG,KAAK;AAC5B,IAAMC,cAAc,GAAAX,OAAA,CAAAW,cAAA,GAAG,CAAC,KAAK,EAAE,kBAAkB,CAAC;AAClD,IAAMC,KAAK,GAAAZ,OAAA,CAAAY,KAAA,G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C/DS,eAAe,KAAAN,MAAA,CAAKH,yBAAyB,qBAAkB;EAC/DU,eAAe,KAAAP,MAAA,CAAKH,yBAAyB;AAC/C,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"build-new-url.js","names":["buildNewUrl","url","currentUrl","queryParams","hashBit","encodedQuery","encodeURI","baseUrl","newUrl","concat","_default","exports"],"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,IAAMA,WAAW,GAAG,SAAdA,WAAWA,CAAIC,GAAG,EAAEC,UAAU,EAAEC,WAAW,EAAEC,OAAO,EAAK;EAC7D,IAAMC,YAAY,GAAGC,SAAS,CAACH,WAAW,CAAC;EAC3C,IAAMI,OAAO,GAAGN,GAAG,IAAIC,UAAU;EACjC,IAAMM,MAAM,GAAGH,YAAY,MAAAI,MAAA,CAAMF,OAAO,OAAAE,MAAA,CAAIJ,YAAY,OAAAI,MAAA,CAAQF,OAAO,CAAE;EACzE,OAAOH,OAAO,MAAAK,MAAA,CAAMD,MAAM,OAAAC,MAAA,CAAIL,OAAO,IAAKI,MAAM;AAClD,CAAC;AAAC,IAAAE,QAAA,GAAAC,OAAA,cAEaX,WAAW"}
1
+ {"version":3,"file":"build-new-url.js","names":["buildNewUrl","url","currentUrl","queryParams","hashBit","encodedQuery","encodeURI","baseUrl","newUrl","concat","_default","exports"],"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,IAAMA,WAAW,GAAG,SAAdA,WAAWA,CAAIC,GAAG,EAAEC,UAAU,EAAEC,WAAW,EAAEC,OAAO,EAAK;EAC7D,IAAMC,YAAY,GAAGC,SAAS,CAACH,WAAW,CAAC;EAC3C,IAAMI,OAAO,GAAGN,GAAG,IAAIC,UAAU;EACjC,IAAMM,MAAM,GAAGH,YAAY,MAAAI,MAAA,CAAMF,OAAO,OAAAE,MAAA,CAAIJ,YAAY,OAAAI,MAAA,CAAQF,OAAO,CAAE;EACzE,OAAOH,OAAO,MAAAK,MAAA,CAAMD,MAAM,OAAAC,MAAA,CAAIL,OAAO,IAAKI,MAAM;AAClD,CAAC;AAAC,IAAAE,QAAA,GAAAC,OAAA,cAEaX,WAAW","ignoreList":[]}
@@ -8,12 +8,12 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports["default"] = void 0;
9
9
  require("core-js/modules/es.array.concat.js");
10
10
  require("core-js/modules/es.array.for-each.js");
11
- require("core-js/modules/es.object.to-string.js");
12
- require("core-js/modules/web.dom-collections.for-each.js");
13
11
  require("core-js/modules/es.array.includes.js");
14
- require("core-js/modules/es.object.keys.js");
15
12
  require("core-js/modules/es.array.index-of.js");
16
13
  require("core-js/modules/es.array.join.js");
14
+ require("core-js/modules/es.object.keys.js");
15
+ require("core-js/modules/es.object.to-string.js");
16
+ require("core-js/modules/web.dom-collections.for-each.js");
17
17
  var _constants = require("../constants");
18
18
  var _parseFilterValue = _interopRequireDefault(require("./parse-filter-value"));
19
19
  var _helpers = require("../../../helpers");
@@ -1 +1 @@
1
- {"version":3,"file":"build-url-query.js","names":["_constants","require","_parseFilterValue","_interopRequireDefault","_helpers","buildUrlQuery","filterValues","arguments","length","undefined","filters","listComponentName","query","newQuery","queryKeys","searchValue","SEARCH_TERM","searchKey","buildQueryKey","push","concat","forEach","_ref","propsToDisplay","type","TEXT_SEARCH","prop","value","filterKey","parsedValue","parseFilterValue","includes","Object","keys","key","indexOf","join","_default","exports"],"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,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AAEA,IAAMI,aAAa,GAAG,SAAhBA,aAAaA,CAAA,EAA4E;EAAA,IAAxEC,YAAY,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EAAA,IAAEG,OAAO,GAAAH,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EAAA,IAAEI,iBAAiB,GAAAJ,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,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pB,SAAS,CAACqB,OAAO,CAACD,GAAG,CAAC,KAAK,CAAC,CAAC,EAAErB,QAAQ,CAACM,IAAI,IAAAC,MAAA,CAAIc,GAAG,OAAAd,MAAA,CAAIR,KAAK,CAACsB,GAAG,CAAC,CAAE,CAAC;EAC1E,CAAC,CAAC;EAEF,OAAOrB,QAAQ,CAACuB,IAAI,CAAC,GAAG,CAAC;AAC3B,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEajC,aAAa"}
1
+ {"version":3,"file":"build-url-query.js","names":["_constants","require","_parseFilterValue","_interopRequireDefault","_helpers","buildUrlQuery","filterValues","arguments","length","undefined","filters","listComponentName","query","newQuery","queryKeys","searchValue","SEARCH_TERM","searchKey","buildQueryKey","push","concat","forEach","_ref","propsToDisplay","type","TEXT_SEARCH","prop","value","filterKey","parsedValue","parseFilterValue","includes","Object","keys","key","indexOf","join","_default","exports"],"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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IAAI,CAAC;MAChC,IAAME,SAAS,GAAG,IAAAV,sBAAa,EAACQ,IAAI,EAAEf,iBAAiB,CAAC;MACxDG,SAAS,CAACK,IAAI,CAACS,SAAS,CAAC;MACzB,IAAMC,WAAW,GAAG,IAAAC,4BAAgB,EAACF,SAAS,EAAEJ,IAAI,EAAEG,KAAK,EAAEd,QAAQ,CAAC;MACtE,IAAIgB,WAAW,IAAI,CAAChB,QAAQ,CAACkB,QAAQ,CAACF,WAAW,CAAC,EAAEhB,QAAQ,CAACM,IAAI,CAACU,WAAW,CAAC;IAChF,CAAC,CAAC;EACJ,CAAC,CAAC;EAEFG,MAAM,CAACC,IAAI,CAACrB,KAAK,CAAC,CAACS,OAAO,CAAC,UAAAa,GAAG,EAAI;IAChC,IAAIpB,SAAS,CAACqB,OAAO,CAACD,GAAG,CAAC,KAAK,CAAC,CAAC,EAAErB,QAAQ,CAACM,IAAI,IAAAC,MAAA,CAAIc,GAAG,OAAAd,MAAA,CAAIR,KAAK,CAACsB,GAAG,CAAC,CAAE,CAAC;EAC1E,CAAC,CAAC;EAEF,OAAOrB,QAAQ,CAACuB,IAAI,CAAC,GAAG,CAAC;AAC3B,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEajC,aAAa","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"calculate-min-max.js","names":["_calculateStep","_interopRequireDefault","require","calculateMinMax","filterAggregations","rangeInterval","min","max","Math","floor","Number","ceil","step","calculateStep","_default","exports"],"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,IAAAA,cAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAMC,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,kBAAkB,EAAEC,aAAa,EAAK;EAC7D,IAAMC,GAAG,GAAUF,kBAAkB,CAA/BE,GAAG;IAAEC,GAAG,GAAKH,kBAAkB,CAA1BG,GAAG;EACdD,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,IAAMO,IAAI,GAAG,IAAAC,yBAAa,EAACN,GAAG,EAAEF,aAAa,CAAC;EAC9CE,GAAG,IAAIK,IAAI;EACX,OAAO;IAAEN,GAAG,EAAHA,GAAG;IAAEC,GAAG,EAAHA;EAAI,CAAC;AACrB,CAAC;AAAC,IAAAO,QAAA,GAAAC,OAAA,cAEaZ,eAAe"}
1
+ {"version":3,"file":"calculate-min-max.js","names":["_calculateStep","_interopRequireDefault","require","calculateMinMax","filterAggregations","rangeInterval","min","max","Math","floor","Number","ceil","step","calculateStep","_default","exports"],"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,IAAAA,cAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAMC,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,kBAAkB,EAAEC,aAAa,EAAK;EAC7D,IAAMC,GAAG,GAAUF,kBAAkB,CAA/BE,GAAG;IAAEC,GAAG,GAAKH,kBAAkB,CAA1BG,GAAG;EACdD,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,IAAMO,IAAI,GAAG,IAAAC,yBAAa,EAACN,GAAG,EAAEF,aAAa,CAAC;EAC9CE,GAAG,IAAIK,IAAI;EACX,OAAO;IAAEN,GAAG,EAAHA,GAAG;IAAEC,GAAG,EAAHA;EAAI,CAAC;AACrB,CAAC;AAAC,IAAAO,QAAA,GAAAC,OAAA,cAEaZ,eAAe","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"calculate-step.js","names":["calculateStep","max","rangeInterval","_default","exports"],"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,IAAMA,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,GAAG,EAAEC,aAAa;EAAA,OACvCD,GAAG,GAAGC,aAAa,KAAK,CAAC,GAAG,CAAC,GAAGA,aAAa,GAAID,GAAG,GAAGC,aAAc;AAAA;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEzDJ,aAAa"}
1
+ {"version":3,"file":"calculate-step.js","names":["calculateStep","max","rangeInterval","_default","exports"],"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,IAAMA,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,GAAG,EAAEC,aAAa;EAAA,OACvCD,GAAG,GAAGC,aAAa,KAAK,CAAC,GAAG,CAAC,GAAGA,aAAa,GAAID,GAAG,GAAGC,aAAc;AAAA;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEzDJ,aAAa","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"check-if-range-updated.js","names":["_helpers","require","checkIfRangeUpdated","value","min","max","minValue","maxValue","isBrowser","_default","exports"],"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,IAAAA,QAAA,GAAAC,OAAA;AAEA,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAIC,KAAK,EAAEC,GAAG,EAAEC,GAAG,EAAK;EAC/C,IAAQC,QAAQ,GAAeH,KAAK,CAA5BG,QAAQ;IAAEC,QAAQ,GAAKJ,KAAK,CAAlBI,QAAQ;EAC1B,OAAO,IAAAC,kBAAS,EAAC,CAAC,KAAKF,QAAQ,KAAKF,GAAG,IAAIG,QAAQ,KAAKF,GAAG,CAAC;AAC9D,CAAC;AAAC,IAAAI,QAAA,GAAAC,OAAA,cAEaR,mBAAmB"}
1
+ {"version":3,"file":"check-if-range-updated.js","names":["_helpers","require","checkIfRangeUpdated","value","min","max","minValue","maxValue","isBrowser","_default","exports"],"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,IAAAA,QAAA,GAAAC,OAAA;AAEA,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAIC,KAAK,EAAEC,GAAG,EAAEC,GAAG,EAAK;EAC/C,IAAQC,QAAQ,GAAeH,KAAK,CAA5BG,QAAQ;IAAEC,QAAQ,GAAKJ,KAAK,CAAlBI,QAAQ;EAC1B,OAAO,IAAAC,kBAAS,EAAC,CAAC,KAAKF,QAAQ,KAAKF,GAAG,IAAIG,QAAQ,KAAKF,GAAG,CAAC;AAC9D,CAAC;AAAC,IAAAI,QAAA,GAAAC,OAAA,cAEaR,mBAAmB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"decode-encode.js","names":["decodeValue","exports","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,IAAMA,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG,SAAdA,WAAWA,CAAGE,KAAK;EAAA,OAAIC,kBAAkB,CAACD,KAAK,CAAC;AAAA;AAEtD,IAAME,WAAW,GAAAH,OAAA,CAAAG,WAAA,GAAG,SAAdA,WAAWA,CAAGF,KAAK;EAAA,OAAIG,kBAAkB,CAACH,KAAK,CAAC;AAAA"}
1
+ {"version":3,"file":"decode-encode.js","names":["decodeValue","exports","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,IAAMA,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG,SAAdA,WAAWA,CAAGE,KAAK;EAAA,OAAIC,kBAAkB,CAACD,KAAK,CAAC;AAAA;AAEtD,IAAME,WAAW,GAAAH,OAAA,CAAAG,WAAA,GAAG,SAAdA,WAAWA,CAAGF,KAAK;EAAA,OAAIG,kBAAkB,CAACH,KAAK,CAAC;AAAA","ignoreList":[]}
@@ -7,8 +7,8 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports["default"] = void 0;
9
9
  require("core-js/modules/es.array.filter.js");
10
- require("core-js/modules/es.object.to-string.js");
11
10
  require("core-js/modules/es.object.keys.js");
11
+ require("core-js/modules/es.object.to-string.js");
12
12
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
13
13
  var getDisplayValue = function getDisplayValue(propToDisplay, properties) {
14
14
  var _Object$keys$filter = Object.keys(properties).filter(function (property) {
@@ -1 +1 @@
1
- {"version":3,"file":"get-display-value.js","names":["getDisplayValue","propToDisplay","properties","_Object$keys$filter","Object","keys","filter","property","_Object$keys$filter2","_slicedToArray2","matchingProperty","unit","_default","exports"],"sources":["../../../../src/components/SearchFilter/helpers/get-display-value.js"],"sourcesContent":["const getDisplayValue = (propToDisplay, properties) => {\n const [matchingProperty] = Object.keys(properties).filter(property => property === propToDisplay);\n return matchingProperty ? properties[matchingProperty].unit : null;\n};\n\nexport default getDisplayValue;\n"],"mappings":";;;;;;;;;;;;AAAA,IAAMA,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,aAAa,EAAEC,UAAU,EAAK;EACrD,IAAAC,mBAAA,GAA2BC,MAAM,CAACC,IAAI,CAACH,UAAU,CAAC,CAACI,MAAM,CAAC,UAAAC,QAAQ;MAAA,OAAIA,QAAQ,KAAKN,aAAa;IAAA,EAAC;IAAAO,oBAAA,OAAAC,eAAA,aAAAN,mBAAA;IAA1FO,gBAAgB,GAAAF,oBAAA;EACvB,OAAOE,gBAAgB,GAAGR,UAAU,CAACQ,gBAAgB,CAAC,CAACC,IAAI,GAAG,IAAI;AACpE,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEab,eAAe"}
1
+ {"version":3,"file":"get-display-value.js","names":["getDisplayValue","propToDisplay","properties","_Object$keys$filter","Object","keys","filter","property","_Object$keys$filter2","_slicedToArray2","matchingProperty","unit","_default","exports"],"sources":["../../../../src/components/SearchFilter/helpers/get-display-value.js"],"sourcesContent":["const getDisplayValue = (propToDisplay, properties) => {\n const [matchingProperty] = Object.keys(properties).filter(property => property === propToDisplay);\n return matchingProperty ? properties[matchingProperty].unit : null;\n};\n\nexport default getDisplayValue;\n"],"mappings":";;;;;;;;;;;;AAAA,IAAMA,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,aAAa,EAAEC,UAAU,EAAK;EACrD,IAAAC,mBAAA,GAA2BC,MAAM,CAACC,IAAI,CAACH,UAAU,CAAC,CAACI,MAAM,CAAC,UAAAC,QAAQ;MAAA,OAAIA,QAAQ,KAAKN,aAAa;IAAA,EAAC;IAAAO,oBAAA,OAAAC,eAAA,aAAAN,mBAAA;IAA1FO,gBAAgB,GAAAF,oBAAA;EACvB,OAAOE,gBAAgB,GAAGR,UAAU,CAACQ,gBAAgB,CAAC,CAACC,IAAI,GAAG,IAAI;AACpE,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEab,eAAe","ignoreList":[]}
@@ -8,10 +8,10 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports["default"] = void 0;
9
9
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
10
10
  require("core-js/modules/es.array.for-each.js");
11
- require("core-js/modules/es.object.to-string.js");
12
- require("core-js/modules/web.dom-collections.for-each.js");
13
11
  require("core-js/modules/es.array.includes.js");
12
+ require("core-js/modules/es.object.to-string.js");
14
13
  require("core-js/modules/es.string.includes.js");
14
+ require("core-js/modules/web.dom-collections.for-each.js");
15
15
  var _constants = require("../constants");
16
16
  var getFilterRangesAndCheckboxesValues = function getFilterRangesAndCheckboxesValues(filters) {
17
17
  var checkboxSelectValues = [];
@@ -1 +1 @@
1
- {"version":3,"file":"get-filter-ranges-and-checkboxes-values.js","names":["_constants","require","getFilterRangesAndCheckboxesValues","filters","checkboxSelectValues","rangeValues","forEach","_ref","type","propsToDisplay","CHECKBOX_SELECT","includes","push","RANGE","apply","_toConsumableArray2","_default","exports"],"sources":["../../../../src/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js"],"sourcesContent":["import { RANGE, CHECKBOX_SELECT } from '../constants';\n\nconst getFilterRangesAndCheckboxesValues = filters => {\n const checkboxSelectValues = [];\n const rangeValues = [];\n\n filters.forEach(({ type, propsToDisplay }) => {\n if (CHECKBOX_SELECT.includes(type)) {\n checkboxSelectValues.push(propsToDisplay[0]);\n } else if (type === RANGE) {\n rangeValues.push(...propsToDisplay);\n }\n });\n return [checkboxSelectValues, rangeValues];\n};\n\nexport default getFilterRangesAndCheckboxesValues;\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,kCAAkC,GAAG,SAArCA,kCAAkCA,CAAGC,OAAO,EAAI;EACpD,IAAMC,oBAAoB,GAAG,EAAE;EAC/B,IAAMC,WAAW,GAAG,EAAE;EAEtBF,OAAO,CAACG,OAAO,CAAC,UAAAC,IAAA,EAA8B;IAAA,IAA3BC,IAAI,GAAAD,IAAA,CAAJC,IAAI;MAAEC,cAAc,GAAAF,IAAA,CAAdE,cAAc;IACrC,IAAIC,0BAAe,CAACC,QAAQ,CAACH,IAAI,CAAC,EAAE;MAClCJ,oBAAoB,CAACQ,IAAI,CAACH,cAAc,CAAC,CAAC,CAAC,CAAC;IAC9C,CAAC,MAAM,IAAID,IAAI,KAAKK,gBAAK,EAAE;MACzBR,WAAW,CAACO,IAAI,CAAAE,KAAA,CAAhBT,WAAW,MAAAU,mBAAA,aAASN,cAAc,EAAC;IACrC;EACF,CAAC,CAAC;EACF,OAAO,CAACL,oBAAoB,EAAEC,WAAW,CAAC;AAC5C,CAAC;AAAC,IAAAW,QAAA,GAAAC,OAAA,cAEaf,kCAAkC"}
1
+ {"version":3,"file":"get-filter-ranges-and-checkboxes-values.js","names":["_constants","require","getFilterRangesAndCheckboxesValues","filters","checkboxSelectValues","rangeValues","forEach","_ref","type","propsToDisplay","CHECKBOX_SELECT","includes","push","RANGE","apply","_toConsumableArray2","_default","exports"],"sources":["../../../../src/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js"],"sourcesContent":["import { RANGE, CHECKBOX_SELECT } from '../constants';\n\nconst getFilterRangesAndCheckboxesValues = filters => {\n const checkboxSelectValues = [];\n const rangeValues = [];\n\n filters.forEach(({ type, propsToDisplay }) => {\n if (CHECKBOX_SELECT.includes(type)) {\n checkboxSelectValues.push(propsToDisplay[0]);\n } else if (type === RANGE) {\n rangeValues.push(...propsToDisplay);\n }\n });\n return [checkboxSelectValues, rangeValues];\n};\n\nexport default getFilterRangesAndCheckboxesValues;\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,kCAAkC,GAAG,SAArCA,kCAAkCA,CAAGC,OAAO,EAAI;EACpD,IAAMC,oBAAoB,GAAG,EAAE;EAC/B,IAAMC,WAAW,GAAG,EAAE;EAEtBF,OAAO,CAACG,OAAO,CAAC,UAAAC,IAAA,EAA8B;IAAA,IAA3BC,IAAI,GAAAD,IAAA,CAAJC,IAAI;MAAEC,cAAc,GAAAF,IAAA,CAAdE,cAAc;IACrC,IAAIC,0BAAe,CAACC,QAAQ,CAACH,IAAI,CAAC,EAAE;MAClCJ,oBAAoB,CAACQ,IAAI,CAACH,cAAc,CAAC,CAAC,CAAC,CAAC;IAC9C,CAAC,MAAM,IAAID,IAAI,KAAKK,gBAAK,EAAE;MACzBR,WAAW,CAACO,IAAI,CAAAE,KAAA,CAAhBT,WAAW,MAAAU,mBAAA,aAASN,cAAc,EAAC;IACrC;EACF,CAAC,CAAC;EACF,OAAO,CAACL,oBAAoB,EAAEC,WAAW,CAAC;AAC5C,CAAC;AAAC,IAAAW,QAAA,GAAAC,OAAA,cAEaf,kCAAkC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"get-filter-value-from-query.js","names":["_constants","require","_getRangeValue","_interopRequireDefault","_decodeEncode","getFilterValueFromQuery","key","filterProps","filterData","query","min","max","rangeInterval","type","queryValue","RANGE","getRangeValue","CHECKBOX","decodeValue","map","val","SELECT","_default","exports"],"sources":["../../../../src/components/SearchFilter/helpers/get-filter-value-from-query.js"],"sourcesContent":["import { RANGE, CHECKBOX, SELECT } from '../constants';\nimport getRangeValue from './get-range-value';\nimport { decodeValue } from './decode-encode';\n\nconst getFilterValueFromQuery = (key, filterProps, filterData, query) => {\n const { min, max } = filterData;\n const { rangeInterval, type } = filterProps;\n const queryValue = query[key];\n if (!queryValue && type !== RANGE) return null;\n\n switch (type) {\n case RANGE:\n return getRangeValue(queryValue, rangeInterval, min, max);\n case CHECKBOX:\n return typeof queryValue === 'string'\n ? [decodeValue(queryValue)]\n : queryValue.map(val => decodeValue(val));\n case SELECT:\n return decodeValue(queryValue);\n\n default:\n return null;\n }\n};\n\nexport default getFilterValueFromQuery;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,cAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AAEA,IAAMI,uBAAuB,GAAG,SAA1BA,uBAAuBA,CAAIC,GAAG,EAAEC,WAAW,EAAEC,UAAU,EAAEC,KAAK,EAAK;EACvE,IAAQC,GAAG,GAAUF,UAAU,CAAvBE,GAAG;IAAEC,GAAG,GAAKH,UAAU,CAAlBG,GAAG;EAChB,IAAQC,aAAa,GAAWL,WAAW,CAAnCK,aAAa;IAAEC,IAAI,GAAKN,WAAW,CAApBM,IAAI;EAC3B,IAAMC,UAAU,GAAGL,KAAK,CAACH,GAAG,CAAC;EAC7B,IAAI,CAACQ,UAAU,IAAID,IAAI,KAAKE,gBAAK,EAAE,OAAO,IAAI;EAE9C,QAAQF,IAAI;IACV,KAAKE,gBAAK;MACR,OAAO,IAAAC,yBAAa,EAACF,UAAU,EAAEF,aAAa,EAAEF,GAAG,EAAEC,GAAG,CAAC;IAC3D,KAAKM,mBAAQ;MACX,OAAO,OAAOH,UAAU,KAAK,QAAQ,GACjC,CAAC,IAAAI,yBAAW,EAACJ,UAAU,CAAC,CAAC,GACzBA,UAAU,CAACK,GAAG,CAAC,UAAAC,GAAG;QAAA,OAAI,IAAAF,yBAAW,EAACE,GAAG,CAAC;MAAA,EAAC;IAC7C,KAAKC,iBAAM;MACT,OAAO,IAAAH,yBAAW,EAACJ,UAAU,CAAC;IAEhC;MACE,OAAO,IAAI;EACf;AACF,CAAC;AAAC,IAAAQ,QAAA,GAAAC,OAAA,cAEalB,uBAAuB"}
1
+ {"version":3,"file":"get-filter-value-from-query.js","names":["_constants","require","_getRangeValue","_interopRequireDefault","_decodeEncode","getFilterValueFromQuery","key","filterProps","filterData","query","min","max","rangeInterval","type","queryValue","RANGE","getRangeValue","CHECKBOX","decodeValue","map","val","SELECT","_default","exports"],"sources":["../../../../src/components/SearchFilter/helpers/get-filter-value-from-query.js"],"sourcesContent":["import { RANGE, CHECKBOX, SELECT } from '../constants';\nimport getRangeValue from './get-range-value';\nimport { decodeValue } from './decode-encode';\n\nconst getFilterValueFromQuery = (key, filterProps, filterData, query) => {\n const { min, max } = filterData;\n const { rangeInterval, type } = filterProps;\n const queryValue = query[key];\n if (!queryValue && type !== RANGE) return null;\n\n switch (type) {\n case RANGE:\n return getRangeValue(queryValue, rangeInterval, min, max);\n case CHECKBOX:\n return typeof queryValue === 'string'\n ? [decodeValue(queryValue)]\n : queryValue.map(val => decodeValue(val));\n case SELECT:\n return decodeValue(queryValue);\n\n default:\n return null;\n }\n};\n\nexport default getFilterValueFromQuery;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,cAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AAEA,IAAMI,uBAAuB,GAAG,SAA1BA,uBAAuBA,CAAIC,GAAG,EAAEC,WAAW,EAAEC,UAAU,EAAEC,KAAK,EAAK;EACvE,IAAQC,GAAG,GAAUF,UAAU,CAAvBE,GAAG;IAAEC,GAAG,GAAKH,UAAU,CAAlBG,GAAG;EAChB,IAAQC,aAAa,GAAWL,WAAW,CAAnCK,aAAa;IAAEC,IAAI,GAAKN,WAAW,CAApBM,IAAI;EAC3B,IAAMC,UAAU,GAAGL,KAAK,CAACH,GAAG,CAAC;EAC7B,IAAI,CAACQ,UAAU,IAAID,IAAI,KAAKE,gBAAK,EAAE,OAAO,IAAI;EAE9C,QAAQF,IAAI;IACV,KAAKE,gBAAK;MACR,OAAO,IAAAC,yBAAa,EAACF,UAAU,EAAEF,aAAa,EAAEF,GAAG,EAAEC,GAAG,CAAC;IAC3D,KAAKM,mBAAQ;MACX,OAAO,OAAOH,UAAU,KAAK,QAAQ,GACjC,CAAC,IAAAI,yBAAW,EAACJ,UAAU,CAAC,CAAC,GACzBA,UAAU,CAACK,GAAG,CAAC,UAAAC,GAAG;QAAA,OAAI,IAAAF,yBAAW,EAACE,GAAG,CAAC;MAAA,EAAC;IAC7C,KAAKC,iBAAM;MACT,OAAO,IAAAH,yBAAW,EAACJ,UAAU,CAAC;IAEhC;MACE,OAAO,IAAI;EACf;AACF,CAAC;AAAC,IAAAQ,QAAA,GAAAC,OAAA,cAEalB,uBAAuB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"get-filter-values.js","names":["_constants","require","_getFilterValueFromQuery","_interopRequireDefault","getFilterValues","filterData","filters","query","filterValues","SEARCH_TERM","forEach","filterProps","_filterProps$propsToD","_slicedToArray2","propsToDisplay","key","type","TEXT_SEARCH","data","getFilterValueFromQuery","dataNotSet","_default","exports"],"sources":["../../../../src/components/SearchFilter/helpers/get-filter-values.js"],"sourcesContent":["import { SEARCH_TERM, TEXT_SEARCH } from '../constants';\nimport getFilterValueFromQuery from './get-filter-value-from-query';\n\nconst getFilterValues = (filterData, filters, query) => {\n const filterValues = {};\n filterValues[SEARCH_TERM] = query[SEARCH_TERM] || '';\n\n filters.forEach(filterProps => {\n const {\n propsToDisplay: [key],\n type\n } = filterProps;\n if (type === TEXT_SEARCH) return;\n const data = filterData && filterData[key] ? filterData[key] : {};\n filterValues[key] = getFilterValueFromQuery(key, filterProps, data, query);\n });\n filterValues.dataNotSet = !filterData;\n return filterValues;\n};\n\nexport default getFilterValues;\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,wBAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAMG,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,UAAU,EAAEC,OAAO,EAAEC,KAAK,EAAK;EACtD,IAAMC,YAAY,GAAG,CAAC,CAAC;EACvBA,YAAY,CAACC,sBAAW,CAAC,GAAGF,KAAK,CAACE,sBAAW,CAAC,IAAI,EAAE;EAEpDH,OAAO,CAACI,OAAO,CAAC,UAAAC,WAAW,EAAI;IAC7B,IAAAC,qBAAA,OAAAC,eAAA,aAGIF,WAAW,CAFbG,cAAc;MAAGC,GAAG,GAAAH,qBAAA;MACpBI,IAAI,GACFL,WAAW,CADbK,IAAI;IAEN,IAAIA,IAAI,KAAKC,sBAAW,EAAE;IAC1B,IAAMC,IAAI,GAAGb,UAAU,IAAIA,UAAU,CAACU,GAAG,CAAC,GAAGV,UAAU,CAACU,GAAG,CAAC,GAAG,CAAC,CAAC;IACjEP,YAAY,CAACO,GAAG,CAAC,GAAG,IAAAI,mCAAuB,EAACJ,GAAG,EAAEJ,WAAW,EAAEO,IAAI,EAAEX,KAAK,CAAC;EAC5E,CAAC,CAAC;EACFC,YAAY,CAACY,UAAU,GAAG,CAACf,UAAU;EACrC,OAAOG,YAAY;AACrB,CAAC;AAAC,IAAAa,QAAA,GAAAC,OAAA,cAEalB,eAAe"}
1
+ {"version":3,"file":"get-filter-values.js","names":["_constants","require","_getFilterValueFromQuery","_interopRequireDefault","getFilterValues","filterData","filters","query","filterValues","SEARCH_TERM","forEach","filterProps","_filterProps$propsToD","_slicedToArray2","propsToDisplay","key","type","TEXT_SEARCH","data","getFilterValueFromQuery","dataNotSet","_default","exports"],"sources":["../../../../src/components/SearchFilter/helpers/get-filter-values.js"],"sourcesContent":["import { SEARCH_TERM, TEXT_SEARCH } from '../constants';\nimport getFilterValueFromQuery from './get-filter-value-from-query';\n\nconst getFilterValues = (filterData, filters, query) => {\n const filterValues = {};\n filterValues[SEARCH_TERM] = query[SEARCH_TERM] || '';\n\n filters.forEach(filterProps => {\n const {\n propsToDisplay: [key],\n type\n } = filterProps;\n if (type === TEXT_SEARCH) return;\n const data = filterData && filterData[key] ? filterData[key] : {};\n filterValues[key] = getFilterValueFromQuery(key, filterProps, data, query);\n });\n filterValues.dataNotSet = !filterData;\n return filterValues;\n};\n\nexport default getFilterValues;\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,wBAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAMG,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,UAAU,EAAEC,OAAO,EAAEC,KAAK,EAAK;EACtD,IAAMC,YAAY,GAAG,CAAC,CAAC;EACvBA,YAAY,CAACC,sBAAW,CAAC,GAAGF,KAAK,CAACE,sBAAW,CAAC,IAAI,EAAE;EAEpDH,OAAO,CAACI,OAAO,CAAC,UAAAC,WAAW,EAAI;IAC7B,IAAAC,qBAAA,OAAAC,eAAA,aAGIF,WAAW,CAFbG,cAAc;MAAGC,GAAG,GAAAH,qBAAA;MACpBI,IAAI,GACFL,WAAW,CADbK,IAAI;IAEN,IAAIA,IAAI,KAAKC,sBAAW,EAAE;IAC1B,IAAMC,IAAI,GAAGb,UAAU,IAAIA,UAAU,CAACU,GAAG,CAAC,GAAGV,UAAU,CAACU,GAAG,CAAC,GAAG,CAAC,CAAC;IACjEP,YAAY,CAACO,GAAG,CAAC,GAAG,IAAAI,mCAAuB,EAACJ,GAAG,EAAEJ,WAAW,EAAEO,IAAI,EAAEX,KAAK,CAAC;EAC5E,CAAC,CAAC;EACFC,YAAY,CAACY,UAAU,GAAG,CAACf,UAAU;EACrC,OAAOG,YAAY;AACrB,CAAC;AAAC,IAAAa,QAAA,GAAAC,OAAA,cAEalB,eAAe","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"get-initial-filter-values.js","names":["_constants","require","_getFilterValueFromQuery","_interopRequireDefault","_helpers","getInitialFilterValues","filterData","filters","query","listComponentName","filterValues","searchQueryKey","buildQueryKey","SEARCH_TERM","forEach","filterProps","_filterProps$propsToD","_slicedToArray2","propsToDisplay","key","type","TEXT_SEARCH","data","queryKey","getFilterValueFromQuery","_default","exports"],"sources":["../../../../src/components/SearchFilter/helpers/get-initial-filter-values.js"],"sourcesContent":["import { SEARCH_TERM, TEXT_SEARCH } from '../constants';\nimport getFilterValueFromQuery from './get-filter-value-from-query';\nimport { buildQueryKey } from '../../../helpers';\n\nconst getInitialFilterValues = (filterData, filters, query, listComponentName) => {\n const filterValues = {};\n const searchQueryKey = buildQueryKey(SEARCH_TERM, listComponentName);\n filterValues[SEARCH_TERM] = query[searchQueryKey] || '';\n\n filters.forEach(filterProps => {\n const {\n propsToDisplay: [key],\n type\n } = filterProps;\n if (type === TEXT_SEARCH) return;\n const data = filterData && filterData[key] ? filterData[key] : {};\n const queryKey = buildQueryKey(key, listComponentName);\n filterValues[key] = getFilterValueFromQuery(queryKey, filterProps, data, query);\n });\n\n return filterValues;\n};\n\nexport default getInitialFilterValues;\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,wBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AAEA,IAAMI,sBAAsB,GAAG,SAAzBA,sBAAsBA,CAAIC,UAAU,EAAEC,OAAO,EAAEC,KAAK,EAAEC,iBAAiB,EAAK;EAChF,IAAMC,YAAY,GAAG,CAAC,CAAC;EACvB,IAAMC,cAAc,GAAG,IAAAC,sBAAa,EAACC,sBAAW,EAAEJ,iBAAiB,CAAC;EACpEC,YAAY,CAACG,sBAAW,CAAC,GAAGL,KAAK,CAACG,cAAc,CAAC,IAAI,EAAE;EAEvDJ,OAAO,CAACO,OAAO,CAAC,UAAAC,WAAW,EAAI;IAC7B,IAAAC,qBAAA,OAAAC,eAAA,aAGIF,WAAW,CAFbG,cAAc;MAAGC,GAAG,GAAAH,qBAAA;MACpBI,IAAI,GACFL,WAAW,CADbK,IAAI;IAEN,IAAIA,IAAI,KAAKC,sBAAW,EAAE;IAC1B,IAAMC,IAAI,GAAGhB,UAAU,IAAIA,UAAU,CAACa,GAAG,CAAC,GAAGb,UAAU,CAACa,GAAG,CAAC,GAAG,CAAC,CAAC;IACjE,IAAMI,QAAQ,GAAG,IAAAX,sBAAa,EAACO,GAAG,EAAEV,iBAAiB,CAAC;IACtDC,YAAY,CAACS,GAAG,CAAC,GAAG,IAAAK,mCAAuB,EAACD,QAAQ,EAAER,WAAW,EAAEO,IAAI,EAAEd,KAAK,CAAC;EACjF,CAAC,CAAC;EAEF,OAAOE,YAAY;AACrB,CAAC;AAAC,IAAAe,QAAA,GAAAC,OAAA,cAEarB,sBAAsB"}
1
+ {"version":3,"file":"get-initial-filter-values.js","names":["_constants","require","_getFilterValueFromQuery","_interopRequireDefault","_helpers","getInitialFilterValues","filterData","filters","query","listComponentName","filterValues","searchQueryKey","buildQueryKey","SEARCH_TERM","forEach","filterProps","_filterProps$propsToD","_slicedToArray2","propsToDisplay","key","type","TEXT_SEARCH","data","queryKey","getFilterValueFromQuery","_default","exports"],"sources":["../../../../src/components/SearchFilter/helpers/get-initial-filter-values.js"],"sourcesContent":["import { SEARCH_TERM, TEXT_SEARCH } from '../constants';\nimport getFilterValueFromQuery from './get-filter-value-from-query';\nimport { buildQueryKey } from '../../../helpers';\n\nconst getInitialFilterValues = (filterData, filters, query, listComponentName) => {\n const filterValues = {};\n const searchQueryKey = buildQueryKey(SEARCH_TERM, listComponentName);\n filterValues[SEARCH_TERM] = query[searchQueryKey] || '';\n\n filters.forEach(filterProps => {\n const {\n propsToDisplay: [key],\n type\n } = filterProps;\n if (type === TEXT_SEARCH) return;\n const data = filterData && filterData[key] ? filterData[key] : {};\n const queryKey = buildQueryKey(key, listComponentName);\n filterValues[key] = getFilterValueFromQuery(queryKey, filterProps, data, query);\n });\n\n return filterValues;\n};\n\nexport default getInitialFilterValues;\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,wBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AAEA,IAAMI,sBAAsB,GAAG,SAAzBA,sBAAsBA,CAAIC,UAAU,EAAEC,OAAO,EAAEC,KAAK,EAAEC,iBAAiB,EAAK;EAChF,IAAMC,YAAY,GAAG,CAAC,CAAC;EACvB,IAAMC,cAAc,GAAG,IAAAC,sBAAa,EAACC,sBAAW,EAAEJ,iBAAiB,CAAC;EACpEC,YAAY,CAACG,sBAAW,CAAC,GAAGL,KAAK,CAACG,cAAc,CAAC,IAAI,EAAE;EAEvDJ,OAAO,CAACO,OAAO,CAAC,UAAAC,WAAW,EAAI;IAC7B,IAAAC,qBAAA,OAAAC,eAAA,aAGIF,WAAW,CAFbG,cAAc;MAAGC,GAAG,GAAAH,qBAAA;MACpBI,IAAI,GACFL,WAAW,CADbK,IAAI;IAEN,IAAIA,IAAI,KAAKC,sBAAW,EAAE;IAC1B,IAAMC,IAAI,GAAGhB,UAAU,IAAIA,UAAU,CAACa,GAAG,CAAC,GAAGb,UAAU,CAACa,GAAG,CAAC,GAAG,CAAC,CAAC;IACjE,IAAMI,QAAQ,GAAG,IAAAX,sBAAa,EAACO,GAAG,EAAEV,iBAAiB,CAAC;IACtDC,YAAY,CAACS,GAAG,CAAC,GAAG,IAAAK,mCAAuB,EAACD,QAAQ,EAAER,WAAW,EAAEO,IAAI,EAAEd,KAAK,CAAC;EACjF,CAAC,CAAC;EAEF,OAAOE,YAAY;AACrB,CAAC;AAAC,IAAAe,QAAA,GAAAC,OAAA,cAEarB,sBAAsB","ignoreList":[]}