@ubnt/store.core 9.19.1 → 9.20.0-alpha.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 +205 -1
- package/lib/_virtual/_virtual_multi-entry.js +27 -12
- package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
- package/lib/_virtual/_virtual_multi-entry.mjs +14 -10
- package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
- package/lib/assets/attention.svg +5 -5
- package/lib/assets/attention2.svg +5 -5
- package/lib/assets/close2.svg +2 -3
- package/lib/assets/close3.svg +3 -2
- package/lib/assets/efg.png +0 -0
- package/lib/assets/icon-location-pin.svg +5 -0
- package/lib/assets/icons/menu/icon-location-pin.svg.js +27 -0
- 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/pause.svg +3 -3
- package/lib/assets/pause2.svg +3 -3
- package/lib/assets/ucg-max.png +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/CategoryTabs/CategoryTabs.styles.d.ts +1 -1
- package/lib/components/CategoryTabs/CategoryTabs.styles.js +2 -3
- package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +2 -3
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
- 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 +4 -3
- 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/FeaturesSection_deprecated/FeaturesSection.js +1 -1
- 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/Header/AccountMenu/AccountMenu.js +11 -1
- 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/Header.js +6 -6
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mjs +6 -6
- package/lib/components/Header/Header.mjs.map +1 -1
- package/lib/components/Header/Header.styles.d.ts +2 -2
- package/lib/components/Header/Header.types.d.ts +12 -4
- 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/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/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +1 -1
- package/lib/components/Header/Navigation/ProMenu/ProMenu.d.ts +2 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.js +103 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.js.map +1 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.mjs +81 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.mjs.map +1 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.d.ts +23 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.js +121 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.js.map +1 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.mjs +106 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.mjs.map +1 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.types.d.ts +12 -0
- package/lib/components/Header/Navigation/ProMenu/index.d.ts +1 -0
- package/lib/components/Header/Navigation/ProMenu/index.js +6 -0
- package/lib/components/{ResourceCalculatorV1/components → Header/Navigation/ProMenu}/index.js.map +1 -1
- package/lib/components/Header/Navigation/ProMenu/index.mjs +3 -0
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +92 -95
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +92 -95
- 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 +10 -4
- package/lib/components/Header/ProHeader/ProHeader.d.ts +3 -4
- package/lib/components/Header/ProHeader/ProHeader.js +247 -120
- package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.mjs +249 -124
- package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +4 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.js +23 -17
- package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs +21 -18
- 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 +4 -1
- package/lib/components/Header/translations/en.json.js.map +1 -1
- package/lib/components/Header/translations/en.json.mjs +4 -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.styles.d.ts +2 -2
- package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +1 -1
- package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.d.ts +1 -1
- package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.js +3 -1
- package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +1 -0
- package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.mjs +3 -1
- package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +1 -0
- package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.styles.d.ts +1 -0
- package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.styles.js +10 -7
- package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +1 -0
- package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.styles.mjs +10 -7
- package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +1 -0
- package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.types.d.ts +1 -0
- package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +2 -2
- package/lib/components/LandingPagePro/LandingPagePro.d.ts +3 -0
- package/lib/components/LandingPagePro/LandingPagePro.js +3 -3
- package/lib/components/LandingPagePro/LandingPagePro.js.map +1 -1
- package/lib/components/LandingPagePro/LandingPagePro.mjs +2 -2
- package/lib/components/LandingPagePro/LandingPagePro.mjs.map +1 -1
- package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +1 -1
- 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/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +1 -1
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +1 -1
- 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/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/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/data/CloudGateways.js +6 -6
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +4 -4
- package/lib/components/ModelCompareV3/data/products/udmProMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +1 -1
- package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +1 -1
- package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +1 -1
- package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +313 -17
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +311 -17
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.d.ts +3 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js +2 -0
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs +2 -0
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +120 -34
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs +120 -34
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.d.ts +16 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js +54 -12
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.mjs +50 -11
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/assets/ArrowLeftPrimary.svg.js +5 -5
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/assets/ArrowRightPrimary.svg.js +5 -5
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js +2 -0
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs +2 -0
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +1 -2
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs +1 -2
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs.map +1 -1
- package/lib/{assets/icons/menu/icon-globe.svg.js → components/ResourceCalculatorV1/assets/consoles/efg.png.js} +6 -6
- package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.js.map +1 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs +3 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs.map +1 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js +27 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js.map +1 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs +3 -0
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs.map +1 -0
- package/lib/components/ResourceCalculatorV1/translations/en.json.js +6 -4
- package/lib/components/ResourceCalculatorV1/translations/en.json.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/translations/en.json.mjs +6 -4
- package/lib/components/ResourceCalculatorV1/translations/en.json.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/translations/useResourceCalculatorTranslation.d.ts +2 -2
- package/lib/components/VideoPlayerNew/VideoPlayer.js +2 -2
- 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/proStoreCategories/mapping/index.d.ts +1 -0
- package/lib/constants/proStoreCategories/mapping/index.js +15 -10
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +15 -10
- package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.d.ts +2 -1
- package/lib/constants/proStoreCategories/mapping/unifi.js +1 -0
- package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs +1 -0
- package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +3 -0
- package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs +3 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +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 +1 -1
- 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/helpers/index.d.ts +1 -0
- package/lib/helpers/index.js +11 -0
- package/lib/helpers/index.js.map +1 -1
- package/lib/helpers/index.mjs +1 -0
- package/lib/helpers/index.mjs.map +1 -1
- package/lib/helpers/product.d.ts +87 -0
- package/lib/helpers/product.js +346 -0
- package/lib/helpers/product.js.map +1 -0
- package/lib/helpers/product.mjs +335 -0
- package/lib/helpers/product.mjs.map +1 -0
- package/lib/helpers/ux.d.ts +9 -1
- 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/types/index.d.ts +1 -0
- package/lib/types/index.js +2 -0
- package/lib/types/index.js.map +1 -1
- package/lib/types/index.mjs +1 -0
- package/lib/types/index.mjs.map +1 -1
- package/lib/types/product.d.ts +87 -0
- package/lib/types/product.js +14 -0
- package/lib/types/product.js.map +1 -0
- package/lib/types/product.mjs +13 -0
- package/lib/types/product.mjs.map +1 -0
- package/lib/utils/array.d.ts +4 -0
- package/lib/utils/array.js +10 -0
- package/lib/utils/array.js.map +1 -1
- package/lib/utils/array.mjs +10 -1
- package/lib/utils/array.mjs.map +1 -1
- package/lib/utils/money/allocators/fixedAmount.d.ts +26 -0
- package/lib/utils/money/allocators/fixedAmount.js +52 -0
- package/lib/utils/money/allocators/fixedAmount.js.map +1 -0
- package/lib/utils/money/allocators/fixedAmount.mjs +50 -0
- package/lib/utils/money/allocators/fixedAmount.mjs.map +1 -0
- package/lib/utils/money/allocators/index.d.ts +2 -0
- package/lib/utils/money/allocators/index.js +8 -0
- package/lib/utils/money/allocators/index.js.map +1 -0
- package/lib/utils/money/allocators/index.mjs +4 -0
- package/lib/utils/money/allocators/index.mjs.map +1 -0
- package/lib/utils/money/allocators/productAmount.d.ts +13 -0
- package/lib/utils/money/allocators/productAmount.js +98 -0
- package/lib/utils/money/allocators/productAmount.js.map +1 -0
- package/lib/utils/money/allocators/productAmount.mjs +96 -0
- package/lib/utils/money/allocators/productAmount.mjs.map +1 -0
- package/lib/utils/money/constants.d.ts +56 -25
- package/lib/utils/money/constants.js +72 -7
- package/lib/utils/money/constants.js.map +1 -1
- package/lib/utils/money/constants.mjs +70 -7
- package/lib/utils/money/constants.mjs.map +1 -1
- package/lib/utils/money/exchangeRate.d.ts +31 -0
- package/lib/utils/money/exchangeRate.js +27 -0
- package/lib/utils/money/exchangeRate.js.map +1 -0
- package/lib/utils/money/exchangeRate.mjs +23 -0
- package/lib/utils/money/exchangeRate.mjs.map +1 -0
- package/lib/utils/money/format.d.ts +10 -5
- package/lib/utils/money/format.js +22 -14
- package/lib/utils/money/format.js.map +1 -1
- package/lib/utils/money/format.mjs +23 -16
- package/lib/utils/money/format.mjs.map +1 -1
- package/lib/utils/money/index.d.ts +4 -1
- package/lib/utils/money/index.js +26 -8
- package/lib/utils/money/index.js.map +1 -1
- package/lib/utils/money/index.mjs +8 -4
- package/lib/utils/money/index.mjs.map +1 -1
- package/lib/utils/money/misc.d.ts +68 -28
- package/lib/utils/money/misc.js +35 -64
- package/lib/utils/money/misc.js.map +1 -1
- package/lib/utils/money/misc.mjs +32 -43
- package/lib/utils/money/misc.mjs.map +1 -1
- package/lib/utils/money/misc.private.d.ts +23 -0
- package/lib/utils/money/misc.private.js +46 -0
- package/lib/utils/money/misc.private.js.map +1 -0
- package/lib/utils/money/misc.private.mjs +21 -0
- package/lib/utils/money/misc.private.mjs.map +1 -0
- package/lib/utils/money/shipping.d.ts +5 -0
- package/lib/utils/money/shipping.js +8 -0
- package/lib/utils/money/shipping.js.map +1 -0
- package/lib/utils/money/shipping.mjs +6 -0
- package/lib/utils/money/shipping.mjs.map +1 -0
- package/lib/utils/money/tax.d.ts +38 -2
- package/lib/utils/money/tax.js +46 -10
- package/lib/utils/money/tax.js.map +1 -1
- package/lib/utils/money/tax.mjs +42 -11
- package/lib/utils/money/tax.mjs.map +1 -1
- package/lib/utils/money/tax.private.d.ts +17 -0
- package/lib/utils/money/tax.private.js +65 -0
- package/lib/utils/money/tax.private.js.map +1 -0
- package/lib/utils/money/tax.private.mjs +60 -0
- package/lib/utils/money/tax.private.mjs.map +1 -0
- package/lib/utils/money/types.d.ts +78 -3
- package/lib/utils/number.d.ts +1 -1
- package/lib/utils/number.js +1 -1
- package/lib/utils/number.js.map +1 -1
- package/lib/utils/number.mjs +1 -1
- package/lib/utils/number.mjs.map +1 -1
- package/lib/utils/productSort.d.ts +41 -0
- package/lib/utils/productSort.js +67 -0
- package/lib/utils/productSort.js.map +1 -0
- package/lib/utils/productSort.mjs +60 -0
- package/lib/utils/productSort.mjs.map +1 -0
- 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
- package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +0 -1
- package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +0 -1
- package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +0 -1
- package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +0 -1
- package/lib/components/ResourceCalculatorV1/components/index.d.ts +0 -1
- package/lib/components/ResourceCalculatorV1/components/index.js +0 -5
- package/lib/components/ResourceCalculatorV1/components/index.mjs +0 -3
- package/lib/utils/validations.d.ts +0 -15
- package/lib/utils/validations.js +0 -23
- package/lib/utils/validations.js.map +0 -1
- package/lib/utils/validations.mjs +0 -21
- package/lib/utils/validations.mjs.map +0 -1
- /package/lib/components/{ResourceCalculatorV1/components → Header/Navigation/ProMenu}/index.mjs.map +0 -0
- /package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/index.d.ts +0 -0
- /package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/index.js +0 -0
- /package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/index.js.map +0 -0
- /package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/index.mjs +0 -0
- /package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/index.mjs.map +0 -0
|
@@ -6,10 +6,7 @@ export declare const ProHeader: import("react").NamedExoticComponent<Pick<import
|
|
|
6
6
|
earlyAccess?: import("../Header.types").ProHeaderEarlyAccess;
|
|
7
7
|
handlePurchaseHistoryClick?: () => void;
|
|
8
8
|
handleOrderHistoryClick?: () => void;
|
|
9
|
-
productLineOptions?:
|
|
10
|
-
value: ProductLine;
|
|
11
|
-
label: string;
|
|
12
|
-
}[];
|
|
9
|
+
productLineOptions?: import("../Header.types").HeaderProductLineOption[];
|
|
13
10
|
productLineValue?: ProductLine;
|
|
14
11
|
handleProductLineChange?: (type: ProductLine) => void;
|
|
15
12
|
handleMobileMenuClick?: () => void;
|
|
@@ -19,4 +16,6 @@ export declare const ProHeader: import("react").NamedExoticComponent<Pick<import
|
|
|
19
16
|
onSearchFocus?: () => void;
|
|
20
17
|
onSearchBlur?: () => void;
|
|
21
18
|
onSearchClick?: () => void;
|
|
19
|
+
categories: import("../Header.types").ProHeaderCategories;
|
|
20
|
+
useInlineCategories?: boolean;
|
|
22
21
|
}>;
|
|
@@ -13,11 +13,14 @@ var layout = require('../../../constants/layout.js');
|
|
|
13
13
|
require('../../../contexts/MenuContext/index.js');
|
|
14
14
|
var mapping = require('../../../contexts/MenuContext/mapping.js');
|
|
15
15
|
var types = require('../../../contexts/MenuContext/types.js');
|
|
16
|
+
var ux = require('../../../helpers/ux.js');
|
|
16
17
|
require('../../../hooks/index.js');
|
|
18
|
+
var useHasTouch = require('../../../hooks/useHasTouch.js');
|
|
17
19
|
require('../../../types/index.js');
|
|
18
20
|
var asset = require('../../../utils/asset.js');
|
|
19
21
|
var errors = require('../../../utils/errors.js');
|
|
20
22
|
require('../../MobileModal/index.js');
|
|
23
|
+
require('../../ScrollWrapper/index.js');
|
|
21
24
|
require('../../StyleableSvgImage/index.js');
|
|
22
25
|
require('../../Tooltip/index.js');
|
|
23
26
|
require('../AccountFrame/index.js');
|
|
@@ -26,6 +29,8 @@ var Header_styles = require('../Header.styles.js');
|
|
|
26
29
|
var Header_types = require('../Header.types.js');
|
|
27
30
|
require('../LanguageFrame/index.js');
|
|
28
31
|
require('../LanguageFrame/Mobile/index.js');
|
|
32
|
+
require('../MenuItem/index.js');
|
|
33
|
+
require('../Navigation/ProMenu/index.js');
|
|
29
34
|
require('../Navigation/ProMobileMenu/index.js');
|
|
30
35
|
require('../translations/index.js');
|
|
31
36
|
var ProHeader_styles = require('./ProHeader.styles.js');
|
|
@@ -38,6 +43,10 @@ var NoUserAvatar = require("../../../assets/no-user-avatar.png");
|
|
|
38
43
|
var _externalAssets_CtJIOg_A = require("../../../assets/account.svg");
|
|
39
44
|
var StyleableSvgImage = require('../../StyleableSvgImage/StyleableSvgImage.js');
|
|
40
45
|
var _externalAssets_BPYvPCPi = require("../../../assets/logo.svg");
|
|
46
|
+
var _externalAssets_TKrekyEi = require("../../../assets/logoUisp.svg");
|
|
47
|
+
var _externalAssets_BH7iT_0Q = require("../../../assets/logoUnifi.svg");
|
|
48
|
+
var ScrollWrapper = require('../../ScrollWrapper/ScrollWrapper.js');
|
|
49
|
+
var MenuItem = require('../MenuItem/MenuItem.js');
|
|
41
50
|
var _externalAssets_g50k1DIN = require("../../../assets/search.svg");
|
|
42
51
|
var Tooltip = require('../../Tooltip/Tooltip.js');
|
|
43
52
|
var _externalAssets_DJH57LL8 = require("../../../assets/globe.svg");
|
|
@@ -51,6 +60,7 @@ var LanguageFrame = require('../LanguageFrame/LanguageFrame.js');
|
|
|
51
60
|
var Mobile$1 = require('../AccountFrame/Mobile/Mobile.js');
|
|
52
61
|
var AccountFrame = require('../AccountFrame/AccountFrame.js');
|
|
53
62
|
var ProMobileMenu = require('../Navigation/ProMobileMenu/ProMobileMenu.js');
|
|
63
|
+
var ProMenu = require('../Navigation/ProMenu/ProMenu.js');
|
|
54
64
|
function _interopDefault(e) {
|
|
55
65
|
return e && e.__esModule ? e : {
|
|
56
66
|
default: e
|
|
@@ -60,6 +70,8 @@ var merge__default = /*#__PURE__*/_interopDefault(merge);
|
|
|
60
70
|
var NoUserAvatar__default = /*#__PURE__*/_interopDefault(NoUserAvatar);
|
|
61
71
|
var _externalAssets_CtJIOg_A__default = /*#__PURE__*/_interopDefault(_externalAssets_CtJIOg_A);
|
|
62
72
|
var _externalAssets_BPYvPCPi__default = /*#__PURE__*/_interopDefault(_externalAssets_BPYvPCPi);
|
|
73
|
+
var _externalAssets_TKrekyEi__default = /*#__PURE__*/_interopDefault(_externalAssets_TKrekyEi);
|
|
74
|
+
var _externalAssets_BH7iT_0Q__default = /*#__PURE__*/_interopDefault(_externalAssets_BH7iT_0Q);
|
|
63
75
|
var _externalAssets_g50k1DIN__default = /*#__PURE__*/_interopDefault(_externalAssets_g50k1DIN);
|
|
64
76
|
var _externalAssets_DJH57LL8__default = /*#__PURE__*/_interopDefault(_externalAssets_DJH57LL8);
|
|
65
77
|
var HistoryIcon__default = /*#__PURE__*/_interopDefault(HistoryIcon);
|
|
@@ -67,7 +79,9 @@ var EAIcon__default = /*#__PURE__*/_interopDefault(EAIcon);
|
|
|
67
79
|
var _externalAssets_DtGmfNK5__default = /*#__PURE__*/_interopDefault(_externalAssets_DtGmfNK5);
|
|
68
80
|
var _externalAssets_CzDCu21b__default = /*#__PURE__*/_interopDefault(_externalAssets_CzDCu21b);
|
|
69
81
|
"use strict";
|
|
70
|
-
const
|
|
82
|
+
const MOBILE_BREAKPOINT_UP = layout.BREAKPOINTS.TABLET_UP;
|
|
83
|
+
const MOBILE_BREAKPOINT_AND_DOWN = layout.BREAKPOINTS.TABLET_AND_DOWN;
|
|
84
|
+
const DEFAULT_PRODUCT_LINE_OPTIONS = [{
|
|
71
85
|
value: generated.ProductLine.Unifi,
|
|
72
86
|
label: "UniFi"
|
|
73
87
|
}, {
|
|
@@ -93,17 +107,22 @@ const ProHeader = react.memo(function ProHeader2({
|
|
|
93
107
|
handleProductLineChange,
|
|
94
108
|
handleMobileMenuClick,
|
|
95
109
|
productLineValue,
|
|
110
|
+
categories,
|
|
111
|
+
useInlineCategories,
|
|
96
112
|
embedConfig,
|
|
97
113
|
onSearchFocus,
|
|
98
114
|
onSearchBlur,
|
|
99
115
|
onSearchClick,
|
|
100
|
-
productLineOptions =
|
|
116
|
+
productLineOptions = DEFAULT_PRODUCT_LINE_OPTIONS,
|
|
101
117
|
accountMenu,
|
|
102
118
|
onLanguageChange
|
|
103
119
|
}) {
|
|
104
|
-
const isMobile = reactUse.useMedia(
|
|
120
|
+
const isMobile = reactUse.useMedia(MOBILE_BREAKPOINT_AND_DOWN, false);
|
|
105
121
|
const rootRef = react.useRef(null);
|
|
122
|
+
const wrapRef = react.useRef(null);
|
|
123
|
+
const containerRef = react.useRef(null);
|
|
106
124
|
const [searchInputRef, setSearchInputRef] = react.useState(null);
|
|
125
|
+
const [desktopSearchInputRef, setDesktopSearchInputRef] = react.useState(null);
|
|
107
126
|
const translations = react.useMemo(() => {
|
|
108
127
|
return merge__default["default"](Header_types.defaultHeaderTranslations, initialTranslations);
|
|
109
128
|
}, [initialTranslations]);
|
|
@@ -185,12 +204,24 @@ const ProHeader = react.memo(function ProHeader2({
|
|
|
185
204
|
activeModal === types.ModalId.ProMobileMenu
|
|
186
205
|
);
|
|
187
206
|
}, [activeModal]);
|
|
207
|
+
const [showTouchProMenu, setShowTouchProMenu] = react.useState(false);
|
|
208
|
+
const logoRef = react.useRef(null);
|
|
209
|
+
const logoHover = reactUse.useHoverDirty(logoRef);
|
|
210
|
+
const showProMenu = react.useMemo(() => {
|
|
211
|
+
return logoHover || showTouchProMenu;
|
|
212
|
+
}, [logoHover, showTouchProMenu]);
|
|
188
213
|
const onClickAwayFromSearchModal = react.useCallback(() => {
|
|
214
|
+
if (useInlineCategories && !!searchValue && !isMobile) return;
|
|
189
215
|
if (activeModal === types.ModalId.Search) {
|
|
190
216
|
setActiveModal(null);
|
|
191
217
|
onSearchClick?.();
|
|
192
218
|
}
|
|
193
|
-
}, [activeModal, onSearchClick, setActiveModal]);
|
|
219
|
+
}, [activeModal, isMobile, onSearchClick, searchValue, setActiveModal, useInlineCategories]);
|
|
220
|
+
reactUse.useEffectOnce(() => {
|
|
221
|
+
if (searchValue) {
|
|
222
|
+
setActiveModal(types.ModalId.Search);
|
|
223
|
+
}
|
|
224
|
+
});
|
|
194
225
|
const blurSearchInput = react.useCallback(() => {
|
|
195
226
|
if (!searchInputRef || activeModal !== types.ModalId.Search) {
|
|
196
227
|
return;
|
|
@@ -224,8 +255,19 @@ const ProHeader = react.memo(function ProHeader2({
|
|
|
224
255
|
}, 0);
|
|
225
256
|
}
|
|
226
257
|
}, [handleModalOpen, onSearchClick, searchInputRef]);
|
|
258
|
+
react.useEffect(() => {
|
|
259
|
+
if (!useInlineCategories || activeModal !== types.ModalId.Search || isMobile) return;
|
|
260
|
+
if (desktopSearchInputRef) {
|
|
261
|
+
const interval = setInterval(() => {
|
|
262
|
+
if (document.activeElement === desktopSearchInputRef) {
|
|
263
|
+
clearInterval(interval);
|
|
264
|
+
}
|
|
265
|
+
desktopSearchInputRef.focus();
|
|
266
|
+
}, 0);
|
|
267
|
+
}
|
|
268
|
+
}, [activeModal, desktopSearchInputRef, isMobile, useInlineCategories]);
|
|
227
269
|
const handleSearchValueChange = react.useCallback(e => {
|
|
228
|
-
onSearch
|
|
270
|
+
onSearch?.(e.target.value);
|
|
229
271
|
}, [onSearch]);
|
|
230
272
|
const searchPlaceholder = react.useMemo(() => {
|
|
231
273
|
const defaultPlaceholder = translations.search.searchUniFiProducts;
|
|
@@ -249,7 +291,7 @@ const ProHeader = react.memo(function ProHeader2({
|
|
|
249
291
|
case generated.ProductLine.Amplifi:
|
|
250
292
|
return 164;
|
|
251
293
|
default:
|
|
252
|
-
return
|
|
294
|
+
return 160;
|
|
253
295
|
}
|
|
254
296
|
}, [productLineValue]);
|
|
255
297
|
react.useEffect(() => {
|
|
@@ -264,12 +306,39 @@ const ProHeader = react.memo(function ProHeader2({
|
|
|
264
306
|
const cartQuantity = react.useMemo(() => {
|
|
265
307
|
return cart?.items.reduce((sum, item) => sum + item.quantity, 0) ?? 0;
|
|
266
308
|
}, [cart?.items]);
|
|
267
|
-
const
|
|
309
|
+
const hasTouch = useHasTouch.useHasTouch();
|
|
310
|
+
const logoSiteUrl = react.useMemo(() => {
|
|
311
|
+
if (useInlineCategories) {
|
|
312
|
+
return createSiteUrl([mapping.SiteId.Store, "/"]);
|
|
313
|
+
}
|
|
314
|
+
return createSiteUrl([mapping.SiteId.Ui, "/"]);
|
|
315
|
+
}, [createSiteUrl, useInlineCategories]);
|
|
316
|
+
const onLogoAnchorClick = react.useCallback(e => {
|
|
268
317
|
if (embedConfig?.homeLinkClickHandler) {
|
|
269
318
|
e.preventDefault();
|
|
270
319
|
embedConfig.homeLinkClickHandler();
|
|
271
320
|
}
|
|
272
|
-
|
|
321
|
+
if (useInlineCategories && !showProMenu && !hasTouch) {
|
|
322
|
+
e.preventDefault();
|
|
323
|
+
setShowTouchProMenu(true);
|
|
324
|
+
}
|
|
325
|
+
}, [embedConfig, useInlineCategories, hasTouch, showProMenu]);
|
|
326
|
+
react.useEffect(() => {
|
|
327
|
+
if (!useInlineCategories) return;
|
|
328
|
+
const containerEl = containerRef.current;
|
|
329
|
+
if (!containerEl) return;
|
|
330
|
+
const wrapEl = wrapRef.current;
|
|
331
|
+
if (!wrapEl) return;
|
|
332
|
+
const [leftEl, centerEl, rightEl] = Array.from(wrapEl.children);
|
|
333
|
+
if (!leftEl || !centerEl || !rightEl) return;
|
|
334
|
+
const handle = () => {
|
|
335
|
+
centerEl.style.maxWidth = containerEl.offsetWidth - ux.getTrueSize(leftEl).width - ux.getTrueSize(rightEl).width - ProHeader_styles.WRAP_GAP * 2 -
|
|
336
|
+
// Remove extra 2 pixels just to be sure there's no overflow
|
|
337
|
+
2 + "px";
|
|
338
|
+
window.requestAnimationFrame(handle);
|
|
339
|
+
};
|
|
340
|
+
window.requestAnimationFrame(handle);
|
|
341
|
+
}, [useInlineCategories]);
|
|
273
342
|
const handleAvatarClick = react.useCallback(e => {
|
|
274
343
|
if (embedConfig?.avatarClickHandler) {
|
|
275
344
|
embedConfig.avatarClickHandler();
|
|
@@ -306,12 +375,38 @@ const ProHeader = react.memo(function ProHeader2({
|
|
|
306
375
|
})
|
|
307
376
|
});
|
|
308
377
|
}, [embedConfig?.moveAvatarIconToLeft, account?.customer?.picture, account?.loading, embedConfig?.displayAvatarAsImage, embedConfig?.hideAvatarIcon, handleAvatarClick, motif]);
|
|
378
|
+
const logoIconHtml = react.useMemo(() => {
|
|
379
|
+
const defaultIcon = /* @__PURE__ */jsxRuntime.jsx(StyleableSvgImage.StyleableSvgImage, {
|
|
380
|
+
src: _externalAssets_BPYvPCPi__default["default"],
|
|
381
|
+
width: 17.86,
|
|
382
|
+
height: 18
|
|
383
|
+
});
|
|
384
|
+
if (!useInlineCategories) {
|
|
385
|
+
return defaultIcon;
|
|
386
|
+
}
|
|
387
|
+
switch (productLineValue) {
|
|
388
|
+
case generated.ProductLine.Unifi:
|
|
389
|
+
return /* @__PURE__ */jsxRuntime.jsx(StyleableSvgImage.StyleableSvgImage, {
|
|
390
|
+
src: _externalAssets_BH7iT_0Q__default["default"],
|
|
391
|
+
width: 58.5,
|
|
392
|
+
height: 18
|
|
393
|
+
});
|
|
394
|
+
case generated.ProductLine.Uisp:
|
|
395
|
+
return /* @__PURE__ */jsxRuntime.jsx(StyleableSvgImage.StyleableSvgImage, {
|
|
396
|
+
src: _externalAssets_TKrekyEi__default["default"],
|
|
397
|
+
width: 56.5,
|
|
398
|
+
height: 18
|
|
399
|
+
});
|
|
400
|
+
default:
|
|
401
|
+
return defaultIcon;
|
|
402
|
+
}
|
|
403
|
+
}, [productLineValue, useInlineCategories]);
|
|
309
404
|
return /* @__PURE__ */jsxRuntime.jsxs(ProHeader_styles.ProHeaderWrap, {
|
|
310
405
|
ref: rootRef,
|
|
311
406
|
$sticky: !!embedConfig,
|
|
312
407
|
$disableBlur: activeModal === types.ModalId.Language && isMobile,
|
|
313
|
-
children: [/* @__PURE__ */jsxRuntime.
|
|
314
|
-
children: /* @__PURE__ */jsxRuntime.jsxs(ProHeader_styles.Header, {
|
|
408
|
+
children: [/* @__PURE__ */jsxRuntime.jsxs(Header_styles.HeaderWrap, {
|
|
409
|
+
children: [/* @__PURE__ */jsxRuntime.jsxs(ProHeader_styles.Header, {
|
|
315
410
|
sticky: sticky || !!embedConfig,
|
|
316
411
|
isStickyEmbed: !!embedConfig,
|
|
317
412
|
className,
|
|
@@ -320,136 +415,162 @@ const ProHeader = react.memo(function ProHeader2({
|
|
|
320
415
|
size: embedConfig?.fullWidthHeader ? "full" : "desktop",
|
|
321
416
|
noVerticalMargin: true,
|
|
322
417
|
noPaddings: !!embedConfig?.fullWidthHeader,
|
|
418
|
+
ref: containerRef,
|
|
323
419
|
children: [/* @__PURE__ */jsxRuntime.jsxs(ProHeader_styles.Wrap, {
|
|
324
|
-
|
|
420
|
+
ref: wrapRef,
|
|
421
|
+
children: [/* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.LeftWrap, {
|
|
325
422
|
$addSpaceOnDesktop: !!embedConfig?.fullWidthHeader,
|
|
326
|
-
children:
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
children: embedConfig.
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
width: 17,
|
|
337
|
-
height: 20
|
|
423
|
+
children: activeModal !== types.ModalId.ProMobileMenu && /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
424
|
+
children: [!embedConfig?.hideLogo && /* @__PURE__ */jsxRuntime.jsx(Header_styles.Anchor, {
|
|
425
|
+
href: logoSiteUrl,
|
|
426
|
+
onClick: onLogoAnchorClick,
|
|
427
|
+
children: embedConfig?.siteTitle ? /* @__PURE__ */jsxRuntime.jsx(Header_styles.SiteTitleWrap, {
|
|
428
|
+
children: embedConfig.siteTitle
|
|
429
|
+
}) : /* @__PURE__ */jsxRuntime.jsx(Header_styles.LogoIconWrap, {
|
|
430
|
+
motif,
|
|
431
|
+
ref: logoRef,
|
|
432
|
+
children: logoIconHtml
|
|
338
433
|
})
|
|
339
|
-
})
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
})
|
|
348
|
-
})
|
|
434
|
+
}), embedConfig?.moveAvatarIconToLeft && avatarHtml, !useInlineCategories && /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.BreakpointsWrap, {
|
|
435
|
+
hideBreakpoint: MOBILE_BREAKPOINT_AND_DOWN,
|
|
436
|
+
children: currentCountryName && /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.CountryButton, {
|
|
437
|
+
"data-test-id": "country-select-btn",
|
|
438
|
+
type: "button",
|
|
439
|
+
onClick: handleStorePickerClick,
|
|
440
|
+
children: currentCountryName
|
|
441
|
+
})
|
|
442
|
+
})]
|
|
443
|
+
})
|
|
349
444
|
}), /* @__PURE__ */jsxRuntime.jsxs(ProHeader_styles.CenterWrap, {
|
|
350
|
-
|
|
445
|
+
hideBreakpoint: MOBILE_BREAKPOINT_AND_DOWN,
|
|
446
|
+
children: [!useInlineCategories || activeModal === types.ModalId.Search ? /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.Search, {
|
|
447
|
+
setInputRef: setDesktopSearchInputRef,
|
|
351
448
|
onValueChange: handleSearchValueChange,
|
|
352
449
|
placeholder: searchPlaceholder,
|
|
353
450
|
isSearchFocused: !!searchValue || isSearchFocused,
|
|
354
451
|
value: searchValue || "",
|
|
355
452
|
showCancel: !!searchValue,
|
|
356
|
-
onCancelClick: () =>
|
|
357
|
-
onSearch && onSearch("");
|
|
358
|
-
},
|
|
453
|
+
onCancelClick: () => onSearch?.(""),
|
|
359
454
|
width: 420,
|
|
360
455
|
onFocus: handleSearchFocus,
|
|
361
456
|
onBlur: handleSearchBlur,
|
|
362
|
-
hideBreakpoint: layout.BREAKPOINTS.MOBILE_AND_DOWN,
|
|
363
457
|
focusedWidth: searchFocusWidth
|
|
364
|
-
})
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
458
|
+
}) : /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.InlineCategoryWrap, {
|
|
459
|
+
children: /* @__PURE__ */jsxRuntime.jsx(ScrollWrapper.ScrollWrapper, {
|
|
460
|
+
direction: "horizontal",
|
|
461
|
+
align: "center",
|
|
462
|
+
scrollStepType: "scrollScreen",
|
|
463
|
+
fillType: "gradient",
|
|
464
|
+
gradientSize: ProHeader_styles.WRAP_GAP * 4,
|
|
465
|
+
gap: ProHeader_styles.CATEGORY_ITEMS_GAP,
|
|
466
|
+
activeIndex: categories.activeIndex,
|
|
467
|
+
items: categories.items.map((category, i) => ({
|
|
468
|
+
id: category.id,
|
|
469
|
+
render() {
|
|
470
|
+
const active = categories.activeIndex === i;
|
|
471
|
+
return /* @__PURE__ */jsxRuntime.jsx(MenuItem.MenuItem, {
|
|
472
|
+
"data-test-id": `inline-category${active ? "-selected" : ""}`,
|
|
473
|
+
as: "a",
|
|
474
|
+
href: category.url ?? "#",
|
|
475
|
+
onClick: category.onClick && category.url ? e => category.onClick?.(e, category.url) : void 0,
|
|
476
|
+
active,
|
|
477
|
+
motif,
|
|
478
|
+
children: /* @__PURE__ */jsxRuntime.jsx(Header_styles.MenuItemLabel, {
|
|
479
|
+
children: category.label
|
|
480
|
+
})
|
|
481
|
+
}, category.id);
|
|
482
|
+
}
|
|
483
|
+
})) ?? []
|
|
373
484
|
})
|
|
485
|
+
}), !useInlineCategories && /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.ProductLineSelectorWrap, {
|
|
486
|
+
children: productLineOptions.map(option => /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.ProductLineSelectorItem, {
|
|
487
|
+
onClick: () => handleProductLineChange?.(option.value),
|
|
488
|
+
$active: option.value === productLineValue,
|
|
489
|
+
"data-test-id": `product-line-selector-${option.value}`,
|
|
490
|
+
children: option.label
|
|
491
|
+
}, option.value))
|
|
374
492
|
})]
|
|
375
493
|
}), /* @__PURE__ */jsxRuntime.jsxs(ProHeader_styles.RightWrap, {
|
|
376
494
|
$addSpaceOnDesktop: !!embedConfig?.fullWidthHeader,
|
|
377
|
-
children: [/* @__PURE__ */jsxRuntime.
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
495
|
+
children: [activeModal !== types.ModalId.ProMobileMenu && /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
496
|
+
children: [/* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.ProIconWrap, {
|
|
497
|
+
"data-test-id": "search-btn",
|
|
498
|
+
hideBreakpoint: !useInlineCategories ? MOBILE_BREAKPOINT_UP : void 0,
|
|
499
|
+
motif,
|
|
500
|
+
onClick: handleShowSearchTab,
|
|
501
|
+
children: /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.ProIconInnerFillWrap, {
|
|
502
|
+
$active: activeModal === types.ModalId.Search || !!searchValue,
|
|
503
|
+
$transparent: !!embedConfig || useInlineCategories && !isMobile,
|
|
504
|
+
children: /* @__PURE__ */jsxRuntime.jsx(Header_styles.SvgIcon, {
|
|
505
|
+
src: _externalAssets_g50k1DIN__default["default"],
|
|
506
|
+
width: Header_styles.HEADER_ICON_SIZE,
|
|
507
|
+
height: Header_styles.HEADER_ICON_SIZE
|
|
508
|
+
})
|
|
509
|
+
})
|
|
510
|
+
}), cart && /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.ProIconWrap, {
|
|
511
|
+
motif,
|
|
512
|
+
"data-test-id": "cart-btn",
|
|
513
|
+
onClick: e => cartQuantity > 0 && handleModalOpen(e, types.ModalId.Cart),
|
|
514
|
+
$isDefaultCursor: cartQuantity < 1,
|
|
515
|
+
children: cart?.loading ? /* @__PURE__ */jsxRuntime.jsx(Header_styles.SkeletonCircleLoader, {
|
|
516
|
+
diameter: Header_styles.HEADER_ICON_SIZE
|
|
517
|
+
}) : cartQuantity > 0 ? /* @__PURE__ */jsxRuntime.jsx(Header_styles.CartIcon, {
|
|
518
|
+
itemCount: cartQuantity,
|
|
519
|
+
motif,
|
|
520
|
+
width: Header_styles.HEADER_ICON_SIZE,
|
|
521
|
+
height: Header_styles.HEADER_ICON_SIZE
|
|
522
|
+
}) : /* @__PURE__ */jsxRuntime.jsx(Tooltip.Tooltip, {
|
|
523
|
+
description: translations.cart.empty,
|
|
524
|
+
motif: "light",
|
|
525
|
+
isInteractive: true,
|
|
526
|
+
position: "bottom",
|
|
527
|
+
style: {
|
|
528
|
+
height: `${Header_styles.HEADER_ICON_SIZE}px`
|
|
529
|
+
},
|
|
530
|
+
children: /* @__PURE__ */jsxRuntime.jsx(Header_styles.CartIcon, {
|
|
531
|
+
itemCount: cartQuantity,
|
|
532
|
+
motif,
|
|
533
|
+
width: Header_styles.HEADER_ICON_SIZE,
|
|
534
|
+
height: Header_styles.HEADER_ICON_SIZE
|
|
535
|
+
})
|
|
536
|
+
})
|
|
537
|
+
}), !embedConfig && !handlePurchaseHistoryClick && /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.VerticalDivider, {
|
|
538
|
+
hideBreakpoint: MOBILE_BREAKPOINT_AND_DOWN
|
|
539
|
+
}), isMultiLanguage && !embedConfig?.hideLanguagePicker && /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.ProIconWrap, {
|
|
540
|
+
motif,
|
|
541
|
+
"data-test-id": "language-picker-btn",
|
|
542
|
+
onClick: e => handleModalOpen(e, types.ModalId.Language),
|
|
384
543
|
children: /* @__PURE__ */jsxRuntime.jsx(Header_styles.SvgIcon, {
|
|
385
|
-
src:
|
|
544
|
+
src: _externalAssets_DJH57LL8__default["default"],
|
|
386
545
|
width: Header_styles.HEADER_ICON_SIZE,
|
|
387
546
|
height: Header_styles.HEADER_ICON_SIZE
|
|
388
547
|
})
|
|
389
|
-
})
|
|
390
|
-
|
|
391
|
-
motif,
|
|
392
|
-
"data-test-id": "cart-btn",
|
|
393
|
-
onClick: e => cartQuantity > 0 && handleModalOpen(e, types.ModalId.Cart),
|
|
394
|
-
$isDefaultCursor: cartQuantity < 1,
|
|
395
|
-
children: cart?.loading ? /* @__PURE__ */jsxRuntime.jsx(Header_styles.SkeletonCircleLoader, {
|
|
396
|
-
diameter: Header_styles.HEADER_ICON_SIZE
|
|
397
|
-
}) : cartQuantity > 0 ? /* @__PURE__ */jsxRuntime.jsx(Header_styles.CartIcon, {
|
|
398
|
-
itemCount: cartQuantity,
|
|
548
|
+
}), handlePurchaseHistoryClick && /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.ProIconWrap, {
|
|
549
|
+
hideBreakpoint: MOBILE_BREAKPOINT_AND_DOWN,
|
|
399
550
|
motif,
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
description: translations.cart.empty,
|
|
404
|
-
motif: "light",
|
|
405
|
-
isInteractive: true,
|
|
406
|
-
position: "bottom",
|
|
407
|
-
style: {
|
|
408
|
-
height: `${Header_styles.HEADER_ICON_SIZE}px`
|
|
409
|
-
},
|
|
410
|
-
children: /* @__PURE__ */jsxRuntime.jsx(Header_styles.CartIcon, {
|
|
411
|
-
itemCount: cartQuantity,
|
|
412
|
-
motif,
|
|
551
|
+
onClick: handlePurchaseHistoryClick,
|
|
552
|
+
children: /* @__PURE__ */jsxRuntime.jsx(Header_styles.SvgIcon, {
|
|
553
|
+
src: HistoryIcon__default["default"],
|
|
413
554
|
width: Header_styles.HEADER_ICON_SIZE,
|
|
414
555
|
height: Header_styles.HEADER_ICON_SIZE
|
|
415
556
|
})
|
|
416
|
-
})
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
onClick: handlePurchaseHistoryClick,
|
|
432
|
-
children: /* @__PURE__ */jsxRuntime.jsx(Header_styles.SvgIcon, {
|
|
433
|
-
src: HistoryIcon__default["default"],
|
|
434
|
-
width: Header_styles.HEADER_ICON_SIZE,
|
|
435
|
-
height: Header_styles.HEADER_ICON_SIZE
|
|
436
|
-
})
|
|
437
|
-
}), earlyAccess && /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.ProIconWrap, {
|
|
438
|
-
hideBreakpoint: layout.BREAKPOINTS.TABLET_AND_DOWN,
|
|
439
|
-
motif,
|
|
440
|
-
onClick: earlyAccess.onClick,
|
|
441
|
-
children: earlyAccess.loading ? /* @__PURE__ */jsxRuntime.jsx(Header_styles.SkeletonCircleLoader, {
|
|
442
|
-
diameter: Header_styles.HEADER_ICON_SIZE
|
|
443
|
-
}) : /* @__PURE__ */jsxRuntime.jsx(Header_styles.SvgIcon, {
|
|
444
|
-
src: EAIcon__default["default"],
|
|
445
|
-
width: Header_styles.HEADER_ICON_SIZE,
|
|
446
|
-
height: Header_styles.HEADER_ICON_SIZE * 0.8,
|
|
447
|
-
renderedHeight: Header_styles.HEADER_ICON_SIZE * 0.8
|
|
448
|
-
})
|
|
449
|
-
}), !embedConfig?.moveAvatarIconToLeft ? !accountMenu ? avatarHtml : accountMenu : null, /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.VerticalDivider, {
|
|
450
|
-
hideBreakpoint: layout.BREAKPOINTS.TABLET_UP
|
|
557
|
+
}), earlyAccess && /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.ProIconWrap, {
|
|
558
|
+
hideBreakpoint: MOBILE_BREAKPOINT_AND_DOWN,
|
|
559
|
+
motif,
|
|
560
|
+
onClick: earlyAccess.onClick,
|
|
561
|
+
children: earlyAccess.loading ? /* @__PURE__ */jsxRuntime.jsx(Header_styles.SkeletonCircleLoader, {
|
|
562
|
+
diameter: Header_styles.HEADER_ICON_SIZE
|
|
563
|
+
}) : /* @__PURE__ */jsxRuntime.jsx(Header_styles.SvgIcon, {
|
|
564
|
+
src: EAIcon__default["default"],
|
|
565
|
+
width: Header_styles.HEADER_ICON_SIZE,
|
|
566
|
+
height: Header_styles.HEADER_ICON_SIZE * 0.8,
|
|
567
|
+
renderedHeight: Header_styles.HEADER_ICON_SIZE * 0.8
|
|
568
|
+
})
|
|
569
|
+
}), !embedConfig?.moveAvatarIconToLeft ? !accountMenu ? avatarHtml : accountMenu : null, /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.VerticalDivider, {
|
|
570
|
+
hideBreakpoint: MOBILE_BREAKPOINT_UP
|
|
571
|
+
})]
|
|
451
572
|
}), /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.ProIconWrap, {
|
|
452
|
-
hideBreakpoint:
|
|
573
|
+
hideBreakpoint: MOBILE_BREAKPOINT_UP,
|
|
453
574
|
motif,
|
|
454
575
|
onClick: handleHamburgerClick,
|
|
455
576
|
children: activeModal === types.ModalId.ProMobileMenu ? /* @__PURE__ */jsxRuntime.jsx(Header_styles.SvgIcon, {
|
|
@@ -523,13 +644,21 @@ const ProHeader = react.memo(function ProHeader2({
|
|
|
523
644
|
handleProductLineChange,
|
|
524
645
|
productLineValue,
|
|
525
646
|
productLineOptions,
|
|
526
|
-
|
|
647
|
+
categories,
|
|
648
|
+
hideExtraSection: !!embedConfig
|
|
527
649
|
})]
|
|
528
|
-
})
|
|
650
|
+
}), useInlineCategories && !embedConfig && !isMobile && /* @__PURE__ */jsxRuntime.jsx(ProMenu.NavigationProMenu, {
|
|
651
|
+
show: showProMenu,
|
|
652
|
+
currentCountryName,
|
|
653
|
+
handleStorePickerClick,
|
|
654
|
+
productLineValue,
|
|
655
|
+
productLineOptions,
|
|
656
|
+
onProductLineChange: handleProductLineChange
|
|
657
|
+
})]
|
|
529
658
|
}), /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.SearchTabWrap, {
|
|
530
659
|
$show: activeModal === types.ModalId.Search,
|
|
531
660
|
$isStickyEmbed: !!embedConfig,
|
|
532
|
-
hideBreakpoint:
|
|
661
|
+
hideBreakpoint: MOBILE_BREAKPOINT_UP,
|
|
533
662
|
children: /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.Search, {
|
|
534
663
|
setInputRef: setSearchInputRef,
|
|
535
664
|
onValueChange: handleSearchValueChange,
|
|
@@ -537,9 +666,7 @@ const ProHeader = react.memo(function ProHeader2({
|
|
|
537
666
|
isSearchFocused: !!searchValue || isSearchFocused,
|
|
538
667
|
value: searchValue || "",
|
|
539
668
|
showCancel: !!searchValue,
|
|
540
|
-
onCancelClick: () =>
|
|
541
|
-
onSearch && onSearch("");
|
|
542
|
-
},
|
|
669
|
+
onCancelClick: () => onSearch?.(""),
|
|
543
670
|
onFocus: handleSearchFocus,
|
|
544
671
|
onBlur: handleSearchBlur,
|
|
545
672
|
focusedWidth: searchFocusWidth
|