@ubnt/store.core 9.29.0-alpha.1 → 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 +43 -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/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/udmProMax.jpg +0 -0
- package/lib/assets/udmProMax2.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 +22 -22
- 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 -50
- package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.mjs +24 -21
- package/lib/components/Header/ProHeader/ProHeader.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/udmProMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.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/udmProMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.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 +15 -15
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +10 -10
- 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/udmProMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.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 +4 -4
- 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/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 +15 -15
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.js +2 -2
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +6 -6
- package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.js +5 -5
- package/lib/components/ScrollWrapper/ScrollWrapper.js +17 -17
- package/lib/components/Search/Input/Input.js +4 -4
- package/lib/components/Search/Modal/Modal.js +3 -3
- package/lib/components/StorageSliders/Slider/Slider.js +3 -3
- package/lib/components/StorageSliders/StorageSliders.context.js +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 +19 -19
- 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/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
|
require('../../assets/icons/arrowRight.svg.js');
|
|
7
7
|
var useHorizontalScroll = require('../../hooks/useHorizontalScroll.js');
|
|
@@ -37,22 +37,22 @@ const ScrollWrapper = function ScrollWrapper2({
|
|
|
37
37
|
enableWheelScroll,
|
|
38
38
|
arrowIcon
|
|
39
39
|
}) {
|
|
40
|
-
const containerRef =
|
|
40
|
+
const containerRef = React.useRef(null);
|
|
41
41
|
const [containerMeasureRef, containerSize] = reactUse.useMeasure();
|
|
42
42
|
useHorizontalScroll.useHorizontalScroll(containerRef, !!enableWheelScroll);
|
|
43
|
-
|
|
43
|
+
React.useEffect(() => {
|
|
44
44
|
if (containerRef.current) {
|
|
45
45
|
containerMeasureRef(containerRef.current);
|
|
46
46
|
}
|
|
47
47
|
}, [containerMeasureRef]);
|
|
48
|
-
const getContainerItemWidth =
|
|
48
|
+
const getContainerItemWidth = React.useCallback(() => {
|
|
49
49
|
const containerItem = containerRef.current?.querySelector(`.${SCROLL_CONTAINER_ITEM_CLASS_NAME}`);
|
|
50
50
|
if (!containerItem) {
|
|
51
51
|
return 0;
|
|
52
52
|
}
|
|
53
53
|
return containerItem.getBoundingClientRect().width;
|
|
54
54
|
}, []);
|
|
55
|
-
const getInvisibleItemOffset =
|
|
55
|
+
const getInvisibleItemOffset = React.useCallback(({
|
|
56
56
|
scrollDirection
|
|
57
57
|
}) => {
|
|
58
58
|
if (!containerRef.current) {
|
|
@@ -110,7 +110,7 @@ const ScrollWrapper = function ScrollWrapper2({
|
|
|
110
110
|
}
|
|
111
111
|
return 0;
|
|
112
112
|
}, [direction]);
|
|
113
|
-
const getVisibleItemsWidth =
|
|
113
|
+
const getVisibleItemsWidth = React.useCallback(() => {
|
|
114
114
|
if (!containerRef.current) {
|
|
115
115
|
return 0;
|
|
116
116
|
}
|
|
@@ -128,7 +128,7 @@ const ScrollWrapper = function ScrollWrapper2({
|
|
|
128
128
|
});
|
|
129
129
|
return visibleItemsWidth;
|
|
130
130
|
}, [direction, gap]);
|
|
131
|
-
const getActiveIndexOffset =
|
|
131
|
+
const getActiveIndexOffset = React.useCallback(index => {
|
|
132
132
|
const offset = {
|
|
133
133
|
left: void 0,
|
|
134
134
|
top: void 0
|
|
@@ -161,9 +161,9 @@ const ScrollWrapper = function ScrollWrapper2({
|
|
|
161
161
|
y: refScrollY
|
|
162
162
|
} = reactUse.useScroll(containerRef);
|
|
163
163
|
const windowSize = reactUse.useWindowSize();
|
|
164
|
-
const [scrollX, setScrollX] =
|
|
165
|
-
const [scrollY, setScrollY] =
|
|
166
|
-
|
|
164
|
+
const [scrollX, setScrollX] = React.useState(0);
|
|
165
|
+
const [scrollY, setScrollY] = React.useState(0);
|
|
166
|
+
React.useEffect(() => {
|
|
167
167
|
if (!containerRef.current) return;
|
|
168
168
|
const initScrollX = containerRef.current.scrollLeft;
|
|
169
169
|
const initScrollY = containerRef.current.scrollTop;
|
|
@@ -175,7 +175,7 @@ const ScrollWrapper = function ScrollWrapper2({
|
|
|
175
175
|
scrollWidth: containerRef.current.scrollWidth
|
|
176
176
|
});
|
|
177
177
|
}, [onScrollChange]);
|
|
178
|
-
|
|
178
|
+
React.useEffect(() => {
|
|
179
179
|
setScrollX(refScrollX);
|
|
180
180
|
setScrollY(refScrollY);
|
|
181
181
|
onScrollChange?.({
|
|
@@ -185,9 +185,9 @@ const ScrollWrapper = function ScrollWrapper2({
|
|
|
185
185
|
});
|
|
186
186
|
windowSize;
|
|
187
187
|
}, [onScrollChange, refScrollX, refScrollY, windowSize]);
|
|
188
|
-
const [showFadeStart, setShowFadeStart] =
|
|
189
|
-
const [showFadeEnd, setShowFadeEnd] =
|
|
190
|
-
|
|
188
|
+
const [showFadeStart, setShowFadeStart] = React.useState(false);
|
|
189
|
+
const [showFadeEnd, setShowFadeEnd] = React.useState(false);
|
|
190
|
+
React.useEffect(() => {
|
|
191
191
|
if (!containerRef.current) return;
|
|
192
192
|
const width = containerRef.current.offsetWidth;
|
|
193
193
|
const height = containerRef.current.offsetHeight;
|
|
@@ -207,7 +207,7 @@ const ScrollWrapper = function ScrollWrapper2({
|
|
|
207
207
|
windowSize;
|
|
208
208
|
containerSize.width;
|
|
209
209
|
}, [containerSize.width, direction, scrollX, scrollY, windowSize, items]);
|
|
210
|
-
const handleArrowClick =
|
|
210
|
+
const handleArrowClick = React.useCallback(first => {
|
|
211
211
|
const container = containerRef.current;
|
|
212
212
|
if (!container) return;
|
|
213
213
|
const scrollDirection = first ? -1 : 1;
|
|
@@ -264,7 +264,7 @@ const ScrollWrapper = function ScrollWrapper2({
|
|
|
264
264
|
behavior: "smooth"
|
|
265
265
|
});
|
|
266
266
|
}, [direction, scrollX, scrollY, scrollStepType, gap, getContainerItemWidth, getVisibleItemsWidth, getInvisibleItemOffset]);
|
|
267
|
-
|
|
267
|
+
React.useEffect(() => {
|
|
268
268
|
window.setTimeout(() => {
|
|
269
269
|
if (!containerRef.current) return;
|
|
270
270
|
if (activeIndex !== void 0 && activeIndex > -1) {
|
|
@@ -284,7 +284,7 @@ const ScrollWrapper = function ScrollWrapper2({
|
|
|
284
284
|
}
|
|
285
285
|
}, 0);
|
|
286
286
|
}, [activeIndex, getActiveIndexOffset]);
|
|
287
|
-
const arrowIconSrc =
|
|
287
|
+
const arrowIconSrc = React.useMemo(() => {
|
|
288
288
|
const icon = arrowIcon?.icon ?? ArrowRightIcon__default["default"];
|
|
289
289
|
return typeof icon === "string" ? icon : icon.src;
|
|
290
290
|
}, [arrowIcon]);
|
|
@@ -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
|
var theme = require('../../../constants/theme.js');
|
|
7
7
|
require('../../Loader/index.js');
|
|
@@ -38,11 +38,11 @@ const SearchInput = function SearchInput2({
|
|
|
38
38
|
className,
|
|
39
39
|
children
|
|
40
40
|
}) {
|
|
41
|
-
const ref =
|
|
42
|
-
|
|
41
|
+
const ref = React.useRef(null);
|
|
42
|
+
React.useEffect(() => {
|
|
43
43
|
setInputRef?.(ref.current);
|
|
44
44
|
}, [setInputRef]);
|
|
45
|
-
const handleInputWrapClick =
|
|
45
|
+
const handleInputWrapClick = React.useCallback(() => {
|
|
46
46
|
ref.current?.focus();
|
|
47
47
|
}, [ref]);
|
|
48
48
|
return /* @__PURE__ */jsxRuntime.jsx(Input_styles.SearchInputContainer, {
|
|
@@ -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/carouselArrow.svg.js');
|
|
6
6
|
require('../../CustomImage/index.js');
|
|
7
7
|
require('../../Loader/index.js');
|
|
@@ -29,8 +29,8 @@ const SearchModal = function SearchModal2({
|
|
|
29
29
|
search,
|
|
30
30
|
mobileMenu
|
|
31
31
|
}) {
|
|
32
|
-
const noResults =
|
|
33
|
-
const showSearchResultsLink =
|
|
32
|
+
const noResults = React.useMemo(() => !search.loading && !search.items?.length && !!formattedQuerySearchTerm, [formattedQuerySearchTerm, search.items?.length, search.loading]);
|
|
33
|
+
const showSearchResultsLink = React.useMemo(() => search.totalItemsCount > MAX_SEARCH_RESULTS, [search]);
|
|
34
34
|
return /* @__PURE__ */jsxRuntime.jsxs(Modal_styles.Container, {
|
|
35
35
|
center: !!(search.loading || noResults),
|
|
36
36
|
mobileMenu,
|
|
@@ -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 Slider_styles = require('./Slider.styles.js');
|
|
6
6
|
"use strict";
|
|
7
7
|
const StorageSlidersSlider = function StorageSlidersSlider2({
|
|
@@ -11,14 +11,14 @@ const StorageSlidersSlider = function StorageSlidersSlider2({
|
|
|
11
11
|
min = 0,
|
|
12
12
|
max = 100
|
|
13
13
|
}) {
|
|
14
|
-
const handleOnChange =
|
|
14
|
+
const handleOnChange = React.useCallback(e => {
|
|
15
15
|
if (disabled) return;
|
|
16
16
|
const newValue = parseInt(e.target.value);
|
|
17
17
|
if (!Number.isNaN(newValue)) {
|
|
18
18
|
onChange?.(newValue);
|
|
19
19
|
}
|
|
20
20
|
}, [disabled, onChange]);
|
|
21
|
-
const thumbLeftPercent =
|
|
21
|
+
const thumbLeftPercent = React.useMemo(() => {
|
|
22
22
|
return (value - min) / (max - min) * 100;
|
|
23
23
|
}, [max, min, value]);
|
|
24
24
|
return /* @__PURE__ */jsxRuntime.jsxs(Slider_styles.Wrap, {
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
var StorageSliders_constants = require('./StorageSliders.constants.js');
|
|
6
6
|
var StorageSliders_types = require('./StorageSliders.types.js');
|
|
7
7
|
var StorageSliders_utils = require('./StorageSliders.utils.js');
|
|
8
8
|
"use strict";
|
|
9
|
-
const StorageSlidersContext =
|
|
9
|
+
const StorageSlidersContext = React.createContext(null);
|
|
10
10
|
const StorageSlidersProvider = ({
|
|
11
11
|
hddTerabytes = 8,
|
|
12
12
|
sku,
|
|
13
13
|
children
|
|
14
14
|
}) => {
|
|
15
|
-
const data =
|
|
15
|
+
const data = React.useMemo(() => {
|
|
16
16
|
return StorageSliders_constants.storageSlidersDataBySku[sku] ?? null;
|
|
17
17
|
}, [sku]);
|
|
18
|
-
const [cameraType, setCameraType] =
|
|
19
|
-
const [cameras, setCameras] =
|
|
20
|
-
const [hours, setHours] =
|
|
21
|
-
const reset =
|
|
18
|
+
const [cameraType, setCameraType] = React.useState(StorageSliders_types.CameraType.Camera2K);
|
|
19
|
+
const [cameras, setCameras] = React.useState(0);
|
|
20
|
+
const [hours, setHours] = React.useState(0);
|
|
21
|
+
const reset = React.useCallback(() => {
|
|
22
22
|
setCameraType(StorageSliders_types.CameraType.Camera2K);
|
|
23
23
|
setCameras(0);
|
|
24
24
|
setHours(0);
|
|
25
25
|
}, []);
|
|
26
|
-
const cameraTypeData =
|
|
26
|
+
const cameraTypeData = React.useMemo(() => {
|
|
27
27
|
return data?.cameraTypeData[cameraType] ?? null;
|
|
28
28
|
}, [cameraType, data?.cameraTypeData]);
|
|
29
|
-
const maxCameras =
|
|
29
|
+
const maxCameras = React.useMemo(() => {
|
|
30
30
|
return cameraTypeData?.maxCameras ?? 0;
|
|
31
31
|
}, [cameraTypeData?.maxCameras]);
|
|
32
|
-
const storageHoursPerHdd =
|
|
32
|
+
const storageHoursPerHdd = React.useMemo(() => {
|
|
33
33
|
if (!data?.maxHdds || !cameraTypeData?.powerUsage || !cameras) {
|
|
34
34
|
return [];
|
|
35
35
|
}
|
|
@@ -58,7 +58,7 @@ const StorageSlidersProvider = ({
|
|
|
58
58
|
storageHours.reverse();
|
|
59
59
|
return storageHours;
|
|
60
60
|
}, [cameraTypeData?.powerUsage, cameras, data?.maxHdds, hddTerabytes]);
|
|
61
|
-
const maxHours =
|
|
61
|
+
const maxHours = React.useMemo(() => {
|
|
62
62
|
if (!data?.maxHdds || !cameraTypeData?.powerUsage) {
|
|
63
63
|
return 0;
|
|
64
64
|
}
|
|
@@ -70,7 +70,7 @@ const StorageSlidersProvider = ({
|
|
|
70
70
|
terabytes: hddTerabytes
|
|
71
71
|
});
|
|
72
72
|
}, [cameraTypeData?.powerUsage, cameras, data?.maxHdds, hddTerabytes]);
|
|
73
|
-
|
|
73
|
+
React.useEffect(() => {
|
|
74
74
|
if (hours > maxHours) {
|
|
75
75
|
setHours(maxHours);
|
|
76
76
|
}
|
|
@@ -78,21 +78,21 @@ const StorageSlidersProvider = ({
|
|
|
78
78
|
setCameras(maxCameras);
|
|
79
79
|
}
|
|
80
80
|
}, [cameras, hours, maxCameras, maxHours]);
|
|
81
|
-
const hdds =
|
|
81
|
+
const hdds = React.useMemo(() => {
|
|
82
82
|
if (!storageHoursPerHdd || !cameras || !hours) {
|
|
83
83
|
return 0;
|
|
84
84
|
}
|
|
85
85
|
const item = [...storageHoursPerHdd].reverse().find(el => el.hours <= hours);
|
|
86
86
|
return item?.hdds ?? 1;
|
|
87
87
|
}, [cameras, hours, storageHoursPerHdd]);
|
|
88
|
-
const [queuedSetHdds, setQueuedHdds] =
|
|
89
|
-
const handleSetHdds =
|
|
88
|
+
const [queuedSetHdds, setQueuedHdds] = React.useState();
|
|
89
|
+
const handleSetHdds = React.useCallback(count => {
|
|
90
90
|
if (!cameras) {
|
|
91
91
|
setCameras(1);
|
|
92
92
|
}
|
|
93
93
|
setQueuedHdds(count);
|
|
94
94
|
}, [cameras]);
|
|
95
|
-
|
|
95
|
+
React.useEffect(() => {
|
|
96
96
|
if (queuedSetHdds == null) return;
|
|
97
97
|
const item = storageHoursPerHdd.find(({
|
|
98
98
|
hdds: hdds2
|
|
@@ -100,7 +100,7 @@ const StorageSlidersProvider = ({
|
|
|
100
100
|
setHours(item?.hours ?? 0);
|
|
101
101
|
setQueuedHdds(void 0);
|
|
102
102
|
}, [queuedSetHdds, storageHoursPerHdd]);
|
|
103
|
-
const handleSetCameras =
|
|
103
|
+
const handleSetCameras = React.useCallback(value => {
|
|
104
104
|
if (hours === 0 && value > 0) {
|
|
105
105
|
setHours(1);
|
|
106
106
|
} else if (value === 0) {
|
|
@@ -108,7 +108,7 @@ const StorageSlidersProvider = ({
|
|
|
108
108
|
}
|
|
109
109
|
setCameras(value);
|
|
110
110
|
}, [hours]);
|
|
111
|
-
const handleSetHours =
|
|
111
|
+
const handleSetHours = React.useCallback(value => {
|
|
112
112
|
if (cameras === 0 && value > 0) {
|
|
113
113
|
setCameras(1);
|
|
114
114
|
}
|
|
@@ -134,7 +134,7 @@ const StorageSlidersProvider = ({
|
|
|
134
134
|
});
|
|
135
135
|
};
|
|
136
136
|
function useStorageSliders() {
|
|
137
|
-
const context =
|
|
137
|
+
const context = React.useContext(StorageSlidersContext);
|
|
138
138
|
if (context === null) {
|
|
139
139
|
throw new Error("useStorageSliders must be used within a StorageSlidersProvider");
|
|
140
140
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var merge = require('lodash/merge');
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
var reactUse = require('react-use');
|
|
7
7
|
require('./Slider/index.js');
|
|
8
8
|
var StorageSliders_constants = require('./StorageSliders.constants.js');
|
|
@@ -23,7 +23,7 @@ const StorageSliders = function StorageSliders2({
|
|
|
23
23
|
translations: initialTranslations,
|
|
24
24
|
disabled
|
|
25
25
|
}) {
|
|
26
|
-
const translations =
|
|
26
|
+
const translations = React.useMemo(() => {
|
|
27
27
|
return merge__default["default"](StorageSliders_constants.defaultStorageSlidersTranslations, initialTranslations);
|
|
28
28
|
}, [initialTranslations]);
|
|
29
29
|
const {
|
|
@@ -40,9 +40,9 @@ const StorageSliders = function StorageSliders2({
|
|
|
40
40
|
maxHdds,
|
|
41
41
|
hddTerabytes
|
|
42
42
|
} = StorageSliders_context.useStorageSliders();
|
|
43
|
-
const [localHours, setLocalHours] =
|
|
43
|
+
const [localHours, setLocalHours] = React.useState(hours);
|
|
44
44
|
reactUse.useDebounce(() => setHours(localHours), 5, [localHours]);
|
|
45
|
-
const [storageItemHoverIndex, setStorageItemHoverIndex] =
|
|
45
|
+
const [storageItemHoverIndex, setStorageItemHoverIndex] = React.useState(null);
|
|
46
46
|
return /* @__PURE__ */jsxRuntime.jsxs(StorageSliders_styles.Wrap, {
|
|
47
47
|
className,
|
|
48
48
|
children: [/* @__PURE__ */jsxRuntime.jsxs(StorageSliders_styles.SlidersContainer, {
|
|
@@ -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 Tooltip_styles = require('./Tooltip.styles.js');
|
|
7
7
|
"use strict";
|
|
@@ -10,13 +10,13 @@ const Tooltip = ({
|
|
|
10
10
|
tooltipClassName,
|
|
11
11
|
...rest
|
|
12
12
|
}) => {
|
|
13
|
-
const target =
|
|
14
|
-
const tooltipRef =
|
|
13
|
+
const target = React.useRef(null);
|
|
14
|
+
const tooltipRef = React.useRef(null);
|
|
15
15
|
const {
|
|
16
16
|
y: scrollY
|
|
17
17
|
} = reactUse.useWindowScroll();
|
|
18
|
-
const [isOpen, setIsOpen] =
|
|
19
|
-
|
|
18
|
+
const [isOpen, setIsOpen] = React.useState();
|
|
19
|
+
React.useEffect(() => {
|
|
20
20
|
setIsOpen(false);
|
|
21
21
|
scrollY;
|
|
22
22
|
}, [scrollY]);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var LineLoader = require('@ubnt/ui-components/LineLoader');
|
|
5
5
|
var Tooltip = require('@ubnt/ui-components/Tooltip');
|
|
6
|
-
var
|
|
6
|
+
var React = require('react');
|
|
7
7
|
var reactUse = require('react-use');
|
|
8
8
|
require('../../../../assets/icons/carouselArrow.svg.js');
|
|
9
9
|
var layout = require('../../../../constants/layout.js');
|
|
@@ -24,13 +24,13 @@ const VariantCompatibility = ({
|
|
|
24
24
|
compatibleProducts,
|
|
25
25
|
hideBottomSeparator
|
|
26
26
|
}) => {
|
|
27
|
-
const [canExpand, setCanExpand] =
|
|
28
|
-
const [isExpanded, setIsExpanded] =
|
|
29
|
-
const overflowRef =
|
|
27
|
+
const [canExpand, setCanExpand] = React.useState(false);
|
|
28
|
+
const [isExpanded, setIsExpanded] = React.useState(false);
|
|
29
|
+
const overflowRef = React.useRef(null);
|
|
30
30
|
const {
|
|
31
31
|
width: windowWidth
|
|
32
32
|
} = reactUse.useWindowSize();
|
|
33
|
-
|
|
33
|
+
React.useEffect(() => {
|
|
34
34
|
const overflowEl = overflowRef.current;
|
|
35
35
|
if (!overflowEl) return;
|
|
36
36
|
const canvas = document.createElement("canvas");
|
|
@@ -51,7 +51,7 @@ const VariantCompatibility = ({
|
|
|
51
51
|
children: [/* @__PURE__ */jsxRuntime.jsxs(Compatibility_styles.TextOverflow, {
|
|
52
52
|
ref: overflowRef,
|
|
53
53
|
$overflow: compatibleProducts.length > 1,
|
|
54
|
-
children: ["Compatibility", !isExpanded && ": ", !isExpanded && compatibleProducts.map((product, i, els) => /* @__PURE__ */jsxRuntime.jsxs(
|
|
54
|
+
children: ["Compatibility", !isExpanded && ": ", !isExpanded && compatibleProducts.map((product, i, els) => /* @__PURE__ */jsxRuntime.jsxs(React.Fragment, {
|
|
55
55
|
children: [/* @__PURE__ */jsxRuntime.jsx(CompatibleProductLink, {
|
|
56
56
|
renderImage,
|
|
57
57
|
product
|
|
@@ -84,7 +84,7 @@ const CompatibleProductLink = ({
|
|
|
84
84
|
product
|
|
85
85
|
}) => {
|
|
86
86
|
const isMobile = reactUse.useMedia(layout.BREAKPOINTS.MOBILE_AND_DOWN, false);
|
|
87
|
-
const [loading, setLoading] =
|
|
87
|
+
const [loading, setLoading] = React.useState(false);
|
|
88
88
|
return /* @__PURE__ */jsxRuntime.jsx(Tooltip.Tooltip, {
|
|
89
89
|
className: Compatibility_styles.TOOLTIP_CLASS_NAME,
|
|
90
90
|
motif: "light",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var dinero_js = require('dinero.js');
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
require('../../../assets/icons/reload.svg.js');
|
|
7
7
|
var url = require('../../../constants/url.js');
|
|
8
8
|
require('../../../utils/money/index.js');
|
|
@@ -70,37 +70,37 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
|
|
|
70
70
|
backInStockProps,
|
|
71
71
|
getEndPrice
|
|
72
72
|
}) {
|
|
73
|
-
const handleOnClick =
|
|
73
|
+
const handleOnClick = React.useCallback(() => {
|
|
74
74
|
if (!selected) {
|
|
75
75
|
onClick?.();
|
|
76
76
|
}
|
|
77
77
|
}, [onClick, selected]);
|
|
78
|
-
const subtitle =
|
|
78
|
+
const subtitle = React.useMemo(() => {
|
|
79
79
|
if (selected) {
|
|
80
80
|
return variant.getSkuText(variant$1.sku || variant$1.baseSku, variant$1.skuExtraLabel);
|
|
81
81
|
}
|
|
82
82
|
return variant$1.callout;
|
|
83
83
|
}, [selected, variant$1.baseSku, variant$1.callout, variant$1.sku, variant$1.skuExtraLabel]);
|
|
84
|
-
const [localQuantity, setLocalQuantity] =
|
|
85
|
-
const [localUpsellQuantity, setLocalUpsellQuantity] =
|
|
86
|
-
const endVariantPrice =
|
|
84
|
+
const [localQuantity, setLocalQuantity] = React.useState(DEFAULT_LOCAL_QUANTITY);
|
|
85
|
+
const [localUpsellQuantity, setLocalUpsellQuantity] = React.useState(DEFAULT_LOCAL_UPSELL_QUANTITY);
|
|
86
|
+
const endVariantPrice = React.useMemo(() => {
|
|
87
87
|
return getEndPrice(variant$1.displayPrice);
|
|
88
88
|
}, [getEndPrice, variant$1.displayPrice]);
|
|
89
|
-
const [showUpsellModal, setShowUpsellModal] =
|
|
89
|
+
const [showUpsellModal, setShowUpsellModal] = React.useState(false);
|
|
90
90
|
const {
|
|
91
91
|
reset: resetStorageSliders,
|
|
92
92
|
hdds,
|
|
93
93
|
setHdds
|
|
94
94
|
} = StorageSliders_context.useStorageSliders();
|
|
95
|
-
|
|
95
|
+
React.useEffect(() => {
|
|
96
96
|
setLocalUpsellQuantity(hdds * localQuantity);
|
|
97
97
|
}, [hdds, localQuantity]);
|
|
98
|
-
const handleUpsellReset =
|
|
98
|
+
const handleUpsellReset = React.useCallback(() => {
|
|
99
99
|
setLocalUpsellQuantity(DEFAULT_LOCAL_UPSELL_QUANTITY);
|
|
100
100
|
resetStorageSliders();
|
|
101
101
|
}, [resetStorageSliders]);
|
|
102
|
-
const [bundleOfferSelected, setBundleOfferSelected] =
|
|
103
|
-
|
|
102
|
+
const [bundleOfferSelected, setBundleOfferSelected] = React.useState(false);
|
|
103
|
+
React.useEffect(() => {
|
|
104
104
|
const bundleOffer = variant$1.bundleOffer;
|
|
105
105
|
let selected2 = !!bundleOffer?.preSelect;
|
|
106
106
|
if (bundleOffer?.requiresLogin || bundleOffer?.remainingRedeemQty === 0) {
|
|
@@ -108,18 +108,18 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
|
|
|
108
108
|
}
|
|
109
109
|
setBundleOfferSelected(selected2);
|
|
110
110
|
}, [variant$1.bundleOffer]);
|
|
111
|
-
const bundleOfferQuantity =
|
|
111
|
+
const bundleOfferQuantity = React.useMemo(() => {
|
|
112
112
|
if (!variant$1.bundleOffer || !bundleOfferSelected) {
|
|
113
113
|
return 0;
|
|
114
114
|
}
|
|
115
115
|
return getBundleOfferQuantity.getBundleOfferQuantity(variant$1.bundleOffer, localQuantity);
|
|
116
116
|
}, [bundleOfferSelected, localQuantity, variant$1.bundleOffer]);
|
|
117
|
-
|
|
117
|
+
React.useEffect(() => {
|
|
118
118
|
setLocalQuantity(DEFAULT_LOCAL_QUANTITY);
|
|
119
119
|
handleUpsellReset();
|
|
120
120
|
selected;
|
|
121
121
|
}, [handleUpsellReset, selected]);
|
|
122
|
-
const handleAddToCart =
|
|
122
|
+
const handleAddToCart = React.useCallback(async () => {
|
|
123
123
|
if (localQuantity < 1) return;
|
|
124
124
|
const addItems = [{
|
|
125
125
|
variantId: variant$1.variantId,
|
|
@@ -141,14 +141,14 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
|
|
|
141
141
|
setLocalQuantity(DEFAULT_LOCAL_QUANTITY);
|
|
142
142
|
handleUpsellReset();
|
|
143
143
|
}, [handleUpsellReset, bundleOfferQuantity, localQuantity, localUpsellQuantity, onVariantAddToCart, variant$1.bundleOffer, variant$1.upsellVariant, variant$1.variantId]);
|
|
144
|
-
const [popupProduct, setPopupProduct] =
|
|
145
|
-
const isPopupOpen =
|
|
146
|
-
|
|
144
|
+
const [popupProduct, setPopupProduct] = React.useState(variant$1.inlineAccessories?.activePopupProduct);
|
|
145
|
+
const isPopupOpen = React.useMemo(() => !!variant$1.inlineAccessories?.activePopupProduct, [variant$1.inlineAccessories?.activePopupProduct]);
|
|
146
|
+
React.useEffect(() => {
|
|
147
147
|
if (variant$1.inlineAccessories?.activePopupProduct !== void 0) {
|
|
148
148
|
setPopupProduct(variant$1.inlineAccessories?.activePopupProduct);
|
|
149
149
|
}
|
|
150
150
|
}, [variant$1.inlineAccessories?.activePopupProduct]);
|
|
151
|
-
const campaignDiscountPrice =
|
|
151
|
+
const campaignDiscountPrice = React.useMemo(() => {
|
|
152
152
|
const {
|
|
153
153
|
displayPrice,
|
|
154
154
|
campaignDiscount
|
|
@@ -163,10 +163,10 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
|
|
|
163
163
|
}
|
|
164
164
|
return misc.money(discountAllocation);
|
|
165
165
|
}, [localQuantity, variant$1]);
|
|
166
|
-
const endCampaignDiscountPrice =
|
|
166
|
+
const endCampaignDiscountPrice = React.useMemo(() => {
|
|
167
167
|
return campaignDiscountPrice && getEndPrice(campaignDiscountPrice);
|
|
168
168
|
}, [campaignDiscountPrice, getEndPrice]);
|
|
169
|
-
const campaignUpsellDiscountPrice =
|
|
169
|
+
const campaignUpsellDiscountPrice = React.useMemo(() => {
|
|
170
170
|
if (!variant$1.upsellVariant) {
|
|
171
171
|
return null;
|
|
172
172
|
}
|
|
@@ -179,10 +179,10 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
|
|
|
179
179
|
const multipliedPrice = dinero_js.multiply(misc.getDinero(campaignDiscount.fixedAmountPrice, campaignDiscount.fixedAmountCurrency), campaignDiscount.maxProductQty ? Math.min(localUpsellQuantity, campaignDiscount.maxProductQty) : localUpsellQuantity);
|
|
180
180
|
return misc.money(multipliedPrice);
|
|
181
181
|
}, [localUpsellQuantity, variant$1.upsellVariant]);
|
|
182
|
-
const endCampaignUpsellDiscountPrice =
|
|
182
|
+
const endCampaignUpsellDiscountPrice = React.useMemo(() => {
|
|
183
183
|
return campaignUpsellDiscountPrice && getEndPrice(campaignUpsellDiscountPrice);
|
|
184
184
|
}, [campaignUpsellDiscountPrice, getEndPrice]);
|
|
185
|
-
const totalPrice =
|
|
185
|
+
const totalPrice = React.useMemo(() => {
|
|
186
186
|
const {
|
|
187
187
|
displayPrice,
|
|
188
188
|
upsellVariant,
|
|
@@ -202,13 +202,13 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
|
|
|
202
202
|
});
|
|
203
203
|
return misc.money(dinero_js.add(dinero_js.add(dinero_js.add(variantPriceTotalWithDiscount, upsellPriceTotalWithDiscount), inlineAccessoriesPriceTotal), bundleOfferPriceTotal));
|
|
204
204
|
}, [campaignDiscountPrice, campaignUpsellDiscountPrice, bundleOfferQuantity, localQuantity, localUpsellQuantity, variant$1]);
|
|
205
|
-
const originalPrice =
|
|
205
|
+
const originalPrice = React.useMemo(() => {
|
|
206
206
|
return variant$1.originalPrice && getEndPrice(variant$1.originalPrice);
|
|
207
207
|
}, [getEndPrice, variant$1.originalPrice]);
|
|
208
|
-
const savedPrice =
|
|
208
|
+
const savedPrice = React.useMemo(() => {
|
|
209
209
|
return !!originalPrice && originalPrice.price.currency === endVariantPrice.price.currency && originalPrice.price.amount > endVariantPrice.price.amount ? dinero_js.subtract(misc.getDinero(originalPrice.price.amount, originalPrice.price.currency), misc.getDinero(endVariantPrice.price.amount, endVariantPrice.price.currency)) : null;
|
|
210
210
|
}, [originalPrice, endVariantPrice.price.currency, endVariantPrice.price.amount]);
|
|
211
|
-
const jsxVariantFooter =
|
|
211
|
+
const jsxVariantFooter = React.useMemo(() => {
|
|
212
212
|
const showBackInStock = !!backInStockProps && (!variant$1.isInStock || !!variant$1.isSoldOut || !!variant$1.isComingSoon);
|
|
213
213
|
const showTotalPrice = totalPrice.amount !== variant$1.displayPrice.amount;
|
|
214
214
|
const cartButton = {
|
|
@@ -274,16 +274,16 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
|
|
|
274
274
|
})]
|
|
275
275
|
});
|
|
276
276
|
}, [backInStockProps, variant$1.isInStock, variant$1.isSoldOut, variant$1.isComingSoon, variant$1.comingSoonDate, variant$1.isSubscription, variant$1.isRegionNotAvailable, variant$1.displayPrice.amount, localQuantity, translations, totalPrice, wizardProps, handleAddToCart, getEndPrice]);
|
|
277
|
-
const getActiveCategoryItems =
|
|
277
|
+
const getActiveCategoryItems = React.useCallback(items => {
|
|
278
278
|
return items.find(categorySubItem => activeCategories?.includes(categorySubItem.id))?.items || [];
|
|
279
279
|
}, [activeCategories]);
|
|
280
|
-
const secondLevelCategories =
|
|
280
|
+
const secondLevelCategories = React.useMemo(() => {
|
|
281
281
|
if (!variant$1?.category?.items?.length) {
|
|
282
282
|
return void 0;
|
|
283
283
|
}
|
|
284
284
|
return variant$1?.category?.items;
|
|
285
285
|
}, [variant$1?.category?.items]);
|
|
286
|
-
const secondLevelNavigation =
|
|
286
|
+
const secondLevelNavigation = React.useMemo(() => {
|
|
287
287
|
if (!secondLevelCategories) {
|
|
288
288
|
return void 0;
|
|
289
289
|
}
|
|
@@ -304,13 +304,13 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
|
|
|
304
304
|
}
|
|
305
305
|
};
|
|
306
306
|
}, [activeCategories, categoryChangeHandler, secondLevelCategories, variant$1.isInStock]);
|
|
307
|
-
const thirdLevelCategories =
|
|
307
|
+
const thirdLevelCategories = React.useMemo(() => {
|
|
308
308
|
if (secondLevelCategories) {
|
|
309
309
|
return getActiveCategoryItems(secondLevelCategories);
|
|
310
310
|
}
|
|
311
311
|
return void 0;
|
|
312
312
|
}, [getActiveCategoryItems, secondLevelCategories]);
|
|
313
|
-
const thirdLevelButtons =
|
|
313
|
+
const thirdLevelButtons = React.useMemo(() => {
|
|
314
314
|
if (!thirdLevelCategories) {
|
|
315
315
|
return void 0;
|
|
316
316
|
}
|
|
@@ -324,13 +324,13 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
|
|
|
324
324
|
onClick: categoryChangeHandler
|
|
325
325
|
};
|
|
326
326
|
}, [activeCategories, categoryChangeHandler, thirdLevelCategories]);
|
|
327
|
-
const fourthLevelCategories =
|
|
327
|
+
const fourthLevelCategories = React.useMemo(() => {
|
|
328
328
|
if (thirdLevelCategories) {
|
|
329
329
|
return getActiveCategoryItems(thirdLevelCategories);
|
|
330
330
|
}
|
|
331
331
|
return void 0;
|
|
332
332
|
}, [thirdLevelCategories, getActiveCategoryItems]);
|
|
333
|
-
const fourthLevelButtons =
|
|
333
|
+
const fourthLevelButtons = React.useMemo(() => {
|
|
334
334
|
if (!fourthLevelCategories) {
|
|
335
335
|
return void 0;
|
|
336
336
|
}
|
|
@@ -344,13 +344,13 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
|
|
|
344
344
|
onClick: categoryChangeHandler
|
|
345
345
|
};
|
|
346
346
|
}, [activeCategories, categoryChangeHandler, fourthLevelCategories]);
|
|
347
|
-
const title =
|
|
347
|
+
const title = React.useMemo(() => {
|
|
348
348
|
if (!variant$1?.category?.title || selected) {
|
|
349
349
|
return variant$1.title;
|
|
350
350
|
}
|
|
351
351
|
return variant$1.category.title;
|
|
352
352
|
}, [selected, variant$1?.category?.title, variant$1.title]);
|
|
353
|
-
const price =
|
|
353
|
+
const price = React.useMemo(() => {
|
|
354
354
|
const endPrice = endVariantPrice;
|
|
355
355
|
const endFromPrice = variant$1?.fromPrice && getEndPrice(variant$1.fromPrice);
|
|
356
356
|
const price2 = endPrice.formattedPrice;
|
|
@@ -364,7 +364,7 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
|
|
|
364
364
|
totalWithTax: priceWithTaxString
|
|
365
365
|
};
|
|
366
366
|
}, [selected, translations, variant$1.fromPrice, variant$1.isSubscription, endVariantPrice, getEndPrice]);
|
|
367
|
-
const image =
|
|
367
|
+
const image = React.useMemo(() => {
|
|
368
368
|
const variantImages = variant$1.images?.filter(image2 => !image2.isVideo);
|
|
369
369
|
const foundVariantImage = variantImages?.find(image2 => variant$1?.currentVariantGalleryIds?.includes(image2.id));
|
|
370
370
|
if (foundVariantImage) {
|
|
@@ -372,7 +372,7 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
|
|
|
372
372
|
}
|
|
373
373
|
return variantImages?.[0];
|
|
374
374
|
}, [variant$1?.currentVariantGalleryIds, variant$1.images]);
|
|
375
|
-
const handleInlineAccessoriesCheckbox =
|
|
375
|
+
const handleInlineAccessoriesCheckbox = React.useCallback(accessory => {
|
|
376
376
|
if (accessory.isSelected) {
|
|
377
377
|
accessory.handleSelect(0);
|
|
378
378
|
} else {
|
|
@@ -380,13 +380,13 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
|
|
|
380
380
|
accessory.handleSelect(quantity);
|
|
381
381
|
}
|
|
382
382
|
}, [localQuantity]);
|
|
383
|
-
|
|
383
|
+
React.useEffect(() => {
|
|
384
384
|
const uiCareAccessory = variant$1?.inlineAccessories?.items?.find(accessory => accessory.isUICare);
|
|
385
385
|
if (uiCareAccessory?.isSelected) {
|
|
386
386
|
uiCareAccessory.handleSelect(localQuantity);
|
|
387
387
|
}
|
|
388
388
|
}, [localQuantity]);
|
|
389
|
-
const jsxDiscount =
|
|
389
|
+
const jsxDiscount = React.useMemo(() => {
|
|
390
390
|
const {
|
|
391
391
|
campaignDiscount,
|
|
392
392
|
shortTitle
|
|
@@ -413,7 +413,7 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
|
|
|
413
413
|
})]
|
|
414
414
|
});
|
|
415
415
|
}, [endCampaignDiscountPrice, localQuantity, translations, variant$1]);
|
|
416
|
-
const jsxUpsellDiscount =
|
|
416
|
+
const jsxUpsellDiscount = React.useMemo(() => {
|
|
417
417
|
if (!variant$1.upsellVariant) {
|
|
418
418
|
return null;
|
|
419
419
|
}
|
|
@@ -450,7 +450,7 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
|
|
|
450
450
|
})]
|
|
451
451
|
});
|
|
452
452
|
}, [localUpsellQuantity, setHdds, translations, variant$1.shortTitle, variant$1.title, variant$1.upsellVariant, endCampaignUpsellDiscountPrice]);
|
|
453
|
-
const jsxProductBundleNotes =
|
|
453
|
+
const jsxProductBundleNotes = React.useMemo(() => {
|
|
454
454
|
if (!variant$1.productBundleNotes?.length) {
|
|
455
455
|
return null;
|
|
456
456
|
}
|