@ubnt/store.core 9.29.0-alpha.1 → 9.29.0-alpha.11
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/close.svg +4 -1
- package/lib/assets/close2.svg +2 -3
- package/lib/assets/close3.svg +1 -3
- package/lib/assets/icons/wizard/plus.svg.js +1 -1
- package/lib/assets/icons/wizard/plus.svg.mjs +2 -2
- package/lib/assets/pause.svg +3 -3
- package/lib/assets/pause2.svg +3 -3
- package/lib/assets/plus.svg +4 -22
- package/lib/assets/plus2.svg +22 -4
- 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/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 +13 -13
- package/lib/components/CustomImage/CustomImage.mjs +1 -1
- package/lib/components/Explore/Explore.js +5 -5
- package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.js +1 -1
- package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.mjs +1 -1
- 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/FeaturesSection_deprecated/assets/plus.svg.js +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/plus.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 +7 -7
- package/lib/components/GridGallery/GridModal/GridModal.mjs +1 -1
- 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 +6 -6
- package/lib/components/Header/CartModalV2/CartModal.mjs +1 -1
- package/lib/components/Header/CartModalV2/Item/Item.js +4 -4
- package/lib/components/Header/Header.js +35 -35
- package/lib/components/Header/Header.mjs +1 -1
- 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 +13 -13
- package/lib/components/LandingPageSidebar/LandingPageSidebar.mjs +1 -1
- 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 +13 -13
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
- package/lib/components/Microsites/MicrositePageContext.js +2 -2
- package/lib/components/Microsites/MicrositeProductPage.js +3 -3
- package/lib/components/Microsites/context/MicrositeProductPageContext.js +3 -3
- package/lib/components/MobileModal/MobileModal.js +4 -4
- package/lib/components/Modal/Modal.js +3 -3
- package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js +3 -3
- package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.js +2 -2
- package/lib/components/ModelCompareV3/ModelCompareV3.js +14 -14
- package/lib/components/ModelCompareV3/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/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/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 +6 -6
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +4 -4
- 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/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 +79 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs +71 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.d.ts +11 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +80 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +66 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.types.d.ts +12 -0
- package/lib/components/ProductTechSpecsV2/index.d.ts +1 -0
- package/lib/components/ProductTechSpecsV2/index.js +6 -0
- package/lib/components/ProductTechSpecsV2/index.js.map +1 -0
- package/lib/components/ProductTechSpecsV2/index.mjs +3 -0
- package/lib/components/ProductTechSpecsV2/index.mjs.map +1 -0
- package/lib/components/ProductWizard/Options/Options.js +3 -3
- package/lib/components/ProductWizard/ProductWizard.js +3 -3
- package/lib/components/ProductWizard/ProductWizard.mjs +1 -1
- 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/QuantityInput/QuantityInput.js +1 -1
- package/lib/components/QuantityInput/QuantityInput.mjs +1 -1
- 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 +5 -5
- package/lib/components/Search/Input/Input.mjs +1 -1
- 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 +21 -21
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +2 -2
- package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
- package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +2 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/index.mjs +2 -0
- package/lib/components/index.mjs.map +1 -1
- package/lib/constants/icons/generic/close.svg.js +1 -1
- package/lib/constants/icons/generic/close.svg.mjs +2 -2
- package/lib/constants/icons/generic/index.js +1 -1
- package/lib/constants/icons/generic/index.mjs +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
|
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');
|
|
@@ -10,7 +10,7 @@ var Input_styles = require('./Input.styles.js');
|
|
|
10
10
|
var StyleableSvgImage = require('../../StyleableSvgImage/StyleableSvgImage.js');
|
|
11
11
|
var _externalAssets_g50k1DIN = require("../../../assets/search.svg");
|
|
12
12
|
var Spinner = require('../../Loader/Spinner/Spinner.js');
|
|
13
|
-
var CloseIcon = require("../../../assets/
|
|
13
|
+
var CloseIcon = require("../../../assets/close3.svg");
|
|
14
14
|
function _interopDefault(e) {
|
|
15
15
|
return e && e.__esModule ? e : {
|
|
16
16
|
default: e
|
|
@@ -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, {
|
|
@@ -8,7 +8,7 @@ import { SearchInputContainer, InputWrap, IconWrap, Input, IconAfterWrap, Cancel
|
|
|
8
8
|
import { StyleableSvgImage } from '../../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
9
9
|
import _externalAssets_g50k1DIN__default from "../../../assets/search.svg";
|
|
10
10
|
import { Spinner } from '../../Loader/Spinner/Spinner.mjs';
|
|
11
|
-
import CloseIcon__default from "../../../assets/
|
|
11
|
+
import CloseIcon__default from "../../../assets/close3.svg";
|
|
12
12
|
"use strict";
|
|
13
13
|
const MAX_CHARACTERS = 250;
|
|
14
14
|
const SearchInput = function SearchInput2({
|
|
@@ -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",
|