@ubnt/store.core 9.61.0 → 9.61.1-new-design
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 +137 -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/cart-secondary.svg +5 -0
- package/lib/assets/close2.svg +3 -2
- package/lib/assets/close3.svg +2 -3
- package/lib/assets/icon-location-pin.svg +5 -0
- package/lib/assets/icons/cart-secondary.svg.js +27 -0
- 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/assets/icons/menu/{icon-globe.svg.js → 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/pause.svg +3 -3
- package/lib/assets/pause2.svg +3 -3
- 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/ucgMax.jpg +0 -0
- package/lib/assets/ucgMax2.jpg +0 -0
- package/lib/assets/ucgUltra.jpg +0 -0
- package/lib/assets/ucgUltra2.jpg +0 -0
- package/lib/assets/udmPro.jpg +0 -0
- package/lib/assets/udmPro2.jpg +0 -0
- package/lib/assets/udmProMax.jpg +0 -0
- package/lib/assets/udmProMax2.jpg +0 -0
- package/lib/assets/udmProSpecial.jpg +0 -0
- package/lib/assets/udmProSpecial2.jpg +0 -0
- package/lib/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.js +7 -6
- package/lib/components/CardSection/Card/Card.js.map +1 -1
- package/lib/components/CardSection/Card/Card.mjs +1 -0
- package/lib/components/CardSection/Card/Card.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 +12 -12
- package/lib/components/Explore/ExploreData.js.map +1 -1
- package/lib/components/Explore/ExploreData.mjs +12 -12
- 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 +23 -23
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
- package/lib/components/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 +270 -189
- package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.mjs +251 -171
- package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +30 -25
- package/lib/components/Header/ProHeader/ProHeader.styles.js +119 -66
- package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs +112 -65
- 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 +13 -13
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
- package/lib/components/Microsites/MicrositePageContext.js +2 -2
- package/lib/components/Microsites/MicrositeProductPage.js +3 -3
- package/lib/components/Microsites/context/MicrositeProductPageContext.js +3 -3
- package/lib/components/MobileModal/MobileModal.js +4 -4
- package/lib/components/Modal/Modal.js +3 -3
- package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js +3 -3
- package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.js +2 -2
- package/lib/components/ModelCompareV3/ModelCompareV3.js +14 -14
- package/lib/components/ModelCompareV3/ProductGroupsGrid.js +3 -3
- package/lib/components/ModelCompareV3/ScrollGroup/ScrollGroup.js +5 -5
- package/lib/components/ModelCompareV3/ScrollGroup/context.js +3 -3
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupItem.js +8 -8
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupSetScroll.js +2 -2
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupTo.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js +7 -7
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridBody.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js +5 -5
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/context.js +3 -3
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/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 +15 -15
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +10 -10
- 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/gatewayEnterprise.js +4 -2
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs +4 -2
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayLite.js +4 -2
- package/lib/components/ModelCompareV3/data/products/gatewayLite.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs +4 -2
- 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 +4 -2
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs +4 -2
- 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/ucgMax.js +2 -2
- package/lib/components/ModelCompareV3/data/products/ucgMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +2 -2
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js +4 -4
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +4 -4
- 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 +5 -41
- package/lib/components/ModelCompareV3/data/products/udr.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr.mjs +5 -21
- package/lib/components/ModelCompareV3/data/products/udr.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 +4 -4
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/SliderSection.js +3 -3
- 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 +15 -15
- 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 +21 -21
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +2 -2
- package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
- package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +2 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/index.mjs +2 -0
- package/lib/components/index.mjs.map +1 -1
- package/lib/constants/icons/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 +4 -2
- package/lib/constants/proStoreCategories/mapping/index.js +50 -51
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +49 -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 +9 -9
- package/lib/constants/proStoreCategories/mapping/unifi.js +9 -9
- package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs +9 -9
- package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.mjs +7 -4
- package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.mjs +7 -4
- package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.mjs +7 -4
- package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs +7 -4
- package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.mjs +7 -4
- package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +7 -4
- package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.mjs +7 -4
- package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.mjs +7 -4
- package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +7 -4
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +7 -4
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +7 -3
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +7 -4
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/constants/proStoreFilters/mapping.d.ts +55 -3
- package/lib/constants/proStoreFilters/mapping.js +140 -10
- package/lib/constants/proStoreFilters/mapping.js.map +1 -1
- package/lib/constants/proStoreFilters/mapping.mjs +140 -10
- 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/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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.mjs","sources":["../../../../src/components/CardSection/Card/Card.tsx"],"sourcesContent":["import { useCallback, useMemo, useState } from \"react\";\n\nimport { useMenu } from \"../../../contexts/MenuContext\";\nimport { Language } from \"../../../contexts/MenuContext/mapping\";\nimport { useTranslation } from \"../../../hooks\";\nimport { LearnMoreLink } from \"../../LearnMoreLink\";\nimport { ReverseLoopingVideo } from \"../../ReverseLoopingVideo\";\nimport {\n CardWrapper,\n ContentWrap,\n Label,\n LabelWrap,\n Subtitle,\n Title,\n TitleLarge,\n} from \"./Card.styles\";\nimport { type CardProps, presetLabelMap } from \"./Card.types\";\nimport { en as EN_TRANSLATION } from \"./translations\";\n\nexport const Card = ({\n motif,\n title,\n subtitle,\n titleLarge,\n learnMoreHref,\n videoSrc,\n videoPoster,\n backgroundImageUrl,\n backgroundColor,\n border,\n labels,\n onLinkClick,\n beforeFollowLink,\n link,\n}: CardProps) => {\n const { languageDirection } = useMenu();\n const { formatMessage } = useTranslation({\n defaultTranslation: EN_TRANSLATION,\n additionalTranslations: {\n [Language.Ja]: () =>\n import(\"./translations/ja.json\").then((res) => res.default),\n [Language.Ar]: () =>\n import(\"./translations/ar.json\").then((res) => res.default),\n [Language.De]: () =>\n import(\"./translations/de.json\").then((res) => res.default),\n [Language.Es]: () =>\n import(\"./translations/es.json\").then((res) => res.default),\n [Language.El]: () =>\n import(\"./translations/el.json\").then((res) => res.default),\n [Language.It]: () =>\n import(\"./translations/it.json\").then((res) => res.default),\n [Language.Pt]: () =>\n import(\"./translations/pt-BR.json\").then((res) => res.default),\n [Language.Zh]: () =>\n import(\"./translations/zh-Hans.json\").then((res) => res.default),\n [Language.Fr]: () =>\n import(\"./translations/fr.json\").then((res) => res.default),\n [Language.Tw]: () =>\n import(\"./translations/zh-Hant-TW.json\").then((res) => res.default),\n },\n });\n\n // #############################################################################\n // Labels\n // #############################################################################\n\n const labelEls = useMemo(() => {\n if (!labels) {\n return null;\n }\n\n return labels.map((label, i) => {\n if (typeof label === \"string\") {\n const presetLabel = presetLabelMap[label];\n\n if (presetLabel) {\n return (\n <Label\n key={i}\n color={presetLabel.color}\n fontWeight={presetLabel?.[\"fontWeight\"]}\n >\n {formatMessage(presetLabel.text)}\n </Label>\n );\n }\n\n return null;\n } else {\n return (\n <Label key={i} color={label.color} fontWeight={label.fontWeight}>\n {label.text}\n </Label>\n );\n }\n });\n }, [labels, formatMessage]);\n\n // #############################################################################\n // Video\n // #############################################################################\n const [playing, setPlaying] = useState(false);\n\n const onMouseEnter = useCallback(() => {\n setPlaying(true);\n }, []);\n\n const onMouseLeave = useCallback(() => {\n setPlaying(false);\n }, []);\n\n // #############################################################################\n // Event\n // #############################################################################\n const handleCardClick = useCallback(\n (e) => {\n beforeFollowLink?.(learnMoreHref);\n onLinkClick?.(e, learnMoreHref);\n },\n [beforeFollowLink, learnMoreHref, onLinkClick],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <CardWrapper\n as=\"a\"\n onClick={handleCardClick}\n href={learnMoreHref}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n backgroundColor={backgroundColor}\n backgroundImageUrl={backgroundImageUrl}\n border={border}\n dir={languageDirection}\n >\n <ContentWrap>\n <LabelWrap>{labelEls}</LabelWrap>\n\n <Title motif={motif}>{title}</Title>\n {subtitle && <Subtitle motif={motif}>{subtitle}</Subtitle>}\n {titleLarge && <TitleLarge motif={motif}>{titleLarge}</TitleLarge>}\n <LearnMoreLink {...link} />\n </ContentWrap>\n\n {videoSrc && (\n <ReverseLoopingVideo\n src={videoSrc}\n poster={videoPoster}\n playing={playing}\n />\n )}\n </CardWrapper>\n );\n};\n"],"names":["Card","motif","title","subtitle","titleLarge","learnMoreHref","videoSrc","videoPoster","backgroundImageUrl","backgroundColor","border","labels","onLinkClick","beforeFollowLink","link","languageDirection","useMenu","formatMessage","useTranslation","defaultTranslation","EN_TRANSLATION","additionalTranslations","Language","Ja","then","res","default","Ar","De","Es","El","It","Pt","Zh","Fr","Tw","labelEls","useMemo","map","label","i","presetLabel","presetLabelMap","jsx","Label","color","fontWeight","children","text","playing","setPlaying","useState","onMouseEnter","useCallback","onMouseLeave","handleCardClick","e","jsxs","CardWrapper","as","onClick","href","dir","ContentWrap","LabelWrap","Title","Subtitle","TitleLarge","LearnMoreLink","ReverseLoopingVideo","src","poster"],"mappings":"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
|
|
1
|
+
{"version":3,"file":"Card.mjs","sources":["../../../../src/components/CardSection/Card/Card.tsx"],"sourcesContent":["import { useCallback, useMemo, useState } from \"react\";\n\nimport { useMenu } from \"../../../contexts/MenuContext\";\nimport { Language } from \"../../../contexts/MenuContext/mapping\";\nimport { useTranslation } from \"../../../hooks\";\nimport { LearnMoreLink } from \"../../LearnMoreLink\";\nimport { ReverseLoopingVideo } from \"../../ReverseLoopingVideo\";\nimport {\n CardWrapper,\n ContentWrap,\n Label,\n LabelWrap,\n Subtitle,\n Title,\n TitleLarge,\n} from \"./Card.styles\";\nimport { type CardProps, presetLabelMap } from \"./Card.types\";\nimport { en as EN_TRANSLATION } from \"./translations\";\n\nexport const Card = ({\n motif,\n title,\n subtitle,\n titleLarge,\n learnMoreHref,\n videoSrc,\n videoPoster,\n backgroundImageUrl,\n backgroundColor,\n border,\n labels,\n onLinkClick,\n beforeFollowLink,\n link,\n}: CardProps) => {\n const { languageDirection } = useMenu();\n const { formatMessage } = useTranslation({\n defaultTranslation: EN_TRANSLATION,\n additionalTranslations: {\n [Language.Ja]: () =>\n import(\"./translations/ja.json\").then((res) => res.default),\n [Language.Ar]: () =>\n import(\"./translations/ar.json\").then((res) => res.default),\n [Language.De]: () =>\n import(\"./translations/de.json\").then((res) => res.default),\n [Language.Es]: () =>\n import(\"./translations/es.json\").then((res) => res.default),\n [Language.El]: () =>\n import(\"./translations/el.json\").then((res) => res.default),\n [Language.It]: () =>\n import(\"./translations/it.json\").then((res) => res.default),\n [Language.Pt]: () =>\n import(\"./translations/pt-BR.json\").then((res) => res.default),\n [Language.Zh]: () =>\n import(\"./translations/zh-Hans.json\").then((res) => res.default),\n [Language.Fr]: () =>\n import(\"./translations/fr.json\").then((res) => res.default),\n [Language.Tw]: () =>\n import(\"./translations/zh-Hant-TW.json\").then((res) => res.default),\n },\n });\n\n // #############################################################################\n // Labels\n // #############################################################################\n\n const labelEls = useMemo(() => {\n if (!labels) {\n return null;\n }\n\n return labels.map((label, i) => {\n if (typeof label === \"string\") {\n const presetLabel = presetLabelMap[label];\n\n if (presetLabel) {\n return (\n <Label\n key={i}\n color={presetLabel.color}\n fontWeight={presetLabel?.[\"fontWeight\"]}\n >\n {formatMessage(presetLabel.text)}\n </Label>\n );\n }\n\n return null;\n } else {\n return (\n <Label key={i} color={label.color} fontWeight={label.fontWeight}>\n {label.text}\n </Label>\n );\n }\n });\n }, [labels, formatMessage]);\n\n // #############################################################################\n // Video\n // #############################################################################\n const [playing, setPlaying] = useState(false);\n\n const onMouseEnter = useCallback(() => {\n setPlaying(true);\n }, []);\n\n const onMouseLeave = useCallback(() => {\n setPlaying(false);\n }, []);\n\n // #############################################################################\n // Event\n // #############################################################################\n const handleCardClick = useCallback(\n (e) => {\n beforeFollowLink?.(learnMoreHref);\n onLinkClick?.(e, learnMoreHref);\n },\n [beforeFollowLink, learnMoreHref, onLinkClick],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <CardWrapper\n as=\"a\"\n onClick={handleCardClick}\n href={learnMoreHref}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n backgroundColor={backgroundColor}\n backgroundImageUrl={backgroundImageUrl}\n border={border}\n dir={languageDirection}\n /**\n * Disable \"draggable\" to prevent image dragging on Firefox\n * @see https://ui.slack.com/archives/C017MM5HW1F/p1739876555750939\n * @see https://stackoverflow.com/questions/38907225/disable-drag-for-any-object-in-firefox-addon-popup\n */\n draggable={false}\n >\n <ContentWrap>\n <LabelWrap>{labelEls}</LabelWrap>\n\n <Title motif={motif}>{title}</Title>\n {subtitle && <Subtitle motif={motif}>{subtitle}</Subtitle>}\n {titleLarge && <TitleLarge motif={motif}>{titleLarge}</TitleLarge>}\n <LearnMoreLink {...link} />\n </ContentWrap>\n\n {videoSrc && (\n <ReverseLoopingVideo\n src={videoSrc}\n poster={videoPoster}\n playing={playing}\n />\n )}\n </CardWrapper>\n );\n};\n"],"names":["Card","motif","title","subtitle","titleLarge","learnMoreHref","videoSrc","videoPoster","backgroundImageUrl","backgroundColor","border","labels","onLinkClick","beforeFollowLink","link","languageDirection","useMenu","formatMessage","useTranslation","defaultTranslation","EN_TRANSLATION","additionalTranslations","Language","Ja","then","res","default","Ar","De","Es","El","It","Pt","Zh","Fr","Tw","labelEls","useMemo","map","label","i","presetLabel","presetLabelMap","jsx","Label","color","fontWeight","children","text","playing","setPlaying","useState","onMouseEnter","useCallback","onMouseLeave","handleCardClick","e","jsxs","CardWrapper","as","onClick","href","dir","draggable","ContentWrap","LabelWrap","Title","Subtitle","TitleLarge","LearnMoreLink","ReverseLoopingVideo","src","poster"],"mappings":"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"}
|
|
@@ -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('../../contexts/MenuContext/index.js');
|
|
6
6
|
require('./Card/index.js');
|
|
7
7
|
var CardSection_styles = require('./CardSection.styles.js');
|
|
@@ -19,7 +19,7 @@ const CardSection = ({
|
|
|
19
19
|
const {
|
|
20
20
|
languageDirection
|
|
21
21
|
} = context.useMenu();
|
|
22
|
-
const cards =
|
|
22
|
+
const cards = React.useMemo(() => {
|
|
23
23
|
return cardsProps.map((props, i) => {
|
|
24
24
|
return {
|
|
25
25
|
id: `${sectionTitle}_${i}`,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const CardSectionWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
2
|
export declare const SectionTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
-
export declare const CardsScrollWrapper: import("styled-components").StyledComponent<({ align, direction, items, fillType, fillColor, accentColor, arrowColor, scrollStepType, gap, className, arrowFadeColor, activeIndex, circleArrowBackground, arrowGap, gradientSize, hideArrows, onScrollChange, enableWheelScroll, arrowIcon, draggable, }: import("../ScrollWrapper/ScrollWrapper.types").ScrollWrapperProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const CardsScrollWrapper: import("styled-components").StyledComponent<({ align, direction, items, fillType, fillColor, accentColor, arrowColor, scrollStepType, gap, className, arrowFadeColor, activeIndex, circleArrowBackground, arrowGap, gradientSize, hideArrows, onScrollChange, enableWheelScroll, arrowIcon, draggable, alignActive, disableScrollToActive, }: import("../ScrollWrapper/ScrollWrapper.types").ScrollWrapperProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
4
4
|
export declare const CardsWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
require('../../assets/icons/cart.svg.js');
|
|
6
6
|
require('../../assets/icons/cartEmpty.svg.js');
|
|
7
7
|
require('../StyleableSvgImage/index.js');
|
|
@@ -24,7 +24,7 @@ const CartIcon = ({
|
|
|
24
24
|
height = 20,
|
|
25
25
|
motif = "light"
|
|
26
26
|
}) => {
|
|
27
|
-
const cartQuantityText =
|
|
27
|
+
const cartQuantityText = React.useMemo(() => {
|
|
28
28
|
if (itemCount && itemCount > 0) {
|
|
29
29
|
return itemCount > 99 ? "99+" : itemCount.toString();
|
|
30
30
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
1
|
+
export declare const CATEGORY_TABS_HEIGHT = 79;
|
|
2
|
+
export declare const CATEGORY_TABS_HEIGHT_MOBILE = 65;
|
|
3
|
+
export declare const Container: import("styled-components").StyledComponent<import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("../Container/Container.types").ContainerProps & import("react").RefAttributes<HTMLDivElement>>>, import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const ScrollWrapper: import("styled-components").StyledComponent<({ align, direction, items, fillType, fillColor, accentColor, arrowColor, scrollStepType, gap, className, arrowFadeColor, activeIndex, circleArrowBackground, arrowGap, gradientSize, hideArrows, onScrollChange, enableWheelScroll, arrowIcon, draggable, alignActive, disableScrollToActive, }: import("../ScrollWrapper/ScrollWrapper.types").ScrollWrapperProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
3
5
|
export declare const Item: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
4
6
|
$selected: boolean;
|
|
5
7
|
}, never>;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
var styled = require('styled-components');
|
|
4
4
|
var layout = require('../../constants/layout.js');
|
|
5
|
-
var theme = require('../../constants/theme.js');
|
|
6
5
|
require('../Container/index.js');
|
|
7
6
|
require('../ScrollWrapper/index.js');
|
|
8
7
|
var ScrollWrapper_styles = require('../ScrollWrapper/ScrollWrapper.styles.js');
|
|
@@ -17,17 +16,19 @@ function _interopDefault(e) {
|
|
|
17
16
|
}
|
|
18
17
|
var styled__default = /*#__PURE__*/_interopDefault(styled);
|
|
19
18
|
"use strict";
|
|
19
|
+
const CATEGORY_TABS_HEIGHT = 79;
|
|
20
|
+
const CATEGORY_TABS_HEIGHT_MOBILE = 65;
|
|
20
21
|
const Container = styled__default["default"](Container$1.Container)`
|
|
21
22
|
padding: 0;
|
|
22
23
|
|
|
23
24
|
margin-top: 16px;
|
|
24
25
|
margin-bottom: 16px;
|
|
25
|
-
max-height:
|
|
26
|
+
max-height: ${CATEGORY_TABS_HEIGHT}px;
|
|
26
27
|
|
|
27
28
|
@media ${layout.BREAKPOINTS.MOBILE_AND_DOWN} {
|
|
28
29
|
margin-top: 0;
|
|
29
30
|
margin-bottom: 0;
|
|
30
|
-
max-height:
|
|
31
|
+
max-height: ${CATEGORY_TABS_HEIGHT_MOBILE}px;
|
|
31
32
|
}
|
|
32
33
|
`;
|
|
33
34
|
const ScrollWrapper = styled__default["default"](ScrollWrapper$1.ScrollWrapper)`
|
|
@@ -61,13 +62,13 @@ const Item = styled__default["default"].div`
|
|
|
61
62
|
${({
|
|
62
63
|
$selected
|
|
63
64
|
}) => $selected && styled.css`
|
|
64
|
-
background-color:
|
|
65
|
+
background-color: #f4f5f6;
|
|
65
66
|
`}
|
|
66
67
|
|
|
67
68
|
/* Check for hover capability to prevent wrong UI styles of category tabs https://developer.mozilla.org/en-US/docs/Web/CSS/@media/hover */
|
|
68
69
|
@media (hover: hover) {
|
|
69
70
|
:hover {
|
|
70
|
-
background-color:
|
|
71
|
+
background-color: #f4f5f6;
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
74
|
|
|
@@ -92,6 +93,8 @@ const IconWrap = styled__default["default"].div`
|
|
|
92
93
|
const Icon = styled__default["default"](StyleableSvgImage.StyleableSvgImage)`
|
|
93
94
|
color: #4c4c4c;
|
|
94
95
|
`;
|
|
96
|
+
exports.CATEGORY_TABS_HEIGHT = CATEGORY_TABS_HEIGHT;
|
|
97
|
+
exports.CATEGORY_TABS_HEIGHT_MOBILE = CATEGORY_TABS_HEIGHT_MOBILE;
|
|
95
98
|
exports.Container = Container;
|
|
96
99
|
exports.Icon = Icon;
|
|
97
100
|
exports.IconWrap = IconWrap;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CategoryTabs.styles.js","sources":["../../../src/components/CategoryTabs/CategoryTabs.styles.tsx"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { BREAKPOINTS } from \"../../constants/layout\";\nimport {
|
|
1
|
+
{"version":3,"file":"CategoryTabs.styles.js","sources":["../../../src/components/CategoryTabs/CategoryTabs.styles.tsx"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { BREAKPOINTS } from \"../../constants/layout\";\nimport { Container as ContainerBase } from \"../Container\";\nimport { ScrollWrapper as ScrollWrapperBase } from \"../ScrollWrapper\";\nimport { ScrollContainer } from \"../ScrollWrapper/ScrollWrapper.styles\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\n\nexport const CATEGORY_TABS_HEIGHT = 79;\nexport const CATEGORY_TABS_HEIGHT_MOBILE = 65;\n\nexport const Container = styled(ContainerBase)`\n padding: 0;\n\n margin-top: 16px;\n margin-bottom: 16px;\n max-height: ${CATEGORY_TABS_HEIGHT}px;\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n margin-top: 0;\n margin-bottom: 0;\n max-height: ${CATEGORY_TABS_HEIGHT_MOBILE}px;\n }\n`;\n\nexport const ScrollWrapper = styled(ScrollWrapperBase)`\n ${ScrollContainer} {\n padding: 0 32px;\n\n @media ${BREAKPOINTS.TABLET_AND_DOWN} {\n padding: 0 16px;\n }\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n padding: 0 8px;\n }\n }\n`;\n\nexport const Item = styled.div<{ $selected: boolean }>`\n display: block;\n padding: 8px;\n border-radius: 8px;\n height: 79px;\n min-width: 67px;\n\n font-size: 13px;\n line-height: 1.23;\n color: #393939;\n text-align: center;\n\n cursor: pointer;\n transition: background-color 0.2s ease-in-out;\n\n ${({ $selected }) =>\n $selected &&\n css`\n background-color: #f4f5f6;\n `}\n\n /* Check for hover capability to prevent wrong UI styles of category tabs https://developer.mozilla.org/en-US/docs/Web/CSS/@media/hover */\n @media (hover: hover) {\n :hover {\n background-color: #f4f5f6;\n }\n }\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n height: 65px;\n\n padding: 8px 4px 7px;\n }\n`;\n\nexport const IconWrap = styled.div`\n margin: 5px 0 4px;\n height: 38px;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n margin: 0;\n }\n`;\n\nexport const Icon = styled(StyleableSvgImage)`\n color: #4c4c4c;\n`;\n"],"names":["CATEGORY_TABS_HEIGHT","CATEGORY_TABS_HEIGHT_MOBILE","Container","styled","ContainerBase","BREAKPOINTS","MOBILE_AND_DOWN","ScrollWrapper","ScrollWrapperBase","ScrollContainer","TABLET_AND_DOWN","Item","div","$selected","css","IconWrap","Icon","StyleableSvgImage"],"mappings":";;;;;;;;;;;;;;;;;;AAQO,MAAMA,oBAAuB,GAAA,EAAA;AAC7B,MAAMC,2BAA8B,GAAA,EAAA;AAE9B,MAAAC,SAAA,GAAYC,eAAAA,CAAAA,SAAAA,EAAOC,WAAAA,CAAAA,SAAa,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAK7BJ,oBAAoB;AAAA;AAAA,WAEzBK,MAAAA,CAAAA,YAAYC,eAAe;AAAA;AAAA;AAAA,kBAGpBL,2BAA2B;AAAA;AAAA,CAAA;AAIhC,MAAAM,aAAA,GAAgBJ,eAAAA,CAAAA,SAAAA,EAAOK,eAAAA,CAAAA,aAAiB,CAAA;AAAA,IACjDC,oCAAe;AAAA;AAAA;AAAA,aAGNJ,MAAAA,CAAAA,YAAYK,eAAe;AAAA;AAAA;AAAA;AAAA,aAI3BL,MAAAA,CAAAA,YAAYC,eAAe;AAAA;AAAA;AAAA;AAAA,CAAA;AAMjC,MAAMK,OAAOR,eAAO,CAAA,SAAA,CAAA,CAAAS,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAevB,CAAC;EAAEC;CAAU,KACbA,SACA,IAAAC,MAAAA,CAAAA,GAAA;AAAA;AAAA,KAEC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WASMT,MAAAA,CAAAA,YAAYC,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAO/B,MAAMS,WAAWZ,eAAO,CAAA,SAAA,CAAA,CAAAS,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAQpBP,MAAAA,CAAAA,YAAYC,eAAe;AAAA;AAAA;AAAA,CAAA;AAKzB,MAAAU,IAAA,GAAOb,eAAAA,CAAAA,SAAAA,EAAOc,iBAAAA,CAAAA,iBAAiB,CAAA;AAAA;AAAA,CAAA;;;;;;;"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import styled, { css } from 'styled-components';
|
|
2
2
|
import { BREAKPOINTS } from '../../constants/layout.mjs';
|
|
3
|
-
import { theme } from '../../constants/theme.mjs';
|
|
4
3
|
import '../Container/index.mjs';
|
|
5
4
|
import '../ScrollWrapper/index.mjs';
|
|
6
5
|
import { ScrollContainer } from '../ScrollWrapper/ScrollWrapper.styles.mjs';
|
|
@@ -9,17 +8,19 @@ import { Container as Container$1 } from '../Container/Container.mjs';
|
|
|
9
8
|
import { ScrollWrapper as ScrollWrapper$1 } from '../ScrollWrapper/ScrollWrapper.mjs';
|
|
10
9
|
import { StyleableSvgImage } from '../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
11
10
|
"use strict";
|
|
11
|
+
const CATEGORY_TABS_HEIGHT = 79;
|
|
12
|
+
const CATEGORY_TABS_HEIGHT_MOBILE = 65;
|
|
12
13
|
const Container = styled(Container$1)`
|
|
13
14
|
padding: 0;
|
|
14
15
|
|
|
15
16
|
margin-top: 16px;
|
|
16
17
|
margin-bottom: 16px;
|
|
17
|
-
max-height:
|
|
18
|
+
max-height: ${CATEGORY_TABS_HEIGHT}px;
|
|
18
19
|
|
|
19
20
|
@media ${BREAKPOINTS.MOBILE_AND_DOWN} {
|
|
20
21
|
margin-top: 0;
|
|
21
22
|
margin-bottom: 0;
|
|
22
|
-
max-height:
|
|
23
|
+
max-height: ${CATEGORY_TABS_HEIGHT_MOBILE}px;
|
|
23
24
|
}
|
|
24
25
|
`;
|
|
25
26
|
const ScrollWrapper = styled(ScrollWrapper$1)`
|
|
@@ -53,13 +54,13 @@ const Item = styled.div`
|
|
|
53
54
|
${({
|
|
54
55
|
$selected
|
|
55
56
|
}) => $selected && css`
|
|
56
|
-
background-color:
|
|
57
|
+
background-color: #f4f5f6;
|
|
57
58
|
`}
|
|
58
59
|
|
|
59
60
|
/* Check for hover capability to prevent wrong UI styles of category tabs https://developer.mozilla.org/en-US/docs/Web/CSS/@media/hover */
|
|
60
61
|
@media (hover: hover) {
|
|
61
62
|
:hover {
|
|
62
|
-
background-color:
|
|
63
|
+
background-color: #f4f5f6;
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
66
|
|
|
@@ -84,5 +85,5 @@ const IconWrap = styled.div`
|
|
|
84
85
|
const Icon = styled(StyleableSvgImage)`
|
|
85
86
|
color: #4c4c4c;
|
|
86
87
|
`;
|
|
87
|
-
export { Container, Icon, IconWrap, Item, ScrollWrapper };
|
|
88
|
+
export { CATEGORY_TABS_HEIGHT, CATEGORY_TABS_HEIGHT_MOBILE, Container, Icon, IconWrap, Item, ScrollWrapper };
|
|
88
89
|
//# sourceMappingURL=CategoryTabs.styles.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CategoryTabs.styles.mjs","sources":["../../../src/components/CategoryTabs/CategoryTabs.styles.tsx"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { BREAKPOINTS } from \"../../constants/layout\";\nimport {
|
|
1
|
+
{"version":3,"file":"CategoryTabs.styles.mjs","sources":["../../../src/components/CategoryTabs/CategoryTabs.styles.tsx"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { BREAKPOINTS } from \"../../constants/layout\";\nimport { Container as ContainerBase } from \"../Container\";\nimport { ScrollWrapper as ScrollWrapperBase } from \"../ScrollWrapper\";\nimport { ScrollContainer } from \"../ScrollWrapper/ScrollWrapper.styles\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\n\nexport const CATEGORY_TABS_HEIGHT = 79;\nexport const CATEGORY_TABS_HEIGHT_MOBILE = 65;\n\nexport const Container = styled(ContainerBase)`\n padding: 0;\n\n margin-top: 16px;\n margin-bottom: 16px;\n max-height: ${CATEGORY_TABS_HEIGHT}px;\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n margin-top: 0;\n margin-bottom: 0;\n max-height: ${CATEGORY_TABS_HEIGHT_MOBILE}px;\n }\n`;\n\nexport const ScrollWrapper = styled(ScrollWrapperBase)`\n ${ScrollContainer} {\n padding: 0 32px;\n\n @media ${BREAKPOINTS.TABLET_AND_DOWN} {\n padding: 0 16px;\n }\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n padding: 0 8px;\n }\n }\n`;\n\nexport const Item = styled.div<{ $selected: boolean }>`\n display: block;\n padding: 8px;\n border-radius: 8px;\n height: 79px;\n min-width: 67px;\n\n font-size: 13px;\n line-height: 1.23;\n color: #393939;\n text-align: center;\n\n cursor: pointer;\n transition: background-color 0.2s ease-in-out;\n\n ${({ $selected }) =>\n $selected &&\n css`\n background-color: #f4f5f6;\n `}\n\n /* Check for hover capability to prevent wrong UI styles of category tabs https://developer.mozilla.org/en-US/docs/Web/CSS/@media/hover */\n @media (hover: hover) {\n :hover {\n background-color: #f4f5f6;\n }\n }\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n height: 65px;\n\n padding: 8px 4px 7px;\n }\n`;\n\nexport const IconWrap = styled.div`\n margin: 5px 0 4px;\n height: 38px;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n margin: 0;\n }\n`;\n\nexport const Icon = styled(StyleableSvgImage)`\n color: #4c4c4c;\n`;\n"],"names":["CATEGORY_TABS_HEIGHT","CATEGORY_TABS_HEIGHT_MOBILE","Container","styled","ContainerBase","BREAKPOINTS","MOBILE_AND_DOWN","ScrollWrapper","ScrollWrapperBase","ScrollContainer","TABLET_AND_DOWN","Item","div","$selected","css","IconWrap","Icon","StyleableSvgImage"],"mappings":";;;;;;;;;;AAQO,MAAMA,oBAAuB,GAAA,EAAA;AAC7B,MAAMC,2BAA8B,GAAA,EAAA;AAE9B,MAAAC,SAAA,GAAYC,OAAOC,WAAa,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAK7BJ,oBAAoB;AAAA;AAAA,WAEzBK,YAAYC,eAAe;AAAA;AAAA;AAAA,kBAGpBL,2BAA2B;AAAA;AAAA,CAAA;AAIhC,MAAAM,aAAA,GAAgBJ,OAAOK,eAAiB,CAAA;AAAA,IACjDC,eAAe;AAAA;AAAA;AAAA,aAGNJ,YAAYK,eAAe;AAAA;AAAA;AAAA;AAAA,aAI3BL,YAAYC,eAAe;AAAA;AAAA;AAAA;AAAA,CAAA;AAMjC,MAAMK,OAAOR,MAAO,CAAAS,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAevB,CAAC;EAAEC;CAAU,KACbA,SACA,IAAAC,GAAA;AAAA;AAAA,KAEC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WASMT,YAAYC,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAO/B,MAAMS,WAAWZ,MAAO,CAAAS,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,WAQpBP,YAAYC,eAAe;AAAA;AAAA;AAAA,CAAA;AAKzB,MAAAU,IAAA,GAAOb,OAAOc,iBAAiB,CAAA;AAAA;AAAA,CAAA;"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
var Checkbox_styles = require('./Checkbox.styles.js');
|
|
6
6
|
"use strict";
|
|
7
7
|
const Checkbox = function Checkbox2({
|
|
8
8
|
radio,
|
|
9
9
|
...props
|
|
10
10
|
}) {
|
|
11
|
-
const [isSsr, setIsSsr] =
|
|
12
|
-
|
|
11
|
+
const [isSsr, setIsSsr] = React.useState(true);
|
|
12
|
+
React.useEffect(() => {
|
|
13
13
|
setIsSsr(false);
|
|
14
14
|
}, []);
|
|
15
|
-
const onRadioClick =
|
|
15
|
+
const onRadioClick = React.useCallback(e => {
|
|
16
16
|
const checked = Boolean(props.checked);
|
|
17
17
|
if (checked) {
|
|
18
18
|
props.onChange?.(
|
|
@@ -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
|
var layout = require('../../constants/layout.js');
|
|
8
8
|
require('../Accordion/index.js');
|
|
@@ -64,19 +64,19 @@ const CloserLookSection = function CloserLookSection2({
|
|
|
64
64
|
bannerHtml
|
|
65
65
|
}) {
|
|
66
66
|
const isTablet = reactUse.useMedia(layout.BREAKPOINTS.TABLET_AND_DOWN, false);
|
|
67
|
-
const wrapRef =
|
|
68
|
-
const translations =
|
|
67
|
+
const wrapRef = React.useRef(null);
|
|
68
|
+
const translations = React.useMemo(() => {
|
|
69
69
|
return merge__default["default"](CloserLookSection_constants.defaultCloserLookSectionTranslations, initialTranslations);
|
|
70
70
|
}, [initialTranslations]);
|
|
71
|
-
const [activeTabId, setActiveTabId] =
|
|
72
|
-
const [activeFaqSection, setActiveFaqSection] =
|
|
73
|
-
|
|
71
|
+
const [activeTabId, setActiveTabId] = React.useState();
|
|
72
|
+
const [activeFaqSection, setActiveFaqSection] = React.useState();
|
|
73
|
+
React.useEffect(() => {
|
|
74
74
|
onTabChange?.(activeTabId);
|
|
75
75
|
}, [activeTabId, onTabChange]);
|
|
76
|
-
const parsedCompareVariants =
|
|
76
|
+
const parsedCompareVariants = React.useMemo(() => {
|
|
77
77
|
return ProductCompare_utils.parseProductCompareVariants(productCompareProps?.variants ?? []);
|
|
78
78
|
}, [productCompareProps?.variants]);
|
|
79
|
-
const tabs =
|
|
79
|
+
const tabs = React.useMemo(() => {
|
|
80
80
|
const assetIsNotVideoOnTablet = asset => !isTablet || !asset.isVideo;
|
|
81
81
|
const items = [glanceAssets.length ? {
|
|
82
82
|
id: "Glance" /* Glance */,
|
|
@@ -117,14 +117,14 @@ const CloserLookSection = function CloserLookSection2({
|
|
|
117
117
|
} : null];
|
|
118
118
|
return items.filter(tab => !!tab);
|
|
119
119
|
}, [glanceAssets.length, photosAssets, translations.tabs.glance, translations.tabs.product, translations.tabs.deployment, translations.tabs.inTheBox, translations.tabs.buildFeatures, translations.tabs.performanceImages, translations.tabs.compare, translations.tabs.installationTutorial, translations.tabs.capacityCalculator, translations.tabs.recommendedAddons, translations.tabs.faq, deploymentAssets.length, inTheBoxAssets.length, buildFeatureAssets.length, performanceAssets.length, parsedCompareVariants.length, installationAssets, capacityCalculator, recommendedAddonsProps?.products.length, faq?.items.length, isTablet]);
|
|
120
|
-
|
|
120
|
+
React.useEffect(() => {
|
|
121
121
|
for (const tab of tabs) {
|
|
122
122
|
setActiveTabId(tab.id);
|
|
123
123
|
break;
|
|
124
124
|
}
|
|
125
125
|
}, [tabs]);
|
|
126
126
|
const location = reactUse.useLocation();
|
|
127
|
-
|
|
127
|
+
React.useEffect(() => {
|
|
128
128
|
const wrapEl = wrapRef.current;
|
|
129
129
|
if (!wrapEl || !location.hash) return;
|
|
130
130
|
const locationHash = location.hash.includes("faq") ? "#faq" : location.hash;
|
|
@@ -144,7 +144,7 @@ const CloserLookSection = function CloserLookSection2({
|
|
|
144
144
|
}, 1e3);
|
|
145
145
|
}, 800);
|
|
146
146
|
}, [location, location.hash, tabs]);
|
|
147
|
-
const handleGalleryModalToggle =
|
|
147
|
+
const handleGalleryModalToggle = React.useCallback((tabId, src) => {
|
|
148
148
|
onGalleryModalToggle?.(tabId, src);
|
|
149
149
|
}, [onGalleryModalToggle]);
|
|
150
150
|
if (!tabs.length) {
|
|
@@ -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('../../CustomImage/index.js');
|
|
7
7
|
require('../../ProductCard/index.js');
|
|
8
8
|
require('../../ProductCardPopup/index.js');
|
|
@@ -24,12 +24,12 @@ const RecommendedAddons = ({
|
|
|
24
24
|
products,
|
|
25
25
|
activePopupProduct
|
|
26
26
|
}) => {
|
|
27
|
-
const translations =
|
|
27
|
+
const translations = React.useMemo(() => {
|
|
28
28
|
return merge__default["default"](RecommendedAddons_constants.defaultRecommendedAddonsTranslations, initialTranslations);
|
|
29
29
|
}, [initialTranslations]);
|
|
30
|
-
const [popupProduct, setPopupProduct] =
|
|
31
|
-
const isPopupOpen =
|
|
32
|
-
|
|
30
|
+
const [popupProduct, setPopupProduct] = React.useState(activePopupProduct);
|
|
31
|
+
const isPopupOpen = React.useMemo(() => !!activePopupProduct, [activePopupProduct]);
|
|
32
|
+
React.useEffect(() => {
|
|
33
33
|
if (activePopupProduct !== void 0) {
|
|
34
34
|
setPopupProduct(activePopupProduct);
|
|
35
35
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const Container: import("styled-components").StyledComponent<import("react").
|
|
2
|
-
export declare const ContainerButtonGroup: import("styled-components").StyledComponent<import("react").
|
|
3
|
-
export declare const ContainerTable: import("styled-components").StyledComponent<import("react").
|
|
4
|
-
export declare const ContainerChart: import("styled-components").StyledComponent<import("react").
|
|
1
|
+
export declare const Container: import("styled-components").StyledComponent<import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("../Container/Container.types").ContainerProps & import("react").RefAttributes<HTMLDivElement>>>, import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
+
export declare const ContainerButtonGroup: import("styled-components").StyledComponent<import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("../Container/Container.types").ContainerProps & import("react").RefAttributes<HTMLDivElement>>>, import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const ContainerTable: import("styled-components").StyledComponent<import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("../Container/Container.types").ContainerProps & import("react").RefAttributes<HTMLDivElement>>>, import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const ContainerChart: import("styled-components").StyledComponent<import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("../Container/Container.types").ContainerProps & import("react").RefAttributes<HTMLDivElement>>>, import("styled-components").DefaultTheme, {}, never>;
|
|
5
5
|
export declare const TableWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
6
6
|
export declare const CompareTable: import("styled-components").StyledComponent<"table", import("styled-components").DefaultTheme, {}, never>;
|
|
7
7
|
export declare const Cell: import("styled-components").StyledComponent<"td", import("styled-components").DefaultTheme, {
|
|
@@ -20,7 +20,7 @@ export declare const CellTextualValue: import("styled-components").StyledCompone
|
|
|
20
20
|
export declare const TableButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
|
|
21
21
|
active: boolean;
|
|
22
22
|
}, never>;
|
|
23
|
-
export declare const TableNote: import("styled-components").StyledComponent<import("react").
|
|
23
|
+
export declare const TableNote: import("styled-components").StyledComponent<import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("../Container/Container.types").ContainerProps & import("react").RefAttributes<HTMLDivElement>>>, import("styled-components").DefaultTheme, {}, never>;
|
|
24
24
|
export declare const ButtonGroupWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
25
25
|
export declare const InTheBoxTitle: import("styled-components").StyledComponent<"h4", import("styled-components").DefaultTheme, {}, never>;
|
|
26
26
|
export declare const InTheBoxImage: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { ContainerProps } from "./Container.types";
|
|
2
|
-
export declare const Container: import("react").
|
|
2
|
+
export declare const Container: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<ContainerProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var
|
|
4
|
+
var React = require('react');
|
|
5
5
|
var Container_styles = require('./Container.styles.js');
|
|
6
6
|
"use strict";
|
|
7
|
-
const Container =
|
|
7
|
+
const Container = React.memo(React.forwardRef(function Container2({
|
|
8
8
|
children,
|
|
9
9
|
fullHeight,
|
|
10
10
|
...rest
|
|
11
|
-
}) {
|
|
11
|
+
}, ref) {
|
|
12
12
|
return /* @__PURE__ */jsxRuntime.jsx(Container_styles.Wrap, {
|
|
13
13
|
...rest,
|
|
14
14
|
children: /* @__PURE__ */jsxRuntime.jsx(Container_styles.WrapPadding, {
|
|
15
15
|
$fullHeight: fullHeight,
|
|
16
|
+
ref,
|
|
16
17
|
children
|
|
17
18
|
})
|
|
18
19
|
});
|
|
19
|
-
});
|
|
20
|
+
}));
|
|
20
21
|
exports.Container = Container;
|
|
21
22
|
//# sourceMappingURL=Container.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Container.js","sources":["../../../src/components/Container/Container.tsx"],"sourcesContent":["import { memo } from \"react\";\n\nimport { Wrap, WrapPadding } from \"./Container.styles\";\nimport type { ContainerProps } from \"./Container.types\";\n\nexport const Container = memo(function Container(
|
|
1
|
+
{"version":3,"file":"Container.js","sources":["../../../src/components/Container/Container.tsx"],"sourcesContent":["import { forwardRef, memo } from \"react\";\n\nimport { Wrap, WrapPadding } from \"./Container.styles\";\nimport type { ContainerProps } from \"./Container.types\";\n\nexport const Container = memo(\n forwardRef<HTMLDivElement, ContainerProps>(function Container(\n { children, fullHeight, ...rest },\n ref,\n ) {\n return (\n <Wrap {...rest}>\n <WrapPadding $fullHeight={fullHeight} ref={ref}>\n {children}\n </WrapPadding>\n </Wrap>\n );\n }),\n);\n"],"names":["Container","memo","forwardRef","Container2","children","fullHeight","rest","ref","jsx","Wrap","WrapPadding","$fullHeight"],"mappings":";;;;;;AAKO,MAAMA,SAAY,GAAAC,KAAA,CAAAA,IAAA,CACvBC,KAAA,CAAAA,UAAA,CAA2C,SAASF,UAClDG,CAAA;EAAEC;EAAUC,UAAY;EAAA,GAAGC;AAAK,CAAA,EAChCC,GACA,EAAA;EAEE,OAAA,eAAAC,UAAA,CAAAA,GAAA,CAACC,gBAAM,CAAAA,IAAA,EAAA;IAAA,GAAGH,IACR;IAAAF,QAAA,EAAA,eAAAI,UAAA,CAAAA,GAAA,CAACE;MAAYC,WAAa,EAAAN,UAAA;MAAYE,GACnC;MAAAH;IACH,CAAA;EACF,CAAA,CAAA;AAAA,CAEH,CACH,CAAA;"}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { memo } from 'react';
|
|
2
|
+
import { memo, forwardRef } from 'react';
|
|
3
3
|
import { Wrap, WrapPadding } from './Container.styles.mjs';
|
|
4
4
|
"use strict";
|
|
5
|
-
const Container = memo(function Container2({
|
|
5
|
+
const Container = memo(forwardRef(function Container2({
|
|
6
6
|
children,
|
|
7
7
|
fullHeight,
|
|
8
8
|
...rest
|
|
9
|
-
}) {
|
|
9
|
+
}, ref) {
|
|
10
10
|
return /* @__PURE__ */jsx(Wrap, {
|
|
11
11
|
...rest,
|
|
12
12
|
children: /* @__PURE__ */jsx(WrapPadding, {
|
|
13
13
|
$fullHeight: fullHeight,
|
|
14
|
+
ref,
|
|
14
15
|
children
|
|
15
16
|
})
|
|
16
17
|
});
|
|
17
|
-
});
|
|
18
|
+
}));
|
|
18
19
|
export { Container };
|
|
19
20
|
//# sourceMappingURL=Container.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Container.mjs","sources":["../../../src/components/Container/Container.tsx"],"sourcesContent":["import { memo } from \"react\";\n\nimport { Wrap, WrapPadding } from \"./Container.styles\";\nimport type { ContainerProps } from \"./Container.types\";\n\nexport const Container = memo(function Container(
|
|
1
|
+
{"version":3,"file":"Container.mjs","sources":["../../../src/components/Container/Container.tsx"],"sourcesContent":["import { forwardRef, memo } from \"react\";\n\nimport { Wrap, WrapPadding } from \"./Container.styles\";\nimport type { ContainerProps } from \"./Container.types\";\n\nexport const Container = memo(\n forwardRef<HTMLDivElement, ContainerProps>(function Container(\n { children, fullHeight, ...rest },\n ref,\n ) {\n return (\n <Wrap {...rest}>\n <WrapPadding $fullHeight={fullHeight} ref={ref}>\n {children}\n </WrapPadding>\n </Wrap>\n );\n }),\n);\n"],"names":["Container","memo","forwardRef","Container2","children","fullHeight","rest","ref","jsx","Wrap","WrapPadding","$fullHeight"],"mappings":";;;;AAKO,MAAMA,SAAY,GAAAC,IAAA,CACvBC,UAAA,CAA2C,SAASF,UAClDG,CAAA;EAAEC;EAAUC,UAAY;EAAA,GAAGC;AAAK,CAAA,EAChCC,GACA,EAAA;EAEE,OAAA,eAAAC,GAAA,CAACC,IAAM,EAAA;IAAA,GAAGH,IACR;IAAAF,QAAA,EAAA,eAAAI,GAAA,CAACE;MAAYC,WAAa,EAAAN,UAAA;MAAYE,GACnC;MAAAH;IACH,CAAA;EACF,CAAA,CAAA;AAAA,CAEH,CACH,CAAA;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const StoryElement: {
|
|
2
2
|
title: string;
|
|
3
|
-
component: import("react").
|
|
3
|
+
component: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("./Container.types").ContainerProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
4
4
|
parameters: {
|
|
5
5
|
notes: {
|
|
6
6
|
markdown: string;
|
|
@@ -8,7 +8,7 @@ declare const StoryElement: {
|
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
export default StoryElement;
|
|
11
|
-
export declare const Primary_PC: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Container.types").ContainerProps
|
|
12
|
-
export declare const Mobile: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Container.types").ContainerProps
|
|
13
|
-
export declare const Tablet: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Container.types").ContainerProps
|
|
14
|
-
export declare const Full: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Container.types").ContainerProps
|
|
11
|
+
export declare const Primary_PC: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Container.types").ContainerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export declare const Mobile: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Container.types").ContainerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export declare const Tablet: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Container.types").ContainerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export declare const Full: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./Container.types").ContainerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -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 reactDom = require('react-dom');
|
|
6
6
|
var reactUse = require('react-use');
|
|
7
7
|
require('../../assets/icons/fallbackImage.svg.js');
|
|
@@ -71,19 +71,19 @@ const CustomImage = function CustomImage2({
|
|
|
71
71
|
canFullscreen,
|
|
72
72
|
onFullscreenChange
|
|
73
73
|
}) {
|
|
74
|
-
const [loading, setLoading] =
|
|
74
|
+
const [loading, setLoading] = React.useState(
|
|
75
75
|
// Set as loading by default, handle not loading in the effect
|
|
76
76
|
true);
|
|
77
|
-
const [error, setError] =
|
|
78
|
-
const [isFullscreen, setIsFullscreen] =
|
|
77
|
+
const [error, setError] = React.useState(false);
|
|
78
|
+
const [isFullscreen, setIsFullscreen] = React.useState(false);
|
|
79
79
|
reactUse.useLockBodyScroll(isFullscreen);
|
|
80
|
-
|
|
80
|
+
React.useEffect(() => {
|
|
81
81
|
if (canFullscreen && onFullscreenChange) {
|
|
82
82
|
onFullscreenChange(isFullscreen);
|
|
83
83
|
}
|
|
84
84
|
}, [canFullscreen, isFullscreen, onFullscreenChange]);
|
|
85
|
-
const wrapRef =
|
|
86
|
-
|
|
85
|
+
const wrapRef = React.useRef(null);
|
|
86
|
+
React.useEffect(() => {
|
|
87
87
|
if (!wrapRef.current) return;
|
|
88
88
|
const imageEl = wrapRef.current.querySelector("img");
|
|
89
89
|
if (!imageEl) return;
|
|
@@ -91,25 +91,25 @@ const CustomImage = function CustomImage2({
|
|
|
91
91
|
setLoading(loadingInitial);
|
|
92
92
|
setError(false);
|
|
93
93
|
}, []);
|
|
94
|
-
const handleOnError =
|
|
94
|
+
const handleOnError = React.useCallback(() => {
|
|
95
95
|
setError(true);
|
|
96
96
|
}, []);
|
|
97
|
-
const handleOnLoadingComplete =
|
|
97
|
+
const handleOnLoadingComplete = React.useCallback(() => {
|
|
98
98
|
setLoading(false);
|
|
99
99
|
setError(false);
|
|
100
100
|
}, []);
|
|
101
|
-
const handleOnLoadComplete =
|
|
101
|
+
const handleOnLoadComplete = React.useCallback(event => {
|
|
102
102
|
if (!event?.currentTarget?.src || event.currentTarget.src === asset2?.src) {
|
|
103
103
|
setLoading(false);
|
|
104
104
|
setError(false);
|
|
105
105
|
}
|
|
106
106
|
}, [asset2?.src]);
|
|
107
|
-
const handleFullscreenClick =
|
|
107
|
+
const handleFullscreenClick = React.useCallback(() => {
|
|
108
108
|
if (canFullscreen && asset2 && !error && !loading && !isFullscreen) {
|
|
109
109
|
setIsFullscreen(true);
|
|
110
110
|
}
|
|
111
111
|
}, [asset2, canFullscreen, error, isFullscreen, loading]);
|
|
112
|
-
|
|
112
|
+
React.useEffect(() => {
|
|
113
113
|
if (!canFullscreen) {
|
|
114
114
|
return;
|
|
115
115
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var Tooltip = require('@ubnt/ui-components/Tooltip');
|
|
5
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
6
|
var reactUse = require('react-use');
|
|
7
7
|
var styled = require('styled-components');
|
|
8
8
|
var layout = require('../../constants/layout.js');
|
|
@@ -78,7 +78,7 @@ const ExploreProduct = ({
|
|
|
78
78
|
}).then(res => res.default)
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
|
-
const wide =
|
|
81
|
+
const wide = React.useMemo(() => {
|
|
82
82
|
const features = section.product.featureValues;
|
|
83
83
|
switch (features.length) {
|
|
84
84
|
case 1:
|
|
@@ -96,20 +96,20 @@ const ExploreProduct = ({
|
|
|
96
96
|
return false;
|
|
97
97
|
}
|
|
98
98
|
}, [section.product.featureValues]);
|
|
99
|
-
const storePath =
|
|
99
|
+
const storePath = React.useMemo(() => {
|
|
100
100
|
if (typeof section.product.storePath === "function") {
|
|
101
101
|
return storeId ? section.product.storePath(storeId) : void 0;
|
|
102
102
|
}
|
|
103
103
|
return section.product.storePath;
|
|
104
104
|
}, [section.product, storeId]);
|
|
105
|
-
const image =
|
|
105
|
+
const image = React.useMemo(() => {
|
|
106
106
|
const base = section.product.image;
|
|
107
107
|
if (isMobile) {
|
|
108
108
|
return section.product.mobileImage ?? base;
|
|
109
109
|
}
|
|
110
110
|
return base;
|
|
111
111
|
}, [isMobile, section.product.image, section.product.mobileImage]);
|
|
112
|
-
const button =
|
|
112
|
+
const button = React.useMemo(() => {
|
|
113
113
|
if (section.product.isComingSoon) {
|
|
114
114
|
return /* @__PURE__ */jsxRuntime.jsxs(Explore_styles.ComingSoonButtonWrap, {
|
|
115
115
|
children: [/* @__PURE__ */jsxRuntime.jsx(Explore_styles.ComingSoonButton, {
|