@ubnt/store.core 9.19.1 → 9.20.0-alpha.1

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