@ubnt/store.core 9.60.0-new-design → 9.60.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -129
- package/lib/_virtual/_virtual_multi-entry.js +10 -13
- package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
- package/lib/_virtual/_virtual_multi-entry.mjs +11 -13
- package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
- package/lib/apis/smartcat.d.ts +2 -12
- package/lib/apis/smartcat.js +4 -27
- package/lib/apis/smartcat.js.map +1 -1
- package/lib/apis/smartcat.mjs +4 -27
- package/lib/apis/smartcat.mjs.map +1 -1
- package/lib/assets/attention.svg +5 -5
- package/lib/assets/attention2.svg +5 -5
- package/lib/assets/close2.svg +2 -3
- package/lib/assets/close3.svg +3 -2
- package/lib/assets/icons/menu/{icon-location-pin.svg.js → icon-globe.svg.js} +6 -6
- package/lib/assets/icons/menu/icon-globe.svg.js.map +1 -0
- package/lib/assets/icons/menu/icon-globe.svg.mjs +3 -0
- package/lib/assets/icons/menu/icon-globe.svg.mjs.map +1 -0
- package/lib/assets/logoUnifi.svg +2 -10
- package/lib/assets/pause.svg +3 -3
- package/lib/assets/pause2.svg +3 -3
- package/lib/components/Accordion/Accordion.js +4 -4
- package/lib/components/Avatar/Avatar.js +2 -2
- package/lib/components/BackInStock/BackInStock.types.d.ts +0 -1
- package/lib/components/Button/Button.js +5 -12
- package/lib/components/Button/Button.js.map +1 -1
- package/lib/components/Button/Button.mjs +1 -8
- package/lib/components/Button/Button.mjs.map +1 -1
- package/lib/components/Button/CartButton.d.ts +1 -3
- package/lib/components/Button/CartButton.js +6 -11
- package/lib/components/Button/CartButton.js.map +1 -1
- package/lib/components/Button/CartButton.mjs +4 -8
- package/lib/components/Button/CartButton.mjs.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.js +9 -16
- package/lib/components/ButtonGroup/ButtonGroup.js.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.mjs +9 -16
- package/lib/components/ButtonGroup/ButtonGroup.mjs.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.styles.d.ts +6 -10
- package/lib/components/ButtonGroup/ButtonGroup.styles.js +20 -60
- package/lib/components/ButtonGroup/ButtonGroup.styles.js.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.styles.mjs +20 -60
- package/lib/components/ButtonGroup/ButtonGroup.styles.mjs.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.types.d.ts +0 -5
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.d.ts +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js +4 -16
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs +5 -17
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.d.ts +1 -5
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js +17 -82
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs +17 -82
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.types.d.ts +0 -4
- package/lib/components/CardSection/Card/Card.js +6 -6
- package/lib/components/CardSection/CardSection.js +2 -2
- package/lib/components/CardSection/CardSection.styles.d.ts +1 -1
- package/lib/components/CartIcon/CartIcon.js +2 -2
- package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +2 -4
- package/lib/components/CategoryTabs/CategoryTabs.styles.js +5 -8
- package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +6 -7
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
- package/lib/components/Checkbox/Checkbox.js +4 -4
- package/lib/components/CloserLookSection/CloserLookSection.js +11 -11
- package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.js +5 -5
- package/lib/components/Compare/Compare.styles.d.ts +5 -5
- package/lib/components/Container/Container.d.ts +1 -1
- package/lib/components/Container/Container.js +4 -5
- package/lib/components/Container/Container.js.map +1 -1
- package/lib/components/Container/Container.mjs +4 -5
- package/lib/components/Container/Container.mjs.map +1 -1
- package/lib/components/Container/index.stories.d.ts +5 -5
- package/lib/components/CustomImage/CustomImage.js +12 -12
- package/lib/components/Explore/Explore.js +5 -5
- package/lib/components/Explore/ExploreData.js +12 -12
- package/lib/components/Explore/ExploreData.js.map +1 -1
- package/lib/components/Explore/ExploreData.mjs +12 -12
- package/lib/components/Explore/ExploreData.mjs.map +1 -1
- package/lib/components/FeaturesSection_deprecated/Features/Features.js +2 -2
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +23 -23
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
- package/lib/components/Footer/Footer.js +2 -2
- package/lib/components/Footer/hooks/useFooterContent.js +5 -5
- package/lib/components/Gallery/Gallery.context.js +17 -17
- package/lib/components/Gallery/Gallery.js +9 -9
- package/lib/components/Gallery/GalleryControls/GalleryControls.js +4 -4
- package/lib/components/Gallery/GalleryItem/GalleryItem.js +8 -8
- package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.js +8 -8
- package/lib/components/GridGallery/GridGallery.js +8 -8
- package/lib/components/GridGallery/GridModal/GridModal.js +6 -6
- package/lib/components/Header/AccountFrame/AccountFrame.js +11 -11
- package/lib/components/Header/AccountFrame/Mobile/Mobile.js +4 -4
- package/lib/components/Header/AccountMenu/AccountMenu.js +20 -30
- package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
- package/lib/components/Header/AccountMenu/AccountMenu.mjs +3 -13
- package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
- package/lib/components/Header/CartModal/Empty/Empty.js +3 -3
- package/lib/components/Header/CartModalV2/CartModal.js +5 -5
- package/lib/components/Header/CartModalV2/Item/Item.js +4 -4
- package/lib/components/Header/CartModalV2/Item/Item.styles.d.ts +1 -1
- package/lib/components/Header/Header.js +43 -43
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mjs +9 -9
- package/lib/components/Header/Header.mjs.map +1 -1
- package/lib/components/Header/Header.styles.d.ts +12 -7
- package/lib/components/Header/Header.styles.js +32 -10
- package/lib/components/Header/Header.styles.js.map +1 -1
- package/lib/components/Header/Header.styles.mjs +31 -10
- package/lib/components/Header/Header.styles.mjs.map +1 -1
- package/lib/components/Header/Header.types.d.ts +5 -29
- package/lib/components/Header/Header.types.js +1 -2
- package/lib/components/Header/Header.types.js.map +1 -1
- package/lib/components/Header/Header.types.mjs +1 -2
- package/lib/components/Header/Header.types.mjs.map +1 -1
- package/lib/components/Header/IsolatedHeader.d.ts +0 -1
- package/lib/components/Header/IsolatedHeader.js +50 -50
- package/lib/components/Header/IsolatedHeader.js.map +1 -1
- package/lib/components/Header/IsolatedHeader.mjs +46 -47
- package/lib/components/Header/IsolatedHeader.mjs.map +1 -1
- package/lib/components/Header/LanguageFrame/LanguageFrame.js +6 -6
- package/lib/components/Header/MenuItem/MenuItem.styles.d.ts +1 -1
- package/lib/components/Header/MenuItem/MenuItem.styles.js +3 -3
- package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
- package/lib/components/Header/MenuItem/MenuItem.styles.mjs +3 -3
- package/lib/components/Header/MenuItem/MenuItem.styles.mjs.map +1 -1
- package/lib/components/Header/MenuItem/MenuItem.types.d.ts +0 -1
- package/lib/components/Header/Navigation/Carousel/Carousel.js +5 -5
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.js +12 -12
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +6 -6
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +109 -116
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +104 -111
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +0 -9
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +1 -15
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +2 -13
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +6 -12
- package/lib/components/Header/Overlay/Overlay.js +3 -3
- package/lib/components/Header/ProHeader/ProHeader.d.ts +5 -9
- package/lib/components/Header/ProHeader/ProHeader.js +189 -270
- package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.mjs +171 -251
- package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +25 -30
- package/lib/components/Header/ProHeader/ProHeader.styles.js +66 -119
- package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs +65 -112
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
- package/lib/components/Header/translations/ar.json.js +1 -4
- package/lib/components/Header/translations/ar.json.js.map +1 -1
- package/lib/components/Header/translations/ar.json.mjs +2 -4
- package/lib/components/Header/translations/ar.json.mjs.map +1 -1
- package/lib/components/Header/translations/de.json.js +1 -4
- package/lib/components/Header/translations/de.json.js.map +1 -1
- package/lib/components/Header/translations/de.json.mjs +2 -4
- package/lib/components/Header/translations/de.json.mjs.map +1 -1
- package/lib/components/Header/translations/el.json.js +1 -4
- package/lib/components/Header/translations/el.json.js.map +1 -1
- package/lib/components/Header/translations/el.json.mjs +2 -4
- package/lib/components/Header/translations/el.json.mjs.map +1 -1
- package/lib/components/Header/translations/en.json.js +1 -7
- package/lib/components/Header/translations/en.json.js.map +1 -1
- package/lib/components/Header/translations/en.json.mjs +2 -6
- package/lib/components/Header/translations/en.json.mjs.map +1 -1
- package/lib/components/Header/translations/es.json.js +1 -4
- package/lib/components/Header/translations/es.json.js.map +1 -1
- package/lib/components/Header/translations/es.json.mjs +2 -4
- package/lib/components/Header/translations/es.json.mjs.map +1 -1
- package/lib/components/Header/translations/fr.json.js +1 -4
- package/lib/components/Header/translations/fr.json.js.map +1 -1
- package/lib/components/Header/translations/fr.json.mjs +2 -4
- package/lib/components/Header/translations/fr.json.mjs.map +1 -1
- package/lib/components/Header/translations/it.json.js +1 -4
- package/lib/components/Header/translations/it.json.js.map +1 -1
- package/lib/components/Header/translations/it.json.mjs +2 -4
- package/lib/components/Header/translations/it.json.mjs.map +1 -1
- package/lib/components/Header/translations/ja.json.js +1 -4
- package/lib/components/Header/translations/ja.json.js.map +1 -1
- package/lib/components/Header/translations/ja.json.mjs +2 -4
- package/lib/components/Header/translations/ja.json.mjs.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.js +1 -4
- package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.mjs +2 -4
- package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.js +1 -4
- package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.mjs +2 -4
- package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.js +1 -4
- package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.mjs +2 -4
- package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/components/Hero/Hero.js +5 -5
- package/lib/components/Hero/Hero.styles.d.ts +2 -2
- package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +1 -1
- package/lib/components/HeroVideo/HeroVideo.js +5 -5
- package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +2 -2
- package/lib/components/ImageCarousel/ImageCarousel.js +30 -30
- package/lib/components/ImageSequence/ImageSequence.js +8 -8
- package/lib/components/LandingPage/Cards/Card/Card.js +4 -4
- package/lib/components/LandingPage/Cards/Cards.js +10 -10
- package/lib/components/LandingPage/LandingPage.js +2 -2
- package/lib/components/LandingPagePro/LandingPagePro.js +13 -13
- package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +1 -1
- package/lib/components/LandingPageSearch/LandingPageSearch.js +2 -2
- package/lib/components/LandingPageSearch/Modal/Modal.js +9 -9
- package/lib/components/LandingPageSidebar/LandingPageSidebar.js +12 -12
- package/lib/components/LayoutRenderer/LayoutRenderer.js +8 -8
- package/lib/components/LayoutRenderer/LayoutRenderer.styles.d.ts +1 -1
- package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +3 -3
- package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +3 -3
- package/lib/components/LoaderDots/LoaderDots.d.ts +1 -1
- package/lib/components/LoaderDots/LoaderDots.js +1 -3
- package/lib/components/LoaderDots/LoaderDots.js.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.mjs +1 -3
- package/lib/components/LoaderDots/LoaderDots.mjs.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.styles.d.ts +1 -2
- package/lib/components/LoaderDots/LoaderDots.styles.js +1 -11
- package/lib/components/LoaderDots/LoaderDots.styles.js.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.styles.mjs +1 -11
- package/lib/components/LoaderDots/LoaderDots.styles.mjs.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.types.d.ts +0 -2
- package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.js +7 -7
- package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.js +18 -18
- package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.d.ts +1 -1
- package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.js +2 -2
- package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.js +3 -3
- package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.js +3 -3
- package/lib/components/MicrositeHero/MicrositeHero.js +18 -18
- package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.js +4 -4
- package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.js +9 -9
- package/lib/components/MicrositeProductGrid/MicrositeProductGrid.js +8 -8
- package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlockWrap.js +2 -2
- package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +1 -1
- package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.js +3 -3
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +13 -13
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
- package/lib/components/Microsites/MicrositePageContext.js +2 -2
- package/lib/components/Microsites/MicrositeProductPage.js +3 -3
- package/lib/components/Microsites/context/MicrositeProductPageContext.js +3 -3
- package/lib/components/MobileModal/MobileModal.js +4 -4
- package/lib/components/Modal/Modal.js +3 -3
- package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js +3 -3
- package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.js +2 -2
- package/lib/components/ModelCompareV3/ModelCompareV3.js +14 -14
- package/lib/components/ModelCompareV3/ProductGroupsGrid.js +3 -3
- package/lib/components/ModelCompareV3/ScrollGroup/ScrollGroup.js +5 -5
- package/lib/components/ModelCompareV3/ScrollGroup/context.js +3 -3
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupItem.js +8 -8
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupSetScroll.js +2 -2
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupTo.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js +7 -7
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridBody.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js +5 -5
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/context.js +3 -3
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js +2 -4
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs +2 -4
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js +2 -2
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.mjs +2 -2
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/express.js +3 -3
- package/lib/components/ModelCompareV3/data/products/express.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/express.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/express.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayLite.js +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayLite.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayMax.js +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayMax.mjs +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.js +1 -3
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.mjs +1 -3
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js +3 -3
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.js +3 -3
- package/lib/components/ModelCompareV3/data/products/udmPro.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.js +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr.js +41 -5
- package/lib/components/ModelCompareV3/data/products/udr.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr.mjs +21 -5
- package/lib/components/ModelCompareV3/data/products/udr.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udw.js +3 -3
- package/lib/components/ModelCompareV3/data/products/udw.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udw.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udw.mjs.map +1 -1
- package/lib/components/Pagination/Pagination.js +3 -3
- package/lib/components/PriceRangeSlider/PriceRangeSlider.js +16 -16
- package/lib/components/ProductCard/ProductCard.js +7 -7
- package/lib/components/ProductCardPopup/ProductCardPopup.js +8 -8
- package/lib/components/ProductCompare/ProductCompare.js +7 -7
- package/lib/components/ProductDetails/ProductDetails.js +5 -5
- package/lib/components/ProductGrid/ProductGrid.js +10 -10
- package/lib/components/ProductKeyFeatures/ProductKeyFeatures.js +3 -3
- package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +1 -1
- package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +1 -1
- package/lib/components/ProductSectionTabs/ProductSectionTabs.js +2 -2
- package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +2 -2
- package/lib/components/ProductWizard/Options/Options.js +3 -3
- package/lib/components/ProductWizard/ProductWizard.js +2 -2
- package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js +5 -5
- package/lib/components/ProgressCircle/ProgressCircle.js +4 -4
- package/lib/components/QuantityControls/QuantityControls.js +6 -6
- package/lib/components/QuantityControls/QuantityControls.js.map +1 -1
- package/lib/components/QuantityControls/QuantityControls.mjs +2 -2
- package/lib/components/QuantityControls/QuantityControls.mjs.map +1 -1
- package/lib/components/QuantityControls/QuantityControls.types.d.ts +1 -1
- package/lib/components/QuantityInput/QuantityInput.js +1 -6
- package/lib/components/QuantityInput/QuantityInput.js.map +1 -1
- package/lib/components/QuantityInput/QuantityInput.mjs +1 -6
- package/lib/components/QuantityInput/QuantityInput.mjs.map +1 -1
- package/lib/components/RelatedProducts/RelatedProducts.js +5 -5
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js +36 -36
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +12 -12
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +6 -6
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CheckboxSection.js +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +4 -4
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/SliderSection.js +3 -3
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +8 -8
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +6 -6
- package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.js +9 -9
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.js +10 -10
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +15 -15
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.js +2 -2
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +6 -6
- package/lib/components/ResourceCalculatorV1/translations/en.json.js +1 -1
- package/lib/components/ResourceCalculatorV1/translations/en.json.mjs +1 -1
- package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.js +5 -5
- package/lib/components/ScrollWrapper/ScrollWrapper.d.ts +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.js +26 -34
- package/lib/components/ScrollWrapper/ScrollWrapper.js.map +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.mjs +8 -16
- package/lib/components/ScrollWrapper/ScrollWrapper.mjs.map +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.types.d.ts +0 -2
- package/lib/components/Search/Input/Input.d.ts +1 -1
- package/lib/components/Search/Input/Input.js +8 -8
- package/lib/components/Search/Input/Input.js.map +1 -1
- package/lib/components/Search/Input/Input.mjs +4 -4
- package/lib/components/Search/Input/Input.mjs.map +1 -1
- package/lib/components/Search/Input/Input.styles.js +1 -0
- package/lib/components/Search/Input/Input.styles.js.map +1 -1
- package/lib/components/Search/Input/Input.styles.mjs +1 -0
- package/lib/components/Search/Input/Input.styles.mjs.map +1 -1
- package/lib/components/Search/Input/Input.types.d.ts +2 -3
- package/lib/components/Search/Modal/Modal.js +3 -3
- package/lib/components/StorageSliders/Slider/Slider.js +3 -3
- package/lib/components/StorageSliders/StorageSliders.context.js +20 -20
- package/lib/components/StorageSliders/StorageSliders.js +4 -4
- package/lib/components/Tooltip/Tooltip.js +5 -5
- package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js +7 -7
- package/lib/components/VariantSelector/Variant/Variant.js +40 -40
- package/lib/components/VariantSelector/VariantSelector.js +16 -16
- package/lib/components/VideoPlayerNew/VideoPlayer.js +21 -21
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +2 -2
- package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
- package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
- package/lib/components/index.d.ts +0 -1
- package/lib/components/index.js +0 -2
- package/lib/components/index.js.map +1 -1
- package/lib/components/index.mjs +0 -2
- package/lib/components/index.mjs.map +1 -1
- package/lib/constants/icons/options/colors/black.svg.js +5 -5
- package/lib/constants/icons/options/colors/index.js +3 -3
- package/lib/constants/icons/options/styles/black.svg.js +5 -5
- package/lib/constants/icons/options/styles/index.js +3 -3
- package/lib/constants/optionIcons.js +6 -6
- package/lib/constants/optionIcons.mjs +4 -4
- package/lib/constants/proStoreCategories/mapping/filters.d.ts +0 -17
- package/lib/constants/proStoreCategories/mapping/filters.js +0 -17
- package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/filters.mjs +0 -17
- package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.d.ts +2 -4
- package/lib/constants/proStoreCategories/mapping/index.js +51 -50
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +49 -49
- package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/mapping.d.ts +0 -5
- package/lib/constants/proStoreCategories/mapping/redirects.js +3 -18
- package/lib/constants/proStoreCategories/mapping/redirects.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/redirects.mjs +3 -18
- package/lib/constants/proStoreCategories/mapping/redirects.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.d.ts +9 -9
- package/lib/constants/proStoreCategories/mapping/unifi.js +9 -9
- package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs +9 -9
- package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/constants/proStoreFilters/mapping.d.ts +3 -55
- package/lib/constants/proStoreFilters/mapping.js +10 -140
- package/lib/constants/proStoreFilters/mapping.js.map +1 -1
- package/lib/constants/proStoreFilters/mapping.mjs +10 -140
- package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
- package/lib/constants/theme.js +0 -4
- package/lib/constants/theme.js.map +1 -1
- package/lib/constants/theme.mjs +0 -4
- package/lib/constants/theme.mjs.map +1 -1
- package/lib/contexts/MenuContext/context.js +34 -34
- package/lib/contexts/MenuContext/context.js.map +1 -1
- package/lib/contexts/MenuContext/context.mjs +1 -1
- package/lib/contexts/MenuContext/context.mjs.map +1 -1
- package/lib/contexts/MenuContext/mapping.js.map +1 -1
- package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
- package/lib/helpers/index.js +0 -1
- package/lib/helpers/index.js.map +1 -1
- package/lib/helpers/index.mjs +1 -1
- package/lib/helpers/proStoreCategories.js +2 -2
- package/lib/helpers/ux.d.ts +0 -8
- package/lib/helpers/ux.js +0 -15
- package/lib/helpers/ux.js.map +1 -1
- package/lib/helpers/ux.mjs +1 -15
- package/lib/helpers/ux.mjs.map +1 -1
- package/lib/hooks/useHasTouch.js +3 -3
- package/lib/hooks/useHddRetentionCalculator.js +5 -5
- package/lib/hooks/useHorizontalScroll.js +2 -2
- package/lib/hooks/useLockBodyScrollCustom.js +3 -3
- package/lib/hooks/useScrollToY.js +2 -2
- package/lib/hooks/useTestMediaElementVolumeSetter.js +3 -3
- package/lib/hooks/useTranslation.js +6 -6
- package/lib/utils/nextjs/ssr/registry.js +2 -2
- package/package.json +1 -1
- package/lib/assets/cart-secondary.svg +0 -5
- package/lib/assets/icon-location-pin.svg +0 -5
- package/lib/assets/icons/cart-secondary.svg.js +0 -27
- package/lib/assets/icons/cart-secondary.svg.js.map +0 -1
- package/lib/assets/icons/cart-secondary.svg.mjs +0 -3
- package/lib/assets/icons/cart-secondary.svg.mjs.map +0 -1
- package/lib/assets/icons/menu/icon-location-pin.svg.js.map +0 -1
- package/lib/assets/icons/menu/icon-location-pin.svg.mjs +0 -3
- package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +0 -1
- package/lib/components/ButtonGroupBasic/index.stories.d.ts +0 -6
- package/lib/components/Header/Header.stories.d.ts +0 -111
- package/lib/components/Header/LogoIcon/LogoIcon.d.ts +0 -7
- package/lib/components/Header/LogoIcon/LogoIcon.js +0 -46
- package/lib/components/Header/LogoIcon/LogoIcon.js.map +0 -1
- package/lib/components/Header/LogoIcon/LogoIcon.mjs +0 -36
- package/lib/components/Header/LogoIcon/LogoIcon.mjs.map +0 -1
- package/lib/components/Header/LogoIcon/index.d.ts +0 -1
- package/lib/components/Header/LogoIcon/index.js +0 -6
- package/lib/components/Header/LogoIcon/index.js.map +0 -1
- package/lib/components/Header/LogoIcon/index.mjs +0 -3
- package/lib/components/Header/LogoIcon/index.mjs.map +0 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.d.ts +0 -2
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js +0 -79
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js.map +0 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs +0 -71
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs.map +0 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.stories.d.ts +0 -5
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.d.ts +0 -11
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +0 -86
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +0 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +0 -72
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs.map +0 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.types.d.ts +0 -12
- package/lib/components/ProductTechSpecsV2/index.d.ts +0 -1
- package/lib/components/ProductTechSpecsV2/index.js +0 -6
- package/lib/components/ProductTechSpecsV2/index.js.map +0 -1
- package/lib/components/ProductTechSpecsV2/index.mjs +0 -3
- package/lib/components/ProductTechSpecsV2/index.mjs.map +0 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var LineLoader = require('@ubnt/ui-components/LineLoader');
|
|
4
5
|
var merge = require('lodash/merge');
|
|
5
|
-
var
|
|
6
|
+
var react = require('react');
|
|
6
7
|
var reactUse = require('react-use');
|
|
7
8
|
require('../../../assets/account/no-user-avatar.png.js');
|
|
8
9
|
require('../../../assets/icons/menu/icon-ea.svg.js');
|
|
@@ -12,13 +13,12 @@ var layout = require('../../../constants/layout.js');
|
|
|
12
13
|
require('../../../contexts/MenuContext/index.js');
|
|
13
14
|
var mapping = require('../../../contexts/MenuContext/mapping.js');
|
|
14
15
|
var types = require('../../../contexts/MenuContext/types.js');
|
|
15
|
-
var ux = require('../../../helpers/ux.js');
|
|
16
16
|
require('../../../hooks/index.js');
|
|
17
17
|
require('../../../types/index.js');
|
|
18
18
|
var asset = require('../../../utils/asset.js');
|
|
19
19
|
var errors = require('../../../utils/errors.js');
|
|
20
20
|
require('../../MobileModal/index.js');
|
|
21
|
-
require('../../
|
|
21
|
+
require('../../StyleableSvgImage/index.js');
|
|
22
22
|
require('../../Tooltip/index.js');
|
|
23
23
|
require('../AccountFrame/index.js');
|
|
24
24
|
require('../AccountFrame/Mobile/index.js');
|
|
@@ -26,8 +26,6 @@ var Header_styles = require('../Header.styles.js');
|
|
|
26
26
|
var Header_types = require('../Header.types.js');
|
|
27
27
|
require('../LanguageFrame/index.js');
|
|
28
28
|
require('../LanguageFrame/Mobile/index.js');
|
|
29
|
-
require('../LogoIcon/index.js');
|
|
30
|
-
require('../MenuItem/index.js');
|
|
31
29
|
require('../Navigation/ProMobileMenu/index.js');
|
|
32
30
|
require('../translations/index.js');
|
|
33
31
|
var ProHeader_styles = require('./ProHeader.styles.js');
|
|
@@ -38,9 +36,8 @@ var en = require('../translations/en.json.js');
|
|
|
38
36
|
var constants = require('../../../types/constants.js');
|
|
39
37
|
var NoUserAvatar = require("../../../assets/no-user-avatar.png");
|
|
40
38
|
var _externalAssets_CtJIOg_A = require("../../../assets/account.svg");
|
|
41
|
-
var
|
|
42
|
-
var
|
|
43
|
-
var MenuItem = require('../MenuItem/MenuItem.js');
|
|
39
|
+
var StyleableSvgImage = require('../../StyleableSvgImage/StyleableSvgImage.js');
|
|
40
|
+
var _externalAssets_BPYvPCPi = require("../../../assets/logo.svg");
|
|
44
41
|
var _externalAssets_g50k1DIN = require("../../../assets/search.svg");
|
|
45
42
|
var Tooltip = require('../../Tooltip/Tooltip.js');
|
|
46
43
|
var _externalAssets_DJH57LL8 = require("../../../assets/globe.svg");
|
|
@@ -62,6 +59,7 @@ function _interopDefault(e) {
|
|
|
62
59
|
var merge__default = /*#__PURE__*/_interopDefault(merge);
|
|
63
60
|
var NoUserAvatar__default = /*#__PURE__*/_interopDefault(NoUserAvatar);
|
|
64
61
|
var _externalAssets_CtJIOg_A__default = /*#__PURE__*/_interopDefault(_externalAssets_CtJIOg_A);
|
|
62
|
+
var _externalAssets_BPYvPCPi__default = /*#__PURE__*/_interopDefault(_externalAssets_BPYvPCPi);
|
|
65
63
|
var _externalAssets_g50k1DIN__default = /*#__PURE__*/_interopDefault(_externalAssets_g50k1DIN);
|
|
66
64
|
var _externalAssets_DJH57LL8__default = /*#__PURE__*/_interopDefault(_externalAssets_DJH57LL8);
|
|
67
65
|
var HistoryIcon__default = /*#__PURE__*/_interopDefault(HistoryIcon);
|
|
@@ -69,16 +67,14 @@ var EAIcon__default = /*#__PURE__*/_interopDefault(EAIcon);
|
|
|
69
67
|
var _externalAssets_DtGmfNK5__default = /*#__PURE__*/_interopDefault(_externalAssets_DtGmfNK5);
|
|
70
68
|
var _externalAssets_CzDCu21b__default = /*#__PURE__*/_interopDefault(_externalAssets_CzDCu21b);
|
|
71
69
|
"use strict";
|
|
72
|
-
const
|
|
73
|
-
const PRO_HEADER_MOBILE_AND_DOWN = layout.BREAKPOINTS.TABLET_AND_DOWN;
|
|
74
|
-
const DEFAULT_PRODUCT_LINE_OPTIONS = [{
|
|
70
|
+
const defaultProductLineOptions = [{
|
|
75
71
|
value: generated.ProductLine.Unifi,
|
|
76
72
|
label: "UniFi"
|
|
77
73
|
}, {
|
|
78
74
|
value: generated.ProductLine.Uisp,
|
|
79
75
|
label: "UISP"
|
|
80
76
|
}];
|
|
81
|
-
const ProHeader =
|
|
77
|
+
const ProHeader = react.memo(function ProHeader2({
|
|
82
78
|
className,
|
|
83
79
|
motif: defaultMotif,
|
|
84
80
|
cart,
|
|
@@ -88,9 +84,8 @@ const ProHeader = React.memo(function ProHeader2({
|
|
|
88
84
|
onCartClick,
|
|
89
85
|
showLineLoader,
|
|
90
86
|
searchValue,
|
|
91
|
-
searchInputWidth,
|
|
92
|
-
searchInputChildren,
|
|
93
87
|
onSearch,
|
|
88
|
+
currentCountryName,
|
|
94
89
|
handleStorePickerClick,
|
|
95
90
|
earlyAccess,
|
|
96
91
|
handlePurchaseHistoryClick,
|
|
@@ -98,23 +93,18 @@ const ProHeader = React.memo(function ProHeader2({
|
|
|
98
93
|
handleProductLineChange,
|
|
99
94
|
handleMobileMenuClick,
|
|
100
95
|
productLineValue,
|
|
101
|
-
categories,
|
|
102
|
-
hideInlineCategories,
|
|
103
96
|
embedConfig,
|
|
104
97
|
onSearchFocus,
|
|
105
98
|
onSearchBlur,
|
|
106
99
|
onSearchClick,
|
|
107
|
-
productLineOptions =
|
|
100
|
+
productLineOptions = defaultProductLineOptions,
|
|
108
101
|
accountMenu,
|
|
109
|
-
onLanguageChange
|
|
110
|
-
logo
|
|
102
|
+
onLanguageChange
|
|
111
103
|
}) {
|
|
112
|
-
const isMobile = reactUse.useMedia(
|
|
113
|
-
const rootRef =
|
|
114
|
-
const
|
|
115
|
-
const
|
|
116
|
-
const [searchInputEl, setSearchInputEl] = React.useState(null);
|
|
117
|
-
const translations = React.useMemo(() => {
|
|
104
|
+
const isMobile = reactUse.useMedia(layout.BREAKPOINTS.MOBILE_AND_DOWN, false);
|
|
105
|
+
const rootRef = react.useRef(null);
|
|
106
|
+
const [searchInputRef, setSearchInputRef] = react.useState(null);
|
|
107
|
+
const translations = react.useMemo(() => {
|
|
118
108
|
return merge__default["default"](Header_types.defaultHeaderTranslations, initialTranslations);
|
|
119
109
|
}, [initialTranslations]);
|
|
120
110
|
const {
|
|
@@ -163,11 +153,11 @@ const ProHeader = React.memo(function ProHeader2({
|
|
|
163
153
|
}).then(res => res.default)
|
|
164
154
|
}
|
|
165
155
|
});
|
|
166
|
-
const [isSearchFocused, setIsSearchFocused] =
|
|
167
|
-
|
|
156
|
+
const [isSearchFocused, setIsSearchFocused] = react.useState(false);
|
|
157
|
+
react.useEffect(() => {
|
|
168
158
|
setMotif(defaultMotif);
|
|
169
159
|
}, [defaultMotif, setMotif]);
|
|
170
|
-
const handleModalOpen =
|
|
160
|
+
const handleModalOpen = react.useCallback((e, id) => {
|
|
171
161
|
e.stopPropagation();
|
|
172
162
|
if (activeModal !== id) {
|
|
173
163
|
onModalOpen?.();
|
|
@@ -178,10 +168,10 @@ const ProHeader = React.memo(function ProHeader2({
|
|
|
178
168
|
}
|
|
179
169
|
setActiveModal(activeModal === id ? null : id);
|
|
180
170
|
}, [activeModal, onCartClick, setActiveModal, onModalOpen]);
|
|
181
|
-
const handleModalClose =
|
|
171
|
+
const handleModalClose = react.useCallback(() => {
|
|
182
172
|
setActiveModal(null);
|
|
183
173
|
}, [setActiveModal]);
|
|
184
|
-
const handleHamburgerClick =
|
|
174
|
+
const handleHamburgerClick = react.useCallback(() => {
|
|
185
175
|
if (activeModal === types.ModalId.ProMobileMenu) {
|
|
186
176
|
setActiveModal(null);
|
|
187
177
|
} else {
|
|
@@ -189,82 +179,55 @@ const ProHeader = React.memo(function ProHeader2({
|
|
|
189
179
|
}
|
|
190
180
|
handleMobileMenuClick?.();
|
|
191
181
|
}, [activeModal, handleMobileMenuClick, setActiveModal]);
|
|
192
|
-
const sticky =
|
|
182
|
+
const sticky = react.useMemo(() => {
|
|
193
183
|
return (
|
|
194
184
|
// Set as sticky if mobile menu is open
|
|
195
185
|
activeModal === types.ModalId.ProMobileMenu
|
|
196
186
|
);
|
|
197
187
|
}, [activeModal]);
|
|
198
|
-
const
|
|
199
|
-
React.useEffect(() => {
|
|
200
|
-
if (activeModal !== types.ModalId.Search) {
|
|
201
|
-
setCanFocusSearch(false);
|
|
202
|
-
}
|
|
203
|
-
}, [activeModal]);
|
|
204
|
-
React.useEffect(() => {
|
|
205
|
-
if (!canFocusSearch || activeModal !== types.ModalId.Search || !searchInputEl) return;
|
|
206
|
-
const interval = setInterval(() => {
|
|
207
|
-
if (document.activeElement === searchInputEl) {
|
|
208
|
-
clearInterval(interval);
|
|
209
|
-
}
|
|
210
|
-
searchInputEl.focus();
|
|
211
|
-
setCanFocusSearch(false);
|
|
212
|
-
}, 0);
|
|
213
|
-
return () => clearInterval(interval);
|
|
214
|
-
}, [activeModal, canFocusSearch, searchInputEl]);
|
|
215
|
-
const isSearching = activeModal === types.ModalId.Search || !!searchValue;
|
|
216
|
-
const onClickAwayFromSearchModal = React.useCallback(() => {
|
|
217
|
-
if (searchValue) return;
|
|
188
|
+
const onClickAwayFromSearchModal = react.useCallback(() => {
|
|
218
189
|
if (activeModal === types.ModalId.Search) {
|
|
219
190
|
setActiveModal(null);
|
|
220
191
|
onSearchClick?.();
|
|
221
192
|
}
|
|
222
|
-
}, [activeModal, onSearchClick,
|
|
223
|
-
const
|
|
224
|
-
|
|
225
|
-
if (!initialSearchValueHandled && searchValue) {
|
|
226
|
-
setActiveModal(types.ModalId.Search);
|
|
227
|
-
setInitialSearchValueHandled(true);
|
|
228
|
-
}
|
|
229
|
-
}, [initialSearchValueHandled, searchValue, setActiveModal]);
|
|
230
|
-
const blurSearchInput = React.useCallback(() => {
|
|
231
|
-
if (!searchInputEl || activeModal !== types.ModalId.Search) {
|
|
193
|
+
}, [activeModal, onSearchClick, setActiveModal]);
|
|
194
|
+
const blurSearchInput = react.useCallback(() => {
|
|
195
|
+
if (!searchInputRef || activeModal !== types.ModalId.Search) {
|
|
232
196
|
return;
|
|
233
197
|
}
|
|
234
198
|
if (searchValue?.length) {
|
|
235
|
-
|
|
199
|
+
searchInputRef.blur();
|
|
236
200
|
} else {
|
|
237
201
|
onClickAwayFromSearchModal();
|
|
238
202
|
}
|
|
239
|
-
}, [activeModal, onClickAwayFromSearchModal,
|
|
203
|
+
}, [activeModal, onClickAwayFromSearchModal, searchInputRef, searchValue?.length]);
|
|
240
204
|
reactUse.useClickAway(rootRef, () => {
|
|
241
205
|
onClickAwayFromSearchModal();
|
|
242
206
|
}, ["click"]);
|
|
243
|
-
const
|
|
244
|
-
setActiveModal(null);
|
|
245
|
-
onSearch?.("");
|
|
246
|
-
}, [onSearch, setActiveModal]);
|
|
247
|
-
const handleSearchOnClear = React.useCallback(() => {
|
|
248
|
-
setActiveModal(types.ModalId.Search);
|
|
249
|
-
onSearch?.("");
|
|
250
|
-
}, [onSearch, setActiveModal]);
|
|
251
|
-
const handleSearchOnFocus = React.useCallback(() => {
|
|
207
|
+
const handleSearchFocus = react.useCallback(() => {
|
|
252
208
|
setIsSearchFocused(true);
|
|
253
209
|
onSearchFocus?.();
|
|
254
210
|
}, [setIsSearchFocused, onSearchFocus]);
|
|
255
|
-
const
|
|
211
|
+
const handleSearchBlur = react.useCallback(() => {
|
|
256
212
|
setIsSearchFocused(false);
|
|
257
213
|
onSearchBlur?.();
|
|
258
214
|
}, [setIsSearchFocused, onSearchBlur]);
|
|
259
|
-
const
|
|
215
|
+
const handleShowSearchTab = react.useCallback(e => {
|
|
260
216
|
handleModalOpen(e, types.ModalId.Search);
|
|
261
217
|
onSearchClick?.();
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
218
|
+
if (searchInputRef) {
|
|
219
|
+
const interval = setInterval(() => {
|
|
220
|
+
if (document.activeElement === searchInputRef) {
|
|
221
|
+
clearInterval(interval);
|
|
222
|
+
}
|
|
223
|
+
searchInputRef.focus();
|
|
224
|
+
}, 0);
|
|
225
|
+
}
|
|
226
|
+
}, [handleModalOpen, onSearchClick, searchInputRef]);
|
|
227
|
+
const handleSearchValueChange = react.useCallback(e => {
|
|
265
228
|
onSearch?.(e.target.value);
|
|
266
229
|
}, [onSearch]);
|
|
267
|
-
const searchPlaceholder =
|
|
230
|
+
const searchPlaceholder = react.useMemo(() => {
|
|
268
231
|
const defaultPlaceholder = translations.search.searchUniFiProducts;
|
|
269
232
|
switch (productLineValue) {
|
|
270
233
|
case generated.ProductLine.Uisp:
|
|
@@ -281,15 +244,15 @@ const ProHeader = React.memo(function ProHeader2({
|
|
|
281
244
|
}
|
|
282
245
|
}
|
|
283
246
|
}, [productLineValue, translations]);
|
|
284
|
-
const searchFocusWidth =
|
|
247
|
+
const searchFocusWidth = react.useMemo(() => {
|
|
285
248
|
switch (productLineValue) {
|
|
286
249
|
case generated.ProductLine.Amplifi:
|
|
287
250
|
return 164;
|
|
288
251
|
default:
|
|
289
|
-
return
|
|
252
|
+
return 150;
|
|
290
253
|
}
|
|
291
254
|
}, [productLineValue]);
|
|
292
|
-
|
|
255
|
+
react.useEffect(() => {
|
|
293
256
|
if (
|
|
294
257
|
// eslint-disable-next-line sonarjs/deprecation
|
|
295
258
|
!embedConfig?.hideSearchOnTouchmove && !embedConfig?.blurSearchOnTouchmove) {
|
|
@@ -302,47 +265,23 @@ const ProHeader = React.memo(function ProHeader2({
|
|
|
302
265
|
}, [
|
|
303
266
|
// eslint-disable-next-line sonarjs/deprecation
|
|
304
267
|
embedConfig?.hideSearchOnTouchmove, blurSearchInput, embedConfig?.blurSearchOnTouchmove]);
|
|
305
|
-
const cartQuantity =
|
|
268
|
+
const cartQuantity = react.useMemo(() => {
|
|
306
269
|
return cart?.items.reduce((sum, item) => sum + item.quantity, 0) ?? 0;
|
|
307
270
|
}, [cart?.items]);
|
|
308
|
-
const
|
|
309
|
-
return logo?.url ?? createSiteUrl([mapping.SiteId.Ui, ""]);
|
|
310
|
-
}, [createSiteUrl, logo?.url]);
|
|
311
|
-
const homeLinkClickHandler = React.useCallback(e => {
|
|
271
|
+
const homeLinkClickHandler = react.useCallback(e => {
|
|
312
272
|
if (embedConfig?.homeLinkClickHandler) {
|
|
313
273
|
e.preventDefault();
|
|
314
274
|
embedConfig.homeLinkClickHandler();
|
|
315
|
-
return;
|
|
316
275
|
}
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
React.useEffect(() => {
|
|
320
|
-
const containerEl = containerRef.current;
|
|
321
|
-
if (!containerEl) return;
|
|
322
|
-
const wrapEl = wrapRef.current;
|
|
323
|
-
if (!wrapEl) return;
|
|
324
|
-
const [leftEl, centerEl, rightEl] = Array.from(wrapEl.children);
|
|
325
|
-
if (!leftEl || !centerEl || !rightEl) return;
|
|
326
|
-
const handle = () => {
|
|
327
|
-
if (isMobile) {
|
|
328
|
-
centerEl.style.maxWidth = "none";
|
|
329
|
-
} else {
|
|
330
|
-
centerEl.style.maxWidth = containerEl.offsetWidth - ux.getTrueSize(leftEl).width - ux.getTrueSize(rightEl).width - ProHeader_styles.WRAP_GAP * 2 -
|
|
331
|
-
// Remove extra 2 pixels just to be sure there's no overflow
|
|
332
|
-
2 + "px";
|
|
333
|
-
}
|
|
334
|
-
window.requestAnimationFrame(handle);
|
|
335
|
-
};
|
|
336
|
-
window.requestAnimationFrame(handle);
|
|
337
|
-
}, [isMobile]);
|
|
338
|
-
const handleAvatarClick = React.useCallback(e => {
|
|
276
|
+
}, [embedConfig]);
|
|
277
|
+
const handleAvatarClick = react.useCallback(e => {
|
|
339
278
|
if (embedConfig?.avatarClickHandler) {
|
|
340
279
|
embedConfig.avatarClickHandler();
|
|
341
280
|
} else {
|
|
342
281
|
handleModalOpen(e, types.ModalId.Account);
|
|
343
282
|
}
|
|
344
283
|
}, [embedConfig, handleModalOpen]);
|
|
345
|
-
const avatarHtml =
|
|
284
|
+
const avatarHtml = react.useMemo(() => {
|
|
346
285
|
if (embedConfig?.hideAvatarIcon) {
|
|
347
286
|
return null;
|
|
348
287
|
}
|
|
@@ -371,12 +310,12 @@ const ProHeader = React.memo(function ProHeader2({
|
|
|
371
310
|
})
|
|
372
311
|
});
|
|
373
312
|
}, [embedConfig?.moveAvatarIconToLeft, account?.customer?.picture, account?.loading, embedConfig?.displayAvatarAsImage, embedConfig?.hideAvatarIcon, handleAvatarClick, motif]);
|
|
374
|
-
return /* @__PURE__ */jsxRuntime.
|
|
313
|
+
return /* @__PURE__ */jsxRuntime.jsxs(ProHeader_styles.ProHeaderWrap, {
|
|
375
314
|
ref: rootRef,
|
|
376
315
|
$sticky: !!embedConfig,
|
|
377
316
|
$disableBlur: activeModal === types.ModalId.Language && isMobile,
|
|
378
|
-
children: /* @__PURE__ */jsxRuntime.jsx(Header_styles.HeaderWrap, {
|
|
379
|
-
children: /* @__PURE__ */jsxRuntime.jsxs(ProHeader_styles.
|
|
317
|
+
children: [/* @__PURE__ */jsxRuntime.jsx(Header_styles.HeaderWrap, {
|
|
318
|
+
children: /* @__PURE__ */jsxRuntime.jsxs(ProHeader_styles.Header, {
|
|
380
319
|
sticky: sticky || !!embedConfig,
|
|
381
320
|
isStickyEmbed: !!embedConfig,
|
|
382
321
|
className,
|
|
@@ -385,172 +324,137 @@ const ProHeader = React.memo(function ProHeader2({
|
|
|
385
324
|
size: embedConfig?.fullWidthHeader ? "full" : "desktop",
|
|
386
325
|
noVerticalMargin: true,
|
|
387
326
|
noPaddings: !!embedConfig?.fullWidthHeader,
|
|
388
|
-
ref: containerRef,
|
|
389
327
|
children: [/* @__PURE__ */jsxRuntime.jsxs(ProHeader_styles.Wrap, {
|
|
390
|
-
|
|
391
|
-
children: [/* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.LeftWrap, {
|
|
328
|
+
children: [/* @__PURE__ */jsxRuntime.jsxs(ProHeader_styles.LeftWrap, {
|
|
392
329
|
$addSpaceOnDesktop: !!embedConfig?.fullWidthHeader,
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
330
|
+
children: [!embedConfig?.hideLogo && /* @__PURE__ */jsxRuntime.jsx(Header_styles.Anchor, {
|
|
331
|
+
href: createSiteUrl([mapping.SiteId.Ui, ""]),
|
|
332
|
+
onClick: homeLinkClickHandler,
|
|
333
|
+
children: embedConfig?.siteTitle ? /* @__PURE__ */jsxRuntime.jsx(Header_styles.SiteTitleWrap, {
|
|
334
|
+
children: embedConfig.siteTitle
|
|
335
|
+
}) : /* @__PURE__ */jsxRuntime.jsx(Header_styles.LogoIconWrap, {
|
|
336
|
+
motif,
|
|
337
|
+
$burger: false,
|
|
338
|
+
children: /* @__PURE__ */jsxRuntime.jsx(StyleableSvgImage.StyleableSvgImage, {
|
|
339
|
+
src: _externalAssets_BPYvPCPi__default["default"],
|
|
340
|
+
width: 17,
|
|
341
|
+
height: 20
|
|
405
342
|
})
|
|
406
|
-
})
|
|
407
|
-
|
|
343
|
+
})
|
|
344
|
+
}), embedConfig?.moveAvatarIconToLeft && avatarHtml, /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.BreakpointsWrap, {
|
|
345
|
+
hideBreakpoint: layout.BREAKPOINTS.TABLET_AND_DOWN,
|
|
346
|
+
children: currentCountryName && /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.CountryButton, {
|
|
347
|
+
"data-test-id": "country-select-btn",
|
|
348
|
+
type: "button",
|
|
408
349
|
onClick: handleStorePickerClick,
|
|
409
|
-
children:
|
|
410
|
-
children: logo.currentStore.flag
|
|
411
|
-
}), logo.currentStore.name]
|
|
412
|
-
})]
|
|
413
|
-
})
|
|
414
|
-
}), /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.CenterWrap, {
|
|
415
|
-
hideBreakpoint: !isSearching ? PRO_HEADER_MOBILE_AND_DOWN : void 0,
|
|
416
|
-
children: isSearching ? /* @__PURE__ */jsxRuntime.jsxs(ProHeader_styles.SearchWrap, {
|
|
417
|
-
children: [/* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.Search, {
|
|
418
|
-
setInputRef: setSearchInputEl,
|
|
419
|
-
onValueChange: handleSearchValueChange,
|
|
420
|
-
placeholder: searchPlaceholder,
|
|
421
|
-
isSearchFocused: !!searchValue || isSearchFocused,
|
|
422
|
-
value: searchValue ?? "",
|
|
423
|
-
showCancel: !!searchValue,
|
|
424
|
-
onCancelClick: handleSearchOnClear,
|
|
425
|
-
width: searchInputWidth ?? 420,
|
|
426
|
-
onFocus: handleSearchOnFocus,
|
|
427
|
-
onBlur: handleSearchOnBlur,
|
|
428
|
-
focusedWidth: searchFocusWidth,
|
|
429
|
-
children: searchInputChildren
|
|
430
|
-
}), /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.SearchCancel, {
|
|
431
|
-
onClick: handleSearchCancel,
|
|
432
|
-
children: formatMessage("Cancel")
|
|
433
|
-
})]
|
|
434
|
-
}) : /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.InlineCategoryWrap, {
|
|
435
|
-
$hide: hideInlineCategories,
|
|
436
|
-
children: /* @__PURE__ */jsxRuntime.jsx(ScrollWrapper.ScrollWrapper, {
|
|
437
|
-
direction: "horizontal",
|
|
438
|
-
align: "center",
|
|
439
|
-
scrollStepType: "scrollScreen",
|
|
440
|
-
fillType: "gradient",
|
|
441
|
-
gradientSize: ProHeader_styles.WRAP_GAP * 4,
|
|
442
|
-
gap: ProHeader_styles.CATEGORY_ITEMS_GAP,
|
|
443
|
-
activeIndex: categories.activeIndex,
|
|
444
|
-
items: categories.items.map((category, i) => ({
|
|
445
|
-
id: category.id,
|
|
446
|
-
render() {
|
|
447
|
-
const active = categories.activeIndex === i;
|
|
448
|
-
return /* @__PURE__ */jsxRuntime.jsx(MenuItem.MenuItem, {
|
|
449
|
-
"data-test-id": `inline-category${active ? "-selected" : ""}`,
|
|
450
|
-
as: "a",
|
|
451
|
-
href: category.url ?? "#",
|
|
452
|
-
onClick: category.onClick && category.url ? e => category.onClick?.(e, category.url) : void 0,
|
|
453
|
-
active,
|
|
454
|
-
motif,
|
|
455
|
-
children: /* @__PURE__ */jsxRuntime.jsx(Header_styles.MenuItemLabel, {
|
|
456
|
-
children: category.label
|
|
457
|
-
})
|
|
458
|
-
}, category.id);
|
|
459
|
-
}
|
|
460
|
-
}))
|
|
350
|
+
children: currentCountryName
|
|
461
351
|
})
|
|
462
|
-
})
|
|
352
|
+
})]
|
|
353
|
+
}), /* @__PURE__ */jsxRuntime.jsxs(ProHeader_styles.CenterWrap, {
|
|
354
|
+
children: [/* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.Search, {
|
|
355
|
+
onValueChange: handleSearchValueChange,
|
|
356
|
+
placeholder: searchPlaceholder,
|
|
357
|
+
isSearchFocused: !!searchValue || isSearchFocused,
|
|
358
|
+
value: searchValue || "",
|
|
359
|
+
showCancel: !!searchValue,
|
|
360
|
+
onCancelClick: () => {
|
|
361
|
+
onSearch?.("");
|
|
362
|
+
},
|
|
363
|
+
width: 420,
|
|
364
|
+
onFocus: handleSearchFocus,
|
|
365
|
+
onBlur: handleSearchBlur,
|
|
366
|
+
hideBreakpoint: layout.BREAKPOINTS.MOBILE_AND_DOWN,
|
|
367
|
+
focusedWidth: searchFocusWidth
|
|
368
|
+
}), /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.BreakpointsWrap, {
|
|
369
|
+
hideBreakpoint: layout.BREAKPOINTS.TABLET_AND_DOWN,
|
|
370
|
+
children: /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.ProductLineSelectorWrap, {
|
|
371
|
+
children: productLineOptions.map(option => /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.ProductLineSelectorItem, {
|
|
372
|
+
onClick: () => handleProductLineChange?.(option.value),
|
|
373
|
+
$active: option.value === productLineValue,
|
|
374
|
+
"data-test-id": `product-line-selector-${option.value}`,
|
|
375
|
+
children: option.label
|
|
376
|
+
}, option.value))
|
|
377
|
+
})
|
|
378
|
+
})]
|
|
463
379
|
}), /* @__PURE__ */jsxRuntime.jsxs(ProHeader_styles.RightWrap, {
|
|
464
380
|
$addSpaceOnDesktop: !!embedConfig?.fullWidthHeader,
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
children: productLine.label
|
|
473
|
-
})
|
|
474
|
-
}, productLine.value))
|
|
475
|
-
}), activeModal !== types.ModalId.ProMobileMenu && !(isSearching && !isMobile) && /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
476
|
-
children: [/* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.ProIconWrap, {
|
|
477
|
-
"data-test-id": "search-btn",
|
|
478
|
-
motif,
|
|
479
|
-
onClick: handleOpenSearch,
|
|
480
|
-
children: /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.ProIconInnerFillWrap, {
|
|
481
|
-
$active: isSearching,
|
|
482
|
-
$transparent: !!embedConfig || !isMobile,
|
|
483
|
-
children: /* @__PURE__ */jsxRuntime.jsx(Header_styles.SvgIcon, {
|
|
484
|
-
src: _externalAssets_g50k1DIN__default["default"],
|
|
485
|
-
width: Header_styles.HEADER_ICON_SIZE,
|
|
486
|
-
height: Header_styles.HEADER_ICON_SIZE
|
|
487
|
-
})
|
|
488
|
-
})
|
|
489
|
-
}), cart && /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.ProIconWrap, {
|
|
490
|
-
motif,
|
|
491
|
-
"data-test-id": "cart-btn",
|
|
492
|
-
onClick: e => cartQuantity > 0 && handleModalOpen(e, types.ModalId.Cart),
|
|
493
|
-
$isDefaultCursor: cartQuantity < 1,
|
|
494
|
-
children: cart?.loading ? /* @__PURE__ */jsxRuntime.jsx(Header_styles.SkeletonCircleLoader, {
|
|
495
|
-
diameter: Header_styles.HEADER_ICON_SIZE
|
|
496
|
-
}) : cartQuantity > 0 ? /* @__PURE__ */jsxRuntime.jsx(Header_styles.CartIcon, {
|
|
497
|
-
itemCount: cartQuantity,
|
|
498
|
-
motif,
|
|
499
|
-
width: Header_styles.HEADER_ICON_SIZE,
|
|
500
|
-
height: Header_styles.HEADER_ICON_SIZE
|
|
501
|
-
}) : /* @__PURE__ */jsxRuntime.jsx(Tooltip.Tooltip, {
|
|
502
|
-
description: translations.cart.empty,
|
|
503
|
-
motif: "light",
|
|
504
|
-
isInteractive: true,
|
|
505
|
-
position: "bottom",
|
|
506
|
-
style: {
|
|
507
|
-
height: `${Header_styles.HEADER_ICON_SIZE}px`
|
|
508
|
-
},
|
|
509
|
-
children: /* @__PURE__ */jsxRuntime.jsx(Header_styles.CartIcon, {
|
|
510
|
-
itemCount: cartQuantity,
|
|
511
|
-
motif,
|
|
512
|
-
width: Header_styles.HEADER_ICON_SIZE,
|
|
513
|
-
height: Header_styles.HEADER_ICON_SIZE
|
|
514
|
-
})
|
|
515
|
-
})
|
|
516
|
-
}), !embedConfig && !handlePurchaseHistoryClick && /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.VerticalDivider, {
|
|
517
|
-
hideBreakpoint: PRO_HEADER_MOBILE_AND_DOWN
|
|
518
|
-
}), isMultiLanguage && !embedConfig?.hideLanguagePicker && /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.ProIconWrap, {
|
|
519
|
-
motif,
|
|
520
|
-
"data-test-id": "language-picker-btn",
|
|
521
|
-
onClick: e => handleModalOpen(e, types.ModalId.Language),
|
|
381
|
+
children: [/* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.ProIconWrap, {
|
|
382
|
+
hideBreakpoint: layout.BREAKPOINTS.MOBILE_UP,
|
|
383
|
+
motif,
|
|
384
|
+
onClick: handleShowSearchTab,
|
|
385
|
+
children: /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.ProIconInnerFillWrap, {
|
|
386
|
+
$active: activeModal === types.ModalId.Search || !!searchValue?.length,
|
|
387
|
+
$transparent: !!embedConfig,
|
|
522
388
|
children: /* @__PURE__ */jsxRuntime.jsx(Header_styles.SvgIcon, {
|
|
523
|
-
src:
|
|
389
|
+
src: _externalAssets_g50k1DIN__default["default"],
|
|
524
390
|
width: Header_styles.HEADER_ICON_SIZE,
|
|
525
391
|
height: Header_styles.HEADER_ICON_SIZE
|
|
526
392
|
})
|
|
527
|
-
})
|
|
528
|
-
|
|
393
|
+
})
|
|
394
|
+
}), cart && /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.ProIconWrap, {
|
|
395
|
+
motif,
|
|
396
|
+
"data-test-id": "cart-btn",
|
|
397
|
+
onClick: e => cartQuantity > 0 && handleModalOpen(e, types.ModalId.Cart),
|
|
398
|
+
$isDefaultCursor: cartQuantity < 1,
|
|
399
|
+
children: cart?.loading ? /* @__PURE__ */jsxRuntime.jsx(Header_styles.SkeletonCircleLoader, {
|
|
400
|
+
diameter: Header_styles.HEADER_ICON_SIZE
|
|
401
|
+
}) : cartQuantity > 0 ? /* @__PURE__ */jsxRuntime.jsx(Header_styles.CartIcon, {
|
|
402
|
+
itemCount: cartQuantity,
|
|
529
403
|
motif,
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
404
|
+
width: Header_styles.HEADER_ICON_SIZE,
|
|
405
|
+
height: Header_styles.HEADER_ICON_SIZE
|
|
406
|
+
}) : /* @__PURE__ */jsxRuntime.jsx(Tooltip.Tooltip, {
|
|
407
|
+
description: translations.cart.empty,
|
|
408
|
+
motif: "light",
|
|
409
|
+
isInteractive: true,
|
|
410
|
+
position: "bottom",
|
|
411
|
+
style: {
|
|
412
|
+
height: `${Header_styles.HEADER_ICON_SIZE}px`
|
|
413
|
+
},
|
|
414
|
+
children: /* @__PURE__ */jsxRuntime.jsx(Header_styles.CartIcon, {
|
|
415
|
+
itemCount: cartQuantity,
|
|
416
|
+
motif,
|
|
534
417
|
width: Header_styles.HEADER_ICON_SIZE,
|
|
535
418
|
height: Header_styles.HEADER_ICON_SIZE
|
|
536
419
|
})
|
|
537
|
-
})
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
420
|
+
})
|
|
421
|
+
}), !embedConfig && !handlePurchaseHistoryClick && /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.VerticalDivider, {
|
|
422
|
+
hideBreakpoint: layout.BREAKPOINTS.TABLET_AND_DOWN
|
|
423
|
+
}), isMultiLanguage && !embedConfig?.hideLanguagePicker && /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.ProIconWrap, {
|
|
424
|
+
motif,
|
|
425
|
+
"data-test-id": "language-picker-btn",
|
|
426
|
+
onClick: e => handleModalOpen(e, types.ModalId.Language),
|
|
427
|
+
children: /* @__PURE__ */jsxRuntime.jsx(Header_styles.SvgIcon, {
|
|
428
|
+
src: _externalAssets_DJH57LL8__default["default"],
|
|
429
|
+
width: Header_styles.HEADER_ICON_SIZE,
|
|
430
|
+
height: Header_styles.HEADER_ICON_SIZE
|
|
431
|
+
})
|
|
432
|
+
}), handlePurchaseHistoryClick && /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.ProIconWrap, {
|
|
433
|
+
hideBreakpoint: layout.BREAKPOINTS.TABLET_AND_DOWN,
|
|
434
|
+
motif,
|
|
435
|
+
"data-test-id": "purchase-history-btn",
|
|
436
|
+
onClick: handlePurchaseHistoryClick,
|
|
437
|
+
children: /* @__PURE__ */jsxRuntime.jsx(Header_styles.SvgIcon, {
|
|
438
|
+
src: HistoryIcon__default["default"],
|
|
439
|
+
width: Header_styles.HEADER_ICON_SIZE,
|
|
440
|
+
height: Header_styles.HEADER_ICON_SIZE
|
|
441
|
+
})
|
|
442
|
+
}), earlyAccess && /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.ProIconWrap, {
|
|
443
|
+
hideBreakpoint: layout.BREAKPOINTS.TABLET_AND_DOWN,
|
|
444
|
+
motif,
|
|
445
|
+
onClick: earlyAccess.onClick,
|
|
446
|
+
children: earlyAccess.loading ? /* @__PURE__ */jsxRuntime.jsx(Header_styles.SkeletonCircleLoader, {
|
|
447
|
+
diameter: Header_styles.HEADER_ICON_SIZE
|
|
448
|
+
}) : /* @__PURE__ */jsxRuntime.jsx(Header_styles.SvgIcon, {
|
|
449
|
+
src: EAIcon__default["default"],
|
|
450
|
+
width: Header_styles.HEADER_ICON_SIZE,
|
|
451
|
+
height: Header_styles.HEADER_ICON_SIZE * 0.8,
|
|
452
|
+
renderedHeight: Header_styles.HEADER_ICON_SIZE * 0.8
|
|
453
|
+
})
|
|
454
|
+
}), !embedConfig?.moveAvatarIconToLeft ? !accountMenu ? avatarHtml : accountMenu : null, /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.VerticalDivider, {
|
|
455
|
+
hideBreakpoint: layout.BREAKPOINTS.TABLET_UP
|
|
552
456
|
}), /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.ProIconWrap, {
|
|
553
|
-
hideBreakpoint:
|
|
457
|
+
hideBreakpoint: layout.BREAKPOINTS.TABLET_UP,
|
|
554
458
|
motif,
|
|
555
459
|
onClick: handleHamburgerClick,
|
|
556
460
|
children: activeModal === types.ModalId.ProMobileMenu ? /* @__PURE__ */jsxRuntime.jsx(Header_styles.SvgIcon, {
|
|
@@ -610,28 +514,43 @@ const ProHeader = React.memo(function ProHeader2({
|
|
|
610
514
|
account
|
|
611
515
|
})
|
|
612
516
|
})
|
|
613
|
-
})), !isSsr && /* @__PURE__ */jsxRuntime.jsx(
|
|
517
|
+
})), !isSsr && /* @__PURE__ */jsxRuntime.jsx(LineLoader.LineLoader, {
|
|
614
518
|
placement: "bottom",
|
|
615
519
|
isLoading: !!showLineLoader
|
|
616
520
|
})]
|
|
617
521
|
}), !isSsr && activeModal === types.ModalId.ProMobileMenu && /* @__PURE__ */jsxRuntime.jsx(ProMobileMenu.NavigationProMobileMenu, {
|
|
618
522
|
translations,
|
|
619
523
|
onClose: handleModalClose,
|
|
620
|
-
|
|
524
|
+
currentCountryName,
|
|
621
525
|
handleStorePickerClick,
|
|
622
526
|
handleOrderHistoryClick,
|
|
623
527
|
handlePurchaseHistoryClick,
|
|
624
528
|
handleProductLineChange,
|
|
625
529
|
productLineValue,
|
|
626
530
|
productLineOptions,
|
|
627
|
-
|
|
628
|
-
hideExtraSection: !!embedConfig
|
|
531
|
+
extraSectionItems: embedConfig?.mobileMenuExtraSectionItems
|
|
629
532
|
})]
|
|
630
533
|
})
|
|
631
|
-
})
|
|
534
|
+
}), /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.SearchTabWrap, {
|
|
535
|
+
$show: activeModal === types.ModalId.Search,
|
|
536
|
+
$isStickyEmbed: !!embedConfig,
|
|
537
|
+
hideBreakpoint: layout.BREAKPOINTS.MOBILE_UP,
|
|
538
|
+
children: /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.Search, {
|
|
539
|
+
setInputRef: setSearchInputRef,
|
|
540
|
+
onValueChange: handleSearchValueChange,
|
|
541
|
+
placeholder: searchPlaceholder,
|
|
542
|
+
isSearchFocused: !!searchValue || isSearchFocused,
|
|
543
|
+
value: searchValue || "",
|
|
544
|
+
showCancel: !!searchValue,
|
|
545
|
+
onCancelClick: () => {
|
|
546
|
+
onSearch?.("");
|
|
547
|
+
},
|
|
548
|
+
onFocus: handleSearchFocus,
|
|
549
|
+
onBlur: handleSearchBlur,
|
|
550
|
+
focusedWidth: searchFocusWidth
|
|
551
|
+
})
|
|
552
|
+
})]
|
|
632
553
|
});
|
|
633
554
|
});
|
|
634
|
-
exports.PRO_HEADER_MOBILE_AND_DOWN = PRO_HEADER_MOBILE_AND_DOWN;
|
|
635
|
-
exports.PRO_HEADER_MOBILE_UP = PRO_HEADER_MOBILE_UP;
|
|
636
555
|
exports.ProHeader = ProHeader;
|
|
637
556
|
//# sourceMappingURL=ProHeader.js.map
|