@ubnt/store.core 9.60.0-new-design → 9.60.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 +1 -129
- package/lib/_virtual/_virtual_multi-entry.js +10 -13
- package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
- package/lib/_virtual/_virtual_multi-entry.mjs +11 -13
- package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
- package/lib/apis/smartcat.d.ts +2 -12
- package/lib/apis/smartcat.js +4 -27
- package/lib/apis/smartcat.js.map +1 -1
- package/lib/apis/smartcat.mjs +4 -27
- package/lib/apis/smartcat.mjs.map +1 -1
- package/lib/assets/attention.svg +5 -5
- package/lib/assets/attention2.svg +5 -5
- package/lib/assets/close2.svg +2 -3
- package/lib/assets/close3.svg +3 -2
- package/lib/assets/icons/menu/{icon-location-pin.svg.js → icon-globe.svg.js} +6 -6
- package/lib/assets/icons/menu/icon-globe.svg.js.map +1 -0
- package/lib/assets/icons/menu/icon-globe.svg.mjs +3 -0
- package/lib/assets/icons/menu/icon-globe.svg.mjs.map +1 -0
- package/lib/assets/logoUnifi.svg +2 -10
- package/lib/assets/pause.svg +3 -3
- package/lib/assets/pause2.svg +3 -3
- package/lib/components/Accordion/Accordion.js +4 -4
- package/lib/components/Avatar/Avatar.js +2 -2
- package/lib/components/BackInStock/BackInStock.types.d.ts +0 -1
- package/lib/components/Button/Button.js +5 -12
- package/lib/components/Button/Button.js.map +1 -1
- package/lib/components/Button/Button.mjs +1 -8
- package/lib/components/Button/Button.mjs.map +1 -1
- package/lib/components/Button/CartButton.d.ts +1 -3
- package/lib/components/Button/CartButton.js +6 -11
- package/lib/components/Button/CartButton.js.map +1 -1
- package/lib/components/Button/CartButton.mjs +4 -8
- package/lib/components/Button/CartButton.mjs.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.js +9 -16
- package/lib/components/ButtonGroup/ButtonGroup.js.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.mjs +9 -16
- package/lib/components/ButtonGroup/ButtonGroup.mjs.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.styles.d.ts +6 -10
- package/lib/components/ButtonGroup/ButtonGroup.styles.js +20 -60
- package/lib/components/ButtonGroup/ButtonGroup.styles.js.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.styles.mjs +20 -60
- package/lib/components/ButtonGroup/ButtonGroup.styles.mjs.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.types.d.ts +0 -5
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.d.ts +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js +4 -16
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs +5 -17
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.d.ts +1 -5
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js +17 -82
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs +17 -82
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.types.d.ts +0 -4
- package/lib/components/CardSection/Card/Card.js +6 -6
- package/lib/components/CardSection/CardSection.js +2 -2
- package/lib/components/CardSection/CardSection.styles.d.ts +1 -1
- package/lib/components/CartIcon/CartIcon.js +2 -2
- package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +2 -4
- package/lib/components/CategoryTabs/CategoryTabs.styles.js +5 -8
- package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +6 -7
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
- package/lib/components/Checkbox/Checkbox.js +4 -4
- package/lib/components/CloserLookSection/CloserLookSection.js +11 -11
- package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.js +5 -5
- package/lib/components/Compare/Compare.styles.d.ts +5 -5
- package/lib/components/Container/Container.d.ts +1 -1
- package/lib/components/Container/Container.js +4 -5
- package/lib/components/Container/Container.js.map +1 -1
- package/lib/components/Container/Container.mjs +4 -5
- package/lib/components/Container/Container.mjs.map +1 -1
- package/lib/components/Container/index.stories.d.ts +5 -5
- package/lib/components/CustomImage/CustomImage.js +12 -12
- package/lib/components/Explore/Explore.js +5 -5
- package/lib/components/Explore/ExploreData.js +12 -12
- package/lib/components/Explore/ExploreData.js.map +1 -1
- package/lib/components/Explore/ExploreData.mjs +12 -12
- package/lib/components/Explore/ExploreData.mjs.map +1 -1
- package/lib/components/FeaturesSection_deprecated/Features/Features.js +2 -2
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +23 -23
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
- package/lib/components/Footer/Footer.js +2 -2
- package/lib/components/Footer/hooks/useFooterContent.js +5 -5
- package/lib/components/Gallery/Gallery.context.js +17 -17
- package/lib/components/Gallery/Gallery.js +9 -9
- package/lib/components/Gallery/GalleryControls/GalleryControls.js +4 -4
- package/lib/components/Gallery/GalleryItem/GalleryItem.js +8 -8
- package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.js +8 -8
- package/lib/components/GridGallery/GridGallery.js +8 -8
- package/lib/components/GridGallery/GridModal/GridModal.js +6 -6
- package/lib/components/Header/AccountFrame/AccountFrame.js +11 -11
- package/lib/components/Header/AccountFrame/Mobile/Mobile.js +4 -4
- package/lib/components/Header/AccountMenu/AccountMenu.js +20 -30
- package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
- package/lib/components/Header/AccountMenu/AccountMenu.mjs +3 -13
- package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
- package/lib/components/Header/CartModal/Empty/Empty.js +3 -3
- package/lib/components/Header/CartModalV2/CartModal.js +5 -5
- package/lib/components/Header/CartModalV2/Item/Item.js +4 -4
- package/lib/components/Header/CartModalV2/Item/Item.styles.d.ts +1 -1
- package/lib/components/Header/Header.js +43 -43
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mjs +9 -9
- package/lib/components/Header/Header.mjs.map +1 -1
- package/lib/components/Header/Header.styles.d.ts +12 -7
- package/lib/components/Header/Header.styles.js +32 -10
- package/lib/components/Header/Header.styles.js.map +1 -1
- package/lib/components/Header/Header.styles.mjs +31 -10
- package/lib/components/Header/Header.styles.mjs.map +1 -1
- package/lib/components/Header/Header.types.d.ts +5 -29
- package/lib/components/Header/Header.types.js +1 -2
- package/lib/components/Header/Header.types.js.map +1 -1
- package/lib/components/Header/Header.types.mjs +1 -2
- package/lib/components/Header/Header.types.mjs.map +1 -1
- package/lib/components/Header/IsolatedHeader.d.ts +0 -1
- package/lib/components/Header/IsolatedHeader.js +50 -50
- package/lib/components/Header/IsolatedHeader.js.map +1 -1
- package/lib/components/Header/IsolatedHeader.mjs +46 -47
- package/lib/components/Header/IsolatedHeader.mjs.map +1 -1
- package/lib/components/Header/LanguageFrame/LanguageFrame.js +6 -6
- package/lib/components/Header/MenuItem/MenuItem.styles.d.ts +1 -1
- package/lib/components/Header/MenuItem/MenuItem.styles.js +3 -3
- package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
- package/lib/components/Header/MenuItem/MenuItem.styles.mjs +3 -3
- package/lib/components/Header/MenuItem/MenuItem.styles.mjs.map +1 -1
- package/lib/components/Header/MenuItem/MenuItem.types.d.ts +0 -1
- package/lib/components/Header/Navigation/Carousel/Carousel.js +5 -5
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.js +12 -12
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +6 -6
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +109 -116
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +104 -111
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +0 -9
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +1 -15
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +2 -13
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +6 -12
- package/lib/components/Header/Overlay/Overlay.js +3 -3
- package/lib/components/Header/ProHeader/ProHeader.d.ts +5 -9
- package/lib/components/Header/ProHeader/ProHeader.js +189 -270
- package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.mjs +171 -251
- package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +25 -30
- package/lib/components/Header/ProHeader/ProHeader.styles.js +66 -119
- package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs +65 -112
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
- package/lib/components/Header/translations/ar.json.js +1 -4
- package/lib/components/Header/translations/ar.json.js.map +1 -1
- package/lib/components/Header/translations/ar.json.mjs +2 -4
- package/lib/components/Header/translations/ar.json.mjs.map +1 -1
- package/lib/components/Header/translations/de.json.js +1 -4
- package/lib/components/Header/translations/de.json.js.map +1 -1
- package/lib/components/Header/translations/de.json.mjs +2 -4
- package/lib/components/Header/translations/de.json.mjs.map +1 -1
- package/lib/components/Header/translations/el.json.js +1 -4
- package/lib/components/Header/translations/el.json.js.map +1 -1
- package/lib/components/Header/translations/el.json.mjs +2 -4
- package/lib/components/Header/translations/el.json.mjs.map +1 -1
- package/lib/components/Header/translations/en.json.js +1 -7
- package/lib/components/Header/translations/en.json.js.map +1 -1
- package/lib/components/Header/translations/en.json.mjs +2 -6
- package/lib/components/Header/translations/en.json.mjs.map +1 -1
- package/lib/components/Header/translations/es.json.js +1 -4
- package/lib/components/Header/translations/es.json.js.map +1 -1
- package/lib/components/Header/translations/es.json.mjs +2 -4
- package/lib/components/Header/translations/es.json.mjs.map +1 -1
- package/lib/components/Header/translations/fr.json.js +1 -4
- package/lib/components/Header/translations/fr.json.js.map +1 -1
- package/lib/components/Header/translations/fr.json.mjs +2 -4
- package/lib/components/Header/translations/fr.json.mjs.map +1 -1
- package/lib/components/Header/translations/it.json.js +1 -4
- package/lib/components/Header/translations/it.json.js.map +1 -1
- package/lib/components/Header/translations/it.json.mjs +2 -4
- package/lib/components/Header/translations/it.json.mjs.map +1 -1
- package/lib/components/Header/translations/ja.json.js +1 -4
- package/lib/components/Header/translations/ja.json.js.map +1 -1
- package/lib/components/Header/translations/ja.json.mjs +2 -4
- package/lib/components/Header/translations/ja.json.mjs.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.js +1 -4
- package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.mjs +2 -4
- package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.js +1 -4
- package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.mjs +2 -4
- package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.js +1 -4
- package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.mjs +2 -4
- package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/components/Hero/Hero.js +5 -5
- package/lib/components/Hero/Hero.styles.d.ts +2 -2
- package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +1 -1
- package/lib/components/HeroVideo/HeroVideo.js +5 -5
- package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +2 -2
- package/lib/components/ImageCarousel/ImageCarousel.js +30 -30
- package/lib/components/ImageSequence/ImageSequence.js +8 -8
- package/lib/components/LandingPage/Cards/Card/Card.js +4 -4
- package/lib/components/LandingPage/Cards/Cards.js +10 -10
- package/lib/components/LandingPage/LandingPage.js +2 -2
- package/lib/components/LandingPagePro/LandingPagePro.js +13 -13
- package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +1 -1
- package/lib/components/LandingPageSearch/LandingPageSearch.js +2 -2
- package/lib/components/LandingPageSearch/Modal/Modal.js +9 -9
- package/lib/components/LandingPageSidebar/LandingPageSidebar.js +12 -12
- package/lib/components/LayoutRenderer/LayoutRenderer.js +8 -8
- package/lib/components/LayoutRenderer/LayoutRenderer.styles.d.ts +1 -1
- package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +3 -3
- package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +3 -3
- package/lib/components/LoaderDots/LoaderDots.d.ts +1 -1
- package/lib/components/LoaderDots/LoaderDots.js +1 -3
- package/lib/components/LoaderDots/LoaderDots.js.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.mjs +1 -3
- package/lib/components/LoaderDots/LoaderDots.mjs.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.styles.d.ts +1 -2
- package/lib/components/LoaderDots/LoaderDots.styles.js +1 -11
- package/lib/components/LoaderDots/LoaderDots.styles.js.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.styles.mjs +1 -11
- package/lib/components/LoaderDots/LoaderDots.styles.mjs.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.types.d.ts +0 -2
- package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.js +7 -7
- package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.js +18 -18
- package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.d.ts +1 -1
- package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.js +2 -2
- package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.js +3 -3
- package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.js +3 -3
- package/lib/components/MicrositeHero/MicrositeHero.js +18 -18
- package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.js +4 -4
- package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.js +9 -9
- package/lib/components/MicrositeProductGrid/MicrositeProductGrid.js +8 -8
- package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlockWrap.js +2 -2
- package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +1 -1
- package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.js +3 -3
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +13 -13
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
- package/lib/components/Microsites/MicrositePageContext.js +2 -2
- package/lib/components/Microsites/MicrositeProductPage.js +3 -3
- package/lib/components/Microsites/context/MicrositeProductPageContext.js +3 -3
- package/lib/components/MobileModal/MobileModal.js +4 -4
- package/lib/components/Modal/Modal.js +3 -3
- package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js +3 -3
- package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.js +2 -2
- package/lib/components/ModelCompareV3/ModelCompareV3.js +14 -14
- package/lib/components/ModelCompareV3/ProductGroupsGrid.js +3 -3
- package/lib/components/ModelCompareV3/ScrollGroup/ScrollGroup.js +5 -5
- package/lib/components/ModelCompareV3/ScrollGroup/context.js +3 -3
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupItem.js +8 -8
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupSetScroll.js +2 -2
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupTo.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js +7 -7
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridBody.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js +5 -5
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/context.js +3 -3
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js +2 -4
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs +2 -4
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js +2 -2
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.mjs +2 -2
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/express.js +3 -3
- package/lib/components/ModelCompareV3/data/products/express.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/express.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/express.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayLite.js +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayLite.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayMax.js +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayMax.mjs +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.js +1 -3
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.mjs +1 -3
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js +3 -3
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.js +3 -3
- package/lib/components/ModelCompareV3/data/products/udmPro.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.js +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr.js +41 -5
- package/lib/components/ModelCompareV3/data/products/udr.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr.mjs +21 -5
- package/lib/components/ModelCompareV3/data/products/udr.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udw.js +3 -3
- package/lib/components/ModelCompareV3/data/products/udw.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udw.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udw.mjs.map +1 -1
- package/lib/components/Pagination/Pagination.js +3 -3
- package/lib/components/PriceRangeSlider/PriceRangeSlider.js +16 -16
- package/lib/components/ProductCard/ProductCard.js +7 -7
- package/lib/components/ProductCardPopup/ProductCardPopup.js +8 -8
- package/lib/components/ProductCompare/ProductCompare.js +7 -7
- package/lib/components/ProductDetails/ProductDetails.js +5 -5
- package/lib/components/ProductGrid/ProductGrid.js +10 -10
- package/lib/components/ProductKeyFeatures/ProductKeyFeatures.js +3 -3
- package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +1 -1
- package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +1 -1
- package/lib/components/ProductSectionTabs/ProductSectionTabs.js +2 -2
- package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +2 -2
- package/lib/components/ProductWizard/Options/Options.js +3 -3
- package/lib/components/ProductWizard/ProductWizard.js +2 -2
- package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js +5 -5
- package/lib/components/ProgressCircle/ProgressCircle.js +4 -4
- package/lib/components/QuantityControls/QuantityControls.js +6 -6
- package/lib/components/QuantityControls/QuantityControls.js.map +1 -1
- package/lib/components/QuantityControls/QuantityControls.mjs +2 -2
- package/lib/components/QuantityControls/QuantityControls.mjs.map +1 -1
- package/lib/components/QuantityControls/QuantityControls.types.d.ts +1 -1
- package/lib/components/QuantityInput/QuantityInput.js +1 -6
- package/lib/components/QuantityInput/QuantityInput.js.map +1 -1
- package/lib/components/QuantityInput/QuantityInput.mjs +1 -6
- package/lib/components/QuantityInput/QuantityInput.mjs.map +1 -1
- package/lib/components/RelatedProducts/RelatedProducts.js +5 -5
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js +36 -36
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +12 -12
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +6 -6
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CheckboxSection.js +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +4 -4
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/SliderSection.js +3 -3
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +8 -8
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +6 -6
- package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.js +9 -9
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.js +10 -10
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +15 -15
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.js +2 -2
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +6 -6
- package/lib/components/ResourceCalculatorV1/translations/en.json.js +1 -1
- package/lib/components/ResourceCalculatorV1/translations/en.json.mjs +1 -1
- package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.js +5 -5
- package/lib/components/ScrollWrapper/ScrollWrapper.d.ts +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.js +26 -34
- package/lib/components/ScrollWrapper/ScrollWrapper.js.map +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.mjs +8 -16
- package/lib/components/ScrollWrapper/ScrollWrapper.mjs.map +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.types.d.ts +0 -2
- package/lib/components/Search/Input/Input.d.ts +1 -1
- package/lib/components/Search/Input/Input.js +8 -8
- package/lib/components/Search/Input/Input.js.map +1 -1
- package/lib/components/Search/Input/Input.mjs +4 -4
- package/lib/components/Search/Input/Input.mjs.map +1 -1
- package/lib/components/Search/Input/Input.styles.js +1 -0
- package/lib/components/Search/Input/Input.styles.js.map +1 -1
- package/lib/components/Search/Input/Input.styles.mjs +1 -0
- package/lib/components/Search/Input/Input.styles.mjs.map +1 -1
- package/lib/components/Search/Input/Input.types.d.ts +2 -3
- package/lib/components/Search/Modal/Modal.js +3 -3
- package/lib/components/StorageSliders/Slider/Slider.js +3 -3
- package/lib/components/StorageSliders/StorageSliders.context.js +20 -20
- package/lib/components/StorageSliders/StorageSliders.js +4 -4
- package/lib/components/Tooltip/Tooltip.js +5 -5
- package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js +7 -7
- package/lib/components/VariantSelector/Variant/Variant.js +40 -40
- package/lib/components/VariantSelector/VariantSelector.js +16 -16
- package/lib/components/VideoPlayerNew/VideoPlayer.js +21 -21
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +2 -2
- package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
- package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
- package/lib/components/index.d.ts +0 -1
- package/lib/components/index.js +0 -2
- package/lib/components/index.js.map +1 -1
- package/lib/components/index.mjs +0 -2
- package/lib/components/index.mjs.map +1 -1
- package/lib/constants/icons/options/colors/black.svg.js +5 -5
- package/lib/constants/icons/options/colors/index.js +3 -3
- package/lib/constants/icons/options/styles/black.svg.js +5 -5
- package/lib/constants/icons/options/styles/index.js +3 -3
- package/lib/constants/optionIcons.js +6 -6
- package/lib/constants/optionIcons.mjs +4 -4
- package/lib/constants/proStoreCategories/mapping/filters.d.ts +0 -17
- package/lib/constants/proStoreCategories/mapping/filters.js +0 -17
- package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/filters.mjs +0 -17
- package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.d.ts +2 -4
- package/lib/constants/proStoreCategories/mapping/index.js +51 -50
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +49 -49
- package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/mapping.d.ts +0 -5
- package/lib/constants/proStoreCategories/mapping/redirects.js +3 -18
- package/lib/constants/proStoreCategories/mapping/redirects.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/redirects.mjs +3 -18
- package/lib/constants/proStoreCategories/mapping/redirects.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.d.ts +9 -9
- package/lib/constants/proStoreCategories/mapping/unifi.js +9 -9
- package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs +9 -9
- package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/constants/proStoreFilters/mapping.d.ts +3 -55
- package/lib/constants/proStoreFilters/mapping.js +10 -140
- package/lib/constants/proStoreFilters/mapping.js.map +1 -1
- package/lib/constants/proStoreFilters/mapping.mjs +10 -140
- package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
- package/lib/constants/theme.js +0 -4
- package/lib/constants/theme.js.map +1 -1
- package/lib/constants/theme.mjs +0 -4
- package/lib/constants/theme.mjs.map +1 -1
- package/lib/contexts/MenuContext/context.js +34 -34
- package/lib/contexts/MenuContext/context.js.map +1 -1
- package/lib/contexts/MenuContext/context.mjs +1 -1
- package/lib/contexts/MenuContext/context.mjs.map +1 -1
- package/lib/contexts/MenuContext/mapping.js.map +1 -1
- package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
- package/lib/helpers/index.js +0 -1
- package/lib/helpers/index.js.map +1 -1
- package/lib/helpers/index.mjs +1 -1
- package/lib/helpers/proStoreCategories.js +2 -2
- package/lib/helpers/ux.d.ts +0 -8
- package/lib/helpers/ux.js +0 -15
- package/lib/helpers/ux.js.map +1 -1
- package/lib/helpers/ux.mjs +1 -15
- package/lib/helpers/ux.mjs.map +1 -1
- package/lib/hooks/useHasTouch.js +3 -3
- package/lib/hooks/useHddRetentionCalculator.js +5 -5
- package/lib/hooks/useHorizontalScroll.js +2 -2
- package/lib/hooks/useLockBodyScrollCustom.js +3 -3
- package/lib/hooks/useScrollToY.js +2 -2
- package/lib/hooks/useTestMediaElementVolumeSetter.js +3 -3
- package/lib/hooks/useTranslation.js +6 -6
- package/lib/utils/nextjs/ssr/registry.js +2 -2
- package/package.json +1 -1
- package/lib/assets/cart-secondary.svg +0 -5
- package/lib/assets/icon-location-pin.svg +0 -5
- package/lib/assets/icons/cart-secondary.svg.js +0 -27
- package/lib/assets/icons/cart-secondary.svg.js.map +0 -1
- package/lib/assets/icons/cart-secondary.svg.mjs +0 -3
- package/lib/assets/icons/cart-secondary.svg.mjs.map +0 -1
- package/lib/assets/icons/menu/icon-location-pin.svg.js.map +0 -1
- package/lib/assets/icons/menu/icon-location-pin.svg.mjs +0 -3
- package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +0 -1
- package/lib/components/ButtonGroupBasic/index.stories.d.ts +0 -6
- package/lib/components/Header/Header.stories.d.ts +0 -111
- package/lib/components/Header/LogoIcon/LogoIcon.d.ts +0 -7
- package/lib/components/Header/LogoIcon/LogoIcon.js +0 -46
- package/lib/components/Header/LogoIcon/LogoIcon.js.map +0 -1
- package/lib/components/Header/LogoIcon/LogoIcon.mjs +0 -36
- package/lib/components/Header/LogoIcon/LogoIcon.mjs.map +0 -1
- package/lib/components/Header/LogoIcon/index.d.ts +0 -1
- package/lib/components/Header/LogoIcon/index.js +0 -6
- package/lib/components/Header/LogoIcon/index.js.map +0 -1
- package/lib/components/Header/LogoIcon/index.mjs +0 -3
- package/lib/components/Header/LogoIcon/index.mjs.map +0 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.d.ts +0 -2
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js +0 -79
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js.map +0 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs +0 -71
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs.map +0 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.stories.d.ts +0 -5
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.d.ts +0 -11
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +0 -86
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +0 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +0 -72
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs.map +0 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.types.d.ts +0 -12
- package/lib/components/ProductTechSpecsV2/index.d.ts +0 -1
- package/lib/components/ProductTechSpecsV2/index.js +0 -6
- package/lib/components/ProductTechSpecsV2/index.js.map +0 -1
- package/lib/components/ProductTechSpecsV2/index.mjs +0 -3
- package/lib/components/ProductTechSpecsV2/index.mjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var react = require('react');
|
|
5
5
|
var reactUse = require('react-use');
|
|
6
6
|
require('../../../constants/icons/index.js');
|
|
7
7
|
require('../../StyleableSvgImage/index.js');
|
|
@@ -19,18 +19,18 @@ function _interopDefault(e) {
|
|
|
19
19
|
var _externalAssets_B1gmoLrG__default = /*#__PURE__*/_interopDefault(_externalAssets_B1gmoLrG);
|
|
20
20
|
"use strict";
|
|
21
21
|
const LandingPageCards = function LandingPageCards2(props) {
|
|
22
|
-
const wrapRef =
|
|
23
|
-
const wrapInnerRef =
|
|
22
|
+
const wrapRef = react.useRef(null);
|
|
23
|
+
const wrapInnerRef = react.useRef(null);
|
|
24
24
|
const scrollbarWidth = reactUse.useScrollbarWidth();
|
|
25
|
-
const [customScrollbarWidth, setCustomScrollbarWidth] =
|
|
26
|
-
|
|
25
|
+
const [customScrollbarWidth, setCustomScrollbarWidth] = react.useState(0);
|
|
26
|
+
react.useEffect(() => {
|
|
27
27
|
setCustomScrollbarWidth(scrollbarWidth || 0);
|
|
28
28
|
}, [scrollbarWidth]);
|
|
29
|
-
const [showArrows, setShowArrows] =
|
|
29
|
+
const [showArrows, setShowArrows] = react.useState({
|
|
30
30
|
prev: false,
|
|
31
31
|
next: false
|
|
32
32
|
});
|
|
33
|
-
const updateArrowShowState =
|
|
33
|
+
const updateArrowShowState = react.useCallback((wrapEl, wrapInnerEl) => {
|
|
34
34
|
const cardEl = wrapEl.querySelector(`.${Cards_constants.CARD_CLASS_NAME}`);
|
|
35
35
|
if (!cardEl) return;
|
|
36
36
|
setShowArrows({
|
|
@@ -38,7 +38,7 @@ const LandingPageCards = function LandingPageCards2(props) {
|
|
|
38
38
|
next: wrapInnerEl.offsetWidth + wrapInnerEl.scrollLeft < wrapInnerEl.scrollWidth
|
|
39
39
|
});
|
|
40
40
|
}, []);
|
|
41
|
-
|
|
41
|
+
react.useEffect(() => {
|
|
42
42
|
const wrapEl = wrapRef.current;
|
|
43
43
|
const wrapInnerEl = wrapInnerRef.current;
|
|
44
44
|
if (!wrapEl || !wrapInnerEl) return;
|
|
@@ -49,7 +49,7 @@ const LandingPageCards = function LandingPageCards2(props) {
|
|
|
49
49
|
wrapInnerEl.removeEventListener("scroll", () => updateArrowShowState(wrapEl, wrapInnerEl));
|
|
50
50
|
};
|
|
51
51
|
}, [updateArrowShowState]);
|
|
52
|
-
const onPrevClick =
|
|
52
|
+
const onPrevClick = react.useCallback(() => {
|
|
53
53
|
if (!wrapRef.current || !wrapInnerRef.current) return;
|
|
54
54
|
const cardEl = wrapRef.current.querySelector(`.${Cards_constants.CARD_CLASS_NAME}`);
|
|
55
55
|
if (!cardEl) return;
|
|
@@ -58,7 +58,7 @@ const LandingPageCards = function LandingPageCards2(props) {
|
|
|
58
58
|
behavior: "smooth"
|
|
59
59
|
});
|
|
60
60
|
}, []);
|
|
61
|
-
const onNextClick =
|
|
61
|
+
const onNextClick = react.useCallback(() => {
|
|
62
62
|
if (!wrapRef.current || !wrapInnerRef.current) return;
|
|
63
63
|
const cardEl = wrapRef.current.querySelector(`.${Cards_constants.CARD_CLASS_NAME}`);
|
|
64
64
|
if (!cardEl) return;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var merge = require('lodash/merge');
|
|
5
|
-
var
|
|
5
|
+
var react = require('react');
|
|
6
6
|
require('../../assets/landingPage/design-uisp-mobile.png.js');
|
|
7
7
|
require('../../assets/landingPage/design-uisp.png.js');
|
|
8
8
|
require('../../assets/landingPage/design-unifi-mobile.png.js');
|
|
@@ -40,7 +40,7 @@ const LandingPage = function LandingPage2({
|
|
|
40
40
|
collectionBlocks,
|
|
41
41
|
translations: initialTranslations
|
|
42
42
|
}) {
|
|
43
|
-
const translations =
|
|
43
|
+
const translations = react.useMemo(() => {
|
|
44
44
|
return merge__default["default"](LandingPage_constants.defaultLandingPageTranslations, initialTranslations);
|
|
45
45
|
}, [initialTranslations]);
|
|
46
46
|
return /* @__PURE__ */jsxRuntime.jsxs(LandingPage_styles.Wrap, {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var currencies = require('@dinero.js/currencies');
|
|
5
|
-
var
|
|
5
|
+
var react = require('react');
|
|
6
6
|
require('../../contexts/MenuContext/index.js');
|
|
7
7
|
var mapping = require('../../contexts/MenuContext/mapping.js');
|
|
8
8
|
require('../../types/index.js');
|
|
@@ -31,8 +31,8 @@ const LandingPagePro = ({
|
|
|
31
31
|
const {
|
|
32
32
|
navigation
|
|
33
33
|
} = context.useMenu();
|
|
34
|
-
const isSearchUsed =
|
|
35
|
-
const categories =
|
|
34
|
+
const isSearchUsed = react.useMemo(() => !!searchProps.searchValue, [searchProps.searchValue]);
|
|
35
|
+
const categories = react.useMemo(() => {
|
|
36
36
|
const navItems = sidebarProps.productTypeBlock.activeType === "unifi" ? navigation.primary.items : navigation.secondary.items;
|
|
37
37
|
const items = navItems.filter(item => item.id !== mapping.NavigationItemId.UnifiIdentity && item.id !== mapping.NavigationItemId.UispSoftware
|
|
38
38
|
/**
|
|
@@ -117,13 +117,13 @@ const LandingPagePro = ({
|
|
|
117
117
|
items: category.items.filter(item => item?.products?.length)
|
|
118
118
|
}));
|
|
119
119
|
}, [navigation.primary.items, navigation.secondary.items, productGridProps?.products, sidebarProps.productTypeBlock.activeType, sidebarProps.translations.all]);
|
|
120
|
-
const maxPriceFilterAmount =
|
|
120
|
+
const maxPriceFilterAmount = react.useMemo(() => {
|
|
121
121
|
return {
|
|
122
122
|
amount: maximumPriceFilterLookup.get(sidebarProps.filtersBlock?.currency || generated.Currency.Cad) || 7e4,
|
|
123
123
|
currency: sidebarProps.filtersBlock?.currency || generated.Currency.Cad
|
|
124
124
|
};
|
|
125
125
|
}, [sidebarProps.filtersBlock?.currency]);
|
|
126
|
-
const categoryProducts =
|
|
126
|
+
const categoryProducts = react.useMemo(() => {
|
|
127
127
|
if (!sidebarProps?.categoriesBlock?.activeCategory) {
|
|
128
128
|
return productGridProps.products;
|
|
129
129
|
}
|
|
@@ -134,7 +134,7 @@ const LandingPagePro = ({
|
|
|
134
134
|
}
|
|
135
135
|
return [];
|
|
136
136
|
}, [categories, productGridProps.products, sidebarProps.categoriesBlock?.activeCategory]);
|
|
137
|
-
const productsFilter =
|
|
137
|
+
const productsFilter = react.useCallback(product => {
|
|
138
138
|
if (sidebarProps.filtersBlock?.activeFilters?.filters?.includes("inStock") && !product.variants.find(variant => variant.isInStock)) {
|
|
139
139
|
return false;
|
|
140
140
|
}
|
|
@@ -164,7 +164,7 @@ const LandingPagePro = ({
|
|
|
164
164
|
}
|
|
165
165
|
return true;
|
|
166
166
|
}, [maxPriceFilterAmount.amount, sidebarProps.filtersBlock?.activeFilters?.filters, sidebarProps.filtersBlock?.activeFilters?.priceFrom?.displayPrice, sidebarProps.filtersBlock?.activeFilters?.priceTo?.displayPrice]);
|
|
167
|
-
const productsSort =
|
|
167
|
+
const productsSort = react.useCallback((currentProduct, nextProduct) => {
|
|
168
168
|
const currentInStock = utils.productHasSomeInStock(currentProduct);
|
|
169
169
|
const nextInStock = utils.productHasSomeInStock(nextProduct);
|
|
170
170
|
const sortWeight = !isSearchUsed ? utils.compareSortWeights({
|
|
@@ -197,13 +197,13 @@ const LandingPagePro = ({
|
|
|
197
197
|
}
|
|
198
198
|
return sortValue + sortWeight;
|
|
199
199
|
}, [isSearchUsed, productGridProps.sortValue]);
|
|
200
|
-
const products =
|
|
200
|
+
const products = react.useMemo(() => {
|
|
201
201
|
if (categoryProducts === null) {
|
|
202
202
|
return null;
|
|
203
203
|
}
|
|
204
204
|
return categoryProducts?.filter(productsFilter).sort(productsSort);
|
|
205
205
|
}, [categoryProducts, productsFilter, productsSort]);
|
|
206
|
-
const filtersBlock =
|
|
206
|
+
const filtersBlock = react.useMemo(() => {
|
|
207
207
|
if (!sidebarProps.filtersBlock) {
|
|
208
208
|
return void 0;
|
|
209
209
|
}
|
|
@@ -221,12 +221,12 @@ const LandingPagePro = ({
|
|
|
221
221
|
}
|
|
222
222
|
};
|
|
223
223
|
}, [maxPriceFilterAmount, productGridProps.products, sidebarProps.filtersBlock]);
|
|
224
|
-
const hasFilters =
|
|
224
|
+
const hasFilters = react.useMemo(() => {
|
|
225
225
|
return !!filtersBlock?.activeFilters.filters?.length || filtersBlock?.activeFilters.priceFrom !== void 0 || filtersBlock?.activeFilters.priceTo !== void 0;
|
|
226
226
|
}, [filtersBlock?.activeFilters.filters?.length, filtersBlock?.activeFilters.priceFrom, filtersBlock?.activeFilters.priceTo]);
|
|
227
|
-
const areCategoriesLoading =
|
|
228
|
-
const isSidebarLoading =
|
|
229
|
-
const isDefaultCategory =
|
|
227
|
+
const areCategoriesLoading = react.useMemo(() => !!(sidebarProps.categoriesBlock && sidebarProps.categoriesBlock.activeCategory === void 0), [sidebarProps.categoriesBlock]);
|
|
228
|
+
const isSidebarLoading = react.useMemo(() => areCategoriesLoading || !productGridProps.isFullyLoaded, [areCategoriesLoading, productGridProps.isFullyLoaded]);
|
|
229
|
+
const isDefaultCategory = react.useMemo(() => !sidebarProps.categoriesBlock?.activeCategory, [sidebarProps.categoriesBlock?.activeCategory]);
|
|
230
230
|
return /* @__PURE__ */jsxRuntime.jsxs(LandingPagePro_styles.Container, {
|
|
231
231
|
size: "desktop",
|
|
232
232
|
children: [/* @__PURE__ */jsxRuntime.jsx(LandingPageSidebar.LandingPageSidebar, {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const Container: import("styled-components").StyledComponent<import("react").
|
|
1
|
+
export declare const Container: import("styled-components").StyledComponent<import("react").NamedExoticComponent<import("../Container/Container.types").ContainerProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
2
2
|
export declare const ProductsContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
3
|
export declare const SearchLoader: import("styled-components").StyledComponent<({ height, maxWidth, className, }: import("../SkeletonLoader/SkeletonLinearLoader/SkeletonLinearLoader").SkeletonLinearLoaderProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var react = require('react');
|
|
5
5
|
var reactUse = require('react-use');
|
|
6
6
|
var layout = require('../../constants/layout.js');
|
|
7
7
|
require('../Search/index.js');
|
|
@@ -21,7 +21,7 @@ const LandingPageSearch = ({
|
|
|
21
21
|
const handleInputValueChange = e => {
|
|
22
22
|
search?.onSearch(e.target.value);
|
|
23
23
|
};
|
|
24
|
-
const handleOnClose =
|
|
24
|
+
const handleOnClose = react.useCallback(e => {
|
|
25
25
|
if (e?.ctrlKey || e?.metaKey) {
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var react = require('react');
|
|
5
5
|
var reactUse = require('react-use');
|
|
6
6
|
require('../../../utils/money/index.js');
|
|
7
7
|
require('../../CustomImage/index.js');
|
|
@@ -26,13 +26,13 @@ const SearchModal = function SearchModal2({
|
|
|
26
26
|
renderImage,
|
|
27
27
|
disableShowMoreResults
|
|
28
28
|
}) {
|
|
29
|
-
const ref =
|
|
30
|
-
const noResults =
|
|
31
|
-
const showSearchResultsLink =
|
|
29
|
+
const ref = react.useRef(null);
|
|
30
|
+
const noResults = react.useMemo(() => !search.loading && !search.items?.length && !!formattedQuerySearchTerm, [formattedQuerySearchTerm, search.items?.length, search.loading]);
|
|
31
|
+
const showSearchResultsLink = react.useMemo(() => !disableShowMoreResults && search.totalItemsCount > MAX_SEARCH_RESULTS, [search, disableShowMoreResults]);
|
|
32
32
|
reactUse.useClickAway(ref, () => {
|
|
33
33
|
onClose?.();
|
|
34
34
|
});
|
|
35
|
-
const searchItemsSliced =
|
|
35
|
+
const searchItemsSliced = react.useMemo(() => {
|
|
36
36
|
return search.items.slice(0, MAX_SEARCH_RESULTS);
|
|
37
37
|
}, [search.items]);
|
|
38
38
|
return /* @__PURE__ */jsxRuntime.jsxs(Modal_styles.Container, {
|
|
@@ -80,16 +80,16 @@ const SearchModalItem = function SearchModalItem2({
|
|
|
80
80
|
renderImage,
|
|
81
81
|
renderSeparationBorder
|
|
82
82
|
}) {
|
|
83
|
-
const handleButtonClick =
|
|
83
|
+
const handleButtonClick = react.useCallback(() => {
|
|
84
84
|
onAddToCart(slug);
|
|
85
85
|
}, [onAddToCart, slug]);
|
|
86
|
-
const isInStock =
|
|
86
|
+
const isInStock = react.useMemo(() => {
|
|
87
87
|
return !!variants?.find(variant => variant.isInStock);
|
|
88
88
|
}, [variants]);
|
|
89
|
-
const isComingSoon =
|
|
89
|
+
const isComingSoon = react.useMemo(() => {
|
|
90
90
|
return !isInStock && !!variants?.find(variant => variant.isComingSoon);
|
|
91
91
|
}, [isInStock, variants]);
|
|
92
|
-
const addToCartButtonText =
|
|
92
|
+
const addToCartButtonText = react.useMemo(() => {
|
|
93
93
|
if (isComingSoon) {
|
|
94
94
|
return translations.view;
|
|
95
95
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var Checkbox = require('@ubnt/ui-components/Checkbox');
|
|
5
5
|
var Radio = require('@ubnt/ui-components/Radio');
|
|
6
|
-
var
|
|
6
|
+
var react = require('react');
|
|
7
7
|
var reactUse = require('react-use');
|
|
8
8
|
require('../../assets/icons/previouslyPurchasedStar.svg.js');
|
|
9
9
|
require('../../constants/icons/index.js');
|
|
@@ -44,11 +44,11 @@ const LandingPageSidebar = function LandingPageSidebar2({
|
|
|
44
44
|
productTypeProps,
|
|
45
45
|
isCartSummaryOpen
|
|
46
46
|
}) {
|
|
47
|
-
const [isMobileOverlayOpened, setIsMobileOverlayOpened] =
|
|
47
|
+
const [isMobileOverlayOpened, setIsMobileOverlayOpened] = react.useState(false);
|
|
48
48
|
const isMobile = reactUse.useMedia(layout.BREAKPOINTS.TABLET_AND_DOWN, false);
|
|
49
|
-
const [hasFiltersChanged, setHasFiltersChanged] =
|
|
49
|
+
const [hasFiltersChanged, setHasFiltersChanged] = react.useState(false);
|
|
50
50
|
useLockBodyScrollCustom.useLockBodyScrollCustom(isMobile && isMobileOverlayOpened);
|
|
51
|
-
const filtersChange =
|
|
51
|
+
const filtersChange = react.useCallback(value => {
|
|
52
52
|
setHasFiltersChanged(true);
|
|
53
53
|
filtersBlock?.onChange(value);
|
|
54
54
|
}, [filtersBlock]);
|
|
@@ -108,17 +108,17 @@ const CategoriesBlock = function CategoriesBlock2({
|
|
|
108
108
|
isSearchUsed,
|
|
109
109
|
productCount
|
|
110
110
|
}) {
|
|
111
|
-
const getInitialIndex =
|
|
111
|
+
const getInitialIndex = react.useCallback(() => {
|
|
112
112
|
return categories.findIndex(category => {
|
|
113
113
|
return category.items.some(item => categoriesBlock?.activeCategory === item.slug);
|
|
114
114
|
});
|
|
115
115
|
}, [categories, categoriesBlock?.activeCategory]);
|
|
116
|
-
const [initialAccordionIndex, setInitialAccordionIndex] =
|
|
117
|
-
const categoryChange =
|
|
116
|
+
const [initialAccordionIndex, setInitialAccordionIndex] = react.useState(getInitialIndex());
|
|
117
|
+
const categoryChange = react.useCallback(value => {
|
|
118
118
|
setFilersChanged(true);
|
|
119
119
|
categoriesBlock?.onChange(value);
|
|
120
120
|
}, [categoriesBlock, setFilersChanged]);
|
|
121
|
-
const accordionItems =
|
|
121
|
+
const accordionItems = react.useMemo(() => {
|
|
122
122
|
return categories.filter(category => isSearchUsed || (category?.items.flatMap(item => item.products).length || 0) > 0).map(category => {
|
|
123
123
|
const firstCategory = category.items[0];
|
|
124
124
|
return {
|
|
@@ -141,7 +141,7 @@ const CategoriesBlock = function CategoriesBlock2({
|
|
|
141
141
|
};
|
|
142
142
|
});
|
|
143
143
|
}, [categories, categoriesBlock?.activeCategory, categoryChange, isSearchUsed, translations]);
|
|
144
|
-
const handleAccordionChange =
|
|
144
|
+
const handleAccordionChange = react.useCallback(index => {
|
|
145
145
|
if (index > -1) {
|
|
146
146
|
setInitialAccordionIndex(index);
|
|
147
147
|
const currentCategoryID = accordionItems[index]?.id;
|
|
@@ -209,7 +209,7 @@ const FilterBlock = function FilterBlock2({
|
|
|
209
209
|
translations,
|
|
210
210
|
filtersBlock
|
|
211
211
|
}) {
|
|
212
|
-
const filtersList =
|
|
212
|
+
const filtersList = react.useMemo(() => {
|
|
213
213
|
return [{
|
|
214
214
|
title: translations.MSRPRange,
|
|
215
215
|
id: "priceRange",
|
|
@@ -232,7 +232,7 @@ const FilterBlock = function FilterBlock2({
|
|
|
232
232
|
type: "checkbox"
|
|
233
233
|
}];
|
|
234
234
|
}, [translations.MSRPRange, translations.earlyAccess, translations.inStock, translations.myPurchaseHistory]);
|
|
235
|
-
const handleCheckboxChange =
|
|
235
|
+
const handleCheckboxChange = react.useCallback((value, checked) => {
|
|
236
236
|
if (checked && !filtersBlock?.activeFilters.filters?.includes(value)) {
|
|
237
237
|
const newData = {
|
|
238
238
|
...filtersBlock?.activeFilters,
|
|
@@ -247,7 +247,7 @@ const FilterBlock = function FilterBlock2({
|
|
|
247
247
|
filtersBlock?.onChange(newData);
|
|
248
248
|
}
|
|
249
249
|
}, [filtersBlock]);
|
|
250
|
-
const hasFilters =
|
|
250
|
+
const hasFilters = react.useMemo(() => {
|
|
251
251
|
return !!filtersBlock?.activeFilters.filters?.length || filtersBlock?.activeFilters.priceFrom !== void 0 || filtersBlock?.activeFilters.priceTo !== void 0;
|
|
252
252
|
}, [filtersBlock?.activeFilters.filters?.length, filtersBlock?.activeFilters.priceFrom, filtersBlock?.activeFilters.priceTo]);
|
|
253
253
|
if (!filtersBlock) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var react = require('react');
|
|
5
5
|
var reactUse = require('react-use');
|
|
6
6
|
require('../../assets/icons/link.svg.js');
|
|
7
7
|
require('../../contexts/MenuContext/index.js');
|
|
@@ -56,8 +56,8 @@ const LayoutRenderer = ({
|
|
|
56
56
|
const {
|
|
57
57
|
activeNavigationSection
|
|
58
58
|
} = context.useMenu();
|
|
59
|
-
const wrapRef =
|
|
60
|
-
const images =
|
|
59
|
+
const wrapRef = react.useRef(null);
|
|
60
|
+
const images = react.useMemo(() => {
|
|
61
61
|
if (currentProduct?.images?.length) {
|
|
62
62
|
if (!currentProduct?.showGallery && currentProduct.images[0]) {
|
|
63
63
|
return [currentProduct.images[0]];
|
|
@@ -72,10 +72,10 @@ const LayoutRenderer = ({
|
|
|
72
72
|
const [galleryRef, {
|
|
73
73
|
width: galleryWidth
|
|
74
74
|
}] = reactUse.useMeasure();
|
|
75
|
-
const galleryHeight =
|
|
75
|
+
const galleryHeight = react.useMemo(() => {
|
|
76
76
|
return windowHeight - Header_styles.HEADER_HEIGHT - 80;
|
|
77
77
|
}, [windowHeight]);
|
|
78
|
-
const showTitle =
|
|
78
|
+
const showTitle = react.useMemo(() =>
|
|
79
79
|
// If not pro-store
|
|
80
80
|
!isProStore && (
|
|
81
81
|
// If we have no collection
|
|
@@ -84,7 +84,7 @@ const LayoutRenderer = ({
|
|
|
84
84
|
activeNavigationSection.items.every(item => !item.active) ||
|
|
85
85
|
// If we have collection and there are active, invisible items
|
|
86
86
|
activeNavigationSection.items.some(item => item.active && item.invisible)), [activeNavigationSection.items, collection, isProStore]);
|
|
87
|
-
const photos =
|
|
87
|
+
const photos = react.useMemo(() => {
|
|
88
88
|
return currentProduct?.deploymentImages?.map(asset => {
|
|
89
89
|
return {
|
|
90
90
|
...asset,
|
|
@@ -93,8 +93,8 @@ const LayoutRenderer = ({
|
|
|
93
93
|
};
|
|
94
94
|
}) ?? [];
|
|
95
95
|
}, [collection?.slug, currentProduct?.deploymentImages]);
|
|
96
|
-
const [activeTab, setActiveTab] =
|
|
97
|
-
const closerLookSectionProps =
|
|
96
|
+
const [activeTab, setActiveTab] = react.useState();
|
|
97
|
+
const closerLookSectionProps = react.useMemo(() => {
|
|
98
98
|
return {
|
|
99
99
|
translations: translations.closerLookSection,
|
|
100
100
|
renderImage,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const ProductLayoutContainer: import("styled-components").StyledComponent<import("react").
|
|
1
|
+
export declare const ProductLayoutContainer: import("styled-components").StyledComponent<import("react").NamedExoticComponent<import("../Container/Container.types").ContainerProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
2
2
|
export declare const ProductLayoutProductSectionWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
3
|
export declare const ProductLayoutLeftSide: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
4
|
export declare const ProductLayoutRightSide: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const Container: import("styled-components").StyledComponent<import("react").
|
|
1
|
+
export declare const Container: import("styled-components").StyledComponent<import("react").NamedExoticComponent<import("../Container/Container.types").ContainerProps>, import("styled-components").DefaultTheme, {
|
|
2
2
|
imageCarouselFullScreen?: boolean;
|
|
3
3
|
}, never>;
|
|
4
|
-
export declare const UpsellContainer: import("styled-components").StyledComponent<import("react").
|
|
4
|
+
export declare const UpsellContainer: import("styled-components").StyledComponent<import("react").NamedExoticComponent<import("../Container/Container.types").ContainerProps>, import("styled-components").DefaultTheme, {
|
|
5
5
|
imageCarouselFullScreen?: boolean;
|
|
6
6
|
}, never>;
|
|
7
7
|
export declare const ProductSection: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
@@ -44,7 +44,7 @@ export declare const DescriptionIconWrap: import("styled-components").StyledComp
|
|
|
44
44
|
export declare const BREADCRUMBS_HEIGHT: number;
|
|
45
45
|
export declare const LAYOUT_DIVIDER_HEIGHT = 1;
|
|
46
46
|
export declare const ProductLayoutDivider: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
47
|
-
export declare const ProductLayoutContainer: import("styled-components").StyledComponent<import("react").
|
|
47
|
+
export declare const ProductLayoutContainer: import("styled-components").StyledComponent<import("react").NamedExoticComponent<import("../Container/Container.types").ContainerProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
48
48
|
export declare const ProductLayoutBreadcrumbs: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../Breadcrumbs/Breadcrumbs.types").BreadcrumbsProps & import("react").RefAttributes<HTMLDivElement | null>>, import("styled-components").DefaultTheme, {
|
|
49
49
|
showDivider?: boolean;
|
|
50
50
|
}, never>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const Container: import("styled-components").StyledComponent<import("react").
|
|
1
|
+
export declare const Container: import("styled-components").StyledComponent<import("react").NamedExoticComponent<import("../Container/Container.types").ContainerProps>, import("styled-components").DefaultTheme, {
|
|
2
2
|
imageCarouselFullScreen?: boolean;
|
|
3
3
|
}, never>;
|
|
4
|
-
export declare const UpsellContainer: import("styled-components").StyledComponent<import("react").
|
|
4
|
+
export declare const UpsellContainer: import("styled-components").StyledComponent<import("react").NamedExoticComponent<import("../Container/Container.types").ContainerProps>, import("styled-components").DefaultTheme, {
|
|
5
5
|
imageCarouselFullScreen?: boolean;
|
|
6
6
|
}, never>;
|
|
7
7
|
export declare const ProductSection: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
@@ -41,7 +41,7 @@ export declare const TopologyScheme: import("styled-components").StyledComponent
|
|
|
41
41
|
export declare const DescriptionItem: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
42
42
|
export declare const DescriptionIconCircle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
43
43
|
export declare const DescriptionIconWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
44
|
-
export declare const ProductLayoutContainer: import("styled-components").StyledComponent<import("react").
|
|
44
|
+
export declare const ProductLayoutContainer: import("styled-components").StyledComponent<import("react").NamedExoticComponent<import("../Container/Container.types").ContainerProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
45
45
|
export declare const ProductLayoutHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
46
46
|
export declare const ProductLayoutTitle: import("styled-components").StyledComponent<"h1", import("styled-components").DefaultTheme, {}, never>;
|
|
47
47
|
export declare const ProductLayoutDescription: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Props } from "./LoaderDots.types";
|
|
2
|
-
export declare const LoaderDots: ({ size
|
|
2
|
+
export declare const LoaderDots: ({ size }: Props) => JSX.Element;
|
|
@@ -14,12 +14,10 @@ function _interopDefault(e) {
|
|
|
14
14
|
var LoaderDotsSvg__default = /*#__PURE__*/_interopDefault(LoaderDotsSvg);
|
|
15
15
|
"use strict";
|
|
16
16
|
const LoaderDots = function LoaderDots2({
|
|
17
|
-
size = "medium"
|
|
18
|
-
color
|
|
17
|
+
size = "medium"
|
|
19
18
|
}) {
|
|
20
19
|
return /* @__PURE__ */jsxRuntime.jsx(LoaderDots_styles.Wrap, {
|
|
21
20
|
size,
|
|
22
|
-
color,
|
|
23
21
|
children: /* @__PURE__ */jsxRuntime.jsx(StyleableSvgImage.StyleableSvgImage, {
|
|
24
22
|
src: LoaderDotsSvg__default["default"],
|
|
25
23
|
width: LoaderDots_styles.SIZES[size].width,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoaderDots.js","sources":["../../../src/components/LoaderDots/LoaderDots.tsx"],"sourcesContent":["import LoaderDotsSvg from \"../../assets/indicators/loaderDots.svg\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport * as S from \"./LoaderDots.styles\";\nimport type { Props } from \"./LoaderDots.types\";\n\nexport const LoaderDots = function LoaderDots({
|
|
1
|
+
{"version":3,"file":"LoaderDots.js","sources":["../../../src/components/LoaderDots/LoaderDots.tsx"],"sourcesContent":["import LoaderDotsSvg from \"../../assets/indicators/loaderDots.svg\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport * as S from \"./LoaderDots.styles\";\nimport type { Props } from \"./LoaderDots.types\";\n\nexport const LoaderDots = function LoaderDots({ size = \"medium\" }: Props) {\n return (\n <S.Wrap size={size}>\n <StyleableSvgImage\n src={LoaderDotsSvg}\n width={S.SIZES[size].width}\n height={S.SIZES[size].height}\n />\n </S.Wrap>\n );\n};\n"],"names":["LoaderDots","size","jsx","S.Wrap","Wrap","children","StyleableSvgImage","src","LoaderDotsSvg","width","S.SIZES","height"],"mappings":";;;;;;;;;;;;;;;AAKO,MAAMA,aAAa,SAASA,WAAAA,CAAW;EAAEC,IAAA,GAAO;CAAmB,EAAA;EACxE,OAAA,eACGC,UAAA,CAAAA,GAAA,CAAAC,iBAAA,CAAAC,IAAA,EAAA;IAAOH,IACN;IAAAI,QAAA,EAAA,eAAAH,UAAA,CAAAA,GAAA,CAACI,iBAAA,CAAAA,iBAAA,EAAA;MACCC,GAAK,EAAAC,sBAAA,CAAA,SAAA,CAAA;MACLC,KAAO,EAAAC,iBAAAA,CAAAA,KAAQ,CAAAT,IAAI,CAAE,CAAAQ,KAAA;MACrBE,MAAQ,EAAAD,iBAAAA,CAAAA,KAAQ,CAAAT,IAAI,CAAE,CAAAU;IAAA,CAE1B;EAAA,CAAA,CAAA;AAEJ,CAAA;"}
|
|
@@ -6,12 +6,10 @@ import { StyleableSvgImage } from '../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
|
6
6
|
import LoaderDotsSvg__default from "../../assets/loaderDots.svg";
|
|
7
7
|
"use strict";
|
|
8
8
|
const LoaderDots = function LoaderDots2({
|
|
9
|
-
size = "medium"
|
|
10
|
-
color
|
|
9
|
+
size = "medium"
|
|
11
10
|
}) {
|
|
12
11
|
return /* @__PURE__ */jsx(Wrap, {
|
|
13
12
|
size,
|
|
14
|
-
color,
|
|
15
13
|
children: /* @__PURE__ */jsx(StyleableSvgImage, {
|
|
16
14
|
src: LoaderDotsSvg__default,
|
|
17
15
|
width: SIZES[size].width,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoaderDots.mjs","sources":["../../../src/components/LoaderDots/LoaderDots.tsx"],"sourcesContent":["import LoaderDotsSvg from \"../../assets/indicators/loaderDots.svg\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport * as S from \"./LoaderDots.styles\";\nimport type { Props } from \"./LoaderDots.types\";\n\nexport const LoaderDots = function LoaderDots({
|
|
1
|
+
{"version":3,"file":"LoaderDots.mjs","sources":["../../../src/components/LoaderDots/LoaderDots.tsx"],"sourcesContent":["import LoaderDotsSvg from \"../../assets/indicators/loaderDots.svg\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport * as S from \"./LoaderDots.styles\";\nimport type { Props } from \"./LoaderDots.types\";\n\nexport const LoaderDots = function LoaderDots({ size = \"medium\" }: Props) {\n return (\n <S.Wrap size={size}>\n <StyleableSvgImage\n src={LoaderDotsSvg}\n width={S.SIZES[size].width}\n height={S.SIZES[size].height}\n />\n </S.Wrap>\n );\n};\n"],"names":["LoaderDots","size","jsx","S.Wrap","children","StyleableSvgImage","src","LoaderDotsSvg","width","S.SIZES","height"],"mappings":";;;;;;;AAKO,MAAMA,aAAa,SAASA,WAAAA,CAAW;EAAEC,IAAA,GAAO;CAAmB,EAAA;EACxE,OAAA,eACGC,GAAA,CAAAC,IAAA,EAAA;IAAOF,IACN;IAAAG,QAAA,EAAA,eAAAF,GAAA,CAACG,iBAAA,EAAA;MACCC,GAAK,EAAAC,sBAAA;MACLC,KAAO,EAAAC,KAAQ,CAAAR,IAAI,CAAE,CAAAO,KAAA;MACrBE,MAAQ,EAAAD,KAAQ,CAAAR,IAAI,CAAE,CAAAS;IAAA,CAE1B;EAAA,CAAA,CAAA;AAEJ,CAAA;"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { LoaderDotsSize } from "./LoaderDots.types";
|
|
2
2
|
export declare const SIZES: Record<LoaderDotsSize, {
|
|
3
3
|
width: number;
|
|
4
4
|
height: number;
|
|
5
5
|
}>;
|
|
6
6
|
export declare const Wrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
7
7
|
size: LoaderDotsSize;
|
|
8
|
-
color?: LoaderDotsColor;
|
|
9
8
|
}, never>;
|
|
@@ -21,17 +21,7 @@ const SIZES = {
|
|
|
21
21
|
};
|
|
22
22
|
const Wrap = styled__default["default"].div`
|
|
23
23
|
display: block;
|
|
24
|
-
color: ${
|
|
25
|
-
color
|
|
26
|
-
}) => {
|
|
27
|
-
if (!color) return theme.theme.colors.white;
|
|
28
|
-
switch (color) {
|
|
29
|
-
case "white":
|
|
30
|
-
return theme.theme.colors.white;
|
|
31
|
-
case "primaryBlue":
|
|
32
|
-
return theme.theme.colors.primaryBlue;
|
|
33
|
-
}
|
|
34
|
-
}};
|
|
24
|
+
color: ${theme.theme.colors.white};
|
|
35
25
|
width: ${({
|
|
36
26
|
size
|
|
37
27
|
}) => SIZES[size].width}px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoaderDots.styles.js","sources":["../../../src/components/LoaderDots/LoaderDots.styles.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nimport { theme } from \"../../constants/theme\";\nimport type {
|
|
1
|
+
{"version":3,"file":"LoaderDots.styles.js","sources":["../../../src/components/LoaderDots/LoaderDots.styles.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nimport { theme } from \"../../constants/theme\";\nimport type { LoaderDotsSize } from \"./LoaderDots.types\";\n\nexport const SIZES: Record<\n LoaderDotsSize,\n {\n width: number;\n height: number;\n }\n> = {\n large: {\n width: 36,\n height: 36,\n },\n medium: {\n width: 18,\n height: 18,\n },\n};\n\nexport const Wrap = styled.div<{ size: LoaderDotsSize }>`\n display: block;\n color: ${theme.colors.white};\n width: ${({ size }) => SIZES[size].width}px;\n height: ${({ size }) => SIZES[size].height}px;\n`;\n"],"names":["SIZES","large","width","height","medium","Wrap","styled","div","theme","colors","white","size"],"mappings":";;;;;;;;;;;AAKO,MAAMA,KAMT,GAAA;EACFC,KAAO,EAAA;IACLC,KAAO,EAAA,EAAA;IACPC,MAAQ,EAAA;EACV,CAAA;EACAC,MAAQ,EAAA;IACNF,KAAO,EAAA,EAAA;IACPC,MAAQ,EAAA;EACV;AACF,CAAA;AAEO,MAAME,OAAOC,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA,WAEhBC,KAAA,CAAAA,KAAA,CAAMC,OAAOC,KAAK;AAAA,WAClB,CAAC;EAAEC;MAAWX,KAAM,CAAAW,IAAI,EAAET,KAAK;AAAA,YAC9B,CAAC;EAAES;MAAWX,KAAM,CAAAW,IAAI,EAAER,MAAM;AAAA,CAAA;;"}
|
|
@@ -13,17 +13,7 @@ const SIZES = {
|
|
|
13
13
|
};
|
|
14
14
|
const Wrap = styled.div`
|
|
15
15
|
display: block;
|
|
16
|
-
color: ${
|
|
17
|
-
color
|
|
18
|
-
}) => {
|
|
19
|
-
if (!color) return theme.colors.white;
|
|
20
|
-
switch (color) {
|
|
21
|
-
case "white":
|
|
22
|
-
return theme.colors.white;
|
|
23
|
-
case "primaryBlue":
|
|
24
|
-
return theme.colors.primaryBlue;
|
|
25
|
-
}
|
|
26
|
-
}};
|
|
16
|
+
color: ${theme.colors.white};
|
|
27
17
|
width: ${({
|
|
28
18
|
size
|
|
29
19
|
}) => SIZES[size].width}px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoaderDots.styles.mjs","sources":["../../../src/components/LoaderDots/LoaderDots.styles.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nimport { theme } from \"../../constants/theme\";\nimport type {
|
|
1
|
+
{"version":3,"file":"LoaderDots.styles.mjs","sources":["../../../src/components/LoaderDots/LoaderDots.styles.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nimport { theme } from \"../../constants/theme\";\nimport type { LoaderDotsSize } from \"./LoaderDots.types\";\n\nexport const SIZES: Record<\n LoaderDotsSize,\n {\n width: number;\n height: number;\n }\n> = {\n large: {\n width: 36,\n height: 36,\n },\n medium: {\n width: 18,\n height: 18,\n },\n};\n\nexport const Wrap = styled.div<{ size: LoaderDotsSize }>`\n display: block;\n color: ${theme.colors.white};\n width: ${({ size }) => SIZES[size].width}px;\n height: ${({ size }) => SIZES[size].height}px;\n`;\n"],"names":["SIZES","large","width","height","medium","Wrap","styled","div","theme","colors","white","size"],"mappings":";;;AAKO,MAAMA,KAMT,GAAA;EACFC,KAAO,EAAA;IACLC,KAAO,EAAA,EAAA;IACPC,MAAQ,EAAA;EACV,CAAA;EACAC,MAAQ,EAAA;IACNF,KAAO,EAAA,EAAA;IACPC,MAAQ,EAAA;EACV;AACF,CAAA;AAEO,MAAME,OAAOC,MAAO,CAAAC,GAAA;AAAA;AAAA,WAEhBC,KAAA,CAAMC,OAAOC,KAAK;AAAA,WAClB,CAAC;EAAEC;MAAWX,KAAM,CAAAW,IAAI,EAAET,KAAK;AAAA,YAC9B,CAAC;EAAES;MAAWX,KAAM,CAAAW,IAAI,EAAER,MAAM;AAAA,CAAA;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var react = require('react');
|
|
5
5
|
require('../../../contexts/MenuContext/index.js');
|
|
6
6
|
var MeetUniFiVideoPlayer_helpers = require('../MeetUniFiVideoPlayer.helpers.js');
|
|
7
7
|
var EpisodeCard_styles = require('./EpisodeCard.styles.js');
|
|
@@ -16,20 +16,20 @@ const EpisodeCard = ({
|
|
|
16
16
|
const {
|
|
17
17
|
languageDirection
|
|
18
18
|
} = context.useMenu();
|
|
19
|
-
const videoRef =
|
|
20
|
-
const [videoShouldPlay, setVideoShouldPlay] =
|
|
21
|
-
const [videoLoaded, setVideoLoaded] =
|
|
22
|
-
const handleMouseOver =
|
|
19
|
+
const videoRef = react.useRef(null);
|
|
20
|
+
const [videoShouldPlay, setVideoShouldPlay] = react.useState(false);
|
|
21
|
+
const [videoLoaded, setVideoLoaded] = react.useState(false);
|
|
22
|
+
const handleMouseOver = react.useCallback(() => {
|
|
23
23
|
setVideoShouldPlay(true);
|
|
24
24
|
videoRef.current?.play();
|
|
25
25
|
onMouseOver?.();
|
|
26
26
|
}, [onMouseOver]);
|
|
27
|
-
const handleMouseOut =
|
|
27
|
+
const handleMouseOut = react.useCallback(() => {
|
|
28
28
|
setVideoShouldPlay(false);
|
|
29
29
|
videoRef.current?.pause();
|
|
30
30
|
onMouseOut?.();
|
|
31
31
|
}, [onMouseOut]);
|
|
32
|
-
const handleOnClick =
|
|
32
|
+
const handleOnClick = react.useCallback(() => {
|
|
33
33
|
onClick?.(episode.id);
|
|
34
34
|
}, [episode.id, onClick]);
|
|
35
35
|
return /* @__PURE__ */jsxRuntime.jsxs(EpisodeCard_styles.Container, {
|