@blaze-cms/react-page-builder 0.127.0-project-admin-customisations.3 → 0.127.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (613) hide show
  1. package/CHANGELOG.md +6 -8
  2. package/README.md +4 -0
  3. package/lib/BannerContext/helpers/index.js.map +1 -1
  4. package/lib/BannerContext/helpers/set-initial-banner-counters.js.map +1 -1
  5. package/lib/BannerContext/index.js.map +1 -1
  6. package/lib/HOC/index.js.map +1 -1
  7. package/lib/HOC/withInfiniteScroll.js.map +1 -1
  8. package/lib/HOC/withTitle.js.map +1 -1
  9. package/lib/PBContext/index.js.map +1 -1
  10. package/lib/application/query/index.js.map +1 -1
  11. package/lib/components/BackToTop/BackToTop.js.map +1 -1
  12. package/lib/components/BackToTop/index.js.map +1 -1
  13. package/lib/components/Banner/AdSlotRender.js.map +1 -1
  14. package/lib/components/Banner/Banner.js.map +1 -1
  15. package/lib/components/Banner/BannerRender.js +5 -5
  16. package/lib/components/Banner/BannerRender.js.map +1 -1
  17. package/lib/components/Banner/helpers.js +2 -2
  18. package/lib/components/Banner/helpers.js.map +1 -1
  19. package/lib/components/Banner/index.js.map +1 -1
  20. package/lib/components/BlazeLink.js.map +1 -1
  21. package/lib/components/Breadcrumb/Breadcrumb.js.map +1 -1
  22. package/lib/components/Breadcrumb/index.js.map +1 -1
  23. package/lib/components/Button.js.map +1 -1
  24. package/lib/components/Card/Card.js.map +1 -1
  25. package/lib/components/Card/CardContainer.js +3 -3
  26. package/lib/components/Card/CardContainer.js.map +1 -1
  27. package/lib/components/Card/CardFactory.js.map +1 -1
  28. package/lib/components/Card/CardRender.js.map +1 -1
  29. package/lib/components/Card/constants.js.map +1 -1
  30. package/lib/components/Card/helpers/filter-query-setup.js.map +1 -1
  31. package/lib/components/Card/helpers/filters-setup.js.map +1 -1
  32. package/lib/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -1
  33. package/lib/components/Card/helpers/get-published-listing-url.js.map +1 -1
  34. package/lib/components/Card/helpers/index.js.map +1 -1
  35. package/lib/components/Card/helpers/should-return.js.map +1 -1
  36. package/lib/components/Card/helpers/should-skip-single-query.js.map +1 -1
  37. package/lib/components/Card/helpers/use-dynamic-size-key.js.map +1 -1
  38. package/lib/components/Card/index.js.map +1 -1
  39. package/lib/components/Carousel/Carousel.js.map +1 -1
  40. package/lib/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
  41. package/lib/components/Carousel/CarouselImage/index.js.map +1 -1
  42. package/lib/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
  43. package/lib/components/Carousel/CarouselRender/index.js.map +1 -1
  44. package/lib/components/Carousel/index.js.map +1 -1
  45. package/lib/components/CarouselWrapper.js.map +1 -1
  46. package/lib/components/ClickWrapper.js.map +1 -1
  47. package/lib/components/Code/Code.js +7 -4
  48. package/lib/components/Code/Code.js.map +1 -1
  49. package/lib/components/Code/ScriptTag.js.map +1 -1
  50. package/lib/components/Code/helpers/index.js.map +1 -1
  51. package/lib/components/Code/helpers/wrap-script-tags.js +7 -3
  52. package/lib/components/Code/helpers/wrap-script-tags.js.map +1 -1
  53. package/lib/components/Code/index.js.map +1 -1
  54. package/lib/components/ContentGroup/ContentGroup.js.map +1 -1
  55. package/lib/components/ContentGroup/ContentGroupTabs.js.map +1 -1
  56. package/lib/components/ContentGroup/constants.js.map +1 -1
  57. package/lib/components/ContentGroup/helpers/get-active-tab.js.map +1 -1
  58. package/lib/components/ContentGroup/helpers/get-sections-data.js.map +1 -1
  59. package/lib/components/ContentGroup/helpers/index.js.map +1 -1
  60. package/lib/components/ContentGroup/index.js.map +1 -1
  61. package/lib/components/ContentGroupSection/ContentGroupSection.js +5 -3
  62. package/lib/components/ContentGroupSection/ContentGroupSection.js.map +1 -1
  63. package/lib/components/ContentGroupSection/index.js.map +1 -1
  64. package/lib/components/DataSummary/DataSummaryFactory.js.map +1 -1
  65. package/lib/components/DataSummary/DataSummaryRender.js.map +1 -1
  66. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -1
  67. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
  68. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js.map +1 -1
  69. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map +1 -1
  70. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
  71. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js.map +1 -1
  72. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.map +1 -1
  73. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
  74. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/index.js.map +1 -1
  75. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.map +1 -1
  76. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
  77. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/index.js.map +1 -1
  78. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.map +1 -1
  79. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
  80. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/index.js.map +1 -1
  81. package/lib/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
  82. package/lib/components/DataSummary/helpers/build-loop-props-content.js.map +1 -1
  83. package/lib/components/DataSummary/helpers/build-props-to-display-with-content.js.map +1 -1
  84. package/lib/components/DataSummary/helpers/get-data-summary-query.js.map +1 -1
  85. package/lib/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -1
  86. package/lib/components/DataSummary/helpers/get-link-to-published-content.js.map +1 -1
  87. package/lib/components/DataSummary/helpers/get-loop-props-limit.js.map +1 -1
  88. package/lib/components/DataSummary/helpers/get-prop-value.js.map +1 -1
  89. package/lib/components/DataSummary/helpers/get-value-from-array.js.map +1 -1
  90. package/lib/components/DataSummary/helpers/index.js.map +1 -1
  91. package/lib/components/DataSummary/helpers/parse-boolean-values.js.map +1 -1
  92. package/lib/components/DataSummary/helpers/strip-summary-props-content.js.map +1 -1
  93. package/lib/components/DataSummary/index.js.map +1 -1
  94. package/lib/components/EmailConfirm/EmailConfirm.js.map +1 -1
  95. package/lib/components/EmailConfirm/index.js.map +1 -1
  96. package/lib/components/EmailConfirm/mutation.js.map +1 -1
  97. package/lib/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
  98. package/lib/components/Image/GlobalLightbox/NavButton.js.map +1 -1
  99. package/lib/components/Image/GlobalLightbox/index.js.map +1 -1
  100. package/lib/components/Image/Image.js.map +1 -1
  101. package/lib/components/Image/ImageDetails.js.map +1 -1
  102. package/lib/components/Image/ImageFactory.js.map +1 -1
  103. package/lib/components/Image/ImageRender.js.map +1 -1
  104. package/lib/components/Image/Lightbox/Lightbox.js.map +1 -1
  105. package/lib/components/Image/Lightbox/index.js.map +1 -1
  106. package/lib/components/Image/index.js.map +1 -1
  107. package/lib/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
  108. package/lib/components/ItemList/ItemListButton/index.js.map +1 -1
  109. package/lib/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
  110. package/lib/components/ItemList/ItemListCounter/index.js.map +1 -1
  111. package/lib/components/ItemList/ItemListNew/ItemListNew.js.map +1 -1
  112. package/lib/components/ItemList/ItemListNew/index.js.map +1 -1
  113. package/lib/components/ItemList/constants.js.map +1 -1
  114. package/lib/components/ItemList/helpers/get-item-list-data.js.map +1 -1
  115. package/lib/components/ItemList/helpers/get-item-list-id.js.map +1 -1
  116. package/lib/components/ItemList/helpers/get-item-list-ids.js.map +1 -1
  117. package/lib/components/ItemList/helpers/index.js.map +1 -1
  118. package/lib/components/ItemList/helpers/set-item-list-id.js.map +1 -1
  119. package/lib/components/ItemList/helpers/set-param-and-redirect.js.map +1 -1
  120. package/lib/components/ItemList/hooks/index.js.map +1 -1
  121. package/lib/components/ItemList/hooks/use-item-list-id.js.map +1 -1
  122. package/lib/components/Layout/Layout.js.map +1 -1
  123. package/lib/components/Layout/constants.js.map +1 -1
  124. package/lib/components/Layout/helpers/check-if-row-has-columns.js.map +1 -1
  125. package/lib/components/Layout/helpers/get-styles-to-update.js.map +1 -1
  126. package/lib/components/Layout/helpers/index.js.map +1 -1
  127. package/lib/components/Layout/index.js.map +1 -1
  128. package/lib/components/LazyImage/LazyImage.js.map +1 -1
  129. package/lib/components/LazyImage/index.js.map +1 -1
  130. package/lib/components/List/ListBuilder.js.map +1 -1
  131. package/lib/components/List/ListFactory.js.map +1 -1
  132. package/lib/components/List/ListRender.js.map +1 -1
  133. package/lib/components/List/components/Cards/CardRenderWithInfiniteScroll.js.map +1 -1
  134. package/lib/components/List/components/Cards/CardsRender.js.map +1 -1
  135. package/lib/components/List/components/Cards/CardsRenderItem.js +1 -1
  136. package/lib/components/List/components/Cards/CardsRenderItem.js.map +1 -1
  137. package/lib/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
  138. package/lib/components/List/components/Cards/index.js.map +1 -1
  139. package/lib/components/List/components/Full/FullRender.js.map +1 -1
  140. package/lib/components/List/components/Full/FullRenderItem.js +1 -1
  141. package/lib/components/List/components/Full/FullRenderItem.js.map +1 -1
  142. package/lib/components/List/components/Full/FullRenderWithInfiniteScroll.js.map +1 -1
  143. package/lib/components/List/components/Full/index.js.map +1 -1
  144. package/lib/components/List/components/Header/ListHeader.js.map +1 -1
  145. package/lib/components/List/components/Header/index.js.map +1 -1
  146. package/lib/components/List/components/Pagination/Classic.js.map +1 -1
  147. package/lib/components/List/components/Pagination/ListPagination.js.map +1 -1
  148. package/lib/components/List/components/Pagination/LoadMore.js.map +1 -1
  149. package/lib/components/List/components/Pagination/index.js.map +1 -1
  150. package/lib/components/List/components/helpers/check-if-should-render-banner.js.map +1 -1
  151. package/lib/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -1
  152. package/lib/components/List/components/helpers/index.js.map +1 -1
  153. package/lib/components/List/components/index.js.map +1 -1
  154. package/lib/components/List/constants.js.map +1 -1
  155. package/lib/components/List/helpers/build-az-aggregations.js.map +1 -1
  156. package/lib/components/List/helpers/build-az-url.js.map +1 -1
  157. package/lib/components/List/helpers/build-pagination-items.js.map +1 -1
  158. package/lib/components/List/helpers/build-pagination-url.js.map +1 -1
  159. package/lib/components/List/helpers/get-az-query-filter.js.map +1 -1
  160. package/lib/components/List/helpers/get-items-per-page-to-use.js.map +1 -1
  161. package/lib/components/List/helpers/get-sort-props.js.map +1 -1
  162. package/lib/components/List/helpers/has-required-item-list-details.js.map +1 -1
  163. package/lib/components/List/helpers/index.js.map +1 -1
  164. package/lib/components/List/helpers/sort-aggs.js.map +1 -1
  165. package/lib/components/List/index.js.map +1 -1
  166. package/lib/components/Menu/Menu.js.map +1 -1
  167. package/lib/components/Menu/MenuContext.js.map +1 -1
  168. package/lib/components/Menu/index.js.map +1 -1
  169. package/lib/components/MenuItem/MenuItem.js.map +1 -1
  170. package/lib/components/MenuItem/index.js.map +1 -1
  171. package/lib/components/Modal/Modal.js.map +1 -1
  172. package/lib/components/Modal/index.js.map +1 -1
  173. package/lib/components/SearchContent/SearchContent.js.map +1 -1
  174. package/lib/components/SearchContent/SearchContentItems.js +1 -1
  175. package/lib/components/SearchContent/SearchContentItems.js.map +1 -1
  176. package/lib/components/SearchContent/SearchContentResults.js.map +1 -1
  177. package/lib/components/SearchContent/SearchContentToggleIcon.js.map +1 -1
  178. package/lib/components/SearchContent/index.js.map +1 -1
  179. package/lib/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
  180. package/lib/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
  181. package/lib/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -1
  182. package/lib/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
  183. package/lib/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
  184. package/lib/components/SearchFilter/SearchFilter/index.js.map +1 -1
  185. package/lib/components/SearchFilter/SearchFilterContainer.js.map +1 -1
  186. package/lib/components/SearchFilter/components/Checkbox.js.map +1 -1
  187. package/lib/components/SearchFilter/components/Range.js.map +1 -1
  188. package/lib/components/SearchFilter/components/Select.js.map +1 -1
  189. package/lib/components/SearchFilter/components/TextSearch.js.map +1 -1
  190. package/lib/components/SearchFilter/components/index.js.map +1 -1
  191. package/lib/components/SearchFilter/constants.js.map +1 -1
  192. package/lib/components/SearchFilter/helpers/build-filters-query.js.map +1 -1
  193. package/lib/components/SearchFilter/helpers/build-new-query.js.map +1 -1
  194. package/lib/components/SearchFilter/helpers/build-query.js.map +1 -1
  195. package/lib/components/SearchFilter/helpers/build-raw-query-stringified.js.map +1 -1
  196. package/lib/components/SearchFilter/helpers/calculate-min-max.js.map +1 -1
  197. package/lib/components/SearchFilter/helpers/calculate-step.js.map +1 -1
  198. package/lib/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -1
  199. package/lib/components/SearchFilter/helpers/decode-encode.js.map +1 -1
  200. package/lib/components/SearchFilter/helpers/get-display-value.js.map +1 -1
  201. package/lib/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
  202. package/lib/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -1
  203. package/lib/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -1
  204. package/lib/components/SearchFilter/helpers/get-range-value.js.map +1 -1
  205. package/lib/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
  206. package/lib/components/SearchFilter/helpers/get-select-options.js.map +1 -1
  207. package/lib/components/SearchFilter/helpers/index.js.map +1 -1
  208. package/lib/components/SearchFilter/helpers/is-device-desktop.js.map +1 -1
  209. package/lib/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
  210. package/lib/components/SearchFilter/index.js.map +1 -1
  211. package/lib/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
  212. package/lib/components/SearchFilterSort/constants.js.map +1 -1
  213. package/lib/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
  214. package/lib/components/SearchFilterSort/helpers/index.js.map +1 -1
  215. package/lib/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
  216. package/lib/components/SearchFilterSort/index.js.map +1 -1
  217. package/lib/components/SocialFollow/SFItem.js.map +1 -1
  218. package/lib/components/SocialFollow/SocialFollow.js.map +1 -1
  219. package/lib/components/SocialFollow/SocialFollowRender.js.map +1 -1
  220. package/lib/components/SocialFollow/index.js.map +1 -1
  221. package/lib/components/SocialFollow/sf.config.js.map +1 -1
  222. package/lib/components/SubMenu/SubMenu.js.map +1 -1
  223. package/lib/components/SubMenu/index.js.map +1 -1
  224. package/lib/components/TextBlock/TextBlockRender.js.map +1 -1
  225. package/lib/components/TextBlock/index.js.map +1 -1
  226. package/lib/components/Video/Video.js.map +1 -1
  227. package/lib/components/Video/VideoModal.js.map +1 -1
  228. package/lib/components/Video/VideoRender.js.map +1 -1
  229. package/lib/components/Video/index.js.map +1 -1
  230. package/lib/components/Video/providers/Default.js.map +1 -1
  231. package/lib/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
  232. package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
  233. package/lib/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
  234. package/lib/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js.map +1 -1
  235. package/lib/components/Video/providers/Vimeo/helpers/index.js.map +1 -1
  236. package/lib/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
  237. package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
  238. package/lib/components/Video/providers/YouTube/helpers/index.js.map +1 -1
  239. package/lib/components/Video/providers/get-provider.js.map +1 -1
  240. package/lib/components/Video/providers/index.js.map +1 -1
  241. package/lib/components/Wrapper.js.map +1 -1
  242. package/lib/components/index.js.map +1 -1
  243. package/lib/constants/componentsDefaultValues.js.map +1 -1
  244. package/lib/constants/index.js.map +1 -1
  245. package/lib/helpers/append-images.js.map +1 -1
  246. package/lib/helpers/build-az-filter.js.map +1 -1
  247. package/lib/helpers/build-image-properties.js.map +1 -1
  248. package/lib/helpers/build-inherited-filters.js.map +1 -1
  249. package/lib/helpers/build-link-extra-props.js.map +1 -1
  250. package/lib/helpers/build-props-query.js.map +1 -1
  251. package/lib/helpers/build-query-fields.js.map +1 -1
  252. package/lib/helpers/build-raw-query-base.js.map +1 -1
  253. package/lib/helpers/build-raw-query.js.map +1 -1
  254. package/lib/helpers/build-search-values-checkbox-select.js.map +1 -1
  255. package/lib/helpers/build-search-values-text.js.map +1 -1
  256. package/lib/helpers/build-set-filters.js.map +1 -1
  257. package/lib/helpers/check-for-error.js.map +1 -1
  258. package/lib/helpers/check-props-to-use.js.map +1 -1
  259. package/lib/helpers/entities/constants.js.map +1 -1
  260. package/lib/helpers/get-banner-data.js.map +1 -1
  261. package/lib/helpers/get-click-wrapper-options.js.map +1 -1
  262. package/lib/helpers/get-current-offset.js.map +1 -1
  263. package/lib/helpers/get-dictionary-match.js.map +1 -1
  264. package/lib/helpers/get-display-count-data.js.map +1 -1
  265. package/lib/helpers/get-elasticsearch-operator.js.map +1 -1
  266. package/lib/helpers/get-entities-with-banner.js.map +1 -1
  267. package/lib/helpers/get-entity-data.js.map +1 -1
  268. package/lib/helpers/get-entity-render-props.js.map +1 -1
  269. package/lib/helpers/get-extra-az-bits.js.map +1 -1
  270. package/lib/helpers/get-filter-props.js.map +1 -1
  271. package/lib/helpers/get-filter-relation-keys.js.map +1 -1
  272. package/lib/helpers/get-generic-props.js.map +1 -1
  273. package/lib/helpers/get-generic-render-variables.js.map +1 -1
  274. package/lib/helpers/get-image-ids.js.map +1 -1
  275. package/lib/helpers/get-inherited-filters.js.map +1 -1
  276. package/lib/helpers/get-items-to-display-ids.js.map +1 -1
  277. package/lib/helpers/get-modifiers.js.map +1 -1
  278. package/lib/helpers/get-not-equal-query.js.map +1 -1
  279. package/lib/helpers/get-pagination-index.js.map +1 -1
  280. package/lib/helpers/get-parsed-prop-values.js.map +1 -1
  281. package/lib/helpers/get-parsed-summary-value.js.map +1 -1
  282. package/lib/helpers/get-prop-values.js.map +1 -1
  283. package/lib/helpers/get-query-filters.js.map +1 -1
  284. package/lib/helpers/get-query-props.js.map +1 -1
  285. package/lib/helpers/get-required-schemas.js.map +1 -1
  286. package/lib/helpers/get-sanitized-prop-values.js.map +1 -1
  287. package/lib/helpers/get-search-filter-type.js.map +1 -1
  288. package/lib/helpers/get-sort-by-field-name.js.map +1 -1
  289. package/lib/helpers/get-unpublished-entity-name.js.map +1 -1
  290. package/lib/helpers/get-updated-filter-by.js.map +1 -1
  291. package/lib/helpers/get-wrapped-value-with-link.js.map +1 -1
  292. package/lib/helpers/group-entities.js.map +1 -1
  293. package/lib/helpers/has-children.js.map +1 -1
  294. package/lib/helpers/index.js.map +1 -1
  295. package/lib/helpers/inject-banner.js.map +1 -1
  296. package/lib/helpers/inject-banners-to-entities.js.map +1 -1
  297. package/lib/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.map +1 -1
  298. package/lib/helpers/inject-multiple-banners/get-banners-for-entities/index.js.map +1 -1
  299. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.map +1 -1
  300. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js.map +1 -1
  301. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js.map +1 -1
  302. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/index.js.map +1 -1
  303. package/lib/helpers/inject-multiple-banners/index.js.map +1 -1
  304. package/lib/helpers/inject-multiple-banners/inject-multiple-banners.js.map +1 -1
  305. package/lib/helpers/is-browser.js.map +1 -1
  306. package/lib/helpers/is-filter-entitys-id.js.map +1 -1
  307. package/lib/helpers/is-object.js.map +1 -1
  308. package/lib/helpers/is-using-relation-image.js.map +1 -1
  309. package/lib/helpers/parse-TextBlock.js.map +1 -1
  310. package/lib/helpers/parse-interval.js.map +1 -1
  311. package/lib/helpers/parse-props-to-display.js.map +1 -1
  312. package/lib/helpers/remove-extra-items.js.map +1 -1
  313. package/lib/helpers/remove-unwanted-characters.js.map +1 -1
  314. package/lib/helpers/render-children.js.map +1 -1
  315. package/lib/helpers/should-render-waypoint.js.map +1 -1
  316. package/lib/helpers/should-show-property.js.map +1 -1
  317. package/lib/helpers/sort-response-data.js.map +1 -1
  318. package/lib/helpers/split-children.js.map +1 -1
  319. package/lib/helpers/update-childrens-parent.js.map +1 -1
  320. package/lib/hooks/helpers/RenderComponent.js +3 -2
  321. package/lib/hooks/helpers/RenderComponent.js.map +1 -1
  322. package/lib/hooks/helpers/StoreImages.js.map +1 -1
  323. package/lib/hooks/helpers/append-gtm-classname.js.map +1 -1
  324. package/lib/hooks/helpers/buildPBComponents.js.map +1 -1
  325. package/lib/hooks/helpers/check-banner-insertion-set.js.map +1 -1
  326. package/lib/hooks/helpers/check-collisions.js.map +1 -1
  327. package/lib/hooks/helpers/constants.js.map +1 -1
  328. package/lib/hooks/helpers/get-banner-index.js.map +1 -1
  329. package/lib/hooks/helpers/get-banners-by-type.js.map +1 -1
  330. package/lib/hooks/helpers/get-lightbox-images.js.map +1 -1
  331. package/lib/hooks/helpers/getComponent.js.map +1 -1
  332. package/lib/hooks/helpers/index.js.map +1 -1
  333. package/lib/hooks/helpers/inject-element-banners.js.map +1 -1
  334. package/lib/hooks/helpers/inject-textblock-banners.js.map +1 -1
  335. package/lib/hooks/helpers/insert-banners.js.map +1 -1
  336. package/lib/hooks/helpers/update-targetings.js.map +1 -1
  337. package/lib/hooks/index.js.map +1 -1
  338. package/lib/hooks/use-banner-insertion.js.map +1 -1
  339. package/lib/hooks/use-check-mobile-screen.js.map +1 -1
  340. package/lib/hooks/use-get-entity-schema.js.map +1 -1
  341. package/lib/hooks/use-get-entity-schemas-as-obj.js.map +1 -1
  342. package/lib/hooks/use-get-image-id-from-relation.js.map +1 -1
  343. package/lib/hooks/use-get-images.js.map +1 -1
  344. package/lib/hooks/use-get-single-entity-schema.js.map +1 -1
  345. package/lib/hooks/use-page-builder.js.map +1 -1
  346. package/lib/index.js.map +1 -1
  347. package/lib/utils/component-map.js.map +1 -1
  348. package/lib/utils/get-class-modifiers.js.map +1 -1
  349. package/lib/utils/get-image-data.js.map +1 -1
  350. package/lib/utils/get-props-to-display-modifiers.js.map +1 -1
  351. package/lib/utils/index.js.map +1 -1
  352. package/lib/utils/is-object-empty.js.map +1 -1
  353. package/lib-es/BannerContext/index.js.map +1 -1
  354. package/lib-es/HOC/withInfiniteScroll.js.map +1 -1
  355. package/lib-es/HOC/withTitle.js.map +1 -1
  356. package/lib-es/application/query/index.js.map +1 -1
  357. package/lib-es/components/BackToTop/BackToTop.js.map +1 -1
  358. package/lib-es/components/Banner/AdSlotRender.js.map +1 -1
  359. package/lib-es/components/Banner/Banner.js.map +1 -1
  360. package/lib-es/components/Banner/BannerRender.js +5 -5
  361. package/lib-es/components/Banner/BannerRender.js.map +1 -1
  362. package/lib-es/components/Banner/helpers.js +2 -2
  363. package/lib-es/components/Banner/helpers.js.map +1 -1
  364. package/lib-es/components/BlazeLink.js.map +1 -1
  365. package/lib-es/components/Breadcrumb/Breadcrumb.js.map +1 -1
  366. package/lib-es/components/Button.js.map +1 -1
  367. package/lib-es/components/Card/Card.js.map +1 -1
  368. package/lib-es/components/Card/CardContainer.js +3 -3
  369. package/lib-es/components/Card/CardContainer.js.map +1 -1
  370. package/lib-es/components/Card/CardFactory.js.map +1 -1
  371. package/lib-es/components/Card/CardRender.js.map +1 -1
  372. package/lib-es/components/Card/helpers/filter-query-setup.js.map +1 -1
  373. package/lib-es/components/Card/helpers/filters-setup.js.map +1 -1
  374. package/lib-es/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -1
  375. package/lib-es/components/Card/helpers/should-return.js.map +1 -1
  376. package/lib-es/components/Card/helpers/should-skip-single-query.js.map +1 -1
  377. package/lib-es/components/Card/helpers/use-dynamic-size-key.js.map +1 -1
  378. package/lib-es/components/Carousel/Carousel.js.map +1 -1
  379. package/lib-es/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
  380. package/lib-es/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
  381. package/lib-es/components/CarouselWrapper.js.map +1 -1
  382. package/lib-es/components/ClickWrapper.js.map +1 -1
  383. package/lib-es/components/Code/Code.js +8 -5
  384. package/lib-es/components/Code/Code.js.map +1 -1
  385. package/lib-es/components/Code/ScriptTag.js.map +1 -1
  386. package/lib-es/components/Code/helpers/wrap-script-tags.js +7 -3
  387. package/lib-es/components/Code/helpers/wrap-script-tags.js.map +1 -1
  388. package/lib-es/components/ContentGroup/ContentGroup.js.map +1 -1
  389. package/lib-es/components/ContentGroup/ContentGroupTabs.js.map +1 -1
  390. package/lib-es/components/ContentGroup/helpers/get-active-tab.js.map +1 -1
  391. package/lib-es/components/ContentGroupSection/ContentGroupSection.js +9 -6
  392. package/lib-es/components/ContentGroupSection/ContentGroupSection.js.map +1 -1
  393. package/lib-es/components/DataSummary/DataSummaryFactory.js.map +1 -1
  394. package/lib-es/components/DataSummary/DataSummaryRender.js.map +1 -1
  395. package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -1
  396. package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
  397. package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map +1 -1
  398. package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
  399. package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.map +1 -1
  400. package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
  401. package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.map +1 -1
  402. package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
  403. package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.map +1 -1
  404. package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
  405. package/lib-es/components/DataSummary/helpers/build-loop-props-content.js.map +1 -1
  406. package/lib-es/components/DataSummary/helpers/build-props-to-display-with-content.js.map +1 -1
  407. package/lib-es/components/DataSummary/helpers/get-data-summary-query.js.map +1 -1
  408. package/lib-es/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -1
  409. package/lib-es/components/DataSummary/helpers/get-link-to-published-content.js.map +1 -1
  410. package/lib-es/components/DataSummary/helpers/get-loop-props-limit.js.map +1 -1
  411. package/lib-es/components/DataSummary/helpers/get-prop-value.js.map +1 -1
  412. package/lib-es/components/DataSummary/helpers/get-value-from-array.js.map +1 -1
  413. package/lib-es/components/DataSummary/helpers/parse-boolean-values.js.map +1 -1
  414. package/lib-es/components/DataSummary/helpers/strip-summary-props-content.js.map +1 -1
  415. package/lib-es/components/EmailConfirm/EmailConfirm.js.map +1 -1
  416. package/lib-es/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
  417. package/lib-es/components/Image/GlobalLightbox/NavButton.js.map +1 -1
  418. package/lib-es/components/Image/Image.js.map +1 -1
  419. package/lib-es/components/Image/ImageDetails.js.map +1 -1
  420. package/lib-es/components/Image/ImageFactory.js.map +1 -1
  421. package/lib-es/components/Image/ImageRender.js.map +1 -1
  422. package/lib-es/components/Image/Lightbox/Lightbox.js.map +1 -1
  423. package/lib-es/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
  424. package/lib-es/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
  425. package/lib-es/components/ItemList/ItemListNew/ItemListNew.js.map +1 -1
  426. package/lib-es/components/ItemList/helpers/get-item-list-id.js.map +1 -1
  427. package/lib-es/components/ItemList/helpers/set-item-list-id.js.map +1 -1
  428. package/lib-es/components/ItemList/helpers/set-param-and-redirect.js.map +1 -1
  429. package/lib-es/components/ItemList/hooks/use-item-list-id.js.map +1 -1
  430. package/lib-es/components/Layout/Layout.js.map +1 -1
  431. package/lib-es/components/Layout/helpers/check-if-row-has-columns.js.map +1 -1
  432. package/lib-es/components/Layout/helpers/get-styles-to-update.js.map +1 -1
  433. package/lib-es/components/LazyImage/LazyImage.js.map +1 -1
  434. package/lib-es/components/List/ListBuilder.js.map +1 -1
  435. package/lib-es/components/List/ListFactory.js.map +1 -1
  436. package/lib-es/components/List/ListRender.js.map +1 -1
  437. package/lib-es/components/List/components/Cards/CardsRender.js.map +1 -1
  438. package/lib-es/components/List/components/Cards/CardsRenderItem.js +1 -1
  439. package/lib-es/components/List/components/Cards/CardsRenderItem.js.map +1 -1
  440. package/lib-es/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
  441. package/lib-es/components/List/components/Full/FullRender.js.map +1 -1
  442. package/lib-es/components/List/components/Full/FullRenderItem.js +1 -1
  443. package/lib-es/components/List/components/Full/FullRenderItem.js.map +1 -1
  444. package/lib-es/components/List/components/Header/ListHeader.js.map +1 -1
  445. package/lib-es/components/List/components/Pagination/Classic.js.map +1 -1
  446. package/lib-es/components/List/components/Pagination/ListPagination.js.map +1 -1
  447. package/lib-es/components/List/components/Pagination/LoadMore.js.map +1 -1
  448. package/lib-es/components/List/components/helpers/check-if-should-render-banner.js.map +1 -1
  449. package/lib-es/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -1
  450. package/lib-es/components/List/helpers/build-az-aggregations.js.map +1 -1
  451. package/lib-es/components/List/helpers/build-az-url.js.map +1 -1
  452. package/lib-es/components/List/helpers/build-pagination-items.js.map +1 -1
  453. package/lib-es/components/List/helpers/build-pagination-url.js.map +1 -1
  454. package/lib-es/components/List/helpers/get-az-query-filter.js.map +1 -1
  455. package/lib-es/components/List/helpers/get-items-per-page-to-use.js.map +1 -1
  456. package/lib-es/components/List/helpers/get-sort-props.js.map +1 -1
  457. package/lib-es/components/List/helpers/has-required-item-list-details.js.map +1 -1
  458. package/lib-es/components/Menu/Menu.js.map +1 -1
  459. package/lib-es/components/MenuItem/MenuItem.js.map +1 -1
  460. package/lib-es/components/Modal/Modal.js.map +1 -1
  461. package/lib-es/components/SearchContent/SearchContent.js.map +1 -1
  462. package/lib-es/components/SearchContent/SearchContentItems.js +1 -1
  463. package/lib-es/components/SearchContent/SearchContentItems.js.map +1 -1
  464. package/lib-es/components/SearchContent/SearchContentResults.js.map +1 -1
  465. package/lib-es/components/SearchContent/SearchContentToggleIcon.js.map +1 -1
  466. package/lib-es/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
  467. package/lib-es/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
  468. package/lib-es/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -1
  469. package/lib-es/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
  470. package/lib-es/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
  471. package/lib-es/components/SearchFilter/SearchFilterContainer.js.map +1 -1
  472. package/lib-es/components/SearchFilter/components/Checkbox.js.map +1 -1
  473. package/lib-es/components/SearchFilter/components/Range.js.map +1 -1
  474. package/lib-es/components/SearchFilter/components/Select.js.map +1 -1
  475. package/lib-es/components/SearchFilter/components/TextSearch.js.map +1 -1
  476. package/lib-es/components/SearchFilter/helpers/build-filters-query.js.map +1 -1
  477. package/lib-es/components/SearchFilter/helpers/build-new-query.js.map +1 -1
  478. package/lib-es/components/SearchFilter/helpers/build-query.js.map +1 -1
  479. package/lib-es/components/SearchFilter/helpers/build-raw-query-stringified.js.map +1 -1
  480. package/lib-es/components/SearchFilter/helpers/calculate-min-max.js.map +1 -1
  481. package/lib-es/components/SearchFilter/helpers/calculate-step.js.map +1 -1
  482. package/lib-es/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -1
  483. package/lib-es/components/SearchFilter/helpers/get-display-value.js.map +1 -1
  484. package/lib-es/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
  485. package/lib-es/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -1
  486. package/lib-es/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -1
  487. package/lib-es/components/SearchFilter/helpers/get-range-value.js.map +1 -1
  488. package/lib-es/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
  489. package/lib-es/components/SearchFilter/helpers/get-select-options.js.map +1 -1
  490. package/lib-es/components/SearchFilter/helpers/is-device-desktop.js.map +1 -1
  491. package/lib-es/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
  492. package/lib-es/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
  493. package/lib-es/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
  494. package/lib-es/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
  495. package/lib-es/components/SocialFollow/SFItem.js.map +1 -1
  496. package/lib-es/components/SocialFollow/SocialFollow.js.map +1 -1
  497. package/lib-es/components/SocialFollow/SocialFollowRender.js.map +1 -1
  498. package/lib-es/components/SubMenu/SubMenu.js.map +1 -1
  499. package/lib-es/components/TextBlock/TextBlockRender.js.map +1 -1
  500. package/lib-es/components/TextBlock/index.js.map +1 -1
  501. package/lib-es/components/Video/Video.js.map +1 -1
  502. package/lib-es/components/Video/VideoModal.js.map +1 -1
  503. package/lib-es/components/Video/VideoRender.js.map +1 -1
  504. package/lib-es/components/Video/providers/Default.js.map +1 -1
  505. package/lib-es/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
  506. package/lib-es/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
  507. package/lib-es/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
  508. package/lib-es/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js.map +1 -1
  509. package/lib-es/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
  510. package/lib-es/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
  511. package/lib-es/components/Video/providers/YouTube/helpers/index.js.map +1 -1
  512. package/lib-es/components/Video/providers/get-provider.js.map +1 -1
  513. package/lib-es/components/Wrapper.js.map +1 -1
  514. package/lib-es/helpers/append-images.js.map +1 -1
  515. package/lib-es/helpers/build-az-filter.js.map +1 -1
  516. package/lib-es/helpers/build-image-properties.js.map +1 -1
  517. package/lib-es/helpers/build-inherited-filters.js.map +1 -1
  518. package/lib-es/helpers/build-link-extra-props.js.map +1 -1
  519. package/lib-es/helpers/build-props-query.js.map +1 -1
  520. package/lib-es/helpers/build-query-fields.js.map +1 -1
  521. package/lib-es/helpers/build-raw-query-base.js.map +1 -1
  522. package/lib-es/helpers/build-raw-query.js.map +1 -1
  523. package/lib-es/helpers/build-search-values-checkbox-select.js.map +1 -1
  524. package/lib-es/helpers/build-search-values-text.js.map +1 -1
  525. package/lib-es/helpers/build-set-filters.js.map +1 -1
  526. package/lib-es/helpers/check-for-error.js.map +1 -1
  527. package/lib-es/helpers/check-props-to-use.js.map +1 -1
  528. package/lib-es/helpers/get-banner-data.js.map +1 -1
  529. package/lib-es/helpers/get-click-wrapper-options.js.map +1 -1
  530. package/lib-es/helpers/get-current-offset.js.map +1 -1
  531. package/lib-es/helpers/get-display-count-data.js.map +1 -1
  532. package/lib-es/helpers/get-elasticsearch-operator.js.map +1 -1
  533. package/lib-es/helpers/get-entities-with-banner.js.map +1 -1
  534. package/lib-es/helpers/get-entity-data.js.map +1 -1
  535. package/lib-es/helpers/get-entity-render-props.js.map +1 -1
  536. package/lib-es/helpers/get-extra-az-bits.js.map +1 -1
  537. package/lib-es/helpers/get-filter-props.js.map +1 -1
  538. package/lib-es/helpers/get-filter-relation-keys.js.map +1 -1
  539. package/lib-es/helpers/get-generic-props.js.map +1 -1
  540. package/lib-es/helpers/get-generic-render-variables.js.map +1 -1
  541. package/lib-es/helpers/get-image-ids.js.map +1 -1
  542. package/lib-es/helpers/get-inherited-filters.js.map +1 -1
  543. package/lib-es/helpers/get-items-to-display-ids.js.map +1 -1
  544. package/lib-es/helpers/get-modifiers.js.map +1 -1
  545. package/lib-es/helpers/get-not-equal-query.js.map +1 -1
  546. package/lib-es/helpers/get-pagination-index.js.map +1 -1
  547. package/lib-es/helpers/get-parsed-prop-values.js.map +1 -1
  548. package/lib-es/helpers/get-parsed-summary-value.js.map +1 -1
  549. package/lib-es/helpers/get-prop-values.js.map +1 -1
  550. package/lib-es/helpers/get-query-filters.js.map +1 -1
  551. package/lib-es/helpers/get-query-props.js.map +1 -1
  552. package/lib-es/helpers/get-required-schemas.js.map +1 -1
  553. package/lib-es/helpers/get-search-filter-type.js.map +1 -1
  554. package/lib-es/helpers/get-sort-by-field-name.js.map +1 -1
  555. package/lib-es/helpers/get-updated-filter-by.js.map +1 -1
  556. package/lib-es/helpers/get-wrapped-value-with-link.js.map +1 -1
  557. package/lib-es/helpers/group-entities.js.map +1 -1
  558. package/lib-es/helpers/inject-banner.js.map +1 -1
  559. package/lib-es/helpers/inject-banners-to-entities.js.map +1 -1
  560. package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.map +1 -1
  561. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.map +1 -1
  562. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js.map +1 -1
  563. package/lib-es/helpers/inject-multiple-banners/inject-multiple-banners.js.map +1 -1
  564. package/lib-es/helpers/is-browser.js.map +1 -1
  565. package/lib-es/helpers/is-filter-entitys-id.js.map +1 -1
  566. package/lib-es/helpers/is-using-relation-image.js.map +1 -1
  567. package/lib-es/helpers/parse-TextBlock.js.map +1 -1
  568. package/lib-es/helpers/parse-interval.js.map +1 -1
  569. package/lib-es/helpers/parse-props-to-display.js.map +1 -1
  570. package/lib-es/helpers/remove-extra-items.js.map +1 -1
  571. package/lib-es/helpers/remove-unwanted-characters.js.map +1 -1
  572. package/lib-es/helpers/render-children.js.map +1 -1
  573. package/lib-es/helpers/should-render-waypoint.js.map +1 -1
  574. package/lib-es/helpers/should-show-property.js.map +1 -1
  575. package/lib-es/helpers/sort-response-data.js.map +1 -1
  576. package/lib-es/helpers/split-children.js.map +1 -1
  577. package/lib-es/helpers/update-childrens-parent.js.map +1 -1
  578. package/lib-es/hooks/helpers/RenderComponent.js +3 -2
  579. package/lib-es/hooks/helpers/RenderComponent.js.map +1 -1
  580. package/lib-es/hooks/helpers/StoreImages.js.map +1 -1
  581. package/lib-es/hooks/helpers/append-gtm-classname.js.map +1 -1
  582. package/lib-es/hooks/helpers/buildPBComponents.js.map +1 -1
  583. package/lib-es/hooks/helpers/check-collisions.js.map +1 -1
  584. package/lib-es/hooks/helpers/get-banner-index.js.map +1 -1
  585. package/lib-es/hooks/helpers/get-banners-by-type.js.map +1 -1
  586. package/lib-es/hooks/helpers/get-lightbox-images.js.map +1 -1
  587. package/lib-es/hooks/helpers/getComponent.js.map +1 -1
  588. package/lib-es/hooks/helpers/inject-element-banners.js.map +1 -1
  589. package/lib-es/hooks/helpers/inject-textblock-banners.js.map +1 -1
  590. package/lib-es/hooks/helpers/insert-banners.js.map +1 -1
  591. package/lib-es/hooks/helpers/update-targetings.js.map +1 -1
  592. package/lib-es/hooks/use-check-mobile-screen.js.map +1 -1
  593. package/lib-es/hooks/use-get-entity-schema.js.map +1 -1
  594. package/lib-es/hooks/use-get-entity-schemas-as-obj.js.map +1 -1
  595. package/lib-es/hooks/use-get-image-id-from-relation.js.map +1 -1
  596. package/lib-es/hooks/use-get-images.js.map +1 -1
  597. package/lib-es/hooks/use-get-single-entity-schema.js.map +1 -1
  598. package/lib-es/hooks/use-page-builder.js.map +1 -1
  599. package/lib-es/utils/component-map.js.map +1 -1
  600. package/lib-es/utils/get-class-modifiers.js.map +1 -1
  601. package/lib-es/utils/get-image-data.js.map +1 -1
  602. package/lib-es/utils/is-object-empty.js.map +1 -1
  603. package/package.json +11 -10
  604. package/src/components/Banner/BannerRender.js +4 -4
  605. package/src/components/Banner/helpers.js +3 -3
  606. package/src/components/Card/CardContainer.js +3 -3
  607. package/src/components/Code/Code.js +6 -4
  608. package/src/components/Code/helpers/wrap-script-tags.js +7 -3
  609. package/src/components/ContentGroupSection/ContentGroupSection.js +3 -6
  610. package/src/components/List/components/Cards/CardsRenderItem.js +1 -1
  611. package/src/components/List/components/Full/FullRenderItem.js +1 -1
  612. package/src/hooks/helpers/RenderComponent.js +19 -16
  613. package/tests/unit/src/components/Banner/BannerRender.test.js +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"get-click-wrapper-options.js","names":["ON_CLICK","getClickWrapperOptions","children","componentProps","id","shouldUseClickWrapper","props","childComponents","wrapperProps","clickEvents","map","child","component","settings","gtmEvents","find","eventTrigger","filter","Boolean","length","gtmChildren"],"sources":["../../src/helpers/get-click-wrapper-options.js"],"sourcesContent":["import { ON_CLICK } from '../constants';\n\nconst getClickWrapperOptions = (children = {}, componentProps = {}, id = null) => {\n let shouldUseClickWrapper = false;\n\n const { props: { children: childComponents = [] } = {} } = children || {};\n if (!childComponents || !childComponents[1]) return { shouldUseClickWrapper, wrapperProps: {} };\n\n const clickEvents = childComponents[1]\n .map(child => {\n const { props: { component: { settings: { gtmEvents } = {} } = {} } = {} } = child || {};\n if (!gtmEvents) return null;\n\n return gtmEvents.find(({ eventTrigger }) => eventTrigger === ON_CLICK);\n })\n .filter(Boolean);\n\n shouldUseClickWrapper = !!clickEvents && !!clickEvents.length;\n\n const wrapperProps = shouldUseClickWrapper\n ? { gtmChildren: children, ...componentProps, id }\n : {};\n\n return { shouldUseClickWrapper, wrapperProps };\n};\n\nexport default getClickWrapperOptions;\n"],"mappings":";;;AAAA,SAASA,QAAQ,QAAQ,cAAc;AAEvC,MAAMC,sBAAsB,GAAG,CAACC,QAAQ,GAAG,CAAC,CAAC,EAAEC,cAAc,GAAG,CAAC,CAAC,EAAEC,EAAE,GAAG,IAAI,KAAK;EAChF,IAAIC,qBAAqB,GAAG,KAAK;EAEjC,MAAM;IAAEC,KAAK,EAAE;MAAEJ,QAAQ,EAAEK,eAAe,GAAG;IAAG,CAAC,GAAG,CAAC;EAAE,CAAC,GAAGL,QAAQ,IAAI,CAAC,CAAC;EACzE,IAAI,CAACK,eAAe,IAAI,CAACA,eAAe,CAAC,CAAC,CAAC,EAAE,OAAO;IAAEF,qBAAqB;IAAEG,YAAY,EAAE,CAAC;EAAE,CAAC;EAE/F,MAAMC,WAAW,GAAGF,eAAe,CAAC,CAAC,CAAC,CACnCG,GAAG,CAACC,KAAK,IAAI;IACZ,MAAM;MAAEL,KAAK,EAAE;QAAEM,SAAS,EAAE;UAAEC,QAAQ,EAAE;YAAEC;UAAU,CAAC,GAAG,CAAC;QAAE,CAAC,GAAG,CAAC;MAAE,CAAC,GAAG,CAAC;IAAE,CAAC,GAAGH,KAAK,IAAI,CAAC,CAAC;IACxF,IAAI,CAACG,SAAS,EAAE,OAAO,IAAI;IAE3B,OAAOA,SAAS,CAACC,IAAI,CAAC,CAAC;MAAEC;IAAa,CAAC,KAAKA,YAAY,KAAKhB,QAAQ,CAAC;EACxE,CAAC,CAAC,CACDiB,MAAM,CAACC,OAAO,CAAC;EAElBb,qBAAqB,GAAG,CAAC,CAACI,WAAW,IAAI,CAAC,CAACA,WAAW,CAACU,MAAM;EAE7D,MAAMX,YAAY,GAAGH,qBAAqB;IACpCe,WAAW,EAAElB;EAAQ,GAAKC,cAAc;IAAEC;EAAE,KAC9C,CAAC,CAAC;EAEN,OAAO;IAAEC,qBAAqB;IAAEG;EAAa,CAAC;AAChD,CAAC;AAED,eAAeP,sBAAsB"}
1
+ {"version":3,"file":"get-click-wrapper-options.js","names":["ON_CLICK","getClickWrapperOptions","children","componentProps","id","shouldUseClickWrapper","props","childComponents","wrapperProps","clickEvents","map","child","component","settings","gtmEvents","find","eventTrigger","filter","Boolean","length","_objectSpread","gtmChildren"],"sources":["../../src/helpers/get-click-wrapper-options.js"],"sourcesContent":["import { ON_CLICK } from '../constants';\n\nconst getClickWrapperOptions = (children = {}, componentProps = {}, id = null) => {\n let shouldUseClickWrapper = false;\n\n const { props: { children: childComponents = [] } = {} } = children || {};\n if (!childComponents || !childComponents[1]) return { shouldUseClickWrapper, wrapperProps: {} };\n\n const clickEvents = childComponents[1]\n .map(child => {\n const { props: { component: { settings: { gtmEvents } = {} } = {} } = {} } = child || {};\n if (!gtmEvents) return null;\n\n return gtmEvents.find(({ eventTrigger }) => eventTrigger === ON_CLICK);\n })\n .filter(Boolean);\n\n shouldUseClickWrapper = !!clickEvents && !!clickEvents.length;\n\n const wrapperProps = shouldUseClickWrapper\n ? { gtmChildren: children, ...componentProps, id }\n : {};\n\n return { shouldUseClickWrapper, wrapperProps };\n};\n\nexport default getClickWrapperOptions;\n"],"mappings":";;;AAAA,SAASA,QAAQ,QAAQ,cAAc;AAEvC,MAAMC,sBAAsB,GAAGA,CAACC,QAAQ,GAAG,CAAC,CAAC,EAAEC,cAAc,GAAG,CAAC,CAAC,EAAEC,EAAE,GAAG,IAAI,KAAK;EAChF,IAAIC,qBAAqB,GAAG,KAAK;EAEjC,MAAM;IAAEC,KAAK,EAAE;MAAEJ,QAAQ,EAAEK,eAAe,GAAG;IAAG,CAAC,GAAG,CAAC;EAAE,CAAC,GAAGL,QAAQ,IAAI,CAAC,CAAC;EACzE,IAAI,CAACK,eAAe,IAAI,CAACA,eAAe,CAAC,CAAC,CAAC,EAAE,OAAO;IAAEF,qBAAqB;IAAEG,YAAY,EAAE,CAAC;EAAE,CAAC;EAE/F,MAAMC,WAAW,GAAGF,eAAe,CAAC,CAAC,CAAC,CACnCG,GAAG,CAACC,KAAK,IAAI;IACZ,MAAM;MAAEL,KAAK,EAAE;QAAEM,SAAS,EAAE;UAAEC,QAAQ,EAAE;YAAEC;UAAU,CAAC,GAAG,CAAC;QAAE,CAAC,GAAG,CAAC;MAAE,CAAC,GAAG,CAAC;IAAE,CAAC,GAAGH,KAAK,IAAI,CAAC,CAAC;IACxF,IAAI,CAACG,SAAS,EAAE,OAAO,IAAI;IAE3B,OAAOA,SAAS,CAACC,IAAI,CAAC,CAAC;MAAEC;IAAa,CAAC,KAAKA,YAAY,KAAKhB,QAAQ,CAAC;EACxE,CAAC,CAAC,CACDiB,MAAM,CAACC,OAAO,CAAC;EAElBb,qBAAqB,GAAG,CAAC,CAACI,WAAW,IAAI,CAAC,CAACA,WAAW,CAACU,MAAM;EAE7D,MAAMX,YAAY,GAAGH,qBAAqB,GAAAe,aAAA,CAAAA,aAAA;IACpCC,WAAW,EAAEnB;EAAQ,GAAKC,cAAc;IAAEC;EAAE,KAC9C,CAAC,CAAC;EAEN,OAAO;IAAEC,qBAAqB;IAAEG;EAAa,CAAC;AAChD,CAAC;AAED,eAAeP,sBAAsB"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-current-offset.js","names":["getCurrentOffset","offset","itemsPerPage","paginationIndex","limit","Number","cumulativeOffset"],"sources":["../../src/helpers/get-current-offset.js"],"sourcesContent":["const getCurrentOffset = (offset = 0, itemsPerPage = 1, paginationIndex = 1, limit) => {\n if (paginationIndex <= 1) return Number(offset);\n const cumulativeOffset = Number(offset) + Number(itemsPerPage) * (Number(paginationIndex) - 1);\n return !!limit && cumulativeOffset >= limit ? offset : cumulativeOffset;\n};\n\nexport default getCurrentOffset;\n"],"mappings":"AAAA,MAAMA,gBAAgB,GAAG,CAACC,MAAM,GAAG,CAAC,EAAEC,YAAY,GAAG,CAAC,EAAEC,eAAe,GAAG,CAAC,EAAEC,KAAK,KAAK;EACrF,IAAID,eAAe,IAAI,CAAC,EAAE,OAAOE,MAAM,CAACJ,MAAM,CAAC;EAC/C,MAAMK,gBAAgB,GAAGD,MAAM,CAACJ,MAAM,CAAC,GAAGI,MAAM,CAACH,YAAY,CAAC,IAAIG,MAAM,CAACF,eAAe,CAAC,GAAG,CAAC,CAAC;EAC9F,OAAO,CAAC,CAACC,KAAK,IAAIE,gBAAgB,IAAIF,KAAK,GAAGH,MAAM,GAAGK,gBAAgB;AACzE,CAAC;AAED,eAAeN,gBAAgB"}
1
+ {"version":3,"file":"get-current-offset.js","names":["getCurrentOffset","offset","itemsPerPage","paginationIndex","limit","Number","cumulativeOffset"],"sources":["../../src/helpers/get-current-offset.js"],"sourcesContent":["const getCurrentOffset = (offset = 0, itemsPerPage = 1, paginationIndex = 1, limit) => {\n if (paginationIndex <= 1) return Number(offset);\n const cumulativeOffset = Number(offset) + Number(itemsPerPage) * (Number(paginationIndex) - 1);\n return !!limit && cumulativeOffset >= limit ? offset : cumulativeOffset;\n};\n\nexport default getCurrentOffset;\n"],"mappings":"AAAA,MAAMA,gBAAgB,GAAGA,CAACC,MAAM,GAAG,CAAC,EAAEC,YAAY,GAAG,CAAC,EAAEC,eAAe,GAAG,CAAC,EAAEC,KAAK,KAAK;EACrF,IAAID,eAAe,IAAI,CAAC,EAAE,OAAOE,MAAM,CAACJ,MAAM,CAAC;EAC/C,MAAMK,gBAAgB,GAAGD,MAAM,CAACJ,MAAM,CAAC,GAAGI,MAAM,CAACH,YAAY,CAAC,IAAIG,MAAM,CAACF,eAAe,CAAC,GAAG,CAAC,CAAC;EAC9F,OAAO,CAAC,CAACC,KAAK,IAAIE,gBAAgB,IAAIF,KAAK,GAAGH,MAAM,GAAGK,gBAAgB;AACzE,CAAC;AAED,eAAeN,gBAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-display-count-data.js","names":["IMAGE","IMAGES","getDisplayCountData","displayMessage","images","imagesLength","length","shouldDisplayCount","message","countMessage"],"sources":["../../src/helpers/get-display-count-data.js"],"sourcesContent":["import { IMAGE, IMAGES } from '../constants';\n\nfunction getDisplayCountData(displayMessage, images) {\n const imagesLength = images && images.length;\n\n const shouldDisplayCount = !!(displayMessage && imagesLength);\n const message = `${imagesLength} ${imagesLength === 1 ? IMAGE : IMAGES}`;\n const countMessage = shouldDisplayCount ? message : '';\n\n return { shouldDisplayCount, countMessage };\n}\n\nexport default getDisplayCountData;\n"],"mappings":"AAAA,SAASA,KAAK,EAAEC,MAAM,QAAQ,cAAc;AAE5C,SAASC,mBAAmB,CAACC,cAAc,EAAEC,MAAM,EAAE;EACnD,MAAMC,YAAY,GAAGD,MAAM,IAAIA,MAAM,CAACE,MAAM;EAE5C,MAAMC,kBAAkB,GAAG,CAAC,EAAEJ,cAAc,IAAIE,YAAY,CAAC;EAC7D,MAAMG,OAAO,GAAI,GAAEH,YAAa,IAAGA,YAAY,KAAK,CAAC,GAAGL,KAAK,GAAGC,MAAO,EAAC;EACxE,MAAMQ,YAAY,GAAGF,kBAAkB,GAAGC,OAAO,GAAG,EAAE;EAEtD,OAAO;IAAED,kBAAkB;IAAEE;EAAa,CAAC;AAC7C;AAEA,eAAeP,mBAAmB"}
1
+ {"version":3,"file":"get-display-count-data.js","names":["IMAGE","IMAGES","getDisplayCountData","displayMessage","images","imagesLength","length","shouldDisplayCount","message","countMessage"],"sources":["../../src/helpers/get-display-count-data.js"],"sourcesContent":["import { IMAGE, IMAGES } from '../constants';\n\nfunction getDisplayCountData(displayMessage, images) {\n const imagesLength = images && images.length;\n\n const shouldDisplayCount = !!(displayMessage && imagesLength);\n const message = `${imagesLength} ${imagesLength === 1 ? IMAGE : IMAGES}`;\n const countMessage = shouldDisplayCount ? message : '';\n\n return { shouldDisplayCount, countMessage };\n}\n\nexport default getDisplayCountData;\n"],"mappings":"AAAA,SAASA,KAAK,EAAEC,MAAM,QAAQ,cAAc;AAE5C,SAASC,mBAAmBA,CAACC,cAAc,EAAEC,MAAM,EAAE;EACnD,MAAMC,YAAY,GAAGD,MAAM,IAAIA,MAAM,CAACE,MAAM;EAE5C,MAAMC,kBAAkB,GAAG,CAAC,EAAEJ,cAAc,IAAIE,YAAY,CAAC;EAC7D,MAAMG,OAAO,GAAI,GAAEH,YAAa,IAAGA,YAAY,KAAK,CAAC,GAAGL,KAAK,GAAGC,MAAO,EAAC;EACxE,MAAMQ,YAAY,GAAGF,kBAAkB,GAAGC,OAAO,GAAG,EAAE;EAEtD,OAAO;IAAED,kBAAkB;IAAEE;EAAa,CAAC;AAC7C;AAEA,eAAeP,mBAAmB"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-elasticsearch-operator.js","names":["AND","AND_OPERATOR","OR_OPERATOR","getElasticsearchOperator","operator"],"sources":["../../src/helpers/get-elasticsearch-operator.js"],"sourcesContent":["import { AND, AND_OPERATOR, OR_OPERATOR } from '../constants';\n\nconst getElasticsearchOperator = ({ operator }) => (operator === AND ? AND_OPERATOR : OR_OPERATOR);\n\nexport default getElasticsearchOperator;\n"],"mappings":"AAAA,SAASA,GAAG,EAAEC,YAAY,EAAEC,WAAW,QAAQ,cAAc;AAE7D,MAAMC,wBAAwB,GAAG,CAAC;EAAEC;AAAS,CAAC,KAAMA,QAAQ,KAAKJ,GAAG,GAAGC,YAAY,GAAGC,WAAY;AAElG,eAAeC,wBAAwB"}
1
+ {"version":3,"file":"get-elasticsearch-operator.js","names":["AND","AND_OPERATOR","OR_OPERATOR","getElasticsearchOperator","operator"],"sources":["../../src/helpers/get-elasticsearch-operator.js"],"sourcesContent":["import { AND, AND_OPERATOR, OR_OPERATOR } from '../constants';\n\nconst getElasticsearchOperator = ({ operator }) => (operator === AND ? AND_OPERATOR : OR_OPERATOR);\n\nexport default getElasticsearchOperator;\n"],"mappings":"AAAA,SAASA,GAAG,EAAEC,YAAY,EAAEC,WAAW,QAAQ,cAAc;AAE7D,MAAMC,wBAAwB,GAAGA,CAAC;EAAEC;AAAS,CAAC,KAAMA,QAAQ,KAAKJ,GAAG,GAAGC,YAAY,GAAGC,WAAY;AAElG,eAAeC,wBAAwB"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-entities-with-banner.js","names":["injectBannersToEntities","getEntitiesWithBanner","entities","options","hasBanner"],"sources":["../../src/helpers/get-entities-with-banner.js"],"sourcesContent":["import injectBannersToEntities from './inject-banners-to-entities';\n\nexport default function getEntitiesWithBanner(entities, options) {\n const { hasBanner } = options;\n\n if (!hasBanner) return entities;\n\n return injectBannersToEntities(entities, options);\n}\n"],"mappings":"AAAA,OAAOA,uBAAuB,MAAM,8BAA8B;AAElE,eAAe,SAASC,qBAAqB,CAACC,QAAQ,EAAEC,OAAO,EAAE;EAC/D,MAAM;IAAEC;EAAU,CAAC,GAAGD,OAAO;EAE7B,IAAI,CAACC,SAAS,EAAE,OAAOF,QAAQ;EAE/B,OAAOF,uBAAuB,CAACE,QAAQ,EAAEC,OAAO,CAAC;AACnD"}
1
+ {"version":3,"file":"get-entities-with-banner.js","names":["injectBannersToEntities","getEntitiesWithBanner","entities","options","hasBanner"],"sources":["../../src/helpers/get-entities-with-banner.js"],"sourcesContent":["import injectBannersToEntities from './inject-banners-to-entities';\n\nexport default function getEntitiesWithBanner(entities, options) {\n const { hasBanner } = options;\n\n if (!hasBanner) return entities;\n\n return injectBannersToEntities(entities, options);\n}\n"],"mappings":"AAAA,OAAOA,uBAAuB,MAAM,8BAA8B;AAElE,eAAe,SAASC,qBAAqBA,CAACC,QAAQ,EAAEC,OAAO,EAAE;EAC/D,MAAM;IAAEC;EAAU,CAAC,GAAGD,OAAO;EAE7B,IAAI,CAACC,SAAS,EAAE,OAAOF,QAAQ;EAE/B,OAAOF,uBAAuB,CAACE,QAAQ,EAAEC,OAAO,CAAC;AACnD"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-entity-data.js","names":["upperFirst","camelcase","getEntityData","entity","schema","publishedDocType","publishedEntityType","interfaces","nestedInterfaces","interfacesToCheck","includes","docType","entityType"],"sources":["../../src/helpers/get-entity-data.js"],"sourcesContent":["import upperFirst from 'lodash.upperfirst';\nimport camelcase from 'lodash.camelcase';\n\nconst getEntityData = (entity, schema) => {\n const publishedDocType = `published_${entity}`;\n const publishedEntityType = `Published${upperFirst(camelcase(entity))}`;\n\n if (schema) {\n const { interfaces, [entity]: { interfaces: nestedInterfaces } = {} } = schema || {};\n const interfacesToCheck = interfaces || nestedInterfaces;\n if (interfacesToCheck && !interfacesToCheck.includes('publish/publishable')) {\n return { docType: entity, entityType: upperFirst(camelcase(entity)) };\n }\n }\n\n return { docType: publishedDocType, entityType: publishedEntityType };\n};\n\nexport default getEntityData;\n"],"mappings":"AAAA,OAAOA,UAAU,MAAM,mBAAmB;AAC1C,OAAOC,SAAS,MAAM,kBAAkB;AAExC,MAAMC,aAAa,GAAG,CAACC,MAAM,EAAEC,MAAM,KAAK;EACxC,MAAMC,gBAAgB,GAAI,aAAYF,MAAO,EAAC;EAC9C,MAAMG,mBAAmB,GAAI,YAAWN,UAAU,CAACC,SAAS,CAACE,MAAM,CAAC,CAAE,EAAC;EAEvE,IAAIC,MAAM,EAAE;IACV,MAAM;MAAEG,UAAU;MAAE,CAACJ,MAAM,GAAG;QAAEI,UAAU,EAAEC;MAAiB,CAAC,GAAG,CAAC;IAAE,CAAC,GAAGJ,MAAM,IAAI,CAAC,CAAC;IACpF,MAAMK,iBAAiB,GAAGF,UAAU,IAAIC,gBAAgB;IACxD,IAAIC,iBAAiB,IAAI,CAACA,iBAAiB,CAACC,QAAQ,CAAC,qBAAqB,CAAC,EAAE;MAC3E,OAAO;QAAEC,OAAO,EAAER,MAAM;QAAES,UAAU,EAAEZ,UAAU,CAACC,SAAS,CAACE,MAAM,CAAC;MAAE,CAAC;IACvE;EACF;EAEA,OAAO;IAAEQ,OAAO,EAAEN,gBAAgB;IAAEO,UAAU,EAAEN;EAAoB,CAAC;AACvE,CAAC;AAED,eAAeJ,aAAa"}
1
+ {"version":3,"file":"get-entity-data.js","names":["upperFirst","camelcase","getEntityData","entity","schema","publishedDocType","publishedEntityType","interfaces","nestedInterfaces","interfacesToCheck","includes","docType","entityType"],"sources":["../../src/helpers/get-entity-data.js"],"sourcesContent":["import upperFirst from 'lodash.upperfirst';\nimport camelcase from 'lodash.camelcase';\n\nconst getEntityData = (entity, schema) => {\n const publishedDocType = `published_${entity}`;\n const publishedEntityType = `Published${upperFirst(camelcase(entity))}`;\n\n if (schema) {\n const { interfaces, [entity]: { interfaces: nestedInterfaces } = {} } = schema || {};\n const interfacesToCheck = interfaces || nestedInterfaces;\n if (interfacesToCheck && !interfacesToCheck.includes('publish/publishable')) {\n return { docType: entity, entityType: upperFirst(camelcase(entity)) };\n }\n }\n\n return { docType: publishedDocType, entityType: publishedEntityType };\n};\n\nexport default getEntityData;\n"],"mappings":"AAAA,OAAOA,UAAU,MAAM,mBAAmB;AAC1C,OAAOC,SAAS,MAAM,kBAAkB;AAExC,MAAMC,aAAa,GAAGA,CAACC,MAAM,EAAEC,MAAM,KAAK;EACxC,MAAMC,gBAAgB,GAAI,aAAYF,MAAO,EAAC;EAC9C,MAAMG,mBAAmB,GAAI,YAAWN,UAAU,CAACC,SAAS,CAACE,MAAM,CAAC,CAAE,EAAC;EAEvE,IAAIC,MAAM,EAAE;IACV,MAAM;MAAEG,UAAU;MAAE,CAACJ,MAAM,GAAG;QAAEI,UAAU,EAAEC;MAAiB,CAAC,GAAG,CAAC;IAAE,CAAC,GAAGJ,MAAM,IAAI,CAAC,CAAC;IACpF,MAAMK,iBAAiB,GAAGF,UAAU,IAAIC,gBAAgB;IACxD,IAAIC,iBAAiB,IAAI,CAACA,iBAAiB,CAACC,QAAQ,CAAC,qBAAqB,CAAC,EAAE;MAC3E,OAAO;QAAEC,OAAO,EAAER,MAAM;QAAES,UAAU,EAAEZ,UAAU,CAACC,SAAS,CAACE,MAAM,CAAC;MAAE,CAAC;IACvE;EACF;EAEA,OAAO;IAAEQ,OAAO,EAAEN,gBAAgB;IAAEO,UAAU,EAAEN;EAAoB,CAAC;AACvE,CAAC;AAED,eAAeJ,aAAa"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-entity-render-props.js","names":["dataSchema","getAction","getEntityRenderProps","queryProps","data","isPreview","getEntitySchema","actions","getAllPublished","getAll","actionKey","action"],"sources":["../../src/helpers/get-entity-render-props.js"],"sourcesContent":["import { dataSchema } from './entities/constants';\nimport { getAction } from '../application/query';\n\nfunction getEntityRenderProps(queryProps, data = dataSchema, isPreview = false) {\n const { getEntitySchema } = data;\n\n const {\n actions: { getAllPublished, getAll }\n } = getEntitySchema;\n const actionKey = isPreview ? getAll : getAllPublished || getAll;\n const action = getAction(actionKey, queryProps);\n\n return { actionKey, action };\n}\n\nexport default getEntityRenderProps;\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,sBAAsB;AACjD,SAASC,SAAS,QAAQ,sBAAsB;AAEhD,SAASC,oBAAoB,CAACC,UAAU,EAAEC,IAAI,GAAGJ,UAAU,EAAEK,SAAS,GAAG,KAAK,EAAE;EAC9E,MAAM;IAAEC;EAAgB,CAAC,GAAGF,IAAI;EAEhC,MAAM;IACJG,OAAO,EAAE;MAAEC,eAAe;MAAEC;IAAO;EACrC,CAAC,GAAGH,eAAe;EACnB,MAAMI,SAAS,GAAGL,SAAS,GAAGI,MAAM,GAAGD,eAAe,IAAIC,MAAM;EAChE,MAAME,MAAM,GAAGV,SAAS,CAACS,SAAS,EAAEP,UAAU,CAAC;EAE/C,OAAO;IAAEO,SAAS;IAAEC;EAAO,CAAC;AAC9B;AAEA,eAAeT,oBAAoB"}
1
+ {"version":3,"file":"get-entity-render-props.js","names":["dataSchema","getAction","getEntityRenderProps","queryProps","data","isPreview","getEntitySchema","actions","getAllPublished","getAll","actionKey","action"],"sources":["../../src/helpers/get-entity-render-props.js"],"sourcesContent":["import { dataSchema } from './entities/constants';\nimport { getAction } from '../application/query';\n\nfunction getEntityRenderProps(queryProps, data = dataSchema, isPreview = false) {\n const { getEntitySchema } = data;\n\n const {\n actions: { getAllPublished, getAll }\n } = getEntitySchema;\n const actionKey = isPreview ? getAll : getAllPublished || getAll;\n const action = getAction(actionKey, queryProps);\n\n return { actionKey, action };\n}\n\nexport default getEntityRenderProps;\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,sBAAsB;AACjD,SAASC,SAAS,QAAQ,sBAAsB;AAEhD,SAASC,oBAAoBA,CAACC,UAAU,EAAEC,IAAI,GAAGJ,UAAU,EAAEK,SAAS,GAAG,KAAK,EAAE;EAC9E,MAAM;IAAEC;EAAgB,CAAC,GAAGF,IAAI;EAEhC,MAAM;IACJG,OAAO,EAAE;MAAEC,eAAe;MAAEC;IAAO;EACrC,CAAC,GAAGH,eAAe;EACnB,MAAMI,SAAS,GAAGL,SAAS,GAAGI,MAAM,GAAGD,eAAe,IAAIC,MAAM;EAChE,MAAME,MAAM,GAAGV,SAAS,CAACS,SAAS,EAAEP,UAAU,CAAC;EAE/C,OAAO;IAAEO,SAAS;IAAEC;EAAO,CAAC;AAC9B;AAEA,eAAeT,oBAAoB"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-extra-az-bits.js","names":["AZ_AGGS","ALL_AZ_SORT","getExtraAzBits","shouldReturnAggs","isAZ","azFilter"],"sources":["../../src/helpers/get-extra-az-bits.js"],"sourcesContent":["import { AZ_AGGS, ALL_AZ_SORT } from '../constants';\n\nconst getExtraAzBits = (shouldReturnAggs, isAZ, azFilter) => {\n if (!isAZ || (isAZ && azFilter)) return {};\n if (shouldReturnAggs) return AZ_AGGS;\n\n return ALL_AZ_SORT;\n};\n\nexport default getExtraAzBits;\n"],"mappings":"AAAA,SAASA,OAAO,EAAEC,WAAW,QAAQ,cAAc;AAEnD,MAAMC,cAAc,GAAG,CAACC,gBAAgB,EAAEC,IAAI,EAAEC,QAAQ,KAAK;EAC3D,IAAI,CAACD,IAAI,IAAKA,IAAI,IAAIC,QAAS,EAAE,OAAO,CAAC,CAAC;EAC1C,IAAIF,gBAAgB,EAAE,OAAOH,OAAO;EAEpC,OAAOC,WAAW;AACpB,CAAC;AAED,eAAeC,cAAc"}
1
+ {"version":3,"file":"get-extra-az-bits.js","names":["AZ_AGGS","ALL_AZ_SORT","getExtraAzBits","shouldReturnAggs","isAZ","azFilter"],"sources":["../../src/helpers/get-extra-az-bits.js"],"sourcesContent":["import { AZ_AGGS, ALL_AZ_SORT } from '../constants';\n\nconst getExtraAzBits = (shouldReturnAggs, isAZ, azFilter) => {\n if (!isAZ || (isAZ && azFilter)) return {};\n if (shouldReturnAggs) return AZ_AGGS;\n\n return ALL_AZ_SORT;\n};\n\nexport default getExtraAzBits;\n"],"mappings":"AAAA,SAASA,OAAO,EAAEC,WAAW,QAAQ,cAAc;AAEnD,MAAMC,cAAc,GAAGA,CAACC,gBAAgB,EAAEC,IAAI,EAAEC,QAAQ,KAAK;EAC3D,IAAI,CAACD,IAAI,IAAKA,IAAI,IAAIC,QAAS,EAAE,OAAO,CAAC,CAAC;EAC1C,IAAIF,gBAAgB,EAAE,OAAOH,OAAO;EAEpC,OAAOC,WAAW;AACpB,CAAC;AAED,eAAeC,cAAc"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-filter-props.js","names":["getFilterRelationKeys","getFilterLocalKeys","relationName","relations","entityIdentifier","find","localField","getRelationEntity","filterName","filterEntityRelations","foreignKey","getFilterProps","filter","currentEntityRelations","properties","currentEntityProperties","dynamicProperties","currentEntityDynamicProperties","identifier","currentEntityId","filteryEntityId","split","relationProp","hasProperty","relationEntityName","filterNameEntity","propertyEntityName","entityName","isEntityItself","shouldCheckRelationNames","relationForeignKeys","shouldIgnoreFilter","length"],"sources":["../../src/helpers/get-filter-props.js"],"sourcesContent":["import getFilterRelationKeys from './get-filter-relation-keys';\n\nconst getFilterLocalKeys = (relationName, relations) => {\n const { entityIdentifier } =\n relations.find(({ localField }) => localField === relationName) || {};\n return entityIdentifier;\n};\n\nconst getRelationEntity = (filterName, filterEntityRelations) => {\n const { entityIdentifier } =\n filterEntityRelations.find(({ foreignKey }) => foreignKey === filterName) || {};\n return entityIdentifier;\n};\n\nconst getFilterProps = (\n filter,\n {\n relations: currentEntityRelations = [],\n properties: currentEntityProperties = {},\n dynamicProperties: currentEntityDynamicProperties = {},\n identifier: currentEntityId\n } = {},\n { relations: filterEntityRelations = [], identifier: filteryEntityId } = {}\n) => {\n const [filterName] = filter.split('/');\n const [relationName, relationProp] = filterName.split('.');\n const hasProperty = !!(\n currentEntityProperties[filterName] || currentEntityDynamicProperties[filterName]\n );\n const relationEntityName = relationProp\n ? getFilterLocalKeys(relationName, currentEntityRelations)\n : null;\n const filterNameEntity = getRelationEntity(filterName, filterEntityRelations);\n\n const propertyEntityName = relationEntityName || filterNameEntity;\n const entityName = filterNameEntity ? filteryEntityId : relationEntityName;\n const isEntityItself = currentEntityId === propertyEntityName;\n const shouldCheckRelationNames = !hasProperty && !relationEntityName;\n const relationForeignKeys = shouldCheckRelationNames\n ? getFilterRelationKeys(propertyEntityName, currentEntityRelations, currentEntityProperties)\n : [];\n const shouldIgnoreFilter = shouldCheckRelationNames && !relationForeignKeys.length;\n\n return {\n filterName,\n entityName,\n relationName,\n relationProp,\n hasProperty,\n relationEntityName,\n isEntityItself,\n relationForeignKeys,\n shouldIgnoreFilter\n };\n};\n\nexport default getFilterProps;\n"],"mappings":"AAAA,OAAOA,qBAAqB,MAAM,4BAA4B;AAE9D,MAAMC,kBAAkB,GAAG,CAACC,YAAY,EAAEC,SAAS,KAAK;EACtD,MAAM;IAAEC;EAAiB,CAAC,GACxBD,SAAS,CAACE,IAAI,CAAC,CAAC;IAAEC;EAAW,CAAC,KAAKA,UAAU,KAAKJ,YAAY,CAAC,IAAI,CAAC,CAAC;EACvE,OAAOE,gBAAgB;AACzB,CAAC;AAED,MAAMG,iBAAiB,GAAG,CAACC,UAAU,EAAEC,qBAAqB,KAAK;EAC/D,MAAM;IAAEL;EAAiB,CAAC,GACxBK,qBAAqB,CAACJ,IAAI,CAAC,CAAC;IAAEK;EAAW,CAAC,KAAKA,UAAU,KAAKF,UAAU,CAAC,IAAI,CAAC,CAAC;EACjF,OAAOJ,gBAAgB;AACzB,CAAC;AAED,MAAMO,cAAc,GAAG,CACrBC,MAAM,EACN;EACET,SAAS,EAAEU,sBAAsB,GAAG,EAAE;EACtCC,UAAU,EAAEC,uBAAuB,GAAG,CAAC,CAAC;EACxCC,iBAAiB,EAAEC,8BAA8B,GAAG,CAAC,CAAC;EACtDC,UAAU,EAAEC;AACd,CAAC,GAAG,CAAC,CAAC,EACN;EAAEhB,SAAS,EAAEM,qBAAqB,GAAG,EAAE;EAAES,UAAU,EAAEE;AAAgB,CAAC,GAAG,CAAC,CAAC,KACxE;EACH,MAAM,CAACZ,UAAU,CAAC,GAAGI,MAAM,CAACS,KAAK,CAAC,GAAG,CAAC;EACtC,MAAM,CAACnB,YAAY,EAAEoB,YAAY,CAAC,GAAGd,UAAU,CAACa,KAAK,CAAC,GAAG,CAAC;EAC1D,MAAME,WAAW,GAAG,CAAC,EACnBR,uBAAuB,CAACP,UAAU,CAAC,IAAIS,8BAA8B,CAACT,UAAU,CAAC,CAClF;EACD,MAAMgB,kBAAkB,GAAGF,YAAY,GACnCrB,kBAAkB,CAACC,YAAY,EAAEW,sBAAsB,CAAC,GACxD,IAAI;EACR,MAAMY,gBAAgB,GAAGlB,iBAAiB,CAACC,UAAU,EAAEC,qBAAqB,CAAC;EAE7E,MAAMiB,kBAAkB,GAAGF,kBAAkB,IAAIC,gBAAgB;EACjE,MAAME,UAAU,GAAGF,gBAAgB,GAAGL,eAAe,GAAGI,kBAAkB;EAC1E,MAAMI,cAAc,GAAGT,eAAe,KAAKO,kBAAkB;EAC7D,MAAMG,wBAAwB,GAAG,CAACN,WAAW,IAAI,CAACC,kBAAkB;EACpE,MAAMM,mBAAmB,GAAGD,wBAAwB,GAChD7B,qBAAqB,CAAC0B,kBAAkB,EAAEb,sBAAsB,EAAEE,uBAAuB,CAAC,GAC1F,EAAE;EACN,MAAMgB,kBAAkB,GAAGF,wBAAwB,IAAI,CAACC,mBAAmB,CAACE,MAAM;EAElF,OAAO;IACLxB,UAAU;IACVmB,UAAU;IACVzB,YAAY;IACZoB,YAAY;IACZC,WAAW;IACXC,kBAAkB;IAClBI,cAAc;IACdE,mBAAmB;IACnBC;EACF,CAAC;AACH,CAAC;AAED,eAAepB,cAAc"}
1
+ {"version":3,"file":"get-filter-props.js","names":["getFilterRelationKeys","getFilterLocalKeys","relationName","relations","entityIdentifier","find","localField","getRelationEntity","filterName","filterEntityRelations","foreignKey","getFilterProps","filter","currentEntityRelations","properties","currentEntityProperties","dynamicProperties","currentEntityDynamicProperties","identifier","currentEntityId","filteryEntityId","split","relationProp","hasProperty","relationEntityName","filterNameEntity","propertyEntityName","entityName","isEntityItself","shouldCheckRelationNames","relationForeignKeys","shouldIgnoreFilter","length"],"sources":["../../src/helpers/get-filter-props.js"],"sourcesContent":["import getFilterRelationKeys from './get-filter-relation-keys';\n\nconst getFilterLocalKeys = (relationName, relations) => {\n const { entityIdentifier } =\n relations.find(({ localField }) => localField === relationName) || {};\n return entityIdentifier;\n};\n\nconst getRelationEntity = (filterName, filterEntityRelations) => {\n const { entityIdentifier } =\n filterEntityRelations.find(({ foreignKey }) => foreignKey === filterName) || {};\n return entityIdentifier;\n};\n\nconst getFilterProps = (\n filter,\n {\n relations: currentEntityRelations = [],\n properties: currentEntityProperties = {},\n dynamicProperties: currentEntityDynamicProperties = {},\n identifier: currentEntityId\n } = {},\n { relations: filterEntityRelations = [], identifier: filteryEntityId } = {}\n) => {\n const [filterName] = filter.split('/');\n const [relationName, relationProp] = filterName.split('.');\n const hasProperty = !!(\n currentEntityProperties[filterName] || currentEntityDynamicProperties[filterName]\n );\n const relationEntityName = relationProp\n ? getFilterLocalKeys(relationName, currentEntityRelations)\n : null;\n const filterNameEntity = getRelationEntity(filterName, filterEntityRelations);\n\n const propertyEntityName = relationEntityName || filterNameEntity;\n const entityName = filterNameEntity ? filteryEntityId : relationEntityName;\n const isEntityItself = currentEntityId === propertyEntityName;\n const shouldCheckRelationNames = !hasProperty && !relationEntityName;\n const relationForeignKeys = shouldCheckRelationNames\n ? getFilterRelationKeys(propertyEntityName, currentEntityRelations, currentEntityProperties)\n : [];\n const shouldIgnoreFilter = shouldCheckRelationNames && !relationForeignKeys.length;\n\n return {\n filterName,\n entityName,\n relationName,\n relationProp,\n hasProperty,\n relationEntityName,\n isEntityItself,\n relationForeignKeys,\n shouldIgnoreFilter\n };\n};\n\nexport default getFilterProps;\n"],"mappings":"AAAA,OAAOA,qBAAqB,MAAM,4BAA4B;AAE9D,MAAMC,kBAAkB,GAAGA,CAACC,YAAY,EAAEC,SAAS,KAAK;EACtD,MAAM;IAAEC;EAAiB,CAAC,GACxBD,SAAS,CAACE,IAAI,CAAC,CAAC;IAAEC;EAAW,CAAC,KAAKA,UAAU,KAAKJ,YAAY,CAAC,IAAI,CAAC,CAAC;EACvE,OAAOE,gBAAgB;AACzB,CAAC;AAED,MAAMG,iBAAiB,GAAGA,CAACC,UAAU,EAAEC,qBAAqB,KAAK;EAC/D,MAAM;IAAEL;EAAiB,CAAC,GACxBK,qBAAqB,CAACJ,IAAI,CAAC,CAAC;IAAEK;EAAW,CAAC,KAAKA,UAAU,KAAKF,UAAU,CAAC,IAAI,CAAC,CAAC;EACjF,OAAOJ,gBAAgB;AACzB,CAAC;AAED,MAAMO,cAAc,GAAGA,CACrBC,MAAM,EACN;EACET,SAAS,EAAEU,sBAAsB,GAAG,EAAE;EACtCC,UAAU,EAAEC,uBAAuB,GAAG,CAAC,CAAC;EACxCC,iBAAiB,EAAEC,8BAA8B,GAAG,CAAC,CAAC;EACtDC,UAAU,EAAEC;AACd,CAAC,GAAG,CAAC,CAAC,EACN;EAAEhB,SAAS,EAAEM,qBAAqB,GAAG,EAAE;EAAES,UAAU,EAAEE;AAAgB,CAAC,GAAG,CAAC,CAAC,KACxE;EACH,MAAM,CAACZ,UAAU,CAAC,GAAGI,MAAM,CAACS,KAAK,CAAC,GAAG,CAAC;EACtC,MAAM,CAACnB,YAAY,EAAEoB,YAAY,CAAC,GAAGd,UAAU,CAACa,KAAK,CAAC,GAAG,CAAC;EAC1D,MAAME,WAAW,GAAG,CAAC,EACnBR,uBAAuB,CAACP,UAAU,CAAC,IAAIS,8BAA8B,CAACT,UAAU,CAAC,CAClF;EACD,MAAMgB,kBAAkB,GAAGF,YAAY,GACnCrB,kBAAkB,CAACC,YAAY,EAAEW,sBAAsB,CAAC,GACxD,IAAI;EACR,MAAMY,gBAAgB,GAAGlB,iBAAiB,CAACC,UAAU,EAAEC,qBAAqB,CAAC;EAE7E,MAAMiB,kBAAkB,GAAGF,kBAAkB,IAAIC,gBAAgB;EACjE,MAAME,UAAU,GAAGF,gBAAgB,GAAGL,eAAe,GAAGI,kBAAkB;EAC1E,MAAMI,cAAc,GAAGT,eAAe,KAAKO,kBAAkB;EAC7D,MAAMG,wBAAwB,GAAG,CAACN,WAAW,IAAI,CAACC,kBAAkB;EACpE,MAAMM,mBAAmB,GAAGD,wBAAwB,GAChD7B,qBAAqB,CAAC0B,kBAAkB,EAAEb,sBAAsB,EAAEE,uBAAuB,CAAC,GAC1F,EAAE;EACN,MAAMgB,kBAAkB,GAAGF,wBAAwB,IAAI,CAACC,mBAAmB,CAACE,MAAM;EAElF,OAAO;IACLxB,UAAU;IACVmB,UAAU;IACVzB,YAAY;IACZoB,YAAY;IACZC,WAAW;IACXC,kBAAkB;IAClBI,cAAc;IACdE,mBAAmB;IACnBC;EACF,CAAC;AACH,CAAC;AAED,eAAepB,cAAc"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-filter-relation-keys.js","names":["getFilterRelationKeys","entityName","currentEntityRelations","currentEntityProperties","filter","entityIdentifier","foreignKey","map"],"sources":["../../src/helpers/get-filter-relation-keys.js"],"sourcesContent":["const getFilterRelationKeys = (entityName, currentEntityRelations, currentEntityProperties) =>\n currentEntityRelations\n .filter(\n ({ entityIdentifier, foreignKey }) =>\n entityIdentifier === entityName && currentEntityProperties[foreignKey]\n )\n .map(({ foreignKey }) => foreignKey);\n\nexport default getFilterRelationKeys;\n"],"mappings":"AAAA,MAAMA,qBAAqB,GAAG,CAACC,UAAU,EAAEC,sBAAsB,EAAEC,uBAAuB,KACxFD,sBAAsB,CACnBE,MAAM,CACL,CAAC;EAAEC,gBAAgB;EAAEC;AAAW,CAAC,KAC/BD,gBAAgB,KAAKJ,UAAU,IAAIE,uBAAuB,CAACG,UAAU,CAAC,CACzE,CACAC,GAAG,CAAC,CAAC;EAAED;AAAW,CAAC,KAAKA,UAAU,CAAC;AAExC,eAAeN,qBAAqB"}
1
+ {"version":3,"file":"get-filter-relation-keys.js","names":["getFilterRelationKeys","entityName","currentEntityRelations","currentEntityProperties","filter","entityIdentifier","foreignKey","map"],"sources":["../../src/helpers/get-filter-relation-keys.js"],"sourcesContent":["const getFilterRelationKeys = (entityName, currentEntityRelations, currentEntityProperties) =>\n currentEntityRelations\n .filter(\n ({ entityIdentifier, foreignKey }) =>\n entityIdentifier === entityName && currentEntityProperties[foreignKey]\n )\n .map(({ foreignKey }) => foreignKey);\n\nexport default getFilterRelationKeys;\n"],"mappings":"AAAA,MAAMA,qBAAqB,GAAGA,CAACC,UAAU,EAAEC,sBAAsB,EAAEC,uBAAuB,KACxFD,sBAAsB,CACnBE,MAAM,CACL,CAAC;EAAEC,gBAAgB;EAAEC;AAAW,CAAC,KAC/BD,gBAAgB,KAAKJ,UAAU,IAAIE,uBAAuB,CAACG,UAAU,CAAC,CACzE,CACAC,GAAG,CAAC,CAAC;EAAED;AAAW,CAAC,KAAKA,UAAU,CAAC;AAExC,eAAeN,qBAAqB"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-generic-props.js","names":["getDictionaryMatch","propsSchema","getGenericProps","props","itemsPerRow","gridModifier"],"sources":["../../src/helpers/get-generic-props.js"],"sourcesContent":["import getDictionaryMatch from './get-dictionary-match';\nimport { propsSchema } from './entities/constants';\n\nfunction getGenericProps(props = propsSchema) {\n const { itemsPerRow } = props;\n const gridModifier = getDictionaryMatch(itemsPerRow);\n\n return { gridModifier, ...props };\n}\n\nexport default getGenericProps;\n"],"mappings":";;;AAAA,OAAOA,kBAAkB,MAAM,wBAAwB;AACvD,SAASC,WAAW,QAAQ,sBAAsB;AAElD,SAASC,eAAe,CAACC,KAAK,GAAGF,WAAW,EAAE;EAC5C,MAAM;IAAEG;EAAY,CAAC,GAAGD,KAAK;EAC7B,MAAME,YAAY,GAAGL,kBAAkB,CAACI,WAAW,CAAC;EAEpD;IAASC;EAAY,GAAKF,KAAK;AACjC;AAEA,eAAeD,eAAe"}
1
+ {"version":3,"file":"get-generic-props.js","names":["getDictionaryMatch","propsSchema","getGenericProps","props","itemsPerRow","gridModifier","_objectSpread"],"sources":["../../src/helpers/get-generic-props.js"],"sourcesContent":["import getDictionaryMatch from './get-dictionary-match';\nimport { propsSchema } from './entities/constants';\n\nfunction getGenericProps(props = propsSchema) {\n const { itemsPerRow } = props;\n const gridModifier = getDictionaryMatch(itemsPerRow);\n\n return { gridModifier, ...props };\n}\n\nexport default getGenericProps;\n"],"mappings":";;;AAAA,OAAOA,kBAAkB,MAAM,wBAAwB;AACvD,SAASC,WAAW,QAAQ,sBAAsB;AAElD,SAASC,eAAeA,CAACC,KAAK,GAAGF,WAAW,EAAE;EAC5C,MAAM;IAAEG;EAAY,CAAC,GAAGD,KAAK;EAC7B,MAAME,YAAY,GAAGL,kBAAkB,CAACI,WAAW,CAAC;EAEpD,OAAAE,aAAA;IAASD;EAAY,GAAKF,KAAK;AACjC;AAEA,eAAeD,eAAe"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-generic-render-variables.js","names":["getSortbyFieldName","DEFAULT_LIMIT","DEFAULT_OFFSET","buildSortValues","sortFilters","relations","stringProps","length","sort","sortValues","map","propsToDisplay","sortFieldName","toLowerCase","filter","Boolean","join","getCorrectSort","filterProps","isTextSearchApplied","sortby","sortProperties","getGenericRenderVariables","rawQuery","isTextSearchFilterApplied","useRandomSort","limit","offset","limitToUse","Number","offsetToUse","rawQueryStringified","JSON","stringify","query","function_score","random_score","boost_mode"],"sources":["../../src/helpers/get-generic-render-variables.js"],"sourcesContent":["import getSortbyFieldName from './get-sort-by-field-name';\nimport { DEFAULT_LIMIT, DEFAULT_OFFSET } from '../constants';\n\nconst buildSortValues = (sortFilters, relations, stringProps) => {\n if (!sortFilters || !sortFilters.length) return { sort: [] };\n\n const sortValues = sortFilters\n .map(({ sort, propsToDisplay }) => {\n if (!sort) return null;\n\n const sortFieldName = getSortbyFieldName(relations, propsToDisplay, stringProps);\n return sortFieldName ? `${sortFieldName}:${sort.toLowerCase()}` : null;\n })\n .filter(Boolean)\n .join(',');\n\n return { sort: sortValues };\n};\nconst getCorrectSort = (relations, filterProps, stringProps, isTextSearchApplied) => {\n if (isTextSearchApplied) {\n return {};\n }\n const { sort, sortby, sortProperties = [] } = filterProps;\n\n return buildSortValues(\n [{ sort, propsToDisplay: sortby }, ...sortProperties],\n relations,\n stringProps\n );\n};\n\nconst getGenericRenderVariables = (\n relations,\n filterProps = {},\n stringProps = [],\n rawQuery = {},\n isTextSearchFilterApplied = false,\n useRandomSort = false\n) => {\n const { limit = DEFAULT_LIMIT, offset } = filterProps;\n const limitToUse = Number(limit || DEFAULT_LIMIT);\n const offsetToUse = Number(offset || DEFAULT_OFFSET);\n\n if (useRandomSort) {\n const rawQueryStringified = JSON.stringify({\n query: {\n function_score: {\n query: rawQuery && rawQuery.query ? rawQuery.query : rawQuery,\n random_score: {},\n boost_mode: 'replace'\n }\n }\n });\n\n return {\n limit: limitToUse,\n offset: offsetToUse,\n rawQueryStringified\n };\n }\n\n const sort = getCorrectSort(relations, filterProps, stringProps, isTextSearchFilterApplied);\n\n return {\n limit: limitToUse,\n offset: offsetToUse,\n ...sort,\n rawQueryStringified: JSON.stringify(rawQuery)\n };\n};\n\nexport default getGenericRenderVariables;\n"],"mappings":";;;AAAA,OAAOA,kBAAkB,MAAM,0BAA0B;AACzD,SAASC,aAAa,EAAEC,cAAc,QAAQ,cAAc;AAE5D,MAAMC,eAAe,GAAG,CAACC,WAAW,EAAEC,SAAS,EAAEC,WAAW,KAAK;EAC/D,IAAI,CAACF,WAAW,IAAI,CAACA,WAAW,CAACG,MAAM,EAAE,OAAO;IAAEC,IAAI,EAAE;EAAG,CAAC;EAE5D,MAAMC,UAAU,GAAGL,WAAW,CAC3BM,GAAG,CAAC,CAAC;IAAEF,IAAI;IAAEG;EAAe,CAAC,KAAK;IACjC,IAAI,CAACH,IAAI,EAAE,OAAO,IAAI;IAEtB,MAAMI,aAAa,GAAGZ,kBAAkB,CAACK,SAAS,EAAEM,cAAc,EAAEL,WAAW,CAAC;IAChF,OAAOM,aAAa,GAAI,GAAEA,aAAc,IAAGJ,IAAI,CAACK,WAAW,EAAG,EAAC,GAAG,IAAI;EACxE,CAAC,CAAC,CACDC,MAAM,CAACC,OAAO,CAAC,CACfC,IAAI,CAAC,GAAG,CAAC;EAEZ,OAAO;IAAER,IAAI,EAAEC;EAAW,CAAC;AAC7B,CAAC;AACD,MAAMQ,cAAc,GAAG,CAACZ,SAAS,EAAEa,WAAW,EAAEZ,WAAW,EAAEa,mBAAmB,KAAK;EACnF,IAAIA,mBAAmB,EAAE;IACvB,OAAO,CAAC,CAAC;EACX;EACA,MAAM;IAAEX,IAAI;IAAEY,MAAM;IAAEC,cAAc,GAAG;EAAG,CAAC,GAAGH,WAAW;EAEzD,OAAOf,eAAe,CACpB,CAAC;IAAEK,IAAI;IAAEG,cAAc,EAAES;EAAO,CAAC,EAAE,GAAGC,cAAc,CAAC,EACrDhB,SAAS,EACTC,WAAW,CACZ;AACH,CAAC;AAED,MAAMgB,yBAAyB,GAAG,CAChCjB,SAAS,EACTa,WAAW,GAAG,CAAC,CAAC,EAChBZ,WAAW,GAAG,EAAE,EAChBiB,QAAQ,GAAG,CAAC,CAAC,EACbC,yBAAyB,GAAG,KAAK,EACjCC,aAAa,GAAG,KAAK,KAClB;EACH,MAAM;IAAEC,KAAK,GAAGzB,aAAa;IAAE0B;EAAO,CAAC,GAAGT,WAAW;EACrD,MAAMU,UAAU,GAAGC,MAAM,CAACH,KAAK,IAAIzB,aAAa,CAAC;EACjD,MAAM6B,WAAW,GAAGD,MAAM,CAACF,MAAM,IAAIzB,cAAc,CAAC;EAEpD,IAAIuB,aAAa,EAAE;IACjB,MAAMM,mBAAmB,GAAGC,IAAI,CAACC,SAAS,CAAC;MACzCC,KAAK,EAAE;QACLC,cAAc,EAAE;UACdD,KAAK,EAAEX,QAAQ,IAAIA,QAAQ,CAACW,KAAK,GAAGX,QAAQ,CAACW,KAAK,GAAGX,QAAQ;UAC7Da,YAAY,EAAE,CAAC,CAAC;UAChBC,UAAU,EAAE;QACd;MACF;IACF,CAAC,CAAC;IAEF,OAAO;MACLX,KAAK,EAAEE,UAAU;MACjBD,MAAM,EAAEG,WAAW;MACnBC;IACF,CAAC;EACH;EAEA,MAAMvB,IAAI,GAAGS,cAAc,CAACZ,SAAS,EAAEa,WAAW,EAAEZ,WAAW,EAAEkB,yBAAyB,CAAC;EAE3F;IACEE,KAAK,EAAEE,UAAU;IACjBD,MAAM,EAAEG;EAAW,GAChBtB,IAAI;IACPuB,mBAAmB,EAAEC,IAAI,CAACC,SAAS,CAACV,QAAQ;EAAC;AAEjD,CAAC;AAED,eAAeD,yBAAyB"}
1
+ {"version":3,"file":"get-generic-render-variables.js","names":["getSortbyFieldName","DEFAULT_LIMIT","DEFAULT_OFFSET","buildSortValues","sortFilters","relations","stringProps","length","sort","sortValues","map","propsToDisplay","sortFieldName","toLowerCase","filter","Boolean","join","getCorrectSort","filterProps","isTextSearchApplied","sortby","sortProperties","getGenericRenderVariables","rawQuery","isTextSearchFilterApplied","useRandomSort","limit","offset","limitToUse","Number","offsetToUse","rawQueryStringified","JSON","stringify","query","function_score","random_score","boost_mode","_objectSpread"],"sources":["../../src/helpers/get-generic-render-variables.js"],"sourcesContent":["import getSortbyFieldName from './get-sort-by-field-name';\nimport { DEFAULT_LIMIT, DEFAULT_OFFSET } from '../constants';\n\nconst buildSortValues = (sortFilters, relations, stringProps) => {\n if (!sortFilters || !sortFilters.length) return { sort: [] };\n\n const sortValues = sortFilters\n .map(({ sort, propsToDisplay }) => {\n if (!sort) return null;\n\n const sortFieldName = getSortbyFieldName(relations, propsToDisplay, stringProps);\n return sortFieldName ? `${sortFieldName}:${sort.toLowerCase()}` : null;\n })\n .filter(Boolean)\n .join(',');\n\n return { sort: sortValues };\n};\nconst getCorrectSort = (relations, filterProps, stringProps, isTextSearchApplied) => {\n if (isTextSearchApplied) {\n return {};\n }\n const { sort, sortby, sortProperties = [] } = filterProps;\n\n return buildSortValues(\n [{ sort, propsToDisplay: sortby }, ...sortProperties],\n relations,\n stringProps\n );\n};\n\nconst getGenericRenderVariables = (\n relations,\n filterProps = {},\n stringProps = [],\n rawQuery = {},\n isTextSearchFilterApplied = false,\n useRandomSort = false\n) => {\n const { limit = DEFAULT_LIMIT, offset } = filterProps;\n const limitToUse = Number(limit || DEFAULT_LIMIT);\n const offsetToUse = Number(offset || DEFAULT_OFFSET);\n\n if (useRandomSort) {\n const rawQueryStringified = JSON.stringify({\n query: {\n function_score: {\n query: rawQuery && rawQuery.query ? rawQuery.query : rawQuery,\n random_score: {},\n boost_mode: 'replace'\n }\n }\n });\n\n return {\n limit: limitToUse,\n offset: offsetToUse,\n rawQueryStringified\n };\n }\n\n const sort = getCorrectSort(relations, filterProps, stringProps, isTextSearchFilterApplied);\n\n return {\n limit: limitToUse,\n offset: offsetToUse,\n ...sort,\n rawQueryStringified: JSON.stringify(rawQuery)\n };\n};\n\nexport default getGenericRenderVariables;\n"],"mappings":";;;AAAA,OAAOA,kBAAkB,MAAM,0BAA0B;AACzD,SAASC,aAAa,EAAEC,cAAc,QAAQ,cAAc;AAE5D,MAAMC,eAAe,GAAGA,CAACC,WAAW,EAAEC,SAAS,EAAEC,WAAW,KAAK;EAC/D,IAAI,CAACF,WAAW,IAAI,CAACA,WAAW,CAACG,MAAM,EAAE,OAAO;IAAEC,IAAI,EAAE;EAAG,CAAC;EAE5D,MAAMC,UAAU,GAAGL,WAAW,CAC3BM,GAAG,CAAC,CAAC;IAAEF,IAAI;IAAEG;EAAe,CAAC,KAAK;IACjC,IAAI,CAACH,IAAI,EAAE,OAAO,IAAI;IAEtB,MAAMI,aAAa,GAAGZ,kBAAkB,CAACK,SAAS,EAAEM,cAAc,EAAEL,WAAW,CAAC;IAChF,OAAOM,aAAa,GAAI,GAAEA,aAAc,IAAGJ,IAAI,CAACK,WAAW,EAAG,EAAC,GAAG,IAAI;EACxE,CAAC,CAAC,CACDC,MAAM,CAACC,OAAO,CAAC,CACfC,IAAI,CAAC,GAAG,CAAC;EAEZ,OAAO;IAAER,IAAI,EAAEC;EAAW,CAAC;AAC7B,CAAC;AACD,MAAMQ,cAAc,GAAGA,CAACZ,SAAS,EAAEa,WAAW,EAAEZ,WAAW,EAAEa,mBAAmB,KAAK;EACnF,IAAIA,mBAAmB,EAAE;IACvB,OAAO,CAAC,CAAC;EACX;EACA,MAAM;IAAEX,IAAI;IAAEY,MAAM;IAAEC,cAAc,GAAG;EAAG,CAAC,GAAGH,WAAW;EAEzD,OAAOf,eAAe,CACpB,CAAC;IAAEK,IAAI;IAAEG,cAAc,EAAES;EAAO,CAAC,EAAE,GAAGC,cAAc,CAAC,EACrDhB,SAAS,EACTC,WAAW,CACZ;AACH,CAAC;AAED,MAAMgB,yBAAyB,GAAGA,CAChCjB,SAAS,EACTa,WAAW,GAAG,CAAC,CAAC,EAChBZ,WAAW,GAAG,EAAE,EAChBiB,QAAQ,GAAG,CAAC,CAAC,EACbC,yBAAyB,GAAG,KAAK,EACjCC,aAAa,GAAG,KAAK,KAClB;EACH,MAAM;IAAEC,KAAK,GAAGzB,aAAa;IAAE0B;EAAO,CAAC,GAAGT,WAAW;EACrD,MAAMU,UAAU,GAAGC,MAAM,CAACH,KAAK,IAAIzB,aAAa,CAAC;EACjD,MAAM6B,WAAW,GAAGD,MAAM,CAACF,MAAM,IAAIzB,cAAc,CAAC;EAEpD,IAAIuB,aAAa,EAAE;IACjB,MAAMM,mBAAmB,GAAGC,IAAI,CAACC,SAAS,CAAC;MACzCC,KAAK,EAAE;QACLC,cAAc,EAAE;UACdD,KAAK,EAAEX,QAAQ,IAAIA,QAAQ,CAACW,KAAK,GAAGX,QAAQ,CAACW,KAAK,GAAGX,QAAQ;UAC7Da,YAAY,EAAE,CAAC,CAAC;UAChBC,UAAU,EAAE;QACd;MACF;IACF,CAAC,CAAC;IAEF,OAAO;MACLX,KAAK,EAAEE,UAAU;MACjBD,MAAM,EAAEG,WAAW;MACnBC;IACF,CAAC;EACH;EAEA,MAAMvB,IAAI,GAAGS,cAAc,CAACZ,SAAS,EAAEa,WAAW,EAAEZ,WAAW,EAAEkB,yBAAyB,CAAC;EAE3F,OAAAc,aAAA,CAAAA,aAAA;IACEZ,KAAK,EAAEE,UAAU;IACjBD,MAAM,EAAEG;EAAW,GAChBtB,IAAI;IACPuB,mBAAmB,EAAEC,IAAI,CAACC,SAAS,CAACV,QAAQ;EAAC;AAEjD,CAAC;AAED,eAAeD,yBAAyB"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-image-ids.js","names":["isPlainObject","getIdsFromArray","relationImageData","relationProp","imageId","length","map","image","Object","keys","filter","Boolean","getImageIds","imageRelation","relationData","imageIdArray","entityData","imageData","relationName","split","Array","isArray"],"sources":["../../src/helpers/get-image-ids.js"],"sourcesContent":["import isPlainObject from 'lodash.isplainobject';\n\nconst getIdsFromArray = (relationImageData, relationProp, imageId) => {\n if (!relationImageData.length) return [imageId];\n return relationImageData\n .map(image => {\n if (!Object.keys(image).length) return '';\n return image[relationProp];\n })\n .filter(Boolean);\n};\n\nconst getImageIds = (imageRelation, relationData, imageId) => {\n const imageIdArray = imageId ? [imageId] : [];\n if (relationData && relationData.entityData) {\n const [imageData] = imageRelation;\n const [relationName, relationProp] = imageData.split('.');\n const relationImageData = relationData.entityData[relationName];\n\n if (!relationImageData) return imageIdArray;\n\n if (Array.isArray(relationImageData))\n return getIdsFromArray(relationImageData, relationProp, imageId);\n\n if (isPlainObject(relationImageData) && Object.keys(relationImageData).length) {\n return Array.isArray(relationImageData[relationProp])\n ? relationImageData[relationProp]\n : [relationImageData[relationProp]];\n }\n }\n\n return imageIdArray;\n};\n\nexport default getImageIds;\n"],"mappings":"AAAA,OAAOA,aAAa,MAAM,sBAAsB;AAEhD,MAAMC,eAAe,GAAG,CAACC,iBAAiB,EAAEC,YAAY,EAAEC,OAAO,KAAK;EACpE,IAAI,CAACF,iBAAiB,CAACG,MAAM,EAAE,OAAO,CAACD,OAAO,CAAC;EAC/C,OAAOF,iBAAiB,CACrBI,GAAG,CAACC,KAAK,IAAI;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,MAAMC,WAAW,GAAG,CAACC,aAAa,EAAEC,YAAY,EAAEV,OAAO,KAAK;EAC5D,MAAMW,YAAY,GAAGX,OAAO,GAAG,CAACA,OAAO,CAAC,GAAG,EAAE;EAC7C,IAAIU,YAAY,IAAIA,YAAY,CAACE,UAAU,EAAE;IAC3C,MAAM,CAACC,SAAS,CAAC,GAAGJ,aAAa;IACjC,MAAM,CAACK,YAAY,EAAEf,YAAY,CAAC,GAAGc,SAAS,CAACE,KAAK,CAAC,GAAG,CAAC;IACzD,MAAMjB,iBAAiB,GAAGY,YAAY,CAACE,UAAU,CAACE,YAAY,CAAC;IAE/D,IAAI,CAAChB,iBAAiB,EAAE,OAAOa,YAAY;IAE3C,IAAIK,KAAK,CAACC,OAAO,CAACnB,iBAAiB,CAAC,EAClC,OAAOD,eAAe,CAACC,iBAAiB,EAAEC,YAAY,EAAEC,OAAO,CAAC;IAElE,IAAIJ,aAAa,CAACE,iBAAiB,CAAC,IAAIM,MAAM,CAACC,IAAI,CAACP,iBAAiB,CAAC,CAACG,MAAM,EAAE;MAC7E,OAAOe,KAAK,CAACC,OAAO,CAACnB,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;AAED,eAAeH,WAAW"}
1
+ {"version":3,"file":"get-image-ids.js","names":["isPlainObject","getIdsFromArray","relationImageData","relationProp","imageId","length","map","image","Object","keys","filter","Boolean","getImageIds","imageRelation","relationData","imageIdArray","entityData","imageData","relationName","split","Array","isArray"],"sources":["../../src/helpers/get-image-ids.js"],"sourcesContent":["import isPlainObject from 'lodash.isplainobject';\n\nconst getIdsFromArray = (relationImageData, relationProp, imageId) => {\n if (!relationImageData.length) return [imageId];\n return relationImageData\n .map(image => {\n if (!Object.keys(image).length) return '';\n return image[relationProp];\n })\n .filter(Boolean);\n};\n\nconst getImageIds = (imageRelation, relationData, imageId) => {\n const imageIdArray = imageId ? [imageId] : [];\n if (relationData && relationData.entityData) {\n const [imageData] = imageRelation;\n const [relationName, relationProp] = imageData.split('.');\n const relationImageData = relationData.entityData[relationName];\n\n if (!relationImageData) return imageIdArray;\n\n if (Array.isArray(relationImageData))\n return getIdsFromArray(relationImageData, relationProp, imageId);\n\n if (isPlainObject(relationImageData) && Object.keys(relationImageData).length) {\n return Array.isArray(relationImageData[relationProp])\n ? relationImageData[relationProp]\n : [relationImageData[relationProp]];\n }\n }\n\n return imageIdArray;\n};\n\nexport default getImageIds;\n"],"mappings":"AAAA,OAAOA,aAAa,MAAM,sBAAsB;AAEhD,MAAMC,eAAe,GAAGA,CAACC,iBAAiB,EAAEC,YAAY,EAAEC,OAAO,KAAK;EACpE,IAAI,CAACF,iBAAiB,CAACG,MAAM,EAAE,OAAO,CAACD,OAAO,CAAC;EAC/C,OAAOF,iBAAiB,CACrBI,GAAG,CAACC,KAAK,IAAI;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,MAAMC,WAAW,GAAGA,CAACC,aAAa,EAAEC,YAAY,EAAEV,OAAO,KAAK;EAC5D,MAAMW,YAAY,GAAGX,OAAO,GAAG,CAACA,OAAO,CAAC,GAAG,EAAE;EAC7C,IAAIU,YAAY,IAAIA,YAAY,CAACE,UAAU,EAAE;IAC3C,MAAM,CAACC,SAAS,CAAC,GAAGJ,aAAa;IACjC,MAAM,CAACK,YAAY,EAAEf,YAAY,CAAC,GAAGc,SAAS,CAACE,KAAK,CAAC,GAAG,CAAC;IACzD,MAAMjB,iBAAiB,GAAGY,YAAY,CAACE,UAAU,CAACE,YAAY,CAAC;IAE/D,IAAI,CAAChB,iBAAiB,EAAE,OAAOa,YAAY;IAE3C,IAAIK,KAAK,CAACC,OAAO,CAACnB,iBAAiB,CAAC,EAClC,OAAOD,eAAe,CAACC,iBAAiB,EAAEC,YAAY,EAAEC,OAAO,CAAC;IAElE,IAAIJ,aAAa,CAACE,iBAAiB,CAAC,IAAIM,MAAM,CAACC,IAAI,CAACP,iBAAiB,CAAC,CAACG,MAAM,EAAE;MAC7E,OAAOe,KAAK,CAACC,OAAO,CAACnB,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;AAED,eAAeH,WAAW"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-inherited-filters.js","names":["getInheritedFilters","filterBy","filterByProperty","length","reduce","acc","property","propName","split","filterByMatched","filter","filterId","includes","push"],"sources":["../../src/helpers/get-inherited-filters.js"],"sourcesContent":["const getInheritedFilters = (filterBy, filterByProperty) => {\n if (!filterByProperty.length) return [];\n if (!filterBy.length) return filterByProperty;\n\n return filterByProperty.reduce((acc, property) => {\n const [propName] = property.split('/');\n const filterByMatched = filterBy.filter(filterId => filterId.includes(`${propName}/`));\n\n if (!filterByMatched.length) acc.push(property);\n return acc;\n }, []);\n};\n\nexport default getInheritedFilters;\n"],"mappings":"AAAA,MAAMA,mBAAmB,GAAG,CAACC,QAAQ,EAAEC,gBAAgB,KAAK;EAC1D,IAAI,CAACA,gBAAgB,CAACC,MAAM,EAAE,OAAO,EAAE;EACvC,IAAI,CAACF,QAAQ,CAACE,MAAM,EAAE,OAAOD,gBAAgB;EAE7C,OAAOA,gBAAgB,CAACE,MAAM,CAAC,CAACC,GAAG,EAAEC,QAAQ,KAAK;IAChD,MAAM,CAACC,QAAQ,CAAC,GAAGD,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;IACtC,MAAMC,eAAe,GAAGR,QAAQ,CAACS,MAAM,CAACC,QAAQ,IAAIA,QAAQ,CAACC,QAAQ,CAAE,GAAEL,QAAS,GAAE,CAAC,CAAC;IAEtF,IAAI,CAACE,eAAe,CAACN,MAAM,EAAEE,GAAG,CAACQ,IAAI,CAACP,QAAQ,CAAC;IAC/C,OAAOD,GAAG;EACZ,CAAC,EAAE,EAAE,CAAC;AACR,CAAC;AAED,eAAeL,mBAAmB"}
1
+ {"version":3,"file":"get-inherited-filters.js","names":["getInheritedFilters","filterBy","filterByProperty","length","reduce","acc","property","propName","split","filterByMatched","filter","filterId","includes","push"],"sources":["../../src/helpers/get-inherited-filters.js"],"sourcesContent":["const getInheritedFilters = (filterBy, filterByProperty) => {\n if (!filterByProperty.length) return [];\n if (!filterBy.length) return filterByProperty;\n\n return filterByProperty.reduce((acc, property) => {\n const [propName] = property.split('/');\n const filterByMatched = filterBy.filter(filterId => filterId.includes(`${propName}/`));\n\n if (!filterByMatched.length) acc.push(property);\n return acc;\n }, []);\n};\n\nexport default getInheritedFilters;\n"],"mappings":"AAAA,MAAMA,mBAAmB,GAAGA,CAACC,QAAQ,EAAEC,gBAAgB,KAAK;EAC1D,IAAI,CAACA,gBAAgB,CAACC,MAAM,EAAE,OAAO,EAAE;EACvC,IAAI,CAACF,QAAQ,CAACE,MAAM,EAAE,OAAOD,gBAAgB;EAE7C,OAAOA,gBAAgB,CAACE,MAAM,CAAC,CAACC,GAAG,EAAEC,QAAQ,KAAK;IAChD,MAAM,CAACC,QAAQ,CAAC,GAAGD,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;IACtC,MAAMC,eAAe,GAAGR,QAAQ,CAACS,MAAM,CAACC,QAAQ,IAAIA,QAAQ,CAACC,QAAQ,CAAE,GAAEL,QAAS,GAAE,CAAC,CAAC;IAEtF,IAAI,CAACE,eAAe,CAACN,MAAM,EAAEE,GAAG,CAACQ,IAAI,CAACP,QAAQ,CAAC;IAC/C,OAAOD,GAAG;EACZ,CAAC,EAAE,EAAE,CAAC;AACR,CAAC;AAED,eAAeL,mBAAmB"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-items-to-display-ids.js","names":["getItemsToDisplayIds","itemsToDisplay","length","ids","reduce","acc","displayItems","concat","Set"],"sources":["../../src/helpers/get-items-to-display-ids.js"],"sourcesContent":["function getItemsToDisplayIds(itemsToDisplay) {\n if (!itemsToDisplay || !itemsToDisplay.length) return [];\n const ids = itemsToDisplay.reduce((acc, { displayItems }) => {\n if (!displayItems || !displayItems.length) return acc;\n return acc.concat(displayItems);\n }, []);\n return [...new Set([...ids])];\n}\n\nexport default getItemsToDisplayIds;\n"],"mappings":"AAAA,SAASA,oBAAoB,CAACC,cAAc,EAAE;EAC5C,IAAI,CAACA,cAAc,IAAI,CAACA,cAAc,CAACC,MAAM,EAAE,OAAO,EAAE;EACxD,MAAMC,GAAG,GAAGF,cAAc,CAACG,MAAM,CAAC,CAACC,GAAG,EAAE;IAAEC;EAAa,CAAC,KAAK;IAC3D,IAAI,CAACA,YAAY,IAAI,CAACA,YAAY,CAACJ,MAAM,EAAE,OAAOG,GAAG;IACrD,OAAOA,GAAG,CAACE,MAAM,CAACD,YAAY,CAAC;EACjC,CAAC,EAAE,EAAE,CAAC;EACN,OAAO,CAAC,GAAG,IAAIE,GAAG,CAAC,CAAC,GAAGL,GAAG,CAAC,CAAC,CAAC;AAC/B;AAEA,eAAeH,oBAAoB"}
1
+ {"version":3,"file":"get-items-to-display-ids.js","names":["getItemsToDisplayIds","itemsToDisplay","length","ids","reduce","acc","displayItems","concat","Set"],"sources":["../../src/helpers/get-items-to-display-ids.js"],"sourcesContent":["function getItemsToDisplayIds(itemsToDisplay) {\n if (!itemsToDisplay || !itemsToDisplay.length) return [];\n const ids = itemsToDisplay.reduce((acc, { displayItems }) => {\n if (!displayItems || !displayItems.length) return acc;\n return acc.concat(displayItems);\n }, []);\n return [...new Set([...ids])];\n}\n\nexport default getItemsToDisplayIds;\n"],"mappings":"AAAA,SAASA,oBAAoBA,CAACC,cAAc,EAAE;EAC5C,IAAI,CAACA,cAAc,IAAI,CAACA,cAAc,CAACC,MAAM,EAAE,OAAO,EAAE;EACxD,MAAMC,GAAG,GAAGF,cAAc,CAACG,MAAM,CAAC,CAACC,GAAG,EAAE;IAAEC;EAAa,CAAC,KAAK;IAC3D,IAAI,CAACA,YAAY,IAAI,CAACA,YAAY,CAACJ,MAAM,EAAE,OAAOG,GAAG;IACrD,OAAOA,GAAG,CAACE,MAAM,CAACD,YAAY,CAAC;EACjC,CAAC,EAAE,EAAE,CAAC;EACN,OAAO,CAAC,GAAG,IAAIE,GAAG,CAAC,CAAC,GAAGL,GAAG,CAAC,CAAC,CAAC;AAC/B;AAEA,eAAeH,oBAAoB"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-modifiers.js","names":["getModifiers","base","modifier","Array","isArray","modifiers","map","modi","validateModifier","unshift","uniqueModifiers","Set","join","withBase","isValidModifier"],"sources":["../../src/helpers/get-modifiers.js"],"sourcesContent":["const getModifiers = (base, modifier) => {\n if (Array.isArray(modifier)) {\n const modifiers = modifier.map(modi => validateModifier(base, modi, false));\n modifiers.unshift(base);\n const uniqueModifiers = [...new Set(modifiers)];\n\n return uniqueModifiers.join(' ');\n }\n return validateModifier(base, modifier);\n};\n\nconst validateModifier = (base, modifier, withBase = true) => {\n const isValidModifier = modifier && typeof modifier === 'string';\n if (isValidModifier) return withBase ? `${base} ${base}--${modifier}` : `${base}--${modifier}`;\n\n return base;\n};\n\nexport default getModifiers;\n"],"mappings":"AAAA,MAAMA,YAAY,GAAG,CAACC,IAAI,EAAEC,QAAQ,KAAK;EACvC,IAAIC,KAAK,CAACC,OAAO,CAACF,QAAQ,CAAC,EAAE;IAC3B,MAAMG,SAAS,GAAGH,QAAQ,CAACI,GAAG,CAACC,IAAI,IAAIC,gBAAgB,CAACP,IAAI,EAAEM,IAAI,EAAE,KAAK,CAAC,CAAC;IAC3EF,SAAS,CAACI,OAAO,CAACR,IAAI,CAAC;IACvB,MAAMS,eAAe,GAAG,CAAC,GAAG,IAAIC,GAAG,CAACN,SAAS,CAAC,CAAC;IAE/C,OAAOK,eAAe,CAACE,IAAI,CAAC,GAAG,CAAC;EAClC;EACA,OAAOJ,gBAAgB,CAACP,IAAI,EAAEC,QAAQ,CAAC;AACzC,CAAC;AAED,MAAMM,gBAAgB,GAAG,CAACP,IAAI,EAAEC,QAAQ,EAAEW,QAAQ,GAAG,IAAI,KAAK;EAC5D,MAAMC,eAAe,GAAGZ,QAAQ,IAAI,OAAOA,QAAQ,KAAK,QAAQ;EAChE,IAAIY,eAAe,EAAE,OAAOD,QAAQ,GAAI,GAAEZ,IAAK,IAAGA,IAAK,KAAIC,QAAS,EAAC,GAAI,GAAED,IAAK,KAAIC,QAAS,EAAC;EAE9F,OAAOD,IAAI;AACb,CAAC;AAED,eAAeD,YAAY"}
1
+ {"version":3,"file":"get-modifiers.js","names":["getModifiers","base","modifier","Array","isArray","modifiers","map","modi","validateModifier","unshift","uniqueModifiers","Set","join","withBase","isValidModifier"],"sources":["../../src/helpers/get-modifiers.js"],"sourcesContent":["const getModifiers = (base, modifier) => {\n if (Array.isArray(modifier)) {\n const modifiers = modifier.map(modi => validateModifier(base, modi, false));\n modifiers.unshift(base);\n const uniqueModifiers = [...new Set(modifiers)];\n\n return uniqueModifiers.join(' ');\n }\n return validateModifier(base, modifier);\n};\n\nconst validateModifier = (base, modifier, withBase = true) => {\n const isValidModifier = modifier && typeof modifier === 'string';\n if (isValidModifier) return withBase ? `${base} ${base}--${modifier}` : `${base}--${modifier}`;\n\n return base;\n};\n\nexport default getModifiers;\n"],"mappings":"AAAA,MAAMA,YAAY,GAAGA,CAACC,IAAI,EAAEC,QAAQ,KAAK;EACvC,IAAIC,KAAK,CAACC,OAAO,CAACF,QAAQ,CAAC,EAAE;IAC3B,MAAMG,SAAS,GAAGH,QAAQ,CAACI,GAAG,CAACC,IAAI,IAAIC,gBAAgB,CAACP,IAAI,EAAEM,IAAI,EAAE,KAAK,CAAC,CAAC;IAC3EF,SAAS,CAACI,OAAO,CAACR,IAAI,CAAC;IACvB,MAAMS,eAAe,GAAG,CAAC,GAAG,IAAIC,GAAG,CAACN,SAAS,CAAC,CAAC;IAE/C,OAAOK,eAAe,CAACE,IAAI,CAAC,GAAG,CAAC;EAClC;EACA,OAAOJ,gBAAgB,CAACP,IAAI,EAAEC,QAAQ,CAAC;AACzC,CAAC;AAED,MAAMM,gBAAgB,GAAGA,CAACP,IAAI,EAAEC,QAAQ,EAAEW,QAAQ,GAAG,IAAI,KAAK;EAC5D,MAAMC,eAAe,GAAGZ,QAAQ,IAAI,OAAOA,QAAQ,KAAK,QAAQ;EAChE,IAAIY,eAAe,EAAE,OAAOD,QAAQ,GAAI,GAAEZ,IAAK,IAAGA,IAAK,KAAIC,QAAS,EAAC,GAAI,GAAED,IAAK,KAAIC,QAAS,EAAC;EAE9F,OAAOD,IAAI;AACb,CAAC;AAED,eAAeD,YAAY"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-not-equal-query.js","names":["getNotEqualQuery","itemId","id","_ne"],"sources":["../../src/helpers/get-not-equal-query.js"],"sourcesContent":["export default function getNotEqualQuery(itemId) {\n if (!itemId) return {};\n\n return {\n id: {\n _ne: itemId\n }\n };\n}\n"],"mappings":"AAAA,eAAe,SAASA,gBAAgB,CAACC,MAAM,EAAE;EAC/C,IAAI,CAACA,MAAM,EAAE,OAAO,CAAC,CAAC;EAEtB,OAAO;IACLC,EAAE,EAAE;MACFC,GAAG,EAAEF;IACP;EACF,CAAC;AACH"}
1
+ {"version":3,"file":"get-not-equal-query.js","names":["getNotEqualQuery","itemId","id","_ne"],"sources":["../../src/helpers/get-not-equal-query.js"],"sourcesContent":["export default function getNotEqualQuery(itemId) {\n if (!itemId) return {};\n\n return {\n id: {\n _ne: itemId\n }\n };\n}\n"],"mappings":"AAAA,eAAe,SAASA,gBAAgBA,CAACC,MAAM,EAAE;EAC/C,IAAI,CAACA,MAAM,EAAE,OAAO,CAAC,CAAC;EAEtB,OAAO;IACLC,EAAE,EAAE;MACFC,GAAG,EAAEF;IACP;EACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-pagination-index.js","names":["PAGINATION_QUERY_CONST","PB_QUERY_CONST","getPaginationIndex","query","name","paginationIndex","Number"],"sources":["../../src/helpers/get-pagination-index.js"],"sourcesContent":["import { PAGINATION_QUERY_CONST, PB_QUERY_CONST } from '../constants';\n\nfunction getPaginationIndex(query, name) {\n if (!query || !name) return 1;\n const paginationIndex = query[`${PB_QUERY_CONST}[${name}]${PAGINATION_QUERY_CONST}`];\n return Number(paginationIndex) || 1;\n}\n\nexport default getPaginationIndex;\n"],"mappings":"AAAA,SAASA,sBAAsB,EAAEC,cAAc,QAAQ,cAAc;AAErE,SAASC,kBAAkB,CAACC,KAAK,EAAEC,IAAI,EAAE;EACvC,IAAI,CAACD,KAAK,IAAI,CAACC,IAAI,EAAE,OAAO,CAAC;EAC7B,MAAMC,eAAe,GAAGF,KAAK,CAAE,GAAEF,cAAe,IAAGG,IAAK,IAAGJ,sBAAuB,EAAC,CAAC;EACpF,OAAOM,MAAM,CAACD,eAAe,CAAC,IAAI,CAAC;AACrC;AAEA,eAAeH,kBAAkB"}
1
+ {"version":3,"file":"get-pagination-index.js","names":["PAGINATION_QUERY_CONST","PB_QUERY_CONST","getPaginationIndex","query","name","paginationIndex","Number"],"sources":["../../src/helpers/get-pagination-index.js"],"sourcesContent":["import { PAGINATION_QUERY_CONST, PB_QUERY_CONST } from '../constants';\n\nfunction getPaginationIndex(query, name) {\n if (!query || !name) return 1;\n const paginationIndex = query[`${PB_QUERY_CONST}[${name}]${PAGINATION_QUERY_CONST}`];\n return Number(paginationIndex) || 1;\n}\n\nexport default getPaginationIndex;\n"],"mappings":"AAAA,SAASA,sBAAsB,EAAEC,cAAc,QAAQ,cAAc;AAErE,SAASC,kBAAkBA,CAACC,KAAK,EAAEC,IAAI,EAAE;EACvC,IAAI,CAACD,KAAK,IAAI,CAACC,IAAI,EAAE,OAAO,CAAC;EAC7B,MAAMC,eAAe,GAAGF,KAAK,CAAE,GAAEF,cAAe,IAAGG,IAAK,IAAGJ,sBAAuB,EAAC,CAAC;EACpF,OAAOM,MAAM,CAACD,eAAe,CAAC,IAAI,CAAC;AACrC;AAEA,eAAeH,kBAAkB"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-parsed-prop-values.js","names":["React","Link","isObject","removeUnwantedCharacters","getParsedPropValues","propertiesToDisplay","props","enableLink","shouldStrip","map","property","filteredProperty","subtype","split","value","Array","isArray","prop","index","propValue","sanitizedValue","isLastValue","length","parsedValue","concat","linkKey","join","url","filter","Boolean"],"sources":["../../src/helpers/get-parsed-prop-values.js"],"sourcesContent":["import React from 'react';\nimport { Link } from '@blaze-cms/nextjs-components';\nimport isObject from './is-object';\nimport removeUnwantedCharacters from './remove-unwanted-characters';\n\nconst getParsedPropValues = ({ propertiesToDisplay, props, enableLink, shouldStrip }) =>\n propertiesToDisplay\n .map(property => {\n const [filteredProperty, subtype] = property.split('.');\n const value = props[filteredProperty];\n\n if (Array.isArray(value)) {\n return value.map((prop, index) => {\n const propValue = subtype ? prop[subtype] : prop;\n const sanitizedValue = shouldStrip ? removeUnwantedCharacters(propValue) : propValue;\n\n const isLastValue = index === value.length - 1;\n const parsedValue = isLastValue ? sanitizedValue : sanitizedValue.concat(', ');\n const linkKey = [filteredProperty, prop[subtype], index].join('-');\n\n return enableLink && prop.url ? (\n <Link key={linkKey} href={prop.url}>\n {parsedValue}\n </Link>\n ) : (\n parsedValue\n );\n });\n }\n\n if (isObject(value)) {\n return shouldStrip ? removeUnwantedCharacters(value[subtype]) : value[subtype];\n }\n\n return shouldStrip ? removeUnwantedCharacters(value) : value;\n })\n .filter(Boolean);\n\nexport default getParsedPropValues;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,8BAA8B;AACnD,OAAOC,QAAQ,MAAM,aAAa;AAClC,OAAOC,wBAAwB,MAAM,8BAA8B;AAEnE,MAAMC,mBAAmB,GAAG,CAAC;EAAEC,mBAAmB;EAAEC,KAAK;EAAEC,UAAU;EAAEC;AAAY,CAAC,KAClFH,mBAAmB,CAChBI,GAAG,CAACC,QAAQ,IAAI;EACf,MAAM,CAACC,gBAAgB,EAAEC,OAAO,CAAC,GAAGF,QAAQ,CAACG,KAAK,CAAC,GAAG,CAAC;EACvD,MAAMC,KAAK,GAAGR,KAAK,CAACK,gBAAgB,CAAC;EAErC,IAAII,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,EAAE;IACxB,OAAOA,KAAK,CAACL,GAAG,CAAC,CAACQ,IAAI,EAAEC,KAAK,KAAK;MAChC,MAAMC,SAAS,GAAGP,OAAO,GAAGK,IAAI,CAACL,OAAO,CAAC,GAAGK,IAAI;MAChD,MAAMG,cAAc,GAAGZ,WAAW,GAAGL,wBAAwB,CAACgB,SAAS,CAAC,GAAGA,SAAS;MAEpF,MAAME,WAAW,GAAGH,KAAK,KAAKJ,KAAK,CAACQ,MAAM,GAAG,CAAC;MAC9C,MAAMC,WAAW,GAAGF,WAAW,GAAGD,cAAc,GAAGA,cAAc,CAACI,MAAM,CAAC,IAAI,CAAC;MAC9E,MAAMC,OAAO,GAAG,CAACd,gBAAgB,EAAEM,IAAI,CAACL,OAAO,CAAC,EAAEM,KAAK,CAAC,CAACQ,IAAI,CAAC,GAAG,CAAC;MAElE,OAAOnB,UAAU,IAAIU,IAAI,CAACU,GAAG,gBAC3B,oBAAC,IAAI;QAAC,GAAG,EAAEF,OAAQ;QAAC,IAAI,EAAER,IAAI,CAACU;MAAI,GAChCJ,WAAW,CACP,GAEPA,WACD;IACH,CAAC,CAAC;EACJ;EAEA,IAAIrB,QAAQ,CAACY,KAAK,CAAC,EAAE;IACnB,OAAON,WAAW,GAAGL,wBAAwB,CAACW,KAAK,CAACF,OAAO,CAAC,CAAC,GAAGE,KAAK,CAACF,OAAO,CAAC;EAChF;EAEA,OAAOJ,WAAW,GAAGL,wBAAwB,CAACW,KAAK,CAAC,GAAGA,KAAK;AAC9D,CAAC,CAAC,CACDc,MAAM,CAACC,OAAO,CAAC;AAEpB,eAAezB,mBAAmB"}
1
+ {"version":3,"file":"get-parsed-prop-values.js","names":["React","Link","isObject","removeUnwantedCharacters","getParsedPropValues","propertiesToDisplay","props","enableLink","shouldStrip","map","property","filteredProperty","subtype","split","value","Array","isArray","prop","index","propValue","sanitizedValue","isLastValue","length","parsedValue","concat","linkKey","join","url","createElement","key","href","filter","Boolean"],"sources":["../../src/helpers/get-parsed-prop-values.js"],"sourcesContent":["import React from 'react';\nimport { Link } from '@blaze-cms/nextjs-components';\nimport isObject from './is-object';\nimport removeUnwantedCharacters from './remove-unwanted-characters';\n\nconst getParsedPropValues = ({ propertiesToDisplay, props, enableLink, shouldStrip }) =>\n propertiesToDisplay\n .map(property => {\n const [filteredProperty, subtype] = property.split('.');\n const value = props[filteredProperty];\n\n if (Array.isArray(value)) {\n return value.map((prop, index) => {\n const propValue = subtype ? prop[subtype] : prop;\n const sanitizedValue = shouldStrip ? removeUnwantedCharacters(propValue) : propValue;\n\n const isLastValue = index === value.length - 1;\n const parsedValue = isLastValue ? sanitizedValue : sanitizedValue.concat(', ');\n const linkKey = [filteredProperty, prop[subtype], index].join('-');\n\n return enableLink && prop.url ? (\n <Link key={linkKey} href={prop.url}>\n {parsedValue}\n </Link>\n ) : (\n parsedValue\n );\n });\n }\n\n if (isObject(value)) {\n return shouldStrip ? removeUnwantedCharacters(value[subtype]) : value[subtype];\n }\n\n return shouldStrip ? removeUnwantedCharacters(value) : value;\n })\n .filter(Boolean);\n\nexport default getParsedPropValues;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,8BAA8B;AACnD,OAAOC,QAAQ,MAAM,aAAa;AAClC,OAAOC,wBAAwB,MAAM,8BAA8B;AAEnE,MAAMC,mBAAmB,GAAGA,CAAC;EAAEC,mBAAmB;EAAEC,KAAK;EAAEC,UAAU;EAAEC;AAAY,CAAC,KAClFH,mBAAmB,CAChBI,GAAG,CAACC,QAAQ,IAAI;EACf,MAAM,CAACC,gBAAgB,EAAEC,OAAO,CAAC,GAAGF,QAAQ,CAACG,KAAK,CAAC,GAAG,CAAC;EACvD,MAAMC,KAAK,GAAGR,KAAK,CAACK,gBAAgB,CAAC;EAErC,IAAII,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,EAAE;IACxB,OAAOA,KAAK,CAACL,GAAG,CAAC,CAACQ,IAAI,EAAEC,KAAK,KAAK;MAChC,MAAMC,SAAS,GAAGP,OAAO,GAAGK,IAAI,CAACL,OAAO,CAAC,GAAGK,IAAI;MAChD,MAAMG,cAAc,GAAGZ,WAAW,GAAGL,wBAAwB,CAACgB,SAAS,CAAC,GAAGA,SAAS;MAEpF,MAAME,WAAW,GAAGH,KAAK,KAAKJ,KAAK,CAACQ,MAAM,GAAG,CAAC;MAC9C,MAAMC,WAAW,GAAGF,WAAW,GAAGD,cAAc,GAAGA,cAAc,CAACI,MAAM,CAAC,IAAI,CAAC;MAC9E,MAAMC,OAAO,GAAG,CAACd,gBAAgB,EAAEM,IAAI,CAACL,OAAO,CAAC,EAAEM,KAAK,CAAC,CAACQ,IAAI,CAAC,GAAG,CAAC;MAElE,OAAOnB,UAAU,IAAIU,IAAI,CAACU,GAAG,gBAC3B3B,KAAA,CAAA4B,aAAA,CAAC3B,IAAI;QAAC4B,GAAG,EAAEJ,OAAQ;QAACK,IAAI,EAAEb,IAAI,CAACU;MAAI,GAChCJ,WAAW,CACP,GAEPA,WACD;IACH,CAAC,CAAC;EACJ;EAEA,IAAIrB,QAAQ,CAACY,KAAK,CAAC,EAAE;IACnB,OAAON,WAAW,GAAGL,wBAAwB,CAACW,KAAK,CAACF,OAAO,CAAC,CAAC,GAAGE,KAAK,CAACF,OAAO,CAAC;EAChF;EAEA,OAAOJ,WAAW,GAAGL,wBAAwB,CAACW,KAAK,CAAC,GAAGA,KAAK;AAC9D,CAAC,CAAC,CACDiB,MAAM,CAACC,OAAO,CAAC;AAEpB,eAAe5B,mBAAmB"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-parsed-summary-value.js","names":["TRUE","FALSE","parsedSummaryValues","getParsedSummaryValue","value"],"sources":["../../src/helpers/get-parsed-summary-value.js"],"sourcesContent":["const TRUE = 'true';\nconst FALSE = 'false';\n\nconst parsedSummaryValues = {\n TRUE: 'Yes',\n FALSE: 'No'\n};\n\nfunction getParsedSummaryValue(value) {\n if (value === TRUE) return parsedSummaryValues.TRUE;\n if (value === FALSE) return parsedSummaryValues.FALSE;\n\n return value;\n}\n\nexport default getParsedSummaryValue;\n"],"mappings":"AAAA,MAAMA,IAAI,GAAG,MAAM;AACnB,MAAMC,KAAK,GAAG,OAAO;AAErB,MAAMC,mBAAmB,GAAG;EAC1BF,IAAI,EAAE,KAAK;EACXC,KAAK,EAAE;AACT,CAAC;AAED,SAASE,qBAAqB,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;AAEA,eAAeD,qBAAqB"}
1
+ {"version":3,"file":"get-parsed-summary-value.js","names":["TRUE","FALSE","parsedSummaryValues","getParsedSummaryValue","value"],"sources":["../../src/helpers/get-parsed-summary-value.js"],"sourcesContent":["const TRUE = 'true';\nconst FALSE = 'false';\n\nconst parsedSummaryValues = {\n TRUE: 'Yes',\n FALSE: 'No'\n};\n\nfunction getParsedSummaryValue(value) {\n if (value === TRUE) return parsedSummaryValues.TRUE;\n if (value === FALSE) return parsedSummaryValues.FALSE;\n\n return value;\n}\n\nexport default getParsedSummaryValue;\n"],"mappings":"AAAA,MAAMA,IAAI,GAAG,MAAM;AACnB,MAAMC,KAAK,GAAG,OAAO;AAErB,MAAMC,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;AAEA,eAAeD,qBAAqB"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-prop-values.js","names":["isObject","getPropValues","propertiesToDisplay","props","map","property","filteredProperty","subtype","split","value","Array","isArray","prop","filter","Boolean"],"sources":["../../src/helpers/get-prop-values.js"],"sourcesContent":["import isObject from './is-object';\n\nconst getPropValues = (propertiesToDisplay, props) =>\n propertiesToDisplay\n .map(property => {\n const [filteredProperty, subtype] = property.split('.');\n const value = props[filteredProperty];\n\n if (Array.isArray(value)) {\n return value.map(prop => (subtype ? prop[subtype] : prop));\n }\n\n if (isObject(value)) {\n return value[subtype];\n }\n\n return value;\n })\n .filter(Boolean);\n\nexport default getPropValues;\n"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,aAAa;AAElC,MAAMC,aAAa,GAAG,CAACC,mBAAmB,EAAEC,KAAK,KAC/CD,mBAAmB,CAChBE,GAAG,CAACC,QAAQ,IAAI;EACf,MAAM,CAACC,gBAAgB,EAAEC,OAAO,CAAC,GAAGF,QAAQ,CAACG,KAAK,CAAC,GAAG,CAAC;EACvD,MAAMC,KAAK,GAAGN,KAAK,CAACG,gBAAgB,CAAC;EAErC,IAAII,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,EAAE;IACxB,OAAOA,KAAK,CAACL,GAAG,CAACQ,IAAI,IAAKL,OAAO,GAAGK,IAAI,CAACL,OAAO,CAAC,GAAGK,IAAK,CAAC;EAC5D;EAEA,IAAIZ,QAAQ,CAACS,KAAK,CAAC,EAAE;IACnB,OAAOA,KAAK,CAACF,OAAO,CAAC;EACvB;EAEA,OAAOE,KAAK;AACd,CAAC,CAAC,CACDI,MAAM,CAACC,OAAO,CAAC;AAEpB,eAAeb,aAAa"}
1
+ {"version":3,"file":"get-prop-values.js","names":["isObject","getPropValues","propertiesToDisplay","props","map","property","filteredProperty","subtype","split","value","Array","isArray","prop","filter","Boolean"],"sources":["../../src/helpers/get-prop-values.js"],"sourcesContent":["import isObject from './is-object';\n\nconst getPropValues = (propertiesToDisplay, props) =>\n propertiesToDisplay\n .map(property => {\n const [filteredProperty, subtype] = property.split('.');\n const value = props[filteredProperty];\n\n if (Array.isArray(value)) {\n return value.map(prop => (subtype ? prop[subtype] : prop));\n }\n\n if (isObject(value)) {\n return value[subtype];\n }\n\n return value;\n })\n .filter(Boolean);\n\nexport default getPropValues;\n"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,aAAa;AAElC,MAAMC,aAAa,GAAGA,CAACC,mBAAmB,EAAEC,KAAK,KAC/CD,mBAAmB,CAChBE,GAAG,CAACC,QAAQ,IAAI;EACf,MAAM,CAACC,gBAAgB,EAAEC,OAAO,CAAC,GAAGF,QAAQ,CAACG,KAAK,CAAC,GAAG,CAAC;EACvD,MAAMC,KAAK,GAAGN,KAAK,CAACG,gBAAgB,CAAC;EAErC,IAAII,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,EAAE;IACxB,OAAOA,KAAK,CAACL,GAAG,CAACQ,IAAI,IAAKL,OAAO,GAAGK,IAAI,CAACL,OAAO,CAAC,GAAGK,IAAK,CAAC;EAC5D;EAEA,IAAIZ,QAAQ,CAACS,KAAK,CAAC,EAAE;IACnB,OAAOA,KAAK,CAACF,OAAO,CAAC;EACvB;EAEA,OAAOE,KAAK;AACd,CAAC,CAAC,CACDI,MAAM,CAACC,OAAO,CAAC;AAEpB,eAAeb,aAAa"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-query-filters.js","names":["getSearchFilterType","buildSearchValuesCheckboxSelect","RANGE","CHECKBOX","SELECT","getQueryFilters","searchFilter","query","settings","filters","valuesAnd","valuesOr","rangeFilters","checkboxFilters","selectFilters","values"],"sources":["../../src/helpers/get-query-filters.js"],"sourcesContent":["import getSearchFilterType from './get-search-filter-type';\nimport buildSearchValuesCheckboxSelect from './build-search-values-checkbox-select';\nimport { RANGE, CHECKBOX, SELECT } from '../constants';\n\nconst getQueryFilters = (searchFilter, query) => {\n if (!searchFilter.settings || !searchFilter.settings.filters) {\n return { valuesAnd: [], valuesOr: [] };\n }\n\n const rangeFilters = getSearchFilterType(searchFilter, RANGE);\n const checkboxFilters = getSearchFilterType(searchFilter, CHECKBOX);\n const selectFilters = getSearchFilterType(searchFilter, SELECT);\n\n const { values: valuesAnd, valuesOr } = buildSearchValuesCheckboxSelect(\n query,\n rangeFilters,\n checkboxFilters,\n selectFilters\n );\n return { valuesAnd, valuesOr };\n};\n\nexport default getQueryFilters;\n"],"mappings":"AAAA,OAAOA,mBAAmB,MAAM,0BAA0B;AAC1D,OAAOC,+BAA+B,MAAM,uCAAuC;AACnF,SAASC,KAAK,EAAEC,QAAQ,EAAEC,MAAM,QAAQ,cAAc;AAEtD,MAAMC,eAAe,GAAG,CAACC,YAAY,EAAEC,KAAK,KAAK;EAC/C,IAAI,CAACD,YAAY,CAACE,QAAQ,IAAI,CAACF,YAAY,CAACE,QAAQ,CAACC,OAAO,EAAE;IAC5D,OAAO;MAAEC,SAAS,EAAE,EAAE;MAAEC,QAAQ,EAAE;IAAG,CAAC;EACxC;EAEA,MAAMC,YAAY,GAAGZ,mBAAmB,CAACM,YAAY,EAAEJ,KAAK,CAAC;EAC7D,MAAMW,eAAe,GAAGb,mBAAmB,CAACM,YAAY,EAAEH,QAAQ,CAAC;EACnE,MAAMW,aAAa,GAAGd,mBAAmB,CAACM,YAAY,EAAEF,MAAM,CAAC;EAE/D,MAAM;IAAEW,MAAM,EAAEL,SAAS;IAAEC;EAAS,CAAC,GAAGV,+BAA+B,CACrEM,KAAK,EACLK,YAAY,EACZC,eAAe,EACfC,aAAa,CACd;EACD,OAAO;IAAEJ,SAAS;IAAEC;EAAS,CAAC;AAChC,CAAC;AAED,eAAeN,eAAe"}
1
+ {"version":3,"file":"get-query-filters.js","names":["getSearchFilterType","buildSearchValuesCheckboxSelect","RANGE","CHECKBOX","SELECT","getQueryFilters","searchFilter","query","settings","filters","valuesAnd","valuesOr","rangeFilters","checkboxFilters","selectFilters","values"],"sources":["../../src/helpers/get-query-filters.js"],"sourcesContent":["import getSearchFilterType from './get-search-filter-type';\nimport buildSearchValuesCheckboxSelect from './build-search-values-checkbox-select';\nimport { RANGE, CHECKBOX, SELECT } from '../constants';\n\nconst getQueryFilters = (searchFilter, query) => {\n if (!searchFilter.settings || !searchFilter.settings.filters) {\n return { valuesAnd: [], valuesOr: [] };\n }\n\n const rangeFilters = getSearchFilterType(searchFilter, RANGE);\n const checkboxFilters = getSearchFilterType(searchFilter, CHECKBOX);\n const selectFilters = getSearchFilterType(searchFilter, SELECT);\n\n const { values: valuesAnd, valuesOr } = buildSearchValuesCheckboxSelect(\n query,\n rangeFilters,\n checkboxFilters,\n selectFilters\n );\n return { valuesAnd, valuesOr };\n};\n\nexport default getQueryFilters;\n"],"mappings":"AAAA,OAAOA,mBAAmB,MAAM,0BAA0B;AAC1D,OAAOC,+BAA+B,MAAM,uCAAuC;AACnF,SAASC,KAAK,EAAEC,QAAQ,EAAEC,MAAM,QAAQ,cAAc;AAEtD,MAAMC,eAAe,GAAGA,CAACC,YAAY,EAAEC,KAAK,KAAK;EAC/C,IAAI,CAACD,YAAY,CAACE,QAAQ,IAAI,CAACF,YAAY,CAACE,QAAQ,CAACC,OAAO,EAAE;IAC5D,OAAO;MAAEC,SAAS,EAAE,EAAE;MAAEC,QAAQ,EAAE;IAAG,CAAC;EACxC;EAEA,MAAMC,YAAY,GAAGZ,mBAAmB,CAACM,YAAY,EAAEJ,KAAK,CAAC;EAC7D,MAAMW,eAAe,GAAGb,mBAAmB,CAACM,YAAY,EAAEH,QAAQ,CAAC;EACnE,MAAMW,aAAa,GAAGd,mBAAmB,CAACM,YAAY,EAAEF,MAAM,CAAC;EAE/D,MAAM;IAAEW,MAAM,EAAEL,SAAS;IAAEC;EAAS,CAAC,GAAGV,+BAA+B,CACrEM,KAAK,EACLK,YAAY,EACZC,eAAe,EACfC,aAAa,CACd;EACD,OAAO;IAAEJ,SAAS;IAAEC;EAAS,CAAC;AAChC,CAAC;AAED,eAAeN,eAAe"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-query-props.js","names":["isFilterEntitysId","getFilterProps","ID","getQueryProps","inheritedFilters","currentSchema","filterEntitySchema","length","identifier","currentEntityId","reduce","acc","filter","filterName","relationName","relationProp","relationEntityName","isEntityItself","relationForeignKeys","shouldIgnoreFilter","join","queryProp","queryPropFinalValue"],"sources":["../../src/helpers/get-query-props.js"],"sourcesContent":["import isFilterEntitysId from './is-filter-entitys-id';\nimport getFilterProps from './get-filter-props';\nimport { ID } from '../constants';\n\nconst getQueryProps = (inheritedFilters, currentSchema, filterEntitySchema) => {\n if (!currentSchema || !inheritedFilters.length) return ID;\n\n const { identifier: currentEntityId } = currentSchema;\n\n return inheritedFilters.reduce((acc, filter) => {\n const {\n filterName,\n relationName,\n relationProp,\n relationEntityName,\n isEntityItself,\n relationForeignKeys,\n shouldIgnoreFilter\n } = getFilterProps(filter, currentSchema, filterEntitySchema);\n\n if (shouldIgnoreFilter) return acc;\n if (relationForeignKeys && relationForeignKeys.length) {\n return `${acc} ${relationForeignKeys.join(' ')}`;\n }\n\n const queryProp = relationEntityName ? `${relationName} { ${relationProp} }` : filterName;\n const queryPropFinalValue =\n isEntityItself && isFilterEntitysId(filterName, currentEntityId) ? ID : queryProp;\n\n return `${acc} ${queryPropFinalValue} `;\n }, ID);\n};\n\nexport default getQueryProps;\n"],"mappings":"AAAA,OAAOA,iBAAiB,MAAM,wBAAwB;AACtD,OAAOC,cAAc,MAAM,oBAAoB;AAC/C,SAASC,EAAE,QAAQ,cAAc;AAEjC,MAAMC,aAAa,GAAG,CAACC,gBAAgB,EAAEC,aAAa,EAAEC,kBAAkB,KAAK;EAC7E,IAAI,CAACD,aAAa,IAAI,CAACD,gBAAgB,CAACG,MAAM,EAAE,OAAOL,EAAE;EAEzD,MAAM;IAAEM,UAAU,EAAEC;EAAgB,CAAC,GAAGJ,aAAa;EAErD,OAAOD,gBAAgB,CAACM,MAAM,CAAC,CAACC,GAAG,EAAEC,MAAM,KAAK;IAC9C,MAAM;MACJC,UAAU;MACVC,YAAY;MACZC,YAAY;MACZC,kBAAkB;MAClBC,cAAc;MACdC,mBAAmB;MACnBC;IACF,CAAC,GAAGlB,cAAc,CAACW,MAAM,EAAEP,aAAa,EAAEC,kBAAkB,CAAC;IAE7D,IAAIa,kBAAkB,EAAE,OAAOR,GAAG;IAClC,IAAIO,mBAAmB,IAAIA,mBAAmB,CAACX,MAAM,EAAE;MACrD,OAAQ,GAAEI,GAAI,IAAGO,mBAAmB,CAACE,IAAI,CAAC,GAAG,CAAE,EAAC;IAClD;IAEA,MAAMC,SAAS,GAAGL,kBAAkB,GAAI,GAAEF,YAAa,MAAKC,YAAa,IAAG,GAAGF,UAAU;IACzF,MAAMS,mBAAmB,GACvBL,cAAc,IAAIjB,iBAAiB,CAACa,UAAU,EAAEJ,eAAe,CAAC,GAAGP,EAAE,GAAGmB,SAAS;IAEnF,OAAQ,GAAEV,GAAI,IAAGW,mBAAoB,GAAE;EACzC,CAAC,EAAEpB,EAAE,CAAC;AACR,CAAC;AAED,eAAeC,aAAa"}
1
+ {"version":3,"file":"get-query-props.js","names":["isFilterEntitysId","getFilterProps","ID","getQueryProps","inheritedFilters","currentSchema","filterEntitySchema","length","identifier","currentEntityId","reduce","acc","filter","filterName","relationName","relationProp","relationEntityName","isEntityItself","relationForeignKeys","shouldIgnoreFilter","join","queryProp","queryPropFinalValue"],"sources":["../../src/helpers/get-query-props.js"],"sourcesContent":["import isFilterEntitysId from './is-filter-entitys-id';\nimport getFilterProps from './get-filter-props';\nimport { ID } from '../constants';\n\nconst getQueryProps = (inheritedFilters, currentSchema, filterEntitySchema) => {\n if (!currentSchema || !inheritedFilters.length) return ID;\n\n const { identifier: currentEntityId } = currentSchema;\n\n return inheritedFilters.reduce((acc, filter) => {\n const {\n filterName,\n relationName,\n relationProp,\n relationEntityName,\n isEntityItself,\n relationForeignKeys,\n shouldIgnoreFilter\n } = getFilterProps(filter, currentSchema, filterEntitySchema);\n\n if (shouldIgnoreFilter) return acc;\n if (relationForeignKeys && relationForeignKeys.length) {\n return `${acc} ${relationForeignKeys.join(' ')}`;\n }\n\n const queryProp = relationEntityName ? `${relationName} { ${relationProp} }` : filterName;\n const queryPropFinalValue =\n isEntityItself && isFilterEntitysId(filterName, currentEntityId) ? ID : queryProp;\n\n return `${acc} ${queryPropFinalValue} `;\n }, ID);\n};\n\nexport default getQueryProps;\n"],"mappings":"AAAA,OAAOA,iBAAiB,MAAM,wBAAwB;AACtD,OAAOC,cAAc,MAAM,oBAAoB;AAC/C,SAASC,EAAE,QAAQ,cAAc;AAEjC,MAAMC,aAAa,GAAGA,CAACC,gBAAgB,EAAEC,aAAa,EAAEC,kBAAkB,KAAK;EAC7E,IAAI,CAACD,aAAa,IAAI,CAACD,gBAAgB,CAACG,MAAM,EAAE,OAAOL,EAAE;EAEzD,MAAM;IAAEM,UAAU,EAAEC;EAAgB,CAAC,GAAGJ,aAAa;EAErD,OAAOD,gBAAgB,CAACM,MAAM,CAAC,CAACC,GAAG,EAAEC,MAAM,KAAK;IAC9C,MAAM;MACJC,UAAU;MACVC,YAAY;MACZC,YAAY;MACZC,kBAAkB;MAClBC,cAAc;MACdC,mBAAmB;MACnBC;IACF,CAAC,GAAGlB,cAAc,CAACW,MAAM,EAAEP,aAAa,EAAEC,kBAAkB,CAAC;IAE7D,IAAIa,kBAAkB,EAAE,OAAOR,GAAG;IAClC,IAAIO,mBAAmB,IAAIA,mBAAmB,CAACX,MAAM,EAAE;MACrD,OAAQ,GAAEI,GAAI,IAAGO,mBAAmB,CAACE,IAAI,CAAC,GAAG,CAAE,EAAC;IAClD;IAEA,MAAMC,SAAS,GAAGL,kBAAkB,GAAI,GAAEF,YAAa,MAAKC,YAAa,IAAG,GAAGF,UAAU;IACzF,MAAMS,mBAAmB,GACvBL,cAAc,IAAIjB,iBAAiB,CAACa,UAAU,EAAEJ,eAAe,CAAC,GAAGP,EAAE,GAAGmB,SAAS;IAEnF,OAAQ,GAAEV,GAAI,IAAGW,mBAAoB,GAAE;EACzC,CAAC,EAAEpB,EAAE,CAAC;AACR,CAAC;AAED,eAAeC,aAAa"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-required-schemas.js","names":["getRequiredSchemas","searchProperties","id","properties","dynamicProperties","relations","map","property","fieldParts","split","localFieldPart","length","matchingRelation","find","localField","entityIdentifier","filter","Boolean"],"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,MAAMA,kBAAkB,GAAG,CACzBC,gBAAgB,EAChB;EAAEC,EAAE;EAAEC,UAAU,GAAG,CAAC,CAAC;EAAEC,iBAAiB,GAAG,CAAC,CAAC;EAAEC,SAAS,GAAG;AAAG,CAAC,GAAG,CAAC,CAAC,KAEpE,CACEH,EAAE,EACF,GAAGD,gBAAgB,CAACK,GAAG,CAACC,QAAQ,IAAI;EAClC,IAAI,CAACA,QAAQ,EAAE,OAAO,IAAI;EAE1B,MAAMC,UAAU,GAAGD,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;EACtC,MAAM,CAACC,cAAc,CAAC,GAAGH,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;EAE5C,IACED,UAAU,CAACG,MAAM,KAAK,CAAC,IACvBR,UAAU,CAACO,cAAc,CAAC,IAC1BN,iBAAiB,CAACM,cAAc,CAAC,EACjC;IACA,OAAO,IAAI;EACb;EAEA,MAAME,gBAAgB,GAAGP,SAAS,CAACQ,IAAI,CAAC,CAAC;IAAEC;EAAW,CAAC,KAAKA,UAAU,KAAKJ,cAAc,CAAC;EAC1F,IAAI,CAACE,gBAAgB,EAAE,OAAO,IAAI;EAElC,OAAOA,gBAAgB,CAACG,gBAAgB;AAC1C,CAAC,CAAC,CACH,CAACC,MAAM,CAACC,OAAO,CAAC;AAEnB,eAAejB,kBAAkB"}
1
+ {"version":3,"file":"get-required-schemas.js","names":["getRequiredSchemas","searchProperties","id","properties","dynamicProperties","relations","map","property","fieldParts","split","localFieldPart","length","matchingRelation","find","localField","entityIdentifier","filter","Boolean"],"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,MAAMA,kBAAkB,GAAGA,CACzBC,gBAAgB,EAChB;EAAEC,EAAE;EAAEC,UAAU,GAAG,CAAC,CAAC;EAAEC,iBAAiB,GAAG,CAAC,CAAC;EAAEC,SAAS,GAAG;AAAG,CAAC,GAAG,CAAC,CAAC,KAEpE,CACEH,EAAE,EACF,GAAGD,gBAAgB,CAACK,GAAG,CAACC,QAAQ,IAAI;EAClC,IAAI,CAACA,QAAQ,EAAE,OAAO,IAAI;EAE1B,MAAMC,UAAU,GAAGD,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;EACtC,MAAM,CAACC,cAAc,CAAC,GAAGH,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;EAE5C,IACED,UAAU,CAACG,MAAM,KAAK,CAAC,IACvBR,UAAU,CAACO,cAAc,CAAC,IAC1BN,iBAAiB,CAACM,cAAc,CAAC,EACjC;IACA,OAAO,IAAI;EACb;EAEA,MAAME,gBAAgB,GAAGP,SAAS,CAACQ,IAAI,CAAC,CAAC;IAAEC;EAAW,CAAC,KAAKA,UAAU,KAAKJ,cAAc,CAAC;EAC1F,IAAI,CAACE,gBAAgB,EAAE,OAAO,IAAI;EAElC,OAAOA,gBAAgB,CAACG,gBAAgB;AAC1C,CAAC,CAAC,CACH,CAACC,MAAM,CAACC,OAAO,CAAC;AAEnB,eAAejB,kBAAkB"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-search-filter-type.js","names":["getSearchFilterType","settings","filters","type","length","filter","filterType"],"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,MAAMA,mBAAmB,GAAG,CAAC;EAAEC,QAAQ,EAAE;IAAEC,OAAO,GAAG;EAAG,CAAC,GAAG,CAAC;AAAE,CAAC,EAAEC,IAAI,KAAK;EACzE,IAAI,CAACD,OAAO,CAACE,MAAM,EAAE,OAAO,EAAE;EAE9B,OAAOF,OAAO,CAACG,MAAM,CAAC,CAAC;IAAEF,IAAI,EAAEG;EAAW,CAAC,KAAKA,UAAU,KAAKH,IAAI,CAAC;AACtE,CAAC;AAED,eAAeH,mBAAmB"}
1
+ {"version":3,"file":"get-search-filter-type.js","names":["getSearchFilterType","settings","filters","type","length","filter","filterType"],"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,MAAMA,mBAAmB,GAAGA,CAAC;EAAEC,QAAQ,EAAE;IAAEC,OAAO,GAAG;EAAG,CAAC,GAAG,CAAC;AAAE,CAAC,EAAEC,IAAI,KAAK;EACzE,IAAI,CAACD,OAAO,CAACE,MAAM,EAAE,OAAO,EAAE;EAE9B,OAAOF,OAAO,CAACG,MAAM,CAAC,CAAC;IAAEF,IAAI,EAAEG;EAAW,CAAC,KAAKA,UAAU,KAAKH,IAAI,CAAC;AACtE,CAAC;AAED,eAAeH,mBAAmB"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-sort-by-field-name.js","names":["KEYWORD","buildFieldName","relations","fieldValue","stringProps","field","Array","isArray","updatedField","includes","relationName","relationProp","split","relation","filter","localField","entityIdentifier","getSortbyFieldName","sortby","isSortbyArray"],"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,SAASA,OAAO,QAAQ,cAAc;AAEtC,MAAMC,cAAc,GAAG,CAACC,SAAS,EAAEC,UAAU,EAAEC,WAAW,KAAK;EAC7D,MAAMC,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,MAAM,CAACC,YAAY,EAAEC,YAAY,CAAC,GAAGN,KAAK,CAACO,KAAK,CAAC,GAAG,CAAC;IAErD,MAAM,CAACC,QAAQ,CAAC,GAAGX,SAAS,CAACY,MAAM,CAAC,CAAC;MAAEC;IAAW,CAAC,KAAKA,UAAU,KAAKL,YAAY,CAAC;IACpF,MAAM;MAAEM,gBAAgB,GAAG;IAAG,CAAC,GAAGH,QAAQ,IAAI,CAAC,CAAC;IAChD,IAAIG,gBAAgB,IAAIA,gBAAgB,KAAKN,YAAY,EACvDF,YAAY,GAAI,GAAEQ,gBAAiB,IAAGL,YAAa,EAAC;EACxD;EACA,OAAOP,WAAW,CAACK,QAAQ,CAACD,YAAY,CAAC,GAAI,GAAEH,KAAM,IAAGL,OAAQ,EAAC,GAAGK,KAAK;AAC3E,CAAC;AAED,MAAMY,kBAAkB,GAAG,CAACf,SAAS,EAAEgB,MAAM,EAAEd,WAAW,EAAEe,aAAa,KACvEA,aAAa,GACTlB,cAAc,CAACC,SAAS,EAAEgB,MAAM,CAAC,CAAC,CAAC,EAAEd,WAAW,CAAC,GACjDH,cAAc,CAACC,SAAS,EAAEgB,MAAM,EAAEd,WAAW,CAAC;AAEpD,eAAea,kBAAkB"}
1
+ {"version":3,"file":"get-sort-by-field-name.js","names":["KEYWORD","buildFieldName","relations","fieldValue","stringProps","field","Array","isArray","updatedField","includes","relationName","relationProp","split","relation","filter","localField","entityIdentifier","getSortbyFieldName","sortby","isSortbyArray"],"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,SAASA,OAAO,QAAQ,cAAc;AAEtC,MAAMC,cAAc,GAAGA,CAACC,SAAS,EAAEC,UAAU,EAAEC,WAAW,KAAK;EAC7D,MAAMC,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,MAAM,CAACC,YAAY,EAAEC,YAAY,CAAC,GAAGN,KAAK,CAACO,KAAK,CAAC,GAAG,CAAC;IAErD,MAAM,CAACC,QAAQ,CAAC,GAAGX,SAAS,CAACY,MAAM,CAAC,CAAC;MAAEC;IAAW,CAAC,KAAKA,UAAU,KAAKL,YAAY,CAAC;IACpF,MAAM;MAAEM,gBAAgB,GAAG;IAAG,CAAC,GAAGH,QAAQ,IAAI,CAAC,CAAC;IAChD,IAAIG,gBAAgB,IAAIA,gBAAgB,KAAKN,YAAY,EACvDF,YAAY,GAAI,GAAEQ,gBAAiB,IAAGL,YAAa,EAAC;EACxD;EACA,OAAOP,WAAW,CAACK,QAAQ,CAACD,YAAY,CAAC,GAAI,GAAEH,KAAM,IAAGL,OAAQ,EAAC,GAAGK,KAAK;AAC3E,CAAC;AAED,MAAMY,kBAAkB,GAAGA,CAACf,SAAS,EAAEgB,MAAM,EAAEd,WAAW,EAAEe,aAAa,KACvEA,aAAa,GACTlB,cAAc,CAACC,SAAS,EAAEgB,MAAM,CAAC,CAAC,CAAC,EAAEd,WAAW,CAAC,GACjDH,cAAc,CAACC,SAAS,EAAEgB,MAAM,EAAEd,WAAW,CAAC;AAEpD,eAAea,kBAAkB"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-updated-filter-by.js","names":["uniq","buildInheritedFilters","getUpdatedFilterBy","inheritedFilters","entityData","currentSchema","filterEntitySchema","itemId","props","length","relationFilters","filterBy"],"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,OAAOA,IAAI,MAAM,aAAa;AAC9B,OAAOC,qBAAqB,MAAM,2BAA2B;AAE7D,MAAMC,kBAAkB,GAAG,CACzBC,gBAAgB,EAChBC,UAAU,EACVC,aAAa,EACbC,kBAAkB,EAClBC,MAAM,EACNC,KAAK,KACF;EACH,IAAIL,gBAAgB,IAAIA,gBAAgB,CAACM,MAAM,EAAE;IAC/C,MAAMC,eAAe,GAAGT,qBAAqB,CAC3CG,UAAU,EACVD,gBAAgB,EAChBE,aAAa,EACbC,kBAAkB,EAClBC,MAAM,CACP;IAED,OAAOG,eAAe,CAACD,MAAM,GAAGT,IAAI,CAAC,CAAC,GAAGQ,KAAK,CAACG,QAAQ,EAAE,GAAGD,eAAe,CAAC,CAAC,GAAG,IAAI;EACtF;EACA,OAAO,EAAE;AACX,CAAC;AAED,eAAeR,kBAAkB"}
1
+ {"version":3,"file":"get-updated-filter-by.js","names":["uniq","buildInheritedFilters","getUpdatedFilterBy","inheritedFilters","entityData","currentSchema","filterEntitySchema","itemId","props","length","relationFilters","filterBy"],"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,OAAOA,IAAI,MAAM,aAAa;AAC9B,OAAOC,qBAAqB,MAAM,2BAA2B;AAE7D,MAAMC,kBAAkB,GAAGA,CACzBC,gBAAgB,EAChBC,UAAU,EACVC,aAAa,EACbC,kBAAkB,EAClBC,MAAM,EACNC,KAAK,KACF;EACH,IAAIL,gBAAgB,IAAIA,gBAAgB,CAACM,MAAM,EAAE;IAC/C,MAAMC,eAAe,GAAGT,qBAAqB,CAC3CG,UAAU,EACVD,gBAAgB,EAChBE,aAAa,EACbC,kBAAkB,EAClBC,MAAM,CACP;IAED,OAAOG,eAAe,CAACD,MAAM,GAAGT,IAAI,CAAC,CAAC,GAAGQ,KAAK,CAACG,QAAQ,EAAE,GAAGD,eAAe,CAAC,CAAC,GAAG,IAAI;EACtF;EACA,OAAO,EAAE;AACX,CAAC;AAED,eAAeR,kBAAkB"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-wrapped-value-with-link.js","names":["React","BlazeLink","getWrappedValueWithLink","value","link","keyPrefix","Array","isArray","arrayResults","map","arrValue","index","keyField","url","keyValue","isLastItem","length","keyFieldValue","concat","join"],"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 const isLastItem = index === value.length - 1;\n const keyFieldValue = isLastItem ? keyValue : keyValue.concat(',');\n\n return url ? (\n <BlazeLink key={[keyPrefix, index].join('-')} href={url}>{`${keyFieldValue} `}</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,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,yBAAyB;AAE/C,MAAMC,uBAAuB,GAAG,CAACC,KAAK,EAAEC,IAAI,EAAEC,SAAS,GAAG,EAAE,KAAK;EAC/D,IAAIC,KAAK,CAACC,OAAO,CAACJ,KAAK,CAAC,EAAE;IACxB,MAAMK,YAAY,GAAGL,KAAK,CAACM,GAAG,CAAC,CAACC,QAAQ,EAAEC,KAAK,KAAK;MAClD,MAAM;QAAEC,QAAQ;QAAEC;MAAI,CAAC,GAAGH,QAAQ;MAClC,MAAMI,QAAQ,GAAGJ,QAAQ,CAACE,QAAQ,CAAC;MACnC,MAAMG,UAAU,GAAGJ,KAAK,KAAKR,KAAK,CAACa,MAAM,GAAG,CAAC;MAC7C,MAAMC,aAAa,GAAGF,UAAU,GAAGD,QAAQ,GAAGA,QAAQ,CAACI,MAAM,CAAC,GAAG,CAAC;MAElE,OAAOL,GAAG,gBACR,oBAAC,SAAS;QAAC,GAAG,EAAE,CAACR,SAAS,EAAEM,KAAK,CAAC,CAACQ,IAAI,CAAC,GAAG,CAAE;QAAC,IAAI,EAAEN;MAAI,GAAG,GAAEI,aAAc,GAAE,CAAa,GAEzF,GAAEA,aAAc,GAClB;IACH,CAAC,CAAC;IAEF,OAAOT,YAAY,CAACQ,MAAM,GAAGR,YAAY,GAAG,IAAI;EAClD;EAEA,OAAOJ,IAAI,gBAAG,oBAAC,SAAS;IAAC,IAAI,EAAEA;EAAK,GAAED,KAAK,CAAa,GAAGA,KAAK;AAClE,CAAC;AAED,eAAeD,uBAAuB"}
1
+ {"version":3,"file":"get-wrapped-value-with-link.js","names":["React","BlazeLink","getWrappedValueWithLink","value","link","keyPrefix","Array","isArray","arrayResults","map","arrValue","index","keyField","url","keyValue","isLastItem","length","keyFieldValue","concat","createElement","key","join","href"],"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 const isLastItem = index === value.length - 1;\n const keyFieldValue = isLastItem ? keyValue : keyValue.concat(',');\n\n return url ? (\n <BlazeLink key={[keyPrefix, index].join('-')} href={url}>{`${keyFieldValue} `}</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,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,yBAAyB;AAE/C,MAAMC,uBAAuB,GAAGA,CAACC,KAAK,EAAEC,IAAI,EAAEC,SAAS,GAAG,EAAE,KAAK;EAC/D,IAAIC,KAAK,CAACC,OAAO,CAACJ,KAAK,CAAC,EAAE;IACxB,MAAMK,YAAY,GAAGL,KAAK,CAACM,GAAG,CAAC,CAACC,QAAQ,EAAEC,KAAK,KAAK;MAClD,MAAM;QAAEC,QAAQ;QAAEC;MAAI,CAAC,GAAGH,QAAQ;MAClC,MAAMI,QAAQ,GAAGJ,QAAQ,CAACE,QAAQ,CAAC;MACnC,MAAMG,UAAU,GAAGJ,KAAK,KAAKR,KAAK,CAACa,MAAM,GAAG,CAAC;MAC7C,MAAMC,aAAa,GAAGF,UAAU,GAAGD,QAAQ,GAAGA,QAAQ,CAACI,MAAM,CAAC,GAAG,CAAC;MAElE,OAAOL,GAAG,gBACRb,KAAA,CAAAmB,aAAA,CAAClB,SAAS;QAACmB,GAAG,EAAE,CAACf,SAAS,EAAEM,KAAK,CAAC,CAACU,IAAI,CAAC,GAAG,CAAE;QAACC,IAAI,EAAET;MAAI,GAAG,GAAEI,aAAc,GAAE,CAAa,GAEzF,GAAEA,aAAc,GAClB;IACH,CAAC,CAAC;IAEF,OAAOT,YAAY,CAACQ,MAAM,GAAGR,YAAY,GAAG,IAAI;EAClD;EAEA,OAAOJ,IAAI,gBAAGJ,KAAA,CAAAmB,aAAA,CAAClB,SAAS;IAACqB,IAAI,EAAElB;EAAK,GAAED,KAAK,CAAa,GAAGA,KAAK;AAClE,CAAC;AAED,eAAeD,uBAAuB"}
@@ -1 +1 @@
1
- {"version":3,"file":"group-entities.js","names":["groupEntities","entities","size","entitiesSet","controledSize","Number","length","chunks","push","splice"],"sources":["../../src/helpers/group-entities.js"],"sourcesContent":["export default function groupEntities(entities, size) {\n const entitiesSet = [...entities];\n const controledSize = size ? Number(size) : entitiesSet.length;\n const chunks = [];\n\n while (entitiesSet.length) {\n chunks.push(entitiesSet.splice(0, controledSize));\n }\n\n return chunks;\n}\n"],"mappings":"AAAA,eAAe,SAASA,aAAa,CAACC,QAAQ,EAAEC,IAAI,EAAE;EACpD,MAAMC,WAAW,GAAG,CAAC,GAAGF,QAAQ,CAAC;EACjC,MAAMG,aAAa,GAAGF,IAAI,GAAGG,MAAM,CAACH,IAAI,CAAC,GAAGC,WAAW,CAACG,MAAM;EAC9D,MAAMC,MAAM,GAAG,EAAE;EAEjB,OAAOJ,WAAW,CAACG,MAAM,EAAE;IACzBC,MAAM,CAACC,IAAI,CAACL,WAAW,CAACM,MAAM,CAAC,CAAC,EAAEL,aAAa,CAAC,CAAC;EACnD;EAEA,OAAOG,MAAM;AACf"}
1
+ {"version":3,"file":"group-entities.js","names":["groupEntities","entities","size","entitiesSet","controledSize","Number","length","chunks","push","splice"],"sources":["../../src/helpers/group-entities.js"],"sourcesContent":["export default function groupEntities(entities, size) {\n const entitiesSet = [...entities];\n const controledSize = size ? Number(size) : entitiesSet.length;\n const chunks = [];\n\n while (entitiesSet.length) {\n chunks.push(entitiesSet.splice(0, controledSize));\n }\n\n return chunks;\n}\n"],"mappings":"AAAA,eAAe,SAASA,aAAaA,CAACC,QAAQ,EAAEC,IAAI,EAAE;EACpD,MAAMC,WAAW,GAAG,CAAC,GAAGF,QAAQ,CAAC;EACjC,MAAMG,aAAa,GAAGF,IAAI,GAAGG,MAAM,CAACH,IAAI,CAAC,GAAGC,WAAW,CAACG,MAAM;EAC9D,MAAMC,MAAM,GAAG,EAAE;EAEjB,OAAOJ,WAAW,CAACG,MAAM,EAAE;IACzBC,MAAM,CAACC,IAAI,CAACL,WAAW,CAACM,MAAM,CAAC,CAAC,EAAEL,aAAa,CAAC,CAAC;EACnD;EAEA,OAAOG,MAAM;AACf"}
@@ -1 +1 @@
1
- {"version":3,"file":"inject-banner.js","names":["React","parseInterval","Banner","injectBanner","entities","banner","interval","transform","parsedInterval","entitySet","bannerElement","splice"],"sources":["../../src/helpers/inject-banner.js"],"sourcesContent":["import React from 'react';\nimport parseInterval from './parse-interval';\nimport Banner from '../components/Banner';\n\nexport default function injectBanner(entities, banner) {\n const { interval, transform = false } = banner;\n const parsedInterval = parseInterval(interval);\n const entitySet = [...entities];\n\n const bannerElement = transform ? <Banner {...banner} /> : banner;\n\n entitySet.splice(parsedInterval, 0, bannerElement);\n\n return entitySet;\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,aAAa,MAAM,kBAAkB;AAC5C,OAAOC,MAAM,MAAM,sBAAsB;AAEzC,eAAe,SAASC,YAAY,CAACC,QAAQ,EAAEC,MAAM,EAAE;EACrD,MAAM;IAAEC,QAAQ;IAAEC,SAAS,GAAG;EAAM,CAAC,GAAGF,MAAM;EAC9C,MAAMG,cAAc,GAAGP,aAAa,CAACK,QAAQ,CAAC;EAC9C,MAAMG,SAAS,GAAG,CAAC,GAAGL,QAAQ,CAAC;EAE/B,MAAMM,aAAa,GAAGH,SAAS,gBAAG,oBAAC,MAAM,EAAKF,MAAM,CAAI,GAAGA,MAAM;EAEjEI,SAAS,CAACE,MAAM,CAACH,cAAc,EAAE,CAAC,EAAEE,aAAa,CAAC;EAElD,OAAOD,SAAS;AAClB"}
1
+ {"version":3,"file":"inject-banner.js","names":["React","parseInterval","Banner","injectBanner","entities","banner","interval","transform","parsedInterval","entitySet","bannerElement","createElement","splice"],"sources":["../../src/helpers/inject-banner.js"],"sourcesContent":["import React from 'react';\nimport parseInterval from './parse-interval';\nimport Banner from '../components/Banner';\n\nexport default function injectBanner(entities, banner) {\n const { interval, transform = false } = banner;\n const parsedInterval = parseInterval(interval);\n const entitySet = [...entities];\n\n const bannerElement = transform ? <Banner {...banner} /> : banner;\n\n entitySet.splice(parsedInterval, 0, bannerElement);\n\n return entitySet;\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,aAAa,MAAM,kBAAkB;AAC5C,OAAOC,MAAM,MAAM,sBAAsB;AAEzC,eAAe,SAASC,YAAYA,CAACC,QAAQ,EAAEC,MAAM,EAAE;EACrD,MAAM;IAAEC,QAAQ;IAAEC,SAAS,GAAG;EAAM,CAAC,GAAGF,MAAM;EAC9C,MAAMG,cAAc,GAAGP,aAAa,CAACK,QAAQ,CAAC;EAC9C,MAAMG,SAAS,GAAG,CAAC,GAAGL,QAAQ,CAAC;EAE/B,MAAMM,aAAa,GAAGH,SAAS,gBAAGP,KAAA,CAAAW,aAAA,CAACT,MAAM,EAAKG,MAAM,CAAI,GAAGA,MAAM;EAEjEI,SAAS,CAACG,MAAM,CAACJ,cAAc,EAAE,CAAC,EAAEE,aAAa,CAAC;EAElD,OAAOD,SAAS;AAClB"}
@@ -1 +1 @@
1
- {"version":3,"file":"inject-banners-to-entities.js","names":["injectBanner","getBannerData","injectMultipleBanners","injectBannersToEntities","entities","banner","options","length","repeat","bannerData","entitiesWithBanner"],"sources":["../../src/helpers/inject-banners-to-entities.js"],"sourcesContent":["import injectBanner from './inject-banner';\nimport getBannerData from './get-banner-data';\nimport injectMultipleBanners from './inject-multiple-banners';\n\nexport default function injectBannersToEntities(entities, { banner, ...options }) {\n if (!entities.length) return [];\n\n const { repeat } = banner;\n const bannerData = getBannerData(banner, options);\n\n const entitiesWithBanner = repeat\n ? injectMultipleBanners(entities, bannerData)\n : injectBanner(entities, bannerData);\n\n return entitiesWithBanner;\n}\n"],"mappings":";;AAAA,OAAOA,YAAY,MAAM,iBAAiB;AAC1C,OAAOC,aAAa,MAAM,mBAAmB;AAC7C,OAAOC,qBAAqB,MAAM,2BAA2B;AAE7D,eAAe,SAASC,uBAAuB,CAACC,QAAQ,QAA0B;EAAA,IAAxB;MAAEC;IAAmB,CAAC;IAATC,OAAO;EAC5E,IAAI,CAACF,QAAQ,CAACG,MAAM,EAAE,OAAO,EAAE;EAE/B,MAAM;IAAEC;EAAO,CAAC,GAAGH,MAAM;EACzB,MAAMI,UAAU,GAAGR,aAAa,CAACI,MAAM,EAAEC,OAAO,CAAC;EAEjD,MAAMI,kBAAkB,GAAGF,MAAM,GAC7BN,qBAAqB,CAACE,QAAQ,EAAEK,UAAU,CAAC,GAC3CT,YAAY,CAACI,QAAQ,EAAEK,UAAU,CAAC;EAEtC,OAAOC,kBAAkB;AAC3B"}
1
+ {"version":3,"file":"inject-banners-to-entities.js","names":["injectBanner","getBannerData","injectMultipleBanners","injectBannersToEntities","entities","_ref","banner","options","_objectWithoutProperties","_excluded","length","repeat","bannerData","entitiesWithBanner"],"sources":["../../src/helpers/inject-banners-to-entities.js"],"sourcesContent":["import injectBanner from './inject-banner';\nimport getBannerData from './get-banner-data';\nimport injectMultipleBanners from './inject-multiple-banners';\n\nexport default function injectBannersToEntities(entities, { banner, ...options }) {\n if (!entities.length) return [];\n\n const { repeat } = banner;\n const bannerData = getBannerData(banner, options);\n\n const entitiesWithBanner = repeat\n ? injectMultipleBanners(entities, bannerData)\n : injectBanner(entities, bannerData);\n\n return entitiesWithBanner;\n}\n"],"mappings":";;AAAA,OAAOA,YAAY,MAAM,iBAAiB;AAC1C,OAAOC,aAAa,MAAM,mBAAmB;AAC7C,OAAOC,qBAAqB,MAAM,2BAA2B;AAE7D,eAAe,SAASC,uBAAuBA,CAACC,QAAQ,EAAAC,IAAA,EAA0B;EAAA,IAAxB;MAAEC;IAAmB,CAAC,GAAAD,IAAA;IAATE,OAAO,GAAAC,wBAAA,CAAAH,IAAA,EAAAI,SAAA;EAC5E,IAAI,CAACL,QAAQ,CAACM,MAAM,EAAE,OAAO,EAAE;EAE/B,MAAM;IAAEC;EAAO,CAAC,GAAGL,MAAM;EACzB,MAAMM,UAAU,GAAGX,aAAa,CAACK,MAAM,EAAEC,OAAO,CAAC;EAEjD,MAAMM,kBAAkB,GAAGF,MAAM,GAC7BT,qBAAqB,CAACE,QAAQ,EAAEQ,UAAU,CAAC,GAC3CZ,YAAY,CAACI,QAAQ,EAAEQ,UAAU,CAAC;EAEtC,OAAOC,kBAAkB;AAC3B"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-banners-for-entities.js","names":["flatten","groupEntities","injectBanner","getBannersForEntities","entitiesSet","banner","interval","limit","controlledLimit","length","groups","entitiesWithBanner","map","chunk","sanitizedEntities","slice"],"sources":["../../../../src/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js"],"sourcesContent":["import flatten from 'lodash.flatten';\nimport groupEntities from '../../group-entities';\nimport injectBanner from '../../inject-banner';\n\nexport default function getBannersForEntities(entitiesSet, banner) {\n const { interval, limit } = banner;\n const controlledLimit = limit || entitiesSet.length;\n\n const groups = groupEntities(entitiesSet, interval - 1);\n\n const entitiesWithBanner = groups.map(chunk => injectBanner(chunk, banner));\n\n const sanitizedEntities = flatten(entitiesWithBanner).slice(0, controlledLimit);\n\n return sanitizedEntities;\n}\n"],"mappings":"AAAA,OAAOA,OAAO,MAAM,gBAAgB;AACpC,OAAOC,aAAa,MAAM,sBAAsB;AAChD,OAAOC,YAAY,MAAM,qBAAqB;AAE9C,eAAe,SAASC,qBAAqB,CAACC,WAAW,EAAEC,MAAM,EAAE;EACjE,MAAM;IAAEC,QAAQ;IAAEC;EAAM,CAAC,GAAGF,MAAM;EAClC,MAAMG,eAAe,GAAGD,KAAK,IAAIH,WAAW,CAACK,MAAM;EAEnD,MAAMC,MAAM,GAAGT,aAAa,CAACG,WAAW,EAAEE,QAAQ,GAAG,CAAC,CAAC;EAEvD,MAAMK,kBAAkB,GAAGD,MAAM,CAACE,GAAG,CAACC,KAAK,IAAIX,YAAY,CAACW,KAAK,EAAER,MAAM,CAAC,CAAC;EAE3E,MAAMS,iBAAiB,GAAGd,OAAO,CAACW,kBAAkB,CAAC,CAACI,KAAK,CAAC,CAAC,EAAEP,eAAe,CAAC;EAE/E,OAAOM,iBAAiB;AAC1B"}
1
+ {"version":3,"file":"get-banners-for-entities.js","names":["flatten","groupEntities","injectBanner","getBannersForEntities","entitiesSet","banner","interval","limit","controlledLimit","length","groups","entitiesWithBanner","map","chunk","sanitizedEntities","slice"],"sources":["../../../../src/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js"],"sourcesContent":["import flatten from 'lodash.flatten';\nimport groupEntities from '../../group-entities';\nimport injectBanner from '../../inject-banner';\n\nexport default function getBannersForEntities(entitiesSet, banner) {\n const { interval, limit } = banner;\n const controlledLimit = limit || entitiesSet.length;\n\n const groups = groupEntities(entitiesSet, interval - 1);\n\n const entitiesWithBanner = groups.map(chunk => injectBanner(chunk, banner));\n\n const sanitizedEntities = flatten(entitiesWithBanner).slice(0, controlledLimit);\n\n return sanitizedEntities;\n}\n"],"mappings":"AAAA,OAAOA,OAAO,MAAM,gBAAgB;AACpC,OAAOC,aAAa,MAAM,sBAAsB;AAChD,OAAOC,YAAY,MAAM,qBAAqB;AAE9C,eAAe,SAASC,qBAAqBA,CAACC,WAAW,EAAEC,MAAM,EAAE;EACjE,MAAM;IAAEC,QAAQ;IAAEC;EAAM,CAAC,GAAGF,MAAM;EAClC,MAAMG,eAAe,GAAGD,KAAK,IAAIH,WAAW,CAACK,MAAM;EAEnD,MAAMC,MAAM,GAAGT,aAAa,CAACG,WAAW,EAAEE,QAAQ,GAAG,CAAC,CAAC;EAEvD,MAAMK,kBAAkB,GAAGD,MAAM,CAACE,GAAG,CAACC,KAAK,IAAIX,YAAY,CAACW,KAAK,EAAER,MAAM,CAAC,CAAC;EAE3E,MAAMS,iBAAiB,GAAGd,OAAO,CAACW,kBAAkB,CAAC,CAACI,KAAK,CAAC,CAAC,EAAEP,eAAe,CAAC;EAE/E,OAAOM,iBAAiB;AAC1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-banners-for-nodes.js","names":["flatten","groupNodeEntities","injectBanner","getBannersForNodes","entitiesSet","banner","groups","nodesWithBanner","map","chunk","index","key","adunit","interval","length"],"sources":["../../../../src/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js"],"sourcesContent":["import flatten from 'lodash.flatten';\nimport { groupNodeEntities } from './helpers';\nimport injectBanner from '../../inject-banner';\n\nexport default function getBannersForNodes(entitiesSet, banner) {\n const groups = groupNodeEntities(entitiesSet, banner);\n const nodesWithBanner = groups\n .map((chunk, index) => {\n const key = `${banner.adunit}-${index}`;\n const interval = chunk.length + 1;\n\n return injectBanner(chunk, { ...banner, key, interval });\n })\n .map(flatten);\n\n return nodesWithBanner;\n}\n"],"mappings":";;;AAAA,OAAOA,OAAO,MAAM,gBAAgB;AACpC,SAASC,iBAAiB,QAAQ,WAAW;AAC7C,OAAOC,YAAY,MAAM,qBAAqB;AAE9C,eAAe,SAASC,kBAAkB,CAACC,WAAW,EAAEC,MAAM,EAAE;EAC9D,MAAMC,MAAM,GAAGL,iBAAiB,CAACG,WAAW,EAAEC,MAAM,CAAC;EACrD,MAAME,eAAe,GAAGD,MAAM,CAC3BE,GAAG,CAAC,CAACC,KAAK,EAAEC,KAAK,KAAK;IACrB,MAAMC,GAAG,GAAI,GAAEN,MAAM,CAACO,MAAO,IAAGF,KAAM,EAAC;IACvC,MAAMG,QAAQ,GAAGJ,KAAK,CAACK,MAAM,GAAG,CAAC;IAEjC,OAAOZ,YAAY,CAACO,KAAK,kCAAOJ,MAAM;MAAEM,GAAG;MAAEE;IAAQ,GAAG;EAC1D,CAAC,CAAC,CACDL,GAAG,CAACR,OAAO,CAAC;EAEf,OAAOO,eAAe;AACxB"}
1
+ {"version":3,"file":"get-banners-for-nodes.js","names":["flatten","groupNodeEntities","injectBanner","getBannersForNodes","entitiesSet","banner","groups","nodesWithBanner","map","chunk","index","key","adunit","interval","length","_objectSpread"],"sources":["../../../../src/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js"],"sourcesContent":["import flatten from 'lodash.flatten';\nimport { groupNodeEntities } from './helpers';\nimport injectBanner from '../../inject-banner';\n\nexport default function getBannersForNodes(entitiesSet, banner) {\n const groups = groupNodeEntities(entitiesSet, banner);\n const nodesWithBanner = groups\n .map((chunk, index) => {\n const key = `${banner.adunit}-${index}`;\n const interval = chunk.length + 1;\n\n return injectBanner(chunk, { ...banner, key, interval });\n })\n .map(flatten);\n\n return nodesWithBanner;\n}\n"],"mappings":";;;AAAA,OAAOA,OAAO,MAAM,gBAAgB;AACpC,SAASC,iBAAiB,QAAQ,WAAW;AAC7C,OAAOC,YAAY,MAAM,qBAAqB;AAE9C,eAAe,SAASC,kBAAkBA,CAACC,WAAW,EAAEC,MAAM,EAAE;EAC9D,MAAMC,MAAM,GAAGL,iBAAiB,CAACG,WAAW,EAAEC,MAAM,CAAC;EACrD,MAAME,eAAe,GAAGD,MAAM,CAC3BE,GAAG,CAAC,CAACC,KAAK,EAAEC,KAAK,KAAK;IACrB,MAAMC,GAAG,GAAI,GAAEN,MAAM,CAACO,MAAO,IAAGF,KAAM,EAAC;IACvC,MAAMG,QAAQ,GAAGJ,KAAK,CAACK,MAAM,GAAG,CAAC;IAEjC,OAAOZ,YAAY,CAACO,KAAK,EAAAM,aAAA,CAAAA,aAAA,KAAOV,MAAM;MAAEM,GAAG;MAAEE;IAAQ,GAAG;EAC1D,CAAC,CAAC,CACDL,GAAG,CAACR,OAAO,CAAC;EAEf,OAAOO,eAAe;AACxB"}
@@ -1 +1 @@
1
- {"version":3,"file":"group-node-entities.js","names":["groupEntities","groupNodeEntities","entities","options","interval","entitySet","chunks","lastSliceIndex","validNodeIndexes","map","props","validIndex","hasValidChildren","children","length","filter","indexCandidate","refChunks","forEach","ref","end","start","newChunk","slice","push"],"sources":["../../../../../src/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js"],"sourcesContent":["import groupEntities from '../../../group-entities';\n\nexport default function groupNodeEntities(entities, options) {\n const { interval } = options;\n const entitySet = [...entities];\n const chunks = [];\n let lastSliceIndex = 0;\n\n const validNodeIndexes = entitySet\n .map(({ props }, validIndex) => {\n const hasValidChildren = props && props.children && props.children.length;\n\n if (hasValidChildren) return validIndex;\n\n return null;\n })\n .filter(indexCandidate => typeof indexCandidate === 'number');\n\n const refChunks = groupEntities(validNodeIndexes, interval - 1);\n\n refChunks.forEach(ref => {\n const end = ref[ref.length - 1] + 1;\n const start = lastSliceIndex || ref[0];\n\n const newChunk = entitySet.slice(start, end);\n\n lastSliceIndex = end;\n\n if (newChunk.length) chunks.push(newChunk);\n });\n\n return chunks;\n}\n"],"mappings":"AAAA,OAAOA,aAAa,MAAM,yBAAyB;AAEnD,eAAe,SAASC,iBAAiB,CAACC,QAAQ,EAAEC,OAAO,EAAE;EAC3D,MAAM;IAAEC;EAAS,CAAC,GAAGD,OAAO;EAC5B,MAAME,SAAS,GAAG,CAAC,GAAGH,QAAQ,CAAC;EAC/B,MAAMI,MAAM,GAAG,EAAE;EACjB,IAAIC,cAAc,GAAG,CAAC;EAEtB,MAAMC,gBAAgB,GAAGH,SAAS,CAC/BI,GAAG,CAAC,CAAC;IAAEC;EAAM,CAAC,EAAEC,UAAU,KAAK;IAC9B,MAAMC,gBAAgB,GAAGF,KAAK,IAAIA,KAAK,CAACG,QAAQ,IAAIH,KAAK,CAACG,QAAQ,CAACC,MAAM;IAEzE,IAAIF,gBAAgB,EAAE,OAAOD,UAAU;IAEvC,OAAO,IAAI;EACb,CAAC,CAAC,CACDI,MAAM,CAACC,cAAc,IAAI,OAAOA,cAAc,KAAK,QAAQ,CAAC;EAE/D,MAAMC,SAAS,GAAGjB,aAAa,CAACQ,gBAAgB,EAAEJ,QAAQ,GAAG,CAAC,CAAC;EAE/Da,SAAS,CAACC,OAAO,CAACC,GAAG,IAAI;IACvB,MAAMC,GAAG,GAAGD,GAAG,CAACA,GAAG,CAACL,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC;IACnC,MAAMO,KAAK,GAAGd,cAAc,IAAIY,GAAG,CAAC,CAAC,CAAC;IAEtC,MAAMG,QAAQ,GAAGjB,SAAS,CAACkB,KAAK,CAACF,KAAK,EAAED,GAAG,CAAC;IAE5Cb,cAAc,GAAGa,GAAG;IAEpB,IAAIE,QAAQ,CAACR,MAAM,EAAER,MAAM,CAACkB,IAAI,CAACF,QAAQ,CAAC;EAC5C,CAAC,CAAC;EAEF,OAAOhB,MAAM;AACf"}
1
+ {"version":3,"file":"group-node-entities.js","names":["groupEntities","groupNodeEntities","entities","options","interval","entitySet","chunks","lastSliceIndex","validNodeIndexes","map","props","validIndex","hasValidChildren","children","length","filter","indexCandidate","refChunks","forEach","ref","end","start","newChunk","slice","push"],"sources":["../../../../../src/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js"],"sourcesContent":["import groupEntities from '../../../group-entities';\n\nexport default function groupNodeEntities(entities, options) {\n const { interval } = options;\n const entitySet = [...entities];\n const chunks = [];\n let lastSliceIndex = 0;\n\n const validNodeIndexes = entitySet\n .map(({ props }, validIndex) => {\n const hasValidChildren = props && props.children && props.children.length;\n\n if (hasValidChildren) return validIndex;\n\n return null;\n })\n .filter(indexCandidate => typeof indexCandidate === 'number');\n\n const refChunks = groupEntities(validNodeIndexes, interval - 1);\n\n refChunks.forEach(ref => {\n const end = ref[ref.length - 1] + 1;\n const start = lastSliceIndex || ref[0];\n\n const newChunk = entitySet.slice(start, end);\n\n lastSliceIndex = end;\n\n if (newChunk.length) chunks.push(newChunk);\n });\n\n return chunks;\n}\n"],"mappings":"AAAA,OAAOA,aAAa,MAAM,yBAAyB;AAEnD,eAAe,SAASC,iBAAiBA,CAACC,QAAQ,EAAEC,OAAO,EAAE;EAC3D,MAAM;IAAEC;EAAS,CAAC,GAAGD,OAAO;EAC5B,MAAME,SAAS,GAAG,CAAC,GAAGH,QAAQ,CAAC;EAC/B,MAAMI,MAAM,GAAG,EAAE;EACjB,IAAIC,cAAc,GAAG,CAAC;EAEtB,MAAMC,gBAAgB,GAAGH,SAAS,CAC/BI,GAAG,CAAC,CAAC;IAAEC;EAAM,CAAC,EAAEC,UAAU,KAAK;IAC9B,MAAMC,gBAAgB,GAAGF,KAAK,IAAIA,KAAK,CAACG,QAAQ,IAAIH,KAAK,CAACG,QAAQ,CAACC,MAAM;IAEzE,IAAIF,gBAAgB,EAAE,OAAOD,UAAU;IAEvC,OAAO,IAAI;EACb,CAAC,CAAC,CACDI,MAAM,CAACC,cAAc,IAAI,OAAOA,cAAc,KAAK,QAAQ,CAAC;EAE/D,MAAMC,SAAS,GAAGjB,aAAa,CAACQ,gBAAgB,EAAEJ,QAAQ,GAAG,CAAC,CAAC;EAE/Da,SAAS,CAACC,OAAO,CAACC,GAAG,IAAI;IACvB,MAAMC,GAAG,GAAGD,GAAG,CAACA,GAAG,CAACL,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC;IACnC,MAAMO,KAAK,GAAGd,cAAc,IAAIY,GAAG,CAAC,CAAC,CAAC;IAEtC,MAAMG,QAAQ,GAAGjB,SAAS,CAACkB,KAAK,CAACF,KAAK,EAAED,GAAG,CAAC;IAE5Cb,cAAc,GAAGa,GAAG;IAEpB,IAAIE,QAAQ,CAACR,MAAM,EAAER,MAAM,CAACkB,IAAI,CAACF,QAAQ,CAAC;EAC5C,CAAC,CAAC;EAEF,OAAOhB,MAAM;AACf"}
@@ -1 +1 @@
1
- {"version":3,"file":"inject-multiple-banners.js","names":["getBannersForEntities","getBannersForNodes","injectMultipleBanners","entities","banner","transform","entitiesSet","injectedEntities"],"sources":["../../../src/helpers/inject-multiple-banners/inject-multiple-banners.js"],"sourcesContent":["import getBannersForEntities from './get-banners-for-entities';\nimport getBannersForNodes from './get-banners-for-nodes';\n\nexport default function injectMultipleBanners(entities, banner) {\n const { transform } = banner;\n const entitiesSet = [...entities];\n\n const injectedEntities = transform\n ? getBannersForNodes(entitiesSet, banner)\n : getBannersForEntities(entitiesSet, banner);\n\n return injectedEntities;\n}\n"],"mappings":"AAAA,OAAOA,qBAAqB,MAAM,4BAA4B;AAC9D,OAAOC,kBAAkB,MAAM,yBAAyB;AAExD,eAAe,SAASC,qBAAqB,CAACC,QAAQ,EAAEC,MAAM,EAAE;EAC9D,MAAM;IAAEC;EAAU,CAAC,GAAGD,MAAM;EAC5B,MAAME,WAAW,GAAG,CAAC,GAAGH,QAAQ,CAAC;EAEjC,MAAMI,gBAAgB,GAAGF,SAAS,GAC9BJ,kBAAkB,CAACK,WAAW,EAAEF,MAAM,CAAC,GACvCJ,qBAAqB,CAACM,WAAW,EAAEF,MAAM,CAAC;EAE9C,OAAOG,gBAAgB;AACzB"}
1
+ {"version":3,"file":"inject-multiple-banners.js","names":["getBannersForEntities","getBannersForNodes","injectMultipleBanners","entities","banner","transform","entitiesSet","injectedEntities"],"sources":["../../../src/helpers/inject-multiple-banners/inject-multiple-banners.js"],"sourcesContent":["import getBannersForEntities from './get-banners-for-entities';\nimport getBannersForNodes from './get-banners-for-nodes';\n\nexport default function injectMultipleBanners(entities, banner) {\n const { transform } = banner;\n const entitiesSet = [...entities];\n\n const injectedEntities = transform\n ? getBannersForNodes(entitiesSet, banner)\n : getBannersForEntities(entitiesSet, banner);\n\n return injectedEntities;\n}\n"],"mappings":"AAAA,OAAOA,qBAAqB,MAAM,4BAA4B;AAC9D,OAAOC,kBAAkB,MAAM,yBAAyB;AAExD,eAAe,SAASC,qBAAqBA,CAACC,QAAQ,EAAEC,MAAM,EAAE;EAC9D,MAAM;IAAEC;EAAU,CAAC,GAAGD,MAAM;EAC5B,MAAME,WAAW,GAAG,CAAC,GAAGH,QAAQ,CAAC;EAEjC,MAAMI,gBAAgB,GAAGF,SAAS,GAC9BJ,kBAAkB,CAACK,WAAW,EAAEF,MAAM,CAAC,GACvCJ,qBAAqB,CAACM,WAAW,EAAEF,MAAM,CAAC;EAE9C,OAAOG,gBAAgB;AACzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"is-browser.js","names":["isBrowser","window"],"sources":["../../src/helpers/is-browser.js"],"sourcesContent":["const isBrowser = () => typeof window !== 'undefined';\n\nexport default isBrowser;\n"],"mappings":"AAAA,MAAMA,SAAS,GAAG,MAAM,OAAOC,MAAM,KAAK,WAAW;AAErD,eAAeD,SAAS"}
1
+ {"version":3,"file":"is-browser.js","names":["isBrowser","window"],"sources":["../../src/helpers/is-browser.js"],"sourcesContent":["const isBrowser = () => typeof window !== 'undefined';\n\nexport default isBrowser;\n"],"mappings":"AAAA,MAAMA,SAAS,GAAGA,CAAA,KAAM,OAAOC,MAAM,KAAK,WAAW;AAErD,eAAeD,SAAS"}
@@ -1 +1 @@
1
- {"version":3,"file":"is-filter-entitys-id.js","names":["upperFirst","ID","isFilterEntitysId","entityName","itemEntityUpdated","id","includes"],"sources":["../../src/helpers/is-filter-entitys-id.js"],"sourcesContent":["import upperFirst from 'lodash.upperfirst';\nimport { ID } from '../constants';\n\nconst isFilterEntitysId = (entityName, itemEntityUpdated) => {\n const id = upperFirst(ID);\n return [\n `${itemEntityUpdated}${id}`,\n `${itemEntityUpdated}s${id}`,\n `${itemEntityUpdated}${id}s`,\n `${itemEntityUpdated}s${id}s`\n ].includes(entityName);\n};\n\nexport default isFilterEntitysId;\n"],"mappings":"AAAA,OAAOA,UAAU,MAAM,mBAAmB;AAC1C,SAASC,EAAE,QAAQ,cAAc;AAEjC,MAAMC,iBAAiB,GAAG,CAACC,UAAU,EAAEC,iBAAiB,KAAK;EAC3D,MAAMC,EAAE,GAAGL,UAAU,CAACC,EAAE,CAAC;EACzB,OAAO,CACJ,GAAEG,iBAAkB,GAAEC,EAAG,EAAC,EAC1B,GAAED,iBAAkB,IAAGC,EAAG,EAAC,EAC3B,GAAED,iBAAkB,GAAEC,EAAG,GAAE,EAC3B,GAAED,iBAAkB,IAAGC,EAAG,GAAE,CAC9B,CAACC,QAAQ,CAACH,UAAU,CAAC;AACxB,CAAC;AAED,eAAeD,iBAAiB"}
1
+ {"version":3,"file":"is-filter-entitys-id.js","names":["upperFirst","ID","isFilterEntitysId","entityName","itemEntityUpdated","id","includes"],"sources":["../../src/helpers/is-filter-entitys-id.js"],"sourcesContent":["import upperFirst from 'lodash.upperfirst';\nimport { ID } from '../constants';\n\nconst isFilterEntitysId = (entityName, itemEntityUpdated) => {\n const id = upperFirst(ID);\n return [\n `${itemEntityUpdated}${id}`,\n `${itemEntityUpdated}s${id}`,\n `${itemEntityUpdated}${id}s`,\n `${itemEntityUpdated}s${id}s`\n ].includes(entityName);\n};\n\nexport default isFilterEntitysId;\n"],"mappings":"AAAA,OAAOA,UAAU,MAAM,mBAAmB;AAC1C,SAASC,EAAE,QAAQ,cAAc;AAEjC,MAAMC,iBAAiB,GAAGA,CAACC,UAAU,EAAEC,iBAAiB,KAAK;EAC3D,MAAMC,EAAE,GAAGL,UAAU,CAACC,EAAE,CAAC;EACzB,OAAO,CACJ,GAAEG,iBAAkB,GAAEC,EAAG,EAAC,EAC1B,GAAED,iBAAkB,IAAGC,EAAG,EAAC,EAC3B,GAAED,iBAAkB,GAAEC,EAAG,GAAE,EAC3B,GAAED,iBAAkB,IAAGC,EAAG,GAAE,CAC9B,CAACC,QAAQ,CAACH,UAAU,CAAC;AACxB,CAAC;AAED,eAAeD,iBAAiB"}
@@ -1 +1 @@
1
- {"version":3,"file":"is-using-relation-image.js","names":["isUsingRelationImage","entity","fetchFromRelation","imageRelation","length"],"sources":["../../src/helpers/is-using-relation-image.js"],"sourcesContent":["const isUsingRelationImage = (entity, fetchFromRelation, imageRelation) =>\n entity && fetchFromRelation && imageRelation.length;\n\nexport default isUsingRelationImage;\n"],"mappings":"AAAA,MAAMA,oBAAoB,GAAG,CAACC,MAAM,EAAEC,iBAAiB,EAAEC,aAAa,KACpEF,MAAM,IAAIC,iBAAiB,IAAIC,aAAa,CAACC,MAAM;AAErD,eAAeJ,oBAAoB"}
1
+ {"version":3,"file":"is-using-relation-image.js","names":["isUsingRelationImage","entity","fetchFromRelation","imageRelation","length"],"sources":["../../src/helpers/is-using-relation-image.js"],"sourcesContent":["const isUsingRelationImage = (entity, fetchFromRelation, imageRelation) =>\n entity && fetchFromRelation && imageRelation.length;\n\nexport default isUsingRelationImage;\n"],"mappings":"AAAA,MAAMA,oBAAoB,GAAGA,CAACC,MAAM,EAAEC,iBAAiB,EAAEC,aAAa,KACpEF,MAAM,IAAIC,iBAAiB,IAAIC,aAAa,CAACC,MAAM;AAErD,eAAeJ,oBAAoB"}
@@ -1 +1 @@
1
- {"version":3,"file":"parse-TextBlock.js","names":["parseHTML","domToReact","React","ANCHOR_TAG","TARGET_BLANK","parseTextBlock","config","html","LinkWrapper","useTargetBlank","options","replace","domNode","attribs","children","name","tagName","target"],"sources":["../../src/helpers/parse-TextBlock.js"],"sourcesContent":["import parseHTML, { domToReact } from 'html-react-parser';\nimport React from 'react';\nimport { ANCHOR_TAG, TARGET_BLANK } from '../constants';\n\nfunction parseTextBlock(config) {\n const { html, LinkWrapper, useTargetBlank } = config;\n\n const options = {\n replace: domNode => {\n const { attribs, children, name: tagName } = domNode;\n if (tagName === ANCHOR_TAG) {\n const target = useTargetBlank ? TARGET_BLANK : attribs.target;\n\n return LinkWrapper ? (\n <LinkWrapper {...attribs} target={target}>\n {domToReact(children, options)}\n </LinkWrapper>\n ) : (\n domNode\n );\n }\n return null;\n }\n };\n\n return parseHTML(html, options);\n}\n\nexport default parseTextBlock;\n"],"mappings":";AAAA,OAAOA,SAAS,IAAIC,UAAU,QAAQ,mBAAmB;AACzD,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,YAAY,QAAQ,cAAc;AAEvD,SAASC,cAAc,CAACC,MAAM,EAAE;EAC9B,MAAM;IAAEC,IAAI;IAAEC,WAAW;IAAEC;EAAe,CAAC,GAAGH,MAAM;EAEpD,MAAMI,OAAO,GAAG;IACdC,OAAO,EAAEC,OAAO,IAAI;MAClB,MAAM;QAAEC,OAAO;QAAEC,QAAQ;QAAEC,IAAI,EAAEC;MAAQ,CAAC,GAAGJ,OAAO;MACpD,IAAII,OAAO,KAAKb,UAAU,EAAE;QAC1B,MAAMc,MAAM,GAAGR,cAAc,GAAGL,YAAY,GAAGS,OAAO,CAACI,MAAM;QAE7D,OAAOT,WAAW,gBAChB,oBAAC,WAAW,eAAKK,OAAO;UAAE,MAAM,EAAEI;QAAO,IACtChB,UAAU,CAACa,QAAQ,EAAEJ,OAAO,CAAC,CAClB,GAEdE,OACD;MACH;MACA,OAAO,IAAI;IACb;EACF,CAAC;EAED,OAAOZ,SAAS,CAACO,IAAI,EAAEG,OAAO,CAAC;AACjC;AAEA,eAAeL,cAAc"}
1
+ {"version":3,"file":"parse-TextBlock.js","names":["parseHTML","domToReact","React","ANCHOR_TAG","TARGET_BLANK","parseTextBlock","config","html","LinkWrapper","useTargetBlank","options","replace","domNode","attribs","children","name","tagName","target","createElement","_extends"],"sources":["../../src/helpers/parse-TextBlock.js"],"sourcesContent":["import parseHTML, { domToReact } from 'html-react-parser';\nimport React from 'react';\nimport { ANCHOR_TAG, TARGET_BLANK } from '../constants';\n\nfunction parseTextBlock(config) {\n const { html, LinkWrapper, useTargetBlank } = config;\n\n const options = {\n replace: domNode => {\n const { attribs, children, name: tagName } = domNode;\n if (tagName === ANCHOR_TAG) {\n const target = useTargetBlank ? TARGET_BLANK : attribs.target;\n\n return LinkWrapper ? (\n <LinkWrapper {...attribs} target={target}>\n {domToReact(children, options)}\n </LinkWrapper>\n ) : (\n domNode\n );\n }\n return null;\n }\n };\n\n return parseHTML(html, options);\n}\n\nexport default parseTextBlock;\n"],"mappings":";AAAA,OAAOA,SAAS,IAAIC,UAAU,QAAQ,mBAAmB;AACzD,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,EAAEC,YAAY,QAAQ,cAAc;AAEvD,SAASC,cAAcA,CAACC,MAAM,EAAE;EAC9B,MAAM;IAAEC,IAAI;IAAEC,WAAW;IAAEC;EAAe,CAAC,GAAGH,MAAM;EAEpD,MAAMI,OAAO,GAAG;IACdC,OAAO,EAAEC,OAAO,IAAI;MAClB,MAAM;QAAEC,OAAO;QAAEC,QAAQ;QAAEC,IAAI,EAAEC;MAAQ,CAAC,GAAGJ,OAAO;MACpD,IAAII,OAAO,KAAKb,UAAU,EAAE;QAC1B,MAAMc,MAAM,GAAGR,cAAc,GAAGL,YAAY,GAAGS,OAAO,CAACI,MAAM;QAE7D,OAAOT,WAAW,gBAChBN,KAAA,CAAAgB,aAAA,CAACV,WAAW,EAAAW,QAAA,KAAKN,OAAO;UAAEI,MAAM,EAAEA;QAAO,IACtChB,UAAU,CAACa,QAAQ,EAAEJ,OAAO,CAAC,CAClB,GAEdE,OACD;MACH;MACA,OAAO,IAAI;IACb;EACF,CAAC;EAED,OAAOZ,SAAS,CAACO,IAAI,EAAEG,OAAO,CAAC;AACjC;AAEA,eAAeL,cAAc"}
@@ -1 +1 @@
1
- {"version":3,"file":"parse-interval.js","names":["parseInterval","interval"],"sources":["../../src/helpers/parse-interval.js"],"sourcesContent":["export default function parseInterval(interval) {\n return interval ? interval - 1 : 0;\n}\n"],"mappings":"AAAA,eAAe,SAASA,aAAa,CAACC,QAAQ,EAAE;EAC9C,OAAOA,QAAQ,GAAGA,QAAQ,GAAG,CAAC,GAAG,CAAC;AACpC"}
1
+ {"version":3,"file":"parse-interval.js","names":["parseInterval","interval"],"sources":["../../src/helpers/parse-interval.js"],"sourcesContent":["export default function parseInterval(interval) {\n return interval ? interval - 1 : 0;\n}\n"],"mappings":"AAAA,eAAe,SAASA,aAAaA,CAACC,QAAQ,EAAE;EAC9C,OAAOA,QAAQ,GAAGA,QAAQ,GAAG,CAAC,GAAG,CAAC;AACpC"}
@@ -1 +1 @@
1
- {"version":3,"file":"parse-props-to-display.js","names":["React","Fragment","at","isObject","getParsedPropValues","getSanitizedPropValues","BOLD_TAG","BLANK_SPACE_UNICODE_STRING","parsePropsToDisplay","props","propsToDisplay","filter","Boolean","map","bold","propertiesToDisplay","prefix","suffix","shouldStrip","enableLink","currentIndex","Wrapper","parsedPropValues","sanitizedPropValues","length","stringEndBlank"],"sources":["../../src/helpers/parse-props-to-display.js"],"sourcesContent":["import React, { Fragment } from 'react';\nimport at from 'lodash.at';\nimport isObject from './is-object';\nimport getParsedPropValues from './get-parsed-prop-values';\nimport getSanitizedPropValues from './get-sanitized-prop-values';\nimport { BOLD_TAG, BLANK_SPACE_UNICODE_STRING } from '../constants';\n\n// TODO this helper should be removed if database is wiped clean and all elements change to new props struc\nconst parsePropsToDisplay = (props = {}, propsToDisplay = []) => {\n if (!isObject(propsToDisplay[0])) return at(props, propsToDisplay).filter(Boolean);\n\n return propsToDisplay.map(\n ({ bold, propertiesToDisplay, prefix, suffix, shouldStrip, enableLink }, currentIndex) => {\n const Wrapper = bold ? BOLD_TAG : Fragment;\n\n const parsedPropValues = getParsedPropValues({\n propertiesToDisplay,\n props,\n enableLink,\n shouldStrip\n });\n\n const sanitizedPropValues = getSanitizedPropValues(parsedPropValues);\n if (!sanitizedPropValues || !sanitizedPropValues.length) return null;\n const stringEndBlank =\n currentIndex + 1 === propsToDisplay.length ? '' : BLANK_SPACE_UNICODE_STRING;\n\n return (\n <Wrapper>\n {prefix} {sanitizedPropValues} {suffix}\n {stringEndBlank}\n </Wrapper>\n );\n }\n );\n};\n\nexport default parsePropsToDisplay;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,QAAQ,MAAM,aAAa;AAClC,OAAOC,mBAAmB,MAAM,0BAA0B;AAC1D,OAAOC,sBAAsB,MAAM,6BAA6B;AAChE,SAASC,QAAQ,EAAEC,0BAA0B,QAAQ,cAAc;;AAEnE;AACA,MAAMC,mBAAmB,GAAG,CAACC,KAAK,GAAG,CAAC,CAAC,EAAEC,cAAc,GAAG,EAAE,KAAK;EAC/D,IAAI,CAACP,QAAQ,CAACO,cAAc,CAAC,CAAC,CAAC,CAAC,EAAE,OAAOR,EAAE,CAACO,KAAK,EAAEC,cAAc,CAAC,CAACC,MAAM,CAACC,OAAO,CAAC;EAElF,OAAOF,cAAc,CAACG,GAAG,CACvB,CAAC;IAAEC,IAAI;IAAEC,mBAAmB;IAAEC,MAAM;IAAEC,MAAM;IAAEC,WAAW;IAAEC;EAAW,CAAC,EAAEC,YAAY,KAAK;IACxF,MAAMC,OAAO,GAAGP,IAAI,GAAGR,QAAQ,GAAGL,QAAQ;IAE1C,MAAMqB,gBAAgB,GAAGlB,mBAAmB,CAAC;MAC3CW,mBAAmB;MACnBN,KAAK;MACLU,UAAU;MACVD;IACF,CAAC,CAAC;IAEF,MAAMK,mBAAmB,GAAGlB,sBAAsB,CAACiB,gBAAgB,CAAC;IACpE,IAAI,CAACC,mBAAmB,IAAI,CAACA,mBAAmB,CAACC,MAAM,EAAE,OAAO,IAAI;IACpE,MAAMC,cAAc,GAClBL,YAAY,GAAG,CAAC,KAAKV,cAAc,CAACc,MAAM,GAAG,EAAE,GAAGjB,0BAA0B;IAE9E,oBACE,oBAAC,OAAO,QACLS,MAAM,EAAC,GAAC,EAACO,mBAAmB,EAAC,GAAC,EAACN,MAAM,EACrCQ,cAAc,CACP;EAEd,CAAC,CACF;AACH,CAAC;AAED,eAAejB,mBAAmB"}
1
+ {"version":3,"file":"parse-props-to-display.js","names":["React","Fragment","at","isObject","getParsedPropValues","getSanitizedPropValues","BOLD_TAG","BLANK_SPACE_UNICODE_STRING","parsePropsToDisplay","props","propsToDisplay","filter","Boolean","map","bold","propertiesToDisplay","prefix","suffix","shouldStrip","enableLink","currentIndex","Wrapper","parsedPropValues","sanitizedPropValues","length","stringEndBlank","createElement"],"sources":["../../src/helpers/parse-props-to-display.js"],"sourcesContent":["import React, { Fragment } from 'react';\nimport at from 'lodash.at';\nimport isObject from './is-object';\nimport getParsedPropValues from './get-parsed-prop-values';\nimport getSanitizedPropValues from './get-sanitized-prop-values';\nimport { BOLD_TAG, BLANK_SPACE_UNICODE_STRING } from '../constants';\n\n// TODO this helper should be removed if database is wiped clean and all elements change to new props struc\nconst parsePropsToDisplay = (props = {}, propsToDisplay = []) => {\n if (!isObject(propsToDisplay[0])) return at(props, propsToDisplay).filter(Boolean);\n\n return propsToDisplay.map(\n ({ bold, propertiesToDisplay, prefix, suffix, shouldStrip, enableLink }, currentIndex) => {\n const Wrapper = bold ? BOLD_TAG : Fragment;\n\n const parsedPropValues = getParsedPropValues({\n propertiesToDisplay,\n props,\n enableLink,\n shouldStrip\n });\n\n const sanitizedPropValues = getSanitizedPropValues(parsedPropValues);\n if (!sanitizedPropValues || !sanitizedPropValues.length) return null;\n const stringEndBlank =\n currentIndex + 1 === propsToDisplay.length ? '' : BLANK_SPACE_UNICODE_STRING;\n\n return (\n <Wrapper>\n {prefix} {sanitizedPropValues} {suffix}\n {stringEndBlank}\n </Wrapper>\n );\n }\n );\n};\n\nexport default parsePropsToDisplay;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,OAAOC,EAAE,MAAM,WAAW;AAC1B,OAAOC,QAAQ,MAAM,aAAa;AAClC,OAAOC,mBAAmB,MAAM,0BAA0B;AAC1D,OAAOC,sBAAsB,MAAM,6BAA6B;AAChE,SAASC,QAAQ,EAAEC,0BAA0B,QAAQ,cAAc;;AAEnE;AACA,MAAMC,mBAAmB,GAAGA,CAACC,KAAK,GAAG,CAAC,CAAC,EAAEC,cAAc,GAAG,EAAE,KAAK;EAC/D,IAAI,CAACP,QAAQ,CAACO,cAAc,CAAC,CAAC,CAAC,CAAC,EAAE,OAAOR,EAAE,CAACO,KAAK,EAAEC,cAAc,CAAC,CAACC,MAAM,CAACC,OAAO,CAAC;EAElF,OAAOF,cAAc,CAACG,GAAG,CACvB,CAAC;IAAEC,IAAI;IAAEC,mBAAmB;IAAEC,MAAM;IAAEC,MAAM;IAAEC,WAAW;IAAEC;EAAW,CAAC,EAAEC,YAAY,KAAK;IACxF,MAAMC,OAAO,GAAGP,IAAI,GAAGR,QAAQ,GAAGL,QAAQ;IAE1C,MAAMqB,gBAAgB,GAAGlB,mBAAmB,CAAC;MAC3CW,mBAAmB;MACnBN,KAAK;MACLU,UAAU;MACVD;IACF,CAAC,CAAC;IAEF,MAAMK,mBAAmB,GAAGlB,sBAAsB,CAACiB,gBAAgB,CAAC;IACpE,IAAI,CAACC,mBAAmB,IAAI,CAACA,mBAAmB,CAACC,MAAM,EAAE,OAAO,IAAI;IACpE,MAAMC,cAAc,GAClBL,YAAY,GAAG,CAAC,KAAKV,cAAc,CAACc,MAAM,GAAG,EAAE,GAAGjB,0BAA0B;IAE9E,oBACEP,KAAA,CAAA0B,aAAA,CAACL,OAAO,QACLL,MAAM,EAAC,GAAC,EAACO,mBAAmB,EAAC,GAAC,EAACN,MAAM,EACrCQ,cAAc,CACP;EAEd,CAAC,CACF;AACH,CAAC;AAED,eAAejB,mBAAmB"}
@@ -1 +1 @@
1
- {"version":3,"file":"remove-extra-items.js","names":["removeExtraItems","data","limit","itemId","newData","i","length","id","push"],"sources":["../../src/helpers/remove-extra-items.js"],"sourcesContent":["function removeExtraItems(data, limit, itemId) {\n const newData = [];\n // eslint-disable-next-line no-plusplus\n for (let i = 0; i < data.length; i++) {\n if (data[i].id !== itemId) {\n newData.push(data[i]);\n }\n if (newData.length >= limit) break;\n }\n return newData;\n}\n\nexport default removeExtraItems;\n"],"mappings":"AAAA,SAASA,gBAAgB,CAACC,IAAI,EAAEC,KAAK,EAAEC,MAAM,EAAE;EAC7C,MAAMC,OAAO,GAAG,EAAE;EAClB;EACA,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGJ,IAAI,CAACK,MAAM,EAAED,CAAC,EAAE,EAAE;IACpC,IAAIJ,IAAI,CAACI,CAAC,CAAC,CAACE,EAAE,KAAKJ,MAAM,EAAE;MACzBC,OAAO,CAACI,IAAI,CAACP,IAAI,CAACI,CAAC,CAAC,CAAC;IACvB;IACA,IAAID,OAAO,CAACE,MAAM,IAAIJ,KAAK,EAAE;EAC/B;EACA,OAAOE,OAAO;AAChB;AAEA,eAAeJ,gBAAgB"}
1
+ {"version":3,"file":"remove-extra-items.js","names":["removeExtraItems","data","limit","itemId","newData","i","length","id","push"],"sources":["../../src/helpers/remove-extra-items.js"],"sourcesContent":["function removeExtraItems(data, limit, itemId) {\n const newData = [];\n // eslint-disable-next-line no-plusplus\n for (let i = 0; i < data.length; i++) {\n if (data[i].id !== itemId) {\n newData.push(data[i]);\n }\n if (newData.length >= limit) break;\n }\n return newData;\n}\n\nexport default removeExtraItems;\n"],"mappings":"AAAA,SAASA,gBAAgBA,CAACC,IAAI,EAAEC,KAAK,EAAEC,MAAM,EAAE;EAC7C,MAAMC,OAAO,GAAG,EAAE;EAClB;EACA,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGJ,IAAI,CAACK,MAAM,EAAED,CAAC,EAAE,EAAE;IACpC,IAAIJ,IAAI,CAACI,CAAC,CAAC,CAACE,EAAE,KAAKJ,MAAM,EAAE;MACzBC,OAAO,CAACI,IAAI,CAACP,IAAI,CAACI,CAAC,CAAC,CAAC;IACvB;IACA,IAAID,OAAO,CAACE,MAAM,IAAIJ,KAAK,EAAE;EAC/B;EACA,OAAOE,OAAO;AAChB;AAEA,eAAeJ,gBAAgB"}
@@ -1 +1 @@
1
- {"version":3,"file":"remove-unwanted-characters.js","names":["removeUnwantedCharacters","value","args","Array","isArray","map","removeCharacters","keyField","String","replace","trim"],"sources":["../../src/helpers/remove-unwanted-characters.js"],"sourcesContent":["function removeUnwantedCharacters(value) {\n const args = value ?? '';\n\n return Array.isArray(args) ? value.map(removeUnwantedCharacters) : removeCharacters(args);\n}\n\nfunction removeCharacters(value) {\n if (typeof value === 'object') {\n const { keyField } = value;\n if (!keyField) return value;\n return { ...value, [keyField]: removeUnwantedCharacters(value[keyField]) };\n }\n\n return String(value)\n .replace(/^\\|\\s/, '')\n .replace(/\\|$/, '')\n .trim();\n}\n\nexport default removeUnwantedCharacters;\n"],"mappings":";;;AAAA,SAASA,wBAAwB,CAACC,KAAK,EAAE;EACvC,MAAMC,IAAI,GAAGD,KAAK,aAALA,KAAK,cAALA,KAAK,GAAI,EAAE;EAExB,OAAOE,KAAK,CAACC,OAAO,CAACF,IAAI,CAAC,GAAGD,KAAK,CAACI,GAAG,CAACL,wBAAwB,CAAC,GAAGM,gBAAgB,CAACJ,IAAI,CAAC;AAC3F;AAEA,SAASI,gBAAgB,CAACL,KAAK,EAAE;EAC/B,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IAC7B,MAAM;MAAEM;IAAS,CAAC,GAAGN,KAAK;IAC1B,IAAI,CAACM,QAAQ,EAAE,OAAON,KAAK;IAC3B,uCAAYA,KAAK;MAAE,CAACM,QAAQ,GAAGP,wBAAwB,CAACC,KAAK,CAACM,QAAQ,CAAC;IAAC;EAC1E;EAEA,OAAOC,MAAM,CAACP,KAAK,CAAC,CACjBQ,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CACpBA,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAClBC,IAAI,EAAE;AACX;AAEA,eAAeV,wBAAwB"}
1
+ {"version":3,"file":"remove-unwanted-characters.js","names":["removeUnwantedCharacters","value","args","Array","isArray","map","removeCharacters","keyField","_objectSpread","String","replace","trim"],"sources":["../../src/helpers/remove-unwanted-characters.js"],"sourcesContent":["function removeUnwantedCharacters(value) {\n const args = value ?? '';\n\n return Array.isArray(args) ? value.map(removeUnwantedCharacters) : removeCharacters(args);\n}\n\nfunction removeCharacters(value) {\n if (typeof value === 'object') {\n const { keyField } = value;\n if (!keyField) return value;\n return { ...value, [keyField]: removeUnwantedCharacters(value[keyField]) };\n }\n\n return String(value)\n .replace(/^\\|\\s/, '')\n .replace(/\\|$/, '')\n .trim();\n}\n\nexport default removeUnwantedCharacters;\n"],"mappings":";;;AAAA,SAASA,wBAAwBA,CAACC,KAAK,EAAE;EACvC,MAAMC,IAAI,GAAGD,KAAK,aAALA,KAAK,cAALA,KAAK,GAAI,EAAE;EAExB,OAAOE,KAAK,CAACC,OAAO,CAACF,IAAI,CAAC,GAAGD,KAAK,CAACI,GAAG,CAACL,wBAAwB,CAAC,GAAGM,gBAAgB,CAACJ,IAAI,CAAC;AAC3F;AAEA,SAASI,gBAAgBA,CAACL,KAAK,EAAE;EAC/B,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IAC7B,MAAM;MAAEM;IAAS,CAAC,GAAGN,KAAK;IAC1B,IAAI,CAACM,QAAQ,EAAE,OAAON,KAAK;IAC3B,OAAAO,aAAA,CAAAA,aAAA,KAAYP,KAAK;MAAE,CAACM,QAAQ,GAAGP,wBAAwB,CAACC,KAAK,CAACM,QAAQ,CAAC;IAAC;EAC1E;EAEA,OAAOE,MAAM,CAACR,KAAK,CAAC,CACjBS,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CACpBA,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAClBC,IAAI,EAAE;AACX;AAEA,eAAeX,wBAAwB"}
@@ -1 +1 @@
1
- {"version":3,"file":"render-children.js","names":["React","CHILD_PROPS_TO_USE","buildChildProps","childProps","parentProps","propsToOverride","forEach","prop","renderChildren","children","otherProps","Children","map","child","childrenElements","props","Array","isArray","length","nestedChildren","nestedChild","cloneElement"],"sources":["../../src/helpers/render-children.js"],"sourcesContent":["import React from 'react';\nimport { CHILD_PROPS_TO_USE } from '../constants';\n\nconst buildChildProps = (childProps, parentProps) => {\n const propsToOverride = {};\n CHILD_PROPS_TO_USE.forEach(prop => (propsToOverride[prop] = childProps[prop]));\n return { ...parentProps, ...propsToOverride };\n};\n\nconst renderChildren = (children, otherProps = {}) =>\n React.Children.map(children, child => {\n const childrenElements = child.props.children;\n if (Array.isArray(childrenElements) && childrenElements.length) {\n const [, nestedChildren] = child.props.children;\n return (\n Array.isArray(nestedChildren) &&\n nestedChildren.map(nestedChild => renderChildren(nestedChild, otherProps))\n );\n }\n const childProps = buildChildProps(child.props, otherProps);\n return React.cloneElement(child, { ...childProps });\n });\n\nexport default renderChildren;\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,kBAAkB,QAAQ,cAAc;AAEjD,MAAMC,eAAe,GAAG,CAACC,UAAU,EAAEC,WAAW,KAAK;EACnD,MAAMC,eAAe,GAAG,CAAC,CAAC;EAC1BJ,kBAAkB,CAACK,OAAO,CAACC,IAAI,IAAKF,eAAe,CAACE,IAAI,CAAC,GAAGJ,UAAU,CAACI,IAAI,CAAE,CAAC;EAC9E,uCAAYH,WAAW,GAAKC,eAAe;AAC7C,CAAC;AAED,MAAMG,cAAc,GAAG,CAACC,QAAQ,EAAEC,UAAU,GAAG,CAAC,CAAC,KAC/CV,KAAK,CAACW,QAAQ,CAACC,GAAG,CAACH,QAAQ,EAAEI,KAAK,IAAI;EACpC,MAAMC,gBAAgB,GAAGD,KAAK,CAACE,KAAK,CAACN,QAAQ;EAC7C,IAAIO,KAAK,CAACC,OAAO,CAACH,gBAAgB,CAAC,IAAIA,gBAAgB,CAACI,MAAM,EAAE;IAC9D,MAAM,GAAGC,cAAc,CAAC,GAAGN,KAAK,CAACE,KAAK,CAACN,QAAQ;IAC/C,OACEO,KAAK,CAACC,OAAO,CAACE,cAAc,CAAC,IAC7BA,cAAc,CAACP,GAAG,CAACQ,WAAW,IAAIZ,cAAc,CAACY,WAAW,EAAEV,UAAU,CAAC,CAAC;EAE9E;EACA,MAAMP,UAAU,GAAGD,eAAe,CAACW,KAAK,CAACE,KAAK,EAAEL,UAAU,CAAC;EAC3D,OAAOV,KAAK,CAACqB,YAAY,CAACR,KAAK,oBAAOV,UAAU,EAAG;AACrD,CAAC,CAAC;AAEJ,eAAeK,cAAc"}
1
+ {"version":3,"file":"render-children.js","names":["React","CHILD_PROPS_TO_USE","buildChildProps","childProps","parentProps","propsToOverride","forEach","prop","_objectSpread","renderChildren","children","otherProps","Children","map","child","childrenElements","props","Array","isArray","length","nestedChildren","nestedChild","cloneElement"],"sources":["../../src/helpers/render-children.js"],"sourcesContent":["import React from 'react';\nimport { CHILD_PROPS_TO_USE } from '../constants';\n\nconst buildChildProps = (childProps, parentProps) => {\n const propsToOverride = {};\n CHILD_PROPS_TO_USE.forEach(prop => (propsToOverride[prop] = childProps[prop]));\n return { ...parentProps, ...propsToOverride };\n};\n\nconst renderChildren = (children, otherProps = {}) =>\n React.Children.map(children, child => {\n const childrenElements = child.props.children;\n if (Array.isArray(childrenElements) && childrenElements.length) {\n const [, nestedChildren] = child.props.children;\n return (\n Array.isArray(nestedChildren) &&\n nestedChildren.map(nestedChild => renderChildren(nestedChild, otherProps))\n );\n }\n const childProps = buildChildProps(child.props, otherProps);\n return React.cloneElement(child, { ...childProps });\n });\n\nexport default renderChildren;\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,kBAAkB,QAAQ,cAAc;AAEjD,MAAMC,eAAe,GAAGA,CAACC,UAAU,EAAEC,WAAW,KAAK;EACnD,MAAMC,eAAe,GAAG,CAAC,CAAC;EAC1BJ,kBAAkB,CAACK,OAAO,CAACC,IAAI,IAAKF,eAAe,CAACE,IAAI,CAAC,GAAGJ,UAAU,CAACI,IAAI,CAAE,CAAC;EAC9E,OAAAC,aAAA,CAAAA,aAAA,KAAYJ,WAAW,GAAKC,eAAe;AAC7C,CAAC;AAED,MAAMI,cAAc,GAAGA,CAACC,QAAQ,EAAEC,UAAU,GAAG,CAAC,CAAC,KAC/CX,KAAK,CAACY,QAAQ,CAACC,GAAG,CAACH,QAAQ,EAAEI,KAAK,IAAI;EACpC,MAAMC,gBAAgB,GAAGD,KAAK,CAACE,KAAK,CAACN,QAAQ;EAC7C,IAAIO,KAAK,CAACC,OAAO,CAACH,gBAAgB,CAAC,IAAIA,gBAAgB,CAACI,MAAM,EAAE;IAC9D,MAAM,GAAGC,cAAc,CAAC,GAAGN,KAAK,CAACE,KAAK,CAACN,QAAQ;IAC/C,OACEO,KAAK,CAACC,OAAO,CAACE,cAAc,CAAC,IAC7BA,cAAc,CAACP,GAAG,CAACQ,WAAW,IAAIZ,cAAc,CAACY,WAAW,EAAEV,UAAU,CAAC,CAAC;EAE9E;EACA,MAAMR,UAAU,GAAGD,eAAe,CAACY,KAAK,CAACE,KAAK,EAAEL,UAAU,CAAC;EAC3D,OAAOX,KAAK,CAACsB,YAAY,CAACR,KAAK,EAAAN,aAAA,KAAOL,UAAU,EAAG;AACrD,CAAC,CAAC;AAEJ,eAAeM,cAAc"}
@@ -1 +1 @@
1
- {"version":3,"file":"should-render-waypoint.js","names":["shouldRenderWaypoint","index","listLength","infiniteIndex","listTotal"],"sources":["../../src/helpers/should-render-waypoint.js"],"sourcesContent":["const shouldRenderWaypoint = (index = 0, listLength = 0, infiniteIndex = 1, listTotal = 1) =>\n !!(index === listLength - 3 && infiniteIndex !== listTotal);\n\nexport default shouldRenderWaypoint;\n"],"mappings":"AAAA,MAAMA,oBAAoB,GAAG,CAACC,KAAK,GAAG,CAAC,EAAEC,UAAU,GAAG,CAAC,EAAEC,aAAa,GAAG,CAAC,EAAEC,SAAS,GAAG,CAAC,KACvF,CAAC,EAAEH,KAAK,KAAKC,UAAU,GAAG,CAAC,IAAIC,aAAa,KAAKC,SAAS,CAAC;AAE7D,eAAeJ,oBAAoB"}
1
+ {"version":3,"file":"should-render-waypoint.js","names":["shouldRenderWaypoint","index","listLength","infiniteIndex","listTotal"],"sources":["../../src/helpers/should-render-waypoint.js"],"sourcesContent":["const shouldRenderWaypoint = (index = 0, listLength = 0, infiniteIndex = 1, listTotal = 1) =>\n !!(index === listLength - 3 && infiniteIndex !== listTotal);\n\nexport default shouldRenderWaypoint;\n"],"mappings":"AAAA,MAAMA,oBAAoB,GAAGA,CAACC,KAAK,GAAG,CAAC,EAAEC,UAAU,GAAG,CAAC,EAAEC,aAAa,GAAG,CAAC,EAAEC,SAAS,GAAG,CAAC,KACvF,CAAC,EAAEH,KAAK,KAAKC,UAAU,GAAG,CAAC,IAAIC,aAAa,KAAKC,SAAS,CAAC;AAE7D,eAAeJ,oBAAoB"}
@@ -1 +1 @@
1
- {"version":3,"file":"should-show-property.js","names":["shouldShowProperty","isDisplayed","value"],"sources":["../../src/helpers/should-show-property.js"],"sourcesContent":["const shouldShowProperty = ({ isDisplayed, value }) => isDisplayed && !!value;\n\nexport default shouldShowProperty;\n"],"mappings":"AAAA,MAAMA,kBAAkB,GAAG,CAAC;EAAEC,WAAW;EAAEC;AAAM,CAAC,KAAKD,WAAW,IAAI,CAAC,CAACC,KAAK;AAE7E,eAAeF,kBAAkB"}
1
+ {"version":3,"file":"should-show-property.js","names":["shouldShowProperty","isDisplayed","value"],"sources":["../../src/helpers/should-show-property.js"],"sourcesContent":["const shouldShowProperty = ({ isDisplayed, value }) => isDisplayed && !!value;\n\nexport default shouldShowProperty;\n"],"mappings":"AAAA,MAAMA,kBAAkB,GAAGA,CAAC;EAAEC,WAAW;EAAEC;AAAM,CAAC,KAAKD,WAAW,IAAI,CAAC,CAACC,KAAK;AAE7E,eAAeF,kBAAkB"}
@@ -1 +1 @@
1
- {"version":3,"file":"sort-response-data.js","names":["getItemsToDisplayIds","sortResponseData","data","itemsToDisplay","idsToDisplay","length","map","id","find","resultId","filter","Boolean"],"sources":["../../src/helpers/sort-response-data.js"],"sourcesContent":["import getItemsToDisplayIds from './get-items-to-display-ids';\n\nconst sortResponseData = (data = [], itemsToDisplay = []) => {\n const idsToDisplay = getItemsToDisplayIds(itemsToDisplay);\n if (!idsToDisplay.length) return data;\n return idsToDisplay.map(id => data.find(({ id: resultId }) => id === resultId)).filter(Boolean);\n};\n\nexport default sortResponseData;\n"],"mappings":"AAAA,OAAOA,oBAAoB,MAAM,4BAA4B;AAE7D,MAAMC,gBAAgB,GAAG,CAACC,IAAI,GAAG,EAAE,EAAEC,cAAc,GAAG,EAAE,KAAK;EAC3D,MAAMC,YAAY,GAAGJ,oBAAoB,CAACG,cAAc,CAAC;EACzD,IAAI,CAACC,YAAY,CAACC,MAAM,EAAE,OAAOH,IAAI;EACrC,OAAOE,YAAY,CAACE,GAAG,CAACC,EAAE,IAAIL,IAAI,CAACM,IAAI,CAAC,CAAC;IAAED,EAAE,EAAEE;EAAS,CAAC,KAAKF,EAAE,KAAKE,QAAQ,CAAC,CAAC,CAACC,MAAM,CAACC,OAAO,CAAC;AACjG,CAAC;AAED,eAAeV,gBAAgB"}
1
+ {"version":3,"file":"sort-response-data.js","names":["getItemsToDisplayIds","sortResponseData","data","itemsToDisplay","idsToDisplay","length","map","id","find","resultId","filter","Boolean"],"sources":["../../src/helpers/sort-response-data.js"],"sourcesContent":["import getItemsToDisplayIds from './get-items-to-display-ids';\n\nconst sortResponseData = (data = [], itemsToDisplay = []) => {\n const idsToDisplay = getItemsToDisplayIds(itemsToDisplay);\n if (!idsToDisplay.length) return data;\n return idsToDisplay.map(id => data.find(({ id: resultId }) => id === resultId)).filter(Boolean);\n};\n\nexport default sortResponseData;\n"],"mappings":"AAAA,OAAOA,oBAAoB,MAAM,4BAA4B;AAE7D,MAAMC,gBAAgB,GAAGA,CAACC,IAAI,GAAG,EAAE,EAAEC,cAAc,GAAG,EAAE,KAAK;EAC3D,MAAMC,YAAY,GAAGJ,oBAAoB,CAACG,cAAc,CAAC;EACzD,IAAI,CAACC,YAAY,CAACC,MAAM,EAAE,OAAOH,IAAI;EACrC,OAAOE,YAAY,CAACE,GAAG,CAACC,EAAE,IAAIL,IAAI,CAACM,IAAI,CAAC,CAAC;IAAED,EAAE,EAAEE;EAAS,CAAC,KAAKF,EAAE,KAAKE,QAAQ,CAAC,CAAC,CAACC,MAAM,CAACC,OAAO,CAAC;AACjG,CAAC;AAED,eAAeV,gBAAgB"}