@ubnt/store.core 9.18.0-alpha.9 → 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 -197
- 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/{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/ucgMax.jpg +0 -0
- package/lib/assets/ucgMax2.jpg +0 -0
- package/lib/assets/ucgUltra.jpg +0 -0
- package/lib/assets/ucgUltra2.jpg +0 -0
- package/lib/assets/udmPro.jpg +0 -0
- package/lib/assets/udmPro2.jpg +0 -0
- package/lib/assets/udmProMax.jpg +0 -0
- package/lib/assets/udmProMax2.jpg +0 -0
- package/lib/assets/udmProSpecial.jpg +0 -0
- package/lib/assets/udmProSpecial2.jpg +0 -0
- package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +1 -1
- package/lib/components/CategoryTabs/CategoryTabs.styles.js +3 -2
- package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +3 -2
- 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 +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.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 +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 +120 -247
- package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.mjs +124 -249
- package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +1 -4
- package/lib/components/Header/ProHeader/ProHeader.styles.js +17 -23
- package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs +18 -21
- 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/ModelCompareV3/ModelCompareV3.types.d.ts +0 -1
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/data/CloudGateways.js +15 -15
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +10 -10
- 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/ucgMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +1 -1
- package/lib/components/ModelCompareV3/translations/ar.json.js +107 -743
- package/lib/components/ModelCompareV3/translations/ar.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/ar.json.mjs +107 -743
- package/lib/components/ModelCompareV3/translations/ar.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/de.json.js +106 -742
- package/lib/components/ModelCompareV3/translations/de.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/de.json.mjs +106 -742
- package/lib/components/ModelCompareV3/translations/de.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/el.json.js +106 -742
- package/lib/components/ModelCompareV3/translations/el.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/el.json.mjs +106 -742
- 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 +106 -742
- package/lib/components/ModelCompareV3/translations/es.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/es.json.mjs +106 -742
- package/lib/components/ModelCompareV3/translations/es.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/fr.json.js +106 -742
- package/lib/components/ModelCompareV3/translations/fr.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/fr.json.mjs +106 -742
- package/lib/components/ModelCompareV3/translations/fr.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/it.json.js +106 -742
- package/lib/components/ModelCompareV3/translations/it.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/it.json.mjs +106 -742
- package/lib/components/ModelCompareV3/translations/it.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/ja.json.js +106 -742
- package/lib/components/ModelCompareV3/translations/ja.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/ja.json.mjs +106 -742
- package/lib/components/ModelCompareV3/translations/ja.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/pt-BR.json.js +106 -742
- package/lib/components/ModelCompareV3/translations/pt-BR.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs +106 -742
- 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 +106 -742
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs +106 -742
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js +106 -742
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs +106 -742
- 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 +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
- 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/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/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
|
@@ -6,7 +6,10 @@ 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?:
|
|
9
|
+
productLineOptions?: {
|
|
10
|
+
value: ProductLine;
|
|
11
|
+
label: string;
|
|
12
|
+
}[];
|
|
10
13
|
productLineValue?: ProductLine;
|
|
11
14
|
handleProductLineChange?: (type: ProductLine) => void;
|
|
12
15
|
handleMobileMenuClick?: () => void;
|
|
@@ -16,6 +19,4 @@ export declare const ProHeader: import("react").NamedExoticComponent<Pick<import
|
|
|
16
19
|
onSearchFocus?: () => void;
|
|
17
20
|
onSearchBlur?: () => void;
|
|
18
21
|
onSearchClick?: () => void;
|
|
19
|
-
categories: import("../Header.types").ProHeaderCategories;
|
|
20
|
-
useInlineCategories?: boolean;
|
|
21
22
|
}>;
|
|
@@ -13,14 +13,11 @@ 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');
|
|
17
16
|
require('../../../hooks/index.js');
|
|
18
|
-
var useHasTouch = require('../../../hooks/useHasTouch.js');
|
|
19
17
|
require('../../../types/index.js');
|
|
20
18
|
var asset = require('../../../utils/asset.js');
|
|
21
19
|
var errors = require('../../../utils/errors.js');
|
|
22
20
|
require('../../MobileModal/index.js');
|
|
23
|
-
require('../../ScrollWrapper/index.js');
|
|
24
21
|
require('../../StyleableSvgImage/index.js');
|
|
25
22
|
require('../../Tooltip/index.js');
|
|
26
23
|
require('../AccountFrame/index.js');
|
|
@@ -29,8 +26,6 @@ var Header_styles = require('../Header.styles.js');
|
|
|
29
26
|
var Header_types = require('../Header.types.js');
|
|
30
27
|
require('../LanguageFrame/index.js');
|
|
31
28
|
require('../LanguageFrame/Mobile/index.js');
|
|
32
|
-
require('../MenuItem/index.js');
|
|
33
|
-
require('../Navigation/ProMenu/index.js');
|
|
34
29
|
require('../Navigation/ProMobileMenu/index.js');
|
|
35
30
|
require('../translations/index.js');
|
|
36
31
|
var ProHeader_styles = require('./ProHeader.styles.js');
|
|
@@ -43,10 +38,6 @@ var NoUserAvatar = require("../../../assets/no-user-avatar.png");
|
|
|
43
38
|
var _externalAssets_CtJIOg_A = require("../../../assets/account.svg");
|
|
44
39
|
var StyleableSvgImage = require('../../StyleableSvgImage/StyleableSvgImage.js');
|
|
45
40
|
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');
|
|
50
41
|
var _externalAssets_g50k1DIN = require("../../../assets/search.svg");
|
|
51
42
|
var Tooltip = require('../../Tooltip/Tooltip.js');
|
|
52
43
|
var _externalAssets_DJH57LL8 = require("../../../assets/globe.svg");
|
|
@@ -60,7 +51,6 @@ var LanguageFrame = require('../LanguageFrame/LanguageFrame.js');
|
|
|
60
51
|
var Mobile$1 = require('../AccountFrame/Mobile/Mobile.js');
|
|
61
52
|
var AccountFrame = require('../AccountFrame/AccountFrame.js');
|
|
62
53
|
var ProMobileMenu = require('../Navigation/ProMobileMenu/ProMobileMenu.js');
|
|
63
|
-
var ProMenu = require('../Navigation/ProMenu/ProMenu.js');
|
|
64
54
|
function _interopDefault(e) {
|
|
65
55
|
return e && e.__esModule ? e : {
|
|
66
56
|
default: e
|
|
@@ -70,8 +60,6 @@ var merge__default = /*#__PURE__*/_interopDefault(merge);
|
|
|
70
60
|
var NoUserAvatar__default = /*#__PURE__*/_interopDefault(NoUserAvatar);
|
|
71
61
|
var _externalAssets_CtJIOg_A__default = /*#__PURE__*/_interopDefault(_externalAssets_CtJIOg_A);
|
|
72
62
|
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);
|
|
75
63
|
var _externalAssets_g50k1DIN__default = /*#__PURE__*/_interopDefault(_externalAssets_g50k1DIN);
|
|
76
64
|
var _externalAssets_DJH57LL8__default = /*#__PURE__*/_interopDefault(_externalAssets_DJH57LL8);
|
|
77
65
|
var HistoryIcon__default = /*#__PURE__*/_interopDefault(HistoryIcon);
|
|
@@ -79,9 +67,7 @@ var EAIcon__default = /*#__PURE__*/_interopDefault(EAIcon);
|
|
|
79
67
|
var _externalAssets_DtGmfNK5__default = /*#__PURE__*/_interopDefault(_externalAssets_DtGmfNK5);
|
|
80
68
|
var _externalAssets_CzDCu21b__default = /*#__PURE__*/_interopDefault(_externalAssets_CzDCu21b);
|
|
81
69
|
"use strict";
|
|
82
|
-
const
|
|
83
|
-
const MOBILE_BREAKPOINT_AND_DOWN = layout.BREAKPOINTS.TABLET_AND_DOWN;
|
|
84
|
-
const DEFAULT_PRODUCT_LINE_OPTIONS = [{
|
|
70
|
+
const defaultProductLineOptions = [{
|
|
85
71
|
value: generated.ProductLine.Unifi,
|
|
86
72
|
label: "UniFi"
|
|
87
73
|
}, {
|
|
@@ -107,22 +93,17 @@ const ProHeader = react.memo(function ProHeader2({
|
|
|
107
93
|
handleProductLineChange,
|
|
108
94
|
handleMobileMenuClick,
|
|
109
95
|
productLineValue,
|
|
110
|
-
categories,
|
|
111
|
-
useInlineCategories,
|
|
112
96
|
embedConfig,
|
|
113
97
|
onSearchFocus,
|
|
114
98
|
onSearchBlur,
|
|
115
99
|
onSearchClick,
|
|
116
|
-
productLineOptions =
|
|
100
|
+
productLineOptions = defaultProductLineOptions,
|
|
117
101
|
accountMenu,
|
|
118
102
|
onLanguageChange
|
|
119
103
|
}) {
|
|
120
|
-
const isMobile = reactUse.useMedia(
|
|
104
|
+
const isMobile = reactUse.useMedia(layout.BREAKPOINTS.MOBILE_AND_DOWN, false);
|
|
121
105
|
const rootRef = react.useRef(null);
|
|
122
|
-
const wrapRef = react.useRef(null);
|
|
123
|
-
const containerRef = react.useRef(null);
|
|
124
106
|
const [searchInputRef, setSearchInputRef] = react.useState(null);
|
|
125
|
-
const [desktopSearchInputRef, setDesktopSearchInputRef] = react.useState(null);
|
|
126
107
|
const translations = react.useMemo(() => {
|
|
127
108
|
return merge__default["default"](Header_types.defaultHeaderTranslations, initialTranslations);
|
|
128
109
|
}, [initialTranslations]);
|
|
@@ -204,24 +185,12 @@ const ProHeader = react.memo(function ProHeader2({
|
|
|
204
185
|
activeModal === types.ModalId.ProMobileMenu
|
|
205
186
|
);
|
|
206
187
|
}, [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]);
|
|
213
188
|
const onClickAwayFromSearchModal = react.useCallback(() => {
|
|
214
|
-
if (useInlineCategories && !!searchValue && !isMobile) return;
|
|
215
189
|
if (activeModal === types.ModalId.Search) {
|
|
216
190
|
setActiveModal(null);
|
|
217
191
|
onSearchClick?.();
|
|
218
192
|
}
|
|
219
|
-
}, [activeModal,
|
|
220
|
-
reactUse.useEffectOnce(() => {
|
|
221
|
-
if (searchValue) {
|
|
222
|
-
setActiveModal(types.ModalId.Search);
|
|
223
|
-
}
|
|
224
|
-
});
|
|
193
|
+
}, [activeModal, onSearchClick, setActiveModal]);
|
|
225
194
|
const blurSearchInput = react.useCallback(() => {
|
|
226
195
|
if (!searchInputRef || activeModal !== types.ModalId.Search) {
|
|
227
196
|
return;
|
|
@@ -255,19 +224,8 @@ const ProHeader = react.memo(function ProHeader2({
|
|
|
255
224
|
}, 0);
|
|
256
225
|
}
|
|
257
226
|
}, [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]);
|
|
269
227
|
const handleSearchValueChange = react.useCallback(e => {
|
|
270
|
-
onSearch
|
|
228
|
+
onSearch && onSearch(e.target.value);
|
|
271
229
|
}, [onSearch]);
|
|
272
230
|
const searchPlaceholder = react.useMemo(() => {
|
|
273
231
|
const defaultPlaceholder = translations.search.searchUniFiProducts;
|
|
@@ -291,7 +249,7 @@ const ProHeader = react.memo(function ProHeader2({
|
|
|
291
249
|
case generated.ProductLine.Amplifi:
|
|
292
250
|
return 164;
|
|
293
251
|
default:
|
|
294
|
-
return
|
|
252
|
+
return 150;
|
|
295
253
|
}
|
|
296
254
|
}, [productLineValue]);
|
|
297
255
|
react.useEffect(() => {
|
|
@@ -306,39 +264,12 @@ const ProHeader = react.memo(function ProHeader2({
|
|
|
306
264
|
const cartQuantity = react.useMemo(() => {
|
|
307
265
|
return cart?.items.reduce((sum, item) => sum + item.quantity, 0) ?? 0;
|
|
308
266
|
}, [cart?.items]);
|
|
309
|
-
const
|
|
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 => {
|
|
267
|
+
const homeLinkClickHandler = react.useCallback(e => {
|
|
317
268
|
if (embedConfig?.homeLinkClickHandler) {
|
|
318
269
|
e.preventDefault();
|
|
319
270
|
embedConfig.homeLinkClickHandler();
|
|
320
271
|
}
|
|
321
|
-
|
|
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]);
|
|
272
|
+
}, [embedConfig]);
|
|
342
273
|
const handleAvatarClick = react.useCallback(e => {
|
|
343
274
|
if (embedConfig?.avatarClickHandler) {
|
|
344
275
|
embedConfig.avatarClickHandler();
|
|
@@ -375,38 +306,12 @@ const ProHeader = react.memo(function ProHeader2({
|
|
|
375
306
|
})
|
|
376
307
|
});
|
|
377
308
|
}, [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]);
|
|
404
309
|
return /* @__PURE__ */jsxRuntime.jsxs(ProHeader_styles.ProHeaderWrap, {
|
|
405
310
|
ref: rootRef,
|
|
406
311
|
$sticky: !!embedConfig,
|
|
407
312
|
$disableBlur: activeModal === types.ModalId.Language && isMobile,
|
|
408
|
-
children: [/* @__PURE__ */jsxRuntime.
|
|
409
|
-
children:
|
|
313
|
+
children: [/* @__PURE__ */jsxRuntime.jsx(Header_styles.HeaderWrap, {
|
|
314
|
+
children: /* @__PURE__ */jsxRuntime.jsxs(ProHeader_styles.Header, {
|
|
410
315
|
sticky: sticky || !!embedConfig,
|
|
411
316
|
isStickyEmbed: !!embedConfig,
|
|
412
317
|
className,
|
|
@@ -415,162 +320,136 @@ const ProHeader = react.memo(function ProHeader2({
|
|
|
415
320
|
size: embedConfig?.fullWidthHeader ? "full" : "desktop",
|
|
416
321
|
noVerticalMargin: true,
|
|
417
322
|
noPaddings: !!embedConfig?.fullWidthHeader,
|
|
418
|
-
ref: containerRef,
|
|
419
323
|
children: [/* @__PURE__ */jsxRuntime.jsxs(ProHeader_styles.Wrap, {
|
|
420
|
-
|
|
421
|
-
children: [/* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.LeftWrap, {
|
|
324
|
+
children: [/* @__PURE__ */jsxRuntime.jsxs(ProHeader_styles.LeftWrap, {
|
|
422
325
|
$addSpaceOnDesktop: !!embedConfig?.fullWidthHeader,
|
|
423
|
-
children:
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
children: embedConfig
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
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
|
|
326
|
+
children: [!embedConfig?.hideLogo && /* @__PURE__ */jsxRuntime.jsx(Header_styles.Anchor, {
|
|
327
|
+
href: createSiteUrl([mapping.SiteId.Ui, ""]),
|
|
328
|
+
onClick: homeLinkClickHandler,
|
|
329
|
+
children: embedConfig?.siteTitle ? /* @__PURE__ */jsxRuntime.jsx(Header_styles.SiteTitleWrap, {
|
|
330
|
+
children: embedConfig.siteTitle
|
|
331
|
+
}) : /* @__PURE__ */jsxRuntime.jsx(Header_styles.LogoIconWrap, {
|
|
332
|
+
motif,
|
|
333
|
+
$burger: false,
|
|
334
|
+
children: /* @__PURE__ */jsxRuntime.jsx(StyleableSvgImage.StyleableSvgImage, {
|
|
335
|
+
src: _externalAssets_BPYvPCPi__default["default"],
|
|
336
|
+
width: 17,
|
|
337
|
+
height: 20
|
|
441
338
|
})
|
|
442
|
-
})
|
|
443
|
-
})
|
|
339
|
+
})
|
|
340
|
+
}), embedConfig?.moveAvatarIconToLeft && avatarHtml, /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.BreakpointsWrap, {
|
|
341
|
+
hideBreakpoint: layout.BREAKPOINTS.TABLET_AND_DOWN,
|
|
342
|
+
children: currentCountryName && /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.CountryButton, {
|
|
343
|
+
"data-test-id": "country-select-btn",
|
|
344
|
+
type: "button",
|
|
345
|
+
onClick: handleStorePickerClick,
|
|
346
|
+
children: currentCountryName
|
|
347
|
+
})
|
|
348
|
+
})]
|
|
444
349
|
}), /* @__PURE__ */jsxRuntime.jsxs(ProHeader_styles.CenterWrap, {
|
|
445
|
-
|
|
446
|
-
children: [!useInlineCategories || activeModal === types.ModalId.Search ? /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.Search, {
|
|
447
|
-
setInputRef: setDesktopSearchInputRef,
|
|
350
|
+
children: [/* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.Search, {
|
|
448
351
|
onValueChange: handleSearchValueChange,
|
|
449
352
|
placeholder: searchPlaceholder,
|
|
450
353
|
isSearchFocused: !!searchValue || isSearchFocused,
|
|
451
354
|
value: searchValue || "",
|
|
452
355
|
showCancel: !!searchValue,
|
|
453
|
-
onCancelClick: () =>
|
|
356
|
+
onCancelClick: () => {
|
|
357
|
+
onSearch && onSearch("");
|
|
358
|
+
},
|
|
454
359
|
width: 420,
|
|
455
360
|
onFocus: handleSearchFocus,
|
|
456
361
|
onBlur: handleSearchBlur,
|
|
362
|
+
hideBreakpoint: layout.BREAKPOINTS.MOBILE_AND_DOWN,
|
|
457
363
|
focusedWidth: searchFocusWidth
|
|
458
|
-
})
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
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
|
-
})) ?? []
|
|
364
|
+
}), /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.BreakpointsWrap, {
|
|
365
|
+
hideBreakpoint: layout.BREAKPOINTS.TABLET_AND_DOWN,
|
|
366
|
+
children: /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.ProductLineSelectorWrap, {
|
|
367
|
+
children: productLineOptions.map(option => /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.ProductLineSelectorItem, {
|
|
368
|
+
onClick: () => handleProductLineChange?.(option.value),
|
|
369
|
+
$active: option.value === productLineValue,
|
|
370
|
+
"data-test-id": `product-line-selector-${option.value}`,
|
|
371
|
+
children: option.label
|
|
372
|
+
}, option.value))
|
|
484
373
|
})
|
|
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))
|
|
492
374
|
})]
|
|
493
375
|
}), /* @__PURE__ */jsxRuntime.jsxs(ProHeader_styles.RightWrap, {
|
|
494
376
|
$addSpaceOnDesktop: !!embedConfig?.fullWidthHeader,
|
|
495
|
-
children: [
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
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),
|
|
377
|
+
children: [/* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.ProIconWrap, {
|
|
378
|
+
hideBreakpoint: layout.BREAKPOINTS.MOBILE_UP,
|
|
379
|
+
motif,
|
|
380
|
+
onClick: handleShowSearchTab,
|
|
381
|
+
children: /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.ProIconInnerFillWrap, {
|
|
382
|
+
$active: activeModal === types.ModalId.Search || !!searchValue?.length,
|
|
383
|
+
$transparent: !!embedConfig,
|
|
543
384
|
children: /* @__PURE__ */jsxRuntime.jsx(Header_styles.SvgIcon, {
|
|
544
|
-
src:
|
|
385
|
+
src: _externalAssets_g50k1DIN__default["default"],
|
|
545
386
|
width: Header_styles.HEADER_ICON_SIZE,
|
|
546
387
|
height: Header_styles.HEADER_ICON_SIZE
|
|
547
388
|
})
|
|
548
|
-
})
|
|
549
|
-
|
|
389
|
+
})
|
|
390
|
+
}), cart && /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.ProIconWrap, {
|
|
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,
|
|
550
399
|
motif,
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
400
|
+
width: Header_styles.HEADER_ICON_SIZE,
|
|
401
|
+
height: Header_styles.HEADER_ICON_SIZE
|
|
402
|
+
}) : /* @__PURE__ */jsxRuntime.jsx(Tooltip.Tooltip, {
|
|
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,
|
|
554
413
|
width: Header_styles.HEADER_ICON_SIZE,
|
|
555
414
|
height: Header_styles.HEADER_ICON_SIZE
|
|
556
415
|
})
|
|
557
|
-
})
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
416
|
+
})
|
|
417
|
+
}), !embedConfig && !handlePurchaseHistoryClick && /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.VerticalDivider, {
|
|
418
|
+
hideBreakpoint: layout.BREAKPOINTS.TABLET_AND_DOWN
|
|
419
|
+
}), isMultiLanguage && !embedConfig?.hideLanguagePicker && /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.ProIconWrap, {
|
|
420
|
+
motif,
|
|
421
|
+
"data-test-id": "language-picker-btn",
|
|
422
|
+
onClick: e => handleModalOpen(e, types.ModalId.Language),
|
|
423
|
+
children: /* @__PURE__ */jsxRuntime.jsx(Header_styles.SvgIcon, {
|
|
424
|
+
src: _externalAssets_DJH57LL8__default["default"],
|
|
425
|
+
width: Header_styles.HEADER_ICON_SIZE,
|
|
426
|
+
height: Header_styles.HEADER_ICON_SIZE
|
|
427
|
+
})
|
|
428
|
+
}), handlePurchaseHistoryClick && /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.ProIconWrap, {
|
|
429
|
+
hideBreakpoint: layout.BREAKPOINTS.TABLET_AND_DOWN,
|
|
430
|
+
motif,
|
|
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
|
|
572
451
|
}), /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.ProIconWrap, {
|
|
573
|
-
hideBreakpoint:
|
|
452
|
+
hideBreakpoint: layout.BREAKPOINTS.TABLET_UP,
|
|
574
453
|
motif,
|
|
575
454
|
onClick: handleHamburgerClick,
|
|
576
455
|
children: activeModal === types.ModalId.ProMobileMenu ? /* @__PURE__ */jsxRuntime.jsx(Header_styles.SvgIcon, {
|
|
@@ -644,21 +523,13 @@ const ProHeader = react.memo(function ProHeader2({
|
|
|
644
523
|
handleProductLineChange,
|
|
645
524
|
productLineValue,
|
|
646
525
|
productLineOptions,
|
|
647
|
-
|
|
648
|
-
hideExtraSection: !!embedConfig
|
|
526
|
+
extraSectionItems: embedConfig?.mobileMenuExtraSectionItems
|
|
649
527
|
})]
|
|
650
|
-
})
|
|
651
|
-
show: showProMenu,
|
|
652
|
-
currentCountryName,
|
|
653
|
-
handleStorePickerClick,
|
|
654
|
-
productLineValue,
|
|
655
|
-
productLineOptions,
|
|
656
|
-
onProductLineChange: handleProductLineChange
|
|
657
|
-
})]
|
|
528
|
+
})
|
|
658
529
|
}), /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.SearchTabWrap, {
|
|
659
530
|
$show: activeModal === types.ModalId.Search,
|
|
660
531
|
$isStickyEmbed: !!embedConfig,
|
|
661
|
-
hideBreakpoint:
|
|
532
|
+
hideBreakpoint: layout.BREAKPOINTS.MOBILE_UP,
|
|
662
533
|
children: /* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.Search, {
|
|
663
534
|
setInputRef: setSearchInputRef,
|
|
664
535
|
onValueChange: handleSearchValueChange,
|
|
@@ -666,7 +537,9 @@ const ProHeader = react.memo(function ProHeader2({
|
|
|
666
537
|
isSearchFocused: !!searchValue || isSearchFocused,
|
|
667
538
|
value: searchValue || "",
|
|
668
539
|
showCancel: !!searchValue,
|
|
669
|
-
onCancelClick: () =>
|
|
540
|
+
onCancelClick: () => {
|
|
541
|
+
onSearch && onSearch("");
|
|
542
|
+
},
|
|
670
543
|
onFocus: handleSearchFocus,
|
|
671
544
|
onBlur: handleSearchBlur,
|
|
672
545
|
focusedWidth: searchFocusWidth
|