@ubnt/store.core 9.29.0-alpha.1 → 9.29.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +43 -0
- package/lib/_virtual/_virtual_multi-entry.js +14 -12
- package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
- package/lib/_virtual/_virtual_multi-entry.mjs +14 -12
- package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
- package/lib/apis/smartcat.d.ts +18 -3
- package/lib/apis/smartcat.js +6 -6
- package/lib/apis/smartcat.js.map +1 -1
- package/lib/apis/smartcat.mjs +6 -6
- package/lib/apis/smartcat.mjs.map +1 -1
- package/lib/assets/attention.svg +5 -5
- package/lib/assets/attention2.svg +5 -5
- package/lib/assets/ucgMax.jpg +0 -0
- package/lib/assets/ucgMax2.jpg +0 -0
- package/lib/assets/ucgUltra.jpg +0 -0
- package/lib/assets/ucgUltra2.jpg +0 -0
- package/lib/assets/udmPro.jpg +0 -0
- package/lib/assets/udmPro2.jpg +0 -0
- package/lib/assets/udmProMax.jpg +0 -0
- package/lib/assets/udmProMax2.jpg +0 -0
- package/lib/assets/udmProSpecial.jpg +0 -0
- package/lib/assets/udmProSpecial2.jpg +0 -0
- package/lib/assets/unasDrive.svg +3 -0
- package/lib/components/Accordion/Accordion.js +4 -4
- package/lib/components/Avatar/Avatar.js +2 -2
- package/lib/components/Button/Button.js +5 -5
- package/lib/components/Button/CartButton.js +2 -2
- package/lib/components/CardSection/Card/Card.js +6 -6
- package/lib/components/CardSection/CardSection.js +2 -2
- package/lib/components/CartIcon/CartIcon.js +2 -2
- package/lib/components/Checkbox/Checkbox.js +4 -4
- package/lib/components/CloserLookSection/CloserLookSection.js +11 -11
- package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.js +5 -5
- package/lib/components/Container/Container.js +2 -2
- package/lib/components/CustomImage/CustomImage.js +12 -12
- package/lib/components/Explore/Explore.js +5 -5
- package/lib/components/FeaturesSection_deprecated/Features/Features.js +2 -2
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +22 -22
- package/lib/components/Footer/Footer.js +2 -2
- package/lib/components/Footer/hooks/useFooterContent.js +5 -5
- package/lib/components/Gallery/Gallery.context.js +17 -17
- package/lib/components/Gallery/Gallery.js +9 -9
- package/lib/components/Gallery/GalleryControls/GalleryControls.js +4 -4
- package/lib/components/Gallery/GalleryItem/GalleryItem.js +8 -8
- package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.js +8 -8
- package/lib/components/GridGallery/GridGallery.js +8 -8
- package/lib/components/GridGallery/GridModal/GridModal.js +6 -6
- package/lib/components/Header/AccountFrame/AccountFrame.js +11 -11
- package/lib/components/Header/AccountFrame/Mobile/Mobile.js +4 -4
- package/lib/components/Header/AccountMenu/AccountMenu.js +19 -19
- package/lib/components/Header/CartModal/Empty/Empty.js +3 -3
- package/lib/components/Header/CartModalV2/CartModal.js +5 -5
- package/lib/components/Header/CartModalV2/Item/Item.js +4 -4
- package/lib/components/Header/Header.js +34 -34
- package/lib/components/Header/IsolatedHeader.js +7 -7
- package/lib/components/Header/LanguageFrame/LanguageFrame.js +6 -6
- package/lib/components/Header/Navigation/Carousel/Carousel.js +5 -5
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.js +12 -12
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +6 -6
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +6 -6
- package/lib/components/Header/Overlay/Overlay.js +3 -3
- package/lib/components/Header/ProHeader/ProHeader.js +53 -50
- package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.mjs +24 -21
- package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
- package/lib/components/Hero/Hero.js +5 -5
- package/lib/components/HeroVideo/HeroVideo.js +5 -5
- package/lib/components/ImageCarousel/ImageCarousel.js +29 -29
- package/lib/components/ImageSequence/ImageSequence.js +8 -8
- package/lib/components/LandingPage/Cards/Card/Card.js +4 -4
- package/lib/components/LandingPage/Cards/Cards.js +10 -10
- package/lib/components/LandingPage/LandingPage.js +2 -2
- package/lib/components/LandingPagePro/LandingPagePro.js +13 -13
- package/lib/components/LandingPageSearch/LandingPageSearch.js +2 -2
- package/lib/components/LandingPageSearch/Modal/Modal.js +9 -9
- package/lib/components/LandingPageSidebar/LandingPageSidebar.js +12 -12
- package/lib/components/LayoutRenderer/LayoutRenderer.js +8 -8
- package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.js +7 -7
- package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.js +18 -18
- package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.js +2 -2
- package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.js +3 -3
- package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.js +3 -3
- package/lib/components/MicrositeHeader/MicrositeHeader.js +4 -4
- package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.js +4 -4
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.js +9 -9
- package/lib/components/MicrositeHero/MicrositeHero.js +18 -18
- package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.js +4 -4
- package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.js +9 -9
- package/lib/components/MicrositeProductGrid/MicrositeProductGrid.js +8 -8
- package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlockWrap.js +2 -2
- package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.js +3 -3
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +12 -12
- package/lib/components/Microsites/MicrositePageContext.js +2 -2
- package/lib/components/Microsites/MicrositeProductPage.js +3 -3
- package/lib/components/Microsites/context/MicrositeProductPageContext.js +3 -3
- package/lib/components/MobileModal/MobileModal.js +4 -4
- package/lib/components/Modal/Modal.js +3 -3
- package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js +3 -3
- package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.js +2 -2
- package/lib/components/ModelCompareV3/ModelCompareV3.js +14 -14
- package/lib/components/ModelCompareV3/ModelCompareV3.types.d.ts +3 -2
- package/lib/components/ModelCompareV3/ProductGroupsGrid.js +3 -3
- package/lib/components/ModelCompareV3/ScrollGroup/ScrollGroup.js +5 -5
- package/lib/components/ModelCompareV3/ScrollGroup/context.js +3 -3
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupItem.js +8 -8
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupSetScroll.js +2 -2
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupTo.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js +7 -7
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridBody.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js +5 -5
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/context.js +3 -3
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/XgsPon/{uispFiberOltXgs.jpg.js → fiberOltXgs.jpg.js} +2 -2
- package/lib/components/ModelCompareV3/assets/XgsPon/fiberOltXgs.jpg.js.map +1 -0
- package/lib/components/ModelCompareV3/assets/XgsPon/fiberOltXgs.jpg.mjs +3 -0
- package/lib/components/ModelCompareV3/assets/XgsPon/fiberOltXgs.jpg.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/BaseStation.js +3 -2
- package/lib/components/ModelCompareV3/data/BaseStation.js.map +1 -1
- package/lib/components/ModelCompareV3/data/BaseStation.mjs +3 -2
- package/lib/components/ModelCompareV3/data/BaseStation.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/CloudGateways.js +15 -15
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +10 -10
- package/lib/components/ModelCompareV3/data/WaveMLO.js +3 -4
- package/lib/components/ModelCompareV3/data/WaveMLO.js.map +1 -1
- package/lib/components/ModelCompareV3/data/WaveMLO.mjs +3 -4
- package/lib/components/ModelCompareV3/data/WaveMLO.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/XgsPon.js +2 -2
- package/lib/components/ModelCompareV3/data/XgsPon.js.map +1 -1
- package/lib/components/ModelCompareV3/data/XgsPon.mjs +2 -2
- package/lib/components/ModelCompareV3/data/XgsPon.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/{uispFiberOltXgs.d.ts → fiberOltXgs.d.ts} +1 -1
- package/lib/components/ModelCompareV3/data/products/{uispFiberOltXgs.js → fiberOltXgs.js} +8 -8
- package/lib/components/ModelCompareV3/data/products/fiberOltXgs.js.map +1 -0
- package/lib/components/ModelCompareV3/data/products/{uispFiberOltXgs.mjs → fiberOltXgs.mjs} +8 -8
- package/lib/components/ModelCompareV3/data/products/fiberOltXgs.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/waveAp.js +3 -3
- package/lib/components/ModelCompareV3/data/products/waveAp.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveAp.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/waveAp.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveApGen2.js +2 -2
- package/lib/components/ModelCompareV3/data/products/waveApGen2.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveApGen2.mjs +2 -2
- package/lib/components/ModelCompareV3/data/products/waveApGen2.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveApMicro.js +5 -5
- package/lib/components/ModelCompareV3/data/products/waveApMicro.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveApMicro.mjs +5 -5
- package/lib/components/ModelCompareV3/data/products/waveApMicro.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveFiberOlt.js +2 -13
- package/lib/components/ModelCompareV3/data/products/waveFiberOlt.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveFiberOlt.mjs +2 -13
- package/lib/components/ModelCompareV3/data/products/waveFiberOlt.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveFiberOnu.js +3 -4
- package/lib/components/ModelCompareV3/data/products/waveFiberOnu.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveFiberOnu.mjs +3 -4
- package/lib/components/ModelCompareV3/data/products/waveFiberOnu.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveMLO5.js +4 -12
- package/lib/components/ModelCompareV3/data/products/waveMLO5.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveMLO5.mjs +4 -12
- package/lib/components/ModelCompareV3/data/products/waveMLO5.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveMLO6.js +5 -11
- package/lib/components/ModelCompareV3/data/products/waveMLO6.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveMLO6.mjs +5 -11
- package/lib/components/ModelCompareV3/data/products/waveMLO6.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/properties/index.d.ts +2 -1
- package/lib/components/ModelCompareV3/data/properties/index.js +4 -2
- package/lib/components/ModelCompareV3/data/properties/index.js.map +1 -1
- package/lib/components/ModelCompareV3/data/properties/index.mjs +2 -1
- package/lib/components/ModelCompareV3/data/properties/index.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/properties/{bandwidthPuncturing.d.ts → linkPuncturing.d.ts} +1 -1
- package/lib/components/ModelCompareV3/data/properties/{bandwidthPuncturing.js → linkPuncturing.js} +5 -5
- package/lib/components/ModelCompareV3/data/properties/linkPuncturing.js.map +1 -0
- package/lib/components/ModelCompareV3/data/properties/linkPuncturing.mjs +10 -0
- package/lib/components/ModelCompareV3/data/properties/linkPuncturing.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/properties/maxTotalThroughput.d.ts +2 -0
- package/lib/components/ModelCompareV3/data/properties/maxTotalThroughput.js +18 -0
- package/lib/components/ModelCompareV3/data/properties/maxTotalThroughput.js.map +1 -0
- package/lib/components/ModelCompareV3/data/properties/maxTotalThroughput.mjs +10 -0
- package/lib/components/ModelCompareV3/data/properties/maxTotalThroughput.mjs.map +1 -0
- package/lib/components/ModelCompareV3/translations/en.json.js +11 -11
- package/lib/components/ModelCompareV3/translations/en.json.mjs +11 -11
- package/lib/components/ModelCompareV3/translations/useModelCompareTranslation.d.ts +2 -2
- package/lib/components/Pagination/Pagination.js +3 -3
- package/lib/components/PriceRangeSlider/PriceRangeSlider.js +16 -16
- package/lib/components/ProductCard/ProductCard.js +8 -8
- package/lib/components/ProductCardPopup/ProductCardPopup.js +8 -8
- package/lib/components/ProductCompare/ProductCompare.js +7 -7
- package/lib/components/ProductDetails/ProductDetails.js +5 -5
- package/lib/components/ProductGrid/ProductGrid.js +10 -10
- package/lib/components/ProductKeyFeatures/ProductKeyFeatures.js +3 -3
- package/lib/components/ProductSectionTabs/ProductSectionTabs.js +2 -2
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.d.ts +2 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js +84 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs +76 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.d.ts +12 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +82 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +68 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.types.d.ts +17 -0
- package/lib/components/ProductTechSpecsV2/index.d.ts +1 -0
- package/lib/components/ProductTechSpecsV2/index.js +6 -0
- package/lib/components/ProductTechSpecsV2/index.js.map +1 -0
- package/lib/components/ProductTechSpecsV2/index.mjs +3 -0
- package/lib/components/ProductTechSpecsV2/index.mjs.map +1 -0
- package/lib/components/ProductWizard/Options/Options.js +3 -3
- package/lib/components/ProductWizard/ProductWizard.js +2 -2
- package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js +5 -5
- package/lib/components/ProgressCircle/ProgressCircle.js +4 -4
- package/lib/components/QuantityControls/QuantityControls.js +4 -4
- package/lib/components/RelatedProducts/RelatedProducts.js +5 -5
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js +36 -36
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +12 -12
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +6 -6
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CheckboxSection.js +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +4 -4
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/SliderSection.js +3 -3
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +8 -8
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +6 -6
- package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.js +9 -9
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.js +10 -10
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +15 -15
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.js +2 -2
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +6 -6
- package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.js +5 -5
- package/lib/components/ScrollWrapper/ScrollWrapper.js +17 -17
- package/lib/components/Search/Input/Input.js +4 -4
- package/lib/components/Search/Modal/Modal.js +3 -3
- package/lib/components/StorageSliders/Slider/Slider.js +3 -3
- package/lib/components/StorageSliders/StorageSliders.context.js +19 -19
- package/lib/components/StorageSliders/StorageSliders.js +4 -4
- package/lib/components/Tooltip/Tooltip.js +5 -5
- package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js +7 -7
- package/lib/components/VariantSelector/Variant/Variant.js +40 -40
- package/lib/components/VariantSelector/VariantSelector.js +16 -16
- package/lib/components/VideoPlayerNew/VideoPlayer.js +19 -19
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +2 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/index.mjs +2 -0
- package/lib/components/index.mjs.map +1 -1
- package/lib/constants/icons/menu/index.d.ts +1 -0
- package/lib/constants/icons/menu/index.js +9 -0
- package/lib/constants/icons/menu/index.js.map +1 -1
- package/lib/constants/icons/menu/index.mjs +2 -0
- package/lib/constants/icons/menu/index.mjs.map +1 -1
- package/lib/constants/icons/menu/unasDrive.svg.js +27 -0
- package/lib/constants/icons/menu/unasDrive.svg.js.map +1 -0
- package/lib/constants/icons/menu/unasDrive.svg.mjs +3 -0
- package/lib/constants/icons/menu/unasDrive.svg.mjs.map +1 -0
- package/lib/constants/proStoreCategories/mapping/filters.d.ts +15 -0
- package/lib/constants/proStoreCategories/mapping/filters.js +15 -0
- package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/filters.mjs +15 -0
- package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.d.ts +1 -1
- package/lib/constants/proStoreCategories/mapping/index.js +32 -34
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +32 -34
- package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/mapping.d.ts +4 -0
- package/lib/constants/proStoreCategories/mapping/redirects.js +9 -1
- package/lib/constants/proStoreCategories/mapping/redirects.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/redirects.mjs +9 -1
- package/lib/constants/proStoreCategories/mapping/redirects.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.d.ts +2 -4
- package/lib/constants/proStoreCategories/mapping/unifi.js +2 -4
- package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs +2 -4
- package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +1 -3
- package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs +2 -3
- package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +2 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +2 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/constants/proStoreFilters/mapping.d.ts +39 -3
- package/lib/constants/proStoreFilters/mapping.js +104 -6
- package/lib/constants/proStoreFilters/mapping.js.map +1 -1
- package/lib/constants/proStoreFilters/mapping.mjs +104 -6
- package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
- package/lib/contexts/MenuContext/context.js +32 -32
- package/lib/contexts/MenuContext/mapping.js +12 -0
- package/lib/contexts/MenuContext/mapping.js.map +1 -1
- package/lib/contexts/MenuContext/mapping.mjs +11 -0
- package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
- package/lib/contexts/MicrositeMenuContext/context.js +9 -9
- package/lib/helpers/proStoreCategories.js +2 -2
- package/lib/hooks/useHasTouch.js +3 -3
- package/lib/hooks/useHddRetentionCalculator.js +5 -5
- package/lib/hooks/useHorizontalScroll.js +2 -2
- package/lib/hooks/useLockBodyScrollCustom.js +3 -3
- package/lib/hooks/useScrollToY.js +2 -2
- package/lib/hooks/useTestMediaElementVolumeSetter.js +3 -3
- package/lib/hooks/useTranslation.js +6 -6
- package/lib/utils/address.js +1 -1
- package/lib/utils/address.js.map +1 -1
- package/lib/utils/address.mjs +1 -1
- package/lib/utils/address.mjs.map +1 -1
- package/package.json +1 -1
- package/lib/components/ModelCompareV3/assets/XgsPon/uispFiberOltXgs.jpg.js.map +0 -1
- package/lib/components/ModelCompareV3/assets/XgsPon/uispFiberOltXgs.jpg.mjs +0 -3
- package/lib/components/ModelCompareV3/assets/XgsPon/uispFiberOltXgs.jpg.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/products/uispFiberOltXgs.js.map +0 -1
- package/lib/components/ModelCompareV3/data/products/uispFiberOltXgs.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/properties/bandwidthPuncturing.js.map +0 -1
- package/lib/components/ModelCompareV3/data/properties/bandwidthPuncturing.mjs +0 -10
- package/lib/components/ModelCompareV3/data/properties/bandwidthPuncturing.mjs.map +0 -1
- /package/lib/assets/{uispFiberOltXgs.jpg → fiberOltXgs.jpg} +0 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var styled = require('styled-components');
|
|
4
|
+
function _interopDefault(e) {
|
|
5
|
+
return e && e.__esModule ? e : {
|
|
6
|
+
default: e
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
var styled__default = /*#__PURE__*/_interopDefault(styled);
|
|
10
|
+
"use strict";
|
|
11
|
+
const TABLE_LEFT_MARGIN = "0px";
|
|
12
|
+
const TREE_LEFT_MARGIN = "8px";
|
|
13
|
+
const Wrap = styled__default["default"].div``;
|
|
14
|
+
const Row = styled__default["default"].div`
|
|
15
|
+
display: grid;
|
|
16
|
+
grid-template-columns: 300px 1fr;
|
|
17
|
+
position: relative;
|
|
18
|
+
&:hover: {
|
|
19
|
+
background-color: #f9f9f9;
|
|
20
|
+
}
|
|
21
|
+
padding-left: ${TABLE_LEFT_MARGIN};
|
|
22
|
+
`;
|
|
23
|
+
const Heading = styled__default["default"].div`
|
|
24
|
+
font-size: 20px;
|
|
25
|
+
line-height: 24px;
|
|
26
|
+
font-weight: 700;
|
|
27
|
+
color: #212427;
|
|
28
|
+
margin-bottom: 16px;
|
|
29
|
+
grid-column: 1 / 3;
|
|
30
|
+
`;
|
|
31
|
+
const SectionDivider = styled__default["default"].div`
|
|
32
|
+
height: 1px;
|
|
33
|
+
background-color: #dbdce1;
|
|
34
|
+
margin: 16px 0;
|
|
35
|
+
grid-column: 1 / 3;
|
|
36
|
+
`;
|
|
37
|
+
const Cell = styled__default["default"].div`
|
|
38
|
+
padding: 8px 28px 8px 0;
|
|
39
|
+
font-size: 14px;
|
|
40
|
+
line-height: 20px;
|
|
41
|
+
color: #50565e;
|
|
42
|
+
|
|
43
|
+
${({
|
|
44
|
+
$type
|
|
45
|
+
}) => $type === "key" && "width: 300px"};
|
|
46
|
+
${({
|
|
47
|
+
$isChildCell,
|
|
48
|
+
$type
|
|
49
|
+
}) => $isChildCell && $type === "key" && `
|
|
50
|
+
margin-left: 24px;
|
|
51
|
+
`};
|
|
52
|
+
`;
|
|
53
|
+
const Tree = styled__default["default"].div`
|
|
54
|
+
${({
|
|
55
|
+
$isLast
|
|
56
|
+
}) => $isLast ? "height: 18px" : "height: 100%"};
|
|
57
|
+
position: absolute;
|
|
58
|
+
top: 0;
|
|
59
|
+
left: calc(${TABLE_LEFT_MARGIN} + ${TREE_LEFT_MARGIN});
|
|
60
|
+
width: 1px;
|
|
61
|
+
background-color: #c5c5c5;
|
|
62
|
+
display: flex;
|
|
63
|
+
justify-content: center;
|
|
64
|
+
align-items: center;
|
|
65
|
+
z-index: 1;
|
|
66
|
+
`;
|
|
67
|
+
const Branch = styled__default["default"].div`
|
|
68
|
+
position: absolute;
|
|
69
|
+
left: calc(${TABLE_LEFT_MARGIN} + ${TREE_LEFT_MARGIN});
|
|
70
|
+
top: 17px;
|
|
71
|
+
width: 11px;
|
|
72
|
+
height: 1px;
|
|
73
|
+
background-color: #c5c5c5;
|
|
74
|
+
`;
|
|
75
|
+
exports.Branch = Branch;
|
|
76
|
+
exports.Cell = Cell;
|
|
77
|
+
exports.Heading = Heading;
|
|
78
|
+
exports.Row = Row;
|
|
79
|
+
exports.SectionDivider = SectionDivider;
|
|
80
|
+
exports.Tree = Tree;
|
|
81
|
+
exports.Wrap = Wrap;
|
|
82
|
+
//# sourceMappingURL=ProductTechSpecs.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductTechSpecs.styles.js","sources":["../../../src/components/ProductTechSpecsV2/ProductTechSpecs.styles.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nconst TABLE_LEFT_MARGIN = \"0px\";\nconst TREE_LEFT_MARGIN = \"8px\";\n\nexport const Wrap = styled.div``;\n\nexport const Row = styled.div`\n display: grid;\n grid-template-columns: 300px 1fr;\n position: relative;\n &:hover: {\n background-color: #f9f9f9;\n }\n padding-left: ${TABLE_LEFT_MARGIN};\n`;\n\nexport const Heading = styled.div`\n font-size: 20px;\n line-height: 24px;\n font-weight: 700;\n color: #212427;\n margin-bottom: 16px;\n grid-column: 1 / 3;\n`;\n\nexport const SectionDivider = styled.div`\n height: 1px;\n background-color: #dbdce1;\n margin: 16px 0;\n grid-column: 1 / 3;\n`;\n\nexport const Cell = styled.div<{\n $type: \"key\" | \"value\";\n $isChildCell?: boolean;\n}>`\n padding: 8px 28px 8px 0;\n font-size: 14px;\n line-height: 20px;\n color: #50565e;\n\n ${({ $type }) => $type === \"key\" && \"width: 300px\"};\n ${({ $isChildCell, $type }) =>\n $isChildCell &&\n $type === \"key\" &&\n `\n margin-left: 24px;\n `};\n`;\n\nexport const Tree = styled.div<{\n $isLast: boolean;\n}>`\n ${({ $isLast }) => ($isLast ? \"height: 18px\" : \"height: 100%\")};\n position: absolute;\n top: 0;\n left: calc(${TABLE_LEFT_MARGIN} + ${TREE_LEFT_MARGIN});\n width: 1px;\n background-color: #c5c5c5;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 1;\n`;\n\nexport const Branch = styled.div`\n position: absolute;\n left: calc(${TABLE_LEFT_MARGIN} + ${TREE_LEFT_MARGIN});\n top: 17px;\n width: 11px;\n height: 1px;\n background-color: #c5c5c5;\n`;\n"],"names":["TABLE_LEFT_MARGIN","TREE_LEFT_MARGIN","Wrap","styled","div","Row","Heading","SectionDivider","Cell","$type","$isChildCell","Tree","$isLast","Branch"],"mappings":";;;;;;;;;;AAEA,MAAMA,iBAAoB,GAAA,KAAA;AAC1B,MAAMC,gBAAmB,GAAA,KAAA;AAElB,MAAMC,OAAOC,eAAAA,CAAAA,SAAAA,CAAO,CAAAC,GAAA,EAAA;AAEpB,MAAMC,MAAMF,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAORJ,iBAAiB;AAAA,CAAA;AAG5B,MAAMM,UAAUH,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AASvB,MAAMG,iBAAiBJ,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAO9B,MAAMI,OAAOL,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IASvB,CAAC;EAAEK;AAAA,CAAY,KAAAA,KAAA,KAAU,SAAS,cAAc;AAAA,IAChD,CAAC;EAAEC,YAAA;EAAcD;CACjB,KAAAC,YAAA,IACAD,UAAU,KACV,IAAA;AAAA;AAAA,GAED;AAAA,CAAA;AAGI,MAAME,OAAOR,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA,IAGvB,CAAC;EAAEQ;AAAA,CAAe,KAAAA,OAAA,GAAU,iBAAiB,cAAe;AAAA;AAAA;AAAA,eAGjDZ,uBAAuBC,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAS/C,MAAMY,SAASV,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA,eAEdJ,uBAAuBC,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;;;;;"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
"use strict";
|
|
3
|
+
const TABLE_LEFT_MARGIN = "0px";
|
|
4
|
+
const TREE_LEFT_MARGIN = "8px";
|
|
5
|
+
const Wrap = styled.div``;
|
|
6
|
+
const Row = styled.div`
|
|
7
|
+
display: grid;
|
|
8
|
+
grid-template-columns: 300px 1fr;
|
|
9
|
+
position: relative;
|
|
10
|
+
&:hover: {
|
|
11
|
+
background-color: #f9f9f9;
|
|
12
|
+
}
|
|
13
|
+
padding-left: ${TABLE_LEFT_MARGIN};
|
|
14
|
+
`;
|
|
15
|
+
const Heading = styled.div`
|
|
16
|
+
font-size: 20px;
|
|
17
|
+
line-height: 24px;
|
|
18
|
+
font-weight: 700;
|
|
19
|
+
color: #212427;
|
|
20
|
+
margin-bottom: 16px;
|
|
21
|
+
grid-column: 1 / 3;
|
|
22
|
+
`;
|
|
23
|
+
const SectionDivider = styled.div`
|
|
24
|
+
height: 1px;
|
|
25
|
+
background-color: #dbdce1;
|
|
26
|
+
margin: 16px 0;
|
|
27
|
+
grid-column: 1 / 3;
|
|
28
|
+
`;
|
|
29
|
+
const Cell = styled.div`
|
|
30
|
+
padding: 8px 28px 8px 0;
|
|
31
|
+
font-size: 14px;
|
|
32
|
+
line-height: 20px;
|
|
33
|
+
color: #50565e;
|
|
34
|
+
|
|
35
|
+
${({
|
|
36
|
+
$type
|
|
37
|
+
}) => $type === "key" && "width: 300px"};
|
|
38
|
+
${({
|
|
39
|
+
$isChildCell,
|
|
40
|
+
$type
|
|
41
|
+
}) => $isChildCell && $type === "key" && `
|
|
42
|
+
margin-left: 24px;
|
|
43
|
+
`};
|
|
44
|
+
`;
|
|
45
|
+
const Tree = styled.div`
|
|
46
|
+
${({
|
|
47
|
+
$isLast
|
|
48
|
+
}) => $isLast ? "height: 18px" : "height: 100%"};
|
|
49
|
+
position: absolute;
|
|
50
|
+
top: 0;
|
|
51
|
+
left: calc(${TABLE_LEFT_MARGIN} + ${TREE_LEFT_MARGIN});
|
|
52
|
+
width: 1px;
|
|
53
|
+
background-color: #c5c5c5;
|
|
54
|
+
display: flex;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
align-items: center;
|
|
57
|
+
z-index: 1;
|
|
58
|
+
`;
|
|
59
|
+
const Branch = styled.div`
|
|
60
|
+
position: absolute;
|
|
61
|
+
left: calc(${TABLE_LEFT_MARGIN} + ${TREE_LEFT_MARGIN});
|
|
62
|
+
top: 17px;
|
|
63
|
+
width: 11px;
|
|
64
|
+
height: 1px;
|
|
65
|
+
background-color: #c5c5c5;
|
|
66
|
+
`;
|
|
67
|
+
export { Branch, Cell, Heading, Row, SectionDivider, Tree, Wrap };
|
|
68
|
+
//# sourceMappingURL=ProductTechSpecs.styles.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductTechSpecs.styles.mjs","sources":["../../../src/components/ProductTechSpecsV2/ProductTechSpecs.styles.tsx"],"sourcesContent":["import styled from \"styled-components\";\n\nconst TABLE_LEFT_MARGIN = \"0px\";\nconst TREE_LEFT_MARGIN = \"8px\";\n\nexport const Wrap = styled.div``;\n\nexport const Row = styled.div`\n display: grid;\n grid-template-columns: 300px 1fr;\n position: relative;\n &:hover: {\n background-color: #f9f9f9;\n }\n padding-left: ${TABLE_LEFT_MARGIN};\n`;\n\nexport const Heading = styled.div`\n font-size: 20px;\n line-height: 24px;\n font-weight: 700;\n color: #212427;\n margin-bottom: 16px;\n grid-column: 1 / 3;\n`;\n\nexport const SectionDivider = styled.div`\n height: 1px;\n background-color: #dbdce1;\n margin: 16px 0;\n grid-column: 1 / 3;\n`;\n\nexport const Cell = styled.div<{\n $type: \"key\" | \"value\";\n $isChildCell?: boolean;\n}>`\n padding: 8px 28px 8px 0;\n font-size: 14px;\n line-height: 20px;\n color: #50565e;\n\n ${({ $type }) => $type === \"key\" && \"width: 300px\"};\n ${({ $isChildCell, $type }) =>\n $isChildCell &&\n $type === \"key\" &&\n `\n margin-left: 24px;\n `};\n`;\n\nexport const Tree = styled.div<{\n $isLast: boolean;\n}>`\n ${({ $isLast }) => ($isLast ? \"height: 18px\" : \"height: 100%\")};\n position: absolute;\n top: 0;\n left: calc(${TABLE_LEFT_MARGIN} + ${TREE_LEFT_MARGIN});\n width: 1px;\n background-color: #c5c5c5;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 1;\n`;\n\nexport const Branch = styled.div`\n position: absolute;\n left: calc(${TABLE_LEFT_MARGIN} + ${TREE_LEFT_MARGIN});\n top: 17px;\n width: 11px;\n height: 1px;\n background-color: #c5c5c5;\n`;\n"],"names":["TABLE_LEFT_MARGIN","TREE_LEFT_MARGIN","Wrap","styled","div","Row","Heading","SectionDivider","Cell","$type","$isChildCell","Tree","$isLast","Branch"],"mappings":";;AAEA,MAAMA,iBAAoB,GAAA,KAAA;AAC1B,MAAMC,gBAAmB,GAAA,KAAA;AAElB,MAAMC,OAAOC,MAAO,CAAAC,GAAA,EAAA;AAEpB,MAAMC,MAAMF,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAORJ,iBAAiB;AAAA,CAAA;AAG5B,MAAMM,UAAUH,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AASvB,MAAMG,iBAAiBJ,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAO9B,MAAMI,OAAOL,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IASvB,CAAC;EAAEK;AAAA,CAAY,KAAAA,KAAA,KAAU,SAAS,cAAc;AAAA,IAChD,CAAC;EAAEC,YAAA;EAAcD;CACjB,KAAAC,YAAA,IACAD,UAAU,KACV,IAAA;AAAA;AAAA,GAED;AAAA,CAAA;AAGI,MAAME,OAAOR,MAAO,CAAAC,GAAA;AAAA,IAGvB,CAAC;EAAEQ;AAAA,CAAe,KAAAA,OAAA,GAAU,iBAAiB,cAAe;AAAA;AAAA;AAAA,eAGjDZ,uBAAuBC,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAS/C,MAAMY,SAASV,MAAO,CAAAC,GAAA;AAAA;AAAA,eAEdJ,uBAAuBC,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type ProductTechSpecsProps = {
|
|
2
|
+
sections: Array<{
|
|
3
|
+
id: string;
|
|
4
|
+
section: {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
};
|
|
8
|
+
features: Array<{
|
|
9
|
+
value?: string;
|
|
10
|
+
feature: {
|
|
11
|
+
id: string;
|
|
12
|
+
label: string;
|
|
13
|
+
parentId: string | null;
|
|
14
|
+
};
|
|
15
|
+
}>;
|
|
16
|
+
}>;
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProductTechSpecs } from "./ProductTechSpecs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -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 optionIcons = require('../../../constants/optionIcons.js');
|
|
6
6
|
var asset = require('../../../utils/asset.js');
|
|
7
7
|
require('../../ButtonGroup/index.js');
|
|
@@ -15,7 +15,7 @@ const ProductWizardOptions = function ProductWizardOptions2({
|
|
|
15
15
|
onlyIcons,
|
|
16
16
|
className
|
|
17
17
|
}) {
|
|
18
|
-
const getOptionIcon =
|
|
18
|
+
const getOptionIcon = React.useCallback((optionSlug, optionValueSlug) => {
|
|
19
19
|
const option = optionSlug.toLowerCase();
|
|
20
20
|
const value = optionValueSlug.toLowerCase();
|
|
21
21
|
const icon = optionIcons.OPTION_ICONS[option]?.[value];
|
|
@@ -24,7 +24,7 @@ const ProductWizardOptions = function ProductWizardOptions2({
|
|
|
24
24
|
}
|
|
25
25
|
return asset.imageSrc(icon);
|
|
26
26
|
}, []);
|
|
27
|
-
const getItemsWithIcons =
|
|
27
|
+
const getItemsWithIcons = React.useCallback(option => option.values.map(({
|
|
28
28
|
id,
|
|
29
29
|
title,
|
|
30
30
|
slug,
|
|
@@ -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/wizard/index.js');
|
|
6
6
|
require('../NormalisedImage/index.js');
|
|
7
7
|
require('../ProductWizardFootnotes/index.js');
|
|
@@ -43,7 +43,7 @@ const ProductWizard = function ProductWizard2({
|
|
|
43
43
|
updateQuantity,
|
|
44
44
|
translations
|
|
45
45
|
}) {
|
|
46
|
-
const addToCartBtnText =
|
|
46
|
+
const addToCartBtnText = React.useMemo(() => {
|
|
47
47
|
if (isVariantSoldOut) {
|
|
48
48
|
return translations.addToCartButton.soldOut;
|
|
49
49
|
} else if (isVariantComingSoon) {
|
|
@@ -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/payment-apple-pay.svg.js');
|
|
6
6
|
require('../../assets/icons/payment-card.svg.js');
|
|
7
7
|
require('../../assets/icons/payment-google-pay.svg.js');
|
|
@@ -61,7 +61,7 @@ const ProductWizardFootnotes = ({
|
|
|
61
61
|
availablePaymentMethods,
|
|
62
62
|
renderImage
|
|
63
63
|
}) => {
|
|
64
|
-
const limitErrorNode =
|
|
64
|
+
const limitErrorNode = React.useMemo(() => {
|
|
65
65
|
if (limitsDisabled) {
|
|
66
66
|
return;
|
|
67
67
|
}
|
|
@@ -85,7 +85,7 @@ const ProductWizardFootnotes = ({
|
|
|
85
85
|
}
|
|
86
86
|
return void 0;
|
|
87
87
|
}, [limitsDisabled, requiresLogin, maxRelevantLimitAddToCartQuantity, showLimitError, translations.errors.limitedToBuy, translations.errors.limitReached, translations.errors.limitErrorPer]);
|
|
88
|
-
const getCardIcons =
|
|
88
|
+
const getCardIcons = React.useCallback(() => {
|
|
89
89
|
const hasPaymentMethods = availablePaymentMethods && Object.keys(availablePaymentMethods).filter(item => {
|
|
90
90
|
return !!availablePaymentMethods[item];
|
|
91
91
|
}).length > 0;
|
|
@@ -106,7 +106,7 @@ const ProductWizardFootnotes = ({
|
|
|
106
106
|
})
|
|
107
107
|
});
|
|
108
108
|
}, [availablePaymentMethods, renderImage]);
|
|
109
|
-
const footnotes =
|
|
109
|
+
const footnotes = React.useMemo(() => /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
110
110
|
children: [getCardIcons(), translations?.footnotes?.shipping?.loading ? /* @__PURE__ */jsxRuntime.jsx(ProductWizardFootnotes_styles.SkeletonFootnote, {
|
|
111
111
|
maxWidth: 120
|
|
112
112
|
}) : translations?.footnotes?.shipping?.value && /* @__PURE__ */jsxRuntime.jsxs(ProductWizardFootnotes_styles.IconTextWrap, {
|
|
@@ -131,7 +131,7 @@ const ProductWizardFootnotes = ({
|
|
|
131
131
|
})]
|
|
132
132
|
})]
|
|
133
133
|
}), [getCardIcons, translations.footnotes.shipping?.loading, translations.footnotes.shipping.value, translations.footnotes.warranty]);
|
|
134
|
-
const hasFootnotes =
|
|
134
|
+
const hasFootnotes = React.useMemo(() => !!footnotes.props.children.filter(child => !!child).length, [footnotes.props.children]);
|
|
135
135
|
if (!hasFootnotes && !enableLimitAndBackInStock && !limitErrorNode) {
|
|
136
136
|
return null;
|
|
137
137
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
var theme = require('../../constants/theme.js');
|
|
6
6
|
"use strict";
|
|
7
7
|
const ProgressCircle = ({
|
|
@@ -13,9 +13,9 @@ const ProgressCircle = ({
|
|
|
13
13
|
backgroundColor = theme.theme.colors.white,
|
|
14
14
|
className
|
|
15
15
|
}) => {
|
|
16
|
-
const radius =
|
|
17
|
-
const circumference =
|
|
18
|
-
const strokeDashoffset =
|
|
16
|
+
const radius = React.useMemo(() => (diameter - strokeWidth) / 2, [diameter, strokeWidth]);
|
|
17
|
+
const circumference = React.useMemo(() => radius * 2 * Math.PI, [radius]);
|
|
18
|
+
const strokeDashoffset = React.useMemo(() => circumference - (value ? value / 100 : 0) * circumference, [circumference, value]);
|
|
19
19
|
return /* @__PURE__ */jsxRuntime.jsxs("svg", {
|
|
20
20
|
className,
|
|
21
21
|
width: diameter,
|
|
@@ -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('../Button/index.js');
|
|
6
6
|
var QuantityControls_styles = require('./QuantityControls.styles.js');
|
|
7
7
|
var CartButton = require('../Button/CartButton.js');
|
|
@@ -16,15 +16,15 @@ const QuantityControls = function QuantityControls2({
|
|
|
16
16
|
cartButton,
|
|
17
17
|
allowZero
|
|
18
18
|
}) {
|
|
19
|
-
const handleOnUpdateQuantity =
|
|
19
|
+
const handleOnUpdateQuantity = React.useCallback(e => {
|
|
20
20
|
const value = Math.max(0, parseInt(e.target.value) || 0);
|
|
21
21
|
onUpdateQuantity(value);
|
|
22
22
|
}, [onUpdateQuantity]);
|
|
23
|
-
const handleOnAddToCart =
|
|
23
|
+
const handleOnAddToCart = React.useCallback(() => {
|
|
24
24
|
if (!allowZero && quantity < 1) return;
|
|
25
25
|
onAddToCart();
|
|
26
26
|
}, [allowZero, onAddToCart, quantity]);
|
|
27
|
-
const cartButtonDisabled =
|
|
27
|
+
const cartButtonDisabled = React.useMemo(() => {
|
|
28
28
|
return disabled || !allowZero && quantity < 1 || cartButton?.disabled;
|
|
29
29
|
}, [allowZero, cartButton?.disabled, disabled, quantity]);
|
|
30
30
|
return /* @__PURE__ */jsxRuntime.jsxs(QuantityControls_styles.Wrap, {
|
|
@@ -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/addToCart.svg.js');
|
|
6
6
|
require('../../utils/money/index.js');
|
|
7
7
|
require('../ProductCardPopup/index.js');
|
|
@@ -30,10 +30,10 @@ const RelatedProducts = ({
|
|
|
30
30
|
renderImage,
|
|
31
31
|
translations
|
|
32
32
|
}) => {
|
|
33
|
-
const isLoading =
|
|
34
|
-
const [popupProduct, setPopupProduct] =
|
|
35
|
-
const isPopupOpen =
|
|
36
|
-
|
|
33
|
+
const isLoading = React.useMemo(() => categories === null, [categories]);
|
|
34
|
+
const [popupProduct, setPopupProduct] = React.useState(activePopupProduct);
|
|
35
|
+
const isPopupOpen = React.useMemo(() => !!activePopupProduct, [activePopupProduct]);
|
|
36
|
+
React.useEffect(() => {
|
|
37
37
|
if (activePopupProduct !== void 0) {
|
|
38
38
|
setPopupProduct(activePopupProduct);
|
|
39
39
|
}
|
package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
var useHddRetentionCalculator = require('../../../hooks/useHddRetentionCalculator.js');
|
|
6
6
|
require('../assets/icons/access.png.js');
|
|
7
7
|
require('../assets/icons/network.png.js');
|
|
@@ -58,12 +58,12 @@ const ComputeResourceCalculator = ({
|
|
|
58
58
|
const {
|
|
59
59
|
formatMessage
|
|
60
60
|
} = useResourceCalculatorTranslation.useResourceCalculatorTranslation();
|
|
61
|
-
const defaultActiveDevice =
|
|
61
|
+
const defaultActiveDevice = React.useMemo(() => {
|
|
62
62
|
const foundDevice = ComputeResourceCalculator_constants.DEVICES.find(item => item.id === defaultActiveDeviceId);
|
|
63
63
|
return foundDevice || ComputeResourceCalculator_constants.DEVICES[0];
|
|
64
64
|
}, [defaultActiveDeviceId]);
|
|
65
|
-
const [device, setDevice] =
|
|
66
|
-
const supportedFeatures =
|
|
65
|
+
const [device, setDevice] = React.useState(defaultActiveDevice);
|
|
66
|
+
const supportedFeatures = React.useMemo(() => {
|
|
67
67
|
return {
|
|
68
68
|
[ComputeResourceCalculator_types.FeatureId.Network]: !!device.loadData?.Network,
|
|
69
69
|
[ComputeResourceCalculator_types.FeatureId.Protect]: !!device.loadData?.Protect,
|
|
@@ -71,7 +71,7 @@ const ComputeResourceCalculator = ({
|
|
|
71
71
|
[ComputeResourceCalculator_types.FeatureId.Access]: !!device.loadData?.Access
|
|
72
72
|
};
|
|
73
73
|
}, [device]);
|
|
74
|
-
const forcedFeatures =
|
|
74
|
+
const forcedFeatures = React.useMemo(() => {
|
|
75
75
|
return {
|
|
76
76
|
[ComputeResourceCalculator_types.FeatureId.Network]: !!device.settings?.forcedFeatures?.includes(ComputeResourceCalculator_types.FeatureId.Network),
|
|
77
77
|
[ComputeResourceCalculator_types.FeatureId.Protect]: !!device.settings?.forcedFeatures?.includes(ComputeResourceCalculator_types.FeatureId.Protect),
|
|
@@ -79,22 +79,22 @@ const ComputeResourceCalculator = ({
|
|
|
79
79
|
[ComputeResourceCalculator_types.FeatureId.Access]: !!device.settings?.forcedFeatures?.includes(ComputeResourceCalculator_types.FeatureId.Access)
|
|
80
80
|
};
|
|
81
81
|
}, [device]);
|
|
82
|
-
const [enabledFeatures, setEnabledFeatures] =
|
|
83
|
-
const handleToggleFeature =
|
|
82
|
+
const [enabledFeatures, setEnabledFeatures] = React.useState(getDefaultActiveFeatures(device));
|
|
83
|
+
const handleToggleFeature = React.useCallback(key => enabled => {
|
|
84
84
|
setEnabledFeatures({
|
|
85
85
|
...enabledFeatures,
|
|
86
86
|
[key]: enabled
|
|
87
87
|
});
|
|
88
88
|
}, [enabledFeatures, setEnabledFeatures]);
|
|
89
|
-
const enabledFeaturesCount =
|
|
90
|
-
const maxEnabledFeaturesReached =
|
|
89
|
+
const enabledFeaturesCount = React.useMemo(() => Object.values(enabledFeatures).filter(item => item).length, [enabledFeatures]);
|
|
90
|
+
const maxEnabledFeaturesReached = React.useMemo(() => {
|
|
91
91
|
const maxFeatures = device.settings?.maxFeatures;
|
|
92
92
|
if (!maxFeatures) {
|
|
93
93
|
return false;
|
|
94
94
|
}
|
|
95
95
|
return maxFeatures === enabledFeaturesCount;
|
|
96
96
|
}, [device.settings?.maxFeatures, enabledFeaturesCount]);
|
|
97
|
-
const maxFeaturesReachedNote =
|
|
97
|
+
const maxFeaturesReachedNote = React.useMemo(() => {
|
|
98
98
|
const maxFeatures = device.settings?.maxFeatures;
|
|
99
99
|
if (!maxFeatures) {
|
|
100
100
|
return "";
|
|
@@ -103,15 +103,15 @@ const ComputeResourceCalculator = ({
|
|
|
103
103
|
maxFeatures
|
|
104
104
|
});
|
|
105
105
|
}, [device.settings?.maxFeatures, formatMessage]);
|
|
106
|
-
const defaultNetworkInputState =
|
|
106
|
+
const defaultNetworkInputState = React.useMemo(() => ({
|
|
107
107
|
accessPoints: 0,
|
|
108
108
|
vpn: false,
|
|
109
109
|
detections: false,
|
|
110
110
|
adBlocking: false,
|
|
111
111
|
qos: false
|
|
112
112
|
}), []);
|
|
113
|
-
const [networkInputState, setNetworkInputState] =
|
|
114
|
-
const networkCard =
|
|
113
|
+
const [networkInputState, setNetworkInputState] = React.useState(defaultNetworkInputState);
|
|
114
|
+
const networkCard = React.useMemo(() => {
|
|
115
115
|
const isEnabled = enabledFeatures[ComputeResourceCalculator_types.FeatureId.Network];
|
|
116
116
|
return /* @__PURE__ */jsxRuntime.jsx(InputCard.InputCard, {
|
|
117
117
|
id: "computeResourceCalculator__inputCard__network",
|
|
@@ -186,14 +186,14 @@ const ComputeResourceCalculator = ({
|
|
|
186
186
|
}]
|
|
187
187
|
});
|
|
188
188
|
}, [networkInputState, setNetworkInputState, handleToggleFeature, enabledFeatures, supportedFeatures, maxEnabledFeaturesReached, maxFeaturesReachedNote, forcedFeatures, device.loadData.Network?.accessPoint.max, formatMessage]);
|
|
189
|
-
const defaultProtectInputState =
|
|
189
|
+
const defaultProtectInputState = React.useMemo(() => ({
|
|
190
190
|
cameraHd: 0,
|
|
191
191
|
camera2k: 0,
|
|
192
192
|
camera4k: 0,
|
|
193
193
|
daysOfStorage: 0
|
|
194
194
|
}), []);
|
|
195
|
-
const [protectInputState, setProtectInputState] =
|
|
196
|
-
const maxCameras =
|
|
195
|
+
const [protectInputState, setProtectInputState] = React.useState(defaultProtectInputState);
|
|
196
|
+
const maxCameras = React.useMemo(() => {
|
|
197
197
|
if (!device.loadData.Protect) {
|
|
198
198
|
return {
|
|
199
199
|
cameraHd: 0,
|
|
@@ -213,20 +213,20 @@ const ComputeResourceCalculator = ({
|
|
|
213
213
|
camera4k: device.loadData.Protect.camera4k.max
|
|
214
214
|
};
|
|
215
215
|
}, [device, enabledFeaturesCount]);
|
|
216
|
-
const maxHdds =
|
|
216
|
+
const maxHdds = React.useMemo(() => {
|
|
217
217
|
return device.settings?.hdd?.max || 0;
|
|
218
218
|
}, [device]);
|
|
219
|
-
const hddGigabyteOptions =
|
|
219
|
+
const hddGigabyteOptions = React.useMemo(() => {
|
|
220
220
|
const defaultGigabytes = [1e3, 8e3, 16e3];
|
|
221
221
|
return device.settings?.hdd?.gigabyteOptions || defaultGigabytes;
|
|
222
222
|
}, [device.settings?.hdd?.gigabyteOptions]);
|
|
223
|
-
const getDefaultHddGigabyteOption =
|
|
223
|
+
const getDefaultHddGigabyteOption = React.useCallback(options => {
|
|
224
224
|
if (!options || options.includes(DEFAULT_HDD_GB_OPTION)) {
|
|
225
225
|
return DEFAULT_HDD_GB_OPTION;
|
|
226
226
|
}
|
|
227
227
|
return options[0];
|
|
228
228
|
}, []);
|
|
229
|
-
const getHddSizeLabel =
|
|
229
|
+
const getHddSizeLabel = React.useCallback(gigaBytes => {
|
|
230
230
|
if (gigaBytes === 0) {
|
|
231
231
|
return formatMessage("protect.noStorage");
|
|
232
232
|
}
|
|
@@ -235,17 +235,17 @@ const ComputeResourceCalculator = ({
|
|
|
235
235
|
}
|
|
236
236
|
return `${gigaBytes / 1e3}TB`;
|
|
237
237
|
}, [formatMessage]);
|
|
238
|
-
const [hddGigabytes, setHddGigabytes] =
|
|
239
|
-
const totalCameras =
|
|
238
|
+
const [hddGigabytes, setHddGigabytes] = React.useState(getDefaultHddGigabyteOption(device.settings?.hdd?.gigabyteOptions));
|
|
239
|
+
const totalCameras = React.useMemo(() => {
|
|
240
240
|
return protectInputState["cameraHd"] + protectInputState["camera2k"] + protectInputState["camera4k"];
|
|
241
241
|
}, [protectInputState]);
|
|
242
|
-
const parityDisks =
|
|
242
|
+
const parityDisks = React.useMemo(() => {
|
|
243
243
|
return device.settings?.hdd?.parityDisks || 0;
|
|
244
244
|
}, [device.settings?.hdd?.parityDisks]);
|
|
245
|
-
const hideHddSizeOptions =
|
|
245
|
+
const hideHddSizeOptions = React.useMemo(() => {
|
|
246
246
|
return maxHdds === 0;
|
|
247
247
|
}, [maxHdds]);
|
|
248
|
-
const hideRetentionCalculation =
|
|
248
|
+
const hideRetentionCalculation = React.useMemo(() => {
|
|
249
249
|
return hideHddSizeOptions || hddGigabytes === 0;
|
|
250
250
|
}, [hideHddSizeOptions, hddGigabytes]);
|
|
251
251
|
const {
|
|
@@ -264,7 +264,7 @@ const ComputeResourceCalculator = ({
|
|
|
264
264
|
hddTerabytes: hddGigabytes / 1e3,
|
|
265
265
|
format: RETENTION_TIME_FORMAT
|
|
266
266
|
});
|
|
267
|
-
const hddSlots =
|
|
267
|
+
const hddSlots = React.useMemo(() => {
|
|
268
268
|
const handleHddSlotClick = daysOfStorage => {
|
|
269
269
|
setProtectInputState({
|
|
270
270
|
...protectInputState,
|
|
@@ -287,7 +287,7 @@ const ComputeResourceCalculator = ({
|
|
|
287
287
|
})
|
|
288
288
|
});
|
|
289
289
|
}, [protectInputState, totalCameras, maxHdds, getRequiredHddsByRetention, retentionHddItems, parityDisks, minRetentionStorage, formatMessage, hddGigabytes, getHddSizeLabel]);
|
|
290
|
-
const handleUpdateCameraInputChange =
|
|
290
|
+
const handleUpdateCameraInputChange = React.useCallback((cameraType, newValue) => {
|
|
291
291
|
if (Object.values(maxCameras).some(max => max === 0)) {
|
|
292
292
|
return;
|
|
293
293
|
}
|
|
@@ -328,7 +328,7 @@ const ComputeResourceCalculator = ({
|
|
|
328
328
|
...evaluatedCameras
|
|
329
329
|
});
|
|
330
330
|
}, [protectInputState, maxCameras]);
|
|
331
|
-
const protectCard =
|
|
331
|
+
const protectCard = React.useMemo(() => {
|
|
332
332
|
const isActive = enabledFeatures[ComputeResourceCalculator_types.FeatureId.Protect];
|
|
333
333
|
const deviceSpecificNote = {
|
|
334
334
|
[ComputeResourceCalculator_types.DeviceId.CkG2Plus]: formatMessage("protect.CkG2PlusNote"),
|
|
@@ -416,12 +416,12 @@ const ComputeResourceCalculator = ({
|
|
|
416
416
|
}]
|
|
417
417
|
});
|
|
418
418
|
}, [protectInputState, setProtectInputState, enabledFeatures, handleToggleFeature, supportedFeatures, hideRetentionCalculation, hddSlots, getHddSizeLabel, hddGigabyteOptions, hideHddSizeOptions, maxCameras, maxEnabledFeaturesReached, maxFeaturesReachedNote, forcedFeatures, totalCameras, handleUpdateCameraInputChange, maxHdds, device.id, maxRetention, hddGigabytes, formatMessage]);
|
|
419
|
-
const defaultTalkInputState =
|
|
419
|
+
const defaultTalkInputState = React.useMemo(() => ({
|
|
420
420
|
phones: 0,
|
|
421
421
|
record: false
|
|
422
422
|
}), []);
|
|
423
|
-
const [talkInputState, setTalkInputState] =
|
|
424
|
-
const talkCard =
|
|
423
|
+
const [talkInputState, setTalkInputState] = React.useState(defaultTalkInputState);
|
|
424
|
+
const talkCard = React.useMemo(() => {
|
|
425
425
|
const isActive = enabledFeatures[ComputeResourceCalculator_types.FeatureId.Talk];
|
|
426
426
|
return /* @__PURE__ */jsxRuntime.jsx(InputCard.InputCard, {
|
|
427
427
|
id: "computeResourceCalculator__inputCard__talk",
|
|
@@ -460,11 +460,11 @@ const ComputeResourceCalculator = ({
|
|
|
460
460
|
}]
|
|
461
461
|
});
|
|
462
462
|
}, [talkInputState, setTalkInputState, enabledFeatures, handleToggleFeature, supportedFeatures, maxEnabledFeaturesReached, maxFeaturesReachedNote, forcedFeatures, device.loadData.Talk?.phone.max, formatMessage]);
|
|
463
|
-
const defaultAccessInputState =
|
|
463
|
+
const defaultAccessInputState = React.useMemo(() => ({
|
|
464
464
|
doors: 0
|
|
465
465
|
}), []);
|
|
466
|
-
const [accessInputState, setAccessInputState] =
|
|
467
|
-
const accessCard =
|
|
466
|
+
const [accessInputState, setAccessInputState] = React.useState(defaultAccessInputState);
|
|
467
|
+
const accessCard = React.useMemo(() => {
|
|
468
468
|
const isActive = enabledFeatures[ComputeResourceCalculator_types.FeatureId.Access];
|
|
469
469
|
return /* @__PURE__ */jsxRuntime.jsx(InputCard.InputCard, {
|
|
470
470
|
id: "computeResourceCalculator__inputCard__access",
|
|
@@ -492,11 +492,11 @@ const ComputeResourceCalculator = ({
|
|
|
492
492
|
}]
|
|
493
493
|
});
|
|
494
494
|
}, [accessInputState, setAccessInputState, enabledFeatures, handleToggleFeature, supportedFeatures, maxEnabledFeaturesReached, maxFeaturesReachedNote, forcedFeatures, device.loadData.Access?.door.max, formatMessage]);
|
|
495
|
-
const resetInputState =
|
|
495
|
+
const resetInputState = React.useCallback(deviceItem => {
|
|
496
496
|
setEnabledFeatures(getDefaultActiveFeatures(deviceItem));
|
|
497
497
|
setHddGigabytes(getDefaultHddGigabyteOption(deviceItem.settings?.hdd?.gigabyteOptions));
|
|
498
498
|
}, [getDefaultHddGigabyteOption]);
|
|
499
|
-
const selectDevice =
|
|
499
|
+
const selectDevice = React.useCallback(deviceItem => {
|
|
500
500
|
resetInputState(deviceItem);
|
|
501
501
|
setDevice(deviceItem);
|
|
502
502
|
}, [resetInputState]);
|