@ubnt/store.core 9.18.0-alpha.8 → 9.18.0
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 +1 -193
- package/lib/_virtual/_virtual_multi-entry.js +12 -27
- package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
- package/lib/_virtual/_virtual_multi-entry.mjs +10 -14
- 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/{components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js → assets/icons/menu/icon-globe.svg.js} +6 -6
- package/lib/assets/icons/menu/icon-globe.svg.js.map +1 -0
- package/lib/assets/icons/menu/icon-globe.svg.mjs +3 -0
- package/lib/assets/icons/menu/icon-globe.svg.mjs.map +1 -0
- package/lib/assets/pause.svg +3 -3
- package/lib/assets/pause2.svg +3 -3
- 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/Compare/Compare.styles.d.ts +5 -5
- package/lib/components/Container/Container.d.ts +1 -1
- package/lib/components/Container/Container.js +3 -4
- package/lib/components/Container/Container.js.map +1 -1
- package/lib/components/Container/Container.mjs +4 -5
- package/lib/components/Container/Container.mjs.map +1 -1
- package/lib/components/Header/AccountMenu/AccountMenu.js +1 -11
- package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
- package/lib/components/Header/AccountMenu/AccountMenu.mjs +3 -13
- package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
- package/lib/components/Header/Header.styles.d.ts +2 -2
- package/lib/components/Header/Header.types.d.ts +4 -12
- package/lib/components/Header/Header.types.js +1 -2
- package/lib/components/Header/Header.types.js.map +1 -1
- package/lib/components/Header/Header.types.mjs +1 -2
- 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 +0 -1
- 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/ProMobileMenu/ProMobileMenu.d.ts +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +95 -92
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +95 -92
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +0 -9
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +1 -15
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +2 -13
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +4 -10
- package/lib/components/Header/ProHeader/ProHeader.d.ts +4 -3
- package/lib/components/Header/ProHeader/ProHeader.js +119 -245
- package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.mjs +123 -247
- package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +1 -7
- package/lib/components/Header/ProHeader/ProHeader.styles.js +17 -25
- package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs +18 -23
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
- package/lib/components/Header/translations/ar.json.js +1 -4
- package/lib/components/Header/translations/ar.json.js.map +1 -1
- package/lib/components/Header/translations/ar.json.mjs +2 -4
- package/lib/components/Header/translations/ar.json.mjs.map +1 -1
- package/lib/components/Header/translations/de.json.js +1 -4
- package/lib/components/Header/translations/de.json.js.map +1 -1
- package/lib/components/Header/translations/de.json.mjs +2 -4
- package/lib/components/Header/translations/de.json.mjs.map +1 -1
- package/lib/components/Header/translations/el.json.js +1 -4
- package/lib/components/Header/translations/el.json.js.map +1 -1
- package/lib/components/Header/translations/el.json.mjs +2 -4
- package/lib/components/Header/translations/el.json.mjs.map +1 -1
- package/lib/components/Header/translations/en.json.js +1 -4
- package/lib/components/Header/translations/en.json.js.map +1 -1
- package/lib/components/Header/translations/en.json.mjs +2 -4
- package/lib/components/Header/translations/en.json.mjs.map +1 -1
- package/lib/components/Header/translations/es.json.js +1 -4
- package/lib/components/Header/translations/es.json.js.map +1 -1
- package/lib/components/Header/translations/es.json.mjs +2 -4
- package/lib/components/Header/translations/es.json.mjs.map +1 -1
- package/lib/components/Header/translations/fr.json.js +1 -4
- package/lib/components/Header/translations/fr.json.js.map +1 -1
- package/lib/components/Header/translations/fr.json.mjs +2 -4
- package/lib/components/Header/translations/fr.json.mjs.map +1 -1
- package/lib/components/Header/translations/it.json.js +1 -4
- package/lib/components/Header/translations/it.json.js.map +1 -1
- package/lib/components/Header/translations/it.json.mjs +2 -4
- package/lib/components/Header/translations/it.json.mjs.map +1 -1
- package/lib/components/Header/translations/ja.json.js +1 -4
- package/lib/components/Header/translations/ja.json.js.map +1 -1
- package/lib/components/Header/translations/ja.json.mjs +2 -4
- package/lib/components/Header/translations/ja.json.mjs.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.js +1 -4
- package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.mjs +2 -4
- package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.js +1 -4
- package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.mjs +2 -4
- package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.js +1 -4
- package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.mjs +2 -4
- 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/HowToUseSection/HowToUseSection.styles.d.ts +2 -2
- package/lib/components/LandingPagePro/LandingPagePro.d.ts +0 -3
- 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/ModelCompareV3.types.d.ts +0 -1
- 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/VideoRecorders.js +2 -3
- package/lib/components/ModelCompareV3/data/VideoRecorders.js.map +1 -1
- package/lib/components/ModelCompareV3/data/VideoRecorders.mjs +2 -3
- package/lib/components/ModelCompareV3/data/VideoRecorders.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +1 -1
- package/lib/components/ModelCompareV3/translations/ar.json.js +106 -742
- package/lib/components/ModelCompareV3/translations/ar.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/ar.json.mjs +106 -742
- package/lib/components/ModelCompareV3/translations/ar.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/de.json.js +105 -741
- package/lib/components/ModelCompareV3/translations/de.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/de.json.mjs +105 -741
- package/lib/components/ModelCompareV3/translations/de.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/el.json.js +105 -741
- package/lib/components/ModelCompareV3/translations/el.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/el.json.mjs +105 -741
- package/lib/components/ModelCompareV3/translations/el.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/en.json.js +0 -6
- package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/en.json.mjs +0 -6
- package/lib/components/ModelCompareV3/translations/en.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/es.json.js +105 -741
- package/lib/components/ModelCompareV3/translations/es.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/es.json.mjs +105 -741
- package/lib/components/ModelCompareV3/translations/es.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/fr.json.js +105 -741
- package/lib/components/ModelCompareV3/translations/fr.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/fr.json.mjs +105 -741
- package/lib/components/ModelCompareV3/translations/fr.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/it.json.js +105 -741
- package/lib/components/ModelCompareV3/translations/it.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/it.json.mjs +105 -741
- package/lib/components/ModelCompareV3/translations/it.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/ja.json.js +105 -741
- package/lib/components/ModelCompareV3/translations/ja.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/ja.json.mjs +105 -741
- package/lib/components/ModelCompareV3/translations/ja.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/pt-BR.json.js +105 -741
- package/lib/components/ModelCompareV3/translations/pt-BR.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs +105 -741
- package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/useModelCompareTranslation.d.ts +2 -2
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.js +105 -741
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs +105 -741
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js +105 -741
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs +105 -741
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs.map +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 +17 -313
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +17 -311
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.d.ts +2 -3
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js +0 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs +0 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +34 -120
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs +34 -120
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.d.ts +2 -16
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js +12 -54
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.mjs +11 -50
- 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 +0 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs +0 -2
- 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 +2 -1
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs +2 -1
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs.map +1 -1
- package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.d.ts +1 -1
- package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.js +1 -3
- package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +1 -0
- package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.mjs +1 -3
- package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +1 -0
- package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.d.ts +0 -1
- package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.js +7 -10
- package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +1 -0
- package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.mjs +7 -10
- package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +1 -0
- package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.types.d.ts +0 -1
- package/lib/components/ResourceCalculatorV1/components/index.d.ts +1 -0
- package/lib/components/ResourceCalculatorV1/components/index.js +5 -0
- package/lib/components/{Header/Navigation/ProMenu → ResourceCalculatorV1/components}/index.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/components/index.mjs +3 -0
- package/lib/components/ResourceCalculatorV1/translations/en.json.js +4 -6
- package/lib/components/ResourceCalculatorV1/translations/en.json.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/translations/en.json.mjs +4 -6
- 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 +1 -1
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +1 -1
- 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 +0 -1
- package/lib/components/index.js +0 -2
- package/lib/components/index.js.map +1 -1
- package/lib/components/index.mjs +0 -2
- 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/index.d.ts +0 -1
- package/lib/constants/proStoreCategories/mapping/index.js +10 -15
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +10 -15
- package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.d.ts +1 -2
- package/lib/constants/proStoreCategories/mapping/unifi.js +0 -1
- package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs +0 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +0 -3
- package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs +1 -3
- 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 +0 -4
- package/lib/constants/theme.js.map +1 -1
- package/lib/constants/theme.mjs +0 -4
- 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 +0 -1
- package/lib/helpers/index.js +0 -11
- package/lib/helpers/index.js.map +1 -1
- package/lib/helpers/index.mjs +0 -1
- package/lib/helpers/index.mjs.map +1 -1
- package/lib/helpers/ux.d.ts +1 -9
- package/lib/helpers/ux.js +0 -15
- package/lib/helpers/ux.js.map +1 -1
- package/lib/helpers/ux.mjs +1 -15
- package/lib/helpers/ux.mjs.map +1 -1
- package/lib/types/index.d.ts +0 -1
- package/lib/types/index.js +0 -2
- package/lib/types/index.js.map +1 -1
- package/lib/types/index.mjs +0 -1
- package/lib/types/index.mjs.map +1 -1
- package/lib/utils/array.d.ts +0 -4
- package/lib/utils/array.js +0 -10
- package/lib/utils/array.js.map +1 -1
- package/lib/utils/array.mjs +1 -10
- package/lib/utils/array.mjs.map +1 -1
- package/lib/utils/money/constants.d.ts +25 -56
- package/lib/utils/money/constants.js +7 -72
- package/lib/utils/money/constants.js.map +1 -1
- package/lib/utils/money/constants.mjs +7 -70
- package/lib/utils/money/constants.mjs.map +1 -1
- package/lib/utils/money/format.d.ts +5 -10
- package/lib/utils/money/format.js +14 -22
- package/lib/utils/money/format.js.map +1 -1
- package/lib/utils/money/format.mjs +16 -23
- package/lib/utils/money/format.mjs.map +1 -1
- package/lib/utils/money/index.d.ts +1 -4
- package/lib/utils/money/index.js +8 -26
- package/lib/utils/money/index.js.map +1 -1
- package/lib/utils/money/index.mjs +4 -8
- package/lib/utils/money/index.mjs.map +1 -1
- package/lib/utils/money/misc.d.ts +28 -68
- package/lib/utils/money/misc.js +64 -35
- package/lib/utils/money/misc.js.map +1 -1
- package/lib/utils/money/misc.mjs +43 -32
- package/lib/utils/money/misc.mjs.map +1 -1
- package/lib/utils/money/tax.d.ts +2 -38
- package/lib/utils/money/tax.js +10 -46
- package/lib/utils/money/tax.js.map +1 -1
- package/lib/utils/money/tax.mjs +11 -42
- package/lib/utils/money/tax.mjs.map +1 -1
- package/lib/utils/money/types.d.ts +3 -78
- 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/validations.d.ts +15 -0
- package/lib/utils/validations.js +23 -0
- package/lib/utils/validations.js.map +1 -0
- package/lib/utils/validations.mjs +21 -0
- package/lib/utils/validations.mjs.map +1 -0
- package/package.json +1 -1
- package/lib/assets/efg.png +0 -0
- package/lib/assets/envr.png +0 -0
- package/lib/assets/icon-location-pin.svg +0 -5
- package/lib/assets/icons/menu/icon-location-pin.svg.js +0 -27
- package/lib/assets/icons/menu/icon-location-pin.svg.js.map +0 -1
- package/lib/assets/icons/menu/icon-location-pin.svg.mjs +0 -3
- package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +0 -1
- package/lib/assets/ucg-max.png +0 -0
- package/lib/components/Header/Navigation/ProMenu/ProMenu.d.ts +0 -2
- package/lib/components/Header/Navigation/ProMenu/ProMenu.js +0 -103
- package/lib/components/Header/Navigation/ProMenu/ProMenu.js.map +0 -1
- package/lib/components/Header/Navigation/ProMenu/ProMenu.mjs +0 -81
- package/lib/components/Header/Navigation/ProMenu/ProMenu.mjs.map +0 -1
- package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.d.ts +0 -23
- package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.js +0 -121
- package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.js.map +0 -1
- package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.mjs +0 -106
- package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.mjs.map +0 -1
- package/lib/components/Header/Navigation/ProMenu/ProMenu.types.d.ts +0 -12
- package/lib/components/Header/Navigation/ProMenu/index.d.ts +0 -1
- package/lib/components/Header/Navigation/ProMenu/index.js +0 -6
- package/lib/components/Header/Navigation/ProMenu/index.mjs +0 -3
- package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +0 -1
- package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +0 -1
- package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +0 -1
- package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +0 -1
- package/lib/components/ModelCompareV3/assets/envr.png.js +0 -27
- package/lib/components/ModelCompareV3/assets/envr.png.js.map +0 -1
- package/lib/components/ModelCompareV3/assets/envr.png.mjs +0 -3
- package/lib/components/ModelCompareV3/assets/envr.png.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/products/envr.d.ts +0 -2
- package/lib/components/ModelCompareV3/data/products/envr.js +0 -97
- package/lib/components/ModelCompareV3/data/products/envr.js.map +0 -1
- package/lib/components/ModelCompareV3/data/products/envr.mjs +0 -89
- package/lib/components/ModelCompareV3/data/products/envr.mjs.map +0 -1
- package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.js +0 -27
- package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.js.map +0 -1
- package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs +0 -3
- package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs.map +0 -1
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js.map +0 -1
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs +0 -3
- package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs.map +0 -1
- package/lib/helpers/product.d.ts +0 -87
- package/lib/helpers/product.js +0 -346
- package/lib/helpers/product.js.map +0 -1
- package/lib/helpers/product.mjs +0 -335
- package/lib/helpers/product.mjs.map +0 -1
- package/lib/types/product.d.ts +0 -87
- package/lib/types/product.js +0 -14
- package/lib/types/product.js.map +0 -1
- package/lib/types/product.mjs +0 -13
- package/lib/types/product.mjs.map +0 -1
- package/lib/utils/money/allocators/fixedAmount.d.ts +0 -26
- package/lib/utils/money/allocators/fixedAmount.js +0 -52
- package/lib/utils/money/allocators/fixedAmount.js.map +0 -1
- package/lib/utils/money/allocators/fixedAmount.mjs +0 -50
- package/lib/utils/money/allocators/fixedAmount.mjs.map +0 -1
- package/lib/utils/money/allocators/index.d.ts +0 -2
- package/lib/utils/money/allocators/index.js +0 -8
- package/lib/utils/money/allocators/index.js.map +0 -1
- package/lib/utils/money/allocators/index.mjs +0 -4
- package/lib/utils/money/allocators/index.mjs.map +0 -1
- package/lib/utils/money/allocators/productAmount.d.ts +0 -13
- package/lib/utils/money/allocators/productAmount.js +0 -98
- package/lib/utils/money/allocators/productAmount.js.map +0 -1
- package/lib/utils/money/allocators/productAmount.mjs +0 -96
- package/lib/utils/money/allocators/productAmount.mjs.map +0 -1
- package/lib/utils/money/exchangeRate.d.ts +0 -31
- package/lib/utils/money/exchangeRate.js +0 -27
- package/lib/utils/money/exchangeRate.js.map +0 -1
- package/lib/utils/money/exchangeRate.mjs +0 -23
- package/lib/utils/money/exchangeRate.mjs.map +0 -1
- package/lib/utils/money/misc.private.d.ts +0 -23
- package/lib/utils/money/misc.private.js +0 -46
- package/lib/utils/money/misc.private.js.map +0 -1
- package/lib/utils/money/misc.private.mjs +0 -21
- package/lib/utils/money/misc.private.mjs.map +0 -1
- package/lib/utils/money/shipping.d.ts +0 -5
- package/lib/utils/money/shipping.js +0 -8
- package/lib/utils/money/shipping.js.map +0 -1
- package/lib/utils/money/shipping.mjs +0 -6
- package/lib/utils/money/shipping.mjs.map +0 -1
- package/lib/utils/money/tax.private.d.ts +0 -17
- package/lib/utils/money/tax.private.js +0 -65
- package/lib/utils/money/tax.private.js.map +0 -1
- package/lib/utils/money/tax.private.mjs +0 -60
- package/lib/utils/money/tax.private.mjs.map +0 -1
- package/lib/utils/productSort.d.ts +0 -41
- package/lib/utils/productSort.js +0 -67
- package/lib/utils/productSort.js.map +0 -1
- package/lib/utils/productSort.mjs +0 -60
- package/lib/utils/productSort.mjs.map +0 -1
- /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.d.ts +0 -0
- /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.js +0 -0
- /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.js.map +0 -0
- /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.mjs +0 -0
- /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.mjs.map +0 -0
- /package/lib/components/{Header/Navigation/ProMenu → ResourceCalculatorV1/components}/index.mjs.map +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx, jsxs
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { LineLoader } from '@ubnt/ui-components/LineLoader';
|
|
3
3
|
import merge from 'lodash/merge';
|
|
4
4
|
import { memo, useRef, useState, useMemo, useEffect, useCallback } from 'react';
|
|
5
|
-
import { useMedia,
|
|
5
|
+
import { useMedia, useClickAway } from 'react-use';
|
|
6
6
|
import '../../../assets/account/no-user-avatar.png.mjs';
|
|
7
7
|
import '../../../assets/icons/menu/icon-ea.svg.mjs';
|
|
8
8
|
import '../../../assets/icons/menu/icon-history.svg.mjs';
|
|
@@ -11,27 +11,22 @@ import { BREAKPOINTS } from '../../../constants/layout.mjs';
|
|
|
11
11
|
import '../../../contexts/MenuContext/index.mjs';
|
|
12
12
|
import { SiteId } from '../../../contexts/MenuContext/mapping.mjs';
|
|
13
13
|
import { ModalId } from '../../../contexts/MenuContext/types.mjs';
|
|
14
|
-
import { getTrueSize } from '../../../helpers/ux.mjs';
|
|
15
14
|
import '../../../hooks/index.mjs';
|
|
16
|
-
import { useHasTouch } from '../../../hooks/useHasTouch.mjs';
|
|
17
15
|
import '../../../types/index.mjs';
|
|
18
16
|
import { imageSrc } from '../../../utils/asset.mjs';
|
|
19
17
|
import { checkUnreachable } from '../../../utils/errors.mjs';
|
|
20
18
|
import '../../MobileModal/index.mjs';
|
|
21
|
-
import '../../ScrollWrapper/index.mjs';
|
|
22
19
|
import '../../StyleableSvgImage/index.mjs';
|
|
23
20
|
import '../../Tooltip/index.mjs';
|
|
24
21
|
import '../AccountFrame/index.mjs';
|
|
25
22
|
import '../AccountFrame/Mobile/index.mjs';
|
|
26
|
-
import { SkeletonCircleLoader, HEADER_ICON_SIZE, SvgIcon, HeaderWrap, Container, Anchor, SiteTitleWrap, LogoIconWrap,
|
|
23
|
+
import { SkeletonCircleLoader, HEADER_ICON_SIZE, SvgIcon, HeaderWrap, Container, Anchor, SiteTitleWrap, LogoIconWrap, CartIcon, ModalWrap, ModalInnerWrap } from '../Header.styles.mjs';
|
|
27
24
|
import { defaultHeaderTranslations } from '../Header.types.mjs';
|
|
28
25
|
import '../LanguageFrame/index.mjs';
|
|
29
26
|
import '../LanguageFrame/Mobile/index.mjs';
|
|
30
|
-
import '../MenuItem/index.mjs';
|
|
31
|
-
import '../Navigation/ProMenu/index.mjs';
|
|
32
27
|
import '../Navigation/ProMobileMenu/index.mjs';
|
|
33
28
|
import '../translations/index.mjs';
|
|
34
|
-
import {
|
|
29
|
+
import { ProIconWrap, AvatarWrap, ProHeaderWrap, Header, Wrap, LeftWrap, BreakpointsWrap, CountryButton, CenterWrap, Search, ProductLineSelectorWrap, ProductLineSelectorItem, RightWrap, ProIconInnerFillWrap, VerticalDivider, SearchTabWrap } from './ProHeader.styles.mjs';
|
|
35
30
|
import { ProductLine } from '../../../types/generated.mjs';
|
|
36
31
|
import { useMenu } from '../../../contexts/MenuContext/context.mjs';
|
|
37
32
|
import { useTranslation } from '../../../hooks/useTranslation.mjs';
|
|
@@ -41,10 +36,6 @@ import NoUserAvatar__default from "../../../assets/no-user-avatar.png";
|
|
|
41
36
|
import _externalAssets_CtJIOg_A__default from "../../../assets/account.svg";
|
|
42
37
|
import { StyleableSvgImage } from '../../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
43
38
|
import _externalAssets_BPYvPCPi__default from "../../../assets/logo.svg";
|
|
44
|
-
import _externalAssets_TKrekyEi__default from "../../../assets/logoUisp.svg";
|
|
45
|
-
import _externalAssets_BH7iT_0Q__default from "../../../assets/logoUnifi.svg";
|
|
46
|
-
import { ScrollWrapper } from '../../ScrollWrapper/ScrollWrapper.mjs';
|
|
47
|
-
import { MenuItem } from '../MenuItem/MenuItem.mjs';
|
|
48
39
|
import _externalAssets_g50k1DIN__default from "../../../assets/search.svg";
|
|
49
40
|
import { Tooltip } from '../../Tooltip/Tooltip.mjs';
|
|
50
41
|
import _externalAssets_DJH57LL8__default from "../../../assets/globe.svg";
|
|
@@ -58,11 +49,8 @@ import { LanguageFrame } from '../LanguageFrame/LanguageFrame.mjs';
|
|
|
58
49
|
import { AccountFrameMobile } from '../AccountFrame/Mobile/Mobile.mjs';
|
|
59
50
|
import { AccountFrame } from '../AccountFrame/AccountFrame.mjs';
|
|
60
51
|
import { NavigationProMobileMenu } from '../Navigation/ProMobileMenu/ProMobileMenu.mjs';
|
|
61
|
-
import { NavigationProMenu } from '../Navigation/ProMenu/ProMenu.mjs';
|
|
62
52
|
"use strict";
|
|
63
|
-
const
|
|
64
|
-
const MOBILE_BREAKPOINT_AND_DOWN = BREAKPOINTS.TABLET_AND_DOWN;
|
|
65
|
-
const DEFAULT_PRODUCT_LINE_OPTIONS = [{
|
|
53
|
+
const defaultProductLineOptions = [{
|
|
66
54
|
value: ProductLine.Unifi,
|
|
67
55
|
label: "UniFi"
|
|
68
56
|
}, {
|
|
@@ -88,22 +76,17 @@ const ProHeader = memo(function ProHeader2({
|
|
|
88
76
|
handleProductLineChange,
|
|
89
77
|
handleMobileMenuClick,
|
|
90
78
|
productLineValue,
|
|
91
|
-
categories,
|
|
92
|
-
useInlineCategories,
|
|
93
79
|
embedConfig,
|
|
94
80
|
onSearchFocus,
|
|
95
81
|
onSearchBlur,
|
|
96
82
|
onSearchClick,
|
|
97
|
-
productLineOptions =
|
|
83
|
+
productLineOptions = defaultProductLineOptions,
|
|
98
84
|
accountMenu,
|
|
99
85
|
onLanguageChange
|
|
100
86
|
}) {
|
|
101
|
-
const isMobile = useMedia(
|
|
87
|
+
const isMobile = useMedia(BREAKPOINTS.MOBILE_AND_DOWN, false);
|
|
102
88
|
const rootRef = useRef(null);
|
|
103
|
-
const wrapRef = useRef(null);
|
|
104
|
-
const containerRef = useRef(null);
|
|
105
89
|
const [searchInputRef, setSearchInputRef] = useState(null);
|
|
106
|
-
const [desktopSearchInputRef, setDesktopSearchInputRef] = useState(null);
|
|
107
90
|
const translations = useMemo(() => {
|
|
108
91
|
return merge(defaultHeaderTranslations, initialTranslations);
|
|
109
92
|
}, [initialTranslations]);
|
|
@@ -165,23 +148,12 @@ const ProHeader = memo(function ProHeader2({
|
|
|
165
148
|
activeModal === ModalId.ProMobileMenu
|
|
166
149
|
);
|
|
167
150
|
}, [activeModal]);
|
|
168
|
-
const [showTouchProMenu, setShowTouchProMenu] = useState(false);
|
|
169
|
-
const logoRef = useRef(null);
|
|
170
|
-
const logoHover = useHoverDirty(logoRef);
|
|
171
|
-
const showProMenu = useMemo(() => {
|
|
172
|
-
return logoHover || showTouchProMenu;
|
|
173
|
-
}, [logoHover, showTouchProMenu]);
|
|
174
151
|
const onClickAwayFromSearchModal = useCallback(() => {
|
|
175
152
|
if (activeModal === ModalId.Search) {
|
|
176
153
|
setActiveModal(null);
|
|
177
154
|
onSearchClick?.();
|
|
178
155
|
}
|
|
179
156
|
}, [activeModal, onSearchClick, setActiveModal]);
|
|
180
|
-
useEffectOnce(() => {
|
|
181
|
-
if (searchValue) {
|
|
182
|
-
setActiveModal(ModalId.Search);
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
157
|
const blurSearchInput = useCallback(() => {
|
|
186
158
|
if (!searchInputRef || activeModal !== ModalId.Search) {
|
|
187
159
|
return;
|
|
@@ -215,19 +187,8 @@ const ProHeader = memo(function ProHeader2({
|
|
|
215
187
|
}, 0);
|
|
216
188
|
}
|
|
217
189
|
}, [handleModalOpen, onSearchClick, searchInputRef]);
|
|
218
|
-
useEffect(() => {
|
|
219
|
-
if (!useInlineCategories || activeModal !== ModalId.Search) return;
|
|
220
|
-
if (desktopSearchInputRef) {
|
|
221
|
-
const interval = setInterval(() => {
|
|
222
|
-
if (document.activeElement === desktopSearchInputRef) {
|
|
223
|
-
clearInterval(interval);
|
|
224
|
-
}
|
|
225
|
-
desktopSearchInputRef.focus();
|
|
226
|
-
}, 0);
|
|
227
|
-
}
|
|
228
|
-
}, [activeModal, desktopSearchInputRef, useInlineCategories]);
|
|
229
190
|
const handleSearchValueChange = useCallback(e => {
|
|
230
|
-
onSearch
|
|
191
|
+
onSearch && onSearch(e.target.value);
|
|
231
192
|
}, [onSearch]);
|
|
232
193
|
const searchPlaceholder = useMemo(() => {
|
|
233
194
|
const defaultPlaceholder = translations.search.searchUniFiProducts;
|
|
@@ -251,7 +212,7 @@ const ProHeader = memo(function ProHeader2({
|
|
|
251
212
|
case ProductLine.Amplifi:
|
|
252
213
|
return 164;
|
|
253
214
|
default:
|
|
254
|
-
return
|
|
215
|
+
return 150;
|
|
255
216
|
}
|
|
256
217
|
}, [productLineValue]);
|
|
257
218
|
useEffect(() => {
|
|
@@ -266,38 +227,12 @@ const ProHeader = memo(function ProHeader2({
|
|
|
266
227
|
const cartQuantity = useMemo(() => {
|
|
267
228
|
return cart?.items.reduce((sum, item) => sum + item.quantity, 0) ?? 0;
|
|
268
229
|
}, [cart?.items]);
|
|
269
|
-
const
|
|
270
|
-
const logoSiteUrl = useMemo(() => {
|
|
271
|
-
if (useInlineCategories) {
|
|
272
|
-
return createSiteUrl([SiteId.Store, "/"]);
|
|
273
|
-
}
|
|
274
|
-
return createSiteUrl([SiteId.Ui, "/"]);
|
|
275
|
-
}, [createSiteUrl, useInlineCategories]);
|
|
276
|
-
const onLogoAnchorClick = useCallback(e => {
|
|
230
|
+
const homeLinkClickHandler = useCallback(e => {
|
|
277
231
|
if (embedConfig?.homeLinkClickHandler) {
|
|
278
232
|
e.preventDefault();
|
|
279
233
|
embedConfig.homeLinkClickHandler();
|
|
280
234
|
}
|
|
281
|
-
|
|
282
|
-
e.preventDefault();
|
|
283
|
-
setShowTouchProMenu(true);
|
|
284
|
-
}
|
|
285
|
-
}, [embedConfig, useInlineCategories, hasTouch, showProMenu]);
|
|
286
|
-
useEffect(() => {
|
|
287
|
-
const containerEl = containerRef.current;
|
|
288
|
-
if (!containerEl) return;
|
|
289
|
-
const wrapEl = wrapRef.current;
|
|
290
|
-
if (!wrapEl) return;
|
|
291
|
-
const [leftEl, centerEl, rightEl] = Array.from(wrapEl.children);
|
|
292
|
-
if (!leftEl || !centerEl || !rightEl) return;
|
|
293
|
-
const handle = () => {
|
|
294
|
-
centerEl.style.maxWidth = containerEl.offsetWidth - getTrueSize(leftEl).width - getTrueSize(rightEl).width - WRAP_GAP * 2 -
|
|
295
|
-
// Remove extra 2 pixels just to be sure there's no overflow
|
|
296
|
-
2 + "px";
|
|
297
|
-
window.requestAnimationFrame(handle);
|
|
298
|
-
};
|
|
299
|
-
window.requestAnimationFrame(handle);
|
|
300
|
-
}, []);
|
|
235
|
+
}, [embedConfig]);
|
|
301
236
|
const handleAvatarClick = useCallback(e => {
|
|
302
237
|
if (embedConfig?.avatarClickHandler) {
|
|
303
238
|
embedConfig.avatarClickHandler();
|
|
@@ -334,38 +269,12 @@ const ProHeader = memo(function ProHeader2({
|
|
|
334
269
|
})
|
|
335
270
|
});
|
|
336
271
|
}, [embedConfig?.moveAvatarIconToLeft, account?.customer?.picture, account?.loading, embedConfig?.displayAvatarAsImage, embedConfig?.hideAvatarIcon, handleAvatarClick, motif]);
|
|
337
|
-
const logoIconHtml = useMemo(() => {
|
|
338
|
-
const defaultIcon = /* @__PURE__ */jsx(StyleableSvgImage, {
|
|
339
|
-
src: _externalAssets_BPYvPCPi__default,
|
|
340
|
-
width: 17,
|
|
341
|
-
height: 20
|
|
342
|
-
});
|
|
343
|
-
if (!useInlineCategories) {
|
|
344
|
-
return defaultIcon;
|
|
345
|
-
}
|
|
346
|
-
switch (productLineValue) {
|
|
347
|
-
case ProductLine.Unifi:
|
|
348
|
-
return /* @__PURE__ */jsx(StyleableSvgImage, {
|
|
349
|
-
src: _externalAssets_BH7iT_0Q__default,
|
|
350
|
-
width: 58.5,
|
|
351
|
-
height: 18
|
|
352
|
-
});
|
|
353
|
-
case ProductLine.Uisp:
|
|
354
|
-
return /* @__PURE__ */jsx(StyleableSvgImage, {
|
|
355
|
-
src: _externalAssets_TKrekyEi__default,
|
|
356
|
-
width: 56.5,
|
|
357
|
-
height: 18
|
|
358
|
-
});
|
|
359
|
-
default:
|
|
360
|
-
return defaultIcon;
|
|
361
|
-
}
|
|
362
|
-
}, [productLineValue, useInlineCategories]);
|
|
363
272
|
return /* @__PURE__ */jsxs(ProHeaderWrap, {
|
|
364
273
|
ref: rootRef,
|
|
365
274
|
$sticky: !!embedConfig,
|
|
366
275
|
$disableBlur: activeModal === ModalId.Language && isMobile,
|
|
367
|
-
children: [/* @__PURE__ */
|
|
368
|
-
children:
|
|
276
|
+
children: [/* @__PURE__ */jsx(HeaderWrap, {
|
|
277
|
+
children: /* @__PURE__ */jsxs(Header, {
|
|
369
278
|
sticky: sticky || !!embedConfig,
|
|
370
279
|
isStickyEmbed: !!embedConfig,
|
|
371
280
|
className,
|
|
@@ -374,163 +283,136 @@ const ProHeader = memo(function ProHeader2({
|
|
|
374
283
|
size: embedConfig?.fullWidthHeader ? "full" : "desktop",
|
|
375
284
|
noVerticalMargin: true,
|
|
376
285
|
noPaddings: !!embedConfig?.fullWidthHeader,
|
|
377
|
-
ref: containerRef,
|
|
378
286
|
children: [/* @__PURE__ */jsxs(Wrap, {
|
|
379
|
-
|
|
380
|
-
children: [/* @__PURE__ */jsx(LeftWrap, {
|
|
287
|
+
children: [/* @__PURE__ */jsxs(LeftWrap, {
|
|
381
288
|
$addSpaceOnDesktop: !!embedConfig?.fullWidthHeader,
|
|
382
|
-
children:
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
children: embedConfig
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
hideBreakpoint: MOBILE_BREAKPOINT_AND_DOWN,
|
|
395
|
-
children: currentCountryName && /* @__PURE__ */jsx(CountryButton, {
|
|
396
|
-
"data-test-id": "country-select-btn",
|
|
397
|
-
type: "button",
|
|
398
|
-
onClick: handleStorePickerClick,
|
|
399
|
-
children: currentCountryName
|
|
289
|
+
children: [!embedConfig?.hideLogo && /* @__PURE__ */jsx(Anchor, {
|
|
290
|
+
href: createSiteUrl([SiteId.Ui, ""]),
|
|
291
|
+
onClick: homeLinkClickHandler,
|
|
292
|
+
children: embedConfig?.siteTitle ? /* @__PURE__ */jsx(SiteTitleWrap, {
|
|
293
|
+
children: embedConfig.siteTitle
|
|
294
|
+
}) : /* @__PURE__ */jsx(LogoIconWrap, {
|
|
295
|
+
motif,
|
|
296
|
+
$burger: false,
|
|
297
|
+
children: /* @__PURE__ */jsx(StyleableSvgImage, {
|
|
298
|
+
src: _externalAssets_BPYvPCPi__default,
|
|
299
|
+
width: 17,
|
|
300
|
+
height: 20
|
|
400
301
|
})
|
|
401
|
-
})
|
|
402
|
-
})
|
|
302
|
+
})
|
|
303
|
+
}), embedConfig?.moveAvatarIconToLeft && avatarHtml, /* @__PURE__ */jsx(BreakpointsWrap, {
|
|
304
|
+
hideBreakpoint: BREAKPOINTS.TABLET_AND_DOWN,
|
|
305
|
+
children: currentCountryName && /* @__PURE__ */jsx(CountryButton, {
|
|
306
|
+
"data-test-id": "country-select-btn",
|
|
307
|
+
type: "button",
|
|
308
|
+
onClick: handleStorePickerClick,
|
|
309
|
+
children: currentCountryName
|
|
310
|
+
})
|
|
311
|
+
})]
|
|
403
312
|
}), /* @__PURE__ */jsxs(CenterWrap, {
|
|
404
|
-
|
|
405
|
-
justifyRight: useInlineCategories && (activeModal === ModalId.Search || !!searchValue),
|
|
406
|
-
children: [!useInlineCategories || activeModal === ModalId.Search ? /* @__PURE__ */jsx(Search, {
|
|
407
|
-
setInputRef: setDesktopSearchInputRef,
|
|
313
|
+
children: [/* @__PURE__ */jsx(Search, {
|
|
408
314
|
onValueChange: handleSearchValueChange,
|
|
409
315
|
placeholder: searchPlaceholder,
|
|
410
316
|
isSearchFocused: !!searchValue || isSearchFocused,
|
|
411
317
|
value: searchValue || "",
|
|
412
318
|
showCancel: !!searchValue,
|
|
413
|
-
onCancelClick: () =>
|
|
319
|
+
onCancelClick: () => {
|
|
320
|
+
onSearch && onSearch("");
|
|
321
|
+
},
|
|
414
322
|
width: 420,
|
|
415
323
|
onFocus: handleSearchFocus,
|
|
416
324
|
onBlur: handleSearchBlur,
|
|
325
|
+
hideBreakpoint: BREAKPOINTS.MOBILE_AND_DOWN,
|
|
417
326
|
focusedWidth: searchFocusWidth
|
|
418
|
-
})
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
items: categories.items.map((category, i) => ({
|
|
428
|
-
id: category.id,
|
|
429
|
-
render() {
|
|
430
|
-
const active = categories.activeIndex === i;
|
|
431
|
-
return /* @__PURE__ */jsx(MenuItem, {
|
|
432
|
-
"data-test-id": `inline-category${active ? "-selected" : ""}`,
|
|
433
|
-
as: "a",
|
|
434
|
-
href: category.url ?? "#",
|
|
435
|
-
onClick: category.onClick && category.url ? e => category.onClick?.(e, category.url) : void 0,
|
|
436
|
-
active,
|
|
437
|
-
motif,
|
|
438
|
-
children: /* @__PURE__ */jsx(MenuItemLabel, {
|
|
439
|
-
children: category.label
|
|
440
|
-
})
|
|
441
|
-
}, category.id);
|
|
442
|
-
}
|
|
443
|
-
})) ?? []
|
|
327
|
+
}), /* @__PURE__ */jsx(BreakpointsWrap, {
|
|
328
|
+
hideBreakpoint: BREAKPOINTS.TABLET_AND_DOWN,
|
|
329
|
+
children: /* @__PURE__ */jsx(ProductLineSelectorWrap, {
|
|
330
|
+
children: productLineOptions.map(option => /* @__PURE__ */jsx(ProductLineSelectorItem, {
|
|
331
|
+
onClick: () => handleProductLineChange?.(option.value),
|
|
332
|
+
$active: option.value === productLineValue,
|
|
333
|
+
"data-test-id": `product-line-selector-${option.value}`,
|
|
334
|
+
children: option.label
|
|
335
|
+
}, option.value))
|
|
444
336
|
})
|
|
445
|
-
}), !useInlineCategories && /* @__PURE__ */jsx(ProductLineSelectorWrap, {
|
|
446
|
-
children: productLineOptions.map(option => /* @__PURE__ */jsx(ProductLineSelectorItem, {
|
|
447
|
-
onClick: () => handleProductLineChange?.(option.value),
|
|
448
|
-
$active: option.value === productLineValue,
|
|
449
|
-
"data-test-id": `product-line-selector-${option.value}`,
|
|
450
|
-
children: option.label
|
|
451
|
-
}, option.value))
|
|
452
337
|
})]
|
|
453
338
|
}), /* @__PURE__ */jsxs(RightWrap, {
|
|
454
339
|
$addSpaceOnDesktop: !!embedConfig?.fullWidthHeader,
|
|
455
|
-
children: [
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
$active: activeModal === ModalId.Search || !!searchValue,
|
|
463
|
-
$transparent: !!embedConfig || useInlineCategories,
|
|
464
|
-
children: /* @__PURE__ */jsx(SvgIcon, {
|
|
465
|
-
src: _externalAssets_g50k1DIN__default,
|
|
466
|
-
width: HEADER_ICON_SIZE,
|
|
467
|
-
height: HEADER_ICON_SIZE
|
|
468
|
-
})
|
|
469
|
-
})
|
|
470
|
-
}), cart && /* @__PURE__ */jsx(ProIconWrap, {
|
|
471
|
-
motif,
|
|
472
|
-
"data-test-id": "cart-btn",
|
|
473
|
-
onClick: e => cartQuantity > 0 && handleModalOpen(e, ModalId.Cart),
|
|
474
|
-
$isDefaultCursor: cartQuantity < 1,
|
|
475
|
-
children: cart?.loading ? /* @__PURE__ */jsx(SkeletonCircleLoader, {
|
|
476
|
-
diameter: HEADER_ICON_SIZE
|
|
477
|
-
}) : cartQuantity > 0 ? /* @__PURE__ */jsx(CartIcon, {
|
|
478
|
-
itemCount: cartQuantity,
|
|
479
|
-
motif,
|
|
480
|
-
width: HEADER_ICON_SIZE,
|
|
481
|
-
height: HEADER_ICON_SIZE
|
|
482
|
-
}) : /* @__PURE__ */jsx(Tooltip, {
|
|
483
|
-
description: translations.cart.empty,
|
|
484
|
-
motif: "light",
|
|
485
|
-
isInteractive: true,
|
|
486
|
-
position: "bottom",
|
|
487
|
-
style: {
|
|
488
|
-
height: `${HEADER_ICON_SIZE}px`
|
|
489
|
-
},
|
|
490
|
-
children: /* @__PURE__ */jsx(CartIcon, {
|
|
491
|
-
itemCount: cartQuantity,
|
|
492
|
-
motif,
|
|
493
|
-
width: HEADER_ICON_SIZE,
|
|
494
|
-
height: HEADER_ICON_SIZE
|
|
495
|
-
})
|
|
496
|
-
})
|
|
497
|
-
}), !embedConfig && !handlePurchaseHistoryClick && /* @__PURE__ */jsx(VerticalDivider, {
|
|
498
|
-
hideBreakpoint: MOBILE_BREAKPOINT_AND_DOWN
|
|
499
|
-
}), isMultiLanguage && !embedConfig?.hideLanguagePicker && /* @__PURE__ */jsx(ProIconWrap, {
|
|
500
|
-
motif,
|
|
501
|
-
"data-test-id": "language-picker-btn",
|
|
502
|
-
onClick: e => handleModalOpen(e, ModalId.Language),
|
|
340
|
+
children: [/* @__PURE__ */jsx(ProIconWrap, {
|
|
341
|
+
hideBreakpoint: BREAKPOINTS.MOBILE_UP,
|
|
342
|
+
motif,
|
|
343
|
+
onClick: handleShowSearchTab,
|
|
344
|
+
children: /* @__PURE__ */jsx(ProIconInnerFillWrap, {
|
|
345
|
+
$active: activeModal === ModalId.Search || !!searchValue?.length,
|
|
346
|
+
$transparent: !!embedConfig,
|
|
503
347
|
children: /* @__PURE__ */jsx(SvgIcon, {
|
|
504
|
-
src:
|
|
348
|
+
src: _externalAssets_g50k1DIN__default,
|
|
505
349
|
width: HEADER_ICON_SIZE,
|
|
506
350
|
height: HEADER_ICON_SIZE
|
|
507
351
|
})
|
|
508
|
-
})
|
|
509
|
-
|
|
352
|
+
})
|
|
353
|
+
}), cart && /* @__PURE__ */jsx(ProIconWrap, {
|
|
354
|
+
motif,
|
|
355
|
+
"data-test-id": "cart-btn",
|
|
356
|
+
onClick: e => cartQuantity > 0 && handleModalOpen(e, ModalId.Cart),
|
|
357
|
+
$isDefaultCursor: cartQuantity < 1,
|
|
358
|
+
children: cart?.loading ? /* @__PURE__ */jsx(SkeletonCircleLoader, {
|
|
359
|
+
diameter: HEADER_ICON_SIZE
|
|
360
|
+
}) : cartQuantity > 0 ? /* @__PURE__ */jsx(CartIcon, {
|
|
361
|
+
itemCount: cartQuantity,
|
|
510
362
|
motif,
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
363
|
+
width: HEADER_ICON_SIZE,
|
|
364
|
+
height: HEADER_ICON_SIZE
|
|
365
|
+
}) : /* @__PURE__ */jsx(Tooltip, {
|
|
366
|
+
description: translations.cart.empty,
|
|
367
|
+
motif: "light",
|
|
368
|
+
isInteractive: true,
|
|
369
|
+
position: "bottom",
|
|
370
|
+
style: {
|
|
371
|
+
height: `${HEADER_ICON_SIZE}px`
|
|
372
|
+
},
|
|
373
|
+
children: /* @__PURE__ */jsx(CartIcon, {
|
|
374
|
+
itemCount: cartQuantity,
|
|
375
|
+
motif,
|
|
514
376
|
width: HEADER_ICON_SIZE,
|
|
515
377
|
height: HEADER_ICON_SIZE
|
|
516
378
|
})
|
|
517
|
-
})
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
379
|
+
})
|
|
380
|
+
}), !embedConfig && !handlePurchaseHistoryClick && /* @__PURE__ */jsx(VerticalDivider, {
|
|
381
|
+
hideBreakpoint: BREAKPOINTS.TABLET_AND_DOWN
|
|
382
|
+
}), isMultiLanguage && !embedConfig?.hideLanguagePicker && /* @__PURE__ */jsx(ProIconWrap, {
|
|
383
|
+
motif,
|
|
384
|
+
"data-test-id": "language-picker-btn",
|
|
385
|
+
onClick: e => handleModalOpen(e, ModalId.Language),
|
|
386
|
+
children: /* @__PURE__ */jsx(SvgIcon, {
|
|
387
|
+
src: _externalAssets_DJH57LL8__default,
|
|
388
|
+
width: HEADER_ICON_SIZE,
|
|
389
|
+
height: HEADER_ICON_SIZE
|
|
390
|
+
})
|
|
391
|
+
}), handlePurchaseHistoryClick && /* @__PURE__ */jsx(ProIconWrap, {
|
|
392
|
+
hideBreakpoint: BREAKPOINTS.TABLET_AND_DOWN,
|
|
393
|
+
motif,
|
|
394
|
+
onClick: handlePurchaseHistoryClick,
|
|
395
|
+
children: /* @__PURE__ */jsx(SvgIcon, {
|
|
396
|
+
src: HistoryIcon__default,
|
|
397
|
+
width: HEADER_ICON_SIZE,
|
|
398
|
+
height: HEADER_ICON_SIZE
|
|
399
|
+
})
|
|
400
|
+
}), earlyAccess && /* @__PURE__ */jsx(ProIconWrap, {
|
|
401
|
+
hideBreakpoint: BREAKPOINTS.TABLET_AND_DOWN,
|
|
402
|
+
motif,
|
|
403
|
+
onClick: earlyAccess.onClick,
|
|
404
|
+
children: earlyAccess.loading ? /* @__PURE__ */jsx(SkeletonCircleLoader, {
|
|
405
|
+
diameter: HEADER_ICON_SIZE
|
|
406
|
+
}) : /* @__PURE__ */jsx(SvgIcon, {
|
|
407
|
+
src: EAIcon__default,
|
|
408
|
+
width: HEADER_ICON_SIZE,
|
|
409
|
+
height: HEADER_ICON_SIZE * 0.8,
|
|
410
|
+
renderedHeight: HEADER_ICON_SIZE * 0.8
|
|
411
|
+
})
|
|
412
|
+
}), !embedConfig?.moveAvatarIconToLeft ? !accountMenu ? avatarHtml : accountMenu : null, /* @__PURE__ */jsx(VerticalDivider, {
|
|
413
|
+
hideBreakpoint: BREAKPOINTS.TABLET_UP
|
|
532
414
|
}), /* @__PURE__ */jsx(ProIconWrap, {
|
|
533
|
-
hideBreakpoint:
|
|
415
|
+
hideBreakpoint: BREAKPOINTS.TABLET_UP,
|
|
534
416
|
motif,
|
|
535
417
|
onClick: handleHamburgerClick,
|
|
536
418
|
children: activeModal === ModalId.ProMobileMenu ? /* @__PURE__ */jsx(SvgIcon, {
|
|
@@ -604,21 +486,13 @@ const ProHeader = memo(function ProHeader2({
|
|
|
604
486
|
handleProductLineChange,
|
|
605
487
|
productLineValue,
|
|
606
488
|
productLineOptions,
|
|
607
|
-
|
|
608
|
-
hideExtraSection: !!embedConfig
|
|
489
|
+
extraSectionItems: embedConfig?.mobileMenuExtraSectionItems
|
|
609
490
|
})]
|
|
610
|
-
})
|
|
611
|
-
show: showProMenu,
|
|
612
|
-
currentCountryName,
|
|
613
|
-
handleStorePickerClick,
|
|
614
|
-
productLineValue,
|
|
615
|
-
productLineOptions,
|
|
616
|
-
onProductLineChange: handleProductLineChange
|
|
617
|
-
})]
|
|
491
|
+
})
|
|
618
492
|
}), /* @__PURE__ */jsx(SearchTabWrap, {
|
|
619
493
|
$show: activeModal === ModalId.Search,
|
|
620
494
|
$isStickyEmbed: !!embedConfig,
|
|
621
|
-
hideBreakpoint:
|
|
495
|
+
hideBreakpoint: BREAKPOINTS.MOBILE_UP,
|
|
622
496
|
children: /* @__PURE__ */jsx(Search, {
|
|
623
497
|
setInputRef: setSearchInputRef,
|
|
624
498
|
onValueChange: handleSearchValueChange,
|
|
@@ -626,7 +500,9 @@ const ProHeader = memo(function ProHeader2({
|
|
|
626
500
|
isSearchFocused: !!searchValue || isSearchFocused,
|
|
627
501
|
value: searchValue || "",
|
|
628
502
|
showCancel: !!searchValue,
|
|
629
|
-
onCancelClick: () =>
|
|
503
|
+
onCancelClick: () => {
|
|
504
|
+
onSearch && onSearch("");
|
|
505
|
+
},
|
|
630
506
|
onFocus: handleSearchFocus,
|
|
631
507
|
onBlur: handleSearchBlur,
|
|
632
508
|
focusedWidth: searchFocusWidth
|