@ubnt/store.core 9.18.0-alpha.9 → 9.18.0

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