@ubnt/store.core 9.61.0 → 9.61.1-new-design
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 +137 -1
- package/lib/_virtual/_virtual_multi-entry.js +13 -10
- package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
- package/lib/_virtual/_virtual_multi-entry.mjs +13 -11
- package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
- package/lib/apis/smartcat.d.ts +12 -2
- package/lib/apis/smartcat.js +27 -4
- package/lib/apis/smartcat.js.map +1 -1
- package/lib/apis/smartcat.mjs +27 -4
- package/lib/apis/smartcat.mjs.map +1 -1
- package/lib/assets/cart-secondary.svg +5 -0
- package/lib/assets/close2.svg +3 -2
- package/lib/assets/close3.svg +2 -3
- package/lib/assets/icon-location-pin.svg +5 -0
- package/lib/assets/icons/cart-secondary.svg.js +27 -0
- package/lib/assets/icons/cart-secondary.svg.js.map +1 -0
- package/lib/assets/icons/cart-secondary.svg.mjs +3 -0
- package/lib/assets/icons/cart-secondary.svg.mjs.map +1 -0
- package/lib/assets/icons/menu/{icon-globe.svg.js → icon-location-pin.svg.js} +6 -6
- package/lib/assets/icons/menu/icon-location-pin.svg.js.map +1 -0
- package/lib/assets/icons/menu/icon-location-pin.svg.mjs +3 -0
- package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +1 -0
- package/lib/assets/logoUnifi.svg +10 -2
- package/lib/assets/pause.svg +3 -3
- package/lib/assets/pause2.svg +3 -3
- package/lib/assets/poe2.svg +3 -2
- package/lib/assets/poe3.svg +2 -3
- package/lib/assets/port.svg +4 -2
- package/lib/assets/port2.svg +2 -4
- package/lib/assets/ucgMax.jpg +0 -0
- package/lib/assets/ucgMax2.jpg +0 -0
- package/lib/assets/ucgUltra.jpg +0 -0
- package/lib/assets/ucgUltra2.jpg +0 -0
- package/lib/assets/udmPro.jpg +0 -0
- package/lib/assets/udmPro2.jpg +0 -0
- package/lib/assets/udmProMax.jpg +0 -0
- package/lib/assets/udmProMax2.jpg +0 -0
- package/lib/assets/udmProSpecial.jpg +0 -0
- package/lib/assets/udmProSpecial2.jpg +0 -0
- package/lib/components/Accordion/Accordion.js +4 -4
- package/lib/components/Avatar/Avatar.js +2 -2
- package/lib/components/BackInStock/BackInStock.types.d.ts +1 -0
- package/lib/components/Button/Button.js +12 -5
- package/lib/components/Button/Button.js.map +1 -1
- package/lib/components/Button/Button.mjs +8 -1
- package/lib/components/Button/Button.mjs.map +1 -1
- package/lib/components/Button/CartButton.d.ts +3 -1
- package/lib/components/Button/CartButton.js +11 -6
- package/lib/components/Button/CartButton.js.map +1 -1
- package/lib/components/Button/CartButton.mjs +8 -4
- package/lib/components/Button/CartButton.mjs.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.js +16 -9
- package/lib/components/ButtonGroup/ButtonGroup.js.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.mjs +16 -9
- package/lib/components/ButtonGroup/ButtonGroup.mjs.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.styles.d.ts +10 -6
- package/lib/components/ButtonGroup/ButtonGroup.styles.js +60 -20
- package/lib/components/ButtonGroup/ButtonGroup.styles.js.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.styles.mjs +60 -20
- package/lib/components/ButtonGroup/ButtonGroup.styles.mjs.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.types.d.ts +5 -0
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.d.ts +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js +16 -4
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs +17 -5
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.d.ts +5 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js +82 -17
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs +82 -17
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.types.d.ts +4 -0
- package/lib/components/ButtonGroupBasic/index.stories.d.ts +6 -0
- package/lib/components/CardSection/Card/Card.js +7 -6
- package/lib/components/CardSection/Card/Card.js.map +1 -1
- package/lib/components/CardSection/Card/Card.mjs +1 -0
- package/lib/components/CardSection/Card/Card.mjs.map +1 -1
- 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 +4 -2
- package/lib/components/CategoryTabs/CategoryTabs.styles.js +8 -5
- package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +7 -6
- 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 +5 -4
- package/lib/components/Container/Container.js.map +1 -1
- package/lib/components/Container/Container.mjs +5 -4
- 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 +30 -20
- package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
- package/lib/components/Header/AccountMenu/AccountMenu.mjs +13 -3
- 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.stories.d.ts +111 -0
- package/lib/components/Header/Header.styles.d.ts +7 -12
- package/lib/components/Header/Header.styles.js +10 -32
- package/lib/components/Header/Header.styles.js.map +1 -1
- package/lib/components/Header/Header.styles.mjs +10 -31
- package/lib/components/Header/Header.styles.mjs.map +1 -1
- package/lib/components/Header/Header.types.d.ts +29 -5
- package/lib/components/Header/Header.types.js +2 -1
- package/lib/components/Header/Header.types.js.map +1 -1
- package/lib/components/Header/Header.types.mjs +2 -1
- package/lib/components/Header/Header.types.mjs.map +1 -1
- package/lib/components/Header/IsolatedHeader.d.ts +1 -0
- package/lib/components/Header/IsolatedHeader.js +50 -50
- package/lib/components/Header/IsolatedHeader.js.map +1 -1
- package/lib/components/Header/IsolatedHeader.mjs +47 -46
- package/lib/components/Header/IsolatedHeader.mjs.map +1 -1
- package/lib/components/Header/LanguageFrame/LanguageFrame.js +6 -6
- package/lib/components/Header/LogoIcon/LogoIcon.d.ts +7 -0
- package/lib/components/Header/LogoIcon/LogoIcon.js +46 -0
- package/lib/components/Header/LogoIcon/LogoIcon.js.map +1 -0
- package/lib/components/Header/LogoIcon/LogoIcon.mjs +36 -0
- package/lib/components/Header/LogoIcon/LogoIcon.mjs.map +1 -0
- package/lib/components/Header/LogoIcon/index.d.ts +1 -0
- package/lib/components/Header/LogoIcon/index.js +6 -0
- package/lib/components/Header/LogoIcon/index.js.map +1 -0
- package/lib/components/Header/LogoIcon/index.mjs +3 -0
- package/lib/components/Header/LogoIcon/index.mjs.map +1 -0
- 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 +1 -0
- 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 +116 -109
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +111 -104
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +9 -0
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +15 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +13 -2
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +12 -6
- package/lib/components/Header/Overlay/Overlay.js +3 -3
- package/lib/components/Header/ProHeader/ProHeader.d.ts +9 -5
- package/lib/components/Header/ProHeader/ProHeader.js +270 -189
- package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.mjs +251 -171
- package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +30 -25
- package/lib/components/Header/ProHeader/ProHeader.styles.js +119 -66
- package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs +112 -65
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
- package/lib/components/Header/translations/ar.json.js +4 -1
- package/lib/components/Header/translations/ar.json.js.map +1 -1
- package/lib/components/Header/translations/ar.json.mjs +4 -2
- package/lib/components/Header/translations/ar.json.mjs.map +1 -1
- package/lib/components/Header/translations/de.json.js +4 -1
- package/lib/components/Header/translations/de.json.js.map +1 -1
- package/lib/components/Header/translations/de.json.mjs +4 -2
- package/lib/components/Header/translations/de.json.mjs.map +1 -1
- package/lib/components/Header/translations/el.json.js +4 -1
- package/lib/components/Header/translations/el.json.js.map +1 -1
- package/lib/components/Header/translations/el.json.mjs +4 -2
- package/lib/components/Header/translations/el.json.mjs.map +1 -1
- package/lib/components/Header/translations/en.json.js +7 -1
- package/lib/components/Header/translations/en.json.js.map +1 -1
- package/lib/components/Header/translations/en.json.mjs +6 -2
- package/lib/components/Header/translations/en.json.mjs.map +1 -1
- package/lib/components/Header/translations/es.json.js +4 -1
- package/lib/components/Header/translations/es.json.js.map +1 -1
- package/lib/components/Header/translations/es.json.mjs +4 -2
- package/lib/components/Header/translations/es.json.mjs.map +1 -1
- package/lib/components/Header/translations/fr.json.js +4 -1
- package/lib/components/Header/translations/fr.json.js.map +1 -1
- package/lib/components/Header/translations/fr.json.mjs +4 -2
- package/lib/components/Header/translations/fr.json.mjs.map +1 -1
- package/lib/components/Header/translations/it.json.js +4 -1
- package/lib/components/Header/translations/it.json.js.map +1 -1
- package/lib/components/Header/translations/it.json.mjs +4 -2
- package/lib/components/Header/translations/it.json.mjs.map +1 -1
- package/lib/components/Header/translations/ja.json.js +4 -1
- package/lib/components/Header/translations/ja.json.js.map +1 -1
- package/lib/components/Header/translations/ja.json.mjs +4 -2
- package/lib/components/Header/translations/ja.json.mjs.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.js +4 -1
- package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.mjs +4 -2
- package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.js +4 -1
- package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.mjs +4 -2
- package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.js +4 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.mjs +4 -2
- 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 +3 -1
- package/lib/components/LoaderDots/LoaderDots.js.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.mjs +3 -1
- package/lib/components/LoaderDots/LoaderDots.mjs.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.styles.d.ts +2 -1
- package/lib/components/LoaderDots/LoaderDots.styles.js +11 -1
- package/lib/components/LoaderDots/LoaderDots.styles.js.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.styles.mjs +11 -1
- package/lib/components/LoaderDots/LoaderDots.styles.mjs.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.types.d.ts +2 -0
- 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/assets/Consoles/bigCompare/ucgMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/poe.svg.js +1 -1
- package/lib/components/ModelCompareV3/assets/poe.svg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/port.svg.js +1 -1
- package/lib/components/ModelCompareV3/assets/port.svg.mjs +2 -2
- package/lib/components/ModelCompareV3/data/CloudGateways.js +15 -15
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +10 -10
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js +4 -2
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs +4 -2
- 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 +4 -2
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs +4 -2
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayLite.js +4 -2
- package/lib/components/ModelCompareV3/data/products/gatewayLite.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs +4 -2
- package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayMax.js +4 -2
- package/lib/components/ModelCompareV3/data/products/gatewayMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayMax.mjs +4 -2
- package/lib/components/ModelCompareV3/data/products/gatewayMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js +4 -2
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs +4 -2
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.js +3 -1
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.mjs +3 -1
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.js +2 -2
- package/lib/components/ModelCompareV3/data/products/ucgMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +2 -2
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js +4 -4
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +4 -4
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.js +4 -4
- package/lib/components/ModelCompareV3/data/products/udmPro.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs +4 -4
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.js +4 -4
- package/lib/components/ModelCompareV3/data/products/udmProMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +4 -4
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +4 -4
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +4 -4
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr.js +5 -41
- package/lib/components/ModelCompareV3/data/products/udr.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr.mjs +5 -21
- 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/ModelCompareV3/data/properties/powerMethodPoe.js +1 -1
- package/lib/components/ModelCompareV3/data/properties/powerMethodPoe.mjs +1 -1
- package/lib/components/ModelCompareV3/data/properties/readerPowerMethod.js +1 -1
- package/lib/components/ModelCompareV3/data/properties/readerPowerMethod.mjs +1 -1
- package/lib/components/ModelCompareV3/data/properties/redundantRj45Port.js +1 -1
- package/lib/components/ModelCompareV3/data/properties/redundantRj45Port.mjs +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/ProductTechSpecsV2/ProductTechSpecs.d.ts +2 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js +79 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs +71 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.stories.d.ts +5 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.d.ts +11 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +86 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +72 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.types.d.ts +12 -0
- package/lib/components/ProductTechSpecsV2/index.d.ts +1 -0
- package/lib/components/ProductTechSpecsV2/index.js +6 -0
- package/lib/components/ProductTechSpecsV2/index.js.map +1 -0
- package/lib/components/ProductTechSpecsV2/index.mjs +3 -0
- package/lib/components/ProductTechSpecsV2/index.mjs.map +1 -0
- 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 +6 -1
- package/lib/components/QuantityInput/QuantityInput.js.map +1 -1
- package/lib/components/QuantityInput/QuantityInput.mjs +6 -1
- 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 +5 -5
- 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/ProgressBarChart/ProgressBarChart.js +7 -7
- 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 +4 -4
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/poe.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/poe.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/port.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/port.svg.mjs +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 +34 -26
- package/lib/components/ScrollWrapper/ScrollWrapper.js.map +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.mjs +16 -8
- package/lib/components/ScrollWrapper/ScrollWrapper.mjs.map +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.types.d.ts +2 -0
- 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 +0 -1
- package/lib/components/Search/Input/Input.styles.js.map +1 -1
- package/lib/components/Search/Input/Input.styles.mjs +0 -1
- package/lib/components/Search/Input/Input.styles.mjs.map +1 -1
- package/lib/components/Search/Input/Input.types.d.ts +3 -2
- 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 +1 -0
- package/lib/components/index.js +2 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/index.mjs +2 -0
- 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 +17 -0
- package/lib/constants/proStoreCategories/mapping/filters.js +17 -0
- package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/filters.mjs +17 -0
- package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.d.ts +4 -2
- package/lib/constants/proStoreCategories/mapping/index.js +50 -51
- 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 +5 -0
- package/lib/constants/proStoreCategories/mapping/redirects.js +18 -3
- package/lib/constants/proStoreCategories/mapping/redirects.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/redirects.mjs +18 -3
- 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 +7 -3
- package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.mjs +7 -4
- package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.mjs +7 -4
- package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.mjs +7 -4
- package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs +7 -4
- package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.mjs +7 -4
- package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +7 -4
- package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.mjs +7 -4
- package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.mjs +7 -4
- package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +7 -4
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +7 -4
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +7 -4
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/constants/proStoreFilters/mapping.d.ts +55 -3
- package/lib/constants/proStoreFilters/mapping.js +140 -10
- package/lib/constants/proStoreFilters/mapping.js.map +1 -1
- package/lib/constants/proStoreFilters/mapping.mjs +140 -10
- package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
- package/lib/constants/theme.js +4 -0
- package/lib/constants/theme.js.map +1 -1
- package/lib/constants/theme.mjs +4 -0
- 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 +1 -0
- 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 +8 -0
- package/lib/helpers/ux.js +15 -0
- package/lib/helpers/ux.js.map +1 -1
- package/lib/helpers/ux.mjs +15 -1
- 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/icons/menu/icon-globe.svg.js.map +0 -1
- package/lib/assets/icons/menu/icon-globe.svg.mjs +0 -3
- package/lib/assets/icons/menu/icon-globe.svg.mjs.map +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import { LineLoader } from '@ubnt/ui-components/LineLoader';
|
|
1
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
3
2
|
import merge from 'lodash/merge';
|
|
4
3
|
import { memo, useRef, useState, useMemo, useEffect, useCallback } from 'react';
|
|
5
4
|
import { useMedia, useClickAway } from 'react-use';
|
|
@@ -11,22 +10,25 @@ import { BREAKPOINTS } from '../../../constants/layout.mjs';
|
|
|
11
10
|
import '../../../contexts/MenuContext/index.mjs';
|
|
12
11
|
import { SiteId } from '../../../contexts/MenuContext/mapping.mjs';
|
|
13
12
|
import { ModalId } from '../../../contexts/MenuContext/types.mjs';
|
|
13
|
+
import { getTrueSize } from '../../../helpers/ux.mjs';
|
|
14
14
|
import '../../../hooks/index.mjs';
|
|
15
15
|
import '../../../types/index.mjs';
|
|
16
16
|
import { imageSrc } from '../../../utils/asset.mjs';
|
|
17
17
|
import { checkUnreachable } from '../../../utils/errors.mjs';
|
|
18
18
|
import '../../MobileModal/index.mjs';
|
|
19
|
-
import '../../
|
|
19
|
+
import '../../ScrollWrapper/index.mjs';
|
|
20
20
|
import '../../Tooltip/index.mjs';
|
|
21
21
|
import '../AccountFrame/index.mjs';
|
|
22
22
|
import '../AccountFrame/Mobile/index.mjs';
|
|
23
|
-
import { SkeletonCircleLoader, HEADER_ICON_SIZE, SvgIcon, HeaderWrap, Container, Anchor, SiteTitleWrap, LogoIconWrap, CartIcon, ModalWrap, ModalInnerWrap } from '../Header.styles.mjs';
|
|
23
|
+
import { SkeletonCircleLoader, HEADER_ICON_SIZE, SvgIcon, HeaderWrap, Container, Anchor, SiteTitleWrap, LogoIconWrap, MenuItemLabel, CartIcon, ModalWrap, ModalInnerWrap } from '../Header.styles.mjs';
|
|
24
24
|
import { defaultHeaderTranslations } from '../Header.types.mjs';
|
|
25
25
|
import '../LanguageFrame/index.mjs';
|
|
26
26
|
import '../LanguageFrame/Mobile/index.mjs';
|
|
27
|
+
import '../LogoIcon/index.mjs';
|
|
28
|
+
import '../MenuItem/index.mjs';
|
|
27
29
|
import '../Navigation/ProMobileMenu/index.mjs';
|
|
28
30
|
import '../translations/index.mjs';
|
|
29
|
-
import { ProIconWrap, AvatarWrap, ProHeaderWrap,
|
|
31
|
+
import { WRAP_GAP, ProIconWrap, AvatarWrap, ProHeaderWrap, ProHeader as ProHeader$1, Wrap, LeftWrap, CurrentStoreWrap, CurrentStoreFlag, CenterWrap, SearchWrap, Search, SearchCancel, InlineCategoryWrap, CATEGORY_ITEMS_GAP, RightWrap, ProductLineSelectorWrap, ProIconInnerFillWrap, VerticalDivider, LineLoader } from './ProHeader.styles.mjs';
|
|
30
32
|
import { ProductLine } from '../../../types/generated.mjs';
|
|
31
33
|
import { useMenu } from '../../../contexts/MenuContext/context.mjs';
|
|
32
34
|
import { useTranslation } from '../../../hooks/useTranslation.mjs';
|
|
@@ -34,8 +36,9 @@ import EN_TRANSLATION from '../translations/en.json.mjs';
|
|
|
34
36
|
import { Language } from '../../../types/constants.mjs';
|
|
35
37
|
import NoUserAvatar__default from "../../../assets/no-user-avatar.png";
|
|
36
38
|
import _externalAssets_CtJIOg_A__default from "../../../assets/account.svg";
|
|
37
|
-
import {
|
|
38
|
-
import
|
|
39
|
+
import { HeaderLogoIcon } from '../LogoIcon/LogoIcon.mjs';
|
|
40
|
+
import { ScrollWrapper } from '../../ScrollWrapper/ScrollWrapper.mjs';
|
|
41
|
+
import { MenuItem } from '../MenuItem/MenuItem.mjs';
|
|
39
42
|
import _externalAssets_g50k1DIN__default from "../../../assets/search.svg";
|
|
40
43
|
import { Tooltip } from '../../Tooltip/Tooltip.mjs';
|
|
41
44
|
import _externalAssets_DJH57LL8__default from "../../../assets/globe.svg";
|
|
@@ -50,7 +53,9 @@ import { AccountFrameMobile } from '../AccountFrame/Mobile/Mobile.mjs';
|
|
|
50
53
|
import { AccountFrame } from '../AccountFrame/AccountFrame.mjs';
|
|
51
54
|
import { NavigationProMobileMenu } from '../Navigation/ProMobileMenu/ProMobileMenu.mjs';
|
|
52
55
|
"use strict";
|
|
53
|
-
const
|
|
56
|
+
const PRO_HEADER_MOBILE_UP = BREAKPOINTS.TABLET_UP;
|
|
57
|
+
const PRO_HEADER_MOBILE_AND_DOWN = BREAKPOINTS.TABLET_AND_DOWN;
|
|
58
|
+
const DEFAULT_PRODUCT_LINE_OPTIONS = [{
|
|
54
59
|
value: ProductLine.Unifi,
|
|
55
60
|
label: "UniFi"
|
|
56
61
|
}, {
|
|
@@ -67,8 +72,9 @@ const ProHeader = memo(function ProHeader2({
|
|
|
67
72
|
onCartClick,
|
|
68
73
|
showLineLoader,
|
|
69
74
|
searchValue,
|
|
75
|
+
searchInputWidth,
|
|
76
|
+
searchInputChildren,
|
|
70
77
|
onSearch,
|
|
71
|
-
currentCountryName,
|
|
72
78
|
handleStorePickerClick,
|
|
73
79
|
earlyAccess,
|
|
74
80
|
handlePurchaseHistoryClick,
|
|
@@ -76,17 +82,22 @@ const ProHeader = memo(function ProHeader2({
|
|
|
76
82
|
handleProductLineChange,
|
|
77
83
|
handleMobileMenuClick,
|
|
78
84
|
productLineValue,
|
|
85
|
+
categories,
|
|
86
|
+
hideInlineCategories,
|
|
79
87
|
embedConfig,
|
|
80
88
|
onSearchFocus,
|
|
81
89
|
onSearchBlur,
|
|
82
90
|
onSearchClick,
|
|
83
|
-
productLineOptions =
|
|
91
|
+
productLineOptions = DEFAULT_PRODUCT_LINE_OPTIONS,
|
|
84
92
|
accountMenu,
|
|
85
|
-
onLanguageChange
|
|
93
|
+
onLanguageChange,
|
|
94
|
+
logo
|
|
86
95
|
}) {
|
|
87
|
-
const isMobile = useMedia(
|
|
96
|
+
const isMobile = useMedia(PRO_HEADER_MOBILE_AND_DOWN, false);
|
|
88
97
|
const rootRef = useRef(null);
|
|
89
|
-
const
|
|
98
|
+
const wrapRef = useRef(null);
|
|
99
|
+
const containerRef = useRef(null);
|
|
100
|
+
const [searchInputEl, setSearchInputEl] = useState(null);
|
|
90
101
|
const translations = useMemo(() => {
|
|
91
102
|
return merge(defaultHeaderTranslations, initialTranslations);
|
|
92
103
|
}, [initialTranslations]);
|
|
@@ -148,45 +159,72 @@ const ProHeader = memo(function ProHeader2({
|
|
|
148
159
|
activeModal === ModalId.ProMobileMenu
|
|
149
160
|
);
|
|
150
161
|
}, [activeModal]);
|
|
162
|
+
const [canFocusSearch, setCanFocusSearch] = useState(false);
|
|
163
|
+
useEffect(() => {
|
|
164
|
+
if (activeModal !== ModalId.Search) {
|
|
165
|
+
setCanFocusSearch(false);
|
|
166
|
+
}
|
|
167
|
+
}, [activeModal]);
|
|
168
|
+
useEffect(() => {
|
|
169
|
+
if (!canFocusSearch || activeModal !== ModalId.Search || !searchInputEl) return;
|
|
170
|
+
const interval = setInterval(() => {
|
|
171
|
+
if (document.activeElement === searchInputEl) {
|
|
172
|
+
clearInterval(interval);
|
|
173
|
+
}
|
|
174
|
+
searchInputEl.focus();
|
|
175
|
+
setCanFocusSearch(false);
|
|
176
|
+
}, 0);
|
|
177
|
+
return () => clearInterval(interval);
|
|
178
|
+
}, [activeModal, canFocusSearch, searchInputEl]);
|
|
179
|
+
const isSearching = activeModal === ModalId.Search || !!searchValue;
|
|
151
180
|
const onClickAwayFromSearchModal = useCallback(() => {
|
|
181
|
+
if (searchValue) return;
|
|
152
182
|
if (activeModal === ModalId.Search) {
|
|
153
183
|
setActiveModal(null);
|
|
154
184
|
onSearchClick?.();
|
|
155
185
|
}
|
|
156
|
-
}, [activeModal, onSearchClick, setActiveModal]);
|
|
186
|
+
}, [activeModal, onSearchClick, searchValue, setActiveModal]);
|
|
187
|
+
const [initialSearchValueHandled, setInitialSearchValueHandled] = useState(false);
|
|
188
|
+
useEffect(() => {
|
|
189
|
+
if (!initialSearchValueHandled && searchValue) {
|
|
190
|
+
setActiveModal(ModalId.Search);
|
|
191
|
+
setInitialSearchValueHandled(true);
|
|
192
|
+
}
|
|
193
|
+
}, [initialSearchValueHandled, searchValue, setActiveModal]);
|
|
157
194
|
const blurSearchInput = useCallback(() => {
|
|
158
|
-
if (!
|
|
195
|
+
if (!searchInputEl || activeModal !== ModalId.Search) {
|
|
159
196
|
return;
|
|
160
197
|
}
|
|
161
198
|
if (searchValue?.length) {
|
|
162
|
-
|
|
199
|
+
searchInputEl.blur();
|
|
163
200
|
} else {
|
|
164
201
|
onClickAwayFromSearchModal();
|
|
165
202
|
}
|
|
166
|
-
}, [activeModal, onClickAwayFromSearchModal,
|
|
203
|
+
}, [activeModal, onClickAwayFromSearchModal, searchInputEl, searchValue?.length]);
|
|
167
204
|
useClickAway(rootRef, () => {
|
|
168
205
|
onClickAwayFromSearchModal();
|
|
169
206
|
}, ["click"]);
|
|
170
|
-
const
|
|
207
|
+
const handleSearchCancel = useCallback(() => {
|
|
208
|
+
setActiveModal(null);
|
|
209
|
+
onSearch?.("");
|
|
210
|
+
}, [onSearch, setActiveModal]);
|
|
211
|
+
const handleSearchOnClear = useCallback(() => {
|
|
212
|
+
setActiveModal(ModalId.Search);
|
|
213
|
+
onSearch?.("");
|
|
214
|
+
}, [onSearch, setActiveModal]);
|
|
215
|
+
const handleSearchOnFocus = useCallback(() => {
|
|
171
216
|
setIsSearchFocused(true);
|
|
172
217
|
onSearchFocus?.();
|
|
173
218
|
}, [setIsSearchFocused, onSearchFocus]);
|
|
174
|
-
const
|
|
219
|
+
const handleSearchOnBlur = useCallback(() => {
|
|
175
220
|
setIsSearchFocused(false);
|
|
176
221
|
onSearchBlur?.();
|
|
177
222
|
}, [setIsSearchFocused, onSearchBlur]);
|
|
178
|
-
const
|
|
223
|
+
const handleOpenSearch = useCallback(e => {
|
|
179
224
|
handleModalOpen(e, ModalId.Search);
|
|
180
225
|
onSearchClick?.();
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
if (document.activeElement === searchInputRef) {
|
|
184
|
-
clearInterval(interval);
|
|
185
|
-
}
|
|
186
|
-
searchInputRef.focus();
|
|
187
|
-
}, 0);
|
|
188
|
-
}
|
|
189
|
-
}, [handleModalOpen, onSearchClick, searchInputRef]);
|
|
226
|
+
setCanFocusSearch(true);
|
|
227
|
+
}, [handleModalOpen, onSearchClick]);
|
|
190
228
|
const handleSearchValueChange = useCallback(e => {
|
|
191
229
|
onSearch?.(e.target.value);
|
|
192
230
|
}, [onSearch]);
|
|
@@ -212,7 +250,7 @@ const ProHeader = memo(function ProHeader2({
|
|
|
212
250
|
case ProductLine.Amplifi:
|
|
213
251
|
return 164;
|
|
214
252
|
default:
|
|
215
|
-
return
|
|
253
|
+
return 160;
|
|
216
254
|
}
|
|
217
255
|
}, [productLineValue]);
|
|
218
256
|
useEffect(() => {
|
|
@@ -231,12 +269,36 @@ const ProHeader = memo(function ProHeader2({
|
|
|
231
269
|
const cartQuantity = useMemo(() => {
|
|
232
270
|
return cart?.items.reduce((sum, item) => sum + item.quantity, 0) ?? 0;
|
|
233
271
|
}, [cart?.items]);
|
|
272
|
+
const homeLinkUrl = useMemo(() => {
|
|
273
|
+
return logo?.url ?? createSiteUrl([SiteId.Ui, ""]);
|
|
274
|
+
}, [createSiteUrl, logo?.url]);
|
|
234
275
|
const homeLinkClickHandler = useCallback(e => {
|
|
235
276
|
if (embedConfig?.homeLinkClickHandler) {
|
|
236
277
|
e.preventDefault();
|
|
237
278
|
embedConfig.homeLinkClickHandler();
|
|
279
|
+
return;
|
|
238
280
|
}
|
|
239
|
-
|
|
281
|
+
logo?.onClick?.(e, homeLinkUrl);
|
|
282
|
+
}, [embedConfig, homeLinkUrl, logo]);
|
|
283
|
+
useEffect(() => {
|
|
284
|
+
const containerEl = containerRef.current;
|
|
285
|
+
if (!containerEl) return;
|
|
286
|
+
const wrapEl = wrapRef.current;
|
|
287
|
+
if (!wrapEl) return;
|
|
288
|
+
const [leftEl, centerEl, rightEl] = Array.from(wrapEl.children);
|
|
289
|
+
if (!leftEl || !centerEl || !rightEl) return;
|
|
290
|
+
const handle = () => {
|
|
291
|
+
if (isMobile) {
|
|
292
|
+
centerEl.style.maxWidth = "none";
|
|
293
|
+
} else {
|
|
294
|
+
centerEl.style.maxWidth = containerEl.offsetWidth - getTrueSize(leftEl).width - getTrueSize(rightEl).width - WRAP_GAP * 2 -
|
|
295
|
+
// Remove extra 2 pixels just to be sure there's no overflow
|
|
296
|
+
2 + "px";
|
|
297
|
+
}
|
|
298
|
+
window.requestAnimationFrame(handle);
|
|
299
|
+
};
|
|
300
|
+
window.requestAnimationFrame(handle);
|
|
301
|
+
}, [isMobile]);
|
|
240
302
|
const handleAvatarClick = useCallback(e => {
|
|
241
303
|
if (embedConfig?.avatarClickHandler) {
|
|
242
304
|
embedConfig.avatarClickHandler();
|
|
@@ -273,12 +335,12 @@ const ProHeader = memo(function ProHeader2({
|
|
|
273
335
|
})
|
|
274
336
|
});
|
|
275
337
|
}, [embedConfig?.moveAvatarIconToLeft, account?.customer?.picture, account?.loading, embedConfig?.displayAvatarAsImage, embedConfig?.hideAvatarIcon, handleAvatarClick, motif]);
|
|
276
|
-
return /* @__PURE__ */
|
|
338
|
+
return /* @__PURE__ */jsx(ProHeaderWrap, {
|
|
277
339
|
ref: rootRef,
|
|
278
340
|
$sticky: !!embedConfig,
|
|
279
341
|
$disableBlur: activeModal === ModalId.Language && isMobile,
|
|
280
|
-
children:
|
|
281
|
-
children: /* @__PURE__ */jsxs(
|
|
342
|
+
children: /* @__PURE__ */jsx(HeaderWrap, {
|
|
343
|
+
children: /* @__PURE__ */jsxs(ProHeader$1, {
|
|
282
344
|
sticky: sticky || !!embedConfig,
|
|
283
345
|
isStickyEmbed: !!embedConfig,
|
|
284
346
|
className,
|
|
@@ -287,137 +349,172 @@ const ProHeader = memo(function ProHeader2({
|
|
|
287
349
|
size: embedConfig?.fullWidthHeader ? "full" : "desktop",
|
|
288
350
|
noVerticalMargin: true,
|
|
289
351
|
noPaddings: !!embedConfig?.fullWidthHeader,
|
|
352
|
+
ref: containerRef,
|
|
290
353
|
children: [/* @__PURE__ */jsxs(Wrap, {
|
|
291
|
-
|
|
354
|
+
ref: wrapRef,
|
|
355
|
+
children: [/* @__PURE__ */jsx(LeftWrap, {
|
|
292
356
|
$addSpaceOnDesktop: !!embedConfig?.fullWidthHeader,
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
357
|
+
hideBreakpoint: isSearching ? PRO_HEADER_MOBILE_AND_DOWN : void 0,
|
|
358
|
+
children: activeModal !== ModalId.ProMobileMenu && /* @__PURE__ */jsxs(Fragment, {
|
|
359
|
+
children: [!logo?.hide && !embedConfig?.hideLogo && /* @__PURE__ */jsx(Anchor, {
|
|
360
|
+
href: homeLinkUrl,
|
|
361
|
+
onClick: homeLinkClickHandler,
|
|
362
|
+
children: embedConfig?.siteTitle ? /* @__PURE__ */jsx(SiteTitleWrap, {
|
|
363
|
+
children: embedConfig.siteTitle
|
|
364
|
+
}) : /* @__PURE__ */jsx(LogoIconWrap, {
|
|
365
|
+
motif,
|
|
366
|
+
children: /* @__PURE__ */jsx(HeaderLogoIcon, {
|
|
367
|
+
productLine: logo?.productLine ?? productLineValue
|
|
368
|
+
})
|
|
305
369
|
})
|
|
306
|
-
})
|
|
307
|
-
|
|
308
|
-
hideBreakpoint: BREAKPOINTS.TABLET_AND_DOWN,
|
|
309
|
-
children: currentCountryName && /* @__PURE__ */jsx(CountryButton, {
|
|
310
|
-
"data-test-id": "country-select-btn",
|
|
311
|
-
type: "button",
|
|
370
|
+
}), embedConfig?.moveAvatarIconToLeft && avatarHtml, !!logo?.currentStore && /* @__PURE__ */jsxs(CurrentStoreWrap, {
|
|
371
|
+
hideBreakpoint: PRO_HEADER_MOBILE_AND_DOWN,
|
|
312
372
|
onClick: handleStorePickerClick,
|
|
313
|
-
children:
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
373
|
+
children: [/* @__PURE__ */jsx(CurrentStoreFlag, {
|
|
374
|
+
children: logo.currentStore.flag
|
|
375
|
+
}), logo.currentStore.name]
|
|
376
|
+
})]
|
|
377
|
+
})
|
|
378
|
+
}), /* @__PURE__ */jsx(CenterWrap, {
|
|
379
|
+
hideBreakpoint: !isSearching ? PRO_HEADER_MOBILE_AND_DOWN : void 0,
|
|
380
|
+
children: isSearching ? /* @__PURE__ */jsxs(SearchWrap, {
|
|
381
|
+
children: [/* @__PURE__ */jsx(Search, {
|
|
382
|
+
setInputRef: setSearchInputEl,
|
|
383
|
+
onValueChange: handleSearchValueChange,
|
|
384
|
+
placeholder: searchPlaceholder,
|
|
385
|
+
isSearchFocused: !!searchValue || isSearchFocused,
|
|
386
|
+
value: searchValue ?? "",
|
|
387
|
+
showCancel: !!searchValue,
|
|
388
|
+
onCancelClick: handleSearchOnClear,
|
|
389
|
+
width: searchInputWidth ?? 420,
|
|
390
|
+
onFocus: handleSearchOnFocus,
|
|
391
|
+
onBlur: handleSearchOnBlur,
|
|
392
|
+
focusedWidth: searchFocusWidth,
|
|
393
|
+
children: searchInputChildren
|
|
394
|
+
}), /* @__PURE__ */jsx(SearchCancel, {
|
|
395
|
+
onClick: handleSearchCancel,
|
|
396
|
+
children: formatMessage("Cancel")
|
|
397
|
+
})]
|
|
398
|
+
}) : /* @__PURE__ */jsx(InlineCategoryWrap, {
|
|
399
|
+
$hide: hideInlineCategories,
|
|
400
|
+
children: /* @__PURE__ */jsx(ScrollWrapper, {
|
|
401
|
+
direction: "horizontal",
|
|
402
|
+
align: "center",
|
|
403
|
+
scrollStepType: "scrollScreen",
|
|
404
|
+
fillType: "gradient",
|
|
405
|
+
gradientSize: WRAP_GAP * 4,
|
|
406
|
+
gap: CATEGORY_ITEMS_GAP,
|
|
407
|
+
activeIndex: categories.activeIndex,
|
|
408
|
+
items: categories.items.map((category, i) => ({
|
|
409
|
+
id: category.id,
|
|
410
|
+
render() {
|
|
411
|
+
const active = categories.activeIndex === i;
|
|
412
|
+
return /* @__PURE__ */jsx(MenuItem, {
|
|
413
|
+
"data-test-id": `inline-category${active ? "-selected" : ""}`,
|
|
414
|
+
as: "a",
|
|
415
|
+
href: category.url ?? "#",
|
|
416
|
+
onClick: category.onClick && category.url ? e => category.onClick?.(e, category.url) : void 0,
|
|
417
|
+
active,
|
|
418
|
+
motif,
|
|
419
|
+
children: /* @__PURE__ */jsx(MenuItemLabel, {
|
|
420
|
+
children: category.label
|
|
421
|
+
})
|
|
422
|
+
}, category.id);
|
|
423
|
+
}
|
|
424
|
+
}))
|
|
340
425
|
})
|
|
341
|
-
})
|
|
426
|
+
})
|
|
342
427
|
}), /* @__PURE__ */jsxs(RightWrap, {
|
|
343
428
|
$addSpaceOnDesktop: !!embedConfig?.fullWidthHeader,
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
429
|
+
hideBreakpoint: isSearching ? PRO_HEADER_MOBILE_AND_DOWN : void 0,
|
|
430
|
+
children: [isSearching && /* @__PURE__ */jsx(ProductLineSelectorWrap, {
|
|
431
|
+
hideBreakpoint: PRO_HEADER_MOBILE_AND_DOWN,
|
|
432
|
+
children: productLineOptions.filter(productLine => productLine.value !== productLineValue).map(productLine => /* @__PURE__ */jsx(MenuItem, {
|
|
433
|
+
motif,
|
|
434
|
+
onClick: () => handleProductLineChange?.(productLine.value),
|
|
435
|
+
children: /* @__PURE__ */jsx(MenuItemLabel, {
|
|
436
|
+
children: productLine.label
|
|
437
|
+
})
|
|
438
|
+
}, productLine.value))
|
|
439
|
+
}), activeModal !== ModalId.ProMobileMenu && !(isSearching && !isMobile) && /* @__PURE__ */jsxs(Fragment, {
|
|
440
|
+
children: [/* @__PURE__ */jsx(ProIconWrap, {
|
|
441
|
+
"data-test-id": "search-btn",
|
|
442
|
+
motif,
|
|
443
|
+
onClick: handleOpenSearch,
|
|
444
|
+
children: /* @__PURE__ */jsx(ProIconInnerFillWrap, {
|
|
445
|
+
$active: isSearching,
|
|
446
|
+
$transparent: !!embedConfig || !isMobile,
|
|
447
|
+
children: /* @__PURE__ */jsx(SvgIcon, {
|
|
448
|
+
src: _externalAssets_g50k1DIN__default,
|
|
449
|
+
width: HEADER_ICON_SIZE,
|
|
450
|
+
height: HEADER_ICON_SIZE
|
|
451
|
+
})
|
|
452
|
+
})
|
|
453
|
+
}), cart && /* @__PURE__ */jsx(ProIconWrap, {
|
|
454
|
+
motif,
|
|
455
|
+
"data-test-id": "cart-btn",
|
|
456
|
+
onClick: e => cartQuantity > 0 && handleModalOpen(e, ModalId.Cart),
|
|
457
|
+
$isDefaultCursor: cartQuantity < 1,
|
|
458
|
+
children: cart?.loading ? /* @__PURE__ */jsx(SkeletonCircleLoader, {
|
|
459
|
+
diameter: HEADER_ICON_SIZE
|
|
460
|
+
}) : cartQuantity > 0 ? /* @__PURE__ */jsx(CartIcon, {
|
|
461
|
+
itemCount: cartQuantity,
|
|
462
|
+
motif,
|
|
463
|
+
width: HEADER_ICON_SIZE,
|
|
464
|
+
height: HEADER_ICON_SIZE
|
|
465
|
+
}) : /* @__PURE__ */jsx(Tooltip, {
|
|
466
|
+
description: translations.cart.empty,
|
|
467
|
+
motif: "light",
|
|
468
|
+
isInteractive: true,
|
|
469
|
+
position: "bottom",
|
|
470
|
+
style: {
|
|
471
|
+
height: `${HEADER_ICON_SIZE}px`
|
|
472
|
+
},
|
|
473
|
+
children: /* @__PURE__ */jsx(CartIcon, {
|
|
474
|
+
itemCount: cartQuantity,
|
|
475
|
+
motif,
|
|
476
|
+
width: HEADER_ICON_SIZE,
|
|
477
|
+
height: HEADER_ICON_SIZE
|
|
478
|
+
})
|
|
479
|
+
})
|
|
480
|
+
}), !embedConfig && !handlePurchaseHistoryClick && /* @__PURE__ */jsx(VerticalDivider, {
|
|
481
|
+
hideBreakpoint: PRO_HEADER_MOBILE_AND_DOWN
|
|
482
|
+
}), isMultiLanguage && !embedConfig?.hideLanguagePicker && /* @__PURE__ */jsx(ProIconWrap, {
|
|
483
|
+
motif,
|
|
484
|
+
"data-test-id": "language-picker-btn",
|
|
485
|
+
onClick: e => handleModalOpen(e, ModalId.Language),
|
|
351
486
|
children: /* @__PURE__ */jsx(SvgIcon, {
|
|
352
|
-
src:
|
|
487
|
+
src: _externalAssets_DJH57LL8__default,
|
|
353
488
|
width: HEADER_ICON_SIZE,
|
|
354
489
|
height: HEADER_ICON_SIZE
|
|
355
490
|
})
|
|
356
|
-
})
|
|
357
|
-
|
|
358
|
-
motif,
|
|
359
|
-
"data-test-id": "cart-btn",
|
|
360
|
-
onClick: e => cartQuantity > 0 && handleModalOpen(e, ModalId.Cart),
|
|
361
|
-
$isDefaultCursor: cartQuantity < 1,
|
|
362
|
-
children: cart?.loading ? /* @__PURE__ */jsx(SkeletonCircleLoader, {
|
|
363
|
-
diameter: HEADER_ICON_SIZE
|
|
364
|
-
}) : cartQuantity > 0 ? /* @__PURE__ */jsx(CartIcon, {
|
|
365
|
-
itemCount: cartQuantity,
|
|
491
|
+
}), handlePurchaseHistoryClick && /* @__PURE__ */jsx(ProIconWrap, {
|
|
492
|
+
hideBreakpoint: PRO_HEADER_MOBILE_AND_DOWN,
|
|
366
493
|
motif,
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
motif: "light",
|
|
372
|
-
isInteractive: true,
|
|
373
|
-
position: "bottom",
|
|
374
|
-
style: {
|
|
375
|
-
height: `${HEADER_ICON_SIZE}px`
|
|
376
|
-
},
|
|
377
|
-
children: /* @__PURE__ */jsx(CartIcon, {
|
|
378
|
-
itemCount: cartQuantity,
|
|
379
|
-
motif,
|
|
494
|
+
"data-test-id": "purchase-history-btn",
|
|
495
|
+
onClick: handlePurchaseHistoryClick,
|
|
496
|
+
children: /* @__PURE__ */jsx(SvgIcon, {
|
|
497
|
+
src: HistoryIcon__default,
|
|
380
498
|
width: HEADER_ICON_SIZE,
|
|
381
499
|
height: HEADER_ICON_SIZE
|
|
382
500
|
})
|
|
383
|
-
})
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
"data-test-id": "purchase-history-btn",
|
|
399
|
-
onClick: handlePurchaseHistoryClick,
|
|
400
|
-
children: /* @__PURE__ */jsx(SvgIcon, {
|
|
401
|
-
src: HistoryIcon__default,
|
|
402
|
-
width: HEADER_ICON_SIZE,
|
|
403
|
-
height: HEADER_ICON_SIZE
|
|
404
|
-
})
|
|
405
|
-
}), earlyAccess && /* @__PURE__ */jsx(ProIconWrap, {
|
|
406
|
-
hideBreakpoint: BREAKPOINTS.TABLET_AND_DOWN,
|
|
407
|
-
motif,
|
|
408
|
-
onClick: earlyAccess.onClick,
|
|
409
|
-
children: earlyAccess.loading ? /* @__PURE__ */jsx(SkeletonCircleLoader, {
|
|
410
|
-
diameter: HEADER_ICON_SIZE
|
|
411
|
-
}) : /* @__PURE__ */jsx(SvgIcon, {
|
|
412
|
-
src: EAIcon__default,
|
|
413
|
-
width: HEADER_ICON_SIZE,
|
|
414
|
-
height: HEADER_ICON_SIZE * 0.8,
|
|
415
|
-
renderedHeight: HEADER_ICON_SIZE * 0.8
|
|
416
|
-
})
|
|
417
|
-
}), !embedConfig?.moveAvatarIconToLeft ? !accountMenu ? avatarHtml : accountMenu : null, /* @__PURE__ */jsx(VerticalDivider, {
|
|
418
|
-
hideBreakpoint: BREAKPOINTS.TABLET_UP
|
|
501
|
+
}), earlyAccess && /* @__PURE__ */jsx(ProIconWrap, {
|
|
502
|
+
hideBreakpoint: PRO_HEADER_MOBILE_AND_DOWN,
|
|
503
|
+
motif,
|
|
504
|
+
onClick: earlyAccess.onClick,
|
|
505
|
+
children: earlyAccess.loading ? /* @__PURE__ */jsx(SkeletonCircleLoader, {
|
|
506
|
+
diameter: HEADER_ICON_SIZE
|
|
507
|
+
}) : /* @__PURE__ */jsx(SvgIcon, {
|
|
508
|
+
src: EAIcon__default,
|
|
509
|
+
width: HEADER_ICON_SIZE,
|
|
510
|
+
height: HEADER_ICON_SIZE * 0.8,
|
|
511
|
+
renderedHeight: HEADER_ICON_SIZE * 0.8
|
|
512
|
+
})
|
|
513
|
+
}), !embedConfig?.moveAvatarIconToLeft ? !accountMenu ? avatarHtml : accountMenu : null, /* @__PURE__ */jsx(VerticalDivider, {
|
|
514
|
+
hideBreakpoint: PRO_HEADER_MOBILE_UP
|
|
515
|
+
})]
|
|
419
516
|
}), /* @__PURE__ */jsx(ProIconWrap, {
|
|
420
|
-
hideBreakpoint:
|
|
517
|
+
hideBreakpoint: PRO_HEADER_MOBILE_UP,
|
|
421
518
|
motif,
|
|
422
519
|
onClick: handleHamburgerClick,
|
|
423
520
|
children: activeModal === ModalId.ProMobileMenu ? /* @__PURE__ */jsx(SvgIcon, {
|
|
@@ -484,36 +581,19 @@ const ProHeader = memo(function ProHeader2({
|
|
|
484
581
|
}), !isSsr && activeModal === ModalId.ProMobileMenu && /* @__PURE__ */jsx(NavigationProMobileMenu, {
|
|
485
582
|
translations,
|
|
486
583
|
onClose: handleModalClose,
|
|
487
|
-
|
|
584
|
+
logo,
|
|
488
585
|
handleStorePickerClick,
|
|
489
586
|
handleOrderHistoryClick,
|
|
490
587
|
handlePurchaseHistoryClick,
|
|
491
588
|
handleProductLineChange,
|
|
492
589
|
productLineValue,
|
|
493
590
|
productLineOptions,
|
|
494
|
-
|
|
591
|
+
categories,
|
|
592
|
+
hideExtraSection: !!embedConfig
|
|
495
593
|
})]
|
|
496
594
|
})
|
|
497
|
-
})
|
|
498
|
-
$show: activeModal === ModalId.Search,
|
|
499
|
-
$isStickyEmbed: !!embedConfig,
|
|
500
|
-
hideBreakpoint: BREAKPOINTS.MOBILE_UP,
|
|
501
|
-
children: /* @__PURE__ */jsx(Search, {
|
|
502
|
-
setInputRef: setSearchInputRef,
|
|
503
|
-
onValueChange: handleSearchValueChange,
|
|
504
|
-
placeholder: searchPlaceholder,
|
|
505
|
-
isSearchFocused: !!searchValue || isSearchFocused,
|
|
506
|
-
value: searchValue || "",
|
|
507
|
-
showCancel: !!searchValue,
|
|
508
|
-
onCancelClick: () => {
|
|
509
|
-
onSearch?.("");
|
|
510
|
-
},
|
|
511
|
-
onFocus: handleSearchFocus,
|
|
512
|
-
onBlur: handleSearchBlur,
|
|
513
|
-
focusedWidth: searchFocusWidth
|
|
514
|
-
})
|
|
515
|
-
})]
|
|
595
|
+
})
|
|
516
596
|
});
|
|
517
597
|
});
|
|
518
|
-
export { ProHeader };
|
|
598
|
+
export { PRO_HEADER_MOBILE_AND_DOWN, PRO_HEADER_MOBILE_UP, ProHeader };
|
|
519
599
|
//# sourceMappingURL=ProHeader.mjs.map
|