@blaze-cms/react-page-builder 0.145.0-core-styles.4 → 0.145.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -5
- package/lib/BannerContext/helpers/index.js.map +1 -1
- package/lib/BannerContext/helpers/set-initial-banner-counters.js +1 -1
- package/lib/BannerContext/helpers/set-initial-banner-counters.js.map +1 -1
- package/lib/BannerContext/index.js +2 -2
- package/lib/BannerContext/index.js.map +1 -1
- package/lib/HOC/index.js.map +1 -1
- package/lib/HOC/recreateOnNavigation.js +1 -1
- package/lib/HOC/recreateOnNavigation.js.map +1 -1
- package/lib/HOC/withInfiniteScroll.js +2 -2
- package/lib/HOC/withInfiniteScroll.js.map +1 -1
- package/lib/HOC/withTitle.js +2 -2
- package/lib/HOC/withTitle.js.map +1 -1
- package/lib/PBContext/index.js.map +1 -1
- package/lib/application/query/index.js +1 -1
- package/lib/application/query/index.js.map +1 -1
- package/lib/components/BackToTop/BackToTop.js +2 -2
- package/lib/components/BackToTop/BackToTop.js.map +1 -1
- package/lib/components/BackToTop/index.js.map +1 -1
- package/lib/components/Banner/AdSlotRender.js +4 -4
- package/lib/components/Banner/AdSlotRender.js.map +1 -1
- package/lib/components/Banner/Banner.js +3 -3
- package/lib/components/Banner/Banner.js.map +1 -1
- package/lib/components/Banner/BannerRender.js +4 -4
- package/lib/components/Banner/BannerRender.js.map +1 -1
- package/lib/components/Banner/helpers.js +16 -16
- package/lib/components/Banner/helpers.js.map +1 -1
- package/lib/components/Banner/index.js +3 -3
- package/lib/components/Banner/index.js.map +1 -1
- package/lib/components/BlazeLink.js +6 -6
- package/lib/components/BlazeLink.js.map +1 -1
- package/lib/components/Breadcrumb/Breadcrumb.js +3 -3
- package/lib/components/Breadcrumb/Breadcrumb.js.map +1 -1
- package/lib/components/Breadcrumb/index.js.map +1 -1
- package/lib/components/Button.js +6 -6
- package/lib/components/Button.js.map +1 -1
- package/lib/components/Card/Card.js +4 -4
- package/lib/components/Card/Card.js.map +1 -1
- package/lib/components/Card/CardsContainer.js +8 -8
- package/lib/components/Card/CardsContainer.js.map +1 -1
- package/lib/components/Card/CardsFactory.js.map +1 -1
- package/lib/components/Card/CardsRender.js +12 -12
- package/lib/components/Card/CardsRender.js.map +1 -1
- package/lib/components/Card/constants.js.map +1 -1
- package/lib/components/Card/helpers/filter-query-setup.js +5 -5
- package/lib/components/Card/helpers/filter-query-setup.js.map +1 -1
- package/lib/components/Card/helpers/filters-setup.js.map +1 -1
- package/lib/components/Card/helpers/get-dynamic-grid-classes.js +3 -3
- package/lib/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -1
- package/lib/components/Card/helpers/get-published-listing-url.js.map +1 -1
- package/lib/components/Card/helpers/get-updated-items-to-display.js +3 -3
- package/lib/components/Card/helpers/get-updated-items-to-display.js.map +1 -1
- package/lib/components/Card/helpers/get-updated-sort-properties.js +2 -2
- package/lib/components/Card/helpers/get-updated-sort-properties.js.map +1 -1
- package/lib/components/Card/helpers/index.js.map +1 -1
- package/lib/components/Card/helpers/should-return.js.map +1 -1
- package/lib/components/Card/helpers/should-skip-single-query.js.map +1 -1
- package/lib/components/Card/helpers/use-dynamic-size-key.js +3 -3
- package/lib/components/Card/helpers/use-dynamic-size-key.js.map +1 -1
- package/lib/components/Card/index.js.map +1 -1
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
- package/lib/components/Carousel/CarouselImage/index.js.map +1 -1
- package/lib/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
- package/lib/components/Carousel/CarouselRender/index.js.map +1 -1
- package/lib/components/Carousel/hooks/useCarouselNavigation.js.map +1 -1
- package/lib/components/Carousel/index.js.map +1 -1
- package/lib/components/CarouselWrapper/CarouselWrapper.js.map +1 -1
- package/lib/components/CarouselWrapper/DefaultCarousel.js +3 -3
- package/lib/components/CarouselWrapper/DefaultCarousel.js.map +1 -1
- package/lib/components/CarouselWrapper/SmoothScrollCarousel.js.map +1 -1
- package/lib/components/CarouselWrapper/index.js.map +1 -1
- package/lib/components/ClickWrapper.js +6 -6
- package/lib/components/ClickWrapper.js.map +1 -1
- package/lib/components/Code/Code.js +6 -6
- package/lib/components/Code/Code.js.map +1 -1
- package/lib/components/Code/ScriptTag.js +3 -3
- package/lib/components/Code/ScriptTag.js.map +1 -1
- package/lib/components/Code/helpers/index.js.map +1 -1
- package/lib/components/Code/helpers/wrap-script-tags.js +1 -1
- package/lib/components/Code/helpers/wrap-script-tags.js.map +1 -1
- package/lib/components/Code/index.js.map +1 -1
- package/lib/components/ContentGroup/ContentGroup.js.map +1 -1
- package/lib/components/ContentGroup/ContentGroupTabs.js +3 -3
- package/lib/components/ContentGroup/ContentGroupTabs.js.map +1 -1
- package/lib/components/ContentGroup/constants.js.map +1 -1
- package/lib/components/ContentGroup/helpers/get-active-tab.js +1 -1
- package/lib/components/ContentGroup/helpers/get-active-tab.js.map +1 -1
- package/lib/components/ContentGroup/helpers/get-sections-data.js.map +1 -1
- package/lib/components/ContentGroup/helpers/index.js.map +1 -1
- package/lib/components/ContentGroup/index.js.map +1 -1
- package/lib/components/ContentGroupSection/ContentGroupSection.js.map +1 -1
- package/lib/components/ContentGroupSection/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryFactory.js +2 -2
- package/lib/components/DataSummary/DataSummaryFactory.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryRender.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js +3 -3
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js +3 -3
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js +3 -3
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/LargeSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js +3 -3
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/ListSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js +3 -3
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/TextSummary/index.js.map +1 -1
- package/lib/components/DataSummary/DataSummaryTypes/index.js +3 -3
- package/lib/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
- package/lib/components/DataSummary/helpers/build-loop-props-content.js +5 -5
- 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 +2 -2
- package/lib/components/DataSummary/helpers/build-props-to-display-with-content.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-data-summary-query.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-link-props.js +2 -2
- package/lib/components/DataSummary/helpers/get-link-props.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-link-to-published-content.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-loop-props-limit.js +2 -2
- package/lib/components/DataSummary/helpers/get-loop-props-limit.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-prop-value.js +3 -3
- package/lib/components/DataSummary/helpers/get-prop-value.js.map +1 -1
- package/lib/components/DataSummary/helpers/get-value-from-array.js +2 -2
- package/lib/components/DataSummary/helpers/get-value-from-array.js.map +1 -1
- package/lib/components/DataSummary/helpers/index.js.map +1 -1
- package/lib/components/DataSummary/helpers/parse-boolean-values.js.map +1 -1
- package/lib/components/DataSummary/helpers/strip-summary-props-content.js.map +1 -1
- package/lib/components/DataSummary/index.js.map +1 -1
- package/lib/components/DateTime/DateTime.js +4 -4
- package/lib/components/DateTime/DateTime.js.map +1 -1
- package/lib/components/DateTime/index.js.map +1 -1
- package/lib/components/EmailConfirm/EmailConfirm.js +2 -2
- package/lib/components/EmailConfirm/EmailConfirm.js.map +1 -1
- package/lib/components/EmailConfirm/index.js.map +1 -1
- package/lib/components/EmailConfirm/mutation.js.map +1 -1
- package/lib/components/Iframe/Iframe.js.map +1 -1
- package/lib/components/Iframe/constants.js.map +1 -1
- package/lib/components/Iframe/index.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/GlobalLightbox.js +3 -3
- package/lib/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/NavButton.js.map +1 -1
- package/lib/components/Image/GlobalLightbox/index.js +3 -3
- package/lib/components/Image/GlobalLightbox/index.js.map +1 -1
- package/lib/components/Image/Image.js +7 -7
- package/lib/components/Image/Image.js.map +1 -1
- package/lib/components/Image/ImageDetails.js.map +1 -1
- package/lib/components/Image/ImageFactory.js +2 -2
- package/lib/components/Image/ImageFactory.js.map +1 -1
- package/lib/components/Image/ImageRender.js.map +1 -1
- package/lib/components/Image/Lightbox/Lightbox.js +2 -2
- package/lib/components/Image/Lightbox/Lightbox.js.map +1 -1
- package/lib/components/Image/Lightbox/index.js.map +1 -1
- package/lib/components/Image/index.js.map +1 -1
- package/lib/components/ItemList/ItemListButton/ItemListButton.js +4 -4
- package/lib/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
- package/lib/components/ItemList/ItemListButton/index.js.map +1 -1
- package/lib/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
- package/lib/components/ItemList/ItemListCounter/index.js.map +1 -1
- package/lib/components/ItemList/ItemListNew/ItemListNew.js.map +1 -1
- package/lib/components/ItemList/ItemListNew/index.js.map +1 -1
- package/lib/components/ItemList/constants.js.map +1 -1
- package/lib/components/ItemList/helpers/get-item-list-data.js.map +1 -1
- package/lib/components/ItemList/helpers/get-item-list-id.js.map +1 -1
- package/lib/components/ItemList/helpers/get-item-list-ids.js.map +1 -1
- package/lib/components/ItemList/helpers/index.js.map +1 -1
- package/lib/components/ItemList/helpers/set-item-list-id.js.map +1 -1
- package/lib/components/ItemList/helpers/set-param-and-redirect.js +4 -4
- package/lib/components/ItemList/helpers/set-param-and-redirect.js.map +1 -1
- package/lib/components/ItemList/hooks/index.js.map +1 -1
- package/lib/components/ItemList/hooks/use-item-list-id.js.map +1 -1
- package/lib/components/Layout/Layout.js +5 -5
- package/lib/components/Layout/Layout.js.map +1 -1
- package/lib/components/Layout/LayoutFactory.js +3 -3
- package/lib/components/Layout/LayoutFactory.js.map +1 -1
- package/lib/components/Layout/LayoutWithStickyTimer.js +2 -2
- package/lib/components/Layout/LayoutWithStickyTimer.js.map +1 -1
- package/lib/components/Layout/constants.js.map +1 -1
- package/lib/components/Layout/helpers/check-if-row-has-columns.js +1 -1
- package/lib/components/Layout/helpers/check-if-row-has-columns.js.map +1 -1
- package/lib/components/Layout/helpers/get-styles-to-update.js.map +1 -1
- package/lib/components/Layout/helpers/index.js.map +1 -1
- package/lib/components/Layout/index.js.map +1 -1
- package/lib/components/LazyImage/LazyImage.js.map +1 -1
- package/lib/components/LazyImage/index.js +3 -3
- package/lib/components/LazyImage/index.js.map +1 -1
- package/lib/components/List/ListBuilder.js +5 -5
- package/lib/components/List/ListBuilder.js.map +1 -1
- package/lib/components/List/ListFactory.js +10 -10
- package/lib/components/List/ListFactory.js.map +1 -1
- package/lib/components/List/ListRender.js.map +1 -1
- package/lib/components/List/components/Cards/CardRenderWithInfiniteScroll.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRender.js +7 -7
- package/lib/components/List/components/Cards/CardsRender.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRenderItem.js.map +1 -1
- package/lib/components/List/components/Cards/CardsRenderWrapper.js +2 -2
- package/lib/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
- package/lib/components/List/components/Cards/index.js.map +1 -1
- package/lib/components/List/components/Full/FullRender.js +6 -6
- package/lib/components/List/components/Full/FullRender.js.map +1 -1
- package/lib/components/List/components/Full/FullRenderItem.js +6 -6
- package/lib/components/List/components/Full/FullRenderItem.js.map +1 -1
- package/lib/components/List/components/Full/FullRenderWithInfiniteScroll.js.map +1 -1
- package/lib/components/List/components/Full/index.js.map +1 -1
- package/lib/components/List/components/Header/ListHeader.js +1 -1
- package/lib/components/List/components/Header/ListHeader.js.map +1 -1
- package/lib/components/List/components/Header/index.js.map +1 -1
- package/lib/components/List/components/Pagination/Classic.js.map +1 -1
- package/lib/components/List/components/Pagination/ListPagination.js +6 -6
- package/lib/components/List/components/Pagination/ListPagination.js.map +1 -1
- package/lib/components/List/components/Pagination/LoadMore.js.map +1 -1
- package/lib/components/List/components/Pagination/index.js.map +1 -1
- package/lib/components/List/components/helpers/check-if-should-render-banner.js +2 -2
- 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 +2 -2
- package/lib/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -1
- package/lib/components/List/components/helpers/index.js.map +1 -1
- package/lib/components/List/components/index.js.map +1 -1
- package/lib/components/List/constants.js.map +1 -1
- package/lib/components/List/helpers/build-az-aggregations.js +3 -3
- package/lib/components/List/helpers/build-az-aggregations.js.map +1 -1
- package/lib/components/List/helpers/build-az-url.js +5 -5
- package/lib/components/List/helpers/build-az-url.js.map +1 -1
- package/lib/components/List/helpers/build-pagination-items.js.map +1 -1
- package/lib/components/List/helpers/build-pagination-url.js +5 -5
- package/lib/components/List/helpers/build-pagination-url.js.map +1 -1
- package/lib/components/List/helpers/build-query-booster.js +6 -6
- package/lib/components/List/helpers/build-query-booster.js.map +1 -1
- package/lib/components/List/helpers/get-az-query-filter.js.map +1 -1
- package/lib/components/List/helpers/get-items-per-page-to-use.js.map +1 -1
- package/lib/components/List/helpers/get-list-component.js.map +1 -1
- package/lib/components/List/helpers/get-list-query.js +3 -3
- package/lib/components/List/helpers/get-list-query.js.map +1 -1
- package/lib/components/List/helpers/get-list-specific-search-filter.js.map +1 -1
- package/lib/components/List/helpers/get-sort-props.js +2 -2
- package/lib/components/List/helpers/get-sort-props.js.map +1 -1
- package/lib/components/List/helpers/has-required-item-list-details.js.map +1 -1
- package/lib/components/List/helpers/index.js.map +1 -1
- package/lib/components/List/helpers/sort-aggs.js.map +1 -1
- package/lib/components/List/helpers/strip-query-key.js.map +1 -1
- package/lib/components/List/index.js.map +1 -1
- package/lib/components/Menu/Menu.js +2 -2
- package/lib/components/Menu/Menu.js.map +1 -1
- package/lib/components/Menu/MenuContext.js.map +1 -1
- package/lib/components/Menu/index.js.map +1 -1
- package/lib/components/MenuItem/MenuItem.js +2 -2
- package/lib/components/MenuItem/MenuItem.js.map +1 -1
- package/lib/components/MenuItem/index.js.map +1 -1
- package/lib/components/Modal/Modal.js.map +1 -1
- package/lib/components/Modal/index.js.map +1 -1
- package/lib/components/SearchContent/SearchContent.js +3 -3
- package/lib/components/SearchContent/SearchContent.js.map +1 -1
- package/lib/components/SearchContent/SearchContentItems.js.map +1 -1
- package/lib/components/SearchContent/SearchContentResults.js.map +1 -1
- package/lib/components/SearchContent/SearchContentToggleIcon.js.map +1 -1
- package/lib/components/SearchContent/constants.js.map +1 -1
- package/lib/components/SearchContent/index.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/FiltersList.js +3 -3
- package/lib/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/SearchFilter.js +3 -3
- package/lib/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilter/index.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilterContainer.js +7 -7
- package/lib/components/SearchFilter/SearchFilterContainer.js.map +1 -1
- package/lib/components/SearchFilter/components/Checkbox.js +7 -7
- package/lib/components/SearchFilter/components/Checkbox.js.map +1 -1
- package/lib/components/SearchFilter/components/Range.js +4 -4
- package/lib/components/SearchFilter/components/Range.js.map +1 -1
- package/lib/components/SearchFilter/components/Select.js +3 -3
- package/lib/components/SearchFilter/components/Select.js.map +1 -1
- package/lib/components/SearchFilter/components/TextSearch.js.map +1 -1
- package/lib/components/SearchFilter/components/index.js.map +1 -1
- package/lib/components/SearchFilter/constants.js.map +1 -1
- package/lib/components/SearchFilter/helpers/build-filters-query.js +6 -6
- package/lib/components/SearchFilter/helpers/build-filters-query.js.map +1 -1
- package/lib/components/SearchFilter/helpers/build-new-url.js.map +1 -1
- package/lib/components/SearchFilter/helpers/build-raw-query-stringified.js +1 -1
- package/lib/components/SearchFilter/helpers/build-raw-query-stringified.js.map +1 -1
- package/lib/components/SearchFilter/helpers/build-url-query.js +3 -3
- package/lib/components/SearchFilter/helpers/build-url-query.js.map +1 -1
- package/lib/components/SearchFilter/helpers/calculate-min-max.js.map +1 -1
- package/lib/components/SearchFilter/helpers/calculate-step.js.map +1 -1
- package/lib/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -1
- package/lib/components/SearchFilter/helpers/decode-encode.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-display-value.js +1 -1
- package/lib/components/SearchFilter/helpers/get-display-value.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js +2 -2
- 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.map +1 -1
- package/lib/components/SearchFilter/helpers/get-filter-values.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-range-value.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-select-options.js.map +1 -1
- package/lib/components/SearchFilter/helpers/get-updated-filter-by.js +2 -2
- package/lib/components/SearchFilter/helpers/get-updated-filter-by.js.map +1 -1
- package/lib/components/SearchFilter/helpers/index.js.map +1 -1
- package/lib/components/SearchFilter/helpers/is-device-desktop.js.map +1 -1
- package/lib/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
- package/lib/components/SearchFilter/index.js.map +1 -1
- package/lib/components/SearchFilter/searchFilterReducer.js +5 -5
- package/lib/components/SearchFilter/searchFilterReducer.js.map +1 -1
- package/lib/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
- package/lib/components/SearchFilterSort/constants.js.map +1 -1
- package/lib/components/SearchFilterSort/helpers/handle-sort-update.js +2 -2
- package/lib/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
- package/lib/components/SearchFilterSort/helpers/index.js.map +1 -1
- package/lib/components/SearchFilterSort/helpers/update-sort.js +5 -5
- package/lib/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
- package/lib/components/SearchFilterSort/index.js.map +1 -1
- package/lib/components/SocialFollow/SFItem.js.map +1 -1
- package/lib/components/SocialFollow/SocialFollow.js.map +1 -1
- package/lib/components/SocialFollow/SocialFollowRender.js.map +1 -1
- package/lib/components/SocialFollow/index.js.map +1 -1
- package/lib/components/SocialFollow/sf.config.js.map +1 -1
- package/lib/components/SubMenu/SubMenu.js.map +1 -1
- package/lib/components/SubMenu/index.js.map +1 -1
- package/lib/components/TextBlock/TextBlockRender.js.map +1 -1
- package/lib/components/TextBlock/index.js +5 -5
- package/lib/components/TextBlock/index.js.map +1 -1
- package/lib/components/Video/Video.js +5 -5
- package/lib/components/Video/Video.js.map +1 -1
- package/lib/components/Video/VideoModal.js +2 -2
- package/lib/components/Video/VideoModal.js.map +1 -1
- package/lib/components/Video/VideoRender.js.map +1 -1
- package/lib/components/Video/index.js.map +1 -1
- package/lib/components/Video/providers/Default.js.map +1 -1
- package/lib/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
- package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js +5 -5
- package/lib/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
- package/lib/components/Video/providers/Vimeo/VimeoProvider.js +2 -2
- package/lib/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
- package/lib/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js +6 -6
- package/lib/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js.map +1 -1
- package/lib/components/Video/providers/Vimeo/helpers/index.js.map +1 -1
- package/lib/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
- package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js +2 -2
- package/lib/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
- package/lib/components/Video/providers/YouTube/helpers/index.js +1 -1
- package/lib/components/Video/providers/YouTube/helpers/index.js.map +1 -1
- package/lib/components/Video/providers/get-provider.js +3 -3
- package/lib/components/Video/providers/get-provider.js.map +1 -1
- package/lib/components/Video/providers/index.js.map +1 -1
- package/lib/components/Wrapper.js.map +1 -1
- package/lib/components/index.js +3 -3
- package/lib/components/index.js.map +1 -1
- package/lib/constants/componentsDefaultValues.js.map +1 -1
- package/lib/constants/index.js.map +1 -1
- package/lib/helpers/append-images.js +5 -5
- package/lib/helpers/append-images.js.map +1 -1
- package/lib/helpers/build-az-filter.js.map +1 -1
- package/lib/helpers/build-checkbox-filters.js.map +1 -1
- package/lib/helpers/build-image-properties.js.map +1 -1
- package/lib/helpers/build-inherited-filters.js +4 -4
- package/lib/helpers/build-inherited-filters.js.map +1 -1
- package/lib/helpers/build-link-extra-props.js.map +1 -1
- package/lib/helpers/build-props-query.js +9 -9
- package/lib/helpers/build-props-query.js.map +1 -1
- package/lib/helpers/build-query-fields.js +1 -1
- package/lib/helpers/build-query-fields.js.map +1 -1
- package/lib/helpers/build-query-key.js.map +1 -1
- package/lib/helpers/build-raw-query-base.js +9 -9
- package/lib/helpers/build-raw-query-base.js.map +1 -1
- package/lib/helpers/build-raw-query.js +5 -5
- package/lib/helpers/build-raw-query.js.map +1 -1
- package/lib/helpers/build-search-values-checkbox-select.js +7 -7
- package/lib/helpers/build-search-values-checkbox-select.js.map +1 -1
- package/lib/helpers/build-search-values-text.js.map +1 -1
- package/lib/helpers/build-set-filters.js +3 -3
- package/lib/helpers/build-set-filters.js.map +1 -1
- package/lib/helpers/build-sort-values.js +6 -6
- package/lib/helpers/build-sort-values.js.map +1 -1
- package/lib/helpers/check-for-error.js.map +1 -1
- package/lib/helpers/check-props-to-use.js.map +1 -1
- package/lib/helpers/entities/constants.js.map +1 -1
- package/lib/helpers/get-banner-data.js +5 -5
- package/lib/helpers/get-banner-data.js.map +1 -1
- package/lib/helpers/get-checkbox-filters.js.map +1 -1
- package/lib/helpers/get-click-wrapper-options.js +6 -6
- package/lib/helpers/get-click-wrapper-options.js.map +1 -1
- package/lib/helpers/get-current-offset.js.map +1 -1
- package/lib/helpers/get-dictionary-match.js.map +1 -1
- package/lib/helpers/get-display-count-data.js.map +1 -1
- package/lib/helpers/get-elasticsearch-operator.js.map +1 -1
- package/lib/helpers/get-entities-with-banner.js +5 -5
- package/lib/helpers/get-entities-with-banner.js.map +1 -1
- package/lib/helpers/get-entity-data.js.map +1 -1
- package/lib/helpers/get-entity-render-props.js.map +1 -1
- package/lib/helpers/get-extra-az-bits.js.map +1 -1
- package/lib/helpers/get-filter-props.js.map +1 -1
- package/lib/helpers/get-filter-relation-keys.js +1 -1
- package/lib/helpers/get-filter-relation-keys.js.map +1 -1
- package/lib/helpers/get-generic-props.js +5 -5
- package/lib/helpers/get-generic-props.js.map +1 -1
- package/lib/helpers/get-generic-render-variables.js +6 -6
- package/lib/helpers/get-generic-render-variables.js.map +1 -1
- package/lib/helpers/get-image-ids.js +2 -2
- package/lib/helpers/get-image-ids.js.map +1 -1
- package/lib/helpers/get-inherited-filters.js +2 -2
- package/lib/helpers/get-inherited-filters.js.map +1 -1
- package/lib/helpers/get-items-to-display-ids.js +2 -2
- package/lib/helpers/get-items-to-display-ids.js.map +1 -1
- package/lib/helpers/get-modifiers.js +3 -3
- package/lib/helpers/get-modifiers.js.map +1 -1
- package/lib/helpers/get-not-equal-query.js.map +1 -1
- package/lib/helpers/get-pagination-index.js.map +1 -1
- package/lib/helpers/get-parsed-prop-values.js +3 -3
- package/lib/helpers/get-parsed-prop-values.js.map +1 -1
- package/lib/helpers/get-parsed-summary-value.js.map +1 -1
- package/lib/helpers/get-prop-values.js +2 -2
- package/lib/helpers/get-prop-values.js.map +1 -1
- package/lib/helpers/get-query-filters.js.map +1 -1
- package/lib/helpers/get-query-props.js +3 -3
- package/lib/helpers/get-query-props.js.map +1 -1
- package/lib/helpers/get-required-schemas.js +3 -3
- package/lib/helpers/get-required-schemas.js.map +1 -1
- package/lib/helpers/get-sanitized-prop-values.js.map +1 -1
- package/lib/helpers/get-search-filter-type.js.map +1 -1
- package/lib/helpers/get-sort-by-field-name.js +4 -4
- package/lib/helpers/get-sort-by-field-name.js.map +1 -1
- package/lib/helpers/get-unpublished-entity-name.js +1 -1
- package/lib/helpers/get-unpublished-entity-name.js.map +1 -1
- package/lib/helpers/get-updated-filter-by.js.map +1 -1
- package/lib/helpers/get-wrapped-value-with-link.js +1 -1
- package/lib/helpers/get-wrapped-value-with-link.js.map +1 -1
- package/lib/helpers/group-entities.js +1 -1
- package/lib/helpers/group-entities.js.map +1 -1
- package/lib/helpers/has-children.js.map +1 -1
- package/lib/helpers/index.js.map +1 -1
- package/lib/helpers/inject-banner.js.map +1 -1
- package/lib/helpers/inject-banners-to-entities.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-entities/index.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/get-banners-for-nodes.js +6 -6
- 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 +3 -3
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/get-banners-for-nodes/index.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/index.js.map +1 -1
- package/lib/helpers/inject-multiple-banners/inject-multiple-banners.js.map +1 -1
- package/lib/helpers/is-browser.js.map +1 -1
- package/lib/helpers/is-filter-entitys-id.js +1 -1
- package/lib/helpers/is-filter-entitys-id.js.map +1 -1
- package/lib/helpers/is-object.js.map +1 -1
- package/lib/helpers/is-using-relation-image.js.map +1 -1
- package/lib/helpers/parse-TextBlock.js +2 -2
- package/lib/helpers/parse-TextBlock.js.map +1 -1
- package/lib/helpers/parse-interval.js.map +1 -1
- package/lib/helpers/parse-props-to-display.js +4 -4
- package/lib/helpers/parse-props-to-display.js.map +1 -1
- package/lib/helpers/process-data-summary-value.js +8 -8
- package/lib/helpers/process-data-summary-value.js.map +1 -1
- package/lib/helpers/remove-extra-items.js.map +1 -1
- package/lib/helpers/remove-unwanted-characters.js +6 -6
- package/lib/helpers/remove-unwanted-characters.js.map +1 -1
- package/lib/helpers/render-children.js +5 -5
- package/lib/helpers/render-children.js.map +1 -1
- package/lib/helpers/should-render-waypoint.js.map +1 -1
- package/lib/helpers/should-show-property.js.map +1 -1
- package/lib/helpers/sort-response-data.js +2 -2
- package/lib/helpers/sort-response-data.js.map +1 -1
- package/lib/helpers/split-children.js +5 -5
- package/lib/helpers/split-children.js.map +1 -1
- package/lib/helpers/update-childrens-parent.js +3 -3
- package/lib/helpers/update-childrens-parent.js.map +1 -1
- package/lib/hooks/helpers/RenderComponent.js +1 -1
- package/lib/hooks/helpers/RenderComponent.js.map +1 -1
- package/lib/hooks/helpers/StoreImages.js +4 -4
- package/lib/hooks/helpers/StoreImages.js.map +1 -1
- package/lib/hooks/helpers/append-gtm-classname.js +7 -7
- package/lib/hooks/helpers/append-gtm-classname.js.map +1 -1
- package/lib/hooks/helpers/buildPBComponents.js +7 -7
- package/lib/hooks/helpers/buildPBComponents.js.map +1 -1
- package/lib/hooks/helpers/check-banner-insertion-set.js.map +1 -1
- package/lib/hooks/helpers/check-collisions.js +3 -3
- package/lib/hooks/helpers/check-collisions.js.map +1 -1
- package/lib/hooks/helpers/constants.js.map +1 -1
- package/lib/hooks/helpers/get-banner-index.js.map +1 -1
- package/lib/hooks/helpers/get-components-to-insert-by-type.js.map +1 -1
- package/lib/hooks/helpers/get-lightbox-images.js +8 -8
- package/lib/hooks/helpers/get-lightbox-images.js.map +1 -1
- package/lib/hooks/helpers/getComponent.js.map +1 -1
- package/lib/hooks/helpers/getVariant.js.map +1 -1
- package/lib/hooks/helpers/index.js.map +1 -1
- package/lib/hooks/helpers/inject-element-components.js +4 -4
- package/lib/hooks/helpers/inject-element-components.js.map +1 -1
- package/lib/hooks/helpers/inject-textblock-banners.js +7 -7
- package/lib/hooks/helpers/inject-textblock-banners.js.map +1 -1
- package/lib/hooks/helpers/insert-banners.js +9 -9
- package/lib/hooks/helpers/insert-banners.js.map +1 -1
- package/lib/hooks/helpers/update-targetings.js.map +1 -1
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/use-app-sync-event-hook.js.map +1 -1
- package/lib/hooks/use-banner-insertion.js +1 -1
- package/lib/hooks/use-banner-insertion.js.map +1 -1
- package/lib/hooks/use-check-mobile-screen.js.map +1 -1
- package/lib/hooks/use-get-entity-schema.js.map +1 -1
- package/lib/hooks/use-get-entity-schemas-as-obj.js +1 -1
- package/lib/hooks/use-get-entity-schemas-as-obj.js.map +1 -1
- package/lib/hooks/use-get-image-id-from-relation.js +1 -1
- package/lib/hooks/use-get-image-id-from-relation.js.map +1 -1
- package/lib/hooks/use-get-images.js.map +1 -1
- package/lib/hooks/use-get-single-entity-schema.js.map +1 -1
- package/lib/hooks/use-page-builder.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/utils/component-map.js +1 -1
- package/lib/utils/component-map.js.map +1 -1
- package/lib/utils/get-class-modifiers.js +7 -7
- package/lib/utils/get-class-modifiers.js.map +1 -1
- package/lib/utils/get-image-data.js.map +1 -1
- package/lib/utils/get-props-to-display-modifiers.js.map +1 -1
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/is-object-empty.js.map +1 -1
- package/lib/utils/variant-handler.js +1 -1
- package/lib/utils/variant-handler.js.map +1 -1
- package/lib/variants/HeroImage/index.js +5 -5
- package/lib/variants/HeroImage/index.js.map +1 -1
- package/lib/variants/Infographic/Infographic.js.map +1 -1
- package/lib/variants/Infographic/index.js +5 -5
- package/lib/variants/Infographic/index.js.map +1 -1
- package/lib/variants/Infographic/useInfographic.js +5 -5
- package/lib/variants/Infographic/useInfographic.js.map +1 -1
- package/lib/variants/LongformGallery/LongformGallery.js.map +1 -1
- package/lib/variants/LongformGallery/LongformGalleryImage.js.map +1 -1
- package/lib/variants/LongformGallery/constants.js.map +1 -1
- package/lib/variants/LongformGallery/helpers/index.js.map +1 -1
- package/lib/variants/LongformGallery/helpers/parseImageData.js +3 -3
- package/lib/variants/LongformGallery/helpers/parseImageData.js.map +1 -1
- package/lib/variants/LongformGallery/helpers/separateImages.js.map +1 -1
- package/lib/variants/LongformGallery/helpers/shouldSkip.js.map +1 -1
- package/lib/variants/LongformGallery/index.js +6 -6
- package/lib/variants/LongformGallery/index.js.map +1 -1
- package/lib/variants/LongformGallery/useLongformGallery.js.map +1 -1
- package/lib/variants/LongformRow/index.js +5 -5
- package/lib/variants/LongformRow/index.js.map +1 -1
- package/lib/variants/ParallaxImageTextRight/index.js +5 -5
- package/lib/variants/ParallaxImageTextRight/index.js.map +1 -1
- package/lib/variants/SlideSummary/SlideSummary.js.map +1 -1
- package/lib/variants/SlideSummary/index.js +5 -5
- package/lib/variants/SlideSummary/index.js.map +1 -1
- package/lib/variants/ThumbnailCarousel/ThumbnailCarousel.js.map +1 -1
- package/lib/variants/ThumbnailCarousel/ThumbnailImage/ThumbnailImage.js.map +1 -1
- package/lib/variants/ThumbnailCarousel/ThumbnailImage/index.js.map +1 -1
- package/lib/variants/ThumbnailCarousel/ThumbnailImage/useThumbnailImage.js.map +1 -1
- package/lib/variants/ThumbnailCarousel/index.js +5 -5
- package/lib/variants/ThumbnailCarousel/index.js.map +1 -1
- package/lib/variants/ThumbnailCarousel/useThumbnailCarousel.js +5 -5
- package/lib/variants/ThumbnailCarousel/useThumbnailCarousel.js.map +1 -1
- package/lib/variants/index.js.map +1 -1
- package/lib-es/BannerContext/helpers/index.js.map +1 -1
- package/lib-es/BannerContext/helpers/set-initial-banner-counters.js.map +1 -1
- package/lib-es/BannerContext/index.js.map +1 -1
- package/lib-es/HOC/index.js.map +1 -1
- package/lib-es/HOC/recreateOnNavigation.js.map +1 -1
- package/lib-es/HOC/withInfiniteScroll.js.map +1 -1
- package/lib-es/HOC/withTitle.js.map +1 -1
- package/lib-es/PBContext/index.js.map +1 -1
- package/lib-es/application/query/index.js.map +1 -1
- package/lib-es/components/BackToTop/BackToTop.js.map +1 -1
- package/lib-es/components/BackToTop/index.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.map +1 -1
- package/lib-es/components/BlazeLink.js.map +1 -1
- package/lib-es/components/Breadcrumb/Breadcrumb.js.map +1 -1
- package/lib-es/components/Breadcrumb/index.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/CardsContainer.js.map +1 -1
- package/lib-es/components/Card/CardsFactory.js.map +1 -1
- package/lib-es/components/Card/CardsRender.js.map +1 -1
- package/lib-es/components/Card/constants.js.map +1 -1
- package/lib-es/components/Card/helpers/filter-query-setup.js.map +1 -1
- package/lib-es/components/Card/helpers/filters-setup.js.map +1 -1
- package/lib-es/components/Card/helpers/get-dynamic-grid-classes.js.map +1 -1
- package/lib-es/components/Card/helpers/get-published-listing-url.js.map +1 -1
- package/lib-es/components/Card/helpers/get-updated-items-to-display.js.map +1 -1
- package/lib-es/components/Card/helpers/get-updated-sort-properties.js.map +1 -1
- package/lib-es/components/Card/helpers/index.js.map +1 -1
- package/lib-es/components/Card/helpers/should-return.js.map +1 -1
- package/lib-es/components/Card/helpers/should-skip-single-query.js.map +1 -1
- package/lib-es/components/Card/helpers/use-dynamic-size-key.js.map +1 -1
- package/lib-es/components/Card/index.js.map +1 -1
- package/lib-es/components/Carousel/Carousel.js.map +1 -1
- package/lib-es/components/Carousel/CarouselImage/CarouselImage.js.map +1 -1
- package/lib-es/components/Carousel/CarouselImage/index.js.map +1 -1
- package/lib-es/components/Carousel/CarouselRender/CarouselRender.js.map +1 -1
- package/lib-es/components/Carousel/CarouselRender/index.js.map +1 -1
- package/lib-es/components/Carousel/hooks/useCarouselNavigation.js.map +1 -1
- package/lib-es/components/Carousel/index.js.map +1 -1
- package/lib-es/components/CarouselWrapper/CarouselWrapper.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/CarouselWrapper/index.js.map +1 -1
- package/lib-es/components/ClickWrapper.js.map +1 -1
- package/lib-es/components/Code/Code.js.map +1 -1
- package/lib-es/components/Code/ScriptTag.js.map +1 -1
- package/lib-es/components/Code/helpers/index.js.map +1 -1
- package/lib-es/components/Code/helpers/wrap-script-tags.js.map +1 -1
- package/lib-es/components/Code/index.js.map +1 -1
- package/lib-es/components/ContentGroup/ContentGroup.js.map +1 -1
- package/lib-es/components/ContentGroup/ContentGroupTabs.js.map +1 -1
- package/lib-es/components/ContentGroup/constants.js.map +1 -1
- package/lib-es/components/ContentGroup/helpers/get-active-tab.js.map +1 -1
- package/lib-es/components/ContentGroup/helpers/get-sections-data.js.map +1 -1
- package/lib-es/components/ContentGroup/helpers/index.js.map +1 -1
- package/lib-es/components/ContentGroup/index.js.map +1 -1
- package/lib-es/components/ContentGroupSection/ContentGroupSection.js.map +1 -1
- package/lib-es/components/ContentGroupSection/index.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryFactory.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryRender.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummary.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/HeadingLargeSummaryContent.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/HeadingLargeSummary/index.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummary.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/ItemDetailsSummaryContent.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/ItemDetailsSummary/index.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummary.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/LargeSummaryContent.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/LargeSummary/index.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummary.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/ListSummaryContent.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/ListSummary/index.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummary.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/TextSummaryContent.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/TextSummary/index.js.map +1 -1
- package/lib-es/components/DataSummary/DataSummaryTypes/index.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/build-loop-props-content.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/build-props-to-display-with-content.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/get-data-summary-query.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/get-link-based-on-value.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/get-link-props.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/get-link-to-published-content.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/get-loop-props-limit.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/get-prop-value.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/get-value-from-array.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/index.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/parse-boolean-values.js.map +1 -1
- package/lib-es/components/DataSummary/helpers/strip-summary-props-content.js.map +1 -1
- package/lib-es/components/DataSummary/index.js.map +1 -1
- package/lib-es/components/DateTime/DateTime.js +4 -4
- package/lib-es/components/DateTime/DateTime.js.map +1 -1
- package/lib-es/components/DateTime/index.js.map +1 -1
- package/lib-es/components/EmailConfirm/EmailConfirm.js.map +1 -1
- package/lib-es/components/EmailConfirm/index.js.map +1 -1
- package/lib-es/components/EmailConfirm/mutation.js.map +1 -1
- package/lib-es/components/Iframe/Iframe.js.map +1 -1
- package/lib-es/components/Iframe/constants.js.map +1 -1
- package/lib-es/components/Iframe/index.js.map +1 -1
- package/lib-es/components/Image/GlobalLightbox/GlobalLightbox.js.map +1 -1
- package/lib-es/components/Image/GlobalLightbox/NavButton.js.map +1 -1
- package/lib-es/components/Image/GlobalLightbox/index.js.map +1 -1
- package/lib-es/components/Image/Image.js.map +1 -1
- package/lib-es/components/Image/ImageDetails.js.map +1 -1
- package/lib-es/components/Image/ImageFactory.js.map +1 -1
- package/lib-es/components/Image/ImageRender.js.map +1 -1
- package/lib-es/components/Image/Lightbox/Lightbox.js.map +1 -1
- package/lib-es/components/Image/Lightbox/index.js.map +1 -1
- package/lib-es/components/Image/index.js.map +1 -1
- package/lib-es/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
- package/lib-es/components/ItemList/ItemListButton/index.js.map +1 -1
- package/lib-es/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
- package/lib-es/components/ItemList/ItemListCounter/index.js.map +1 -1
- package/lib-es/components/ItemList/ItemListNew/ItemListNew.js.map +1 -1
- package/lib-es/components/ItemList/ItemListNew/index.js.map +1 -1
- package/lib-es/components/ItemList/constants.js.map +1 -1
- package/lib-es/components/ItemList/helpers/get-item-list-data.js.map +1 -1
- package/lib-es/components/ItemList/helpers/get-item-list-id.js.map +1 -1
- package/lib-es/components/ItemList/helpers/get-item-list-ids.js.map +1 -1
- package/lib-es/components/ItemList/helpers/index.js.map +1 -1
- package/lib-es/components/ItemList/helpers/set-item-list-id.js.map +1 -1
- package/lib-es/components/ItemList/helpers/set-param-and-redirect.js.map +1 -1
- package/lib-es/components/ItemList/hooks/index.js.map +1 -1
- package/lib-es/components/ItemList/hooks/use-item-list-id.js.map +1 -1
- package/lib-es/components/Layout/Layout.js.map +1 -1
- package/lib-es/components/Layout/LayoutFactory.js.map +1 -1
- package/lib-es/components/Layout/LayoutWithStickyTimer.js.map +1 -1
- package/lib-es/components/Layout/constants.js.map +1 -1
- package/lib-es/components/Layout/helpers/check-if-row-has-columns.js.map +1 -1
- package/lib-es/components/Layout/helpers/get-styles-to-update.js.map +1 -1
- package/lib-es/components/Layout/helpers/index.js.map +1 -1
- package/lib-es/components/Layout/index.js.map +1 -1
- package/lib-es/components/LazyImage/LazyImage.js.map +1 -1
- package/lib-es/components/LazyImage/index.js.map +1 -1
- package/lib-es/components/List/ListBuilder.js.map +1 -1
- package/lib-es/components/List/ListFactory.js.map +1 -1
- package/lib-es/components/List/ListRender.js.map +1 -1
- package/lib-es/components/List/components/Cards/CardRenderWithInfiniteScroll.js.map +1 -1
- package/lib-es/components/List/components/Cards/CardsRender.js.map +1 -1
- package/lib-es/components/List/components/Cards/CardsRenderItem.js.map +1 -1
- package/lib-es/components/List/components/Cards/CardsRenderWrapper.js.map +1 -1
- package/lib-es/components/List/components/Cards/index.js.map +1 -1
- package/lib-es/components/List/components/Full/FullRender.js.map +1 -1
- package/lib-es/components/List/components/Full/FullRenderItem.js.map +1 -1
- package/lib-es/components/List/components/Full/FullRenderWithInfiniteScroll.js.map +1 -1
- package/lib-es/components/List/components/Full/index.js.map +1 -1
- package/lib-es/components/List/components/Header/ListHeader.js.map +1 -1
- package/lib-es/components/List/components/Header/index.js.map +1 -1
- package/lib-es/components/List/components/Pagination/Classic.js.map +1 -1
- package/lib-es/components/List/components/Pagination/ListPagination.js.map +1 -1
- package/lib-es/components/List/components/Pagination/LoadMore.js.map +1 -1
- package/lib-es/components/List/components/Pagination/index.js.map +1 -1
- package/lib-es/components/List/components/helpers/check-if-should-render-banner.js.map +1 -1
- package/lib-es/components/List/components/helpers/check-if-should-render-gtm.js.map +1 -1
- package/lib-es/components/List/components/helpers/index.js.map +1 -1
- package/lib-es/components/List/components/index.js.map +1 -1
- package/lib-es/components/List/constants.js.map +1 -1
- package/lib-es/components/List/helpers/build-az-aggregations.js.map +1 -1
- package/lib-es/components/List/helpers/build-az-url.js.map +1 -1
- package/lib-es/components/List/helpers/build-pagination-items.js.map +1 -1
- package/lib-es/components/List/helpers/build-pagination-url.js.map +1 -1
- package/lib-es/components/List/helpers/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-items-per-page-to-use.js.map +1 -1
- package/lib-es/components/List/helpers/get-list-component.js.map +1 -1
- package/lib-es/components/List/helpers/get-list-query.js.map +1 -1
- package/lib-es/components/List/helpers/get-list-specific-search-filter.js.map +1 -1
- package/lib-es/components/List/helpers/get-sort-props.js.map +1 -1
- package/lib-es/components/List/helpers/has-required-item-list-details.js.map +1 -1
- package/lib-es/components/List/helpers/index.js.map +1 -1
- package/lib-es/components/List/helpers/sort-aggs.js.map +1 -1
- package/lib-es/components/List/helpers/strip-query-key.js.map +1 -1
- package/lib-es/components/List/index.js.map +1 -1
- package/lib-es/components/Menu/Menu.js.map +1 -1
- package/lib-es/components/Menu/MenuContext.js.map +1 -1
- package/lib-es/components/Menu/index.js.map +1 -1
- package/lib-es/components/MenuItem/MenuItem.js.map +1 -1
- package/lib-es/components/MenuItem/index.js.map +1 -1
- package/lib-es/components/Modal/Modal.js.map +1 -1
- package/lib-es/components/Modal/index.js.map +1 -1
- package/lib-es/components/SearchContent/SearchContent.js.map +1 -1
- package/lib-es/components/SearchContent/SearchContentItems.js.map +1 -1
- package/lib-es/components/SearchContent/SearchContentResults.js.map +1 -1
- package/lib-es/components/SearchContent/SearchContentToggleIcon.js.map +1 -1
- package/lib-es/components/SearchContent/constants.js.map +1 -1
- package/lib-es/components/SearchContent/index.js.map +1 -1
- package/lib-es/components/SearchFilter/SearchFilter/CloseMobileForm.js.map +1 -1
- package/lib-es/components/SearchFilter/SearchFilter/FiltersList.js.map +1 -1
- package/lib-es/components/SearchFilter/SearchFilter/MobileFormToolbar.js.map +1 -1
- package/lib-es/components/SearchFilter/SearchFilter/ResetDesktopForm.js.map +1 -1
- package/lib-es/components/SearchFilter/SearchFilter/SearchFilter.js.map +1 -1
- package/lib-es/components/SearchFilter/SearchFilter/index.js.map +1 -1
- package/lib-es/components/SearchFilter/SearchFilterContainer.js.map +1 -1
- package/lib-es/components/SearchFilter/components/Checkbox.js.map +1 -1
- package/lib-es/components/SearchFilter/components/Range.js.map +1 -1
- package/lib-es/components/SearchFilter/components/Select.js.map +1 -1
- package/lib-es/components/SearchFilter/components/TextSearch.js.map +1 -1
- package/lib-es/components/SearchFilter/components/index.js.map +1 -1
- package/lib-es/components/SearchFilter/constants.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/build-filters-query.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/build-new-url.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/build-raw-query-stringified.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/build-url-query.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/calculate-min-max.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/calculate-step.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/check-if-range-updated.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/decode-encode.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/get-display-value.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/get-filter-ranges-and-checkboxes-values.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/get-filter-value-from-query.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/get-filter-values.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/get-initial-filter-values.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/get-intersected-prop.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/get-range-value.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/get-responsive-filter-classnames.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/get-select-options.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/get-updated-filter-by.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/index.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/is-device-desktop.js.map +1 -1
- package/lib-es/components/SearchFilter/helpers/parse-filter-value.js.map +1 -1
- package/lib-es/components/SearchFilter/index.js.map +1 -1
- package/lib-es/components/SearchFilter/searchFilterReducer.js.map +1 -1
- package/lib-es/components/SearchFilterSort/SearchFilterSort.js.map +1 -1
- package/lib-es/components/SearchFilterSort/constants.js.map +1 -1
- package/lib-es/components/SearchFilterSort/helpers/handle-sort-update.js.map +1 -1
- package/lib-es/components/SearchFilterSort/helpers/index.js.map +1 -1
- package/lib-es/components/SearchFilterSort/helpers/update-sort.js.map +1 -1
- package/lib-es/components/SearchFilterSort/index.js.map +1 -1
- package/lib-es/components/SocialFollow/SFItem.js.map +1 -1
- package/lib-es/components/SocialFollow/SocialFollow.js.map +1 -1
- package/lib-es/components/SocialFollow/SocialFollowRender.js.map +1 -1
- package/lib-es/components/SocialFollow/index.js.map +1 -1
- package/lib-es/components/SocialFollow/sf.config.js.map +1 -1
- package/lib-es/components/SubMenu/SubMenu.js.map +1 -1
- package/lib-es/components/SubMenu/index.js.map +1 -1
- package/lib-es/components/TextBlock/TextBlockRender.js.map +1 -1
- package/lib-es/components/TextBlock/index.js.map +1 -1
- package/lib-es/components/Video/Video.js.map +1 -1
- package/lib-es/components/Video/VideoModal.js.map +1 -1
- package/lib-es/components/Video/VideoRender.js.map +1 -1
- package/lib-es/components/Video/index.js.map +1 -1
- package/lib-es/components/Video/providers/Default.js.map +1 -1
- package/lib-es/components/Video/providers/JWPlayer/JWPlayerController.js.map +1 -1
- package/lib-es/components/Video/providers/JWPlayer/JWPlayerProvider.js.map +1 -1
- package/lib-es/components/Video/providers/Vimeo/VimeoProvider.js.map +1 -1
- package/lib-es/components/Video/providers/Vimeo/helpers/add-extra-params-to-url.js.map +1 -1
- package/lib-es/components/Video/providers/Vimeo/helpers/index.js.map +1 -1
- package/lib-es/components/Video/providers/YouTube/YouTubeProvider.js.map +1 -1
- package/lib-es/components/Video/providers/YouTube/YoutubeEmbeded.js.map +1 -1
- package/lib-es/components/Video/providers/YouTube/helpers/index.js.map +1 -1
- package/lib-es/components/Video/providers/get-provider.js.map +1 -1
- package/lib-es/components/Video/providers/index.js.map +1 -1
- package/lib-es/components/Wrapper.js.map +1 -1
- 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/append-images.js.map +1 -1
- package/lib-es/helpers/build-az-filter.js.map +1 -1
- package/lib-es/helpers/build-checkbox-filters.js.map +1 -1
- package/lib-es/helpers/build-image-properties.js.map +1 -1
- package/lib-es/helpers/build-inherited-filters.js.map +1 -1
- package/lib-es/helpers/build-link-extra-props.js.map +1 -1
- package/lib-es/helpers/build-props-query.js.map +1 -1
- package/lib-es/helpers/build-query-fields.js.map +1 -1
- package/lib-es/helpers/build-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.js.map +1 -1
- package/lib-es/helpers/build-search-values-checkbox-select.js.map +1 -1
- package/lib-es/helpers/build-search-values-text.js.map +1 -1
- package/lib-es/helpers/build-set-filters.js.map +1 -1
- package/lib-es/helpers/build-sort-values.js.map +1 -1
- package/lib-es/helpers/check-for-error.js.map +1 -1
- package/lib-es/helpers/check-props-to-use.js.map +1 -1
- package/lib-es/helpers/entities/constants.js.map +1 -1
- package/lib-es/helpers/get-banner-data.js.map +1 -1
- package/lib-es/helpers/get-checkbox-filters.js.map +1 -1
- package/lib-es/helpers/get-click-wrapper-options.js.map +1 -1
- package/lib-es/helpers/get-current-offset.js.map +1 -1
- package/lib-es/helpers/get-dictionary-match.js.map +1 -1
- package/lib-es/helpers/get-display-count-data.js.map +1 -1
- package/lib-es/helpers/get-elasticsearch-operator.js.map +1 -1
- package/lib-es/helpers/get-entities-with-banner.js.map +1 -1
- package/lib-es/helpers/get-entity-data.js.map +1 -1
- package/lib-es/helpers/get-entity-render-props.js.map +1 -1
- package/lib-es/helpers/get-extra-az-bits.js.map +1 -1
- package/lib-es/helpers/get-filter-props.js.map +1 -1
- package/lib-es/helpers/get-filter-relation-keys.js.map +1 -1
- package/lib-es/helpers/get-generic-props.js.map +1 -1
- package/lib-es/helpers/get-generic-render-variables.js.map +1 -1
- package/lib-es/helpers/get-image-ids.js.map +1 -1
- package/lib-es/helpers/get-inherited-filters.js.map +1 -1
- package/lib-es/helpers/get-items-to-display-ids.js.map +1 -1
- package/lib-es/helpers/get-modifiers.js.map +1 -1
- package/lib-es/helpers/get-not-equal-query.js.map +1 -1
- package/lib-es/helpers/get-pagination-index.js.map +1 -1
- package/lib-es/helpers/get-parsed-prop-values.js.map +1 -1
- package/lib-es/helpers/get-parsed-summary-value.js.map +1 -1
- package/lib-es/helpers/get-prop-values.js.map +1 -1
- package/lib-es/helpers/get-query-filters.js.map +1 -1
- package/lib-es/helpers/get-query-props.js.map +1 -1
- package/lib-es/helpers/get-required-schemas.js.map +1 -1
- package/lib-es/helpers/get-sanitized-prop-values.js.map +1 -1
- package/lib-es/helpers/get-search-filter-type.js.map +1 -1
- package/lib-es/helpers/get-sort-by-field-name.js.map +1 -1
- package/lib-es/helpers/get-unpublished-entity-name.js.map +1 -1
- package/lib-es/helpers/get-updated-filter-by.js.map +1 -1
- package/lib-es/helpers/get-wrapped-value-with-link.js.map +1 -1
- package/lib-es/helpers/group-entities.js.map +1 -1
- package/lib-es/helpers/has-children.js.map +1 -1
- package/lib-es/helpers/index.js.map +1 -1
- package/lib-es/helpers/inject-banner.js.map +1 -1
- package/lib-es/helpers/inject-banners-to-entities.js.map +1 -1
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/get-banners-for-entities.js.map +1 -1
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-entities/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/inject-multiple-banners/get-banners-for-nodes/helpers/group-node-entities.js.map +1 -1
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/helpers/index.js.map +1 -1
- package/lib-es/helpers/inject-multiple-banners/get-banners-for-nodes/index.js.map +1 -1
- package/lib-es/helpers/inject-multiple-banners/index.js.map +1 -1
- package/lib-es/helpers/inject-multiple-banners/inject-multiple-banners.js.map +1 -1
- package/lib-es/helpers/is-browser.js.map +1 -1
- package/lib-es/helpers/is-filter-entitys-id.js.map +1 -1
- package/lib-es/helpers/is-object.js.map +1 -1
- package/lib-es/helpers/is-using-relation-image.js.map +1 -1
- package/lib-es/helpers/parse-TextBlock.js.map +1 -1
- package/lib-es/helpers/parse-interval.js.map +1 -1
- package/lib-es/helpers/parse-props-to-display.js.map +1 -1
- package/lib-es/helpers/process-data-summary-value.js.map +1 -1
- package/lib-es/helpers/remove-extra-items.js.map +1 -1
- package/lib-es/helpers/remove-unwanted-characters.js.map +1 -1
- package/lib-es/helpers/render-children.js.map +1 -1
- package/lib-es/helpers/should-render-waypoint.js.map +1 -1
- package/lib-es/helpers/should-show-property.js.map +1 -1
- package/lib-es/helpers/sort-response-data.js.map +1 -1
- package/lib-es/helpers/split-children.js.map +1 -1
- package/lib-es/helpers/update-childrens-parent.js.map +1 -1
- package/lib-es/hooks/helpers/RenderComponent.js.map +1 -1
- package/lib-es/hooks/helpers/StoreImages.js.map +1 -1
- package/lib-es/hooks/helpers/append-gtm-classname.js.map +1 -1
- package/lib-es/hooks/helpers/buildPBComponents.js.map +1 -1
- package/lib-es/hooks/helpers/check-banner-insertion-set.js.map +1 -1
- package/lib-es/hooks/helpers/check-collisions.js.map +1 -1
- package/lib-es/hooks/helpers/constants.js.map +1 -1
- package/lib-es/hooks/helpers/get-banner-index.js.map +1 -1
- package/lib-es/hooks/helpers/get-components-to-insert-by-type.js.map +1 -1
- package/lib-es/hooks/helpers/get-lightbox-images.js.map +1 -1
- package/lib-es/hooks/helpers/getComponent.js.map +1 -1
- package/lib-es/hooks/helpers/getVariant.js.map +1 -1
- package/lib-es/hooks/helpers/index.js.map +1 -1
- package/lib-es/hooks/helpers/inject-element-components.js.map +1 -1
- package/lib-es/hooks/helpers/inject-textblock-banners.js.map +1 -1
- package/lib-es/hooks/helpers/insert-banners.js.map +1 -1
- package/lib-es/hooks/helpers/update-targetings.js.map +1 -1
- package/lib-es/hooks/index.js.map +1 -1
- package/lib-es/hooks/use-app-sync-event-hook.js.map +1 -1
- package/lib-es/hooks/use-banner-insertion.js.map +1 -1
- package/lib-es/hooks/use-check-mobile-screen.js.map +1 -1
- package/lib-es/hooks/use-get-entity-schema.js.map +1 -1
- package/lib-es/hooks/use-get-entity-schemas-as-obj.js.map +1 -1
- package/lib-es/hooks/use-get-image-id-from-relation.js.map +1 -1
- package/lib-es/hooks/use-get-images.js.map +1 -1
- package/lib-es/hooks/use-get-single-entity-schema.js.map +1 -1
- package/lib-es/hooks/use-page-builder.js.map +1 -1
- package/lib-es/index.js.map +1 -1
- package/lib-es/utils/component-map.js.map +1 -1
- package/lib-es/utils/get-class-modifiers.js.map +1 -1
- package/lib-es/utils/get-image-data.js.map +1 -1
- package/lib-es/utils/get-props-to-display-modifiers.js.map +1 -1
- package/lib-es/utils/index.js.map +1 -1
- package/lib-es/utils/is-object-empty.js.map +1 -1
- package/lib-es/utils/variant-handler.js.map +1 -1
- package/lib-es/variants/HeroImage/index.js.map +1 -1
- package/lib-es/variants/Infographic/Infographic.js.map +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/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/helpers/index.js.map +1 -1
- package/lib-es/variants/LongformGallery/helpers/parseImageData.js.map +1 -1
- package/lib-es/variants/LongformGallery/helpers/separateImages.js.map +1 -1
- package/lib-es/variants/LongformGallery/helpers/shouldSkip.js.map +1 -1
- package/lib-es/variants/LongformGallery/index.js.map +1 -1
- package/lib-es/variants/LongformGallery/useLongformGallery.js.map +1 -1
- package/lib-es/variants/LongformRow/index.js.map +1 -1
- package/lib-es/variants/ParallaxImageTextRight/index.js.map +1 -1
- package/lib-es/variants/SlideSummary/SlideSummary.js.map +1 -1
- package/lib-es/variants/SlideSummary/index.js.map +1 -1
- package/lib-es/variants/ThumbnailCarousel/ThumbnailCarousel.js.map +1 -1
- package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/ThumbnailImage.js.map +1 -1
- package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/index.js.map +1 -1
- package/lib-es/variants/ThumbnailCarousel/ThumbnailImage/useThumbnailImage.js.map +1 -1
- package/lib-es/variants/ThumbnailCarousel/index.js.map +1 -1
- package/lib-es/variants/ThumbnailCarousel/useThumbnailCarousel.js.map +1 -1
- package/lib-es/variants/index.js.map +1 -1
- package/package.json +10 -10
- package/src/components/DateTime/DateTime.js +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-data-summary-value.js","names":["_react","_interopRequireDefault","require","_components","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","i","_toPrimitive","_typeof","String","Symbol","toPrimitive","call","TypeError","Number","Code","components","code","renderCode","value","createElement","disableWrapper","processDataSummaryValue","objPropValue","_ref","isHtml","pValue","Array","isArray","map","_ref2","keyField","otherProps","_objectWithoutProperties2","_default","exports"],"sources":["../../src/helpers/process-data-summary-value.js"],"sourcesContent":["import React from 'react';\nimport components from '../components';\n\nconst { code: Code } = components;\n\nconst renderCode = value => <Code code={value} disableWrapper />;\n\nconst processDataSummaryValue = (objPropValue, { isHtml }) => {\n let pValue = objPropValue;\n if (isHtml) {\n pValue = Array.isArray(objPropValue)\n ? objPropValue.map(({ keyField, [keyField]: value, ...otherProps }) => ({\n [keyField]: renderCode(value),\n keyField,\n ...otherProps\n }))\n : renderCode(objPropValue);\n }\n return pValue;\n};\n\nexport default processDataSummaryValue;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAF,sBAAA,CAAAC,OAAA;AAAuC,SAAAE,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,MAAA,WAAAN,CAAA,WAAAE,MAAA,CAAAK,wBAAA,CAAAR,CAAA,EAAAC,CAAA,EAAAQ,UAAA,OAAAP,CAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,CAAA,EAAAI,CAAA,YAAAJ,CAAA;AAAA,SAAAU,cAAAZ,CAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAY,SAAA,CAAAC,MAAA,EAAAb,CAAA,UAAAC,CAAA,WAAAW,SAAA,CAAAZ,CAAA,IAAAY,SAAA,CAAAZ,CAAA,QAAAA,CAAA,OAAAF,OAAA,CAAAI,MAAA,CAAAD,CAAA,OAAAa,OAAA,WAAAd,CAAA,QAAAe,gBAAA,aAAAhB,CAAA,EAAAC,CAAA,EAAAC,CAAA,CAAAD,CAAA,SAAAE,MAAA,CAAAc,yBAAA,GAAAd,MAAA,CAAAe,gBAAA,CAAAlB,CAAA,EAAAG,MAAA,CAAAc,yBAAA,CAAAf,CAAA,KAAAH,OAAA,CAAAI,MAAA,CAAAD,CAAA,GAAAa,OAAA,WAAAd,CAAA,IAAAE,MAAA,CAAAgB,cAAA,CAAAnB,CAAA,EAAAC,CAAA,EAAAE,MAAA,CAAAK,wBAAA,CAAAN,CAAA,EA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iBACpC8B,QAAQ,EAAGb,UAAU,CAACC,KAAK,CAAC,eAC7BY,QAAQ,GACLC,UAAU;IAAA,CACb,CAAC,GACHd,UAAU,CAACK,YAAY,CAAC;EAC9B;EACA,OAAOG,MAAM;AACf,CAAC;AAAC,IAAAQ,QAAA,GAAAC,OAAA,cAEab,uBAAuB"
|
|
1
|
+
{"version":3,"file":"process-data-summary-value.js","names":["_react","_interopRequireDefault","require","_components","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","i","_toPrimitive","_typeof","String","Symbol","toPrimitive","call","TypeError","Number","Code","components","code","renderCode","value","createElement","disableWrapper","processDataSummaryValue","objPropValue","_ref","isHtml","pValue","Array","isArray","map","_ref2","keyField","otherProps","_objectWithoutProperties2","_default","exports"],"sources":["../../src/helpers/process-data-summary-value.js"],"sourcesContent":["import React from 'react';\nimport components from '../components';\n\nconst { code: Code } = components;\n\nconst renderCode = value => <Code code={value} disableWrapper />;\n\nconst processDataSummaryValue = (objPropValue, { isHtml }) => {\n let pValue = objPropValue;\n if (isHtml) {\n pValue = Array.isArray(objPropValue)\n ? objPropValue.map(({ keyField, [keyField]: value, ...otherProps }) => ({\n [keyField]: renderCode(value),\n keyField,\n ...otherProps\n }))\n : renderCode(objPropValue);\n }\n return pValue;\n};\n\nexport default processDataSummaryValue;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAF,sBAAA,CAAAC,OAAA;AAAuC,SAAAE,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAA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CAAA,YAAAO,SAAA,yEAAA3B,CAAA,GAAAuB,MAAA,GAAAK,MAAA,EAAA3B,CAAA;AAEvC,IAAc4B,IAAI,GAAKC,sBAAU,CAAzBC,IAAI;AAEZ,IAAMC,UAAU,GAAG,SAAbA,UAAUA,CAAGC,KAAK;EAAA,oBAAIvC,MAAA,YAAAwC,aAAA,CAACL,IAAI;IAACE,IAAI,EAAEE,KAAM;IAACE,cAAc;EAAA,CAAE,CAAC;AAAA;AAEhE,IAAMC,uBAAuB,GAAG,SAA1BA,uBAAuBA,CAAIC,YAAY,EAAAC,IAAA,EAAiB;EAAA,IAAbC,MAAM,GAAAD,IAAA,CAANC,MAAM;EACrD,IAAIC,MAAM,GAAGH,YAAY;EACzB,IAAIE,MAAM,EAAE;IACVC,MAAM,GAAGC,KAAK,CAACC,OAAO,CAACL,YAAY,CAAC,GAChCA,YAAY,CAACM,GAAG,CAAC,UAAAC,KAAA;MAAA,IAAGC,QAAQ,GAAAD,KAAA,CAARC,QAAQ;QAAcZ,KAAK,GAAAW,KAAA,CAAhBC,QAAQ;QAAaC,UAAU,OAAAC,yBAAA,aAAAH,KAAA,eAA/BC,QAAQ,EAAAF,GAAA,CAAAxB,cAAA;MAAA,OAAAR,aAAA,KAAAI,gBAAA,iBAAAA,gBAAA,iBACpC8B,QAAQ,EAAGb,UAAU,CAACC,KAAK,CAAC,eAC7BY,QAAQ,GACLC,UAAU;IAAA,CACb,CAAC,GACHd,UAAU,CAACK,YAAY,CAAC;EAC9B;EACA,OAAOG,MAAM;AACf,CAAC;AAAC,IAAAQ,QAAA,GAAAC,OAAA,cAEab,uBAAuB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-extra-items.js","names":["removeExtraItems","data","limit","itemId","newData","i","length","id","push","_default","exports"],"sources":["../../src/helpers/remove-extra-items.js"],"sourcesContent":["function removeExtraItems(data, limit, itemId) {\n const newData = [];\n // eslint-disable-next-line no-plusplus\n for (let i = 0; i < data.length; i++) {\n if (data[i].id !== itemId) {\n newData.push(data[i]);\n }\n if (newData.length >= limit) break;\n }\n return newData;\n}\n\nexport default removeExtraItems;\n"],"mappings":";;;;;;;AAAA,SAASA,gBAAgBA,CAACC,IAAI,EAAEC,KAAK,EAAEC,MAAM,EAAE;EAC7C,IAAMC,OAAO,GAAG,EAAE;EAClB;EACA,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGJ,IAAI,CAACK,MAAM,EAAED,CAAC,EAAE,EAAE;IACpC,IAAIJ,IAAI,CAACI,CAAC,CAAC,CAACE,EAAE,KAAKJ,MAAM,EAAE;MACzBC,OAAO,CAACI,IAAI,CAACP,IAAI,CAACI,CAAC,CAAC,CAAC;IACvB;IACA,IAAID,OAAO,CAACE,MAAM,IAAIJ,KAAK,EAAE;EAC/B;EACA,OAAOE,OAAO;AAChB;AAAC,IAAAK,QAAA,GAAAC,OAAA,cAEcV,gBAAgB"
|
|
1
|
+
{"version":3,"file":"remove-extra-items.js","names":["removeExtraItems","data","limit","itemId","newData","i","length","id","push","_default","exports"],"sources":["../../src/helpers/remove-extra-items.js"],"sourcesContent":["function removeExtraItems(data, limit, itemId) {\n const newData = [];\n // eslint-disable-next-line no-plusplus\n for (let i = 0; i < data.length; i++) {\n if (data[i].id !== itemId) {\n newData.push(data[i]);\n }\n if (newData.length >= limit) break;\n }\n return newData;\n}\n\nexport default removeExtraItems;\n"],"mappings":";;;;;;;AAAA,SAASA,gBAAgBA,CAACC,IAAI,EAAEC,KAAK,EAAEC,MAAM,EAAE;EAC7C,IAAMC,OAAO,GAAG,EAAE;EAClB;EACA,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGJ,IAAI,CAACK,MAAM,EAAED,CAAC,EAAE,EAAE;IACpC,IAAIJ,IAAI,CAACI,CAAC,CAAC,CAACE,EAAE,KAAKJ,MAAM,EAAE;MACzBC,OAAO,CAACI,IAAI,CAACP,IAAI,CAACI,CAAC,CAAC,CAAC;IACvB;IACA,IAAID,OAAO,CAACE,MAAM,IAAIJ,KAAK,EAAE;EAC/B;EACA,OAAOE,OAAO;AAChB;AAAC,IAAAK,QAAA,GAAAC,OAAA,cAEcV,gBAAgB"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
require("core-js/modules/es.object.keys.js");
|
|
3
4
|
require("core-js/modules/es.symbol.js");
|
|
4
5
|
require("core-js/modules/es.array.filter.js");
|
|
6
|
+
require("core-js/modules/es.object.to-string.js");
|
|
7
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
5
8
|
require("core-js/modules/es.array.for-each.js");
|
|
9
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
10
|
+
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
6
11
|
require("core-js/modules/es.object.define-properties.js");
|
|
7
12
|
require("core-js/modules/es.object.define-property.js");
|
|
8
|
-
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
9
|
-
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
10
|
-
require("core-js/modules/es.object.keys.js");
|
|
11
|
-
require("core-js/modules/es.object.to-string.js");
|
|
12
|
-
require("core-js/modules/web.dom-collections.for-each.js");
|
|
13
13
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
14
14
|
Object.defineProperty(exports, "__esModule", {
|
|
15
15
|
value: true
|
|
@@ -19,9 +19,9 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
19
19
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
20
20
|
require("core-js/modules/es.array.is-array.js");
|
|
21
21
|
require("core-js/modules/es.array.map.js");
|
|
22
|
+
require("core-js/modules/es.string.trim.js");
|
|
22
23
|
require("core-js/modules/es.regexp.exec.js");
|
|
23
24
|
require("core-js/modules/es.string.replace.js");
|
|
24
|
-
require("core-js/modules/es.string.trim.js");
|
|
25
25
|
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; }
|
|
26
26
|
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; }
|
|
27
27
|
function removeUnwantedCharacters(value) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-unwanted-characters.js","names":["removeUnwantedCharacters","value","args","Array","isArray","map","removeCharacters","_typeof2","keyField","_objectSpread","_defineProperty2","String","replace","trim","_default","exports"],"sources":["../../src/helpers/remove-unwanted-characters.js"],"sourcesContent":["function removeUnwantedCharacters(value) {\n const args = value ?? '';\n\n return Array.isArray(args) ? value.map(removeUnwantedCharacters) : removeCharacters(args);\n}\n\nfunction removeCharacters(value) {\n if (typeof value === 'object') {\n const { keyField } = value;\n if (!keyField) return value;\n return { ...value, [keyField]: removeUnwantedCharacters(value[keyField]) };\n }\n\n return String(value)\n .replace(/^\\|\\s/, '')\n .replace(/\\|$/, '')\n .trim();\n}\n\nexport default removeUnwantedCharacters;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAASA,wBAAwBA,CAACC,KAAK,EAAE;EACvC,IAAMC,IAAI,GAAGD,KAAK,aAALA,KAAK,cAALA,KAAK,GAAI,EAAE;EAExB,OAAOE,KAAK,CAACC,OAAO,CAACF,IAAI,CAAC,GAAGD,KAAK,CAACI,GAAG,CAACL,wBAAwB,CAAC,GAAGM,gBAAgB,CAACJ,IAAI,CAAC;AAC3F;AAEA,SAASI,gBAAgBA,CAACL,KAAK,EAAE;EAC/B,IAAI,IAAAM,QAAA,aAAON,KAAK,MAAK,QAAQ,EAAE;IAC7B,IAAQO,QAAQ,GAAKP,KAAK,CAAlBO,QAAQ;IAChB,IAAI,CAACA,QAAQ,EAAE,OAAOP,KAAK;IAC3B,OAAAQ,aAAA,CAAAA,aAAA,KAAYR,KAAK,WAAAS,gBAAA,iBAAGF,QAAQ,EAAGR,wBAAwB,CAACC,KAAK,CAACO,QAAQ,CAAC,CAAC;EAC1E;EAEA,OAAOG,MAAM,CAACV,KAAK,CAAC,CACjBW,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CACpBA,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAClBC,IAAI,CAAC,CAAC;AACX;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEcf,wBAAwB"
|
|
1
|
+
{"version":3,"file":"remove-unwanted-characters.js","names":["removeUnwantedCharacters","value","args","Array","isArray","map","removeCharacters","_typeof2","keyField","_objectSpread","_defineProperty2","String","replace","trim","_default","exports"],"sources":["../../src/helpers/remove-unwanted-characters.js"],"sourcesContent":["function removeUnwantedCharacters(value) {\n const args = value ?? '';\n\n return Array.isArray(args) ? value.map(removeUnwantedCharacters) : removeCharacters(args);\n}\n\nfunction removeCharacters(value) {\n if (typeof value === 'object') {\n const { keyField } = value;\n if (!keyField) return value;\n return { ...value, [keyField]: removeUnwantedCharacters(value[keyField]) };\n }\n\n return String(value)\n .replace(/^\\|\\s/, '')\n .replace(/\\|$/, '')\n .trim();\n}\n\nexport default removeUnwantedCharacters;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAASA,wBAAwBA,CAACC,KAAK,EAAE;EACvC,IAAMC,IAAI,GAAGD,KAAK,aAALA,KAAK,cAALA,KAAK,GAAI,EAAE;EAExB,OAAOE,KAAK,CAACC,OAAO,CAACF,IAAI,CAAC,GAAGD,KAAK,CAACI,GAAG,CAACL,wBAAwB,CAAC,GAAGM,gBAAgB,CAACJ,IAAI,CAAC;AAC3F;AAEA,SAASI,gBAAgBA,CAACL,KAAK,EAAE;EAC/B,IAAI,IAAAM,QAAA,aAAON,KAAK,MAAK,QAAQ,EAAE;IAC7B,IAAQO,QAAQ,GAAKP,KAAK,CAAlBO,QAAQ;IAChB,IAAI,CAACA,QAAQ,EAAE,OAAOP,KAAK;IAC3B,OAAAQ,aAAA,CAAAA,aAAA,KAAYR,KAAK,WAAAS,gBAAA,iBAAGF,QAAQ,EAAGR,wBAAwB,CAACC,KAAK,CAACO,QAAQ,CAAC,CAAC;EAC1E;EAEA,OAAOG,MAAM,CAACV,KAAK,CAAC,CACjBW,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CACpBA,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAClBC,IAAI,CAAC,CAAC;AACX;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEcf,wBAAwB"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
require("core-js/modules/es.object.keys.js");
|
|
3
4
|
require("core-js/modules/es.symbol.js");
|
|
4
5
|
require("core-js/modules/es.array.filter.js");
|
|
5
|
-
require("core-js/modules/es.object.define-properties.js");
|
|
6
|
-
require("core-js/modules/es.object.define-property.js");
|
|
7
6
|
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
8
7
|
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
9
|
-
require("core-js/modules/es.object.
|
|
8
|
+
require("core-js/modules/es.object.define-properties.js");
|
|
9
|
+
require("core-js/modules/es.object.define-property.js");
|
|
10
10
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
11
11
|
Object.defineProperty(exports, "__esModule", {
|
|
12
12
|
value: true
|
|
@@ -15,10 +15,10 @@ exports["default"] = void 0;
|
|
|
15
15
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
16
16
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
17
17
|
require("core-js/modules/es.array.for-each.js");
|
|
18
|
-
require("core-js/modules/es.array.is-array.js");
|
|
19
|
-
require("core-js/modules/es.array.map.js");
|
|
20
18
|
require("core-js/modules/es.object.to-string.js");
|
|
21
19
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
20
|
+
require("core-js/modules/es.array.map.js");
|
|
21
|
+
require("core-js/modules/es.array.is-array.js");
|
|
22
22
|
var _react = _interopRequireDefault(require("react"));
|
|
23
23
|
var _constants = require("../constants");
|
|
24
24
|
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; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-children.js","names":["_react","_interopRequireDefault","require","_constants","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","buildChildProps","childProps","parentProps","propsToOverride","CHILD_PROPS_TO_USE","prop","renderChildren","children","otherProps","undefined","React","Children","map","child","childrenElements","props","Array","isArray","_child$props$children","_slicedToArray2","nestedChildren","nestedChild","cloneElement","_default","exports"],"sources":["../../src/helpers/render-children.js"],"sourcesContent":["import React from 'react';\nimport { CHILD_PROPS_TO_USE } from '../constants';\n\nconst buildChildProps = (childProps, parentProps) => {\n const propsToOverride = {};\n CHILD_PROPS_TO_USE.forEach(prop => (propsToOverride[prop] = childProps[prop]));\n return { ...parentProps, ...propsToOverride };\n};\n\nconst renderChildren = (children, otherProps = {}) =>\n React.Children.map(children, child => {\n const childrenElements = child.props.children;\n if (Array.isArray(childrenElements) && childrenElements.length) {\n const [, nestedChildren] = child.props.children;\n return (\n Array.isArray(nestedChildren) &&\n nestedChildren.map(nestedChild => renderChildren(nestedChild, otherProps))\n );\n }\n const childProps = buildChildProps(child.props, otherProps);\n return React.cloneElement(child, { ...childProps });\n });\n\nexport default renderChildren;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAAkD,SAAAE,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,MAAA,WAAAN,CAAA,WAAAE,MAAA,CAAAK,wBAAA,CAAAR,CAAA,EAAAC,CAAA,EAAAQ,UAAA,OAAAP,CAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,CAAA,EAAAI,CAAA,YAAAJ,CAAA;AAAA,SAAAU,cAAAZ,CAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAY,SAAA,CAAAC,MAAA,EAAAb,CAAA,UAAAC,CAAA,WAAAW,SAAA,CAAAZ,CAAA,IAAAY,SAAA,CAAAZ,CAAA,QAAAA,CAAA,OAAAF,OAAA,CAAAI,MAAA,CAAAD,CAAA,OAAAa,OAAA,WAAAd,CAAA,QAAAe,gBAAA,aAAAhB,CAAA,EAAAC,CAAA,EAAAC,CAAA,CAAAD,CAAA,SAAAE,MAAA,CAAAc,yBAAA,GAAAd,MAAA,CAAAe,gBAAA,CAAAlB,CAAA,EAAAG,MAAA,CAAAc,yBAAA,CAAAf,CAAA,KAAAH,OAAA,CAAAI,MAAA,CAAAD,CAAA,GAAAa,OAAA,WAAAd,CAAA,IAAAE,MAAA,CAAAgB,cAAA,CAAAnB,CAAA,EAAAC,CAAA,EAAAE,MAAA,CAAAK,wBAAA,CAAAN,CAAA,EAAAD,CAAA,iBAAAD,CAAA;AAElD,IA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"render-children.js","names":["_react","_interopRequireDefault","require","_constants","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","buildChildProps","childProps","parentProps","propsToOverride","CHILD_PROPS_TO_USE","prop","renderChildren","children","otherProps","undefined","React","Children","map","child","childrenElements","props","Array","isArray","_child$props$children","_slicedToArray2","nestedChildren","nestedChild","cloneElement","_default","exports"],"sources":["../../src/helpers/render-children.js"],"sourcesContent":["import React from 'react';\nimport { CHILD_PROPS_TO_USE } from '../constants';\n\nconst buildChildProps = (childProps, parentProps) => {\n const propsToOverride = {};\n CHILD_PROPS_TO_USE.forEach(prop => (propsToOverride[prop] = childProps[prop]));\n return { ...parentProps, ...propsToOverride };\n};\n\nconst renderChildren = (children, otherProps = {}) =>\n React.Children.map(children, child => {\n const childrenElements = child.props.children;\n if (Array.isArray(childrenElements) && childrenElements.length) {\n const [, nestedChildren] = child.props.children;\n return (\n Array.isArray(nestedChildren) &&\n nestedChildren.map(nestedChild => renderChildren(nestedChild, otherProps))\n );\n }\n const childProps = buildChildProps(child.props, otherProps);\n return React.cloneElement(child, { ...childProps });\n });\n\nexport default renderChildren;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAAkD,SAAAE,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,MAAA,WAAAN,CAAA,WAAAE,MAAA,CAAAK,wBAAA,CAAAR,CAAA,EAAAC,CAAA,EAAAQ,UAAA,OAAAP,CAAA,CAAAQ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K,EAAI;IACpC,IAAMC,gBAAgB,GAAGD,KAAK,CAACE,KAAK,CAACR,QAAQ;IAC7C,IAAIS,KAAK,CAACC,OAAO,CAACH,gBAAgB,CAAC,IAAIA,gBAAgB,CAACpB,MAAM,EAAE;MAC9D,IAAAwB,qBAAA,OAAAC,eAAA,aAA2BN,KAAK,CAACE,KAAK,CAACR,QAAQ;QAAtCa,cAAc,GAAAF,qBAAA;MACvB,OACEF,KAAK,CAACC,OAAO,CAACG,cAAc,CAAC,IAC7BA,cAAc,CAACR,GAAG,CAAC,UAAAS,WAAW;QAAA,OAAIf,cAAc,CAACe,WAAW,EAAEb,UAAU,CAAC;MAAA,EAAC;IAE9E;IACA,IAAMP,UAAU,GAAGD,eAAe,CAACa,KAAK,CAACE,KAAK,EAAEP,UAAU,CAAC;IAC3D,oBAAOE,iBAAK,CAACY,YAAY,CAACT,KAAK,EAAArB,aAAA,KAAOS,UAAU,CAAE,CAAC;EACrD,CAAC,CAAC;AAAA;AAAC,IAAAsB,QAAA,GAAAC,OAAA,cAEUlB,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"should-render-waypoint.js","names":["shouldRenderWaypoint","index","arguments","length","undefined","listLength","infiniteIndex","listTotal","_default","exports"],"sources":["../../src/helpers/should-render-waypoint.js"],"sourcesContent":["const shouldRenderWaypoint = (index = 0, listLength = 0, infiniteIndex = 1, listTotal = 1) =>\n !!(index === listLength - 3 && infiniteIndex !== listTotal);\n\nexport default shouldRenderWaypoint;\n"],"mappings":";;;;;;;AAAA,IAAMA,oBAAoB,GAAG,SAAvBA,oBAAoBA,CAAA;EAAA,IAAIC,KAAK,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;EAAA,IAAEG,UAAU,GAAAH,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;EAAA,IAAEI,aAAa,GAAAJ,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;EAAA,IAAEK,SAAS,GAAAL,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;EAAA,OACvF,CAAC,EAAED,KAAK,KAAKI,UAAU,GAAG,CAAC,IAAIC,aAAa,KAAKC,SAAS,CAAC;AAAA;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAE/CT,oBAAoB"
|
|
1
|
+
{"version":3,"file":"should-render-waypoint.js","names":["shouldRenderWaypoint","index","arguments","length","undefined","listLength","infiniteIndex","listTotal","_default","exports"],"sources":["../../src/helpers/should-render-waypoint.js"],"sourcesContent":["const shouldRenderWaypoint = (index = 0, listLength = 0, infiniteIndex = 1, listTotal = 1) =>\n !!(index === listLength - 3 && infiniteIndex !== listTotal);\n\nexport default shouldRenderWaypoint;\n"],"mappings":";;;;;;;AAAA,IAAMA,oBAAoB,GAAG,SAAvBA,oBAAoBA,CAAA;EAAA,IAAIC,KAAK,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;EAAA,IAAEG,UAAU,GAAAH,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;EAAA,IAAEI,aAAa,GAAAJ,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;EAAA,IAAEK,SAAS,GAAAL,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;EAAA,OACvF,CAAC,EAAED,KAAK,KAAKI,UAAU,GAAG,CAAC,IAAIC,aAAa,KAAKC,SAAS,CAAC;AAAA;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAE/CT,oBAAoB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"should-show-property.js","names":["shouldShowProperty","_ref","isDisplayed","value","_default","exports"],"sources":["../../src/helpers/should-show-property.js"],"sourcesContent":["const shouldShowProperty = ({ isDisplayed, value }) => isDisplayed && !!value;\n\nexport default shouldShowProperty;\n"],"mappings":";;;;;;;AAAA,IAAMA,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAAC,IAAA;EAAA,IAAMC,WAAW,GAAAD,IAAA,CAAXC,WAAW;IAAEC,KAAK,GAAAF,IAAA,CAALE,KAAK;EAAA,OAAOD,WAAW,IAAI,CAAC,CAACC,KAAK;AAAA;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAE/DL,kBAAkB"
|
|
1
|
+
{"version":3,"file":"should-show-property.js","names":["shouldShowProperty","_ref","isDisplayed","value","_default","exports"],"sources":["../../src/helpers/should-show-property.js"],"sourcesContent":["const shouldShowProperty = ({ isDisplayed, value }) => isDisplayed && !!value;\n\nexport default shouldShowProperty;\n"],"mappings":";;;;;;;AAAA,IAAMA,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAAC,IAAA;EAAA,IAAMC,WAAW,GAAAD,IAAA,CAAXC,WAAW;IAAEC,KAAK,GAAAF,IAAA,CAALE,KAAK;EAAA,OAAOD,WAAW,IAAI,CAAC,CAACC,KAAK;AAAA;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAE/DL,kBAAkB"}
|
|
@@ -7,9 +7,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = void 0;
|
|
9
9
|
require("core-js/modules/es.array.filter.js");
|
|
10
|
-
require("core-js/modules/es.array.find.js");
|
|
11
|
-
require("core-js/modules/es.array.map.js");
|
|
12
10
|
require("core-js/modules/es.object.to-string.js");
|
|
11
|
+
require("core-js/modules/es.array.map.js");
|
|
12
|
+
require("core-js/modules/es.array.find.js");
|
|
13
13
|
var _getItemsToDisplayIds = _interopRequireDefault(require("./get-items-to-display-ids"));
|
|
14
14
|
var sortResponseData = function sortResponseData() {
|
|
15
15
|
var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sort-response-data.js","names":["_getItemsToDisplayIds","_interopRequireDefault","require","sortResponseData","data","arguments","length","undefined","itemsToDisplay","idsToDisplay","getItemsToDisplayIds","map","id","find","_ref","resultId","filter","Boolean","_default","exports"],"sources":["../../src/helpers/sort-response-data.js"],"sourcesContent":["import getItemsToDisplayIds from './get-items-to-display-ids';\n\nconst sortResponseData = (data = [], itemsToDisplay = []) => {\n const idsToDisplay = getItemsToDisplayIds(itemsToDisplay);\n if (!idsToDisplay.length) return data;\n return idsToDisplay.map(id => data.find(({ id: resultId }) => id === resultId)).filter(Boolean);\n};\n\nexport default sortResponseData;\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,qBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAA,EAAuC;EAAA,IAAnCC,IAAI,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EAAA,IAAEG,cAAc,GAAAH,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EACtD,IAAMI,YAAY,GAAG,IAAAC,gCAAoB,EAACF,cAAc,CAAC;EACzD,IAAI,CAACC,YAAY,CAACH,MAAM,EAAE,OAAOF,IAAI;EACrC,OAAOK,YAAY,CAACE,GAAG,CAAC,UAAAC,EAAE;IAAA,OAAIR,IAAI,CAACS,IAAI,CAAC,UAAAC,IAAA;MAAA,IAAOC,QAAQ,GAAAD,IAAA,CAAZF,EAAE;MAAA,OAAiBA,EAAE,KAAKG,QAAQ;IAAA,EAAC;EAAA,EAAC,CAACC,MAAM,CAACC,OAAO,CAAC;AACjG,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEahB,gBAAgB"
|
|
1
|
+
{"version":3,"file":"sort-response-data.js","names":["_getItemsToDisplayIds","_interopRequireDefault","require","sortResponseData","data","arguments","length","undefined","itemsToDisplay","idsToDisplay","getItemsToDisplayIds","map","id","find","_ref","resultId","filter","Boolean","_default","exports"],"sources":["../../src/helpers/sort-response-data.js"],"sourcesContent":["import getItemsToDisplayIds from './get-items-to-display-ids';\n\nconst sortResponseData = (data = [], itemsToDisplay = []) => {\n const idsToDisplay = getItemsToDisplayIds(itemsToDisplay);\n if (!idsToDisplay.length) return data;\n return idsToDisplay.map(id => data.find(({ id: resultId }) => id === resultId)).filter(Boolean);\n};\n\nexport default sortResponseData;\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,qBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAA,EAAuC;EAAA,IAAnCC,IAAI,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EAAA,IAAEG,cAAc,GAAAH,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EACtD,IAAMI,YAAY,GAAG,IAAAC,gCAAoB,EAACF,cAAc,CAAC;EACzD,IAAI,CAACC,YAAY,CAACH,MAAM,EAAE,OAAOF,IAAI;EACrC,OAAOK,YAAY,CAACE,GAAG,CAAC,UAAAC,EAAE;IAAA,OAAIR,IAAI,CAACS,IAAI,CAAC,UAAAC,IAAA;MAAA,IAAOC,QAAQ,GAAAD,IAAA,CAAZF,EAAE;MAAA,OAAiBA,EAAE,KAAKG,QAAQ;IAAA,EAAC;EAAA,EAAC,CAACC,MAAM,CAACC,OAAO,CAAC;AACjG,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEahB,gBAAgB"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
require("core-js/modules/es.object.keys.js");
|
|
3
4
|
require("core-js/modules/es.symbol.js");
|
|
4
5
|
require("core-js/modules/es.array.filter.js");
|
|
5
|
-
require("core-js/modules/es.object.define-properties.js");
|
|
6
|
-
require("core-js/modules/es.object.define-property.js");
|
|
7
6
|
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
8
7
|
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
9
|
-
require("core-js/modules/es.object.
|
|
8
|
+
require("core-js/modules/es.object.define-properties.js");
|
|
9
|
+
require("core-js/modules/es.object.define-property.js");
|
|
10
10
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
11
11
|
Object.defineProperty(exports, "__esModule", {
|
|
12
12
|
value: true
|
|
@@ -14,10 +14,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
14
14
|
exports["default"] = void 0;
|
|
15
15
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
16
|
require("core-js/modules/es.array.for-each.js");
|
|
17
|
-
require("core-js/modules/es.array.is-array.js");
|
|
18
|
-
require("core-js/modules/es.array.map.js");
|
|
19
17
|
require("core-js/modules/es.object.to-string.js");
|
|
20
18
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
19
|
+
require("core-js/modules/es.array.map.js");
|
|
20
|
+
require("core-js/modules/es.array.is-array.js");
|
|
21
21
|
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; }
|
|
22
22
|
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; }
|
|
23
23
|
/* eslint-disable no-param-reassign */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"split-children.js","names":["filterChildren","children","parentComponent","withGTMChildren","nonGTMChildren","forEach","child","_child$props","props","_child$props2","_child$props2$compone","component","_child$props2$compone2","_child$props2$compone3","type","push","_objectSpread","buildListChildren","filteredChildren","data","childProps","_children$props","_children$props2","nestedChildren","childrenWithData","map","settings","parentData","length","splitChildren","graphqlEntityMap","arguments","undefined","Array","isArray","regularChildren","_children$props3","_children$props4","_filterChildren","parentDataWithEntity","item","itemId","id","itemEntity","__typename","gtmChildren","_default","exports"],"sources":["../../src/helpers/split-children.js"],"sourcesContent":["/* eslint-disable no-param-reassign */\nconst filterChildren = (children, parentComponent) => {\n const withGTMChildren = [];\n const nonGTMChildren = [];\n children.forEach(child => {\n const { props: { component: { type = '' } = {} } = {} } = child;\n type === 'gtm-events'\n ? withGTMChildren.push({ ...child, props: { ...child.props, parentComponent } })\n : nonGTMChildren.push(child);\n });\n return { withGTMChildren, nonGTMChildren };\n};\n\nconst buildListChildren = (children, filteredChildren, data) => {\n const { props: childProps, props: { children: nestedChildren } = {} } = children;\n const childrenWithData = data\n ? filteredChildren.map(child => {\n child.props.component.settings.parentData = data;\n return child;\n })\n : filteredChildren;\n\n return childrenWithData && childrenWithData.length\n ? {\n ...children,\n props: {\n ...childProps,\n children: [nestedChildren[0], childrenWithData]\n }\n }\n : null;\n};\n\nconst splitChildren = (children, parentData, graphqlEntityMap, parentComponent = {}) => {\n if (!children || Array.isArray(children)) return { regularChildren: children };\n const { props: { children: nestedChildren } = {} } = children;\n\n const { nonGTMChildren, withGTMChildren } = filterChildren(nestedChildren[1], parentComponent);\n const regularChildren = buildListChildren(children, nonGTMChildren);\n const parentDataWithEntity = parentData.map(item => ({\n ...item,\n itemId: item.id,\n itemEntity: graphqlEntityMap[item.__typename]\n }));\n\n const gtmChildren = buildListChildren(children, withGTMChildren, parentDataWithEntity);\n\n return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UAAAe,IAAI;IAAA,OAAAxB,aAAA,CAAAA,aAAA,KAC3CwB,IAAI;MACPC,MAAM,EAAED,IAAI,CAACE,EAAE;MACfC,UAAU,EAAEb,gBAAgB,CAACU,IAAI,CAACI,UAAU;IAAC;EAAA,CAC7C,CAAC;EAEH,IAAMC,WAAW,GAAG5B,iBAAiB,CAAChB,QAAQ,EAAEE,eAAe,EAAEoC,oBAAoB,CAAC;EAEtF,OAAO;IAAEJ,eAAe,EAAfA,eAAe;IAAEU,WAAW,EAAXA;EAAY,CAAC;AACzC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEalB,aAAa"
|
|
1
|
+
{"version":3,"file":"split-children.js","names":["filterChildren","children","parentComponent","withGTMChildren","nonGTMChildren","forEach","child","_child$props","props","_child$props2","_child$props2$compone","component","_child$props2$compone2","_child$props2$compone3","type","push","_objectSpread","buildListChildren","filteredChildren","data","childProps","_children$props","_children$props2","nestedChildren","childrenWithData","map","settings","parentData","length","splitChildren","graphqlEntityMap","arguments","undefined","Array","isArray","regularChildren","_children$props3","_children$props4","_filterChildren","parentDataWithEntity","item","itemId","id","itemEntity","__typename","gtmChildren","_default","exports"],"sources":["../../src/helpers/split-children.js"],"sourcesContent":["/* eslint-disable no-param-reassign */\nconst filterChildren = (children, parentComponent) => {\n const withGTMChildren = [];\n const nonGTMChildren = [];\n children.forEach(child => {\n const { props: { component: { type = '' } = {} } = {} } = child;\n type === 'gtm-events'\n ? withGTMChildren.push({ ...child, props: { ...child.props, parentComponent } })\n : nonGTMChildren.push(child);\n });\n return { withGTMChildren, nonGTMChildren };\n};\n\nconst buildListChildren = (children, filteredChildren, data) => {\n const { props: childProps, props: { children: nestedChildren } = {} } = children;\n const childrenWithData = data\n ? filteredChildren.map(child => {\n child.props.component.settings.parentData = data;\n return child;\n })\n : filteredChildren;\n\n return childrenWithData && childrenWithData.length\n ? {\n ...children,\n props: {\n ...childProps,\n children: [nestedChildren[0], childrenWithData]\n }\n }\n : null;\n};\n\nconst splitChildren = (children, parentData, graphqlEntityMap, parentComponent = {}) => {\n if (!children || Array.isArray(children)) return { regularChildren: children };\n const { props: { children: nestedChildren } = {} } = children;\n\n const { nonGTMChildren, withGTMChildren } = filterChildren(nestedChildren[1], parentComponent);\n const regularChildren = buildListChildren(children, nonGTMChildren);\n const parentDataWithEntity = parentData.map(item => ({\n ...item,\n itemId: item.id,\n itemEntity: graphqlEntityMap[item.__typename]\n }));\n\n const gtmChildren = buildListChildren(children, withGTMChildren, parentDataWithEntity);\n\n return { regularChildren, gtmChildren };\n};\n\nexport default splitChildren;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;AACA,IAAMA,cAAc,GAAG,SAAjBA,cAAcA,CAAIC,QAAQ,EAAEC,eAAe,EAAK;EACpD,IAAMC,eAAe,GAAG,EAAE;EAC1B,IAAMC,cAAc,GAAG,EAAE;EACzBH,QAAQ,CAACI,OAAO,CAAC,UAAAC,KAAK,EAAI;IACxB,IAAAC,YAAA,GAA0DD,KAAK,CAAvDE,KAAK;MAAAC,aAAA,GAAAF,YAAA,cAAsC,CAAC,CAAC,GAAAA,YAAA;MAAAG,qBAAA,GAAAD,aAAA,CAApCE,SAAS;MAAAC,sBAAA,GAAAF,qBAAA,cAAkB,CAAC,CAAC,GAAAA,qBAAA;MAAAG,sBAAA,GAAAD,sBAAA,CAAhBE,IAAI;MAAJA,IAAI,GAAAD,sBAAA,cAAG,EAAE,GAAAA,sBAAA;IACvCC,IAAI,KAAK,YAAY,GACjBX,eAAe,CAACY,IAAI,CAAAC,aAAA,CAAAA,aAAA,KAAMV,KAAK;MAAEE,KAAK,EAAAQ,aAAA,CAAAA,aAAA,KAAOV,KAAK,CAACE,KAAK;QAAEN,eAAe,EAAfA;MAAe;IAAE,EAAE,CAAC,GAC9EE,cAAc,CAACW,IAAI,CAACT,KAAK,CAAC;EAChC,CAAC,CAAC;EACF,OAAO;IAAEH,eAAe,EAAfA,eAAe;IAAEC,cAAc,EAAdA;EAAe,CAAC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,gBAAA,CAAxBpC,QAAQ;EAEzB,IAAAqC,eAAA,GAA4CtC,cAAc,CAACuB,cAAc,CAAC,CAAC,CAAC,EAAErB,eAAe,CAAC;IAAtFE,cAAc,GAAAkC,eAAA,CAAdlC,cAAc;IAAED,eAAe,GAAAmC,eAAA,CAAfnC,eAAe;EACvC,IAAMgC,eAAe,GAAGlB,iBAAiB,CAAChB,QAAQ,EAAEG,cAAc,CAAC;EACnE,IAAMmC,oBAAoB,GAAGZ,UAAU,CAACF,GAAG,CAAC,UAAAe,IAAI;IAAA,OAAAxB,aAAA,CAAAA,aAAA,KAC3CwB,IAAI;MACPC,MAAM,EAAED,IAAI,CAACE,EAAE;MACfC,UAAU,EAAEb,gBAAgB,CAACU,IAAI,CAACI,UAAU;IAAC;EAAA,CAC7C,CAAC;EAEH,IAAMC,WAAW,GAAG5B,iBAAiB,CAAChB,QAAQ,EAAEE,eAAe,EAAEoC,oBAAoB,CAAC;EAEtF,OAAO;IAAEJ,eAAe,EAAfA,eAAe;IAAEU,WAAW,EAAXA;EAAY,CAAC;AACzC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEalB,aAAa"}
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.symbol.js");
|
|
4
4
|
require("core-js/modules/es.array.filter.js");
|
|
5
|
-
require("core-js/modules/es.object.define-properties.js");
|
|
6
|
-
require("core-js/modules/es.object.define-property.js");
|
|
7
5
|
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
8
6
|
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
7
|
+
require("core-js/modules/es.object.define-properties.js");
|
|
8
|
+
require("core-js/modules/es.object.define-property.js");
|
|
9
9
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
10
10
|
Object.defineProperty(exports, "__esModule", {
|
|
11
11
|
value: true
|
|
12
12
|
});
|
|
13
13
|
exports["default"] = void 0;
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
|
-
require("core-js/modules/es.array.for-each.js");
|
|
16
15
|
require("core-js/modules/es.object.keys.js");
|
|
16
|
+
require("core-js/modules/es.array.for-each.js");
|
|
17
17
|
require("core-js/modules/es.object.to-string.js");
|
|
18
18
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
19
19
|
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; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-childrens-parent.js","names":["updateChildrensParent","cardChildren","id","entity","hasCardChildren","Object","keys","length","props","children","childItems","forEach","child","options","parent","_objectSpread","itemId","itemEntity","_default","exports"],"sources":["../../src/helpers/update-childrens-parent.js"],"sourcesContent":["const updateChildrensParent = (cardChildren, id, entity) => {\n const hasCardChildren = !!cardChildren && Object.keys(cardChildren).length && cardChildren.props;\n\n if (hasCardChildren && cardChildren.props.children) {\n const childItems = cardChildren.props.children;\n\n childItems.length > 1 &&\n childItems[1].forEach(\n child =>\n // eslint-disable-next-line no-param-reassign\n (child.props.options.parent = {\n ...child.props.options.parent,\n itemId: id,\n itemEntity: entity\n })\n );\n }\n};\n\nexport default updateChildrensParent;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAMA,qBAAqB,GAAG,SAAxBA,qBAAqBA,CAAIC,YAAY,EAAEC,EAAE,EAAEC,MAAM,EAAK;EAC1D,IAAMC,eAAe,GAAG,CAAC,CAACH,YAAY,IAAII,MAAM,CAACC,IAAI,CAACL,YAAY,CAAC,CAACM,MAAM,IAAIN,YAAY,CAACO,KAAK;EAEhG,IAAIJ,eAAe,IAAIH,YAAY,CAACO,KAAK,CAACC,QAAQ,EAAE;IAClD,IAAMC,UAAU,GAAGT,YAAY,CAACO,KAAK,CAACC,QAAQ;IAE9CC,UAAU,CAACH,MAAM,GAAG,CAAC,IACnBG,UAAU,CAAC,CAAC,CAAC,CAACC,OAAO,CACnB,UAAAC,KAAK;MAAA;QACH;QACCA,KAAK,CAACJ,KAAK,CAACK,OAAO,CAACC,MAAM,GAAAC,aAAA,CAAAA,aAAA,KACtBH,KAAK,CAACJ,KAAK,CAACK,OAAO,CAACC,MAAM;UAC7BE,MAAM,EAAEd,EAAE;UACVe,UAAU,EAAEd;QAAM;MACnB;IAAA,CACL,CAAC;EACL;AACF,CAAC;AAAC,IAAAe,QAAA,GAAAC,OAAA,cAEanB,qBAAqB"
|
|
1
|
+
{"version":3,"file":"update-childrens-parent.js","names":["updateChildrensParent","cardChildren","id","entity","hasCardChildren","Object","keys","length","props","children","childItems","forEach","child","options","parent","_objectSpread","itemId","itemEntity","_default","exports"],"sources":["../../src/helpers/update-childrens-parent.js"],"sourcesContent":["const updateChildrensParent = (cardChildren, id, entity) => {\n const hasCardChildren = !!cardChildren && Object.keys(cardChildren).length && cardChildren.props;\n\n if (hasCardChildren && cardChildren.props.children) {\n const childItems = cardChildren.props.children;\n\n childItems.length > 1 &&\n childItems[1].forEach(\n child =>\n // eslint-disable-next-line no-param-reassign\n (child.props.options.parent = {\n ...child.props.options.parent,\n itemId: id,\n itemEntity: entity\n })\n );\n }\n};\n\nexport default updateChildrensParent;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAMA,qBAAqB,GAAG,SAAxBA,qBAAqBA,CAAIC,YAAY,EAAEC,EAAE,EAAEC,MAAM,EAAK;EAC1D,IAAMC,eAAe,GAAG,CAAC,CAACH,YAAY,IAAII,MAAM,CAACC,IAAI,CAACL,YAAY,CAAC,CAACM,MAAM,IAAIN,YAAY,CAACO,KAAK;EAEhG,IAAIJ,eAAe,IAAIH,YAAY,CAACO,KAAK,CAACC,QAAQ,EAAE;IAClD,IAAMC,UAAU,GAAGT,YAAY,CAACO,KAAK,CAACC,QAAQ;IAE9CC,UAAU,CAACH,MAAM,GAAG,CAAC,IACnBG,UAAU,CAAC,CAAC,CAAC,CAACC,OAAO,CACnB,UAAAC,KAAK;MAAA;QACH;QACCA,KAAK,CAACJ,KAAK,CAACK,OAAO,CAACC,MAAM,GAAAC,aAAA,CAAAA,aAAA,KACtBH,KAAK,CAACJ,KAAK,CAACK,OAAO,CAACC,MAAM;UAC7BE,MAAM,EAAEd,EAAE;UACVe,UAAU,EAAEd;QAAM;MACnB;IAAA,CACL,CAAC;EACL;AACF,CAAC;AAAC,IAAAe,QAAA,GAAAC,OAAA,cAEanB,qBAAqB"}
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = void 0;
|
|
9
|
-
require("core-js/modules/es.array.includes.js");
|
|
10
9
|
require("core-js/modules/es.function.name.js");
|
|
10
|
+
require("core-js/modules/es.array.includes.js");
|
|
11
11
|
require("core-js/modules/es.string.includes.js");
|
|
12
12
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
13
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RenderComponent.js","names":["_react","_interopRequireDefault","require","_propTypes","_coreErrorsUi","_getComponent","_getVariant3","_appendGtmClassname","_constants","_BannerContext","_excluded","RenderComponent","_ref","component","imageProps","childComponents","_ref$options","options","textBlockBanners","hasTextBlockBanners","siblings","nestedComponentsProps","_objectWithoutProperties2","type","settings","id","name","Component","getComponent","isImage","PB_TYPE_IMAGE","PB_TYPE_BANNER","PB_TYPE_TEXTBLOCK","PB_TYPE_CAROUSEL","includes","imageOptions","updatedSettings","appendGtmClassName","_getVariant","getVariant","_getVariant2","_slicedToArray2","VariantComponent","variantSettings","createElement","_extends2","key","BannerContextProvider","banners","pbOptions","propTypes","PropTypes","shape","string","object","items","array","isRequired","node","bool","defaultProps","_default","exports"],"sources":["../../../src/hooks/helpers/RenderComponent.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport ErrorBoundary from '@blaze-cms/core-errors-ui';\nimport getComponent from './getComponent';\nimport getVariant from './getVariant';\nimport appendGtmClassName from './append-gtm-classname';\nimport { PB_TYPE_IMAGE, PB_TYPE_BANNER, PB_TYPE_TEXTBLOCK, PB_TYPE_CAROUSEL } from './constants';\nimport { BannerContextProvider } from '../../BannerContext';\n\nconst RenderComponent = ({\n component,\n imageProps,\n childComponents,\n options = {},\n textBlockBanners,\n hasTextBlockBanners,\n siblings,\n ...nestedComponentsProps\n}) => {\n const { type, settings, id, name } = component;\n const Component = getComponent(type);\n const isImage = [PB_TYPE_IMAGE, PB_TYPE_BANNER, PB_TYPE_TEXTBLOCK, PB_TYPE_CAROUSEL].includes(\n type\n );\n const imageOptions = isImage ? imageProps : {};\n if (!Component) return null;\n const updatedSettings = appendGtmClassName(settings, childComponents);\n const [VariantComponent, variantSettings] = getVariant(settings);\n\n return (\n <ErrorBoundary>\n <Component\n key={id}\n type={type}\n VariantComponent={VariantComponent}\n {...options}\n {...imageOptions}\n {...nestedComponentsProps}\n {...updatedSettings}\n {...variantSettings}\n name={name || settings.name}>\n {hasTextBlockBanners ? (\n <BannerContextProvider siblings={siblings} banners={textBlockBanners} pbOptions={options}>\n {childComponents}\n </BannerContextProvider>\n ) : (\n childComponents\n )}\n </Component>\n </ErrorBoundary>\n );\n};\n\nRenderComponent.propTypes = {\n component: PropTypes.shape({\n type: PropTypes.string,\n id: PropTypes.string,\n name: PropTypes.string,\n settings: PropTypes.object,\n items: PropTypes.array\n }).isRequired,\n imageProps: PropTypes.object.isRequired,\n options: PropTypes.object.isRequired,\n childComponents: PropTypes.node.isRequired,\n textBlockBanners: PropTypes.array,\n hasTextBlockBanners: PropTypes.bool,\n siblings: PropTypes.array\n};\n\nRenderComponent.defaultProps = { textBlockBanners: null, hasTextBlockBanners: false, siblings: [] };\n\nexport default RenderComponent;\n"],"mapp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AAEkC,qBAAS,CAACG,MAAM,CAACG,UAAU;EACpC1C,eAAe,EAAEoC,qBAAS,CAACO,IAAI,CAACD,UAAU;EAC1CvC,gBAAgB,EAAEiC,qBAAS,CAACK,KAAK;EACjCrC,mBAAmB,EAAEgC,qBAAS,CAACQ,IAAI;EACnCvC,QAAQ,EAAE+B,qBAAS,CAACK;AACtB,CAAC;AAED7C,eAAe,CAACiD,YAAY,GAAG;EAAE1C,gBAAgB,EAAE,IAAI;EAAEC,mBAAmB,EAAE,KAAK;EAAEC,QAAQ,EAAE;AAAG,CAAC;AAAC,IAAAyC,QAAA,GAAAC,OAAA,cAErFnD,eAAe"
|
|
1
|
+
{"version":3,"file":"RenderComponent.js","names":["_react","_interopRequireDefault","require","_propTypes","_coreErrorsUi","_getComponent","_getVariant3","_appendGtmClassname","_constants","_BannerContext","_excluded","RenderComponent","_ref","component","imageProps","childComponents","_ref$options","options","textBlockBanners","hasTextBlockBanners","siblings","nestedComponentsProps","_objectWithoutProperties2","type","settings","id","name","Component","getComponent","isImage","PB_TYPE_IMAGE","PB_TYPE_BANNER","PB_TYPE_TEXTBLOCK","PB_TYPE_CAROUSEL","includes","imageOptions","updatedSettings","appendGtmClassName","_getVariant","getVariant","_getVariant2","_slicedToArray2","VariantComponent","variantSettings","createElement","_extends2","key","BannerContextProvider","banners","pbOptions","propTypes","PropTypes","shape","string","object","items","array","isRequired","node","bool","defaultProps","_default","exports"],"sources":["../../../src/hooks/helpers/RenderComponent.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport ErrorBoundary from '@blaze-cms/core-errors-ui';\nimport getComponent from './getComponent';\nimport getVariant from './getVariant';\nimport appendGtmClassName from './append-gtm-classname';\nimport { PB_TYPE_IMAGE, PB_TYPE_BANNER, PB_TYPE_TEXTBLOCK, PB_TYPE_CAROUSEL } from './constants';\nimport { BannerContextProvider } from '../../BannerContext';\n\nconst RenderComponent = ({\n component,\n imageProps,\n childComponents,\n options = {},\n textBlockBanners,\n hasTextBlockBanners,\n siblings,\n ...nestedComponentsProps\n}) => {\n const { type, settings, id, name } = component;\n const Component = getComponent(type);\n const isImage = [PB_TYPE_IMAGE, PB_TYPE_BANNER, PB_TYPE_TEXTBLOCK, PB_TYPE_CAROUSEL].includes(\n type\n );\n const imageOptions = isImage ? imageProps : {};\n if (!Component) return null;\n const updatedSettings = appendGtmClassName(settings, childComponents);\n const [VariantComponent, variantSettings] = getVariant(settings);\n\n return (\n <ErrorBoundary>\n <Component\n key={id}\n type={type}\n VariantComponent={VariantComponent}\n {...options}\n {...imageOptions}\n {...nestedComponentsProps}\n {...updatedSettings}\n {...variantSettings}\n name={name || settings.name}>\n {hasTextBlockBanners ? (\n <BannerContextProvider siblings={siblings} banners={textBlockBanners} pbOptions={options}>\n {childComponents}\n </BannerContextProvider>\n ) : (\n childComponents\n )}\n </Component>\n </ErrorBoundary>\n );\n};\n\nRenderComponent.propTypes = {\n component: PropTypes.shape({\n type: PropTypes.string,\n id: PropTypes.string,\n name: PropTypes.string,\n settings: PropTypes.object,\n items: PropTypes.array\n }).isRequired,\n imageProps: PropTypes.object.isRequired,\n options: PropTypes.object.isRequired,\n childComponents: PropTypes.node.isRequired,\n textBlockBanners: PropTypes.array,\n hasTextBlockBanners: PropTypes.bool,\n siblings: PropTypes.array\n};\n\nRenderComponent.defaultProps = { textBlockBanners: null, hasTextBlockBanners: false, siblings: [] };\n\nexport default RenderComponent;\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,aAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,aAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,YAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,mBAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,cA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AAAG,CAAC;AAAC,IAAAyC,QAAA,GAAAC,OAAA,cAErFnD,eAAe"}
|
|
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = void 0;
|
|
9
|
-
require("core-js/modules/es.array.concat.js");
|
|
10
|
-
require("core-js/modules/es.array.filter.js");
|
|
11
|
-
require("core-js/modules/es.array.find-index.js");
|
|
12
|
-
require("core-js/modules/es.array.index-of.js");
|
|
13
9
|
require("core-js/modules/es.array.map.js");
|
|
10
|
+
require("core-js/modules/es.array.filter.js");
|
|
14
11
|
require("core-js/modules/es.object.to-string.js");
|
|
12
|
+
require("core-js/modules/es.array.index-of.js");
|
|
13
|
+
require("core-js/modules/es.array.find-index.js");
|
|
14
|
+
require("core-js/modules/es.array.concat.js");
|
|
15
15
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
16
16
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
17
17
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StoreImages.js","names":["StoreImages","_this","_classCallCheck2","_defineProperty2","images","key","map","item","index","final","indexOf","filter","imageId","findIndex","image","setSelectedImage","_ref","_ref$toggleModal","toggleModal","_ref$setSelectedImage","options","arguments","length","undefined","pageBuilderID","id","resetImages","removeDuplicated","concat","_createClass2","value","_default","exports"],"sources":["../../../src/hooks/helpers/StoreImages.js"],"sourcesContent":["class StoreImages {\n constructor() {\n this.images = [];\n this.id = null;\n this.toggleModal = () => {};\n this.setSelectedImage = () => {};\n }\n\n resetImages() {\n this.images = [];\n }\n\n removeDuplicated = (images, key) => {\n this.images = images\n .map(item => item[key])\n .map((item, index, final) => final.indexOf(item) === index && index)\n .filter(item => images[item])\n .map(item => images[item]);\n };\n\n handleSelectedImage = imageId => {\n const index = this.images.findIndex(image => image.imageId === imageId);\n if (index !== -1) {\n this.setSelectedImage(index);\n }\n };\n\n setHandlers = ({ toggleModal = this.toggleModal, setSelectedImage = this.setSelectedImage }) => {\n this.toggleModal = toggleModal;\n this.setSelectedImage = setSelectedImage;\n };\n\n addImages = (images, options = {}) => {\n if (!images.length) return this.images;\n\n const { pageBuilderID } = options;\n\n if (pageBuilderID !== this.id) {\n this.resetImages();\n this.id = pageBuilderID;\n }\n\n this.removeDuplicated(this.images.concat(images), 'imageId');\n\n return this.images;\n };\n}\n\nexport default new StoreImages();\n"],"mappings":";;;;;;;;;;;;;;;;;IAAMA,WAAW;EACf,SAAAA,YAAA,EAAc;IAAA,IAAAC,KAAA;IAAA,IAAAC,gBAAA,mBAAAF,WAAA;IAAA,IAAAG,gBAAA,uCAWK,UAACC,MAAM,EAAEC,GAAG,EAAK;MAClCJ,KAAI,CAACG,MAAM,GAAGA,MAAM,CACjBE,GAAG,CAAC,UAAAC,IAAI;QAAA,OAAIA,IAAI,CAACF,GAAG,CAAC;MAAA,EAAC,CACtBC,GAAG,CAAC,UAACC,IAAI,EAAEC,KAAK,EAAEC,MAAK;QAAA,OAAKA,MAAK,CAACC,OAAO,CAACH,IAAI,CAAC,KAAKC,KAAK,IAAIA,KAAK;MAAA,EAAC,CACnEG,MAAM,CAAC,UAAAJ,IAAI;QAAA,OAAIH,MAAM,CAACG,IAAI,CAAC;MAAA,EAAC,CAC5BD,GAAG,CAAC,UAAAC,IAAI;QAAA,OAAIH,MAAM,CAACG,IAAI,CAAC;MAAA,EAAC;IAC9B,CAAC;IAAA,IAAAJ,gBAAA,0CAEqB,UAAAS,OAAO,EAAI;MAC/B,IAAMJ,KAAK,GAAGP,KAAI,CAACG,MAAM,CAACS,SAAS,CAAC,UAAAC,KAAK;QAAA,OAAIA,KAAK,CAACF,OAAO,KAAKA,OAAO;MAAA,EAAC;MACvE,IAAIJ,KAAK,KAAK,CAAC,CAAC,EAAE;QAChBP,KAAI,CAACc,gBAAgB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AED,SAAAJ,YAAA,EAAc;MACZ,IAAI,CAACtB,MAAM,GAAG,EAAE;IAClB;EAAC;EAAA,OAAAJ,WAAA;AAAA;AAAA,IAAA+B,QAAA,GAAAC,OAAA,cAsCY,IAAIhC,WAAW,CAAC,CAAC"
|
|
1
|
+
{"version":3,"file":"StoreImages.js","names":["StoreImages","_this","_classCallCheck2","_defineProperty2","images","key","map","item","index","final","indexOf","filter","imageId","findIndex","image","setSelectedImage","_ref","_ref$toggleModal","toggleModal","_ref$setSelectedImage","options","arguments","length","undefined","pageBuilderID","id","resetImages","removeDuplicated","concat","_createClass2","value","_default","exports"],"sources":["../../../src/hooks/helpers/StoreImages.js"],"sourcesContent":["class StoreImages {\n constructor() {\n this.images = [];\n this.id = null;\n this.toggleModal = () => {};\n this.setSelectedImage = () => {};\n }\n\n resetImages() {\n this.images = [];\n }\n\n removeDuplicated = (images, key) => {\n this.images = images\n .map(item => item[key])\n .map((item, index, final) => final.indexOf(item) === index && index)\n .filter(item => images[item])\n .map(item => images[item]);\n };\n\n handleSelectedImage = imageId => {\n const index = this.images.findIndex(image => image.imageId === imageId);\n if (index !== -1) {\n this.setSelectedImage(index);\n }\n };\n\n setHandlers = ({ toggleModal = this.toggleModal, setSelectedImage = this.setSelectedImage }) => {\n this.toggleModal = toggleModal;\n this.setSelectedImage = setSelectedImage;\n };\n\n addImages = (images, options = {}) => {\n if (!images.length) return this.images;\n\n const { pageBuilderID } = options;\n\n if (pageBuilderID !== this.id) {\n this.resetImages();\n this.id = pageBuilderID;\n }\n\n this.removeDuplicated(this.images.concat(images), 'imageId');\n\n return this.images;\n };\n}\n\nexport default new StoreImages();\n"],"mappings":";;;;;;;;;;;;;;;;;IAAMA,WAAW;EACf,SAAAA,YAAA,EAAc;IAAA,IAAAC,KAAA;IAAA,IAAAC,gBAAA,mBAAAF,WAAA;IAAA,IAAAG,gBAAA,uCAWK,UAACC,MAAM,EAAEC,GAAG,EAAK;MAClCJ,KAAI,CAACG,MAAM,GAAGA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AAC,CAAC;MAC/B,IAAI,CAACjB,MAAM,CAACkB,MAAM,EAAE,OAAOrB,KAAI,CAACG,MAAM;MAEtC,IAAQoB,aAAa,GAAKJ,OAAO,CAAzBI,aAAa;MAErB,IAAIA,aAAa,KAAKvB,KAAI,CAACwB,EAAE,EAAE;QAC7BxB,KAAI,CAACyB,WAAW,CAAC,CAAC;QAClBzB,KAAI,CAACwB,EAAE,GAAGD,aAAa;MACzB;MAEAvB,KAAI,CAAC0B,gBAAgB,CAAC1B,KAAI,CAACG,MAAM,CAACwB,MAAM,CAACxB,MAAM,CAAC,EAAE,SAAS,CAAC;MAE5D,OAAOH,KAAI,CAACG,MAAM;IACpB,CAAC;IA3CC,IAAI,CAACA,MAAM,GAAG,EAAE;IAChB,IAAI,CAACqB,EAAE,GAAG,IAAI;IACd,IAAI,CAACP,WAAW,GAAG,YAAM,CAAC,CAAC;IAC3B,IAAI,CAACH,gBAAgB,GAAG,YAAM,CAAC,CAAC;EAClC;EAAC,IAAAc,aAAA,aAAA7B,WAAA;IAAAK,GAAA;IAAAyB,KAAA,EAED,SAAAJ,YAAA,EAAc;MACZ,IAAI,CAACtB,MAAM,GAAG,EAAE;IAClB;EAAC;EAAA,OAAAJ,WAAA;AAAA;AAAA,IAAA+B,QAAA,GAAAC,OAAA,cAsCY,IAAIhC,WAAW,CAAC,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
require("core-js/modules/es.object.keys.js");
|
|
3
4
|
require("core-js/modules/es.symbol.js");
|
|
5
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
4
6
|
require("core-js/modules/es.array.for-each.js");
|
|
7
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
8
|
+
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
5
9
|
require("core-js/modules/es.object.define-properties.js");
|
|
6
10
|
require("core-js/modules/es.object.define-property.js");
|
|
7
|
-
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
8
|
-
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
9
|
-
require("core-js/modules/es.object.keys.js");
|
|
10
|
-
require("core-js/modules/web.dom-collections.for-each.js");
|
|
11
11
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
12
12
|
Object.defineProperty(exports, "__esModule", {
|
|
13
13
|
value: true
|
|
@@ -15,13 +15,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
15
15
|
exports["default"] = void 0;
|
|
16
16
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
17
17
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
18
|
-
require("core-js/modules/es.array.concat.js");
|
|
19
|
-
require("core-js/modules/es.array.filter.js");
|
|
20
18
|
require("core-js/modules/es.array.is-array.js");
|
|
21
19
|
require("core-js/modules/es.array.join.js");
|
|
22
|
-
require("core-js/modules/es.array.
|
|
20
|
+
require("core-js/modules/es.array.filter.js");
|
|
23
21
|
require("core-js/modules/es.object.to-string.js");
|
|
22
|
+
require("core-js/modules/es.array.map.js");
|
|
24
23
|
require("core-js/modules/es.string.trim.js");
|
|
24
|
+
require("core-js/modules/es.array.concat.js");
|
|
25
25
|
var _constants = require("../../constants");
|
|
26
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; }
|
|
27
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; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"append-gtm-classname.js","names":["_constants","require","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","appendGtmClassName","settings","childComponents","Array","isArray","_childComponents$prop","_slicedToArray2","props","children","compChildren","gtmClassNames","_ref","type","component","GTM","map","_ref2","gtmClassName","Boolean","join","modifier","updatedModifier","concat","trim","_default","exports"],"sources":["../../../src/hooks/helpers/append-gtm-classname.js"],"sourcesContent":["import { GTM } from '../../constants';\n\nconst appendGtmClassName = (settings, childComponents) => {\n if (!childComponents || Array.isArray(childComponents)) return settings;\n const {\n props: {\n children: [, compChildren]\n }\n } = childComponents;\n\n if (!compChildren || !Array.isArray(compChildren)) return settings;\n\n const gtmClassNames = compChildren\n .filter(\n ({\n props: {\n component: { type }\n }\n }) => type === GTM\n )\n .map(\n ({\n props: {\n component: {\n settings: { gtmClassName }\n }\n }\n }) => gtmClassName\n )\n .filter(Boolean)\n .join(' ');\n if (!gtmClassNames.length) return settings;\n const { modifier } = settings;\n const updatedModifier = `${modifier || ''} ${gtmClassNames}`.trim();\n\n return { ...settings, modifier: updatedModifier };\n};\n\nexport default appendGtmClassName;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAAsC,SAAAC,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,MAAA,WAAAN,CAAA,WAAAE,MAAA,CAAAK,wBAAA,CAAAR,CAAA,EAAAC,CAAA,EAAAQ,UAA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G;EAAA,CACpB,CAAC,CACAC,GAAG,CACF,UAAAC,KAAA;IAAA,IAGkBC,YAAY,GAAAD,KAAA,CAF5BT,KAAK,CACHM,SAAS,CACPZ,QAAQ,CAAIgB,YAAY;IAAA,OAGxBA,YAAY;EAAA,CACpB,CAAC,CACA9B,MAAM,CAAC+B,OAAO,CAAC,CACfC,IAAI,CAAC,GAAG,CAAC;EACZ,IAAI,CAACT,aAAa,CAAChB,MAAM,EAAE,OAAOO,QAAQ;EAC1C,IAAQmB,QAAQ,GAAKnB,QAAQ,CAArBmB,QAAQ;EAChB,IAAMC,eAAe,GAAG,GAAAC,MAAA,CAAGF,QAAQ,IAAI,EAAE,OAAAE,MAAA,CAAIZ,aAAa,EAAGa,IAAI,CAAC,CAAC;EAEnE,OAAA/B,aAAA,CAAAA,aAAA,KAAYS,QAAQ;IAAEmB,QAAQ,EAAEC;EAAe;AACjD,CAAC;AAAC,IAAAG,QAAA,GAAAC,OAAA,cAEazB,kBAAkB"
|
|
1
|
+
{"version":3,"file":"append-gtm-classname.js","names":["_constants","require","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","appendGtmClassName","settings","childComponents","Array","isArray","_childComponents$prop","_slicedToArray2","props","children","compChildren","gtmClassNames","_ref","type","component","GTM","map","_ref2","gtmClassName","Boolean","join","modifier","updatedModifier","concat","trim","_default","exports"],"sources":["../../../src/hooks/helpers/append-gtm-classname.js"],"sourcesContent":["import { GTM } from '../../constants';\n\nconst appendGtmClassName = (settings, childComponents) => {\n if (!childComponents || Array.isArray(childComponents)) return settings;\n const {\n props: {\n children: [, compChildren]\n }\n } = childComponents;\n\n if (!compChildren || !Array.isArray(compChildren)) return settings;\n\n const gtmClassNames = compChildren\n .filter(\n ({\n props: {\n component: { type }\n }\n }) => type === GTM\n )\n .map(\n ({\n props: {\n component: {\n settings: { gtmClassName }\n }\n }\n }) => gtmClassName\n )\n .filter(Boolean)\n .join(' ');\n if (!gtmClassNames.length) return settings;\n const { modifier } = settings;\n const updatedModifier = `${modifier || ''} ${gtmClassNames}`.trim();\n\n return { ...settings, modifier: updatedModifier };\n};\n\nexport default appendGtmClassName;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAAsC,SAAAC,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAAC,IAAA,CAAAJ,CAAA,OAAAG,MAAA,CAAAE,qBAAA,QAAAC,CAAA,GAAAH,MAAA,CAAAE,qBAAA,CAAAL,CAAA,GAAAC,CAAA,KAAAK,CAAA,GAAAA,CAAA,CAAAC,MAAA,WAAAN,CAAA,WAAAE,MAAA,CAAAK,wBAAA,CAAAR,CAAA,EAAAC,CAAA,EAAAQ,UAAA,OAAAP,CAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,CAAA,EAAAI,CAAA,YAAAJ,CAAA;AAAA,SAAAU,cAAAZ,CAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAY,SAAA,CAAAC,MAAA,EAAAb,CAAA,UAAAC,CAAA,WAAAW,SAAA,CAAAZ,CAAA,IAAAY,SAAA,CAAAZ,CAAA,QAAAA,CAAA,OAAAF,OAAA,CAAAI,MAAA,CAAAD,CAAA,OAAAa,OAAA,WAAAd,CAAA,QAAAe,gBAAA,aAAAhB,CAAA,EAAAC,CAAA,EAAAC,CAAA,CAAAD,CAAA,SAAAE,MAAA,CAAAc,yBAAA,GAAAd,MAAA,CAAAe,gBAAA,CAAAlB,CAAA,EAAAG,MAAA,CAAAc,yBAAA,CAAAf,CAAA,KAAAH,OAAA,CAAAI,MAAA,CAAAD,CAAA,GAAAa,OAAA,WAAAd,CAAA,IAAAE,MAAA,CAAAgB,cAAA,CAAAnB,CAAA,EAAAC,CAAA,EAAAE,MAAA,CAAAK,wBAAA,CAAAN,CAAA,EAA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
|
3
|
+
require("core-js/modules/es.object.keys.js");
|
|
3
4
|
require("core-js/modules/es.symbol.js");
|
|
5
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
4
6
|
require("core-js/modules/es.array.for-each.js");
|
|
7
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
8
|
+
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
5
9
|
require("core-js/modules/es.object.define-properties.js");
|
|
6
10
|
require("core-js/modules/es.object.define-property.js");
|
|
7
|
-
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
8
|
-
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
9
|
-
require("core-js/modules/es.object.keys.js");
|
|
10
|
-
require("core-js/modules/web.dom-collections.for-each.js");
|
|
11
11
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
12
12
|
Object.defineProperty(exports, "__esModule", {
|
|
13
13
|
value: true
|
|
@@ -15,11 +15,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
15
15
|
exports["default"] = void 0;
|
|
16
16
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
17
17
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
18
|
-
require("core-js/modules/es.array.concat.js");
|
|
19
|
-
require("core-js/modules/es.array.filter.js");
|
|
20
18
|
require("core-js/modules/es.array.is-array.js");
|
|
21
|
-
require("core-js/modules/es.array.map.js");
|
|
22
19
|
require("core-js/modules/es.function.name.js");
|
|
20
|
+
require("core-js/modules/es.array.concat.js");
|
|
21
|
+
require("core-js/modules/es.array.map.js");
|
|
22
|
+
require("core-js/modules/es.array.filter.js");
|
|
23
23
|
require("core-js/modules/es.object.to-string.js");
|
|
24
24
|
var _react = _interopRequireDefault(require("react"));
|
|
25
25
|
var _lodash = _interopRequireDefault(require("lodash.clonedeep"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildPBComponents.js","names":["_react","_interopRequireDefault","require","_lodash","_GlobalLightbox","_RenderComponent","_getComponentsToInsertByType","_injectElementComponents","_StoreImages","_getLightboxImages","_insertBanners","_checkBannerInsertionSet","_getBannerIndex","_constants","_constants2","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","renderChildComponents","options","items","undefined","BuildPBComponents","components","rootLevel","isArray","Array","metaTitle","_options$lightboxImag","lightboxImages","toggleModal","open","selectedImage","setSelectedImage","parent","parentName","name","StoreImages","resetImages","addImages","getLightboxImages","concat","setHandlers","imageProps","handleSelectedImage","images","map","image","createElement","Fragment","onClose","component","_component$items","_getComponentsToInser","getComponentsToInsertByType","ELEMENT","_getComponentsToInser2","_slicedToArray2","hasElementInsertionComponents","elementInsertionComponents","_getComponentsToInser3","PB_TYPE_TEXTBLOCK","_getComponentsToInser4","hasTextBlockBanners","textBlockBanners","updatedChildren","cloneDeep","_ref","_ref$settings","settings","_ref$settings2","insertionType","injectElementComponents","bannerToInject","checkBannerInsertionSet","bannerIndex","getBannerIndex","hasComponentItems","insertBanners","childComponents","siblings","key","id","_default","exports"],"sources":["../../../src/hooks/helpers/buildPBComponents.js"],"sourcesContent":["import React from 'react';\nimport cloneDeep from 'lodash.clonedeep';\nimport GlobalLightbox from '../../components/Image/GlobalLightbox';\nimport RenderComponent from './RenderComponent';\nimport getComponentsToInsertByType from './get-components-to-insert-by-type';\nimport injectElementComponents from './inject-element-components';\nimport StoreImages from './StoreImages';\nimport getLightboxImages from './get-lightbox-images';\nimport insertBanners from './insert-banners';\nimport checkBannerInsertionSet from './check-banner-insertion-set';\nimport getBannerIndex from './get-banner-index';\nimport { ELEMENT } from '../../constants';\nimport { PB_TYPE_TEXTBLOCK } from './constants';\n\nfunction renderChildComponents(options, items = []) {\n return items && items.length ? BuildPBComponents(items, options) : [];\n}\n\nfunction BuildPBComponents(components, options = {}, rootLevel = false) {\n const isArray = Array.isArray(components);\n if (!isArray) return [];\n\n const {\n metaTitle,\n lightboxImages = [],\n toggleModal,\n open,\n selectedImage,\n setSelectedImage,\n parent,\n name: parentName\n } = options;\n\n if (rootLevel && !open) StoreImages.resetImages();\n\n StoreImages.addImages(getLightboxImages(components).concat(lightboxImages), options);\n StoreImages.setHandlers({ toggleModal, setSelectedImage });\n\n const imageProps = {\n toggleModal: StoreImages.toggleModal,\n handleSelectedImage: StoreImages.handleSelectedImage\n };\n\n const images = StoreImages.images.map(image => ({ ...image, ...imageProps }));\n\n return (\n <>\n {open && (\n <GlobalLightbox\n images={images}\n onClose={StoreImages.toggleModal}\n selectedImage={selectedImage}\n metaTitle={metaTitle}\n parentName={parentName}\n parent={parent}\n />\n )}\n {components.map(component => {\n const { items = [] } = component;\n const [\n hasElementInsertionComponents,\n elementInsertionComponents\n ] = getComponentsToInsertByType(items, ELEMENT);\n\n const [hasTextBlockBanners, textBlockBanners] = getComponentsToInsertByType(\n items,\n PB_TYPE_TEXTBLOCK\n );\n\n let updatedChildren =\n items &&\n cloneDeep(items).filter(\n ({ settings: { insertionType } = {} }) => insertionType !== PB_TYPE_TEXTBLOCK\n );\n\n if (hasElementInsertionComponents) {\n updatedChildren = injectElementComponents(elementInsertionComponents, updatedChildren);\n } else {\n // TODO: this block is for banner retrocompatibility, once completly migrated remove it as well as all related helpers\n const bannerToInject = checkBannerInsertionSet(updatedChildren);\n const bannerIndex = getBannerIndex(updatedChildren, bannerToInject);\n const hasComponentItems = !!(updatedChildren && updatedChildren.length);\n\n if (hasComponentItems && bannerIndex > -1) {\n updatedChildren = insertBanners(updatedChildren, bannerIndex, bannerToInject);\n }\n }\n\n const childComponents = renderChildComponents(options, updatedChildren);\n\n return (\n <RenderComponent\n component={component}\n siblings={updatedChildren}\n childComponents={childComponents}\n imageProps={imageProps}\n options={{ ...options }}\n images={images}\n key={`${component.id}`}\n hasTextBlockBanners={hasTextBlockBanners}\n text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ACEnF,MAAA,YAAAkE,aAAA,CAAC7D,gBAAA,WAAe;MACdgE,SAAS,EAAEA,SAAU;MACrB6B,QAAQ,EAAEf,eAAgB;MAC1Bc,eAAe,EAAEA,eAAgB;MACjCpC,UAAU,EAAEA,UAAW;MACvBxB,OAAO,EAAAT,aAAA,KAAOS,OAAO,CAAG;MACxB0B,MAAM,EAAEA,MAAO;MACfoC,GAAG,KAAAxC,MAAA,CAAKU,SAAS,CAAC+B,EAAE,CAAG;MACvBnB,mBAAmB,EAAEA,mBAAoB;MACzCC,gBAAgB,EAAEA;IAAiB,CACpC,CAAC;EAEN,CAAC,CACD,CAAC;AAEP;AAAC,IAAAmB,QAAA,GAAAC,OAAA,cAEc9D,iBAAiB"
|
|
1
|
+
{"version":3,"file":"buildPBComponents.js","names":["_react","_interopRequireDefault","require","_lodash","_GlobalLightbox","_RenderComponent","_getComponentsToInsertByType","_injectElementComponents","_StoreImages","_getLightboxImages","_insertBanners","_checkBannerInsertionSet","_getBannerIndex","_constants","_constants2","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","renderChildComponents","options","items","undefined","BuildPBComponents","components","rootLevel","isArray","Array","metaTitle","_options$lightboxImag","lightboxImages","toggleModal","open","selectedImage","setSelectedImage","parent","parentName","name","StoreImages","resetImages","addImages","getLightboxImages","concat","setHandlers","imageProps","handleSelectedImage","images","map","image","createElement","Fragment","onClose","component","_component$items","_getComponentsToInser","getComponentsToInsertByType","ELEMENT","_getComponentsToInser2","_slicedToArray2","hasElementInsertionComponents","elementInsertionComponents","_getComponentsToInser3","PB_TYPE_TEXTBLOCK","_getComponentsToInser4","hasTextBlockBanners","textBlockBanners","updatedChildren","cloneDeep","_ref","_ref$settings","settings","_ref$settings2","insertionType","injectElementComponents","bannerToInject","checkBannerInsertionSet","bannerIndex","getBannerIndex","hasComponentItems","insertBanners","childComponents","siblings","key","id","_default","exports"],"sources":["../../../src/hooks/helpers/buildPBComponents.js"],"sourcesContent":["import React from 'react';\nimport cloneDeep from 'lodash.clonedeep';\nimport GlobalLightbox from '../../components/Image/GlobalLightbox';\nimport RenderComponent from './RenderComponent';\nimport getComponentsToInsertByType from './get-components-to-insert-by-type';\nimport injectElementComponents from './inject-element-components';\nimport StoreImages from './StoreImages';\nimport getLightboxImages from './get-lightbox-images';\nimport insertBanners from './insert-banners';\nimport checkBannerInsertionSet from './check-banner-insertion-set';\nimport getBannerIndex from './get-banner-index';\nimport { ELEMENT } from '../../constants';\nimport { PB_TYPE_TEXTBLOCK } from './constants';\n\nfunction renderChildComponents(options, items = []) {\n return items && items.length ? BuildPBComponents(items, options) : [];\n}\n\nfunction BuildPBComponents(components, options = {}, rootLevel = false) {\n const isArray = Array.isArray(components);\n if (!isArray) return [];\n\n const {\n metaTitle,\n lightboxImages = [],\n toggleModal,\n open,\n selectedImage,\n setSelectedImage,\n parent,\n name: parentName\n } = options;\n\n if (rootLevel && !open) StoreImages.resetImages();\n\n StoreImages.addImages(getLightboxImages(components).concat(lightboxImages), options);\n StoreImages.setHandlers({ toggleModal, setSelectedImage });\n\n const imageProps = {\n toggleModal: StoreImages.toggleModal,\n handleSelectedImage: StoreImages.handleSelectedImage\n };\n\n const images = StoreImages.images.map(image => ({ ...image, ...imageProps }));\n\n return (\n <>\n {open && (\n <GlobalLightbox\n images={images}\n onClose={StoreImages.toggleModal}\n selectedImage={selectedImage}\n metaTitle={metaTitle}\n parentName={parentName}\n parent={parent}\n />\n )}\n {components.map(component => {\n const { items = [] } = component;\n const [\n hasElementInsertionComponents,\n elementInsertionComponents\n ] = getComponentsToInsertByType(items, ELEMENT);\n\n const [hasTextBlockBanners, textBlockBanners] = getComponentsToInsertByType(\n items,\n PB_TYPE_TEXTBLOCK\n );\n\n let updatedChildren =\n items &&\n cloneDeep(items).filter(\n ({ settings: { insertionType } = {} }) => insertionType !== PB_TYPE_TEXTBLOCK\n );\n\n if (hasElementInsertionComponents) {\n updatedChildren = injectElementComponents(elementInsertionComponents, updatedChildren);\n } else {\n // TODO: this block is for banner retrocompatibility, once completly migrated remove it as well as all related helpers\n const bannerToInject = checkBannerInsertionSet(updatedChildren);\n const bannerIndex = getBannerIndex(updatedChildren, bannerToInject);\n const hasComponentItems = !!(updatedChildren && updatedChildren.length);\n\n if (hasComponentItems && bannerIndex > -1) {\n updatedChildren = insertBanners(updatedChildren, bannerIndex, bannerToInject);\n }\n }\n\n const childComponents = renderChildComponents(options, updatedChildren);\n\n return (\n <RenderComponent\n component={component}\n siblings={updatedChildren}\n childComponents={childComponents}\n imageProps={imageProps}\n options={{ ...options }}\n images={images}\n key={`${component.id}`}\n hasTextBlockBanners={hasTextBlockBanners}\n textBlockBanners={textBlockBanners}\n />\n );\n })}\n </>\n );\n}\n\nexport default BuildPBComponents;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,eAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,gBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,4BAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,wBAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,YAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,kBAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,cAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,wBAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,eAAA,GAAAX,sBAAA,CAAAC,OAAA;AACA,IAAAW,UAAA,GAAAX,OAAA;AACA,IAAAY,WAAA,GAAAZ,OAAA;AAAgD,SAAAa,QAAAC,CAAA,EAAAC,CAAA,QAAAC,CAAA,GAAAC,MAAA,CAAA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AAEM,eAAe,CAAC;IACxF,CAAC,MAAM;MACL;MACA,IAAMQ,cAAc,GAAG,IAAAC,mCAAuB,EAACT,eAAe,CAAC;MAC/D,IAAMU,WAAW,GAAG,IAAAC,0BAAc,EAACX,eAAe,EAAEQ,cAAc,CAAC;MACnE,IAAMI,iBAAiB,GAAG,CAAC,EAAEZ,eAAe,IAAIA,eAAe,CAACrD,MAAM,CAAC;MAEvE,IAAIiE,iBAAiB,IAAIF,WAAW,GAAG,CAAC,CAAC,EAAE;QACzCV,eAAe,GAAG,IAAAa,yBAAa,EAACb,eAAe,EAAEU,WAAW,EAAEF,cAAc,CAAC;MAC/E;IACF;IAEA,IAAMM,eAAe,GAAG7D,qBAAqB,CAACC,OAAO,EAAE8C,eAAe,CAAC;IAEvE,oBACEnF,MAAA,YAAAkE,aAAA,CAAC7D,gBAAA,WAAe;MACdgE,SAAS,EAAEA,SAAU;MACrB6B,QAAQ,EAAEf,eAAgB;MAC1Bc,eAAe,EAAEA,eAAgB;MACjCpC,UAAU,EAAEA,UAAW;MACvBxB,OAAO,EAAAT,aAAA,KAAOS,OAAO,CAAG;MACxB0B,MAAM,EAAEA,MAAO;MACfoC,GAAG,KAAAxC,MAAA,CAAKU,SAAS,CAAC+B,EAAE,CAAG;MACvBnB,mBAAmB,EAAEA,mBAAoB;MACzCC,gBAAgB,EAAEA;IAAiB,CACpC,CAAC;EAEN,CAAC,CACD,CAAC;AAEP;AAAC,IAAAmB,QAAA,GAAAC,OAAA,cAEc9D,iBAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-banner-insertion-set.js","names":["_constants","require","checkBannerInsertionSet","items","_items$filter","filter","_ref","type","_ref$settings","settings","_ref$settings$interva","interval","insertionType","PB_TYPE_BANNER","_items$filter2","_slicedToArray2","bannerToInject","_default","exports"],"sources":["../../../src/hooks/helpers/check-banner-insertion-set.js"],"sourcesContent":["import { PB_TYPE_BANNER } from './constants';\n\nconst checkBannerInsertionSet = items => {\n if (items) {\n // do not include if insertionType is set as will have new settings\n const [bannerToInject] = items.filter(\n ({ type, settings: { interval = '', insertionType } }) =>\n !insertionType && type === PB_TYPE_BANNER && interval\n );\n\n if (bannerToInject) return bannerToInject;\n }\n\n return null;\n};\n\nexport default checkBannerInsertionSet;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,uBAAuB,GAAG,SAA1BA,uBAAuBA,CAAGC,KAAK,EAAI;EACvC,IAAIA,KAAK,EAAE;IACT;IACA,IAAAC,aAAA,GAAyBD,KAAK,CAACE,MAAM,CACnC,UAAAC,IAAA;QAAA,IAAGC,IAAI,GAAAD,IAAA,CAAJC,IAAI;UAAAC,aAAA,GAAAF,IAAA,CAAEG,QAAQ;UAAAC,qBAAA,GAAAF,aAAA,CAAIG,QAAQ;UAARA,QAAQ,GAAAD,qBAAA,cAAG,EAAE,GAAAA,qBAAA;UAAEE,aAAa,GAAAJ,aAAA,CAAbI,aAAa;QAAA,OAC/C,CAACA,aAAa,IAAIL,IAAI,KAAKM,yBAAc,IAAIF,QAAQ;MAAA,CACzD,CAAC;MAAAG,cAAA,OAAAC,eAAA,aAAAX,aAAA;MAHMY,cAAc,GAAAF,cAAA;IAKrB,IAAIE,cAAc,EAAE,OAAOA,cAAc;EAC3C;EAEA,OAAO,IAAI;AACb,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEahB,uBAAuB"
|
|
1
|
+
{"version":3,"file":"check-banner-insertion-set.js","names":["_constants","require","checkBannerInsertionSet","items","_items$filter","filter","_ref","type","_ref$settings","settings","_ref$settings$interva","interval","insertionType","PB_TYPE_BANNER","_items$filter2","_slicedToArray2","bannerToInject","_default","exports"],"sources":["../../../src/hooks/helpers/check-banner-insertion-set.js"],"sourcesContent":["import { PB_TYPE_BANNER } from './constants';\n\nconst checkBannerInsertionSet = items => {\n if (items) {\n // do not include if insertionType is set as will have new settings\n const [bannerToInject] = items.filter(\n ({ type, settings: { interval = '', insertionType } }) =>\n !insertionType && type === PB_TYPE_BANNER && interval\n );\n\n if (bannerToInject) return bannerToInject;\n }\n\n return null;\n};\n\nexport default checkBannerInsertionSet;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,uBAAuB,GAAG,SAA1BA,uBAAuBA,CAAGC,KAAK,EAAI;EACvC,IAAIA,KAAK,EAAE;IACT;IACA,IAAAC,aAAA,GAAyBD,KAAK,CAACE,MAAM,CACnC,UAAAC,IAAA;QAAA,IAAGC,IAAI,GAAAD,IAAA,CAAJC,IAAI;UAAAC,aAAA,GAAAF,IAAA,CAAEG,QAAQ;UAAAC,qBAAA,GAAAF,aAAA,CAAIG,QAAQ;UAARA,QAAQ,GAAAD,qBAAA,cAAG,EAAE,GAAAA,qBAAA;UAAEE,aAAa,GAAAJ,aAAA,CAAbI,aAAa;QAAA,OAC/C,CAACA,aAAa,IAAIL,IAAI,KAAKM,yBAAc,IAAIF,QAAQ;MAAA,CACzD,CAAC;MAAAG,cAAA,OAAAC,eAAA,aAAAX,aAAA;MAHMY,cAAc,GAAAF,cAAA;IAKrB,IAAIE,cAAc,EAAE,OAAOA,cAAc;EAC3C;EAEA,OAAO,IAAI;AACb,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEahB,uBAAuB"}
|
|
@@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.getCollisions = exports.checkIfHasCollided = void 0;
|
|
8
|
-
require("core-js/modules/es.array.find.js");
|
|
9
8
|
require("core-js/modules/es.array.includes.js");
|
|
10
|
-
require("core-js/modules/es.function.name.js");
|
|
11
|
-
require("core-js/modules/es.object.to-string.js");
|
|
12
9
|
require("core-js/modules/es.string.includes.js");
|
|
10
|
+
require("core-js/modules/es.array.find.js");
|
|
11
|
+
require("core-js/modules/es.object.to-string.js");
|
|
12
|
+
require("core-js/modules/es.function.name.js");
|
|
13
13
|
var _constants = require("../../constants");
|
|
14
14
|
var COLLISION_COMPONENTS = [_constants.CAROUSEL, _constants.IMAGE];
|
|
15
15
|
var checkColissionTypes = function checkColissionTypes(type) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-collisions.js","names":["_constants","require","COLLISION_COMPONENTS","CAROUSEL","IMAGE","checkColissionTypes","type","includes","checkIfHasCollided","exports","index","length","collidedWithPrevious","collidedWithNext","getCollisions","name","siblings","find","_ref","i","componentName","_ref2","previousType","_ref3","nextType"],"sources":["../../../src/hooks/helpers/check-collisions.js"],"sourcesContent":["import { IMAGE, CAROUSEL } from '../../constants';\n\nconst COLLISION_COMPONENTS = [CAROUSEL, IMAGE];\nconst checkColissionTypes = type => COLLISION_COMPONENTS.includes(type);\n\nconst checkIfHasCollided = (index, length, collidedWithPrevious, collidedWithNext) => {\n if (index === 0 && collidedWithPrevious) return true;\n if (index === length && collidedWithNext) return true;\n return false;\n};\n\nconst getCollisions = (name, siblings) => {\n let collidedWithPrevious = false;\n let collidedWithNext = false;\n siblings.find(({ name: componentName }, i) => {\n if (componentName === name) {\n const { type: previousType } = siblings[i - 1] || {};\n const { type: nextType } = siblings[i + 1] || {};\n collidedWithPrevious = checkColissionTypes(previousType);\n collidedWithNext = checkColissionTypes(nextType);\n }\n\n return componentName === name ? i : null;\n });\n\n return [collidedWithPrevious, collidedWithNext];\n};\n\nexport { getCollisions, checkIfHasCollided };\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,oBAAoB,GAAG,CAACC,mBAAQ,EAAEC,gBAAK,CAAC;AAC9C,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAGC,IAAI;EAAA,OAAIJ,oBAAoB,CAACK,QAAQ,CAACD,IAAI,CAAC;AAAA;AAEvE,IAAME,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG,SAArBA,kBAAkBA,CAAIE,KAAK,EAAEC,MAAM,EAAEC,oBAAoB,EAAEC,gBAAgB,EAAK;EACpF,IAAIH,KAAK,KAAK,CAAC,IAAIE,oBAAoB,EAAE,OAAO,IAAI;EACpD,IAAIF,KAAK,KAAKC,MAAM,IAAIE,gBAAgB,EAAE,OAAO,IAAI;EACrD,OAAO,KAAK;AACd,CAAC;AAED,IAAMC,aAAa,GAAAL,OAAA,CAAAK,aAAA,GAAG,SAAhBA,aAAaA,CAAIC,IAAI,EAAEC,QAAQ,EAAK;EACxC,IAAIJ,oBAAoB,GAAG,KAAK;EAChC,IAAIC,gBAAgB,GAAG,KAAK;EAC5BG,QAAQ,CAACC,IAAI,CAAC,UAAAC,IAAA,EAA0BC,CAAC,EAAK;IAAA,IAAvBC,aAAa,GAAAF,IAAA,CAAnBH,IAAI;IACnB,IAAIK,aAAa,KAAKL,IAAI,EAAE;MAC1B,IAAAM,KAAA,GAA+BL,QAAQ,CAACG,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;QAAtCG,YAAY,GAAAD,KAAA,CAAlBf,IAAI;MACZ,IAAAiB,KAAA,GAA2BP,QAAQ,CAACG,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;QAAlCK,QAAQ,GAAAD,KAAA,CAAdjB,IAAI;MACZM,oBAAoB,GAAGP,mBAAmB,CAACiB,YAAY,CAAC;MACxDT,gBAAgB,GAAGR,mBAAmB,CAACmB,QAAQ,CAAC;IAClD;IAEA,OAAOJ,aAAa,KAAKL,IAAI,GAAGI,CAAC,GAAG,IAAI;EAC1C,CAAC,CAAC;EAEF,OAAO,CAACP,oBAAoB,EAAEC,gBAAgB,CAAC;AACjD,CAAC"
|
|
1
|
+
{"version":3,"file":"check-collisions.js","names":["_constants","require","COLLISION_COMPONENTS","CAROUSEL","IMAGE","checkColissionTypes","type","includes","checkIfHasCollided","exports","index","length","collidedWithPrevious","collidedWithNext","getCollisions","name","siblings","find","_ref","i","componentName","_ref2","previousType","_ref3","nextType"],"sources":["../../../src/hooks/helpers/check-collisions.js"],"sourcesContent":["import { IMAGE, CAROUSEL } from '../../constants';\n\nconst COLLISION_COMPONENTS = [CAROUSEL, IMAGE];\nconst checkColissionTypes = type => COLLISION_COMPONENTS.includes(type);\n\nconst checkIfHasCollided = (index, length, collidedWithPrevious, collidedWithNext) => {\n if (index === 0 && collidedWithPrevious) return true;\n if (index === length && collidedWithNext) return true;\n return false;\n};\n\nconst getCollisions = (name, siblings) => {\n let collidedWithPrevious = false;\n let collidedWithNext = false;\n siblings.find(({ name: componentName }, i) => {\n if (componentName === name) {\n const { type: previousType } = siblings[i - 1] || {};\n const { type: nextType } = siblings[i + 1] || {};\n collidedWithPrevious = checkColissionTypes(previousType);\n collidedWithNext = checkColissionTypes(nextType);\n }\n\n return componentName === name ? i : null;\n });\n\n return [collidedWithPrevious, collidedWithNext];\n};\n\nexport { getCollisions, checkIfHasCollided };\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAMC,oBAAoB,GAAG,CAACC,mBAAQ,EAAEC,gBAAK,CAAC;AAC9C,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAGC,IAAI;EAAA,OAAIJ,oBAAoB,CAACK,QAAQ,CAACD,IAAI,CAAC;AAAA;AAEvE,IAAME,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG,SAArBA,kBAAkBA,CAAIE,KAAK,EAAEC,MAAM,EAAEC,oBAAoB,EAAEC,gBAAgB,EAAK;EACpF,IAAIH,KAAK,KAAK,CAAC,IAAIE,oBAAoB,EAAE,OAAO,IAAI;EACpD,IAAIF,KAAK,KAAKC,MAAM,IAAIE,gBAAgB,EAAE,OAAO,IAAI;EACrD,OAAO,KAAK;AACd,CAAC;AAED,IAAMC,aAAa,GAAAL,OAAA,CAAAK,aAAA,GAAG,SAAhBA,aAAaA,CAAIC,IAAI,EAAEC,QAAQ,EAAK;EACxC,IAAIJ,oBAAoB,GAAG,KAAK;EAChC,IAAIC,gBAAgB,GAAG,KAAK;EAC5BG,QAAQ,CAACC,IAAI,CAAC,UAAAC,IAAA,EAA0BC,CAAC,EAAK;IAAA,IAAvBC,aAAa,GAAAF,IAAA,CAAnBH,IAAI;IACnB,IAAIK,aAAa,KAAKL,IAAI,EAAE;MAC1B,IAAAM,KAAA,GAA+BL,QAAQ,CAACG,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;QAAtCG,YAAY,GAAAD,KAAA,CAAlBf,IAAI;MACZ,IAAAiB,KAAA,GAA2BP,QAAQ,CAACG,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;QAAlCK,QAAQ,GAAAD,KAAA,CAAdjB,IAAI;MACZM,oBAAoB,GAAGP,mBAAmB,CAACiB,YAAY,CAAC;MACxDT,gBAAgB,GAAGR,mBAAmB,CAACmB,QAAQ,CAAC;IAClD;IAEA,OAAOJ,aAAa,KAAKL,IAAI,GAAGI,CAAC,GAAG,IAAI;EAC1C,CAAC,CAAC;EAEF,OAAO,CAACP,oBAAoB,EAAEC,gBAAgB,CAAC;AACjD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","names":["PB_TYPE_IMAGE","exports","PB_TYPE_TEXTBLOCK","PB_TYPE_BANNER","PB_TYPE_CAROUSEL"],"sources":["../../../src/hooks/helpers/constants.js"],"sourcesContent":["const PB_TYPE_IMAGE = 'image';\nconst PB_TYPE_TEXTBLOCK = 'textblock';\nconst PB_TYPE_BANNER = 'banner';\nconst PB_TYPE_CAROUSEL = 'carousel';\n\nexport { PB_TYPE_IMAGE, PB_TYPE_BANNER, PB_TYPE_TEXTBLOCK, PB_TYPE_CAROUSEL };\n"],"mappings":";;;;;;;AAAA,IAAMA,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG,OAAO;AAC7B,IAAME,iBAAiB,GAAAD,OAAA,CAAAC,iBAAA,GAAG,WAAW;AACrC,IAAMC,cAAc,GAAAF,OAAA,CAAAE,cAAA,GAAG,QAAQ;AAC/B,IAAMC,gBAAgB,GAAAH,OAAA,CAAAG,gBAAA,GAAG,UAAU"
|
|
1
|
+
{"version":3,"file":"constants.js","names":["PB_TYPE_IMAGE","exports","PB_TYPE_TEXTBLOCK","PB_TYPE_BANNER","PB_TYPE_CAROUSEL"],"sources":["../../../src/hooks/helpers/constants.js"],"sourcesContent":["const PB_TYPE_IMAGE = 'image';\nconst PB_TYPE_TEXTBLOCK = 'textblock';\nconst PB_TYPE_BANNER = 'banner';\nconst PB_TYPE_CAROUSEL = 'carousel';\n\nexport { PB_TYPE_IMAGE, PB_TYPE_BANNER, PB_TYPE_TEXTBLOCK, PB_TYPE_CAROUSEL };\n"],"mappings":";;;;;;;AAAA,IAAMA,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG,OAAO;AAC7B,IAAME,iBAAiB,GAAAD,OAAA,CAAAC,iBAAA,GAAG,WAAW;AACrC,IAAMC,cAAc,GAAAF,OAAA,CAAAE,cAAA,GAAG,QAAQ;AAC/B,IAAMC,gBAAgB,GAAAH,OAAA,CAAAG,gBAAA,GAAG,UAAU"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-banner-index.js","names":["getBannerIndex","items","banner","length","findIndex","item","_default","exports"],"sources":["../../../src/hooks/helpers/get-banner-index.js"],"sourcesContent":["const getBannerIndex = (items, banner) =>\n items && items.length && banner ? items.findIndex(item => item === banner) : -1;\n\nexport default getBannerIndex;\n"],"mappings":";;;;;;;;AAAA,IAAMA,cAAc,GAAG,SAAjBA,cAAcA,CAAIC,KAAK,EAAEC,MAAM;EAAA,OACnCD,KAAK,IAAIA,KAAK,CAACE,MAAM,IAAID,MAAM,GAAGD,KAAK,CAACG,SAAS,CAAC,UAAAC,IAAI;IAAA,OAAIA,IAAI,KAAKH,MAAM;EAAA,EAAC,GAAG,CAAC,CAAC;AAAA;AAAC,IAAAI,QAAA,GAAAC,OAAA,cAEnEP,cAAc"
|
|
1
|
+
{"version":3,"file":"get-banner-index.js","names":["getBannerIndex","items","banner","length","findIndex","item","_default","exports"],"sources":["../../../src/hooks/helpers/get-banner-index.js"],"sourcesContent":["const getBannerIndex = (items, banner) =>\n items && items.length && banner ? items.findIndex(item => item === banner) : -1;\n\nexport default getBannerIndex;\n"],"mappings":";;;;;;;;AAAA,IAAMA,cAAc,GAAG,SAAjBA,cAAcA,CAAIC,KAAK,EAAEC,MAAM;EAAA,OACnCD,KAAK,IAAIA,KAAK,CAACE,MAAM,IAAID,MAAM,GAAGD,KAAK,CAACG,SAAS,CAAC,UAAAC,IAAI;IAAA,OAAIA,IAAI,KAAKH,MAAM;EAAA,EAAC,GAAG,CAAC,CAAC;AAAA;AAAC,IAAAI,QAAA,GAAAC,OAAA,cAEnEP,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-components-to-insert-by-type.js","names":["_constants","require","_constants2","getComponentsToInsertByType","items","insertionType","length","ELEMENT","componentsToInject","filter","_ref","_ref$settings","settings","insertionTypeSetting","startingPoint","repeatEvery","maxRepetitions","PB_TYPE_TEXTBLOCK","textBlockBanners","_ref2","_default","exports"],"sources":["../../../src/hooks/helpers/get-components-to-insert-by-type.js"],"sourcesContent":["import { PB_TYPE_TEXTBLOCK } from './constants';\nimport { ELEMENT } from '../../constants';\n\nconst getComponentsToInsertByType = (items, insertionType) => {\n if (!items || !items.length) return [false, []];\n\n if (insertionType === ELEMENT) {\n const componentsToInject = items.filter(\n ({\n settings: {\n insertionType: insertionTypeSetting,\n startingPoint,\n repeatEvery,\n maxRepetitions\n }\n }) =>\n insertionTypeSetting === insertionType &&\n (startingPoint !== 0 && repeatEvery !== 0 && maxRepetitions !== 0)\n );\n return [!!componentsToInject.length, componentsToInject];\n }\n if (insertionType === PB_TYPE_TEXTBLOCK) {\n const textBlockBanners = items.filter(\n ({ settings: { insertionType: insertionTypeSetting } }) =>\n insertionTypeSetting === PB_TYPE_TEXTBLOCK\n );\n\n return [!!textBlockBanners.length, textBlockBanners];\n }\n\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1
|
+
{"version":3,"file":"get-components-to-insert-by-type.js","names":["_constants","require","_constants2","getComponentsToInsertByType","items","insertionType","length","ELEMENT","componentsToInject","filter","_ref","_ref$settings","settings","insertionTypeSetting","startingPoint","repeatEvery","maxRepetitions","PB_TYPE_TEXTBLOCK","textBlockBanners","_ref2","_default","exports"],"sources":["../../../src/hooks/helpers/get-components-to-insert-by-type.js"],"sourcesContent":["import { PB_TYPE_TEXTBLOCK } from './constants';\nimport { ELEMENT } from '../../constants';\n\nconst getComponentsToInsertByType = (items, insertionType) => {\n if (!items || !items.length) return [false, []];\n\n if (insertionType === ELEMENT) {\n const componentsToInject = items.filter(\n ({\n settings: {\n insertionType: insertionTypeSetting,\n startingPoint,\n repeatEvery,\n maxRepetitions\n }\n }) =>\n insertionTypeSetting === insertionType &&\n (startingPoint !== 0 && repeatEvery !== 0 && maxRepetitions !== 0)\n );\n return [!!componentsToInject.length, componentsToInject];\n }\n if (insertionType === PB_TYPE_TEXTBLOCK) {\n const textBlockBanners = items.filter(\n ({ settings: { insertionType: insertionTypeSetting } }) =>\n insertionTypeSetting === PB_TYPE_TEXTBLOCK\n );\n\n return [!!textBlockBanners.length, textBlockBanners];\n }\n\n return [false, []];\n};\n\nexport default getComponentsToInsertByType;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA,IAAME,2BAA2B,GAAG,SAA9BA,2BAA2BA,CAAIC,KAAK,EAAEC,aAAa,EAAK;EAC5D,IAAI,CAACD,KAAK,IAAI,CAACA,KAAK,CAACE,MAAM,EAAE,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;EAE/C,IAAID,aAAa,KAAKE,mBAAO,EAAE;IAC7B,IAAMC,kBAAkB,GAAGJ,KAAK,CAACK,MAAM,CACrC,UAAAC,IAAA;MAAA,IAAAC,aAAA,GAAAD,IAAA,CACEE,QAAQ;QACSC,oBAAoB,GAAAF,aAAA,CAAnCN,aAAa;Q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