@ubnt/store.core 9.53.0-alpha.4 → 9.53.0-alpha.6
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 +8 -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.js +1 -1
- package/lib/apis/smartcat.js.map +1 -1
- package/lib/apis/smartcat.mjs +1 -1
- package/lib/apis/smartcat.mjs.map +1 -1
- package/lib/assets/ai-360.jpg +0 -0
- package/lib/assets/ai-3602.jpg +0 -0
- package/lib/assets/ai-bullet.jpg +0 -0
- package/lib/assets/ai-bullet2.jpg +0 -0
- package/lib/assets/ai-dslr.jpg +0 -0
- package/lib/assets/ai-dslr2.jpg +0 -0
- package/lib/assets/building-bridge-xg.jpg +0 -0
- package/lib/assets/building-bridge-xg2.jpg +0 -0
- package/lib/assets/close2.svg +2 -3
- package/lib/assets/close3.svg +3 -2
- package/lib/assets/e7-audience.jpg +0 -0
- package/lib/assets/e7-audience2.jpg +0 -0
- package/lib/assets/flex.jpg +0 -0
- package/lib/assets/flex2.jpg +0 -0
- package/lib/assets/g4-instant.jpg +0 -0
- package/lib/assets/g4-instant2.jpg +0 -0
- package/lib/assets/g5-bullet.jpg +0 -0
- package/lib/assets/g5-bullet2.jpg +0 -0
- package/lib/assets/g5-dome.jpg +0 -0
- package/lib/assets/g5-dome2.jpg +0 -0
- package/lib/assets/g5-flex.jpg +0 -0
- package/lib/assets/g5-flex2.jpg +0 -0
- package/lib/assets/g5-ptz.jpg +0 -0
- package/lib/assets/g5-ptz2.jpg +0 -0
- package/lib/assets/g5-turret-ultra.jpg +0 -0
- package/lib/assets/g5-turret-ultra2.jpg +0 -0
- package/lib/assets/industrial.jpg +0 -0
- package/lib/assets/industrial2.jpg +0 -0
- package/lib/assets/intercom.jpg +0 -0
- package/lib/assets/intercom2.jpg +0 -0
- 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/Button/Button.js +6 -6
- 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/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/MobileLinksModal/MobileMenu.js +3 -3
- 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/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/HeaderContent/HeaderContent.js +13 -13
- package/lib/components/MicrositeHeader/components/SiteMap/SiteMap.js +2 -2
- package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.js +15 -15
- package/lib/components/MicrositeHeader/components/VisualTopology/LinePaths.js +3 -3
- package/lib/components/MicrositeHeader/components/VisualTopology/VisualTopology.js +9 -9
- 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/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/ModelCompareV4/CompareTable/CompareTable.js +8 -8
- package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup.js +14 -14
- package/lib/components/ModelCompareV4/CompareTable/CompareTableOverflowScrollButton.js +3 -3
- package/lib/components/ModelCompareV4/CompareTable/PropertyValueGridItem.js +2 -2
- package/lib/components/ModelCompareV4/CompareTable/ScrollGroup/ScrollGroup.js +5 -5
- package/lib/components/ModelCompareV4/CompareTable/ScrollGroup/context.js +3 -3
- package/lib/components/ModelCompareV4/CompareTable/ScrollGroup/useScrollGroupItem.js +8 -8
- package/lib/components/ModelCompareV4/CompareTable/ScrollGroup/useScrollGroupSetScroll.js +2 -2
- package/lib/components/ModelCompareV4/CompareTable/ScrollGroup/useScrollGroupTo.js +2 -2
- package/lib/components/ModelCompareV4/CompareTable/StickyGrid/StickyGrid.js +7 -7
- package/lib/components/ModelCompareV4/CompareTable/StickyGrid/StickyGridBody.js +2 -2
- package/lib/components/ModelCompareV4/CompareTable/StickyGrid/StickyGridHeader.js +5 -5
- package/lib/components/ModelCompareV4/CompareTable/StickyGrid/StickyGridItem.js +2 -2
- package/lib/components/ModelCompareV4/CompareTable/StickyGrid/context.js +3 -3
- package/lib/components/ModelCompareV4/ModelCompareV4.js +5 -5
- package/lib/components/ModelCompareV4/ProductList/ProductList.js +11 -11
- 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/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.stories.d.ts +5 -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 +5 -5
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CheckboxSection.js +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +4 -4
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/SliderSection.js +3 -3
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +7 -7
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +6 -6
- package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.js +9 -9
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.js +10 -10
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +15 -15
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.js +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 +20 -20
- package/lib/components/StorageSliders/StorageSliders.js +4 -4
- package/lib/components/TogglableStaticCompareTables/TogglableStaticCompareTable.js +8 -8
- package/lib/components/Tooltip/Tooltip.js +5 -5
- package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js +7 -7
- package/lib/components/VariantSelector/Variant/Variant.js +40 -40
- package/lib/components/VariantSelector/VariantSelector.js +16 -16
- package/lib/components/VideoPlayerNew/VideoPlayer.js +21 -21
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +2 -2
- package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
- package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +2 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/index.mjs +2 -0
- package/lib/components/index.mjs.map +1 -1
- package/lib/constants/icons/options/colors/black.svg.js +5 -5
- package/lib/constants/icons/options/colors/index.js +3 -3
- package/lib/constants/icons/options/styles/black.svg.js +5 -5
- package/lib/constants/icons/options/styles/index.js +3 -3
- package/lib/constants/modelCompareData/assets/BuildingBridge/building-bridge-xg.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/BuildingBridge/building-bridge-xg.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Bullet/ai-bullet.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Bullet/ai-bullet.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Bullet/ai-dslr.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Bullet/ai-dslr.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Bullet/g5-bullet.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Bullet/g5-bullet.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Compact/g4-instant.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Compact/g4-instant.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Compact/g5-flex.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Compact/g5-flex.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DomeTurret/ai-360.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DomeTurret/ai-360.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-turret-ultra.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-turret-ultra.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DoorAccess/intercom.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DoorAccess/intercom.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/PTZ/g5-ptz.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/PTZ/g5-ptz.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Switching/flex.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Switching/flex.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Switching/industrial.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Switching/industrial.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/WiFi/e7-audience.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/WiFi/e7-audience.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-bullet.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-bullet.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-dslr.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-dslr.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/g5-bullet.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/g5-bullet.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/compact/g4-instant.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/compact/g4-instant.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/compact/g5-flex.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/compact/g5-flex.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-360.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-360.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-turret-ultra.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-turret-ultra.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/intercom.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/intercom.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/ptz/g5-ptz.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/ptz/g5-ptz.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/switches/utility/flex.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/switches/utility/flex.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/switches/utility/industrial.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/switches/utility/industrial.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/wifi/building-bridge/building-bridge-xg.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/wifi/building-bridge/building-bridge-xg.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/wifi/mega-capacity/e7-audience.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/wifi/mega-capacity/e7-audience.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/ai360.js +2 -2
- package/lib/constants/modelCompareData/data/products/ai360.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/aiBullet.js +2 -2
- package/lib/constants/modelCompareData/data/products/aiBullet.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/aiDslr.js +2 -2
- package/lib/constants/modelCompareData/data/products/aiDslr.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/buildingBridgeXG.js +2 -2
- package/lib/constants/modelCompareData/data/products/buildingBridgeXG.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/flex.js +2 -2
- package/lib/constants/modelCompareData/data/products/flex.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g4Instant.js +2 -2
- package/lib/constants/modelCompareData/data/products/g4Instant.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g5Bullet.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5Bullet.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g5Dome.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5Dome.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g5Flex.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5Flex.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g5Ptz.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5Ptz.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g5TurretUltra.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5TurretUltra.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/industrial.js +2 -2
- package/lib/constants/modelCompareData/data/products/industrial.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/intercom.js +2 -2
- package/lib/constants/modelCompareData/data/products/intercom.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/shared-product-data/e7Audience.js +2 -2
- package/lib/constants/modelCompareData/data/products/shared-product-data/e7Audience.mjs +2 -2
- package/lib/constants/optionIcons.js +6 -6
- package/lib/constants/optionIcons.mjs +4 -4
- package/lib/contexts/MenuContext/context.js +35 -35
- package/lib/contexts/MicrositeMenuContext/context.js +9 -9
- 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/nextjs/ssr/registry.js +2 -2
- package/package.json +1 -1
|
@@ -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
|
require('../../../constants/icons/index.js');
|
|
6
6
|
require('../../../contexts/MenuContext/index.js');
|
|
7
7
|
require('../../../contexts/MicrositeMenuContext/index.js');
|
|
@@ -35,8 +35,8 @@ const MobileLinksModal = ({
|
|
|
35
35
|
formatMessage
|
|
36
36
|
} = translations.useMicrositeMenuTranslations(language);
|
|
37
37
|
const motif = HeaderContent.LIGHT_KEY;
|
|
38
|
-
const [expandedSectionItemId, setExpandedSectionItemId] =
|
|
39
|
-
const toggleExpandedSectionItemId =
|
|
38
|
+
const [expandedSectionItemId, setExpandedSectionItemId] = React.useState(null);
|
|
39
|
+
const toggleExpandedSectionItemId = React.useCallback(itemId => {
|
|
40
40
|
setExpandedSectionItemId(expandedSectionItemId === itemId ? null : itemId);
|
|
41
41
|
}, [expandedSectionItemId]);
|
|
42
42
|
const onHandleLinkClick = (event, url) => {
|
|
@@ -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
|
}, [
|
|
153
153
|
// HACK: needed isInView to retrigger the effect
|
|
@@ -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 => ({
|
|
@@ -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/menu/icon-history.svg.js');
|
|
6
6
|
require('../../../../assets/icons/menu/icon-location-pin.svg.js');
|
|
7
7
|
require('../../../../constants/icons/index.js');
|
|
@@ -50,11 +50,11 @@ const NavigationProMobileMenu = function NavigationProMobileMenu2({
|
|
|
50
50
|
const {
|
|
51
51
|
context: context$1
|
|
52
52
|
} = context.useMenu();
|
|
53
|
-
const [expandedSectionItemId, setExpandedSectionItemId] =
|
|
54
|
-
const toggleExpandedSectionItemId =
|
|
53
|
+
const [expandedSectionItemId, setExpandedSectionItemId] = React.useState(null);
|
|
54
|
+
const toggleExpandedSectionItemId = React.useCallback(itemId => {
|
|
55
55
|
setExpandedSectionItemId(expandedSectionItemId === itemId ? null : itemId);
|
|
56
56
|
}, [expandedSectionItemId]);
|
|
57
|
-
const sections =
|
|
57
|
+
const sections = React.useMemo(() => {
|
|
58
58
|
const extraSectionItems = [{
|
|
59
59
|
id: "support",
|
|
60
60
|
label: translations.support,
|
|
@@ -154,7 +154,7 @@ const NavigationProMobileMenu = function NavigationProMobileMenu2({
|
|
|
154
154
|
items: [item]
|
|
155
155
|
})) : [])].filter(typeGuards.isNonNullish);
|
|
156
156
|
}, [translations.support, translations.social, translations.company, translations.training, translations.tools, translations.orderHistory, translations.purchasedProductHistory, translations.region, context$1, socialContent.items, handleOrderHistoryClick, handlePurchaseHistoryClick, categories.items, logo?.currentStore, handleStorePickerClick, hideExtraSection, footerContent]);
|
|
157
|
-
const renderSectionItemIcon =
|
|
157
|
+
const renderSectionItemIcon = React.useCallback(item => {
|
|
158
158
|
return item.icon && /* @__PURE__ */jsxRuntime.jsx(ProMobileMenu_styles.SectionItemIcon, {
|
|
159
159
|
children: /* @__PURE__ */jsxRuntime.jsx(StyleableSvgImage.StyleableSvgImage, {
|
|
160
160
|
src: item.icon.src,
|
|
@@ -163,7 +163,7 @@ const NavigationProMobileMenu = function NavigationProMobileMenu2({
|
|
|
163
163
|
})
|
|
164
164
|
});
|
|
165
165
|
}, []);
|
|
166
|
-
const renderSectionItemButton =
|
|
166
|
+
const renderSectionItemButton = React.useCallback(item => {
|
|
167
167
|
const IconNode = "subItems" in item && renderSectionItemIcon(item);
|
|
168
168
|
const NewLabelNode = "isNew" in item && item.isNew ? /* @__PURE__ */jsxRuntime.jsx(MobileMenu_styles.NewLabel, {
|
|
169
169
|
children: translations.new
|
|
@@ -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 types = require('../../../contexts/MenuContext/types.js');
|
|
7
7
|
require('../../../hooks/index.js');
|
|
@@ -14,10 +14,10 @@ const HeaderOverlay = function HeaderOverlay2({
|
|
|
14
14
|
onClose
|
|
15
15
|
}) {
|
|
16
16
|
useLockBodyScrollCustom.useLockBodyScrollCustom(!!showForModal);
|
|
17
|
-
const canManualClose =
|
|
17
|
+
const canManualClose = React.useMemo(() => {
|
|
18
18
|
return showForModal !== types.ModalId.Cart;
|
|
19
19
|
}, [showForModal]);
|
|
20
|
-
const handleManualClose =
|
|
20
|
+
const handleManualClose = React.useCallback(() => {
|
|
21
21
|
if (!canManualClose) return;
|
|
22
22
|
onClose?.();
|
|
23
23
|
}, [canManualClose, onClose]);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var merge = require('lodash/merge');
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
var reactUse = require('react-use');
|
|
7
7
|
require('../../../assets/account/no-user-avatar.png.js');
|
|
8
8
|
require('../../../assets/icons/menu/icon-ea.svg.js');
|
|
@@ -78,7 +78,7 @@ const DEFAULT_PRODUCT_LINE_OPTIONS = [{
|
|
|
78
78
|
value: generated.ProductLine.Uisp,
|
|
79
79
|
label: "UISP"
|
|
80
80
|
}];
|
|
81
|
-
const ProHeader =
|
|
81
|
+
const ProHeader = React.memo(function ProHeader2({
|
|
82
82
|
className,
|
|
83
83
|
motif: defaultMotif,
|
|
84
84
|
cart,
|
|
@@ -110,11 +110,11 @@ const ProHeader = react.memo(function ProHeader2({
|
|
|
110
110
|
logo
|
|
111
111
|
}) {
|
|
112
112
|
const isMobile = reactUse.useMedia(PRO_HEADER_MOBILE_AND_DOWN, false);
|
|
113
|
-
const rootRef =
|
|
114
|
-
const wrapRef =
|
|
115
|
-
const containerRef =
|
|
116
|
-
const [searchInputEl, setSearchInputEl] =
|
|
117
|
-
const translations =
|
|
113
|
+
const rootRef = React.useRef(null);
|
|
114
|
+
const wrapRef = React.useRef(null);
|
|
115
|
+
const containerRef = React.useRef(null);
|
|
116
|
+
const [searchInputEl, setSearchInputEl] = React.useState(null);
|
|
117
|
+
const translations = React.useMemo(() => {
|
|
118
118
|
return merge__default["default"](Header_types.defaultHeaderTranslations, initialTranslations);
|
|
119
119
|
}, [initialTranslations]);
|
|
120
120
|
const {
|
|
@@ -163,11 +163,11 @@ const ProHeader = react.memo(function ProHeader2({
|
|
|
163
163
|
}).then(res => res.default)
|
|
164
164
|
}
|
|
165
165
|
});
|
|
166
|
-
const [isSearchFocused, setIsSearchFocused] =
|
|
167
|
-
|
|
166
|
+
const [isSearchFocused, setIsSearchFocused] = React.useState(false);
|
|
167
|
+
React.useEffect(() => {
|
|
168
168
|
setMotif(defaultMotif);
|
|
169
169
|
}, [defaultMotif, setMotif]);
|
|
170
|
-
const handleModalOpen =
|
|
170
|
+
const handleModalOpen = React.useCallback((e, id) => {
|
|
171
171
|
e.stopPropagation();
|
|
172
172
|
if (activeModal !== id) {
|
|
173
173
|
onModalOpen?.();
|
|
@@ -178,10 +178,10 @@ const ProHeader = react.memo(function ProHeader2({
|
|
|
178
178
|
}
|
|
179
179
|
setActiveModal(activeModal === id ? null : id);
|
|
180
180
|
}, [activeModal, onCartClick, setActiveModal, onModalOpen]);
|
|
181
|
-
const handleModalClose =
|
|
181
|
+
const handleModalClose = React.useCallback(() => {
|
|
182
182
|
setActiveModal(null);
|
|
183
183
|
}, [setActiveModal]);
|
|
184
|
-
const handleHamburgerClick =
|
|
184
|
+
const handleHamburgerClick = React.useCallback(() => {
|
|
185
185
|
if (activeModal === types.ModalId.ProMobileMenu) {
|
|
186
186
|
setActiveModal(null);
|
|
187
187
|
} else {
|
|
@@ -189,19 +189,19 @@ const ProHeader = react.memo(function ProHeader2({
|
|
|
189
189
|
}
|
|
190
190
|
handleMobileMenuClick?.();
|
|
191
191
|
}, [activeModal, handleMobileMenuClick, setActiveModal]);
|
|
192
|
-
const sticky =
|
|
192
|
+
const sticky = React.useMemo(() => {
|
|
193
193
|
return (
|
|
194
194
|
// Set as sticky if mobile menu is open
|
|
195
195
|
activeModal === types.ModalId.ProMobileMenu
|
|
196
196
|
);
|
|
197
197
|
}, [activeModal]);
|
|
198
|
-
const [canFocusSearch, setCanFocusSearch] =
|
|
199
|
-
|
|
198
|
+
const [canFocusSearch, setCanFocusSearch] = React.useState(false);
|
|
199
|
+
React.useEffect(() => {
|
|
200
200
|
if (activeModal !== types.ModalId.Search) {
|
|
201
201
|
setCanFocusSearch(false);
|
|
202
202
|
}
|
|
203
203
|
}, [activeModal]);
|
|
204
|
-
|
|
204
|
+
React.useEffect(() => {
|
|
205
205
|
if (!canFocusSearch || activeModal !== types.ModalId.Search || !searchInputEl) return;
|
|
206
206
|
const interval = setInterval(() => {
|
|
207
207
|
if (document.activeElement === searchInputEl) {
|
|
@@ -213,21 +213,21 @@ const ProHeader = react.memo(function ProHeader2({
|
|
|
213
213
|
return () => clearInterval(interval);
|
|
214
214
|
}, [activeModal, canFocusSearch, searchInputEl]);
|
|
215
215
|
const isSearching = activeModal === types.ModalId.Search || !!searchValue;
|
|
216
|
-
const onClickAwayFromSearchModal =
|
|
216
|
+
const onClickAwayFromSearchModal = React.useCallback(() => {
|
|
217
217
|
if (searchValue) return;
|
|
218
218
|
if (activeModal === types.ModalId.Search) {
|
|
219
219
|
setActiveModal(null);
|
|
220
220
|
onSearchClick?.();
|
|
221
221
|
}
|
|
222
222
|
}, [activeModal, onSearchClick, searchValue, setActiveModal]);
|
|
223
|
-
const [initialSearchValueHandled, setInitialSearchValueHandled] =
|
|
224
|
-
|
|
223
|
+
const [initialSearchValueHandled, setInitialSearchValueHandled] = React.useState(false);
|
|
224
|
+
React.useEffect(() => {
|
|
225
225
|
if (!initialSearchValueHandled && searchValue) {
|
|
226
226
|
setActiveModal(types.ModalId.Search);
|
|
227
227
|
setInitialSearchValueHandled(true);
|
|
228
228
|
}
|
|
229
229
|
}, [initialSearchValueHandled, searchValue, setActiveModal]);
|
|
230
|
-
const blurSearchInput =
|
|
230
|
+
const blurSearchInput = React.useCallback(() => {
|
|
231
231
|
if (!searchInputEl || activeModal !== types.ModalId.Search) {
|
|
232
232
|
return;
|
|
233
233
|
}
|
|
@@ -240,31 +240,31 @@ const ProHeader = react.memo(function ProHeader2({
|
|
|
240
240
|
reactUse.useClickAway(rootRef, () => {
|
|
241
241
|
onClickAwayFromSearchModal();
|
|
242
242
|
}, ["click"]);
|
|
243
|
-
const handleSearchCancel =
|
|
243
|
+
const handleSearchCancel = React.useCallback(() => {
|
|
244
244
|
setActiveModal(null);
|
|
245
245
|
onSearch?.("");
|
|
246
246
|
}, [onSearch, setActiveModal]);
|
|
247
|
-
const handleSearchOnClear =
|
|
247
|
+
const handleSearchOnClear = React.useCallback(() => {
|
|
248
248
|
setActiveModal(types.ModalId.Search);
|
|
249
249
|
onSearch?.("");
|
|
250
250
|
}, [onSearch, setActiveModal]);
|
|
251
|
-
const handleSearchOnFocus =
|
|
251
|
+
const handleSearchOnFocus = React.useCallback(() => {
|
|
252
252
|
setIsSearchFocused(true);
|
|
253
253
|
onSearchFocus?.();
|
|
254
254
|
}, [setIsSearchFocused, onSearchFocus]);
|
|
255
|
-
const handleSearchOnBlur =
|
|
255
|
+
const handleSearchOnBlur = React.useCallback(() => {
|
|
256
256
|
setIsSearchFocused(false);
|
|
257
257
|
onSearchBlur?.();
|
|
258
258
|
}, [setIsSearchFocused, onSearchBlur]);
|
|
259
|
-
const handleOpenSearch =
|
|
259
|
+
const handleOpenSearch = React.useCallback(e => {
|
|
260
260
|
handleModalOpen(e, types.ModalId.Search);
|
|
261
261
|
onSearchClick?.();
|
|
262
262
|
setCanFocusSearch(true);
|
|
263
263
|
}, [handleModalOpen, onSearchClick]);
|
|
264
|
-
const handleSearchValueChange =
|
|
264
|
+
const handleSearchValueChange = React.useCallback(e => {
|
|
265
265
|
onSearch?.(e.target.value);
|
|
266
266
|
}, [onSearch]);
|
|
267
|
-
const searchPlaceholder =
|
|
267
|
+
const searchPlaceholder = React.useMemo(() => {
|
|
268
268
|
const defaultPlaceholder = translations.search.searchUniFiProducts;
|
|
269
269
|
switch (productLineValue) {
|
|
270
270
|
case generated.ProductLine.Uisp:
|
|
@@ -281,7 +281,7 @@ const ProHeader = react.memo(function ProHeader2({
|
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
}, [productLineValue, translations]);
|
|
284
|
-
const searchFocusWidth =
|
|
284
|
+
const searchFocusWidth = React.useMemo(() => {
|
|
285
285
|
switch (productLineValue) {
|
|
286
286
|
case generated.ProductLine.Amplifi:
|
|
287
287
|
return 164;
|
|
@@ -289,7 +289,7 @@ const ProHeader = react.memo(function ProHeader2({
|
|
|
289
289
|
return 160;
|
|
290
290
|
}
|
|
291
291
|
}, [productLineValue]);
|
|
292
|
-
|
|
292
|
+
React.useEffect(() => {
|
|
293
293
|
if (
|
|
294
294
|
// eslint-disable-next-line sonarjs/deprecation
|
|
295
295
|
!embedConfig?.hideSearchOnTouchmove && !embedConfig?.blurSearchOnTouchmove) {
|
|
@@ -302,13 +302,13 @@ const ProHeader = react.memo(function ProHeader2({
|
|
|
302
302
|
}, [
|
|
303
303
|
// eslint-disable-next-line sonarjs/deprecation
|
|
304
304
|
embedConfig?.hideSearchOnTouchmove, blurSearchInput, embedConfig?.blurSearchOnTouchmove]);
|
|
305
|
-
const cartQuantity =
|
|
305
|
+
const cartQuantity = React.useMemo(() => {
|
|
306
306
|
return cart?.items.reduce((sum, item) => sum + item.quantity, 0) ?? 0;
|
|
307
307
|
}, [cart?.items]);
|
|
308
|
-
const homeLinkUrl =
|
|
308
|
+
const homeLinkUrl = React.useMemo(() => {
|
|
309
309
|
return logo?.url ?? createSiteUrl([mapping.SiteId.Ui, ""]);
|
|
310
310
|
}, [createSiteUrl, logo?.url]);
|
|
311
|
-
const homeLinkClickHandler =
|
|
311
|
+
const homeLinkClickHandler = React.useCallback(e => {
|
|
312
312
|
if (embedConfig?.homeLinkClickHandler) {
|
|
313
313
|
e.preventDefault();
|
|
314
314
|
embedConfig.homeLinkClickHandler();
|
|
@@ -316,7 +316,7 @@ const ProHeader = react.memo(function ProHeader2({
|
|
|
316
316
|
}
|
|
317
317
|
logo?.onClick?.(e, homeLinkUrl);
|
|
318
318
|
}, [embedConfig, homeLinkUrl, logo]);
|
|
319
|
-
|
|
319
|
+
React.useEffect(() => {
|
|
320
320
|
const containerEl = containerRef.current;
|
|
321
321
|
if (!containerEl) return;
|
|
322
322
|
const wrapEl = wrapRef.current;
|
|
@@ -335,14 +335,14 @@ const ProHeader = react.memo(function ProHeader2({
|
|
|
335
335
|
};
|
|
336
336
|
window.requestAnimationFrame(handle);
|
|
337
337
|
}, [isMobile]);
|
|
338
|
-
const handleAvatarClick =
|
|
338
|
+
const handleAvatarClick = React.useCallback(e => {
|
|
339
339
|
if (embedConfig?.avatarClickHandler) {
|
|
340
340
|
embedConfig.avatarClickHandler();
|
|
341
341
|
} else {
|
|
342
342
|
handleModalOpen(e, types.ModalId.Account);
|
|
343
343
|
}
|
|
344
344
|
}, [embedConfig, handleModalOpen]);
|
|
345
|
-
const avatarHtml =
|
|
345
|
+
const avatarHtml = React.useMemo(() => {
|
|
346
346
|
if (embedConfig?.hideAvatarIcon) {
|
|
347
347
|
return null;
|
|
348
348
|
}
|
|
@@ -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/accessApplication.svg.js');
|
|
7
7
|
require('../../assets/icons/networkApplication.svg.js');
|
|
@@ -68,18 +68,18 @@ const Hero = ({
|
|
|
68
68
|
ellipseBackgroundString,
|
|
69
69
|
isSimpleBackground
|
|
70
70
|
}) => {
|
|
71
|
-
const [activeSlide, setActiveSlide] =
|
|
72
|
-
const slideshowEnabled =
|
|
71
|
+
const [activeSlide, setActiveSlide] = React.useState(-1);
|
|
72
|
+
const slideshowEnabled = React.useMemo(() => {
|
|
73
73
|
return activeSlide !== -1;
|
|
74
74
|
}, [activeSlide]);
|
|
75
75
|
useLockBodyScrollCustom.useLockBodyScrollCustom(!!slideshowEnabled);
|
|
76
76
|
const isTablet = reactUse.useMedia(layout.BREAKPOINTS.TABLET_AND_DOWN, false);
|
|
77
|
-
|
|
77
|
+
React.useEffect(() => {
|
|
78
78
|
if (isTablet) {
|
|
79
79
|
setActiveSlide(-1);
|
|
80
80
|
}
|
|
81
81
|
}, [isTablet]);
|
|
82
|
-
|
|
82
|
+
React.useEffect(() => {
|
|
83
83
|
setActiveSlide(-1);
|
|
84
84
|
}, [images]);
|
|
85
85
|
const iconObj = productLine ? PRODUCT_LINES[productLine] : void 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
|
require('../../assets/icons/play-dark-bg.svg.js');
|
|
6
6
|
require('../CustomImage/index.js');
|
|
7
7
|
var GridModal = require('../GridGallery/GridModal/GridModal.js');
|
|
@@ -20,10 +20,10 @@ const HeroVideo = ({
|
|
|
20
20
|
posterUrl,
|
|
21
21
|
modalVideo
|
|
22
22
|
}) => {
|
|
23
|
-
const videoRef =
|
|
24
|
-
const [isVideoActive, setIsVideoActive] =
|
|
25
|
-
const [isVideoLoaded, setIsVideoLoaded] =
|
|
26
|
-
|
|
23
|
+
const videoRef = React.useRef(null);
|
|
24
|
+
const [isVideoActive, setIsVideoActive] = React.useState(false);
|
|
25
|
+
const [isVideoLoaded, setIsVideoLoaded] = React.useState(false);
|
|
26
|
+
React.useEffect(() => {
|
|
27
27
|
if (isVideoActive) {
|
|
28
28
|
videoRef.current?.pause();
|
|
29
29
|
} else {
|