@ubnt/store.core 9.29.0-alpha.2 → 9.29.0-alpha.20
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 +81 -0
- package/lib/_virtual/_virtual_multi-entry.js +14 -12
- package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
- package/lib/_virtual/_virtual_multi-entry.mjs +14 -12
- package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
- package/lib/apis/smartcat.d.ts +30 -5
- package/lib/apis/smartcat.js +23 -35
- package/lib/apis/smartcat.js.map +1 -1
- package/lib/apis/smartcat.mjs +23 -35
- 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/enterpriseCampus24.jpg +0 -0
- package/lib/assets/enterpriseCampus48.jpg +0 -0
- package/lib/assets/enterpriseCampusAggregation.jpg +0 -0
- package/lib/assets/pause.svg +3 -3
- package/lib/assets/pause2.svg +3 -3
- package/lib/assets/ucgMax.jpg +0 -0
- package/lib/assets/ucgMax2.jpg +0 -0
- package/lib/assets/ucgUltra.jpg +0 -0
- package/lib/assets/ucgUltra2.jpg +0 -0
- package/lib/assets/udmPro.jpg +0 -0
- package/lib/assets/udmPro2.jpg +0 -0
- package/lib/assets/udmProMax.jpg +0 -0
- package/lib/assets/udmProMax2.jpg +0 -0
- package/lib/assets/udmProSpecial.jpg +0 -0
- package/lib/assets/udmProSpecial2.jpg +0 -0
- package/lib/assets/unasDrive.svg +3 -0
- package/lib/components/Accordion/Accordion.js +4 -4
- package/lib/components/Avatar/Avatar.js +2 -2
- package/lib/components/Button/Button.js +5 -5
- package/lib/components/Button/CartButton.js +2 -2
- package/lib/components/CardSection/Card/Card.js +6 -6
- package/lib/components/CardSection/CardSection.js +2 -2
- package/lib/components/CartIcon/CartIcon.js +2 -2
- 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/Container/Container.js +2 -2
- package/lib/components/CustomImage/CustomImage.js +12 -12
- package/lib/components/Explore/Explore.js +5 -5
- package/lib/components/Explore/ExploreData.js +2 -2
- package/lib/components/Explore/ExploreData.js.map +1 -1
- package/lib/components/Explore/ExploreData.mjs +2 -2
- 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 +19 -19
- 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/Header.js +34 -34
- package/lib/components/Header/IsolatedHeader.js +7 -7
- package/lib/components/Header/LanguageFrame/LanguageFrame.js +6 -6
- 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/MobileMenu/MobileMenu.js +6 -6
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +6 -6
- package/lib/components/Header/Overlay/Overlay.js +3 -3
- package/lib/components/Header/ProHeader/ProHeader.js +35 -35
- package/lib/components/Header/translations/ar.json.js +3 -1
- package/lib/components/Header/translations/ar.json.js.map +1 -1
- package/lib/components/Header/translations/ar.json.mjs +3 -2
- package/lib/components/Header/translations/ar.json.mjs.map +1 -1
- package/lib/components/Header/translations/de.json.js +3 -1
- package/lib/components/Header/translations/de.json.js.map +1 -1
- package/lib/components/Header/translations/de.json.mjs +3 -2
- package/lib/components/Header/translations/de.json.mjs.map +1 -1
- package/lib/components/Header/translations/el.json.js +3 -1
- package/lib/components/Header/translations/el.json.js.map +1 -1
- package/lib/components/Header/translations/el.json.mjs +3 -2
- package/lib/components/Header/translations/el.json.mjs.map +1 -1
- package/lib/components/Header/translations/en.json.js +3 -1
- package/lib/components/Header/translations/en.json.js.map +1 -1
- package/lib/components/Header/translations/en.json.mjs +3 -2
- package/lib/components/Header/translations/en.json.mjs.map +1 -1
- package/lib/components/Header/translations/es.json.js +3 -1
- package/lib/components/Header/translations/es.json.js.map +1 -1
- package/lib/components/Header/translations/es.json.mjs +3 -2
- package/lib/components/Header/translations/es.json.mjs.map +1 -1
- package/lib/components/Header/translations/fr.json.js +3 -1
- package/lib/components/Header/translations/fr.json.js.map +1 -1
- package/lib/components/Header/translations/fr.json.mjs +3 -2
- package/lib/components/Header/translations/fr.json.mjs.map +1 -1
- package/lib/components/Header/translations/it.json.js +3 -1
- package/lib/components/Header/translations/it.json.js.map +1 -1
- package/lib/components/Header/translations/it.json.mjs +3 -2
- package/lib/components/Header/translations/it.json.mjs.map +1 -1
- package/lib/components/Header/translations/ja.json.js +3 -1
- package/lib/components/Header/translations/ja.json.js.map +1 -1
- package/lib/components/Header/translations/ja.json.mjs +3 -2
- package/lib/components/Header/translations/ja.json.mjs.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.js +3 -1
- package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.mjs +3 -2
- package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.js +3 -1
- package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.mjs +3 -2
- package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.js +3 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.mjs +3 -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/HeroVideo/HeroVideo.js +5 -5
- package/lib/components/ImageCarousel/ImageCarousel.js +29 -29
- 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/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/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.js +7 -7
- package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.js +18 -18
- 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/MicrositeHeader/MicrositeHeader.js +4 -4
- package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.js +4 -4
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.js +13 -11
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.js.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.mjs +4 -2
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.mjs.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.d.ts +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.js +4 -1
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.js.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.mjs +4 -1
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.mjs.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.d.ts +2 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.js +2 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.js.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.mjs +2 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.mjs.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.d.ts +2 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.js +3 -2
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.js.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.mjs +3 -2
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.mjs.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.d.ts +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.js +4 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.js.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.mjs +4 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.mjs.map +1 -1
- package/lib/components/MicrositeHero/MicrositeHero.js +19 -19
- package/lib/components/MicrositeHero/MicrositeHero.js.map +1 -1
- package/lib/components/MicrositeHero/MicrositeHero.mjs +1 -1
- package/lib/components/MicrositeHero/MicrositeHero.mjs.map +1 -1
- 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/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/ModelCompareV3.types.d.ts +9 -3
- package/lib/components/ModelCompareV3/ProductGroupsGrid.js +3 -3
- package/lib/components/ModelCompareV3/ScrollGroup/ScrollGroup.js +5 -5
- package/lib/components/ModelCompareV3/ScrollGroup/context.js +3 -3
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupItem.js +8 -8
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupSetScroll.js +2 -2
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupTo.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js +7 -7
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridBody.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js +5 -5
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/context.js +3 -3
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Switching/{enterprise24PoE.jpg.js → enterpriseCampus24.jpg.js} +2 -2
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus24.jpg.js.map +1 -0
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus24.jpg.mjs +3 -0
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus24.jpg.mjs.map +1 -0
- package/lib/components/ModelCompareV3/assets/Switching/{enterprise48PoE.jpg.js → enterpriseCampus48.jpg.js} +2 -2
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus48.jpg.js.map +1 -0
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus48.jpg.mjs +3 -0
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus48.jpg.mjs.map +1 -0
- package/lib/components/ModelCompareV3/assets/{XgsPon/uispFiberOltXgs.jpg.js → Switching/enterpriseCampusAggregation.jpg.js} +2 -2
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampusAggregation.jpg.js.map +1 -0
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampusAggregation.jpg.mjs +3 -0
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampusAggregation.jpg.mjs.map +1 -0
- package/lib/components/ModelCompareV3/assets/{Switching/enterpriseXG24.jpg.js → XgsPon/fiberOltXgs.jpg.js} +2 -2
- package/lib/components/ModelCompareV3/assets/XgsPon/fiberOltXgs.jpg.js.map +1 -0
- package/lib/components/ModelCompareV3/assets/XgsPon/fiberOltXgs.jpg.mjs +3 -0
- package/lib/components/ModelCompareV3/assets/XgsPon/fiberOltXgs.jpg.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/AggregationSwitching.d.ts +2 -0
- package/lib/components/ModelCompareV3/data/AggregationSwitching.js +24 -0
- package/lib/components/ModelCompareV3/data/AggregationSwitching.js.map +1 -0
- package/lib/components/ModelCompareV3/data/AggregationSwitching.mjs +22 -0
- package/lib/components/ModelCompareV3/data/AggregationSwitching.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/BaseStation.js +3 -2
- package/lib/components/ModelCompareV3/data/BaseStation.js.map +1 -1
- package/lib/components/ModelCompareV3/data/BaseStation.mjs +3 -2
- package/lib/components/ModelCompareV3/data/BaseStation.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/CloudGateways.js +15 -15
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +10 -10
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js +20 -7
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js.map +1 -1
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs +20 -7
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/Ptz.d.ts +2 -0
- package/lib/components/ModelCompareV3/data/Ptz.js +13 -0
- package/lib/components/ModelCompareV3/data/Ptz.js.map +1 -0
- package/lib/components/ModelCompareV3/data/Ptz.mjs +11 -0
- package/lib/components/ModelCompareV3/data/Ptz.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/WaveMLO.js +3 -4
- package/lib/components/ModelCompareV3/data/WaveMLO.js.map +1 -1
- package/lib/components/ModelCompareV3/data/WaveMLO.mjs +3 -4
- package/lib/components/ModelCompareV3/data/WaveMLO.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/XgsPon.js +2 -2
- package/lib/components/ModelCompareV3/data/XgsPon.js.map +1 -1
- package/lib/components/ModelCompareV3/data/XgsPon.mjs +2 -2
- package/lib/components/ModelCompareV3/data/XgsPon.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/index.d.ts +49 -47
- package/lib/components/ModelCompareV3/data/index.js +100 -94
- package/lib/components/ModelCompareV3/data/index.js.map +1 -1
- package/lib/components/ModelCompareV3/data/index.mjs +100 -94
- package/lib/components/ModelCompareV3/data/index.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.js +8 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.mjs +8 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/connectDisplay.js +1 -1
- package/lib/components/ModelCompareV3/data/products/connectDisplay.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/connectDisplay.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/connectDisplay.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterprise8PoE.js +1 -1
- package/lib/components/ModelCompareV3/data/products/enterprise8PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterprise8PoE.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/enterprise8PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseAccessHub.js +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseAccessHub.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseAccessHub.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseAccessHub.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.d.ts +2 -0
- package/lib/components/ModelCompareV3/data/products/{enterpriseXG24.js → enterpriseAggregation.js} +26 -44
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js.map +1 -0
- package/lib/components/ModelCompareV3/data/products/{enterpriseXG24.mjs → enterpriseAggregation.mjs} +26 -44
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24.d.ts +6 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.d.ts +2 -0
- package/lib/components/ModelCompareV3/data/products/{enterprise24PoE.js → enterpriseCampus24PoE.js} +30 -47
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js.map +1 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs +85 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48.d.ts +6 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.d.ts +2 -0
- package/lib/components/ModelCompareV3/data/products/{enterprise48PoE.js → enterpriseCampus48PoE.js} +31 -48
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js.map +1 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs +85 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/products/evStationLite.js +3 -1
- package/lib/components/ModelCompareV3/data/products/evStationLite.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/evStationLite.mjs +3 -1
- package/lib/components/ModelCompareV3/data/products/evStationLite.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/evStationPro.js +3 -1
- package/lib/components/ModelCompareV3/data/products/evStationPro.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/evStationPro.mjs +3 -1
- package/lib/components/ModelCompareV3/data/products/evStationPro.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/{uispFiberOltXgs.d.ts → fiberOltXgs.d.ts} +1 -1
- package/lib/components/ModelCompareV3/data/products/{uispFiberOltXgs.js → fiberOltXgs.js} +8 -8
- package/lib/components/ModelCompareV3/data/products/fiberOltXgs.js.map +1 -0
- package/lib/components/ModelCompareV3/data/products/{uispFiberOltXgs.mjs → fiberOltXgs.mjs} +8 -8
- package/lib/components/ModelCompareV3/data/products/fiberOltXgs.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js +8 -1
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs +8 -1
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/industrial.js +1 -1
- package/lib/components/ModelCompareV3/data/products/industrial.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/industrial.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/industrial.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/lite16PoE.js +1 -1
- package/lib/components/ModelCompareV3/data/products/lite16PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/lite16PoE.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/lite16PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/lite8PoE.js +1 -1
- package/lib/components/ModelCompareV3/data/products/lite8PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/lite8PoE.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/lite8PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/missionCritical.js +8 -1
- package/lib/components/ModelCompareV3/data/products/missionCritical.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/missionCritical.mjs +8 -1
- package/lib/components/ModelCompareV3/data/products/missionCritical.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/phoneTouch.js +1 -1
- package/lib/components/ModelCompareV3/data/products/phoneTouch.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/phoneTouch.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/phoneTouch.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/phoneTouchMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/phoneTouchMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/phoneTouchMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/phoneTouchMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professional24.js +1 -1
- package/lib/components/ModelCompareV3/data/products/professional24.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professional24.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/professional24.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professional24PoE.js +1 -1
- package/lib/components/ModelCompareV3/data/products/professional24PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professional24PoE.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/professional24PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professional48.js +1 -1
- package/lib/components/ModelCompareV3/data/products/professional48.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professional48.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/professional48.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professional48PoE.js +1 -1
- package/lib/components/ModelCompareV3/data/products/professional48PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professional48PoE.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/professional48PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professional8PoE.js +1 -1
- package/lib/components/ModelCompareV3/data/products/professional8PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professional8PoE.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/professional8PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/standard16PoE.js +1 -1
- package/lib/components/ModelCompareV3/data/products/standard16PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/standard16PoE.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/standard16PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/standard24.js +1 -1
- package/lib/components/ModelCompareV3/data/products/standard24.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/standard24.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/standard24.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/standard24PoE.js +1 -1
- package/lib/components/ModelCompareV3/data/products/standard24PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/standard24PoE.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/standard24PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/standard48.js +1 -1
- package/lib/components/ModelCompareV3/data/products/standard48.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/standard48.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/standard48.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/standard48PoE.js +1 -1
- package/lib/components/ModelCompareV3/data/products/standard48PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/standard48PoE.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/standard48PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js +6 -4
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs +6 -4
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.js +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesStandard.js +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesStandard.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucCast.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucCast.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucCast.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/ucCast.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucCastPro.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucCastPro.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucCastPro.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/ucCastPro.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udb.js +4 -7
- package/lib/components/ModelCompareV3/data/products/udb.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udb.mjs +4 -7
- package/lib/components/ModelCompareV3/data/products/udb.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udbPro.js +3 -5
- package/lib/components/ModelCompareV3/data/products/udbPro.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udbPro.mjs +3 -5
- package/lib/components/ModelCompareV3/data/products/udbPro.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/uispDish.js +12 -12
- package/lib/components/ModelCompareV3/data/products/uispDish.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/uispDish.mjs +12 -12
- package/lib/components/ModelCompareV3/data/products/uispDish.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/umr.js +1 -1
- package/lib/components/ModelCompareV3/data/products/umr.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/umr.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/umr.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/umrIndustrial.js +1 -1
- package/lib/components/ModelCompareV3/data/products/umrIndustrial.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/umrIndustrial.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/umrIndustrial.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/umrUltra.js +1 -1
- package/lib/components/ModelCompareV3/data/products/umrUltra.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/umrUltra.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/umrUltra.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveAp.js +3 -3
- package/lib/components/ModelCompareV3/data/products/waveAp.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveAp.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/waveAp.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveApGen2.js +2 -2
- package/lib/components/ModelCompareV3/data/products/waveApGen2.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveApGen2.mjs +2 -2
- package/lib/components/ModelCompareV3/data/products/waveApGen2.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveApMicro.js +5 -5
- package/lib/components/ModelCompareV3/data/products/waveApMicro.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveApMicro.mjs +5 -5
- package/lib/components/ModelCompareV3/data/products/waveApMicro.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveFiberOlt.js +4 -13
- package/lib/components/ModelCompareV3/data/products/waveFiberOlt.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveFiberOlt.mjs +4 -13
- package/lib/components/ModelCompareV3/data/products/waveFiberOlt.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveFiberOnu.js +3 -4
- package/lib/components/ModelCompareV3/data/products/waveFiberOnu.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveFiberOnu.mjs +3 -4
- package/lib/components/ModelCompareV3/data/products/waveFiberOnu.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveMLO5.js +4 -12
- package/lib/components/ModelCompareV3/data/products/waveMLO5.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveMLO5.mjs +4 -12
- package/lib/components/ModelCompareV3/data/products/waveMLO5.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveMLO6.js +5 -11
- package/lib/components/ModelCompareV3/data/products/waveMLO6.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveMLO6.mjs +5 -11
- package/lib/components/ModelCompareV3/data/products/waveMLO6.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/properties/index.d.ts +2 -1
- package/lib/components/ModelCompareV3/data/properties/index.js +4 -2
- package/lib/components/ModelCompareV3/data/properties/index.js.map +1 -1
- package/lib/components/ModelCompareV3/data/properties/index.mjs +2 -1
- package/lib/components/ModelCompareV3/data/properties/index.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/properties/{bandwidthPuncturing.d.ts → linkPuncturing.d.ts} +1 -1
- package/lib/components/ModelCompareV3/data/properties/{bandwidthPuncturing.js → linkPuncturing.js} +5 -5
- package/lib/components/ModelCompareV3/data/properties/linkPuncturing.js.map +1 -0
- package/lib/components/ModelCompareV3/data/properties/linkPuncturing.mjs +10 -0
- package/lib/components/ModelCompareV3/data/properties/linkPuncturing.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/properties/maxTotalThroughput.d.ts +2 -0
- package/lib/components/ModelCompareV3/data/properties/maxTotalThroughput.js +18 -0
- package/lib/components/ModelCompareV3/data/properties/maxTotalThroughput.js.map +1 -0
- package/lib/components/ModelCompareV3/data/properties/maxTotalThroughput.mjs +10 -0
- package/lib/components/ModelCompareV3/data/properties/maxTotalThroughput.mjs.map +1 -0
- package/lib/components/ModelCompareV3/translations/ar.json.js +35 -40
- package/lib/components/ModelCompareV3/translations/ar.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/ar.json.mjs +35 -40
- package/lib/components/ModelCompareV3/translations/ar.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/de.json.js +34 -39
- package/lib/components/ModelCompareV3/translations/de.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/de.json.mjs +34 -39
- package/lib/components/ModelCompareV3/translations/de.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/el.json.js +35 -40
- package/lib/components/ModelCompareV3/translations/el.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/el.json.mjs +35 -40
- package/lib/components/ModelCompareV3/translations/el.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/en.json.js +29 -55
- package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/en.json.mjs +29 -55
- package/lib/components/ModelCompareV3/translations/en.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/es.json.js +34 -39
- package/lib/components/ModelCompareV3/translations/es.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/es.json.mjs +34 -39
- package/lib/components/ModelCompareV3/translations/es.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/fr.json.js +35 -40
- package/lib/components/ModelCompareV3/translations/fr.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/fr.json.mjs +35 -40
- package/lib/components/ModelCompareV3/translations/fr.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/it.json.js +35 -40
- package/lib/components/ModelCompareV3/translations/it.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/it.json.mjs +35 -40
- package/lib/components/ModelCompareV3/translations/it.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/ja.json.js +34 -39
- package/lib/components/ModelCompareV3/translations/ja.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/ja.json.mjs +34 -39
- package/lib/components/ModelCompareV3/translations/ja.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/pt-BR.json.js +34 -39
- package/lib/components/ModelCompareV3/translations/pt-BR.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs +34 -39
- package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/useModelCompareTranslation.d.ts +2 -2
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.js +34 -39
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs +34 -39
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js +34 -39
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs +34 -39
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.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 +8 -8
- 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/ProductSectionTabs/ProductSectionTabs.js +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.styles.d.ts +11 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +80 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +66 -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 +4 -4
- package/lib/components/RelatedProducts/RelatedProducts.js +5 -5
- 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/ReverseLoopingVideo/ReverseLoopingVideo.js +5 -5
- package/lib/components/ScrollWrapper/ScrollWrapper.js +17 -17
- package/lib/components/Search/Input/Input.js +4 -4
- 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 +19 -19
- package/lib/components/StorageSliders/StorageSliders.js +4 -4
- package/lib/components/Tooltip/Tooltip.js +5 -5
- package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js +7 -7
- package/lib/components/VariantSelector/Variant/Variant.js +40 -40
- package/lib/components/VariantSelector/VariantSelector.js +16 -16
- package/lib/components/VideoPlayerNew/VideoPlayer.js +21 -21
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +2 -2
- package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
- package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +2 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/index.mjs +2 -0
- package/lib/components/index.mjs.map +1 -1
- package/lib/constants/address.d.ts +2 -2
- package/lib/constants/address.js +3 -3
- package/lib/constants/address.js.map +1 -1
- package/lib/constants/address.mjs +3 -3
- package/lib/constants/address.mjs.map +1 -1
- package/lib/constants/icons/menu/index.d.ts +1 -0
- package/lib/constants/icons/menu/index.js +9 -0
- package/lib/constants/icons/menu/index.js.map +1 -1
- package/lib/constants/icons/menu/index.mjs +2 -0
- package/lib/constants/icons/menu/index.mjs.map +1 -1
- package/lib/constants/icons/menu/unasDrive.svg.js +27 -0
- package/lib/constants/icons/menu/unasDrive.svg.js.map +1 -0
- package/lib/constants/icons/menu/unasDrive.svg.mjs +3 -0
- package/lib/constants/icons/menu/unasDrive.svg.mjs.map +1 -0
- package/lib/constants/proStoreCategories/mapping/filters.d.ts +15 -0
- package/lib/constants/proStoreCategories/mapping/filters.js +15 -0
- package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/filters.mjs +15 -0
- package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.d.ts +2 -2
- package/lib/constants/proStoreCategories/mapping/index.js +52 -38
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +52 -38
- package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/mapping.d.ts +11 -0
- package/lib/constants/proStoreCategories/mapping/redirects.js +9 -1
- package/lib/constants/proStoreCategories/mapping/redirects.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/redirects.mjs +9 -1
- package/lib/constants/proStoreCategories/mapping/redirects.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.d.ts +5 -7
- package/lib/constants/proStoreCategories/mapping/unifi.js +5 -7
- package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs +5 -7
- package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js +12 -9
- package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.mjs +12 -10
- package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.js +12 -9
- package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.mjs +12 -10
- package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.js +12 -9
- package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.mjs +12 -10
- package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +4 -4
- package/lib/constants/proStoreCategories/translations/en.json.mjs +4 -4
- package/lib/constants/proStoreCategories/translations/es.json.js +12 -9
- package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.mjs +12 -10
- package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +12 -9
- package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +12 -10
- package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.js +12 -9
- package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.mjs +12 -10
- package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js +12 -9
- package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.mjs +12 -10
- package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js +12 -9
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +12 -10
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +12 -9
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +12 -10
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +12 -9
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +12 -10
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/constants/proStoreFilters/mapping.d.ts +44 -3
- package/lib/constants/proStoreFilters/mapping.js +111 -6
- package/lib/constants/proStoreFilters/mapping.js.map +1 -1
- package/lib/constants/proStoreFilters/mapping.mjs +111 -6
- package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
- package/lib/contexts/MenuContext/context.js +32 -32
- package/lib/contexts/MenuContext/mapping.d.ts +1 -1
- package/lib/contexts/MenuContext/mapping.js +31 -13
- package/lib/contexts/MenuContext/mapping.js.map +1 -1
- package/lib/contexts/MenuContext/mapping.mjs +30 -13
- package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
- package/lib/contexts/MicrositeMenuContext/context.js +9 -9
- package/lib/contexts/MicrositeMenuContext/mapping.js +8 -6
- package/lib/contexts/MicrositeMenuContext/mapping.js.map +1 -1
- package/lib/contexts/MicrositeMenuContext/mapping.mjs +8 -6
- package/lib/contexts/MicrositeMenuContext/mapping.mjs.map +1 -1
- package/lib/contexts/MicrositeMenuContext/translations/en.json.js +2 -2
- package/lib/contexts/MicrositeMenuContext/translations/en.json.mjs +2 -2
- package/lib/contexts/MicrositeMenuContext/translations.d.ts +2 -2
- package/lib/helpers/proStoreCategories.js +2 -2
- 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/address.js +1 -1
- package/lib/utils/address.js.map +1 -1
- package/lib/utils/address.mjs +1 -1
- package/lib/utils/address.mjs.map +1 -1
- package/lib/utils/money/constants.d.ts +12 -0
- package/lib/utils/money/constants.js +17 -1
- package/lib/utils/money/constants.js.map +1 -1
- package/lib/utils/money/constants.mjs +17 -2
- package/lib/utils/money/constants.mjs.map +1 -1
- package/lib/utils/money/format.js +17 -4
- package/lib/utils/money/format.js.map +1 -1
- package/lib/utils/money/format.mjs +18 -5
- package/lib/utils/money/format.mjs.map +1 -1
- package/lib/utils/money/index.js +1 -0
- package/lib/utils/money/index.js.map +1 -1
- package/lib/utils/money/index.mjs +1 -1
- package/package.json +1 -1
- package/lib/assets/enterprise24PoE.jpg +0 -0
- package/lib/assets/enterprise48PoE.jpg +0 -0
- package/lib/assets/enterpriseXG24.jpg +0 -0
- package/lib/components/ModelCompareV3/assets/Switching/enterprise24PoE.jpg.js.map +0 -1
- package/lib/components/ModelCompareV3/assets/Switching/enterprise24PoE.jpg.mjs +0 -3
- package/lib/components/ModelCompareV3/assets/Switching/enterprise24PoE.jpg.mjs.map +0 -1
- package/lib/components/ModelCompareV3/assets/Switching/enterprise48PoE.jpg.js.map +0 -1
- package/lib/components/ModelCompareV3/assets/Switching/enterprise48PoE.jpg.mjs +0 -3
- package/lib/components/ModelCompareV3/assets/Switching/enterprise48PoE.jpg.mjs.map +0 -1
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseXG24.jpg.js.map +0 -1
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseXG24.jpg.mjs +0 -3
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseXG24.jpg.mjs.map +0 -1
- package/lib/components/ModelCompareV3/assets/XgsPon/uispFiberOltXgs.jpg.js.map +0 -1
- package/lib/components/ModelCompareV3/assets/XgsPon/uispFiberOltXgs.jpg.mjs +0 -3
- package/lib/components/ModelCompareV3/assets/XgsPon/uispFiberOltXgs.jpg.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterprise24PoE.js.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterprise24PoE.mjs +0 -102
- package/lib/components/ModelCompareV3/data/products/enterprise24PoE.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterprise48PoE.js.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterprise48PoE.mjs +0 -102
- package/lib/components/ModelCompareV3/data/products/enterprise48PoE.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseXG24.js.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseXG24.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/products/uispFiberOltXgs.js.map +0 -1
- package/lib/components/ModelCompareV3/data/products/uispFiberOltXgs.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/properties/bandwidthPuncturing.js.map +0 -1
- package/lib/components/ModelCompareV3/data/properties/bandwidthPuncturing.mjs +0 -10
- package/lib/components/ModelCompareV3/data/properties/bandwidthPuncturing.mjs.map +0 -1
- /package/lib/assets/{uispFiberOltXgs.jpg → fiberOltXgs.jpg} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
var url = require('../../../../constants/url.js');
|
|
6
6
|
require('../../../../contexts/MenuContext/mapping.js');
|
|
7
7
|
require('../../../../hooks/index.js');
|
|
@@ -54,14 +54,14 @@ const AccountFrameMobile = function AccountFrameMobile2({
|
|
|
54
54
|
}).then(res => res.default)
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
|
-
const hasAccountEvents =
|
|
57
|
+
const hasAccountEvents = React.useMemo(() => {
|
|
58
58
|
return !!(account?.handleLogin && account.handleRegister && account.handleLogout);
|
|
59
59
|
}, [account]);
|
|
60
|
-
const handleUnifiSiteManager =
|
|
60
|
+
const handleUnifiSiteManager = React.useCallback(() => {
|
|
61
61
|
window.open(url.ExternalUrl.UNIFI_SITE_MANAGER);
|
|
62
62
|
onClose();
|
|
63
63
|
}, [onClose]);
|
|
64
|
-
const onCloseFn =
|
|
64
|
+
const onCloseFn = React.useCallback(fn => {
|
|
65
65
|
return () => {
|
|
66
66
|
fn?.();
|
|
67
67
|
onClose();
|
|
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
4
4
|
var AccountMenu$1 = require('@ubnt/ui-components/aria/AccountMenu');
|
|
5
5
|
var Avatar = require('@ubnt/ui-components/aria/Avatar');
|
|
6
6
|
var Button = require('@ubnt/ui-components/Button');
|
|
7
|
-
var
|
|
7
|
+
var React = require('react');
|
|
8
8
|
var reactUse = require('react-use');
|
|
9
9
|
require('../../../assets/icons/menu/icon-avatar-placeholder-dark.png.js');
|
|
10
10
|
require('../../../assets/icons/menu/icon-avatar-placeholder.png.js');
|
|
@@ -90,30 +90,30 @@ const AccountMenu = ({
|
|
|
90
90
|
[constants.Language.Tw]: () => Promise.resolve(en["default"])
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
|
-
const megaphoneHttpService =
|
|
93
|
+
const megaphoneHttpService = React.useMemo(() => {
|
|
94
94
|
if (megaphoneServiceUrl) {
|
|
95
95
|
return new megaphone_http_service["default"](megaphoneServiceUrl);
|
|
96
96
|
}
|
|
97
97
|
return null;
|
|
98
98
|
}, [megaphoneServiceUrl]);
|
|
99
|
-
const hasAccountEvents =
|
|
99
|
+
const hasAccountEvents = React.useMemo(() => {
|
|
100
100
|
return !!(account && (account.handleLogin || account.handleRegister || account.handleLogout));
|
|
101
101
|
}, [account]);
|
|
102
|
-
const handleLogout =
|
|
102
|
+
const handleLogout = React.useCallback(() => {
|
|
103
103
|
account?.handleLogout?.();
|
|
104
104
|
}, [account]);
|
|
105
|
-
const handleUnifiSiteManager =
|
|
105
|
+
const handleUnifiSiteManager = React.useCallback(() => {
|
|
106
106
|
window.open(url.ExternalUrl.UNIFI_SITE_MANAGER);
|
|
107
107
|
}, []);
|
|
108
|
-
const handleOrderHistoryClick =
|
|
108
|
+
const handleOrderHistoryClick = React.useCallback(() => {
|
|
109
109
|
account?.handleOrderHistory?.();
|
|
110
110
|
}, [account]);
|
|
111
|
-
const onManageAccount =
|
|
111
|
+
const onManageAccount = React.useCallback(() => {
|
|
112
112
|
account?.handleManageAccount?.();
|
|
113
113
|
}, [account]);
|
|
114
|
-
const [announcements, setAnnouncements] =
|
|
115
|
-
const [, setIsAnnouncementsLoading] =
|
|
116
|
-
|
|
114
|
+
const [announcements, setAnnouncements] = React.useState([]);
|
|
115
|
+
const [, setIsAnnouncementsLoading] = React.useState(false);
|
|
116
|
+
React.useEffect(() => {
|
|
117
117
|
if (!megaphoneHttpService) {
|
|
118
118
|
return;
|
|
119
119
|
}
|
|
@@ -122,12 +122,12 @@ const AccountMenu = ({
|
|
|
122
122
|
data
|
|
123
123
|
}) => setAnnouncements(data ?? [])).catch(e => console.error(e)).finally(() => setIsAnnouncementsLoading(false));
|
|
124
124
|
}, [megaphoneHttpService]);
|
|
125
|
-
const unreadAnnouncements =
|
|
125
|
+
const unreadAnnouncements = React.useMemo(() => {
|
|
126
126
|
return announcements.filter(({
|
|
127
127
|
isRead
|
|
128
128
|
}) => !isRead);
|
|
129
129
|
}, [announcements]);
|
|
130
|
-
const markAsRead =
|
|
130
|
+
const markAsRead = React.useCallback(async announcement => {
|
|
131
131
|
if (!megaphoneHttpService) {
|
|
132
132
|
return;
|
|
133
133
|
}
|
|
@@ -139,7 +139,7 @@ const AccountMenu = ({
|
|
|
139
139
|
setAnnouncements([...filtered, announcement]);
|
|
140
140
|
});
|
|
141
141
|
}, [announcements, megaphoneHttpService]);
|
|
142
|
-
const getAnnouncementButtons =
|
|
142
|
+
const getAnnouncementButtons = React.useCallback((announcement, markAsRead2, onExternalClick) => {
|
|
143
143
|
return [/* @__PURE__ */jsxRuntime.jsx(Button.Button, {
|
|
144
144
|
variant: "inline",
|
|
145
145
|
type: "button",
|
|
@@ -154,7 +154,7 @@ const AccountMenu = ({
|
|
|
154
154
|
children: formatMessage("Show Me")
|
|
155
155
|
}, `btn-show-me-${announcement.announcementId}`)];
|
|
156
156
|
}, [formatMessage]);
|
|
157
|
-
const mappedAnnouncements =
|
|
157
|
+
const mappedAnnouncements = React.useMemo(() => {
|
|
158
158
|
return (unreadAnnouncements ?? [])?.map(announcement => ({
|
|
159
159
|
...announcement,
|
|
160
160
|
id: announcement.announcementId,
|
|
@@ -175,7 +175,7 @@ const AccountMenu = ({
|
|
|
175
175
|
animateIn,
|
|
176
176
|
animateOut
|
|
177
177
|
} = Avatar.useAnnouncementAnimation(START_KEY, "userAvatar" /* UserAvatar */);
|
|
178
|
-
|
|
178
|
+
React.useEffect(() => {
|
|
179
179
|
if (announcements?.length) {
|
|
180
180
|
animateIn();
|
|
181
181
|
return;
|
|
@@ -185,10 +185,10 @@ const AccountMenu = ({
|
|
|
185
185
|
}
|
|
186
186
|
animateOut();
|
|
187
187
|
}, [animateIn, animateOut, announcements, display]);
|
|
188
|
-
const showOrderHistory =
|
|
189
|
-
const showLogin =
|
|
190
|
-
const showUiAccount =
|
|
191
|
-
const unifiSiteManagerButtonVariant =
|
|
188
|
+
const showOrderHistory = React.useMemo(() => !!(account?.customer && account?.handleOrderHistory), [account?.customer, account?.handleOrderHistory]);
|
|
189
|
+
const showLogin = React.useMemo(() => !!(!account?.customer && account?.handleLogin), [account?.customer, account?.handleLogin]);
|
|
190
|
+
const showUiAccount = React.useMemo(() => !!(!hasAccountEvents || account?.customer && !account?.handleManageAccount), [account?.customer, account?.handleManageAccount, hasAccountEvents]);
|
|
191
|
+
const unifiSiteManagerButtonVariant = React.useMemo(() => {
|
|
192
192
|
if (showOrderHistory || showLogin || showUiAccount) {
|
|
193
193
|
return "tertiary";
|
|
194
194
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
var reactUse = require('react-use');
|
|
6
6
|
require('../../../../assets/icons/cartEmpty.svg.js');
|
|
7
7
|
require('../../../StaticModal/index.js');
|
|
@@ -24,8 +24,8 @@ const EmptyCartModal = function EmptyCartModal2({
|
|
|
24
24
|
open,
|
|
25
25
|
onClose
|
|
26
26
|
}) {
|
|
27
|
-
const ref =
|
|
28
|
-
const handleClose =
|
|
27
|
+
const ref = React.useRef(null);
|
|
28
|
+
const handleClose = React.useCallback(() => {
|
|
29
29
|
onClose();
|
|
30
30
|
}, [onClose]);
|
|
31
31
|
reactUse.useClickAway(ref, () => handleClose(), ["click"]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
require('../../../assets/icons/cart.svg.js');
|
|
6
6
|
require('../../../constants/icons/index.js');
|
|
7
7
|
require('../../StyleableSvgImage/index.js');
|
|
@@ -27,16 +27,16 @@ const CartModal = function CartModal2({
|
|
|
27
27
|
onClose,
|
|
28
28
|
cart
|
|
29
29
|
}) {
|
|
30
|
-
const handleReviewClick =
|
|
30
|
+
const handleReviewClick = React.useCallback(() => {
|
|
31
31
|
onClose();
|
|
32
32
|
cart?.onReview();
|
|
33
33
|
}, [cart, onClose]);
|
|
34
|
-
const bodyItemsRef =
|
|
35
|
-
const [bodyItemsGradient, setBodyItemsGradient] =
|
|
34
|
+
const bodyItemsRef = React.useRef(null);
|
|
35
|
+
const [bodyItemsGradient, setBodyItemsGradient] = React.useState({
|
|
36
36
|
top: false,
|
|
37
37
|
bottom: false
|
|
38
38
|
});
|
|
39
|
-
|
|
39
|
+
React.useEffect(() => {
|
|
40
40
|
const el = bodyItemsRef.current;
|
|
41
41
|
if (!el) return;
|
|
42
42
|
const handleSetBodyItemsGradient = () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
require('../../../../constants/icons/index.js');
|
|
6
6
|
require('../../../CustomImage/index.js');
|
|
7
7
|
require('../../../StyleableSvgImage/index.js');
|
|
@@ -23,11 +23,11 @@ const CartModalItem = function CartModalItem2({
|
|
|
23
23
|
item,
|
|
24
24
|
translations
|
|
25
25
|
}) {
|
|
26
|
-
const inputRef =
|
|
27
|
-
const controlsDisableIncrease =
|
|
26
|
+
const inputRef = React.useRef(null);
|
|
27
|
+
const controlsDisableIncrease = React.useMemo(() => {
|
|
28
28
|
return item.controls?.quantityMax ? item.quantity >= item.controls.quantityMax : false;
|
|
29
29
|
}, [item.controls.quantityMax, item.quantity]);
|
|
30
|
-
const onQuantityInputChange =
|
|
30
|
+
const onQuantityInputChange = React.useCallback(e => {
|
|
31
31
|
const value = parseInt(e.target.value);
|
|
32
32
|
const newQuantity = Math.max(0, Math.min(!isNaN(value) ? value : item.quantity, item.controls?.quantityMax ?? Infinity));
|
|
33
33
|
item.controls?.onQuantityChange(newQuantity);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var LineLoader = require('@ubnt/ui-components/LineLoader');
|
|
5
5
|
var merge = require('lodash/merge');
|
|
6
|
-
var
|
|
6
|
+
var React = require('react');
|
|
7
7
|
var reactUse = require('react-use');
|
|
8
8
|
require('../../constants/icons/index.js');
|
|
9
9
|
var layout = require('../../constants/layout.js');
|
|
@@ -65,7 +65,7 @@ var _externalAssets_TKrekyEi__default = /*#__PURE__*/_interopDefault(_externalAs
|
|
|
65
65
|
var logoUnifi__default = /*#__PURE__*/_interopDefault(logoUnifi);
|
|
66
66
|
var globe__default = /*#__PURE__*/_interopDefault(globe);
|
|
67
67
|
"use strict";
|
|
68
|
-
const GlobalHeader =
|
|
68
|
+
const GlobalHeader = React.memo(function GlobalHeader2({
|
|
69
69
|
className,
|
|
70
70
|
motif: propMotif,
|
|
71
71
|
translations: initialTranslations,
|
|
@@ -91,7 +91,7 @@ const GlobalHeader = react.memo(function GlobalHeader2({
|
|
|
91
91
|
accountMenu
|
|
92
92
|
}) {
|
|
93
93
|
const isMobile = reactUse.useMedia(layout.BREAKPOINTS.TOP_NAV_MOBILE_AND_DOWN, false);
|
|
94
|
-
const translations =
|
|
94
|
+
const translations = React.useMemo(() => {
|
|
95
95
|
return merge__default["default"](Header_types.defaultHeaderTranslations, initialTranslations);
|
|
96
96
|
}, [initialTranslations]);
|
|
97
97
|
const {
|
|
@@ -152,20 +152,20 @@ const GlobalHeader = react.memo(function GlobalHeader2({
|
|
|
152
152
|
}).then(res => res.default)
|
|
153
153
|
}
|
|
154
154
|
});
|
|
155
|
-
|
|
155
|
+
React.useEffect(() => {
|
|
156
156
|
setMotif(propMotif);
|
|
157
157
|
}, [propMotif, setMotif]);
|
|
158
|
-
const [initialActiveModalDone, setInitialActiveModalSet] =
|
|
159
|
-
|
|
158
|
+
const [initialActiveModalDone, setInitialActiveModalSet] = React.useState(false);
|
|
159
|
+
React.useEffect(() => {
|
|
160
160
|
if (!initialActiveModal || initialActiveModalDone) return;
|
|
161
161
|
setActiveModal(initialActiveModal);
|
|
162
162
|
setInitialActiveModalSet(true);
|
|
163
163
|
}, [initialActiveModal, initialActiveModalDone, setActiveModal]);
|
|
164
|
-
|
|
164
|
+
React.useEffect(() => {
|
|
165
165
|
if (activeModal === prevActiveModal) return;
|
|
166
166
|
onActiveModal?.(activeModal, prevActiveModal);
|
|
167
167
|
}, [activeModal, onActiveModal, prevActiveModal]);
|
|
168
|
-
const handleModalOpen =
|
|
168
|
+
const handleModalOpen = React.useCallback((e, id) => {
|
|
169
169
|
e?.stopPropagation();
|
|
170
170
|
if (activeModal !== id) {
|
|
171
171
|
onModalOpen?.();
|
|
@@ -180,14 +180,14 @@ const GlobalHeader = react.memo(function GlobalHeader2({
|
|
|
180
180
|
}
|
|
181
181
|
setActiveModal(!id || activeModal === id ? null : id);
|
|
182
182
|
}, [activeModal, onCartClick, setActiveModal, onModalOpen, createSiteUrl]);
|
|
183
|
-
const handleModalClose =
|
|
183
|
+
const handleModalClose = React.useCallback(() => {
|
|
184
184
|
setActiveModal(null);
|
|
185
185
|
}, [setActiveModal]);
|
|
186
186
|
reactUse.useKeyPressEvent("Escape", handleModalClose);
|
|
187
|
-
const cartQuantity =
|
|
187
|
+
const cartQuantity = React.useMemo(() => {
|
|
188
188
|
return cart?.items.reduce((sum, item) => sum + item.quantity, 0) ?? 0;
|
|
189
189
|
}, [cart?.items]);
|
|
190
|
-
const handleHamburgerClick =
|
|
190
|
+
const handleHamburgerClick = React.useCallback(() => {
|
|
191
191
|
if (!isMobile) return;
|
|
192
192
|
if (activeModal === types.ModalId.MobileMenu) {
|
|
193
193
|
setActiveModal(null);
|
|
@@ -195,19 +195,19 @@ const GlobalHeader = react.memo(function GlobalHeader2({
|
|
|
195
195
|
setActiveModal(types.ModalId.MobileMenu);
|
|
196
196
|
}
|
|
197
197
|
}, [activeModal, isMobile, setActiveModal]);
|
|
198
|
-
const headerBarMotif =
|
|
198
|
+
const headerBarMotif = React.useMemo(() => {
|
|
199
199
|
if (activeModal === types.ModalId.Search) {
|
|
200
200
|
return "dark";
|
|
201
201
|
}
|
|
202
202
|
return motif;
|
|
203
203
|
}, [activeModal, motif]);
|
|
204
|
-
const [showTouchMicrositeMenu, setShowTouchMicrositeMenu] =
|
|
205
|
-
const logoRef =
|
|
204
|
+
const [showTouchMicrositeMenu, setShowTouchMicrositeMenu] = React.useState(false);
|
|
205
|
+
const logoRef = React.useRef(null);
|
|
206
206
|
const logoHover = reactUse.useHoverDirty(logoRef);
|
|
207
|
-
const showMicrositeMenu =
|
|
207
|
+
const showMicrositeMenu = React.useMemo(() => {
|
|
208
208
|
return logoHover || showTouchMicrositeMenu;
|
|
209
209
|
}, [logoHover, showTouchMicrositeMenu]);
|
|
210
|
-
const onLogoAnchorTouchEnd =
|
|
210
|
+
const onLogoAnchorTouchEnd = React.useCallback(ev => {
|
|
211
211
|
if (!micrositeMenu && !embedConfig?.homeLinkClickHandler) return;
|
|
212
212
|
ev.preventDefault();
|
|
213
213
|
if (embedConfig?.homeLinkClickHandler) {
|
|
@@ -216,8 +216,8 @@ const GlobalHeader = react.memo(function GlobalHeader2({
|
|
|
216
216
|
}
|
|
217
217
|
setShowTouchMicrositeMenu(show => !show);
|
|
218
218
|
}, [embedConfig, micrositeMenu]);
|
|
219
|
-
const wrapRef =
|
|
220
|
-
|
|
219
|
+
const wrapRef = React.useRef(null);
|
|
220
|
+
React.useEffect(() => {
|
|
221
221
|
if (!wrapRef.current) {
|
|
222
222
|
setNavigationOutOfView(true);
|
|
223
223
|
return;
|
|
@@ -231,7 +231,7 @@ const GlobalHeader = react.memo(function GlobalHeader2({
|
|
|
231
231
|
const {
|
|
232
232
|
y: scrollY
|
|
233
233
|
} = reactUse.useWindowScroll();
|
|
234
|
-
const sticky =
|
|
234
|
+
const sticky = React.useMemo(() => {
|
|
235
235
|
return (
|
|
236
236
|
// Set as sticky if mobile menu is open
|
|
237
237
|
activeModal === types.ModalId.MobileMenu ||
|
|
@@ -239,13 +239,13 @@ const GlobalHeader = react.memo(function GlobalHeader2({
|
|
|
239
239
|
stickyInitial && scrollY > 0
|
|
240
240
|
);
|
|
241
241
|
}, [activeModal, scrollY, stickyInitial]);
|
|
242
|
-
const showEmptyCartModal =
|
|
242
|
+
const showEmptyCartModal = React.useMemo(() => {
|
|
243
243
|
return activeModal === types.ModalId.Cart && !onCartClick && !cart?.items.length;
|
|
244
244
|
}, [activeModal, cart?.items.length, onCartClick]);
|
|
245
|
-
const showFullCartModal =
|
|
245
|
+
const showFullCartModal = React.useMemo(() => {
|
|
246
246
|
return activeModal === types.ModalId.Cart && !onCartClick && !!cart?.items.length;
|
|
247
247
|
}, [activeModal, cart?.items.length, onCartClick]);
|
|
248
|
-
const overlayShowForModal =
|
|
248
|
+
const overlayShowForModal = React.useMemo(() => {
|
|
249
249
|
const overlayModals = [types.ModalId.Search, types.ModalId.Cart];
|
|
250
250
|
if (!activeModal || !overlayModals.includes(activeModal)) {
|
|
251
251
|
return null;
|
|
@@ -255,7 +255,7 @@ const GlobalHeader = react.memo(function GlobalHeader2({
|
|
|
255
255
|
}
|
|
256
256
|
return activeModal;
|
|
257
257
|
}, [activeModal, showFullCartModal]);
|
|
258
|
-
const storeLink =
|
|
258
|
+
const storeLink = React.useMemo(() => {
|
|
259
259
|
const storeLinkSearchParams = (() => {
|
|
260
260
|
let category;
|
|
261
261
|
switch (activeNavigationSection.type) {
|
|
@@ -282,12 +282,12 @@ const GlobalHeader = react.memo(function GlobalHeader2({
|
|
|
282
282
|
})();
|
|
283
283
|
return createSiteUrl([mapping.SiteId.Store, "/", storeLinkSearchParams]);
|
|
284
284
|
}, [activeNavigationSection, createSiteUrl]);
|
|
285
|
-
const handleStoreSearchClick =
|
|
285
|
+
const handleStoreSearchClick = React.useCallback(() => {
|
|
286
286
|
trackStoreSearchClick?.();
|
|
287
287
|
}, [trackStoreSearchClick]);
|
|
288
|
-
const headerWrapRef =
|
|
289
|
-
const [headerWrapScrollTop, setHeaderWrapScrollTop] =
|
|
290
|
-
|
|
288
|
+
const headerWrapRef = React.useRef(null);
|
|
289
|
+
const [headerWrapScrollTop, setHeaderWrapScrollTop] = React.useState(0);
|
|
290
|
+
React.useEffect(() => {
|
|
291
291
|
if (!stickyCarousel) return;
|
|
292
292
|
if (sticky) {
|
|
293
293
|
setHeaderWrapScrollTop(0);
|
|
@@ -298,7 +298,7 @@ const GlobalHeader = react.memo(function GlobalHeader2({
|
|
|
298
298
|
}
|
|
299
299
|
scrollY;
|
|
300
300
|
}, [scrollY, sticky, stickyCarousel]);
|
|
301
|
-
const avatarHtml =
|
|
301
|
+
const avatarHtml = React.useMemo(() => {
|
|
302
302
|
if (embedConfig?.hideAvatarIcon) {
|
|
303
303
|
return null;
|
|
304
304
|
}
|
|
@@ -321,12 +321,12 @@ const GlobalHeader = react.memo(function GlobalHeader2({
|
|
|
321
321
|
})
|
|
322
322
|
});
|
|
323
323
|
}, [account?.loading, embedConfig?.hideAvatarIcon, handleModalOpen, motif]);
|
|
324
|
-
const accountItem =
|
|
324
|
+
const accountItem = React.useMemo(() => {
|
|
325
325
|
if (!accountMenu) {
|
|
326
326
|
return avatarHtml;
|
|
327
327
|
}
|
|
328
|
-
if (
|
|
329
|
-
return
|
|
328
|
+
if (React.isValidElement(accountMenu)) {
|
|
329
|
+
return React.cloneElement(accountMenu, {
|
|
330
330
|
/**
|
|
331
331
|
* We are setting state to null to close all other modals because
|
|
332
332
|
* the AccountMenu open state is not controlled by the Header component
|
|
@@ -337,8 +337,8 @@ const GlobalHeader = react.memo(function GlobalHeader2({
|
|
|
337
337
|
}
|
|
338
338
|
return accountMenu;
|
|
339
339
|
}, [accountMenu, avatarHtml, handleModalClose]);
|
|
340
|
-
const [documentPaddingRight, setDocumentPaddingRight] =
|
|
341
|
-
|
|
340
|
+
const [documentPaddingRight, setDocumentPaddingRight] = React.useState(null);
|
|
341
|
+
React.useEffect(() => {
|
|
342
342
|
const mutationCallback = mutationsList => {
|
|
343
343
|
for (const mutation of mutationsList) {
|
|
344
344
|
if (mutation.type === "attributes" && mutation.attributeName === "style") {
|
|
@@ -358,7 +358,7 @@ const GlobalHeader = react.memo(function GlobalHeader2({
|
|
|
358
358
|
observer.disconnect();
|
|
359
359
|
};
|
|
360
360
|
}, []);
|
|
361
|
-
const stickyPadding =
|
|
361
|
+
const stickyPadding = React.useMemo(() => {
|
|
362
362
|
if (sticky && documentPaddingRight) {
|
|
363
363
|
return documentPaddingRight;
|
|
364
364
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var LineLoader = require('@ubnt/ui-components/LineLoader');
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
require('../../assets/account/no-user-avatar.png.js');
|
|
7
7
|
require('../../constants/icons/index.js');
|
|
8
8
|
require('../../contexts/MenuContext/index.js');
|
|
@@ -28,7 +28,7 @@ var _externalAssets_BkygAzVy__default = /*#__PURE__*/_interopDefault(_externalAs
|
|
|
28
28
|
var accountLogo__default = /*#__PURE__*/_interopDefault(accountLogo);
|
|
29
29
|
"use strict";
|
|
30
30
|
const NoUserAvatarSrcLink = typeof NoUserAvatar__default["default"] === "string" ? NoUserAvatar__default["default"] : NoUserAvatar__default["default"].src;
|
|
31
|
-
const IsolatedHeader =
|
|
31
|
+
const IsolatedHeader = React.memo(function IsolatedHeader2({
|
|
32
32
|
className,
|
|
33
33
|
motif: defaultMotif,
|
|
34
34
|
translations = Header_types.defaultHeaderTranslations,
|
|
@@ -43,13 +43,13 @@ const IsolatedHeader = react.memo(function IsolatedHeader2({
|
|
|
43
43
|
setMotif,
|
|
44
44
|
createSiteUrl
|
|
45
45
|
} = context.useMenu();
|
|
46
|
-
|
|
46
|
+
React.useEffect(() => {
|
|
47
47
|
setMotif(defaultMotif);
|
|
48
48
|
}, [defaultMotif, setMotif]);
|
|
49
|
-
const homeLinkUrl =
|
|
49
|
+
const homeLinkUrl = React.useMemo(() => {
|
|
50
50
|
return logo?.url ?? createSiteUrl([mapping.SiteId.Ui, ""]);
|
|
51
51
|
}, [createSiteUrl, logo?.url]);
|
|
52
|
-
const homeLinkClickHandler =
|
|
52
|
+
const homeLinkClickHandler = React.useCallback(e => {
|
|
53
53
|
if (embedConfig?.homeLinkClickHandler) {
|
|
54
54
|
e.preventDefault();
|
|
55
55
|
embedConfig.homeLinkClickHandler();
|
|
@@ -57,7 +57,7 @@ const IsolatedHeader = react.memo(function IsolatedHeader2({
|
|
|
57
57
|
}
|
|
58
58
|
logo?.onClick?.(e, homeLinkUrl);
|
|
59
59
|
}, [embedConfig, logo, homeLinkUrl]);
|
|
60
|
-
const continueShoppingJsx =
|
|
60
|
+
const continueShoppingJsx = React.useMemo(() => {
|
|
61
61
|
return /* @__PURE__ */jsxRuntime.jsxs(Header_styles.ContinueShoppingButton, {
|
|
62
62
|
"data-test-id": "continue-shopping-btn",
|
|
63
63
|
variant: "link",
|
|
@@ -72,7 +72,7 @@ const IsolatedHeader = react.memo(function IsolatedHeader2({
|
|
|
72
72
|
}), translations.continueShopping]
|
|
73
73
|
});
|
|
74
74
|
}, [handleContinueShopping, motif, translations.continueShopping]);
|
|
75
|
-
const avatarHtml =
|
|
75
|
+
const avatarHtml = React.useMemo(() => {
|
|
76
76
|
if (!embedConfig?.moveAvatarIconToLeft || !embedConfig?.avatarClickHandler) {
|
|
77
77
|
return null;
|
|
78
78
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
var reactUse = require('react-use');
|
|
6
6
|
require('../../../contexts/MenuContext/index.js');
|
|
7
7
|
var mapping = require('../../../contexts/MenuContext/mapping.js');
|
|
@@ -37,11 +37,11 @@ const LanguageFrame = ({
|
|
|
37
37
|
language,
|
|
38
38
|
storeId
|
|
39
39
|
} = context.useMenu();
|
|
40
|
-
const ref =
|
|
41
|
-
const name =
|
|
40
|
+
const ref = React.useRef(null);
|
|
41
|
+
const name = React.useRef(null);
|
|
42
42
|
const isHovering = reactUse.useHoverDirty(name);
|
|
43
|
-
const [, setShowPopOver] =
|
|
44
|
-
|
|
43
|
+
const [, setShowPopOver] = React.useState(false);
|
|
44
|
+
React.useEffect(() => {
|
|
45
45
|
if (name.current) {
|
|
46
46
|
const displayPopover = name.current.offsetWidth < name.current.scrollWidth;
|
|
47
47
|
if (displayPopover && isHovering) {
|
|
@@ -51,7 +51,7 @@ const LanguageFrame = ({
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
}, [isHovering]);
|
|
54
|
-
const handleClose =
|
|
54
|
+
const handleClose = React.useCallback(() => {
|
|
55
55
|
onClose();
|
|
56
56
|
}, [onClose]);
|
|
57
57
|
reactUse.useClickAway(ref, event => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
var reactUse = require('react-use');
|
|
6
6
|
var theme = require('../../../../constants/theme.js');
|
|
7
7
|
require('../../../../contexts/MenuContext/index.js');
|
|
@@ -36,7 +36,7 @@ const NavigationCarousel = function NavigationCarousel2({
|
|
|
36
36
|
navigation,
|
|
37
37
|
motif: menuMotif
|
|
38
38
|
} = context.useMenu();
|
|
39
|
-
const motif =
|
|
39
|
+
const motif = React.useMemo(() => overrideMotif || menuMotif, [menuMotif, overrideMotif]);
|
|
40
40
|
const {
|
|
41
41
|
formatMessage
|
|
42
42
|
} = useTranslation.useTranslation({
|
|
@@ -74,7 +74,7 @@ const NavigationCarousel = function NavigationCarousel2({
|
|
|
74
74
|
}).then(res => res.default)
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
|
-
const menuItem =
|
|
77
|
+
const menuItem = React.useMemo(() => {
|
|
78
78
|
if (activeMenuItemId) {
|
|
79
79
|
return [...navigation.primary.items, ...navigation.secondary.items].find(el => el.id === activeMenuItemId);
|
|
80
80
|
}
|
|
@@ -87,7 +87,7 @@ const NavigationCarousel = function NavigationCarousel2({
|
|
|
87
87
|
const {
|
|
88
88
|
y: scrollY
|
|
89
89
|
} = reactUse.useWindowScroll();
|
|
90
|
-
const sticky =
|
|
90
|
+
const sticky = React.useMemo(() => {
|
|
91
91
|
if (!stickyInitial || headerWrapScrollTop == null) {
|
|
92
92
|
return false;
|
|
93
93
|
}
|
|
@@ -96,7 +96,7 @@ const NavigationCarousel = function NavigationCarousel2({
|
|
|
96
96
|
}
|
|
97
97
|
return headerWrapScrollTop <= -(Header_styles.HEADER_HEIGHT + Carousel_styles.HEADER_NAVIGATION_CAROUSEL_STICKY_TRANSITION_OFFSET);
|
|
98
98
|
}, [headerWrapScrollTop, scrollY, stickyHeader, stickyInitial]);
|
|
99
|
-
const items =
|
|
99
|
+
const items = React.useMemo(() => {
|
|
100
100
|
if (!menuItem) {
|
|
101
101
|
return [];
|
|
102
102
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
var reactUse = require('react-use');
|
|
6
6
|
require('../../../../contexts/MenuContext/index.js');
|
|
7
7
|
require('../../../../contexts/MenuContext/mapping.js');
|
|
@@ -66,8 +66,8 @@ const NavigationMicrositeMenu = ({
|
|
|
66
66
|
}).then(res => res.default)
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
|
-
const wrapRef =
|
|
70
|
-
const parseMenuItems =
|
|
69
|
+
const wrapRef = React.useRef(null);
|
|
70
|
+
const parseMenuItems = React.useCallback(items => {
|
|
71
71
|
return items.map(item => {
|
|
72
72
|
let url, active;
|
|
73
73
|
if (typeof item.url === "string") {
|
|
@@ -86,39 +86,39 @@ const NavigationMicrositeMenu = ({
|
|
|
86
86
|
};
|
|
87
87
|
});
|
|
88
88
|
}, [context$1, createSiteUrl, isPathnameActive]);
|
|
89
|
-
const menuItems =
|
|
89
|
+
const menuItems = React.useMemo(() => {
|
|
90
90
|
return {
|
|
91
91
|
primary: parseMenuItems(mapping.MICROSITE_NAVIGATION_MAPPING.primary),
|
|
92
92
|
secondary: parseMenuItems(mapping.MICROSITE_NAVIGATION_MAPPING.secondary)
|
|
93
93
|
};
|
|
94
94
|
}, [parseMenuItems]);
|
|
95
|
-
const [isClosing, setIsClosing] =
|
|
95
|
+
const [isClosing, setIsClosing] = React.useState(false);
|
|
96
96
|
reactUse.useDebounce(() => {
|
|
97
97
|
if (isClosing) {
|
|
98
98
|
setIsClosing(false);
|
|
99
99
|
}
|
|
100
100
|
}, MicrositeMenu_styles.TRANSITION_DURATION_MS, [isClosing]);
|
|
101
|
-
const handleClose =
|
|
101
|
+
const handleClose = React.useCallback(() => {
|
|
102
102
|
setIsClosing(true);
|
|
103
103
|
onClose?.();
|
|
104
104
|
}, [onClose]);
|
|
105
105
|
const {
|
|
106
106
|
y: scrollY
|
|
107
107
|
} = reactUse.useWindowScroll();
|
|
108
|
-
const isInView =
|
|
108
|
+
const isInView = React.useMemo(() => {
|
|
109
109
|
if (!visible) {
|
|
110
110
|
return false;
|
|
111
111
|
}
|
|
112
112
|
return scrollY < (stickyHeader ? 0 : Header_styles.HEADER_HEIGHT) + MicrositeMenu_styles.HEADER_NAVIGATION_MICROSITE_MENU_HEIGHT;
|
|
113
113
|
}, [stickyHeader, scrollY, visible]);
|
|
114
|
-
|
|
114
|
+
React.useEffect(() => {
|
|
115
115
|
if (isInView) {
|
|
116
116
|
handleClose();
|
|
117
117
|
}
|
|
118
118
|
}, [handleClose, isInView]);
|
|
119
119
|
const wrapHover = reactUse.useHoverDirty(wrapRef);
|
|
120
120
|
const hasTouch = useHasTouch.useHasTouch();
|
|
121
|
-
const slideInView =
|
|
121
|
+
const slideInView = React.useMemo(() => {
|
|
122
122
|
if (
|
|
123
123
|
// Menu is closing
|
|
124
124
|
isClosing ||
|
|
@@ -129,7 +129,7 @@ const NavigationMicrositeMenu = ({
|
|
|
129
129
|
const hasHover = !hasTouch && wrapHover;
|
|
130
130
|
return show || hasHover;
|
|
131
131
|
}, [hasTouch, isClosing, isInView, show, wrapHover]);
|
|
132
|
-
const renderMenuItems =
|
|
132
|
+
const renderMenuItems = React.useCallback(parsedMenuItems => {
|
|
133
133
|
return parsedMenuItems.map(item => /* @__PURE__ */jsxRuntime.jsx(MicrositeMenu_styles.ListItem, {
|
|
134
134
|
children: /* @__PURE__ */jsxRuntime.jsx(MicrositeMenu_styles.Button, {
|
|
135
135
|
anchor: true,
|
|
@@ -146,8 +146,8 @@ const NavigationMicrositeMenu = ({
|
|
|
146
146
|
})
|
|
147
147
|
}, item.id));
|
|
148
148
|
}, [formatMessage, handleClose, motif, onMenuItemLinkClick]);
|
|
149
|
-
const [noTransition, setNoTransition] =
|
|
150
|
-
|
|
149
|
+
const [noTransition, setNoTransition] = React.useState(false);
|
|
150
|
+
React.useEffect(() => {
|
|
151
151
|
setNoTransition(true);
|
|
152
152
|
isInView;
|
|
153
153
|
}, [isInView]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
require('../../../../constants/icons/index.js');
|
|
6
6
|
require('../../../../contexts/MenuContext/index.js');
|
|
7
7
|
require('../../../../contexts/MenuContext/mapping.js');
|
|
@@ -80,11 +80,11 @@ const NavigationMobileMenu = function NavigationMobileMenu2({
|
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
const motif = "dark";
|
|
83
|
-
const [expandedSectionItemId, setExpandedSectionItemId] =
|
|
84
|
-
const toggleExpandedSectionItemId =
|
|
83
|
+
const [expandedSectionItemId, setExpandedSectionItemId] = React.useState(null);
|
|
84
|
+
const toggleExpandedSectionItemId = React.useCallback(itemId => {
|
|
85
85
|
setExpandedSectionItemId(expandedSectionItemId === itemId ? null : itemId);
|
|
86
86
|
}, [expandedSectionItemId]);
|
|
87
|
-
const micrositeSection =
|
|
87
|
+
const micrositeSection = React.useMemo(() => {
|
|
88
88
|
if (!hasMicrositeMenu) {
|
|
89
89
|
return [];
|
|
90
90
|
}
|
|
@@ -101,7 +101,7 @@ const NavigationMobileMenu = function NavigationMobileMenu2({
|
|
|
101
101
|
})
|
|
102
102
|
}];
|
|
103
103
|
}, [createSiteUrl, formatMessage, hasMicrositeMenu]);
|
|
104
|
-
const micrositeLinks =
|
|
104
|
+
const micrositeLinks = React.useMemo(() => {
|
|
105
105
|
if (!hasMicrositeMenu) {
|
|
106
106
|
return [];
|
|
107
107
|
}
|
|
@@ -116,7 +116,7 @@ const NavigationMobileMenu = function NavigationMobileMenu2({
|
|
|
116
116
|
}))
|
|
117
117
|
}];
|
|
118
118
|
}, [createSiteUrl, hasMicrositeMenu, translations.links]);
|
|
119
|
-
const sections =
|
|
119
|
+
const sections = React.useMemo(() => {
|
|
120
120
|
return [...micrositeSection, {
|
|
121
121
|
id: "main",
|
|
122
122
|
items: [...utils.filterOutUnrenderableItems(activeNavigationSection.items).map(item => ({
|