@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
|
@@ -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 layout = require('../../constants/layout.js');
|
|
7
7
|
require('../../contexts/MenuContext/mapping.js');
|
|
@@ -73,17 +73,17 @@ const MeetUniFiVideoPlayer = ({
|
|
|
73
73
|
}).then(res => res.default)
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
|
-
const latestEpisode =
|
|
76
|
+
const latestEpisode = React.useMemo(() => {
|
|
77
77
|
return episodes.sort((a, b) => b.episode - a.episode).sort((a, b) => b.season - a.season)[0];
|
|
78
78
|
}, [episodes]);
|
|
79
|
-
const [isVideoPlayerOpen, setIsVideoPlayerOpen] =
|
|
80
|
-
const [currentEpisode, setCurrentEpisode] =
|
|
81
|
-
const previewVideoRef =
|
|
79
|
+
const [isVideoPlayerOpen, setIsVideoPlayerOpen] = React.useState(false);
|
|
80
|
+
const [currentEpisode, setCurrentEpisode] = React.useState(latestEpisode);
|
|
81
|
+
const previewVideoRef = React.useRef(null);
|
|
82
82
|
const isDesktop = reactUse.useMedia(layout.BREAKPOINTS.TABLET_UP, false);
|
|
83
|
-
const [inViewForPreview, setInViewForPreview] =
|
|
84
|
-
const videoRef =
|
|
85
|
-
const [previewVideoBufferLoaded, setPreviewVideoBufferLoaded] =
|
|
86
|
-
|
|
83
|
+
const [inViewForPreview, setInViewForPreview] = React.useState(false);
|
|
84
|
+
const videoRef = React.useRef(null);
|
|
85
|
+
const [previewVideoBufferLoaded, setPreviewVideoBufferLoaded] = React.useState(false);
|
|
86
|
+
React.useEffect(() => {
|
|
87
87
|
let timer;
|
|
88
88
|
if (isInView && !isVideoPlayerOpen) {
|
|
89
89
|
timer = setTimeout(() => {
|
|
@@ -97,21 +97,21 @@ const MeetUniFiVideoPlayer = ({
|
|
|
97
97
|
clearTimeout(timer);
|
|
98
98
|
};
|
|
99
99
|
}, [isInView, isVideoPlayerOpen]);
|
|
100
|
-
|
|
100
|
+
React.useEffect(() => {
|
|
101
101
|
if (inViewForPreview && previewVideoBufferLoaded) {
|
|
102
102
|
try {
|
|
103
103
|
previewVideoRef.current?.play();
|
|
104
104
|
} catch {}
|
|
105
105
|
}
|
|
106
106
|
}, [inViewForPreview, previewVideoBufferLoaded]);
|
|
107
|
-
const handleEpisodeClick =
|
|
107
|
+
const handleEpisodeClick = React.useCallback(id2 => {
|
|
108
108
|
const foundEpisode = episodes.find(e => e.id === id2);
|
|
109
109
|
if (foundEpisode) {
|
|
110
110
|
setCurrentEpisode(foundEpisode);
|
|
111
111
|
setIsVideoPlayerOpen(true);
|
|
112
112
|
}
|
|
113
113
|
}, [episodes]);
|
|
114
|
-
const handleEpisodeMouseOver =
|
|
114
|
+
const handleEpisodeMouseOver = React.useCallback(() => {
|
|
115
115
|
const previewVideo = previewVideoRef.current;
|
|
116
116
|
if (previewVideo) {
|
|
117
117
|
try {
|
|
@@ -119,7 +119,7 @@ const MeetUniFiVideoPlayer = ({
|
|
|
119
119
|
} catch {}
|
|
120
120
|
}
|
|
121
121
|
}, []);
|
|
122
|
-
const handleEpisodeMouseOut =
|
|
122
|
+
const handleEpisodeMouseOut = React.useCallback(async () => {
|
|
123
123
|
const previewVideo = previewVideoRef.current;
|
|
124
124
|
if (previewVideo) {
|
|
125
125
|
try {
|
|
@@ -127,7 +127,7 @@ const MeetUniFiVideoPlayer = ({
|
|
|
127
127
|
} catch {}
|
|
128
128
|
}
|
|
129
129
|
}, []);
|
|
130
|
-
const episodeCards =
|
|
130
|
+
const episodeCards = React.useMemo(() => {
|
|
131
131
|
const episodeCards2 = [];
|
|
132
132
|
if (episodes.length > 1) {
|
|
133
133
|
episodeCards2.push(...episodes.map(episode => {
|
|
@@ -161,11 +161,11 @@ const MeetUniFiVideoPlayer = ({
|
|
|
161
161
|
}
|
|
162
162
|
return episodeCards2;
|
|
163
163
|
}, [comingSoon, episodes, handleEpisodeClick, handleEpisodeMouseOut, handleEpisodeMouseOver]);
|
|
164
|
-
const activeEpisodeCardIndex =
|
|
164
|
+
const activeEpisodeCardIndex = React.useMemo(() => {
|
|
165
165
|
return episodeCards.findIndex(card => card.id === currentEpisode.id);
|
|
166
166
|
}, [currentEpisode.id, episodeCards]);
|
|
167
|
-
const [backgroundDisabled, setBackgroundDisabled] =
|
|
168
|
-
|
|
167
|
+
const [backgroundDisabled, setBackgroundDisabled] = React.useState(false);
|
|
168
|
+
React.useEffect(() => {
|
|
169
169
|
if (isVideoPlayerOpen) {
|
|
170
170
|
setBackgroundDisabled(true);
|
|
171
171
|
return;
|
|
@@ -178,7 +178,7 @@ const MeetUniFiVideoPlayer = ({
|
|
|
178
178
|
}
|
|
179
179
|
setBackgroundDisabled(false);
|
|
180
180
|
}, [inViewForPreview, isVideoPlayerOpen, previewVideoBufferLoaded]);
|
|
181
|
-
const heading =
|
|
181
|
+
const heading = React.useMemo(() => {
|
|
182
182
|
if (flipTitle) {
|
|
183
183
|
return {
|
|
184
184
|
episodeTitle: title,
|
package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.js
CHANGED
|
@@ -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 MicrositeFeatureProgressBar = require('../MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.js');
|
|
6
6
|
var MicrositeColumnFeatureProgressBar_styles = require('./MicrositeColumnFeatureProgressBar.styles.js');
|
|
7
7
|
"use strict";
|
|
@@ -17,7 +17,7 @@ const MicrositeColumnFeatureProgressBar = ({
|
|
|
17
17
|
children: [/* @__PURE__ */jsxRuntime.jsx(MicrositeColumnFeatureProgressBar_styles.BlockTitle, {
|
|
18
18
|
children: block.title
|
|
19
19
|
}), /* @__PURE__ */jsxRuntime.jsx(MicrositeColumnFeatureProgressBar_styles.BlockFeatures, {
|
|
20
|
-
children: block.features.map((feature, index2) => /* @__PURE__ */
|
|
20
|
+
children: block.features.map((feature, index2) => /* @__PURE__ */React.createElement(MicrositeFeatureProgressBar.MicrositeFeatureProgressBar, {
|
|
21
21
|
...feature,
|
|
22
22
|
key: index2
|
|
23
23
|
}))
|
|
@@ -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 asset = require('../../utils/asset.js');
|
|
6
6
|
require('../CustomImage/index.js');
|
|
7
7
|
require('./assets/check-blue.svg.js');
|
|
@@ -31,7 +31,7 @@ const MicrositeFeatureChecklist = ({
|
|
|
31
31
|
cta,
|
|
32
32
|
motif
|
|
33
33
|
}) => {
|
|
34
|
-
const divider =
|
|
34
|
+
const divider = React.useMemo(() => asset.imageSrc(motif === "dark" ? dividerDark__default["default"] : dividerLight__default["default"]), [motif]);
|
|
35
35
|
return /* @__PURE__ */jsxRuntime.jsxs(MicrositeFeatureChecklist_styles.Container, {
|
|
36
36
|
motif,
|
|
37
37
|
children: [/* @__PURE__ */jsxRuntime.jsxs(MicrositeFeatureChecklist_styles.Titles, {
|
|
@@ -72,7 +72,7 @@ const FeatureGridItem = ({
|
|
|
72
72
|
description,
|
|
73
73
|
motif
|
|
74
74
|
}) => {
|
|
75
|
-
const check =
|
|
75
|
+
const check = React.useMemo(() => asset.imageSrc(motif === "dark" ? checkBlue__default["default"] : checkGray__default["default"]), [motif]);
|
|
76
76
|
return /* @__PURE__ */jsxRuntime.jsxs(MicrositeFeatureChecklist_styles.GridItemContainer, {
|
|
77
77
|
motif,
|
|
78
78
|
children: [/* @__PURE__ */jsxRuntime.jsx(MicrositeFeatureChecklist_styles.GridItemCheckbox, {
|
|
@@ -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 MicrositeFeatureProgressBar_styles = require('./MicrositeFeatureProgressBar.styles.js');
|
|
6
6
|
var MicrositeFeatureProgressBar_types = require('./MicrositeFeatureProgressBar.types.js');
|
|
7
7
|
"use strict";
|
|
@@ -21,8 +21,8 @@ const MicrositeFeatureProgressBar = ({
|
|
|
21
21
|
className,
|
|
22
22
|
type = MicrositeFeatureProgressBar_types.MicrositeFeatureProgressBarType.DEFAULT
|
|
23
23
|
}) => {
|
|
24
|
-
const partitionedProgress =
|
|
25
|
-
const mobilePartitionedProgress =
|
|
24
|
+
const partitionedProgress = React.useMemo(() => Math.min(Math.max(barValue, 0), max), [barValue, max]);
|
|
25
|
+
const mobilePartitionedProgress = React.useMemo(() => Math.min(Math.max(tabletBar?.value ?? 0, 0), tabletBar?.max ?? max), [tabletBar?.value, tabletBar?.max, max]);
|
|
26
26
|
return /* @__PURE__ */jsxRuntime.jsxs(MicrositeFeatureProgressBar_styles.Container, {
|
|
27
27
|
$small: type === MicrositeFeatureProgressBar_types.MicrositeFeatureProgressBarType.COLUMN,
|
|
28
28
|
className,
|
|
@@ -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('../../contexts/MicrositeMenuContext/index.js');
|
|
6
6
|
require('./components/HeaderContent/index.js');
|
|
7
7
|
var context = require('../../contexts/MicrositeMenuContext/context.js');
|
|
@@ -15,9 +15,9 @@ const MicrositeHeader = ({
|
|
|
15
15
|
const {
|
|
16
16
|
menu
|
|
17
17
|
} = context.useMicrositeMenu();
|
|
18
|
-
const firstLevelItems =
|
|
19
|
-
const firstLevelActiveItem =
|
|
20
|
-
const secondLevelItems =
|
|
18
|
+
const firstLevelItems = React.useMemo(() => menu.items, [menu.items]);
|
|
19
|
+
const firstLevelActiveItem = React.useMemo(() => firstLevelItems?.find(item => item.active), [firstLevelItems]);
|
|
20
|
+
const secondLevelItems = React.useMemo(() => firstLevelActiveItem?.variant !== "dropdown" ? firstLevelActiveItem?.items : void 0, [firstLevelActiveItem]);
|
|
21
21
|
return /* @__PURE__ */jsxRuntime.jsx(HeaderContent.HeaderContent, {
|
|
22
22
|
menu,
|
|
23
23
|
motif,
|
|
@@ -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/zoomOut.svg.js');
|
|
6
6
|
require('../../../../constants/icons/generic/index.js');
|
|
7
7
|
require('../../../../contexts/MicrositeMenuContext/index.js');
|
|
@@ -34,9 +34,9 @@ const DropdownMenu = ({
|
|
|
34
34
|
const {
|
|
35
35
|
language
|
|
36
36
|
} = context.useMicrositeMenu();
|
|
37
|
-
const [activeItemId, setActiveItemId] =
|
|
38
|
-
const activeItem =
|
|
39
|
-
|
|
37
|
+
const [activeItemId, setActiveItemId] = React.useState();
|
|
38
|
+
const activeItem = React.useMemo(() => items?.find(item => item.id === activeItemId), [activeItemId, items]);
|
|
39
|
+
React.useEffect(() => {
|
|
40
40
|
setActiveItemId(items?.[0]?.id);
|
|
41
41
|
}, [items]);
|
|
42
42
|
const {
|
|
@@ -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('../../../../constants/icons/index.js');
|
|
7
7
|
require('../../../../constants/icons/header/index.js');
|
|
@@ -74,9 +74,9 @@ const HeaderContent = ({
|
|
|
74
74
|
account
|
|
75
75
|
}) => {
|
|
76
76
|
const isMobile = reactUse.useMedia(layout.BREAKPOINTS.TABLET_AND_DOWN, false);
|
|
77
|
-
const wrapperRef =
|
|
78
|
-
const [hasWhiteBackground, setHasWhiteBackground] =
|
|
79
|
-
const [showSiteMap, setShowSiteMap] =
|
|
77
|
+
const wrapperRef = React.useRef(null);
|
|
78
|
+
const [hasWhiteBackground, setHasWhiteBackground] = React.useState(false);
|
|
79
|
+
const [showSiteMap, setShowSiteMap] = React.useState(false);
|
|
80
80
|
const {
|
|
81
81
|
activeModal,
|
|
82
82
|
setActiveModal
|
|
@@ -90,8 +90,8 @@ const HeaderContent = ({
|
|
|
90
90
|
const {
|
|
91
91
|
formatMessage
|
|
92
92
|
} = translations.useMicrositeMenuTranslations(language);
|
|
93
|
-
const [selectedMenu, setSelectedMenu] =
|
|
94
|
-
const hasDarkText =
|
|
93
|
+
const [selectedMenu, setSelectedMenu] = React.useState(null);
|
|
94
|
+
const hasDarkText = React.useMemo(() => {
|
|
95
95
|
if (motif === LIGHT_KEY) {
|
|
96
96
|
return true;
|
|
97
97
|
}
|
|
@@ -106,13 +106,13 @@ const HeaderContent = ({
|
|
|
106
106
|
}) => !!active);
|
|
107
107
|
return activeChildElement?.hasDarkText ?? false;
|
|
108
108
|
}, [menu, motif]);
|
|
109
|
-
const theme =
|
|
109
|
+
const theme = React.useMemo(() => {
|
|
110
110
|
if (hasDarkText) {
|
|
111
111
|
return "DarkText" /* DarkText */;
|
|
112
112
|
}
|
|
113
113
|
return hasWhiteBackground || !!selectedMenu ? "DarkText" /* DarkText */ : "LightText" /* LightText */;
|
|
114
114
|
}, [hasWhiteBackground, selectedMenu, hasDarkText]);
|
|
115
|
-
|
|
115
|
+
React.useEffect(() => {
|
|
116
116
|
setSelectedMenu(null);
|
|
117
117
|
if (!wrapperRef?.current) {
|
|
118
118
|
return;
|
|
@@ -125,10 +125,10 @@ const HeaderContent = ({
|
|
|
125
125
|
observer.disconnect();
|
|
126
126
|
};
|
|
127
127
|
}, []);
|
|
128
|
-
const handleModalClose =
|
|
128
|
+
const handleModalClose = React.useCallback(() => {
|
|
129
129
|
setActiveModal(null);
|
|
130
130
|
}, [setActiveModal]);
|
|
131
|
-
const handleModalOpen =
|
|
131
|
+
const handleModalOpen = React.useCallback((e, id) => {
|
|
132
132
|
e.stopPropagation();
|
|
133
133
|
if (activeModal !== id) {
|
|
134
134
|
onModalOpen?.();
|
|
@@ -153,16 +153,16 @@ const HeaderContent = ({
|
|
|
153
153
|
setSelectedMenu(null);
|
|
154
154
|
setShowSiteMap(false);
|
|
155
155
|
};
|
|
156
|
-
const handleHamburgerClick =
|
|
156
|
+
const handleHamburgerClick = React.useCallback(e => {
|
|
157
157
|
setHasWhiteBackground(!hasWhiteBackground);
|
|
158
158
|
handleModalOpen(e, types.ModalId.MobileMenu);
|
|
159
159
|
}, [handleModalOpen, hasWhiteBackground]);
|
|
160
|
-
|
|
160
|
+
React.useEffect(() => {
|
|
161
161
|
if (isMobile) {
|
|
162
162
|
setHasWhiteBackground(true);
|
|
163
163
|
}
|
|
164
164
|
}, [isMobile]);
|
|
165
|
-
|
|
165
|
+
React.useEffect(() => {
|
|
166
166
|
if (activeModal === types.ModalId.MobileMenu) {
|
|
167
167
|
document.body.style.overflow = "hidden";
|
|
168
168
|
} else {
|
|
@@ -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/fullScreenExit.svg.js');
|
|
6
6
|
require('../../../../constants/icons/header/index.js');
|
|
7
7
|
require('../../../../contexts/MicrositeMenuContext/index.js');
|
|
@@ -38,7 +38,7 @@ const SiteMap = ({
|
|
|
38
38
|
const {
|
|
39
39
|
formatMessage
|
|
40
40
|
} = translations.useMicrositeMenuTranslations(language);
|
|
41
|
-
|
|
41
|
+
React.useEffect(() => {
|
|
42
42
|
document.body.style.overflow = "hidden";
|
|
43
43
|
return () => {
|
|
44
44
|
document.body.style.overflow = "unset";
|
|
@@ -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('../../../../contexts/MenuContext/index.js');
|
|
6
6
|
require('../../../../contexts/MicrositeMenuContext/index.js');
|
|
7
7
|
var translations = require('../../../../contexts/MicrositeMenuContext/translations.js');
|
|
@@ -30,13 +30,13 @@ const SiteMapColumns = ({
|
|
|
30
30
|
const {
|
|
31
31
|
createSiteUrl
|
|
32
32
|
} = context$1.useMenu();
|
|
33
|
-
const [isSitemapExpanded, setIsSitemapExpanded] =
|
|
34
|
-
const [activeHoverItemId, setActiveHoverItemId] =
|
|
35
|
-
const siteMapRef =
|
|
36
|
-
const childCardRefs =
|
|
37
|
-
const childSubCardRefs =
|
|
38
|
-
const [childCardBranchHeights, setChildCardBranchHeights] =
|
|
39
|
-
const recalculateBranchHeights =
|
|
33
|
+
const [isSitemapExpanded, setIsSitemapExpanded] = React.useState(true);
|
|
34
|
+
const [activeHoverItemId, setActiveHoverItemId] = React.useState(null);
|
|
35
|
+
const siteMapRef = React.useRef(null);
|
|
36
|
+
const childCardRefs = React.useRef({});
|
|
37
|
+
const childSubCardRefs = React.useRef({});
|
|
38
|
+
const [childCardBranchHeights, setChildCardBranchHeights] = React.useState(/* @__PURE__ */new Map());
|
|
39
|
+
const recalculateBranchHeights = React.useCallback(() => {
|
|
40
40
|
const heights = /* @__PURE__ */new Map();
|
|
41
41
|
Object.entries(childCardRefs.current).forEach(([key, value]) => {
|
|
42
42
|
if (value?.offsetParent) {
|
|
@@ -50,7 +50,7 @@ const SiteMapColumns = ({
|
|
|
50
50
|
});
|
|
51
51
|
setChildCardBranchHeights(heights);
|
|
52
52
|
}, []);
|
|
53
|
-
const childBranchLineHeight =
|
|
53
|
+
const childBranchLineHeight = React.useMemo(() => Math.max(...Array.from(childCardBranchHeights.values())), [childCardBranchHeights]);
|
|
54
54
|
const getHeight = element => {
|
|
55
55
|
const parentOffsetTop = element?.offsetParent?.getBoundingClientRect()?.top ?? 0;
|
|
56
56
|
return element.getBoundingClientRect().top - parentOffsetTop + 20 + element.clientHeight / 2;
|
|
@@ -68,7 +68,7 @@ const SiteMapColumns = ({
|
|
|
68
68
|
id: subId
|
|
69
69
|
}) => subId === activeHoverItemId));
|
|
70
70
|
};
|
|
71
|
-
|
|
71
|
+
React.useEffect(() => {
|
|
72
72
|
recalculateBranchHeights();
|
|
73
73
|
window.addEventListener("resize", recalculateBranchHeights);
|
|
74
74
|
return () => {
|
|
@@ -103,7 +103,7 @@ const SiteMapColumns = ({
|
|
|
103
103
|
children: items?.map(item => /* @__PURE__ */jsxRuntime.jsxs(SiteMapColumns_styles.Column, {
|
|
104
104
|
children: [(item?.items ?? []).filter(({
|
|
105
105
|
isOverview
|
|
106
|
-
}) => !isOverview).map(subItem => /* @__PURE__ */jsxRuntime.jsxs(
|
|
106
|
+
}) => !isOverview).map(subItem => /* @__PURE__ */jsxRuntime.jsxs(React.Fragment, {
|
|
107
107
|
children: [/* @__PURE__ */jsxRuntime.jsxs(SiteMapColumns_styles.ChildCard, {
|
|
108
108
|
ref: ref => childCardRefs.current[subItem.id] = ref,
|
|
109
109
|
onMouseEnter: () => setActiveHoverItemId(subItem.id),
|
|
@@ -139,13 +139,13 @@ const SiteMapColumns = ({
|
|
|
139
139
|
width: "20",
|
|
140
140
|
height: childBranchLineHeight,
|
|
141
141
|
$height: childBranchLineHeight,
|
|
142
|
-
children: [item.items?.map(subItem => /* @__PURE__ */jsxRuntime.jsxs(
|
|
142
|
+
children: [item.items?.map(subItem => /* @__PURE__ */jsxRuntime.jsxs(React.Fragment, {
|
|
143
143
|
children: [/* @__PURE__ */jsxRuntime.jsx("path", {
|
|
144
144
|
d: `M 1,0 V ${(childCardBranchHeights.get(subItem.id) ?? 0) - 9} a 9,9 0 0 0 9,9 H 8`,
|
|
145
145
|
stroke: "#e7e7e7",
|
|
146
146
|
strokeWidth: "1",
|
|
147
147
|
fill: "none"
|
|
148
|
-
}), subItem?.items?.map(item2 => /* @__PURE__ */jsxRuntime.jsx(
|
|
148
|
+
}), subItem?.items?.map(item2 => /* @__PURE__ */jsxRuntime.jsx(React.Fragment, {
|
|
149
149
|
children: /* @__PURE__ */jsxRuntime.jsx("path", {
|
|
150
150
|
d: `M 1,0 V ${(childCardBranchHeights.get(item2.id) ?? 0) - 9} a 9,9 0 0 0 9,9 H 20`,
|
|
151
151
|
stroke: "#e7e7e7",
|
|
@@ -153,7 +153,7 @@ const SiteMapColumns = ({
|
|
|
153
153
|
fill: "none"
|
|
154
154
|
})
|
|
155
155
|
}, `${item2.id}-sub-line-background`))]
|
|
156
|
-
}, `${subItem.id}-background`)), item.items?.map(subItem => /* @__PURE__ */jsxRuntime.jsxs(
|
|
156
|
+
}, `${subItem.id}-background`)), item.items?.map(subItem => /* @__PURE__ */jsxRuntime.jsxs(React.Fragment, {
|
|
157
157
|
children: [/* @__PURE__ */jsxRuntime.jsx("path", {
|
|
158
158
|
d: `M 1,0 V ${(childCardBranchHeights.get(subItem.id) ?? 0) - 9} a 9,9 0 0 0 9,9 H 8`,
|
|
159
159
|
stroke: "#3A95FF",
|
|
@@ -164,7 +164,7 @@ const SiteMapColumns = ({
|
|
|
164
164
|
opacity: activeHoverItemId === subItem.id ? 1 : 0,
|
|
165
165
|
zIndex: 1e3
|
|
166
166
|
}
|
|
167
|
-
}), subItem?.items?.map(item2 => /* @__PURE__ */jsxRuntime.jsx(
|
|
167
|
+
}), subItem?.items?.map(item2 => /* @__PURE__ */jsxRuntime.jsx(React.Fragment, {
|
|
168
168
|
children: /* @__PURE__ */jsxRuntime.jsx("path", {
|
|
169
169
|
d: `M 1,0 V ${(childCardBranchHeights.get(item2.id) ?? 0) - 9} a 9,9 0 0 0 9,9 H 20`,
|
|
170
170
|
stroke: "#3A95FF",
|
|
@@ -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
|
"use strict";
|
|
6
6
|
const LinePaths = ({
|
|
7
7
|
id,
|
|
@@ -13,7 +13,7 @@ const LinePaths = ({
|
|
|
13
13
|
spacingTop = 24
|
|
14
14
|
// Half of padding top from SubNavigationTopologyContainer
|
|
15
15
|
}) => {
|
|
16
|
-
const drawPaths =
|
|
16
|
+
const drawPaths = React.useCallback(id2 => {
|
|
17
17
|
const svg = document.querySelector(`#${id2}`);
|
|
18
18
|
if (!svg || !items?.length) {
|
|
19
19
|
return;
|
|
@@ -72,7 +72,7 @@ const LinePaths = ({
|
|
|
72
72
|
const viewBoxHeight = maxY - minY;
|
|
73
73
|
svg.setAttribute("viewBox", `${minX} ${minY} ${viewBoxWidth} ${viewBoxHeight}`);
|
|
74
74
|
}, [items, parentId, elementsRef, spacingTop]);
|
|
75
|
-
|
|
75
|
+
React.useEffect(() => {
|
|
76
76
|
if (!items?.length || !id) {
|
|
77
77
|
return;
|
|
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
|
require('../../../../constants/icons/index.js');
|
|
6
6
|
require('../../../../contexts/MenuContext/index.js');
|
|
7
7
|
require('../../../../contexts/MicrositeMenuContext/index.js');
|
|
@@ -71,22 +71,22 @@ const VisualTopology = ({
|
|
|
71
71
|
const {
|
|
72
72
|
createSiteUrl
|
|
73
73
|
} = context$1.useMenu();
|
|
74
|
-
const containerRef =
|
|
75
|
-
const elementsRef =
|
|
76
|
-
const categoryRef =
|
|
77
|
-
const [isTopologyExpanded, setIsTopologyExpanded] =
|
|
78
|
-
const [activeSubmenu, setActiveSubmenu] =
|
|
79
|
-
const filteredNavigation =
|
|
74
|
+
const containerRef = React.useRef(null);
|
|
75
|
+
const elementsRef = React.useRef({});
|
|
76
|
+
const categoryRef = React.useRef({});
|
|
77
|
+
const [isTopologyExpanded, setIsTopologyExpanded] = React.useState(true);
|
|
78
|
+
const [activeSubmenu, setActiveSubmenu] = React.useState(null);
|
|
79
|
+
const filteredNavigation = React.useMemo(() => {
|
|
80
80
|
return items.filter(({
|
|
81
81
|
id
|
|
82
82
|
}) => !HIDDEN_ITEMS.includes(id));
|
|
83
83
|
}, [items]);
|
|
84
|
-
const filteredActiveSubmenu =
|
|
84
|
+
const filteredActiveSubmenu = React.useMemo(() => {
|
|
85
85
|
return (activeSubmenu?.items ?? []).filter(({
|
|
86
86
|
isOverview
|
|
87
87
|
}) => !isOverview);
|
|
88
88
|
}, [activeSubmenu]);
|
|
89
|
-
|
|
89
|
+
React.useEffect(() => {
|
|
90
90
|
if (!filteredNavigation?.length) {
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var round = require('lodash/round');
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
var reactUse = require('react-use');
|
|
7
7
|
var layout = require('../../constants/layout.js');
|
|
8
8
|
var MicrositeHero_styles = require('./MicrositeHero.styles.js');
|
|
@@ -30,22 +30,22 @@ const MicrositeHero = ({
|
|
|
30
30
|
icons,
|
|
31
31
|
transitions: customTransitions
|
|
32
32
|
}) => {
|
|
33
|
-
const videoRef =
|
|
34
|
-
const videoInnerWrapRef =
|
|
35
|
-
const loopVideoRef =
|
|
36
|
-
const headingWrapRef =
|
|
37
|
-
const headingInnerWrapRef =
|
|
38
|
-
const buyButtonRef =
|
|
39
|
-
const frameRef =
|
|
40
|
-
const [currentSlide, setCurrentSlide] =
|
|
33
|
+
const videoRef = React.useRef(null);
|
|
34
|
+
const videoInnerWrapRef = React.useRef(null);
|
|
35
|
+
const loopVideoRef = React.useRef(null);
|
|
36
|
+
const headingWrapRef = React.useRef(null);
|
|
37
|
+
const headingInnerWrapRef = React.useRef(null);
|
|
38
|
+
const buyButtonRef = React.useRef(null);
|
|
39
|
+
const frameRef = React.useRef(0);
|
|
40
|
+
const [currentSlide, setCurrentSlide] = React.useState(0);
|
|
41
41
|
const isMobile = reactUse.useMedia(layout.BREAKPOINTS.MOBILE_AND_DOWN, false);
|
|
42
42
|
const isDesktop = reactUse.useMedia(layout.BREAKPOINTS.TABLET_UP, false);
|
|
43
43
|
const {
|
|
44
44
|
width
|
|
45
45
|
} = reactUse.useWindowSize();
|
|
46
|
-
const [isVideoPlaying, setIsVideoPlaying] =
|
|
47
|
-
const [loopActive, setLoopActive] =
|
|
48
|
-
const animateText =
|
|
46
|
+
const [isVideoPlaying, setIsVideoPlaying] = React.useState(false);
|
|
47
|
+
const [loopActive, setLoopActive] = React.useState(false);
|
|
48
|
+
const animateText = React.useCallback(() => {
|
|
49
49
|
const videoElement = videoRef.current;
|
|
50
50
|
const headingWrapElement = headingWrapRef.current;
|
|
51
51
|
const headingInnerWrapElement = headingInnerWrapRef.current;
|
|
@@ -96,7 +96,7 @@ const MicrositeHero = ({
|
|
|
96
96
|
}
|
|
97
97
|
frameRef.current = requestAnimationFrame(animateText);
|
|
98
98
|
}, [currentSlide, customTransitions, isDesktop, isMobile, video.slides]);
|
|
99
|
-
|
|
99
|
+
React.useEffect(() => {
|
|
100
100
|
if (variant === MicrositeHero_types.HeroVariant.productPage) {
|
|
101
101
|
return;
|
|
102
102
|
}
|
|
@@ -105,14 +105,14 @@ const MicrositeHero = ({
|
|
|
105
105
|
cancelAnimationFrame(frameRef.current);
|
|
106
106
|
};
|
|
107
107
|
}, [animateText, variant]);
|
|
108
|
-
const handleLoopVideoPlay =
|
|
108
|
+
const handleLoopVideoPlay = React.useCallback(() => {
|
|
109
109
|
const loopVideo = loopVideoRef.current;
|
|
110
110
|
if (!loopVideo) {
|
|
111
111
|
return;
|
|
112
112
|
}
|
|
113
113
|
loopVideo.play();
|
|
114
114
|
}, []);
|
|
115
|
-
|
|
115
|
+
React.useEffect(() => {
|
|
116
116
|
const video2 = videoRef.current;
|
|
117
117
|
const handleVideoEnded = () => {
|
|
118
118
|
setLoopActive(true);
|
|
@@ -123,7 +123,7 @@ const MicrositeHero = ({
|
|
|
123
123
|
video2?.removeEventListener("ended", handleVideoEnded);
|
|
124
124
|
};
|
|
125
125
|
}, [handleLoopVideoPlay]);
|
|
126
|
-
|
|
126
|
+
React.useEffect(() => {
|
|
127
127
|
const loopVideo = loopVideoRef.current;
|
|
128
128
|
if (!loopVideo) {
|
|
129
129
|
return;
|
|
@@ -139,10 +139,10 @@ const MicrositeHero = ({
|
|
|
139
139
|
}, 1e3);
|
|
140
140
|
});
|
|
141
141
|
}, []);
|
|
142
|
-
const aspectRatio =
|
|
142
|
+
const aspectRatio = React.useMemo(() => {
|
|
143
143
|
return round__default["default"](video.width / video.height, 2);
|
|
144
144
|
}, [video.height, video.width]);
|
|
145
|
-
const iconBreakPoint =
|
|
145
|
+
const iconBreakPoint = React.useMemo(() => {
|
|
146
146
|
if (!icons?.length) {
|
|
147
147
|
return 0;
|
|
148
148
|
}
|
|
@@ -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 MicrositeIntroductionBlock_styles = require('./MicrositeIntroductionBlock.styles.js');
|
|
6
6
|
var MicrositeIntroductionBlock_types = require('./MicrositeIntroductionBlock.types.js');
|
|
7
7
|
"use strict";
|
|
@@ -10,8 +10,8 @@ const MicrositeIntroductionBlock = ({
|
|
|
10
10
|
className,
|
|
11
11
|
buyButton
|
|
12
12
|
}) => {
|
|
13
|
-
const videoRef =
|
|
14
|
-
const handleReplay =
|
|
13
|
+
const videoRef = React.useRef(null);
|
|
14
|
+
const handleReplay = React.useCallback(async () => {
|
|
15
15
|
if (!videoRef.current) {
|
|
16
16
|
return;
|
|
17
17
|
}
|
|
@@ -22,7 +22,7 @@ const MicrositeIntroductionBlock = ({
|
|
|
22
22
|
} catch {}
|
|
23
23
|
}
|
|
24
24
|
}, []);
|
|
25
|
-
const BuyButtonFragment =
|
|
25
|
+
const BuyButtonFragment = React.useMemo(() => {
|
|
26
26
|
if (!buyButton) return null;
|
|
27
27
|
return /* @__PURE__ */jsxRuntime.jsx(MicrositeIntroductionBlock_styles.MicrositeBuyButton, {
|
|
28
28
|
...buyButton
|
|
@@ -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('../../contexts/MenuContext/index.js');
|
|
6
6
|
var MicrositePageContext = require('../Microsites/MicrositePageContext.js');
|
|
7
7
|
var Microsites_types = require('../Microsites/Microsites.types.js');
|
|
@@ -13,11 +13,11 @@ const RESET_STEP_MS = 20;
|
|
|
13
13
|
const GridItem = ({
|
|
14
14
|
item
|
|
15
15
|
}) => {
|
|
16
|
-
const context =
|
|
16
|
+
const context = React.useContext(MicrositePageContext.MicrositePageContext);
|
|
17
17
|
const playOnHover = item.media.type === MicrositeMediaGrid_types.AssetType.Video && item.media.playOnHover;
|
|
18
|
-
const [playing, setPlaying] =
|
|
19
|
-
const animationFrame =
|
|
20
|
-
const resetCurrentTime =
|
|
18
|
+
const [playing, setPlaying] = React.useState(!playOnHover);
|
|
19
|
+
const animationFrame = React.useRef(0);
|
|
20
|
+
const resetCurrentTime = React.useCallback(el => {
|
|
21
21
|
if (playing || !el.currentTime) return;
|
|
22
22
|
if (el.currentTime >= el.duration) {
|
|
23
23
|
el.currentTime = 0;
|
|
@@ -32,16 +32,16 @@ const GridItem = ({
|
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
}, [playing]);
|
|
35
|
-
const videoRef =
|
|
36
|
-
const onMouseEnter =
|
|
35
|
+
const videoRef = React.useRef(null);
|
|
36
|
+
const onMouseEnter = React.useCallback(() => {
|
|
37
37
|
if (!playOnHover) return;
|
|
38
38
|
setPlaying(true);
|
|
39
39
|
}, [playOnHover]);
|
|
40
|
-
const onMouseLeave =
|
|
40
|
+
const onMouseLeave = React.useCallback(() => {
|
|
41
41
|
if (!playOnHover) return;
|
|
42
42
|
setPlaying(false);
|
|
43
43
|
}, [playOnHover]);
|
|
44
|
-
|
|
44
|
+
React.useEffect(() => {
|
|
45
45
|
const el = videoRef.current;
|
|
46
46
|
if (!el) return;
|
|
47
47
|
if (playing) {
|