@ubnt/store.core 9.17.0 → 9.18.0-alpha.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 (389) hide show
  1. package/CHANGELOG.md +164 -0
  2. package/lib/_virtual/_virtual_multi-entry.js +27 -12
  3. package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
  4. package/lib/_virtual/_virtual_multi-entry.mjs +14 -10
  5. package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
  6. package/lib/assets/close2.svg +2 -3
  7. package/lib/assets/close3.svg +3 -2
  8. package/lib/assets/efg.png +0 -0
  9. package/lib/assets/icon-location-pin.svg +5 -0
  10. package/lib/assets/icons/menu/icon-location-pin.svg.js +27 -0
  11. package/lib/assets/icons/menu/icon-location-pin.svg.js.map +1 -0
  12. package/lib/assets/icons/menu/icon-location-pin.svg.mjs +3 -0
  13. package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +1 -0
  14. package/lib/assets/ucg-max.png +0 -0
  15. package/lib/assets/udmPro.jpg +0 -0
  16. package/lib/assets/udmPro2.jpg +0 -0
  17. package/lib/assets/udmProMax.jpg +0 -0
  18. package/lib/assets/udmProMax2.jpg +0 -0
  19. package/lib/assets/udmProSpecial.jpg +0 -0
  20. package/lib/assets/udmProSpecial2.jpg +0 -0
  21. package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +1 -1
  22. package/lib/components/Compare/Compare.styles.d.ts +5 -5
  23. package/lib/components/Container/Container.d.ts +1 -1
  24. package/lib/components/Container/Container.js +4 -3
  25. package/lib/components/Container/Container.js.map +1 -1
  26. package/lib/components/Container/Container.mjs +5 -4
  27. package/lib/components/Container/Container.mjs.map +1 -1
  28. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +1 -1
  29. package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
  30. package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
  31. package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
  32. package/lib/components/Header/AccountMenu/AccountMenu.js +11 -1
  33. package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
  34. package/lib/components/Header/AccountMenu/AccountMenu.mjs +13 -3
  35. package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
  36. package/lib/components/Header/Header.styles.d.ts +2 -2
  37. package/lib/components/Header/Header.types.d.ts +12 -4
  38. package/lib/components/Header/Header.types.js +2 -1
  39. package/lib/components/Header/Header.types.js.map +1 -1
  40. package/lib/components/Header/Header.types.mjs +2 -1
  41. package/lib/components/Header/Header.types.mjs.map +1 -1
  42. package/lib/components/Header/MenuItem/MenuItem.styles.d.ts +1 -1
  43. package/lib/components/Header/MenuItem/MenuItem.styles.js +3 -3
  44. package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
  45. package/lib/components/Header/MenuItem/MenuItem.styles.mjs +3 -3
  46. package/lib/components/Header/MenuItem/MenuItem.styles.mjs.map +1 -1
  47. package/lib/components/Header/MenuItem/MenuItem.types.d.ts +1 -0
  48. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
  49. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +1 -1
  50. package/lib/components/Header/Navigation/ProMenu/ProMenu.d.ts +2 -0
  51. package/lib/components/Header/Navigation/ProMenu/ProMenu.js +103 -0
  52. package/lib/components/Header/Navigation/ProMenu/ProMenu.js.map +1 -0
  53. package/lib/components/Header/Navigation/ProMenu/ProMenu.mjs +81 -0
  54. package/lib/components/Header/Navigation/ProMenu/ProMenu.mjs.map +1 -0
  55. package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.d.ts +23 -0
  56. package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.js +121 -0
  57. package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.js.map +1 -0
  58. package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.mjs +106 -0
  59. package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.mjs.map +1 -0
  60. package/lib/components/Header/Navigation/ProMenu/ProMenu.types.d.ts +12 -0
  61. package/lib/components/Header/Navigation/ProMenu/index.d.ts +1 -0
  62. package/lib/components/Header/Navigation/ProMenu/index.js +6 -0
  63. package/lib/components/{ResourceCalculatorV1/components → Header/Navigation/ProMenu}/index.js.map +1 -1
  64. package/lib/components/Header/Navigation/ProMenu/index.mjs +3 -0
  65. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
  66. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +80 -83
  67. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
  68. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +80 -83
  69. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
  70. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +9 -0
  71. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +15 -1
  72. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
  73. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +13 -2
  74. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
  75. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +9 -4
  76. package/lib/components/Header/ProHeader/ProHeader.d.ts +3 -4
  77. package/lib/components/Header/ProHeader/ProHeader.js +244 -119
  78. package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
  79. package/lib/components/Header/ProHeader/ProHeader.mjs +246 -123
  80. package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
  81. package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +7 -1
  82. package/lib/components/Header/ProHeader/ProHeader.styles.js +25 -17
  83. package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
  84. package/lib/components/Header/ProHeader/ProHeader.styles.mjs +23 -18
  85. package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
  86. package/lib/components/Header/translations/ar.json.js +4 -1
  87. package/lib/components/Header/translations/ar.json.js.map +1 -1
  88. package/lib/components/Header/translations/ar.json.mjs +4 -2
  89. package/lib/components/Header/translations/ar.json.mjs.map +1 -1
  90. package/lib/components/Header/translations/de.json.js +4 -1
  91. package/lib/components/Header/translations/de.json.js.map +1 -1
  92. package/lib/components/Header/translations/de.json.mjs +4 -2
  93. package/lib/components/Header/translations/de.json.mjs.map +1 -1
  94. package/lib/components/Header/translations/el.json.js +4 -1
  95. package/lib/components/Header/translations/el.json.js.map +1 -1
  96. package/lib/components/Header/translations/el.json.mjs +4 -2
  97. package/lib/components/Header/translations/el.json.mjs.map +1 -1
  98. package/lib/components/Header/translations/en.json.js +4 -1
  99. package/lib/components/Header/translations/en.json.js.map +1 -1
  100. package/lib/components/Header/translations/en.json.mjs +4 -2
  101. package/lib/components/Header/translations/en.json.mjs.map +1 -1
  102. package/lib/components/Header/translations/es.json.js +4 -1
  103. package/lib/components/Header/translations/es.json.js.map +1 -1
  104. package/lib/components/Header/translations/es.json.mjs +4 -2
  105. package/lib/components/Header/translations/es.json.mjs.map +1 -1
  106. package/lib/components/Header/translations/fr.json.js +4 -1
  107. package/lib/components/Header/translations/fr.json.js.map +1 -1
  108. package/lib/components/Header/translations/fr.json.mjs +4 -2
  109. package/lib/components/Header/translations/fr.json.mjs.map +1 -1
  110. package/lib/components/Header/translations/it.json.js +4 -1
  111. package/lib/components/Header/translations/it.json.js.map +1 -1
  112. package/lib/components/Header/translations/it.json.mjs +4 -2
  113. package/lib/components/Header/translations/it.json.mjs.map +1 -1
  114. package/lib/components/Header/translations/ja.json.js +4 -1
  115. package/lib/components/Header/translations/ja.json.js.map +1 -1
  116. package/lib/components/Header/translations/ja.json.mjs +4 -2
  117. package/lib/components/Header/translations/ja.json.mjs.map +1 -1
  118. package/lib/components/Header/translations/pt-BR.json.js +4 -1
  119. package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
  120. package/lib/components/Header/translations/pt-BR.json.mjs +4 -2
  121. package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
  122. package/lib/components/Header/translations/zh-Hans.json.js +4 -1
  123. package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
  124. package/lib/components/Header/translations/zh-Hans.json.mjs +4 -2
  125. package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
  126. package/lib/components/Header/translations/zh-Hant-TW.json.js +4 -1
  127. package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
  128. package/lib/components/Header/translations/zh-Hant-TW.json.mjs +4 -2
  129. package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
  130. package/lib/components/Hero/Hero.styles.d.ts +2 -2
  131. package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +1 -1
  132. package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.d.ts +1 -1
  133. package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.js +3 -1
  134. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +1 -0
  135. package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.mjs +3 -1
  136. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +1 -0
  137. package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.styles.d.ts +1 -0
  138. package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.styles.js +10 -7
  139. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +1 -0
  140. package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.styles.mjs +10 -7
  141. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +1 -0
  142. package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.types.d.ts +1 -0
  143. package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +2 -2
  144. package/lib/components/LandingPagePro/LandingPagePro.d.ts +3 -0
  145. package/lib/components/LandingPagePro/LandingPagePro.js +3 -3
  146. package/lib/components/LandingPagePro/LandingPagePro.js.map +1 -1
  147. package/lib/components/LandingPagePro/LandingPagePro.mjs +2 -2
  148. package/lib/components/LandingPagePro/LandingPagePro.mjs.map +1 -1
  149. package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +1 -1
  150. package/lib/components/LayoutRenderer/LayoutRenderer.styles.d.ts +1 -1
  151. package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +3 -3
  152. package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +3 -3
  153. package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +1 -1
  154. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
  155. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
  156. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
  157. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
  158. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
  159. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
  160. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
  161. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
  162. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
  163. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
  164. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
  165. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
  166. package/lib/components/ModelCompareV3/data/CloudGateways.js +9 -9
  167. package/lib/components/ModelCompareV3/data/CloudGateways.mjs +6 -6
  168. package/lib/components/ModelCompareV3/data/products/udmPro.js +1 -1
  169. package/lib/components/ModelCompareV3/data/products/udmPro.mjs +1 -1
  170. package/lib/components/ModelCompareV3/data/products/udmProMax.js +1 -1
  171. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +1 -1
  172. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +1 -1
  173. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +1 -1
  174. package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +1 -1
  175. package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +1 -1
  176. package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +1 -1
  177. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +313 -17
  178. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
  179. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +311 -17
  180. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
  181. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.d.ts +3 -2
  182. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js +2 -0
  183. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js.map +1 -1
  184. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs +2 -0
  185. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs.map +1 -1
  186. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +120 -34
  187. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js.map +1 -1
  188. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs +120 -34
  189. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs.map +1 -1
  190. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.d.ts +16 -2
  191. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js +54 -12
  192. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js.map +1 -1
  193. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.mjs +50 -11
  194. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.mjs.map +1 -1
  195. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/assets/ArrowLeftPrimary.svg.js +5 -5
  196. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/assets/ArrowRightPrimary.svg.js +5 -5
  197. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +1 -1
  198. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js.map +1 -1
  199. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
  200. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs.map +1 -1
  201. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js +2 -0
  202. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js.map +1 -1
  203. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs +2 -0
  204. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs.map +1 -1
  205. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +1 -1
  206. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js.map +1 -1
  207. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.mjs +1 -1
  208. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.mjs.map +1 -1
  209. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +2 -2
  210. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js.map +1 -1
  211. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
  212. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs.map +1 -1
  213. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +1 -2
  214. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js.map +1 -1
  215. package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs +1 -2
  216. package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs.map +1 -1
  217. package/lib/{assets/icons/menu/icon-globe.svg.js → components/ResourceCalculatorV1/assets/consoles/efg.png.js} +6 -6
  218. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.js.map +1 -0
  219. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs +3 -0
  220. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs.map +1 -0
  221. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js +27 -0
  222. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js.map +1 -0
  223. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs +3 -0
  224. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs.map +1 -0
  225. package/lib/components/ResourceCalculatorV1/translations/en.json.js +6 -4
  226. package/lib/components/ResourceCalculatorV1/translations/en.json.js.map +1 -1
  227. package/lib/components/ResourceCalculatorV1/translations/en.json.mjs +6 -4
  228. package/lib/components/ResourceCalculatorV1/translations/en.json.mjs.map +1 -1
  229. package/lib/components/ResourceCalculatorV1/translations/useResourceCalculatorTranslation.d.ts +2 -2
  230. package/lib/components/VideoPlayerNew/VideoPlayer.js +1 -1
  231. package/lib/components/VideoPlayerNew/VideoPlayer.mjs +1 -1
  232. package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
  233. package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
  234. package/lib/components/index.d.ts +1 -0
  235. package/lib/components/index.js +2 -0
  236. package/lib/components/index.js.map +1 -1
  237. package/lib/components/index.mjs +2 -0
  238. package/lib/components/index.mjs.map +1 -1
  239. package/lib/constants/proStoreCategories/mapping/index.d.ts +1 -0
  240. package/lib/constants/proStoreCategories/mapping/index.js +15 -10
  241. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  242. package/lib/constants/proStoreCategories/mapping/index.mjs +15 -10
  243. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  244. package/lib/constants/proStoreCategories/mapping/unifi.d.ts +2 -1
  245. package/lib/constants/proStoreCategories/mapping/unifi.js +1 -0
  246. package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
  247. package/lib/constants/proStoreCategories/mapping/unifi.mjs +1 -0
  248. package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
  249. package/lib/constants/proStoreCategories/translations/en.json.js +3 -0
  250. package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
  251. package/lib/constants/proStoreCategories/translations/en.json.mjs +3 -1
  252. package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
  253. package/lib/constants/proStoreCategories/translations/fr.json.js +1 -1
  254. package/lib/constants/proStoreCategories/translations/fr.json.mjs +1 -1
  255. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +1 -1
  256. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +1 -1
  257. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +1 -1
  258. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +1 -1
  259. package/lib/constants/theme.js +4 -0
  260. package/lib/constants/theme.js.map +1 -1
  261. package/lib/constants/theme.mjs +4 -0
  262. package/lib/constants/theme.mjs.map +1 -1
  263. package/lib/contexts/MenuContext/context.js +1 -1
  264. package/lib/contexts/MenuContext/context.js.map +1 -1
  265. package/lib/contexts/MenuContext/context.mjs +1 -1
  266. package/lib/contexts/MenuContext/context.mjs.map +1 -1
  267. package/lib/helpers/index.d.ts +1 -0
  268. package/lib/helpers/index.js +11 -0
  269. package/lib/helpers/index.js.map +1 -1
  270. package/lib/helpers/index.mjs +1 -0
  271. package/lib/helpers/index.mjs.map +1 -1
  272. package/lib/helpers/product.d.ts +87 -0
  273. package/lib/helpers/product.js +346 -0
  274. package/lib/helpers/product.js.map +1 -0
  275. package/lib/helpers/product.mjs +335 -0
  276. package/lib/helpers/product.mjs.map +1 -0
  277. package/lib/helpers/ux.d.ts +9 -1
  278. package/lib/helpers/ux.js +15 -0
  279. package/lib/helpers/ux.js.map +1 -1
  280. package/lib/helpers/ux.mjs +15 -1
  281. package/lib/helpers/ux.mjs.map +1 -1
  282. package/lib/types/index.d.ts +1 -0
  283. package/lib/types/index.js +2 -0
  284. package/lib/types/index.js.map +1 -1
  285. package/lib/types/index.mjs +1 -0
  286. package/lib/types/index.mjs.map +1 -1
  287. package/lib/types/product.d.ts +87 -0
  288. package/lib/types/product.js +14 -0
  289. package/lib/types/product.js.map +1 -0
  290. package/lib/types/product.mjs +13 -0
  291. package/lib/types/product.mjs.map +1 -0
  292. package/lib/utils/array.d.ts +4 -0
  293. package/lib/utils/array.js +10 -0
  294. package/lib/utils/array.js.map +1 -1
  295. package/lib/utils/array.mjs +10 -1
  296. package/lib/utils/array.mjs.map +1 -1
  297. package/lib/utils/money/allocators/fixedAmount.d.ts +26 -0
  298. package/lib/utils/money/allocators/fixedAmount.js +52 -0
  299. package/lib/utils/money/allocators/fixedAmount.js.map +1 -0
  300. package/lib/utils/money/allocators/fixedAmount.mjs +50 -0
  301. package/lib/utils/money/allocators/fixedAmount.mjs.map +1 -0
  302. package/lib/utils/money/allocators/index.d.ts +2 -0
  303. package/lib/utils/money/allocators/index.js +8 -0
  304. package/lib/utils/money/allocators/index.js.map +1 -0
  305. package/lib/utils/money/allocators/index.mjs +4 -0
  306. package/lib/utils/money/allocators/index.mjs.map +1 -0
  307. package/lib/utils/money/allocators/productAmount.d.ts +13 -0
  308. package/lib/utils/money/allocators/productAmount.js +98 -0
  309. package/lib/utils/money/allocators/productAmount.js.map +1 -0
  310. package/lib/utils/money/allocators/productAmount.mjs +96 -0
  311. package/lib/utils/money/allocators/productAmount.mjs.map +1 -0
  312. package/lib/utils/money/constants.d.ts +56 -25
  313. package/lib/utils/money/constants.js +72 -7
  314. package/lib/utils/money/constants.js.map +1 -1
  315. package/lib/utils/money/constants.mjs +70 -7
  316. package/lib/utils/money/constants.mjs.map +1 -1
  317. package/lib/utils/money/exchangeRate.d.ts +31 -0
  318. package/lib/utils/money/exchangeRate.js +27 -0
  319. package/lib/utils/money/exchangeRate.js.map +1 -0
  320. package/lib/utils/money/exchangeRate.mjs +23 -0
  321. package/lib/utils/money/exchangeRate.mjs.map +1 -0
  322. package/lib/utils/money/format.d.ts +10 -5
  323. package/lib/utils/money/format.js +22 -14
  324. package/lib/utils/money/format.js.map +1 -1
  325. package/lib/utils/money/format.mjs +23 -16
  326. package/lib/utils/money/format.mjs.map +1 -1
  327. package/lib/utils/money/index.d.ts +4 -1
  328. package/lib/utils/money/index.js +26 -8
  329. package/lib/utils/money/index.js.map +1 -1
  330. package/lib/utils/money/index.mjs +8 -4
  331. package/lib/utils/money/index.mjs.map +1 -1
  332. package/lib/utils/money/misc.d.ts +68 -28
  333. package/lib/utils/money/misc.js +35 -64
  334. package/lib/utils/money/misc.js.map +1 -1
  335. package/lib/utils/money/misc.mjs +32 -43
  336. package/lib/utils/money/misc.mjs.map +1 -1
  337. package/lib/utils/money/misc.private.d.ts +23 -0
  338. package/lib/utils/money/misc.private.js +46 -0
  339. package/lib/utils/money/misc.private.js.map +1 -0
  340. package/lib/utils/money/misc.private.mjs +21 -0
  341. package/lib/utils/money/misc.private.mjs.map +1 -0
  342. package/lib/utils/money/shipping.d.ts +5 -0
  343. package/lib/utils/money/shipping.js +8 -0
  344. package/lib/utils/money/shipping.js.map +1 -0
  345. package/lib/utils/money/shipping.mjs +6 -0
  346. package/lib/utils/money/shipping.mjs.map +1 -0
  347. package/lib/utils/money/tax.d.ts +38 -2
  348. package/lib/utils/money/tax.js +46 -10
  349. package/lib/utils/money/tax.js.map +1 -1
  350. package/lib/utils/money/tax.mjs +42 -11
  351. package/lib/utils/money/tax.mjs.map +1 -1
  352. package/lib/utils/money/tax.private.d.ts +17 -0
  353. package/lib/utils/money/tax.private.js +65 -0
  354. package/lib/utils/money/tax.private.js.map +1 -0
  355. package/lib/utils/money/tax.private.mjs +60 -0
  356. package/lib/utils/money/tax.private.mjs.map +1 -0
  357. package/lib/utils/money/types.d.ts +78 -3
  358. package/lib/utils/number.d.ts +1 -1
  359. package/lib/utils/number.js +1 -1
  360. package/lib/utils/number.js.map +1 -1
  361. package/lib/utils/number.mjs +1 -1
  362. package/lib/utils/number.mjs.map +1 -1
  363. package/lib/utils/productSort.d.ts +41 -0
  364. package/lib/utils/productSort.js +67 -0
  365. package/lib/utils/productSort.js.map +1 -0
  366. package/lib/utils/productSort.mjs +60 -0
  367. package/lib/utils/productSort.mjs.map +1 -0
  368. package/package.json +1 -1
  369. package/lib/assets/icons/menu/icon-globe.svg.js.map +0 -1
  370. package/lib/assets/icons/menu/icon-globe.svg.mjs +0 -3
  371. package/lib/assets/icons/menu/icon-globe.svg.mjs.map +0 -1
  372. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +0 -1
  373. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +0 -1
  374. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +0 -1
  375. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +0 -1
  376. package/lib/components/ResourceCalculatorV1/components/index.d.ts +0 -1
  377. package/lib/components/ResourceCalculatorV1/components/index.js +0 -5
  378. package/lib/components/ResourceCalculatorV1/components/index.mjs +0 -3
  379. package/lib/utils/validations.d.ts +0 -15
  380. package/lib/utils/validations.js +0 -23
  381. package/lib/utils/validations.js.map +0 -1
  382. package/lib/utils/validations.mjs +0 -21
  383. package/lib/utils/validations.mjs.map +0 -1
  384. /package/lib/components/{ResourceCalculatorV1/components → Header/Navigation/ProMenu}/index.mjs.map +0 -0
  385. /package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/index.d.ts +0 -0
  386. /package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/index.js +0 -0
  387. /package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/index.js.map +0 -0
  388. /package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/index.mjs +0 -0
  389. /package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/index.mjs.map +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProMenu.styles.mjs","sources":["../../../../../src/components/Header/Navigation/ProMenu/ProMenu.styles.ts"],"sourcesContent":["import type { Motif } from \"@ubnt/ui-components/utils\";\nimport styled, { css } from \"styled-components\";\n\nimport { theme } from \"../../../../constants/theme\";\nimport { Button as ButtonBase } from \"../../../Button\";\nimport { Container as ContainerBase } from \"../../../Container\";\nimport { WrapPadding } from \"../../../Container/Container.styles\";\n\nconst PRO_MENU_Z_INDEX = theme.zIndex.header - 1;\n\nexport const TRANSITION_DURATION_MS = 250;\nexport const GLASS_COVER_Z_INDEX = TRANSITION_DURATION_MS - 1;\n\nconst withCssTransition = (props: string[]) => css`\n transition: ${TRANSITION_DURATION_MS}ms ease-out;\n transition-property: ${props.join(\",\")};\n`;\n\nexport const MenuWrapInner = styled.div`\n overflow: hidden;\n\n opacity: 0;\n translate: 0 -5px;\n ${withCssTransition([\"opacity\", \"translate\"])};\n transition-duration: ${TRANSITION_DURATION_MS * 1.5}ms;\n`;\n\nexport const MenuWrap = styled.nav<{ motif: Motif }>`\n background: ${({ motif }) => theme.colors.menu.base[motif]};\n display: grid;\n position: absolute;\n width: 100%;\n\n grid-template-rows: 0fr;\n ${withCssTransition([\"grid-template-rows\", \"height\"])};\n`;\n\nexport const Wrap = styled.div<{ motif: Motif; slideInView: boolean }>`\n position: relative;\n height: 0;\n\n /* General font config */\n font-size: 14px;\n line-height: ${20 / 14};\n color: ${({ motif }) => theme.colors.menu.proSubMenuText[motif]};\n\n /* Handle slide in */\n ${({ slideInView }) =>\n slideInView &&\n css`\n z-index: ${PRO_MENU_Z_INDEX};\n\n ${MenuWrap} {\n grid-template-rows: 1fr;\n }\n\n ${MenuWrapInner} {\n opacity: 1;\n translate: 0;\n }\n `}\n`;\n\nexport const Container = styled(ContainerBase)`\n padding-top: 16px;\n padding-bottom: 25px;\n\n ${WrapPadding} {\n flex-direction: column;\n align-items: flex-start;\n gap: 8px;\n }\n`;\n\nexport const ContainerRow = styled.div`\n display: flex;\n gap: 16px;\n`;\n\ninterface LinkButtonProps {\n $active?: boolean;\n motif: Motif;\n}\nexport const LinkButton = styled(ButtonBase).attrs({\n variant: \"link\",\n})<LinkButtonProps>`\n font-size: inherit;\n line-height: inherit;\n text-align: left;\n font-weight: normal;\n\n > * {\n justify-content: flex-start;\n }\n\n ${({ motif }) => css`\n color: ${theme.colors.menu.proSubMenuText[motif]};\n\n :hover,\n :focus {\n color: ${theme.colors.menu.active[motif]};\n }\n `}\n ${({ $active, motif }) =>\n $active &&\n css`\n color: ${theme.colors.menu.active[motif]};\n `};\n`;\n"],"names":["PRO_MENU_Z_INDEX","theme","zIndex","header","TRANSITION_DURATION_MS","GLASS_COVER_Z_INDEX","withCssTransition","props","css","join","MenuWrapInner","styled","div","MenuWrap","nav","motif","colors","menu","base","Wrap","proSubMenuText","slideInView","Container","ContainerBase","WrapPadding","ContainerRow","LinkButton","ButtonBase","attrs","variant","active","$active"],"mappings":";;;;;;;;AAQA,MAAMA,gBAAA,GAAmBC,KAAM,CAAAC,MAAA,CAAOC,MAAS,GAAA,CAAA;AAExC,MAAMC,sBAAyB,GAAA,GAAA;AAC/B,MAAMC,sBAAsBD,sBAAyB,GAAA,CAAA;AAE5D,MAAME,iBAAA,GAAqBC,KAAoB,IAAAC,GAAA;AAAA,gBAC/BJ,sBAAsB;AAAA,yBACbG,KAAA,CAAME,IAAK,CAAA,GAAG,CAAC;AAAA,CAAA;AAGjC,MAAMC,gBAAgBC,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAKhCN,iBAAkB,CAAA,CAAC,SAAW,EAAA,WAAW,CAAC,CAAC;AAAA,yBACtBF,yBAAyB,GAAG;AAAA,CAAA;AAG9C,MAAMS,WAAWF,MAAO,CAAAG,GAAA;AAAA,gBACf,CAAC;EAAEC;AAAM,CAAA,KAAMd,MAAMe,MAAO,CAAAC,IAAA,CAAKC,IAAK,CAAAH,KAAK,CAAC;AAAA;AAAA;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AAC;AAAA,KACzC;AAAA,CAAA;"}
@@ -0,0 +1,12 @@
1
+ import type { ProductLine } from "../../../../types";
2
+ import type { HeaderProductLineOption } from "../../Header.types";
3
+ export interface NavigationProMenuProps {
4
+ }
5
+ export interface NavigationProMenuPrivateProps extends NavigationProMenuProps {
6
+ show: boolean;
7
+ currentCountryName?: string;
8
+ handleStorePickerClick?: () => void;
9
+ productLineValue?: ProductLine;
10
+ productLineOptions: HeaderProductLineOption[];
11
+ onProductLineChange?: (line: ProductLine) => void;
12
+ }
@@ -0,0 +1 @@
1
+ export * from "./ProMenu";
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ var ProMenu = require('./ProMenu.js');
4
+ "use strict";
5
+ exports.NavigationProMenu = ProMenu.NavigationProMenu;
6
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -0,0 +1,3 @@
1
+ export { NavigationProMenu } from './ProMenu.mjs';
2
+ "use strict";
3
+ //# sourceMappingURL=index.mjs.map
@@ -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, currentCountryName, handleStorePickerClick, handleOrderHistoryClick, handlePurchaseHistoryClick, handleProductLineChange, productLineValue, productLineOptions, categories, hideExtraSection, }: NavigationProMobileMenuProps) => JSX.Element;
@@ -2,10 +2,12 @@
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
4
  var react = require('react');
5
- require('../../../../assets/icons/menu/icon-globe.svg.js');
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');
@@ -13,7 +15,7 @@ var MobileMenu_styles = require('../MobileMenu/MobileMenu.styles.js');
13
15
  var ProMobileMenu_styles = require('./ProMobileMenu.styles.js');
14
16
  var context = require('../../../../contexts/MenuContext/context.js');
15
17
  var HistoryIcon = require("../../../../assets/icon-history.svg");
16
- var GlobeIcon = require("../../../../assets/globe.svg");
18
+ var LocationPinIcon = require("../../../../assets/icon-location-pin.svg");
17
19
  var StyleableSvgImage = require('../../../StyleableSvgImage/StyleableSvgImage.js');
18
20
  var _externalAssets_BAXELvSy = require("../../../../assets/collapseArrow.svg");
19
21
  function _interopDefault(e) {
@@ -22,9 +24,10 @@ function _interopDefault(e) {
22
24
  };
23
25
  }
24
26
  var HistoryIcon__default = /*#__PURE__*/_interopDefault(HistoryIcon);
25
- var GlobeIcon__default = /*#__PURE__*/_interopDefault(GlobeIcon);
27
+ var LocationPinIcon__default = /*#__PURE__*/_interopDefault(LocationPinIcon);
26
28
  var _externalAssets_BAXELvSy__default = /*#__PURE__*/_interopDefault(_externalAssets_BAXELvSy);
27
29
  "use strict";
30
+ const motif = "light";
28
31
  const NavigationProMobileMenu = function NavigationProMobileMenu2({
29
32
  translations,
30
33
  onClose,
@@ -36,9 +39,9 @@ const NavigationProMobileMenu = function NavigationProMobileMenu2({
36
39
  handleProductLineChange,
37
40
  productLineValue,
38
41
  productLineOptions,
39
- extraSectionItems
42
+ categories,
43
+ hideExtraSection
40
44
  }) {
41
- const motif = "light";
42
45
  const {
43
46
  footerContent,
44
47
  socialContent
@@ -51,111 +54,100 @@ const NavigationProMobileMenu = function NavigationProMobileMenu2({
51
54
  setExpandedSectionItemId(expandedSectionItemId === itemId ? null : itemId);
52
55
  }, [expandedSectionItemId]);
53
56
  const sections = react.useMemo(() => {
54
- const _sections = [{
57
+ const extraSectionItems = [{
58
+ id: "support",
59
+ label: translations.support,
60
+ url: null,
61
+ subItems: mapping.getSupportLinkMapping(context$1).map(item => ({
62
+ id: item.id,
63
+ label: item.name,
64
+ url: item.url
65
+ }))
66
+ }, {
67
+ id: "social",
68
+ label: translations.social,
69
+ url: null,
70
+ subItems: socialContent.items.map(item => ({
71
+ id: item.id,
72
+ label: item.label,
73
+ url: item.src
74
+ }))
75
+ }, ...[{
76
+ key: "company",
77
+ label: translations.company
78
+ }, {
79
+ key: "training",
80
+ label: translations.training
81
+ }, {
82
+ key: "tools",
83
+ label: translations.tools
84
+ }].map(({
85
+ key,
86
+ label
87
+ }) => ({
88
+ id: key,
89
+ label,
90
+ url: null,
91
+ subItems: footerContent[key].items.map(item => ({
92
+ id: item.id,
93
+ label: item.label,
94
+ url: item.src
95
+ }))
96
+ }))];
97
+ return [{
55
98
  id: "store-link-stuff",
56
- items: [...(handleOrderHistoryClick ? [{
99
+ items: [handleOrderHistoryClick ? {
57
100
  id: "order-history",
58
101
  label: translations.orderHistory,
59
102
  icon: {
60
- src: typeof HistoryIcon__default["default"] === "string" ? HistoryIcon__default["default"] : HistoryIcon__default["default"].src,
103
+ src: asset.imageSrc(HistoryIcon__default["default"]),
61
104
  width: 16,
62
105
  height: 16
63
106
  },
64
- url: () => {
107
+ url: null,
108
+ onClick: () => {
65
109
  handleOrderHistoryClick?.();
66
110
  },
67
111
  subItems: []
68
- }] : []), ...(handlePurchaseHistoryClick ? [{
112
+ } : null, handlePurchaseHistoryClick ? {
69
113
  id: "purchased-product-history",
70
114
  label: translations.purchasedProductHistory,
71
115
  icon: {
72
- src: typeof HistoryIcon__default["default"] === "string" ? HistoryIcon__default["default"] : HistoryIcon__default["default"].src,
116
+ src: asset.imageSrc(HistoryIcon__default["default"]),
73
117
  width: 16,
74
118
  height: 16
75
119
  },
76
- url: () => {
120
+ url: null,
121
+ onClick: () => {
77
122
  handlePurchaseHistoryClick?.();
78
123
  },
79
124
  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
- ]
125
+ } : null].filter(typeGuards.isNonNullish)
99
126
  }, {
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
- }))]
127
+ id: "categories",
128
+ items: categories.items
141
129
  }, currentCountryName ? {
142
130
  id: "country-selector",
143
131
  items: [{
144
132
  id: "current-country-name",
145
- label: currentCountryName,
133
+ label: translations.region,
134
+ value: currentCountryName,
146
135
  icon: {
147
- src: typeof GlobeIcon__default["default"] === "string" ? GlobeIcon__default["default"] : GlobeIcon__default["default"].src,
136
+ src: asset.imageSrc(LocationPinIcon__default["default"]),
148
137
  width: 17,
149
138
  height: 17
150
139
  },
151
- url: () => {
140
+ url: null,
141
+ onClick: () => {
152
142
  handleStorePickerClick?.();
153
143
  },
154
144
  subItems: []
155
145
  }]
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]);
146
+ } : null, ...(!hideExtraSection ? extraSectionItems.map(item => ({
147
+ id: `extra-${item.id}`,
148
+ items: [item]
149
+ })) : [])].filter(typeGuards.isNonNullish);
150
+ }, [translations.support, translations.social, translations.company, translations.training, translations.tools, translations.orderHistory, translations.purchasedProductHistory, translations.region, context$1, socialContent.items, handleOrderHistoryClick, handlePurchaseHistoryClick, categories.items, currentCountryName, handleStorePickerClick, hideExtraSection, footerContent]);
159
151
  const renderSectionItemIcon = react.useCallback(item => {
160
152
  return item.icon && /* @__PURE__ */jsxRuntime.jsx(ProMobileMenu_styles.SectionItemIcon, {
161
153
  children: /* @__PURE__ */jsxRuntime.jsx(StyleableSvgImage.StyleableSvgImage, {
@@ -170,13 +162,18 @@ const NavigationProMobileMenu = function NavigationProMobileMenu2({
170
162
  const NewLabelNode = "isNew" in item && item.isNew ? /* @__PURE__ */jsxRuntime.jsx(MobileMenu_styles.NewLabel, {
171
163
  children: translations.new
172
164
  }) : null;
165
+ const ValueNode = !!item.value && /* @__PURE__ */jsxRuntime.jsx("div", {
166
+ children: item.value
167
+ });
173
168
  const target = "targetBlank" in item && item.targetBlank ? "_blank" : void 0;
174
169
  const url = item.url;
175
170
  if (!url) {
176
- return /* @__PURE__ */jsxRuntime.jsxs(MobileMenu_styles.SectionItemButton, {
171
+ return /* @__PURE__ */jsxRuntime.jsxs(ProMobileMenu_styles.ProSectionItemButton, {
177
172
  motif,
178
173
  onClick: () => toggleExpandedSectionItemId(item.id),
179
- children: [IconNode, item.label]
174
+ children: [/* @__PURE__ */jsxRuntime.jsxs(ProMobileMenu_styles.ButtonContent, {
175
+ children: [IconNode, item.label]
176
+ }), ValueNode]
180
177
  });
181
178
  }
182
179
  if (typeof url === "string") {
@@ -191,14 +188,14 @@ const NavigationProMobileMenu = function NavigationProMobileMenu2({
191
188
  }
192
189
  return /* @__PURE__ */jsxRuntime.jsxs(MobileMenu_styles.SectionItemButton, {
193
190
  motif,
194
- onClick: () => {
195
- url();
191
+ onClick: e => {
192
+ item.onClick?.(e, url);
196
193
  onClose();
197
194
  },
198
195
  children: [IconNode, item.label]
199
196
  });
200
197
  }, [onClose, renderSectionItemIcon, toggleExpandedSectionItemId, translations.new]);
201
- return /* @__PURE__ */jsxRuntime.jsx(MobileMenu_styles.Wrap, {
198
+ return /* @__PURE__ */jsxRuntime.jsx(ProMobileMenu_styles.Wrap, {
202
199
  motif,
203
200
  children: /* @__PURE__ */jsxRuntime.jsx(MobileMenu_styles.Container, {
204
201
  size: "mobile",
@@ -1 +1 @@
1
- {"version":3,"file":"ProMobileMenu.js","sources":["../../../../../src/components/Header/Navigation/ProMobileMenu/ProMobileMenu.tsx"],"sourcesContent":["/* eslint-disable @next/next/no-img-element */\nimport 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBa,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,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D,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":["/* eslint-disable @next/next/no-img-element */\nimport 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 * 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 currentCountryName,\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: () => {\n handleOrderHistoryClick?.();\n },\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: () => {\n handlePurchaseHistoryClick?.();\n },\n subItems: [],\n } satisfies ProMobileMenuSectionItem)\n : null,\n ].filter(isNonNullish),\n },\n\n {\n id: \"categories\",\n items: categories.items,\n },\n\n currentCountryName\n ? {\n id: \"country-selector\",\n items: [\n {\n id: \"current-country-name\",\n label: translations.region,\n value: currentCountryName,\n icon: {\n src: imageSrc(LocationPinIcon),\n width: 17,\n height: 17,\n },\n url: null,\n onClick: () => {\n handleStorePickerClick?.();\n },\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 currentCountryName,\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={() => toggleExpandedSectionItemId(item.id)}\n >\n <S2.ButtonContent>\n {IconNode}\n {item.label}\n </S2.ButtonContent>\n {ValueNode}\n </S2.ProSectionItemButton>\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={(e) => {\n item.onClick?.(e, 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 <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","currentCountryName","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","region","value","LocationPinIcon","renderSectionItemIcon","jsx","S2.SectionItemIcon","children","StyleableSvgImage","renderSectionItemButton","IconNode","NewLabelNode","isNew","S.NewLabel","NewLabel","new","ValueNode","target","targetBlank","jsxs","S2.ProSectionItemButton","ProSectionItemButton","S2.ButtonContent","S.SectionItemButton","SectionItemButton","as","href","e","S2.Wrap","S.Container","size","noVerticalMargin","S.InnerWrap","length","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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBA,MAAMA,KAAe,GAAA,OAAA;AAER,MAAAC,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,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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