@blaze-cms/react-page-builder 0.146.0-translations.8 → 0.147.0-rc-eagle.2
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/lib/BannerContext/helpers/index.js +2 -3
- package/lib/BannerContext/helpers/index.js.map +1 -1
- package/lib/BannerContext/helpers/set-initial-banner-counters.js +13 -17
- package/lib/BannerContext/helpers/set-initial-banner-counters.js.map +1 -1
- package/lib/BannerContext/index.js +19 -26
- package/lib/BannerContext/index.js.map +1 -1
- package/lib/HOC/index.js +2 -3
- package/lib/HOC/index.js.map +1 -1
- package/lib/HOC/recreateOnNavigation.js +11 -12
- package/lib/HOC/recreateOnNavigation.js.map +1 -1
- package/lib/HOC/withInfiniteScroll.js +47 -81
- package/lib/HOC/withInfiniteScroll.js.map +1 -1
- package/lib/HOC/withTitle.js +21 -30
- package/lib/HOC/withTitle.js.map +1 -1
- package/lib/PBContext/index.js +3 -4
- package/lib/PBContext/index.js.map +1 -1
- package/lib/application/query/index.js +179 -46
- package/lib/application/query/index.js.map +1 -1
- package/lib/components/BackToTop/BackToTop.js +16 -32
- package/lib/components/BackToTop/BackToTop.js.map +1 -1
- package/lib/components/BackToTop/index.js +2 -3
- package/lib/components/BackToTop/index.js.map +1 -1
- package/lib/components/Banner/AdSlotRender.js +45 -63
- package/lib/components/Banner/AdSlotRender.js.map +1 -1
- package/lib/components/Banner/Banner.js +63 -64
- package/lib/components/Banner/Banner.js.map +1 -1
- package/lib/components/Banner/BannerRender.js +89 -88
- package/lib/components/Banner/BannerRender.js.map +1 -1
- package/lib/components/Banner/helpers.js +89 -135
- package/lib/components/Banner/helpers.js.map +1 -1
- package/lib/components/Banner/index.js +3 -17
- package/lib/components/Banner/index.js.map +1 -1
- package/lib/components/BlazeLink.js +37 -52
- package/lib/components/BlazeLink.js.map +1 -1
- package/lib/components/Breadcrumb/Breadcrumb.js +66 -71
- package/lib/components/Breadcrumb/Breadcrumb.js.map +1 -1
- package/lib/components/Breadcrumb/index.js +2 -3
- package/lib/components/Breadcrumb/index.js.map +1 -1
- package/lib/components/Button.js +75 -137
- package/lib/components/Button.js.map +1 -1
- package/lib/components/Card/Card.js +187 -190
- package/lib/components/Card/Card.js.map +1 -1
- package/lib/components/Card/CardsContainer.js +108 -120
- package/lib/components/Card/CardsContainer.js.map +1 -1
- package/lib/components/Card/CardsFactory.js +62 -58
- package/lib/components/Card/CardsFactory.js.map +1 -1
- package/lib/components/Card/CardsRender.js +166 -185
- package/lib/components/Card/CardsRender.js.map +1 -1
- package/lib/components/Card/constants.js +2 -3
- package/lib/components/Card/constants.js.map +1 -1
- package/lib/components/Card/helpers/get-dynamic-grid-classes.js +16 -22
- package/lib/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -1
- package/lib/components/Card/helpers/get-published-listing-url.js +3 -6
- package/lib/components/Card/helpers/get-published-listing-url.js.map +1 -1
- package/lib/components/Card/helpers/index.js +18 -19
- package/lib/components/Card/helpers/index.js.map +1 -1
- package/lib/components/Card/helpers/use-dynamic-size-key.js +5 -11
- package/lib/components/Card/helpers/use-dynamic-size-key.js.map +1 -1
- package/lib/components/Card/index.js +2 -3
- package/lib/components/Card/index.js.map +1 -1
- package/lib/components/Carousel/Carousel.js +59 -26
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/CarouselImage/CarouselImage.js +36 -34
- package/lib/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
- package/lib/components/Carousel/CarouselImage/constants.js +1 -2
- package/lib/components/Carousel/CarouselImage/constants.js.map +1 -1
- package/lib/components/Carousel/CarouselImage/index.js +2 -3
- package/lib/components/Carousel/CarouselImage/index.js.map +1 -1
- package/lib/components/Carousel/CarouselRender/CarouselRender.js +41 -47
- package/lib/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
- package/lib/components/Carousel/CarouselRender/index.js +2 -3
- package/lib/components/Carousel/CarouselRender/index.js.map +1 -1
- package/lib/components/Carousel/hooks/useCarouselNavigation.js +25 -26
- package/lib/components/Carousel/hooks/useCarouselNavigation.js.map +1 -1
- package/lib/components/Carousel/index.js +2 -3
- package/lib/components/Carousel/index.js.map +1 -1
- package/lib/components/CarouselWrapper/CarouselWrapper.js +11 -10
- package/lib/components/CarouselWrapper/CarouselWrapper.js.map +1 -1
- package/lib/components/CarouselWrapper/DefaultCarousel.js +72 -80
- package/lib/components/CarouselWrapper/DefaultCarousel.js.map +1 -1
- package/lib/components/CarouselWrapper/SmoothScrollCarousel.js +23 -23
- package/lib/components/CarouselWrapper/SmoothScrollCarousel.js.map +1 -1
- package/lib/components/CarouselWrapper/index.js +2 -3
- package/lib/components/CarouselWrapper/index.js.map +1 -1
- package/lib/components/ClickWrapper.js +20 -38
- package/lib/components/ClickWrapper.js.map +1 -1
- package/lib/components/Code/Code.js +20 -34
- package/lib/components/Code/Code.js.map +1 -1
- package/lib/components/Code/ScriptTag.js +15 -29
- package/lib/components/Code/ScriptTag.js.map +1 -1
- package/lib/components/Code/helpers/index.js +2 -3
- package/lib/components/Code/helpers/index.js.map +1 -1
- package/lib/components/Code/helpers/wrap-script-tags.js +12 -15
- package/lib/components/Code/helpers/wrap-script-tags.js.map +1 -1
- package/lib/components/Code/index.js +2 -3
- package/lib/components/Code/index.js.map +1 -1
- package/lib/components/ContentGroup/ContentGroup.js +43 -40
- package/lib/components/ContentGroup/ContentGroup.js.map +1 -1
- package/lib/components/ContentGroup/ContentGroupAccordion.js +83 -112
- package/lib/components/ContentGroup/ContentGroupAccordion.js.map +1 -1
- package/lib/components/ContentGroup/ContentGroupTabs.js +45 -62
- package/lib/components/ContentGroup/ContentGroupTabs.js.map +1 -1
- package/lib/components/ContentGroup/constants.js +8 -10
- package/lib/components/ContentGroup/constants.js.map +1 -1
- package/lib/components/ContentGroup/helpers/get-active-tab.js +7 -13
- package/lib/components/ContentGroup/helpers/get-active-tab.js.map +1 -1
- package/lib/components/ContentGroup/helpers/get-sections-data.js +15 -18
- package/lib/components/ContentGroup/helpers/get-sections-data.js.map +1 -1
- package/lib/components/ContentGroup/helpers/get-structured-data-properties.js +4 -5
- package/lib/components/ContentGroup/helpers/get-structured-data-properties.js.map +1 -1
- package/lib/components/ContentGroup/helpers/index.js +4 -5
- package/lib/components/ContentGroup/helpers/index.js.map +1 -1
- package/lib/components/ContentGroup/index.js +2 -3
- package/lib/components/ContentGroup/index.js.map +1 -1
- package/lib/components/ContentGroupSection/ContentGroupSection.js +9 -10
- package/lib/components/ContentGroupSection/ContentGroupSection.js.map +1 -1
- package/lib/components/ContentGroupSection/index.js +2 -3
- package/lib/components/ContentGroupSection/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryFactory.js +52 -57
- package/lib/components/DataSummary/DataSummaryFactory.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryRender.js +56 -55
- package/lib/components/DataSummary/DataSummaryRender.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js +14 -16
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js +14 -27
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js +2 -3
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js +11 -10
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js +15 -30
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js +2 -3
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js +11 -10
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js +20 -35
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/index.js +2 -3
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js +11 -10
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js +20 -35
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/index.js +2 -3
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js +11 -10
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js +15 -30
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/index.js +2 -3
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/index.js +7 -37
- package/lib/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
- package/lib/components/DataSummary/helpers/build-loop-props-content.js +36 -52
- package/lib/components/DataSummary/helpers/build-loop-props-content.js.map +1 -1
- package/lib/components/DataSummary/helpers/build-props-to-display-with-content.js +22 -27
- package/lib/components/DataSummary/helpers/build-props-to-display-with-content.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-data-summary-query.js +13 -10
- package/lib/components/DataSummary/helpers/get-data-summary-query.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-link-based-on-value.js +4 -6
- package/lib/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-link-props.js +6 -16
- package/lib/components/DataSummary/helpers/get-link-props.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-link-to-published-content.js +5 -14
- package/lib/components/DataSummary/helpers/get-link-to-published-content.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-loop-props-limit.js +6 -12
- package/lib/components/DataSummary/helpers/get-loop-props-limit.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-prop-value.js +15 -25
- package/lib/components/DataSummary/helpers/get-prop-value.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-record-id.js +20 -0
- package/lib/components/DataSummary/helpers/get-record-id.js.map +1 -0
- package/lib/components/DataSummary/helpers/get-value-from-array.js +12 -17
- package/lib/components/DataSummary/helpers/get-value-from-array.js.map +1 -1
- package/lib/components/DataSummary/helpers/index.js +23 -17
- package/lib/components/DataSummary/helpers/index.js.map +1 -1
- package/lib/components/DataSummary/helpers/parse-boolean-values.js +3 -4
- package/lib/components/DataSummary/helpers/parse-boolean-values.js.map +1 -1
- package/lib/components/DataSummary/helpers/strip-summary-props-content.js +6 -13
- package/lib/components/DataSummary/helpers/strip-summary-props-content.js.map +1 -1
- package/lib/components/DataSummary/index.js +2 -3
- package/lib/components/DataSummary/index.js.map +1 -1
- package/lib/components/DateTime/DateTime.js +18 -18
- package/lib/components/DateTime/DateTime.js.map +1 -1
- package/lib/components/DateTime/index.js +2 -3
- package/lib/components/DateTime/index.js.map +1 -1
- package/lib/components/EmailConfirm/EmailConfirm.js +48 -55
- package/lib/components/EmailConfirm/EmailConfirm.js.map +1 -1
- package/lib/components/EmailConfirm/index.js +2 -3
- package/lib/components/EmailConfirm/index.js.map +1 -1
- package/lib/components/EmailConfirm/mutation.js +12 -7
- package/lib/components/EmailConfirm/mutation.js.map +1 -1
- package/lib/components/ErrorMessage/ErrorMessage.js +19 -22
- package/lib/components/ErrorMessage/ErrorMessage.js.map +1 -1
- package/lib/components/ErrorMessage/index.js +3 -17
- package/lib/components/ErrorMessage/index.js.map +1 -1
- package/lib/components/Iframe/Iframe.js +19 -20
- package/lib/components/Iframe/Iframe.js.map +1 -1
- package/lib/components/Iframe/constants.js +2 -3
- package/lib/components/Iframe/constants.js.map +1 -1
- package/lib/components/Iframe/index.js +2 -3
- package/lib/components/Iframe/index.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/GlobalLightbox.js +85 -103
- package/lib/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/NavButton.js +20 -22
- package/lib/components/Image/GlobalLightbox/NavButton.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/index.js +3 -17
- package/lib/components/Image/GlobalLightbox/index.js.map +1 -1
- package/lib/components/Image/Image.js +94 -116
- package/lib/components/Image/Image.js.map +1 -1
- package/lib/components/Image/ImageDetails.js +19 -21
- package/lib/components/Image/ImageDetails.js.map +1 -1
- package/lib/components/Image/ImageFactory.js +57 -63
- package/lib/components/Image/ImageFactory.js.map +1 -1
- package/lib/components/Image/ImageRender.js +44 -44
- package/lib/components/Image/ImageRender.js.map +1 -1
- package/lib/components/Image/Lightbox/Lightbox.js +29 -43
- package/lib/components/Image/Lightbox/Lightbox.js.map +1 -1
- package/lib/components/Image/Lightbox/index.js +2 -3
- package/lib/components/Image/Lightbox/index.js.map +1 -1
- package/lib/components/Image/index.js +2 -3
- package/lib/components/Image/index.js.map +1 -1
- package/lib/components/ItemList/ItemListButton/ItemListButton.js +63 -78
- package/lib/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
- package/lib/components/ItemList/ItemListButton/index.js +2 -3
- package/lib/components/ItemList/ItemListButton/index.js.map +1 -1
- package/lib/components/ItemList/ItemListCounter/ItemListCounter.js +34 -35
- package/lib/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
- package/lib/components/ItemList/ItemListCounter/index.js +2 -3
- package/lib/components/ItemList/ItemListCounter/index.js.map +1 -1
- package/lib/components/ItemList/ItemListNew/ItemListNew.js +36 -33
- package/lib/components/ItemList/ItemListNew/ItemListNew.js.map +1 -1
- package/lib/components/ItemList/ItemListNew/index.js +2 -3
- package/lib/components/ItemList/ItemListNew/index.js.map +1 -1
- package/lib/components/ItemList/constants.js +5 -6
- package/lib/components/ItemList/constants.js.map +1 -1
- package/lib/components/ItemList/helpers/get-item-list-data.js +3 -4
- package/lib/components/ItemList/helpers/get-item-list-data.js.map +1 -1
- package/lib/components/ItemList/helpers/get-item-list-id.js +4 -6
- package/lib/components/ItemList/helpers/get-item-list-id.js.map +1 -1
- package/lib/components/ItemList/helpers/get-item-list-ids.js +9 -12
- package/lib/components/ItemList/helpers/get-item-list-ids.js.map +1 -1
- package/lib/components/ItemList/helpers/index.js +10 -11
- package/lib/components/ItemList/helpers/index.js.map +1 -1
- package/lib/components/ItemList/helpers/set-item-list-id.js +4 -6
- package/lib/components/ItemList/helpers/set-item-list-id.js.map +1 -1
- package/lib/components/ItemList/helpers/set-param-and-redirect.js +7 -18
- package/lib/components/ItemList/helpers/set-param-and-redirect.js.map +1 -1
- package/lib/components/ItemList/hooks/index.js +2 -3
- package/lib/components/ItemList/hooks/index.js.map +1 -1
- package/lib/components/ItemList/hooks/use-item-list-id.js +12 -17
- package/lib/components/ItemList/hooks/use-item-list-id.js.map +1 -1
- package/lib/components/ItemList/icons/AddedBookmark.js +8 -9
- package/lib/components/ItemList/icons/AddedBookmark.js.map +1 -1
- package/lib/components/ItemList/icons/BaseBookmark.js +9 -10
- package/lib/components/ItemList/icons/BaseBookmark.js.map +1 -1
- package/lib/components/ItemList/icons/HoverBookmark.js +9 -10
- package/lib/components/ItemList/icons/HoverBookmark.js.map +1 -1
- package/lib/components/ItemList/icons/RemoveBookmark.js +8 -9
- package/lib/components/ItemList/icons/RemoveBookmark.js.map +1 -1
- package/lib/components/ItemList/icons/index.js +8 -9
- package/lib/components/ItemList/icons/index.js.map +1 -1
- package/lib/components/Layout/Layout.js +57 -53
- package/lib/components/Layout/Layout.js.map +1 -1
- package/lib/components/Layout/LayoutFactory.js +11 -23
- package/lib/components/Layout/LayoutFactory.js.map +1 -1
- package/lib/components/Layout/LayoutWithStickyTimer.js +18 -33
- package/lib/components/Layout/LayoutWithStickyTimer.js.map +1 -1
- package/lib/components/Layout/constants.js +3 -4
- package/lib/components/Layout/constants.js.map +1 -1
- package/lib/components/Layout/helpers/check-if-row-has-columns.js +8 -15
- package/lib/components/Layout/helpers/check-if-row-has-columns.js.map +1 -1
- package/lib/components/Layout/helpers/get-styles-to-update.js +6 -6
- package/lib/components/Layout/helpers/get-styles-to-update.js.map +1 -1
- package/lib/components/Layout/helpers/index.js +4 -5
- package/lib/components/Layout/helpers/index.js.map +1 -1
- package/lib/components/Layout/index.js +2 -3
- package/lib/components/Layout/index.js.map +1 -1
- package/lib/components/LazyImage/LazyImage.js +20 -23
- package/lib/components/LazyImage/LazyImage.js.map +1 -1
- package/lib/components/LazyImage/index.js +3 -17
- package/lib/components/LazyImage/index.js.map +1 -1
- package/lib/components/List/ListBuilder.js +130 -144
- package/lib/components/List/ListBuilder.js.map +1 -1
- package/lib/components/List/ListFactory.js +165 -183
- package/lib/components/List/ListFactory.js.map +1 -1
- package/lib/components/List/ListRender.js +75 -80
- package/lib/components/List/ListRender.js.map +1 -1
- package/lib/components/List/components/Cards/CardRenderWithInfiniteScroll.js +2 -3
- package/lib/components/List/components/Cards/CardRenderWithInfiniteScroll.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRender.js +62 -75
- package/lib/components/List/components/Cards/CardsRender.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRenderItem.js +69 -71
- package/lib/components/List/components/Cards/CardsRenderItem.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRenderWrapper.js +29 -35
- package/lib/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
- package/lib/components/List/components/Cards/index.js +2 -3
- package/lib/components/List/components/Cards/index.js.map +1 -1
- package/lib/components/List/components/Full/FullRender.js +49 -60
- package/lib/components/List/components/Full/FullRender.js.map +1 -1
- package/lib/components/List/components/Full/FullRenderItem.js +63 -79
- package/lib/components/List/components/Full/FullRenderItem.js.map +1 -1
- package/lib/components/List/components/Full/FullRenderWithInfiniteScroll.js +2 -3
- package/lib/components/List/components/Full/FullRenderWithInfiniteScroll.js.map +1 -1
- package/lib/components/List/components/Full/index.js +2 -3
- package/lib/components/List/components/Full/index.js.map +1 -1
- package/lib/components/List/components/Header/ListHeader.js +34 -32
- package/lib/components/List/components/Header/ListHeader.js.map +1 -1
- package/lib/components/List/components/Header/index.js +2 -3
- package/lib/components/List/components/Header/index.js.map +1 -1
- package/lib/components/List/components/Pagination/Classic.js +35 -36
- package/lib/components/List/components/Pagination/Classic.js.map +1 -1
- package/lib/components/List/components/Pagination/ListPagination.js +39 -58
- package/lib/components/List/components/Pagination/ListPagination.js.map +1 -1
- package/lib/components/List/components/Pagination/LoadMore.js +21 -22
- package/lib/components/List/components/Pagination/LoadMore.js.map +1 -1
- package/lib/components/List/components/Pagination/index.js +2 -3
- package/lib/components/List/components/Pagination/index.js.map +1 -1
- package/lib/components/List/components/helpers/check-if-should-render-banner.js +26 -22
- package/lib/components/List/components/helpers/check-if-should-render-banner.js.map +1 -1
- package/lib/components/List/components/helpers/check-if-should-render-gtm.js +6 -10
- package/lib/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -1
- package/lib/components/List/components/helpers/index.js +4 -5
- package/lib/components/List/components/helpers/index.js.map +1 -1
- package/lib/components/List/components/index.js +8 -9
- package/lib/components/List/components/index.js.map +1 -1
- package/lib/components/List/constants.js +7 -11
- package/lib/components/List/constants.js.map +1 -1
- package/lib/components/List/helpers/build-az-aggregations.js +22 -37
- package/lib/components/List/helpers/build-az-aggregations.js.map +1 -1
- package/lib/components/List/helpers/build-az-url.js +15 -23
- package/lib/components/List/helpers/build-az-url.js.map +1 -1
- package/lib/components/List/helpers/build-pagination-items.js +19 -20
- package/lib/components/List/helpers/build-pagination-items.js.map +1 -1
- package/lib/components/List/helpers/build-pagination-url.js +9 -18
- package/lib/components/List/helpers/build-pagination-url.js.map +1 -1
- package/lib/components/List/helpers/build-query-booster.js +32 -38
- package/lib/components/List/helpers/build-query-booster.js.map +1 -1
- package/lib/components/List/helpers/get-az-query-filter.js +4 -6
- package/lib/components/List/helpers/get-az-query-filter.js.map +1 -1
- package/lib/components/List/helpers/get-items-per-page-to-use.js +3 -4
- package/lib/components/List/helpers/get-items-per-page-to-use.js.map +1 -1
- package/lib/components/List/helpers/get-list-component.js +3 -4
- package/lib/components/List/helpers/get-list-component.js.map +1 -1
- package/lib/components/List/helpers/get-list-query.js +14 -26
- package/lib/components/List/helpers/get-list-query.js.map +1 -1
- package/lib/components/List/helpers/get-list-specific-search-filter.js +10 -12
- package/lib/components/List/helpers/get-list-specific-search-filter.js.map +1 -1
- package/lib/components/List/helpers/get-sort-props.js +16 -24
- package/lib/components/List/helpers/get-sort-props.js.map +1 -1
- package/lib/components/List/helpers/has-required-item-list-details.js +8 -8
- package/lib/components/List/helpers/has-required-item-list-details.js.map +1 -1
- package/lib/components/List/helpers/index.js +24 -25
- package/lib/components/List/helpers/index.js.map +1 -1
- package/lib/components/List/helpers/sort-aggs.js +16 -22
- package/lib/components/List/helpers/sort-aggs.js.map +1 -1
- package/lib/components/List/helpers/strip-query-key.js +3 -4
- package/lib/components/List/helpers/strip-query-key.js.map +1 -1
- package/lib/components/List/index.js +2 -3
- package/lib/components/List/index.js.map +1 -1
- package/lib/components/Loading/Loading.js +15 -16
- package/lib/components/Loading/Loading.js.map +1 -1
- package/lib/components/Loading/constants.js +3 -4
- package/lib/components/Loading/constants.js.map +1 -1
- package/lib/components/Loading/helpers.js +4 -8
- package/lib/components/Loading/helpers.js.map +1 -1
- package/lib/components/Loading/index.js +3 -17
- package/lib/components/Loading/index.js.map +1 -1
- package/lib/components/Menu/Menu.js +65 -83
- package/lib/components/Menu/Menu.js.map +1 -1
- package/lib/components/Menu/MenuContext.js +4 -6
- package/lib/components/Menu/MenuContext.js.map +1 -1
- package/lib/components/Menu/index.js +2 -3
- package/lib/components/Menu/index.js.map +1 -1
- package/lib/components/MenuItem/MenuEntitiesItem.js +131 -150
- package/lib/components/MenuItem/MenuEntitiesItem.js.map +1 -1
- package/lib/components/MenuItem/MenuItem.js +19 -18
- package/lib/components/MenuItem/MenuItem.js.map +1 -1
- package/lib/components/MenuItem/MenuItemRender.js +49 -74
- package/lib/components/MenuItem/MenuItemRender.js.map +1 -1
- package/lib/components/MenuItem/helpers/index.js +2 -17
- package/lib/components/MenuItem/helpers/index.js.map +1 -1
- package/lib/components/MenuItem/helpers/inject-helper-into-template.js +17 -8
- package/lib/components/MenuItem/helpers/inject-helper-into-template.js.map +1 -1
- package/lib/components/MenuItem/index.js +2 -3
- package/lib/components/MenuItem/index.js.map +1 -1
- package/lib/components/Modal/Modal.js +15 -14
- package/lib/components/Modal/Modal.js.map +1 -1
- package/lib/components/Modal/index.js +2 -3
- package/lib/components/Modal/index.js.map +1 -1
- package/lib/components/ModalAdapter/ModalAdapter.js +7 -8
- package/lib/components/ModalAdapter/ModalAdapter.js.map +1 -1
- package/lib/components/ModalAdapter/index.js +3 -17
- package/lib/components/ModalAdapter/index.js.map +1 -1
- package/lib/components/SearchContent/SearchContent.js +78 -91
- package/lib/components/SearchContent/SearchContent.js.map +1 -1
- package/lib/components/SearchContent/SearchContentItems.js +28 -31
- package/lib/components/SearchContent/SearchContentItems.js.map +1 -1
- package/lib/components/SearchContent/SearchContentResults.js +18 -17
- package/lib/components/SearchContent/SearchContentResults.js.map +1 -1
- package/lib/components/SearchContent/SearchContentToggleIcon.js +15 -17
- package/lib/components/SearchContent/SearchContentToggleIcon.js.map +1 -1
- package/lib/components/SearchContent/constants.js +2 -3
- package/lib/components/SearchContent/constants.js.map +1 -1
- package/lib/components/SearchContent/index.js +2 -3
- package/lib/components/SearchContent/index.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/CloseMobileForm.js +12 -11
- package/lib/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/FiltersList.js +44 -52
- package/lib/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/MobileFormToolbar.js +14 -13
- package/lib/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/ResetDesktopForm.js +12 -11
- package/lib/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/SearchFilter.js +95 -125
- package/lib/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/index.js +2 -3
- package/lib/components/SearchFilter/SearchFilter/index.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilterContainer.js +133 -150
- package/lib/components/SearchFilter/SearchFilterContainer.js.map +1 -1
- package/lib/components/SearchFilter/components/Checkbox.js +66 -83
- package/lib/components/SearchFilter/components/Checkbox.js.map +1 -1
- package/lib/components/SearchFilter/components/Range.js +79 -82
- package/lib/components/SearchFilter/components/Range.js.map +1 -1
- package/lib/components/SearchFilter/components/Select.js +46 -48
- package/lib/components/SearchFilter/components/Select.js.map +1 -1
- package/lib/components/SearchFilter/components/TextSearch.js +41 -39
- package/lib/components/SearchFilter/components/TextSearch.js.map +1 -1
- package/lib/components/SearchFilter/components/index.js +8 -9
- package/lib/components/SearchFilter/components/index.js.map +1 -1
- package/lib/components/SearchFilter/constants.js +29 -30
- package/lib/components/SearchFilter/constants.js.map +1 -1
- package/lib/components/SearchFilter/helpers/build-list-name-query.js +9 -19
- package/lib/components/SearchFilter/helpers/build-list-name-query.js.map +1 -1
- package/lib/components/SearchFilter/helpers/build-new-url.js +8 -9
- package/lib/components/SearchFilter/helpers/build-new-url.js.map +1 -1
- package/lib/components/SearchFilter/helpers/build-url-query.js +19 -33
- package/lib/components/SearchFilter/helpers/build-url-query.js.map +1 -1
- package/lib/components/SearchFilter/helpers/calculate-min-max.js +10 -10
- package/lib/components/SearchFilter/helpers/calculate-min-max.js.map +1 -1
- package/lib/components/SearchFilter/helpers/calculate-step.js +3 -6
- package/lib/components/SearchFilter/helpers/calculate-step.js.map +1 -1
- package/lib/components/SearchFilter/helpers/check-if-range-updated.js +7 -6
- package/lib/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -1
- package/lib/components/SearchFilter/helpers/decode-encode.js +4 -7
- package/lib/components/SearchFilter/helpers/decode-encode.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-display-value.js +4 -14
- package/lib/components/SearchFilter/helpers/get-display-value.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js +10 -17
- package/lib/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-filter-value-from-query.js +14 -14
- package/lib/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-filter-values.js +11 -15
- package/lib/components/SearchFilter/helpers/get-filter-values.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-initial-filter-values.js +13 -17
- package/lib/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-intersected-prop.js +3 -7
- package/lib/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-range-value.js +17 -24
- package/lib/components/SearchFilter/helpers/get-range-value.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-responsive-filter-classnames.js +17 -13
- package/lib/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-select-options.js +9 -11
- package/lib/components/SearchFilter/helpers/get-select-options.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-updated-filter-by.js +9 -21
- package/lib/components/SearchFilter/helpers/get-updated-filter-by.js.map +1 -1
- package/lib/components/SearchFilter/helpers/index.js +34 -35
- package/lib/components/SearchFilter/helpers/index.js.map +1 -1
- package/lib/components/SearchFilter/helpers/is-device-desktop.js +3 -6
- package/lib/components/SearchFilter/helpers/is-device-desktop.js.map +1 -1
- package/lib/components/SearchFilter/helpers/parse-filter-value.js +8 -14
- package/lib/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
- package/lib/components/SearchFilter/index.js +2 -3
- package/lib/components/SearchFilter/index.js.map +1 -1
- package/lib/components/SearchFilter/searchFilterReducer.js +10 -19
- package/lib/components/SearchFilter/searchFilterReducer.js.map +1 -1
- package/lib/components/SearchFilterSort/SearchFilterSort.js +49 -55
- package/lib/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
- package/lib/components/SearchFilterSort/constants.js +4 -5
- package/lib/components/SearchFilterSort/constants.js.map +1 -1
- package/lib/components/SearchFilterSort/helpers/handle-sort-update.js +26 -30
- package/lib/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
- package/lib/components/SearchFilterSort/helpers/index.js +4 -5
- package/lib/components/SearchFilterSort/helpers/index.js.map +1 -1
- package/lib/components/SearchFilterSort/helpers/update-sort.js +13 -27
- package/lib/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
- package/lib/components/SearchFilterSort/index.js +2 -3
- package/lib/components/SearchFilterSort/index.js.map +1 -1
- package/lib/components/SocialFollow/SFItem.js +18 -18
- package/lib/components/SocialFollow/SFItem.js.map +1 -1
- package/lib/components/SocialFollow/SocialFollow.js +17 -16
- package/lib/components/SocialFollow/SocialFollow.js.map +1 -1
- package/lib/components/SocialFollow/SocialFollowRender.js +15 -16
- package/lib/components/SocialFollow/SocialFollowRender.js.map +1 -1
- package/lib/components/SocialFollow/index.js +2 -3
- package/lib/components/SocialFollow/index.js.map +1 -1
- package/lib/components/SocialFollow/sf.config.js +4 -5
- package/lib/components/SocialFollow/sf.config.js.map +1 -1
- package/lib/components/SubMenu/SubMenu.js +10 -10
- package/lib/components/SubMenu/SubMenu.js.map +1 -1
- package/lib/components/SubMenu/index.js +2 -3
- package/lib/components/SubMenu/index.js.map +1 -1
- package/lib/components/TextBlock/TextBlockRender.js +12 -13
- package/lib/components/TextBlock/TextBlockRender.js.map +1 -1
- package/lib/components/TextBlock/index.js +22 -30
- package/lib/components/TextBlock/index.js.map +1 -1
- package/lib/components/Video/Video.js +46 -52
- package/lib/components/Video/Video.js.map +1 -1
- package/lib/components/Video/VideoContext.js +3 -4
- package/lib/components/Video/VideoContext.js.map +1 -1
- package/lib/components/Video/VideoModal.js +13 -28
- package/lib/components/Video/VideoModal.js.map +1 -1
- package/lib/components/Video/VideoRender.js +30 -36
- package/lib/components/Video/VideoRender.js.map +1 -1
- package/lib/components/Video/constants.js +1 -2
- package/lib/components/Video/constants.js.map +1 -1
- package/lib/components/Video/helpers/emit-gtm-event.js +11 -11
- package/lib/components/Video/helpers/emit-gtm-event.js.map +1 -1
- package/lib/components/Video/index.js +2 -3
- package/lib/components/Video/index.js.map +1 -1
- package/lib/components/Video/providers/Default.js +22 -24
- package/lib/components/Video/providers/Default.js.map +1 -1
- package/lib/components/Video/providers/JWPlayer/JWPlayerController.js +44 -46
- package/lib/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
- package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js +44 -56
- package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
- package/lib/components/Video/providers/Vimeo/VimeoProvider.js +41 -88
- package/lib/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
- package/lib/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js +8 -21
- package/lib/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js.map +1 -1
- package/lib/components/Video/providers/Vimeo/helpers/index.js +2 -3
- package/lib/components/Video/providers/Vimeo/helpers/index.js.map +1 -1
- package/lib/components/Video/providers/YouTube/YouTubeProvider.js +18 -18
- package/lib/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
- package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js +101 -121
- package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
- package/lib/components/Video/providers/YouTube/helpers/index.js +17 -23
- package/lib/components/Video/providers/YouTube/helpers/index.js.map +1 -1
- package/lib/components/Video/providers/get-provider.js +10 -40
- package/lib/components/Video/providers/get-provider.js.map +1 -1
- package/lib/components/Video/providers/index.js +2 -3
- package/lib/components/Video/providers/index.js.map +1 -1
- package/lib/components/Wrapper.js +21 -21
- package/lib/components/Wrapper.js.map +1 -1
- package/lib/components/index.js +34 -164
- package/lib/components/index.js.map +1 -1
- package/lib/constants/componentsDefaultValues.js +5 -7
- package/lib/constants/componentsDefaultValues.js.map +1 -1
- package/lib/constants/index.js +110 -112
- package/lib/constants/index.js.map +1 -1
- package/lib/helpers/append-images.js +20 -30
- package/lib/helpers/append-images.js.map +1 -1
- package/lib/helpers/build-az-filter.js +12 -13
- package/lib/helpers/build-az-filter.js.map +1 -1
- package/lib/helpers/build-checkbox-filters.js +17 -20
- package/lib/helpers/build-checkbox-filters.js.map +1 -1
- package/lib/helpers/build-filters-query.js +50 -57
- package/lib/helpers/build-filters-query.js.map +1 -1
- package/lib/helpers/build-image-properties.js +21 -23
- package/lib/helpers/build-image-properties.js.map +1 -1
- package/lib/helpers/build-inherited-filters.js +41 -53
- package/lib/helpers/build-inherited-filters.js.map +1 -1
- package/lib/helpers/build-link-extra-props.js +10 -11
- package/lib/helpers/build-link-extra-props.js.map +1 -1
- package/lib/helpers/build-props-query.js +70 -111
- package/lib/helpers/build-props-query.js.map +1 -1
- package/lib/helpers/build-query-fields.js +13 -10
- package/lib/helpers/build-query-fields.js.map +1 -1
- package/lib/helpers/build-query-key.js +6 -8
- package/lib/helpers/build-query-key.js.map +1 -1
- package/lib/helpers/build-raw-query-base.js +59 -80
- package/lib/helpers/build-raw-query-base.js.map +1 -1
- package/lib/helpers/build-raw-query-stringified.js +9 -15
- package/lib/helpers/build-raw-query-stringified.js.map +1 -1
- package/lib/helpers/build-raw-query.js +72 -86
- package/lib/helpers/build-raw-query.js.map +1 -1
- package/lib/helpers/build-search-values-checkbox-select.js +54 -76
- package/lib/helpers/build-search-values-checkbox-select.js.map +1 -1
- package/lib/helpers/build-search-values-text.js +30 -36
- package/lib/helpers/build-search-values-text.js.map +1 -1
- package/lib/helpers/build-set-filters.js +24 -38
- package/lib/helpers/build-set-filters.js.map +1 -1
- package/lib/helpers/build-sort-values.js +18 -28
- package/lib/helpers/build-sort-values.js.map +1 -1
- package/lib/helpers/check-for-error.js +7 -13
- package/lib/helpers/check-for-error.js.map +1 -1
- package/lib/helpers/check-props-to-use.js +5 -11
- package/lib/helpers/check-props-to-use.js.map +1 -1
- package/lib/helpers/entities/constants.js +3 -4
- package/lib/helpers/entities/constants.js.map +1 -1
- package/lib/helpers/filter-query-setup.js +39 -48
- package/lib/helpers/filter-query-setup.js.map +1 -1
- package/lib/helpers/filters-setup.js +34 -35
- package/lib/helpers/filters-setup.js.map +1 -1
- package/lib/helpers/get-banner-data.js +12 -22
- package/lib/helpers/get-banner-data.js.map +1 -1
- package/lib/helpers/get-checkbox-filters.js +3 -4
- package/lib/helpers/get-checkbox-filters.js.map +1 -1
- package/lib/helpers/get-click-wrapper-options.js +28 -43
- package/lib/helpers/get-click-wrapper-options.js.map +1 -1
- package/lib/helpers/get-component-id.js +5 -9
- package/lib/helpers/get-component-id.js.map +1 -1
- package/lib/helpers/get-current-offset.js +4 -10
- package/lib/helpers/get-current-offset.js.map +1 -1
- package/lib/helpers/get-custom-html-properties.js +19 -0
- package/lib/helpers/get-custom-html-properties.js.map +1 -0
- package/lib/helpers/get-dictionary-match.js +4 -7
- package/lib/helpers/get-dictionary-match.js.map +1 -1
- package/lib/helpers/get-display-count-data.js +8 -10
- package/lib/helpers/get-display-count-data.js.map +1 -1
- package/lib/helpers/get-elasticsearch-operator.js +5 -7
- package/lib/helpers/get-elasticsearch-operator.js.map +1 -1
- package/lib/helpers/get-entities-with-banner.js +22 -28
- package/lib/helpers/get-entities-with-banner.js.map +1 -1
- package/lib/helpers/get-entity-data.js +15 -17
- package/lib/helpers/get-entity-data.js.map +1 -1
- package/lib/helpers/get-entity-render-props.js +16 -14
- package/lib/helpers/get-entity-render-props.js.map +1 -1
- package/lib/helpers/get-extra-az-bits.js +25 -23
- package/lib/helpers/get-extra-az-bits.js.map +1 -1
- package/lib/helpers/get-filter-props.js +46 -60
- package/lib/helpers/get-filter-props.js.map +1 -1
- package/lib/helpers/get-filter-relation-keys.js +8 -16
- package/lib/helpers/get-filter-relation-keys.js.map +1 -1
- package/lib/helpers/get-generic-props.js +9 -18
- package/lib/helpers/get-generic-props.js.map +1 -1
- package/lib/helpers/get-generic-render-variables.js +30 -45
- package/lib/helpers/get-generic-render-variables.js.map +1 -1
- package/lib/helpers/get-image-ids.js +12 -21
- package/lib/helpers/get-image-ids.js.map +1 -1
- package/lib/helpers/get-inherited-filters.js +6 -18
- package/lib/helpers/get-inherited-filters.js.map +1 -1
- package/lib/helpers/get-items-to-display-ids.js +6 -15
- package/lib/helpers/get-items-to-display-ids.js.map +1 -1
- package/lib/helpers/get-modifiers.js +8 -23
- package/lib/helpers/get-modifiers.js.map +1 -1
- package/lib/helpers/get-not-equal-query.js +1 -2
- package/lib/helpers/get-not-equal-query.js.map +1 -1
- package/lib/helpers/get-pagination-index.js +3 -6
- package/lib/helpers/get-pagination-index.js.map +1 -1
- package/lib/helpers/get-parsed-prop-values.js +28 -40
- package/lib/helpers/get-parsed-prop-values.js.map +1 -1
- package/lib/helpers/get-parsed-summary-value.js +5 -6
- package/lib/helpers/get-parsed-summary-value.js.map +1 -1
- package/lib/helpers/get-prop-values.js +13 -26
- package/lib/helpers/get-prop-values.js.map +1 -1
- package/lib/helpers/get-query-filters.js +12 -15
- package/lib/helpers/get-query-filters.js.map +1 -1
- package/lib/helpers/get-query-props.js +27 -32
- package/lib/helpers/get-query-props.js.map +1 -1
- package/lib/helpers/get-required-schemas.js +20 -37
- package/lib/helpers/get-required-schemas.js.map +1 -1
- package/lib/helpers/get-sanitized-prop-values.js +3 -10
- package/lib/helpers/get-sanitized-prop-values.js.map +1 -1
- package/lib/helpers/get-search-filter-type.js +10 -14
- package/lib/helpers/get-search-filter-type.js.map +1 -1
- package/lib/helpers/get-sort-by-field-name.js +15 -32
- package/lib/helpers/get-sort-by-field-name.js.map +1 -1
- package/lib/helpers/get-unpublished-entity-name.js +4 -14
- package/lib/helpers/get-unpublished-entity-name.js.map +1 -1
- package/lib/helpers/get-updated-filter-by.js +5 -8
- package/lib/helpers/get-updated-filter-by.js.map +1 -1
- package/lib/helpers/get-updated-items-to-display.js +17 -33
- package/lib/helpers/get-updated-items-to-display.js.map +1 -1
- package/lib/helpers/get-updated-sort-properties.js +8 -18
- package/lib/helpers/get-updated-sort-properties.js.map +1 -1
- package/lib/helpers/get-wrapped-value-with-link.js +14 -17
- package/lib/helpers/get-wrapped-value-with-link.js.map +1 -1
- package/lib/helpers/group-entities.js +4 -9
- package/lib/helpers/group-entities.js.map +1 -1
- package/lib/helpers/has-children.js +4 -7
- package/lib/helpers/has-children.js.map +1 -1
- package/lib/helpers/index.js +135 -129
- package/lib/helpers/index.js.map +1 -1
- package/lib/helpers/inject-banner.js +8 -10
- package/lib/helpers/inject-banner.js.map +1 -1
- package/lib/helpers/inject-banners-to-entities.js +11 -9
- package/lib/helpers/inject-banners-to-entities.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js +9 -12
- package/lib/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-entities/index.js +2 -3
- package/lib/helpers/inject-multiple-banners/get-banners-for-entities/index.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js +10 -22
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js +17 -24
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js +2 -3
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/index.js +2 -3
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/index.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/index.js +2 -3
- package/lib/helpers/inject-multiple-banners/index.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/inject-multiple-banners.js +6 -6
- package/lib/helpers/inject-multiple-banners/inject-multiple-banners.js.map +1 -1
- package/lib/helpers/is-browser.js +3 -6
- package/lib/helpers/is-browser.js.map +1 -1
- package/lib/helpers/is-filter-entitys-id.js +5 -9
- package/lib/helpers/is-filter-entitys-id.js.map +1 -1
- package/lib/helpers/is-object.js +3 -9
- package/lib/helpers/is-object.js.map +1 -1
- package/lib/helpers/is-using-relation-image.js +3 -6
- package/lib/helpers/is-using-relation-image.js.map +1 -1
- package/lib/helpers/parse-TextBlock.js +18 -24
- package/lib/helpers/parse-TextBlock.js.map +1 -1
- package/lib/helpers/parse-interval.js +1 -2
- package/lib/helpers/parse-interval.js.map +1 -1
- package/lib/helpers/parse-props-to-display.js +24 -39
- package/lib/helpers/parse-props-to-display.js.map +1 -1
- package/lib/helpers/process-data-summary-value.js +26 -37
- package/lib/helpers/process-data-summary-value.js.map +1 -1
- package/lib/helpers/remove-extra-items.js +4 -5
- package/lib/helpers/remove-extra-items.js.map +1 -1
- package/lib/helpers/remove-unwanted-characters.js +11 -23
- package/lib/helpers/remove-unwanted-characters.js.map +1 -1
- package/lib/helpers/render-children.js +15 -36
- package/lib/helpers/render-children.js.map +1 -1
- package/lib/helpers/should-render-waypoint.js +3 -10
- package/lib/helpers/should-render-waypoint.js.map +1 -1
- package/lib/helpers/should-return.js +3 -11
- package/lib/helpers/should-return.js.map +1 -1
- package/lib/helpers/should-show-property.js +6 -8
- package/lib/helpers/should-show-property.js.map +1 -1
- package/lib/helpers/should-skip-single-query.js +3 -6
- package/lib/helpers/should-skip-single-query.js.map +1 -1
- package/lib/helpers/sort-response-data.js +7 -17
- package/lib/helpers/sort-response-data.js.map +1 -1
- package/lib/helpers/split-children.js +43 -52
- package/lib/helpers/split-children.js.map +1 -1
- package/lib/helpers/update-childrens-parent.js +12 -25
- package/lib/helpers/update-childrens-parent.js.map +1 -1
- package/lib/hooks/helpers/RenderComponent.js +53 -46
- package/lib/hooks/helpers/RenderComponent.js.map +1 -1
- package/lib/hooks/helpers/StoreImages.js +40 -71
- package/lib/hooks/helpers/StoreImages.js.map +1 -1
- package/lib/hooks/helpers/append-gtm-classname.js +28 -31
- package/lib/hooks/helpers/append-gtm-classname.js.map +1 -1
- package/lib/hooks/helpers/buildPBComponents.js +46 -71
- package/lib/hooks/helpers/buildPBComponents.js.map +1 -1
- package/lib/hooks/helpers/check-banner-insertion-set.js +10 -18
- package/lib/hooks/helpers/check-banner-insertion-set.js.map +1 -1
- package/lib/hooks/helpers/check-collisions.js +17 -20
- package/lib/hooks/helpers/check-collisions.js.map +1 -1
- package/lib/hooks/helpers/constants.js +4 -5
- package/lib/hooks/helpers/constants.js.map +1 -1
- package/lib/hooks/helpers/get-banner-index.js +3 -9
- package/lib/hooks/helpers/get-banner-index.js.map +1 -1
- package/lib/hooks/helpers/get-components-to-insert-by-type.js +16 -18
- package/lib/hooks/helpers/get-components-to-insert-by-type.js.map +1 -1
- package/lib/hooks/helpers/get-lightbox-images.js +17 -44
- package/lib/hooks/helpers/get-lightbox-images.js.map +1 -1
- package/lib/hooks/helpers/getComponent.js +1 -2
- package/lib/hooks/helpers/getComponent.js.map +1 -1
- package/lib/hooks/helpers/getVariant.js +9 -7
- package/lib/hooks/helpers/getVariant.js.map +1 -1
- package/lib/hooks/helpers/index.js +2 -3
- package/lib/hooks/helpers/index.js.map +1 -1
- package/lib/hooks/helpers/inject-element-components.js +33 -37
- package/lib/hooks/helpers/inject-element-components.js.map +1 -1
- package/lib/hooks/helpers/inject-textblock-banners.js +56 -62
- package/lib/hooks/helpers/inject-textblock-banners.js.map +1 -1
- package/lib/hooks/helpers/insert-banners.js +41 -58
- package/lib/hooks/helpers/insert-banners.js.map +1 -1
- package/lib/hooks/helpers/update-targetings.js +11 -9
- package/lib/hooks/helpers/update-targetings.js.map +1 -1
- package/lib/hooks/index.js +29 -23
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/use-app-event-hook.js +45 -0
- package/lib/hooks/use-app-event-hook.js.map +1 -0
- package/lib/hooks/use-app-sync-event-hook.js +21 -21
- package/lib/hooks/use-app-sync-event-hook.js.map +1 -1
- package/lib/hooks/use-banner-insertion.js +14 -14
- package/lib/hooks/use-banner-insertion.js.map +1 -1
- package/lib/hooks/use-check-mobile-screen.js +12 -18
- package/lib/hooks/use-check-mobile-screen.js.map +1 -1
- package/lib/hooks/use-filter-aggregation-values.js +19 -35
- package/lib/hooks/use-filter-aggregation-values.js.map +1 -1
- package/lib/hooks/use-get-entity-schema.js +20 -26
- package/lib/hooks/use-get-entity-schema.js.map +1 -1
- package/lib/hooks/use-get-entity-schemas-as-obj.js +7 -17
- package/lib/hooks/use-get-entity-schemas-as-obj.js.map +1 -1
- package/lib/hooks/use-get-image-id-from-relation.js +31 -34
- package/lib/hooks/use-get-image-id-from-relation.js.map +1 -1
- package/lib/hooks/use-get-images.js +20 -24
- package/lib/hooks/use-get-images.js.map +1 -1
- package/lib/hooks/use-get-single-entity-schema.js +16 -17
- package/lib/hooks/use-get-single-entity-schema.js.map +1 -1
- package/lib/hooks/use-page-builder.js +8 -30
- package/lib/hooks/use-page-builder.js.map +1 -1
- package/lib/hooks/use-portal.js +6 -15
- package/lib/hooks/use-portal.js.map +1 -1
- package/lib/index.js +44 -45
- package/lib/index.js.map +1 -1
- package/lib/system-components/EditorMode/BlazeLogo.js +75 -0
- package/lib/system-components/EditorMode/BlazeLogo.js.map +1 -0
- package/lib/system-components/EditorMode/PbWrapper.js +42 -0
- package/lib/system-components/EditorMode/PbWrapper.js.map +1 -0
- package/lib/system-components/EditorMode/constants.js +9 -0
- package/lib/system-components/EditorMode/constants.js.map +1 -0
- package/lib/system-components/EditorMode/helpers/add-editor-mode-event-listeners.js +100 -0
- package/lib/system-components/EditorMode/helpers/add-editor-mode-event-listeners.js.map +1 -0
- package/lib/system-components/EditorMode/helpers/check-is-over-blaze-icon.js +25 -0
- package/lib/system-components/EditorMode/helpers/check-is-over-blaze-icon.js.map +1 -0
- package/lib/system-components/index.js +11 -0
- package/lib/system-components/index.js.map +1 -0
- package/lib/translations.js +4 -5
- package/lib/translations.js.map +1 -1
- package/lib/utils/component-map.js +12 -18
- package/lib/utils/component-map.js.map +1 -1
- package/lib/utils/get-class-modifiers.js +43 -55
- package/lib/utils/get-class-modifiers.js.map +1 -1
- package/lib/utils/get-image-data.js +7 -15
- package/lib/utils/get-image-data.js.map +1 -1
- package/lib/utils/get-props-to-display-modifiers.js +5 -10
- package/lib/utils/get-props-to-display-modifiers.js.map +1 -1
- package/lib/utils/index.js +12 -13
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/is-object-empty.js +1 -3
- package/lib/utils/is-object-empty.js.map +1 -1
- package/lib/utils/variant-handler.js +8 -15
- package/lib/utils/variant-handler.js.map +1 -1
- package/lib/variants/FloatingSideButton/index.js +7 -19
- package/lib/variants/FloatingSideButton/index.js.map +1 -1
- package/lib/variants/HeroImage/index.js +7 -19
- package/lib/variants/HeroImage/index.js.map +1 -1
- package/lib/variants/Infographic/Infographic.js +10 -10
- package/lib/variants/Infographic/Infographic.js.map +1 -1
- package/lib/variants/Infographic/index.js +7 -30
- package/lib/variants/Infographic/index.js.map +1 -1
- package/lib/variants/Infographic/useInfographic.js +16 -29
- package/lib/variants/Infographic/useInfographic.js.map +1 -1
- package/lib/variants/LiveBlogList/LiveBlogList.js +49 -74
- package/lib/variants/LiveBlogList/LiveBlogList.js.map +1 -1
- package/lib/variants/LiveBlogList/index.js +9 -32
- package/lib/variants/LiveBlogList/index.js.map +1 -1
- package/lib/variants/LongformGallery/LongformGallery.js +28 -34
- package/lib/variants/LongformGallery/LongformGallery.js.map +1 -1
- package/lib/variants/LongformGallery/LongformGalleryImage.js +34 -39
- package/lib/variants/LongformGallery/LongformGalleryImage.js.map +1 -1
- package/lib/variants/LongformGallery/constants.js +11 -7
- package/lib/variants/LongformGallery/constants.js.map +1 -1
- package/lib/variants/LongformGallery/helpers/index.js +6 -7
- package/lib/variants/LongformGallery/helpers/index.js.map +1 -1
- package/lib/variants/LongformGallery/helpers/parseImageData.js +11 -20
- package/lib/variants/LongformGallery/helpers/parseImageData.js.map +1 -1
- package/lib/variants/LongformGallery/helpers/separateImages.js +9 -13
- package/lib/variants/LongformGallery/helpers/separateImages.js.map +1 -1
- package/lib/variants/LongformGallery/helpers/shouldSkip.js +3 -7
- package/lib/variants/LongformGallery/helpers/shouldSkip.js.map +1 -1
- package/lib/variants/LongformGallery/index.js +9 -32
- package/lib/variants/LongformGallery/index.js.map +1 -1
- package/lib/variants/LongformGallery/useLongformGallery.js +36 -41
- package/lib/variants/LongformGallery/useLongformGallery.js.map +1 -1
- package/lib/variants/LongformRow/index.js +7 -19
- package/lib/variants/LongformRow/index.js.map +1 -1
- package/lib/variants/ParallaxImageTextRight/index.js +8 -20
- package/lib/variants/ParallaxImageTextRight/index.js.map +1 -1
- package/lib/variants/SlideSummary/SlideSummary.js +10 -9
- package/lib/variants/SlideSummary/SlideSummary.js.map +1 -1
- package/lib/variants/SlideSummary/index.js +7 -30
- package/lib/variants/SlideSummary/index.js.map +1 -1
- package/lib/variants/ThumbnailCarousel/ThumbnailCarousel.js +30 -37
- package/lib/variants/ThumbnailCarousel/ThumbnailCarousel.js.map +1 -1
- package/lib/variants/ThumbnailCarousel/ThumbnailImage/ThumbnailImage.js +15 -15
- package/lib/variants/ThumbnailCarousel/ThumbnailImage/ThumbnailImage.js.map +1 -1
- package/lib/variants/ThumbnailCarousel/ThumbnailImage/index.js +2 -3
- package/lib/variants/ThumbnailCarousel/ThumbnailImage/index.js.map +1 -1
- package/lib/variants/ThumbnailCarousel/ThumbnailImage/useThumbnailImage.js +46 -46
- package/lib/variants/ThumbnailCarousel/ThumbnailImage/useThumbnailImage.js.map +1 -1
- package/lib/variants/ThumbnailCarousel/index.js +7 -30
- package/lib/variants/ThumbnailCarousel/index.js.map +1 -1
- package/lib/variants/ThumbnailCarousel/useThumbnailCarousel.js +25 -37
- package/lib/variants/ThumbnailCarousel/useThumbnailCarousel.js.map +1 -1
- package/lib/variants/index.js +11 -12
- package/lib/variants/index.js.map +1 -1
- package/lib-es/HOC/recreateOnNavigation.js.map +1 -1
- package/lib-es/HOC/withTitle.js +1 -1
- package/lib-es/HOC/withTitle.js.map +1 -1
- package/lib-es/application/query/index.js.map +1 -1
- package/lib-es/components/BackToTop/BackToTop.js +2 -2
- package/lib-es/components/BackToTop/BackToTop.js.map +1 -1
- package/lib-es/components/Banner/AdSlotRender.js.map +1 -1
- package/lib-es/components/Banner/Banner.js.map +1 -1
- package/lib-es/components/Banner/BannerRender.js.map +1 -1
- package/lib-es/components/Banner/helpers.js.map +1 -1
- package/lib-es/components/Banner/index.js +1 -1
- package/lib-es/components/Banner/index.js.map +1 -1
- package/lib-es/components/Breadcrumb/Breadcrumb.js.map +1 -1
- package/lib-es/components/Button.js.map +1 -1
- package/lib-es/components/Card/Card.js.map +1 -1
- package/lib-es/components/Card/CardsFactory.js.map +1 -1
- package/lib-es/components/Card/CardsRender.js +16 -6
- package/lib-es/components/Card/CardsRender.js.map +1 -1
- package/lib-es/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -1
- package/lib-es/components/Carousel/Carousel.js +39 -9
- package/lib-es/components/Carousel/Carousel.js.map +1 -1
- package/lib-es/components/Carousel/CarouselImage/CarouselImage.js +2 -1
- package/lib-es/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
- package/lib-es/components/CarouselWrapper/DefaultCarousel.js.map +1 -1
- package/lib-es/components/CarouselWrapper/SmoothScrollCarousel.js.map +1 -1
- package/lib-es/components/ContentGroup/ContentGroup.js +22 -5
- package/lib-es/components/ContentGroup/ContentGroup.js.map +1 -1
- package/lib-es/components/ContentGroup/ContentGroupAccordion.js.map +1 -1
- package/lib-es/components/ContentGroup/ContentGroupTabs.js +0 -1
- package/lib-es/components/ContentGroup/ContentGroupTabs.js.map +1 -1
- package/lib-es/components/ContentGroup/helpers/get-active-tab.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryFactory.js +3 -2
- package/lib-es/components/DataSummary/DataSummaryFactory.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/index.js +5 -5
- package/lib-es/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/get-prop-value.js.map +1 -1
- 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.map +1 -1
- package/lib-es/components/DataSummary/helpers/index.js +2 -1
- package/lib-es/components/DataSummary/helpers/index.js.map +1 -1
- package/lib-es/components/EmailConfirm/EmailConfirm.js +4 -4
- package/lib-es/components/EmailConfirm/EmailConfirm.js.map +1 -1
- package/lib-es/components/EmailConfirm/mutation.js.map +1 -1
- package/lib-es/components/ErrorMessage/index.js +1 -1
- package/lib-es/components/ErrorMessage/index.js.map +1 -1
- package/lib-es/components/Iframe/Iframe.js.map +1 -1
- package/lib-es/components/Image/GlobalLightbox/GlobalLightbox.js +5 -5
- package/lib-es/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
- package/lib-es/components/Image/GlobalLightbox/NavButton.js +2 -2
- package/lib-es/components/Image/GlobalLightbox/NavButton.js.map +1 -1
- package/lib-es/components/Image/GlobalLightbox/index.js +1 -1
- package/lib-es/components/Image/GlobalLightbox/index.js.map +1 -1
- package/lib-es/components/Image/Image.js.map +1 -1
- package/lib-es/components/Image/ImageFactory.js.map +1 -1
- package/lib-es/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
- package/lib-es/components/ItemList/ItemListNew/ItemListNew.js.map +1 -1
- package/lib-es/components/ItemList/helpers/get-item-list-id.js.map +1 -1
- package/lib-es/components/ItemList/helpers/set-item-list-id.js.map +1 -1
- package/lib-es/components/ItemList/hooks/use-item-list-id.js.map +1 -1
- package/lib-es/components/Layout/Layout.js +14 -5
- package/lib-es/components/Layout/Layout.js.map +1 -1
- package/lib-es/components/Layout/LayoutFactory.js +1 -1
- package/lib-es/components/Layout/LayoutFactory.js.map +1 -1
- package/lib-es/components/Layout/LayoutWithStickyTimer.js.map +1 -1
- package/lib-es/components/Layout/helpers/get-styles-to-update.js.map +1 -1
- package/lib-es/components/LazyImage/index.js +1 -1
- package/lib-es/components/LazyImage/index.js.map +1 -1
- package/lib-es/components/List/ListBuilder.js +1 -1
- package/lib-es/components/List/ListBuilder.js.map +1 -1
- package/lib-es/components/List/ListFactory.js.map +1 -1
- package/lib-es/components/List/ListRender.js.map +1 -1
- package/lib-es/components/List/components/Full/FullRenderItem.js.map +1 -1
- package/lib-es/components/List/components/Header/ListHeader.js.map +1 -1
- package/lib-es/components/List/components/Pagination/Classic.js.map +1 -1
- package/lib-es/components/List/components/Pagination/ListPagination.js.map +1 -1
- package/lib-es/components/List/components/Pagination/LoadMore.js +2 -2
- package/lib-es/components/List/components/Pagination/LoadMore.js.map +1 -1
- package/lib-es/components/List/helpers/build-az-url.js.map +1 -1
- package/lib-es/components/List/helpers/build-pagination-items.js.map +1 -1
- package/lib-es/components/List/helpers/build-pagination-url.js.map +1 -1
- package/lib-es/components/List/helpers/build-query-booster.js +9 -6
- package/lib-es/components/List/helpers/build-query-booster.js.map +1 -1
- package/lib-es/components/List/helpers/get-az-query-filter.js.map +1 -1
- package/lib-es/components/List/helpers/get-list-query.js.map +1 -1
- package/lib-es/components/List/helpers/sort-aggs.js.map +1 -1
- package/lib-es/components/Loading/Loading.js.map +1 -1
- package/lib-es/components/Loading/index.js +1 -1
- package/lib-es/components/Loading/index.js.map +1 -1
- package/lib-es/components/Menu/Menu.js +1 -4
- package/lib-es/components/Menu/Menu.js.map +1 -1
- package/lib-es/components/Menu/MenuContext.js +1 -2
- package/lib-es/components/Menu/MenuContext.js.map +1 -1
- package/lib-es/components/MenuItem/MenuItemRender.js +11 -25
- package/lib-es/components/MenuItem/MenuItemRender.js.map +1 -1
- package/lib-es/components/MenuItem/helpers/index.js +1 -3
- package/lib-es/components/MenuItem/helpers/index.js.map +1 -1
- package/lib-es/components/MenuItem/helpers/inject-helper-into-template.js +14 -2
- package/lib-es/components/MenuItem/helpers/inject-helper-into-template.js.map +1 -1
- package/lib-es/components/ModalAdapter/ModalAdapter.js +1 -1
- package/lib-es/components/ModalAdapter/ModalAdapter.js.map +1 -1
- package/lib-es/components/ModalAdapter/index.js +1 -1
- package/lib-es/components/ModalAdapter/index.js.map +1 -1
- package/lib-es/components/SearchContent/SearchContent.js +8 -2
- package/lib-es/components/SearchContent/SearchContent.js.map +1 -1
- package/lib-es/components/SearchContent/SearchContentResults.js +2 -1
- package/lib-es/components/SearchContent/SearchContentResults.js.map +1 -1
- package/lib-es/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
- package/lib-es/components/SearchFilter/SearchFilterContainer.js.map +1 -1
- package/lib-es/components/SearchFilter/components/Checkbox.js.map +1 -1
- package/lib-es/components/SearchFilter/components/Range.js.map +1 -1
- package/lib-es/components/SearchFilter/components/Select.js.map +1 -1
- package/lib-es/components/SearchFilter/constants.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/build-list-name-query.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/build-new-url.js +3 -2
- package/lib-es/components/SearchFilter/helpers/build-new-url.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/build-url-query.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/get-updated-filter-by.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
- package/lib-es/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
- package/lib-es/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
- package/lib-es/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
- package/lib-es/components/SocialFollow/SFItem.js.map +1 -1
- package/lib-es/components/Video/Video.js.map +1 -1
- package/lib-es/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
- package/lib-es/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js.map +1 -1
- package/lib-es/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
- package/lib-es/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
- package/lib-es/components/Video/providers/YouTube/helpers/index.js.map +1 -1
- package/lib-es/components/Video/providers/get-provider.js +5 -5
- package/lib-es/components/Video/providers/get-provider.js.map +1 -1
- package/lib-es/components/Wrapper.js +2 -2
- package/lib-es/components/Wrapper.js.map +1 -1
- package/lib-es/components/index.js +30 -30
- package/lib-es/components/index.js.map +1 -1
- package/lib-es/constants/componentsDefaultValues.js.map +1 -1
- package/lib-es/constants/index.js.map +1 -1
- package/lib-es/helpers/build-az-filter.js.map +1 -1
- package/lib-es/helpers/build-filters-query.js.map +1 -1
- package/lib-es/helpers/build-inherited-filters.js.map +1 -1
- package/lib-es/helpers/build-props-query.js.map +1 -1
- package/lib-es/helpers/build-query-fields.js.map +1 -1
- package/lib-es/helpers/build-query-key.js.map +1 -1
- package/lib-es/helpers/build-raw-query-base.js.map +1 -1
- package/lib-es/helpers/build-raw-query-stringified.js.map +1 -1
- package/lib-es/helpers/build-search-values-checkbox-select.js +1 -1
- package/lib-es/helpers/build-search-values-checkbox-select.js.map +1 -1
- package/lib-es/helpers/build-sort-values.js.map +1 -1
- package/lib-es/helpers/get-component-id.js +1 -1
- package/lib-es/helpers/get-component-id.js.map +1 -1
- package/lib-es/helpers/get-current-offset.js +1 -1
- package/lib-es/helpers/get-current-offset.js.map +1 -1
- package/lib-es/helpers/get-custom-html-properties.js +13 -0
- package/lib-es/helpers/get-custom-html-properties.js.map +1 -0
- package/lib-es/helpers/get-display-count-data.js.map +1 -1
- package/lib-es/helpers/get-entity-data.js.map +1 -1
- package/lib-es/helpers/get-extra-az-bits.js.map +1 -1
- package/lib-es/helpers/get-image-ids.js +2 -0
- package/lib-es/helpers/get-image-ids.js.map +1 -1
- package/lib-es/helpers/get-inherited-filters.js.map +1 -1
- package/lib-es/helpers/get-modifiers.js.map +1 -1
- package/lib-es/helpers/get-pagination-index.js.map +1 -1
- package/lib-es/helpers/get-query-props.js.map +1 -1
- package/lib-es/helpers/get-sort-by-field-name.js.map +1 -1
- package/lib-es/helpers/get-wrapped-value-with-link.js.map +1 -1
- package/lib-es/helpers/index.js +1 -0
- package/lib-es/helpers/index.js.map +1 -1
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js.map +1 -1
- package/lib-es/helpers/is-filter-entitys-id.js.map +1 -1
- package/lib-es/helpers/process-data-summary-value.js +1 -1
- package/lib-es/helpers/remove-unwanted-characters.js.map +1 -1
- package/lib-es/hooks/helpers/RenderComponent.js +14 -2
- package/lib-es/hooks/helpers/RenderComponent.js.map +1 -1
- package/lib-es/hooks/helpers/StoreImages.js +2 -2
- package/lib-es/hooks/helpers/StoreImages.js.map +1 -1
- package/lib-es/hooks/helpers/append-gtm-classname.js.map +1 -1
- package/lib-es/hooks/helpers/buildPBComponents.js.map +1 -1
- package/lib-es/hooks/helpers/get-components-to-insert-by-type.js.map +1 -1
- package/lib-es/hooks/helpers/inject-textblock-banners.js +1 -1
- package/lib-es/hooks/helpers/inject-textblock-banners.js.map +1 -1
- package/lib-es/hooks/helpers/insert-banners.js.map +1 -1
- package/lib-es/hooks/helpers/update-targetings.js.map +1 -1
- package/lib-es/hooks/index.js +1 -0
- package/lib-es/hooks/index.js.map +1 -1
- package/lib-es/hooks/use-app-event-hook.js +39 -0
- package/lib-es/hooks/use-app-event-hook.js.map +1 -0
- package/lib-es/hooks/use-app-sync-event-hook.js.map +1 -1
- package/lib-es/hooks/use-check-mobile-screen.js.map +1 -1
- package/lib-es/hooks/use-get-entity-schema.js.map +1 -1
- package/lib-es/hooks/use-get-image-id-from-relation.js +11 -4
- package/lib-es/hooks/use-get-image-id-from-relation.js.map +1 -1
- package/lib-es/hooks/use-page-builder.js +1 -1
- package/lib-es/hooks/use-page-builder.js.map +1 -1
- 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/utils/component-map.js.map +1 -1
- package/lib-es/utils/get-class-modifiers.js.map +1 -1
- package/lib-es/utils/variant-handler.js.map +1 -1
- package/lib-es/variants/Infographic/index.js +1 -1
- package/lib-es/variants/Infographic/index.js.map +1 -1
- package/lib-es/variants/Infographic/useInfographic.js.map +1 -1
- package/lib-es/variants/LiveBlogList/LiveBlogList.js.map +1 -1
- package/lib-es/variants/LiveBlogList/index.js +1 -1
- package/lib-es/variants/LiveBlogList/index.js.map +1 -1
- package/lib-es/variants/LongformGallery/LongformGallery.js.map +1 -1
- package/lib-es/variants/LongformGallery/LongformGalleryImage.js.map +1 -1
- package/lib-es/variants/LongformGallery/constants.js.map +1 -1
- package/lib-es/variants/LongformGallery/index.js +1 -1
- package/lib-es/variants/LongformGallery/index.js.map +1 -1
- package/lib-es/variants/SlideSummary/index.js +1 -1
- package/lib-es/variants/SlideSummary/index.js.map +1 -1
- package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/ThumbnailImage.js.map +1 -1
- package/lib-es/variants/ThumbnailCarousel/index.js +1 -1
- package/lib-es/variants/ThumbnailCarousel/index.js.map +1 -1
- package/package.json +29 -30
- package/src/HOC/recreateOnNavigation.js +3 -3
- package/src/HOC/withTitle.js +5 -5
- package/src/components/BackToTop/BackToTop.js +10 -15
- package/src/components/Banner/BannerRender.js +0 -2
- package/src/components/Breadcrumb/Breadcrumb.js +5 -1
- package/src/components/Button.js +3 -6
- package/src/components/Card/CardsFactory.js +8 -7
- package/src/components/Card/CardsRender.js +28 -13
- package/src/components/Carousel/Carousel.js +46 -9
- package/src/components/Carousel/CarouselImage/CarouselImage.js +3 -1
- package/src/components/CarouselWrapper/DefaultCarousel.js +20 -26
- package/src/components/ContentGroup/ContentGroup.js +21 -7
- package/src/components/ContentGroup/ContentGroupAccordion.js +5 -8
- package/src/components/ContentGroup/ContentGroupTabs.js +4 -8
- package/src/components/DataSummary/DataSummaryFactory.js +4 -2
- package/src/components/DataSummary/DataSummaryTypes/index.js +14 -10
- package/src/components/DataSummary/helpers/get-record-id.js +14 -0
- package/src/components/DataSummary/helpers/index.js +3 -1
- package/src/components/EmailConfirm/EmailConfirm.js +9 -11
- package/src/components/ErrorMessage/index.js +2 -2
- package/src/components/Image/GlobalLightbox/GlobalLightbox.js +76 -80
- package/src/components/Image/GlobalLightbox/NavButton.js +12 -15
- package/src/components/Image/GlobalLightbox/index.js +2 -2
- package/src/components/Image/Image.js +6 -4
- package/src/components/Image/ImageFactory.js +5 -5
- package/src/components/ItemList/hooks/use-item-list-id.js +10 -13
- package/src/components/Layout/Layout.js +14 -3
- package/src/components/Layout/LayoutFactory.js +2 -2
- package/src/components/Layout/LayoutWithStickyTimer.js +11 -14
- package/src/components/List/ListBuilder.js +1 -1
- package/src/components/List/ListFactory.js +10 -11
- package/src/components/List/ListRender.js +8 -6
- package/src/components/List/components/Full/FullRenderItem.js +3 -4
- package/src/components/List/components/Pagination/ListPagination.js +3 -6
- package/src/components/List/components/Pagination/LoadMore.js +7 -9
- package/src/components/List/helpers/build-query-booster.js +12 -6
- package/src/components/List/helpers/sort-aggs.js +1 -2
- package/src/components/Menu/Menu.js +13 -19
- package/src/components/Menu/MenuContext.js +1 -1
- package/src/components/MenuItem/MenuItemRender.js +18 -44
- package/src/components/MenuItem/helpers/index.js +1 -3
- package/src/components/MenuItem/helpers/inject-helper-into-template.js +12 -2
- package/src/components/ModalAdapter/index.js +2 -2
- package/src/components/SearchContent/SearchContent.js +37 -37
- package/src/components/SearchContent/SearchContentResults.js +1 -1
- package/src/components/SearchFilter/SearchFilter/SearchFilter.js +15 -19
- package/src/components/SearchFilter/helpers/build-new-url.js +3 -2
- package/src/components/Video/providers/Vimeo/VimeoProvider.js +19 -22
- package/src/components/Video/providers/YouTube/YoutubeEmbeded.js +58 -64
- package/src/components/Video/providers/get-provider.js +4 -4
- package/src/components/Wrapper.js +5 -7
- package/src/components/index.js +20 -20
- package/src/constants/index.js +2 -1
- package/src/helpers/build-search-values-checkbox-select.js +1 -1
- package/src/helpers/get-component-id.js +1 -1
- package/src/helpers/get-current-offset.js +1 -1
- package/src/helpers/get-custom-html-properties.js +11 -0
- package/src/helpers/get-image-ids.js +3 -0
- package/src/helpers/get-wrapped-value-with-link.js +1 -1
- package/src/helpers/index.js +1 -0
- package/src/helpers/remove-unwanted-characters.js +1 -4
- package/src/hooks/helpers/RenderComponent.js +5 -0
- package/src/hooks/helpers/buildPBComponents.js +2 -4
- package/src/hooks/helpers/get-components-to-insert-by-type.js +3 -1
- package/src/hooks/helpers/inject-textblock-banners.js +2 -8
- package/src/hooks/index.js +1 -0
- package/src/hooks/use-app-event-hook.js +34 -0
- package/src/hooks/use-check-mobile-screen.js +5 -8
- package/src/hooks/use-get-entity-schema.js +5 -1
- package/src/hooks/use-get-image-id-from-relation.js +16 -4
- package/src/hooks/use-page-builder.js +9 -12
- package/src/system-components/EditorMode/BlazeLogo.js +48 -0
- package/src/system-components/EditorMode/PbWrapper.js +27 -0
- package/src/system-components/EditorMode/constants.js +2 -0
- package/src/system-components/EditorMode/helpers/add-editor-mode-event-listeners.js +101 -0
- package/src/system-components/EditorMode/helpers/check-is-over-blaze-icon.js +24 -0
- package/src/system-components/index.js +3 -0
- package/src/variants/Infographic/index.js +2 -2
- package/src/variants/LiveBlogList/LiveBlogList.js +24 -30
- package/src/variants/LiveBlogList/index.js +2 -2
- package/src/variants/LongformGallery/LongformGallery.js +2 -8
- package/src/variants/LongformGallery/index.js +2 -2
- package/src/variants/SlideSummary/index.js +2 -2
- package/src/variants/ThumbnailCarousel/ThumbnailImage/ThumbnailImage.js +2 -3
- package/src/variants/ThumbnailCarousel/index.js +2 -2
- package/CHANGELOG.md +0 -2524
- package/babel.config.js +0 -3
- package/example.env +0 -4
- package/jest.config.js +0 -5
- 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/lib-es/components/MenuItem/helpers/has-active-child.js +0 -5
- package/lib-es/components/MenuItem/helpers/has-active-child.js.map +0 -1
- package/lib-es/components/MenuItem/helpers/isUrlPathMatch.js +0 -8
- package/lib-es/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/helpers/mocks.js +0 -2494
- package/tests/unit/src/BannerContext/helpers/set-initial-banner-counters.test.js +0 -48
- package/tests/unit/src/HOC/__snapshots__/withInfiniteScroll.test.js.snap +0 -9
- package/tests/unit/src/HOC/recreateOnNavigation.test.js +0 -28
- package/tests/unit/src/HOC/withInfiniteScroll.test.js +0 -26
- package/tests/unit/src/HOC/withTitle.test.js +0 -50
- package/tests/unit/src/Layout/Layout.test.js +0 -119
- package/tests/unit/src/Layout/__snapshots__/Layout.test.js.snap +0 -24
- package/tests/unit/src/Layout/getMockedProps.js +0 -19
- package/tests/unit/src/Layout/helpers/check-if-row-has-columns.test.js +0 -49
- package/tests/unit/src/Layout/helpers/get-styles-to-update.test.js +0 -23
- package/tests/unit/src/Layout/helpers/has-children.test.js +0 -38
- package/tests/unit/src/components/BackToTop/BackToTop.test.js +0 -23
- package/tests/unit/src/components/BackToTop/__snapshots__/BackToTop.test.js.snap +0 -3
- package/tests/unit/src/components/Banner/AdSlotRender.test.js +0 -80
- package/tests/unit/src/components/Banner/Banner.test.js +0 -60
- package/tests/unit/src/components/Banner/BannerRender.test.js +0 -126
- package/tests/unit/src/components/Banner/__snapshots__/AdSlotRender.test.js.snap +0 -80
- package/tests/unit/src/components/Banner/__snapshots__/Banner.test.js.snap +0 -7
- package/tests/unit/src/components/Banner/__snapshots__/BannerRender.test.js.snap +0 -15
- package/tests/unit/src/components/Banner/__snapshots__/helpers.test.js.snap +0 -3
- package/tests/unit/src/components/Banner/helpers.test.js +0 -244
- package/tests/unit/src/components/BlazeLink.test.js +0 -71
- package/tests/unit/src/components/Breadcrumb/Breadcrumb.test.js +0 -106
- package/tests/unit/src/components/Breadcrumb/__snapshots__/Breadcrumb.test.js.snap +0 -85
- package/tests/unit/src/components/Button.test.js +0 -143
- package/tests/unit/src/components/Card/Card.test.js +0 -229
- package/tests/unit/src/components/Card/CardContainer.test.js +0 -62
- package/tests/unit/src/components/Card/__snapshots__/Card.test.js.snap +0 -465
- package/tests/unit/src/components/Card/__snapshots__/CardContainer.test.js.snap +0 -189
- package/tests/unit/src/components/Card/helpers/append-images.test.js +0 -36
- package/tests/unit/src/components/Card/helpers/get-dynamic-grid-classes.test.js +0 -29
- package/tests/unit/src/components/Card/helpers/get-updated-items-to-display.test.js +0 -72
- package/tests/unit/src/components/Card/helpers/getPublishedListingUrl.test.js +0 -23
- package/tests/unit/src/components/Card/helpers/useDynamicSizeKey.test.js +0 -14
- package/tests/unit/src/components/Card/mockData.js +0 -196
- package/tests/unit/src/components/Carousel/Carousel.test.js +0 -114
- package/tests/unit/src/components/Carousel/CarouselImage/CarouselImage.test.js +0 -48
- package/tests/unit/src/components/Carousel/CarouselImage/__snapshots__/CarouselImage.test.js.snap +0 -17
- package/tests/unit/src/components/Carousel/CarouselImage/helpers.js +0 -9
- package/tests/unit/src/components/Carousel/CarouselImage/mocks.js +0 -38
- package/tests/unit/src/components/Carousel/CarouselRender/CarouselRender.test.js +0 -73
- package/tests/unit/src/components/Carousel/CarouselRender/__snapshots__/CarouselRender.test.js.snap +0 -3
- package/tests/unit/src/components/Carousel/__snapshots__/Carousel.test.js.snap +0 -94
- package/tests/unit/src/components/CarouselWrapper.test.js +0 -54
- package/tests/unit/src/components/ClickWrapper.test.js +0 -22
- package/tests/unit/src/components/Code/Code.test.js +0 -46
- package/tests/unit/src/components/Code/ScriptTag.test.js +0 -21
- package/tests/unit/src/components/Code/__snapshots__/Code.test.js.snap +0 -37
- package/tests/unit/src/components/Code/__snapshots__/ScriptTag.test.js.snap +0 -24
- package/tests/unit/src/components/Code/helpers/wrap-script-tags.test.js +0 -31
- package/tests/unit/src/components/Code.test.js +0 -29
- package/tests/unit/src/components/ContentGroup/ContentGroup.test.js +0 -46
- package/tests/unit/src/components/ContentGroup/ContentGroupAccordion.test.js +0 -283
- package/tests/unit/src/components/ContentGroup/ContentGroupTabs.test.js +0 -32
- package/tests/unit/src/components/ContentGroup/__snapshots__/ContentGroup.test.js.snap +0 -5
- package/tests/unit/src/components/ContentGroup/__snapshots__/ContentGroupAccordion.test.js.snap +0 -243
- package/tests/unit/src/components/ContentGroup/__snapshots__/ContentGroupTabs.test.js.snap +0 -123
- package/tests/unit/src/components/ContentGroup/helpers/get-active-tab.test.js +0 -28
- package/tests/unit/src/components/ContentGroup/helpers/get-sections-data.test.js +0 -30
- package/tests/unit/src/components/ContentGroup/helpers/get-structured-data-properties.test.js +0 -105
- package/tests/unit/src/components/ContentGroupSection/ContentGroupSection.test.js +0 -20
- package/tests/unit/src/components/ContentGroupSection/__snapshots__/ContentGroupSection.test.js.snap +0 -15
- package/tests/unit/src/components/DataSummary/DataSummaryFactory.test.js +0 -67
- package/tests/unit/src/components/DataSummary/DataSummaryRender.test.js +0 -41
- package/tests/unit/src/components/DataSummary/DataSummaryTypes/HeadingLargeSummary.test.js +0 -33
- package/tests/unit/src/components/DataSummary/DataSummaryTypes/ItemDetailsSummary.test.js +0 -23
- package/tests/unit/src/components/DataSummary/DataSummaryTypes/LargeSummary.test.js +0 -23
- package/tests/unit/src/components/DataSummary/DataSummaryTypes/ListSummary.test.js +0 -23
- package/tests/unit/src/components/DataSummary/DataSummaryTypes/TextSummary.test.js +0 -23
- package/tests/unit/src/components/DataSummary/DataSummaryTypes/__snapshots__/HeadingLargeSummary.test.js.snap +0 -11
- package/tests/unit/src/components/DataSummary/DataSummaryTypes/__snapshots__/ItemDetailsSummary.test.js.snap +0 -69
- package/tests/unit/src/components/DataSummary/DataSummaryTypes/__snapshots__/LargeSummary.test.js.snap +0 -109
- package/tests/unit/src/components/DataSummary/DataSummaryTypes/__snapshots__/ListSummary.test.js.snap +0 -101
- package/tests/unit/src/components/DataSummary/DataSummaryTypes/__snapshots__/TextSummary.test.js.snap +0 -57
- package/tests/unit/src/components/DataSummary/__snapshots__/DataSummaryFactory.test.js.snap +0 -11
- package/tests/unit/src/components/DataSummary/__snapshots__/DataSummaryRender.test.js.snap +0 -67
- package/tests/unit/src/components/DataSummary/helpers/build-loop-props-content.test.js +0 -134
- package/tests/unit/src/components/DataSummary/helpers/build-props-to-display-with-content.test.js +0 -52
- package/tests/unit/src/components/DataSummary/helpers/get-data-summary-query.test.js +0 -35
- package/tests/unit/src/components/DataSummary/helpers/get-link-based-on-value.test.js +0 -58
- package/tests/unit/src/components/DataSummary/helpers/get-link-props.test.js +0 -35
- package/tests/unit/src/components/DataSummary/helpers/get-link-to-published-content.test.js +0 -62
- package/tests/unit/src/components/DataSummary/helpers/get-loop-props-limit.test.js +0 -32
- package/tests/unit/src/components/DataSummary/helpers/get-prop-value.test.js +0 -67
- package/tests/unit/src/components/DataSummary/helpers/get-value-from-array.test.js +0 -46
- package/tests/unit/src/components/DataSummary/helpers/mocks.js +0 -90
- package/tests/unit/src/components/DataSummary/helpers/parse-boolean-values.test.js +0 -28
- package/tests/unit/src/components/DataSummary/helpers/strip-summary-props-content.test.js +0 -40
- package/tests/unit/src/components/DataSummary/mockData.js +0 -47
- package/tests/unit/src/components/DateTime/DateTime.test.js +0 -129
- package/tests/unit/src/components/EmailConfirm/EmailConfirm.test.js +0 -53
- package/tests/unit/src/components/EmailConfirm/__snapshots__/EmailConfirm.test.js.snap +0 -13
- package/tests/unit/src/components/Iframe/Iframe.test.js +0 -21
- package/tests/unit/src/components/Iframe/__snapshots__/Iframe.test.js.snap +0 -21
- package/tests/unit/src/components/Image/GlobalLightbox/GlobalLightbox.test.js +0 -123
- package/tests/unit/src/components/Image/GlobalLightbox/NavButton.test.js +0 -44
- package/tests/unit/src/components/Image/GlobalLightbox/__snapshots__/GlobalLightbox.test.js.snap +0 -101
- package/tests/unit/src/components/Image/GlobalLightbox/__snapshots__/NavButton.test.js.snap +0 -15
- package/tests/unit/src/components/Image/GlobalLightbox/getMockedLightboxProps.js +0 -15
- package/tests/unit/src/components/Image/GlobalLightbox/mocks.js +0 -39
- package/tests/unit/src/components/Image/Image.test.js +0 -213
- package/tests/unit/src/components/Image/ImageDetails.test.js +0 -41
- package/tests/unit/src/components/Image/ImageFactory.test.js +0 -120
- package/tests/unit/src/components/Image/ImageRender.test.js +0 -54
- package/tests/unit/src/components/Image/Lightbox/Lightbox.test.js +0 -64
- package/tests/unit/src/components/Image/Lightbox/__snapshots__/Lightbox.test.js.snap +0 -17
- package/tests/unit/src/components/Image/Lightbox/mocks.js +0 -21
- package/tests/unit/src/components/Image/__snapshots__/Image.test.js.snap +0 -74
- package/tests/unit/src/components/Image/__snapshots__/ImageDetails.test.js.snap +0 -10
- package/tests/unit/src/components/Image/__snapshots__/ImageFactory.test.js.snap +0 -93
- package/tests/unit/src/components/Image/__snapshots__/ImageRender.test.js.snap +0 -41
- package/tests/unit/src/components/Image/mocks.js +0 -255
- package/tests/unit/src/components/ItemList/ItemListButton.test.js +0 -178
- package/tests/unit/src/components/ItemList/ItemListCounter.test.js +0 -68
- package/tests/unit/src/components/ItemList/ItemListNew.test.js +0 -167
- package/tests/unit/src/components/ItemList/__snapshots__/ItemListButton.test.js.snap +0 -219
- package/tests/unit/src/components/ItemList/__snapshots__/ItemListCounter.test.js.snap +0 -62
- package/tests/unit/src/components/ItemList/__snapshots__/ItemListNew.test.js.snap +0 -27
- package/tests/unit/src/components/ItemList/helpers/get-item-list-data.test.js +0 -28
- package/tests/unit/src/components/ItemList/helpers/get-item-list-id.test.js +0 -20
- package/tests/unit/src/components/ItemList/helpers/get-item-list-ids.test.js +0 -19
- package/tests/unit/src/components/ItemList/helpers/set-item-list-id.test.js +0 -16
- package/tests/unit/src/components/ItemList/helpers/set-param-and-redirect.test.js +0 -30
- package/tests/unit/src/components/ItemList/hooks/use-item-list-id.test.js +0 -35
- package/tests/unit/src/components/Layout/Layout.test.js +0 -99
- package/tests/unit/src/components/Layout/LayoutFactory.test.js +0 -53
- package/tests/unit/src/components/Layout/__snapshots__/Layout.test.js.snap +0 -67
- package/tests/unit/src/components/LazyImage/LazyImage.test.js +0 -46
- package/tests/unit/src/components/LazyImage/__snapshots__/LazyImage.test.js.snap +0 -31
- package/tests/unit/src/components/List/ListRender.test.js +0 -65
- package/tests/unit/src/components/List/__snapshots__/ListRender.test.js.snap +0 -38
- package/tests/unit/src/components/List/components/Cards/CardsRender.test.js +0 -30
- package/tests/unit/src/components/List/components/Cards/CardsRenderItem.test.js +0 -19
- package/tests/unit/src/components/List/components/Cards/CardsRenderWrapper.test.js +0 -31
- package/tests/unit/src/components/List/components/Cards/__snapshots__/CardsRender.test.js.snap +0 -155
- package/tests/unit/src/components/List/components/Cards/__snapshots__/CardsRenderItem.test.js.snap +0 -13
- package/tests/unit/src/components/List/components/Cards/__snapshots__/CardsRenderWrapper.test.js.snap +0 -31
- package/tests/unit/src/components/List/components/Cards/helpers/check-if-should-render-gtm.test.js +0 -39
- package/tests/unit/src/components/List/components/Full/FullRender.test.js +0 -37
- package/tests/unit/src/components/List/components/Full/FullRenderItem.test.js +0 -32
- package/tests/unit/src/components/List/components/Full/__snapshots__/FullRender.test.js.snap +0 -51
- package/tests/unit/src/components/List/components/Full/__snapshots__/FullRenderItem.test.js.snap +0 -52
- package/tests/unit/src/components/List/components/Header/ListHeader.test.js +0 -28
- package/tests/unit/src/components/List/components/Header/__snapshots__/ListHeader.test.js.snap +0 -45
- package/tests/unit/src/components/List/components/Pagination/Classic.test.js +0 -21
- package/tests/unit/src/components/List/components/Pagination/ListPagination.test.js +0 -86
- package/tests/unit/src/components/List/components/Pagination/LoadMore.test.js +0 -22
- package/tests/unit/src/components/List/components/Pagination/__snapshots__/Classic.test.js.snap +0 -53
- package/tests/unit/src/components/List/components/Pagination/__snapshots__/ListPagination.test.js.snap +0 -51
- package/tests/unit/src/components/List/components/Pagination/__snapshots__/LoadMore.test.js.snap +0 -13
- package/tests/unit/src/components/List/components/helpers/check-if-should-render-banner.test.js +0 -75
- package/tests/unit/src/components/List/components/index.test.js +0 -15
- package/tests/unit/src/components/List/components/mocks.js +0 -56
- package/tests/unit/src/components/List/helpers/__snapshots__/build-pagination-items.test.js.snap +0 -325
- package/tests/unit/src/components/List/helpers/build-az-aggregations.test.js +0 -33
- package/tests/unit/src/components/List/helpers/build-az-url.test.js +0 -11
- package/tests/unit/src/components/List/helpers/build-pagination-items.test.js +0 -40
- package/tests/unit/src/components/List/helpers/build-pagination-url.test.js +0 -16
- package/tests/unit/src/components/List/helpers/build-query-booster.test.js +0 -33
- package/tests/unit/src/components/List/helpers/get-az-query-filter.test.js +0 -17
- package/tests/unit/src/components/List/helpers/get-items-per-page-to-use.test.js +0 -24
- package/tests/unit/src/components/List/helpers/get-list-component.test.js +0 -21
- package/tests/unit/src/components/List/helpers/get-list-query.test.js +0 -55
- package/tests/unit/src/components/List/helpers/get-sort-props.test.js +0 -109
- package/tests/unit/src/components/List/helpers/has-required-item-list-details.test.js +0 -30
- package/tests/unit/src/components/List/helpers/sort-aggs.test.js +0 -46
- package/tests/unit/src/components/Loading/Loading.test.js +0 -29
- package/tests/unit/src/components/Loading/__snapshots__/Loading.test.js.snap +0 -31
- package/tests/unit/src/components/Menu/Menu.test.js +0 -28
- package/tests/unit/src/components/Menu/__snapshots__/Menu.test.js.snap +0 -23
- package/tests/unit/src/components/MenuItem/MenuEntitiesItem.test.js +0 -23
- package/tests/unit/src/components/MenuItem/MenuItem.test.js +0 -58
- package/tests/unit/src/components/MenuItem/MenuItemRender.test.js +0 -114
- package/tests/unit/src/components/MenuItem/SubMenu.test.js +0 -30
- package/tests/unit/src/components/MenuItem/__snapshots__/MenuEntitiesItem.test.js.snap +0 -3
- package/tests/unit/src/components/MenuItem/__snapshots__/MenuItem.test.js.snap +0 -49
- package/tests/unit/src/components/MenuItem/__snapshots__/SubMenu.test.js.snap +0 -17
- 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/inject-helper-into-template.test.js +0 -44
- package/tests/unit/src/components/MenuItem/helpers/is-url-path-match.test.js +0 -53
- package/tests/unit/src/components/MenuItem/mocks.js +0 -71
- package/tests/unit/src/components/Modal/Modal.test.js +0 -45
- package/tests/unit/src/components/Modal/__snapshots__/Modal.test.js.snap +0 -17
- package/tests/unit/src/components/PlaceholderIcon/__snapshots__/index.test.js.snap +0 -87
- package/tests/unit/src/components/PlaceholderIcon/index.test.js +0 -20
- package/tests/unit/src/components/SearchContent/SearchContent.test.js +0 -57
- package/tests/unit/src/components/SearchContent/__snapshots__/SearchContent.test.js.snap +0 -73
- package/tests/unit/src/components/SearchFilter/SearchFilter/CloseMobileForm.test.js +0 -35
- package/tests/unit/src/components/SearchFilter/SearchFilter/FiltersList.test.js +0 -15
- package/tests/unit/src/components/SearchFilter/SearchFilter/MobileFormToolbar.test.js +0 -37
- package/tests/unit/src/components/SearchFilter/SearchFilter/ResetDesktopForm.test.js +0 -43
- package/tests/unit/src/components/SearchFilter/SearchFilter/SearchFilter.test.js +0 -179
- package/tests/unit/src/components/SearchFilter/SearchFilter/__snapshots__/CloseMobileForm.test.js.snap +0 -35
- package/tests/unit/src/components/SearchFilter/SearchFilter/__snapshots__/MobileFormToolbar.test.js.snap +0 -25
- package/tests/unit/src/components/SearchFilter/SearchFilter/__snapshots__/ResetDesktopForm.test.js.snap +0 -39
- package/tests/unit/src/components/SearchFilter/SearchFilter/__snapshots__/SearchFilter.test.js.snap +0 -767
- package/tests/unit/src/components/SearchFilter/SearchFilterContainer.test.js +0 -38
- package/tests/unit/src/components/SearchFilter/__snapshots__/SearchFilterContainer.test.js.snap +0 -5
- package/tests/unit/src/components/SearchFilter/components/Checkbox.test.js +0 -34
- package/tests/unit/src/components/SearchFilter/components/Range.test.js +0 -132
- package/tests/unit/src/components/SearchFilter/components/Select.test.js +0 -96
- package/tests/unit/src/components/SearchFilter/components/TextSearch.test.js +0 -34
- package/tests/unit/src/components/SearchFilter/components/__snapshots__/Checkbox.test.js.snap +0 -60
- package/tests/unit/src/components/SearchFilter/components/__snapshots__/Range.test.js.snap +0 -341
- package/tests/unit/src/components/SearchFilter/components/__snapshots__/Select.test.js.snap +0 -68
- package/tests/unit/src/components/SearchFilter/components/__snapshots__/TextSearch.test.js.snap +0 -58
- package/tests/unit/src/components/SearchFilter/helpers/build-new-url.test.js +0 -31
- package/tests/unit/src/components/SearchFilter/helpers/build-query.test.js +0 -56
- package/tests/unit/src/components/SearchFilter/helpers/calculate-min-max.test.js +0 -21
- package/tests/unit/src/components/SearchFilter/helpers/calculate-step.test.js +0 -21
- package/tests/unit/src/components/SearchFilter/helpers/check-if-range-updated.test.js +0 -27
- package/tests/unit/src/components/SearchFilter/helpers/get-display-value.test.js +0 -38
- package/tests/unit/src/components/SearchFilter/helpers/get-filter-value-from-query.test.js +0 -28
- package/tests/unit/src/components/SearchFilter/helpers/get-initial-filter-values.test.js +0 -50
- package/tests/unit/src/components/SearchFilter/helpers/get-intersected-prop.test.js +0 -12
- package/tests/unit/src/components/SearchFilter/helpers/get-range-value.test.js +0 -24
- package/tests/unit/src/components/SearchFilter/helpers/get-select-options.test.js +0 -40
- package/tests/unit/src/components/SearchFilter/helpers/get-updated-filter-by.test.js +0 -28
- package/tests/unit/src/components/SearchFilter/helpers/is-device-desktop.test.js +0 -31
- package/tests/unit/src/components/SearchFilter/helpers/parse-filter-value.test.js +0 -35
- package/tests/unit/src/components/SearchFilterSort/SearchFilterSort.test.js +0 -27
- package/tests/unit/src/components/SearchFilterSort/__snapshots__/SearchFilterSort.test.js.snap +0 -28
- package/tests/unit/src/components/SearchFilterSort/helpers/handle-sort-update.test.js +0 -53
- package/tests/unit/src/components/SearchFilterSort/helpers/update-sort.test.js +0 -25
- package/tests/unit/src/components/SocialFollow/SFItem.test.js +0 -22
- package/tests/unit/src/components/SocialFollow/SocialFollow.test.js +0 -38
- package/tests/unit/src/components/SocialFollow/__snapshots__/SFItem.test.js.snap +0 -38
- package/tests/unit/src/components/SocialFollow/__snapshots__/SocialFollow.test.js.snap +0 -74
- package/tests/unit/src/components/TextBlock/TextBlock.test.js +0 -82
- package/tests/unit/src/components/TextBlock/__snapshots__/TextBlock.test.js.snap +0 -89
- package/tests/unit/src/components/Video/Video.test.js +0 -74
- package/tests/unit/src/components/Video/VideoModal.test.js +0 -18
- package/tests/unit/src/components/Video/__snapshots__/Video.test.js.snap +0 -59
- package/tests/unit/src/components/Video/__snapshots__/VideoModal.test.js.snap +0 -14
- package/tests/unit/src/components/Video/providers/Default.test.js +0 -22
- package/tests/unit/src/components/Video/providers/JWPlayer/JWPlayerProvider.test.js +0 -49
- package/tests/unit/src/components/Video/providers/JWPlayer/__snapshots__/JWPlayerProvider.test.js.snap +0 -13
- package/tests/unit/src/components/Video/providers/JWPlayer/mocks.js +0 -40
- package/tests/unit/src/components/Video/providers/Vimeo/Vimeo.test.js +0 -13
- package/tests/unit/src/components/Video/providers/Vimeo/__snapshots__/Vimeo.test.js.snap +0 -10
- package/tests/unit/src/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.test.js +0 -24
- package/tests/unit/src/components/Video/providers/YouTube/YouTubeProvider.test.js +0 -15
- package/tests/unit/src/components/Video/providers/YouTube/__snapshots__/YouTubeProvider.test.js.snap +0 -27
- package/tests/unit/src/components/Video/providers/YouTube/helpers/index.test.js +0 -23
- package/tests/unit/src/components/Video/providers/__snapshots__/Default.test.js.snap +0 -165
- package/tests/unit/src/components/Video/providers/get-provider.test.js +0 -36
- package/tests/unit/src/components/Wrapper.test.js +0 -39
- package/tests/unit/src/components/__snapshots__/BlazeLink.test.js.snap +0 -15
- package/tests/unit/src/components/__snapshots__/Button.test.js.snap +0 -18
- package/tests/unit/src/components/__snapshots__/CarouselWrapper.test.js.snap +0 -162
- package/tests/unit/src/components/__snapshots__/ClickWrapper.test.js.snap +0 -13
- package/tests/unit/src/components/__snapshots__/Code.test.js.snap +0 -13
- package/tests/unit/src/components/__snapshots__/Wrapper.test.js.snap +0 -34
- package/tests/unit/src/components/__snapshots__/index.test.js.snap +0 -130
- package/tests/unit/src/components/index.test.js +0 -7
- package/tests/unit/src/constants/__snapshots__/componentsDefaultValues.test.js.snap +0 -21
- package/tests/unit/src/constants/__snapshots__/index.test.js.snap +0 -3
- package/tests/unit/src/constants/componentsDefaultValues.test.js +0 -8
- package/tests/unit/src/constants/index.test.js +0 -7
- package/tests/unit/src/helpers/__snapshots__/build-query-fields.test.js.snap +0 -29
- package/tests/unit/src/helpers/__snapshots__/get-extra-az-bits.test.js.snap +0 -137
- package/tests/unit/src/helpers/__snapshots__/get-wrapped-value-with-link.test.js.snap +0 -18
- package/tests/unit/src/helpers/__snapshots__/parse-textBlock.test.js.snap +0 -15
- package/tests/unit/src/helpers/build-az-query.test.js +0 -26
- package/tests/unit/src/helpers/build-checkbox-filters.test.js +0 -27
- package/tests/unit/src/helpers/build-image-properties.test.js +0 -51
- package/tests/unit/src/helpers/build-inherited-filters.test.js +0 -112
- package/tests/unit/src/helpers/build-link-extra-props.test.js +0 -41
- package/tests/unit/src/helpers/build-props-query.test.js +0 -228
- package/tests/unit/src/helpers/build-query-fields.test.js +0 -25
- package/tests/unit/src/helpers/build-raw-query-base.test.js +0 -169
- package/tests/unit/src/helpers/build-raw-query-stringified.test.js +0 -49
- package/tests/unit/src/helpers/build-raw-query.test.js +0 -474
- package/tests/unit/src/helpers/build-search-values-checkbox-select.test.js +0 -174
- package/tests/unit/src/helpers/build-search-values-text.test.js +0 -57
- package/tests/unit/src/helpers/build-set-filters.test.js +0 -84
- package/tests/unit/src/helpers/build-sort-values.test.js +0 -54
- package/tests/unit/src/helpers/check-for-error.test.js +0 -33
- package/tests/unit/src/helpers/check-props-to-use.test.js +0 -32
- package/tests/unit/src/helpers/get-banner-data.test.js +0 -32
- package/tests/unit/src/helpers/get-card-entities.test.js +0 -27
- package/tests/unit/src/helpers/get-checkbox-filters.test.js +0 -33
- package/tests/unit/src/helpers/get-click-wrapper-options.test.js +0 -81
- package/tests/unit/src/helpers/get-component-id.test.js +0 -36
- package/tests/unit/src/helpers/get-current-offset.test.js +0 -39
- package/tests/unit/src/helpers/get-dictionary-match.test.js +0 -14
- package/tests/unit/src/helpers/get-display-count-data.test.js +0 -49
- package/tests/unit/src/helpers/get-elasticsearch-operator.test.js +0 -20
- package/tests/unit/src/helpers/get-entity-data.test.js +0 -47
- package/tests/unit/src/helpers/get-entity-render-props.test.js +0 -37
- package/tests/unit/src/helpers/get-extra-az-bits.test.js +0 -51
- package/tests/unit/src/helpers/get-filter-props.test.js +0 -82
- package/tests/unit/src/helpers/get-filter-relation-keys.test.js +0 -22
- package/tests/unit/src/helpers/get-generic-props.test.js +0 -21
- package/tests/unit/src/helpers/get-generic-render-variables.test.js +0 -150
- package/tests/unit/src/helpers/get-image-ids.test.js +0 -80
- package/tests/unit/src/helpers/get-inherited-filters.test.js +0 -27
- package/tests/unit/src/helpers/get-items-to-display-ids.test.js +0 -59
- package/tests/unit/src/helpers/get-modifiers.test.js +0 -46
- package/tests/unit/src/helpers/get-not-equal-query.test.js +0 -23
- package/tests/unit/src/helpers/get-pagination-index.test.js +0 -31
- package/tests/unit/src/helpers/get-parsed-prop-values.test.js +0 -66
- package/tests/unit/src/helpers/get-parsed-summary-value.test.js +0 -26
- package/tests/unit/src/helpers/get-prop-values.test.js +0 -38
- package/tests/unit/src/helpers/get-query-filters.test.js +0 -104
- package/tests/unit/src/helpers/get-query-props.test.js +0 -45
- package/tests/unit/src/helpers/get-required-schemas.test.js +0 -56
- package/tests/unit/src/helpers/get-sanitized-prop-values.test.js +0 -26
- package/tests/unit/src/helpers/get-search-filter-type.test.js +0 -47
- package/tests/unit/src/helpers/get-sort-by-field-name.test.js +0 -57
- package/tests/unit/src/helpers/get-unpublished-entity-name.test.js +0 -33
- package/tests/unit/src/helpers/get-updated-filter-by.test.js +0 -44
- package/tests/unit/src/helpers/get-wrapped-value-with-link.test.js +0 -39
- package/tests/unit/src/helpers/group-entities.test.js +0 -34
- package/tests/unit/src/helpers/inject-banner.test.js +0 -39
- package/tests/unit/src/helpers/inject-banners-to-entities.test.js +0 -47
- package/tests/unit/src/helpers/inject-multiple-banners.test.js +0 -45
- package/tests/unit/src/helpers/is-filter-entitys-id.test.js +0 -23
- package/tests/unit/src/helpers/is-object.test.js +0 -21
- package/tests/unit/src/helpers/is-using-relation-image.test.js +0 -12
- package/tests/unit/src/helpers/parse-interval.test.js +0 -27
- package/tests/unit/src/helpers/parse-props-to-display.test.js +0 -73
- package/tests/unit/src/helpers/parse-textBlock.test.js +0 -31
- package/tests/unit/src/helpers/prcoess-data-summary-value.test.js +0 -52
- package/tests/unit/src/helpers/remove-extra-items.test.js +0 -30
- package/tests/unit/src/helpers/remove-unwanted-characters.test.js +0 -70
- package/tests/unit/src/helpers/render-children.test.js +0 -71
- package/tests/unit/src/helpers/should-render-waypoint.test.js +0 -23
- package/tests/unit/src/helpers/should-show-property.test.js +0 -20
- package/tests/unit/src/helpers/sort-response-data.test.js +0 -24
- package/tests/unit/src/helpers/update-childrens-parent.test.js +0 -41
- package/tests/unit/src/hooks/helpers/StoreImages.test.js +0 -26
- package/tests/unit/src/hooks/helpers/append-gtm-classname.test.js +0 -50
- package/tests/unit/src/hooks/helpers/check-banner-insertion-set.test.js +0 -48
- package/tests/unit/src/hooks/helpers/check-collisions.test.js +0 -44
- package/tests/unit/src/hooks/helpers/get-banner-index.test.js +0 -39
- package/tests/unit/src/hooks/helpers/get-components-to-insert-by-type.test.js +0 -38
- package/tests/unit/src/hooks/helpers/getComponent.test.js +0 -30
- package/tests/unit/src/hooks/helpers/inject-element-components.test.js +0 -103
- package/tests/unit/src/hooks/helpers/inject-textblock-banners.test.js +0 -125
- package/tests/unit/src/hooks/helpers/insert-banners.test.js +0 -127
- package/tests/unit/src/hooks/helpers/split-children.test.js +0 -78
- package/tests/unit/src/hooks/helpers/update-targetings.test.js +0 -13
- package/tests/unit/src/hooks/use-app-sync-evet-hook.test.js +0 -70
- package/tests/unit/src/hooks/use-check-mobile-screen.test.js +0 -40
- package/tests/unit/src/hooks/use-get-entity-schema-as-obj.test.js +0 -46
- package/tests/unit/src/hooks/use-get-image-id-from-relation.test.js +0 -92
- package/tests/unit/src/hooks/use-get-images.test.js +0 -165
- package/tests/unit/src/hooks/use-get-single-entity-schema.test.js +0 -78
- package/tests/unit/src/hooks/use-page-builder.test.js +0 -48
- package/tests/unit/src/utils/component-map.test.js +0 -56
- package/tests/unit/src/utils/get-class-modifiers.test.js +0 -116
- package/tests/unit/src/utils/get-image-data.test.js +0 -54
- package/tests/unit/src/utils/get-props-to-display-modifiers.test.js +0 -14
- package/tests/unit/src/utils/is-object-empty.test.js +0 -22
- package/tests/unit/src/utils/variant-handler.test.js +0 -46
- package/tests/unit/src/variants/Infographic/Infographic.test.js +0 -30
- package/tests/unit/src/variants/LiveBlogList/LiveBlogList.test.js +0 -121
- package/tests/unit/src/variants/LiveBlogList/constants.js +0 -10
- package/tests/unit/src/variants/LongFormGallery/LongformGallery.test.js +0 -42
- package/tests/unit/src/variants/LongFormGallery/LongformGalleryImage.test.js +0 -44
- package/tests/unit/src/variants/LongFormGallery/__snapshots__/LongformGallery.test.js.snap +0 -99
- package/tests/unit/src/variants/LongFormGallery/__snapshots__/LongformGalleryImage.test.js.snap +0 -51
- package/tests/unit/src/variants/LongFormGallery/constants.js +0 -37
- package/tests/unit/src/variants/LongFormGallery/helpers/parseImageData.test.js +0 -53
- package/tests/unit/src/variants/LongFormGallery/helpers/separateImages.test.js +0 -52
- package/tests/unit/src/variants/LongFormGallery/helpers/shouldSkip.test.js +0 -23
- package/tests/unit/src/variants/LongFormGallery/useLongformGallery.test.js +0 -36
- package/tests/unit/src/variants/ThumbnailCarousel/ThumbnailCarousel.test.js +0 -29
- package/tests/unit/src/variants/ThumbnailCarousel/ThumbnailImage.test.js +0 -45
- package/tests/unit/src/variants/ThumbnailCarousel/__snapshots__/ThumbnailCarousel.test.js.snap +0 -71
- package/tests/unit/src/variants/ThumbnailCarousel/__snapshots__/ThumbnailImage.test.js.snap +0 -19
- package/tests/unit/src/variants/ThumbnailCarousel/mocks.js +0 -64
|
@@ -1,28 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
require("core-js/modules/es.symbol.js");
|
|
4
|
-
require("core-js/modules/es.array.filter.js");
|
|
5
|
-
require("core-js/modules/es.array.for-each.js");
|
|
6
|
-
require("core-js/modules/es.array.iterator.js");
|
|
7
|
-
require("core-js/modules/es.object.define-properties.js");
|
|
8
|
-
require("core-js/modules/es.object.define-property.js");
|
|
9
|
-
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
10
|
-
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
11
|
-
require("core-js/modules/es.object.keys.js");
|
|
12
|
-
require("core-js/modules/es.object.to-string.js");
|
|
13
|
-
require("core-js/modules/es.string.iterator.js");
|
|
14
|
-
require("core-js/modules/es.weak-map.js");
|
|
15
|
-
require("core-js/modules/web.dom-collections.for-each.js");
|
|
16
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
17
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
18
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
19
4
|
Object.defineProperty(exports, "__esModule", {
|
|
20
5
|
value: true
|
|
21
6
|
});
|
|
22
|
-
exports
|
|
23
|
-
require("core-js/modules/es.array.join.js");
|
|
24
|
-
require("core-js/modules/es.array.map.js");
|
|
25
|
-
require("core-js/modules/es.function.name.js");
|
|
7
|
+
exports.default = void 0;
|
|
26
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
27
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
28
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
@@ -38,51 +20,55 @@ var _helpers = require("./helpers");
|
|
|
38
20
|
var _helpers2 = require("../../helpers");
|
|
39
21
|
var _utils = require("../../utils");
|
|
40
22
|
var _helpers3 = require("../List/components/helpers");
|
|
41
|
-
|
|
23
|
+
const _excluded = ["cardData", "gridModifier", "style", "displayCategory", "displayThumbnail", "displayTitle", "modifier", "entity", "graphqlEntityMap", "propsToDisplay", "gtmChildren", "cardChildren", "name", "designConfig", "itemsPerRow", "enableSmoothScroll", "enableCarousel", "bannerModifier", "priorityLimit", "enableAutoScroll", "enableOverlay", "autoScrollTimer", "overlayModifier", "titleOverlayModifier", "VariantComponent"],
|
|
42
24
|
_excluded2 = ["baseAdunit", "id"];
|
|
43
|
-
function
|
|
44
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
25
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
45
26
|
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; }
|
|
46
|
-
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) { (0, _defineProperty2
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
27
|
+
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) { (0, _defineProperty2.default)(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; }
|
|
28
|
+
const CardContainer = _ref => {
|
|
29
|
+
let {
|
|
30
|
+
cardData,
|
|
31
|
+
gridModifier,
|
|
32
|
+
style,
|
|
33
|
+
displayCategory,
|
|
34
|
+
displayThumbnail,
|
|
35
|
+
displayTitle,
|
|
36
|
+
modifier,
|
|
37
|
+
entity: legacyEntity,
|
|
38
|
+
graphqlEntityMap,
|
|
39
|
+
propsToDisplay,
|
|
40
|
+
gtmChildren,
|
|
41
|
+
cardChildren,
|
|
42
|
+
name,
|
|
43
|
+
designConfig,
|
|
44
|
+
itemsPerRow,
|
|
45
|
+
enableSmoothScroll,
|
|
46
|
+
enableCarousel,
|
|
47
|
+
bannerModifier,
|
|
48
|
+
priorityLimit,
|
|
49
|
+
enableAutoScroll,
|
|
50
|
+
enableOverlay,
|
|
51
|
+
autoScrollTimer,
|
|
52
|
+
overlayModifier,
|
|
53
|
+
titleOverlayModifier,
|
|
54
|
+
VariantComponent
|
|
55
|
+
} = _ref,
|
|
56
|
+
cardProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
57
|
+
const {
|
|
58
|
+
itemId
|
|
59
|
+
} = (0, _react.useContext)(_nextjsComponents.MainContext);
|
|
60
|
+
const {
|
|
61
|
+
banner
|
|
62
|
+
} = cardProps;
|
|
77
63
|
// TODO: remove this check and all associated code once old banner setup is no longer supported
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
return /*#__PURE__*/_react
|
|
64
|
+
const hasNewBannerSettings = (0, _helpers3.checkNewBannerSettings)(banner);
|
|
65
|
+
const parsedCardsData = (0, _helpers2.getEntitiesWithBanner)(cardData, cardProps, hasNewBannerSettings);
|
|
66
|
+
const propsToDisplayModifiers = (0, _utils.getPropsToDisplayModifiers)(propsToDisplay);
|
|
67
|
+
const dynamicWrapperSizes = enableCarousel ? '' : (0, _helpers.getDynamicGridClasses)('grid', itemsPerRow, designConfig);
|
|
68
|
+
const InitialWrapper = enableCarousel ? _CarouselWrapper.default : _Wrapper.default;
|
|
69
|
+
const CardWrapper = VariantComponent || InitialWrapper;
|
|
70
|
+
let bannerIndex = 0;
|
|
71
|
+
return /*#__PURE__*/_react.default.createElement(CardWrapper, {
|
|
86
72
|
className: dynamicWrapperSizes,
|
|
87
73
|
modifiers: gridModifier,
|
|
88
74
|
itemsPerRow: itemsPerRow,
|
|
@@ -91,45 +77,47 @@ var CardContainer = function CardContainer(_ref) {
|
|
|
91
77
|
enableSmoothScroll: enableSmoothScroll,
|
|
92
78
|
autoScrollTimer: autoScrollTimer,
|
|
93
79
|
numberOfCards: parsedCardsData.length
|
|
94
|
-
}, parsedCardsData.map(
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
80
|
+
}, parsedCardsData.map((currentEntity, index) => {
|
|
81
|
+
const {
|
|
82
|
+
baseAdunit,
|
|
83
|
+
id
|
|
84
|
+
} = currentEntity,
|
|
85
|
+
entityProps = (0, _objectWithoutProperties2.default)(currentEntity, _excluded2);
|
|
86
|
+
const shouldRenderBanner = !!banner && (0, _helpers3.checkIfShouldRenderBanner)(index, banner);
|
|
87
|
+
const extraProps = (0, _helpers2.parsePropsToDisplay)(entityProps, propsToDisplay);
|
|
88
|
+
const dynamicKey = [itemId, index].join('-');
|
|
89
|
+
const priority = !!enableSmoothScroll || priorityLimit > 0 && index + 1 <= priorityLimit;
|
|
102
90
|
if (hasNewBannerSettings && shouldRenderBanner) bannerIndex += 1;
|
|
103
91
|
if (!hasNewBannerSettings && baseAdunit) bannerIndex += 1;
|
|
104
|
-
|
|
92
|
+
const parsedCardProps = _objectSpread({
|
|
105
93
|
key: id,
|
|
106
|
-
id
|
|
107
|
-
enableCarousel
|
|
108
|
-
graphqlEntityMap
|
|
109
|
-
propsToDisplay
|
|
94
|
+
id,
|
|
95
|
+
enableCarousel,
|
|
96
|
+
graphqlEntityMap,
|
|
97
|
+
propsToDisplay,
|
|
110
98
|
parsedPropsToDisplay: extraProps,
|
|
111
|
-
propsToDisplayModifiers
|
|
112
|
-
modifier
|
|
113
|
-
style
|
|
114
|
-
cardChildren
|
|
115
|
-
gtmChildren
|
|
99
|
+
propsToDisplayModifiers,
|
|
100
|
+
modifier,
|
|
101
|
+
style,
|
|
102
|
+
cardChildren,
|
|
103
|
+
gtmChildren,
|
|
116
104
|
gtmId: name,
|
|
117
|
-
gridModifier
|
|
118
|
-
entityProps
|
|
119
|
-
displayCategory
|
|
120
|
-
displayThumbnail
|
|
121
|
-
displayTitle
|
|
122
|
-
priority
|
|
123
|
-
enableOverlay
|
|
124
|
-
overlayModifier
|
|
125
|
-
titleOverlayModifier
|
|
105
|
+
gridModifier,
|
|
106
|
+
entityProps,
|
|
107
|
+
displayCategory,
|
|
108
|
+
displayThumbnail,
|
|
109
|
+
displayTitle,
|
|
110
|
+
priority,
|
|
111
|
+
enableOverlay,
|
|
112
|
+
overlayModifier,
|
|
113
|
+
titleOverlayModifier
|
|
126
114
|
}, entityProps);
|
|
127
|
-
|
|
115
|
+
const bannerProps = _objectSpread(_objectSpread({}, banner), {}, {
|
|
128
116
|
type: 'banner'
|
|
129
117
|
});
|
|
130
|
-
if (hasNewBannerSettings) return /*#__PURE__*/_react
|
|
118
|
+
if (hasNewBannerSettings) return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Card.default, (0, _extends2.default)({
|
|
131
119
|
key: id
|
|
132
|
-
}, parsedCardProps)), shouldRenderBanner && /*#__PURE__*/_react
|
|
120
|
+
}, parsedCardProps)), shouldRenderBanner && /*#__PURE__*/_react.default.createElement(_Banner.default, (0, _extends2.default)({
|
|
133
121
|
key: dynamicKey,
|
|
134
122
|
entity: graphqlEntityMap[entityProps.__typename],
|
|
135
123
|
baseAdunit: baseAdunit
|
|
@@ -137,45 +125,45 @@ var CardContainer = function CardContainer(_ref) {
|
|
|
137
125
|
modifier: modifier,
|
|
138
126
|
renderCounter: bannerIndex
|
|
139
127
|
})));
|
|
140
|
-
return baseAdunit ? /*#__PURE__*/_react
|
|
128
|
+
return baseAdunit ? /*#__PURE__*/_react.default.createElement(_Banner.default, (0, _extends2.default)({
|
|
141
129
|
key: dynamicKey,
|
|
142
130
|
entity: graphqlEntityMap[entityProps.__typename],
|
|
143
131
|
baseAdunit: baseAdunit
|
|
144
132
|
}, entityProps, bannerProps, {
|
|
145
133
|
modifier: modifier,
|
|
146
134
|
renderCounter: bannerIndex
|
|
147
|
-
})) : /*#__PURE__*/_react
|
|
135
|
+
})) : /*#__PURE__*/_react.default.createElement(_Card.default, (0, _extends2.default)({
|
|
148
136
|
key: id
|
|
149
137
|
}, parsedCardProps));
|
|
150
138
|
}));
|
|
151
139
|
};
|
|
152
140
|
CardContainer.propTypes = {
|
|
153
|
-
pageBuilderComponents: _propTypes
|
|
154
|
-
cardData: _propTypes
|
|
155
|
-
graphqlEntityMap: _propTypes
|
|
156
|
-
name: _propTypes
|
|
157
|
-
entity: _propTypes
|
|
158
|
-
gridModifier: _propTypes
|
|
159
|
-
gtmChildren: _propTypes
|
|
160
|
-
cardChildren: _propTypes
|
|
161
|
-
propsToDisplay: _propTypes
|
|
162
|
-
displayCategory: _propTypes
|
|
163
|
-
displayThumbnail: _propTypes
|
|
164
|
-
displayTitle: _propTypes
|
|
165
|
-
modifier: _propTypes
|
|
166
|
-
style: _propTypes
|
|
167
|
-
designConfig: _propTypes
|
|
168
|
-
itemsPerRow: _propTypes
|
|
169
|
-
enableSmoothScroll: _propTypes
|
|
170
|
-
enableCarousel: _propTypes
|
|
171
|
-
bannerModifier: _propTypes
|
|
172
|
-
priorityLimit: _propTypes
|
|
173
|
-
enableAutoScroll: _propTypes
|
|
174
|
-
enableOverlay: _propTypes
|
|
175
|
-
overlayModifier: _propTypes
|
|
176
|
-
titleOverlayModifier: _propTypes
|
|
177
|
-
autoScrollTimer: _propTypes
|
|
178
|
-
VariantComponent: _propTypes
|
|
141
|
+
pageBuilderComponents: _propTypes.default.array,
|
|
142
|
+
cardData: _propTypes.default.array.isRequired,
|
|
143
|
+
graphqlEntityMap: _propTypes.default.object.isRequired,
|
|
144
|
+
name: _propTypes.default.string,
|
|
145
|
+
entity: _propTypes.default.string.isRequired,
|
|
146
|
+
gridModifier: _propTypes.default.string,
|
|
147
|
+
gtmChildren: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.node), _propTypes.default.node]),
|
|
148
|
+
cardChildren: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.node), _propTypes.default.node]),
|
|
149
|
+
propsToDisplay: _propTypes.default.array,
|
|
150
|
+
displayCategory: _propTypes.default.bool,
|
|
151
|
+
displayThumbnail: _propTypes.default.bool,
|
|
152
|
+
displayTitle: _propTypes.default.bool,
|
|
153
|
+
modifier: _propTypes.default.string,
|
|
154
|
+
style: _propTypes.default.string,
|
|
155
|
+
designConfig: _propTypes.default.object,
|
|
156
|
+
itemsPerRow: _propTypes.default.number,
|
|
157
|
+
enableSmoothScroll: _propTypes.default.bool,
|
|
158
|
+
enableCarousel: _propTypes.default.bool,
|
|
159
|
+
bannerModifier: _propTypes.default.string,
|
|
160
|
+
priorityLimit: _propTypes.default.number,
|
|
161
|
+
enableAutoScroll: _propTypes.default.bool,
|
|
162
|
+
enableOverlay: _propTypes.default.bool,
|
|
163
|
+
overlayModifier: _propTypes.default.string,
|
|
164
|
+
titleOverlayModifier: _propTypes.default.string,
|
|
165
|
+
autoScrollTimer: _propTypes.default.number,
|
|
166
|
+
VariantComponent: _propTypes.default.func
|
|
179
167
|
};
|
|
180
168
|
CardContainer.defaultProps = {
|
|
181
169
|
gtmChildren: [],
|
|
@@ -202,5 +190,5 @@ CardContainer.defaultProps = {
|
|
|
202
190
|
titleOverlayModifier: '',
|
|
203
191
|
VariantComponent: null
|
|
204
192
|
};
|
|
205
|
-
var _default = exports
|
|
193
|
+
var _default = exports.default = (0, _HOC.withTitle)(CardContainer);
|
|
206
194
|
//# sourceMappingURL=CardsContainer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardsContainer.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_nextjsComponents","_HOC","_Banner","_Wrapper","_CarouselWrapper","_Card","_helpers","_helpers2","_utils","_helpers3","_excluded","_excluded2","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","ownKeys","keys","getOwnPropertySymbols","o","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","CardContainer","_ref","cardData","gridModifier","style","displayCategory","displayThumbnail","displayTitle","modifier","legacyEntity","entity","graphqlEntityMap","propsToDisplay","gtmChildren","cardChildren","name","designConfig","itemsPerRow","enableSmoothScroll","enableCarousel","bannerModifier","priorityLimit","enableAutoScroll","enableOverlay","autoScrollTimer","overlayModifier","titleOverlayModifier","VariantComponent","cardProps","_objectWithoutProperties2","_useContext","useContext","MainContext","itemId","banner","hasNewBannerSettings","checkNewBannerSettings","parsedCardsData","getEntitiesWithBanner","propsToDisplayModifiers","getPropsToDisplayModifiers","dynamicWrapperSizes","getDynamicGridClasses","InitialWrapper","CarouselWrapper","Wrapper","CardWrapper","bannerIndex","createElement","className","modifiers","numberOfCards","map","currentEntity","index","baseAdunit","id","entityProps","shouldRenderBanner","checkIfShouldRenderBanner","extraProps","parsePropsToDisplay","dynamicKey","join","priority","parsedCardProps","key","parsedPropsToDisplay","gtmId","bannerProps","type","Fragment","_extends2","__typename","renderCounter","propTypes","pageBuilderComponents","PropTypes","array","isRequired","object","string","oneOfType","arrayOf","node","bool","number","func","defaultProps","_default","exports","withTitle"],"sources":["../../../src/components/Card/CardsContainer.js"],"sourcesContent":["import React, { useContext } from 'react';\nimport PropTypes from 'prop-types';\nimport { MainContext } from '@blaze-cms/nextjs-components';\nimport { withTitle } from '../../HOC';\nimport Banner from '../Banner';\nimport Wrapper from '../Wrapper';\nimport CarouselWrapper from '../CarouselWrapper';\nimport Card from './Card';\nimport { getDynamicGridClasses } from './helpers';\nimport { getEntitiesWithBanner, parsePropsToDisplay } from '../../helpers';\nimport { getPropsToDisplayModifiers } from '../../utils';\nimport { checkIfShouldRenderBanner, checkNewBannerSettings } from '../List/components/helpers';\n\nconst CardContainer = ({\n cardData,\n gridModifier,\n style,\n displayCategory,\n displayThumbnail,\n displayTitle,\n modifier,\n entity: legacyEntity,\n graphqlEntityMap,\n propsToDisplay,\n gtmChildren,\n cardChildren,\n name,\n designConfig,\n itemsPerRow,\n enableSmoothScroll,\n enableCarousel,\n bannerModifier,\n priorityLimit,\n enableAutoScroll,\n enableOverlay,\n autoScrollTimer,\n overlayModifier,\n titleOverlayModifier,\n VariantComponent,\n ...cardProps\n}) => {\n const { itemId } = useContext(MainContext);\n const { banner } = cardProps;\n // TODO: remove this check and all associated code once old banner setup is no longer supported\n const hasNewBannerSettings = checkNewBannerSettings(banner);\n const parsedCardsData = getEntitiesWithBanner(cardData, cardProps, hasNewBannerSettings);\n const propsToDisplayModifiers = getPropsToDisplayModifiers(propsToDisplay);\n const dynamicWrapperSizes = enableCarousel\n ? ''\n : getDynamicGridClasses('grid', itemsPerRow, designConfig);\n const InitialWrapper = enableCarousel ? CarouselWrapper : Wrapper;\n const CardWrapper = VariantComponent || InitialWrapper;\n let bannerIndex = 0;\n\n return (\n <CardWrapper\n className={dynamicWrapperSizes}\n modifiers={gridModifier}\n itemsPerRow={itemsPerRow}\n bannerModifier={bannerModifier}\n enableAutoScroll={enableAutoScroll}\n enableSmoothScroll={enableSmoothScroll}\n autoScrollTimer={autoScrollTimer}\n numberOfCards={parsedCardsData.length}>\n {parsedCardsData.map((currentEntity, index) => {\n const { baseAdunit, id, ...entityProps } = currentEntity;\n const shouldRenderBanner = !!banner && checkIfShouldRenderBanner(index, banner);\n const extraProps = parsePropsToDisplay(entityProps, propsToDisplay);\n const dynamicKey = [itemId, index].join('-');\n const priority = !!enableSmoothScroll || (priorityLimit > 0 && index + 1 <= priorityLimit);\n if (hasNewBannerSettings && shouldRenderBanner) bannerIndex += 1;\n if (!hasNewBannerSettings && baseAdunit) bannerIndex += 1;\n const parsedCardProps = {\n key: id,\n id,\n enableCarousel,\n graphqlEntityMap,\n propsToDisplay,\n parsedPropsToDisplay: extraProps,\n propsToDisplayModifiers,\n modifier,\n style,\n cardChildren,\n gtmChildren,\n gtmId: name,\n gridModifier,\n entityProps,\n displayCategory,\n displayThumbnail,\n displayTitle,\n priority,\n enableOverlay,\n overlayModifier,\n titleOverlayModifier,\n ...entityProps\n };\n const bannerProps = { ...banner, type: 'banner' };\n\n if (hasNewBannerSettings)\n return (\n <>\n <Card key={id} {...parsedCardProps} />\n {shouldRenderBanner && (\n <Banner\n key={dynamicKey}\n entity={graphqlEntityMap[entityProps.__typename]}\n baseAdunit={baseAdunit}\n {...entityProps}\n {...bannerProps}\n modifier={modifier}\n renderCounter={bannerIndex}\n />\n )}\n </>\n );\n return baseAdunit ? (\n <Banner\n key={dynamicKey}\n entity={graphqlEntityMap[entityProps.__typename]}\n baseAdunit={baseAdunit}\n {...entityProps}\n {...bannerProps}\n modifier={modifier}\n renderCounter={bannerIndex}\n />\n ) : (\n <Card key={id} {...parsedCardProps} />\n );\n })}\n </CardWrapper>\n );\n};\n\nCardContainer.propTypes = {\n pageBuilderComponents: PropTypes.array,\n cardData: PropTypes.array.isRequired,\n graphqlEntityMap: PropTypes.object.isRequired,\n name: PropTypes.string,\n entity: PropTypes.string.isRequired,\n gridModifier: PropTypes.string,\n gtmChildren: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),\n cardChildren: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),\n propsToDisplay: PropTypes.array,\n displayCategory: PropTypes.bool,\n displayThumbnail: PropTypes.bool,\n displayTitle: PropTypes.bool,\n modifier: PropTypes.string,\n style: PropTypes.string,\n designConfig: PropTypes.object,\n itemsPerRow: PropTypes.number,\n enableSmoothScroll: PropTypes.bool,\n enableCarousel: PropTypes.bool,\n bannerModifier: PropTypes.string,\n priorityLimit: PropTypes.number,\n enableAutoScroll: PropTypes.bool,\n enableOverlay: PropTypes.bool,\n overlayModifier: PropTypes.string,\n titleOverlayModifier: PropTypes.string,\n autoScrollTimer: PropTypes.number,\n VariantComponent: PropTypes.func\n};\n\nCardContainer.defaultProps = {\n gtmChildren: [],\n cardChildren: [],\n pageBuilderComponents: [],\n name: '',\n gridModifier: '',\n propsToDisplay: [],\n displayCategory: true,\n displayThumbnail: true,\n displayTitle: true,\n modifier: '',\n style: 'portrait',\n designConfig: {},\n itemsPerRow: 1,\n enableSmoothScroll: false,\n enableCarousel: false,\n bannerModifier: '',\n priorityLimit: 0,\n enableAutoScroll: false,\n enableOverlay: false,\n autoScrollTimer: 0,\n overlayModifier: '',\n titleOverlayModifier: '',\n VariantComponent: null\n};\n\nexport default withTitle(CardContainer);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,IAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,QAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,gBAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,KAAA,GAAAN,sBAAA,CAAAF,OAAA;AACA,IAAAS,QAAA,GAAAT,OAAA;AACA,IAAAU,SAAA,GAAAV,OAAA;AACA,IAAAW,MAAA,GAAAX,OAAA;AACA,IAAAY,SAAA,GAAAZ,OAAA;AAA+F,IAAAa,SAAA;EAAAC,UAAA;AAAA,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAjB,wBAAAiB,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,gBAAAK,OAAA,CAAAL,CAAA,0BAAAA,CAAA,sBAAAA,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAA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zD,eAAe,EAAEqD,qBAAS,CAACS,MAAM;EACjC3D,gBAAgB,EAAEkD,qBAAS,CAACU;AAC9B,CAAC;AAEDvF,aAAa,CAACwF,YAAY,GAAG;EAC3B3E,WAAW,EAAE,EAAE;EACfC,YAAY,EAAE,EAAE;EAChB8D,qBAAqB,EAAE,EAAE;EACzB7D,IAAI,EAAE,EAAE;EACRZ,YAAY,EAAE,EAAE;EAChBS,cAAc,EAAE,EAAE;EAClBP,eAAe,EAAE,IAAI;EACrBC,gBAAgB,EAAE,IAAI;EACtBC,YAAY,EAAE,IAAI;EAClBC,QAAQ,EAAE,EAAE;EACZJ,KAAK,EAAE,UAAU;EACjBY,YAAY,EAAE,CAAC,CAAC;EAChBC,WAAW,EAAE,CAAC;EACdC,kBAAkB,EAAE,KAAK;EACzBC,cAAc,EAAE,KAAK;EACrBC,cAAc,EAAE,EAAE;EAClBC,aAAa,EAAE,CAAC;EAChBC,gBAAgB,EAAE,KAAK;EACvBC,aAAa,EAAE,KAAK;EACpBC,eAAe,EAAE,CAAC;EAClBC,eAAe,EAAE,EAAE;EACnBC,oBAAoB,EAAE,EAAE;EACxBC,gBAAgB,EAAE;AACpB,CAAC;AAAC,IAAA8D,QAAA,GAAAC,OAAA,cAEa,IAAAC,cAAS,EAAC3F,aAAa,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"CardsContainer.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_nextjsComponents","_HOC","_Banner","_Wrapper","_CarouselWrapper","_Card","_helpers","_helpers2","_utils","_helpers3","_excluded","_excluded2","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ownKeys","keys","getOwnPropertySymbols","filter","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","CardContainer","_ref","cardData","gridModifier","style","displayCategory","displayThumbnail","displayTitle","modifier","entity","legacyEntity","graphqlEntityMap","propsToDisplay","gtmChildren","cardChildren","name","designConfig","itemsPerRow","enableSmoothScroll","enableCarousel","bannerModifier","priorityLimit","enableAutoScroll","enableOverlay","autoScrollTimer","overlayModifier","titleOverlayModifier","VariantComponent","cardProps","_objectWithoutProperties2","itemId","useContext","MainContext","banner","hasNewBannerSettings","checkNewBannerSettings","parsedCardsData","getEntitiesWithBanner","propsToDisplayModifiers","getPropsToDisplayModifiers","dynamicWrapperSizes","getDynamicGridClasses","InitialWrapper","CarouselWrapper","Wrapper","CardWrapper","bannerIndex","createElement","className","modifiers","numberOfCards","map","currentEntity","index","baseAdunit","id","entityProps","shouldRenderBanner","checkIfShouldRenderBanner","extraProps","parsePropsToDisplay","dynamicKey","join","priority","parsedCardProps","key","parsedPropsToDisplay","gtmId","bannerProps","type","Fragment","_extends2","__typename","renderCounter","propTypes","pageBuilderComponents","PropTypes","array","isRequired","object","string","oneOfType","arrayOf","node","bool","number","func","defaultProps","_default","exports","withTitle"],"sources":["../../../src/components/Card/CardsContainer.js"],"sourcesContent":["import React, { useContext } from 'react';\nimport PropTypes from 'prop-types';\nimport { MainContext } from '@blaze-cms/nextjs-components';\nimport { withTitle } from '../../HOC';\nimport Banner from '../Banner';\nimport Wrapper from '../Wrapper';\nimport CarouselWrapper from '../CarouselWrapper';\nimport Card from './Card';\nimport { getDynamicGridClasses } from './helpers';\nimport { getEntitiesWithBanner, parsePropsToDisplay } from '../../helpers';\nimport { getPropsToDisplayModifiers } from '../../utils';\nimport { checkIfShouldRenderBanner, checkNewBannerSettings } from '../List/components/helpers';\n\nconst CardContainer = ({\n cardData,\n gridModifier,\n style,\n displayCategory,\n displayThumbnail,\n displayTitle,\n modifier,\n entity: legacyEntity,\n graphqlEntityMap,\n propsToDisplay,\n gtmChildren,\n cardChildren,\n name,\n designConfig,\n itemsPerRow,\n enableSmoothScroll,\n enableCarousel,\n bannerModifier,\n priorityLimit,\n enableAutoScroll,\n enableOverlay,\n autoScrollTimer,\n overlayModifier,\n titleOverlayModifier,\n VariantComponent,\n ...cardProps\n}) => {\n const { itemId } = useContext(MainContext);\n const { banner } = cardProps;\n // TODO: remove this check and all associated code once old banner setup is no longer supported\n const hasNewBannerSettings = checkNewBannerSettings(banner);\n const parsedCardsData = getEntitiesWithBanner(cardData, cardProps, hasNewBannerSettings);\n const propsToDisplayModifiers = getPropsToDisplayModifiers(propsToDisplay);\n const dynamicWrapperSizes = enableCarousel\n ? ''\n : getDynamicGridClasses('grid', itemsPerRow, designConfig);\n const InitialWrapper = enableCarousel ? CarouselWrapper : Wrapper;\n const CardWrapper = VariantComponent || InitialWrapper;\n let bannerIndex = 0;\n\n return (\n <CardWrapper\n className={dynamicWrapperSizes}\n modifiers={gridModifier}\n itemsPerRow={itemsPerRow}\n bannerModifier={bannerModifier}\n enableAutoScroll={enableAutoScroll}\n enableSmoothScroll={enableSmoothScroll}\n autoScrollTimer={autoScrollTimer}\n numberOfCards={parsedCardsData.length}>\n {parsedCardsData.map((currentEntity, index) => {\n const { baseAdunit, id, ...entityProps } = currentEntity;\n const shouldRenderBanner = !!banner && checkIfShouldRenderBanner(index, banner);\n const extraProps = parsePropsToDisplay(entityProps, propsToDisplay);\n const dynamicKey = [itemId, index].join('-');\n const priority = !!enableSmoothScroll || (priorityLimit > 0 && index + 1 <= priorityLimit);\n if (hasNewBannerSettings && shouldRenderBanner) bannerIndex += 1;\n if (!hasNewBannerSettings && baseAdunit) bannerIndex += 1;\n const parsedCardProps = {\n key: id,\n id,\n enableCarousel,\n graphqlEntityMap,\n propsToDisplay,\n parsedPropsToDisplay: extraProps,\n propsToDisplayModifiers,\n modifier,\n style,\n cardChildren,\n gtmChildren,\n gtmId: name,\n gridModifier,\n entityProps,\n displayCategory,\n displayThumbnail,\n displayTitle,\n priority,\n enableOverlay,\n overlayModifier,\n titleOverlayModifier,\n ...entityProps\n };\n const bannerProps = { ...banner, type: 'banner' };\n\n if (hasNewBannerSettings)\n return (\n <>\n <Card key={id} {...parsedCardProps} />\n {shouldRenderBanner && (\n <Banner\n key={dynamicKey}\n entity={graphqlEntityMap[entityProps.__typename]}\n baseAdunit={baseAdunit}\n {...entityProps}\n {...bannerProps}\n modifier={modifier}\n renderCounter={bannerIndex}\n />\n )}\n </>\n );\n return baseAdunit ? (\n <Banner\n key={dynamicKey}\n entity={graphqlEntityMap[entityProps.__typename]}\n baseAdunit={baseAdunit}\n {...entityProps}\n {...bannerProps}\n modifier={modifier}\n renderCounter={bannerIndex}\n />\n ) : (\n <Card key={id} {...parsedCardProps} />\n );\n })}\n </CardWrapper>\n );\n};\n\nCardContainer.propTypes = {\n pageBuilderComponents: PropTypes.array,\n cardData: PropTypes.array.isRequired,\n graphqlEntityMap: PropTypes.object.isRequired,\n name: PropTypes.string,\n entity: PropTypes.string.isRequired,\n gridModifier: PropTypes.string,\n gtmChildren: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),\n cardChildren: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),\n propsToDisplay: PropTypes.array,\n displayCategory: PropTypes.bool,\n displayThumbnail: PropTypes.bool,\n displayTitle: PropTypes.bool,\n modifier: PropTypes.string,\n style: PropTypes.string,\n designConfig: PropTypes.object,\n itemsPerRow: PropTypes.number,\n enableSmoothScroll: PropTypes.bool,\n enableCarousel: PropTypes.bool,\n bannerModifier: PropTypes.string,\n priorityLimit: PropTypes.number,\n enableAutoScroll: PropTypes.bool,\n enableOverlay: PropTypes.bool,\n overlayModifier: PropTypes.string,\n titleOverlayModifier: PropTypes.string,\n autoScrollTimer: PropTypes.number,\n VariantComponent: PropTypes.func\n};\n\nCardContainer.defaultProps = {\n gtmChildren: [],\n cardChildren: [],\n pageBuilderComponents: [],\n name: '',\n gridModifier: '',\n propsToDisplay: [],\n displayCategory: true,\n displayThumbnail: true,\n displayTitle: true,\n modifier: '',\n style: 'portrait',\n designConfig: {},\n itemsPerRow: 1,\n enableSmoothScroll: false,\n enableCarousel: false,\n bannerModifier: '',\n priorityLimit: 0,\n enableAutoScroll: false,\n enableOverlay: false,\n autoScrollTimer: 0,\n overlayModifier: '',\n titleOverlayModifier: '',\n VariantComponent: null\n};\n\nexport default withTitle(CardContainer);\n"],"mappings":";;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,IAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,QAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,gBAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,KAAA,GAAAN,sBAAA,CAAAF,OAAA;AACA,IAAAS,QAAA,GAAAT,OAAA;AACA,IAAAU,SAAA,GAAAV,OAAA;AACA,IAAAW,MAAA,GAAAX,OAAA;AACA,IAAAY,SAAA,GAAAZ,OAAA;AAA+F,MAAAa,SAAA;EAAAC,UAAA;AAAA,SAAAf,wBAAAgB,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAlB,uBAAA,YAAAA,CAAAgB,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBA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equireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
|
-
exports
|
|
9
|
-
require("core-js/modules/es.array.concat.js");
|
|
10
|
-
require("core-js/modules/es.regexp.exec.js");
|
|
11
|
-
require("core-js/modules/es.string.replace.js");
|
|
7
|
+
exports.default = void 0;
|
|
12
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
14
10
|
var _react = _interopRequireDefault(require("react"));
|
|
@@ -21,57 +17,65 @@ var _CardsRender = _interopRequireDefault(require("./CardsRender"));
|
|
|
21
17
|
var _helpers = require("../../helpers");
|
|
22
18
|
var _constants = require("../../constants");
|
|
23
19
|
var _helpers2 = require("../ItemList/helpers");
|
|
24
|
-
|
|
20
|
+
const _excluded = ["entity", "entities", "propsToDisplay", "itemsToDisplay", "itemListName", "VariantComponent"],
|
|
25
21
|
_excluded2 = ["gridModifier"];
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
itemListData =
|
|
59
|
-
itemListLoading
|
|
60
|
-
itemListError
|
|
22
|
+
const CardsFactory = _ref => {
|
|
23
|
+
let {
|
|
24
|
+
entity,
|
|
25
|
+
entities,
|
|
26
|
+
propsToDisplay,
|
|
27
|
+
itemsToDisplay,
|
|
28
|
+
itemListName,
|
|
29
|
+
VariantComponent
|
|
30
|
+
} = _ref,
|
|
31
|
+
cardProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
32
|
+
const entityTouse = entities && entities.length ? entities[0] : entity;
|
|
33
|
+
const router = (0, _router.useRouter)();
|
|
34
|
+
const {
|
|
35
|
+
asPath
|
|
36
|
+
} = router;
|
|
37
|
+
const parsedQuery = asPath.replace(/%5D/g, ']').replace(/%5B/g, '[');
|
|
38
|
+
const {
|
|
39
|
+
query: {
|
|
40
|
+
itemListId: queryItemListId
|
|
41
|
+
} = {}
|
|
42
|
+
} = (0, _queryString.parseUrl)(parsedQuery);
|
|
43
|
+
const {
|
|
44
|
+
data,
|
|
45
|
+
error,
|
|
46
|
+
loading
|
|
47
|
+
} = (0, _client.useQuery)(_query.getSingleEntitySchema, {
|
|
48
|
+
variables: {
|
|
49
|
+
id: entityTouse
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
const itemListId = (0, _helpers2.getItemListId)(itemListName, queryItemListId);
|
|
53
|
+
const {
|
|
54
|
+
data: itemListData = {},
|
|
55
|
+
loading: itemListLoading,
|
|
56
|
+
error: itemListError
|
|
57
|
+
} = (0, _client.useQuery)(_query.getItemList, {
|
|
58
|
+
variables: {
|
|
59
|
+
id: itemListId
|
|
60
|
+
},
|
|
61
|
+
skip: !itemListId
|
|
62
|
+
});
|
|
61
63
|
if (loading || itemListLoading) return '';
|
|
62
64
|
if (error || itemListError) return error.message || itemListError.message;
|
|
63
65
|
if (!data) return null;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
66
|
+
const propsToDisplayValues = (0, _helpers.checkPropsToUse)(propsToDisplay);
|
|
67
|
+
const extraProps = (0, _helpers.buildPropsQuery)(data, propsToDisplayValues, cardProps) || '';
|
|
68
|
+
const _getGenericProps = (0, _helpers.getGenericProps)(cardProps),
|
|
69
|
+
{
|
|
70
|
+
gridModifier
|
|
71
|
+
} = _getGenericProps,
|
|
72
|
+
cardRenderProps = (0, _objectWithoutProperties2.default)(_getGenericProps, _excluded2);
|
|
73
|
+
const extraModifierForBanner = cardRenderProps.banner ? _constants.WITH_BANNER : '';
|
|
74
|
+
const itemListIds = (0, _helpers2.getItemListIds)(itemListData);
|
|
75
|
+
const itemsToDisplayToUse = itemListIds || itemsToDisplay;
|
|
72
76
|
if (itemListName && !itemListIds) return null;
|
|
73
|
-
return /*#__PURE__*/_react
|
|
74
|
-
gridModifier:
|
|
77
|
+
return /*#__PURE__*/_react.default.createElement(_CardsRender.default, (0, _extends2.default)({
|
|
78
|
+
gridModifier: `${gridModifier}${extraModifierForBanner}`,
|
|
75
79
|
bannerModifier: extraModifierForBanner,
|
|
76
80
|
itemsToDisplay: itemsToDisplayToUse,
|
|
77
81
|
propsToDisplay: propsToDisplay,
|
|
@@ -83,12 +87,12 @@ var CardsFactory = function CardsFactory(_ref) {
|
|
|
83
87
|
}));
|
|
84
88
|
};
|
|
85
89
|
CardsFactory.propTypes = {
|
|
86
|
-
entity: _propTypes
|
|
87
|
-
propsToDisplay: _propTypes
|
|
88
|
-
itemsToDisplay: _propTypes
|
|
89
|
-
itemListName: _propTypes
|
|
90
|
-
entities: _propTypes
|
|
91
|
-
VariantComponent: _propTypes
|
|
90
|
+
entity: _propTypes.default.string,
|
|
91
|
+
propsToDisplay: _propTypes.default.array,
|
|
92
|
+
itemsToDisplay: _propTypes.default.array,
|
|
93
|
+
itemListName: _propTypes.default.string,
|
|
94
|
+
entities: _propTypes.default.array,
|
|
95
|
+
VariantComponent: _propTypes.default.func
|
|
92
96
|
};
|
|
93
97
|
CardsFactory.defaultProps = {
|
|
94
98
|
propsToDisplay: [],
|
|
@@ -98,5 +102,5 @@ CardsFactory.defaultProps = {
|
|
|
98
102
|
entities: null,
|
|
99
103
|
VariantComponent: null
|
|
100
104
|
};
|
|
101
|
-
var _default = exports
|
|
105
|
+
var _default = exports.default = CardsFactory;
|
|
102
106
|
//# sourceMappingURL=CardsFactory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardsFactory.js","names":["_react","_interopRequireDefault","require","_client","_propTypes","_router","_queryString","_query","_CardsRender","_helpers","_constants","_helpers2","_excluded","_excluded2","CardsFactory","_ref","entity","entities","propsToDisplay","itemsToDisplay","itemListName","VariantComponent","cardProps","_objectWithoutProperties2","entityTouse","length","router","useRouter","asPath","parsedQuery","replace","
|
|
1
|
+
{"version":3,"file":"CardsFactory.js","names":["_react","_interopRequireDefault","require","_client","_propTypes","_router","_queryString","_query","_CardsRender","_helpers","_constants","_helpers2","_excluded","_excluded2","CardsFactory","_ref","entity","entities","propsToDisplay","itemsToDisplay","itemListName","VariantComponent","cardProps","_objectWithoutProperties2","default","entityTouse","length","router","useRouter","asPath","parsedQuery","replace","query","itemListId","queryItemListId","parseUrl","data","error","loading","useQuery","getSingleEntitySchema","variables","id","getItemListId","itemListData","itemListLoading","itemListError","getItemList","skip","message","propsToDisplayValues","checkPropsToUse","extraProps","buildPropsQuery","_getGenericProps","getGenericProps","gridModifier","cardRenderProps","extraModifierForBanner","banner","WITH_BANNER","itemListIds","getItemListIds","itemsToDisplayToUse","createElement","_extends2","bannerModifier","entityFields","propTypes","PropTypes","string","array","func","defaultProps","_default","exports"],"sources":["../../../src/components/Card/CardsFactory.js"],"sourcesContent":["import React from 'react';\nimport { useQuery } from '@apollo/client';\nimport PropTypes from 'prop-types';\nimport { useRouter } from 'next/router';\nimport { parseUrl } from 'query-string';\nimport { getSingleEntitySchema, getItemList } from '../../application/query';\nimport CardsRender from './CardsRender';\nimport { buildPropsQuery, getGenericProps, checkPropsToUse } from '../../helpers';\nimport { WITH_BANNER } from '../../constants';\nimport { getItemListId, getItemListIds } from '../ItemList/helpers';\n\nconst CardsFactory = ({\n entity,\n entities,\n propsToDisplay,\n itemsToDisplay,\n itemListName,\n VariantComponent,\n ...cardProps\n}) => {\n const entityTouse = entities && entities.length ? entities[0] : entity;\n const router = useRouter();\n const { asPath } = router;\n const parsedQuery = asPath.replace(/%5D/g, ']').replace(/%5B/g, '[');\n\n const { query: { itemListId: queryItemListId } = {} } = parseUrl(parsedQuery);\n\n const { data, error, loading } = useQuery(getSingleEntitySchema, {\n variables: { id: entityTouse }\n });\n\n const itemListId = getItemListId(itemListName, queryItemListId);\n\n const {\n data: itemListData = {},\n loading: itemListLoading,\n error: itemListError\n } = useQuery(getItemList, {\n variables: { id: itemListId },\n skip: !itemListId\n });\n\n if (loading || itemListLoading) return '';\n if (error || itemListError) return error.message || itemListError.message;\n if (!data) return null;\n\n const propsToDisplayValues = checkPropsToUse(propsToDisplay);\n const extraProps = buildPropsQuery(data, propsToDisplayValues, cardProps) || '';\n const { gridModifier, ...cardRenderProps } = getGenericProps(cardProps);\n const extraModifierForBanner = cardRenderProps.banner ? WITH_BANNER : '';\n\n const itemListIds = getItemListIds(itemListData);\n const itemsToDisplayToUse = itemListIds || itemsToDisplay;\n\n if (itemListName && !itemListIds) return null;\n\n return (\n <CardsRender\n gridModifier={`${gridModifier}${extraModifierForBanner}`}\n bannerModifier={extraModifierForBanner}\n itemsToDisplay={itemsToDisplayToUse}\n propsToDisplay={propsToDisplay}\n entityFields={extraProps}\n VariantComponent={VariantComponent}\n {...cardRenderProps}\n entity={entityTouse}\n entities={entities}\n />\n );\n};\n\nCardsFactory.propTypes = {\n entity: PropTypes.string,\n propsToDisplay: PropTypes.array,\n itemsToDisplay: PropTypes.array,\n itemListName: PropTypes.string,\n entities: PropTypes.array,\n VariantComponent: PropTypes.func\n};\n\nCardsFactory.defaultProps = {\n propsToDisplay: [],\n itemsToDisplay: [],\n itemListName: '',\n entity: null,\n entities: null,\n VariantComponent: null\n};\n\nexport default CardsFactory;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAA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