@blaze-cms/react-page-builder 0.127.0 → 0.127.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/lib/BannerContext/helpers/index.js.map +1 -1
- package/lib/BannerContext/helpers/set-initial-banner-counters.js.map +1 -1
- package/lib/BannerContext/index.js.map +1 -1
- package/lib/HOC/index.js.map +1 -1
- package/lib/HOC/withInfiniteScroll.js +21 -23
- package/lib/HOC/withInfiniteScroll.js.map +1 -1
- package/lib/HOC/withTitle.js.map +1 -1
- package/lib/PBContext/index.js.map +1 -1
- package/lib/application/query/index.js.map +1 -1
- package/lib/components/BackToTop/BackToTop.js.map +1 -1
- package/lib/components/BackToTop/index.js.map +1 -1
- package/lib/components/Banner/AdSlotRender.js.map +1 -1
- package/lib/components/Banner/Banner.js +3 -3
- package/lib/components/Banner/Banner.js.map +1 -1
- package/lib/components/Banner/BannerRender.js.map +1 -1
- package/lib/components/Banner/helpers.js.map +1 -1
- package/lib/components/Banner/index.js.map +1 -1
- package/lib/components/BlazeLink.js.map +1 -1
- package/lib/components/Breadcrumb/Breadcrumb.js +11 -11
- package/lib/components/Breadcrumb/Breadcrumb.js.map +1 -1
- package/lib/components/Breadcrumb/index.js.map +1 -1
- package/lib/components/Button.js.map +1 -1
- package/lib/components/Card/Card.js.map +1 -1
- package/lib/components/Card/CardContainer.js.map +1 -1
- package/lib/components/Card/CardFactory.js.map +1 -1
- package/lib/components/Card/CardRender.js +4 -4
- package/lib/components/Card/CardRender.js.map +1 -1
- package/lib/components/Card/constants.js.map +1 -1
- package/lib/components/Card/helpers/filter-query-setup.js.map +1 -1
- package/lib/components/Card/helpers/filters-setup.js.map +1 -1
- package/lib/components/Card/helpers/get-dynamic-grid-classes.js +3 -3
- package/lib/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -1
- package/lib/components/Card/helpers/get-published-listing-url.js.map +1 -1
- package/lib/components/Card/helpers/index.js.map +1 -1
- package/lib/components/Card/helpers/should-return.js.map +1 -1
- package/lib/components/Card/helpers/should-skip-single-query.js.map +1 -1
- package/lib/components/Card/helpers/use-dynamic-size-key.js.map +1 -1
- package/lib/components/Card/index.js.map +1 -1
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
- package/lib/components/Carousel/CarouselImage/index.js.map +1 -1
- package/lib/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
- package/lib/components/Carousel/CarouselRender/index.js.map +1 -1
- package/lib/components/Carousel/index.js.map +1 -1
- package/lib/components/CarouselWrapper.js.map +1 -1
- package/lib/components/ClickWrapper.js.map +1 -1
- package/lib/components/Code/Code.js.map +1 -1
- package/lib/components/Code/ScriptTag.js.map +1 -1
- package/lib/components/Code/helpers/index.js.map +1 -1
- package/lib/components/Code/helpers/wrap-script-tags.js.map +1 -1
- package/lib/components/Code/index.js.map +1 -1
- package/lib/components/ContentGroup/ContentGroup.js.map +1 -1
- package/lib/components/ContentGroup/ContentGroupTabs.js.map +1 -1
- package/lib/components/ContentGroup/constants.js.map +1 -1
- package/lib/components/ContentGroup/helpers/get-active-tab.js.map +1 -1
- package/lib/components/ContentGroup/helpers/get-sections-data.js +8 -8
- package/lib/components/ContentGroup/helpers/get-sections-data.js.map +1 -1
- package/lib/components/ContentGroup/helpers/index.js.map +1 -1
- package/lib/components/ContentGroup/index.js.map +1 -1
- package/lib/components/ContentGroupSection/ContentGroupSection.js.map +1 -1
- package/lib/components/ContentGroupSection/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryFactory.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryRender.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
- package/lib/components/DataSummary/helpers/build-loop-props-content.js.map +1 -1
- package/lib/components/DataSummary/helpers/build-props-to-display-with-content.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-data-summary-query.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-link-to-published-content.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-loop-props-limit.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-prop-value.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-value-from-array.js.map +1 -1
- package/lib/components/DataSummary/helpers/index.js.map +1 -1
- package/lib/components/DataSummary/helpers/parse-boolean-values.js.map +1 -1
- package/lib/components/DataSummary/helpers/strip-summary-props-content.js.map +1 -1
- package/lib/components/DataSummary/index.js.map +1 -1
- package/lib/components/EmailConfirm/EmailConfirm.js +4 -4
- package/lib/components/EmailConfirm/EmailConfirm.js.map +1 -1
- package/lib/components/EmailConfirm/index.js.map +1 -1
- package/lib/components/EmailConfirm/mutation.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/NavButton.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/index.js.map +1 -1
- package/lib/components/Image/Image.js.map +1 -1
- package/lib/components/Image/ImageDetails.js.map +1 -1
- package/lib/components/Image/ImageFactory.js +9 -9
- package/lib/components/Image/ImageFactory.js.map +1 -1
- package/lib/components/Image/ImageRender.js.map +1 -1
- package/lib/components/Image/Lightbox/Lightbox.js.map +1 -1
- package/lib/components/Image/Lightbox/index.js.map +1 -1
- package/lib/components/Image/index.js.map +1 -1
- package/lib/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
- package/lib/components/ItemList/ItemListButton/index.js.map +1 -1
- package/lib/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
- package/lib/components/ItemList/ItemListCounter/index.js.map +1 -1
- package/lib/components/ItemList/ItemListNew/ItemListNew.js +3 -3
- package/lib/components/ItemList/ItemListNew/ItemListNew.js.map +1 -1
- package/lib/components/ItemList/ItemListNew/index.js.map +1 -1
- package/lib/components/ItemList/constants.js.map +1 -1
- package/lib/components/ItemList/helpers/get-item-list-data.js.map +1 -1
- package/lib/components/ItemList/helpers/get-item-list-id.js.map +1 -1
- package/lib/components/ItemList/helpers/get-item-list-ids.js.map +1 -1
- package/lib/components/ItemList/helpers/index.js.map +1 -1
- package/lib/components/ItemList/helpers/set-item-list-id.js.map +1 -1
- package/lib/components/ItemList/helpers/set-param-and-redirect.js.map +1 -1
- package/lib/components/ItemList/hooks/index.js.map +1 -1
- package/lib/components/ItemList/hooks/use-item-list-id.js.map +1 -1
- package/lib/components/Layout/Layout.js +4 -4
- package/lib/components/Layout/Layout.js.map +1 -1
- package/lib/components/Layout/constants.js.map +1 -1
- package/lib/components/Layout/helpers/check-if-row-has-columns.js.map +1 -1
- package/lib/components/Layout/helpers/get-styles-to-update.js.map +1 -1
- package/lib/components/Layout/helpers/index.js.map +1 -1
- package/lib/components/Layout/index.js.map +1 -1
- package/lib/components/LazyImage/LazyImage.js.map +1 -1
- package/lib/components/LazyImage/index.js.map +1 -1
- package/lib/components/List/ListBuilder.js.map +1 -1
- package/lib/components/List/ListFactory.js +9 -9
- package/lib/components/List/ListFactory.js.map +1 -1
- package/lib/components/List/ListRender.js.map +1 -1
- package/lib/components/List/components/Cards/CardRenderWithInfiniteScroll.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRender.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRenderItem.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
- package/lib/components/List/components/Cards/index.js.map +1 -1
- package/lib/components/List/components/Full/FullRender.js.map +1 -1
- package/lib/components/List/components/Full/FullRenderItem.js.map +1 -1
- package/lib/components/List/components/Full/FullRenderWithInfiniteScroll.js.map +1 -1
- package/lib/components/List/components/Full/index.js.map +1 -1
- package/lib/components/List/components/Header/ListHeader.js.map +1 -1
- package/lib/components/List/components/Header/index.js.map +1 -1
- package/lib/components/List/components/Pagination/Classic.js.map +1 -1
- package/lib/components/List/components/Pagination/ListPagination.js.map +1 -1
- package/lib/components/List/components/Pagination/LoadMore.js.map +1 -1
- package/lib/components/List/components/Pagination/index.js.map +1 -1
- package/lib/components/List/components/helpers/check-if-should-render-banner.js.map +1 -1
- package/lib/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -1
- package/lib/components/List/components/helpers/index.js.map +1 -1
- package/lib/components/List/components/index.js.map +1 -1
- package/lib/components/List/constants.js.map +1 -1
- package/lib/components/List/helpers/build-az-aggregations.js.map +1 -1
- package/lib/components/List/helpers/build-az-url.js.map +1 -1
- package/lib/components/List/helpers/build-pagination-items.js.map +1 -1
- package/lib/components/List/helpers/build-pagination-url.js.map +1 -1
- package/lib/components/List/helpers/get-az-query-filter.js.map +1 -1
- package/lib/components/List/helpers/get-items-per-page-to-use.js.map +1 -1
- package/lib/components/List/helpers/get-sort-props.js.map +1 -1
- package/lib/components/List/helpers/has-required-item-list-details.js.map +1 -1
- package/lib/components/List/helpers/index.js.map +1 -1
- package/lib/components/List/helpers/sort-aggs.js +10 -10
- package/lib/components/List/helpers/sort-aggs.js.map +1 -1
- package/lib/components/List/index.js.map +1 -1
- package/lib/components/Menu/Menu.js.map +1 -1
- package/lib/components/Menu/MenuContext.js.map +1 -1
- package/lib/components/Menu/index.js.map +1 -1
- package/lib/components/MenuItem/MenuItem.js.map +1 -1
- package/lib/components/MenuItem/index.js.map +1 -1
- package/lib/components/Modal/Modal.js.map +1 -1
- package/lib/components/Modal/index.js.map +1 -1
- package/lib/components/SearchContent/SearchContent.js.map +1 -1
- package/lib/components/SearchContent/SearchContentItems.js +1 -1
- package/lib/components/SearchContent/SearchContentItems.js.map +1 -1
- package/lib/components/SearchContent/SearchContentResults.js.map +1 -1
- package/lib/components/SearchContent/SearchContentToggleIcon.js.map +1 -1
- package/lib/components/SearchContent/index.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/index.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilterContainer.js +5 -5
- package/lib/components/SearchFilter/SearchFilterContainer.js.map +1 -1
- package/lib/components/SearchFilter/components/Checkbox.js.map +1 -1
- package/lib/components/SearchFilter/components/Range.js +4 -4
- package/lib/components/SearchFilter/components/Range.js.map +1 -1
- package/lib/components/SearchFilter/components/Select.js.map +1 -1
- package/lib/components/SearchFilter/components/TextSearch.js.map +1 -1
- package/lib/components/SearchFilter/components/index.js.map +1 -1
- package/lib/components/SearchFilter/constants.js.map +1 -1
- package/lib/components/SearchFilter/helpers/build-filters-query.js.map +1 -1
- package/lib/components/SearchFilter/helpers/build-new-query.js.map +1 -1
- package/lib/components/SearchFilter/helpers/build-query.js.map +1 -1
- package/lib/components/SearchFilter/helpers/build-raw-query-stringified.js.map +1 -1
- package/lib/components/SearchFilter/helpers/calculate-min-max.js.map +1 -1
- package/lib/components/SearchFilter/helpers/calculate-step.js.map +1 -1
- package/lib/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -1
- package/lib/components/SearchFilter/helpers/decode-encode.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-display-value.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-range-value.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-select-options.js.map +1 -1
- package/lib/components/SearchFilter/helpers/index.js.map +1 -1
- package/lib/components/SearchFilter/helpers/is-device-desktop.js.map +1 -1
- package/lib/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
- package/lib/components/SearchFilter/index.js.map +1 -1
- package/lib/components/SearchFilterSort/SearchFilterSort.js +5 -5
- package/lib/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
- package/lib/components/SearchFilterSort/constants.js.map +1 -1
- package/lib/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
- package/lib/components/SearchFilterSort/helpers/index.js.map +1 -1
- package/lib/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
- package/lib/components/SearchFilterSort/index.js.map +1 -1
- package/lib/components/SocialFollow/SFItem.js.map +1 -1
- package/lib/components/SocialFollow/SocialFollow.js.map +1 -1
- package/lib/components/SocialFollow/SocialFollowRender.js.map +1 -1
- package/lib/components/SocialFollow/index.js.map +1 -1
- package/lib/components/SocialFollow/sf.config.js.map +1 -1
- package/lib/components/SubMenu/SubMenu.js.map +1 -1
- package/lib/components/SubMenu/index.js.map +1 -1
- package/lib/components/TextBlock/TextBlockRender.js.map +1 -1
- package/lib/components/TextBlock/index.js.map +1 -1
- package/lib/components/Video/Video.js.map +1 -1
- package/lib/components/Video/VideoModal.js.map +1 -1
- package/lib/components/Video/VideoRender.js.map +1 -1
- package/lib/components/Video/index.js.map +1 -1
- package/lib/components/Video/providers/Default.js.map +1 -1
- package/lib/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
- package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
- package/lib/components/Video/providers/Vimeo/VimeoProvider.js +21 -23
- package/lib/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
- package/lib/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js.map +1 -1
- package/lib/components/Video/providers/Vimeo/helpers/index.js.map +1 -1
- package/lib/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
- package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
- package/lib/components/Video/providers/YouTube/helpers/index.js.map +1 -1
- package/lib/components/Video/providers/get-provider.js.map +1 -1
- package/lib/components/Video/providers/index.js.map +1 -1
- package/lib/components/Wrapper.js.map +1 -1
- package/lib/components/index.js.map +1 -1
- package/lib/constants/componentsDefaultValues.js.map +1 -1
- package/lib/constants/index.js.map +1 -1
- package/lib/helpers/append-images.js.map +1 -1
- package/lib/helpers/build-az-filter.js.map +1 -1
- package/lib/helpers/build-image-properties.js.map +1 -1
- package/lib/helpers/build-inherited-filters.js.map +1 -1
- package/lib/helpers/build-link-extra-props.js.map +1 -1
- package/lib/helpers/build-props-query.js.map +1 -1
- package/lib/helpers/build-query-fields.js.map +1 -1
- package/lib/helpers/build-raw-query-base.js +6 -6
- package/lib/helpers/build-raw-query-base.js.map +1 -1
- package/lib/helpers/build-raw-query.js.map +1 -1
- package/lib/helpers/build-search-values-checkbox-select.js.map +1 -1
- package/lib/helpers/build-search-values-text.js.map +1 -1
- package/lib/helpers/build-set-filters.js.map +1 -1
- package/lib/helpers/check-for-error.js.map +1 -1
- package/lib/helpers/check-props-to-use.js.map +1 -1
- package/lib/helpers/entities/constants.js.map +1 -1
- package/lib/helpers/get-banner-data.js.map +1 -1
- package/lib/helpers/get-click-wrapper-options.js +11 -11
- package/lib/helpers/get-click-wrapper-options.js.map +1 -1
- package/lib/helpers/get-current-offset.js.map +1 -1
- package/lib/helpers/get-dictionary-match.js.map +1 -1
- package/lib/helpers/get-display-count-data.js.map +1 -1
- package/lib/helpers/get-elasticsearch-operator.js.map +1 -1
- package/lib/helpers/get-entities-with-banner.js.map +1 -1
- package/lib/helpers/get-entity-data.js +3 -3
- package/lib/helpers/get-entity-data.js.map +1 -1
- package/lib/helpers/get-entity-render-props.js.map +1 -1
- package/lib/helpers/get-extra-az-bits.js.map +1 -1
- package/lib/helpers/get-filter-props.js.map +1 -1
- package/lib/helpers/get-filter-relation-keys.js.map +1 -1
- package/lib/helpers/get-generic-props.js.map +1 -1
- package/lib/helpers/get-generic-render-variables.js.map +1 -1
- package/lib/helpers/get-image-ids.js.map +1 -1
- package/lib/helpers/get-inherited-filters.js.map +1 -1
- package/lib/helpers/get-items-to-display-ids.js.map +1 -1
- package/lib/helpers/get-modifiers.js.map +1 -1
- package/lib/helpers/get-not-equal-query.js.map +1 -1
- package/lib/helpers/get-pagination-index.js.map +1 -1
- package/lib/helpers/get-parsed-prop-values.js.map +1 -1
- package/lib/helpers/get-parsed-summary-value.js.map +1 -1
- package/lib/helpers/get-prop-values.js.map +1 -1
- package/lib/helpers/get-query-filters.js.map +1 -1
- package/lib/helpers/get-query-props.js.map +1 -1
- package/lib/helpers/get-required-schemas.js.map +1 -1
- package/lib/helpers/get-sanitized-prop-values.js.map +1 -1
- package/lib/helpers/get-search-filter-type.js +4 -4
- package/lib/helpers/get-search-filter-type.js.map +1 -1
- package/lib/helpers/get-sort-by-field-name.js.map +1 -1
- package/lib/helpers/get-unpublished-entity-name.js.map +1 -1
- package/lib/helpers/get-updated-filter-by.js.map +1 -1
- package/lib/helpers/get-wrapped-value-with-link.js.map +1 -1
- package/lib/helpers/group-entities.js.map +1 -1
- package/lib/helpers/has-children.js.map +1 -1
- package/lib/helpers/index.js.map +1 -1
- package/lib/helpers/inject-banner.js.map +1 -1
- package/lib/helpers/inject-banners-to-entities.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-entities/index.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/index.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/index.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/inject-multiple-banners.js.map +1 -1
- package/lib/helpers/is-browser.js.map +1 -1
- package/lib/helpers/is-filter-entitys-id.js.map +1 -1
- package/lib/helpers/is-object.js.map +1 -1
- package/lib/helpers/is-using-relation-image.js.map +1 -1
- package/lib/helpers/parse-TextBlock.js.map +1 -1
- package/lib/helpers/parse-interval.js.map +1 -1
- package/lib/helpers/parse-props-to-display.js.map +1 -1
- package/lib/helpers/remove-extra-items.js.map +1 -1
- package/lib/helpers/remove-unwanted-characters.js.map +1 -1
- package/lib/helpers/render-children.js.map +1 -1
- package/lib/helpers/should-render-waypoint.js.map +1 -1
- package/lib/helpers/should-show-property.js.map +1 -1
- package/lib/helpers/sort-response-data.js.map +1 -1
- package/lib/helpers/split-children.js +12 -12
- package/lib/helpers/split-children.js.map +1 -1
- package/lib/helpers/update-childrens-parent.js.map +1 -1
- package/lib/hooks/helpers/RenderComponent.js +3 -2
- package/lib/hooks/helpers/RenderComponent.js.map +1 -1
- package/lib/hooks/helpers/StoreImages.js.map +1 -1
- package/lib/hooks/helpers/append-gtm-classname.js.map +1 -1
- package/lib/hooks/helpers/buildPBComponents.js +3 -3
- package/lib/hooks/helpers/buildPBComponents.js.map +1 -1
- package/lib/hooks/helpers/check-banner-insertion-set.js.map +1 -1
- package/lib/hooks/helpers/check-collisions.js.map +1 -1
- package/lib/hooks/helpers/constants.js.map +1 -1
- package/lib/hooks/helpers/get-banner-index.js.map +1 -1
- package/lib/hooks/helpers/get-banners-by-type.js.map +1 -1
- package/lib/hooks/helpers/get-lightbox-images.js.map +1 -1
- package/lib/hooks/helpers/getComponent.js.map +1 -1
- package/lib/hooks/helpers/index.js.map +1 -1
- package/lib/hooks/helpers/inject-element-banners.js.map +1 -1
- package/lib/hooks/helpers/inject-textblock-banners.js +3 -3
- package/lib/hooks/helpers/inject-textblock-banners.js.map +1 -1
- package/lib/hooks/helpers/insert-banners.js.map +1 -1
- package/lib/hooks/helpers/update-targetings.js.map +1 -1
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/use-banner-insertion.js.map +1 -1
- package/lib/hooks/use-check-mobile-screen.js.map +1 -1
- package/lib/hooks/use-get-entity-schema.js.map +1 -1
- package/lib/hooks/use-get-entity-schemas-as-obj.js.map +1 -1
- package/lib/hooks/use-get-image-id-from-relation.js.map +1 -1
- package/lib/hooks/use-get-images.js.map +1 -1
- package/lib/hooks/use-get-single-entity-schema.js.map +1 -1
- package/lib/hooks/use-page-builder.js +7 -9
- package/lib/hooks/use-page-builder.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/utils/component-map.js.map +1 -1
- package/lib/utils/get-class-modifiers.js.map +1 -1
- package/lib/utils/get-image-data.js.map +1 -1
- package/lib/utils/get-props-to-display-modifiers.js.map +1 -1
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/is-object-empty.js.map +1 -1
- package/lib-es/BannerContext/index.js.map +1 -1
- package/lib-es/HOC/withInfiniteScroll.js.map +1 -1
- package/lib-es/HOC/withTitle.js.map +1 -1
- package/lib-es/application/query/index.js.map +1 -1
- package/lib-es/components/BackToTop/BackToTop.js.map +1 -1
- package/lib-es/components/Banner/AdSlotRender.js.map +1 -1
- package/lib-es/components/Banner/Banner.js.map +1 -1
- package/lib-es/components/Banner/BannerRender.js.map +1 -1
- package/lib-es/components/Banner/helpers.js.map +1 -1
- package/lib-es/components/BlazeLink.js.map +1 -1
- package/lib-es/components/Breadcrumb/Breadcrumb.js.map +1 -1
- package/lib-es/components/Button.js.map +1 -1
- package/lib-es/components/Card/Card.js.map +1 -1
- package/lib-es/components/Card/CardContainer.js.map +1 -1
- package/lib-es/components/Card/CardFactory.js.map +1 -1
- package/lib-es/components/Card/CardRender.js.map +1 -1
- package/lib-es/components/Card/helpers/filter-query-setup.js.map +1 -1
- package/lib-es/components/Card/helpers/filters-setup.js.map +1 -1
- package/lib-es/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -1
- package/lib-es/components/Card/helpers/should-return.js.map +1 -1
- package/lib-es/components/Card/helpers/should-skip-single-query.js.map +1 -1
- package/lib-es/components/Card/helpers/use-dynamic-size-key.js.map +1 -1
- package/lib-es/components/Carousel/Carousel.js.map +1 -1
- package/lib-es/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
- package/lib-es/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
- package/lib-es/components/CarouselWrapper.js.map +1 -1
- package/lib-es/components/ClickWrapper.js.map +1 -1
- package/lib-es/components/Code/Code.js.map +1 -1
- package/lib-es/components/Code/ScriptTag.js.map +1 -1
- package/lib-es/components/Code/helpers/wrap-script-tags.js.map +1 -1
- package/lib-es/components/ContentGroup/ContentGroup.js.map +1 -1
- package/lib-es/components/ContentGroup/ContentGroupTabs.js.map +1 -1
- package/lib-es/components/ContentGroup/helpers/get-active-tab.js.map +1 -1
- package/lib-es/components/ContentGroupSection/ContentGroupSection.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryFactory.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryRender.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/build-loop-props-content.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/build-props-to-display-with-content.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/get-data-summary-query.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/get-link-to-published-content.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/get-loop-props-limit.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/get-prop-value.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/get-value-from-array.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/parse-boolean-values.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/strip-summary-props-content.js.map +1 -1
- package/lib-es/components/EmailConfirm/EmailConfirm.js.map +1 -1
- package/lib-es/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
- package/lib-es/components/Image/GlobalLightbox/NavButton.js.map +1 -1
- package/lib-es/components/Image/Image.js.map +1 -1
- package/lib-es/components/Image/ImageDetails.js.map +1 -1
- package/lib-es/components/Image/ImageFactory.js.map +1 -1
- package/lib-es/components/Image/ImageRender.js.map +1 -1
- package/lib-es/components/Image/Lightbox/Lightbox.js.map +1 -1
- package/lib-es/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
- package/lib-es/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
- package/lib-es/components/ItemList/ItemListNew/ItemListNew.js.map +1 -1
- package/lib-es/components/ItemList/helpers/get-item-list-id.js.map +1 -1
- package/lib-es/components/ItemList/helpers/set-item-list-id.js.map +1 -1
- package/lib-es/components/ItemList/helpers/set-param-and-redirect.js.map +1 -1
- package/lib-es/components/ItemList/hooks/use-item-list-id.js.map +1 -1
- package/lib-es/components/Layout/Layout.js.map +1 -1
- package/lib-es/components/Layout/helpers/check-if-row-has-columns.js.map +1 -1
- package/lib-es/components/Layout/helpers/get-styles-to-update.js.map +1 -1
- package/lib-es/components/LazyImage/LazyImage.js.map +1 -1
- package/lib-es/components/List/ListBuilder.js.map +1 -1
- package/lib-es/components/List/ListFactory.js.map +1 -1
- package/lib-es/components/List/ListRender.js.map +1 -1
- package/lib-es/components/List/components/Cards/CardsRender.js.map +1 -1
- package/lib-es/components/List/components/Cards/CardsRenderItem.js.map +1 -1
- package/lib-es/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
- package/lib-es/components/List/components/Full/FullRender.js.map +1 -1
- package/lib-es/components/List/components/Full/FullRenderItem.js.map +1 -1
- package/lib-es/components/List/components/Header/ListHeader.js.map +1 -1
- package/lib-es/components/List/components/Pagination/Classic.js.map +1 -1
- package/lib-es/components/List/components/Pagination/ListPagination.js.map +1 -1
- package/lib-es/components/List/components/Pagination/LoadMore.js.map +1 -1
- package/lib-es/components/List/components/helpers/check-if-should-render-banner.js.map +1 -1
- package/lib-es/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -1
- package/lib-es/components/List/helpers/build-az-aggregations.js.map +1 -1
- package/lib-es/components/List/helpers/build-az-url.js.map +1 -1
- package/lib-es/components/List/helpers/build-pagination-items.js.map +1 -1
- package/lib-es/components/List/helpers/build-pagination-url.js.map +1 -1
- package/lib-es/components/List/helpers/get-az-query-filter.js.map +1 -1
- package/lib-es/components/List/helpers/get-items-per-page-to-use.js.map +1 -1
- package/lib-es/components/List/helpers/get-sort-props.js.map +1 -1
- package/lib-es/components/List/helpers/has-required-item-list-details.js.map +1 -1
- package/lib-es/components/Menu/Menu.js.map +1 -1
- package/lib-es/components/MenuItem/MenuItem.js.map +1 -1
- package/lib-es/components/Modal/Modal.js.map +1 -1
- package/lib-es/components/SearchContent/SearchContent.js.map +1 -1
- package/lib-es/components/SearchContent/SearchContentItems.js +1 -1
- package/lib-es/components/SearchContent/SearchContentItems.js.map +1 -1
- package/lib-es/components/SearchContent/SearchContentResults.js.map +1 -1
- package/lib-es/components/SearchContent/SearchContentToggleIcon.js.map +1 -1
- package/lib-es/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
- package/lib-es/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
- package/lib-es/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -1
- package/lib-es/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
- package/lib-es/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
- package/lib-es/components/SearchFilter/SearchFilterContainer.js.map +1 -1
- package/lib-es/components/SearchFilter/components/Checkbox.js.map +1 -1
- package/lib-es/components/SearchFilter/components/Range.js.map +1 -1
- package/lib-es/components/SearchFilter/components/Select.js.map +1 -1
- package/lib-es/components/SearchFilter/components/TextSearch.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/build-filters-query.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/build-new-query.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/build-query.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/build-raw-query-stringified.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/calculate-min-max.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/calculate-step.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/get-display-value.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/get-range-value.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/get-select-options.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/is-device-desktop.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
- package/lib-es/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
- package/lib-es/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
- package/lib-es/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
- package/lib-es/components/SocialFollow/SFItem.js.map +1 -1
- package/lib-es/components/SocialFollow/SocialFollow.js.map +1 -1
- package/lib-es/components/SocialFollow/SocialFollowRender.js.map +1 -1
- package/lib-es/components/SubMenu/SubMenu.js.map +1 -1
- package/lib-es/components/TextBlock/TextBlockRender.js.map +1 -1
- package/lib-es/components/TextBlock/index.js.map +1 -1
- package/lib-es/components/Video/Video.js.map +1 -1
- package/lib-es/components/Video/VideoModal.js.map +1 -1
- package/lib-es/components/Video/VideoRender.js.map +1 -1
- package/lib-es/components/Video/providers/Default.js.map +1 -1
- package/lib-es/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
- package/lib-es/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
- package/lib-es/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
- package/lib-es/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js.map +1 -1
- package/lib-es/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
- package/lib-es/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
- package/lib-es/components/Video/providers/YouTube/helpers/index.js.map +1 -1
- package/lib-es/components/Video/providers/get-provider.js.map +1 -1
- package/lib-es/components/Wrapper.js.map +1 -1
- package/lib-es/helpers/append-images.js.map +1 -1
- package/lib-es/helpers/build-az-filter.js.map +1 -1
- package/lib-es/helpers/build-image-properties.js.map +1 -1
- package/lib-es/helpers/build-inherited-filters.js.map +1 -1
- package/lib-es/helpers/build-link-extra-props.js.map +1 -1
- package/lib-es/helpers/build-props-query.js.map +1 -1
- package/lib-es/helpers/build-query-fields.js.map +1 -1
- package/lib-es/helpers/build-raw-query-base.js.map +1 -1
- package/lib-es/helpers/build-raw-query.js.map +1 -1
- package/lib-es/helpers/build-search-values-checkbox-select.js.map +1 -1
- package/lib-es/helpers/build-search-values-text.js.map +1 -1
- package/lib-es/helpers/build-set-filters.js.map +1 -1
- package/lib-es/helpers/check-for-error.js.map +1 -1
- package/lib-es/helpers/check-props-to-use.js.map +1 -1
- package/lib-es/helpers/get-banner-data.js.map +1 -1
- package/lib-es/helpers/get-click-wrapper-options.js.map +1 -1
- package/lib-es/helpers/get-current-offset.js.map +1 -1
- package/lib-es/helpers/get-display-count-data.js.map +1 -1
- package/lib-es/helpers/get-elasticsearch-operator.js.map +1 -1
- package/lib-es/helpers/get-entities-with-banner.js.map +1 -1
- package/lib-es/helpers/get-entity-data.js.map +1 -1
- package/lib-es/helpers/get-entity-render-props.js.map +1 -1
- package/lib-es/helpers/get-extra-az-bits.js.map +1 -1
- package/lib-es/helpers/get-filter-props.js.map +1 -1
- package/lib-es/helpers/get-filter-relation-keys.js.map +1 -1
- package/lib-es/helpers/get-generic-props.js.map +1 -1
- package/lib-es/helpers/get-generic-render-variables.js.map +1 -1
- package/lib-es/helpers/get-image-ids.js.map +1 -1
- package/lib-es/helpers/get-inherited-filters.js.map +1 -1
- package/lib-es/helpers/get-items-to-display-ids.js.map +1 -1
- package/lib-es/helpers/get-modifiers.js.map +1 -1
- package/lib-es/helpers/get-not-equal-query.js.map +1 -1
- package/lib-es/helpers/get-pagination-index.js.map +1 -1
- package/lib-es/helpers/get-parsed-prop-values.js.map +1 -1
- package/lib-es/helpers/get-parsed-summary-value.js.map +1 -1
- package/lib-es/helpers/get-prop-values.js.map +1 -1
- package/lib-es/helpers/get-query-filters.js.map +1 -1
- package/lib-es/helpers/get-query-props.js.map +1 -1
- package/lib-es/helpers/get-required-schemas.js.map +1 -1
- package/lib-es/helpers/get-search-filter-type.js.map +1 -1
- package/lib-es/helpers/get-sort-by-field-name.js.map +1 -1
- package/lib-es/helpers/get-updated-filter-by.js.map +1 -1
- package/lib-es/helpers/get-wrapped-value-with-link.js.map +1 -1
- package/lib-es/helpers/group-entities.js.map +1 -1
- package/lib-es/helpers/inject-banner.js.map +1 -1
- package/lib-es/helpers/inject-banners-to-entities.js.map +1 -1
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.map +1 -1
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.map +1 -1
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js.map +1 -1
- package/lib-es/helpers/inject-multiple-banners/inject-multiple-banners.js.map +1 -1
- package/lib-es/helpers/is-browser.js.map +1 -1
- package/lib-es/helpers/is-filter-entitys-id.js.map +1 -1
- package/lib-es/helpers/is-using-relation-image.js.map +1 -1
- package/lib-es/helpers/parse-TextBlock.js.map +1 -1
- package/lib-es/helpers/parse-interval.js.map +1 -1
- package/lib-es/helpers/parse-props-to-display.js.map +1 -1
- package/lib-es/helpers/remove-extra-items.js.map +1 -1
- package/lib-es/helpers/remove-unwanted-characters.js.map +1 -1
- package/lib-es/helpers/render-children.js.map +1 -1
- package/lib-es/helpers/should-render-waypoint.js.map +1 -1
- package/lib-es/helpers/should-show-property.js.map +1 -1
- package/lib-es/helpers/sort-response-data.js.map +1 -1
- package/lib-es/helpers/split-children.js.map +1 -1
- package/lib-es/helpers/update-childrens-parent.js.map +1 -1
- package/lib-es/hooks/helpers/RenderComponent.js +3 -2
- package/lib-es/hooks/helpers/RenderComponent.js.map +1 -1
- package/lib-es/hooks/helpers/StoreImages.js.map +1 -1
- package/lib-es/hooks/helpers/append-gtm-classname.js.map +1 -1
- package/lib-es/hooks/helpers/buildPBComponents.js.map +1 -1
- package/lib-es/hooks/helpers/check-collisions.js.map +1 -1
- package/lib-es/hooks/helpers/get-banner-index.js.map +1 -1
- package/lib-es/hooks/helpers/get-banners-by-type.js.map +1 -1
- package/lib-es/hooks/helpers/get-lightbox-images.js.map +1 -1
- package/lib-es/hooks/helpers/getComponent.js.map +1 -1
- package/lib-es/hooks/helpers/inject-element-banners.js.map +1 -1
- package/lib-es/hooks/helpers/inject-textblock-banners.js.map +1 -1
- package/lib-es/hooks/helpers/insert-banners.js.map +1 -1
- package/lib-es/hooks/helpers/update-targetings.js.map +1 -1
- package/lib-es/hooks/use-check-mobile-screen.js.map +1 -1
- package/lib-es/hooks/use-get-entity-schema.js.map +1 -1
- package/lib-es/hooks/use-get-entity-schemas-as-obj.js.map +1 -1
- package/lib-es/hooks/use-get-image-id-from-relation.js.map +1 -1
- package/lib-es/hooks/use-get-images.js.map +1 -1
- package/lib-es/hooks/use-get-single-entity-schema.js.map +1 -1
- package/lib-es/hooks/use-page-builder.js.map +1 -1
- package/lib-es/utils/component-map.js.map +1 -1
- package/lib-es/utils/get-class-modifiers.js.map +1 -1
- package/lib-es/utils/get-image-data.js.map +1 -1
- package/lib-es/utils/is-object-empty.js.map +1 -1
- package/package.json +3 -2
- package/src/hooks/helpers/RenderComponent.js +19 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-raw-query-base.js","names":["getItemsToDisplayIds","OR","OR_OPERATOR","KEYWORD","buildCheckboxFilters","checkboxFilters","reduce","acc","checkboxFilter","push","match","buildFilterValues","listFilterValues","relations","stringProps","listFilterValuesKeys","Object","keys","map","key","values","el","updatedKey","isRelation","includes","relationName","relationProp","split","relation","filter","localField","entityIdentifier","fieldName","bool","should","buildItemsToDisplayValues","itemsToDisplay","length","itemToDisplayIds","ids","buildRawQueryBase","docType","id","filterValues","filterOperator","addListFiltersToQuery","listFilterFinalValues","checkboxFiltersValue","itemsToDisplayValues","isOperatorOr","queryFilters","baseBoolObject","must","term","mustNot","undefined","queryFilter","minimum_should_match","must_not"],"sources":["../../src/helpers/build-raw-query-base.js"],"sourcesContent":["import getItemsToDisplayIds from './get-items-to-display-ids';\nimport { OR, OR_OPERATOR, KEYWORD } from '../constants';\n\nconst buildCheckboxFilters = checkboxFilters =>\n checkboxFilters.reduce((acc, checkboxFilter) => {\n acc.push({ match: { [checkboxFilter]: true } });\n return acc;\n }, []);\n\nconst buildFilterValues = (listFilterValues, relations, stringProps) => {\n const listFilterValuesKeys = Object.keys(listFilterValues);\n\n return listFilterValuesKeys.map(key => {\n const values = listFilterValues[key].map(el => {\n let updatedKey = key;\n\n const isRelation = key.includes('.');\n\n if (isRelation) {\n const [relationName, relationProp] = key.split('.');\n const [relation] = relations.filter(({ localField }) => localField === relationName);\n const { entityIdentifier = '' } = relation || {};\n if (entityIdentifier && entityIdentifier !== relationName)\n updatedKey = `${entityIdentifier}.${relationProp}`;\n }\n const fieldName = stringProps.includes(updatedKey) ? `${key}.${KEYWORD}` : key;\n return { match: { [fieldName]: el } };\n });\n return { bool: { should: values } };\n });\n};\n\nconst buildItemsToDisplayValues = itemsToDisplay => {\n if (!itemsToDisplay || !itemsToDisplay.length) return [];\n const itemToDisplayIds = getItemsToDisplayIds(itemsToDisplay);\n return [{ ids: { values: itemToDisplayIds } }];\n};\n\nconst buildRawQueryBase = ({\n docType,\n id,\n filterValues: { checkboxFilters = [], listFilterValues = {} } = {},\n filterOperator,\n relations,\n stringProps,\n itemsToDisplay,\n addListFiltersToQuery = false\n}) => {\n const listFilterFinalValues = buildFilterValues(listFilterValues, relations, stringProps);\n const checkboxFiltersValue = buildCheckboxFilters(checkboxFilters);\n const itemsToDisplayValues = buildItemsToDisplayValues(itemsToDisplay);\n const isOperatorOr = filterOperator === OR;\n\n const queryFilters = [];\n const baseBoolObject = {\n must: [\n {\n term: {\n docType\n }\n },\n ...itemsToDisplayValues,\n ...checkboxFiltersValue\n ]\n };\n\n if (isOperatorOr) {\n if (addListFiltersToQuery) {\n queryFilters.push(...listFilterFinalValues);\n } else {\n baseBoolObject.must.push({ bool: { [OR_OPERATOR]: [...listFilterFinalValues] } });\n }\n } else {\n baseBoolObject.must.push(...listFilterFinalValues);\n }\n\n const mustNot = id ? [{ ids: { values: [id] } }] : undefined;\n\n const queryFilter = queryFilters.length\n ? { [OR_OPERATOR]: queryFilters, minimum_should_match: 1 }\n : {};\n return {\n ...queryFilter,\n filter: {\n bool: baseBoolObject\n },\n must_not: mustNot\n };\n};\n\nexport default buildRawQueryBase;\n"],"mappings":";;;AAAA,OAAOA,oBAAoB,MAAM,4BAA4B;AAC7D,SAASC,EAAE,EAAEC,WAAW,EAAEC,OAAO,QAAQ,cAAc;AAEvD,MAAMC,oBAAoB,GAAGC,eAAe,IAC1CA,eAAe,CAACC,MAAM,CAAC,CAACC,GAAG,EAAEC,cAAc,KAAK;EAC9CD,GAAG,CAACE,IAAI,CAAC;IAAEC,KAAK,EAAE;MAAE,CAACF,cAAc,GAAG;IAAK;EAAE,CAAC,CAAC;EAC/C,OAAOD,GAAG;AACZ,CAAC,EAAE,EAAE,CAAC;AAER,MAAMI,iBAAiB,
|
|
1
|
+
{"version":3,"file":"build-raw-query-base.js","names":["getItemsToDisplayIds","OR","OR_OPERATOR","KEYWORD","buildCheckboxFilters","checkboxFilters","reduce","acc","checkboxFilter","push","match","buildFilterValues","listFilterValues","relations","stringProps","listFilterValuesKeys","Object","keys","map","key","values","el","updatedKey","isRelation","includes","relationName","relationProp","split","relation","filter","localField","entityIdentifier","fieldName","bool","should","buildItemsToDisplayValues","itemsToDisplay","length","itemToDisplayIds","ids","buildRawQueryBase","docType","id","filterValues","filterOperator","addListFiltersToQuery","listFilterFinalValues","checkboxFiltersValue","itemsToDisplayValues","isOperatorOr","queryFilters","baseBoolObject","must","term","mustNot","undefined","queryFilter","minimum_should_match","_objectSpread","must_not"],"sources":["../../src/helpers/build-raw-query-base.js"],"sourcesContent":["import getItemsToDisplayIds from './get-items-to-display-ids';\nimport { OR, OR_OPERATOR, KEYWORD } from '../constants';\n\nconst buildCheckboxFilters = checkboxFilters =>\n checkboxFilters.reduce((acc, checkboxFilter) => {\n acc.push({ match: { [checkboxFilter]: true } });\n return acc;\n }, []);\n\nconst buildFilterValues = (listFilterValues, relations, stringProps) => {\n const listFilterValuesKeys = Object.keys(listFilterValues);\n\n return listFilterValuesKeys.map(key => {\n const values = listFilterValues[key].map(el => {\n let updatedKey = key;\n\n const isRelation = key.includes('.');\n\n if (isRelation) {\n const [relationName, relationProp] = key.split('.');\n const [relation] = relations.filter(({ localField }) => localField === relationName);\n const { entityIdentifier = '' } = relation || {};\n if (entityIdentifier && entityIdentifier !== relationName)\n updatedKey = `${entityIdentifier}.${relationProp}`;\n }\n const fieldName = stringProps.includes(updatedKey) ? `${key}.${KEYWORD}` : key;\n return { match: { [fieldName]: el } };\n });\n return { bool: { should: values } };\n });\n};\n\nconst buildItemsToDisplayValues = itemsToDisplay => {\n if (!itemsToDisplay || !itemsToDisplay.length) return [];\n const itemToDisplayIds = getItemsToDisplayIds(itemsToDisplay);\n return [{ ids: { values: itemToDisplayIds } }];\n};\n\nconst buildRawQueryBase = ({\n docType,\n id,\n filterValues: { checkboxFilters = [], listFilterValues = {} } = {},\n filterOperator,\n relations,\n stringProps,\n itemsToDisplay,\n addListFiltersToQuery = false\n}) => {\n const listFilterFinalValues = buildFilterValues(listFilterValues, relations, stringProps);\n const checkboxFiltersValue = buildCheckboxFilters(checkboxFilters);\n const itemsToDisplayValues = buildItemsToDisplayValues(itemsToDisplay);\n const isOperatorOr = filterOperator === OR;\n\n const queryFilters = [];\n const baseBoolObject = {\n must: [\n {\n term: {\n docType\n }\n },\n ...itemsToDisplayValues,\n ...checkboxFiltersValue\n ]\n };\n\n if (isOperatorOr) {\n if (addListFiltersToQuery) {\n queryFilters.push(...listFilterFinalValues);\n } else {\n baseBoolObject.must.push({ bool: { [OR_OPERATOR]: [...listFilterFinalValues] } });\n }\n } else {\n baseBoolObject.must.push(...listFilterFinalValues);\n }\n\n const mustNot = id ? [{ ids: { values: [id] } }] : undefined;\n\n const queryFilter = queryFilters.length\n ? { [OR_OPERATOR]: queryFilters, minimum_should_match: 1 }\n : {};\n return {\n ...queryFilter,\n filter: {\n bool: baseBoolObject\n },\n must_not: mustNot\n };\n};\n\nexport default buildRawQueryBase;\n"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-raw-query.js","names":["buildRawQueryBase","getItemsToDisplayIds","getExtraAzBits","buildAzFilter","AND_OPERATOR","buildRawQuery","docType","operator","searchValues","filterData","id","itemsToDisplay","shouldApplySort","azOptions","searchValuesText","searchValuesCheckboxSelectRange","searchValuesCheckboxOr","filterValues","filterOperator","relations","stringProps","azFilter","shouldReturnAggs","isAZ","searchValuesTextCheckboxSelectJoined","searchValuesTextCheckboxOr","length","finalValue","finalValueWithCheckboxOrValues","must","bool","should","finalValueIfNoCheckboxOrValues","mustValues","query","azQueryBits","itemsToDisplayIds","push","ids","values","sort","_script","type","script","lang","source","params","sortOrder","order"],"sources":["../../src/helpers/build-raw-query.js"],"sourcesContent":["import buildRawQueryBase from './build-raw-query-base';\nimport getItemsToDisplayIds from './get-items-to-display-ids';\nimport getExtraAzBits from './get-extra-az-bits';\nimport buildAzFilter from './build-az-filter';\nimport { AND_OPERATOR } from '../constants';\n\nconst buildRawQuery = (\n docType,\n operator,\n searchValues,\n filterData,\n id,\n itemsToDisplay,\n shouldApplySort,\n azOptions\n) => {\n const {\n searchValuesText,\n searchValuesCheckboxSelectRange,\n searchValuesCheckboxOr\n } = searchValues;\n\n const { filterValues, filterOperator, relations, stringProps, azFilter } = filterData;\n const { shouldReturnAggs, isAZ } = azOptions || {};\n const searchValuesTextCheckboxSelectJoined =\n operator === AND_OPERATOR ? [...searchValuesText, ...searchValuesCheckboxSelectRange] : [];\n let searchValuesTextCheckboxOr = searchValuesText;\n if (searchValuesCheckboxOr.length) {\n searchValuesTextCheckboxOr = [...searchValuesText, ...searchValuesCheckboxOr];\n }\n\n let finalValue;\n\n if (searchValuesTextCheckboxSelectJoined.length) {\n const finalValueWithCheckboxOrValues = {\n must: [...searchValuesTextCheckboxSelectJoined, { bool: { should: searchValuesCheckboxOr } }]\n };\n const finalValueIfNoCheckboxOrValues = { must: searchValuesTextCheckboxSelectJoined };\n finalValue = searchValuesCheckboxOr.length\n ? finalValueWithCheckboxOrValues\n : finalValueIfNoCheckboxOrValues;\n } else {\n finalValue = {\n must: [...searchValuesCheckboxSelectRange, { bool: { should: searchValuesTextCheckboxOr } }]\n };\n }\n const mustValues = [\n {\n bool: finalValue\n }\n ];\n\n buildAzFilter(azFilter, mustValues);\n\n const query = {\n bool: {\n must: mustValues,\n ...buildRawQueryBase({ docType, id, filterValues, filterOperator, relations, stringProps })\n }\n };\n const azQueryBits = getExtraAzBits(shouldReturnAggs, isAZ, azFilter);\n\n if (itemsToDisplay && itemsToDisplay.length) {\n const itemsToDisplayIds = getItemsToDisplayIds(itemsToDisplay);\n\n query.bool.must.push({ ids: { values: itemsToDisplayIds } });\n if (shouldApplySort) {\n return {\n query,\n sort: {\n _script: {\n type: 'number',\n script: {\n lang: 'painless',\n source:\n \"!doc['id.keyword'].empty ? params.sortOrder.indexOf(doc['id.keyword'].value) : 0\",\n params: {\n sortOrder: itemsToDisplayIds\n }\n },\n order: 'asc'\n }\n },\n ...azQueryBits\n };\n }\n }\n\n return isAZ\n ? {\n query,\n ...azQueryBits\n }\n : query;\n};\n\nexport default buildRawQuery;\n"],"mappings":";;;AAAA,OAAOA,iBAAiB,MAAM,wBAAwB;AACtD,OAAOC,oBAAoB,MAAM,4BAA4B;AAC7D,OAAOC,cAAc,MAAM,qBAAqB;AAChD,OAAOC,aAAa,MAAM,mBAAmB;AAC7C,SAASC,YAAY,QAAQ,cAAc;AAE3C,MAAMC,aAAa,
|
|
1
|
+
{"version":3,"file":"build-raw-query.js","names":["buildRawQueryBase","getItemsToDisplayIds","getExtraAzBits","buildAzFilter","AND_OPERATOR","buildRawQuery","docType","operator","searchValues","filterData","id","itemsToDisplay","shouldApplySort","azOptions","searchValuesText","searchValuesCheckboxSelectRange","searchValuesCheckboxOr","filterValues","filterOperator","relations","stringProps","azFilter","shouldReturnAggs","isAZ","searchValuesTextCheckboxSelectJoined","searchValuesTextCheckboxOr","length","finalValue","finalValueWithCheckboxOrValues","must","bool","should","finalValueIfNoCheckboxOrValues","mustValues","query","_objectSpread","azQueryBits","itemsToDisplayIds","push","ids","values","sort","_script","type","script","lang","source","params","sortOrder","order"],"sources":["../../src/helpers/build-raw-query.js"],"sourcesContent":["import buildRawQueryBase from './build-raw-query-base';\nimport getItemsToDisplayIds from './get-items-to-display-ids';\nimport getExtraAzBits from './get-extra-az-bits';\nimport buildAzFilter from './build-az-filter';\nimport { AND_OPERATOR } from '../constants';\n\nconst buildRawQuery = (\n docType,\n operator,\n searchValues,\n filterData,\n id,\n itemsToDisplay,\n shouldApplySort,\n azOptions\n) => {\n const {\n searchValuesText,\n searchValuesCheckboxSelectRange,\n searchValuesCheckboxOr\n } = searchValues;\n\n const { filterValues, filterOperator, relations, stringProps, azFilter } = filterData;\n const { shouldReturnAggs, isAZ } = azOptions || {};\n const searchValuesTextCheckboxSelectJoined =\n operator === AND_OPERATOR ? [...searchValuesText, ...searchValuesCheckboxSelectRange] : [];\n let searchValuesTextCheckboxOr = searchValuesText;\n if (searchValuesCheckboxOr.length) {\n searchValuesTextCheckboxOr = [...searchValuesText, ...searchValuesCheckboxOr];\n }\n\n let finalValue;\n\n if (searchValuesTextCheckboxSelectJoined.length) {\n const finalValueWithCheckboxOrValues = {\n must: [...searchValuesTextCheckboxSelectJoined, { bool: { should: searchValuesCheckboxOr } }]\n };\n const finalValueIfNoCheckboxOrValues = { must: searchValuesTextCheckboxSelectJoined };\n finalValue = searchValuesCheckboxOr.length\n ? finalValueWithCheckboxOrValues\n : finalValueIfNoCheckboxOrValues;\n } else {\n finalValue = {\n must: [...searchValuesCheckboxSelectRange, { bool: { should: searchValuesTextCheckboxOr } }]\n };\n }\n const mustValues = [\n {\n bool: finalValue\n }\n ];\n\n buildAzFilter(azFilter, mustValues);\n\n const query = {\n bool: {\n must: mustValues,\n ...buildRawQueryBase({ docType, id, filterValues, filterOperator, relations, stringProps })\n }\n };\n const azQueryBits = getExtraAzBits(shouldReturnAggs, isAZ, azFilter);\n\n if (itemsToDisplay && itemsToDisplay.length) {\n const itemsToDisplayIds = getItemsToDisplayIds(itemsToDisplay);\n\n query.bool.must.push({ ids: { values: itemsToDisplayIds } });\n if (shouldApplySort) {\n return {\n query,\n sort: {\n _script: {\n type: 'number',\n script: {\n lang: 'painless',\n source:\n \"!doc['id.keyword'].empty ? params.sortOrder.indexOf(doc['id.keyword'].value) : 0\",\n params: {\n sortOrder: itemsToDisplayIds\n }\n },\n order: 'asc'\n }\n },\n ...azQueryBits\n };\n }\n }\n\n return isAZ\n ? {\n query,\n ...azQueryBits\n }\n : query;\n};\n\nexport default buildRawQuery;\n"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-search-values-checkbox-select.js","names":["flatten","SEARCH_TERM","AND","KEYWORD","buildFieldName","fieldName","getFiltersProps","filters","map","propsToDisplay","buildSearchValuesCheckboxSelect","query","rangeFilters","checkboxFilters","selectFilters","queryParams","Object","keys","filter","param","rangeFilterProps","checkboxFilterProps","selectFilterProps","values","valuesOr","reduce","acc","queryParam","isQueryParamString","includes","min","max","split","push","range","gte","Number","lte","match","checkboxFilter","firstPropToDisplay","length","shouldBuildCheckboxOrValues","operator","fieldToPush","forEach","value"],"sources":["../../src/helpers/build-search-values-checkbox-select.js"],"sourcesContent":["import flatten from 'lodash.flatten';\nimport { SEARCH_TERM, AND, KEYWORD } from '../constants';\n\nconst buildFieldName = fieldName => `${fieldName}.${KEYWORD}`;\n\nconst getFiltersProps = filters => flatten(filters.map(({ propsToDisplay }) => propsToDisplay));\n\nconst buildSearchValuesCheckboxSelect = (query, rangeFilters, checkboxFilters, selectFilters) => {\n const queryParams = Object.keys(query).filter(param => param !== SEARCH_TERM);\n\n const rangeFilterProps = getFiltersProps(rangeFilters);\n const checkboxFilterProps = getFiltersProps(checkboxFilters);\n const selectFilterProps = getFiltersProps(selectFilters);\n\n const { values, valuesOr } = queryParams.reduce(\n (acc, queryParam) => {\n const isQueryParamString = typeof query[queryParam] === 'string';\n if (isQueryParamString) {\n if (rangeFilterProps.includes(queryParam)) {\n const [min, max] = query[queryParam].split('-');\n acc.values.push({\n range: {\n [queryParam]: {\n gte: Number(min),\n lte: Number(max)\n }\n }\n });\n } else if (\n checkboxFilterProps.includes(queryParam) ||\n selectFilterProps.includes(queryParam)\n ) {\n acc.values.push({\n match: { [buildFieldName(queryParam)]: query[queryParam] }\n });\n }\n } else {\n const checkboxFilter = checkboxFilters.filter(\n ({ propsToDisplay: [firstPropToDisplay] }) => firstPropToDisplay === queryParam\n );\n\n if (!checkboxFilter.length) return acc;\n\n const shouldBuildCheckboxOrValues = checkboxFilter.filter(\n ({ operator }) => operator !== AND\n ).length;\n\n const fieldToPush = shouldBuildCheckboxOrValues ? acc.valuesOr : acc.values;\n\n query[queryParam].forEach(value => {\n fieldToPush.push({ match: { [buildFieldName(queryParam)]: value } });\n });\n }\n\n return acc;\n },\n {\n values: [],\n valuesOr: []\n }\n );\n\n return { values, valuesOr };\n};\n\nexport default buildSearchValuesCheckboxSelect;\n"],"mappings":"AAAA,OAAOA,OAAO,MAAM,gBAAgB;AACpC,SAASC,WAAW,EAAEC,GAAG,EAAEC,OAAO,QAAQ,cAAc;AAExD,MAAMC,cAAc,GAAGC,SAAS,IAAK,GAAEA,SAAU,IAAGF,OAAQ,EAAC;AAE7D,MAAMG,eAAe,GAAGC,OAAO,IAAIP,OAAO,CAACO,OAAO,CAACC,GAAG,CAAC,CAAC;EAAEC;AAAe,CAAC,KAAKA,cAAc,CAAC,CAAC;AAE/F,MAAMC,+BAA+B,
|
|
1
|
+
{"version":3,"file":"build-search-values-checkbox-select.js","names":["flatten","SEARCH_TERM","AND","KEYWORD","buildFieldName","fieldName","getFiltersProps","filters","map","propsToDisplay","buildSearchValuesCheckboxSelect","query","rangeFilters","checkboxFilters","selectFilters","queryParams","Object","keys","filter","param","rangeFilterProps","checkboxFilterProps","selectFilterProps","values","valuesOr","reduce","acc","queryParam","isQueryParamString","includes","min","max","split","push","range","gte","Number","lte","match","checkboxFilter","firstPropToDisplay","length","shouldBuildCheckboxOrValues","operator","fieldToPush","forEach","value"],"sources":["../../src/helpers/build-search-values-checkbox-select.js"],"sourcesContent":["import flatten from 'lodash.flatten';\nimport { SEARCH_TERM, AND, KEYWORD } from '../constants';\n\nconst buildFieldName = fieldName => `${fieldName}.${KEYWORD}`;\n\nconst getFiltersProps = filters => flatten(filters.map(({ propsToDisplay }) => propsToDisplay));\n\nconst buildSearchValuesCheckboxSelect = (query, rangeFilters, checkboxFilters, selectFilters) => {\n const queryParams = Object.keys(query).filter(param => param !== SEARCH_TERM);\n\n const rangeFilterProps = getFiltersProps(rangeFilters);\n const checkboxFilterProps = getFiltersProps(checkboxFilters);\n const selectFilterProps = getFiltersProps(selectFilters);\n\n const { values, valuesOr } = queryParams.reduce(\n (acc, queryParam) => {\n const isQueryParamString = typeof query[queryParam] === 'string';\n if (isQueryParamString) {\n if (rangeFilterProps.includes(queryParam)) {\n const [min, max] = query[queryParam].split('-');\n acc.values.push({\n range: {\n [queryParam]: {\n gte: Number(min),\n lte: Number(max)\n }\n }\n });\n } else if (\n checkboxFilterProps.includes(queryParam) ||\n selectFilterProps.includes(queryParam)\n ) {\n acc.values.push({\n match: { [buildFieldName(queryParam)]: query[queryParam] }\n });\n }\n } else {\n const checkboxFilter = checkboxFilters.filter(\n ({ propsToDisplay: [firstPropToDisplay] }) => firstPropToDisplay === queryParam\n );\n\n if (!checkboxFilter.length) return acc;\n\n const shouldBuildCheckboxOrValues = checkboxFilter.filter(\n ({ operator }) => operator !== AND\n ).length;\n\n const fieldToPush = shouldBuildCheckboxOrValues ? acc.valuesOr : acc.values;\n\n query[queryParam].forEach(value => {\n fieldToPush.push({ match: { [buildFieldName(queryParam)]: value } });\n });\n }\n\n return acc;\n },\n {\n values: [],\n valuesOr: []\n }\n );\n\n return { values, valuesOr };\n};\n\nexport default buildSearchValuesCheckboxSelect;\n"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-search-values-text.js","names":["buildSearchValuesText","propsToDisplay","search_term","searchTerm","reduce","acc","field","index","match","pageBuilderIndexed","query","fuzziness"],"sources":["../../src/helpers/build-search-values-text.js"],"sourcesContent":["const buildSearchValuesText = ({ propsToDisplay }, { search_term: searchTerm }) =>\n propsToDisplay.reduce((acc, field, index) => {\n if (field && searchTerm) {\n if (index === 0) {\n acc[index] = {\n match: {\n pageBuilderIndexed: {\n query: searchTerm,\n fuzziness: 'AUTO'\n }\n }\n };\n }\n acc[index + 1] = {\n match: {\n [field]: {\n query: searchTerm,\n fuzziness: 'AUTO'\n }\n }\n };\n }\n return acc;\n }, []);\n\nexport default buildSearchValuesText;\n"],"mappings":"AAAA,MAAMA,qBAAqB,
|
|
1
|
+
{"version":3,"file":"build-search-values-text.js","names":["buildSearchValuesText","propsToDisplay","search_term","searchTerm","reduce","acc","field","index","match","pageBuilderIndexed","query","fuzziness"],"sources":["../../src/helpers/build-search-values-text.js"],"sourcesContent":["const buildSearchValuesText = ({ propsToDisplay }, { search_term: searchTerm }) =>\n propsToDisplay.reduce((acc, field, index) => {\n if (field && searchTerm) {\n if (index === 0) {\n acc[index] = {\n match: {\n pageBuilderIndexed: {\n query: searchTerm,\n fuzziness: 'AUTO'\n }\n }\n };\n }\n acc[index + 1] = {\n match: {\n [field]: {\n query: searchTerm,\n fuzziness: 'AUTO'\n }\n }\n };\n }\n return acc;\n }, []);\n\nexport default buildSearchValuesText;\n"],"mappings":"AAAA,MAAMA,qBAAqB,GAAGA,CAAC;EAAEC;AAAe,CAAC,EAAE;EAAEC,WAAW,EAAEC;AAAW,CAAC,KAC5EF,cAAc,CAACG,MAAM,CAAC,CAACC,GAAG,EAAEC,KAAK,EAAEC,KAAK,KAAK;EAC3C,IAAID,KAAK,IAAIH,UAAU,EAAE;IACvB,IAAII,KAAK,KAAK,CAAC,EAAE;MACfF,GAAG,CAACE,KAAK,CAAC,GAAG;QACXC,KAAK,EAAE;UACLC,kBAAkB,EAAE;YAClBC,KAAK,EAAEP,UAAU;YACjBQ,SAAS,EAAE;UACb;QACF;MACF,CAAC;IACH;IACAN,GAAG,CAACE,KAAK,GAAG,CAAC,CAAC,GAAG;MACfC,KAAK,EAAE;QACL,CAACF,KAAK,GAAG;UACPI,KAAK,EAAEP,UAAU;UACjBQ,SAAS,EAAE;QACb;MACF;IACF,CAAC;EACH;EACA,OAAON,GAAG;AACZ,CAAC,EAAE,EAAE,CAAC;AAER,eAAeL,qBAAqB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-set-filters.js","names":["FEATURED","SPONSORED","getCheckboxFilters","checkboxFilters","name","push","getFilterValues","filterBy","reduce","acc","filter","fieldName","values","split","value","join","previousValue","finalValue","buildSetFilters","filterByProperty","filterByFeatured","filterBySponsored","shouldApplyFilterValues","length","listFilterValues"],"sources":["../../src/helpers/build-set-filters.js"],"sourcesContent":["import { FEATURED, SPONSORED } from '../constants';\n\nconst getCheckboxFilters = (checkboxFilters, name) => {\n checkboxFilters.push(name);\n};\n\nconst getFilterValues = filterBy =>\n filterBy.reduce((acc, filter) => {\n const [fieldName, ...values] = filter.split('/');\n const value = values.join('/');\n const previousValue = acc[fieldName];\n const finalValue = previousValue ? [...previousValue, value] : [value];\n\n acc[fieldName] = finalValue;\n return acc;\n }, {});\n\nconst buildSetFilters = ({\n filterBy = [],\n filterByProperty = [],\n filterByFeatured,\n filterBySponsored\n}) => {\n const checkboxFilters = [];\n\n if (filterByFeatured) {\n getCheckboxFilters(checkboxFilters, FEATURED);\n }\n if (filterBySponsored) {\n getCheckboxFilters(checkboxFilters, SPONSORED);\n }\n\n const shouldApplyFilterValues = filterBy.length && filterByProperty.length;\n const listFilterValues = shouldApplyFilterValues ? getFilterValues(filterBy) : {};\n\n return { checkboxFilters, listFilterValues };\n};\n\nexport default buildSetFilters;\n"],"mappings":"AAAA,SAASA,QAAQ,EAAEC,SAAS,QAAQ,cAAc;AAElD,MAAMC,kBAAkB,
|
|
1
|
+
{"version":3,"file":"build-set-filters.js","names":["FEATURED","SPONSORED","getCheckboxFilters","checkboxFilters","name","push","getFilterValues","filterBy","reduce","acc","filter","fieldName","values","split","value","join","previousValue","finalValue","buildSetFilters","filterByProperty","filterByFeatured","filterBySponsored","shouldApplyFilterValues","length","listFilterValues"],"sources":["../../src/helpers/build-set-filters.js"],"sourcesContent":["import { FEATURED, SPONSORED } from '../constants';\n\nconst getCheckboxFilters = (checkboxFilters, name) => {\n checkboxFilters.push(name);\n};\n\nconst getFilterValues = filterBy =>\n filterBy.reduce((acc, filter) => {\n const [fieldName, ...values] = filter.split('/');\n const value = values.join('/');\n const previousValue = acc[fieldName];\n const finalValue = previousValue ? [...previousValue, value] : [value];\n\n acc[fieldName] = finalValue;\n return acc;\n }, {});\n\nconst buildSetFilters = ({\n filterBy = [],\n filterByProperty = [],\n filterByFeatured,\n filterBySponsored\n}) => {\n const checkboxFilters = [];\n\n if (filterByFeatured) {\n getCheckboxFilters(checkboxFilters, FEATURED);\n }\n if (filterBySponsored) {\n getCheckboxFilters(checkboxFilters, SPONSORED);\n }\n\n const shouldApplyFilterValues = filterBy.length && filterByProperty.length;\n const listFilterValues = shouldApplyFilterValues ? getFilterValues(filterBy) : {};\n\n return { checkboxFilters, listFilterValues };\n};\n\nexport default buildSetFilters;\n"],"mappings":"AAAA,SAASA,QAAQ,EAAEC,SAAS,QAAQ,cAAc;AAElD,MAAMC,kBAAkB,GAAGA,CAACC,eAAe,EAAEC,IAAI,KAAK;EACpDD,eAAe,CAACE,IAAI,CAACD,IAAI,CAAC;AAC5B,CAAC;AAED,MAAME,eAAe,GAAGC,QAAQ,IAC9BA,QAAQ,CAACC,MAAM,CAAC,CAACC,GAAG,EAAEC,MAAM,KAAK;EAC/B,MAAM,CAACC,SAAS,EAAE,GAAGC,MAAM,CAAC,GAAGF,MAAM,CAACG,KAAK,CAAC,GAAG,CAAC;EAChD,MAAMC,KAAK,GAAGF,MAAM,CAACG,IAAI,CAAC,GAAG,CAAC;EAC9B,MAAMC,aAAa,GAAGP,GAAG,CAACE,SAAS,CAAC;EACpC,MAAMM,UAAU,GAAGD,aAAa,GAAG,CAAC,GAAGA,aAAa,EAAEF,KAAK,CAAC,GAAG,CAACA,KAAK,CAAC;EAEtEL,GAAG,CAACE,SAAS,CAAC,GAAGM,UAAU;EAC3B,OAAOR,GAAG;AACZ,CAAC,EAAE,CAAC,CAAC,CAAC;AAER,MAAMS,eAAe,GAAGA,CAAC;EACvBX,QAAQ,GAAG,EAAE;EACbY,gBAAgB,GAAG,EAAE;EACrBC,gBAAgB;EAChBC;AACF,CAAC,KAAK;EACJ,MAAMlB,eAAe,GAAG,EAAE;EAE1B,IAAIiB,gBAAgB,EAAE;IACpBlB,kBAAkB,CAACC,eAAe,EAAEH,QAAQ,CAAC;EAC/C;EACA,IAAIqB,iBAAiB,EAAE;IACrBnB,kBAAkB,CAACC,eAAe,EAAEF,SAAS,CAAC;EAChD;EAEA,MAAMqB,uBAAuB,GAAGf,QAAQ,CAACgB,MAAM,IAAIJ,gBAAgB,CAACI,MAAM;EAC1E,MAAMC,gBAAgB,GAAGF,uBAAuB,GAAGhB,eAAe,CAACC,QAAQ,CAAC,GAAG,CAAC,CAAC;EAEjF,OAAO;IAAEJ,eAAe;IAAEqB;EAAiB,CAAC;AAC9C,CAAC;AAED,eAAeN,eAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-for-error.js","names":["checkForError","errors","message","errMsg","find","err","hasErr"],"sources":["../../src/helpers/check-for-error.js"],"sourcesContent":["const checkForError = (errors = []) => {\n const { message: errMsg } = errors.find((err = {}) => err && err.message) || {};\n\n return {\n hasErr: !!errMsg,\n errMsg\n };\n};\n\nexport default checkForError;\n"],"mappings":"AAAA,MAAMA,aAAa,
|
|
1
|
+
{"version":3,"file":"check-for-error.js","names":["checkForError","errors","message","errMsg","find","err","hasErr"],"sources":["../../src/helpers/check-for-error.js"],"sourcesContent":["const checkForError = (errors = []) => {\n const { message: errMsg } = errors.find((err = {}) => err && err.message) || {};\n\n return {\n hasErr: !!errMsg,\n errMsg\n };\n};\n\nexport default checkForError;\n"],"mappings":"AAAA,MAAMA,aAAa,GAAGA,CAACC,MAAM,GAAG,EAAE,KAAK;EACrC,MAAM;IAAEC,OAAO,EAAEC;EAAO,CAAC,GAAGF,MAAM,CAACG,IAAI,CAAC,CAACC,GAAG,GAAG,CAAC,CAAC,KAAKA,GAAG,IAAIA,GAAG,CAACH,OAAO,CAAC,IAAI,CAAC,CAAC;EAE/E,OAAO;IACLI,MAAM,EAAE,CAAC,CAACH,MAAM;IAChBA;EACF,CAAC;AACH,CAAC;AAED,eAAeH,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-props-to-use.js","names":["flatten","isObject","checkPropsToUse","propsToDisplay","map","propertiesToDisplay"],"sources":["../../src/helpers/check-props-to-use.js"],"sourcesContent":["import flatten from 'lodash.flatten';\nimport isObject from './is-object';\n\n// TODO this helper should be removed if database is wiped clean and all elements change to new props struc\nconst checkPropsToUse = (propsToDisplay = []) =>\n propsToDisplay && isObject(propsToDisplay[0])\n ? flatten(propsToDisplay.map(({ propertiesToDisplay }) => propertiesToDisplay))\n : propsToDisplay;\n\nexport default checkPropsToUse;\n"],"mappings":"AAAA,OAAOA,OAAO,MAAM,gBAAgB;AACpC,OAAOC,QAAQ,MAAM,aAAa;;AAElC;AACA,MAAMC,eAAe,
|
|
1
|
+
{"version":3,"file":"check-props-to-use.js","names":["flatten","isObject","checkPropsToUse","propsToDisplay","map","propertiesToDisplay"],"sources":["../../src/helpers/check-props-to-use.js"],"sourcesContent":["import flatten from 'lodash.flatten';\nimport isObject from './is-object';\n\n// TODO this helper should be removed if database is wiped clean and all elements change to new props struc\nconst checkPropsToUse = (propsToDisplay = []) =>\n propsToDisplay && isObject(propsToDisplay[0])\n ? flatten(propsToDisplay.map(({ propertiesToDisplay }) => propertiesToDisplay))\n : propsToDisplay;\n\nexport default checkPropsToUse;\n"],"mappings":"AAAA,OAAOA,OAAO,MAAM,gBAAgB;AACpC,OAAOC,QAAQ,MAAM,aAAa;;AAElC;AACA,MAAMC,eAAe,GAAGA,CAACC,cAAc,GAAG,EAAE,KAC1CA,cAAc,IAAIF,QAAQ,CAACE,cAAc,CAAC,CAAC,CAAC,CAAC,GACzCH,OAAO,CAACG,cAAc,CAACC,GAAG,CAAC,CAAC;EAAEC;AAAoB,CAAC,KAAKA,mBAAmB,CAAC,CAAC,GAC7EF,cAAc;AAEpB,eAAeD,eAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-banner-data.js","names":["getBannerData","banner","parent","limit","transform","entity","itemEntity"],"sources":["../../src/helpers/get-banner-data.js"],"sourcesContent":["export default function getBannerData(banner, { parent = {}, limit, transform }) {\n const entity = banner.entity || parent.itemEntity;\n return { ...banner, entity, parent, limit, transform };\n}\n"],"mappings":";;;AAAA,eAAe,SAASA,
|
|
1
|
+
{"version":3,"file":"get-banner-data.js","names":["getBannerData","banner","parent","limit","transform","entity","itemEntity","_objectSpread"],"sources":["../../src/helpers/get-banner-data.js"],"sourcesContent":["export default function getBannerData(banner, { parent = {}, limit, transform }) {\n const entity = banner.entity || parent.itemEntity;\n return { ...banner, entity, parent, limit, transform };\n}\n"],"mappings":";;;AAAA,eAAe,SAASA,aAAaA,CAACC,MAAM,EAAE;EAAEC,MAAM,GAAG,CAAC,CAAC;EAAEC,KAAK;EAAEC;AAAU,CAAC,EAAE;EAC/E,MAAMC,MAAM,GAAGJ,MAAM,CAACI,MAAM,IAAIH,MAAM,CAACI,UAAU;EACjD,OAAAC,aAAA,CAAAA,aAAA,KAAYN,MAAM;IAAEI,MAAM;IAAEH,MAAM;IAAEC,KAAK;IAAEC;EAAS;AACtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-click-wrapper-options.js","names":["ON_CLICK","getClickWrapperOptions","children","componentProps","id","shouldUseClickWrapper","props","childComponents","wrapperProps","clickEvents","map","child","component","settings","gtmEvents","find","eventTrigger","filter","Boolean","length","gtmChildren"],"sources":["../../src/helpers/get-click-wrapper-options.js"],"sourcesContent":["import { ON_CLICK } from '../constants';\n\nconst getClickWrapperOptions = (children = {}, componentProps = {}, id = null) => {\n let shouldUseClickWrapper = false;\n\n const { props: { children: childComponents = [] } = {} } = children || {};\n if (!childComponents || !childComponents[1]) return { shouldUseClickWrapper, wrapperProps: {} };\n\n const clickEvents = childComponents[1]\n .map(child => {\n const { props: { component: { settings: { gtmEvents } = {} } = {} } = {} } = child || {};\n if (!gtmEvents) return null;\n\n return gtmEvents.find(({ eventTrigger }) => eventTrigger === ON_CLICK);\n })\n .filter(Boolean);\n\n shouldUseClickWrapper = !!clickEvents && !!clickEvents.length;\n\n const wrapperProps = shouldUseClickWrapper\n ? { gtmChildren: children, ...componentProps, id }\n : {};\n\n return { shouldUseClickWrapper, wrapperProps };\n};\n\nexport default getClickWrapperOptions;\n"],"mappings":";;;AAAA,SAASA,QAAQ,QAAQ,cAAc;AAEvC,MAAMC,sBAAsB,
|
|
1
|
+
{"version":3,"file":"get-click-wrapper-options.js","names":["ON_CLICK","getClickWrapperOptions","children","componentProps","id","shouldUseClickWrapper","props","childComponents","wrapperProps","clickEvents","map","child","component","settings","gtmEvents","find","eventTrigger","filter","Boolean","length","_objectSpread","gtmChildren"],"sources":["../../src/helpers/get-click-wrapper-options.js"],"sourcesContent":["import { ON_CLICK } from '../constants';\n\nconst getClickWrapperOptions = (children = {}, componentProps = {}, id = null) => {\n let shouldUseClickWrapper = false;\n\n const { props: { children: childComponents = [] } = {} } = children || {};\n if (!childComponents || !childComponents[1]) return { shouldUseClickWrapper, wrapperProps: {} };\n\n const clickEvents = childComponents[1]\n .map(child => {\n const { props: { component: { settings: { gtmEvents } = {} } = {} } = {} } = child || {};\n if (!gtmEvents) return null;\n\n return gtmEvents.find(({ eventTrigger }) => eventTrigger === ON_CLICK);\n })\n .filter(Boolean);\n\n shouldUseClickWrapper = !!clickEvents && !!clickEvents.length;\n\n const wrapperProps = shouldUseClickWrapper\n ? { gtmChildren: children, ...componentProps, id }\n : {};\n\n return { shouldUseClickWrapper, wrapperProps };\n};\n\nexport default getClickWrapperOptions;\n"],"mappings":";;;AAAA,SAASA,QAAQ,QAAQ,cAAc;AAEvC,MAAMC,sBAAsB,GAAGA,CAACC,QAAQ,GAAG,CAAC,CAAC,EAAEC,cAAc,GAAG,CAAC,CAAC,EAAEC,EAAE,GAAG,IAAI,KAAK;EAChF,IAAIC,qBAAqB,GAAG,KAAK;EAEjC,MAAM;IAAEC,KAAK,EAAE;MAAEJ,QAAQ,EAAEK,eAAe,GAAG;IAAG,CAAC,GAAG,CAAC;EAAE,CAAC,GAAGL,QAAQ,IAAI,CAAC,CAAC;EACzE,IAAI,CAACK,eAAe,IAAI,CAACA,eAAe,CAAC,CAAC,CAAC,EAAE,OAAO;IAAEF,qBAAqB;IAAEG,YAAY,EAAE,CAAC;EAAE,CAAC;EAE/F,MAAMC,WAAW,GAAGF,eAAe,CAAC,CAAC,CAAC,CACnCG,GAAG,CAACC,KAAK,IAAI;IACZ,MAAM;MAAEL,KAAK,EAAE;QAAEM,SAAS,EAAE;UAAEC,QAAQ,EAAE;YAAEC;UAAU,CAAC,GAAG,CAAC;QAAE,CAAC,GAAG,CAAC;MAAE,CAAC,GAAG,CAAC;IAAE,CAAC,GAAGH,KAAK,IAAI,CAAC,CAAC;IACxF,IAAI,CAACG,SAAS,EAAE,OAAO,IAAI;IAE3B,OAAOA,SAAS,CAACC,IAAI,CAAC,CAAC;MAAEC;IAAa,CAAC,KAAKA,YAAY,KAAKhB,QAAQ,CAAC;EACxE,CAAC,CAAC,CACDiB,MAAM,CAACC,OAAO,CAAC;EAElBb,qBAAqB,GAAG,CAAC,CAACI,WAAW,IAAI,CAAC,CAACA,WAAW,CAACU,MAAM;EAE7D,MAAMX,YAAY,GAAGH,qBAAqB,GAAAe,aAAA,CAAAA,aAAA;IACpCC,WAAW,EAAEnB;EAAQ,GAAKC,cAAc;IAAEC;EAAE,KAC9C,CAAC,CAAC;EAEN,OAAO;IAAEC,qBAAqB;IAAEG;EAAa,CAAC;AAChD,CAAC;AAED,eAAeP,sBAAsB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-current-offset.js","names":["getCurrentOffset","offset","itemsPerPage","paginationIndex","limit","Number","cumulativeOffset"],"sources":["../../src/helpers/get-current-offset.js"],"sourcesContent":["const getCurrentOffset = (offset = 0, itemsPerPage = 1, paginationIndex = 1, limit) => {\n if (paginationIndex <= 1) return Number(offset);\n const cumulativeOffset = Number(offset) + Number(itemsPerPage) * (Number(paginationIndex) - 1);\n return !!limit && cumulativeOffset >= limit ? offset : cumulativeOffset;\n};\n\nexport default getCurrentOffset;\n"],"mappings":"AAAA,MAAMA,gBAAgB,
|
|
1
|
+
{"version":3,"file":"get-current-offset.js","names":["getCurrentOffset","offset","itemsPerPage","paginationIndex","limit","Number","cumulativeOffset"],"sources":["../../src/helpers/get-current-offset.js"],"sourcesContent":["const getCurrentOffset = (offset = 0, itemsPerPage = 1, paginationIndex = 1, limit) => {\n if (paginationIndex <= 1) return Number(offset);\n const cumulativeOffset = Number(offset) + Number(itemsPerPage) * (Number(paginationIndex) - 1);\n return !!limit && cumulativeOffset >= limit ? offset : cumulativeOffset;\n};\n\nexport default getCurrentOffset;\n"],"mappings":"AAAA,MAAMA,gBAAgB,GAAGA,CAACC,MAAM,GAAG,CAAC,EAAEC,YAAY,GAAG,CAAC,EAAEC,eAAe,GAAG,CAAC,EAAEC,KAAK,KAAK;EACrF,IAAID,eAAe,IAAI,CAAC,EAAE,OAAOE,MAAM,CAACJ,MAAM,CAAC;EAC/C,MAAMK,gBAAgB,GAAGD,MAAM,CAACJ,MAAM,CAAC,GAAGI,MAAM,CAACH,YAAY,CAAC,IAAIG,MAAM,CAACF,eAAe,CAAC,GAAG,CAAC,CAAC;EAC9F,OAAO,CAAC,CAACC,KAAK,IAAIE,gBAAgB,IAAIF,KAAK,GAAGH,MAAM,GAAGK,gBAAgB;AACzE,CAAC;AAED,eAAeN,gBAAgB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-display-count-data.js","names":["IMAGE","IMAGES","getDisplayCountData","displayMessage","images","imagesLength","length","shouldDisplayCount","message","countMessage"],"sources":["../../src/helpers/get-display-count-data.js"],"sourcesContent":["import { IMAGE, IMAGES } from '../constants';\n\nfunction getDisplayCountData(displayMessage, images) {\n const imagesLength = images && images.length;\n\n const shouldDisplayCount = !!(displayMessage && imagesLength);\n const message = `${imagesLength} ${imagesLength === 1 ? IMAGE : IMAGES}`;\n const countMessage = shouldDisplayCount ? message : '';\n\n return { shouldDisplayCount, countMessage };\n}\n\nexport default getDisplayCountData;\n"],"mappings":"AAAA,SAASA,KAAK,EAAEC,MAAM,QAAQ,cAAc;AAE5C,SAASC,
|
|
1
|
+
{"version":3,"file":"get-display-count-data.js","names":["IMAGE","IMAGES","getDisplayCountData","displayMessage","images","imagesLength","length","shouldDisplayCount","message","countMessage"],"sources":["../../src/helpers/get-display-count-data.js"],"sourcesContent":["import { IMAGE, IMAGES } from '../constants';\n\nfunction getDisplayCountData(displayMessage, images) {\n const imagesLength = images && images.length;\n\n const shouldDisplayCount = !!(displayMessage && imagesLength);\n const message = `${imagesLength} ${imagesLength === 1 ? IMAGE : IMAGES}`;\n const countMessage = shouldDisplayCount ? message : '';\n\n return { shouldDisplayCount, countMessage };\n}\n\nexport default getDisplayCountData;\n"],"mappings":"AAAA,SAASA,KAAK,EAAEC,MAAM,QAAQ,cAAc;AAE5C,SAASC,mBAAmBA,CAACC,cAAc,EAAEC,MAAM,EAAE;EACnD,MAAMC,YAAY,GAAGD,MAAM,IAAIA,MAAM,CAACE,MAAM;EAE5C,MAAMC,kBAAkB,GAAG,CAAC,EAAEJ,cAAc,IAAIE,YAAY,CAAC;EAC7D,MAAMG,OAAO,GAAI,GAAEH,YAAa,IAAGA,YAAY,KAAK,CAAC,GAAGL,KAAK,GAAGC,MAAO,EAAC;EACxE,MAAMQ,YAAY,GAAGF,kBAAkB,GAAGC,OAAO,GAAG,EAAE;EAEtD,OAAO;IAAED,kBAAkB;IAAEE;EAAa,CAAC;AAC7C;AAEA,eAAeP,mBAAmB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-elasticsearch-operator.js","names":["AND","AND_OPERATOR","OR_OPERATOR","getElasticsearchOperator","operator"],"sources":["../../src/helpers/get-elasticsearch-operator.js"],"sourcesContent":["import { AND, AND_OPERATOR, OR_OPERATOR } from '../constants';\n\nconst getElasticsearchOperator = ({ operator }) => (operator === AND ? AND_OPERATOR : OR_OPERATOR);\n\nexport default getElasticsearchOperator;\n"],"mappings":"AAAA,SAASA,GAAG,EAAEC,YAAY,EAAEC,WAAW,QAAQ,cAAc;AAE7D,MAAMC,wBAAwB,
|
|
1
|
+
{"version":3,"file":"get-elasticsearch-operator.js","names":["AND","AND_OPERATOR","OR_OPERATOR","getElasticsearchOperator","operator"],"sources":["../../src/helpers/get-elasticsearch-operator.js"],"sourcesContent":["import { AND, AND_OPERATOR, OR_OPERATOR } from '../constants';\n\nconst getElasticsearchOperator = ({ operator }) => (operator === AND ? AND_OPERATOR : OR_OPERATOR);\n\nexport default getElasticsearchOperator;\n"],"mappings":"AAAA,SAASA,GAAG,EAAEC,YAAY,EAAEC,WAAW,QAAQ,cAAc;AAE7D,MAAMC,wBAAwB,GAAGA,CAAC;EAAEC;AAAS,CAAC,KAAMA,QAAQ,KAAKJ,GAAG,GAAGC,YAAY,GAAGC,WAAY;AAElG,eAAeC,wBAAwB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-entities-with-banner.js","names":["injectBannersToEntities","getEntitiesWithBanner","entities","options","hasBanner"],"sources":["../../src/helpers/get-entities-with-banner.js"],"sourcesContent":["import injectBannersToEntities from './inject-banners-to-entities';\n\nexport default function getEntitiesWithBanner(entities, options) {\n const { hasBanner } = options;\n\n if (!hasBanner) return entities;\n\n return injectBannersToEntities(entities, options);\n}\n"],"mappings":"AAAA,OAAOA,uBAAuB,MAAM,8BAA8B;AAElE,eAAe,SAASC,
|
|
1
|
+
{"version":3,"file":"get-entities-with-banner.js","names":["injectBannersToEntities","getEntitiesWithBanner","entities","options","hasBanner"],"sources":["../../src/helpers/get-entities-with-banner.js"],"sourcesContent":["import injectBannersToEntities from './inject-banners-to-entities';\n\nexport default function getEntitiesWithBanner(entities, options) {\n const { hasBanner } = options;\n\n if (!hasBanner) return entities;\n\n return injectBannersToEntities(entities, options);\n}\n"],"mappings":"AAAA,OAAOA,uBAAuB,MAAM,8BAA8B;AAElE,eAAe,SAASC,qBAAqBA,CAACC,QAAQ,EAAEC,OAAO,EAAE;EAC/D,MAAM;IAAEC;EAAU,CAAC,GAAGD,OAAO;EAE7B,IAAI,CAACC,SAAS,EAAE,OAAOF,QAAQ;EAE/B,OAAOF,uBAAuB,CAACE,QAAQ,EAAEC,OAAO,CAAC;AACnD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-entity-data.js","names":["upperFirst","camelcase","getEntityData","entity","schema","publishedDocType","publishedEntityType","interfaces","nestedInterfaces","interfacesToCheck","includes","docType","entityType"],"sources":["../../src/helpers/get-entity-data.js"],"sourcesContent":["import upperFirst from 'lodash.upperfirst';\nimport camelcase from 'lodash.camelcase';\n\nconst getEntityData = (entity, schema) => {\n const publishedDocType = `published_${entity}`;\n const publishedEntityType = `Published${upperFirst(camelcase(entity))}`;\n\n if (schema) {\n const { interfaces, [entity]: { interfaces: nestedInterfaces } = {} } = schema || {};\n const interfacesToCheck = interfaces || nestedInterfaces;\n if (interfacesToCheck && !interfacesToCheck.includes('publish/publishable')) {\n return { docType: entity, entityType: upperFirst(camelcase(entity)) };\n }\n }\n\n return { docType: publishedDocType, entityType: publishedEntityType };\n};\n\nexport default getEntityData;\n"],"mappings":"AAAA,OAAOA,UAAU,MAAM,mBAAmB;AAC1C,OAAOC,SAAS,MAAM,kBAAkB;AAExC,MAAMC,aAAa,
|
|
1
|
+
{"version":3,"file":"get-entity-data.js","names":["upperFirst","camelcase","getEntityData","entity","schema","publishedDocType","publishedEntityType","interfaces","nestedInterfaces","interfacesToCheck","includes","docType","entityType"],"sources":["../../src/helpers/get-entity-data.js"],"sourcesContent":["import upperFirst from 'lodash.upperfirst';\nimport camelcase from 'lodash.camelcase';\n\nconst getEntityData = (entity, schema) => {\n const publishedDocType = `published_${entity}`;\n const publishedEntityType = `Published${upperFirst(camelcase(entity))}`;\n\n if (schema) {\n const { interfaces, [entity]: { interfaces: nestedInterfaces } = {} } = schema || {};\n const interfacesToCheck = interfaces || nestedInterfaces;\n if (interfacesToCheck && !interfacesToCheck.includes('publish/publishable')) {\n return { docType: entity, entityType: upperFirst(camelcase(entity)) };\n }\n }\n\n return { docType: publishedDocType, entityType: publishedEntityType };\n};\n\nexport default getEntityData;\n"],"mappings":"AAAA,OAAOA,UAAU,MAAM,mBAAmB;AAC1C,OAAOC,SAAS,MAAM,kBAAkB;AAExC,MAAMC,aAAa,GAAGA,CAACC,MAAM,EAAEC,MAAM,KAAK;EACxC,MAAMC,gBAAgB,GAAI,aAAYF,MAAO,EAAC;EAC9C,MAAMG,mBAAmB,GAAI,YAAWN,UAAU,CAACC,SAAS,CAACE,MAAM,CAAC,CAAE,EAAC;EAEvE,IAAIC,MAAM,EAAE;IACV,MAAM;MAAEG,UAAU;MAAE,CAACJ,MAAM,GAAG;QAAEI,UAAU,EAAEC;MAAiB,CAAC,GAAG,CAAC;IAAE,CAAC,GAAGJ,MAAM,IAAI,CAAC,CAAC;IACpF,MAAMK,iBAAiB,GAAGF,UAAU,IAAIC,gBAAgB;IACxD,IAAIC,iBAAiB,IAAI,CAACA,iBAAiB,CAACC,QAAQ,CAAC,qBAAqB,CAAC,EAAE;MAC3E,OAAO;QAAEC,OAAO,EAAER,MAAM;QAAES,UAAU,EAAEZ,UAAU,CAACC,SAAS,CAACE,MAAM,CAAC;MAAE,CAAC;IACvE;EACF;EAEA,OAAO;IAAEQ,OAAO,EAAEN,gBAAgB;IAAEO,UAAU,EAAEN;EAAoB,CAAC;AACvE,CAAC;AAED,eAAeJ,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-entity-render-props.js","names":["dataSchema","getAction","getEntityRenderProps","queryProps","data","isPreview","getEntitySchema","actions","getAllPublished","getAll","actionKey","action"],"sources":["../../src/helpers/get-entity-render-props.js"],"sourcesContent":["import { dataSchema } from './entities/constants';\nimport { getAction } from '../application/query';\n\nfunction getEntityRenderProps(queryProps, data = dataSchema, isPreview = false) {\n const { getEntitySchema } = data;\n\n const {\n actions: { getAllPublished, getAll }\n } = getEntitySchema;\n const actionKey = isPreview ? getAll : getAllPublished || getAll;\n const action = getAction(actionKey, queryProps);\n\n return { actionKey, action };\n}\n\nexport default getEntityRenderProps;\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,sBAAsB;AACjD,SAASC,SAAS,QAAQ,sBAAsB;AAEhD,SAASC,
|
|
1
|
+
{"version":3,"file":"get-entity-render-props.js","names":["dataSchema","getAction","getEntityRenderProps","queryProps","data","isPreview","getEntitySchema","actions","getAllPublished","getAll","actionKey","action"],"sources":["../../src/helpers/get-entity-render-props.js"],"sourcesContent":["import { dataSchema } from './entities/constants';\nimport { getAction } from '../application/query';\n\nfunction getEntityRenderProps(queryProps, data = dataSchema, isPreview = false) {\n const { getEntitySchema } = data;\n\n const {\n actions: { getAllPublished, getAll }\n } = getEntitySchema;\n const actionKey = isPreview ? getAll : getAllPublished || getAll;\n const action = getAction(actionKey, queryProps);\n\n return { actionKey, action };\n}\n\nexport default getEntityRenderProps;\n"],"mappings":"AAAA,SAASA,UAAU,QAAQ,sBAAsB;AACjD,SAASC,SAAS,QAAQ,sBAAsB;AAEhD,SAASC,oBAAoBA,CAACC,UAAU,EAAEC,IAAI,GAAGJ,UAAU,EAAEK,SAAS,GAAG,KAAK,EAAE;EAC9E,MAAM;IAAEC;EAAgB,CAAC,GAAGF,IAAI;EAEhC,MAAM;IACJG,OAAO,EAAE;MAAEC,eAAe;MAAEC;IAAO;EACrC,CAAC,GAAGH,eAAe;EACnB,MAAMI,SAAS,GAAGL,SAAS,GAAGI,MAAM,GAAGD,eAAe,IAAIC,MAAM;EAChE,MAAME,MAAM,GAAGV,SAAS,CAACS,SAAS,EAAEP,UAAU,CAAC;EAE/C,OAAO;IAAEO,SAAS;IAAEC;EAAO,CAAC;AAC9B;AAEA,eAAeT,oBAAoB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-extra-az-bits.js","names":["AZ_AGGS","ALL_AZ_SORT","getExtraAzBits","shouldReturnAggs","isAZ","azFilter"],"sources":["../../src/helpers/get-extra-az-bits.js"],"sourcesContent":["import { AZ_AGGS, ALL_AZ_SORT } from '../constants';\n\nconst getExtraAzBits = (shouldReturnAggs, isAZ, azFilter) => {\n if (!isAZ || (isAZ && azFilter)) return {};\n if (shouldReturnAggs) return AZ_AGGS;\n\n return ALL_AZ_SORT;\n};\n\nexport default getExtraAzBits;\n"],"mappings":"AAAA,SAASA,OAAO,EAAEC,WAAW,QAAQ,cAAc;AAEnD,MAAMC,cAAc,
|
|
1
|
+
{"version":3,"file":"get-extra-az-bits.js","names":["AZ_AGGS","ALL_AZ_SORT","getExtraAzBits","shouldReturnAggs","isAZ","azFilter"],"sources":["../../src/helpers/get-extra-az-bits.js"],"sourcesContent":["import { AZ_AGGS, ALL_AZ_SORT } from '../constants';\n\nconst getExtraAzBits = (shouldReturnAggs, isAZ, azFilter) => {\n if (!isAZ || (isAZ && azFilter)) return {};\n if (shouldReturnAggs) return AZ_AGGS;\n\n return ALL_AZ_SORT;\n};\n\nexport default getExtraAzBits;\n"],"mappings":"AAAA,SAASA,OAAO,EAAEC,WAAW,QAAQ,cAAc;AAEnD,MAAMC,cAAc,GAAGA,CAACC,gBAAgB,EAAEC,IAAI,EAAEC,QAAQ,KAAK;EAC3D,IAAI,CAACD,IAAI,IAAKA,IAAI,IAAIC,QAAS,EAAE,OAAO,CAAC,CAAC;EAC1C,IAAIF,gBAAgB,EAAE,OAAOH,OAAO;EAEpC,OAAOC,WAAW;AACpB,CAAC;AAED,eAAeC,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-filter-props.js","names":["getFilterRelationKeys","getFilterLocalKeys","relationName","relations","entityIdentifier","find","localField","getRelationEntity","filterName","filterEntityRelations","foreignKey","getFilterProps","filter","currentEntityRelations","properties","currentEntityProperties","dynamicProperties","currentEntityDynamicProperties","identifier","currentEntityId","filteryEntityId","split","relationProp","hasProperty","relationEntityName","filterNameEntity","propertyEntityName","entityName","isEntityItself","shouldCheckRelationNames","relationForeignKeys","shouldIgnoreFilter","length"],"sources":["../../src/helpers/get-filter-props.js"],"sourcesContent":["import getFilterRelationKeys from './get-filter-relation-keys';\n\nconst getFilterLocalKeys = (relationName, relations) => {\n const { entityIdentifier } =\n relations.find(({ localField }) => localField === relationName) || {};\n return entityIdentifier;\n};\n\nconst getRelationEntity = (filterName, filterEntityRelations) => {\n const { entityIdentifier } =\n filterEntityRelations.find(({ foreignKey }) => foreignKey === filterName) || {};\n return entityIdentifier;\n};\n\nconst getFilterProps = (\n filter,\n {\n relations: currentEntityRelations = [],\n properties: currentEntityProperties = {},\n dynamicProperties: currentEntityDynamicProperties = {},\n identifier: currentEntityId\n } = {},\n { relations: filterEntityRelations = [], identifier: filteryEntityId } = {}\n) => {\n const [filterName] = filter.split('/');\n const [relationName, relationProp] = filterName.split('.');\n const hasProperty = !!(\n currentEntityProperties[filterName] || currentEntityDynamicProperties[filterName]\n );\n const relationEntityName = relationProp\n ? getFilterLocalKeys(relationName, currentEntityRelations)\n : null;\n const filterNameEntity = getRelationEntity(filterName, filterEntityRelations);\n\n const propertyEntityName = relationEntityName || filterNameEntity;\n const entityName = filterNameEntity ? filteryEntityId : relationEntityName;\n const isEntityItself = currentEntityId === propertyEntityName;\n const shouldCheckRelationNames = !hasProperty && !relationEntityName;\n const relationForeignKeys = shouldCheckRelationNames\n ? getFilterRelationKeys(propertyEntityName, currentEntityRelations, currentEntityProperties)\n : [];\n const shouldIgnoreFilter = shouldCheckRelationNames && !relationForeignKeys.length;\n\n return {\n filterName,\n entityName,\n relationName,\n relationProp,\n hasProperty,\n relationEntityName,\n isEntityItself,\n relationForeignKeys,\n shouldIgnoreFilter\n };\n};\n\nexport default getFilterProps;\n"],"mappings":"AAAA,OAAOA,qBAAqB,MAAM,4BAA4B;AAE9D,MAAMC,kBAAkB,
|
|
1
|
+
{"version":3,"file":"get-filter-props.js","names":["getFilterRelationKeys","getFilterLocalKeys","relationName","relations","entityIdentifier","find","localField","getRelationEntity","filterName","filterEntityRelations","foreignKey","getFilterProps","filter","currentEntityRelations","properties","currentEntityProperties","dynamicProperties","currentEntityDynamicProperties","identifier","currentEntityId","filteryEntityId","split","relationProp","hasProperty","relationEntityName","filterNameEntity","propertyEntityName","entityName","isEntityItself","shouldCheckRelationNames","relationForeignKeys","shouldIgnoreFilter","length"],"sources":["../../src/helpers/get-filter-props.js"],"sourcesContent":["import getFilterRelationKeys from './get-filter-relation-keys';\n\nconst getFilterLocalKeys = (relationName, relations) => {\n const { entityIdentifier } =\n relations.find(({ localField }) => localField === relationName) || {};\n return entityIdentifier;\n};\n\nconst getRelationEntity = (filterName, filterEntityRelations) => {\n const { entityIdentifier } =\n filterEntityRelations.find(({ foreignKey }) => foreignKey === filterName) || {};\n return entityIdentifier;\n};\n\nconst getFilterProps = (\n filter,\n {\n relations: currentEntityRelations = [],\n properties: currentEntityProperties = {},\n dynamicProperties: currentEntityDynamicProperties = {},\n identifier: currentEntityId\n } = {},\n { relations: filterEntityRelations = [], identifier: filteryEntityId } = {}\n) => {\n const [filterName] = filter.split('/');\n const [relationName, relationProp] = filterName.split('.');\n const hasProperty = !!(\n currentEntityProperties[filterName] || currentEntityDynamicProperties[filterName]\n );\n const relationEntityName = relationProp\n ? getFilterLocalKeys(relationName, currentEntityRelations)\n : null;\n const filterNameEntity = getRelationEntity(filterName, filterEntityRelations);\n\n const propertyEntityName = relationEntityName || filterNameEntity;\n const entityName = filterNameEntity ? filteryEntityId : relationEntityName;\n const isEntityItself = currentEntityId === propertyEntityName;\n const shouldCheckRelationNames = !hasProperty && !relationEntityName;\n const relationForeignKeys = shouldCheckRelationNames\n ? getFilterRelationKeys(propertyEntityName, currentEntityRelations, currentEntityProperties)\n : [];\n const shouldIgnoreFilter = shouldCheckRelationNames && !relationForeignKeys.length;\n\n return {\n filterName,\n entityName,\n relationName,\n relationProp,\n hasProperty,\n relationEntityName,\n isEntityItself,\n relationForeignKeys,\n shouldIgnoreFilter\n };\n};\n\nexport default getFilterProps;\n"],"mappings":"AAAA,OAAOA,qBAAqB,MAAM,4BAA4B;AAE9D,MAAMC,kBAAkB,GAAGA,CAACC,YAAY,EAAEC,SAAS,KAAK;EACtD,MAAM;IAAEC;EAAiB,CAAC,GACxBD,SAAS,CAACE,IAAI,CAAC,CAAC;IAAEC;EAAW,CAAC,KAAKA,UAAU,KAAKJ,YAAY,CAAC,IAAI,CAAC,CAAC;EACvE,OAAOE,gBAAgB;AACzB,CAAC;AAED,MAAMG,iBAAiB,GAAGA,CAACC,UAAU,EAAEC,qBAAqB,KAAK;EAC/D,MAAM;IAAEL;EAAiB,CAAC,GACxBK,qBAAqB,CAACJ,IAAI,CAAC,CAAC;IAAEK;EAAW,CAAC,KAAKA,UAAU,KAAKF,UAAU,CAAC,IAAI,CAAC,CAAC;EACjF,OAAOJ,gBAAgB;AACzB,CAAC;AAED,MAAMO,cAAc,GAAGA,CACrBC,MAAM,EACN;EACET,SAAS,EAAEU,sBAAsB,GAAG,EAAE;EACtCC,UAAU,EAAEC,uBAAuB,GAAG,CAAC,CAAC;EACxCC,iBAAiB,EAAEC,8BAA8B,GAAG,CAAC,CAAC;EACtDC,UAAU,EAAEC;AACd,CAAC,GAAG,CAAC,CAAC,EACN;EAAEhB,SAAS,EAAEM,qBAAqB,GAAG,EAAE;EAAES,UAAU,EAAEE;AAAgB,CAAC,GAAG,CAAC,CAAC,KACxE;EACH,MAAM,CAACZ,UAAU,CAAC,GAAGI,MAAM,CAACS,KAAK,CAAC,GAAG,CAAC;EACtC,MAAM,CAACnB,YAAY,EAAEoB,YAAY,CAAC,GAAGd,UAAU,CAACa,KAAK,CAAC,GAAG,CAAC;EAC1D,MAAME,WAAW,GAAG,CAAC,EACnBR,uBAAuB,CAACP,UAAU,CAAC,IAAIS,8BAA8B,CAACT,UAAU,CAAC,CAClF;EACD,MAAMgB,kBAAkB,GAAGF,YAAY,GACnCrB,kBAAkB,CAACC,YAAY,EAAEW,sBAAsB,CAAC,GACxD,IAAI;EACR,MAAMY,gBAAgB,GAAGlB,iBAAiB,CAACC,UAAU,EAAEC,qBAAqB,CAAC;EAE7E,MAAMiB,kBAAkB,GAAGF,kBAAkB,IAAIC,gBAAgB;EACjE,MAAME,UAAU,GAAGF,gBAAgB,GAAGL,eAAe,GAAGI,kBAAkB;EAC1E,MAAMI,cAAc,GAAGT,eAAe,KAAKO,kBAAkB;EAC7D,MAAMG,wBAAwB,GAAG,CAACN,WAAW,IAAI,CAACC,kBAAkB;EACpE,MAAMM,mBAAmB,GAAGD,wBAAwB,GAChD7B,qBAAqB,CAAC0B,kBAAkB,EAAEb,sBAAsB,EAAEE,uBAAuB,CAAC,GAC1F,EAAE;EACN,MAAMgB,kBAAkB,GAAGF,wBAAwB,IAAI,CAACC,mBAAmB,CAACE,MAAM;EAElF,OAAO;IACLxB,UAAU;IACVmB,UAAU;IACVzB,YAAY;IACZoB,YAAY;IACZC,WAAW;IACXC,kBAAkB;IAClBI,cAAc;IACdE,mBAAmB;IACnBC;EACF,CAAC;AACH,CAAC;AAED,eAAepB,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-filter-relation-keys.js","names":["getFilterRelationKeys","entityName","currentEntityRelations","currentEntityProperties","filter","entityIdentifier","foreignKey","map"],"sources":["../../src/helpers/get-filter-relation-keys.js"],"sourcesContent":["const getFilterRelationKeys = (entityName, currentEntityRelations, currentEntityProperties) =>\n currentEntityRelations\n .filter(\n ({ entityIdentifier, foreignKey }) =>\n entityIdentifier === entityName && currentEntityProperties[foreignKey]\n )\n .map(({ foreignKey }) => foreignKey);\n\nexport default getFilterRelationKeys;\n"],"mappings":"AAAA,MAAMA,qBAAqB,
|
|
1
|
+
{"version":3,"file":"get-filter-relation-keys.js","names":["getFilterRelationKeys","entityName","currentEntityRelations","currentEntityProperties","filter","entityIdentifier","foreignKey","map"],"sources":["../../src/helpers/get-filter-relation-keys.js"],"sourcesContent":["const getFilterRelationKeys = (entityName, currentEntityRelations, currentEntityProperties) =>\n currentEntityRelations\n .filter(\n ({ entityIdentifier, foreignKey }) =>\n entityIdentifier === entityName && currentEntityProperties[foreignKey]\n )\n .map(({ foreignKey }) => foreignKey);\n\nexport default getFilterRelationKeys;\n"],"mappings":"AAAA,MAAMA,qBAAqB,GAAGA,CAACC,UAAU,EAAEC,sBAAsB,EAAEC,uBAAuB,KACxFD,sBAAsB,CACnBE,MAAM,CACL,CAAC;EAAEC,gBAAgB;EAAEC;AAAW,CAAC,KAC/BD,gBAAgB,KAAKJ,UAAU,IAAIE,uBAAuB,CAACG,UAAU,CAAC,CACzE,CACAC,GAAG,CAAC,CAAC;EAAED;AAAW,CAAC,KAAKA,UAAU,CAAC;AAExC,eAAeN,qBAAqB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-generic-props.js","names":["getDictionaryMatch","propsSchema","getGenericProps","props","itemsPerRow","gridModifier"],"sources":["../../src/helpers/get-generic-props.js"],"sourcesContent":["import getDictionaryMatch from './get-dictionary-match';\nimport { propsSchema } from './entities/constants';\n\nfunction getGenericProps(props = propsSchema) {\n const { itemsPerRow } = props;\n const gridModifier = getDictionaryMatch(itemsPerRow);\n\n return { gridModifier, ...props };\n}\n\nexport default getGenericProps;\n"],"mappings":";;;AAAA,OAAOA,kBAAkB,MAAM,wBAAwB;AACvD,SAASC,WAAW,QAAQ,sBAAsB;AAElD,SAASC,
|
|
1
|
+
{"version":3,"file":"get-generic-props.js","names":["getDictionaryMatch","propsSchema","getGenericProps","props","itemsPerRow","gridModifier","_objectSpread"],"sources":["../../src/helpers/get-generic-props.js"],"sourcesContent":["import getDictionaryMatch from './get-dictionary-match';\nimport { propsSchema } from './entities/constants';\n\nfunction getGenericProps(props = propsSchema) {\n const { itemsPerRow } = props;\n const gridModifier = getDictionaryMatch(itemsPerRow);\n\n return { gridModifier, ...props };\n}\n\nexport default getGenericProps;\n"],"mappings":";;;AAAA,OAAOA,kBAAkB,MAAM,wBAAwB;AACvD,SAASC,WAAW,QAAQ,sBAAsB;AAElD,SAASC,eAAeA,CAACC,KAAK,GAAGF,WAAW,EAAE;EAC5C,MAAM;IAAEG;EAAY,CAAC,GAAGD,KAAK;EAC7B,MAAME,YAAY,GAAGL,kBAAkB,CAACI,WAAW,CAAC;EAEpD,OAAAE,aAAA;IAASD;EAAY,GAAKF,KAAK;AACjC;AAEA,eAAeD,eAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-generic-render-variables.js","names":["getSortbyFieldName","DEFAULT_LIMIT","DEFAULT_OFFSET","buildSortValues","sortFilters","relations","stringProps","length","sort","sortValues","map","propsToDisplay","sortFieldName","toLowerCase","filter","Boolean","join","getCorrectSort","filterProps","isTextSearchApplied","sortby","sortProperties","getGenericRenderVariables","rawQuery","isTextSearchFilterApplied","useRandomSort","limit","offset","limitToUse","Number","offsetToUse","rawQueryStringified","JSON","stringify","query","function_score","random_score","boost_mode"],"sources":["../../src/helpers/get-generic-render-variables.js"],"sourcesContent":["import getSortbyFieldName from './get-sort-by-field-name';\nimport { DEFAULT_LIMIT, DEFAULT_OFFSET } from '../constants';\n\nconst buildSortValues = (sortFilters, relations, stringProps) => {\n if (!sortFilters || !sortFilters.length) return { sort: [] };\n\n const sortValues = sortFilters\n .map(({ sort, propsToDisplay }) => {\n if (!sort) return null;\n\n const sortFieldName = getSortbyFieldName(relations, propsToDisplay, stringProps);\n return sortFieldName ? `${sortFieldName}:${sort.toLowerCase()}` : null;\n })\n .filter(Boolean)\n .join(',');\n\n return { sort: sortValues };\n};\nconst getCorrectSort = (relations, filterProps, stringProps, isTextSearchApplied) => {\n if (isTextSearchApplied) {\n return {};\n }\n const { sort, sortby, sortProperties = [] } = filterProps;\n\n return buildSortValues(\n [{ sort, propsToDisplay: sortby }, ...sortProperties],\n relations,\n stringProps\n );\n};\n\nconst getGenericRenderVariables = (\n relations,\n filterProps = {},\n stringProps = [],\n rawQuery = {},\n isTextSearchFilterApplied = false,\n useRandomSort = false\n) => {\n const { limit = DEFAULT_LIMIT, offset } = filterProps;\n const limitToUse = Number(limit || DEFAULT_LIMIT);\n const offsetToUse = Number(offset || DEFAULT_OFFSET);\n\n if (useRandomSort) {\n const rawQueryStringified = JSON.stringify({\n query: {\n function_score: {\n query: rawQuery && rawQuery.query ? rawQuery.query : rawQuery,\n random_score: {},\n boost_mode: 'replace'\n }\n }\n });\n\n return {\n limit: limitToUse,\n offset: offsetToUse,\n rawQueryStringified\n };\n }\n\n const sort = getCorrectSort(relations, filterProps, stringProps, isTextSearchFilterApplied);\n\n return {\n limit: limitToUse,\n offset: offsetToUse,\n ...sort,\n rawQueryStringified: JSON.stringify(rawQuery)\n };\n};\n\nexport default getGenericRenderVariables;\n"],"mappings":";;;AAAA,OAAOA,kBAAkB,MAAM,0BAA0B;AACzD,SAASC,aAAa,EAAEC,cAAc,QAAQ,cAAc;AAE5D,MAAMC,eAAe,
|
|
1
|
+
{"version":3,"file":"get-generic-render-variables.js","names":["getSortbyFieldName","DEFAULT_LIMIT","DEFAULT_OFFSET","buildSortValues","sortFilters","relations","stringProps","length","sort","sortValues","map","propsToDisplay","sortFieldName","toLowerCase","filter","Boolean","join","getCorrectSort","filterProps","isTextSearchApplied","sortby","sortProperties","getGenericRenderVariables","rawQuery","isTextSearchFilterApplied","useRandomSort","limit","offset","limitToUse","Number","offsetToUse","rawQueryStringified","JSON","stringify","query","function_score","random_score","boost_mode","_objectSpread"],"sources":["../../src/helpers/get-generic-render-variables.js"],"sourcesContent":["import getSortbyFieldName from './get-sort-by-field-name';\nimport { DEFAULT_LIMIT, DEFAULT_OFFSET } from '../constants';\n\nconst buildSortValues = (sortFilters, relations, stringProps) => {\n if (!sortFilters || !sortFilters.length) return { sort: [] };\n\n const sortValues = sortFilters\n .map(({ sort, propsToDisplay }) => {\n if (!sort) return null;\n\n const sortFieldName = getSortbyFieldName(relations, propsToDisplay, stringProps);\n return sortFieldName ? `${sortFieldName}:${sort.toLowerCase()}` : null;\n })\n .filter(Boolean)\n .join(',');\n\n return { sort: sortValues };\n};\nconst getCorrectSort = (relations, filterProps, stringProps, isTextSearchApplied) => {\n if (isTextSearchApplied) {\n return {};\n }\n const { sort, sortby, sortProperties = [] } = filterProps;\n\n return buildSortValues(\n [{ sort, propsToDisplay: sortby }, ...sortProperties],\n relations,\n stringProps\n );\n};\n\nconst getGenericRenderVariables = (\n relations,\n filterProps = {},\n stringProps = [],\n rawQuery = {},\n isTextSearchFilterApplied = false,\n useRandomSort = false\n) => {\n const { limit = DEFAULT_LIMIT, offset } = filterProps;\n const limitToUse = Number(limit || DEFAULT_LIMIT);\n const offsetToUse = Number(offset || DEFAULT_OFFSET);\n\n if (useRandomSort) {\n const rawQueryStringified = JSON.stringify({\n query: {\n function_score: {\n query: rawQuery && rawQuery.query ? rawQuery.query : rawQuery,\n random_score: {},\n boost_mode: 'replace'\n }\n }\n });\n\n return {\n limit: limitToUse,\n offset: offsetToUse,\n rawQueryStringified\n };\n }\n\n const sort = getCorrectSort(relations, filterProps, stringProps, isTextSearchFilterApplied);\n\n return {\n limit: limitToUse,\n offset: offsetToUse,\n ...sort,\n rawQueryStringified: JSON.stringify(rawQuery)\n };\n};\n\nexport default getGenericRenderVariables;\n"],"mappings":";;;AAAA,OAAOA,kBAAkB,MAAM,0BAA0B;AACzD,SAASC,aAAa,EAAEC,cAAc,QAAQ,cAAc;AAE5D,MAAMC,eAAe,GAAGA,CAACC,WAAW,EAAEC,SAAS,EAAEC,WAAW,KAAK;EAC/D,IAAI,CAACF,WAAW,IAAI,CAACA,WAAW,CAACG,MAAM,EAAE,OAAO;IAAEC,IAAI,EAAE;EAAG,CAAC;EAE5D,MAAMC,UAAU,GAAGL,WAAW,CAC3BM,GAAG,CAAC,CAAC;IAAEF,IAAI;IAAEG;EAAe,CAAC,KAAK;IACjC,IAAI,CAACH,IAAI,EAAE,OAAO,IAAI;IAEtB,MAAMI,aAAa,GAAGZ,kBAAkB,CAACK,SAAS,EAAEM,cAAc,EAAEL,WAAW,CAAC;IAChF,OAAOM,aAAa,GAAI,GAAEA,aAAc,IAAGJ,IAAI,CAACK,WAAW,EAAG,EAAC,GAAG,IAAI;EACxE,CAAC,CAAC,CACDC,MAAM,CAACC,OAAO,CAAC,CACfC,IAAI,CAAC,GAAG,CAAC;EAEZ,OAAO;IAAER,IAAI,EAAEC;EAAW,CAAC;AAC7B,CAAC;AACD,MAAMQ,cAAc,GAAGA,CAACZ,SAAS,EAAEa,WAAW,EAAEZ,WAAW,EAAEa,mBAAmB,KAAK;EACnF,IAAIA,mBAAmB,EAAE;IACvB,OAAO,CAAC,CAAC;EACX;EACA,MAAM;IAAEX,IAAI;IAAEY,MAAM;IAAEC,cAAc,GAAG;EAAG,CAAC,GAAGH,WAAW;EAEzD,OAAOf,eAAe,CACpB,CAAC;IAAEK,IAAI;IAAEG,cAAc,EAAES;EAAO,CAAC,EAAE,GAAGC,cAAc,CAAC,EACrDhB,SAAS,EACTC,WAAW,CACZ;AACH,CAAC;AAED,MAAMgB,yBAAyB,GAAGA,CAChCjB,SAAS,EACTa,WAAW,GAAG,CAAC,CAAC,EAChBZ,WAAW,GAAG,EAAE,EAChBiB,QAAQ,GAAG,CAAC,CAAC,EACbC,yBAAyB,GAAG,KAAK,EACjCC,aAAa,GAAG,KAAK,KAClB;EACH,MAAM;IAAEC,KAAK,GAAGzB,aAAa;IAAE0B;EAAO,CAAC,GAAGT,WAAW;EACrD,MAAMU,UAAU,GAAGC,MAAM,CAACH,KAAK,IAAIzB,aAAa,CAAC;EACjD,MAAM6B,WAAW,GAAGD,MAAM,CAACF,MAAM,IAAIzB,cAAc,CAAC;EAEpD,IAAIuB,aAAa,EAAE;IACjB,MAAMM,mBAAmB,GAAGC,IAAI,CAACC,SAAS,CAAC;MACzCC,KAAK,EAAE;QACLC,cAAc,EAAE;UACdD,KAAK,EAAEX,QAAQ,IAAIA,QAAQ,CAACW,KAAK,GAAGX,QAAQ,CAACW,KAAK,GAAGX,QAAQ;UAC7Da,YAAY,EAAE,CAAC,CAAC;UAChBC,UAAU,EAAE;QACd;MACF;IACF,CAAC,CAAC;IAEF,OAAO;MACLX,KAAK,EAAEE,UAAU;MACjBD,MAAM,EAAEG,WAAW;MACnBC;IACF,CAAC;EACH;EAEA,MAAMvB,IAAI,GAAGS,cAAc,CAACZ,SAAS,EAAEa,WAAW,EAAEZ,WAAW,EAAEkB,yBAAyB,CAAC;EAE3F,OAAAc,aAAA,CAAAA,aAAA;IACEZ,KAAK,EAAEE,UAAU;IACjBD,MAAM,EAAEG;EAAW,GAChBtB,IAAI;IACPuB,mBAAmB,EAAEC,IAAI,CAACC,SAAS,CAACV,QAAQ;EAAC;AAEjD,CAAC;AAED,eAAeD,yBAAyB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-image-ids.js","names":["isPlainObject","getIdsFromArray","relationImageData","relationProp","imageId","length","map","image","Object","keys","filter","Boolean","getImageIds","imageRelation","relationData","imageIdArray","entityData","imageData","relationName","split","Array","isArray"],"sources":["../../src/helpers/get-image-ids.js"],"sourcesContent":["import isPlainObject from 'lodash.isplainobject';\n\nconst getIdsFromArray = (relationImageData, relationProp, imageId) => {\n if (!relationImageData.length) return [imageId];\n return relationImageData\n .map(image => {\n if (!Object.keys(image).length) return '';\n return image[relationProp];\n })\n .filter(Boolean);\n};\n\nconst getImageIds = (imageRelation, relationData, imageId) => {\n const imageIdArray = imageId ? [imageId] : [];\n if (relationData && relationData.entityData) {\n const [imageData] = imageRelation;\n const [relationName, relationProp] = imageData.split('.');\n const relationImageData = relationData.entityData[relationName];\n\n if (!relationImageData) return imageIdArray;\n\n if (Array.isArray(relationImageData))\n return getIdsFromArray(relationImageData, relationProp, imageId);\n\n if (isPlainObject(relationImageData) && Object.keys(relationImageData).length) {\n return Array.isArray(relationImageData[relationProp])\n ? relationImageData[relationProp]\n : [relationImageData[relationProp]];\n }\n }\n\n return imageIdArray;\n};\n\nexport default getImageIds;\n"],"mappings":"AAAA,OAAOA,aAAa,MAAM,sBAAsB;AAEhD,MAAMC,eAAe,
|
|
1
|
+
{"version":3,"file":"get-image-ids.js","names":["isPlainObject","getIdsFromArray","relationImageData","relationProp","imageId","length","map","image","Object","keys","filter","Boolean","getImageIds","imageRelation","relationData","imageIdArray","entityData","imageData","relationName","split","Array","isArray"],"sources":["../../src/helpers/get-image-ids.js"],"sourcesContent":["import isPlainObject from 'lodash.isplainobject';\n\nconst getIdsFromArray = (relationImageData, relationProp, imageId) => {\n if (!relationImageData.length) return [imageId];\n return relationImageData\n .map(image => {\n if (!Object.keys(image).length) return '';\n return image[relationProp];\n })\n .filter(Boolean);\n};\n\nconst getImageIds = (imageRelation, relationData, imageId) => {\n const imageIdArray = imageId ? [imageId] : [];\n if (relationData && relationData.entityData) {\n const [imageData] = imageRelation;\n const [relationName, relationProp] = imageData.split('.');\n const relationImageData = relationData.entityData[relationName];\n\n if (!relationImageData) return imageIdArray;\n\n if (Array.isArray(relationImageData))\n return getIdsFromArray(relationImageData, relationProp, imageId);\n\n if (isPlainObject(relationImageData) && Object.keys(relationImageData).length) {\n return Array.isArray(relationImageData[relationProp])\n ? relationImageData[relationProp]\n : [relationImageData[relationProp]];\n }\n }\n\n return imageIdArray;\n};\n\nexport default getImageIds;\n"],"mappings":"AAAA,OAAOA,aAAa,MAAM,sBAAsB;AAEhD,MAAMC,eAAe,GAAGA,CAACC,iBAAiB,EAAEC,YAAY,EAAEC,OAAO,KAAK;EACpE,IAAI,CAACF,iBAAiB,CAACG,MAAM,EAAE,OAAO,CAACD,OAAO,CAAC;EAC/C,OAAOF,iBAAiB,CACrBI,GAAG,CAACC,KAAK,IAAI;IACZ,IAAI,CAACC,MAAM,CAACC,IAAI,CAACF,KAAK,CAAC,CAACF,MAAM,EAAE,OAAO,EAAE;IACzC,OAAOE,KAAK,CAACJ,YAAY,CAAC;EAC5B,CAAC,CAAC,CACDO,MAAM,CAACC,OAAO,CAAC;AACpB,CAAC;AAED,MAAMC,WAAW,GAAGA,CAACC,aAAa,EAAEC,YAAY,EAAEV,OAAO,KAAK;EAC5D,MAAMW,YAAY,GAAGX,OAAO,GAAG,CAACA,OAAO,CAAC,GAAG,EAAE;EAC7C,IAAIU,YAAY,IAAIA,YAAY,CAACE,UAAU,EAAE;IAC3C,MAAM,CAACC,SAAS,CAAC,GAAGJ,aAAa;IACjC,MAAM,CAACK,YAAY,EAAEf,YAAY,CAAC,GAAGc,SAAS,CAACE,KAAK,CAAC,GAAG,CAAC;IACzD,MAAMjB,iBAAiB,GAAGY,YAAY,CAACE,UAAU,CAACE,YAAY,CAAC;IAE/D,IAAI,CAAChB,iBAAiB,EAAE,OAAOa,YAAY;IAE3C,IAAIK,KAAK,CAACC,OAAO,CAACnB,iBAAiB,CAAC,EAClC,OAAOD,eAAe,CAACC,iBAAiB,EAAEC,YAAY,EAAEC,OAAO,CAAC;IAElE,IAAIJ,aAAa,CAACE,iBAAiB,CAAC,IAAIM,MAAM,CAACC,IAAI,CAACP,iBAAiB,CAAC,CAACG,MAAM,EAAE;MAC7E,OAAOe,KAAK,CAACC,OAAO,CAACnB,iBAAiB,CAACC,YAAY,CAAC,CAAC,GACjDD,iBAAiB,CAACC,YAAY,CAAC,GAC/B,CAACD,iBAAiB,CAACC,YAAY,CAAC,CAAC;IACvC;EACF;EAEA,OAAOY,YAAY;AACrB,CAAC;AAED,eAAeH,WAAW"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-inherited-filters.js","names":["getInheritedFilters","filterBy","filterByProperty","length","reduce","acc","property","propName","split","filterByMatched","filter","filterId","includes","push"],"sources":["../../src/helpers/get-inherited-filters.js"],"sourcesContent":["const getInheritedFilters = (filterBy, filterByProperty) => {\n if (!filterByProperty.length) return [];\n if (!filterBy.length) return filterByProperty;\n\n return filterByProperty.reduce((acc, property) => {\n const [propName] = property.split('/');\n const filterByMatched = filterBy.filter(filterId => filterId.includes(`${propName}/`));\n\n if (!filterByMatched.length) acc.push(property);\n return acc;\n }, []);\n};\n\nexport default getInheritedFilters;\n"],"mappings":"AAAA,MAAMA,mBAAmB,
|
|
1
|
+
{"version":3,"file":"get-inherited-filters.js","names":["getInheritedFilters","filterBy","filterByProperty","length","reduce","acc","property","propName","split","filterByMatched","filter","filterId","includes","push"],"sources":["../../src/helpers/get-inherited-filters.js"],"sourcesContent":["const getInheritedFilters = (filterBy, filterByProperty) => {\n if (!filterByProperty.length) return [];\n if (!filterBy.length) return filterByProperty;\n\n return filterByProperty.reduce((acc, property) => {\n const [propName] = property.split('/');\n const filterByMatched = filterBy.filter(filterId => filterId.includes(`${propName}/`));\n\n if (!filterByMatched.length) acc.push(property);\n return acc;\n }, []);\n};\n\nexport default getInheritedFilters;\n"],"mappings":"AAAA,MAAMA,mBAAmB,GAAGA,CAACC,QAAQ,EAAEC,gBAAgB,KAAK;EAC1D,IAAI,CAACA,gBAAgB,CAACC,MAAM,EAAE,OAAO,EAAE;EACvC,IAAI,CAACF,QAAQ,CAACE,MAAM,EAAE,OAAOD,gBAAgB;EAE7C,OAAOA,gBAAgB,CAACE,MAAM,CAAC,CAACC,GAAG,EAAEC,QAAQ,KAAK;IAChD,MAAM,CAACC,QAAQ,CAAC,GAAGD,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;IACtC,MAAMC,eAAe,GAAGR,QAAQ,CAACS,MAAM,CAACC,QAAQ,IAAIA,QAAQ,CAACC,QAAQ,CAAE,GAAEL,QAAS,GAAE,CAAC,CAAC;IAEtF,IAAI,CAACE,eAAe,CAACN,MAAM,EAAEE,GAAG,CAACQ,IAAI,CAACP,QAAQ,CAAC;IAC/C,OAAOD,GAAG;EACZ,CAAC,EAAE,EAAE,CAAC;AACR,CAAC;AAED,eAAeL,mBAAmB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-items-to-display-ids.js","names":["getItemsToDisplayIds","itemsToDisplay","length","ids","reduce","acc","displayItems","concat","Set"],"sources":["../../src/helpers/get-items-to-display-ids.js"],"sourcesContent":["function getItemsToDisplayIds(itemsToDisplay) {\n if (!itemsToDisplay || !itemsToDisplay.length) return [];\n const ids = itemsToDisplay.reduce((acc, { displayItems }) => {\n if (!displayItems || !displayItems.length) return acc;\n return acc.concat(displayItems);\n }, []);\n return [...new Set([...ids])];\n}\n\nexport default getItemsToDisplayIds;\n"],"mappings":"AAAA,SAASA,
|
|
1
|
+
{"version":3,"file":"get-items-to-display-ids.js","names":["getItemsToDisplayIds","itemsToDisplay","length","ids","reduce","acc","displayItems","concat","Set"],"sources":["../../src/helpers/get-items-to-display-ids.js"],"sourcesContent":["function getItemsToDisplayIds(itemsToDisplay) {\n if (!itemsToDisplay || !itemsToDisplay.length) return [];\n const ids = itemsToDisplay.reduce((acc, { displayItems }) => {\n if (!displayItems || !displayItems.length) return acc;\n return acc.concat(displayItems);\n }, []);\n return [...new Set([...ids])];\n}\n\nexport default getItemsToDisplayIds;\n"],"mappings":"AAAA,SAASA,oBAAoBA,CAACC,cAAc,EAAE;EAC5C,IAAI,CAACA,cAAc,IAAI,CAACA,cAAc,CAACC,MAAM,EAAE,OAAO,EAAE;EACxD,MAAMC,GAAG,GAAGF,cAAc,CAACG,MAAM,CAAC,CAACC,GAAG,EAAE;IAAEC;EAAa,CAAC,KAAK;IAC3D,IAAI,CAACA,YAAY,IAAI,CAACA,YAAY,CAACJ,MAAM,EAAE,OAAOG,GAAG;IACrD,OAAOA,GAAG,CAACE,MAAM,CAACD,YAAY,CAAC;EACjC,CAAC,EAAE,EAAE,CAAC;EACN,OAAO,CAAC,GAAG,IAAIE,GAAG,CAAC,CAAC,GAAGL,GAAG,CAAC,CAAC,CAAC;AAC/B;AAEA,eAAeH,oBAAoB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-modifiers.js","names":["getModifiers","base","modifier","Array","isArray","modifiers","map","modi","validateModifier","unshift","uniqueModifiers","Set","join","withBase","isValidModifier"],"sources":["../../src/helpers/get-modifiers.js"],"sourcesContent":["const getModifiers = (base, modifier) => {\n if (Array.isArray(modifier)) {\n const modifiers = modifier.map(modi => validateModifier(base, modi, false));\n modifiers.unshift(base);\n const uniqueModifiers = [...new Set(modifiers)];\n\n return uniqueModifiers.join(' ');\n }\n return validateModifier(base, modifier);\n};\n\nconst validateModifier = (base, modifier, withBase = true) => {\n const isValidModifier = modifier && typeof modifier === 'string';\n if (isValidModifier) return withBase ? `${base} ${base}--${modifier}` : `${base}--${modifier}`;\n\n return base;\n};\n\nexport default getModifiers;\n"],"mappings":"AAAA,MAAMA,YAAY,
|
|
1
|
+
{"version":3,"file":"get-modifiers.js","names":["getModifiers","base","modifier","Array","isArray","modifiers","map","modi","validateModifier","unshift","uniqueModifiers","Set","join","withBase","isValidModifier"],"sources":["../../src/helpers/get-modifiers.js"],"sourcesContent":["const getModifiers = (base, modifier) => {\n if (Array.isArray(modifier)) {\n const modifiers = modifier.map(modi => validateModifier(base, modi, false));\n modifiers.unshift(base);\n const uniqueModifiers = [...new Set(modifiers)];\n\n return uniqueModifiers.join(' ');\n }\n return validateModifier(base, modifier);\n};\n\nconst validateModifier = (base, modifier, withBase = true) => {\n const isValidModifier = modifier && typeof modifier === 'string';\n if (isValidModifier) return withBase ? `${base} ${base}--${modifier}` : `${base}--${modifier}`;\n\n return base;\n};\n\nexport default getModifiers;\n"],"mappings":"AAAA,MAAMA,YAAY,GAAGA,CAACC,IAAI,EAAEC,QAAQ,KAAK;EACvC,IAAIC,KAAK,CAACC,OAAO,CAACF,QAAQ,CAAC,EAAE;IAC3B,MAAMG,SAAS,GAAGH,QAAQ,CAACI,GAAG,CAACC,IAAI,IAAIC,gBAAgB,CAACP,IAAI,EAAEM,IAAI,EAAE,KAAK,CAAC,CAAC;IAC3EF,SAAS,CAACI,OAAO,CAACR,IAAI,CAAC;IACvB,MAAMS,eAAe,GAAG,CAAC,GAAG,IAAIC,GAAG,CAACN,SAAS,CAAC,CAAC;IAE/C,OAAOK,eAAe,CAACE,IAAI,CAAC,GAAG,CAAC;EAClC;EACA,OAAOJ,gBAAgB,CAACP,IAAI,EAAEC,QAAQ,CAAC;AACzC,CAAC;AAED,MAAMM,gBAAgB,GAAGA,CAACP,IAAI,EAAEC,QAAQ,EAAEW,QAAQ,GAAG,IAAI,KAAK;EAC5D,MAAMC,eAAe,GAAGZ,QAAQ,IAAI,OAAOA,QAAQ,KAAK,QAAQ;EAChE,IAAIY,eAAe,EAAE,OAAOD,QAAQ,GAAI,GAAEZ,IAAK,IAAGA,IAAK,KAAIC,QAAS,EAAC,GAAI,GAAED,IAAK,KAAIC,QAAS,EAAC;EAE9F,OAAOD,IAAI;AACb,CAAC;AAED,eAAeD,YAAY"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-not-equal-query.js","names":["getNotEqualQuery","itemId","id","_ne"],"sources":["../../src/helpers/get-not-equal-query.js"],"sourcesContent":["export default function getNotEqualQuery(itemId) {\n if (!itemId) return {};\n\n return {\n id: {\n _ne: itemId\n }\n };\n}\n"],"mappings":"AAAA,eAAe,SAASA,
|
|
1
|
+
{"version":3,"file":"get-not-equal-query.js","names":["getNotEqualQuery","itemId","id","_ne"],"sources":["../../src/helpers/get-not-equal-query.js"],"sourcesContent":["export default function getNotEqualQuery(itemId) {\n if (!itemId) return {};\n\n return {\n id: {\n _ne: itemId\n }\n };\n}\n"],"mappings":"AAAA,eAAe,SAASA,gBAAgBA,CAACC,MAAM,EAAE;EAC/C,IAAI,CAACA,MAAM,EAAE,OAAO,CAAC,CAAC;EAEtB,OAAO;IACLC,EAAE,EAAE;MACFC,GAAG,EAAEF;IACP;EACF,CAAC;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-pagination-index.js","names":["PAGINATION_QUERY_CONST","PB_QUERY_CONST","getPaginationIndex","query","name","paginationIndex","Number"],"sources":["../../src/helpers/get-pagination-index.js"],"sourcesContent":["import { PAGINATION_QUERY_CONST, PB_QUERY_CONST } from '../constants';\n\nfunction getPaginationIndex(query, name) {\n if (!query || !name) return 1;\n const paginationIndex = query[`${PB_QUERY_CONST}[${name}]${PAGINATION_QUERY_CONST}`];\n return Number(paginationIndex) || 1;\n}\n\nexport default getPaginationIndex;\n"],"mappings":"AAAA,SAASA,sBAAsB,EAAEC,cAAc,QAAQ,cAAc;AAErE,SAASC,
|
|
1
|
+
{"version":3,"file":"get-pagination-index.js","names":["PAGINATION_QUERY_CONST","PB_QUERY_CONST","getPaginationIndex","query","name","paginationIndex","Number"],"sources":["../../src/helpers/get-pagination-index.js"],"sourcesContent":["import { PAGINATION_QUERY_CONST, PB_QUERY_CONST } from '../constants';\n\nfunction getPaginationIndex(query, name) {\n if (!query || !name) return 1;\n const paginationIndex = query[`${PB_QUERY_CONST}[${name}]${PAGINATION_QUERY_CONST}`];\n return Number(paginationIndex) || 1;\n}\n\nexport default getPaginationIndex;\n"],"mappings":"AAAA,SAASA,sBAAsB,EAAEC,cAAc,QAAQ,cAAc;AAErE,SAASC,kBAAkBA,CAACC,KAAK,EAAEC,IAAI,EAAE;EACvC,IAAI,CAACD,KAAK,IAAI,CAACC,IAAI,EAAE,OAAO,CAAC;EAC7B,MAAMC,eAAe,GAAGF,KAAK,CAAE,GAAEF,cAAe,IAAGG,IAAK,IAAGJ,sBAAuB,EAAC,CAAC;EACpF,OAAOM,MAAM,CAACD,eAAe,CAAC,IAAI,CAAC;AACrC;AAEA,eAAeH,kBAAkB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-parsed-prop-values.js","names":["React","Link","isObject","removeUnwantedCharacters","getParsedPropValues","propertiesToDisplay","props","enableLink","shouldStrip","map","property","filteredProperty","subtype","split","value","Array","isArray","prop","index","propValue","sanitizedValue","isLastValue","length","parsedValue","concat","linkKey","join","url","filter","Boolean"],"sources":["../../src/helpers/get-parsed-prop-values.js"],"sourcesContent":["import React from 'react';\nimport { Link } from '@blaze-cms/nextjs-components';\nimport isObject from './is-object';\nimport removeUnwantedCharacters from './remove-unwanted-characters';\n\nconst getParsedPropValues = ({ propertiesToDisplay, props, enableLink, shouldStrip }) =>\n propertiesToDisplay\n .map(property => {\n const [filteredProperty, subtype] = property.split('.');\n const value = props[filteredProperty];\n\n if (Array.isArray(value)) {\n return value.map((prop, index) => {\n const propValue = subtype ? prop[subtype] : prop;\n const sanitizedValue = shouldStrip ? removeUnwantedCharacters(propValue) : propValue;\n\n const isLastValue = index === value.length - 1;\n const parsedValue = isLastValue ? sanitizedValue : sanitizedValue.concat(', ');\n const linkKey = [filteredProperty, prop[subtype], index].join('-');\n\n return enableLink && prop.url ? (\n <Link key={linkKey} href={prop.url}>\n {parsedValue}\n </Link>\n ) : (\n parsedValue\n );\n });\n }\n\n if (isObject(value)) {\n return shouldStrip ? removeUnwantedCharacters(value[subtype]) : value[subtype];\n }\n\n return shouldStrip ? removeUnwantedCharacters(value) : value;\n })\n .filter(Boolean);\n\nexport default getParsedPropValues;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,8BAA8B;AACnD,OAAOC,QAAQ,MAAM,aAAa;AAClC,OAAOC,wBAAwB,MAAM,8BAA8B;AAEnE,MAAMC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"get-parsed-prop-values.js","names":["React","Link","isObject","removeUnwantedCharacters","getParsedPropValues","propertiesToDisplay","props","enableLink","shouldStrip","map","property","filteredProperty","subtype","split","value","Array","isArray","prop","index","propValue","sanitizedValue","isLastValue","length","parsedValue","concat","linkKey","join","url","createElement","key","href","filter","Boolean"],"sources":["../../src/helpers/get-parsed-prop-values.js"],"sourcesContent":["import React from 'react';\nimport { Link } from '@blaze-cms/nextjs-components';\nimport isObject from './is-object';\nimport removeUnwantedCharacters from './remove-unwanted-characters';\n\nconst getParsedPropValues = ({ propertiesToDisplay, props, enableLink, shouldStrip }) =>\n propertiesToDisplay\n .map(property => {\n const [filteredProperty, subtype] = property.split('.');\n const value = props[filteredProperty];\n\n if (Array.isArray(value)) {\n return value.map((prop, index) => {\n const propValue = subtype ? prop[subtype] : prop;\n const sanitizedValue = shouldStrip ? removeUnwantedCharacters(propValue) : propValue;\n\n const isLastValue = index === value.length - 1;\n const parsedValue = isLastValue ? sanitizedValue : sanitizedValue.concat(', ');\n const linkKey = [filteredProperty, prop[subtype], index].join('-');\n\n return enableLink && prop.url ? (\n <Link key={linkKey} href={prop.url}>\n {parsedValue}\n </Link>\n ) : (\n parsedValue\n );\n });\n }\n\n if (isObject(value)) {\n return shouldStrip ? removeUnwantedCharacters(value[subtype]) : value[subtype];\n }\n\n return shouldStrip ? removeUnwantedCharacters(value) : value;\n })\n .filter(Boolean);\n\nexport default getParsedPropValues;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,8BAA8B;AACnD,OAAOC,QAAQ,MAAM,aAAa;AAClC,OAAOC,wBAAwB,MAAM,8BAA8B;AAEnE,MAAMC,mBAAmB,GAAGA,CAAC;EAAEC,mBAAmB;EAAEC,KAAK;EAAEC,UAAU;EAAEC;AAAY,CAAC,KAClFH,mBAAmB,CAChBI,GAAG,CAACC,QAAQ,IAAI;EACf,MAAM,CAACC,gBAAgB,EAAEC,OAAO,CAAC,GAAGF,QAAQ,CAACG,KAAK,CAAC,GAAG,CAAC;EACvD,MAAMC,KAAK,GAAGR,KAAK,CAACK,gBAAgB,CAAC;EAErC,IAAII,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,EAAE;IACxB,OAAOA,KAAK,CAACL,GAAG,CAAC,CAACQ,IAAI,EAAEC,KAAK,KAAK;MAChC,MAAMC,SAAS,GAAGP,OAAO,GAAGK,IAAI,CAACL,OAAO,CAAC,GAAGK,IAAI;MAChD,MAAMG,cAAc,GAAGZ,WAAW,GAAGL,wBAAwB,CAACgB,SAAS,CAAC,GAAGA,SAAS;MAEpF,MAAME,WAAW,GAAGH,KAAK,KAAKJ,KAAK,CAACQ,MAAM,GAAG,CAAC;MAC9C,MAAMC,WAAW,GAAGF,WAAW,GAAGD,cAAc,GAAGA,cAAc,CAACI,MAAM,CAAC,IAAI,CAAC;MAC9E,MAAMC,OAAO,GAAG,CAACd,gBAAgB,EAAEM,IAAI,CAACL,OAAO,CAAC,EAAEM,KAAK,CAAC,CAACQ,IAAI,CAAC,GAAG,CAAC;MAElE,OAAOnB,UAAU,IAAIU,IAAI,CAACU,GAAG,gBAC3B3B,KAAA,CAAA4B,aAAA,CAAC3B,IAAI;QAAC4B,GAAG,EAAEJ,OAAQ;QAACK,IAAI,EAAEb,IAAI,CAACU;MAAI,GAChCJ,WAAW,CACP,GAEPA,WACD;IACH,CAAC,CAAC;EACJ;EAEA,IAAIrB,QAAQ,CAACY,KAAK,CAAC,EAAE;IACnB,OAAON,WAAW,GAAGL,wBAAwB,CAACW,KAAK,CAACF,OAAO,CAAC,CAAC,GAAGE,KAAK,CAACF,OAAO,CAAC;EAChF;EAEA,OAAOJ,WAAW,GAAGL,wBAAwB,CAACW,KAAK,CAAC,GAAGA,KAAK;AAC9D,CAAC,CAAC,CACDiB,MAAM,CAACC,OAAO,CAAC;AAEpB,eAAe5B,mBAAmB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-parsed-summary-value.js","names":["TRUE","FALSE","parsedSummaryValues","getParsedSummaryValue","value"],"sources":["../../src/helpers/get-parsed-summary-value.js"],"sourcesContent":["const TRUE = 'true';\nconst FALSE = 'false';\n\nconst parsedSummaryValues = {\n TRUE: 'Yes',\n FALSE: 'No'\n};\n\nfunction getParsedSummaryValue(value) {\n if (value === TRUE) return parsedSummaryValues.TRUE;\n if (value === FALSE) return parsedSummaryValues.FALSE;\n\n return value;\n}\n\nexport default getParsedSummaryValue;\n"],"mappings":"AAAA,MAAMA,IAAI,GAAG,MAAM;AACnB,MAAMC,KAAK,GAAG,OAAO;AAErB,MAAMC,mBAAmB,GAAG;EAC1BF,IAAI,EAAE,KAAK;EACXC,KAAK,EAAE;AACT,CAAC;AAED,SAASE,
|
|
1
|
+
{"version":3,"file":"get-parsed-summary-value.js","names":["TRUE","FALSE","parsedSummaryValues","getParsedSummaryValue","value"],"sources":["../../src/helpers/get-parsed-summary-value.js"],"sourcesContent":["const TRUE = 'true';\nconst FALSE = 'false';\n\nconst parsedSummaryValues = {\n TRUE: 'Yes',\n FALSE: 'No'\n};\n\nfunction getParsedSummaryValue(value) {\n if (value === TRUE) return parsedSummaryValues.TRUE;\n if (value === FALSE) return parsedSummaryValues.FALSE;\n\n return value;\n}\n\nexport default getParsedSummaryValue;\n"],"mappings":"AAAA,MAAMA,IAAI,GAAG,MAAM;AACnB,MAAMC,KAAK,GAAG,OAAO;AAErB,MAAMC,mBAAmB,GAAG;EAC1BF,IAAI,EAAE,KAAK;EACXC,KAAK,EAAE;AACT,CAAC;AAED,SAASE,qBAAqBA,CAACC,KAAK,EAAE;EACpC,IAAIA,KAAK,KAAKJ,IAAI,EAAE,OAAOE,mBAAmB,CAACF,IAAI;EACnD,IAAII,KAAK,KAAKH,KAAK,EAAE,OAAOC,mBAAmB,CAACD,KAAK;EAErD,OAAOG,KAAK;AACd;AAEA,eAAeD,qBAAqB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-prop-values.js","names":["isObject","getPropValues","propertiesToDisplay","props","map","property","filteredProperty","subtype","split","value","Array","isArray","prop","filter","Boolean"],"sources":["../../src/helpers/get-prop-values.js"],"sourcesContent":["import isObject from './is-object';\n\nconst getPropValues = (propertiesToDisplay, props) =>\n propertiesToDisplay\n .map(property => {\n const [filteredProperty, subtype] = property.split('.');\n const value = props[filteredProperty];\n\n if (Array.isArray(value)) {\n return value.map(prop => (subtype ? prop[subtype] : prop));\n }\n\n if (isObject(value)) {\n return value[subtype];\n }\n\n return value;\n })\n .filter(Boolean);\n\nexport default getPropValues;\n"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,aAAa;AAElC,MAAMC,aAAa,
|
|
1
|
+
{"version":3,"file":"get-prop-values.js","names":["isObject","getPropValues","propertiesToDisplay","props","map","property","filteredProperty","subtype","split","value","Array","isArray","prop","filter","Boolean"],"sources":["../../src/helpers/get-prop-values.js"],"sourcesContent":["import isObject from './is-object';\n\nconst getPropValues = (propertiesToDisplay, props) =>\n propertiesToDisplay\n .map(property => {\n const [filteredProperty, subtype] = property.split('.');\n const value = props[filteredProperty];\n\n if (Array.isArray(value)) {\n return value.map(prop => (subtype ? prop[subtype] : prop));\n }\n\n if (isObject(value)) {\n return value[subtype];\n }\n\n return value;\n })\n .filter(Boolean);\n\nexport default getPropValues;\n"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,aAAa;AAElC,MAAMC,aAAa,GAAGA,CAACC,mBAAmB,EAAEC,KAAK,KAC/CD,mBAAmB,CAChBE,GAAG,CAACC,QAAQ,IAAI;EACf,MAAM,CAACC,gBAAgB,EAAEC,OAAO,CAAC,GAAGF,QAAQ,CAACG,KAAK,CAAC,GAAG,CAAC;EACvD,MAAMC,KAAK,GAAGN,KAAK,CAACG,gBAAgB,CAAC;EAErC,IAAII,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,EAAE;IACxB,OAAOA,KAAK,CAACL,GAAG,CAACQ,IAAI,IAAKL,OAAO,GAAGK,IAAI,CAACL,OAAO,CAAC,GAAGK,IAAK,CAAC;EAC5D;EAEA,IAAIZ,QAAQ,CAACS,KAAK,CAAC,EAAE;IACnB,OAAOA,KAAK,CAACF,OAAO,CAAC;EACvB;EAEA,OAAOE,KAAK;AACd,CAAC,CAAC,CACDI,MAAM,CAACC,OAAO,CAAC;AAEpB,eAAeb,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-query-filters.js","names":["getSearchFilterType","buildSearchValuesCheckboxSelect","RANGE","CHECKBOX","SELECT","getQueryFilters","searchFilter","query","settings","filters","valuesAnd","valuesOr","rangeFilters","checkboxFilters","selectFilters","values"],"sources":["../../src/helpers/get-query-filters.js"],"sourcesContent":["import getSearchFilterType from './get-search-filter-type';\nimport buildSearchValuesCheckboxSelect from './build-search-values-checkbox-select';\nimport { RANGE, CHECKBOX, SELECT } from '../constants';\n\nconst getQueryFilters = (searchFilter, query) => {\n if (!searchFilter.settings || !searchFilter.settings.filters) {\n return { valuesAnd: [], valuesOr: [] };\n }\n\n const rangeFilters = getSearchFilterType(searchFilter, RANGE);\n const checkboxFilters = getSearchFilterType(searchFilter, CHECKBOX);\n const selectFilters = getSearchFilterType(searchFilter, SELECT);\n\n const { values: valuesAnd, valuesOr } = buildSearchValuesCheckboxSelect(\n query,\n rangeFilters,\n checkboxFilters,\n selectFilters\n );\n return { valuesAnd, valuesOr };\n};\n\nexport default getQueryFilters;\n"],"mappings":"AAAA,OAAOA,mBAAmB,MAAM,0BAA0B;AAC1D,OAAOC,+BAA+B,MAAM,uCAAuC;AACnF,SAASC,KAAK,EAAEC,QAAQ,EAAEC,MAAM,QAAQ,cAAc;AAEtD,MAAMC,eAAe,
|
|
1
|
+
{"version":3,"file":"get-query-filters.js","names":["getSearchFilterType","buildSearchValuesCheckboxSelect","RANGE","CHECKBOX","SELECT","getQueryFilters","searchFilter","query","settings","filters","valuesAnd","valuesOr","rangeFilters","checkboxFilters","selectFilters","values"],"sources":["../../src/helpers/get-query-filters.js"],"sourcesContent":["import getSearchFilterType from './get-search-filter-type';\nimport buildSearchValuesCheckboxSelect from './build-search-values-checkbox-select';\nimport { RANGE, CHECKBOX, SELECT } from '../constants';\n\nconst getQueryFilters = (searchFilter, query) => {\n if (!searchFilter.settings || !searchFilter.settings.filters) {\n return { valuesAnd: [], valuesOr: [] };\n }\n\n const rangeFilters = getSearchFilterType(searchFilter, RANGE);\n const checkboxFilters = getSearchFilterType(searchFilter, CHECKBOX);\n const selectFilters = getSearchFilterType(searchFilter, SELECT);\n\n const { values: valuesAnd, valuesOr } = buildSearchValuesCheckboxSelect(\n query,\n rangeFilters,\n checkboxFilters,\n selectFilters\n );\n return { valuesAnd, valuesOr };\n};\n\nexport default getQueryFilters;\n"],"mappings":"AAAA,OAAOA,mBAAmB,MAAM,0BAA0B;AAC1D,OAAOC,+BAA+B,MAAM,uCAAuC;AACnF,SAASC,KAAK,EAAEC,QAAQ,EAAEC,MAAM,QAAQ,cAAc;AAEtD,MAAMC,eAAe,GAAGA,CAACC,YAAY,EAAEC,KAAK,KAAK;EAC/C,IAAI,CAACD,YAAY,CAACE,QAAQ,IAAI,CAACF,YAAY,CAACE,QAAQ,CAACC,OAAO,EAAE;IAC5D,OAAO;MAAEC,SAAS,EAAE,EAAE;MAAEC,QAAQ,EAAE;IAAG,CAAC;EACxC;EAEA,MAAMC,YAAY,GAAGZ,mBAAmB,CAACM,YAAY,EAAEJ,KAAK,CAAC;EAC7D,MAAMW,eAAe,GAAGb,mBAAmB,CAACM,YAAY,EAAEH,QAAQ,CAAC;EACnE,MAAMW,aAAa,GAAGd,mBAAmB,CAACM,YAAY,EAAEF,MAAM,CAAC;EAE/D,MAAM;IAAEW,MAAM,EAAEL,SAAS;IAAEC;EAAS,CAAC,GAAGV,+BAA+B,CACrEM,KAAK,EACLK,YAAY,EACZC,eAAe,EACfC,aAAa,CACd;EACD,OAAO;IAAEJ,SAAS;IAAEC;EAAS,CAAC;AAChC,CAAC;AAED,eAAeN,eAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-query-props.js","names":["isFilterEntitysId","getFilterProps","ID","getQueryProps","inheritedFilters","currentSchema","filterEntitySchema","length","identifier","currentEntityId","reduce","acc","filter","filterName","relationName","relationProp","relationEntityName","isEntityItself","relationForeignKeys","shouldIgnoreFilter","join","queryProp","queryPropFinalValue"],"sources":["../../src/helpers/get-query-props.js"],"sourcesContent":["import isFilterEntitysId from './is-filter-entitys-id';\nimport getFilterProps from './get-filter-props';\nimport { ID } from '../constants';\n\nconst getQueryProps = (inheritedFilters, currentSchema, filterEntitySchema) => {\n if (!currentSchema || !inheritedFilters.length) return ID;\n\n const { identifier: currentEntityId } = currentSchema;\n\n return inheritedFilters.reduce((acc, filter) => {\n const {\n filterName,\n relationName,\n relationProp,\n relationEntityName,\n isEntityItself,\n relationForeignKeys,\n shouldIgnoreFilter\n } = getFilterProps(filter, currentSchema, filterEntitySchema);\n\n if (shouldIgnoreFilter) return acc;\n if (relationForeignKeys && relationForeignKeys.length) {\n return `${acc} ${relationForeignKeys.join(' ')}`;\n }\n\n const queryProp = relationEntityName ? `${relationName} { ${relationProp} }` : filterName;\n const queryPropFinalValue =\n isEntityItself && isFilterEntitysId(filterName, currentEntityId) ? ID : queryProp;\n\n return `${acc} ${queryPropFinalValue} `;\n }, ID);\n};\n\nexport default getQueryProps;\n"],"mappings":"AAAA,OAAOA,iBAAiB,MAAM,wBAAwB;AACtD,OAAOC,cAAc,MAAM,oBAAoB;AAC/C,SAASC,EAAE,QAAQ,cAAc;AAEjC,MAAMC,aAAa,
|
|
1
|
+
{"version":3,"file":"get-query-props.js","names":["isFilterEntitysId","getFilterProps","ID","getQueryProps","inheritedFilters","currentSchema","filterEntitySchema","length","identifier","currentEntityId","reduce","acc","filter","filterName","relationName","relationProp","relationEntityName","isEntityItself","relationForeignKeys","shouldIgnoreFilter","join","queryProp","queryPropFinalValue"],"sources":["../../src/helpers/get-query-props.js"],"sourcesContent":["import isFilterEntitysId from './is-filter-entitys-id';\nimport getFilterProps from './get-filter-props';\nimport { ID } from '../constants';\n\nconst getQueryProps = (inheritedFilters, currentSchema, filterEntitySchema) => {\n if (!currentSchema || !inheritedFilters.length) return ID;\n\n const { identifier: currentEntityId } = currentSchema;\n\n return inheritedFilters.reduce((acc, filter) => {\n const {\n filterName,\n relationName,\n relationProp,\n relationEntityName,\n isEntityItself,\n relationForeignKeys,\n shouldIgnoreFilter\n } = getFilterProps(filter, currentSchema, filterEntitySchema);\n\n if (shouldIgnoreFilter) return acc;\n if (relationForeignKeys && relationForeignKeys.length) {\n return `${acc} ${relationForeignKeys.join(' ')}`;\n }\n\n const queryProp = relationEntityName ? `${relationName} { ${relationProp} }` : filterName;\n const queryPropFinalValue =\n isEntityItself && isFilterEntitysId(filterName, currentEntityId) ? ID : queryProp;\n\n return `${acc} ${queryPropFinalValue} `;\n }, ID);\n};\n\nexport default getQueryProps;\n"],"mappings":"AAAA,OAAOA,iBAAiB,MAAM,wBAAwB;AACtD,OAAOC,cAAc,MAAM,oBAAoB;AAC/C,SAASC,EAAE,QAAQ,cAAc;AAEjC,MAAMC,aAAa,GAAGA,CAACC,gBAAgB,EAAEC,aAAa,EAAEC,kBAAkB,KAAK;EAC7E,IAAI,CAACD,aAAa,IAAI,CAACD,gBAAgB,CAACG,MAAM,EAAE,OAAOL,EAAE;EAEzD,MAAM;IAAEM,UAAU,EAAEC;EAAgB,CAAC,GAAGJ,aAAa;EAErD,OAAOD,gBAAgB,CAACM,MAAM,CAAC,CAACC,GAAG,EAAEC,MAAM,KAAK;IAC9C,MAAM;MACJC,UAAU;MACVC,YAAY;MACZC,YAAY;MACZC,kBAAkB;MAClBC,cAAc;MACdC,mBAAmB;MACnBC;IACF,CAAC,GAAGlB,cAAc,CAACW,MAAM,EAAEP,aAAa,EAAEC,kBAAkB,CAAC;IAE7D,IAAIa,kBAAkB,EAAE,OAAOR,GAAG;IAClC,IAAIO,mBAAmB,IAAIA,mBAAmB,CAACX,MAAM,EAAE;MACrD,OAAQ,GAAEI,GAAI,IAAGO,mBAAmB,CAACE,IAAI,CAAC,GAAG,CAAE,EAAC;IAClD;IAEA,MAAMC,SAAS,GAAGL,kBAAkB,GAAI,GAAEF,YAAa,MAAKC,YAAa,IAAG,GAAGF,UAAU;IACzF,MAAMS,mBAAmB,GACvBL,cAAc,IAAIjB,iBAAiB,CAACa,UAAU,EAAEJ,eAAe,CAAC,GAAGP,EAAE,GAAGmB,SAAS;IAEnF,OAAQ,GAAEV,GAAI,IAAGW,mBAAoB,GAAE;EACzC,CAAC,EAAEpB,EAAE,CAAC;AACR,CAAC;AAED,eAAeC,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-required-schemas.js","names":["getRequiredSchemas","searchProperties","id","properties","dynamicProperties","relations","map","property","fieldParts","split","localFieldPart","length","matchingRelation","find","localField","entityIdentifier","filter","Boolean"],"sources":["../../src/helpers/get-required-schemas.js"],"sourcesContent":["const getRequiredSchemas = (\n searchProperties,\n { id, properties = {}, dynamicProperties = {}, relations = [] } = {}\n) =>\n [\n id,\n ...searchProperties.map(property => {\n if (!property) return null;\n\n const fieldParts = property.split('.');\n const [localFieldPart] = property.split('.');\n\n if (\n fieldParts.length === 1 ||\n properties[localFieldPart] ||\n dynamicProperties[localFieldPart]\n ) {\n return null;\n }\n\n const matchingRelation = relations.find(({ localField }) => localField === localFieldPart);\n if (!matchingRelation) return null;\n\n return matchingRelation.entityIdentifier;\n })\n ].filter(Boolean);\n\nexport default getRequiredSchemas;\n"],"mappings":"AAAA,MAAMA,kBAAkB,
|
|
1
|
+
{"version":3,"file":"get-required-schemas.js","names":["getRequiredSchemas","searchProperties","id","properties","dynamicProperties","relations","map","property","fieldParts","split","localFieldPart","length","matchingRelation","find","localField","entityIdentifier","filter","Boolean"],"sources":["../../src/helpers/get-required-schemas.js"],"sourcesContent":["const getRequiredSchemas = (\n searchProperties,\n { id, properties = {}, dynamicProperties = {}, relations = [] } = {}\n) =>\n [\n id,\n ...searchProperties.map(property => {\n if (!property) return null;\n\n const fieldParts = property.split('.');\n const [localFieldPart] = property.split('.');\n\n if (\n fieldParts.length === 1 ||\n properties[localFieldPart] ||\n dynamicProperties[localFieldPart]\n ) {\n return null;\n }\n\n const matchingRelation = relations.find(({ localField }) => localField === localFieldPart);\n if (!matchingRelation) return null;\n\n return matchingRelation.entityIdentifier;\n })\n ].filter(Boolean);\n\nexport default getRequiredSchemas;\n"],"mappings":"AAAA,MAAMA,kBAAkB,GAAGA,CACzBC,gBAAgB,EAChB;EAAEC,EAAE;EAAEC,UAAU,GAAG,CAAC,CAAC;EAAEC,iBAAiB,GAAG,CAAC,CAAC;EAAEC,SAAS,GAAG;AAAG,CAAC,GAAG,CAAC,CAAC,KAEpE,CACEH,EAAE,EACF,GAAGD,gBAAgB,CAACK,GAAG,CAACC,QAAQ,IAAI;EAClC,IAAI,CAACA,QAAQ,EAAE,OAAO,IAAI;EAE1B,MAAMC,UAAU,GAAGD,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;EACtC,MAAM,CAACC,cAAc,CAAC,GAAGH,QAAQ,CAACE,KAAK,CAAC,GAAG,CAAC;EAE5C,IACED,UAAU,CAACG,MAAM,KAAK,CAAC,IACvBR,UAAU,CAACO,cAAc,CAAC,IAC1BN,iBAAiB,CAACM,cAAc,CAAC,EACjC;IACA,OAAO,IAAI;EACb;EAEA,MAAME,gBAAgB,GAAGP,SAAS,CAACQ,IAAI,CAAC,CAAC;IAAEC;EAAW,CAAC,KAAKA,UAAU,KAAKJ,cAAc,CAAC;EAC1F,IAAI,CAACE,gBAAgB,EAAE,OAAO,IAAI;EAElC,OAAOA,gBAAgB,CAACG,gBAAgB;AAC1C,CAAC,CAAC,CACH,CAACC,MAAM,CAACC,OAAO,CAAC;AAEnB,eAAejB,kBAAkB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-search-filter-type.js","names":["getSearchFilterType","settings","filters","type","length","filter","filterType"],"sources":["../../src/helpers/get-search-filter-type.js"],"sourcesContent":["const getSearchFilterType = ({ settings: { filters = [] } = {} }, type) => {\n if (!filters.length) return [];\n\n return filters.filter(({ type: filterType }) => filterType === type);\n};\n\nexport default getSearchFilterType;\n"],"mappings":"AAAA,MAAMA,mBAAmB,
|
|
1
|
+
{"version":3,"file":"get-search-filter-type.js","names":["getSearchFilterType","settings","filters","type","length","filter","filterType"],"sources":["../../src/helpers/get-search-filter-type.js"],"sourcesContent":["const getSearchFilterType = ({ settings: { filters = [] } = {} }, type) => {\n if (!filters.length) return [];\n\n return filters.filter(({ type: filterType }) => filterType === type);\n};\n\nexport default getSearchFilterType;\n"],"mappings":"AAAA,MAAMA,mBAAmB,GAAGA,CAAC;EAAEC,QAAQ,EAAE;IAAEC,OAAO,GAAG;EAAG,CAAC,GAAG,CAAC;AAAE,CAAC,EAAEC,IAAI,KAAK;EACzE,IAAI,CAACD,OAAO,CAACE,MAAM,EAAE,OAAO,EAAE;EAE9B,OAAOF,OAAO,CAACG,MAAM,CAAC,CAAC;IAAEF,IAAI,EAAEG;EAAW,CAAC,KAAKA,UAAU,KAAKH,IAAI,CAAC;AACtE,CAAC;AAED,eAAeH,mBAAmB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-sort-by-field-name.js","names":["KEYWORD","buildFieldName","relations","fieldValue","stringProps","field","Array","isArray","updatedField","includes","relationName","relationProp","split","relation","filter","localField","entityIdentifier","getSortbyFieldName","sortby","isSortbyArray"],"sources":["../../src/helpers/get-sort-by-field-name.js"],"sourcesContent":["import { KEYWORD } from '../constants';\n\nconst buildFieldName = (relations, fieldValue, stringProps) => {\n const field = Array.isArray(fieldValue) ? fieldValue[0] : fieldValue;\n if (!field) return null;\n\n let updatedField = field;\n\n if (field.includes('.')) {\n const [relationName, relationProp] = field.split('.');\n\n const [relation] = relations.filter(({ localField }) => localField === relationName);\n const { entityIdentifier = '' } = relation || {};\n if (entityIdentifier && entityIdentifier !== relationName)\n updatedField = `${entityIdentifier}.${relationProp}`;\n }\n return stringProps.includes(updatedField) ? `${field}.${KEYWORD}` : field;\n};\n\nconst getSortbyFieldName = (relations, sortby, stringProps, isSortbyArray) =>\n isSortbyArray\n ? buildFieldName(relations, sortby[0], stringProps)\n : buildFieldName(relations, sortby, stringProps);\n\nexport default getSortbyFieldName;\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,cAAc;AAEtC,MAAMC,cAAc,
|
|
1
|
+
{"version":3,"file":"get-sort-by-field-name.js","names":["KEYWORD","buildFieldName","relations","fieldValue","stringProps","field","Array","isArray","updatedField","includes","relationName","relationProp","split","relation","filter","localField","entityIdentifier","getSortbyFieldName","sortby","isSortbyArray"],"sources":["../../src/helpers/get-sort-by-field-name.js"],"sourcesContent":["import { KEYWORD } from '../constants';\n\nconst buildFieldName = (relations, fieldValue, stringProps) => {\n const field = Array.isArray(fieldValue) ? fieldValue[0] : fieldValue;\n if (!field) return null;\n\n let updatedField = field;\n\n if (field.includes('.')) {\n const [relationName, relationProp] = field.split('.');\n\n const [relation] = relations.filter(({ localField }) => localField === relationName);\n const { entityIdentifier = '' } = relation || {};\n if (entityIdentifier && entityIdentifier !== relationName)\n updatedField = `${entityIdentifier}.${relationProp}`;\n }\n return stringProps.includes(updatedField) ? `${field}.${KEYWORD}` : field;\n};\n\nconst getSortbyFieldName = (relations, sortby, stringProps, isSortbyArray) =>\n isSortbyArray\n ? buildFieldName(relations, sortby[0], stringProps)\n : buildFieldName(relations, sortby, stringProps);\n\nexport default getSortbyFieldName;\n"],"mappings":"AAAA,SAASA,OAAO,QAAQ,cAAc;AAEtC,MAAMC,cAAc,GAAGA,CAACC,SAAS,EAAEC,UAAU,EAAEC,WAAW,KAAK;EAC7D,MAAMC,KAAK,GAAGC,KAAK,CAACC,OAAO,CAACJ,UAAU,CAAC,GAAGA,UAAU,CAAC,CAAC,CAAC,GAAGA,UAAU;EACpE,IAAI,CAACE,KAAK,EAAE,OAAO,IAAI;EAEvB,IAAIG,YAAY,GAAGH,KAAK;EAExB,IAAIA,KAAK,CAACI,QAAQ,CAAC,GAAG,CAAC,EAAE;IACvB,MAAM,CAACC,YAAY,EAAEC,YAAY,CAAC,GAAGN,KAAK,CAACO,KAAK,CAAC,GAAG,CAAC;IAErD,MAAM,CAACC,QAAQ,CAAC,GAAGX,SAAS,CAACY,MAAM,CAAC,CAAC;MAAEC;IAAW,CAAC,KAAKA,UAAU,KAAKL,YAAY,CAAC;IACpF,MAAM;MAAEM,gBAAgB,GAAG;IAAG,CAAC,GAAGH,QAAQ,IAAI,CAAC,CAAC;IAChD,IAAIG,gBAAgB,IAAIA,gBAAgB,KAAKN,YAAY,EACvDF,YAAY,GAAI,GAAEQ,gBAAiB,IAAGL,YAAa,EAAC;EACxD;EACA,OAAOP,WAAW,CAACK,QAAQ,CAACD,YAAY,CAAC,GAAI,GAAEH,KAAM,IAAGL,OAAQ,EAAC,GAAGK,KAAK;AAC3E,CAAC;AAED,MAAMY,kBAAkB,GAAGA,CAACf,SAAS,EAAEgB,MAAM,EAAEd,WAAW,EAAEe,aAAa,KACvEA,aAAa,GACTlB,cAAc,CAACC,SAAS,EAAEgB,MAAM,CAAC,CAAC,CAAC,EAAEd,WAAW,CAAC,GACjDH,cAAc,CAACC,SAAS,EAAEgB,MAAM,EAAEd,WAAW,CAAC;AAEpD,eAAea,kBAAkB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-updated-filter-by.js","names":["uniq","buildInheritedFilters","getUpdatedFilterBy","inheritedFilters","entityData","currentSchema","filterEntitySchema","itemId","props","length","relationFilters","filterBy"],"sources":["../../src/helpers/get-updated-filter-by.js"],"sourcesContent":["import uniq from 'lodash.uniq';\nimport buildInheritedFilters from './build-inherited-filters';\n\nconst getUpdatedFilterBy = (\n inheritedFilters,\n entityData,\n currentSchema,\n filterEntitySchema,\n itemId,\n props\n) => {\n if (inheritedFilters && inheritedFilters.length) {\n const relationFilters = buildInheritedFilters(\n entityData,\n inheritedFilters,\n currentSchema,\n filterEntitySchema,\n itemId\n );\n\n return relationFilters.length ? uniq([...props.filterBy, ...relationFilters]) : null;\n }\n return [];\n};\n\nexport default getUpdatedFilterBy;\n"],"mappings":"AAAA,OAAOA,IAAI,MAAM,aAAa;AAC9B,OAAOC,qBAAqB,MAAM,2BAA2B;AAE7D,MAAMC,kBAAkB,
|
|
1
|
+
{"version":3,"file":"get-updated-filter-by.js","names":["uniq","buildInheritedFilters","getUpdatedFilterBy","inheritedFilters","entityData","currentSchema","filterEntitySchema","itemId","props","length","relationFilters","filterBy"],"sources":["../../src/helpers/get-updated-filter-by.js"],"sourcesContent":["import uniq from 'lodash.uniq';\nimport buildInheritedFilters from './build-inherited-filters';\n\nconst getUpdatedFilterBy = (\n inheritedFilters,\n entityData,\n currentSchema,\n filterEntitySchema,\n itemId,\n props\n) => {\n if (inheritedFilters && inheritedFilters.length) {\n const relationFilters = buildInheritedFilters(\n entityData,\n inheritedFilters,\n currentSchema,\n filterEntitySchema,\n itemId\n );\n\n return relationFilters.length ? uniq([...props.filterBy, ...relationFilters]) : null;\n }\n return [];\n};\n\nexport default getUpdatedFilterBy;\n"],"mappings":"AAAA,OAAOA,IAAI,MAAM,aAAa;AAC9B,OAAOC,qBAAqB,MAAM,2BAA2B;AAE7D,MAAMC,kBAAkB,GAAGA,CACzBC,gBAAgB,EAChBC,UAAU,EACVC,aAAa,EACbC,kBAAkB,EAClBC,MAAM,EACNC,KAAK,KACF;EACH,IAAIL,gBAAgB,IAAIA,gBAAgB,CAACM,MAAM,EAAE;IAC/C,MAAMC,eAAe,GAAGT,qBAAqB,CAC3CG,UAAU,EACVD,gBAAgB,EAChBE,aAAa,EACbC,kBAAkB,EAClBC,MAAM,CACP;IAED,OAAOG,eAAe,CAACD,MAAM,GAAGT,IAAI,CAAC,CAAC,GAAGQ,KAAK,CAACG,QAAQ,EAAE,GAAGD,eAAe,CAAC,CAAC,GAAG,IAAI;EACtF;EACA,OAAO,EAAE;AACX,CAAC;AAED,eAAeR,kBAAkB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-wrapped-value-with-link.js","names":["React","BlazeLink","getWrappedValueWithLink","value","link","keyPrefix","Array","isArray","arrayResults","map","arrValue","index","keyField","url","keyValue","isLastItem","length","keyFieldValue","concat","join"],"sources":["../../src/helpers/get-wrapped-value-with-link.js"],"sourcesContent":["import React from 'react';\nimport BlazeLink from '../components/BlazeLink';\n\nconst getWrappedValueWithLink = (value, link, keyPrefix = '') => {\n if (Array.isArray(value)) {\n const arrayResults = value.map((arrValue, index) => {\n const { keyField, url } = arrValue;\n const keyValue = arrValue[keyField];\n const isLastItem = index === value.length - 1;\n const keyFieldValue = isLastItem ? keyValue : keyValue.concat(',');\n\n return url ? (\n <BlazeLink key={[keyPrefix, index].join('-')} href={url}>{`${keyFieldValue} `}</BlazeLink>\n ) : (\n `${keyFieldValue} `\n );\n });\n\n return arrayResults.length ? arrayResults : null;\n }\n\n return link ? <BlazeLink href={link}>{value}</BlazeLink> : value;\n};\n\nexport default getWrappedValueWithLink;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,yBAAyB;AAE/C,MAAMC,uBAAuB,
|
|
1
|
+
{"version":3,"file":"get-wrapped-value-with-link.js","names":["React","BlazeLink","getWrappedValueWithLink","value","link","keyPrefix","Array","isArray","arrayResults","map","arrValue","index","keyField","url","keyValue","isLastItem","length","keyFieldValue","concat","createElement","key","join","href"],"sources":["../../src/helpers/get-wrapped-value-with-link.js"],"sourcesContent":["import React from 'react';\nimport BlazeLink from '../components/BlazeLink';\n\nconst getWrappedValueWithLink = (value, link, keyPrefix = '') => {\n if (Array.isArray(value)) {\n const arrayResults = value.map((arrValue, index) => {\n const { keyField, url } = arrValue;\n const keyValue = arrValue[keyField];\n const isLastItem = index === value.length - 1;\n const keyFieldValue = isLastItem ? keyValue : keyValue.concat(',');\n\n return url ? (\n <BlazeLink key={[keyPrefix, index].join('-')} href={url}>{`${keyFieldValue} `}</BlazeLink>\n ) : (\n `${keyFieldValue} `\n );\n });\n\n return arrayResults.length ? arrayResults : null;\n }\n\n return link ? <BlazeLink href={link}>{value}</BlazeLink> : value;\n};\n\nexport default getWrappedValueWithLink;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,yBAAyB;AAE/C,MAAMC,uBAAuB,GAAGA,CAACC,KAAK,EAAEC,IAAI,EAAEC,SAAS,GAAG,EAAE,KAAK;EAC/D,IAAIC,KAAK,CAACC,OAAO,CAACJ,KAAK,CAAC,EAAE;IACxB,MAAMK,YAAY,GAAGL,KAAK,CAACM,GAAG,CAAC,CAACC,QAAQ,EAAEC,KAAK,KAAK;MAClD,MAAM;QAAEC,QAAQ;QAAEC;MAAI,CAAC,GAAGH,QAAQ;MAClC,MAAMI,QAAQ,GAAGJ,QAAQ,CAACE,QAAQ,CAAC;MACnC,MAAMG,UAAU,GAAGJ,KAAK,KAAKR,KAAK,CAACa,MAAM,GAAG,CAAC;MAC7C,MAAMC,aAAa,GAAGF,UAAU,GAAGD,QAAQ,GAAGA,QAAQ,CAACI,MAAM,CAAC,GAAG,CAAC;MAElE,OAAOL,GAAG,gBACRb,KAAA,CAAAmB,aAAA,CAAClB,SAAS;QAACmB,GAAG,EAAE,CAACf,SAAS,EAAEM,KAAK,CAAC,CAACU,IAAI,CAAC,GAAG,CAAE;QAACC,IAAI,EAAET;MAAI,GAAG,GAAEI,aAAc,GAAE,CAAa,GAEzF,GAAEA,aAAc,GAClB;IACH,CAAC,CAAC;IAEF,OAAOT,YAAY,CAACQ,MAAM,GAAGR,YAAY,GAAG,IAAI;EAClD;EAEA,OAAOJ,IAAI,gBAAGJ,KAAA,CAAAmB,aAAA,CAAClB,SAAS;IAACqB,IAAI,EAAElB;EAAK,GAAED,KAAK,CAAa,GAAGA,KAAK;AAClE,CAAC;AAED,eAAeD,uBAAuB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group-entities.js","names":["groupEntities","entities","size","entitiesSet","controledSize","Number","length","chunks","push","splice"],"sources":["../../src/helpers/group-entities.js"],"sourcesContent":["export default function groupEntities(entities, size) {\n const entitiesSet = [...entities];\n const controledSize = size ? Number(size) : entitiesSet.length;\n const chunks = [];\n\n while (entitiesSet.length) {\n chunks.push(entitiesSet.splice(0, controledSize));\n }\n\n return chunks;\n}\n"],"mappings":"AAAA,eAAe,SAASA,
|
|
1
|
+
{"version":3,"file":"group-entities.js","names":["groupEntities","entities","size","entitiesSet","controledSize","Number","length","chunks","push","splice"],"sources":["../../src/helpers/group-entities.js"],"sourcesContent":["export default function groupEntities(entities, size) {\n const entitiesSet = [...entities];\n const controledSize = size ? Number(size) : entitiesSet.length;\n const chunks = [];\n\n while (entitiesSet.length) {\n chunks.push(entitiesSet.splice(0, controledSize));\n }\n\n return chunks;\n}\n"],"mappings":"AAAA,eAAe,SAASA,aAAaA,CAACC,QAAQ,EAAEC,IAAI,EAAE;EACpD,MAAMC,WAAW,GAAG,CAAC,GAAGF,QAAQ,CAAC;EACjC,MAAMG,aAAa,GAAGF,IAAI,GAAGG,MAAM,CAACH,IAAI,CAAC,GAAGC,WAAW,CAACG,MAAM;EAC9D,MAAMC,MAAM,GAAG,EAAE;EAEjB,OAAOJ,WAAW,CAACG,MAAM,EAAE;IACzBC,MAAM,CAACC,IAAI,CAACL,WAAW,CAACM,MAAM,CAAC,CAAC,EAAEL,aAAa,CAAC,CAAC;EACnD;EAEA,OAAOG,MAAM;AACf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inject-banner.js","names":["React","parseInterval","Banner","injectBanner","entities","banner","interval","transform","parsedInterval","entitySet","bannerElement","splice"],"sources":["../../src/helpers/inject-banner.js"],"sourcesContent":["import React from 'react';\nimport parseInterval from './parse-interval';\nimport Banner from '../components/Banner';\n\nexport default function injectBanner(entities, banner) {\n const { interval, transform = false } = banner;\n const parsedInterval = parseInterval(interval);\n const entitySet = [...entities];\n\n const bannerElement = transform ? <Banner {...banner} /> : banner;\n\n entitySet.splice(parsedInterval, 0, bannerElement);\n\n return entitySet;\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,aAAa,MAAM,kBAAkB;AAC5C,OAAOC,MAAM,MAAM,sBAAsB;AAEzC,eAAe,SAASC,
|
|
1
|
+
{"version":3,"file":"inject-banner.js","names":["React","parseInterval","Banner","injectBanner","entities","banner","interval","transform","parsedInterval","entitySet","bannerElement","createElement","splice"],"sources":["../../src/helpers/inject-banner.js"],"sourcesContent":["import React from 'react';\nimport parseInterval from './parse-interval';\nimport Banner from '../components/Banner';\n\nexport default function injectBanner(entities, banner) {\n const { interval, transform = false } = banner;\n const parsedInterval = parseInterval(interval);\n const entitySet = [...entities];\n\n const bannerElement = transform ? <Banner {...banner} /> : banner;\n\n entitySet.splice(parsedInterval, 0, bannerElement);\n\n return entitySet;\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,aAAa,MAAM,kBAAkB;AAC5C,OAAOC,MAAM,MAAM,sBAAsB;AAEzC,eAAe,SAASC,YAAYA,CAACC,QAAQ,EAAEC,MAAM,EAAE;EACrD,MAAM;IAAEC,QAAQ;IAAEC,SAAS,GAAG;EAAM,CAAC,GAAGF,MAAM;EAC9C,MAAMG,cAAc,GAAGP,aAAa,CAACK,QAAQ,CAAC;EAC9C,MAAMG,SAAS,GAAG,CAAC,GAAGL,QAAQ,CAAC;EAE/B,MAAMM,aAAa,GAAGH,SAAS,gBAAGP,KAAA,CAAAW,aAAA,CAACT,MAAM,EAAKG,MAAM,CAAI,GAAGA,MAAM;EAEjEI,SAAS,CAACG,MAAM,CAACJ,cAAc,EAAE,CAAC,EAAEE,aAAa,CAAC;EAElD,OAAOD,SAAS;AAClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inject-banners-to-entities.js","names":["injectBanner","getBannerData","injectMultipleBanners","injectBannersToEntities","entities","banner","options","length","repeat","bannerData","entitiesWithBanner"],"sources":["../../src/helpers/inject-banners-to-entities.js"],"sourcesContent":["import injectBanner from './inject-banner';\nimport getBannerData from './get-banner-data';\nimport injectMultipleBanners from './inject-multiple-banners';\n\nexport default function injectBannersToEntities(entities, { banner, ...options }) {\n if (!entities.length) return [];\n\n const { repeat } = banner;\n const bannerData = getBannerData(banner, options);\n\n const entitiesWithBanner = repeat\n ? injectMultipleBanners(entities, bannerData)\n : injectBanner(entities, bannerData);\n\n return entitiesWithBanner;\n}\n"],"mappings":";;AAAA,OAAOA,YAAY,MAAM,iBAAiB;AAC1C,OAAOC,aAAa,MAAM,mBAAmB;AAC7C,OAAOC,qBAAqB,MAAM,2BAA2B;AAE7D,eAAe,SAASC,
|
|
1
|
+
{"version":3,"file":"inject-banners-to-entities.js","names":["injectBanner","getBannerData","injectMultipleBanners","injectBannersToEntities","entities","_ref","banner","options","_objectWithoutProperties","_excluded","length","repeat","bannerData","entitiesWithBanner"],"sources":["../../src/helpers/inject-banners-to-entities.js"],"sourcesContent":["import injectBanner from './inject-banner';\nimport getBannerData from './get-banner-data';\nimport injectMultipleBanners from './inject-multiple-banners';\n\nexport default function injectBannersToEntities(entities, { banner, ...options }) {\n if (!entities.length) return [];\n\n const { repeat } = banner;\n const bannerData = getBannerData(banner, options);\n\n const entitiesWithBanner = repeat\n ? injectMultipleBanners(entities, bannerData)\n : injectBanner(entities, bannerData);\n\n return entitiesWithBanner;\n}\n"],"mappings":";;AAAA,OAAOA,YAAY,MAAM,iBAAiB;AAC1C,OAAOC,aAAa,MAAM,mBAAmB;AAC7C,OAAOC,qBAAqB,MAAM,2BAA2B;AAE7D,eAAe,SAASC,uBAAuBA,CAACC,QAAQ,EAAAC,IAAA,EAA0B;EAAA,IAAxB;MAAEC;IAAmB,CAAC,GAAAD,IAAA;IAATE,OAAO,GAAAC,wBAAA,CAAAH,IAAA,EAAAI,SAAA;EAC5E,IAAI,CAACL,QAAQ,CAACM,MAAM,EAAE,OAAO,EAAE;EAE/B,MAAM;IAAEC;EAAO,CAAC,GAAGL,MAAM;EACzB,MAAMM,UAAU,GAAGX,aAAa,CAACK,MAAM,EAAEC,OAAO,CAAC;EAEjD,MAAMM,kBAAkB,GAAGF,MAAM,GAC7BT,qBAAqB,CAACE,QAAQ,EAAEQ,UAAU,CAAC,GAC3CZ,YAAY,CAACI,QAAQ,EAAEQ,UAAU,CAAC;EAEtC,OAAOC,kBAAkB;AAC3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-banners-for-entities.js","names":["flatten","groupEntities","injectBanner","getBannersForEntities","entitiesSet","banner","interval","limit","controlledLimit","length","groups","entitiesWithBanner","map","chunk","sanitizedEntities","slice"],"sources":["../../../../src/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js"],"sourcesContent":["import flatten from 'lodash.flatten';\nimport groupEntities from '../../group-entities';\nimport injectBanner from '../../inject-banner';\n\nexport default function getBannersForEntities(entitiesSet, banner) {\n const { interval, limit } = banner;\n const controlledLimit = limit || entitiesSet.length;\n\n const groups = groupEntities(entitiesSet, interval - 1);\n\n const entitiesWithBanner = groups.map(chunk => injectBanner(chunk, banner));\n\n const sanitizedEntities = flatten(entitiesWithBanner).slice(0, controlledLimit);\n\n return sanitizedEntities;\n}\n"],"mappings":"AAAA,OAAOA,OAAO,MAAM,gBAAgB;AACpC,OAAOC,aAAa,MAAM,sBAAsB;AAChD,OAAOC,YAAY,MAAM,qBAAqB;AAE9C,eAAe,SAASC,
|
|
1
|
+
{"version":3,"file":"get-banners-for-entities.js","names":["flatten","groupEntities","injectBanner","getBannersForEntities","entitiesSet","banner","interval","limit","controlledLimit","length","groups","entitiesWithBanner","map","chunk","sanitizedEntities","slice"],"sources":["../../../../src/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js"],"sourcesContent":["import flatten from 'lodash.flatten';\nimport groupEntities from '../../group-entities';\nimport injectBanner from '../../inject-banner';\n\nexport default function getBannersForEntities(entitiesSet, banner) {\n const { interval, limit } = banner;\n const controlledLimit = limit || entitiesSet.length;\n\n const groups = groupEntities(entitiesSet, interval - 1);\n\n const entitiesWithBanner = groups.map(chunk => injectBanner(chunk, banner));\n\n const sanitizedEntities = flatten(entitiesWithBanner).slice(0, controlledLimit);\n\n return sanitizedEntities;\n}\n"],"mappings":"AAAA,OAAOA,OAAO,MAAM,gBAAgB;AACpC,OAAOC,aAAa,MAAM,sBAAsB;AAChD,OAAOC,YAAY,MAAM,qBAAqB;AAE9C,eAAe,SAASC,qBAAqBA,CAACC,WAAW,EAAEC,MAAM,EAAE;EACjE,MAAM;IAAEC,QAAQ;IAAEC;EAAM,CAAC,GAAGF,MAAM;EAClC,MAAMG,eAAe,GAAGD,KAAK,IAAIH,WAAW,CAACK,MAAM;EAEnD,MAAMC,MAAM,GAAGT,aAAa,CAACG,WAAW,EAAEE,QAAQ,GAAG,CAAC,CAAC;EAEvD,MAAMK,kBAAkB,GAAGD,MAAM,CAACE,GAAG,CAACC,KAAK,IAAIX,YAAY,CAACW,KAAK,EAAER,MAAM,CAAC,CAAC;EAE3E,MAAMS,iBAAiB,GAAGd,OAAO,CAACW,kBAAkB,CAAC,CAACI,KAAK,CAAC,CAAC,EAAEP,eAAe,CAAC;EAE/E,OAAOM,iBAAiB;AAC1B"}
|
package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-banners-for-nodes.js","names":["flatten","groupNodeEntities","injectBanner","getBannersForNodes","entitiesSet","banner","groups","nodesWithBanner","map","chunk","index","key","adunit","interval","length"],"sources":["../../../../src/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js"],"sourcesContent":["import flatten from 'lodash.flatten';\nimport { groupNodeEntities } from './helpers';\nimport injectBanner from '../../inject-banner';\n\nexport default function getBannersForNodes(entitiesSet, banner) {\n const groups = groupNodeEntities(entitiesSet, banner);\n const nodesWithBanner = groups\n .map((chunk, index) => {\n const key = `${banner.adunit}-${index}`;\n const interval = chunk.length + 1;\n\n return injectBanner(chunk, { ...banner, key, interval });\n })\n .map(flatten);\n\n return nodesWithBanner;\n}\n"],"mappings":";;;AAAA,OAAOA,OAAO,MAAM,gBAAgB;AACpC,SAASC,iBAAiB,QAAQ,WAAW;AAC7C,OAAOC,YAAY,MAAM,qBAAqB;AAE9C,eAAe,SAASC,
|
|
1
|
+
{"version":3,"file":"get-banners-for-nodes.js","names":["flatten","groupNodeEntities","injectBanner","getBannersForNodes","entitiesSet","banner","groups","nodesWithBanner","map","chunk","index","key","adunit","interval","length","_objectSpread"],"sources":["../../../../src/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js"],"sourcesContent":["import flatten from 'lodash.flatten';\nimport { groupNodeEntities } from './helpers';\nimport injectBanner from '../../inject-banner';\n\nexport default function getBannersForNodes(entitiesSet, banner) {\n const groups = groupNodeEntities(entitiesSet, banner);\n const nodesWithBanner = groups\n .map((chunk, index) => {\n const key = `${banner.adunit}-${index}`;\n const interval = chunk.length + 1;\n\n return injectBanner(chunk, { ...banner, key, interval });\n })\n .map(flatten);\n\n return nodesWithBanner;\n}\n"],"mappings":";;;AAAA,OAAOA,OAAO,MAAM,gBAAgB;AACpC,SAASC,iBAAiB,QAAQ,WAAW;AAC7C,OAAOC,YAAY,MAAM,qBAAqB;AAE9C,eAAe,SAASC,kBAAkBA,CAACC,WAAW,EAAEC,MAAM,EAAE;EAC9D,MAAMC,MAAM,GAAGL,iBAAiB,CAACG,WAAW,EAAEC,MAAM,CAAC;EACrD,MAAME,eAAe,GAAGD,MAAM,CAC3BE,GAAG,CAAC,CAACC,KAAK,EAAEC,KAAK,KAAK;IACrB,MAAMC,GAAG,GAAI,GAAEN,MAAM,CAACO,MAAO,IAAGF,KAAM,EAAC;IACvC,MAAMG,QAAQ,GAAGJ,KAAK,CAACK,MAAM,GAAG,CAAC;IAEjC,OAAOZ,YAAY,CAACO,KAAK,EAAAM,aAAA,CAAAA,aAAA,KAAOV,MAAM;MAAEM,GAAG;MAAEE;IAAQ,GAAG;EAC1D,CAAC,CAAC,CACDL,GAAG,CAACR,OAAO,CAAC;EAEf,OAAOO,eAAe;AACxB"}
|