@ubnt/store.core 9.64.0 → 9.64.1-new-design

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 (618) hide show
  1. package/CHANGELOG.md +148 -1
  2. package/lib/_virtual/_virtual_multi-entry.js +13 -10
  3. package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
  4. package/lib/_virtual/_virtual_multi-entry.mjs +13 -11
  5. package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
  6. package/lib/apis/smartcat.d.ts +12 -2
  7. package/lib/apis/smartcat.js +27 -4
  8. package/lib/apis/smartcat.js.map +1 -1
  9. package/lib/apis/smartcat.mjs +27 -4
  10. package/lib/apis/smartcat.mjs.map +1 -1
  11. package/lib/assets/arrow2.svg +3 -0
  12. package/lib/assets/cart-secondary.svg +5 -0
  13. package/lib/assets/icon-location-pin.svg +5 -0
  14. package/lib/assets/icons/{menu/icon-globe.svg.js → cart-secondary.svg.js} +6 -6
  15. package/lib/assets/icons/cart-secondary.svg.js.map +1 -0
  16. package/lib/assets/icons/cart-secondary.svg.mjs +3 -0
  17. package/lib/assets/icons/cart-secondary.svg.mjs.map +1 -0
  18. package/lib/{components/ModelCompareV3/assets/Switching/aggregation.jpg.js → assets/icons/menu/icon-location-pin.svg.js} +6 -6
  19. package/lib/assets/icons/menu/icon-location-pin.svg.js.map +1 -0
  20. package/lib/assets/icons/menu/icon-location-pin.svg.mjs +3 -0
  21. package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +1 -0
  22. package/lib/assets/logoUnifi.svg +10 -2
  23. package/lib/assets/poe2.svg +3 -2
  24. package/lib/assets/poe3.svg +2 -3
  25. package/lib/assets/port.svg +4 -2
  26. package/lib/assets/port2.svg +2 -4
  27. package/lib/assets/udmPro.jpg +0 -0
  28. package/lib/assets/udmPro2.jpg +0 -0
  29. package/lib/assets/udmProMax.jpg +0 -0
  30. package/lib/assets/udmProMax2.jpg +0 -0
  31. package/lib/assets/udmProSpecial.jpg +0 -0
  32. package/lib/assets/udmProSpecial2.jpg +0 -0
  33. package/lib/assets/udr2.jpg +0 -0
  34. package/lib/assets/udr3.jpg +0 -0
  35. package/lib/assets/udr7.jpg +0 -0
  36. package/lib/assets/udr72.jpg +0 -0
  37. package/lib/components/Accordion/Accordion.js +4 -4
  38. package/lib/components/Avatar/Avatar.js +2 -2
  39. package/lib/components/BackInStock/BackInStock.types.d.ts +1 -0
  40. package/lib/components/Button/Button.js +12 -5
  41. package/lib/components/Button/Button.js.map +1 -1
  42. package/lib/components/Button/Button.mjs +8 -1
  43. package/lib/components/Button/Button.mjs.map +1 -1
  44. package/lib/components/Button/CartButton.d.ts +3 -1
  45. package/lib/components/Button/CartButton.js +11 -6
  46. package/lib/components/Button/CartButton.js.map +1 -1
  47. package/lib/components/Button/CartButton.mjs +8 -4
  48. package/lib/components/Button/CartButton.mjs.map +1 -1
  49. package/lib/components/ButtonGroup/ButtonGroup.d.ts +1 -1
  50. package/lib/components/ButtonGroup/ButtonGroup.js +16 -9
  51. package/lib/components/ButtonGroup/ButtonGroup.js.map +1 -1
  52. package/lib/components/ButtonGroup/ButtonGroup.mjs +16 -9
  53. package/lib/components/ButtonGroup/ButtonGroup.mjs.map +1 -1
  54. package/lib/components/ButtonGroup/ButtonGroup.styles.d.ts +10 -6
  55. package/lib/components/ButtonGroup/ButtonGroup.styles.js +60 -20
  56. package/lib/components/ButtonGroup/ButtonGroup.styles.js.map +1 -1
  57. package/lib/components/ButtonGroup/ButtonGroup.styles.mjs +60 -20
  58. package/lib/components/ButtonGroup/ButtonGroup.styles.mjs.map +1 -1
  59. package/lib/components/ButtonGroup/ButtonGroup.types.d.ts +5 -0
  60. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.d.ts +1 -1
  61. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js +16 -4
  62. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js.map +1 -1
  63. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs +17 -5
  64. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs.map +1 -1
  65. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.d.ts +5 -1
  66. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js +82 -17
  67. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js.map +1 -1
  68. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs +82 -17
  69. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs.map +1 -1
  70. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.types.d.ts +4 -0
  71. package/lib/components/ButtonGroupBasic/index.stories.d.ts +6 -0
  72. package/lib/components/CardSection/Card/Card.d.ts +1 -1
  73. package/lib/components/CardSection/Card/Card.js +9 -7
  74. package/lib/components/CardSection/Card/Card.js.map +1 -1
  75. package/lib/components/CardSection/Card/Card.mjs +3 -1
  76. package/lib/components/CardSection/Card/Card.mjs.map +1 -1
  77. package/lib/components/CardSection/Card/Card.types.d.ts +1 -0
  78. package/lib/components/CardSection/Card/Card.types.js.map +1 -1
  79. package/lib/components/CardSection/Card/Card.types.mjs.map +1 -1
  80. package/lib/components/CardSection/CardSection.js +2 -2
  81. package/lib/components/CardSection/CardSection.styles.d.ts +1 -1
  82. package/lib/components/CartIcon/CartIcon.js +2 -2
  83. package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +4 -2
  84. package/lib/components/CategoryTabs/CategoryTabs.styles.js +8 -5
  85. package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
  86. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +7 -6
  87. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
  88. package/lib/components/Checkbox/Checkbox.js +4 -4
  89. package/lib/components/CloserLookSection/CloserLookSection.js +11 -11
  90. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.js +5 -5
  91. package/lib/components/Compare/Compare.styles.d.ts +5 -5
  92. package/lib/components/Container/Container.d.ts +1 -1
  93. package/lib/components/Container/Container.js +5 -4
  94. package/lib/components/Container/Container.js.map +1 -1
  95. package/lib/components/Container/Container.mjs +5 -4
  96. package/lib/components/Container/Container.mjs.map +1 -1
  97. package/lib/components/Container/index.stories.d.ts +5 -5
  98. package/lib/components/CustomImage/CustomImage.js +12 -12
  99. package/lib/components/Explore/Explore.js +5 -5
  100. package/lib/components/Explore/ExploreData.js +11 -11
  101. package/lib/components/Explore/ExploreData.js.map +1 -1
  102. package/lib/components/Explore/ExploreData.mjs +11 -11
  103. package/lib/components/Explore/ExploreData.mjs.map +1 -1
  104. package/lib/components/FeaturesSection_deprecated/Features/Features.js +2 -2
  105. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +22 -22
  106. package/lib/components/Footer/Footer.js +2 -2
  107. package/lib/components/Footer/hooks/useFooterContent.js +5 -5
  108. package/lib/components/Gallery/Gallery.context.js +17 -17
  109. package/lib/components/Gallery/Gallery.js +9 -9
  110. package/lib/components/Gallery/GalleryControls/GalleryControls.js +4 -4
  111. package/lib/components/Gallery/GalleryItem/GalleryItem.js +8 -8
  112. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.js +8 -8
  113. package/lib/components/GridGallery/GridGallery.js +8 -8
  114. package/lib/components/GridGallery/GridModal/GridModal.js +6 -6
  115. package/lib/components/Header/AccountFrame/AccountFrame.js +11 -11
  116. package/lib/components/Header/AccountFrame/Mobile/Mobile.js +4 -4
  117. package/lib/components/Header/AccountMenu/AccountMenu.js +30 -20
  118. package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
  119. package/lib/components/Header/AccountMenu/AccountMenu.mjs +13 -3
  120. package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
  121. package/lib/components/Header/CartModal/Empty/Empty.js +3 -3
  122. package/lib/components/Header/CartModalV2/CartModal.js +5 -5
  123. package/lib/components/Header/CartModalV2/Item/Item.js +4 -4
  124. package/lib/components/Header/CartModalV2/Item/Item.styles.d.ts +1 -1
  125. package/lib/components/Header/Header.js +43 -43
  126. package/lib/components/Header/Header.js.map +1 -1
  127. package/lib/components/Header/Header.mjs +9 -9
  128. package/lib/components/Header/Header.mjs.map +1 -1
  129. package/lib/components/Header/Header.stories.d.ts +111 -0
  130. package/lib/components/Header/Header.styles.d.ts +7 -12
  131. package/lib/components/Header/Header.styles.js +10 -32
  132. package/lib/components/Header/Header.styles.js.map +1 -1
  133. package/lib/components/Header/Header.styles.mjs +10 -31
  134. package/lib/components/Header/Header.styles.mjs.map +1 -1
  135. package/lib/components/Header/Header.types.d.ts +29 -5
  136. package/lib/components/Header/Header.types.js +2 -1
  137. package/lib/components/Header/Header.types.js.map +1 -1
  138. package/lib/components/Header/Header.types.mjs +2 -1
  139. package/lib/components/Header/Header.types.mjs.map +1 -1
  140. package/lib/components/Header/IsolatedHeader.d.ts +1 -0
  141. package/lib/components/Header/IsolatedHeader.js +50 -50
  142. package/lib/components/Header/IsolatedHeader.js.map +1 -1
  143. package/lib/components/Header/IsolatedHeader.mjs +47 -46
  144. package/lib/components/Header/IsolatedHeader.mjs.map +1 -1
  145. package/lib/components/Header/LanguageFrame/LanguageFrame.js +6 -6
  146. package/lib/components/Header/LogoIcon/LogoIcon.d.ts +7 -0
  147. package/lib/components/Header/LogoIcon/LogoIcon.js +46 -0
  148. package/lib/components/Header/LogoIcon/LogoIcon.js.map +1 -0
  149. package/lib/components/Header/LogoIcon/LogoIcon.mjs +36 -0
  150. package/lib/components/Header/LogoIcon/LogoIcon.mjs.map +1 -0
  151. package/lib/components/Header/LogoIcon/index.d.ts +1 -0
  152. package/lib/components/Header/LogoIcon/index.js +6 -0
  153. package/lib/components/Header/LogoIcon/index.js.map +1 -0
  154. package/lib/components/Header/LogoIcon/index.mjs +3 -0
  155. package/lib/components/Header/LogoIcon/index.mjs.map +1 -0
  156. package/lib/components/Header/MenuItem/MenuItem.styles.d.ts +1 -1
  157. package/lib/components/Header/MenuItem/MenuItem.styles.js +3 -3
  158. package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
  159. package/lib/components/Header/MenuItem/MenuItem.styles.mjs +3 -3
  160. package/lib/components/Header/MenuItem/MenuItem.styles.mjs.map +1 -1
  161. package/lib/components/Header/MenuItem/MenuItem.types.d.ts +1 -0
  162. package/lib/components/Header/Navigation/Carousel/Carousel.js +5 -5
  163. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.js +12 -12
  164. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
  165. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +6 -6
  166. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +1 -1
  167. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
  168. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +116 -109
  169. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
  170. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +111 -104
  171. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
  172. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +9 -0
  173. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +15 -1
  174. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
  175. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +13 -2
  176. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
  177. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +12 -6
  178. package/lib/components/Header/Overlay/Overlay.js +3 -3
  179. package/lib/components/Header/ProHeader/ProHeader.d.ts +9 -5
  180. package/lib/components/Header/ProHeader/ProHeader.js +290 -189
  181. package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
  182. package/lib/components/Header/ProHeader/ProHeader.mjs +270 -171
  183. package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
  184. package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +38 -23
  185. package/lib/components/Header/ProHeader/ProHeader.styles.js +205 -67
  186. package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
  187. package/lib/components/Header/ProHeader/ProHeader.styles.mjs +194 -66
  188. package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
  189. package/lib/components/Header/translations/ar.json.js +4 -1
  190. package/lib/components/Header/translations/ar.json.js.map +1 -1
  191. package/lib/components/Header/translations/ar.json.mjs +4 -2
  192. package/lib/components/Header/translations/ar.json.mjs.map +1 -1
  193. package/lib/components/Header/translations/de.json.js +4 -1
  194. package/lib/components/Header/translations/de.json.js.map +1 -1
  195. package/lib/components/Header/translations/de.json.mjs +4 -2
  196. package/lib/components/Header/translations/de.json.mjs.map +1 -1
  197. package/lib/components/Header/translations/el.json.js +4 -1
  198. package/lib/components/Header/translations/el.json.js.map +1 -1
  199. package/lib/components/Header/translations/el.json.mjs +4 -2
  200. package/lib/components/Header/translations/el.json.mjs.map +1 -1
  201. package/lib/components/Header/translations/en.json.js +7 -1
  202. package/lib/components/Header/translations/en.json.js.map +1 -1
  203. package/lib/components/Header/translations/en.json.mjs +6 -2
  204. package/lib/components/Header/translations/en.json.mjs.map +1 -1
  205. package/lib/components/Header/translations/es.json.js +4 -1
  206. package/lib/components/Header/translations/es.json.js.map +1 -1
  207. package/lib/components/Header/translations/es.json.mjs +4 -2
  208. package/lib/components/Header/translations/es.json.mjs.map +1 -1
  209. package/lib/components/Header/translations/fr.json.js +4 -1
  210. package/lib/components/Header/translations/fr.json.js.map +1 -1
  211. package/lib/components/Header/translations/fr.json.mjs +4 -2
  212. package/lib/components/Header/translations/fr.json.mjs.map +1 -1
  213. package/lib/components/Header/translations/it.json.js +4 -1
  214. package/lib/components/Header/translations/it.json.js.map +1 -1
  215. package/lib/components/Header/translations/it.json.mjs +4 -2
  216. package/lib/components/Header/translations/it.json.mjs.map +1 -1
  217. package/lib/components/Header/translations/ja.json.js +4 -1
  218. package/lib/components/Header/translations/ja.json.js.map +1 -1
  219. package/lib/components/Header/translations/ja.json.mjs +4 -2
  220. package/lib/components/Header/translations/ja.json.mjs.map +1 -1
  221. package/lib/components/Header/translations/pt-BR.json.js +4 -1
  222. package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
  223. package/lib/components/Header/translations/pt-BR.json.mjs +4 -2
  224. package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
  225. package/lib/components/Header/translations/zh-Hans.json.js +4 -1
  226. package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
  227. package/lib/components/Header/translations/zh-Hans.json.mjs +4 -2
  228. package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
  229. package/lib/components/Header/translations/zh-Hant-TW.json.js +4 -1
  230. package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
  231. package/lib/components/Header/translations/zh-Hant-TW.json.mjs +4 -2
  232. package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
  233. package/lib/components/Hero/Hero.js +5 -5
  234. package/lib/components/Hero/Hero.styles.d.ts +2 -2
  235. package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +1 -1
  236. package/lib/components/HeroVideo/HeroVideo.js +5 -5
  237. package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +2 -2
  238. package/lib/components/ImageCarousel/ImageCarousel.js +30 -30
  239. package/lib/components/ImageSequence/ImageSequence.js +8 -8
  240. package/lib/components/LandingPage/Cards/Card/Card.js +4 -4
  241. package/lib/components/LandingPage/Cards/Cards.js +10 -10
  242. package/lib/components/LandingPage/LandingPage.js +2 -2
  243. package/lib/components/LandingPagePro/LandingPagePro.js +13 -13
  244. package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +1 -1
  245. package/lib/components/LandingPageSearch/LandingPageSearch.js +2 -2
  246. package/lib/components/LandingPageSearch/Modal/Modal.js +9 -9
  247. package/lib/components/LandingPageSidebar/LandingPageSidebar.js +12 -12
  248. package/lib/components/LayoutRenderer/LayoutRenderer.js +8 -8
  249. package/lib/components/LayoutRenderer/LayoutRenderer.styles.d.ts +1 -1
  250. package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +3 -3
  251. package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +3 -3
  252. package/lib/components/LoaderDots/LoaderDots.d.ts +1 -1
  253. package/lib/components/LoaderDots/LoaderDots.js +3 -1
  254. package/lib/components/LoaderDots/LoaderDots.js.map +1 -1
  255. package/lib/components/LoaderDots/LoaderDots.mjs +3 -1
  256. package/lib/components/LoaderDots/LoaderDots.mjs.map +1 -1
  257. package/lib/components/LoaderDots/LoaderDots.styles.d.ts +2 -1
  258. package/lib/components/LoaderDots/LoaderDots.styles.js +11 -1
  259. package/lib/components/LoaderDots/LoaderDots.styles.js.map +1 -1
  260. package/lib/components/LoaderDots/LoaderDots.styles.mjs +11 -1
  261. package/lib/components/LoaderDots/LoaderDots.styles.mjs.map +1 -1
  262. package/lib/components/LoaderDots/LoaderDots.types.d.ts +2 -0
  263. package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.js +7 -7
  264. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.js +18 -18
  265. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.d.ts +1 -1
  266. package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.js +2 -2
  267. package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.js +3 -3
  268. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.js +3 -3
  269. package/lib/components/MicrositeHero/MicrositeHero.js +18 -18
  270. package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.js +4 -4
  271. package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.js +9 -9
  272. package/lib/components/MicrositeProductGrid/MicrositeProductGrid.js +8 -8
  273. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlockWrap.js +2 -2
  274. package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +1 -1
  275. package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.js +3 -3
  276. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +12 -12
  277. package/lib/components/Microsites/MicrositePageContext.js +2 -2
  278. package/lib/components/Microsites/MicrositeProductPage.js +3 -3
  279. package/lib/components/Microsites/context/MicrositeProductPageContext.js +3 -3
  280. package/lib/components/MobileModal/MobileModal.js +4 -4
  281. package/lib/components/Modal/Modal.js +3 -3
  282. package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js +3 -3
  283. package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.js +2 -2
  284. package/lib/components/ModelCompareV3/ModelCompareV3.js +14 -14
  285. package/lib/components/ModelCompareV3/ProductGroupsGrid.js +3 -3
  286. package/lib/components/ModelCompareV3/ScrollGroup/ScrollGroup.js +5 -5
  287. package/lib/components/ModelCompareV3/ScrollGroup/context.js +3 -3
  288. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupItem.js +8 -8
  289. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupSetScroll.js +2 -2
  290. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupTo.js +2 -2
  291. package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js +7 -7
  292. package/lib/components/ModelCompareV3/StickyGrid/StickyGridBody.js +2 -2
  293. package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js +5 -5
  294. package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.js +2 -2
  295. package/lib/components/ModelCompareV3/StickyGrid/context.js +3 -3
  296. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
  297. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
  298. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
  299. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
  300. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
  301. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
  302. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udr.jpg.js +5 -5
  303. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udr.jpg.mjs +2 -2
  304. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udr7.jpg.js +5 -5
  305. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udr7.jpg.mjs +2 -2
  306. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
  307. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
  308. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
  309. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
  310. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
  311. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
  312. package/lib/components/ModelCompareV3/assets/Consoles/udr.jpg.js +1 -1
  313. package/lib/components/ModelCompareV3/assets/Consoles/udr.jpg.mjs +2 -2
  314. package/lib/components/ModelCompareV3/assets/Consoles/udr7.jpg.js +1 -1
  315. package/lib/components/ModelCompareV3/assets/Consoles/udr7.jpg.mjs +2 -2
  316. package/lib/components/ModelCompareV3/assets/poe.svg.js +1 -1
  317. package/lib/components/ModelCompareV3/assets/poe.svg.mjs +2 -2
  318. package/lib/components/ModelCompareV3/assets/port.svg.js +1 -1
  319. package/lib/components/ModelCompareV3/assets/port.svg.mjs +2 -2
  320. package/lib/components/ModelCompareV3/data/CloudGateways.js +12 -12
  321. package/lib/components/ModelCompareV3/data/CloudGateways.mjs +8 -8
  322. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js +3 -2
  323. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js.map +1 -1
  324. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs +3 -2
  325. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs.map +1 -1
  326. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js +4 -2
  327. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js.map +1 -1
  328. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs +4 -2
  329. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs.map +1 -1
  330. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js +2 -2
  331. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js.map +1 -1
  332. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.mjs +2 -2
  333. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.mjs.map +1 -1
  334. package/lib/components/ModelCompareV3/data/products/express.js +3 -3
  335. package/lib/components/ModelCompareV3/data/products/express.js.map +1 -1
  336. package/lib/components/ModelCompareV3/data/products/express.mjs +3 -3
  337. package/lib/components/ModelCompareV3/data/products/express.mjs.map +1 -1
  338. package/lib/components/ModelCompareV3/data/products/express7.js +1 -1
  339. package/lib/components/ModelCompareV3/data/products/express7.js.map +1 -1
  340. package/lib/components/ModelCompareV3/data/products/express7.mjs +1 -1
  341. package/lib/components/ModelCompareV3/data/products/express7.mjs.map +1 -1
  342. package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js +5 -3
  343. package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js.map +1 -1
  344. package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs +5 -3
  345. package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs.map +1 -1
  346. package/lib/components/ModelCompareV3/data/products/gatewayLite.js +5 -3
  347. package/lib/components/ModelCompareV3/data/products/gatewayLite.js.map +1 -1
  348. package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs +5 -3
  349. package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs.map +1 -1
  350. package/lib/components/ModelCompareV3/data/products/gatewayMax.js +4 -2
  351. package/lib/components/ModelCompareV3/data/products/gatewayMax.js.map +1 -1
  352. package/lib/components/ModelCompareV3/data/products/gatewayMax.mjs +4 -2
  353. package/lib/components/ModelCompareV3/data/products/gatewayMax.mjs.map +1 -1
  354. package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js +5 -3
  355. package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js.map +1 -1
  356. package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs +5 -3
  357. package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs.map +1 -1
  358. package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.js +3 -1
  359. package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.js.map +1 -1
  360. package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.mjs +3 -1
  361. package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.mjs.map +1 -1
  362. package/lib/components/ModelCompareV3/data/products/ucgFiber.js +1 -1
  363. package/lib/components/ModelCompareV3/data/products/ucgFiber.js.map +1 -1
  364. package/lib/components/ModelCompareV3/data/products/ucgFiber.mjs +1 -1
  365. package/lib/components/ModelCompareV3/data/products/ucgFiber.mjs.map +1 -1
  366. package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
  367. package/lib/components/ModelCompareV3/data/products/ucgMax.js.map +1 -1
  368. package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
  369. package/lib/components/ModelCompareV3/data/products/ucgMax.mjs.map +1 -1
  370. package/lib/components/ModelCompareV3/data/products/ucgUltra.js +3 -3
  371. package/lib/components/ModelCompareV3/data/products/ucgUltra.js.map +1 -1
  372. package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +3 -3
  373. package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs.map +1 -1
  374. package/lib/components/ModelCompareV3/data/products/udmPro.js +4 -4
  375. package/lib/components/ModelCompareV3/data/products/udmPro.js.map +1 -1
  376. package/lib/components/ModelCompareV3/data/products/udmPro.mjs +4 -4
  377. package/lib/components/ModelCompareV3/data/products/udmPro.mjs.map +1 -1
  378. package/lib/components/ModelCompareV3/data/products/udmProMax.js +4 -4
  379. package/lib/components/ModelCompareV3/data/products/udmProMax.js.map +1 -1
  380. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +4 -4
  381. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs.map +1 -1
  382. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +4 -4
  383. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js.map +1 -1
  384. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +4 -4
  385. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs.map +1 -1
  386. package/lib/components/ModelCompareV3/data/products/udr.js +2 -2
  387. package/lib/components/ModelCompareV3/data/products/udr.js.map +1 -1
  388. package/lib/components/ModelCompareV3/data/products/udr.mjs +2 -2
  389. package/lib/components/ModelCompareV3/data/products/udr.mjs.map +1 -1
  390. package/lib/components/ModelCompareV3/data/products/udr7.js +2 -2
  391. package/lib/components/ModelCompareV3/data/products/udr7.js.map +1 -1
  392. package/lib/components/ModelCompareV3/data/products/udr7.mjs +2 -2
  393. package/lib/components/ModelCompareV3/data/products/udr7.mjs.map +1 -1
  394. package/lib/components/ModelCompareV3/data/products/udw.js +3 -3
  395. package/lib/components/ModelCompareV3/data/products/udw.js.map +1 -1
  396. package/lib/components/ModelCompareV3/data/products/udw.mjs +3 -3
  397. package/lib/components/ModelCompareV3/data/products/udw.mjs.map +1 -1
  398. package/lib/components/ModelCompareV3/data/properties/powerMethodPoe.js +1 -1
  399. package/lib/components/ModelCompareV3/data/properties/powerMethodPoe.mjs +1 -1
  400. package/lib/components/ModelCompareV3/data/properties/readerPowerMethod.js +1 -1
  401. package/lib/components/ModelCompareV3/data/properties/readerPowerMethod.mjs +1 -1
  402. package/lib/components/ModelCompareV3/data/properties/redundantRj45Port.js +1 -1
  403. package/lib/components/ModelCompareV3/data/properties/redundantRj45Port.mjs +1 -1
  404. package/lib/components/Pagination/Pagination.js +3 -3
  405. package/lib/components/PriceRangeSlider/PriceRangeSlider.js +16 -16
  406. package/lib/components/ProductCard/ProductCard.js +7 -7
  407. package/lib/components/ProductCardPopup/ProductCardPopup.js +8 -8
  408. package/lib/components/ProductCompare/ProductCompare.js +7 -7
  409. package/lib/components/ProductDetails/ProductDetails.js +5 -5
  410. package/lib/components/ProductGrid/ProductGrid.js +10 -10
  411. package/lib/components/ProductKeyFeatures/ProductKeyFeatures.js +3 -3
  412. package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +1 -1
  413. package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +1 -1
  414. package/lib/components/ProductSectionTabs/ProductSectionTabs.js +2 -2
  415. package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +2 -2
  416. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.d.ts +2 -0
  417. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js +79 -0
  418. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js.map +1 -0
  419. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs +71 -0
  420. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs.map +1 -0
  421. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.stories.d.ts +5 -0
  422. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.d.ts +11 -0
  423. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +86 -0
  424. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +1 -0
  425. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +72 -0
  426. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs.map +1 -0
  427. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.types.d.ts +12 -0
  428. package/lib/components/ProductTechSpecsV2/index.d.ts +1 -0
  429. package/lib/components/ProductTechSpecsV2/index.js +6 -0
  430. package/lib/components/ProductTechSpecsV2/index.js.map +1 -0
  431. package/lib/components/ProductTechSpecsV2/index.mjs +3 -0
  432. package/lib/components/ProductTechSpecsV2/index.mjs.map +1 -0
  433. package/lib/components/ProductWizard/Options/Options.js +3 -3
  434. package/lib/components/ProductWizard/ProductWizard.js +2 -2
  435. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js +5 -5
  436. package/lib/components/ProgressCircle/ProgressCircle.js +4 -4
  437. package/lib/components/QuantityControls/QuantityControls.js +6 -6
  438. package/lib/components/QuantityControls/QuantityControls.js.map +1 -1
  439. package/lib/components/QuantityControls/QuantityControls.mjs +2 -2
  440. package/lib/components/QuantityControls/QuantityControls.mjs.map +1 -1
  441. package/lib/components/QuantityControls/QuantityControls.types.d.ts +1 -1
  442. package/lib/components/QuantityInput/QuantityInput.js +6 -1
  443. package/lib/components/QuantityInput/QuantityInput.js.map +1 -1
  444. package/lib/components/QuantityInput/QuantityInput.mjs +6 -1
  445. package/lib/components/QuantityInput/QuantityInput.mjs.map +1 -1
  446. package/lib/components/RelatedProducts/RelatedProducts.js +5 -5
  447. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +2 -2
  448. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
  449. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +2 -2
  450. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
  451. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js +36 -36
  452. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +12 -12
  453. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +5 -5
  454. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CheckboxSection.js +2 -2
  455. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +4 -4
  456. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/SliderSection.js +3 -3
  457. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +7 -7
  458. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +6 -6
  459. package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.js +9 -9
  460. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.js +10 -10
  461. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +15 -15
  462. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.js +4 -4
  463. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.mjs +2 -2
  464. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/poe.svg.js +1 -1
  465. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/poe.svg.mjs +2 -2
  466. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/port.svg.js +1 -1
  467. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/port.svg.mjs +2 -2
  468. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +6 -6
  469. package/lib/components/ResourceCalculatorV1/translations/en.json.js +1 -1
  470. package/lib/components/ResourceCalculatorV1/translations/en.json.mjs +1 -1
  471. package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.js +5 -5
  472. package/lib/components/ScrollWrapper/ScrollWrapper.d.ts +1 -1
  473. package/lib/components/ScrollWrapper/ScrollWrapper.js +34 -26
  474. package/lib/components/ScrollWrapper/ScrollWrapper.js.map +1 -1
  475. package/lib/components/ScrollWrapper/ScrollWrapper.mjs +16 -8
  476. package/lib/components/ScrollWrapper/ScrollWrapper.mjs.map +1 -1
  477. package/lib/components/ScrollWrapper/ScrollWrapper.types.d.ts +2 -0
  478. package/lib/components/Search/Input/Input.d.ts +1 -1
  479. package/lib/components/Search/Input/Input.js +8 -8
  480. package/lib/components/Search/Input/Input.js.map +1 -1
  481. package/lib/components/Search/Input/Input.mjs +4 -4
  482. package/lib/components/Search/Input/Input.mjs.map +1 -1
  483. package/lib/components/Search/Input/Input.styles.js +0 -1
  484. package/lib/components/Search/Input/Input.styles.js.map +1 -1
  485. package/lib/components/Search/Input/Input.styles.mjs +0 -1
  486. package/lib/components/Search/Input/Input.styles.mjs.map +1 -1
  487. package/lib/components/Search/Input/Input.types.d.ts +3 -2
  488. package/lib/components/Search/Modal/Modal.js +3 -3
  489. package/lib/components/StorageSliders/Slider/Slider.js +3 -3
  490. package/lib/components/StorageSliders/StorageSliders.context.js +20 -20
  491. package/lib/components/StorageSliders/StorageSliders.js +4 -4
  492. package/lib/components/Tooltip/Tooltip.js +5 -5
  493. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js +7 -7
  494. package/lib/components/VariantSelector/Variant/Variant.js +40 -40
  495. package/lib/components/VariantSelector/VariantSelector.js +16 -16
  496. package/lib/components/VideoPlayerNew/VideoPlayer.js +19 -19
  497. package/lib/components/index.d.ts +1 -0
  498. package/lib/components/index.js +2 -0
  499. package/lib/components/index.js.map +1 -1
  500. package/lib/components/index.mjs +2 -0
  501. package/lib/components/index.mjs.map +1 -1
  502. package/lib/constants/icons/header/arrow.svg.js +27 -0
  503. package/lib/constants/icons/header/arrow.svg.js.map +1 -0
  504. package/lib/constants/icons/header/arrow.svg.mjs +3 -0
  505. package/lib/constants/icons/header/arrow.svg.mjs.map +1 -0
  506. package/lib/constants/icons/header/index.d.ts +1 -0
  507. package/lib/constants/icons/header/index.js +9 -0
  508. package/lib/constants/icons/header/index.js.map +1 -1
  509. package/lib/constants/icons/header/index.mjs +2 -0
  510. package/lib/constants/icons/header/index.mjs.map +1 -1
  511. package/lib/constants/proStoreCategories/mapping/filters.d.ts +17 -0
  512. package/lib/constants/proStoreCategories/mapping/filters.js +17 -0
  513. package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
  514. package/lib/constants/proStoreCategories/mapping/filters.mjs +17 -0
  515. package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
  516. package/lib/constants/proStoreCategories/mapping/index.d.ts +5 -2
  517. package/lib/constants/proStoreCategories/mapping/index.js +55 -51
  518. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  519. package/lib/constants/proStoreCategories/mapping/index.mjs +54 -49
  520. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  521. package/lib/constants/proStoreCategories/mapping/mapping.d.ts +5 -0
  522. package/lib/constants/proStoreCategories/mapping/redirects.js +18 -3
  523. package/lib/constants/proStoreCategories/mapping/redirects.js.map +1 -1
  524. package/lib/constants/proStoreCategories/mapping/redirects.mjs +18 -3
  525. package/lib/constants/proStoreCategories/mapping/redirects.mjs.map +1 -1
  526. package/lib/constants/proStoreCategories/mapping/unifi.d.ts +10 -9
  527. package/lib/constants/proStoreCategories/mapping/unifi.js +10 -9
  528. package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
  529. package/lib/constants/proStoreCategories/mapping/unifi.mjs +10 -9
  530. package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
  531. package/lib/constants/proStoreCategories/translations/ar.json.js +8 -1
  532. package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
  533. package/lib/constants/proStoreCategories/translations/ar.json.mjs +8 -2
  534. package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
  535. package/lib/constants/proStoreCategories/translations/de.json.js +7 -0
  536. package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
  537. package/lib/constants/proStoreCategories/translations/de.json.mjs +7 -1
  538. package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
  539. package/lib/constants/proStoreCategories/translations/el.json.js +8 -1
  540. package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
  541. package/lib/constants/proStoreCategories/translations/el.json.mjs +8 -2
  542. package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
  543. package/lib/constants/proStoreCategories/translations/en.json.js +7 -2
  544. package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
  545. package/lib/constants/proStoreCategories/translations/en.json.mjs +7 -3
  546. package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
  547. package/lib/constants/proStoreCategories/translations/es.json.js +8 -1
  548. package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
  549. package/lib/constants/proStoreCategories/translations/es.json.mjs +8 -2
  550. package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
  551. package/lib/constants/proStoreCategories/translations/fr.json.js +8 -1
  552. package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
  553. package/lib/constants/proStoreCategories/translations/fr.json.mjs +8 -2
  554. package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
  555. package/lib/constants/proStoreCategories/translations/it.json.js +8 -1
  556. package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
  557. package/lib/constants/proStoreCategories/translations/it.json.mjs +8 -2
  558. package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
  559. package/lib/constants/proStoreCategories/translations/ja.json.js +8 -1
  560. package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
  561. package/lib/constants/proStoreCategories/translations/ja.json.mjs +8 -2
  562. package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
  563. package/lib/constants/proStoreCategories/translations/pt-BR.json.js +7 -0
  564. package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
  565. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +7 -1
  566. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
  567. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +8 -1
  568. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
  569. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +8 -2
  570. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
  571. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +8 -1
  572. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
  573. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +8 -2
  574. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
  575. package/lib/constants/proStoreFilters/mapping.d.ts +56 -4
  576. package/lib/constants/proStoreFilters/mapping.js +141 -11
  577. package/lib/constants/proStoreFilters/mapping.js.map +1 -1
  578. package/lib/constants/proStoreFilters/mapping.mjs +141 -11
  579. package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
  580. package/lib/constants/theme.js +4 -0
  581. package/lib/constants/theme.js.map +1 -1
  582. package/lib/constants/theme.mjs +4 -0
  583. package/lib/constants/theme.mjs.map +1 -1
  584. package/lib/contexts/MenuContext/context.js +34 -34
  585. package/lib/contexts/MenuContext/context.js.map +1 -1
  586. package/lib/contexts/MenuContext/context.mjs +1 -1
  587. package/lib/contexts/MenuContext/context.mjs.map +1 -1
  588. package/lib/contexts/MenuContext/mapping.js.map +1 -1
  589. package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
  590. package/lib/helpers/index.js +1 -0
  591. package/lib/helpers/index.js.map +1 -1
  592. package/lib/helpers/index.mjs +1 -1
  593. package/lib/helpers/proStoreCategories.js +2 -2
  594. package/lib/helpers/ux.d.ts +8 -0
  595. package/lib/helpers/ux.js +15 -0
  596. package/lib/helpers/ux.js.map +1 -1
  597. package/lib/helpers/ux.mjs +15 -1
  598. package/lib/helpers/ux.mjs.map +1 -1
  599. package/lib/hooks/useHasTouch.js +3 -3
  600. package/lib/hooks/useHddRetentionCalculator.js +5 -5
  601. package/lib/hooks/useHorizontalScroll.js +2 -2
  602. package/lib/hooks/useLockBodyScrollCustom.js +3 -3
  603. package/lib/hooks/useScrollToY.js +2 -2
  604. package/lib/hooks/useTestMediaElementVolumeSetter.js +3 -3
  605. package/lib/hooks/useTranslation.js +6 -6
  606. package/lib/utils/nextjs/ssr/registry.js +2 -2
  607. package/package.json +1 -1
  608. package/lib/assets/aggregation.jpg +0 -0
  609. package/lib/assets/icons/menu/icon-globe.svg.js.map +0 -1
  610. package/lib/assets/icons/menu/icon-globe.svg.mjs +0 -3
  611. package/lib/assets/icons/menu/icon-globe.svg.mjs.map +0 -1
  612. package/lib/components/ModelCompareV3/assets/Switching/aggregation.jpg.js.map +0 -1
  613. package/lib/components/ModelCompareV3/assets/Switching/aggregation.jpg.mjs +0 -3
  614. package/lib/components/ModelCompareV3/assets/Switching/aggregation.jpg.mjs.map +0 -1
  615. package/lib/components/ModelCompareV3/data/products/aggregation.js +0 -117
  616. package/lib/components/ModelCompareV3/data/products/aggregation.js.map +0 -1
  617. package/lib/components/ModelCompareV3/data/products/aggregation.mjs +0 -109
  618. package/lib/components/ModelCompareV3/data/products/aggregation.mjs.map +0 -1
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
- var react = require('react');
4
+ var React = require('react');
5
5
  var reactUse = require('react-use');
6
6
  require('../../../../contexts/MenuContext/index.js');
7
7
  require('../../../../contexts/MenuContext/mapping.js');
@@ -66,8 +66,8 @@ const NavigationMicrositeMenu = ({
66
66
  }).then(res => res.default)
67
67
  }
68
68
  });
69
- const wrapRef = react.useRef(null);
70
- const parseMenuItems = react.useCallback(items => {
69
+ const wrapRef = React.useRef(null);
70
+ const parseMenuItems = React.useCallback(items => {
71
71
  return items.map(item => {
72
72
  let url, active;
73
73
  if (typeof item.url === "string") {
@@ -86,39 +86,39 @@ const NavigationMicrositeMenu = ({
86
86
  };
87
87
  });
88
88
  }, [context$1, createSiteUrl, isPathnameActive]);
89
- const menuItems = react.useMemo(() => {
89
+ const menuItems = React.useMemo(() => {
90
90
  return {
91
91
  primary: parseMenuItems(mapping.MICROSITE_NAVIGATION_MAPPING.primary),
92
92
  secondary: parseMenuItems(mapping.MICROSITE_NAVIGATION_MAPPING.secondary)
93
93
  };
94
94
  }, [parseMenuItems]);
95
- const [isClosing, setIsClosing] = react.useState(false);
95
+ const [isClosing, setIsClosing] = React.useState(false);
96
96
  reactUse.useDebounce(() => {
97
97
  if (isClosing) {
98
98
  setIsClosing(false);
99
99
  }
100
100
  }, MicrositeMenu_styles.TRANSITION_DURATION_MS, [isClosing]);
101
- const handleClose = react.useCallback(() => {
101
+ const handleClose = React.useCallback(() => {
102
102
  setIsClosing(true);
103
103
  onClose?.();
104
104
  }, [onClose]);
105
105
  const {
106
106
  y: scrollY
107
107
  } = reactUse.useWindowScroll();
108
- const isInView = react.useMemo(() => {
108
+ const isInView = React.useMemo(() => {
109
109
  if (!visible) {
110
110
  return false;
111
111
  }
112
112
  return scrollY < (stickyHeader ? 0 : Header_styles.HEADER_HEIGHT) + MicrositeMenu_styles.HEADER_NAVIGATION_MICROSITE_MENU_HEIGHT;
113
113
  }, [stickyHeader, scrollY, visible]);
114
- react.useEffect(() => {
114
+ React.useEffect(() => {
115
115
  if (isInView) {
116
116
  handleClose();
117
117
  }
118
118
  }, [handleClose, isInView]);
119
119
  const wrapHover = reactUse.useHoverDirty(wrapRef);
120
120
  const hasTouch = useHasTouch.useHasTouch();
121
- const slideInView = react.useMemo(() => {
121
+ const slideInView = React.useMemo(() => {
122
122
  if (
123
123
  // Menu is closing
124
124
  isClosing ||
@@ -129,7 +129,7 @@ const NavigationMicrositeMenu = ({
129
129
  const hasHover = !hasTouch && wrapHover;
130
130
  return show || hasHover;
131
131
  }, [hasTouch, isClosing, isInView, show, wrapHover]);
132
- const renderMenuItems = react.useCallback(parsedMenuItems => {
132
+ const renderMenuItems = React.useCallback(parsedMenuItems => {
133
133
  return parsedMenuItems.map(item => /* @__PURE__ */jsxRuntime.jsx(MicrositeMenu_styles.ListItem, {
134
134
  children: /* @__PURE__ */jsxRuntime.jsx(MicrositeMenu_styles.Button, {
135
135
  anchor: true,
@@ -146,8 +146,8 @@ const NavigationMicrositeMenu = ({
146
146
  })
147
147
  }, item.id));
148
148
  }, [formatMessage, handleClose, motif, onMenuItemLinkClick]);
149
- const [noTransition, setNoTransition] = react.useState(false);
150
- react.useEffect(() => {
149
+ const [noTransition, setNoTransition] = React.useState(false);
150
+ React.useEffect(() => {
151
151
  setNoTransition(true);
152
152
  }, [
153
153
  // HACK: needed isInView to retrigger the effect
@@ -12,7 +12,7 @@ export declare const Wrap: import("styled-components").StyledComponent<"div", im
12
12
  slideInView?: boolean;
13
13
  noTransition?: boolean;
14
14
  }, never>;
15
- export declare const Container: import("styled-components").StyledComponent<import("react").NamedExoticComponent<import("../../../Container/Container.types").ContainerProps>, import("styled-components").DefaultTheme, {}, never>;
15
+ export declare const Container: import("styled-components").StyledComponent<import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("../../../Container/Container.types").ContainerProps & import("react").RefAttributes<HTMLDivElement>>>, import("styled-components").DefaultTheme, {}, never>;
16
16
  export declare const PrimaryList: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
17
17
  export declare const Button: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../../Button/Button.types").ButtonProps & {
18
18
  children?: import("react").ReactNode;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
- var react = require('react');
4
+ var React = require('react');
5
5
  require('../../../../constants/icons/index.js');
6
6
  require('../../../../contexts/MenuContext/index.js');
7
7
  require('../../../../contexts/MenuContext/mapping.js');
@@ -80,11 +80,11 @@ const NavigationMobileMenu = function NavigationMobileMenu2({
80
80
  }
81
81
  });
82
82
  const motif = "dark";
83
- const [expandedSectionItemId, setExpandedSectionItemId] = react.useState(null);
84
- const toggleExpandedSectionItemId = react.useCallback(itemId => {
83
+ const [expandedSectionItemId, setExpandedSectionItemId] = React.useState(null);
84
+ const toggleExpandedSectionItemId = React.useCallback(itemId => {
85
85
  setExpandedSectionItemId(expandedSectionItemId === itemId ? null : itemId);
86
86
  }, [expandedSectionItemId]);
87
- const micrositeSection = react.useMemo(() => {
87
+ const micrositeSection = React.useMemo(() => {
88
88
  if (!hasMicrositeMenu) {
89
89
  return [];
90
90
  }
@@ -101,7 +101,7 @@ const NavigationMobileMenu = function NavigationMobileMenu2({
101
101
  })
102
102
  }];
103
103
  }, [createSiteUrl, formatMessage, hasMicrositeMenu]);
104
- const micrositeLinks = react.useMemo(() => {
104
+ const micrositeLinks = React.useMemo(() => {
105
105
  if (!hasMicrositeMenu) {
106
106
  return [];
107
107
  }
@@ -116,7 +116,7 @@ const NavigationMobileMenu = function NavigationMobileMenu2({
116
116
  }))
117
117
  }];
118
118
  }, [createSiteUrl, hasMicrositeMenu, translations.links]);
119
- const sections = react.useMemo(() => {
119
+ const sections = React.useMemo(() => {
120
120
  return [...micrositeSection, {
121
121
  id: "main",
122
122
  items: [...utils.filterOutUnrenderableItems(activeNavigationSection.items).map(item => ({
@@ -4,7 +4,7 @@ export declare const SECTION_SEARCH_RESULTS_ITEM_HEIGHT = 76;
4
4
  export declare const SECTION_ITEM_IMAGE_SIZE = 56;
5
5
  export declare const SECTION_ITEM_IMAGE_MARGIN = 10;
6
6
  export declare const IOS_GHOST_MENU_HEIGHT = 69;
7
- export declare const Container: import("styled-components").StyledComponent<import("react").NamedExoticComponent<import("../../../Container/Container.types").ContainerProps>, import("styled-components").DefaultTheme, {}, never>;
7
+ export declare const Container: import("styled-components").StyledComponent<import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("../../../Container/Container.types").ContainerProps & import("react").RefAttributes<HTMLDivElement>>>, import("styled-components").DefaultTheme, {}, never>;
8
8
  export declare const SearchTextDot: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
9
9
  export declare const Wrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
10
10
  motif: Motif;
@@ -1,2 +1,2 @@
1
1
  import type { NavigationProMobileMenuProps } from "./ProMobileMenu.types";
2
- export declare const NavigationProMobileMenu: ({ translations, onClose, currentCountryName, handleStorePickerClick, handleOrderHistoryClick, handlePurchaseHistoryClick, handleProductLineChange, productLineValue, productLineOptions, extraSectionItems, }: NavigationProMobileMenuProps) => JSX.Element;
2
+ export declare const NavigationProMobileMenu: ({ translations, onClose, logo, handleStorePickerClick, handleOrderHistoryClick, handlePurchaseHistoryClick, handleProductLineChange, productLineValue, productLineOptions, categories, hideExtraSection, }: NavigationProMobileMenuProps) => JSX.Element;
@@ -1,19 +1,22 @@
1
1
  'use strict';
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
- var react = require('react');
5
- require('../../../../assets/icons/menu/icon-globe.svg.js');
4
+ var React = require('react');
6
5
  require('../../../../assets/icons/menu/icon-history.svg.js');
6
+ require('../../../../assets/icons/menu/icon-location-pin.svg.js');
7
7
  require('../../../../constants/icons/index.js');
8
8
  require('../../../../contexts/MenuContext/index.js');
9
+ var asset = require('../../../../utils/asset.js');
10
+ var typeGuards = require('../../../../utils/typeGuards.js');
9
11
  var useFooterContent = require('../../../Footer/hooks/useFooterContent.js');
10
12
  require('../../../StyleableSvgImage/index.js');
11
13
  var mapping = require('../../LinksModal/mapping.js');
14
+ var ProHeader_styles = require('../../ProHeader/ProHeader.styles.js');
12
15
  var MobileMenu_styles = require('../MobileMenu/MobileMenu.styles.js');
13
16
  var ProMobileMenu_styles = require('./ProMobileMenu.styles.js');
14
17
  var context = require('../../../../contexts/MenuContext/context.js');
15
18
  var HistoryIcon = require("../../../../assets/icon-history.svg");
16
- var GlobeIcon = require("../../../../assets/globe.svg");
19
+ var LocationPinIcon = require("../../../../assets/icon-location-pin.svg");
17
20
  var StyleableSvgImage = require('../../../StyleableSvgImage/StyleableSvgImage.js');
18
21
  var _externalAssets_BAXELvSy = require("../../../../assets/collapseArrow.svg");
19
22
  function _interopDefault(e) {
@@ -22,13 +25,14 @@ function _interopDefault(e) {
22
25
  };
23
26
  }
24
27
  var HistoryIcon__default = /*#__PURE__*/_interopDefault(HistoryIcon);
25
- var GlobeIcon__default = /*#__PURE__*/_interopDefault(GlobeIcon);
28
+ var LocationPinIcon__default = /*#__PURE__*/_interopDefault(LocationPinIcon);
26
29
  var _externalAssets_BAXELvSy__default = /*#__PURE__*/_interopDefault(_externalAssets_BAXELvSy);
27
30
  "use strict";
31
+ const motif = "light";
28
32
  const NavigationProMobileMenu = function NavigationProMobileMenu2({
29
33
  translations,
30
34
  onClose,
31
- currentCountryName,
35
+ logo,
32
36
  handleStorePickerClick,
33
37
  // handleEarlyAccessClick,
34
38
  handleOrderHistoryClick,
@@ -36,9 +40,9 @@ const NavigationProMobileMenu = function NavigationProMobileMenu2({
36
40
  handleProductLineChange,
37
41
  productLineValue,
38
42
  productLineOptions,
39
- extraSectionItems
43
+ categories,
44
+ hideExtraSection
40
45
  }) {
41
- const motif = "light";
42
46
  const {
43
47
  footerContent,
44
48
  socialContent
@@ -46,117 +50,111 @@ const NavigationProMobileMenu = function NavigationProMobileMenu2({
46
50
  const {
47
51
  context: context$1
48
52
  } = context.useMenu();
49
- const [expandedSectionItemId, setExpandedSectionItemId] = react.useState(null);
50
- const toggleExpandedSectionItemId = react.useCallback(itemId => {
53
+ const [expandedSectionItemId, setExpandedSectionItemId] = React.useState(null);
54
+ const toggleExpandedSectionItemId = React.useCallback(itemId => {
51
55
  setExpandedSectionItemId(expandedSectionItemId === itemId ? null : itemId);
52
56
  }, [expandedSectionItemId]);
53
- const sections = react.useMemo(() => {
54
- const _sections = [{
57
+ const sections = React.useMemo(() => {
58
+ const extraSectionItems = [{
59
+ id: "support",
60
+ label: translations.support,
61
+ url: null,
62
+ subItems: mapping.getSupportLinkMapping(context$1).map(item => ({
63
+ id: item.id,
64
+ label: item.name,
65
+ url: item.url
66
+ }))
67
+ }, {
68
+ id: "social",
69
+ label: translations.social,
70
+ url: null,
71
+ subItems: socialContent.items.map(item => ({
72
+ id: item.id,
73
+ label: item.label,
74
+ url: item.src
75
+ }))
76
+ }, ...[{
77
+ key: "company",
78
+ label: translations.company
79
+ }, {
80
+ key: "training",
81
+ label: translations.training
82
+ }, {
83
+ key: "tools",
84
+ label: translations.tools
85
+ }].map(({
86
+ key,
87
+ label
88
+ }) => ({
89
+ id: key,
90
+ label,
91
+ url: null,
92
+ subItems: footerContent[key].items.map(item => ({
93
+ id: item.id,
94
+ label: item.label,
95
+ url: item.src
96
+ }))
97
+ }))];
98
+ return [{
55
99
  id: "store-link-stuff",
56
- items: [...(handleOrderHistoryClick ? [{
100
+ items: [handleOrderHistoryClick ? {
57
101
  id: "order-history",
58
102
  label: translations.orderHistory,
59
103
  icon: {
60
- src: typeof HistoryIcon__default["default"] === "string" ? HistoryIcon__default["default"] : HistoryIcon__default["default"].src,
104
+ src: asset.imageSrc(HistoryIcon__default["default"]),
61
105
  width: 16,
62
106
  height: 16
63
107
  },
64
- url: () => {
65
- handleOrderHistoryClick?.();
66
- },
108
+ url: null,
109
+ onClick: handleOrderHistoryClick,
67
110
  subItems: []
68
- }] : []), ...(handlePurchaseHistoryClick ? [{
111
+ } : null, handlePurchaseHistoryClick ? {
69
112
  id: "purchased-product-history",
70
113
  label: translations.purchasedProductHistory,
71
114
  icon: {
72
- src: typeof HistoryIcon__default["default"] === "string" ? HistoryIcon__default["default"] : HistoryIcon__default["default"].src,
115
+ src: asset.imageSrc(HistoryIcon__default["default"]),
73
116
  width: 16,
74
117
  height: 16
75
118
  },
76
- url: () => {
77
- handlePurchaseHistoryClick?.();
78
- },
119
+ url: null,
120
+ onClick: handlePurchaseHistoryClick,
79
121
  subItems: []
80
- }] : [])
81
- /**
82
- * NOTE: Disabled per Kaspars request (09.06.)
83
- * @see https://ui.slack.com/archives/C050CTJSE80/p1686331781297389
84
- */
85
- // {
86
- // id: "early-access",
87
- // label: translations.earlyAccess,
88
- // icon: {
89
- // src: typeof EAIcon === "string" ? EAIcon : EAIcon.src,
90
- // width: 20,
91
- // height: 16,
92
- // },
93
- // url: () => {
94
- // handleEarlyAccessClick?.();
95
- // },
96
- // subItems: [],
97
- // },
98
- ]
122
+ } : null].filter(typeGuards.isNonNullish)
99
123
  }, {
100
- id: "extra",
101
- items: extraSectionItems ?? [{
102
- id: "support",
103
- label: translations.support,
104
- url: null,
105
- subItems: mapping.getSupportLinkMapping(context$1).map(item => ({
106
- id: item.id,
107
- label: item.name,
108
- url: item.url
109
- }))
110
- }, {
111
- id: "social",
112
- label: translations.social,
113
- url: null,
114
- subItems: socialContent.items.map(item => ({
115
- id: item.id,
116
- label: item.label,
117
- url: item.src
118
- }))
119
- }, ...[{
120
- key: "company",
121
- label: translations.company
122
- }, {
123
- key: "training",
124
- label: translations.training
125
- }, {
126
- key: "tools",
127
- label: translations.tools
128
- }].map(({
129
- key,
130
- label
131
- }) => ({
132
- id: key,
133
- label,
134
- url: null,
135
- subItems: footerContent[key].items.map(item => ({
136
- id: item.id,
137
- label: item.label,
138
- url: item.src
139
- }))
140
- }))]
141
- }, currentCountryName ? {
124
+ id: "categories",
125
+ items: categories.items.map(item => ({
126
+ ...item,
127
+ // Prevent top level items to be links - the whole item acts as a dropdown
128
+ // Unless it has no sub-items
129
+ url: item.subItems.length ? null : item.url
130
+ }))
131
+ }, logo?.currentStore ? {
142
132
  id: "country-selector",
143
133
  items: [{
144
134
  id: "current-country-name",
145
- label: currentCountryName,
135
+ label: translations.region,
136
+ value: /* @__PURE__ */jsxRuntime.jsxs(ProHeader_styles.CurrentStoreWrap, {
137
+ onClick: handleStorePickerClick,
138
+ $inheritFonts: true,
139
+ children: [/* @__PURE__ */jsxRuntime.jsx(ProHeader_styles.CurrentStoreFlag, {
140
+ children: logo.currentStore.flag
141
+ }), logo.currentStore.name]
142
+ }),
146
143
  icon: {
147
- src: typeof GlobeIcon__default["default"] === "string" ? GlobeIcon__default["default"] : GlobeIcon__default["default"].src,
144
+ src: asset.imageSrc(LocationPinIcon__default["default"]),
148
145
  width: 17,
149
146
  height: 17
150
147
  },
151
- url: () => {
152
- handleStorePickerClick?.();
153
- },
148
+ url: null,
149
+ onClick: handleStorePickerClick,
154
150
  subItems: []
155
151
  }]
156
- } : null];
157
- return _sections.filter(el => !!el);
158
- }, [context$1, currentCountryName, extraSectionItems, footerContent, handleOrderHistoryClick, handlePurchaseHistoryClick, handleStorePickerClick, socialContent.items, translations.company, translations.orderHistory, translations.purchasedProductHistory, translations.social, translations.support, translations.tools, translations.training]);
159
- const renderSectionItemIcon = react.useCallback(item => {
152
+ } : null, ...(!hideExtraSection ? extraSectionItems.map(item => ({
153
+ id: `extra-${item.id}`,
154
+ items: [item]
155
+ })) : [])].filter(typeGuards.isNonNullish);
156
+ }, [translations.support, translations.social, translations.company, translations.training, translations.tools, translations.orderHistory, translations.purchasedProductHistory, translations.region, context$1, socialContent.items, handleOrderHistoryClick, handlePurchaseHistoryClick, categories.items, logo?.currentStore, handleStorePickerClick, hideExtraSection, footerContent]);
157
+ const renderSectionItemIcon = React.useCallback(item => {
160
158
  return item.icon && /* @__PURE__ */jsxRuntime.jsx(ProMobileMenu_styles.SectionItemIcon, {
161
159
  children: /* @__PURE__ */jsxRuntime.jsx(StyleableSvgImage.StyleableSvgImage, {
162
160
  src: item.icon.src,
@@ -165,40 +163,49 @@ const NavigationProMobileMenu = function NavigationProMobileMenu2({
165
163
  })
166
164
  });
167
165
  }, []);
168
- const renderSectionItemButton = react.useCallback(item => {
166
+ const renderSectionItemButton = React.useCallback(item => {
169
167
  const IconNode = "subItems" in item && renderSectionItemIcon(item);
170
168
  const NewLabelNode = "isNew" in item && item.isNew ? /* @__PURE__ */jsxRuntime.jsx(MobileMenu_styles.NewLabel, {
171
169
  children: translations.new
172
170
  }) : null;
171
+ const ValueNode = !!item.value && /* @__PURE__ */jsxRuntime.jsx("div", {
172
+ children: item.value
173
+ });
173
174
  const target = "targetBlank" in item && item.targetBlank ? "_blank" : void 0;
174
175
  const url = item.url;
175
176
  if (!url) {
176
- return /* @__PURE__ */jsxRuntime.jsxs(MobileMenu_styles.SectionItemButton, {
177
- motif,
178
- onClick: () => toggleExpandedSectionItemId(item.id),
179
- children: [IconNode, item.label]
180
- });
181
- }
182
- if (typeof url === "string") {
183
- return /* @__PURE__ */jsxRuntime.jsxs(MobileMenu_styles.SectionItemButton, {
177
+ return /* @__PURE__ */jsxRuntime.jsxs(ProMobileMenu_styles.ProSectionItemButton, {
184
178
  motif,
185
- as: "a",
186
- href: url,
187
- onClick: onClose,
188
- target,
189
- children: [IconNode, item.label, NewLabelNode]
179
+ onClick: e => {
180
+ if ("subItems" in item && item.subItems.length) {
181
+ toggleExpandedSectionItemId(item.id);
182
+ } else {
183
+ item.onClick?.(e, url);
184
+ onClose();
185
+ }
186
+ },
187
+ children: [/* @__PURE__ */jsxRuntime.jsxs(ProMobileMenu_styles.ButtonContent, {
188
+ children: [IconNode, item.label, NewLabelNode]
189
+ }), ValueNode]
190
190
  });
191
191
  }
192
192
  return /* @__PURE__ */jsxRuntime.jsxs(MobileMenu_styles.SectionItemButton, {
193
193
  motif,
194
- onClick: () => {
195
- url();
194
+ onClick: e => {
195
+ item.onClick?.(e, url);
196
196
  onClose();
197
197
  },
198
- children: [IconNode, item.label]
198
+ ...(typeof url === "string" ? {
199
+ as: "a",
200
+ href: url,
201
+ target
202
+ } : {}),
203
+ children: [/* @__PURE__ */jsxRuntime.jsxs(ProMobileMenu_styles.ButtonContent, {
204
+ children: [IconNode, item.label, NewLabelNode]
205
+ }), ValueNode]
199
206
  });
200
207
  }, [onClose, renderSectionItemIcon, toggleExpandedSectionItemId, translations.new]);
201
- return /* @__PURE__ */jsxRuntime.jsx(MobileMenu_styles.Wrap, {
208
+ return /* @__PURE__ */jsxRuntime.jsx(ProMobileMenu_styles.Wrap, {
202
209
  motif,
203
210
  children: /* @__PURE__ */jsxRuntime.jsx(MobileMenu_styles.Container, {
204
211
  size: "mobile",
@@ -1 +1 @@
1
- {"version":3,"file":"ProMobileMenu.js","sources":["../../../../../src/components/Header/Navigation/ProMobileMenu/ProMobileMenu.tsx"],"sourcesContent":["import type { Motif } from \"@ubnt/ui-components/utils\";\nimport { useCallback, useMemo, useState } from \"react\";\n\n// import EAIcon from \"../../../../assets/icons/menu/icon-ea.svg\";\nimport GlobeIcon from \"../../../../assets/icons/menu/icon-globe.svg\";\nimport HistoryIcon from \"../../../../assets/icons/menu/icon-history.svg\";\nimport * as icons from \"../../../../constants/icons\";\nimport { useMenu } from \"../../../../contexts/MenuContext\";\nimport { useFooterContent } from \"../../../Footer/hooks/useFooterContent\";\nimport { StyleableSvgImage } from \"../../../StyleableSvgImage\";\nimport { getSupportLinkMapping } from \"../../LinksModal/mapping\";\nimport * as S from \"../MobileMenu/MobileMenu.styles\";\nimport * as S2 from \"./ProMobileMenu.styles\";\nimport type {\n NavigationProMobileMenuProps,\n ProMobileMenuSection,\n ProMobileMenuSectionItem,\n ProMobileMenuSectionSubItem,\n} from \"./ProMobileMenu.types\";\n\nexport const NavigationProMobileMenu = function NavigationProMobileMenu({\n translations,\n onClose,\n currentCountryName,\n handleStorePickerClick,\n // handleEarlyAccessClick,\n handleOrderHistoryClick,\n handlePurchaseHistoryClick,\n handleProductLineChange,\n productLineValue,\n productLineOptions,\n extraSectionItems,\n}: NavigationProMobileMenuProps) {\n const motif: Motif = \"light\";\n\n const { footerContent, socialContent } = useFooterContent();\n const { context } = useMenu();\n\n // #############################################################################\n // Section toggling\n // #############################################################################\n const [expandedSectionItemId, setExpandedSectionItemId] = useState<\n string | null\n >(null);\n\n const toggleExpandedSectionItemId = useCallback(\n (itemId: string) => {\n setExpandedSectionItemId(\n expandedSectionItemId === itemId ? null : itemId,\n );\n },\n [expandedSectionItemId],\n );\n\n // #############################################################################\n // Menu sections\n // #############################################################################\n const sections = useMemo((): ProMobileMenuSection[] => {\n const _sections: Array<ProMobileMenuSection | null> = [\n {\n id: \"store-link-stuff\",\n items: [\n ...(handleOrderHistoryClick\n ? [\n {\n id: \"order-history\",\n label: translations.orderHistory,\n icon: {\n src:\n typeof HistoryIcon === \"string\"\n ? HistoryIcon\n : HistoryIcon.src,\n width: 16,\n height: 16,\n },\n url: () => {\n handleOrderHistoryClick?.();\n },\n subItems: [],\n },\n ]\n : []),\n ...(handlePurchaseHistoryClick\n ? [\n {\n id: \"purchased-product-history\",\n label: translations.purchasedProductHistory,\n icon: {\n src:\n typeof HistoryIcon === \"string\"\n ? HistoryIcon\n : HistoryIcon.src,\n width: 16,\n height: 16,\n },\n url: () => {\n handlePurchaseHistoryClick?.();\n },\n subItems: [],\n },\n ]\n : []),\n /**\n * NOTE: Disabled per Kaspars request (09.06.)\n * @see https://ui.slack.com/archives/C050CTJSE80/p1686331781297389\n */\n // {\n // id: \"early-access\",\n // label: translations.earlyAccess,\n // icon: {\n // src: typeof EAIcon === \"string\" ? EAIcon : EAIcon.src,\n // width: 20,\n // height: 16,\n // },\n // url: () => {\n // handleEarlyAccessClick?.();\n // },\n // subItems: [],\n // },\n ],\n },\n {\n id: \"extra\",\n items: extraSectionItems ?? [\n {\n id: \"support\",\n label: translations.support,\n url: null,\n subItems: getSupportLinkMapping(context).map((item) => ({\n id: item.id,\n label: item.name,\n url: item.url,\n })),\n },\n {\n id: \"social\",\n label: translations.social,\n url: null,\n subItems: socialContent.items.map((item) => ({\n id: item.id,\n label: item.label,\n url: item.src,\n })),\n },\n ...(\n [\n { key: \"company\", label: translations.company },\n { key: \"training\", label: translations.training },\n { key: \"tools\", label: translations.tools },\n ] as const\n ).map(({ key, label }) => ({\n id: key,\n label,\n url: null,\n subItems: footerContent[key].items.map((item) => ({\n id: item.id,\n label: item.label,\n url: item.src,\n })),\n })),\n ],\n },\n currentCountryName\n ? {\n id: \"country-selector\",\n items: [\n {\n id: \"current-country-name\",\n label: currentCountryName,\n icon: {\n src:\n typeof GlobeIcon === \"string\" ? GlobeIcon : GlobeIcon.src,\n width: 17,\n height: 17,\n },\n url: () => {\n handleStorePickerClick?.();\n },\n subItems: [],\n },\n ],\n }\n : null,\n ];\n\n return _sections.filter((el): el is ProMobileMenuSection => !!el);\n }, [\n context,\n currentCountryName,\n extraSectionItems,\n footerContent,\n handleOrderHistoryClick,\n handlePurchaseHistoryClick,\n handleStorePickerClick,\n socialContent.items,\n translations.company,\n translations.orderHistory,\n translations.purchasedProductHistory,\n translations.social,\n translations.support,\n translations.tools,\n translations.training,\n ]);\n\n // #############################################################################\n // Render helpers\n // #############################################################################\n const renderSectionItemIcon = useCallback(\n (item: ProMobileMenuSection[\"items\"][number]): React.ReactNode => {\n return (\n item.icon && (\n <S2.SectionItemIcon>\n <StyleableSvgImage\n src={item.icon.src}\n width={item.icon.width}\n height={item.icon.height}\n />\n </S2.SectionItemIcon>\n )\n );\n },\n [],\n );\n\n const renderSectionItemButton = useCallback(\n (\n item: ProMobileMenuSectionItem | ProMobileMenuSectionSubItem,\n ): React.ReactNode => {\n const IconNode = \"subItems\" in item && renderSectionItemIcon(item);\n const NewLabelNode =\n \"isNew\" in item && item.isNew ? (\n <S.NewLabel>{translations.new}</S.NewLabel>\n ) : null;\n const target =\n \"targetBlank\" in item && item.targetBlank ? \"_blank\" : undefined;\n const url = item.url;\n\n if (!url) {\n return (\n <S.SectionItemButton\n motif={motif}\n onClick={() => toggleExpandedSectionItemId(item.id)}\n >\n {IconNode}\n {item.label}\n </S.SectionItemButton>\n );\n }\n\n if (typeof url === \"string\") {\n return (\n <S.SectionItemButton\n motif={motif}\n as=\"a\"\n href={url}\n onClick={onClose}\n target={target}\n >\n {IconNode}\n {item.label}\n {NewLabelNode}\n </S.SectionItemButton>\n );\n }\n\n return (\n <S.SectionItemButton\n motif={motif}\n onClick={() => {\n url();\n onClose();\n }}\n >\n {IconNode}\n {item.label}\n </S.SectionItemButton>\n );\n },\n [\n onClose,\n renderSectionItemIcon,\n toggleExpandedSectionItemId,\n translations.new,\n ],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.Wrap motif={motif}>\n <S.Container size=\"mobile\" noVerticalMargin>\n <S.InnerWrap>\n {/* Product line */}\n {!!productLineOptions?.length && (\n <S2.ButtonGroup>\n {productLineOptions.map((option) => (\n <S2.CustomButton\n full\n key={option.value}\n variant=\"gray\"\n $active={option.value === productLineValue}\n onClick={() => {\n handleProductLineChange?.(option.value);\n onClose();\n }}\n >\n {option.label}\n </S2.CustomButton>\n ))}\n </S2.ButtonGroup>\n )}\n\n {/* Sections */}\n {sections.map((section) => (\n <S.Section motif={motif} key={section.id}>\n {section.items.map((item) => (\n <S.SectionItemsGroup\n motif={motif}\n key={item.id}\n $active={item.id === expandedSectionItemId}\n >\n <S.SectionItem motif={motif}>\n {renderSectionItemButton(item)}\n\n {item.subItems.length > 0 && (\n <S.SectionItemArrowButton\n motif={motif}\n onClick={() => toggleExpandedSectionItemId(item.id)}\n >\n <S.ButtonIcon>\n <StyleableSvgImage\n src={icons.generic.collapseArrow}\n width={13}\n height={8}\n />\n </S.ButtonIcon>\n </S.SectionItemArrowButton>\n )}\n </S.SectionItem>\n\n {item.id === expandedSectionItemId &&\n item.subItems.length > 0 &&\n item.subItems.map((subItem) => (\n <S.SectionItem key={subItem.id} motif={motif} $secondary>\n {renderSectionItemButton(subItem)}\n </S.SectionItem>\n ))}\n </S.SectionItemsGroup>\n ))}\n </S.Section>\n ))}\n </S.InnerWrap>\n </S.Container>\n </S.Wrap>\n );\n};\n"],"names":["NavigationProMobileMenu","NavigationProMobileMenu2","translations","onClose","currentCountryName","handleStorePickerClick","handleOrderHistoryClick","handlePurchaseHistoryClick","handleProductLineChange","productLineValue","productLineOptions","extraSectionItems","motif","footerContent","socialContent","useFooterContent","context","useMenu","expandedSectionItemId","setExpandedSectionItemId","useState","toggleExpandedSectionItemId","useCallback","itemId","sections","useMemo","_sections","id","items","label","orderHistory","icon","src","HistoryIcon","width","height","url","subItems","purchasedProductHistory","support","getSupportLinkMapping","map","item","name","social","key","company","training","tools","GlobeIcon","filter","el","renderSectionItemIcon","jsx","S2.SectionItemIcon","children","StyleableSvgImage","renderSectionItemButton","IconNode","NewLabelNode","isNew","S.NewLabel","NewLabel","new","target","targetBlank","jsxs","S.SectionItemButton","SectionItemButton","onClick","as","href","S.Wrap","S.Container","size","noVerticalMargin","S.InnerWrap","length","S2.ButtonGroup","option","S2.CustomButton","CustomButton","full","variant","$active","value","section","S.Section","S.SectionItemsGroup","SectionItemsGroup","S.SectionItem","SectionItem","S.SectionItemArrowButton","SectionItemArrowButton","S.ButtonIcon","icons.generic.collapseArrow","subItem","$secondary"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBa,MAAAA,uBAAA,GAA0B,SAASA,wBAAwBC,CAAA;EACtEC,YAAA;EACAC,OAAA;EACAC,kBAAA;EACAC,sBAAA;EAAA;EAEAC,uBAAA;EACAC,0BAAA;EACAC,uBAAA;EACAC,gBAAA;EACAC,kBAAA;EACAC;AACF,CAAiC,EAAA;EAC/B,MAAMC,KAAe,GAAA,OAAA;EAErB,MAAM;IAAEC,aAAA;IAAeC;EAAc,CAAA,GAAIC,gBAAiB,CAAAA,gBAAA,CAAA,CAAA;EACpD,MAAA;IAAEC,OAAAA,EAAAA;GAAQ,GAAIC,OAAAA,CAAAA,OAAQ,EAAA;EAK5B,MAAM,CAACC,qBAAA,EAAuBC,wBAAwB,CAAA,GAAIC,eAExD,IAAI,CAAA;EAEN,MAAMC,2BAA8B,GAAAC,KAAA,CAAAA,WAAA,CACjCC,MAAmB,IAAA;IAClBJ,wBAAA,CACED,qBAAA,KAA0BK,SAAS,IAAO,GAAAA,MAAA,CAC5C;EACF,CAAA,EACA,CAACL,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AA,CAAwBf,IAAI,CAAA,EAE5BA,IAAA,CAAKL,QAAS,CAAAwC,MAAA,GAAS,CACtB,mBAAAxB,UAAA,CAAAA,GAAA,CAACuC,iBAAE,CAAAC,sBAAA,EAAF;gBACCjF,KAAA;gBACAyD,OAAS,EAAAA,CAAA,KAAMhD,2BAA4B,CAAAqB,IAAA,CAAKf,EAAE,CAAA;gBAElD4B,QAAA,iBAAAF,UAAA,CAAAA,GAAA,CAACyC,4BAAE,EAAF;kBACCvC,QAAA,EAAA,eAAAF,UAAA,CAAAA,GAAA,CAACG,iBAAA,CAAAA,iBAAA,EAAA;oBACCxB,GAAA,EAAK+D,iCAAc,CAAA,SAAA,CAAA;oBACnB7D,KAAO,EAAA,EAAA;oBACPC,MAAQ,EAAA;kBAAA,CAAA;iBAEZ;cAAA,CACF,CAAA;aAEJ,CAAA,EAECO,IAAA,CAAKf,EAAO,KAAAT,qBAAA,IACXwB,IAAK,CAAAL,QAAA,CAASwC,SAAS,CACvB,IAAAnC,IAAA,CAAKL,QAAS,CAAAI,GAAA,CAAKuD,OAAA,IAAA,8BAChBN,iBAAAA,CAAAA,WAAE,EAAF;cAA+B9E,KAAA;cAAcqF,UAAU,EAAA,IAAA;cACrD1C,kCAAwByC,OAAO;YAAA,CAAA,EADdA,OAAQ,CAAArE,EAE5B,CACD,CAAA;UAAA,CAAA,EA5BEe,IAAK,CAAAf,EAAA,CA8Bb;QAAA,CAAA,EAlC2B2D,OAAQ,CAAA3D,EAmCtC,CACD,CAAA;OACH;KACF;EACF,CAAA,CAAA;AAEJ,CAAA;"}
1
+ {"version":3,"file":"ProMobileMenu.js","sources":["../../../../../src/components/Header/Navigation/ProMobileMenu/ProMobileMenu.tsx"],"sourcesContent":["import type { Motif } from \"@ubnt/ui-components/utils\";\nimport { useCallback, useMemo, useState } from \"react\";\n\nimport HistoryIcon from \"../../../../assets/icons/menu/icon-history.svg\";\nimport LocationPinIcon from \"../../../../assets/icons/menu/icon-location-pin.svg\";\nimport * as icons from \"../../../../constants/icons\";\nimport { useMenu } from \"../../../../contexts/MenuContext\";\nimport { imageSrc } from \"../../../../utils/asset\";\nimport { isNonNullish } from \"../../../../utils/typeGuards\";\nimport { useFooterContent } from \"../../../Footer/hooks/useFooterContent\";\nimport { StyleableSvgImage } from \"../../../StyleableSvgImage\";\nimport { getSupportLinkMapping } from \"../../LinksModal/mapping\";\nimport {\n CurrentStoreFlag,\n CurrentStoreWrap,\n} from \"../../ProHeader/ProHeader.styles\";\nimport * as S from \"../MobileMenu/MobileMenu.styles\";\nimport * as S2 from \"./ProMobileMenu.styles\";\nimport type {\n NavigationProMobileMenuProps,\n ProMobileMenuSection,\n ProMobileMenuSectionItem,\n ProMobileMenuSectionSubItem,\n} from \"./ProMobileMenu.types\";\n\nconst motif: Motif = \"light\";\n\nexport const NavigationProMobileMenu = function NavigationProMobileMenu({\n translations,\n onClose,\n logo,\n handleStorePickerClick,\n // handleEarlyAccessClick,\n handleOrderHistoryClick,\n handlePurchaseHistoryClick,\n handleProductLineChange,\n productLineValue,\n productLineOptions,\n categories,\n hideExtraSection,\n}: NavigationProMobileMenuProps) {\n const { footerContent, socialContent } = useFooterContent();\n const { context } = useMenu();\n\n // #############################################################################\n // Section toggling\n // #############################################################################\n const [expandedSectionItemId, setExpandedSectionItemId] = useState<\n string | null\n >(null);\n\n const toggleExpandedSectionItemId = useCallback(\n (itemId: string) => {\n setExpandedSectionItemId(\n expandedSectionItemId === itemId ? null : itemId,\n );\n },\n [expandedSectionItemId],\n );\n\n // #############################################################################\n // Menu sections\n // #############################################################################\n const sections = useMemo((): ProMobileMenuSection[] => {\n const extraSectionItems: ProMobileMenuSectionItem[] = [\n {\n id: \"support\",\n label: translations.support,\n url: null,\n subItems: getSupportLinkMapping(context).map((item) => ({\n id: item.id,\n label: item.name,\n url: item.url,\n })),\n },\n {\n id: \"social\",\n label: translations.social,\n url: null,\n subItems: socialContent.items.map((item) => ({\n id: item.id,\n label: item.label,\n url: item.src,\n })),\n },\n ...(\n [\n { key: \"company\", label: translations.company },\n { key: \"training\", label: translations.training },\n { key: \"tools\", label: translations.tools },\n ] as const\n ).map(({ key, label }) => ({\n id: key,\n label,\n url: null,\n subItems: footerContent[key].items.map((item) => ({\n id: item.id,\n label: item.label,\n url: item.src,\n })),\n })),\n ];\n\n return [\n {\n id: \"store-link-stuff\",\n items: [\n handleOrderHistoryClick\n ? ({\n id: \"order-history\",\n label: translations.orderHistory,\n icon: {\n src: imageSrc(HistoryIcon),\n width: 16,\n height: 16,\n },\n url: null,\n onClick: handleOrderHistoryClick,\n subItems: [],\n } satisfies ProMobileMenuSectionItem)\n : null,\n handlePurchaseHistoryClick\n ? ({\n id: \"purchased-product-history\",\n label: translations.purchasedProductHistory,\n icon: {\n src: imageSrc(HistoryIcon),\n width: 16,\n height: 16,\n },\n url: null,\n onClick: handlePurchaseHistoryClick,\n subItems: [],\n } satisfies ProMobileMenuSectionItem)\n : null,\n ].filter(isNonNullish),\n },\n\n {\n id: \"categories\",\n items: categories.items.map((item) => ({\n ...item,\n // Prevent top level items to be links - the whole item acts as a dropdown\n // Unless it has no sub-items\n url: item.subItems.length ? null : item.url,\n })),\n },\n\n logo?.currentStore\n ? {\n id: \"country-selector\",\n items: [\n {\n id: \"current-country-name\",\n label: translations.region,\n value: (\n <CurrentStoreWrap\n onClick={handleStorePickerClick}\n $inheritFonts\n >\n <CurrentStoreFlag>\n {logo.currentStore.flag}\n </CurrentStoreFlag>\n {logo.currentStore.name}\n </CurrentStoreWrap>\n ),\n icon: {\n src: imageSrc(LocationPinIcon),\n width: 17,\n height: 17,\n },\n url: null,\n onClick: handleStorePickerClick,\n subItems: [],\n },\n ],\n }\n : null,\n\n ...(!hideExtraSection\n ? extraSectionItems.map((item) => ({\n id: `extra-${item.id}`,\n items: [item],\n }))\n : []),\n ].filter(isNonNullish);\n }, [\n translations.support,\n translations.social,\n translations.company,\n translations.training,\n translations.tools,\n translations.orderHistory,\n translations.purchasedProductHistory,\n translations.region,\n context,\n socialContent.items,\n handleOrderHistoryClick,\n handlePurchaseHistoryClick,\n categories.items,\n logo?.currentStore,\n handleStorePickerClick,\n hideExtraSection,\n footerContent,\n ]);\n\n // #############################################################################\n // Render helpers\n // #############################################################################\n const renderSectionItemIcon = useCallback(\n (item: ProMobileMenuSection[\"items\"][number]): React.ReactNode => {\n return (\n item.icon && (\n <S2.SectionItemIcon>\n <StyleableSvgImage\n src={item.icon.src}\n width={item.icon.width}\n height={item.icon.height}\n />\n </S2.SectionItemIcon>\n )\n );\n },\n [],\n );\n\n const renderSectionItemButton = useCallback(\n (\n item: ProMobileMenuSectionItem | ProMobileMenuSectionSubItem,\n ): React.ReactNode => {\n const IconNode = \"subItems\" in item && renderSectionItemIcon(item);\n const NewLabelNode =\n \"isNew\" in item && item.isNew ? (\n <S.NewLabel>{translations.new}</S.NewLabel>\n ) : null;\n const ValueNode = !!item.value && <div>{item.value}</div>;\n\n const target =\n \"targetBlank\" in item && item.targetBlank ? \"_blank\" : undefined;\n const url = item.url;\n\n if (!url) {\n return (\n <S2.ProSectionItemButton\n motif={motif}\n onClick={(e) => {\n if (\"subItems\" in item && item.subItems.length) {\n toggleExpandedSectionItemId(item.id);\n } else {\n // On click callback only when not as a dropdown trigger\n item.onClick?.(e, url);\n onClose();\n }\n }}\n >\n <S2.ButtonContent>\n {IconNode}\n {item.label}\n {NewLabelNode}\n </S2.ButtonContent>\n {ValueNode}\n </S2.ProSectionItemButton>\n );\n }\n\n return (\n <S.SectionItemButton\n motif={motif}\n onClick={(e) => {\n item.onClick?.(e, url);\n onClose();\n }}\n {...(typeof url === \"string\"\n ? {\n as: \"a\",\n href: url,\n target,\n }\n : {})}\n >\n <S2.ButtonContent>\n {IconNode}\n {item.label}\n {NewLabelNode}\n </S2.ButtonContent>\n {ValueNode}\n </S.SectionItemButton>\n );\n },\n [\n onClose,\n renderSectionItemIcon,\n toggleExpandedSectionItemId,\n translations.new,\n ],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S2.Wrap motif={motif}>\n <S.Container size=\"mobile\" noVerticalMargin>\n <S.InnerWrap>\n {/* Product line */}\n {!!productLineOptions?.length && (\n <S2.ButtonGroup>\n {productLineOptions.map((option) => (\n <S2.CustomButton\n full\n key={option.value}\n variant=\"gray\"\n $active={option.value === productLineValue}\n onClick={() => {\n handleProductLineChange?.(option.value);\n onClose();\n }}\n >\n {option.label}\n </S2.CustomButton>\n ))}\n </S2.ButtonGroup>\n )}\n\n {/* Sections */}\n {sections.map((section) => (\n <S.Section motif={motif} key={section.id}>\n {section.items.map((item) => (\n <S.SectionItemsGroup\n motif={motif}\n key={item.id}\n $active={item.id === expandedSectionItemId}\n >\n <S.SectionItem motif={motif}>\n {renderSectionItemButton(item)}\n\n {item.subItems.length > 0 && (\n <S.SectionItemArrowButton\n motif={motif}\n onClick={() => toggleExpandedSectionItemId(item.id)}\n >\n <S.ButtonIcon>\n <StyleableSvgImage\n src={icons.generic.collapseArrow}\n width={13}\n height={8}\n />\n </S.ButtonIcon>\n </S.SectionItemArrowButton>\n )}\n </S.SectionItem>\n\n {item.id === expandedSectionItemId &&\n item.subItems.length > 0 &&\n item.subItems.map((subItem) => (\n <S.SectionItem key={subItem.id} motif={motif} $secondary>\n {renderSectionItemButton(subItem)}\n </S.SectionItem>\n ))}\n </S.SectionItemsGroup>\n ))}\n </S.Section>\n ))}\n </S.InnerWrap>\n </S.Container>\n </S2.Wrap>\n );\n};\n"],"names":["motif","NavigationProMobileMenu","NavigationProMobileMenu2","translations","onClose","logo","handleStorePickerClick","handleOrderHistoryClick","handlePurchaseHistoryClick","handleProductLineChange","productLineValue","productLineOptions","categories","hideExtraSection","footerContent","socialContent","useFooterContent","context","useMenu","expandedSectionItemId","setExpandedSectionItemId","useState","toggleExpandedSectionItemId","useCallback","itemId","sections","useMemo","extraSectionItems","id","label","support","url","subItems","getSupportLinkMapping","map","item","name","social","items","src","key","company","training","tools","orderHistory","icon","imageSrc","HistoryIcon","width","height","onClick","purchasedProductHistory","filter","isNonNullish","length","currentStore","region","value","jsxs","CurrentStoreWrap","$inheritFonts","children","jsx","CurrentStoreFlag","flag","LocationPinIcon","renderSectionItemIcon","S2.SectionItemIcon","StyleableSvgImage","renderSectionItemButton","IconNode","NewLabelNode","isNew","S.NewLabel","NewLabel","new","ValueNode","target","targetBlank","S2.ProSectionItemButton","ProSectionItemButton","e","S2.ButtonContent","S.SectionItemButton","SectionItemButton","as","href","S2.Wrap","S.Container","size","noVerticalMargin","S.InnerWrap","S2.ButtonGroup","option","S2.CustomButton","CustomButton","full","variant","$active","section","S.Section","S.SectionItemsGroup","SectionItemsGroup","S.SectionItem","SectionItem","S.SectionItemArrowButton","SectionItemArrowButton","S.ButtonIcon","icons.generic.collapseArrow","subItem","$secondary"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,MAAMA,KAAe,GAAA,OAAA;AAER,MAAAC,uBAAA,GAA0B,SAASA,wBAAwBC,CAAA;EACtEC,YAAA;EACAC,OAAA;EACAC,IAAA;EACAC,sBAAA;EAAA;EAEAC,uBAAA;EACAC,0BAAA;EACAC,uBAAA;EACAC,gBAAA;EACAC,kBAAA;EACAC,UAAA;EACAC;AACF,CAAiC,EAAA;EAC/B,MAAM;IAAEC,aAAA;IAAeC;EAAc,CAAA,GAAIC,gBAAiB,CAAAA,gBAAA,CAAA,CAAA;EACpD,MAAA;IAAEC,OAAAA,EAAAA;GAAQ,GAAIC,OAAAA,CAAAA,OAAQ,EAAA;EAK5B,MAAM,CAACC,qBAAA,EAAuBC,wBAAwB,CAAA,GAAIC,eAExD,IAAI,CAAA;EAEN,MAAMC,2BAA8B,GAAAC,KAAA,CAAAA,WAAA,CACjCC,MAAmB,IAAA;IAClBJ,wBAAA,CACED,qBAAA,KAA0BK,SAAS,IAAO,GAAAA,MAAA,CAC5C;EACF,CAAA,EACA,CAACL,qBAAqB,CAAA,CACxB;EAKM,MAAAM,QAAA,GAAWC,KAAAA,CAAAA,QAAQ,MAA8B;IACrD,MAAMC,iBA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