@blaze-cms/react-page-builder 0.139.0-project-admin-customisations.0 → 0.139.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (766) hide show
  1. package/CHANGELOG.md +69 -3
  2. package/README.md +9 -0
  3. package/lib/BannerContext/helpers/set-initial-banner-counters.js +1 -2
  4. package/lib/BannerContext/helpers/set-initial-banner-counters.js.map +1 -1
  5. package/lib/BannerContext/index.js +4 -6
  6. package/lib/BannerContext/index.js.map +1 -1
  7. package/lib/HOC/recreateOnNavigation.js +1 -2
  8. package/lib/HOC/recreateOnNavigation.js.map +1 -1
  9. package/lib/HOC/withInfiniteScroll.js +3 -4
  10. package/lib/HOC/withInfiniteScroll.js.map +1 -1
  11. package/lib/HOC/withTitle.js +3 -4
  12. package/lib/HOC/withTitle.js.map +1 -1
  13. package/lib/PBContext/index.js +1 -2
  14. package/lib/PBContext/index.js.map +1 -1
  15. package/lib/application/query/index.js +15 -30
  16. package/lib/application/query/index.js.map +1 -1
  17. package/lib/components/BackToTop/BackToTop.js +3 -4
  18. package/lib/components/BackToTop/BackToTop.js.map +1 -1
  19. package/lib/components/BackToTop/index.js +1 -2
  20. package/lib/components/BackToTop/index.js.map +1 -1
  21. package/lib/components/Banner/AdSlotRender.js +3 -4
  22. package/lib/components/Banner/AdSlotRender.js.map +1 -1
  23. package/lib/components/Banner/Banner.js +3 -4
  24. package/lib/components/Banner/Banner.js.map +1 -1
  25. package/lib/components/Banner/BannerRender.js +1 -2
  26. package/lib/components/Banner/BannerRender.js.map +1 -1
  27. package/lib/components/Banner/helpers.js +10 -20
  28. package/lib/components/Banner/helpers.js.map +1 -1
  29. package/lib/components/Banner/index.js +3 -4
  30. package/lib/components/Banner/index.js.map +1 -1
  31. package/lib/components/BlazeLink.js +3 -4
  32. package/lib/components/BlazeLink.js.map +1 -1
  33. package/lib/components/Breadcrumb/Breadcrumb.js +3 -4
  34. package/lib/components/Breadcrumb/Breadcrumb.js.map +1 -1
  35. package/lib/components/Breadcrumb/index.js +1 -2
  36. package/lib/components/Breadcrumb/index.js.map +1 -1
  37. package/lib/components/Button.js +3 -4
  38. package/lib/components/Button.js.map +1 -1
  39. package/lib/components/Card/Card.js +8 -7
  40. package/lib/components/Card/Card.js.map +1 -1
  41. package/lib/components/Card/CardsContainer.js +4 -8
  42. package/lib/components/Card/CardsContainer.js.map +1 -1
  43. package/lib/components/Card/CardsFactory.js +1 -2
  44. package/lib/components/Card/CardsFactory.js.map +1 -1
  45. package/lib/components/Card/CardsRender.js +4 -6
  46. package/lib/components/Card/CardsRender.js.map +1 -1
  47. package/lib/components/Card/constants.js +2 -4
  48. package/lib/components/Card/constants.js.map +1 -1
  49. package/lib/components/Card/helpers/filter-query-setup.js +1 -2
  50. package/lib/components/Card/helpers/filter-query-setup.js.map +1 -1
  51. package/lib/components/Card/helpers/filters-setup.js +1 -2
  52. package/lib/components/Card/helpers/filters-setup.js.map +1 -1
  53. package/lib/components/Card/helpers/get-dynamic-grid-classes.js +1 -2
  54. package/lib/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -1
  55. package/lib/components/Card/helpers/get-published-listing-url.js +1 -2
  56. package/lib/components/Card/helpers/get-published-listing-url.js.map +1 -1
  57. package/lib/components/Card/helpers/get-updated-items-to-display.js +1 -2
  58. package/lib/components/Card/helpers/get-updated-items-to-display.js.map +1 -1
  59. package/lib/components/Card/helpers/get-updated-sort-properties.js +1 -2
  60. package/lib/components/Card/helpers/get-updated-sort-properties.js.map +1 -1
  61. package/lib/components/Card/helpers/should-return.js +1 -2
  62. package/lib/components/Card/helpers/should-return.js.map +1 -1
  63. package/lib/components/Card/helpers/should-skip-single-query.js +1 -2
  64. package/lib/components/Card/helpers/should-skip-single-query.js.map +1 -1
  65. package/lib/components/Card/helpers/use-dynamic-size-key.js +1 -2
  66. package/lib/components/Card/helpers/use-dynamic-size-key.js.map +1 -1
  67. package/lib/components/Card/index.js +1 -2
  68. package/lib/components/Card/index.js.map +1 -1
  69. package/lib/components/Carousel/Carousel.js +27 -19
  70. package/lib/components/Carousel/Carousel.js.map +1 -1
  71. package/lib/components/Carousel/CarouselImage/CarouselImage.js +1 -2
  72. package/lib/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
  73. package/lib/components/Carousel/CarouselImage/index.js +1 -2
  74. package/lib/components/Carousel/CarouselImage/index.js.map +1 -1
  75. package/lib/components/Carousel/CarouselRender/CarouselRender.js +35 -62
  76. package/lib/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
  77. package/lib/components/Carousel/CarouselRender/index.js +1 -2
  78. package/lib/components/Carousel/CarouselRender/index.js.map +1 -1
  79. package/lib/components/Carousel/hooks/useCarouselNavigation.js +56 -0
  80. package/lib/components/Carousel/hooks/useCarouselNavigation.js.map +1 -0
  81. package/lib/components/Carousel/index.js +1 -2
  82. package/lib/components/Carousel/index.js.map +1 -1
  83. package/lib/components/CarouselWrapper/CarouselWrapper.js +1 -2
  84. package/lib/components/CarouselWrapper/CarouselWrapper.js.map +1 -1
  85. package/lib/components/CarouselWrapper/DefaultCarousel.js +3 -4
  86. package/lib/components/CarouselWrapper/DefaultCarousel.js.map +1 -1
  87. package/lib/components/CarouselWrapper/SmoothScrollCarousel.js +1 -2
  88. package/lib/components/CarouselWrapper/SmoothScrollCarousel.js.map +1 -1
  89. package/lib/components/CarouselWrapper/index.js +1 -2
  90. package/lib/components/CarouselWrapper/index.js.map +1 -1
  91. package/lib/components/ClickWrapper.js +3 -4
  92. package/lib/components/ClickWrapper.js.map +1 -1
  93. package/lib/components/Code/Code.js +3 -4
  94. package/lib/components/Code/Code.js.map +1 -1
  95. package/lib/components/Code/ScriptTag.js +3 -4
  96. package/lib/components/Code/ScriptTag.js.map +1 -1
  97. package/lib/components/Code/helpers/wrap-script-tags.js +1 -2
  98. package/lib/components/Code/helpers/wrap-script-tags.js.map +1 -1
  99. package/lib/components/Code/index.js +1 -2
  100. package/lib/components/Code/index.js.map +1 -1
  101. package/lib/components/ContentGroup/ContentGroup.js +1 -2
  102. package/lib/components/ContentGroup/ContentGroup.js.map +1 -1
  103. package/lib/components/ContentGroup/ContentGroupTabs.js +3 -4
  104. package/lib/components/ContentGroup/ContentGroupTabs.js.map +1 -1
  105. package/lib/components/ContentGroup/constants.js +5 -10
  106. package/lib/components/ContentGroup/constants.js.map +1 -1
  107. package/lib/components/ContentGroup/helpers/get-active-tab.js +1 -2
  108. package/lib/components/ContentGroup/helpers/get-active-tab.js.map +1 -1
  109. package/lib/components/ContentGroup/helpers/get-sections-data.js +1 -2
  110. package/lib/components/ContentGroup/helpers/get-sections-data.js.map +1 -1
  111. package/lib/components/ContentGroup/index.js +1 -2
  112. package/lib/components/ContentGroup/index.js.map +1 -1
  113. package/lib/components/ContentGroupSection/ContentGroupSection.js +1 -2
  114. package/lib/components/ContentGroupSection/ContentGroupSection.js.map +1 -1
  115. package/lib/components/ContentGroupSection/index.js +1 -2
  116. package/lib/components/ContentGroupSection/index.js.map +1 -1
  117. package/lib/components/DataSummary/DataSummaryFactory.js +3 -4
  118. package/lib/components/DataSummary/DataSummaryFactory.js.map +1 -1
  119. package/lib/components/DataSummary/DataSummaryRender.js +1 -2
  120. package/lib/components/DataSummary/DataSummaryRender.js.map +1 -1
  121. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js +1 -2
  122. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -1
  123. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js +3 -4
  124. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
  125. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js +1 -2
  126. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js.map +1 -1
  127. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js +1 -2
  128. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map +1 -1
  129. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js +3 -4
  130. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
  131. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js +1 -2
  132. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js.map +1 -1
  133. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js +1 -2
  134. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.map +1 -1
  135. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js +3 -4
  136. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
  137. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/index.js +1 -2
  138. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/index.js.map +1 -1
  139. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js +1 -2
  140. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.map +1 -1
  141. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js +3 -4
  142. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
  143. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/index.js +1 -2
  144. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/index.js.map +1 -1
  145. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js +1 -2
  146. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.map +1 -1
  147. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js +3 -4
  148. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
  149. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/index.js +1 -2
  150. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/index.js.map +1 -1
  151. package/lib/components/DataSummary/DataSummaryTypes/index.js +3 -4
  152. package/lib/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
  153. package/lib/components/DataSummary/helpers/build-loop-props-content.js +1 -2
  154. package/lib/components/DataSummary/helpers/build-loop-props-content.js.map +1 -1
  155. package/lib/components/DataSummary/helpers/build-props-to-display-with-content.js +1 -2
  156. package/lib/components/DataSummary/helpers/build-props-to-display-with-content.js.map +1 -1
  157. package/lib/components/DataSummary/helpers/get-data-summary-query.js +1 -2
  158. package/lib/components/DataSummary/helpers/get-data-summary-query.js.map +1 -1
  159. package/lib/components/DataSummary/helpers/get-link-based-on-value.js +1 -2
  160. package/lib/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -1
  161. package/lib/components/DataSummary/helpers/get-link-props.js +1 -2
  162. package/lib/components/DataSummary/helpers/get-link-props.js.map +1 -1
  163. package/lib/components/DataSummary/helpers/get-link-to-published-content.js +1 -2
  164. package/lib/components/DataSummary/helpers/get-link-to-published-content.js.map +1 -1
  165. package/lib/components/DataSummary/helpers/get-loop-props-limit.js +1 -2
  166. package/lib/components/DataSummary/helpers/get-loop-props-limit.js.map +1 -1
  167. package/lib/components/DataSummary/helpers/get-prop-value.js +1 -2
  168. package/lib/components/DataSummary/helpers/get-prop-value.js.map +1 -1
  169. package/lib/components/DataSummary/helpers/get-value-from-array.js +3 -5
  170. package/lib/components/DataSummary/helpers/get-value-from-array.js.map +1 -1
  171. package/lib/components/DataSummary/helpers/parse-boolean-values.js +1 -2
  172. package/lib/components/DataSummary/helpers/parse-boolean-values.js.map +1 -1
  173. package/lib/components/DataSummary/helpers/strip-summary-props-content.js +1 -2
  174. package/lib/components/DataSummary/helpers/strip-summary-props-content.js.map +1 -1
  175. package/lib/components/DataSummary/index.js +1 -2
  176. package/lib/components/DataSummary/index.js.map +1 -1
  177. package/lib/components/EmailConfirm/EmailConfirm.js +3 -4
  178. package/lib/components/EmailConfirm/EmailConfirm.js.map +1 -1
  179. package/lib/components/EmailConfirm/index.js +1 -2
  180. package/lib/components/EmailConfirm/index.js.map +1 -1
  181. package/lib/components/EmailConfirm/mutation.js +1 -2
  182. package/lib/components/EmailConfirm/mutation.js.map +1 -1
  183. package/lib/components/Iframe/Iframe.js +1 -2
  184. package/lib/components/Iframe/Iframe.js.map +1 -1
  185. package/lib/components/Iframe/constants.js +2 -4
  186. package/lib/components/Iframe/constants.js.map +1 -1
  187. package/lib/components/Iframe/index.js +1 -2
  188. package/lib/components/Iframe/index.js.map +1 -1
  189. package/lib/components/Image/GlobalLightbox/GlobalLightbox.js +3 -4
  190. package/lib/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
  191. package/lib/components/Image/GlobalLightbox/NavButton.js +1 -2
  192. package/lib/components/Image/GlobalLightbox/NavButton.js.map +1 -1
  193. package/lib/components/Image/GlobalLightbox/index.js +3 -4
  194. package/lib/components/Image/GlobalLightbox/index.js.map +1 -1
  195. package/lib/components/Image/Image.js +3 -4
  196. package/lib/components/Image/Image.js.map +1 -1
  197. package/lib/components/Image/ImageDetails.js +1 -2
  198. package/lib/components/Image/ImageDetails.js.map +1 -1
  199. package/lib/components/Image/ImageFactory.js +23 -12
  200. package/lib/components/Image/ImageFactory.js.map +1 -1
  201. package/lib/components/Image/ImageRender.js +9 -4
  202. package/lib/components/Image/ImageRender.js.map +1 -1
  203. package/lib/components/Image/Lightbox/Lightbox.js +3 -4
  204. package/lib/components/Image/Lightbox/Lightbox.js.map +1 -1
  205. package/lib/components/Image/Lightbox/index.js +1 -2
  206. package/lib/components/Image/Lightbox/index.js.map +1 -1
  207. package/lib/components/Image/index.js +1 -2
  208. package/lib/components/Image/index.js.map +1 -1
  209. package/lib/components/ItemList/ItemListButton/ItemListButton.js +3 -4
  210. package/lib/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
  211. package/lib/components/ItemList/ItemListButton/index.js +1 -2
  212. package/lib/components/ItemList/ItemListButton/index.js.map +1 -1
  213. package/lib/components/ItemList/ItemListCounter/ItemListCounter.js +1 -2
  214. package/lib/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
  215. package/lib/components/ItemList/ItemListCounter/index.js +1 -2
  216. package/lib/components/ItemList/ItemListCounter/index.js.map +1 -1
  217. package/lib/components/ItemList/ItemListNew/ItemListNew.js +1 -2
  218. package/lib/components/ItemList/ItemListNew/ItemListNew.js.map +1 -1
  219. package/lib/components/ItemList/ItemListNew/index.js +1 -2
  220. package/lib/components/ItemList/ItemListNew/index.js.map +1 -1
  221. package/lib/components/ItemList/constants.js +5 -10
  222. package/lib/components/ItemList/constants.js.map +1 -1
  223. package/lib/components/ItemList/helpers/get-item-list-data.js +1 -2
  224. package/lib/components/ItemList/helpers/get-item-list-data.js.map +1 -1
  225. package/lib/components/ItemList/helpers/get-item-list-id.js +1 -2
  226. package/lib/components/ItemList/helpers/get-item-list-id.js.map +1 -1
  227. package/lib/components/ItemList/helpers/get-item-list-ids.js +1 -2
  228. package/lib/components/ItemList/helpers/get-item-list-ids.js.map +1 -1
  229. package/lib/components/ItemList/helpers/set-item-list-id.js +1 -2
  230. package/lib/components/ItemList/helpers/set-item-list-id.js.map +1 -1
  231. package/lib/components/ItemList/helpers/set-param-and-redirect.js +1 -2
  232. package/lib/components/ItemList/helpers/set-param-and-redirect.js.map +1 -1
  233. package/lib/components/ItemList/hooks/use-item-list-id.js +1 -2
  234. package/lib/components/ItemList/hooks/use-item-list-id.js.map +1 -1
  235. package/lib/components/Layout/Layout.js +8 -5
  236. package/lib/components/Layout/Layout.js.map +1 -1
  237. package/lib/components/Layout/LayoutFactory.js +3 -4
  238. package/lib/components/Layout/LayoutFactory.js.map +1 -1
  239. package/lib/components/Layout/LayoutWithStickyTimer.js +3 -4
  240. package/lib/components/Layout/LayoutWithStickyTimer.js.map +1 -1
  241. package/lib/components/Layout/constants.js +3 -6
  242. package/lib/components/Layout/constants.js.map +1 -1
  243. package/lib/components/Layout/helpers/check-if-row-has-columns.js +1 -2
  244. package/lib/components/Layout/helpers/check-if-row-has-columns.js.map +1 -1
  245. package/lib/components/Layout/helpers/get-styles-to-update.js +1 -2
  246. package/lib/components/Layout/helpers/get-styles-to-update.js.map +1 -1
  247. package/lib/components/Layout/index.js +1 -2
  248. package/lib/components/Layout/index.js.map +1 -1
  249. package/lib/components/LazyImage/LazyImage.js +1 -2
  250. package/lib/components/LazyImage/LazyImage.js.map +1 -1
  251. package/lib/components/LazyImage/index.js +3 -4
  252. package/lib/components/LazyImage/index.js.map +1 -1
  253. package/lib/components/List/ListBuilder.js +1 -2
  254. package/lib/components/List/ListBuilder.js.map +1 -1
  255. package/lib/components/List/ListFactory.js +3 -4
  256. package/lib/components/List/ListFactory.js.map +1 -1
  257. package/lib/components/List/ListRender.js +1 -2
  258. package/lib/components/List/ListRender.js.map +1 -1
  259. package/lib/components/List/components/Cards/CardRenderWithInfiniteScroll.js +1 -2
  260. package/lib/components/List/components/Cards/CardRenderWithInfiniteScroll.js.map +1 -1
  261. package/lib/components/List/components/Cards/CardsRender.js +3 -4
  262. package/lib/components/List/components/Cards/CardsRender.js.map +1 -1
  263. package/lib/components/List/components/Cards/CardsRenderItem.js +1 -2
  264. package/lib/components/List/components/Cards/CardsRenderItem.js.map +1 -1
  265. package/lib/components/List/components/Cards/CardsRenderWrapper.js +3 -4
  266. package/lib/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
  267. package/lib/components/List/components/Cards/index.js +1 -2
  268. package/lib/components/List/components/Cards/index.js.map +1 -1
  269. package/lib/components/List/components/Full/FullRender.js +10 -7
  270. package/lib/components/List/components/Full/FullRender.js.map +1 -1
  271. package/lib/components/List/components/Full/FullRenderItem.js +3 -4
  272. package/lib/components/List/components/Full/FullRenderItem.js.map +1 -1
  273. package/lib/components/List/components/Full/FullRenderWithInfiniteScroll.js +1 -2
  274. package/lib/components/List/components/Full/FullRenderWithInfiniteScroll.js.map +1 -1
  275. package/lib/components/List/components/Full/index.js +1 -2
  276. package/lib/components/List/components/Full/index.js.map +1 -1
  277. package/lib/components/List/components/Header/ListHeader.js +1 -2
  278. package/lib/components/List/components/Header/ListHeader.js.map +1 -1
  279. package/lib/components/List/components/Header/index.js +1 -2
  280. package/lib/components/List/components/Header/index.js.map +1 -1
  281. package/lib/components/List/components/Pagination/Classic.js +1 -2
  282. package/lib/components/List/components/Pagination/Classic.js.map +1 -1
  283. package/lib/components/List/components/Pagination/ListPagination.js +3 -4
  284. package/lib/components/List/components/Pagination/ListPagination.js.map +1 -1
  285. package/lib/components/List/components/Pagination/LoadMore.js +1 -2
  286. package/lib/components/List/components/Pagination/LoadMore.js.map +1 -1
  287. package/lib/components/List/components/Pagination/index.js +1 -2
  288. package/lib/components/List/components/Pagination/index.js.map +1 -1
  289. package/lib/components/List/components/helpers/check-if-should-render-banner.js +2 -4
  290. package/lib/components/List/components/helpers/check-if-should-render-banner.js.map +1 -1
  291. package/lib/components/List/components/helpers/check-if-should-render-gtm.js +1 -2
  292. package/lib/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -1
  293. package/lib/components/List/constants.js +7 -14
  294. package/lib/components/List/constants.js.map +1 -1
  295. package/lib/components/List/helpers/build-az-aggregations.js +1 -2
  296. package/lib/components/List/helpers/build-az-aggregations.js.map +1 -1
  297. package/lib/components/List/helpers/build-az-url.js +2 -4
  298. package/lib/components/List/helpers/build-az-url.js.map +1 -1
  299. package/lib/components/List/helpers/build-pagination-items.js +1 -2
  300. package/lib/components/List/helpers/build-pagination-items.js.map +1 -1
  301. package/lib/components/List/helpers/build-pagination-url.js +1 -2
  302. package/lib/components/List/helpers/build-pagination-url.js.map +1 -1
  303. package/lib/components/List/helpers/get-az-query-filter.js +1 -2
  304. package/lib/components/List/helpers/get-az-query-filter.js.map +1 -1
  305. package/lib/components/List/helpers/get-items-per-page-to-use.js +1 -2
  306. package/lib/components/List/helpers/get-items-per-page-to-use.js.map +1 -1
  307. package/lib/components/List/helpers/get-list-component.js +1 -2
  308. package/lib/components/List/helpers/get-list-component.js.map +1 -1
  309. package/lib/components/List/helpers/get-list-query.js +1 -2
  310. package/lib/components/List/helpers/get-list-query.js.map +1 -1
  311. package/lib/components/List/helpers/get-list-specific-search-filter.js +1 -2
  312. package/lib/components/List/helpers/get-list-specific-search-filter.js.map +1 -1
  313. package/lib/components/List/helpers/get-sort-props.js +1 -2
  314. package/lib/components/List/helpers/get-sort-props.js.map +1 -1
  315. package/lib/components/List/helpers/has-required-item-list-details.js +1 -2
  316. package/lib/components/List/helpers/has-required-item-list-details.js.map +1 -1
  317. package/lib/components/List/helpers/sort-aggs.js +1 -2
  318. package/lib/components/List/helpers/sort-aggs.js.map +1 -1
  319. package/lib/components/List/helpers/strip-query-key.js +1 -2
  320. package/lib/components/List/helpers/strip-query-key.js.map +1 -1
  321. package/lib/components/List/index.js +1 -2
  322. package/lib/components/List/index.js.map +1 -1
  323. package/lib/components/Menu/Menu.js +4 -6
  324. package/lib/components/Menu/Menu.js.map +1 -1
  325. package/lib/components/Menu/MenuContext.js +1 -2
  326. package/lib/components/Menu/MenuContext.js.map +1 -1
  327. package/lib/components/Menu/index.js +1 -2
  328. package/lib/components/Menu/index.js.map +1 -1
  329. package/lib/components/MenuItem/MenuItem.js +3 -4
  330. package/lib/components/MenuItem/MenuItem.js.map +1 -1
  331. package/lib/components/MenuItem/index.js +1 -2
  332. package/lib/components/MenuItem/index.js.map +1 -1
  333. package/lib/components/Modal/Modal.js +1 -2
  334. package/lib/components/Modal/Modal.js.map +1 -1
  335. package/lib/components/Modal/index.js +1 -2
  336. package/lib/components/Modal/index.js.map +1 -1
  337. package/lib/components/SearchContent/SearchContent.js +58 -56
  338. package/lib/components/SearchContent/SearchContent.js.map +1 -1
  339. package/lib/components/SearchContent/SearchContentItems.js +1 -2
  340. package/lib/components/SearchContent/SearchContentItems.js.map +1 -1
  341. package/lib/components/SearchContent/SearchContentResults.js +17 -19
  342. package/lib/components/SearchContent/SearchContentResults.js.map +1 -1
  343. package/lib/components/SearchContent/SearchContentToggleIcon.js +9 -18
  344. package/lib/components/SearchContent/SearchContentToggleIcon.js.map +1 -1
  345. package/lib/components/SearchContent/constants.js +10 -0
  346. package/lib/components/SearchContent/constants.js.map +1 -0
  347. package/lib/components/SearchContent/index.js +1 -2
  348. package/lib/components/SearchContent/index.js.map +1 -1
  349. package/lib/components/SearchFilter/SearchFilter/CloseMobileForm.js +1 -2
  350. package/lib/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
  351. package/lib/components/SearchFilter/SearchFilter/FiltersList.js +3 -4
  352. package/lib/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
  353. package/lib/components/SearchFilter/SearchFilter/MobileFormToolbar.js +1 -2
  354. package/lib/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -1
  355. package/lib/components/SearchFilter/SearchFilter/ResetDesktopForm.js +1 -2
  356. package/lib/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
  357. package/lib/components/SearchFilter/SearchFilter/SearchFilter.js +3 -4
  358. package/lib/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
  359. package/lib/components/SearchFilter/SearchFilter/index.js +1 -2
  360. package/lib/components/SearchFilter/SearchFilter/index.js.map +1 -1
  361. package/lib/components/SearchFilter/SearchFilterContainer.js +3 -5
  362. package/lib/components/SearchFilter/SearchFilterContainer.js.map +1 -1
  363. package/lib/components/SearchFilter/components/Checkbox.js +3 -4
  364. package/lib/components/SearchFilter/components/Checkbox.js.map +1 -1
  365. package/lib/components/SearchFilter/components/Range.js +1 -2
  366. package/lib/components/SearchFilter/components/Range.js.map +1 -1
  367. package/lib/components/SearchFilter/components/Select.js +1 -2
  368. package/lib/components/SearchFilter/components/Select.js.map +1 -1
  369. package/lib/components/SearchFilter/components/TextSearch.js +1 -2
  370. package/lib/components/SearchFilter/components/TextSearch.js.map +1 -1
  371. package/lib/components/SearchFilter/constants.js +24 -48
  372. package/lib/components/SearchFilter/constants.js.map +1 -1
  373. package/lib/components/SearchFilter/helpers/build-filters-query.js +1 -2
  374. package/lib/components/SearchFilter/helpers/build-filters-query.js.map +1 -1
  375. package/lib/components/SearchFilter/helpers/build-new-url.js +1 -2
  376. package/lib/components/SearchFilter/helpers/build-new-url.js.map +1 -1
  377. package/lib/components/SearchFilter/helpers/build-raw-query-stringified.js +1 -2
  378. package/lib/components/SearchFilter/helpers/build-raw-query-stringified.js.map +1 -1
  379. package/lib/components/SearchFilter/helpers/build-url-query.js +1 -2
  380. package/lib/components/SearchFilter/helpers/build-url-query.js.map +1 -1
  381. package/lib/components/SearchFilter/helpers/calculate-min-max.js +1 -2
  382. package/lib/components/SearchFilter/helpers/calculate-min-max.js.map +1 -1
  383. package/lib/components/SearchFilter/helpers/calculate-step.js +1 -2
  384. package/lib/components/SearchFilter/helpers/calculate-step.js.map +1 -1
  385. package/lib/components/SearchFilter/helpers/check-if-range-updated.js +1 -2
  386. package/lib/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -1
  387. package/lib/components/SearchFilter/helpers/decode-encode.js +2 -4
  388. package/lib/components/SearchFilter/helpers/decode-encode.js.map +1 -1
  389. package/lib/components/SearchFilter/helpers/get-display-value.js +1 -2
  390. package/lib/components/SearchFilter/helpers/get-display-value.js.map +1 -1
  391. package/lib/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js +1 -2
  392. package/lib/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js.map +1 -1
  393. package/lib/components/SearchFilter/helpers/get-filter-value-from-query.js +1 -2
  394. package/lib/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
  395. package/lib/components/SearchFilter/helpers/get-filter-values.js +1 -2
  396. package/lib/components/SearchFilter/helpers/get-filter-values.js.map +1 -1
  397. package/lib/components/SearchFilter/helpers/get-initial-filter-values.js +1 -2
  398. package/lib/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -1
  399. package/lib/components/SearchFilter/helpers/get-intersected-prop.js +1 -2
  400. package/lib/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -1
  401. package/lib/components/SearchFilter/helpers/get-range-value.js +1 -2
  402. package/lib/components/SearchFilter/helpers/get-range-value.js.map +1 -1
  403. package/lib/components/SearchFilter/helpers/get-responsive-filter-classnames.js +1 -2
  404. package/lib/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
  405. package/lib/components/SearchFilter/helpers/get-select-options.js +1 -2
  406. package/lib/components/SearchFilter/helpers/get-select-options.js.map +1 -1
  407. package/lib/components/SearchFilter/helpers/get-updated-filter-by.js +1 -2
  408. package/lib/components/SearchFilter/helpers/get-updated-filter-by.js.map +1 -1
  409. package/lib/components/SearchFilter/helpers/is-device-desktop.js +1 -2
  410. package/lib/components/SearchFilter/helpers/is-device-desktop.js.map +1 -1
  411. package/lib/components/SearchFilter/helpers/parse-filter-value.js +1 -2
  412. package/lib/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
  413. package/lib/components/SearchFilter/index.js +1 -2
  414. package/lib/components/SearchFilter/index.js.map +1 -1
  415. package/lib/components/SearchFilter/searchFilterReducer.js +1 -2
  416. package/lib/components/SearchFilter/searchFilterReducer.js.map +1 -1
  417. package/lib/components/SearchFilterSort/SearchFilterSort.js +1 -2
  418. package/lib/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
  419. package/lib/components/SearchFilterSort/constants.js +4 -8
  420. package/lib/components/SearchFilterSort/constants.js.map +1 -1
  421. package/lib/components/SearchFilterSort/helpers/handle-sort-update.js +1 -2
  422. package/lib/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
  423. package/lib/components/SearchFilterSort/helpers/update-sort.js +2 -4
  424. package/lib/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
  425. package/lib/components/SearchFilterSort/index.js +1 -2
  426. package/lib/components/SearchFilterSort/index.js.map +1 -1
  427. package/lib/components/SocialFollow/SFItem.js +1 -2
  428. package/lib/components/SocialFollow/SFItem.js.map +1 -1
  429. package/lib/components/SocialFollow/SocialFollow.js +1 -2
  430. package/lib/components/SocialFollow/SocialFollow.js.map +1 -1
  431. package/lib/components/SocialFollow/SocialFollowRender.js +1 -2
  432. package/lib/components/SocialFollow/SocialFollowRender.js.map +1 -1
  433. package/lib/components/SocialFollow/index.js +1 -2
  434. package/lib/components/SocialFollow/index.js.map +1 -1
  435. package/lib/components/SocialFollow/sf.config.js +4 -8
  436. package/lib/components/SocialFollow/sf.config.js.map +1 -1
  437. package/lib/components/SubMenu/SubMenu.js +1 -2
  438. package/lib/components/SubMenu/SubMenu.js.map +1 -1
  439. package/lib/components/SubMenu/index.js +1 -2
  440. package/lib/components/SubMenu/index.js.map +1 -1
  441. package/lib/components/TextBlock/TextBlockRender.js +1 -2
  442. package/lib/components/TextBlock/TextBlockRender.js.map +1 -1
  443. package/lib/components/TextBlock/index.js +1 -2
  444. package/lib/components/TextBlock/index.js.map +1 -1
  445. package/lib/components/Video/Video.js +1 -2
  446. package/lib/components/Video/Video.js.map +1 -1
  447. package/lib/components/Video/VideoModal.js +3 -4
  448. package/lib/components/Video/VideoModal.js.map +1 -1
  449. package/lib/components/Video/VideoRender.js +1 -2
  450. package/lib/components/Video/VideoRender.js.map +1 -1
  451. package/lib/components/Video/index.js +1 -2
  452. package/lib/components/Video/index.js.map +1 -1
  453. package/lib/components/Video/providers/Default.js +1 -2
  454. package/lib/components/Video/providers/Default.js.map +1 -1
  455. package/lib/components/Video/providers/JWPlayer/JWPlayerController.js +1 -2
  456. package/lib/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
  457. package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js +1 -2
  458. package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
  459. package/lib/components/Video/providers/Vimeo/VimeoProvider.js +3 -4
  460. package/lib/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
  461. package/lib/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js +1 -2
  462. package/lib/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js.map +1 -1
  463. package/lib/components/Video/providers/YouTube/YouTubeProvider.js +1 -2
  464. package/lib/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
  465. package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js +3 -4
  466. package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
  467. package/lib/components/Video/providers/YouTube/helpers/index.js +3 -6
  468. package/lib/components/Video/providers/YouTube/helpers/index.js.map +1 -1
  469. package/lib/components/Video/providers/get-provider.js +3 -4
  470. package/lib/components/Video/providers/get-provider.js.map +1 -1
  471. package/lib/components/Video/providers/index.js +1 -2
  472. package/lib/components/Video/providers/index.js.map +1 -1
  473. package/lib/components/Wrapper.js +1 -2
  474. package/lib/components/Wrapper.js.map +1 -1
  475. package/lib/components/index.js +3 -4
  476. package/lib/components/index.js.map +1 -1
  477. package/lib/constants/componentsDefaultValues.js +1 -2
  478. package/lib/constants/componentsDefaultValues.js.map +1 -1
  479. package/lib/constants/index.js +107 -212
  480. package/lib/constants/index.js.map +1 -1
  481. package/lib/helpers/append-images.js +1 -2
  482. package/lib/helpers/append-images.js.map +1 -1
  483. package/lib/helpers/build-az-filter.js +1 -2
  484. package/lib/helpers/build-az-filter.js.map +1 -1
  485. package/lib/helpers/build-checkbox-filters.js +1 -2
  486. package/lib/helpers/build-checkbox-filters.js.map +1 -1
  487. package/lib/helpers/build-image-properties.js +1 -2
  488. package/lib/helpers/build-image-properties.js.map +1 -1
  489. package/lib/helpers/build-inherited-filters.js +1 -2
  490. package/lib/helpers/build-inherited-filters.js.map +1 -1
  491. package/lib/helpers/build-link-extra-props.js +1 -2
  492. package/lib/helpers/build-link-extra-props.js.map +1 -1
  493. package/lib/helpers/build-props-query.js +1 -2
  494. package/lib/helpers/build-props-query.js.map +1 -1
  495. package/lib/helpers/build-query-fields.js +1 -2
  496. package/lib/helpers/build-query-fields.js.map +1 -1
  497. package/lib/helpers/build-query-key.js +1 -2
  498. package/lib/helpers/build-query-key.js.map +1 -1
  499. package/lib/helpers/build-raw-query-base.js +2 -4
  500. package/lib/helpers/build-raw-query-base.js.map +1 -1
  501. package/lib/helpers/build-raw-query.js +1 -2
  502. package/lib/helpers/build-raw-query.js.map +1 -1
  503. package/lib/helpers/build-search-values-checkbox-select.js +1 -2
  504. package/lib/helpers/build-search-values-checkbox-select.js.map +1 -1
  505. package/lib/helpers/build-search-values-text.js +1 -2
  506. package/lib/helpers/build-search-values-text.js.map +1 -1
  507. package/lib/helpers/build-set-filters.js +1 -2
  508. package/lib/helpers/build-set-filters.js.map +1 -1
  509. package/lib/helpers/build-sort-values.js +1 -2
  510. package/lib/helpers/build-sort-values.js.map +1 -1
  511. package/lib/helpers/check-for-error.js +1 -2
  512. package/lib/helpers/check-for-error.js.map +1 -1
  513. package/lib/helpers/check-props-to-use.js +1 -2
  514. package/lib/helpers/check-props-to-use.js.map +1 -1
  515. package/lib/helpers/entities/constants.js +3 -6
  516. package/lib/helpers/entities/constants.js.map +1 -1
  517. package/lib/helpers/get-checkbox-filters.js +1 -2
  518. package/lib/helpers/get-checkbox-filters.js.map +1 -1
  519. package/lib/helpers/get-click-wrapper-options.js +1 -2
  520. package/lib/helpers/get-click-wrapper-options.js.map +1 -1
  521. package/lib/helpers/get-current-offset.js +1 -2
  522. package/lib/helpers/get-current-offset.js.map +1 -1
  523. package/lib/helpers/get-dictionary-match.js +1 -2
  524. package/lib/helpers/get-dictionary-match.js.map +1 -1
  525. package/lib/helpers/get-display-count-data.js +1 -2
  526. package/lib/helpers/get-display-count-data.js.map +1 -1
  527. package/lib/helpers/get-elasticsearch-operator.js +1 -2
  528. package/lib/helpers/get-elasticsearch-operator.js.map +1 -1
  529. package/lib/helpers/get-entity-data.js +1 -2
  530. package/lib/helpers/get-entity-data.js.map +1 -1
  531. package/lib/helpers/get-entity-render-props.js +1 -2
  532. package/lib/helpers/get-entity-render-props.js.map +1 -1
  533. package/lib/helpers/get-extra-az-bits.js +1 -2
  534. package/lib/helpers/get-extra-az-bits.js.map +1 -1
  535. package/lib/helpers/get-filter-props.js +1 -2
  536. package/lib/helpers/get-filter-props.js.map +1 -1
  537. package/lib/helpers/get-filter-relation-keys.js +1 -2
  538. package/lib/helpers/get-filter-relation-keys.js.map +1 -1
  539. package/lib/helpers/get-generic-props.js +1 -2
  540. package/lib/helpers/get-generic-props.js.map +1 -1
  541. package/lib/helpers/get-generic-render-variables.js +1 -2
  542. package/lib/helpers/get-generic-render-variables.js.map +1 -1
  543. package/lib/helpers/get-image-ids.js +1 -2
  544. package/lib/helpers/get-image-ids.js.map +1 -1
  545. package/lib/helpers/get-inherited-filters.js +1 -2
  546. package/lib/helpers/get-inherited-filters.js.map +1 -1
  547. package/lib/helpers/get-items-to-display-ids.js +1 -2
  548. package/lib/helpers/get-items-to-display-ids.js.map +1 -1
  549. package/lib/helpers/get-modifiers.js +1 -2
  550. package/lib/helpers/get-modifiers.js.map +1 -1
  551. package/lib/helpers/get-pagination-index.js +1 -2
  552. package/lib/helpers/get-pagination-index.js.map +1 -1
  553. package/lib/helpers/get-parsed-prop-values.js +1 -2
  554. package/lib/helpers/get-parsed-prop-values.js.map +1 -1
  555. package/lib/helpers/get-parsed-summary-value.js +1 -2
  556. package/lib/helpers/get-parsed-summary-value.js.map +1 -1
  557. package/lib/helpers/get-prop-values.js +1 -2
  558. package/lib/helpers/get-prop-values.js.map +1 -1
  559. package/lib/helpers/get-query-filters.js +1 -2
  560. package/lib/helpers/get-query-filters.js.map +1 -1
  561. package/lib/helpers/get-query-props.js +1 -2
  562. package/lib/helpers/get-query-props.js.map +1 -1
  563. package/lib/helpers/get-required-schemas.js +1 -2
  564. package/lib/helpers/get-required-schemas.js.map +1 -1
  565. package/lib/helpers/get-sanitized-prop-values.js +1 -2
  566. package/lib/helpers/get-sanitized-prop-values.js.map +1 -1
  567. package/lib/helpers/get-search-filter-type.js +1 -2
  568. package/lib/helpers/get-search-filter-type.js.map +1 -1
  569. package/lib/helpers/get-sort-by-field-name.js +1 -2
  570. package/lib/helpers/get-sort-by-field-name.js.map +1 -1
  571. package/lib/helpers/get-unpublished-entity-name.js +1 -2
  572. package/lib/helpers/get-unpublished-entity-name.js.map +1 -1
  573. package/lib/helpers/get-updated-filter-by.js +1 -2
  574. package/lib/helpers/get-updated-filter-by.js.map +1 -1
  575. package/lib/helpers/get-wrapped-value-with-link.js +1 -2
  576. package/lib/helpers/get-wrapped-value-with-link.js.map +1 -1
  577. package/lib/helpers/has-children.js +1 -2
  578. package/lib/helpers/has-children.js.map +1 -1
  579. package/lib/helpers/inject-multiple-banners/get-banners-for-entities/index.js +1 -2
  580. package/lib/helpers/inject-multiple-banners/get-banners-for-entities/index.js.map +1 -1
  581. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/index.js +1 -2
  582. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/index.js.map +1 -1
  583. package/lib/helpers/inject-multiple-banners/index.js +1 -2
  584. package/lib/helpers/inject-multiple-banners/index.js.map +1 -1
  585. package/lib/helpers/is-browser.js +1 -2
  586. package/lib/helpers/is-browser.js.map +1 -1
  587. package/lib/helpers/is-filter-entitys-id.js +1 -2
  588. package/lib/helpers/is-filter-entitys-id.js.map +1 -1
  589. package/lib/helpers/is-object.js +1 -2
  590. package/lib/helpers/is-object.js.map +1 -1
  591. package/lib/helpers/is-using-relation-image.js +1 -2
  592. package/lib/helpers/is-using-relation-image.js.map +1 -1
  593. package/lib/helpers/parse-TextBlock.js +3 -4
  594. package/lib/helpers/parse-TextBlock.js.map +1 -1
  595. package/lib/helpers/parse-props-to-display.js +3 -4
  596. package/lib/helpers/parse-props-to-display.js.map +1 -1
  597. package/lib/helpers/process-data-summary-value.js +4 -6
  598. package/lib/helpers/process-data-summary-value.js.map +1 -1
  599. package/lib/helpers/remove-extra-items.js +1 -2
  600. package/lib/helpers/remove-extra-items.js.map +1 -1
  601. package/lib/helpers/remove-unwanted-characters.js +1 -2
  602. package/lib/helpers/remove-unwanted-characters.js.map +1 -1
  603. package/lib/helpers/render-children.js +1 -2
  604. package/lib/helpers/render-children.js.map +1 -1
  605. package/lib/helpers/should-render-waypoint.js +1 -2
  606. package/lib/helpers/should-render-waypoint.js.map +1 -1
  607. package/lib/helpers/should-show-property.js +1 -2
  608. package/lib/helpers/should-show-property.js.map +1 -1
  609. package/lib/helpers/sort-response-data.js +1 -2
  610. package/lib/helpers/sort-response-data.js.map +1 -1
  611. package/lib/helpers/split-children.js +1 -2
  612. package/lib/helpers/split-children.js.map +1 -1
  613. package/lib/helpers/update-childrens-parent.js +1 -2
  614. package/lib/helpers/update-childrens-parent.js.map +1 -1
  615. package/lib/hooks/helpers/RenderComponent.js +10 -4
  616. package/lib/hooks/helpers/RenderComponent.js.map +1 -1
  617. package/lib/hooks/helpers/StoreImages.js +1 -2
  618. package/lib/hooks/helpers/StoreImages.js.map +1 -1
  619. package/lib/hooks/helpers/append-gtm-classname.js +1 -2
  620. package/lib/hooks/helpers/append-gtm-classname.js.map +1 -1
  621. package/lib/hooks/helpers/buildPBComponents.js +1 -2
  622. package/lib/hooks/helpers/buildPBComponents.js.map +1 -1
  623. package/lib/hooks/helpers/check-banner-insertion-set.js +1 -2
  624. package/lib/hooks/helpers/check-banner-insertion-set.js.map +1 -1
  625. package/lib/hooks/helpers/check-collisions.js +2 -4
  626. package/lib/hooks/helpers/check-collisions.js.map +1 -1
  627. package/lib/hooks/helpers/constants.js +4 -8
  628. package/lib/hooks/helpers/constants.js.map +1 -1
  629. package/lib/hooks/helpers/get-banner-index.js +1 -2
  630. package/lib/hooks/helpers/get-banner-index.js.map +1 -1
  631. package/lib/hooks/helpers/get-banners-by-type.js +1 -2
  632. package/lib/hooks/helpers/get-banners-by-type.js.map +1 -1
  633. package/lib/hooks/helpers/get-lightbox-images.js +1 -2
  634. package/lib/hooks/helpers/get-lightbox-images.js.map +1 -1
  635. package/lib/hooks/helpers/getVariant.js +18 -0
  636. package/lib/hooks/helpers/getVariant.js.map +1 -0
  637. package/lib/hooks/helpers/index.js +1 -2
  638. package/lib/hooks/helpers/index.js.map +1 -1
  639. package/lib/hooks/helpers/inject-element-banners.js +1 -2
  640. package/lib/hooks/helpers/inject-element-banners.js.map +1 -1
  641. package/lib/hooks/helpers/inject-textblock-banners.js +1 -2
  642. package/lib/hooks/helpers/inject-textblock-banners.js.map +1 -1
  643. package/lib/hooks/helpers/insert-banners.js +1 -2
  644. package/lib/hooks/helpers/insert-banners.js.map +1 -1
  645. package/lib/hooks/helpers/update-targetings.js +1 -2
  646. package/lib/hooks/helpers/update-targetings.js.map +1 -1
  647. package/lib/hooks/use-banner-insertion.js +1 -2
  648. package/lib/hooks/use-banner-insertion.js.map +1 -1
  649. package/lib/hooks/use-check-mobile-screen.js +1 -2
  650. package/lib/hooks/use-check-mobile-screen.js.map +1 -1
  651. package/lib/hooks/use-get-entity-schema.js +1 -2
  652. package/lib/hooks/use-get-entity-schema.js.map +1 -1
  653. package/lib/hooks/use-get-entity-schemas-as-obj.js +1 -2
  654. package/lib/hooks/use-get-entity-schemas-as-obj.js.map +1 -1
  655. package/lib/hooks/use-get-image-id-from-relation.js +3 -4
  656. package/lib/hooks/use-get-image-id-from-relation.js.map +1 -1
  657. package/lib/hooks/use-get-images.js +5 -5
  658. package/lib/hooks/use-get-images.js.map +1 -1
  659. package/lib/hooks/use-get-single-entity-schema.js +1 -2
  660. package/lib/hooks/use-get-single-entity-schema.js.map +1 -1
  661. package/lib/hooks/use-page-builder.js +1 -2
  662. package/lib/hooks/use-page-builder.js.map +1 -1
  663. package/lib/index.js +13 -0
  664. package/lib/index.js.map +1 -1
  665. package/lib/utils/component-map.js +4 -5
  666. package/lib/utils/component-map.js.map +1 -1
  667. package/lib/utils/get-image-data.js +1 -2
  668. package/lib/utils/get-image-data.js.map +1 -1
  669. package/lib/utils/get-props-to-display-modifiers.js +1 -2
  670. package/lib/utils/get-props-to-display-modifiers.js.map +1 -1
  671. package/lib/utils/index.js +7 -0
  672. package/lib/utils/index.js.map +1 -1
  673. package/lib/utils/variant-handler.js +39 -0
  674. package/lib/utils/variant-handler.js.map +1 -0
  675. package/lib/variants/index.js +9 -0
  676. package/lib/variants/index.js.map +1 -0
  677. package/lib-es/components/Card/Card.js +5 -3
  678. package/lib-es/components/Card/Card.js.map +1 -1
  679. package/lib-es/components/Card/CardsContainer.js +2 -5
  680. package/lib-es/components/Card/CardsContainer.js.map +1 -1
  681. package/lib-es/components/Card/CardsRender.js +1 -2
  682. package/lib-es/components/Card/CardsRender.js.map +1 -1
  683. package/lib-es/components/Carousel/Carousel.js +27 -17
  684. package/lib-es/components/Carousel/Carousel.js.map +1 -1
  685. package/lib-es/components/Carousel/CarouselRender/CarouselRender.js +33 -53
  686. package/lib-es/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
  687. package/lib-es/components/Carousel/hooks/useCarouselNavigation.js +49 -0
  688. package/lib-es/components/Carousel/hooks/useCarouselNavigation.js.map +1 -0
  689. package/lib-es/components/Image/ImageFactory.js +18 -8
  690. package/lib-es/components/Image/ImageFactory.js.map +1 -1
  691. package/lib-es/components/Image/ImageRender.js +9 -3
  692. package/lib-es/components/Image/ImageRender.js.map +1 -1
  693. package/lib-es/components/Layout/Layout.js +8 -4
  694. package/lib-es/components/Layout/Layout.js.map +1 -1
  695. package/lib-es/components/List/components/Full/FullRender.js +9 -5
  696. package/lib-es/components/List/components/Full/FullRender.js.map +1 -1
  697. package/lib-es/components/SearchContent/SearchContent.js +53 -49
  698. package/lib-es/components/SearchContent/SearchContent.js.map +1 -1
  699. package/lib-es/components/SearchContent/SearchContentResults.js +16 -17
  700. package/lib-es/components/SearchContent/SearchContentResults.js.map +1 -1
  701. package/lib-es/components/SearchContent/SearchContentToggleIcon.js +13 -23
  702. package/lib-es/components/SearchContent/SearchContentToggleIcon.js.map +1 -1
  703. package/lib-es/components/SearchContent/constants.js +4 -0
  704. package/lib-es/components/SearchContent/constants.js.map +1 -0
  705. package/lib-es/components/SearchFilter/SearchFilterContainer.js +0 -1
  706. package/lib-es/components/SearchFilter/SearchFilterContainer.js.map +1 -1
  707. package/lib-es/helpers/process-data-summary-value.js +2 -2
  708. package/lib-es/hooks/helpers/RenderComponent.js +5 -2
  709. package/lib-es/hooks/helpers/RenderComponent.js.map +1 -1
  710. package/lib-es/hooks/helpers/getVariant.js +14 -0
  711. package/lib-es/hooks/helpers/getVariant.js.map +1 -0
  712. package/lib-es/hooks/use-get-image-id-from-relation.js +2 -2
  713. package/lib-es/hooks/use-get-image-id-from-relation.js.map +1 -1
  714. package/lib-es/hooks/use-get-images.js +4 -4
  715. package/lib-es/hooks/use-get-images.js.map +1 -1
  716. package/lib-es/index.js +2 -1
  717. package/lib-es/index.js.map +1 -1
  718. package/lib-es/utils/component-map.js +4 -4
  719. package/lib-es/utils/component-map.js.map +1 -1
  720. package/lib-es/utils/index.js +2 -1
  721. package/lib-es/utils/index.js.map +1 -1
  722. package/lib-es/utils/variant-handler.js +26 -0
  723. package/lib-es/utils/variant-handler.js.map +1 -0
  724. package/lib-es/variants/index.js +2 -0
  725. package/lib-es/variants/index.js.map +1 -0
  726. package/package.json +10 -10
  727. package/src/components/Card/Card.js +1 -2
  728. package/src/components/Card/CardsContainer.js +0 -3
  729. package/src/components/Card/CardsRender.js +0 -1
  730. package/src/components/Carousel/Carousel.js +28 -12
  731. package/src/components/Carousel/CarouselRender/CarouselRender.js +36 -56
  732. package/src/components/Carousel/hooks/useCarouselNavigation.js +50 -0
  733. package/src/components/Image/ImageFactory.js +20 -5
  734. package/src/components/Image/ImageRender.js +14 -8
  735. package/src/components/Layout/Layout.js +8 -5
  736. package/src/components/List/components/Full/FullRender.js +11 -3
  737. package/src/components/SearchContent/SearchContent.js +66 -52
  738. package/src/components/SearchContent/SearchContentResults.js +17 -17
  739. package/src/components/SearchContent/SearchContentToggleIcon.js +10 -23
  740. package/src/components/SearchContent/constants.js +6 -0
  741. package/src/hooks/helpers/RenderComponent.js +4 -0
  742. package/src/hooks/helpers/getVariant.js +11 -0
  743. package/src/hooks/use-get-image-id-from-relation.js +13 -2
  744. package/src/hooks/use-get-images.js +4 -4
  745. package/src/index.js +2 -1
  746. package/src/utils/component-map.js +4 -5
  747. package/src/utils/index.js +9 -1
  748. package/src/utils/variant-handler.js +33 -0
  749. package/src/variants/index.js +1 -0
  750. package/tests/unit/src/components/Carousel/Carousel.test.js +23 -0
  751. package/tests/unit/src/components/Carousel/CarouselRender/CarouselRender.test.js +14 -22
  752. package/tests/unit/src/components/Carousel/__snapshots__/Carousel.test.js.snap +10 -0
  753. package/tests/unit/src/components/Image/ImageFactory.test.js +20 -3
  754. package/tests/unit/src/components/Image/ImageRender.test.js +12 -0
  755. package/tests/unit/src/components/Image/__snapshots__/ImageFactory.test.js.snap +24 -0
  756. package/tests/unit/src/components/Image/__snapshots__/ImageRender.test.js.snap +9 -0
  757. package/tests/unit/src/components/Image/mocks.js +49 -1
  758. package/tests/unit/src/components/Layout/Layout.test.js +11 -0
  759. package/tests/unit/src/components/List/components/Full/FullRender.test.js +14 -1
  760. package/tests/unit/src/components/List/components/Full/__snapshots__/FullRender.test.js.snap +24 -6
  761. package/tests/unit/src/components/List/components/mocks.js +9 -3
  762. package/tests/unit/src/components/Menu/__snapshots__/Menu.test.js.snap +1 -1
  763. package/tests/unit/src/components/PlaceholderIcon/__snapshots__/index.test.js.snap +4 -6
  764. package/tests/unit/src/components/SearchContent/SearchContent.test.js +32 -7
  765. package/tests/unit/src/components/SearchContent/__snapshots__/SearchContent.test.js.snap +66 -2
  766. package/tests/unit/src/utils/variant-handler.test.js +41 -0
@@ -47,6 +47,5 @@ var buildSortValues = function buildSortValues(sortFilters, relations, stringPro
47
47
  sort: sortValues
48
48
  };
49
49
  };
50
- var _default = buildSortValues;
51
- exports["default"] = _default;
50
+ var _default = exports["default"] = buildSortValues;
52
51
  //# sourceMappingURL=build-sort-values.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"build-sort-values.js","names":["_getSortByFieldName","_interopRequireDefault","require","buildAzSort","sortFilters","relations","stringProps","sortValues","forEach","_ref","sort","propsToDisplay","sortFieldName","getSortbyFieldName","toLowerCase","buildSortValues","useSortObject","length","map","_ref2","isScore","concat","filter","item","index","arr","indexOf","join","_default","exports"],"sources":["../../src/helpers/build-sort-values.js"],"sourcesContent":["import getSortbyFieldName from './get-sort-by-field-name';\n\nconst buildAzSort = (sortFilters, relations, stringProps) => {\n const sortValues = {};\n sortFilters.forEach(({ sort, propsToDisplay }) => {\n if (!sort) return;\n const sortFieldName = getSortbyFieldName(relations, propsToDisplay, stringProps);\n if (sortFieldName) sortValues[sortFieldName] = sort.toLowerCase();\n });\n\n return sortValues;\n};\n\nconst buildSortValues = (sortFilters, relations, stringProps, useSortObject) => {\n if (!sortFilters || !sortFilters.length) return useSortObject ? null : { sort: [] };\n if (useSortObject) return buildAzSort(sortFilters, relations, stringProps);\n\n const sortValues = sortFilters\n .map(({ sort, propsToDisplay, isScore }) => {\n if (isScore) return '_score';\n if (!sort) return null;\n\n const sortFieldName = getSortbyFieldName(relations, propsToDisplay, stringProps);\n return sortFieldName ? `${sortFieldName}:${sort.toLowerCase()}` : null;\n })\n .filter((item, index, arr) => (!item ? false : arr.indexOf(item) === index))\n .join(',');\n\n return { sort: sortValues };\n};\n\nexport default buildSortValues;\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAMC,WAAW,GAAG,SAAdA,WAAWA,CAAIC,WAAW,EAAEC,SAAS,EAAEC,WAAW,EAAK;EAC3D,IAAMC,UAAU,GAAG,CAAC,CAAC;EACrBH,WAAW,CAACI,OAAO,CAAC,UAAAC,IAAA,EAA8B;IAAA,IAA3BC,IAAI,GAAAD,IAAA,CAAJC,IAAI;MAAEC,cAAc,GAAAF,IAAA,CAAdE,cAAc;IACzC,IAAI,CAACD,IAAI,EAAE;IACX,IAAME,aAAa,GAAG,IAAAC,8BAAkB,EAACR,SAAS,EAAEM,cAAc,EAAEL,WAAW,CAAC;IAChF,IAAIM,aAAa,EAAEL,UAAU,CAACK,aA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,"file":"build-sort-values.js","names":["_getSortByFieldName","_interopRequireDefault","require","buildAzSort","sortFilters","relations","stringProps","sortValues","forEach","_ref","sort","propsToDisplay","sortFieldName","getSortbyFieldName","toLowerCase","buildSortValues","useSortObject","length","map","_ref2","isScore","concat","filter","item","index","arr","indexOf","join","_default","exports"],"sources":["../../src/helpers/build-sort-values.js"],"sourcesContent":["import getSortbyFieldName from './get-sort-by-field-name';\n\nconst buildAzSort = (sortFilters, relations, stringProps) => {\n const sortValues = {};\n sortFilters.forEach(({ sort, propsToDisplay }) => {\n if (!sort) return;\n const sortFieldName = getSortbyFieldName(relations, propsToDisplay, stringProps);\n if (sortFieldName) sortValues[sortFieldName] = sort.toLowerCase();\n });\n\n return sortValues;\n};\n\nconst buildSortValues = (sortFilters, relations, stringProps, useSortObject) => {\n if (!sortFilters || !sortFilters.length) return useSortObject ? null : { sort: [] };\n if (useSortObject) return buildAzSort(sortFilters, relations, stringProps);\n\n const sortValues = sortFilters\n .map(({ sort, propsToDisplay, isScore }) => {\n if (isScore) return '_score';\n if (!sort) return null;\n\n const sortFieldName = getSortbyFieldName(relations, propsToDisplay, stringProps);\n return sortFieldName ? `${sortFieldName}:${sort.toLowerCase()}` : null;\n })\n .filter((item, index, arr) => (!item ? false : arr.indexOf(item) === index))\n .join(',');\n\n return { sort: sortValues };\n};\n\nexport default buildSortValues;\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAMC,WAAW,GAAG,SAAdA,WAAWA,CAAIC,WAAW,EAAEC,SAAS,EAAEC,WAAW,EAAK;EAC3D,IAAMC,UAAU,GAAG,CAAC,CAAC;EACrBH,WAAW,CAACI,OAAO,CAAC,UAAAC,IAAA,EAA8B;IAAA,IAA3BC,IAAI,GAAAD,IAAA,CAAJC,IAAI;MAAEC,cAAc,GAAAF,IAAA,CAAdE,cAAc;IACzC,IAAI,CAACD,IAAI,EAAE;IACX,IAAME,aAAa,GA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EAAEH;EAAW,CAAC;AAC7B,CAAC;AAAC,IAAAqB,QAAA,GAAAC,OAAA,cAEad,eAAe"}
@@ -19,6 +19,5 @@ var checkForError = function checkForError() {
19
19
  errMsg: errMsg
20
20
  };
21
21
  };
22
- var _default = checkForError;
23
- exports["default"] = _default;
22
+ var _default = exports["default"] = checkForError;
24
23
  //# sourceMappingURL=check-for-error.js.map
@@ -1 +1 @@
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
+ {"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,GAAAC,OAAA,cAEaZ,aAAa"}
@@ -17,6 +17,5 @@ var checkPropsToUse = function checkPropsToUse() {
17
17
  return propertiesToDisplay;
18
18
  })) : propsToDisplay;
19
19
  };
20
- var _default = checkPropsToUse;
21
- exports["default"] = _default;
20
+ var _default = exports["default"] = checkPropsToUse;
22
21
  //# sourceMappingURL=check-props-to-use.js.map
@@ -1 +1 @@
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
+ {"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,GAAAC,OAAA,cAENX,eAAe"}
@@ -5,17 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.propsSchema = exports.defaultProps = exports.dataSchema = void 0;
8
- var dataSchema = {
8
+ var dataSchema = exports.dataSchema = {
9
9
  getEntitySchema: {
10
10
  actions: {},
11
11
  interfaces: []
12
12
  }
13
13
  };
14
- exports.dataSchema = dataSchema;
15
- var propsSchema = {
14
+ var propsSchema = exports.propsSchema = {
16
15
  itemsPerRow: {}
17
16
  };
18
- exports.propsSchema = propsSchema;
19
- var defaultProps = 'id,name';
20
- exports.defaultProps = defaultProps;
17
+ var defaultProps = exports.defaultProps = 'id,name';
21
18
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
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
+ {"version":3,"file":"constants.js","names":["dataSchema","exports","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,GAAAC,OAAA,CAAAD,UAAA,GAAG;EACxBE,eAAe,EAAE;IACfC,OAAO,EAAE,CAAC,CAAC;IACXC,UAAU,EAAE;EACd;AACF,CAAC;AAEM,IAAMC,WAAW,GAAAJ,OAAA,CAAAI,WAAA,GAAG;EACzBC,WAAW,EAAE,CAAC;AAChB,CAAC;AAEM,IAAMC,YAAY,GAAAN,OAAA,CAAAM,YAAA,GAAG,SAAS"}
@@ -10,6 +10,5 @@ var getCheckboxFilters = function getCheckboxFilters(checkboxFilters, name, valu
10
10
  if (value !== 'off') checkboxFilters.push([name, value]);
11
11
  } else if (value) checkboxFilters.push(name);
12
12
  };
13
- var _default = getCheckboxFilters;
14
- exports["default"] = _default;
13
+ var _default = exports["default"] = getCheckboxFilters;
15
14
  //# sourceMappingURL=get-checkbox-filters.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-checkbox-filters.js","names":["getCheckboxFilters","checkboxFilters","name","value","push","_default","exports"],"sources":["../../src/helpers/get-checkbox-filters.js"],"sourcesContent":["const getCheckboxFilters = (checkboxFilters, name, value) => {\n if (typeof value === 'string') {\n if (value !== 'off') checkboxFilters.push([name, value]);\n } else if (value) checkboxFilters.push(name);\n};\n\nexport default getCheckboxFilters;\n"],"mappings":";;;;;;;AAAA,IAAMA,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAIC,eAAe,EAAEC,IAAI,EAAEC,KAAK,EAAK;EAC3D,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IAC7B,IAAIA,KAAK,KAAK,KAAK,EAAEF,eAAe,CAACG,IAAI,CAAC,CAACF,IAAI,EAAEC,KAAK,CAAC,CAAC;EAC1D,CAAC,MAAM,IAAIA,KAAK,EAAEF,eAAe,CAACG,IAAI,CAACF,IAAI,CAAC;AAC9C,CAAC;AAAC,IAAAG,QAAA,GAEaL,kBAAkB;AAAAM,OAAA,cAAAD,QAAA"}
1
+ {"version":3,"file":"get-checkbox-filters.js","names":["getCheckboxFilters","checkboxFilters","name","value","push","_default","exports"],"sources":["../../src/helpers/get-checkbox-filters.js"],"sourcesContent":["const getCheckboxFilters = (checkboxFilters, name, value) => {\n if (typeof value === 'string') {\n if (value !== 'off') checkboxFilters.push([name, value]);\n } else if (value) checkboxFilters.push(name);\n};\n\nexport default getCheckboxFilters;\n"],"mappings":";;;;;;;AAAA,IAAMA,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAIC,eAAe,EAAEC,IAAI,EAAEC,KAAK,EAAK;EAC3D,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IAC7B,IAAIA,KAAK,KAAK,KAAK,EAAEF,eAAe,CAACG,IAAI,CAAC,CAACF,IAAI,EAAEC,KAAK,CAAC,CAAC;EAC1D,CAAC,MAAM,IAAIA,KAAK,EAAEF,eAAe,CAACG,IAAI,CAACF,IAAI,CAAC;AAC9C,CAAC;AAAC,IAAAG,QAAA,GAAAC,OAAA,cAEaN,kBAAkB"}
@@ -61,6 +61,5 @@ var getClickWrapperOptions = function getClickWrapperOptions() {
61
61
  wrapperProps: wrapperProps
62
62
  };
63
63
  };
64
- var _default = getClickWrapperOptions;
65
- exports["default"] = _default;
64
+ var _default = exports["default"] = getClickWrapperOptions;
66
65
  //# sourceMappingURL=get-click-wrapper-options.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-click-wrapper-options.js","names":["_constants","require","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_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,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,MAAA,WAAAN,CAAA,WAAAE,MAAA,CAAAK,wBAAA,CAAAR,CAAA,EAAAC,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C,CAAC;EAEN,OAAO;IAAEC,qBAAqB,EAArBA,qBAAqB;IAAEO,YAAY,EAAZA;EAAa,CAAC;AAChD,CAAC;AAAC,IAAAoB,QAAA,GAEahC,sBAAsB;AAAAiC,OAAA,cAAAD,QAAA"}
1
+ {"version":3,"file":"get-click-wrapper-options.js","names":["_constants","require","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_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,CAAA,EAAAC,CAAA,QAAAC,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AAC2C,OAAO,CAAC;EAElBzB,qBAAqB,GAAG,CAAC,CAACQ,WAAW,IAAI,CAAC,CAACA,WAAW,CAACnB,MAAM;EAE7D,IAAMkB,YAAY,GAAGP,qBAAqB,GAAAb,aAAA,CAAAA,aAAA;IACpCuC,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,GAAAC,OAAA,cAEajC,sBAAsB"}
@@ -15,6 +15,5 @@ var getCurrentOffset = function getCurrentOffset() {
15
15
  var cumulativeOffset = Number(offset) + Number(itemsPerPage) * (Number(paginationIndex) - 1);
16
16
  return !!limit && cumulativeOffset >= limit ? offset : cumulativeOffset;
17
17
  };
18
- var _default = getCurrentOffset;
19
- exports["default"] = _default;
18
+ var _default = exports["default"] = getCurrentOffset;
20
19
  //# sourceMappingURL=get-current-offset.js.map
@@ -1 +1 @@
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
+ {"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,GAAAC,OAAA,cAEaX,gBAAgB"}
@@ -16,6 +16,5 @@ var dictionary = {
16
16
  var getDictionaryMatch = function getDictionaryMatch(key) {
17
17
  return dictionary[key] || dictionary[1];
18
18
  };
19
- var _default = getDictionaryMatch;
20
- exports["default"] = _default;
19
+ var _default = exports["default"] = getDictionaryMatch;
21
20
  //# sourceMappingURL=get-dictionary-match.js.map
@@ -1 +1 @@
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
+ {"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,GAAAC,OAAA,cAEpDH,kBAAkB"}
@@ -17,6 +17,5 @@ function getDisplayCountData(displayMessage, images) {
17
17
  countMessage: countMessage
18
18
  };
19
19
  }
20
- var _default = getDisplayCountData;
21
- exports["default"] = _default;
20
+ var _default = exports["default"] = getDisplayCountData;
22
21
  //# sourceMappingURL=get-display-count-data.js.map
@@ -1 +1 @@
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
+ {"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,GAAAC,OAAA,cAEcZ,mBAAmB"}
@@ -10,6 +10,5 @@ var getElasticsearchOperator = function getElasticsearchOperator(_ref) {
10
10
  var operator = _ref.operator;
11
11
  return operator === _constants.AND ? _constants.AND_OPERATOR : _constants.OR_OPERATOR;
12
12
  };
13
- var _default = getElasticsearchOperator;
14
- exports["default"] = _default;
13
+ var _default = exports["default"] = getElasticsearchOperator;
15
14
  //# sourceMappingURL=get-elasticsearch-operator.js.map
@@ -1 +1 @@
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
+ {"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,GAAAC,OAAA,cAEpFP,wBAAwB"}
@@ -34,6 +34,5 @@ var getEntityData = function getEntityData(entity, schema) {
34
34
  entityType: publishedEntityType
35
35
  };
36
36
  };
37
- var _default = getEntityData;
38
- exports["default"] = _default;
37
+ var _default = exports["default"] = getEntityData;
39
38
  //# sourceMappingURL=get-entity-data.js.map
@@ -1 +1 @@
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
+ {"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,GAAAC,OAAA,cAEalB,aAAa"}
@@ -21,6 +21,5 @@ function getEntityRenderProps(queryProps) {
21
21
  action: action
22
22
  };
23
23
  }
24
- var _default = getEntityRenderProps;
25
- exports["default"] = _default;
24
+ var _default = exports["default"] = getEntityRenderProps;
26
25
  //# sourceMappingURL=get-entity-render-props.js.map
@@ -1 +1 @@
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
+ {"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,GAAAC,OAAA,cAEcjB,oBAAoB"}
@@ -54,6 +54,5 @@ var getExtraAzBits = function getExtraAzBits(_ref3) {
54
54
  if (shouldReturnAggs) return AZ_AGGS;
55
55
  return ALL_AZ_SORT;
56
56
  };
57
- var _default = getExtraAzBits;
58
- exports["default"] = _default;
57
+ var _default = exports["default"] = getExtraAzBits;
59
58
  //# sourceMappingURL=get-extra-az-bits.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-extra-az-bits.js","names":["_constants","require","getAzArgs","azSortProperty","azProp","concat","AZ_AGGS","aggs","azCount","terms","script","size","sort","_defineProperty2","ALL_AZ_SORT","_script","type","lang","source","params","letters","AZ","order","getExtraAzBits","_ref3","shouldReturnAggs","isAZ","_ref3$azSortProperty","AZ_DEFAULT_PROP","azFilter","_getAzArgs","_default","exports"],"sources":["../../src/helpers/get-extra-az-bits.js"],"sourcesContent":["import { AZ, AZ_DEFAULT_PROP } from '../constants';\n\nfunction getAzArgs(azSortProperty) {\n const azProp = `${azSortProperty}.keyword`;\n\n const AZ_AGGS = {\n aggs: {\n azCount: {\n terms: {\n script: `doc['${azProp}'].getValue().substring(0,1).toUpperCase()`,\n size: 500\n }\n }\n },\n sort: [{ [azProp]: 'asc' }]\n };\n const ALL_AZ_SORT = {\n sort: [\n {\n _script: {\n type: 'number',\n script: {\n lang: 'painless',\n source: `int charPos = params.letters.indexOf(doc['${azProp}'].value.substring(0,1).toUpperCase()); charPos > -1 ? charPos : 100`,\n params: {\n letters: AZ\n }\n },\n order: 'asc'\n }\n },\n { [azProp]: 'asc' }\n ]\n };\n\n return { ALL_AZ_SORT, AZ_AGGS };\n}\n\nconst getExtraAzBits = ({ shouldReturnAggs, isAZ, azSortProperty = AZ_DEFAULT_PROP, azFilter }) => {\n if (!isAZ || (isAZ && azFilter)) return {};\n\n const { AZ_AGGS, ALL_AZ_SORT } = getAzArgs(azSortProperty);\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,SAASC,SAASA,CAACC,cAAc,EAAE;EACjC,IAAMC,MAAM,MAAAC,MAAA,CAAMF,cAAc,aAAU;EAE1C,IAAMG,OAAO,GAAG;IACdC,IAAI,EAAE;MACJC,OAAO,EAAE;QACPC,KAAK,EAAE;UACLC,MAAM,UAAAL,MAAA,CAAUD,MAAM,+CAA4C;UAClEO,IAAI,EAAE;QACR;MACF;IACF,CAAC;IACDC,IAAI,EAAE,KAAAC,gBAAA,iBAAIT,MAAM,EAAG,KAAK;EAC1B,CAAC;EACD,IAAMU,WAAW,GAAG;IAClBF,IAAI,EAAE,CACJ;MACEG,OAAO,EAAE;QACPC,IAAI,EAAE,QAAQ;QACdN,MAAM,EAAE;UACNO,IAAI,EAAE,UAAU;UAChBC,MAAM,+CAAAb,MAAA,CAA+CD,MAAM,yEAAsE;UACjIe,MAAM,EAAE;YACNC,OAAO,EAAEC;UACX;QACF,CAAC;QACDC,KAAK,EAAE;MACT;IACF,CAAC,MAAAT,gBAAA,iBACET,MAAM,EAAG,KAAK;EAErB,CAAC;EAED,OAAO;IAAEU,WAAW,EAAXA,WAAW;IAAER,OAAO,EAAPA;EAAQ,CAAC;AACjC;AAEA,IAAMiB,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,KAAA,EAA+E;EAAA,IAAzEC,gBAAgB,GAAAD,KAAA,CAAhBC,gBAAgB;IAAEC,IAAI,GAAAF,KAAA,CAAJE,IAAI;IAAAC,oBAAA,GAAAH,KAAA,CAAErB,cAAc;IAAdA,cAAc,GAAAwB,oBAAA,cAAGC,0BAAe,GAAAD,oBAAA;IAAEE,QAAQ,GAAAL,KAAA,CAARK,QAAQ;EAC1F,IAAI,CAACH,IAAI,IAAKA,IAAI,IAAIG,QAAS,EAAE,OAAO,CAAC,CAAC;EAE1C,IAAAC,UAAA,GAAiC5B,SAAS,CAACC,cAAc,CAAC;IAAlDG,OAAO,GAAAwB,UAAA,CAAPxB,OAAO;IAAEQ,WAAW,GAAAgB,UAAA,CAAXhB,WAAW;EAC5B,IAAIW,gBAAgB,EAAE,OAAOnB,OAAO;EAEpC,OAAOQ,WAAW;AACpB,CAAC;AAAC,IAAAiB,QAAA,GAEaR,cAAc;AAAAS,OAAA,cAAAD,QAAA"}
1
+ {"version":3,"file":"get-extra-az-bits.js","names":["_constants","require","getAzArgs","azSortProperty","azProp","concat","AZ_AGGS","aggs","azCount","terms","script","size","sort","_defineProperty2","ALL_AZ_SORT","_script","type","lang","source","params","letters","AZ","order","getExtraAzBits","_ref3","shouldReturnAggs","isAZ","_ref3$azSortProperty","AZ_DEFAULT_PROP","azFilter","_getAzArgs","_default","exports"],"sources":["../../src/helpers/get-extra-az-bits.js"],"sourcesContent":["import { AZ, AZ_DEFAULT_PROP } from '../constants';\n\nfunction getAzArgs(azSortProperty) {\n const azProp = `${azSortProperty}.keyword`;\n\n const AZ_AGGS = {\n aggs: {\n azCount: {\n terms: {\n script: `doc['${azProp}'].getValue().substring(0,1).toUpperCase()`,\n size: 500\n }\n }\n },\n sort: [{ [azProp]: 'asc' }]\n };\n const ALL_AZ_SORT = {\n sort: [\n {\n _script: {\n type: 'number',\n script: {\n lang: 'painless',\n source: `int charPos = params.letters.indexOf(doc['${azProp}'].value.substring(0,1).toUpperCase()); charPos > -1 ? charPos : 100`,\n params: {\n letters: AZ\n }\n },\n order: 'asc'\n }\n },\n { [azProp]: 'asc' }\n ]\n };\n\n return { ALL_AZ_SORT, AZ_AGGS };\n}\n\nconst getExtraAzBits = ({ shouldReturnAggs, isAZ, azSortProperty = AZ_DEFAULT_PROP, azFilter }) => {\n if (!isAZ || (isAZ && azFilter)) return {};\n\n const { AZ_AGGS, ALL_AZ_SORT } = getAzArgs(azSortProperty);\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,SAASC,SAASA,CAACC,cAAc,EAAE;EACjC,IAAMC,MAAM,MAAAC,MAAA,CAAMF,cAAc,aAAU;EAE1C,IAAMG,OAAO,GAAG;IACdC,IAAI,EAAE;MACJC,OAAO,EAAE;QACPC,KAAK,EAAE;UACLC,MAAM,UAAAL,MAAA,CAAUD,MAAM,+CAA4C;UAClEO,IAAI,EAAE;QACR;MACF;IACF,CAAC;IACDC,IAAI,EAAE,KAAAC,gBAAA,iBAAIT,MAAM,EAAG,KAAK;EAC1B,CAAC;EACD,IAAMU,WAAW,GAAG;IAClBF,IAAI,EAAE,CACJ;MACEG,OAAO,EAAE;QACPC,IAAI,EAAE,QAAQ;QACdN,MAAM,EAAE;UACNO,IAAI,EAAE,UAAU;UAChBC,MAAM,+CAAAb,MAAA,CAA+CD,MAAM,yEAAsE;UACjIe,MAAM,EAAE;YACNC,OAAO,EAAEC;UACX;QACF,CAAC;QACDC,KAAK,EAAE;MACT;IACF,CAAC,MAAAT,gBAAA,iBACET,MAAM,EAAG,KAAK;EAErB,CAAC;EAED,OAAO;IAAEU,WAAW,EAAXA,WAAW;IAAER,OAAO,EAAPA;EAAQ,CAAC;AACjC;AAEA,IAAMiB,cAAc,GAAG,SAAjBA,cAAcA,CAAAC,KAAA,EAA+E;EAAA,IAAzEC,gBAAgB,GAAAD,KAAA,CAAhBC,gBAAgB;IAAEC,IAAI,GAAAF,KAAA,CAAJE,IAAI;IAAAC,oBAAA,GAAAH,KAAA,CAAErB,cAAc;IAAdA,cAAc,GAAAwB,oBAAA,cAAGC,0BAAe,GAAAD,oBAAA;IAAEE,QAAQ,GAAAL,KAAA,CAARK,QAAQ;EAC1F,IAAI,CAACH,IAAI,IAAKA,IAAI,IAAIG,QAAS,EAAE,OAAO,CAAC,CAAC;EAE1C,IAAAC,UAAA,GAAiC5B,SAAS,CAACC,cAAc,CAAC;IAAlDG,OAAO,GAAAwB,UAAA,CAAPxB,OAAO;IAAEQ,WAAW,GAAAgB,UAAA,CAAXhB,WAAW;EAC5B,IAAIW,gBAAgB,EAAE,OAAOnB,OAAO;EAEpC,OAAOQ,WAAW;AACpB,CAAC;AAAC,IAAAiB,QAAA,GAAAC,OAAA,cAEaT,cAAc"}
@@ -67,6 +67,5 @@ var getFilterProps = function getFilterProps(filter) {
67
67
  shouldIgnoreFilter: shouldIgnoreFilter
68
68
  };
69
69
  };
70
- var _default = getFilterProps;
71
- exports["default"] = _default;
70
+ var _default = exports["default"] = getFilterProps;
72
71
  //# sourceMappingURL=get-filter-props.js.map
@@ -1 +1 @@
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 shouldIgnoreFilter\n };\n};\n\nexport default getFilterProps;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,sBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAMC,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAIC,YAAY,EAAEC,SAAS,EAAK;EACtD,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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
+ {"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 shouldIgnoreFilter\n };\n};\n\nexport default getFilterProps;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,sBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAMC,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAIC,YAAY,EAAEC,SAAS,EAAK;EACtD,IAAAC,IAAA,GACED,SAAS,CAACE,IAAI,CAAC,UAAAC,KAAA;MAAA,IAAGC,UAAU,GAAAD,KAAA,CAAVC,UAAU;MAAA,OAAOA,UAAU,KAAKL,YAAY;IAAA,EAAC,IAAI,CAAC,CAAC;IAD/DM,gBAAgB,GAAAJ,IAAA,CAAhBI,gBAAgB;EAExB,OAAOA,gBAAgB;AACzB,CAAC;AAED,IAAMC,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAIC,UAAU,EAAEC,qBAAqB,EAAK;EAC/D,IAAAC,KAAA,GACED,qBAAqB,CAACN,IAAI,CAAC,UAAAQ,KAAA;MAAA,IAAGC,UAAU,GAAAD,KAAA,CAAVC,UAAU;MAAA,OAAOA,UAAU,KAAKJ,UAAU;IAAA,EAAC,IAAI,CAAC,CAAC;IADzEF,gBAAgB,GAAAI,KAAA,CAAhBJ,gBAAgB;EAExB,OAAOA,gBAAgB;AACzB,CAAC;AAED,IAAMO,cAA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B,CAAC,GACxD,IAAI;EACR,IAAMqB,gBAAgB,GAAGlC,iBAAiB,CAACC,UAAU,EAAEC,qBAAqB,CAAC;EAE7E,IAAMiC,kBAAkB,GAAGF,kBAAkB,IAAIC,gBAAgB;EACjE,IAAME,UAAU,GAAGF,gBAAgB,GAAGV,eAAe,GAAGS,kBAAkB;EAC1E,IAAMI,cAAc,GAAGjB,eAAe,KAAKe,kBAAkB;EAC7D,IAAMG,wBAAwB,GAAG,CAACN,WAAW,IAAI,CAACC,kBAAkB;EACpE,IAAMM,mBAAmB,GAAGD,wBAAwB,GAChD,IAAAE,iCAAqB,EAACL,kBAAkB,EAAEtB,sBAAsB,EAAEG,uBAAuB,CAAC,GAC1F,EAAE;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,GAAAC,OAAA,cAEarC,cAAc"}
@@ -18,6 +18,5 @@ var getFilterRelationKeys = function getFilterRelationKeys(entityName, currentEn
18
18
  return foreignKey;
19
19
  });
20
20
  };
21
- var _default = getFilterRelationKeys;
22
- exports["default"] = _default;
21
+ var _default = exports["default"] = getFilterRelationKeys;
23
22
  //# sourceMappingURL=get-filter-relation-keys.js.map
@@ -1 +1 @@
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,CAC1E,CAAC,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
+ {"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,CAC1E,CAAC,CACAC,GAAG,CAAC,UAAAC,KAAA;IAAA,IAAGF,UAAU,GAAAE,KAAA,CAAVF,UAAU;IAAA,OAAOA,UAAU;EAAA,EAAC;AAAA;AAAC,IAAAG,QAAA,GAAAC,OAAA,cAE1BX,qBAAqB"}
@@ -28,6 +28,5 @@ function getGenericProps() {
28
28
  gridModifier: gridModifier
29
29
  }, props);
30
30
  }
31
- var _default = getGenericProps;
32
- exports["default"] = _default;
31
+ var _default = exports["default"] = getGenericProps;
33
32
  //# sourceMappingURL=get-generic-props.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-generic-props.js","names":["_getDictionaryMatch","_interopRequireDefault","require","_constants","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_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,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,C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":["_getDictionaryMatch","_interopRequireDefault","require","_constants","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_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,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,MAAA,WAAAN,CAAA,WAAAE,MAAA,CAAAK,wBAAA,CAAAR,CAAA,EAAAC,CAAA,EAAAQ,UAAA,OAAAP,CAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,CAAA,EAAAI,CAAA,YAAAJ,CAAA;AAAA,SAAAU,cAAAZ,CAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAY,SAAA,CAAAC,MAAA,EAAAb,CAAA,UAAAC,CAAA,WAAAW,SAAA,CAAAZ,CAAA,IAAAY,SAAA,CAAAZ,CAAA,QAAAA,CAAA,OAAAF,OAAA,CAAAI,MAAA,CAAAD,CAAA,OAAAa,OAAA,WAAAd,CAAA,QAAAe,gBAAA,aAAAhB,CAAA,EAAAC,CAAA,EAAAC,CAAA,CAAAD,CAAA,SAAAE,MAAA,CAAAc,yBAAA,GAAAd,MAAA,CAAAe,gBAAA,CAAAlB,CAAA,EAAAG,MAAA,CAAAc,yBAAA,CAAAf,CAAA,KAAAH,OAAA,CAAAI,MAAA,CAAAD,CAAA,GAAAa,OAAA,WAAAd,CAAA,IAAAE,MAAA,CAAAgB,cAAA,CAAAnB,CAAA,EAAAC,CAAA,EAAAE,MAAA,CAAAK,wBAAA,CAAAN,CAAA,EAAAD,CAAA,iBAAAD,CAAA;AAEnD,SAASoB,eAAeA,CAAA,EAAsB;EAAA,IAArBC,KAAK,GAAAR,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAS,SAAA,GAAAT,SAAA,MAAGU,sBAAW;EAC1C,IAAQC,WAAW,GAAKH,KAAK,CAArBG,WAAW;EACnB,IAAMC,YAAY,GAAG,IAAAC,8BAAkB,EAACF,WAAW,CAAC;EAEpD,OAAAZ,aAAA;IAASa,YAAY,EAAZA;EAAY,GAAKJ,KAAK;AACjC;AAAC,IAAAM,QAAA,GAAAC,OAAA,cAEcR,eAAe"}
@@ -82,6 +82,5 @@ var getGenericRenderVariables = function getGenericRenderVariables(_ref) {
82
82
  rawQueryStringified: JSON.stringify(rawQueryCopy)
83
83
  });
84
84
  };
85
- var _default = getGenericRenderVariables;
86
- exports["default"] = _default;
85
+ var _default = exports["default"] = getGenericRenderVariables;
87
86
  //# sourceMappingURL=get-generic-render-variables.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-generic-render-variables.js","names":["_constants","require","_buildSortValues","_interopRequireDefault","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","getCorrectSort","relations","filterProps","stringProps","useSortObject","sort","sortby","_filterProps$sortProp","sortProperties","buildSortValues","propsToDisplay","concat","_toConsumableArray2","getGenericRenderVariables","_ref","_ref$filterProps","_ref$stringProps","_ref$rawQuery","rawQuery","_ref$useRandomSort","useRandomSort","rawQueryCopy","_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 { DEFAULT_LIMIT, DEFAULT_OFFSET } from '../constants';\nimport buildSortValues from './build-sort-values';\n\nconst getCorrectSort = (relations, filterProps, stringProps, useSortObject) => {\n const { sort, sortby, sortProperties = [] } = filterProps;\n\n return buildSortValues(\n [{ sort, propsToDisplay: sortby }, ...sortProperties],\n relations,\n stringProps,\n useSortObject\n );\n};\n\nconst getGenericRenderVariables = ({\n relations,\n filterProps = {},\n stringProps = [],\n rawQuery = {},\n useRandomSort = false\n}) => {\n const rawQueryCopy = { ...rawQuery };\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: rawQueryCopy && rawQueryCopy.query ? rawQueryCopy.query : rawQueryCopy,\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, !!rawQueryCopy.sort);\n\n if (rawQueryCopy.sort && sort) {\n rawQueryCopy.sort = [...rawQueryCopy.sort, sort];\n\n return {\n limit: limitToUse,\n offset: offsetToUse,\n rawQueryStringified: JSON.stringify(rawQueryCopy)\n };\n }\n\n return {\n limit: limitToUse,\n offset: offsetToUse,\n ...sort,\n rawQueryStringified: JSON.stringify(rawQueryCopy)\n };\n};\n\nexport default getGenericRenderVariables;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,gBAAA,GAA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,KAAK,EAAEZ,YAAY,IAAIA,YAAY,CAACY,KAAK,GAAGZ,YAAY,CAACY,KAAK,GAAGZ,YAAY;UAC7Ec,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,IAAMzB,IAAI,GAAGL,cAAc,CAACC,SAAS,EAAEC,WAAW,EAAEC,WAAW,EAAE,CAAC,CAACkB,YAAY,CAAChB,IAAI,CAAC;EAErF,IAAIgB,YAAY,CAAChB,IAAI,IAAIA,IAAI,EAAE;IAC7BgB,YAAY,CAAChB,IAAI,MAAAM,MAAA,KAAAC,mBAAA,aAAOS,YAAY,CAAChB,IAAI,IAAEA,IAAI,EAAC;IAEhD,OAAO;MACLkB,KAAK,EAAEG,UAAU;MACjBD,MAAM,EAAEG,WAAW;MACnBE,mBAAmB,EAAEC,IAAI,CAACC,SAAS,CAACX,YAAY;IAClD,CAAC;EACH;EAEA,OAAA7B,aAAA,CAAAA,aAAA;IACE+B,KAAK,EAAEG,UAAU;IACjBD,MAAM,EAAEG;EAAW,GAChBvB,IAAI;IACPyB,mBAAmB,EAAEC,IAAI,CAACC,SAAS,CAACX,YAAY;EAAC;AAErD,CAAC;AAAC,IAAAgB,QAAA,GAEaxB,yBAAyB;AAAAyB,OAAA,cAAAD,QAAA"}
1
+ {"version":3,"file":"get-generic-render-variables.js","names":["_constants","require","_buildSortValues","_interopRequireDefault","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","getCorrectSort","relations","filterProps","stringProps","useSortObject","sort","sortby","_filterProps$sortProp","sortProperties","buildSortValues","propsToDisplay","concat","_toConsumableArray2","getGenericRenderVariables","_ref","_ref$filterProps","_ref$stringProps","_ref$rawQuery","rawQuery","_ref$useRandomSort","useRandomSort","rawQueryCopy","_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 { DEFAULT_LIMIT, DEFAULT_OFFSET } from '../constants';\nimport buildSortValues from './build-sort-values';\n\nconst getCorrectSort = (relations, filterProps, stringProps, useSortObject) => {\n const { sort, sortby, sortProperties = [] } = filterProps;\n\n return buildSortValues(\n [{ sort, propsToDisplay: sortby }, ...sortProperties],\n relations,\n stringProps,\n useSortObject\n );\n};\n\nconst getGenericRenderVariables = ({\n relations,\n filterProps = {},\n stringProps = [],\n rawQuery = {},\n useRandomSort = false\n}) => {\n const rawQueryCopy = { ...rawQuery };\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: rawQueryCopy && rawQueryCopy.query ? rawQueryCopy.query : rawQueryCopy,\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, !!rawQueryCopy.sort);\n\n if (rawQueryCopy.sort && sort) {\n rawQueryCopy.sort = [...rawQueryCopy.sort, sort];\n\n return {\n limit: limitToUse,\n offset: offsetToUse,\n rawQueryStringified: JSON.stringify(rawQueryCopy)\n };\n }\n\n return {\n limit: limitToUse,\n offset: offsetToUse,\n ...sort,\n rawQueryStringified: JSON.stringify(rawQueryCopy)\n };\n};\n\nexport default getGenericRenderVariables;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAA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c,EAAE;UACdD,KAAK,EAAEZ,YAAY,IAAIA,YAAY,CAACY,KAAK,GAAGZ,YAAY,CAACY,KAAK,GAAGZ,YAAY;UAC7Ec,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,IAAMzB,IAAI,GAAGL,cAAc,CAACC,SAAS,EAAEC,WAAW,EAAEC,WAAW,EAAE,CAAC,CAACkB,YAAY,CAAChB,IAAI,CAAC;EAErF,IAAIgB,YAAY,CAAChB,IAAI,IAAIA,IAAI,EAAE;IAC7BgB,YAAY,CAAChB,IAAI,MAAAM,MAAA,KAAAC,mBAAA,aAAOS,YAAY,CAAChB,IAAI,IAAEA,IAAI,EAAC;IAEhD,OAAO;MACLkB,KAAK,EAAEG,UAAU;MACjBD,MAAM,EAAEG,WAAW;MACnBE,mBAAmB,EAAEC,IAAI,CAACC,SAAS,CAACX,YAAY;IAClD,CAAC;EACH;EAEA,OAAA7B,aAAA,CAAAA,aAAA;IACE+B,KAAK,EAAEG,UAAU;IACjBD,MAAM,EAAEG;EAAW,GAChBvB,IAAI;IACPyB,mBAAmB,EAAEC,IAAI,CAACC,SAAS,CAACX,YAAY;EAAC;AAErD,CAAC;AAAC,IAAAgB,QAAA,GAAAC,OAAA,cAEazB,yBAAyB"}
@@ -38,6 +38,5 @@ var getImageIds = function getImageIds(imageRelation, relationData, imageId) {
38
38
  }
39
39
  return imageIdArray;
40
40
  };
41
- var _default = getImageIds;
42
- exports["default"] = _default;
41
+ var _default = exports["default"] = getImageIds;
43
42
  //# sourceMappingURL=get-image-ids.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-image-ids.js","names":["_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,CAAC;AAED,IAAMC,WAAW,GAAG,SAAdA,WAAWA,CAAIC,aAAa,EAAEC,YAAY,EAAEV,OAAO,EAAK;EAC5D,IAAMW,YAAY,GAAGX,OAAO,GAAG,CAACA,OAAO,CAAC,GAAG,EAAE;EAC7C,IAAIU,YAAY,IAAIA,YAAY,CAACE,UAAU,EAAE;IAC3C,IAAAC,cAAA,OAAAC,eAAA,aAAoBL,aAAa;MAA1BM,SAAS,GAAAF,cAAA;IAChB,IAAAG,gBAAA,GAAqCD,SAAS,CAACE,KAAK,CAAC,GAAG,CAAC;MAAAC,iBAAA,OAAAJ,eAAA,aAAAE,gBAAA;MAAlDG,YAAY,GAAAD,iBAAA;MAAEnB,YAAY,GAAAmB,iBAAA;IACjC,IAAMpB,iBAAiB,GAAGY,YAAY,CAACE,UAAU,CAACO,YAAY,CAAC;IAE/D,IAAI,CAACrB,iBAAiB,EAAE,OAAOa,YAAY;IAE3C,IAAIS,KAAK,CAACC,OAAO,CAACvB,iBAAiB,CAAC,EAClC,OAAOD,eAAe,CAACC,iBAAiB,EAAEC,YAAY,EAAEC,OAAO,CAAC;IAElE,IAAI,IAAAsB,kBAAa,EAACxB,iBAAiB,CAAC,IAAIM,MAAM,CAACC,IAAI,CAACP,iBAAiB,CAAC,CAACG,MAAM,EAAE;MAC7E,OAAOmB,KAAK,CAACC,OAAO,CAACvB,iBAAiB,CAACC,YAAY,CAAC,CAAC,GACjDD,iBAAiB,CAACC,YAAY,CAAC,GAC/B,CAACD,iBAAiB,CAACC,YAAY,CAAC,CAAC;IACvC;EACF;EAEA,OAAOY,YAAY;AACrB,CAAC;AAAC,IAAAY,QAAA,GAEaf,WAAW;AAAAgB,OAAA,cAAAD,QAAA"}
1
+ {"version":3,"file":"get-image-ids.js","names":["_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,CAAC;AAED,IAAMC,WAAW,GAAG,SAAdA,WAAWA,CAAIC,aAAa,EAAEC,YAAY,EAAEV,OAAO,EAAK;EAC5D,IAAMW,YAAY,GAAGX,OAAO,GAAG,CAACA,OAAO,CAAC,GAAG,EAAE;EAC7C,IAAIU,YAAY,IAAIA,YAAY,CAACE,UAAU,EAAE;IAC3C,IAAAC,cAAA,OAAAC,eAAA,aAAoBL,aAAa;MAA1BM,SAAS,GAAAF,cAAA;IAChB,IAAAG,gBAAA,GAAqCD,SAAS,CAACE,KAAK,CAAC,GAAG,CAAC;MAAAC,iBAAA,OAAAJ,eAAA,aAAAE,gBAAA;MAAlDG,YAAY,GAAAD,iBAAA;MAAEnB,YAAY,GAAAmB,iBAAA;IACjC,IAAMpB,iBAAiB,GAAGY,YAAY,CAACE,UAAU,CAACO,YAAY,CAAC;IAE/D,IAAI,CAACrB,iBAAiB,EAAE,OAAOa,YAAY;IAE3C,IAAIS,KAAK,CAACC,OAAO,CAACvB,iBAAiB,CAAC,EAClC,OAAOD,eAAe,CAACC,iBAAiB,EAAEC,YAAY,EAAEC,OAAO,CAAC;IAElE,IAAI,IAAAsB,kBAAa,EAACxB,iBAAiB,CAAC,IAAIM,MAAM,CAACC,IAAI,CAACP,iBAAiB,CAAC,CAACG,MAAM,EAAE;MAC7E,OAAOmB,KAAK,CAACC,OAAO,CAACvB,iBAAiB,CAACC,YAAY,CAAC,CAAC,GACjDD,iBAAiB,CAACC,YAAY,CAAC,GAC/B,CAACD,iBAAiB,CAACC,YAAY,CAAC,CAAC;IACvC;EACF;EAEA,OAAOY,YAAY;AACrB,CAAC;AAAC,IAAAY,QAAA,GAAAC,OAAA,cAEahB,WAAW"}
@@ -26,6 +26,5 @@ var getInheritedFilters = function getInheritedFilters(filterBy, filterByPropert
26
26
  return acc;
27
27
  }, []);
28
28
  };
29
- var _default = getInheritedFilters;
30
- exports["default"] = _default;
29
+ var _default = exports["default"] = getInheritedFilters;
31
30
  //# sourceMappingURL=get-inherited-filters.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-inherited-filters.js","names":["getInheritedFilters","filterBy","filterByProperty","length","reduce","acc","property","_property$split","split","_property$split2","_slicedToArray2","propName","filterByMatched","filter","filterId","includes","concat","push","_default","exports"],"sources":["../../src/helpers/get-inherited-filters.js"],"sourcesContent":["const getInheritedFilters = (filterBy, filterByProperty) => {\n if (!filterByProperty.length) return [];\n if (!filterBy.length) return filterByProperty;\n\n return filterByProperty.reduce((acc, property) => {\n const [propName] = property.split('/');\n const filterByMatched = filterBy.filter(filterId => filterId.includes(`${propName}/`));\n\n if (!filterByMatched.length) acc.push(property);\n return acc;\n }, []);\n};\n\nexport default getInheritedFilters;\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAMA,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAIC,QAAQ,EAAEC,gBAAgB,EAAK;EAC1D,IAAI,CAACA,gBAAgB,CAACC,MAAM,EAAE,OAAO,EAAE;EACvC,IAAI,CAACF,QAAQ,CAACE,MAAM,EAAE,OAAOD,gBAAgB;EAE7C,OAAOA,gBAAgB,CAACE,MAAM,CAAC,UAACC,GAAG,EAAEC,QAAQ,EAAK;IAChD,IAAAC,eAAA,GAAmBD,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;MAAAC,gBAAA,OAAAC,eAAA,aAAAH,eAAA;MAA/BI,QAAQ,GAAAF,gBAAA;IACf,IAAMG,eAAe,GAAGX,QAAQ,CAACY,MAAM,CAAC,UAAAC,QAAQ;MAAA,OAAIA,QAAQ,CAACC,QAAQ,IAAAC,MAAA,CAAIL,QAAQ,MAAG,CAAC;IAAA,EAAC;IAEtF,IAAI,CAACC,eAAe,CAACT,MAAM,EAAEE,GAAG,CAACY,IAAI,CAACX,QAAQ,CAAC;IAC/C,OAAOD,GAAG;EACZ,CAAC,EAAE,EAAE,CAAC;AACR,CAAC;AAAC,IAAAa,QAAA,GAEalB,mBAAmB;AAAAmB,OAAA,cAAAD,QAAA"}
1
+ {"version":3,"file":"get-inherited-filters.js","names":["getInheritedFilters","filterBy","filterByProperty","length","reduce","acc","property","_property$split","split","_property$split2","_slicedToArray2","propName","filterByMatched","filter","filterId","includes","concat","push","_default","exports"],"sources":["../../src/helpers/get-inherited-filters.js"],"sourcesContent":["const getInheritedFilters = (filterBy, filterByProperty) => {\n if (!filterByProperty.length) return [];\n if (!filterBy.length) return filterByProperty;\n\n return filterByProperty.reduce((acc, property) => {\n const [propName] = property.split('/');\n const filterByMatched = filterBy.filter(filterId => filterId.includes(`${propName}/`));\n\n if (!filterByMatched.length) acc.push(property);\n return acc;\n }, []);\n};\n\nexport default getInheritedFilters;\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAMA,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAIC,QAAQ,EAAEC,gBAAgB,EAAK;EAC1D,IAAI,CAACA,gBAAgB,CAACC,MAAM,EAAE,OAAO,EAAE;EACvC,IAAI,CAACF,QAAQ,CAACE,MAAM,EAAE,OAAOD,gBAAgB;EAE7C,OAAOA,gBAAgB,CAACE,MAAM,CAAC,UAACC,GAAG,EAAEC,QAAQ,EAAK;IAChD,IAAAC,eAAA,GAAmBD,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;MAAAC,gBAAA,OAAAC,eAAA,aAAAH,eAAA;MAA/BI,QAAQ,GAAAF,gBAAA;IACf,IAAMG,eAAe,GAAGX,QAAQ,CAACY,MAAM,CAAC,UAAAC,QAAQ;MAAA,OAAIA,QAAQ,CAACC,QAAQ,IAAAC,MAAA,CAAIL,QAAQ,MAAG,CAAC;IAAA,EAAC;IAEtF,IAAI,CAACC,eAAe,CAACT,MAAM,EAAEE,GAAG,CAACY,IAAI,CAACX,QAAQ,CAAC;IAC/C,OAAOD,GAAG;EACZ,CAAC,EAAE,EAAE,CAAC;AACR,CAAC;AAAC,IAAAa,QAAA,GAAAC,OAAA,cAEanB,mBAAmB"}
@@ -23,6 +23,5 @@ function getItemsToDisplayIds(itemsToDisplay) {
23
23
  }, []);
24
24
  return (0, _toConsumableArray2["default"])(new Set((0, _toConsumableArray2["default"])(ids)));
25
25
  }
26
- var _default = getItemsToDisplayIds;
27
- exports["default"] = _default;
26
+ var _default = exports["default"] = getItemsToDisplayIds;
28
27
  //# sourceMappingURL=get-items-to-display-ids.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-items-to-display-ids.js","names":["getItemsToDisplayIds","itemsToDisplay","length","ids","reduce","acc","_ref","displayItems","concat","_toConsumableArray2","Set","_default","exports"],"sources":["../../src/helpers/get-items-to-display-ids.js"],"sourcesContent":["function getItemsToDisplayIds(itemsToDisplay) {\n if (!itemsToDisplay || !itemsToDisplay.length) return [];\n const ids = itemsToDisplay.reduce((acc, { displayItems }) => {\n if (!displayItems || !displayItems.length) return acc;\n return acc.concat(displayItems);\n }, []);\n return [...new Set([...ids])];\n}\n\nexport default getItemsToDisplayIds;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,SAASA,oBAAoBA,CAACC,cAAc,EAAE;EAC5C,IAAI,CAACA,cAAc,IAAI,CAACA,cAAc,CAACC,MAAM,EAAE,OAAO,EAAE;EACxD,IAAMC,GAAG,GAAGF,cAAc,CAACG,MAAM,CAAC,UAACC,GAAG,EAAAC,IAAA,EAAuB;IAAA,IAAnBC,YAAY,GAAAD,IAAA,CAAZC,YAAY;IACpD,IAAI,CAACA,YAAY,IAAI,CAACA,YAAY,CAACL,MAAM,EAAE,OAAOG,GAAG;IACrD,OAAOA,GAAG,CAACG,MAAM,CAACD,YAAY,CAAC;EACjC,CAAC,EAAE,EAAE,CAAC;EACN,WAAAE,mBAAA,aAAW,IAAIC,GAAG,KAAAD,mBAAA,aAAKN,GAAG,CAAC,CAAC;AAC9B;AAAC,IAAAQ,QAAA,GAEcX,oBAAoB;AAAAY,OAAA,cAAAD,QAAA"}
1
+ {"version":3,"file":"get-items-to-display-ids.js","names":["getItemsToDisplayIds","itemsToDisplay","length","ids","reduce","acc","_ref","displayItems","concat","_toConsumableArray2","Set","_default","exports"],"sources":["../../src/helpers/get-items-to-display-ids.js"],"sourcesContent":["function getItemsToDisplayIds(itemsToDisplay) {\n if (!itemsToDisplay || !itemsToDisplay.length) return [];\n const ids = itemsToDisplay.reduce((acc, { displayItems }) => {\n if (!displayItems || !displayItems.length) return acc;\n return acc.concat(displayItems);\n }, []);\n return [...new Set([...ids])];\n}\n\nexport default getItemsToDisplayIds;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,SAASA,oBAAoBA,CAACC,cAAc,EAAE;EAC5C,IAAI,CAACA,cAAc,IAAI,CAACA,cAAc,CAACC,MAAM,EAAE,OAAO,EAAE;EACxD,IAAMC,GAAG,GAAGF,cAAc,CAACG,MAAM,CAAC,UAACC,GAAG,EAAAC,IAAA,EAAuB;IAAA,IAAnBC,YAAY,GAAAD,IAAA,CAAZC,YAAY;IACpD,IAAI,CAACA,YAAY,IAAI,CAACA,YAAY,CAACL,MAAM,EAAE,OAAOG,GAAG;IACrD,OAAOA,GAAG,CAACG,MAAM,CAACD,YAAY,CAAC;EACjC,CAAC,EAAE,EAAE,CAAC;EACN,WAAAE,mBAAA,aAAW,IAAIC,GAAG,KAAAD,mBAAA,aAAKN,GAAG,CAAC,CAAC;AAC9B;AAAC,IAAAQ,QAAA,GAAAC,OAAA,cAEcZ,oBAAoB"}
@@ -33,6 +33,5 @@ var validateModifier = function validateModifier(base, modifier) {
33
33
  if (isValidModifier) return withBase ? "".concat(base, " ").concat(base, "--").concat(modifier) : "".concat(base, "--").concat(modifier);
34
34
  return base;
35
35
  };
36
- var _default = getModifiers;
37
- exports["default"] = _default;
36
+ var _default = exports["default"] = getModifiers;
38
37
  //# sourceMappingURL=get-modifiers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-modifiers.js","names":["getModifiers","base","modifier","Array","isArray","modifiers","map","modi","validateModifier","unshift","uniqueModifiers","_toConsumableArray2","Set","join","withBase","arguments","length","undefined","isValidModifier","concat","_default","exports"],"sources":["../../src/helpers/get-modifiers.js"],"sourcesContent":["const getModifiers = (base, modifier) => {\n if (Array.isArray(modifier)) {\n const modifiers = modifier.map(modi => validateModifier(base, modi, false));\n modifiers.unshift(base);\n const uniqueModifiers = [...new Set(modifiers)];\n\n return uniqueModifiers.join(' ');\n }\n return validateModifier(base, modifier);\n};\n\nconst validateModifier = (base, modifier, withBase = true) => {\n const isValidModifier = modifier && typeof modifier === 'string';\n if (isValidModifier) return withBase ? `${base} ${base}--${modifier}` : `${base}--${modifier}`;\n\n return base;\n};\n\nexport default getModifiers;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,IAAMA,YAAY,GAAG,SAAfA,YAAYA,CAAIC,IAAI,EAAEC,QAAQ,EAAK;EACvC,IAAIC,KAAK,CAACC,OAAO,CAACF,QAAQ,CAAC,EAAE;IAC3B,IAAMG,SAAS,GAAGH,QAAQ,CAACI,GAAG,CAAC,UAAAC,IAAI;MAAA,OAAIC,gBAAgB,CAACP,IAAI,EAAEM,IAAI,EAAE,KAAK,CAAC;IAAA,EAAC;IAC3EF,SAAS,CAACI,OAAO,CAACR,IAAI,CAAC;IACvB,IAAMS,eAAe,OAAAC,mBAAA,aAAO,IAAIC,GAAG,CAACP,SAAS,CAAC,CAAC;IAE/C,OAAOK,eAAe,CAACG,IAAI,CAAC,GAAG,CAAC;EAClC;EACA,OAAOL,gBAAgB,CAACP,IAAI,EAAEC,QAAQ,CAAC;AACzC,CAAC;AAED,IAAMM,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIP,IAAI,EAAEC,QAAQ,EAAsB;EAAA,IAApBY,QAAQ,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,IAAI;EACvD,IAAMG,eAAe,GAAGhB,QAAQ,IAAI,OAAOA,QAAQ,KAAK,QAAQ;EAChE,IAAIgB,eAAe,EAAE,OAAOJ,QAAQ,MAAAK,MAAA,CAAMlB,IAAI,OAAAkB,MAAA,CAAIlB,IAAI,QAAAkB,MAAA,CAAKjB,QAAQ,OAAAiB,MAAA,CAAQlB,IAAI,QAAAkB,MAAA,CAAKjB,QAAQ,CAAE;EAE9F,OAAOD,IAAI;AACb,CAAC;AAAC,IAAAmB,QAAA,GAEapB,YAAY;AAAAqB,OAAA,cAAAD,QAAA"}
1
+ {"version":3,"file":"get-modifiers.js","names":["getModifiers","base","modifier","Array","isArray","modifiers","map","modi","validateModifier","unshift","uniqueModifiers","_toConsumableArray2","Set","join","withBase","arguments","length","undefined","isValidModifier","concat","_default","exports"],"sources":["../../src/helpers/get-modifiers.js"],"sourcesContent":["const getModifiers = (base, modifier) => {\n if (Array.isArray(modifier)) {\n const modifiers = modifier.map(modi => validateModifier(base, modi, false));\n modifiers.unshift(base);\n const uniqueModifiers = [...new Set(modifiers)];\n\n return uniqueModifiers.join(' ');\n }\n return validateModifier(base, modifier);\n};\n\nconst validateModifier = (base, modifier, withBase = true) => {\n const isValidModifier = modifier && typeof modifier === 'string';\n if (isValidModifier) return withBase ? `${base} ${base}--${modifier}` : `${base}--${modifier}`;\n\n return base;\n};\n\nexport default getModifiers;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,IAAMA,YAAY,GAAG,SAAfA,YAAYA,CAAIC,IAAI,EAAEC,QAAQ,EAAK;EACvC,IAAIC,KAAK,CAACC,OAAO,CAACF,QAAQ,CAAC,EAAE;IAC3B,IAAMG,SAAS,GAAGH,QAAQ,CAACI,GAAG,CAAC,UAAAC,IAAI;MAAA,OAAIC,gBAAgB,CAACP,IAAI,EAAEM,IAAI,EAAE,KAAK,CAAC;IAAA,EAAC;IAC3EF,SAAS,CAACI,OAAO,CAACR,IAAI,CAAC;IACvB,IAAMS,eAAe,OAAAC,mBAAA,aAAO,IAAIC,GAAG,CAACP,SAAS,CAAC,CAAC;IAE/C,OAAOK,eAAe,CAACG,IAAI,CAAC,GAAG,CAAC;EAClC;EACA,OAAOL,gBAAgB,CAACP,IAAI,EAAEC,QAAQ,CAAC;AACzC,CAAC;AAED,IAAMM,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIP,IAAI,EAAEC,QAAQ,EAAsB;EAAA,IAApBY,QAAQ,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,IAAI;EACvD,IAAMG,eAAe,GAAGhB,QAAQ,IAAI,OAAOA,QAAQ,KAAK,QAAQ;EAChE,IAAIgB,eAAe,EAAE,OAAOJ,QAAQ,MAAAK,MAAA,CAAMlB,IAAI,OAAAkB,MAAA,CAAIlB,IAAI,QAAAkB,MAAA,CAAKjB,QAAQ,OAAAiB,MAAA,CAAQlB,IAAI,QAAAkB,MAAA,CAAKjB,QAAQ,CAAE;EAE9F,OAAOD,IAAI;AACb,CAAC;AAAC,IAAAmB,QAAA,GAAAC,OAAA,cAEarB,YAAY"}
@@ -13,6 +13,5 @@ function getPaginationIndex(query, name) {
13
13
  var paginationIndex = query["".concat(_constants.PB_QUERY_CONST, "[").concat(name, "]").concat(_constants.PAGINATION_QUERY_CONST)];
14
14
  return Number(paginationIndex) || 1;
15
15
  }
16
- var _default = getPaginationIndex;
17
- exports["default"] = _default;
16
+ var _default = exports["default"] = getPaginationIndex;
18
17
  //# sourceMappingURL=get-pagination-index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-pagination-index.js","names":["_constants","require","getPaginationIndex","query","name","paginationIndex","concat","PB_QUERY_CONST","PAGINATION_QUERY_CONST","Number","_default","exports"],"sources":["../../src/helpers/get-pagination-index.js"],"sourcesContent":["import { PAGINATION_QUERY_CONST, PB_QUERY_CONST } from '../constants';\n\nfunction getPaginationIndex(query, name) {\n if (!query || !name) return 1;\n const paginationIndex = query[`${PB_QUERY_CONST}[${name}]${PAGINATION_QUERY_CONST}`];\n return Number(paginationIndex) || 1;\n}\n\nexport default getPaginationIndex;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,SAASC,kBAAkBA,CAACC,KAAK,EAAEC,IAAI,EAAE;EACvC,IAAI,CAACD,KAAK,IAAI,CAACC,IAAI,EAAE,OAAO,CAAC;EAC7B,IAAMC,eAAe,GAAGF,KAAK,IAAAG,MAAA,CAAIC,yBAAc,OAAAD,MAAA,CAAIF,IAAI,OAAAE,MAAA,CAAIE,iCAAsB,EAAG;EACpF,OAAOC,MAAM,CAACJ,eAAe,CAAC,IAAI,CAAC;AACrC;AAAC,IAAAK,QAAA,GAEcR,kBAAkB;AAAAS,OAAA,cAAAD,QAAA"}
1
+ {"version":3,"file":"get-pagination-index.js","names":["_constants","require","getPaginationIndex","query","name","paginationIndex","concat","PB_QUERY_CONST","PAGINATION_QUERY_CONST","Number","_default","exports"],"sources":["../../src/helpers/get-pagination-index.js"],"sourcesContent":["import { PAGINATION_QUERY_CONST, PB_QUERY_CONST } from '../constants';\n\nfunction getPaginationIndex(query, name) {\n if (!query || !name) return 1;\n const paginationIndex = query[`${PB_QUERY_CONST}[${name}]${PAGINATION_QUERY_CONST}`];\n return Number(paginationIndex) || 1;\n}\n\nexport default getPaginationIndex;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,SAASC,kBAAkBA,CAACC,KAAK,EAAEC,IAAI,EAAE;EACvC,IAAI,CAACD,KAAK,IAAI,CAACC,IAAI,EAAE,OAAO,CAAC;EAC7B,IAAMC,eAAe,GAAGF,KAAK,IAAAG,MAAA,CAAIC,yBAAc,OAAAD,MAAA,CAAIF,IAAI,OAAAE,MAAA,CAAIE,iCAAsB,EAAG;EACpF,OAAOC,MAAM,CAACJ,eAAe,CAAC,IAAI,CAAC;AACrC;AAAC,IAAAK,QAAA,GAAAC,OAAA,cAEcT,kBAAkB"}
@@ -47,6 +47,5 @@ var getParsedPropValues = function getParsedPropValues(_ref) {
47
47
  return shouldStrip ? (0, _removeUnwantedCharacters["default"])(value) : value;
48
48
  }).filter(Boolean);
49
49
  };
50
- var _default = getParsedPropValues;
51
- exports["default"] = _default;
50
+ var _default = exports["default"] = getParsedPropValues;
52
51
  //# sourceMappingURL=get-parsed-prop-values.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-parsed-prop-values.js","names":["_react","_interopRequireDefault","require","_nextjsComponents","_isObject","_removeUnwantedCharacters","getParsedPropValues","_ref","propertiesToDisplay","props","enableLink","shouldStrip","map","property","_property$split","split","_property$split2","_slicedToArray2","filteredProperty","subtype","value","Array","isArray","prop","index","propValue","sanitizedValue","removeUnwantedCharacters","isLastValue","length","parsedValue","concat","linkKey","join","url","createElement","Link","key","href","isObject","filter","Boolean","_default","exports"],"sources":["../../src/helpers/get-parsed-prop-values.js"],"sourcesContent":["import React from 'react';\nimport { Link } from '@blaze-cms/nextjs-components';\nimport isObject from './is-object';\nimport removeUnwantedCharacters from './remove-unwanted-characters';\n\nconst getParsedPropValues = ({ propertiesToDisplay, props, enableLink, shouldStrip }) =>\n propertiesToDisplay\n .map(property => {\n const [filteredProperty, subtype] = property.split('.');\n const value = props[filteredProperty];\n\n if (Array.isArray(value)) {\n return value.map((prop, index) => {\n const propValue = subtype ? prop[subtype] : prop;\n const sanitizedValue = shouldStrip ? removeUnwantedCharacters(propValue) : propValue;\n\n const isLastValue = index === value.length - 1;\n const parsedValue = isLastValue ? sanitizedValue : sanitizedValue.concat(', ');\n const linkKey = [filteredProperty, prop[subtype], index].join('-');\n\n return enableLink && prop.url ? (\n <Link key={linkKey} href={prop.url}>\n {parsedValue}\n </Link>\n ) : (\n parsedValue\n );\n });\n }\n\n if (isObject(value)) {\n return shouldStrip ? removeUnwantedCharacters(value[subtype]) : value[subtype];\n }\n\n return shouldStrip ? removeUnwantedCharacters(value) : value;\n })\n .filter(Boolean);\n\nexport default getParsedPropValues;\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,yBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAEA,IAAMI,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAAC,IAAA;EAAA,IAAMC,mBAAmB,GAAAD,IAAA,CAAnBC,mBAAmB;IAAEC,KAAK,GAAAF,IAAA,CAALE,KAAK;IAAEC,UAAU,GAAAH,IAAA,CAAVG,UAAU;IAAEC,WAAW,GAAAJ,IAAA,CAAXI,WAAW;EAAA,O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IAChF;IAEA,OAAOR,WAAW,GAAG,IAAAgB,oCAAwB,EAACP,KAAK,CAAC,GAAGA,KAAK;EAC9D,CAAC,CAAC,CACDoB,MAAM,CAACC,OAAO,CAAC;AAAA;AAAC,IAAAC,QAAA,GAENpC,mBAAmB;AAAAqC,OAAA,cAAAD,QAAA"}
1
+ {"version":3,"file":"get-parsed-prop-values.js","names":["_react","_interopRequireDefault","require","_nextjsComponents","_isObject","_removeUnwantedCharacters","getParsedPropValues","_ref","propertiesToDisplay","props","enableLink","shouldStrip","map","property","_property$split","split","_property$split2","_slicedToArray2","filteredProperty","subtype","value","Array","isArray","prop","index","propValue","sanitizedValue","removeUnwantedCharacters","isLastValue","length","parsedValue","concat","linkKey","join","url","createElement","Link","key","href","isObject","filter","Boolean","_default","exports"],"sources":["../../src/helpers/get-parsed-prop-values.js"],"sourcesContent":["import React from 'react';\nimport { Link } from '@blaze-cms/nextjs-components';\nimport isObject from './is-object';\nimport removeUnwantedCharacters from './remove-unwanted-characters';\n\nconst getParsedPropValues = ({ propertiesToDisplay, props, enableLink, shouldStrip }) =>\n propertiesToDisplay\n .map(property => {\n const [filteredProperty, subtype] = property.split('.');\n const value = props[filteredProperty];\n\n if (Array.isArray(value)) {\n return value.map((prop, index) => {\n const propValue = subtype ? prop[subtype] : prop;\n const sanitizedValue = shouldStrip ? removeUnwantedCharacters(propValue) : propValue;\n\n const isLastValue = index === value.length - 1;\n const parsedValue = isLastValue ? sanitizedValue : sanitizedValue.concat(', ');\n const linkKey = [filteredProperty, prop[subtype], index].join('-');\n\n return enableLink && prop.url ? (\n <Link key={linkKey} href={prop.url}>\n {parsedValue}\n </Link>\n ) : (\n parsedValue\n );\n });\n }\n\n if (isObject(value)) {\n return shouldStrip ? removeUnwantedCharacters(value[subtype]) : value[subtype];\n }\n\n return shouldStrip ? removeUnwantedCharacters(value) : value;\n })\n .filter(Boolean);\n\nexport default getParsedPropValues;\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,MAAA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CAAC;QAElE,OAAOvB,UAAU,IAAIa,IAAI,CAACW,GAAG,gBAC3BlC,MAAA,YAAAmC,aAAA,CAAChC,iBAAA,CAAAiC,IAAI;UAACC,GAAG,EAAEL,OAAQ;UAACM,IAAI,EAAEf,IAAI,CAACW;QAAI,GAChCJ,WACG,CAAC,GAEPA,WACD;MACH,CAAC,CAAC;IACJ;IAEA,IAAI,IAAAS,oBAAQ,EAACnB,KAAK,CAAC,EAAE;MACnB,OAAOT,WAAW,GAAG,IAAAgB,oCAAwB,EAACP,KAAK,CAACD,OAAO,CAAC,CAAC,GAAGC,KAAK,CAACD,OAAO,CAAC;IAChF;IAEA,OAAOR,WAAW,GAAG,IAAAgB,oCAAwB,EAACP,KAAK,CAAC,GAAGA,KAAK;EAC9D,CAAC,CAAC,CACDoB,MAAM,CAACC,OAAO,CAAC;AAAA;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAENrC,mBAAmB"}
@@ -16,6 +16,5 @@ function getParsedSummaryValue(value) {
16
16
  if (value === FALSE) return parsedSummaryValues.FALSE;
17
17
  return value;
18
18
  }
19
- var _default = getParsedSummaryValue;
20
- exports["default"] = _default;
19
+ var _default = exports["default"] = getParsedSummaryValue;
21
20
  //# sourceMappingURL=get-parsed-summary-value.js.map