@blaze-cms/react-page-builder 0.139.0-alpha.1 → 0.139.0-alpha.4

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 (742) hide show
  1. package/CHANGELOG.md +29 -0
  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 +3 -4
  200. package/lib/components/Image/ImageFactory.js.map +1 -1
  201. package/lib/components/Image/ImageRender.js +1 -2
  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 +3 -4
  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 +1 -2
  656. package/lib/hooks/use-get-image-id-from-relation.js.map +1 -1
  657. package/lib/hooks/use-get-images.js +1 -2
  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/Layout/Layout.js +8 -4
  690. package/lib-es/components/Layout/Layout.js.map +1 -1
  691. package/lib-es/components/SearchContent/SearchContent.js +53 -49
  692. package/lib-es/components/SearchContent/SearchContent.js.map +1 -1
  693. package/lib-es/components/SearchContent/SearchContentResults.js +16 -17
  694. package/lib-es/components/SearchContent/SearchContentResults.js.map +1 -1
  695. package/lib-es/components/SearchContent/SearchContentToggleIcon.js +13 -23
  696. package/lib-es/components/SearchContent/SearchContentToggleIcon.js.map +1 -1
  697. package/lib-es/components/SearchContent/constants.js +4 -0
  698. package/lib-es/components/SearchContent/constants.js.map +1 -0
  699. package/lib-es/components/SearchFilter/SearchFilterContainer.js +0 -1
  700. package/lib-es/components/SearchFilter/SearchFilterContainer.js.map +1 -1
  701. package/lib-es/helpers/process-data-summary-value.js +2 -2
  702. package/lib-es/hooks/helpers/RenderComponent.js +5 -2
  703. package/lib-es/hooks/helpers/RenderComponent.js.map +1 -1
  704. package/lib-es/hooks/helpers/getVariant.js +14 -0
  705. package/lib-es/hooks/helpers/getVariant.js.map +1 -0
  706. package/lib-es/index.js +2 -1
  707. package/lib-es/index.js.map +1 -1
  708. package/lib-es/utils/component-map.js +4 -4
  709. package/lib-es/utils/component-map.js.map +1 -1
  710. package/lib-es/utils/index.js +2 -1
  711. package/lib-es/utils/index.js.map +1 -1
  712. package/lib-es/utils/variant-handler.js +26 -0
  713. package/lib-es/utils/variant-handler.js.map +1 -0
  714. package/lib-es/variants/index.js +2 -0
  715. package/lib-es/variants/index.js.map +1 -0
  716. package/package.json +4 -4
  717. package/src/components/Card/Card.js +1 -2
  718. package/src/components/Card/CardsContainer.js +0 -3
  719. package/src/components/Card/CardsRender.js +0 -1
  720. package/src/components/Carousel/Carousel.js +28 -12
  721. package/src/components/Carousel/CarouselRender/CarouselRender.js +36 -56
  722. package/src/components/Carousel/hooks/useCarouselNavigation.js +50 -0
  723. package/src/components/Layout/Layout.js +8 -5
  724. package/src/components/SearchContent/SearchContent.js +66 -52
  725. package/src/components/SearchContent/SearchContentResults.js +17 -17
  726. package/src/components/SearchContent/SearchContentToggleIcon.js +10 -23
  727. package/src/components/SearchContent/constants.js +6 -0
  728. package/src/hooks/helpers/RenderComponent.js +4 -0
  729. package/src/hooks/helpers/getVariant.js +11 -0
  730. package/src/index.js +2 -1
  731. package/src/utils/component-map.js +4 -5
  732. package/src/utils/index.js +9 -1
  733. package/src/utils/variant-handler.js +33 -0
  734. package/src/variants/index.js +1 -0
  735. package/tests/unit/src/components/Carousel/Carousel.test.js +23 -0
  736. package/tests/unit/src/components/Carousel/CarouselRender/CarouselRender.test.js +14 -22
  737. package/tests/unit/src/components/Carousel/__snapshots__/Carousel.test.js.snap +10 -0
  738. package/tests/unit/src/components/Layout/Layout.test.js +11 -0
  739. package/tests/unit/src/components/Menu/__snapshots__/Menu.test.js.snap +1 -1
  740. package/tests/unit/src/components/SearchContent/SearchContent.test.js +32 -7
  741. package/tests/unit/src/components/SearchContent/__snapshots__/SearchContent.test.js.snap +66 -2
  742. package/tests/unit/src/utils/variant-handler.test.js +41 -0
@@ -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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,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_AG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S,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,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,UAAA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A;IAAEC,YAAY,GAAAD,kBAAA;EACjC,IAAME,WAAW,GAAG,CAAC,EACnBhB,uBAAuB,CAACf,UAAU,CAAC,IAAIkB,8BAA8B,CAAClB,UAAU,CAAC,CAClF;EACD,IAAMgC,kBAAkB,GAAGF,YAAY,GACnCvC,kBAAkB,CAACC,YAAY,EAAEoB,sBAAsB,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,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,cAAc,GAAG,SAAjBA,cAAcA,CAClBC,MAAM,EAQH;EAAA,IAAAC,KAAA,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAFC,CAAC,CAAC;IAAAG,eAAA,GAAAJ,KAAA,CAJJd,SAAS;IAAEmB,sBAAsB,GAAAD,eAAA,cAAG,EAAE,GAAAA,eAAA;IAAAE,gBAAA,GAAAN,KAAA,CACtCO,UAAU;IAAEC,uBAAuB,GAAAF,gBAAA,cAAG,CAAC,CAAC,GAAAA,gBAAA;IAAAG,qBAAA,GAAAT,KAAA,CACxCU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,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,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,GAEcP,eAAe;AAAAQ,OAAA,cAAAD,QAAA"}
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 = getDictionaryMat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AA,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,GAAAC,sBAAA,CAAAF,OAAA;AAAkD,SAAAG,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,CAA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,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,IAAAC,gBAAA,GAAAC,sBAAA,CAAAF,OAAA;AAAkD,SAAAG,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,CAA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,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,OAChFH,mBAAmB,CAChBI,GAAG,CAAC,UAAAC,QAAQ,EAAI;IACf,IAAAC,eAAA,GAAoCD,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;MAAAC,gBAAA,OAAAC,eAAA,aAAAH,eAAA;MAAhDI,gBAAgB,GAAAF,gBAAA;MAAEG,OAAO,GAAAH,gBAAA;IAChC,IAAMI,KAAK,GAAGX,KAAK,CAACS,gBAAgB,CAAC;IAErC,IAAIG,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,EAAE;MACxB,OAAOA,KAAK,CAACR,GAAG,CAAC,UAACW,IAAI,EAAEC,KAAK,EAAK;QAChC,IAAMC,SAAS,GAAGN,OAAO,GAAGI,IAAI,CAACJ,OAAO,CAAC,GAAGI,IAAI;QAChD,IAAMG,cAAc,GAAGf,WAAW,GAAG,IAAAgB,oCAAwB,EAACF,SAAS,CAAC,GAAGA,SAAS;QAEpF,IAAMG,WAAW,GAAGJ,KAAK,KAAKJ,KAAK,CAACS,MAAM,GAAG,CAAC;QAC9C,IAAMC,WAAW,GAAGF,WAAW,GAAGF,cAAc,GAAGA,cAAc,CAACK,MAAM,CAAC,IAAI,CAAC;QAC9E,IAAMC,OAAO,GAAG,CAACd,gBAAgB,EAAEK,IAAI,CAACJ,OAAO,CAAC,EAAEK,KAAK,CAAC,CAACS,IAAI,CAAC,GAAG,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,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,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,W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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
@@ -1 +1 @@
1
- {"version":3,"file":"get-parsed-summary-value.js","names":["TRUE","FALSE","parsedSummaryValues","getParsedSummaryValue","value","_default","exports"],"sources":["../../src/helpers/get-parsed-summary-value.js"],"sourcesContent":["const TRUE = 'true';\nconst FALSE = 'false';\n\nconst parsedSummaryValues = {\n TRUE: 'Yes',\n FALSE: 'No'\n};\n\nfunction getParsedSummaryValue(value) {\n if (value === TRUE) return parsedSummaryValues.TRUE;\n if (value === FALSE) return parsedSummaryValues.FALSE;\n\n return value;\n}\n\nexport default getParsedSummaryValue;\n"],"mappings":";;;;;;;AAAA,IAAMA,IAAI,GAAG,MAAM;AACnB,IAAMC,KAAK,GAAG,OAAO;AAErB,IAAMC,mBAAmB,GAAG;EAC1BF,IAAI,EAAE,KAAK;EACXC,KAAK,EAAE;AACT,CAAC;AAED,SAASE,qBAAqBA,CAACC,KAAK,EAAE;EACpC,IAAIA,KAAK,KAAKJ,IAAI,EAAE,OAAOE,mBAAmB,CAACF,IAAI;EACnD,IAAII,KAAK,KAAKH,KAAK,EAAE,OAAOC,mBAAmB,CAACD,KAAK;EAErD,OAAOG,KAAK;AACd;AAAC,IAAAC,QAAA,GAEcF,qBAAqB;AAAAG,OAAA,cAAAD,QAAA"}
1
+ {"version":3,"file":"get-parsed-summary-value.js","names":["TRUE","FALSE","parsedSummaryValues","getParsedSummaryValue","value","_default","exports"],"sources":["../../src/helpers/get-parsed-summary-value.js"],"sourcesContent":["const TRUE = 'true';\nconst FALSE = 'false';\n\nconst parsedSummaryValues = {\n TRUE: 'Yes',\n FALSE: 'No'\n};\n\nfunction getParsedSummaryValue(value) {\n if (value === TRUE) return parsedSummaryValues.TRUE;\n if (value === FALSE) return parsedSummaryValues.FALSE;\n\n return value;\n}\n\nexport default getParsedSummaryValue;\n"],"mappings":";;;;;;;AAAA,IAAMA,IAAI,GAAG,MAAM;AACnB,IAAMC,KAAK,GAAG,OAAO;AAErB,IAAMC,mBAAmB,GAAG;EAC1BF,IAAI,EAAE,KAAK;EACXC,KAAK,EAAE;AACT,CAAC;AAED,SAASE,qBAAqBA,CAACC,KAAK,EAAE;EACpC,IAAIA,KAAK,KAAKJ,IAAI,EAAE,OAAOE,mBAAmB,CAACF,IAAI;EACnD,IAAII,KAAK,KAAKH,KAAK,EAAE,OAAOC,mBAAmB,CAACD,KAAK;EAErD,OAAOG,KAAK;AACd;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEcH,qBAAqB"}
@@ -30,6 +30,5 @@ var getPropValues = function getPropValues(propertiesToDisplay, props) {
30
30
  return value;
31
31
  }).filter(Boolean);
32
32
  };
33
- var _default = getPropValues;
34
- exports["default"] = _default;
33
+ var _default = exports["default"] = getPropValues;
35
34
  //# sourceMappingURL=get-prop-values.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-prop-values.js","names":["_isObject","_interopRequireDefault","require","getPropValues","propertiesToDisplay","props","map","property","_property$split","split","_property$split2","_slicedToArray2","filteredProperty","subtype","value","Array","isArray","prop","isObject","filter","Boolean","_default","exports"],"sources":["../../src/helpers/get-prop-values.js"],"sourcesContent":["import isObject from './is-object';\n\nconst getPropValues = (propertiesToDisplay, props) =>\n propertiesToDisplay\n .map(property => {\n const [filteredProperty, subtype] = property.split('.');\n const value = props[filteredProperty];\n\n if (Array.isArray(value)) {\n return value.map(prop => (subtype ? prop[subtype] : prop));\n }\n\n if (isObject(value)) {\n return value[subtype];\n }\n\n return value;\n })\n .filter(Boolean);\n\nexport default getPropValues;\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAMC,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,mBAAmB,EAAEC,KAAK;EAAA,OAC/CD,mBAAmB,CAChBE,GAAG,CAAC,UAAAC,QAAQ,EAAI;IACf,IAAAC,eAAA,GAAoCD,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;MAAAC,gBAAA,OAAAC,eAAA,aAAAH,eAAA;MAAhDI,gBAAgB,GAAAF,gBAAA;MAAEG,OAAO,GAAAH,gBAAA;IAChC,IAAMI,KAAK,GAAGT,KAAK,CAACO,gBAAgB,CAAC;IAErC,IAAIG,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,EAAE;MACxB,OAAOA,KAAK,CAACR,GAAG,CAAC,UAAAW,IAAI;QAAA,OAAKJ,OAAO,GAAGI,IAAI,CAACJ,OAAO,CAAC,GAAGI,IAAI;MAAA,CAAC,CAAC;IAC5D;IAEA,IAAI,IAAAC,oBAAQ,EAACJ,KAAK,CAAC,EAAE;MACnB,OAAOA,KAAK,CAACD,OAAO,CAAC;IACvB;IAEA,OAAOC,KAAK;EACd,CAAC,CAAC,CACDK,MAAM,CAACC,OAAO,CAAC;AAAA;AAAC,IAAAC,QAAA,GAENlB,aAAa;AAAAmB,OAAA,cAAAD,QAAA"}
1
+ {"version":3,"file":"get-prop-values.js","names":["_isObject","_interopRequireDefault","require","getPropValues","propertiesToDisplay","props","map","property","_property$split","split","_property$split2","_slicedToArray2","filteredProperty","subtype","value","Array","isArray","prop","isObject","filter","Boolean","_default","exports"],"sources":["../../src/helpers/get-prop-values.js"],"sourcesContent":["import isObject from './is-object';\n\nconst getPropValues = (propertiesToDisplay, props) =>\n propertiesToDisplay\n .map(property => {\n const [filteredProperty, subtype] = property.split('.');\n const value = props[filteredProperty];\n\n if (Array.isArray(value)) {\n return value.map(prop => (subtype ? prop[subtype] : prop));\n }\n\n if (isObject(value)) {\n return value[subtype];\n }\n\n return value;\n })\n .filter(Boolean);\n\nexport default getPropValues;\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAMC,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,mBAAmB,EAAEC,KAAK;EAAA,OAC/CD,mBAAmB,CAChBE,GAAG,CAAC,UAAAC,QAAQ,EAAI;IACf,IAAAC,eAAA,GAAoCD,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;MAAAC,gBAAA,OAAAC,eAAA,aAAAH,eAAA;MAAhDI,gBAAgB,GAAAF,gBAAA;MAAEG,OAAO,GAAAH,gBAAA;IAChC,IAAMI,KAAK,GAAGT,KAAK,CAACO,gBAAgB,CAAC;IAErC,IAAIG,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,EAAE;MACxB,OAAOA,KAAK,CAACR,GAAG,CAAC,UAAAW,IAAI;QAAA,OAAKJ,OAAO,GAAGI,IAAI,CAACJ,OAAO,CAAC,GAAGI,IAAI;MAAA,CAAC,CAAC;IAC5D;IAEA,IAAI,IAAAC,oBAAQ,EAACJ,KAAK,CAAC,EAAE;MACnB,OAAOA,KAAK,CAACD,OAAO,CAAC;IACvB;IAEA,OAAOC,KAAK;EACd,CAAC,CAAC,CACDK,MAAM,CAACC,OAAO,CAAC;AAAA;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAENnB,aAAa"}
@@ -28,6 +28,5 @@ var getQueryFilters = function getQueryFilters(searchFilter, query, listName) {
28
28
  valuesOr: valuesOr
29
29
  };
30
30
  };
31
- var _default = getQueryFilters;
32
- exports["default"] = _default;
31
+ var _default = exports["default"] = getQueryFilters;
33
32
  //# sourceMappingURL=get-query-filters.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-query-filters.js","names":["_getSearchFilterType","_interopRequireDefault","require","_buildSearchValuesCheckboxSelect","_constants","getQueryFilters","searchFilter","query","listName","settings","filters","valuesAnd","valuesOr","rangeFilters","getSearchFilterType","RANGE","checkboxFilters","CHECKBOX","selectFilters","SELECT","_buildSearchValuesChe","buildSearchValuesCheckboxSelect","values","_default","exports"],"sources":["../../src/helpers/get-query-filters.js"],"sourcesContent":["import getSearchFilterType from './get-search-filter-type';\nimport buildSearchValuesCheckboxSelect from './build-search-values-checkbox-select';\nimport { RANGE, CHECKBOX, SELECT } from '../constants';\n\nconst getQueryFilters = (searchFilter, query, listName) => {\n if (!searchFilter.settings || !searchFilter.settings.filters)\n return { valuesAnd: [], valuesOr: [] };\n\n const rangeFilters = getSearchFilterType(searchFilter, RANGE);\n const checkboxFilters = getSearchFilterType(searchFilter, CHECKBOX);\n const selectFilters = getSearchFilterType(searchFilter, SELECT);\n\n const { values: valuesAnd, valuesOr } = buildSearchValuesCheckboxSelect(\n query,\n rangeFilters,\n checkboxFilters,\n selectFilters,\n listName\n );\n return { valuesAnd, valuesOr };\n};\n\nexport default getQueryFilters;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,oBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,gCAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAEA,IAAMG,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,YAAY,EAAEC,KAAK,EAAEC,QAAQ,EAAK;EACzD,IAAI,CAACF,YAAY,CAACG,QAAQ,IAAI,CAACH,YAAY,CAACG,QAAQ,CAACC,OAAO,EAC1D,OAAO;IAAEC,SAAS,EAAE,EAAE;IAAEC,QAAQ,EAAE;EAAG,CAAC;EAExC,IAAMC,YAAY,GAAG,IAAAC,+BAAmB,EAACR,YAAY,EAAES,gBAAK,CAAC;EAC7D,IAAMC,eAAe,GAAG,IAAAF,+BAAmB,EAACR,YAAY,EAAEW,mBAAQ,CAAC;EACnE,IAAMC,aAAa,GAAG,IAAAJ,+BAAmB,EAACR,YAAY,EAAEa,iBAAM,CAAC;EAE/D,IAAAC,qBAAA,GAAwC,IAAAC,2CAA+B,EACrEd,KAAK,EACLM,YAAY,EACZG,eAAe,EACfE,aAAa,EACbV,QACF,CAAC;IANeG,SAAS,GAAAS,qBAAA,CAAjBE,MAAM;IAAaV,QAAQ,GAAAQ,qBAAA,CAARR,QAAQ;EAOnC,OAAO;IAAED,SAAS,EAATA,SAAS;IAAEC,QAAQ,EAARA;EAAS,CAAC;AAChC,CAAC;AAAC,IAAAW,QAAA,GAEalB,eAAe;AAAAmB,OAAA,cAAAD,QAAA"}
1
+ {"version":3,"file":"get-query-filters.js","names":["_getSearchFilterType","_interopRequireDefault","require","_buildSearchValuesCheckboxSelect","_constants","getQueryFilters","searchFilter","query","listName","settings","filters","valuesAnd","valuesOr","rangeFilters","getSearchFilterType","RANGE","checkboxFilters","CHECKBOX","selectFilters","SELECT","_buildSearchValuesChe","buildSearchValuesCheckboxSelect","values","_default","exports"],"sources":["../../src/helpers/get-query-filters.js"],"sourcesContent":["import getSearchFilterType from './get-search-filter-type';\nimport buildSearchValuesCheckboxSelect from './build-search-values-checkbox-select';\nimport { RANGE, CHECKBOX, SELECT } from '../constants';\n\nconst getQueryFilters = (searchFilter, query, listName) => {\n if (!searchFilter.settings || !searchFilter.settings.filters)\n return { valuesAnd: [], valuesOr: [] };\n\n const rangeFilters = getSearchFilterType(searchFilter, RANGE);\n const checkboxFilters = getSearchFilterType(searchFilter, CHECKBOX);\n const selectFilters = getSearchFilterType(searchFilter, SELECT);\n\n const { values: valuesAnd, valuesOr } = buildSearchValuesCheckboxSelect(\n query,\n rangeFilters,\n checkboxFilters,\n selectFilters,\n listName\n );\n return { valuesAnd, valuesOr };\n};\n\nexport default getQueryFilters;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,oBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,gCAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAEA,IAAMG,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,YAAY,EAAEC,KAAK,EAAEC,QAAQ,EAAK;EACzD,IAAI,CAACF,YAAY,CAACG,QAAQ,IAAI,CAACH,YAAY,CAACG,QAAQ,CAACC,OAAO,EAC1D,OAAO;IAAEC,SAAS,EAAE,EAAE;IAAEC,QAAQ,EAAE;EAAG,CAAC;EAExC,IAAMC,YAAY,GAAG,IAAAC,+BAAmB,EAACR,YAAY,EAAES,gBAAK,CAAC;EAC7D,IAAMC,eAAe,GAAG,IAAAF,+BAAmB,EAACR,YAAY,EAAEW,mBAAQ,CAAC;EACnE,IAAMC,aAAa,GAAG,IAAAJ,+BAAmB,EAACR,YAAY,EAAEa,iBAAM,CAAC;EAE/D,IAAAC,qBAAA,GAAwC,IAAAC,2CAA+B,EACrEd,KAAK,EACLM,YAAY,EACZG,eAAe,EACfE,aAAa,EACbV,QACF,CAAC;IANeG,SAAS,GAAAS,qBAAA,CAAjBE,MAAM;IAAaV,QAAQ,GAAAQ,qBAAA,CAARR,QAAQ;EAOnC,OAAO;IAAED,SAAS,EAATA,SAAS;IAAEC,QAAQ,EAARA;EAAS,CAAC;AAChC,CAAC;AAAC,IAAAW,QAAA,GAAAC,OAAA,cAEanB,eAAe"}
@@ -45,6 +45,5 @@ var getQueryProps = function getQueryProps(inheritedFilters, currentSchema) {
45
45
  return "".concat(acc, " ").concat(queryPropFinalValue, " ");
46
46
  }, _constants.ID);
47
47
  };
48
- var _default = getQueryProps;
49
- exports["default"] = _default;
48
+ var _default = exports["default"] = getQueryProps;
50
49
  //# sourceMappingURL=get-query-props.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-query-props.js","names":["_isFilterEntitysId","_interopRequireDefault","require","_getFilterProps2","_constants","getQueryProps","inheritedFilters","currentSchema","filterEntitySchema","arguments","length","undefined","ID","currentEntityId","identifier","properties","filterEntityId","reduce","acc","filter","_getFilterProps","getFilterProps","filterName","relationName","relationProp","relationEntityName","isEntityItself","relationForeignKeys","shouldIgnoreFilter","concat","join","queryValue","Object","keys","find","propKey","relation","entityIdentifier","queryProp","queryPropFinalValue","isFilterEntitysId","_default","exports"],"sources":["../../src/helpers/get-query-props.js"],"sourcesContent":["import isFilterEntitysId from './is-filter-entitys-id';\nimport getFilterProps from './get-filter-props';\nimport { ID } from '../constants';\n\nconst getQueryProps = (inheritedFilters, currentSchema, filterEntitySchema = {}) => {\n if (!currentSchema || !inheritedFilters.length) return ID;\n\n const { identifier: currentEntityId, properties } = currentSchema;\n const { identifier: filterEntityId } = filterEntitySchema;\n\n return inheritedFilters.reduce((acc, filter) => {\n const {\n filterName,\n relationName,\n relationProp,\n relationEntityName,\n isEntityItself,\n relationForeignKeys,\n shouldIgnoreFilter\n } = getFilterProps(filter, currentSchema, filterEntitySchema);\n if (shouldIgnoreFilter) return acc;\n if (relationForeignKeys && relationForeignKeys.length) {\n return `${acc} ${relationForeignKeys.join(' ')}`;\n }\n if (filterName === ID) {\n const queryValue = Object.keys(properties).find(\n propKey =>\n properties[propKey] &&\n properties[propKey].relation &&\n properties[propKey].relation.entityIdentifier === filterEntityId\n );\n if (queryValue) return `${acc} ${queryValue} `;\n }\n const queryProp = relationEntityName ? `${relationName} { ${relationProp} }` : filterName;\n const queryPropFinalValue =\n isEntityItself && isFilterEntitysId(filterName, currentEntityId) ? ID : queryProp;\n\n return `${acc} ${queryPropFinalValue} `;\n }, ID);\n};\n\nexport default getQueryProps;\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,kBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAEA,IAAMG,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,gBAAgB,EAAEC,aAAa,EAA8B;EAAA,IAA5BC,kBAAkB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAA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MAAA,CAAUX,GAAG,OAAAW,MAAA,CAAIE,UAAU;IAC7C;IACA,IAAMO,SAAS,GAAGb,kBAAkB,MAAAI,MAAA,CAAMN,YAAY,SAAAM,MAAA,CAAML,YAAY,UAAOF,UAAU;IACzF,IAAMiB,mBAAmB,GACvBb,cAAc,IAAI,IAAAc,6BAAiB,EAAClB,UAAU,EAAET,eAAe,CAAC,GAAGD,aAAE,GAAG0B,SAAS;IAEnF,UAAAT,MAAA,CAAUX,GAAG,OAAAW,MAAA,CAAIU,mBAAmB;EACtC,CAAC,EAAE3B,aAAE,CAAC;AACR,CAAC;AAAC,IAAA6B,QAAA,GAEapC,aAAa;AAAAqC,OAAA,cAAAD,QAAA"}
1
+ {"version":3,"file":"get-query-props.js","names":["_isFilterEntitysId","_interopRequireDefault","require","_getFilterProps2","_constants","getQueryProps","inheritedFilters","currentSchema","filterEntitySchema","arguments","length","undefined","ID","currentEntityId","identifier","properties","filterEntityId","reduce","acc","filter","_getFilterProps","getFilterProps","filterName","relationName","relationProp","relationEntityName","isEntityItself","relationForeignKeys","shouldIgnoreFilter","concat","join","queryValue","Object","keys","find","propKey","relation","entityIdentifier","queryProp","queryPropFinalValue","isFilterEntitysId","_default","exports"],"sources":["../../src/helpers/get-query-props.js"],"sourcesContent":["import isFilterEntitysId from './is-filter-entitys-id';\nimport getFilterProps from './get-filter-props';\nimport { ID } from '../constants';\n\nconst getQueryProps = (inheritedFilters, currentSchema, filterEntitySchema = {}) => {\n if (!currentSchema || !inheritedFilters.length) return ID;\n\n const { identifier: currentEntityId, properties } = currentSchema;\n const { identifier: filterEntityId } = filterEntitySchema;\n\n return inheritedFilters.reduce((acc, filter) => {\n const {\n filterName,\n relationName,\n relationProp,\n relationEntityName,\n isEntityItself,\n relationForeignKeys,\n shouldIgnoreFilter\n } = getFilterProps(filter, currentSchema, filterEntitySchema);\n if (shouldIgnoreFilter) return acc;\n if (relationForeignKeys && relationForeignKeys.length) {\n return `${acc} ${relationForeignKeys.join(' ')}`;\n }\n if (filterName === ID) {\n const queryValue = Object.keys(properties).find(\n propKey =>\n properties[propKey] &&\n properties[propKey].relation &&\n properties[propKey].relation.entityIdentifier === filterEntityId\n );\n if (queryValue) return `${acc} ${queryValue} `;\n }\n const queryProp = relationEntityName ? `${relationName} { ${relationProp} }` : filterName;\n const queryPropFinalValue =\n isEntityItself && isFilterEntitysId(filterName, currentEntityId) ? ID : queryProp;\n\n return `${acc} ${queryPropFinalValue} `;\n }, ID);\n};\n\nexport default getQueryProps;\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,kBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAEA,IAAMG,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,gBAAgB,EAAEC,aAAa,EAA8B;EAAA,IAA5BC,kBAAkB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EAC7E,IAAI,CAACF,aAAa,IAAI,CAACD,gBAAgB,CAACI,MAAM,EAAE,OAAOE,aAAE;EAEzD,IAAoBC,eAAe,GAAiBN,aAAa,CAAzDO,UAAU;IAAmBC,UAAU,GAAKR,aAAa,CAA5BQ,UAAU;EAC/C,IAAoBC,cAAc,GAAKR,kBAAkB,CAAjDM,UAAU;EAElB,OAAOR,gBAAgB,CAACW,MAAM,CAAC,UAACC,GAAG,EAAEC,MAAM,EAAK;IAC9C,IAAAC,eAAA,GAQI,IAAAC,2BAAc,EAACF,MAAM,EAAEZ,aAAa,EAAEC,kBAAkB,CAAC;MAP3Dc,UAAU,GAAAF,eAAA,CAAVE,UAAU;MACVC,YAAY,GAAAH,eAAA,CAAZG,YAAY;MACZC,YAAY,GAAAJ,eAAA,CAAZI,YAAY;MACZC,kBAAkB,GAAAL,eAAA,CAAlBK,kBAAkB;MAClBC,cAAc,GAAAN,eAAA,CAAdM,cAAc;MACdC,mBAAmB,GAAAP,eAAA,CAAnBO,mBAAmB;MACnBC,kBAAkB,GAAAR,eAAA,CAAlBQ,kBAAkB;IAEpB,IAAIA,kBAAkB,EAAE,OAAOV,GAAG;IAClC,IAAIS,mBAAmB,IAAIA,mBAAmB,CAACjB,MAAM,EAAE;MACrD,UAAAmB,MAAA,CAAUX,GAAG,OAAAW,MAAA,CAAIF,mBAAmB,CAACG,IAAI,CAAC,GAAG,CAAC;IAChD;IACA,IAAIR,UAAU,KAAKV,aAAE,EAAE;MACrB,IAAMmB,UAAU,GAAGC,MAAM,CAACC,IAAI,CAAClB,UAAU,CAAC,CAACmB,IAAI,CAC7C,UAAAC,OAAO;QAAA,OACLpB,UAAU,CAACoB,OAAO,CAAC,IACnBpB,UAAU,CAACoB,OAAO,CAAC,CAACC,QAAQ,IAC5BrB,UAAU,CAACoB,OAAO,CAAC,CAACC,QAAQ,CAACC,gBAAgB,KAAKrB,cAAc;MAAA,CACpE,CAAC;MACD,IAAIe,UAAU,EAAE,UAAAF,MAAA,CAAUX,GAAG,OAAAW,MAAA,CAAIE,UAAU;IAC7C;IACA,IAAMO,SAAS,GAAGb,kBAAkB,MAAAI,MAAA,CAAMN,YAAY,SAAAM,MAAA,CAAML,YAAY,UAAOF,UAAU;IACzF,IAAMiB,mBAAmB,GACvBb,cAAc,IAAI,IAAAc,6BAAiB,EAAClB,UAAU,EAAET,eAAe,CAAC,GAAGD,aAAE,GAAG0B,SAAS;IAEnF,UAAAT,MAAA,CAAUX,GAAG,OAAAW,MAAA,CAAIU,mBAAmB;EACtC,CAAC,EAAE3B,aAAE,CAAC;AACR,CAAC;AAAC,IAAA6B,QAAA,GAAAC,OAAA,cAEarC,aAAa"}
@@ -39,6 +39,5 @@ var getRequiredSchemas = function getRequiredSchemas(searchProperties) {
39
39
  return matchingRelation.entityIdentifier;
40
40
  }))).filter(Boolean);
41
41
  };
42
- var _default = getRequiredSchemas;
43
- exports["default"] = _default;
42
+ var _default = exports["default"] = getRequiredSchemas;
44
43
  //# sourceMappingURL=get-required-schemas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-required-schemas.js","names":["getRequiredSchemas","searchProperties","_ref","arguments","length","undefined","id","_ref$properties","properties","_ref$dynamicPropertie","dynamicProperties","_ref$relations","relations","concat","_toConsumableArray2","map","property","fieldParts","split","_property$split","_property$split2","_slicedToArray2","localFieldPart","matchingRelation","find","_ref2","localField","entityIdentifier","filter","Boolean","_default","exports"],"sources":["../../src/helpers/get-required-schemas.js"],"sourcesContent":["const getRequiredSchemas = (\n searchProperties,\n { id, properties = {}, dynamicProperties = {}, relations = [] } = {}\n) =>\n [\n id,\n ...searchProperties.map(property => {\n if (!property) return null;\n\n const fieldParts = property.split('.');\n const [localFieldPart] = property.split('.');\n\n if (\n fieldParts.length === 1 ||\n properties[localFieldPart] ||\n dynamicProperties[localFieldPart]\n ) {\n return null;\n }\n\n const matchingRelation = relations.find(({ localField }) => localField === localFieldPart);\n if (!matchingRelation) return null;\n\n return matchingRelation.entityIdentifier;\n })\n ].filter(Boolean);\n\nexport default getRequiredSchemas;\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAMA,kBAAkB,GAAG,SAArBA,kBAAkBA,CACtBC,gBAAgB;EAAA,IAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MACkD,CAAC,CAAC;IAAlEG,EAAE,GAAAJ,IAAA,CAAFI,EAAE;IAAAC,eAAA,GAAAL,IAAA,CAAEM,UAAU;IAAVA,UAAU,GAAAD,eAAA,cAAG,CAAC,CAAC,GAAAA,eAAA;IAAAE,qBAAA,GAAAP,IAAA,CAAEQ,iBAAiB;IAAjBA,iBAAiB,GAAAD,qBAAA,cAAG,CAAC,CAAC,GAAAA,qBAAA;IAAAE,cAAA,GAAAT,IAAA,CAAEU,SAAS;IAATA,SAAS,GAAAD,cAAA,cAAG,EAAE,GAAAA,cAAA;EAAA,OAE7D,CACEL,EAAE,EAAAO,MAAA,KAAAC,mBAAA,aACCb,gBAAgB,CAACc,GAAG,CAAC,UAAAC,QAAQ,EAAI;IAClC,IAAI,CAACA,QAAQ,EAAE,OAAO,IAAI;IAE1B,IAAMC,UAAU,GAAGD,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;IACtC,IAAAC,eAAA,GAAyBH,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;MAAAE,gBAAA,OAAAC,eAAA,aAAAF,eAAA;MAArCG,cAAc,GAAAF,gBAAA;IAErB,IACEH,UAAU,CAACb,MAAM,KAAK,CAAC,IACvBI,UAAU,CAACc,cAAc,CAAC,IAC1BZ,iBAAiB,CAACY,cAAc,CAAC,EACjC;MACA,OAAO,IAAI;IACb;IAEA,IAAMC,gBAAgB,GAAGX,SAAS,CAACY,IAAI,CAAC,UAAAC,KAAA;MAAA,IAAGC,UAAU,GAAAD,KAAA,CAAVC,UAAU;MAAA,OAAOA,UAAU,KAAKJ,cAAc;IAAA,EAAC;IAC1F,IAAI,CAACC,gBAAgB,EAAE,OAAO,IAAI;IAElC,OAAOA,gBAAgB,CAACI,gBAAgB;EAC1C,CAAC,CAAC,GACFC,MAAM,CAACC,OAAO,CAAC;AAAA;AAAC,IAAAC,QAAA,GAEL9B,kBAAkB;AAAA+B,OAAA,cAAAD,QAAA"}
1
+ {"version":3,"file":"get-required-schemas.js","names":["getRequiredSchemas","searchProperties","_ref","arguments","length","undefined","id","_ref$properties","properties","_ref$dynamicPropertie","dynamicProperties","_ref$relations","relations","concat","_toConsumableArray2","map","property","fieldParts","split","_property$split","_property$split2","_slicedToArray2","localFieldPart","matchingRelation","find","_ref2","localField","entityIdentifier","filter","Boolean","_default","exports"],"sources":["../../src/helpers/get-required-schemas.js"],"sourcesContent":["const getRequiredSchemas = (\n searchProperties,\n { id, properties = {}, dynamicProperties = {}, relations = [] } = {}\n) =>\n [\n id,\n ...searchProperties.map(property => {\n if (!property) return null;\n\n const fieldParts = property.split('.');\n const [localFieldPart] = property.split('.');\n\n if (\n fieldParts.length === 1 ||\n properties[localFieldPart] ||\n dynamicProperties[localFieldPart]\n ) {\n return null;\n }\n\n const matchingRelation = relations.find(({ localField }) => localField === localFieldPart);\n if (!matchingRelation) return null;\n\n return matchingRelation.entityIdentifier;\n })\n ].filter(Boolean);\n\nexport default getRequiredSchemas;\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAMA,kBAAkB,GAAG,SAArBA,kBAAkBA,CACtBC,gBAAgB;EAAA,IAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MACkD,CAAC,CAAC;IAAlEG,EAAE,GAAAJ,IAAA,CAAFI,EAAE;IAAAC,eAAA,GAAAL,IAAA,CAAEM,UAAU;IAAVA,UAAU,GAAAD,eAAA,cAAG,CAAC,CAAC,GAAAA,eAAA;IAAAE,qBAAA,GAAAP,IAAA,CAAEQ,iBAAiB;IAAjBA,iBAAiB,GAAAD,qBAAA,cAAG,CAAC,CAAC,GAAAA,qBAAA;IAAAE,cAAA,GAAAT,IAAA,CAAEU,SAAS;IAATA,SAAS,GAAAD,cAAA,cAAG,EAAE,GAAAA,cAAA;EAAA,OAE7D,CACEL,EAAE,EAAAO,MAAA,KAAAC,mBAAA,aACCb,gBAAgB,CAACc,GAAG,CAAC,UAAAC,QAAQ,EAAI;IAClC,IAAI,CAACA,QAAQ,EAAE,OAAO,IAAI;IAE1B,IAAMC,UAAU,GAAGD,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;IACtC,IAAAC,eAAA,GAAyBH,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;MAAAE,gBAAA,OAAAC,eAAA,aAAAF,eAAA;MAArCG,cAAc,GAAAF,gBAAA;IAErB,IACEH,UAAU,CAACb,MAAM,KAAK,CAAC,IACvBI,UAAU,CAACc,cAAc,CAAC,IAC1BZ,iBAAiB,CAACY,cAAc,CAAC,EACjC;MACA,OAAO,IAAI;IACb;IAEA,IAAMC,gBAAgB,GAAGX,SAAS,CAACY,IAAI,CAAC,UAAAC,KAAA;MAAA,IAAGC,UAAU,GAAAD,KAAA,CAAVC,UAAU;MAAA,OAAOA,UAAU,KAAKJ,cAAc;IAAA,EAAC;IAC1F,IAAI,CAACC,gBAAgB,EAAE,OAAO,IAAI;IAElC,OAAOA,gBAAgB,CAACI,gBAAgB;EAC1C,CAAC,CAAC,GACFC,MAAM,CAACC,OAAO,CAAC;AAAA;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEL/B,kBAAkB"}
@@ -12,6 +12,5 @@ var getSanitizedPropValues = function getSanitizedPropValues(values) {
12
12
  return curr.length ? [prev, ', ', curr] : prev;
13
13
  }) : values;
14
14
  };
15
- var _default = getSanitizedPropValues;
16
- exports["default"] = _default;
15
+ var _default = exports["default"] = getSanitizedPropValues;
17
16
  //# sourceMappingURL=get-sanitized-prop-values.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-sanitized-prop-values.js","names":["getSanitizedPropValues","values","length","reduce","prev","curr","_default","exports"],"sources":["../../src/helpers/get-sanitized-prop-values.js"],"sourcesContent":["const getSanitizedPropValues = values =>\n values.length ? values.reduce((prev, curr) => (curr.length ? [prev, ', ', curr] : prev)) : values;\n\nexport default getSanitizedPropValues;\n"],"mappings":";;;;;;;;;AAAA,IAAMA,sBAAsB,GAAG,SAAzBA,sBAAsBA,CAAGC,MAAM;EAAA,OACnCA,MAAM,CAACC,MAAM,GAAGD,MAAM,CAACE,MAAM,CAAC,UAACC,IAAI,EAAEC,IAAI;IAAA,OAAMA,IAAI,CAACH,MAAM,GAAG,CAACE,IAAI,EAAE,IAAI,EAAEC,IAAI,CAAC,GAAGD,IAAI;EAAA,CAAC,CAAC,GAAGH,MAAM;AAAA;AAAC,IAAAK,QAAA,GAErFN,sBAAsB;AAAAO,OAAA,cAAAD,QAAA"}
1
+ {"version":3,"file":"get-sanitized-prop-values.js","names":["getSanitizedPropValues","values","length","reduce","prev","curr","_default","exports"],"sources":["../../src/helpers/get-sanitized-prop-values.js"],"sourcesContent":["const getSanitizedPropValues = values =>\n values.length ? values.reduce((prev, curr) => (curr.length ? [prev, ', ', curr] : prev)) : values;\n\nexport default getSanitizedPropValues;\n"],"mappings":";;;;;;;;;AAAA,IAAMA,sBAAsB,GAAG,SAAzBA,sBAAsBA,CAAGC,MAAM;EAAA,OACnCA,MAAM,CAACC,MAAM,GAAGD,MAAM,CAACE,MAAM,CAAC,UAACC,IAAI,EAAEC,IAAI;IAAA,OAAMA,IAAI,CAACH,MAAM,GAAG,CAACE,IAAI,EAAE,IAAI,EAAEC,IAAI,CAAC,GAAGD,IAAI;EAAA,CAAC,CAAC,GAAGH,MAAM;AAAA;AAAC,IAAAK,QAAA,GAAAC,OAAA,cAErFP,sBAAsB"}
@@ -18,6 +18,5 @@ var getSearchFilterType = function getSearchFilterType(_ref, type) {
18
18
  return filterType === type;
19
19
  });
20
20
  };
21
- var _default = getSearchFilterType;
22
- exports["default"] = _default;
21
+ var _default = exports["default"] = getSearchFilterType;
23
22
  //# sourceMappingURL=get-search-filter-type.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-search-filter-type.js","names":["getSearchFilterType","_ref","type","_ref$settings","settings","_ref$settings2","_ref$settings2$filter","filters","length","filter","_ref2","filterType","_default","exports"],"sources":["../../src/helpers/get-search-filter-type.js"],"sourcesContent":["const getSearchFilterType = ({ settings: { filters = [] } = {} }, type) => {\n if (!filters.length) return [];\n\n return filters.filter(({ type: filterType }) => filterType === type);\n};\n\nexport default getSearchFilterType;\n"],"mappings":";;;;;;;;;AAAA,IAAMA,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAAC,IAAA,EAAyCC,IAAI,EAAK;EAAA,IAAAC,aAAA,GAAAF,IAAA,CAA5CG,QAAQ;IAAAC,cAAA,GAAAF,aAAA,cAAqB,CAAC,CAAC,GAAAA,aAAA;IAAAG,qBAAA,GAAAD,cAAA,CAAnBE,OAAO;IAAPA,OAAO,GAAAD,qBAAA,cAAG,EAAE,GAAAA,qBAAA;EACrD,IAAI,CAACC,OAAO,CAACC,MAAM,EAAE,OAAO,EAAE;EAE9B,OAAOD,OAAO,CAACE,MAAM,CAAC,UAAAC,KAAA;IAAA,IAASC,UAAU,GAAAD,KAAA,CAAhBR,IAAI;IAAA,OAAmBS,UAAU,KAAKT,IAAI;EAAA,EAAC;AACtE,CAAC;AAAC,IAAAU,QAAA,GAEaZ,mBAAmB;AAAAa,OAAA,cAAAD,QAAA"}
1
+ {"version":3,"file":"get-search-filter-type.js","names":["getSearchFilterType","_ref","type","_ref$settings","settings","_ref$settings2","_ref$settings2$filter","filters","length","filter","_ref2","filterType","_default","exports"],"sources":["../../src/helpers/get-search-filter-type.js"],"sourcesContent":["const getSearchFilterType = ({ settings: { filters = [] } = {} }, type) => {\n if (!filters.length) return [];\n\n return filters.filter(({ type: filterType }) => filterType === type);\n};\n\nexport default getSearchFilterType;\n"],"mappings":";;;;;;;;;AAAA,IAAMA,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAAC,IAAA,EAAyCC,IAAI,EAAK;EAAA,IAAAC,aAAA,GAAAF,IAAA,CAA5CG,QAAQ;IAAAC,cAAA,GAAAF,aAAA,cAAqB,CAAC,CAAC,GAAAA,aAAA;IAAAG,qBAAA,GAAAD,cAAA,CAAnBE,OAAO;IAAPA,OAAO,GAAAD,qBAAA,cAAG,EAAE,GAAAA,qBAAA;EACrD,IAAI,CAACC,OAAO,CAACC,MAAM,EAAE,OAAO,EAAE;EAE9B,OAAOD,OAAO,CAACE,MAAM,CAAC,UAAAC,KAAA;IAAA,IAASC,UAAU,GAAAD,KAAA,CAAhBR,IAAI;IAAA,OAAmBS,UAAU,KAAKT,IAAI;EAAA,EAAC;AACtE,CAAC;AAAC,IAAAU,QAAA,GAAAC,OAAA,cAEab,mBAAmB"}
@@ -39,6 +39,5 @@ var buildFieldName = function buildFieldName(relations, fieldValue, stringProps)
39
39
  var getSortbyFieldName = function getSortbyFieldName(relations, sortby, stringProps, isSortbyArray) {
40
40
  return isSortbyArray ? buildFieldName(relations, sortby[0], stringProps) : buildFieldName(relations, sortby, stringProps);
41
41
  };
42
- var _default = getSortbyFieldName;
43
- exports["default"] = _default;
42
+ var _default = exports["default"] = getSortbyFieldName;
44
43
  //# sourceMappingURL=get-sort-by-field-name.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-sort-by-field-name.js","names":["_constants","require","buildFieldName","relations","fieldValue","stringProps","field","Array","isArray","updatedField","includes","_field$split","split","_field$split2","_slicedToArray2","relationName","relationProp","_relations$filter","filter","_ref","localField","_relations$filter2","relation","_ref2","_ref2$entityIdentifie","entityIdentifier","concat","KEYWORD","getSortbyFieldName","sortby","isSortbyArray","_default","exports"],"sources":["../../src/helpers/get-sort-by-field-name.js"],"sourcesContent":["import { KEYWORD } from '../constants';\n\nconst buildFieldName = (relations, fieldValue, stringProps) => {\n const field = Array.isArray(fieldValue) ? fieldValue[0] : fieldValue;\n if (!field) return null;\n\n let updatedField = field;\n\n if (field.includes('.')) {\n const [relationName, relationProp] = field.split('.');\n\n const [relation] = relations.filter(({ localField }) => localField === relationName);\n const { entityIdentifier = '' } = relation || {};\n if (entityIdentifier && entityIdentifier !== relationName)\n updatedField = `${entityIdentifier}.${relationProp}`;\n }\n return stringProps.includes(updatedField) ? `${field}.${KEYWORD}` : field;\n};\n\nconst getSortbyFieldName = (relations, sortby, stringProps, isSortbyArray) =>\n isSortbyArray\n ? buildFieldName(relations, sortby[0], stringProps)\n : buildFieldName(relations, sortby, stringProps);\n\nexport default getSortbyFieldName;\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAIC,SAAS,EAAEC,UAAU,EAAEC,WAAW,EAAK;EAC7D,IAAMC,KAAK,GAAGC,KAAK,CAACC,OAAO,CAACJ,UAAU,CAAC,GAAGA,UAAU,CAAC,CAAC,CAAC,GAAGA,UAAU;EACpE,IAAI,C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AI,OAAA,cAAAD,QAAA"}
1
+ {"version":3,"file":"get-sort-by-field-name.js","names":["_constants","require","buildFieldName","relations","fieldValue","stringProps","field","Array","isArray","updatedField","includes","_field$split","split","_field$split2","_slicedToArray2","relationName","relationProp","_relations$filter","filter","_ref","localField","_relations$filter2","relation","_ref2","_ref2$entityIdentifie","entityIdentifier","concat","KEYWORD","getSortbyFieldName","sortby","isSortbyArray","_default","exports"],"sources":["../../src/helpers/get-sort-by-field-name.js"],"sourcesContent":["import { KEYWORD } from '../constants';\n\nconst buildFieldName = (relations, fieldValue, stringProps) => {\n const field = Array.isArray(fieldValue) ? fieldValue[0] : fieldValue;\n if (!field) return null;\n\n let updatedField = field;\n\n if (field.includes('.')) {\n const [relationName, relationProp] = field.split('.');\n\n const [relation] = relations.filter(({ localField }) => localField === relationName);\n const { entityIdentifier = '' } = relation || {};\n if (entityIdentifier && entityIdentifier !== relationName)\n updatedField = `${entityIdentifier}.${relationProp}`;\n }\n return stringProps.includes(updatedField) ? `${field}.${KEYWORD}` : field;\n};\n\nconst getSortbyFieldName = (relations, sortby, stringProps, isSortbyArray) =>\n isSortbyArray\n ? buildFieldName(relations, sortby[0], stringProps)\n : buildFieldName(relations, sortby, stringProps);\n\nexport default getSortbyFieldName;\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAIC,SAAS,EAAEC,UAAU,EAAEC,WAAW,EAAK;EAC7D,IAAMC,KAAK,GAAGC,KAAK,CAACC,OAAO,CAACJ,UAAU,CAAC,GAAGA,UAAU,CAAC,CAAC,CAAC,GAAGA,UAAU;EACpE,IAAI,CAACE,KAAK,EAAE,OAAO,IAAI;EAEvB,IAAIG,YAAY,GAAGH,KAAK;EAExB,IAAIA,KAAK,CAACI,QAAQ,CAAC,GAAG,CAAC,EAAE;IACvB,IAAAC,YAAA,GAAqCL,KAAK,CAACM,KAAK,CAAC,GAAG,CAAC;MAAAC,aAAA,OAAAC,eAAA,aAAAH,YAAA;MAA9CI,YAAY,GAAAF,aAAA;MAAEG,YAAY,GAAAH,aAAA;IAEjC,IAAAI,iBAAA,GAAmBd,SAAS,CAACe,MAAM,CAAC,UAAAC,IAAA;QAAA,IAAGC,UAAU,GAAAD,IAAA,CAAVC,UAAU;QAAA,OAAOA,UAAU,KAAKL,YAAY;MAAA,EAAC;MAAAM,kBAAA,OAAAP,eAAA,aAAAG,iBAAA;MAA7EK,QAAQ,GAAAD,kBAAA;IACf,IAAAE,KAAA,GAAkCD,QAAQ,IAAI,CAAC,CAAC;MAAAE,qBAAA,GAAAD,KAAA,CAAxCE,gBAAgB;MAAhBA,gBAAgB,GAAAD,qBAAA,cAAG,EAAE,GAAAA,qBAAA;IAC7B,IAAIC,gBAAgB,IAAIA,gBAAgB,KAAKV,YAAY,EACvDN,YAAY,MAAAiB,MAAA,CAAMD,gBAAgB,OAAAC,MAAA,CAAIV,YAAY,CAAE;EACxD;EACA,OAAOX,WAAW,CAACK,QAAQ,CAACD,YAAY,CAAC,MAAAiB,MAAA,CAAMpB,KAAK,OAAAoB,MAAA,CAAIC,kBAAO,IAAKrB,KAAK;AAC3E,CAAC;AAED,IAAMsB,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAIzB,SAAS,EAAE0B,MAAM,EAAExB,WAAW,EAAEyB,aAAa;EAAA,OACvEA,aAAa,GACT5B,cAAc,CAACC,SAAS,EAAE0B,MAAM,CAAC,CAAC,CAAC,EAAExB,WAAW,CAAC,GACjDH,cAAc,CAACC,SAAS,EAAE0B,MAAM,EAAExB,WAAW,CAAC;AAAA;AAAC,IAAA0B,QAAA,GAAAC,OAAA,cAEtCJ,kBAAkB"}
@@ -17,6 +17,5 @@ var getUnpublishedEntityName = function getUnpublishedEntityName(entity) {
17
17
  return word !== _constants.PUBLISHED;
18
18
  }).join(UNDERSCORE);
19
19
  };
20
- var _default = getUnpublishedEntityName;
21
- exports["default"] = _default;
20
+ var _default = exports["default"] = getUnpublishedEntityName;
22
21
  //# sourceMappingURL=get-unpublished-entity-name.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-unpublished-entity-name.js","names":["_constants","require","UNDERSCORE","getUnpublishedEntityName","entity","split","filter","word","PUBLISHED","join","_default","exports"],"sources":["../../src/helpers/get-unpublished-entity-name.js"],"sourcesContent":["import { PUBLISHED } from '../constants';\n\nconst UNDERSCORE = '_';\n\nconst getUnpublishedEntityName = entity =>\n entity\n .split(UNDERSCORE)\n .filter(word => word !== PUBLISHED)\n .join(UNDERSCORE);\n\nexport default getUnpublishedEntityName;\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,UAAU,GAAG,GAAG;AAEtB,IAAMC,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAGC,MAAM;EAAA,OACrCA,MAAM,CACHC,KAAK,CAACH,UAAU,CAAC,CACjBI,MAAM,CAAC,UAAAC,IAAI;IAAA,OAAIA,IAAI,KAAKC,oBAAS;EAAA,EAAC,CAClCC,IAAI,CAACP,UAAU,CAAC;AAAA;AAAC,IAAAQ,QAAA,GAEPP,wBAAwB;AAAAQ,OAAA,cAAAD,QAAA"}
1
+ {"version":3,"file":"get-unpublished-entity-name.js","names":["_constants","require","UNDERSCORE","getUnpublishedEntityName","entity","split","filter","word","PUBLISHED","join","_default","exports"],"sources":["../../src/helpers/get-unpublished-entity-name.js"],"sourcesContent":["import { PUBLISHED } from '../constants';\n\nconst UNDERSCORE = '_';\n\nconst getUnpublishedEntityName = entity =>\n entity\n .split(UNDERSCORE)\n .filter(word => word !== PUBLISHED)\n .join(UNDERSCORE);\n\nexport default getUnpublishedEntityName;\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,UAAU,GAAG,GAAG;AAEtB,IAAMC,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAGC,MAAM;EAAA,OACrCA,MAAM,CACHC,KAAK,CAACH,UAAU,CAAC,CACjBI,MAAM,CAAC,UAAAC,IAAI;IAAA,OAAIA,IAAI,KAAKC,oBAAS;EAAA,EAAC,CAClCC,IAAI,CAACP,UAAU,CAAC;AAAA;AAAC,IAAAQ,QAAA,GAAAC,OAAA,cAEPR,wBAAwB"}
@@ -17,6 +17,5 @@ var getUpdatedFilterBy = function getUpdatedFilterBy(inheritedFilters, entityDat
17
17
  }
18
18
  return [];
19
19
  };
20
- var _default = getUpdatedFilterBy;
21
- exports["default"] = _default;
20
+ var _default = exports["default"] = getUpdatedFilterBy;
22
21
  //# sourceMappingURL=get-updated-filter-by.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-updated-filter-by.js","names":["_lodash","_interopRequireDefault","require","_buildInheritedFilters","getUpdatedFilterBy","inheritedFilters","entityData","currentSchema","filterEntitySchema","itemId","props","length","relationFilters","buildInheritedFilters","uniq","concat","_toConsumableArray2","filterBy","_default","exports"],"sources":["../../src/helpers/get-updated-filter-by.js"],"sourcesContent":["import uniq from 'lodash.uniq';\nimport buildInheritedFilters from './build-inherited-filters';\n\nconst getUpdatedFilterBy = (\n inheritedFilters,\n entityData,\n currentSchema,\n filterEntitySchema,\n itemId,\n props\n) => {\n if (inheritedFilters && inheritedFilters.length) {\n const relationFilters = buildInheritedFilters(\n entityData,\n inheritedFilters,\n currentSchema,\n filterEntitySchema,\n itemId\n );\n\n return relationFilters.length ? uniq([...props.filterBy, ...relationFilters]) : null;\n }\n return [];\n};\n\nexport default getUpdatedFilterBy;\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAME,kBAAkB,GAAG,SAArBA,kBAAkBA,CACtBC,gBAAgB,EAChBC,UAAU,EACVC,aAAa,EACbC,kBAAkB,EAClBC,MAAM,EACNC,KAAK,EACF;EACH,IAAIL,gBAAgB,IAAIA,gBAAgB,CAACM,MAAM,EAAE;IAC/C,IAAMC,eAAe,GAAG,IAAAC,iCAAqB,EAC3CP,UAAU,EACVD,gBAAgB,EAChBE,aAAa,EACbC,kBAAkB,EAClBC,MACF,CAAC;IAED,OAAOG,eAAe,CAACD,MAAM,GAAG,IAAAG,kBAAI,KAAAC,MAAA,KAAAC,mBAAA,aAAKN,KAAK,CAACO,QAAQ,OAAAD,mBAAA,aAAKJ,eAAe,EAAC,CAAC,GAAG,IAAI;EACtF;EACA,OAAO,EAAE;AACX,CAAC;AAAC,IAAAM,QAAA,GAEad,kBAAkB;AAAAe,OAAA,cAAAD,QAAA"}
1
+ {"version":3,"file":"get-updated-filter-by.js","names":["_lodash","_interopRequireDefault","require","_buildInheritedFilters","getUpdatedFilterBy","inheritedFilters","entityData","currentSchema","filterEntitySchema","itemId","props","length","relationFilters","buildInheritedFilters","uniq","concat","_toConsumableArray2","filterBy","_default","exports"],"sources":["../../src/helpers/get-updated-filter-by.js"],"sourcesContent":["import uniq from 'lodash.uniq';\nimport buildInheritedFilters from './build-inherited-filters';\n\nconst getUpdatedFilterBy = (\n inheritedFilters,\n entityData,\n currentSchema,\n filterEntitySchema,\n itemId,\n props\n) => {\n if (inheritedFilters && inheritedFilters.length) {\n const relationFilters = buildInheritedFilters(\n entityData,\n inheritedFilters,\n currentSchema,\n filterEntitySchema,\n itemId\n );\n\n return relationFilters.length ? uniq([...props.filterBy, ...relationFilters]) : null;\n }\n return [];\n};\n\nexport default getUpdatedFilterBy;\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAME,kBAAkB,GAAG,SAArBA,kBAAkBA,CACtBC,gBAAgB,EAChBC,UAAU,EACVC,aAAa,EACbC,kBAAkB,EAClBC,MAAM,EACNC,KAAK,EACF;EACH,IAAIL,gBAAgB,IAAIA,gBAAgB,CAACM,MAAM,EAAE;IAC/C,IAAMC,eAAe,GAAG,IAAAC,iCAAqB,EAC3CP,UAAU,EACVD,gBAAgB,EAChBE,aAAa,EACbC,kBAAkB,EAClBC,MACF,CAAC;IAED,OAAOG,eAAe,CAACD,MAAM,GAAG,IAAAG,kBAAI,KAAAC,MAAA,KAAAC,mBAAA,aAAKN,KAAK,CAACO,QAAQ,OAAAD,mBAAA,aAAKJ,eAAe,EAAC,CAAC,GAAG,IAAI;EACtF;EACA,OAAO,EAAE;AACX,CAAC;AAAC,IAAAM,QAAA,GAAAC,OAAA,cAEaf,kBAAkB"}
@@ -31,6 +31,5 @@ var getWrappedValueWithLink = function getWrappedValueWithLink(value, link) {
31
31
  href: link
32
32
  }, value) : value;
33
33
  };
34
- var _default = getWrappedValueWithLink;
35
- exports["default"] = _default;
34
+ var _default = exports["default"] = getWrappedValueWithLink;
36
35
  //# sourceMappingURL=get-wrapped-value-with-link.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-wrapped-value-with-link.js","names":["_react","_interopRequireDefault","require","_BlazeLink","getWrappedValueWithLink","value","link","keyPrefix","arguments","length","undefined","Array","isArray","arrayResults","map","arrValue","index","keyField","url","keyValue","isLastItem","keyFieldValue","createElement","Fragment","key","join","href","_default","exports"],"sources":["../../src/helpers/get-wrapped-value-with-link.js"],"sourcesContent":["import React from 'react';\nimport BlazeLink from '../components/BlazeLink';\n\nconst getWrappedValueWithLink = (value, link, keyPrefix = '') => {\n if (Array.isArray(value)) {\n const arrayResults = value.map((arrValue, index) => {\n const { keyField, url } = arrValue;\n const keyValue = arrValue[keyField];\n\n const isLastItem = index === value.length - 1;\n const keyFieldValue = isLastItem ? keyValue : <>{keyValue}, </>;\n\n return url ? (\n <BlazeLink key={[keyPrefix, index].join('-')} href={url}>\n {<>{keyFieldValue} </>}\n </BlazeLink>\n ) : (\n <>{keyFieldValue} </>\n );\n });\n\n return arrayResults.length ? arrayResults : null;\n }\n\n return link ? <BlazeLink href={link}>{value}</BlazeLink> : value;\n};\n\nexport default getWrappedValueWithLink;\n"],"mapp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,OAAOP,IAAI,gBAAGN,MAAA,YAAAsB,aAAA,CAACnB,UAAA,WAAS;IAACuB,IAAI,EAAEpB;EAAK,GAAED,KAAiB,CAAC,GAAGA,KAAK;AAClE,CAAC;AAAC,IAAAsB,QAAA,GAEavB,uBAAuB;AAAAwB,OAAA,cAAAD,QAAA"}
1
+ {"version":3,"file":"get-wrapped-value-with-link.js","names":["_react","_interopRequireDefault","require","_BlazeLink","getWrappedValueWithLink","value","link","keyPrefix","arguments","length","undefined","Array","isArray","arrayResults","map","arrValue","index","keyField","url","keyValue","isLastItem","keyFieldValue","createElement","Fragment","key","join","href","_default","exports"],"sources":["../../src/helpers/get-wrapped-value-with-link.js"],"sourcesContent":["import React from 'react';\nimport BlazeLink from '../components/BlazeLink';\n\nconst getWrappedValueWithLink = (value, link, keyPrefix = '') => {\n if (Array.isArray(value)) {\n const arrayResults = value.map((arrValue, index) => {\n const { keyField, url } = arrValue;\n const keyValue = arrValue[keyField];\n\n const isLastItem = index === value.length - 1;\n const keyFieldValue = isLastItem ? keyValue : <>{keyValue}, </>;\n\n return url ? (\n <BlazeLink key={[keyPrefix, index].join('-')} href={url}>\n {<>{keyFieldValue} </>}\n </BlazeLink>\n ) : (\n <>{keyFieldValue} </>\n );\n });\n\n return arrayResults.length ? arrayResults : null;\n }\n\n return link ? <BlazeLink href={link}>{value}</BlazeLink> : value;\n};\n\nexport default getWrappedValueWithLink;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAME,uBAAuB,GAAG,SAA1BA,uBAAuBA,CAAIC,KAAK,EAAEC,IAAI,EAAqB;EAAA,IAAnBC,SAAS,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EAC1D,IAAIG,KAAK,CAACC,OAAO,CAACP,KAAK,CAAC,EAAE;IACxB,IAAMQ,YAAY,GAAGR,KAAK,CAACS,GAAG,CAAC,UAACC,QAAQ,EAAEC,KAAK,EAAK;MAClD,IAAQC,QAAQ,GAAUF,QAAQ,CAA1BE,QAAQ;QAAEC,GAAG,GAAKH,QAAQ,CAAhBG,GAAG;MACrB,IAAMC,QAAQ,GAAGJ,QAAQ,CAACE,QAAQ,CAAC;MAEnC,IAAMG,UAAU,GAAGJ,KAAK,KAAKX,KAAK,CAACI,MAAM,GAAG,CAAC;MAC7C,IAAMY,aAAa,GAAGD,UAAU,GAAGD,QAAQ,gBAAGnB,MAAA,YAAAsB,aAAA,CAAAtB,MAAA,YAAAuB,QAAA,QAAGJ,QAAQ,EAAC,IAAI,CAAC;MAE/D,OAAOD,GAAG,gBACRlB,MAAA,YAAAsB,aAAA,CAACnB,UAAA,WAAS;QAACqB,GAAG,EAAE,CAACjB,SAAS,EAAES,KAAK,CAAC,CAACS,IAAI,CAAC,GAAG,CAAE;QAACC,IAAI,EAAER;MAAI,gBACrDlB,MAAA,YAAAsB,aAAA,CAAAtB,MAAA,YAAAuB,QAAA,QAAGF,aAAa,EAAC,GAAG,CACZ,CAAC,gBAEZrB,MAAA,YAAAsB,aAAA,CAAAtB,MAAA,YAAAuB,QAAA,QAAGF,aAAa,EAAC,GAAG,CACrB;IACH,CAAC,CAAC;IAEF,OAAOR,YAAY,CAACJ,MAAM,GAAGI,YAAY,GAAG,IAAI;EAClD;EAEA,OAAOP,IAAI,gBAAGN,MAAA,YAAAsB,aAAA,CAACnB,UAAA,WAAS;IAACuB,IAAI,EAAEpB;EAAK,GAAED,KAAiB,CAAC,GAAGA,KAAK;AAClE,CAAC;AAAC,IAAAsB,QAAA,GAAAC,OAAA,cAEaxB,uBAAuB"}
@@ -15,6 +15,5 @@ var hasChildren = function hasChildren(children) {
15
15
  }
16
16
  return isChildrenArray && !!children.length;
17
17
  };
18
- var _default = hasChildren;
19
- exports["default"] = _default;
18
+ var _default = exports["default"] = hasChildren;
20
19
  //# sourceMappingURL=has-children.js.map