@ubnt/store.core 9.29.0-alpha.2 → 9.29.0-alpha.21
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 +85 -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 +30 -5
- package/lib/apis/smartcat.js +23 -35
- package/lib/apis/smartcat.js.map +1 -1
- package/lib/apis/smartcat.mjs +23 -35
- package/lib/apis/smartcat.mjs.map +1 -1
- package/lib/assets/enterpriseCampus24.jpg +0 -0
- package/lib/assets/enterpriseCampus48.jpg +0 -0
- package/lib/assets/enterpriseCampusAggregation.jpg +0 -0
- package/lib/assets/minus4.svg +8 -8
- package/lib/assets/minus5.svg +8 -8
- package/lib/assets/plus5.svg +9 -9
- package/lib/assets/plus6.svg +9 -9
- package/lib/assets/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/Explore/ExploreData.js +2 -2
- package/lib/components/Explore/ExploreData.js.map +1 -1
- package/lib/components/Explore/ExploreData.mjs +2 -2
- package/lib/components/Explore/ExploreData.mjs.map +1 -1
- 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 +35 -35
- package/lib/components/Header/translations/ar.json.js +3 -1
- package/lib/components/Header/translations/ar.json.js.map +1 -1
- package/lib/components/Header/translations/ar.json.mjs +3 -2
- package/lib/components/Header/translations/ar.json.mjs.map +1 -1
- package/lib/components/Header/translations/de.json.js +3 -1
- package/lib/components/Header/translations/de.json.js.map +1 -1
- package/lib/components/Header/translations/de.json.mjs +3 -2
- package/lib/components/Header/translations/de.json.mjs.map +1 -1
- package/lib/components/Header/translations/el.json.js +3 -1
- package/lib/components/Header/translations/el.json.js.map +1 -1
- package/lib/components/Header/translations/el.json.mjs +3 -2
- package/lib/components/Header/translations/el.json.mjs.map +1 -1
- package/lib/components/Header/translations/en.json.js +3 -1
- package/lib/components/Header/translations/en.json.js.map +1 -1
- package/lib/components/Header/translations/en.json.mjs +3 -2
- package/lib/components/Header/translations/en.json.mjs.map +1 -1
- package/lib/components/Header/translations/es.json.js +3 -1
- package/lib/components/Header/translations/es.json.js.map +1 -1
- package/lib/components/Header/translations/es.json.mjs +3 -2
- package/lib/components/Header/translations/es.json.mjs.map +1 -1
- package/lib/components/Header/translations/fr.json.js +3 -1
- package/lib/components/Header/translations/fr.json.js.map +1 -1
- package/lib/components/Header/translations/fr.json.mjs +3 -2
- package/lib/components/Header/translations/fr.json.mjs.map +1 -1
- package/lib/components/Header/translations/it.json.js +3 -1
- package/lib/components/Header/translations/it.json.js.map +1 -1
- package/lib/components/Header/translations/it.json.mjs +3 -2
- package/lib/components/Header/translations/it.json.mjs.map +1 -1
- package/lib/components/Header/translations/ja.json.js +3 -1
- package/lib/components/Header/translations/ja.json.js.map +1 -1
- package/lib/components/Header/translations/ja.json.mjs +3 -2
- package/lib/components/Header/translations/ja.json.mjs.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.js +3 -1
- package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.mjs +3 -2
- package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.js +3 -1
- package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.mjs +3 -2
- package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.js +3 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.mjs +3 -2
- package/lib/components/Header/translations/zh-Hant-TW.json.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 +13 -11
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.js.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.mjs +4 -2
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.mjs.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.d.ts +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.js +4 -1
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.js.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.mjs +4 -1
- package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.mjs.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.d.ts +2 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.js +2 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.js.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.mjs +2 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.mjs.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.d.ts +2 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.js +3 -2
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.js.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.mjs +3 -2
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.mjs.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.d.ts +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.js +4 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.js.map +1 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.mjs +4 -1
- package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.mjs.map +1 -1
- package/lib/components/MicrositeHero/MicrositeHero.js +19 -19
- package/lib/components/MicrositeHero/MicrositeHero.js.map +1 -1
- package/lib/components/MicrositeHero/MicrositeHero.mjs +1 -1
- package/lib/components/MicrositeHero/MicrositeHero.mjs.map +1 -1
- 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 +9 -3
- 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/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/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/Switching/{enterprise24PoE.jpg.js → enterpriseCampus24.jpg.js} +2 -2
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus24.jpg.js.map +1 -0
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus24.jpg.mjs +3 -0
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus24.jpg.mjs.map +1 -0
- package/lib/components/ModelCompareV3/assets/Switching/{enterprise48PoE.jpg.js → enterpriseCampus48.jpg.js} +2 -2
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus48.jpg.js.map +1 -0
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus48.jpg.mjs +3 -0
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus48.jpg.mjs.map +1 -0
- package/lib/components/ModelCompareV3/assets/{XgsPon/uispFiberOltXgs.jpg.js → Switching/enterpriseCampusAggregation.jpg.js} +2 -2
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampusAggregation.jpg.js.map +1 -0
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampusAggregation.jpg.mjs +3 -0
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampusAggregation.jpg.mjs.map +1 -0
- package/lib/components/ModelCompareV3/assets/{Switching/enterpriseXG24.jpg.js → XgsPon/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/AggregationSwitching.d.ts +2 -0
- package/lib/components/ModelCompareV3/data/AggregationSwitching.js +24 -0
- package/lib/components/ModelCompareV3/data/AggregationSwitching.js.map +1 -0
- package/lib/components/ModelCompareV3/data/AggregationSwitching.mjs +22 -0
- package/lib/components/ModelCompareV3/data/AggregationSwitching.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 +9 -9
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +6 -6
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js +20 -7
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js.map +1 -1
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs +20 -7
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/Ptz.d.ts +2 -0
- package/lib/components/ModelCompareV3/data/Ptz.js +13 -0
- package/lib/components/ModelCompareV3/data/Ptz.js.map +1 -0
- package/lib/components/ModelCompareV3/data/Ptz.mjs +11 -0
- package/lib/components/ModelCompareV3/data/Ptz.mjs.map +1 -0
- 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/index.d.ts +49 -47
- package/lib/components/ModelCompareV3/data/index.js +100 -94
- package/lib/components/ModelCompareV3/data/index.js.map +1 -1
- package/lib/components/ModelCompareV3/data/index.mjs +100 -94
- package/lib/components/ModelCompareV3/data/index.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.js +8 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.mjs +8 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/connectDisplay.js +1 -1
- package/lib/components/ModelCompareV3/data/products/connectDisplay.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/connectDisplay.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/connectDisplay.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterprise8PoE.js +1 -1
- package/lib/components/ModelCompareV3/data/products/enterprise8PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterprise8PoE.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/enterprise8PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseAccessHub.js +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseAccessHub.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseAccessHub.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseAccessHub.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.d.ts +2 -0
- package/lib/components/ModelCompareV3/data/products/{enterpriseXG24.js → enterpriseAggregation.js} +26 -44
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js.map +1 -0
- package/lib/components/ModelCompareV3/data/products/{enterpriseXG24.mjs → enterpriseAggregation.mjs} +26 -44
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24.d.ts +6 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.d.ts +2 -0
- package/lib/components/ModelCompareV3/data/products/{enterprise24PoE.js → enterpriseCampus24PoE.js} +30 -47
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js.map +1 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs +85 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48.d.ts +6 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.d.ts +2 -0
- package/lib/components/ModelCompareV3/data/products/{enterprise48PoE.js → enterpriseCampus48PoE.js} +31 -48
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js.map +1 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs +85 -0
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/products/evStationLite.js +3 -1
- package/lib/components/ModelCompareV3/data/products/evStationLite.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/evStationLite.mjs +3 -1
- package/lib/components/ModelCompareV3/data/products/evStationLite.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/evStationPro.js +3 -1
- package/lib/components/ModelCompareV3/data/products/evStationPro.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/evStationPro.mjs +3 -1
- package/lib/components/ModelCompareV3/data/products/evStationPro.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/highCapacityAggregation.js +8 -1
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs +8 -1
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/industrial.js +1 -1
- package/lib/components/ModelCompareV3/data/products/industrial.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/industrial.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/industrial.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/lite16PoE.js +1 -1
- package/lib/components/ModelCompareV3/data/products/lite16PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/lite16PoE.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/lite16PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/lite8PoE.js +1 -1
- package/lib/components/ModelCompareV3/data/products/lite8PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/lite8PoE.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/lite8PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/missionCritical.js +8 -1
- package/lib/components/ModelCompareV3/data/products/missionCritical.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/missionCritical.mjs +8 -1
- package/lib/components/ModelCompareV3/data/products/missionCritical.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/phoneTouch.js +1 -1
- package/lib/components/ModelCompareV3/data/products/phoneTouch.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/phoneTouch.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/phoneTouch.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/phoneTouchMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/phoneTouchMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/phoneTouchMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/phoneTouchMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professional24.js +1 -1
- package/lib/components/ModelCompareV3/data/products/professional24.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professional24.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/professional24.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professional24PoE.js +1 -1
- package/lib/components/ModelCompareV3/data/products/professional24PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professional24PoE.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/professional24PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professional48.js +1 -1
- package/lib/components/ModelCompareV3/data/products/professional48.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professional48.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/professional48.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professional48PoE.js +1 -1
- package/lib/components/ModelCompareV3/data/products/professional48PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professional48PoE.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/professional48PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professional8PoE.js +1 -1
- package/lib/components/ModelCompareV3/data/products/professional8PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professional8PoE.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/professional8PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/standard16PoE.js +1 -1
- package/lib/components/ModelCompareV3/data/products/standard16PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/standard16PoE.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/standard16PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/standard24.js +1 -1
- package/lib/components/ModelCompareV3/data/products/standard24.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/standard24.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/standard24.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/standard24PoE.js +1 -1
- package/lib/components/ModelCompareV3/data/products/standard24PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/standard24PoE.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/standard24PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/standard48.js +1 -1
- package/lib/components/ModelCompareV3/data/products/standard48.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/standard48.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/standard48.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/standard48PoE.js +1 -1
- package/lib/components/ModelCompareV3/data/products/standard48PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/standard48PoE.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/standard48PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js +6 -4
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs +6 -4
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.js +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesStandard.js +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesStandard.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucCast.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucCast.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucCast.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/ucCast.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucCastPro.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucCastPro.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucCastPro.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/ucCastPro.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udb.js +4 -7
- package/lib/components/ModelCompareV3/data/products/udb.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udb.mjs +4 -7
- package/lib/components/ModelCompareV3/data/products/udb.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udbPro.js +3 -5
- package/lib/components/ModelCompareV3/data/products/udbPro.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udbPro.mjs +3 -5
- package/lib/components/ModelCompareV3/data/products/udbPro.mjs.map +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/uispDish.js +12 -12
- package/lib/components/ModelCompareV3/data/products/uispDish.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/uispDish.mjs +12 -12
- package/lib/components/ModelCompareV3/data/products/uispDish.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/umr.js +1 -1
- package/lib/components/ModelCompareV3/data/products/umr.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/umr.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/umr.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/umrIndustrial.js +1 -1
- package/lib/components/ModelCompareV3/data/products/umrIndustrial.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/umrIndustrial.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/umrIndustrial.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/umrUltra.js +1 -1
- package/lib/components/ModelCompareV3/data/products/umrUltra.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/umrUltra.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/umrUltra.mjs.map +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 +4 -13
- package/lib/components/ModelCompareV3/data/products/waveFiberOlt.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/waveFiberOlt.mjs +4 -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/ar.json.js +35 -40
- package/lib/components/ModelCompareV3/translations/ar.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/ar.json.mjs +35 -40
- package/lib/components/ModelCompareV3/translations/ar.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/de.json.js +34 -39
- package/lib/components/ModelCompareV3/translations/de.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/de.json.mjs +34 -39
- package/lib/components/ModelCompareV3/translations/de.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/el.json.js +35 -40
- package/lib/components/ModelCompareV3/translations/el.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/el.json.mjs +35 -40
- package/lib/components/ModelCompareV3/translations/el.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/en.json.js +29 -55
- package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/en.json.mjs +29 -55
- package/lib/components/ModelCompareV3/translations/en.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/es.json.js +34 -39
- package/lib/components/ModelCompareV3/translations/es.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/es.json.mjs +34 -39
- package/lib/components/ModelCompareV3/translations/es.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/fr.json.js +35 -40
- package/lib/components/ModelCompareV3/translations/fr.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/fr.json.mjs +35 -40
- package/lib/components/ModelCompareV3/translations/fr.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/it.json.js +35 -40
- package/lib/components/ModelCompareV3/translations/it.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/it.json.mjs +35 -40
- package/lib/components/ModelCompareV3/translations/it.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/ja.json.js +34 -39
- package/lib/components/ModelCompareV3/translations/ja.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/ja.json.mjs +34 -39
- package/lib/components/ModelCompareV3/translations/ja.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/pt-BR.json.js +34 -39
- package/lib/components/ModelCompareV3/translations/pt-BR.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs +34 -39
- package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/useModelCompareTranslation.d.ts +2 -2
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.js +34 -39
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs +34 -39
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js +34 -39
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs +34 -39
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs.map +1 -1
- 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 +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 +5 -5
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CheckboxSection.js +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +6 -6
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/SliderSection.js +3 -3
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +7 -7
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +6 -6
- package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.js +9 -9
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.js +10 -10
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +17 -17
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.js +2 -2
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +6 -6
- package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.js +5 -5
- package/lib/components/ScrollWrapper/ScrollWrapper.js +17 -17
- package/lib/components/Search/Input/Input.js +4 -4
- package/lib/components/Search/Modal/Modal.js +3 -3
- package/lib/components/StorageSliders/Slider/Slider.js +3 -3
- package/lib/components/StorageSliders/StorageSliders.context.js +19 -19
- package/lib/components/StorageSliders/StorageSliders.js +4 -4
- package/lib/components/Tooltip/Tooltip.js +5 -5
- package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js +7 -7
- package/lib/components/VariantSelector/Variant/Variant.js +40 -40
- package/lib/components/VariantSelector/VariantSelector.js +16 -16
- package/lib/components/VideoPlayerNew/VideoPlayer.js +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/address.d.ts +2 -2
- package/lib/constants/address.js +3 -3
- package/lib/constants/address.js.map +1 -1
- package/lib/constants/address.mjs +3 -3
- package/lib/constants/address.mjs.map +1 -1
- package/lib/constants/icons/menu/index.d.ts +1 -0
- package/lib/constants/icons/menu/index.js +9 -0
- package/lib/constants/icons/menu/index.js.map +1 -1
- package/lib/constants/icons/menu/index.mjs +2 -0
- package/lib/constants/icons/menu/index.mjs.map +1 -1
- package/lib/constants/icons/menu/unasDrive.svg.js +27 -0
- package/lib/constants/icons/menu/unasDrive.svg.js.map +1 -0
- package/lib/constants/icons/menu/unasDrive.svg.mjs +3 -0
- package/lib/constants/icons/menu/unasDrive.svg.mjs.map +1 -0
- package/lib/constants/icons/options/colors/black.svg.js +5 -5
- package/lib/constants/icons/options/colors/index.js +3 -3
- package/lib/constants/icons/options/styles/black.svg.js +5 -5
- package/lib/constants/icons/options/styles/index.js +3 -3
- package/lib/constants/optionIcons.js +6 -6
- package/lib/constants/optionIcons.mjs +4 -4
- package/lib/constants/proStoreCategories/mapping/filters.d.ts +15 -0
- package/lib/constants/proStoreCategories/mapping/filters.js +15 -0
- package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/filters.mjs +15 -0
- package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.d.ts +2 -2
- package/lib/constants/proStoreCategories/mapping/index.js +52 -38
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +52 -38
- package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/mapping.d.ts +11 -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 +5 -7
- package/lib/constants/proStoreCategories/mapping/unifi.js +5 -7
- package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs +5 -7
- package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js +12 -9
- package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.mjs +12 -10
- package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.js +12 -9
- package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.mjs +12 -10
- package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.js +12 -9
- package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.mjs +12 -10
- package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +4 -4
- package/lib/constants/proStoreCategories/translations/en.json.mjs +4 -4
- package/lib/constants/proStoreCategories/translations/es.json.js +12 -9
- package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.mjs +12 -10
- package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +12 -9
- package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +12 -10
- package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.js +12 -9
- package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.mjs +12 -10
- package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js +12 -9
- package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.mjs +12 -10
- package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js +12 -9
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +12 -10
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +12 -9
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +12 -10
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +12 -9
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +12 -10
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/constants/proStoreFilters/mapping.d.ts +40 -3
- package/lib/constants/proStoreFilters/mapping.js +107 -6
- package/lib/constants/proStoreFilters/mapping.js.map +1 -1
- package/lib/constants/proStoreFilters/mapping.mjs +107 -6
- package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
- package/lib/contexts/MenuContext/context.js +32 -32
- package/lib/contexts/MenuContext/mapping.d.ts +1 -1
- package/lib/contexts/MenuContext/mapping.js +31 -13
- package/lib/contexts/MenuContext/mapping.js.map +1 -1
- package/lib/contexts/MenuContext/mapping.mjs +30 -13
- package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
- package/lib/contexts/MicrositeMenuContext/context.js +9 -9
- package/lib/contexts/MicrositeMenuContext/mapping.js +8 -6
- package/lib/contexts/MicrositeMenuContext/mapping.js.map +1 -1
- package/lib/contexts/MicrositeMenuContext/mapping.mjs +8 -6
- package/lib/contexts/MicrositeMenuContext/mapping.mjs.map +1 -1
- package/lib/contexts/MicrositeMenuContext/translations/en.json.js +2 -2
- package/lib/contexts/MicrositeMenuContext/translations/en.json.mjs +2 -2
- package/lib/contexts/MicrositeMenuContext/translations.d.ts +2 -2
- 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/lib/utils/money/constants.d.ts +12 -0
- package/lib/utils/money/constants.js +17 -1
- package/lib/utils/money/constants.js.map +1 -1
- package/lib/utils/money/constants.mjs +17 -2
- package/lib/utils/money/constants.mjs.map +1 -1
- package/lib/utils/money/format.js +17 -4
- package/lib/utils/money/format.js.map +1 -1
- package/lib/utils/money/format.mjs +18 -5
- package/lib/utils/money/format.mjs.map +1 -1
- package/lib/utils/money/index.js +1 -0
- package/lib/utils/money/index.js.map +1 -1
- package/lib/utils/money/index.mjs +1 -1
- package/package.json +1 -1
- package/lib/assets/enterprise24PoE.jpg +0 -0
- package/lib/assets/enterprise48PoE.jpg +0 -0
- package/lib/assets/enterpriseXG24.jpg +0 -0
- package/lib/components/ModelCompareV3/assets/Switching/enterprise24PoE.jpg.js.map +0 -1
- package/lib/components/ModelCompareV3/assets/Switching/enterprise24PoE.jpg.mjs +0 -3
- package/lib/components/ModelCompareV3/assets/Switching/enterprise24PoE.jpg.mjs.map +0 -1
- package/lib/components/ModelCompareV3/assets/Switching/enterprise48PoE.jpg.js.map +0 -1
- package/lib/components/ModelCompareV3/assets/Switching/enterprise48PoE.jpg.mjs +0 -3
- package/lib/components/ModelCompareV3/assets/Switching/enterprise48PoE.jpg.mjs.map +0 -1
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseXG24.jpg.js.map +0 -1
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseXG24.jpg.mjs +0 -3
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseXG24.jpg.mjs.map +0 -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/enterprise24PoE.js.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterprise24PoE.mjs +0 -102
- package/lib/components/ModelCompareV3/data/products/enterprise24PoE.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterprise48PoE.js.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterprise48PoE.mjs +0 -102
- package/lib/components/ModelCompareV3/data/products/enterprise48PoE.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseXG24.js.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseXG24.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 Pagination_styles = require('./Pagination.styles.js');
|
|
6
6
|
"use strict";
|
|
7
7
|
const PAGE_STEP = 1;
|
|
@@ -11,14 +11,14 @@ const Pagination = function Pagination2({
|
|
|
11
11
|
onChange,
|
|
12
12
|
activePage
|
|
13
13
|
}) {
|
|
14
|
-
const onPaginationChange =
|
|
14
|
+
const onPaginationChange = React.useCallback(value => {
|
|
15
15
|
window.scrollTo({
|
|
16
16
|
top: 0,
|
|
17
17
|
behavior: "smooth"
|
|
18
18
|
});
|
|
19
19
|
onChange(value);
|
|
20
20
|
}, [onChange]);
|
|
21
|
-
const parsedPages =
|
|
21
|
+
const parsedPages = React.useMemo(() => {
|
|
22
22
|
const pages = [];
|
|
23
23
|
const addPages = (startIndex, endIndex) => {
|
|
24
24
|
for (let i = startIndex; i < endIndex; i++) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var MultiSlider = require('@ubnt/ui-components/MultiSlider');
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
require('../../assets/icons/sliderThumb.svg.js');
|
|
7
7
|
require('../../utils/money/index.js');
|
|
8
8
|
var PriceRangeSlider_styles = require('./PriceRangeSlider.styles.js');
|
|
@@ -26,16 +26,16 @@ const PriceRangeSlider = function PriceRangeSlider2({
|
|
|
26
26
|
title,
|
|
27
27
|
currency
|
|
28
28
|
}) {
|
|
29
|
-
const fullRange =
|
|
30
|
-
const priceToPercentage =
|
|
29
|
+
const fullRange = React.useMemo(() => maxValue.amount - minValue.amount, [maxValue.amount, minValue.amount]);
|
|
30
|
+
const priceToPercentage = React.useCallback(priceAmount => {
|
|
31
31
|
return (priceAmount - minValue.amount) / fullRange * 100;
|
|
32
32
|
}, [fullRange, minValue.amount]);
|
|
33
|
-
const percentageToPrice =
|
|
33
|
+
const percentageToPrice = React.useCallback(percentage => {
|
|
34
34
|
return Math.floor(percentage * fullRange / 100 + minValue.amount);
|
|
35
35
|
}, [fullRange, minValue.amount]);
|
|
36
|
-
const [fromSliderValue, setFromSliderValue] =
|
|
37
|
-
const [toSliderValue, setToSliderValue] =
|
|
38
|
-
const getFormattedPriceFrom =
|
|
36
|
+
const [fromSliderValue, setFromSliderValue] = React.useState(priceFrom && priceToPercentage(priceFrom.amount) || 0);
|
|
37
|
+
const [toSliderValue, setToSliderValue] = React.useState(priceTo && priceToPercentage(priceTo.amount) || 100);
|
|
38
|
+
const getFormattedPriceFrom = React.useCallback(priceAmount => {
|
|
39
39
|
return format.formatPrice({
|
|
40
40
|
currency,
|
|
41
41
|
amount: priceAmount
|
|
@@ -43,7 +43,7 @@ const PriceRangeSlider = function PriceRangeSlider2({
|
|
|
43
43
|
removeFractions: true
|
|
44
44
|
});
|
|
45
45
|
}, [currency]);
|
|
46
|
-
const getFormattedPriceTo =
|
|
46
|
+
const getFormattedPriceTo = React.useCallback(priceAmount => {
|
|
47
47
|
return `${format.formatPrice({
|
|
48
48
|
currency,
|
|
49
49
|
amount: priceAmount
|
|
@@ -51,13 +51,13 @@ const PriceRangeSlider = function PriceRangeSlider2({
|
|
|
51
51
|
removeFractions: true
|
|
52
52
|
})}${toSliderValue === 100 ? "+" : ""}`;
|
|
53
53
|
}, [currency, toSliderValue]);
|
|
54
|
-
const [fromInputValue, setFromInputValue] =
|
|
55
|
-
const [toInputValue, setToInputValue] =
|
|
56
|
-
|
|
54
|
+
const [fromInputValue, setFromInputValue] = React.useState(getFormattedPriceFrom((priceFrom !== void 0 ? priceFrom?.amount : minValue.amount) || 0));
|
|
55
|
+
const [toInputValue, setToInputValue] = React.useState(getFormattedPriceTo((priceTo !== void 0 ? priceTo?.amount : maxValue.amount) || 0));
|
|
56
|
+
React.useEffect(() => {
|
|
57
57
|
setFromInputValue(getFormattedPriceFrom(priceFrom?.amount || minValue.amount));
|
|
58
58
|
setFromSliderValue(priceToPercentage(priceFrom?.amount || 0));
|
|
59
59
|
}, [getFormattedPriceFrom, minValue.amount, priceFrom?.amount, priceToPercentage]);
|
|
60
|
-
|
|
60
|
+
React.useEffect(() => {
|
|
61
61
|
const newPercentageValue = priceToPercentage(priceTo?.amount || maxValue.amount);
|
|
62
62
|
setToInputValue(`${format.formatPrice({
|
|
63
63
|
currency,
|
|
@@ -67,7 +67,7 @@ const PriceRangeSlider = function PriceRangeSlider2({
|
|
|
67
67
|
})}${newPercentageValue === 100 ? "+" : ""}`);
|
|
68
68
|
setToSliderValue(newPercentageValue || 100);
|
|
69
69
|
}, [currency, maxValue.amount, priceTo?.amount, priceToPercentage]);
|
|
70
|
-
const handleSliderChange =
|
|
70
|
+
const handleSliderChange = React.useCallback(([valFrom, valTo]) => {
|
|
71
71
|
const newData = {
|
|
72
72
|
...(priceFrom && {
|
|
73
73
|
priceFrom: {
|
|
@@ -98,7 +98,7 @@ const PriceRangeSlider = function PriceRangeSlider2({
|
|
|
98
98
|
};
|
|
99
99
|
onChange(newData);
|
|
100
100
|
}, [maxValue.currency, minValue.currency, onChange, percentageToPrice, priceFrom, priceTo]);
|
|
101
|
-
const handleInputBlur =
|
|
101
|
+
const handleInputBlur = React.useCallback((inputValue, inputType) => {
|
|
102
102
|
const val = parseInt(inputValue.replace(/^\D+/g, ""));
|
|
103
103
|
if (typeof val === "number" && !Number.isNaN(val)) {
|
|
104
104
|
let parsedDinero = misc.parseFloatToDinero(val, currency).toJSON();
|
|
@@ -141,13 +141,13 @@ const PriceRangeSlider = function PriceRangeSlider2({
|
|
|
141
141
|
onChange(newData);
|
|
142
142
|
}
|
|
143
143
|
}, [currency, maxValue, minValue, onChange, priceFrom, priceTo]);
|
|
144
|
-
const handleSliderDrag =
|
|
144
|
+
const handleSliderDrag = React.useCallback(([valFrom, valTo]) => {
|
|
145
145
|
setFromInputValue(getFormattedPriceFrom(percentageToPrice(valFrom)));
|
|
146
146
|
setFromSliderValue(valFrom);
|
|
147
147
|
setToInputValue(getFormattedPriceTo(percentageToPrice(valTo)));
|
|
148
148
|
setToSliderValue(valTo);
|
|
149
149
|
}, [getFormattedPriceFrom, getFormattedPriceTo, percentageToPrice]);
|
|
150
|
-
const handleInputChange =
|
|
150
|
+
const handleInputChange = React.useCallback(inputType => e => {
|
|
151
151
|
const value = e.target.value;
|
|
152
152
|
const regex = /[a-zA-Z]/;
|
|
153
153
|
if (regex.test(value)) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var merge = require('lodash/merge');
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
var reactUse = require('react-use');
|
|
7
7
|
require('../../assets/icons/previouslyPurchasedStar.svg.js');
|
|
8
8
|
var variant = require('../../utils/variant.js');
|
|
@@ -45,23 +45,23 @@ const ProductCard = ({
|
|
|
45
45
|
onAddToCart,
|
|
46
46
|
renderImage
|
|
47
47
|
}) => {
|
|
48
|
-
const translations =
|
|
48
|
+
const translations = React.useMemo(() => {
|
|
49
49
|
return merge__default["default"](ProductCard_constants.defaultProductCardTranslations, initialTranslations);
|
|
50
50
|
}, [initialTranslations]);
|
|
51
|
-
const hasManyVariants =
|
|
51
|
+
const hasManyVariants = React.useMemo(() => {
|
|
52
52
|
return variants.length > 1;
|
|
53
53
|
}, [variants.length]);
|
|
54
|
-
const isInStock =
|
|
54
|
+
const isInStock = React.useMemo(() => {
|
|
55
55
|
return !!isSubscription || !!variants?.some(variant => variant.isInStock);
|
|
56
56
|
}, [isSubscription, variants]);
|
|
57
|
-
const isComingSoon =
|
|
57
|
+
const isComingSoon = React.useMemo(() => {
|
|
58
58
|
return !isInStock && !!variants?.some(variant => variant.isComingSoon);
|
|
59
59
|
}, [isInStock, variants]);
|
|
60
|
-
const isEarlyAccess =
|
|
60
|
+
const isEarlyAccess = React.useMemo(() => {
|
|
61
61
|
return !!variants?.some(variant => variant?.isEarlyAccess);
|
|
62
62
|
}, [variants]);
|
|
63
|
-
const [localQuantity] =
|
|
64
|
-
const handleAddToCart =
|
|
63
|
+
const [localQuantity] = React.useState(1);
|
|
64
|
+
const handleAddToCart = React.useCallback(() => {
|
|
65
65
|
const quantity = hasManyVariants ? null : localQuantity;
|
|
66
66
|
onAddToCart(slug, quantity);
|
|
67
67
|
}, [hasManyVariants, localQuantity, onAddToCart, 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
|
var array = require('../../utils/array.js');
|
|
6
6
|
require('../../utils/money/index.js');
|
|
7
7
|
var variant = require('../../utils/variant.js');
|
|
@@ -42,13 +42,13 @@ const _ProductCardPopup = ({
|
|
|
42
42
|
const {
|
|
43
43
|
jumpToSlide
|
|
44
44
|
} = Gallery_context.useGalleryControls();
|
|
45
|
-
const imagesParsed =
|
|
45
|
+
const imagesParsed = React.useMemo(() => {
|
|
46
46
|
return Gallery.parseGalleryEntries(images ?? [], GALLERY_FADE);
|
|
47
47
|
}, [images]);
|
|
48
|
-
const currentVariant =
|
|
48
|
+
const currentVariant = React.useMemo(() => {
|
|
49
49
|
return variants?.find(variant => variant.sku === activePopupVariantSku);
|
|
50
50
|
}, [activePopupVariantSku, variants]);
|
|
51
|
-
const variantOptions =
|
|
51
|
+
const variantOptions = React.useMemo(() => {
|
|
52
52
|
return options?.map(option => {
|
|
53
53
|
const selectedOption = option.values.find(value => currentVariant?.optionValueIds?.includes(value.id));
|
|
54
54
|
const values = option.values.map(value => {
|
|
@@ -67,13 +67,13 @@ const _ProductCardPopup = ({
|
|
|
67
67
|
};
|
|
68
68
|
});
|
|
69
69
|
}, [currentVariant?.optionValueIds, options, variants]);
|
|
70
|
-
const updateGalleryImage =
|
|
70
|
+
const updateGalleryImage = React.useCallback(imageId => {
|
|
71
71
|
const imageIndex = imagesParsed?.findIndex(image => image.id === imageId);
|
|
72
72
|
if (imageIndex !== void 0 && imageIndex !== -1) {
|
|
73
73
|
jumpToSlide(imageIndex);
|
|
74
74
|
}
|
|
75
75
|
}, [imagesParsed, jumpToSlide]);
|
|
76
|
-
const handleOptionChange =
|
|
76
|
+
const handleOptionChange = React.useCallback((prevValueId, nextValueId) => {
|
|
77
77
|
if (!prevValueId || !nextValueId || prevValueId === nextValueId) {
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
@@ -93,7 +93,7 @@ const _ProductCardPopup = ({
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
}, [currentVariant?.optionValueIds, onVariantChange, updateGalleryImage, variants]);
|
|
96
|
-
const renderOption =
|
|
96
|
+
const renderOption = React.useCallback(({
|
|
97
97
|
option,
|
|
98
98
|
onClick,
|
|
99
99
|
isFocused,
|
|
@@ -109,7 +109,7 @@ const _ProductCardPopup = ({
|
|
|
109
109
|
})]
|
|
110
110
|
}, option.value);
|
|
111
111
|
}, [wizardProps?.translations.addToCartButton.soldOut]);
|
|
112
|
-
const addToCartBtnText =
|
|
112
|
+
const addToCartBtnText = React.useMemo(() => {
|
|
113
113
|
if (wizardProps?.isVariantSoldOut) {
|
|
114
114
|
return wizardProps?.translations.addToCartButton.soldOut;
|
|
115
115
|
} else if (wizardProps?.isVariantComingSoon) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var merge = require('lodash/merge');
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
var iconParsing = require('../../helpers/shopify/iconParsing.js');
|
|
7
7
|
require('../../utils/money/index.js');
|
|
8
8
|
require('../Button/index.js');
|
|
@@ -34,27 +34,27 @@ const ProductCompare = function ProductCompare2({
|
|
|
34
34
|
onVariantLearnMore,
|
|
35
35
|
onVariantAddToCart
|
|
36
36
|
}) {
|
|
37
|
-
const translations =
|
|
37
|
+
const translations = React.useMemo(() => {
|
|
38
38
|
return merge__default["default"](ProductCompare_constants.defaultProductCompareTranslations, initialTranslations);
|
|
39
39
|
}, [initialTranslations]);
|
|
40
|
-
const getVariantImage =
|
|
40
|
+
const getVariantImage = React.useCallback(variant => {
|
|
41
41
|
return variant.images?.find(el => !el.isVideo);
|
|
42
42
|
}, []);
|
|
43
|
-
const parsedVariants =
|
|
43
|
+
const parsedVariants = React.useMemo(() => {
|
|
44
44
|
return ProductCompare_utils.parseProductCompareVariants(variants);
|
|
45
45
|
}, [variants]);
|
|
46
|
-
const section =
|
|
46
|
+
const section = React.useMemo(() => {
|
|
47
47
|
for (const parsedVariant of parsedVariants) {
|
|
48
48
|
return mapping.PRODUCT_COMPARE_MAPPING.sections.find(section2 => section2.id === parsedVariant.compareSectionId) ?? null;
|
|
49
49
|
}
|
|
50
50
|
return null;
|
|
51
51
|
}, [parsedVariants]);
|
|
52
|
-
const getPrice =
|
|
52
|
+
const getPrice = React.useCallback(variant => {
|
|
53
53
|
const price = format.formatPrice(variant.displayPrice);
|
|
54
54
|
const fromPrice = variant.fromPrice ? translations.fromPrice(format.formatPrice(variant.fromPrice)) : void 0;
|
|
55
55
|
return fromPrice || price;
|
|
56
56
|
}, [translations]);
|
|
57
|
-
const allRowHeights =
|
|
57
|
+
const allRowHeights = React.useRef(parsedVariants.reduce((map, variant) => {
|
|
58
58
|
for (let row = 0; row < variant.compare.features.length; row++) {
|
|
59
59
|
if (!map[row]) {
|
|
60
60
|
map[row] = [];
|
|
@@ -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 product = require('../../helpers/shopify/product.js');
|
|
6
6
|
require('../ProductKeyFeatures/index.js');
|
|
7
7
|
var ProductDetails_styles = require('./ProductDetails.styles.js');
|
|
@@ -12,8 +12,8 @@ const ProductDetails = function ProductDetails2({
|
|
|
12
12
|
description,
|
|
13
13
|
asKeyFeatures
|
|
14
14
|
}) {
|
|
15
|
-
const root =
|
|
16
|
-
const openLinkInNewTab =
|
|
15
|
+
const root = React.useRef(null);
|
|
16
|
+
const openLinkInNewTab = React.useCallback(e => {
|
|
17
17
|
if (e.target instanceof HTMLElement) {
|
|
18
18
|
const el = e.target;
|
|
19
19
|
const anchor = el.closest("a");
|
|
@@ -26,10 +26,10 @@ const ProductDetails = function ProductDetails2({
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
}, []);
|
|
29
|
-
const keyFeatures =
|
|
29
|
+
const keyFeatures = React.useMemo(() => {
|
|
30
30
|
return product.getDescriptionKeyFeatures(description);
|
|
31
31
|
}, [description]);
|
|
32
|
-
const parsedInnerHtmlObject =
|
|
32
|
+
const parsedInnerHtmlObject = React.useMemo(() => {
|
|
33
33
|
let html = description;
|
|
34
34
|
if (!asKeyFeatures && keyFeatures) {
|
|
35
35
|
html = keyFeatures.description;
|
|
@@ -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 layout = require('../../constants/layout.js');
|
|
6
6
|
require('../Pagination/index.js');
|
|
7
7
|
require('../ProductCard/index.js');
|
|
@@ -36,7 +36,7 @@ const ProductGrid = ({
|
|
|
36
36
|
const {
|
|
37
37
|
areProductsLoading,
|
|
38
38
|
products
|
|
39
|
-
} =
|
|
39
|
+
} = React.useMemo(() => {
|
|
40
40
|
if (props.products === void 0) {
|
|
41
41
|
return {
|
|
42
42
|
areProductsLoading: true,
|
|
@@ -54,27 +54,27 @@ const ProductGrid = ({
|
|
|
54
54
|
products: props.products
|
|
55
55
|
};
|
|
56
56
|
}, [props?.products]);
|
|
57
|
-
const [popupProduct, setPopupProduct] =
|
|
58
|
-
const isPopupOpen =
|
|
59
|
-
|
|
57
|
+
const [popupProduct, setPopupProduct] = React.useState(activePopupProduct);
|
|
58
|
+
const isPopupOpen = React.useMemo(() => !!activePopupProduct, [activePopupProduct]);
|
|
59
|
+
React.useEffect(() => {
|
|
60
60
|
if (activePopupProduct !== void 0) {
|
|
61
61
|
setPopupProduct(activePopupProduct);
|
|
62
62
|
}
|
|
63
63
|
}, [activePopupProduct]);
|
|
64
|
-
const pageCount =
|
|
64
|
+
const pageCount = React.useMemo(() => {
|
|
65
65
|
return Math.ceil((products?.length || 0) / PAGINATION_LIMIT);
|
|
66
66
|
}, [products?.length]);
|
|
67
|
-
const paginatedProducts =
|
|
67
|
+
const paginatedProducts = React.useMemo(() => {
|
|
68
68
|
const prevRange = (paginationValue - 1) * PAGINATION_LIMIT;
|
|
69
69
|
const currRange = paginationValue * PAGINATION_LIMIT;
|
|
70
70
|
return products?.filter((_product, index) => {
|
|
71
71
|
return !!(index >= prevRange && index < currRange);
|
|
72
72
|
});
|
|
73
73
|
}, [paginationValue, products]);
|
|
74
|
-
const handleSortOptionChange =
|
|
74
|
+
const handleSortOptionChange = React.useCallback(option => {
|
|
75
75
|
onSortOptionChange(typeof option.value === "string" ? option.value : option.value.toString());
|
|
76
76
|
}, [onSortOptionChange]);
|
|
77
|
-
const sortOptions =
|
|
77
|
+
const sortOptions = React.useMemo(() => {
|
|
78
78
|
return [{
|
|
79
79
|
value: ProductGrid_types.ProductGridSortOption.highestPrice,
|
|
80
80
|
label: translations.sortOptions.highestPrice
|
|
@@ -99,7 +99,7 @@ const ProductGrid = ({
|
|
|
99
99
|
* // },
|
|
100
100
|
*/];
|
|
101
101
|
}, [translations.sortOptions]);
|
|
102
|
-
const productCount =
|
|
102
|
+
const productCount = React.useMemo(() => {
|
|
103
103
|
if (hasFilters) {
|
|
104
104
|
return products?.length;
|
|
105
105
|
}
|
|
@@ -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 ProductKeyFeatures_styles = require('./ProductKeyFeatures.styles.js');
|
|
6
6
|
"use strict";
|
|
7
7
|
const ProductKeyFeatures = function ProductKeyFeatures2({
|
|
@@ -9,8 +9,8 @@ const ProductKeyFeatures = function ProductKeyFeatures2({
|
|
|
9
9
|
disableHeader,
|
|
10
10
|
keyFeatures
|
|
11
11
|
}) {
|
|
12
|
-
const [keyFeaturesHtml, setKeyFeaturesHtml] =
|
|
13
|
-
|
|
12
|
+
const [keyFeaturesHtml, setKeyFeaturesHtml] = React.useState(keyFeatures);
|
|
13
|
+
React.useEffect(() => {
|
|
14
14
|
if (typeof keyFeatures === "string") {
|
|
15
15
|
const el = document.createElement("div");
|
|
16
16
|
el.innerHTML = keyFeatures;
|
|
@@ -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('../ScrollWrapper/index.js');
|
|
6
6
|
var ProductSectionTabs_styles = require('./ProductSectionTabs.styles.js');
|
|
7
7
|
var ScrollWrapper = require('../ScrollWrapper/ScrollWrapper.js');
|
|
@@ -12,7 +12,7 @@ const ProductSectionTabs = function ProductSectionTabs2({
|
|
|
12
12
|
className,
|
|
13
13
|
disableScroll
|
|
14
14
|
}) {
|
|
15
|
-
const htmlItems =
|
|
15
|
+
const htmlItems = React.useMemo(() => {
|
|
16
16
|
return items.map((item, index) => {
|
|
17
17
|
const type = index === 0 ? "first" : index === items.length - 1 ? "last" : "middle";
|
|
18
18
|
const adjacentActiveItem = (() => {
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var ProductTechSpecs_styles = require('./ProductTechSpecs.styles.js');
|
|
6
|
+
function _interopDefault(e) {
|
|
7
|
+
return e && e.__esModule ? e : {
|
|
8
|
+
default: e
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
12
|
+
"use strict";
|
|
13
|
+
const ProductTechSpecs = ({
|
|
14
|
+
sections
|
|
15
|
+
}) => {
|
|
16
|
+
const renderFeatureValue = React.useCallback(value => {
|
|
17
|
+
const lines = value.split("\n");
|
|
18
|
+
return /* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Cell, {
|
|
19
|
+
children: lines.map((line, i) => /* @__PURE__ */jsxRuntime.jsxs(React__default["default"].Fragment, {
|
|
20
|
+
children: [i > 0 && /* @__PURE__ */jsxRuntime.jsx("br", {}), line]
|
|
21
|
+
}, i))
|
|
22
|
+
});
|
|
23
|
+
}, []);
|
|
24
|
+
const parsedSections = React.useMemo(() => {
|
|
25
|
+
return sections.map(section => {
|
|
26
|
+
const {
|
|
27
|
+
withParentId,
|
|
28
|
+
withoutParentId
|
|
29
|
+
} = section.features.reduce((acc, feature) => {
|
|
30
|
+
if (feature.parentId === null) {
|
|
31
|
+
acc.withoutParentId.push(feature);
|
|
32
|
+
} else {
|
|
33
|
+
acc.withParentId.push(feature);
|
|
34
|
+
}
|
|
35
|
+
return acc;
|
|
36
|
+
}, {
|
|
37
|
+
withParentId: [],
|
|
38
|
+
withoutParentId: []
|
|
39
|
+
});
|
|
40
|
+
const features = withoutParentId.map(parentFeature => {
|
|
41
|
+
const children = withParentId.filter(childFeature => childFeature.parentId === parentFeature.id);
|
|
42
|
+
return {
|
|
43
|
+
...parentFeature,
|
|
44
|
+
children
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
return {
|
|
48
|
+
id: section.id,
|
|
49
|
+
label: section.label,
|
|
50
|
+
features
|
|
51
|
+
};
|
|
52
|
+
});
|
|
53
|
+
}, [sections]);
|
|
54
|
+
console.log(parsedSections);
|
|
55
|
+
return /* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Wrap, {
|
|
56
|
+
children: parsedSections.map((section, i) => /* @__PURE__ */jsxRuntime.jsxs(React__default["default"].Fragment, {
|
|
57
|
+
children: [i > 0 && /* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.SectionDivider, {}), /* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Row, {
|
|
58
|
+
children: /* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Heading, {
|
|
59
|
+
children: section.label
|
|
60
|
+
})
|
|
61
|
+
}), section.features.map(feature => /* @__PURE__ */jsxRuntime.jsxs(React__default["default"].Fragment, {
|
|
62
|
+
children: [/* @__PURE__ */jsxRuntime.jsxs(ProductTechSpecs_styles.Row, {
|
|
63
|
+
children: [/* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Cell, {
|
|
64
|
+
children: feature.label
|
|
65
|
+
}), feature.value && renderFeatureValue(feature.value)]
|
|
66
|
+
}, feature.id), feature.children.length > 0 && feature.children.map((childFeature, i2) => /* @__PURE__ */jsxRuntime.jsxs(ProductTechSpecs_styles.Row, {
|
|
67
|
+
children: [/* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Tree, {
|
|
68
|
+
$isLast: i2 === feature.children.length - 1
|
|
69
|
+
}), /* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Branch, {}), /* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Cell, {
|
|
70
|
+
$isChildRowFirstCell: true,
|
|
71
|
+
children: childFeature.label
|
|
72
|
+
}), childFeature.value && renderFeatureValue(childFeature.value)]
|
|
73
|
+
}, childFeature.id))]
|
|
74
|
+
}, feature.id))]
|
|
75
|
+
}, section.id))
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
exports.ProductTechSpecs = ProductTechSpecs;
|
|
79
|
+
//# sourceMappingURL=ProductTechSpecs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductTechSpecs.js","sources":["../../../src/components/ProductTechSpecsV2/ProductTechSpecs.tsx"],"sourcesContent":["import React, { useCallback, useMemo } from \"react\";\n\nimport * as S from \"./ProductTechSpecs.styles\";\nimport type { ProductTechSpecsProps } from \"./ProductTechSpecs.types\";\n\nexport const ProductTechSpecs = ({\n sections,\n}: ProductTechSpecsProps): JSX.Element => {\n /**\n * Break value into lines\n */\n const renderFeatureValue = useCallback((value: string): JSX.Element => {\n const lines = value.split(\"\\n\");\n return (\n <S.Cell>\n {lines.map((line, i) => (\n <React.Fragment key={i}>\n {i > 0 && <br />}\n {line}\n </React.Fragment>\n ))}\n </S.Cell>\n );\n }, []);\n\n const parsedSections = useMemo(() => {\n return sections.map((section) => {\n const { withParentId, withoutParentId } = section.features.reduce<{\n withParentId: ProductTechSpecsProps[\"sections\"][number][\"features\"];\n withoutParentId: ProductTechSpecsProps[\"sections\"][number][\"features\"];\n }>(\n (acc, feature) => {\n if (feature.parentId === null) {\n acc.withoutParentId.push(feature);\n } else {\n acc.withParentId.push(feature);\n }\n return acc;\n },\n { withParentId: [], withoutParentId: [] },\n );\n\n const features = withoutParentId.map((parentFeature) => {\n const children = withParentId.filter(\n (childFeature) => childFeature.parentId === parentFeature.id,\n );\n return {\n ...parentFeature,\n children,\n };\n });\n\n return {\n id: section.id,\n label: section.label,\n features,\n };\n });\n }, [sections]);\n\n console.log(parsedSections);\n\n return (\n <S.Wrap>\n {parsedSections.map((section, i) => (\n <React.Fragment key={section.id}>\n {i > 0 && <S.SectionDivider />}\n {/* Section heading */}\n <S.Row>\n <S.Heading>{section.label}</S.Heading>\n </S.Row>\n\n {/* Section feature key value pairs */}\n {section.features.map((feature) => (\n <React.Fragment key={feature.id}>\n <S.Row key={feature.id}>\n <S.Cell>{feature.label}</S.Cell>\n {feature.value && renderFeatureValue(feature.value)}\n </S.Row>\n\n {/* Child features */}\n {feature.children.length > 0 &&\n feature.children.map((childFeature, i) => (\n <S.Row key={childFeature.id}>\n <S.Tree $isLast={i === feature.children.length - 1} />\n <S.Branch />\n\n <S.Cell $isChildRowFirstCell>{childFeature.label}</S.Cell>\n {childFeature.value &&\n renderFeatureValue(childFeature.value)}\n </S.Row>\n ))}\n </React.Fragment>\n ))}\n </React.Fragment>\n ))}\n </S.Wrap>\n );\n};\n"],"names":["ProductTechSpecs","sections","renderFeatureValue","useCallback","value","lines","split","jsx","S.Cell","Cell","children","map","line","i","jsxs","React","Fragment","parsedSections","useMemo","section","withParentId","withoutParentId","features","reduce","acc","feature","parentId","push","parentFeature","filter","childFeature","id","label","console","log","S.Wrap","Wrap","S.SectionDivider","S.Row","Row","S.Heading","length","S.Tree","$isLast","S.Branch","Branch","$isChildRowFirstCell"],"mappings":"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"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import React, { useCallback, useMemo } from 'react';
|
|
3
|
+
import { Cell, Wrap, SectionDivider, Row, Heading, Tree, Branch } from './ProductTechSpecs.styles.mjs';
|
|
4
|
+
"use strict";
|
|
5
|
+
const ProductTechSpecs = ({
|
|
6
|
+
sections
|
|
7
|
+
}) => {
|
|
8
|
+
const renderFeatureValue = useCallback(value => {
|
|
9
|
+
const lines = value.split("\n");
|
|
10
|
+
return /* @__PURE__ */jsx(Cell, {
|
|
11
|
+
children: lines.map((line, i) => /* @__PURE__ */jsxs(React.Fragment, {
|
|
12
|
+
children: [i > 0 && /* @__PURE__ */jsx("br", {}), line]
|
|
13
|
+
}, i))
|
|
14
|
+
});
|
|
15
|
+
}, []);
|
|
16
|
+
const parsedSections = useMemo(() => {
|
|
17
|
+
return sections.map(section => {
|
|
18
|
+
const {
|
|
19
|
+
withParentId,
|
|
20
|
+
withoutParentId
|
|
21
|
+
} = section.features.reduce((acc, feature) => {
|
|
22
|
+
if (feature.parentId === null) {
|
|
23
|
+
acc.withoutParentId.push(feature);
|
|
24
|
+
} else {
|
|
25
|
+
acc.withParentId.push(feature);
|
|
26
|
+
}
|
|
27
|
+
return acc;
|
|
28
|
+
}, {
|
|
29
|
+
withParentId: [],
|
|
30
|
+
withoutParentId: []
|
|
31
|
+
});
|
|
32
|
+
const features = withoutParentId.map(parentFeature => {
|
|
33
|
+
const children = withParentId.filter(childFeature => childFeature.parentId === parentFeature.id);
|
|
34
|
+
return {
|
|
35
|
+
...parentFeature,
|
|
36
|
+
children
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
return {
|
|
40
|
+
id: section.id,
|
|
41
|
+
label: section.label,
|
|
42
|
+
features
|
|
43
|
+
};
|
|
44
|
+
});
|
|
45
|
+
}, [sections]);
|
|
46
|
+
console.log(parsedSections);
|
|
47
|
+
return /* @__PURE__ */jsx(Wrap, {
|
|
48
|
+
children: parsedSections.map((section, i) => /* @__PURE__ */jsxs(React.Fragment, {
|
|
49
|
+
children: [i > 0 && /* @__PURE__ */jsx(SectionDivider, {}), /* @__PURE__ */jsx(Row, {
|
|
50
|
+
children: /* @__PURE__ */jsx(Heading, {
|
|
51
|
+
children: section.label
|
|
52
|
+
})
|
|
53
|
+
}), section.features.map(feature => /* @__PURE__ */jsxs(React.Fragment, {
|
|
54
|
+
children: [/* @__PURE__ */jsxs(Row, {
|
|
55
|
+
children: [/* @__PURE__ */jsx(Cell, {
|
|
56
|
+
children: feature.label
|
|
57
|
+
}), feature.value && renderFeatureValue(feature.value)]
|
|
58
|
+
}, feature.id), feature.children.length > 0 && feature.children.map((childFeature, i2) => /* @__PURE__ */jsxs(Row, {
|
|
59
|
+
children: [/* @__PURE__ */jsx(Tree, {
|
|
60
|
+
$isLast: i2 === feature.children.length - 1
|
|
61
|
+
}), /* @__PURE__ */jsx(Branch, {}), /* @__PURE__ */jsx(Cell, {
|
|
62
|
+
$isChildRowFirstCell: true,
|
|
63
|
+
children: childFeature.label
|
|
64
|
+
}), childFeature.value && renderFeatureValue(childFeature.value)]
|
|
65
|
+
}, childFeature.id))]
|
|
66
|
+
}, feature.id))]
|
|
67
|
+
}, section.id))
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
export { ProductTechSpecs };
|
|
71
|
+
//# sourceMappingURL=ProductTechSpecs.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductTechSpecs.mjs","sources":["../../../src/components/ProductTechSpecsV2/ProductTechSpecs.tsx"],"sourcesContent":["import React, { useCallback, useMemo } from \"react\";\n\nimport * as S from \"./ProductTechSpecs.styles\";\nimport type { ProductTechSpecsProps } from \"./ProductTechSpecs.types\";\n\nexport const ProductTechSpecs = ({\n sections,\n}: ProductTechSpecsProps): JSX.Element => {\n /**\n * Break value into lines\n */\n const renderFeatureValue = useCallback((value: string): JSX.Element => {\n const lines = value.split(\"\\n\");\n return (\n <S.Cell>\n {lines.map((line, i) => (\n <React.Fragment key={i}>\n {i > 0 && <br />}\n {line}\n </React.Fragment>\n ))}\n </S.Cell>\n );\n }, []);\n\n const parsedSections = useMemo(() => {\n return sections.map((section) => {\n const { withParentId, withoutParentId } = section.features.reduce<{\n withParentId: ProductTechSpecsProps[\"sections\"][number][\"features\"];\n withoutParentId: ProductTechSpecsProps[\"sections\"][number][\"features\"];\n }>(\n (acc, feature) => {\n if (feature.parentId === null) {\n acc.withoutParentId.push(feature);\n } else {\n acc.withParentId.push(feature);\n }\n return acc;\n },\n { withParentId: [], withoutParentId: [] },\n );\n\n const features = withoutParentId.map((parentFeature) => {\n const children = withParentId.filter(\n (childFeature) => childFeature.parentId === parentFeature.id,\n );\n return {\n ...parentFeature,\n children,\n };\n });\n\n return {\n id: section.id,\n label: section.label,\n features,\n };\n });\n }, [sections]);\n\n console.log(parsedSections);\n\n return (\n <S.Wrap>\n {parsedSections.map((section, i) => (\n <React.Fragment key={section.id}>\n {i > 0 && <S.SectionDivider />}\n {/* Section heading */}\n <S.Row>\n <S.Heading>{section.label}</S.Heading>\n </S.Row>\n\n {/* Section feature key value pairs */}\n {section.features.map((feature) => (\n <React.Fragment key={feature.id}>\n <S.Row key={feature.id}>\n <S.Cell>{feature.label}</S.Cell>\n {feature.value && renderFeatureValue(feature.value)}\n </S.Row>\n\n {/* Child features */}\n {feature.children.length > 0 &&\n feature.children.map((childFeature, i) => (\n <S.Row key={childFeature.id}>\n <S.Tree $isLast={i === feature.children.length - 1} />\n <S.Branch />\n\n <S.Cell $isChildRowFirstCell>{childFeature.label}</S.Cell>\n {childFeature.value &&\n renderFeatureValue(childFeature.value)}\n </S.Row>\n ))}\n </React.Fragment>\n ))}\n </React.Fragment>\n ))}\n </S.Wrap>\n );\n};\n"],"names":["ProductTechSpecs","sections","renderFeatureValue","useCallback","value","lines","split","jsx","S.Cell","children","map","line","i","jsxs","React","Fragment","parsedSections","useMemo","section","withParentId","withoutParentId","features","reduce","acc","feature","parentId","push","parentFeature","filter","childFeature","id","label","console","log","S.Wrap","S.SectionDivider","S.Row","S.Heading","length","S.Tree","$isLast","S.Branch","$isChildRowFirstCell"],"mappings":"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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const Wrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
+
export declare const Row: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const Heading: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const SectionDivider: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
+
export declare const Cell: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
6
|
+
$isChildRowFirstCell?: boolean;
|
|
7
|
+
}, never>;
|
|
8
|
+
export declare const Tree: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
9
|
+
$isLast: boolean;
|
|
10
|
+
}, never>;
|
|
11
|
+
export declare const Branch: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|