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