@blaze-cms/react-page-builder 0.146.0-node18-core-styles-tooltips.45 → 0.146.0-node18-tooltips.38
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 +45 -105
- package/lib/components/Menu/Menu.js +1 -4
- package/lib/components/Menu/Menu.js.map +1 -1
- package/lib/components/Menu/MenuContext.js +1 -2
- package/lib/components/Menu/MenuContext.js.map +1 -1
- package/lib/components/MenuItem/MenuItemRender.js +12 -27
- package/lib/components/MenuItem/MenuItemRender.js.map +1 -1
- package/lib/components/MenuItem/helpers/index.js +0 -14
- package/lib/components/MenuItem/helpers/index.js.map +1 -1
- package/lib-es/BannerContext/helpers/index.js +3 -0
- package/lib-es/BannerContext/helpers/index.js.map +1 -0
- package/lib-es/BannerContext/helpers/set-initial-banner-counters.js +17 -0
- package/lib-es/BannerContext/helpers/set-initial-banner-counters.js.map +1 -0
- package/lib-es/BannerContext/index.js +29 -0
- package/lib-es/BannerContext/index.js.map +1 -0
- package/lib-es/HOC/index.js +3 -0
- package/lib-es/HOC/index.js.map +1 -0
- package/lib-es/HOC/recreateOnNavigation.js +20 -0
- package/lib-es/HOC/recreateOnNavigation.js.map +1 -0
- package/lib-es/HOC/withInfiniteScroll.js +62 -0
- package/lib-es/HOC/withInfiniteScroll.js.map +1 -0
- package/lib-es/HOC/withTitle.js +36 -0
- package/lib-es/HOC/withTitle.js.map +1 -0
- package/lib-es/PBContext/index.js +6 -0
- package/lib-es/PBContext/index.js.map +1 -0
- package/lib-es/application/query/index.js +178 -0
- package/lib-es/application/query/index.js.map +1 -0
- package/lib-es/components/BackToTop/BackToTop.js +38 -0
- package/lib-es/components/BackToTop/BackToTop.js.map +1 -0
- package/lib-es/components/BackToTop/index.js +3 -0
- package/lib-es/components/BackToTop/index.js.map +1 -0
- package/lib-es/components/Banner/AdSlotRender.js +73 -0
- package/lib-es/components/Banner/AdSlotRender.js.map +1 -0
- package/lib-es/components/Banner/Banner.js +94 -0
- package/lib-es/components/Banner/Banner.js.map +1 -0
- package/lib-es/components/Banner/BannerRender.js +125 -0
- package/lib-es/components/Banner/BannerRender.js.map +1 -0
- package/lib-es/components/Banner/helpers.js +155 -0
- package/lib-es/components/Banner/helpers.js.map +1 -0
- package/lib-es/components/Banner/index.js +3 -0
- package/lib-es/components/Banner/index.js.map +1 -0
- package/lib-es/components/BlazeLink.js +68 -0
- package/lib-es/components/BlazeLink.js.map +1 -0
- package/lib-es/components/Breadcrumb/Breadcrumb.js +88 -0
- package/lib-es/components/Breadcrumb/Breadcrumb.js.map +1 -0
- package/lib-es/components/Breadcrumb/index.js +3 -0
- package/lib-es/components/Breadcrumb/index.js.map +1 -0
- package/lib-es/components/Button.js +134 -0
- package/lib-es/components/Button.js.map +1 -0
- package/lib-es/components/Card/Card.js +290 -0
- package/lib-es/components/Card/Card.js.map +1 -0
- package/lib-es/components/Card/CardsContainer.js +186 -0
- package/lib-es/components/Card/CardsContainer.js.map +1 -0
- package/lib-es/components/Card/CardsFactory.js +99 -0
- package/lib-es/components/Card/CardsFactory.js.map +1 -0
- package/lib-es/components/Card/CardsRender.js +194 -0
- package/lib-es/components/Card/CardsRender.js.map +1 -0
- package/lib-es/components/Card/constants.js +4 -0
- package/lib-es/components/Card/constants.js.map +1 -0
- package/lib-es/components/Card/helpers/get-dynamic-grid-classes.js +21 -0
- package/lib-es/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -0
- package/lib-es/components/Card/helpers/get-published-listing-url.js +3 -0
- package/lib-es/components/Card/helpers/get-published-listing-url.js.map +1 -0
- package/lib-es/components/Card/helpers/index.js +10 -0
- package/lib-es/components/Card/helpers/index.js.map +1 -0
- package/lib-es/components/Card/helpers/use-dynamic-size-key.js +6 -0
- package/lib-es/components/Card/helpers/use-dynamic-size-key.js.map +1 -0
- package/lib-es/components/Card/index.js +3 -0
- package/lib-es/components/Card/index.js.map +1 -0
- package/lib-es/components/Carousel/Carousel.js +78 -0
- package/lib-es/components/Carousel/Carousel.js.map +1 -0
- package/lib-es/components/Carousel/CarouselImage/CarouselImage.js +59 -0
- package/lib-es/components/Carousel/CarouselImage/CarouselImage.js.map +1 -0
- package/lib-es/components/Carousel/CarouselImage/constants.js +2 -0
- package/lib-es/components/Carousel/CarouselImage/constants.js.map +1 -0
- package/lib-es/components/Carousel/CarouselImage/index.js +3 -0
- package/lib-es/components/Carousel/CarouselImage/index.js.map +1 -0
- package/lib-es/components/Carousel/CarouselRender/CarouselRender.js +74 -0
- package/lib-es/components/Carousel/CarouselRender/CarouselRender.js.map +1 -0
- package/lib-es/components/Carousel/CarouselRender/index.js +3 -0
- package/lib-es/components/Carousel/CarouselRender/index.js.map +1 -0
- package/lib-es/components/Carousel/hooks/useCarouselNavigation.js +49 -0
- package/lib-es/components/Carousel/hooks/useCarouselNavigation.js.map +1 -0
- package/lib-es/components/Carousel/index.js +3 -0
- package/lib-es/components/Carousel/index.js.map +1 -0
- package/lib-es/components/CarouselWrapper/CarouselWrapper.js +22 -0
- package/lib-es/components/CarouselWrapper/CarouselWrapper.js.map +1 -0
- package/lib-es/components/CarouselWrapper/DefaultCarousel.js +140 -0
- package/lib-es/components/CarouselWrapper/DefaultCarousel.js.map +1 -0
- package/lib-es/components/CarouselWrapper/SmoothScrollCarousel.js +43 -0
- package/lib-es/components/CarouselWrapper/SmoothScrollCarousel.js.map +1 -0
- package/lib-es/components/CarouselWrapper/index.js +3 -0
- package/lib-es/components/CarouselWrapper/index.js.map +1 -0
- package/lib-es/components/ClickWrapper.js +40 -0
- package/lib-es/components/ClickWrapper.js.map +1 -0
- package/lib-es/components/Code/Code.js +43 -0
- package/lib-es/components/Code/Code.js.map +1 -0
- package/lib-es/components/Code/ScriptTag.js +32 -0
- package/lib-es/components/Code/ScriptTag.js.map +1 -0
- package/lib-es/components/Code/helpers/index.js +2 -0
- package/lib-es/components/Code/helpers/index.js.map +1 -0
- package/lib-es/components/Code/helpers/wrap-script-tags.js +36 -0
- package/lib-es/components/Code/helpers/wrap-script-tags.js.map +1 -0
- package/lib-es/components/Code/index.js +3 -0
- package/lib-es/components/Code/index.js.map +1 -0
- package/lib-es/components/ContentGroup/ContentGroup.js +46 -0
- package/lib-es/components/ContentGroup/ContentGroup.js.map +1 -0
- package/lib-es/components/ContentGroup/ContentGroupAccordion.js +138 -0
- package/lib-es/components/ContentGroup/ContentGroupAccordion.js.map +1 -0
- package/lib-es/components/ContentGroup/ContentGroupTabs.js +83 -0
- package/lib-es/components/ContentGroup/ContentGroupTabs.js.map +1 -0
- package/lib-es/components/ContentGroup/constants.js +18 -0
- package/lib-es/components/ContentGroup/constants.js.map +1 -0
- package/lib-es/components/ContentGroup/helpers/get-active-tab.js +9 -0
- package/lib-es/components/ContentGroup/helpers/get-active-tab.js.map +1 -0
- package/lib-es/components/ContentGroup/helpers/get-sections-data.js +15 -0
- package/lib-es/components/ContentGroup/helpers/get-sections-data.js.map +1 -0
- package/lib-es/components/ContentGroup/helpers/get-structured-data-properties.js +33 -0
- package/lib-es/components/ContentGroup/helpers/get-structured-data-properties.js.map +1 -0
- package/lib-es/components/ContentGroup/helpers/index.js +4 -0
- package/lib-es/components/ContentGroup/helpers/index.js.map +1 -0
- package/lib-es/components/ContentGroup/index.js +3 -0
- package/lib-es/components/ContentGroup/index.js.map +1 -0
- package/lib-es/components/ContentGroupSection/ContentGroupSection.js +23 -0
- package/lib-es/components/ContentGroupSection/ContentGroupSection.js.map +1 -0
- package/lib-es/components/ContentGroupSection/index.js +3 -0
- package/lib-es/components/ContentGroupSection/index.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryFactory.js +93 -0
- package/lib-es/components/DataSummary/DataSummaryFactory.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryRender.js +92 -0
- package/lib-es/components/DataSummary/DataSummaryRender.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js +24 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js +24 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js +3 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js +23 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js +28 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js +3 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js +23 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js +35 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/index.js +3 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/index.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js +23 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js +34 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/index.js +3 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/index.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js +23 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js +29 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/index.js +3 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/index.js.map +1 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/index.js +9 -0
- package/lib-es/components/DataSummary/DataSummaryTypes/index.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/build-loop-props-content.js +61 -0
- package/lib-es/components/DataSummary/helpers/build-loop-props-content.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/build-props-to-display-with-content.js +45 -0
- package/lib-es/components/DataSummary/helpers/build-props-to-display-with-content.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/get-data-summary-query.js +19 -0
- package/lib-es/components/DataSummary/helpers/get-data-summary-query.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/get-link-based-on-value.js +15 -0
- package/lib-es/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/get-link-props.js +6 -0
- package/lib-es/components/DataSummary/helpers/get-link-props.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/get-link-to-published-content.js +9 -0
- package/lib-es/components/DataSummary/helpers/get-link-to-published-content.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/get-loop-props-limit.js +12 -0
- package/lib-es/components/DataSummary/helpers/get-loop-props-limit.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/get-prop-value.js +20 -0
- package/lib-es/components/DataSummary/helpers/get-prop-value.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/get-record-id.js +14 -0
- package/lib-es/components/DataSummary/helpers/get-record-id.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/get-value-from-array.js +17 -0
- package/lib-es/components/DataSummary/helpers/get-value-from-array.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/index.js +11 -0
- package/lib-es/components/DataSummary/helpers/index.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/parse-boolean-values.js +7 -0
- package/lib-es/components/DataSummary/helpers/parse-boolean-values.js.map +1 -0
- package/lib-es/components/DataSummary/helpers/strip-summary-props-content.js +14 -0
- package/lib-es/components/DataSummary/helpers/strip-summary-props-content.js.map +1 -0
- package/lib-es/components/DataSummary/index.js +3 -0
- package/lib-es/components/DataSummary/index.js.map +1 -0
- package/lib-es/components/DateTime/DateTime.js +36 -0
- package/lib-es/components/DateTime/DateTime.js.map +1 -0
- package/lib-es/components/DateTime/index.js +3 -0
- package/lib-es/components/DateTime/index.js.map +1 -0
- package/lib-es/components/EmailConfirm/EmailConfirm.js +71 -0
- package/lib-es/components/EmailConfirm/EmailConfirm.js.map +1 -0
- package/lib-es/components/EmailConfirm/index.js +3 -0
- package/lib-es/components/EmailConfirm/index.js.map +1 -0
- package/lib-es/components/EmailConfirm/mutation.js +13 -0
- package/lib-es/components/EmailConfirm/mutation.js.map +1 -0
- package/lib-es/components/ErrorMessage/ErrorMessage.js +30 -0
- package/lib-es/components/ErrorMessage/ErrorMessage.js.map +1 -0
- package/lib-es/components/ErrorMessage/index.js +3 -0
- package/lib-es/components/ErrorMessage/index.js.map +1 -0
- package/lib-es/components/Iframe/Iframe.js +42 -0
- package/lib-es/components/Iframe/Iframe.js.map +1 -0
- package/lib-es/components/Iframe/constants.js +7 -0
- package/lib-es/components/Iframe/constants.js.map +1 -0
- package/lib-es/components/Iframe/index.js +3 -0
- package/lib-es/components/Iframe/index.js.map +1 -0
- package/lib-es/components/Image/GlobalLightbox/GlobalLightbox.js +161 -0
- package/lib-es/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -0
- package/lib-es/components/Image/GlobalLightbox/NavButton.js +24 -0
- package/lib-es/components/Image/GlobalLightbox/NavButton.js.map +1 -0
- package/lib-es/components/Image/GlobalLightbox/index.js +3 -0
- package/lib-es/components/Image/GlobalLightbox/index.js.map +1 -0
- package/lib-es/components/Image/Image.js +173 -0
- package/lib-es/components/Image/Image.js.map +1 -0
- package/lib-es/components/Image/ImageDetails.js +27 -0
- package/lib-es/components/Image/ImageDetails.js.map +1 -0
- package/lib-es/components/Image/ImageFactory.js +86 -0
- package/lib-es/components/Image/ImageFactory.js.map +1 -0
- package/lib-es/components/Image/ImageRender.js +86 -0
- package/lib-es/components/Image/ImageRender.js.map +1 -0
- package/lib-es/components/Image/Lightbox/Lightbox.js +63 -0
- package/lib-es/components/Image/Lightbox/Lightbox.js.map +1 -0
- package/lib-es/components/Image/Lightbox/index.js +3 -0
- package/lib-es/components/Image/Lightbox/index.js.map +1 -0
- package/lib-es/components/Image/index.js +3 -0
- package/lib-es/components/Image/index.js.map +1 -0
- package/lib-es/components/ItemList/ItemListButton/ItemListButton.js +107 -0
- package/lib-es/components/ItemList/ItemListButton/ItemListButton.js.map +1 -0
- package/lib-es/components/ItemList/ItemListButton/index.js +3 -0
- package/lib-es/components/ItemList/ItemListButton/index.js.map +1 -0
- package/lib-es/components/ItemList/ItemListCounter/ItemListCounter.js +57 -0
- package/lib-es/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -0
- package/lib-es/components/ItemList/ItemListCounter/index.js +3 -0
- package/lib-es/components/ItemList/ItemListCounter/index.js.map +1 -0
- package/lib-es/components/ItemList/ItemListNew/ItemListNew.js +60 -0
- package/lib-es/components/ItemList/ItemListNew/ItemListNew.js.map +1 -0
- package/lib-es/components/ItemList/ItemListNew/index.js +3 -0
- package/lib-es/components/ItemList/ItemListNew/index.js.map +1 -0
- package/lib-es/components/ItemList/constants.js +6 -0
- package/lib-es/components/ItemList/constants.js.map +1 -0
- package/lib-es/components/ItemList/helpers/get-item-list-data.js +6 -0
- package/lib-es/components/ItemList/helpers/get-item-list-data.js.map +1 -0
- package/lib-es/components/ItemList/helpers/get-item-list-id.js +9 -0
- package/lib-es/components/ItemList/helpers/get-item-list-id.js.map +1 -0
- package/lib-es/components/ItemList/helpers/get-item-list-ids.js +11 -0
- package/lib-es/components/ItemList/helpers/get-item-list-ids.js.map +1 -0
- package/lib-es/components/ItemList/helpers/index.js +6 -0
- package/lib-es/components/ItemList/helpers/index.js.map +1 -0
- package/lib-es/components/ItemList/helpers/set-item-list-id.js +8 -0
- package/lib-es/components/ItemList/helpers/set-item-list-id.js.map +1 -0
- package/lib-es/components/ItemList/helpers/set-param-and-redirect.js +17 -0
- package/lib-es/components/ItemList/helpers/set-param-and-redirect.js.map +1 -0
- package/lib-es/components/ItemList/hooks/index.js +2 -0
- package/lib-es/components/ItemList/hooks/index.js.map +1 -0
- package/lib-es/components/ItemList/hooks/use-item-list-id.js +23 -0
- package/lib-es/components/ItemList/hooks/use-item-list-id.js.map +1 -0
- package/lib-es/components/ItemList/icons/AddedBookmark.js +33 -0
- package/lib-es/components/ItemList/icons/AddedBookmark.js.map +1 -0
- package/lib-es/components/ItemList/icons/BaseBookmark.js +37 -0
- package/lib-es/components/ItemList/icons/BaseBookmark.js.map +1 -0
- package/lib-es/components/ItemList/icons/HoverBookmark.js +35 -0
- package/lib-es/components/ItemList/icons/HoverBookmark.js.map +1 -0
- package/lib-es/components/ItemList/icons/RemoveBookmark.js +33 -0
- package/lib-es/components/ItemList/icons/RemoveBookmark.js.map +1 -0
- package/lib-es/components/ItemList/icons/index.js +5 -0
- package/lib-es/components/ItemList/icons/index.js.map +1 -0
- package/lib-es/components/Layout/Layout.js +85 -0
- package/lib-es/components/Layout/Layout.js.map +1 -0
- package/lib-es/components/Layout/LayoutFactory.js +14 -0
- package/lib-es/components/Layout/LayoutFactory.js.map +1 -0
- package/lib-es/components/Layout/LayoutWithStickyTimer.js +42 -0
- package/lib-es/components/Layout/LayoutWithStickyTimer.js.map +1 -0
- package/lib-es/components/Layout/constants.js +6 -0
- package/lib-es/components/Layout/constants.js.map +1 -0
- package/lib-es/components/Layout/helpers/check-if-row-has-columns.js +19 -0
- package/lib-es/components/Layout/helpers/check-if-row-has-columns.js.map +1 -0
- package/lib-es/components/Layout/helpers/get-styles-to-update.js +10 -0
- package/lib-es/components/Layout/helpers/get-styles-to-update.js.map +1 -0
- package/lib-es/components/Layout/helpers/index.js +4 -0
- package/lib-es/components/Layout/helpers/index.js.map +1 -0
- package/lib-es/components/Layout/index.js +3 -0
- package/lib-es/components/Layout/index.js.map +1 -0
- package/lib-es/components/LazyImage/LazyImage.js +41 -0
- package/lib-es/components/LazyImage/LazyImage.js.map +1 -0
- package/lib-es/components/LazyImage/index.js +3 -0
- package/lib-es/components/LazyImage/index.js.map +1 -0
- package/lib-es/components/List/ListBuilder.js +206 -0
- package/lib-es/components/List/ListBuilder.js.map +1 -0
- package/lib-es/components/List/ListFactory.js +213 -0
- package/lib-es/components/List/ListFactory.js.map +1 -0
- package/lib-es/components/List/ListRender.js +134 -0
- package/lib-es/components/List/ListRender.js.map +1 -0
- package/lib-es/components/List/components/Cards/CardRenderWithInfiniteScroll.js +4 -0
- package/lib-es/components/List/components/Cards/CardRenderWithInfiniteScroll.js.map +1 -0
- package/lib-es/components/List/components/Cards/CardsRender.js +106 -0
- package/lib-es/components/List/components/Cards/CardsRender.js.map +1 -0
- package/lib-es/components/List/components/Cards/CardsRenderItem.js +121 -0
- package/lib-es/components/List/components/Cards/CardsRenderItem.js.map +1 -0
- package/lib-es/components/List/components/Cards/CardsRenderWrapper.js +59 -0
- package/lib-es/components/List/components/Cards/CardsRenderWrapper.js.map +1 -0
- package/lib-es/components/List/components/Cards/index.js +3 -0
- package/lib-es/components/List/components/Cards/index.js.map +1 -0
- package/lib-es/components/List/components/Full/FullRender.js +92 -0
- package/lib-es/components/List/components/Full/FullRender.js.map +1 -0
- package/lib-es/components/List/components/Full/FullRenderItem.js +95 -0
- package/lib-es/components/List/components/Full/FullRenderItem.js.map +1 -0
- package/lib-es/components/List/components/Full/FullRenderWithInfiniteScroll.js +4 -0
- package/lib-es/components/List/components/Full/FullRenderWithInfiniteScroll.js.map +1 -0
- package/lib-es/components/List/components/Full/index.js +3 -0
- package/lib-es/components/List/components/Full/index.js.map +1 -0
- package/lib-es/components/List/components/Header/ListHeader.js +64 -0
- package/lib-es/components/List/components/Header/ListHeader.js.map +1 -0
- package/lib-es/components/List/components/Header/index.js +3 -0
- package/lib-es/components/List/components/Header/index.js.map +1 -0
- package/lib-es/components/List/components/Pagination/Classic.js +55 -0
- package/lib-es/components/List/components/Pagination/Classic.js.map +1 -0
- package/lib-es/components/List/components/Pagination/ListPagination.js +63 -0
- package/lib-es/components/List/components/Pagination/ListPagination.js.map +1 -0
- package/lib-es/components/List/components/Pagination/LoadMore.js +37 -0
- package/lib-es/components/List/components/Pagination/LoadMore.js.map +1 -0
- package/lib-es/components/List/components/Pagination/index.js +3 -0
- package/lib-es/components/List/components/Pagination/index.js.map +1 -0
- package/lib-es/components/List/components/helpers/check-if-should-render-banner.js +42 -0
- package/lib-es/components/List/components/helpers/check-if-should-render-banner.js.map +1 -0
- package/lib-es/components/List/components/helpers/check-if-should-render-gtm.js +14 -0
- package/lib-es/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -0
- package/lib-es/components/List/components/helpers/index.js +4 -0
- package/lib-es/components/List/components/helpers/index.js.map +1 -0
- package/lib-es/components/List/components/index.js +5 -0
- package/lib-es/components/List/components/index.js.map +1 -0
- package/lib-es/components/List/constants.js +10 -0
- package/lib-es/components/List/constants.js.map +1 -0
- package/lib-es/components/List/helpers/build-az-aggregations.js +25 -0
- package/lib-es/components/List/helpers/build-az-aggregations.js.map +1 -0
- package/lib-es/components/List/helpers/build-az-url.js +26 -0
- package/lib-es/components/List/helpers/build-az-url.js.map +1 -0
- package/lib-es/components/List/helpers/build-pagination-items.js +39 -0
- package/lib-es/components/List/helpers/build-pagination-items.js.map +1 -0
- package/lib-es/components/List/helpers/build-pagination-url.js +14 -0
- package/lib-es/components/List/helpers/build-pagination-url.js.map +1 -0
- package/lib-es/components/List/helpers/build-query-booster.js +41 -0
- package/lib-es/components/List/helpers/build-query-booster.js.map +1 -0
- package/lib-es/components/List/helpers/get-az-query-filter.js +7 -0
- package/lib-es/components/List/helpers/get-az-query-filter.js.map +1 -0
- package/lib-es/components/List/helpers/get-items-per-page-to-use.js +7 -0
- package/lib-es/components/List/helpers/get-items-per-page-to-use.js.map +1 -0
- package/lib-es/components/List/helpers/get-list-component.js +9 -0
- package/lib-es/components/List/helpers/get-list-component.js.map +1 -0
- package/lib-es/components/List/helpers/get-list-query.js +27 -0
- package/lib-es/components/List/helpers/get-list-query.js.map +1 -0
- package/lib-es/components/List/helpers/get-list-specific-search-filter.js +12 -0
- package/lib-es/components/List/helpers/get-list-specific-search-filter.js.map +1 -0
- package/lib-es/components/List/helpers/get-sort-props.js +32 -0
- package/lib-es/components/List/helpers/get-sort-props.js.map +1 -0
- package/lib-es/components/List/helpers/has-required-item-list-details.js +16 -0
- package/lib-es/components/List/helpers/has-required-item-list-details.js.map +1 -0
- package/lib-es/components/List/helpers/index.js +13 -0
- package/lib-es/components/List/helpers/index.js.map +1 -0
- package/lib-es/components/List/helpers/sort-aggs.js +22 -0
- package/lib-es/components/List/helpers/sort-aggs.js.map +1 -0
- package/lib-es/components/List/helpers/strip-query-key.js +6 -0
- package/lib-es/components/List/helpers/strip-query-key.js.map +1 -0
- package/lib-es/components/List/index.js +3 -0
- package/lib-es/components/List/index.js.map +1 -0
- package/lib-es/components/Loading/Loading.js +27 -0
- package/lib-es/components/Loading/Loading.js.map +1 -0
- package/lib-es/components/Loading/constants.js +5 -0
- package/lib-es/components/Loading/constants.js.map +1 -0
- package/lib-es/components/Loading/helpers.js +8 -0
- package/lib-es/components/Loading/helpers.js.map +1 -0
- package/lib-es/components/Loading/index.js +3 -0
- package/lib-es/components/Loading/index.js.map +1 -0
- package/lib-es/components/Menu/Menu.js +117 -0
- package/lib-es/components/Menu/Menu.js.map +1 -0
- package/lib-es/components/Menu/MenuContext.js +6 -0
- package/lib-es/components/Menu/MenuContext.js.map +1 -0
- package/lib-es/components/Menu/index.js +3 -0
- package/lib-es/components/Menu/index.js.map +1 -0
- package/lib-es/components/MenuItem/MenuEntitiesItem.js +178 -0
- package/lib-es/components/MenuItem/MenuEntitiesItem.js.map +1 -0
- package/lib-es/components/MenuItem/MenuItem.js +41 -0
- package/lib-es/components/MenuItem/MenuItem.js.map +1 -0
- package/lib-es/components/MenuItem/MenuItemRender.js +100 -0
- package/lib-es/components/MenuItem/MenuItemRender.js.map +1 -0
- package/lib-es/components/MenuItem/helpers/index.js +3 -0
- package/lib-es/components/MenuItem/helpers/index.js.map +1 -0
- package/lib-es/components/MenuItem/helpers/inject-helper-into-template.js +20 -0
- package/lib-es/components/MenuItem/helpers/inject-helper-into-template.js.map +1 -0
- package/lib-es/components/MenuItem/index.js +3 -0
- package/lib-es/components/MenuItem/index.js.map +1 -0
- package/lib-es/components/Modal/Modal.js +32 -0
- package/lib-es/components/Modal/Modal.js.map +1 -0
- package/lib-es/components/Modal/index.js +3 -0
- package/lib-es/components/Modal/index.js.map +1 -0
- package/lib-es/components/ModalAdapter/ModalAdapter.js +13 -0
- package/lib-es/components/ModalAdapter/ModalAdapter.js.map +1 -0
- package/lib-es/components/ModalAdapter/index.js +3 -0
- package/lib-es/components/ModalAdapter/index.js.map +1 -0
- package/lib-es/components/SearchContent/SearchContent.js +152 -0
- package/lib-es/components/SearchContent/SearchContent.js.map +1 -0
- package/lib-es/components/SearchContent/SearchContentItems.js +31 -0
- package/lib-es/components/SearchContent/SearchContentItems.js.map +1 -0
- package/lib-es/components/SearchContent/SearchContentResults.js +28 -0
- package/lib-es/components/SearchContent/SearchContentResults.js.map +1 -0
- package/lib-es/components/SearchContent/SearchContentToggleIcon.js +17 -0
- package/lib-es/components/SearchContent/SearchContentToggleIcon.js.map +1 -0
- package/lib-es/components/SearchContent/constants.js +4 -0
- package/lib-es/components/SearchContent/constants.js.map +1 -0
- package/lib-es/components/SearchContent/index.js +3 -0
- package/lib-es/components/SearchContent/index.js.map +1 -0
- package/lib-es/components/SearchFilter/SearchFilter/CloseMobileForm.js +24 -0
- package/lib-es/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -0
- package/lib-es/components/SearchFilter/SearchFilter/FiltersList.js +110 -0
- package/lib-es/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -0
- package/lib-es/components/SearchFilter/SearchFilter/MobileFormToolbar.js +31 -0
- package/lib-es/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -0
- package/lib-es/components/SearchFilter/SearchFilter/ResetDesktopForm.js +31 -0
- package/lib-es/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -0
- package/lib-es/components/SearchFilter/SearchFilter/SearchFilter.js +209 -0
- package/lib-es/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -0
- package/lib-es/components/SearchFilter/SearchFilter/index.js +3 -0
- package/lib-es/components/SearchFilter/SearchFilter/index.js.map +1 -0
- package/lib-es/components/SearchFilter/SearchFilterContainer.js +227 -0
- package/lib-es/components/SearchFilter/SearchFilterContainer.js.map +1 -0
- package/lib-es/components/SearchFilter/components/Checkbox.js +102 -0
- package/lib-es/components/SearchFilter/components/Checkbox.js.map +1 -0
- package/lib-es/components/SearchFilter/components/Range.js +130 -0
- package/lib-es/components/SearchFilter/components/Range.js.map +1 -0
- package/lib-es/components/SearchFilter/components/Select.js +78 -0
- package/lib-es/components/SearchFilter/components/Select.js.map +1 -0
- package/lib-es/components/SearchFilter/components/TextSearch.js +52 -0
- package/lib-es/components/SearchFilter/components/TextSearch.js.map +1 -0
- package/lib-es/components/SearchFilter/components/index.js +6 -0
- package/lib-es/components/SearchFilter/components/index.js.map +1 -0
- package/lib-es/components/SearchFilter/constants.js +32 -0
- package/lib-es/components/SearchFilter/constants.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/build-list-name-query.js +15 -0
- package/lib-es/components/SearchFilter/helpers/build-list-name-query.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/build-new-url.js +9 -0
- package/lib-es/components/SearchFilter/helpers/build-new-url.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/build-url-query.js +37 -0
- package/lib-es/components/SearchFilter/helpers/build-url-query.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/calculate-min-max.js +18 -0
- package/lib-es/components/SearchFilter/helpers/calculate-min-max.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/calculate-step.js +3 -0
- package/lib-es/components/SearchFilter/helpers/calculate-step.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/check-if-range-updated.js +10 -0
- package/lib-es/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/decode-encode.js +4 -0
- package/lib-es/components/SearchFilter/helpers/decode-encode.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/get-display-value.js +6 -0
- package/lib-es/components/SearchFilter/helpers/get-display-value.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js +18 -0
- package/lib-es/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/get-filter-value-from-query.js +27 -0
- package/lib-es/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/get-filter-values.js +19 -0
- package/lib-es/components/SearchFilter/helpers/get-filter-values.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/get-initial-filter-values.js +21 -0
- package/lib-es/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/get-intersected-prop.js +4 -0
- package/lib-es/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/get-range-value.js +33 -0
- package/lib-es/components/SearchFilter/helpers/get-range-value.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/get-responsive-filter-classnames.js +18 -0
- package/lib-es/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/get-select-options.js +14 -0
- package/lib-es/components/SearchFilter/helpers/get-select-options.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/get-updated-filter-by.js +19 -0
- package/lib-es/components/SearchFilter/helpers/get-updated-filter-by.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/index.js +19 -0
- package/lib-es/components/SearchFilter/helpers/index.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/is-device-desktop.js +4 -0
- package/lib-es/components/SearchFilter/helpers/is-device-desktop.js.map +1 -0
- package/lib-es/components/SearchFilter/helpers/parse-filter-value.js +21 -0
- package/lib-es/components/SearchFilter/helpers/parse-filter-value.js.map +1 -0
- package/lib-es/components/SearchFilter/index.js +3 -0
- package/lib-es/components/SearchFilter/index.js.map +1 -0
- package/lib-es/components/SearchFilter/searchFilterReducer.js +26 -0
- package/lib-es/components/SearchFilter/searchFilterReducer.js.map +1 -0
- package/lib-es/components/SearchFilterSort/SearchFilterSort.js +79 -0
- package/lib-es/components/SearchFilterSort/SearchFilterSort.js.map +1 -0
- package/lib-es/components/SearchFilterSort/constants.js +6 -0
- package/lib-es/components/SearchFilterSort/constants.js.map +1 -0
- package/lib-es/components/SearchFilterSort/helpers/handle-sort-update.js +39 -0
- package/lib-es/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -0
- package/lib-es/components/SearchFilterSort/helpers/index.js +3 -0
- package/lib-es/components/SearchFilterSort/helpers/index.js.map +1 -0
- package/lib-es/components/SearchFilterSort/helpers/update-sort.js +19 -0
- package/lib-es/components/SearchFilterSort/helpers/update-sort.js.map +1 -0
- package/lib-es/components/SearchFilterSort/index.js +3 -0
- package/lib-es/components/SearchFilterSort/index.js.map +1 -0
- package/lib-es/components/SocialFollow/SFItem.js +33 -0
- package/lib-es/components/SocialFollow/SFItem.js.map +1 -0
- package/lib-es/components/SocialFollow/SocialFollow.js +38 -0
- package/lib-es/components/SocialFollow/SocialFollow.js.map +1 -0
- package/lib-es/components/SocialFollow/SocialFollowRender.js +33 -0
- package/lib-es/components/SocialFollow/SocialFollowRender.js.map +1 -0
- package/lib-es/components/SocialFollow/index.js +3 -0
- package/lib-es/components/SocialFollow/index.js.map +1 -0
- package/lib-es/components/SocialFollow/sf.config.js +50 -0
- package/lib-es/components/SocialFollow/sf.config.js.map +1 -0
- package/lib-es/components/SubMenu/SubMenu.js +23 -0
- package/lib-es/components/SubMenu/SubMenu.js.map +1 -0
- package/lib-es/components/SubMenu/index.js +3 -0
- package/lib-es/components/SubMenu/index.js.map +1 -0
- package/lib-es/components/TextBlock/TextBlockRender.js +20 -0
- package/lib-es/components/TextBlock/TextBlockRender.js.map +1 -0
- package/lib-es/components/TextBlock/index.js +53 -0
- package/lib-es/components/TextBlock/index.js.map +1 -0
- package/lib-es/components/Video/Video.js +98 -0
- package/lib-es/components/Video/Video.js.map +1 -0
- package/lib-es/components/Video/VideoContext.js +6 -0
- package/lib-es/components/Video/VideoContext.js.map +1 -0
- package/lib-es/components/Video/VideoModal.js +30 -0
- package/lib-es/components/Video/VideoModal.js.map +1 -0
- package/lib-es/components/Video/VideoRender.js +44 -0
- package/lib-es/components/Video/VideoRender.js.map +1 -0
- package/lib-es/components/Video/constants.js +7 -0
- package/lib-es/components/Video/constants.js.map +1 -0
- package/lib-es/components/Video/helpers/emit-gtm-event.js +25 -0
- package/lib-es/components/Video/helpers/emit-gtm-event.js.map +1 -0
- package/lib-es/components/Video/index.js +3 -0
- package/lib-es/components/Video/index.js.map +1 -0
- package/lib-es/components/Video/providers/Default.js +36 -0
- package/lib-es/components/Video/providers/Default.js.map +1 -0
- package/lib-es/components/Video/providers/JWPlayer/JWPlayerController.js +65 -0
- package/lib-es/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -0
- package/lib-es/components/Video/providers/JWPlayer/JWPlayerProvider.js +87 -0
- package/lib-es/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -0
- package/lib-es/components/Video/providers/Vimeo/VimeoProvider.js +68 -0
- package/lib-es/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -0
- package/lib-es/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js +14 -0
- package/lib-es/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js.map +1 -0
- package/lib-es/components/Video/providers/Vimeo/helpers/index.js +3 -0
- package/lib-es/components/Video/providers/Vimeo/helpers/index.js.map +1 -0
- package/lib-es/components/Video/providers/YouTube/YouTubeProvider.js +40 -0
- package/lib-es/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -0
- package/lib-es/components/Video/providers/YouTube/YoutubeEmbeded.js +213 -0
- package/lib-es/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -0
- package/lib-es/components/Video/providers/YouTube/helpers/index.js +26 -0
- package/lib-es/components/Video/providers/YouTube/helpers/index.js.map +1 -0
- package/lib-es/components/Video/providers/get-provider.js +13 -0
- package/lib-es/components/Video/providers/get-provider.js.map +1 -0
- package/lib-es/components/Video/providers/index.js +3 -0
- package/lib-es/components/Video/providers/index.js.map +1 -0
- package/lib-es/components/Wrapper.js +36 -0
- package/lib-es/components/Wrapper.js.map +1 -0
- package/lib-es/components/index.js +36 -0
- package/lib-es/components/index.js.map +1 -0
- package/lib-es/constants/componentsDefaultValues.js +20 -0
- package/lib-es/constants/componentsDefaultValues.js.map +1 -0
- package/lib-es/constants/index.js +143 -0
- package/lib-es/constants/index.js.map +1 -0
- package/lib-es/helpers/append-images.js +28 -0
- package/lib-es/helpers/append-images.js.map +1 -0
- package/lib-es/helpers/build-az-filter.js +16 -0
- package/lib-es/helpers/build-az-filter.js.map +1 -0
- package/lib-es/helpers/build-checkbox-filters.js +28 -0
- package/lib-es/helpers/build-checkbox-filters.js.map +1 -0
- package/lib-es/helpers/build-filters-query.js +86 -0
- package/lib-es/helpers/build-filters-query.js.map +1 -0
- package/lib-es/helpers/build-image-properties.js +29 -0
- package/lib-es/helpers/build-image-properties.js.map +1 -0
- package/lib-es/helpers/build-inherited-filters.js +67 -0
- package/lib-es/helpers/build-inherited-filters.js.map +1 -0
- package/lib-es/helpers/build-link-extra-props.js +17 -0
- package/lib-es/helpers/build-link-extra-props.js.map +1 -0
- package/lib-es/helpers/build-props-query.js +98 -0
- package/lib-es/helpers/build-props-query.js.map +1 -0
- package/lib-es/helpers/build-query-fields.js +13 -0
- package/lib-es/helpers/build-query-fields.js.map +1 -0
- package/lib-es/helpers/build-query-key.js +7 -0
- package/lib-es/helpers/build-query-key.js.map +1 -0
- package/lib-es/helpers/build-raw-query-base.js +113 -0
- package/lib-es/helpers/build-raw-query-base.js.map +1 -0
- package/lib-es/helpers/build-raw-query-stringified.js +44 -0
- package/lib-es/helpers/build-raw-query-stringified.js.map +1 -0
- package/lib-es/helpers/build-raw-query.js +132 -0
- package/lib-es/helpers/build-raw-query.js.map +1 -0
- package/lib-es/helpers/build-search-values-checkbox-select.js +64 -0
- package/lib-es/helpers/build-search-values-checkbox-select.js.map +1 -0
- package/lib-es/helpers/build-search-values-text.js +34 -0
- package/lib-es/helpers/build-search-values-text.js.map +1 -0
- package/lib-es/helpers/build-set-filters.js +32 -0
- package/lib-es/helpers/build-set-filters.js.map +1 -0
- package/lib-es/helpers/build-sort-values.js +34 -0
- package/lib-es/helpers/build-sort-values.js.map +1 -0
- package/lib-es/helpers/check-for-error.js +11 -0
- package/lib-es/helpers/check-for-error.js.map +1 -0
- package/lib-es/helpers/check-props-to-use.js +9 -0
- package/lib-es/helpers/check-props-to-use.js.map +1 -0
- package/lib-es/helpers/entities/constants.js +11 -0
- package/lib-es/helpers/entities/constants.js.map +1 -0
- package/lib-es/helpers/filter-query-setup.js +61 -0
- package/lib-es/helpers/filter-query-setup.js.map +1 -0
- package/lib-es/helpers/filters-setup.js +41 -0
- package/lib-es/helpers/filters-setup.js.map +1 -0
- package/lib-es/helpers/get-banner-data.js +17 -0
- package/lib-es/helpers/get-banner-data.js.map +1 -0
- package/lib-es/helpers/get-checkbox-filters.js +7 -0
- package/lib-es/helpers/get-checkbox-filters.js.map +1 -0
- package/lib-es/helpers/get-click-wrapper-options.js +43 -0
- package/lib-es/helpers/get-click-wrapper-options.js.map +1 -0
- package/lib-es/helpers/get-component-id.js +7 -0
- package/lib-es/helpers/get-component-id.js.map +1 -0
- package/lib-es/helpers/get-current-offset.js +7 -0
- package/lib-es/helpers/get-current-offset.js.map +1 -0
- package/lib-es/helpers/get-dictionary-match.js +11 -0
- package/lib-es/helpers/get-dictionary-match.js.map +1 -0
- package/lib-es/helpers/get-display-count-data.js +13 -0
- package/lib-es/helpers/get-display-count-data.js.map +1 -0
- package/lib-es/helpers/get-elasticsearch-operator.js +6 -0
- package/lib-es/helpers/get-elasticsearch-operator.js.map +1 -0
- package/lib-es/helpers/get-entities-with-banner.js +33 -0
- package/lib-es/helpers/get-entities-with-banner.js.map +1 -0
- package/lib-es/helpers/get-entity-data.js +29 -0
- package/lib-es/helpers/get-entity-data.js.map +1 -0
- package/lib-es/helpers/get-entity-render-props.js +21 -0
- package/lib-es/helpers/get-entity-render-props.js.map +1 -0
- package/lib-es/helpers/get-extra-az-bits.js +54 -0
- package/lib-es/helpers/get-extra-az-bits.js.map +1 -0
- package/lib-es/helpers/get-filter-props.js +60 -0
- package/lib-es/helpers/get-filter-props.js.map +1 -0
- package/lib-es/helpers/get-filter-relation-keys.js +8 -0
- package/lib-es/helpers/get-filter-relation-keys.js.map +1 -0
- package/lib-es/helpers/get-generic-props.js +16 -0
- package/lib-es/helpers/get-generic-props.js.map +1 -0
- package/lib-es/helpers/get-generic-render-variables.js +64 -0
- package/lib-es/helpers/get-generic-render-variables.js.map +1 -0
- package/lib-es/helpers/get-image-ids.js +26 -0
- package/lib-es/helpers/get-image-ids.js.map +1 -0
- package/lib-es/helpers/get-inherited-filters.js +12 -0
- package/lib-es/helpers/get-inherited-filters.js.map +1 -0
- package/lib-es/helpers/get-items-to-display-ids.js +12 -0
- package/lib-es/helpers/get-items-to-display-ids.js.map +1 -0
- package/lib-es/helpers/get-modifiers.js +16 -0
- package/lib-es/helpers/get-modifiers.js.map +1 -0
- package/lib-es/helpers/get-not-equal-query.js +9 -0
- package/lib-es/helpers/get-not-equal-query.js.map +1 -0
- package/lib-es/helpers/get-pagination-index.js +8 -0
- package/lib-es/helpers/get-pagination-index.js.map +1 -0
- package/lib-es/helpers/get-parsed-prop-values.js +32 -0
- package/lib-es/helpers/get-parsed-prop-values.js.map +1 -0
- package/lib-es/helpers/get-parsed-summary-value.js +13 -0
- package/lib-es/helpers/get-parsed-summary-value.js.map +1 -0
- package/lib-es/helpers/get-prop-values.js +14 -0
- package/lib-es/helpers/get-prop-values.js.map +1 -0
- package/lib-es/helpers/get-query-filters.js +22 -0
- package/lib-es/helpers/get-query-filters.js.map +1 -0
- package/lib-es/helpers/get-query-props.js +37 -0
- package/lib-es/helpers/get-query-props.js.map +1 -0
- package/lib-es/helpers/get-required-schemas.js +20 -0
- package/lib-es/helpers/get-required-schemas.js.map +1 -0
- package/lib-es/helpers/get-sanitized-prop-values.js +3 -0
- package/lib-es/helpers/get-sanitized-prop-values.js.map +1 -0
- package/lib-es/helpers/get-search-filter-type.js +12 -0
- package/lib-es/helpers/get-search-filter-type.js.map +1 -0
- package/lib-es/helpers/get-sort-by-field-name.js +20 -0
- package/lib-es/helpers/get-sort-by-field-name.js.map +1 -0
- package/lib-es/helpers/get-unpublished-entity-name.js +5 -0
- package/lib-es/helpers/get-unpublished-entity-name.js.map +1 -0
- package/lib-es/helpers/get-updated-filter-by.js +11 -0
- package/lib-es/helpers/get-updated-filter-by.js.map +1 -0
- package/lib-es/helpers/get-updated-items-to-display.js +32 -0
- package/lib-es/helpers/get-updated-items-to-display.js.map +1 -0
- package/lib-es/helpers/get-updated-sort-properties.js +15 -0
- package/lib-es/helpers/get-updated-sort-properties.js.map +1 -0
- package/lib-es/helpers/get-wrapped-value-with-link.js +25 -0
- package/lib-es/helpers/get-wrapped-value-with-link.js.map +1 -0
- package/lib-es/helpers/group-entities.js +10 -0
- package/lib-es/helpers/group-entities.js.map +1 -0
- package/lib-es/helpers/has-children.js +10 -0
- package/lib-es/helpers/has-children.js.map +1 -0
- package/lib-es/helpers/index.js +65 -0
- package/lib-es/helpers/index.js.map +1 -0
- package/lib-es/helpers/inject-banner.js +15 -0
- package/lib-es/helpers/inject-banner.js.map +1 -0
- package/lib-es/helpers/inject-banners-to-entities.js +19 -0
- package/lib-es/helpers/inject-banners-to-entities.js.map +1 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js +15 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.map +1 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/index.js +3 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/index.js.map +1 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js +19 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.map +1 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js +26 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js.map +1 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js +3 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js.map +1 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/index.js +3 -0
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/index.js.map +1 -0
- package/lib-es/helpers/inject-multiple-banners/index.js +3 -0
- package/lib-es/helpers/inject-multiple-banners/index.js.map +1 -0
- package/lib-es/helpers/inject-multiple-banners/inject-multiple-banners.js +11 -0
- package/lib-es/helpers/inject-multiple-banners/inject-multiple-banners.js.map +1 -0
- package/lib-es/helpers/is-browser.js +3 -0
- package/lib-es/helpers/is-browser.js.map +1 -0
- package/lib-es/helpers/is-filter-entitys-id.js +8 -0
- package/lib-es/helpers/is-filter-entitys-id.js.map +1 -0
- package/lib-es/helpers/is-object.js +3 -0
- package/lib-es/helpers/is-object.js.map +1 -0
- package/lib-es/helpers/is-using-relation-image.js +3 -0
- package/lib-es/helpers/is-using-relation-image.js.map +1 -0
- package/lib-es/helpers/parse-TextBlock.js +30 -0
- package/lib-es/helpers/parse-TextBlock.js.map +1 -0
- package/lib-es/helpers/parse-interval.js +4 -0
- package/lib-es/helpers/parse-interval.js.map +1 -0
- package/lib-es/helpers/parse-props-to-display.js +36 -0
- package/lib-es/helpers/parse-props-to-display.js.map +1 -0
- package/lib-es/helpers/process-data-summary-value.js +36 -0
- package/lib-es/helpers/process-data-summary-value.js.map +1 -0
- package/lib-es/helpers/remove-extra-items.js +13 -0
- package/lib-es/helpers/remove-extra-items.js.map +1 -0
- package/lib-es/helpers/remove-unwanted-characters.js +21 -0
- package/lib-es/helpers/remove-unwanted-characters.js.map +1 -0
- package/lib-es/helpers/render-children.js +21 -0
- package/lib-es/helpers/render-children.js.map +1 -0
- package/lib-es/helpers/should-render-waypoint.js +3 -0
- package/lib-es/helpers/should-render-waypoint.js.map +1 -0
- package/lib-es/helpers/should-return.js +3 -0
- package/lib-es/helpers/should-return.js.map +1 -0
- package/lib-es/helpers/should-show-property.js +6 -0
- package/lib-es/helpers/should-show-property.js.map +1 -0
- package/lib-es/helpers/should-skip-single-query.js +4 -0
- package/lib-es/helpers/should-skip-single-query.js.map +1 -0
- package/lib-es/helpers/sort-response-data.js +10 -0
- package/lib-es/helpers/sort-response-data.js.map +1 -0
- package/lib-es/helpers/split-children.js +69 -0
- package/lib-es/helpers/split-children.js.map +1 -0
- package/lib-es/helpers/update-childrens-parent.js +17 -0
- package/lib-es/helpers/update-childrens-parent.js.map +1 -0
- package/lib-es/hooks/helpers/RenderComponent.js +80 -0
- package/lib-es/hooks/helpers/RenderComponent.js.map +1 -0
- package/lib-es/hooks/helpers/StoreImages.js +56 -0
- package/lib-es/hooks/helpers/StoreImages.js.map +1 -0
- package/lib-es/hooks/helpers/append-gtm-classname.js +38 -0
- package/lib-es/hooks/helpers/append-gtm-classname.js.map +1 -0
- package/lib-es/hooks/helpers/buildPBComponents.js +88 -0
- package/lib-es/hooks/helpers/buildPBComponents.js.map +1 -0
- package/lib-es/hooks/helpers/check-banner-insertion-set.js +17 -0
- package/lib-es/hooks/helpers/check-banner-insertion-set.js.map +1 -0
- package/lib-es/hooks/helpers/check-collisions.js +30 -0
- package/lib-es/hooks/helpers/check-collisions.js.map +1 -0
- package/lib-es/hooks/helpers/constants.js +6 -0
- package/lib-es/hooks/helpers/constants.js.map +1 -0
- package/lib-es/hooks/helpers/get-banner-index.js +3 -0
- package/lib-es/hooks/helpers/get-banner-index.js.map +1 -0
- package/lib-es/hooks/helpers/get-components-to-insert-by-type.js +27 -0
- package/lib-es/hooks/helpers/get-components-to-insert-by-type.js.map +1 -0
- package/lib-es/hooks/helpers/get-lightbox-images.js +40 -0
- package/lib-es/hooks/helpers/get-lightbox-images.js.map +1 -0
- package/lib-es/hooks/helpers/getComponent.js +5 -0
- package/lib-es/hooks/helpers/getComponent.js.map +1 -0
- package/lib-es/hooks/helpers/getVariant.js +14 -0
- package/lib-es/hooks/helpers/getVariant.js.map +1 -0
- package/lib-es/hooks/helpers/index.js +3 -0
- package/lib-es/hooks/helpers/index.js.map +1 -0
- package/lib-es/hooks/helpers/inject-element-components.js +59 -0
- package/lib-es/hooks/helpers/inject-element-components.js.map +1 -0
- package/lib-es/hooks/helpers/inject-textblock-banners.js +95 -0
- package/lib-es/hooks/helpers/inject-textblock-banners.js.map +1 -0
- package/lib-es/hooks/helpers/insert-banners.js +83 -0
- package/lib-es/hooks/helpers/insert-banners.js.map +1 -0
- package/lib-es/hooks/helpers/update-targetings.js +15 -0
- package/lib-es/hooks/helpers/update-targetings.js.map +1 -0
- package/lib-es/hooks/index.js +12 -0
- package/lib-es/hooks/index.js.map +1 -0
- package/lib-es/hooks/use-app-sync-event-hook.js +37 -0
- package/lib-es/hooks/use-app-sync-event-hook.js.map +1 -0
- package/lib-es/hooks/use-banner-insertion.js +22 -0
- package/lib-es/hooks/use-banner-insertion.js.map +1 -0
- package/lib-es/hooks/use-check-mobile-screen.js +29 -0
- package/lib-es/hooks/use-check-mobile-screen.js.map +1 -0
- package/lib-es/hooks/use-filter-aggregation-values.js +31 -0
- package/lib-es/hooks/use-filter-aggregation-values.js.map +1 -0
- package/lib-es/hooks/use-get-entity-schema.js +39 -0
- package/lib-es/hooks/use-get-entity-schema.js.map +1 -0
- package/lib-es/hooks/use-get-entity-schemas-as-obj.js +13 -0
- package/lib-es/hooks/use-get-entity-schemas-as-obj.js.map +1 -0
- package/lib-es/hooks/use-get-image-id-from-relation.js +37 -0
- package/lib-es/hooks/use-get-image-id-from-relation.js.map +1 -0
- package/lib-es/hooks/use-get-images.js +37 -0
- package/lib-es/hooks/use-get-images.js.map +1 -0
- package/lib-es/hooks/use-get-single-entity-schema.js +21 -0
- package/lib-es/hooks/use-get-single-entity-schema.js.map +1 -0
- package/lib-es/hooks/use-page-builder.js +17 -0
- package/lib-es/hooks/use-page-builder.js.map +1 -0
- package/lib-es/hooks/use-portal.js +14 -0
- package/lib-es/hooks/use-portal.js.map +1 -0
- package/lib-es/index.js +17 -0
- package/lib-es/index.js.map +1 -0
- package/lib-es/system-components/EditorMode/BlazeLogo.js +67 -0
- package/lib-es/system-components/EditorMode/BlazeLogo.js.map +1 -0
- package/lib-es/system-components/EditorMode/PbWrapper.js +34 -0
- package/lib-es/system-components/EditorMode/PbWrapper.js.map +1 -0
- package/lib-es/system-components/EditorMode/constants.js +3 -0
- package/lib-es/system-components/EditorMode/constants.js.map +1 -0
- package/lib-es/system-components/EditorMode/helpers/add-editor-mode-event-listeners.js +93 -0
- package/lib-es/system-components/EditorMode/helpers/add-editor-mode-event-listeners.js.map +1 -0
- package/lib-es/system-components/EditorMode/helpers/check-is-over-blaze-icon.js +19 -0
- package/lib-es/system-components/EditorMode/helpers/check-is-over-blaze-icon.js.map +1 -0
- package/lib-es/system-components/index.js +3 -0
- package/lib-es/system-components/index.js.map +1 -0
- package/lib-es/translations.js +37 -0
- package/lib-es/translations.js.map +1 -0
- package/lib-es/utils/component-map.js +30 -0
- package/lib-es/utils/component-map.js.map +1 -0
- package/lib-es/utils/get-class-modifiers.js +81 -0
- package/lib-es/utils/get-class-modifiers.js.map +1 -0
- package/lib-es/utils/get-image-data.js +16 -0
- package/lib-es/utils/get-image-data.js.map +1 -0
- package/lib-es/utils/get-props-to-display-modifiers.js +5 -0
- package/lib-es/utils/get-props-to-display-modifiers.js.map +1 -0
- package/lib-es/utils/index.js +8 -0
- package/lib-es/utils/index.js.map +1 -0
- package/lib-es/utils/is-object-empty.js +4 -0
- package/lib-es/utils/is-object-empty.js.map +1 -0
- package/lib-es/utils/variant-handler.js +27 -0
- package/lib-es/utils/variant-handler.js.map +1 -0
- package/lib-es/variants/FloatingSideButton/index.js +10 -0
- package/lib-es/variants/FloatingSideButton/index.js.map +1 -0
- package/lib-es/variants/HeroImage/index.js +10 -0
- package/lib-es/variants/HeroImage/index.js.map +1 -0
- package/lib-es/variants/Infographic/Infographic.js +16 -0
- package/lib-es/variants/Infographic/Infographic.js.map +1 -0
- package/lib-es/variants/Infographic/index.js +10 -0
- package/lib-es/variants/Infographic/index.js.map +1 -0
- package/lib-es/variants/Infographic/useInfographic.js +23 -0
- package/lib-es/variants/Infographic/useInfographic.js.map +1 -0
- package/lib-es/variants/LiveBlogList/LiveBlogList.js +80 -0
- package/lib-es/variants/LiveBlogList/LiveBlogList.js.map +1 -0
- package/lib-es/variants/LiveBlogList/index.js +12 -0
- package/lib-es/variants/LiveBlogList/index.js.map +1 -0
- package/lib-es/variants/LongformGallery/LongformGallery.js +40 -0
- package/lib-es/variants/LongformGallery/LongformGallery.js.map +1 -0
- package/lib-es/variants/LongformGallery/LongformGalleryImage.js +59 -0
- package/lib-es/variants/LongformGallery/LongformGalleryImage.js.map +1 -0
- package/lib-es/variants/LongformGallery/constants.js +18 -0
- package/lib-es/variants/LongformGallery/constants.js.map +1 -0
- package/lib-es/variants/LongformGallery/helpers/index.js +5 -0
- package/lib-es/variants/LongformGallery/helpers/index.js.map +1 -0
- package/lib-es/variants/LongformGallery/helpers/parseImageData.js +26 -0
- package/lib-es/variants/LongformGallery/helpers/parseImageData.js.map +1 -0
- package/lib-es/variants/LongformGallery/helpers/separateImages.js +25 -0
- package/lib-es/variants/LongformGallery/helpers/separateImages.js.map +1 -0
- package/lib-es/variants/LongformGallery/helpers/shouldSkip.js +3 -0
- package/lib-es/variants/LongformGallery/helpers/shouldSkip.js.map +1 -0
- package/lib-es/variants/LongformGallery/index.js +12 -0
- package/lib-es/variants/LongformGallery/index.js.map +1 -0
- package/lib-es/variants/LongformGallery/useLongformGallery.js +47 -0
- package/lib-es/variants/LongformGallery/useLongformGallery.js.map +1 -0
- package/lib-es/variants/LongformRow/index.js +10 -0
- package/lib-es/variants/LongformRow/index.js.map +1 -0
- package/lib-es/variants/ParallaxImageTextRight/index.js +11 -0
- package/lib-es/variants/ParallaxImageTextRight/index.js.map +1 -0
- package/lib-es/variants/SlideSummary/SlideSummary.js +23 -0
- package/lib-es/variants/SlideSummary/SlideSummary.js.map +1 -0
- package/lib-es/variants/SlideSummary/index.js +10 -0
- package/lib-es/variants/SlideSummary/index.js.map +1 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailCarousel.js +49 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailCarousel.js.map +1 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/ThumbnailImage.js +30 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/ThumbnailImage.js.map +1 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/index.js +3 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/index.js.map +1 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/useThumbnailImage.js +62 -0
- package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/useThumbnailImage.js.map +1 -0
- package/lib-es/variants/ThumbnailCarousel/index.js +10 -0
- package/lib-es/variants/ThumbnailCarousel/index.js.map +1 -0
- package/lib-es/variants/ThumbnailCarousel/useThumbnailCarousel.js +47 -0
- package/lib-es/variants/ThumbnailCarousel/useThumbnailCarousel.js.map +1 -0
- package/lib-es/variants/index.js +21 -0
- package/lib-es/variants/index.js.map +1 -0
- package/package.json +11 -10
- package/src/components/Menu/Menu.js +1 -3
- package/src/components/Menu/MenuContext.js +1 -1
- package/src/components/MenuItem/MenuItemRender.js +12 -40
- package/src/components/MenuItem/helpers/index.js +1 -3
- package/tests/unit/src/components/MenuItem/MenuItem.test.js +0 -5
- package/tests/unit/src/components/MenuItem/MenuItemRender.test.js +3 -11
- package/lib/components/MenuItem/helpers/has-active-child.js +0 -19
- package/lib/components/MenuItem/helpers/has-active-child.js.map +0 -1
- package/lib/components/MenuItem/helpers/isUrlPathMatch.js +0 -18
- package/lib/components/MenuItem/helpers/isUrlPathMatch.js.map +0 -1
- package/src/components/MenuItem/helpers/has-active-child.js +0 -10
- package/src/components/MenuItem/helpers/isUrlPathMatch.js +0 -10
- package/tests/unit/src/components/MenuItem/helpers/constants.js +0 -73
- package/tests/unit/src/components/MenuItem/helpers/has-active-child.test.js +0 -35
- package/tests/unit/src/components/MenuItem/helpers/is-url-path-match.test.js +0 -53
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["BOLD_TAG","BUTTON","CODE","BUTTON_ICON","ICON_BUTTON","AND","OR","AND_OPERATOR","OR_OPERATOR","TEXT_SEARCH","INFINITE","CLASSIC","SEARCH_PUBLISHED_CONTENT","SEARCH","SEARCH_TERM","RANGE","CHECKBOX","ELEMENT","MENU_ITEM","SUB_MENU","SELECT","ON_CLICK","KEYWORD","DEFAULT_LIMIT","DEFAULT_OFFSET","MOBILE_WIDTH","FEATURED","SPONSORED","STRING","OBJECT","DATE","FULL","CHILD_PROPS_TO_USE","CATEGORY_ID","PUBLISHED","ID","LINK","LOGOUT","GRAPH_QL_ERROR","PRIORITY_HIGH","HOVER","MOUSE_ENTER","MOUSE_LEAVE","CLICK","HIDE","SHOW","VISIBLE","INVISIBLE","HIDDEN","CLASS_MODIFIERS","MODIFIER","GTM_CLASS_NAME","DESKTOP","DEFAULT","TABLET","MOBILE","SIZE","BUTTON_TYPE","ICON","STYLE","WIDTH","STICKY","ALIGNMENT","PARALLAX","CAROUSEL","IMAGE","IMAGES","IMAGE_WRAPPER","END_ADUNIT","COUNT_CONTENT_HIERARCHIES","GET_BANNER","WIDTH_HEIGHT","BANNER_QUERY_PROPS","WAYPOINT_BOTTOM_OFFSET","IN_VIEW_CONFIG","once","offset","bottomOffset","HERO","HERO_WRAPPER","GET_FILE_FALLBACK","getFile","url","data","WITH_BANNER","BLANK_SPACE_UNICODE_STRING","ALL","COLUMN","ROW","GTM","GTM_DATA_ID_ATTR","CENTER","HALF","WIDE","DESK","PAGINATION_QUERY_CONST","AZ_QUERY_CONST","PB_QUERY_CONST","NEXT_STRING","PREVIOUS_STRING","LOAD_MORE_STRING","LOAD_MORE","PAGINATION_DISPLAY_LIMIT","PAGINATION_DIFFERENCE","PROPS_TO_CHECK","JW_PLAYER_TYPE_FILE","VIDEO_WRAPPER_CLASS_NAME","VIMEO_OEMBED_URL","BREAKPOINT_SIZES","sm","md","lg","xl","xxl","MAX_BANNER_HEIGHT","MIN_BANNER_HEIGHT","ALLOWED_BLOCK_TYPES","PREHEADER_PROP","HEADLINE_PROP","AZ","AZ_DEFAULT_PROP","BANNER_LOADING","BANNER_EMPTY","BANNER_LOADED","ANCHOR_TAG","TARGET_BLANK","DATA_SUMMARY_EMAIL_REGEX","DATA_SUMMARY_URL_REGEX","DATA_SUMMARY_TEL_REGEX","process","env","BLAZE_PB_SEARCH_FILETER_AGG_SIZE","TRANSLATION_NAMESPACE","COMPONENT_ID_PREFIX"],"sources":["../../src/constants/index.js"],"sourcesContent":["const BOLD_TAG = 'b';\nconst BUTTON = 'button';\nconst CODE = 'code';\nconst BUTTON_ICON = 'button--icon';\nconst ICON_BUTTON = 'icon-button';\nconst AND = 'AND';\nconst OR = 'OR';\nconst AND_OPERATOR = 'must';\nconst OR_OPERATOR = 'should';\nconst TEXT_SEARCH = 'text-search';\nconst INFINITE = 'infinite';\nconst CLASSIC = 'classic';\nconst SEARCH_PUBLISHED_CONTENT = 'searchPublishedContent';\nconst SEARCH = 'search';\nconst SEARCH_TERM = 'search_term';\nconst RANGE = 'range';\nconst CHECKBOX = 'checkbox';\nconst ELEMENT = 'element';\nconst MENU_ITEM = 'menuitem';\nconst SUB_MENU = 'submenu';\nconst SELECT = 'select';\nconst ON_CLICK = 'onClick';\nconst KEYWORD = 'keyword';\nconst DEFAULT_LIMIT = 50;\nconst DEFAULT_OFFSET = 0;\nconst MOBILE_WIDTH = 768;\nconst FEATURED = 'featured';\nconst SPONSORED = 'sponsored';\nconst STRING = 'string';\nconst OBJECT = 'object';\nconst DATE = 'date';\nconst FULL = 'full';\nconst CHILD_PROPS_TO_USE = ['width'];\nconst CATEGORY_ID = 'categoryId';\nconst PUBLISHED = 'published';\nconst ID = 'id';\nconst LINK = 'link';\nconst LOGOUT = 'logout';\nconst GRAPH_QL_ERROR = 'GraphQL error: ';\nconst PRIORITY_HIGH = 'high';\nconst HOVER = 'hover';\nconst MOUSE_ENTER = 'mouseenter';\nconst MOUSE_LEAVE = 'mouseleave';\nconst CLICK = 'click';\nconst HIDE = 'hide';\nconst SHOW = 'show';\nconst VISIBLE = 'visible';\nconst INVISIBLE = 'invisible';\nconst HIDDEN = 'hidden';\nconst CLASS_MODIFIERS = {\n MODIFIER: 'modifier',\n GTM_CLASS_NAME: 'gtmClassName',\n HIDE: 'hide',\n DESKTOP: 'desktop',\n DEFAULT: 'default',\n TABLET: 'tablet',\n MOBILE: 'mobile',\n SIZE: 'size',\n BUTTON_TYPE: 'buttonType',\n ICON: 'icon',\n STYLE: 'style',\n WIDTH: 'width',\n STICKY: 'sticky',\n ALIGNMENT: 'alignment',\n PARALLAX: 'parallax'\n};\nconst CAROUSEL = 'carousel';\nconst IMAGE = 'image';\nconst IMAGES = `${IMAGE}s`;\nconst IMAGE_WRAPPER = 'image__wrapper';\nconst END_ADUNIT = 'root';\nconst COUNT_CONTENT_HIERARCHIES = 'countContentHierarchies';\nconst GET_BANNER = 'getBanner';\nconst WIDTH_HEIGHT = 'width height';\nconst BANNER_QUERY_PROPS = `sizes { ${WIDTH_HEIGHT} viewports { ${WIDTH_HEIGHT} } }`;\nconst WAYPOINT_BOTTOM_OFFSET = '-200px';\nconst IN_VIEW_CONFIG = {\n once: true,\n offset: '200px',\n bottomOffset: '-200px'\n};\nconst HERO = 'hero';\nconst HERO_WRAPPER = 'hero__wrapper';\n\nconst GET_FILE_FALLBACK = {\n getFile: { url: '', data: {} }\n};\n\nconst WITH_BANNER = ' with-banner';\nconst BLANK_SPACE_UNICODE_STRING = '\\u00A0';\nconst ALL = 'ALL';\nconst COLUMN = 'column';\nconst ROW = 'row';\nconst GTM = 'gtm';\nconst GTM_DATA_ID_ATTR = 'data-gtm-id';\nconst CENTER = 'center';\nconst HALF = 'half';\nconst WIDE = 'wide';\nconst DESK = 'desk';\nconst TABLET = 'tablet';\nconst MOBILE = 'mobile';\nconst ALIGNMENT = 'alignment';\nconst PAGINATION_QUERY_CONST = '[page]';\nconst AZ_QUERY_CONST = '[aZ]';\nconst PB_QUERY_CONST = 'pb';\nconst NEXT_STRING = 'Next';\nconst PREVIOUS_STRING = 'Previous';\nconst LOAD_MORE_STRING = 'Load More';\nconst LOAD_MORE = 'loadMore';\nconst PAGINATION_DISPLAY_LIMIT = 10;\nconst PAGINATION_DIFFERENCE = 5;\n\nconst PROPS_TO_CHECK = [\n ['altText', 'alt'],\n ['caption', 'caption'],\n ['hrefUrl', 'hrefUrl'],\n ['credits', 'credits']\n];\n\nconst JW_PLAYER_TYPE_FILE = 'file';\nconst VIDEO_WRAPPER_CLASS_NAME = 'video__wrapper';\nconst VIMEO_OEMBED_URL = 'https://vimeo.com/api/oembed.json';\nconst BREAKPOINT_SIZES = {\n sm: 'sm',\n md: 'md',\n lg: 'lg',\n xl: 'xl',\n xxl: '2xl'\n};\n\nconst MAX_BANNER_HEIGHT = 250;\nconst MIN_BANNER_HEIGHT = 90;\nconst ALLOWED_BLOCK_TYPES = ['p', 'ul', 'ol'];\n\nconst PREHEADER_PROP = 'alternativePreHeader';\nconst HEADLINE_PROP = 'alternativeHeadline';\nconst AZ = [\n 'A',\n 'B',\n 'C',\n 'D',\n 'E',\n 'F',\n 'G',\n 'H',\n 'I',\n 'J',\n 'K',\n 'L',\n 'M',\n 'N',\n 'O',\n 'P',\n 'Q',\n 'R',\n 'S',\n 'T',\n 'U',\n 'V',\n 'W',\n 'X',\n 'Y',\n 'Z'\n];\n\nconst AZ_DEFAULT_PROP = 'name';\n\nconst BANNER_LOADING = 'loading';\nconst BANNER_EMPTY = 'empty';\nconst BANNER_LOADED = 'loaded';\nconst ANCHOR_TAG = 'a';\nconst TARGET_BLANK = '_blank';\n\nconst DATA_SUMMARY_EMAIL_REGEX = /^([a-z0-9_\\.\\+-]+)@([\\da-z\\.-]+)\\.([a-z\\.]{2,6})$/;\nconst DATA_SUMMARY_URL_REGEX =\n /(https?:\\/\\/)?(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%_\\+.~#?&//=]*)/;\nconst DATA_SUMMARY_TEL_REGEX = /^\\+{0,1}[0-9\\(\\)\\.\\- \\/]{7,}$/; // note: very loose phone number match not for validation\nconst SIZE = process.env.BLAZE_PB_SEARCH_FILETER_AGG_SIZE || 500;\n\nconst TRANSLATION_NAMESPACE = 'page-builder-fe';\nconst COMPONENT_ID_PREFIX = 'pb-';\n\nexport {\n BANNER_LOADING,\n BANNER_EMPTY,\n BANNER_LOADED,\n BLANK_SPACE_UNICODE_STRING,\n BOLD_TAG,\n BUTTON,\n BUTTON_ICON,\n ICON_BUTTON,\n AND,\n AND_OPERATOR,\n OR_OPERATOR,\n TEXT_SEARCH,\n SEARCH_PUBLISHED_CONTENT,\n SEARCH,\n SEARCH_TERM,\n RANGE,\n CHECKBOX,\n SELECT,\n KEYWORD,\n OR,\n DEFAULT_LIMIT,\n DEFAULT_OFFSET,\n FEATURED,\n SPONSORED,\n STRING,\n DATE,\n FULL,\n CHILD_PROPS_TO_USE,\n CATEGORY_ID,\n PUBLISHED,\n ID,\n LINK,\n CLASS_MODIFIERS,\n END_ADUNIT,\n COUNT_CONTENT_HIERARCHIES,\n GET_BANNER,\n BANNER_QUERY_PROPS,\n CAROUSEL,\n IMAGE,\n IMAGES,\n IMAGE_WRAPPER,\n IN_VIEW_CONFIG,\n GET_FILE_FALLBACK,\n HERO,\n HERO_WRAPPER,\n WITH_BANNER,\n ALL,\n COLUMN,\n ROW,\n GTM,\n GTM_DATA_ID_ATTR,\n PROPS_TO_CHECK,\n CENTER,\n HALF,\n WIDE,\n DESK,\n TABLET,\n MOBILE,\n ALIGNMENT,\n OBJECT,\n ON_CLICK,\n WAYPOINT_BOTTOM_OFFSET,\n JW_PLAYER_TYPE_FILE,\n CODE,\n VIDEO_WRAPPER_CLASS_NAME,\n PAGINATION_QUERY_CONST,\n PB_QUERY_CONST,\n INFINITE,\n NEXT_STRING,\n PREVIOUS_STRING,\n PAGINATION_DISPLAY_LIMIT,\n PAGINATION_DIFFERENCE,\n LOAD_MORE_STRING,\n LOAD_MORE,\n CLASSIC,\n BREAKPOINT_SIZES,\n LOGOUT,\n MIN_BANNER_HEIGHT,\n MAX_BANNER_HEIGHT,\n GRAPH_QL_ERROR,\n PRIORITY_HIGH,\n HOVER,\n MOUSE_ENTER,\n MOUSE_LEAVE,\n CLICK,\n SHOW,\n HIDE,\n VISIBLE,\n INVISIBLE,\n MOBILE_WIDTH,\n HIDDEN,\n MENU_ITEM,\n SUB_MENU,\n ELEMENT,\n ALLOW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jB5E,cAAc,EACdC,aAAa,EACbC,KAAK,EACLC,WAAW,EACXC,WAAW,EACXC,KAAK,EACLE,IAAI,EACJD,IAAI,EACJE,OAAO,EACPC,SAAS,EACTtB,YAAY,EACZuB,MAAM,EACN9B,SAAS,EACTC,QAAQ,EACRF,OAAO,EACPmG,mBAAmB,EACnBC,cAAc,EACdC,aAAa,EACbtB,cAAc,EACdwB,eAAe,EACfD,EAAE,EACFK,UAAU,EACVC,YAAY,EACZC,wBAAwB,EACxBC,sBAAsB,EACtBC,sBAAsB,EACtBrB,gBAAgB,EAChBnD,IAAI,EACJ4E,qBAAqB,EACrBC,mBAAmB","ignoreList":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
const appendImages = (imagesData, cards, itemsToDisplay) => {
|
|
5
|
+
const {
|
|
6
|
+
getFiles
|
|
7
|
+
} = imagesData || {};
|
|
8
|
+
if (!getFiles || !cards || !itemsToDisplay) return cards;
|
|
9
|
+
return cards.map(card => {
|
|
10
|
+
const {
|
|
11
|
+
id
|
|
12
|
+
} = card;
|
|
13
|
+
const {
|
|
14
|
+
imageId
|
|
15
|
+
} = itemsToDisplay.find(({
|
|
16
|
+
displayItems
|
|
17
|
+
}) => displayItems[0] === id) || {};
|
|
18
|
+
const image = getFiles.find(({
|
|
19
|
+
id: fileId
|
|
20
|
+
}) => fileId === imageId);
|
|
21
|
+
if (!image) return card;
|
|
22
|
+
return _objectSpread(_objectSpread({}, card), {}, {
|
|
23
|
+
image
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
export default appendImages;
|
|
28
|
+
//# sourceMappingURL=append-images.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"append-images.js","names":["appendImages","imagesData","cards","itemsToDisplay","getFiles","map","card","id","imageId","find","displayItems","image","fileId","_objectSpread"],"sources":["../../src/helpers/append-images.js"],"sourcesContent":["const appendImages = (imagesData, cards, itemsToDisplay) => {\n const { getFiles } = imagesData || {};\n if (!getFiles || !cards || !itemsToDisplay) return cards;\n\n return cards.map(card => {\n const { id } = card;\n const { imageId } = itemsToDisplay.find(({ displayItems }) => displayItems[0] === id) || {};\n const image = getFiles.find(({ id: fileId }) => fileId === imageId);\n if (!image) return card;\n\n return { ...card, image };\n });\n};\n\nexport default appendImages;\n"],"mappings":";;;AAAA,MAAMA,YAAY,GAAGA,CAACC,UAAU,EAAEC,KAAK,EAAEC,cAAc,KAAK;EAC1D,MAAM;IAAEC;EAAS,CAAC,GAAGH,UAAU,IAAI,CAAC,CAAC;EACrC,IAAI,CAACG,QAAQ,IAAI,CAACF,KAAK,IAAI,CAACC,cAAc,EAAE,OAAOD,KAAK;EAExD,OAAOA,KAAK,CAACG,GAAG,CAACC,IAAI,IAAI;IACvB,MAAM;MAAEC;IAAG,CAAC,GAAGD,IAAI;IACnB,MAAM;MAAEE;IAAQ,CAAC,GAAGL,cAAc,CAACM,IAAI,CAAC,CAAC;MAAEC;IAAa,CAAC,KAAKA,YAAY,CAAC,CAAC,CAAC,KAAKH,EAAE,CAAC,IAAI,CAAC,CAAC;IAC3F,MAAMI,KAAK,GAAGP,QAAQ,CAACK,IAAI,CAAC,CAAC;MAAEF,EAAE,EAAEK;IAAO,CAAC,KAAKA,MAAM,KAAKJ,OAAO,CAAC;IACnE,IAAI,CAACG,KAAK,EAAE,OAAOL,IAAI;IAEvB,OAAAO,aAAA,CAAAA,aAAA,KAAYP,IAAI;MAAEK;IAAK;EACzB,CAAC,CAAC;AACJ,CAAC;AAED,eAAeX,YAAY","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const buildAzFilter = (azFilter, mustFilters, azSortProperty) => {
|
|
2
|
+
if (!azFilter) return;
|
|
3
|
+
const filterValue = azFilter === '0' ? '[^a-zA-Z]' : azFilter;
|
|
4
|
+
const azSortProp = `${azSortProperty}.keyword`;
|
|
5
|
+
const azQuery = {
|
|
6
|
+
regexp: {
|
|
7
|
+
[azSortProp]: {
|
|
8
|
+
value: `${filterValue}.*`,
|
|
9
|
+
case_insensitive: true
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
mustFilters.push(azQuery);
|
|
14
|
+
};
|
|
15
|
+
export default buildAzFilter;
|
|
16
|
+
//# sourceMappingURL=build-az-filter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-az-filter.js","names":["buildAzFilter","azFilter","mustFilters","azSortProperty","filterValue","azSortProp","azQuery","regexp","value","case_insensitive","push"],"sources":["../../src/helpers/build-az-filter.js"],"sourcesContent":["const buildAzFilter = (azFilter, mustFilters, azSortProperty) => {\n if (!azFilter) return;\n const filterValue = azFilter === '0' ? '[^a-zA-Z]' : azFilter;\n const azSortProp = `${azSortProperty}.keyword`;\n const azQuery = {\n regexp: {\n [azSortProp]: {\n value: `${filterValue}.*`,\n case_insensitive: true\n }\n }\n };\n mustFilters.push(azQuery);\n};\n\nexport default buildAzFilter;\n"],"mappings":"AAAA,MAAMA,aAAa,GAAGA,CAACC,QAAQ,EAAEC,WAAW,EAAEC,cAAc,KAAK;EAC/D,IAAI,CAACF,QAAQ,EAAE;EACf,MAAMG,WAAW,GAAGH,QAAQ,KAAK,GAAG,GAAG,WAAW,GAAGA,QAAQ;EAC7D,MAAMI,UAAU,GAAG,GAAGF,cAAc,UAAU;EAC9C,MAAMG,OAAO,GAAG;IACdC,MAAM,EAAE;MACN,CAACF,UAAU,GAAG;QACZG,KAAK,EAAE,GAAGJ,WAAW,IAAI;QACzBK,gBAAgB,EAAE;MACpB;IACF;EACF,CAAC;EACDP,WAAW,CAACQ,IAAI,CAACJ,OAAO,CAAC;AAC3B,CAAC;AAED,eAAeN,aAAa","ignoreList":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const getFilterValue = value => {
|
|
2
|
+
// To be updated with future filter options
|
|
3
|
+
switch (value) {
|
|
4
|
+
case 'not':
|
|
5
|
+
return false;
|
|
6
|
+
case 'on':
|
|
7
|
+
return true;
|
|
8
|
+
default:
|
|
9
|
+
return true;
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
const buildCheckboxFilters = checkboxFilters => checkboxFilters.reduce((acc, checkboxFilter) => {
|
|
13
|
+
if (typeof checkboxFilter === 'string') acc.push({
|
|
14
|
+
match: {
|
|
15
|
+
[checkboxFilter]: true
|
|
16
|
+
}
|
|
17
|
+
});else {
|
|
18
|
+
const filterValue = getFilterValue(checkboxFilter[1]);
|
|
19
|
+
acc.push({
|
|
20
|
+
match: {
|
|
21
|
+
[checkboxFilter[0]]: filterValue
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
return acc;
|
|
26
|
+
}, []);
|
|
27
|
+
export default buildCheckboxFilters;
|
|
28
|
+
//# sourceMappingURL=build-checkbox-filters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-checkbox-filters.js","names":["getFilterValue","value","buildCheckboxFilters","checkboxFilters","reduce","acc","checkboxFilter","push","match","filterValue"],"sources":["../../src/helpers/build-checkbox-filters.js"],"sourcesContent":["const getFilterValue = value => {\n // To be updated with future filter options\n switch (value) {\n case 'not':\n return false;\n case 'on':\n return true;\n default:\n return true;\n }\n};\n\nconst buildCheckboxFilters = checkboxFilters =>\n checkboxFilters.reduce((acc, checkboxFilter) => {\n if (typeof checkboxFilter === 'string') acc.push({ match: { [checkboxFilter]: true } });\n else {\n const filterValue = getFilterValue(checkboxFilter[1]);\n acc.push({ match: { [checkboxFilter[0]]: filterValue } });\n }\n return acc;\n }, []);\n\nexport default buildCheckboxFilters;\n"],"mappings":"AAAA,MAAMA,cAAc,GAAGC,KAAK,IAAI;EAC9B;EACA,QAAQA,KAAK;IACX,KAAK,KAAK;MACR,OAAO,KAAK;IACd,KAAK,IAAI;MACP,OAAO,IAAI;IACb;MACE,OAAO,IAAI;EACf;AACF,CAAC;AAED,MAAMC,oBAAoB,GAAGC,eAAe,IAC1CA,eAAe,CAACC,MAAM,CAAC,CAACC,GAAG,EAAEC,cAAc,KAAK;EAC9C,IAAI,OAAOA,cAAc,KAAK,QAAQ,EAAED,GAAG,CAACE,IAAI,CAAC;IAAEC,KAAK,EAAE;MAAE,CAACF,cAAc,GAAG;IAAK;EAAE,CAAC,CAAC,CAAC,KACnF;IACH,MAAMG,WAAW,GAAGT,cAAc,CAACM,cAAc,CAAC,CAAC,CAAC,CAAC;IACrDD,GAAG,CAACE,IAAI,CAAC;MAAEC,KAAK,EAAE;QAAE,CAACF,cAAc,CAAC,CAAC,CAAC,GAAGG;MAAY;IAAE,CAAC,CAAC;EAC3D;EACA,OAAOJ,GAAG;AACZ,CAAC,EAAE,EAAE,CAAC;AAER,eAAeH,oBAAoB","ignoreList":[]}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
const QUERY_KEYS_TO_IGNORE = ['dataNotSet', 'shouldSearch', 'search_term'];
|
|
2
|
+
const builFilterObject = ({
|
|
3
|
+
queryKey,
|
|
4
|
+
value,
|
|
5
|
+
filters,
|
|
6
|
+
isRange,
|
|
7
|
+
isInQuery
|
|
8
|
+
}) => {
|
|
9
|
+
if (isRange) {
|
|
10
|
+
// don't add to query if value matches range values
|
|
11
|
+
if (isInQuery || value.min !== value.minValue && value.max !== value.maxValue) {
|
|
12
|
+
filters.push({
|
|
13
|
+
range: {
|
|
14
|
+
[queryKey]: {
|
|
15
|
+
gte: Number(value.minValue),
|
|
16
|
+
lte: Number(value.maxValue)
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
const key = isRange ? queryKey : `${queryKey}.keyword`;
|
|
24
|
+
const isArray = Array.isArray(value);
|
|
25
|
+
if (!isArray) {
|
|
26
|
+
const singleFilterObj = {
|
|
27
|
+
match: {
|
|
28
|
+
[key]: value
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
filters.push(singleFilterObj);
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
value.forEach(filterValue => {
|
|
35
|
+
filters.push({
|
|
36
|
+
match: {
|
|
37
|
+
[key]: filterValue
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
const buildFiltersQuery = ({
|
|
43
|
+
shouldAddFilters,
|
|
44
|
+
filterBy,
|
|
45
|
+
filterByProperty,
|
|
46
|
+
rangeValues,
|
|
47
|
+
queryKeys,
|
|
48
|
+
query
|
|
49
|
+
}) => {
|
|
50
|
+
const mustFilters = [];
|
|
51
|
+
if (shouldAddFilters && query) {
|
|
52
|
+
Object.keys(query).forEach(queryKey => {
|
|
53
|
+
if (QUERY_KEYS_TO_IGNORE.includes(queryKey)) return;
|
|
54
|
+
if (!queryKey || !query[queryKey]) return;
|
|
55
|
+
const queryValue = query[queryKey];
|
|
56
|
+
const isRange = rangeValues.includes(queryKey);
|
|
57
|
+
const isInQuery = queryKeys.includes(queryKey);
|
|
58
|
+
builFilterObject({
|
|
59
|
+
queryKey,
|
|
60
|
+
value: queryValue,
|
|
61
|
+
filters: mustFilters,
|
|
62
|
+
isRange,
|
|
63
|
+
isInQuery
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
if (filterByProperty && filterByProperty.length) {
|
|
68
|
+
filterByProperty.forEach(filterByPropOption => {
|
|
69
|
+
const [filterByPropKey] = filterByPropOption.split('/');
|
|
70
|
+
filterBy.forEach(filterByOption => {
|
|
71
|
+
if (filterByOption.indexOf(filterByPropKey) === -1) return;
|
|
72
|
+
const [, filteryByValue] = filterByOption.split('/');
|
|
73
|
+
const filterByKeyword = `${filterByPropKey}.keyword`;
|
|
74
|
+
if (!filteryByValue) return;
|
|
75
|
+
mustFilters.push({
|
|
76
|
+
match: {
|
|
77
|
+
[filterByKeyword]: filteryByValue
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
return mustFilters;
|
|
84
|
+
};
|
|
85
|
+
export default buildFiltersQuery;
|
|
86
|
+
//# sourceMappingURL=build-filters-query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-filters-query.js","names":["QUERY_KEYS_TO_IGNORE","builFilterObject","queryKey","value","filters","isRange","isInQuery","min","minValue","max","maxValue","push","range","gte","Number","lte","key","isArray","Array","singleFilterObj","match","forEach","filterValue","buildFiltersQuery","shouldAddFilters","filterBy","filterByProperty","rangeValues","queryKeys","query","mustFilters","Object","keys","includes","queryValue","length","filterByPropOption","filterByPropKey","split","filterByOption","indexOf","filteryByValue","filterByKeyword"],"sources":["../../src/helpers/build-filters-query.js"],"sourcesContent":["const QUERY_KEYS_TO_IGNORE = ['dataNotSet', 'shouldSearch', 'search_term'];\n\nconst builFilterObject = ({ queryKey, value, filters, isRange, isInQuery }) => {\n if (isRange) {\n // don't add to query if value matches range values\n if (isInQuery || (value.min !== value.minValue && value.max !== value.maxValue)) {\n filters.push({\n range: {\n [queryKey]: {\n gte: Number(value.minValue),\n lte: Number(value.maxValue)\n }\n }\n });\n }\n return;\n }\n\n const key = isRange ? queryKey : `${queryKey}.keyword`;\n\n const isArray = Array.isArray(value);\n if (!isArray) {\n const singleFilterObj = { match: { [key]: value } };\n filters.push(singleFilterObj);\n return;\n }\n\n value.forEach(filterValue => {\n filters.push({ match: { [key]: filterValue } });\n });\n};\n\nconst buildFiltersQuery = ({\n shouldAddFilters,\n filterBy,\n filterByProperty,\n rangeValues,\n queryKeys,\n query\n}) => {\n const mustFilters = [];\n if (shouldAddFilters && query) {\n Object.keys(query).forEach(queryKey => {\n if (QUERY_KEYS_TO_IGNORE.includes(queryKey)) return;\n if (!queryKey || !query[queryKey]) return;\n const queryValue = query[queryKey];\n\n const isRange = rangeValues.includes(queryKey);\n const isInQuery = queryKeys.includes(queryKey);\n builFilterObject({ queryKey, value: queryValue, filters: mustFilters, isRange, isInQuery });\n });\n }\n\n if (filterByProperty && filterByProperty.length) {\n filterByProperty.forEach(filterByPropOption => {\n const [filterByPropKey] = filterByPropOption.split('/');\n filterBy.forEach(filterByOption => {\n if (filterByOption.indexOf(filterByPropKey) === -1) return;\n const [, filteryByValue] = filterByOption.split('/');\n const filterByKeyword = `${filterByPropKey}.keyword`;\n if (!filteryByValue) return;\n mustFilters.push({ match: { [filterByKeyword]: filteryByValue } });\n });\n });\n }\n\n return mustFilters;\n};\n\nexport default buildFiltersQuery;\n"],"mappings":"AAAA,MAAMA,oBAAoB,GAAG,CAAC,YAAY,EAAE,cAAc,EAAE,aAAa,CAAC;AAE1E,MAAMC,gBAAgB,GAAGA,CAAC;EAAEC,QAAQ;EAAEC,KAAK;EAAEC,OAAO;EAAEC,OAAO;EAAEC;AAAU,CAAC,KAAK;EAC7E,IAAID,OAAO,EAAE;IACX;IACA,IAAIC,SAAS,IAAKH,KAAK,CAACI,GAAG,KAAKJ,KAAK,CAACK,QAAQ,IAAIL,KAAK,CAACM,GAAG,KAAKN,KAAK,CAACO,QAAS,EAAE;MAC/EN,OAAO,CAACO,IAAI,CAAC;QACXC,KAAK,EAAE;UACL,CAACV,QAAQ,GAAG;YACVW,GAAG,EAAEC,MAAM,CAACX,KAAK,C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C;QAAEC,QAAQ;QAAEC,KAAK,EAAE+B,UAAU;QAAE9B,OAAO,EAAE0B,WAAW;QAAEzB,OAAO;QAAEC;MAAU,CAAC,CAAC;IAC7F,CAAC,CAAC;EACJ;EAEA,IAAIoB,gBAAgB,IAAIA,gBAAgB,CAACS,MAAM,EAAE;IAC/CT,gBAAgB,CAACL,OAAO,CAACe,kBAAkB,IAAI;MAC7C,MAAM,CAACC,eAAe,CAAC,GAAGD,kBAAkB,CAACE,KAAK,CAAC,GAAG,CAAC;MACvDb,QAAQ,CAACJ,OAAO,CAACkB,cAAc,IAAI;QACjC,IAAIA,cAAc,CAACC,OAAO,CAACH,eAAe,CAAC,KAAK,CAAC,CAAC,EAAE;QACpD,MAAM,GAAGI,cAAc,CAAC,GAAGF,cAAc,CAACD,KAAK,CAAC,GAAG,CAAC;QACpD,MAAMI,eAAe,GAAG,GAAGL,eAAe,UAAU;QACpD,IAAI,CAACI,cAAc,EAAE;QACrBX,WAAW,CAACnB,IAAI,CAAC;UAAES,KAAK,EAAE;YAAE,CAACsB,eAAe,GAAGD;UAAe;QAAE,CAAC,CAAC;MACpE,CAAC,CAAC;IACJ,CAAC,CAAC;EACJ;EAEA,OAAOX,WAAW;AACpB,CAAC;AAED,eAAeP,iBAAiB","ignoreList":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import BlazeLink from '../components/BlazeLink';
|
|
2
|
+
import { HERO_WRAPPER, IMAGE_WRAPPER } from '../constants';
|
|
3
|
+
const buildImageProperties = ({
|
|
4
|
+
href,
|
|
5
|
+
name,
|
|
6
|
+
enableLightbox,
|
|
7
|
+
isHero = false
|
|
8
|
+
}) => {
|
|
9
|
+
const className = isHero ? HERO_WRAPPER : IMAGE_WRAPPER;
|
|
10
|
+
const urlProps = {
|
|
11
|
+
href,
|
|
12
|
+
title: name,
|
|
13
|
+
className,
|
|
14
|
+
isHero
|
|
15
|
+
};
|
|
16
|
+
const isLink = href && !enableLightbox;
|
|
17
|
+
const ImgWrapper = isLink ? BlazeLink : 'div';
|
|
18
|
+
const imgWrapperProps = isLink ? urlProps : {
|
|
19
|
+
className
|
|
20
|
+
};
|
|
21
|
+
const lightboxImgProps = href ? urlProps : {};
|
|
22
|
+
return {
|
|
23
|
+
ImgWrapper,
|
|
24
|
+
imgWrapperProps,
|
|
25
|
+
lightboxImgProps
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export default buildImageProperties;
|
|
29
|
+
//# sourceMappingURL=build-image-properties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-image-properties.js","names":["BlazeLink","HERO_WRAPPER","IMAGE_WRAPPER","buildImageProperties","href","name","enableLightbox","isHero","className","urlProps","title","isLink","ImgWrapper","imgWrapperProps","lightboxImgProps"],"sources":["../../src/helpers/build-image-properties.js"],"sourcesContent":["import BlazeLink from '../components/BlazeLink';\nimport { HERO_WRAPPER, IMAGE_WRAPPER } from '../constants';\n\nconst buildImageProperties = ({ href, name, enableLightbox, isHero = false }) => {\n const className = isHero ? HERO_WRAPPER : IMAGE_WRAPPER;\n const urlProps = { href, title: name, className, isHero };\n const isLink = href && !enableLightbox;\n const ImgWrapper = isLink ? BlazeLink : 'div';\n const imgWrapperProps = isLink ? urlProps : { className };\n const lightboxImgProps = href ? urlProps : {};\n\n return {\n ImgWrapper,\n imgWrapperProps,\n lightboxImgProps\n };\n};\n\nexport default buildImageProperties;\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,yBAAyB;AAC/C,SAASC,YAAY,EAAEC,aAAa,QAAQ,cAAc;AAE1D,MAAMC,oBAAoB,GAAGA,CAAC;EAAEC,IAAI;EAAEC,IAAI;EAAEC,cAAc;EAAEC,MAAM,GAAG;AAAM,CAAC,KAAK;EAC/E,MAAMC,SAAS,GAAGD,MAAM,GAAGN,YAAY,GAAGC,aAAa;EACvD,MAAMO,QAAQ,GAAG;IAAEL,IAAI;IAAEM,KAAK,EAAEL,IAAI;IAAEG,SAAS;IAAED;EAAO,CAAC;EACzD,MAAMI,MAAM,GAAGP,IAAI,IAAI,CAACE,cAAc;EACtC,MAAMM,UAAU,GAAGD,MAAM,GAAGX,SAAS,GAAG,KAAK;EAC7C,MAAMa,eAAe,GAAGF,MAAM,GAAGF,QAAQ,GAAG;IAAED;EAAU,CAAC;EACzD,MAAMM,gBAAgB,GAAGV,IAAI,GAAGK,QAAQ,GAAG,CAAC,CAAC;EAE7C,OAAO;IACLG,UAAU;IACVC,eAAe;IACfC;EACF,CAAC;AACH,CAAC;AAED,eAAeX,oBAAoB","ignoreList":[]}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import flatten from 'lodash.flatten';
|
|
2
|
+
import isFilterEntitysId from './is-filter-entitys-id';
|
|
3
|
+
import getFilterProps from './get-filter-props';
|
|
4
|
+
import { ID } from '../constants';
|
|
5
|
+
const getRelationData = (entityData, relationName, currentRelationNames) => {
|
|
6
|
+
if (!entityData) return null;
|
|
7
|
+
if (currentRelationNames && currentRelationNames.length) {
|
|
8
|
+
const arrayOfRelations = currentRelationNames.map(name => entityData[name]).filter(Boolean);
|
|
9
|
+
return arrayOfRelations.length ? flatten(arrayOfRelations) : null;
|
|
10
|
+
}
|
|
11
|
+
return entityData[relationName];
|
|
12
|
+
};
|
|
13
|
+
const checkIfArrayHasData = (isDataArray, relationData) => isDataArray && !!relationData.length;
|
|
14
|
+
const setFiltersNoRelation = (isDataArray, arrayHasData, relationData, relationName) => {
|
|
15
|
+
const filters = [];
|
|
16
|
+
if (arrayHasData) {
|
|
17
|
+
const filterValues = relationData.reduce((acc, relationValue) => {
|
|
18
|
+
if (relationValue && typeof relationValue !== 'object') acc.push(`${relationName}/${relationValue}`);
|
|
19
|
+
return acc;
|
|
20
|
+
}, []);
|
|
21
|
+
filters.push(...filterValues);
|
|
22
|
+
} else if (!isDataArray && typeof relationData !== 'object') {
|
|
23
|
+
filters.push(`${relationName}/${relationData}`);
|
|
24
|
+
}
|
|
25
|
+
return filters;
|
|
26
|
+
};
|
|
27
|
+
const buildInheritedFilters = (entityData, inheritedFilters, currentSchema, filterEntitySchema, itemId) => {
|
|
28
|
+
const relationFilters = [];
|
|
29
|
+
const {
|
|
30
|
+
identifier: currentEntityId
|
|
31
|
+
} = currentSchema;
|
|
32
|
+
inheritedFilters.forEach(filter => {
|
|
33
|
+
const {
|
|
34
|
+
filterName,
|
|
35
|
+
entityName,
|
|
36
|
+
relationName,
|
|
37
|
+
relationProp,
|
|
38
|
+
relationEntityName,
|
|
39
|
+
relationForeignKeys,
|
|
40
|
+
shouldIgnoreFilter
|
|
41
|
+
} = getFilterProps(filter, currentSchema, filterEntitySchema);
|
|
42
|
+
const relationData = getRelationData(entityData, relationName, relationForeignKeys);
|
|
43
|
+
if (currentEntityId === entityName && isFilterEntitysId(filterName, currentEntityId) || shouldIgnoreFilter) {
|
|
44
|
+
relationFilters.push(`${filterName}/${itemId}`);
|
|
45
|
+
}
|
|
46
|
+
if (!relationData) return;
|
|
47
|
+
const isDataArray = Array.isArray(relationData);
|
|
48
|
+
const arrayHasData = checkIfArrayHasData(isDataArray, relationData);
|
|
49
|
+
if (!relationEntityName) {
|
|
50
|
+
const filtersNoRelation = setFiltersNoRelation(isDataArray, arrayHasData, relationData, filterName === ID ? filterName : relationName);
|
|
51
|
+
relationFilters.push(...filtersNoRelation);
|
|
52
|
+
}
|
|
53
|
+
if (arrayHasData) {
|
|
54
|
+
const filterValues = relationData.reduce((acc, relationValue) => {
|
|
55
|
+
const filterNameToUse = filterName === ID ? 'ids' : filterName;
|
|
56
|
+
if (relationValue[relationProp]) acc.push(`${filterNameToUse}/${relationValue[relationProp]}`);
|
|
57
|
+
return acc;
|
|
58
|
+
}, []);
|
|
59
|
+
relationFilters.push(...filterValues);
|
|
60
|
+
} else if (!isDataArray && relationData[relationProp]) {
|
|
61
|
+
relationFilters.push(`${filterName}/${relationData[relationProp]}`);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
return relationFilters;
|
|
65
|
+
};
|
|
66
|
+
export default buildInheritedFilters;
|
|
67
|
+
//# sourceMappingURL=build-inherited-filters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-inherited-filters.js","names":["flatten","isFilterEntitysId","getFilterProps","ID","getRelationData","entityData","relationName","currentRelationNames","length","arrayOfRelations","map","name","filter","Boolean","checkIfArrayHasData","isDataArray","relationData","setFiltersNoRelation","arrayHasData","filters","filterValues","reduce","acc","relationValue","push","buildInheritedFilters","inheritedFilters","currentSchema","filterEntitySchema","itemId","relationFilters","identifier","currentEntityId","forEach","filterName","entityName","relationProp","relationEntityName","relationForeignKeys","shouldIgnoreFilter","Array","isArray","filtersNoRelation","filterNameToUse"],"sources":["../../src/helpers/build-inherited-filters.js"],"sourcesContent":["import flatten from 'lodash.flatten';\nimport isFilterEntitysId from './is-filter-entitys-id';\nimport getFilterProps from './get-filter-props';\nimport { ID } from '../constants';\n\nconst getRelationData = (entityData, relationName, currentRelationNames) => {\n if (!entityData) return null;\n if (currentRelationNames && currentRelationNames.length) {\n const arrayOfRelations = currentRelationNames.map(name => entityData[name]).filter(Boolean);\n return arrayOfRelations.length ? flatten(arrayOfRelations) : null;\n }\n return entityData[relationName];\n};\n\nconst checkIfArrayHasData = (isDataArray, relationData) => isDataArray && !!relationData.length;\n\nconst setFiltersNoRelation = (isDataArray, arrayHasData, relationData, relationName) => {\n const filters = [];\n if (arrayHasData) {\n const filterValues = relationData.reduce((acc, relationValue) => {\n if (relationValue && typeof relationValue !== 'object')\n acc.push(`${relationName}/${relationValue}`);\n return acc;\n }, []);\n filters.push(...filterValues);\n } else if (!isDataArray && typeof relationData !== 'object') {\n filters.push(`${relationName}/${relationData}`);\n }\n\n return filters;\n};\nconst buildInheritedFilters = (\n entityData,\n inheritedFilters,\n currentSchema,\n filterEntitySchema,\n itemId\n) => {\n const relationFilters = [];\n const { identifier: currentEntityId } = currentSchema;\n\n inheritedFilters.forEach(filter => {\n const {\n filterName,\n entityName,\n relationName,\n relationProp,\n relationEntityName,\n relationForeignKeys,\n shouldIgnoreFilter\n } = getFilterProps(filter, currentSchema, filterEntitySchema);\n\n const relationData = getRelationData(entityData, relationName, relationForeignKeys);\n if (\n (currentEntityId === entityName && isFilterEntitysId(filterName, currentEntityId)) ||\n shouldIgnoreFilter\n ) {\n relationFilters.push(`${filterName}/${itemId}`);\n }\n\n if (!relationData) return;\n\n const isDataArray = Array.isArray(relationData);\n const arrayHasData = checkIfArrayHasData(isDataArray, relationData);\n\n if (!relationEntityName) {\n const filtersNoRelation = setFiltersNoRelation(\n isDataArray,\n arrayHasData,\n relationData,\n filterName === ID ? filterName : relationName\n );\n relationFilters.push(...filtersNoRelation);\n }\n\n if (arrayHasData) {\n const filterValues = relationData.reduce((acc, relationValue) => {\n const filterNameToUse = filterName === ID ? 'ids' : filterName;\n if (relationValue[relationProp])\n acc.push(`${filterNameToUse}/${relationValue[relationProp]}`);\n return acc;\n }, []);\n relationFilters.push(...filterValues);\n } else if (!isDataArray && relationData[relationProp]) {\n relationFilters.push(`${filterName}/${relationData[relationProp]}`);\n }\n });\n\n return relationFilters;\n};\n\nexport default buildInheritedFilters;\n"],"mappings":"AAAA,OAAOA,OAAO,MAAM,gBAAgB;AACpC,OAAOC,iBAAiB,MAAM,wBAAwB;AACtD,OAAOC,cAAc,MAAM,oBAAoB;AAC/C,SAASC,EAAE,QAAQ,cAAc;AAEjC,MAAMC,eAAe,GAAGA,CAACC,UAAU,EAAEC,YAAY,EAAEC,oBAAoB,KAAK;EAC1E,IAAI,CAACF,UAAU,EAAE,OAAO,IAAI;EAC5B,IAAIE,oBAAoB,IAAIA,oBAAoB,CAACC,MAAM,EAAE;IACvD,MAAMC,gBAAgB,GAAGF,oBAAoB,CAACG,GAAG,CAACC,IAAI,IAAIN,UAAU,CAACM,IAAI,CAAC,CAAC,CAACC,MAAM,CAACC,OAAO,CAAC;IAC3F,OAAOJ,gBAAgB,CAACD,MAAM,GAAGR,OAAO,CAACS,gBAAgB,CAAC,GAAG,IAAI;E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CAAC,CAAC;EAEF,OAAON,eAAe;AACxB,CAAC;AAED,eAAeL,qBAAqB","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GTM_DATA_ID_ATTR } from '../constants';
|
|
2
|
+
const buildLinkExtraProps = ({
|
|
3
|
+
className,
|
|
4
|
+
name,
|
|
5
|
+
title,
|
|
6
|
+
as,
|
|
7
|
+
gtmId
|
|
8
|
+
}) => {
|
|
9
|
+
const linkExtraProps = {};
|
|
10
|
+
if (as) linkExtraProps.as = as;
|
|
11
|
+
if (className) linkExtraProps.className = className;
|
|
12
|
+
if (name) linkExtraProps.name = name;
|
|
13
|
+
if (gtmId) linkExtraProps[GTM_DATA_ID_ATTR] = gtmId;
|
|
14
|
+
return linkExtraProps;
|
|
15
|
+
};
|
|
16
|
+
export default buildLinkExtraProps;
|
|
17
|
+
//# sourceMappingURL=build-link-extra-props.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-link-extra-props.js","names":["GTM_DATA_ID_ATTR","buildLinkExtraProps","className","name","title","as","gtmId","linkExtraProps"],"sources":["../../src/helpers/build-link-extra-props.js"],"sourcesContent":["import { GTM_DATA_ID_ATTR } from '../constants';\n\nconst buildLinkExtraProps = ({ className, name, title, as, gtmId }) => {\n const linkExtraProps = {};\n if (as) linkExtraProps.as = as;\n if (className) linkExtraProps.className = className;\n if (name) linkExtraProps.name = name;\n if (gtmId) linkExtraProps[GTM_DATA_ID_ATTR] = gtmId;\n return linkExtraProps;\n};\n\nexport default buildLinkExtraProps;\n"],"mappings":"AAAA,SAASA,gBAAgB,QAAQ,cAAc;AAE/C,MAAMC,mBAAmB,GAAGA,CAAC;EAAEC,SAAS;EAAEC,IAAI;EAAEC,KAAK;EAAEC,EAAE;EAAEC;AAAM,CAAC,KAAK;EACrE,MAAMC,cAAc,GAAG,CAAC,CAAC;EACzB,IAAIF,EAAE,EAAEE,cAAc,CAACF,EAAE,GAAGA,EAAE;EAC9B,IAAIH,SAAS,EAAEK,cAAc,CAACL,SAAS,GAAGA,SAAS;EACnD,IAAIC,IAAI,EAAEI,cAAc,CAACJ,IAAI,GAAGA,IAAI;EACpC,IAAIG,KAAK,EAAEC,cAAc,CAACP,gBAAgB,CAAC,GAAGM,KAAK;EACnD,OAAOC,cAAc;AACvB,CAAC;AAED,eAAeN,mBAAmB","ignoreList":[]}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { CATEGORY_ID, ID, PREHEADER_PROP, HEADLINE_PROP } from '../constants';
|
|
2
|
+
const defaultProps = [ID, 'name'];
|
|
3
|
+
const categoryProps = 'id publishedListingPage{id, url}';
|
|
4
|
+
const checkProps = props => !!(props && Object.keys(props).filter(prop => prop === CATEGORY_ID).length);
|
|
5
|
+
const buildPropsQuery = (entitySchema, extraProps = [], cardOptions = null, linkProps = []) => {
|
|
6
|
+
const parsedSchema = entitySchema.getEntitySchema ? entitySchema.getEntitySchema : entitySchema;
|
|
7
|
+
const extraPropsHaveCategory = !!extraProps.filter(prop => prop.includes('category.')).length;
|
|
8
|
+
const {
|
|
9
|
+
typeBasedProps,
|
|
10
|
+
shouldAddCategoryProps
|
|
11
|
+
} = getTypeBaseProps(parsedSchema, cardOptions, extraPropsHaveCategory);
|
|
12
|
+
const allProps = [...typeBasedProps, ...extraProps];
|
|
13
|
+
const uniqueProps = [...new Set([...allProps])];
|
|
14
|
+
const basicProps = [];
|
|
15
|
+
const nestedProps = {};
|
|
16
|
+
uniqueProps.forEach(prop => {
|
|
17
|
+
if (prop) {
|
|
18
|
+
if (!prop.includes('.')) {
|
|
19
|
+
basicProps.push(prop);
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const [base, nested] = prop.split('.');
|
|
23
|
+
if (!nestedProps[base]) nestedProps[base] = [nested];else nestedProps[base].push(nested);
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
const complexProps = buildComplexProps(shouldAddCategoryProps, nestedProps, parsedSchema, linkProps);
|
|
27
|
+
return [...basicProps, ...complexProps].join(',');
|
|
28
|
+
};
|
|
29
|
+
const buildComplexProps = (shouldAddCategoryProps, props, {
|
|
30
|
+
relations = [],
|
|
31
|
+
dynamicProperties = {},
|
|
32
|
+
properties = {}
|
|
33
|
+
}, linkProps) => Object.keys(props).map(base => {
|
|
34
|
+
const nestedProps = props[base];
|
|
35
|
+
const hasLink = !!linkProps.find(linkProp => linkProp.includes(base));
|
|
36
|
+
const matchingProperty = !!properties[base];
|
|
37
|
+
const matchingRelation = relations.find(({
|
|
38
|
+
localField
|
|
39
|
+
}) => localField === base);
|
|
40
|
+
const matchingDynamicProp = Object.keys(dynamicProperties).find(dynamicKey => dynamicKey === base);
|
|
41
|
+
if (matchingRelation && !nestedProps.includes('id')) nestedProps.push('id');
|
|
42
|
+
if (hasLink && (!!matchingProperty || !!matchingRelation || !!matchingDynamicProp)) nestedProps.push('url');
|
|
43
|
+
const jointNestedProps = nestedProps.join(',');
|
|
44
|
+
if (base === 'category' && shouldAddCategoryProps) return `${base}{${jointNestedProps}, ${categoryProps}}`;
|
|
45
|
+
if (base.includes('published')) {
|
|
46
|
+
return `${base}{${jointNestedProps},url}`;
|
|
47
|
+
}
|
|
48
|
+
return `${base}{${jointNestedProps}}`;
|
|
49
|
+
});
|
|
50
|
+
const getTypeBaseProps = (entitySchema, cardOptions, extraPropsHaveCategory) => {
|
|
51
|
+
const isCard = !!cardOptions;
|
|
52
|
+
const {
|
|
53
|
+
displayCategory = true,
|
|
54
|
+
displayThumbnail = true
|
|
55
|
+
} = cardOptions || {};
|
|
56
|
+
const shouldAddCategoryProps = isCard && displayCategory || !isCard && !extraPropsHaveCategory;
|
|
57
|
+
if (!isCard) return {
|
|
58
|
+
typeBasedProps: [ID],
|
|
59
|
+
shouldAddCategoryProps
|
|
60
|
+
};
|
|
61
|
+
const {
|
|
62
|
+
interfaces,
|
|
63
|
+
properties,
|
|
64
|
+
dynamicProperties,
|
|
65
|
+
relations
|
|
66
|
+
} = entitySchema;
|
|
67
|
+
const isContent = !!interfaces.includes('content/content-base');
|
|
68
|
+
const hasCategory = checkProps(properties) || checkProps(dynamicProperties);
|
|
69
|
+
const hasPreheader = properties[PREHEADER_PROP];
|
|
70
|
+
const typeBasedProps = [...defaultProps];
|
|
71
|
+
typeBasedProps.push(...getCategoyProps(shouldAddCategoryProps, hasCategory, hasPreheader));
|
|
72
|
+
typeBasedProps.push(...getContentProps(isContent));
|
|
73
|
+
if (properties.url || dynamicProperties.url) typeBasedProps.push('url');
|
|
74
|
+
if (displayThumbnail && relations.find(({
|
|
75
|
+
localField
|
|
76
|
+
}) => localField === 'image')) {
|
|
77
|
+
typeBasedProps.push('image.id', 'image.url', 'image.data');
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
typeBasedProps,
|
|
81
|
+
shouldAddCategoryProps
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
// make sure all props are supported by content/content-base interface
|
|
86
|
+
const getContentProps = isContent => isContent ? ['url', 'sponsored', 'featured', 'live'] : [];
|
|
87
|
+
const getCategoyProps = (shouldAddCategoryProps, hasCategory, hasPreheader) => {
|
|
88
|
+
if (!shouldAddCategoryProps) return [];
|
|
89
|
+
const props = [];
|
|
90
|
+
if (hasCategory) props.push('category.name', 'category.listingPageId', 'category.listingPageEntity');
|
|
91
|
+
if (hasPreheader) {
|
|
92
|
+
props.push(`${PREHEADER_PROP}{name}`);
|
|
93
|
+
props.push(HEADLINE_PROP);
|
|
94
|
+
}
|
|
95
|
+
return props;
|
|
96
|
+
};
|
|
97
|
+
export default buildPropsQuery;
|
|
98
|
+
//# sourceMappingURL=build-props-query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-props-query.js","names":["CATEGORY_ID","ID","PREHEADER_PROP","HEADLINE_PROP","defaultProps","categoryProps","checkProps","props","Object","keys","filter","prop","length","buildPropsQuery","entitySchema","extraProps","cardOptions","linkProps","parsedSchema","getEntitySchema","extraPropsHaveCategory","includes","typeBasedProps","shouldAddCategoryProps","getTypeBaseProps","allProps","uniqueProps","Set","basicProps","nestedProps","forEach","push","base","nested","split","complexProps","buildComplexProps","join","relations","dynamicProperties","properties","map","hasLink","find","linkProp","matchingProperty","matchingRelation","localField","matchingDynamicProp","dynamicKey","jointNestedProps","isCard","displayCategory","displayThumbnail","interfaces","isContent","hasCategory","hasPreheader","getCategoyProps","getContentProps","url"],"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, linkProps = []) => {\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 const uniqueProps = [...new Set([...allProps])];\n const basicProps = [];\n const nestedProps = {};\n uniqueProps.forEach(prop => {\n if (prop) {\n if (!prop.includes('.')) {\n basicProps.push(prop);\n return;\n }\n const [base, nested] = prop.split('.');\n if (!nestedProps[base]) nestedProps[base] = [nested];\n else nestedProps[base].push(nested);\n }\n });\n\n const complexProps = buildComplexProps(\n shouldAddCategoryProps,\n nestedProps,\n parsedSchema,\n linkProps\n );\n\n return [...basicProps, ...complexProps].join(',');\n};\n\nconst buildComplexProps = (\n shouldAddCategoryProps,\n props,\n { relations = [], dynamicProperties = {}, properties = {} },\n linkProps\n) =>\n Object.keys(props).map(base => {\n const nestedProps = props[base];\n const hasLink = !!linkProps.find(linkProp => linkProp.includes(base));\n const matchingProperty = !!properties[base];\n const matchingRelation = relations.find(({ localField }) => localField === base);\n const matchingDynamicProp = Object.keys(dynamicProperties).find(\n dynamicKey => dynamicKey === base\n );\n\n if (matchingRelation && !nestedProps.includes('id')) nestedProps.push('id');\n if (hasLink && (!!matchingProperty || !!matchingRelation || !!matchingDynamicProp))\n nestedProps.push('url');\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-base');\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\n// make sure all props are supported by content/content-base interface\nconst getContentProps = isContent => (isContent ? ['url', 'sponsored', 'featured', 'live'] : []);\n\nconst getCategoyProps = (shouldAddCategoryProps, hasCategory, hasPreheader) => {\n if (!shouldAddCategoryProps) return [];\n const props = [];\n if (hasCategory)\n props.push('category.name', 'category.listingPageId', 'category.listingPageEntity');\n\n if (hasPreheader) {\n props.push(`${PREHEADER_PROP}{name}`);\n props.push(HEADLINE_PROP);\n }\n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AOI,KAAK;AACd,CAAC;AAED,eAAeM,eAAe","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const buildQueryFields = (sanitizedEntityFields, entityTypes, isFull) => `results {
|
|
2
|
+
${entityTypes.map(entityType => `
|
|
3
|
+
... on ${entityType} {
|
|
4
|
+
${sanitizedEntityFields}
|
|
5
|
+
__typename
|
|
6
|
+
id
|
|
7
|
+
${isFull ? 'pageBuilderComponents: preparedPageBuilderComponents' : ''}
|
|
8
|
+
}`)}
|
|
9
|
+
},
|
|
10
|
+
total
|
|
11
|
+
`;
|
|
12
|
+
export default buildQueryFields;
|
|
13
|
+
//# sourceMappingURL=build-query-fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-query-fields.js","names":["buildQueryFields","sanitizedEntityFields","entityTypes","isFull","map","entityType"],"sources":["../../src/helpers/build-query-fields.js"],"sourcesContent":["const buildQueryFields = (sanitizedEntityFields, entityTypes, isFull) =>\n `results {\n ${entityTypes.map(\n entityType => `\n ... on ${entityType} {\n ${sanitizedEntityFields}\n __typename\n id\n ${isFull ? 'pageBuilderComponents: preparedPageBuilderComponents' : ''}\n }`\n )}\n },\n total\n `;\n\nexport default buildQueryFields;\n"],"mappings":"AAAA,MAAMA,gBAAgB,GAAGA,CAACC,qBAAqB,EAAEC,WAAW,EAAEC,MAAM,KAClE;AACF,MAAMD,WAAW,CAACE,GAAG,CACfC,UAAU,IAAI;AACpB,aAAaA,UAAU;AACvB,QAAQJ,qBAAqB;AAC7B;AACA;AACA,OAAOE,MAAM,GAAG,sDAAsD,GAAG,EAAE;AAC3E,MACI,CAAC;AACL;AACA;AACA,GAAG;AAEH,eAAeH,gBAAgB","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const buildQueryKey = (key, listName) => {
|
|
2
|
+
const listNameKey = listName ? `pb[${listName}]` : '';
|
|
3
|
+
const wrappedSearchKey = listNameKey ? `[${key}]` : key;
|
|
4
|
+
return `${listNameKey}${wrappedSearchKey}`;
|
|
5
|
+
};
|
|
6
|
+
export default buildQueryKey;
|
|
7
|
+
//# sourceMappingURL=build-query-key.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-query-key.js","names":["buildQueryKey","key","listName","listNameKey","wrappedSearchKey"],"sources":["../../src/helpers/build-query-key.js"],"sourcesContent":["const buildQueryKey = (key, listName) => {\n const listNameKey = listName ? `pb[${listName}]` : '';\n const wrappedSearchKey = listNameKey ? `[${key}]` : key;\n return `${listNameKey}${wrappedSearchKey}`;\n};\n\nexport default buildQueryKey;\n"],"mappings":"AAAA,MAAMA,aAAa,GAAGA,CAACC,GAAG,EAAEC,QAAQ,KAAK;EACvC,MAAMC,WAAW,GAAGD,QAAQ,GAAG,MAAMA,QAAQ,GAAG,GAAG,EAAE;EACrD,MAAME,gBAAgB,GAAGD,WAAW,GAAG,IAAIF,GAAG,GAAG,GAAGA,GAAG;EACvD,OAAO,GAAGE,WAAW,GAAGC,gBAAgB,EAAE;AAC5C,CAAC;AAED,eAAeJ,aAAa","ignoreList":[]}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
import getItemsToDisplayIds from './get-items-to-display-ids';
|
|
5
|
+
import { OR, OR_OPERATOR, KEYWORD } from '../constants';
|
|
6
|
+
import buildCheckboxFilters from './build-checkbox-filters';
|
|
7
|
+
const buildFilterValues = (listFilterValues, relations, stringProps) => {
|
|
8
|
+
const listFilterValuesKeys = Object.keys(listFilterValues);
|
|
9
|
+
return listFilterValuesKeys.map(key => {
|
|
10
|
+
const values = listFilterValues[key].map(el => {
|
|
11
|
+
let updatedKey = key;
|
|
12
|
+
const isRelation = key.includes('.');
|
|
13
|
+
if (isRelation) {
|
|
14
|
+
const [relationName, relationProp] = key.split('.');
|
|
15
|
+
const [relation] = relations.filter(({
|
|
16
|
+
localField
|
|
17
|
+
}) => localField === relationName);
|
|
18
|
+
const {
|
|
19
|
+
entityIdentifier = ''
|
|
20
|
+
} = relation || {};
|
|
21
|
+
if (entityIdentifier && entityIdentifier !== relationName) updatedKey = `${entityIdentifier}.${relationProp}`;
|
|
22
|
+
}
|
|
23
|
+
const fieldName = stringProps.includes(updatedKey) ? `${key}.${KEYWORD}` : key;
|
|
24
|
+
return {
|
|
25
|
+
match: {
|
|
26
|
+
[fieldName]: el
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
});
|
|
30
|
+
return {
|
|
31
|
+
bool: {
|
|
32
|
+
should: values
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
const buildItemsToDisplayValues = itemsToDisplay => {
|
|
38
|
+
if (!itemsToDisplay || !itemsToDisplay.length) return [];
|
|
39
|
+
const itemToDisplayIds = getItemsToDisplayIds(itemsToDisplay);
|
|
40
|
+
return [{
|
|
41
|
+
ids: {
|
|
42
|
+
values: itemToDisplayIds
|
|
43
|
+
}
|
|
44
|
+
}];
|
|
45
|
+
};
|
|
46
|
+
const buildShouldValues = docTypes => {
|
|
47
|
+
if (Array.isArray(docTypes)) {
|
|
48
|
+
return docTypes.map(docType => ({
|
|
49
|
+
match: {
|
|
50
|
+
docType
|
|
51
|
+
}
|
|
52
|
+
}));
|
|
53
|
+
}
|
|
54
|
+
return [{
|
|
55
|
+
match: {
|
|
56
|
+
docType: docTypes
|
|
57
|
+
}
|
|
58
|
+
}];
|
|
59
|
+
};
|
|
60
|
+
const buildRawQueryBase = ({
|
|
61
|
+
docType,
|
|
62
|
+
id,
|
|
63
|
+
filterValues: {
|
|
64
|
+
checkboxFilters = [],
|
|
65
|
+
listFilterValues = {}
|
|
66
|
+
} = {},
|
|
67
|
+
filterOperator,
|
|
68
|
+
relations,
|
|
69
|
+
stringProps,
|
|
70
|
+
itemsToDisplay,
|
|
71
|
+
addListFiltersToQuery = false
|
|
72
|
+
}) => {
|
|
73
|
+
const listFilterFinalValues = buildFilterValues(listFilterValues, relations, stringProps);
|
|
74
|
+
const checkboxFiltersValue = buildCheckboxFilters(checkboxFilters);
|
|
75
|
+
const itemsToDisplayValues = buildItemsToDisplayValues(itemsToDisplay);
|
|
76
|
+
const isOperatorOr = filterOperator === OR;
|
|
77
|
+
const queryFilters = [];
|
|
78
|
+
const baseBoolObject = {
|
|
79
|
+
should: buildShouldValues(docType),
|
|
80
|
+
minimum_should_match: 1,
|
|
81
|
+
must: [...itemsToDisplayValues, ...checkboxFiltersValue]
|
|
82
|
+
};
|
|
83
|
+
if (isOperatorOr) {
|
|
84
|
+
if (addListFiltersToQuery) {
|
|
85
|
+
queryFilters.push(...listFilterFinalValues);
|
|
86
|
+
} else {
|
|
87
|
+
baseBoolObject.must.push({
|
|
88
|
+
bool: {
|
|
89
|
+
[OR_OPERATOR]: [...listFilterFinalValues]
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
} else {
|
|
94
|
+
baseBoolObject.must.push(...listFilterFinalValues);
|
|
95
|
+
}
|
|
96
|
+
const mustNot = id ? [{
|
|
97
|
+
ids: {
|
|
98
|
+
values: [id]
|
|
99
|
+
}
|
|
100
|
+
}] : undefined;
|
|
101
|
+
const queryFilter = queryFilters.length ? {
|
|
102
|
+
[OR_OPERATOR]: queryFilters,
|
|
103
|
+
minimum_should_match: 1
|
|
104
|
+
} : {};
|
|
105
|
+
return _objectSpread(_objectSpread({}, queryFilter), {}, {
|
|
106
|
+
filter: {
|
|
107
|
+
bool: baseBoolObject
|
|
108
|
+
},
|
|
109
|
+
must_not: mustNot
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
export default buildRawQueryBase;
|
|
113
|
+
//# sourceMappingURL=build-raw-query-base.js.map
|