@ubnt/store.core 9.64.0 → 9.64.1-new-design.1
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 +153 -1
- package/lib/_virtual/_virtual_multi-entry.js +13 -10
- package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
- package/lib/_virtual/_virtual_multi-entry.mjs +13 -11
- package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
- package/lib/apis/smartcat.d.ts +12 -2
- package/lib/apis/smartcat.js +27 -4
- package/lib/apis/smartcat.js.map +1 -1
- package/lib/apis/smartcat.mjs +27 -4
- package/lib/apis/smartcat.mjs.map +1 -1
- package/lib/assets/arrow2.svg +3 -0
- package/lib/assets/cart-secondary.svg +5 -0
- package/lib/assets/icon-location-pin.svg +5 -0
- package/lib/assets/icons/{menu/icon-globe.svg.js → cart-secondary.svg.js} +6 -6
- package/lib/assets/icons/cart-secondary.svg.js.map +1 -0
- package/lib/assets/icons/cart-secondary.svg.mjs +3 -0
- package/lib/assets/icons/cart-secondary.svg.mjs.map +1 -0
- package/lib/{components/ModelCompareV3/assets/Switching/aggregation.jpg.js → assets/icons/menu/icon-location-pin.svg.js} +6 -6
- package/lib/assets/icons/menu/icon-location-pin.svg.js.map +1 -0
- package/lib/assets/icons/menu/icon-location-pin.svg.mjs +3 -0
- package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +1 -0
- package/lib/assets/logoUnifi.svg +10 -2
- 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/poe2.svg +3 -2
- package/lib/assets/poe3.svg +2 -3
- package/lib/assets/port.svg +4 -2
- package/lib/assets/port2.svg +2 -4
- 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/udr2.jpg +0 -0
- package/lib/assets/udr3.jpg +0 -0
- package/lib/assets/udr7.jpg +0 -0
- package/lib/assets/udr72.jpg +0 -0
- package/lib/components/Accordion/Accordion.js +4 -4
- package/lib/components/Avatar/Avatar.js +2 -2
- package/lib/components/BackInStock/BackInStock.types.d.ts +1 -0
- package/lib/components/Button/Button.js +12 -5
- package/lib/components/Button/Button.js.map +1 -1
- package/lib/components/Button/Button.mjs +8 -1
- package/lib/components/Button/Button.mjs.map +1 -1
- package/lib/components/Button/CartButton.d.ts +3 -1
- package/lib/components/Button/CartButton.js +11 -6
- package/lib/components/Button/CartButton.js.map +1 -1
- package/lib/components/Button/CartButton.mjs +8 -4
- package/lib/components/Button/CartButton.mjs.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.js +16 -9
- package/lib/components/ButtonGroup/ButtonGroup.js.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.mjs +16 -9
- package/lib/components/ButtonGroup/ButtonGroup.mjs.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.styles.d.ts +10 -6
- package/lib/components/ButtonGroup/ButtonGroup.styles.js +60 -20
- package/lib/components/ButtonGroup/ButtonGroup.styles.js.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.styles.mjs +60 -20
- package/lib/components/ButtonGroup/ButtonGroup.styles.mjs.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.types.d.ts +5 -0
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.d.ts +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js +16 -4
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs +17 -5
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.d.ts +5 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js +82 -17
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs +82 -17
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.types.d.ts +4 -0
- package/lib/components/ButtonGroupBasic/index.stories.d.ts +6 -0
- package/lib/components/CardSection/Card/Card.d.ts +1 -1
- package/lib/components/CardSection/Card/Card.js +9 -7
- package/lib/components/CardSection/Card/Card.js.map +1 -1
- package/lib/components/CardSection/Card/Card.mjs +3 -1
- package/lib/components/CardSection/Card/Card.mjs.map +1 -1
- package/lib/components/CardSection/Card/Card.types.d.ts +1 -0
- package/lib/components/CardSection/Card/Card.types.js.map +1 -1
- package/lib/components/CardSection/Card/Card.types.mjs.map +1 -1
- package/lib/components/CardSection/CardSection.js +2 -2
- package/lib/components/CardSection/CardSection.styles.d.ts +1 -1
- package/lib/components/CartIcon/CartIcon.js +2 -2
- package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +4 -2
- package/lib/components/CategoryTabs/CategoryTabs.styles.js +8 -5
- package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +7 -6
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
- 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/Compare/Compare.styles.d.ts +5 -5
- package/lib/components/Container/Container.d.ts +1 -1
- package/lib/components/Container/Container.js +5 -4
- package/lib/components/Container/Container.js.map +1 -1
- package/lib/components/Container/Container.mjs +5 -4
- package/lib/components/Container/Container.mjs.map +1 -1
- package/lib/components/Container/index.stories.d.ts +5 -5
- package/lib/components/CustomImage/CustomImage.js +12 -12
- package/lib/components/Explore/Explore.js +5 -5
- package/lib/components/Explore/ExploreData.js +11 -11
- package/lib/components/Explore/ExploreData.js.map +1 -1
- package/lib/components/Explore/ExploreData.mjs +11 -11
- 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 +30 -20
- package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
- package/lib/components/Header/AccountMenu/AccountMenu.mjs +13 -3
- package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
- 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/CartModalV2/Item/Item.styles.d.ts +1 -1
- package/lib/components/Header/Header.js +43 -43
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mjs +9 -9
- package/lib/components/Header/Header.mjs.map +1 -1
- package/lib/components/Header/Header.stories.d.ts +111 -0
- package/lib/components/Header/Header.styles.d.ts +7 -12
- package/lib/components/Header/Header.styles.js +10 -32
- package/lib/components/Header/Header.styles.js.map +1 -1
- package/lib/components/Header/Header.styles.mjs +10 -31
- package/lib/components/Header/Header.styles.mjs.map +1 -1
- package/lib/components/Header/Header.types.d.ts +29 -5
- package/lib/components/Header/Header.types.js +2 -1
- package/lib/components/Header/Header.types.js.map +1 -1
- package/lib/components/Header/Header.types.mjs +2 -1
- package/lib/components/Header/Header.types.mjs.map +1 -1
- package/lib/components/Header/IsolatedHeader.d.ts +1 -0
- package/lib/components/Header/IsolatedHeader.js +50 -50
- package/lib/components/Header/IsolatedHeader.js.map +1 -1
- package/lib/components/Header/IsolatedHeader.mjs +47 -46
- package/lib/components/Header/IsolatedHeader.mjs.map +1 -1
- package/lib/components/Header/LanguageFrame/LanguageFrame.js +6 -6
- package/lib/components/Header/LogoIcon/LogoIcon.d.ts +7 -0
- package/lib/components/Header/LogoIcon/LogoIcon.js +46 -0
- package/lib/components/Header/LogoIcon/LogoIcon.js.map +1 -0
- package/lib/components/Header/LogoIcon/LogoIcon.mjs +36 -0
- package/lib/components/Header/LogoIcon/LogoIcon.mjs.map +1 -0
- package/lib/components/Header/LogoIcon/index.d.ts +1 -0
- package/lib/components/Header/LogoIcon/index.js +6 -0
- package/lib/components/Header/LogoIcon/index.js.map +1 -0
- package/lib/components/Header/LogoIcon/index.mjs +3 -0
- package/lib/components/Header/LogoIcon/index.mjs.map +1 -0
- package/lib/components/Header/MenuItem/MenuItem.styles.d.ts +1 -1
- package/lib/components/Header/MenuItem/MenuItem.styles.js +3 -3
- package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
- package/lib/components/Header/MenuItem/MenuItem.styles.mjs +3 -3
- package/lib/components/Header/MenuItem/MenuItem.styles.mjs.map +1 -1
- package/lib/components/Header/MenuItem/MenuItem.types.d.ts +1 -0
- 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/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +6 -6
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +116 -109
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +111 -104
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +9 -0
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +15 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +13 -2
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +12 -6
- package/lib/components/Header/Overlay/Overlay.js +3 -3
- package/lib/components/Header/ProHeader/ProHeader.d.ts +9 -5
- package/lib/components/Header/ProHeader/ProHeader.js +290 -189
- package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.mjs +270 -171
- package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +38 -23
- package/lib/components/Header/ProHeader/ProHeader.styles.js +205 -67
- package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs +194 -66
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
- package/lib/components/Header/translations/ar.json.js +4 -1
- package/lib/components/Header/translations/ar.json.js.map +1 -1
- package/lib/components/Header/translations/ar.json.mjs +4 -2
- package/lib/components/Header/translations/ar.json.mjs.map +1 -1
- package/lib/components/Header/translations/de.json.js +4 -1
- package/lib/components/Header/translations/de.json.js.map +1 -1
- package/lib/components/Header/translations/de.json.mjs +4 -2
- package/lib/components/Header/translations/de.json.mjs.map +1 -1
- package/lib/components/Header/translations/el.json.js +4 -1
- package/lib/components/Header/translations/el.json.js.map +1 -1
- package/lib/components/Header/translations/el.json.mjs +4 -2
- package/lib/components/Header/translations/el.json.mjs.map +1 -1
- package/lib/components/Header/translations/en.json.js +7 -1
- package/lib/components/Header/translations/en.json.js.map +1 -1
- package/lib/components/Header/translations/en.json.mjs +6 -2
- package/lib/components/Header/translations/en.json.mjs.map +1 -1
- package/lib/components/Header/translations/es.json.js +4 -1
- package/lib/components/Header/translations/es.json.js.map +1 -1
- package/lib/components/Header/translations/es.json.mjs +4 -2
- package/lib/components/Header/translations/es.json.mjs.map +1 -1
- package/lib/components/Header/translations/fr.json.js +4 -1
- package/lib/components/Header/translations/fr.json.js.map +1 -1
- package/lib/components/Header/translations/fr.json.mjs +4 -2
- package/lib/components/Header/translations/fr.json.mjs.map +1 -1
- package/lib/components/Header/translations/it.json.js +4 -1
- package/lib/components/Header/translations/it.json.js.map +1 -1
- package/lib/components/Header/translations/it.json.mjs +4 -2
- package/lib/components/Header/translations/it.json.mjs.map +1 -1
- package/lib/components/Header/translations/ja.json.js +4 -1
- package/lib/components/Header/translations/ja.json.js.map +1 -1
- package/lib/components/Header/translations/ja.json.mjs +4 -2
- package/lib/components/Header/translations/ja.json.mjs.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.js +4 -1
- package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.mjs +4 -2
- package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.js +4 -1
- package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.mjs +4 -2
- package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.js +4 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.mjs +4 -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/Hero/Hero.styles.d.ts +2 -2
- package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +1 -1
- package/lib/components/HeroVideo/HeroVideo.js +5 -5
- package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +2 -2
- package/lib/components/ImageCarousel/ImageCarousel.js +30 -30
- 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/LandingPagePro/LandingPagePro.styles.d.ts +1 -1
- 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/LayoutRenderer/LayoutRenderer.styles.d.ts +1 -1
- package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +3 -3
- package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +3 -3
- package/lib/components/LoaderDots/LoaderDots.d.ts +1 -1
- package/lib/components/LoaderDots/LoaderDots.js +3 -1
- package/lib/components/LoaderDots/LoaderDots.js.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.mjs +3 -1
- package/lib/components/LoaderDots/LoaderDots.mjs.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.styles.d.ts +2 -1
- package/lib/components/LoaderDots/LoaderDots.styles.js +11 -1
- package/lib/components/LoaderDots/LoaderDots.styles.js.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.styles.mjs +11 -1
- package/lib/components/LoaderDots/LoaderDots.styles.mjs.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.types.d.ts +2 -0
- package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.js +7 -7
- package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.js +18 -18
- package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.d.ts +1 -1
- 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/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/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +1 -1
- 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/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/bigCompare/udr.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udr.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udr7.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udr7.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/Consoles/udr.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udr.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udr7.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udr7.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/poe.svg.js +1 -1
- package/lib/components/ModelCompareV3/assets/poe.svg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/port.svg.js +1 -1
- package/lib/components/ModelCompareV3/assets/port.svg.mjs +2 -2
- package/lib/components/ModelCompareV3/data/CloudGateways.js +12 -12
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +8 -8
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js +3 -2
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js.map +1 -1
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs +3 -2
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js +4 -2
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs +4 -2
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js +2 -2
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.mjs +2 -2
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/express.js +3 -3
- package/lib/components/ModelCompareV3/data/products/express.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/express.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/express.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/express7.js +1 -1
- package/lib/components/ModelCompareV3/data/products/express7.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/express7.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/express7.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js +5 -3
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs +5 -3
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayLite.js +5 -3
- package/lib/components/ModelCompareV3/data/products/gatewayLite.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs +5 -3
- package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayMax.js +4 -2
- package/lib/components/ModelCompareV3/data/products/gatewayMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayMax.mjs +4 -2
- package/lib/components/ModelCompareV3/data/products/gatewayMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js +5 -3
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs +5 -3
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.js +3 -1
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.mjs +3 -1
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgFiber.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgFiber.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgFiber.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgFiber.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js +3 -3
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.js +4 -4
- package/lib/components/ModelCompareV3/data/products/udmPro.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs +4 -4
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.js +4 -4
- package/lib/components/ModelCompareV3/data/products/udmProMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +4 -4
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +4 -4
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +4 -4
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr.js +2 -2
- package/lib/components/ModelCompareV3/data/products/udr.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr.mjs +2 -2
- package/lib/components/ModelCompareV3/data/products/udr.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr7.js +2 -2
- package/lib/components/ModelCompareV3/data/products/udr7.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr7.mjs +2 -2
- package/lib/components/ModelCompareV3/data/products/udr7.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udw.js +3 -3
- package/lib/components/ModelCompareV3/data/products/udw.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udw.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udw.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/properties/powerMethodPoe.js +1 -1
- package/lib/components/ModelCompareV3/data/properties/powerMethodPoe.mjs +1 -1
- package/lib/components/ModelCompareV3/data/properties/readerPowerMethod.js +1 -1
- package/lib/components/ModelCompareV3/data/properties/readerPowerMethod.mjs +1 -1
- package/lib/components/ModelCompareV3/data/properties/redundantRj45Port.js +1 -1
- package/lib/components/ModelCompareV3/data/properties/redundantRj45Port.mjs +1 -1
- package/lib/components/Pagination/Pagination.js +3 -3
- package/lib/components/PriceRangeSlider/PriceRangeSlider.js +16 -16
- package/lib/components/ProductCard/ProductCard.js +7 -7
- 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/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +1 -1
- package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +1 -1
- package/lib/components/ProductSectionTabs/ProductSectionTabs.js +2 -2
- package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +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.stories.d.ts +5 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.d.ts +11 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +86 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +1 -0
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +72 -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 +6 -6
- package/lib/components/QuantityControls/QuantityControls.js.map +1 -1
- package/lib/components/QuantityControls/QuantityControls.mjs +2 -2
- package/lib/components/QuantityControls/QuantityControls.mjs.map +1 -1
- package/lib/components/QuantityControls/QuantityControls.types.d.ts +1 -1
- package/lib/components/QuantityInput/QuantityInput.js +6 -1
- package/lib/components/QuantityInput/QuantityInput.js.map +1 -1
- package/lib/components/QuantityInput/QuantityInput.mjs +6 -1
- package/lib/components/QuantityInput/QuantityInput.mjs.map +1 -1
- package/lib/components/RelatedProducts/RelatedProducts.js +5 -5
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
- 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 +4 -4
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/poe.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/poe.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/port.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/port.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +6 -6
- package/lib/components/ResourceCalculatorV1/translations/en.json.js +1 -1
- package/lib/components/ResourceCalculatorV1/translations/en.json.mjs +1 -1
- package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.js +5 -5
- package/lib/components/ScrollWrapper/ScrollWrapper.d.ts +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.js +34 -26
- package/lib/components/ScrollWrapper/ScrollWrapper.js.map +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.mjs +16 -8
- package/lib/components/ScrollWrapper/ScrollWrapper.mjs.map +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.types.d.ts +2 -0
- package/lib/components/Search/Input/Input.d.ts +1 -1
- package/lib/components/Search/Input/Input.js +8 -8
- package/lib/components/Search/Input/Input.js.map +1 -1
- package/lib/components/Search/Input/Input.mjs +4 -4
- package/lib/components/Search/Input/Input.mjs.map +1 -1
- package/lib/components/Search/Input/Input.styles.js +0 -1
- package/lib/components/Search/Input/Input.styles.js.map +1 -1
- package/lib/components/Search/Input/Input.styles.mjs +0 -1
- package/lib/components/Search/Input/Input.styles.mjs.map +1 -1
- package/lib/components/Search/Input/Input.types.d.ts +3 -2
- 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 +20 -20
- 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/header/arrow.svg.js +27 -0
- package/lib/constants/icons/header/arrow.svg.js.map +1 -0
- package/lib/constants/icons/header/arrow.svg.mjs +3 -0
- package/lib/constants/icons/header/arrow.svg.mjs.map +1 -0
- package/lib/constants/icons/header/index.d.ts +1 -0
- package/lib/constants/icons/header/index.js +9 -0
- package/lib/constants/icons/header/index.js.map +1 -1
- package/lib/constants/icons/header/index.mjs +2 -0
- package/lib/constants/icons/header/index.mjs.map +1 -1
- 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 +17 -0
- package/lib/constants/proStoreCategories/mapping/filters.js +17 -0
- package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/filters.mjs +17 -0
- package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.d.ts +5 -2
- package/lib/constants/proStoreCategories/mapping/index.js +55 -51
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +54 -49
- package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/mapping.d.ts +5 -0
- package/lib/constants/proStoreCategories/mapping/redirects.js +18 -3
- package/lib/constants/proStoreCategories/mapping/redirects.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/redirects.mjs +18 -3
- package/lib/constants/proStoreCategories/mapping/redirects.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.d.ts +10 -9
- package/lib/constants/proStoreCategories/mapping/unifi.js +10 -9
- package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs +10 -9
- package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js +8 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.mjs +8 -2
- package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.js +7 -0
- package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.mjs +7 -1
- package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.js +8 -1
- package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.mjs +8 -2
- package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +7 -2
- package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs +7 -3
- package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.js +8 -1
- package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.mjs +8 -2
- package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +8 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +8 -2
- package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.js +8 -1
- package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.mjs +8 -2
- package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js +8 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.mjs +8 -2
- package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js +7 -0
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +7 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +8 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +8 -2
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +8 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +8 -2
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/constants/proStoreFilters/mapping.d.ts +56 -6
- package/lib/constants/proStoreFilters/mapping.js +142 -14
- package/lib/constants/proStoreFilters/mapping.js.map +1 -1
- package/lib/constants/proStoreFilters/mapping.mjs +142 -14
- package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
- package/lib/constants/theme.js +4 -0
- package/lib/constants/theme.js.map +1 -1
- package/lib/constants/theme.mjs +4 -0
- package/lib/constants/theme.mjs.map +1 -1
- package/lib/contexts/MenuContext/context.js +34 -34
- package/lib/contexts/MenuContext/context.js.map +1 -1
- package/lib/contexts/MenuContext/context.mjs +1 -1
- package/lib/contexts/MenuContext/context.mjs.map +1 -1
- package/lib/contexts/MenuContext/mapping.js.map +1 -1
- package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
- package/lib/helpers/index.js +1 -0
- package/lib/helpers/index.js.map +1 -1
- package/lib/helpers/index.mjs +1 -1
- package/lib/helpers/proStoreCategories.js +2 -2
- package/lib/helpers/ux.d.ts +8 -0
- package/lib/helpers/ux.js +15 -0
- package/lib/helpers/ux.js.map +1 -1
- package/lib/helpers/ux.mjs +15 -1
- package/lib/helpers/ux.mjs.map +1 -1
- 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/nextjs/ssr/registry.js +2 -2
- package/package.json +1 -1
- package/lib/assets/aggregation.jpg +0 -0
- package/lib/assets/icons/menu/icon-globe.svg.js.map +0 -1
- package/lib/assets/icons/menu/icon-globe.svg.mjs +0 -3
- package/lib/assets/icons/menu/icon-globe.svg.mjs.map +0 -1
- package/lib/components/ModelCompareV3/assets/Switching/aggregation.jpg.js.map +0 -1
- package/lib/components/ModelCompareV3/assets/Switching/aggregation.jpg.mjs +0 -3
- package/lib/components/ModelCompareV3/assets/Switching/aggregation.jpg.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.js +0 -117
- package/lib/components/ModelCompareV3/data/products/aggregation.js.map +0 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.mjs +0 -109
- package/lib/components/ModelCompareV3/data/products/aggregation.mjs.map +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var merge = require('lodash/merge');
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
var reactUse = require('react-use');
|
|
7
7
|
require('./Slider/index.js');
|
|
8
8
|
var StorageSliders_constants = require('./StorageSliders.constants.js');
|
|
@@ -23,7 +23,7 @@ const StorageSliders = function StorageSliders2({
|
|
|
23
23
|
translations: initialTranslations,
|
|
24
24
|
disabled
|
|
25
25
|
}) {
|
|
26
|
-
const translations =
|
|
26
|
+
const translations = React.useMemo(() => {
|
|
27
27
|
return merge__default["default"](StorageSliders_constants.defaultStorageSlidersTranslations, initialTranslations);
|
|
28
28
|
}, [initialTranslations]);
|
|
29
29
|
const {
|
|
@@ -40,9 +40,9 @@ const StorageSliders = function StorageSliders2({
|
|
|
40
40
|
maxHdds,
|
|
41
41
|
hddTerabytes
|
|
42
42
|
} = StorageSliders_context.useStorageSliders();
|
|
43
|
-
const [localHours, setLocalHours] =
|
|
43
|
+
const [localHours, setLocalHours] = React.useState(hours);
|
|
44
44
|
reactUse.useDebounce(() => setHours(localHours), 5, [localHours]);
|
|
45
|
-
const [storageItemHoverIndex, setStorageItemHoverIndex] =
|
|
45
|
+
const [storageItemHoverIndex, setStorageItemHoverIndex] = React.useState(null);
|
|
46
46
|
return /* @__PURE__ */jsxRuntime.jsxs(StorageSliders_styles.Wrap, {
|
|
47
47
|
className,
|
|
48
48
|
children: [/* @__PURE__ */jsxRuntime.jsxs(StorageSliders_styles.SlidersContainer, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
var reactUse = require('react-use');
|
|
6
6
|
var Tooltip_styles = require('./Tooltip.styles.js');
|
|
7
7
|
"use strict";
|
|
@@ -10,13 +10,13 @@ const Tooltip = ({
|
|
|
10
10
|
tooltipClassName,
|
|
11
11
|
...rest
|
|
12
12
|
}) => {
|
|
13
|
-
const target =
|
|
14
|
-
const tooltipRef =
|
|
13
|
+
const target = React.useRef(null);
|
|
14
|
+
const tooltipRef = React.useRef(null);
|
|
15
15
|
const {
|
|
16
16
|
y: scrollY
|
|
17
17
|
} = reactUse.useWindowScroll();
|
|
18
|
-
const [isOpen, setIsOpen] =
|
|
19
|
-
|
|
18
|
+
const [isOpen, setIsOpen] = React.useState();
|
|
19
|
+
React.useEffect(() => {
|
|
20
20
|
setIsOpen(false);
|
|
21
21
|
}, [
|
|
22
22
|
// HACK: needed scrollY to retrigger the effect
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var LineLoader = require('@ubnt/ui-components/LineLoader');
|
|
5
5
|
var Tooltip = require('@ubnt/ui-components/Tooltip');
|
|
6
|
-
var
|
|
6
|
+
var React = require('react');
|
|
7
7
|
var reactUse = require('react-use');
|
|
8
8
|
require('../../../../assets/icons/carouselArrow.svg.js');
|
|
9
9
|
var layout = require('../../../../constants/layout.js');
|
|
@@ -24,13 +24,13 @@ const VariantCompatibility = ({
|
|
|
24
24
|
compatibleProducts,
|
|
25
25
|
hideBottomSeparator
|
|
26
26
|
}) => {
|
|
27
|
-
const [canExpand, setCanExpand] =
|
|
28
|
-
const [isExpanded, setIsExpanded] =
|
|
29
|
-
const overflowRef =
|
|
27
|
+
const [canExpand, setCanExpand] = React.useState(false);
|
|
28
|
+
const [isExpanded, setIsExpanded] = React.useState(false);
|
|
29
|
+
const overflowRef = React.useRef(null);
|
|
30
30
|
const {
|
|
31
31
|
width: windowWidth
|
|
32
32
|
} = reactUse.useWindowSize();
|
|
33
|
-
|
|
33
|
+
React.useEffect(() => {
|
|
34
34
|
const overflowEl = overflowRef.current;
|
|
35
35
|
if (!overflowEl) return;
|
|
36
36
|
const canvas = document.createElement("canvas");
|
|
@@ -51,7 +51,7 @@ const VariantCompatibility = ({
|
|
|
51
51
|
children: [/* @__PURE__ */jsxRuntime.jsxs(Compatibility_styles.TextOverflow, {
|
|
52
52
|
ref: overflowRef,
|
|
53
53
|
$overflow: compatibleProducts.length > 1,
|
|
54
|
-
children: ["Compatibility", !isExpanded && ": ", !isExpanded && compatibleProducts.map((product, i, els) => /* @__PURE__ */jsxRuntime.jsxs(
|
|
54
|
+
children: ["Compatibility", !isExpanded && ": ", !isExpanded && compatibleProducts.map((product, i, els) => /* @__PURE__ */jsxRuntime.jsxs(React.Fragment, {
|
|
55
55
|
children: [/* @__PURE__ */jsxRuntime.jsx(CompatibleProductLink, {
|
|
56
56
|
renderImage,
|
|
57
57
|
product
|
|
@@ -84,7 +84,7 @@ const CompatibleProductLink = ({
|
|
|
84
84
|
product
|
|
85
85
|
}) => {
|
|
86
86
|
const isMobile = reactUse.useMedia(layout.BREAKPOINTS.MOBILE_AND_DOWN, false);
|
|
87
|
-
const [loading, setLoading] =
|
|
87
|
+
const [loading, setLoading] = React.useState(false);
|
|
88
88
|
return /* @__PURE__ */jsxRuntime.jsx(Tooltip.Tooltip, {
|
|
89
89
|
className: Compatibility_styles.TOOLTIP_CLASS_NAME,
|
|
90
90
|
motif: "light",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var dinero_js = require('dinero.js');
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
require('../../../assets/icons/reload.svg.js');
|
|
7
7
|
var url = require('../../../constants/url.js');
|
|
8
8
|
require('../../../utils/money/index.js');
|
|
@@ -70,37 +70,37 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
|
|
|
70
70
|
backInStockProps,
|
|
71
71
|
getEndPrice
|
|
72
72
|
}) {
|
|
73
|
-
const handleOnClick =
|
|
73
|
+
const handleOnClick = React.useCallback(() => {
|
|
74
74
|
if (!selected) {
|
|
75
75
|
onClick?.();
|
|
76
76
|
}
|
|
77
77
|
}, [onClick, selected]);
|
|
78
|
-
const subtitle =
|
|
78
|
+
const subtitle = React.useMemo(() => {
|
|
79
79
|
if (selected) {
|
|
80
80
|
return variant.getSkuText(variant$1.sku || variant$1.baseSku, variant$1.skuExtraLabel);
|
|
81
81
|
}
|
|
82
82
|
return variant$1.callout;
|
|
83
83
|
}, [selected, variant$1.baseSku, variant$1.callout, variant$1.sku, variant$1.skuExtraLabel]);
|
|
84
|
-
const [localQuantity, setLocalQuantity] =
|
|
85
|
-
const [localUpsellQuantity, setLocalUpsellQuantity] =
|
|
86
|
-
const endVariantPrice =
|
|
84
|
+
const [localQuantity, setLocalQuantity] = React.useState(DEFAULT_LOCAL_QUANTITY);
|
|
85
|
+
const [localUpsellQuantity, setLocalUpsellQuantity] = React.useState(DEFAULT_LOCAL_UPSELL_QUANTITY);
|
|
86
|
+
const endVariantPrice = React.useMemo(() => {
|
|
87
87
|
return getEndPrice(variant$1.displayPrice);
|
|
88
88
|
}, [getEndPrice, variant$1.displayPrice]);
|
|
89
|
-
const [showUpsellModal, setShowUpsellModal] =
|
|
89
|
+
const [showUpsellModal, setShowUpsellModal] = React.useState(false);
|
|
90
90
|
const {
|
|
91
91
|
reset: resetStorageSliders,
|
|
92
92
|
hdds,
|
|
93
93
|
setHdds
|
|
94
94
|
} = StorageSliders_context.useStorageSliders();
|
|
95
|
-
|
|
95
|
+
React.useEffect(() => {
|
|
96
96
|
setLocalUpsellQuantity(hdds * localQuantity);
|
|
97
97
|
}, [hdds, localQuantity]);
|
|
98
|
-
const handleUpsellReset =
|
|
98
|
+
const handleUpsellReset = React.useCallback(() => {
|
|
99
99
|
setLocalUpsellQuantity(DEFAULT_LOCAL_UPSELL_QUANTITY);
|
|
100
100
|
resetStorageSliders();
|
|
101
101
|
}, [resetStorageSliders]);
|
|
102
|
-
const [bundleOfferSelected, setBundleOfferSelected] =
|
|
103
|
-
|
|
102
|
+
const [bundleOfferSelected, setBundleOfferSelected] = React.useState(false);
|
|
103
|
+
React.useEffect(() => {
|
|
104
104
|
const bundleOffer = variant$1.bundleOffer;
|
|
105
105
|
let selected2 = !!bundleOffer?.preSelect;
|
|
106
106
|
if (bundleOffer?.requiresLogin || bundleOffer?.remainingRedeemQty === 0) {
|
|
@@ -108,19 +108,19 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
|
|
|
108
108
|
}
|
|
109
109
|
setBundleOfferSelected(selected2);
|
|
110
110
|
}, [variant$1.bundleOffer]);
|
|
111
|
-
const bundleOfferQuantity =
|
|
111
|
+
const bundleOfferQuantity = React.useMemo(() => {
|
|
112
112
|
if (!variant$1.bundleOffer || !bundleOfferSelected) {
|
|
113
113
|
return 0;
|
|
114
114
|
}
|
|
115
115
|
return getBundleOfferQuantity.getBundleOfferQuantity(variant$1.bundleOffer, localQuantity);
|
|
116
116
|
}, [bundleOfferSelected, localQuantity, variant$1.bundleOffer]);
|
|
117
|
-
|
|
117
|
+
React.useEffect(() => {
|
|
118
118
|
setLocalQuantity(DEFAULT_LOCAL_QUANTITY);
|
|
119
119
|
handleUpsellReset();
|
|
120
120
|
}, [handleUpsellReset,
|
|
121
121
|
// HACK: needed selected to retrigger the effect
|
|
122
122
|
selected]);
|
|
123
|
-
const handleAddToCart =
|
|
123
|
+
const handleAddToCart = React.useCallback(async () => {
|
|
124
124
|
if (localQuantity < 1) return;
|
|
125
125
|
const addItems = [{
|
|
126
126
|
variantId: variant$1.variantId,
|
|
@@ -142,14 +142,14 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
|
|
|
142
142
|
setLocalQuantity(DEFAULT_LOCAL_QUANTITY);
|
|
143
143
|
handleUpsellReset();
|
|
144
144
|
}, [handleUpsellReset, bundleOfferQuantity, localQuantity, localUpsellQuantity, onVariantAddToCart, variant$1.bundleOffer, variant$1.upsellVariant, variant$1.variantId]);
|
|
145
|
-
const [popupProduct, setPopupProduct] =
|
|
146
|
-
const isPopupOpen =
|
|
147
|
-
|
|
145
|
+
const [popupProduct, setPopupProduct] = React.useState(variant$1.inlineAccessories?.activePopupProduct);
|
|
146
|
+
const isPopupOpen = React.useMemo(() => !!variant$1.inlineAccessories?.activePopupProduct, [variant$1.inlineAccessories?.activePopupProduct]);
|
|
147
|
+
React.useEffect(() => {
|
|
148
148
|
if (variant$1.inlineAccessories?.activePopupProduct !== void 0) {
|
|
149
149
|
setPopupProduct(variant$1.inlineAccessories?.activePopupProduct);
|
|
150
150
|
}
|
|
151
151
|
}, [variant$1.inlineAccessories?.activePopupProduct]);
|
|
152
|
-
const campaignDiscountPrice =
|
|
152
|
+
const campaignDiscountPrice = React.useMemo(() => {
|
|
153
153
|
const {
|
|
154
154
|
displayPrice,
|
|
155
155
|
campaignDiscount
|
|
@@ -164,10 +164,10 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
|
|
|
164
164
|
}
|
|
165
165
|
return misc.money(discountAllocation);
|
|
166
166
|
}, [localQuantity, variant$1]);
|
|
167
|
-
const endCampaignDiscountPrice =
|
|
167
|
+
const endCampaignDiscountPrice = React.useMemo(() => {
|
|
168
168
|
return campaignDiscountPrice && getEndPrice(campaignDiscountPrice);
|
|
169
169
|
}, [campaignDiscountPrice, getEndPrice]);
|
|
170
|
-
const campaignUpsellDiscountPrice =
|
|
170
|
+
const campaignUpsellDiscountPrice = React.useMemo(() => {
|
|
171
171
|
if (!variant$1.upsellVariant) {
|
|
172
172
|
return null;
|
|
173
173
|
}
|
|
@@ -180,10 +180,10 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
|
|
|
180
180
|
const multipliedPrice = dinero_js.multiply(misc.getDinero(campaignDiscount.fixedAmountPrice, campaignDiscount.fixedAmountCurrency), campaignDiscount.maxProductQty ? Math.min(localUpsellQuantity, campaignDiscount.maxProductQty) : localUpsellQuantity);
|
|
181
181
|
return misc.money(multipliedPrice);
|
|
182
182
|
}, [localUpsellQuantity, variant$1.upsellVariant]);
|
|
183
|
-
const endCampaignUpsellDiscountPrice =
|
|
183
|
+
const endCampaignUpsellDiscountPrice = React.useMemo(() => {
|
|
184
184
|
return campaignUpsellDiscountPrice && getEndPrice(campaignUpsellDiscountPrice);
|
|
185
185
|
}, [campaignUpsellDiscountPrice, getEndPrice]);
|
|
186
|
-
const totalPrice =
|
|
186
|
+
const totalPrice = React.useMemo(() => {
|
|
187
187
|
const {
|
|
188
188
|
displayPrice,
|
|
189
189
|
upsellVariant,
|
|
@@ -203,13 +203,13 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
|
|
|
203
203
|
});
|
|
204
204
|
return misc.money(dinero_js.add(dinero_js.add(dinero_js.add(variantPriceTotalWithDiscount, upsellPriceTotalWithDiscount), inlineAccessoriesPriceTotal), bundleOfferPriceTotal));
|
|
205
205
|
}, [campaignDiscountPrice, campaignUpsellDiscountPrice, bundleOfferQuantity, localQuantity, localUpsellQuantity, variant$1]);
|
|
206
|
-
const originalPrice =
|
|
206
|
+
const originalPrice = React.useMemo(() => {
|
|
207
207
|
return variant$1.originalPrice && getEndPrice(variant$1.originalPrice);
|
|
208
208
|
}, [getEndPrice, variant$1.originalPrice]);
|
|
209
|
-
const savedPrice =
|
|
209
|
+
const savedPrice = React.useMemo(() => {
|
|
210
210
|
return !!originalPrice && originalPrice.price.currency === endVariantPrice.price.currency && originalPrice.price.amount > endVariantPrice.price.amount ? dinero_js.subtract(misc.getDinero(originalPrice.price.amount, originalPrice.price.currency), misc.getDinero(endVariantPrice.price.amount, endVariantPrice.price.currency)) : null;
|
|
211
211
|
}, [originalPrice, endVariantPrice.price.currency, endVariantPrice.price.amount]);
|
|
212
|
-
const jsxVariantFooter =
|
|
212
|
+
const jsxVariantFooter = React.useMemo(() => {
|
|
213
213
|
const showBackInStock = !!backInStockProps && (!variant$1.isInStock || !!variant$1.isSoldOut || !!variant$1.isComingSoon);
|
|
214
214
|
const showTotalPrice = totalPrice.amount !== variant$1.displayPrice.amount;
|
|
215
215
|
const cartButton = {
|
|
@@ -275,16 +275,16 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
|
|
|
275
275
|
})]
|
|
276
276
|
});
|
|
277
277
|
}, [backInStockProps, variant$1.isInStock, variant$1.isSoldOut, variant$1.isComingSoon, variant$1.comingSoonDate, variant$1.isSubscription, variant$1.isRegionNotAvailable, variant$1.displayPrice.amount, localQuantity, translations, totalPrice, wizardProps, handleAddToCart, getEndPrice]);
|
|
278
|
-
const getActiveCategoryItems =
|
|
278
|
+
const getActiveCategoryItems = React.useCallback(items => {
|
|
279
279
|
return items.find(categorySubItem => activeCategories?.includes(categorySubItem.id))?.items || [];
|
|
280
280
|
}, [activeCategories]);
|
|
281
|
-
const secondLevelCategories =
|
|
281
|
+
const secondLevelCategories = React.useMemo(() => {
|
|
282
282
|
if (!variant$1?.category?.items?.length) {
|
|
283
283
|
return void 0;
|
|
284
284
|
}
|
|
285
285
|
return variant$1?.category?.items;
|
|
286
286
|
}, [variant$1?.category?.items]);
|
|
287
|
-
const secondLevelNavigation =
|
|
287
|
+
const secondLevelNavigation = React.useMemo(() => {
|
|
288
288
|
if (!secondLevelCategories) {
|
|
289
289
|
return void 0;
|
|
290
290
|
}
|
|
@@ -306,13 +306,13 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
|
|
|
306
306
|
}
|
|
307
307
|
};
|
|
308
308
|
}, [activeCategories, categoryChangeHandler, secondLevelCategories, variant$1.isInStock]);
|
|
309
|
-
const thirdLevelCategories =
|
|
309
|
+
const thirdLevelCategories = React.useMemo(() => {
|
|
310
310
|
if (secondLevelCategories) {
|
|
311
311
|
return getActiveCategoryItems(secondLevelCategories);
|
|
312
312
|
}
|
|
313
313
|
return void 0;
|
|
314
314
|
}, [getActiveCategoryItems, secondLevelCategories]);
|
|
315
|
-
const thirdLevelButtons =
|
|
315
|
+
const thirdLevelButtons = React.useMemo(() => {
|
|
316
316
|
if (!thirdLevelCategories) {
|
|
317
317
|
return void 0;
|
|
318
318
|
}
|
|
@@ -326,13 +326,13 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
|
|
|
326
326
|
onClick: categoryChangeHandler
|
|
327
327
|
};
|
|
328
328
|
}, [activeCategories, categoryChangeHandler, thirdLevelCategories]);
|
|
329
|
-
const fourthLevelCategories =
|
|
329
|
+
const fourthLevelCategories = React.useMemo(() => {
|
|
330
330
|
if (thirdLevelCategories) {
|
|
331
331
|
return getActiveCategoryItems(thirdLevelCategories);
|
|
332
332
|
}
|
|
333
333
|
return void 0;
|
|
334
334
|
}, [thirdLevelCategories, getActiveCategoryItems]);
|
|
335
|
-
const fourthLevelButtons =
|
|
335
|
+
const fourthLevelButtons = React.useMemo(() => {
|
|
336
336
|
if (!fourthLevelCategories) {
|
|
337
337
|
return void 0;
|
|
338
338
|
}
|
|
@@ -346,13 +346,13 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
|
|
|
346
346
|
onClick: categoryChangeHandler
|
|
347
347
|
};
|
|
348
348
|
}, [activeCategories, categoryChangeHandler, fourthLevelCategories]);
|
|
349
|
-
const title =
|
|
349
|
+
const title = React.useMemo(() => {
|
|
350
350
|
if (!variant$1?.category?.title || selected) {
|
|
351
351
|
return variant$1.title;
|
|
352
352
|
}
|
|
353
353
|
return variant$1.category.title;
|
|
354
354
|
}, [selected, variant$1?.category?.title, variant$1.title]);
|
|
355
|
-
const price =
|
|
355
|
+
const price = React.useMemo(() => {
|
|
356
356
|
const endPrice = endVariantPrice;
|
|
357
357
|
const endFromPrice = variant$1?.fromPrice && getEndPrice(variant$1.fromPrice);
|
|
358
358
|
const price2 = endPrice.formattedPrice;
|
|
@@ -366,7 +366,7 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
|
|
|
366
366
|
totalWithTax: priceWithTaxString
|
|
367
367
|
};
|
|
368
368
|
}, [selected, translations, variant$1.fromPrice, variant$1.isSubscription, endVariantPrice, getEndPrice]);
|
|
369
|
-
const image =
|
|
369
|
+
const image = React.useMemo(() => {
|
|
370
370
|
const variantImages = variant$1.images?.filter(image2 => !image2.isVideo);
|
|
371
371
|
const foundVariantImage = variantImages?.find(image2 => variant$1?.currentVariantGalleryIds?.includes(image2.id));
|
|
372
372
|
if (foundVariantImage) {
|
|
@@ -374,7 +374,7 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
|
|
|
374
374
|
}
|
|
375
375
|
return variantImages?.[0];
|
|
376
376
|
}, [variant$1?.currentVariantGalleryIds, variant$1.images]);
|
|
377
|
-
const handleInlineAccessoriesCheckbox =
|
|
377
|
+
const handleInlineAccessoriesCheckbox = React.useCallback(accessory => {
|
|
378
378
|
if (accessory.isSelected) {
|
|
379
379
|
accessory.handleSelect(0);
|
|
380
380
|
} else {
|
|
@@ -382,13 +382,13 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
|
|
|
382
382
|
accessory.handleSelect(quantity);
|
|
383
383
|
}
|
|
384
384
|
}, [localQuantity]);
|
|
385
|
-
|
|
385
|
+
React.useEffect(() => {
|
|
386
386
|
const uiCareAccessory = variant$1?.inlineAccessories?.items?.find(accessory => accessory.isUICare);
|
|
387
387
|
if (uiCareAccessory?.isSelected) {
|
|
388
388
|
uiCareAccessory.handleSelect(localQuantity);
|
|
389
389
|
}
|
|
390
390
|
}, [localQuantity]);
|
|
391
|
-
const jsxDiscount =
|
|
391
|
+
const jsxDiscount = React.useMemo(() => {
|
|
392
392
|
const {
|
|
393
393
|
campaignDiscount,
|
|
394
394
|
shortTitle
|
|
@@ -415,7 +415,7 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
|
|
|
415
415
|
})]
|
|
416
416
|
});
|
|
417
417
|
}, [endCampaignDiscountPrice, localQuantity, translations, variant$1]);
|
|
418
|
-
const jsxUpsellDiscount =
|
|
418
|
+
const jsxUpsellDiscount = React.useMemo(() => {
|
|
419
419
|
if (!variant$1.upsellVariant) {
|
|
420
420
|
return null;
|
|
421
421
|
}
|
|
@@ -452,7 +452,7 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
|
|
|
452
452
|
})]
|
|
453
453
|
});
|
|
454
454
|
}, [localUpsellQuantity, setHdds, translations, variant$1.shortTitle, variant$1.title, variant$1.upsellVariant, endCampaignUpsellDiscountPrice]);
|
|
455
|
-
const jsxProductBundleNotes =
|
|
455
|
+
const jsxProductBundleNotes = React.useMemo(() => {
|
|
456
456
|
if (!variant$1.productBundleNotes?.length) {
|
|
457
457
|
return null;
|
|
458
458
|
}
|
|
@@ -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
|
require('../../assets/icons/carouselArrow.svg.js');
|
|
7
7
|
var StorageSliders_context = require('../StorageSliders/StorageSliders.context.js');
|
|
8
8
|
require('./Variant/index.js');
|
|
@@ -35,26 +35,26 @@ const VariantSelector = ({
|
|
|
35
35
|
language,
|
|
36
36
|
getEndPrice
|
|
37
37
|
}) => {
|
|
38
|
-
const translations =
|
|
38
|
+
const translations = React.useMemo(() => {
|
|
39
39
|
return merge__default["default"](VariantSelector_constants.defaultVariantSelectorTranslations, initialTranslations);
|
|
40
40
|
}, [initialTranslations]);
|
|
41
|
-
const allVariants =
|
|
42
|
-
const currentVariant =
|
|
41
|
+
const allVariants = React.useMemo(() => sections.flatMap(section => section.variants), [sections]);
|
|
42
|
+
const currentVariant = React.useMemo(() => {
|
|
43
43
|
return allVariants.find(variant => variant.id === selectedVariant);
|
|
44
44
|
}, [allVariants, selectedVariant]);
|
|
45
|
-
const isVariantSelected =
|
|
45
|
+
const isVariantSelected = React.useCallback(variant => {
|
|
46
46
|
return !!(variant.id === selectedVariant || selectedVariant && !!variant.otherIds?.includes(selectedVariant));
|
|
47
47
|
}, [selectedVariant]);
|
|
48
|
-
const shownSections =
|
|
48
|
+
const shownSections = React.useMemo(() => {
|
|
49
49
|
return sections.map(section => ({
|
|
50
50
|
...section,
|
|
51
51
|
variants: section.variants.filter(variant => !variant.isLegacy)
|
|
52
52
|
})).filter(section => !!section.variants.length);
|
|
53
53
|
}, [sections]);
|
|
54
|
-
const [isOlderModelSectionOpened, setIsOlderModelSectionOpened] =
|
|
54
|
+
const [isOlderModelSectionOpened, setIsOlderModelSectionOpened] = React.useState(!!currentVariant?.isLegacy);
|
|
55
55
|
const {
|
|
56
56
|
olderModels
|
|
57
|
-
} =
|
|
57
|
+
} = React.useMemo(() => {
|
|
58
58
|
const olderModels2 = [];
|
|
59
59
|
for (const variant of allVariants) {
|
|
60
60
|
if (variant?.isLegacy) {
|
|
@@ -65,13 +65,13 @@ const VariantSelector = ({
|
|
|
65
65
|
olderModels: olderModels2
|
|
66
66
|
};
|
|
67
67
|
}, [allVariants]);
|
|
68
|
-
const hasOlderModels =
|
|
69
|
-
const olderModelsButtonText =
|
|
68
|
+
const hasOlderModels = React.useMemo(() => !!olderModels.length, [olderModels]);
|
|
69
|
+
const olderModelsButtonText = React.useMemo(() => {
|
|
70
70
|
return VariantSelector_constants.getOlderModelsButtonText(collectionSlug, language) || {
|
|
71
71
|
title: translations.olderModels
|
|
72
72
|
};
|
|
73
73
|
}, [collectionSlug, language, translations.olderModels]);
|
|
74
|
-
const handleOlderModelsButtonClick =
|
|
74
|
+
const handleOlderModelsButtonClick = React.useCallback(() => {
|
|
75
75
|
if (isOlderModelSectionOpened) {
|
|
76
76
|
const variant = allVariants.find(variant2 => !variant2.isLegacy && variant2.isInStock) || allVariants.find(variant2 => !variant2.isLegacy);
|
|
77
77
|
if (variant) {
|
|
@@ -80,20 +80,20 @@ const VariantSelector = ({
|
|
|
80
80
|
}
|
|
81
81
|
setIsOlderModelSectionOpened(prev => !prev);
|
|
82
82
|
}, [allVariants, isOlderModelSectionOpened, onVariantSelect]);
|
|
83
|
-
|
|
83
|
+
React.useEffect(() => {
|
|
84
84
|
setIsOlderModelSectionOpened(false);
|
|
85
85
|
}, [
|
|
86
86
|
// HACK: needed collectionSlug to retrigger the effect
|
|
87
87
|
collectionSlug]);
|
|
88
|
-
|
|
88
|
+
React.useEffect(() => {
|
|
89
89
|
if (currentVariant?.isLegacy) {
|
|
90
90
|
setIsOlderModelSectionOpened(true);
|
|
91
91
|
}
|
|
92
92
|
}, [currentVariant?.isLegacy]);
|
|
93
93
|
return /* @__PURE__ */jsxRuntime.jsxs(VariantSelector_styles.Container, {
|
|
94
|
-
children: [shownSections.map((section, i) => /* @__PURE__ */jsxRuntime.jsx(
|
|
94
|
+
children: [shownSections.map((section, i) => /* @__PURE__ */jsxRuntime.jsx(React.Fragment, {
|
|
95
95
|
children: /* @__PURE__ */jsxRuntime.jsx(VariantSelector_styles.Wrapper, {
|
|
96
|
-
children: section.variants.map(variant => /* @__PURE__ */jsxRuntime.jsx(
|
|
96
|
+
children: section.variants.map(variant => /* @__PURE__ */jsxRuntime.jsx(React.Fragment, {
|
|
97
97
|
children: /* @__PURE__ */jsxRuntime.jsx(StorageSliders_context.StorageSlidersProvider, {
|
|
98
98
|
hddTerabytes: variant.upsellVariant?.hddTerabytes,
|
|
99
99
|
sku: variant.baseSku,
|
|
@@ -135,7 +135,7 @@ const VariantSelector = ({
|
|
|
135
135
|
})]
|
|
136
136
|
}), hasOlderModels && isOlderModelSectionOpened && /* @__PURE__ */jsxRuntime.jsx(VariantSelector_styles.Wrapper, {
|
|
137
137
|
topMargin: true,
|
|
138
|
-
children: olderModels.map(variant => /* @__PURE__ */jsxRuntime.jsx(
|
|
138
|
+
children: olderModels.map(variant => /* @__PURE__ */jsxRuntime.jsx(React.Fragment, {
|
|
139
139
|
children: /* @__PURE__ */jsxRuntime.jsx(StorageSliders_context.StorageSlidersProvider, {
|
|
140
140
|
sku: variant.baseSku,
|
|
141
141
|
children: /* @__PURE__ */jsxRuntime.jsx(Variant.VariantSelectorVariant, {
|
|
@@ -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 time = require('../../helpers/time.js');
|
|
6
6
|
var useTestMediaElementVolumeSetter = require('../../hooks/useTestMediaElementVolumeSetter.js');
|
|
7
7
|
require('./assets/back.svg.js');
|
|
@@ -32,7 +32,7 @@ var VolumeOffIcon__default = /*#__PURE__*/_interopDefault(VolumeOffIcon);
|
|
|
32
32
|
var VolumeOnIcon__default = /*#__PURE__*/_interopDefault(VolumeOnIcon);
|
|
33
33
|
var FullscreenOnIcon__default = /*#__PURE__*/_interopDefault(FullscreenOnIcon);
|
|
34
34
|
"use strict";
|
|
35
|
-
const VideoPlayer =
|
|
35
|
+
const VideoPlayer = React.forwardRef(function VideoPlayer2({
|
|
36
36
|
isOpen,
|
|
37
37
|
title,
|
|
38
38
|
src,
|
|
@@ -42,13 +42,13 @@ const VideoPlayer = react.forwardRef(function VideoPlayer2({
|
|
|
42
42
|
showCloseButton = false,
|
|
43
43
|
motif = "dark"
|
|
44
44
|
}, ref) {
|
|
45
|
-
const [isPlaying, setIsPlaying] =
|
|
46
|
-
const localVideoRef =
|
|
45
|
+
const [isPlaying, setIsPlaying] = React.useState(true);
|
|
46
|
+
const localVideoRef = React.useRef(null);
|
|
47
47
|
const videoRef = ref ?? localVideoRef;
|
|
48
|
-
const [currentTimeSec, setCurrentTimeSec] =
|
|
49
|
-
const [durationSec, setDurationSec] =
|
|
48
|
+
const [currentTimeSec, setCurrentTimeSec] = React.useState(0);
|
|
49
|
+
const [durationSec, setDurationSec] = React.useState(0);
|
|
50
50
|
const isVolumeChangeSupported = useTestMediaElementVolumeSetter.useTestMediaElementVolumeSetter();
|
|
51
|
-
|
|
51
|
+
React.useEffect(() => {
|
|
52
52
|
if (!videoRef || !("current" in videoRef) || !videoRef.current) {
|
|
53
53
|
return;
|
|
54
54
|
}
|
|
@@ -63,7 +63,7 @@ const VideoPlayer = react.forwardRef(function VideoPlayer2({
|
|
|
63
63
|
video?.removeEventListener("webkitendfullscreen", handleFullscreenChange);
|
|
64
64
|
};
|
|
65
65
|
}, [videoRef]);
|
|
66
|
-
|
|
66
|
+
React.useEffect(() => {
|
|
67
67
|
if (!videoRef || !("current" in videoRef)) {
|
|
68
68
|
return;
|
|
69
69
|
}
|
|
@@ -78,7 +78,7 @@ const VideoPlayer = react.forwardRef(function VideoPlayer2({
|
|
|
78
78
|
video?.removeEventListener("ended", handleClose);
|
|
79
79
|
};
|
|
80
80
|
}, [videoRef, onClose]);
|
|
81
|
-
|
|
81
|
+
React.useEffect(() => {
|
|
82
82
|
if (!videoRef || !("current" in videoRef)) {
|
|
83
83
|
return;
|
|
84
84
|
}
|
|
@@ -91,7 +91,7 @@ const VideoPlayer = react.forwardRef(function VideoPlayer2({
|
|
|
91
91
|
video?.removeEventListener("timeupdate", updateTime);
|
|
92
92
|
};
|
|
93
93
|
}, [videoRef]);
|
|
94
|
-
const handlePlay =
|
|
94
|
+
const handlePlay = React.useCallback(() => {
|
|
95
95
|
try {
|
|
96
96
|
if (videoRef && "current" in videoRef) {
|
|
97
97
|
videoRef?.current?.play();
|
|
@@ -101,7 +101,7 @@ const VideoPlayer = react.forwardRef(function VideoPlayer2({
|
|
|
101
101
|
console.error(e);
|
|
102
102
|
}
|
|
103
103
|
}, [videoRef]);
|
|
104
|
-
const handlePause =
|
|
104
|
+
const handlePause = React.useCallback(() => {
|
|
105
105
|
if (!videoRef || !("current" in videoRef)) {
|
|
106
106
|
return;
|
|
107
107
|
}
|
|
@@ -112,7 +112,7 @@ const VideoPlayer = react.forwardRef(function VideoPlayer2({
|
|
|
112
112
|
console.log(e);
|
|
113
113
|
}
|
|
114
114
|
}, [videoRef]);
|
|
115
|
-
|
|
115
|
+
React.useEffect(() => {
|
|
116
116
|
if (!videoRef || !("current" in videoRef)) {
|
|
117
117
|
return;
|
|
118
118
|
}
|
|
@@ -127,7 +127,7 @@ const VideoPlayer = react.forwardRef(function VideoPlayer2({
|
|
|
127
127
|
handlePlay();
|
|
128
128
|
}
|
|
129
129
|
}, [handlePause, handlePlay, isOpen, videoRef]);
|
|
130
|
-
const handlePlayback =
|
|
130
|
+
const handlePlayback = React.useCallback(e => {
|
|
131
131
|
e?.stopPropagation();
|
|
132
132
|
if (!videoRef || !("current" in videoRef)) {
|
|
133
133
|
return;
|
|
@@ -138,7 +138,7 @@ const VideoPlayer = react.forwardRef(function VideoPlayer2({
|
|
|
138
138
|
handlePause();
|
|
139
139
|
}
|
|
140
140
|
}, [handlePause, handlePlay, videoRef]);
|
|
141
|
-
const handleFullscreen =
|
|
141
|
+
const handleFullscreen = React.useCallback(async e => {
|
|
142
142
|
e.stopPropagation();
|
|
143
143
|
if (!videoRef || !("current" in videoRef)) {
|
|
144
144
|
return;
|
|
@@ -170,7 +170,7 @@ const VideoPlayer = react.forwardRef(function VideoPlayer2({
|
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
}, [videoRef]);
|
|
173
|
-
const handleSeek =
|
|
173
|
+
const handleSeek = React.useCallback(e => {
|
|
174
174
|
e.stopPropagation();
|
|
175
175
|
if (!videoRef || !("current" in videoRef)) {
|
|
176
176
|
return;
|
|
@@ -182,9 +182,9 @@ const VideoPlayer = react.forwardRef(function VideoPlayer2({
|
|
|
182
182
|
setCurrentTimeSec(time);
|
|
183
183
|
}
|
|
184
184
|
}, [videoRef]);
|
|
185
|
-
const [isMuted, setIsMuted] =
|
|
186
|
-
const [volume, setVolume] =
|
|
187
|
-
const handleVolumeClick =
|
|
185
|
+
const [isMuted, setIsMuted] = React.useState(false);
|
|
186
|
+
const [volume, setVolume] = React.useState(1);
|
|
187
|
+
const handleVolumeClick = React.useCallback(e => {
|
|
188
188
|
e.stopPropagation();
|
|
189
189
|
if (!videoRef || !("current" in videoRef)) {
|
|
190
190
|
return;
|
|
@@ -201,7 +201,7 @@ const VideoPlayer = react.forwardRef(function VideoPlayer2({
|
|
|
201
201
|
setIsMuted(true);
|
|
202
202
|
}
|
|
203
203
|
}, [isMuted, videoRef]);
|
|
204
|
-
const handleVolumeChange =
|
|
204
|
+
const handleVolumeChange = React.useCallback(e => {
|
|
205
205
|
e.stopPropagation();
|
|
206
206
|
if (!videoRef || !("current" in videoRef)) {
|
|
207
207
|
return;
|
|
@@ -52,3 +52,4 @@ export * as VideoPlayer from "./VideoPlayerNew";
|
|
|
52
52
|
export * as ResourceCalculatorV1 from "./ResourceCalculatorV1";
|
|
53
53
|
export * as CartIcon from "./CartIcon";
|
|
54
54
|
export * as AccountMenu from "./Header/AccountMenu";
|
|
55
|
+
export * as ProductTechSpecsV2 from "./ProductTechSpecsV2";
|
package/lib/components/index.js
CHANGED
|
@@ -54,6 +54,7 @@ var index$O = require('./VideoPlayerNew/index.js');
|
|
|
54
54
|
var index$P = require('./ResourceCalculatorV1/index.js');
|
|
55
55
|
var index$Q = require('./CartIcon/index.js');
|
|
56
56
|
var index$R = require('./Header/AccountMenu/index.js');
|
|
57
|
+
var index$S = require('./ProductTechSpecsV2/index.js');
|
|
57
58
|
"use strict";
|
|
58
59
|
exports.Avatar = index;
|
|
59
60
|
exports.Button = index$1;
|
|
@@ -109,4 +110,5 @@ exports.VideoPlayer = index$O;
|
|
|
109
110
|
exports.ResourceCalculatorV1 = index$P;
|
|
110
111
|
exports.CartIcon = index$Q;
|
|
111
112
|
exports.AccountMenu = index$R;
|
|
113
|
+
exports.ProductTechSpecsV2 = index$S;
|
|
112
114
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/components/index.mjs
CHANGED
|
@@ -106,5 +106,7 @@ import * as index$Q from './CartIcon/index.mjs';
|
|
|
106
106
|
export { index$Q as CartIcon };
|
|
107
107
|
import * as index$R from './Header/AccountMenu/index.mjs';
|
|
108
108
|
export { index$R as AccountMenu };
|
|
109
|
+
import * as index$S from './ProductTechSpecsV2/index.mjs';
|
|
110
|
+
export { index$S as ProductTechSpecsV2 };
|
|
109
111
|
"use strict";
|
|
110
112
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _externalAssets_D0npbJ7x = require("../../../assets/arrow2.svg");
|
|
7
|
+
function _interopDefault(e) {
|
|
8
|
+
return e && e.__esModule ? e : {
|
|
9
|
+
default: e
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
var _externalAssets_D0npbJ7x__default = /*#__PURE__*/_interopDefault(_externalAssets_D0npbJ7x);
|
|
13
|
+
Object.defineProperty(exports, "default", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () {
|
|
16
|
+
return _externalAssets_D0npbJ7x__default["default"];
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
Object.keys(_externalAssets_D0npbJ7x).forEach(function (k) {
|
|
20
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () {
|
|
23
|
+
return _externalAssets_D0npbJ7x[k];
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=arrow.svg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arrow.svg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|