@ubnt/store.core 9.29.0-alpha.0 → 9.29.0-alpha.10
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 +47 -0
- package/lib/_virtual/_virtual_multi-entry.js +14 -12
- package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
- package/lib/_virtual/_virtual_multi-entry.mjs +14 -12
- package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
- package/lib/apis/smartcat.d.ts +18 -3
- package/lib/apis/smartcat.js +6 -6
- package/lib/apis/smartcat.js.map +1 -1
- package/lib/apis/smartcat.mjs +6 -6
- package/lib/apis/smartcat.mjs.map +1 -1
- package/lib/assets/attention.svg +5 -5
- package/lib/assets/attention2.svg +5 -5
- package/lib/assets/close2.svg +3 -2
- package/lib/assets/close3.svg +2 -3
- package/lib/assets/minus4.svg +8 -8
- package/lib/assets/minus5.svg +8 -8
- package/lib/assets/plus5.svg +9 -9
- package/lib/assets/plus6.svg +9 -9
- package/lib/assets/ucgMax.jpg +0 -0
- package/lib/assets/ucgMax2.jpg +0 -0
- package/lib/assets/ucgUltra.jpg +0 -0
- package/lib/assets/ucgUltra2.jpg +0 -0
- package/lib/assets/udmPro.jpg +0 -0
- package/lib/assets/udmPro2.jpg +0 -0
- package/lib/assets/udmProSpecial.jpg +0 -0
- package/lib/assets/udmProSpecial2.jpg +0 -0
- package/lib/assets/unasDrive.svg +3 -0
- package/lib/components/Accordion/Accordion.js +4 -4
- package/lib/components/Avatar/Avatar.js +2 -2
- package/lib/components/Button/Button.js +5 -5
- package/lib/components/Button/CartButton.js +2 -2
- package/lib/components/CardSection/Card/Card.js +6 -6
- package/lib/components/CardSection/CardSection.js +2 -2
- package/lib/components/CartIcon/CartIcon.js +2 -2
- package/lib/components/Checkbox/Checkbox.js +4 -4
- package/lib/components/CloserLookSection/CloserLookSection.js +11 -11
- package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.js +5 -5
- package/lib/components/Container/Container.js +2 -2
- package/lib/components/CustomImage/CustomImage.js +12 -12
- package/lib/components/Explore/Explore.js +5 -5
- package/lib/components/FeaturesSection_deprecated/Features/Features.js +2 -2
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +23 -23
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
- package/lib/components/Footer/Footer.js +2 -2
- package/lib/components/Footer/hooks/useFooterContent.js +5 -5
- package/lib/components/Gallery/Gallery.context.js +17 -17
- package/lib/components/Gallery/Gallery.js +9 -9
- package/lib/components/Gallery/GalleryControls/GalleryControls.js +4 -4
- package/lib/components/Gallery/GalleryItem/GalleryItem.js +8 -8
- package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.js +8 -8
- package/lib/components/GridGallery/GridGallery.js +8 -8
- package/lib/components/GridGallery/GridModal/GridModal.js +6 -6
- package/lib/components/Header/AccountFrame/AccountFrame.js +11 -11
- package/lib/components/Header/AccountFrame/Mobile/Mobile.js +4 -4
- package/lib/components/Header/AccountMenu/AccountMenu.js +19 -19
- package/lib/components/Header/CartModal/Empty/Empty.js +3 -3
- package/lib/components/Header/CartModalV2/CartModal.js +5 -5
- package/lib/components/Header/CartModalV2/Item/Item.js +4 -4
- package/lib/components/Header/Header.js +34 -34
- package/lib/components/Header/IsolatedHeader.js +7 -7
- package/lib/components/Header/LanguageFrame/LanguageFrame.js +6 -6
- package/lib/components/Header/Navigation/Carousel/Carousel.js +5 -5
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.js +12 -12
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +6 -6
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +6 -6
- package/lib/components/Header/Overlay/Overlay.js +3 -3
- package/lib/components/Header/ProHeader/ProHeader.js +53 -45
- package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.mjs +24 -16
- package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.js +6 -0
- package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs +6 -0
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
- package/lib/components/Hero/Hero.js +5 -5
- package/lib/components/HeroVideo/HeroVideo.js +5 -5
- package/lib/components/ImageCarousel/ImageCarousel.js +29 -29
- package/lib/components/ImageSequence/ImageSequence.js +8 -8
- package/lib/components/LandingPage/Cards/Card/Card.js +4 -4
- package/lib/components/LandingPage/Cards/Cards.js +10 -10
- package/lib/components/LandingPage/LandingPage.js +2 -2
- package/lib/components/LandingPagePro/LandingPagePro.js +13 -13
- package/lib/components/LandingPageSearch/LandingPageSearch.js +2 -2
- package/lib/components/LandingPageSearch/Modal/Modal.js +9 -9
- package/lib/components/LandingPageSidebar/LandingPageSidebar.js +12 -12
- package/lib/components/LayoutRenderer/LayoutRenderer.js +8 -8
- package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.js +7 -7
- package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.js +18 -18
- package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.js +2 -2
- package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.js +3 -3
- package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.js +3 -3
- package/lib/components/MicrositeHeader/MicrositeHeader.js +4 -4
- package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.js +4 -4
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.js +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/ModelCompareV3.types.d.ts +3 -2
- package/lib/components/ModelCompareV3/ProductGroupsGrid.js +3 -3
- package/lib/components/ModelCompareV3/ScrollGroup/ScrollGroup.js +5 -5
- package/lib/components/ModelCompareV3/ScrollGroup/context.js +3 -3
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupItem.js +8 -8
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupSetScroll.js +2 -2
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupTo.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js +7 -7
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridBody.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js +5 -5
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/context.js +3 -3
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/XgsPon/{uispFiberOltXgs.jpg.js → fiberOltXgs.jpg.js} +2 -2
- package/lib/components/ModelCompareV3/assets/XgsPon/fiberOltXgs.jpg.js.map +1 -0
- package/lib/components/ModelCompareV3/assets/XgsPon/fiberOltXgs.jpg.mjs +3 -0
- package/lib/components/ModelCompareV3/assets/XgsPon/fiberOltXgs.jpg.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/BaseStation.js +3 -2
- package/lib/components/ModelCompareV3/data/BaseStation.js.map +1 -1
- package/lib/components/ModelCompareV3/data/BaseStation.mjs +3 -2
- package/lib/components/ModelCompareV3/data/BaseStation.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/CloudGateways.js +12 -12
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +8 -8
- package/lib/components/ModelCompareV3/data/WaveMLO.js +3 -4
- package/lib/components/ModelCompareV3/data/WaveMLO.js.map +1 -1
- package/lib/components/ModelCompareV3/data/WaveMLO.mjs +3 -4
- package/lib/components/ModelCompareV3/data/WaveMLO.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/XgsPon.js +2 -2
- package/lib/components/ModelCompareV3/data/XgsPon.js.map +1 -1
- package/lib/components/ModelCompareV3/data/XgsPon.mjs +2 -2
- package/lib/components/ModelCompareV3/data/XgsPon.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/{uispFiberOltXgs.d.ts → fiberOltXgs.d.ts} +1 -1
- package/lib/components/ModelCompareV3/data/products/{uispFiberOltXgs.js → fiberOltXgs.js} +8 -8
- package/lib/components/ModelCompareV3/data/products/fiberOltXgs.js.map +1 -0
- package/lib/components/ModelCompareV3/data/products/{uispFiberOltXgs.mjs → fiberOltXgs.mjs} +8 -8
- package/lib/components/ModelCompareV3/data/products/fiberOltXgs.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/waveAp.js +3 -3
- package/lib/components/ModelCompareV3/data/products/waveAp.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveAp.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/waveAp.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveApGen2.js +2 -2
- package/lib/components/ModelCompareV3/data/products/waveApGen2.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveApGen2.mjs +2 -2
- package/lib/components/ModelCompareV3/data/products/waveApGen2.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveApMicro.js +5 -5
- package/lib/components/ModelCompareV3/data/products/waveApMicro.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveApMicro.mjs +5 -5
- package/lib/components/ModelCompareV3/data/products/waveApMicro.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveFiberOlt.js +2 -13
- package/lib/components/ModelCompareV3/data/products/waveFiberOlt.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveFiberOlt.mjs +2 -13
- package/lib/components/ModelCompareV3/data/products/waveFiberOlt.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveFiberOnu.js +3 -4
- package/lib/components/ModelCompareV3/data/products/waveFiberOnu.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveFiberOnu.mjs +3 -4
- package/lib/components/ModelCompareV3/data/products/waveFiberOnu.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveMLO5.js +4 -12
- package/lib/components/ModelCompareV3/data/products/waveMLO5.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveMLO5.mjs +4 -12
- package/lib/components/ModelCompareV3/data/products/waveMLO5.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveMLO6.js +5 -11
- package/lib/components/ModelCompareV3/data/products/waveMLO6.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveMLO6.mjs +5 -11
- package/lib/components/ModelCompareV3/data/products/waveMLO6.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/properties/index.d.ts +2 -1
- package/lib/components/ModelCompareV3/data/properties/index.js +4 -2
- package/lib/components/ModelCompareV3/data/properties/index.js.map +1 -1
- package/lib/components/ModelCompareV3/data/properties/index.mjs +2 -1
- package/lib/components/ModelCompareV3/data/properties/index.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/properties/{bandwidthPuncturing.d.ts → linkPuncturing.d.ts} +1 -1
- package/lib/components/ModelCompareV3/data/properties/{bandwidthPuncturing.js → linkPuncturing.js} +5 -5
- package/lib/components/ModelCompareV3/data/properties/linkPuncturing.js.map +1 -0
- package/lib/components/ModelCompareV3/data/properties/linkPuncturing.mjs +10 -0
- package/lib/components/ModelCompareV3/data/properties/linkPuncturing.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/properties/maxTotalThroughput.d.ts +2 -0
- package/lib/components/ModelCompareV3/data/properties/maxTotalThroughput.js +18 -0
- package/lib/components/ModelCompareV3/data/properties/maxTotalThroughput.js.map +1 -0
- package/lib/components/ModelCompareV3/data/properties/maxTotalThroughput.mjs +10 -0
- package/lib/components/ModelCompareV3/data/properties/maxTotalThroughput.mjs.map +1 -0
- package/lib/components/ModelCompareV3/translations/en.json.js +11 -11
- package/lib/components/ModelCompareV3/translations/en.json.mjs +11 -11
- package/lib/components/ModelCompareV3/translations/useModelCompareTranslation.d.ts +2 -2
- package/lib/components/Pagination/Pagination.js +3 -3
- package/lib/components/PriceRangeSlider/PriceRangeSlider.js +16 -16
- package/lib/components/ProductCard/ProductCard.js +8 -8
- package/lib/components/ProductCardPopup/ProductCardPopup.js +8 -8
- package/lib/components/ProductCompare/ProductCompare.js +7 -7
- package/lib/components/ProductDetails/ProductDetails.js +5 -5
- package/lib/components/ProductGrid/ProductGrid.js +10 -10
- package/lib/components/ProductKeyFeatures/ProductKeyFeatures.js +3 -3
- package/lib/components/ProductSectionTabs/ProductSectionTabs.js +2 -2
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.d.ts +2 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js +84 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs +76 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.d.ts +12 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +82 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +68 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.types.d.ts +17 -0
- package/lib/components/ProductTechSpecsV2/index.d.ts +1 -0
- package/lib/components/ProductTechSpecsV2/index.js +6 -0
- package/lib/components/ProductTechSpecsV2/index.js.map +1 -0
- package/lib/components/ProductTechSpecsV2/index.mjs +3 -0
- package/lib/components/ProductTechSpecsV2/index.mjs.map +1 -0
- package/lib/components/ProductWizard/Options/Options.js +3 -3
- package/lib/components/ProductWizard/ProductWizard.js +2 -2
- package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js +5 -5
- package/lib/components/ProgressCircle/ProgressCircle.js +4 -4
- package/lib/components/QuantityControls/QuantityControls.js +4 -4
- package/lib/components/RelatedProducts/RelatedProducts.js +5 -5
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js +36 -36
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +12 -12
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +6 -6
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CheckboxSection.js +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +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/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
- 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 +8 -8
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +6 -6
- package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.js +9 -9
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.js +10 -10
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +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 +19 -19
- package/lib/components/StorageSliders/StorageSliders.js +4 -4
- package/lib/components/Tooltip/Tooltip.js +5 -5
- package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js +7 -7
- package/lib/components/VariantSelector/Variant/Variant.js +40 -40
- package/lib/components/VariantSelector/VariantSelector.js +16 -16
- package/lib/components/VideoPlayerNew/VideoPlayer.js +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/icons/menu/index.d.ts +1 -0
- package/lib/constants/icons/menu/index.js +9 -0
- package/lib/constants/icons/menu/index.js.map +1 -1
- package/lib/constants/icons/menu/index.mjs +2 -0
- package/lib/constants/icons/menu/index.mjs.map +1 -1
- package/lib/constants/icons/menu/unasDrive.svg.js +27 -0
- package/lib/constants/icons/menu/unasDrive.svg.js.map +1 -0
- package/lib/constants/icons/menu/unasDrive.svg.mjs +3 -0
- package/lib/constants/icons/menu/unasDrive.svg.mjs.map +1 -0
- package/lib/constants/icons/options/colors/black.svg.js +5 -5
- package/lib/constants/icons/options/colors/index.js +3 -3
- package/lib/constants/icons/options/styles/black.svg.js +5 -5
- package/lib/constants/icons/options/styles/index.js +3 -3
- package/lib/constants/optionIcons.js +6 -6
- package/lib/constants/optionIcons.mjs +4 -4
- package/lib/constants/proStoreCategories/mapping/filters.d.ts +15 -0
- package/lib/constants/proStoreCategories/mapping/filters.js +15 -0
- package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/filters.mjs +15 -0
- package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.d.ts +1 -1
- package/lib/constants/proStoreCategories/mapping/index.js +32 -34
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +32 -34
- package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/mapping.d.ts +4 -0
- package/lib/constants/proStoreCategories/mapping/redirects.js +9 -1
- package/lib/constants/proStoreCategories/mapping/redirects.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/redirects.mjs +9 -1
- package/lib/constants/proStoreCategories/mapping/redirects.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.d.ts +2 -4
- package/lib/constants/proStoreCategories/mapping/unifi.js +2 -4
- package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs +2 -4
- package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +1 -3
- package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs +2 -3
- package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/constants/proStoreFilters/mapping.d.ts +39 -3
- package/lib/constants/proStoreFilters/mapping.js +104 -6
- package/lib/constants/proStoreFilters/mapping.js.map +1 -1
- package/lib/constants/proStoreFilters/mapping.mjs +104 -6
- package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
- package/lib/contexts/MenuContext/context.js +32 -32
- package/lib/contexts/MenuContext/mapping.js +12 -0
- package/lib/contexts/MenuContext/mapping.js.map +1 -1
- package/lib/contexts/MenuContext/mapping.mjs +11 -0
- package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
- 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/address.js +1 -1
- package/lib/utils/address.js.map +1 -1
- package/lib/utils/address.mjs +1 -1
- package/lib/utils/address.mjs.map +1 -1
- package/package.json +1 -1
- package/lib/components/ModelCompareV3/assets/XgsPon/uispFiberOltXgs.jpg.js.map +0 -1
- package/lib/components/ModelCompareV3/assets/XgsPon/uispFiberOltXgs.jpg.mjs +0 -3
- package/lib/components/ModelCompareV3/assets/XgsPon/uispFiberOltXgs.jpg.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/products/uispFiberOltXgs.js.map +0 -1
- package/lib/components/ModelCompareV3/data/products/uispFiberOltXgs.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/properties/bandwidthPuncturing.js.map +0 -1
- package/lib/components/ModelCompareV3/data/properties/bandwidthPuncturing.mjs +0 -10
- package/lib/components/ModelCompareV3/data/properties/bandwidthPuncturing.mjs.map +0 -1
- /package/lib/assets/{uispFiberOltXgs.jpg → fiberOltXgs.jpg} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
var 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, setVideoPlayerOpen] =
|
|
80
|
-
const [currentEpisode, setCurrentEpisode] =
|
|
81
|
-
const previewVideoRef =
|
|
79
|
+
const [isVideoPlayerOpen, setVideoPlayerOpen] = 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
|
setVideoPlayerOpen(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(() => {
|
|
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/Navigation/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(Navigation.Navigation, {
|
|
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');
|
|
@@ -33,9 +33,9 @@ const DropdownMenu = ({
|
|
|
33
33
|
const {
|
|
34
34
|
language
|
|
35
35
|
} = context.useMicrositeMenu();
|
|
36
|
-
const [activeItemId, setActiveItemId] =
|
|
37
|
-
const activeItem =
|
|
38
|
-
|
|
36
|
+
const [activeItemId, setActiveItemId] = React.useState();
|
|
37
|
+
const activeItem = React.useMemo(() => items.find(item => item.id === activeItemId), [activeItemId, items]);
|
|
38
|
+
React.useEffect(() => {
|
|
39
39
|
setActiveItemId(items?.[0]?.id);
|
|
40
40
|
}, [items]);
|
|
41
41
|
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/header/index.js');
|
|
7
7
|
var layout = require('../../../../constants/layout.js');
|
|
@@ -62,8 +62,8 @@ const Navigation = ({
|
|
|
62
62
|
// isLastMenu,
|
|
63
63
|
}) => {
|
|
64
64
|
const isMobile = reactUse.useMedia(layout.BREAKPOINTS.MOBILE_AND_DOWN, false);
|
|
65
|
-
const wrapperRef =
|
|
66
|
-
const [hasWhiteBackground, setHasWhiteBackground] =
|
|
65
|
+
const wrapperRef = React.useRef(null);
|
|
66
|
+
const [hasWhiteBackground, setHasWhiteBackground] = React.useState(false);
|
|
67
67
|
const {
|
|
68
68
|
activeModal,
|
|
69
69
|
setActiveModal
|
|
@@ -71,8 +71,8 @@ const Navigation = ({
|
|
|
71
71
|
const {
|
|
72
72
|
createSiteUrl
|
|
73
73
|
} = context$1.useMenu();
|
|
74
|
-
const [selectedMenu, setSelectedMenu] =
|
|
75
|
-
const hasDarkText =
|
|
74
|
+
const [selectedMenu, setSelectedMenu] = React.useState(null);
|
|
75
|
+
const hasDarkText = React.useMemo(() => {
|
|
76
76
|
if (motif === "light") {
|
|
77
77
|
return true;
|
|
78
78
|
}
|
|
@@ -87,13 +87,13 @@ const Navigation = ({
|
|
|
87
87
|
}) => !!active);
|
|
88
88
|
return activeChildElement?.hasDarkText ?? false;
|
|
89
89
|
}, [menu, motif]);
|
|
90
|
-
const theme =
|
|
90
|
+
const theme = React.useMemo(() => {
|
|
91
91
|
if (hasDarkText) {
|
|
92
92
|
return "DarkText" /* DarkText */;
|
|
93
93
|
}
|
|
94
94
|
return hasWhiteBackground || !!selectedMenu ? "DarkText" /* DarkText */ : "LightText" /* LightText */;
|
|
95
95
|
}, [hasWhiteBackground, selectedMenu, hasDarkText]);
|
|
96
|
-
|
|
96
|
+
React.useEffect(() => {
|
|
97
97
|
setSelectedMenu(null);
|
|
98
98
|
if (!wrapperRef?.current) {
|
|
99
99
|
return;
|
|
@@ -106,10 +106,10 @@ const Navigation = ({
|
|
|
106
106
|
observer.disconnect();
|
|
107
107
|
};
|
|
108
108
|
}, []);
|
|
109
|
-
const handleModalClose =
|
|
109
|
+
const handleModalClose = React.useCallback(() => {
|
|
110
110
|
setActiveModal(null);
|
|
111
111
|
}, [setActiveModal]);
|
|
112
|
-
const handleModalOpen =
|
|
112
|
+
const handleModalOpen = React.useCallback((e, id) => {
|
|
113
113
|
e.stopPropagation();
|
|
114
114
|
if (activeModal !== id) {
|
|
115
115
|
onModalOpen?.();
|
|
@@ -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, setVideoPlaying] =
|
|
47
|
-
const [loopActive, setLoopActive] =
|
|
48
|
-
const animateText =
|
|
46
|
+
const [isVideoPlaying, setVideoPlaying] = 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;
|
|
@@ -141,10 +141,10 @@ const MicrositeHero = ({
|
|
|
141
141
|
});
|
|
142
142
|
} catch {}
|
|
143
143
|
}, []);
|
|
144
|
-
const aspectRatio =
|
|
144
|
+
const aspectRatio = React.useMemo(() => {
|
|
145
145
|
return round__default["default"](video.width / video.height, 1);
|
|
146
146
|
}, [video.height, video.width]);
|
|
147
|
-
const iconBreakPoint =
|
|
147
|
+
const iconBreakPoint = React.useMemo(() => {
|
|
148
148
|
if (!icons?.length) {
|
|
149
149
|
return 0;
|
|
150
150
|
}
|
|
@@ -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(() => {
|
|
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
|
}
|
|
@@ -55,7 +55,7 @@ const MicrositeVideoSlideshow = ({
|
|
|
55
55
|
video?.play();
|
|
56
56
|
} catch {}
|
|
57
57
|
}, [slideshowStarted]);
|
|
58
|
-
|
|
58
|
+
React.useEffect(() => {
|
|
59
59
|
const video = videoRef.current;
|
|
60
60
|
if (!video) {
|
|
61
61
|
return;
|
|
@@ -69,7 +69,7 @@ const MicrositeVideoSlideshow = ({
|
|
|
69
69
|
clearInterval(interval);
|
|
70
70
|
};
|
|
71
71
|
}, [currentFeatureSlide?.id]);
|
|
72
|
-
const handleVideoPlaybackClick =
|
|
72
|
+
const handleVideoPlaybackClick = React.useCallback(() => {
|
|
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 => () => {
|
|
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;
|