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