@ubnt/store.core 9.64.0 → 9.64.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 +148 -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/arrow2.svg +3 -0
- package/lib/assets/cart-secondary.svg +5 -0
- package/lib/assets/icon-location-pin.svg +5 -0
- package/lib/assets/icons/{menu/icon-globe.svg.js → cart-secondary.svg.js} +6 -6
- 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/{components/ModelCompareV3/assets/Switching/aggregation.jpg.js → assets/icons/menu/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/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/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/assets/udr2.jpg +0 -0
- package/lib/assets/udr3.jpg +0 -0
- package/lib/assets/udr7.jpg +0 -0
- package/lib/assets/udr72.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.d.ts +1 -1
- package/lib/components/CardSection/Card/Card.js +9 -7
- package/lib/components/CardSection/Card/Card.js.map +1 -1
- package/lib/components/CardSection/Card/Card.mjs +3 -1
- package/lib/components/CardSection/Card/Card.mjs.map +1 -1
- package/lib/components/CardSection/Card/Card.types.d.ts +1 -0
- package/lib/components/CardSection/Card/Card.types.js.map +1 -1
- package/lib/components/CardSection/Card/Card.types.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 +11 -11
- package/lib/components/Explore/ExploreData.js.map +1 -1
- package/lib/components/Explore/ExploreData.mjs +11 -11
- 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 +22 -22
- 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 +290 -189
- package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.mjs +270 -171
- package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +38 -23
- package/lib/components/Header/ProHeader/ProHeader.styles.js +205 -67
- package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs +194 -66
- 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 +12 -12
- 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/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/bigCompare/udr.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udr.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udr7.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udr7.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/Consoles/udr.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udr.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udr7.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udr7.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 +12 -12
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +8 -8
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js +3 -2
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js.map +1 -1
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs +3 -2
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs.map +1 -1
- 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/express7.js +1 -1
- package/lib/components/ModelCompareV3/data/products/express7.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/express7.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/express7.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js +5 -3
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs +5 -3
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayLite.js +5 -3
- package/lib/components/ModelCompareV3/data/products/gatewayLite.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs +5 -3
- 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 +5 -3
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs +5 -3
- 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/ucgFiber.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgFiber.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgFiber.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgFiber.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 +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 +2 -2
- package/lib/components/ModelCompareV3/data/products/udr.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr.mjs +2 -2
- package/lib/components/ModelCompareV3/data/products/udr.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr7.js +2 -2
- package/lib/components/ModelCompareV3/data/products/udr7.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr7.mjs +2 -2
- package/lib/components/ModelCompareV3/data/products/udr7.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 +19 -19
- 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/header/arrow.svg.js +27 -0
- package/lib/constants/icons/header/arrow.svg.js.map +1 -0
- package/lib/constants/icons/header/arrow.svg.mjs +3 -0
- package/lib/constants/icons/header/arrow.svg.mjs.map +1 -0
- package/lib/constants/icons/header/index.d.ts +1 -0
- package/lib/constants/icons/header/index.js +9 -0
- package/lib/constants/icons/header/index.js.map +1 -1
- package/lib/constants/icons/header/index.mjs +2 -0
- package/lib/constants/icons/header/index.mjs.map +1 -1
- 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 +5 -2
- package/lib/constants/proStoreCategories/mapping/index.js +55 -51
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +54 -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 +10 -9
- package/lib/constants/proStoreCategories/mapping/unifi.js +10 -9
- package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs +10 -9
- package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js +8 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.mjs +8 -2
- package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.js +7 -0
- package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.mjs +7 -1
- package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.js +8 -1
- package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.mjs +8 -2
- package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +7 -2
- package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs +7 -3
- package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.js +8 -1
- package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.mjs +8 -2
- package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +8 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +8 -2
- package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.js +8 -1
- package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.mjs +8 -2
- package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js +8 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.mjs +8 -2
- package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js +7 -0
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +7 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +8 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +8 -2
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +8 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +8 -2
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/constants/proStoreFilters/mapping.d.ts +56 -4
- package/lib/constants/proStoreFilters/mapping.js +141 -11
- package/lib/constants/proStoreFilters/mapping.js.map +1 -1
- package/lib/constants/proStoreFilters/mapping.mjs +141 -11
- 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/aggregation.jpg +0 -0
- 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
- package/lib/components/ModelCompareV3/assets/Switching/aggregation.jpg.js.map +0 -1
- package/lib/components/ModelCompareV3/assets/Switching/aggregation.jpg.mjs +0 -3
- package/lib/components/ModelCompareV3/assets/Switching/aggregation.jpg.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.js +0 -117
- package/lib/components/ModelCompareV3/data/products/aggregation.js.map +0 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.mjs +0 -109
- package/lib/components/ModelCompareV3/data/products/aggregation.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, ProductLineSelectorWrap, ProductLineSelectorButton, ProductLineSelectIcon, ProductLineSelectorList, ProductLineSelectorListItem, CurrentStoreWrap, CurrentStoreFlag, CenterWrap, SearchWrap, Search, SearchCancel, InlineCategoryWrap, CATEGORY_ITEMS_GAP, RightWrap, 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,10 @@ 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 _externalAssets_D0npbJ7x__default from "../../../assets/arrow2.svg";
|
|
41
|
+
import { ScrollWrapper } from '../../ScrollWrapper/ScrollWrapper.mjs';
|
|
42
|
+
import { MenuItem } from '../MenuItem/MenuItem.mjs';
|
|
39
43
|
import _externalAssets_g50k1DIN__default from "../../../assets/search.svg";
|
|
40
44
|
import { Tooltip } from '../../Tooltip/Tooltip.mjs';
|
|
41
45
|
import _externalAssets_DJH57LL8__default from "../../../assets/globe.svg";
|
|
@@ -50,7 +54,9 @@ import { AccountFrameMobile } from '../AccountFrame/Mobile/Mobile.mjs';
|
|
|
50
54
|
import { AccountFrame } from '../AccountFrame/AccountFrame.mjs';
|
|
51
55
|
import { NavigationProMobileMenu } from '../Navigation/ProMobileMenu/ProMobileMenu.mjs';
|
|
52
56
|
"use strict";
|
|
53
|
-
const
|
|
57
|
+
const PRO_HEADER_MOBILE_UP = BREAKPOINTS.TABLET_UP;
|
|
58
|
+
const PRO_HEADER_MOBILE_AND_DOWN = BREAKPOINTS.TABLET_AND_DOWN;
|
|
59
|
+
const DEFAULT_PRODUCT_LINE_OPTIONS = [{
|
|
54
60
|
value: ProductLine.Unifi,
|
|
55
61
|
label: "UniFi"
|
|
56
62
|
}, {
|
|
@@ -67,8 +73,9 @@ const ProHeader = memo(function ProHeader2({
|
|
|
67
73
|
onCartClick,
|
|
68
74
|
showLineLoader,
|
|
69
75
|
searchValue,
|
|
76
|
+
searchInputWidth,
|
|
77
|
+
searchInputChildren,
|
|
70
78
|
onSearch,
|
|
71
|
-
currentCountryName,
|
|
72
79
|
handleStorePickerClick,
|
|
73
80
|
earlyAccess,
|
|
74
81
|
handlePurchaseHistoryClick,
|
|
@@ -76,17 +83,22 @@ const ProHeader = memo(function ProHeader2({
|
|
|
76
83
|
handleProductLineChange,
|
|
77
84
|
handleMobileMenuClick,
|
|
78
85
|
productLineValue,
|
|
86
|
+
categories,
|
|
87
|
+
hideInlineCategories,
|
|
79
88
|
embedConfig,
|
|
80
89
|
onSearchFocus,
|
|
81
90
|
onSearchBlur,
|
|
82
91
|
onSearchClick,
|
|
83
|
-
productLineOptions =
|
|
92
|
+
productLineOptions = DEFAULT_PRODUCT_LINE_OPTIONS,
|
|
84
93
|
accountMenu,
|
|
85
|
-
onLanguageChange
|
|
94
|
+
onLanguageChange,
|
|
95
|
+
logo
|
|
86
96
|
}) {
|
|
87
|
-
const isMobile = useMedia(
|
|
97
|
+
const isMobile = useMedia(PRO_HEADER_MOBILE_AND_DOWN, false);
|
|
88
98
|
const rootRef = useRef(null);
|
|
89
|
-
const
|
|
99
|
+
const wrapRef = useRef(null);
|
|
100
|
+
const containerRef = useRef(null);
|
|
101
|
+
const [searchInputEl, setSearchInputEl] = useState(null);
|
|
90
102
|
const translations = useMemo(() => {
|
|
91
103
|
return merge(defaultHeaderTranslations, initialTranslations);
|
|
92
104
|
}, [initialTranslations]);
|
|
@@ -148,45 +160,72 @@ const ProHeader = memo(function ProHeader2({
|
|
|
148
160
|
activeModal === ModalId.ProMobileMenu
|
|
149
161
|
);
|
|
150
162
|
}, [activeModal]);
|
|
163
|
+
const [canFocusSearch, setCanFocusSearch] = useState(false);
|
|
164
|
+
useEffect(() => {
|
|
165
|
+
if (activeModal !== ModalId.Search) {
|
|
166
|
+
setCanFocusSearch(false);
|
|
167
|
+
}
|
|
168
|
+
}, [activeModal]);
|
|
169
|
+
useEffect(() => {
|
|
170
|
+
if (!canFocusSearch || activeModal !== ModalId.Search || !searchInputEl) return;
|
|
171
|
+
const interval = setInterval(() => {
|
|
172
|
+
if (document.activeElement === searchInputEl) {
|
|
173
|
+
clearInterval(interval);
|
|
174
|
+
}
|
|
175
|
+
searchInputEl.focus();
|
|
176
|
+
setCanFocusSearch(false);
|
|
177
|
+
}, 0);
|
|
178
|
+
return () => clearInterval(interval);
|
|
179
|
+
}, [activeModal, canFocusSearch, searchInputEl]);
|
|
180
|
+
const isSearching = activeModal === ModalId.Search || !!searchValue;
|
|
151
181
|
const onClickAwayFromSearchModal = useCallback(() => {
|
|
182
|
+
if (searchValue) return;
|
|
152
183
|
if (activeModal === ModalId.Search) {
|
|
153
184
|
setActiveModal(null);
|
|
154
185
|
onSearchClick?.();
|
|
155
186
|
}
|
|
156
|
-
}, [activeModal, onSearchClick, setActiveModal]);
|
|
187
|
+
}, [activeModal, onSearchClick, searchValue, setActiveModal]);
|
|
188
|
+
const [initialSearchValueHandled, setInitialSearchValueHandled] = useState(false);
|
|
189
|
+
useEffect(() => {
|
|
190
|
+
if (!initialSearchValueHandled && searchValue) {
|
|
191
|
+
setActiveModal(ModalId.Search);
|
|
192
|
+
setInitialSearchValueHandled(true);
|
|
193
|
+
}
|
|
194
|
+
}, [initialSearchValueHandled, searchValue, setActiveModal]);
|
|
157
195
|
const blurSearchInput = useCallback(() => {
|
|
158
|
-
if (!
|
|
196
|
+
if (!searchInputEl || activeModal !== ModalId.Search) {
|
|
159
197
|
return;
|
|
160
198
|
}
|
|
161
199
|
if (searchValue?.length) {
|
|
162
|
-
|
|
200
|
+
searchInputEl.blur();
|
|
163
201
|
} else {
|
|
164
202
|
onClickAwayFromSearchModal();
|
|
165
203
|
}
|
|
166
|
-
}, [activeModal, onClickAwayFromSearchModal,
|
|
204
|
+
}, [activeModal, onClickAwayFromSearchModal, searchInputEl, searchValue?.length]);
|
|
167
205
|
useClickAway(rootRef, () => {
|
|
168
206
|
onClickAwayFromSearchModal();
|
|
169
207
|
}, ["click"]);
|
|
170
|
-
const
|
|
208
|
+
const handleSearchCancel = useCallback(() => {
|
|
209
|
+
setActiveModal(null);
|
|
210
|
+
onSearch?.("");
|
|
211
|
+
}, [onSearch, setActiveModal]);
|
|
212
|
+
const handleSearchOnClear = useCallback(() => {
|
|
213
|
+
setActiveModal(ModalId.Search);
|
|
214
|
+
onSearch?.("");
|
|
215
|
+
}, [onSearch, setActiveModal]);
|
|
216
|
+
const handleSearchOnFocus = useCallback(() => {
|
|
171
217
|
setIsSearchFocused(true);
|
|
172
218
|
onSearchFocus?.();
|
|
173
219
|
}, [setIsSearchFocused, onSearchFocus]);
|
|
174
|
-
const
|
|
220
|
+
const handleSearchOnBlur = useCallback(() => {
|
|
175
221
|
setIsSearchFocused(false);
|
|
176
222
|
onSearchBlur?.();
|
|
177
223
|
}, [setIsSearchFocused, onSearchBlur]);
|
|
178
|
-
const
|
|
224
|
+
const handleOpenSearch = useCallback(e => {
|
|
179
225
|
handleModalOpen(e, ModalId.Search);
|
|
180
226
|
onSearchClick?.();
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
if (document.activeElement === searchInputRef) {
|
|
184
|
-
clearInterval(interval);
|
|
185
|
-
}
|
|
186
|
-
searchInputRef.focus();
|
|
187
|
-
}, 0);
|
|
188
|
-
}
|
|
189
|
-
}, [handleModalOpen, onSearchClick, searchInputRef]);
|
|
227
|
+
setCanFocusSearch(true);
|
|
228
|
+
}, [handleModalOpen, onSearchClick]);
|
|
190
229
|
const handleSearchValueChange = useCallback(e => {
|
|
191
230
|
onSearch?.(e.target.value);
|
|
192
231
|
}, [onSearch]);
|
|
@@ -212,7 +251,7 @@ const ProHeader = memo(function ProHeader2({
|
|
|
212
251
|
case ProductLine.Amplifi:
|
|
213
252
|
return 164;
|
|
214
253
|
default:
|
|
215
|
-
return
|
|
254
|
+
return 160;
|
|
216
255
|
}
|
|
217
256
|
}, [productLineValue]);
|
|
218
257
|
useEffect(() => {
|
|
@@ -231,12 +270,36 @@ const ProHeader = memo(function ProHeader2({
|
|
|
231
270
|
const cartQuantity = useMemo(() => {
|
|
232
271
|
return cart?.items.reduce((sum, item) => sum + item.quantity, 0) ?? 0;
|
|
233
272
|
}, [cart?.items]);
|
|
273
|
+
const homeLinkUrl = useMemo(() => {
|
|
274
|
+
return logo?.url ?? createSiteUrl([SiteId.Ui, ""]);
|
|
275
|
+
}, [createSiteUrl, logo?.url]);
|
|
234
276
|
const homeLinkClickHandler = useCallback(e => {
|
|
235
277
|
if (embedConfig?.homeLinkClickHandler) {
|
|
236
278
|
e.preventDefault();
|
|
237
279
|
embedConfig.homeLinkClickHandler();
|
|
280
|
+
return;
|
|
238
281
|
}
|
|
239
|
-
|
|
282
|
+
logo?.onClick?.(e, homeLinkUrl);
|
|
283
|
+
}, [embedConfig, homeLinkUrl, logo]);
|
|
284
|
+
useEffect(() => {
|
|
285
|
+
const containerEl = containerRef.current;
|
|
286
|
+
if (!containerEl) return;
|
|
287
|
+
const wrapEl = wrapRef.current;
|
|
288
|
+
if (!wrapEl) return;
|
|
289
|
+
const [leftEl, centerEl, rightEl] = Array.from(wrapEl.children);
|
|
290
|
+
if (!leftEl || !centerEl || !rightEl) return;
|
|
291
|
+
const handle = () => {
|
|
292
|
+
if (isMobile) {
|
|
293
|
+
centerEl.style.maxWidth = "none";
|
|
294
|
+
} else {
|
|
295
|
+
centerEl.style.maxWidth = containerEl.offsetWidth - getTrueSize(leftEl).width - getTrueSize(rightEl).width - WRAP_GAP * 2 -
|
|
296
|
+
// Remove extra 2 pixels just to be sure there's no overflow
|
|
297
|
+
2 + "px";
|
|
298
|
+
}
|
|
299
|
+
window.requestAnimationFrame(handle);
|
|
300
|
+
};
|
|
301
|
+
window.requestAnimationFrame(handle);
|
|
302
|
+
}, [isMobile]);
|
|
240
303
|
const handleAvatarClick = useCallback(e => {
|
|
241
304
|
if (embedConfig?.avatarClickHandler) {
|
|
242
305
|
embedConfig.avatarClickHandler();
|
|
@@ -273,12 +336,17 @@ const ProHeader = memo(function ProHeader2({
|
|
|
273
336
|
})
|
|
274
337
|
});
|
|
275
338
|
}, [embedConfig?.moveAvatarIconToLeft, account?.customer?.picture, account?.loading, embedConfig?.displayAvatarAsImage, embedConfig?.hideAvatarIcon, handleAvatarClick, motif]);
|
|
276
|
-
|
|
339
|
+
const [showProductLineSelectorDropdown, setShowProductLineSelectorDrowdown] = useState(false);
|
|
340
|
+
const productLineSelectorRef = useRef(null);
|
|
341
|
+
useClickAway(productLineSelectorRef, () => {
|
|
342
|
+
setShowProductLineSelectorDrowdown(false);
|
|
343
|
+
}, ["click"]);
|
|
344
|
+
return /* @__PURE__ */jsx(ProHeaderWrap, {
|
|
277
345
|
ref: rootRef,
|
|
278
346
|
$sticky: !!embedConfig,
|
|
279
347
|
$disableBlur: activeModal === ModalId.Language && isMobile,
|
|
280
|
-
children:
|
|
281
|
-
children: /* @__PURE__ */jsxs(
|
|
348
|
+
children: /* @__PURE__ */jsx(HeaderWrap, {
|
|
349
|
+
children: /* @__PURE__ */jsxs(ProHeader$1, {
|
|
282
350
|
sticky: sticky || !!embedConfig,
|
|
283
351
|
isStickyEmbed: !!embedConfig,
|
|
284
352
|
className,
|
|
@@ -287,137 +355,185 @@ const ProHeader = memo(function ProHeader2({
|
|
|
287
355
|
size: embedConfig?.fullWidthHeader ? "full" : "desktop",
|
|
288
356
|
noVerticalMargin: true,
|
|
289
357
|
noPaddings: !!embedConfig?.fullWidthHeader,
|
|
358
|
+
ref: containerRef,
|
|
290
359
|
children: [/* @__PURE__ */jsxs(Wrap, {
|
|
291
|
-
|
|
360
|
+
ref: wrapRef,
|
|
361
|
+
children: [/* @__PURE__ */jsx(LeftWrap, {
|
|
292
362
|
$addSpaceOnDesktop: !!embedConfig?.fullWidthHeader,
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
363
|
+
hideBreakpoint: isSearching ? PRO_HEADER_MOBILE_AND_DOWN : void 0,
|
|
364
|
+
children: activeModal !== ModalId.ProMobileMenu && /* @__PURE__ */jsxs(Fragment, {
|
|
365
|
+
children: [!logo?.hide && !embedConfig?.hideLogo && /* @__PURE__ */jsx(Anchor, {
|
|
366
|
+
href: homeLinkUrl,
|
|
367
|
+
onClick: homeLinkClickHandler,
|
|
368
|
+
children: embedConfig?.siteTitle ? /* @__PURE__ */jsx(SiteTitleWrap, {
|
|
369
|
+
children: embedConfig.siteTitle
|
|
370
|
+
}) : /* @__PURE__ */jsx(LogoIconWrap, {
|
|
371
|
+
motif,
|
|
372
|
+
children: /* @__PURE__ */jsx(HeaderLogoIcon, {
|
|
373
|
+
productLine: logo?.productLine ?? productLineValue
|
|
374
|
+
})
|
|
305
375
|
})
|
|
306
|
-
})
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
376
|
+
}), embedConfig?.moveAvatarIconToLeft && avatarHtml, /* @__PURE__ */jsxs(ProductLineSelectorWrap, {
|
|
377
|
+
ref: productLineSelectorRef,
|
|
378
|
+
hideBreakpoint: PRO_HEADER_MOBILE_AND_DOWN,
|
|
379
|
+
children: [/* @__PURE__ */jsx(ProductLineSelectorButton, {
|
|
380
|
+
$active: showProductLineSelectorDropdown,
|
|
381
|
+
onClick: () => setShowProductLineSelectorDrowdown(!showProductLineSelectorDropdown),
|
|
382
|
+
children: /* @__PURE__ */jsx(ProductLineSelectIcon, {
|
|
383
|
+
src: _externalAssets_D0npbJ7x__default,
|
|
384
|
+
width: HEADER_ICON_SIZE,
|
|
385
|
+
height: HEADER_ICON_SIZE
|
|
386
|
+
})
|
|
387
|
+
}), /* @__PURE__ */jsx(ProductLineSelectorList, {
|
|
388
|
+
$show: showProductLineSelectorDropdown,
|
|
389
|
+
children: productLineOptions.map(productLine => /* @__PURE__ */jsx(ProductLineSelectorListItem, {
|
|
390
|
+
$active: productLineValue === productLine.value,
|
|
391
|
+
onClick: () => {
|
|
392
|
+
setShowProductLineSelectorDrowdown(false);
|
|
393
|
+
handleProductLineChange?.(productLine.value);
|
|
394
|
+
},
|
|
395
|
+
children: productLine.label
|
|
396
|
+
}, productLine.value))
|
|
397
|
+
})]
|
|
398
|
+
}), !!logo?.currentStore && /* @__PURE__ */jsxs(CurrentStoreWrap, {
|
|
399
|
+
hideBreakpoint: PRO_HEADER_MOBILE_AND_DOWN,
|
|
312
400
|
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
|
-
|
|
401
|
+
children: [/* @__PURE__ */jsx(CurrentStoreFlag, {
|
|
402
|
+
children: logo.currentStore.flag
|
|
403
|
+
}), logo.currentStore.name]
|
|
404
|
+
})]
|
|
405
|
+
})
|
|
406
|
+
}), /* @__PURE__ */jsx(CenterWrap, {
|
|
407
|
+
hideBreakpoint: !isSearching ? PRO_HEADER_MOBILE_AND_DOWN : void 0,
|
|
408
|
+
children: isSearching ? /* @__PURE__ */jsxs(SearchWrap, {
|
|
409
|
+
children: [/* @__PURE__ */jsx(Search, {
|
|
410
|
+
setInputRef: setSearchInputEl,
|
|
411
|
+
onValueChange: handleSearchValueChange,
|
|
412
|
+
placeholder: searchPlaceholder,
|
|
413
|
+
isSearchFocused: !!searchValue || isSearchFocused,
|
|
414
|
+
value: searchValue ?? "",
|
|
415
|
+
showCancel: !!searchValue,
|
|
416
|
+
onCancelClick: handleSearchOnClear,
|
|
417
|
+
width: searchInputWidth ?? 420,
|
|
418
|
+
onFocus: handleSearchOnFocus,
|
|
419
|
+
onBlur: handleSearchOnBlur,
|
|
420
|
+
focusedWidth: searchFocusWidth,
|
|
421
|
+
children: searchInputChildren
|
|
422
|
+
}), /* @__PURE__ */jsx(SearchCancel, {
|
|
423
|
+
onClick: handleSearchCancel,
|
|
424
|
+
children: formatMessage("Cancel")
|
|
425
|
+
})]
|
|
426
|
+
}) : /* @__PURE__ */jsx(InlineCategoryWrap, {
|
|
427
|
+
$hide: hideInlineCategories,
|
|
428
|
+
children: /* @__PURE__ */jsx(ScrollWrapper, {
|
|
429
|
+
direction: "horizontal",
|
|
430
|
+
align: "center",
|
|
431
|
+
scrollStepType: "scrollScreen",
|
|
432
|
+
fillType: "gradient",
|
|
433
|
+
gradientSize: WRAP_GAP * 4,
|
|
434
|
+
gap: CATEGORY_ITEMS_GAP,
|
|
435
|
+
activeIndex: categories.activeIndex,
|
|
436
|
+
items: categories.items.map((category, i) => ({
|
|
437
|
+
id: category.id,
|
|
438
|
+
render() {
|
|
439
|
+
const active = categories.activeIndex === i;
|
|
440
|
+
return /* @__PURE__ */jsx(MenuItem, {
|
|
441
|
+
"data-test-id": `inline-category${active ? "-selected" : ""}`,
|
|
442
|
+
as: "a",
|
|
443
|
+
href: category.url ?? "#",
|
|
444
|
+
onClick: category.onClick && category.url ? e => category.onClick?.(e, category.url) : void 0,
|
|
445
|
+
active,
|
|
446
|
+
motif,
|
|
447
|
+
children: /* @__PURE__ */jsx(MenuItemLabel, {
|
|
448
|
+
children: category.label
|
|
449
|
+
})
|
|
450
|
+
}, category.id);
|
|
451
|
+
}
|
|
452
|
+
}))
|
|
340
453
|
})
|
|
341
|
-
})
|
|
454
|
+
})
|
|
342
455
|
}), /* @__PURE__ */jsxs(RightWrap, {
|
|
343
456
|
$addSpaceOnDesktop: !!embedConfig?.fullWidthHeader,
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
457
|
+
hideBreakpoint: isSearching ? PRO_HEADER_MOBILE_AND_DOWN : void 0,
|
|
458
|
+
children: [activeModal !== ModalId.ProMobileMenu && !(isSearching && !isMobile) && /* @__PURE__ */jsxs(Fragment, {
|
|
459
|
+
children: [/* @__PURE__ */jsx(ProIconWrap, {
|
|
460
|
+
"data-test-id": "search-btn",
|
|
461
|
+
motif,
|
|
462
|
+
onClick: handleOpenSearch,
|
|
463
|
+
children: /* @__PURE__ */jsx(ProIconInnerFillWrap, {
|
|
464
|
+
$active: isSearching,
|
|
465
|
+
$transparent: !!embedConfig || !isMobile,
|
|
466
|
+
children: /* @__PURE__ */jsx(SvgIcon, {
|
|
467
|
+
src: _externalAssets_g50k1DIN__default,
|
|
468
|
+
width: HEADER_ICON_SIZE,
|
|
469
|
+
height: HEADER_ICON_SIZE
|
|
470
|
+
})
|
|
471
|
+
})
|
|
472
|
+
}), cart && /* @__PURE__ */jsx(ProIconWrap, {
|
|
473
|
+
motif,
|
|
474
|
+
"data-test-id": "cart-btn",
|
|
475
|
+
onClick: e => cartQuantity > 0 && handleModalOpen(e, ModalId.Cart),
|
|
476
|
+
$isDefaultCursor: cartQuantity < 1,
|
|
477
|
+
children: cart?.loading ? /* @__PURE__ */jsx(SkeletonCircleLoader, {
|
|
478
|
+
diameter: HEADER_ICON_SIZE
|
|
479
|
+
}) : cartQuantity > 0 ? /* @__PURE__ */jsx(CartIcon, {
|
|
480
|
+
itemCount: cartQuantity,
|
|
481
|
+
motif,
|
|
482
|
+
width: HEADER_ICON_SIZE,
|
|
483
|
+
height: HEADER_ICON_SIZE
|
|
484
|
+
}) : /* @__PURE__ */jsx(Tooltip, {
|
|
485
|
+
description: translations.cart.empty,
|
|
486
|
+
motif: "light",
|
|
487
|
+
isInteractive: true,
|
|
488
|
+
position: "bottom",
|
|
489
|
+
style: {
|
|
490
|
+
height: `${HEADER_ICON_SIZE}px`
|
|
491
|
+
},
|
|
492
|
+
children: /* @__PURE__ */jsx(CartIcon, {
|
|
493
|
+
itemCount: cartQuantity,
|
|
494
|
+
motif,
|
|
495
|
+
width: HEADER_ICON_SIZE,
|
|
496
|
+
height: HEADER_ICON_SIZE
|
|
497
|
+
})
|
|
498
|
+
})
|
|
499
|
+
}), !embedConfig && !handlePurchaseHistoryClick && /* @__PURE__ */jsx(VerticalDivider, {
|
|
500
|
+
hideBreakpoint: PRO_HEADER_MOBILE_AND_DOWN
|
|
501
|
+
}), isMultiLanguage && !embedConfig?.hideLanguagePicker && /* @__PURE__ */jsx(ProIconWrap, {
|
|
502
|
+
motif,
|
|
503
|
+
"data-test-id": "language-picker-btn",
|
|
504
|
+
onClick: e => handleModalOpen(e, ModalId.Language),
|
|
351
505
|
children: /* @__PURE__ */jsx(SvgIcon, {
|
|
352
|
-
src:
|
|
506
|
+
src: _externalAssets_DJH57LL8__default,
|
|
353
507
|
width: HEADER_ICON_SIZE,
|
|
354
508
|
height: HEADER_ICON_SIZE
|
|
355
509
|
})
|
|
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,
|
|
510
|
+
}), handlePurchaseHistoryClick && /* @__PURE__ */jsx(ProIconWrap, {
|
|
511
|
+
hideBreakpoint: PRO_HEADER_MOBILE_AND_DOWN,
|
|
366
512
|
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,
|
|
513
|
+
"data-test-id": "purchase-history-btn",
|
|
514
|
+
onClick: handlePurchaseHistoryClick,
|
|
515
|
+
children: /* @__PURE__ */jsx(SvgIcon, {
|
|
516
|
+
src: HistoryIcon__default,
|
|
380
517
|
width: HEADER_ICON_SIZE,
|
|
381
518
|
height: HEADER_ICON_SIZE
|
|
382
519
|
})
|
|
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
|
|
520
|
+
}), earlyAccess && /* @__PURE__ */jsx(ProIconWrap, {
|
|
521
|
+
hideBreakpoint: PRO_HEADER_MOBILE_AND_DOWN,
|
|
522
|
+
motif,
|
|
523
|
+
onClick: earlyAccess.onClick,
|
|
524
|
+
children: earlyAccess.loading ? /* @__PURE__ */jsx(SkeletonCircleLoader, {
|
|
525
|
+
diameter: HEADER_ICON_SIZE
|
|
526
|
+
}) : /* @__PURE__ */jsx(SvgIcon, {
|
|
527
|
+
src: EAIcon__default,
|
|
528
|
+
width: HEADER_ICON_SIZE,
|
|
529
|
+
height: HEADER_ICON_SIZE * 0.8,
|
|
530
|
+
renderedHeight: HEADER_ICON_SIZE * 0.8
|
|
531
|
+
})
|
|
532
|
+
}), !embedConfig?.moveAvatarIconToLeft ? !accountMenu ? avatarHtml : accountMenu : null, /* @__PURE__ */jsx(VerticalDivider, {
|
|
533
|
+
hideBreakpoint: PRO_HEADER_MOBILE_UP
|
|
534
|
+
})]
|
|
419
535
|
}), /* @__PURE__ */jsx(ProIconWrap, {
|
|
420
|
-
hideBreakpoint:
|
|
536
|
+
hideBreakpoint: PRO_HEADER_MOBILE_UP,
|
|
421
537
|
motif,
|
|
422
538
|
onClick: handleHamburgerClick,
|
|
423
539
|
children: activeModal === ModalId.ProMobileMenu ? /* @__PURE__ */jsx(SvgIcon, {
|
|
@@ -484,36 +600,19 @@ const ProHeader = memo(function ProHeader2({
|
|
|
484
600
|
}), !isSsr && activeModal === ModalId.ProMobileMenu && /* @__PURE__ */jsx(NavigationProMobileMenu, {
|
|
485
601
|
translations,
|
|
486
602
|
onClose: handleModalClose,
|
|
487
|
-
|
|
603
|
+
logo,
|
|
488
604
|
handleStorePickerClick,
|
|
489
605
|
handleOrderHistoryClick,
|
|
490
606
|
handlePurchaseHistoryClick,
|
|
491
607
|
handleProductLineChange,
|
|
492
608
|
productLineValue,
|
|
493
609
|
productLineOptions,
|
|
494
|
-
|
|
610
|
+
categories,
|
|
611
|
+
hideExtraSection: !!embedConfig
|
|
495
612
|
})]
|
|
496
613
|
})
|
|
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
|
-
})]
|
|
614
|
+
})
|
|
516
615
|
});
|
|
517
616
|
});
|
|
518
|
-
export { ProHeader };
|
|
617
|
+
export { PRO_HEADER_MOBILE_AND_DOWN, PRO_HEADER_MOBILE_UP, ProHeader };
|
|
519
618
|
//# sourceMappingURL=ProHeader.mjs.map
|