@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
|
"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) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
var MicrositeProductGrid_styles = require('./MicrositeProductGrid.styles.js');
|
|
6
6
|
"use strict";
|
|
7
7
|
const RESET_STEP_MS = 20;
|
|
8
8
|
const GridItem = ({
|
|
9
9
|
item
|
|
10
10
|
}) => {
|
|
11
|
-
const [playing, setPlaying] =
|
|
12
|
-
const animationFrame =
|
|
13
|
-
const resetCurrentTime =
|
|
11
|
+
const [playing, setPlaying] = React.useState(!item.media.playOnHover);
|
|
12
|
+
const animationFrame = React.useRef(0);
|
|
13
|
+
const resetCurrentTime = React.useCallback(el => {
|
|
14
14
|
if (playing || !el.currentTime) return;
|
|
15
15
|
if (el.currentTime >= el.duration) {
|
|
16
16
|
el.currentTime = 0;
|
|
@@ -25,16 +25,16 @@ const GridItem = ({
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
}, [playing]);
|
|
28
|
-
const videoRef =
|
|
29
|
-
const onMouseEnter =
|
|
28
|
+
const videoRef = React.useRef(null);
|
|
29
|
+
const onMouseEnter = React.useCallback(() => {
|
|
30
30
|
if (!item.media.playOnHover) return;
|
|
31
31
|
setPlaying(true);
|
|
32
32
|
}, [item.media.playOnHover]);
|
|
33
|
-
const onMouseLeave =
|
|
33
|
+
const onMouseLeave = React.useCallback(() => {
|
|
34
34
|
if (!item.media.playOnHover) return;
|
|
35
35
|
setPlaying(false);
|
|
36
36
|
}, [item.media.playOnHover]);
|
|
37
|
-
|
|
37
|
+
React.useEffect(() => {
|
|
38
38
|
const el = videoRef.current;
|
|
39
39
|
if (!el) return;
|
|
40
40
|
if (playing) {
|
|
@@ -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 MicrositeProductLearnMoreBlock = require('./MicrositeProductLearnMoreBlock.js');
|
|
6
6
|
var MicrositeProductLearnMoreBlock_styles = require('./MicrositeProductLearnMoreBlock.styles.js');
|
|
7
7
|
"use strict";
|
|
@@ -12,7 +12,7 @@ const MicrositeProductLearnMoreBlockWrap = ({
|
|
|
12
12
|
return null;
|
|
13
13
|
}
|
|
14
14
|
return /* @__PURE__ */jsxRuntime.jsx(MicrositeProductLearnMoreBlock_styles.BoxWrap, {
|
|
15
|
-
children: features.map((feature, index) => /* @__PURE__ */
|
|
15
|
+
children: features.map((feature, index) => /* @__PURE__ */React.createElement(MicrositeProductLearnMoreBlock.MicrositeProductLearnMoreBlock, {
|
|
16
16
|
...feature,
|
|
17
17
|
key: `microsite-learn-more-block-${index}`
|
|
18
18
|
}))
|
|
@@ -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('../Header/Navigation/index.js');
|
|
7
7
|
var MicrositeSubSubNavigation_styles = require('./MicrositeSubSubNavigation.styles.js');
|
|
@@ -16,8 +16,8 @@ const MicrositeSubSubNavigation = ({
|
|
|
16
16
|
const {
|
|
17
17
|
activeNavigationSection
|
|
18
18
|
} = context.useMenu();
|
|
19
|
-
const currentSecondLevelNavItem =
|
|
20
|
-
const thirdLevelNavItems =
|
|
19
|
+
const currentSecondLevelNavItem = React.useMemo(() => activeNavigationSection.items.find(item => item.active), [activeNavigationSection.items]);
|
|
20
|
+
const thirdLevelNavItems = React.useMemo(() => currentSecondLevelNavItem?.items.find(item => item.active)?.items, [currentSecondLevelNavItem?.items]);
|
|
21
21
|
if (!thirdLevelNavItems?.length) {
|
|
22
22
|
return null;
|
|
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 theme = require('../../constants/theme.js');
|
|
6
6
|
var asset = require('../../utils/asset.js');
|
|
7
7
|
require('../MicrositeSectionWrap/index.js');
|
|
@@ -34,16 +34,16 @@ const MicrositeVideoSlideshow = ({
|
|
|
34
34
|
monoColorIcons,
|
|
35
35
|
buyButton
|
|
36
36
|
}) => {
|
|
37
|
-
const [currentFeatureSlide, setCurrentFeatureSlide] =
|
|
38
|
-
const [slideshowStarted, setSlideshowStarted] =
|
|
39
|
-
const videoRef =
|
|
40
|
-
const [videoProgress, setVideoProgress] =
|
|
41
|
-
|
|
37
|
+
const [currentFeatureSlide, setCurrentFeatureSlide] = React.useState(slides?.[0]);
|
|
38
|
+
const [slideshowStarted, setSlideshowStarted] = React.useState(false);
|
|
39
|
+
const videoRef = React.useRef(null);
|
|
40
|
+
const [videoProgress, setVideoProgress] = React.useState(0);
|
|
41
|
+
React.useEffect(() => {
|
|
42
42
|
if (isInView && !slideshowStarted) {
|
|
43
43
|
setSlideshowStarted(true);
|
|
44
44
|
}
|
|
45
45
|
}, [isInView, slideshowStarted]);
|
|
46
|
-
|
|
46
|
+
React.useEffect(() => {
|
|
47
47
|
if (!slideshowStarted) {
|
|
48
48
|
return;
|
|
49
49
|
}
|
|
@@ -53,7 +53,7 @@ const MicrositeVideoSlideshow = ({
|
|
|
53
53
|
}
|
|
54
54
|
video?.play().catch(() => {});
|
|
55
55
|
}, [slideshowStarted]);
|
|
56
|
-
|
|
56
|
+
React.useEffect(() => {
|
|
57
57
|
const video = videoRef.current;
|
|
58
58
|
if (!video) {
|
|
59
59
|
return;
|
|
@@ -69,7 +69,7 @@ const MicrositeVideoSlideshow = ({
|
|
|
69
69
|
// HACK: needed currentFeatureSlide?.id to retrigger the effect
|
|
70
70
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
71
71
|
currentFeatureSlide?.id]);
|
|
72
|
-
const handleVideoPlaybackClick =
|
|
72
|
+
const handleVideoPlaybackClick = React.useCallback(async () => {
|
|
73
73
|
const video = videoRef.current;
|
|
74
74
|
if (!video) {
|
|
75
75
|
return;
|
|
@@ -84,8 +84,8 @@ const MicrositeVideoSlideshow = ({
|
|
|
84
84
|
} catch {}
|
|
85
85
|
}
|
|
86
86
|
}, []);
|
|
87
|
-
const sortedSlidesDesc =
|
|
88
|
-
|
|
87
|
+
const sortedSlidesDesc = React.useMemo(() => [...(slides ?? [])].sort((a, b) => b.timestamp - a.timestamp), [slides]);
|
|
88
|
+
React.useEffect(() => {
|
|
89
89
|
const video = videoRef.current;
|
|
90
90
|
if (!video) {
|
|
91
91
|
return;
|
|
@@ -100,7 +100,7 @@ const MicrositeVideoSlideshow = ({
|
|
|
100
100
|
clearInterval(interval);
|
|
101
101
|
};
|
|
102
102
|
}, [currentFeatureSlide?.id, sortedSlidesDesc]);
|
|
103
|
-
const handleSlideClick =
|
|
103
|
+
const handleSlideClick = React.useCallback(slide => async () => {
|
|
104
104
|
const video = videoRef.current;
|
|
105
105
|
if (!video) {
|
|
106
106
|
return;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var React = require('react');
|
|
4
4
|
"use strict";
|
|
5
|
-
const MicrositePageContext =
|
|
5
|
+
const MicrositePageContext = React.createContext(null);
|
|
6
6
|
exports.MicrositePageContext = MicrositePageContext;
|
|
7
7
|
//# sourceMappingURL=MicrositePageContext.js.map
|
|
@@ -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('../Explore/index.js');
|
|
6
6
|
var ExploreData = require('../Explore/ExploreData.js');
|
|
7
7
|
require('../MicrositeColumnFeatureProgressBar/index.js');
|
|
@@ -36,9 +36,9 @@ const MicrositeProductPage = ({
|
|
|
36
36
|
storeId,
|
|
37
37
|
className
|
|
38
38
|
}) => {
|
|
39
|
-
const [activeFullscreenType, setActiveFullscreenType] =
|
|
39
|
+
const [activeFullscreenType, setActiveFullscreenType] = React.useState(null);
|
|
40
40
|
const context = MicrositeProductPageContext.useMicrositeProductPage();
|
|
41
|
-
const showBuyButton =
|
|
41
|
+
const showBuyButton = React.useMemo(() => {
|
|
42
42
|
return context?.showBuyButton ?? false;
|
|
43
43
|
}, [context?.showBuyButton]);
|
|
44
44
|
if (!Array.isArray(blocks) || blocks.length === 0) {
|
|
@@ -1,9 +1,9 @@
|
|
|
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
|
-
const MicrositeProductPageContext =
|
|
6
|
+
const MicrositeProductPageContext = React.createContext(null);
|
|
7
7
|
const MicrositeProductPageContextProvider = ({
|
|
8
8
|
showBuyButton,
|
|
9
9
|
children
|
|
@@ -16,7 +16,7 @@ const MicrositeProductPageContextProvider = ({
|
|
|
16
16
|
});
|
|
17
17
|
};
|
|
18
18
|
function useMicrositeProductPage() {
|
|
19
|
-
return
|
|
19
|
+
return React.useContext(MicrositeProductPageContext);
|
|
20
20
|
}
|
|
21
21
|
exports.MicrositeProductPageContext = MicrositeProductPageContext;
|
|
22
22
|
exports.MicrositeProductPageContextProvider = MicrositeProductPageContextProvider;
|
|
@@ -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/arrowDown.svg.js');
|
|
6
6
|
require('../Button/index.js');
|
|
7
7
|
require('../StyleableSvgImage/index.js');
|
|
@@ -23,17 +23,17 @@ const MobileModal = function MobileModal2({
|
|
|
23
23
|
children,
|
|
24
24
|
closeButtonProps
|
|
25
25
|
}) {
|
|
26
|
-
const handleOnAfterOpen =
|
|
26
|
+
const handleOnAfterOpen = React.useCallback(() => {
|
|
27
27
|
if (lockScroll) {
|
|
28
28
|
document.body.style.overflow = "hidden";
|
|
29
29
|
}
|
|
30
30
|
}, [lockScroll]);
|
|
31
|
-
const handleOnAfterClose =
|
|
31
|
+
const handleOnAfterClose = React.useCallback(() => {
|
|
32
32
|
if (lockScroll) {
|
|
33
33
|
document.body.style.overflow = "unset";
|
|
34
34
|
}
|
|
35
35
|
}, [lockScroll]);
|
|
36
|
-
|
|
36
|
+
React.useEffect(() => {
|
|
37
37
|
if (isOpen) {
|
|
38
38
|
handleOnAfterOpen();
|
|
39
39
|
} else if (!isOpen) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var Modal$1 = require('@ubnt/ui-components/Modal');
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
var Modal_styles = require('./Modal.styles.js');
|
|
7
7
|
"use strict";
|
|
8
8
|
const Modal = function Modal2({
|
|
@@ -14,13 +14,13 @@ const Modal = function Modal2({
|
|
|
14
14
|
if (!overlayClassName) {
|
|
15
15
|
overlayClassName = "react-modal-portal-overlay";
|
|
16
16
|
}
|
|
17
|
-
const handleAfterOpen =
|
|
17
|
+
const handleAfterOpen = React.useCallback(() => {
|
|
18
18
|
if (lockScroll) {
|
|
19
19
|
document.body.style.overflow = "hidden";
|
|
20
20
|
}
|
|
21
21
|
rest.onAfterOpen?.();
|
|
22
22
|
}, [lockScroll, rest]);
|
|
23
|
-
const handleAfterClose =
|
|
23
|
+
const handleAfterClose = React.useCallback(() => {
|
|
24
24
|
if (lockScroll) {
|
|
25
25
|
document.body.style.overflow = "unset";
|
|
26
26
|
}
|
|
@@ -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 styled = require('styled-components');
|
|
6
6
|
require('../../constants/modelCompareData/assets/arrow-right.svg.js');
|
|
7
7
|
require('../StyleableSvgImage/index.js');
|
|
@@ -30,7 +30,7 @@ function ModelCompareOverflowScrollButton({
|
|
|
30
30
|
scrollTo
|
|
31
31
|
} = context.useStickyGrid();
|
|
32
32
|
const icon = typeof arrowRightIcon__default["default"] === "string" ? arrowRightIcon__default["default"] : arrowRightIcon__default["default"].src;
|
|
33
|
-
const handleClick =
|
|
33
|
+
const handleClick = React.useCallback(() => {
|
|
34
34
|
const anyScrollItem = scrollGroupItemsRef.current?.[0]?.refObject.current;
|
|
35
35
|
if (!anyScrollItem) {
|
|
36
36
|
return;
|
|
@@ -46,7 +46,7 @@ function ModelCompareOverflowScrollButton({
|
|
|
46
46
|
behavior: "smooth"
|
|
47
47
|
});
|
|
48
48
|
}, [onClickColumnDiff, scrollGroupItemsRef, scrollTo, totalColumns, totalDeadSpace]);
|
|
49
|
-
const arrowOffset =
|
|
49
|
+
const arrowOffset = React.useMemo(() => {
|
|
50
50
|
if (isSmallScreen) {
|
|
51
51
|
return rotationDegrees < 180 ? -5 : 0;
|
|
52
52
|
}
|
|
@@ -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 styled = require('styled-components');
|
|
6
6
|
require('../../constants/modelCompareData/assets/check.svg.js');
|
|
7
7
|
require('../../constants/modelCompareData/assets/minus.svg.js');
|
|
@@ -61,7 +61,7 @@ function PropertyValueComponent({
|
|
|
61
61
|
const {
|
|
62
62
|
languageDirection
|
|
63
63
|
} = context.useMenu();
|
|
64
|
-
const asterisks =
|
|
64
|
+
const asterisks = React.useMemo(() => {
|
|
65
65
|
if (!productProperty?.value.asterisk) {
|
|
66
66
|
return null;
|
|
67
67
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var Tooltip = require('@ubnt/ui-components/Tooltip');
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
var reactUse = require('react-use');
|
|
7
7
|
var styled = require('styled-components');
|
|
8
8
|
var useModelCompareTranslation = require('../../constants/modelCompareData/translations/useModelCompareTranslation.js');
|
|
@@ -52,7 +52,7 @@ const ModelCompareV3 = ({
|
|
|
52
52
|
storeId
|
|
53
53
|
} = context.useMenu();
|
|
54
54
|
const section = index.sections[id];
|
|
55
|
-
const products =
|
|
55
|
+
const products = React.useMemo(() => section.products.map(product => ({
|
|
56
56
|
...product,
|
|
57
57
|
propertyValues: product.propertyValues.map(propertyValue => ({
|
|
58
58
|
propertyId: propertyValue.propertyId,
|
|
@@ -68,7 +68,7 @@ const ModelCompareV3 = ({
|
|
|
68
68
|
// Parse footnotes
|
|
69
69
|
footnotes: product.footnotes?.map(footnote => typeof footnote === "string" ? footnote : footnote(storeId)).filter(f => !!f)
|
|
70
70
|
})), [additionalProductData, formatMessage, section.products, storeId]);
|
|
71
|
-
const properties =
|
|
71
|
+
const properties = React.useMemo(() => section.properties.map(property => ({
|
|
72
72
|
...property,
|
|
73
73
|
title: formatMessage(property.title),
|
|
74
74
|
tooltip: property.tooltip && formatMessage(property.tooltip)
|
|
@@ -116,7 +116,7 @@ const ModelCompare = ({
|
|
|
116
116
|
} = reactUse.useWindowSize();
|
|
117
117
|
const isSmallScreen = screenWidth < ModelCompareV3_styles.MOBILE_BREAKPOINT;
|
|
118
118
|
const leftColumnWidth = isSmallScreen ? 0 : Math.min(screenWidth / 4, propertyColumnWidth);
|
|
119
|
-
const maxImageHeight =
|
|
119
|
+
const maxImageHeight = React.useMemo(() => {
|
|
120
120
|
return Math.max(...products.map(p => p.image.height));
|
|
121
121
|
}, [products]);
|
|
122
122
|
const stickOffset = !headerStickOffset ? 0 : headerStickOffset({
|
|
@@ -124,13 +124,13 @@ const ModelCompare = ({
|
|
|
124
124
|
});
|
|
125
125
|
const templateColumnWidth = isSmallScreen ? "100%" : `${columnWidth}px`;
|
|
126
126
|
const templateColumns = `1fr ${leftColumnWidth}px repeat(${products.length}, ${templateColumnWidth}) 1fr`;
|
|
127
|
-
const getStorePathParts =
|
|
127
|
+
const getStorePathParts = React.useCallback(storePathParts => {
|
|
128
128
|
if (typeof storePathParts === "function") {
|
|
129
129
|
return storePathParts(storeId);
|
|
130
130
|
}
|
|
131
131
|
return storePathParts;
|
|
132
132
|
}, [storeId]);
|
|
133
|
-
const getStoreHref =
|
|
133
|
+
const getStoreHref = React.useCallback(product => {
|
|
134
134
|
const storePathParts = getStorePathParts(product.storePathParts);
|
|
135
135
|
if (!storePathParts) {
|
|
136
136
|
return void 0;
|
|
@@ -150,13 +150,13 @@ const ModelCompare = ({
|
|
|
150
150
|
variant: storePathParts.variant
|
|
151
151
|
} : void 0]);
|
|
152
152
|
}, [createSiteUrl, getStorePathParts]);
|
|
153
|
-
const hasNotes =
|
|
153
|
+
const hasNotes = React.useMemo(() => {
|
|
154
154
|
return products.some(el => !!el.notes?.length);
|
|
155
155
|
}, [products]);
|
|
156
|
-
const hasFootnotes =
|
|
156
|
+
const hasFootnotes = React.useMemo(() => {
|
|
157
157
|
return products.some(el => el.footnotes?.length);
|
|
158
158
|
}, [products]);
|
|
159
|
-
const getComingSoonButtonText =
|
|
159
|
+
const getComingSoonButtonText = React.useCallback(product => {
|
|
160
160
|
const buttonText = product.comingSoonButtonText;
|
|
161
161
|
if (typeof buttonText === "string") {
|
|
162
162
|
return formatMessage(buttonText);
|
|
@@ -169,7 +169,7 @@ const ModelCompare = ({
|
|
|
169
169
|
}
|
|
170
170
|
return formatMessage("Coming Soon");
|
|
171
171
|
}, [formatMessage, storeId]);
|
|
172
|
-
const renderButton =
|
|
172
|
+
const renderButton = React.useCallback(p => {
|
|
173
173
|
if (p.addToCartButton) {
|
|
174
174
|
return p.addToCartButton;
|
|
175
175
|
}
|
|
@@ -211,7 +211,7 @@ const ModelCompare = ({
|
|
|
211
211
|
children: formatMessage("Buy Now")
|
|
212
212
|
});
|
|
213
213
|
}, [createSiteUrl, formatMessage, getComingSoonButtonText, getStoreHref, onLinkClick, showBuyButton, storeId]);
|
|
214
|
-
const renderBadges =
|
|
214
|
+
const renderBadges = React.useCallback(product => {
|
|
215
215
|
if (!showBadges) {
|
|
216
216
|
return null;
|
|
217
217
|
}
|
|
@@ -235,7 +235,7 @@ const ModelCompare = ({
|
|
|
235
235
|
}
|
|
236
236
|
return null;
|
|
237
237
|
}, [formatMessage, showBadges]);
|
|
238
|
-
const renderProductHeader =
|
|
238
|
+
const renderProductHeader = React.useCallback(product => {
|
|
239
239
|
const storeHref = getStoreHref(product);
|
|
240
240
|
const techspecsHref = product.techspecsPath && createSiteUrl(product.techspecsPath);
|
|
241
241
|
const productTitleHref = linkToStoreTitleClick ? storeHref : techspecsHref;
|
|
@@ -301,7 +301,7 @@ const ModelCompare = ({
|
|
|
301
301
|
stickX: true
|
|
302
302
|
}), products.map(product => renderProductHeader(product)), /* @__PURE__ */jsxRuntime.jsx(ModelCompareV3_styles.CenterPlaceholderGridItem, {})]
|
|
303
303
|
}), /* @__PURE__ */jsxRuntime.jsxs(StickyGridBody.StickyGridBody, {
|
|
304
|
-
children: [properties.map(property => /* @__PURE__ */jsxRuntime.jsxs(
|
|
304
|
+
children: [properties.map(property => /* @__PURE__ */jsxRuntime.jsxs(React.Fragment, {
|
|
305
305
|
children: [/* @__PURE__ */jsxRuntime.jsx(ModelCompareV3_styles.CenterPlaceholderGridItem, {}), /* @__PURE__ */jsxRuntime.jsx(ModelCompareV3_styles.PropertyTitleGridItem, {
|
|
306
306
|
stickX: true,
|
|
307
307
|
children: leftColumnWidth > 0 && /* @__PURE__ */jsxRuntime.jsxs(ModelCompareV3_styles.PropertyTitleGridItemContent, {
|
|
@@ -312,7 +312,7 @@ const ModelCompare = ({
|
|
|
312
312
|
src: property.icon
|
|
313
313
|
})
|
|
314
314
|
}), /* @__PURE__ */jsxRuntime.jsx(ModelCompareV3_styles.PropertyTitle, {
|
|
315
|
-
children: property.title.split("\n").map((part, i, arr) => i < arr.length - 1 ? /* @__PURE__ */jsxRuntime.jsxs(
|
|
315
|
+
children: property.title.split("\n").map((part, i, arr) => i < arr.length - 1 ? /* @__PURE__ */jsxRuntime.jsxs(React.Fragment, {
|
|
316
316
|
children: [part, /* @__PURE__ */jsxRuntime.jsx("br", {})]
|
|
317
317
|
}, i) : part)
|
|
318
318
|
}), property.tooltip && /* @__PURE__ */jsxRuntime.jsxs(ModelCompareV3_styles.PropertyTooltip, {
|