@blaze-cms/react-page-builder 0.124.0-alpha.1 → 0.124.0-alpha.13

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 (668) hide show
  1. package/CHANGELOG.md +116 -0
  2. package/README.md +1 -0
  3. package/example.env +1 -0
  4. package/lib/BannerContext/helpers/index.js.map +1 -1
  5. package/lib/BannerContext/helpers/set-initial-banner-counters.js.map +1 -1
  6. package/lib/BannerContext/index.js.map +1 -1
  7. package/lib/HOC/index.js.map +1 -1
  8. package/lib/HOC/withInfiniteScroll.js.map +1 -1
  9. package/lib/HOC/withTitle.js.map +1 -1
  10. package/lib/PBContext/index.js.map +1 -1
  11. package/lib/application/query/index.js +1 -1
  12. package/lib/application/query/index.js.map +1 -1
  13. package/lib/components/BackToTop/BackToTop.js.map +1 -1
  14. package/lib/components/BackToTop/index.js.map +1 -1
  15. package/lib/components/Banner/AdSlotRender.js.map +1 -1
  16. package/lib/components/Banner/Banner.js.map +1 -1
  17. package/lib/components/Banner/BannerRender.js.map +1 -1
  18. package/lib/components/Banner/helpers.js.map +1 -1
  19. package/lib/components/Banner/index.js.map +1 -1
  20. package/lib/components/BlazeLink.js.map +1 -1
  21. package/lib/components/Breadcrumb/Breadcrumb.js.map +1 -1
  22. package/lib/components/Breadcrumb/index.js.map +1 -1
  23. package/lib/components/Button.js.map +1 -1
  24. package/lib/components/Card/Card.js.map +1 -1
  25. package/lib/components/Card/CardContainer.js.map +1 -1
  26. package/lib/components/Card/CardFactory.js.map +1 -1
  27. package/lib/components/Card/CardRender.js.map +1 -1
  28. package/lib/components/Card/constants.js.map +1 -1
  29. package/lib/components/Card/helpers/filter-query-setup.js.map +1 -1
  30. package/lib/components/Card/helpers/filters-setup.js.map +1 -1
  31. package/lib/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -1
  32. package/lib/components/Card/helpers/get-published-listing-url.js.map +1 -1
  33. package/lib/components/Card/helpers/index.js.map +1 -1
  34. package/lib/components/Card/helpers/should-return.js.map +1 -1
  35. package/lib/components/Card/helpers/should-skip-single-query.js.map +1 -1
  36. package/lib/components/Card/helpers/use-dynamic-size-key.js.map +1 -1
  37. package/lib/components/Card/index.js.map +1 -1
  38. package/lib/components/Carousel/Carousel.js.map +1 -1
  39. package/lib/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
  40. package/lib/components/Carousel/CarouselImage/index.js.map +1 -1
  41. package/lib/components/Carousel/CarouselRender/CarouselRender.js +2 -2
  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 +6 -8
  46. package/lib/components/CarouselWrapper.js.map +1 -1
  47. package/lib/components/ClickWrapper.js.map +1 -1
  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.map +1 -1
  52. package/lib/components/Code/index.js.map +1 -1
  53. package/lib/components/DataSummary/DataSummaryFactory.js.map +1 -1
  54. package/lib/components/DataSummary/DataSummaryRender.js.map +1 -1
  55. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -1
  56. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
  57. package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js.map +1 -1
  58. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map +1 -1
  59. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
  60. package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js.map +1 -1
  61. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.map +1 -1
  62. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
  63. package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/index.js.map +1 -1
  64. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.map +1 -1
  65. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
  66. package/lib/components/DataSummary/DataSummaryTypes/ListSummary/index.js.map +1 -1
  67. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.map +1 -1
  68. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
  69. package/lib/components/DataSummary/DataSummaryTypes/TextSummary/index.js.map +1 -1
  70. package/lib/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
  71. package/lib/components/DataSummary/helpers/build-loop-props-content.js.map +1 -1
  72. package/lib/components/DataSummary/helpers/build-props-to-display-with-content.js.map +1 -1
  73. package/lib/components/DataSummary/helpers/get-data-summary-query.js.map +1 -1
  74. package/lib/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -1
  75. package/lib/components/DataSummary/helpers/get-link-to-published-content.js.map +1 -1
  76. package/lib/components/DataSummary/helpers/get-loop-props-limit.js.map +1 -1
  77. package/lib/components/DataSummary/helpers/get-prop-value.js.map +1 -1
  78. package/lib/components/DataSummary/helpers/get-value-from-array.js.map +1 -1
  79. package/lib/components/DataSummary/helpers/index.js.map +1 -1
  80. package/lib/components/DataSummary/helpers/parse-boolean-values.js.map +1 -1
  81. package/lib/components/DataSummary/helpers/strip-summary-props-content.js.map +1 -1
  82. package/lib/components/DataSummary/index.js.map +1 -1
  83. package/lib/components/EmailConfirm/EmailConfirm.js.map +1 -1
  84. package/lib/components/EmailConfirm/index.js.map +1 -1
  85. package/lib/components/EmailConfirm/mutation.js.map +1 -1
  86. package/lib/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
  87. package/lib/components/Image/GlobalLightbox/NavButton.js.map +1 -1
  88. package/lib/components/Image/GlobalLightbox/index.js.map +1 -1
  89. package/lib/components/Image/Image.js.map +1 -1
  90. package/lib/components/Image/ImageDetails.js.map +1 -1
  91. package/lib/components/Image/ImageFactory.js.map +1 -1
  92. package/lib/components/Image/ImageRender.js.map +1 -1
  93. package/lib/components/Image/Lightbox/Lightbox.js.map +1 -1
  94. package/lib/components/Image/Lightbox/index.js.map +1 -1
  95. package/lib/components/Image/index.js.map +1 -1
  96. package/lib/components/Layout/Layout.js.map +1 -1
  97. package/lib/components/Layout/constants.js.map +1 -1
  98. package/lib/components/Layout/helpers/check-if-row-has-columns.js.map +1 -1
  99. package/lib/components/Layout/helpers/get-styles-to-update.js.map +1 -1
  100. package/lib/components/Layout/helpers/index.js.map +1 -1
  101. package/lib/components/Layout/index.js.map +1 -1
  102. package/lib/components/LazyImage/LazyImage.js.map +1 -1
  103. package/lib/components/LazyImage/index.js.map +1 -1
  104. package/lib/components/List/ListBuilder.js.map +1 -1
  105. package/lib/components/List/ListFactory.js.map +1 -1
  106. package/lib/components/List/ListRender.js.map +1 -1
  107. package/lib/components/List/components/Cards/CardRenderWithInfiniteScroll.js.map +1 -1
  108. package/lib/components/List/components/Cards/CardsRender.js.map +1 -1
  109. package/lib/components/List/components/Cards/CardsRenderItem.js.map +1 -1
  110. package/lib/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
  111. package/lib/components/List/components/Cards/index.js.map +1 -1
  112. package/lib/components/List/components/Full/FullRender.js.map +1 -1
  113. package/lib/components/List/components/Full/FullRenderItem.js.map +1 -1
  114. package/lib/components/List/components/Full/FullRenderWithInfiniteScroll.js.map +1 -1
  115. package/lib/components/List/components/Full/index.js.map +1 -1
  116. package/lib/components/List/components/Header/ListHeader.js.map +1 -1
  117. package/lib/components/List/components/Header/index.js.map +1 -1
  118. package/lib/components/List/components/Pagination/Classic.js.map +1 -1
  119. package/lib/components/List/components/Pagination/ListPagination.js.map +1 -1
  120. package/lib/components/List/components/Pagination/LoadMore.js.map +1 -1
  121. package/lib/components/List/components/Pagination/index.js.map +1 -1
  122. package/lib/components/List/components/helpers/check-if-should-render-banner.js.map +1 -1
  123. package/lib/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -1
  124. package/lib/components/List/components/helpers/index.js.map +1 -1
  125. package/lib/components/List/components/index.js.map +1 -1
  126. package/lib/components/List/constants.js.map +1 -1
  127. package/lib/components/List/helpers/build-az-aggregations.js.map +1 -1
  128. package/lib/components/List/helpers/build-az-url.js.map +1 -1
  129. package/lib/components/List/helpers/build-pagination-items.js.map +1 -1
  130. package/lib/components/List/helpers/build-pagination-url.js.map +1 -1
  131. package/lib/components/List/helpers/get-az-query-filter.js.map +1 -1
  132. package/lib/components/List/helpers/get-items-per-page-to-use.js.map +1 -1
  133. package/lib/components/List/helpers/get-sort-props.js.map +1 -1
  134. package/lib/components/List/helpers/index.js.map +1 -1
  135. package/lib/components/List/helpers/sort-aggs.js.map +1 -1
  136. package/lib/components/List/index.js.map +1 -1
  137. package/lib/components/Login/LoggedInMessage.js.map +1 -1
  138. package/lib/components/Login/Login.js.map +1 -1
  139. package/lib/components/Login/LoginForm.js.map +1 -1
  140. package/lib/components/Login/helpers/check-gtm-children.js.map +1 -1
  141. package/lib/components/Login/helpers/get-url-to-use.js.map +1 -1
  142. package/lib/components/Login/helpers/index.js.map +1 -1
  143. package/lib/components/Login/index.js.map +1 -1
  144. package/lib/components/Menu/Menu.js.map +1 -1
  145. package/lib/components/Menu/index.js.map +1 -1
  146. package/lib/components/MenuItem/MenuItem.js.map +1 -1
  147. package/lib/components/MenuItem/index.js.map +1 -1
  148. package/lib/components/Modal/Modal.js.map +1 -1
  149. package/lib/components/Modal/index.js.map +1 -1
  150. package/lib/components/PasswordReset/PasswordReset.js.map +1 -1
  151. package/lib/components/PasswordReset/helpers/index.js.map +1 -1
  152. package/lib/components/PasswordReset/helpers/validatePassword.js.map +1 -1
  153. package/lib/components/PasswordReset/index.js.map +1 -1
  154. package/lib/components/PasswordResetRequest/PasswordResetRequest.js.map +1 -1
  155. package/lib/components/PasswordResetRequest/index.js.map +1 -1
  156. package/lib/components/SearchContent/index.js +129 -63
  157. package/lib/components/SearchContent/index.js.map +1 -1
  158. package/lib/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
  159. package/lib/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
  160. package/lib/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -1
  161. package/lib/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
  162. package/lib/components/SearchFilter/SearchFilter/SearchFilter.js +11 -3
  163. package/lib/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
  164. package/lib/components/SearchFilter/SearchFilter/index.js.map +1 -1
  165. package/lib/components/SearchFilter/SearchFilterContainer.js.map +1 -1
  166. package/lib/components/SearchFilter/components/Checkbox.js.map +1 -1
  167. package/lib/components/SearchFilter/components/Range.js.map +1 -1
  168. package/lib/components/SearchFilter/components/Select.js.map +1 -1
  169. package/lib/components/SearchFilter/components/TextSearch.js.map +1 -1
  170. package/lib/components/SearchFilter/components/index.js.map +1 -1
  171. package/lib/components/SearchFilter/constants.js +1 -1
  172. package/lib/components/SearchFilter/constants.js.map +1 -1
  173. package/lib/components/SearchFilter/helpers/build-new-query.js.map +1 -1
  174. package/lib/components/SearchFilter/helpers/build-query.js.map +1 -1
  175. package/lib/components/SearchFilter/helpers/build-raw-query-stringified.js.map +1 -1
  176. package/lib/components/SearchFilter/helpers/calculate-min-max.js.map +1 -1
  177. package/lib/components/SearchFilter/helpers/calculate-step.js.map +1 -1
  178. package/lib/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -1
  179. package/lib/components/SearchFilter/helpers/decode-encode.js.map +1 -1
  180. package/lib/components/SearchFilter/helpers/get-display-value.js.map +1 -1
  181. package/lib/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
  182. package/lib/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -1
  183. package/lib/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -1
  184. package/lib/components/SearchFilter/helpers/get-range-value.js.map +1 -1
  185. package/lib/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
  186. package/lib/components/SearchFilter/helpers/get-select-options.js.map +1 -1
  187. package/lib/components/SearchFilter/helpers/index.js.map +1 -1
  188. package/lib/components/SearchFilter/helpers/is-device-desktop.js.map +1 -1
  189. package/lib/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
  190. package/lib/components/SearchFilter/index.js.map +1 -1
  191. package/lib/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
  192. package/lib/components/SearchFilterSort/constants.js.map +1 -1
  193. package/lib/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
  194. package/lib/components/SearchFilterSort/helpers/index.js.map +1 -1
  195. package/lib/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
  196. package/lib/components/SearchFilterSort/index.js.map +1 -1
  197. package/lib/components/SocialFollow/SFItem.js.map +1 -1
  198. package/lib/components/SocialFollow/SocialFollow.js.map +1 -1
  199. package/lib/components/SocialFollow/SocialFollowRender.js.map +1 -1
  200. package/lib/components/SocialFollow/index.js.map +1 -1
  201. package/lib/components/SocialFollow/sf.config.js.map +1 -1
  202. package/lib/components/SubMenu/SubMenu.js.map +1 -1
  203. package/lib/components/SubMenu/index.js.map +1 -1
  204. package/lib/components/TextBlock/TextBlockRender.js.map +1 -1
  205. package/lib/components/TextBlock/index.js.map +1 -1
  206. package/lib/components/Video/Video.js.map +1 -1
  207. package/lib/components/Video/VideoModal.js.map +1 -1
  208. package/lib/components/Video/VideoRender.js.map +1 -1
  209. package/lib/components/Video/index.js.map +1 -1
  210. package/lib/components/Video/providers/Default.js.map +1 -1
  211. package/lib/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
  212. package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
  213. package/lib/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
  214. package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
  215. package/lib/components/Video/providers/YouTube/helpers/index.js.map +1 -1
  216. package/lib/components/Video/providers/get-provider.js.map +1 -1
  217. package/lib/components/Video/providers/index.js.map +1 -1
  218. package/lib/components/Wrapper.js.map +1 -1
  219. package/lib/components/index.js.map +1 -1
  220. package/lib/constants/componentsDefaultValues.js.map +1 -1
  221. package/lib/constants/index.js.map +1 -1
  222. package/lib/helpers/append-images.js.map +1 -1
  223. package/lib/helpers/build-az-filter.js.map +1 -1
  224. package/lib/helpers/build-image-properties.js.map +1 -1
  225. package/lib/helpers/build-inherited-filters.js.map +1 -1
  226. package/lib/helpers/build-link-extra-props.js.map +1 -1
  227. package/lib/helpers/build-props-query.js +18 -11
  228. package/lib/helpers/build-props-query.js.map +1 -1
  229. package/lib/helpers/build-query-fields.js.map +1 -1
  230. package/lib/helpers/build-raw-query-base.js.map +1 -1
  231. package/lib/helpers/build-raw-query.js.map +1 -1
  232. package/lib/helpers/build-search-values-checkbox-select.js.map +1 -1
  233. package/lib/helpers/build-search-values-text.js.map +1 -1
  234. package/lib/helpers/build-set-filters.js.map +1 -1
  235. package/lib/helpers/check-for-error.js.map +1 -1
  236. package/lib/helpers/check-props-to-use.js.map +1 -1
  237. package/lib/helpers/entities/constants.js.map +1 -1
  238. package/lib/helpers/get-banner-data.js.map +1 -1
  239. package/lib/helpers/get-click-wrapper-options.js.map +1 -1
  240. package/lib/helpers/get-current-offset.js.map +1 -1
  241. package/lib/helpers/get-dictionary-match.js.map +1 -1
  242. package/lib/helpers/get-display-count-data.js.map +1 -1
  243. package/lib/helpers/get-elasticsearch-operator.js.map +1 -1
  244. package/lib/helpers/get-entities-with-banner.js.map +1 -1
  245. package/lib/helpers/get-entity-data.js.map +1 -1
  246. package/lib/helpers/get-entity-render-props.js.map +1 -1
  247. package/lib/helpers/get-extra-az-bits.js.map +1 -1
  248. package/lib/helpers/get-filter-props.js.map +1 -1
  249. package/lib/helpers/get-filter-relation-keys.js.map +1 -1
  250. package/lib/helpers/get-generic-props.js.map +1 -1
  251. package/lib/helpers/get-generic-render-variables.js.map +1 -1
  252. package/lib/helpers/get-image-ids.js.map +1 -1
  253. package/lib/helpers/get-inherited-filters.js.map +1 -1
  254. package/lib/helpers/get-items-to-display-ids.js.map +1 -1
  255. package/lib/helpers/get-modifiers.js.map +1 -1
  256. package/lib/helpers/get-not-equal-query.js.map +1 -1
  257. package/lib/helpers/get-pagination-index.js.map +1 -1
  258. package/lib/helpers/get-parsed-prop-values.js.map +1 -1
  259. package/lib/helpers/get-parsed-summary-value.js.map +1 -1
  260. package/lib/helpers/get-prop-values.js.map +1 -1
  261. package/lib/helpers/get-query-filters.js.map +1 -1
  262. package/lib/helpers/get-query-props.js.map +1 -1
  263. package/lib/helpers/get-required-schemas.js.map +1 -1
  264. package/lib/helpers/get-sanitized-prop-values.js.map +1 -1
  265. package/lib/helpers/get-search-filter-type.js.map +1 -1
  266. package/lib/helpers/get-sort-by-field-name.js.map +1 -1
  267. package/lib/helpers/get-unpublished-entity-name.js.map +1 -1
  268. package/lib/helpers/get-updated-filter-by.js.map +1 -1
  269. package/lib/helpers/get-wrapped-value-with-link.js.map +1 -1
  270. package/lib/helpers/group-entities.js.map +1 -1
  271. package/lib/helpers/has-children.js.map +1 -1
  272. package/lib/helpers/index.js.map +1 -1
  273. package/lib/helpers/inject-banner.js.map +1 -1
  274. package/lib/helpers/inject-banners-to-entities.js.map +1 -1
  275. package/lib/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.map +1 -1
  276. package/lib/helpers/inject-multiple-banners/get-banners-for-entities/index.js.map +1 -1
  277. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.map +1 -1
  278. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js.map +1 -1
  279. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js.map +1 -1
  280. package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/index.js.map +1 -1
  281. package/lib/helpers/inject-multiple-banners/index.js.map +1 -1
  282. package/lib/helpers/inject-multiple-banners/inject-multiple-banners.js.map +1 -1
  283. package/lib/helpers/is-browser.js.map +1 -1
  284. package/lib/helpers/is-filter-entitys-id.js.map +1 -1
  285. package/lib/helpers/is-object.js.map +1 -1
  286. package/lib/helpers/is-using-relation-image.js.map +1 -1
  287. package/lib/helpers/parse-TextBlock.js.map +1 -1
  288. package/lib/helpers/parse-interval.js.map +1 -1
  289. package/lib/helpers/parse-props-to-display.js.map +1 -1
  290. package/lib/helpers/remove-extra-items.js.map +1 -1
  291. package/lib/helpers/remove-unwanted-characters.js.map +1 -1
  292. package/lib/helpers/render-children.js.map +1 -1
  293. package/lib/helpers/should-render-waypoint.js.map +1 -1
  294. package/lib/helpers/should-show-property.js.map +1 -1
  295. package/lib/helpers/sort-response-data.js.map +1 -1
  296. package/lib/helpers/split-children.js.map +1 -1
  297. package/lib/helpers/update-childrens-parent.js.map +1 -1
  298. package/lib/hooks/helpers/RenderComponent.js.map +1 -1
  299. package/lib/hooks/helpers/StoreImages.js.map +1 -1
  300. package/lib/hooks/helpers/append-gtm-classname.js.map +1 -1
  301. package/lib/hooks/helpers/buildPBComponents.js.map +1 -1
  302. package/lib/hooks/helpers/check-banner-insertion-set.js.map +1 -1
  303. package/lib/hooks/helpers/check-collisions.js.map +1 -1
  304. package/lib/hooks/helpers/constants.js.map +1 -1
  305. package/lib/hooks/helpers/get-banner-index.js.map +1 -1
  306. package/lib/hooks/helpers/get-banners-by-type.js.map +1 -1
  307. package/lib/hooks/helpers/get-lightbox-images.js.map +1 -1
  308. package/lib/hooks/helpers/getComponent.js.map +1 -1
  309. package/lib/hooks/helpers/index.js.map +1 -1
  310. package/lib/hooks/helpers/inject-element-banners.js.map +1 -1
  311. package/lib/hooks/helpers/inject-textblock-banners.js.map +1 -1
  312. package/lib/hooks/helpers/insert-banners.js.map +1 -1
  313. package/lib/hooks/helpers/update-targetings.js.map +1 -1
  314. package/lib/hooks/index.js.map +1 -1
  315. package/lib/hooks/use-banner-insertion.js.map +1 -1
  316. package/lib/hooks/use-check-mobile-screen.js.map +1 -1
  317. package/lib/hooks/use-get-entity-schema.js.map +1 -1
  318. package/lib/hooks/use-get-entity-schemas-as-obj.js.map +1 -1
  319. package/lib/hooks/use-get-image-id-from-relation.js.map +1 -1
  320. package/lib/hooks/use-get-images.js.map +1 -1
  321. package/lib/hooks/use-get-single-entity-schema.js.map +1 -1
  322. package/lib/hooks/use-page-builder.js.map +1 -1
  323. package/lib/index.js.map +1 -1
  324. package/lib/utils/component-map.js.map +1 -1
  325. package/lib/utils/get-class-modifiers.js.map +1 -1
  326. package/lib/utils/get-image-data.js.map +1 -1
  327. package/lib/utils/get-props-to-display-modifiers.js.map +1 -1
  328. package/lib/utils/index.js.map +1 -1
  329. package/lib/utils/is-object-empty.js.map +1 -1
  330. package/lib-es/BannerContext/helpers/index.js.map +1 -1
  331. package/lib-es/BannerContext/helpers/set-initial-banner-counters.js.map +1 -1
  332. package/lib-es/BannerContext/index.js.map +1 -1
  333. package/lib-es/HOC/index.js.map +1 -1
  334. package/lib-es/HOC/withInfiniteScroll.js.map +1 -1
  335. package/lib-es/HOC/withTitle.js.map +1 -1
  336. package/lib-es/PBContext/index.js.map +1 -1
  337. package/lib-es/application/query/index.js +4 -0
  338. package/lib-es/application/query/index.js.map +1 -1
  339. package/lib-es/components/BackToTop/BackToTop.js.map +1 -1
  340. package/lib-es/components/BackToTop/index.js.map +1 -1
  341. package/lib-es/components/Banner/AdSlotRender.js.map +1 -1
  342. package/lib-es/components/Banner/Banner.js.map +1 -1
  343. package/lib-es/components/Banner/BannerRender.js.map +1 -1
  344. package/lib-es/components/Banner/helpers.js.map +1 -1
  345. package/lib-es/components/Banner/index.js.map +1 -1
  346. package/lib-es/components/BlazeLink.js.map +1 -1
  347. package/lib-es/components/Breadcrumb/Breadcrumb.js.map +1 -1
  348. package/lib-es/components/Breadcrumb/index.js.map +1 -1
  349. package/lib-es/components/Button.js.map +1 -1
  350. package/lib-es/components/Card/Card.js.map +1 -1
  351. package/lib-es/components/Card/CardContainer.js.map +1 -1
  352. package/lib-es/components/Card/CardFactory.js.map +1 -1
  353. package/lib-es/components/Card/CardRender.js.map +1 -1
  354. package/lib-es/components/Card/constants.js.map +1 -1
  355. package/lib-es/components/Card/helpers/filter-query-setup.js.map +1 -1
  356. package/lib-es/components/Card/helpers/filters-setup.js.map +1 -1
  357. package/lib-es/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -1
  358. package/lib-es/components/Card/helpers/get-published-listing-url.js.map +1 -1
  359. package/lib-es/components/Card/helpers/index.js.map +1 -1
  360. package/lib-es/components/Card/helpers/should-return.js.map +1 -1
  361. package/lib-es/components/Card/helpers/should-skip-single-query.js.map +1 -1
  362. package/lib-es/components/Card/helpers/use-dynamic-size-key.js.map +1 -1
  363. package/lib-es/components/Card/index.js.map +1 -1
  364. package/lib-es/components/Carousel/Carousel.js.map +1 -1
  365. package/lib-es/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
  366. package/lib-es/components/Carousel/CarouselImage/index.js.map +1 -1
  367. package/lib-es/components/Carousel/CarouselRender/CarouselRender.js +2 -2
  368. package/lib-es/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
  369. package/lib-es/components/Carousel/CarouselRender/index.js.map +1 -1
  370. package/lib-es/components/Carousel/index.js.map +1 -1
  371. package/lib-es/components/CarouselWrapper.js +6 -7
  372. package/lib-es/components/CarouselWrapper.js.map +1 -1
  373. package/lib-es/components/ClickWrapper.js.map +1 -1
  374. package/lib-es/components/Code/Code.js.map +1 -1
  375. package/lib-es/components/Code/ScriptTag.js.map +1 -1
  376. package/lib-es/components/Code/helpers/index.js.map +1 -1
  377. package/lib-es/components/Code/helpers/wrap-script-tags.js.map +1 -1
  378. package/lib-es/components/Code/index.js.map +1 -1
  379. package/lib-es/components/DataSummary/DataSummaryFactory.js.map +1 -1
  380. package/lib-es/components/DataSummary/DataSummaryRender.js.map +1 -1
  381. package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -1
  382. package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
  383. package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js.map +1 -1
  384. package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map +1 -1
  385. package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
  386. package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js.map +1 -1
  387. package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.map +1 -1
  388. package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
  389. package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/index.js.map +1 -1
  390. package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.map +1 -1
  391. package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
  392. package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/index.js.map +1 -1
  393. package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.map +1 -1
  394. package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
  395. package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/index.js.map +1 -1
  396. package/lib-es/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
  397. package/lib-es/components/DataSummary/helpers/build-loop-props-content.js.map +1 -1
  398. package/lib-es/components/DataSummary/helpers/build-props-to-display-with-content.js.map +1 -1
  399. package/lib-es/components/DataSummary/helpers/get-data-summary-query.js.map +1 -1
  400. package/lib-es/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -1
  401. package/lib-es/components/DataSummary/helpers/get-link-to-published-content.js.map +1 -1
  402. package/lib-es/components/DataSummary/helpers/get-loop-props-limit.js.map +1 -1
  403. package/lib-es/components/DataSummary/helpers/get-prop-value.js.map +1 -1
  404. package/lib-es/components/DataSummary/helpers/get-value-from-array.js.map +1 -1
  405. package/lib-es/components/DataSummary/helpers/index.js.map +1 -1
  406. package/lib-es/components/DataSummary/helpers/parse-boolean-values.js.map +1 -1
  407. package/lib-es/components/DataSummary/helpers/strip-summary-props-content.js.map +1 -1
  408. package/lib-es/components/DataSummary/index.js.map +1 -1
  409. package/lib-es/components/EmailConfirm/EmailConfirm.js.map +1 -1
  410. package/lib-es/components/EmailConfirm/index.js.map +1 -1
  411. package/lib-es/components/EmailConfirm/mutation.js.map +1 -1
  412. package/lib-es/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
  413. package/lib-es/components/Image/GlobalLightbox/NavButton.js.map +1 -1
  414. package/lib-es/components/Image/GlobalLightbox/index.js.map +1 -1
  415. package/lib-es/components/Image/Image.js.map +1 -1
  416. package/lib-es/components/Image/ImageDetails.js.map +1 -1
  417. package/lib-es/components/Image/ImageFactory.js.map +1 -1
  418. package/lib-es/components/Image/ImageRender.js.map +1 -1
  419. package/lib-es/components/Image/Lightbox/Lightbox.js.map +1 -1
  420. package/lib-es/components/Image/Lightbox/index.js.map +1 -1
  421. package/lib-es/components/Image/index.js.map +1 -1
  422. package/lib-es/components/Layout/Layout.js.map +1 -1
  423. package/lib-es/components/Layout/constants.js.map +1 -1
  424. package/lib-es/components/Layout/helpers/check-if-row-has-columns.js.map +1 -1
  425. package/lib-es/components/Layout/helpers/get-styles-to-update.js.map +1 -1
  426. package/lib-es/components/Layout/helpers/index.js.map +1 -1
  427. package/lib-es/components/Layout/index.js.map +1 -1
  428. package/lib-es/components/LazyImage/LazyImage.js.map +1 -1
  429. package/lib-es/components/LazyImage/index.js.map +1 -1
  430. package/lib-es/components/List/ListBuilder.js.map +1 -1
  431. package/lib-es/components/List/ListFactory.js.map +1 -1
  432. package/lib-es/components/List/ListRender.js.map +1 -1
  433. package/lib-es/components/List/components/Cards/CardRenderWithInfiniteScroll.js.map +1 -1
  434. package/lib-es/components/List/components/Cards/CardsRender.js.map +1 -1
  435. package/lib-es/components/List/components/Cards/CardsRenderItem.js.map +1 -1
  436. package/lib-es/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
  437. package/lib-es/components/List/components/Cards/index.js.map +1 -1
  438. package/lib-es/components/List/components/Full/FullRender.js.map +1 -1
  439. package/lib-es/components/List/components/Full/FullRenderItem.js.map +1 -1
  440. package/lib-es/components/List/components/Full/FullRenderWithInfiniteScroll.js.map +1 -1
  441. package/lib-es/components/List/components/Full/index.js.map +1 -1
  442. package/lib-es/components/List/components/Header/ListHeader.js.map +1 -1
  443. package/lib-es/components/List/components/Header/index.js.map +1 -1
  444. package/lib-es/components/List/components/Pagination/Classic.js.map +1 -1
  445. package/lib-es/components/List/components/Pagination/ListPagination.js.map +1 -1
  446. package/lib-es/components/List/components/Pagination/LoadMore.js.map +1 -1
  447. package/lib-es/components/List/components/Pagination/index.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/components/helpers/index.js.map +1 -1
  451. package/lib-es/components/List/components/index.js.map +1 -1
  452. package/lib-es/components/List/constants.js.map +1 -1
  453. package/lib-es/components/List/helpers/build-az-aggregations.js.map +1 -1
  454. package/lib-es/components/List/helpers/build-az-url.js.map +1 -1
  455. package/lib-es/components/List/helpers/build-pagination-items.js.map +1 -1
  456. package/lib-es/components/List/helpers/build-pagination-url.js.map +1 -1
  457. package/lib-es/components/List/helpers/get-az-query-filter.js.map +1 -1
  458. package/lib-es/components/List/helpers/get-items-per-page-to-use.js.map +1 -1
  459. package/lib-es/components/List/helpers/get-sort-props.js.map +1 -1
  460. package/lib-es/components/List/helpers/index.js.map +1 -1
  461. package/lib-es/components/List/helpers/sort-aggs.js.map +1 -1
  462. package/lib-es/components/List/index.js.map +1 -1
  463. package/lib-es/components/Login/LoggedInMessage.js.map +1 -1
  464. package/lib-es/components/Login/Login.js.map +1 -1
  465. package/lib-es/components/Login/LoginForm.js.map +1 -1
  466. package/lib-es/components/Login/helpers/check-gtm-children.js.map +1 -1
  467. package/lib-es/components/Login/helpers/get-url-to-use.js.map +1 -1
  468. package/lib-es/components/Login/helpers/index.js.map +1 -1
  469. package/lib-es/components/Login/index.js.map +1 -1
  470. package/lib-es/components/Menu/Menu.js.map +1 -1
  471. package/lib-es/components/Menu/index.js.map +1 -1
  472. package/lib-es/components/MenuItem/MenuItem.js.map +1 -1
  473. package/lib-es/components/MenuItem/index.js.map +1 -1
  474. package/lib-es/components/Modal/Modal.js.map +1 -1
  475. package/lib-es/components/Modal/index.js.map +1 -1
  476. package/lib-es/components/PasswordReset/PasswordReset.js.map +1 -1
  477. package/lib-es/components/PasswordReset/helpers/index.js.map +1 -1
  478. package/lib-es/components/PasswordReset/helpers/validatePassword.js.map +1 -1
  479. package/lib-es/components/PasswordReset/index.js.map +1 -1
  480. package/lib-es/components/PasswordResetRequest/PasswordResetRequest.js.map +1 -1
  481. package/lib-es/components/PasswordResetRequest/index.js.map +1 -1
  482. package/lib-es/components/SearchContent/index.js +81 -50
  483. package/lib-es/components/SearchContent/index.js.map +1 -1
  484. package/lib-es/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
  485. package/lib-es/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
  486. package/lib-es/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -1
  487. package/lib-es/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
  488. package/lib-es/components/SearchFilter/SearchFilter/SearchFilter.js +11 -3
  489. package/lib-es/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
  490. package/lib-es/components/SearchFilter/SearchFilter/index.js.map +1 -1
  491. package/lib-es/components/SearchFilter/SearchFilterContainer.js.map +1 -1
  492. package/lib-es/components/SearchFilter/components/Checkbox.js.map +1 -1
  493. package/lib-es/components/SearchFilter/components/Range.js.map +1 -1
  494. package/lib-es/components/SearchFilter/components/Select.js.map +1 -1
  495. package/lib-es/components/SearchFilter/components/TextSearch.js.map +1 -1
  496. package/lib-es/components/SearchFilter/components/index.js.map +1 -1
  497. package/lib-es/components/SearchFilter/constants.js +1 -1
  498. package/lib-es/components/SearchFilter/constants.js.map +1 -1
  499. package/lib-es/components/SearchFilter/helpers/build-new-query.js.map +1 -1
  500. package/lib-es/components/SearchFilter/helpers/build-query.js.map +1 -1
  501. package/lib-es/components/SearchFilter/helpers/build-raw-query-stringified.js.map +1 -1
  502. package/lib-es/components/SearchFilter/helpers/calculate-min-max.js.map +1 -1
  503. package/lib-es/components/SearchFilter/helpers/calculate-step.js.map +1 -1
  504. package/lib-es/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -1
  505. package/lib-es/components/SearchFilter/helpers/decode-encode.js.map +1 -1
  506. package/lib-es/components/SearchFilter/helpers/get-display-value.js.map +1 -1
  507. package/lib-es/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
  508. package/lib-es/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -1
  509. package/lib-es/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -1
  510. package/lib-es/components/SearchFilter/helpers/get-range-value.js.map +1 -1
  511. package/lib-es/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
  512. package/lib-es/components/SearchFilter/helpers/get-select-options.js.map +1 -1
  513. package/lib-es/components/SearchFilter/helpers/index.js.map +1 -1
  514. package/lib-es/components/SearchFilter/helpers/is-device-desktop.js.map +1 -1
  515. package/lib-es/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
  516. package/lib-es/components/SearchFilter/index.js.map +1 -1
  517. package/lib-es/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
  518. package/lib-es/components/SearchFilterSort/constants.js.map +1 -1
  519. package/lib-es/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
  520. package/lib-es/components/SearchFilterSort/helpers/index.js.map +1 -1
  521. package/lib-es/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
  522. package/lib-es/components/SearchFilterSort/index.js.map +1 -1
  523. package/lib-es/components/SocialFollow/SFItem.js.map +1 -1
  524. package/lib-es/components/SocialFollow/SocialFollow.js.map +1 -1
  525. package/lib-es/components/SocialFollow/SocialFollowRender.js.map +1 -1
  526. package/lib-es/components/SocialFollow/index.js.map +1 -1
  527. package/lib-es/components/SocialFollow/sf.config.js.map +1 -1
  528. package/lib-es/components/SubMenu/SubMenu.js.map +1 -1
  529. package/lib-es/components/SubMenu/index.js.map +1 -1
  530. package/lib-es/components/TextBlock/TextBlockRender.js.map +1 -1
  531. package/lib-es/components/TextBlock/index.js.map +1 -1
  532. package/lib-es/components/Video/Video.js.map +1 -1
  533. package/lib-es/components/Video/VideoModal.js.map +1 -1
  534. package/lib-es/components/Video/VideoRender.js.map +1 -1
  535. package/lib-es/components/Video/index.js.map +1 -1
  536. package/lib-es/components/Video/providers/Default.js.map +1 -1
  537. package/lib-es/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
  538. package/lib-es/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
  539. package/lib-es/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
  540. package/lib-es/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
  541. package/lib-es/components/Video/providers/YouTube/helpers/index.js.map +1 -1
  542. package/lib-es/components/Video/providers/get-provider.js.map +1 -1
  543. package/lib-es/components/Video/providers/index.js.map +1 -1
  544. package/lib-es/components/Wrapper.js.map +1 -1
  545. package/lib-es/components/index.js.map +1 -1
  546. package/lib-es/constants/componentsDefaultValues.js.map +1 -1
  547. package/lib-es/constants/index.js.map +1 -1
  548. package/lib-es/helpers/append-images.js.map +1 -1
  549. package/lib-es/helpers/build-az-filter.js.map +1 -1
  550. package/lib-es/helpers/build-image-properties.js.map +1 -1
  551. package/lib-es/helpers/build-inherited-filters.js.map +1 -1
  552. package/lib-es/helpers/build-link-extra-props.js.map +1 -1
  553. package/lib-es/helpers/build-props-query.js +11 -2
  554. package/lib-es/helpers/build-props-query.js.map +1 -1
  555. package/lib-es/helpers/build-query-fields.js.map +1 -1
  556. package/lib-es/helpers/build-raw-query-base.js.map +1 -1
  557. package/lib-es/helpers/build-raw-query.js.map +1 -1
  558. package/lib-es/helpers/build-search-values-checkbox-select.js.map +1 -1
  559. package/lib-es/helpers/build-search-values-text.js.map +1 -1
  560. package/lib-es/helpers/build-set-filters.js.map +1 -1
  561. package/lib-es/helpers/check-for-error.js.map +1 -1
  562. package/lib-es/helpers/check-props-to-use.js.map +1 -1
  563. package/lib-es/helpers/entities/constants.js.map +1 -1
  564. package/lib-es/helpers/get-banner-data.js.map +1 -1
  565. package/lib-es/helpers/get-click-wrapper-options.js.map +1 -1
  566. package/lib-es/helpers/get-current-offset.js.map +1 -1
  567. package/lib-es/helpers/get-dictionary-match.js.map +1 -1
  568. package/lib-es/helpers/get-display-count-data.js.map +1 -1
  569. package/lib-es/helpers/get-elasticsearch-operator.js.map +1 -1
  570. package/lib-es/helpers/get-entities-with-banner.js.map +1 -1
  571. package/lib-es/helpers/get-entity-data.js.map +1 -1
  572. package/lib-es/helpers/get-entity-render-props.js.map +1 -1
  573. package/lib-es/helpers/get-extra-az-bits.js.map +1 -1
  574. package/lib-es/helpers/get-filter-props.js.map +1 -1
  575. package/lib-es/helpers/get-filter-relation-keys.js.map +1 -1
  576. package/lib-es/helpers/get-generic-props.js.map +1 -1
  577. package/lib-es/helpers/get-generic-render-variables.js.map +1 -1
  578. package/lib-es/helpers/get-image-ids.js.map +1 -1
  579. package/lib-es/helpers/get-inherited-filters.js.map +1 -1
  580. package/lib-es/helpers/get-items-to-display-ids.js.map +1 -1
  581. package/lib-es/helpers/get-modifiers.js.map +1 -1
  582. package/lib-es/helpers/get-not-equal-query.js.map +1 -1
  583. package/lib-es/helpers/get-pagination-index.js.map +1 -1
  584. package/lib-es/helpers/get-parsed-prop-values.js.map +1 -1
  585. package/lib-es/helpers/get-parsed-summary-value.js.map +1 -1
  586. package/lib-es/helpers/get-prop-values.js.map +1 -1
  587. package/lib-es/helpers/get-query-filters.js.map +1 -1
  588. package/lib-es/helpers/get-query-props.js.map +1 -1
  589. package/lib-es/helpers/get-required-schemas.js.map +1 -1
  590. package/lib-es/helpers/get-sanitized-prop-values.js.map +1 -1
  591. package/lib-es/helpers/get-search-filter-type.js.map +1 -1
  592. package/lib-es/helpers/get-sort-by-field-name.js.map +1 -1
  593. package/lib-es/helpers/get-unpublished-entity-name.js.map +1 -1
  594. package/lib-es/helpers/get-updated-filter-by.js.map +1 -1
  595. package/lib-es/helpers/get-wrapped-value-with-link.js.map +1 -1
  596. package/lib-es/helpers/group-entities.js.map +1 -1
  597. package/lib-es/helpers/has-children.js.map +1 -1
  598. package/lib-es/helpers/index.js.map +1 -1
  599. package/lib-es/helpers/inject-banner.js.map +1 -1
  600. package/lib-es/helpers/inject-banners-to-entities.js.map +1 -1
  601. package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.map +1 -1
  602. package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/index.js.map +1 -1
  603. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.map +1 -1
  604. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js.map +1 -1
  605. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js.map +1 -1
  606. package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/index.js.map +1 -1
  607. package/lib-es/helpers/inject-multiple-banners/index.js.map +1 -1
  608. package/lib-es/helpers/inject-multiple-banners/inject-multiple-banners.js.map +1 -1
  609. package/lib-es/helpers/is-browser.js.map +1 -1
  610. package/lib-es/helpers/is-filter-entitys-id.js.map +1 -1
  611. package/lib-es/helpers/is-object.js.map +1 -1
  612. package/lib-es/helpers/is-using-relation-image.js.map +1 -1
  613. package/lib-es/helpers/parse-TextBlock.js.map +1 -1
  614. package/lib-es/helpers/parse-interval.js.map +1 -1
  615. package/lib-es/helpers/parse-props-to-display.js.map +1 -1
  616. package/lib-es/helpers/remove-extra-items.js.map +1 -1
  617. package/lib-es/helpers/remove-unwanted-characters.js.map +1 -1
  618. package/lib-es/helpers/render-children.js.map +1 -1
  619. package/lib-es/helpers/should-render-waypoint.js.map +1 -1
  620. package/lib-es/helpers/should-show-property.js.map +1 -1
  621. package/lib-es/helpers/sort-response-data.js.map +1 -1
  622. package/lib-es/helpers/split-children.js.map +1 -1
  623. package/lib-es/helpers/update-childrens-parent.js.map +1 -1
  624. package/lib-es/hooks/helpers/RenderComponent.js.map +1 -1
  625. package/lib-es/hooks/helpers/StoreImages.js.map +1 -1
  626. package/lib-es/hooks/helpers/append-gtm-classname.js.map +1 -1
  627. package/lib-es/hooks/helpers/buildPBComponents.js.map +1 -1
  628. package/lib-es/hooks/helpers/check-banner-insertion-set.js.map +1 -1
  629. package/lib-es/hooks/helpers/check-collisions.js.map +1 -1
  630. package/lib-es/hooks/helpers/constants.js.map +1 -1
  631. package/lib-es/hooks/helpers/get-banner-index.js.map +1 -1
  632. package/lib-es/hooks/helpers/get-banners-by-type.js.map +1 -1
  633. package/lib-es/hooks/helpers/get-lightbox-images.js.map +1 -1
  634. package/lib-es/hooks/helpers/getComponent.js.map +1 -1
  635. package/lib-es/hooks/helpers/index.js.map +1 -1
  636. package/lib-es/hooks/helpers/inject-element-banners.js.map +1 -1
  637. package/lib-es/hooks/helpers/inject-textblock-banners.js.map +1 -1
  638. package/lib-es/hooks/helpers/insert-banners.js.map +1 -1
  639. package/lib-es/hooks/helpers/update-targetings.js.map +1 -1
  640. package/lib-es/hooks/index.js.map +1 -1
  641. package/lib-es/hooks/use-banner-insertion.js.map +1 -1
  642. package/lib-es/hooks/use-check-mobile-screen.js.map +1 -1
  643. package/lib-es/hooks/use-get-entity-schema.js.map +1 -1
  644. package/lib-es/hooks/use-get-entity-schemas-as-obj.js.map +1 -1
  645. package/lib-es/hooks/use-get-image-id-from-relation.js.map +1 -1
  646. package/lib-es/hooks/use-get-images.js.map +1 -1
  647. package/lib-es/hooks/use-get-single-entity-schema.js.map +1 -1
  648. package/lib-es/hooks/use-page-builder.js.map +1 -1
  649. package/lib-es/index.js.map +1 -1
  650. package/lib-es/utils/component-map.js.map +1 -1
  651. package/lib-es/utils/get-class-modifiers.js.map +1 -1
  652. package/lib-es/utils/get-image-data.js.map +1 -1
  653. package/lib-es/utils/get-props-to-display-modifiers.js.map +1 -1
  654. package/lib-es/utils/index.js.map +1 -1
  655. package/lib-es/utils/is-object-empty.js.map +1 -1
  656. package/package.json +3 -3
  657. package/src/application/query/index.js +4 -0
  658. package/src/components/Carousel/CarouselRender/CarouselRender.js +2 -2
  659. package/src/components/CarouselWrapper.js +2 -7
  660. package/src/components/SearchContent/index.js +78 -38
  661. package/src/components/SearchFilter/SearchFilter/SearchFilter.js +10 -3
  662. package/src/components/SearchFilter/constants.js +1 -1
  663. package/src/helpers/build-props-query.js +6 -3
  664. package/tests/helpers/mocks.js +4 -4
  665. package/tests/unit/src/components/Carousel/__snapshots__/Carousel.test.js.snap +2 -2
  666. package/tests/unit/src/components/SearchFilter/SearchFilter/SearchFilter.test.js +23 -1
  667. package/tests/unit/src/components/SearchFilter/SearchFilter/__snapshots__/SearchFilter.test.js.snap +4 -0
  668. package/tests/unit/src/helpers/build-props-query.test.js +43 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-filter-props.js"],"names":["getFilterRelationKeys","getFilterLocalKeys","relationName","relations","entityIdentifier","find","localField","getRelationEntity","filterName","filterEntityRelations","foreignKey","getFilterProps","filter","currentEntityRelations","properties","currentEntityProperties","dynamicProperties","currentEntityDynamicProperties","identifier","currentEntityId","filteryEntityId","split","relationProp","hasProperty","relationEntityName","filterNameEntity","propertyEntityName","entityName","isEntityItself","shouldCheckRelationNames","relationForeignKeys","shouldIgnoreFilter","length"],"mappings":"AAAA,OAAOA,qBAAP,MAAkC,4BAAlC;;AAEA,MAAMC,kBAAkB,GAAG,CAACC,YAAD,EAAeC,SAAf,KAA6B;AACtD,QAAM;AAAEC,IAAAA;AAAF,MACJD,SAAS,CAACE,IAAV,CAAe,CAAC;AAAEC,IAAAA;AAAF,GAAD,KAAoBA,UAAU,KAAKJ,YAAlD,KAAmE,EADrE;AAEA,SAAOE,gBAAP;AACD,CAJD;;AAMA,MAAMG,iBAAiB,GAAG,CAACC,UAAD,EAAaC,qBAAb,KAAuC;AAC/D,QAAM;AAAEL,IAAAA;AAAF,MACJK,qBAAqB,CAACJ,IAAtB,CAA2B,CAAC;AAAEK,IAAAA;AAAF,GAAD,KAAoBA,UAAU,KAAKF,UAA9D,KAA6E,EAD/E;AAEA,SAAOJ,gBAAP;AACD,CAJD;;AAMA,MAAMO,cAAc,GAAG,CACrBC,MADqB,EAErB;AACET,EAAAA,SAAS,EAAEU,sBAAsB,GAAG,EADtC;AAEEC,EAAAA,UAAU,EAAEC,uBAAuB,GAAG,EAFxC;AAGEC,EAAAA,iBAAiB,EAAEC,8BAA8B,GAAG,EAHtD;AAIEC,EAAAA,UAAU,EAAEC;AAJd,IAKI,EAPiB,EAQrB;AAAEhB,EAAAA,SAAS,EAAEM,qBAAqB,GAAG,EAArC;AAAyCS,EAAAA,UAAU,EAAEE;AAArD,IAAyE,EARpD,KASlB;AACH,QAAM,CAACZ,UAAD,IAAeI,MAAM,CAACS,KAAP,CAAa,GAAb,CAArB;AACA,QAAM,CAACnB,YAAD,EAAeoB,YAAf,IAA+Bd,UAAU,CAACa,KAAX,CAAiB,GAAjB,CAArC;AACA,QAAME,WAAW,GAAG,CAAC,EACnBR,uBAAuB,CAACP,UAAD,CAAvB,IAAuCS,8BAA8B,CAACT,UAAD,CADlD,CAArB;AAGA,QAAMgB,kBAAkB,GAAGF,YAAY,GACnCrB,kBAAkB,CAACC,YAAD,EAAeW,sBAAf,CADiB,GAEnC,IAFJ;AAGA,QAAMY,gBAAgB,GAAGlB,iBAAiB,CAACC,UAAD,EAAaC,qBAAb,CAA1C;AAEA,QAAMiB,kBAAkB,GAAGF,kBAAkB,IAAIC,gBAAjD;AACA,QAAME,UAAU,GAAGF,gBAAgB,GAAGL,eAAH,GAAqBI,kBAAxD;AACA,QAAMI,cAAc,GAAGT,eAAe,KAAKO,kBAA3C;AACA,QAAMG,wBAAwB,GAAG,CAACN,WAAD,IAAgB,CAACC,kBAAlD;AACA,QAAMM,mBAAmB,GAAGD,wBAAwB,GAChD7B,qBAAqB,CAAC0B,kBAAD,EAAqBb,sBAArB,EAA6CE,uBAA7C,CAD2B,GAEhD,EAFJ;AAGA,QAAMgB,kBAAkB,GAAGF,wBAAwB,IAAI,CAACC,mBAAmB,CAACE,MAA5E;AAEA,SAAO;AACLxB,IAAAA,UADK;AAELmB,IAAAA,UAFK;AAGLzB,IAAAA,YAHK;AAILoB,IAAAA,YAJK;AAKLC,IAAAA,WALK;AAMLC,IAAAA,kBANK;AAOLI,IAAAA,cAPK;AAQLE,IAAAA,mBARK;AASLC,IAAAA;AATK,GAAP;AAWD,CAxCD;;AA0CA,eAAepB,cAAf","sourcesContent":["import getFilterRelationKeys from './get-filter-relation-keys';\n\nconst getFilterLocalKeys = (relationName, relations) => {\n const { entityIdentifier } =\n relations.find(({ localField }) => localField === relationName) || {};\n return entityIdentifier;\n};\n\nconst getRelationEntity = (filterName, filterEntityRelations) => {\n const { entityIdentifier } =\n filterEntityRelations.find(({ foreignKey }) => foreignKey === filterName) || {};\n return entityIdentifier;\n};\n\nconst getFilterProps = (\n filter,\n {\n relations: currentEntityRelations = [],\n properties: currentEntityProperties = {},\n dynamicProperties: currentEntityDynamicProperties = {},\n identifier: currentEntityId\n } = {},\n { relations: filterEntityRelations = [], identifier: filteryEntityId } = {}\n) => {\n const [filterName] = filter.split('/');\n const [relationName, relationProp] = filterName.split('.');\n const hasProperty = !!(\n currentEntityProperties[filterName] || currentEntityDynamicProperties[filterName]\n );\n const relationEntityName = relationProp\n ? getFilterLocalKeys(relationName, currentEntityRelations)\n : null;\n const filterNameEntity = getRelationEntity(filterName, filterEntityRelations);\n\n const propertyEntityName = relationEntityName || filterNameEntity;\n const entityName = filterNameEntity ? filteryEntityId : relationEntityName;\n const isEntityItself = currentEntityId === propertyEntityName;\n const shouldCheckRelationNames = !hasProperty && !relationEntityName;\n const relationForeignKeys = shouldCheckRelationNames\n ? getFilterRelationKeys(propertyEntityName, currentEntityRelations, currentEntityProperties)\n : [];\n const shouldIgnoreFilter = shouldCheckRelationNames && !relationForeignKeys.length;\n\n return {\n filterName,\n entityName,\n relationName,\n relationProp,\n hasProperty,\n relationEntityName,\n isEntityItself,\n relationForeignKeys,\n shouldIgnoreFilter\n };\n};\n\nexport default getFilterProps;\n"],"file":"get-filter-props.js"}
1
+ {"version":3,"file":"get-filter-props.js","names":["getFilterRelationKeys","getFilterLocalKeys","relationName","relations","entityIdentifier","find","localField","getRelationEntity","filterName","filterEntityRelations","foreignKey","getFilterProps","filter","currentEntityRelations","properties","currentEntityProperties","dynamicProperties","currentEntityDynamicProperties","identifier","currentEntityId","filteryEntityId","split","relationProp","hasProperty","relationEntityName","filterNameEntity","propertyEntityName","entityName","isEntityItself","shouldCheckRelationNames","relationForeignKeys","shouldIgnoreFilter","length"],"sources":["../../src/helpers/get-filter-props.js"],"sourcesContent":["import getFilterRelationKeys from './get-filter-relation-keys';\n\nconst getFilterLocalKeys = (relationName, relations) => {\n const { entityIdentifier } =\n relations.find(({ localField }) => localField === relationName) || {};\n return entityIdentifier;\n};\n\nconst getRelationEntity = (filterName, filterEntityRelations) => {\n const { entityIdentifier } =\n filterEntityRelations.find(({ foreignKey }) => foreignKey === filterName) || {};\n return entityIdentifier;\n};\n\nconst getFilterProps = (\n filter,\n {\n relations: currentEntityRelations = [],\n properties: currentEntityProperties = {},\n dynamicProperties: currentEntityDynamicProperties = {},\n identifier: currentEntityId\n } = {},\n { relations: filterEntityRelations = [], identifier: filteryEntityId } = {}\n) => {\n const [filterName] = filter.split('/');\n const [relationName, relationProp] = filterName.split('.');\n const hasProperty = !!(\n currentEntityProperties[filterName] || currentEntityDynamicProperties[filterName]\n );\n const relationEntityName = relationProp\n ? getFilterLocalKeys(relationName, currentEntityRelations)\n : null;\n const filterNameEntity = getRelationEntity(filterName, filterEntityRelations);\n\n const propertyEntityName = relationEntityName || filterNameEntity;\n const entityName = filterNameEntity ? filteryEntityId : relationEntityName;\n const isEntityItself = currentEntityId === propertyEntityName;\n const shouldCheckRelationNames = !hasProperty && !relationEntityName;\n const relationForeignKeys = shouldCheckRelationNames\n ? getFilterRelationKeys(propertyEntityName, currentEntityRelations, currentEntityProperties)\n : [];\n const shouldIgnoreFilter = shouldCheckRelationNames && !relationForeignKeys.length;\n\n return {\n filterName,\n entityName,\n relationName,\n relationProp,\n hasProperty,\n relationEntityName,\n isEntityItself,\n relationForeignKeys,\n shouldIgnoreFilter\n };\n};\n\nexport default getFilterProps;\n"],"mappings":"AAAA,OAAOA,qBAAP,MAAkC,4BAAlC;;AAEA,MAAMC,kBAAkB,GAAG,CAACC,YAAD,EAAeC,SAAf,KAA6B;EACtD,MAAM;IAAEC;EAAF,IACJD,SAAS,CAACE,IAAV,CAAe,CAAC;IAAEC;EAAF,CAAD,KAAoBA,UAAU,KAAKJ,YAAlD,KAAmE,EADrE;EAEA,OAAOE,gBAAP;AACD,CAJD;;AAMA,MAAMG,iBAAiB,GAAG,CAACC,UAAD,EAAaC,qBAAb,KAAuC;EAC/D,MAAM;IAAEL;EAAF,IACJK,qBAAqB,CAACJ,IAAtB,CAA2B,CAAC;IAAEK;EAAF,CAAD,KAAoBA,UAAU,KAAKF,UAA9D,KAA6E,EAD/E;EAEA,OAAOJ,gBAAP;AACD,CAJD;;AAMA,MAAMO,cAAc,GAAG,CACrBC,MADqB,EAErB;EACET,SAAS,EAAEU,sBAAsB,GAAG,EADtC;EAEEC,UAAU,EAAEC,uBAAuB,GAAG,EAFxC;EAGEC,iBAAiB,EAAEC,8BAA8B,GAAG,EAHtD;EAIEC,UAAU,EAAEC;AAJd,IAKI,EAPiB,EAQrB;EAAEhB,SAAS,EAAEM,qBAAqB,GAAG,EAArC;EAAyCS,UAAU,EAAEE;AAArD,IAAyE,EARpD,KASlB;EACH,MAAM,CAACZ,UAAD,IAAeI,MAAM,CAACS,KAAP,CAAa,GAAb,CAArB;EACA,MAAM,CAACnB,YAAD,EAAeoB,YAAf,IAA+Bd,UAAU,CAACa,KAAX,CAAiB,GAAjB,CAArC;EACA,MAAME,WAAW,GAAG,CAAC,EACnBR,uBAAuB,CAACP,UAAD,CAAvB,IAAuCS,8BAA8B,CAACT,UAAD,CADlD,CAArB;EAGA,MAAMgB,kBAAkB,GAAGF,YAAY,GACnCrB,kBAAkB,CAACC,YAAD,EAAeW,sBAAf,CADiB,GAEnC,IAFJ;EAGA,MAAMY,gBAAgB,GAAGlB,iBAAiB,CAACC,UAAD,EAAaC,qBAAb,CAA1C;EAEA,MAAMiB,kBAAkB,GAAGF,kBAAkB,IAAIC,gBAAjD;EACA,MAAME,UAAU,GAAGF,gBAAgB,GAAGL,eAAH,GAAqBI,kBAAxD;EACA,MAAMI,cAAc,GAAGT,eAAe,KAAKO,kBAA3C;EACA,MAAMG,wBAAwB,GAAG,CAACN,WAAD,IAAgB,CAACC,kBAAlD;EACA,MAAMM,mBAAmB,GAAGD,wBAAwB,GAChD7B,qBAAqB,CAAC0B,kBAAD,EAAqBb,sBAArB,EAA6CE,uBAA7C,CAD2B,GAEhD,EAFJ;EAGA,MAAMgB,kBAAkB,GAAGF,wBAAwB,IAAI,CAACC,mBAAmB,CAACE,MAA5E;EAEA,OAAO;IACLxB,UADK;IAELmB,UAFK;IAGLzB,YAHK;IAILoB,YAJK;IAKLC,WALK;IAMLC,kBANK;IAOLI,cAPK;IAQLE,mBARK;IASLC;EATK,CAAP;AAWD,CAxCD;;AA0CA,eAAepB,cAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-filter-relation-keys.js"],"names":["getFilterRelationKeys","entityName","currentEntityRelations","currentEntityProperties","filter","entityIdentifier","foreignKey","map"],"mappings":"AAAA,MAAMA,qBAAqB,GAAG,CAACC,UAAD,EAAaC,sBAAb,EAAqCC,uBAArC,KAC5BD,sBAAsB,CACnBE,MADH,CAEI,CAAC;AAAEC,EAAAA,gBAAF;AAAoBC,EAAAA;AAApB,CAAD,KACED,gBAAgB,KAAKJ,UAArB,IAAmCE,uBAAuB,CAACG,UAAD,CAHhE,EAKGC,GALH,CAKO,CAAC;AAAED,EAAAA;AAAF,CAAD,KAAoBA,UAL3B,CADF;;AAQA,eAAeN,qBAAf","sourcesContent":["const getFilterRelationKeys = (entityName, currentEntityRelations, currentEntityProperties) =>\n currentEntityRelations\n .filter(\n ({ entityIdentifier, foreignKey }) =>\n entityIdentifier === entityName && currentEntityProperties[foreignKey]\n )\n .map(({ foreignKey }) => foreignKey);\n\nexport default getFilterRelationKeys;\n"],"file":"get-filter-relation-keys.js"}
1
+ {"version":3,"file":"get-filter-relation-keys.js","names":["getFilterRelationKeys","entityName","currentEntityRelations","currentEntityProperties","filter","entityIdentifier","foreignKey","map"],"sources":["../../src/helpers/get-filter-relation-keys.js"],"sourcesContent":["const getFilterRelationKeys = (entityName, currentEntityRelations, currentEntityProperties) =>\n currentEntityRelations\n .filter(\n ({ entityIdentifier, foreignKey }) =>\n entityIdentifier === entityName && currentEntityProperties[foreignKey]\n )\n .map(({ foreignKey }) => foreignKey);\n\nexport default getFilterRelationKeys;\n"],"mappings":"AAAA,MAAMA,qBAAqB,GAAG,CAACC,UAAD,EAAaC,sBAAb,EAAqCC,uBAArC,KAC5BD,sBAAsB,CACnBE,MADH,CAEI,CAAC;EAAEC,gBAAF;EAAoBC;AAApB,CAAD,KACED,gBAAgB,KAAKJ,UAArB,IAAmCE,uBAAuB,CAACG,UAAD,CAHhE,EAKGC,GALH,CAKO,CAAC;EAAED;AAAF,CAAD,KAAoBA,UAL3B,CADF;;AAQA,eAAeN,qBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-generic-props.js"],"names":["getDictionaryMatch","propsSchema","getGenericProps","props","itemsPerRow","gridModifier"],"mappings":";;;;;;AAAA,OAAOA,kBAAP,MAA+B,wBAA/B;AACA,SAASC,WAAT,QAA4B,sBAA5B;;AAEA,SAASC,eAAT,CAAyBC,KAAK,GAAGF,WAAjC,EAA8C;AAC5C,QAAM;AAAEG,IAAAA;AAAF,MAAkBD,KAAxB;AACA,QAAME,YAAY,GAAGL,kBAAkB,CAACI,WAAD,CAAvC;AAEA;AAASC,IAAAA;AAAT,KAA0BF,KAA1B;AACD;;AAED,eAAeD,eAAf","sourcesContent":["import getDictionaryMatch from './get-dictionary-match';\nimport { propsSchema } from './entities/constants';\n\nfunction getGenericProps(props = propsSchema) {\n const { itemsPerRow } = props;\n const gridModifier = getDictionaryMatch(itemsPerRow);\n\n return { gridModifier, ...props };\n}\n\nexport default getGenericProps;\n"],"file":"get-generic-props.js"}
1
+ {"version":3,"file":"get-generic-props.js","names":["getDictionaryMatch","propsSchema","getGenericProps","props","itemsPerRow","gridModifier"],"sources":["../../src/helpers/get-generic-props.js"],"sourcesContent":["import getDictionaryMatch from './get-dictionary-match';\nimport { propsSchema } from './entities/constants';\n\nfunction getGenericProps(props = propsSchema) {\n const { itemsPerRow } = props;\n const gridModifier = getDictionaryMatch(itemsPerRow);\n\n return { gridModifier, ...props };\n}\n\nexport default getGenericProps;\n"],"mappings":";;;;;;AAAA,OAAOA,kBAAP,MAA+B,wBAA/B;AACA,SAASC,WAAT,QAA4B,sBAA5B;;AAEA,SAASC,eAAT,CAAyBC,KAAK,GAAGF,WAAjC,EAA8C;EAC5C,MAAM;IAAEG;EAAF,IAAkBD,KAAxB;EACA,MAAME,YAAY,GAAGL,kBAAkB,CAACI,WAAD,CAAvC;EAEA;IAASC;EAAT,GAA0BF,KAA1B;AACD;;AAED,eAAeD,eAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-generic-render-variables.js"],"names":["getSortbyFieldName","DEFAULT_LIMIT","DEFAULT_OFFSET","buildSortValues","sortFilters","relations","stringProps","length","sort","sortValues","map","propsToDisplay","sortFieldName","toLowerCase","filter","Boolean","join","getCorrectSort","filterProps","isTextSearchApplied","sortby","sortProperties","getGenericRenderVariables","rawQuery","isTextSearchFilterApplied","useRandomSort","limit","offset","limitToUse","Number","offsetToUse","rawQueryStringified","JSON","stringify","query","function_score","random_score","boost_mode"],"mappings":";;;;;;AAAA,OAAOA,kBAAP,MAA+B,0BAA/B;AACA,SAASC,aAAT,EAAwBC,cAAxB,QAA8C,cAA9C;;AAEA,MAAMC,eAAe,GAAG,CAACC,WAAD,EAAcC,SAAd,EAAyBC,WAAzB,KAAyC;AAC/D,MAAI,CAACF,WAAD,IAAgB,CAACA,WAAW,CAACG,MAAjC,EAAyC,OAAO;AAAEC,IAAAA,IAAI,EAAE;AAAR,GAAP;AAEzC,QAAMC,UAAU,GAAGL,WAAW,CAC3BM,GADgB,CACZ,CAAC;AAAEF,IAAAA,IAAF;AAAQG,IAAAA;AAAR,GAAD,KAA8B;AACjC,QAAI,CAACH,IAAL,EAAW,OAAO,IAAP;AAEX,UAAMI,aAAa,GAAGZ,kBAAkB,CAACK,SAAD,EAAYM,cAAZ,EAA4BL,WAA5B,CAAxC;AACA,WAAOM,aAAa,GAAI,GAAEA,aAAc,IAAGJ,IAAI,CAACK,WAAL,EAAmB,EAA1C,GAA8C,IAAlE;AACD,GANgB,EAOhBC,MAPgB,CAOTC,OAPS,EAQhBC,IARgB,CAQX,GARW,CAAnB;AAUA,SAAO;AAAER,IAAAA,IAAI,EAAEC;AAAR,GAAP;AACD,CAdD;;AAeA,MAAMQ,cAAc,GAAG,CAACZ,SAAD,EAAYa,WAAZ,EAAyBZ,WAAzB,EAAsCa,mBAAtC,KAA8D;AACnF,MAAIA,mBAAJ,EAAyB;AACvB,WAAO,EAAP;AACD;;AACD,QAAM;AAAEX,IAAAA,IAAF;AAAQY,IAAAA,MAAR;AAAgBC,IAAAA,cAAc,GAAG;AAAjC,MAAwCH,WAA9C;AAEA,SAAOf,eAAe,CACpB,CAAC;AAAEK,IAAAA,IAAF;AAAQG,IAAAA,cAAc,EAAES;AAAxB,GAAD,EAAmC,GAAGC,cAAtC,CADoB,EAEpBhB,SAFoB,EAGpBC,WAHoB,CAAtB;AAKD,CAXD;;AAaA,MAAMgB,yBAAyB,GAAG,CAChCjB,SADgC,EAEhCa,WAAW,GAAG,EAFkB,EAGhCZ,WAAW,GAAG,EAHkB,EAIhCiB,QAAQ,GAAG,EAJqB,EAKhCC,yBAAyB,GAAG,KALI,EAMhCC,aAAa,GAAG,KANgB,KAO7B;AACH,QAAM;AAAEC,IAAAA,KAAK,GAAGzB,aAAV;AAAyB0B,IAAAA;AAAzB,MAAoCT,WAA1C;AACA,QAAMU,UAAU,GAAGC,MAAM,CAACH,KAAK,IAAIzB,aAAV,CAAzB;AACA,QAAM6B,WAAW,GAAGD,MAAM,CAACF,MAAM,IAAIzB,cAAX,CAA1B;;AAEA,MAAIuB,aAAJ,EAAmB;AACjB,UAAMM,mBAAmB,GAAGC,IAAI,CAACC,SAAL,CAAe;AACzCC,MAAAA,KAAK,EAAE;AACLC,QAAAA,cAAc,EAAE;AACdD,UAAAA,KAAK,EAAEX,QAAQ,IAAIA,QAAQ,CAACW,KAArB,GAA6BX,QAAQ,CAACW,KAAtC,GAA8CX,QADvC;AAEda,UAAAA,YAAY,EAAE,EAFA;AAGdC,UAAAA,UAAU,EAAE;AAHE;AADX;AADkC,KAAf,CAA5B;AAUA,WAAO;AACLX,MAAAA,KAAK,EAAEE,UADF;AAELD,MAAAA,MAAM,EAAEG,WAFH;AAGLC,MAAAA;AAHK,KAAP;AAKD;;AAED,QAAMvB,IAAI,GAAGS,cAAc,CAACZ,SAAD,EAAYa,WAAZ,EAAyBZ,WAAzB,EAAsCkB,yBAAtC,CAA3B;AAEA;AACEE,IAAAA,KAAK,EAAEE,UADT;AAEED,IAAAA,MAAM,EAAEG;AAFV,KAGKtB,IAHL;AAIEuB,IAAAA,mBAAmB,EAAEC,IAAI,CAACC,SAAL,CAAeV,QAAf;AAJvB;AAMD,CAtCD;;AAwCA,eAAeD,yBAAf","sourcesContent":["import getSortbyFieldName from './get-sort-by-field-name';\nimport { DEFAULT_LIMIT, DEFAULT_OFFSET } from '../constants';\n\nconst buildSortValues = (sortFilters, relations, stringProps) => {\n if (!sortFilters || !sortFilters.length) return { sort: [] };\n\n const sortValues = sortFilters\n .map(({ sort, propsToDisplay }) => {\n if (!sort) return null;\n\n const sortFieldName = getSortbyFieldName(relations, propsToDisplay, stringProps);\n return sortFieldName ? `${sortFieldName}:${sort.toLowerCase()}` : null;\n })\n .filter(Boolean)\n .join(',');\n\n return { sort: sortValues };\n};\nconst getCorrectSort = (relations, filterProps, stringProps, isTextSearchApplied) => {\n if (isTextSearchApplied) {\n return {};\n }\n const { sort, sortby, sortProperties = [] } = filterProps;\n\n return buildSortValues(\n [{ sort, propsToDisplay: sortby }, ...sortProperties],\n relations,\n stringProps\n );\n};\n\nconst getGenericRenderVariables = (\n relations,\n filterProps = {},\n stringProps = [],\n rawQuery = {},\n isTextSearchFilterApplied = false,\n useRandomSort = false\n) => {\n const { limit = DEFAULT_LIMIT, offset } = filterProps;\n const limitToUse = Number(limit || DEFAULT_LIMIT);\n const offsetToUse = Number(offset || DEFAULT_OFFSET);\n\n if (useRandomSort) {\n const rawQueryStringified = JSON.stringify({\n query: {\n function_score: {\n query: rawQuery && rawQuery.query ? rawQuery.query : rawQuery,\n random_score: {},\n boost_mode: 'replace'\n }\n }\n });\n\n return {\n limit: limitToUse,\n offset: offsetToUse,\n rawQueryStringified\n };\n }\n\n const sort = getCorrectSort(relations, filterProps, stringProps, isTextSearchFilterApplied);\n\n return {\n limit: limitToUse,\n offset: offsetToUse,\n ...sort,\n rawQueryStringified: JSON.stringify(rawQuery)\n };\n};\n\nexport default getGenericRenderVariables;\n"],"file":"get-generic-render-variables.js"}
1
+ {"version":3,"file":"get-generic-render-variables.js","names":["getSortbyFieldName","DEFAULT_LIMIT","DEFAULT_OFFSET","buildSortValues","sortFilters","relations","stringProps","length","sort","sortValues","map","propsToDisplay","sortFieldName","toLowerCase","filter","Boolean","join","getCorrectSort","filterProps","isTextSearchApplied","sortby","sortProperties","getGenericRenderVariables","rawQuery","isTextSearchFilterApplied","useRandomSort","limit","offset","limitToUse","Number","offsetToUse","rawQueryStringified","JSON","stringify","query","function_score","random_score","boost_mode"],"sources":["../../src/helpers/get-generic-render-variables.js"],"sourcesContent":["import getSortbyFieldName from './get-sort-by-field-name';\nimport { DEFAULT_LIMIT, DEFAULT_OFFSET } from '../constants';\n\nconst buildSortValues = (sortFilters, relations, stringProps) => {\n if (!sortFilters || !sortFilters.length) return { sort: [] };\n\n const sortValues = sortFilters\n .map(({ sort, propsToDisplay }) => {\n if (!sort) return null;\n\n const sortFieldName = getSortbyFieldName(relations, propsToDisplay, stringProps);\n return sortFieldName ? `${sortFieldName}:${sort.toLowerCase()}` : null;\n })\n .filter(Boolean)\n .join(',');\n\n return { sort: sortValues };\n};\nconst getCorrectSort = (relations, filterProps, stringProps, isTextSearchApplied) => {\n if (isTextSearchApplied) {\n return {};\n }\n const { sort, sortby, sortProperties = [] } = filterProps;\n\n return buildSortValues(\n [{ sort, propsToDisplay: sortby }, ...sortProperties],\n relations,\n stringProps\n );\n};\n\nconst getGenericRenderVariables = (\n relations,\n filterProps = {},\n stringProps = [],\n rawQuery = {},\n isTextSearchFilterApplied = false,\n useRandomSort = false\n) => {\n const { limit = DEFAULT_LIMIT, offset } = filterProps;\n const limitToUse = Number(limit || DEFAULT_LIMIT);\n const offsetToUse = Number(offset || DEFAULT_OFFSET);\n\n if (useRandomSort) {\n const rawQueryStringified = JSON.stringify({\n query: {\n function_score: {\n query: rawQuery && rawQuery.query ? rawQuery.query : rawQuery,\n random_score: {},\n boost_mode: 'replace'\n }\n }\n });\n\n return {\n limit: limitToUse,\n offset: offsetToUse,\n rawQueryStringified\n };\n }\n\n const sort = getCorrectSort(relations, filterProps, stringProps, isTextSearchFilterApplied);\n\n return {\n limit: limitToUse,\n offset: offsetToUse,\n ...sort,\n rawQueryStringified: JSON.stringify(rawQuery)\n };\n};\n\nexport default getGenericRenderVariables;\n"],"mappings":";;;;;;AAAA,OAAOA,kBAAP,MAA+B,0BAA/B;AACA,SAASC,aAAT,EAAwBC,cAAxB,QAA8C,cAA9C;;AAEA,MAAMC,eAAe,GAAG,CAACC,WAAD,EAAcC,SAAd,EAAyBC,WAAzB,KAAyC;EAC/D,IAAI,CAACF,WAAD,IAAgB,CAACA,WAAW,CAACG,MAAjC,EAAyC,OAAO;IAAEC,IAAI,EAAE;EAAR,CAAP;EAEzC,MAAMC,UAAU,GAAGL,WAAW,CAC3BM,GADgB,CACZ,CAAC;IAAEF,IAAF;IAAQG;EAAR,CAAD,KAA8B;IACjC,IAAI,CAACH,IAAL,EAAW,OAAO,IAAP;IAEX,MAAMI,aAAa,GAAGZ,kBAAkB,CAACK,SAAD,EAAYM,cAAZ,EAA4BL,WAA5B,CAAxC;IACA,OAAOM,aAAa,GAAI,GAAEA,aAAc,IAAGJ,IAAI,CAACK,WAAL,EAAmB,EAA1C,GAA8C,IAAlE;EACD,CANgB,EAOhBC,MAPgB,CAOTC,OAPS,EAQhBC,IARgB,CAQX,GARW,CAAnB;EAUA,OAAO;IAAER,IAAI,EAAEC;EAAR,CAAP;AACD,CAdD;;AAeA,MAAMQ,cAAc,GAAG,CAACZ,SAAD,EAAYa,WAAZ,EAAyBZ,WAAzB,EAAsCa,mBAAtC,KAA8D;EACnF,IAAIA,mBAAJ,EAAyB;IACvB,OAAO,EAAP;EACD;;EACD,MAAM;IAAEX,IAAF;IAAQY,MAAR;IAAgBC,cAAc,GAAG;EAAjC,IAAwCH,WAA9C;EAEA,OAAOf,eAAe,CACpB,CAAC;IAAEK,IAAF;IAAQG,cAAc,EAAES;EAAxB,CAAD,EAAmC,GAAGC,cAAtC,CADoB,EAEpBhB,SAFoB,EAGpBC,WAHoB,CAAtB;AAKD,CAXD;;AAaA,MAAMgB,yBAAyB,GAAG,CAChCjB,SADgC,EAEhCa,WAAW,GAAG,EAFkB,EAGhCZ,WAAW,GAAG,EAHkB,EAIhCiB,QAAQ,GAAG,EAJqB,EAKhCC,yBAAyB,GAAG,KALI,EAMhCC,aAAa,GAAG,KANgB,KAO7B;EACH,MAAM;IAAEC,KAAK,GAAGzB,aAAV;IAAyB0B;EAAzB,IAAoCT,WAA1C;EACA,MAAMU,UAAU,GAAGC,MAAM,CAACH,KAAK,IAAIzB,aAAV,CAAzB;EACA,MAAM6B,WAAW,GAAGD,MAAM,CAACF,MAAM,IAAIzB,cAAX,CAA1B;;EAEA,IAAIuB,aAAJ,EAAmB;IACjB,MAAMM,mBAAmB,GAAGC,IAAI,CAACC,SAAL,CAAe;MACzCC,KAAK,EAAE;QACLC,cAAc,EAAE;UACdD,KAAK,EAAEX,QAAQ,IAAIA,QAAQ,CAACW,KAArB,GAA6BX,QAAQ,CAACW,KAAtC,GAA8CX,QADvC;UAEda,YAAY,EAAE,EAFA;UAGdC,UAAU,EAAE;QAHE;MADX;IADkC,CAAf,CAA5B;IAUA,OAAO;MACLX,KAAK,EAAEE,UADF;MAELD,MAAM,EAAEG,WAFH;MAGLC;IAHK,CAAP;EAKD;;EAED,MAAMvB,IAAI,GAAGS,cAAc,CAACZ,SAAD,EAAYa,WAAZ,EAAyBZ,WAAzB,EAAsCkB,yBAAtC,CAA3B;EAEA;IACEE,KAAK,EAAEE,UADT;IAEED,MAAM,EAAEG;EAFV,GAGKtB,IAHL;IAIEuB,mBAAmB,EAAEC,IAAI,CAACC,SAAL,CAAeV,QAAf;EAJvB;AAMD,CAtCD;;AAwCA,eAAeD,yBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-image-ids.js"],"names":["isPlainObject","getIdsFromArray","relationImageData","relationProp","imageId","length","map","image","Object","keys","filter","Boolean","getImageIds","imageRelation","relationData","imageIdArray","entityData","imageData","relationName","split","Array","isArray"],"mappings":"AAAA,OAAOA,aAAP,MAA0B,sBAA1B;;AAEA,MAAMC,eAAe,GAAG,CAACC,iBAAD,EAAoBC,YAApB,EAAkCC,OAAlC,KAA8C;AACpE,MAAI,CAACF,iBAAiB,CAACG,MAAvB,EAA+B,OAAO,CAACD,OAAD,CAAP;AAC/B,SAAOF,iBAAiB,CACrBI,GADI,CACAC,KAAK,IAAI;AACZ,QAAI,CAACC,MAAM,CAACC,IAAP,CAAYF,KAAZ,EAAmBF,MAAxB,EAAgC,OAAO,EAAP;AAChC,WAAOE,KAAK,CAACJ,YAAD,CAAZ;AACD,GAJI,EAKJO,MALI,CAKGC,OALH,CAAP;AAMD,CARD;;AAUA,MAAMC,WAAW,GAAG,CAACC,aAAD,EAAgBC,YAAhB,EAA8BV,OAA9B,KAA0C;AAC5D,QAAMW,YAAY,GAAGX,OAAO,GAAG,CAACA,OAAD,CAAH,GAAe,EAA3C;;AACA,MAAIU,YAAY,IAAIA,YAAY,CAACE,UAAjC,EAA6C;AAC3C,UAAM,CAACC,SAAD,IAAcJ,aAApB;AACA,UAAM,CAACK,YAAD,EAAef,YAAf,IAA+Bc,SAAS,CAACE,KAAV,CAAgB,GAAhB,CAArC;AACA,UAAMjB,iBAAiB,GAAGY,YAAY,CAACE,UAAb,CAAwBE,YAAxB,CAA1B;AAEA,QAAI,CAAChB,iBAAL,EAAwB,OAAOa,YAAP;AAExB,QAAIK,KAAK,CAACC,OAAN,CAAcnB,iBAAd,CAAJ,EACE,OAAOD,eAAe,CAACC,iBAAD,EAAoBC,YAApB,EAAkCC,OAAlC,CAAtB;;AAEF,QAAIJ,aAAa,CAACE,iBAAD,CAAb,IAAoCM,MAAM,CAACC,IAAP,CAAYP,iBAAZ,EAA+BG,MAAvE,EAA+E;AAC7E,aAAOe,KAAK,CAACC,OAAN,CAAcnB,iBAAiB,CAACC,YAAD,CAA/B,IACHD,iBAAiB,CAACC,YAAD,CADd,GAEH,CAACD,iBAAiB,CAACC,YAAD,CAAlB,CAFJ;AAGD;AACF;;AAED,SAAOY,YAAP;AACD,CApBD;;AAsBA,eAAeH,WAAf","sourcesContent":["import isPlainObject from 'lodash.isplainobject';\n\nconst getIdsFromArray = (relationImageData, relationProp, imageId) => {\n if (!relationImageData.length) return [imageId];\n return relationImageData\n .map(image => {\n if (!Object.keys(image).length) return '';\n return image[relationProp];\n })\n .filter(Boolean);\n};\n\nconst getImageIds = (imageRelation, relationData, imageId) => {\n const imageIdArray = imageId ? [imageId] : [];\n if (relationData && relationData.entityData) {\n const [imageData] = imageRelation;\n const [relationName, relationProp] = imageData.split('.');\n const relationImageData = relationData.entityData[relationName];\n\n if (!relationImageData) return imageIdArray;\n\n if (Array.isArray(relationImageData))\n return getIdsFromArray(relationImageData, relationProp, imageId);\n\n if (isPlainObject(relationImageData) && Object.keys(relationImageData).length) {\n return Array.isArray(relationImageData[relationProp])\n ? relationImageData[relationProp]\n : [relationImageData[relationProp]];\n }\n }\n\n return imageIdArray;\n};\n\nexport default getImageIds;\n"],"file":"get-image-ids.js"}
1
+ {"version":3,"file":"get-image-ids.js","names":["isPlainObject","getIdsFromArray","relationImageData","relationProp","imageId","length","map","image","Object","keys","filter","Boolean","getImageIds","imageRelation","relationData","imageIdArray","entityData","imageData","relationName","split","Array","isArray"],"sources":["../../src/helpers/get-image-ids.js"],"sourcesContent":["import isPlainObject from 'lodash.isplainobject';\n\nconst getIdsFromArray = (relationImageData, relationProp, imageId) => {\n if (!relationImageData.length) return [imageId];\n return relationImageData\n .map(image => {\n if (!Object.keys(image).length) return '';\n return image[relationProp];\n })\n .filter(Boolean);\n};\n\nconst getImageIds = (imageRelation, relationData, imageId) => {\n const imageIdArray = imageId ? [imageId] : [];\n if (relationData && relationData.entityData) {\n const [imageData] = imageRelation;\n const [relationName, relationProp] = imageData.split('.');\n const relationImageData = relationData.entityData[relationName];\n\n if (!relationImageData) return imageIdArray;\n\n if (Array.isArray(relationImageData))\n return getIdsFromArray(relationImageData, relationProp, imageId);\n\n if (isPlainObject(relationImageData) && Object.keys(relationImageData).length) {\n return Array.isArray(relationImageData[relationProp])\n ? relationImageData[relationProp]\n : [relationImageData[relationProp]];\n }\n }\n\n return imageIdArray;\n};\n\nexport default getImageIds;\n"],"mappings":"AAAA,OAAOA,aAAP,MAA0B,sBAA1B;;AAEA,MAAMC,eAAe,GAAG,CAACC,iBAAD,EAAoBC,YAApB,EAAkCC,OAAlC,KAA8C;EACpE,IAAI,CAACF,iBAAiB,CAACG,MAAvB,EAA+B,OAAO,CAACD,OAAD,CAAP;EAC/B,OAAOF,iBAAiB,CACrBI,GADI,CACAC,KAAK,IAAI;IACZ,IAAI,CAACC,MAAM,CAACC,IAAP,CAAYF,KAAZ,EAAmBF,MAAxB,EAAgC,OAAO,EAAP;IAChC,OAAOE,KAAK,CAACJ,YAAD,CAAZ;EACD,CAJI,EAKJO,MALI,CAKGC,OALH,CAAP;AAMD,CARD;;AAUA,MAAMC,WAAW,GAAG,CAACC,aAAD,EAAgBC,YAAhB,EAA8BV,OAA9B,KAA0C;EAC5D,MAAMW,YAAY,GAAGX,OAAO,GAAG,CAACA,OAAD,CAAH,GAAe,EAA3C;;EACA,IAAIU,YAAY,IAAIA,YAAY,CAACE,UAAjC,EAA6C;IAC3C,MAAM,CAACC,SAAD,IAAcJ,aAApB;IACA,MAAM,CAACK,YAAD,EAAef,YAAf,IAA+Bc,SAAS,CAACE,KAAV,CAAgB,GAAhB,CAArC;IACA,MAAMjB,iBAAiB,GAAGY,YAAY,CAACE,UAAb,CAAwBE,YAAxB,CAA1B;IAEA,IAAI,CAAChB,iBAAL,EAAwB,OAAOa,YAAP;IAExB,IAAIK,KAAK,CAACC,OAAN,CAAcnB,iBAAd,CAAJ,EACE,OAAOD,eAAe,CAACC,iBAAD,EAAoBC,YAApB,EAAkCC,OAAlC,CAAtB;;IAEF,IAAIJ,aAAa,CAACE,iBAAD,CAAb,IAAoCM,MAAM,CAACC,IAAP,CAAYP,iBAAZ,EAA+BG,MAAvE,EAA+E;MAC7E,OAAOe,KAAK,CAACC,OAAN,CAAcnB,iBAAiB,CAACC,YAAD,CAA/B,IACHD,iBAAiB,CAACC,YAAD,CADd,GAEH,CAACD,iBAAiB,CAACC,YAAD,CAAlB,CAFJ;IAGD;EACF;;EAED,OAAOY,YAAP;AACD,CApBD;;AAsBA,eAAeH,WAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-inherited-filters.js"],"names":["getInheritedFilters","filterBy","filterByProperty","length","reduce","acc","property","propName","split","filterByMatched","filter","filterId","includes","push"],"mappings":"AAAA,MAAMA,mBAAmB,GAAG,CAACC,QAAD,EAAWC,gBAAX,KAAgC;AAC1D,MAAI,CAACA,gBAAgB,CAACC,MAAtB,EAA8B,OAAO,EAAP;AAC9B,MAAI,CAACF,QAAQ,CAACE,MAAd,EAAsB,OAAOD,gBAAP;AAEtB,SAAOA,gBAAgB,CAACE,MAAjB,CAAwB,CAACC,GAAD,EAAMC,QAAN,KAAmB;AAChD,UAAM,CAACC,QAAD,IAAaD,QAAQ,CAACE,KAAT,CAAe,GAAf,CAAnB;AACA,UAAMC,eAAe,GAAGR,QAAQ,CAACS,MAAT,CAAgBC,QAAQ,IAAIA,QAAQ,CAACC,QAAT,CAAmB,GAAEL,QAAS,GAA9B,CAA5B,CAAxB;AAEA,QAAI,CAACE,eAAe,CAACN,MAArB,EAA6BE,GAAG,CAACQ,IAAJ,CAASP,QAAT;AAC7B,WAAOD,GAAP;AACD,GANM,EAMJ,EANI,CAAP;AAOD,CAXD;;AAaA,eAAeL,mBAAf","sourcesContent":["const getInheritedFilters = (filterBy, filterByProperty) => {\n if (!filterByProperty.length) return [];\n if (!filterBy.length) return filterByProperty;\n\n return filterByProperty.reduce((acc, property) => {\n const [propName] = property.split('/');\n const filterByMatched = filterBy.filter(filterId => filterId.includes(`${propName}/`));\n\n if (!filterByMatched.length) acc.push(property);\n return acc;\n }, []);\n};\n\nexport default getInheritedFilters;\n"],"file":"get-inherited-filters.js"}
1
+ {"version":3,"file":"get-inherited-filters.js","names":["getInheritedFilters","filterBy","filterByProperty","length","reduce","acc","property","propName","split","filterByMatched","filter","filterId","includes","push"],"sources":["../../src/helpers/get-inherited-filters.js"],"sourcesContent":["const getInheritedFilters = (filterBy, filterByProperty) => {\n if (!filterByProperty.length) return [];\n if (!filterBy.length) return filterByProperty;\n\n return filterByProperty.reduce((acc, property) => {\n const [propName] = property.split('/');\n const filterByMatched = filterBy.filter(filterId => filterId.includes(`${propName}/`));\n\n if (!filterByMatched.length) acc.push(property);\n return acc;\n }, []);\n};\n\nexport default getInheritedFilters;\n"],"mappings":"AAAA,MAAMA,mBAAmB,GAAG,CAACC,QAAD,EAAWC,gBAAX,KAAgC;EAC1D,IAAI,CAACA,gBAAgB,CAACC,MAAtB,EAA8B,OAAO,EAAP;EAC9B,IAAI,CAACF,QAAQ,CAACE,MAAd,EAAsB,OAAOD,gBAAP;EAEtB,OAAOA,gBAAgB,CAACE,MAAjB,CAAwB,CAACC,GAAD,EAAMC,QAAN,KAAmB;IAChD,MAAM,CAACC,QAAD,IAAaD,QAAQ,CAACE,KAAT,CAAe,GAAf,CAAnB;IACA,MAAMC,eAAe,GAAGR,QAAQ,CAACS,MAAT,CAAgBC,QAAQ,IAAIA,QAAQ,CAACC,QAAT,CAAmB,GAAEL,QAAS,GAA9B,CAA5B,CAAxB;IAEA,IAAI,CAACE,eAAe,CAACN,MAArB,EAA6BE,GAAG,CAACQ,IAAJ,CAASP,QAAT;IAC7B,OAAOD,GAAP;EACD,CANM,EAMJ,EANI,CAAP;AAOD,CAXD;;AAaA,eAAeL,mBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-items-to-display-ids.js"],"names":["getItemsToDisplayIds","itemsToDisplay","length","ids","reduce","acc","displayItems","concat","Set"],"mappings":"AAAA,SAASA,oBAAT,CAA8BC,cAA9B,EAA8C;AAC5C,MAAI,CAACA,cAAD,IAAmB,CAACA,cAAc,CAACC,MAAvC,EAA+C,OAAO,EAAP;AAC/C,QAAMC,GAAG,GAAGF,cAAc,CAACG,MAAf,CAAsB,CAACC,GAAD,EAAM;AAAEC,IAAAA;AAAF,GAAN,KAA2B;AAC3D,QAAI,CAACA,YAAD,IAAiB,CAACA,YAAY,CAACJ,MAAnC,EAA2C,OAAOG,GAAP;AAC3C,WAAOA,GAAG,CAACE,MAAJ,CAAWD,YAAX,CAAP;AACD,GAHW,EAGT,EAHS,CAAZ;AAIA,SAAO,CAAC,GAAG,IAAIE,GAAJ,CAAQ,CAAC,GAAGL,GAAJ,CAAR,CAAJ,CAAP;AACD;;AAED,eAAeH,oBAAf","sourcesContent":["function getItemsToDisplayIds(itemsToDisplay) {\n if (!itemsToDisplay || !itemsToDisplay.length) return [];\n const ids = itemsToDisplay.reduce((acc, { displayItems }) => {\n if (!displayItems || !displayItems.length) return acc;\n return acc.concat(displayItems);\n }, []);\n return [...new Set([...ids])];\n}\n\nexport default getItemsToDisplayIds;\n"],"file":"get-items-to-display-ids.js"}
1
+ {"version":3,"file":"get-items-to-display-ids.js","names":["getItemsToDisplayIds","itemsToDisplay","length","ids","reduce","acc","displayItems","concat","Set"],"sources":["../../src/helpers/get-items-to-display-ids.js"],"sourcesContent":["function getItemsToDisplayIds(itemsToDisplay) {\n if (!itemsToDisplay || !itemsToDisplay.length) return [];\n const ids = itemsToDisplay.reduce((acc, { displayItems }) => {\n if (!displayItems || !displayItems.length) return acc;\n return acc.concat(displayItems);\n }, []);\n return [...new Set([...ids])];\n}\n\nexport default getItemsToDisplayIds;\n"],"mappings":"AAAA,SAASA,oBAAT,CAA8BC,cAA9B,EAA8C;EAC5C,IAAI,CAACA,cAAD,IAAmB,CAACA,cAAc,CAACC,MAAvC,EAA+C,OAAO,EAAP;EAC/C,MAAMC,GAAG,GAAGF,cAAc,CAACG,MAAf,CAAsB,CAACC,GAAD,EAAM;IAAEC;EAAF,CAAN,KAA2B;IAC3D,IAAI,CAACA,YAAD,IAAiB,CAACA,YAAY,CAACJ,MAAnC,EAA2C,OAAOG,GAAP;IAC3C,OAAOA,GAAG,CAACE,MAAJ,CAAWD,YAAX,CAAP;EACD,CAHW,EAGT,EAHS,CAAZ;EAIA,OAAO,CAAC,GAAG,IAAIE,GAAJ,CAAQ,CAAC,GAAGL,GAAJ,CAAR,CAAJ,CAAP;AACD;;AAED,eAAeH,oBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-modifiers.js"],"names":["getModifiers","base","modifier","Array","isArray","modifiers","map","modi","validateModifier","unshift","uniqueModifiers","Set","join","withBase","isValidModifier"],"mappings":"AAAA,MAAMA,YAAY,GAAG,CAACC,IAAD,EAAOC,QAAP,KAAoB;AACvC,MAAIC,KAAK,CAACC,OAAN,CAAcF,QAAd,CAAJ,EAA6B;AAC3B,UAAMG,SAAS,GAAGH,QAAQ,CAACI,GAAT,CAAaC,IAAI,IAAIC,gBAAgB,CAACP,IAAD,EAAOM,IAAP,EAAa,KAAb,CAArC,CAAlB;AACAF,IAAAA,SAAS,CAACI,OAAV,CAAkBR,IAAlB;AACA,UAAMS,eAAe,GAAG,CAAC,GAAG,IAAIC,GAAJ,CAAQN,SAAR,CAAJ,CAAxB;AAEA,WAAOK,eAAe,CAACE,IAAhB,CAAqB,GAArB,CAAP;AACD;;AACD,SAAOJ,gBAAgB,CAACP,IAAD,EAAOC,QAAP,CAAvB;AACD,CATD;;AAWA,MAAMM,gBAAgB,GAAG,CAACP,IAAD,EAAOC,QAAP,EAAiBW,QAAQ,GAAG,IAA5B,KAAqC;AAC5D,QAAMC,eAAe,GAAGZ,QAAQ,IAAI,OAAOA,QAAP,KAAoB,QAAxD;AACA,MAAIY,eAAJ,EAAqB,OAAOD,QAAQ,GAAI,GAAEZ,IAAK,IAAGA,IAAK,KAAIC,QAAS,EAAhC,GAAqC,GAAED,IAAK,KAAIC,QAAS,EAAxE;AAErB,SAAOD,IAAP;AACD,CALD;;AAOA,eAAeD,YAAf","sourcesContent":["const getModifiers = (base, modifier) => {\n if (Array.isArray(modifier)) {\n const modifiers = modifier.map(modi => validateModifier(base, modi, false));\n modifiers.unshift(base);\n const uniqueModifiers = [...new Set(modifiers)];\n\n return uniqueModifiers.join(' ');\n }\n return validateModifier(base, modifier);\n};\n\nconst validateModifier = (base, modifier, withBase = true) => {\n const isValidModifier = modifier && typeof modifier === 'string';\n if (isValidModifier) return withBase ? `${base} ${base}--${modifier}` : `${base}--${modifier}`;\n\n return base;\n};\n\nexport default getModifiers;\n"],"file":"get-modifiers.js"}
1
+ {"version":3,"file":"get-modifiers.js","names":["getModifiers","base","modifier","Array","isArray","modifiers","map","modi","validateModifier","unshift","uniqueModifiers","Set","join","withBase","isValidModifier"],"sources":["../../src/helpers/get-modifiers.js"],"sourcesContent":["const getModifiers = (base, modifier) => {\n if (Array.isArray(modifier)) {\n const modifiers = modifier.map(modi => validateModifier(base, modi, false));\n modifiers.unshift(base);\n const uniqueModifiers = [...new Set(modifiers)];\n\n return uniqueModifiers.join(' ');\n }\n return validateModifier(base, modifier);\n};\n\nconst validateModifier = (base, modifier, withBase = true) => {\n const isValidModifier = modifier && typeof modifier === 'string';\n if (isValidModifier) return withBase ? `${base} ${base}--${modifier}` : `${base}--${modifier}`;\n\n return base;\n};\n\nexport default getModifiers;\n"],"mappings":"AAAA,MAAMA,YAAY,GAAG,CAACC,IAAD,EAAOC,QAAP,KAAoB;EACvC,IAAIC,KAAK,CAACC,OAAN,CAAcF,QAAd,CAAJ,EAA6B;IAC3B,MAAMG,SAAS,GAAGH,QAAQ,CAACI,GAAT,CAAaC,IAAI,IAAIC,gBAAgB,CAACP,IAAD,EAAOM,IAAP,EAAa,KAAb,CAArC,CAAlB;IACAF,SAAS,CAACI,OAAV,CAAkBR,IAAlB;IACA,MAAMS,eAAe,GAAG,CAAC,GAAG,IAAIC,GAAJ,CAAQN,SAAR,CAAJ,CAAxB;IAEA,OAAOK,eAAe,CAACE,IAAhB,CAAqB,GAArB,CAAP;EACD;;EACD,OAAOJ,gBAAgB,CAACP,IAAD,EAAOC,QAAP,CAAvB;AACD,CATD;;AAWA,MAAMM,gBAAgB,GAAG,CAACP,IAAD,EAAOC,QAAP,EAAiBW,QAAQ,GAAG,IAA5B,KAAqC;EAC5D,MAAMC,eAAe,GAAGZ,QAAQ,IAAI,OAAOA,QAAP,KAAoB,QAAxD;EACA,IAAIY,eAAJ,EAAqB,OAAOD,QAAQ,GAAI,GAAEZ,IAAK,IAAGA,IAAK,KAAIC,QAAS,EAAhC,GAAqC,GAAED,IAAK,KAAIC,QAAS,EAAxE;EAErB,OAAOD,IAAP;AACD,CALD;;AAOA,eAAeD,YAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-not-equal-query.js"],"names":["getNotEqualQuery","itemId","id","_ne"],"mappings":"AAAA,eAAe,SAASA,gBAAT,CAA0BC,MAA1B,EAAkC;AAC/C,MAAI,CAACA,MAAL,EAAa,OAAO,EAAP;AAEb,SAAO;AACLC,IAAAA,EAAE,EAAE;AACFC,MAAAA,GAAG,EAAEF;AADH;AADC,GAAP;AAKD","sourcesContent":["export default function getNotEqualQuery(itemId) {\n if (!itemId) return {};\n\n return {\n id: {\n _ne: itemId\n }\n };\n}\n"],"file":"get-not-equal-query.js"}
1
+ {"version":3,"file":"get-not-equal-query.js","names":["getNotEqualQuery","itemId","id","_ne"],"sources":["../../src/helpers/get-not-equal-query.js"],"sourcesContent":["export default function getNotEqualQuery(itemId) {\n if (!itemId) return {};\n\n return {\n id: {\n _ne: itemId\n }\n };\n}\n"],"mappings":"AAAA,eAAe,SAASA,gBAAT,CAA0BC,MAA1B,EAAkC;EAC/C,IAAI,CAACA,MAAL,EAAa,OAAO,EAAP;EAEb,OAAO;IACLC,EAAE,EAAE;MACFC,GAAG,EAAEF;IADH;EADC,CAAP;AAKD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-pagination-index.js"],"names":["PAGINATION_QUERY_CONST","PB_QUERY_CONST","getPaginationIndex","query","name","paginationIndex","Number"],"mappings":"AAAA,SAASA,sBAAT,EAAiCC,cAAjC,QAAuD,cAAvD;;AAEA,SAASC,kBAAT,CAA4BC,KAA5B,EAAmCC,IAAnC,EAAyC;AACvC,MAAI,CAACD,KAAD,IAAU,CAACC,IAAf,EAAqB,OAAO,CAAP;AACrB,QAAMC,eAAe,GAAGF,KAAK,CAAE,GAAEF,cAAe,IAAGG,IAAK,IAAGJ,sBAAuB,EAArD,CAA7B;AACA,SAAOM,MAAM,CAACD,eAAD,CAAN,IAA2B,CAAlC;AACD;;AAED,eAAeH,kBAAf","sourcesContent":["import { PAGINATION_QUERY_CONST, PB_QUERY_CONST } from '../constants';\n\nfunction getPaginationIndex(query, name) {\n if (!query || !name) return 1;\n const paginationIndex = query[`${PB_QUERY_CONST}[${name}]${PAGINATION_QUERY_CONST}`];\n return Number(paginationIndex) || 1;\n}\n\nexport default getPaginationIndex;\n"],"file":"get-pagination-index.js"}
1
+ {"version":3,"file":"get-pagination-index.js","names":["PAGINATION_QUERY_CONST","PB_QUERY_CONST","getPaginationIndex","query","name","paginationIndex","Number"],"sources":["../../src/helpers/get-pagination-index.js"],"sourcesContent":["import { PAGINATION_QUERY_CONST, PB_QUERY_CONST } from '../constants';\n\nfunction getPaginationIndex(query, name) {\n if (!query || !name) return 1;\n const paginationIndex = query[`${PB_QUERY_CONST}[${name}]${PAGINATION_QUERY_CONST}`];\n return Number(paginationIndex) || 1;\n}\n\nexport default getPaginationIndex;\n"],"mappings":"AAAA,SAASA,sBAAT,EAAiCC,cAAjC,QAAuD,cAAvD;;AAEA,SAASC,kBAAT,CAA4BC,KAA5B,EAAmCC,IAAnC,EAAyC;EACvC,IAAI,CAACD,KAAD,IAAU,CAACC,IAAf,EAAqB,OAAO,CAAP;EACrB,MAAMC,eAAe,GAAGF,KAAK,CAAE,GAAEF,cAAe,IAAGG,IAAK,IAAGJ,sBAAuB,EAArD,CAA7B;EACA,OAAOM,MAAM,CAACD,eAAD,CAAN,IAA2B,CAAlC;AACD;;AAED,eAAeH,kBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-parsed-prop-values.js"],"names":["React","Link","isObject","removeUnwantedCharacters","getParsedPropValues","propertiesToDisplay","props","enableLink","shouldStrip","map","property","filteredProperty","subtype","split","value","Array","isArray","prop","index","propValue","sanitizedValue","isLastValue","length","parsedValue","concat","linkKey","join","url","filter","Boolean"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,8BAArB;AACA,OAAOC,QAAP,MAAqB,aAArB;AACA,OAAOC,wBAAP,MAAqC,8BAArC;;AAEA,MAAMC,mBAAmB,GAAG,CAAC;AAAEC,EAAAA,mBAAF;AAAuBC,EAAAA,KAAvB;AAA8BC,EAAAA,UAA9B;AAA0CC,EAAAA;AAA1C,CAAD,KAC1BH,mBAAmB,CAChBI,GADH,CACOC,QAAQ,IAAI;AACf,QAAM,CAACC,gBAAD,EAAmBC,OAAnB,IAA8BF,QAAQ,CAACG,KAAT,CAAe,GAAf,CAApC;AACA,QAAMC,KAAK,GAAGR,KAAK,CAACK,gBAAD,CAAnB;;AAEA,MAAII,KAAK,CAACC,OAAN,CAAcF,KAAd,CAAJ,EAA0B;AACxB,WAAOA,KAAK,CAACL,GAAN,CAAU,CAACQ,IAAD,EAAOC,KAAP,KAAiB;AAChC,YAAMC,SAAS,GAAGP,OAAO,GAAGK,IAAI,CAACL,OAAD,CAAP,GAAmBK,IAA5C;AACA,YAAMG,cAAc,GAAGZ,WAAW,GAAGL,wBAAwB,CAACgB,SAAD,CAA3B,GAAyCA,SAA3E;AAEA,YAAME,WAAW,GAAGH,KAAK,KAAKJ,KAAK,CAACQ,MAAN,GAAe,CAA7C;AACA,YAAMC,WAAW,GAAGF,WAAW,GAAGD,cAAH,GAAoBA,cAAc,CAACI,MAAf,CAAsB,IAAtB,CAAnD;AACA,YAAMC,OAAO,GAAG,CAACd,gBAAD,EAAmBM,IAAI,CAACL,OAAD,CAAvB,EAAkCM,KAAlC,EAAyCQ,IAAzC,CAA8C,GAA9C,CAAhB;AAEA,aAAOnB,UAAU,IAAIU,IAAI,CAACU,GAAnB,gBACL,oBAAC,IAAD;AAAM,QAAA,GAAG,EAAEF,OAAX;AAAoB,QAAA,IAAI,EAAER,IAAI,CAACU;AAA/B,SACGJ,WADH,CADK,GAKLA,WALF;AAOD,KAfM,CAAP;AAgBD;;AAED,MAAIrB,QAAQ,CAACY,KAAD,CAAZ,EAAqB;AACnB,WAAON,WAAW,GAAGL,wBAAwB,CAACW,KAAK,CAACF,OAAD,CAAN,CAA3B,GAA8CE,KAAK,CAACF,OAAD,CAArE;AACD;;AAED,SAAOJ,WAAW,GAAGL,wBAAwB,CAACW,KAAD,CAA3B,GAAqCA,KAAvD;AACD,CA7BH,EA8BGc,MA9BH,CA8BUC,OA9BV,CADF;;AAiCA,eAAezB,mBAAf","sourcesContent":["import React from 'react';\nimport { Link } from '@blaze-cms/nextjs-components';\nimport isObject from './is-object';\nimport removeUnwantedCharacters from './remove-unwanted-characters';\n\nconst getParsedPropValues = ({ propertiesToDisplay, props, enableLink, shouldStrip }) =>\n propertiesToDisplay\n .map(property => {\n const [filteredProperty, subtype] = property.split('.');\n const value = props[filteredProperty];\n\n if (Array.isArray(value)) {\n return value.map((prop, index) => {\n const propValue = subtype ? prop[subtype] : prop;\n const sanitizedValue = shouldStrip ? removeUnwantedCharacters(propValue) : propValue;\n\n const isLastValue = index === value.length - 1;\n const parsedValue = isLastValue ? sanitizedValue : sanitizedValue.concat(', ');\n const linkKey = [filteredProperty, prop[subtype], index].join('-');\n\n return enableLink && prop.url ? (\n <Link key={linkKey} href={prop.url}>\n {parsedValue}\n </Link>\n ) : (\n parsedValue\n );\n });\n }\n\n if (isObject(value)) {\n return shouldStrip ? removeUnwantedCharacters(value[subtype]) : value[subtype];\n }\n\n return shouldStrip ? removeUnwantedCharacters(value) : value;\n })\n .filter(Boolean);\n\nexport default getParsedPropValues;\n"],"file":"get-parsed-prop-values.js"}
1
+ {"version":3,"file":"get-parsed-prop-values.js","names":["React","Link","isObject","removeUnwantedCharacters","getParsedPropValues","propertiesToDisplay","props","enableLink","shouldStrip","map","property","filteredProperty","subtype","split","value","Array","isArray","prop","index","propValue","sanitizedValue","isLastValue","length","parsedValue","concat","linkKey","join","url","filter","Boolean"],"sources":["../../src/helpers/get-parsed-prop-values.js"],"sourcesContent":["import React from 'react';\nimport { Link } from '@blaze-cms/nextjs-components';\nimport isObject from './is-object';\nimport removeUnwantedCharacters from './remove-unwanted-characters';\n\nconst getParsedPropValues = ({ propertiesToDisplay, props, enableLink, shouldStrip }) =>\n propertiesToDisplay\n .map(property => {\n const [filteredProperty, subtype] = property.split('.');\n const value = props[filteredProperty];\n\n if (Array.isArray(value)) {\n return value.map((prop, index) => {\n const propValue = subtype ? prop[subtype] : prop;\n const sanitizedValue = shouldStrip ? removeUnwantedCharacters(propValue) : propValue;\n\n const isLastValue = index === value.length - 1;\n const parsedValue = isLastValue ? sanitizedValue : sanitizedValue.concat(', ');\n const linkKey = [filteredProperty, prop[subtype], index].join('-');\n\n return enableLink && prop.url ? (\n <Link key={linkKey} href={prop.url}>\n {parsedValue}\n </Link>\n ) : (\n parsedValue\n );\n });\n }\n\n if (isObject(value)) {\n return shouldStrip ? removeUnwantedCharacters(value[subtype]) : value[subtype];\n }\n\n return shouldStrip ? removeUnwantedCharacters(value) : value;\n })\n .filter(Boolean);\n\nexport default getParsedPropValues;\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,8BAArB;AACA,OAAOC,QAAP,MAAqB,aAArB;AACA,OAAOC,wBAAP,MAAqC,8BAArC;;AAEA,MAAMC,mBAAmB,GAAG,CAAC;EAAEC,mBAAF;EAAuBC,KAAvB;EAA8BC,UAA9B;EAA0CC;AAA1C,CAAD,KAC1BH,mBAAmB,CAChBI,GADH,CACOC,QAAQ,IAAI;EACf,MAAM,CAACC,gBAAD,EAAmBC,OAAnB,IAA8BF,QAAQ,CAACG,KAAT,CAAe,GAAf,CAApC;EACA,MAAMC,KAAK,GAAGR,KAAK,CAACK,gBAAD,CAAnB;;EAEA,IAAII,KAAK,CAACC,OAAN,CAAcF,KAAd,CAAJ,EAA0B;IACxB,OAAOA,KAAK,CAACL,GAAN,CAAU,CAACQ,IAAD,EAAOC,KAAP,KAAiB;MAChC,MAAMC,SAAS,GAAGP,OAAO,GAAGK,IAAI,CAACL,OAAD,CAAP,GAAmBK,IAA5C;MACA,MAAMG,cAAc,GAAGZ,WAAW,GAAGL,wBAAwB,CAACgB,SAAD,CAA3B,GAAyCA,SAA3E;MAEA,MAAME,WAAW,GAAGH,KAAK,KAAKJ,KAAK,CAACQ,MAAN,GAAe,CAA7C;MACA,MAAMC,WAAW,GAAGF,WAAW,GAAGD,cAAH,GAAoBA,cAAc,CAACI,MAAf,CAAsB,IAAtB,CAAnD;MACA,MAAMC,OAAO,GAAG,CAACd,gBAAD,EAAmBM,IAAI,CAACL,OAAD,CAAvB,EAAkCM,KAAlC,EAAyCQ,IAAzC,CAA8C,GAA9C,CAAhB;MAEA,OAAOnB,UAAU,IAAIU,IAAI,CAACU,GAAnB,gBACL,oBAAC,IAAD;QAAM,GAAG,EAAEF,OAAX;QAAoB,IAAI,EAAER,IAAI,CAACU;MAA/B,GACGJ,WADH,CADK,GAKLA,WALF;IAOD,CAfM,CAAP;EAgBD;;EAED,IAAIrB,QAAQ,CAACY,KAAD,CAAZ,EAAqB;IACnB,OAAON,WAAW,GAAGL,wBAAwB,CAACW,KAAK,CAACF,OAAD,CAAN,CAA3B,GAA8CE,KAAK,CAACF,OAAD,CAArE;EACD;;EAED,OAAOJ,WAAW,GAAGL,wBAAwB,CAACW,KAAD,CAA3B,GAAqCA,KAAvD;AACD,CA7BH,EA8BGc,MA9BH,CA8BUC,OA9BV,CADF;;AAiCA,eAAezB,mBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-parsed-summary-value.js"],"names":["TRUE","FALSE","parsedSummaryValues","getParsedSummaryValue","value"],"mappings":"AAAA,MAAMA,IAAI,GAAG,MAAb;AACA,MAAMC,KAAK,GAAG,OAAd;AAEA,MAAMC,mBAAmB,GAAG;AAC1BF,EAAAA,IAAI,EAAE,KADoB;AAE1BC,EAAAA,KAAK,EAAE;AAFmB,CAA5B;;AAKA,SAASE,qBAAT,CAA+BC,KAA/B,EAAsC;AACpC,MAAIA,KAAK,KAAKJ,IAAd,EAAoB,OAAOE,mBAAmB,CAACF,IAA3B;AACpB,MAAII,KAAK,KAAKH,KAAd,EAAqB,OAAOC,mBAAmB,CAACD,KAA3B;AAErB,SAAOG,KAAP;AACD;;AAED,eAAeD,qBAAf","sourcesContent":["const TRUE = 'true';\nconst FALSE = 'false';\n\nconst parsedSummaryValues = {\n TRUE: 'Yes',\n FALSE: 'No'\n};\n\nfunction getParsedSummaryValue(value) {\n if (value === TRUE) return parsedSummaryValues.TRUE;\n if (value === FALSE) return parsedSummaryValues.FALSE;\n\n return value;\n}\n\nexport default getParsedSummaryValue;\n"],"file":"get-parsed-summary-value.js"}
1
+ {"version":3,"file":"get-parsed-summary-value.js","names":["TRUE","FALSE","parsedSummaryValues","getParsedSummaryValue","value"],"sources":["../../src/helpers/get-parsed-summary-value.js"],"sourcesContent":["const TRUE = 'true';\nconst FALSE = 'false';\n\nconst parsedSummaryValues = {\n TRUE: 'Yes',\n FALSE: 'No'\n};\n\nfunction getParsedSummaryValue(value) {\n if (value === TRUE) return parsedSummaryValues.TRUE;\n if (value === FALSE) return parsedSummaryValues.FALSE;\n\n return value;\n}\n\nexport default getParsedSummaryValue;\n"],"mappings":"AAAA,MAAMA,IAAI,GAAG,MAAb;AACA,MAAMC,KAAK,GAAG,OAAd;AAEA,MAAMC,mBAAmB,GAAG;EAC1BF,IAAI,EAAE,KADoB;EAE1BC,KAAK,EAAE;AAFmB,CAA5B;;AAKA,SAASE,qBAAT,CAA+BC,KAA/B,EAAsC;EACpC,IAAIA,KAAK,KAAKJ,IAAd,EAAoB,OAAOE,mBAAmB,CAACF,IAA3B;EACpB,IAAII,KAAK,KAAKH,KAAd,EAAqB,OAAOC,mBAAmB,CAACD,KAA3B;EAErB,OAAOG,KAAP;AACD;;AAED,eAAeD,qBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-prop-values.js"],"names":["isObject","getPropValues","propertiesToDisplay","props","map","property","filteredProperty","subtype","split","value","Array","isArray","prop","filter","Boolean"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,aAArB;;AAEA,MAAMC,aAAa,GAAG,CAACC,mBAAD,EAAsBC,KAAtB,KACpBD,mBAAmB,CAChBE,GADH,CACOC,QAAQ,IAAI;AACf,QAAM,CAACC,gBAAD,EAAmBC,OAAnB,IAA8BF,QAAQ,CAACG,KAAT,CAAe,GAAf,CAApC;AACA,QAAMC,KAAK,GAAGN,KAAK,CAACG,gBAAD,CAAnB;;AAEA,MAAII,KAAK,CAACC,OAAN,CAAcF,KAAd,CAAJ,EAA0B;AACxB,WAAOA,KAAK,CAACL,GAAN,CAAUQ,IAAI,IAAKL,OAAO,GAAGK,IAAI,CAACL,OAAD,CAAP,GAAmBK,IAA7C,CAAP;AACD;;AAED,MAAIZ,QAAQ,CAACS,KAAD,CAAZ,EAAqB;AACnB,WAAOA,KAAK,CAACF,OAAD,CAAZ;AACD;;AAED,SAAOE,KAAP;AACD,CAdH,EAeGI,MAfH,CAeUC,OAfV,CADF;;AAkBA,eAAeb,aAAf","sourcesContent":["import isObject from './is-object';\n\nconst getPropValues = (propertiesToDisplay, props) =>\n propertiesToDisplay\n .map(property => {\n const [filteredProperty, subtype] = property.split('.');\n const value = props[filteredProperty];\n\n if (Array.isArray(value)) {\n return value.map(prop => (subtype ? prop[subtype] : prop));\n }\n\n if (isObject(value)) {\n return value[subtype];\n }\n\n return value;\n })\n .filter(Boolean);\n\nexport default getPropValues;\n"],"file":"get-prop-values.js"}
1
+ {"version":3,"file":"get-prop-values.js","names":["isObject","getPropValues","propertiesToDisplay","props","map","property","filteredProperty","subtype","split","value","Array","isArray","prop","filter","Boolean"],"sources":["../../src/helpers/get-prop-values.js"],"sourcesContent":["import isObject from './is-object';\n\nconst getPropValues = (propertiesToDisplay, props) =>\n propertiesToDisplay\n .map(property => {\n const [filteredProperty, subtype] = property.split('.');\n const value = props[filteredProperty];\n\n if (Array.isArray(value)) {\n return value.map(prop => (subtype ? prop[subtype] : prop));\n }\n\n if (isObject(value)) {\n return value[subtype];\n }\n\n return value;\n })\n .filter(Boolean);\n\nexport default getPropValues;\n"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,aAArB;;AAEA,MAAMC,aAAa,GAAG,CAACC,mBAAD,EAAsBC,KAAtB,KACpBD,mBAAmB,CAChBE,GADH,CACOC,QAAQ,IAAI;EACf,MAAM,CAACC,gBAAD,EAAmBC,OAAnB,IAA8BF,QAAQ,CAACG,KAAT,CAAe,GAAf,CAApC;EACA,MAAMC,KAAK,GAAGN,KAAK,CAACG,gBAAD,CAAnB;;EAEA,IAAII,KAAK,CAACC,OAAN,CAAcF,KAAd,CAAJ,EAA0B;IACxB,OAAOA,KAAK,CAACL,GAAN,CAAUQ,IAAI,IAAKL,OAAO,GAAGK,IAAI,CAACL,OAAD,CAAP,GAAmBK,IAA7C,CAAP;EACD;;EAED,IAAIZ,QAAQ,CAACS,KAAD,CAAZ,EAAqB;IACnB,OAAOA,KAAK,CAACF,OAAD,CAAZ;EACD;;EAED,OAAOE,KAAP;AACD,CAdH,EAeGI,MAfH,CAeUC,OAfV,CADF;;AAkBA,eAAeb,aAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-query-filters.js"],"names":["getSearchFilterType","buildSearchValuesCheckboxSelect","RANGE","CHECKBOX","SELECT","getQueryFilters","searchFilter","query","settings","filters","valuesAnd","valuesOr","rangeFilters","checkboxFilters","selectFilters","values"],"mappings":"AAAA,OAAOA,mBAAP,MAAgC,0BAAhC;AACA,OAAOC,+BAAP,MAA4C,uCAA5C;AACA,SAASC,KAAT,EAAgBC,QAAhB,EAA0BC,MAA1B,QAAwC,cAAxC;;AAEA,MAAMC,eAAe,GAAG,CAACC,YAAD,EAAeC,KAAf,KAAyB;AAC/C,MAAI,CAACD,YAAY,CAACE,QAAd,IAA0B,CAACF,YAAY,CAACE,QAAb,CAAsBC,OAArD,EAA8D;AAC5D,WAAO;AAAEC,MAAAA,SAAS,EAAE,EAAb;AAAiBC,MAAAA,QAAQ,EAAE;AAA3B,KAAP;AACD;;AAED,QAAMC,YAAY,GAAGZ,mBAAmB,CAACM,YAAD,EAAeJ,KAAf,CAAxC;AACA,QAAMW,eAAe,GAAGb,mBAAmB,CAACM,YAAD,EAAeH,QAAf,CAA3C;AACA,QAAMW,aAAa,GAAGd,mBAAmB,CAACM,YAAD,EAAeF,MAAf,CAAzC;AAEA,QAAM;AAAEW,IAAAA,MAAM,EAAEL,SAAV;AAAqBC,IAAAA;AAArB,MAAkCV,+BAA+B,CACrEM,KADqE,EAErEK,YAFqE,EAGrEC,eAHqE,EAIrEC,aAJqE,CAAvE;AAMA,SAAO;AAAEJ,IAAAA,SAAF;AAAaC,IAAAA;AAAb,GAAP;AACD,CAhBD;;AAkBA,eAAeN,eAAf","sourcesContent":["import getSearchFilterType from './get-search-filter-type';\nimport buildSearchValuesCheckboxSelect from './build-search-values-checkbox-select';\nimport { RANGE, CHECKBOX, SELECT } from '../constants';\n\nconst getQueryFilters = (searchFilter, query) => {\n if (!searchFilter.settings || !searchFilter.settings.filters) {\n return { valuesAnd: [], valuesOr: [] };\n }\n\n const rangeFilters = getSearchFilterType(searchFilter, RANGE);\n const checkboxFilters = getSearchFilterType(searchFilter, CHECKBOX);\n const selectFilters = getSearchFilterType(searchFilter, SELECT);\n\n const { values: valuesAnd, valuesOr } = buildSearchValuesCheckboxSelect(\n query,\n rangeFilters,\n checkboxFilters,\n selectFilters\n );\n return { valuesAnd, valuesOr };\n};\n\nexport default getQueryFilters;\n"],"file":"get-query-filters.js"}
1
+ {"version":3,"file":"get-query-filters.js","names":["getSearchFilterType","buildSearchValuesCheckboxSelect","RANGE","CHECKBOX","SELECT","getQueryFilters","searchFilter","query","settings","filters","valuesAnd","valuesOr","rangeFilters","checkboxFilters","selectFilters","values"],"sources":["../../src/helpers/get-query-filters.js"],"sourcesContent":["import getSearchFilterType from './get-search-filter-type';\nimport buildSearchValuesCheckboxSelect from './build-search-values-checkbox-select';\nimport { RANGE, CHECKBOX, SELECT } from '../constants';\n\nconst getQueryFilters = (searchFilter, query) => {\n if (!searchFilter.settings || !searchFilter.settings.filters) {\n return { valuesAnd: [], valuesOr: [] };\n }\n\n const rangeFilters = getSearchFilterType(searchFilter, RANGE);\n const checkboxFilters = getSearchFilterType(searchFilter, CHECKBOX);\n const selectFilters = getSearchFilterType(searchFilter, SELECT);\n\n const { values: valuesAnd, valuesOr } = buildSearchValuesCheckboxSelect(\n query,\n rangeFilters,\n checkboxFilters,\n selectFilters\n );\n return { valuesAnd, valuesOr };\n};\n\nexport default getQueryFilters;\n"],"mappings":"AAAA,OAAOA,mBAAP,MAAgC,0BAAhC;AACA,OAAOC,+BAAP,MAA4C,uCAA5C;AACA,SAASC,KAAT,EAAgBC,QAAhB,EAA0BC,MAA1B,QAAwC,cAAxC;;AAEA,MAAMC,eAAe,GAAG,CAACC,YAAD,EAAeC,KAAf,KAAyB;EAC/C,IAAI,CAACD,YAAY,CAACE,QAAd,IAA0B,CAACF,YAAY,CAACE,QAAb,CAAsBC,OAArD,EAA8D;IAC5D,OAAO;MAAEC,SAAS,EAAE,EAAb;MAAiBC,QAAQ,EAAE;IAA3B,CAAP;EACD;;EAED,MAAMC,YAAY,GAAGZ,mBAAmB,CAACM,YAAD,EAAeJ,KAAf,CAAxC;EACA,MAAMW,eAAe,GAAGb,mBAAmB,CAACM,YAAD,EAAeH,QAAf,CAA3C;EACA,MAAMW,aAAa,GAAGd,mBAAmB,CAACM,YAAD,EAAeF,MAAf,CAAzC;EAEA,MAAM;IAAEW,MAAM,EAAEL,SAAV;IAAqBC;EAArB,IAAkCV,+BAA+B,CACrEM,KADqE,EAErEK,YAFqE,EAGrEC,eAHqE,EAIrEC,aAJqE,CAAvE;EAMA,OAAO;IAAEJ,SAAF;IAAaC;EAAb,CAAP;AACD,CAhBD;;AAkBA,eAAeN,eAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-query-props.js"],"names":["isFilterEntitysId","getFilterProps","ID","getQueryProps","inheritedFilters","currentSchema","filterEntitySchema","length","identifier","currentEntityId","reduce","acc","filter","filterName","relationName","relationProp","relationEntityName","isEntityItself","relationForeignKeys","shouldIgnoreFilter","join","queryProp","queryPropFinalValue"],"mappings":"AAAA,OAAOA,iBAAP,MAA8B,wBAA9B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,SAASC,EAAT,QAAmB,cAAnB;;AAEA,MAAMC,aAAa,GAAG,CAACC,gBAAD,EAAmBC,aAAnB,EAAkCC,kBAAlC,KAAyD;AAC7E,MAAI,CAACD,aAAD,IAAkB,CAACD,gBAAgB,CAACG,MAAxC,EAAgD,OAAOL,EAAP;AAEhD,QAAM;AAAEM,IAAAA,UAAU,EAAEC;AAAd,MAAkCJ,aAAxC;AAEA,SAAOD,gBAAgB,CAACM,MAAjB,CAAwB,CAACC,GAAD,EAAMC,MAAN,KAAiB;AAC9C,UAAM;AACJC,MAAAA,UADI;AAEJC,MAAAA,YAFI;AAGJC,MAAAA,YAHI;AAIJC,MAAAA,kBAJI;AAKJC,MAAAA,cALI;AAMJC,MAAAA,mBANI;AAOJC,MAAAA;AAPI,QAQFlB,cAAc,CAACW,MAAD,EAASP,aAAT,EAAwBC,kBAAxB,CARlB;AAUA,QAAIa,kBAAJ,EAAwB,OAAOR,GAAP;;AACxB,QAAIO,mBAAmB,IAAIA,mBAAmB,CAACX,MAA/C,EAAuD;AACrD,aAAQ,GAAEI,GAAI,IAAGO,mBAAmB,CAACE,IAApB,CAAyB,GAAzB,CAA8B,EAA/C;AACD;;AAED,UAAMC,SAAS,GAAGL,kBAAkB,GAAI,GAAEF,YAAa,MAAKC,YAAa,IAArC,GAA2CF,UAA/E;AACA,UAAMS,mBAAmB,GACvBL,cAAc,IAAIjB,iBAAiB,CAACa,UAAD,EAAaJ,eAAb,CAAnC,GAAmEP,EAAnE,GAAwEmB,SAD1E;AAGA,WAAQ,GAAEV,GAAI,IAAGW,mBAAoB,GAArC;AACD,GArBM,EAqBJpB,EArBI,CAAP;AAsBD,CA3BD;;AA6BA,eAAeC,aAAf","sourcesContent":["import isFilterEntitysId from './is-filter-entitys-id';\nimport getFilterProps from './get-filter-props';\nimport { ID } from '../constants';\n\nconst getQueryProps = (inheritedFilters, currentSchema, filterEntitySchema) => {\n if (!currentSchema || !inheritedFilters.length) return ID;\n\n const { identifier: currentEntityId } = currentSchema;\n\n return inheritedFilters.reduce((acc, filter) => {\n const {\n filterName,\n relationName,\n relationProp,\n relationEntityName,\n isEntityItself,\n relationForeignKeys,\n shouldIgnoreFilter\n } = getFilterProps(filter, currentSchema, filterEntitySchema);\n\n if (shouldIgnoreFilter) return acc;\n if (relationForeignKeys && relationForeignKeys.length) {\n return `${acc} ${relationForeignKeys.join(' ')}`;\n }\n\n const queryProp = relationEntityName ? `${relationName} { ${relationProp} }` : filterName;\n const queryPropFinalValue =\n isEntityItself && isFilterEntitysId(filterName, currentEntityId) ? ID : queryProp;\n\n return `${acc} ${queryPropFinalValue} `;\n }, ID);\n};\n\nexport default getQueryProps;\n"],"file":"get-query-props.js"}
1
+ {"version":3,"file":"get-query-props.js","names":["isFilterEntitysId","getFilterProps","ID","getQueryProps","inheritedFilters","currentSchema","filterEntitySchema","length","identifier","currentEntityId","reduce","acc","filter","filterName","relationName","relationProp","relationEntityName","isEntityItself","relationForeignKeys","shouldIgnoreFilter","join","queryProp","queryPropFinalValue"],"sources":["../../src/helpers/get-query-props.js"],"sourcesContent":["import isFilterEntitysId from './is-filter-entitys-id';\nimport getFilterProps from './get-filter-props';\nimport { ID } from '../constants';\n\nconst getQueryProps = (inheritedFilters, currentSchema, filterEntitySchema) => {\n if (!currentSchema || !inheritedFilters.length) return ID;\n\n const { identifier: currentEntityId } = currentSchema;\n\n return inheritedFilters.reduce((acc, filter) => {\n const {\n filterName,\n relationName,\n relationProp,\n relationEntityName,\n isEntityItself,\n relationForeignKeys,\n shouldIgnoreFilter\n } = getFilterProps(filter, currentSchema, filterEntitySchema);\n\n if (shouldIgnoreFilter) return acc;\n if (relationForeignKeys && relationForeignKeys.length) {\n return `${acc} ${relationForeignKeys.join(' ')}`;\n }\n\n const queryProp = relationEntityName ? `${relationName} { ${relationProp} }` : filterName;\n const queryPropFinalValue =\n isEntityItself && isFilterEntitysId(filterName, currentEntityId) ? ID : queryProp;\n\n return `${acc} ${queryPropFinalValue} `;\n }, ID);\n};\n\nexport default getQueryProps;\n"],"mappings":"AAAA,OAAOA,iBAAP,MAA8B,wBAA9B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,SAASC,EAAT,QAAmB,cAAnB;;AAEA,MAAMC,aAAa,GAAG,CAACC,gBAAD,EAAmBC,aAAnB,EAAkCC,kBAAlC,KAAyD;EAC7E,IAAI,CAACD,aAAD,IAAkB,CAACD,gBAAgB,CAACG,MAAxC,EAAgD,OAAOL,EAAP;EAEhD,MAAM;IAAEM,UAAU,EAAEC;EAAd,IAAkCJ,aAAxC;EAEA,OAAOD,gBAAgB,CAACM,MAAjB,CAAwB,CAACC,GAAD,EAAMC,MAAN,KAAiB;IAC9C,MAAM;MACJC,UADI;MAEJC,YAFI;MAGJC,YAHI;MAIJC,kBAJI;MAKJC,cALI;MAMJC,mBANI;MAOJC;IAPI,IAQFlB,cAAc,CAACW,MAAD,EAASP,aAAT,EAAwBC,kBAAxB,CARlB;IAUA,IAAIa,kBAAJ,EAAwB,OAAOR,GAAP;;IACxB,IAAIO,mBAAmB,IAAIA,mBAAmB,CAACX,MAA/C,EAAuD;MACrD,OAAQ,GAAEI,GAAI,IAAGO,mBAAmB,CAACE,IAApB,CAAyB,GAAzB,CAA8B,EAA/C;IACD;;IAED,MAAMC,SAAS,GAAGL,kBAAkB,GAAI,GAAEF,YAAa,MAAKC,YAAa,IAArC,GAA2CF,UAA/E;IACA,MAAMS,mBAAmB,GACvBL,cAAc,IAAIjB,iBAAiB,CAACa,UAAD,EAAaJ,eAAb,CAAnC,GAAmEP,EAAnE,GAAwEmB,SAD1E;IAGA,OAAQ,GAAEV,GAAI,IAAGW,mBAAoB,GAArC;EACD,CArBM,EAqBJpB,EArBI,CAAP;AAsBD,CA3BD;;AA6BA,eAAeC,aAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-required-schemas.js"],"names":["getRequiredSchemas","searchProperties","id","properties","dynamicProperties","relations","map","property","fieldParts","split","localFieldPart","length","matchingRelation","find","localField","entityIdentifier","filter","Boolean"],"mappings":"AAAA,MAAMA,kBAAkB,GAAG,CACzBC,gBADyB,EAEzB;AAAEC,EAAAA,EAAF;AAAMC,EAAAA,UAAU,GAAG,EAAnB;AAAuBC,EAAAA,iBAAiB,GAAG,EAA3C;AAA+CC,EAAAA,SAAS,GAAG;AAA3D,IAAkE,EAFzC,KAIzB,CACEH,EADF,EAEE,GAAGD,gBAAgB,CAACK,GAAjB,CAAqBC,QAAQ,IAAI;AAClC,MAAI,CAACA,QAAL,EAAe,OAAO,IAAP;AAEf,QAAMC,UAAU,GAAGD,QAAQ,CAACE,KAAT,CAAe,GAAf,CAAnB;AACA,QAAM,CAACC,cAAD,IAAmBH,QAAQ,CAACE,KAAT,CAAe,GAAf,CAAzB;;AAEA,MACED,UAAU,CAACG,MAAX,KAAsB,CAAtB,IACAR,UAAU,CAACO,cAAD,CADV,IAEAN,iBAAiB,CAACM,cAAD,CAHnB,EAIE;AACA,WAAO,IAAP;AACD;;AAED,QAAME,gBAAgB,GAAGP,SAAS,CAACQ,IAAV,CAAe,CAAC;AAAEC,IAAAA;AAAF,GAAD,KAAoBA,UAAU,KAAKJ,cAAlD,CAAzB;AACA,MAAI,CAACE,gBAAL,EAAuB,OAAO,IAAP;AAEvB,SAAOA,gBAAgB,CAACG,gBAAxB;AACD,CAlBE,CAFL,EAqBEC,MArBF,CAqBSC,OArBT,CAJF;;AA2BA,eAAejB,kBAAf","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"],"file":"get-required-schemas.js"}
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,gBADyB,EAEzB;EAAEC,EAAF;EAAMC,UAAU,GAAG,EAAnB;EAAuBC,iBAAiB,GAAG,EAA3C;EAA+CC,SAAS,GAAG;AAA3D,IAAkE,EAFzC,KAIzB,CACEH,EADF,EAEE,GAAGD,gBAAgB,CAACK,GAAjB,CAAqBC,QAAQ,IAAI;EAClC,IAAI,CAACA,QAAL,EAAe,OAAO,IAAP;EAEf,MAAMC,UAAU,GAAGD,QAAQ,CAACE,KAAT,CAAe,GAAf,CAAnB;EACA,MAAM,CAACC,cAAD,IAAmBH,QAAQ,CAACE,KAAT,CAAe,GAAf,CAAzB;;EAEA,IACED,UAAU,CAACG,MAAX,KAAsB,CAAtB,IACAR,UAAU,CAACO,cAAD,CADV,IAEAN,iBAAiB,CAACM,cAAD,CAHnB,EAIE;IACA,OAAO,IAAP;EACD;;EAED,MAAME,gBAAgB,GAAGP,SAAS,CAACQ,IAAV,CAAe,CAAC;IAAEC;EAAF,CAAD,KAAoBA,UAAU,KAAKJ,cAAlD,CAAzB;EACA,IAAI,CAACE,gBAAL,EAAuB,OAAO,IAAP;EAEvB,OAAOA,gBAAgB,CAACG,gBAAxB;AACD,CAlBE,CAFL,EAqBEC,MArBF,CAqBSC,OArBT,CAJF;;AA2BA,eAAejB,kBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-sanitized-prop-values.js"],"names":["getSanitizedPropValues","values","length","reduce","prev","curr"],"mappings":"AAAA,MAAMA,sBAAsB,GAAGC,MAAM,IACnCA,MAAM,CAACC,MAAP,GAAgBD,MAAM,CAACE,MAAP,CAAc,CAACC,IAAD,EAAOC,IAAP,KAAiBA,IAAI,CAACH,MAAL,GAAc,CAACE,IAAD,EAAO,IAAP,EAAaC,IAAb,CAAd,GAAmCD,IAAlE,CAAhB,GAA2FH,MAD7F;;AAGA,eAAeD,sBAAf","sourcesContent":["const getSanitizedPropValues = values =>\n values.length ? values.reduce((prev, curr) => (curr.length ? [prev, ', ', curr] : prev)) : values;\n\nexport default getSanitizedPropValues;\n"],"file":"get-sanitized-prop-values.js"}
1
+ {"version":3,"file":"get-sanitized-prop-values.js","names":["getSanitizedPropValues","values","length","reduce","prev","curr"],"sources":["../../src/helpers/get-sanitized-prop-values.js"],"sourcesContent":["const getSanitizedPropValues = values =>\n values.length ? values.reduce((prev, curr) => (curr.length ? [prev, ', ', curr] : prev)) : values;\n\nexport default getSanitizedPropValues;\n"],"mappings":"AAAA,MAAMA,sBAAsB,GAAGC,MAAM,IACnCA,MAAM,CAACC,MAAP,GAAgBD,MAAM,CAACE,MAAP,CAAc,CAACC,IAAD,EAAOC,IAAP,KAAiBA,IAAI,CAACH,MAAL,GAAc,CAACE,IAAD,EAAO,IAAP,EAAaC,IAAb,CAAd,GAAmCD,IAAlE,CAAhB,GAA2FH,MAD7F;;AAGA,eAAeD,sBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-search-filter-type.js"],"names":["getSearchFilterType","settings","filters","type","length","filter","filterType"],"mappings":"AAAA,MAAMA,mBAAmB,GAAG,CAAC;AAAEC,EAAAA,QAAQ,EAAE;AAAEC,IAAAA,OAAO,GAAG;AAAZ,MAAmB;AAA/B,CAAD,EAAsCC,IAAtC,KAA+C;AACzE,MAAI,CAACD,OAAO,CAACE,MAAb,EAAqB,OAAO,EAAP;AAErB,SAAOF,OAAO,CAACG,MAAR,CAAe,CAAC;AAAEF,IAAAA,IAAI,EAAEG;AAAR,GAAD,KAA0BA,UAAU,KAAKH,IAAxD,CAAP;AACD,CAJD;;AAMA,eAAeH,mBAAf","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"],"file":"get-search-filter-type.js"}
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;EAAZ,IAAmB;AAA/B,CAAD,EAAsCC,IAAtC,KAA+C;EACzE,IAAI,CAACD,OAAO,CAACE,MAAb,EAAqB,OAAO,EAAP;EAErB,OAAOF,OAAO,CAACG,MAAR,CAAe,CAAC;IAAEF,IAAI,EAAEG;EAAR,CAAD,KAA0BA,UAAU,KAAKH,IAAxD,CAAP;AACD,CAJD;;AAMA,eAAeH,mBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/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"],"mappings":"AAAA,SAASA,OAAT,QAAwB,cAAxB;;AAEA,MAAMC,cAAc,GAAG,CAACC,SAAD,EAAYC,UAAZ,EAAwBC,WAAxB,KAAwC;AAC7D,QAAMC,KAAK,GAAGC,KAAK,CAACC,OAAN,CAAcJ,UAAd,IAA4BA,UAAU,CAAC,CAAD,CAAtC,GAA4CA,UAA1D;AACA,MAAI,CAACE,KAAL,EAAY,OAAO,IAAP;AAEZ,MAAIG,YAAY,GAAGH,KAAnB;;AAEA,MAAIA,KAAK,CAACI,QAAN,CAAe,GAAf,CAAJ,EAAyB;AACvB,UAAM,CAACC,YAAD,EAAeC,YAAf,IAA+BN,KAAK,CAACO,KAAN,CAAY,GAAZ,CAArC;AAEA,UAAM,CAACC,QAAD,IAAaX,SAAS,CAACY,MAAV,CAAiB,CAAC;AAAEC,MAAAA;AAAF,KAAD,KAAoBA,UAAU,KAAKL,YAApD,CAAnB;AACA,UAAM;AAAEM,MAAAA,gBAAgB,GAAG;AAArB,QAA4BH,QAAQ,IAAI,EAA9C;AACA,QAAIG,gBAAgB,IAAIA,gBAAgB,KAAKN,YAA7C,EACEF,YAAY,GAAI,GAAEQ,gBAAiB,IAAGL,YAAa,EAAnD;AACH;;AACD,SAAOP,WAAW,CAACK,QAAZ,CAAqBD,YAArB,IAAsC,GAAEH,KAAM,IAAGL,OAAQ,EAAzD,GAA6DK,KAApE;AACD,CAfD;;AAiBA,MAAMY,kBAAkB,GAAG,CAACf,SAAD,EAAYgB,MAAZ,EAAoBd,WAApB,EAAiCe,aAAjC,KACzBA,aAAa,GACTlB,cAAc,CAACC,SAAD,EAAYgB,MAAM,CAAC,CAAD,CAAlB,EAAuBd,WAAvB,CADL,GAETH,cAAc,CAACC,SAAD,EAAYgB,MAAZ,EAAoBd,WAApB,CAHpB;;AAKA,eAAea,kBAAf","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"],"file":"get-sort-by-field-name.js"}
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,OAAT,QAAwB,cAAxB;;AAEA,MAAMC,cAAc,GAAG,CAACC,SAAD,EAAYC,UAAZ,EAAwBC,WAAxB,KAAwC;EAC7D,MAAMC,KAAK,GAAGC,KAAK,CAACC,OAAN,CAAcJ,UAAd,IAA4BA,UAAU,CAAC,CAAD,CAAtC,GAA4CA,UAA1D;EACA,IAAI,CAACE,KAAL,EAAY,OAAO,IAAP;EAEZ,IAAIG,YAAY,GAAGH,KAAnB;;EAEA,IAAIA,KAAK,CAACI,QAAN,CAAe,GAAf,CAAJ,EAAyB;IACvB,MAAM,CAACC,YAAD,EAAeC,YAAf,IAA+BN,KAAK,CAACO,KAAN,CAAY,GAAZ,CAArC;IAEA,MAAM,CAACC,QAAD,IAAaX,SAAS,CAACY,MAAV,CAAiB,CAAC;MAAEC;IAAF,CAAD,KAAoBA,UAAU,KAAKL,YAApD,CAAnB;IACA,MAAM;MAAEM,gBAAgB,GAAG;IAArB,IAA4BH,QAAQ,IAAI,EAA9C;IACA,IAAIG,gBAAgB,IAAIA,gBAAgB,KAAKN,YAA7C,EACEF,YAAY,GAAI,GAAEQ,gBAAiB,IAAGL,YAAa,EAAnD;EACH;;EACD,OAAOP,WAAW,CAACK,QAAZ,CAAqBD,YAArB,IAAsC,GAAEH,KAAM,IAAGL,OAAQ,EAAzD,GAA6DK,KAApE;AACD,CAfD;;AAiBA,MAAMY,kBAAkB,GAAG,CAACf,SAAD,EAAYgB,MAAZ,EAAoBd,WAApB,EAAiCe,aAAjC,KACzBA,aAAa,GACTlB,cAAc,CAACC,SAAD,EAAYgB,MAAM,CAAC,CAAD,CAAlB,EAAuBd,WAAvB,CADL,GAETH,cAAc,CAACC,SAAD,EAAYgB,MAAZ,EAAoBd,WAApB,CAHpB;;AAKA,eAAea,kBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-unpublished-entity-name.js"],"names":["PUBLISHED","UNDERSCORE","getUnpublishedEntityName","entity","split","filter","word","join"],"mappings":"AAAA,SAASA,SAAT,QAA0B,cAA1B;AAEA,MAAMC,UAAU,GAAG,GAAnB;;AAEA,MAAMC,wBAAwB,GAAGC,MAAM,IACrCA,MAAM,CACHC,KADH,CACSH,UADT,EAEGI,MAFH,CAEUC,IAAI,IAAIA,IAAI,KAAKN,SAF3B,EAGGO,IAHH,CAGQN,UAHR,CADF;;AAMA,eAAeC,wBAAf","sourcesContent":["import { PUBLISHED } from '../constants';\n\nconst UNDERSCORE = '_';\n\nconst getUnpublishedEntityName = entity =>\n entity\n .split(UNDERSCORE)\n .filter(word => word !== PUBLISHED)\n .join(UNDERSCORE);\n\nexport default getUnpublishedEntityName;\n"],"file":"get-unpublished-entity-name.js"}
1
+ {"version":3,"file":"get-unpublished-entity-name.js","names":["PUBLISHED","UNDERSCORE","getUnpublishedEntityName","entity","split","filter","word","join"],"sources":["../../src/helpers/get-unpublished-entity-name.js"],"sourcesContent":["import { PUBLISHED } from '../constants';\n\nconst UNDERSCORE = '_';\n\nconst getUnpublishedEntityName = entity =>\n entity\n .split(UNDERSCORE)\n .filter(word => word !== PUBLISHED)\n .join(UNDERSCORE);\n\nexport default getUnpublishedEntityName;\n"],"mappings":"AAAA,SAASA,SAAT,QAA0B,cAA1B;AAEA,MAAMC,UAAU,GAAG,GAAnB;;AAEA,MAAMC,wBAAwB,GAAGC,MAAM,IACrCA,MAAM,CACHC,KADH,CACSH,UADT,EAEGI,MAFH,CAEUC,IAAI,IAAIA,IAAI,KAAKN,SAF3B,EAGGO,IAHH,CAGQN,UAHR,CADF;;AAMA,eAAeC,wBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/get-updated-filter-by.js"],"names":["uniq","buildInheritedFilters","getUpdatedFilterBy","inheritedFilters","entityData","currentSchema","filterEntitySchema","itemId","props","length","relationFilters","filterBy"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,aAAjB;AACA,OAAOC,qBAAP,MAAkC,2BAAlC;;AAEA,MAAMC,kBAAkB,GAAG,CACzBC,gBADyB,EAEzBC,UAFyB,EAGzBC,aAHyB,EAIzBC,kBAJyB,EAKzBC,MALyB,EAMzBC,KANyB,KAOtB;AACH,MAAIL,gBAAgB,IAAIA,gBAAgB,CAACM,MAAzC,EAAiD;AAC/C,UAAMC,eAAe,GAAGT,qBAAqB,CAC3CG,UAD2C,EAE3CD,gBAF2C,EAG3CE,aAH2C,EAI3CC,kBAJ2C,EAK3CC,MAL2C,CAA7C;AAQA,WAAOG,eAAe,CAACD,MAAhB,GAAyBT,IAAI,CAAC,CAAC,GAAGQ,KAAK,CAACG,QAAV,EAAoB,GAAGD,eAAvB,CAAD,CAA7B,GAAyE,IAAhF;AACD;;AACD,SAAO,EAAP;AACD,CApBD;;AAsBA,eAAeR,kBAAf","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"],"file":"get-updated-filter-by.js"}
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,IAAP,MAAiB,aAAjB;AACA,OAAOC,qBAAP,MAAkC,2BAAlC;;AAEA,MAAMC,kBAAkB,GAAG,CACzBC,gBADyB,EAEzBC,UAFyB,EAGzBC,aAHyB,EAIzBC,kBAJyB,EAKzBC,MALyB,EAMzBC,KANyB,KAOtB;EACH,IAAIL,gBAAgB,IAAIA,gBAAgB,CAACM,MAAzC,EAAiD;IAC/C,MAAMC,eAAe,GAAGT,qBAAqB,CAC3CG,UAD2C,EAE3CD,gBAF2C,EAG3CE,aAH2C,EAI3CC,kBAJ2C,EAK3CC,MAL2C,CAA7C;IAQA,OAAOG,eAAe,CAACD,MAAhB,GAAyBT,IAAI,CAAC,CAAC,GAAGQ,KAAK,CAACG,QAAV,EAAoB,GAAGD,eAAvB,CAAD,CAA7B,GAAyE,IAAhF;EACD;;EACD,OAAO,EAAP;AACD,CApBD;;AAsBA,eAAeR,kBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/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"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,yBAAtB;;AAEA,MAAMC,uBAAuB,GAAG,CAACC,KAAD,EAAQC,IAAR,EAAcC,SAAS,GAAG,EAA1B,KAAiC;AAC/D,MAAIC,KAAK,CAACC,OAAN,CAAcJ,KAAd,CAAJ,EAA0B;AACxB,UAAMK,YAAY,GAAGL,KAAK,CAACM,GAAN,CAAU,CAACC,QAAD,EAAWC,KAAX,KAAqB;AAClD,YAAM;AAAEC,QAAAA,QAAF;AAAYC,QAAAA;AAAZ,UAAoBH,QAA1B;AACA,YAAMI,QAAQ,GAAGJ,QAAQ,CAACE,QAAD,CAAzB;AACA,YAAMG,UAAU,GAAGJ,KAAK,KAAKR,KAAK,CAACa,MAAN,GAAe,CAA5C;AACA,YAAMC,aAAa,GAAGF,UAAU,GAAGD,QAAH,GAAcA,QAAQ,CAACI,MAAT,CAAgB,GAAhB,CAA9C;AAEA,aAAOL,GAAG,gBACR,oBAAC,SAAD;AAAW,QAAA,GAAG,EAAE,CAACR,SAAD,EAAYM,KAAZ,EAAmBQ,IAAnB,CAAwB,GAAxB,CAAhB;AAA8C,QAAA,IAAI,EAAEN;AAApD,SAA2D,GAAEI,aAAc,GAA3E,CADQ,GAGP,GAAEA,aAAc,GAHnB;AAKD,KAXoB,CAArB;AAaA,WAAOT,YAAY,CAACQ,MAAb,GAAsBR,YAAtB,GAAqC,IAA5C;AACD;;AAED,SAAOJ,IAAI,gBAAG,oBAAC,SAAD;AAAW,IAAA,IAAI,EAAEA;AAAjB,KAAwBD,KAAxB,CAAH,GAAgDA,KAA3D;AACD,CAnBD;;AAqBA,eAAeD,uBAAf","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"],"file":"get-wrapped-value-with-link.js"}
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,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,yBAAtB;;AAEA,MAAMC,uBAAuB,GAAG,CAACC,KAAD,EAAQC,IAAR,EAAcC,SAAS,GAAG,EAA1B,KAAiC;EAC/D,IAAIC,KAAK,CAACC,OAAN,CAAcJ,KAAd,CAAJ,EAA0B;IACxB,MAAMK,YAAY,GAAGL,KAAK,CAACM,GAAN,CAAU,CAACC,QAAD,EAAWC,KAAX,KAAqB;MAClD,MAAM;QAAEC,QAAF;QAAYC;MAAZ,IAAoBH,QAA1B;MACA,MAAMI,QAAQ,GAAGJ,QAAQ,CAACE,QAAD,CAAzB;MACA,MAAMG,UAAU,GAAGJ,KAAK,KAAKR,KAAK,CAACa,MAAN,GAAe,CAA5C;MACA,MAAMC,aAAa,GAAGF,UAAU,GAAGD,QAAH,GAAcA,QAAQ,CAACI,MAAT,CAAgB,GAAhB,CAA9C;MAEA,OAAOL,GAAG,gBACR,oBAAC,SAAD;QAAW,GAAG,EAAE,CAACR,SAAD,EAAYM,KAAZ,EAAmBQ,IAAnB,CAAwB,GAAxB,CAAhB;QAA8C,IAAI,EAAEN;MAApD,GAA2D,GAAEI,aAAc,GAA3E,CADQ,GAGP,GAAEA,aAAc,GAHnB;IAKD,CAXoB,CAArB;IAaA,OAAOT,YAAY,CAACQ,MAAb,GAAsBR,YAAtB,GAAqC,IAA5C;EACD;;EAED,OAAOJ,IAAI,gBAAG,oBAAC,SAAD;IAAW,IAAI,EAAEA;EAAjB,GAAwBD,KAAxB,CAAH,GAAgDA,KAA3D;AACD,CAnBD;;AAqBA,eAAeD,uBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/group-entities.js"],"names":["groupEntities","entities","size","entitiesSet","controledSize","Number","length","chunks","push","splice"],"mappings":"AAAA,eAAe,SAASA,aAAT,CAAuBC,QAAvB,EAAiCC,IAAjC,EAAuC;AACpD,QAAMC,WAAW,GAAG,CAAC,GAAGF,QAAJ,CAApB;AACA,QAAMG,aAAa,GAAGF,IAAI,GAAGG,MAAM,CAACH,IAAD,CAAT,GAAkBC,WAAW,CAACG,MAAxD;AACA,QAAMC,MAAM,GAAG,EAAf;;AAEA,SAAOJ,WAAW,CAACG,MAAnB,EAA2B;AACzBC,IAAAA,MAAM,CAACC,IAAP,CAAYL,WAAW,CAACM,MAAZ,CAAmB,CAAnB,EAAsBL,aAAtB,CAAZ;AACD;;AAED,SAAOG,MAAP;AACD","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"],"file":"group-entities.js"}
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,aAAT,CAAuBC,QAAvB,EAAiCC,IAAjC,EAAuC;EACpD,MAAMC,WAAW,GAAG,CAAC,GAAGF,QAAJ,CAApB;EACA,MAAMG,aAAa,GAAGF,IAAI,GAAGG,MAAM,CAACH,IAAD,CAAT,GAAkBC,WAAW,CAACG,MAAxD;EACA,MAAMC,MAAM,GAAG,EAAf;;EAEA,OAAOJ,WAAW,CAACG,MAAnB,EAA2B;IACzBC,MAAM,CAACC,IAAP,CAAYL,WAAW,CAACM,MAAZ,CAAmB,CAAnB,EAAsBL,aAAtB,CAAZ;EACD;;EAED,OAAOG,MAAP;AACD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/has-children.js"],"names":["hasChildren","children","isChildrenArray","Array","isArray","Object","keys","length","props"],"mappings":"AAAA,MAAMA,WAAW,GAAGC,QAAQ,IAAI;AAC9B,MAAI,CAACA,QAAL,EAAe,OAAO,KAAP;AACf,QAAMC,eAAe,GAAGC,KAAK,CAACC,OAAN,CAAcH,QAAd,CAAxB;;AACA,MAAI,CAACC,eAAL,EAAsB;AACpB,WAAO,CAAC,EACNG,MAAM,CAACC,IAAP,CAAYL,QAAZ,EAAsBM,MAAtB,IACAN,QAAQ,CAACO,KADT,IAEAP,QAAQ,CAACO,KAAT,CAAeP,QAFf,IAGAA,QAAQ,CAACO,KAAT,CAAeP,QAAf,CAAwBM,MAAxB,GAAiC,CAJ3B,CAAR;AAMD;;AACD,SAAOL,eAAe,IAAI,CAAC,CAACD,QAAQ,CAACM,MAArC;AACD,CAZD;;AAcA,eAAeP,WAAf","sourcesContent":["const hasChildren = children => {\n if (!children) return false;\n const isChildrenArray = Array.isArray(children);\n if (!isChildrenArray) {\n return !!(\n Object.keys(children).length &&\n children.props &&\n children.props.children &&\n children.props.children.length > 1\n );\n }\n return isChildrenArray && !!children.length;\n};\n\nexport default hasChildren;\n"],"file":"has-children.js"}
1
+ {"version":3,"file":"has-children.js","names":["hasChildren","children","isChildrenArray","Array","isArray","Object","keys","length","props"],"sources":["../../src/helpers/has-children.js"],"sourcesContent":["const hasChildren = children => {\n if (!children) return false;\n const isChildrenArray = Array.isArray(children);\n if (!isChildrenArray) {\n return !!(\n Object.keys(children).length &&\n children.props &&\n children.props.children &&\n children.props.children.length > 1\n );\n }\n return isChildrenArray && !!children.length;\n};\n\nexport default hasChildren;\n"],"mappings":"AAAA,MAAMA,WAAW,GAAGC,QAAQ,IAAI;EAC9B,IAAI,CAACA,QAAL,EAAe,OAAO,KAAP;EACf,MAAMC,eAAe,GAAGC,KAAK,CAACC,OAAN,CAAcH,QAAd,CAAxB;;EACA,IAAI,CAACC,eAAL,EAAsB;IACpB,OAAO,CAAC,EACNG,MAAM,CAACC,IAAP,CAAYL,QAAZ,EAAsBM,MAAtB,IACAN,QAAQ,CAACO,KADT,IAEAP,QAAQ,CAACO,KAAT,CAAeP,QAFf,IAGAA,QAAQ,CAACO,KAAT,CAAeP,QAAf,CAAwBM,MAAxB,GAAiC,CAJ3B,CAAR;EAMD;;EACD,OAAOL,eAAe,IAAI,CAAC,CAACD,QAAQ,CAACM,MAArC;AACD,CAZD;;AAcA,eAAeP,WAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/index.js"],"names":["default","buildInheritedFilters","buildLinkExtraProps","buildPropsQuery","buildQueryFields","buildRawQuery","buildRawQueryBase","buildSearchValuesCheckboxSelect","buildSearchValuesText","buildSetFilters","checkPropsToUse","getElasticsearchOperator","getClickWrapperOptions","getEntitiesWithBanner","getEntityData","getEntityRenderProps","getGenericProps","getGenericRenderVariables","getImageIds","getInheritedFilters","getModifiers","getNotEqualQuery","getPaginationIndex","getParsedSummaryValue","getQueryFilters","getQueryProps","getRequiredSchemas","getSearchFilterType","getUnpublishedEntityName","getWrappedValueWithLink","getItemsToDisplayIds","isBrowser","isFilterEntitysId","isObject","isUsingRelationImage","parsePropsToDisplay","renderChildren","shouldRenderWaypoint","shouldShowProperty","sortResponseData","splitChildren","getCurrentOffset","updateChildrensParent","getDisplayCountData","buildImageProperties","getUpdatedFilterBy","checkForError","removeUnwantedCharacters","hasChildren","removeExtraItems","getParsedPropValues","getSanitizedPropValues","appendImages","parseTextBlock"],"mappings":"AAAA,SAASA,OAAO,IAAIC,qBAApB,QAAiD,2BAAjD;AACA,SAASD,OAAO,IAAIE,mBAApB,QAA+C,0BAA/C;AACA,SAASF,OAAO,IAAIG,eAApB,QAA2C,qBAA3C;AACA,SAASH,OAAO,IAAII,gBAApB,QAA4C,sBAA5C;AACA,SAASJ,OAAO,IAAIK,aAApB,QAAyC,mBAAzC;AACA,SAASL,OAAO,IAAIM,iBAApB,QAA6C,wBAA7C;AACA,SAASN,OAAO,IAAIO,+BAApB,QAA2D,uCAA3D;AACA,SAASP,OAAO,IAAIQ,qBAApB,QAAiD,4BAAjD;AACA,SAASR,OAAO,IAAIS,eAApB,QAA2C,qBAA3C;AACA,SAAST,OAAO,IAAIU,eAApB,QAA2C,sBAA3C;AACA,SAASV,OAAO,IAAIW,wBAApB,QAAoD,8BAApD;AACA,SAASX,OAAO,IAAIY,sBAApB,QAAkD,6BAAlD;AACA,SAASZ,OAAO,IAAIa,qBAApB,QAAiD,4BAAjD;AACA,SAASb,OAAO,IAAIc,aAApB,QAAyC,mBAAzC;AACA,SAASd,OAAO,IAAIe,oBAApB,QAAgD,2BAAhD;AACA,SAASf,OAAO,IAAIgB,eAApB,QAA2C,qBAA3C;AACA,SAAShB,OAAO,IAAIiB,yBAApB,QAAqD,gCAArD;AACA,SAASjB,OAAO,IAAIkB,WAApB,QAAuC,iBAAvC;AACA,SAASlB,OAAO,IAAImB,mBAApB,QAA+C,yBAA/C;AACA,SAASnB,OAAO,IAAIoB,YAApB,QAAwC,iBAAxC;AACA,SAASpB,OAAO,IAAIqB,gBAApB,QAA4C,uBAA5C;AACA,SAASrB,OAAO,IAAIsB,kBAApB,QAA8C,wBAA9C;AACA,SAAStB,OAAO,IAAIuB,qBAApB,QAAiD,4BAAjD;AACA,SAASvB,OAAO,IAAIwB,eAApB,QAA2C,qBAA3C;AACA,SAASxB,OAAO,IAAIyB,aAApB,QAAyC,mBAAzC;AACA,SAASzB,OAAO,IAAI0B,kBAApB,QAA8C,wBAA9C;AACA,SAAS1B,OAAO,IAAI2B,mBAApB,QAA+C,0BAA/C;AACA,SAAS3B,OAAO,IAAI4B,wBAApB,QAAoD,+BAApD;AACA,SAAS5B,OAAO,IAAI6B,uBAApB,QAAmD,+BAAnD;AACA,SAAS7B,OAAO,IAAI8B,oBAApB,QAAgD,4BAAhD;AACA,SAAS9B,OAAO,IAAI+B,SAApB,QAAqC,cAArC;AACA,SAAS/B,OAAO,IAAIgC,iBAApB,QAA6C,wBAA7C;AACA,SAAShC,OAAO,IAAIiC,QAApB,QAAoC,aAApC;AACA,SAASjC,OAAO,IAAIkC,oBAApB,QAAgD,2BAAhD;AACA,SAASlC,OAAO,IAAImC,mBAApB,QAA+C,0BAA/C;AACA,SAASnC,OAAO,IAAIoC,cAApB,QAA0C,mBAA1C;AACA,SAASpC,OAAO,IAAIqC,oBAApB,QAAgD,0BAAhD;AACA,SAASrC,OAAO,IAAIsC,kBAApB,QAA8C,wBAA9C;AACA,SAAStC,OAAO,IAAIuC,gBAApB,QAA4C,sBAA5C;AACA,SAASvC,OAAO,IAAIwC,aAApB,QAAyC,kBAAzC;AACA,SAASxC,OAAO,IAAIyC,gBAApB,QAA4C,sBAA5C;AACA,SAASzC,OAAO,IAAI0C,qBAApB,QAAiD,2BAAjD;AACA,SAAS1C,OAAO,IAAI2C,mBAApB,QAA+C,0BAA/C;AACA,SAAS3C,OAAO,IAAI4C,oBAApB,QAAgD,0BAAhD;AACA,SAAS5C,OAAO,IAAI6C,kBAApB,QAA8C,yBAA9C;AACA,SAAS7C,OAAO,IAAI8C,aAApB,QAAyC,mBAAzC;AACA,SAAS9C,OAAO,IAAI+C,wBAApB,QAAoD,8BAApD;AACA,SAAS/C,OAAO,IAAIgD,WAApB,QAAuC,gBAAvC;AACA,SAAShD,OAAO,IAAIiD,gBAApB,QAA4C,sBAA5C;AACA,SAASjD,OAAO,IAAIkD,mBAApB,QAA+C,0BAA/C;AACA,SAASlD,OAAO,IAAImD,sBAApB,QAAkD,6BAAlD;AACA,SAASnD,OAAO,IAAIoD,YAApB,QAAwC,iBAAxC;AACA,SAASpD,OAAO,IAAIqD,cAApB,QAA0C,mBAA1C","sourcesContent":["export { default as buildInheritedFilters } from './build-inherited-filters';\nexport { default as buildLinkExtraProps } from './build-link-extra-props';\nexport { default as buildPropsQuery } from './build-props-query';\nexport { default as buildQueryFields } from './build-query-fields';\nexport { default as buildRawQuery } from './build-raw-query';\nexport { default as buildRawQueryBase } from './build-raw-query-base';\nexport { default as buildSearchValuesCheckboxSelect } from './build-search-values-checkbox-select';\nexport { default as buildSearchValuesText } from './build-search-values-text';\nexport { default as buildSetFilters } from './build-set-filters';\nexport { default as checkPropsToUse } from './check-props-to-use';\nexport { default as getElasticsearchOperator } from './get-elasticsearch-operator';\nexport { default as getClickWrapperOptions } from './get-click-wrapper-options';\nexport { default as getEntitiesWithBanner } from './get-entities-with-banner';\nexport { default as getEntityData } from './get-entity-data';\nexport { default as getEntityRenderProps } from './get-entity-render-props';\nexport { default as getGenericProps } from './get-generic-props';\nexport { default as getGenericRenderVariables } from './get-generic-render-variables';\nexport { default as getImageIds } from './get-image-ids';\nexport { default as getInheritedFilters } from './get-inherited-filters';\nexport { default as getModifiers } from './get-modifiers';\nexport { default as getNotEqualQuery } from './get-not-equal-query';\nexport { default as getPaginationIndex } from './get-pagination-index';\nexport { default as getParsedSummaryValue } from './get-parsed-summary-value';\nexport { default as getQueryFilters } from './get-query-filters';\nexport { default as getQueryProps } from './get-query-props';\nexport { default as getRequiredSchemas } from './get-required-schemas';\nexport { default as getSearchFilterType } from './get-search-filter-type';\nexport { default as getUnpublishedEntityName } from './get-unpublished-entity-name';\nexport { default as getWrappedValueWithLink } from './get-wrapped-value-with-link';\nexport { default as getItemsToDisplayIds } from './get-items-to-display-ids';\nexport { default as isBrowser } from './is-browser';\nexport { default as isFilterEntitysId } from './is-filter-entitys-id';\nexport { default as isObject } from './is-object';\nexport { default as isUsingRelationImage } from './is-using-relation-image';\nexport { default as parsePropsToDisplay } from './parse-props-to-display';\nexport { default as renderChildren } from './render-children';\nexport { default as shouldRenderWaypoint } from './should-render-waypoint';\nexport { default as shouldShowProperty } from './should-show-property';\nexport { default as sortResponseData } from './sort-response-data';\nexport { default as splitChildren } from './split-children';\nexport { default as getCurrentOffset } from './get-current-offset';\nexport { default as updateChildrensParent } from './update-childrens-parent';\nexport { default as getDisplayCountData } from './get-display-count-data';\nexport { default as buildImageProperties } from './build-image-properties';\nexport { default as getUpdatedFilterBy } from './get-updated-filter-by';\nexport { default as checkForError } from './check-for-error';\nexport { default as removeUnwantedCharacters } from './remove-unwanted-characters';\nexport { default as hasChildren } from './has-children';\nexport { default as removeExtraItems } from './remove-extra-items';\nexport { default as getParsedPropValues } from './get-parsed-prop-values';\nexport { default as getSanitizedPropValues } from './get-sanitized-prop-values';\nexport { default as appendImages } from './append-images';\nexport { default as parseTextBlock } from './parse-TextBlock';\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":["default","buildInheritedFilters","buildLinkExtraProps","buildPropsQuery","buildQueryFields","buildRawQuery","buildRawQueryBase","buildSearchValuesCheckboxSelect","buildSearchValuesText","buildSetFilters","checkPropsToUse","getElasticsearchOperator","getClickWrapperOptions","getEntitiesWithBanner","getEntityData","getEntityRenderProps","getGenericProps","getGenericRenderVariables","getImageIds","getInheritedFilters","getModifiers","getNotEqualQuery","getPaginationIndex","getParsedSummaryValue","getQueryFilters","getQueryProps","getRequiredSchemas","getSearchFilterType","getUnpublishedEntityName","getWrappedValueWithLink","getItemsToDisplayIds","isBrowser","isFilterEntitysId","isObject","isUsingRelationImage","parsePropsToDisplay","renderChildren","shouldRenderWaypoint","shouldShowProperty","sortResponseData","splitChildren","getCurrentOffset","updateChildrensParent","getDisplayCountData","buildImageProperties","getUpdatedFilterBy","checkForError","removeUnwantedCharacters","hasChildren","removeExtraItems","getParsedPropValues","getSanitizedPropValues","appendImages","parseTextBlock"],"sources":["../../src/helpers/index.js"],"sourcesContent":["export { default as buildInheritedFilters } from './build-inherited-filters';\nexport { default as buildLinkExtraProps } from './build-link-extra-props';\nexport { default as buildPropsQuery } from './build-props-query';\nexport { default as buildQueryFields } from './build-query-fields';\nexport { default as buildRawQuery } from './build-raw-query';\nexport { default as buildRawQueryBase } from './build-raw-query-base';\nexport { default as buildSearchValuesCheckboxSelect } from './build-search-values-checkbox-select';\nexport { default as buildSearchValuesText } from './build-search-values-text';\nexport { default as buildSetFilters } from './build-set-filters';\nexport { default as checkPropsToUse } from './check-props-to-use';\nexport { default as getElasticsearchOperator } from './get-elasticsearch-operator';\nexport { default as getClickWrapperOptions } from './get-click-wrapper-options';\nexport { default as getEntitiesWithBanner } from './get-entities-with-banner';\nexport { default as getEntityData } from './get-entity-data';\nexport { default as getEntityRenderProps } from './get-entity-render-props';\nexport { default as getGenericProps } from './get-generic-props';\nexport { default as getGenericRenderVariables } from './get-generic-render-variables';\nexport { default as getImageIds } from './get-image-ids';\nexport { default as getInheritedFilters } from './get-inherited-filters';\nexport { default as getModifiers } from './get-modifiers';\nexport { default as getNotEqualQuery } from './get-not-equal-query';\nexport { default as getPaginationIndex } from './get-pagination-index';\nexport { default as getParsedSummaryValue } from './get-parsed-summary-value';\nexport { default as getQueryFilters } from './get-query-filters';\nexport { default as getQueryProps } from './get-query-props';\nexport { default as getRequiredSchemas } from './get-required-schemas';\nexport { default as getSearchFilterType } from './get-search-filter-type';\nexport { default as getUnpublishedEntityName } from './get-unpublished-entity-name';\nexport { default as getWrappedValueWithLink } from './get-wrapped-value-with-link';\nexport { default as getItemsToDisplayIds } from './get-items-to-display-ids';\nexport { default as isBrowser } from './is-browser';\nexport { default as isFilterEntitysId } from './is-filter-entitys-id';\nexport { default as isObject } from './is-object';\nexport { default as isUsingRelationImage } from './is-using-relation-image';\nexport { default as parsePropsToDisplay } from './parse-props-to-display';\nexport { default as renderChildren } from './render-children';\nexport { default as shouldRenderWaypoint } from './should-render-waypoint';\nexport { default as shouldShowProperty } from './should-show-property';\nexport { default as sortResponseData } from './sort-response-data';\nexport { default as splitChildren } from './split-children';\nexport { default as getCurrentOffset } from './get-current-offset';\nexport { default as updateChildrensParent } from './update-childrens-parent';\nexport { default as getDisplayCountData } from './get-display-count-data';\nexport { default as buildImageProperties } from './build-image-properties';\nexport { default as getUpdatedFilterBy } from './get-updated-filter-by';\nexport { default as checkForError } from './check-for-error';\nexport { default as removeUnwantedCharacters } from './remove-unwanted-characters';\nexport { default as hasChildren } from './has-children';\nexport { default as removeExtraItems } from './remove-extra-items';\nexport { default as getParsedPropValues } from './get-parsed-prop-values';\nexport { default as getSanitizedPropValues } from './get-sanitized-prop-values';\nexport { default as appendImages } from './append-images';\nexport { default as parseTextBlock } from './parse-TextBlock';\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,qBAApB,QAAiD,2BAAjD;AACA,SAASD,OAAO,IAAIE,mBAApB,QAA+C,0BAA/C;AACA,SAASF,OAAO,IAAIG,eAApB,QAA2C,qBAA3C;AACA,SAASH,OAAO,IAAII,gBAApB,QAA4C,sBAA5C;AACA,SAASJ,OAAO,IAAIK,aAApB,QAAyC,mBAAzC;AACA,SAASL,OAAO,IAAIM,iBAApB,QAA6C,wBAA7C;AACA,SAASN,OAAO,IAAIO,+BAApB,QAA2D,uCAA3D;AACA,SAASP,OAAO,IAAIQ,qBAApB,QAAiD,4BAAjD;AACA,SAASR,OAAO,IAAIS,eAApB,QAA2C,qBAA3C;AACA,SAAST,OAAO,IAAIU,eAApB,QAA2C,sBAA3C;AACA,SAASV,OAAO,IAAIW,wBAApB,QAAoD,8BAApD;AACA,SAASX,OAAO,IAAIY,sBAApB,QAAkD,6BAAlD;AACA,SAASZ,OAAO,IAAIa,qBAApB,QAAiD,4BAAjD;AACA,SAASb,OAAO,IAAIc,aAApB,QAAyC,mBAAzC;AACA,SAASd,OAAO,IAAIe,oBAApB,QAAgD,2BAAhD;AACA,SAASf,OAAO,IAAIgB,eAApB,QAA2C,qBAA3C;AACA,SAAShB,OAAO,IAAIiB,yBAApB,QAAqD,gCAArD;AACA,SAASjB,OAAO,IAAIkB,WAApB,QAAuC,iBAAvC;AACA,SAASlB,OAAO,IAAImB,mBAApB,QAA+C,yBAA/C;AACA,SAASnB,OAAO,IAAIoB,YAApB,QAAwC,iBAAxC;AACA,SAASpB,OAAO,IAAIqB,gBAApB,QAA4C,uBAA5C;AACA,SAASrB,OAAO,IAAIsB,kBAApB,QAA8C,wBAA9C;AACA,SAAStB,OAAO,IAAIuB,qBAApB,QAAiD,4BAAjD;AACA,SAASvB,OAAO,IAAIwB,eAApB,QAA2C,qBAA3C;AACA,SAASxB,OAAO,IAAIyB,aAApB,QAAyC,mBAAzC;AACA,SAASzB,OAAO,IAAI0B,kBAApB,QAA8C,wBAA9C;AACA,SAAS1B,OAAO,IAAI2B,mBAApB,QAA+C,0BAA/C;AACA,SAAS3B,OAAO,IAAI4B,wBAApB,QAAoD,+BAApD;AACA,SAAS5B,OAAO,IAAI6B,uBAApB,QAAmD,+BAAnD;AACA,SAAS7B,OAAO,IAAI8B,oBAApB,QAAgD,4BAAhD;AACA,SAAS9B,OAAO,IAAI+B,SAApB,QAAqC,cAArC;AACA,SAAS/B,OAAO,IAAIgC,iBAApB,QAA6C,wBAA7C;AACA,SAAShC,OAAO,IAAIiC,QAApB,QAAoC,aAApC;AACA,SAASjC,OAAO,IAAIkC,oBAApB,QAAgD,2BAAhD;AACA,SAASlC,OAAO,IAAImC,mBAApB,QAA+C,0BAA/C;AACA,SAASnC,OAAO,IAAIoC,cAApB,QAA0C,mBAA1C;AACA,SAASpC,OAAO,IAAIqC,oBAApB,QAAgD,0BAAhD;AACA,SAASrC,OAAO,IAAIsC,kBAApB,QAA8C,wBAA9C;AACA,SAAStC,OAAO,IAAIuC,gBAApB,QAA4C,sBAA5C;AACA,SAASvC,OAAO,IAAIwC,aAApB,QAAyC,kBAAzC;AACA,SAASxC,OAAO,IAAIyC,gBAApB,QAA4C,sBAA5C;AACA,SAASzC,OAAO,IAAI0C,qBAApB,QAAiD,2BAAjD;AACA,SAAS1C,OAAO,IAAI2C,mBAApB,QAA+C,0BAA/C;AACA,SAAS3C,OAAO,IAAI4C,oBAApB,QAAgD,0BAAhD;AACA,SAAS5C,OAAO,IAAI6C,kBAApB,QAA8C,yBAA9C;AACA,SAAS7C,OAAO,IAAI8C,aAApB,QAAyC,mBAAzC;AACA,SAAS9C,OAAO,IAAI+C,wBAApB,QAAoD,8BAApD;AACA,SAAS/C,OAAO,IAAIgD,WAApB,QAAuC,gBAAvC;AACA,SAAShD,OAAO,IAAIiD,gBAApB,QAA4C,sBAA5C;AACA,SAASjD,OAAO,IAAIkD,mBAApB,QAA+C,0BAA/C;AACA,SAASlD,OAAO,IAAImD,sBAApB,QAAkD,6BAAlD;AACA,SAASnD,OAAO,IAAIoD,YAApB,QAAwC,iBAAxC;AACA,SAASpD,OAAO,IAAIqD,cAApB,QAA0C,mBAA1C"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/inject-banner.js"],"names":["React","parseInterval","Banner","injectBanner","entities","banner","interval","transform","parsedInterval","entitySet","bannerElement","splice"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,aAAP,MAA0B,kBAA1B;AACA,OAAOC,MAAP,MAAmB,sBAAnB;AAEA,eAAe,SAASC,YAAT,CAAsBC,QAAtB,EAAgCC,MAAhC,EAAwC;AACrD,QAAM;AAAEC,IAAAA,QAAF;AAAYC,IAAAA,SAAS,GAAG;AAAxB,MAAkCF,MAAxC;AACA,QAAMG,cAAc,GAAGP,aAAa,CAACK,QAAD,CAApC;AACA,QAAMG,SAAS,GAAG,CAAC,GAAGL,QAAJ,CAAlB;AAEA,QAAMM,aAAa,GAAGH,SAAS,gBAAG,oBAAC,MAAD,EAAYF,MAAZ,CAAH,GAA4BA,MAA3D;AAEAI,EAAAA,SAAS,CAACE,MAAV,CAAiBH,cAAjB,EAAiC,CAAjC,EAAoCE,aAApC;AAEA,SAAOD,SAAP;AACD","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"],"file":"inject-banner.js"}
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,KAAP,MAAkB,OAAlB;AACA,OAAOC,aAAP,MAA0B,kBAA1B;AACA,OAAOC,MAAP,MAAmB,sBAAnB;AAEA,eAAe,SAASC,YAAT,CAAsBC,QAAtB,EAAgCC,MAAhC,EAAwC;EACrD,MAAM;IAAEC,QAAF;IAAYC,SAAS,GAAG;EAAxB,IAAkCF,MAAxC;EACA,MAAMG,cAAc,GAAGP,aAAa,CAACK,QAAD,CAApC;EACA,MAAMG,SAAS,GAAG,CAAC,GAAGL,QAAJ,CAAlB;EAEA,MAAMM,aAAa,GAAGH,SAAS,gBAAG,oBAAC,MAAD,EAAYF,MAAZ,CAAH,GAA4BA,MAA3D;EAEAI,SAAS,CAACE,MAAV,CAAiBH,cAAjB,EAAiC,CAAjC,EAAoCE,aAApC;EAEA,OAAOD,SAAP;AACD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/inject-banners-to-entities.js"],"names":["injectBanner","getBannerData","injectMultipleBanners","injectBannersToEntities","entities","banner","options","length","repeat","bannerData","entitiesWithBanner"],"mappings":";;AAAA,OAAOA,YAAP,MAAyB,iBAAzB;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,qBAAP,MAAkC,2BAAlC;AAEA,eAAe,SAASC,uBAAT,CAAiCC,QAAjC,QAAmE;AAAA,MAAxB;AAAEC,IAAAA;AAAF,GAAwB;AAAA,MAAXC,OAAW;;AAChF,MAAI,CAACF,QAAQ,CAACG,MAAd,EAAsB,OAAO,EAAP;AAEtB,QAAM;AAAEC,IAAAA;AAAF,MAAaH,MAAnB;AACA,QAAMI,UAAU,GAAGR,aAAa,CAACI,MAAD,EAASC,OAAT,CAAhC;AAEA,QAAMI,kBAAkB,GAAGF,MAAM,GAC7BN,qBAAqB,CAACE,QAAD,EAAWK,UAAX,CADQ,GAE7BT,YAAY,CAACI,QAAD,EAAWK,UAAX,CAFhB;AAIA,SAAOC,kBAAP;AACD","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"],"file":"inject-banners-to-entities.js"}
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,YAAP,MAAyB,iBAAzB;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,qBAAP,MAAkC,2BAAlC;AAEA,eAAe,SAASC,uBAAT,CAAiCC,QAAjC,QAAmE;EAAA,IAAxB;IAAEC;EAAF,CAAwB;EAAA,IAAXC,OAAW;;EAChF,IAAI,CAACF,QAAQ,CAACG,MAAd,EAAsB,OAAO,EAAP;EAEtB,MAAM;IAAEC;EAAF,IAAaH,MAAnB;EACA,MAAMI,UAAU,GAAGR,aAAa,CAACI,MAAD,EAASC,OAAT,CAAhC;EAEA,MAAMI,kBAAkB,GAAGF,MAAM,GAC7BN,qBAAqB,CAACE,QAAD,EAAWK,UAAX,CADQ,GAE7BT,YAAY,CAACI,QAAD,EAAWK,UAAX,CAFhB;EAIA,OAAOC,kBAAP;AACD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js"],"names":["flatten","groupEntities","injectBanner","getBannersForEntities","entitiesSet","banner","interval","limit","controlledLimit","length","groups","entitiesWithBanner","map","chunk","sanitizedEntities","slice"],"mappings":"AAAA,OAAOA,OAAP,MAAoB,gBAApB;AACA,OAAOC,aAAP,MAA0B,sBAA1B;AACA,OAAOC,YAAP,MAAyB,qBAAzB;AAEA,eAAe,SAASC,qBAAT,CAA+BC,WAA/B,EAA4CC,MAA5C,EAAoD;AACjE,QAAM;AAAEC,IAAAA,QAAF;AAAYC,IAAAA;AAAZ,MAAsBF,MAA5B;AACA,QAAMG,eAAe,GAAGD,KAAK,IAAIH,WAAW,CAACK,MAA7C;AAEA,QAAMC,MAAM,GAAGT,aAAa,CAACG,WAAD,EAAcE,QAAQ,GAAG,CAAzB,CAA5B;AAEA,QAAMK,kBAAkB,GAAGD,MAAM,CAACE,GAAP,CAAWC,KAAK,IAAIX,YAAY,CAACW,KAAD,EAAQR,MAAR,CAAhC,CAA3B;AAEA,QAAMS,iBAAiB,GAAGd,OAAO,CAACW,kBAAD,CAAP,CAA4BI,KAA5B,CAAkC,CAAlC,EAAqCP,eAArC,CAA1B;AAEA,SAAOM,iBAAP;AACD","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"],"file":"get-banners-for-entities.js"}
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,OAAP,MAAoB,gBAApB;AACA,OAAOC,aAAP,MAA0B,sBAA1B;AACA,OAAOC,YAAP,MAAyB,qBAAzB;AAEA,eAAe,SAASC,qBAAT,CAA+BC,WAA/B,EAA4CC,MAA5C,EAAoD;EACjE,MAAM;IAAEC,QAAF;IAAYC;EAAZ,IAAsBF,MAA5B;EACA,MAAMG,eAAe,GAAGD,KAAK,IAAIH,WAAW,CAACK,MAA7C;EAEA,MAAMC,MAAM,GAAGT,aAAa,CAACG,WAAD,EAAcE,QAAQ,GAAG,CAAzB,CAA5B;EAEA,MAAMK,kBAAkB,GAAGD,MAAM,CAACE,GAAP,CAAWC,KAAK,IAAIX,YAAY,CAACW,KAAD,EAAQR,MAAR,CAAhC,CAA3B;EAEA,MAAMS,iBAAiB,GAAGd,OAAO,CAACW,kBAAD,CAAP,CAA4BI,KAA5B,CAAkC,CAAlC,EAAqCP,eAArC,CAA1B;EAEA,OAAOM,iBAAP;AACD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/helpers/inject-multiple-banners/get-banners-for-entities/index.js"],"names":["getBannersForEntities"],"mappings":"AAAA,OAAOA,qBAAP,MAAkC,4BAAlC;AAEA,eAAeA,qBAAf","sourcesContent":["import getBannersForEntities from './get-banners-for-entities';\n\nexport default getBannersForEntities;\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":["getBannersForEntities"],"sources":["../../../../src/helpers/inject-multiple-banners/get-banners-for-entities/index.js"],"sourcesContent":["import getBannersForEntities from './get-banners-for-entities';\n\nexport default getBannersForEntities;\n"],"mappings":"AAAA,OAAOA,qBAAP,MAAkC,4BAAlC;AAEA,eAAeA,qBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js"],"names":["flatten","groupNodeEntities","injectBanner","getBannersForNodes","entitiesSet","banner","groups","nodesWithBanner","map","chunk","index","key","adunit","interval","length"],"mappings":";;;;;;AAAA,OAAOA,OAAP,MAAoB,gBAApB;AACA,SAASC,iBAAT,QAAkC,WAAlC;AACA,OAAOC,YAAP,MAAyB,qBAAzB;AAEA,eAAe,SAASC,kBAAT,CAA4BC,WAA5B,EAAyCC,MAAzC,EAAiD;AAC9D,QAAMC,MAAM,GAAGL,iBAAiB,CAACG,WAAD,EAAcC,MAAd,CAAhC;AACA,QAAME,eAAe,GAAGD,MAAM,CAC3BE,GADqB,CACjB,CAACC,KAAD,EAAQC,KAAR,KAAkB;AACrB,UAAMC,GAAG,GAAI,GAAEN,MAAM,CAACO,MAAO,IAAGF,KAAM,EAAtC;AACA,UAAMG,QAAQ,GAAGJ,KAAK,CAACK,MAAN,GAAe,CAAhC;AAEA,WAAOZ,YAAY,CAACO,KAAD,kCAAaJ,MAAb;AAAqBM,MAAAA,GAArB;AAA0BE,MAAAA;AAA1B,OAAnB;AACD,GANqB,EAOrBL,GAPqB,CAOjBR,OAPiB,CAAxB;AASA,SAAOO,eAAP;AACD","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"],"file":"get-banners-for-nodes.js"}
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,OAAP,MAAoB,gBAApB;AACA,SAASC,iBAAT,QAAkC,WAAlC;AACA,OAAOC,YAAP,MAAyB,qBAAzB;AAEA,eAAe,SAASC,kBAAT,CAA4BC,WAA5B,EAAyCC,MAAzC,EAAiD;EAC9D,MAAMC,MAAM,GAAGL,iBAAiB,CAACG,WAAD,EAAcC,MAAd,CAAhC;EACA,MAAME,eAAe,GAAGD,MAAM,CAC3BE,GADqB,CACjB,CAACC,KAAD,EAAQC,KAAR,KAAkB;IACrB,MAAMC,GAAG,GAAI,GAAEN,MAAM,CAACO,MAAO,IAAGF,KAAM,EAAtC;IACA,MAAMG,QAAQ,GAAGJ,KAAK,CAACK,MAAN,GAAe,CAAhC;IAEA,OAAOZ,YAAY,CAACO,KAAD,kCAAaJ,MAAb;MAAqBM,GAArB;MAA0BE;IAA1B,GAAnB;EACD,CANqB,EAOrBL,GAPqB,CAOjBR,OAPiB,CAAxB;EASA,OAAOO,eAAP;AACD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/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"],"mappings":"AAAA,OAAOA,aAAP,MAA0B,yBAA1B;AAEA,eAAe,SAASC,iBAAT,CAA2BC,QAA3B,EAAqCC,OAArC,EAA8C;AAC3D,QAAM;AAAEC,IAAAA;AAAF,MAAeD,OAArB;AACA,QAAME,SAAS,GAAG,CAAC,GAAGH,QAAJ,CAAlB;AACA,QAAMI,MAAM,GAAG,EAAf;AACA,MAAIC,cAAc,GAAG,CAArB;AAEA,QAAMC,gBAAgB,GAAGH,SAAS,CAC/BI,GADsB,CAClB,CAAC;AAAEC,IAAAA;AAAF,GAAD,EAAYC,UAAZ,KAA2B;AAC9B,UAAMC,gBAAgB,GAAGF,KAAK,IAAIA,KAAK,CAACG,QAAf,IAA2BH,KAAK,CAACG,QAAN,CAAeC,MAAnE;AAEA,QAAIF,gBAAJ,EAAsB,OAAOD,UAAP;AAEtB,WAAO,IAAP;AACD,GAPsB,EAQtBI,MARsB,CAQfC,cAAc,IAAI,OAAOA,cAAP,KAA0B,QAR7B,CAAzB;AAUA,QAAMC,SAAS,GAAGjB,aAAa,CAACQ,gBAAD,EAAmBJ,QAAQ,GAAG,CAA9B,CAA/B;AAEAa,EAAAA,SAAS,CAACC,OAAV,CAAkBC,GAAG,IAAI;AACvB,UAAMC,GAAG,GAAGD,GAAG,CAACA,GAAG,CAACL,MAAJ,GAAa,CAAd,CAAH,GAAsB,CAAlC;AACA,UAAMO,KAAK,GAAGd,cAAc,IAAIY,GAAG,CAAC,CAAD,CAAnC;AAEA,UAAMG,QAAQ,GAAGjB,SAAS,CAACkB,KAAV,CAAgBF,KAAhB,EAAuBD,GAAvB,CAAjB;AAEAb,IAAAA,cAAc,GAAGa,GAAjB;AAEA,QAAIE,QAAQ,CAACR,MAAb,EAAqBR,MAAM,CAACkB,IAAP,CAAYF,QAAZ;AACtB,GATD;AAWA,SAAOhB,MAAP;AACD","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"],"file":"group-node-entities.js"}
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,aAAP,MAA0B,yBAA1B;AAEA,eAAe,SAASC,iBAAT,CAA2BC,QAA3B,EAAqCC,OAArC,EAA8C;EAC3D,MAAM;IAAEC;EAAF,IAAeD,OAArB;EACA,MAAME,SAAS,GAAG,CAAC,GAAGH,QAAJ,CAAlB;EACA,MAAMI,MAAM,GAAG,EAAf;EACA,IAAIC,cAAc,GAAG,CAArB;EAEA,MAAMC,gBAAgB,GAAGH,SAAS,CAC/BI,GADsB,CAClB,CAAC;IAAEC;EAAF,CAAD,EAAYC,UAAZ,KAA2B;IAC9B,MAAMC,gBAAgB,GAAGF,KAAK,IAAIA,KAAK,CAACG,QAAf,IAA2BH,KAAK,CAACG,QAAN,CAAeC,MAAnE;IAEA,IAAIF,gBAAJ,EAAsB,OAAOD,UAAP;IAEtB,OAAO,IAAP;EACD,CAPsB,EAQtBI,MARsB,CAQfC,cAAc,IAAI,OAAOA,cAAP,KAA0B,QAR7B,CAAzB;EAUA,MAAMC,SAAS,GAAGjB,aAAa,CAACQ,gBAAD,EAAmBJ,QAAQ,GAAG,CAA9B,CAA/B;EAEAa,SAAS,CAACC,OAAV,CAAkBC,GAAG,IAAI;IACvB,MAAMC,GAAG,GAAGD,GAAG,CAACA,GAAG,CAACL,MAAJ,GAAa,CAAd,CAAH,GAAsB,CAAlC;IACA,MAAMO,KAAK,GAAGd,cAAc,IAAIY,GAAG,CAAC,CAAD,CAAnC;IAEA,MAAMG,QAAQ,GAAGjB,SAAS,CAACkB,KAAV,CAAgBF,KAAhB,EAAuBD,GAAvB,CAAjB;IAEAb,cAAc,GAAGa,GAAjB;IAEA,IAAIE,QAAQ,CAACR,MAAb,EAAqBR,MAAM,CAACkB,IAAP,CAAYF,QAAZ;EACtB,CATD;EAWA,OAAOhB,MAAP;AACD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js"],"names":["groupNodeEntities"],"mappings":"AAAA,OAAOA,iBAAP,MAA8B,uBAA9B;AAEA,SAASA,iBAAT","sourcesContent":["import groupNodeEntities from './group-node-entities';\n\nexport { groupNodeEntities };\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":["groupNodeEntities"],"sources":["../../../../../src/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js"],"sourcesContent":["import groupNodeEntities from './group-node-entities';\n\nexport { groupNodeEntities };\n"],"mappings":"AAAA,OAAOA,iBAAP,MAA8B,uBAA9B;AAEA,SAASA,iBAAT"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/helpers/inject-multiple-banners/get-banners-for-nodes/index.js"],"names":["getBannersForNodes"],"mappings":"AAAA,OAAOA,kBAAP,MAA+B,yBAA/B;AAEA,eAAeA,kBAAf","sourcesContent":["import getBannersForNodes from './get-banners-for-nodes';\n\nexport default getBannersForNodes;\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":["getBannersForNodes"],"sources":["../../../../src/helpers/inject-multiple-banners/get-banners-for-nodes/index.js"],"sourcesContent":["import getBannersForNodes from './get-banners-for-nodes';\n\nexport default getBannersForNodes;\n"],"mappings":"AAAA,OAAOA,kBAAP,MAA+B,yBAA/B;AAEA,eAAeA,kBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/helpers/inject-multiple-banners/index.js"],"names":["injectMultipleBanners"],"mappings":"AAAA,OAAOA,qBAAP,MAAkC,2BAAlC;AAEA,eAAeA,qBAAf","sourcesContent":["import injectMultipleBanners from './inject-multiple-banners';\n\nexport default injectMultipleBanners;\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":["injectMultipleBanners"],"sources":["../../../src/helpers/inject-multiple-banners/index.js"],"sourcesContent":["import injectMultipleBanners from './inject-multiple-banners';\n\nexport default injectMultipleBanners;\n"],"mappings":"AAAA,OAAOA,qBAAP,MAAkC,2BAAlC;AAEA,eAAeA,qBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/helpers/inject-multiple-banners/inject-multiple-banners.js"],"names":["getBannersForEntities","getBannersForNodes","injectMultipleBanners","entities","banner","transform","entitiesSet","injectedEntities"],"mappings":"AAAA,OAAOA,qBAAP,MAAkC,4BAAlC;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AAEA,eAAe,SAASC,qBAAT,CAA+BC,QAA/B,EAAyCC,MAAzC,EAAiD;AAC9D,QAAM;AAAEC,IAAAA;AAAF,MAAgBD,MAAtB;AACA,QAAME,WAAW,GAAG,CAAC,GAAGH,QAAJ,CAApB;AAEA,QAAMI,gBAAgB,GAAGF,SAAS,GAC9BJ,kBAAkB,CAACK,WAAD,EAAcF,MAAd,CADY,GAE9BJ,qBAAqB,CAACM,WAAD,EAAcF,MAAd,CAFzB;AAIA,SAAOG,gBAAP;AACD","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"],"file":"inject-multiple-banners.js"}
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,qBAAP,MAAkC,4BAAlC;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AAEA,eAAe,SAASC,qBAAT,CAA+BC,QAA/B,EAAyCC,MAAzC,EAAiD;EAC9D,MAAM;IAAEC;EAAF,IAAgBD,MAAtB;EACA,MAAME,WAAW,GAAG,CAAC,GAAGH,QAAJ,CAApB;EAEA,MAAMI,gBAAgB,GAAGF,SAAS,GAC9BJ,kBAAkB,CAACK,WAAD,EAAcF,MAAd,CADY,GAE9BJ,qBAAqB,CAACM,WAAD,EAAcF,MAAd,CAFzB;EAIA,OAAOG,gBAAP;AACD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/is-browser.js"],"names":["isBrowser","window"],"mappings":"AAAA,MAAMA,SAAS,GAAG,MAAM,OAAOC,MAAP,KAAkB,WAA1C;;AAEA,eAAeD,SAAf","sourcesContent":["const isBrowser = () => typeof window !== 'undefined';\n\nexport default isBrowser;\n"],"file":"is-browser.js"}
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,MAAP,KAAkB,WAA1C;;AAEA,eAAeD,SAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/is-filter-entitys-id.js"],"names":["upperFirst","ID","isFilterEntitysId","entityName","itemEntityUpdated","id","includes"],"mappings":"AAAA,OAAOA,UAAP,MAAuB,mBAAvB;AACA,SAASC,EAAT,QAAmB,cAAnB;;AAEA,MAAMC,iBAAiB,GAAG,CAACC,UAAD,EAAaC,iBAAb,KAAmC;AAC3D,QAAMC,EAAE,GAAGL,UAAU,CAACC,EAAD,CAArB;AACA,SAAO,CACJ,GAAEG,iBAAkB,GAAEC,EAAG,EADrB,EAEJ,GAAED,iBAAkB,IAAGC,EAAG,EAFtB,EAGJ,GAAED,iBAAkB,GAAEC,EAAG,GAHrB,EAIJ,GAAED,iBAAkB,IAAGC,EAAG,GAJtB,EAKLC,QALK,CAKIH,UALJ,CAAP;AAMD,CARD;;AAUA,eAAeD,iBAAf","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"],"file":"is-filter-entitys-id.js"}
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,UAAP,MAAuB,mBAAvB;AACA,SAASC,EAAT,QAAmB,cAAnB;;AAEA,MAAMC,iBAAiB,GAAG,CAACC,UAAD,EAAaC,iBAAb,KAAmC;EAC3D,MAAMC,EAAE,GAAGL,UAAU,CAACC,EAAD,CAArB;EACA,OAAO,CACJ,GAAEG,iBAAkB,GAAEC,EAAG,EADrB,EAEJ,GAAED,iBAAkB,IAAGC,EAAG,EAFtB,EAGJ,GAAED,iBAAkB,GAAEC,EAAG,GAHrB,EAIJ,GAAED,iBAAkB,IAAGC,EAAG,GAJtB,EAKLC,QALK,CAKIH,UALJ,CAAP;AAMD,CARD;;AAUA,eAAeD,iBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/is-object.js"],"names":["isObject","value","Array","isArray"],"mappings":"AAAA,MAAMA,QAAQ,GAAGC,KAAK,IAAI,CAAC,EAAEA,KAAK,KAAK,IAAV,IAAkB,OAAOA,KAAP,KAAiB,QAAnC,IAA+C,CAACC,KAAK,CAACC,OAAN,CAAcF,KAAd,CAAlD,CAA3B;;AAEA,eAAeD,QAAf","sourcesContent":["const isObject = value => !!(value !== null && typeof value === 'object' && !Array.isArray(value));\n\nexport default isObject;\n"],"file":"is-object.js"}
1
+ {"version":3,"file":"is-object.js","names":["isObject","value","Array","isArray"],"sources":["../../src/helpers/is-object.js"],"sourcesContent":["const isObject = value => !!(value !== null && typeof value === 'object' && !Array.isArray(value));\n\nexport default isObject;\n"],"mappings":"AAAA,MAAMA,QAAQ,GAAGC,KAAK,IAAI,CAAC,EAAEA,KAAK,KAAK,IAAV,IAAkB,OAAOA,KAAP,KAAiB,QAAnC,IAA+C,CAACC,KAAK,CAACC,OAAN,CAAcF,KAAd,CAAlD,CAA3B;;AAEA,eAAeD,QAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/is-using-relation-image.js"],"names":["isUsingRelationImage","entity","fetchFromRelation","imageRelation","length"],"mappings":"AAAA,MAAMA,oBAAoB,GAAG,CAACC,MAAD,EAASC,iBAAT,EAA4BC,aAA5B,KAC3BF,MAAM,IAAIC,iBAAV,IAA+BC,aAAa,CAACC,MAD/C;;AAGA,eAAeJ,oBAAf","sourcesContent":["const isUsingRelationImage = (entity, fetchFromRelation, imageRelation) =>\n entity && fetchFromRelation && imageRelation.length;\n\nexport default isUsingRelationImage;\n"],"file":"is-using-relation-image.js"}
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,MAAD,EAASC,iBAAT,EAA4BC,aAA5B,KAC3BF,MAAM,IAAIC,iBAAV,IAA+BC,aAAa,CAACC,MAD/C;;AAGA,eAAeJ,oBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/parse-TextBlock.js"],"names":["parseHTML","domToReact","React","ANCHOR_TAG","TARGET_BLANK","parseTextBlock","config","html","LinkWrapper","useTargetBlank","options","replace","domNode","attribs","children","name","tagName","target"],"mappings":";AAAA,OAAOA,SAAP,IAAoBC,UAApB,QAAsC,mBAAtC;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAASC,UAAT,EAAqBC,YAArB,QAAyC,cAAzC;;AAEA,SAASC,cAAT,CAAwBC,MAAxB,EAAgC;AAC9B,QAAM;AAAEC,IAAAA,IAAF;AAAQC,IAAAA,WAAR;AAAqBC,IAAAA;AAArB,MAAwCH,MAA9C;AAEA,QAAMI,OAAO,GAAG;AACdC,IAAAA,OAAO,EAAEC,OAAO,IAAI;AAClB,YAAM;AAAEC,QAAAA,OAAF;AAAWC,QAAAA,QAAX;AAAqBC,QAAAA,IAAI,EAAEC;AAA3B,UAAuCJ,OAA7C;;AACA,UAAII,OAAO,KAAKb,UAAhB,EAA4B;AAC1B,cAAMc,MAAM,GAAGR,cAAc,GAAGL,YAAH,GAAkBS,OAAO,CAACI,MAAvD;AAEA,eAAOT,WAAW,gBAChB,oBAAC,WAAD,eAAiBK,OAAjB;AAA0B,UAAA,MAAM,EAAEI;AAAlC,YACGhB,UAAU,CAACa,QAAD,EAAWJ,OAAX,CADb,CADgB,GAKhBE,OALF;AAOD;;AACD,aAAO,IAAP;AACD;AAfa,GAAhB;AAkBA,SAAOZ,SAAS,CAACO,IAAD,EAAOG,OAAP,CAAhB;AACD;;AAED,eAAeL,cAAf","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"],"file":"parse-TextBlock.js"}
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,SAAP,IAAoBC,UAApB,QAAsC,mBAAtC;AACA,OAAOC,KAAP,MAAkB,OAAlB;AACA,SAASC,UAAT,EAAqBC,YAArB,QAAyC,cAAzC;;AAEA,SAASC,cAAT,CAAwBC,MAAxB,EAAgC;EAC9B,MAAM;IAAEC,IAAF;IAAQC,WAAR;IAAqBC;EAArB,IAAwCH,MAA9C;EAEA,MAAMI,OAAO,GAAG;IACdC,OAAO,EAAEC,OAAO,IAAI;MAClB,MAAM;QAAEC,OAAF;QAAWC,QAAX;QAAqBC,IAAI,EAAEC;MAA3B,IAAuCJ,OAA7C;;MACA,IAAII,OAAO,KAAKb,UAAhB,EAA4B;QAC1B,MAAMc,MAAM,GAAGR,cAAc,GAAGL,YAAH,GAAkBS,OAAO,CAACI,MAAvD;QAEA,OAAOT,WAAW,gBAChB,oBAAC,WAAD,eAAiBK,OAAjB;UAA0B,MAAM,EAAEI;QAAlC,IACGhB,UAAU,CAACa,QAAD,EAAWJ,OAAX,CADb,CADgB,GAKhBE,OALF;MAOD;;MACD,OAAO,IAAP;IACD;EAfa,CAAhB;EAkBA,OAAOZ,SAAS,CAACO,IAAD,EAAOG,OAAP,CAAhB;AACD;;AAED,eAAeL,cAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/parse-interval.js"],"names":["parseInterval","interval"],"mappings":"AAAA,eAAe,SAASA,aAAT,CAAuBC,QAAvB,EAAiC;AAC9C,SAAOA,QAAQ,GAAGA,QAAQ,GAAG,CAAd,GAAkB,CAAjC;AACD","sourcesContent":["export default function parseInterval(interval) {\n return interval ? interval - 1 : 0;\n}\n"],"file":"parse-interval.js"}
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,aAAT,CAAuBC,QAAvB,EAAiC;EAC9C,OAAOA,QAAQ,GAAGA,QAAQ,GAAG,CAAd,GAAkB,CAAjC;AACD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/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"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,QAAhB,QAAgC,OAAhC;AACA,OAAOC,EAAP,MAAe,WAAf;AACA,OAAOC,QAAP,MAAqB,aAArB;AACA,OAAOC,mBAAP,MAAgC,0BAAhC;AACA,OAAOC,sBAAP,MAAmC,6BAAnC;AACA,SAASC,QAAT,EAAmBC,0BAAnB,QAAqD,cAArD,C,CAEA;;AACA,MAAMC,mBAAmB,GAAG,CAACC,KAAK,GAAG,EAAT,EAAaC,cAAc,GAAG,EAA9B,KAAqC;AAC/D,MAAI,CAACP,QAAQ,CAACO,cAAc,CAAC,CAAD,CAAf,CAAb,EAAkC,OAAOR,EAAE,CAACO,KAAD,EAAQC,cAAR,CAAF,CAA0BC,MAA1B,CAAiCC,OAAjC,CAAP;AAElC,SAAOF,cAAc,CAACG,GAAf,CACL,CAAC;AAAEC,IAAAA,IAAF;AAAQC,IAAAA,mBAAR;AAA6BC,IAAAA,MAA7B;AAAqCC,IAAAA,MAArC;AAA6CC,IAAAA,WAA7C;AAA0DC,IAAAA;AAA1D,GAAD,EAAyEC,YAAzE,KAA0F;AACxF,UAAMC,OAAO,GAAGP,IAAI,GAAGR,QAAH,GAAcL,QAAlC;AAEA,UAAMqB,gBAAgB,GAAGlB,mBAAmB,CAAC;AAC3CW,MAAAA,mBAD2C;AAE3CN,MAAAA,KAF2C;AAG3CU,MAAAA,UAH2C;AAI3CD,MAAAA;AAJ2C,KAAD,CAA5C;AAOA,UAAMK,mBAAmB,GAAGlB,sBAAsB,CAACiB,gBAAD,CAAlD;AACA,QAAI,CAACC,mBAAD,IAAwB,CAACA,mBAAmB,CAACC,MAAjD,EAAyD,OAAO,IAAP;AACzD,UAAMC,cAAc,GAClBL,YAAY,GAAG,CAAf,KAAqBV,cAAc,CAACc,MAApC,GAA6C,EAA7C,GAAkDjB,0BADpD;AAGA,wBACE,oBAAC,OAAD,QACGS,MADH,OACYO,mBADZ,OACkCN,MADlC,EAEGQ,cAFH,CADF;AAMD,GAtBI,CAAP;AAwBD,CA3BD;;AA6BA,eAAejB,mBAAf","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"],"file":"parse-props-to-display.js"}
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,KAAP,IAAgBC,QAAhB,QAAgC,OAAhC;AACA,OAAOC,EAAP,MAAe,WAAf;AACA,OAAOC,QAAP,MAAqB,aAArB;AACA,OAAOC,mBAAP,MAAgC,0BAAhC;AACA,OAAOC,sBAAP,MAAmC,6BAAnC;AACA,SAASC,QAAT,EAAmBC,0BAAnB,QAAqD,cAArD,C,CAEA;;AACA,MAAMC,mBAAmB,GAAG,CAACC,KAAK,GAAG,EAAT,EAAaC,cAAc,GAAG,EAA9B,KAAqC;EAC/D,IAAI,CAACP,QAAQ,CAACO,cAAc,CAAC,CAAD,CAAf,CAAb,EAAkC,OAAOR,EAAE,CAACO,KAAD,EAAQC,cAAR,CAAF,CAA0BC,MAA1B,CAAiCC,OAAjC,CAAP;EAElC,OAAOF,cAAc,CAACG,GAAf,CACL,CAAC;IAAEC,IAAF;IAAQC,mBAAR;IAA6BC,MAA7B;IAAqCC,MAArC;IAA6CC,WAA7C;IAA0DC;EAA1D,CAAD,EAAyEC,YAAzE,KAA0F;IACxF,MAAMC,OAAO,GAAGP,IAAI,GAAGR,QAAH,GAAcL,QAAlC;IAEA,MAAMqB,gBAAgB,GAAGlB,mBAAmB,CAAC;MAC3CW,mBAD2C;MAE3CN,KAF2C;MAG3CU,UAH2C;MAI3CD;IAJ2C,CAAD,CAA5C;IAOA,MAAMK,mBAAmB,GAAGlB,sBAAsB,CAACiB,gBAAD,CAAlD;IACA,IAAI,CAACC,mBAAD,IAAwB,CAACA,mBAAmB,CAACC,MAAjD,EAAyD,OAAO,IAAP;IACzD,MAAMC,cAAc,GAClBL,YAAY,GAAG,CAAf,KAAqBV,cAAc,CAACc,MAApC,GAA6C,EAA7C,GAAkDjB,0BADpD;IAGA,oBACE,oBAAC,OAAD,QACGS,MADH,OACYO,mBADZ,OACkCN,MADlC,EAEGQ,cAFH,CADF;EAMD,CAtBI,CAAP;AAwBD,CA3BD;;AA6BA,eAAejB,mBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/remove-extra-items.js"],"names":["removeExtraItems","data","limit","itemId","newData","i","length","id","push"],"mappings":"AAAA,SAASA,gBAAT,CAA0BC,IAA1B,EAAgCC,KAAhC,EAAuCC,MAAvC,EAA+C;AAC7C,QAAMC,OAAO,GAAG,EAAhB,CAD6C,CAE7C;;AACA,OAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGJ,IAAI,CAACK,MAAzB,EAAiCD,CAAC,EAAlC,EAAsC;AACpC,QAAIJ,IAAI,CAACI,CAAD,CAAJ,CAAQE,EAAR,KAAeJ,MAAnB,EAA2B;AACzBC,MAAAA,OAAO,CAACI,IAAR,CAAaP,IAAI,CAACI,CAAD,CAAjB;AACD;;AACD,QAAID,OAAO,CAACE,MAAR,IAAkBJ,KAAtB,EAA6B;AAC9B;;AACD,SAAOE,OAAP;AACD;;AAED,eAAeJ,gBAAf","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"],"file":"remove-extra-items.js"}
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,gBAAT,CAA0BC,IAA1B,EAAgCC,KAAhC,EAAuCC,MAAvC,EAA+C;EAC7C,MAAMC,OAAO,GAAG,EAAhB,CAD6C,CAE7C;;EACA,KAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGJ,IAAI,CAACK,MAAzB,EAAiCD,CAAC,EAAlC,EAAsC;IACpC,IAAIJ,IAAI,CAACI,CAAD,CAAJ,CAAQE,EAAR,KAAeJ,MAAnB,EAA2B;MACzBC,OAAO,CAACI,IAAR,CAAaP,IAAI,CAACI,CAAD,CAAjB;IACD;;IACD,IAAID,OAAO,CAACE,MAAR,IAAkBJ,KAAtB,EAA6B;EAC9B;;EACD,OAAOE,OAAP;AACD;;AAED,eAAeJ,gBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/remove-unwanted-characters.js"],"names":["removeUnwantedCharacters","value","args","Array","isArray","map","removeCharacters","keyField","String","replace","trim"],"mappings":";;;;;;AAAA,SAASA,wBAAT,CAAkCC,KAAlC,EAAyC;AACvC,QAAMC,IAAI,GAAGD,KAAH,aAAGA,KAAH,cAAGA,KAAH,GAAY,EAAtB;AAEA,SAAOE,KAAK,CAACC,OAAN,CAAcF,IAAd,IAAsBD,KAAK,CAACI,GAAN,CAAUL,wBAAV,CAAtB,GAA4DM,gBAAgB,CAACJ,IAAD,CAAnF;AACD;;AAED,SAASI,gBAAT,CAA0BL,KAA1B,EAAiC;AAC/B,MAAI,OAAOA,KAAP,KAAiB,QAArB,EAA+B;AAC7B,UAAM;AAAEM,MAAAA;AAAF,QAAeN,KAArB;AACA,QAAI,CAACM,QAAL,EAAe,OAAON,KAAP;AACf,2CAAYA,KAAZ;AAAmB,OAACM,QAAD,GAAYP,wBAAwB,CAACC,KAAK,CAACM,QAAD,CAAN;AAAvD;AACD;;AAED,SAAOC,MAAM,CAACP,KAAD,CAAN,CACJQ,OADI,CACI,OADJ,EACa,EADb,EAEJA,OAFI,CAEI,KAFJ,EAEW,EAFX,EAGJC,IAHI,EAAP;AAID;;AAED,eAAeV,wBAAf","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"],"file":"remove-unwanted-characters.js"}
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,wBAAT,CAAkCC,KAAlC,EAAyC;EACvC,MAAMC,IAAI,GAAGD,KAAH,aAAGA,KAAH,cAAGA,KAAH,GAAY,EAAtB;EAEA,OAAOE,KAAK,CAACC,OAAN,CAAcF,IAAd,IAAsBD,KAAK,CAACI,GAAN,CAAUL,wBAAV,CAAtB,GAA4DM,gBAAgB,CAACJ,IAAD,CAAnF;AACD;;AAED,SAASI,gBAAT,CAA0BL,KAA1B,EAAiC;EAC/B,IAAI,OAAOA,KAAP,KAAiB,QAArB,EAA+B;IAC7B,MAAM;MAAEM;IAAF,IAAeN,KAArB;IACA,IAAI,CAACM,QAAL,EAAe,OAAON,KAAP;IACf,uCAAYA,KAAZ;MAAmB,CAACM,QAAD,GAAYP,wBAAwB,CAACC,KAAK,CAACM,QAAD,CAAN;IAAvD;EACD;;EAED,OAAOC,MAAM,CAACP,KAAD,CAAN,CACJQ,OADI,CACI,OADJ,EACa,EADb,EAEJA,OAFI,CAEI,KAFJ,EAEW,EAFX,EAGJC,IAHI,EAAP;AAID;;AAED,eAAeV,wBAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/helpers/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"],"mappings":";;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,kBAAT,QAAmC,cAAnC;;AAEA,MAAMC,eAAe,GAAG,CAACC,UAAD,EAAaC,WAAb,KAA6B;AACnD,QAAMC,eAAe,GAAG,EAAxB;AACAJ,EAAAA,kBAAkB,CAACK,OAAnB,CAA2BC,IAAI,IAAKF,eAAe,CAACE,IAAD,CAAf,GAAwBJ,UAAU,CAACI,IAAD,CAAtE;AACA,yCAAYH,WAAZ,GAA4BC,eAA5B;AACD,CAJD;;AAMA,MAAMG,cAAc,GAAG,CAACC,QAAD,EAAWC,UAAU,GAAG,EAAxB,KACrBV,KAAK,CAACW,QAAN,CAAeC,GAAf,CAAmBH,QAAnB,EAA6BI,KAAK,IAAI;AACpC,QAAMC,gBAAgB,GAAGD,KAAK,CAACE,KAAN,CAAYN,QAArC;;AACA,MAAIO,KAAK,CAACC,OAAN,CAAcH,gBAAd,KAAmCA,gBAAgB,CAACI,MAAxD,EAAgE;AAC9D,UAAM,GAAGC,cAAH,IAAqBN,KAAK,CAACE,KAAN,CAAYN,QAAvC;AACA,WACEO,KAAK,CAACC,OAAN,CAAcE,cAAd,KACAA,cAAc,CAACP,GAAf,CAAmBQ,WAAW,IAAIZ,cAAc,CAACY,WAAD,EAAcV,UAAd,CAAhD,CAFF;AAID;;AACD,QAAMP,UAAU,GAAGD,eAAe,CAACW,KAAK,CAACE,KAAP,EAAcL,UAAd,CAAlC;AACA,SAAOV,KAAK,CAACqB,YAAN,CAAmBR,KAAnB,oBAA+BV,UAA/B,EAAP;AACD,CAXD,CADF;;AAcA,eAAeK,cAAf","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"],"file":"render-children.js"}
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,KAAP,MAAkB,OAAlB;AACA,SAASC,kBAAT,QAAmC,cAAnC;;AAEA,MAAMC,eAAe,GAAG,CAACC,UAAD,EAAaC,WAAb,KAA6B;EACnD,MAAMC,eAAe,GAAG,EAAxB;EACAJ,kBAAkB,CAACK,OAAnB,CAA2BC,IAAI,IAAKF,eAAe,CAACE,IAAD,CAAf,GAAwBJ,UAAU,CAACI,IAAD,CAAtE;EACA,uCAAYH,WAAZ,GAA4BC,eAA5B;AACD,CAJD;;AAMA,MAAMG,cAAc,GAAG,CAACC,QAAD,EAAWC,UAAU,GAAG,EAAxB,KACrBV,KAAK,CAACW,QAAN,CAAeC,GAAf,CAAmBH,QAAnB,EAA6BI,KAAK,IAAI;EACpC,MAAMC,gBAAgB,GAAGD,KAAK,CAACE,KAAN,CAAYN,QAArC;;EACA,IAAIO,KAAK,CAACC,OAAN,CAAcH,gBAAd,KAAmCA,gBAAgB,CAACI,MAAxD,EAAgE;IAC9D,MAAM,GAAGC,cAAH,IAAqBN,KAAK,CAACE,KAAN,CAAYN,QAAvC;IACA,OACEO,KAAK,CAACC,OAAN,CAAcE,cAAd,KACAA,cAAc,CAACP,GAAf,CAAmBQ,WAAW,IAAIZ,cAAc,CAACY,WAAD,EAAcV,UAAd,CAAhD,CAFF;EAID;;EACD,MAAMP,UAAU,GAAGD,eAAe,CAACW,KAAK,CAACE,KAAP,EAAcL,UAAd,CAAlC;EACA,OAAOV,KAAK,CAACqB,YAAN,CAAmBR,KAAnB,oBAA+BV,UAA/B,EAAP;AACD,CAXD,CADF;;AAcA,eAAeK,cAAf"}