@blaze-cms/react-page-builder 0.128.0-admin-updates.0 → 0.128.0-admin-updates.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 +16 -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.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 +1 -5
- 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.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.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 +6 -3
- package/lib/components/Card/Card.js.map +1 -1
- package/lib/components/Card/{CardContainer.js → CardsContainer.js} +13 -11
- package/lib/components/Card/CardsContainer.js.map +1 -0
- package/lib/components/Card/{CardFactory.js → CardsFactory.js} +21 -14
- package/lib/components/Card/CardsFactory.js.map +1 -0
- package/lib/components/Card/{CardRender.js → CardsRender.js} +75 -70
- package/lib/components/Card/CardsRender.js.map +1 -0
- 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 +6 -4
- package/lib/components/Card/helpers/filters-setup.js.map +1 -1
- 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/get-updated-sort-properties.js +32 -0
- package/lib/components/Card/helpers/get-updated-sort-properties.js.map +1 -0
- package/lib/components/Card/helpers/index.js +7 -0
- 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 +2 -2
- 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 +1 -2
- package/lib/components/ContentGroup/helpers/get-active-tab.js.map +1 -1
- package/lib/components/ContentGroup/helpers/get-sections-data.js +1 -1
- 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.map +1 -1
- package/lib/components/EmailConfirm/index.js.map +1 -1
- package/lib/components/EmailConfirm/mutation.js.map +1 -1
- package/lib/components/Iframe/Iframe.js.map +1 -1
- package/lib/components/Iframe/constants.js.map +1 -1
- package/lib/components/Iframe/index.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.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.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.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 +34 -15
- package/lib/components/List/ListBuilder.js.map +1 -1
- package/lib/components/List/ListFactory.js +36 -37
- 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 +4 -4
- 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.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.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.map +1 -1
- package/lib/components/SearchFilter/components/Checkbox.js.map +1 -1
- 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.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.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 +10 -10
- package/lib/helpers/build-props-query.js.map +1 -1
- package/lib/helpers/build-query-fields.js +5 -2
- package/lib/helpers/build-query-fields.js.map +1 -1
- package/lib/helpers/build-raw-query-base.js +20 -5
- 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.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 +2 -0
- 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.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 +2 -2
- 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.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.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.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.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 +1 -32
- 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 +7 -4
- package/lib-es/components/Card/Card.js.map +1 -1
- package/lib-es/components/Card/{CardContainer.js → CardsContainer.js} +13 -11
- package/lib-es/components/Card/CardsContainer.js.map +1 -0
- package/lib-es/components/Card/{CardFactory.js → CardsFactory.js} +21 -14
- package/lib-es/components/Card/CardsFactory.js.map +1 -0
- package/lib-es/components/Card/{CardRender.js → CardsRender.js} +57 -57
- package/lib-es/components/Card/CardsRender.js.map +1 -0
- package/lib-es/components/Card/helpers/filter-query-setup.js.map +1 -1
- package/lib-es/components/Card/helpers/filters-setup.js +4 -4
- 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/get-updated-sort-properties.js +15 -0
- package/lib-es/components/Card/helpers/get-updated-sort-properties.js.map +1 -0
- package/lib-es/components/Card/helpers/index.js +1 -0
- package/lib-es/components/Card/helpers/index.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/Card/index.js +2 -2
- package/lib-es/components/Card/index.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 +1 -2
- package/lib-es/components/ContentGroup/helpers/get-active-tab.js.map +1 -1
- package/lib-es/components/ContentGroup/helpers/get-sections-data.js +1 -1
- package/lib-es/components/ContentGroup/helpers/get-sections-data.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/Iframe/Iframe.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 +25 -15
- package/lib-es/components/List/ListBuilder.js.map +1 -1
- package/lib-es/components/List/ListFactory.js +21 -24
- 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 +4 -4
- 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.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 +7 -11
- package/lib-es/helpers/build-props-query.js.map +1 -1
- package/lib-es/helpers/build-query-fields.js +3 -2
- package/lib-es/helpers/build-query-fields.js.map +1 -1
- package/lib-es/helpers/build-raw-query-base.js +17 -5
- 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 +2 -0
- 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 +2 -2
- 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.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 -3
- package/src/application/query/index.js +0 -33
- package/src/components/Card/Card.js +5 -2
- package/src/components/Card/{CardContainer.js → CardsContainer.js} +11 -9
- package/src/components/Card/{CardFactory.js → CardsFactory.js} +23 -11
- package/src/components/Card/{CardRender.js → CardsRender.js} +84 -58
- package/src/components/Card/helpers/filters-setup.js +4 -4
- package/src/components/Card/helpers/get-updated-sort-properties.js +14 -0
- package/src/components/Card/helpers/index.js +1 -0
- package/src/components/Card/index.js +2 -2
- package/src/components/ContentGroup/helpers/get-active-tab.js +1 -2
- package/src/components/ContentGroup/helpers/get-sections-data.js +1 -1
- package/src/components/List/ListBuilder.js +22 -11
- package/src/components/List/ListFactory.js +20 -37
- package/src/components/List/components/Cards/CardsRenderItem.js +4 -4
- package/src/helpers/build-props-query.js +7 -8
- package/src/helpers/build-query-fields.js +5 -2
- package/src/helpers/build-raw-query-base.js +20 -9
- package/src/helpers/get-entity-data.js +2 -2
- package/src/helpers/split-children.js +2 -2
- package/tests/helpers/mocks.js +144 -266
- package/tests/unit/src/components/Card/Card.test.js +4 -1
- package/tests/unit/src/components/Card/CardContainer.test.js +14 -7
- package/tests/unit/src/components/Card/__snapshots__/CardContainer.test.js.snap +2 -2
- package/tests/unit/src/components/Card/mockData.js +99 -6
- package/tests/unit/src/components/ContentGroup/helpers/get-active-tab.test.js +10 -1
- package/tests/unit/src/components/ContentGroup/helpers/get-sections-data.test.js +16 -0
- package/tests/unit/src/components/List/components/mocks.js +4 -1
- package/tests/unit/src/helpers/__snapshots__/build-query-fields.test.js.snap +29 -0
- package/tests/unit/src/helpers/build-props-query.test.js +0 -4
- package/tests/unit/src/helpers/build-query-fields.test.js +3 -30
- package/tests/unit/src/helpers/build-raw-query-base.test.js +6 -4
- package/tests/unit/src/helpers/build-raw-query.test.js +10 -0
- package/tests/unit/src/hooks/helpers/split-children.test.js +9 -8
- package/lib/components/Card/CardContainer.js.map +0 -1
- package/lib/components/Card/CardFactory.js.map +0 -1
- package/lib/components/Card/CardRender.js.map +0 -1
- package/lib-es/components/Card/CardContainer.js.map +0 -1
- package/lib-es/components/Card/CardFactory.js.map +0 -1
- package/lib-es/components/Card/CardRender.js.map +0 -1
- package/tests/unit/src/components/Card/CardRender.test.js +0 -77
- package/tests/unit/src/components/Card/__snapshots__/CardRender.test.js.snap +0 -55
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-props-query.js","names":["defaultProps","ID","categoryProps","checkProps","props","Object","keys","filter","prop","CATEGORY_ID","length","buildPropsQuery","
|
|
1
|
+
{"version":3,"file":"build-props-query.js","names":["_constants","require","defaultProps","ID","categoryProps","checkProps","props","Object","keys","filter","prop","CATEGORY_ID","length","buildPropsQuery","entitySchema","extraProps","arguments","undefined","cardOptions","parsedSchema","getEntitySchema","extraPropsHaveCategory","includes","_getTypeBaseProps","getTypeBaseProps","typeBasedProps","shouldAddCategoryProps","allProps","concat","_toConsumableArray2","uniqueProps","Set","basicProps","i","arr","indexOf","complexProps","buildComplexProps","join","_ref","relations","map","nested","split","base","matchingRelation","find","_ref2","localField","nestedProps","extraProp","startsWith","push","jointNestedProps","isCard","_ref3","_ref3$displayCategory","displayCategory","_ref3$displayThumbnai","displayThumbnail","interfaces","properties","dynamicProperties","isContent","hasCategory","hasPreheader","PREHEADER_PROP","apply","getCategoyProps","getContentProps","url","_ref4","HEADLINE_PROP","_default","exports"],"sources":["../../src/helpers/build-props-query.js"],"sourcesContent":["import { CATEGORY_ID, ID, PREHEADER_PROP, HEADLINE_PROP } from '../constants';\n\nconst defaultProps = [ID, 'name'];\nconst categoryProps = 'id publishedListingPage{id, url}';\n\nconst checkProps = props =>\n !!(props && Object.keys(props).filter(prop => prop === CATEGORY_ID).length);\n\nconst buildPropsQuery = (entitySchema, extraProps = [], cardOptions = null) => {\n const parsedSchema = entitySchema.getEntitySchema ? entitySchema.getEntitySchema : entitySchema;\n const extraPropsHaveCategory = !!extraProps.filter(prop => prop.includes('category.')).length;\n const { typeBasedProps, shouldAddCategoryProps } = getTypeBaseProps(\n parsedSchema,\n cardOptions,\n extraPropsHaveCategory\n );\n\n const allProps = [...typeBasedProps, ...extraProps];\n\n const uniqueProps = [...new Set([...allProps])];\n\n const basicProps = uniqueProps\n .filter(prop => prop && !prop.includes('.'))\n .filter((prop, i, arr) => arr.indexOf(prop) === i);\n const complexProps = buildComplexProps(shouldAddCategoryProps, uniqueProps, parsedSchema);\n return [...basicProps, ...complexProps].join(',');\n};\n\nconst buildComplexProps = (shouldAddCategoryProps, props, { relations }) =>\n props\n .filter(prop => prop && prop.includes('.'))\n .map(nested => nested.split('.')[0])\n .filter((prop, i, arr) => arr.indexOf(prop) === i)\n .map(base => {\n const matchingRelation = relations.find(({ localField }) => localField === base);\n const nestedProps = props\n .filter(\n (extraProp, i, arr) =>\n extraProp && extraProp.startsWith(`${base}.`) && arr.indexOf(extraProp) === i\n )\n .map(nested => nested.split('.')[1]);\n if (matchingRelation && !nestedProps.includes('id')) nestedProps.push('id');\n\n const jointNestedProps = nestedProps.join(',');\n if (base === 'category' && shouldAddCategoryProps)\n return `${base}{${jointNestedProps}, ${categoryProps}}`;\n if (base.includes('published')) {\n return `${base}{${jointNestedProps},url}`;\n }\n return `${base}{${jointNestedProps}}`;\n });\n\nconst getTypeBaseProps = (entitySchema, cardOptions, extraPropsHaveCategory) => {\n const isCard = !!cardOptions;\n const { displayCategory = true, displayThumbnail = true } = cardOptions || {};\n\n const shouldAddCategoryProps =\n (isCard && displayCategory) || (!isCard && !extraPropsHaveCategory);\n\n if (!isCard) return { typeBasedProps: [ID], shouldAddCategoryProps };\n\n const { interfaces, properties, dynamicProperties, relations } = entitySchema;\n\n const isContent = !!interfaces.includes('content/content');\n const hasCategory = checkProps(properties) || checkProps(dynamicProperties);\n const hasPreheader = properties[PREHEADER_PROP];\n\n const typeBasedProps = [...defaultProps];\n\n typeBasedProps.push(...getCategoyProps(shouldAddCategoryProps, hasCategory, hasPreheader));\n typeBasedProps.push(...getContentProps(isContent));\n\n if (properties.url || dynamicProperties.url) typeBasedProps.push('url');\n\n if (displayThumbnail && relations.find(({ localField }) => localField === 'image')) {\n typeBasedProps.push('image.id', 'image.url', 'image.data');\n }\n\n return { typeBasedProps, shouldAddCategoryProps };\n};\n\nconst getContentProps = isContent => (isContent ? ['url', 'sponsored', 'featured'] : []);\n\nconst getCategoyProps = (shouldAddCategoryProps, hasCategory, hasPreheader) => {\n if (!shouldAddCategoryProps) return [];\n\n const props = [];\n\n if (hasCategory) {\n props.push('category.name', 'category.listingPageId', 'category.listingPageEntity');\n }\n\n if (hasPreheader) {\n props.push(`${PREHEADER_PROP}{name}`);\n props.push(HEADLINE_PROP);\n }\n\n return props;\n};\n\nexport default buildPropsQuery;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,YAAY,GAAG,CAACC,aAAE,EAAE,MAAM,CAAC;AACjC,IAAMC,aAAa,GAAG,kCAAkC;AAExD,IAAMC,UAAU,GAAG,SAAbA,UAAUA,CAAGC,KAA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,GAAG,SAAlBA,eAAeA,CAAGN,SAAS;EAAA,OAAKA,SAAS,GAAG,CAAC,KAAK,EAAE,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE;AAAA,CAAC;AAExF,IAAMK,eAAe,GAAG,SAAlBA,eAAeA,CAAI1C,sBAAsB,EAAEsC,WAAW,EAAEC,YAAY,EAAK;EAC7E,IAAI,CAACvC,sBAAsB,EAAE,OAAO,EAAE;EAEtC,IAAMpB,KAAK,GAAG,EAAE;EAEhB,IAAI0D,WAAW,EAAE;IACf1D,KAAK,CAAC8C,IAAI,CAAC,eAAe,EAAE,wBAAwB,EAAE,4BAA4B,CAAC;EACrF;EAEA,IAAIa,YAAY,EAAE;IAChB3D,KAAK,CAAC8C,IAAI,IAAAxB,MAAA,CAAIsC,yBAAc,YAAS;IACrC5D,KAAK,CAAC8C,IAAI,CAACoB,wBAAa,CAAC;EAC3B;EAEA,OAAOlE,KAAK;AACd,CAAC;AAAC,IAAAmE,QAAA,GAEa5D,eAAe;AAAA6D,OAAA,cAAAD,QAAA"}
|
|
@@ -5,9 +5,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports["default"] = void 0;
|
|
8
|
+
require("core-js/modules/es.array.map.js");
|
|
8
9
|
require("core-js/modules/es.array.concat.js");
|
|
9
|
-
var buildQueryFields = function buildQueryFields(sanitizedEntityFields,
|
|
10
|
-
return "results {\n
|
|
10
|
+
var buildQueryFields = function buildQueryFields(sanitizedEntityFields, entityTypes, isFullList) {
|
|
11
|
+
return "results {\n ".concat(entityTypes.map(function (entityType) {
|
|
12
|
+
return "\n ... on ".concat(entityType, " {\n ").concat(sanitizedEntityFields, "\n __typename\n id\n ").concat(isFullList ? 'pageBuilderComponents' : '', "\n }");
|
|
13
|
+
}), "\n },\n total\n ");
|
|
11
14
|
};
|
|
12
15
|
var _default = buildQueryFields;
|
|
13
16
|
exports["default"] = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-query-fields.js","names":["buildQueryFields","sanitizedEntityFields","
|
|
1
|
+
{"version":3,"file":"build-query-fields.js","names":["buildQueryFields","sanitizedEntityFields","entityTypes","isFullList","concat","map","entityType","_default","exports"],"sources":["../../src/helpers/build-query-fields.js"],"sourcesContent":["const buildQueryFields = (sanitizedEntityFields, entityTypes, isFullList) =>\n `results {\n ${entityTypes.map(\n entityType => `\n ... on ${entityType} {\n ${sanitizedEntityFields}\n __typename\n id\n ${isFullList ? 'pageBuilderComponents' : ''}\n }`\n )}\n },\n total\n `;\n\nexport default buildQueryFields;\n"],"mappings":";;;;;;;;;AAAA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIC,qBAAqB,EAAEC,WAAW,EAAEC,UAAU;EAAA,yBAAAC,MAAA,CAElEF,WAAW,CAACG,GAAG,CACf,UAAAC,UAAU;IAAA,uBAAAF,MAAA,CACHE,UAAU,gBAAAF,MAAA,CACfH,qBAAqB,0CAAAG,MAAA,CAGrBD,UAAU,GAAG,uBAAuB,GAAG,EAAE;EAAA,CAC3C,CACD;AAAA,CAGF;AAAC,IAAAI,QAAA,GAEWP,gBAAgB;AAAAQ,OAAA,cAAAD,QAAA"}
|
|
@@ -23,6 +23,7 @@ require("core-js/modules/es.array.includes.js");
|
|
|
23
23
|
require("core-js/modules/es.string.includes.js");
|
|
24
24
|
require("core-js/modules/es.array.filter.js");
|
|
25
25
|
require("core-js/modules/es.array.concat.js");
|
|
26
|
+
require("core-js/modules/es.array.is-array.js");
|
|
26
27
|
var _getItemsToDisplayIds = _interopRequireDefault(require("./get-items-to-display-ids"));
|
|
27
28
|
var _constants = require("../constants");
|
|
28
29
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -78,6 +79,22 @@ var buildItemsToDisplayValues = function buildItemsToDisplayValues(itemsToDispla
|
|
|
78
79
|
}
|
|
79
80
|
}];
|
|
80
81
|
};
|
|
82
|
+
var buildShouldValues = function buildShouldValues(docTypes) {
|
|
83
|
+
if (Array.isArray(docTypes)) {
|
|
84
|
+
return docTypes.map(function (docType) {
|
|
85
|
+
return {
|
|
86
|
+
match: {
|
|
87
|
+
docType: docType
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
return [{
|
|
93
|
+
match: {
|
|
94
|
+
docType: docTypes
|
|
95
|
+
}
|
|
96
|
+
}];
|
|
97
|
+
};
|
|
81
98
|
var buildRawQueryBase = function buildRawQueryBase(_ref3) {
|
|
82
99
|
var _ref4;
|
|
83
100
|
var docType = _ref3.docType,
|
|
@@ -100,11 +117,9 @@ var buildRawQueryBase = function buildRawQueryBase(_ref3) {
|
|
|
100
117
|
var isOperatorOr = filterOperator === _constants.OR;
|
|
101
118
|
var queryFilters = [];
|
|
102
119
|
var baseBoolObject = {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
}].concat((0, _toConsumableArray2["default"])(itemsToDisplayValues), (0, _toConsumableArray2["default"])(checkboxFiltersValue))
|
|
120
|
+
should: buildShouldValues(docType),
|
|
121
|
+
minimum_should_match: 1,
|
|
122
|
+
must: [].concat((0, _toConsumableArray2["default"])(itemsToDisplayValues), (0, _toConsumableArray2["default"])(checkboxFiltersValue))
|
|
108
123
|
};
|
|
109
124
|
if (isOperatorOr) {
|
|
110
125
|
if (addListFiltersToQuery) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-raw-query-base.js","names":["buildCheckboxFilters","checkboxFilters","reduce","acc","checkboxFilter","
|
|
1
|
+
{"version":3,"file":"build-raw-query-base.js","names":["_getItemsToDisplayIds","_interopRequireDefault","require","_constants","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","buildCheckboxFilters","checkboxFilters","reduce","acc","checkboxFilter","match","buildFilterValues","listFilterValues","relations","stringProps","listFilterValuesKeys","map","values","el","updatedKey","isRelation","includes","_key$split","split","_key$split2","_slicedToArray2","relationName","relationProp","_relations$filter","_ref","localField","_relations$filter2","relation","_ref2","_ref2$entityIdentifie","entityIdentifier","concat","fieldName","KEYWORD","bool","should","buildItemsToDisplayValues","itemsToDisplay","itemToDisplayIds","getItemsToDisplayIds","ids","buildShouldValues","docTypes","Array","isArray","docType","buildRawQueryBase","_ref3","_ref4","id","_ref3$filterValues","filterValues","_ref3$filterValues2","_ref3$filterValues2$c","_ref3$filterValues2$l","filterOperator","_ref3$addListFiltersT","addListFiltersToQuery","listFilterFinalValues","checkboxFiltersValue","itemsToDisplayValues","isOperatorOr","OR","queryFilters","baseBoolObject","minimum_should_match","must","_toConsumableArray2","OR_OPERATOR","_baseBoolObject$must","mustNot","undefined","queryFilter","must_not","_default","exports"],"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 buildShouldValues = docTypes => {\n if (Array.isArray(docTypes)) {\n return docTypes.map(docType => ({\n match: {\n docType\n }\n }));\n }\n return [\n {\n match: {\n docType: docTypes\n }\n }\n ];\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 should: buildShouldValues(docType),\n minimum_should_match: 1,\n must: [...itemsToDisplayValues, ...checkboxFiltersValue]\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,IAAAA,qBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD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qBAAqB;MAAI,CAAC,CAAC;IACnF;EACF,CAAC,MAAM;IAAA,IAAAW,oBAAA;IACL,CAAAA,oBAAA,GAAAL,cAAc,CAACE,IAAI,EAAChF,IAAI,CAAAC,KAAA,CAAAkF,oBAAA,MAAAF,mBAAA,aAAIT,qBAAqB,EAAC;EACpD;EAEA,IAAMY,OAAO,GAAGrB,EAAE,GAAG,CAAC;IAAET,GAAG,EAAE;MAAE5B,MAAM,EAAE,CAACqC,EAAE;IAAE;EAAE,CAAC,CAAC,GAAGsB,SAAS;EAE5D,IAAMC,WAAW,GAAGT,YAAY,CAACvE,MAAM,IAAAwD,KAAA,WAAApD,gBAAA,aAAAoD,KAAA,EAChCoB,sBAAW,EAAGL,YAAY,OAAAnE,gBAAA,aAAAoD,KAAA,0BAAwB,CAAC,GAAAA,KAAA,IACtD,CAAC,CAAC;EACN,OAAA5D,aAAA,CAAAA,aAAA,KACKoF,WAAW;IACd1F,MAAM,EAAE;MACNoD,IAAI,EAAE8B;IACR,CAAC;IACDS,QAAQ,EAAEH;EAAO;AAErB,CAAC;AAAC,IAAAI,QAAA,GAEa5B,iBAAiB;AAAA6B,OAAA,cAAAD,QAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-raw-query.js","names":["buildRawQuery","docType","operator","searchValues","filterData","id","itemsToDisplay","shouldApplySort","azOptions","searchValuesText","searchValuesCheckboxSelectRange","searchValuesCheckboxOr","filterValues","filterOperator","relations","stringProps","azFilter","shouldReturnAggs","isAZ","searchValuesTextCheckboxSelectJoined","AND_OPERATOR","
|
|
1
|
+
{"version":3,"file":"build-raw-query.js","names":["_buildRawQueryBase","_interopRequireDefault","require","_getItemsToDisplayIds","_getExtraAzBits","_buildAzFilter","_constants","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","buildRawQuery","docType","operator","searchValues","filterData","id","itemsToDisplay","shouldApplySort","azOptions","searchValuesText","searchValuesCheckboxSelectRange","searchValuesCheckboxOr","filterValues","filterOperator","relations","stringProps","azFilter","_ref","shouldReturnAggs","isAZ","searchValuesTextCheckboxSelectJoined","AND_OPERATOR","concat","_toConsumableArray2","searchValuesTextCheckboxOr","finalValue","finalValueWithCheckboxOrValues","must","bool","should","finalValueIfNoCheckboxOrValues","mustValues","buildAzFilter","query","buildRawQueryBase","azQueryBits","getExtraAzBits","itemsToDisplayIds","getItemsToDisplayIds","ids","values","sort","_script","type","script","lang","params","sortOrder","order","_default","exports"],"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,IAAAA,kBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,eAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,cAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAA4C,SAAAK,QAAAC,MAAA,EAAAC,cAAA,QAAAC,IAAA,GAAAC,MAAA,CAAAD,IAAA,CAAAF,MAAA,OAAAG,MAAA,CAAAC,qBAAA,QAAAC,OAAA,GAAAF,MAAA,CAAAC,qBAAA,CAAAJ,MAAA,GAAAC,cAAA,KAAAI,OAAA,GAAAA,OAAA,CAAAC,MAAA,WAAAC,GAAA,WAAAJ,MAAA,CAAAK,wBAAA,CAAAR,MAAA,EAAAO,GAAA,EAAAE,UAA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E,EAAFA,EAAE;MAAEO,YAAY,EAAZA,YAAY;MAAEC,cAAc,EAAdA,cAAc;MAAEC,SAAS,EAATA,SAAS;MAAEC,WAAW,EAAXA;IAAY,CAAC,CAAC;EAE/F,CAAC;EACD,IAAMoB,WAAW,GAAG,IAAAC,0BAAc,EAAClB,gBAAgB,EAAEC,IAAI,EAAEH,QAAQ,CAAC;EAEpE,IAAIV,cAAc,IAAIA,cAAc,CAACd,MAAM,EAAE;IAC3C,IAAM6C,iBAAiB,GAAG,IAAAC,gCAAoB,EAAChC,cAAc,CAAC;IAE9D2B,KAAK,CAACL,IAAI,CAACD,IAAI,CAACzC,IAAI,CAAC;MAAEqD,GAAG,EAAE;QAAEC,MAAM,EAAEH;MAAkB;IAAE,CAAC,CAAC;IAC5D,IAAI9B,eAAe,EAAE;MACnB,OAAAnB,aAAA;QACE6C,KAAK,EAALA,KAAK;QACLQ,IAAI,EAAE;UACJC,OAAO,EAAE;YACPC,IAAI,EAAE,QAAQ;YACdC,MAAM,EAAE;cACNC,IAAI,EAAE,UAAU;cAChBpD,MAAM,EACJ,kFAAkF;cACpFqD,MAAM,EAAE;gBACNC,SAAS,EAAEV;cACb;YACF,CAAC;YACDW,KAAK,EAAE;UACT;QACF;MAAC,GACEb,WAAW;IAElB;EACF;EAEA,OAAOhB,IAAI,GAAA/B,aAAA;IAEL6C,KAAK,EAALA;EAAK,GACFE,WAAW,IAEhBF,KAAK;AACX,CAAC;AAAC,IAAAgB,QAAA,GAEajD,aAAa;AAAAkD,OAAA,cAAAD,QAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-search-values-checkbox-select.js","names":["buildFieldName","fieldName","KEYWORD","getFiltersProps","filters","flatten","map","propsToDisplay","buildSearchValuesCheckboxSelect","query","rangeFilters","checkboxFilters","selectFilters","queryParams","Object","keys","filter","param","SEARCH_TERM","rangeFilterProps","checkboxFilterProps","selectFilterProps","reduce","acc","queryParam","isQueryParamString","includes","split","min","max","values","push","range","gte","Number","lte","match","checkboxFilter","firstPropToDisplay","length","shouldBuildCheckboxOrValues","operator","AND","fieldToPush","valuesOr","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;AACA;AAEA,
|
|
1
|
+
{"version":3,"file":"build-search-values-checkbox-select.js","names":["_lodash","_interopRequireDefault","require","_constants","buildFieldName","fieldName","concat","KEYWORD","getFiltersProps","filters","flatten","map","_ref","propsToDisplay","buildSearchValuesCheckboxSelect","query","rangeFilters","checkboxFilters","selectFilters","queryParams","Object","keys","filter","param","SEARCH_TERM","rangeFilterProps","checkboxFilterProps","selectFilterProps","_queryParams$reduce","reduce","acc","queryParam","isQueryParamString","includes","_query$queryParam$spl","split","_query$queryParam$spl2","_slicedToArray2","min","max","values","push","range","_defineProperty2","gte","Number","lte","match","checkboxFilter","_ref2","_ref2$propsToDisplay","firstPropToDisplay","length","shouldBuildCheckboxOrValues","_ref3","operator","AND","fieldToPush","valuesOr","forEach","value","_default","exports"],"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,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAEA,IAAME,cAAc,GAAG,SAAjBA,cAAcA,CAAGC,SAAS;EAAA,UAAAC,MAAA,CAAOD,SAAS,OAAAC,MAAA,CAAIC,kBAAO;AAAA,CAAE;AAE7D,IAAMC,eAAe,GAAG,SAAlBA,eAAeA,CAAGC,OAAO;EAAA,OAAI,IAAAC,kBAAO,EAACD,OAAO,CAACE,GAAG,CAAC,UAAAC,IAAA;IAAA,IAAGC,cAAc,GAAAD,IAAA,CAAdC,cAAc;IAAA,OAAOA,cAAc;EAAA,EAAC,CAAC;AAAA;AAE/F,IAAMC,+BAA+B,GAAG,SAAlCA,+BAA+BA,CAAIC,KAAK,EAAEC,YAAY,EAAEC,eAAe,EAAEC,aAAa,EAAK;EAC/F,IAAMC,WAAW,GAAGC,MAAM,CAACC,IAAI,CAACN,KAAK,CAAC,CAACO,MAAM,CAAC,UAAAC,KAAK;IAAA,OAAIA,KAAK,KAAKC,sBAAW;EAAA,EAAC;EAE7E,IAAMC,gBAAgB,GAAGjB,eAAe,CAACQ,YAAY,CAAC;EACtD,IAAMU,mBAAmB,GAAGlB,eAAe,CAACS,eAAe,CAAC;EAC5D,IAAMU,iBAAiB,GAAGnB,eAAe,CAACU,aAAa,CAAC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Ac,CAAC1B,MAAM,CACvD,UAAAgC,KAAA;UAAA,IAAGC,QAAQ,GAAAD,KAAA,CAARC,QAAQ;UAAA,OAAOA,QAAQ,KAAKC,cAAG;QAAA,EACnC,CAACJ,MAAM;QAER,IAAMK,WAAW,GAAGJ,2BAA2B,GAAGvB,GAAG,CAAC4B,QAAQ,GAAG5B,GAAG,CAACU,MAAM;QAE3EzB,KAAK,CAACgB,UAAU,CAAC,CAAC4B,OAAO,CAAC,UAAAC,KAAK,EAAI;UACjCH,WAAW,CAAChB,IAAI,CAAC;YAAEM,KAAK,MAAAJ,gBAAA,iBAAKvC,cAAc,CAAC2B,UAAU,CAAC,EAAG6B,KAAK;UAAG,CAAC,CAAC;QACtE,CAAC,CAAC;MACJ;MAEA,OAAO9B,GAAG;IACZ,CAAC,EACD;MACEU,MAAM,EAAE,EAAE;MACVkB,QAAQ,EAAE;IACZ,CAAC,CACF;IA9COlB,MAAM,GAAAZ,mBAAA,CAANY,MAAM;IAAEkB,QAAQ,GAAA9B,mBAAA,CAAR8B,QAAQ;EAgDxB,OAAO;IAAElB,MAAM,EAANA,MAAM;IAAEkB,QAAQ,EAARA;EAAS,CAAC;AAC7B,CAAC;AAAC,IAAAG,QAAA,GAEa/C,+BAA+B;AAAAgD,OAAA,cAAAD,QAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-search-values-text.js","names":["buildSearchValuesText","propsToDisplay","searchTerm","search_term","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,IAAMA,qBAAqB,GAAG,SAAxBA,
|
|
1
|
+
{"version":3,"file":"build-search-values-text.js","names":["buildSearchValuesText","_ref","_ref2","propsToDisplay","searchTerm","search_term","reduce","acc","field","index","match","pageBuilderIndexed","query","fuzziness","_defineProperty2","_default","exports"],"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,IAAMA,qBAAqB,GAAG,SAAxBA,qBAAqBA,CAAAC,IAAA,EAAAC,KAAA;EAAA,IAAMC,cAAc,GAAAF,IAAA,CAAdE,cAAc;EAAA,IAAmBC,UAAU,GAAAF,KAAA,CAAvBG,WAAW;EAAA,OAC9DF,cAAc,CAACG,MAAM,CAAC,UAACC,GAAG,EAAEC,KAAK,EAAEC,KAAK,EAAK;IAC3C,IAAID,KAAK,IAAIJ,UAAU,EAAE;MACvB,IAAIK,KAAK,KAAK,CAAC,EAAE;QACfF,GAAG,CAACE,KAAK,CAAC,GAAG;UACXC,KAAK,EAAE;YACLC,kBAAkB,EAAE;cAClBC,KAAK,EAAER,UAAU;cACjBS,SAAS,EAAE;YACb;UACF;QACF,CAAC;MACH;MACAN,GAAG,CAACE,KAAK,GAAG,CAAC,CAAC,GAAG;QACfC,KAAK,MAAAI,gBAAA,iBACFN,KAAK,EAAG;UACPI,KAAK,EAAER,UAAU;UACjBS,SAAS,EAAE;QACb,CAAC;MAEL,CAAC;IACH;IACA,OAAON,GAAG;EACZ,CAAC,EAAE,EAAE,CAAC;AAAA;AAAC,IAAAQ,QAAA,GAEMf,qBAAqB;AAAAgB,OAAA,cAAAD,QAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-set-filters.js","names":["getCheckboxFilters","checkboxFilters","name","push","getFilterValues","filterBy","reduce","acc","filter","split","fieldName","values","value","join","previousValue","finalValue","buildSetFilters","filterByProperty","filterByFeatured","filterBySponsored","FEATURED","SPONSORED","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;AAEA,
|
|
1
|
+
{"version":3,"file":"build-set-filters.js","names":["_constants","require","getCheckboxFilters","checkboxFilters","name","push","getFilterValues","filterBy","reduce","acc","filter","_filter$split","split","_filter$split2","_toArray2","fieldName","values","slice","value","join","previousValue","finalValue","concat","_toConsumableArray2","buildSetFilters","_ref","_ref$filterBy","_ref$filterByProperty","filterByProperty","filterByFeatured","filterBySponsored","FEATURED","SPONSORED","shouldApplyFilterValues","length","listFilterValues","_default","exports"],"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,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAIC,eAAe,EAAEC,IAAI,EAAK;EACpDD,eAAe,CAACE,IAAI,CAACD,IAAI,CAAC;AAC5B,CAAC;AAED,IAAME,eAAe,GAAG,SAAlBA,eAAeA,CAAGC,QAAQ;EAAA,OAC9BA,QAAQ,CAACC,MAAM,CAAC,UAACC,GAAG,EAAEC,MAAM,EAAK;IAC/B,IAAAC,aAAA,GAA+BD,MAAM,CAACE,KAAK,CAAC,GAAG,CAAC;MAAAC,cAAA,OAAAC,SAAA,aAAAH,aAAA;MAAzCI,SAAS,GAAAF,cAAA;MAAKG,MAAM,GAAAH,cAAA,CAAAI,KAAA;IAC3B,IAAMC,KAAK,GAAGF,MAAM,CAACG,IAAI,CAAC,GAAG,CAAC;IAC9B,IAAMC,aAAa,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helpers/check-for-error.js"],"sourcesContent":["const checkForError = (errors = []) => {\n const { message: errMsg } = errors.find((err = {}) => err && err.message) || {};\n\n return {\n hasErr: !!errMsg,\n errMsg\n };\n};\n\nexport default checkForError;\n"],"mappings":";;;;;;;;;AAAA,IAAMA,aAAa,GAAG,SAAhBA,
|
|
1
|
+
{"version":3,"file":"check-for-error.js","names":["checkForError","errors","arguments","length","undefined","_ref","find","err","message","errMsg","hasErr","_default","exports"],"sources":["../../src/helpers/check-for-error.js"],"sourcesContent":["const checkForError = (errors = []) => {\n const { message: errMsg } = errors.find((err = {}) => err && err.message) || {};\n\n return {\n hasErr: !!errMsg,\n errMsg\n };\n};\n\nexport default checkForError;\n"],"mappings":";;;;;;;;;AAAA,IAAMA,aAAa,GAAG,SAAhBA,aAAaA,CAAA,EAAoB;EAAA,IAAhBC,MAAM,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EAChC,IAAAG,IAAA,GAA4BJ,MAAM,CAACK,IAAI,CAAC;MAAA,IAACC,GAAG,GAAAL,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;MAAA,OAAKK,GAAG,IAAIA,GAAG,CAACC,OAAO;IAAA,EAAC,IAAI,CAAC,CAAC;IAA9DC,MAAM,GAAAJ,IAAA,CAAfG,OAAO;EAEf,OAAO;IACLE,MAAM,EAAE,CAAC,CAACD,MAAM;IAChBA,MAAM,EAANA;EACF,CAAC;AACH,CAAC;AAAC,IAAAE,QAAA,GAEaX,aAAa;AAAAY,OAAA,cAAAD,QAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-props-to-use.js","names":["checkPropsToUse","propsToDisplay","isObject","flatten","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;AACA;AAEA;AACA,
|
|
1
|
+
{"version":3,"file":"check-props-to-use.js","names":["_lodash","_interopRequireDefault","require","_isObject","checkPropsToUse","propsToDisplay","arguments","length","undefined","isObject","flatten","map","_ref","propertiesToDisplay","_default","exports"],"sources":["../../src/helpers/check-props-to-use.js"],"sourcesContent":["import flatten from 'lodash.flatten';\nimport isObject from './is-object';\n\n// TODO this helper should be removed if database is wiped clean and all elements change to new props struc\nconst checkPropsToUse = (propsToDisplay = []) =>\n propsToDisplay && isObject(propsToDisplay[0])\n ? flatten(propsToDisplay.map(({ propertiesToDisplay }) => propertiesToDisplay))\n : propsToDisplay;\n\nexport default checkPropsToUse;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA;AACA,IAAME,eAAe,GAAG,SAAlBA,eAAeA,CAAA;EAAA,IAAIC,cAAc,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EAAA,OAC1CD,cAAc,IAAI,IAAAI,oBAAQ,EAACJ,cAAc,CAAC,CAAC,CAAC,CAAC,GACzC,IAAAK,kBAAO,EAACL,cAAc,CAACM,GAAG,CAAC,UAAAC,IAAA;IAAA,IAAGC,mBAAmB,GAAAD,IAAA,CAAnBC,mBAAmB;IAAA,OAAOA,mBAAmB;EAAA,EAAC,CAAC,GAC7ER,cAAc;AAAA;AAAC,IAAAS,QAAA,GAENV,eAAe;AAAAW,OAAA,cAAAD,QAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","names":["dataSchema","getEntitySchema","actions","interfaces","propsSchema","itemsPerRow","defaultProps"],"sources":["../../../src/helpers/entities/constants.js"],"sourcesContent":["export const dataSchema = {\n getEntitySchema: {\n actions: {},\n interfaces: []\n }\n};\n\nexport const propsSchema = {\n itemsPerRow: {}\n};\n\nexport const defaultProps = 'id,name';\n"],"mappings":";;;;;;;AAAO,IAAMA,UAAU,GAAG;EACxBC,eAAe,EAAE;IACfC,OAAO,EAAE,CAAC,CAAC;IACXC,UAAU,EAAE;EACd;AACF,CAAC;
|
|
1
|
+
{"version":3,"file":"constants.js","names":["dataSchema","getEntitySchema","actions","interfaces","exports","propsSchema","itemsPerRow","defaultProps"],"sources":["../../../src/helpers/entities/constants.js"],"sourcesContent":["export const dataSchema = {\n getEntitySchema: {\n actions: {},\n interfaces: []\n }\n};\n\nexport const propsSchema = {\n itemsPerRow: {}\n};\n\nexport const defaultProps = 'id,name';\n"],"mappings":";;;;;;;AAAO,IAAMA,UAAU,GAAG;EACxBC,eAAe,EAAE;IACfC,OAAO,EAAE,CAAC,CAAC;IACXC,UAAU,EAAE;EACd;AACF,CAAC;AAACC,OAAA,CAAAJ,UAAA,GAAAA,UAAA;AAEK,IAAMK,WAAW,GAAG;EACzBC,WAAW,EAAE,CAAC;AAChB,CAAC;AAACF,OAAA,CAAAC,WAAA,GAAAA,WAAA;AAEK,IAAME,YAAY,GAAG,SAAS;AAACH,OAAA,CAAAG,YAAA,GAAAA,YAAA"}
|
|
@@ -1 +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":";;;;;;;;;;;;;;;;;;;;AAAe,SAASA,
|
|
1
|
+
{"version":3,"file":"get-banner-data.js","names":["getBannerData","banner","_ref","_ref$parent","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":";;;;;;;;;;;;;;;;;;;;AAAe,SAASA,aAAaA,CAACC,MAAM,EAAAC,IAAA,EAAqC;EAAA,IAAAC,WAAA,GAAAD,IAAA,CAAjCE,MAAM;IAANA,MAAM,GAAAD,WAAA,cAAG,CAAC,CAAC,GAAAA,WAAA;IAAEE,KAAK,GAAAH,IAAA,CAALG,KAAK;IAAEC,SAAS,GAAAJ,IAAA,CAATI,SAAS;EAC3E,IAAMC,MAAM,GAAGN,MAAM,CAACM,MAAM,IAAIH,MAAM,CAACI,UAAU;EACjD,OAAAC,aAAA,CAAAA,aAAA,KAAYR,MAAM;IAAEM,MAAM,EAANA,MAAM;IAAEH,MAAM,EAANA,MAAM;IAAEC,KAAK,EAALA,KAAK;IAAEC,SAAS,EAATA;EAAS;AACtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-click-wrapper-options.js","names":["getClickWrapperOptions","children","componentProps","id","shouldUseClickWrapper","props","childComponents","wrapperProps","clickEvents","map","child","component","settings","gtmEvents","find","eventTrigger","ON_CLICK","
|
|
1
|
+
{"version":3,"file":"get-click-wrapper-options.js","names":["_constants","require","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","getClickWrapperOptions","children","undefined","componentProps","id","shouldUseClickWrapper","_ref","_ref$props","props","_ref$props2","_ref$props2$children","childComponents","wrapperProps","clickEvents","map","child","_ref2","_ref2$props","_ref2$props2","_ref2$props2$componen","component","_ref2$props2$componen2","_ref2$props2$componen3","settings","_ref2$props2$componen4","gtmEvents","find","_ref3","eventTrigger","ON_CLICK","Boolean","gtmChildren","_default","exports"],"sources":["../../src/helpers/get-click-wrapper-options.js"],"sourcesContent":["import { ON_CLICK } from '../constants';\n\nconst getClickWrapperOptions = (children = {}, componentProps = {}, id = null) => {\n let shouldUseClickWrapper = false;\n\n const { props: { children: childComponents = [] } = {} } = children || {};\n if (!childComponents || !childComponents[1]) return { shouldUseClickWrapper, wrapperProps: {} };\n\n const clickEvents = childComponents[1]\n .map(child => {\n const { props: { component: { settings: { gtmEvents } = {} } = {} } = {} } = child || {};\n if (!gtmEvents) return null;\n\n return gtmEvents.find(({ eventTrigger }) => eventTrigger === ON_CLICK);\n })\n .filter(Boolean);\n\n shouldUseClickWrapper = !!clickEvents && !!clickEvents.length;\n\n const wrapperProps = shouldUseClickWrapper\n ? { gtmChildren: children, ...componentProps, id }\n : {};\n\n return { shouldUseClickWrapper, wrapperProps };\n};\n\nexport default getClickWrapperOptions;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAAwC,SAAAC,QAAAC,MAAA,EAAAC,cAAA,QAAAC,IAAA,GAAAC,MAAA,CAAAD,IAAA,CAAAF,MAAA,OAAAG,MAAA,CAAAC,qBAAA,QAAAC,OAAA,GAAAF,MAAA,CAAAC,qBAAA,CAAAJ,MAAA,GAAAC,cAAA,KAAAI,OAAA,GAAAA,OAAA,CAAAC,MAAA,WAAAC,GAAA,WAAAJ,MAAA,CAAAK,wBAAA,CAAAR,MAAA,EAAAO,GAAA,EAAAE,UAAA,OAAAP,IAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,IAAA,EAAAG,OAAA,YAAAH,IAAA;AAAA,SAAAU,cAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,WAAAF,SAAA,CAAAD,CAAA,IAAAC,SAAA,CAAAD,CAAA,QAAAA,CAAA,OAAAf,OAAA,CAAAI,MAAA,CAAAc,MAAA,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AAC,CAAC,CAAC,CACnCG,GAAG,CAAC,UAAAC,KAAK,EAAI;IACZ,IAAAC,KAAA,GAA6ED,KAAK,IAAI,CAAC,CAAC;MAAAE,WAAA,GAAAD,KAAA,CAAhFR,KAAK;MAAAU,YAAA,GAAAD,WAAA,cAAyD,CAAC,CAAC,GAAAA,WAAA;MAAAE,qBAAA,GAAAD,YAAA,CAAvDE,SAAS;MAAAC,sBAAA,GAAAF,qBAAA,cAAqC,CAAC,CAAC,GAAAA,qBAAA;MAAAG,sBAAA,GAAAD,sBAAA,CAAnCE,QAAQ;MAAAC,sBAAA,GAAAF,sBAAA,cAAkB,CAAC,CAAC,GAAAA,sBAAA;MAAhBG,SAAS,GAAAD,sBAAA,CAATC,SAAS;IACnD,IAAI,CAACA,SAAS,EAAE,OAAO,IAAI;IAE3B,OAAOA,SAAS,CAACC,IAAI,CAAC,UAAAC,KAAA;MAAA,IAAGC,YAAY,GAAAD,KAAA,CAAZC,YAAY;MAAA,OAAOA,YAAY,KAAKC,mBAAQ;IAAA,EAAC;EACxE,CAAC,CAAC,CACD/C,MAAM,CAACgD,OAAO,CAAC;EAElBzB,qBAAqB,GAAG,CAAC,CAACQ,WAAW,IAAI,CAAC,CAACA,WAAW,CAACrB,MAAM;EAE7D,IAAMoB,YAAY,GAAGP,qBAAqB,GAAAjB,aAAA,CAAAA,aAAA;IACpC2C,WAAW,EAAE9B;EAAQ,GAAKE,cAAc;IAAEC,EAAE,EAAFA;EAAE,KAC9C,CAAC,CAAC;EAEN,OAAO;IAAEC,qBAAqB,EAArBA,qBAAqB;IAAEO,YAAY,EAAZA;EAAa,CAAC;AAChD,CAAC;AAAC,IAAAoB,QAAA,GAEahC,sBAAsB;AAAAiC,OAAA,cAAAD,QAAA"}
|
|
@@ -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,IAAMA,gBAAgB,GAAG,SAAnBA,
|
|
1
|
+
{"version":3,"file":"get-current-offset.js","names":["getCurrentOffset","offset","arguments","length","undefined","itemsPerPage","paginationIndex","limit","Number","cumulativeOffset","_default","exports"],"sources":["../../src/helpers/get-current-offset.js"],"sourcesContent":["const getCurrentOffset = (offset = 0, itemsPerPage = 1, paginationIndex = 1, limit) => {\n if (paginationIndex <= 1) return Number(offset);\n const cumulativeOffset = Number(offset) + Number(itemsPerPage) * (Number(paginationIndex) - 1);\n return !!limit && cumulativeOffset >= limit ? offset : cumulativeOffset;\n};\n\nexport default getCurrentOffset;\n"],"mappings":";;;;;;;;AAAA,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAA,EAAiE;EAAA,IAA7DC,MAAM,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;EAAA,IAAEG,YAAY,GAAAH,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;EAAA,IAAEI,eAAe,GAAAJ,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;EAAA,IAAEK,KAAK,GAAAL,SAAA,CAAAC,MAAA,OAAAD,SAAA,MAAAE,SAAA;EAChF,IAAIE,eAAe,IAAI,CAAC,EAAE,OAAOE,MAAM,CAACP,MAAM,CAAC;EAC/C,IAAMQ,gBAAgB,GAAGD,MAAM,CAACP,MAAM,CAAC,GAAGO,MAAM,CAACH,YAAY,CAAC,IAAIG,MAAM,CAACF,eAAe,CAAC,GAAG,CAAC,CAAC;EAC9F,OAAO,CAAC,CAACC,KAAK,IAAIE,gBAAgB,IAAIF,KAAK,GAAGN,MAAM,GAAGQ,gBAAgB;AACzE,CAAC;AAAC,IAAAC,QAAA,GAEaV,gBAAgB;AAAAW,OAAA,cAAAD,QAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-dictionary-match.js","names":["dictionary","getDictionaryMatch","key"],"sources":["../../src/helpers/get-dictionary-match.js"],"sourcesContent":["const dictionary = {\n 1: 'grid--one',\n 2: 'grid--two',\n 3: 'grid--three',\n 4: 'grid--four',\n 5: 'grid--five',\n 6: 'grid--six'\n};\n\nconst getDictionaryMatch = key => dictionary[key] || dictionary[1];\n\nexport default getDictionaryMatch;\n"],"mappings":";;;;;;;AAAA,IAAMA,UAAU,GAAG;EACjB,CAAC,EAAE,WAAW;EACd,CAAC,EAAE,WAAW;EACd,CAAC,EAAE,aAAa;EAChB,CAAC,EAAE,YAAY;EACf,CAAC,EAAE,YAAY;EACf,CAAC,EAAE;AACL,CAAC;AAED,IAAMC,kBAAkB,GAAG,SAArBA,
|
|
1
|
+
{"version":3,"file":"get-dictionary-match.js","names":["dictionary","getDictionaryMatch","key","_default","exports"],"sources":["../../src/helpers/get-dictionary-match.js"],"sourcesContent":["const dictionary = {\n 1: 'grid--one',\n 2: 'grid--two',\n 3: 'grid--three',\n 4: 'grid--four',\n 5: 'grid--five',\n 6: 'grid--six'\n};\n\nconst getDictionaryMatch = key => dictionary[key] || dictionary[1];\n\nexport default getDictionaryMatch;\n"],"mappings":";;;;;;;AAAA,IAAMA,UAAU,GAAG;EACjB,CAAC,EAAE,WAAW;EACd,CAAC,EAAE,WAAW;EACd,CAAC,EAAE,aAAa;EAChB,CAAC,EAAE,YAAY;EACf,CAAC,EAAE,YAAY;EACf,CAAC,EAAE;AACL,CAAC;AAED,IAAMC,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAGC,GAAG;EAAA,OAAIF,UAAU,CAACE,GAAG,CAAC,IAAIF,UAAU,CAAC,CAAC,CAAC;AAAA;AAAC,IAAAG,QAAA,GAEpDF,kBAAkB;AAAAG,OAAA,cAAAD,QAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-display-count-data.js","names":["getDisplayCountData","displayMessage","images","imagesLength","length","shouldDisplayCount","message","IMAGE","IMAGES","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;AAEA,
|
|
1
|
+
{"version":3,"file":"get-display-count-data.js","names":["_constants","require","getDisplayCountData","displayMessage","images","imagesLength","length","shouldDisplayCount","message","concat","IMAGE","IMAGES","countMessage","_default","exports"],"sources":["../../src/helpers/get-display-count-data.js"],"sourcesContent":["import { IMAGE, IMAGES } from '../constants';\n\nfunction getDisplayCountData(displayMessage, images) {\n const imagesLength = images && images.length;\n\n const shouldDisplayCount = !!(displayMessage && imagesLength);\n const message = `${imagesLength} ${imagesLength === 1 ? IMAGE : IMAGES}`;\n const countMessage = shouldDisplayCount ? message : '';\n\n return { shouldDisplayCount, countMessage };\n}\n\nexport default getDisplayCountData;\n"],"mappings":";;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,SAASC,mBAAmBA,CAACC,cAAc,EAAEC,MAAM,EAAE;EACnD,IAAMC,YAAY,GAAGD,MAAM,IAAIA,MAAM,CAACE,MAAM;EAE5C,IAAMC,kBAAkB,GAAG,CAAC,EAAEJ,cAAc,IAAIE,YAAY,CAAC;EAC7D,IAAMG,OAAO,MAAAC,MAAA,CAAMJ,YAAY,OAAAI,MAAA,CAAIJ,YAAY,KAAK,CAAC,GAAGK,gBAAK,GAAGC,iBAAM,CAAE;EACxE,IAAMC,YAAY,GAAGL,kBAAkB,GAAGC,OAAO,GAAG,EAAE;EAEtD,OAAO;IAAED,kBAAkB,EAAlBA,kBAAkB;IAAEK,YAAY,EAAZA;EAAa,CAAC;AAC7C;AAAC,IAAAC,QAAA,GAEcX,mBAAmB;AAAAY,OAAA,cAAAD,QAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-elasticsearch-operator.js","names":["getElasticsearchOperator","operator","AND","AND_OPERATOR","OR_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;AAEA,
|
|
1
|
+
{"version":3,"file":"get-elasticsearch-operator.js","names":["_constants","require","getElasticsearchOperator","_ref","operator","AND","AND_OPERATOR","OR_OPERATOR","_default","exports"],"sources":["../../src/helpers/get-elasticsearch-operator.js"],"sourcesContent":["import { AND, AND_OPERATOR, OR_OPERATOR } from '../constants';\n\nconst getElasticsearchOperator = ({ operator }) => (operator === AND ? AND_OPERATOR : OR_OPERATOR);\n\nexport default getElasticsearchOperator;\n"],"mappings":";;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAAC,IAAA;EAAA,IAAMC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;EAAA,OAAQA,QAAQ,KAAKC,cAAG,GAAGC,uBAAY,GAAGC,sBAAW;AAAA,CAAC;AAAC,IAAAC,QAAA,GAEpFN,wBAAwB;AAAAO,OAAA,cAAAD,QAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-entities-with-banner.js","names":["getEntitiesWithBanner","entities","options","hasBanner","injectBannersToEntities"],"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;AAEe,
|
|
1
|
+
{"version":3,"file":"get-entities-with-banner.js","names":["_injectBannersToEntities","_interopRequireDefault","require","getEntitiesWithBanner","entities","options","hasBanner","injectBannersToEntities"],"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,IAAAA,wBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEe,SAASC,qBAAqBA,CAACC,QAAQ,EAAEC,OAAO,EAAE;EAC/D,IAAQC,SAAS,GAAKD,OAAO,CAArBC,SAAS;EAEjB,IAAI,CAACA,SAAS,EAAE,OAAOF,QAAQ;EAE/B,OAAO,IAAAG,mCAAuB,EAACH,QAAQ,EAAEC,OAAO,CAAC;AACnD"}
|
|
@@ -22,12 +22,14 @@ var getEntityData = function getEntityData(entity, schema) {
|
|
|
22
22
|
var interfacesToCheck = interfaces || nestedInterfaces;
|
|
23
23
|
if (interfacesToCheck && !interfacesToCheck.includes('publish/publishable')) {
|
|
24
24
|
return {
|
|
25
|
+
entity: entity,
|
|
25
26
|
docType: entity,
|
|
26
27
|
entityType: (0, _lodash["default"])((0, _lodash2["default"])(entity))
|
|
27
28
|
};
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
return {
|
|
32
|
+
entity: entity,
|
|
31
33
|
docType: publishedDocType,
|
|
32
34
|
entityType: publishedEntityType
|
|
33
35
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-entity-data.js","names":["getEntityData","entity","schema","publishedDocType","publishedEntityType","upperFirst","camelcase","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;AACA;AAEA,
|
|
1
|
+
{"version":3,"file":"get-entity-data.js","names":["_lodash","_interopRequireDefault","require","_lodash2","getEntityData","entity","schema","publishedDocType","concat","publishedEntityType","upperFirst","camelcase","_ref","interfaces","_ref$entity","_ref$entity2","nestedInterfaces","interfacesToCheck","includes","docType","entityType","_default","exports"],"sources":["../../src/helpers/get-entity-data.js"],"sourcesContent":["import upperFirst from 'lodash.upperfirst';\nimport camelcase from 'lodash.camelcase';\n\nconst getEntityData = (entity, schema) => {\n const publishedDocType = `published_${entity}`;\n const publishedEntityType = `Published${upperFirst(camelcase(entity))}`;\n\n if (schema) {\n const { interfaces, [entity]: { interfaces: nestedInterfaces } = {} } = schema || {};\n const interfacesToCheck = interfaces || nestedInterfaces;\n if (interfacesToCheck && !interfacesToCheck.includes('publish/publishable')) {\n return { entity, docType: entity, entityType: upperFirst(camelcase(entity)) };\n }\n }\n\n return { entity, docType: publishedDocType, entityType: publishedEntityType };\n};\n\nexport default getEntityData;\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAME,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,MAAM,EAAEC,MAAM,EAAK;EACxC,IAAMC,gBAAgB,gBAAAC,MAAA,CAAgBH,MAAM,CAAE;EAC9C,IAAMI,mBAAmB,eAAAD,MAAA,CAAe,IAAAE,kBAAU,EAAC,IAAAC,mBAAS,EAACN,MAAM,CAAC,CAAC,CAAE;EAEvE,IAAIC,MAAM,EAAE;IACV,IAAAM,IAAA,GAAwEN,MAAM,IAAI,CAAC,CAAC;MAA5EO,UAAU,GAAAD,IAAA,CAAVC,UAAU;MAAAC,WAAA,GAAAF,IAAA,CAAGP,MAAM;MAAAU,YAAA,GAAAD,WAAA,cAAsC,CAAC,CAAC,GAAAA,WAAA;MAAvBE,gBAAgB,GAAAD,YAAA,CAA5BF,UAAU;IAC1C,IAAMI,iBAAiB,GAAGJ,UAAU,IAAIG,gBAAgB;IACxD,IAAIC,iBAAiB,IAAI,CAACA,iBAAiB,CAACC,QAAQ,CAAC,qBAAqB,CAAC,EAAE;MAC3E,OAAO;QAAEb,MAAM,EAANA,MAAM;QAAEc,OAAO,EAAEd,MAAM;QAAEe,UAAU,EAAE,IAAAV,kBAAU,EAAC,IAAAC,mBAAS,EAACN,MAAM,CAAC;MAAE,CAAC;IAC/E;EACF;EAEA,OAAO;IAAEA,MAAM,EAANA,MAAM;IAAEc,OAAO,EAAEZ,gBAAgB;IAAEa,UAAU,EAAEX;EAAoB,CAAC;AAC/E,CAAC;AAAC,IAAAY,QAAA,GAEajB,aAAa;AAAAkB,OAAA,cAAAD,QAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-entity-render-props.js","names":["getEntityRenderProps","queryProps","data","dataSchema","isPreview","getEntitySchema","actions","getAllPublished","getAll","actionKey","action","getAction"],"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;AACA;AAEA,
|
|
1
|
+
{"version":3,"file":"get-entity-render-props.js","names":["_constants","require","_query","getEntityRenderProps","queryProps","data","arguments","length","undefined","dataSchema","isPreview","getEntitySchema","_getEntitySchema$acti","actions","getAllPublished","getAll","actionKey","action","getAction","_default","exports"],"sources":["../../src/helpers/get-entity-render-props.js"],"sourcesContent":["import { dataSchema } from './entities/constants';\nimport { getAction } from '../application/query';\n\nfunction getEntityRenderProps(queryProps, data = dataSchema, isPreview = false) {\n const { getEntitySchema } = data;\n\n const {\n actions: { getAllPublished, getAll }\n } = getEntitySchema;\n const actionKey = isPreview ? getAll : getAllPublished || getAll;\n const action = getAction(actionKey, queryProps);\n\n return { actionKey, action };\n}\n\nexport default getEntityRenderProps;\n"],"mappings":";;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEA,SAASE,oBAAoBA,CAACC,UAAU,EAAwC;EAAA,IAAtCC,IAAI,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGG,qBAAU;EAAA,IAAEC,SAAS,GAAAJ,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,KAAK;EAC5E,IAAQK,eAAe,GAAKN,IAAI,CAAxBM,eAAe;EAEvB,IAAAC,qBAAA,GAEID,eAAe,CADjBE,OAAO;IAAIC,eAAe,GAAAF,qBAAA,CAAfE,eAAe;IAAEC,MAAM,GAAAH,qBAAA,CAANG,MAAM;EAEpC,IAAMC,SAAS,GAAGN,SAAS,GAAGK,MAAM,GAAGD,eAAe,IAAIC,MAAM;EAChE,IAAME,MAAM,GAAG,IAAAC,gBAAS,EAACF,SAAS,EAAEZ,UAAU,CAAC;EAE/C,OAAO;IAAEY,SAAS,EAATA,SAAS;IAAEC,MAAM,EAANA;EAAO,CAAC;AAC9B;AAAC,IAAAE,QAAA,GAEchB,oBAAoB;AAAAiB,OAAA,cAAAD,QAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-extra-az-bits.js","names":["getExtraAzBits","shouldReturnAggs","isAZ","azFilter","AZ_AGGS","ALL_AZ_SORT"],"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;AAEA,
|
|
1
|
+
{"version":3,"file":"get-extra-az-bits.js","names":["_constants","require","getExtraAzBits","shouldReturnAggs","isAZ","azFilter","AZ_AGGS","ALL_AZ_SORT","_default","exports"],"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,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAIC,gBAAgB,EAAEC,IAAI,EAAEC,QAAQ,EAAK;EAC3D,IAAI,CAACD,IAAI,IAAKA,IAAI,IAAIC,QAAS,EAAE,OAAO,CAAC,CAAC;EAC1C,IAAIF,gBAAgB,EAAE,OAAOG,kBAAO;EAEpC,OAAOC,sBAAW;AACpB,CAAC;AAAC,IAAAC,QAAA,GAEaN,cAAc;AAAAO,OAAA,cAAAD,QAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-filter-props.js","names":["getFilterLocalKeys","relationName","relations","find","localField","entityIdentifier","getRelationEntity","filterName","filterEntityRelations","foreignKey","getFilterProps","filter","currentEntityRelations","properties","currentEntityProperties","dynamicProperties","currentEntityDynamicProperties","currentEntityId","identifier","filteryEntityId","split","relationProp","hasProperty","relationEntityName","filterNameEntity","propertyEntityName","entityName","isEntityItself","shouldCheckRelationNames","relationForeignKeys","getFilterRelationKeys","shouldIgnoreFilter","
|
|
1
|
+
{"version":3,"file":"get-filter-props.js","names":["_getFilterRelationKeys","_interopRequireDefault","require","getFilterLocalKeys","relationName","relations","_ref","find","_ref2","localField","entityIdentifier","getRelationEntity","filterName","filterEntityRelations","_ref3","_ref4","foreignKey","getFilterProps","filter","_ref5","arguments","length","undefined","_ref5$relations","currentEntityRelations","_ref5$properties","properties","currentEntityProperties","_ref5$dynamicProperti","dynamicProperties","currentEntityDynamicProperties","currentEntityId","identifier","_ref6","_ref6$relations","filteryEntityId","_filter$split","split","_filter$split2","_slicedToArray2","_filterName$split","_filterName$split2","relationProp","hasProperty","relationEntityName","filterNameEntity","propertyEntityName","entityName","isEntityItself","shouldCheckRelationNames","relationForeignKeys","getFilterRelationKeys","shouldIgnoreFilter","_default","exports"],"sources":["../../src/helpers/get-filter-props.js"],"sourcesContent":["import getFilterRelationKeys from './get-filter-relation-keys';\n\nconst getFilterLocalKeys = (relationName, relations) => {\n const { entityIdentifier } =\n relations.find(({ localField }) => localField === relationName) || {};\n return entityIdentifier;\n};\n\nconst getRelationEntity = (filterName, filterEntityRelations) => {\n const { entityIdentifier } =\n filterEntityRelations.find(({ foreignKey }) => foreignKey === filterName) || {};\n return entityIdentifier;\n};\n\nconst getFilterProps = (\n filter,\n {\n relations: currentEntityRelations = [],\n properties: currentEntityProperties = {},\n dynamicProperties: currentEntityDynamicProperties = {},\n identifier: currentEntityId\n } = {},\n { relations: filterEntityRelations = [], identifier: filteryEntityId } = {}\n) => {\n const [filterName] = filter.split('/');\n const [relationName, relationProp] = filterName.split('.');\n const hasProperty = !!(\n currentEntityProperties[filterName] || currentEntityDynamicProperties[filterName]\n );\n const relationEntityName = relationProp\n ? getFilterLocalKeys(relationName, currentEntityRelations)\n : null;\n const filterNameEntity = getRelationEntity(filterName, filterEntityRelations);\n\n const propertyEntityName = relationEntityName || filterNameEntity;\n const entityName = filterNameEntity ? filteryEntityId : relationEntityName;\n const isEntityItself = currentEntityId === propertyEntityName;\n const shouldCheckRelationNames = !hasProperty && !relationEntityName;\n const relationForeignKeys = shouldCheckRelationNames\n ? getFilterRelationKeys(propertyEntityName, currentEntityRelations, currentEntityProperties)\n : [];\n const shouldIgnoreFilter = shouldCheckRelationNames && !relationForeignKeys.length;\n\n return {\n filterName,\n entityName,\n relationName,\n relationProp,\n hasProperty,\n relationEntityName,\n isEntityItself,\n relationForeignKeys,\n shouldIgnoreFilter\n };\n};\n\nexport default getFilterProps;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,sBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAMC,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAIC,YAAY,EAAEC,SAAS,EAAK;EACtD,IAAAC,IAAA,GACED,SAAS,CAACE,IAAI,CAAC,UAAAC,KAAA;MAAA,IAAGC,UAAU,GAAAD,KAAA,CAAVC,UAAU;MAAA,OAAOA,UAAU,KAAKL,YAAY;IAAA,EAAC,IAAI,CAAC,CAAC;IAD/DM,gBAAgB,GAAAJ,IAAA,CAAhBI,gBAAgB;EAExB,OAAOA,gBAAgB;AACzB,CAAC;AAED,IAAMC,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAIC,UAAU,EAAEC,qBAAqB,EAAK;EAC/D,IAAAC,KAAA,GACED,qBAAqB,CAACN,IAAI,CAAC,UAAAQ,KAAA;MAAA,IAAGC,UAAU,GAAA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C,IAAME,WAAW,GAAG,CAAC,EACnBhB,uBAAuB,CAACf,UAAU,CAAC,IAAIkB,8BAA8B,CAAClB,UAAU,CAAC,CAClF;EACD,IAAMgC,kBAAkB,GAAGF,YAAY,GACnCvC,kBAAkB,CAACC,YAAY,EAAEoB,sBAAsB,CAAC,GACxD,IAAI;EACR,IAAMqB,gBAAgB,GAAGlC,iBAAiB,CAACC,UAAU,EAAEC,qBAAqB,CAAC;EAE7E,IAAMiC,kBAAkB,GAAGF,kBAAkB,IAAIC,gBAAgB;EACjE,IAAME,UAAU,GAAGF,gBAAgB,GAAGV,eAAe,GAAGS,kBAAkB;EAC1E,IAAMI,cAAc,GAAGjB,eAAe,KAAKe,kBAAkB;EAC7D,IAAMG,wBAAwB,GAAG,CAACN,WAAW,IAAI,CAACC,kBAAkB;EACpE,IAAMM,mBAAmB,GAAGD,wBAAwB,GAChD,IAAAE,iCAAqB,EAACL,kBAAkB,EAAEtB,sBAAsB,EAAEG,uBAAuB,CAAC,GAC1F,EAAE;EACN,IAAMyB,kBAAkB,GAAGH,wBAAwB,IAAI,CAACC,mBAAmB,CAAC7B,MAAM;EAElF,OAAO;IACLT,UAAU,EAAVA,UAAU;IACVmC,UAAU,EAAVA,UAAU;IACV3C,YAAY,EAAZA,YAAY;IACZsC,YAAY,EAAZA,YAAY;IACZC,WAAW,EAAXA,WAAW;IACXC,kBAAkB,EAAlBA,kBAAkB;IAClBI,cAAc,EAAdA,cAAc;IACdE,mBAAmB,EAAnBA,mBAAmB;IACnBE,kBAAkB,EAAlBA;EACF,CAAC;AACH,CAAC;AAAC,IAAAC,QAAA,GAEapC,cAAc;AAAAqC,OAAA,cAAAD,QAAA"}
|
|
@@ -1 +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,IAAMA,qBAAqB,GAAG,SAAxBA,
|
|
1
|
+
{"version":3,"file":"get-filter-relation-keys.js","names":["getFilterRelationKeys","entityName","currentEntityRelations","currentEntityProperties","filter","_ref","entityIdentifier","foreignKey","map","_ref2","_default","exports"],"sources":["../../src/helpers/get-filter-relation-keys.js"],"sourcesContent":["const getFilterRelationKeys = (entityName, currentEntityRelations, currentEntityProperties) =>\n currentEntityRelations\n .filter(\n ({ entityIdentifier, foreignKey }) =>\n entityIdentifier === entityName && currentEntityProperties[foreignKey]\n )\n .map(({ foreignKey }) => foreignKey);\n\nexport default getFilterRelationKeys;\n"],"mappings":";;;;;;;;;;AAAA,IAAMA,qBAAqB,GAAG,SAAxBA,qBAAqBA,CAAIC,UAAU,EAAEC,sBAAsB,EAAEC,uBAAuB;EAAA,OACxFD,sBAAsB,CACnBE,MAAM,CACL,UAAAC,IAAA;IAAA,IAAGC,gBAAgB,GAAAD,IAAA,CAAhBC,gBAAgB;MAAEC,UAAU,GAAAF,IAAA,CAAVE,UAAU;IAAA,OAC7BD,gBAAgB,KAAKL,UAAU,IAAIE,uBAAuB,CAACI,UAAU,CAAC;EAAA,EACzE,CACAC,GAAG,CAAC,UAAAC,KAAA;IAAA,IAAGF,UAAU,GAAAE,KAAA,CAAVF,UAAU;IAAA,OAAOA,UAAU;EAAA,EAAC;AAAA;AAAC,IAAAG,QAAA,GAE1BV,qBAAqB;AAAAW,OAAA,cAAAD,QAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-generic-props.js","names":["getGenericProps","props","propsSchema","itemsPerRow","gridModifier","getDictionaryMatch"],"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;AACA;AAAmD;AAAA;AAEnD,
|
|
1
|
+
{"version":3,"file":"get-generic-props.js","names":["_getDictionaryMatch","_interopRequireDefault","require","_constants","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","getGenericProps","props","undefined","propsSchema","itemsPerRow","gridModifier","getDictionaryMatch","_default","exports"],"sources":["../../src/helpers/get-generic-props.js"],"sourcesContent":["import getDictionaryMatch from './get-dictionary-match';\nimport { propsSchema } from './entities/constants';\n\nfunction getGenericProps(props = propsSchema) {\n const { itemsPerRow } = props;\n const gridModifier = getDictionaryMatch(itemsPerRow);\n\n return { gridModifier, ...props };\n}\n\nexport default getGenericProps;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAAmD,SAAAE,QAAAC,MAAA,EAAAC,cAAA,QAAAC,IAAA,GAAAC,MAAA,CAAAD,IAAA,CAAAF,MAAA,OAAAG,MAAA,CAAAC,qBAAA,QAAAC,OAAA,GAAAF,MAAA,CAAAC,qBAAA,CAAAJ,MAAA,GAAAC,cAAA,KAAAI,OAAA,GAAAA,OAAA,CAAAC,MAAA,WAAAC,GAAA,WAAAJ,MAAA,CAAAK,wBAAA,CAAAR,MAAA,EAAAO,GAAA,EAAAE,UAAA,OAAAP,IAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,IAAA,EAAAG,OAAA,YAAAH,IAAA;AAAA,SAAAU,cAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,WAAAF,SAAA,CAAAD,CAAA,IAAAC,SAAA,CAAAD,CAAA,QAAAA,CAAA,OAAAf,OAAA,CAAAI,MAAA,CAAAc,MAAA,OAAAC,OAAA,WAAAC,GAAA,QAAAC,gBAAA,aAAAP,MAAA,EAAAM,GAAA,EAAAF,MAAA,CAAAE,GAAA,SAAAhB,MAAA,CAAAkB,yBAAA,GAAAlB,MAAA,CAAAmB,gBAAA,CAAAT,MAAA,EAAAV,MAAA,CAAAkB,yBAAA,CAAAJ,MAAA,KAAAlB,OAAA,CAAAI,MAAA,CAAAc,MAAA,GAAAC,OAAA,WAAAC,GAAA,IAAAhB,MAAA,CAAAoB,cAAA,CAAAV,MAAA,EAAAM,GAAA,EAAAhB,MAAA,CAAAK,wBAAA,CAAAS,MAAA,EAAAE,GAAA,iBAAAN,MAAA;AAEnD,SAASW,eAAeA,CAAA,EAAsB;EAAA,IAArBC,KAAK,GAAAV,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAW,SAAA,GAAAX,SAAA,MAAGY,sBAAW;EAC1C,IAAQC,WAAW,GAAKH,KAAK,CAArBG,WAAW;EACnB,IAAMC,YAAY,GAAG,IAAAC,8BAAkB,EAACF,WAAW,CAAC;EAEpD,OAAAhB,aAAA;IAASiB,YAAY,EAAZA;EAAY,GAAKJ,KAAK;AACjC;AAAC,IAAAM,QAAA,GAEcP,eAAe;AAAAQ,OAAA,cAAAD,QAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-generic-render-variables.js","names":["buildSortValues","sortFilters","relations","stringProps","
|
|
1
|
+
{"version":3,"file":"get-generic-render-variables.js","names":["_getSortByFieldName","_interopRequireDefault","require","_constants","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","buildSortValues","sortFilters","relations","stringProps","sort","sortValues","map","_ref","propsToDisplay","sortFieldName","getSortbyFieldName","concat","toLowerCase","Boolean","join","getCorrectSort","filterProps","isTextSearchApplied","sortby","_filterProps$sortProp","sortProperties","_toConsumableArray2","getGenericRenderVariables","undefined","rawQuery","isTextSearchFilterApplied","useRandomSort","_filterProps$limit","limit","DEFAULT_LIMIT","offset","limitToUse","Number","offsetToUse","DEFAULT_OFFSET","rawQueryStringified","JSON","stringify","query","function_score","random_score","boost_mode","_default","exports"],"sources":["../../src/helpers/get-generic-render-variables.js"],"sourcesContent":["import 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,IAAAA,mBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAA6D,SAAAE,QAAAC,MAAA,EAAAC,cAAA,QAAAC,IAAA,GAAAC,MAAA,CAAAD,IAAA,CAAAF,MAAA,OAAAG,MAAA,CAAAC,qBAAA,QAAAC,OAAA,GAAAF,MAAA,CAAAC,qBAAA,CAAAJ,MAAA,GAAAC,cAAA,KAAAI,OAAA,GAAAA,OAAA,CAAAC,MAAA,WAAAC,GAAA,WAAAJ,MAAA,CAAAK,wBAAA,CAAAR,MAAA,EAAAO,GAAA,EAAAE,UAAA,OAAAP,IAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,IAAA,EAAAG,OAAA,YAAAH,IAAA;AAAA,SAAAU,cAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,WAAAF,SAAA,CAAAD,CAAA,IAAAC,SAAA,CAAAD,CAAA,QAAAA,CAAA,OAAAf,OAAA,CAAAI,MAAA,CAAAc,MAAA,OAAAC,OAAA,WAAAC,GAAA,QAAAC,gBAAA,aAAAP,MAAA,EAAAM,GAAA,EAAAF,MAAA,CAAAE,GAAA,SAAAhB,MAAA,CAAAkB,yBAAA,GAAAlB,MAAA,CAAAmB,gBAAA,CAAAT,MAAA,EAAAV,MAAA,CAAAkB,yBAAA,CAAAJ,MAAA,KAAAlB,OAAA,CAAAI,MAAA,CAAAc,MAAA,GAAAC,OAAA,WAAA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Y,EAAE,CAAC,CAAC;UAChBC,UAAU,EAAE;QACd;MACF;IACF,CAAC,CAAC;IAEF,OAAO;MACLb,KAAK,EAAEG,UAAU;MACjBD,MAAM,EAAEG,WAAW;MACnBE,mBAAmB,EAAnBA;IACF,CAAC;EACH;EAEA,IAAM/B,IAAI,GAAGW,cAAc,CAACb,SAAS,EAAEc,WAAW,EAAEb,WAAW,EAAEsB,yBAAyB,CAAC;EAE3F,OAAArC,aAAA,CAAAA,aAAA;IACEwC,KAAK,EAAEG,UAAU;IACjBD,MAAM,EAAEG;EAAW,GAChB7B,IAAI;IACP+B,mBAAmB,EAAEC,IAAI,CAACC,SAAS,CAACb,QAAQ;EAAC;AAEjD,CAAC;AAAC,IAAAkB,QAAA,GAEapB,yBAAyB;AAAAqB,OAAA,cAAAD,QAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-image-ids.js","names":["getIdsFromArray","relationImageData","relationProp","imageId","length","map","image","Object","keys","filter","Boolean","getImageIds","imageRelation","relationData","imageIdArray","entityData","imageData","split","relationName","Array","isArray","isPlainObject"],"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;AAEA,
|
|
1
|
+
{"version":3,"file":"get-image-ids.js","names":["_lodash","_interopRequireDefault","require","getIdsFromArray","relationImageData","relationProp","imageId","length","map","image","Object","keys","filter","Boolean","getImageIds","imageRelation","relationData","imageIdArray","entityData","_imageRelation","_slicedToArray2","imageData","_imageData$split","split","_imageData$split2","relationName","Array","isArray","isPlainObject","_default","exports"],"sources":["../../src/helpers/get-image-ids.js"],"sourcesContent":["import isPlainObject from 'lodash.isplainobject';\n\nconst getIdsFromArray = (relationImageData, relationProp, imageId) => {\n if (!relationImageData.length) return [imageId];\n return relationImageData\n .map(image => {\n if (!Object.keys(image).length) return '';\n return image[relationProp];\n })\n .filter(Boolean);\n};\n\nconst getImageIds = (imageRelation, relationData, imageId) => {\n const imageIdArray = imageId ? [imageId] : [];\n if (relationData && relationData.entityData) {\n const [imageData] = imageRelation;\n const [relationName, relationProp] = imageData.split('.');\n const relationImageData = relationData.entityData[relationName];\n\n if (!relationImageData) return imageIdArray;\n\n if (Array.isArray(relationImageData))\n return getIdsFromArray(relationImageData, relationProp, imageId);\n\n if (isPlainObject(relationImageData) && Object.keys(relationImageData).length) {\n return Array.isArray(relationImageData[relationProp])\n ? relationImageData[relationProp]\n : [relationImageData[relationProp]];\n }\n }\n\n return imageIdArray;\n};\n\nexport default getImageIds;\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAMC,eAAe,GAAG,SAAlBA,eAAeA,CAAIC,iBAAiB,EAAEC,YAAY,EAAEC,OAAO,EAAK;EACpE,IAAI,CAACF,iBAAiB,CAACG,MAAM,EAAE,OAAO,CAACD,OAAO,CAAC;EAC/C,OAAOF,iBAAiB,CACrBI,GAAG,CAAC,UAAAC,KAAK,EAAI;IACZ,IAAI,CAACC,MAAM,CAACC,IAAI,CAACF,KAAK,CAAC,CAACF,MAAM,EAAE,OA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