@blaze-cms/react-page-builder 0.124.0-alpha.2 → 0.124.0-alpha.22

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 (1069) hide show
  1. package/CHANGELOG.md +176 -0
  2. package/README.md +1 -0
  3. package/example.env +1 -0
  4. package/lib/BannerContext/helpers/index.js.map +1 -1
  5. package/lib/BannerContext/helpers/set-initial-banner-counters.js.map +1 -1
  6. package/lib/BannerContext/index.js.map +1 -1
  7. package/lib/HOC/index.js.map +1 -1
  8. package/lib/HOC/withInfiniteScroll.js.map +1 -1
  9. package/lib/HOC/withTitle.js.map +1 -1
  10. package/lib/PBContext/index.js.map +1 -1
  11. package/lib/application/query/index.js +9 -3
  12. package/lib/application/query/index.js.map +1 -1
  13. package/lib/components/BackToTop/BackToTop.js.map +1 -1
  14. package/lib/components/BackToTop/index.js.map +1 -1
  15. package/lib/components/Banner/AdSlotRender.js.map +1 -1
  16. package/lib/components/Banner/Banner.js.map +1 -1
  17. package/lib/components/Banner/BannerRender.js.map +1 -1
  18. package/lib/components/Banner/helpers.js.map +1 -1
  19. package/lib/components/Banner/index.js.map +1 -1
  20. package/lib/components/BlazeLink.js.map +1 -1
  21. package/lib/components/Breadcrumb/Breadcrumb.js.map +1 -1
  22. package/lib/components/Breadcrumb/index.js.map +1 -1
  23. package/lib/components/Button.js.map +1 -1
  24. package/lib/components/Card/Card.js.map +1 -1
  25. package/lib/components/Card/CardContainer.js +3 -7
  26. package/lib/components/Card/CardContainer.js.map +1 -1
  27. package/lib/components/Card/CardFactory.js +6 -3
  28. package/lib/components/Card/CardFactory.js.map +1 -1
  29. package/lib/components/Card/CardRender.js.map +1 -1
  30. package/lib/components/Card/constants.js.map +1 -1
  31. package/lib/components/Card/helpers/filter-query-setup.js.map +1 -1
  32. package/lib/components/Card/helpers/filters-setup.js.map +1 -1
  33. package/lib/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -1
  34. package/lib/components/Card/helpers/get-published-listing-url.js.map +1 -1
  35. package/lib/components/Card/helpers/index.js.map +1 -1
  36. package/lib/components/Card/helpers/should-return.js.map +1 -1
  37. package/lib/components/Card/helpers/should-skip-single-query.js.map +1 -1
  38. package/lib/components/Card/helpers/use-dynamic-size-key.js.map +1 -1
  39. package/lib/components/Card/index.js.map +1 -1
  40. package/lib/components/Carousel/Carousel.js.map +1 -1
  41. package/lib/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
  42. package/lib/components/Carousel/CarouselImage/index.js.map +1 -1
  43. package/lib/components/Carousel/CarouselRender/CarouselRender.js +2 -2
  44. package/lib/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
  45. package/lib/components/Carousel/CarouselRender/index.js.map +1 -1
  46. package/lib/components/Carousel/index.js.map +1 -1
  47. package/lib/components/CarouselWrapper.js +2 -2
  48. package/lib/components/CarouselWrapper.js.map +1 -1
  49. package/lib/components/ClickWrapper.js.map +1 -1
  50. package/lib/components/Code/Code.js.map +1 -1
  51. package/lib/components/Code/ScriptTag.js.map +1 -1
  52. package/lib/components/Code/helpers/index.js.map +1 -1
  53. package/lib/components/Code/helpers/wrap-script-tags.js.map +1 -1
  54. package/lib/components/Code/index.js.map +1 -1
  55. package/lib/components/DataSummary/DataSummaryFactory.js.map +1 -1
  56. package/lib/components/DataSummary/DataSummaryRender.js.map +1 -1
  57. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -1
  58. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
  59. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js.map +1 -1
  60. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map +1 -1
  61. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
  62. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js.map +1 -1
  63. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.map +1 -1
  64. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
  65. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/index.js.map +1 -1
  66. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.map +1 -1
  67. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
  68. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/index.js.map +1 -1
  69. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.map +1 -1
  70. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
  71. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/index.js.map +1 -1
  72. package/lib/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
  73. package/lib/components/DataSummary/helpers/build-loop-props-content.js.map +1 -1
  74. package/lib/components/DataSummary/helpers/build-props-to-display-with-content.js.map +1 -1
  75. package/lib/components/DataSummary/helpers/get-data-summary-query.js.map +1 -1
  76. package/lib/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -1
  77. package/lib/components/DataSummary/helpers/get-link-to-published-content.js.map +1 -1
  78. package/lib/components/DataSummary/helpers/get-loop-props-limit.js.map +1 -1
  79. package/lib/components/DataSummary/helpers/get-prop-value.js.map +1 -1
  80. package/lib/components/DataSummary/helpers/get-value-from-array.js.map +1 -1
  81. package/lib/components/DataSummary/helpers/index.js.map +1 -1
  82. package/lib/components/DataSummary/helpers/parse-boolean-values.js.map +1 -1
  83. package/lib/components/DataSummary/helpers/strip-summary-props-content.js.map +1 -1
  84. package/lib/components/DataSummary/index.js.map +1 -1
  85. package/lib/components/EmailConfirm/EmailConfirm.js.map +1 -1
  86. package/lib/components/EmailConfirm/index.js.map +1 -1
  87. package/lib/components/EmailConfirm/mutation.js.map +1 -1
  88. package/lib/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
  89. package/lib/components/Image/GlobalLightbox/NavButton.js.map +1 -1
  90. package/lib/components/Image/GlobalLightbox/index.js.map +1 -1
  91. package/lib/components/Image/Image.js.map +1 -1
  92. package/lib/components/Image/ImageDetails.js.map +1 -1
  93. package/lib/components/Image/ImageFactory.js.map +1 -1
  94. package/lib/components/Image/ImageRender.js.map +1 -1
  95. package/lib/components/Image/Lightbox/Lightbox.js.map +1 -1
  96. package/lib/components/Image/Lightbox/index.js.map +1 -1
  97. package/lib/components/Image/index.js.map +1 -1
  98. package/lib/components/ItemListButton/ItemListButton.js +171 -0
  99. package/lib/components/ItemListButton/ItemListButton.js.map +1 -0
  100. package/lib/components/ItemListButton/index.js +16 -0
  101. package/lib/components/ItemListButton/index.js.map +1 -0
  102. package/lib/components/ItemListCounter/ItemListCounter.js +114 -0
  103. package/lib/components/ItemListCounter/ItemListCounter.js.map +1 -0
  104. package/lib/components/ItemListCounter/index.js +16 -0
  105. package/lib/components/ItemListCounter/index.js.map +1 -0
  106. package/lib/components/Layout/Layout.js.map +1 -1
  107. package/lib/components/Layout/constants.js.map +1 -1
  108. package/lib/components/Layout/helpers/check-if-row-has-columns.js.map +1 -1
  109. package/lib/components/Layout/helpers/get-styles-to-update.js.map +1 -1
  110. package/lib/components/Layout/helpers/index.js.map +1 -1
  111. package/lib/components/Layout/index.js.map +1 -1
  112. package/lib/components/LazyImage/LazyImage.js.map +1 -1
  113. package/lib/components/LazyImage/index.js.map +1 -1
  114. package/lib/components/List/ListBuilder.js +12 -6
  115. package/lib/components/List/ListBuilder.js.map +1 -1
  116. package/lib/components/List/ListFactory.js +32 -7
  117. package/lib/components/List/ListFactory.js.map +1 -1
  118. package/lib/components/List/ListRender.js.map +1 -1
  119. package/lib/components/List/components/Cards/CardRenderWithInfiniteScroll.js.map +1 -1
  120. package/lib/components/List/components/Cards/CardsRender.js.map +1 -1
  121. package/lib/components/List/components/Cards/CardsRenderItem.js.map +1 -1
  122. package/lib/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
  123. package/lib/components/List/components/Cards/index.js.map +1 -1
  124. package/lib/components/List/components/Full/FullRender.js.map +1 -1
  125. package/lib/components/List/components/Full/FullRenderItem.js.map +1 -1
  126. package/lib/components/List/components/Full/FullRenderWithInfiniteScroll.js.map +1 -1
  127. package/lib/components/List/components/Full/index.js.map +1 -1
  128. package/lib/components/List/components/Header/ListHeader.js.map +1 -1
  129. package/lib/components/List/components/Header/index.js.map +1 -1
  130. package/lib/components/List/components/Pagination/Classic.js.map +1 -1
  131. package/lib/components/List/components/Pagination/ListPagination.js.map +1 -1
  132. package/lib/components/List/components/Pagination/LoadMore.js.map +1 -1
  133. package/lib/components/List/components/Pagination/index.js.map +1 -1
  134. package/lib/components/List/components/helpers/check-if-should-render-banner.js.map +1 -1
  135. package/lib/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -1
  136. package/lib/components/List/components/helpers/index.js.map +1 -1
  137. package/lib/components/List/components/index.js.map +1 -1
  138. package/lib/components/List/constants.js.map +1 -1
  139. package/lib/components/List/helpers/build-az-aggregations.js.map +1 -1
  140. package/lib/components/List/helpers/build-az-url.js.map +1 -1
  141. package/lib/components/List/helpers/build-pagination-items.js.map +1 -1
  142. package/lib/components/List/helpers/build-pagination-url.js.map +1 -1
  143. package/lib/components/List/helpers/get-az-query-filter.js.map +1 -1
  144. package/lib/components/List/helpers/get-items-per-page-to-use.js.map +1 -1
  145. package/lib/components/List/helpers/get-sort-props.js.map +1 -1
  146. package/lib/components/List/helpers/index.js.map +1 -1
  147. package/lib/components/List/helpers/sort-aggs.js.map +1 -1
  148. package/lib/components/List/index.js.map +1 -1
  149. package/lib/components/Login/LoggedInMessage.js.map +1 -1
  150. package/lib/components/Login/Login.js.map +1 -1
  151. package/lib/components/Login/LoginForm.js.map +1 -1
  152. package/lib/components/Login/helpers/check-gtm-children.js.map +1 -1
  153. package/lib/components/Login/helpers/get-url-to-use.js.map +1 -1
  154. package/lib/components/Login/helpers/index.js.map +1 -1
  155. package/lib/components/Login/index.js.map +1 -1
  156. package/lib/components/Menu/Menu.js.map +1 -1
  157. package/lib/components/Menu/index.js.map +1 -1
  158. package/lib/components/MenuItem/MenuItem.js.map +1 -1
  159. package/lib/components/MenuItem/index.js.map +1 -1
  160. package/lib/components/Modal/Modal.js.map +1 -1
  161. package/lib/components/Modal/index.js.map +1 -1
  162. package/lib/components/PasswordReset/PasswordReset.js.map +1 -1
  163. package/lib/components/PasswordReset/helpers/index.js.map +1 -1
  164. package/lib/components/PasswordReset/helpers/validatePassword.js.map +1 -1
  165. package/lib/components/PasswordReset/index.js.map +1 -1
  166. package/lib/components/PasswordResetRequest/PasswordResetRequest.js.map +1 -1
  167. package/lib/components/PasswordResetRequest/index.js.map +1 -1
  168. package/lib/components/SearchContent/SearchContent.js +163 -0
  169. package/lib/components/SearchContent/SearchContent.js.map +1 -0
  170. package/lib/components/SearchContent/SearchContentItems.js +48 -0
  171. package/lib/components/SearchContent/SearchContentItems.js.map +1 -0
  172. package/lib/components/SearchContent/SearchContentResults.js +45 -0
  173. package/lib/components/SearchContent/SearchContentResults.js.map +1 -0
  174. package/lib/components/SearchContent/index.js +2 -233
  175. package/lib/components/SearchContent/index.js.map +1 -1
  176. package/lib/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
  177. package/lib/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
  178. package/lib/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -1
  179. package/lib/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
  180. package/lib/components/SearchFilter/SearchFilter/SearchFilter.js +11 -3
  181. package/lib/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
  182. package/lib/components/SearchFilter/SearchFilter/index.js.map +1 -1
  183. package/lib/components/SearchFilter/SearchFilterContainer.js.map +1 -1
  184. package/lib/components/SearchFilter/components/Checkbox.js.map +1 -1
  185. package/lib/components/SearchFilter/components/Range.js.map +1 -1
  186. package/lib/components/SearchFilter/components/Select.js.map +1 -1
  187. package/lib/components/SearchFilter/components/TextSearch.js.map +1 -1
  188. package/lib/components/SearchFilter/components/index.js.map +1 -1
  189. package/lib/components/SearchFilter/constants.js +1 -1
  190. package/lib/components/SearchFilter/constants.js.map +1 -1
  191. package/lib/components/SearchFilter/helpers/build-new-query.js.map +1 -1
  192. package/lib/components/SearchFilter/helpers/build-query.js.map +1 -1
  193. package/lib/components/SearchFilter/helpers/build-raw-query-stringified.js.map +1 -1
  194. package/lib/components/SearchFilter/helpers/calculate-min-max.js.map +1 -1
  195. package/lib/components/SearchFilter/helpers/calculate-step.js.map +1 -1
  196. package/lib/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -1
  197. package/lib/components/SearchFilter/helpers/decode-encode.js.map +1 -1
  198. package/lib/components/SearchFilter/helpers/get-display-value.js.map +1 -1
  199. package/lib/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
  200. package/lib/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -1
  201. package/lib/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -1
  202. package/lib/components/SearchFilter/helpers/get-range-value.js.map +1 -1
  203. package/lib/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
  204. package/lib/components/SearchFilter/helpers/get-select-options.js.map +1 -1
  205. package/lib/components/SearchFilter/helpers/index.js.map +1 -1
  206. package/lib/components/SearchFilter/helpers/is-device-desktop.js.map +1 -1
  207. package/lib/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
  208. package/lib/components/SearchFilter/index.js.map +1 -1
  209. package/lib/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
  210. package/lib/components/SearchFilterSort/constants.js.map +1 -1
  211. package/lib/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
  212. package/lib/components/SearchFilterSort/helpers/index.js.map +1 -1
  213. package/lib/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
  214. package/lib/components/SearchFilterSort/index.js.map +1 -1
  215. package/lib/components/SocialFollow/SFItem.js.map +1 -1
  216. package/lib/components/SocialFollow/SocialFollow.js.map +1 -1
  217. package/lib/components/SocialFollow/SocialFollowRender.js.map +1 -1
  218. package/lib/components/SocialFollow/index.js.map +1 -1
  219. package/lib/components/SocialFollow/sf.config.js.map +1 -1
  220. package/lib/components/SubMenu/SubMenu.js.map +1 -1
  221. package/lib/components/SubMenu/index.js.map +1 -1
  222. package/lib/components/TextBlock/TextBlockRender.js.map +1 -1
  223. package/lib/components/TextBlock/index.js.map +1 -1
  224. package/lib/components/Video/Video.js.map +1 -1
  225. package/lib/components/Video/VideoModal.js.map +1 -1
  226. package/lib/components/Video/VideoRender.js.map +1 -1
  227. package/lib/components/Video/index.js.map +1 -1
  228. package/lib/components/Video/providers/Default.js.map +1 -1
  229. package/lib/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
  230. package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
  231. package/lib/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
  232. package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
  233. package/lib/components/Video/providers/YouTube/helpers/index.js.map +1 -1
  234. package/lib/components/Video/providers/get-provider.js.map +1 -1
  235. package/lib/components/Video/providers/index.js.map +1 -1
  236. package/lib/components/Wrapper.js.map +1 -1
  237. package/lib/components/index.js +11 -1
  238. package/lib/components/index.js.map +1 -1
  239. package/lib/constants/componentsDefaultValues.js.map +1 -1
  240. package/lib/constants/index.js +4 -2
  241. package/lib/constants/index.js.map +1 -1
  242. package/lib/helpers/append-images.js.map +1 -1
  243. package/lib/helpers/build-az-filter.js.map +1 -1
  244. package/lib/helpers/build-image-properties.js.map +1 -1
  245. package/lib/helpers/build-inherited-filters.js.map +1 -1
  246. package/lib/helpers/build-link-extra-props.js.map +1 -1
  247. package/lib/helpers/build-props-query.js +18 -11
  248. package/lib/helpers/build-props-query.js.map +1 -1
  249. package/lib/helpers/build-query-fields.js.map +1 -1
  250. package/lib/helpers/build-raw-query-base.js.map +1 -1
  251. package/lib/helpers/build-raw-query.js.map +1 -1
  252. package/lib/helpers/build-search-values-checkbox-select.js.map +1 -1
  253. package/lib/helpers/build-search-values-text.js.map +1 -1
  254. package/lib/helpers/build-set-filters.js.map +1 -1
  255. package/lib/helpers/check-for-error.js.map +1 -1
  256. package/lib/helpers/check-props-to-use.js.map +1 -1
  257. package/lib/helpers/entities/constants.js.map +1 -1
  258. package/lib/helpers/get-banner-data.js.map +1 -1
  259. package/lib/helpers/get-click-wrapper-options.js.map +1 -1
  260. package/lib/helpers/get-current-offset.js.map +1 -1
  261. package/lib/helpers/get-dictionary-match.js.map +1 -1
  262. package/lib/helpers/get-display-count-data.js.map +1 -1
  263. package/lib/helpers/get-elasticsearch-operator.js.map +1 -1
  264. package/lib/helpers/get-entities-with-banner.js.map +1 -1
  265. package/lib/helpers/get-entity-data.js.map +1 -1
  266. package/lib/helpers/get-entity-render-props.js.map +1 -1
  267. package/lib/helpers/get-extra-az-bits.js.map +1 -1
  268. package/lib/helpers/get-filter-props.js.map +1 -1
  269. package/lib/helpers/get-filter-relation-keys.js.map +1 -1
  270. package/lib/helpers/get-generic-props.js.map +1 -1
  271. package/lib/helpers/get-generic-render-variables.js.map +1 -1
  272. package/lib/helpers/get-image-ids.js.map +1 -1
  273. package/lib/helpers/get-inherited-filters.js.map +1 -1
  274. package/lib/helpers/get-item-list-data.js +17 -0
  275. package/lib/helpers/get-item-list-data.js.map +1 -0
  276. package/lib/helpers/get-item-list-id.js +23 -0
  277. package/lib/helpers/get-item-list-id.js.map +1 -0
  278. package/lib/helpers/get-item-list-ids.js +28 -0
  279. package/lib/helpers/get-item-list-ids.js.map +1 -0
  280. package/lib/helpers/get-items-to-display-ids.js.map +1 -1
  281. package/lib/helpers/get-modifiers.js.map +1 -1
  282. package/lib/helpers/get-not-equal-query.js.map +1 -1
  283. package/lib/helpers/get-pagination-index.js.map +1 -1
  284. package/lib/helpers/get-parsed-prop-values.js.map +1 -1
  285. package/lib/helpers/get-parsed-summary-value.js.map +1 -1
  286. package/lib/helpers/get-prop-values.js.map +1 -1
  287. package/lib/helpers/get-query-filters.js.map +1 -1
  288. package/lib/helpers/get-query-props.js.map +1 -1
  289. package/lib/helpers/get-required-schemas.js.map +1 -1
  290. package/lib/helpers/get-sanitized-prop-values.js.map +1 -1
  291. package/lib/helpers/get-search-filter-type.js.map +1 -1
  292. package/lib/helpers/get-sort-by-field-name.js.map +1 -1
  293. package/lib/helpers/get-unpublished-entity-name.js.map +1 -1
  294. package/lib/helpers/get-updated-filter-by.js.map +1 -1
  295. package/lib/helpers/get-wrapped-value-with-link.js.map +1 -1
  296. package/lib/helpers/group-entities.js.map +1 -1
  297. package/lib/helpers/has-children.js.map +1 -1
  298. package/lib/helpers/index.js +24 -0
  299. package/lib/helpers/index.js.map +1 -1
  300. package/lib/helpers/inject-banner.js.map +1 -1
  301. package/lib/helpers/inject-banners-to-entities.js.map +1 -1
  302. package/lib/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.map +1 -1
  303. package/lib/helpers/inject-multiple-banners/get-banners-for-entities/index.js.map +1 -1
  304. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.map +1 -1
  305. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js.map +1 -1
  306. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js.map +1 -1
  307. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/index.js.map +1 -1
  308. package/lib/helpers/inject-multiple-banners/index.js.map +1 -1
  309. package/lib/helpers/inject-multiple-banners/inject-multiple-banners.js.map +1 -1
  310. package/lib/helpers/is-browser.js.map +1 -1
  311. package/lib/helpers/is-filter-entitys-id.js.map +1 -1
  312. package/lib/helpers/is-object.js.map +1 -1
  313. package/lib/helpers/is-using-relation-image.js.map +1 -1
  314. package/lib/helpers/parse-TextBlock.js.map +1 -1
  315. package/lib/helpers/parse-interval.js.map +1 -1
  316. package/lib/helpers/parse-props-to-display.js.map +1 -1
  317. package/lib/helpers/remove-extra-items.js.map +1 -1
  318. package/lib/helpers/remove-unwanted-characters.js.map +1 -1
  319. package/lib/helpers/render-children.js.map +1 -1
  320. package/lib/helpers/should-render-waypoint.js.map +1 -1
  321. package/lib/helpers/should-show-property.js.map +1 -1
  322. package/lib/helpers/sort-response-data.js.map +1 -1
  323. package/lib/helpers/split-children.js.map +1 -1
  324. package/lib/helpers/update-childrens-parent.js.map +1 -1
  325. package/lib/hooks/helpers/RenderComponent.js.map +1 -1
  326. package/lib/hooks/helpers/StoreImages.js.map +1 -1
  327. package/lib/hooks/helpers/append-gtm-classname.js.map +1 -1
  328. package/lib/hooks/helpers/buildPBComponents.js.map +1 -1
  329. package/lib/hooks/helpers/check-banner-insertion-set.js.map +1 -1
  330. package/lib/hooks/helpers/check-collisions.js.map +1 -1
  331. package/lib/hooks/helpers/constants.js.map +1 -1
  332. package/lib/hooks/helpers/get-banner-index.js.map +1 -1
  333. package/lib/hooks/helpers/get-banners-by-type.js.map +1 -1
  334. package/lib/hooks/helpers/get-lightbox-images.js.map +1 -1
  335. package/lib/hooks/helpers/getComponent.js.map +1 -1
  336. package/lib/hooks/helpers/index.js.map +1 -1
  337. package/lib/hooks/helpers/inject-element-banners.js.map +1 -1
  338. package/lib/hooks/helpers/inject-textblock-banners.js.map +1 -1
  339. package/lib/hooks/helpers/insert-banners.js.map +1 -1
  340. package/lib/hooks/helpers/update-targetings.js.map +1 -1
  341. package/lib/hooks/index.js.map +1 -1
  342. package/lib/hooks/use-banner-insertion.js.map +1 -1
  343. package/lib/hooks/use-check-mobile-screen.js.map +1 -1
  344. package/lib/hooks/use-get-entity-schema.js.map +1 -1
  345. package/lib/hooks/use-get-entity-schemas-as-obj.js.map +1 -1
  346. package/lib/hooks/use-get-image-id-from-relation.js.map +1 -1
  347. package/lib/hooks/use-get-images.js.map +1 -1
  348. package/lib/hooks/use-get-single-entity-schema.js.map +1 -1
  349. package/lib/hooks/use-page-builder.js.map +1 -1
  350. package/lib/index.js.map +1 -1
  351. package/lib/utils/component-map.js.map +1 -1
  352. package/lib/utils/get-class-modifiers.js.map +1 -1
  353. package/lib/utils/get-image-data.js.map +1 -1
  354. package/lib/utils/get-props-to-display-modifiers.js.map +1 -1
  355. package/lib/utils/index.js.map +1 -1
  356. package/lib/utils/is-object-empty.js.map +1 -1
  357. package/lib-es/BannerContext/helpers/index.js.map +1 -1
  358. package/lib-es/BannerContext/helpers/set-initial-banner-counters.js.map +1 -1
  359. package/lib-es/BannerContext/index.js.map +1 -1
  360. package/lib-es/HOC/index.js.map +1 -1
  361. package/lib-es/HOC/withInfiniteScroll.js.map +1 -1
  362. package/lib-es/HOC/withTitle.js.map +1 -1
  363. package/lib-es/PBContext/index.js.map +1 -1
  364. package/lib-es/application/query/index.js +48 -1
  365. package/lib-es/application/query/index.js.map +1 -1
  366. package/lib-es/components/BackToTop/BackToTop.js.map +1 -1
  367. package/lib-es/components/BackToTop/index.js.map +1 -1
  368. package/lib-es/components/Banner/AdSlotRender.js.map +1 -1
  369. package/lib-es/components/Banner/Banner.js.map +1 -1
  370. package/lib-es/components/Banner/BannerRender.js.map +1 -1
  371. package/lib-es/components/Banner/helpers.js.map +1 -1
  372. package/lib-es/components/Banner/index.js.map +1 -1
  373. package/lib-es/components/BlazeLink.js.map +1 -1
  374. package/lib-es/components/Breadcrumb/Breadcrumb.js.map +1 -1
  375. package/lib-es/components/Breadcrumb/index.js.map +1 -1
  376. package/lib-es/components/Button.js.map +1 -1
  377. package/lib-es/components/Card/Card.js.map +1 -1
  378. package/lib-es/components/Card/CardContainer.js +3 -7
  379. package/lib-es/components/Card/CardContainer.js.map +1 -1
  380. package/lib-es/components/Card/CardFactory.js +7 -4
  381. package/lib-es/components/Card/CardFactory.js.map +1 -1
  382. package/lib-es/components/Card/CardRender.js.map +1 -1
  383. package/lib-es/components/Card/constants.js.map +1 -1
  384. package/lib-es/components/Card/helpers/filter-query-setup.js.map +1 -1
  385. package/lib-es/components/Card/helpers/filters-setup.js.map +1 -1
  386. package/lib-es/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -1
  387. package/lib-es/components/Card/helpers/get-published-listing-url.js.map +1 -1
  388. package/lib-es/components/Card/helpers/index.js.map +1 -1
  389. package/lib-es/components/Card/helpers/should-return.js.map +1 -1
  390. package/lib-es/components/Card/helpers/should-skip-single-query.js.map +1 -1
  391. package/lib-es/components/Card/helpers/use-dynamic-size-key.js.map +1 -1
  392. package/lib-es/components/Card/index.js.map +1 -1
  393. package/lib-es/components/Carousel/Carousel.js.map +1 -1
  394. package/lib-es/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
  395. package/lib-es/components/Carousel/CarouselImage/index.js.map +1 -1
  396. package/lib-es/components/Carousel/CarouselRender/CarouselRender.js +2 -2
  397. package/lib-es/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
  398. package/lib-es/components/Carousel/CarouselRender/index.js.map +1 -1
  399. package/lib-es/components/Carousel/index.js.map +1 -1
  400. package/lib-es/components/CarouselWrapper.js +2 -2
  401. package/lib-es/components/CarouselWrapper.js.map +1 -1
  402. package/lib-es/components/ClickWrapper.js.map +1 -1
  403. package/lib-es/components/Code/Code.js.map +1 -1
  404. package/lib-es/components/Code/ScriptTag.js.map +1 -1
  405. package/lib-es/components/Code/helpers/index.js.map +1 -1
  406. package/lib-es/components/Code/helpers/wrap-script-tags.js.map +1 -1
  407. package/lib-es/components/Code/index.js.map +1 -1
  408. package/lib-es/components/DataSummary/DataSummaryFactory.js.map +1 -1
  409. package/lib-es/components/DataSummary/DataSummaryRender.js.map +1 -1
  410. package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -1
  411. package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
  412. package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js.map +1 -1
  413. package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map +1 -1
  414. package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
  415. package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js.map +1 -1
  416. package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.map +1 -1
  417. package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
  418. package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/index.js.map +1 -1
  419. package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.map +1 -1
  420. package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
  421. package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/index.js.map +1 -1
  422. package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.map +1 -1
  423. package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
  424. package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/index.js.map +1 -1
  425. package/lib-es/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
  426. package/lib-es/components/DataSummary/helpers/build-loop-props-content.js.map +1 -1
  427. package/lib-es/components/DataSummary/helpers/build-props-to-display-with-content.js.map +1 -1
  428. package/lib-es/components/DataSummary/helpers/get-data-summary-query.js.map +1 -1
  429. package/lib-es/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -1
  430. package/lib-es/components/DataSummary/helpers/get-link-to-published-content.js.map +1 -1
  431. package/lib-es/components/DataSummary/helpers/get-loop-props-limit.js.map +1 -1
  432. package/lib-es/components/DataSummary/helpers/get-prop-value.js.map +1 -1
  433. package/lib-es/components/DataSummary/helpers/get-value-from-array.js.map +1 -1
  434. package/lib-es/components/DataSummary/helpers/index.js.map +1 -1
  435. package/lib-es/components/DataSummary/helpers/parse-boolean-values.js.map +1 -1
  436. package/lib-es/components/DataSummary/helpers/strip-summary-props-content.js.map +1 -1
  437. package/lib-es/components/DataSummary/index.js.map +1 -1
  438. package/lib-es/components/EmailConfirm/EmailConfirm.js.map +1 -1
  439. package/lib-es/components/EmailConfirm/index.js.map +1 -1
  440. package/lib-es/components/EmailConfirm/mutation.js.map +1 -1
  441. package/lib-es/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
  442. package/lib-es/components/Image/GlobalLightbox/NavButton.js.map +1 -1
  443. package/lib-es/components/Image/GlobalLightbox/index.js.map +1 -1
  444. package/lib-es/components/Image/Image.js.map +1 -1
  445. package/lib-es/components/Image/ImageDetails.js.map +1 -1
  446. package/lib-es/components/Image/ImageFactory.js.map +1 -1
  447. package/lib-es/components/Image/ImageRender.js.map +1 -1
  448. package/lib-es/components/Image/Lightbox/Lightbox.js.map +1 -1
  449. package/lib-es/components/Image/Lightbox/index.js.map +1 -1
  450. package/lib-es/components/Image/index.js.map +1 -1
  451. package/lib-es/components/ItemListButton/ItemListButton.js +118 -0
  452. package/lib-es/components/ItemListButton/ItemListButton.js.map +1 -0
  453. package/lib-es/components/ItemListButton/index.js +3 -0
  454. package/lib-es/components/ItemListButton/index.js.map +1 -0
  455. package/lib-es/components/ItemListCounter/ItemListCounter.js +67 -0
  456. package/lib-es/components/ItemListCounter/ItemListCounter.js.map +1 -0
  457. package/lib-es/components/ItemListCounter/index.js +3 -0
  458. package/lib-es/components/ItemListCounter/index.js.map +1 -0
  459. package/lib-es/components/Layout/Layout.js.map +1 -1
  460. package/lib-es/components/Layout/constants.js.map +1 -1
  461. package/lib-es/components/Layout/helpers/check-if-row-has-columns.js.map +1 -1
  462. package/lib-es/components/Layout/helpers/get-styles-to-update.js.map +1 -1
  463. package/lib-es/components/Layout/helpers/index.js.map +1 -1
  464. package/lib-es/components/Layout/index.js.map +1 -1
  465. package/lib-es/components/LazyImage/LazyImage.js.map +1 -1
  466. package/lib-es/components/LazyImage/index.js.map +1 -1
  467. package/lib-es/components/List/ListBuilder.js +12 -6
  468. package/lib-es/components/List/ListBuilder.js.map +1 -1
  469. package/lib-es/components/List/ListFactory.js +33 -9
  470. package/lib-es/components/List/ListFactory.js.map +1 -1
  471. package/lib-es/components/List/ListRender.js.map +1 -1
  472. package/lib-es/components/List/components/Cards/CardRenderWithInfiniteScroll.js.map +1 -1
  473. package/lib-es/components/List/components/Cards/CardsRender.js.map +1 -1
  474. package/lib-es/components/List/components/Cards/CardsRenderItem.js.map +1 -1
  475. package/lib-es/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
  476. package/lib-es/components/List/components/Cards/index.js.map +1 -1
  477. package/lib-es/components/List/components/Full/FullRender.js.map +1 -1
  478. package/lib-es/components/List/components/Full/FullRenderItem.js.map +1 -1
  479. package/lib-es/components/List/components/Full/FullRenderWithInfiniteScroll.js.map +1 -1
  480. package/lib-es/components/List/components/Full/index.js.map +1 -1
  481. package/lib-es/components/List/components/Header/ListHeader.js.map +1 -1
  482. package/lib-es/components/List/components/Header/index.js.map +1 -1
  483. package/lib-es/components/List/components/Pagination/Classic.js.map +1 -1
  484. package/lib-es/components/List/components/Pagination/ListPagination.js.map +1 -1
  485. package/lib-es/components/List/components/Pagination/LoadMore.js.map +1 -1
  486. package/lib-es/components/List/components/Pagination/index.js.map +1 -1
  487. package/lib-es/components/List/components/helpers/check-if-should-render-banner.js.map +1 -1
  488. package/lib-es/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -1
  489. package/lib-es/components/List/components/helpers/index.js.map +1 -1
  490. package/lib-es/components/List/components/index.js.map +1 -1
  491. package/lib-es/components/List/constants.js.map +1 -1
  492. package/lib-es/components/List/helpers/build-az-aggregations.js.map +1 -1
  493. package/lib-es/components/List/helpers/build-az-url.js.map +1 -1
  494. package/lib-es/components/List/helpers/build-pagination-items.js.map +1 -1
  495. package/lib-es/components/List/helpers/build-pagination-url.js.map +1 -1
  496. package/lib-es/components/List/helpers/get-az-query-filter.js.map +1 -1
  497. package/lib-es/components/List/helpers/get-items-per-page-to-use.js.map +1 -1
  498. package/lib-es/components/List/helpers/get-sort-props.js.map +1 -1
  499. package/lib-es/components/List/helpers/index.js.map +1 -1
  500. package/lib-es/components/List/helpers/sort-aggs.js.map +1 -1
  501. package/lib-es/components/List/index.js.map +1 -1
  502. package/lib-es/components/Login/LoggedInMessage.js.map +1 -1
  503. package/lib-es/components/Login/Login.js.map +1 -1
  504. package/lib-es/components/Login/LoginForm.js.map +1 -1
  505. package/lib-es/components/Login/helpers/check-gtm-children.js.map +1 -1
  506. package/lib-es/components/Login/helpers/get-url-to-use.js.map +1 -1
  507. package/lib-es/components/Login/helpers/index.js.map +1 -1
  508. package/lib-es/components/Login/index.js.map +1 -1
  509. package/lib-es/components/Menu/Menu.js.map +1 -1
  510. package/lib-es/components/Menu/index.js.map +1 -1
  511. package/lib-es/components/MenuItem/MenuItem.js.map +1 -1
  512. package/lib-es/components/MenuItem/index.js.map +1 -1
  513. package/lib-es/components/Modal/Modal.js.map +1 -1
  514. package/lib-es/components/Modal/index.js.map +1 -1
  515. package/lib-es/components/PasswordReset/PasswordReset.js.map +1 -1
  516. package/lib-es/components/PasswordReset/helpers/index.js.map +1 -1
  517. package/lib-es/components/PasswordReset/helpers/validatePassword.js.map +1 -1
  518. package/lib-es/components/PasswordReset/index.js.map +1 -1
  519. package/lib-es/components/PasswordResetRequest/PasswordResetRequest.js.map +1 -1
  520. package/lib-es/components/PasswordResetRequest/index.js.map +1 -1
  521. package/lib-es/components/SearchContent/SearchContent.js +116 -0
  522. package/lib-es/components/SearchContent/SearchContent.js.map +1 -0
  523. package/lib-es/components/SearchContent/SearchContentItems.js +31 -0
  524. package/lib-es/components/SearchContent/SearchContentItems.js.map +1 -0
  525. package/lib-es/components/SearchContent/SearchContentResults.js +31 -0
  526. package/lib-es/components/SearchContent/SearchContentResults.js.map +1 -0
  527. package/lib-es/components/SearchContent/index.js +1 -172
  528. package/lib-es/components/SearchContent/index.js.map +1 -1
  529. package/lib-es/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
  530. package/lib-es/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
  531. package/lib-es/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -1
  532. package/lib-es/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
  533. package/lib-es/components/SearchFilter/SearchFilter/SearchFilter.js +11 -3
  534. package/lib-es/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
  535. package/lib-es/components/SearchFilter/SearchFilter/index.js.map +1 -1
  536. package/lib-es/components/SearchFilter/SearchFilterContainer.js.map +1 -1
  537. package/lib-es/components/SearchFilter/components/Checkbox.js.map +1 -1
  538. package/lib-es/components/SearchFilter/components/Range.js.map +1 -1
  539. package/lib-es/components/SearchFilter/components/Select.js.map +1 -1
  540. package/lib-es/components/SearchFilter/components/TextSearch.js.map +1 -1
  541. package/lib-es/components/SearchFilter/components/index.js.map +1 -1
  542. package/lib-es/components/SearchFilter/constants.js +1 -1
  543. package/lib-es/components/SearchFilter/constants.js.map +1 -1
  544. package/lib-es/components/SearchFilter/helpers/build-new-query.js.map +1 -1
  545. package/lib-es/components/SearchFilter/helpers/build-query.js.map +1 -1
  546. package/lib-es/components/SearchFilter/helpers/build-raw-query-stringified.js.map +1 -1
  547. package/lib-es/components/SearchFilter/helpers/calculate-min-max.js.map +1 -1
  548. package/lib-es/components/SearchFilter/helpers/calculate-step.js.map +1 -1
  549. package/lib-es/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -1
  550. package/lib-es/components/SearchFilter/helpers/decode-encode.js.map +1 -1
  551. package/lib-es/components/SearchFilter/helpers/get-display-value.js.map +1 -1
  552. package/lib-es/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
  553. package/lib-es/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -1
  554. package/lib-es/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -1
  555. package/lib-es/components/SearchFilter/helpers/get-range-value.js.map +1 -1
  556. package/lib-es/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
  557. package/lib-es/components/SearchFilter/helpers/get-select-options.js.map +1 -1
  558. package/lib-es/components/SearchFilter/helpers/index.js.map +1 -1
  559. package/lib-es/components/SearchFilter/helpers/is-device-desktop.js.map +1 -1
  560. package/lib-es/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
  561. package/lib-es/components/SearchFilter/index.js.map +1 -1
  562. package/lib-es/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
  563. package/lib-es/components/SearchFilterSort/constants.js.map +1 -1
  564. package/lib-es/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
  565. package/lib-es/components/SearchFilterSort/helpers/index.js.map +1 -1
  566. package/lib-es/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
  567. package/lib-es/components/SearchFilterSort/index.js.map +1 -1
  568. package/lib-es/components/SocialFollow/SFItem.js.map +1 -1
  569. package/lib-es/components/SocialFollow/SocialFollow.js.map +1 -1
  570. package/lib-es/components/SocialFollow/SocialFollowRender.js.map +1 -1
  571. package/lib-es/components/SocialFollow/index.js.map +1 -1
  572. package/lib-es/components/SocialFollow/sf.config.js.map +1 -1
  573. package/lib-es/components/SubMenu/SubMenu.js.map +1 -1
  574. package/lib-es/components/SubMenu/index.js.map +1 -1
  575. package/lib-es/components/TextBlock/TextBlockRender.js.map +1 -1
  576. package/lib-es/components/TextBlock/index.js.map +1 -1
  577. package/lib-es/components/Video/Video.js.map +1 -1
  578. package/lib-es/components/Video/VideoModal.js.map +1 -1
  579. package/lib-es/components/Video/VideoRender.js.map +1 -1
  580. package/lib-es/components/Video/index.js.map +1 -1
  581. package/lib-es/components/Video/providers/Default.js.map +1 -1
  582. package/lib-es/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
  583. package/lib-es/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
  584. package/lib-es/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
  585. package/lib-es/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
  586. package/lib-es/components/Video/providers/YouTube/helpers/index.js.map +1 -1
  587. package/lib-es/components/Video/providers/get-provider.js.map +1 -1
  588. package/lib-es/components/Video/providers/index.js.map +1 -1
  589. package/lib-es/components/Wrapper.js.map +1 -1
  590. package/lib-es/components/index.js +7 -1
  591. package/lib-es/components/index.js.map +1 -1
  592. package/lib-es/constants/componentsDefaultValues.js.map +1 -1
  593. package/lib-es/constants/index.js +2 -1
  594. package/lib-es/constants/index.js.map +1 -1
  595. package/lib-es/helpers/append-images.js.map +1 -1
  596. package/lib-es/helpers/build-az-filter.js.map +1 -1
  597. package/lib-es/helpers/build-image-properties.js.map +1 -1
  598. package/lib-es/helpers/build-inherited-filters.js.map +1 -1
  599. package/lib-es/helpers/build-link-extra-props.js.map +1 -1
  600. package/lib-es/helpers/build-props-query.js +11 -2
  601. package/lib-es/helpers/build-props-query.js.map +1 -1
  602. package/lib-es/helpers/build-query-fields.js.map +1 -1
  603. package/lib-es/helpers/build-raw-query-base.js.map +1 -1
  604. package/lib-es/helpers/build-raw-query.js.map +1 -1
  605. package/lib-es/helpers/build-search-values-checkbox-select.js.map +1 -1
  606. package/lib-es/helpers/build-search-values-text.js.map +1 -1
  607. package/lib-es/helpers/build-set-filters.js.map +1 -1
  608. package/lib-es/helpers/check-for-error.js.map +1 -1
  609. package/lib-es/helpers/check-props-to-use.js.map +1 -1
  610. package/lib-es/helpers/entities/constants.js.map +1 -1
  611. package/lib-es/helpers/get-banner-data.js.map +1 -1
  612. package/lib-es/helpers/get-click-wrapper-options.js.map +1 -1
  613. package/lib-es/helpers/get-current-offset.js.map +1 -1
  614. package/lib-es/helpers/get-dictionary-match.js.map +1 -1
  615. package/lib-es/helpers/get-display-count-data.js.map +1 -1
  616. package/lib-es/helpers/get-elasticsearch-operator.js.map +1 -1
  617. package/lib-es/helpers/get-entities-with-banner.js.map +1 -1
  618. package/lib-es/helpers/get-entity-data.js.map +1 -1
  619. package/lib-es/helpers/get-entity-render-props.js.map +1 -1
  620. package/lib-es/helpers/get-extra-az-bits.js.map +1 -1
  621. package/lib-es/helpers/get-filter-props.js.map +1 -1
  622. package/lib-es/helpers/get-filter-relation-keys.js.map +1 -1
  623. package/lib-es/helpers/get-generic-props.js.map +1 -1
  624. package/lib-es/helpers/get-generic-render-variables.js.map +1 -1
  625. package/lib-es/helpers/get-image-ids.js.map +1 -1
  626. package/lib-es/helpers/get-inherited-filters.js.map +1 -1
  627. package/lib-es/helpers/get-item-list-data.js +7 -0
  628. package/lib-es/helpers/get-item-list-data.js.map +1 -0
  629. package/lib-es/helpers/get-item-list-id.js +11 -0
  630. package/lib-es/helpers/get-item-list-id.js.map +1 -0
  631. package/lib-es/helpers/get-item-list-ids.js +13 -0
  632. package/lib-es/helpers/get-item-list-ids.js.map +1 -0
  633. package/lib-es/helpers/get-items-to-display-ids.js.map +1 -1
  634. package/lib-es/helpers/get-modifiers.js.map +1 -1
  635. package/lib-es/helpers/get-not-equal-query.js.map +1 -1
  636. package/lib-es/helpers/get-pagination-index.js.map +1 -1
  637. package/lib-es/helpers/get-parsed-prop-values.js.map +1 -1
  638. package/lib-es/helpers/get-parsed-summary-value.js.map +1 -1
  639. package/lib-es/helpers/get-prop-values.js.map +1 -1
  640. package/lib-es/helpers/get-query-filters.js.map +1 -1
  641. package/lib-es/helpers/get-query-props.js.map +1 -1
  642. package/lib-es/helpers/get-required-schemas.js.map +1 -1
  643. package/lib-es/helpers/get-sanitized-prop-values.js.map +1 -1
  644. package/lib-es/helpers/get-search-filter-type.js.map +1 -1
  645. package/lib-es/helpers/get-sort-by-field-name.js.map +1 -1
  646. package/lib-es/helpers/get-unpublished-entity-name.js.map +1 -1
  647. package/lib-es/helpers/get-updated-filter-by.js.map +1 -1
  648. package/lib-es/helpers/get-wrapped-value-with-link.js.map +1 -1
  649. package/lib-es/helpers/group-entities.js.map +1 -1
  650. package/lib-es/helpers/has-children.js.map +1 -1
  651. package/lib-es/helpers/index.js +3 -0
  652. package/lib-es/helpers/index.js.map +1 -1
  653. package/lib-es/helpers/inject-banner.js.map +1 -1
  654. package/lib-es/helpers/inject-banners-to-entities.js.map +1 -1
  655. package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.map +1 -1
  656. package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/index.js.map +1 -1
  657. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.map +1 -1
  658. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js.map +1 -1
  659. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js.map +1 -1
  660. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/index.js.map +1 -1
  661. package/lib-es/helpers/inject-multiple-banners/index.js.map +1 -1
  662. package/lib-es/helpers/inject-multiple-banners/inject-multiple-banners.js.map +1 -1
  663. package/lib-es/helpers/is-browser.js.map +1 -1
  664. package/lib-es/helpers/is-filter-entitys-id.js.map +1 -1
  665. package/lib-es/helpers/is-object.js.map +1 -1
  666. package/lib-es/helpers/is-using-relation-image.js.map +1 -1
  667. package/lib-es/helpers/parse-TextBlock.js.map +1 -1
  668. package/lib-es/helpers/parse-interval.js.map +1 -1
  669. package/lib-es/helpers/parse-props-to-display.js.map +1 -1
  670. package/lib-es/helpers/remove-extra-items.js.map +1 -1
  671. package/lib-es/helpers/remove-unwanted-characters.js.map +1 -1
  672. package/lib-es/helpers/render-children.js.map +1 -1
  673. package/lib-es/helpers/should-render-waypoint.js.map +1 -1
  674. package/lib-es/helpers/should-show-property.js.map +1 -1
  675. package/lib-es/helpers/sort-response-data.js.map +1 -1
  676. package/lib-es/helpers/split-children.js.map +1 -1
  677. package/lib-es/helpers/update-childrens-parent.js.map +1 -1
  678. package/lib-es/hooks/helpers/RenderComponent.js.map +1 -1
  679. package/lib-es/hooks/helpers/StoreImages.js.map +1 -1
  680. package/lib-es/hooks/helpers/append-gtm-classname.js.map +1 -1
  681. package/lib-es/hooks/helpers/buildPBComponents.js.map +1 -1
  682. package/lib-es/hooks/helpers/check-banner-insertion-set.js.map +1 -1
  683. package/lib-es/hooks/helpers/check-collisions.js.map +1 -1
  684. package/lib-es/hooks/helpers/constants.js.map +1 -1
  685. package/lib-es/hooks/helpers/get-banner-index.js.map +1 -1
  686. package/lib-es/hooks/helpers/get-banners-by-type.js.map +1 -1
  687. package/lib-es/hooks/helpers/get-lightbox-images.js.map +1 -1
  688. package/lib-es/hooks/helpers/getComponent.js.map +1 -1
  689. package/lib-es/hooks/helpers/index.js.map +1 -1
  690. package/lib-es/hooks/helpers/inject-element-banners.js.map +1 -1
  691. package/lib-es/hooks/helpers/inject-textblock-banners.js.map +1 -1
  692. package/lib-es/hooks/helpers/insert-banners.js.map +1 -1
  693. package/lib-es/hooks/helpers/update-targetings.js.map +1 -1
  694. package/lib-es/hooks/index.js.map +1 -1
  695. package/lib-es/hooks/use-banner-insertion.js.map +1 -1
  696. package/lib-es/hooks/use-check-mobile-screen.js.map +1 -1
  697. package/lib-es/hooks/use-get-entity-schema.js.map +1 -1
  698. package/lib-es/hooks/use-get-entity-schemas-as-obj.js.map +1 -1
  699. package/lib-es/hooks/use-get-image-id-from-relation.js.map +1 -1
  700. package/lib-es/hooks/use-get-images.js.map +1 -1
  701. package/lib-es/hooks/use-get-single-entity-schema.js.map +1 -1
  702. package/lib-es/hooks/use-page-builder.js.map +1 -1
  703. package/lib-es/index.js.map +1 -1
  704. package/lib-es/utils/component-map.js.map +1 -1
  705. package/lib-es/utils/get-class-modifiers.js.map +1 -1
  706. package/lib-es/utils/get-image-data.js.map +1 -1
  707. package/lib-es/utils/get-props-to-display-modifiers.js.map +1 -1
  708. package/lib-es/utils/index.js.map +1 -1
  709. package/lib-es/utils/is-object-empty.js.map +1 -1
  710. package/package.json +2 -2
  711. package/src/application/query/index.js +54 -1
  712. package/src/components/Card/CardContainer.js +2 -6
  713. package/src/components/Card/CardFactory.js +5 -3
  714. package/src/components/Carousel/CarouselRender/CarouselRender.js +2 -2
  715. package/src/components/CarouselWrapper.js +2 -2
  716. package/src/components/ItemListButton/ItemListButton.js +107 -0
  717. package/src/components/ItemListButton/index.js +3 -0
  718. package/src/components/ItemListCounter/ItemListCounter.js +68 -0
  719. package/src/components/ItemListCounter/index.js +3 -0
  720. package/src/components/List/ListBuilder.js +10 -5
  721. package/src/components/List/ListFactory.js +50 -12
  722. package/src/components/SearchContent/SearchContent.js +122 -0
  723. package/src/components/SearchContent/SearchContentItems.js +22 -0
  724. package/src/components/SearchContent/SearchContentResults.js +27 -0
  725. package/src/components/SearchContent/index.js +1 -177
  726. package/src/components/SearchFilter/SearchFilter/SearchFilter.js +10 -3
  727. package/src/components/SearchFilter/constants.js +1 -1
  728. package/src/components/index.js +7 -1
  729. package/src/constants/index.js +4 -1
  730. package/src/helpers/build-props-query.js +6 -3
  731. package/src/helpers/build-raw-query.js +1 -0
  732. package/src/helpers/get-item-list-data.js +6 -0
  733. package/src/helpers/get-item-list-id.js +11 -0
  734. package/src/helpers/get-item-list-ids.js +10 -0
  735. package/src/helpers/index.js +3 -0
  736. package/tests/helpers/mocks.js +4 -4
  737. package/tests/unit/src/components/Carousel/__snapshots__/Carousel.test.js.snap +2 -2
  738. package/tests/unit/src/components/SearchContent/SearchContent.test.js +29 -0
  739. package/tests/unit/src/components/SearchContent/__snapshots__/SearchContent.test.js.snap +9 -0
  740. package/tests/unit/src/components/SearchFilter/SearchFilter/SearchFilter.test.js +23 -1
  741. package/tests/unit/src/components/SearchFilter/SearchFilter/__snapshots__/SearchFilter.test.js.snap +4 -0
  742. package/tests/unit/src/components/__snapshots__/index.test.js.snap +8 -0
  743. package/tests/unit/src/helpers/build-props-query.test.js +43 -0
  744. package/tests/unit/src/helpers/get-item-list-data.test.js +28 -0
  745. package/tests/unit/src/helpers/get-item-list-id.test.js +20 -0
  746. package/tests/unit/src/helpers/get-item-list-ids.test.js +19 -0
  747. package/coverage/clover.xml +0 -3149
  748. package/coverage/coverage-final.json +0 -257
  749. package/coverage/lcov-report/HOC/index.html +0 -141
  750. package/coverage/lcov-report/HOC/index.js.html +0 -89
  751. package/coverage/lcov-report/HOC/withInfiniteScroll.js.html +0 -311
  752. package/coverage/lcov-report/HOC/withTitle.js.html +0 -185
  753. package/coverage/lcov-report/PBContext/index.html +0 -111
  754. package/coverage/lcov-report/PBContext/index.js.html +0 -95
  755. package/coverage/lcov-report/application/query/index.html +0 -111
  756. package/coverage/lcov-report/application/query/index.js.html +0 -482
  757. package/coverage/lcov-report/base.css +0 -224
  758. package/coverage/lcov-report/block-navigation.js +0 -79
  759. package/coverage/lcov-report/components/Banner/Banner.js.html +0 -260
  760. package/coverage/lcov-report/components/Banner/BannerRender.js.html +0 -464
  761. package/coverage/lcov-report/components/Banner/helpers.js.html +0 -515
  762. package/coverage/lcov-report/components/Banner/index.html +0 -156
  763. package/coverage/lcov-report/components/Banner/index.js.html +0 -89
  764. package/coverage/lcov-report/components/BlazeLink.js.html +0 -197
  765. package/coverage/lcov-report/components/Button.js.html +0 -353
  766. package/coverage/lcov-report/components/Card/Card.js.html +0 -548
  767. package/coverage/lcov-report/components/Card/CardContainer.js.html +0 -407
  768. package/coverage/lcov-report/components/Card/CardFactory.js.html +0 -218
  769. package/coverage/lcov-report/components/Card/CardRender.js.html +0 -806
  770. package/coverage/lcov-report/components/Card/constants.js.html +0 -89
  771. package/coverage/lcov-report/components/Card/helpers/get-dynamic-grid-classes.js.html +0 -137
  772. package/coverage/lcov-report/components/Card/helpers/get-published-listing-url.js.html +0 -92
  773. package/coverage/lcov-report/components/Card/helpers/index.html +0 -156
  774. package/coverage/lcov-report/components/Card/helpers/index.js.html +0 -89
  775. package/coverage/lcov-report/components/Card/helpers/use-dynamic-size-key.js.html +0 -98
  776. package/coverage/lcov-report/components/Card/index.html +0 -186
  777. package/coverage/lcov-report/components/Card/index.js.html +0 -89
  778. package/coverage/lcov-report/components/Carousel/Carousel.js.html +0 -185
  779. package/coverage/lcov-report/components/Carousel/CarouselImage/CarouselImage.js.html +0 -224
  780. package/coverage/lcov-report/components/Carousel/CarouselImage/index.html +0 -126
  781. package/coverage/lcov-report/components/Carousel/CarouselImage/index.js.html +0 -89
  782. package/coverage/lcov-report/components/Carousel/CarouselRender/CarouselRender.js.html +0 -335
  783. package/coverage/lcov-report/components/Carousel/CarouselRender/index.html +0 -126
  784. package/coverage/lcov-report/components/Carousel/CarouselRender/index.js.html +0 -89
  785. package/coverage/lcov-report/components/Carousel/index.html +0 -126
  786. package/coverage/lcov-report/components/Carousel/index.js.html +0 -89
  787. package/coverage/lcov-report/components/ClickWrapper.js.html +0 -191
  788. package/coverage/lcov-report/components/Code.js.html +0 -155
  789. package/coverage/lcov-report/components/DataSummary/DataSummaryFactory.js.html +0 -293
  790. package/coverage/lcov-report/components/DataSummary/DataSummaryRender.js.html +0 -272
  791. package/coverage/lcov-report/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.html +0 -149
  792. package/coverage/lcov-report/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.html +0 -134
  793. package/coverage/lcov-report/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.html +0 -141
  794. package/coverage/lcov-report/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js.html +0 -89
  795. package/coverage/lcov-report/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.html +0 -140
  796. package/coverage/lcov-report/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.html +0 -161
  797. package/coverage/lcov-report/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.html +0 -141
  798. package/coverage/lcov-report/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js.html +0 -89
  799. package/coverage/lcov-report/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.html +0 -140
  800. package/coverage/lcov-report/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.html +0 -188
  801. package/coverage/lcov-report/components/DataSummary/DataSummaryTypes/LargeSummary/index.html +0 -141
  802. package/coverage/lcov-report/components/DataSummary/DataSummaryTypes/LargeSummary/index.js.html +0 -89
  803. package/coverage/lcov-report/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.html +0 -140
  804. package/coverage/lcov-report/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.html +0 -185
  805. package/coverage/lcov-report/components/DataSummary/DataSummaryTypes/ListSummary/index.html +0 -141
  806. package/coverage/lcov-report/components/DataSummary/DataSummaryTypes/ListSummary/index.js.html +0 -89
  807. package/coverage/lcov-report/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.html +0 -140
  808. package/coverage/lcov-report/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.html +0 -182
  809. package/coverage/lcov-report/components/DataSummary/DataSummaryTypes/TextSummary/index.html +0 -141
  810. package/coverage/lcov-report/components/DataSummary/DataSummaryTypes/TextSummary/index.js.html +0 -89
  811. package/coverage/lcov-report/components/DataSummary/DataSummaryTypes/index.html +0 -111
  812. package/coverage/lcov-report/components/DataSummary/DataSummaryTypes/index.js.html +0 -137
  813. package/coverage/lcov-report/components/DataSummary/helpers/build-props-to-display-with-content.js.html +0 -188
  814. package/coverage/lcov-report/components/DataSummary/helpers/get-data-summary-query.js.html +0 -131
  815. package/coverage/lcov-report/components/DataSummary/helpers/get-link-to-published-content.js.html +0 -110
  816. package/coverage/lcov-report/components/DataSummary/helpers/get-prop-value.js.html +0 -152
  817. package/coverage/lcov-report/components/DataSummary/helpers/get-value-from-array.js.html +0 -131
  818. package/coverage/lcov-report/components/DataSummary/helpers/index.html +0 -201
  819. package/coverage/lcov-report/components/DataSummary/helpers/index.js.html +0 -113
  820. package/coverage/lcov-report/components/DataSummary/helpers/strip-summary-props-content.js.html +0 -137
  821. package/coverage/lcov-report/components/DataSummary/index.html +0 -141
  822. package/coverage/lcov-report/components/DataSummary/index.js.html +0 -89
  823. package/coverage/lcov-report/components/Image/GlobalLightbox/GlobalLightbox.js.html +0 -674
  824. package/coverage/lcov-report/components/Image/GlobalLightbox/NavButton.js.html +0 -158
  825. package/coverage/lcov-report/components/Image/GlobalLightbox/index.html +0 -141
  826. package/coverage/lcov-report/components/Image/GlobalLightbox/index.js.html +0 -95
  827. package/coverage/lcov-report/components/Image/Image.js.html +0 -542
  828. package/coverage/lcov-report/components/Image/ImageDetails.js.html +0 -149
  829. package/coverage/lcov-report/components/Image/ImageFactory.js.html +0 -260
  830. package/coverage/lcov-report/components/Image/ImageRender.js.html +0 -299
  831. package/coverage/lcov-report/components/Image/Lightbox/Lightbox.js.html +0 -311
  832. package/coverage/lcov-report/components/Image/Lightbox/index.html +0 -126
  833. package/coverage/lcov-report/components/Image/Lightbox/index.js.html +0 -89
  834. package/coverage/lcov-report/components/Image/index.html +0 -171
  835. package/coverage/lcov-report/components/Image/index.js.html +0 -89
  836. package/coverage/lcov-report/components/Layout/Layout.js.html +0 -227
  837. package/coverage/lcov-report/components/Layout/constants.js.html +0 -98
  838. package/coverage/lcov-report/components/Layout/helpers/check-if-row-has-columns.js.html +0 -143
  839. package/coverage/lcov-report/components/Layout/helpers/get-styles-to-update.js.html +0 -107
  840. package/coverage/lcov-report/components/Layout/helpers/index.html +0 -141
  841. package/coverage/lcov-report/components/Layout/helpers/index.js.html +0 -92
  842. package/coverage/lcov-report/components/Layout/index.html +0 -141
  843. package/coverage/lcov-report/components/Layout/index.js.html +0 -89
  844. package/coverage/lcov-report/components/LazyImage/LazyImage.js.html +0 -161
  845. package/coverage/lcov-report/components/LazyImage/index.html +0 -126
  846. package/coverage/lcov-report/components/LazyImage/index.js.html +0 -89
  847. package/coverage/lcov-report/components/List/ListBuilder.js.html +0 -551
  848. package/coverage/lcov-report/components/List/ListFactory.js.html +0 -569
  849. package/coverage/lcov-report/components/List/ListRender.js.html +0 -356
  850. package/coverage/lcov-report/components/List/components/Cards/CardsRender.js.html +0 -305
  851. package/coverage/lcov-report/components/List/components/Cards/CardsRenderItem.js.html +0 -389
  852. package/coverage/lcov-report/components/List/components/Cards/CardsRenderWrapper.js.html +0 -173
  853. package/coverage/lcov-report/components/List/components/Cards/index.html +0 -156
  854. package/coverage/lcov-report/components/List/components/Cards/index.js.html +0 -89
  855. package/coverage/lcov-report/components/List/components/Full/FullRender.js.html +0 -242
  856. package/coverage/lcov-report/components/List/components/Full/FullRenderItem.js.html +0 -344
  857. package/coverage/lcov-report/components/List/components/Full/index.html +0 -141
  858. package/coverage/lcov-report/components/List/components/Full/index.js.html +0 -89
  859. package/coverage/lcov-report/components/List/components/Pagination/Classic.js.html +0 -206
  860. package/coverage/lcov-report/components/List/components/Pagination/ListPagination.js.html +0 -266
  861. package/coverage/lcov-report/components/List/components/Pagination/LoadMore.js.html +0 -182
  862. package/coverage/lcov-report/components/List/components/Pagination/index.html +0 -156
  863. package/coverage/lcov-report/components/List/components/Pagination/index.js.html +0 -89
  864. package/coverage/lcov-report/components/List/components/helpers/check-if-should-render-banner.js.html +0 -116
  865. package/coverage/lcov-report/components/List/components/helpers/check-if-should-render-gtm.js.html +0 -125
  866. package/coverage/lcov-report/components/List/components/helpers/index.html +0 -141
  867. package/coverage/lcov-report/components/List/components/helpers/index.js.html +0 -86
  868. package/coverage/lcov-report/components/List/components/index.html +0 -111
  869. package/coverage/lcov-report/components/List/components/index.js.html +0 -92
  870. package/coverage/lcov-report/components/List/constants.js.html +0 -95
  871. package/coverage/lcov-report/components/List/helpers/build-pagination-items.js.html +0 -182
  872. package/coverage/lcov-report/components/List/helpers/build-pagination-url.js.html +0 -113
  873. package/coverage/lcov-report/components/List/helpers/index.html +0 -141
  874. package/coverage/lcov-report/components/List/helpers/index.js.html +0 -83
  875. package/coverage/lcov-report/components/List/index.html +0 -171
  876. package/coverage/lcov-report/components/List/index.js.html +0 -89
  877. package/coverage/lcov-report/components/Login/Login.js.html +0 -359
  878. package/coverage/lcov-report/components/Login/index.html +0 -141
  879. package/coverage/lcov-report/components/Login/index.js.html +0 -89
  880. package/coverage/lcov-report/components/Login/loginMutation.js.html +0 -113
  881. package/coverage/lcov-report/components/Modal/Modal.js.html +0 -167
  882. package/coverage/lcov-report/components/Modal/index.html +0 -126
  883. package/coverage/lcov-report/components/Modal/index.js.html +0 -89
  884. package/coverage/lcov-report/components/SearchFilter/SearchFilter/FiltersList.js.html +0 -371
  885. package/coverage/lcov-report/components/SearchFilter/SearchFilter/MobileBottom.js.html +0 -218
  886. package/coverage/lcov-report/components/SearchFilter/SearchFilter/MobileTop.js.html +0 -146
  887. package/coverage/lcov-report/components/SearchFilter/SearchFilter/SearchFilter.js.html +0 -455
  888. package/coverage/lcov-report/components/SearchFilter/SearchFilter/index.html +0 -171
  889. package/coverage/lcov-report/components/SearchFilter/SearchFilter/index.js.html +0 -89
  890. package/coverage/lcov-report/components/SearchFilter/SearchFilterContainer.js.html +0 -398
  891. package/coverage/lcov-report/components/SearchFilter/components/Checkbox.js.html +0 -368
  892. package/coverage/lcov-report/components/SearchFilter/components/Range.js.html +0 -401
  893. package/coverage/lcov-report/components/SearchFilter/components/Select.js.html +0 -245
  894. package/coverage/lcov-report/components/SearchFilter/components/TextSearch.js.html +0 -206
  895. package/coverage/lcov-report/components/SearchFilter/components/index.html +0 -171
  896. package/coverage/lcov-report/components/SearchFilter/components/index.js.html +0 -98
  897. package/coverage/lcov-report/components/SearchFilter/constants.js.html +0 -239
  898. package/coverage/lcov-report/components/SearchFilter/helpers/build-new-query.js.html +0 -98
  899. package/coverage/lcov-report/components/SearchFilter/helpers/build-query-params.js.html +0 -155
  900. package/coverage/lcov-report/components/SearchFilter/helpers/build-raw-query-stringified.js.html +0 -221
  901. package/coverage/lcov-report/components/SearchFilter/helpers/calculate-min-max.js.html +0 -119
  902. package/coverage/lcov-report/components/SearchFilter/helpers/calculate-step.js.html +0 -92
  903. package/coverage/lcov-report/components/SearchFilter/helpers/check-if-range-updated.js.html +0 -104
  904. package/coverage/lcov-report/components/SearchFilter/helpers/decode-encode.js.html +0 -95
  905. package/coverage/lcov-report/components/SearchFilter/helpers/get-display-value.js.html +0 -98
  906. package/coverage/lcov-report/components/SearchFilter/helpers/get-intersected-prop.js.html +0 -98
  907. package/coverage/lcov-report/components/SearchFilter/helpers/get-range-value.js.html +0 -155
  908. package/coverage/lcov-report/components/SearchFilter/helpers/get-search-values.js.html +0 -308
  909. package/coverage/lcov-report/components/SearchFilter/helpers/get-select-options.js.html +0 -134
  910. package/coverage/lcov-report/components/SearchFilter/helpers/get-updated-ranges.js.html +0 -101
  911. package/coverage/lcov-report/components/SearchFilter/helpers/index.html +0 -381
  912. package/coverage/lcov-report/components/SearchFilter/helpers/index.js.html +0 -200
  913. package/coverage/lcov-report/components/SearchFilter/helpers/is-device-desktop.js.html +0 -95
  914. package/coverage/lcov-report/components/SearchFilter/helpers/remove-props-from-updated-ranges.js.html +0 -116
  915. package/coverage/lcov-report/components/SearchFilter/helpers/remove-updated-ranges.js.html +0 -98
  916. package/coverage/lcov-report/components/SearchFilter/helpers/set-updated-ranges-in-storage.js.html +0 -113
  917. package/coverage/lcov-report/components/SearchFilter/helpers/set-updated-ranges.js.html +0 -116
  918. package/coverage/lcov-report/components/SearchFilter/index.html +0 -141
  919. package/coverage/lcov-report/components/SearchFilter/index.js.html +0 -89
  920. package/coverage/lcov-report/components/SearchFilterSort/SearchFilterSort.js.html +0 -233
  921. package/coverage/lcov-report/components/SearchFilterSort/constants.js.html +0 -98
  922. package/coverage/lcov-report/components/SearchFilterSort/helpers/handle-sort-update.js.html +0 -158
  923. package/coverage/lcov-report/components/SearchFilterSort/helpers/index.html +0 -141
  924. package/coverage/lcov-report/components/SearchFilterSort/helpers/index.js.html +0 -86
  925. package/coverage/lcov-report/components/SearchFilterSort/helpers/update-sort.js.html +0 -110
  926. package/coverage/lcov-report/components/SearchFilterSort/index.html +0 -141
  927. package/coverage/lcov-report/components/SearchFilterSort/index.js.html +0 -89
  928. package/coverage/lcov-report/components/SocialFollow/SFItem.js.html +0 -152
  929. package/coverage/lcov-report/components/SocialFollow/SocialFollow.js.html +0 -179
  930. package/coverage/lcov-report/components/SocialFollow/SocialFollowRender.js.html +0 -182
  931. package/coverage/lcov-report/components/SocialFollow/index.html +0 -171
  932. package/coverage/lcov-report/components/SocialFollow/index.js.html +0 -89
  933. package/coverage/lcov-report/components/SocialFollow/sf.config.js.html +0 -206
  934. package/coverage/lcov-report/components/TextBlock/TextBlockRender.js.html +0 -113
  935. package/coverage/lcov-report/components/TextBlock/index.html +0 -126
  936. package/coverage/lcov-report/components/TextBlock/index.js.html +0 -188
  937. package/coverage/lcov-report/components/Video/Video.js.html +0 -266
  938. package/coverage/lcov-report/components/Video/VideoRender.js.html +0 -137
  939. package/coverage/lcov-report/components/Video/index.html +0 -141
  940. package/coverage/lcov-report/components/Video/index.js.html +0 -89
  941. package/coverage/lcov-report/components/Video/providers/Default.js.html +0 -149
  942. package/coverage/lcov-report/components/Video/providers/JWPlayer/JWPlayerController.js.html +0 -212
  943. package/coverage/lcov-report/components/Video/providers/JWPlayer/JWPlayerProvider.js.html +0 -311
  944. package/coverage/lcov-report/components/Video/providers/JWPlayer/index.html +0 -126
  945. package/coverage/lcov-report/components/Video/providers/YouTube/YouTubeProvider.js.html +0 -179
  946. package/coverage/lcov-report/components/Video/providers/YouTube/helpers/index.html +0 -111
  947. package/coverage/lcov-report/components/Video/providers/YouTube/helpers/index.js.html +0 -116
  948. package/coverage/lcov-report/components/Video/providers/YouTube/index.html +0 -111
  949. package/coverage/lcov-report/components/Video/providers/get-provider.js.html +0 -131
  950. package/coverage/lcov-report/components/Video/providers/index.html +0 -141
  951. package/coverage/lcov-report/components/Video/providers/index.js.html +0 -89
  952. package/coverage/lcov-report/components/Wrapper.js.html +0 -161
  953. package/coverage/lcov-report/components/index.html +0 -186
  954. package/coverage/lcov-report/components/index.js.html +0 -167
  955. package/coverage/lcov-report/constants/componentsDefaultValues.js.html +0 -143
  956. package/coverage/lcov-report/constants/index.html +0 -126
  957. package/coverage/lcov-report/constants/index.js.html +0 -671
  958. package/coverage/lcov-report/favicon.png +0 -0
  959. package/coverage/lcov-report/helpers/build-image-properties.js.html +0 -137
  960. package/coverage/lcov-report/helpers/build-inherited-filters.js.html +0 -350
  961. package/coverage/lcov-report/helpers/build-link-extra-props.js.html +0 -119
  962. package/coverage/lcov-report/helpers/build-props-query.js.html +0 -263
  963. package/coverage/lcov-report/helpers/build-query-fields.js.html +0 -119
  964. package/coverage/lcov-report/helpers/build-raw-query-base.js.html +0 -353
  965. package/coverage/lcov-report/helpers/build-raw-query.js.html +0 -323
  966. package/coverage/lcov-report/helpers/build-search-values-checkbox-select.js.html +0 -278
  967. package/coverage/lcov-report/helpers/build-search-values-text.js.html +0 -125
  968. package/coverage/lcov-report/helpers/build-set-filters.js.html +0 -197
  969. package/coverage/lcov-report/helpers/check-for-error.js.html +0 -110
  970. package/coverage/lcov-report/helpers/check-props-to-use.js.html +0 -110
  971. package/coverage/lcov-report/helpers/check-sort-by.js.html +0 -92
  972. package/coverage/lcov-report/helpers/entities/constants.js.html +0 -116
  973. package/coverage/lcov-report/helpers/entities/index.html +0 -111
  974. package/coverage/lcov-report/helpers/get-banner-data.js.html +0 -92
  975. package/coverage/lcov-report/helpers/get-click-wrapper-options.js.html +0 -170
  976. package/coverage/lcov-report/helpers/get-current-offset.js.html +0 -101
  977. package/coverage/lcov-report/helpers/get-dictionary-match.js.html +0 -116
  978. package/coverage/lcov-report/helpers/get-display-count-data.js.html +0 -119
  979. package/coverage/lcov-report/helpers/get-elasticsearch-operator.js.html +0 -95
  980. package/coverage/lcov-report/helpers/get-entities-with-banner.js.html +0 -107
  981. package/coverage/lcov-report/helpers/get-entity-data.js.html +0 -113
  982. package/coverage/lcov-report/helpers/get-entity-render-props.js.html +0 -128
  983. package/coverage/lcov-report/helpers/get-filter-props.js.html +0 -242
  984. package/coverage/lcov-report/helpers/get-filter-relation-keys.js.html +0 -107
  985. package/coverage/lcov-report/helpers/get-generic-props.js.html +0 -113
  986. package/coverage/lcov-report/helpers/get-generic-render-variables.js.html +0 -200
  987. package/coverage/lcov-report/helpers/get-image-ids.js.html +0 -185
  988. package/coverage/lcov-report/helpers/get-inherited-filters.js.html +0 -122
  989. package/coverage/lcov-report/helpers/get-items-to-display-ids.js.html +0 -110
  990. package/coverage/lcov-report/helpers/get-modifiers.js.html +0 -137
  991. package/coverage/lcov-report/helpers/get-not-equal-query.js.html +0 -107
  992. package/coverage/lcov-report/helpers/get-pagination-index.js.html +0 -107
  993. package/coverage/lcov-report/helpers/get-parsed-prop-values.js.html +0 -197
  994. package/coverage/lcov-report/helpers/get-parsed-summary-value.js.html +0 -128
  995. package/coverage/lcov-report/helpers/get-prop-values.js.html +0 -143
  996. package/coverage/lcov-report/helpers/get-query-filters.js.html +0 -149
  997. package/coverage/lcov-report/helpers/get-query-props.js.html +0 -182
  998. package/coverage/lcov-report/helpers/get-required-schemas.js.html +0 -164
  999. package/coverage/lcov-report/helpers/get-sanitized-prop-values.js.html +0 -92
  1000. package/coverage/lcov-report/helpers/get-search-filter-type.js.html +0 -101
  1001. package/coverage/lcov-report/helpers/get-sort-by-field-name.js.html +0 -146
  1002. package/coverage/lcov-report/helpers/get-unpublished-entity-name.js.html +0 -113
  1003. package/coverage/lcov-report/helpers/get-updated-filter-by.js.html +0 -158
  1004. package/coverage/lcov-report/helpers/get-wrapped-value-with-link.js.html +0 -155
  1005. package/coverage/lcov-report/helpers/group-entities.js.html +0 -113
  1006. package/coverage/lcov-report/helpers/has-children.js.html +0 -125
  1007. package/coverage/lcov-report/helpers/index.html +0 -1041
  1008. package/coverage/lcov-report/helpers/index.js.html +0 -233
  1009. package/coverage/lcov-report/helpers/inject-banner.js.html +0 -125
  1010. package/coverage/lcov-report/helpers/inject-banners-to-entities.js.html +0 -128
  1011. package/coverage/lcov-report/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.html +0 -128
  1012. package/coverage/lcov-report/helpers/inject-multiple-banners/get-banners-for-entities/index.html +0 -126
  1013. package/coverage/lcov-report/helpers/inject-multiple-banners/get-banners-for-entities/index.js.html +0 -89
  1014. package/coverage/lcov-report/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.html +0 -131
  1015. package/coverage/lcov-report/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js.html +0 -179
  1016. package/coverage/lcov-report/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.html +0 -126
  1017. package/coverage/lcov-report/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js.html +0 -89
  1018. package/coverage/lcov-report/helpers/inject-multiple-banners/get-banners-for-nodes/index.html +0 -126
  1019. package/coverage/lcov-report/helpers/inject-multiple-banners/get-banners-for-nodes/index.js.html +0 -89
  1020. package/coverage/lcov-report/helpers/inject-multiple-banners/index.html +0 -126
  1021. package/coverage/lcov-report/helpers/inject-multiple-banners/index.js.html +0 -89
  1022. package/coverage/lcov-report/helpers/inject-multiple-banners/inject-multiple-banners.js.html +0 -119
  1023. package/coverage/lcov-report/helpers/is-browser.js.html +0 -89
  1024. package/coverage/lcov-report/helpers/is-filter-entitys-id.js.html +0 -122
  1025. package/coverage/lcov-report/helpers/is-object.js.html +0 -89
  1026. package/coverage/lcov-report/helpers/is-using-relation-image.js.html +0 -92
  1027. package/coverage/lcov-report/helpers/parse-interval.js.html +0 -89
  1028. package/coverage/lcov-report/helpers/parse-props-to-display.js.html +0 -194
  1029. package/coverage/lcov-report/helpers/remove-extra-items.js.html +0 -119
  1030. package/coverage/lcov-report/helpers/remove-unwanted-characters.js.html +0 -140
  1031. package/coverage/lcov-report/helpers/render-children.js.html +0 -152
  1032. package/coverage/lcov-report/helpers/should-render-waypoint.js.html +0 -92
  1033. package/coverage/lcov-report/helpers/should-show-property.js.html +0 -89
  1034. package/coverage/lcov-report/helpers/sort-response-data.js.html +0 -107
  1035. package/coverage/lcov-report/helpers/split-children.js.html +0 -233
  1036. package/coverage/lcov-report/helpers/update-childrens-parent.js.html +0 -140
  1037. package/coverage/lcov-report/hooks/helpers/RenderList.js.html +0 -233
  1038. package/coverage/lcov-report/hooks/helpers/StoreImages.js.html +0 -215
  1039. package/coverage/lcov-report/hooks/helpers/append-gtm-classname.js.html +0 -188
  1040. package/coverage/lcov-report/hooks/helpers/buildPBComponents.js.html +0 -329
  1041. package/coverage/lcov-report/hooks/helpers/check-banner-insertion-set.js.html +0 -125
  1042. package/coverage/lcov-report/hooks/helpers/constants.js.html +0 -98
  1043. package/coverage/lcov-report/hooks/helpers/get-banner-index.js.html +0 -92
  1044. package/coverage/lcov-report/hooks/helpers/get-lightbox-images.js.html +0 -242
  1045. package/coverage/lcov-report/hooks/helpers/getComponent.js.html +0 -95
  1046. package/coverage/lcov-report/hooks/helpers/index.html +0 -261
  1047. package/coverage/lcov-report/hooks/helpers/index.js.html +0 -89
  1048. package/coverage/lcov-report/hooks/helpers/insert-banners.js.html +0 -362
  1049. package/coverage/lcov-report/hooks/index.html +0 -201
  1050. package/coverage/lcov-report/hooks/index.js.html +0 -98
  1051. package/coverage/lcov-report/hooks/use-get-entity-schema.js.html +0 -167
  1052. package/coverage/lcov-report/hooks/use-get-entity-schemas-as-obj.js.html +0 -113
  1053. package/coverage/lcov-report/hooks/use-get-image-id-from-relation.js.html +0 -143
  1054. package/coverage/lcov-report/hooks/use-get-images.js.html +0 -143
  1055. package/coverage/lcov-report/hooks/use-get-single-entity-schema.js.html +0 -125
  1056. package/coverage/lcov-report/hooks/use-page-builder.js.html +0 -155
  1057. package/coverage/lcov-report/index.html +0 -936
  1058. package/coverage/lcov-report/prettify.css +0 -1
  1059. package/coverage/lcov-report/prettify.js +0 -2
  1060. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  1061. package/coverage/lcov-report/sorter.js +0 -170
  1062. package/coverage/lcov-report/utils/component-map.js.html +0 -182
  1063. package/coverage/lcov-report/utils/get-class-modifiers.js.html +0 -287
  1064. package/coverage/lcov-report/utils/get-image-data.js.html +0 -137
  1065. package/coverage/lcov-report/utils/get-props-to-display-modifiers.js.html +0 -92
  1066. package/coverage/lcov-report/utils/index.html +0 -186
  1067. package/coverage/lcov-report/utils/index.js.html +0 -101
  1068. package/coverage/lcov-report/utils/is-object-empty.js.html +0 -89
  1069. package/coverage/lcov.info +0 -7222
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/build-props-query.js"],"names":["CATEGORY_ID","ID","PREHEADER_PROP","HEADLINE_PROP","defaultProps","categoryProps","checkProps","props","Object","keys","filter","prop","length","buildPropsQuery","data","extraProps","cardOptions","extraPropsHaveCategory","includes","typeBasedProps","shouldAddCategoryProps","getTypeBaseProps","allProps","uniqueProps","Set","basicProps","i","arr","indexOf","complexProps","buildComplexProps","join","map","nested","split","base","nestedProps","extraProp","startsWith","jointNestedProps","isCard","displayCategory","displayThumbnail","getEntitySchema","interfaces","properties","dynamicProperties","relations","isContent","hasCategory","hasPreheader","push","getCategoyProps","getContentProps","find","localField"],"mappings":"AAAA,SAASA,WAAT,EAAsBC,EAAtB,EAA0BC,cAA1B,EAA0CC,aAA1C,QAA+D,cAA/D;AAEA,MAAMC,YAAY,GAAG,CAACH,EAAD,EAAK,MAAL,CAArB;AACA,MAAMI,aAAa,GAAG,kCAAtB;;AAEA,MAAMC,UAAU,GAAGC,KAAK,IACtB,CAAC,EAAEA,KAAK,IAAIC,MAAM,CAACC,IAAP,CAAYF,KAAZ,EAAmBG,MAAnB,CAA0BC,IAAI,IAAIA,IAAI,KAAKX,WAA3C,EAAwDY,MAAnE,CADH;;AAGA,MAAMC,eAAe,GAAG,CAACC,IAAD,EAAOC,UAAU,GAAG,EAApB,EAAwBC,WAAW,GAAG,IAAtC,KAA+C;AACrE,QAAMC,sBAAsB,GAAG,CAAC,CAACF,UAAU,CAACL,MAAX,CAAkBC,IAAI,IAAIA,IAAI,CAACO,QAAL,CAAc,WAAd,CAA1B,EAAsDN,MAAvF;AAEA,QAAM;AAAEO,IAAAA,cAAF;AAAkBC,IAAAA;AAAlB,MAA6CC,gBAAgB,CACjEP,IADiE,EAE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const defaultProps = [ID, 'name'];\nconst categoryProps = 'id publishedListingPage{id, url}';\n\nconst checkProps = props =>\n !!(props && Object.keys(props).filter(prop => prop === CATEGORY_ID).length);\n\nconst buildPropsQuery = (data, extraProps = [], cardOptions = null) => {\n const extraPropsHaveCategory = !!extraProps.filter(prop => prop.includes('category.')).length;\n\n const { typeBasedProps, shouldAddCategoryProps } = getTypeBaseProps(\n data,\n cardOptions,\n extraPropsHaveCategory\n );\n\n const allProps = [...typeBasedProps, ...extraProps];\n\n const uniqueProps = [...new Set([...allProps])];\n\n const basicProps = uniqueProps\n .filter(prop => prop && !prop.includes('.'))\n .filter((prop, i, arr) => arr.indexOf(prop) === i);\n const complexProps = buildComplexProps(shouldAddCategoryProps, uniqueProps);\n\n return [...basicProps, ...complexProps].join(',');\n};\n\nconst buildComplexProps = (shouldAddCategoryProps, props) =>\n props\n .filter(prop => prop && prop.includes('.'))\n .map(nested => nested.split('.')[0])\n .filter((prop, i, arr) => arr.indexOf(prop) === i)\n .map(base => {\n const nestedProps = props\n .filter(\n (extraProp, i, arr) =>\n extraProp && extraProp.startsWith(`${base}.`) && arr.indexOf(extraProp) === i\n )\n .map(nested => nested.split('.')[1]);\n\n const jointNestedProps = nestedProps.join(',');\n if (base === 'category' && shouldAddCategoryProps)\n return `${base}{${jointNestedProps}, ${categoryProps}}`;\n if (base.includes('published')) {\n return `${base}{${jointNestedProps},url}`;\n }\n return `${base}{${jointNestedProps}}`;\n });\n\nconst getTypeBaseProps = (data, cardOptions, extraPropsHaveCategory) => {\n const isCard = !!cardOptions;\n const { displayCategory = true, displayThumbnail = true } = cardOptions || {};\n\n const shouldAddCategoryProps =\n (isCard && displayCategory) || (!isCard && !extraPropsHaveCategory);\n\n if (!isCard) return { typeBasedProps: [ID], shouldAddCategoryProps };\n\n const { getEntitySchema } = data;\n const { interfaces, properties, dynamicProperties, relations } = getEntitySchema;\n\n const isContent = !!interfaces.includes('content/content');\n const hasCategory = checkProps(properties) || checkProps(dynamicProperties);\n const hasPreheader = properties[PREHEADER_PROP];\n\n const typeBasedProps = [...defaultProps];\n\n typeBasedProps.push(...getCategoyProps(shouldAddCategoryProps, hasCategory, hasPreheader));\n typeBasedProps.push(...getContentProps(isContent));\n\n if (displayThumbnail && relations.find(({ localField }) => localField === 'image')) {\n typeBasedProps.push('image.id', 'image.url', 'image.data');\n }\n\n return { typeBasedProps, shouldAddCategoryProps };\n};\n\nconst getContentProps = isContent => (isContent ? ['url', 'sponsored', 'featured'] : []);\n\nconst getCategoyProps = (shouldAddCategoryProps, hasCategory, hasPreheader) => {\n if (!shouldAddCategoryProps) return [];\n\n const props = [];\n\n if (hasCategory) {\n props.push('category.name', 'category.listingPageId', 'category.listingPageEntity');\n }\n\n if (hasPreheader) {\n props.push(`${PREHEADER_PROP}{name}`);\n props.push(HEADLINE_PROP);\n }\n\n return props;\n};\n\nexport default buildPropsQuery;\n"],"file":"build-props-query.js"}
1
+ {"version":3,"file":"build-props-query.js","names":["CATEGORY_ID","ID","PREHEADER_PROP","HEADLINE_PROP","defaultProps","categoryProps","checkProps","props","Object","keys","filter","prop","length","buildPropsQuery","data","extraProps","cardOptions","extraPropsHaveCategory","includes","typeBasedProps","shouldAddCategoryProps","getTypeBaseProps","allProps","uniqueProps","Set","basicProps","i","arr","indexOf","complexProps","buildComplexProps","join","getEntitySchema","relations","map","nested","split","base","matchingRelation","find","localField","nestedProps","extraProp","startsWith","push","jointNestedProps","isCard","displayCategory","displayThumbnail","interfaces","properties","dynamicProperties","isContent","hasCategory","hasPreheader","getCategoyProps","getContentProps","url"],"sources":["../../src/helpers/build-props-query.js"],"sourcesContent":["import { CATEGORY_ID, ID, PREHEADER_PROP, HEADLINE_PROP } from '../constants';\n\nconst defaultProps = [ID, 'name'];\nconst categoryProps = 'id publishedListingPage{id, url}';\n\nconst checkProps = props =>\n !!(props && Object.keys(props).filter(prop => prop === CATEGORY_ID).length);\n\nconst buildPropsQuery = (data, extraProps = [], cardOptions = null) => {\n const extraPropsHaveCategory = !!extraProps.filter(prop => prop.includes('category.')).length;\n\n const { typeBasedProps, shouldAddCategoryProps } = getTypeBaseProps(\n data,\n cardOptions,\n extraPropsHaveCategory\n );\n\n const allProps = [...typeBasedProps, ...extraProps];\n\n const uniqueProps = [...new Set([...allProps])];\n\n const basicProps = uniqueProps\n .filter(prop => prop && !prop.includes('.'))\n .filter((prop, i, arr) => arr.indexOf(prop) === i);\n const complexProps = buildComplexProps(shouldAddCategoryProps, uniqueProps, data);\n return [...basicProps, ...complexProps].join(',');\n};\n\nconst buildComplexProps = (shouldAddCategoryProps, props, { getEntitySchema: { relations } }) =>\n props\n .filter(prop => prop && prop.includes('.'))\n .map(nested => nested.split('.')[0])\n .filter((prop, i, arr) => arr.indexOf(prop) === i)\n .map(base => {\n const matchingRelation = relations.find(({ localField }) => localField === base);\n const nestedProps = props\n .filter(\n (extraProp, i, arr) =>\n extraProp && extraProp.startsWith(`${base}.`) && arr.indexOf(extraProp) === i\n )\n .map(nested => nested.split('.')[1]);\n if (matchingRelation && !nestedProps.includes('id')) nestedProps.push('id');\n\n const jointNestedProps = nestedProps.join(',');\n if (base === 'category' && shouldAddCategoryProps)\n return `${base}{${jointNestedProps}, ${categoryProps}}`;\n if (base.includes('published')) {\n return `${base}{${jointNestedProps},url}`;\n }\n return `${base}{${jointNestedProps}}`;\n });\n\nconst getTypeBaseProps = (data, cardOptions, extraPropsHaveCategory) => {\n const isCard = !!cardOptions;\n const { displayCategory = true, displayThumbnail = true } = cardOptions || {};\n\n const shouldAddCategoryProps =\n (isCard && displayCategory) || (!isCard && !extraPropsHaveCategory);\n\n if (!isCard) return { typeBasedProps: [ID], shouldAddCategoryProps };\n\n const { getEntitySchema } = data;\n const { interfaces, properties, dynamicProperties, relations } = getEntitySchema;\n\n const isContent = !!interfaces.includes('content/content');\n const hasCategory = checkProps(properties) || checkProps(dynamicProperties);\n const hasPreheader = properties[PREHEADER_PROP];\n\n const typeBasedProps = [...defaultProps];\n\n typeBasedProps.push(...getCategoyProps(shouldAddCategoryProps, hasCategory, hasPreheader));\n typeBasedProps.push(...getContentProps(isContent));\n\n if (properties.url || dynamicProperties.url) typeBasedProps.push('url');\n\n if (displayThumbnail && relations.find(({ localField }) => localField === 'image')) {\n typeBasedProps.push('image.id', 'image.url', 'image.data');\n }\n\n return { typeBasedProps, shouldAddCategoryProps };\n};\n\nconst getContentProps = isContent => (isContent ? ['url', 'sponsored', 'featured'] : []);\n\nconst getCategoyProps = (shouldAddCategoryProps, hasCategory, hasPreheader) => {\n if (!shouldAddCategoryProps) return [];\n\n const props = [];\n\n if (hasCategory) {\n props.push('category.name', 'category.listingPageId', 'category.listingPageEntity');\n }\n\n if (hasPreheader) {\n props.push(`${PREHEADER_PROP}{name}`);\n props.push(HEADLINE_PROP);\n }\n\n return props;\n};\n\nexport default buildPropsQuery;\n"],"mappings":"AAAA,SAASA,WAAT,EAAsBC,EAAtB,EAA0BC,cAA1B,EAA0CC,aAA1C,QAA+D,cAA/D;AAEA,MAAMC,YAAY,GAAG,CAACH,EAAD,EAAK,MAAL,CAArB;AACA,MAAMI,aAAa,GAAG,kCAAtB;;AAEA,MAAMC,UAAU,GAAGC,KAAK,IACtB,CAAC,EAAEA,KAAK,IAAIC,MAAM,CAACC,IAAP,CAAYF,KAAZ,EAAmBG,MAAnB,CAA0BC,IAAI,IAAIA,IAAI,KAAKX,WAA3C,EAAwDY,MAAnE,CADH;;AAGA,MAAMC,eAAe,GAAG,CAACC,IAAD,EAAOC,UAAU,GAAG,EAApB,EAAwBC,WAAW,GAAG,IAAtC,KAA+C;EACrE,MAAMC,sBAAsB,GAAG,CAAC,CAACF,UAAU,CAACL,MAAX,CAAkBC,IAAI,IAAIA,IAAI,CAACO,QAAL,CAAc,WAAd,CAA1B,EAAsDN,MAAvF;EAEA,MAAM;IAAEO,cAAF;IAAkBC;EAAlB,IAA6CC,gBAAgB,CACjEP,IADiE,EAEjEE,WAFiE,EAGjEC,sBAHiE,CAAnE;EAMA,MAAMK,QAAQ,GAAG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J,EAAkB;IAChB/C,KAAK,CAACqC,IAAN,CAAY,GAAE1C,cAAe,QAA7B;IACAK,KAAK,CAACqC,IAAN,CAAWzC,aAAX;EACD;;EAED,OAAOI,KAAP;AACD,CAfD;;AAiBA,eAAeM,eAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/build-query-fields.js"],"names":["buildQueryFields","sanitizedEntityFields","entityType","isFullList"],"mappings":"AAAA,MAAMA,gBAAgB,GAAG,CAACC,qBAAD,EAAwBC,UAAxB,EAAoCC,UAApC,KACtB;AACH,aAAaD,UAAW;AACxB,QAAQD,qBAAsB;AAC9B;AACA;AACA,QAAQE,UAAU,GAAG,uBAAH,GAA6B,EAAG;AAClD;AACA;AACA;AACA,GAVA;;AAYA,eAAeH,gBAAf","sourcesContent":["const buildQueryFields = (sanitizedEntityFields, entityType, isFullList) =>\n `results {\n ... on ${entityType} {\n ${sanitizedEntityFields}\n __typename\n id\n ${isFullList ? 'pageBuilderComponents' : ''}\n }\n },\n total\n `;\n\nexport default buildQueryFields;\n"],"file":"build-query-fields.js"}
1
+ {"version":3,"file":"build-query-fields.js","names":["buildQueryFields","sanitizedEntityFields","entityType","isFullList"],"sources":["../../src/helpers/build-query-fields.js"],"sourcesContent":["const buildQueryFields = (sanitizedEntityFields, entityType, isFullList) =>\n `results {\n ... on ${entityType} {\n ${sanitizedEntityFields}\n __typename\n id\n ${isFullList ? 'pageBuilderComponents' : ''}\n }\n },\n total\n `;\n\nexport default buildQueryFields;\n"],"mappings":"AAAA,MAAMA,gBAAgB,GAAG,CAACC,qBAAD,EAAwBC,UAAxB,EAAoCC,UAApC,KACtB;AACH,aAAaD,UAAW;AACxB,QAAQD,qBAAsB;AAC9B;AACA;AACA,QAAQE,UAAU,GAAG,uBAAH,GAA6B,EAAG;AAClD;AACA;AACA;AACA,GAVA;;AAYA,eAAeH,gBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/build-raw-query-base.js"],"names":["getItemsToDisplayIds","OR","OR_OPERATOR","KEYWORD","buildCheckboxFilters","checkboxFilters","reduce","acc","checkboxFilter","push","match","buildFilterValues","listFilterValues","relations","stringProps","listFilterValuesKeys","Object","keys","map","key","values","el","updatedKey","isRelation","includes","relationName","relationProp","split","relation","filter","localField","entityIdentifier","fieldName","bool","should","buildItemsToDisplayValues","itemsToDisplay","length","itemToDisplayIds","ids","buildRawQueryBase","docType","id","filterValues","filterOperator","addListFiltersToQuery","listFilterFinalValues","checkboxFiltersValue","itemsToDisplayValues","isOperatorOr","queryFilters","baseBoolObject","must","term","mustNot","undefined","queryFilter","minimum_should_match","must_not"],"mappings":";;;;;;AAAA,OAAOA,oBAAP,MAAiC,4BAAjC;AACA,SAASC,EAAT,EAAaC,WAAb,EAA0BC,OAA1B,QAAyC,cAAzC;;AAEA,MAAMC,oBAAoB,GAAGC,eAAe,IAC1CA,eAAe,CAACC,MAAhB,CAAuB,CAACC,GAAD,EAAMC,cAAN,KAAyB;AAC9CD,EAAAA,GAAG,CAACE,IAAJ,CAAS;AAAEC,IAAAA,KAAK,EAAE;AAAE,OAACF,cAAD,GAAkB;AAApB;AAAT,GAAT;AACA,SAAOD,GAAP;AACD,CAHD,EAGG,EAHH,CADF;;AAMA,MAAMI,iBAAiB,GAAG,CAACC,gBAAD,EAAmBC,SAAnB,EAA8BC,WAA9B,KAA8C;AACtE,QAAMC,oBAAoB,GAAGC,MAAM,CAACC,IAAP,CAAYL,gBAAZ,CAA7B;AAEA,SAAOG,oBAAoB,CAACG,GAArB,CAAyBC,GAAG,IAAI;AACrC,UAAMC,MAAM,GAAGR,gBAAgB,CAACO,GAAD,CAAhB,CAAsBD,GAAtB,CAA0BG,EAAE,IAAI;AAC7C,UAAIC,UAAU,GAAGH,GAAjB;AAEA,YAAMI,UAAU,GAAGJ,GAAG,CAACK,QAAJ,CAAa,GAAb,CAAnB;;AAEA,UAAID,UAAJ,EAAgB;AACd,cAAM,CAACE,YAAD,EAAeC,YAAf,IAA+BP,GAAG,C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MAAAA,IAAI,EAAEkB;AADA,KAFV;AAKEO,IAAAA,QAAQ,EAAEJ;AALZ;AAOD,CAlDD;;AAoDA,eAAed,iBAAf","sourcesContent":["import getItemsToDisplayIds from './get-items-to-display-ids';\nimport { OR, OR_OPERATOR, KEYWORD } from '../constants';\n\nconst buildCheckboxFilters = checkboxFilters =>\n checkboxFilters.reduce((acc, checkboxFilter) => {\n acc.push({ match: { [checkboxFilter]: true } });\n return acc;\n }, []);\n\nconst buildFilterValues = (listFilterValues, relations, stringProps) => {\n const listFilterValuesKeys = Object.keys(listFilterValues);\n\n return listFilterValuesKeys.map(key => {\n const values = listFilterValues[key].map(el => {\n let updatedKey = key;\n\n const isRelation = key.includes('.');\n\n if (isRelation) {\n const [relationName, relationProp] = key.split('.');\n const [relation] = relations.filter(({ localField }) => localField === relationName);\n const { entityIdentifier = '' } = relation || {};\n if (entityIdentifier && entityIdentifier !== relationName)\n updatedKey = `${entityIdentifier}.${relationProp}`;\n }\n const fieldName = stringProps.includes(updatedKey) ? `${key}.${KEYWORD}` : key;\n return { match: { [fieldName]: el } };\n });\n return { bool: { should: values } };\n });\n};\n\nconst buildItemsToDisplayValues = itemsToDisplay => {\n if (!itemsToDisplay || !itemsToDisplay.length) return [];\n const itemToDisplayIds = getItemsToDisplayIds(itemsToDisplay);\n return [{ ids: { values: itemToDisplayIds } }];\n};\n\nconst buildRawQueryBase = ({\n docType,\n id,\n filterValues: { checkboxFilters = [], listFilterValues = {} } = {},\n filterOperator,\n relations,\n stringProps,\n itemsToDisplay,\n addListFiltersToQuery = false\n}) => {\n const listFilterFinalValues = buildFilterValues(listFilterValues, relations, stringProps);\n const checkboxFiltersValue = buildCheckboxFilters(checkboxFilters);\n const itemsToDisplayValues = buildItemsToDisplayValues(itemsToDisplay);\n const isOperatorOr = filterOperator === OR;\n\n const queryFilters = [];\n const baseBoolObject = {\n must: [\n {\n term: {\n docType\n }\n },\n ...itemsToDisplayValues,\n ...checkboxFiltersValue\n ]\n };\n\n if (isOperatorOr) {\n if (addListFiltersToQuery) {\n queryFilters.push(...listFilterFinalValues);\n } else {\n baseBoolObject.must.push({ bool: { [OR_OPERATOR]: [...listFilterFinalValues] } });\n }\n } else {\n baseBoolObject.must.push(...listFilterFinalValues);\n }\n\n const mustNot = id ? [{ ids: { values: [id] } }] : undefined;\n\n const queryFilter = queryFilters.length\n ? { [OR_OPERATOR]: queryFilters, minimum_should_match: 1 }\n : {};\n return {\n ...queryFilter,\n filter: {\n bool: baseBoolObject\n },\n must_not: mustNot\n };\n};\n\nexport default buildRawQueryBase;\n"],"file":"build-raw-query-base.js"}
1
+ {"version":3,"file":"build-raw-query-base.js","names":["getItemsToDisplayIds","OR","OR_OPERATOR","KEYWORD","buildCheckboxFilters","checkboxFilters","reduce","acc","checkboxFilter","push","match","buildFilterValues","listFilterValues","relations","stringProps","listFilterValuesKeys","Object","keys","map","key","values","el","updatedKey","isRelation","includes","relationName","relationProp","split","relation","filter","localField","entityIdentifier","fieldName","bool","should","buildItemsToDisplayValues","itemsToDisplay","length","itemToDisplayIds","ids","buildRawQueryBase","docType","id","filterValues","filterOperator","addListFiltersToQuery","listFilterFinalValues","checkboxFiltersValue","itemsToDisplayValues","isOperatorOr","queryFilters","baseBoolObject","must","term","mustNot","undefined","queryFilter","minimum_should_match","must_not"],"sources":["../../src/helpers/build-raw-query-base.js"],"sourcesContent":["import getItemsToDisplayIds from './get-items-to-display-ids';\nimport { OR, OR_OPERATOR, KEYWORD } from '../constants';\n\nconst buildCheckboxFilters = checkboxFilters =>\n checkboxFilters.reduce((acc, checkboxFilter) => {\n acc.push({ match: { [checkboxFilter]: true } });\n return acc;\n }, []);\n\nconst buildFilterValues = (listFilterValues, relations, stringProps) => {\n const listFilterValuesKeys = Object.keys(listFilterValues);\n\n return listFilterValuesKeys.map(key => {\n const values = listFilterValues[key].map(el => {\n let updatedKey = key;\n\n const isRelation = key.includes('.');\n\n if (isRelation) {\n const [relationName, relationProp] = key.split('.');\n const [relation] = relations.filter(({ localField }) => localField === relationName);\n const { entityIdentifier = '' } = relation || {};\n if (entityIdentifier && entityIdentifier !== relationName)\n updatedKey = `${entityIdentifier}.${relationProp}`;\n }\n const fieldName = stringProps.includes(updatedKey) ? `${key}.${KEYWORD}` : key;\n return { match: { [fieldName]: el } };\n });\n return { bool: { should: values } };\n });\n};\n\nconst buildItemsToDisplayValues = itemsToDisplay => {\n if (!itemsToDisplay || !itemsToDisplay.length) return [];\n const itemToDisplayIds = getItemsToDisplayIds(itemsToDisplay);\n return [{ ids: { values: itemToDisplayIds } }];\n};\n\nconst buildRawQueryBase = ({\n docType,\n id,\n filterValues: { checkboxFilters = [], listFilterValues = {} } = {},\n filterOperator,\n relations,\n stringProps,\n itemsToDisplay,\n addListFiltersToQuery = false\n}) => {\n const listFilterFinalValues = buildFilterValues(listFilterValues, relations, stringProps);\n const checkboxFiltersValue = buildCheckboxFilters(checkboxFilters);\n const itemsToDisplayValues = buildItemsToDisplayValues(itemsToDisplay);\n const isOperatorOr = filterOperator === OR;\n\n const queryFilters = [];\n const baseBoolObject = {\n must: [\n {\n term: {\n docType\n }\n },\n ...itemsToDisplayValues,\n ...checkboxFiltersValue\n ]\n };\n\n if (isOperatorOr) {\n if (addListFiltersToQuery) {\n queryFilters.push(...listFilterFinalValues);\n } else {\n baseBoolObject.must.push({ bool: { [OR_OPERATOR]: [...listFilterFinalValues] } });\n }\n } else {\n baseBoolObject.must.push(...listFilterFinalValues);\n }\n\n const mustNot = id ? [{ ids: { values: [id] } }] : undefined;\n\n const queryFilter = queryFilters.length\n ? { [OR_OPERATOR]: queryFilters, minimum_should_match: 1 }\n : {};\n return {\n ...queryFilter,\n filter: {\n bool: baseBoolObject\n },\n must_not: mustNot\n };\n};\n\nexport default buildRawQueryBase;\n"],"mappings":";;;;;;AAAA,OAAOA,oBAAP,MAAiC,4BAAjC;AACA,SAASC,EAAT,EAAaC,WAAb,EAA0BC,OAA1B,QAAyC,cAAzC;;AAEA,MAAMC,oBAAoB,GAAGC,e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AAI,EAAE;UAAE,CAAC/B,WAAD,GAAe,CAAC,GAAG4C,qBAAJ;QAAjB;MAAR,CAAzB;IACD;EACF,CAND,MAMO;IACLK,cAAc,CAACC,IAAf,CAAoB3C,IAApB,CAAyB,GAAGqC,qBAA5B;EACD;;EAED,MAAMQ,OAAO,GAAGZ,EAAE,GAAG,CAAC;IAAEH,GAAG,EAAE;MAAEnB,MAAM,EAAE,CAACsB,EAAD;IAAV;EAAP,CAAD,CAAH,GAAiCa,SAAnD;EAEA,MAAMC,WAAW,GAAGN,YAAY,CAACb,MAAb,GAChB;IAAE,CAACnC,WAAD,GAAegD,YAAjB;IAA+BO,oBAAoB,EAAE;EAArD,CADgB,GAEhB,EAFJ;EAGA,uCACKD,WADL;IAEE3B,MAAM,EAAE;MACNI,IAAI,EAAEkB;IADA,CAFV;IAKEO,QAAQ,EAAEJ;EALZ;AAOD,CAlDD;;AAoDA,eAAed,iBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/build-raw-query.js"],"names":["buildRawQueryBase","getItemsToDisplayIds","getExtraAzBits","buildAzFilter","AND_OPERATOR","buildRawQuery","docType","operator","searchValues","filterData","id","itemsToDisplay","shouldApplySort","azOptions","searchValuesText","searchValuesCheckboxSelectRange","searchValuesCheckboxOr","filterValues","filterOperator","relations","stringProps","azFilter","shouldReturnAggs","isAZ","searchValuesTextCheckboxSelectJoined","searchValuesTextCheckboxOr","length","finalValue","finalValueWithCheckboxOrValues","must","bool","should","finalValueIfNoCheckboxOrValues","mustValues","query","azQueryBits","itemsToDisplayIds","push","ids","values","sort","_script","type","script","lang","source","params","sortOrder","order"],"mappings":";;;;;;AAAA,OAAOA,iBAAP,MAA8B,wBAA9B;AACA,OAAOC,oBAAP,MAAiC,4BAAjC;AACA,OAAOC,cAAP,MAA2B,qBAA3B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,SAASC,YAAT,QAA6B,cAA7B;;AAEA,MAAMC,aAAa,GAAG,CACpBC,OADoB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AAf","sourcesContent":["import buildRawQueryBase from './build-raw-query-base';\nimport getItemsToDisplayIds from './get-items-to-display-ids';\nimport getExtraAzBits from './get-extra-az-bits';\nimport buildAzFilter from './build-az-filter';\nimport { AND_OPERATOR } from '../constants';\n\nconst buildRawQuery = (\n docType,\n operator,\n searchValues,\n filterData,\n id,\n itemsToDisplay,\n shouldApplySort,\n azOptions\n) => {\n const {\n searchValuesText,\n searchValuesCheckboxSelectRange,\n searchValuesCheckboxOr\n } = searchValues;\n\n const { filterValues, filterOperator, relations, stringProps, azFilter } = filterData;\n const { shouldReturnAggs, isAZ } = azOptions || {};\n const searchValuesTextCheckboxSelectJoined =\n operator === AND_OPERATOR ? [...searchValuesText, ...searchValuesCheckboxSelectRange] : [];\n let searchValuesTextCheckboxOr = searchValuesText;\n if (searchValuesCheckboxOr.length) {\n searchValuesTextCheckboxOr = [...searchValuesText, ...searchValuesCheckboxOr];\n }\n\n let finalValue;\n\n if (searchValuesTextCheckboxSelectJoined.length) {\n const finalValueWithCheckboxOrValues = {\n must: [...searchValuesTextCheckboxSelectJoined, { bool: { should: searchValuesCheckboxOr } }]\n };\n const finalValueIfNoCheckboxOrValues = { must: searchValuesTextCheckboxSelectJoined };\n finalValue = searchValuesCheckboxOr.length\n ? finalValueWithCheckboxOrValues\n : finalValueIfNoCheckboxOrValues;\n } else {\n finalValue = {\n must: [...searchValuesCheckboxSelectRange, { bool: { should: searchValuesTextCheckboxOr } }]\n };\n }\n const mustValues = [\n {\n bool: finalValue\n }\n ];\n\n buildAzFilter(azFilter, mustValues);\n\n const query = {\n bool: {\n must: mustValues,\n ...buildRawQueryBase({ docType, id, filterValues, filterOperator, relations, stringProps })\n }\n };\n const azQueryBits = getExtraAzBits(shouldReturnAggs, isAZ, azFilter);\n\n if (itemsToDisplay && itemsToDisplay.length) {\n const itemsToDisplayIds = getItemsToDisplayIds(itemsToDisplay);\n query.bool.must.push({ ids: { values: itemsToDisplayIds } });\n if (shouldApplySort) {\n return {\n query,\n sort: {\n _script: {\n type: 'number',\n script: {\n lang: 'painless',\n source:\n \"!doc['id.keyword'].empty ? params.sortOrder.indexOf(doc['id.keyword'].value) : 0\",\n params: {\n sortOrder: itemsToDisplayIds\n }\n },\n order: 'asc'\n }\n },\n ...azQueryBits\n };\n }\n }\n\n return isAZ\n ? {\n query,\n ...azQueryBits\n }\n : query;\n};\n\nexport default buildRawQuery;\n"],"file":"build-raw-query.js"}
1
+ {"version":3,"file":"build-raw-query.js","names":["buildRawQueryBase","getItemsToDisplayIds","getExtraAzBits","buildAzFilter","AND_OPERATOR","buildRawQuery","docType","operator","searchValues","filterData","id","itemsToDisplay","shouldApplySort","azOptions","searchValuesText","searchValuesCheckboxSelectRange","searchValuesCheckboxOr","filterValues","filterOperator","relations","stringProps","azFilter","shouldReturnAggs","isAZ","searchValuesTextCheckboxSelectJoined","searchValuesTextCheckboxOr","length","finalValue","finalValueWithCheckboxOrValues","must","bool","should","finalValueIfNoCheckboxOrValues","mustValues","query","azQueryBits","itemsToDisplayIds","push","ids","values","sort","_script","type","script","lang","source","params","sortOrder","order"],"sources":["../../src/helpers/build-raw-query.js"],"sourcesContent":["import buildRawQueryBase from './build-raw-query-base';\nimport getItemsToDisplayIds from './get-items-to-display-ids';\nimport getExtraAzBits from './get-extra-az-bits';\nimport buildAzFilter from './build-az-filter';\nimport { AND_OPERATOR } from '../constants';\n\nconst buildRawQuery = (\n docType,\n operator,\n searchValues,\n filterData,\n id,\n itemsToDisplay,\n shouldApplySort,\n azOptions\n) => {\n const {\n searchValuesText,\n searchValuesCheckboxSelectRange,\n searchValuesCheckboxOr\n } = searchValues;\n\n const { filterValues, filterOperator, relations, stringProps, azFilter } = filterData;\n const { shouldReturnAggs, isAZ } = azOptions || {};\n const searchValuesTextCheckboxSelectJoined =\n operator === AND_OPERATOR ? [...searchValuesText, ...searchValuesCheckboxSelectRange] : [];\n let searchValuesTextCheckboxOr = searchValuesText;\n if (searchValuesCheckboxOr.length) {\n searchValuesTextCheckboxOr = [...searchValuesText, ...searchValuesCheckboxOr];\n }\n\n let finalValue;\n\n if (searchValuesTextCheckboxSelectJoined.length) {\n const finalValueWithCheckboxOrValues = {\n must: [...searchValuesTextCheckboxSelectJoined, { bool: { should: searchValuesCheckboxOr } }]\n };\n const finalValueIfNoCheckboxOrValues = { must: searchValuesTextCheckboxSelectJoined };\n finalValue = searchValuesCheckboxOr.length\n ? finalValueWithCheckboxOrValues\n : finalValueIfNoCheckboxOrValues;\n } else {\n finalValue = {\n must: [...searchValuesCheckboxSelectRange, { bool: { should: searchValuesTextCheckboxOr } }]\n };\n }\n const mustValues = [\n {\n bool: finalValue\n }\n ];\n\n buildAzFilter(azFilter, mustValues);\n\n const query = {\n bool: {\n must: mustValues,\n ...buildRawQueryBase({ docType, id, filterValues, filterOperator, relations, stringProps })\n }\n };\n const azQueryBits = getExtraAzBits(shouldReturnAggs, isAZ, azFilter);\n\n if (itemsToDisplay && itemsToDisplay.length) {\n const itemsToDisplayIds = getItemsToDisplayIds(itemsToDisplay);\n\n query.bool.must.push({ ids: { values: itemsToDisplayIds } });\n if (shouldApplySort) {\n return {\n query,\n sort: {\n _script: {\n type: 'number',\n script: {\n lang: 'painless',\n source:\n \"!doc['id.keyword'].empty ? params.sortOrder.indexOf(doc['id.keyword'].value) : 0\",\n params: {\n sortOrder: itemsToDisplayIds\n }\n },\n order: 'asc'\n }\n },\n ...azQueryBits\n };\n }\n }\n\n return isAZ\n ? {\n query,\n ...azQueryBits\n }\n : query;\n};\n\nexport default buildRawQuery;\n"],"mappings":";;;;;;AAAA,OAAOA,iBAAP,MAA8B,wBAA9B;AACA,OAAOC,oBAAP,MAAiC,4BAAjC;AACA,OAAOC,cAAP,MAA2B,qBAA3B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,SAASC,YAAT,QAA6B,cAA7B;;AAEA,MAAMC,aAAa,GAAG,CACpBC,OADoB,EAEpBC,QAFoB,EAGpBC,YAHoB,EAIpBC,UAJoB,EAKpBC,EALoB,EAMp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EI;IADJ,GAECjC,iBAAiB,CAAC;MAAEM,OAAF;MAAWI,EAAX;MAAeO,YAAf;MAA6BC,cAA7B;MAA6CC,SAA7C;MAAwDC;IAAxD,CAAD,CAFlB;EADQ,CAAd;EAMA,MAAMe,WAAW,GAAGjC,cAAc,CAACoB,gBAAD,EAAmBC,IAAnB,EAAyBF,QAAzB,CAAlC;;EAEA,IAAIV,cAAc,IAAIA,cAAc,CAACe,MAArC,EAA6C;IAC3C,MAAMU,iBAAiB,GAAGnC,oBAAoB,CAACU,cAAD,CAA9C;IAEAuB,KAAK,CAACJ,IAAN,CAAWD,IAAX,CAAgBQ,IAAhB,CAAqB;MAAEC,GAAG,EAAE;QAAEC,MAAM,EAAEH;MAAV;IAAP,CAArB;;IACA,IAAIxB,eAAJ,EAAqB;MACnB;QACEsB,KADF;QAEEM,IAAI,EAAE;UACJC,OAAO,EAAE;YACPC,IAAI,EAAE,QADC;YAEPC,MAAM,EAAE;cACNC,IAAI,EAAE,UADA;cAENC,MAAM,EACJ,kFAHI;cAINC,MAAM,EAAE;gBACNC,SAAS,EAAEX;cADL;YAJF,CAFD;YAUPY,KAAK,EAAE;UAVA;QADL;MAFR,GAgBKb,WAhBL;IAkBD;EACF;;EAED,OAAOZ,IAAI;IAELW;EAFK,GAGFC,WAHE,IAKPD,KALJ;AAMD,CAxFD;;AA0FA,eAAe7B,aAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/build-search-values-checkbox-select.js"],"names":["flatten","SEARCH_TERM","AND","KEYWORD","buildFieldName","fieldName","getFiltersProps","filters","map","propsToDisplay","buildSearchValuesCheckboxSelect","query","rangeFilters","checkboxFilters","selectFilters","queryParams","Object","keys","filter","param","rangeFilterProps","checkboxFilterProps","selectFilterProps","values","valuesOr","reduce","acc","queryParam","isQueryParamString","includes","min","max","split","push","range","gte","Number","lte","match","checkboxFilter","firstPropToDisplay","length","shouldBuildCheckboxOrValues","operator","fieldToPush","forEach","value"],"mappings":"AAAA,OAA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Aed,+BAAf","sourcesContent":["import flatten from 'lodash.flatten';\nimport { SEARCH_TERM, AND, KEYWORD } from '../constants';\n\nconst buildFieldName = fieldName => `${fieldName}.${KEYWORD}`;\n\nconst getFiltersProps = filters => flatten(filters.map(({ propsToDisplay }) => propsToDisplay));\n\nconst buildSearchValuesCheckboxSelect = (query, rangeFilters, checkboxFilters, selectFilters) => {\n const queryParams = Object.keys(query).filter(param => param !== SEARCH_TERM);\n\n const rangeFilterProps = getFiltersProps(rangeFilters);\n const checkboxFilterProps = getFiltersProps(checkboxFilters);\n const selectFilterProps = getFiltersProps(selectFilters);\n\n const { values, valuesOr } = queryParams.reduce(\n (acc, queryParam) => {\n const isQueryParamString = typeof query[queryParam] === 'string';\n if (isQueryParamString) {\n if (rangeFilterProps.includes(queryParam)) {\n const [min, max] = query[queryParam].split('-');\n acc.values.push({\n range: {\n [queryParam]: {\n gte: Number(min),\n lte: Number(max)\n }\n }\n });\n } else if (\n checkboxFilterProps.includes(queryParam) ||\n selectFilterProps.includes(queryParam)\n ) {\n acc.values.push({\n match: { [buildFieldName(queryParam)]: query[queryParam] }\n });\n }\n } else {\n const checkboxFilter = checkboxFilters.filter(\n ({ propsToDisplay: [firstPropToDisplay] }) => firstPropToDisplay === queryParam\n );\n\n if (!checkboxFilter.length) return acc;\n\n const shouldBuildCheckboxOrValues = checkboxFilter.filter(\n ({ operator }) => operator !== AND\n ).length;\n\n const fieldToPush = shouldBuildCheckboxOrValues ? acc.valuesOr : acc.values;\n\n query[queryParam].forEach(value => {\n fieldToPush.push({ match: { [buildFieldName(queryParam)]: value } });\n });\n }\n\n return acc;\n },\n {\n values: [],\n valuesOr: []\n }\n );\n\n return { values, valuesOr };\n};\n\nexport default buildSearchValuesCheckboxSelect;\n"],"file":"build-search-values-checkbox-select.js"}
1
+ {"version":3,"file":"build-search-values-checkbox-select.js","names":["flatten","SEARCH_TERM","AND","KEYWORD","buildFieldName","fieldName","getFiltersProps","filters","map","propsToDisplay","buildSearchValuesCheckboxSelect","query","rangeFilters","checkboxFilters","selectFilters","queryParams","Object","keys","filter","param","rangeFilterProps","checkboxFilterProps","selectFilterProps","values","valuesOr","reduce","acc","queryParam","isQueryParamString","includes","min","max","split","push","range","gte","Number","lte","match","checkboxFilter","firstPropToDisplay","length","shouldBuildCheckboxOrValues","operator","fieldToPush","forEach","value"],"sources":["../../src/helpers/build-search-values-checkbox-select.js"],"sourcesContent":["import flatten from 'lodash.flatten';\nimport { SEARCH_TERM, AND, KEYWORD } from '../constants';\n\nconst buildFieldName = fieldName => `${fieldName}.${KEYWORD}`;\n\nconst getFiltersProps = filters => flatten(filters.map(({ propsToDisplay }) => propsToDisplay));\n\nconst buildSearchValuesCheckboxSelect = (query, rangeFilters, checkboxFilters, selectFilters) => {\n const queryParams = Object.keys(query).filter(param => param !== SEARCH_TERM);\n\n const rangeFilterProps = getFiltersProps(rangeFilters);\n const checkboxFilterProps = getFiltersProps(checkboxFilters);\n const selectFilterProps = getFiltersProps(selectFilters);\n\n const { values, valuesOr } = queryParams.reduce(\n (acc, queryParam) => {\n const isQueryParamString = typeof query[queryParam] === 'string';\n if (isQueryParamString) {\n if (rangeFilterProps.includes(queryParam)) {\n const [min, max] = query[queryParam].split('-');\n acc.values.push({\n range: {\n [queryParam]: {\n gte: Number(min),\n lte: Number(max)\n }\n }\n });\n } else if (\n checkboxFilterProps.includes(queryParam) ||\n selectFilterProps.includes(queryParam)\n ) {\n acc.values.push({\n match: { [buildFieldName(queryParam)]: query[queryParam] }\n });\n }\n } else {\n const checkboxFilter = checkboxFilters.filter(\n ({ propsToDisplay: [firstPropToDisplay] }) => firstPropToDisplay === queryParam\n );\n\n if (!checkboxFilter.length) return acc;\n\n const shouldBuildCheckboxOrValues = checkboxFilter.filter(\n ({ operator }) => operator !== AND\n ).length;\n\n const fieldToPush = shouldBuildCheckboxOrValues ? acc.valuesOr : acc.values;\n\n query[queryParam].forEach(value => {\n fieldToPush.push({ match: { [buildFieldName(queryParam)]: value } });\n });\n }\n\n return acc;\n },\n {\n values: [],\n valuesOr: []\n }\n );\n\n return { values, valuesOr };\n};\n\nexport default buildSearchValuesCheckboxSelect;\n"],"mappings":"AAAA,OAAOA,OAAP,MAAoB,gBAApB;AACA,SAASC,WAAT,EAAsBC,GAAtB,EAA2BC,OAA3B,QAA0C,cAA1C;;AAEA,MAAMC,cAAc,GAAGC,SAAS,IAAK,GAAEA,SAAU,IAAGF,OAAQ,EAA5D;;AAEA,MAAMG,eAAe,GAAGC,OAAO,IAAIP,OAAO,CAACO,OAAO,CAACC,GAAR,CAAY,CAAC;EAAEC;AAAF,CAAD,KAAwBA,cAApC,CAAD,CAA1C;;AAEA,MAAMC,+BAA+B,GAAG,CAACC,KAAD,EAAQC,YAAR,EAAsBC,eAAtB,EAAuCC,aAAvC,KAAyD;EAC/F,MAAMC,WAAW,GAAGC,MAAM,CAACC,IAAP,CAAYN,KAAZ,EAAmBO,MAAnB,CAA0BC,KAAK,IAAIA,KAAK,KAAKlB,WAA7C,CAApB;EAEA,MAAMmB,gBAAgB,GAAGd,eAAe,CAACM,YAAD,CAAxC;EACA,MAAMS,mBAAmB,GAAGf,eAAe,CAACO,eAAD,CAA3C;EACA,MAAMS,iBAAiB,GAAGhB,eAAe,CAACQ,aAAD,CAAzC;EAEA,MAAM;IAAES,MAAF;IAAUC;EAAV,IAAuBT,WAAW,CAACU,MAAZ,CAC3B,CAACC,GAAD,EAAMC,UAAN,KAAqB;IACnB,MAAMC,kBAAkB,GAAG,OAAOjB,KAAK,CAACgB,UAAD,CAAZ,KAA6B,QAAxD;;IACA,IAAIC,kBAAJ,EAAwB;MACtB,IAAIR,gBAAgB,CAACS,QAAjB,CAA0BF,UAA1B,CAAJ,EAA2C;QACzC,MAAM,CAACG,GAAD,EAAMC,GAAN,IAAapB,KAAK,CAACgB,UAAD,CAAL,CAAkBK,KAAlB,CAAwB,GAAxB,CAAnB;QACAN,GAAG,CAACH,MAAJ,CAAWU,IAAX,CAAgB;UACdC,KAAK,EAAE;YACL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+1 @@
1
- {"version":3,"sources":["../../src/helpers/build-search-values-text.js"],"names":["buildSearchValuesText","propsToDisplay","search_term","searchTerm","reduce","acc","field","index","match","query","fuzziness"],"mappings":"AAAA,MAAMA,qBAAqB,GAAG,CAAC;AAAEC,EAAAA;AAAF,CAAD,EAAqB;AAAEC,EAAAA,WAAW,EAAEC;AAAf,CAArB,KAC5BF,cAAc,CAACG,MAAf,CAAsB,CAACC,GAAD,EAAMC,KAAN,EAAaC,KAAb,KAAuB;AAC3C,MAAID,KAAK,IAAIH,UAAb,EAAyB;AACvBE,IAAAA,GAAG,CAACE,KAAD,CAAH,GAAa;AACXC,MAAAA,KAAK,EAAE;AACL,SAACF,KAAD,GAAS;AACPG,UAAAA,KAAK,EAAEN,UADA;AAEPO,UAAAA,SAAS,EAAE;AAFJ;AADJ;AADI,KAAb;AAQD;;AACD,SAAOL,GAAP;AACD,CAZD,EAYG,EAZH,CADF;;AAcA,eAAeL,qBAAf","sourcesContent":["const buildSearchValuesText = ({ propsToDisplay }, { search_term: searchTerm }) =>\n propsToDisplay.reduce((acc, field, index) => {\n if (field && searchTerm) {\n acc[index] = {\n match: {\n [field]: {\n query: searchTerm,\n fuzziness: 'AUTO'\n }\n }\n };\n }\n return acc;\n }, []);\nexport default buildSearchValuesText;\n"],"file":"build-search-values-text.js"}
1
+ {"version":3,"file":"build-search-values-text.js","names":["buildSearchValuesText","propsToDisplay","search_term","searchTerm","reduce","acc","field","index","match","query","fuzziness"],"sources":["../../src/helpers/build-search-values-text.js"],"sourcesContent":["const buildSearchValuesText = ({ propsToDisplay }, { search_term: searchTerm }) =>\n propsToDisplay.reduce((acc, field, index) => {\n if (field && searchTerm) {\n acc[index] = {\n match: {\n [field]: {\n query: searchTerm,\n fuzziness: 'AUTO'\n }\n }\n };\n }\n return acc;\n }, []);\nexport default buildSearchValuesText;\n"],"mappings":"AAAA,MAAMA,qBAAqB,GAAG,CAAC;EAAEC;AAAF,CAAD,EAAqB;EAAEC,WAAW,EAAEC;AAAf,CAArB,KAC5BF,cAAc,CAACG,MAAf,CAAsB,CAACC,GAAD,EAAMC,KAAN,EAAaC,KAAb,KAAuB;EAC3C,IAAID,KAAK,IAAIH,UAAb,EAAyB;IACvBE,GAAG,CAACE,KAAD,CAAH,GAAa;MACXC,KAAK,EAAE;QACL,CAACF,KAAD,GAAS;UACPG,KAAK,EAAEN,UADA;UAEPO,SAAS,EAAE;QAFJ;MADJ;IADI,CAAb;EAQD;;EACD,OAAOL,GAAP;AACD,CAZD,EAYG,EAZH,CADF;;AAcA,eAAeL,qBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/build-set-filters.js"],"names":["FEATURED","SPONSORED","getCheckboxFilters","checkboxFilters","name","push","getFilterValues","filterBy","reduce","acc","filter","fieldName","values","split","value","join","previousValue","finalValue","buildSetFilters","filterByProperty","filterByFeatured","filterBySponsored","shouldApplyFilterValues","length","listFilterValues"],"mappings":"AAAA,SAASA,QAAT,EAAmBC,SAAnB,QAAoC,cAApC;;AAEA,MAAMC,kBAAkB,GAAG,CAACC,eAAD,EAAkBC,IAAlB,KAA2B;AACpDD,EAAAA,eAAe,CAACE,IAAhB,CAAqBD,IAArB;AACD,CAFD;;AAIA,MAAME,eAAe,GAAGC,QAAQ,IAC9BA,QAAQ,CAACC,MAAT,CAAgB,CAACC,GAAD,EAAMC,MAAN,KAAiB;AAC/B,QAAM,CAACC,SAAD,EAAY,GAAGC,MAAf,IAAyBF,MAAM,CAACG,KAAP,CAAa,GAAb,CAA/B;AACA,QAAMC,KAAK,GAAGF,MAAM,CAACG,IAAP,CAAY,GAAZ,CAAd;AACA,QAAMC,aAAa,GAAGP,GAAG,CAACE,SAAD,CAAzB;AACA,QAAMM,UAAU,GAAGD,aAAa,GAAG,CAAC,GAAGA,aAAJ,EAAmBF,KAAnB,CAAH,GAA+B,CAACA,KAAD,CAA/D;AAEAL,EAAAA,GAAG,CAACE,SAAD,CAAH,GAAiBM,UAAjB;AACA,SAAOR,GAAP;AACD,CARD,EAQG,EARH,CADF;;AAWA,MAAMS,eAAe,GAAG,CAAC;AACvBX,EAAAA,QAAQ,GAAG,EADY;AAEvBY,EAAAA,gBAAgB,GAAG,EAFI;AAGvBC,EAAAA,gBAHuB;AAIvBC,EAAAA;AAJuB,CAAD,KAKlB;AACJ,QAAMlB,eAAe,GAAG,EAAxB;;AAEA,MAAIiB,gBAAJ,EAAsB;AACpBlB,IAAAA,kBAAkB,CAACC,eAAD,EAAkBH,QAAlB,CAAlB;AACD;;AACD,MAAIqB,iBAAJ,EAAuB;AACrBnB,IAAAA,kBAAkB,CAACC,eAAD,EAAkBF,SAAlB,CAAlB;AACD;;AAED,QAAMqB,uBAAuB,GAAGf,QAAQ,CAACgB,MAAT,IAAmBJ,gBAAgB,CAACI,MAApE;AACA,QAAMC,gBAAgB,GAAGF,uBAAuB,GAAGhB,eAAe,CAACC,QAAD,CAAlB,GAA+B,EAA/E;AAEA,SAAO;AAAEJ,IAAAA,eAAF;AAAmBqB,IAAAA;AAAnB,GAAP;AACD,CAnBD;;AAqBA,eAAeN,eAAf","sourcesContent":["import { FEATURED, SPONSORED } from '../constants';\n\nconst getCheckboxFilters = (checkboxFilters, name) => {\n checkboxFilters.push(name);\n};\n\nconst getFilterValues = filterBy =>\n filterBy.reduce((acc, filter) => {\n const [fieldName, ...values] = filter.split('/');\n const value = values.join('/');\n const previousValue = acc[fieldName];\n const finalValue = previousValue ? [...previousValue, value] : [value];\n\n acc[fieldName] = finalValue;\n return acc;\n }, {});\n\nconst buildSetFilters = ({\n filterBy = [],\n filterByProperty = [],\n filterByFeatured,\n filterBySponsored\n}) => {\n const checkboxFilters = [];\n\n if (filterByFeatured) {\n getCheckboxFilters(checkboxFilters, FEATURED);\n }\n if (filterBySponsored) {\n getCheckboxFilters(checkboxFilters, SPONSORED);\n }\n\n const shouldApplyFilterValues = filterBy.length && filterByProperty.length;\n const listFilterValues = shouldApplyFilterValues ? getFilterValues(filterBy) : {};\n\n return { checkboxFilters, listFilterValues };\n};\n\nexport default buildSetFilters;\n"],"file":"build-set-filters.js"}
1
+ {"version":3,"file":"build-set-filters.js","names":["FEATURED","SPONSORED","getCheckboxFilters","checkboxFilters","name","push","getFilterValues","filterBy","reduce","acc","filter","fieldName","values","split","value","join","previousValue","finalValue","buildSetFilters","filterByProperty","filterByFeatured","filterBySponsored","shouldApplyFilterValues","length","listFilterValues"],"sources":["../../src/helpers/build-set-filters.js"],"sourcesContent":["import { FEATURED, SPONSORED } from '../constants';\n\nconst getCheckboxFilters = (checkboxFilters, name) => {\n checkboxFilters.push(name);\n};\n\nconst getFilterValues = filterBy =>\n filterBy.reduce((acc, filter) => {\n const [fieldName, ...values] = filter.split('/');\n const value = values.join('/');\n const previousValue = acc[fieldName];\n const finalValue = previousValue ? [...previousValue, value] : [value];\n\n acc[fieldName] = finalValue;\n return acc;\n }, {});\n\nconst buildSetFilters = ({\n filterBy = [],\n filterByProperty = [],\n filterByFeatured,\n filterBySponsored\n}) => {\n const checkboxFilters = [];\n\n if (filterByFeatured) {\n getCheckboxFilters(checkboxFilters, FEATURED);\n }\n if (filterBySponsored) {\n getCheckboxFilters(checkboxFilters, SPONSORED);\n }\n\n const shouldApplyFilterValues = filterBy.length && filterByProperty.length;\n const listFilterValues = shouldApplyFilterValues ? getFilterValues(filterBy) : {};\n\n return { checkboxFilters, listFilterValues };\n};\n\nexport default buildSetFilters;\n"],"mappings":"AAAA,SAASA,QAAT,EAAmBC,SAAnB,QAAoC,cAApC;;AAEA,MAAMC,kBAAkB,GAAG,CAACC,eAAD,EAAkBC,IAAlB,KAA2B;EACpDD,eAAe,CAACE,IAAhB,CAAqBD,IAArB;AACD,CAFD;;AAIA,MAAME,eAAe,GAAGC,QAAQ,IAC9BA,QAAQ,CAACC,MAAT,CAAgB,CAACC,GAAD,EAAMC,MAAN,KAAiB;EAC/B,MAAM,CAACC,SAAD,EAAY,GAAGC,MAAf,IAAyBF,MAAM,CAACG,KAAP,CAAa,GAAb,CAA/B;EACA,MAAMC,KAAK,GAAGF,MAAM,CAACG,IAAP,CAAY,GAAZ,CAAd;EACA,MAAMC,aAAa,GAAGP,GAAG,CAACE,SAAD,CAAzB;EACA,MAAMM,UAAU,GAAGD,aAAa,GAAG,CAAC,GAAGA,aAAJ,EAAmBF,KAAnB,CAAH,GAA+B,CAACA,KAAD,CAA/D;EAEAL,GAAG,CAACE,SAAD,CAAH,GAAiBM,UAAjB;EACA,OAAOR,GAAP;AACD,CARD,EAQG,EARH,CADF;;AAWA,MAAMS,eAAe,GAAG,CAAC;EACvBX,QAAQ,GAAG,EADY;EAEvBY,gBAAgB,GAAG,EAFI;EAGvBC,gBAHuB;EAIvBC;AAJuB,CAAD,KAKlB;EACJ,MAAMlB,eAAe,GAAG,EAAxB;;EAEA,IAAIiB,gBAAJ,EAAsB;IACpBlB,kBAAkB,CAACC,eAAD,EAAkBH,QAAlB,CAAlB;EACD;;EACD,IAAIqB,iBAAJ,EAAuB;IACrBnB,kBAAkB,CAACC,eAAD,EAAkBF,SAAlB,CAAlB;EACD;;EAED,MAAMqB,uBAAuB,GAAGf,QAAQ,CAACgB,MAAT,IAAmBJ,gBAAgB,CAACI,MAApE;EACA,MAAMC,gBAAgB,GAAGF,uBAAuB,GAAGhB,eAAe,CAACC,QAAD,CAAlB,GAA+B,EAA/E;EAEA,OAAO;IAAEJ,eAAF;IAAmBqB;EAAnB,CAAP;AACD,CAnBD;;AAqBA,eAAeN,eAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/check-for-error.js"],"names":["checkForError","errors","message","errMsg","find","err","hasErr"],"mappings":"AAAA,MAAMA,aAAa,GAAG,CAACC,MAAM,GAAG,EAAV,KAAiB;AACrC,QAAM;AAAEC,IAAAA,OAAO,EAAEC;AAAX,MAAsBF,MAAM,CAACG,IAAP,CAAY,CAACC,GAAG,GAAG,EAAP,KAAcA,GAAG,IAAIA,GAAG,CAACH,OAArC,KAAiD,EAA7E;AAEA,SAAO;AACLI,IAAAA,MAAM,EAAE,CAAC,CAACH,MADL;AAELA,IAAAA;AAFK,GAAP;AAID,CAPD;;AASA,eAAeH,aAAf","sourcesContent":["const checkForError = (errors = []) => {\n const { message: errMsg } = errors.find((err = {}) => err && err.message) || {};\n\n return {\n hasErr: !!errMsg,\n errMsg\n };\n};\n\nexport default checkForError;\n"],"file":"check-for-error.js"}
1
+ {"version":3,"file":"check-for-error.js","names":["checkForError","errors","message","errMsg","find","err","hasErr"],"sources":["../../src/helpers/check-for-error.js"],"sourcesContent":["const checkForError = (errors = []) => {\n const { message: errMsg } = errors.find((err = {}) => err && err.message) || {};\n\n return {\n hasErr: !!errMsg,\n errMsg\n };\n};\n\nexport default checkForError;\n"],"mappings":"AAAA,MAAMA,aAAa,GAAG,CAACC,MAAM,GAAG,EAAV,KAAiB;EACrC,MAAM;IAAEC,OAAO,EAAEC;EAAX,IAAsBF,MAAM,CAACG,IAAP,CAAY,CAACC,GAAG,GAAG,EAAP,KAAcA,GAAG,IAAIA,GAAG,CAACH,OAArC,KAAiD,EAA7E;EAEA,OAAO;IACLI,MAAM,EAAE,CAAC,CAACH,MADL;IAELA;EAFK,CAAP;AAID,CAPD;;AASA,eAAeH,aAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/check-props-to-use.js"],"names":["flatten","isObject","checkPropsToUse","propsToDisplay","map","propertiesToDisplay"],"mappings":"AAAA,OAAOA,OAAP,MAAoB,gBAApB;AACA,OAAOC,QAAP,MAAqB,aAArB,C,CAEA;;AACA,MAAMC,eAAe,GAAG,CAACC,cAAc,GAAG,EAAlB,KACtBA,cAAc,IAAIF,QAAQ,CAACE,cAAc,CAAC,CAAD,CAAf,CAA1B,GACIH,OAAO,CAACG,cAAc,CAACC,GAAf,CAAmB,CAAC;AAAEC,EAAAA;AAAF,CAAD,KAA6BA,mBAAhD,CAAD,CADX,GAEIF,cAHN;;AAKA,eAAeD,eAAf","sourcesContent":["import flatten from 'lodash.flatten';\nimport isObject from './is-object';\n\n// TODO this helper should be removed if database is wiped clean and all elements change to new props struc\nconst checkPropsToUse = (propsToDisplay = []) =>\n propsToDisplay && isObject(propsToDisplay[0])\n ? flatten(propsToDisplay.map(({ propertiesToDisplay }) => propertiesToDisplay))\n : propsToDisplay;\n\nexport default checkPropsToUse;\n"],"file":"check-props-to-use.js"}
1
+ {"version":3,"file":"check-props-to-use.js","names":["flatten","isObject","checkPropsToUse","propsToDisplay","map","propertiesToDisplay"],"sources":["../../src/helpers/check-props-to-use.js"],"sourcesContent":["import flatten from 'lodash.flatten';\nimport isObject from './is-object';\n\n// TODO this helper should be removed if database is wiped clean and all elements change to new props struc\nconst checkPropsToUse = (propsToDisplay = []) =>\n propsToDisplay && isObject(propsToDisplay[0])\n ? flatten(propsToDisplay.map(({ propertiesToDisplay }) => propertiesToDisplay))\n : propsToDisplay;\n\nexport default checkPropsToUse;\n"],"mappings":"AAAA,OAAOA,OAAP,MAAoB,gBAApB;AACA,OAAOC,QAAP,MAAqB,aAArB,C,CAEA;;AACA,MAAMC,eAAe,GAAG,CAACC,cAAc,GAAG,EAAlB,KACtBA,cAAc,IAAIF,QAAQ,CAACE,cAAc,CAAC,CAAD,CAAf,CAA1B,GACIH,OAAO,CAACG,cAAc,CAACC,GAAf,CAAmB,CAAC;EAAEC;AAAF,CAAD,KAA6BA,mBAAhD,CAAD,CADX,GAEIF,cAHN;;AAKA,eAAeD,eAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/helpers/entities/constants.js"],"names":["dataSchema","getEntitySchema","actions","interfaces","propsSchema","itemsPerRow","defaultProps"],"mappings":"AAAA,OAAO,MAAMA,UAAU,GAAG;AACxBC,EAAAA,eAAe,EAAE;AACfC,IAAAA,OAAO,EAAE,EADM;AAEfC,IAAAA,UAAU,EAAE;AAFG;AADO,CAAnB;AAOP,OAAO,MAAMC,WAAW,GAAG;AACzBC,EAAAA,WAAW,EAAE;AADY,CAApB;AAIP,OAAO,MAAMC,YAAY,GAAG,SAArB","sourcesContent":["export const dataSchema = {\n getEntitySchema: {\n actions: {},\n interfaces: []\n }\n};\n\nexport const propsSchema = {\n itemsPerRow: {}\n};\n\nexport const defaultProps = 'id,name';\n"],"file":"constants.js"}
1
+ {"version":3,"file":"constants.js","names":["dataSchema","getEntitySchema","actions","interfaces","propsSchema","itemsPerRow","defaultProps"],"sources":["../../../src/helpers/entities/constants.js"],"sourcesContent":["export const dataSchema = {\n getEntitySchema: {\n actions: {},\n interfaces: []\n }\n};\n\nexport const propsSchema = {\n itemsPerRow: {}\n};\n\nexport const defaultProps = 'id,name';\n"],"mappings":"AAAA,OAAO,MAAMA,UAAU,GAAG;EACxBC,eAAe,EAAE;IACfC,OAAO,EAAE,EADM;IAEfC,UAAU,EAAE;EAFG;AADO,CAAnB;AAOP,OAAO,MAAMC,WAAW,GAAG;EACzBC,WAAW,EAAE;AADY,CAApB;AAIP,OAAO,MAAMC,YAAY,GAAG,SAArB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-banner-data.js"],"names":["getBannerData","banner","parent","limit","transform","entity","itemEntity"],"mappings":";;;;;;AAAA,eAAe,SAASA,aAAT,CAAuBC,MAAvB,EAA+B;AAAEC,EAAAA,MAAM,GAAG,EAAX;AAAeC,EAAAA,KAAf;AAAsBC,EAAAA;AAAtB,CAA/B,EAAkE;AAC/E,QAAMC,MAAM,GAAGJ,MAAM,CAACI,MAAP,IAAiBH,MAAM,CAACI,UAAvC;AACA,yCAAYL,MAAZ;AAAoBI,IAAAA,MAApB;AAA4BH,IAAAA,MAA5B;AAAoCC,IAAAA,KAApC;AAA2CC,IAAAA;AAA3C;AACD","sourcesContent":["export default function getBannerData(banner, { parent = {}, limit, transform }) {\n const entity = banner.entity || parent.itemEntity;\n return { ...banner, entity, parent, limit, transform };\n}\n"],"file":"get-banner-data.js"}
1
+ {"version":3,"file":"get-banner-data.js","names":["getBannerData","banner","parent","limit","transform","entity","itemEntity"],"sources":["../../src/helpers/get-banner-data.js"],"sourcesContent":["export default function getBannerData(banner, { parent = {}, limit, transform }) {\n const entity = banner.entity || parent.itemEntity;\n return { ...banner, entity, parent, limit, transform };\n}\n"],"mappings":";;;;;;AAAA,eAAe,SAASA,aAAT,CAAuBC,MAAvB,EAA+B;EAAEC,MAAM,GAAG,EAAX;EAAeC,KAAf;EAAsBC;AAAtB,CAA/B,EAAkE;EAC/E,MAAMC,MAAM,GAAGJ,MAAM,CAACI,MAAP,IAAiBH,MAAM,CAACI,UAAvC;EACA,uCAAYL,MAAZ;IAAoBI,MAApB;IAA4BH,MAA5B;IAAoCC,KAApC;IAA2CC;EAA3C;AACD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-click-wrapper-options.js"],"names":["ON_CLICK","getClickWrapperOptions","children","componentProps","id","shouldUseClickWrapper","props","childComponents","wrapperProps","clickEvents","map","child","component","settings","gtmEvents","find","eventTrigger","filter","Boolean","length","gtmChildren"],"mappings":";;;;;;AAAA,SAASA,QAAT,QAAyB,cAAzB;;AAEA,MAAMC,sBAAsB,GAAG,CAACC,QAAQ,GAAG,EAAZ,EAAgBC,cAAc,GAAG,EAAjC,EAAqCC,EAAE,GAAG,IAA1C,KAAmD;AAChF,MAAIC,qBAAqB,GAAG,KAA5B;AAEA,QAAM;AAAEC,IAAAA,KAAK,EAAE;AAAEJ,MAAAA,QAAQ,EAAEK,eAAe,GAAG;AAA9B,QAAqC;AAA9C,MAAqDL,QAAQ,IAAI,EAAvE;AACA,MAAI,CAACK,eAAD,IAAoB,CAACA,eAAe,CAAC,CAAD,CAAxC,EAA6C,OAAO;AAAEF,IAAAA,qBAAF;AAAyBG,IAAAA,YAAY,EAAE;AAAvC,GAAP;AAE7C,QAAMC,WAAW,GAAGF,eAAe,CAAC,CAAD,CAAf,CACjBG,GADiB,CACbC,KAAK,IAAI;AACZ,UAAM;AAAEL,MAAAA,KAAK,EAAE;AAAEM,QAAAA,SAAS,EAAE;AAAEC,UAAAA,QAAQ,EAAE;AAAEC,YAAAA;AAAF,cAAgB;AAA5B,YAAmC;AAAhD,UAAuD;AAAhE,QAAuEH,KAAK,IAAI,EAAtF;AACA,QAAI,CAACG,SAAL,EAAgB,OAAO,IAAP;AAEhB,WAAOA,SAAS,CAACC,IAAV,CAAe,CAAC;AAAEC,MAAAA;AAAF,KAAD,KAAsBA,YAAY,KAAKhB,QAAtD,CAAP;AACD,GANiB,EAOjBiB,MAPiB,CAOVC,OAPU,CAApB;AASAb,EAAAA,qBAAqB,GAAG,CAAC,CAACI,WAAF,IAAiB,CAAC,CAACA,WAAW,CAACU,MAAvD;AAEA,QAAMX,YAAY,GAAGH,qBAAqB;AACpCe,IAAAA,WAAW,EAAElB;AADuB,KACVC,cADU;AACMC,IAAAA;AADN,OAEtC,EAFJ;AAIA,SAAO;AAAEC,IAAAA,qBAAF;AAAyBG,IAAAA;AAAzB,GAAP;AACD,CAtBD;;AAwBA,eAAeP,sBAAf","sourcesContent":["import { ON_CLICK } from '../constants';\n\nconst getClickWrapperOptions = (children = {}, componentProps = {}, id = null) => {\n let shouldUseClickWrapper = false;\n\n const { props: { children: childComponents = [] } = {} } = children || {};\n if (!childComponents || !childComponents[1]) return { shouldUseClickWrapper, wrapperProps: {} };\n\n const clickEvents = childComponents[1]\n .map(child => {\n const { props: { component: { settings: { gtmEvents } = {} } = {} } = {} } = child || {};\n if (!gtmEvents) return null;\n\n return gtmEvents.find(({ eventTrigger }) => eventTrigger === ON_CLICK);\n })\n .filter(Boolean);\n\n shouldUseClickWrapper = !!clickEvents && !!clickEvents.length;\n\n const wrapperProps = shouldUseClickWrapper\n ? { gtmChildren: children, ...componentProps, id }\n : {};\n\n return { shouldUseClickWrapper, wrapperProps };\n};\n\nexport default getClickWrapperOptions;\n"],"file":"get-click-wrapper-options.js"}
1
+ {"version":3,"file":"get-click-wrapper-options.js","names":["ON_CLICK","getClickWrapperOptions","children","componentProps","id","shouldUseClickWrapper","props","childComponents","wrapperProps","clickEvents","map","child","component","settings","gtmEvents","find","eventTrigger","filter","Boolean","length","gtmChildren"],"sources":["../../src/helpers/get-click-wrapper-options.js"],"sourcesContent":["import { ON_CLICK } from '../constants';\n\nconst getClickWrapperOptions = (children = {}, componentProps = {}, id = null) => {\n let shouldUseClickWrapper = false;\n\n const { props: { children: childComponents = [] } = {} } = children || {};\n if (!childComponents || !childComponents[1]) return { shouldUseClickWrapper, wrapperProps: {} };\n\n const clickEvents = childComponents[1]\n .map(child => {\n const { props: { component: { settings: { gtmEvents } = {} } = {} } = {} } = child || {};\n if (!gtmEvents) return null;\n\n return gtmEvents.find(({ eventTrigger }) => eventTrigger === ON_CLICK);\n })\n .filter(Boolean);\n\n shouldUseClickWrapper = !!clickEvents && !!clickEvents.length;\n\n const wrapperProps = shouldUseClickWrapper\n ? { gtmChildren: children, ...componentProps, id }\n : {};\n\n return { shouldUseClickWrapper, wrapperProps };\n};\n\nexport default getClickWrapperOptions;\n"],"mappings":";;;;;;AAAA,SAASA,QAAT,QAAyB,cAAzB;;AAEA,MAAMC,sBAAsB,GAAG,CAACC,QAAQ,GAAG,EAAZ,EAAgBC,cAAc,GAAG,EAAjC,EAAqCC,EAAE,GAAG,IAA1C,KAAmD;EAChF,IAAIC,qBAAqB,GAAG,KAA5B;EAEA,MAAM;IAAEC,KAAK,EAAE;MAAEJ,QAAQ,EAAEK,eAAe,GAAG;IAA9B,IAAqC;EAA9C,IAAqDL,QAAQ,IAAI,EAAvE;EACA,IAAI,CAACK,eAAD,IAAoB,CAACA,eAAe,CAAC,CAAD,CAAxC,EAA6C,OAAO;IAAEF,qBAAF;IAAyBG,YAAY,EAAE;EAAvC,CAAP;EAE7C,MAAMC,WAAW,GAAGF,eAAe,CAAC,CAAD,CAAf,CACjBG,GADiB,CACbC,KAAK,IAAI;IACZ,MAAM;MAAEL,KAAK,EAAE;QAAEM,SAAS,EAAE;UAAEC,QAAQ,EAAE;YAAEC;UAAF,IAAgB;QAA5B,IAAmC;MAAhD,IAAuD;IAAhE,IAAuEH,KAAK,IAAI,EAAtF;IACA,IAAI,CAACG,SAAL,EAAgB,OAAO,IAAP;IAEhB,OAAOA,SAAS,CAACC,IAAV,CAAe,CAAC;MAAEC;IAAF,CAAD,KAAsBA,YAAY,KAAKhB,QAAtD,CAAP;EACD,CANiB,EAOjBiB,MAPiB,CAOVC,OAPU,CAApB;EASAb,qBAAqB,GAAG,CAAC,CAACI,WAAF,IAAiB,CAAC,CAACA,WAAW,CAACU,MAAvD;EAEA,MAAMX,YAAY,GAAGH,qBAAqB;IACpCe,WAAW,EAAElB;EADuB,GACVC,cADU;IACMC;EADN,KAEtC,EAFJ;EAIA,OAAO;IAAEC,qBAAF;IAAyBG;EAAzB,CAAP;AACD,CAtBD;;AAwBA,eAAeP,sBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-current-offset.js"],"names":["getCurrentOffset","offset","itemsPerPage","paginationIndex","limit","Number","cumulativeOffset"],"mappings":"AAAA,MAAMA,gBAAgB,GAAG,CAACC,MAAM,GAAG,CAAV,EAAaC,YAAY,GAAG,CAA5B,EAA+BC,eAAe,GAAG,CAAjD,EAAoDC,KAApD,KAA8D;AACrF,MAAID,eAAe,IAAI,CAAvB,EAA0B,OAAOE,MAAM,CAACJ,MAAD,CAAb;AAC1B,QAAMK,gBAAgB,GAAGD,MAAM,CAACJ,MAAD,CAAN,GAAiBI,MAAM,CAACH,YAAD,CAAN,IAAwBG,MAAM,CAACF,eAAD,CAAN,GAA0B,CAAlD,CAA1C;AACA,SAAO,CAAC,CAACC,KAAF,IAAWE,gBAAgB,IAAIF,KAA/B,GAAuCH,MAAvC,GAAgDK,gBAAvD;AACD,CAJD;;AAMA,eAAeN,gBAAf","sourcesContent":["const getCurrentOffset = (offset = 0, itemsPerPage = 1, paginationIndex = 1, limit) => {\n if (paginationIndex <= 1) return Number(offset);\n const cumulativeOffset = Number(offset) + Number(itemsPerPage) * (Number(paginationIndex) - 1);\n return !!limit && cumulativeOffset >= limit ? offset : cumulativeOffset;\n};\n\nexport default getCurrentOffset;\n"],"file":"get-current-offset.js"}
1
+ {"version":3,"file":"get-current-offset.js","names":["getCurrentOffset","offset","itemsPerPage","paginationIndex","limit","Number","cumulativeOffset"],"sources":["../../src/helpers/get-current-offset.js"],"sourcesContent":["const getCurrentOffset = (offset = 0, itemsPerPage = 1, paginationIndex = 1, limit) => {\n if (paginationIndex <= 1) return Number(offset);\n const cumulativeOffset = Number(offset) + Number(itemsPerPage) * (Number(paginationIndex) - 1);\n return !!limit && cumulativeOffset >= limit ? offset : cumulativeOffset;\n};\n\nexport default getCurrentOffset;\n"],"mappings":"AAAA,MAAMA,gBAAgB,GAAG,CAACC,MAAM,GAAG,CAAV,EAAaC,YAAY,GAAG,CAA5B,EAA+BC,eAAe,GAAG,CAAjD,EAAoDC,KAApD,KAA8D;EACrF,IAAID,eAAe,IAAI,CAAvB,EAA0B,OAAOE,MAAM,CAACJ,MAAD,CAAb;EAC1B,MAAMK,gBAAgB,GAAGD,MAAM,CAACJ,MAAD,CAAN,GAAiBI,MAAM,CAACH,YAAD,CAAN,IAAwBG,MAAM,CAACF,eAAD,CAAN,GAA0B,CAAlD,CAA1C;EACA,OAAO,CAAC,CAACC,KAAF,IAAWE,gBAAgB,IAAIF,KAA/B,GAAuCH,MAAvC,GAAgDK,gBAAvD;AACD,CAJD;;AAMA,eAAeN,gBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-dictionary-match.js"],"names":["dictionary","getDictionaryMatch","key"],"mappings":"AAAA,MAAMA,UAAU,GAAG;AACjB,KAAG,WADc;AAEjB,KAAG,WAFc;AAGjB,KAAG,aAHc;AAIjB,KAAG,YAJc;AAKjB,KAAG,YALc;AAMjB,KAAG;AANc,CAAnB;;AASA,MAAMC,kBAAkB,GAAGC,GAAG,IAAIF,UAAU,CAACE,GAAD,CAAV,IAAmBF,UAAU,CAAC,CAAD,CAA/D;;AAEA,eAAeC,kBAAf","sourcesContent":["const dictionary = {\n 1: 'grid--one',\n 2: 'grid--two',\n 3: 'grid--three',\n 4: 'grid--four',\n 5: 'grid--five',\n 6: 'grid--six'\n};\n\nconst getDictionaryMatch = key => dictionary[key] || dictionary[1];\n\nexport default getDictionaryMatch;\n"],"file":"get-dictionary-match.js"}
1
+ {"version":3,"file":"get-dictionary-match.js","names":["dictionary","getDictionaryMatch","key"],"sources":["../../src/helpers/get-dictionary-match.js"],"sourcesContent":["const dictionary = {\n 1: 'grid--one',\n 2: 'grid--two',\n 3: 'grid--three',\n 4: 'grid--four',\n 5: 'grid--five',\n 6: 'grid--six'\n};\n\nconst getDictionaryMatch = key => dictionary[key] || dictionary[1];\n\nexport default getDictionaryMatch;\n"],"mappings":"AAAA,MAAMA,UAAU,GAAG;EACjB,GAAG,WADc;EAEjB,GAAG,WAFc;EAGjB,GAAG,aAHc;EAIjB,GAAG,YAJc;EAKjB,GAAG,YALc;EAMjB,GAAG;AANc,CAAnB;;AASA,MAAMC,kBAAkB,GAAGC,GAAG,IAAIF,UAAU,CAACE,GAAD,CAAV,IAAmBF,UAAU,CAAC,CAAD,CAA/D;;AAEA,eAAeC,kBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-display-count-data.js"],"names":["IMAGE","IMAGES","getDisplayCountData","displayMessage","images","imagesLength","length","shouldDisplayCount","message","countMessage"],"mappings":"AAAA,SAASA,KAAT,EAAgBC,MAAhB,QAA8B,cAA9B;;AAEA,SAASC,mBAAT,CAA6BC,cAA7B,EAA6CC,MAA7C,EAAqD;AACnD,QAAMC,YAAY,GAAGD,MAAM,IAAIA,MAAM,CAACE,MAAtC;AAEA,QAAMC,kBAAkB,GAAG,CAAC,EAAEJ,cAAc,IAAIE,YAApB,CAA5B;AACA,QAAMG,OAAO,GAAI,GAAEH,YAAa,IAAGA,YAAY,KAAK,CAAjB,GAAqBL,KAArB,GAA6BC,MAAO,EAAvE;AACA,QAAMQ,YAAY,GAAGF,kBAAkB,GAAGC,OAAH,GAAa,EAApD;AAEA,SAAO;AAAED,IAAAA,kBAAF;AAAsBE,IAAAA;AAAtB,GAAP;AACD;;AAED,eAAeP,mBAAf","sourcesContent":["import { IMAGE, IMAGES } from '../constants';\n\nfunction getDisplayCountData(displayMessage, images) {\n const imagesLength = images && images.length;\n\n const shouldDisplayCount = !!(displayMessage && imagesLength);\n const message = `${imagesLength} ${imagesLength === 1 ? IMAGE : IMAGES}`;\n const countMessage = shouldDisplayCount ? message : '';\n\n return { shouldDisplayCount, countMessage };\n}\n\nexport default getDisplayCountData;\n"],"file":"get-display-count-data.js"}
1
+ {"version":3,"file":"get-display-count-data.js","names":["IMAGE","IMAGES","getDisplayCountData","displayMessage","images","imagesLength","length","shouldDisplayCount","message","countMessage"],"sources":["../../src/helpers/get-display-count-data.js"],"sourcesContent":["import { IMAGE, IMAGES } from '../constants';\n\nfunction getDisplayCountData(displayMessage, images) {\n const imagesLength = images && images.length;\n\n const shouldDisplayCount = !!(displayMessage && imagesLength);\n const message = `${imagesLength} ${imagesLength === 1 ? IMAGE : IMAGES}`;\n const countMessage = shouldDisplayCount ? message : '';\n\n return { shouldDisplayCount, countMessage };\n}\n\nexport default getDisplayCountData;\n"],"mappings":"AAAA,SAASA,KAAT,EAAgBC,MAAhB,QAA8B,cAA9B;;AAEA,SAASC,mBAAT,CAA6BC,cAA7B,EAA6CC,MAA7C,EAAqD;EACnD,MAAMC,YAAY,GAAGD,MAAM,IAAIA,MAAM,CAACE,MAAtC;EAEA,MAAMC,kBAAkB,GAAG,CAAC,EAAEJ,cAAc,IAAIE,YAApB,CAA5B;EACA,MAAMG,OAAO,GAAI,GAAEH,YAAa,IAAGA,YAAY,KAAK,CAAjB,GAAqBL,KAArB,GAA6BC,MAAO,EAAvE;EACA,MAAMQ,YAAY,GAAGF,kBAAkB,GAAGC,OAAH,GAAa,EAApD;EAEA,OAAO;IAAED,kBAAF;IAAsBE;EAAtB,CAAP;AACD;;AAED,eAAeP,mBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-elasticsearch-operator.js"],"names":["AND","AND_OPERATOR","OR_OPERATOR","getElasticsearchOperator","operator"],"mappings":"AAAA,SAASA,GAAT,EAAcC,YAAd,EAA4BC,WAA5B,QAA+C,cAA/C;;AAEA,MAAMC,wBAAwB,GAAG,CAAC;AAAEC,EAAAA;AAAF,CAAD,KAAmBA,QAAQ,KAAKJ,GAAb,GAAmBC,YAAnB,GAAkCC,WAAtF;;AAEA,eAAeC,wBAAf","sourcesContent":["import { AND, AND_OPERATOR, OR_OPERATOR } from '../constants';\n\nconst getElasticsearchOperator = ({ operator }) => (operator === AND ? AND_OPERATOR : OR_OPERATOR);\n\nexport default getElasticsearchOperator;\n"],"file":"get-elasticsearch-operator.js"}
1
+ {"version":3,"file":"get-elasticsearch-operator.js","names":["AND","AND_OPERATOR","OR_OPERATOR","getElasticsearchOperator","operator"],"sources":["../../src/helpers/get-elasticsearch-operator.js"],"sourcesContent":["import { AND, AND_OPERATOR, OR_OPERATOR } from '../constants';\n\nconst getElasticsearchOperator = ({ operator }) => (operator === AND ? AND_OPERATOR : OR_OPERATOR);\n\nexport default getElasticsearchOperator;\n"],"mappings":"AAAA,SAASA,GAAT,EAAcC,YAAd,EAA4BC,WAA5B,QAA+C,cAA/C;;AAEA,MAAMC,wBAAwB,GAAG,CAAC;EAAEC;AAAF,CAAD,KAAmBA,QAAQ,KAAKJ,GAAb,GAAmBC,YAAnB,GAAkCC,WAAtF;;AAEA,eAAeC,wBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-entities-with-banner.js"],"names":["injectBannersToEntities","getEntitiesWithBanner","entities","options","hasBanner"],"mappings":"AAAA,OAAOA,uBAAP,MAAoC,8BAApC;AAEA,eAAe,SAASC,qBAAT,CAA+BC,QAA/B,EAAyCC,OAAzC,EAAkD;AAC/D,QAAM;AAAEC,IAAAA;AAAF,MAAgBD,OAAtB;AAEA,MAAI,CAACC,SAAL,EAAgB,OAAOF,QAAP;AAEhB,SAAOF,uBAAuB,CAACE,QAAD,EAAWC,OAAX,CAA9B;AACD","sourcesContent":["import injectBannersToEntities from './inject-banners-to-entities';\n\nexport default function getEntitiesWithBanner(entities, options) {\n const { hasBanner } = options;\n\n if (!hasBanner) return entities;\n\n return injectBannersToEntities(entities, options);\n}\n"],"file":"get-entities-with-banner.js"}
1
+ {"version":3,"file":"get-entities-with-banner.js","names":["injectBannersToEntities","getEntitiesWithBanner","entities","options","hasBanner"],"sources":["../../src/helpers/get-entities-with-banner.js"],"sourcesContent":["import injectBannersToEntities from './inject-banners-to-entities';\n\nexport default function getEntitiesWithBanner(entities, options) {\n const { hasBanner } = options;\n\n if (!hasBanner) return entities;\n\n return injectBannersToEntities(entities, options);\n}\n"],"mappings":"AAAA,OAAOA,uBAAP,MAAoC,8BAApC;AAEA,eAAe,SAASC,qBAAT,CAA+BC,QAA/B,EAAyCC,OAAzC,EAAkD;EAC/D,MAAM;IAAEC;EAAF,IAAgBD,OAAtB;EAEA,IAAI,CAACC,SAAL,EAAgB,OAAOF,QAAP;EAEhB,OAAOF,uBAAuB,CAACE,QAAD,EAAWC,OAAX,CAA9B;AACD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-entity-data.js"],"names":["upperFirst","camelcase","getEntityData","entity","schema","publishedDocType","publishedEntityType","interfaces","nestedInterfaces","interfacesToCheck","includes","docType","entityType"],"mappings":"AAAA,OAAOA,UAAP,MAAuB,mBAAvB;AACA,OAAOC,SAAP,MAAsB,kBAAtB;;AAEA,MAAMC,aAAa,GAAG,CAACC,MAAD,EAASC,MAAT,KAAoB;AACxC,QAAMC,gBAAgB,GAAI,aAAYF,MAAO,EAA7C;AACA,QAAMG,mBAAmB,GAAI,YAAWN,UAAU,CAACC,SAAS,CAACE,MAAD,CAAV,CAAoB,EAAtE;;AAEA,MAAIC,MAAJ,EAAY;AACV,UAAM;AAAEG,MAAAA,UAAF;AAAc,OAACJ,MAAD,GAAU;AAAEI,QAAAA,UAAU,EAAEC;AAAd,UAAmC;AAA3D,QAAkEJ,MAAM,IAAI,EAAlF;AACA,UAAMK,iBAAiB,GAAGF,UAAU,IAAIC,gBAAxC;;AACA,QAAIC,iBAAiB,IAAI,CAACA,iBAAiB,CAACC,QAAlB,CAA2B,qBAA3B,CAA1B,EAA6E;AAC3E,aAAO;AAAEC,QAAAA,OAAO,EAAER,MAAX;AAAmBS,QAAAA,UAAU,EAAEZ,UAAU,CAACC,SAAS,CAACE,MAAD,CAAV;AAAzC,OAAP;AACD;AACF;;AAED,SAAO;AAAEQ,IAAAA,OAAO,EAAEN,gBAAX;AAA6BO,IAAAA,UAAU,EAAEN;AAAzC,GAAP;AACD,CAbD;;AAeA,eAAeJ,aAAf","sourcesContent":["import upperFirst from 'lodash.upperfirst';\nimport camelcase from 'lodash.camelcase';\n\nconst getEntityData = (entity, schema) => {\n const publishedDocType = `published_${entity}`;\n const publishedEntityType = `Published${upperFirst(camelcase(entity))}`;\n\n if (schema) {\n const { interfaces, [entity]: { interfaces: nestedInterfaces } = {} } = schema || {};\n const interfacesToCheck = interfaces || nestedInterfaces;\n if (interfacesToCheck && !interfacesToCheck.includes('publish/publishable')) {\n return { docType: entity, entityType: upperFirst(camelcase(entity)) };\n }\n }\n\n return { docType: publishedDocType, entityType: publishedEntityType };\n};\n\nexport default getEntityData;\n"],"file":"get-entity-data.js"}
1
+ {"version":3,"file":"get-entity-data.js","names":["upperFirst","camelcase","getEntityData","entity","schema","publishedDocType","publishedEntityType","interfaces","nestedInterfaces","interfacesToCheck","includes","docType","entityType"],"sources":["../../src/helpers/get-entity-data.js"],"sourcesContent":["import upperFirst from 'lodash.upperfirst';\nimport camelcase from 'lodash.camelcase';\n\nconst getEntityData = (entity, schema) => {\n const publishedDocType = `published_${entity}`;\n const publishedEntityType = `Published${upperFirst(camelcase(entity))}`;\n\n if (schema) {\n const { interfaces, [entity]: { interfaces: nestedInterfaces } = {} } = schema || {};\n const interfacesToCheck = interfaces || nestedInterfaces;\n if (interfacesToCheck && !interfacesToCheck.includes('publish/publishable')) {\n return { docType: entity, entityType: upperFirst(camelcase(entity)) };\n }\n }\n\n return { docType: publishedDocType, entityType: publishedEntityType };\n};\n\nexport default getEntityData;\n"],"mappings":"AAAA,OAAOA,UAAP,MAAuB,mBAAvB;AACA,OAAOC,SAAP,MAAsB,kBAAtB;;AAEA,MAAMC,aAAa,GAAG,CAACC,MAAD,EAASC,MAAT,KAAoB;EACxC,MAAMC,gBAAgB,GAAI,aAAYF,MAAO,EAA7C;EACA,MAAMG,mBAAmB,GAAI,YAAWN,UAAU,CAACC,SAAS,CAACE,MAAD,CAAV,CAAoB,EAAtE;;EAEA,IAAIC,MAAJ,EAAY;IACV,MAAM;MAAEG,UAAF;MAAc,CAACJ,MAAD,GAAU;QAAEI,UAAU,EAAEC;MAAd,IAAmC;IAA3D,IAAkEJ,MAAM,IAAI,EAAlF;IACA,MAAMK,iBAAiB,GAAGF,UAAU,IAAIC,gBAAxC;;IACA,IAAIC,iBAAiB,IAAI,CAACA,iBAAiB,CAACC,QAAlB,CAA2B,qBAA3B,CAA1B,EAA6E;MAC3E,OAAO;QAAEC,OAAO,EAAER,MAAX;QAAmBS,UAAU,EAAEZ,UAAU,CAACC,SAAS,CAACE,MAAD,CAAV;MAAzC,CAAP;IACD;EACF;;EAED,OAAO;IAAEQ,OAAO,EAAEN,gBAAX;IAA6BO,UAAU,EAAEN;EAAzC,CAAP;AACD,CAbD;;AAeA,eAAeJ,aAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-entity-render-props.js"],"names":["dataSchema","getAction","getEntityRenderProps","queryProps","data","isPreview","getEntitySchema","actions","getAllPublished","getAll","actionKey","action"],"mappings":"AAAA,SAASA,UAAT,QAA2B,sBAA3B;AACA,SAASC,SAAT,QAA0B,sBAA1B;;AAEA,SAASC,oBAAT,CAA8BC,UAA9B,EAA0CC,IAAI,GAAGJ,UAAjD,EAA6DK,SAAS,GAAG,KAAzE,EAAgF;AAC9E,QAAM;AAAEC,IAAAA;AAAF,MAAsBF,IAA5B;AAEA,QAAM;AACJG,IAAAA,OAAO,EAAE;AAAEC,MAAAA,eAAF;AAAmBC,MAAAA;AAAnB;AADL,MAEFH,eAFJ;AAGA,QAAMI,SAAS,GAAGL,SAAS,GAAGI,MAAH,GAAYD,eAAe,IAAIC,MAA1D;AACA,QAAME,MAAM,GAAGV,SAAS,CAACS,SAAD,EAAYP,UAAZ,CAAxB;AAEA,SAAO;AAAEO,IAAAA,SAAF;AAAaC,IAAAA;AAAb,GAAP;AACD;;AAED,eAAeT,oBAAf","sourcesContent":["import { dataSchema } from './entities/constants';\nimport { getAction } from '../application/query';\n\nfunction getEntityRenderProps(queryProps, data = dataSchema, isPreview = false) {\n const { getEntitySchema } = data;\n\n const {\n actions: { getAllPublished, getAll }\n } = getEntitySchema;\n const actionKey = isPreview ? getAll : getAllPublished || getAll;\n const action = getAction(actionKey, queryProps);\n\n return { actionKey, action };\n}\n\nexport default getEntityRenderProps;\n"],"file":"get-entity-render-props.js"}
1
+ {"version":3,"file":"get-entity-render-props.js","names":["dataSchema","getAction","getEntityRenderProps","queryProps","data","isPreview","getEntitySchema","actions","getAllPublished","getAll","actionKey","action"],"sources":["../../src/helpers/get-entity-render-props.js"],"sourcesContent":["import { dataSchema } from './entities/constants';\nimport { getAction } from '../application/query';\n\nfunction getEntityRenderProps(queryProps, data = dataSchema, isPreview = false) {\n const { getEntitySchema } = data;\n\n const {\n actions: { getAllPublished, getAll }\n } = getEntitySchema;\n const actionKey = isPreview ? getAll : getAllPublished || getAll;\n const action = getAction(actionKey, queryProps);\n\n return { actionKey, action };\n}\n\nexport default getEntityRenderProps;\n"],"mappings":"AAAA,SAASA,UAAT,QAA2B,sBAA3B;AACA,SAASC,SAAT,QAA0B,sBAA1B;;AAEA,SAASC,oBAAT,CAA8BC,UAA9B,EAA0CC,IAAI,GAAGJ,UAAjD,EAA6DK,SAAS,GAAG,KAAzE,EAAgF;EAC9E,MAAM;IAAEC;EAAF,IAAsBF,IAA5B;EAEA,MAAM;IACJG,OAAO,EAAE;MAAEC,eAAF;MAAmBC;IAAnB;EADL,IAEFH,eAFJ;EAGA,MAAMI,SAAS,GAAGL,SAAS,GAAGI,MAAH,GAAYD,eAAe,IAAIC,MAA1D;EACA,MAAME,MAAM,GAAGV,SAAS,CAACS,SAAD,EAAYP,UAAZ,CAAxB;EAEA,OAAO;IAAEO,SAAF;IAAaC;EAAb,CAAP;AACD;;AAED,eAAeT,oBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-extra-az-bits.js"],"names":["AZ_AGGS","ALL_AZ_SORT","getExtraAzBits","shouldReturnAggs","isAZ","azFilter"],"mappings":"AAAA,SAASA,OAAT,EAAkBC,WAAlB,QAAqC,cAArC;;AAEA,MAAMC,cAAc,GAAG,CAACC,gBAAD,EAAmBC,IAAnB,EAAyBC,QAAzB,KAAsC;AAC3D,MAAI,CAACD,IAAD,IAAUA,IAAI,IAAIC,QAAtB,EAAiC,OAAO,EAAP;AACjC,MAAIF,gBAAJ,EAAsB,OAAOH,OAAP;AAEtB,SAAOC,WAAP;AACD,CALD;;AAOA,eAAeC,cAAf","sourcesContent":["import { AZ_AGGS, ALL_AZ_SORT } from '../constants';\n\nconst getExtraAzBits = (shouldReturnAggs, isAZ, azFilter) => {\n if (!isAZ || (isAZ && azFilter)) return {};\n if (shouldReturnAggs) return AZ_AGGS;\n\n return ALL_AZ_SORT;\n};\n\nexport default getExtraAzBits;\n"],"file":"get-extra-az-bits.js"}
1
+ {"version":3,"file":"get-extra-az-bits.js","names":["AZ_AGGS","ALL_AZ_SORT","getExtraAzBits","shouldReturnAggs","isAZ","azFilter"],"sources":["../../src/helpers/get-extra-az-bits.js"],"sourcesContent":["import { AZ_AGGS, ALL_AZ_SORT } from '../constants';\n\nconst getExtraAzBits = (shouldReturnAggs, isAZ, azFilter) => {\n if (!isAZ || (isAZ && azFilter)) return {};\n if (shouldReturnAggs) return AZ_AGGS;\n\n return ALL_AZ_SORT;\n};\n\nexport default getExtraAzBits;\n"],"mappings":"AAAA,SAASA,OAAT,EAAkBC,WAAlB,QAAqC,cAArC;;AAEA,MAAMC,cAAc,GAAG,CAACC,gBAAD,EAAmBC,IAAnB,EAAyBC,QAAzB,KAAsC;EAC3D,IAAI,CAACD,IAAD,IAAUA,IAAI,IAAIC,QAAtB,EAAiC,OAAO,EAAP;EACjC,IAAIF,gBAAJ,EAAsB,OAAOH,OAAP;EAEtB,OAAOC,WAAP;AACD,CALD;;AAOA,eAAeC,cAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-filter-props.js"],"names":["getFilterRelationKeys","getFilterLocalKeys","relationName","relations","entityIdentifier","find","localField","getRelationEntity","filterName","filterEntityRelations","foreignKey","getFilterProps","filter","currentEntityRelations","properties","currentEntityProperties","dynamicProperties","currentEntityDynamicProperties","identifier","currentEntityId","filteryEntityId","split","relationProp","hasProperty","relationEntityName","filterNameEntity","propertyEntityName","entityName","isEntityItself","shouldCheckRelationNames","relationForeignKeys","shouldIgnoreFilter","length"],"mappings":"AAAA,OAAOA,qBAAP,MAAkC,4BAAlC;;AAEA,MAAMC,kBAAkB,GAAG,CAACC,YAAD,EAAeC,SAAf,KAA6B;AACtD,QAAM;AAAEC,IAAAA;AAAF,MACJD,SAAS,CAACE,IAAV,CAAe,CAAC;AAAEC,IAAAA;AAAF,GAAD,KAAoBA,UAAU,KAAKJ,YAAlD,KAAmE,EADrE;AAEA,SAAOE,gBAAP;AACD,CAJD;;AAMA,MAAMG,iBAAiB,GAAG,CAACC,UAAD,EAAaC,qBAAb,KAAuC;AAC/D,QAAM;AAAEL,IAAAA;AAAF,MACJK,qBAAqB,CAACJ,IAAtB,CAA2B,CAAC;AAAEK,IAAAA;AAAF,GAAD,KAAoBA,UAAU,KAAKF,UAA9D,KAA6E,EAD/E;AAEA,SAAOJ,gBAAP;AACD,CAJD;;AAMA,MAAMO,cAAc,GAAG,CACrBC,MADqB,EAErB;AACET,EAAAA,SAAS,EAAEU,sBAAsB,GAAG,EADtC;AAEEC,EAAAA,UAAU,E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A,cAPK;AAQLE,IAAAA,mBARK;AASLC,IAAAA;AATK,GAAP;AAWD,CAxCD;;AA0CA,eAAepB,cAAf","sourcesContent":["import getFilterRelationKeys from './get-filter-relation-keys';\n\nconst getFilterLocalKeys = (relationName, relations) => {\n const { entityIdentifier } =\n relations.find(({ localField }) => localField === relationName) || {};\n return entityIdentifier;\n};\n\nconst getRelationEntity = (filterName, filterEntityRelations) => {\n const { entityIdentifier } =\n filterEntityRelations.find(({ foreignKey }) => foreignKey === filterName) || {};\n return entityIdentifier;\n};\n\nconst getFilterProps = (\n filter,\n {\n relations: currentEntityRelations = [],\n properties: currentEntityProperties = {},\n dynamicProperties: currentEntityDynamicProperties = {},\n identifier: currentEntityId\n } = {},\n { relations: filterEntityRelations = [], identifier: filteryEntityId } = {}\n) => {\n const [filterName] = filter.split('/');\n const [relationName, relationProp] = filterName.split('.');\n const hasProperty = !!(\n currentEntityProperties[filterName] || currentEntityDynamicProperties[filterName]\n );\n const relationEntityName = relationProp\n ? getFilterLocalKeys(relationName, currentEntityRelations)\n : null;\n const filterNameEntity = getRelationEntity(filterName, filterEntityRelations);\n\n const propertyEntityName = relationEntityName || filterNameEntity;\n const entityName = filterNameEntity ? filteryEntityId : relationEntityName;\n const isEntityItself = currentEntityId === propertyEntityName;\n const shouldCheckRelationNames = !hasProperty && !relationEntityName;\n const relationForeignKeys = shouldCheckRelationNames\n ? getFilterRelationKeys(propertyEntityName, currentEntityRelations, currentEntityProperties)\n : [];\n const shouldIgnoreFilter = shouldCheckRelationNames && !relationForeignKeys.length;\n\n return {\n filterName,\n entityName,\n relationName,\n relationProp,\n hasProperty,\n relationEntityName,\n isEntityItself,\n relationForeignKeys,\n shouldIgnoreFilter\n };\n};\n\nexport default getFilterProps;\n"],"file":"get-filter-props.js"}
1
+ {"version":3,"file":"get-filter-props.js","names":["getFilterRelationKeys","getFilterLocalKeys","relationName","relations","entityIdentifier","find","localField","getRelationEntity","filterName","filterEntityRelations","foreignKey","getFilterProps","filter","currentEntityRelations","properties","currentEntityProperties","dynamicProperties","currentEntityDynamicProperties","identifier","currentEntityId","filteryEntityId","split","relationProp","hasProperty","relationEntityName","filterNameEntity","propertyEntityName","entityName","isEntityItself","shouldCheckRelationNames","relationForeignKeys","shouldIgnoreFilter","length"],"sources":["../../src/helpers/get-filter-props.js"],"sourcesContent":["import getFilterRelationKeys from './get-filter-relation-keys';\n\nconst getFilterLocalKeys = (relationName, relations) => {\n const { entityIdentifier } =\n relations.find(({ localField }) => localField === relationName) || {};\n return entityIdentifier;\n};\n\nconst getRelationEntity = (filterName, filterEntityRelations) => {\n const { entityIdentifier } =\n filterEntityRelations.find(({ foreignKey }) => foreignKey === filterName) || {};\n return entityIdentifier;\n};\n\nconst getFilterProps = (\n filter,\n {\n relations: currentEntityRelations = [],\n properties: currentEntityProperties = {},\n dynamicProperties: currentEntityDynamicProperties = {},\n identifier: currentEntityId\n } = {},\n { relations: filterEntityRelations = [], identifier: filteryEntityId } = {}\n) => {\n const [filterName] = filter.split('/');\n const [relationName, relationProp] = filterName.split('.');\n const hasProperty = !!(\n currentEntityProperties[filterName] || currentEntityDynamicProperties[filterName]\n );\n const relationEntityName = relationProp\n ? getFilterLocalKeys(relationName, currentEntityRelations)\n : null;\n const filterNameEntity = getRelationEntity(filterName, filterEntityRelations);\n\n const propertyEntityName = relationEntityName || filterNameEntity;\n const entityName = filterNameEntity ? filteryEntityId : relationEntityName;\n const isEntityItself = currentEntityId === propertyEntityName;\n const shouldCheckRelationNames = !hasProperty && !relationEntityName;\n const relationForeignKeys = shouldCheckRelationNames\n ? getFilterRelationKeys(propertyEntityName, currentEntityRelations, currentEntityProperties)\n : [];\n const shouldIgnoreFilter = shouldCheckRelationNames && !relationForeignKeys.length;\n\n return {\n filterName,\n entityName,\n relationName,\n relationProp,\n hasProperty,\n relationEntityName,\n isEntityItself,\n relationForeignKeys,\n shouldIgnoreFilter\n };\n};\n\nexport default getFilterProps;\n"],"mappings":"AAAA,OAAOA,qBAAP,MAAkC,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C,gBAAjD;EACA,MAAME,UAAU,GAAGF,gBAAgB,GAAGL,eAAH,GAAqBI,kBAAxD;EACA,MAAMI,cAAc,GAAGT,eAAe,KAAKO,kBAA3C;EACA,MAAMG,wBAAwB,GAAG,CAACN,WAAD,IAAgB,CAACC,kBAAlD;EACA,MAAMM,mBAAmB,GAAGD,wBAAwB,GAChD7B,qBAAqB,CAAC0B,kBAAD,EAAqBb,sBAArB,EAA6CE,uBAA7C,CAD2B,GAEhD,EAFJ;EAGA,MAAMgB,kBAAkB,GAAGF,wBAAwB,IAAI,CAACC,mBAAmB,CAACE,MAA5E;EAEA,OAAO;IACLxB,UADK;IAELmB,UAFK;IAGLzB,YAHK;IAILoB,YAJK;IAKLC,WALK;IAMLC,kBANK;IAOLI,cAPK;IAQLE,mBARK;IASLC;EATK,CAAP;AAWD,CAxCD;;AA0CA,eAAepB,cAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-filter-relation-keys.js"],"names":["getFilterRelationKeys","entityName","currentEntityRelations","currentEntityProperties","filter","entityIdentifier","foreignKey","map"],"mappings":"AAAA,MAAMA,qBAAqB,GAAG,CAACC,UAAD,EAAaC,sBAAb,EAAqCC,uBAArC,KAC5BD,sBAAsB,CACnBE,MADH,CAEI,CAAC;AAAEC,EAAAA,gBAAF;AAAoBC,EAAAA;AAApB,CAAD,KACED,gBAAgB,KAAKJ,UAArB,IAAmCE,uBAAuB,CAACG,UAAD,CAHhE,EAKGC,GALH,CAKO,CAAC;AAAED,EAAAA;AAAF,CAAD,KAAoBA,UAL3B,CADF;;AAQA,eAAeN,qBAAf","sourcesContent":["const getFilterRelationKeys = (entityName, currentEntityRelations, currentEntityProperties) =>\n currentEntityRelations\n .filter(\n ({ entityIdentifier, foreignKey }) =>\n entityIdentifier === entityName && currentEntityProperties[foreignKey]\n )\n .map(({ foreignKey }) => foreignKey);\n\nexport default getFilterRelationKeys;\n"],"file":"get-filter-relation-keys.js"}
1
+ {"version":3,"file":"get-filter-relation-keys.js","names":["getFilterRelationKeys","entityName","currentEntityRelations","currentEntityProperties","filter","entityIdentifier","foreignKey","map"],"sources":["../../src/helpers/get-filter-relation-keys.js"],"sourcesContent":["const getFilterRelationKeys = (entityName, currentEntityRelations, currentEntityProperties) =>\n currentEntityRelations\n .filter(\n ({ entityIdentifier, foreignKey }) =>\n entityIdentifier === entityName && currentEntityProperties[foreignKey]\n )\n .map(({ foreignKey }) => foreignKey);\n\nexport default getFilterRelationKeys;\n"],"mappings":"AAAA,MAAMA,qBAAqB,GAAG,CAACC,UAAD,EAAaC,sBAAb,EAAqCC,uBAArC,KAC5BD,sBAAsB,CACnBE,MADH,CAEI,CAAC;EAAEC,gBAAF;EAAoBC;AAApB,CAAD,KACED,gBAAgB,KAAKJ,UAArB,IAAmCE,uBAAuB,CAACG,UAAD,CAHhE,EAKGC,GALH,CAKO,CAAC;EAAED;AAAF,CAAD,KAAoBA,UAL3B,CADF;;AAQA,eAAeN,qBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-generic-props.js"],"names":["getDictionaryMatch","propsSchema","getGenericProps","props","itemsPerRow","gridModifier"],"mappings":";;;;;;AAAA,OAAOA,kBAAP,MAA+B,wBAA/B;AACA,SAASC,WAAT,QAA4B,sBAA5B;;AAEA,SAASC,eAAT,CAAyBC,KAAK,GAAGF,WAAjC,EAA8C;AAC5C,QAAM;AAAEG,IAAAA;AAAF,MAAkBD,KAAxB;AACA,QAAME,YAAY,GAAGL,kBAAkB,CAACI,WAAD,CAAvC;AAEA;AAASC,IAAAA;AAAT,KAA0BF,KAA1B;AACD;;AAED,eAAeD,eAAf","sourcesContent":["import getDictionaryMatch from './get-dictionary-match';\nimport { propsSchema } from './entities/constants';\n\nfunction getGenericProps(props = propsSchema) {\n const { itemsPerRow } = props;\n const gridModifier = getDictionaryMatch(itemsPerRow);\n\n return { gridModifier, ...props };\n}\n\nexport default getGenericProps;\n"],"file":"get-generic-props.js"}
1
+ {"version":3,"file":"get-generic-props.js","names":["getDictionaryMatch","propsSchema","getGenericProps","props","itemsPerRow","gridModifier"],"sources":["../../src/helpers/get-generic-props.js"],"sourcesContent":["import getDictionaryMatch from './get-dictionary-match';\nimport { propsSchema } from './entities/constants';\n\nfunction getGenericProps(props = propsSchema) {\n const { itemsPerRow } = props;\n const gridModifier = getDictionaryMatch(itemsPerRow);\n\n return { gridModifier, ...props };\n}\n\nexport default getGenericProps;\n"],"mappings":";;;;;;AAAA,OAAOA,kBAAP,MAA+B,wBAA/B;AACA,SAASC,WAAT,QAA4B,sBAA5B;;AAEA,SAASC,eAAT,CAAyBC,KAAK,GAAGF,WAAjC,EAA8C;EAC5C,MAAM;IAAEG;EAAF,IAAkBD,KAAxB;EACA,MAAME,YAAY,GAAGL,kBAAkB,CAACI,WAAD,CAAvC;EAEA;IAASC;EAAT,GAA0BF,KAA1B;AACD;;AAED,eAAeD,eAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-generic-render-variables.js"],"names":["getSortbyFieldName","DEFAULT_LIMIT","DEFAULT_OFFSET","buildSortValues","sortFilters","relations","stringProps","length","sort","sortValues","map","propsToDisplay","sortFieldName","toLowerCase","filter","Boolean","join","getCorrectSort","filterProps","isTextSearchApplied","sortby","sortProperties","getGenericRenderVariables","rawQuery","isTextSearchFilterApplied","useRandomSort","limit","offset","limitToUse","Number","offsetToUse","rawQueryStringified","JSON","stringify","query","function_score","random_score","boost_mode"],"mappings":";;;;;;AAAA,OAAOA,kBAAP,MAA+B,0BAA/B;AACA,SAASC,aAAT,EAAwBC,cAAxB,QAA8C,cAA9C;;AAEA,MAAMC,eAAe,GAAG,CAACC,WAAD,EAAcC,SAAd,EAAyBC,WAAzB,KAAyC;AAC/D,MAAI,CAACF,WAAD,IAAgB,CAACA,WAAW,CAACG,MAAjC,EAAyC,OAAO;AAAEC,IAAAA,IAAI,EAAE;AAAR,GAAP;AAEzC,QAAMC,UAAU,GAAGL,WAAW,CAC3BM,GADgB,CACZ,CAAC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,CAA1B;;AAEA,MAAIuB,aAAJ,EAAmB;AACjB,UAAMM,mBAAmB,GAAGC,IAAI,CAACC,SAAL,CAAe;AACzCC,MAAAA,KAAK,EAAE;AACLC,QAAAA,cAAc,EAAE;AACdD,UAAAA,KAAK,EAAEX,QAAQ,IAAIA,QAAQ,CAACW,KAArB,GAA6BX,QAAQ,CAACW,KAAtC,GAA8CX,QADvC;AAEda,UAAAA,YAAY,EAAE,EAFA;AAGdC,UAAAA,UAAU,EAAE;AAHE;AADX;AADkC,KAAf,CAA5B;AAUA,WAAO;AACLX,MAAAA,KAAK,EAAEE,UADF;AAELD,MAAAA,MAAM,EAAEG,WAFH;AAGLC,MAAAA;AAHK,KAAP;AAKD;;AAED,QAAMvB,IAAI,GAAGS,cAAc,CAACZ,SAAD,EAAYa,WAAZ,EAAyBZ,WAAzB,EAAsCkB,yBAAtC,CAA3B;AAEA;AACEE,IAAAA,KAAK,EAAEE,UADT;AAEED,IAAAA,MAAM,EAAEG;AAFV,KAGKtB,IAHL;AAIEuB,IAAAA,mBAAmB,EAAEC,IAAI,CAACC,SAAL,CAAeV,QAAf;AAJvB;AAMD,CAtCD;;AAwCA,eAAeD,yBAAf","sourcesContent":["import getSortbyFieldName from './get-sort-by-field-name';\nimport { DEFAULT_LIMIT, DEFAULT_OFFSET } from '../constants';\n\nconst buildSortValues = (sortFilters, relations, stringProps) => {\n if (!sortFilters || !sortFilters.length) return { sort: [] };\n\n const sortValues = sortFilters\n .map(({ sort, propsToDisplay }) => {\n if (!sort) return null;\n\n const sortFieldName = getSortbyFieldName(relations, propsToDisplay, stringProps);\n return sortFieldName ? `${sortFieldName}:${sort.toLowerCase()}` : null;\n })\n .filter(Boolean)\n .join(',');\n\n return { sort: sortValues };\n};\nconst getCorrectSort = (relations, filterProps, stringProps, isTextSearchApplied) => {\n if (isTextSearchApplied) {\n return {};\n }\n const { sort, sortby, sortProperties = [] } = filterProps;\n\n return buildSortValues(\n [{ sort, propsToDisplay: sortby }, ...sortProperties],\n relations,\n stringProps\n );\n};\n\nconst getGenericRenderVariables = (\n relations,\n filterProps = {},\n stringProps = [],\n rawQuery = {},\n isTextSearchFilterApplied = false,\n useRandomSort = false\n) => {\n const { limit = DEFAULT_LIMIT, offset } = filterProps;\n const limitToUse = Number(limit || DEFAULT_LIMIT);\n const offsetToUse = Number(offset || DEFAULT_OFFSET);\n\n if (useRandomSort) {\n const rawQueryStringified = JSON.stringify({\n query: {\n function_score: {\n query: rawQuery && rawQuery.query ? rawQuery.query : rawQuery,\n random_score: {},\n boost_mode: 'replace'\n }\n }\n });\n\n return {\n limit: limitToUse,\n offset: offsetToUse,\n rawQueryStringified\n };\n }\n\n const sort = getCorrectSort(relations, filterProps, stringProps, isTextSearchFilterApplied);\n\n return {\n limit: limitToUse,\n offset: offsetToUse,\n ...sort,\n rawQueryStringified: JSON.stringify(rawQuery)\n };\n};\n\nexport default getGenericRenderVariables;\n"],"file":"get-generic-render-variables.js"}
1
+ {"version":3,"file":"get-generic-render-variables.js","names":["getSortbyFieldName","DEFAULT_LIMIT","DEFAULT_OFFSET","buildSortValues","sortFilters","relations","stringProps","length","sort","sortValues","map","propsToDisplay","sortFieldName","toLowerCase","filter","Boolean","join","getCorrectSort","filterProps","isTextSearchApplied","sortby","sortProperties","getGenericRenderVariables","rawQuery","isTextSearchFilterApplied","useRandomSort","limit","offset","limitToUse","Number","offsetToUse","rawQueryStringified","JSON","stringify","query","function_score","random_score","boost_mode"],"sources":["../../src/helpers/get-generic-render-variables.js"],"sourcesContent":["import getSortbyFieldName from './get-sort-by-field-name';\nimport { DEFAULT_LIMIT, DEFAULT_OFFSET } from '../constants';\n\nconst buildSortValues = (sortFilters, relations, stringProps) => {\n if (!sortFilters || !sortFilters.length) return { sort: [] };\n\n const sortValues = sortFilters\n .map(({ sort, propsToDisplay }) => {\n if (!sort) return null;\n\n const sortFieldName = getSortbyFieldName(relations, propsToDisplay, stringProps);\n return sortFieldName ? `${sortFieldName}:${sort.toLowerCase()}` : null;\n })\n .filter(Boolean)\n .join(',');\n\n return { sort: sortValues };\n};\nconst getCorrectSort = (relations, filterProps, stringProps, isTextSearchApplied) => {\n if (isTextSearchApplied) {\n return {};\n }\n const { sort, sortby, sortProperties = [] } = filterProps;\n\n return buildSortValues(\n [{ sort, propsToDisplay: sortby }, ...sortProperties],\n relations,\n stringProps\n );\n};\n\nconst getGenericRenderVariables = (\n relations,\n filterProps = {},\n stringProps = [],\n rawQuery = {},\n isTextSearchFilterApplied = false,\n useRandomSort = false\n) => {\n const { limit = DEFAULT_LIMIT, offset } = filterProps;\n const limitToUse = Number(limit || DEFAULT_LIMIT);\n const offsetToUse = Number(offset || DEFAULT_OFFSET);\n\n if (useRandomSort) {\n const rawQueryStringified = JSON.stringify({\n query: {\n function_score: {\n query: rawQuery && rawQuery.query ? rawQuery.query : rawQuery,\n random_score: {},\n boost_mode: 'replace'\n }\n }\n });\n\n return {\n limit: limitToUse,\n offset: offsetToUse,\n rawQueryStringified\n };\n }\n\n const sort = getCorrectSort(relations, filterProps, stringProps, isTextSearchFilterApplied);\n\n return {\n limit: limitToUse,\n offset: offsetToUse,\n ...sort,\n rawQueryStringified: JSON.stringify(rawQuery)\n };\n};\n\nexport default getGenericRenderVariables;\n"],"mappings":";;;;;;AAAA,OAAOA,kBAAP,MAA+B,0BAA/B;AACA,SAASC,aAAT,EAAwBC,cAAxB,QAA8C,cAA9C;;AAEA,MAAMC,eAAe,GAAG,CAACC,WAAD,EAAcC,SAAd,EAAyBC,WAAzB,KAAyC;EAC/D,IAAI,CAACF,WAAD,IAAgB,CAACA,WAAW,CAACG,MAAjC,EAAyC,OAAO;IAAEC,IAAI,EAAE;EAAR,CAAP;EAEzC,MAAMC,UAAU,GAAGL,WAAW,CAC3BM,GADgB,CACZ,CAAC;IAAEF,IAAF;IAAQG;EAAR,CAAD,KAA8B;IACjC,IAAI,CAACH,IAAL,EAAW,OAAO,IAAP;IAEX,MAAMI,aAAa,GAAGZ,kBAAkB,CAACK,SAAD,EAAY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C,GAA8CX,QADvC;UAEda,YAAY,EAAE,EAFA;UAGdC,UAAU,EAAE;QAHE;MADX;IADkC,CAAf,CAA5B;IAUA,OAAO;MACLX,KAAK,EAAEE,UADF;MAELD,MAAM,EAAEG,WAFH;MAGLC;IAHK,CAAP;EAKD;;EAED,MAAMvB,IAAI,GAAGS,cAAc,CAACZ,SAAD,EAAYa,WAAZ,EAAyBZ,WAAzB,EAAsCkB,yBAAtC,CAA3B;EAEA;IACEE,KAAK,EAAEE,UADT;IAEED,MAAM,EAAEG;EAFV,GAGKtB,IAHL;IAIEuB,mBAAmB,EAAEC,IAAI,CAACC,SAAL,CAAeV,QAAf;EAJvB;AAMD,CAtCD;;AAwCA,eAAeD,yBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-image-ids.js"],"names":["isPlainObject","getIdsFromArray","relationImageData","relationProp","imageId","length","map","image","Object","keys","filter","Boolean","getImageIds","imageRelation","relationData","imageIdArray","entityData","imageData","relationName","split","Array","isArray"],"mappings":"AAAA,OAAOA,aAAP,MAA0B,sBAA1B;;AAEA,MAAMC,eAAe,GAAG,CAACC,iBAAD,EAAoBC,YAApB,EAAkCC,OAAlC,KAA8C;AACpE,MAAI,CAACF,iBAAiB,CAACG,MAAvB,EAA+B,OAAO,CAACD,OAAD,CAAP;AAC/B,SAAOF,iBAAiB,CACrBI,GADI,CACAC,KAAK,IAAI;AACZ,QAAI,CAACC,MAAM,CAACC,IAAP,CAAYF,KAAZ,EAAmBF,MAAxB,EAAgC,OAAO,EAAP;AAChC,WAAOE,KAAK,CAACJ,YAAD,CAAZ;AACD,GAJI,EAKJO,MALI,CAKGC,OALH,CAAP;AAMD,CARD;;AAUA,MAAMC,WAAW,GAAG,CAACC,aAAD,EAAgBC,YAAhB,EAA8BV,OAA9B,KAA0C;AAC5D,QAAMW,YAAY,GAAGX,OAAO,GAAG,CAACA,OAAD,CAAH,GAAe,EAA3C;;AACA,MAAIU,YAAY,IAAIA,YAAY,CAACE,UAAjC,EAA6C;AAC3C,UAAM,CAACC,SAAD,IAAcJ,aAApB;AACA,UAAM,CAACK,YAAD,EAAef,YAAf,IAA+Bc,SAAS,CAACE,KAAV,CAAgB,GAAhB,CAArC;AACA,UAAMjB,iBAAiB,GAAGY,YAAY,CAACE,UAAb,CAAwBE,YAAxB,CAA1B;AAEA,QAAI,CAAChB,iBAAL,EAAwB,OAAOa,YAAP;AAExB,QAAIK,KAAK,CAACC,OAAN,CAAcnB,iBAAd,CAAJ,EACE,OAAOD,eAAe,CAACC,iBAAD,EAAoBC,YAApB,EAAkCC,OAAlC,CAAtB;;AAEF,QAAIJ,aAAa,CAACE,iBAAD,CAAb,IAAoCM,MAAM,CAACC,IAAP,CAAYP,iBAAZ,EAA+BG,MAAvE,EAA+E;AAC7E,aAAOe,KAAK,CAACC,OAAN,CAAcnB,iBAAiB,CAACC,YAAD,CAA/B,IACHD,iBAAiB,CAACC,YAAD,CADd,GAEH,CAACD,iBAAiB,CAACC,YAAD,CAAlB,CAFJ;AAGD;AACF;;AAED,SAAOY,YAAP;AACD,CApBD;;AAsBA,eAAeH,WAAf","sourcesContent":["import isPlainObject from 'lodash.isplainobject';\n\nconst getIdsFromArray = (relationImageData, relationProp, imageId) => {\n if (!relationImageData.length) return [imageId];\n return relationImageData\n .map(image => {\n if (!Object.keys(image).length) return '';\n return image[relationProp];\n })\n .filter(Boolean);\n};\n\nconst getImageIds = (imageRelation, relationData, imageId) => {\n const imageIdArray = imageId ? [imageId] : [];\n if (relationData && relationData.entityData) {\n const [imageData] = imageRelation;\n const [relationName, relationProp] = imageData.split('.');\n const relationImageData = relationData.entityData[relationName];\n\n if (!relationImageData) return imageIdArray;\n\n if (Array.isArray(relationImageData))\n return getIdsFromArray(relationImageData, relationProp, imageId);\n\n if (isPlainObject(relationImageData) && Object.keys(relationImageData).length) {\n return Array.isArray(relationImageData[relationProp])\n ? relationImageData[relationProp]\n : [relationImageData[relationProp]];\n }\n }\n\n return imageIdArray;\n};\n\nexport default getImageIds;\n"],"file":"get-image-ids.js"}
1
+ {"version":3,"file":"get-image-ids.js","names":["isPlainObject","getIdsFromArray","relationImageData","relationProp","imageId","length","map","image","Object","keys","filter","Boolean","getImageIds","imageRelation","relationData","imageIdArray","entityData","imageData","relationName","split","Array","isArray"],"sources":["../../src/helpers/get-image-ids.js"],"sourcesContent":["import isPlainObject from 'lodash.isplainobject';\n\nconst getIdsFromArray = (relationImageData, relationProp, imageId) => {\n if (!relationImageData.length) return [imageId];\n return relationImageData\n .map(image => {\n if (!Object.keys(image).length) return '';\n return image[relationProp];\n })\n .filter(Boolean);\n};\n\nconst getImageIds = (imageRelation, relationData, imageId) => {\n const imageIdArray = imageId ? [imageId] : [];\n if (relationData && relationData.entityData) {\n const [imageData] = imageRelation;\n const [relationName, relationProp] = imageData.split('.');\n const relationImageData = relationData.entityData[relationName];\n\n if (!relationImageData) return imageIdArray;\n\n if (Array.isArray(relationImageData))\n return getIdsFromArray(relationImageData, relationProp, imageId);\n\n if (isPlainObject(relationImageData) && Object.keys(relationImageData).length) {\n return Array.isArray(relationImageData[relationProp])\n ? relationImageData[relationProp]\n : [relationImageData[relationProp]];\n }\n }\n\n return imageIdArray;\n};\n\nexport default getImageIds;\n"],"mappings":"AAAA,OAAOA,aAAP,MAA0B,sBAA1B;;AAEA,MAAMC,eAAe,GAAG,CAACC,iBAAD,EAAoBC,YAApB,EAAkCC,OAAlC,KAA8C;EACpE,IAAI,CAACF,iBAAiB,CAACG,MAAvB,EAA+B,OAAO,CAACD,OAAD,CAAP;EAC/B,OAAOF,iBAAiB,CACrBI,GADI,CACAC,KAAK,IAAI;IACZ,IAAI,CAACC,MAAM,CAACC,IAAP,CAAYF,KAAZ,EAAmBF,MAAxB,EAAgC,OAAO,EAAP;IAChC,OAAOE,KAAK,CAACJ,YAAD,CAAZ;EACD,CAJI,EAKJO,MALI,CAKGC,OALH,CAAP;AAMD,CARD;;AAUA,MAAMC,WAAW,GAAG,CAACC,aAAD,EAAgBC,YAAhB,EAA8BV,OAA9B,KAA0C;EAC5D,MAAMW,YAAY,GAAGX,OAAO,GAAG,CAACA,OAAD,CAAH,GAAe,EAA3C;;EACA,IAAIU,YAAY,IAAIA,YAAY,CAACE,UAAjC,EAA6C;IAC3C,MAAM,CAACC,SAAD,IAAcJ,aAApB;IACA,MAAM,CAACK,YAAD,EAAef,YAAf,IAA+Bc,SAAS,CAACE,KAAV,CAAgB,GAAhB,CAArC;IACA,MAAMjB,iBAAiB,GAAGY,YAAY,CAACE,UAAb,CAAwBE,YAAxB,CAA1B;IAEA,IAAI,CAAChB,iBAAL,EAAwB,OAAOa,YAAP;IAExB,IAAIK,KAAK,CAACC,OAAN,CAAcnB,iBAAd,CAAJ,EACE,OAAOD,eAAe,CAACC,iBAAD,EAAoBC,YAApB,EAAkCC,OAAlC,CAAtB;;IAEF,IAAIJ,aAAa,CAACE,iBAAD,CAAb,IAAoCM,MAAM,CAACC,IAAP,CAAYP,iBAAZ,EAA+BG,MAAvE,EAA+E;MAC7E,OAAOe,KAAK,CAACC,OAAN,CAAcnB,iBAAiB,CAACC,YAAD,CAA/B,IACHD,iBAAiB,CAACC,YAAD,CADd,GAEH,CAACD,iBAAiB,CAACC,YAAD,CAAlB,CAFJ;IAGD;EACF;;EAED,OAAOY,YAAP;AACD,CApBD;;AAsBA,eAAeH,WAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-inherited-filters.js"],"names":["getInheritedFilters","filterBy","filterByProperty","length","reduce","acc","property","propName","split","filterByMatched","filter","filterId","includes","push"],"mappings":"AAAA,MAAMA,mBAAmB,GAAG,CAACC,QAAD,EAAWC,gBAAX,KAAgC;AAC1D,MAAI,CAACA,gBAAgB,CAACC,MAAtB,EAA8B,OAAO,EAAP;AAC9B,MAAI,CAACF,QAAQ,CAACE,MAAd,EAAsB,OAAOD,gBAAP;AAEtB,SAAOA,gBAAgB,CAACE,MAAjB,CAAwB,CAACC,GAAD,EAAMC,QAAN,KAAmB;AAChD,UAAM,CAACC,QAAD,IAAaD,QAAQ,CAACE,KAAT,CAAe,GAAf,CAAnB;AACA,UAAMC,eAAe,GAAGR,QAAQ,CAACS,MAAT,CAAgBC,QAAQ,IAAIA,QAAQ,CAACC,QAAT,CAAmB,GAAEL,QAAS,GAA9B,CAA5B,CAAxB;AAEA,QAAI,CAACE,eAAe,CAACN,MAArB,EAA6BE,GAAG,CAACQ,IAAJ,CAASP,QAAT;AAC7B,WAAOD,GAAP;AACD,GANM,EAMJ,EANI,CAAP;AAOD,CAXD;;AAaA,eAAeL,mBAAf","sourcesContent":["const getInheritedFilters = (filterBy, filterByProperty) => {\n if (!filterByProperty.length) return [];\n if (!filterBy.length) return filterByProperty;\n\n return filterByProperty.reduce((acc, property) => {\n const [propName] = property.split('/');\n const filterByMatched = filterBy.filter(filterId => filterId.includes(`${propName}/`));\n\n if (!filterByMatched.length) acc.push(property);\n return acc;\n }, []);\n};\n\nexport default getInheritedFilters;\n"],"file":"get-inherited-filters.js"}
1
+ {"version":3,"file":"get-inherited-filters.js","names":["getInheritedFilters","filterBy","filterByProperty","length","reduce","acc","property","propName","split","filterByMatched","filter","filterId","includes","push"],"sources":["../../src/helpers/get-inherited-filters.js"],"sourcesContent":["const getInheritedFilters = (filterBy, filterByProperty) => {\n if (!filterByProperty.length) return [];\n if (!filterBy.length) return filterByProperty;\n\n return filterByProperty.reduce((acc, property) => {\n const [propName] = property.split('/');\n const filterByMatched = filterBy.filter(filterId => filterId.includes(`${propName}/`));\n\n if (!filterByMatched.length) acc.push(property);\n return acc;\n }, []);\n};\n\nexport default getInheritedFilters;\n"],"mappings":"AAAA,MAAMA,mBAAmB,GAAG,CAACC,QAAD,EAAWC,gBAAX,KAAgC;EAC1D,IAAI,CAACA,gBAAgB,CAACC,MAAtB,EAA8B,OAAO,EAAP;EAC9B,IAAI,CAACF,QAAQ,CAACE,MAAd,EAAsB,OAAOD,gBAAP;EAEtB,OAAOA,gBAAgB,CAACE,MAAjB,CAAwB,CAACC,GAAD,EAAMC,QAAN,KAAmB;IAChD,MAAM,CAACC,QAAD,IAAaD,QAAQ,CAACE,KAAT,CAAe,GAAf,CAAnB;IACA,MAAMC,eAAe,GAAGR,QAAQ,CAACS,MAAT,CAAgBC,QAAQ,IAAIA,QAAQ,CAACC,QAAT,CAAmB,GAAEL,QAAS,GAA9B,CAA5B,CAAxB;IAEA,IAAI,CAACE,eAAe,CAACN,MAArB,EAA6BE,GAAG,CAACQ,IAAJ,CAASP,QAAT;IAC7B,OAAOD,GAAP;EACD,CANM,EAMJ,EANI,CAAP;AAOD,CAXD;;AAaA,eAAeL,mBAAf"}
@@ -0,0 +1,7 @@
1
+ const getItemListData = data => {
2
+ if (data && data.getItemList && data.getItemList.listItems) return data.getItemList.listItems;
3
+ return [];
4
+ };
5
+
6
+ export default getItemListData;
7
+ //# sourceMappingURL=get-item-list-data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-item-list-data.js","names":["getItemListData","data","getItemList","listItems"],"sources":["../../src/helpers/get-item-list-data.js"],"sourcesContent":["const getItemListData = data => {\n if (data && data.getItemList && data.getItemList.listItems) return data.getItemList.listItems;\n return [];\n};\n\nexport default getItemListData;\n"],"mappings":"AAAA,MAAMA,eAAe,GAAGC,IAAI,IAAI;EAC9B,IAAIA,IAAI,IAAIA,IAAI,CAACC,WAAb,IAA4BD,IAAI,CAACC,WAAL,CAAiBC,SAAjD,EAA4D,OAAOF,IAAI,CAACC,WAAL,CAAiBC,SAAxB;EAC5D,OAAO,EAAP;AACD,CAHD;;AAKA,eAAeH,eAAf"}
@@ -0,0 +1,11 @@
1
+ import { LIST_ITEM_LOCAL_KEY } from '../constants';
2
+
3
+ const getItemListId = (listName, queryId) => {
4
+ if (queryId) return queryId;
5
+ if (!listName || typeof localStorage === 'undefined') return '';
6
+ const localListName = `${LIST_ITEM_LOCAL_KEY}${listName}`;
7
+ return localStorage.getItem(localListName) || '';
8
+ };
9
+
10
+ export default getItemListId;
11
+ //# sourceMappingURL=get-item-list-id.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-item-list-id.js","names":["LIST_ITEM_LOCAL_KEY","getItemListId","listName","queryId","localStorage","localListName","getItem"],"sources":["../../src/helpers/get-item-list-id.js"],"sourcesContent":["import { LIST_ITEM_LOCAL_KEY } from '../constants';\n\nconst getItemListId = (listName, queryId) => {\n if (queryId) return queryId;\n if (!listName || typeof localStorage === 'undefined') return '';\n\n const localListName = `${LIST_ITEM_LOCAL_KEY}${listName}`;\n return localStorage.getItem(localListName) || '';\n};\n\nexport default getItemListId;\n"],"mappings":"AAAA,SAASA,mBAAT,QAAoC,cAApC;;AAEA,MAAMC,aAAa,GAAG,CAACC,QAAD,EAAWC,OAAX,KAAuB;EAC3C,IAAIA,OAAJ,EAAa,OAAOA,OAAP;EACb,IAAI,CAACD,QAAD,IAAa,OAAOE,YAAP,KAAwB,WAAzC,EAAsD,OAAO,EAAP;EAEtD,MAAMC,aAAa,GAAI,GAAEL,mBAAoB,GAAEE,QAAS,EAAxD;EACA,OAAOE,YAAY,CAACE,OAAb,CAAqBD,aAArB,KAAuC,EAA9C;AACD,CAND;;AAQA,eAAeJ,aAAf"}
@@ -0,0 +1,13 @@
1
+ import getItemListData from './get-item-list-data';
2
+
3
+ const getItemListIds = data => {
4
+ const itemListElements = getItemListData(data);
5
+ return itemListElements.length ? itemListElements.map(({
6
+ itemId
7
+ }) => ({
8
+ displayItems: [itemId]
9
+ })) : null;
10
+ };
11
+
12
+ export default getItemListIds;
13
+ //# sourceMappingURL=get-item-list-ids.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-item-list-ids.js","names":["getItemListData","getItemListIds","data","itemListElements","length","map","itemId","displayItems"],"sources":["../../src/helpers/get-item-list-ids.js"],"sourcesContent":["import getItemListData from './get-item-list-data';\n\nconst getItemListIds = data => {\n const itemListElements = getItemListData(data);\n return itemListElements.length\n ? itemListElements.map(({ itemId }) => ({ displayItems: [itemId] }))\n : null;\n};\n\nexport default getItemListIds;\n"],"mappings":"AAAA,OAAOA,eAAP,MAA4B,sBAA5B;;AAEA,MAAMC,cAAc,GAAGC,IAAI,IAAI;EAC7B,MAAMC,gBAAgB,GAAGH,eAAe,CAACE,IAAD,CAAxC;EACA,OAAOC,gBAAgB,CAACC,MAAjB,GACHD,gBAAgB,CAACE,GAAjB,CAAqB,CAAC;IAAEC;EAAF,CAAD,MAAiB;IAAEC,YAAY,EAAE,CAACD,MAAD;EAAhB,CAAjB,CAArB,CADG,GAEH,IAFJ;AAGD,CALD;;AAOA,eAAeL,cAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-items-to-display-ids.js"],"names":["getItemsToDisplayIds","itemsToDisplay","length","ids","reduce","acc","displayItems","concat","Set"],"mappings":"AAAA,SAASA,oBAAT,CAA8BC,cAA9B,EAA8C;AAC5C,MAAI,CAACA,cAAD,IAAmB,CAACA,cAAc,CAACC,MAAvC,EAA+C,OAAO,EAAP;AAC/C,QAAMC,GAAG,GAAGF,cAAc,CAACG,MAAf,CAAsB,CAACC,GAAD,EAAM;AAAEC,IAAAA;AAAF,GAAN,KAA2B;AAC3D,QAAI,CAACA,YAAD,IAAiB,CAACA,YAAY,CAACJ,MAAnC,EAA2C,OAAOG,GAAP;AAC3C,WAAOA,GAAG,CAACE,MAAJ,CAAWD,YAAX,CAAP;AACD,GAHW,EAGT,EAHS,CAAZ;AAIA,SAAO,CAAC,GAAG,IAAIE,GAAJ,CAAQ,CAAC,GAAGL,GAAJ,CAAR,CAAJ,CAAP;AACD;;AAED,eAAeH,oBAAf","sourcesContent":["function getItemsToDisplayIds(itemsToDisplay) {\n if (!itemsToDisplay || !itemsToDisplay.length) return [];\n const ids = itemsToDisplay.reduce((acc, { displayItems }) => {\n if (!displayItems || !displayItems.length) return acc;\n return acc.concat(displayItems);\n }, []);\n return [...new Set([...ids])];\n}\n\nexport default getItemsToDisplayIds;\n"],"file":"get-items-to-display-ids.js"}
1
+ {"version":3,"file":"get-items-to-display-ids.js","names":["getItemsToDisplayIds","itemsToDisplay","length","ids","reduce","acc","displayItems","concat","Set"],"sources":["../../src/helpers/get-items-to-display-ids.js"],"sourcesContent":["function getItemsToDisplayIds(itemsToDisplay) {\n if (!itemsToDisplay || !itemsToDisplay.length) return [];\n const ids = itemsToDisplay.reduce((acc, { displayItems }) => {\n if (!displayItems || !displayItems.length) return acc;\n return acc.concat(displayItems);\n }, []);\n return [...new Set([...ids])];\n}\n\nexport default getItemsToDisplayIds;\n"],"mappings":"AAAA,SAASA,oBAAT,CAA8BC,cAA9B,EAA8C;EAC5C,IAAI,CAACA,cAAD,IAAmB,CAACA,cAAc,CAACC,MAAvC,EAA+C,OAAO,EAAP;EAC/C,MAAMC,GAAG,GAAGF,cAAc,CAACG,MAAf,CAAsB,CAACC,GAAD,EAAM;IAAEC;EAAF,CAAN,KAA2B;IAC3D,IAAI,CAACA,YAAD,IAAiB,CAACA,YAAY,CAACJ,MAAnC,EAA2C,OAAOG,GAAP;IAC3C,OAAOA,GAAG,CAACE,MAAJ,CAAWD,YAAX,CAAP;EACD,CAHW,EAGT,EAHS,CAAZ;EAIA,OAAO,CAAC,GAAG,IAAIE,GAAJ,CAAQ,CAAC,GAAGL,GAAJ,CAAR,CAAJ,CAAP;AACD;;AAED,eAAeH,oBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-modifiers.js"],"names":["getModifiers","base","modifier","Array","isArray","modifiers","map","modi","validateModifier","unshift","uniqueModifiers","Set","join","withBase","isValidModifier"],"mappings":"AAAA,MAAMA,YAAY,GAAG,CAACC,IAAD,EAAOC,QAAP,KAAoB;AACvC,MAAIC,KAAK,CAACC,OAAN,CAAcF,QAAd,CAAJ,EAA6B;AAC3B,UAAMG,SAAS,GAAGH,QAAQ,CAACI,GAAT,CAAaC,IAAI,IAAIC,gBAAgB,CAACP,IAAD,EAAOM,IAAP,EAAa,KAAb,CAArC,CAAlB;AACAF,IAAAA,SAAS,CAACI,OAAV,CAAkBR,IAAlB;AACA,UAAMS,eAAe,GAAG,CAAC,GAAG,IAAIC,GAAJ,CAAQN,SAAR,CAAJ,CAAxB;AAEA,WAAOK,eAAe,CAACE,IAAhB,CAAqB,GAArB,CAAP;AACD;;AACD,SAAOJ,gBAAgB,CAACP,IAAD,EAAOC,QAAP,CAAvB;AACD,CATD;;AAWA,MAAMM,gBAAgB,GAAG,CAACP,IAAD,EAAOC,QAAP,EAAiBW,QAAQ,GAAG,IAA5B,KAAqC;AAC5D,QAAMC,eAAe,GAAGZ,QAAQ,IAAI,OAAOA,QAAP,KAAoB,QAAxD;AACA,MAAIY,eAAJ,EAAqB,OAAOD,QAAQ,GAAI,GAAEZ,IAAK,IAAGA,IAAK,KAAIC,QAAS,EAAhC,GAAqC,GAAED,IAAK,KAAIC,QAAS,EAAxE;AAErB,SAAOD,IAAP;AACD,CALD;;AAOA,eAAeD,YAAf","sourcesContent":["const getModifiers = (base, modifier) => {\n if (Array.isArray(modifier)) {\n const modifiers = modifier.map(modi => validateModifier(base, modi, false));\n modifiers.unshift(base);\n const uniqueModifiers = [...new Set(modifiers)];\n\n return uniqueModifiers.join(' ');\n }\n return validateModifier(base, modifier);\n};\n\nconst validateModifier = (base, modifier, withBase = true) => {\n const isValidModifier = modifier && typeof modifier === 'string';\n if (isValidModifier) return withBase ? `${base} ${base}--${modifier}` : `${base}--${modifier}`;\n\n return base;\n};\n\nexport default getModifiers;\n"],"file":"get-modifiers.js"}
1
+ {"version":3,"file":"get-modifiers.js","names":["getModifiers","base","modifier","Array","isArray","modifiers","map","modi","validateModifier","unshift","uniqueModifiers","Set","join","withBase","isValidModifier"],"sources":["../../src/helpers/get-modifiers.js"],"sourcesContent":["const getModifiers = (base, modifier) => {\n if (Array.isArray(modifier)) {\n const modifiers = modifier.map(modi => validateModifier(base, modi, false));\n modifiers.unshift(base);\n const uniqueModifiers = [...new Set(modifiers)];\n\n return uniqueModifiers.join(' ');\n }\n return validateModifier(base, modifier);\n};\n\nconst validateModifier = (base, modifier, withBase = true) => {\n const isValidModifier = modifier && typeof modifier === 'string';\n if (isValidModifier) return withBase ? `${base} ${base}--${modifier}` : `${base}--${modifier}`;\n\n return base;\n};\n\nexport default getModifiers;\n"],"mappings":"AAAA,MAAMA,YAAY,GAAG,CAACC,IAAD,EAAOC,QAAP,KAAoB;EACvC,IAAIC,KAAK,CAACC,OAAN,CAAcF,QAAd,CAAJ,EAA6B;IAC3B,MAAMG,SAAS,GAAGH,QAAQ,CAACI,GAAT,CAAaC,IAAI,IAAIC,gBAAgB,CAACP,IAAD,EAAOM,IAAP,EAAa,KAAb,CAArC,CAAlB;IACAF,SAAS,CAACI,OAAV,CAAkBR,IAAlB;IACA,MAAMS,eAAe,GAAG,CAAC,GAAG,IAAIC,GAAJ,CAAQN,SAAR,CAAJ,CAAxB;IAEA,OAAOK,eAAe,CAACE,IAAhB,CAAqB,GAArB,CAAP;EACD;;EACD,OAAOJ,gBAAgB,CAACP,IAAD,EAAOC,QAAP,CAAvB;AACD,CATD;;AAWA,MAAMM,gBAAgB,GAAG,CAACP,IAAD,EAAOC,QAAP,EAAiBW,QAAQ,GAAG,IAA5B,KAAqC;EAC5D,MAAMC,eAAe,GAAGZ,QAAQ,IAAI,OAAOA,QAAP,KAAoB,QAAxD;EACA,IAAIY,eAAJ,EAAqB,OAAOD,QAAQ,GAAI,GAAEZ,IAAK,IAAGA,IAAK,KAAIC,QAAS,EAAhC,GAAqC,GAAED,IAAK,KAAIC,QAAS,EAAxE;EAErB,OAAOD,IAAP;AACD,CALD;;AAOA,eAAeD,YAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-not-equal-query.js"],"names":["getNotEqualQuery","itemId","id","_ne"],"mappings":"AAAA,eAAe,SAASA,gBAAT,CAA0BC,MAA1B,EAAkC;AAC/C,MAAI,CAACA,MAAL,EAAa,OAAO,EAAP;AAEb,SAAO;AACLC,IAAAA,EAAE,EAAE;AACFC,MAAAA,GAAG,EAAEF;AADH;AADC,GAAP;AAKD","sourcesContent":["export default function getNotEqualQuery(itemId) {\n if (!itemId) return {};\n\n return {\n id: {\n _ne: itemId\n }\n };\n}\n"],"file":"get-not-equal-query.js"}
1
+ {"version":3,"file":"get-not-equal-query.js","names":["getNotEqualQuery","itemId","id","_ne"],"sources":["../../src/helpers/get-not-equal-query.js"],"sourcesContent":["export default function getNotEqualQuery(itemId) {\n if (!itemId) return {};\n\n return {\n id: {\n _ne: itemId\n }\n };\n}\n"],"mappings":"AAAA,eAAe,SAASA,gBAAT,CAA0BC,MAA1B,EAAkC;EAC/C,IAAI,CAACA,MAAL,EAAa,OAAO,EAAP;EAEb,OAAO;IACLC,EAAE,EAAE;MACFC,GAAG,EAAEF;IADH;EADC,CAAP;AAKD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-pagination-index.js"],"names":["PAGINATION_QUERY_CONST","PB_QUERY_CONST","getPaginationIndex","query","name","paginationIndex","Number"],"mappings":"AAAA,SAASA,sBAAT,EAAiCC,cAAjC,QAAuD,cAAvD;;AAEA,SAASC,kBAAT,CAA4BC,KAA5B,EAAmCC,IAAnC,EAAyC;AACvC,MAAI,CAACD,KAAD,IAAU,CAACC,IAAf,EAAqB,OAAO,CAAP;AACrB,QAAMC,eAAe,GAAGF,KAAK,CAAE,GAAEF,cAAe,IAAGG,IAAK,IAAGJ,sBAAuB,EAArD,CAA7B;AACA,SAAOM,MAAM,CAACD,eAAD,CAAN,IAA2B,CAAlC;AACD;;AAED,eAAeH,kBAAf","sourcesContent":["import { PAGINATION_QUERY_CONST, PB_QUERY_CONST } from '../constants';\n\nfunction getPaginationIndex(query, name) {\n if (!query || !name) return 1;\n const paginationIndex = query[`${PB_QUERY_CONST}[${name}]${PAGINATION_QUERY_CONST}`];\n return Number(paginationIndex) || 1;\n}\n\nexport default getPaginationIndex;\n"],"file":"get-pagination-index.js"}
1
+ {"version":3,"file":"get-pagination-index.js","names":["PAGINATION_QUERY_CONST","PB_QUERY_CONST","getPaginationIndex","query","name","paginationIndex","Number"],"sources":["../../src/helpers/get-pagination-index.js"],"sourcesContent":["import { PAGINATION_QUERY_CONST, PB_QUERY_CONST } from '../constants';\n\nfunction getPaginationIndex(query, name) {\n if (!query || !name) return 1;\n const paginationIndex = query[`${PB_QUERY_CONST}[${name}]${PAGINATION_QUERY_CONST}`];\n return Number(paginationIndex) || 1;\n}\n\nexport default getPaginationIndex;\n"],"mappings":"AAAA,SAASA,sBAAT,EAAiCC,cAAjC,QAAuD,cAAvD;;AAEA,SAASC,kBAAT,CAA4BC,KAA5B,EAAmCC,IAAnC,EAAyC;EACvC,IAAI,CAACD,KAAD,IAAU,CAACC,IAAf,EAAqB,OAAO,CAAP;EACrB,MAAMC,eAAe,GAAGF,KAAK,CAAE,GAAEF,cAAe,IAAGG,IAAK,IAAGJ,sBAAuB,EAArD,CAA7B;EACA,OAAOM,MAAM,CAACD,eAAD,CAAN,IAA2B,CAAlC;AACD;;AAED,eAAeH,kBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-parsed-prop-values.js"],"names":["React","Link","isObject","removeUnwantedCharacters","getParsedPropValues","propertiesToDisplay","props","enableLink","shouldStrip","map","property","filteredProperty","subtype","split","value","Array","isArray","prop","index","propValue","sanitizedValue","isLastValue","length","parsedValue","concat","linkKey","join","url","filter","Boolean"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,8BAArB;AACA,OAAOC,QAAP,MAAqB,aAArB;AACA,OAAOC,wBAAP,MAAqC,8BAArC;;AAEA,MAAMC,mBAAmB,GAAG,CAAC;AAAEC,EAAAA,mBAAF;AAAuBC,EAAAA,KAAvB;AAA8BC,EAAAA,UAA9B;AAA0CC,EAAAA;AAA1C,CAAD,KAC1BH,mBAAmB,CAChBI,GADH,CACOC,QAAQ,IAAI;AACf,QAAM,CAACC,gBAAD,EAAmBC,OAAnB,IAA8BF,QAAQ,CAACG,KAAT,CAAe,GAAf,CAApC;AACA,QAAMC,KAAK,GAAGR,KAAK,CAACK,gBAAD,CAAnB;;AAEA,MAAII,KAAK,CAACC,OAAN,CAAcF,KAAd,CAAJ,EAA0B;AACxB,WAAOA,KAAK,CAACL,GAAN,CAAU,CAACQ,IAAD,EAAOC,KAAP,KAAiB;AAChC,YAAMC,SAAS,GAAGP,OAAO,GAAGK,IAAI,CAACL,OAAD,CAAP,GAAmBK,IAA5C;AACA,YAAMG,cAAc,GAAGZ,WAAW,GAAGL,wBAAwB,CAACgB,SAAD,CAA3B,GAAyCA,SAA3E;AAEA,YAAME,WAAW,GAAGH,KAAK,KAAKJ,KAAK,CAACQ,MAAN,GAAe,CAA7C;AACA,YAAMC,WAAW,GAAGF,WAAW,GAAGD,cAAH,GAAoBA,cAAc,CAACI,MAAf,CAAsB,IAAtB,CAAnD;AACA,YAAMC,OAAO,GAAG,CAACd,gBAAD,EAAmBM,IAAI,CAACL,OAAD,CAAvB,EAAkCM,KAAlC,EAAyCQ,IAAzC,CAA8C,GAA9C,CAAhB;AAEA,aAAOnB,UAAU,IAAIU,IAAI,CAACU,GAAnB,gBACL,oBAAC,IAAD;AAAM,QAAA,GAAG,EAAEF,OAAX;AAAoB,QAAA,IAAI,EAAER,IAAI,CAACU;AAA/B,SACGJ,WADH,CADK,GAKLA,WALF;AAOD,KAfM,CAAP;AAgBD;;AAED,MAAIrB,QAAQ,CAACY,KAAD,CAAZ,EAAqB;AACnB,WAAON,WAAW,GAAGL,wBAAwB,CAACW,KAAK,CAACF,OAAD,CAAN,CAA3B,GAA8CE,KAAK,CAACF,OAAD,CAArE;AACD;;AAED,SAAOJ,WAAW,GAAGL,wBAAwB,CAACW,KAAD,CAA3B,GAAqCA,KAAvD;AACD,CA7BH,EA8BGc,MA9BH,CA8BUC,OA9BV,CADF;;AAiCA,eAAezB,mBAAf","sourcesContent":["import React from 'react';\nimport { Link } from '@blaze-cms/nextjs-components';\nimport isObject from './is-object';\nimport removeUnwantedCharacters from './remove-unwanted-characters';\n\nconst getParsedPropValues = ({ propertiesToDisplay, props, enableLink, shouldStrip }) =>\n propertiesToDisplay\n .map(property => {\n const [filteredProperty, subtype] = property.split('.');\n const value = props[filteredProperty];\n\n if (Array.isArray(value)) {\n return value.map((prop, index) => {\n const propValue = subtype ? prop[subtype] : prop;\n const sanitizedValue = shouldStrip ? removeUnwantedCharacters(propValue) : propValue;\n\n const isLastValue = index === value.length - 1;\n const parsedValue = isLastValue ? sanitizedValue : sanitizedValue.concat(', ');\n const linkKey = [filteredProperty, prop[subtype], index].join('-');\n\n return enableLink && prop.url ? (\n <Link key={linkKey} href={prop.url}>\n {parsedValue}\n </Link>\n ) : (\n parsedValue\n );\n });\n }\n\n if (isObject(value)) {\n return shouldStrip ? removeUnwantedCharacters(value[subtype]) : value[subtype];\n }\n\n return shouldStrip ? removeUnwantedCharacters(value) : value;\n })\n .filter(Boolean);\n\nexport default getParsedPropValues;\n"],"file":"get-parsed-prop-values.js"}
1
+ {"version":3,"file":"get-parsed-prop-values.js","names":["React","Link","isObject","removeUnwantedCharacters","getParsedPropValues","propertiesToDisplay","props","enableLink","shouldStrip","map","property","filteredProperty","subtype","split","value","Array","isArray","prop","index","propValue","sanitizedValue","isLastValue","length","parsedValue","concat","linkKey","join","url","filter","Boolean"],"sources":["../../src/helpers/get-parsed-prop-values.js"],"sourcesContent":["import React from 'react';\nimport { Link } from '@blaze-cms/nextjs-components';\nimport isObject from './is-object';\nimport removeUnwantedCharacters from './remove-unwanted-characters';\n\nconst getParsedPropValues = ({ propertiesToDisplay, props, enableLink, shouldStrip }) =>\n propertiesToDisplay\n .map(property => {\n const [filteredProperty, subtype] = property.split('.');\n const value = props[filteredProperty];\n\n if (Array.isArray(value)) {\n return value.map((prop, index) => {\n const propValue = subtype ? prop[subtype] : prop;\n const sanitizedValue = shouldStrip ? removeUnwantedCharacters(propValue) : propValue;\n\n const isLastValue = index === value.length - 1;\n const parsedValue = isLastValue ? sanitizedValue : sanitizedValue.concat(', ');\n const linkKey = [filteredProperty, prop[subtype], index].join('-');\n\n return enableLink && prop.url ? (\n <Link key={linkKey} href={prop.url}>\n {parsedValue}\n </Link>\n ) : (\n parsedValue\n );\n });\n }\n\n if (isObject(value)) {\n return shouldStrip ? removeUnwantedCharacters(value[subtype]) : value[subtype];\n }\n\n return shouldStrip ? removeUnwantedCharacters(value) : value;\n })\n .filter(Boolean);\n\nexport default getParsedPropValues;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,8BAArB;AACA,OAAOC,QAAP,MAAqB,aAArB;AACA,OAAOC,wBAAP,MAAqC,8BAArC;;AAEA,MAAMC,mBAAmB,GAAG,CAAC;EAAEC,mBAAF;EAAuBC,KAAvB;EAA8BC,UAA9B;EAA0CC;AAA1C,CAAD,KAC1BH,mBAAmB,CAChBI,GADH,CACOC,QAAQ,IAAI;EACf,MAAM,CAACC,gBAAD,EAAmBC,OAAnB,IAA8BF,QAAQ,CAACG,KAAT,CAAe,GAAf,CAApC;EACA,MAAMC,KAAK,GAAGR,KAAK,CAACK,gBAAD,CAAnB;;EAEA,IAAII,KAAK,CAACC,OAAN,CAAcF,KAAd,CAAJ,EAA0B;IACxB,OAAOA,KAAK,CAACL,GAAN,CAAU,CAACQ,IAAD,EAAOC,KAAP,KAAiB;MAChC,MAAMC,SAAS,GAAGP,OAAO,GAAGK,IAAI,CAACL,OAAD,CAAP,GAAmBK,IAA5C;MACA,MAAMG,cAAc,GAAGZ,WAAW,GAAGL,wBAAwB,CAACgB,SAAD,CAA3B,GAAyCA,SAA3E;MAEA,MAAME,WAAW,GAAGH,KAAK,KAAKJ,KAAK,CAACQ,MAAN,GAAe,CAA7C;MACA,MAAMC,WAAW,GAAGF,WAAW,GAAGD,cAAH,GAAoBA,cAAc,CAACI,MAAf,CAAsB,IAAtB,CAAnD;MACA,MAAMC,OAAO,GAAG,CAACd,gBAAD,EAAmBM,IAAI,CAACL,OAAD,CAAvB,EAAkCM,KAAlC,EAAyCQ,IAAzC,CAA8C,GAA9C,CAAhB;MAEA,OAAOnB,UAAU,IAAIU,IAAI,CAACU,GAAnB,gBACL,oBAAC,IAAD;QAAM,GAAG,EAAEF,OAAX;QAAoB,IAAI,EAAER,IAAI,CAACU;MAA/B,GACGJ,WADH,CADK,GAKLA,WALF;IAOD,CAfM,CAAP;EAgBD;;EAED,IAAIrB,QAAQ,CAACY,KAAD,CAAZ,EAAqB;IACnB,OAAON,WAAW,GAAGL,wBAAwB,CAACW,KAAK,CAACF,OAAD,CAAN,CAA3B,GAA8CE,KAAK,CAACF,OAAD,CAArE;EACD;;EAED,OAAOJ,WAAW,GAAGL,wBAAwB,CAACW,KAAD,CAA3B,GAAqCA,KAAvD;AACD,CA7BH,EA8BGc,MA9BH,CA8BUC,OA9BV,CADF;;AAiCA,eAAezB,mBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-parsed-summary-value.js"],"names":["TRUE","FALSE","parsedSummaryValues","getParsedSummaryValue","value"],"mappings":"AAAA,MAAMA,IAAI,GAAG,MAAb;AACA,MAAMC,KAAK,GAAG,OAAd;AAEA,MAAMC,mBAAmB,GAAG;AAC1BF,EAAAA,IAAI,EAAE,KADoB;AAE1BC,EAAAA,KAAK,EAAE;AAFmB,CAA5B;;AAKA,SAASE,qBAAT,CAA+BC,KAA/B,EAAsC;AACpC,MAAIA,KAAK,KAAKJ,IAAd,EAAoB,OAAOE,mBAAmB,CAACF,IAA3B;AACpB,MAAII,KAAK,KAAKH,KAAd,EAAqB,OAAOC,mBAAmB,CAACD,KAA3B;AAErB,SAAOG,KAAP;AACD;;AAED,eAAeD,qBAAf","sourcesContent":["const TRUE = 'true';\nconst FALSE = 'false';\n\nconst parsedSummaryValues = {\n TRUE: 'Yes',\n FALSE: 'No'\n};\n\nfunction getParsedSummaryValue(value) {\n if (value === TRUE) return parsedSummaryValues.TRUE;\n if (value === FALSE) return parsedSummaryValues.FALSE;\n\n return value;\n}\n\nexport default getParsedSummaryValue;\n"],"file":"get-parsed-summary-value.js"}
1
+ {"version":3,"file":"get-parsed-summary-value.js","names":["TRUE","FALSE","parsedSummaryValues","getParsedSummaryValue","value"],"sources":["../../src/helpers/get-parsed-summary-value.js"],"sourcesContent":["const TRUE = 'true';\nconst FALSE = 'false';\n\nconst parsedSummaryValues = {\n TRUE: 'Yes',\n FALSE: 'No'\n};\n\nfunction getParsedSummaryValue(value) {\n if (value === TRUE) return parsedSummaryValues.TRUE;\n if (value === FALSE) return parsedSummaryValues.FALSE;\n\n return value;\n}\n\nexport default getParsedSummaryValue;\n"],"mappings":"AAAA,MAAMA,IAAI,GAAG,MAAb;AACA,MAAMC,KAAK,GAAG,OAAd;AAEA,MAAMC,mBAAmB,GAAG;EAC1BF,IAAI,EAAE,KADoB;EAE1BC,KAAK,EAAE;AAFmB,CAA5B;;AAKA,SAASE,qBAAT,CAA+BC,KAA/B,EAAsC;EACpC,IAAIA,KAAK,KAAKJ,IAAd,EAAoB,OAAOE,mBAAmB,CAACF,IAA3B;EACpB,IAAII,KAAK,KAAKH,KAAd,EAAqB,OAAOC,mBAAmB,CAACD,KAA3B;EAErB,OAAOG,KAAP;AACD;;AAED,eAAeD,qBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-prop-values.js"],"names":["isObject","getPropValues","propertiesToDisplay","props","map","property","filteredProperty","subtype","split","value","Array","isArray","prop","filter","Boolean"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,aAArB;;AAEA,MAAMC,aAAa,GAAG,CAACC,mBAAD,EAAsBC,KAAtB,KACpBD,mBAAmB,CAChBE,GADH,CACOC,QAAQ,IAAI;AACf,QAAM,CAACC,gBAAD,EAAmBC,OAAnB,IAA8BF,QAAQ,CAACG,KAAT,CAAe,GAAf,CAApC;AACA,QAAMC,KAAK,GAAGN,KAAK,CAACG,gBAAD,CAAnB;;AAEA,MAAII,KAAK,CAACC,OAAN,CAAcF,KAAd,CAAJ,EAA0B;AACxB,WAAOA,KAAK,CAACL,GAAN,CAAUQ,IAAI,IAAKL,OAAO,GAAGK,IAAI,CAACL,OAAD,CAAP,GAAmBK,IAA7C,CAAP;AACD;;AAED,MAAIZ,QAAQ,CAACS,KAAD,CAAZ,EAAqB;AACnB,WAAOA,KAAK,CAACF,OAAD,CAAZ;AACD;;AAED,SAAOE,KAAP;AACD,CAdH,EAeGI,MAfH,CAeUC,OAfV,CADF;;AAkBA,eAAeb,aAAf","sourcesContent":["import isObject from './is-object';\n\nconst getPropValues = (propertiesToDisplay, props) =>\n propertiesToDisplay\n .map(property => {\n const [filteredProperty, subtype] = property.split('.');\n const value = props[filteredProperty];\n\n if (Array.isArray(value)) {\n return value.map(prop => (subtype ? prop[subtype] : prop));\n }\n\n if (isObject(value)) {\n return value[subtype];\n }\n\n return value;\n })\n .filter(Boolean);\n\nexport default getPropValues;\n"],"file":"get-prop-values.js"}
1
+ {"version":3,"file":"get-prop-values.js","names":["isObject","getPropValues","propertiesToDisplay","props","map","property","filteredProperty","subtype","split","value","Array","isArray","prop","filter","Boolean"],"sources":["../../src/helpers/get-prop-values.js"],"sourcesContent":["import isObject from './is-object';\n\nconst getPropValues = (propertiesToDisplay, props) =>\n propertiesToDisplay\n .map(property => {\n const [filteredProperty, subtype] = property.split('.');\n const value = props[filteredProperty];\n\n if (Array.isArray(value)) {\n return value.map(prop => (subtype ? prop[subtype] : prop));\n }\n\n if (isObject(value)) {\n return value[subtype];\n }\n\n return value;\n })\n .filter(Boolean);\n\nexport default getPropValues;\n"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,aAArB;;AAEA,MAAMC,aAAa,GAAG,CAACC,mBAAD,EAAsBC,KAAtB,KACpBD,mBAAmB,CAChBE,GADH,CACOC,QAAQ,IAAI;EACf,MAAM,CAACC,gBAAD,EAAmBC,OAAnB,IAA8BF,QAAQ,CAACG,KAAT,CAAe,GAAf,CAApC;EACA,MAAMC,KAAK,GAAGN,KAAK,CAACG,gBAAD,CAAnB;;EAEA,IAAII,KAAK,CAACC,OAAN,CAAcF,KAAd,CAAJ,EAA0B;IACxB,OAAOA,KAAK,CAACL,GAAN,CAAUQ,IAAI,IAAKL,OAAO,GAAGK,IAAI,CAACL,OAAD,CAAP,GAAmBK,IAA7C,CAAP;EACD;;EAED,IAAIZ,QAAQ,CAACS,KAAD,CAAZ,EAAqB;IACnB,OAAOA,KAAK,CAACF,OAAD,CAAZ;EACD;;EAED,OAAOE,KAAP;AACD,CAdH,EAeGI,MAfH,CAeUC,OAfV,CADF;;AAkBA,eAAeb,aAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-query-filters.js"],"names":["getSearchFilterType","buildSearchValuesCheckboxSelect","RANGE","CHECKBOX","SELECT","getQueryFilters","searchFilter","query","settings","filters","valuesAnd","valuesOr","rangeFilters","checkboxFilters","selectFilters","values"],"mappings":"AAAA,OAAOA,mBAAP,MAAgC,0BAAhC;AACA,OAAOC,+BAAP,MAA4C,uCAA5C;AACA,SAASC,KAAT,EAAgBC,QAAhB,EAA0BC,MAA1B,QAAwC,cAAxC;;AAEA,MAAMC,eAAe,GAAG,CAACC,YAAD,EAAeC,KAAf,KAAyB;AAC/C,MAAI,CAACD,YAAY,CAACE,QAAd,IAA0B,CAACF,YAAY,CAACE,QAAb,CAAsBC,OAArD,EAA8D;AAC5D,WAAO;AAAEC,MAAAA,SAAS,EAAE,EAAb;AAAiBC,MAAAA,QAAQ,EAAE;AAA3B,KAAP;AACD;;AAED,QAAMC,YAAY,GAAGZ,mBAAmB,CAACM,YAAD,EAAeJ,KAAf,CAAxC;AACA,QAAMW,eAAe,GAAGb,mBAAmB,CAACM,YAAD,EAAeH,QAAf,CAA3C;AACA,QAAMW,aAAa,GAAGd,mBAAmB,CAACM,YAAD,EAAeF,MAAf,CAAzC;AAEA,QAAM;AAAEW,IAAAA,MAAM,EAAEL,SAAV;AAAqBC,IAAAA;AAArB,MAAkCV,+BAA+B,CACrEM,KADqE,EAErEK,YAFqE,EAGrEC,eAHqE,EAIrEC,aAJqE,CAAvE;AAMA,SAAO;AAAEJ,IAAAA,SAAF;AAAaC,IAAAA;AAAb,GAAP;AACD,CAhBD;;AAkBA,eAAeN,eAAf","sourcesContent":["import getSearchFilterType from './get-search-filter-type';\nimport buildSearchValuesCheckboxSelect from './build-search-values-checkbox-select';\nimport { RANGE, CHECKBOX, SELECT } from '../constants';\n\nconst getQueryFilters = (searchFilter, query) => {\n if (!searchFilter.settings || !searchFilter.settings.filters) {\n return { valuesAnd: [], valuesOr: [] };\n }\n\n const rangeFilters = getSearchFilterType(searchFilter, RANGE);\n const checkboxFilters = getSearchFilterType(searchFilter, CHECKBOX);\n const selectFilters = getSearchFilterType(searchFilter, SELECT);\n\n const { values: valuesAnd, valuesOr } = buildSearchValuesCheckboxSelect(\n query,\n rangeFilters,\n checkboxFilters,\n selectFilters\n );\n return { valuesAnd, valuesOr };\n};\n\nexport default getQueryFilters;\n"],"file":"get-query-filters.js"}
1
+ {"version":3,"file":"get-query-filters.js","names":["getSearchFilterType","buildSearchValuesCheckboxSelect","RANGE","CHECKBOX","SELECT","getQueryFilters","searchFilter","query","settings","filters","valuesAnd","valuesOr","rangeFilters","checkboxFilters","selectFilters","values"],"sources":["../../src/helpers/get-query-filters.js"],"sourcesContent":["import getSearchFilterType from './get-search-filter-type';\nimport buildSearchValuesCheckboxSelect from './build-search-values-checkbox-select';\nimport { RANGE, CHECKBOX, SELECT } from '../constants';\n\nconst getQueryFilters = (searchFilter, query) => {\n if (!searchFilter.settings || !searchFilter.settings.filters) {\n return { valuesAnd: [], valuesOr: [] };\n }\n\n const rangeFilters = getSearchFilterType(searchFilter, RANGE);\n const checkboxFilters = getSearchFilterType(searchFilter, CHECKBOX);\n const selectFilters = getSearchFilterType(searchFilter, SELECT);\n\n const { values: valuesAnd, valuesOr } = buildSearchValuesCheckboxSelect(\n query,\n rangeFilters,\n checkboxFilters,\n selectFilters\n );\n return { valuesAnd, valuesOr };\n};\n\nexport default getQueryFilters;\n"],"mappings":"AAAA,OAAOA,mBAAP,MAAgC,0BAAhC;AACA,OAAOC,+BAAP,MAA4C,uCAA5C;AACA,SAASC,KAAT,EAAgBC,QAAhB,EAA0BC,MAA1B,QAAwC,cAAxC;;AAEA,MAAMC,eAAe,GAAG,CAACC,YAAD,EAAeC,KAAf,KAAyB;EAC/C,IAAI,CAACD,YAAY,CAACE,QAAd,IAA0B,CAACF,YAAY,CAACE,QAAb,CAAsBC,OAArD,EAA8D;IAC5D,OAAO;MAAEC,SAAS,EAAE,EAAb;MAAiBC,QAAQ,EAAE;IAA3B,CAAP;EACD;;EAED,MAAMC,YAAY,GAAGZ,mBAAmB,CAACM,YAAD,EAAeJ,KAAf,CAAxC;EACA,MAAMW,eAAe,GAAGb,mBAAmB,CAACM,YAAD,EAAeH,QAAf,CAA3C;EACA,MAAMW,aAAa,GAAGd,mBAAmB,CAACM,YAAD,EAAeF,MAAf,CAAzC;EAEA,MAAM;IAAEW,MAAM,EAAEL,SAAV;IAAqBC;EAArB,IAAkCV,+BAA+B,CACrEM,KADqE,EAErEK,YAFqE,EAGrEC,eAHqE,EAIrEC,aAJqE,CAAvE;EAMA,OAAO;IAAEJ,SAAF;IAAaC;EAAb,CAAP;AACD,CAhBD;;AAkBA,eAAeN,eAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-query-props.js"],"names":["isFilterEntitysId","getFilterProps","ID","getQueryProps","inheritedFilters","currentSchema","filterEntitySchema","length","identifier","currentEntityId","reduce","acc","filter","filterName","relationName","relationProp","relationEntityName","isEntityItself","relationForeignKeys","shouldIgnoreFilter","join","queryProp","queryPropFinalValue"],"mappings":"AAAA,OAAOA,iBAAP,MAA8B,wBAA9B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,SAASC,EAAT,QAAmB,cAAnB;;AAEA,MAAMC,aAAa,GAAG,CAACC,gBAAD,EAAmBC,aAAnB,EAAkCC,kBAAlC,KAAyD;AAC7E,MAAI,CAACD,aAAD,IAAkB,CAACD,gBAAgB,CAACG,MAAxC,EAAgD,OAAOL,EAAP;AAEhD,QAAM;AAAEM,IAAAA,UAAU,EAAEC;AAAd,MAAkCJ,aAAxC;AAEA,SAAOD,gBAAgB,CAACM,MAAjB,CAAwB,CAACC,GAAD,EAAMC,MAAN,KAAiB;AAC9C,UAAM;AACJC,MAAAA,UADI;AAEJC,MAAAA,YAFI;AAGJC,MAAAA,YAHI;AAIJC,MAAAA,kBAJI;AAKJC,MAAAA,cALI;AAMJC,MAAAA,mBANI;AAOJC,MAAAA;AAPI,QAQFlB,cAAc,CAACW,MAAD,EAASP,aAAT,EAAwBC,kBAAxB,CARlB;AAUA,QAAIa,kBAAJ,EAAwB,OAAOR,GAAP;;AACxB,QAAIO,mBAAmB,IAAIA,mBAAmB,CAACX,MAA/C,EAAuD;AACrD,aAAQ,GAAEI,GAAI,IAAGO,mBAAmB,CAACE,IAApB,CAAyB,GAAzB,CAA8B,EAA/C;AACD;;AAED,UAAMC,SAAS,GAAGL,kBAAkB,GAAI,GAAEF,YAAa,MAAKC,YAAa,IAArC,GAA2CF,UAA/E;AACA,UAAMS,mBAAmB,GACvBL,cAAc,IAAIjB,iBAAiB,CAACa,UAAD,EAAaJ,eAAb,CAAnC,GAAmEP,EAAnE,GAAwEmB,SAD1E;AAGA,WAAQ,GAAEV,GAAI,IAAGW,mBAAoB,GAArC;AACD,GArBM,EAqBJpB,EArBI,CAAP;AAsBD,CA3BD;;AA6BA,eAAeC,aAAf","sourcesContent":["import isFilterEntitysId from './is-filter-entitys-id';\nimport getFilterProps from './get-filter-props';\nimport { ID } from '../constants';\n\nconst getQueryProps = (inheritedFilters, currentSchema, filterEntitySchema) => {\n if (!currentSchema || !inheritedFilters.length) return ID;\n\n const { identifier: currentEntityId } = currentSchema;\n\n return inheritedFilters.reduce((acc, filter) => {\n const {\n filterName,\n relationName,\n relationProp,\n relationEntityName,\n isEntityItself,\n relationForeignKeys,\n shouldIgnoreFilter\n } = getFilterProps(filter, currentSchema, filterEntitySchema);\n\n if (shouldIgnoreFilter) return acc;\n if (relationForeignKeys && relationForeignKeys.length) {\n return `${acc} ${relationForeignKeys.join(' ')}`;\n }\n\n const queryProp = relationEntityName ? `${relationName} { ${relationProp} }` : filterName;\n const queryPropFinalValue =\n isEntityItself && isFilterEntitysId(filterName, currentEntityId) ? ID : queryProp;\n\n return `${acc} ${queryPropFinalValue} `;\n }, ID);\n};\n\nexport default getQueryProps;\n"],"file":"get-query-props.js"}
1
+ {"version":3,"file":"get-query-props.js","names":["isFilterEntitysId","getFilterProps","ID","getQueryProps","inheritedFilters","currentSchema","filterEntitySchema","length","identifier","currentEntityId","reduce","acc","filter","filterName","relationName","relationProp","relationEntityName","isEntityItself","relationForeignKeys","shouldIgnoreFilter","join","queryProp","queryPropFinalValue"],"sources":["../../src/helpers/get-query-props.js"],"sourcesContent":["import isFilterEntitysId from './is-filter-entitys-id';\nimport getFilterProps from './get-filter-props';\nimport { ID } from '../constants';\n\nconst getQueryProps = (inheritedFilters, currentSchema, filterEntitySchema) => {\n if (!currentSchema || !inheritedFilters.length) return ID;\n\n const { identifier: currentEntityId } = currentSchema;\n\n return inheritedFilters.reduce((acc, filter) => {\n const {\n filterName,\n relationName,\n relationProp,\n relationEntityName,\n isEntityItself,\n relationForeignKeys,\n shouldIgnoreFilter\n } = getFilterProps(filter, currentSchema, filterEntitySchema);\n\n if (shouldIgnoreFilter) return acc;\n if (relationForeignKeys && relationForeignKeys.length) {\n return `${acc} ${relationForeignKeys.join(' ')}`;\n }\n\n const queryProp = relationEntityName ? `${relationName} { ${relationProp} }` : filterName;\n const queryPropFinalValue =\n isEntityItself && isFilterEntitysId(filterName, currentEntityId) ? ID : queryProp;\n\n return `${acc} ${queryPropFinalValue} `;\n }, ID);\n};\n\nexport default getQueryProps;\n"],"mappings":"AAAA,OAAOA,iBAAP,MAA8B,wBAA9B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,SAASC,EAAT,QAAmB,cAAnB;;AAEA,MAAMC,aAAa,GAAG,CAACC,gBAAD,EAAmBC,aAAnB,EAAkCC,kBAAlC,KAAyD;EAC7E,IAAI,CAACD,aAAD,IAAkB,CAACD,gBAAgB,CAACG,MAAxC,EAAgD,OAAOL,EAAP;EAEhD,MAAM;IAAEM,UAAU,EAAEC;EAAd,IAAkCJ,aAAxC;EAEA,OAAOD,gBAAgB,CAACM,MAAjB,CAAwB,CAACC,GAAD,EAAMC,MAAN,KAAiB;IAC9C,MAAM;MACJC,UADI;MAEJC,YAFI;MAGJC,YAHI;MAIJC,kBAJI;MAKJC,cALI;MAMJC,mBANI;MAOJC;IAPI,IAQFlB,cAAc,CAACW,MAAD,EAASP,aAAT,EAAwBC,kBAAxB,CARlB;IAUA,IAAIa,kBAAJ,EAAwB,OAAOR,GAAP;;IACxB,IAAIO,mBAAmB,IAAIA,mBAAmB,CAACX,MAA/C,EAAuD;MACrD,OAAQ,GAAEI,GAAI,IAAGO,mBAAmB,CAACE,IAApB,CAAyB,GAAzB,CAA8B,EAA/C;IACD;;IAED,MAAMC,SAAS,GAAGL,kBAAkB,GAAI,GAAEF,YAAa,MAAKC,YAAa,IAArC,GAA2CF,UAA/E;IACA,MAAMS,mBAAmB,GACvBL,cAAc,IAAIjB,iBAAiB,CAACa,UAAD,EAAaJ,eAAb,CAAnC,GAAmEP,EAAnE,GAAwEmB,SAD1E;IAGA,OAAQ,GAAEV,GAAI,IAAGW,mBAAoB,GAArC;EACD,CArBM,EAqBJpB,EArBI,CAAP;AAsBD,CA3BD;;AA6BA,eAAeC,aAAf"}