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