@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
|
var layout = require('../../constants/layout.js');
|
|
7
7
|
var Gallery_context = require('./Gallery.context.js');
|
|
@@ -26,7 +26,7 @@ const parseGalleryEntries = (entries, fade) => {
|
|
|
26
26
|
slidesWithClones.push(slidesWithClones[1]);
|
|
27
27
|
return slidesWithClones;
|
|
28
28
|
};
|
|
29
|
-
const Gallery =
|
|
29
|
+
const Gallery = React.memo(function Gallery2({
|
|
30
30
|
controls,
|
|
31
31
|
entries,
|
|
32
32
|
parsed,
|
|
@@ -46,25 +46,25 @@ const Gallery = react.memo(function Gallery2({
|
|
|
46
46
|
visibleSlide,
|
|
47
47
|
resetTransitionState
|
|
48
48
|
} = Gallery_context.useGalleryControls();
|
|
49
|
-
const galleryRef =
|
|
50
|
-
const entriesParsed =
|
|
49
|
+
const galleryRef = React.useRef(null);
|
|
50
|
+
const entriesParsed = React.useMemo(() => {
|
|
51
51
|
return parsed ? entries : parseGalleryEntries(entries, fade);
|
|
52
52
|
}, [entries, fade, parsed]);
|
|
53
|
-
|
|
53
|
+
React.useEffect(() => {
|
|
54
54
|
setControlsType(controls);
|
|
55
55
|
}, [controls, setControlsType]);
|
|
56
|
-
|
|
56
|
+
React.useEffect(() => {
|
|
57
57
|
reset(entriesParsed.length);
|
|
58
58
|
}, [entriesParsed, reset]);
|
|
59
|
-
const activeEntry =
|
|
60
|
-
const couldBeNext =
|
|
59
|
+
const activeEntry = React.useMemo(() => entriesParsed[visibleSlide], [entriesParsed, visibleSlide]);
|
|
60
|
+
const couldBeNext = React.useCallback(index => {
|
|
61
61
|
const potentialNextRightSlideIndex = visibleSlide + 1 > entriesParsed.length - 1 ? 0 : visibleSlide + 1;
|
|
62
62
|
const potentialNextLeftSlideIndex = visibleSlide - 1 < 0 ? entriesParsed.length - 1 : visibleSlide - 1;
|
|
63
63
|
return !!(potentialNextRightSlideIndex === index || potentialNextLeftSlideIndex === index);
|
|
64
64
|
}, [entriesParsed.length, visibleSlide]);
|
|
65
65
|
const isTabletUp = reactUse.useMedia(layout.BREAKPOINTS.TABLET_UP, false);
|
|
66
66
|
const hoveredRaw = reactUse.useHoverDirty(galleryRef, isTabletUp);
|
|
67
|
-
const [hovered, setHovered] =
|
|
67
|
+
const [hovered, setHovered] = React.useState(false);
|
|
68
68
|
reactUse.useDebounce(() => {
|
|
69
69
|
setHovered(hoveredRaw);
|
|
70
70
|
}, 10, [hoveredRaw]);
|
|
@@ -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/arrowRightMicro.svg.js');
|
|
6
6
|
var Gallery_context = require('../Gallery.context.js');
|
|
7
7
|
var GalleryControls_styles = require('./GalleryControls.styles.js');
|
|
@@ -13,7 +13,7 @@ function _interopDefault(e) {
|
|
|
13
13
|
}
|
|
14
14
|
var arrowRightMicroSvg__default = /*#__PURE__*/_interopDefault(arrowRightMicroSvg);
|
|
15
15
|
"use strict";
|
|
16
|
-
const GalleryControl =
|
|
16
|
+
const GalleryControl = React.memo(function GalleryRightControl({
|
|
17
17
|
label,
|
|
18
18
|
side,
|
|
19
19
|
rounded,
|
|
@@ -23,7 +23,7 @@ const GalleryControl = react.memo(function GalleryRightControl({
|
|
|
23
23
|
setNext,
|
|
24
24
|
setPrevious
|
|
25
25
|
} = Gallery_context.useGalleryControls();
|
|
26
|
-
const handleClick =
|
|
26
|
+
const handleClick = React.useCallback(() => {
|
|
27
27
|
onClick?.();
|
|
28
28
|
switch (side) {
|
|
29
29
|
case "left":
|
|
@@ -57,7 +57,7 @@ const GalleryOutsideControlsInfo = () => {
|
|
|
57
57
|
children: currentImageLabel
|
|
58
58
|
});
|
|
59
59
|
};
|
|
60
|
-
const GalleryBottomControls =
|
|
60
|
+
const GalleryBottomControls = React.memo(function GalleryBottomControls2({
|
|
61
61
|
className,
|
|
62
62
|
size,
|
|
63
63
|
onControl
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
var reactUse = require('react-use');
|
|
6
6
|
var layout = require('../../../constants/layout.js');
|
|
7
7
|
var GalleryItem_styles = require('./GalleryItem.styles.js');
|
|
8
8
|
"use strict";
|
|
9
|
-
const GalleryItem =
|
|
9
|
+
const GalleryItem = React.memo(function GalleryItem2({
|
|
10
10
|
item,
|
|
11
11
|
renderImage,
|
|
12
12
|
priority,
|
|
@@ -16,10 +16,10 @@ const GalleryItem = react.memo(function GalleryItem2({
|
|
|
16
16
|
couldBeNext = true,
|
|
17
17
|
objectFit = "cover"
|
|
18
18
|
}) {
|
|
19
|
-
const videoRef =
|
|
20
|
-
const isVideoHovering =
|
|
19
|
+
const videoRef = React.useRef(null);
|
|
20
|
+
const isVideoHovering = React.useRef(false);
|
|
21
21
|
const isMobile = reactUse.useMedia(layout.BREAKPOINTS.TABLET_AND_DOWN, false);
|
|
22
|
-
const handleMouseEnter =
|
|
22
|
+
const handleMouseEnter = React.useCallback(() => {
|
|
23
23
|
isVideoHovering.current = true;
|
|
24
24
|
if (!videoRef.current) {
|
|
25
25
|
return;
|
|
@@ -40,8 +40,8 @@ const GalleryItem = react.memo(function GalleryItem2({
|
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
}, []);
|
|
43
|
-
const [isVisible, setIsVisible] =
|
|
44
|
-
|
|
43
|
+
const [isVisible, setIsVisible] = React.useState(isActive);
|
|
44
|
+
React.useEffect(() => {
|
|
45
45
|
if (!isActive) {
|
|
46
46
|
window.setTimeout(() => {
|
|
47
47
|
setIsVisible(false);
|
|
@@ -50,7 +50,7 @@ const GalleryItem = react.memo(function GalleryItem2({
|
|
|
50
50
|
setIsVisible(true);
|
|
51
51
|
}
|
|
52
52
|
}, [isActive, isVisible]);
|
|
53
|
-
|
|
53
|
+
React.useEffect(() => {
|
|
54
54
|
if (!isVisible && videoRef.current) {
|
|
55
55
|
videoRef.current.pause();
|
|
56
56
|
videoRef.current.currentTime = 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('../../ScrollWrapper/index.js');
|
|
7
7
|
var Gallery_context = require('../Gallery.context.js');
|
|
@@ -18,26 +18,26 @@ const GalleryThumbnails = function GalleryThumbnails2({
|
|
|
18
18
|
visibleSlide,
|
|
19
19
|
jumpToSlide
|
|
20
20
|
} = Gallery_context.useGalleryControls();
|
|
21
|
-
const handleThumbnailClick =
|
|
21
|
+
const handleThumbnailClick = React.useCallback(index => {
|
|
22
22
|
if (expanded) {
|
|
23
23
|
onControl?.();
|
|
24
24
|
jumpToSlide(index);
|
|
25
25
|
}
|
|
26
26
|
}, [expanded, jumpToSlide, onControl]);
|
|
27
|
-
const [allowPointers, setAllowPointers] =
|
|
27
|
+
const [allowPointers, setAllowPointers] = React.useState(false);
|
|
28
28
|
reactUse.useDebounce(() => {
|
|
29
29
|
setAllowPointers(expanded);
|
|
30
30
|
}, GalleryThumbnails_styles.GALLERY_TRANSITION_MS, [expanded, visibleSlide]);
|
|
31
|
-
const wrapRef =
|
|
32
|
-
const [scrollOffset, setScrollOffset] =
|
|
33
|
-
const [containerWidth, setContainerWidth] =
|
|
34
|
-
const onScrollChange =
|
|
31
|
+
const wrapRef = React.useRef(null);
|
|
32
|
+
const [scrollOffset, setScrollOffset] = React.useState(0);
|
|
33
|
+
const [containerWidth, setContainerWidth] = React.useState(0);
|
|
34
|
+
const onScrollChange = React.useCallback(({
|
|
35
35
|
scrollX
|
|
36
36
|
}) => {
|
|
37
37
|
setScrollOffset(scrollX);
|
|
38
38
|
setContainerWidth(wrapRef.current?.offsetWidth ?? 0);
|
|
39
39
|
}, []);
|
|
40
|
-
|
|
40
|
+
React.useEffect(() => {
|
|
41
41
|
setScrollOffset(0);
|
|
42
42
|
setContainerWidth(wrapRef.current?.offsetWidth ?? 0);
|
|
43
43
|
}, [items]);
|
|
@@ -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/play-big.svg.js');
|
|
7
7
|
var layout = require('../../constants/layout.js');
|
|
@@ -27,11 +27,11 @@ const GridGallery = function GridGallery2({
|
|
|
27
27
|
onModalToggle
|
|
28
28
|
}) {
|
|
29
29
|
const isTablet = reactUse.useMedia(layout.BREAKPOINTS.TABLET_AND_DOWN, false);
|
|
30
|
-
const [activeModalId, setActiveModalId] =
|
|
31
|
-
|
|
30
|
+
const [activeModalId, setActiveModalId] = React.useState("");
|
|
31
|
+
React.useEffect(() => {
|
|
32
32
|
onModalToggle?.(activeModalId);
|
|
33
33
|
}, [onModalToggle, activeModalId]);
|
|
34
|
-
const getAssetAspectRatioType =
|
|
34
|
+
const getAssetAspectRatioType = React.useCallback(asset => {
|
|
35
35
|
const aspectHeightRatio = asset.height / asset.width;
|
|
36
36
|
const heightRatios = Object.values(GridGallery_styles.GRID_GALLERY_RATIOS).map(ratios => ratios.height);
|
|
37
37
|
const heightRatio = number.findClosestNumber(heightRatios, aspectHeightRatio);
|
|
@@ -42,7 +42,7 @@ const GridGallery = function GridGallery2({
|
|
|
42
42
|
}
|
|
43
43
|
return GridGallery_types.RatioType.OneThird;
|
|
44
44
|
}, []);
|
|
45
|
-
const parsedAssets =
|
|
45
|
+
const parsedAssets = React.useMemo(() => {
|
|
46
46
|
const parsed = assetsInitial.map(asset => {
|
|
47
47
|
const ratioType = getAssetAspectRatioType(asset);
|
|
48
48
|
return {
|
|
@@ -60,8 +60,8 @@ const GridGallery = function GridGallery2({
|
|
|
60
60
|
return asset;
|
|
61
61
|
});
|
|
62
62
|
}, [assetsInitial, getAssetAspectRatioType]);
|
|
63
|
-
const [assetRows, setAssetRows] =
|
|
64
|
-
const createAssetRows =
|
|
63
|
+
const [assetRows, setAssetRows] = React.useState([]);
|
|
64
|
+
const createAssetRows = React.useCallback(() => {
|
|
65
65
|
const fullRows = [];
|
|
66
66
|
const partialRows = [];
|
|
67
67
|
const availableAssets = [...parsedAssets];
|
|
@@ -123,7 +123,7 @@ const GridGallery = function GridGallery2({
|
|
|
123
123
|
}
|
|
124
124
|
setAssetRows(fullRows);
|
|
125
125
|
}, [parsedAssets]);
|
|
126
|
-
|
|
126
|
+
React.useEffect(() => {
|
|
127
127
|
createAssetRows();
|
|
128
128
|
parsedAssets;
|
|
129
129
|
}, [parsedAssets, createAssetRows]);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
var reactUse = require('react-use');
|
|
6
6
|
require('../../../constants/icons/index.js');
|
|
7
7
|
var Header_styles = require('../../Header/Header.styles.js');
|
|
8
8
|
require('../../StyleableSvgImage/index.js');
|
|
9
9
|
var GridModal_styles = require('./GridModal.styles.js');
|
|
10
10
|
var StyleableSvgImage = require('../../StyleableSvgImage/StyleableSvgImage.js');
|
|
11
|
-
var CloseIcon = require("../../../assets/
|
|
11
|
+
var CloseIcon = require("../../../assets/close3.svg");
|
|
12
12
|
function _interopDefault(e) {
|
|
13
13
|
return e && e.__esModule ? e : {
|
|
14
14
|
default: e
|
|
@@ -24,9 +24,9 @@ const GridModal = function CartModal({
|
|
|
24
24
|
height,
|
|
25
25
|
videoStartTime
|
|
26
26
|
}) {
|
|
27
|
-
const ref =
|
|
28
|
-
const refVideo =
|
|
29
|
-
const [offsetTop, setOffsetTop] =
|
|
27
|
+
const ref = React.useRef(null);
|
|
28
|
+
const refVideo = React.useRef(null);
|
|
29
|
+
const [offsetTop, setOffsetTop] = React.useState(0);
|
|
30
30
|
reactUse.useClickAway(ref, onClose, ["click"]);
|
|
31
31
|
reactUse.useLockBodyScroll(open);
|
|
32
32
|
reactUse.useKeyPressEvent("Escape", () => {
|
|
@@ -34,12 +34,12 @@ const GridModal = function CartModal({
|
|
|
34
34
|
onClose();
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
|
-
|
|
37
|
+
React.useEffect(() => {
|
|
38
38
|
if (open && refVideo.current && videoStartTime) {
|
|
39
39
|
refVideo.current.currentTime = videoStartTime;
|
|
40
40
|
}
|
|
41
41
|
}, [open, videoStartTime]);
|
|
42
|
-
|
|
42
|
+
React.useEffect(() => {
|
|
43
43
|
if (window.scrollY === 0) {
|
|
44
44
|
setOffsetTop(Header_styles.HEADER_HEIGHT);
|
|
45
45
|
}
|
|
@@ -6,7 +6,7 @@ import { HEADER_HEIGHT } from '../../Header/Header.styles.mjs';
|
|
|
6
6
|
import '../../StyleableSvgImage/index.mjs';
|
|
7
7
|
import { Wrap, Container, CloseButton, Video } from './GridModal.styles.mjs';
|
|
8
8
|
import { StyleableSvgImage } from '../../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
9
|
-
import CloseIcon__default from "../../../assets/
|
|
9
|
+
import CloseIcon__default from "../../../assets/close3.svg";
|
|
10
10
|
"use strict";
|
|
11
11
|
const GridModal = function CartModal({
|
|
12
12
|
open,
|
|
@@ -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 url = require('../../../constants/url.js');
|
|
7
7
|
require('../../../contexts/MenuContext/mapping.js');
|
|
@@ -20,8 +20,8 @@ const AccountFrame = function AccountFrame2({
|
|
|
20
20
|
renderImage,
|
|
21
21
|
account
|
|
22
22
|
}) {
|
|
23
|
-
const ref =
|
|
24
|
-
const name =
|
|
23
|
+
const ref = React.useRef(null);
|
|
24
|
+
const name = React.useRef(null);
|
|
25
25
|
const {
|
|
26
26
|
formatMessage
|
|
27
27
|
} = useTranslation.useTranslation({
|
|
@@ -60,8 +60,8 @@ const AccountFrame = function AccountFrame2({
|
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
62
|
const isHovering = reactUse.useHoverDirty(name);
|
|
63
|
-
const [showPopover, setShowPopOver] =
|
|
64
|
-
|
|
63
|
+
const [showPopover, setShowPopOver] = React.useState(false);
|
|
64
|
+
React.useEffect(() => {
|
|
65
65
|
if (name.current) {
|
|
66
66
|
const displayPopover = name.current.offsetWidth < name.current.scrollWidth;
|
|
67
67
|
if (displayPopover && isHovering) {
|
|
@@ -71,7 +71,7 @@ const AccountFrame = function AccountFrame2({
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
}, [isHovering]);
|
|
74
|
-
const handleClose =
|
|
74
|
+
const handleClose = React.useCallback(() => {
|
|
75
75
|
onClose();
|
|
76
76
|
}, [onClose]);
|
|
77
77
|
reactUse.useClickAway(ref, event => {
|
|
@@ -87,22 +87,22 @@ const AccountFrame = function AccountFrame2({
|
|
|
87
87
|
handleClose();
|
|
88
88
|
}
|
|
89
89
|
}, ["click"]);
|
|
90
|
-
const hasAccountEvents =
|
|
90
|
+
const hasAccountEvents = React.useMemo(() => {
|
|
91
91
|
return !!(account && (account.handleLogin || account.handleRegister || account.handleLogout));
|
|
92
92
|
}, [account]);
|
|
93
|
-
const handleLogout =
|
|
93
|
+
const handleLogout = React.useCallback(() => {
|
|
94
94
|
account?.handleLogout?.();
|
|
95
95
|
handleClose();
|
|
96
96
|
}, [handleClose, account]);
|
|
97
|
-
const handleUnifiSiteManager =
|
|
97
|
+
const handleUnifiSiteManager = React.useCallback(() => {
|
|
98
98
|
window.open(url.ExternalUrl.UNIFI_SITE_MANAGER);
|
|
99
99
|
handleClose();
|
|
100
100
|
}, [handleClose]);
|
|
101
|
-
const handleOrderHistoryClick =
|
|
101
|
+
const handleOrderHistoryClick = React.useCallback(() => {
|
|
102
102
|
account?.handleOrderHistory?.();
|
|
103
103
|
handleClose();
|
|
104
104
|
}, [account, handleClose]);
|
|
105
|
-
const onManageAccount =
|
|
105
|
+
const onManageAccount = React.useCallback(() => {
|
|
106
106
|
account?.handleManageAccount?.();
|
|
107
107
|
handleClose();
|
|
108
108
|
}, [account, handleClose]);
|
|
@@ -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 url = require('../../../../constants/url.js');
|
|
6
6
|
require('../../../../contexts/MenuContext/mapping.js');
|
|
7
7
|
require('../../../../hooks/index.js');
|
|
@@ -54,14 +54,14 @@ const AccountFrameMobile = function AccountFrameMobile2({
|
|
|
54
54
|
}).then(res => res.default)
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
|
-
const hasAccountEvents =
|
|
57
|
+
const hasAccountEvents = React.useMemo(() => {
|
|
58
58
|
return !!(account?.handleLogin && account.handleRegister && account.handleLogout);
|
|
59
59
|
}, [account]);
|
|
60
|
-
const handleUnifiSiteManager =
|
|
60
|
+
const handleUnifiSiteManager = React.useCallback(() => {
|
|
61
61
|
window.open(url.ExternalUrl.UNIFI_SITE_MANAGER);
|
|
62
62
|
onClose();
|
|
63
63
|
}, [onClose]);
|
|
64
|
-
const onCloseFn =
|
|
64
|
+
const onCloseFn = React.useCallback(fn => {
|
|
65
65
|
return () => {
|
|
66
66
|
fn?.();
|
|
67
67
|
onClose();
|
|
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
4
4
|
var AccountMenu$1 = require('@ubnt/ui-components/aria/AccountMenu');
|
|
5
5
|
var Avatar = require('@ubnt/ui-components/aria/Avatar');
|
|
6
6
|
var Button = require('@ubnt/ui-components/Button');
|
|
7
|
-
var
|
|
7
|
+
var React = require('react');
|
|
8
8
|
var reactUse = require('react-use');
|
|
9
9
|
require('../../../assets/icons/menu/icon-avatar-placeholder-dark.png.js');
|
|
10
10
|
require('../../../assets/icons/menu/icon-avatar-placeholder.png.js');
|
|
@@ -90,30 +90,30 @@ const AccountMenu = ({
|
|
|
90
90
|
[constants.Language.Tw]: () => Promise.resolve(en["default"])
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
|
-
const megaphoneHttpService =
|
|
93
|
+
const megaphoneHttpService = React.useMemo(() => {
|
|
94
94
|
if (megaphoneServiceUrl) {
|
|
95
95
|
return new megaphone_http_service["default"](megaphoneServiceUrl);
|
|
96
96
|
}
|
|
97
97
|
return null;
|
|
98
98
|
}, [megaphoneServiceUrl]);
|
|
99
|
-
const hasAccountEvents =
|
|
99
|
+
const hasAccountEvents = React.useMemo(() => {
|
|
100
100
|
return !!(account && (account.handleLogin || account.handleRegister || account.handleLogout));
|
|
101
101
|
}, [account]);
|
|
102
|
-
const handleLogout =
|
|
102
|
+
const handleLogout = React.useCallback(() => {
|
|
103
103
|
account?.handleLogout?.();
|
|
104
104
|
}, [account]);
|
|
105
|
-
const handleUnifiSiteManager =
|
|
105
|
+
const handleUnifiSiteManager = React.useCallback(() => {
|
|
106
106
|
window.open(url.ExternalUrl.UNIFI_SITE_MANAGER);
|
|
107
107
|
}, []);
|
|
108
|
-
const handleOrderHistoryClick =
|
|
108
|
+
const handleOrderHistoryClick = React.useCallback(() => {
|
|
109
109
|
account?.handleOrderHistory?.();
|
|
110
110
|
}, [account]);
|
|
111
|
-
const onManageAccount =
|
|
111
|
+
const onManageAccount = React.useCallback(() => {
|
|
112
112
|
account?.handleManageAccount?.();
|
|
113
113
|
}, [account]);
|
|
114
|
-
const [announcements, setAnnouncements] =
|
|
115
|
-
const [, setIsAnnouncementsLoading] =
|
|
116
|
-
|
|
114
|
+
const [announcements, setAnnouncements] = React.useState([]);
|
|
115
|
+
const [, setIsAnnouncementsLoading] = React.useState(false);
|
|
116
|
+
React.useEffect(() => {
|
|
117
117
|
if (!megaphoneHttpService) {
|
|
118
118
|
return;
|
|
119
119
|
}
|
|
@@ -122,12 +122,12 @@ const AccountMenu = ({
|
|
|
122
122
|
data
|
|
123
123
|
}) => setAnnouncements(data ?? [])).catch(e => console.error(e)).finally(() => setIsAnnouncementsLoading(false));
|
|
124
124
|
}, [megaphoneHttpService]);
|
|
125
|
-
const unreadAnnouncements =
|
|
125
|
+
const unreadAnnouncements = React.useMemo(() => {
|
|
126
126
|
return announcements.filter(({
|
|
127
127
|
isRead
|
|
128
128
|
}) => !isRead);
|
|
129
129
|
}, [announcements]);
|
|
130
|
-
const markAsRead =
|
|
130
|
+
const markAsRead = React.useCallback(async announcement => {
|
|
131
131
|
if (!megaphoneHttpService) {
|
|
132
132
|
return;
|
|
133
133
|
}
|
|
@@ -139,7 +139,7 @@ const AccountMenu = ({
|
|
|
139
139
|
setAnnouncements([...filtered, announcement]);
|
|
140
140
|
});
|
|
141
141
|
}, [announcements, megaphoneHttpService]);
|
|
142
|
-
const getAnnouncementButtons =
|
|
142
|
+
const getAnnouncementButtons = React.useCallback((announcement, markAsRead2, onExternalClick) => {
|
|
143
143
|
return [/* @__PURE__ */jsxRuntime.jsx(Button.Button, {
|
|
144
144
|
variant: "inline",
|
|
145
145
|
type: "button",
|
|
@@ -154,7 +154,7 @@ const AccountMenu = ({
|
|
|
154
154
|
children: formatMessage("Show Me")
|
|
155
155
|
}, `btn-show-me-${announcement.announcementId}`)];
|
|
156
156
|
}, [formatMessage]);
|
|
157
|
-
const mappedAnnouncements =
|
|
157
|
+
const mappedAnnouncements = React.useMemo(() => {
|
|
158
158
|
return (unreadAnnouncements ?? [])?.map(announcement => ({
|
|
159
159
|
...announcement,
|
|
160
160
|
id: announcement.announcementId,
|
|
@@ -175,7 +175,7 @@ const AccountMenu = ({
|
|
|
175
175
|
animateIn,
|
|
176
176
|
animateOut
|
|
177
177
|
} = Avatar.useAnnouncementAnimation(START_KEY, "userAvatar" /* UserAvatar */);
|
|
178
|
-
|
|
178
|
+
React.useEffect(() => {
|
|
179
179
|
if (announcements?.length) {
|
|
180
180
|
animateIn();
|
|
181
181
|
return;
|
|
@@ -185,10 +185,10 @@ const AccountMenu = ({
|
|
|
185
185
|
}
|
|
186
186
|
animateOut();
|
|
187
187
|
}, [animateIn, animateOut, announcements, display]);
|
|
188
|
-
const showOrderHistory =
|
|
189
|
-
const showLogin =
|
|
190
|
-
const showUiAccount =
|
|
191
|
-
const unifiSiteManagerButtonVariant =
|
|
188
|
+
const showOrderHistory = React.useMemo(() => !!(account?.customer && account?.handleOrderHistory), [account?.customer, account?.handleOrderHistory]);
|
|
189
|
+
const showLogin = React.useMemo(() => !!(!account?.customer && account?.handleLogin), [account?.customer, account?.handleLogin]);
|
|
190
|
+
const showUiAccount = React.useMemo(() => !!(!hasAccountEvents || account?.customer && !account?.handleManageAccount), [account?.customer, account?.handleManageAccount, hasAccountEvents]);
|
|
191
|
+
const unifiSiteManagerButtonVariant = React.useMemo(() => {
|
|
192
192
|
if (showOrderHistory || showLogin || showUiAccount) {
|
|
193
193
|
return "tertiary";
|
|
194
194
|
}
|
|
@@ -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/cartEmpty.svg.js');
|
|
7
7
|
require('../../../StaticModal/index.js');
|
|
@@ -24,8 +24,8 @@ const EmptyCartModal = function EmptyCartModal2({
|
|
|
24
24
|
open,
|
|
25
25
|
onClose
|
|
26
26
|
}) {
|
|
27
|
-
const ref =
|
|
28
|
-
const handleClose =
|
|
27
|
+
const ref = React.useRef(null);
|
|
28
|
+
const handleClose = React.useCallback(() => {
|
|
29
29
|
onClose();
|
|
30
30
|
}, [onClose]);
|
|
31
31
|
reactUse.useClickAway(ref, () => handleClose(), ["click"]);
|
|
@@ -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/cart.svg.js');
|
|
6
6
|
require('../../../constants/icons/index.js');
|
|
7
7
|
require('../../StyleableSvgImage/index.js');
|
|
@@ -9,7 +9,7 @@ var CartModal_styles = require('./CartModal.styles.js');
|
|
|
9
9
|
require('./Item/index.js');
|
|
10
10
|
var StyleableSvgImage = require('../../StyleableSvgImage/StyleableSvgImage.js');
|
|
11
11
|
var CartIcon = require("../../../assets/cart.svg");
|
|
12
|
-
var CloseIcon = require("../../../assets/
|
|
12
|
+
var CloseIcon = require("../../../assets/close3.svg");
|
|
13
13
|
var Item = require('./Item/Item.js');
|
|
14
14
|
function _interopDefault(e) {
|
|
15
15
|
return e && e.__esModule ? e : {
|
|
@@ -27,16 +27,16 @@ const CartModal = function CartModal2({
|
|
|
27
27
|
onClose,
|
|
28
28
|
cart
|
|
29
29
|
}) {
|
|
30
|
-
const handleReviewClick =
|
|
30
|
+
const handleReviewClick = React.useCallback(() => {
|
|
31
31
|
onClose();
|
|
32
32
|
cart?.onReview();
|
|
33
33
|
}, [cart, onClose]);
|
|
34
|
-
const bodyItemsRef =
|
|
35
|
-
const [bodyItemsGradient, setBodyItemsGradient] =
|
|
34
|
+
const bodyItemsRef = React.useRef(null);
|
|
35
|
+
const [bodyItemsGradient, setBodyItemsGradient] = React.useState({
|
|
36
36
|
top: false,
|
|
37
37
|
bottom: false
|
|
38
38
|
});
|
|
39
|
-
|
|
39
|
+
React.useEffect(() => {
|
|
40
40
|
const el = bodyItemsRef.current;
|
|
41
41
|
if (!el) return;
|
|
42
42
|
const handleSetBodyItemsGradient = () => {
|
|
@@ -7,7 +7,7 @@ import { Wrap, Container, ContainerInner, Section, SectionHeader, SectionTitle,
|
|
|
7
7
|
import './Item/index.mjs';
|
|
8
8
|
import { StyleableSvgImage } from '../../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
9
9
|
import CartIcon__default from "../../../assets/cart.svg";
|
|
10
|
-
import CloseIcon__default from "../../../assets/
|
|
10
|
+
import CloseIcon__default from "../../../assets/close3.svg";
|
|
11
11
|
import { CartModalItem } from './Item/Item.mjs';
|
|
12
12
|
"use strict";
|
|
13
13
|
const CartModal = function CartModal2({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
require('../../../../constants/icons/index.js');
|
|
6
6
|
require('../../../CustomImage/index.js');
|
|
7
7
|
require('../../../StyleableSvgImage/index.js');
|
|
@@ -23,11 +23,11 @@ const CartModalItem = function CartModalItem2({
|
|
|
23
23
|
item,
|
|
24
24
|
translations
|
|
25
25
|
}) {
|
|
26
|
-
const inputRef =
|
|
27
|
-
const controlsDisableIncrease =
|
|
26
|
+
const inputRef = React.useRef(null);
|
|
27
|
+
const controlsDisableIncrease = React.useMemo(() => {
|
|
28
28
|
return item.controls?.quantityMax ? item.quantity >= item.controls.quantityMax : false;
|
|
29
29
|
}, [item.controls.quantityMax, item.quantity]);
|
|
30
|
-
const onQuantityInputChange =
|
|
30
|
+
const onQuantityInputChange = React.useCallback(e => {
|
|
31
31
|
const value = parseInt(e.target.value);
|
|
32
32
|
const newQuantity = Math.max(0, Math.min(!isNaN(value) ? value : item.quantity, item.controls?.quantityMax ?? Infinity));
|
|
33
33
|
item.controls?.onQuantityChange(newQuantity);
|