@ubnt/store.core 9.60.0-new-design → 9.60.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 (555) hide show
  1. package/CHANGELOG.md +1 -129
  2. package/lib/_virtual/_virtual_multi-entry.js +10 -13
  3. package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
  4. package/lib/_virtual/_virtual_multi-entry.mjs +11 -13
  5. package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
  6. package/lib/apis/smartcat.d.ts +2 -12
  7. package/lib/apis/smartcat.js +4 -27
  8. package/lib/apis/smartcat.js.map +1 -1
  9. package/lib/apis/smartcat.mjs +4 -27
  10. package/lib/apis/smartcat.mjs.map +1 -1
  11. package/lib/assets/attention.svg +5 -5
  12. package/lib/assets/attention2.svg +5 -5
  13. package/lib/assets/close2.svg +2 -3
  14. package/lib/assets/close3.svg +3 -2
  15. package/lib/assets/icons/menu/{icon-location-pin.svg.js → icon-globe.svg.js} +6 -6
  16. package/lib/assets/icons/menu/icon-globe.svg.js.map +1 -0
  17. package/lib/assets/icons/menu/icon-globe.svg.mjs +3 -0
  18. package/lib/assets/icons/menu/icon-globe.svg.mjs.map +1 -0
  19. package/lib/assets/logoUnifi.svg +2 -10
  20. package/lib/assets/pause.svg +3 -3
  21. package/lib/assets/pause2.svg +3 -3
  22. package/lib/components/Accordion/Accordion.js +4 -4
  23. package/lib/components/Avatar/Avatar.js +2 -2
  24. package/lib/components/BackInStock/BackInStock.types.d.ts +0 -1
  25. package/lib/components/Button/Button.js +5 -12
  26. package/lib/components/Button/Button.js.map +1 -1
  27. package/lib/components/Button/Button.mjs +1 -8
  28. package/lib/components/Button/Button.mjs.map +1 -1
  29. package/lib/components/Button/CartButton.d.ts +1 -3
  30. package/lib/components/Button/CartButton.js +6 -11
  31. package/lib/components/Button/CartButton.js.map +1 -1
  32. package/lib/components/Button/CartButton.mjs +4 -8
  33. package/lib/components/Button/CartButton.mjs.map +1 -1
  34. package/lib/components/ButtonGroup/ButtonGroup.d.ts +1 -1
  35. package/lib/components/ButtonGroup/ButtonGroup.js +9 -16
  36. package/lib/components/ButtonGroup/ButtonGroup.js.map +1 -1
  37. package/lib/components/ButtonGroup/ButtonGroup.mjs +9 -16
  38. package/lib/components/ButtonGroup/ButtonGroup.mjs.map +1 -1
  39. package/lib/components/ButtonGroup/ButtonGroup.styles.d.ts +6 -10
  40. package/lib/components/ButtonGroup/ButtonGroup.styles.js +20 -60
  41. package/lib/components/ButtonGroup/ButtonGroup.styles.js.map +1 -1
  42. package/lib/components/ButtonGroup/ButtonGroup.styles.mjs +20 -60
  43. package/lib/components/ButtonGroup/ButtonGroup.styles.mjs.map +1 -1
  44. package/lib/components/ButtonGroup/ButtonGroup.types.d.ts +0 -5
  45. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.d.ts +1 -1
  46. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js +4 -16
  47. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js.map +1 -1
  48. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs +5 -17
  49. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs.map +1 -1
  50. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.d.ts +1 -5
  51. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js +17 -82
  52. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js.map +1 -1
  53. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs +17 -82
  54. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs.map +1 -1
  55. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.types.d.ts +0 -4
  56. package/lib/components/CardSection/Card/Card.js +6 -6
  57. package/lib/components/CardSection/CardSection.js +2 -2
  58. package/lib/components/CardSection/CardSection.styles.d.ts +1 -1
  59. package/lib/components/CartIcon/CartIcon.js +2 -2
  60. package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +2 -4
  61. package/lib/components/CategoryTabs/CategoryTabs.styles.js +5 -8
  62. package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
  63. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +6 -7
  64. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
  65. package/lib/components/Checkbox/Checkbox.js +4 -4
  66. package/lib/components/CloserLookSection/CloserLookSection.js +11 -11
  67. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.js +5 -5
  68. package/lib/components/Compare/Compare.styles.d.ts +5 -5
  69. package/lib/components/Container/Container.d.ts +1 -1
  70. package/lib/components/Container/Container.js +4 -5
  71. package/lib/components/Container/Container.js.map +1 -1
  72. package/lib/components/Container/Container.mjs +4 -5
  73. package/lib/components/Container/Container.mjs.map +1 -1
  74. package/lib/components/Container/index.stories.d.ts +5 -5
  75. package/lib/components/CustomImage/CustomImage.js +12 -12
  76. package/lib/components/Explore/Explore.js +5 -5
  77. package/lib/components/Explore/ExploreData.js +12 -12
  78. package/lib/components/Explore/ExploreData.js.map +1 -1
  79. package/lib/components/Explore/ExploreData.mjs +12 -12
  80. package/lib/components/Explore/ExploreData.mjs.map +1 -1
  81. package/lib/components/FeaturesSection_deprecated/Features/Features.js +2 -2
  82. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +23 -23
  83. package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
  84. package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
  85. package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
  86. package/lib/components/Footer/Footer.js +2 -2
  87. package/lib/components/Footer/hooks/useFooterContent.js +5 -5
  88. package/lib/components/Gallery/Gallery.context.js +17 -17
  89. package/lib/components/Gallery/Gallery.js +9 -9
  90. package/lib/components/Gallery/GalleryControls/GalleryControls.js +4 -4
  91. package/lib/components/Gallery/GalleryItem/GalleryItem.js +8 -8
  92. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.js +8 -8
  93. package/lib/components/GridGallery/GridGallery.js +8 -8
  94. package/lib/components/GridGallery/GridModal/GridModal.js +6 -6
  95. package/lib/components/Header/AccountFrame/AccountFrame.js +11 -11
  96. package/lib/components/Header/AccountFrame/Mobile/Mobile.js +4 -4
  97. package/lib/components/Header/AccountMenu/AccountMenu.js +20 -30
  98. package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
  99. package/lib/components/Header/AccountMenu/AccountMenu.mjs +3 -13
  100. package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
  101. package/lib/components/Header/CartModal/Empty/Empty.js +3 -3
  102. package/lib/components/Header/CartModalV2/CartModal.js +5 -5
  103. package/lib/components/Header/CartModalV2/Item/Item.js +4 -4
  104. package/lib/components/Header/CartModalV2/Item/Item.styles.d.ts +1 -1
  105. package/lib/components/Header/Header.js +43 -43
  106. package/lib/components/Header/Header.js.map +1 -1
  107. package/lib/components/Header/Header.mjs +9 -9
  108. package/lib/components/Header/Header.mjs.map +1 -1
  109. package/lib/components/Header/Header.styles.d.ts +12 -7
  110. package/lib/components/Header/Header.styles.js +32 -10
  111. package/lib/components/Header/Header.styles.js.map +1 -1
  112. package/lib/components/Header/Header.styles.mjs +31 -10
  113. package/lib/components/Header/Header.styles.mjs.map +1 -1
  114. package/lib/components/Header/Header.types.d.ts +5 -29
  115. package/lib/components/Header/Header.types.js +1 -2
  116. package/lib/components/Header/Header.types.js.map +1 -1
  117. package/lib/components/Header/Header.types.mjs +1 -2
  118. package/lib/components/Header/Header.types.mjs.map +1 -1
  119. package/lib/components/Header/IsolatedHeader.d.ts +0 -1
  120. package/lib/components/Header/IsolatedHeader.js +50 -50
  121. package/lib/components/Header/IsolatedHeader.js.map +1 -1
  122. package/lib/components/Header/IsolatedHeader.mjs +46 -47
  123. package/lib/components/Header/IsolatedHeader.mjs.map +1 -1
  124. package/lib/components/Header/LanguageFrame/LanguageFrame.js +6 -6
  125. package/lib/components/Header/MenuItem/MenuItem.styles.d.ts +1 -1
  126. package/lib/components/Header/MenuItem/MenuItem.styles.js +3 -3
  127. package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
  128. package/lib/components/Header/MenuItem/MenuItem.styles.mjs +3 -3
  129. package/lib/components/Header/MenuItem/MenuItem.styles.mjs.map +1 -1
  130. package/lib/components/Header/MenuItem/MenuItem.types.d.ts +0 -1
  131. package/lib/components/Header/Navigation/Carousel/Carousel.js +5 -5
  132. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.js +12 -12
  133. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
  134. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +6 -6
  135. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +1 -1
  136. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
  137. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +109 -116
  138. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
  139. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +104 -111
  140. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
  141. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +0 -9
  142. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +1 -15
  143. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
  144. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +2 -13
  145. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
  146. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +6 -12
  147. package/lib/components/Header/Overlay/Overlay.js +3 -3
  148. package/lib/components/Header/ProHeader/ProHeader.d.ts +5 -9
  149. package/lib/components/Header/ProHeader/ProHeader.js +189 -270
  150. package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
  151. package/lib/components/Header/ProHeader/ProHeader.mjs +171 -251
  152. package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
  153. package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +25 -30
  154. package/lib/components/Header/ProHeader/ProHeader.styles.js +66 -119
  155. package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
  156. package/lib/components/Header/ProHeader/ProHeader.styles.mjs +65 -112
  157. package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
  158. package/lib/components/Header/translations/ar.json.js +1 -4
  159. package/lib/components/Header/translations/ar.json.js.map +1 -1
  160. package/lib/components/Header/translations/ar.json.mjs +2 -4
  161. package/lib/components/Header/translations/ar.json.mjs.map +1 -1
  162. package/lib/components/Header/translations/de.json.js +1 -4
  163. package/lib/components/Header/translations/de.json.js.map +1 -1
  164. package/lib/components/Header/translations/de.json.mjs +2 -4
  165. package/lib/components/Header/translations/de.json.mjs.map +1 -1
  166. package/lib/components/Header/translations/el.json.js +1 -4
  167. package/lib/components/Header/translations/el.json.js.map +1 -1
  168. package/lib/components/Header/translations/el.json.mjs +2 -4
  169. package/lib/components/Header/translations/el.json.mjs.map +1 -1
  170. package/lib/components/Header/translations/en.json.js +1 -7
  171. package/lib/components/Header/translations/en.json.js.map +1 -1
  172. package/lib/components/Header/translations/en.json.mjs +2 -6
  173. package/lib/components/Header/translations/en.json.mjs.map +1 -1
  174. package/lib/components/Header/translations/es.json.js +1 -4
  175. package/lib/components/Header/translations/es.json.js.map +1 -1
  176. package/lib/components/Header/translations/es.json.mjs +2 -4
  177. package/lib/components/Header/translations/es.json.mjs.map +1 -1
  178. package/lib/components/Header/translations/fr.json.js +1 -4
  179. package/lib/components/Header/translations/fr.json.js.map +1 -1
  180. package/lib/components/Header/translations/fr.json.mjs +2 -4
  181. package/lib/components/Header/translations/fr.json.mjs.map +1 -1
  182. package/lib/components/Header/translations/it.json.js +1 -4
  183. package/lib/components/Header/translations/it.json.js.map +1 -1
  184. package/lib/components/Header/translations/it.json.mjs +2 -4
  185. package/lib/components/Header/translations/it.json.mjs.map +1 -1
  186. package/lib/components/Header/translations/ja.json.js +1 -4
  187. package/lib/components/Header/translations/ja.json.js.map +1 -1
  188. package/lib/components/Header/translations/ja.json.mjs +2 -4
  189. package/lib/components/Header/translations/ja.json.mjs.map +1 -1
  190. package/lib/components/Header/translations/pt-BR.json.js +1 -4
  191. package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
  192. package/lib/components/Header/translations/pt-BR.json.mjs +2 -4
  193. package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
  194. package/lib/components/Header/translations/zh-Hans.json.js +1 -4
  195. package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
  196. package/lib/components/Header/translations/zh-Hans.json.mjs +2 -4
  197. package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
  198. package/lib/components/Header/translations/zh-Hant-TW.json.js +1 -4
  199. package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
  200. package/lib/components/Header/translations/zh-Hant-TW.json.mjs +2 -4
  201. package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
  202. package/lib/components/Hero/Hero.js +5 -5
  203. package/lib/components/Hero/Hero.styles.d.ts +2 -2
  204. package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +1 -1
  205. package/lib/components/HeroVideo/HeroVideo.js +5 -5
  206. package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +2 -2
  207. package/lib/components/ImageCarousel/ImageCarousel.js +30 -30
  208. package/lib/components/ImageSequence/ImageSequence.js +8 -8
  209. package/lib/components/LandingPage/Cards/Card/Card.js +4 -4
  210. package/lib/components/LandingPage/Cards/Cards.js +10 -10
  211. package/lib/components/LandingPage/LandingPage.js +2 -2
  212. package/lib/components/LandingPagePro/LandingPagePro.js +13 -13
  213. package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +1 -1
  214. package/lib/components/LandingPageSearch/LandingPageSearch.js +2 -2
  215. package/lib/components/LandingPageSearch/Modal/Modal.js +9 -9
  216. package/lib/components/LandingPageSidebar/LandingPageSidebar.js +12 -12
  217. package/lib/components/LayoutRenderer/LayoutRenderer.js +8 -8
  218. package/lib/components/LayoutRenderer/LayoutRenderer.styles.d.ts +1 -1
  219. package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +3 -3
  220. package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +3 -3
  221. package/lib/components/LoaderDots/LoaderDots.d.ts +1 -1
  222. package/lib/components/LoaderDots/LoaderDots.js +1 -3
  223. package/lib/components/LoaderDots/LoaderDots.js.map +1 -1
  224. package/lib/components/LoaderDots/LoaderDots.mjs +1 -3
  225. package/lib/components/LoaderDots/LoaderDots.mjs.map +1 -1
  226. package/lib/components/LoaderDots/LoaderDots.styles.d.ts +1 -2
  227. package/lib/components/LoaderDots/LoaderDots.styles.js +1 -11
  228. package/lib/components/LoaderDots/LoaderDots.styles.js.map +1 -1
  229. package/lib/components/LoaderDots/LoaderDots.styles.mjs +1 -11
  230. package/lib/components/LoaderDots/LoaderDots.styles.mjs.map +1 -1
  231. package/lib/components/LoaderDots/LoaderDots.types.d.ts +0 -2
  232. package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.js +7 -7
  233. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.js +18 -18
  234. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.d.ts +1 -1
  235. package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.js +2 -2
  236. package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.js +3 -3
  237. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.js +3 -3
  238. package/lib/components/MicrositeHero/MicrositeHero.js +18 -18
  239. package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.js +4 -4
  240. package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.js +9 -9
  241. package/lib/components/MicrositeProductGrid/MicrositeProductGrid.js +8 -8
  242. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlockWrap.js +2 -2
  243. package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +1 -1
  244. package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.js +3 -3
  245. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +13 -13
  246. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
  247. package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
  248. package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
  249. package/lib/components/Microsites/MicrositePageContext.js +2 -2
  250. package/lib/components/Microsites/MicrositeProductPage.js +3 -3
  251. package/lib/components/Microsites/context/MicrositeProductPageContext.js +3 -3
  252. package/lib/components/MobileModal/MobileModal.js +4 -4
  253. package/lib/components/Modal/Modal.js +3 -3
  254. package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js +3 -3
  255. package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.js +2 -2
  256. package/lib/components/ModelCompareV3/ModelCompareV3.js +14 -14
  257. package/lib/components/ModelCompareV3/ProductGroupsGrid.js +3 -3
  258. package/lib/components/ModelCompareV3/ScrollGroup/ScrollGroup.js +5 -5
  259. package/lib/components/ModelCompareV3/ScrollGroup/context.js +3 -3
  260. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupItem.js +8 -8
  261. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupSetScroll.js +2 -2
  262. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupTo.js +2 -2
  263. package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js +7 -7
  264. package/lib/components/ModelCompareV3/StickyGrid/StickyGridBody.js +2 -2
  265. package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js +5 -5
  266. package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.js +2 -2
  267. package/lib/components/ModelCompareV3/StickyGrid/context.js +3 -3
  268. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js +2 -4
  269. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js.map +1 -1
  270. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs +2 -4
  271. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs.map +1 -1
  272. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js +2 -2
  273. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js.map +1 -1
  274. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.mjs +2 -2
  275. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.mjs.map +1 -1
  276. package/lib/components/ModelCompareV3/data/products/express.js +3 -3
  277. package/lib/components/ModelCompareV3/data/products/express.js.map +1 -1
  278. package/lib/components/ModelCompareV3/data/products/express.mjs +3 -3
  279. package/lib/components/ModelCompareV3/data/products/express.mjs.map +1 -1
  280. package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js +2 -4
  281. package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js.map +1 -1
  282. package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs +2 -4
  283. package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs.map +1 -1
  284. package/lib/components/ModelCompareV3/data/products/gatewayLite.js +2 -4
  285. package/lib/components/ModelCompareV3/data/products/gatewayLite.js.map +1 -1
  286. package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs +2 -4
  287. package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs.map +1 -1
  288. package/lib/components/ModelCompareV3/data/products/gatewayMax.js +2 -4
  289. package/lib/components/ModelCompareV3/data/products/gatewayMax.js.map +1 -1
  290. package/lib/components/ModelCompareV3/data/products/gatewayMax.mjs +2 -4
  291. package/lib/components/ModelCompareV3/data/products/gatewayMax.mjs.map +1 -1
  292. package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js +2 -4
  293. package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js.map +1 -1
  294. package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs +2 -4
  295. package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs.map +1 -1
  296. package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.js +1 -3
  297. package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.js.map +1 -1
  298. package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.mjs +1 -3
  299. package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.mjs.map +1 -1
  300. package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
  301. package/lib/components/ModelCompareV3/data/products/ucgMax.js.map +1 -1
  302. package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
  303. package/lib/components/ModelCompareV3/data/products/ucgMax.mjs.map +1 -1
  304. package/lib/components/ModelCompareV3/data/products/ucgUltra.js +3 -3
  305. package/lib/components/ModelCompareV3/data/products/ucgUltra.js.map +1 -1
  306. package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +3 -3
  307. package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs.map +1 -1
  308. package/lib/components/ModelCompareV3/data/products/udmPro.js +3 -3
  309. package/lib/components/ModelCompareV3/data/products/udmPro.js.map +1 -1
  310. package/lib/components/ModelCompareV3/data/products/udmPro.mjs +3 -3
  311. package/lib/components/ModelCompareV3/data/products/udmPro.mjs.map +1 -1
  312. package/lib/components/ModelCompareV3/data/products/udmProMax.js +3 -3
  313. package/lib/components/ModelCompareV3/data/products/udmProMax.js.map +1 -1
  314. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +3 -3
  315. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs.map +1 -1
  316. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +3 -3
  317. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js.map +1 -1
  318. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +3 -3
  319. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs.map +1 -1
  320. package/lib/components/ModelCompareV3/data/products/udr.js +41 -5
  321. package/lib/components/ModelCompareV3/data/products/udr.js.map +1 -1
  322. package/lib/components/ModelCompareV3/data/products/udr.mjs +21 -5
  323. package/lib/components/ModelCompareV3/data/products/udr.mjs.map +1 -1
  324. package/lib/components/ModelCompareV3/data/products/udw.js +3 -3
  325. package/lib/components/ModelCompareV3/data/products/udw.js.map +1 -1
  326. package/lib/components/ModelCompareV3/data/products/udw.mjs +3 -3
  327. package/lib/components/ModelCompareV3/data/products/udw.mjs.map +1 -1
  328. package/lib/components/Pagination/Pagination.js +3 -3
  329. package/lib/components/PriceRangeSlider/PriceRangeSlider.js +16 -16
  330. package/lib/components/ProductCard/ProductCard.js +7 -7
  331. package/lib/components/ProductCardPopup/ProductCardPopup.js +8 -8
  332. package/lib/components/ProductCompare/ProductCompare.js +7 -7
  333. package/lib/components/ProductDetails/ProductDetails.js +5 -5
  334. package/lib/components/ProductGrid/ProductGrid.js +10 -10
  335. package/lib/components/ProductKeyFeatures/ProductKeyFeatures.js +3 -3
  336. package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +1 -1
  337. package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +1 -1
  338. package/lib/components/ProductSectionTabs/ProductSectionTabs.js +2 -2
  339. package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +2 -2
  340. package/lib/components/ProductWizard/Options/Options.js +3 -3
  341. package/lib/components/ProductWizard/ProductWizard.js +2 -2
  342. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js +5 -5
  343. package/lib/components/ProgressCircle/ProgressCircle.js +4 -4
  344. package/lib/components/QuantityControls/QuantityControls.js +6 -6
  345. package/lib/components/QuantityControls/QuantityControls.js.map +1 -1
  346. package/lib/components/QuantityControls/QuantityControls.mjs +2 -2
  347. package/lib/components/QuantityControls/QuantityControls.mjs.map +1 -1
  348. package/lib/components/QuantityControls/QuantityControls.types.d.ts +1 -1
  349. package/lib/components/QuantityInput/QuantityInput.js +1 -6
  350. package/lib/components/QuantityInput/QuantityInput.js.map +1 -1
  351. package/lib/components/QuantityInput/QuantityInput.mjs +1 -6
  352. package/lib/components/QuantityInput/QuantityInput.mjs.map +1 -1
  353. package/lib/components/RelatedProducts/RelatedProducts.js +5 -5
  354. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +2 -2
  355. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
  356. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +2 -2
  357. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
  358. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js +36 -36
  359. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +12 -12
  360. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +6 -6
  361. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
  362. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CheckboxSection.js +2 -2
  363. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +4 -4
  364. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/SliderSection.js +3 -3
  365. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
  366. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
  367. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +8 -8
  368. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
  369. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
  370. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
  371. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +6 -6
  372. package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.js +9 -9
  373. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.js +10 -10
  374. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +15 -15
  375. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.js +2 -2
  376. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +6 -6
  377. package/lib/components/ResourceCalculatorV1/translations/en.json.js +1 -1
  378. package/lib/components/ResourceCalculatorV1/translations/en.json.mjs +1 -1
  379. package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.js +5 -5
  380. package/lib/components/ScrollWrapper/ScrollWrapper.d.ts +1 -1
  381. package/lib/components/ScrollWrapper/ScrollWrapper.js +26 -34
  382. package/lib/components/ScrollWrapper/ScrollWrapper.js.map +1 -1
  383. package/lib/components/ScrollWrapper/ScrollWrapper.mjs +8 -16
  384. package/lib/components/ScrollWrapper/ScrollWrapper.mjs.map +1 -1
  385. package/lib/components/ScrollWrapper/ScrollWrapper.types.d.ts +0 -2
  386. package/lib/components/Search/Input/Input.d.ts +1 -1
  387. package/lib/components/Search/Input/Input.js +8 -8
  388. package/lib/components/Search/Input/Input.js.map +1 -1
  389. package/lib/components/Search/Input/Input.mjs +4 -4
  390. package/lib/components/Search/Input/Input.mjs.map +1 -1
  391. package/lib/components/Search/Input/Input.styles.js +1 -0
  392. package/lib/components/Search/Input/Input.styles.js.map +1 -1
  393. package/lib/components/Search/Input/Input.styles.mjs +1 -0
  394. package/lib/components/Search/Input/Input.styles.mjs.map +1 -1
  395. package/lib/components/Search/Input/Input.types.d.ts +2 -3
  396. package/lib/components/Search/Modal/Modal.js +3 -3
  397. package/lib/components/StorageSliders/Slider/Slider.js +3 -3
  398. package/lib/components/StorageSliders/StorageSliders.context.js +20 -20
  399. package/lib/components/StorageSliders/StorageSliders.js +4 -4
  400. package/lib/components/Tooltip/Tooltip.js +5 -5
  401. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js +7 -7
  402. package/lib/components/VariantSelector/Variant/Variant.js +40 -40
  403. package/lib/components/VariantSelector/VariantSelector.js +16 -16
  404. package/lib/components/VideoPlayerNew/VideoPlayer.js +21 -21
  405. package/lib/components/VideoPlayerNew/VideoPlayer.mjs +2 -2
  406. package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
  407. package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
  408. package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
  409. package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
  410. package/lib/components/index.d.ts +0 -1
  411. package/lib/components/index.js +0 -2
  412. package/lib/components/index.js.map +1 -1
  413. package/lib/components/index.mjs +0 -2
  414. package/lib/components/index.mjs.map +1 -1
  415. package/lib/constants/icons/options/colors/black.svg.js +5 -5
  416. package/lib/constants/icons/options/colors/index.js +3 -3
  417. package/lib/constants/icons/options/styles/black.svg.js +5 -5
  418. package/lib/constants/icons/options/styles/index.js +3 -3
  419. package/lib/constants/optionIcons.js +6 -6
  420. package/lib/constants/optionIcons.mjs +4 -4
  421. package/lib/constants/proStoreCategories/mapping/filters.d.ts +0 -17
  422. package/lib/constants/proStoreCategories/mapping/filters.js +0 -17
  423. package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
  424. package/lib/constants/proStoreCategories/mapping/filters.mjs +0 -17
  425. package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
  426. package/lib/constants/proStoreCategories/mapping/index.d.ts +2 -4
  427. package/lib/constants/proStoreCategories/mapping/index.js +51 -50
  428. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  429. package/lib/constants/proStoreCategories/mapping/index.mjs +49 -49
  430. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  431. package/lib/constants/proStoreCategories/mapping/mapping.d.ts +0 -5
  432. package/lib/constants/proStoreCategories/mapping/redirects.js +3 -18
  433. package/lib/constants/proStoreCategories/mapping/redirects.js.map +1 -1
  434. package/lib/constants/proStoreCategories/mapping/redirects.mjs +3 -18
  435. package/lib/constants/proStoreCategories/mapping/redirects.mjs.map +1 -1
  436. package/lib/constants/proStoreCategories/mapping/unifi.d.ts +9 -9
  437. package/lib/constants/proStoreCategories/mapping/unifi.js +9 -9
  438. package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
  439. package/lib/constants/proStoreCategories/mapping/unifi.mjs +9 -9
  440. package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
  441. package/lib/constants/proStoreCategories/translations/ar.json.js +3 -7
  442. package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
  443. package/lib/constants/proStoreCategories/translations/ar.json.mjs +4 -7
  444. package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
  445. package/lib/constants/proStoreCategories/translations/de.json.js +3 -7
  446. package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
  447. package/lib/constants/proStoreCategories/translations/de.json.mjs +4 -7
  448. package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
  449. package/lib/constants/proStoreCategories/translations/el.json.js +3 -7
  450. package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
  451. package/lib/constants/proStoreCategories/translations/el.json.mjs +4 -7
  452. package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
  453. package/lib/constants/proStoreCategories/translations/en.json.js +3 -7
  454. package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
  455. package/lib/constants/proStoreCategories/translations/en.json.mjs +4 -7
  456. package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
  457. package/lib/constants/proStoreCategories/translations/es.json.js +3 -7
  458. package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
  459. package/lib/constants/proStoreCategories/translations/es.json.mjs +4 -7
  460. package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
  461. package/lib/constants/proStoreCategories/translations/fr.json.js +3 -7
  462. package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
  463. package/lib/constants/proStoreCategories/translations/fr.json.mjs +4 -7
  464. package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
  465. package/lib/constants/proStoreCategories/translations/it.json.js +3 -7
  466. package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
  467. package/lib/constants/proStoreCategories/translations/it.json.mjs +4 -7
  468. package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
  469. package/lib/constants/proStoreCategories/translations/ja.json.js +3 -7
  470. package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
  471. package/lib/constants/proStoreCategories/translations/ja.json.mjs +4 -7
  472. package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
  473. package/lib/constants/proStoreCategories/translations/pt-BR.json.js +3 -7
  474. package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
  475. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +4 -7
  476. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
  477. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +3 -7
  478. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
  479. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +4 -7
  480. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
  481. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +3 -7
  482. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
  483. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +4 -7
  484. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
  485. package/lib/constants/proStoreFilters/mapping.d.ts +3 -55
  486. package/lib/constants/proStoreFilters/mapping.js +10 -140
  487. package/lib/constants/proStoreFilters/mapping.js.map +1 -1
  488. package/lib/constants/proStoreFilters/mapping.mjs +10 -140
  489. package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
  490. package/lib/constants/theme.js +0 -4
  491. package/lib/constants/theme.js.map +1 -1
  492. package/lib/constants/theme.mjs +0 -4
  493. package/lib/constants/theme.mjs.map +1 -1
  494. package/lib/contexts/MenuContext/context.js +34 -34
  495. package/lib/contexts/MenuContext/context.js.map +1 -1
  496. package/lib/contexts/MenuContext/context.mjs +1 -1
  497. package/lib/contexts/MenuContext/context.mjs.map +1 -1
  498. package/lib/contexts/MenuContext/mapping.js.map +1 -1
  499. package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
  500. package/lib/helpers/index.js +0 -1
  501. package/lib/helpers/index.js.map +1 -1
  502. package/lib/helpers/index.mjs +1 -1
  503. package/lib/helpers/proStoreCategories.js +2 -2
  504. package/lib/helpers/ux.d.ts +0 -8
  505. package/lib/helpers/ux.js +0 -15
  506. package/lib/helpers/ux.js.map +1 -1
  507. package/lib/helpers/ux.mjs +1 -15
  508. package/lib/helpers/ux.mjs.map +1 -1
  509. package/lib/hooks/useHasTouch.js +3 -3
  510. package/lib/hooks/useHddRetentionCalculator.js +5 -5
  511. package/lib/hooks/useHorizontalScroll.js +2 -2
  512. package/lib/hooks/useLockBodyScrollCustom.js +3 -3
  513. package/lib/hooks/useScrollToY.js +2 -2
  514. package/lib/hooks/useTestMediaElementVolumeSetter.js +3 -3
  515. package/lib/hooks/useTranslation.js +6 -6
  516. package/lib/utils/nextjs/ssr/registry.js +2 -2
  517. package/package.json +1 -1
  518. package/lib/assets/cart-secondary.svg +0 -5
  519. package/lib/assets/icon-location-pin.svg +0 -5
  520. package/lib/assets/icons/cart-secondary.svg.js +0 -27
  521. package/lib/assets/icons/cart-secondary.svg.js.map +0 -1
  522. package/lib/assets/icons/cart-secondary.svg.mjs +0 -3
  523. package/lib/assets/icons/cart-secondary.svg.mjs.map +0 -1
  524. package/lib/assets/icons/menu/icon-location-pin.svg.js.map +0 -1
  525. package/lib/assets/icons/menu/icon-location-pin.svg.mjs +0 -3
  526. package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +0 -1
  527. package/lib/components/ButtonGroupBasic/index.stories.d.ts +0 -6
  528. package/lib/components/Header/Header.stories.d.ts +0 -111
  529. package/lib/components/Header/LogoIcon/LogoIcon.d.ts +0 -7
  530. package/lib/components/Header/LogoIcon/LogoIcon.js +0 -46
  531. package/lib/components/Header/LogoIcon/LogoIcon.js.map +0 -1
  532. package/lib/components/Header/LogoIcon/LogoIcon.mjs +0 -36
  533. package/lib/components/Header/LogoIcon/LogoIcon.mjs.map +0 -1
  534. package/lib/components/Header/LogoIcon/index.d.ts +0 -1
  535. package/lib/components/Header/LogoIcon/index.js +0 -6
  536. package/lib/components/Header/LogoIcon/index.js.map +0 -1
  537. package/lib/components/Header/LogoIcon/index.mjs +0 -3
  538. package/lib/components/Header/LogoIcon/index.mjs.map +0 -1
  539. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.d.ts +0 -2
  540. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js +0 -79
  541. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js.map +0 -1
  542. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs +0 -71
  543. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs.map +0 -1
  544. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.stories.d.ts +0 -5
  545. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.d.ts +0 -11
  546. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +0 -86
  547. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +0 -1
  548. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +0 -72
  549. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs.map +0 -1
  550. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.types.d.ts +0 -12
  551. package/lib/components/ProductTechSpecsV2/index.d.ts +0 -1
  552. package/lib/components/ProductTechSpecsV2/index.js +0 -6
  553. package/lib/components/ProductTechSpecsV2/index.js.map +0 -1
  554. package/lib/components/ProductTechSpecsV2/index.mjs +0 -3
  555. package/lib/components/ProductTechSpecsV2/index.mjs.map +0 -1
@@ -1,4 +1,5 @@
1
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
1
+ import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import { LineLoader } from '@ubnt/ui-components/LineLoader';
2
3
  import merge from 'lodash/merge';
3
4
  import { memo, useRef, useState, useMemo, useEffect, useCallback } from 'react';
4
5
  import { useMedia, useClickAway } from 'react-use';
@@ -10,25 +11,22 @@ import { BREAKPOINTS } from '../../../constants/layout.mjs';
10
11
  import '../../../contexts/MenuContext/index.mjs';
11
12
  import { SiteId } from '../../../contexts/MenuContext/mapping.mjs';
12
13
  import { ModalId } from '../../../contexts/MenuContext/types.mjs';
13
- import { getTrueSize } from '../../../helpers/ux.mjs';
14
14
  import '../../../hooks/index.mjs';
15
15
  import '../../../types/index.mjs';
16
16
  import { imageSrc } from '../../../utils/asset.mjs';
17
17
  import { checkUnreachable } from '../../../utils/errors.mjs';
18
18
  import '../../MobileModal/index.mjs';
19
- import '../../ScrollWrapper/index.mjs';
19
+ import '../../StyleableSvgImage/index.mjs';
20
20
  import '../../Tooltip/index.mjs';
21
21
  import '../AccountFrame/index.mjs';
22
22
  import '../AccountFrame/Mobile/index.mjs';
23
- 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';
24
24
  import { defaultHeaderTranslations } from '../Header.types.mjs';
25
25
  import '../LanguageFrame/index.mjs';
26
26
  import '../LanguageFrame/Mobile/index.mjs';
27
- import '../LogoIcon/index.mjs';
28
- import '../MenuItem/index.mjs';
29
27
  import '../Navigation/ProMobileMenu/index.mjs';
30
28
  import '../translations/index.mjs';
31
- import { WRAP_GAP, ProIconWrap, AvatarWrap, ProHeaderWrap, ProHeader as ProHeader$1, Wrap, LeftWrap, CurrentStoreWrap, CurrentStoreFlag, CenterWrap, SearchWrap, Search, SearchCancel, InlineCategoryWrap, CATEGORY_ITEMS_GAP, RightWrap, ProductLineSelectorWrap, ProIconInnerFillWrap, VerticalDivider, LineLoader } 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';
32
30
  import { ProductLine } from '../../../types/generated.mjs';
33
31
  import { useMenu } from '../../../contexts/MenuContext/context.mjs';
34
32
  import { useTranslation } from '../../../hooks/useTranslation.mjs';
@@ -36,9 +34,8 @@ import EN_TRANSLATION from '../translations/en.json.mjs';
36
34
  import { Language } from '../../../types/constants.mjs';
37
35
  import NoUserAvatar__default from "../../../assets/no-user-avatar.png";
38
36
  import _externalAssets_CtJIOg_A__default from "../../../assets/account.svg";
39
- import { HeaderLogoIcon } from '../LogoIcon/LogoIcon.mjs';
40
- import { ScrollWrapper } from '../../ScrollWrapper/ScrollWrapper.mjs';
41
- import { MenuItem } from '../MenuItem/MenuItem.mjs';
37
+ import { StyleableSvgImage } from '../../StyleableSvgImage/StyleableSvgImage.mjs';
38
+ import _externalAssets_BPYvPCPi__default from "../../../assets/logo.svg";
42
39
  import _externalAssets_g50k1DIN__default from "../../../assets/search.svg";
43
40
  import { Tooltip } from '../../Tooltip/Tooltip.mjs';
44
41
  import _externalAssets_DJH57LL8__default from "../../../assets/globe.svg";
@@ -53,9 +50,7 @@ import { AccountFrameMobile } from '../AccountFrame/Mobile/Mobile.mjs';
53
50
  import { AccountFrame } from '../AccountFrame/AccountFrame.mjs';
54
51
  import { NavigationProMobileMenu } from '../Navigation/ProMobileMenu/ProMobileMenu.mjs';
55
52
  "use strict";
56
- const PRO_HEADER_MOBILE_UP = BREAKPOINTS.TABLET_UP;
57
- const PRO_HEADER_MOBILE_AND_DOWN = BREAKPOINTS.TABLET_AND_DOWN;
58
- const DEFAULT_PRODUCT_LINE_OPTIONS = [{
53
+ const defaultProductLineOptions = [{
59
54
  value: ProductLine.Unifi,
60
55
  label: "UniFi"
61
56
  }, {
@@ -72,9 +67,8 @@ const ProHeader = memo(function ProHeader2({
72
67
  onCartClick,
73
68
  showLineLoader,
74
69
  searchValue,
75
- searchInputWidth,
76
- searchInputChildren,
77
70
  onSearch,
71
+ currentCountryName,
78
72
  handleStorePickerClick,
79
73
  earlyAccess,
80
74
  handlePurchaseHistoryClick,
@@ -82,22 +76,17 @@ const ProHeader = memo(function ProHeader2({
82
76
  handleProductLineChange,
83
77
  handleMobileMenuClick,
84
78
  productLineValue,
85
- categories,
86
- hideInlineCategories,
87
79
  embedConfig,
88
80
  onSearchFocus,
89
81
  onSearchBlur,
90
82
  onSearchClick,
91
- productLineOptions = DEFAULT_PRODUCT_LINE_OPTIONS,
83
+ productLineOptions = defaultProductLineOptions,
92
84
  accountMenu,
93
- onLanguageChange,
94
- logo
85
+ onLanguageChange
95
86
  }) {
96
- const isMobile = useMedia(PRO_HEADER_MOBILE_AND_DOWN, false);
87
+ const isMobile = useMedia(BREAKPOINTS.MOBILE_AND_DOWN, false);
97
88
  const rootRef = useRef(null);
98
- const wrapRef = useRef(null);
99
- const containerRef = useRef(null);
100
- const [searchInputEl, setSearchInputEl] = useState(null);
89
+ const [searchInputRef, setSearchInputRef] = useState(null);
101
90
  const translations = useMemo(() => {
102
91
  return merge(defaultHeaderTranslations, initialTranslations);
103
92
  }, [initialTranslations]);
@@ -159,72 +148,45 @@ const ProHeader = memo(function ProHeader2({
159
148
  activeModal === ModalId.ProMobileMenu
160
149
  );
161
150
  }, [activeModal]);
162
- const [canFocusSearch, setCanFocusSearch] = useState(false);
163
- useEffect(() => {
164
- if (activeModal !== ModalId.Search) {
165
- setCanFocusSearch(false);
166
- }
167
- }, [activeModal]);
168
- useEffect(() => {
169
- if (!canFocusSearch || activeModal !== ModalId.Search || !searchInputEl) return;
170
- const interval = setInterval(() => {
171
- if (document.activeElement === searchInputEl) {
172
- clearInterval(interval);
173
- }
174
- searchInputEl.focus();
175
- setCanFocusSearch(false);
176
- }, 0);
177
- return () => clearInterval(interval);
178
- }, [activeModal, canFocusSearch, searchInputEl]);
179
- const isSearching = activeModal === ModalId.Search || !!searchValue;
180
151
  const onClickAwayFromSearchModal = useCallback(() => {
181
- if (searchValue) return;
182
152
  if (activeModal === ModalId.Search) {
183
153
  setActiveModal(null);
184
154
  onSearchClick?.();
185
155
  }
186
- }, [activeModal, onSearchClick, searchValue, setActiveModal]);
187
- const [initialSearchValueHandled, setInitialSearchValueHandled] = useState(false);
188
- useEffect(() => {
189
- if (!initialSearchValueHandled && searchValue) {
190
- setActiveModal(ModalId.Search);
191
- setInitialSearchValueHandled(true);
192
- }
193
- }, [initialSearchValueHandled, searchValue, setActiveModal]);
156
+ }, [activeModal, onSearchClick, setActiveModal]);
194
157
  const blurSearchInput = useCallback(() => {
195
- if (!searchInputEl || activeModal !== ModalId.Search) {
158
+ if (!searchInputRef || activeModal !== ModalId.Search) {
196
159
  return;
197
160
  }
198
161
  if (searchValue?.length) {
199
- searchInputEl.blur();
162
+ searchInputRef.blur();
200
163
  } else {
201
164
  onClickAwayFromSearchModal();
202
165
  }
203
- }, [activeModal, onClickAwayFromSearchModal, searchInputEl, searchValue?.length]);
166
+ }, [activeModal, onClickAwayFromSearchModal, searchInputRef, searchValue?.length]);
204
167
  useClickAway(rootRef, () => {
205
168
  onClickAwayFromSearchModal();
206
169
  }, ["click"]);
207
- const handleSearchCancel = useCallback(() => {
208
- setActiveModal(null);
209
- onSearch?.("");
210
- }, [onSearch, setActiveModal]);
211
- const handleSearchOnClear = useCallback(() => {
212
- setActiveModal(ModalId.Search);
213
- onSearch?.("");
214
- }, [onSearch, setActiveModal]);
215
- const handleSearchOnFocus = useCallback(() => {
170
+ const handleSearchFocus = useCallback(() => {
216
171
  setIsSearchFocused(true);
217
172
  onSearchFocus?.();
218
173
  }, [setIsSearchFocused, onSearchFocus]);
219
- const handleSearchOnBlur = useCallback(() => {
174
+ const handleSearchBlur = useCallback(() => {
220
175
  setIsSearchFocused(false);
221
176
  onSearchBlur?.();
222
177
  }, [setIsSearchFocused, onSearchBlur]);
223
- const handleOpenSearch = useCallback(e => {
178
+ const handleShowSearchTab = useCallback(e => {
224
179
  handleModalOpen(e, ModalId.Search);
225
180
  onSearchClick?.();
226
- setCanFocusSearch(true);
227
- }, [handleModalOpen, onSearchClick]);
181
+ if (searchInputRef) {
182
+ const interval = setInterval(() => {
183
+ if (document.activeElement === searchInputRef) {
184
+ clearInterval(interval);
185
+ }
186
+ searchInputRef.focus();
187
+ }, 0);
188
+ }
189
+ }, [handleModalOpen, onSearchClick, searchInputRef]);
228
190
  const handleSearchValueChange = useCallback(e => {
229
191
  onSearch?.(e.target.value);
230
192
  }, [onSearch]);
@@ -250,7 +212,7 @@ const ProHeader = memo(function ProHeader2({
250
212
  case ProductLine.Amplifi:
251
213
  return 164;
252
214
  default:
253
- return 160;
215
+ return 150;
254
216
  }
255
217
  }, [productLineValue]);
256
218
  useEffect(() => {
@@ -269,36 +231,12 @@ const ProHeader = memo(function ProHeader2({
269
231
  const cartQuantity = useMemo(() => {
270
232
  return cart?.items.reduce((sum, item) => sum + item.quantity, 0) ?? 0;
271
233
  }, [cart?.items]);
272
- const homeLinkUrl = useMemo(() => {
273
- return logo?.url ?? createSiteUrl([SiteId.Ui, ""]);
274
- }, [createSiteUrl, logo?.url]);
275
234
  const homeLinkClickHandler = useCallback(e => {
276
235
  if (embedConfig?.homeLinkClickHandler) {
277
236
  e.preventDefault();
278
237
  embedConfig.homeLinkClickHandler();
279
- return;
280
238
  }
281
- logo?.onClick?.(e, homeLinkUrl);
282
- }, [embedConfig, homeLinkUrl, logo]);
283
- useEffect(() => {
284
- const containerEl = containerRef.current;
285
- if (!containerEl) return;
286
- const wrapEl = wrapRef.current;
287
- if (!wrapEl) return;
288
- const [leftEl, centerEl, rightEl] = Array.from(wrapEl.children);
289
- if (!leftEl || !centerEl || !rightEl) return;
290
- const handle = () => {
291
- if (isMobile) {
292
- centerEl.style.maxWidth = "none";
293
- } else {
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
- }
298
- window.requestAnimationFrame(handle);
299
- };
300
- window.requestAnimationFrame(handle);
301
- }, [isMobile]);
239
+ }, [embedConfig]);
302
240
  const handleAvatarClick = useCallback(e => {
303
241
  if (embedConfig?.avatarClickHandler) {
304
242
  embedConfig.avatarClickHandler();
@@ -335,12 +273,12 @@ const ProHeader = memo(function ProHeader2({
335
273
  })
336
274
  });
337
275
  }, [embedConfig?.moveAvatarIconToLeft, account?.customer?.picture, account?.loading, embedConfig?.displayAvatarAsImage, embedConfig?.hideAvatarIcon, handleAvatarClick, motif]);
338
- return /* @__PURE__ */jsx(ProHeaderWrap, {
276
+ return /* @__PURE__ */jsxs(ProHeaderWrap, {
339
277
  ref: rootRef,
340
278
  $sticky: !!embedConfig,
341
279
  $disableBlur: activeModal === ModalId.Language && isMobile,
342
- children: /* @__PURE__ */jsx(HeaderWrap, {
343
- children: /* @__PURE__ */jsxs(ProHeader$1, {
280
+ children: [/* @__PURE__ */jsx(HeaderWrap, {
281
+ children: /* @__PURE__ */jsxs(Header, {
344
282
  sticky: sticky || !!embedConfig,
345
283
  isStickyEmbed: !!embedConfig,
346
284
  className,
@@ -349,172 +287,137 @@ const ProHeader = memo(function ProHeader2({
349
287
  size: embedConfig?.fullWidthHeader ? "full" : "desktop",
350
288
  noVerticalMargin: true,
351
289
  noPaddings: !!embedConfig?.fullWidthHeader,
352
- ref: containerRef,
353
290
  children: [/* @__PURE__ */jsxs(Wrap, {
354
- ref: wrapRef,
355
- children: [/* @__PURE__ */jsx(LeftWrap, {
291
+ children: [/* @__PURE__ */jsxs(LeftWrap, {
356
292
  $addSpaceOnDesktop: !!embedConfig?.fullWidthHeader,
357
- hideBreakpoint: isSearching ? PRO_HEADER_MOBILE_AND_DOWN : void 0,
358
- children: activeModal !== ModalId.ProMobileMenu && /* @__PURE__ */jsxs(Fragment, {
359
- children: [!logo?.hide && !embedConfig?.hideLogo && /* @__PURE__ */jsx(Anchor, {
360
- href: homeLinkUrl,
361
- onClick: homeLinkClickHandler,
362
- children: embedConfig?.siteTitle ? /* @__PURE__ */jsx(SiteTitleWrap, {
363
- children: embedConfig.siteTitle
364
- }) : /* @__PURE__ */jsx(LogoIconWrap, {
365
- motif,
366
- children: /* @__PURE__ */jsx(HeaderLogoIcon, {
367
- productLine: logo?.productLine ?? productLineValue
368
- })
293
+ children: [!embedConfig?.hideLogo && /* @__PURE__ */jsx(Anchor, {
294
+ href: createSiteUrl([SiteId.Ui, ""]),
295
+ onClick: homeLinkClickHandler,
296
+ children: embedConfig?.siteTitle ? /* @__PURE__ */jsx(SiteTitleWrap, {
297
+ children: embedConfig.siteTitle
298
+ }) : /* @__PURE__ */jsx(LogoIconWrap, {
299
+ motif,
300
+ $burger: false,
301
+ children: /* @__PURE__ */jsx(StyleableSvgImage, {
302
+ src: _externalAssets_BPYvPCPi__default,
303
+ width: 17,
304
+ height: 20
369
305
  })
370
- }), embedConfig?.moveAvatarIconToLeft && avatarHtml, !!logo?.currentStore && /* @__PURE__ */jsxs(CurrentStoreWrap, {
371
- hideBreakpoint: PRO_HEADER_MOBILE_AND_DOWN,
306
+ })
307
+ }), embedConfig?.moveAvatarIconToLeft && avatarHtml, /* @__PURE__ */jsx(BreakpointsWrap, {
308
+ hideBreakpoint: BREAKPOINTS.TABLET_AND_DOWN,
309
+ children: currentCountryName && /* @__PURE__ */jsx(CountryButton, {
310
+ "data-test-id": "country-select-btn",
311
+ type: "button",
372
312
  onClick: handleStorePickerClick,
373
- children: [/* @__PURE__ */jsx(CurrentStoreFlag, {
374
- children: logo.currentStore.flag
375
- }), logo.currentStore.name]
376
- })]
377
- })
378
- }), /* @__PURE__ */jsx(CenterWrap, {
379
- hideBreakpoint: !isSearching ? PRO_HEADER_MOBILE_AND_DOWN : void 0,
380
- children: isSearching ? /* @__PURE__ */jsxs(SearchWrap, {
381
- children: [/* @__PURE__ */jsx(Search, {
382
- setInputRef: setSearchInputEl,
383
- onValueChange: handleSearchValueChange,
384
- placeholder: searchPlaceholder,
385
- isSearchFocused: !!searchValue || isSearchFocused,
386
- value: searchValue ?? "",
387
- showCancel: !!searchValue,
388
- onCancelClick: handleSearchOnClear,
389
- width: searchInputWidth ?? 420,
390
- onFocus: handleSearchOnFocus,
391
- onBlur: handleSearchOnBlur,
392
- focusedWidth: searchFocusWidth,
393
- children: searchInputChildren
394
- }), /* @__PURE__ */jsx(SearchCancel, {
395
- onClick: handleSearchCancel,
396
- children: formatMessage("Cancel")
397
- })]
398
- }) : /* @__PURE__ */jsx(InlineCategoryWrap, {
399
- $hide: hideInlineCategories,
400
- children: /* @__PURE__ */jsx(ScrollWrapper, {
401
- direction: "horizontal",
402
- align: "center",
403
- scrollStepType: "scrollScreen",
404
- fillType: "gradient",
405
- gradientSize: WRAP_GAP * 4,
406
- gap: CATEGORY_ITEMS_GAP,
407
- activeIndex: categories.activeIndex,
408
- items: categories.items.map((category, i) => ({
409
- id: category.id,
410
- render() {
411
- const active = categories.activeIndex === i;
412
- return /* @__PURE__ */jsx(MenuItem, {
413
- "data-test-id": `inline-category${active ? "-selected" : ""}`,
414
- as: "a",
415
- href: category.url ?? "#",
416
- onClick: category.onClick && category.url ? e => category.onClick?.(e, category.url) : void 0,
417
- active,
418
- motif,
419
- children: /* @__PURE__ */jsx(MenuItemLabel, {
420
- children: category.label
421
- })
422
- }, category.id);
423
- }
424
- }))
313
+ children: currentCountryName
425
314
  })
426
- })
315
+ })]
316
+ }), /* @__PURE__ */jsxs(CenterWrap, {
317
+ children: [/* @__PURE__ */jsx(Search, {
318
+ onValueChange: handleSearchValueChange,
319
+ placeholder: searchPlaceholder,
320
+ isSearchFocused: !!searchValue || isSearchFocused,
321
+ value: searchValue || "",
322
+ showCancel: !!searchValue,
323
+ onCancelClick: () => {
324
+ onSearch?.("");
325
+ },
326
+ width: 420,
327
+ onFocus: handleSearchFocus,
328
+ onBlur: handleSearchBlur,
329
+ hideBreakpoint: BREAKPOINTS.MOBILE_AND_DOWN,
330
+ focusedWidth: searchFocusWidth
331
+ }), /* @__PURE__ */jsx(BreakpointsWrap, {
332
+ hideBreakpoint: BREAKPOINTS.TABLET_AND_DOWN,
333
+ children: /* @__PURE__ */jsx(ProductLineSelectorWrap, {
334
+ children: productLineOptions.map(option => /* @__PURE__ */jsx(ProductLineSelectorItem, {
335
+ onClick: () => handleProductLineChange?.(option.value),
336
+ $active: option.value === productLineValue,
337
+ "data-test-id": `product-line-selector-${option.value}`,
338
+ children: option.label
339
+ }, option.value))
340
+ })
341
+ })]
427
342
  }), /* @__PURE__ */jsxs(RightWrap, {
428
343
  $addSpaceOnDesktop: !!embedConfig?.fullWidthHeader,
429
- hideBreakpoint: isSearching ? PRO_HEADER_MOBILE_AND_DOWN : void 0,
430
- children: [isSearching && /* @__PURE__ */jsx(ProductLineSelectorWrap, {
431
- hideBreakpoint: PRO_HEADER_MOBILE_AND_DOWN,
432
- children: productLineOptions.filter(productLine => productLine.value !== productLineValue).map(productLine => /* @__PURE__ */jsx(MenuItem, {
433
- motif,
434
- onClick: () => handleProductLineChange?.(productLine.value),
435
- children: /* @__PURE__ */jsx(MenuItemLabel, {
436
- children: productLine.label
437
- })
438
- }, productLine.value))
439
- }), activeModal !== ModalId.ProMobileMenu && !(isSearching && !isMobile) && /* @__PURE__ */jsxs(Fragment, {
440
- children: [/* @__PURE__ */jsx(ProIconWrap, {
441
- "data-test-id": "search-btn",
442
- motif,
443
- onClick: handleOpenSearch,
444
- children: /* @__PURE__ */jsx(ProIconInnerFillWrap, {
445
- $active: isSearching,
446
- $transparent: !!embedConfig || !isMobile,
447
- children: /* @__PURE__ */jsx(SvgIcon, {
448
- src: _externalAssets_g50k1DIN__default,
449
- width: HEADER_ICON_SIZE,
450
- height: HEADER_ICON_SIZE
451
- })
452
- })
453
- }), cart && /* @__PURE__ */jsx(ProIconWrap, {
454
- motif,
455
- "data-test-id": "cart-btn",
456
- onClick: e => cartQuantity > 0 && handleModalOpen(e, ModalId.Cart),
457
- $isDefaultCursor: cartQuantity < 1,
458
- children: cart?.loading ? /* @__PURE__ */jsx(SkeletonCircleLoader, {
459
- diameter: HEADER_ICON_SIZE
460
- }) : cartQuantity > 0 ? /* @__PURE__ */jsx(CartIcon, {
461
- itemCount: cartQuantity,
462
- motif,
463
- width: HEADER_ICON_SIZE,
464
- height: HEADER_ICON_SIZE
465
- }) : /* @__PURE__ */jsx(Tooltip, {
466
- description: translations.cart.empty,
467
- motif: "light",
468
- isInteractive: true,
469
- position: "bottom",
470
- style: {
471
- height: `${HEADER_ICON_SIZE}px`
472
- },
473
- children: /* @__PURE__ */jsx(CartIcon, {
474
- itemCount: cartQuantity,
475
- motif,
476
- width: HEADER_ICON_SIZE,
477
- height: HEADER_ICON_SIZE
478
- })
479
- })
480
- }), !embedConfig && !handlePurchaseHistoryClick && /* @__PURE__ */jsx(VerticalDivider, {
481
- hideBreakpoint: PRO_HEADER_MOBILE_AND_DOWN
482
- }), isMultiLanguage && !embedConfig?.hideLanguagePicker && /* @__PURE__ */jsx(ProIconWrap, {
483
- motif,
484
- "data-test-id": "language-picker-btn",
485
- onClick: e => handleModalOpen(e, ModalId.Language),
344
+ children: [/* @__PURE__ */jsx(ProIconWrap, {
345
+ hideBreakpoint: BREAKPOINTS.MOBILE_UP,
346
+ motif,
347
+ onClick: handleShowSearchTab,
348
+ children: /* @__PURE__ */jsx(ProIconInnerFillWrap, {
349
+ $active: activeModal === ModalId.Search || !!searchValue?.length,
350
+ $transparent: !!embedConfig,
486
351
  children: /* @__PURE__ */jsx(SvgIcon, {
487
- src: _externalAssets_DJH57LL8__default,
352
+ src: _externalAssets_g50k1DIN__default,
488
353
  width: HEADER_ICON_SIZE,
489
354
  height: HEADER_ICON_SIZE
490
355
  })
491
- }), handlePurchaseHistoryClick && /* @__PURE__ */jsx(ProIconWrap, {
492
- hideBreakpoint: PRO_HEADER_MOBILE_AND_DOWN,
356
+ })
357
+ }), cart && /* @__PURE__ */jsx(ProIconWrap, {
358
+ motif,
359
+ "data-test-id": "cart-btn",
360
+ onClick: e => cartQuantity > 0 && handleModalOpen(e, ModalId.Cart),
361
+ $isDefaultCursor: cartQuantity < 1,
362
+ children: cart?.loading ? /* @__PURE__ */jsx(SkeletonCircleLoader, {
363
+ diameter: HEADER_ICON_SIZE
364
+ }) : cartQuantity > 0 ? /* @__PURE__ */jsx(CartIcon, {
365
+ itemCount: cartQuantity,
493
366
  motif,
494
- "data-test-id": "purchase-history-btn",
495
- onClick: handlePurchaseHistoryClick,
496
- children: /* @__PURE__ */jsx(SvgIcon, {
497
- src: HistoryIcon__default,
367
+ width: HEADER_ICON_SIZE,
368
+ height: HEADER_ICON_SIZE
369
+ }) : /* @__PURE__ */jsx(Tooltip, {
370
+ description: translations.cart.empty,
371
+ motif: "light",
372
+ isInteractive: true,
373
+ position: "bottom",
374
+ style: {
375
+ height: `${HEADER_ICON_SIZE}px`
376
+ },
377
+ children: /* @__PURE__ */jsx(CartIcon, {
378
+ itemCount: cartQuantity,
379
+ motif,
498
380
  width: HEADER_ICON_SIZE,
499
381
  height: HEADER_ICON_SIZE
500
382
  })
501
- }), earlyAccess && /* @__PURE__ */jsx(ProIconWrap, {
502
- hideBreakpoint: PRO_HEADER_MOBILE_AND_DOWN,
503
- motif,
504
- onClick: earlyAccess.onClick,
505
- children: earlyAccess.loading ? /* @__PURE__ */jsx(SkeletonCircleLoader, {
506
- diameter: HEADER_ICON_SIZE
507
- }) : /* @__PURE__ */jsx(SvgIcon, {
508
- src: EAIcon__default,
509
- width: HEADER_ICON_SIZE,
510
- height: HEADER_ICON_SIZE * 0.8,
511
- renderedHeight: HEADER_ICON_SIZE * 0.8
512
- })
513
- }), !embedConfig?.moveAvatarIconToLeft ? !accountMenu ? avatarHtml : accountMenu : null, /* @__PURE__ */jsx(VerticalDivider, {
514
- hideBreakpoint: PRO_HEADER_MOBILE_UP
515
- })]
383
+ })
384
+ }), !embedConfig && !handlePurchaseHistoryClick && /* @__PURE__ */jsx(VerticalDivider, {
385
+ hideBreakpoint: BREAKPOINTS.TABLET_AND_DOWN
386
+ }), isMultiLanguage && !embedConfig?.hideLanguagePicker && /* @__PURE__ */jsx(ProIconWrap, {
387
+ motif,
388
+ "data-test-id": "language-picker-btn",
389
+ onClick: e => handleModalOpen(e, ModalId.Language),
390
+ children: /* @__PURE__ */jsx(SvgIcon, {
391
+ src: _externalAssets_DJH57LL8__default,
392
+ width: HEADER_ICON_SIZE,
393
+ height: HEADER_ICON_SIZE
394
+ })
395
+ }), handlePurchaseHistoryClick && /* @__PURE__ */jsx(ProIconWrap, {
396
+ hideBreakpoint: BREAKPOINTS.TABLET_AND_DOWN,
397
+ motif,
398
+ "data-test-id": "purchase-history-btn",
399
+ onClick: handlePurchaseHistoryClick,
400
+ children: /* @__PURE__ */jsx(SvgIcon, {
401
+ src: HistoryIcon__default,
402
+ width: HEADER_ICON_SIZE,
403
+ height: HEADER_ICON_SIZE
404
+ })
405
+ }), earlyAccess && /* @__PURE__ */jsx(ProIconWrap, {
406
+ hideBreakpoint: BREAKPOINTS.TABLET_AND_DOWN,
407
+ motif,
408
+ onClick: earlyAccess.onClick,
409
+ children: earlyAccess.loading ? /* @__PURE__ */jsx(SkeletonCircleLoader, {
410
+ diameter: HEADER_ICON_SIZE
411
+ }) : /* @__PURE__ */jsx(SvgIcon, {
412
+ src: EAIcon__default,
413
+ width: HEADER_ICON_SIZE,
414
+ height: HEADER_ICON_SIZE * 0.8,
415
+ renderedHeight: HEADER_ICON_SIZE * 0.8
416
+ })
417
+ }), !embedConfig?.moveAvatarIconToLeft ? !accountMenu ? avatarHtml : accountMenu : null, /* @__PURE__ */jsx(VerticalDivider, {
418
+ hideBreakpoint: BREAKPOINTS.TABLET_UP
516
419
  }), /* @__PURE__ */jsx(ProIconWrap, {
517
- hideBreakpoint: PRO_HEADER_MOBILE_UP,
420
+ hideBreakpoint: BREAKPOINTS.TABLET_UP,
518
421
  motif,
519
422
  onClick: handleHamburgerClick,
520
423
  children: activeModal === ModalId.ProMobileMenu ? /* @__PURE__ */jsx(SvgIcon, {
@@ -581,19 +484,36 @@ const ProHeader = memo(function ProHeader2({
581
484
  }), !isSsr && activeModal === ModalId.ProMobileMenu && /* @__PURE__ */jsx(NavigationProMobileMenu, {
582
485
  translations,
583
486
  onClose: handleModalClose,
584
- logo,
487
+ currentCountryName,
585
488
  handleStorePickerClick,
586
489
  handleOrderHistoryClick,
587
490
  handlePurchaseHistoryClick,
588
491
  handleProductLineChange,
589
492
  productLineValue,
590
493
  productLineOptions,
591
- categories,
592
- hideExtraSection: !!embedConfig
494
+ extraSectionItems: embedConfig?.mobileMenuExtraSectionItems
593
495
  })]
594
496
  })
595
- })
497
+ }), /* @__PURE__ */jsx(SearchTabWrap, {
498
+ $show: activeModal === ModalId.Search,
499
+ $isStickyEmbed: !!embedConfig,
500
+ hideBreakpoint: BREAKPOINTS.MOBILE_UP,
501
+ children: /* @__PURE__ */jsx(Search, {
502
+ setInputRef: setSearchInputRef,
503
+ onValueChange: handleSearchValueChange,
504
+ placeholder: searchPlaceholder,
505
+ isSearchFocused: !!searchValue || isSearchFocused,
506
+ value: searchValue || "",
507
+ showCancel: !!searchValue,
508
+ onCancelClick: () => {
509
+ onSearch?.("");
510
+ },
511
+ onFocus: handleSearchFocus,
512
+ onBlur: handleSearchBlur,
513
+ focusedWidth: searchFocusWidth
514
+ })
515
+ })]
596
516
  });
597
517
  });
598
- export { PRO_HEADER_MOBILE_AND_DOWN, PRO_HEADER_MOBILE_UP, ProHeader };
518
+ export { ProHeader };
599
519
  //# sourceMappingURL=ProHeader.mjs.map