@blaze-cms/react-page-builder 0.128.0-admin-updates.0 → 0.128.0-admin-updates.3

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 (670) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/lib/BannerContext/helpers/index.js.map +1 -1
  3. package/lib/BannerContext/helpers/set-initial-banner-counters.js.map +1 -1
  4. package/lib/BannerContext/index.js.map +1 -1
  5. package/lib/HOC/index.js.map +1 -1
  6. package/lib/HOC/withInfiniteScroll.js.map +1 -1
  7. package/lib/HOC/withTitle.js.map +1 -1
  8. package/lib/PBContext/index.js.map +1 -1
  9. package/lib/application/query/index.js +1 -5
  10. package/lib/application/query/index.js.map +1 -1
  11. package/lib/components/BackToTop/BackToTop.js.map +1 -1
  12. package/lib/components/BackToTop/index.js.map +1 -1
  13. package/lib/components/Banner/AdSlotRender.js.map +1 -1
  14. package/lib/components/Banner/Banner.js.map +1 -1
  15. package/lib/components/Banner/BannerRender.js.map +1 -1
  16. package/lib/components/Banner/helpers.js.map +1 -1
  17. package/lib/components/Banner/index.js.map +1 -1
  18. package/lib/components/BlazeLink.js.map +1 -1
  19. package/lib/components/Breadcrumb/Breadcrumb.js.map +1 -1
  20. package/lib/components/Breadcrumb/index.js.map +1 -1
  21. package/lib/components/Button.js.map +1 -1
  22. package/lib/components/Card/Card.js +6 -3
  23. package/lib/components/Card/Card.js.map +1 -1
  24. package/lib/components/Card/{CardContainer.js → CardsContainer.js} +13 -11
  25. package/lib/components/Card/CardsContainer.js.map +1 -0
  26. package/lib/components/Card/{CardFactory.js → CardsFactory.js} +21 -14
  27. package/lib/components/Card/CardsFactory.js.map +1 -0
  28. package/lib/components/Card/{CardRender.js → CardsRender.js} +75 -70
  29. package/lib/components/Card/CardsRender.js.map +1 -0
  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 +6 -4
  33. package/lib/components/Card/helpers/filters-setup.js.map +1 -1
  34. package/lib/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -1
  35. package/lib/components/Card/helpers/get-published-listing-url.js.map +1 -1
  36. package/lib/components/Card/helpers/get-updated-sort-properties.js +32 -0
  37. package/lib/components/Card/helpers/get-updated-sort-properties.js.map +1 -0
  38. package/lib/components/Card/helpers/index.js +7 -0
  39. package/lib/components/Card/helpers/index.js.map +1 -1
  40. package/lib/components/Card/helpers/should-return.js.map +1 -1
  41. package/lib/components/Card/helpers/should-skip-single-query.js.map +1 -1
  42. package/lib/components/Card/helpers/use-dynamic-size-key.js.map +1 -1
  43. package/lib/components/Card/index.js +2 -2
  44. package/lib/components/Card/index.js.map +1 -1
  45. package/lib/components/Carousel/Carousel.js.map +1 -1
  46. package/lib/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
  47. package/lib/components/Carousel/CarouselImage/index.js.map +1 -1
  48. package/lib/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
  49. package/lib/components/Carousel/CarouselRender/index.js.map +1 -1
  50. package/lib/components/Carousel/index.js.map +1 -1
  51. package/lib/components/CarouselWrapper.js.map +1 -1
  52. package/lib/components/ClickWrapper.js.map +1 -1
  53. package/lib/components/Code/Code.js.map +1 -1
  54. package/lib/components/Code/ScriptTag.js.map +1 -1
  55. package/lib/components/Code/helpers/index.js.map +1 -1
  56. package/lib/components/Code/helpers/wrap-script-tags.js.map +1 -1
  57. package/lib/components/Code/index.js.map +1 -1
  58. package/lib/components/ContentGroup/ContentGroup.js.map +1 -1
  59. package/lib/components/ContentGroup/ContentGroupTabs.js.map +1 -1
  60. package/lib/components/ContentGroup/constants.js.map +1 -1
  61. package/lib/components/ContentGroup/helpers/get-active-tab.js +1 -2
  62. package/lib/components/ContentGroup/helpers/get-active-tab.js.map +1 -1
  63. package/lib/components/ContentGroup/helpers/get-sections-data.js +1 -1
  64. package/lib/components/ContentGroup/helpers/get-sections-data.js.map +1 -1
  65. package/lib/components/ContentGroup/helpers/index.js.map +1 -1
  66. package/lib/components/ContentGroup/index.js.map +1 -1
  67. package/lib/components/ContentGroupSection/ContentGroupSection.js.map +1 -1
  68. package/lib/components/ContentGroupSection/index.js.map +1 -1
  69. package/lib/components/DataSummary/DataSummaryFactory.js.map +1 -1
  70. package/lib/components/DataSummary/DataSummaryRender.js.map +1 -1
  71. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -1
  72. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
  73. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js.map +1 -1
  74. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map +1 -1
  75. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
  76. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js.map +1 -1
  77. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.map +1 -1
  78. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
  79. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/index.js.map +1 -1
  80. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.map +1 -1
  81. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
  82. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/index.js.map +1 -1
  83. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.map +1 -1
  84. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
  85. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/index.js.map +1 -1
  86. package/lib/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
  87. package/lib/components/DataSummary/helpers/build-loop-props-content.js.map +1 -1
  88. package/lib/components/DataSummary/helpers/build-props-to-display-with-content.js.map +1 -1
  89. package/lib/components/DataSummary/helpers/get-data-summary-query.js.map +1 -1
  90. package/lib/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -1
  91. package/lib/components/DataSummary/helpers/get-link-to-published-content.js.map +1 -1
  92. package/lib/components/DataSummary/helpers/get-loop-props-limit.js.map +1 -1
  93. package/lib/components/DataSummary/helpers/get-prop-value.js.map +1 -1
  94. package/lib/components/DataSummary/helpers/get-value-from-array.js.map +1 -1
  95. package/lib/components/DataSummary/helpers/index.js.map +1 -1
  96. package/lib/components/DataSummary/helpers/parse-boolean-values.js.map +1 -1
  97. package/lib/components/DataSummary/helpers/strip-summary-props-content.js.map +1 -1
  98. package/lib/components/DataSummary/index.js.map +1 -1
  99. package/lib/components/EmailConfirm/EmailConfirm.js.map +1 -1
  100. package/lib/components/EmailConfirm/index.js.map +1 -1
  101. package/lib/components/EmailConfirm/mutation.js.map +1 -1
  102. package/lib/components/Iframe/Iframe.js.map +1 -1
  103. package/lib/components/Iframe/constants.js.map +1 -1
  104. package/lib/components/Iframe/index.js.map +1 -1
  105. package/lib/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
  106. package/lib/components/Image/GlobalLightbox/NavButton.js.map +1 -1
  107. package/lib/components/Image/GlobalLightbox/index.js.map +1 -1
  108. package/lib/components/Image/Image.js.map +1 -1
  109. package/lib/components/Image/ImageDetails.js.map +1 -1
  110. package/lib/components/Image/ImageFactory.js.map +1 -1
  111. package/lib/components/Image/ImageRender.js.map +1 -1
  112. package/lib/components/Image/Lightbox/Lightbox.js.map +1 -1
  113. package/lib/components/Image/Lightbox/index.js.map +1 -1
  114. package/lib/components/Image/index.js.map +1 -1
  115. package/lib/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
  116. package/lib/components/ItemList/ItemListButton/index.js.map +1 -1
  117. package/lib/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
  118. package/lib/components/ItemList/ItemListCounter/index.js.map +1 -1
  119. package/lib/components/ItemList/ItemListNew/ItemListNew.js.map +1 -1
  120. package/lib/components/ItemList/ItemListNew/index.js.map +1 -1
  121. package/lib/components/ItemList/constants.js.map +1 -1
  122. package/lib/components/ItemList/helpers/get-item-list-data.js.map +1 -1
  123. package/lib/components/ItemList/helpers/get-item-list-id.js.map +1 -1
  124. package/lib/components/ItemList/helpers/get-item-list-ids.js.map +1 -1
  125. package/lib/components/ItemList/helpers/index.js.map +1 -1
  126. package/lib/components/ItemList/helpers/set-item-list-id.js.map +1 -1
  127. package/lib/components/ItemList/helpers/set-param-and-redirect.js.map +1 -1
  128. package/lib/components/ItemList/hooks/index.js.map +1 -1
  129. package/lib/components/ItemList/hooks/use-item-list-id.js.map +1 -1
  130. package/lib/components/Layout/Layout.js.map +1 -1
  131. package/lib/components/Layout/constants.js.map +1 -1
  132. package/lib/components/Layout/helpers/check-if-row-has-columns.js.map +1 -1
  133. package/lib/components/Layout/helpers/get-styles-to-update.js.map +1 -1
  134. package/lib/components/Layout/helpers/index.js.map +1 -1
  135. package/lib/components/Layout/index.js.map +1 -1
  136. package/lib/components/LazyImage/LazyImage.js.map +1 -1
  137. package/lib/components/LazyImage/index.js.map +1 -1
  138. package/lib/components/List/ListBuilder.js +34 -15
  139. package/lib/components/List/ListBuilder.js.map +1 -1
  140. package/lib/components/List/ListFactory.js +36 -37
  141. package/lib/components/List/ListFactory.js.map +1 -1
  142. package/lib/components/List/ListRender.js.map +1 -1
  143. package/lib/components/List/components/Cards/CardRenderWithInfiniteScroll.js.map +1 -1
  144. package/lib/components/List/components/Cards/CardsRender.js.map +1 -1
  145. package/lib/components/List/components/Cards/CardsRenderItem.js +4 -4
  146. package/lib/components/List/components/Cards/CardsRenderItem.js.map +1 -1
  147. package/lib/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
  148. package/lib/components/List/components/Cards/index.js.map +1 -1
  149. package/lib/components/List/components/Full/FullRender.js.map +1 -1
  150. package/lib/components/List/components/Full/FullRenderItem.js.map +1 -1
  151. package/lib/components/List/components/Full/FullRenderWithInfiniteScroll.js.map +1 -1
  152. package/lib/components/List/components/Full/index.js.map +1 -1
  153. package/lib/components/List/components/Header/ListHeader.js.map +1 -1
  154. package/lib/components/List/components/Header/index.js.map +1 -1
  155. package/lib/components/List/components/Pagination/Classic.js.map +1 -1
  156. package/lib/components/List/components/Pagination/ListPagination.js.map +1 -1
  157. package/lib/components/List/components/Pagination/LoadMore.js.map +1 -1
  158. package/lib/components/List/components/Pagination/index.js.map +1 -1
  159. package/lib/components/List/components/helpers/check-if-should-render-banner.js.map +1 -1
  160. package/lib/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -1
  161. package/lib/components/List/components/helpers/index.js.map +1 -1
  162. package/lib/components/List/components/index.js.map +1 -1
  163. package/lib/components/List/constants.js.map +1 -1
  164. package/lib/components/List/helpers/build-az-aggregations.js.map +1 -1
  165. package/lib/components/List/helpers/build-az-url.js.map +1 -1
  166. package/lib/components/List/helpers/build-pagination-items.js.map +1 -1
  167. package/lib/components/List/helpers/build-pagination-url.js.map +1 -1
  168. package/lib/components/List/helpers/get-az-query-filter.js.map +1 -1
  169. package/lib/components/List/helpers/get-items-per-page-to-use.js.map +1 -1
  170. package/lib/components/List/helpers/get-sort-props.js.map +1 -1
  171. package/lib/components/List/helpers/has-required-item-list-details.js.map +1 -1
  172. package/lib/components/List/helpers/index.js.map +1 -1
  173. package/lib/components/List/helpers/sort-aggs.js.map +1 -1
  174. package/lib/components/List/index.js.map +1 -1
  175. package/lib/components/Menu/Menu.js.map +1 -1
  176. package/lib/components/Menu/MenuContext.js.map +1 -1
  177. package/lib/components/Menu/index.js.map +1 -1
  178. package/lib/components/MenuItem/MenuItem.js.map +1 -1
  179. package/lib/components/MenuItem/index.js.map +1 -1
  180. package/lib/components/Modal/Modal.js.map +1 -1
  181. package/lib/components/Modal/index.js.map +1 -1
  182. package/lib/components/SearchContent/SearchContent.js.map +1 -1
  183. package/lib/components/SearchContent/SearchContentItems.js.map +1 -1
  184. package/lib/components/SearchContent/SearchContentResults.js.map +1 -1
  185. package/lib/components/SearchContent/SearchContentToggleIcon.js.map +1 -1
  186. package/lib/components/SearchContent/index.js.map +1 -1
  187. package/lib/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
  188. package/lib/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
  189. package/lib/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -1
  190. package/lib/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
  191. package/lib/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
  192. package/lib/components/SearchFilter/SearchFilter/index.js.map +1 -1
  193. package/lib/components/SearchFilter/SearchFilterContainer.js.map +1 -1
  194. package/lib/components/SearchFilter/components/Checkbox.js.map +1 -1
  195. package/lib/components/SearchFilter/components/Range.js.map +1 -1
  196. package/lib/components/SearchFilter/components/Select.js.map +1 -1
  197. package/lib/components/SearchFilter/components/TextSearch.js.map +1 -1
  198. package/lib/components/SearchFilter/components/index.js.map +1 -1
  199. package/lib/components/SearchFilter/constants.js.map +1 -1
  200. package/lib/components/SearchFilter/helpers/build-filters-query.js.map +1 -1
  201. package/lib/components/SearchFilter/helpers/build-new-query.js.map +1 -1
  202. package/lib/components/SearchFilter/helpers/build-query.js.map +1 -1
  203. package/lib/components/SearchFilter/helpers/build-raw-query-stringified.js.map +1 -1
  204. package/lib/components/SearchFilter/helpers/calculate-min-max.js.map +1 -1
  205. package/lib/components/SearchFilter/helpers/calculate-step.js.map +1 -1
  206. package/lib/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -1
  207. package/lib/components/SearchFilter/helpers/decode-encode.js.map +1 -1
  208. package/lib/components/SearchFilter/helpers/get-display-value.js.map +1 -1
  209. package/lib/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
  210. package/lib/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -1
  211. package/lib/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -1
  212. package/lib/components/SearchFilter/helpers/get-range-value.js.map +1 -1
  213. package/lib/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
  214. package/lib/components/SearchFilter/helpers/get-select-options.js.map +1 -1
  215. package/lib/components/SearchFilter/helpers/index.js.map +1 -1
  216. package/lib/components/SearchFilter/helpers/is-device-desktop.js.map +1 -1
  217. package/lib/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
  218. package/lib/components/SearchFilter/index.js.map +1 -1
  219. package/lib/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
  220. package/lib/components/SearchFilterSort/constants.js.map +1 -1
  221. package/lib/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
  222. package/lib/components/SearchFilterSort/helpers/index.js.map +1 -1
  223. package/lib/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
  224. package/lib/components/SearchFilterSort/index.js.map +1 -1
  225. package/lib/components/SocialFollow/SFItem.js.map +1 -1
  226. package/lib/components/SocialFollow/SocialFollow.js.map +1 -1
  227. package/lib/components/SocialFollow/SocialFollowRender.js.map +1 -1
  228. package/lib/components/SocialFollow/index.js.map +1 -1
  229. package/lib/components/SocialFollow/sf.config.js.map +1 -1
  230. package/lib/components/SubMenu/SubMenu.js.map +1 -1
  231. package/lib/components/SubMenu/index.js.map +1 -1
  232. package/lib/components/TextBlock/TextBlockRender.js.map +1 -1
  233. package/lib/components/TextBlock/index.js.map +1 -1
  234. package/lib/components/Video/Video.js.map +1 -1
  235. package/lib/components/Video/VideoModal.js.map +1 -1
  236. package/lib/components/Video/VideoRender.js.map +1 -1
  237. package/lib/components/Video/index.js.map +1 -1
  238. package/lib/components/Video/providers/Default.js.map +1 -1
  239. package/lib/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
  240. package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
  241. package/lib/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
  242. package/lib/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js.map +1 -1
  243. package/lib/components/Video/providers/Vimeo/helpers/index.js.map +1 -1
  244. package/lib/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
  245. package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
  246. package/lib/components/Video/providers/YouTube/helpers/index.js.map +1 -1
  247. package/lib/components/Video/providers/get-provider.js.map +1 -1
  248. package/lib/components/Video/providers/index.js.map +1 -1
  249. package/lib/components/Wrapper.js.map +1 -1
  250. package/lib/components/index.js.map +1 -1
  251. package/lib/constants/componentsDefaultValues.js.map +1 -1
  252. package/lib/constants/index.js.map +1 -1
  253. package/lib/helpers/append-images.js.map +1 -1
  254. package/lib/helpers/build-az-filter.js.map +1 -1
  255. package/lib/helpers/build-image-properties.js.map +1 -1
  256. package/lib/helpers/build-inherited-filters.js.map +1 -1
  257. package/lib/helpers/build-link-extra-props.js.map +1 -1
  258. package/lib/helpers/build-props-query.js +10 -10
  259. package/lib/helpers/build-props-query.js.map +1 -1
  260. package/lib/helpers/build-query-fields.js +5 -2
  261. package/lib/helpers/build-query-fields.js.map +1 -1
  262. package/lib/helpers/build-raw-query-base.js +20 -5
  263. package/lib/helpers/build-raw-query-base.js.map +1 -1
  264. package/lib/helpers/build-raw-query.js.map +1 -1
  265. package/lib/helpers/build-search-values-checkbox-select.js.map +1 -1
  266. package/lib/helpers/build-search-values-text.js.map +1 -1
  267. package/lib/helpers/build-set-filters.js.map +1 -1
  268. package/lib/helpers/check-for-error.js.map +1 -1
  269. package/lib/helpers/check-props-to-use.js.map +1 -1
  270. package/lib/helpers/entities/constants.js.map +1 -1
  271. package/lib/helpers/get-banner-data.js.map +1 -1
  272. package/lib/helpers/get-click-wrapper-options.js.map +1 -1
  273. package/lib/helpers/get-current-offset.js.map +1 -1
  274. package/lib/helpers/get-dictionary-match.js.map +1 -1
  275. package/lib/helpers/get-display-count-data.js.map +1 -1
  276. package/lib/helpers/get-elasticsearch-operator.js.map +1 -1
  277. package/lib/helpers/get-entities-with-banner.js.map +1 -1
  278. package/lib/helpers/get-entity-data.js +2 -0
  279. package/lib/helpers/get-entity-data.js.map +1 -1
  280. package/lib/helpers/get-entity-render-props.js.map +1 -1
  281. package/lib/helpers/get-extra-az-bits.js.map +1 -1
  282. package/lib/helpers/get-filter-props.js.map +1 -1
  283. package/lib/helpers/get-filter-relation-keys.js.map +1 -1
  284. package/lib/helpers/get-generic-props.js.map +1 -1
  285. package/lib/helpers/get-generic-render-variables.js.map +1 -1
  286. package/lib/helpers/get-image-ids.js.map +1 -1
  287. package/lib/helpers/get-inherited-filters.js.map +1 -1
  288. package/lib/helpers/get-items-to-display-ids.js.map +1 -1
  289. package/lib/helpers/get-modifiers.js.map +1 -1
  290. package/lib/helpers/get-not-equal-query.js.map +1 -1
  291. package/lib/helpers/get-pagination-index.js.map +1 -1
  292. package/lib/helpers/get-parsed-prop-values.js.map +1 -1
  293. package/lib/helpers/get-parsed-summary-value.js.map +1 -1
  294. package/lib/helpers/get-prop-values.js.map +1 -1
  295. package/lib/helpers/get-query-filters.js.map +1 -1
  296. package/lib/helpers/get-query-props.js.map +1 -1
  297. package/lib/helpers/get-required-schemas.js.map +1 -1
  298. package/lib/helpers/get-sanitized-prop-values.js.map +1 -1
  299. package/lib/helpers/get-search-filter-type.js.map +1 -1
  300. package/lib/helpers/get-sort-by-field-name.js.map +1 -1
  301. package/lib/helpers/get-unpublished-entity-name.js.map +1 -1
  302. package/lib/helpers/get-updated-filter-by.js.map +1 -1
  303. package/lib/helpers/get-wrapped-value-with-link.js.map +1 -1
  304. package/lib/helpers/group-entities.js.map +1 -1
  305. package/lib/helpers/has-children.js.map +1 -1
  306. package/lib/helpers/index.js.map +1 -1
  307. package/lib/helpers/inject-banner.js.map +1 -1
  308. package/lib/helpers/inject-banners-to-entities.js.map +1 -1
  309. package/lib/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.map +1 -1
  310. package/lib/helpers/inject-multiple-banners/get-banners-for-entities/index.js.map +1 -1
  311. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.map +1 -1
  312. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js.map +1 -1
  313. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js.map +1 -1
  314. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/index.js.map +1 -1
  315. package/lib/helpers/inject-multiple-banners/index.js.map +1 -1
  316. package/lib/helpers/inject-multiple-banners/inject-multiple-banners.js.map +1 -1
  317. package/lib/helpers/is-browser.js.map +1 -1
  318. package/lib/helpers/is-filter-entitys-id.js.map +1 -1
  319. package/lib/helpers/is-object.js.map +1 -1
  320. package/lib/helpers/is-using-relation-image.js.map +1 -1
  321. package/lib/helpers/parse-TextBlock.js.map +1 -1
  322. package/lib/helpers/parse-interval.js.map +1 -1
  323. package/lib/helpers/parse-props-to-display.js.map +1 -1
  324. package/lib/helpers/remove-extra-items.js.map +1 -1
  325. package/lib/helpers/remove-unwanted-characters.js.map +1 -1
  326. package/lib/helpers/render-children.js.map +1 -1
  327. package/lib/helpers/should-render-waypoint.js.map +1 -1
  328. package/lib/helpers/should-show-property.js.map +1 -1
  329. package/lib/helpers/sort-response-data.js.map +1 -1
  330. package/lib/helpers/split-children.js +2 -2
  331. package/lib/helpers/split-children.js.map +1 -1
  332. package/lib/helpers/update-childrens-parent.js.map +1 -1
  333. package/lib/hooks/helpers/RenderComponent.js.map +1 -1
  334. package/lib/hooks/helpers/StoreImages.js.map +1 -1
  335. package/lib/hooks/helpers/append-gtm-classname.js.map +1 -1
  336. package/lib/hooks/helpers/buildPBComponents.js.map +1 -1
  337. package/lib/hooks/helpers/check-banner-insertion-set.js.map +1 -1
  338. package/lib/hooks/helpers/check-collisions.js.map +1 -1
  339. package/lib/hooks/helpers/constants.js.map +1 -1
  340. package/lib/hooks/helpers/get-banner-index.js.map +1 -1
  341. package/lib/hooks/helpers/get-banners-by-type.js.map +1 -1
  342. package/lib/hooks/helpers/get-lightbox-images.js.map +1 -1
  343. package/lib/hooks/helpers/getComponent.js.map +1 -1
  344. package/lib/hooks/helpers/index.js.map +1 -1
  345. package/lib/hooks/helpers/inject-element-banners.js.map +1 -1
  346. package/lib/hooks/helpers/inject-textblock-banners.js.map +1 -1
  347. package/lib/hooks/helpers/insert-banners.js.map +1 -1
  348. package/lib/hooks/helpers/update-targetings.js.map +1 -1
  349. package/lib/hooks/index.js.map +1 -1
  350. package/lib/hooks/use-banner-insertion.js.map +1 -1
  351. package/lib/hooks/use-check-mobile-screen.js.map +1 -1
  352. package/lib/hooks/use-get-entity-schema.js.map +1 -1
  353. package/lib/hooks/use-get-entity-schemas-as-obj.js.map +1 -1
  354. package/lib/hooks/use-get-image-id-from-relation.js.map +1 -1
  355. package/lib/hooks/use-get-images.js.map +1 -1
  356. package/lib/hooks/use-get-single-entity-schema.js.map +1 -1
  357. package/lib/hooks/use-page-builder.js.map +1 -1
  358. package/lib/index.js.map +1 -1
  359. package/lib/utils/component-map.js.map +1 -1
  360. package/lib/utils/get-class-modifiers.js.map +1 -1
  361. package/lib/utils/get-image-data.js.map +1 -1
  362. package/lib/utils/get-props-to-display-modifiers.js.map +1 -1
  363. package/lib/utils/index.js.map +1 -1
  364. package/lib/utils/is-object-empty.js.map +1 -1
  365. package/lib-es/BannerContext/index.js.map +1 -1
  366. package/lib-es/HOC/withInfiniteScroll.js.map +1 -1
  367. package/lib-es/HOC/withTitle.js.map +1 -1
  368. package/lib-es/application/query/index.js +1 -32
  369. package/lib-es/application/query/index.js.map +1 -1
  370. package/lib-es/components/BackToTop/BackToTop.js.map +1 -1
  371. package/lib-es/components/Banner/AdSlotRender.js.map +1 -1
  372. package/lib-es/components/Banner/Banner.js.map +1 -1
  373. package/lib-es/components/Banner/BannerRender.js.map +1 -1
  374. package/lib-es/components/Banner/helpers.js.map +1 -1
  375. package/lib-es/components/BlazeLink.js.map +1 -1
  376. package/lib-es/components/Breadcrumb/Breadcrumb.js.map +1 -1
  377. package/lib-es/components/Button.js.map +1 -1
  378. package/lib-es/components/Card/Card.js +7 -4
  379. package/lib-es/components/Card/Card.js.map +1 -1
  380. package/lib-es/components/Card/{CardContainer.js → CardsContainer.js} +13 -11
  381. package/lib-es/components/Card/CardsContainer.js.map +1 -0
  382. package/lib-es/components/Card/{CardFactory.js → CardsFactory.js} +21 -14
  383. package/lib-es/components/Card/CardsFactory.js.map +1 -0
  384. package/lib-es/components/Card/{CardRender.js → CardsRender.js} +57 -57
  385. package/lib-es/components/Card/CardsRender.js.map +1 -0
  386. package/lib-es/components/Card/helpers/filter-query-setup.js.map +1 -1
  387. package/lib-es/components/Card/helpers/filters-setup.js +4 -4
  388. package/lib-es/components/Card/helpers/filters-setup.js.map +1 -1
  389. package/lib-es/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -1
  390. package/lib-es/components/Card/helpers/get-updated-sort-properties.js +15 -0
  391. package/lib-es/components/Card/helpers/get-updated-sort-properties.js.map +1 -0
  392. package/lib-es/components/Card/helpers/index.js +1 -0
  393. package/lib-es/components/Card/helpers/index.js.map +1 -1
  394. package/lib-es/components/Card/helpers/should-return.js.map +1 -1
  395. package/lib-es/components/Card/helpers/should-skip-single-query.js.map +1 -1
  396. package/lib-es/components/Card/helpers/use-dynamic-size-key.js.map +1 -1
  397. package/lib-es/components/Card/index.js +2 -2
  398. package/lib-es/components/Card/index.js.map +1 -1
  399. package/lib-es/components/Carousel/Carousel.js.map +1 -1
  400. package/lib-es/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
  401. package/lib-es/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
  402. package/lib-es/components/CarouselWrapper.js.map +1 -1
  403. package/lib-es/components/ClickWrapper.js.map +1 -1
  404. package/lib-es/components/Code/Code.js.map +1 -1
  405. package/lib-es/components/Code/ScriptTag.js.map +1 -1
  406. package/lib-es/components/Code/helpers/wrap-script-tags.js.map +1 -1
  407. package/lib-es/components/ContentGroup/ContentGroup.js.map +1 -1
  408. package/lib-es/components/ContentGroup/ContentGroupTabs.js.map +1 -1
  409. package/lib-es/components/ContentGroup/helpers/get-active-tab.js +1 -2
  410. package/lib-es/components/ContentGroup/helpers/get-active-tab.js.map +1 -1
  411. package/lib-es/components/ContentGroup/helpers/get-sections-data.js +1 -1
  412. package/lib-es/components/ContentGroup/helpers/get-sections-data.js.map +1 -1
  413. package/lib-es/components/ContentGroupSection/ContentGroupSection.js.map +1 -1
  414. package/lib-es/components/DataSummary/DataSummaryFactory.js.map +1 -1
  415. package/lib-es/components/DataSummary/DataSummaryRender.js.map +1 -1
  416. package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -1
  417. package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
  418. package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map +1 -1
  419. package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
  420. package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.map +1 -1
  421. package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
  422. package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.map +1 -1
  423. package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
  424. package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.map +1 -1
  425. package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.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/parse-boolean-values.js.map +1 -1
  435. package/lib-es/components/DataSummary/helpers/strip-summary-props-content.js.map +1 -1
  436. package/lib-es/components/EmailConfirm/EmailConfirm.js.map +1 -1
  437. package/lib-es/components/Iframe/Iframe.js.map +1 -1
  438. package/lib-es/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
  439. package/lib-es/components/Image/GlobalLightbox/NavButton.js.map +1 -1
  440. package/lib-es/components/Image/Image.js.map +1 -1
  441. package/lib-es/components/Image/ImageDetails.js.map +1 -1
  442. package/lib-es/components/Image/ImageFactory.js.map +1 -1
  443. package/lib-es/components/Image/ImageRender.js.map +1 -1
  444. package/lib-es/components/Image/Lightbox/Lightbox.js.map +1 -1
  445. package/lib-es/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
  446. package/lib-es/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
  447. package/lib-es/components/ItemList/ItemListNew/ItemListNew.js.map +1 -1
  448. package/lib-es/components/ItemList/helpers/get-item-list-id.js.map +1 -1
  449. package/lib-es/components/ItemList/helpers/set-item-list-id.js.map +1 -1
  450. package/lib-es/components/ItemList/helpers/set-param-and-redirect.js.map +1 -1
  451. package/lib-es/components/ItemList/hooks/use-item-list-id.js.map +1 -1
  452. package/lib-es/components/Layout/Layout.js.map +1 -1
  453. package/lib-es/components/Layout/helpers/check-if-row-has-columns.js.map +1 -1
  454. package/lib-es/components/Layout/helpers/get-styles-to-update.js.map +1 -1
  455. package/lib-es/components/LazyImage/LazyImage.js.map +1 -1
  456. package/lib-es/components/List/ListBuilder.js +25 -15
  457. package/lib-es/components/List/ListBuilder.js.map +1 -1
  458. package/lib-es/components/List/ListFactory.js +21 -24
  459. package/lib-es/components/List/ListFactory.js.map +1 -1
  460. package/lib-es/components/List/ListRender.js.map +1 -1
  461. package/lib-es/components/List/components/Cards/CardsRender.js.map +1 -1
  462. package/lib-es/components/List/components/Cards/CardsRenderItem.js +4 -4
  463. package/lib-es/components/List/components/Cards/CardsRenderItem.js.map +1 -1
  464. package/lib-es/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
  465. package/lib-es/components/List/components/Full/FullRender.js.map +1 -1
  466. package/lib-es/components/List/components/Full/FullRenderItem.js.map +1 -1
  467. package/lib-es/components/List/components/Header/ListHeader.js.map +1 -1
  468. package/lib-es/components/List/components/Pagination/Classic.js.map +1 -1
  469. package/lib-es/components/List/components/Pagination/ListPagination.js.map +1 -1
  470. package/lib-es/components/List/components/Pagination/LoadMore.js.map +1 -1
  471. package/lib-es/components/List/components/helpers/check-if-should-render-banner.js.map +1 -1
  472. package/lib-es/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -1
  473. package/lib-es/components/List/helpers/build-az-aggregations.js.map +1 -1
  474. package/lib-es/components/List/helpers/build-az-url.js.map +1 -1
  475. package/lib-es/components/List/helpers/build-pagination-items.js.map +1 -1
  476. package/lib-es/components/List/helpers/build-pagination-url.js.map +1 -1
  477. package/lib-es/components/List/helpers/get-az-query-filter.js.map +1 -1
  478. package/lib-es/components/List/helpers/get-items-per-page-to-use.js.map +1 -1
  479. package/lib-es/components/List/helpers/get-sort-props.js.map +1 -1
  480. package/lib-es/components/List/helpers/has-required-item-list-details.js.map +1 -1
  481. package/lib-es/components/Menu/Menu.js.map +1 -1
  482. package/lib-es/components/MenuItem/MenuItem.js.map +1 -1
  483. package/lib-es/components/Modal/Modal.js.map +1 -1
  484. package/lib-es/components/SearchContent/SearchContent.js.map +1 -1
  485. package/lib-es/components/SearchContent/SearchContentItems.js.map +1 -1
  486. package/lib-es/components/SearchContent/SearchContentResults.js.map +1 -1
  487. package/lib-es/components/SearchContent/SearchContentToggleIcon.js.map +1 -1
  488. package/lib-es/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
  489. package/lib-es/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
  490. package/lib-es/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -1
  491. package/lib-es/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
  492. package/lib-es/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
  493. package/lib-es/components/SearchFilter/SearchFilterContainer.js.map +1 -1
  494. package/lib-es/components/SearchFilter/components/Checkbox.js.map +1 -1
  495. package/lib-es/components/SearchFilter/components/Range.js.map +1 -1
  496. package/lib-es/components/SearchFilter/components/Select.js.map +1 -1
  497. package/lib-es/components/SearchFilter/components/TextSearch.js.map +1 -1
  498. package/lib-es/components/SearchFilter/helpers/build-filters-query.js.map +1 -1
  499. package/lib-es/components/SearchFilter/helpers/build-new-query.js.map +1 -1
  500. package/lib-es/components/SearchFilter/helpers/build-query.js.map +1 -1
  501. package/lib-es/components/SearchFilter/helpers/build-raw-query-stringified.js.map +1 -1
  502. package/lib-es/components/SearchFilter/helpers/calculate-min-max.js.map +1 -1
  503. package/lib-es/components/SearchFilter/helpers/calculate-step.js.map +1 -1
  504. package/lib-es/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -1
  505. package/lib-es/components/SearchFilter/helpers/get-display-value.js.map +1 -1
  506. package/lib-es/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
  507. package/lib-es/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -1
  508. package/lib-es/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -1
  509. package/lib-es/components/SearchFilter/helpers/get-range-value.js.map +1 -1
  510. package/lib-es/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
  511. package/lib-es/components/SearchFilter/helpers/get-select-options.js.map +1 -1
  512. package/lib-es/components/SearchFilter/helpers/is-device-desktop.js.map +1 -1
  513. package/lib-es/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
  514. package/lib-es/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
  515. package/lib-es/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
  516. package/lib-es/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
  517. package/lib-es/components/SocialFollow/SFItem.js.map +1 -1
  518. package/lib-es/components/SocialFollow/SocialFollow.js.map +1 -1
  519. package/lib-es/components/SocialFollow/SocialFollowRender.js.map +1 -1
  520. package/lib-es/components/SubMenu/SubMenu.js.map +1 -1
  521. package/lib-es/components/TextBlock/TextBlockRender.js.map +1 -1
  522. package/lib-es/components/TextBlock/index.js.map +1 -1
  523. package/lib-es/components/Video/Video.js.map +1 -1
  524. package/lib-es/components/Video/VideoModal.js.map +1 -1
  525. package/lib-es/components/Video/VideoRender.js.map +1 -1
  526. package/lib-es/components/Video/providers/Default.js.map +1 -1
  527. package/lib-es/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
  528. package/lib-es/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
  529. package/lib-es/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
  530. package/lib-es/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js.map +1 -1
  531. package/lib-es/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
  532. package/lib-es/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
  533. package/lib-es/components/Video/providers/YouTube/helpers/index.js.map +1 -1
  534. package/lib-es/components/Video/providers/get-provider.js.map +1 -1
  535. package/lib-es/components/Wrapper.js.map +1 -1
  536. package/lib-es/helpers/append-images.js.map +1 -1
  537. package/lib-es/helpers/build-az-filter.js.map +1 -1
  538. package/lib-es/helpers/build-image-properties.js.map +1 -1
  539. package/lib-es/helpers/build-inherited-filters.js.map +1 -1
  540. package/lib-es/helpers/build-link-extra-props.js.map +1 -1
  541. package/lib-es/helpers/build-props-query.js +7 -11
  542. package/lib-es/helpers/build-props-query.js.map +1 -1
  543. package/lib-es/helpers/build-query-fields.js +3 -2
  544. package/lib-es/helpers/build-query-fields.js.map +1 -1
  545. package/lib-es/helpers/build-raw-query-base.js +17 -5
  546. package/lib-es/helpers/build-raw-query-base.js.map +1 -1
  547. package/lib-es/helpers/build-raw-query.js.map +1 -1
  548. package/lib-es/helpers/build-search-values-checkbox-select.js.map +1 -1
  549. package/lib-es/helpers/build-search-values-text.js.map +1 -1
  550. package/lib-es/helpers/build-set-filters.js.map +1 -1
  551. package/lib-es/helpers/check-for-error.js.map +1 -1
  552. package/lib-es/helpers/check-props-to-use.js.map +1 -1
  553. package/lib-es/helpers/get-banner-data.js.map +1 -1
  554. package/lib-es/helpers/get-click-wrapper-options.js.map +1 -1
  555. package/lib-es/helpers/get-current-offset.js.map +1 -1
  556. package/lib-es/helpers/get-display-count-data.js.map +1 -1
  557. package/lib-es/helpers/get-elasticsearch-operator.js.map +1 -1
  558. package/lib-es/helpers/get-entities-with-banner.js.map +1 -1
  559. package/lib-es/helpers/get-entity-data.js +2 -0
  560. package/lib-es/helpers/get-entity-data.js.map +1 -1
  561. package/lib-es/helpers/get-entity-render-props.js.map +1 -1
  562. package/lib-es/helpers/get-extra-az-bits.js.map +1 -1
  563. package/lib-es/helpers/get-filter-props.js.map +1 -1
  564. package/lib-es/helpers/get-filter-relation-keys.js.map +1 -1
  565. package/lib-es/helpers/get-generic-props.js.map +1 -1
  566. package/lib-es/helpers/get-generic-render-variables.js.map +1 -1
  567. package/lib-es/helpers/get-image-ids.js.map +1 -1
  568. package/lib-es/helpers/get-inherited-filters.js.map +1 -1
  569. package/lib-es/helpers/get-items-to-display-ids.js.map +1 -1
  570. package/lib-es/helpers/get-modifiers.js.map +1 -1
  571. package/lib-es/helpers/get-not-equal-query.js.map +1 -1
  572. package/lib-es/helpers/get-pagination-index.js.map +1 -1
  573. package/lib-es/helpers/get-parsed-prop-values.js.map +1 -1
  574. package/lib-es/helpers/get-parsed-summary-value.js.map +1 -1
  575. package/lib-es/helpers/get-prop-values.js.map +1 -1
  576. package/lib-es/helpers/get-query-filters.js.map +1 -1
  577. package/lib-es/helpers/get-query-props.js.map +1 -1
  578. package/lib-es/helpers/get-required-schemas.js.map +1 -1
  579. package/lib-es/helpers/get-search-filter-type.js.map +1 -1
  580. package/lib-es/helpers/get-sort-by-field-name.js.map +1 -1
  581. package/lib-es/helpers/get-updated-filter-by.js.map +1 -1
  582. package/lib-es/helpers/get-wrapped-value-with-link.js.map +1 -1
  583. package/lib-es/helpers/group-entities.js.map +1 -1
  584. package/lib-es/helpers/inject-banner.js.map +1 -1
  585. package/lib-es/helpers/inject-banners-to-entities.js.map +1 -1
  586. package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.map +1 -1
  587. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.map +1 -1
  588. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js.map +1 -1
  589. package/lib-es/helpers/inject-multiple-banners/inject-multiple-banners.js.map +1 -1
  590. package/lib-es/helpers/is-browser.js.map +1 -1
  591. package/lib-es/helpers/is-filter-entitys-id.js.map +1 -1
  592. package/lib-es/helpers/is-using-relation-image.js.map +1 -1
  593. package/lib-es/helpers/parse-TextBlock.js.map +1 -1
  594. package/lib-es/helpers/parse-interval.js.map +1 -1
  595. package/lib-es/helpers/parse-props-to-display.js.map +1 -1
  596. package/lib-es/helpers/remove-extra-items.js.map +1 -1
  597. package/lib-es/helpers/remove-unwanted-characters.js.map +1 -1
  598. package/lib-es/helpers/render-children.js.map +1 -1
  599. package/lib-es/helpers/should-render-waypoint.js.map +1 -1
  600. package/lib-es/helpers/should-show-property.js.map +1 -1
  601. package/lib-es/helpers/sort-response-data.js.map +1 -1
  602. package/lib-es/helpers/split-children.js +2 -2
  603. package/lib-es/helpers/split-children.js.map +1 -1
  604. package/lib-es/helpers/update-childrens-parent.js.map +1 -1
  605. package/lib-es/hooks/helpers/RenderComponent.js.map +1 -1
  606. package/lib-es/hooks/helpers/StoreImages.js.map +1 -1
  607. package/lib-es/hooks/helpers/append-gtm-classname.js.map +1 -1
  608. package/lib-es/hooks/helpers/buildPBComponents.js.map +1 -1
  609. package/lib-es/hooks/helpers/check-collisions.js.map +1 -1
  610. package/lib-es/hooks/helpers/get-banner-index.js.map +1 -1
  611. package/lib-es/hooks/helpers/get-banners-by-type.js.map +1 -1
  612. package/lib-es/hooks/helpers/get-lightbox-images.js.map +1 -1
  613. package/lib-es/hooks/helpers/getComponent.js.map +1 -1
  614. package/lib-es/hooks/helpers/inject-element-banners.js.map +1 -1
  615. package/lib-es/hooks/helpers/inject-textblock-banners.js.map +1 -1
  616. package/lib-es/hooks/helpers/insert-banners.js.map +1 -1
  617. package/lib-es/hooks/helpers/update-targetings.js.map +1 -1
  618. package/lib-es/hooks/use-check-mobile-screen.js.map +1 -1
  619. package/lib-es/hooks/use-get-entity-schema.js.map +1 -1
  620. package/lib-es/hooks/use-get-entity-schemas-as-obj.js.map +1 -1
  621. package/lib-es/hooks/use-get-image-id-from-relation.js.map +1 -1
  622. package/lib-es/hooks/use-get-images.js.map +1 -1
  623. package/lib-es/hooks/use-get-single-entity-schema.js.map +1 -1
  624. package/lib-es/hooks/use-page-builder.js.map +1 -1
  625. package/lib-es/utils/component-map.js.map +1 -1
  626. package/lib-es/utils/get-class-modifiers.js.map +1 -1
  627. package/lib-es/utils/get-image-data.js.map +1 -1
  628. package/lib-es/utils/is-object-empty.js.map +1 -1
  629. package/package.json +3 -3
  630. package/src/application/query/index.js +0 -33
  631. package/src/components/Card/Card.js +5 -2
  632. package/src/components/Card/{CardContainer.js → CardsContainer.js} +11 -9
  633. package/src/components/Card/{CardFactory.js → CardsFactory.js} +23 -11
  634. package/src/components/Card/{CardRender.js → CardsRender.js} +84 -58
  635. package/src/components/Card/helpers/filters-setup.js +4 -4
  636. package/src/components/Card/helpers/get-updated-sort-properties.js +14 -0
  637. package/src/components/Card/helpers/index.js +1 -0
  638. package/src/components/Card/index.js +2 -2
  639. package/src/components/ContentGroup/helpers/get-active-tab.js +1 -2
  640. package/src/components/ContentGroup/helpers/get-sections-data.js +1 -1
  641. package/src/components/List/ListBuilder.js +22 -11
  642. package/src/components/List/ListFactory.js +20 -37
  643. package/src/components/List/components/Cards/CardsRenderItem.js +4 -4
  644. package/src/helpers/build-props-query.js +7 -8
  645. package/src/helpers/build-query-fields.js +5 -2
  646. package/src/helpers/build-raw-query-base.js +20 -9
  647. package/src/helpers/get-entity-data.js +2 -2
  648. package/src/helpers/split-children.js +2 -2
  649. package/tests/helpers/mocks.js +144 -266
  650. package/tests/unit/src/components/Card/Card.test.js +4 -1
  651. package/tests/unit/src/components/Card/CardContainer.test.js +14 -7
  652. package/tests/unit/src/components/Card/__snapshots__/CardContainer.test.js.snap +2 -2
  653. package/tests/unit/src/components/Card/mockData.js +99 -6
  654. package/tests/unit/src/components/ContentGroup/helpers/get-active-tab.test.js +10 -1
  655. package/tests/unit/src/components/ContentGroup/helpers/get-sections-data.test.js +16 -0
  656. package/tests/unit/src/components/List/components/mocks.js +4 -1
  657. package/tests/unit/src/helpers/__snapshots__/build-query-fields.test.js.snap +29 -0
  658. package/tests/unit/src/helpers/build-props-query.test.js +0 -4
  659. package/tests/unit/src/helpers/build-query-fields.test.js +3 -30
  660. package/tests/unit/src/helpers/build-raw-query-base.test.js +6 -4
  661. package/tests/unit/src/helpers/build-raw-query.test.js +10 -0
  662. package/tests/unit/src/hooks/helpers/split-children.test.js +9 -8
  663. package/lib/components/Card/CardContainer.js.map +0 -1
  664. package/lib/components/Card/CardFactory.js.map +0 -1
  665. package/lib/components/Card/CardRender.js.map +0 -1
  666. package/lib-es/components/Card/CardContainer.js.map +0 -1
  667. package/lib-es/components/Card/CardFactory.js.map +0 -1
  668. package/lib-es/components/Card/CardRender.js.map +0 -1
  669. package/tests/unit/src/components/Card/CardRender.test.js +0 -77
  670. package/tests/unit/src/components/Card/__snapshots__/CardRender.test.js.snap +0 -55
@@ -1 +1 @@
1
- {"version":3,"file":"build-props-query.js","names":["defaultProps","ID","categoryProps","checkProps","props","Object","keys","filter","prop","CATEGORY_ID","length","buildPropsQuery","data","extraProps","cardOptions","extraPropsHaveCategory","includes","getTypeBaseProps","typeBasedProps","shouldAddCategoryProps","allProps","uniqueProps","Set","basicProps","i","arr","indexOf","complexProps","buildComplexProps","join","relations","getEntitySchema","map","nested","split","base","matchingRelation","find","localField","nestedProps","extraProp","startsWith","push","jointNestedProps","isCard","displayCategory","displayThumbnail","interfaces","properties","dynamicProperties","isContent","hasCategory","hasPreheader","PREHEADER_PROP","getCategoyProps","getContentProps","url","HEADLINE_PROP"],"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;AAEA,IAAMA,YAAY,GAAG,CAACC,aAAE,EAAE,MAAM,CAA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"version":3,"file":"build-props-query.js","names":["_constants","require","defaultProps","ID","categoryProps","checkProps","props","Object","keys","filter","prop","CATEGORY_ID","length","buildPropsQuery","entitySchema","extraProps","arguments","undefined","cardOptions","parsedSchema","getEntitySchema","extraPropsHaveCategory","includes","_getTypeBaseProps","getTypeBaseProps","typeBasedProps","shouldAddCategoryProps","allProps","concat","_toConsumableArray2","uniqueProps","Set","basicProps","i","arr","indexOf","complexProps","buildComplexProps","join","_ref","relations","map","nested","split","base","matchingRelation","find","_ref2","localField","nestedProps","extraProp","startsWith","push","jointNestedProps","isCard","_ref3","_ref3$displayCategory","displayCategory","_ref3$displayThumbnai","displayThumbnail","interfaces","properties","dynamicProperties","isContent","hasCategory","hasPreheader","PREHEADER_PROP","apply","getCategoyProps","getContentProps","url","_ref4","HEADLINE_PROP","_default","exports"],"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 = (entitySchema, extraProps = [], cardOptions = null) => {\n const parsedSchema = entitySchema.getEntitySchema ? entitySchema.getEntitySchema : entitySchema;\n const extraPropsHaveCategory = !!extraProps.filter(prop => prop.includes('category.')).length;\n const { typeBasedProps, shouldAddCategoryProps } = getTypeBaseProps(\n parsedSchema,\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, parsedSchema);\n return [...basicProps, ...complexProps].join(',');\n};\n\nconst buildComplexProps = (shouldAddCategoryProps, props, { 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 = (entitySchema, 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 { interfaces, properties, dynamicProperties, relations } = entitySchema;\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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I,CAAC,UAAAyB,KAAA;IAAA,IAAGvB,UAAU,GAAAuB,KAAA,CAAVvB,UAAU;IAAA,OAAOA,UAAU,KAAK,OAAO;EAAA,EAAC,EAAE;IAClFvB,cAAc,CAAC2B,IAAI,CAAC,UAAU,EAAE,WAAW,EAAE,YAAY,CAAC;EAC5D;EAEA,OAAO;IAAE3B,cAAc,EAAdA,cAAc;IAAEC,sBAAsB,EAAtBA;EAAuB,CAAC;AACnD,CAAC;AAED,IAAM2C,eAAe,GAAG,SAAlBA,eAAeA,CAAGN,SAAS;EAAA,OAAKA,SAAS,GAAG,CAAC,KAAK,EAAE,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE;AAAA,CAAC;AAExF,IAAMK,eAAe,GAAG,SAAlBA,eAAeA,CAAI1C,sBAAsB,EAAEsC,WAAW,EAAEC,YAAY,EAAK;EAC7E,IAAI,CAACvC,sBAAsB,EAAE,OAAO,EAAE;EAEtC,IAAMpB,KAAK,GAAG,EAAE;EAEhB,IAAI0D,WAAW,EAAE;IACf1D,KAAK,CAAC8C,IAAI,CAAC,eAAe,EAAE,wBAAwB,EAAE,4BAA4B,CAAC;EACrF;EAEA,IAAIa,YAAY,EAAE;IAChB3D,KAAK,CAAC8C,IAAI,IAAAxB,MAAA,CAAIsC,yBAAc,YAAS;IACrC5D,KAAK,CAAC8C,IAAI,CAACoB,wBAAa,CAAC;EAC3B;EAEA,OAAOlE,KAAK;AACd,CAAC;AAAC,IAAAmE,QAAA,GAEa5D,eAAe;AAAA6D,OAAA,cAAAD,QAAA"}
@@ -5,9 +5,12 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports["default"] = void 0;
8
+ require("core-js/modules/es.array.map.js");
8
9
  require("core-js/modules/es.array.concat.js");
9
- var buildQueryFields = function buildQueryFields(sanitizedEntityFields, entityType, isFullList) {
10
- return "results {\n ... on ".concat(entityType, " {\n ").concat(sanitizedEntityFields, "\n __typename\n id\n ").concat(isFullList ? 'pageBuilderComponents' : '', "\n }\n },\n total\n ");
10
+ var buildQueryFields = function buildQueryFields(sanitizedEntityFields, entityTypes, isFullList) {
11
+ return "results {\n ".concat(entityTypes.map(function (entityType) {
12
+ return "\n ... on ".concat(entityType, " {\n ").concat(sanitizedEntityFields, "\n __typename\n id\n ").concat(isFullList ? 'pageBuilderComponents' : '', "\n }");
13
+ }), "\n },\n total\n ");
11
14
  };
12
15
  var _default = buildQueryFields;
13
16
  exports["default"] = _default;
@@ -1 +1 @@
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,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgB,CAAIC,qBAAqB,EAAEC,UAAU,EAAEC,UAAU;EAAA,uCAE1DD,UAAU,uBACfD,qBAAqB,iDAGrBE,UAAU,GAAG,uBAAuB,GAAG,EAAE;AAAA,CAI9C;AAAC,eAEWH,gBAAgB;AAAA"}
1
+ {"version":3,"file":"build-query-fields.js","names":["buildQueryFields","sanitizedEntityFields","entityTypes","isFullList","concat","map","entityType","_default","exports"],"sources":["../../src/helpers/build-query-fields.js"],"sourcesContent":["const buildQueryFields = (sanitizedEntityFields, entityTypes, isFullList) =>\n `results {\n ${entityTypes.map(\n entityType => `\n ... on ${entityType} {\n ${sanitizedEntityFields}\n __typename\n id\n ${isFullList ? 'pageBuilderComponents' : ''}\n }`\n )}\n },\n total\n `;\n\nexport default buildQueryFields;\n"],"mappings":";;;;;;;;;AAAA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIC,qBAAqB,EAAEC,WAAW,EAAEC,UAAU;EAAA,yBAAAC,MAAA,CAElEF,WAAW,CAACG,GAAG,CACf,UAAAC,UAAU;IAAA,uBAAAF,MAAA,CACHE,UAAU,gBAAAF,MAAA,CACfH,qBAAqB,0CAAAG,MAAA,CAGrBD,UAAU,GAAG,uBAAuB,GAAG,EAAE;EAAA,CAC3C,CACD;AAAA,CAGF;AAAC,IAAAI,QAAA,GAEWP,gBAAgB;AAAAQ,OAAA,cAAAD,QAAA"}
@@ -23,6 +23,7 @@ require("core-js/modules/es.array.includes.js");
23
23
  require("core-js/modules/es.string.includes.js");
24
24
  require("core-js/modules/es.array.filter.js");
25
25
  require("core-js/modules/es.array.concat.js");
26
+ require("core-js/modules/es.array.is-array.js");
26
27
  var _getItemsToDisplayIds = _interopRequireDefault(require("./get-items-to-display-ids"));
27
28
  var _constants = require("../constants");
28
29
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -78,6 +79,22 @@ var buildItemsToDisplayValues = function buildItemsToDisplayValues(itemsToDispla
78
79
  }
79
80
  }];
80
81
  };
82
+ var buildShouldValues = function buildShouldValues(docTypes) {
83
+ if (Array.isArray(docTypes)) {
84
+ return docTypes.map(function (docType) {
85
+ return {
86
+ match: {
87
+ docType: docType
88
+ }
89
+ };
90
+ });
91
+ }
92
+ return [{
93
+ match: {
94
+ docType: docTypes
95
+ }
96
+ }];
97
+ };
81
98
  var buildRawQueryBase = function buildRawQueryBase(_ref3) {
82
99
  var _ref4;
83
100
  var docType = _ref3.docType,
@@ -100,11 +117,9 @@ var buildRawQueryBase = function buildRawQueryBase(_ref3) {
100
117
  var isOperatorOr = filterOperator === _constants.OR;
101
118
  var queryFilters = [];
102
119
  var baseBoolObject = {
103
- must: [{
104
- term: {
105
- docType: docType
106
- }
107
- }].concat((0, _toConsumableArray2["default"])(itemsToDisplayValues), (0, _toConsumableArray2["default"])(checkboxFiltersValue))
120
+ should: buildShouldValues(docType),
121
+ minimum_should_match: 1,
122
+ must: [].concat((0, _toConsumableArray2["default"])(itemsToDisplayValues), (0, _toConsumableArray2["default"])(checkboxFiltersValue))
108
123
  };
109
124
  if (isOperatorOr) {
110
125
  if (addListFiltersToQuery) {
@@ -1 +1 @@
1
- {"version":3,"file":"build-raw-query-base.js","names":["buildCheckboxFilters","checkboxFilters","reduce","acc","checkboxFilter","push","match","buildFilterValues","listFilterValues","relations","stringProps","listFilterValuesKeys","Object","keys","map","key","values","el","updatedKey","isRelation","includes","split","relationName","relationProp","filter","localField","relation","entityIdentifier","fieldName","KEYWORD","bool","should","buildItemsToDisplayValues","itemsToDisplay","length","itemToDisplayIds","getItemsToDisplayIds","ids","buildRawQueryBase","docType","id","filterValues","filterOperator","addListFiltersToQuery","listFilterFinalValues","checkboxFiltersValue","itemsToDisplayValues","isOperatorOr","OR","queryFilters","baseBoolObject","must","term","OR_OPERATOR","mustNot","undefined","queryFilter","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;AACA;AAAwD;AAAA;AAExD,IAAMA,oBAAoB,GAAG,SAAvBA,oBAAoB,CAAGC,eAAe;EAAA,OAC1CA,eAAe,CAACC,MAAM,CAAC,UAACC,GAAG,EAAEC,cAAc,EAAK;IAC9CD,GAAG,CAACE,IAAI,CAAC;MAAEC,KAAK,uCAAKF,cAAc,EAAG,IAAI;IAAG,CAAC,CAAC;IAC/C,OAAOD,GAAG;EACZ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CAACC,IAAI,CAAC9C,IAAI,CAAC;QAAEyB,IAAI,uCAAKuB,sBAAW,sCAAOT,qBAAqB;MAAI,CAAC,CAAC;IACnF;EACF,CAAC,MAAM;IAAA;IACL,wBAAAM,cAAc,CAACC,IAAI,EAAC9C,IAAI,iEAAIuC,qBAAqB,EAAC;EACpD;EAEA,IAAMU,OAAO,GAAGd,EAAE,GAAG,CAAC;IAAEH,GAAG,EAAE;MAAErB,MAAM,EAAE,CAACwB,EAAE;IAAE;EAAE,CAAC,CAAC,GAAGe,SAAS;EAE5D,IAAMC,WAAW,GAAGP,YAAY,CAACf,MAAM,wDAChCmB,sBAAW,EAAGJ,YAAY,mEAAwB,CAAC,YACtD,CAAC,CAAC;EACN,uCACKO,WAAW;IACdhC,MAAM,EAAE;MACNM,IAAI,EAAEoB;IACR,CAAC;IACDO,QAAQ,EAAEH;EAAO;AAErB,CAAC;AAAC,eAEahB,iBAAiB;AAAA"}
1
+ {"version":3,"file":"build-raw-query-base.js","names":["_getItemsToDisplayIds","_interopRequireDefault","require","_constants","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","buildCheckboxFilters","checkboxFilters","reduce","acc","checkboxFilter","match","buildFilterValues","listFilterValues","relations","stringProps","listFilterValuesKeys","map","values","el","updatedKey","isRelation","includes","_key$split","split","_key$split2","_slicedToArray2","relationName","relationProp","_relations$filter","_ref","localField","_relations$filter2","relation","_ref2","_ref2$entityIdentifie","entityIdentifier","concat","fieldName","KEYWORD","bool","should","buildItemsToDisplayValues","itemsToDisplay","itemToDisplayIds","getItemsToDisplayIds","ids","buildShouldValues","docTypes","Array","isArray","docType","buildRawQueryBase","_ref3","_ref4","id","_ref3$filterValues","filterValues","_ref3$filterValues2","_ref3$filterValues2$c","_ref3$filterValues2$l","filterOperator","_ref3$addListFiltersT","addListFiltersToQuery","listFilterFinalValues","checkboxFiltersValue","itemsToDisplayValues","isOperatorOr","OR","queryFilters","baseBoolObject","minimum_should_match","must","_toConsumableArray2","OR_OPERATOR","_baseBoolObject$must","mustNot","undefined","queryFilter","must_not","_default","exports"],"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 buildShouldValues = docTypes => {\n if (Array.isArray(docTypes)) {\n return docTypes.map(docType => ({\n match: {\n docType\n }\n }));\n }\n return [\n {\n match: {\n docType: docTypes\n }\n }\n ];\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 should: buildShouldValues(docType),\n minimum_should_match: 1,\n must: [...itemsToDisplayValues, ...checkboxFiltersValue]\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,IAAAA,qBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAAwD,SAAAE,QAAAC,MAAA,EAAAC,cAAA,QAAAC,IAAA,GAAAC,MAAA,CAAAD,IAAA,CAAAF,MAAA,OAAAG,MAAA,CAAAC,qBAAA,QAAAC,OAAA,GAAAF,MAAA,CAAAC,qBAAA,CAAAJ,MAAA,GAAAC,cAAA,KAAAI,OAAA,GAAAA,OAAA,CAAAC,MAAA,WAAAC,GAAA,WAAAJ,MAAA,CAAAK,wBAAA,CAAAR,MAAA,EAAAO,GAAA,EAAAE,UAAA,OAAAP,IAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,IAAA,EAAAG,OAAA,YAAAH,IAAA;AAAA,SAAAU,cAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,WAAAF,SAAA,CAAAD,CAAA,IAAAC,SAAA,C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A,CAAAA,aAAA,KACKoF,WAAW;IACd1F,MAAM,EAAE;MACNoD,IAAI,EAAE8B;IACR,CAAC;IACDS,QAAQ,EAAEH;EAAO;AAErB,CAAC;AAAC,IAAAI,QAAA,GAEa5B,iBAAiB;AAAA6B,OAAA,cAAAD,QAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"build-raw-query.js","names":["buildRawQuery","docType","operator","searchValues","filterData","id","itemsToDisplay","shouldApplySort","azOptions","searchValuesText","searchValuesCheckboxSelectRange","searchValuesCheckboxOr","filterValues","filterOperator","relations","stringProps","azFilter","shouldReturnAggs","isAZ","searchValuesTextCheckboxSelectJoined","AND_OPERATOR","searchValuesTextCheckboxOr","length","finalValue","finalValueWithCheckboxOrValues","must","bool","should","finalValueIfNoCheckboxOrValues","mustValues","buildAzFilter","query","buildRawQueryBase","azQueryBits","getExtraAzBits","itemsToDisplayIds","getItemsToDisplayIds","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;AACA;AACA;AACA;AACA;AAA4C;AAAA;AAE5C,IAAMA,aAAa,GAAG,SAAhBA,aAAa,CACjBC,OAAO,EACPC,QAAQ,EACRC,YAAY,EACZC,UAAU,EACVC,EAAE,EACFC,cAAc,EACdC,eAAe,EACfC,SAAS,EACN;EACH,IACEC,gBAAgB,GAGdN,YAAY,CAHdM,gBAAgB;IAChBC,+BAA+B,GAE7BP,YAAY,CAFdO,+BAA+B;IAC/BC,sBAAsB,GACpBR,YAAY,CADdQ,sBAAsB;EA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,6BAAiB,EAAC;MAAE/B,OAAO,EAAPA,OAAO;MAAEI,EAAE,EAAFA,EAAE;MAAEO,YAAY,EAAZA,YAAY;MAAEC,cAAc,EAAdA,cAAc;MAAEC,SAAS,EAATA,SAAS;MAAEC,WAAW,EAAXA;IAAY,CAAC,CAAC;EAE/F,CAAC;EACD,IAAMkB,WAAW,GAAG,IAAAC,0BAAc,EAACjB,gBAAgB,EAAEC,IAAI,EAAEF,QAAQ,CAAC;EAEpE,IAAIV,cAAc,IAAIA,cAAc,CAACgB,MAAM,EAAE;IAC3C,IAAMa,iBAAiB,GAAG,IAAAC,gCAAoB,EAAC9B,cAAc,CAAC;IAE9DyB,KAAK,CAACL,IAAI,CAACD,IAAI,CAACY,IAAI,CAAC;MAAEC,GAAG,EAAE;QAAEC,MAAM,EAAEJ;MAAkB;IAAE,CAAC,CAAC;IAC5D,IAAI5B,eAAe,EAAE;MACnB;QACEwB,KAAK,EAALA,KAAK;QACLS,IAAI,EAAE;UACJC,OAAO,EAAE;YACPC,IAAI,EAAE,QAAQ;YACdC,MAAM,EAAE;cACNC,IAAI,EAAE,UAAU;cAChBC,MAAM,EACJ,kFAAkF;cACpFC,MAAM,EAAE;gBACNC,SAAS,EAAEZ;cACb;YACF,CAAC;YACDa,KAAK,EAAE;UACT;QACF;MAAC,GACEf,WAAW;IAElB;EACF;EAEA,OAAOf,IAAI;IAELa,KAAK,EAALA;EAAK,GACFE,WAAW,IAEhBF,KAAK;AACX,CAAC;AAAC,eAEa/B,aAAa;AAAA"}
1
+ {"version":3,"file":"build-raw-query.js","names":["_buildRawQueryBase","_interopRequireDefault","require","_getItemsToDisplayIds","_getExtraAzBits","_buildAzFilter","_constants","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","buildRawQuery","docType","operator","searchValues","filterData","id","itemsToDisplay","shouldApplySort","azOptions","searchValuesText","searchValuesCheckboxSelectRange","searchValuesCheckboxOr","filterValues","filterOperator","relations","stringProps","azFilter","_ref","shouldReturnAggs","isAZ","searchValuesTextCheckboxSelectJoined","AND_OPERATOR","concat","_toConsumableArray2","searchValuesTextCheckboxOr","finalValue","finalValueWithCheckboxOrValues","must","bool","should","finalValueIfNoCheckboxOrValues","mustValues","buildAzFilter","query","buildRawQueryBase","azQueryBits","getExtraAzBits","itemsToDisplayIds","getItemsToDisplayIds","ids","values","sort","_script","type","script","lang","params","sortOrder","order","_default","exports"],"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,IAAAA,kBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,eAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,cAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAA4C,SAAAK,QAAAC,MAAA,EAAAC,cAAA,QAAAC,IAAA,GAAAC,MAAA,CAAAD,IAAA,CAAAF,MAAA,OAAAG,MAAA,CAAAC,qBAAA,QAAAC,OAAA,GAAAF,MAAA,CAAAC,qBAAA,CAAAJ,MAAA,GAAAC,cAAA,KAAAI,OAAA,GAAAA,OAAA,CAAAC,MAAA,WAAAC,GAAA,WAAAJ,MAAA,CAAAK,wBAAA,CAAAR,MAAA,EAAAO,GAAA,EAAAE,UAAA,OAAAP,IAAA,CAAAQ,IAAA,CAAAC,K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AY;MAAEC,cAAc,EAAdA,cAAc;MAAEC,SAAS,EAATA,SAAS;MAAEC,WAAW,EAAXA;IAAY,CAAC,CAAC;EAE/F,CAAC;EACD,IAAMoB,WAAW,GAAG,IAAAC,0BAAc,EAAClB,gBAAgB,EAAEC,IAAI,EAAEH,QAAQ,CAAC;EAEpE,IAAIV,cAAc,IAAIA,cAAc,CAACd,MAAM,EAAE;IAC3C,IAAM6C,iBAAiB,GAAG,IAAAC,gCAAoB,EAAChC,cAAc,CAAC;IAE9D2B,KAAK,CAACL,IAAI,CAACD,IAAI,CAACzC,IAAI,CAAC;MAAEqD,GAAG,EAAE;QAAEC,MAAM,EAAEH;MAAkB;IAAE,CAAC,CAAC;IAC5D,IAAI9B,eAAe,EAAE;MACnB,OAAAnB,aAAA;QACE6C,KAAK,EAALA,KAAK;QACLQ,IAAI,EAAE;UACJC,OAAO,EAAE;YACPC,IAAI,EAAE,QAAQ;YACdC,MAAM,EAAE;cACNC,IAAI,EAAE,UAAU;cAChBpD,MAAM,EACJ,kFAAkF;cACpFqD,MAAM,EAAE;gBACNC,SAAS,EAAEV;cACb;YACF,CAAC;YACDW,KAAK,EAAE;UACT;QACF;MAAC,GACEb,WAAW;IAElB;EACF;EAEA,OAAOhB,IAAI,GAAA/B,aAAA;IAEL6C,KAAK,EAALA;EAAK,GACFE,WAAW,IAEhBF,KAAK;AACX,CAAC;AAAC,IAAAgB,QAAA,GAEajD,aAAa;AAAAkD,OAAA,cAAAD,QAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"build-search-values-checkbox-select.js","names":["buildFieldName","fieldName","KEYWORD","getFiltersProps","filters","flatten","map","propsToDisplay","buildSearchValuesCheckboxSelect","query","rangeFilters","checkboxFilters","selectFilters","queryParams","Object","keys","filter","param","SEARCH_TERM","rangeFilterProps","checkboxFilterProps","selectFilterProps","reduce","acc","queryParam","isQueryParamString","includes","split","min","max","values","push","range","gte","Number","lte","match","checkboxFilter","firstPropToDisplay","length","shouldBuildCheckboxOrValues","operator","AND","fieldToPush","valuesOr","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;AACA;AAEA,IAAMA,cAAc,GAAG,SAAjBA,cAAc,C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U,CAAC,IACxCH,iBAAiB,CAACK,QAAQ,CAACF,UAAU,CAAC,EACtC;UACAD,GAAG,CAACO,MAAM,CAACC,IAAI,CAAC;YACdK,KAAK,uCAAKpC,cAAc,CAACwB,UAAU,CAAC,EAAGf,KAAK,CAACe,UAAU,CAAC;UAC1D,CAAC,CAAC;QACJ;MACF,CAAC,MAAM;QACL,IAAMa,cAAc,GAAG1B,eAAe,CAACK,MAAM,CAC3C;UAAA,iEAAGT,cAAc;YAAG+B,kBAAkB;UAAA,OAAQA,kBAAkB,KAAKd,UAAU;QAAA,EAChF;QAED,IAAI,CAACa,cAAc,CAACE,MAAM,EAAE,OAAOhB,GAAG;QAEtC,IAAMiB,2BAA2B,GAAGH,cAAc,CAACrB,MAAM,CACvD;UAAA,IAAGyB,QAAQ,SAARA,QAAQ;UAAA,OAAOA,QAAQ,KAAKC,cAAG;QAAA,EACnC,CAACH,MAAM;QAER,IAAMI,WAAW,GAAGH,2BAA2B,GAAGjB,GAAG,CAACqB,QAAQ,GAAGrB,GAAG,CAACO,MAAM;QAE3ErB,KAAK,CAACe,UAAU,CAAC,CAACqB,OAAO,CAAC,UAAAC,KAAK,EAAI;UACjCH,WAAW,CAACZ,IAAI,CAAC;YAAEK,KAAK,uCAAKpC,cAAc,CAACwB,UAAU,CAAC,EAAGsB,KAAK;UAAG,CAAC,CAAC;QACtE,CAAC,CAAC;MACJ;MAEA,OAAOvB,GAAG;IACZ,CAAC,EACD;MACEO,MAAM,EAAE,EAAE;MACVc,QAAQ,EAAE;IACZ,CAAC,CACF;IA9COd,MAAM,uBAANA,MAAM;IAAEc,QAAQ,uBAARA,QAAQ;EAgDxB,OAAO;IAAEd,MAAM,EAANA,MAAM;IAAEc,QAAQ,EAARA;EAAS,CAAC;AAC7B,CAAC;AAAC,eAEapC,+BAA+B;AAAA"}
1
+ {"version":3,"file":"build-search-values-checkbox-select.js","names":["_lodash","_interopRequireDefault","require","_constants","buildFieldName","fieldName","concat","KEYWORD","getFiltersProps","filters","flatten","map","_ref","propsToDisplay","buildSearchValuesCheckboxSelect","query","rangeFilters","checkboxFilters","selectFilters","queryParams","Object","keys","filter","param","SEARCH_TERM","rangeFilterProps","checkboxFilterProps","selectFilterProps","_queryParams$reduce","reduce","acc","queryParam","isQueryParamString","includes","_query$queryParam$spl","split","_query$queryParam$spl2","_slicedToArray2","min","max","values","push","range","_defineProperty2","gte","Number","lte","match","checkboxFilter","_ref2","_ref2$propsToDisplay","firstPropToDisplay","length","shouldBuildCheckboxOrValues","_ref3","operator","AND","fieldToPush","valuesOr","forEach","value","_default","exports"],"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,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAEA,IAAME,cAAc,GAAG,SAAjBA,cAAcA,CAAGC,SAAS;EAAA,UAAAC,MAAA,CAAOD,SAAS,OAAAC,MAAA,CAAIC,kBAAO;AAAA,CAAE;AAE7D,IAAMC,eAAe,GAAG,SAAlBA,eAAeA,CAAGC,OAAO;EAAA,OAAI,IAAAC,kBAAO,EAACD,OAAO,CAACE,GAAG,CAAC,UAAAC,IAAA;IAAA,IAAGC,cAAc,GAAAD,IAAA,CAAdC,cAAc;IAAA,OAAOA,cAAc;EAAA,EAAC,CAAC;AAAA;AAE/F,IAAMC,+BAA+B,GAAG,SAAlCA,+BAA+BA,CAAIC,KAAK,EAAEC,YAAY,EAAEC,eAAe,EAAEC,aAAa,EAAK;EAC/F,IAAMC,WAAW,GAAGC,MAAM,CAACC,IAAI,CAACN,KAAK,CAAC,CAACO,MAAM,CAAC,UAAAC,KAAK;IAAA,OAAIA,KAAK,KAAKC,sBAAW;EAAA,EAAC;EAE7E,IAAMC,gBAAgB,GAAGjB,eAAe,CAACQ,YAAY,CAAC;EACtD,IAAMU,mBAAmB,GAAGlB,eAAe,CAACS,eAAe,CAAC;EAC5D,IAAMU,iBAAiB,GAAGnB,eAAe,CAACU,aAAa,CAAC;EAExD,IAAAU,mBAAA,GAA6BT,WAAW,CAACU,MAAM,CAC7C,UAACC,GAAG,EAAEC,UAAU,EAAK;MACnB,IAAMC,kBAAkB,GAAG,OAAOjB,KAAK,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C,CAACJ,MAAM;QAER,IAAMK,WAAW,GAAGJ,2BAA2B,GAAGvB,GAAG,CAAC4B,QAAQ,GAAG5B,GAAG,CAACU,MAAM;QAE3EzB,KAAK,CAACgB,UAAU,CAAC,CAAC4B,OAAO,CAAC,UAAAC,KAAK,EAAI;UACjCH,WAAW,CAAChB,IAAI,CAAC;YAAEM,KAAK,MAAAJ,gBAAA,iBAAKvC,cAAc,CAAC2B,UAAU,CAAC,EAAG6B,KAAK;UAAG,CAAC,CAAC;QACtE,CAAC,CAAC;MACJ;MAEA,OAAO9B,GAAG;IACZ,CAAC,EACD;MACEU,MAAM,EAAE,EAAE;MACVkB,QAAQ,EAAE;IACZ,CAAC,CACF;IA9COlB,MAAM,GAAAZ,mBAAA,CAANY,MAAM;IAAEkB,QAAQ,GAAA9B,mBAAA,CAAR8B,QAAQ;EAgDxB,OAAO;IAAElB,MAAM,EAANA,MAAM;IAAEkB,QAAQ,EAARA;EAAS,CAAC;AAC7B,CAAC;AAAC,IAAAG,QAAA,GAEa/C,+BAA+B;AAAAgD,OAAA,cAAAD,QAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"build-search-values-text.js","names":["buildSearchValuesText","propsToDisplay","searchTerm","search_term","reduce","acc","field","index","match","pageBuilderIndexed","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 if (index === 0) {\n acc[index] = {\n match: {\n pageBuilderIndexed: {\n query: searchTerm,\n fuzziness: 'AUTO'\n }\n }\n };\n }\n acc[index + 1] = {\n match: {\n [field]: {\n query: searchTerm,\n fuzziness: 'AUTO'\n }\n }\n };\n }\n return acc;\n }, []);\n\nexport default buildSearchValuesText;\n"],"mappings":";;;;;;;;;;;AAAA,IAAMA,qBAAqB,GAAG,SAAxBA,qBAAqB;EAAA,IAAMC,cAAc,QAAdA,cAAc;EAAA,IAAmBC,UAAU,SAAvBC,WAAW;EAAA,OAC9DF,cAAc,CAACG,MAAM,CAAC,UAACC,GAAG,EAAEC,KAAK,EAAEC,KAAK,EAAK;IAC3C,IAAID,KAAK,IAAIJ,UAAU,EAAE;MACvB,IAAIK,KAAK,KAAK,CAAC,EAAE;QACfF,GAAG,CAACE,KAAK,CAAC,GAAG;UACXC,KAAK,EAAE;YACLC,kBAAkB,EAAE;cAClBC,KAAK,EAAER,UAAU;cACjBS,SAAS,EAAE;YACb;UACF;QACF,CAAC;MACH;MACAN,GAAG,CAACE,KAAK,GAAG,CAAC,CAAC,GAAG;QACfC,KAAK,uCACFF,KAAK,EAAG;UACPI,KAAK,EAAER,UAAU;UACjBS,SAAS,EAAE;QACb,CAAC;MAEL,CAAC;IACH;IACA,OAAON,GAAG;EACZ,CAAC,EAAE,EAAE,CAAC;AAAA;AAAC,eAEML,qBAAqB;AAAA"}
1
+ {"version":3,"file":"build-search-values-text.js","names":["buildSearchValuesText","_ref","_ref2","propsToDisplay","searchTerm","search_term","reduce","acc","field","index","match","pageBuilderIndexed","query","fuzziness","_defineProperty2","_default","exports"],"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 if (index === 0) {\n acc[index] = {\n match: {\n pageBuilderIndexed: {\n query: searchTerm,\n fuzziness: 'AUTO'\n }\n }\n };\n }\n acc[index + 1] = {\n match: {\n [field]: {\n query: searchTerm,\n fuzziness: 'AUTO'\n }\n }\n };\n }\n return acc;\n }, []);\n\nexport default buildSearchValuesText;\n"],"mappings":";;;;;;;;;;;AAAA,IAAMA,qBAAqB,GAAG,SAAxBA,qBAAqBA,CAAAC,IAAA,EAAAC,KAAA;EAAA,IAAMC,cAAc,GAAAF,IAAA,CAAdE,cAAc;EAAA,IAAmBC,UAAU,GAAAF,KAAA,CAAvBG,WAAW;EAAA,OAC9DF,cAAc,CAACG,MAAM,CAAC,UAACC,GAAG,EAAEC,KAAK,EAAEC,KAAK,EAAK;IAC3C,IAAID,KAAK,IAAIJ,UAAU,EAAE;MACvB,IAAIK,KAAK,KAAK,CAAC,EAAE;QACfF,GAAG,CAACE,KAAK,CAAC,GAAG;UACXC,KAAK,EAAE;YACLC,kBAAkB,EAAE;cAClBC,KAAK,EAAER,UAAU;cACjBS,SAAS,EAAE;YACb;UACF;QACF,CAAC;MACH;MACAN,GAAG,CAACE,KAAK,GAAG,CAAC,CAAC,GAAG;QACfC,KAAK,MAAAI,gBAAA,iBACFN,KAAK,EAAG;UACPI,KAAK,EAAER,UAAU;UACjBS,SAAS,EAAE;QACb,CAAC;MAEL,CAAC;IACH;IACA,OAAON,GAAG;EACZ,CAAC,EAAE,EAAE,CAAC;AAAA;AAAC,IAAAQ,QAAA,GAEMf,qBAAqB;AAAAgB,OAAA,cAAAD,QAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"build-set-filters.js","names":["getCheckboxFilters","checkboxFilters","name","push","getFilterValues","filterBy","reduce","acc","filter","split","fieldName","values","value","join","previousValue","finalValue","buildSetFilters","filterByProperty","filterByFeatured","filterBySponsored","FEATURED","SPONSORED","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;AAEA,IAAMA,kBAAkB,GAAG,SAArBA,kBAAkB,CAAIC,eAAe,EAAEC,IAAI,EAAK;EACpDD,eAAe,CAACE,IAAI,CAACD,IAAI,CAAC;AAC5B,CAAC;AAED,IAAME,eAAe,GAAG,SAAlBA,eAAe,CAAGC,QAAQ;EAAA,OAC9BA,QAAQ,CAACC,MAAM,CAAC,UAACC,GAAG,EAAEC,MAAM,EAAK;IAC/B,oBAA+BA,MAAM,CAACC,KAAK,CAAC,GAAG,CAAC;MAAA;MAAzCC,SAAS;MAAKC,MAAM;IAC3B,IAAMC,KAAK,GAAGD,MAAM,CAACE,IAAI,CAAC,GAAG,CAAC;IAC9B,IAAMC,aAAa,GAAGP,GAAG,CAACG,SAAS,CAAC;IACpC,IAAMK,UAAU,GAAGD,aAAa,iDAAOA,aAAa,IAAEF,KAAK,KAAI,CAACA,KAAK,CAAC;IAEtEL,GAAG,CAACG,SAAS,CAAC,GAAGK,UAAU;IAC3B,OAAOR,GAAG;EACZ,CAAC,EAAE,CAAC,CAAC,CAAC;AAAA;AAER,IAAMS,eAAe,GAAG,SAAlBA,eAAe,OAKf;EAAA,yBAJJX,QAAQ;IAARA,QAAQ,8BAAG,EAAE;IAAA,6BACbY,gBAAgB;IAAhBA,gBAAgB,sCAAG,EAAE;IACrBC,gBAAgB,QAAhBA,gBAAgB;IAChBC,iBAAiB,QAAjBA,iBAAiB;EAEjB,IAAMlB,eAAe,GAAG,EAAE;EAE1B,IAAIiB,gBAAgB,EAAE;IACpBlB,kBAAkB,CAACC,eAAe,EAAEmB,mBAAQ,CAAC;EAC/C;EACA,IAAID,iBAAiB,EAAE;IACrBnB,kBAAkB,CAACC,eAAe,EAAEoB,oBAAS,CAAC;EAChD;EAEA,IAAMC,uBAAuB,GAAGjB,QAAQ,CAACkB,MAAM,IAAIN,gBAAgB,CAACM,MAAM;EAC1E,IAAMC,gBAAgB,GAAGF,uBAAuB,GAAGlB,eAAe,CAACC,QAAQ,CAAC,GAAG,CAAC,CAAC;EAEjF,OAAO;IAAEJ,eAAe,EAAfA,eAAe;IAAEuB,gBAAgB,EAAhBA;EAAiB,CAAC;AAC9C,CAAC;AAAC,eAEaR,eAAe;AAAA"}
1
+ {"version":3,"file":"build-set-filters.js","names":["_constants","require","getCheckboxFilters","checkboxFilters","name","push","getFilterValues","filterBy","reduce","acc","filter","_filter$split","split","_filter$split2","_toArray2","fieldName","values","slice","value","join","previousValue","finalValue","concat","_toConsumableArray2","buildSetFilters","_ref","_ref$filterBy","_ref$filterByProperty","filterByProperty","filterByFeatured","filterBySponsored","FEATURED","SPONSORED","shouldApplyFilterValues","length","listFilterValues","_default","exports"],"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":";;;;;;;;;;;;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,CAACC,eAAe,EAAE4B,mBAAQ,CAAC;EAC/C;EACA,IAAID,iBAAiB,EAAE;IACrB5B,kBAAkB,CAACC,eAAe,EAAE6B,oBAAS,CAAC;EAChD;EAEA,IAAMC,uBAAuB,GAAG1B,QAAQ,CAAC2B,MAAM,IAAIN,gBAAgB,CAACM,MAAM;EAC1E,IAAMC,gBAAgB,GAAGF,uBAAuB,GAAG3B,eAAe,CAACC,QAAQ,CAAC,GAAG,CAAC,CAAC;EAEjF,OAAO;IAAEJ,eAAe,EAAfA,eAAe;IAAEgC,gBAAgB,EAAhBA;EAAiB,CAAC;AAC9C,CAAC;AAAC,IAAAC,QAAA,GAEaZ,eAAe;AAAAa,OAAA,cAAAD,QAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"check-for-error.js","names":["checkForError","errors","find","err","message","errMsg","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,IAAMA,aAAa,GAAG,SAAhBA,aAAa,GAAoB;EAAA,IAAhBC,MAAM,uEAAG,EAAE;EAChC,WAA4BA,MAAM,CAACC,IAAI,CAAC;MAAA,IAACC,GAAG,uEAAG,CAAC,CAAC;MAAA,OAAKA,GAAG,IAAIA,GAAG,CAACC,OAAO;IAAA,EAAC,IAAI,CAAC,CAAC;IAA9DC,MAAM,QAAfD,OAAO;EAEf,OAAO;IACLE,MAAM,EAAE,CAAC,CAACD,MAAM;IAChBA,MAAM,EAANA;EACF,CAAC;AACH,CAAC;AAAC,eAEaL,aAAa;AAAA"}
1
+ {"version":3,"file":"check-for-error.js","names":["checkForError","errors","arguments","length","undefined","_ref","find","err","message","errMsg","hasErr","_default","exports"],"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,IAAMA,aAAa,GAAG,SAAhBA,aAAaA,CAAA,EAAoB;EAAA,IAAhBC,MAAM,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EAChC,IAAAG,IAAA,GAA4BJ,MAAM,CAACK,IAAI,CAAC;MAAA,IAACC,GAAG,GAAAL,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;MAAA,OAAKK,GAAG,IAAIA,GAAG,CAACC,OAAO;IAAA,EAAC,IAAI,CAAC,CAAC;IAA9DC,MAAM,GAAAJ,IAAA,CAAfG,OAAO;EAEf,OAAO;IACLE,MAAM,EAAE,CAAC,CAACD,MAAM;IAChBA,MAAM,EAANA;EACF,CAAC;AACH,CAAC;AAAC,IAAAE,QAAA,GAEaX,aAAa;AAAAY,OAAA,cAAAD,QAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"check-props-to-use.js","names":["checkPropsToUse","propsToDisplay","isObject","flatten","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;AACA;AAEA;AACA,IAAMA,eAAe,GAAG,SAAlBA,eAAe;EAAA,IAAIC,cAAc,uEAAG,EAAE;EAAA,OAC1CA,cAAc,IAAI,IAAAC,oBAAQ,EAACD,cAAc,CAAC,CAAC,CAAC,CAAC,GACzC,IAAAE,kBAAO,EAACF,cAAc,CAACG,GAAG,CAAC;IAAA,IAAGC,mBAAmB,QAAnBA,mBAAmB;IAAA,OAAOA,mBAAmB;EAAA,EAAC,CAAC,GAC7EJ,cAAc;AAAA;AAAC,eAEND,eAAe;AAAA"}
1
+ {"version":3,"file":"check-props-to-use.js","names":["_lodash","_interopRequireDefault","require","_isObject","checkPropsToUse","propsToDisplay","arguments","length","undefined","isObject","flatten","map","_ref","propertiesToDisplay","_default","exports"],"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,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA;AACA,IAAME,eAAe,GAAG,SAAlBA,eAAeA,CAAA;EAAA,IAAIC,cAAc,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EAAA,OAC1CD,cAAc,IAAI,IAAAI,oBAAQ,EAACJ,cAAc,CAAC,CAAC,CAAC,CAAC,GACzC,IAAAK,kBAAO,EAACL,cAAc,CAACM,GAAG,CAAC,UAAAC,IAAA;IAAA,IAAGC,mBAAmB,GAAAD,IAAA,CAAnBC,mBAAmB;IAAA,OAAOA,mBAAmB;EAAA,EAAC,CAAC,GAC7ER,cAAc;AAAA;AAAC,IAAAS,QAAA,GAENV,eAAe;AAAAW,OAAA,cAAAD,QAAA"}
@@ -1 +1 @@
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":";;;;;;;AAAO,IAAMA,UAAU,GAAG;EACxBC,eAAe,EAAE;IACfC,OAAO,EAAE,CAAC,CAAC;IACXC,UAAU,EAAE;EACd;AACF,CAAC;AAAC;AAEK,IAAMC,WAAW,GAAG;EACzBC,WAAW,EAAE,CAAC;AAChB,CAAC;AAAC;AAEK,IAAMC,YAAY,GAAG,SAAS;AAAC"}
1
+ {"version":3,"file":"constants.js","names":["dataSchema","getEntitySchema","actions","interfaces","exports","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":";;;;;;;AAAO,IAAMA,UAAU,GAAG;EACxBC,eAAe,EAAE;IACfC,OAAO,EAAE,CAAC,CAAC;IACXC,UAAU,EAAE;EACd;AACF,CAAC;AAACC,OAAA,CAAAJ,UAAA,GAAAA,UAAA;AAEK,IAAMK,WAAW,GAAG;EACzBC,WAAW,EAAE,CAAC;AAChB,CAAC;AAACF,OAAA,CAAAC,WAAA,GAAAA,WAAA;AAEK,IAAME,YAAY,GAAG,SAAS;AAACH,OAAA,CAAAG,YAAA,GAAAA,YAAA"}
@@ -1 +1 @@
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":";;;;;;;;;;;;;;;;;;;;AAAe,SAASA,aAAa,CAACC,MAAM,QAAqC;EAAA,uBAAjCC,MAAM;IAANA,MAAM,4BAAG,CAAC,CAAC;IAAEC,KAAK,QAALA,KAAK;IAAEC,SAAS,QAATA,SAAS;EAC3E,IAAMC,MAAM,GAAGJ,MAAM,CAACI,MAAM,IAAIH,MAAM,CAACI,UAAU;EACjD,uCAAYL,MAAM;IAAEI,MAAM,EAANA,MAAM;IAAEH,MAAM,EAANA,MAAM;IAAEC,KAAK,EAALA,KAAK;IAAEC,SAAS,EAATA;EAAS;AACtD"}
1
+ {"version":3,"file":"get-banner-data.js","names":["getBannerData","banner","_ref","_ref$parent","parent","limit","transform","entity","itemEntity","_objectSpread"],"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":";;;;;;;;;;;;;;;;;;;;AAAe,SAASA,aAAaA,CAACC,MAAM,EAAAC,IAAA,EAAqC;EAAA,IAAAC,WAAA,GAAAD,IAAA,CAAjCE,MAAM;IAANA,MAAM,GAAAD,WAAA,cAAG,CAAC,CAAC,GAAAA,WAAA;IAAEE,KAAK,GAAAH,IAAA,CAALG,KAAK;IAAEC,SAAS,GAAAJ,IAAA,CAATI,SAAS;EAC3E,IAAMC,MAAM,GAAGN,MAAM,CAACM,MAAM,IAAIH,MAAM,CAACI,UAAU;EACjD,OAAAC,aAAA,CAAAA,aAAA,KAAYR,MAAM;IAAEM,MAAM,EAANA,MAAM;IAAEH,MAAM,EAANA,MAAM;IAAEC,KAAK,EAALA,KAAK;IAAEC,SAAS,EAATA;EAAS;AACtD"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-click-wrapper-options.js","names":["getClickWrapperOptions","children","componentProps","id","shouldUseClickWrapper","props","childComponents","wrapperProps","clickEvents","map","child","component","settings","gtmEvents","find","eventTrigger","ON_CLICK","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;AAAwC;AAAA;AAExC,IAAMA,sBAAsB,GAAG,SAAzBA,sBAAsB,GAAsD;EAAA,IAAlDC,QAAQ,uEAAG,CAAC,CAAC;EAAA,IAAEC,cAAc,uEAAG,CAAC,CAAC;EAAA,IAAEC,EAAE,uEAAG,IAAI;EAC3E,IAAIC,qBAAqB,GAAG,KAAK;EAEjC,WAA2DH,QAAQ,IAAI,CAAC,CAAC;IAAA,kBAAjEI,KAAK;IAAA,sCAAuC,CAAC,CAAC;IAAA,mCAArCJ,QAAQ;IAAEK,eAAe,qCAAG,EAAE;EAC/C,IAAI,CAACA,eAAe,IAAI,CAACA,eAAe,CAAC,CAAC,CAAC,EAAE,OAAO;IAAEF,qBAAqB,EAArBA,qBAAqB;IAAEG,YAAY,EAAE,CAAC;EAAE,CAAC;EAE/F,IAAMC,WAAW,GAAGF,eAAe,CAAC,CAAC,CAAC,CACnCG,GAAG,CAAC,UAAAC,KAAK,EAAI;IACZ,YAA6EA,KAAK,IAAI,CAAC,CAAC;MAAA,oBAAhFL,KAAK;MAAA,wCAAyD,CAAC,CAAC;MAAA,qCAAvDM,SAAS;MAAA,4DAAqC,CAAC,CAAC;MAAA,gDAAnCC,QAAQ;MAAA,6DAAkB,CAAC,CAAC;MAAhBC,SAAS,0BAATA,SAAS;IACnD,IAAI,CAACA,SAAS,EAAE,OAAO,IAAI;IAE3B,OAAOA,SAAS,CAACC,IAAI,CAAC;MAAA,IAAGC,YAAY,SAAZA,YAAY;MAAA,OAAOA,YAAY,KAAKC,mBAAQ;IAAA,EAAC;EACxE,CAAC,CAAC,CACDC,MAAM,CAACC,OAAO,CAAC;EAElBd,qBAAqB,GAAG,CAAC,CAACI,WAAW,IAAI,CAAC,CAACA,WAAW,CAACW,MAAM;EAE7D,IAAMZ,YAAY,GAAGH,qBAAqB;IACpCgB,WAAW,EAAEnB;EAAQ,GAAKC,cAAc;IAAEC,EAAE,EAAFA;EAAE,KAC9C,CAAC,CAAC;EAEN,OAAO;IAAEC,qBAAqB,EAArBA,qBAAqB;IAAEG,YAAY,EAAZA;EAAa,CAAC;AAChD,CAAC;AAAC,eAEaP,sBAAsB;AAAA"}
1
+ {"version":3,"file":"get-click-wrapper-options.js","names":["_constants","require","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","getClickWrapperOptions","children","undefined","componentProps","id","shouldUseClickWrapper","_ref","_ref$props","props","_ref$props2","_ref$props2$children","childComponents","wrapperProps","clickEvents","map","child","_ref2","_ref2$props","_ref2$props2","_ref2$props2$componen","component","_ref2$props2$componen2","_ref2$props2$componen3","settings","_ref2$props2$componen4","gtmEvents","find","_ref3","eventTrigger","ON_CLICK","Boolean","gtmChildren","_default","exports"],"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,IAAAA,UAAA,GAAAC,OAAA;AAAwC,SAAAC,QAAAC,MAAA,EAAAC,cAAA,QAAAC,IAAA,GAAAC,MAAA,CAAAD,IAAA,CAAAF,MAAA,OAAAG,MAAA,CAAAC,qBAAA,QAAAC,OAAA,GAAAF,MAAA,CAAAC,qBAAA,CAAAJ,MAAA,GAAAC,cAAA,KAAAI,OAAA,GAAAA,OAAA,CAAAC,MAAA,WAAAC,GAAA,WAAAJ,MAAA,CAAAK,wBAAA,CAAAR,MAAA,EAAAO,GAAA,EAAAE,UAAA,OAAAP,IAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,IAAA,EAAAG,OAAA,YAAAH,IAAA;AAAA,SAAAU,cAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,WAAAF,SAAA,CAAAD,CAAA,IAAAC,SAAA,CAAAD,CAAA,QAAAA,CAAA,OAAAf,OAAA,CAAAI,MAAA,CAAAc,MAAA,OAAAC,OAAA,WAAAC,GAAA,QAAAC,gBAAA,aAAAP,MAAA,EAAAM,GAAA,EAAAF,MAAA,CAAAE,GAAA,SAAAhB,MAAA,CAAAkB,yBAAA,GAAAlB,MAAA,CAAAmB,gBAAA,CAAAT,MAAA,EAAAV,MAAA,CAAAkB,yBAAA,CAAAJ,MAAA,KAAAlB,OAAA,CAAAI,MAAA,CAAA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SAAS;MAAAC,sBAAA,GAAAF,qBAAA,cAAqC,CAAC,CAAC,GAAAA,qBAAA;MAAAG,sBAAA,GAAAD,sBAAA,CAAnCE,QAAQ;MAAAC,sBAAA,GAAAF,sBAAA,cAAkB,CAAC,CAAC,GAAAA,sBAAA;MAAhBG,SAAS,GAAAD,sBAAA,CAATC,SAAS;IACnD,IAAI,CAACA,SAAS,EAAE,OAAO,IAAI;IAE3B,OAAOA,SAAS,CAACC,IAAI,CAAC,UAAAC,KAAA;MAAA,IAAGC,YAAY,GAAAD,KAAA,CAAZC,YAAY;MAAA,OAAOA,YAAY,KAAKC,mBAAQ;IAAA,EAAC;EACxE,CAAC,CAAC,CACD/C,MAAM,CAACgD,OAAO,CAAC;EAElBzB,qBAAqB,GAAG,CAAC,CAACQ,WAAW,IAAI,CAAC,CAACA,WAAW,CAACrB,MAAM;EAE7D,IAAMoB,YAAY,GAAGP,qBAAqB,GAAAjB,aAAA,CAAAA,aAAA;IACpC2C,WAAW,EAAE9B;EAAQ,GAAKE,cAAc;IAAEC,EAAE,EAAFA;EAAE,KAC9C,CAAC,CAAC;EAEN,OAAO;IAAEC,qBAAqB,EAArBA,qBAAqB;IAAEO,YAAY,EAAZA;EAAa,CAAC;AAChD,CAAC;AAAC,IAAAoB,QAAA,GAEahC,sBAAsB;AAAAiC,OAAA,cAAAD,QAAA"}
@@ -1 +1 @@
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,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgB,GAAiE;EAAA,IAA7DC,MAAM,uEAAG,CAAC;EAAA,IAAEC,YAAY,uEAAG,CAAC;EAAA,IAAEC,eAAe,uEAAG,CAAC;EAAA,IAAEC,KAAK;EAChF,IAAID,eAAe,IAAI,CAAC,EAAE,OAAOE,MAAM,CAACJ,MAAM,CAAC;EAC/C,IAAMK,gBAAgB,GAAGD,MAAM,CAACJ,MAAM,CAAC,GAAGI,MAAM,CAACH,YAAY,CAAC,IAAIG,MAAM,CAACF,eAAe,CAAC,GAAG,CAAC,CAAC;EAC9F,OAAO,CAAC,CAACC,KAAK,IAAIE,gBAAgB,IAAIF,KAAK,GAAGH,MAAM,GAAGK,gBAAgB;AACzE,CAAC;AAAC,eAEaN,gBAAgB;AAAA"}
1
+ {"version":3,"file":"get-current-offset.js","names":["getCurrentOffset","offset","arguments","length","undefined","itemsPerPage","paginationIndex","limit","Number","cumulativeOffset","_default","exports"],"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,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAA,EAAiE;EAAA,IAA7DC,MAAM,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;EAAA,IAAEG,YAAY,GAAAH,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;EAAA,IAAEI,eAAe,GAAAJ,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;EAAA,IAAEK,KAAK,GAAAL,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;EAChF,IAAIE,eAAe,IAAI,CAAC,EAAE,OAAOE,MAAM,CAACP,MAAM,CAAC;EAC/C,IAAMQ,gBAAgB,GAAGD,MAAM,CAACP,MAAM,CAAC,GAAGO,MAAM,CAACH,YAAY,CAAC,IAAIG,MAAM,CAACF,eAAe,CAAC,GAAG,CAAC,CAAC;EAC9F,OAAO,CAAC,CAACC,KAAK,IAAIE,gBAAgB,IAAIF,KAAK,GAAGN,MAAM,GAAGQ,gBAAgB;AACzE,CAAC;AAAC,IAAAC,QAAA,GAEaV,gBAAgB;AAAAW,OAAA,cAAAD,QAAA"}
@@ -1 +1 @@
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,IAAMA,UAAU,GAAG;EACjB,CAAC,EAAE,WAAW;EACd,CAAC,EAAE,WAAW;EACd,CAAC,EAAE,aAAa;EAChB,CAAC,EAAE,YAAY;EACf,CAAC,EAAE,YAAY;EACf,CAAC,EAAE;AACL,CAAC;AAED,IAAMC,kBAAkB,GAAG,SAArBA,kBAAkB,CAAGC,GAAG;EAAA,OAAIF,UAAU,CAACE,GAAG,CAAC,IAAIF,UAAU,CAAC,CAAC,CAAC;AAAA;AAAC,eAEpDC,kBAAkB;AAAA"}
1
+ {"version":3,"file":"get-dictionary-match.js","names":["dictionary","getDictionaryMatch","key","_default","exports"],"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,IAAMA,UAAU,GAAG;EACjB,CAAC,EAAE,WAAW;EACd,CAAC,EAAE,WAAW;EACd,CAAC,EAAE,aAAa;EAChB,CAAC,EAAE,YAAY;EACf,CAAC,EAAE,YAAY;EACf,CAAC,EAAE;AACL,CAAC;AAED,IAAMC,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAGC,GAAG;EAAA,OAAIF,UAAU,CAACE,GAAG,CAAC,IAAIF,UAAU,CAAC,CAAC,CAAC;AAAA;AAAC,IAAAG,QAAA,GAEpDF,kBAAkB;AAAAG,OAAA,cAAAD,QAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-display-count-data.js","names":["getDisplayCountData","displayMessage","images","imagesLength","length","shouldDisplayCount","message","IMAGE","IMAGES","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;AAEA,SAASA,mBAAmB,CAACC,cAAc,EAAEC,MAAM,EAAE;EACnD,IAAMC,YAAY,GAAGD,MAAM,IAAIA,MAAM,CAACE,MAAM;EAE5C,IAAMC,kBAAkB,GAAG,CAAC,EAAEJ,cAAc,IAAIE,YAAY,CAAC;EAC7D,IAAMG,OAAO,aAAMH,YAAY,cAAIA,YAAY,KAAK,CAAC,GAAGI,gBAAK,GAAGC,iBAAM,CAAE;EACxE,IAAMC,YAAY,GAAGJ,kBAAkB,GAAGC,OAAO,GAAG,EAAE;EAEtD,OAAO;IAAED,kBAAkB,EAAlBA,kBAAkB;IAAEI,YAAY,EAAZA;EAAa,CAAC;AAC7C;AAAC,eAEcT,mBAAmB;AAAA"}
1
+ {"version":3,"file":"get-display-count-data.js","names":["_constants","require","getDisplayCountData","displayMessage","images","imagesLength","length","shouldDisplayCount","message","concat","IMAGE","IMAGES","countMessage","_default","exports"],"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,IAAAA,UAAA,GAAAC,OAAA;AAEA,SAASC,mBAAmBA,CAACC,cAAc,EAAEC,MAAM,EAAE;EACnD,IAAMC,YAAY,GAAGD,MAAM,IAAIA,MAAM,CAACE,MAAM;EAE5C,IAAMC,kBAAkB,GAAG,CAAC,EAAEJ,cAAc,IAAIE,YAAY,CAAC;EAC7D,IAAMG,OAAO,MAAAC,MAAA,CAAMJ,YAAY,OAAAI,MAAA,CAAIJ,YAAY,KAAK,CAAC,GAAGK,gBAAK,GAAGC,iBAAM,CAAE;EACxE,IAAMC,YAAY,GAAGL,kBAAkB,GAAGC,OAAO,GAAG,EAAE;EAEtD,OAAO;IAAED,kBAAkB,EAAlBA,kBAAkB;IAAEK,YAAY,EAAZA;EAAa,CAAC;AAC7C;AAAC,IAAAC,QAAA,GAEcX,mBAAmB;AAAAY,OAAA,cAAAD,QAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-elasticsearch-operator.js","names":["getElasticsearchOperator","operator","AND","AND_OPERATOR","OR_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;AAEA,IAAMA,wBAAwB,GAAG,SAA3BA,wBAAwB;EAAA,IAAMC,QAAQ,QAARA,QAAQ;EAAA,OAAQA,QAAQ,KAAKC,cAAG,GAAGC,uBAAY,GAAGC,sBAAW;AAAA,CAAC;AAAC,eAEpFJ,wBAAwB;AAAA"}
1
+ {"version":3,"file":"get-elasticsearch-operator.js","names":["_constants","require","getElasticsearchOperator","_ref","operator","AND","AND_OPERATOR","OR_OPERATOR","_default","exports"],"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,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAAC,IAAA;EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;EAAA,OAAQA,QAAQ,KAAKC,cAAG,GAAGC,uBAAY,GAAGC,sBAAW;AAAA,CAAC;AAAC,IAAAC,QAAA,GAEpFN,wBAAwB;AAAAO,OAAA,cAAAD,QAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-entities-with-banner.js","names":["getEntitiesWithBanner","entities","options","hasBanner","injectBannersToEntities"],"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;AAEe,SAASA,qBAAqB,CAACC,QAAQ,EAAEC,OAAO,EAAE;EAC/D,IAAQC,SAAS,GAAKD,OAAO,CAArBC,SAAS;EAEjB,IAAI,CAACA,SAAS,EAAE,OAAOF,QAAQ;EAE/B,OAAO,IAAAG,mCAAuB,EAACH,QAAQ,EAAEC,OAAO,CAAC;AACnD"}
1
+ {"version":3,"file":"get-entities-with-banner.js","names":["_injectBannersToEntities","_interopRequireDefault","require","getEntitiesWithBanner","entities","options","hasBanner","injectBannersToEntities"],"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,IAAAA,wBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEe,SAASC,qBAAqBA,CAACC,QAAQ,EAAEC,OAAO,EAAE;EAC/D,IAAQC,SAAS,GAAKD,OAAO,CAArBC,SAAS;EAEjB,IAAI,CAACA,SAAS,EAAE,OAAOF,QAAQ;EAE/B,OAAO,IAAAG,mCAAuB,EAACH,QAAQ,EAAEC,OAAO,CAAC;AACnD"}
@@ -22,12 +22,14 @@ var getEntityData = function getEntityData(entity, schema) {
22
22
  var interfacesToCheck = interfaces || nestedInterfaces;
23
23
  if (interfacesToCheck && !interfacesToCheck.includes('publish/publishable')) {
24
24
  return {
25
+ entity: entity,
25
26
  docType: entity,
26
27
  entityType: (0, _lodash["default"])((0, _lodash2["default"])(entity))
27
28
  };
28
29
  }
29
30
  }
30
31
  return {
32
+ entity: entity,
31
33
  docType: publishedDocType,
32
34
  entityType: publishedEntityType
33
35
  };
@@ -1 +1 @@
1
- {"version":3,"file":"get-entity-data.js","names":["getEntityData","entity","schema","publishedDocType","publishedEntityType","upperFirst","camelcase","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;AACA;AAEA,IAAMA,aAAa,GAAG,SAAhBA,aAAa,CAAIC,MAAM,EAAEC,MAAM,EAAK;EACxC,IAAMC,gBAAgB,uBAAgBF,MAAM,CAAE;EAC9C,IAAMG,mBAAmB,sBAAe,IAAAC,kBAAU,EAAC,IAAAC,mBAAS,EAACL,MAAM,CAAC,CAAC,CAAE;EAEvE,IAAIC,MAAM,EAAE;IACV,WAAwEA,MAAM,IAAI,CAAC,CAAC;MAA5EK,UAAU,QAAVA,UAAU;MAAA,mBAAGN,MAAM;MAAA,wCAAsC,CAAC,CAAC;MAAvBO,gBAAgB,gBAA5BD,UAAU;IAC1C,IAAME,iBAAiB,GAAGF,UAAU,IAAIC,gBAAgB;IACxD,IAAIC,iBAAiB,IAAI,CAACA,iBAAiB,CAACC,QAAQ,CAAC,qBAAqB,CAAC,EAAE;MAC3E,OAAO;QAAEC,OAAO,EAAEV,MAAM;QAAEW,UAAU,EAAE,IAAAP,kBAAU,EAAC,IAAAC,mBAAS,EAACL,MAAM,CAAC;MAAE,CAAC;IACvE;EACF;EAEA,OAAO;IAAEU,OAAO,EAAER,gBAAgB;IAAES,UAAU,EAAER;EAAoB,CAAC;AACvE,CAAC;AAAC,eAEaJ,aAAa;AAAA"}
1
+ {"version":3,"file":"get-entity-data.js","names":["_lodash","_interopRequireDefault","require","_lodash2","getEntityData","entity","schema","publishedDocType","concat","publishedEntityType","upperFirst","camelcase","_ref","interfaces","_ref$entity","_ref$entity2","nestedInterfaces","interfacesToCheck","includes","docType","entityType","_default","exports"],"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 { entity, docType: entity, entityType: upperFirst(camelcase(entity)) };\n }\n }\n\n return { entity, docType: publishedDocType, entityType: publishedEntityType };\n};\n\nexport default getEntityData;\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAME,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,MAAM,EAAEC,MAAM,EAAK;EACxC,IAAMC,gBAAgB,gBAAAC,MAAA,CAAgBH,MAAM,CAAE;EAC9C,IAAMI,mBAAmB,eAAAD,MAAA,CAAe,IAAAE,kBAAU,EAAC,IAAAC,mBAAS,EAACN,MAAM,CAAC,CAAC,CAAE;EAEvE,IAAIC,MAAM,EAAE;IACV,IAAAM,IAAA,GAAwEN,MAAM,IAAI,CAAC,CAAC;MAA5EO,UAAU,GAAAD,IAAA,CAAVC,UAAU;MAAAC,WAAA,GAAAF,IAAA,CAAGP,MAAM;MAAAU,YAAA,GAAAD,WAAA,cAAsC,CAAC,CAAC,GAAAA,WAAA;MAAvBE,gBAAgB,GAAAD,YAAA,CAA5BF,UAAU;IAC1C,IAAMI,iBAAiB,GAAGJ,UAAU,IAAIG,gBAAgB;IACxD,IAAIC,iBAAiB,IAAI,CAACA,iBAAiB,CAACC,QAAQ,CAAC,qBAAqB,CAAC,EAAE;MAC3E,OAAO;QAAEb,MAAM,EAANA,MAAM;QAAEc,OAAO,EAAEd,MAAM;QAAEe,UAAU,EAAE,IAAAV,kBAAU,EAAC,IAAAC,mBAAS,EAACN,MAAM,CAAC;MAAE,CAAC;IAC/E;EACF;EAEA,OAAO;IAAEA,MAAM,EAANA,MAAM;IAAEc,OAAO,EAAEZ,gBAAgB;IAAEa,UAAU,EAAEX;EAAoB,CAAC;AAC/E,CAAC;AAAC,IAAAY,QAAA,GAEajB,aAAa;AAAAkB,OAAA,cAAAD,QAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-entity-render-props.js","names":["getEntityRenderProps","queryProps","data","dataSchema","isPreview","getEntitySchema","actions","getAllPublished","getAll","actionKey","action","getAction"],"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;AACA;AAEA,SAASA,oBAAoB,CAACC,UAAU,EAAwC;EAAA,IAAtCC,IAAI,uEAAGC,qBAAU;EAAA,IAAEC,SAAS,uEAAG,KAAK;EAC5E,IAAQC,eAAe,GAAKH,IAAI,CAAxBG,eAAe;EAEvB,4BAEIA,eAAe,CADjBC,OAAO;IAAIC,eAAe,yBAAfA,eAAe;IAAEC,MAAM,yBAANA,MAAM;EAEpC,IAAMC,SAAS,GAAGL,SAAS,GAAGI,MAAM,GAAGD,eAAe,IAAIC,MAAM;EAChE,IAAME,MAAM,GAAG,IAAAC,gBAAS,EAACF,SAAS,EAAER,UAAU,CAAC;EAE/C,OAAO;IAAEQ,SAAS,EAATA,SAAS;IAAEC,MAAM,EAANA;EAAO,CAAC;AAC9B;AAAC,eAEcV,oBAAoB;AAAA"}
1
+ {"version":3,"file":"get-entity-render-props.js","names":["_constants","require","_query","getEntityRenderProps","queryProps","data","arguments","length","undefined","dataSchema","isPreview","getEntitySchema","_getEntitySchema$acti","actions","getAllPublished","getAll","actionKey","action","getAction","_default","exports"],"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,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEA,SAASE,oBAAoBA,CAACC,UAAU,EAAwC;EAAA,IAAtCC,IAAI,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGG,qBAAU;EAAA,IAAEC,SAAS,GAAAJ,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,KAAK;EAC5E,IAAQK,eAAe,GAAKN,IAAI,CAAxBM,eAAe;EAEvB,IAAAC,qBAAA,GAEID,eAAe,CADjBE,OAAO;IAAIC,eAAe,GAAAF,qBAAA,CAAfE,eAAe;IAAEC,MAAM,GAAAH,qBAAA,CAANG,MAAM;EAEpC,IAAMC,SAAS,GAAGN,SAAS,GAAGK,MAAM,GAAGD,eAAe,IAAIC,MAAM;EAChE,IAAME,MAAM,GAAG,IAAAC,gBAAS,EAACF,SAAS,EAAEZ,UAAU,CAAC;EAE/C,OAAO;IAAEY,SAAS,EAATA,SAAS;IAAEC,MAAM,EAANA;EAAO,CAAC;AAC9B;AAAC,IAAAE,QAAA,GAEchB,oBAAoB;AAAAiB,OAAA,cAAAD,QAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-extra-az-bits.js","names":["getExtraAzBits","shouldReturnAggs","isAZ","azFilter","AZ_AGGS","ALL_AZ_SORT"],"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;AAEA,IAAMA,cAAc,GAAG,SAAjBA,cAAc,CAAIC,gBAAgB,EAAEC,IAAI,EAAEC,QAAQ,EAAK;EAC3D,IAAI,CAACD,IAAI,IAAKA,IAAI,IAAIC,QAAS,EAAE,OAAO,CAAC,CAAC;EAC1C,IAAIF,gBAAgB,EAAE,OAAOG,kBAAO;EAEpC,OAAOC,sBAAW;AACpB,CAAC;AAAC,eAEaL,cAAc;AAAA"}
1
+ {"version":3,"file":"get-extra-az-bits.js","names":["_constants","require","getExtraAzBits","shouldReturnAggs","isAZ","azFilter","AZ_AGGS","ALL_AZ_SORT","_default","exports"],"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,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAIC,gBAAgB,EAAEC,IAAI,EAAEC,QAAQ,EAAK;EAC3D,IAAI,CAACD,IAAI,IAAKA,IAAI,IAAIC,QAAS,EAAE,OAAO,CAAC,CAAC;EAC1C,IAAIF,gBAAgB,EAAE,OAAOG,kBAAO;EAEpC,OAAOC,sBAAW;AACpB,CAAC;AAAC,IAAAC,QAAA,GAEaN,cAAc;AAAAO,OAAA,cAAAD,QAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-filter-props.js","names":["getFilterLocalKeys","relationName","relations","find","localField","entityIdentifier","getRelationEntity","filterName","filterEntityRelations","foreignKey","getFilterProps","filter","currentEntityRelations","properties","currentEntityProperties","dynamicProperties","currentEntityDynamicProperties","currentEntityId","identifier","filteryEntityId","split","relationProp","hasProperty","relationEntityName","filterNameEntity","propertyEntityName","entityName","isEntityItself","shouldCheckRelationNames","relationForeignKeys","getFilterRelationKeys","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;AAEA,IAAMA,kBAAkB,GAAG,SAArBA,kBAAkB,CAAIC,YAAY,EAAEC,SAAS,EAAK;EACtD,WACEA,SAAS,CAACC,IAAI,CAAC;MAAA,IAAGC,UAAU,SAAVA,UAAU;MAAA,OAAOA,UAAU,KAAKH,YAAY;IAAA,EAAC,IAAI,CAAC,CAAC;IAD/DI,gBAAgB,QAAhBA,gBAAgB;EAExB,OAAOA,gBAAgB;AACzB,CAAC;AAED,IAAMC,iBAAiB,GAAG,SAApBA,iBAAiB,CAAIC,UAAU,EAAEC,qBAAqB,EAAK;EAC/D,YACEA,qBAAqB,CAACL,IAAI,CAAC;MAAA,IAAGM,UAAU,SAAVA,UAAU;MAAA,OAAOA,UAAU,KAAKF,UAAU;IAAA,EAAC,IAAI,CAAC,CAAC;IADzEF,gBAAgB,SAAhBA,gBAAgB;EAExB,OAAOA,gBAAgB;AACzB,CAAC;AAED,IAAMK,cAAc,GAAG,SAAjBA,cAAc,CAClBC,MAAM,EAQH;EAAA,gFAFC,CAAC,CAAC;IAAA,wBAJJT,SAAS;IAAEU,sBAAsB,gCAAG,EAAE;IAAA,yBACtCC,UAAU;IAAEC,uBAAuB,iCAAG,CAAC,CAAC;IAAA,8BACxCC,iBAAiB;IAAEC,8BAA8B,sCAAG,CAAC,CAAC;IAC1CC,eAAe,SAA3BC,UAAU;EAAA,gFAE6D,CAAC,CAAC;IAAA,wBAAzEhB,SAAS;IAAEM,qBAAqB,gCAAG,EAAE;IAAcW,eAAe,SAA3BD,UAAU;EAEnD,oBAAqBP,MAAM,CAACS,KAAK,CAAC,GAAG,CAAC;IAAA;IAA/Bb,UAAU;EACjB,wBAAqCA,UAAU,CAACa,KAAK,CAAC,GAAG,CAAC;IAAA;IAAnDnB,YAAY;IAAEoB,YAAY;EACjC,IAAMC,WAAW,GAAG,CAAC,EACnBR,uBAAuB,CAACP,UAAU,CAAC,IAAIS,8BAA8B,CAACT,UAAU,CAAC,CAClF;EACD,IAAMgB,kBAAkB,GAAGF,YAAY,GACnCrB,kBAAkB,CAACC,YAAY,EAAEW,sBAAsB,CAAC,GACxD,IAAI;EACR,IAAMY,gBAAgB,GAAGlB,iBAAiB,CAACC,UAAU,EAAEC,qBAAqB,CAAC;EAE7E,IAAMiB,kBAAkB,GAAGF,kBAAkB,IAAIC,gBAAgB;EACjE,IAAME,UAAU,GAAGF,gBAAgB,GAAGL,eAAe,GAAGI,kBAAkB;EAC1E,IAAMI,cAAc,GAAGV,eAAe,KAAKQ,kBAAkB;EAC7D,IAAMG,wBAAwB,GAAG,CAACN,WAAW,IAAI,CAACC,kBAAkB;EACpE,IAAMM,mBAAmB,GAAGD,wBAAwB,GAChD,IAAAE,iCAAqB,EAACL,kBAAkB,EAAEb,sBAAsB,EAAEE,uBAAuB,CAAC,GAC1F,EAAE;EACN,IAAMiB,kBAAkB,GAAGH,wBAAwB,IAAI,CAACC,mBAAmB,CAACG,MAAM;EAElF,OAAO;IACLzB,UAAU,EAAVA,UAAU;IACVmB,UAAU,EAAVA,UAAU;IACVzB,YAAY,EAAZA,YAAY;IACZoB,YAAY,EAAZA,YAAY;IACZC,WAAW,EAAXA,WAAW;IACXC,kBAAkB,EAAlBA,kBAAkB;IAClBI,cAAc,EAAdA,cAAc;IACdE,mBAAmB,EAAnBA,mBAAmB;IACnBE,kBAAkB,EAAlBA;EACF,CAAC;AACH,CAAC;AAAC,eAEarB,cAAc;AAAA"}
1
+ {"version":3,"file":"get-filter-props.js","names":["_getFilterRelationKeys","_interopRequireDefault","require","getFilterLocalKeys","relationName","relations","_ref","find","_ref2","localField","entityIdentifier","getRelationEntity","filterName","filterEntityRelations","_ref3","_ref4","foreignKey","getFilterProps","filter","_ref5","arguments","length","undefined","_ref5$relations","currentEntityRelations","_ref5$properties","properties","currentEntityProperties","_ref5$dynamicProperti","dynamicProperties","currentEntityDynamicProperties","currentEntityId","identifier","_ref6","_ref6$relations","filteryEntityId","_filter$split","split","_filter$split2","_slicedToArray2","_filterName$split","_filterName$split2","relationProp","hasProperty","relationEntityName","filterNameEntity","propertyEntityName","entityName","isEntityItself","shouldCheckRelationNames","relationForeignKeys","getFilterRelationKeys","shouldIgnoreFilter","_default","exports"],"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 sh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E;EACN,IAAMyB,kBAAkB,GAAGH,wBAAwB,IAAI,CAACC,mBAAmB,CAAC7B,MAAM;EAElF,OAAO;IACLT,UAAU,EAAVA,UAAU;IACVmC,UAAU,EAAVA,UAAU;IACV3C,YAAY,EAAZA,YAAY;IACZsC,YAAY,EAAZA,YAAY;IACZC,WAAW,EAAXA,WAAW;IACXC,kBAAkB,EAAlBA,kBAAkB;IAClBI,cAAc,EAAdA,cAAc;IACdE,mBAAmB,EAAnBA,mBAAmB;IACnBE,kBAAkB,EAAlBA;EACF,CAAC;AACH,CAAC;AAAC,IAAAC,QAAA,GAEapC,cAAc;AAAAqC,OAAA,cAAAD,QAAA"}
@@ -1 +1 @@
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,IAAMA,qBAAqB,GAAG,SAAxBA,qBAAqB,CAAIC,UAAU,EAAEC,sBAAsB,EAAEC,uBAAuB;EAAA,OACxFD,sBAAsB,CACnBE,MAAM,CACL;IAAA,IAAGC,gBAAgB,QAAhBA,gBAAgB;MAAEC,UAAU,QAAVA,UAAU;IAAA,OAC7BD,gBAAgB,KAAKJ,UAAU,IAAIE,uBAAuB,CAACG,UAAU,CAAC;EAAA,EACzE,CACAC,GAAG,CAAC;IAAA,IAAGD,UAAU,SAAVA,UAAU;IAAA,OAAOA,UAAU;EAAA,EAAC;AAAA;AAAC,eAE1BN,qBAAqB;AAAA"}
1
+ {"version":3,"file":"get-filter-relation-keys.js","names":["getFilterRelationKeys","entityName","currentEntityRelations","currentEntityProperties","filter","_ref","entityIdentifier","foreignKey","map","_ref2","_default","exports"],"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,IAAMA,qBAAqB,GAAG,SAAxBA,qBAAqBA,CAAIC,UAAU,EAAEC,sBAAsB,EAAEC,uBAAuB;EAAA,OACxFD,sBAAsB,CACnBE,MAAM,CACL,UAAAC,IAAA;IAAA,IAAGC,gBAAgB,GAAAD,IAAA,CAAhBC,gBAAgB;MAAEC,UAAU,GAAAF,IAAA,CAAVE,UAAU;IAAA,OAC7BD,gBAAgB,KAAKL,UAAU,IAAIE,uBAAuB,CAACI,UAAU,CAAC;EAAA,EACzE,CACAC,GAAG,CAAC,UAAAC,KAAA;IAAA,IAAGF,UAAU,GAAAE,KAAA,CAAVF,UAAU;IAAA,OAAOA,UAAU;EAAA,EAAC;AAAA;AAAC,IAAAG,QAAA,GAE1BV,qBAAqB;AAAAW,OAAA,cAAAD,QAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-generic-props.js","names":["getGenericProps","props","propsSchema","itemsPerRow","gridModifier","getDictionaryMatch"],"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;AACA;AAAmD;AAAA;AAEnD,SAASA,eAAe,GAAsB;EAAA,IAArBC,KAAK,uEAAGC,sBAAW;EAC1C,IAAQC,WAAW,GAAKF,KAAK,CAArBE,WAAW;EACnB,IAAMC,YAAY,GAAG,IAAAC,8BAAkB,EAACF,WAAW,CAAC;EAEpD;IAASC,YAAY,EAAZA;EAAY,GAAKH,KAAK;AACjC;AAAC,eAEcD,eAAe;AAAA"}
1
+ {"version":3,"file":"get-generic-props.js","names":["_getDictionaryMatch","_interopRequireDefault","require","_constants","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","getGenericProps","props","undefined","propsSchema","itemsPerRow","gridModifier","getDictionaryMatch","_default","exports"],"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,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAAmD,SAAAE,QAAAC,MAAA,EAAAC,cAAA,QAAAC,IAAA,GAAAC,MAAA,CAAAD,IAAA,CAAAF,MAAA,OAAAG,MAAA,CAAAC,qBAAA,QAAAC,OAAA,GAAAF,MAAA,CAAAC,qBAAA,CAAAJ,MAAA,GAAAC,cAAA,KAAAI,OAAA,GAAAA,OAAA,CAAAC,MAAA,WAAAC,GAAA,WAAAJ,MAAA,CAAAK,wBAAA,CAAAR,MAAA,EAAAO,GAAA,EAAAE,UAAA,OAAAP,IAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,IAAA,EAAAG,OAAA,YAAAH,IAAA;AAAA,SAAAU,cAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,WAAAF,SAAA,CAAAD,CAAA,IAAAC,SAAA,CAAAD,CAAA,QAAAA,CAAA,OAAAf,OAAA,CAAAI,MAAA,CAAAc,MAAA,OAAAC,OAAA,WAAAC,GAAA,QAAAC,gBAAA,aAAAP,MAAA,EAAAM,GAAA,EAAAF,MAAA,CAAAE,GAAA,SAAAhB,MAAA,CAAAkB,yBAAA,GAAAlB,MAAA,CAAAmB,gBAAA,CAAAT,MAAA,EAAAV,MAAA,CAAAkB,yBAAA,CAAAJ,MAAA,KAAAlB,OAAA,CAAAI,MAAA,CAAAc,MAAA,GAAAC,OAAA,WAAAC,GAAA,IAAAhB,MAAA,CAAAoB,cAAA,CAAAV,MAAA,EAAAM,GAAA,EAAAhB,MAAA,CAAAK,wBAAA,CAAAS,MAAA,EAAAE,GAAA,iBAAAN,MAAA;AAEnD,SAASW,eAAeA,CAAA,EAAsB;EAAA,IAArBC,KAAK,GAAAV,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAW,SAAA,GAAAX,SAAA,MAAGY,sBAAW;EAC1C,IAAQC,WAAW,GAAKH,KAAK,CAArBG,WAAW;EACnB,IAAMC,YAAY,GAAG,IAAAC,8BAAkB,EAACF,WAAW,CAAC;EAEpD,OAAAhB,aAAA;IAASiB,YAAY,EAAZA;EAAY,GAAKJ,KAAK;AACjC;AAAC,IAAAM,QAAA,GAEcP,eAAe;AAAAQ,OAAA,cAAAD,QAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-generic-render-variables.js","names":["buildSortValues","sortFilters","relations","stringProps","length","sort","sortValues","map","propsToDisplay","sortFieldName","getSortbyFieldName","toLowerCase","filter","Boolean","join","getCorrectSort","filterProps","isTextSearchApplied","sortby","sortProperties","getGenericRenderVariables","rawQuery","isTextSearchFilterApplied","useRandomSort","limit","DEFAULT_LIMIT","offset","limitToUse","Number","offsetToUse","DEFAULT_OFFSET","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;AACA;AAA6D;AAAA;AAE7D,IAAMA,eAAe,GAAG,SAAlBA,eAAe,CAAIC,WAAW,EAAEC,SAAS,EAAEC,WAAW,EAAK;EAC/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jCC,aAAa,uEAAG,KAAK;EAErB,yBAA0CP,WAAW,CAA7CQ,KAAK;IAALA,KAAK,mCAAGC,wBAAa;IAAEC,MAAM,GAAKV,WAAW,CAAtBU,MAAM;EACrC,IAAMC,UAAU,GAAGC,MAAM,CAACJ,KAAK,IAAIC,wBAAa,CAAC;EACjD,IAAMI,WAAW,GAAGD,MAAM,CAACF,MAAM,IAAII,yBAAc,CAAC;EAEpD,IAAIP,aAAa,EAAE;IACjB,IAAMQ,mBAAmB,GAAGC,IAAI,CAACC,SAAS,CAAC;MACzCC,KAAK,EAAE;QACLC,cAAc,EAAE;UACdD,KAAK,EAAEb,QAAQ,IAAIA,QAAQ,CAACa,KAAK,GAAGb,QAAQ,CAACa,KAAK,GAAGb,QAAQ;UAC7De,YAAY,EAAE,CAAC,CAAC;UAChBC,UAAU,EAAE;QACd;MACF;IACF,CAAC,CAAC;IAEF,OAAO;MACLb,KAAK,EAAEG,UAAU;MACjBD,MAAM,EAAEG,WAAW;MACnBE,mBAAmB,EAAnBA;IACF,CAAC;EACH;EAEA,IAAM1B,IAAI,GAAGU,cAAc,CAACb,SAAS,EAAEc,WAAW,EAAEb,WAAW,EAAEmB,yBAAyB,CAAC;EAE3F;IACEE,KAAK,EAAEG,UAAU;IACjBD,MAAM,EAAEG;EAAW,GAChBxB,IAAI;IACP0B,mBAAmB,EAAEC,IAAI,CAACC,SAAS,CAACZ,QAAQ;EAAC;AAEjD,CAAC;AAAC,eAEaD,yBAAyB;AAAA"}
1
+ {"version":3,"file":"get-generic-render-variables.js","names":["_getSortByFieldName","_interopRequireDefault","require","_constants","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","buildSortValues","sortFilters","relations","stringProps","sort","sortValues","map","_ref","propsToDisplay","sortFieldName","getSortbyFieldName","concat","toLowerCase","Boolean","join","getCorrectSort","filterProps","isTextSearchApplied","sortby","_filterProps$sortProp","sortProperties","_toConsumableArray2","getGenericRenderVariables","undefined","rawQuery","isTextSearchFilterApplied","useRandomSort","_filterProps$limit","limit","DEFAULT_LIMIT","offset","limitToUse","Number","offsetToUse","DEFAULT_OFFSET","rawQueryStringified","JSON","stringify","query","function_score","random_score","boost_mode","_default","exports"],"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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B,EAAnBA;IACF,CAAC;EACH;EAEA,IAAM/B,IAAI,GAAGW,cAAc,CAACb,SAAS,EAAEc,WAAW,EAAEb,WAAW,EAAEsB,yBAAyB,CAAC;EAE3F,OAAArC,aAAA,CAAAA,aAAA;IACEwC,KAAK,EAAEG,UAAU;IACjBD,MAAM,EAAEG;EAAW,GAChB7B,IAAI;IACP+B,mBAAmB,EAAEC,IAAI,CAACC,SAAS,CAACb,QAAQ;EAAC;AAEjD,CAAC;AAAC,IAAAkB,QAAA,GAEapB,yBAAyB;AAAAqB,OAAA,cAAAD,QAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-image-ids.js","names":["getIdsFromArray","relationImageData","relationProp","imageId","length","map","image","Object","keys","filter","Boolean","getImageIds","imageRelation","relationData","imageIdArray","entityData","imageData","split","relationName","Array","isArray","isPlainObject"],"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;AAEA,IAAMA,eAAe,GAAG,SAAlBA,eAAe,CAAIC,iBAAiB,EAAEC,YAAY,EAAEC,OAAO,EAAK;EACpE,IAAI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lodash","_interopRequireDefault","require","getIdsFromArray","relationImageData","relationProp","imageId","length","map","image","Object","keys","filter","Boolean","getImageIds","imageRelation","relationData","imageIdArray","entityData","_imageRelation","_slicedToArray2","imageData","_imageData$split","split","_imageData$split2","relationName","Array","isArray","isPlainObject","_default","exports"],"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,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAMC,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,iBAAiB,EAAEC,YAAY,EAAEC,OAAO,EAAK;EACpE,IAAI,CAACF,iBAAiB,CAACG,MAAM,EAAE,OAAO,CAACD,OAAO,CAAC;EAC/C,OAAOF,iBAAiB,CACrBI,GAAG,CAAC,UAAAC,KAAK,EAAI;IACZ,IAAI,CAACC,MAAM,CAACC,IAAI,CAACF,KAAK,CAAC,CAACF,MAAM,EAAE,OAAO,EAAE;IACzC,OAAOE,KAAK,CAACJ,YAAY,CAAC;EAC5B,CAAC,CAAC,CACDO,MAAM,CAACC,OAAO,CAAC;AACpB,CAA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