@ubnt/store.core 9.29.0-alpha.8 → 9.29.0-beta.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 (1166) hide show
  1. package/CHANGELOG.md +47 -530
  2. package/lib/_virtual/_virtual_multi-entry.js +40 -48
  3. package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
  4. package/lib/_virtual/_virtual_multi-entry.mjs +40 -48
  5. package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
  6. package/lib/apis/smartcat.d.ts +3 -18
  7. package/lib/apis/smartcat.js +6 -6
  8. package/lib/apis/smartcat.js.map +1 -1
  9. package/lib/apis/smartcat.mjs +6 -6
  10. package/lib/apis/smartcat.mjs.map +1 -1
  11. package/lib/assets/clients.svg +2 -9
  12. package/lib/assets/clients2.svg +10 -0
  13. package/lib/assets/close2.svg +3 -2
  14. package/lib/assets/close3.svg +2 -3
  15. package/lib/{components/ModelCompareV3/assets/WiFi/wall.jpg.js → assets/icons/menu/icon-globe.svg.js} +6 -6
  16. package/lib/assets/icons/menu/icon-globe.svg.js.map +1 -0
  17. package/lib/assets/icons/menu/icon-globe.svg.mjs +3 -0
  18. package/lib/assets/icons/menu/icon-globe.svg.mjs.map +1 -0
  19. package/lib/assets/industrial.jpg +0 -0
  20. package/lib/assets/keyFeatures/{clients_v2.svg.js → clients.svg.js} +2 -2
  21. package/lib/assets/keyFeatures/clients.svg.js.map +1 -0
  22. package/lib/assets/keyFeatures/clients.svg.mjs +3 -0
  23. package/lib/assets/keyFeatures/clients.svg.mjs.map +1 -0
  24. package/lib/assets/keyFeatures/{phased_array_v2.svg.js → phased_array.svg.js} +1 -1
  25. package/lib/assets/keyFeatures/phased_array.svg.js.map +1 -0
  26. package/lib/assets/keyFeatures/{phased_array_v2.svg.mjs → phased_array.svg.mjs} +1 -1
  27. package/lib/assets/keyFeatures/phased_array.svg.mjs.map +1 -0
  28. package/lib/assets/logoUnifi.svg +2 -10
  29. package/lib/assets/minus4.svg +8 -8
  30. package/lib/assets/minus5.svg +8 -8
  31. package/lib/assets/pause.svg +3 -3
  32. package/lib/assets/pause2.svg +3 -3
  33. package/lib/assets/plus5.svg +9 -9
  34. package/lib/assets/plus6.svg +9 -9
  35. package/lib/assets/ucgUltra.jpg +0 -0
  36. package/lib/assets/ucgUltra2.jpg +0 -0
  37. package/lib/assets/udmPro.jpg +0 -0
  38. package/lib/assets/udmPro2.jpg +0 -0
  39. package/lib/assets/udmProMax.jpg +0 -0
  40. package/lib/assets/udmProMax2.jpg +0 -0
  41. package/lib/assets/udmProSpecial.jpg +0 -0
  42. package/lib/assets/udmProSpecial2.jpg +0 -0
  43. package/lib/components/Accordion/Accordion.js +4 -4
  44. package/lib/components/Avatar/Avatar.js +2 -2
  45. package/lib/components/BackInStock/BackInStock.types.d.ts +0 -1
  46. package/lib/components/Button/Button.js +5 -5
  47. package/lib/components/Button/CartButton.js +2 -2
  48. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.d.ts +1 -1
  49. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js +4 -16
  50. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js.map +1 -1
  51. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs +5 -17
  52. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs.map +1 -1
  53. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.d.ts +1 -5
  54. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js +17 -82
  55. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js.map +1 -1
  56. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs +17 -82
  57. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs.map +1 -1
  58. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.types.d.ts +0 -4
  59. package/lib/components/CardSection/Card/Card.js +6 -6
  60. package/lib/components/CardSection/CardSection.js +2 -2
  61. package/lib/components/CartIcon/CartIcon.js +2 -2
  62. package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +1 -1
  63. package/lib/components/CategoryTabs/CategoryTabs.styles.js +3 -2
  64. package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
  65. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +3 -2
  66. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
  67. package/lib/components/Checkbox/Checkbox.js +4 -4
  68. package/lib/components/CloserLookSection/CloserLookSection.js +11 -11
  69. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.js +5 -5
  70. package/lib/components/Compare/Compare.styles.d.ts +5 -5
  71. package/lib/components/Container/Container.d.ts +1 -1
  72. package/lib/components/Container/Container.js +4 -5
  73. package/lib/components/Container/Container.js.map +1 -1
  74. package/lib/components/Container/Container.mjs +4 -5
  75. package/lib/components/Container/Container.mjs.map +1 -1
  76. package/lib/components/CustomImage/CustomImage.js +12 -12
  77. package/lib/components/Explore/Explore.js +5 -5
  78. package/lib/components/Explore/ExploreData.js +3 -3
  79. package/lib/components/Explore/ExploreData.js.map +1 -1
  80. package/lib/components/Explore/ExploreData.mjs +3 -3
  81. package/lib/components/Explore/ExploreData.mjs.map +1 -1
  82. package/lib/components/FeaturesSection_deprecated/Features/Features.js +2 -2
  83. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +23 -23
  84. package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
  85. package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
  86. package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
  87. package/lib/components/Footer/Footer.js +2 -2
  88. package/lib/components/Footer/hooks/useFooterContent.js +5 -5
  89. package/lib/components/Gallery/Gallery.context.js +17 -17
  90. package/lib/components/Gallery/Gallery.js +9 -9
  91. package/lib/components/Gallery/GalleryControls/GalleryControls.js +4 -4
  92. package/lib/components/Gallery/GalleryItem/GalleryItem.js +8 -8
  93. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.js +8 -8
  94. package/lib/components/GridGallery/GridGallery.js +8 -8
  95. package/lib/components/GridGallery/GridModal/GridModal.js +6 -6
  96. package/lib/components/Header/AccountFrame/AccountFrame.js +11 -11
  97. package/lib/components/Header/AccountFrame/Mobile/Mobile.js +4 -4
  98. package/lib/components/Header/AccountMenu/AccountMenu.js +23 -33
  99. package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
  100. package/lib/components/Header/AccountMenu/AccountMenu.mjs +5 -15
  101. package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
  102. package/lib/components/Header/CartModal/Empty/Empty.js +3 -3
  103. package/lib/components/Header/CartModalV2/CartModal.js +5 -5
  104. package/lib/components/Header/CartModalV2/Item/Item.js +4 -4
  105. package/lib/components/Header/Header.js +52 -53
  106. package/lib/components/Header/Header.js.map +1 -1
  107. package/lib/components/Header/Header.mjs +15 -16
  108. package/lib/components/Header/Header.mjs.map +1 -1
  109. package/lib/components/Header/Header.styles.d.ts +12 -7
  110. package/lib/components/Header/Header.styles.js +32 -10
  111. package/lib/components/Header/Header.styles.js.map +1 -1
  112. package/lib/components/Header/Header.styles.mjs +31 -10
  113. package/lib/components/Header/Header.styles.mjs.map +1 -1
  114. package/lib/components/Header/Header.types.d.ts +5 -29
  115. package/lib/components/Header/Header.types.js +1 -2
  116. package/lib/components/Header/Header.types.js.map +1 -1
  117. package/lib/components/Header/Header.types.mjs +1 -2
  118. package/lib/components/Header/Header.types.mjs.map +1 -1
  119. package/lib/components/Header/IsolatedHeader.d.ts +0 -1
  120. package/lib/components/Header/IsolatedHeader.js +53 -53
  121. package/lib/components/Header/IsolatedHeader.js.map +1 -1
  122. package/lib/components/Header/IsolatedHeader.mjs +48 -49
  123. package/lib/components/Header/IsolatedHeader.mjs.map +1 -1
  124. package/lib/components/Header/LanguageFrame/LanguageFrame.js +6 -6
  125. package/lib/components/Header/MenuItem/MenuItem.styles.d.ts +1 -1
  126. package/lib/components/Header/MenuItem/MenuItem.styles.js +3 -3
  127. package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
  128. package/lib/components/Header/MenuItem/MenuItem.styles.mjs +3 -3
  129. package/lib/components/Header/MenuItem/MenuItem.styles.mjs.map +1 -1
  130. package/lib/components/Header/MenuItem/MenuItem.types.d.ts +0 -1
  131. package/lib/components/Header/Navigation/Carousel/Carousel.js +5 -5
  132. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.js +12 -12
  133. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
  134. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js +5 -7
  135. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js.map +1 -1
  136. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.mjs +5 -7
  137. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.mjs.map +1 -1
  138. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +6 -6
  139. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +1 -1
  140. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
  141. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +109 -116
  142. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
  143. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +104 -111
  144. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
  145. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +0 -9
  146. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +1 -15
  147. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
  148. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +2 -13
  149. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
  150. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +6 -12
  151. package/lib/components/Header/Overlay/Overlay.js +3 -3
  152. package/lib/components/Header/ProHeader/ProHeader.d.ts +5 -9
  153. package/lib/components/Header/ProHeader/ProHeader.js +194 -275
  154. package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
  155. package/lib/components/Header/ProHeader/ProHeader.mjs +174 -254
  156. package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
  157. package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +25 -30
  158. package/lib/components/Header/ProHeader/ProHeader.styles.js +66 -119
  159. package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
  160. package/lib/components/Header/ProHeader/ProHeader.styles.mjs +65 -112
  161. package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
  162. package/lib/components/Header/translations/ar.json.js +1 -4
  163. package/lib/components/Header/translations/ar.json.js.map +1 -1
  164. package/lib/components/Header/translations/ar.json.mjs +2 -4
  165. package/lib/components/Header/translations/ar.json.mjs.map +1 -1
  166. package/lib/components/Header/translations/de.json.js +1 -4
  167. package/lib/components/Header/translations/de.json.js.map +1 -1
  168. package/lib/components/Header/translations/de.json.mjs +2 -4
  169. package/lib/components/Header/translations/de.json.mjs.map +1 -1
  170. package/lib/components/Header/translations/el.json.js +1 -4
  171. package/lib/components/Header/translations/el.json.js.map +1 -1
  172. package/lib/components/Header/translations/el.json.mjs +2 -4
  173. package/lib/components/Header/translations/el.json.mjs.map +1 -1
  174. package/lib/components/Header/translations/en.json.js +1 -7
  175. package/lib/components/Header/translations/en.json.js.map +1 -1
  176. package/lib/components/Header/translations/en.json.mjs +2 -6
  177. package/lib/components/Header/translations/en.json.mjs.map +1 -1
  178. package/lib/components/Header/translations/es.json.js +1 -4
  179. package/lib/components/Header/translations/es.json.js.map +1 -1
  180. package/lib/components/Header/translations/es.json.mjs +2 -4
  181. package/lib/components/Header/translations/es.json.mjs.map +1 -1
  182. package/lib/components/Header/translations/fr.json.js +1 -4
  183. package/lib/components/Header/translations/fr.json.js.map +1 -1
  184. package/lib/components/Header/translations/fr.json.mjs +2 -4
  185. package/lib/components/Header/translations/fr.json.mjs.map +1 -1
  186. package/lib/components/Header/translations/it.json.js +1 -4
  187. package/lib/components/Header/translations/it.json.js.map +1 -1
  188. package/lib/components/Header/translations/it.json.mjs +2 -4
  189. package/lib/components/Header/translations/it.json.mjs.map +1 -1
  190. package/lib/components/Header/translations/ja.json.js +1 -4
  191. package/lib/components/Header/translations/ja.json.js.map +1 -1
  192. package/lib/components/Header/translations/ja.json.mjs +2 -4
  193. package/lib/components/Header/translations/ja.json.mjs.map +1 -1
  194. package/lib/components/Header/translations/pt-BR.json.js +1 -4
  195. package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
  196. package/lib/components/Header/translations/pt-BR.json.mjs +2 -4
  197. package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
  198. package/lib/components/Header/translations/zh-Hans.json.js +1 -4
  199. package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
  200. package/lib/components/Header/translations/zh-Hans.json.mjs +2 -4
  201. package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
  202. package/lib/components/Header/translations/zh-Hant-TW.json.js +1 -4
  203. package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
  204. package/lib/components/Header/translations/zh-Hant-TW.json.mjs +2 -4
  205. package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
  206. package/lib/components/Hero/Hero.js +5 -5
  207. package/lib/components/Hero/Hero.styles.d.ts +2 -2
  208. package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +1 -1
  209. package/lib/components/HeroVideo/HeroVideo.js +5 -5
  210. package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +2 -2
  211. package/lib/components/ImageCarousel/ImageCarousel.js +29 -29
  212. package/lib/components/ImageSequence/ImageSequence.js +8 -8
  213. package/lib/components/LandingPage/Cards/Card/Card.js +4 -4
  214. package/lib/components/LandingPage/Cards/Cards.js +14 -14
  215. package/lib/components/LandingPage/Cards/Cards.js.map +1 -1
  216. package/lib/components/LandingPage/Cards/Cards.mjs +3 -3
  217. package/lib/components/LandingPage/Cards/Cards.mjs.map +1 -1
  218. package/lib/components/LandingPage/LandingPage.js +2 -2
  219. package/lib/components/LandingPagePro/LandingPagePro.js +13 -13
  220. package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +1 -1
  221. package/lib/components/LandingPageSearch/LandingPageSearch.js +2 -2
  222. package/lib/components/LandingPageSearch/Modal/Modal.js +9 -9
  223. package/lib/components/LandingPageSidebar/LandingPageSidebar.js +12 -12
  224. package/lib/components/LayoutRenderer/LayoutRenderer.js +8 -8
  225. package/lib/components/LayoutRenderer/LayoutRenderer.styles.d.ts +1 -1
  226. package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +3 -3
  227. package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +3 -3
  228. package/lib/components/LearnMoreLink/LearnMoreLink.js +1 -1
  229. package/lib/components/LearnMoreLink/LearnMoreLink.js.map +1 -1
  230. package/lib/components/LearnMoreLink/LearnMoreLink.mjs +1 -1
  231. package/lib/components/LearnMoreLink/LearnMoreLink.mjs.map +1 -1
  232. package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.js +7 -7
  233. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.js +18 -18
  234. package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.js +2 -2
  235. package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.js +3 -3
  236. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.js +3 -3
  237. package/lib/components/MicrositeHero/MicrositeHero.js +18 -18
  238. package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.js +4 -4
  239. package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.js +9 -9
  240. package/lib/components/MicrositeProductGrid/MicrositeProductGrid.js +8 -8
  241. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlockWrap.js +2 -2
  242. package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +1 -1
  243. package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.js +3 -3
  244. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +13 -13
  245. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
  246. package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
  247. package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
  248. package/lib/components/Microsites/MicrositePageContext.js +2 -2
  249. package/lib/components/Microsites/MicrositeProductPage.js +3 -3
  250. package/lib/components/Microsites/context/MicrositeProductPageContext.js +3 -3
  251. package/lib/components/MobileModal/MobileModal.js +5 -5
  252. package/lib/components/MobileModal/MobileModal.js.map +1 -1
  253. package/lib/components/MobileModal/MobileModal.mjs +1 -1
  254. package/lib/components/MobileModal/MobileModal.mjs.map +1 -1
  255. package/lib/{assets/icons → components/MobileModal/assets}/arrowDown.svg.js +1 -1
  256. package/lib/components/MobileModal/assets/arrowDown.svg.mjs +3 -0
  257. package/lib/components/Modal/Modal.js +3 -3
  258. package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js +3 -3
  259. package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.js +2 -2
  260. package/lib/components/ModelCompareV3/ModelCompareV3.js +14 -14
  261. package/lib/components/ModelCompareV3/ModelCompareV3.types.d.ts +2 -7
  262. package/lib/components/ModelCompareV3/ProductGroupsGrid.js +3 -3
  263. package/lib/components/ModelCompareV3/ScrollGroup/ScrollGroup.js +5 -5
  264. package/lib/components/ModelCompareV3/ScrollGroup/context.js +3 -3
  265. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupItem.js +8 -8
  266. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupSetScroll.js +2 -2
  267. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupTo.js +2 -2
  268. package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js +7 -7
  269. package/lib/components/ModelCompareV3/StickyGrid/StickyGridBody.js +2 -2
  270. package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js +5 -5
  271. package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.js +2 -2
  272. package/lib/components/ModelCompareV3/StickyGrid/context.js +3 -3
  273. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.js +5 -5
  274. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.mjs +2 -2
  275. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
  276. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
  277. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
  278. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
  279. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
  280. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
  281. package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.js +1 -1
  282. package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.mjs +2 -2
  283. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
  284. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
  285. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
  286. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
  287. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
  288. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
  289. package/lib/components/ModelCompareV3/assets/Switching/industrial.jpg.js +1 -1
  290. package/lib/components/ModelCompareV3/assets/Switching/industrial.jpg.mjs +2 -2
  291. package/lib/components/ModelCompareV3/assets/{WiFi/flagship.jpg.js → XgsPon/uispFiberOltXgs.jpg.js} +2 -2
  292. package/lib/{assets/keyFeatures/phased_array_v2.svg.js.map → components/ModelCompareV3/assets/XgsPon/uispFiberOltXgs.jpg.js.map} +1 -1
  293. package/lib/components/ModelCompareV3/assets/XgsPon/uispFiberOltXgs.jpg.mjs +3 -0
  294. package/lib/components/ModelCompareV3/assets/XgsPon/uispFiberOltXgs.jpg.mjs.map +1 -0
  295. package/lib/components/ModelCompareV3/assets/clients.svg.js +1 -1
  296. package/lib/components/ModelCompareV3/assets/clients.svg.mjs +2 -2
  297. package/lib/components/ModelCompareV3/data/BaseStation.js +2 -3
  298. package/lib/components/ModelCompareV3/data/BaseStation.js.map +1 -1
  299. package/lib/components/ModelCompareV3/data/BaseStation.mjs +2 -3
  300. package/lib/components/ModelCompareV3/data/BaseStation.mjs.map +1 -1
  301. package/lib/components/ModelCompareV3/data/CloudGateways.js +12 -12
  302. package/lib/components/ModelCompareV3/data/CloudGateways.mjs +8 -8
  303. package/lib/components/ModelCompareV3/data/WaveMLO.js +4 -3
  304. package/lib/components/ModelCompareV3/data/WaveMLO.js.map +1 -1
  305. package/lib/components/ModelCompareV3/data/WaveMLO.mjs +4 -3
  306. package/lib/components/ModelCompareV3/data/WaveMLO.mjs.map +1 -1
  307. package/lib/components/ModelCompareV3/data/XgsPon.js +2 -2
  308. package/lib/components/ModelCompareV3/data/XgsPon.js.map +1 -1
  309. package/lib/components/ModelCompareV3/data/XgsPon.mjs +2 -2
  310. package/lib/components/ModelCompareV3/data/XgsPon.mjs.map +1 -1
  311. package/lib/components/ModelCompareV3/data/index.d.ts +19 -20
  312. package/lib/components/ModelCompareV3/data/index.js +38 -41
  313. package/lib/components/ModelCompareV3/data/index.js.map +1 -1
  314. package/lib/components/ModelCompareV3/data/index.mjs +38 -41
  315. package/lib/components/ModelCompareV3/data/index.mjs.map +1 -1
  316. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js +2 -2
  317. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js.map +1 -1
  318. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.mjs +2 -2
  319. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.mjs.map +1 -1
  320. package/lib/components/ModelCompareV3/data/products/express.js +2 -2
  321. package/lib/components/ModelCompareV3/data/products/express.js.map +1 -1
  322. package/lib/components/ModelCompareV3/data/products/express.mjs +3 -3
  323. package/lib/components/ModelCompareV3/data/products/express.mjs.map +1 -1
  324. package/lib/components/ModelCompareV3/data/products/industrial.js +1 -1
  325. package/lib/components/ModelCompareV3/data/products/industrial.mjs +1 -1
  326. package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
  327. package/lib/components/ModelCompareV3/data/products/ucgMax.js.map +1 -1
  328. package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
  329. package/lib/components/ModelCompareV3/data/products/ucgMax.mjs.map +1 -1
  330. package/lib/components/ModelCompareV3/data/products/ucgUltra.js +3 -3
  331. package/lib/components/ModelCompareV3/data/products/ucgUltra.js.map +1 -1
  332. package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +4 -4
  333. package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs.map +1 -1
  334. package/lib/components/ModelCompareV3/data/products/udmPro.js +3 -3
  335. package/lib/components/ModelCompareV3/data/products/udmPro.js.map +1 -1
  336. package/lib/components/ModelCompareV3/data/products/udmPro.mjs +4 -4
  337. package/lib/components/ModelCompareV3/data/products/udmPro.mjs.map +1 -1
  338. package/lib/components/ModelCompareV3/data/products/udmProMax.js +3 -3
  339. package/lib/components/ModelCompareV3/data/products/udmProMax.js.map +1 -1
  340. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +4 -4
  341. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs.map +1 -1
  342. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +3 -3
  343. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js.map +1 -1
  344. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +4 -4
  345. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs.map +1 -1
  346. package/lib/components/ModelCompareV3/data/products/udr.js +2 -2
  347. package/lib/components/ModelCompareV3/data/products/udr.js.map +1 -1
  348. package/lib/components/ModelCompareV3/data/products/udr.mjs +3 -3
  349. package/lib/components/ModelCompareV3/data/products/udr.mjs.map +1 -1
  350. package/lib/components/ModelCompareV3/data/products/udw.js +2 -3
  351. package/lib/components/ModelCompareV3/data/products/udw.js.map +1 -1
  352. package/lib/components/ModelCompareV3/data/products/udw.mjs +3 -4
  353. package/lib/components/ModelCompareV3/data/products/udw.mjs.map +1 -1
  354. package/lib/components/ModelCompareV3/data/products/{fiberOltXgs.d.ts → uispFiberOltXgs.d.ts} +1 -1
  355. package/lib/components/ModelCompareV3/data/products/{fiberOltXgs.js → uispFiberOltXgs.js} +8 -8
  356. package/lib/components/ModelCompareV3/data/products/uispFiberOltXgs.js.map +1 -0
  357. package/lib/components/ModelCompareV3/data/products/{fiberOltXgs.mjs → uispFiberOltXgs.mjs} +8 -8
  358. package/lib/components/ModelCompareV3/data/products/uispFiberOltXgs.mjs.map +1 -0
  359. package/lib/components/ModelCompareV3/data/products/waveAp.js +3 -3
  360. package/lib/components/ModelCompareV3/data/products/waveAp.js.map +1 -1
  361. package/lib/components/ModelCompareV3/data/products/waveAp.mjs +3 -3
  362. package/lib/components/ModelCompareV3/data/products/waveAp.mjs.map +1 -1
  363. package/lib/components/ModelCompareV3/data/products/waveApGen2.js +2 -2
  364. package/lib/components/ModelCompareV3/data/products/waveApGen2.js.map +1 -1
  365. package/lib/components/ModelCompareV3/data/products/waveApGen2.mjs +2 -2
  366. package/lib/components/ModelCompareV3/data/products/waveApGen2.mjs.map +1 -1
  367. package/lib/components/ModelCompareV3/data/products/waveApMicro.js +5 -5
  368. package/lib/components/ModelCompareV3/data/products/waveApMicro.js.map +1 -1
  369. package/lib/components/ModelCompareV3/data/products/waveApMicro.mjs +5 -5
  370. package/lib/components/ModelCompareV3/data/products/waveApMicro.mjs.map +1 -1
  371. package/lib/components/ModelCompareV3/data/products/waveFiberOlt.js +13 -2
  372. package/lib/components/ModelCompareV3/data/products/waveFiberOlt.js.map +1 -1
  373. package/lib/components/ModelCompareV3/data/products/waveFiberOlt.mjs +13 -2
  374. package/lib/components/ModelCompareV3/data/products/waveFiberOlt.mjs.map +1 -1
  375. package/lib/components/ModelCompareV3/data/products/waveFiberOnu.js +4 -3
  376. package/lib/components/ModelCompareV3/data/products/waveFiberOnu.js.map +1 -1
  377. package/lib/components/ModelCompareV3/data/products/waveFiberOnu.mjs +4 -3
  378. package/lib/components/ModelCompareV3/data/products/waveFiberOnu.mjs.map +1 -1
  379. package/lib/components/ModelCompareV3/data/products/waveMLO5.js +12 -4
  380. package/lib/components/ModelCompareV3/data/products/waveMLO5.js.map +1 -1
  381. package/lib/components/ModelCompareV3/data/products/waveMLO5.mjs +12 -4
  382. package/lib/components/ModelCompareV3/data/products/waveMLO5.mjs.map +1 -1
  383. package/lib/components/ModelCompareV3/data/products/waveMLO6.js +11 -5
  384. package/lib/components/ModelCompareV3/data/products/waveMLO6.js.map +1 -1
  385. package/lib/components/ModelCompareV3/data/products/waveMLO6.mjs +11 -5
  386. package/lib/components/ModelCompareV3/data/products/waveMLO6.mjs.map +1 -1
  387. package/lib/components/ModelCompareV3/data/properties/{linkPuncturing.d.ts → bandwidthPuncturing.d.ts} +1 -1
  388. package/lib/components/ModelCompareV3/data/properties/{linkPuncturing.js → bandwidthPuncturing.js} +5 -5
  389. package/lib/components/ModelCompareV3/data/properties/bandwidthPuncturing.js.map +1 -0
  390. package/lib/components/ModelCompareV3/data/properties/bandwidthPuncturing.mjs +10 -0
  391. package/lib/components/ModelCompareV3/data/properties/bandwidthPuncturing.mjs.map +1 -0
  392. package/lib/components/ModelCompareV3/data/properties/clientDevices.js +1 -1
  393. package/lib/components/ModelCompareV3/data/properties/clientDevices.mjs +1 -1
  394. package/lib/components/ModelCompareV3/data/properties/connectedDevices.js +1 -1
  395. package/lib/components/ModelCompareV3/data/properties/connectedDevices.mjs +1 -1
  396. package/lib/components/ModelCompareV3/data/properties/index.d.ts +1 -2
  397. package/lib/components/ModelCompareV3/data/properties/index.js +2 -4
  398. package/lib/components/ModelCompareV3/data/properties/index.js.map +1 -1
  399. package/lib/components/ModelCompareV3/data/properties/index.mjs +1 -2
  400. package/lib/components/ModelCompareV3/data/properties/index.mjs.map +1 -1
  401. package/lib/components/ModelCompareV3/translations/en.json.js +17 -70
  402. package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
  403. package/lib/components/ModelCompareV3/translations/en.json.mjs +17 -70
  404. package/lib/components/ModelCompareV3/translations/en.json.mjs.map +1 -1
  405. package/lib/components/ModelCompareV3/translations/useModelCompareTranslation.d.ts +2 -2
  406. package/lib/components/Pagination/Pagination.js +3 -3
  407. package/lib/components/PriceRangeSlider/PriceRangeSlider.js +16 -16
  408. package/lib/components/ProductCard/ProductCard.js +8 -8
  409. package/lib/components/ProductCardPopup/ProductCardPopup.js +8 -8
  410. package/lib/components/ProductCompare/ProductCompare.js +7 -7
  411. package/lib/components/ProductDetails/ProductDetails.js +5 -5
  412. package/lib/components/ProductGrid/ProductGrid.js +10 -10
  413. package/lib/components/ProductKeyFeatures/ProductKeyFeatures.js +3 -3
  414. package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +1 -1
  415. package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +1 -1
  416. package/lib/components/ProductSectionTabs/ProductSectionTabs.js +2 -2
  417. package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +1 -1
  418. package/lib/components/ProductWizard/Options/Options.js +3 -3
  419. package/lib/components/ProductWizard/ProductWizard.js +2 -2
  420. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js +5 -5
  421. package/lib/components/ProgressCircle/ProgressCircle.js +4 -4
  422. package/lib/components/QuantityControls/QuantityControls.js +4 -4
  423. package/lib/components/RelatedProducts/RelatedProducts.js +5 -5
  424. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +17 -313
  425. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
  426. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +17 -311
  427. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
  428. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js +36 -36
  429. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.d.ts +2 -3
  430. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js +0 -2
  431. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js.map +1 -1
  432. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs +0 -2
  433. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs.map +1 -1
  434. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +39 -125
  435. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js.map +1 -1
  436. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs +34 -120
  437. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs.map +1 -1
  438. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.d.ts +2 -16
  439. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js +12 -54
  440. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js.map +1 -1
  441. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.mjs +11 -50
  442. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.mjs.map +1 -1
  443. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/assets/ArrowLeftPrimary.svg.js +5 -5
  444. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/assets/ArrowRightPrimary.svg.js +5 -5
  445. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +5 -5
  446. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CheckboxSection.js +2 -2
  447. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +6 -6
  448. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
  449. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/SliderSection.js +3 -3
  450. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
  451. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
  452. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
  453. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
  454. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +7 -7
  455. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +7 -7
  456. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js.map +1 -1
  457. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.mjs +1 -1
  458. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.mjs.map +1 -1
  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 +19 -19
  462. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js.map +1 -1
  463. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +4 -4
  464. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs.map +1 -1
  465. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
  466. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
  467. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
  468. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
  469. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.js +2 -2
  470. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +8 -7
  471. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js.map +1 -1
  472. package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs +2 -1
  473. package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs.map +1 -1
  474. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.d.ts +1 -1
  475. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.js +1 -3
  476. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +1 -0
  477. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.mjs +1 -3
  478. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +1 -0
  479. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.d.ts +0 -1
  480. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.js +7 -10
  481. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +1 -0
  482. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.mjs +7 -10
  483. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +1 -0
  484. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.types.d.ts +0 -1
  485. package/lib/components/ResourceCalculatorV1/components/index.d.ts +1 -0
  486. package/lib/components/ResourceCalculatorV1/components/index.js +5 -0
  487. package/lib/components/{Header/LogoIcon → ResourceCalculatorV1/components}/index.js.map +1 -1
  488. package/lib/components/{Header/LogoIcon → ResourceCalculatorV1/components}/index.mjs +1 -1
  489. package/lib/components/ResourceCalculatorV1/translations/en.json.js +4 -6
  490. package/lib/components/ResourceCalculatorV1/translations/en.json.js.map +1 -1
  491. package/lib/components/ResourceCalculatorV1/translations/en.json.mjs +4 -6
  492. package/lib/components/ResourceCalculatorV1/translations/en.json.mjs.map +1 -1
  493. package/lib/components/ResourceCalculatorV1/translations/useResourceCalculatorTranslation.d.ts +2 -2
  494. package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.js +5 -5
  495. package/lib/components/ScrollWrapper/ScrollWrapper.js +17 -17
  496. package/lib/components/Search/Input/Input.d.ts +1 -1
  497. package/lib/components/Search/Input/Input.js +8 -8
  498. package/lib/components/Search/Input/Input.js.map +1 -1
  499. package/lib/components/Search/Input/Input.mjs +4 -4
  500. package/lib/components/Search/Input/Input.mjs.map +1 -1
  501. package/lib/components/Search/Input/Input.styles.js +1 -0
  502. package/lib/components/Search/Input/Input.styles.js.map +1 -1
  503. package/lib/components/Search/Input/Input.styles.mjs +1 -0
  504. package/lib/components/Search/Input/Input.styles.mjs.map +1 -1
  505. package/lib/components/Search/Input/Input.types.d.ts +2 -3
  506. package/lib/components/Search/Modal/Modal.js +3 -3
  507. package/lib/components/StorageSliders/Slider/Slider.js +3 -3
  508. package/lib/components/StorageSliders/StorageSliders.context.js +19 -19
  509. package/lib/components/StorageSliders/StorageSliders.js +4 -4
  510. package/lib/components/Tooltip/Tooltip.js +5 -5
  511. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js +7 -7
  512. package/lib/components/VariantSelector/Variant/Variant.js +40 -40
  513. package/lib/components/VariantSelector/VariantSelector.js +16 -16
  514. package/lib/components/VideoPlayerNew/VideoPlayer.js +21 -21
  515. package/lib/components/VideoPlayerNew/VideoPlayer.mjs +2 -2
  516. package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
  517. package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
  518. package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
  519. package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
  520. package/lib/components/index.d.ts +0 -3
  521. package/lib/components/index.js +30 -36
  522. package/lib/components/index.js.map +1 -1
  523. package/lib/components/index.mjs +30 -36
  524. package/lib/components/index.mjs.map +1 -1
  525. package/lib/constants/icons/generic/carouselArrowRight.svg.js +5 -5
  526. package/lib/constants/icons/generic/index.js +3 -3
  527. package/lib/constants/icons/header/account.svg.js +5 -5
  528. package/lib/constants/icons/header/globe.svg.js +5 -5
  529. package/lib/constants/icons/header/index.js +9 -9
  530. package/lib/constants/icons/header/logoUnifi.svg.js +5 -5
  531. package/lib/constants/icons/menu/index.d.ts +0 -4
  532. package/lib/constants/icons/menu/index.js +0 -36
  533. package/lib/constants/icons/menu/index.js.map +1 -1
  534. package/lib/constants/icons/menu/index.mjs +0 -8
  535. package/lib/constants/icons/menu/index.mjs.map +1 -1
  536. package/lib/constants/keyFeatureIcons.js +2 -2
  537. package/lib/constants/keyFeatureIcons.js.map +1 -1
  538. package/lib/constants/keyFeatureIcons.mjs +2 -2
  539. package/lib/constants/keyFeatureIcons.mjs.map +1 -1
  540. package/lib/constants/proStoreCategories/mapping/filters.d.ts +0 -15
  541. package/lib/constants/proStoreCategories/mapping/filters.js +0 -15
  542. package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
  543. package/lib/constants/proStoreCategories/mapping/filters.mjs +0 -15
  544. package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
  545. package/lib/constants/proStoreCategories/mapping/index.d.ts +5 -3
  546. package/lib/constants/proStoreCategories/mapping/index.js +73 -58
  547. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  548. package/lib/constants/proStoreCategories/mapping/index.mjs +71 -57
  549. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  550. package/lib/constants/proStoreCategories/mapping/mapping.d.ts +0 -4
  551. package/lib/constants/proStoreCategories/mapping/redirects.js +5 -12
  552. package/lib/constants/proStoreCategories/mapping/redirects.js.map +1 -1
  553. package/lib/constants/proStoreCategories/mapping/redirects.mjs +5 -12
  554. package/lib/constants/proStoreCategories/mapping/redirects.mjs.map +1 -1
  555. package/lib/constants/proStoreCategories/mapping/uisp.d.ts +1 -0
  556. package/lib/constants/proStoreCategories/mapping/uisp.js +1 -0
  557. package/lib/constants/proStoreCategories/mapping/uisp.js.map +1 -1
  558. package/lib/constants/proStoreCategories/mapping/uisp.mjs +1 -0
  559. package/lib/constants/proStoreCategories/mapping/uisp.mjs.map +1 -1
  560. package/lib/constants/proStoreCategories/mapping/unifi.d.ts +8 -9
  561. package/lib/constants/proStoreCategories/mapping/unifi.js +8 -9
  562. package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
  563. package/lib/constants/proStoreCategories/mapping/unifi.mjs +8 -9
  564. package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
  565. package/lib/constants/proStoreCategories/translations/ar.json.js +8 -9
  566. package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
  567. package/lib/constants/proStoreCategories/translations/ar.json.mjs +8 -9
  568. package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
  569. package/lib/constants/proStoreCategories/translations/de.json.js +8 -9
  570. package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
  571. package/lib/constants/proStoreCategories/translations/de.json.mjs +8 -9
  572. package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
  573. package/lib/constants/proStoreCategories/translations/el.json.js +8 -9
  574. package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
  575. package/lib/constants/proStoreCategories/translations/el.json.mjs +8 -9
  576. package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
  577. package/lib/constants/proStoreCategories/translations/en.json.js +7 -3
  578. package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
  579. package/lib/constants/proStoreCategories/translations/en.json.mjs +7 -4
  580. package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
  581. package/lib/constants/proStoreCategories/translations/es.json.js +8 -9
  582. package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
  583. package/lib/constants/proStoreCategories/translations/es.json.mjs +8 -9
  584. package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
  585. package/lib/constants/proStoreCategories/translations/fr.json.js +8 -9
  586. package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
  587. package/lib/constants/proStoreCategories/translations/fr.json.mjs +8 -9
  588. package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
  589. package/lib/constants/proStoreCategories/translations/it.json.js +8 -9
  590. package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
  591. package/lib/constants/proStoreCategories/translations/it.json.mjs +8 -9
  592. package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
  593. package/lib/constants/proStoreCategories/translations/ja.json.js +8 -9
  594. package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
  595. package/lib/constants/proStoreCategories/translations/ja.json.mjs +8 -9
  596. package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
  597. package/lib/constants/proStoreCategories/translations/pt-BR.json.js +8 -9
  598. package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
  599. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +8 -9
  600. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
  601. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +8 -9
  602. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
  603. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +8 -9
  604. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
  605. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +8 -9
  606. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
  607. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +8 -9
  608. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
  609. package/lib/constants/proStoreFilters/mapping.d.ts +2 -21
  610. package/lib/constants/proStoreFilters/mapping.js +7 -88
  611. package/lib/constants/proStoreFilters/mapping.js.map +1 -1
  612. package/lib/constants/proStoreFilters/mapping.mjs +7 -88
  613. package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
  614. package/lib/constants/shopify/keyFeatureIcons.js +11 -11
  615. package/lib/constants/shopify/keyFeatureIcons.js.map +1 -1
  616. package/lib/constants/shopify/keyFeatureIcons.mjs +11 -11
  617. package/lib/constants/shopify/keyFeatureIcons.mjs.map +1 -1
  618. package/lib/constants/theme.js +0 -4
  619. package/lib/constants/theme.js.map +1 -1
  620. package/lib/constants/theme.mjs +0 -4
  621. package/lib/constants/theme.mjs.map +1 -1
  622. package/lib/contexts/MenuContext/context.js +33 -33
  623. package/lib/contexts/MenuContext/context.js.map +1 -1
  624. package/lib/contexts/MenuContext/context.mjs +1 -1
  625. package/lib/contexts/MenuContext/context.mjs.map +1 -1
  626. package/lib/contexts/MenuContext/mapping.js +0 -12
  627. package/lib/contexts/MenuContext/mapping.js.map +1 -1
  628. package/lib/contexts/MenuContext/mapping.mjs +0 -11
  629. package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
  630. package/lib/contexts/MenuContext/types.js.map +1 -1
  631. package/lib/contexts/MenuContext/types.mjs.map +1 -1
  632. package/lib/contexts/MenuContext/utils.d.ts +1 -6
  633. package/lib/contexts/MenuContext/utils.js +0 -16
  634. package/lib/contexts/MenuContext/utils.js.map +1 -1
  635. package/lib/contexts/MenuContext/utils.mjs +1 -16
  636. package/lib/contexts/MenuContext/utils.mjs.map +1 -1
  637. package/lib/contexts/index.d.ts +0 -1
  638. package/lib/contexts/index.js +0 -2
  639. package/lib/contexts/index.js.map +1 -1
  640. package/lib/contexts/index.mjs +0 -2
  641. package/lib/contexts/index.mjs.map +1 -1
  642. package/lib/helpers/proStoreCategories.js +2 -2
  643. package/lib/helpers/ux.d.ts +1 -9
  644. package/lib/helpers/ux.js +0 -15
  645. package/lib/helpers/ux.js.map +1 -1
  646. package/lib/helpers/ux.mjs +1 -15
  647. package/lib/helpers/ux.mjs.map +1 -1
  648. package/lib/hooks/useHasTouch.js +3 -3
  649. package/lib/hooks/useHddRetentionCalculator.js +5 -5
  650. package/lib/hooks/useHorizontalScroll.js +2 -2
  651. package/lib/hooks/useLockBodyScrollCustom.js +3 -3
  652. package/lib/hooks/useScrollToY.js +2 -2
  653. package/lib/hooks/useTestMediaElementVolumeSetter.js +3 -3
  654. package/lib/hooks/useTranslation.js +6 -6
  655. package/lib/types/product.js.map +1 -1
  656. package/lib/types/product.mjs.map +1 -1
  657. package/lib/utils/address.js +1 -1
  658. package/lib/utils/address.js.map +1 -1
  659. package/lib/utils/address.mjs +1 -1
  660. package/lib/utils/address.mjs.map +1 -1
  661. package/lib/utils/productSort.js.map +1 -1
  662. package/lib/utils/productSort.mjs.map +1 -1
  663. package/package.json +1 -1
  664. package/lib/assets/aggregation.png +0 -0
  665. package/lib/assets/bullet.png +0 -0
  666. package/lib/assets/camera-special-devices.png +0 -0
  667. package/lib/assets/cloud-gateway-overview.png +0 -0
  668. package/lib/assets/compact-switching.png +0 -0
  669. package/lib/assets/compact.png +0 -0
  670. package/lib/assets/consolidatedSpecialDevices.svg +0 -5
  671. package/lib/assets/digital-signage.png +0 -0
  672. package/lib/assets/dome-turret.png +0 -0
  673. package/lib/assets/door-access.png +0 -0
  674. package/lib/assets/doorAccess.svg +0 -5
  675. package/lib/assets/education.jpg +0 -0
  676. package/lib/assets/efg.png +0 -0
  677. package/lib/assets/enterprise-scale.png +0 -0
  678. package/lib/assets/enterprise.jpg +0 -0
  679. package/lib/assets/ev-charging.png +0 -0
  680. package/lib/assets/flagship.jpg +0 -0
  681. package/lib/assets/flexible-outdoor.jpg +0 -0
  682. package/lib/assets/gbe-1u-2.5and10.png +0 -0
  683. package/lib/assets/gbe-1u.png +0 -0
  684. package/lib/assets/hospitality.jpg +0 -0
  685. package/lib/assets/how-it-works.jpg +0 -0
  686. package/lib/assets/icon-location-pin.svg +0 -5
  687. package/lib/assets/icons/arrowDown.svg.mjs +0 -3
  688. package/lib/assets/icons/menu/icon-location-pin.svg.js +0 -27
  689. package/lib/assets/icons/menu/icon-location-pin.svg.js.map +0 -1
  690. package/lib/assets/icons/menu/icon-location-pin.svg.mjs +0 -3
  691. package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +0 -1
  692. package/lib/assets/icons/zoomOut.svg.js +0 -27
  693. package/lib/assets/icons/zoomOut.svg.js.map +0 -1
  694. package/lib/assets/icons/zoomOut.svg.mjs +0 -3
  695. package/lib/assets/icons/zoomOut.svg.mjs.map +0 -1
  696. package/lib/assets/industrial2.jpg +0 -0
  697. package/lib/assets/keyFeatures/clients_v2.svg +0 -3
  698. package/lib/assets/keyFeatures/clients_v2.svg.js.map +0 -1
  699. package/lib/assets/keyFeatures/clients_v2.svg.mjs +0 -3
  700. package/lib/assets/keyFeatures/clients_v2.svg.mjs.map +0 -1
  701. package/lib/assets/keyFeatures/phased_array_v2.svg.mjs.map +0 -1
  702. package/lib/assets/large-scale.png +0 -0
  703. package/lib/assets/managed-voip.png +0 -0
  704. package/lib/assets/mega-capacity.jpg +0 -0
  705. package/lib/assets/mobile-routing.png +0 -0
  706. package/lib/assets/nextai-camera.jpg +0 -0
  707. package/lib/assets/nextai-cyber.jpg +0 -0
  708. package/lib/assets/overview.svg +0 -3
  709. package/lib/assets/premium-audio.png +0 -0
  710. package/lib/assets/ptz.png +0 -0
  711. package/lib/assets/retail.jpg +0 -0
  712. package/lib/assets/sd-wan-sase.jpg +0 -0
  713. package/lib/assets/security-overview.png +0 -0
  714. package/lib/assets/site-manager.jpg +0 -0
  715. package/lib/assets/stadium.jpg +0 -0
  716. package/lib/assets/switching-overview.png +0 -0
  717. package/lib/assets/tco-calculator.jpg +0 -0
  718. package/lib/assets/ucg-max.png +0 -0
  719. package/lib/assets/unasDrive.svg +0 -3
  720. package/lib/assets/unifi-drive.png +0 -0
  721. package/lib/assets/video-recorders.png +0 -0
  722. package/lib/assets/wall.jpg +0 -0
  723. package/lib/assets/wifi-bridging.png +0 -0
  724. package/lib/assets/wifi-flagship.png +0 -0
  725. package/lib/assets/wifi-integrated.png +0 -0
  726. package/lib/assets/wifi-mega-capacity.png +0 -0
  727. package/lib/assets/wifi-outdoor.png +0 -0
  728. package/lib/assets/wifi-overview.png +0 -0
  729. package/lib/assets/wifi-wall.png +0 -0
  730. package/lib/assets/zoomOut.svg +0 -3
  731. package/lib/components/Header/LogoIcon/LogoIcon.d.ts +0 -7
  732. package/lib/components/Header/LogoIcon/LogoIcon.js +0 -46
  733. package/lib/components/Header/LogoIcon/LogoIcon.js.map +0 -1
  734. package/lib/components/Header/LogoIcon/LogoIcon.mjs +0 -36
  735. package/lib/components/Header/LogoIcon/LogoIcon.mjs.map +0 -1
  736. package/lib/components/Header/LogoIcon/index.d.ts +0 -1
  737. package/lib/components/Header/LogoIcon/index.js +0 -6
  738. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +0 -1
  739. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +0 -1
  740. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +0 -1
  741. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +0 -1
  742. package/lib/components/MicrositeHeader/MicrositeHeader.d.ts +0 -2
  743. package/lib/components/MicrositeHeader/MicrositeHeader.js +0 -30
  744. package/lib/components/MicrositeHeader/MicrositeHeader.js.map +0 -1
  745. package/lib/components/MicrositeHeader/MicrositeHeader.mjs +0 -28
  746. package/lib/components/MicrositeHeader/MicrositeHeader.mjs.map +0 -1
  747. package/lib/components/MicrositeHeader/MicrositeHeader.styles.d.ts +0 -2
  748. package/lib/components/MicrositeHeader/MicrositeHeader.types.d.ts +0 -7
  749. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.d.ts +0 -2
  750. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.js +0 -139
  751. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.js.map +0 -1
  752. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.mjs +0 -130
  753. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.mjs.map +0 -1
  754. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.d.ts +0 -59
  755. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.js +0 -424
  756. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.js.map +0 -1
  757. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.mjs +0 -389
  758. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.mjs.map +0 -1
  759. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.types.d.ts +0 -21
  760. package/lib/components/MicrositeHeader/components/DropdownMenu/index.d.ts +0 -1
  761. package/lib/components/MicrositeHeader/components/DropdownMenu/index.js +0 -6
  762. package/lib/components/MicrositeHeader/components/DropdownMenu/index.js.map +0 -1
  763. package/lib/components/MicrositeHeader/components/DropdownMenu/index.mjs +0 -3
  764. package/lib/components/MicrositeHeader/components/DropdownMenu/index.mjs.map +0 -1
  765. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.d.ts +0 -2
  766. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.d.ts +0 -22
  767. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.js +0 -148
  768. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.js.map +0 -1
  769. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.mjs +0 -126
  770. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.mjs.map +0 -1
  771. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.types.d.ts +0 -12
  772. package/lib/components/MicrositeHeader/components/FirstLevelMenu/index.d.ts +0 -1
  773. package/lib/components/MicrositeHeader/components/Navigation/Navigation.d.ts +0 -7
  774. package/lib/components/MicrositeHeader/components/Navigation/Navigation.js +0 -244
  775. package/lib/components/MicrositeHeader/components/Navigation/Navigation.js.map +0 -1
  776. package/lib/components/MicrositeHeader/components/Navigation/Navigation.mjs +0 -233
  777. package/lib/components/MicrositeHeader/components/Navigation/Navigation.mjs.map +0 -1
  778. package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.d.ts +0 -36
  779. package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.js +0 -233
  780. package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.js.map +0 -1
  781. package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.mjs +0 -211
  782. package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.mjs.map +0 -1
  783. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.d.ts +0 -8
  784. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.js +0 -47
  785. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.js.map +0 -1
  786. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.mjs +0 -39
  787. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.mjs.map +0 -1
  788. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.d.ts +0 -1
  789. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.js +0 -6
  790. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.js.map +0 -1
  791. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.mjs +0 -3
  792. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.mjs.map +0 -1
  793. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.d.ts +0 -5
  794. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.js +0 -74
  795. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.js.map +0 -1
  796. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.mjs +0 -72
  797. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.mjs.map +0 -1
  798. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.d.ts +0 -30
  799. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.js +0 -201
  800. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.js.map +0 -1
  801. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.mjs +0 -179
  802. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.mjs.map +0 -1
  803. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.d.ts +0 -1
  804. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.js +0 -6
  805. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.js.map +0 -1
  806. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.mjs +0 -3
  807. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.mjs.map +0 -1
  808. package/lib/components/MicrositeHeader/components/Navigation/index.d.ts +0 -1
  809. package/lib/components/MicrositeHeader/components/Navigation/index.js +0 -7
  810. package/lib/components/MicrositeHeader/components/Navigation/index.js.map +0 -1
  811. package/lib/components/MicrositeHeader/components/Navigation/index.mjs +0 -3
  812. package/lib/components/MicrositeHeader/components/Navigation/index.mjs.map +0 -1
  813. package/lib/components/MicrositeHeader/components/SecondLevelMenu/SecondLevelMenu.d.ts +0 -2
  814. package/lib/components/MicrositeHeader/components/SecondLevelMenu/SecondLevelMenu.styles.d.ts +0 -13
  815. package/lib/components/MicrositeHeader/components/SecondLevelMenu/SecondLevelMenu.types.d.ts +0 -11
  816. package/lib/components/MicrositeHeader/components/SecondLevelMenu/index.d.ts +0 -1
  817. package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.d.ts +0 -17
  818. package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.styles.d.ts +0 -13
  819. package/lib/components/MicrositeHeader/components/SiteMapColumns/index.d.ts +0 -1
  820. package/lib/components/MicrositeHeader/index.d.ts +0 -1
  821. package/lib/components/MicrositeHeader/index.js +0 -6
  822. package/lib/components/MicrositeHeader/index.js.map +0 -1
  823. package/lib/components/MicrositeHeader/index.mjs +0 -3
  824. package/lib/components/MicrositeHeader/index.mjs.map +0 -1
  825. package/lib/components/ModelCompareV3/assets/WiFi/flagship.jpg.js.map +0 -1
  826. package/lib/components/ModelCompareV3/assets/WiFi/flagship.jpg.mjs +0 -3
  827. package/lib/components/ModelCompareV3/assets/WiFi/flagship.jpg.mjs.map +0 -1
  828. package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.js +0 -27
  829. package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.js.map +0 -1
  830. package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.mjs +0 -3
  831. package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.mjs.map +0 -1
  832. package/lib/components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.js +0 -27
  833. package/lib/components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.js.map +0 -1
  834. package/lib/components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.mjs +0 -3
  835. package/lib/components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.mjs.map +0 -1
  836. package/lib/components/ModelCompareV3/assets/WiFi/wall.jpg.js.map +0 -1
  837. package/lib/components/ModelCompareV3/assets/WiFi/wall.jpg.mjs +0 -3
  838. package/lib/components/ModelCompareV3/assets/WiFi/wall.jpg.mjs.map +0 -1
  839. package/lib/components/ModelCompareV3/assets/XgsPon/fiberOltXgs.jpg.js +0 -27
  840. package/lib/components/ModelCompareV3/assets/XgsPon/fiberOltXgs.jpg.js.map +0 -1
  841. package/lib/components/ModelCompareV3/assets/XgsPon/fiberOltXgs.jpg.mjs +0 -3
  842. package/lib/components/ModelCompareV3/assets/XgsPon/fiberOltXgs.jpg.mjs.map +0 -1
  843. package/lib/components/ModelCompareV3/data/WiFi.d.ts +0 -2
  844. package/lib/components/ModelCompareV3/data/WiFi.js +0 -23
  845. package/lib/components/ModelCompareV3/data/WiFi.js.map +0 -1
  846. package/lib/components/ModelCompareV3/data/WiFi.mjs +0 -21
  847. package/lib/components/ModelCompareV3/data/WiFi.mjs.map +0 -1
  848. package/lib/components/ModelCompareV3/data/products/fiberOltXgs.js.map +0 -1
  849. package/lib/components/ModelCompareV3/data/products/fiberOltXgs.mjs.map +0 -1
  850. package/lib/components/ModelCompareV3/data/products/wifiFlagship.d.ts +0 -2
  851. package/lib/components/ModelCompareV3/data/products/wifiFlagship.js +0 -70
  852. package/lib/components/ModelCompareV3/data/products/wifiFlagship.js.map +0 -1
  853. package/lib/components/ModelCompareV3/data/products/wifiFlagship.mjs +0 -62
  854. package/lib/components/ModelCompareV3/data/products/wifiFlagship.mjs.map +0 -1
  855. package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.d.ts +0 -2
  856. package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.js +0 -73
  857. package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.js.map +0 -1
  858. package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.mjs +0 -65
  859. package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.mjs.map +0 -1
  860. package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.d.ts +0 -2
  861. package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.js +0 -73
  862. package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.js.map +0 -1
  863. package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.mjs +0 -65
  864. package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.mjs.map +0 -1
  865. package/lib/components/ModelCompareV3/data/products/wifiWall.d.ts +0 -2
  866. package/lib/components/ModelCompareV3/data/products/wifiWall.js +0 -74
  867. package/lib/components/ModelCompareV3/data/products/wifiWall.js.map +0 -1
  868. package/lib/components/ModelCompareV3/data/products/wifiWall.mjs +0 -66
  869. package/lib/components/ModelCompareV3/data/products/wifiWall.mjs.map +0 -1
  870. package/lib/components/ModelCompareV3/data/properties/linkPuncturing.js.map +0 -1
  871. package/lib/components/ModelCompareV3/data/properties/linkPuncturing.mjs +0 -10
  872. package/lib/components/ModelCompareV3/data/properties/linkPuncturing.mjs.map +0 -1
  873. package/lib/components/ModelCompareV3/data/properties/maxTotalThroughput.d.ts +0 -2
  874. package/lib/components/ModelCompareV3/data/properties/maxTotalThroughput.js +0 -18
  875. package/lib/components/ModelCompareV3/data/properties/maxTotalThroughput.js.map +0 -1
  876. package/lib/components/ModelCompareV3/data/properties/maxTotalThroughput.mjs +0 -10
  877. package/lib/components/ModelCompareV3/data/properties/maxTotalThroughput.mjs.map +0 -1
  878. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.d.ts +0 -2
  879. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js +0 -45
  880. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js.map +0 -1
  881. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs +0 -37
  882. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs.map +0 -1
  883. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.d.ts +0 -9
  884. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +0 -54
  885. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +0 -1
  886. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +0 -42
  887. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs.map +0 -1
  888. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.types.d.ts +0 -14
  889. package/lib/components/ProductTechSpecsV2/index.d.ts +0 -1
  890. package/lib/components/ProductTechSpecsV2/index.js +0 -6
  891. package/lib/components/ProductTechSpecsV2/index.js.map +0 -1
  892. package/lib/components/ProductTechSpecsV2/index.mjs +0 -3
  893. package/lib/components/ProductTechSpecsV2/index.mjs.map +0 -1
  894. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.js +0 -27
  895. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.js.map +0 -1
  896. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs +0 -3
  897. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs.map +0 -1
  898. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js +0 -27
  899. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js.map +0 -1
  900. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs +0 -3
  901. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs.map +0 -1
  902. package/lib/constants/icons/menu/consolidatedSpecialDevices.svg.js +0 -27
  903. package/lib/constants/icons/menu/consolidatedSpecialDevices.svg.js.map +0 -1
  904. package/lib/constants/icons/menu/consolidatedSpecialDevices.svg.mjs +0 -3
  905. package/lib/constants/icons/menu/consolidatedSpecialDevices.svg.mjs.map +0 -1
  906. package/lib/constants/icons/menu/doorAccess.svg.js +0 -27
  907. package/lib/constants/icons/menu/doorAccess.svg.js.map +0 -1
  908. package/lib/constants/icons/menu/doorAccess.svg.mjs +0 -3
  909. package/lib/constants/icons/menu/doorAccess.svg.mjs.map +0 -1
  910. package/lib/constants/icons/menu/overview.svg.js +0 -27
  911. package/lib/constants/icons/menu/overview.svg.js.map +0 -1
  912. package/lib/constants/icons/menu/overview.svg.mjs +0 -3
  913. package/lib/constants/icons/menu/overview.svg.mjs.map +0 -1
  914. package/lib/constants/icons/menu/unasDrive.svg.js +0 -27
  915. package/lib/constants/icons/menu/unasDrive.svg.js.map +0 -1
  916. package/lib/constants/icons/menu/unasDrive.svg.mjs +0 -3
  917. package/lib/constants/icons/menu/unasDrive.svg.mjs.map +0 -1
  918. package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.js +0 -27
  919. package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.js.map +0 -1
  920. package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.mjs +0 -3
  921. package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.mjs.map +0 -1
  922. package/lib/contexts/MicrositeMenuContext/assets/bullet.png.js +0 -27
  923. package/lib/contexts/MicrositeMenuContext/assets/bullet.png.js.map +0 -1
  924. package/lib/contexts/MicrositeMenuContext/assets/bullet.png.mjs +0 -3
  925. package/lib/contexts/MicrositeMenuContext/assets/bullet.png.mjs.map +0 -1
  926. package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.js +0 -27
  927. package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.js.map +0 -1
  928. package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.mjs +0 -3
  929. package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.mjs.map +0 -1
  930. package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.js +0 -27
  931. package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.js.map +0 -1
  932. package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.mjs +0 -3
  933. package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.mjs.map +0 -1
  934. package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.js +0 -27
  935. package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.js.map +0 -1
  936. package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.mjs +0 -3
  937. package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.mjs.map +0 -1
  938. package/lib/contexts/MicrositeMenuContext/assets/compact.png.js +0 -27
  939. package/lib/contexts/MicrositeMenuContext/assets/compact.png.js.map +0 -1
  940. package/lib/contexts/MicrositeMenuContext/assets/compact.png.mjs +0 -3
  941. package/lib/contexts/MicrositeMenuContext/assets/compact.png.mjs.map +0 -1
  942. package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.js +0 -27
  943. package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.js.map +0 -1
  944. package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.mjs +0 -3
  945. package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.mjs.map +0 -1
  946. package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.js +0 -27
  947. package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.js.map +0 -1
  948. package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.mjs +0 -3
  949. package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.mjs.map +0 -1
  950. package/lib/contexts/MicrositeMenuContext/assets/door-access.png.js +0 -27
  951. package/lib/contexts/MicrositeMenuContext/assets/door-access.png.js.map +0 -1
  952. package/lib/contexts/MicrositeMenuContext/assets/door-access.png.mjs +0 -3
  953. package/lib/contexts/MicrositeMenuContext/assets/door-access.png.mjs.map +0 -1
  954. package/lib/contexts/MicrositeMenuContext/assets/education.jpg.js +0 -27
  955. package/lib/contexts/MicrositeMenuContext/assets/education.jpg.js.map +0 -1
  956. package/lib/contexts/MicrositeMenuContext/assets/education.jpg.mjs +0 -3
  957. package/lib/contexts/MicrositeMenuContext/assets/education.jpg.mjs.map +0 -1
  958. package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.js +0 -27
  959. package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.js.map +0 -1
  960. package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.mjs +0 -3
  961. package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.mjs.map +0 -1
  962. package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.js +0 -27
  963. package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.js.map +0 -1
  964. package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.mjs +0 -3
  965. package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.mjs.map +0 -1
  966. package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.js +0 -27
  967. package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.js.map +0 -1
  968. package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.mjs +0 -3
  969. package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.mjs.map +0 -1
  970. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.js +0 -27
  971. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.js.map +0 -1
  972. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.mjs +0 -3
  973. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.mjs.map +0 -1
  974. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.js +0 -27
  975. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.js.map +0 -1
  976. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.mjs +0 -3
  977. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.mjs.map +0 -1
  978. package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.js +0 -27
  979. package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.js.map +0 -1
  980. package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.mjs +0 -3
  981. package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.mjs.map +0 -1
  982. package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.js +0 -27
  983. package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.js.map +0 -1
  984. package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.mjs +0 -3
  985. package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.mjs.map +0 -1
  986. package/lib/contexts/MicrositeMenuContext/assets/index.d.ts +0 -41
  987. package/lib/contexts/MicrositeMenuContext/assets/index.js +0 -45
  988. package/lib/contexts/MicrositeMenuContext/assets/index.js.map +0 -1
  989. package/lib/contexts/MicrositeMenuContext/assets/index.mjs +0 -43
  990. package/lib/contexts/MicrositeMenuContext/assets/index.mjs.map +0 -1
  991. package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.js +0 -27
  992. package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.js.map +0 -1
  993. package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.mjs +0 -3
  994. package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.mjs.map +0 -1
  995. package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.js +0 -27
  996. package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.js.map +0 -1
  997. package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.mjs +0 -3
  998. package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.mjs.map +0 -1
  999. package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.js +0 -27
  1000. package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.js.map +0 -1
  1001. package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.mjs +0 -3
  1002. package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.mjs.map +0 -1
  1003. package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.js +0 -27
  1004. package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.js.map +0 -1
  1005. package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.mjs +0 -3
  1006. package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.mjs.map +0 -1
  1007. package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.js +0 -27
  1008. package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.js.map +0 -1
  1009. package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.mjs +0 -3
  1010. package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.mjs.map +0 -1
  1011. package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.js +0 -27
  1012. package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.js.map +0 -1
  1013. package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.mjs +0 -3
  1014. package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.mjs.map +0 -1
  1015. package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.js +0 -27
  1016. package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.js.map +0 -1
  1017. package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.mjs +0 -3
  1018. package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.mjs.map +0 -1
  1019. package/lib/contexts/MicrositeMenuContext/assets/ptz.png.js +0 -27
  1020. package/lib/contexts/MicrositeMenuContext/assets/ptz.png.js.map +0 -1
  1021. package/lib/contexts/MicrositeMenuContext/assets/ptz.png.mjs +0 -3
  1022. package/lib/contexts/MicrositeMenuContext/assets/ptz.png.mjs.map +0 -1
  1023. package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.js +0 -27
  1024. package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.js.map +0 -1
  1025. package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.mjs +0 -3
  1026. package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.mjs.map +0 -1
  1027. package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.js +0 -27
  1028. package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.js.map +0 -1
  1029. package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.mjs +0 -3
  1030. package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.mjs.map +0 -1
  1031. package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.js +0 -27
  1032. package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.js.map +0 -1
  1033. package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.mjs +0 -3
  1034. package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.mjs.map +0 -1
  1035. package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.js +0 -27
  1036. package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.js.map +0 -1
  1037. package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.mjs +0 -3
  1038. package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.mjs.map +0 -1
  1039. package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.js +0 -27
  1040. package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.js.map +0 -1
  1041. package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.mjs +0 -3
  1042. package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.mjs.map +0 -1
  1043. package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.js +0 -27
  1044. package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.js.map +0 -1
  1045. package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.mjs +0 -3
  1046. package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.mjs.map +0 -1
  1047. package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.js +0 -27
  1048. package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.js.map +0 -1
  1049. package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.mjs +0 -3
  1050. package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.mjs.map +0 -1
  1051. package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.js +0 -27
  1052. package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.js.map +0 -1
  1053. package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.mjs +0 -3
  1054. package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.mjs.map +0 -1
  1055. package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.js +0 -27
  1056. package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.js.map +0 -1
  1057. package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.mjs +0 -3
  1058. package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.mjs.map +0 -1
  1059. package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.js +0 -27
  1060. package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.js.map +0 -1
  1061. package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.mjs +0 -3
  1062. package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.mjs.map +0 -1
  1063. package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.js +0 -27
  1064. package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.js.map +0 -1
  1065. package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.mjs +0 -3
  1066. package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.mjs.map +0 -1
  1067. package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.js +0 -27
  1068. package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.js.map +0 -1
  1069. package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.mjs +0 -3
  1070. package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.mjs.map +0 -1
  1071. package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.js +0 -27
  1072. package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.js.map +0 -1
  1073. package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.mjs +0 -3
  1074. package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.mjs.map +0 -1
  1075. package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.js +0 -27
  1076. package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.js.map +0 -1
  1077. package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.mjs +0 -3
  1078. package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.mjs.map +0 -1
  1079. package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.js +0 -27
  1080. package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.js.map +0 -1
  1081. package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.mjs +0 -3
  1082. package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.mjs.map +0 -1
  1083. package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.js +0 -27
  1084. package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.js.map +0 -1
  1085. package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.mjs +0 -3
  1086. package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.mjs.map +0 -1
  1087. package/lib/contexts/MicrositeMenuContext/context.d.ts +0 -36
  1088. package/lib/contexts/MicrositeMenuContext/context.js +0 -100
  1089. package/lib/contexts/MicrositeMenuContext/context.js.map +0 -1
  1090. package/lib/contexts/MicrositeMenuContext/context.mjs +0 -96
  1091. package/lib/contexts/MicrositeMenuContext/context.mjs.map +0 -1
  1092. package/lib/contexts/MicrositeMenuContext/index.d.ts +0 -1
  1093. package/lib/contexts/MicrositeMenuContext/index.js +0 -8
  1094. package/lib/contexts/MicrositeMenuContext/index.js.map +0 -1
  1095. package/lib/contexts/MicrositeMenuContext/index.mjs +0 -3
  1096. package/lib/contexts/MicrositeMenuContext/index.mjs.map +0 -1
  1097. package/lib/contexts/MicrositeMenuContext/mapping.d.ts +0 -16
  1098. package/lib/contexts/MicrositeMenuContext/mapping.js +0 -789
  1099. package/lib/contexts/MicrositeMenuContext/mapping.js.map +0 -1
  1100. package/lib/contexts/MicrositeMenuContext/mapping.mjs +0 -713
  1101. package/lib/contexts/MicrositeMenuContext/mapping.mjs.map +0 -1
  1102. package/lib/contexts/MicrositeMenuContext/translations/ar.json.js +0 -8
  1103. package/lib/contexts/MicrositeMenuContext/translations/ar.json.js.map +0 -1
  1104. package/lib/contexts/MicrositeMenuContext/translations/ar.json.mjs +0 -3
  1105. package/lib/contexts/MicrositeMenuContext/translations/ar.json.mjs.map +0 -1
  1106. package/lib/contexts/MicrositeMenuContext/translations/de.json.js +0 -8
  1107. package/lib/contexts/MicrositeMenuContext/translations/de.json.js.map +0 -1
  1108. package/lib/contexts/MicrositeMenuContext/translations/de.json.mjs +0 -3
  1109. package/lib/contexts/MicrositeMenuContext/translations/de.json.mjs.map +0 -1
  1110. package/lib/contexts/MicrositeMenuContext/translations/el.json.js +0 -8
  1111. package/lib/contexts/MicrositeMenuContext/translations/el.json.js.map +0 -1
  1112. package/lib/contexts/MicrositeMenuContext/translations/el.json.mjs +0 -3
  1113. package/lib/contexts/MicrositeMenuContext/translations/el.json.mjs.map +0 -1
  1114. package/lib/contexts/MicrositeMenuContext/translations/en.json.js +0 -128
  1115. package/lib/contexts/MicrositeMenuContext/translations/en.json.js.map +0 -1
  1116. package/lib/contexts/MicrositeMenuContext/translations/en.json.mjs +0 -123
  1117. package/lib/contexts/MicrositeMenuContext/translations/en.json.mjs.map +0 -1
  1118. package/lib/contexts/MicrositeMenuContext/translations/es.json.js +0 -8
  1119. package/lib/contexts/MicrositeMenuContext/translations/es.json.js.map +0 -1
  1120. package/lib/contexts/MicrositeMenuContext/translations/es.json.mjs +0 -3
  1121. package/lib/contexts/MicrositeMenuContext/translations/es.json.mjs.map +0 -1
  1122. package/lib/contexts/MicrositeMenuContext/translations/fr.json.js +0 -8
  1123. package/lib/contexts/MicrositeMenuContext/translations/fr.json.js.map +0 -1
  1124. package/lib/contexts/MicrositeMenuContext/translations/fr.json.mjs +0 -3
  1125. package/lib/contexts/MicrositeMenuContext/translations/fr.json.mjs.map +0 -1
  1126. package/lib/contexts/MicrositeMenuContext/translations/it.json.js +0 -8
  1127. package/lib/contexts/MicrositeMenuContext/translations/it.json.js.map +0 -1
  1128. package/lib/contexts/MicrositeMenuContext/translations/it.json.mjs +0 -3
  1129. package/lib/contexts/MicrositeMenuContext/translations/it.json.mjs.map +0 -1
  1130. package/lib/contexts/MicrositeMenuContext/translations/ja.json.js +0 -8
  1131. package/lib/contexts/MicrositeMenuContext/translations/ja.json.js.map +0 -1
  1132. package/lib/contexts/MicrositeMenuContext/translations/ja.json.mjs +0 -3
  1133. package/lib/contexts/MicrositeMenuContext/translations/ja.json.mjs.map +0 -1
  1134. package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.js +0 -8
  1135. package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.js.map +0 -1
  1136. package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.mjs +0 -3
  1137. package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.mjs.map +0 -1
  1138. package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.js +0 -8
  1139. package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.js.map +0 -1
  1140. package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.mjs +0 -3
  1141. package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.mjs.map +0 -1
  1142. package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.js +0 -8
  1143. package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.js.map +0 -1
  1144. package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.mjs +0 -3
  1145. package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.mjs.map +0 -1
  1146. package/lib/contexts/MicrositeMenuContext/translations.d.ts +0 -7
  1147. package/lib/contexts/MicrositeMenuContext/translations.js +0 -47
  1148. package/lib/contexts/MicrositeMenuContext/translations.js.map +0 -1
  1149. package/lib/contexts/MicrositeMenuContext/translations.mjs +0 -25
  1150. package/lib/contexts/MicrositeMenuContext/translations.mjs.map +0 -1
  1151. package/lib/contexts/MicrositeMenuContext/types.d.ts +0 -102
  1152. package/lib/contexts/MicrositeMenuContext/types.js +0 -16
  1153. package/lib/contexts/MicrositeMenuContext/types.js.map +0 -1
  1154. package/lib/contexts/MicrositeMenuContext/types.mjs +0 -15
  1155. package/lib/contexts/MicrositeMenuContext/types.mjs.map +0 -1
  1156. /package/lib/assets/{clients_v2.svg → keyFeatures/clients.svg} +0 -0
  1157. /package/lib/assets/keyFeatures/{phased_array_v2.svg → phased_array.svg} +0 -0
  1158. /package/lib/assets/{fiberOltXgs.jpg → uispFiberOltXgs.jpg} +0 -0
  1159. /package/lib/{assets/icons → components/MobileModal/assets}/arrowDown.svg.js.map +0 -0
  1160. /package/lib/{assets/icons → components/MobileModal/assets}/arrowDown.svg.mjs.map +0 -0
  1161. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.d.ts +0 -0
  1162. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.js +0 -0
  1163. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.js.map +0 -0
  1164. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.mjs +0 -0
  1165. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.mjs.map +0 -0
  1166. /package/lib/components/{Header/LogoIcon → ResourceCalculatorV1/components}/index.mjs.map +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"theme.mjs","sources":["../../src/constants/theme.tsx"],"sourcesContent":["import type { Motif } from \"@ubnt/ui-components/utils\";\nimport type { DefaultTheme } from \"styled-components\";\n\nexport const DEFAULT_MOTIF: Motif = \"light\";\n\n// TODO for future add group separations like \"whites\", \"greys\", \"blues\"\nconst colors = {\n menu: {\n base: {\n light: \"#FFFFFF\",\n dark: \"#000000\",\n },\n transparent: {\n light: \"rgba(255 255 255 / 0.6)\",\n dark: \"rgba(0 0 0 / 0.6)\",\n },\n baseAccent: {\n light: \"#E5E5E5\",\n dark: \"#2D2D2D\",\n },\n text: {\n light: \"#393939\",\n dark: \"#FFFFFF\",\n },\n textAccent: {\n light: \"#8A8A8B\",\n dark: \"#8A8A8B\",\n },\n active: {\n light: \"#006FFF\",\n dark: \"#006FFF\",\n },\n categoryIcon: {\n light: \"#4D4D4D\",\n dark: \"#8E8E8E\",\n },\n categoryIconActive: {\n light: \"#1D1D1F\",\n dark: \"#FFFFFF\",\n },\n mobileMenu: {\n light: \"#FFFFFF\",\n dark: \"#1B1B1B\",\n },\n mobileMenuAccent: {\n light: \"#EDEDF0\",\n dark: \"#2D2D2D\",\n },\n mobileMenuText: {\n light: \"rgba(0 0 0 / 0.65)\",\n dark: \"#F6F6F8\",\n },\n mobileMenuItem: {\n light: \"#F6F6F8\",\n dark: \"#1B1B1B\",\n },\n mobileMenuActive: {\n light: \"#FAFBFB\",\n dark: \"#121212\",\n },\n modal: {\n light: \"#FFFFFF\",\n dark: \"#FFFFFF\",\n },\n modalActiveItem: {\n light: \"#F5F5F5\",\n dark: \"#F5F5F5\",\n },\n cartModal: {\n light: \"#FFFFFF\",\n dark: \"#3F4148\",\n },\n cartModalText: {\n light: \"#36373C\",\n dark: \"#FFFFFF\",\n },\n micrositeSubMenuText: {\n light: \"#36373C\",\n dark: \"#CDD1D5\",\n },\n proSubMenuText: {\n light: \"#50565E\",\n dark: \"#CDD1D5\",\n },\n },\n alabaste: \"#FBFBFB\",\n aliceBlue: \"#F2F8FF\",\n aluminium: \"#A4A7B5\",\n anakiwa: \"#99C5FF\",\n sonicSilver: \"#757575\",\n vulcan: \"#393A3F\",\n athensGreyDark: \"#EDEDF0\",\n athensGreyLight: \"#F6F6F8\",\n athensGreyLight65: \"#F6F6F8A6\",\n weatheredStone: \"#c4c4c4\",\n black: \"#000000\",\n black10: \"rgba(0, 0, 0, 0.10)\",\n black20: \"rgba(0, 0, 0, 0.20)\",\n black25: \"rgba(0, 0, 0, 0.25)\",\n black45: \"rgba(0, 0, 0, 0.45)\",\n black50: \"rgba(0, 0, 0, 0.50)\",\n black65: \"rgba(0, 0, 0, 0.65)\",\n black85: \"rgba(0, 0, 0, 0.85)\",\n blackOrchid: \"#525461\",\n shuttleGray: \"#6B6D76\",\n blackHaze: \"#FAFBFB\",\n buttercup: \"#F5A623\",\n codGrey: \"#0E0E0E\",\n cornFlower: \"#5C98E6\",\n cornFlower10: \"rgba(0, 111, 255, 0.10)\",\n cornFlower20: \"rgba(0, 111, 255, 0.20)\",\n cornFlower30: \"rgba(0, 111, 255, 0.30)\",\n dodgerblue: \"#338CFF\",\n geebung: \"#C4851C\",\n emerald: \"#39CC64\",\n ghost: \"#C8CAD3\",\n grey45: \"rgba(0, 0, 0, 0.45);\",\n greySuit: \"#BDBFCC\",\n magnolia: \"#FCFBFF\",\n mediumPurple: \"#A252E3\",\n mischka: \"#DBDCE1\",\n mischka50: \"#DBDCE180\",\n offYellow: \"#FEF6E9\",\n pattensBlue: \"#D3E6FF\",\n pomegranate: \"#F03A3E\",\n sunsetOrange: \"#FF4E52\",\n primaryBlue: \"#006FFF\",\n primaryBlue90: \"#006FFFE6\",\n seaGreen: \"#2EA350\",\n selago: \"#F6EEFC\",\n shark: \"#212124;\",\n smalt: \"#003C9E\",\n tara: \"#EBFAEF\",\n solitude: \"#E5F1FF\",\n waterloo: \"#838691\",\n woodsmoke: \"#141415\",\n whisper: \"#faf9fb\",\n white: \"#FFFFFF\",\n whiteLilac: \"#F8F9FD\",\n};\n\n// taken from ./fonts.css\nconst fontFamily = {\n default:\n '\"UI Sans\", Lato, HelveticaNeue, \"Helvetica Neue\", Helvetica, Arial, sans-serif',\n};\n\nconst fontSizes = {\n size9: \"9px\",\n size10: \"10px\",\n size11: \"11px\",\n size12: \"12px\",\n size13: \"13px\",\n size14: \"14px\",\n size15: \"15px\",\n size16: \"16px\",\n size17: \"17px\",\n size18: \"18px\",\n size20: \"20px\",\n size21: \"21px\",\n size22: \"22px\",\n size24: \"24px\",\n size26: \"26px\",\n size28: \"28px\",\n size32: \"32px\",\n size36: \"36px\",\n size38: \"38px\",\n};\n\n// ! when adding new font-weights, make sure they are enabled in font.css\nconst fontWeights = {\n regular: \"400\",\n medium: \"500\",\n bold: \"700\",\n};\n\n/**\n * ! Going from now let's use numerical line height instead of px based values to make it easier to scale in mobile !\n * Can calculate either by lineheightPx / fontSizePx from figma. Make it a 2 digit precision e.g. 1.33\n */\nconst lineHeights = {\n // Old discounted\n size16: \"16px\",\n size18: \"18px\",\n size20: \"20px\",\n size22: \"22px\",\n size24: \"24px\",\n size26: \"26px\",\n size28: \"28px\",\n size30: \"30px\",\n size36: \"36px\",\n size38: \"38px\",\n size44: \"44px\",\n\n // New way\n title: 1.16,\n header: 1.4,\n subHeader: 1.5,\n text: 1.7,\n keyFeatures: 1.42,\n};\n\n// note: Descending order\nconst zIndexes = {\n toast: 10500,\n popover: 10400,\n modal: 10000,\n modalUnderlay: 9995,\n dropDown: 9500,\n header: 9000,\n searchOverlay: 8995,\n mobileMenu: 8990,\n cartSummary: 8500,\n};\n\nexport const theme: DefaultTheme = {\n colors,\n font: fontSizes,\n fontFamily,\n fontWeight: fontWeights,\n lineHeight: lineHeights,\n zIndex: zIndexes,\n header: {\n color: colors.black65,\n size: fontSizes.size14,\n lineHeight: lineHeights.size24,\n },\n};\n"],"names":["DEFAULT_MOTIF","colors","menu","base","light","dark","transparent","baseAccent","text","textAccent","active","categoryIcon","categoryIconActive","mobileMenu","mobileMenuAccent","mobileMenuText","mobileMenuItem","mobileMenuActive","modal","modalActiveItem","cartModal","cartModalText","micrositeSubMenuText","proSubMenuText","alabaste","aliceBlue","aluminium","anakiwa","sonicSilver","vulcan","athensGreyDark","athensGreyLight","athensGreyLight65","weatheredStone","black","black10","black20","black25","black45","black50","black65","black85","blackOrchid","shuttleGray","blackHaze","buttercup","codGrey","cornFlower","cornFlower10","cornFlower20","cornFlower30","dodgerblue","geebung","emerald","ghost","grey45","greySuit","magnolia","mediumPurple","mischka","mischka50","offYellow","pattensBlue","pomegranate","sunsetOrange","primaryBlue","primaryBlue90","seaGreen","selago","shark","smalt","tara","solitude","waterloo","woodsmoke","whisper","white","whiteLilac","fontFamily","default","fontSizes","size9","size10","size11","size12","size13","size14","size15","size16","size17","size18","size20","size21","size22","size24","size26","size28","size32","size36","size38","fontWeights","regular","medium","bold","lineHeights","size30","size44","title","header","subHeader","keyFeatures","zIndexes","toast","popover","modalUnderlay","dropDown","searchOverlay","cartSummary","theme","font","fontWeight","lineHeight","zIndex","color","size"],"mappings":";;AAGO,MAAMA,aAAuB,GAAA,OAAA;AAGpC,MAAMC,MAAS,GAAA;EACbC,IAAM,EAAA;IACJC,IAAM,EAAA;MACJC,KAAO,EAAA,SAAA;MACPC,IAAM,EAAA;IACR,CAAA;IACAC,WAAa,EAAA;MACXF,KAAO,EAAA,yBAAA;MACPC,IAAM,EAAA;IACR,CAAA;IACAE,UAAY,EAAA;MACVH,KAAO,EAAA,SAAA;MACPC,IAAM,EAAA;IACR,CAAA;IACAG,IAAM,EAAA;MACJJ,KAAO,EAAA,SAAA;MACPC,IAAM,EAAA;IACR,CAAA;IACAI,UAAY,EAAA;MACVL,KAAO,EAAA,SAAA;MACPC,IAAM,EAAA;IACR,CAAA;IACAK,MAAQ,EAAA;MACNN,KAAO,EAAA,SAAA;MACPC,IAAM,EAAA;IACR,CAAA;IACAM,YAAc,EAAA;MACZP,KAAO,EAAA,SAAA;MACPC,IAAM,EAAA;IACR,CAAA;IACAO,kBAAoB,EAAA;MAClBR,KAAO,EAAA,SAAA;MACPC,IAAM,EAAA;IACR,CAAA;IACAQ,UAAY,EAAA;MACVT,KAAO,EAAA,SAAA;MACPC,IAAM,EAAA;IACR,CAAA;IACAS,gBAAkB,EAAA;MAChBV,KAAO,EAAA,SAAA;MACPC,IAAM,EAAA;IACR,CAAA;IACAU,cAAgB,EAAA;MACdX,KAAO,EAAA,oBAAA;MACPC,IAAM,EAAA;IACR,CAAA;IACAW,cAAgB,EAAA;MACdZ,KAAO,EAAA,SAAA;MACPC,IAAM,EAAA;IACR,CAAA;IACAY,gBAAkB,EAAA;MAChBb,KAAO,EAAA,SAAA;MACPC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CAAA;AAMA,MAAMC,WAAc,GAAA;EAAA;EAElBhB,MAAQ,EAAA,MAAA;EACRE,MAAQ,EAAA,MAAA;EACRC,MAAQ,EAAA,MAAA;EACRE,MAAQ,EAAA,MAAA;EACRC,MAAQ,EAAA,MAAA;EACRC,MAAQ,EAAA,MAAA;EACRC,MAAQ,EAAA,MAAA;EACRS,MAAQ,EAAA,MAAA;EACRP,MAAQ,EAAA,MAAA;EACRC,MAAQ,EAAA,MAAA;EACRO,MAAQ,EAAA,MAAA;EAAA;EAGRC,KAAO,EAAA,IAAA;EACPC,MAAQ,EAAA,GAAA;EACRC,SAAW,EAAA,GAAA;EACXrG,IAAM,EAAA,GAAA;EACNsG,WAAa,EAAA;AACf,CAAA;AAGA,MAAMC,QAAW,GAAA;EACfC,KAAO,EAAA,KAAA;EACPC,OAAS,EAAA,KAAA;EACT/F,KAAO,EAAA,GAAA;EACPgG,aAAe,EAAA,IAAA;EACfC,QAAU,EAAA,IAAA;EACVP,MAAQ,EAAA,GAAA;EACRQ,aAAe,EAAA,IAAA;EACfvG,UAAY,EAAA,IAAA;EACZwG,WAAa,EAAA;AACf,CAAA;AAEO,MAAMC,KAAsB,GAAA;EACjCrH,MAAA;EACAsH,IAAM,EAAAvC,SAAA;EACNF,UAAA;EACA0C,UAAY,EAAApB,WAAA;EACZqB,UAAY,EAAAjB,WAAA;EACZkB,MAAQ,EAAAX,QAAA;EACRH,MAAQ,EAAA;IACNe,OAAO1H,MAAO,CAAAuC,OAAA;IACdoF,MAAM5C,SAAU,CAAAM,MAAA;IAChBmC,YAAYjB,WAAY,CAAAV;EAC1B;AACF,CAAA;"}
1
+ {"version":3,"file":"theme.mjs","sources":["../../src/constants/theme.tsx"],"sourcesContent":["import type { Motif } from \"@ubnt/ui-components/utils\";\nimport type { DefaultTheme } from \"styled-components\";\n\nexport const DEFAULT_MOTIF: Motif = \"light\";\n\n// TODO for future add group separations like \"whites\", \"greys\", \"blues\"\nconst colors = {\n menu: {\n base: {\n light: \"#FFFFFF\",\n dark: \"#000000\",\n },\n transparent: {\n light: \"rgba(255 255 255 / 0.6)\",\n dark: \"rgba(0 0 0 / 0.6)\",\n },\n baseAccent: {\n light: \"#E5E5E5\",\n dark: \"#2D2D2D\",\n },\n text: {\n light: \"#393939\",\n dark: \"#FFFFFF\",\n },\n textAccent: {\n light: \"#8A8A8B\",\n dark: \"#8A8A8B\",\n },\n active: {\n light: \"#006FFF\",\n dark: \"#006FFF\",\n },\n categoryIcon: {\n light: \"#4D4D4D\",\n dark: \"#8E8E8E\",\n },\n categoryIconActive: {\n light: \"#1D1D1F\",\n dark: \"#FFFFFF\",\n },\n mobileMenu: {\n light: \"#FFFFFF\",\n dark: \"#1B1B1B\",\n },\n mobileMenuAccent: {\n light: \"#EDEDF0\",\n dark: \"#2D2D2D\",\n },\n mobileMenuText: {\n light: \"rgba(0 0 0 / 0.65)\",\n dark: \"#F6F6F8\",\n },\n mobileMenuItem: {\n light: \"#F6F6F8\",\n dark: \"#1B1B1B\",\n },\n mobileMenuActive: {\n light: \"#FAFBFB\",\n dark: \"#121212\",\n },\n modal: {\n light: \"#FFFFFF\",\n dark: \"#FFFFFF\",\n },\n modalActiveItem: {\n light: \"#F5F5F5\",\n dark: \"#F5F5F5\",\n },\n cartModal: {\n light: \"#FFFFFF\",\n dark: \"#3F4148\",\n },\n cartModalText: {\n light: \"#36373C\",\n dark: \"#FFFFFF\",\n },\n micrositeSubMenuText: {\n light: \"#36373C\",\n dark: \"#CDD1D5\",\n },\n },\n alabaste: \"#FBFBFB\",\n aliceBlue: \"#F2F8FF\",\n aluminium: \"#A4A7B5\",\n anakiwa: \"#99C5FF\",\n sonicSilver: \"#757575\",\n vulcan: \"#393A3F\",\n athensGreyDark: \"#EDEDF0\",\n athensGreyLight: \"#F6F6F8\",\n athensGreyLight65: \"#F6F6F8A6\",\n weatheredStone: \"#c4c4c4\",\n black: \"#000000\",\n black10: \"rgba(0, 0, 0, 0.10)\",\n black20: \"rgba(0, 0, 0, 0.20)\",\n black25: \"rgba(0, 0, 0, 0.25)\",\n black45: \"rgba(0, 0, 0, 0.45)\",\n black50: \"rgba(0, 0, 0, 0.50)\",\n black65: \"rgba(0, 0, 0, 0.65)\",\n black85: \"rgba(0, 0, 0, 0.85)\",\n blackOrchid: \"#525461\",\n shuttleGray: \"#6B6D76\",\n blackHaze: \"#FAFBFB\",\n buttercup: \"#F5A623\",\n codGrey: \"#0E0E0E\",\n cornFlower: \"#5C98E6\",\n cornFlower10: \"rgba(0, 111, 255, 0.10)\",\n cornFlower20: \"rgba(0, 111, 255, 0.20)\",\n cornFlower30: \"rgba(0, 111, 255, 0.30)\",\n dodgerblue: \"#338CFF\",\n geebung: \"#C4851C\",\n emerald: \"#39CC64\",\n ghost: \"#C8CAD3\",\n grey45: \"rgba(0, 0, 0, 0.45);\",\n greySuit: \"#BDBFCC\",\n magnolia: \"#FCFBFF\",\n mediumPurple: \"#A252E3\",\n mischka: \"#DBDCE1\",\n mischka50: \"#DBDCE180\",\n offYellow: \"#FEF6E9\",\n pattensBlue: \"#D3E6FF\",\n pomegranate: \"#F03A3E\",\n sunsetOrange: \"#FF4E52\",\n primaryBlue: \"#006FFF\",\n primaryBlue90: \"#006FFFE6\",\n seaGreen: \"#2EA350\",\n selago: \"#F6EEFC\",\n shark: \"#212124;\",\n smalt: \"#003C9E\",\n tara: \"#EBFAEF\",\n solitude: \"#E5F1FF\",\n waterloo: \"#838691\",\n woodsmoke: \"#141415\",\n whisper: \"#faf9fb\",\n white: \"#FFFFFF\",\n whiteLilac: \"#F8F9FD\",\n};\n\n// taken from ./fonts.css\nconst fontFamily = {\n default:\n '\"UI Sans\", Lato, HelveticaNeue, \"Helvetica Neue\", Helvetica, Arial, sans-serif',\n};\n\nconst fontSizes = {\n size9: \"9px\",\n size10: \"10px\",\n size11: \"11px\",\n size12: \"12px\",\n size13: \"13px\",\n size14: \"14px\",\n size15: \"15px\",\n size16: \"16px\",\n size17: \"17px\",\n size18: \"18px\",\n size20: \"20px\",\n size21: \"21px\",\n size22: \"22px\",\n size24: \"24px\",\n size26: \"26px\",\n size28: \"28px\",\n size32: \"32px\",\n size36: \"36px\",\n size38: \"38px\",\n};\n\n// ! when adding new font-weights, make sure they are enabled in font.css\nconst fontWeights = {\n regular: \"400\",\n medium: \"500\",\n bold: \"700\",\n};\n\n/**\n * ! Going from now let's use numerical line height instead of px based values to make it easier to scale in mobile !\n * Can calculate either by lineheightPx / fontSizePx from figma. Make it a 2 digit precision e.g. 1.33\n */\nconst lineHeights = {\n // Old discounted\n size16: \"16px\",\n size18: \"18px\",\n size20: \"20px\",\n size22: \"22px\",\n size24: \"24px\",\n size26: \"26px\",\n size28: \"28px\",\n size30: \"30px\",\n size36: \"36px\",\n size38: \"38px\",\n size44: \"44px\",\n\n // New way\n title: 1.16,\n header: 1.4,\n subHeader: 1.5,\n text: 1.7,\n keyFeatures: 1.42,\n};\n\n// note: Descending order\nconst zIndexes = {\n toast: 10500,\n popover: 10400,\n modal: 10000,\n modalUnderlay: 9995,\n dropDown: 9500,\n header: 9000,\n searchOverlay: 8995,\n mobileMenu: 8990,\n cartSummary: 8500,\n};\n\nexport const theme: DefaultTheme = {\n colors,\n font: fontSizes,\n fontFamily,\n fontWeight: fontWeights,\n lineHeight: lineHeights,\n zIndex: zIndexes,\n header: {\n color: colors.black65,\n size: fontSizes.size14,\n lineHeight: lineHeights.size24,\n },\n};\n"],"names":["DEFAULT_MOTIF","colors","menu","base","light","dark","transparent","baseAccent","text","textAccent","active","categoryIcon","categoryIconActive","mobileMenu","mobileMenuAccent","mobileMenuText","mobileMenuItem","mobileMenuActive","modal","modalActiveItem","cartModal","cartModalText","micrositeSubMenuText","alabaste","aliceBlue","aluminium","anakiwa","sonicSilver","vulcan","athensGreyDark","athensGreyLight","athensGreyLight65","weatheredStone","black","black10","black20","black25","black45","black50","black65","black85","blackOrchid","shuttleGray","blackHaze","buttercup","codGrey","cornFlower","cornFlower10","cornFlower20","cornFlower30","dodgerblue","geebung","emerald","ghost","grey45","greySuit","magnolia","mediumPurple","mischka","mischka50","offYellow","pattensBlue","pomegranate","sunsetOrange","primaryBlue","primaryBlue90","seaGreen","selago","shark","smalt","tara","solitude","waterloo","woodsmoke","whisper","white","whiteLilac","fontFamily","default","fontSizes","size9","size10","size11","size12","size13","size14","size15","size16","size17","size18","size20","size21","size22","size24","size26","size28","size32","size36","size38","fontWeights","regular","medium","bold","lineHeights","size30","size44","title","header","subHeader","keyFeatures","zIndexes","toast","popover","modalUnderlay","dropDown","searchOverlay","cartSummary","theme","font","fontWeight","lineHeight","zIndex","color","size"],"mappings":";;AAGO,MAAMA,aAAuB,GAAA,OAAA;AAGpC,MAAMC,MAAS,GAAA;EACbC,IAAM,EAAA;IACJC,IAAM,EAAA;MACJC,KAAO,EAAA,SAAA;MACPC,IAAM,EAAA;IACR,CAAA;IACAC,WAAa,EAAA;MACXF,KAAO,EAAA,yBAAA;MACPC,IAAM,EAAA;IACR,CAAA;IACAE,UAAY,EAAA;MACVH,KAAO,EAAA,SAAA;MACPC,IAAM,EAAA;IACR,CAAA;IACAG,IAAM,EAAA;MACJJ,KAAO,EAAA,SAAA;MACPC,IAAM,EAAA;IACR,CAAA;IACAI,UAAY,EAAA;MACVL,KAAO,EAAA,SAAA;MACPC,IAAM,EAAA;IACR,CAAA;IACAK,MAAQ,EAAA;MACNN,KAAO,EAAA,SAAA;MACPC,IAAM,EAAA;IACR,CAAA;IACAM,YAAc,EAAA;MACZP,KAAO,EAAA,SAAA;MACPC,IAAM,EAAA;IACR,CAAA;IACAO,kBAAoB,EAAA;MAClBR,KAAO,EAAA,SAAA;MACPC,IAAM,EAAA;IACR,CAAA;IACAQ,UAAY,EAAA;MACVT,KAAO,EAAA,SAAA;MACPC,IAAM,EAAA;IACR,CAAA;IACAS,gBAAkB,EAAA;MAChBV,KAAO,EAAA,SAAA;MACPC,IAAM,EAAA;IACR,CAAA;IACAU,cAAgB,EAAA;MACdX,KAAO,EAAA,oBAAA;MACPC,IAAM,EAAA;IACR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A,KAAA;EACTC,MAAQ,EAAA,KAAA;EACRC,IAAM,EAAA;AACR,CAAA;AAMA,MAAMC,WAAc,GAAA;EAAA;EAElBhB,MAAQ,EAAA,MAAA;EACRE,MAAQ,EAAA,MAAA;EACRC,MAAQ,EAAA,MAAA;EACRE,MAAQ,EAAA,MAAA;EACRC,MAAQ,EAAA,MAAA;EACRC,MAAQ,EAAA,MAAA;EACRC,MAAQ,EAAA,MAAA;EACRS,MAAQ,EAAA,MAAA;EACRP,MAAQ,EAAA,MAAA;EACRC,MAAQ,EAAA,MAAA;EACRO,MAAQ,EAAA,MAAA;EAAA;EAGRC,KAAO,EAAA,IAAA;EACPC,MAAQ,EAAA,GAAA;EACRC,SAAW,EAAA,GAAA;EACXpG,IAAM,EAAA,GAAA;EACNqG,WAAa,EAAA;AACf,CAAA;AAGA,MAAMC,QAAW,GAAA;EACfC,KAAO,EAAA,KAAA;EACPC,OAAS,EAAA,KAAA;EACT9F,KAAO,EAAA,GAAA;EACP+F,aAAe,EAAA,IAAA;EACfC,QAAU,EAAA,IAAA;EACVP,MAAQ,EAAA,GAAA;EACRQ,aAAe,EAAA,IAAA;EACftG,UAAY,EAAA,IAAA;EACZuG,WAAa,EAAA;AACf,CAAA;AAEO,MAAMC,KAAsB,GAAA;EACjCpH,MAAA;EACAqH,IAAM,EAAAvC,SAAA;EACNF,UAAA;EACA0C,UAAY,EAAApB,WAAA;EACZqB,UAAY,EAAAjB,WAAA;EACZkB,MAAQ,EAAAX,QAAA;EACRH,MAAQ,EAAA;IACNe,OAAOzH,MAAO,CAAAsC,OAAA;IACdoF,MAAM5C,SAAU,CAAAM,MAAA;IAChBmC,YAAYjB,WAAY,CAAAV;EAC1B;AACF,CAAA;"}
@@ -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
  var layout = require('../../constants/layout.js');
7
7
  var useLockBodyScrollCustom = require('../../hooks/useLockBodyScrollCustom.js');
@@ -10,7 +10,7 @@ var mapping = require('./mapping.js');
10
10
  var types = require('./types.js');
11
11
  var utils = require('./utils.js');
12
12
  "use strict";
13
- const MenuContext = React.createContext(null);
13
+ const MenuContext = react.createContext(null);
14
14
  const MenuContextProvider = ({
15
15
  context,
16
16
  pathname: currentPathname = "/",
@@ -24,33 +24,33 @@ const MenuContextProvider = ({
24
24
  const isMobile = reactUse.useMedia(layout.BREAKPOINTS.TOP_NAV_MOBILE_AND_DOWN, false
25
25
  // Fallback value for SSR
26
26
  );
27
- const getSiteConfig = React.useCallback((siteId, storeIdOverride) => utils.getGlobalSiteConfig(globalSiteConfig, siteId, storeIdOverride ?? storeId), [globalSiteConfig, storeId]);
28
- const currentSiteConfig = React.useMemo(
27
+ const getSiteConfig = react.useCallback((siteId, storeIdOverride) => utils.getGlobalSiteConfig(globalSiteConfig, siteId, storeIdOverride ?? storeId), [globalSiteConfig, storeId]);
28
+ const currentSiteConfig = react.useMemo(
29
29
  // Generic site doesn't have a site config
30
30
  () => getSiteConfig(context), [context, getSiteConfig]);
31
- const deployedLanguages = React.useMemo(() => {
31
+ const deployedLanguages = react.useMemo(() => {
32
32
  return currentSiteConfig.languages ?? [
33
33
  /** Left empty as that indicates given site doesn't implement multiple language AT ALL. For example store would
34
34
  * have single language for now, but UISP doesn't have at all.
35
35
  */
36
36
  ];
37
37
  }, [currentSiteConfig.languages]);
38
- const isMultiLanguage = React.useMemo(() => {
38
+ const isMultiLanguage = react.useMemo(() => {
39
39
  return deployedLanguages.length > 1;
40
40
  }, [deployedLanguages]);
41
- const isLongLanguage = React.useMemo(() => mapping.LONG_LANGUAGES.includes(language), [language]);
42
- const [isSsr, setIsSsr] = React.useState(hasSsrCapability);
43
- React.useEffect(() => {
41
+ const isLongLanguage = react.useMemo(() => mapping.LONG_LANGUAGES.includes(language), [language]);
42
+ const [isSsr, setIsSsr] = react.useState(hasSsrCapability);
43
+ react.useEffect(() => {
44
44
  setIsSsr(false);
45
45
  }, []);
46
- const storeBaseUrl = React.useMemo(() => getSiteConfig(mapping.SiteId.Store).baseUrl, [getSiteConfig]);
47
- const [motif, setMotif] = React.useState("light");
48
- const handleSetMotif = React.useCallback(motif2 => {
46
+ const storeBaseUrl = react.useMemo(() => getSiteConfig(mapping.SiteId.Store).baseUrl, [getSiteConfig]);
47
+ const [motif, setMotif] = react.useState("light");
48
+ const handleSetMotif = react.useCallback(motif2 => {
49
49
  if (["light", "dark"].includes(motif2)) {
50
50
  setMotif(motif2);
51
51
  }
52
52
  }, []);
53
- const isMicrositeContext = React.useMemo(() => {
53
+ const isMicrositeContext = react.useMemo(() => {
54
54
  switch (context) {
55
55
  case null:
56
56
  case void 0:
@@ -79,33 +79,33 @@ const MenuContextProvider = ({
79
79
  const [{
80
80
  activeModal,
81
81
  prevActiveModal
82
- }, _setActiveModal] = React.useState({
82
+ }, _setActiveModal] = react.useState({
83
83
  activeModal: null,
84
84
  prevActiveModal: null
85
85
  });
86
- const setActiveModal = React.useCallback(id => {
86
+ const setActiveModal = react.useCallback(id => {
87
87
  _setActiveModal({
88
88
  activeModal: id,
89
89
  prevActiveModal: activeModal
90
90
  });
91
91
  }, [activeModal]);
92
- React.useEffect(() => {
93
- if (!isMobile && activeModal && [types.ModalId.MobileMenu, types.ModalId.ProMobileMenu].includes(activeModal)) {
92
+ react.useEffect(() => {
93
+ if (!isMobile && activeModal && [types.ModalId.MobileMenu, types.ModalId.ProMobileMenu, types.ModalId.Search].includes(activeModal)) {
94
94
  setActiveModal(null);
95
95
  }
96
96
  }, [activeModal, isMobile, setActiveModal]);
97
97
  useLockBodyScrollCustom.useLockBodyScrollCustom(!!activeModal && [types.ModalId.MobileMenu, types.ModalId.ProMobileMenu].includes(activeModal));
98
- const currentCollectionPath = React.useMemo(() => {
98
+ const currentCollectionPath = react.useMemo(() => {
99
99
  const url = new URL(currentPathname, storeBaseUrl);
100
100
  const matches = url.pathname.match(/(\/collections\/[A-Za-z0-9_-]+)/i);
101
101
  return matches?.[1];
102
102
  }, [storeBaseUrl, currentPathname]);
103
- const currentProductPath = React.useMemo(() => {
103
+ const currentProductPath = react.useMemo(() => {
104
104
  const url = new URL(currentPathname, storeBaseUrl);
105
105
  const matches = url.pathname.match(/((\/collections\/.+)?\/products\/[A-Za-z0-9_-]+)/i);
106
106
  return matches?.[1];
107
107
  }, [storeBaseUrl, currentPathname]);
108
- const isPathnameActive = React.useCallback(pathname => {
108
+ const isPathnameActive = react.useCallback(pathname => {
109
109
  if (mapping.GENERIC_SITE_IDS.includes(context)) {
110
110
  return false;
111
111
  }
@@ -116,14 +116,14 @@ const MenuContextProvider = ({
116
116
  }
117
117
  return !!currentCollectionPath && utils.isPartOfUrlPathname(pathname, currentCollectionPath) || !!currentProductPath && utils.isPartOfUrlPathname(pathname, currentProductPath);
118
118
  }, [context, isMicrositeContext, currentCollectionPath, currentProductPath, currentPathname]);
119
- const isSiteUrlActive = React.useCallback(url => {
119
+ const isSiteUrlActive = react.useCallback(url => {
120
120
  return isMicrositeContext &&
121
121
  // While SiteId is considered a microsite we don't want url matching for it
122
122
  !mapping.GENERIC_SITE_IDS.includes(context) && url && url[0] !== mapping.SiteId.Store && url[0] === context && utils.isPartOfUrlPathname(currentPathname, url[1]) && (
123
123
  // If there's a hash in the SiteUrl, it should match the current hash for the item to be active
124
124
  !url[3] || currentHash.replace(/^#/, "") === url[3]);
125
125
  }, [context, currentHash, currentPathname, isMicrositeContext]);
126
- const createSiteUrl = React.useCallback(siteUrl => {
126
+ const createSiteUrl = react.useCallback(siteUrl => {
127
127
  const addSiteConfigReferenceSearchParams = !mapping.GENERIC_SITE_IDS.includes(context);
128
128
  const [siteId] = siteUrl;
129
129
  const targetSiteConfig = getSiteConfig(siteId);
@@ -136,7 +136,7 @@ const MenuContextProvider = ({
136
136
  context
137
137
  });
138
138
  }, [context, getSiteConfig, storeId, language]);
139
- const parseSubSubRecursiveItems = React.useCallback(subSubItem => {
139
+ const parseSubSubRecursiveItems = react.useCallback(subSubItem => {
140
140
  const nestedSubSubItems = "items" in subSubItem && subSubItem.items ? subSubItem.items.map(parseSubSubRecursiveItems).filter(el => !!el) : [];
141
141
  const url = isMicrositeContext && subSubItem.url ? createSiteUrl(subSubItem.url) :
142
142
  // TODO: maybe need to improve to get first "available" child not the first form array, not sure if the
@@ -163,10 +163,10 @@ const MenuContextProvider = ({
163
163
  items: nestedSubSubItems
164
164
  };
165
165
  }, [isMicrositeContext, createSiteUrl, isSiteUrlActive]);
166
- const parseSubSubMenuItems = React.useCallback(subItem => {
166
+ const parseSubSubMenuItems = react.useCallback(subItem => {
167
167
  return ("items" in subItem ? subItem.items : []).map(parseSubSubRecursiveItems).filter(el => !!el);
168
168
  }, [parseSubSubRecursiveItems]);
169
- const parseSubMenuItem = React.useCallback(subItem => {
169
+ const parseSubMenuItem = react.useCallback(subItem => {
170
170
  const subItemUrl = utils.getSubItemUrl(subItem, isSiteUrlActive);
171
171
  const url = subItemUrl ? new URL(createSiteUrl(subItemUrl)) : null;
172
172
  if (!url) {
@@ -194,7 +194,7 @@ const MenuContextProvider = ({
194
194
  items: subSubItems
195
195
  };
196
196
  }, [isSiteUrlActive, createSiteUrl, parseSubSubMenuItems]);
197
- const parseMenuItem = React.useCallback(item => {
197
+ const parseMenuItem = react.useCallback(item => {
198
198
  const subItems = item.items.map(parseSubMenuItem).filter(subItem => !!subItem);
199
199
  let itemActive = false;
200
200
  if (isMicrositeContext &&
@@ -214,7 +214,7 @@ const MenuContextProvider = ({
214
214
  possible: subItems.length === 0 || subItems.some(item2 => item2.possible)
215
215
  };
216
216
  }, [parseSubMenuItem, isMicrositeContext, context, currentPathname, createSiteUrl, storeBaseUrl]);
217
- const navigation = React.useMemo(() => {
217
+ const navigation = react.useMemo(() => {
218
218
  const parseItemsFn = items => items.map(parseMenuItem);
219
219
  const parseSection = sectionType => {
220
220
  const section = mapping.NAVIGATION_MAPPING[sectionType];
@@ -245,7 +245,7 @@ const MenuContextProvider = ({
245
245
  secondary
246
246
  };
247
247
  }, [parseMenuItem, createSiteUrl, storeBaseUrl]);
248
- const activeNavigationSectionType = React.useMemo(() => {
248
+ const activeNavigationSectionType = react.useMemo(() => {
249
249
  if (navigation.primary.active) {
250
250
  return "primary";
251
251
  }
@@ -254,20 +254,20 @@ const MenuContextProvider = ({
254
254
  }
255
255
  return [mapping.SiteId.Uisp, mapping.SiteId.ExpertsUisp].includes(context) ? "secondary" : "primary";
256
256
  }, [context, navigation.primary.active, navigation.secondary.active]);
257
- const activeNavigationSection = React.useMemo(() => {
257
+ const activeNavigationSection = react.useMemo(() => {
258
258
  return navigation[activeNavigationSectionType];
259
259
  }, [activeNavigationSectionType, navigation]);
260
- const inactiveNavigationSection = React.useMemo(() => {
260
+ const inactiveNavigationSection = react.useMemo(() => {
261
261
  const inactiveType = activeNavigationSectionType === "primary" ? "secondary" : "primary";
262
262
  return navigation[inactiveType];
263
263
  }, [activeNavigationSectionType, navigation]);
264
- const motifFinal = React.useMemo(() => {
264
+ const motifFinal = react.useMemo(() => {
265
265
  if (activeModal === types.ModalId.MobileMenu) {
266
266
  return "dark";
267
267
  }
268
268
  return motif;
269
269
  }, [activeModal, motif]);
270
- const [navigationOutOfView, setNavigationOutOfView] = React.useState(
270
+ const [navigationOutOfView, setNavigationOutOfView] = react.useState(
271
271
  // Default ref.current is null so by default it's not visible
272
272
  true);
273
273
  return /* @__PURE__ */jsxRuntime.jsx(MenuContext.Provider, {
@@ -299,7 +299,7 @@ const MenuContextProvider = ({
299
299
  });
300
300
  };
301
301
  function useMenu() {
302
- const context = React.useContext(MenuContext);
302
+ const context = react.useContext(MenuContext);
303
303
  if (context === null) {
304
304
  throw new Error("useMenu must be used within a MenuContextProvider");
305
305
  }
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sources":["../../../src/contexts/MenuContext/context.tsx"],"sourcesContent":["import type { Motif } from \"@ubnt/ui-components/utils\";\nimport {\n createContext,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useState,\n} from \"react\";\nimport type { ReactNode } from \"react\";\nimport { useMedia } from \"react-use\";\n\nimport { BREAKPOINTS } from \"../../constants/layout\";\nimport { useLockBodyScrollCustom } from \"../../hooks/useLockBodyScrollCustom\";\nimport type { GlobalStoreId } from \"../../types\";\nimport { checkUnreachable } from \"../../utils/errors\";\nimport type {\n Language,\n NavigationItem,\n NavigationSectionType,\n NavigationSubItem,\n NavigationSubSubItem,\n SiteUrl,\n} from \"./mapping\";\nimport {\n DEFAULT_LANGUAGE,\n DEFAULT_STORE_ID,\n GENERIC_SITE_IDS,\n LONG_LANGUAGES,\n NAVIGATION_MAPPING,\n SiteId,\n} from \"./mapping\";\nimport type {\n GlobalSiteConfig,\n MenuContextValue,\n ParsedNavigationItem,\n ParsedNavigationSection,\n ParsedNavigationSubItem,\n ParsedNavigationSubSubItem,\n} from \"./types\";\nimport { ModalId } from \"./types\";\nimport {\n findFirstPossibleDeepNestedItemUrl,\n getGlobalSiteConfig,\n getLanguageDirection,\n getSubItemUrl,\n isPartOfUrlPathname,\n parseSiteUrl,\n} from \"./utils\";\n\nexport const MenuContext = createContext<MenuContextValue | null>(null);\n\nexport const MenuContextProvider = ({\n context,\n pathname: currentPathname = \"/\",\n storeId = DEFAULT_STORE_ID,\n hasSsrCapability = false,\n hash: currentHash = \"\",\n language = DEFAULT_LANGUAGE,\n globalSiteConfig,\n children,\n}: {\n /**\n * Set how the navigation behave as - ui.com/store/uisp.com/...\n */\n context: SiteId;\n /**\n * Base url for menu item paths\n * e.g. https://ecomm.stg.ui.com/ca/en/\n * e.g. window.location.origin\n *\n * ! Not specified on microsites !\n */\n baseUrl?: string | URL;\n /**\n * Pathname of the current url\n * Used as a prop to be in sync with e.g. next\n */\n pathname?: string;\n /**\n * Hash of the current URL (the part of the URL that starts with #)\n */\n hash?: string;\n /**\n * Store context for determining which path to use\n * Will fall-back to US if not found\n * @example GlobalStoreId.Ca\n */\n storeId?: GlobalStoreId;\n /**\n * Indicates if consumer project has capability of doing SSR\n */\n hasSsrCapability?: boolean;\n /**\n * (optionally) Hints which language currently us currently in use\n */\n language?: Language;\n /**\n * Global Site Config that define available urls/languages/regions enabled for globally\n */\n globalSiteConfig: GlobalSiteConfig;\n\n children: ReactNode;\n}): JSX.Element => {\n const isMobile = useMedia(\n BREAKPOINTS.TOP_NAV_MOBILE_AND_DOWN,\n false, // Fallback value for SSR\n );\n\n // #############################################################################\n // Global site config\n // #############################################################################\n const getSiteConfig = useCallback(\n (siteId: SiteId, storeIdOverride?: GlobalStoreId) =>\n getGlobalSiteConfig(globalSiteConfig, siteId, storeIdOverride ?? storeId),\n [globalSiteConfig, storeId],\n );\n\n const currentSiteConfig = useMemo(\n // Generic site doesn't have a site config\n () => getSiteConfig(context),\n [context, getSiteConfig],\n );\n\n // #############################################################################\n // Language\n // #############################################################################\n const deployedLanguages = useMemo(() => {\n return (\n currentSiteConfig.languages ??\n [\n /** Left empty as that indicates given site doesn't implement multiple language AT ALL. For example store would\n * have single language for now, but UISP doesn't have at all.\n */\n ]\n );\n }, [currentSiteConfig.languages]);\n\n const isMultiLanguage = useMemo((): boolean => {\n return deployedLanguages.length > 1;\n }, [deployedLanguages]);\n\n const isLongLanguage = useMemo(\n () => LONG_LANGUAGES.includes(language),\n [language],\n );\n\n // #############################################################################\n // Track if is first render (SSR) to normalise first rendering between server <--> client for code that is shared\n // between microsites and store. To support both scenario's initial state is set by prop\n // #############################################################################\n const [isSsr, setIsSsr] = useState(hasSsrCapability);\n\n useEffect(() => {\n setIsSsr(false);\n }, []);\n\n // #############################################################################\n // Store base URL\n // #############################################################################\n const storeBaseUrl = useMemo(\n () => getSiteConfig(SiteId.Store).baseUrl,\n [getSiteConfig],\n );\n\n // #############################################################################\n // Menu motif\n // #############################################################################\n const [motif, setMotif] = useState<MenuContextValue[\"motif\"]>(\"light\");\n\n /**\n * Helper to ensure a correct motif is set\n * TODO: maybe check which parts uses it, can we maybe just consolidate the logic within the context itself?\n */\n const handleSetMotif = useCallback((motif: Motif) => {\n if ([\"light\", \"dark\"].includes(motif)) {\n setMotif(motif);\n }\n }, []);\n\n // #############################################################################\n // Nav context\n // #############################################################################\n const isMicrositeContext: MenuContextValue[\"isMicrositeContext\"] =\n useMemo(() => {\n // Type-safe detection for context\n switch (context) {\n case null:\n case undefined:\n case SiteId.Ui:\n case SiteId.Uisp:\n case SiteId.ExpertsUi:\n case SiteId.ExpertsUisp:\n case SiteId.Uwc:\n case SiteId.TechSpecs:\n case SiteId.Generic: {\n return true;\n }\n case SiteId.Amplifi:\n case SiteId.Store: {\n return false;\n }\n default: {\n // Fallback to true as well\n checkUnreachable(context);\n return true;\n }\n }\n }, [context]);\n\n // #############################################################################\n // Active modal\n // #############################################################################\n const [{ activeModal, prevActiveModal }, _setActiveModal] = useState<{\n activeModal: MenuContextValue[\"activeModal\"];\n prevActiveModal: MenuContextValue[\"prevActiveModal\"];\n }>({\n activeModal: null,\n prevActiveModal: null,\n });\n\n const setActiveModal = useCallback<MenuContextValue[\"setActiveModal\"]>(\n (id) => {\n _setActiveModal({\n activeModal: id,\n prevActiveModal: activeModal,\n });\n },\n [activeModal],\n );\n\n // Reset modals on viewport change\n useEffect(() => {\n if (\n !isMobile &&\n activeModal &&\n [ModalId.MobileMenu, ModalId.ProMobileMenu].includes(activeModal)\n ) {\n setActiveModal(null);\n }\n }, [activeModal, isMobile, setActiveModal]);\n\n // Body lock for specific modals\n useLockBodyScrollCustom(\n !!activeModal &&\n [ModalId.MobileMenu, ModalId.ProMobileMenu].includes(activeModal),\n );\n\n // #############################################################################\n // Parse router parameters\n // #############################################################################\n // Parse the collection slug as route path\n const currentCollectionPath = useMemo((): string | undefined => {\n const url = new URL(currentPathname, storeBaseUrl);\n const matches = url.pathname.match(/(\\/collections\\/[A-Za-z0-9_-]+)/i);\n\n return matches?.[1];\n }, [storeBaseUrl, currentPathname]);\n\n const currentProductPath = useMemo((): string | undefined => {\n const url = new URL(currentPathname, storeBaseUrl);\n const matches = url.pathname.match(\n /((\\/collections\\/.+)?\\/products\\/[A-Za-z0-9_-]+)/i,\n );\n\n return matches?.[1];\n }, [storeBaseUrl, currentPathname]);\n\n const isPathnameActive = useCallback(\n (pathname: string): boolean => {\n // Don't do matching for generic site contexts\n if (GENERIC_SITE_IDS.includes(context)) {\n return false;\n }\n\n if (isMicrositeContext) {\n // HACK microsites can have paths with and without regional prefixes\n const optional = pathname === \"/\" ? \"?\" : \"\";\n const micrositeRegExp = new RegExp(\n `^(?:/\\\\w{2})?${pathname}${optional}$`,\n );\n return micrositeRegExp.test(currentPathname);\n }\n\n return (\n (!!currentCollectionPath &&\n isPartOfUrlPathname(pathname, currentCollectionPath)) ||\n (!!currentProductPath &&\n isPartOfUrlPathname(pathname, currentProductPath))\n );\n },\n [\n context,\n isMicrositeContext,\n currentCollectionPath,\n currentProductPath,\n currentPathname,\n ],\n );\n\n const isSiteUrlActive = useCallback(\n (url: SiteUrl): boolean => {\n return (\n isMicrositeContext &&\n // While SiteId is considered a microsite we don't want url matching for it\n !GENERIC_SITE_IDS.includes(context) &&\n url &&\n url[0] !== SiteId.Store &&\n url[0] === context &&\n isPartOfUrlPathname(currentPathname, url[1]) &&\n // If there's a hash in the SiteUrl, it should match the current hash for the item to be active\n (!url[3] || currentHash.replace(/^#/, \"\") === url[3])\n );\n },\n [context, currentHash, currentPathname, isMicrositeContext],\n );\n\n // #############################################################################\n // Menu sections and items\n // #############################################################################\n const createSiteUrl = useCallback(\n (siteUrl: SiteUrl) => {\n // Don't add store and language search param for navigation with generic context\n const addSiteConfigReferenceSearchParams =\n !GENERIC_SITE_IDS.includes(context);\n\n const [siteId] = siteUrl;\n\n const targetSiteConfig = getSiteConfig(siteId);\n\n return parseSiteUrl({\n siteUrl,\n storeId,\n addSiteConfigReferenceSearchParams,\n language,\n targetSiteConfig,\n context,\n });\n },\n [context, getSiteConfig, storeId, language],\n );\n\n const parseSubSubRecursiveItems = useCallback(\n (subSubItem: NavigationSubSubItem): ParsedNavigationSubSubItem | null => {\n // Sub-sub-items\n const nestedSubSubItems =\n \"items\" in subSubItem && subSubItem.items\n ? subSubItem.items\n .map(parseSubSubRecursiveItems)\n .filter((el): el is ParsedNavigationSubSubItem => !!el)\n : [];\n\n const url =\n isMicrositeContext && subSubItem.url\n ? createSiteUrl(subSubItem.url)\n : // TODO: maybe need to improve to get first \"available\" child not the first form array, not sure if the\n // parseItemsFn filters them already out\n (findFirstPossibleDeepNestedItemUrl(nestedSubSubItems) ??\n (subSubItem.url && createSiteUrl(subSubItem.url)));\n\n if (!url) {\n return null;\n }\n\n const active =\n (subSubItem.url && isSiteUrlActive(subSubItem.url)) ||\n // Any child item is active\n nestedSubSubItems.some((el) => el.active);\n\n return {\n id: subSubItem.id,\n label: subSubItem.label,\n // subLabel: subSubItem.subLabel,\n icon: subSubItem.icon,\n mobileIcon: subSubItem.mobileIcon,\n isNew: subSubItem.isNew,\n active,\n url,\n possible:\n \"items\" in subSubItem\n ? nestedSubSubItems.some((item) => item.possible)\n : // If gotten this far fallback to true\n true,\n items: nestedSubSubItems,\n };\n },\n [isMicrositeContext, createSiteUrl, isSiteUrlActive],\n );\n\n const parseSubSubMenuItems = useCallback(\n (subItem: NavigationSubItem): ParsedNavigationSubSubItem[] => {\n return (\"items\" in subItem ? subItem.items : [])\n .map(parseSubSubRecursiveItems)\n .filter((el): el is ParsedNavigationSubSubItem => !!el);\n },\n [parseSubSubRecursiveItems],\n );\n\n const parseSubMenuItem = useCallback(\n (subItem: NavigationSubItem): ParsedNavigationSubItem | null => {\n const subItemUrl = getSubItemUrl(subItem, isSiteUrlActive);\n\n // Append the new pathname (e.g. when /ca/en already exists)\n const url = subItemUrl ? new URL(createSiteUrl(subItemUrl)) : null;\n\n if (!url) {\n return null;\n }\n\n // Sub-sub-items\n const subSubItems = parseSubSubMenuItems(subItem);\n\n // Parse item active state\n const subItemActive =\n // Site url is active\n (subItem.url && isSiteUrlActive(subItem.url)) ||\n // Any child item is active\n subSubItems.some((el) => el.active);\n\n return {\n id: subItem.id,\n label: subItem.label,\n subLabel: subItem.subLabel,\n subLabelTheme: subItem.subLabelTheme,\n subLabelCollapseMode: subItem.subLabelCollapseMode,\n isNew: subItem.isNew,\n icon: subItem.icon,\n mobileIcon: subItem.mobileIcon,\n invisible: subItem.invisible,\n\n url: url.toString(),\n active: subItemActive,\n\n possible:\n subSubItems.length === 0 || subSubItems.some((item) => item.possible),\n items: subSubItems,\n };\n },\n [isSiteUrlActive, createSiteUrl, parseSubSubMenuItems],\n );\n\n const parseMenuItem = useCallback(\n (item: NavigationItem): ParsedNavigationItem => {\n // Parse sub-items\n const subItems = item.items\n .map(parseSubMenuItem)\n .filter((subItem): subItem is ParsedNavigationSubItem => !!subItem);\n\n // Parse main item active state when in microsite context\n let itemActive = false;\n\n // Custom logic just for microsites to detect if we have to open the 2nd layer navigation\n if (\n isMicrositeContext &&\n // While SiteId is considered a microsite we don't want url matching for it\n !GENERIC_SITE_IDS.includes(context) &&\n item.url &&\n item.url[0] === context &&\n item.url[0] !== SiteId.Store &&\n isPartOfUrlPathname(currentPathname, item.url[1])\n ) {\n itemActive = true;\n }\n\n /**\n * Main item url\n * If it is a microsite context, we use the site url if available.\n * If not in microsite context we use the store url if available and\n * fallback to site URL, then fallback URL and lastly to base URL.\n */\n const url =\n isMicrositeContext && item.url\n ? createSiteUrl(item.url)\n : // TODO: maybe need to improve to get first \"available\" child not the first form array, not sure if the\n // parseItemsFn filters them already out\n (findFirstPossibleDeepNestedItemUrl(subItems) ??\n ((item.url && createSiteUrl(item.url)) ||\n (item.fallbackUrl && createSiteUrl(item.fallbackUrl)) ||\n storeBaseUrl.toString()));\n\n // Result\n return {\n ...item,\n items: subItems,\n url,\n active: itemActive || subItems.some((subItem) => subItem.active),\n possible:\n subItems.length === 0 || subItems.some((item) => item.possible),\n };\n },\n [\n parseSubMenuItem,\n isMicrositeContext,\n context,\n currentPathname,\n createSiteUrl,\n storeBaseUrl,\n ],\n );\n\n // Navigation parsing\n const navigation: MenuContextValue[\"navigation\"] = useMemo(() => {\n const parseItemsFn = (items: NavigationItem[]) => items.map(parseMenuItem);\n\n const parseSection = (\n sectionType: keyof typeof NAVIGATION_MAPPING,\n ): ParsedNavigationSection => {\n const section = NAVIGATION_MAPPING[sectionType];\n const parsedItems = parseItemsFn(section.items ?? []);\n\n const url = section.url ? createSiteUrl(section.url) : null;\n\n const finalUrl =\n url ||\n // TODO: maybe need to improve to get first \"available\" child not the first form array, not sure if the\n // parseItemsFn filters them already out\n findFirstPossibleDeepNestedItemUrl(parsedItems) ||\n (!section.url && createSiteUrl(section.fallbackUrl)) ||\n storeBaseUrl.toString();\n\n return {\n label: section.label,\n type: sectionType,\n url: finalUrl,\n active: parsedItems.some((el) => el.active),\n possible:\n parsedItems.length === 0 || parsedItems.some((item) => item.possible),\n items: parsedItems,\n };\n };\n\n const primary = parseSection(\"primary\");\n const secondary = parseSection(\"secondary\");\n\n // Active value - only one section can be active\n if (secondary.active) {\n primary.active = false;\n } else if (primary.active) {\n secondary.active = false;\n }\n\n return {\n primary,\n secondary,\n };\n }, [parseMenuItem, createSiteUrl, storeBaseUrl]);\n\n const activeNavigationSectionType = useMemo<NavigationSectionType>(() => {\n /**\n * First attempt to derive active section based on active navigation\n */\n if (navigation.primary.active) {\n return \"primary\";\n }\n if (navigation.secondary.active) {\n return \"secondary\";\n }\n\n /**\n * Fallback to check against context id if we can't match it on path\n * Only uisp.com and experts.uisp.com uses \"secondary\" as default\n * TODO: should move this logic into \"navigation\" memo fn so both states are in sync\n */\n return [SiteId.Uisp, SiteId.ExpertsUisp].includes(context)\n ? \"secondary\"\n : \"primary\";\n }, [context, navigation.primary.active, navigation.secondary.active]);\n\n // Define active sections\n const activeNavigationSection: MenuContextValue[\"activeNavigationSection\"] =\n useMemo(() => {\n return navigation[activeNavigationSectionType];\n }, [activeNavigationSectionType, navigation]);\n\n const inactiveNavigationSection: MenuContextValue[\"inactiveNavigationSection\"] =\n useMemo(() => {\n const inactiveType =\n activeNavigationSectionType === \"primary\" ? \"secondary\" : \"primary\";\n\n return navigation[inactiveType];\n }, [activeNavigationSectionType, navigation]);\n\n // #############################################################################\n // Override motif\n // #############################################################################\n const motifFinal = useMemo((): Motif => {\n // Active mobile menu forces dark motif\n if (activeModal === ModalId.MobileMenu) {\n return \"dark\";\n }\n\n // Update: Commented out as no longer - https://ui.slack.com/archives/G01B4G8GF2S/p1683011332500999?thread_ts=1683008828.124399&cid=G01B4G8GF2S\n // Optionally override motif scheme for some specific subitems based on active item\n // const navigationSubItemsWithDarkMotif = [\n // NavigationItemId.NewIntegrations,\n // NavigationItemId.Accessories,\n // ];\n // if (\n // activeNavigationSection.items.some(\n // (item) =>\n // navigationSubItemsWithDarkMotif.includes(item.id) && item.active\n // )\n // ) {\n // return \"dark\";\n // }\n\n // Return the active one\n return motif;\n }, [activeModal, motif]);\n\n // #############################################################################\n // Navigation visibility\n // #############################################################################\n const [navigationOutOfView, setNavigationOutOfView] = useState<\n MenuContextValue[\"navigationOutOfView\"]\n >(\n // Default ref.current is null so by default it's not visible\n true,\n );\n\n // #############################################################################\n // Result\n // #############################################################################\n return (\n <MenuContext.Provider\n value={{\n // Unrelated util to help aid with SSR in various places in app\n isSsr,\n storeId,\n\n motif: motifFinal,\n setMotif: handleSetMotif,\n\n context,\n isMicrositeContext,\n\n activeModal,\n prevActiveModal,\n setActiveModal,\n\n deployedLanguages,\n isMultiLanguage,\n language,\n languageDirection: getLanguageDirection(language),\n isLongLanguage,\n\n navigation,\n activeNavigationSection,\n inactiveNavigationSection,\n isPathnameActive,\n\n navigationOutOfView,\n setNavigationOutOfView,\n\n createSiteUrl,\n }}\n >\n {children}\n </MenuContext.Provider>\n );\n};\n\nexport function useMenu(): MenuContextValue {\n const context = useContext(MenuContext);\n if (context === null) {\n throw new Error(\"useMenu must be used within a MenuContextProvider\");\n }\n return context;\n}\n"],"names":["MenuContext","createContext","MenuContextProvider","context","pathname","currentPathname","storeId","DEFAULT_STORE_ID","hasSsrCapability","hash","currentHash","language","DEFAULT_LANGUAGE","globalSiteConfig","children","isMobile","useMedia","BREAKPOINTS","TOP_NAV_MOBILE_AND_DOWN","getSiteConfig","useCallback","siteId","storeIdOverride","getGlobalSiteConfig","currentSiteConfig","useMemo","deployedLanguages","languages","isMultiLanguage","length","isLongLanguage","LONG_LANGUAGES","includes","isSsr","setIsSsr","useState","useEffect","storeBaseUrl","SiteId","Store","baseUrl","motif","setMotif","handleSetMotif","isMicrositeContext","Ui","Uisp","ExpertsUi","ExpertsUisp","Uwc","TechSpecs","Generic","Amplifi","checkUnreachable","activeModal","prevActiveModal","_setActiveModal","setActiveModal","id","ModalId","MobileMenu","ProMobileMenu","useLockBodyScrollCustom","currentCollectionPath","url","URL","matches","match","currentProductPath","isPathnameActive","GENERIC_SITE_IDS","optional","micrositeRegExp","RegExp","test","isPartOfUrlPathname","isSiteUrlActive","replace","createSiteUrl","siteUrl","addSiteConfigReferenceSearchParams","targetSiteConfig","parseSiteUrl","parseSubSubRecursiveItems","subSubItem","nestedSubSubItems","items","map","filter","el","findFirstPossibleDeepNestedItemUrl","active","some","label","icon","mobileIcon","isNew","possible","item","parseSubSubMenuItems","subItem","parseSubMenuItem","subItemUrl","getSubItemUrl","subSubItems","subItemActive","subLabel","subLabelTheme","subLabelCollapseMode","invisible","toString","parseMenuItem","subItems","itemActive","fallbackUrl","navigation","parseItemsFn","parseSection","sectionType","section","NAVIGATION_MAPPING","parsedItems","finalUrl","type","primary","secondary","activeNavigationSectionType","activeNavigationSection","inactiveNavigationSection","inactiveType","motifFinal","navigationOutOfView","setNavigationOutOfView","jsx","Provider","value","languageDirection","getLanguageDirection","useMenu","useContext","Error"],"mappings":";;;;;;;;;;;;AAkDa,MAAAA,WAAA,GAAcC,oBAAuC,IAAI,CAAA;AAE/D,MAAMC,sBAAsBA,CAAC;EAClCC,OAAA;EACAC,UAAUC,eAAkB,GAAA,GAAA;EAC5BC,OAAU,GAAAC,OAAA,CAAAA,gBAAA;EACVC,gBAAmB,GAAA,KAAA;EACnBC,MAAMC,WAAc,GAAA,EAAA;EACpB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AA,CACH;AAEJ,CAAA;AAEO,SAAS4H,OAA4BA,CAAA,EAAA;EACpC,MAAAvI,OAAA,GAAUwI,iBAAW3I,WAAW,CAAA;EACtC,IAAIG,YAAY,IAAM,EAAA;IACd,MAAA,IAAIyI,MAAM,mDAAmD,CAAA;EACrE;EACO,OAAAzI,OAAA;AACT;;;"}
1
+ {"version":3,"file":"context.js","sources":["../../../src/contexts/MenuContext/context.tsx"],"sourcesContent":["import type { Motif } from \"@ubnt/ui-components/utils\";\nimport {\n createContext,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useState,\n} from \"react\";\nimport type { ReactNode } from \"react\";\nimport { useMedia } from \"react-use\";\n\nimport { BREAKPOINTS } from \"../../constants/layout\";\nimport { useLockBodyScrollCustom } from \"../../hooks/useLockBodyScrollCustom\";\nimport type { GlobalStoreId } from \"../../types\";\nimport { checkUnreachable } from \"../../utils/errors\";\nimport type {\n Language,\n NavigationItem,\n NavigationSectionType,\n NavigationSubItem,\n NavigationSubSubItem,\n SiteUrl,\n} from \"./mapping\";\nimport {\n DEFAULT_LANGUAGE,\n DEFAULT_STORE_ID,\n GENERIC_SITE_IDS,\n LONG_LANGUAGES,\n NAVIGATION_MAPPING,\n SiteId,\n} from \"./mapping\";\nimport type {\n GlobalSiteConfig,\n MenuContextValue,\n ParsedNavigationItem,\n ParsedNavigationSection,\n ParsedNavigationSubItem,\n ParsedNavigationSubSubItem,\n} from \"./types\";\nimport { ModalId } from \"./types\";\nimport {\n findFirstPossibleDeepNestedItemUrl,\n getGlobalSiteConfig,\n getLanguageDirection,\n getSubItemUrl,\n isPartOfUrlPathname,\n parseSiteUrl,\n} from \"./utils\";\n\nexport const MenuContext = createContext<MenuContextValue | null>(null);\n\nexport const MenuContextProvider = ({\n context,\n pathname: currentPathname = \"/\",\n storeId = DEFAULT_STORE_ID,\n hasSsrCapability = false,\n hash: currentHash = \"\",\n language = DEFAULT_LANGUAGE,\n globalSiteConfig,\n children,\n}: {\n /**\n * Set how the navigation behave as - ui.com/store/uisp.com/...\n */\n context: SiteId;\n /**\n * Base url for menu item paths\n * e.g. https://ecomm.stg.ui.com/ca/en/\n * e.g. window.location.origin\n *\n * ! Not specified on microsites !\n */\n baseUrl?: string | URL;\n /**\n * Pathname of the current url\n * Used as a prop to be in sync with e.g. next\n */\n pathname?: string;\n /**\n * Hash of the current URL (the part of the URL that starts with #)\n */\n hash?: string;\n /**\n * Store context for determining which path to use\n * Will fall-back to US if not found\n * @example GlobalStoreId.Ca\n */\n storeId?: GlobalStoreId;\n /**\n * Indicates if consumer project has capability of doing SSR\n */\n hasSsrCapability?: boolean;\n /**\n * (optionally) Hints which language currently us currently in use\n */\n language?: Language;\n /**\n * Global Site Config that define available urls/languages/regions enabled for globally\n */\n globalSiteConfig: GlobalSiteConfig;\n\n children: ReactNode;\n}): JSX.Element => {\n const isMobile = useMedia(\n BREAKPOINTS.TOP_NAV_MOBILE_AND_DOWN,\n false, // Fallback value for SSR\n );\n\n // #############################################################################\n // Global site config\n // #############################################################################\n const getSiteConfig = useCallback(\n (siteId: SiteId, storeIdOverride?: GlobalStoreId) =>\n getGlobalSiteConfig(globalSiteConfig, siteId, storeIdOverride ?? storeId),\n [globalSiteConfig, storeId],\n );\n\n const currentSiteConfig = useMemo(\n // Generic site doesn't have a site config\n () => getSiteConfig(context),\n [context, getSiteConfig],\n );\n\n // #############################################################################\n // Language\n // #############################################################################\n const deployedLanguages = useMemo(() => {\n return (\n currentSiteConfig.languages ??\n [\n /** Left empty as that indicates given site doesn't implement multiple language AT ALL. For example store would\n * have single language for now, but UISP doesn't have at all.\n */\n ]\n );\n }, [currentSiteConfig.languages]);\n\n const isMultiLanguage = useMemo((): boolean => {\n return deployedLanguages.length > 1;\n }, [deployedLanguages]);\n\n const isLongLanguage = useMemo(\n () => LONG_LANGUAGES.includes(language),\n [language],\n );\n\n // #############################################################################\n // Track if is first render (SSR) to normalise first rendering between server <--> client for code that is shared\n // between microsites and store. To support both scenario's initial state is set by prop\n // #############################################################################\n const [isSsr, setIsSsr] = useState(hasSsrCapability);\n\n useEffect(() => {\n setIsSsr(false);\n }, []);\n\n // #############################################################################\n // Store base URL\n // #############################################################################\n const storeBaseUrl = useMemo(\n () => getSiteConfig(SiteId.Store).baseUrl,\n [getSiteConfig],\n );\n\n // #############################################################################\n // Menu motif\n // #############################################################################\n const [motif, setMotif] = useState<MenuContextValue[\"motif\"]>(\"light\");\n\n /**\n * Helper to ensure a correct motif is set\n * TODO: maybe check which parts uses it, can we maybe just consolidate the logic within the context itself?\n */\n const handleSetMotif = useCallback((motif: Motif) => {\n if ([\"light\", \"dark\"].includes(motif)) {\n setMotif(motif);\n }\n }, []);\n\n // #############################################################################\n // Nav context\n // #############################################################################\n const isMicrositeContext: MenuContextValue[\"isMicrositeContext\"] =\n useMemo(() => {\n // Type-safe detection for context\n switch (context) {\n case null:\n case undefined:\n case SiteId.Ui:\n case SiteId.Uisp:\n case SiteId.ExpertsUi:\n case SiteId.ExpertsUisp:\n case SiteId.Uwc:\n case SiteId.TechSpecs:\n case SiteId.Generic: {\n return true;\n }\n case SiteId.Amplifi:\n case SiteId.Store: {\n return false;\n }\n default: {\n // Fallback to true as well\n checkUnreachable(context);\n return true;\n }\n }\n }, [context]);\n\n // #############################################################################\n // Active modal\n // #############################################################################\n const [{ activeModal, prevActiveModal }, _setActiveModal] = useState<{\n activeModal: MenuContextValue[\"activeModal\"];\n prevActiveModal: MenuContextValue[\"prevActiveModal\"];\n }>({\n activeModal: null,\n prevActiveModal: null,\n });\n\n const setActiveModal = useCallback<MenuContextValue[\"setActiveModal\"]>(\n (id) => {\n _setActiveModal({\n activeModal: id,\n prevActiveModal: activeModal,\n });\n },\n [activeModal],\n );\n\n // Reset modals on viewport change\n useEffect(() => {\n if (\n !isMobile &&\n activeModal &&\n [ModalId.MobileMenu, ModalId.ProMobileMenu, ModalId.Search].includes(\n activeModal,\n )\n ) {\n setActiveModal(null);\n }\n }, [activeModal, isMobile, setActiveModal]);\n\n // Body lock for specific modals\n useLockBodyScrollCustom(\n !!activeModal &&\n [ModalId.MobileMenu, ModalId.ProMobileMenu].includes(activeModal),\n );\n\n // #############################################################################\n // Parse router parameters\n // #############################################################################\n // Parse the collection slug as route path\n const currentCollectionPath = useMemo((): string | undefined => {\n const url = new URL(currentPathname, storeBaseUrl);\n const matches = url.pathname.match(/(\\/collections\\/[A-Za-z0-9_-]+)/i);\n\n return matches?.[1];\n }, [storeBaseUrl, currentPathname]);\n\n const currentProductPath = useMemo((): string | undefined => {\n const url = new URL(currentPathname, storeBaseUrl);\n const matches = url.pathname.match(\n /((\\/collections\\/.+)?\\/products\\/[A-Za-z0-9_-]+)/i,\n );\n\n return matches?.[1];\n }, [storeBaseUrl, currentPathname]);\n\n const isPathnameActive = useCallback(\n (pathname: string): boolean => {\n // Don't do matching for generic site contexts\n if (GENERIC_SITE_IDS.includes(context)) {\n return false;\n }\n\n if (isMicrositeContext) {\n // HACK microsites can have paths with and without regional prefixes\n const optional = pathname === \"/\" ? \"?\" : \"\";\n const micrositeRegExp = new RegExp(\n `^(?:/\\\\w{2})?${pathname}${optional}$`,\n );\n return micrositeRegExp.test(currentPathname);\n }\n\n return (\n (!!currentCollectionPath &&\n isPartOfUrlPathname(pathname, currentCollectionPath)) ||\n (!!currentProductPath &&\n isPartOfUrlPathname(pathname, currentProductPath))\n );\n },\n [\n context,\n isMicrositeContext,\n currentCollectionPath,\n currentProductPath,\n currentPathname,\n ],\n );\n\n const isSiteUrlActive = useCallback(\n (url: SiteUrl): boolean => {\n return (\n isMicrositeContext &&\n // While SiteId is considered a microsite we don't want url matching for it\n !GENERIC_SITE_IDS.includes(context) &&\n url &&\n url[0] !== SiteId.Store &&\n url[0] === context &&\n isPartOfUrlPathname(currentPathname, url[1]) &&\n // If there's a hash in the SiteUrl, it should match the current hash for the item to be active\n (!url[3] || currentHash.replace(/^#/, \"\") === url[3])\n );\n },\n [context, currentHash, currentPathname, isMicrositeContext],\n );\n\n // #############################################################################\n // Menu sections and items\n // #############################################################################\n const createSiteUrl = useCallback(\n (siteUrl: SiteUrl) => {\n // Don't add store and language search param for navigation with generic context\n const addSiteConfigReferenceSearchParams =\n !GENERIC_SITE_IDS.includes(context);\n\n const [siteId] = siteUrl;\n\n const targetSiteConfig = getSiteConfig(siteId);\n\n return parseSiteUrl({\n siteUrl,\n storeId,\n addSiteConfigReferenceSearchParams,\n language,\n targetSiteConfig,\n context,\n });\n },\n [context, getSiteConfig, storeId, language],\n );\n\n const parseSubSubRecursiveItems = useCallback(\n (subSubItem: NavigationSubSubItem): ParsedNavigationSubSubItem | null => {\n // Sub-sub-items\n const nestedSubSubItems =\n \"items\" in subSubItem && subSubItem.items\n ? subSubItem.items\n .map(parseSubSubRecursiveItems)\n .filter((el): el is ParsedNavigationSubSubItem => !!el)\n : [];\n\n const url =\n isMicrositeContext && subSubItem.url\n ? createSiteUrl(subSubItem.url)\n : // TODO: maybe need to improve to get first \"available\" child not the first form array, not sure if the\n // parseItemsFn filters them already out\n (findFirstPossibleDeepNestedItemUrl(nestedSubSubItems) ??\n (subSubItem.url && createSiteUrl(subSubItem.url)));\n\n if (!url) {\n return null;\n }\n\n const active =\n (subSubItem.url && isSiteUrlActive(subSubItem.url)) ||\n // Any child item is active\n nestedSubSubItems.some((el) => el.active);\n\n return {\n id: subSubItem.id,\n label: subSubItem.label,\n // subLabel: subSubItem.subLabel,\n icon: subSubItem.icon,\n mobileIcon: subSubItem.mobileIcon,\n isNew: subSubItem.isNew,\n active,\n url,\n possible:\n \"items\" in subSubItem\n ? nestedSubSubItems.some((item) => item.possible)\n : // If gotten this far fallback to true\n true,\n items: nestedSubSubItems,\n };\n },\n [isMicrositeContext, createSiteUrl, isSiteUrlActive],\n );\n\n const parseSubSubMenuItems = useCallback(\n (subItem: NavigationSubItem): ParsedNavigationSubSubItem[] => {\n return (\"items\" in subItem ? subItem.items : [])\n .map(parseSubSubRecursiveItems)\n .filter((el): el is ParsedNavigationSubSubItem => !!el);\n },\n [parseSubSubRecursiveItems],\n );\n\n const parseSubMenuItem = useCallback(\n (subItem: NavigationSubItem): ParsedNavigationSubItem | null => {\n const subItemUrl = getSubItemUrl(subItem, isSiteUrlActive);\n\n // Append the new pathname (e.g. when /ca/en already exists)\n const url = subItemUrl ? new URL(createSiteUrl(subItemUrl)) : null;\n\n if (!url) {\n return null;\n }\n\n // Sub-sub-items\n const subSubItems = parseSubSubMenuItems(subItem);\n\n // Parse item active state\n const subItemActive =\n // Site url is active\n (subItem.url && isSiteUrlActive(subItem.url)) ||\n // Any child item is active\n subSubItems.some((el) => el.active);\n\n return {\n id: subItem.id,\n label: subItem.label,\n subLabel: subItem.subLabel,\n subLabelTheme: subItem.subLabelTheme,\n subLabelCollapseMode: subItem.subLabelCollapseMode,\n isNew: subItem.isNew,\n icon: subItem.icon,\n mobileIcon: subItem.mobileIcon,\n invisible: subItem.invisible,\n\n url: url.toString(),\n active: subItemActive,\n\n possible:\n subSubItems.length === 0 || subSubItems.some((item) => item.possible),\n items: subSubItems,\n };\n },\n [isSiteUrlActive, createSiteUrl, parseSubSubMenuItems],\n );\n\n const parseMenuItem = useCallback(\n (item: NavigationItem): ParsedNavigationItem => {\n // Parse sub-items\n const subItems = item.items\n .map(parseSubMenuItem)\n .filter((subItem): subItem is ParsedNavigationSubItem => !!subItem);\n\n // Parse main item active state when in microsite context\n let itemActive = false;\n\n // Custom logic just for microsites to detect if we have to open the 2nd layer navigation\n if (\n isMicrositeContext &&\n // While SiteId is considered a microsite we don't want url matching for it\n !GENERIC_SITE_IDS.includes(context) &&\n item.url &&\n item.url[0] === context &&\n item.url[0] !== SiteId.Store &&\n isPartOfUrlPathname(currentPathname, item.url[1])\n ) {\n itemActive = true;\n }\n\n /**\n * Main item url\n * If it is a microsite context, we use the site url if available.\n * If not in microsite context we use the store url if available and\n * fallback to site URL, then fallback URL and lastly to base URL.\n */\n const url =\n isMicrositeContext && item.url\n ? createSiteUrl(item.url)\n : // TODO: maybe need to improve to get first \"available\" child not the first form array, not sure if the\n // parseItemsFn filters them already out\n (findFirstPossibleDeepNestedItemUrl(subItems) ??\n ((item.url && createSiteUrl(item.url)) ||\n (item.fallbackUrl && createSiteUrl(item.fallbackUrl)) ||\n storeBaseUrl.toString()));\n\n // Result\n return {\n ...item,\n items: subItems,\n url,\n active: itemActive || subItems.some((subItem) => subItem.active),\n possible:\n subItems.length === 0 || subItems.some((item) => item.possible),\n };\n },\n [\n parseSubMenuItem,\n isMicrositeContext,\n context,\n currentPathname,\n createSiteUrl,\n storeBaseUrl,\n ],\n );\n\n // Navigation parsing\n const navigation: MenuContextValue[\"navigation\"] = useMemo(() => {\n const parseItemsFn = (items: NavigationItem[]) => items.map(parseMenuItem);\n\n const parseSection = (\n sectionType: keyof typeof NAVIGATION_MAPPING,\n ): ParsedNavigationSection => {\n const section = NAVIGATION_MAPPING[sectionType];\n const parsedItems = parseItemsFn(section.items ?? []);\n\n const url = section.url ? createSiteUrl(section.url) : null;\n\n const finalUrl =\n url ||\n // TODO: maybe need to improve to get first \"available\" child not the first form array, not sure if the\n // parseItemsFn filters them already out\n findFirstPossibleDeepNestedItemUrl(parsedItems) ||\n (!section.url && createSiteUrl(section.fallbackUrl)) ||\n storeBaseUrl.toString();\n\n return {\n label: section.label,\n type: sectionType,\n url: finalUrl,\n active: parsedItems.some((el) => el.active),\n possible:\n parsedItems.length === 0 || parsedItems.some((item) => item.possible),\n items: parsedItems,\n };\n };\n\n const primary = parseSection(\"primary\");\n const secondary = parseSection(\"secondary\");\n\n // Active value - only one section can be active\n if (secondary.active) {\n primary.active = false;\n } else if (primary.active) {\n secondary.active = false;\n }\n\n return {\n primary,\n secondary,\n };\n }, [parseMenuItem, createSiteUrl, storeBaseUrl]);\n\n const activeNavigationSectionType = useMemo<NavigationSectionType>(() => {\n /**\n * First attempt to derive active section based on active navigation\n */\n if (navigation.primary.active) {\n return \"primary\";\n }\n if (navigation.secondary.active) {\n return \"secondary\";\n }\n\n /**\n * Fallback to check against context id if we can't match it on path\n * Only uisp.com and experts.uisp.com uses \"secondary\" as default\n * TODO: should move this logic into \"navigation\" memo fn so both states are in sync\n */\n return [SiteId.Uisp, SiteId.ExpertsUisp].includes(context)\n ? \"secondary\"\n : \"primary\";\n }, [context, navigation.primary.active, navigation.secondary.active]);\n\n // Define active sections\n const activeNavigationSection: MenuContextValue[\"activeNavigationSection\"] =\n useMemo(() => {\n return navigation[activeNavigationSectionType];\n }, [activeNavigationSectionType, navigation]);\n\n const inactiveNavigationSection: MenuContextValue[\"inactiveNavigationSection\"] =\n useMemo(() => {\n const inactiveType =\n activeNavigationSectionType === \"primary\" ? \"secondary\" : \"primary\";\n\n return navigation[inactiveType];\n }, [activeNavigationSectionType, navigation]);\n\n // #############################################################################\n // Override motif\n // #############################################################################\n const motifFinal = useMemo((): Motif => {\n // Active mobile menu forces dark motif\n if (activeModal === ModalId.MobileMenu) {\n return \"dark\";\n }\n\n // Update: Commented out as no longer - https://ui.slack.com/archives/G01B4G8GF2S/p1683011332500999?thread_ts=1683008828.124399&cid=G01B4G8GF2S\n // Optionally override motif scheme for some specific subitems based on active item\n // const navigationSubItemsWithDarkMotif = [\n // NavigationItemId.NewIntegrations,\n // NavigationItemId.Accessories,\n // ];\n // if (\n // activeNavigationSection.items.some(\n // (item) =>\n // navigationSubItemsWithDarkMotif.includes(item.id) && item.active\n // )\n // ) {\n // return \"dark\";\n // }\n\n // Return the active one\n return motif;\n }, [activeModal, motif]);\n\n // #############################################################################\n // Navigation visibility\n // #############################################################################\n const [navigationOutOfView, setNavigationOutOfView] = useState<\n MenuContextValue[\"navigationOutOfView\"]\n >(\n // Default ref.current is null so by default it's not visible\n true,\n );\n\n // #############################################################################\n // Result\n // #############################################################################\n return (\n <MenuContext.Provider\n value={{\n // Unrelated util to help aid with SSR in various places in app\n isSsr,\n storeId,\n\n motif: motifFinal,\n setMotif: handleSetMotif,\n\n context,\n isMicrositeContext,\n\n activeModal,\n prevActiveModal,\n setActiveModal,\n\n deployedLanguages,\n isMultiLanguage,\n language,\n languageDirection: getLanguageDirection(language),\n isLongLanguage,\n\n navigation,\n activeNavigationSection,\n inactiveNavigationSection,\n isPathnameActive,\n\n navigationOutOfView,\n setNavigationOutOfView,\n\n createSiteUrl,\n }}\n >\n {children}\n </MenuContext.Provider>\n );\n};\n\nexport function useMenu(): MenuContextValue {\n const context = useContext(MenuContext);\n if (context === null) {\n throw new Error(\"useMenu must be used within a MenuContextProvider\");\n }\n return context;\n}\n"],"names":["MenuContext","createContext","MenuContextProvider","context","pathname","currentPathname","storeId","DEFAULT_STORE_ID","hasSsrCapability","hash","currentHash","language","DEFAULT_LANGUAGE","globalSiteConfig","children","isMobile","useMedia","BREAKPOINTS","TOP_NAV_MOBILE_AND_DOWN","getSiteConfig","useCallback","siteId","storeIdOverride","getGlobalSiteConfig","currentSiteConfig","useMemo","deployedLanguages","languages","isMultiLanguage","length","isLongLanguage","LONG_LANGUAGES","includes","isSsr","setIsSsr","useState","useEffect","storeBaseUrl","SiteId","Store","baseUrl","motif","setMotif","handleSetMotif","isMicrositeContext","Ui","Uisp","ExpertsUi","ExpertsUisp","Uwc","TechSpecs","Generic","Amplifi","checkUnreachable","activeModal","prevActiveModal","_setActiveModal","setActiveModal","id","ModalId","MobileMenu","ProMobileMenu","Search","useLockBodyScrollCustom","currentCollectionPath","url","URL","matches","match","currentProductPath","isPathnameActive","GENERIC_SITE_IDS","optional","micrositeRegExp","RegExp","test","isPartOfUrlPathname","isSiteUrlActive","replace","createSiteUrl","siteUrl","addSiteConfigReferenceSearchParams","targetSiteConfig","parseSiteUrl","parseSubSubRecursiveItems","subSubItem","nestedSubSubItems","items","map","filter","el","findFirstPossibleDeepNestedItemUrl","active","some","label","icon","mobileIcon","isNew","possible","item","parseSubSubMenuItems","subItem","parseSubMenuItem","subItemUrl","getSubItemUrl","subSubItems","subItemActive","subLabel","subLabelTheme","subLabelCollapseMode","invisible","toString","parseMenuItem","subItems","itemActive","fallbackUrl","navigation","parseItemsFn","parseSection","sectionType","section","NAVIGATION_MAPPING","parsedItems","finalUrl","type","primary","secondary","activeNavigationSectionType","activeNavigationSection","inactiveNavigationSection","inactiveType","motifFinal","navigationOutOfView","setNavigationOutOfView","jsx","Provider","value","languageDirection","getLanguageDirection","useMenu","useContext","Error"],"mappings":";;;;;;;;;;;;AAkDa,MAAAA,WAAA,GAAcC,oBAAuC,IAAI,CAAA;AAE/D,MAAMC,sBAAsBA,CAAC;EAClCC,OAAA;EACAC,UAAUC,eAAkB,GAAA,GAAA;EAC5BC,OAAU,GAAAC,OAAA,CAAAA,gBAAA;EACVC,gBAAmB,GAAA,KAAA;EACnBC,MAAMC,WAAc,GAAA,EAAA;EACpBC,QAAW,GAAAC,OAAA,CAAAA,gBAAA;EACXC,gBAAA;EACAC;AACF,CA0CmB,KAAA;EACjB,MAAMC,QAAW,GAAAC,QAAA,CAAAA,QAAA,CACfC,MAAAA,CAAAA,WAAY,CAAAC,uBAAA,EACZ;EAAA;EAAA,CACF;EAKA,MAAMC,aAAgB,GAAAC,KAAA,CAAAA,WAAA,CACpB,CAACC,MAAgB,EAAAC,eAAA,KACfC,0BAAoBV,gBAAkB,EAAAQ,MAAA,EAAQC,mBAAmBhB,OAAO,CAAA,EAC1E,CAACO,kBAAkBP,OAAO,CAAA,CAC5B;EAEA,MAAMkB,iBAAoB,GAAAC,KAAA,CAAAA,OAAA;EAAA;EAExB,MAAMN,cAAchB,OAAO,CAAA,EAC3B,CAACA,SAASgB,aAAa,CAAA,CACzB;EAKM,MAAAO,iBAAA,GAAoBD,KAAAA,CAAAA,QAAQ,MAAM;IACtC,OACED,kBAAkBG,SAClB,IAAA;MAAA;AAAA;AAAA;IAAA,CAIA;EAAA,CAED,EAAA,CAACH,iBAAkB,CAAAG,SAAS,CAAC,CAAA;EAE1B,MAAAC,eAAA,GAAkBH,KAAAA,CAAAA,QAAQ,MAAe;IAC7C,OAAOC,kBAAkBG,MAAS,GAAA,CAAA;EAAA,CACpC,EAAG,CAACH,iBAAiB,CAAC,CAAA;EAEtB,MAAMI,cAAiB,GAA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AAA,CAACtI,WAAY,CAAAuI,QAAA,EAAZ;IACCC,KAAO,EAAA;MAAA;MAELvG,KAAA;MACA3B,OAAA;MAEAmC,KAAO,EAAA0F,UAAA;MACPzF,QAAU,EAAAC,cAAA;MAEVxC,OAAA;MACAyC,kBAAA;MAEAU,WAAA;MACAC,eAAA;MACAE,cAAA;MAEA/B,iBAAA;MACAE,eAAA;MACAjB,QAAA;MACA8H,iBAAA,EAAmBC,2BAAqB/H,QAAQ,CAAA;MAChDmB,cAAA;MAEAsF,UAAA;MACAY,uBAAA;MACAC,yBAAA;MACA3D,gBAAA;MAEA8D,mBAAA;MACAC,sBAAA;MAEAtD;IACF,CAAA;IAECjE;EAAA,CAAA,CACH;AAEJ,CAAA;AAEO,SAAS6H,OAA4BA,CAAA,EAAA;EACpC,MAAAxI,OAAA,GAAUyI,iBAAW5I,WAAW,CAAA;EACtC,IAAIG,YAAY,IAAM,EAAA;IACd,MAAA,IAAI0I,MAAM,mDAAmD,CAAA;EACrE;EACO,OAAA1I,OAAA;AACT;;;"}
@@ -88,7 +88,7 @@ const MenuContextProvider = ({
88
88
  });
89
89
  }, [activeModal]);
90
90
  useEffect(() => {
91
- if (!isMobile && activeModal && [ModalId.MobileMenu, ModalId.ProMobileMenu].includes(activeModal)) {
91
+ if (!isMobile && activeModal && [ModalId.MobileMenu, ModalId.ProMobileMenu, ModalId.Search].includes(activeModal)) {
92
92
  setActiveModal(null);
93
93
  }
94
94
  }, [activeModal, isMobile, setActiveModal]);