@ubnt/store.core 9.53.0-alpha.5 → 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 +4 -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/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/ai-turret.jpg +0 -0
- package/lib/assets/ai-turret2.jpg +0 -0
- package/lib/assets/building-bridge-xg.jpg +0 -0
- package/lib/assets/building-bridge-xg2.jpg +0 -0
- package/lib/assets/building-bridge.jpg +0 -0
- package/lib/assets/building-bridge2.jpg +0 -0
- package/lib/assets/close2.svg +2 -3
- package/lib/assets/close3.svg +3 -2
- 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/industrial.jpg +0 -0
- package/lib/assets/industrial2.jpg +0 -0
- package/lib/assets/interior-design.svg +2 -2
- package/lib/assets/interior-design2.svg +2 -2
- package/lib/assets/minus4.svg +8 -8
- package/lib/assets/minus5.svg +8 -8
- package/lib/assets/plus6.svg +9 -9
- package/lib/assets/plus7.svg +9 -9
- package/lib/assets/reader-lite.jpg +0 -0
- package/lib/assets/reader-lite2.jpg +0 -0
- 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 +12 -12
- package/lib/components/Microsites/MicrositePageContext.js +2 -2
- package/lib/components/Microsites/MicrositeProductPage.js +3 -3
- package/lib/components/Microsites/context/MicrositeProductPageContext.js +3 -3
- package/lib/components/MobileModal/MobileModal.js +4 -4
- package/lib/components/Modal/Modal.js +3 -3
- package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js +3 -3
- package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.js +2 -2
- package/lib/components/ModelCompareV3/ModelCompareV3.js +14 -14
- package/lib/components/ModelCompareV3/ProductGroupsGrid.js +3 -3
- package/lib/components/ModelCompareV3/ScrollGroup/ScrollGroup.js +5 -5
- package/lib/components/ModelCompareV3/ScrollGroup/context.js +3 -3
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupItem.js +8 -8
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupSetScroll.js +2 -2
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupTo.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js +7 -7
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridBody.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js +5 -5
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/context.js +3 -3
- package/lib/components/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 +6 -6
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/SliderSection.js +3 -3
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
- 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 +17 -17
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
- 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 +20 -20
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/close.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/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/BuildingBridge/building-bridge.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/BuildingBridge/building-bridge.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/DomeTurret/ai-turret.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DomeTurret/ai-turret.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/DoorAccess/reader-lite.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DoorAccess/reader-lite.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/interior-design.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/interior-design.svg.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/dome-and-turret/ai-turret.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-turret.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/door-access/reader-lite.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/reader-lite.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/interior-design.svg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/interior-design.svg.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/building-bridge/building-bridge.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/wifi/building-bridge/building-bridge.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/data/button-groups/interiorDesign.js +1 -1
- package/lib/constants/modelCompareData/data/button-groups/interiorDesign.mjs +1 -1
- package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/InteriorDesign.js +1 -1
- package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/InteriorDesign.mjs +1 -1
- 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/aiTurret.js +2 -2
- package/lib/constants/modelCompareData/data/products/aiTurret.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/buildingBridge.js +2 -2
- package/lib/constants/modelCompareData/data/products/buildingBridge.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/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/industrial.js +2 -2
- package/lib/constants/modelCompareData/data/products/industrial.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/readerLite.js +2 -2
- package/lib/constants/modelCompareData/data/products/readerLite.mjs +2 -2
- 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('../Search/index.js');
|
|
@@ -21,7 +21,7 @@ const LandingPageSearch = ({
|
|
|
21
21
|
const handleInputValueChange = e => {
|
|
22
22
|
search?.onSearch(e.target.value);
|
|
23
23
|
};
|
|
24
|
-
const handleOnClose =
|
|
24
|
+
const handleOnClose = React.useCallback(e => {
|
|
25
25
|
if (e?.ctrlKey || e?.metaKey) {
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
@@ -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('../../../utils/money/index.js');
|
|
7
7
|
require('../../CustomImage/index.js');
|
|
@@ -26,13 +26,13 @@ const SearchModal = function SearchModal2({
|
|
|
26
26
|
renderImage,
|
|
27
27
|
disableShowMoreResults
|
|
28
28
|
}) {
|
|
29
|
-
const ref =
|
|
30
|
-
const noResults =
|
|
31
|
-
const showSearchResultsLink =
|
|
29
|
+
const ref = React.useRef(null);
|
|
30
|
+
const noResults = React.useMemo(() => !search.loading && !search.items?.length && !!formattedQuerySearchTerm, [formattedQuerySearchTerm, search.items?.length, search.loading]);
|
|
31
|
+
const showSearchResultsLink = React.useMemo(() => !disableShowMoreResults && search.totalItemsCount > MAX_SEARCH_RESULTS, [search, disableShowMoreResults]);
|
|
32
32
|
reactUse.useClickAway(ref, () => {
|
|
33
33
|
onClose?.();
|
|
34
34
|
});
|
|
35
|
-
const searchItemsSliced =
|
|
35
|
+
const searchItemsSliced = React.useMemo(() => {
|
|
36
36
|
return search.items.slice(0, MAX_SEARCH_RESULTS);
|
|
37
37
|
}, [search.items]);
|
|
38
38
|
return /* @__PURE__ */jsxRuntime.jsxs(Modal_styles.Container, {
|
|
@@ -80,16 +80,16 @@ const SearchModalItem = function SearchModalItem2({
|
|
|
80
80
|
renderImage,
|
|
81
81
|
renderSeparationBorder
|
|
82
82
|
}) {
|
|
83
|
-
const handleButtonClick =
|
|
83
|
+
const handleButtonClick = React.useCallback(() => {
|
|
84
84
|
onAddToCart(slug);
|
|
85
85
|
}, [onAddToCart, slug]);
|
|
86
|
-
const isInStock =
|
|
86
|
+
const isInStock = React.useMemo(() => {
|
|
87
87
|
return !!variants?.find(variant => variant.isInStock);
|
|
88
88
|
}, [variants]);
|
|
89
|
-
const isComingSoon =
|
|
89
|
+
const isComingSoon = React.useMemo(() => {
|
|
90
90
|
return !isInStock && !!variants?.find(variant => variant.isComingSoon);
|
|
91
91
|
}, [isInStock, variants]);
|
|
92
|
-
const addToCartButtonText =
|
|
92
|
+
const addToCartButtonText = React.useMemo(() => {
|
|
93
93
|
if (isComingSoon) {
|
|
94
94
|
return translations.view;
|
|
95
95
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var Checkbox = require('@ubnt/ui-components/Checkbox');
|
|
5
5
|
var Radio = require('@ubnt/ui-components/Radio');
|
|
6
|
-
var
|
|
6
|
+
var React = require('react');
|
|
7
7
|
var reactUse = require('react-use');
|
|
8
8
|
require('../../assets/icons/previouslyPurchasedStar.svg.js');
|
|
9
9
|
require('../../constants/icons/index.js');
|
|
@@ -44,11 +44,11 @@ const LandingPageSidebar = function LandingPageSidebar2({
|
|
|
44
44
|
productTypeProps,
|
|
45
45
|
isCartSummaryOpen
|
|
46
46
|
}) {
|
|
47
|
-
const [isMobileOverlayOpened, setIsMobileOverlayOpened] =
|
|
47
|
+
const [isMobileOverlayOpened, setIsMobileOverlayOpened] = React.useState(false);
|
|
48
48
|
const isMobile = reactUse.useMedia(layout.BREAKPOINTS.TABLET_AND_DOWN, false);
|
|
49
|
-
const [hasFiltersChanged, setHasFiltersChanged] =
|
|
49
|
+
const [hasFiltersChanged, setHasFiltersChanged] = React.useState(false);
|
|
50
50
|
useLockBodyScrollCustom.useLockBodyScrollCustom(isMobile && isMobileOverlayOpened);
|
|
51
|
-
const filtersChange =
|
|
51
|
+
const filtersChange = React.useCallback(value => {
|
|
52
52
|
setHasFiltersChanged(true);
|
|
53
53
|
filtersBlock?.onChange(value);
|
|
54
54
|
}, [filtersBlock]);
|
|
@@ -108,17 +108,17 @@ const CategoriesBlock = function CategoriesBlock2({
|
|
|
108
108
|
isSearchUsed,
|
|
109
109
|
productCount
|
|
110
110
|
}) {
|
|
111
|
-
const getInitialIndex =
|
|
111
|
+
const getInitialIndex = React.useCallback(() => {
|
|
112
112
|
return categories.findIndex(category => {
|
|
113
113
|
return category.items.some(item => categoriesBlock?.activeCategory === item.slug);
|
|
114
114
|
});
|
|
115
115
|
}, [categories, categoriesBlock?.activeCategory]);
|
|
116
|
-
const [initialAccordionIndex, setInitialAccordionIndex] =
|
|
117
|
-
const categoryChange =
|
|
116
|
+
const [initialAccordionIndex, setInitialAccordionIndex] = React.useState(getInitialIndex());
|
|
117
|
+
const categoryChange = React.useCallback(value => {
|
|
118
118
|
setFilersChanged(true);
|
|
119
119
|
categoriesBlock?.onChange(value);
|
|
120
120
|
}, [categoriesBlock, setFilersChanged]);
|
|
121
|
-
const accordionItems =
|
|
121
|
+
const accordionItems = React.useMemo(() => {
|
|
122
122
|
return categories.filter(category => isSearchUsed || (category?.items.flatMap(item => item.products).length || 0) > 0).map(category => {
|
|
123
123
|
const firstCategory = category.items[0];
|
|
124
124
|
return {
|
|
@@ -141,7 +141,7 @@ const CategoriesBlock = function CategoriesBlock2({
|
|
|
141
141
|
};
|
|
142
142
|
});
|
|
143
143
|
}, [categories, categoriesBlock?.activeCategory, categoryChange, isSearchUsed, translations]);
|
|
144
|
-
const handleAccordionChange =
|
|
144
|
+
const handleAccordionChange = React.useCallback(index => {
|
|
145
145
|
if (index > -1) {
|
|
146
146
|
setInitialAccordionIndex(index);
|
|
147
147
|
const currentCategoryID = accordionItems[index]?.id;
|
|
@@ -209,7 +209,7 @@ const FilterBlock = function FilterBlock2({
|
|
|
209
209
|
translations,
|
|
210
210
|
filtersBlock
|
|
211
211
|
}) {
|
|
212
|
-
const filtersList =
|
|
212
|
+
const filtersList = React.useMemo(() => {
|
|
213
213
|
return [{
|
|
214
214
|
title: translations.MSRPRange,
|
|
215
215
|
id: "priceRange",
|
|
@@ -232,7 +232,7 @@ const FilterBlock = function FilterBlock2({
|
|
|
232
232
|
type: "checkbox"
|
|
233
233
|
}];
|
|
234
234
|
}, [translations.MSRPRange, translations.earlyAccess, translations.inStock, translations.myPurchaseHistory]);
|
|
235
|
-
const handleCheckboxChange =
|
|
235
|
+
const handleCheckboxChange = React.useCallback((value, checked) => {
|
|
236
236
|
if (checked && !filtersBlock?.activeFilters.filters?.includes(value)) {
|
|
237
237
|
const newData = {
|
|
238
238
|
...filtersBlock?.activeFilters,
|
|
@@ -247,7 +247,7 @@ const FilterBlock = function FilterBlock2({
|
|
|
247
247
|
filtersBlock?.onChange(newData);
|
|
248
248
|
}
|
|
249
249
|
}, [filtersBlock]);
|
|
250
|
-
const hasFilters =
|
|
250
|
+
const hasFilters = React.useMemo(() => {
|
|
251
251
|
return !!filtersBlock?.activeFilters.filters?.length || filtersBlock?.activeFilters.priceFrom !== void 0 || filtersBlock?.activeFilters.priceTo !== void 0;
|
|
252
252
|
}, [filtersBlock?.activeFilters.filters?.length, filtersBlock?.activeFilters.priceFrom, filtersBlock?.activeFilters.priceTo]);
|
|
253
253
|
if (!filtersBlock) {
|
|
@@ -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/link.svg.js');
|
|
7
7
|
require('../../contexts/MenuContext/index.js');
|
|
@@ -56,8 +56,8 @@ const LayoutRenderer = ({
|
|
|
56
56
|
const {
|
|
57
57
|
activeNavigationSection
|
|
58
58
|
} = context.useMenu();
|
|
59
|
-
const wrapRef =
|
|
60
|
-
const images =
|
|
59
|
+
const wrapRef = React.useRef(null);
|
|
60
|
+
const images = React.useMemo(() => {
|
|
61
61
|
if (currentProduct?.images?.length) {
|
|
62
62
|
if (!currentProduct?.showGallery && currentProduct.images[0]) {
|
|
63
63
|
return [currentProduct.images[0]];
|
|
@@ -72,10 +72,10 @@ const LayoutRenderer = ({
|
|
|
72
72
|
const [galleryRef, {
|
|
73
73
|
width: galleryWidth
|
|
74
74
|
}] = reactUse.useMeasure();
|
|
75
|
-
const galleryHeight =
|
|
75
|
+
const galleryHeight = React.useMemo(() => {
|
|
76
76
|
return windowHeight - Header_styles.HEADER_HEIGHT - 80;
|
|
77
77
|
}, [windowHeight]);
|
|
78
|
-
const showTitle =
|
|
78
|
+
const showTitle = React.useMemo(() =>
|
|
79
79
|
// If not pro-store
|
|
80
80
|
!isProStore && (
|
|
81
81
|
// If we have no collection
|
|
@@ -84,7 +84,7 @@ const LayoutRenderer = ({
|
|
|
84
84
|
activeNavigationSection.items.every(item => !item.active) ||
|
|
85
85
|
// If we have collection and there are active, invisible items
|
|
86
86
|
activeNavigationSection.items.some(item => item.active && item.invisible)), [activeNavigationSection.items, collection, isProStore]);
|
|
87
|
-
const photos =
|
|
87
|
+
const photos = React.useMemo(() => {
|
|
88
88
|
return currentProduct?.deploymentImages?.map(asset => {
|
|
89
89
|
return {
|
|
90
90
|
...asset,
|
|
@@ -93,8 +93,8 @@ const LayoutRenderer = ({
|
|
|
93
93
|
};
|
|
94
94
|
}) ?? [];
|
|
95
95
|
}, [collection?.slug, currentProduct?.deploymentImages]);
|
|
96
|
-
const [activeTab, setActiveTab] =
|
|
97
|
-
const closerLookSectionProps =
|
|
96
|
+
const [activeTab, setActiveTab] = React.useState();
|
|
97
|
+
const closerLookSectionProps = React.useMemo(() => {
|
|
98
98
|
return {
|
|
99
99
|
translations: translations.closerLookSection,
|
|
100
100
|
renderImage,
|
|
@@ -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 MeetUniFiVideoPlayer_helpers = require('../MeetUniFiVideoPlayer.helpers.js');
|
|
7
7
|
var EpisodeCard_styles = require('./EpisodeCard.styles.js');
|
|
@@ -16,20 +16,20 @@ const EpisodeCard = ({
|
|
|
16
16
|
const {
|
|
17
17
|
languageDirection
|
|
18
18
|
} = context.useMenu();
|
|
19
|
-
const videoRef =
|
|
20
|
-
const [videoShouldPlay, setVideoShouldPlay] =
|
|
21
|
-
const [videoLoaded, setVideoLoaded] =
|
|
22
|
-
const handleMouseOver =
|
|
19
|
+
const videoRef = React.useRef(null);
|
|
20
|
+
const [videoShouldPlay, setVideoShouldPlay] = React.useState(false);
|
|
21
|
+
const [videoLoaded, setVideoLoaded] = React.useState(false);
|
|
22
|
+
const handleMouseOver = React.useCallback(() => {
|
|
23
23
|
setVideoShouldPlay(true);
|
|
24
24
|
videoRef.current?.play();
|
|
25
25
|
onMouseOver?.();
|
|
26
26
|
}, [onMouseOver]);
|
|
27
|
-
const handleMouseOut =
|
|
27
|
+
const handleMouseOut = React.useCallback(() => {
|
|
28
28
|
setVideoShouldPlay(false);
|
|
29
29
|
videoRef.current?.pause();
|
|
30
30
|
onMouseOut?.();
|
|
31
31
|
}, [onMouseOut]);
|
|
32
|
-
const handleOnClick =
|
|
32
|
+
const handleOnClick = React.useCallback(() => {
|
|
33
33
|
onClick?.(episode.id);
|
|
34
34
|
}, [episode.id, onClick]);
|
|
35
35
|
return /* @__PURE__ */jsxRuntime.jsxs(EpisodeCard_styles.Container, {
|
|
@@ -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",
|