@ubnt/store.core 9.30.0-techspecs.0 → 9.30.0-techspecs.1

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 (1117) hide show
  1. package/CHANGELOG.md +542 -6
  2. package/lib/_virtual/_virtual_multi-entry.js +63 -42
  3. package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
  4. package/lib/_virtual/_virtual_multi-entry.mjs +50 -40
  5. package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
  6. package/lib/assets/aggregation.png +0 -0
  7. package/lib/assets/bullet.png +0 -0
  8. package/lib/assets/camera-special-devices.png +0 -0
  9. package/lib/assets/clients.svg +9 -2
  10. package/lib/assets/cloud-gateway-overview.png +0 -0
  11. package/lib/assets/compact-switching.png +0 -0
  12. package/lib/assets/compact.png +0 -0
  13. package/lib/assets/consolidatedSpecialDevices.svg +5 -0
  14. package/lib/assets/digital-signage.png +0 -0
  15. package/lib/assets/dome-turret.png +0 -0
  16. package/lib/assets/door-access.png +0 -0
  17. package/lib/assets/doorAccess.svg +5 -0
  18. package/lib/assets/education.jpg +0 -0
  19. package/lib/assets/efg.png +0 -0
  20. package/lib/assets/enterprise-scale.png +0 -0
  21. package/lib/assets/enterprise.jpg +0 -0
  22. package/lib/assets/ev-charging.png +0 -0
  23. package/lib/assets/flagship.jpg +0 -0
  24. package/lib/assets/flexible-outdoor.jpg +0 -0
  25. package/lib/assets/gbe-1u-2.5and10.png +0 -0
  26. package/lib/assets/gbe-1u.png +0 -0
  27. package/lib/assets/hospitality.jpg +0 -0
  28. package/lib/assets/how-it-works.jpg +0 -0
  29. package/lib/assets/icon-location-pin.svg +5 -0
  30. package/lib/{components/MobileModal/assets → assets/icons}/arrowDown.svg.js +1 -1
  31. package/lib/assets/icons/arrowDown.svg.mjs +3 -0
  32. package/lib/assets/icons/menu/icon-location-pin.svg.js +27 -0
  33. package/lib/assets/icons/menu/icon-location-pin.svg.js.map +1 -0
  34. package/lib/assets/icons/menu/icon-location-pin.svg.mjs +3 -0
  35. package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +1 -0
  36. package/lib/assets/icons/zoomOut.svg.js +27 -0
  37. package/lib/assets/icons/zoomOut.svg.js.map +1 -0
  38. package/lib/assets/icons/zoomOut.svg.mjs +3 -0
  39. package/lib/assets/icons/zoomOut.svg.mjs.map +1 -0
  40. package/lib/assets/industrial.jpg +0 -0
  41. package/lib/assets/industrial2.jpg +0 -0
  42. package/lib/assets/keyFeatures/clients_v2.svg +3 -0
  43. package/lib/assets/keyFeatures/{clients.svg.js → clients_v2.svg.js} +2 -2
  44. package/lib/assets/keyFeatures/clients_v2.svg.js.map +1 -0
  45. package/lib/assets/keyFeatures/clients_v2.svg.mjs +3 -0
  46. package/lib/assets/keyFeatures/clients_v2.svg.mjs.map +1 -0
  47. package/lib/assets/keyFeatures/{phased_array.svg.js → phased_array_v2.svg.js} +1 -1
  48. package/lib/assets/keyFeatures/phased_array_v2.svg.js.map +1 -0
  49. package/lib/assets/keyFeatures/{phased_array.svg.mjs → phased_array_v2.svg.mjs} +1 -1
  50. package/lib/assets/keyFeatures/phased_array_v2.svg.mjs.map +1 -0
  51. package/lib/assets/large-scale.png +0 -0
  52. package/lib/assets/logoUnifi.svg +10 -2
  53. package/lib/assets/managed-voip.png +0 -0
  54. package/lib/assets/mega-capacity.jpg +0 -0
  55. package/lib/assets/minus4.svg +8 -8
  56. package/lib/assets/minus5.svg +8 -8
  57. package/lib/assets/mobile-routing.png +0 -0
  58. package/lib/assets/nextai-camera.jpg +0 -0
  59. package/lib/assets/nextai-cyber.jpg +0 -0
  60. package/lib/assets/overview.svg +3 -0
  61. package/lib/assets/pause.svg +3 -3
  62. package/lib/assets/pause2.svg +3 -3
  63. package/lib/assets/plus5.svg +9 -9
  64. package/lib/assets/plus6.svg +9 -9
  65. package/lib/assets/premium-audio.png +0 -0
  66. package/lib/assets/ptz.png +0 -0
  67. package/lib/assets/retail.jpg +0 -0
  68. package/lib/assets/sd-wan-sase.jpg +0 -0
  69. package/lib/assets/security-overview.png +0 -0
  70. package/lib/assets/site-manager.jpg +0 -0
  71. package/lib/assets/stadium.jpg +0 -0
  72. package/lib/assets/switching-overview.png +0 -0
  73. package/lib/assets/tco-calculator.jpg +0 -0
  74. package/lib/assets/ucg-max.png +0 -0
  75. package/lib/assets/ucgMax.jpg +0 -0
  76. package/lib/assets/ucgMax2.jpg +0 -0
  77. package/lib/assets/ucgUltra.jpg +0 -0
  78. package/lib/assets/ucgUltra2.jpg +0 -0
  79. package/lib/assets/udmPro.jpg +0 -0
  80. package/lib/assets/udmPro2.jpg +0 -0
  81. package/lib/assets/udmProMax.jpg +0 -0
  82. package/lib/assets/udmProMax2.jpg +0 -0
  83. package/lib/assets/udmProSpecial.jpg +0 -0
  84. package/lib/assets/udmProSpecial2.jpg +0 -0
  85. package/lib/assets/unifi-drive.png +0 -0
  86. package/lib/assets/video-recorders.png +0 -0
  87. package/lib/assets/wall.jpg +0 -0
  88. package/lib/assets/wifi-bridging.png +0 -0
  89. package/lib/assets/wifi-flagship.png +0 -0
  90. package/lib/assets/wifi-integrated.png +0 -0
  91. package/lib/assets/wifi-mega-capacity.png +0 -0
  92. package/lib/assets/wifi-outdoor.png +0 -0
  93. package/lib/assets/wifi-overview.png +0 -0
  94. package/lib/assets/wifi-wall.png +0 -0
  95. package/lib/assets/zoomOut.svg +3 -0
  96. package/lib/components/Accordion/Accordion.js +4 -4
  97. package/lib/components/Avatar/Avatar.js +2 -2
  98. package/lib/components/BackInStock/BackInStock.types.d.ts +1 -0
  99. package/lib/components/Button/Button.js +5 -5
  100. package/lib/components/Button/CartButton.js +2 -2
  101. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.d.ts +1 -1
  102. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js +16 -4
  103. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js.map +1 -1
  104. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs +17 -5
  105. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs.map +1 -1
  106. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.d.ts +5 -1
  107. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js +82 -17
  108. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js.map +1 -1
  109. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs +82 -17
  110. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs.map +1 -1
  111. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.types.d.ts +4 -0
  112. package/lib/components/CardSection/Card/Card.js +6 -6
  113. package/lib/components/CardSection/CardSection.js +2 -2
  114. package/lib/components/CartIcon/CartIcon.js +2 -2
  115. package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +1 -1
  116. package/lib/components/CategoryTabs/CategoryTabs.styles.js +2 -3
  117. package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
  118. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +2 -3
  119. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
  120. package/lib/components/Checkbox/Checkbox.js +4 -4
  121. package/lib/components/CloserLookSection/CloserLookSection.js +11 -11
  122. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.js +5 -5
  123. package/lib/components/Compare/Compare.styles.d.ts +5 -5
  124. package/lib/components/Container/Container.d.ts +1 -1
  125. package/lib/components/Container/Container.js +5 -4
  126. package/lib/components/Container/Container.js.map +1 -1
  127. package/lib/components/Container/Container.mjs +5 -4
  128. package/lib/components/Container/Container.mjs.map +1 -1
  129. package/lib/components/CustomImage/CustomImage.js +12 -12
  130. package/lib/components/Explore/Explore.js +5 -5
  131. package/lib/components/Explore/ExploreData.js +3 -3
  132. package/lib/components/Explore/ExploreData.js.map +1 -1
  133. package/lib/components/Explore/ExploreData.mjs +3 -3
  134. package/lib/components/Explore/ExploreData.mjs.map +1 -1
  135. package/lib/components/FeaturesSection_deprecated/Features/Features.js +2 -2
  136. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +22 -22
  137. package/lib/components/Footer/Footer.js +2 -2
  138. package/lib/components/Footer/hooks/useFooterContent.js +5 -5
  139. package/lib/components/Gallery/Gallery.context.js +17 -17
  140. package/lib/components/Gallery/Gallery.js +9 -9
  141. package/lib/components/Gallery/GalleryControls/GalleryControls.js +4 -4
  142. package/lib/components/Gallery/GalleryItem/GalleryItem.js +8 -8
  143. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.js +8 -8
  144. package/lib/components/GridGallery/GridGallery.js +8 -8
  145. package/lib/components/GridGallery/GridModal/GridModal.js +6 -6
  146. package/lib/components/Header/AccountFrame/AccountFrame.js +11 -11
  147. package/lib/components/Header/AccountFrame/Mobile/Mobile.js +4 -4
  148. package/lib/components/Header/AccountMenu/AccountMenu.js +33 -23
  149. package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
  150. package/lib/components/Header/AccountMenu/AccountMenu.mjs +15 -5
  151. package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
  152. package/lib/components/Header/CartModal/Empty/Empty.js +3 -3
  153. package/lib/components/Header/CartModalV2/CartModal.js +5 -5
  154. package/lib/components/Header/CartModalV2/Item/Item.js +4 -4
  155. package/lib/components/Header/Header.js +53 -52
  156. package/lib/components/Header/Header.js.map +1 -1
  157. package/lib/components/Header/Header.mjs +16 -15
  158. package/lib/components/Header/Header.mjs.map +1 -1
  159. package/lib/components/Header/Header.styles.d.ts +7 -12
  160. package/lib/components/Header/Header.styles.js +10 -32
  161. package/lib/components/Header/Header.styles.js.map +1 -1
  162. package/lib/components/Header/Header.styles.mjs +10 -31
  163. package/lib/components/Header/Header.styles.mjs.map +1 -1
  164. package/lib/components/Header/Header.types.d.ts +29 -5
  165. package/lib/components/Header/Header.types.js +2 -1
  166. package/lib/components/Header/Header.types.js.map +1 -1
  167. package/lib/components/Header/Header.types.mjs +2 -1
  168. package/lib/components/Header/Header.types.mjs.map +1 -1
  169. package/lib/components/Header/IsolatedHeader.d.ts +1 -0
  170. package/lib/components/Header/IsolatedHeader.js +53 -53
  171. package/lib/components/Header/IsolatedHeader.js.map +1 -1
  172. package/lib/components/Header/IsolatedHeader.mjs +49 -48
  173. package/lib/components/Header/IsolatedHeader.mjs.map +1 -1
  174. package/lib/components/Header/LanguageFrame/LanguageFrame.js +6 -6
  175. package/lib/components/Header/LogoIcon/LogoIcon.d.ts +7 -0
  176. package/lib/components/Header/LogoIcon/LogoIcon.js +46 -0
  177. package/lib/components/Header/LogoIcon/LogoIcon.js.map +1 -0
  178. package/lib/components/Header/LogoIcon/LogoIcon.mjs +36 -0
  179. package/lib/components/Header/LogoIcon/LogoIcon.mjs.map +1 -0
  180. package/lib/components/Header/LogoIcon/index.d.ts +1 -0
  181. package/lib/components/Header/LogoIcon/index.js +6 -0
  182. package/lib/components/{ResourceCalculatorV1/components → Header/LogoIcon}/index.js.map +1 -1
  183. package/lib/components/{ResourceCalculatorV1/components → Header/LogoIcon}/index.mjs +1 -1
  184. package/lib/components/Header/MenuItem/MenuItem.styles.d.ts +1 -1
  185. package/lib/components/Header/MenuItem/MenuItem.styles.js +3 -3
  186. package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
  187. package/lib/components/Header/MenuItem/MenuItem.styles.mjs +3 -3
  188. package/lib/components/Header/MenuItem/MenuItem.styles.mjs.map +1 -1
  189. package/lib/components/Header/MenuItem/MenuItem.types.d.ts +1 -0
  190. package/lib/components/Header/Navigation/Carousel/Carousel.js +5 -5
  191. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.js +12 -12
  192. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
  193. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js +7 -5
  194. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js.map +1 -1
  195. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.mjs +7 -5
  196. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.mjs.map +1 -1
  197. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +6 -6
  198. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +1 -1
  199. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
  200. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +116 -109
  201. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
  202. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +111 -104
  203. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
  204. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +9 -0
  205. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +15 -1
  206. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
  207. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +13 -2
  208. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
  209. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +12 -6
  210. package/lib/components/Header/Overlay/Overlay.js +3 -3
  211. package/lib/components/Header/ProHeader/ProHeader.d.ts +9 -5
  212. package/lib/components/Header/ProHeader/ProHeader.js +275 -194
  213. package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
  214. package/lib/components/Header/ProHeader/ProHeader.mjs +254 -174
  215. package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
  216. package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +30 -25
  217. package/lib/components/Header/ProHeader/ProHeader.styles.js +119 -66
  218. package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
  219. package/lib/components/Header/ProHeader/ProHeader.styles.mjs +112 -65
  220. package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
  221. package/lib/components/Header/translations/ar.json.js +4 -1
  222. package/lib/components/Header/translations/ar.json.js.map +1 -1
  223. package/lib/components/Header/translations/ar.json.mjs +4 -2
  224. package/lib/components/Header/translations/ar.json.mjs.map +1 -1
  225. package/lib/components/Header/translations/de.json.js +4 -1
  226. package/lib/components/Header/translations/de.json.js.map +1 -1
  227. package/lib/components/Header/translations/de.json.mjs +4 -2
  228. package/lib/components/Header/translations/de.json.mjs.map +1 -1
  229. package/lib/components/Header/translations/el.json.js +4 -1
  230. package/lib/components/Header/translations/el.json.js.map +1 -1
  231. package/lib/components/Header/translations/el.json.mjs +4 -2
  232. package/lib/components/Header/translations/el.json.mjs.map +1 -1
  233. package/lib/components/Header/translations/en.json.js +7 -1
  234. package/lib/components/Header/translations/en.json.js.map +1 -1
  235. package/lib/components/Header/translations/en.json.mjs +6 -2
  236. package/lib/components/Header/translations/en.json.mjs.map +1 -1
  237. package/lib/components/Header/translations/es.json.js +4 -1
  238. package/lib/components/Header/translations/es.json.js.map +1 -1
  239. package/lib/components/Header/translations/es.json.mjs +4 -2
  240. package/lib/components/Header/translations/es.json.mjs.map +1 -1
  241. package/lib/components/Header/translations/fr.json.js +4 -1
  242. package/lib/components/Header/translations/fr.json.js.map +1 -1
  243. package/lib/components/Header/translations/fr.json.mjs +4 -2
  244. package/lib/components/Header/translations/fr.json.mjs.map +1 -1
  245. package/lib/components/Header/translations/it.json.js +4 -1
  246. package/lib/components/Header/translations/it.json.js.map +1 -1
  247. package/lib/components/Header/translations/it.json.mjs +4 -2
  248. package/lib/components/Header/translations/it.json.mjs.map +1 -1
  249. package/lib/components/Header/translations/ja.json.js +4 -1
  250. package/lib/components/Header/translations/ja.json.js.map +1 -1
  251. package/lib/components/Header/translations/ja.json.mjs +4 -2
  252. package/lib/components/Header/translations/ja.json.mjs.map +1 -1
  253. package/lib/components/Header/translations/pt-BR.json.js +4 -1
  254. package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
  255. package/lib/components/Header/translations/pt-BR.json.mjs +4 -2
  256. package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
  257. package/lib/components/Header/translations/zh-Hans.json.js +4 -1
  258. package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
  259. package/lib/components/Header/translations/zh-Hans.json.mjs +4 -2
  260. package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
  261. package/lib/components/Header/translations/zh-Hant-TW.json.js +4 -1
  262. package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
  263. package/lib/components/Header/translations/zh-Hant-TW.json.mjs +4 -2
  264. package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
  265. package/lib/components/Hero/Hero.js +5 -5
  266. package/lib/components/Hero/Hero.styles.d.ts +2 -2
  267. package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +1 -1
  268. package/lib/components/HeroVideo/HeroVideo.js +5 -5
  269. package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.d.ts +1 -1
  270. package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.js +3 -1
  271. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +1 -0
  272. package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.mjs +3 -1
  273. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +1 -0
  274. package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.styles.d.ts +1 -0
  275. package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.styles.js +10 -7
  276. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +1 -0
  277. package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.styles.mjs +10 -7
  278. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +1 -0
  279. package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.types.d.ts +1 -0
  280. package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +2 -2
  281. package/lib/components/ImageCarousel/ImageCarousel.js +29 -29
  282. package/lib/components/ImageSequence/ImageSequence.js +8 -8
  283. package/lib/components/LandingPage/Cards/Card/Card.js +4 -4
  284. package/lib/components/LandingPage/Cards/Cards.js +14 -14
  285. package/lib/components/LandingPage/Cards/Cards.js.map +1 -1
  286. package/lib/components/LandingPage/Cards/Cards.mjs +3 -3
  287. package/lib/components/LandingPage/Cards/Cards.mjs.map +1 -1
  288. package/lib/components/LandingPage/LandingPage.js +2 -2
  289. package/lib/components/LandingPagePro/LandingPagePro.js +13 -13
  290. package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +1 -1
  291. package/lib/components/LandingPageSearch/LandingPageSearch.js +2 -2
  292. package/lib/components/LandingPageSearch/Modal/Modal.js +9 -9
  293. package/lib/components/LandingPageSidebar/LandingPageSidebar.js +12 -12
  294. package/lib/components/LayoutRenderer/LayoutRenderer.js +8 -8
  295. package/lib/components/LayoutRenderer/LayoutRenderer.styles.d.ts +1 -1
  296. package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +3 -3
  297. package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +3 -3
  298. package/lib/components/LearnMoreLink/LearnMoreLink.js +1 -1
  299. package/lib/components/LearnMoreLink/LearnMoreLink.js.map +1 -1
  300. package/lib/components/LearnMoreLink/LearnMoreLink.mjs +1 -1
  301. package/lib/components/LearnMoreLink/LearnMoreLink.mjs.map +1 -1
  302. package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.js +7 -7
  303. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.js +18 -18
  304. package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.js +2 -2
  305. package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.js +3 -3
  306. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.js +3 -3
  307. package/lib/components/MicrositeHeader/MicrositeHeader.d.ts +2 -0
  308. package/lib/components/MicrositeHeader/MicrositeHeader.js +30 -0
  309. package/lib/components/MicrositeHeader/MicrositeHeader.js.map +1 -0
  310. package/lib/components/MicrositeHeader/MicrositeHeader.mjs +28 -0
  311. package/lib/components/MicrositeHeader/MicrositeHeader.mjs.map +1 -0
  312. package/lib/components/MicrositeHeader/MicrositeHeader.styles.d.ts +2 -0
  313. package/lib/components/MicrositeHeader/MicrositeHeader.types.d.ts +7 -0
  314. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.d.ts +2 -0
  315. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.js +139 -0
  316. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.js.map +1 -0
  317. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.mjs +130 -0
  318. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.mjs.map +1 -0
  319. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.d.ts +59 -0
  320. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.js +424 -0
  321. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.js.map +1 -0
  322. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.mjs +389 -0
  323. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.mjs.map +1 -0
  324. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.types.d.ts +21 -0
  325. package/lib/components/MicrositeHeader/components/DropdownMenu/index.d.ts +1 -0
  326. package/lib/components/MicrositeHeader/components/DropdownMenu/index.js +6 -0
  327. package/lib/components/MicrositeHeader/components/DropdownMenu/index.js.map +1 -0
  328. package/lib/components/MicrositeHeader/components/DropdownMenu/index.mjs +3 -0
  329. package/lib/components/MicrositeHeader/components/DropdownMenu/index.mjs.map +1 -0
  330. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.d.ts +2 -0
  331. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.d.ts +22 -0
  332. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.js +148 -0
  333. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.js.map +1 -0
  334. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.mjs +126 -0
  335. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.mjs.map +1 -0
  336. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.types.d.ts +12 -0
  337. package/lib/components/MicrositeHeader/components/FirstLevelMenu/index.d.ts +1 -0
  338. package/lib/components/MicrositeHeader/components/Navigation/Navigation.d.ts +7 -0
  339. package/lib/components/MicrositeHeader/components/Navigation/Navigation.js +244 -0
  340. package/lib/components/MicrositeHeader/components/Navigation/Navigation.js.map +1 -0
  341. package/lib/components/MicrositeHeader/components/Navigation/Navigation.mjs +233 -0
  342. package/lib/components/MicrositeHeader/components/Navigation/Navigation.mjs.map +1 -0
  343. package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.d.ts +36 -0
  344. package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.js +233 -0
  345. package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.js.map +1 -0
  346. package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.mjs +211 -0
  347. package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.mjs.map +1 -0
  348. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.d.ts +8 -0
  349. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.js +47 -0
  350. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.js.map +1 -0
  351. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.mjs +39 -0
  352. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.mjs.map +1 -0
  353. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.d.ts +1 -0
  354. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.js +6 -0
  355. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.js.map +1 -0
  356. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.mjs +3 -0
  357. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.mjs.map +1 -0
  358. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.d.ts +5 -0
  359. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.js +74 -0
  360. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.js.map +1 -0
  361. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.mjs +72 -0
  362. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.mjs.map +1 -0
  363. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.d.ts +30 -0
  364. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.js +201 -0
  365. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.js.map +1 -0
  366. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.mjs +179 -0
  367. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.mjs.map +1 -0
  368. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.d.ts +1 -0
  369. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.js +6 -0
  370. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.js.map +1 -0
  371. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.mjs +3 -0
  372. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.mjs.map +1 -0
  373. package/lib/components/MicrositeHeader/components/Navigation/index.d.ts +1 -0
  374. package/lib/components/MicrositeHeader/components/Navigation/index.js +7 -0
  375. package/lib/components/MicrositeHeader/components/Navigation/index.js.map +1 -0
  376. package/lib/components/MicrositeHeader/components/Navigation/index.mjs +3 -0
  377. package/lib/components/MicrositeHeader/components/Navigation/index.mjs.map +1 -0
  378. package/lib/components/MicrositeHeader/components/SecondLevelMenu/SecondLevelMenu.d.ts +2 -0
  379. package/lib/components/MicrositeHeader/components/SecondLevelMenu/SecondLevelMenu.styles.d.ts +13 -0
  380. package/lib/components/MicrositeHeader/components/SecondLevelMenu/SecondLevelMenu.types.d.ts +11 -0
  381. package/lib/components/MicrositeHeader/components/SecondLevelMenu/index.d.ts +1 -0
  382. package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.d.ts +17 -0
  383. package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.styles.d.ts +13 -0
  384. package/lib/components/MicrositeHeader/components/SiteMapColumns/index.d.ts +1 -0
  385. package/lib/components/MicrositeHeader/index.d.ts +1 -0
  386. package/lib/components/MicrositeHeader/index.js +6 -0
  387. package/lib/components/MicrositeHeader/index.js.map +1 -0
  388. package/lib/components/MicrositeHeader/index.mjs +3 -0
  389. package/lib/components/MicrositeHeader/index.mjs.map +1 -0
  390. package/lib/components/MicrositeHero/MicrositeHero.js +18 -18
  391. package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.js +4 -4
  392. package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.js +9 -9
  393. package/lib/components/MicrositeProductGrid/MicrositeProductGrid.js +8 -8
  394. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlockWrap.js +2 -2
  395. package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +1 -1
  396. package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.js +3 -3
  397. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +13 -13
  398. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
  399. package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
  400. package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
  401. package/lib/components/Microsites/MicrositePageContext.js +2 -2
  402. package/lib/components/Microsites/MicrositeProductPage.js +3 -3
  403. package/lib/components/Microsites/context/MicrositeProductPageContext.js +3 -3
  404. package/lib/components/MobileModal/MobileModal.js +5 -5
  405. package/lib/components/MobileModal/MobileModal.js.map +1 -1
  406. package/lib/components/MobileModal/MobileModal.mjs +1 -1
  407. package/lib/components/MobileModal/MobileModal.mjs.map +1 -1
  408. package/lib/components/Modal/Modal.js +3 -3
  409. package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js +3 -3
  410. package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.js +2 -2
  411. package/lib/components/ModelCompareV3/ModelCompareV3.js +14 -14
  412. package/lib/components/ModelCompareV3/ModelCompareV3.types.d.ts +4 -0
  413. package/lib/components/ModelCompareV3/ProductGroupsGrid.js +3 -3
  414. package/lib/components/ModelCompareV3/ScrollGroup/ScrollGroup.js +5 -5
  415. package/lib/components/ModelCompareV3/ScrollGroup/context.js +3 -3
  416. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupItem.js +8 -8
  417. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupSetScroll.js +2 -2
  418. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupTo.js +2 -2
  419. package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js +7 -7
  420. package/lib/components/ModelCompareV3/StickyGrid/StickyGridBody.js +2 -2
  421. package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js +5 -5
  422. package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.js +2 -2
  423. package/lib/components/ModelCompareV3/StickyGrid/context.js +3 -3
  424. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.js +5 -5
  425. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.mjs +2 -2
  426. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.js +5 -5
  427. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.mjs +2 -2
  428. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
  429. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
  430. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
  431. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
  432. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
  433. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
  434. package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.js +1 -1
  435. package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.mjs +2 -2
  436. package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.js +1 -1
  437. package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.mjs +2 -2
  438. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
  439. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
  440. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
  441. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
  442. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
  443. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
  444. package/lib/components/ModelCompareV3/assets/Switching/industrial.jpg.js +1 -1
  445. package/lib/components/ModelCompareV3/assets/Switching/industrial.jpg.mjs +2 -2
  446. package/lib/{assets/icons/menu/icon-globe.svg.js → components/ModelCompareV3/assets/WiFi/flagship.jpg.js} +6 -6
  447. package/lib/components/ModelCompareV3/assets/WiFi/flagship.jpg.js.map +1 -0
  448. package/lib/components/ModelCompareV3/assets/WiFi/flagship.jpg.mjs +3 -0
  449. package/lib/components/ModelCompareV3/assets/WiFi/flagship.jpg.mjs.map +1 -0
  450. package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.js +27 -0
  451. package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.js.map +1 -0
  452. package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.mjs +3 -0
  453. package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.mjs.map +1 -0
  454. package/lib/components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.js +27 -0
  455. package/lib/components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.js.map +1 -0
  456. package/lib/components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.mjs +3 -0
  457. package/lib/components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.mjs.map +1 -0
  458. package/lib/components/ModelCompareV3/assets/WiFi/wall.jpg.js +27 -0
  459. package/lib/components/ModelCompareV3/assets/WiFi/wall.jpg.js.map +1 -0
  460. package/lib/components/ModelCompareV3/assets/WiFi/wall.jpg.mjs +3 -0
  461. package/lib/components/ModelCompareV3/assets/WiFi/wall.jpg.mjs.map +1 -0
  462. package/lib/components/ModelCompareV3/assets/clients.svg.js +1 -1
  463. package/lib/components/ModelCompareV3/assets/clients.svg.mjs +2 -2
  464. package/lib/components/ModelCompareV3/data/CloudGateways.js +15 -15
  465. package/lib/components/ModelCompareV3/data/CloudGateways.mjs +10 -10
  466. package/lib/components/ModelCompareV3/data/WiFi.d.ts +2 -0
  467. package/lib/components/ModelCompareV3/data/WiFi.js +23 -0
  468. package/lib/components/ModelCompareV3/data/WiFi.js.map +1 -0
  469. package/lib/components/ModelCompareV3/data/WiFi.mjs +21 -0
  470. package/lib/components/ModelCompareV3/data/WiFi.mjs.map +1 -0
  471. package/lib/components/ModelCompareV3/data/index.d.ts +20 -19
  472. package/lib/components/ModelCompareV3/data/index.js +41 -38
  473. package/lib/components/ModelCompareV3/data/index.js.map +1 -1
  474. package/lib/components/ModelCompareV3/data/index.mjs +41 -38
  475. package/lib/components/ModelCompareV3/data/index.mjs.map +1 -1
  476. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js +2 -2
  477. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js.map +1 -1
  478. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.mjs +2 -2
  479. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.mjs.map +1 -1
  480. package/lib/components/ModelCompareV3/data/products/express.js +2 -2
  481. package/lib/components/ModelCompareV3/data/products/express.js.map +1 -1
  482. package/lib/components/ModelCompareV3/data/products/express.mjs +3 -3
  483. package/lib/components/ModelCompareV3/data/products/express.mjs.map +1 -1
  484. package/lib/components/ModelCompareV3/data/products/industrial.js +1 -1
  485. package/lib/components/ModelCompareV3/data/products/industrial.mjs +1 -1
  486. package/lib/components/ModelCompareV3/data/products/ucgMax.js +2 -2
  487. package/lib/components/ModelCompareV3/data/products/ucgMax.js.map +1 -1
  488. package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +2 -2
  489. package/lib/components/ModelCompareV3/data/products/ucgMax.mjs.map +1 -1
  490. package/lib/components/ModelCompareV3/data/products/ucgUltra.js +3 -3
  491. package/lib/components/ModelCompareV3/data/products/ucgUltra.js.map +1 -1
  492. package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +4 -4
  493. package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs.map +1 -1
  494. package/lib/components/ModelCompareV3/data/products/udmPro.js +3 -3
  495. package/lib/components/ModelCompareV3/data/products/udmPro.js.map +1 -1
  496. package/lib/components/ModelCompareV3/data/products/udmPro.mjs +4 -4
  497. package/lib/components/ModelCompareV3/data/products/udmPro.mjs.map +1 -1
  498. package/lib/components/ModelCompareV3/data/products/udmProMax.js +3 -3
  499. package/lib/components/ModelCompareV3/data/products/udmProMax.js.map +1 -1
  500. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +4 -4
  501. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs.map +1 -1
  502. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +3 -3
  503. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js.map +1 -1
  504. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +4 -4
  505. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs.map +1 -1
  506. package/lib/components/ModelCompareV3/data/products/udr.js +2 -2
  507. package/lib/components/ModelCompareV3/data/products/udr.js.map +1 -1
  508. package/lib/components/ModelCompareV3/data/products/udr.mjs +3 -3
  509. package/lib/components/ModelCompareV3/data/products/udr.mjs.map +1 -1
  510. package/lib/components/ModelCompareV3/data/products/udw.js +3 -2
  511. package/lib/components/ModelCompareV3/data/products/udw.js.map +1 -1
  512. package/lib/components/ModelCompareV3/data/products/udw.mjs +4 -3
  513. package/lib/components/ModelCompareV3/data/products/udw.mjs.map +1 -1
  514. package/lib/components/ModelCompareV3/data/products/wifiFlagship.d.ts +2 -0
  515. package/lib/components/ModelCompareV3/data/products/wifiFlagship.js +70 -0
  516. package/lib/components/ModelCompareV3/data/products/wifiFlagship.js.map +1 -0
  517. package/lib/components/ModelCompareV3/data/products/wifiFlagship.mjs +62 -0
  518. package/lib/components/ModelCompareV3/data/products/wifiFlagship.mjs.map +1 -0
  519. package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.d.ts +2 -0
  520. package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.js +73 -0
  521. package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.js.map +1 -0
  522. package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.mjs +65 -0
  523. package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.mjs.map +1 -0
  524. package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.d.ts +2 -0
  525. package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.js +73 -0
  526. package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.js.map +1 -0
  527. package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.mjs +65 -0
  528. package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.mjs.map +1 -0
  529. package/lib/components/ModelCompareV3/data/products/wifiWall.d.ts +2 -0
  530. package/lib/components/ModelCompareV3/data/products/wifiWall.js +74 -0
  531. package/lib/components/ModelCompareV3/data/products/wifiWall.js.map +1 -0
  532. package/lib/components/ModelCompareV3/data/products/wifiWall.mjs +66 -0
  533. package/lib/components/ModelCompareV3/data/products/wifiWall.mjs.map +1 -0
  534. package/lib/components/ModelCompareV3/data/properties/clientDevices.js +1 -1
  535. package/lib/components/ModelCompareV3/data/properties/clientDevices.mjs +1 -1
  536. package/lib/components/ModelCompareV3/data/properties/connectedDevices.js +1 -1
  537. package/lib/components/ModelCompareV3/data/properties/connectedDevices.mjs +1 -1
  538. package/lib/components/ModelCompareV3/translations/en.json.js +59 -6
  539. package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
  540. package/lib/components/ModelCompareV3/translations/en.json.mjs +59 -6
  541. package/lib/components/ModelCompareV3/translations/en.json.mjs.map +1 -1
  542. package/lib/components/ModelCompareV3/translations/useModelCompareTranslation.d.ts +2 -2
  543. package/lib/components/Pagination/Pagination.js +3 -3
  544. package/lib/components/PriceRangeSlider/PriceRangeSlider.js +16 -16
  545. package/lib/components/ProductCard/ProductCard.js +8 -8
  546. package/lib/components/ProductCardPopup/ProductCardPopup.js +8 -8
  547. package/lib/components/ProductCompare/ProductCompare.js +7 -7
  548. package/lib/components/ProductDetails/ProductDetails.js +5 -5
  549. package/lib/components/ProductGrid/ProductGrid.js +10 -10
  550. package/lib/components/ProductKeyFeatures/ProductKeyFeatures.js +3 -3
  551. package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +1 -1
  552. package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +1 -1
  553. package/lib/components/ProductSectionTabs/ProductSectionTabs.js +2 -2
  554. package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +1 -1
  555. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.d.ts +2 -0
  556. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js +45 -0
  557. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js.map +1 -0
  558. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs +37 -0
  559. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs.map +1 -0
  560. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.d.ts +9 -0
  561. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +54 -0
  562. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +1 -0
  563. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +42 -0
  564. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs.map +1 -0
  565. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.types.d.ts +14 -0
  566. package/lib/components/ProductTechSpecsV2/index.d.ts +1 -0
  567. package/lib/components/ProductTechSpecsV2/index.js +6 -0
  568. package/lib/components/ProductTechSpecsV2/index.js.map +1 -0
  569. package/lib/components/ProductTechSpecsV2/index.mjs +3 -0
  570. package/lib/components/ProductTechSpecsV2/index.mjs.map +1 -0
  571. package/lib/components/ProductWizard/Options/Options.js +3 -3
  572. package/lib/components/ProductWizard/ProductWizard.js +2 -2
  573. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js +5 -5
  574. package/lib/components/ProgressCircle/ProgressCircle.js +4 -4
  575. package/lib/components/QuantityControls/QuantityControls.js +4 -4
  576. package/lib/components/RelatedProducts/RelatedProducts.js +5 -5
  577. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +313 -17
  578. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
  579. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +311 -17
  580. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
  581. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js +36 -36
  582. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.d.ts +3 -2
  583. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js +2 -0
  584. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js.map +1 -1
  585. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs +2 -0
  586. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs.map +1 -1
  587. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +125 -39
  588. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js.map +1 -1
  589. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs +120 -34
  590. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs.map +1 -1
  591. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.d.ts +16 -2
  592. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js +54 -12
  593. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js.map +1 -1
  594. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.mjs +50 -11
  595. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.mjs.map +1 -1
  596. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/assets/ArrowLeftPrimary.svg.js +5 -5
  597. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/assets/ArrowRightPrimary.svg.js +5 -5
  598. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +5 -5
  599. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CheckboxSection.js +2 -2
  600. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +6 -6
  601. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
  602. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/SliderSection.js +3 -3
  603. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
  604. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
  605. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
  606. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
  607. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +7 -7
  608. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +7 -7
  609. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js.map +1 -1
  610. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.mjs +1 -1
  611. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.mjs.map +1 -1
  612. package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.js +9 -9
  613. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.js +10 -10
  614. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +19 -19
  615. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js.map +1 -1
  616. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +4 -4
  617. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs.map +1 -1
  618. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
  619. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
  620. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
  621. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
  622. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.js +2 -2
  623. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +7 -8
  624. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js.map +1 -1
  625. package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs +1 -2
  626. package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs.map +1 -1
  627. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.js +27 -0
  628. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.js.map +1 -0
  629. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs +3 -0
  630. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs.map +1 -0
  631. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js +27 -0
  632. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js.map +1 -0
  633. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs +3 -0
  634. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs.map +1 -0
  635. package/lib/components/ResourceCalculatorV1/translations/en.json.js +6 -4
  636. package/lib/components/ResourceCalculatorV1/translations/en.json.js.map +1 -1
  637. package/lib/components/ResourceCalculatorV1/translations/en.json.mjs +6 -4
  638. package/lib/components/ResourceCalculatorV1/translations/en.json.mjs.map +1 -1
  639. package/lib/components/ResourceCalculatorV1/translations/useResourceCalculatorTranslation.d.ts +2 -2
  640. package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.js +5 -5
  641. package/lib/components/ScrollWrapper/ScrollWrapper.js +17 -17
  642. package/lib/components/Search/Input/Input.d.ts +1 -1
  643. package/lib/components/Search/Input/Input.js +8 -8
  644. package/lib/components/Search/Input/Input.js.map +1 -1
  645. package/lib/components/Search/Input/Input.mjs +4 -4
  646. package/lib/components/Search/Input/Input.mjs.map +1 -1
  647. package/lib/components/Search/Input/Input.styles.js +0 -1
  648. package/lib/components/Search/Input/Input.styles.js.map +1 -1
  649. package/lib/components/Search/Input/Input.styles.mjs +0 -1
  650. package/lib/components/Search/Input/Input.styles.mjs.map +1 -1
  651. package/lib/components/Search/Input/Input.types.d.ts +3 -2
  652. package/lib/components/Search/Modal/Modal.js +3 -3
  653. package/lib/components/StorageSliders/Slider/Slider.js +3 -3
  654. package/lib/components/StorageSliders/StorageSliders.context.js +19 -19
  655. package/lib/components/StorageSliders/StorageSliders.js +4 -4
  656. package/lib/components/Tooltip/Tooltip.js +5 -5
  657. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js +7 -7
  658. package/lib/components/VariantSelector/Variant/Variant.js +40 -40
  659. package/lib/components/VariantSelector/VariantSelector.js +16 -16
  660. package/lib/components/VideoPlayerNew/VideoPlayer.js +20 -20
  661. package/lib/components/VideoPlayerNew/VideoPlayer.mjs +1 -1
  662. package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
  663. package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
  664. package/lib/components/index.d.ts +3 -0
  665. package/lib/components/index.js +36 -30
  666. package/lib/components/index.js.map +1 -1
  667. package/lib/components/index.mjs +36 -30
  668. package/lib/components/index.mjs.map +1 -1
  669. package/lib/constants/icons/generic/carouselArrowRight.svg.js +5 -5
  670. package/lib/constants/icons/generic/index.js +3 -3
  671. package/lib/constants/icons/header/account.svg.js +5 -5
  672. package/lib/constants/icons/header/globe.svg.js +5 -5
  673. package/lib/constants/icons/header/index.js +9 -9
  674. package/lib/constants/icons/header/logoUnifi.svg.js +5 -5
  675. package/lib/constants/icons/menu/consolidatedSpecialDevices.svg.js +27 -0
  676. package/lib/constants/icons/menu/consolidatedSpecialDevices.svg.js.map +1 -0
  677. package/lib/constants/icons/menu/consolidatedSpecialDevices.svg.mjs +3 -0
  678. package/lib/constants/icons/menu/consolidatedSpecialDevices.svg.mjs.map +1 -0
  679. package/lib/constants/icons/menu/doorAccess.svg.js +27 -0
  680. package/lib/constants/icons/menu/doorAccess.svg.js.map +1 -0
  681. package/lib/constants/icons/menu/doorAccess.svg.mjs +3 -0
  682. package/lib/constants/icons/menu/doorAccess.svg.mjs.map +1 -0
  683. package/lib/constants/icons/menu/index.d.ts +3 -0
  684. package/lib/constants/icons/menu/index.js +27 -0
  685. package/lib/constants/icons/menu/index.js.map +1 -1
  686. package/lib/constants/icons/menu/index.mjs +6 -0
  687. package/lib/constants/icons/menu/index.mjs.map +1 -1
  688. package/lib/constants/icons/menu/overview.svg.js +27 -0
  689. package/lib/constants/icons/menu/overview.svg.js.map +1 -0
  690. package/lib/constants/icons/menu/overview.svg.mjs +3 -0
  691. package/lib/constants/icons/menu/overview.svg.mjs.map +1 -0
  692. package/lib/constants/keyFeatureIcons.js +2 -2
  693. package/lib/constants/keyFeatureIcons.js.map +1 -1
  694. package/lib/constants/keyFeatureIcons.mjs +2 -2
  695. package/lib/constants/keyFeatureIcons.mjs.map +1 -1
  696. package/lib/constants/proStoreCategories/mapping/filters.d.ts +15 -0
  697. package/lib/constants/proStoreCategories/mapping/filters.js +15 -0
  698. package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
  699. package/lib/constants/proStoreCategories/mapping/filters.mjs +15 -0
  700. package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
  701. package/lib/constants/proStoreCategories/mapping/index.d.ts +2 -2
  702. package/lib/constants/proStoreCategories/mapping/index.js +61 -82
  703. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  704. package/lib/constants/proStoreCategories/mapping/index.mjs +60 -80
  705. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  706. package/lib/constants/proStoreCategories/mapping/mapping.d.ts +4 -0
  707. package/lib/constants/proStoreCategories/mapping/redirects.js +16 -1
  708. package/lib/constants/proStoreCategories/mapping/redirects.js.map +1 -1
  709. package/lib/constants/proStoreCategories/mapping/redirects.mjs +16 -1
  710. package/lib/constants/proStoreCategories/mapping/redirects.mjs.map +1 -1
  711. package/lib/constants/proStoreCategories/mapping/unifi.d.ts +5 -5
  712. package/lib/constants/proStoreCategories/mapping/unifi.js +5 -5
  713. package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
  714. package/lib/constants/proStoreCategories/mapping/unifi.mjs +5 -5
  715. package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
  716. package/lib/constants/proStoreCategories/translations/ar.json.js +8 -3
  717. package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
  718. package/lib/constants/proStoreCategories/translations/ar.json.mjs +8 -4
  719. package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
  720. package/lib/constants/proStoreCategories/translations/de.json.js +8 -3
  721. package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
  722. package/lib/constants/proStoreCategories/translations/de.json.mjs +8 -4
  723. package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
  724. package/lib/constants/proStoreCategories/translations/el.json.js +8 -3
  725. package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
  726. package/lib/constants/proStoreCategories/translations/el.json.mjs +8 -4
  727. package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
  728. package/lib/constants/proStoreCategories/translations/en.json.js +2 -2
  729. package/lib/constants/proStoreCategories/translations/en.json.mjs +2 -2
  730. package/lib/constants/proStoreCategories/translations/es.json.js +8 -3
  731. package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
  732. package/lib/constants/proStoreCategories/translations/es.json.mjs +8 -4
  733. package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
  734. package/lib/constants/proStoreCategories/translations/fr.json.js +8 -3
  735. package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
  736. package/lib/constants/proStoreCategories/translations/fr.json.mjs +8 -4
  737. package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
  738. package/lib/constants/proStoreCategories/translations/it.json.js +8 -3
  739. package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
  740. package/lib/constants/proStoreCategories/translations/it.json.mjs +8 -4
  741. package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
  742. package/lib/constants/proStoreCategories/translations/ja.json.js +8 -3
  743. package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
  744. package/lib/constants/proStoreCategories/translations/ja.json.mjs +8 -4
  745. package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
  746. package/lib/constants/proStoreCategories/translations/pt-BR.json.js +8 -3
  747. package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
  748. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +8 -4
  749. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
  750. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +8 -3
  751. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
  752. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +8 -4
  753. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
  754. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +8 -3
  755. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
  756. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +8 -4
  757. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
  758. package/lib/constants/proStoreFilters/mapping.d.ts +21 -2
  759. package/lib/constants/proStoreFilters/mapping.js +88 -7
  760. package/lib/constants/proStoreFilters/mapping.js.map +1 -1
  761. package/lib/constants/proStoreFilters/mapping.mjs +88 -7
  762. package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
  763. package/lib/constants/shopify/keyFeatureIcons.js +11 -11
  764. package/lib/constants/shopify/keyFeatureIcons.js.map +1 -1
  765. package/lib/constants/shopify/keyFeatureIcons.mjs +11 -11
  766. package/lib/constants/shopify/keyFeatureIcons.mjs.map +1 -1
  767. package/lib/constants/theme.js +4 -0
  768. package/lib/constants/theme.js.map +1 -1
  769. package/lib/constants/theme.mjs +4 -0
  770. package/lib/constants/theme.mjs.map +1 -1
  771. package/lib/contexts/MenuContext/context.js +33 -33
  772. package/lib/contexts/MenuContext/context.js.map +1 -1
  773. package/lib/contexts/MenuContext/context.mjs +1 -1
  774. package/lib/contexts/MenuContext/context.mjs.map +1 -1
  775. package/lib/contexts/MenuContext/mapping.js.map +1 -1
  776. package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
  777. package/lib/contexts/MenuContext/types.js.map +1 -1
  778. package/lib/contexts/MenuContext/types.mjs.map +1 -1
  779. package/lib/contexts/MenuContext/utils.d.ts +6 -1
  780. package/lib/contexts/MenuContext/utils.js +16 -0
  781. package/lib/contexts/MenuContext/utils.js.map +1 -1
  782. package/lib/contexts/MenuContext/utils.mjs +16 -1
  783. package/lib/contexts/MenuContext/utils.mjs.map +1 -1
  784. package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.js +27 -0
  785. package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.js.map +1 -0
  786. package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.mjs +3 -0
  787. package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.mjs.map +1 -0
  788. package/lib/contexts/MicrositeMenuContext/assets/bullet.png.js +27 -0
  789. package/lib/contexts/MicrositeMenuContext/assets/bullet.png.js.map +1 -0
  790. package/lib/contexts/MicrositeMenuContext/assets/bullet.png.mjs +3 -0
  791. package/lib/contexts/MicrositeMenuContext/assets/bullet.png.mjs.map +1 -0
  792. package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.js +27 -0
  793. package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.js.map +1 -0
  794. package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.mjs +3 -0
  795. package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.mjs.map +1 -0
  796. package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.js +27 -0
  797. package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.js.map +1 -0
  798. package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.mjs +3 -0
  799. package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.mjs.map +1 -0
  800. package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.js +27 -0
  801. package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.js.map +1 -0
  802. package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.mjs +3 -0
  803. package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.mjs.map +1 -0
  804. package/lib/contexts/MicrositeMenuContext/assets/compact.png.js +27 -0
  805. package/lib/contexts/MicrositeMenuContext/assets/compact.png.js.map +1 -0
  806. package/lib/contexts/MicrositeMenuContext/assets/compact.png.mjs +3 -0
  807. package/lib/contexts/MicrositeMenuContext/assets/compact.png.mjs.map +1 -0
  808. package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.js +27 -0
  809. package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.js.map +1 -0
  810. package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.mjs +3 -0
  811. package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.mjs.map +1 -0
  812. package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.js +27 -0
  813. package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.js.map +1 -0
  814. package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.mjs +3 -0
  815. package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.mjs.map +1 -0
  816. package/lib/contexts/MicrositeMenuContext/assets/door-access.png.js +27 -0
  817. package/lib/contexts/MicrositeMenuContext/assets/door-access.png.js.map +1 -0
  818. package/lib/contexts/MicrositeMenuContext/assets/door-access.png.mjs +3 -0
  819. package/lib/contexts/MicrositeMenuContext/assets/door-access.png.mjs.map +1 -0
  820. package/lib/contexts/MicrositeMenuContext/assets/education.jpg.js +27 -0
  821. package/lib/contexts/MicrositeMenuContext/assets/education.jpg.js.map +1 -0
  822. package/lib/contexts/MicrositeMenuContext/assets/education.jpg.mjs +3 -0
  823. package/lib/contexts/MicrositeMenuContext/assets/education.jpg.mjs.map +1 -0
  824. package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.js +27 -0
  825. package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.js.map +1 -0
  826. package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.mjs +3 -0
  827. package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.mjs.map +1 -0
  828. package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.js +27 -0
  829. package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.js.map +1 -0
  830. package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.mjs +3 -0
  831. package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.mjs.map +1 -0
  832. package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.js +27 -0
  833. package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.js.map +1 -0
  834. package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.mjs +3 -0
  835. package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.mjs.map +1 -0
  836. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.js +27 -0
  837. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.js.map +1 -0
  838. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.mjs +3 -0
  839. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.mjs.map +1 -0
  840. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.js +27 -0
  841. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.js.map +1 -0
  842. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.mjs +3 -0
  843. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.mjs.map +1 -0
  844. package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.js +27 -0
  845. package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.js.map +1 -0
  846. package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.mjs +3 -0
  847. package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.mjs.map +1 -0
  848. package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.js +27 -0
  849. package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.js.map +1 -0
  850. package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.mjs +3 -0
  851. package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.mjs.map +1 -0
  852. package/lib/contexts/MicrositeMenuContext/assets/index.d.ts +41 -0
  853. package/lib/contexts/MicrositeMenuContext/assets/index.js +45 -0
  854. package/lib/contexts/MicrositeMenuContext/assets/index.js.map +1 -0
  855. package/lib/contexts/MicrositeMenuContext/assets/index.mjs +43 -0
  856. package/lib/contexts/MicrositeMenuContext/assets/index.mjs.map +1 -0
  857. package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.js +27 -0
  858. package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.js.map +1 -0
  859. package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.mjs +3 -0
  860. package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.mjs.map +1 -0
  861. package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.js +27 -0
  862. package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.js.map +1 -0
  863. package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.mjs +3 -0
  864. package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.mjs.map +1 -0
  865. package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.js +27 -0
  866. package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.js.map +1 -0
  867. package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.mjs +3 -0
  868. package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.mjs.map +1 -0
  869. package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.js +27 -0
  870. package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.js.map +1 -0
  871. package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.mjs +3 -0
  872. package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.mjs.map +1 -0
  873. package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.js +27 -0
  874. package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.js.map +1 -0
  875. package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.mjs +3 -0
  876. package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.mjs.map +1 -0
  877. package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.js +27 -0
  878. package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.js.map +1 -0
  879. package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.mjs +3 -0
  880. package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.mjs.map +1 -0
  881. package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.js +27 -0
  882. package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.js.map +1 -0
  883. package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.mjs +3 -0
  884. package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.mjs.map +1 -0
  885. package/lib/contexts/MicrositeMenuContext/assets/ptz.png.js +27 -0
  886. package/lib/contexts/MicrositeMenuContext/assets/ptz.png.js.map +1 -0
  887. package/lib/contexts/MicrositeMenuContext/assets/ptz.png.mjs +3 -0
  888. package/lib/contexts/MicrositeMenuContext/assets/ptz.png.mjs.map +1 -0
  889. package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.js +27 -0
  890. package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.js.map +1 -0
  891. package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.mjs +3 -0
  892. package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.mjs.map +1 -0
  893. package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.js +27 -0
  894. package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.js.map +1 -0
  895. package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.mjs +3 -0
  896. package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.mjs.map +1 -0
  897. package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.js +27 -0
  898. package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.js.map +1 -0
  899. package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.mjs +3 -0
  900. package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.mjs.map +1 -0
  901. package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.js +27 -0
  902. package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.js.map +1 -0
  903. package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.mjs +3 -0
  904. package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.mjs.map +1 -0
  905. package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.js +27 -0
  906. package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.js.map +1 -0
  907. package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.mjs +3 -0
  908. package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.mjs.map +1 -0
  909. package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.js +27 -0
  910. package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.js.map +1 -0
  911. package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.mjs +3 -0
  912. package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.mjs.map +1 -0
  913. package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.js +27 -0
  914. package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.js.map +1 -0
  915. package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.mjs +3 -0
  916. package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.mjs.map +1 -0
  917. package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.js +27 -0
  918. package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.js.map +1 -0
  919. package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.mjs +3 -0
  920. package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.mjs.map +1 -0
  921. package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.js +27 -0
  922. package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.js.map +1 -0
  923. package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.mjs +3 -0
  924. package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.mjs.map +1 -0
  925. package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.js +27 -0
  926. package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.js.map +1 -0
  927. package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.mjs +3 -0
  928. package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.mjs.map +1 -0
  929. package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.js +27 -0
  930. package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.js.map +1 -0
  931. package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.mjs +3 -0
  932. package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.mjs.map +1 -0
  933. package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.js +27 -0
  934. package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.js.map +1 -0
  935. package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.mjs +3 -0
  936. package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.mjs.map +1 -0
  937. package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.js +27 -0
  938. package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.js.map +1 -0
  939. package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.mjs +3 -0
  940. package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.mjs.map +1 -0
  941. package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.js +27 -0
  942. package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.js.map +1 -0
  943. package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.mjs +3 -0
  944. package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.mjs.map +1 -0
  945. package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.js +27 -0
  946. package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.js.map +1 -0
  947. package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.mjs +3 -0
  948. package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.mjs.map +1 -0
  949. package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.js +27 -0
  950. package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.js.map +1 -0
  951. package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.mjs +3 -0
  952. package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.mjs.map +1 -0
  953. package/lib/contexts/MicrositeMenuContext/context.d.ts +36 -0
  954. package/lib/contexts/MicrositeMenuContext/context.js +100 -0
  955. package/lib/contexts/MicrositeMenuContext/context.js.map +1 -0
  956. package/lib/contexts/MicrositeMenuContext/context.mjs +96 -0
  957. package/lib/contexts/MicrositeMenuContext/context.mjs.map +1 -0
  958. package/lib/contexts/MicrositeMenuContext/index.d.ts +1 -0
  959. package/lib/contexts/MicrositeMenuContext/index.js +8 -0
  960. package/lib/contexts/MicrositeMenuContext/index.js.map +1 -0
  961. package/lib/contexts/MicrositeMenuContext/index.mjs +3 -0
  962. package/lib/contexts/MicrositeMenuContext/index.mjs.map +1 -0
  963. package/lib/contexts/MicrositeMenuContext/mapping.d.ts +16 -0
  964. package/lib/contexts/MicrositeMenuContext/mapping.js +789 -0
  965. package/lib/contexts/MicrositeMenuContext/mapping.js.map +1 -0
  966. package/lib/contexts/MicrositeMenuContext/mapping.mjs +713 -0
  967. package/lib/contexts/MicrositeMenuContext/mapping.mjs.map +1 -0
  968. package/lib/contexts/MicrositeMenuContext/translations/ar.json.js +8 -0
  969. package/lib/contexts/MicrositeMenuContext/translations/ar.json.js.map +1 -0
  970. package/lib/contexts/MicrositeMenuContext/translations/ar.json.mjs +3 -0
  971. package/lib/contexts/MicrositeMenuContext/translations/ar.json.mjs.map +1 -0
  972. package/lib/contexts/MicrositeMenuContext/translations/de.json.js +8 -0
  973. package/lib/contexts/MicrositeMenuContext/translations/de.json.js.map +1 -0
  974. package/lib/contexts/MicrositeMenuContext/translations/de.json.mjs +3 -0
  975. package/lib/contexts/MicrositeMenuContext/translations/de.json.mjs.map +1 -0
  976. package/lib/contexts/MicrositeMenuContext/translations/el.json.js +8 -0
  977. package/lib/contexts/MicrositeMenuContext/translations/el.json.js.map +1 -0
  978. package/lib/contexts/MicrositeMenuContext/translations/el.json.mjs +3 -0
  979. package/lib/contexts/MicrositeMenuContext/translations/el.json.mjs.map +1 -0
  980. package/lib/contexts/MicrositeMenuContext/translations/en.json.js +128 -0
  981. package/lib/contexts/MicrositeMenuContext/translations/en.json.js.map +1 -0
  982. package/lib/contexts/MicrositeMenuContext/translations/en.json.mjs +123 -0
  983. package/lib/contexts/MicrositeMenuContext/translations/en.json.mjs.map +1 -0
  984. package/lib/contexts/MicrositeMenuContext/translations/es.json.js +8 -0
  985. package/lib/contexts/MicrositeMenuContext/translations/es.json.js.map +1 -0
  986. package/lib/contexts/MicrositeMenuContext/translations/es.json.mjs +3 -0
  987. package/lib/contexts/MicrositeMenuContext/translations/es.json.mjs.map +1 -0
  988. package/lib/contexts/MicrositeMenuContext/translations/fr.json.js +8 -0
  989. package/lib/contexts/MicrositeMenuContext/translations/fr.json.js.map +1 -0
  990. package/lib/contexts/MicrositeMenuContext/translations/fr.json.mjs +3 -0
  991. package/lib/contexts/MicrositeMenuContext/translations/fr.json.mjs.map +1 -0
  992. package/lib/contexts/MicrositeMenuContext/translations/it.json.js +8 -0
  993. package/lib/contexts/MicrositeMenuContext/translations/it.json.js.map +1 -0
  994. package/lib/contexts/MicrositeMenuContext/translations/it.json.mjs +3 -0
  995. package/lib/contexts/MicrositeMenuContext/translations/it.json.mjs.map +1 -0
  996. package/lib/contexts/MicrositeMenuContext/translations/ja.json.js +8 -0
  997. package/lib/contexts/MicrositeMenuContext/translations/ja.json.js.map +1 -0
  998. package/lib/contexts/MicrositeMenuContext/translations/ja.json.mjs +3 -0
  999. package/lib/contexts/MicrositeMenuContext/translations/ja.json.mjs.map +1 -0
  1000. package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.js +8 -0
  1001. package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.js.map +1 -0
  1002. package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.mjs +3 -0
  1003. package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.mjs.map +1 -0
  1004. package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.js +8 -0
  1005. package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.js.map +1 -0
  1006. package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.mjs +3 -0
  1007. package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.mjs.map +1 -0
  1008. package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.js +8 -0
  1009. package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.js.map +1 -0
  1010. package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.mjs +3 -0
  1011. package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.mjs.map +1 -0
  1012. package/lib/contexts/MicrositeMenuContext/translations.d.ts +7 -0
  1013. package/lib/contexts/MicrositeMenuContext/translations.js +47 -0
  1014. package/lib/contexts/MicrositeMenuContext/translations.js.map +1 -0
  1015. package/lib/contexts/MicrositeMenuContext/translations.mjs +25 -0
  1016. package/lib/contexts/MicrositeMenuContext/translations.mjs.map +1 -0
  1017. package/lib/contexts/MicrositeMenuContext/types.d.ts +102 -0
  1018. package/lib/contexts/MicrositeMenuContext/types.js +16 -0
  1019. package/lib/contexts/MicrositeMenuContext/types.js.map +1 -0
  1020. package/lib/contexts/MicrositeMenuContext/types.mjs +15 -0
  1021. package/lib/contexts/MicrositeMenuContext/types.mjs.map +1 -0
  1022. package/lib/contexts/index.d.ts +1 -0
  1023. package/lib/contexts/index.js +2 -0
  1024. package/lib/contexts/index.js.map +1 -1
  1025. package/lib/contexts/index.mjs +2 -0
  1026. package/lib/contexts/index.mjs.map +1 -1
  1027. package/lib/helpers/index.d.ts +1 -0
  1028. package/lib/helpers/index.js +11 -0
  1029. package/lib/helpers/index.js.map +1 -1
  1030. package/lib/helpers/index.mjs +1 -0
  1031. package/lib/helpers/index.mjs.map +1 -1
  1032. package/lib/helpers/proStoreCategories.js +2 -2
  1033. package/lib/helpers/product.d.ts +87 -0
  1034. package/lib/helpers/product.js +346 -0
  1035. package/lib/helpers/product.js.map +1 -0
  1036. package/lib/helpers/product.mjs +335 -0
  1037. package/lib/helpers/product.mjs.map +1 -0
  1038. package/lib/helpers/product.test.d.ts +1 -0
  1039. package/lib/helpers/ux.d.ts +9 -1
  1040. package/lib/helpers/ux.js +15 -0
  1041. package/lib/helpers/ux.js.map +1 -1
  1042. package/lib/helpers/ux.mjs +15 -1
  1043. package/lib/helpers/ux.mjs.map +1 -1
  1044. package/lib/hooks/useHasTouch.js +3 -3
  1045. package/lib/hooks/useHddRetentionCalculator.js +5 -5
  1046. package/lib/hooks/useHorizontalScroll.js +2 -2
  1047. package/lib/hooks/useLockBodyScrollCustom.js +3 -3
  1048. package/lib/hooks/useScrollToY.js +2 -2
  1049. package/lib/hooks/useTestMediaElementVolumeSetter.js +3 -3
  1050. package/lib/hooks/useTranslation.js +6 -6
  1051. package/lib/types/index.d.ts +1 -0
  1052. package/lib/types/index.js +2 -0
  1053. package/lib/types/index.js.map +1 -1
  1054. package/lib/types/index.mjs +1 -0
  1055. package/lib/types/index.mjs.map +1 -1
  1056. package/lib/types/product.d.ts +87 -0
  1057. package/lib/types/product.js +14 -0
  1058. package/lib/types/product.js.map +1 -0
  1059. package/lib/types/product.mjs +13 -0
  1060. package/lib/types/product.mjs.map +1 -0
  1061. package/lib/utils/address.d.ts +278 -62
  1062. package/lib/utils/address.js +11 -8
  1063. package/lib/utils/address.js.map +1 -1
  1064. package/lib/utils/address.mjs +11 -8
  1065. package/lib/utils/address.mjs.map +1 -1
  1066. package/lib/utils/array.d.ts +4 -0
  1067. package/lib/utils/array.js +10 -0
  1068. package/lib/utils/array.js.map +1 -1
  1069. package/lib/utils/array.mjs +10 -1
  1070. package/lib/utils/array.mjs.map +1 -1
  1071. package/lib/utils/money/constants.d.ts +7 -0
  1072. package/lib/utils/money/constants.js +9 -1
  1073. package/lib/utils/money/constants.js.map +1 -1
  1074. package/lib/utils/money/constants.mjs +10 -2
  1075. package/lib/utils/money/constants.mjs.map +1 -1
  1076. package/lib/utils/money/tax.private.d.ts +0 -8
  1077. package/lib/utils/money/tax.private.js +5 -14
  1078. package/lib/utils/money/tax.private.js.map +1 -1
  1079. package/lib/utils/money/tax.private.mjs +8 -16
  1080. package/lib/utils/money/tax.private.mjs.map +1 -1
  1081. package/lib/utils/productSort.d.ts +41 -0
  1082. package/lib/utils/productSort.js +67 -0
  1083. package/lib/utils/productSort.js.map +1 -0
  1084. package/lib/utils/productSort.mjs +60 -0
  1085. package/lib/utils/productSort.mjs.map +1 -0
  1086. package/lib/utils/validations/lastNameSuperRefinement.d.ts +11 -0
  1087. package/lib/utils/validations/lastNameSuperRefinement.js +25 -0
  1088. package/lib/utils/validations/lastNameSuperRefinement.js.map +1 -0
  1089. package/lib/utils/validations/lastNameSuperRefinement.mjs +21 -0
  1090. package/lib/utils/validations/lastNameSuperRefinement.mjs.map +1 -0
  1091. package/package.json +1 -1
  1092. package/lib/assets/clients2.svg +0 -10
  1093. package/lib/assets/icons/menu/icon-globe.svg.js.map +0 -1
  1094. package/lib/assets/icons/menu/icon-globe.svg.mjs +0 -3
  1095. package/lib/assets/icons/menu/icon-globe.svg.mjs.map +0 -1
  1096. package/lib/assets/keyFeatures/clients.svg.js.map +0 -1
  1097. package/lib/assets/keyFeatures/clients.svg.mjs +0 -3
  1098. package/lib/assets/keyFeatures/clients.svg.mjs.map +0 -1
  1099. package/lib/assets/keyFeatures/phased_array.svg.js.map +0 -1
  1100. package/lib/assets/keyFeatures/phased_array.svg.mjs.map +0 -1
  1101. package/lib/components/MobileModal/assets/arrowDown.svg.mjs +0 -3
  1102. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +0 -1
  1103. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +0 -1
  1104. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +0 -1
  1105. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +0 -1
  1106. package/lib/components/ResourceCalculatorV1/components/index.d.ts +0 -1
  1107. package/lib/components/ResourceCalculatorV1/components/index.js +0 -5
  1108. /package/lib/assets/{keyFeatures/clients.svg → clients_v2.svg} +0 -0
  1109. /package/lib/{components/MobileModal/assets → assets/icons}/arrowDown.svg.js.map +0 -0
  1110. /package/lib/{components/MobileModal/assets → assets/icons}/arrowDown.svg.mjs.map +0 -0
  1111. /package/lib/assets/keyFeatures/{phased_array.svg → phased_array_v2.svg} +0 -0
  1112. /package/lib/components/{ResourceCalculatorV1/components → Header/LogoIcon}/index.mjs.map +0 -0
  1113. /package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/index.d.ts +0 -0
  1114. /package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/index.js +0 -0
  1115. /package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/index.js.map +0 -0
  1116. /package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/index.mjs +0 -0
  1117. /package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/index.mjs.map +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"useComputeResourceCalculator.mjs","sources":["../../../../src/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.ts"],"sourcesContent":["import { useMemo } from \"react\";\n\nimport type {\n ComputeResourceCalculatorInputs,\n Device,\n} from \"./ComputeResourceCalculator.types\";\nimport { FeatureId } from \"./ComputeResourceCalculator.types\";\n\nexport const useComputeResourceCalculator = ({\n deviceResourceData,\n inputs,\n}: {\n deviceResourceData: Device[\"loadData\"];\n inputs: ComputeResourceCalculatorInputs;\n}) => {\n const networkResources = useMemo(() => {\n const networkDeviceResources = deviceResourceData.Network;\n const networkInputs = inputs[FeatureId.Network];\n\n if (!networkInputs.enabled || !networkDeviceResources) {\n return 0;\n }\n\n let sum = 0;\n\n if (networkInputs.enabled) {\n const cpu =\n networkDeviceResources.enableFeature.cpu.value *\n networkDeviceResources.enableFeature.cpu.weight;\n const memory =\n networkDeviceResources.enableFeature.memory.value *\n networkDeviceResources.enableFeature.memory.weight;\n sum += cpu + memory;\n }\n\n if (networkInputs.accessPoints > 0) {\n const cpu =\n networkInputs.accessPoints *\n (networkDeviceResources.accessPoint.data.cpu.value *\n networkDeviceResources.accessPoint.data.cpu.weight);\n const memory =\n networkInputs.accessPoints *\n (networkDeviceResources.accessPoint.data.memory.value *\n networkDeviceResources.accessPoint.data.memory.weight);\n sum += cpu + memory;\n }\n\n if (networkInputs.vpn) {\n const cpu =\n networkDeviceResources.vpn.cpu.value *\n networkDeviceResources.vpn.cpu.weight;\n const memory =\n networkDeviceResources.vpn.memory.value *\n networkDeviceResources.vpn.memory.weight;\n sum += cpu + memory;\n }\n\n if (networkInputs.detections) {\n const cpu =\n networkDeviceResources.securityDetection.cpu.value *\n networkDeviceResources.securityDetection.cpu.weight;\n const memory =\n networkDeviceResources.securityDetection.memory.value *\n networkDeviceResources.securityDetection.memory.weight;\n\n sum += cpu + memory + networkDeviceResources.threatManagementLoad;\n }\n\n if (networkInputs.adBlocking) {\n const cpu =\n networkDeviceResources.adBlocking.cpu.value *\n networkDeviceResources.adBlocking.cpu.weight;\n const memory =\n networkDeviceResources.adBlocking.memory.value *\n networkDeviceResources.adBlocking.memory.weight;\n sum += cpu + memory;\n }\n\n if (networkInputs.qos) {\n const cpu =\n networkDeviceResources.qos.cpu.value *\n networkDeviceResources.qos.cpu.weight;\n const memory =\n networkDeviceResources.qos.memory.value *\n networkDeviceResources.qos.memory.weight;\n sum += cpu + memory;\n }\n\n return sum;\n }, [deviceResourceData, inputs]);\n\n const protectResources = useMemo(() => {\n const protectDeviceResources = deviceResourceData.Protect;\n const protectInputs = inputs[FeatureId.Protect];\n\n // Increasing weight of camera values by 50%.\n const CAMERA_WEIGHT_FACTOR = 1.5;\n\n if (!protectInputs.enabled || !protectDeviceResources) {\n return 0;\n }\n\n let sum = 0;\n\n if (protectInputs.enabled) {\n const cpu =\n protectDeviceResources.enableFeature.cpu.value *\n protectDeviceResources.enableFeature.cpu.weight;\n const memory =\n protectDeviceResources.enableFeature.memory.value *\n protectDeviceResources.enableFeature.memory.weight;\n sum += cpu + memory;\n }\n\n if (protectInputs.cameraHd > 0) {\n const cpu =\n protectInputs.cameraHd *\n protectDeviceResources.cameraHd.data.cpu.value *\n protectDeviceResources.cameraHd.data.cpu.weight;\n const memory =\n protectInputs.cameraHd *\n protectDeviceResources.cameraHd.data.memory.value *\n protectDeviceResources.cameraHd.data.memory.weight;\n sum += (cpu + memory) * CAMERA_WEIGHT_FACTOR;\n }\n\n if (protectInputs.camera2k > 0) {\n const cpu =\n protectInputs.camera2k *\n protectDeviceResources.camera2k.data.cpu.value *\n protectDeviceResources.camera2k.data.cpu.weight;\n const memory =\n protectInputs.camera2k *\n protectDeviceResources.camera2k.data.memory.value *\n protectDeviceResources.camera2k.data.memory.weight;\n sum += (cpu + memory) * CAMERA_WEIGHT_FACTOR;\n }\n\n if (protectInputs.camera4k > 0) {\n const cpu =\n protectInputs.camera4k *\n protectDeviceResources.camera4k.data.cpu.value *\n protectDeviceResources.camera4k.data.cpu.weight;\n const memory =\n protectInputs.camera4k *\n protectDeviceResources.camera4k.data.memory.value *\n protectDeviceResources.camera4k.data.memory.weight;\n sum += (cpu + memory) * CAMERA_WEIGHT_FACTOR;\n }\n\n return sum;\n }, [deviceResourceData, inputs]);\n\n const talkResources = useMemo(() => {\n const talkDeviceResources = deviceResourceData.Talk;\n const talkInputs = inputs[FeatureId.Talk];\n\n if (!talkInputs.enabled || !talkDeviceResources) {\n return 0;\n }\n\n let sum = 0;\n\n if (talkInputs.enabled) {\n const cpu =\n talkDeviceResources.enableFeature.cpu.value *\n talkDeviceResources.enableFeature.cpu.weight;\n const memory =\n talkDeviceResources.enableFeature.memory.value *\n talkDeviceResources.enableFeature.memory.weight;\n sum += cpu + memory;\n }\n\n if (talkInputs.phones) {\n const cpu =\n talkInputs.phones *\n talkDeviceResources.phone.data.cpu.value *\n talkDeviceResources.phone.data.cpu.weight;\n const memory =\n talkInputs.phones *\n talkDeviceResources.phone.data.memory.value *\n talkDeviceResources.phone.data.memory.weight;\n sum += cpu + memory;\n }\n\n if (talkInputs.record) {\n const cpu =\n talkDeviceResources.record.cpu.value *\n talkDeviceResources.record.cpu.weight;\n const memory =\n talkDeviceResources.record.memory.value *\n talkDeviceResources.record.memory.weight;\n sum += cpu + memory;\n }\n\n return sum;\n }, [deviceResourceData, inputs]);\n\n const accessResources = useMemo(() => {\n const accessDeviceResources = deviceResourceData.Access;\n const accessInputs = inputs[FeatureId.Access];\n\n if (!accessInputs.enabled || !accessDeviceResources) {\n return 0;\n }\n\n let sum = 0;\n\n if (accessInputs.enabled) {\n const cpu =\n accessDeviceResources.enableFeature.cpu.value *\n accessDeviceResources.enableFeature.cpu.weight;\n const memory =\n accessDeviceResources.enableFeature.memory.value *\n accessDeviceResources.enableFeature.memory.weight;\n sum += cpu + memory;\n }\n\n if (accessInputs.doors > 0) {\n const cpu =\n accessInputs.doors *\n (accessDeviceResources.door.data.cpu.value *\n accessDeviceResources.door.data.cpu.weight);\n const memory =\n accessInputs.doors *\n (accessDeviceResources.door.data.memory.value *\n accessDeviceResources.door.data.memory.weight);\n sum += cpu + memory;\n }\n\n return sum;\n }, [deviceResourceData, inputs]);\n\n const computedResourcesLoadRatio = useMemo(() => {\n return (\n networkResources + talkResources + accessResources + protectResources\n );\n }, [networkResources, talkResources, accessResources, protectResources]);\n\n return {\n computedResourcesLoadRatio,\n };\n};\n"],"names":["useComputeResourceCalculator","deviceResourceData","inputs","networkResources","useMemo","networkDeviceResources","Network","networkInputs","FeatureId","enabled","sum","cpu","enableFeature","value","weight","memory","accessPoints","accessPoint","data","vpn","detections","securityDetection","threatManagementLoad","adBlocking","qos","protectResources","protectDeviceResources","Protect","protectInputs","CAMERA_WEIGHT_FACTOR","cameraHd","camera2k","camera4k","talkResources","talkDeviceResources","Talk","talkInputs","phones","phone","record","accessResources","accessDeviceResources","Access","accessInputs","doors","door","computedResourcesLoadRatio"],"mappings":";;;AAQO,MAAMA,+BAA+BA,CAAC;EAC3CC,kBAAA;EACAC;AACF,CAGM,KAAA;EACE,MAAAC,gBAAA,GAAmBC,QAAQ,MAAM;IACrC,MAAMC,yBAAyBJ,kBAAmB,CAAAK,OAAA;IAC5C,MAAAC,aAAA,GAAgBL,MAAO,CAAAM,SAAA,CAAUF,OAAO,CAAA;IAE9C,IAAI,CAACC,aAAA,CAAcE,OAAW,IAAA,CAACJ,sBAAwB,EAAA;MAC9C,OAAA,CAAA;IACT;IAEA,IAAIK,GAAM,GAAA,CAAA;IAEV,IAAIH,cAAcE,OAAS,EAAA;MACzB,MAAME,MACJN,sBAAuB,CAAAO,aAAA,CAAcD,IAAIE,KACzC,GAAAR,sBAAA,CAAuBO,cAAcD,GAAI,CAAAG,MAAA;MAC3C,MAAMC,SACJV,sBAAuB,CAAAO,aAAA,CAAcG,OAAOF,KAC5C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sB,CAAAI,IAAA,CAAK3B,IAAK,CAAAP,GAAA,CAAIE,KACnC,GAAA4B,qBAAA,CAAsBI,IAAK,CAAA3B,IAAA,CAAKP,GAAI,CAAAG,MAAA,CAAA;MAClC,MAAAC,MAAA,GACJ4B,YAAa,CAAAC,KAAA,IACZH,qBAAsB,CAAAI,IAAA,CAAK3B,IAAK,CAAAH,MAAA,CAAOF,KACtC,GAAA4B,qBAAA,CAAsBI,IAAK,CAAA3B,IAAA,CAAKH,MAAO,CAAAD,MAAA,CAAA;MAC3CJ,GAAA,IAAOC,GAAM,GAAAI,MAAA;IACf;IAEO,OAAAL,GAAA;EAAA,CACN,EAAA,CAACT,kBAAoB,EAAAC,MAAM,CAAC,CAAA;EAEzB,MAAA4C,0BAAA,GAA6B1C,QAAQ,MAAM;IAE7C,OAAAD,gBAAA,GAAmB8B,gBAAgBO,eAAkB,GAAAf,gBAAA;KAEtD,CAACtB,gBAAA,EAAkB8B,aAAe,EAAAO,eAAA,EAAiBf,gBAAgB,CAAC,CAAA;EAEhE,OAAA;IACLqB;EAAA,CACF;AACF,CAAA;"}
1
+ {"version":3,"file":"useComputeResourceCalculator.mjs","sources":["../../../../src/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.ts"],"sourcesContent":["import { useMemo } from \"react\";\n\nimport type {\n ComputeResourceCalculatorInputs,\n Device,\n} from \"./ComputeResourceCalculator.types\";\nimport { FeatureId } from \"./ComputeResourceCalculator.types\";\n\nexport const useComputeResourceCalculator = ({\n deviceResourceData,\n inputs,\n}: {\n deviceResourceData: Device[\"loadData\"];\n inputs: ComputeResourceCalculatorInputs;\n}) => {\n const networkResources = useMemo(() => {\n const networkDeviceResources = deviceResourceData.Network;\n const networkInputs = inputs[FeatureId.Network];\n\n if (!networkInputs.enabled || !networkDeviceResources) {\n return 0;\n }\n\n let sum = 0;\n\n if (networkInputs.enabled) {\n const cpu =\n networkDeviceResources.enableFeature.cpu.value *\n networkDeviceResources.enableFeature.cpu.weight;\n const memory =\n networkDeviceResources.enableFeature.memory.value *\n networkDeviceResources.enableFeature.memory.weight;\n sum += cpu + memory;\n }\n\n if (networkInputs.accessPoints > 0) {\n const cpu =\n networkInputs.accessPoints *\n (networkDeviceResources.accessPoint.data.cpu.value *\n networkDeviceResources.accessPoint.data.cpu.weight);\n const memory =\n networkInputs.accessPoints *\n (networkDeviceResources.accessPoint.data.memory.value *\n networkDeviceResources.accessPoint.data.memory.weight);\n sum += cpu + memory;\n }\n\n if (networkInputs.vpn) {\n const cpu =\n networkDeviceResources.vpn.cpu.value *\n networkDeviceResources.vpn.cpu.weight;\n const memory =\n networkDeviceResources.vpn.memory.value *\n networkDeviceResources.vpn.memory.weight;\n sum += cpu + memory;\n }\n\n if (networkInputs.detections) {\n const cpu =\n networkDeviceResources.securityDetection.cpu.value *\n networkDeviceResources.securityDetection.cpu.weight;\n const memory =\n networkDeviceResources.securityDetection.memory.value *\n networkDeviceResources.securityDetection.memory.weight;\n\n sum += cpu + memory;\n }\n\n if (networkInputs.adBlocking) {\n const cpu =\n networkDeviceResources.adBlocking.cpu.value *\n networkDeviceResources.adBlocking.cpu.weight;\n const memory =\n networkDeviceResources.adBlocking.memory.value *\n networkDeviceResources.adBlocking.memory.weight;\n sum += cpu + memory;\n }\n\n if (networkInputs.qos) {\n const cpu =\n networkDeviceResources.qos.cpu.value *\n networkDeviceResources.qos.cpu.weight;\n const memory =\n networkDeviceResources.qos.memory.value *\n networkDeviceResources.qos.memory.weight;\n sum += cpu + memory;\n }\n\n return sum;\n }, [deviceResourceData, inputs]);\n\n const protectResources = useMemo(() => {\n const protectDeviceResources = deviceResourceData.Protect;\n const protectInputs = inputs[FeatureId.Protect];\n\n // Increasing weight of camera values by 50%.\n const CAMERA_WEIGHT_FACTOR = 1.5;\n\n if (!protectInputs.enabled || !protectDeviceResources) {\n return 0;\n }\n\n let sum = 0;\n\n if (protectInputs.enabled) {\n const cpu =\n protectDeviceResources.enableFeature.cpu.value *\n protectDeviceResources.enableFeature.cpu.weight;\n const memory =\n protectDeviceResources.enableFeature.memory.value *\n protectDeviceResources.enableFeature.memory.weight;\n sum += cpu + memory;\n }\n\n if (protectInputs.cameraHd > 0) {\n const cpu =\n protectInputs.cameraHd *\n protectDeviceResources.cameraHd.data.cpu.value *\n protectDeviceResources.cameraHd.data.cpu.weight;\n const memory =\n protectInputs.cameraHd *\n protectDeviceResources.cameraHd.data.memory.value *\n protectDeviceResources.cameraHd.data.memory.weight;\n sum += (cpu + memory) * CAMERA_WEIGHT_FACTOR;\n }\n\n if (protectInputs.camera2k > 0) {\n const cpu =\n protectInputs.camera2k *\n protectDeviceResources.camera2k.data.cpu.value *\n protectDeviceResources.camera2k.data.cpu.weight;\n const memory =\n protectInputs.camera2k *\n protectDeviceResources.camera2k.data.memory.value *\n protectDeviceResources.camera2k.data.memory.weight;\n sum += (cpu + memory) * CAMERA_WEIGHT_FACTOR;\n }\n\n if (protectInputs.camera4k > 0) {\n const cpu =\n protectInputs.camera4k *\n protectDeviceResources.camera4k.data.cpu.value *\n protectDeviceResources.camera4k.data.cpu.weight;\n const memory =\n protectInputs.camera4k *\n protectDeviceResources.camera4k.data.memory.value *\n protectDeviceResources.camera4k.data.memory.weight;\n sum += (cpu + memory) * CAMERA_WEIGHT_FACTOR;\n }\n\n return sum;\n }, [deviceResourceData, inputs]);\n\n const talkResources = useMemo(() => {\n const talkDeviceResources = deviceResourceData.Talk;\n const talkInputs = inputs[FeatureId.Talk];\n\n if (!talkInputs.enabled || !talkDeviceResources) {\n return 0;\n }\n\n let sum = 0;\n\n if (talkInputs.enabled) {\n const cpu =\n talkDeviceResources.enableFeature.cpu.value *\n talkDeviceResources.enableFeature.cpu.weight;\n const memory =\n talkDeviceResources.enableFeature.memory.value *\n talkDeviceResources.enableFeature.memory.weight;\n sum += cpu + memory;\n }\n\n if (talkInputs.phones) {\n const cpu =\n talkInputs.phones *\n talkDeviceResources.phone.data.cpu.value *\n talkDeviceResources.phone.data.cpu.weight;\n const memory =\n talkInputs.phones *\n talkDeviceResources.phone.data.memory.value *\n talkDeviceResources.phone.data.memory.weight;\n sum += cpu + memory;\n }\n\n if (talkInputs.record) {\n const cpu =\n talkDeviceResources.record.cpu.value *\n talkDeviceResources.record.cpu.weight;\n const memory =\n talkDeviceResources.record.memory.value *\n talkDeviceResources.record.memory.weight;\n sum += cpu + memory;\n }\n\n return sum;\n }, [deviceResourceData, inputs]);\n\n const accessResources = useMemo(() => {\n const accessDeviceResources = deviceResourceData.Access;\n const accessInputs = inputs[FeatureId.Access];\n\n if (!accessInputs.enabled || !accessDeviceResources) {\n return 0;\n }\n\n let sum = 0;\n\n if (accessInputs.enabled) {\n const cpu =\n accessDeviceResources.enableFeature.cpu.value *\n accessDeviceResources.enableFeature.cpu.weight;\n const memory =\n accessDeviceResources.enableFeature.memory.value *\n accessDeviceResources.enableFeature.memory.weight;\n sum += cpu + memory;\n }\n\n if (accessInputs.doors > 0) {\n const cpu =\n accessInputs.doors *\n (accessDeviceResources.door.data.cpu.value *\n accessDeviceResources.door.data.cpu.weight);\n const memory =\n accessInputs.doors *\n (accessDeviceResources.door.data.memory.value *\n accessDeviceResources.door.data.memory.weight);\n sum += cpu + memory;\n }\n\n return sum;\n }, [deviceResourceData, inputs]);\n\n const computedResourcesLoadRatio = useMemo(() => {\n return (\n networkResources + talkResources + accessResources + protectResources\n );\n }, [networkResources, talkResources, accessResources, protectResources]);\n\n return {\n computedResourcesLoadRatio,\n };\n};\n"],"names":["useComputeResourceCalculator","deviceResourceData","inputs","networkResources","useMemo","networkDeviceResources","Network","networkInputs","FeatureId","enabled","sum","cpu","enableFeature","value","weight","memory","accessPoints","accessPoint","data","vpn","detections","securityDetection","adBlocking","qos","protectResources","protectDeviceResources","Protect","protectInputs","CAMERA_WEIGHT_FACTOR","cameraHd","camera2k","camera4k","talkResources","talkDeviceResources","Talk","talkInputs","phones","phone","record","accessResources","accessDeviceResources","Access","accessInputs","doors","door","computedResourcesLoadRatio"],"mappings":";;;AAQO,MAAM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3
  var jsxRuntime = require('react/jsx-runtime');
4
- var react = require('react');
4
+ var React = require('react');
5
5
  require('../../../contexts/MenuContext/index.js');
6
6
  var mapping = require('../../../contexts/MenuContext/mapping.js');
7
7
  var asset = require('../../../utils/asset.js');
@@ -27,17 +27,17 @@ const PoeCalculator = () => {
27
27
  const {
28
28
  formatMessage
29
29
  } = useResourceCalculatorTranslation.useResourceCalculatorTranslation();
30
- const [poeConsumerPorts, setPoeConsumerPorts] = react.useState(getEmptyPorts(PoeCalculator_constants.PORT_GROUP_SIZE));
31
- const handleAddPortGroup = react.useCallback(poePortGroupSize => {
30
+ const [poeConsumerPorts, setPoeConsumerPorts] = React.useState(getEmptyPorts(PoeCalculator_constants.PORT_GROUP_SIZE));
31
+ const handleAddPortGroup = React.useCallback(poePortGroupSize => {
32
32
  setPoeConsumerPorts([...poeConsumerPorts, ...getEmptyPorts(poePortGroupSize)]);
33
33
  }, [poeConsumerPorts, setPoeConsumerPorts]);
34
- const handleDeletePorts = react.useCallback((deleteIndexStart, deleteCount) => {
34
+ const handleDeletePorts = React.useCallback((deleteIndexStart, deleteCount) => {
35
35
  const updatedPoeConsumerPorts = poeConsumerPorts.filter((_, i) => {
36
36
  return i < deleteIndexStart || i >= deleteIndexStart + deleteCount;
37
37
  });
38
38
  setPoeConsumerPorts(updatedPoeConsumerPorts);
39
39
  }, [poeConsumerPorts, setPoeConsumerPorts]);
40
- const handleUpdatePorts = react.useCallback((portIndexes, poeConsumerId, missingPortCount) => {
40
+ const handleUpdatePorts = React.useCallback((portIndexes, poeConsumerId, missingPortCount) => {
41
41
  const poeConsumerDevice = PoeCalculator_constants.POE_CONSUMERS.find(item => item.id === poeConsumerId);
42
42
  const portData = poeConsumerDevice ? {
43
43
  wattage: poeConsumerDevice.wattage,
@@ -66,10 +66,10 @@ const PoeCalculator = () => {
66
66
  });
67
67
  setPoeConsumerPorts([...updatedPoeConsumerPorts, ...portsToBeAdded]);
68
68
  }, [poeConsumerPorts, setPoeConsumerPorts]);
69
- const totalPoeConsumersWattage = react.useMemo(() => {
69
+ const totalPoeConsumersWattage = React.useMemo(() => {
70
70
  return poeConsumerPorts.reduce((accumulator, port) => accumulator + port.wattage, 0);
71
71
  }, [poeConsumerPorts]);
72
- const poeProviderHasEnoughPorts = react.useCallback(poeProvider => {
72
+ const poeProviderHasEnoughPorts = React.useCallback(poeProvider => {
73
73
  const poeProviderPorts = {
74
74
  ...poeProvider.poePorts
75
75
  };
@@ -94,7 +94,7 @@ const PoeCalculator = () => {
94
94
  }
95
95
  return Math.min(...Object.values(poeProviderPorts)) >= 0;
96
96
  }, [poeConsumerPorts]);
97
- const recommendedPoeProviders = react.useMemo(() => {
97
+ const recommendedPoeProviders = React.useMemo(() => {
98
98
  if (totalPoeConsumersWattage === 0) {
99
99
  return [];
100
100
  }
@@ -103,7 +103,7 @@ const PoeCalculator = () => {
103
103
  return poeProviderHasEnoughPorts(poeProvider) && hasEnoughPoeBudget;
104
104
  });
105
105
  }, [totalPoeConsumersWattage, poeProviderHasEnoughPorts]);
106
- const getPoeProviderTotalPortCount = react.useCallback(poePorts => {
106
+ const getPoeProviderTotalPortCount = React.useCallback(poePorts => {
107
107
  return Object.values(poePorts).reduce((acc, curr) => acc + curr, 0);
108
108
  }, []);
109
109
  const {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
- var react = require('react');
4
+ var React = require('react');
5
5
  require('../../../../CustomImage/index.js');
6
6
  var useResourceCalculatorTranslation = require('../../../translations/useResourceCalculatorTranslation.js');
7
7
  require('./assets/delete.svg.js');
@@ -31,7 +31,7 @@ const PoeConsumerConfigurator = ({
31
31
  const {
32
32
  formatMessage
33
33
  } = useResourceCalculatorTranslation.useResourceCalculatorTranslation();
34
- const emptyPortIndexes = react.useMemo(() => {
34
+ const emptyPortIndexes = React.useMemo(() => {
35
35
  const indexes = [];
36
36
  for (const [i, port] of poeConsumerPorts.entries()) {
37
37
  if (port.wattage === 0) {
@@ -40,7 +40,7 @@ const PoeConsumerConfigurator = ({
40
40
  }
41
41
  return indexes;
42
42
  }, [poeConsumerPorts]);
43
- const groupedPoeConsumerPorts = react.useMemo(() => {
43
+ const groupedPoeConsumerPorts = React.useMemo(() => {
44
44
  const result = [];
45
45
  for (let i = 0; i < poeConsumerPorts.length; i += portGroupSize) {
46
46
  const chunk = poeConsumerPorts.slice(i, i + portGroupSize);
@@ -48,14 +48,14 @@ const PoeConsumerConfigurator = ({
48
48
  }
49
49
  return result;
50
50
  }, [poeConsumerPorts, portGroupSize]);
51
- const [focusedPortIndex, setFocusedPortIndex] = react.useState(null);
52
- const handleConfiguePort = react.useCallback(portIndex => {
51
+ const [focusedPortIndex, setFocusedPortIndex] = React.useState(null);
52
+ const handleConfiguePort = React.useCallback(portIndex => {
53
53
  setFocusedPortIndex(portIndex);
54
54
  }, [setFocusedPortIndex]);
55
- const handleCloseModal = react.useCallback(() => {
55
+ const handleCloseModal = React.useCallback(() => {
56
56
  setFocusedPortIndex(null);
57
57
  }, [setFocusedPortIndex]);
58
- const handleSelectConsumerDevice = react.useCallback((poeConsumerId, count) => {
58
+ const handleSelectConsumerDevice = React.useCallback((poeConsumerId, count) => {
59
59
  if (focusedPortIndex !== null) {
60
60
  const emptyPortIndexesWithoutFocusedPort = emptyPortIndexes.filter(portIndex => portIndex !== focusedPortIndex);
61
61
  const countOfAdditionalPorts = count - 1;
@@ -65,11 +65,11 @@ const PoeConsumerConfigurator = ({
65
65
  handleCloseModal();
66
66
  }
67
67
  }, [focusedPortIndex, handleCloseModal, onUpdatePorts, emptyPortIndexes]);
68
- const [highlightedPortGroupIndex, setHighlightedPortGroupIndex] = react.useState(null);
69
- const handlePortGroupHighlight = react.useCallback(groupIndex => {
68
+ const [highlightedPortGroupIndex, setHighlightedPortGroupIndex] = React.useState(null);
69
+ const handlePortGroupHighlight = React.useCallback(groupIndex => {
70
70
  setHighlightedPortGroupIndex(groupIndex);
71
71
  }, [setHighlightedPortGroupIndex]);
72
- const handleDeletePortGroup = react.useCallback(poePortGroupIndex => {
72
+ const handleDeletePortGroup = React.useCallback(poePortGroupIndex => {
73
73
  const deleteIndexStart = poePortGroupIndex * portGroupSize;
74
74
  onDeletePorts(deleteIndexStart, portGroupSize);
75
75
  }, [portGroupSize, onDeletePorts]);
@@ -1,11 +1,11 @@
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 asset = require('../../../../../../utils/asset.js');
6
6
  require('../../../../../CustomImage/index.js');
7
+ require('../../../../../HorizontalOptionSelect/index.js');
7
8
  require('../../../../../StyleableSvgImage/index.js');
8
- require('../../../../components/HorizontalOptionSelect/index.js');
9
9
  require('../../../../ComputeResourceCalculator/index.js');
10
10
  var useResourceCalculatorTranslation = require('../../../../translations/useResourceCalculatorTranslation.js');
11
11
  require('../assets/empty-port.svg.js');
@@ -14,13 +14,13 @@ require('../assets/plus.svg.js');
14
14
  require('../assets/search.svg.js');
15
15
  var PoeConsumerSelectModal_styles = require('./PoeConsumerSelectModal.styles.js');
16
16
  var EmptyPortIcon = require("../../../../../../assets/empty-port.svg");
17
- var HorizontalOptionSelect = require('../../../../components/HorizontalOptionSelect/HorizontalOptionSelect.js');
17
+ var HorizontalOptionSelect = require('../../../../../HorizontalOptionSelect/HorizontalOptionSelect.js');
18
18
  var ComputeResourceCalculator_types = require('../../../../ComputeResourceCalculator/ComputeResourceCalculator.types.js');
19
19
  var CustomImage = require('../../../../../CustomImage/CustomImage.js');
20
20
  var SearchIcon = require("../../../../../../assets/search2.svg");
21
21
  var StyleableSvgImage = require('../../../../../StyleableSvgImage/StyleableSvgImage.js');
22
- var MinusIcon = require("../../../../../../assets/minus4.svg");
23
- var PlusIcon = require("../../../../../../assets/plus5.svg");
22
+ var MinusIcon = require("../../../../../../assets/minus5.svg");
23
+ var PlusIcon = require("../../../../../../assets/plus6.svg");
24
24
  function _interopDefault(e) {
25
25
  return e && e.__esModule ? e : {
26
26
  default: e
@@ -42,20 +42,20 @@ const PoeConsumerSelectModal = ({
42
42
  const {
43
43
  formatMessage
44
44
  } = useResourceCalculatorTranslation.useResourceCalculatorTranslation();
45
- const stopPropagation = react.useCallback(event => {
45
+ const stopPropagation = React.useCallback(event => {
46
46
  event.stopPropagation();
47
47
  }, []);
48
- const inputRef = react.useRef(null);
49
- const [searchQuery, setSearchQuery] = react.useState("");
50
- const handleSearchQueryChange = react.useCallback(e => {
48
+ const inputRef = React.useRef(null);
49
+ const [searchQuery, setSearchQuery] = React.useState("");
50
+ const handleSearchQueryChange = React.useCallback(e => {
51
51
  setSearchQuery(e.target.value);
52
52
  }, [setSearchQuery]);
53
- const handleFocusSearchInput = react.useCallback(() => {
53
+ const handleFocusSearchInput = React.useCallback(() => {
54
54
  if (inputRef.current) {
55
55
  inputRef.current.focus();
56
56
  }
57
57
  }, []);
58
- const filterSearchItems = react.useCallback(items2 => {
58
+ const filterSearchItems = React.useCallback(items2 => {
59
59
  if (searchQuery.trim().length === 0) {
60
60
  return items2;
61
61
  }
@@ -63,16 +63,16 @@ const PoeConsumerSelectModal = ({
63
63
  return item.title.toLowerCase().includes(searchQuery.toLowerCase());
64
64
  });
65
65
  }, [searchQuery]);
66
- const itemCategories = react.useMemo(() => {
66
+ const itemCategories = React.useMemo(() => {
67
67
  const allCategories = items.map(item => item.category);
68
68
  return [...new Set(allCategories)];
69
69
  }, [items]);
70
- const [currentItemCategory, setCurrentItemCategory] = react.useState(itemCategories[0] || null);
71
- const handleSelectCategory = react.useCallback(id => {
70
+ const [currentItemCategory, setCurrentItemCategory] = React.useState(itemCategories[0] || null);
71
+ const handleSelectCategory = React.useCallback(id => {
72
72
  setCurrentItemCategory(id);
73
73
  setSearchQuery("");
74
74
  }, [setCurrentItemCategory, setSearchQuery]);
75
- const displayedPoeConsumerItems = react.useMemo(() => {
75
+ const displayedPoeConsumerItems = React.useMemo(() => {
76
76
  let itemsTmp = [...items];
77
77
  itemsTmp = itemsTmp.filter(item => item.category === currentItemCategory);
78
78
  itemsTmp = filterSearchItems(itemsTmp);
@@ -85,18 +85,18 @@ const PoeConsumerSelectModal = ({
85
85
  }, ...itemsTmp];
86
86
  return itemsTmp;
87
87
  }, [items, currentItemCategory, filterSearchItems]);
88
- const [count, setCount] = react.useState(1);
89
- react.useEffect(() => {
88
+ const [count, setCount] = React.useState(1);
89
+ React.useEffect(() => {
90
90
  if (isOpen) {
91
91
  setCount(1);
92
92
  }
93
93
  }, [setCount, isOpen]);
94
- const handleIncrementCount = react.useCallback(() => {
94
+ const handleIncrementCount = React.useCallback(() => {
95
95
  if (count < maxCount) {
96
96
  setCount(count + 1);
97
97
  }
98
98
  }, [maxCount, count, setCount]);
99
- const handleDecrementCount = react.useCallback(() => {
99
+ const handleDecrementCount = React.useCallback(() => {
100
100
  if (count > 1) {
101
101
  setCount(count - 1);
102
102
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PoeConsumerSelectModal.js","sources":["../../../../../../../src/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.tsx"],"sourcesContent":["import type { StaticImageData } from \"next/image\";\nimport { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\n\nimport { imageSrc } from \"../../../../../../utils/asset\";\nimport { CustomImage } from \"../../../../../CustomImage\";\nimport { StyleableSvgImage } from \"../../../../../StyleableSvgImage\";\nimport { HorizontalOptionSelect } from \"../../../../components/HorizontalOptionSelect\";\nimport type { ResourceCalculatorTranslationKey } from \"../../../../ComputeResourceCalculator\";\nimport { isMessageFormatted } from \"../../../../ComputeResourceCalculator\";\nimport { useResourceCalculatorTranslation } from \"../../../../translations/useResourceCalculatorTranslation\";\nimport EmptyPortIcon from \"../assets/empty-port.svg\";\nimport MinusIcon from \"../assets/minus.svg\";\nimport PlusIcon from \"../assets/plus.svg\";\nimport SearchIcon from \"../assets/search.svg\";\nimport * as S from \"./PoeConsumerSelectModal.styles\";\n\ntype PoeConsumerSelectModalProps = {\n isOpen: boolean;\n\n // Max count of devices that can be selected, this value is: (max ports - occupied ports).\n maxCount: number;\n\n onSelect: (poeConsumerId: string | null, count: number) => void;\n onClose: () => void;\n items: Array<{\n id: string | null;\n category: string;\n title: ResourceCalculatorTranslationKey;\n wattage: number;\n src: StaticImageData | string;\n }>;\n};\n\n// eslint-disable-next-line react/jsx-no-useless-fragment\nconst NoopPlaceholder = () => <></>;\n\nexport const PoeConsumerSelectModal = ({\n isOpen,\n maxCount,\n onSelect,\n items,\n onClose,\n}: PoeConsumerSelectModalProps) => {\n const { formatMessage } = useResourceCalculatorTranslation();\n\n // #############################################################################\n // Helpers\n // #############################################################################\n const stopPropagation = useCallback(\n (event: React.MouseEvent<HTMLElement>) => {\n event.stopPropagation();\n },\n [],\n );\n\n // #############################################################################\n // Search filter\n // #############################################################################\n const inputRef = useRef<HTMLInputElement>(null);\n\n const [searchQuery, setSearchQuery] = useState(\"\");\n\n const handleSearchQueryChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n setSearchQuery(e.target.value);\n },\n [setSearchQuery],\n );\n\n const handleFocusSearchInput = useCallback(() => {\n if (inputRef.current) {\n inputRef.current.focus();\n }\n }, []);\n\n const filterSearchItems = useCallback(\n (\n items: PoeConsumerSelectModalProps[\"items\"],\n ): PoeConsumerSelectModalProps[\"items\"] => {\n if (searchQuery.trim().length === 0) {\n return items;\n }\n\n return items.filter((item) => {\n return item.title.toLowerCase().includes(searchQuery.toLowerCase());\n });\n },\n [searchQuery],\n );\n\n // #############################################################################\n // Category filter\n // #############################################################################\n const itemCategories: string[] = useMemo(() => {\n const allCategories = items.map((item) => item.category);\n\n // Remove duplicates\n return [...new Set(allCategories)];\n }, [items]);\n\n const [currentItemCategory, setCurrentItemCategory] = useState<string | null>(\n itemCategories[0] || null,\n );\n\n const handleSelectCategory = useCallback(\n (id: string) => {\n setCurrentItemCategory(id);\n setSearchQuery(\"\");\n },\n [setCurrentItemCategory, setSearchQuery],\n );\n\n // #############################################################################\n // Filtered items for display\n // #############################################################################\n const displayedPoeConsumerItems = useMemo(() => {\n // Clone current items\n let itemsTmp = [...items];\n\n // Filter category\n itemsTmp = itemsTmp.filter((item) => item.category === currentItemCategory);\n\n // Filter search query\n itemsTmp = filterSearchItems(itemsTmp);\n\n // Add empty option first in items\n itemsTmp = [\n {\n id: null,\n category: \"\",\n title: \"poeConsumer.empty\",\n wattage: 0,\n src:\n typeof EmptyPortIcon === \"string\" ? EmptyPortIcon : EmptyPortIcon.src,\n },\n ...itemsTmp,\n ];\n\n // Result\n return itemsTmp;\n }, [items, currentItemCategory, filterSearchItems]);\n\n // #############################################################################\n // Counter - for selecting how many of the selected device to add\n // #############################################################################\n const [count, setCount] = useState<number>(1);\n\n // Reset count when modal opens\n useEffect(() => {\n if (isOpen) {\n setCount(1);\n }\n }, [setCount, isOpen]);\n\n const handleIncrementCount = useCallback(() => {\n if (count < maxCount) {\n setCount(count + 1);\n }\n }, [maxCount, count, setCount]);\n\n const handleDecrementCount = useCallback(() => {\n if (count > 1) {\n setCount(count - 1);\n }\n }, [count, setCount]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.Modal\n header={<NoopPlaceholder />}\n onRequestClose={onClose}\n contentClassName={S.CLASS_NAMES.modalContentClassname}\n isOpen={isOpen}\n lockScroll\n size=\"auto\"\n >\n <S.ModalHeader>\n <HorizontalOptionSelect\n activeId={currentItemCategory}\n items={itemCategories.map((category) => {\n // Translate label if possible\n const finalLabelKey = `category.${category}`;\n const finalLabel = isMessageFormatted(finalLabelKey)\n ? formatMessage(finalLabelKey)\n : category;\n\n return {\n label: finalLabel,\n id: category,\n onSelect: () => handleSelectCategory(category),\n };\n })}\n />\n </S.ModalHeader>\n\n <S.ModalSearchWrap onClick={handleFocusSearchInput}>\n <S.ModalSearchIconWrap>\n <CustomImage\n asset={{\n width: 20,\n height: 20,\n src: typeof SearchIcon === \"string\" ? SearchIcon : SearchIcon.src,\n alt: \"search\",\n }}\n sizes=\"100%\"\n />\n </S.ModalSearchIconWrap>\n\n <S.ModalSearchInput\n ref={inputRef}\n type=\"text\"\n value={searchQuery}\n onChange={handleSearchQueryChange}\n />\n </S.ModalSearchWrap>\n\n <S.ListItemsWrap>\n {displayedPoeConsumerItems.map((item, i) => (\n <S.ListItem\n key={`poe-consumer-item-${i}`}\n onClick={() => onSelect(item.id, count)}\n >\n <S.ListItemImgWrap>\n <CustomImage\n asset={{\n width: 30,\n height: 30,\n src: imageSrc(item.src),\n alt: item.title,\n }}\n sizes=\"100%\"\n />\n </S.ListItemImgWrap>\n\n <S.ListItemTitleWrap>\n <S.ListItemTitle>{formatMessage(item.title)}</S.ListItemTitle>\n <S.ListItemValueLabel>{`${item.wattage} W`}</S.ListItemValueLabel>\n </S.ListItemTitleWrap>\n\n {/* Dont render counter if empty option */}\n {item.id !== null && (\n <S.ListItemActionsWrap>\n <S.ListItemCounter onClick={stopPropagation}>\n <S.ListItemCounterBtn\n onClick={handleDecrementCount}\n disabled={count === 1}\n >\n <StyleableSvgImage src={MinusIcon} width={8} height={8} />\n </S.ListItemCounterBtn>\n\n <S.ListItemCounterValue>{count}</S.ListItemCounterValue>\n\n <S.ListItemCounterBtn\n onClick={handleIncrementCount}\n disabled={count === maxCount}\n >\n <StyleableSvgImage src={PlusIcon} width={8} height={8} />\n </S.ListItemCounterBtn>\n </S.ListItemCounter>\n\n <S.ListItemAddActionLabel>\n {formatMessage(\"add\")}\n </S.ListItemAddActionLabel>\n </S.ListItemActionsWrap>\n )}\n </S.ListItem>\n ))}\n </S.ListItemsWrap>\n </S.Modal>\n );\n};\n"],"names":["NoopPlaceholder","jsx","Fragment","PoeConsumerSelectModal","isOpen","maxCount","onSelect","items","onClose","formatMessage","useResourceCalculatorTranslation","stopPropagation","useCallback","event","inputRef","useRef","searchQuery","setSearchQuery","useState","handleSearchQueryChange","e","target","value","handleFocusSearchInput","current","focus","filterSearchItems","trim","length","filter","item","title","toLowerCase","includes","itemCategories","useMemo","allCategories","map","category","Set","currentItemCategory","setCurrentItemCategory","handleSelectCategory","id","displayedPoeConsumerItems","itemsTmp","wattage","src","EmptyPortIcon","count","setCount","useEffect","handleIncrementCount","handleDecrementCount","jsxs","S.Modal","Modal","header","onRequestClose","contentClassName","S.CLASS_NAMES","CLASS_NAMES","modalContentClassname","lockScroll","size","children","S.ModalHeader","HorizontalOptionSelect","activeId","finalLabelKey","finalLabel","isMessageFormatted","label","S.ModalSearchWrap","onClick","S.ModalSearchIconWrap","CustomImage","asset","width","height","SearchIcon","alt","sizes","S.ModalSearchInput","ModalSearchInput","ref","type","onChange","S.ListItemsWrap","i","S.ListItem","ListItem","S.ListItemImgWrap","imageSrc","S.ListItemTitleWrap","S.ListItemTitle","ListItemTitle","S.ListItemValueLabel","S.ListItemActionsWrap","S.ListItemCounter","S.ListItemCounterBtn","ListItemCounterBtn","disabled","StyleableSvgImage","MinusIcon","S.ListItemCounterValue","ListItemCounterValue","PlusIcon","S.ListItemAddActionLabel","ListItemAddActionLabel"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,MAAMA,eAAA,GAAkBA,CAAA,KAAQC,eAAAA,UAAAA,CAAAA,GAAA,CAAAC,UAAA,CAAAA,QAAA,EAAA,CAAA,CAAA,CAAA;AAEzB,MAAMC,yBAAyBA,CAAC;EACrCC,MAAA;EACAC,QAAA;EACAC,QAAA;EACAC,KAAA;EACAC;AACF,CAAmC,KAAA;EAC3B,MAAA;IAAEC;GAAc,GAAIC,gCAAAA,CAAAA,gCAAiC,EAAA;EAK3D,MAAMC,eAAkB,GAAAC,KAAA,CAAAA,WAAA,CACrBC,KAAyC,IAAA;IACxCA,KAAA,CAAMF,eAAgB,CAAA,CAAA;EACxB,CAAA,EACA,EAAC,CACH;EAKM,MAAAG,QAAA,GAAWC,aAAyB,IAAI,CAAA;EAE9C,MAAM,CAACC,WAAA,EAAaC,cAAc,CAAA,GAAIC,eAAS,EAAE,CAAA;EAEjD,MAAMC,uBAA0B,GAAAP,KA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ConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.tsx"],"sourcesContent":["import type { StaticImageData } from \"next/image\";\nimport { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\n\nimport { imageSrc } from \"../../../../../../utils/asset\";\nimport { CustomImage } from \"../../../../../CustomImage\";\nimport { HorizontalOptionSelect } from \"../../../../../HorizontalOptionSelect\";\nimport { StyleableSvgImage } from \"../../../../../StyleableSvgImage\";\nimport type { ResourceCalculatorTranslationKey } from \"../../../../ComputeResourceCalculator\";\nimport { isMessageFormatted } from \"../../../../ComputeResourceCalculator\";\nimport { useResourceCalculatorTranslation } from \"../../../../translations/useResourceCalculatorTranslation\";\nimport EmptyPortIcon from \"../assets/empty-port.svg\";\nimport MinusIcon from \"../assets/minus.svg\";\nimport PlusIcon from \"../assets/plus.svg\";\nimport SearchIcon from \"../assets/search.svg\";\nimport * as S from \"./PoeConsumerSelectModal.styles\";\n\ntype PoeConsumerSelectModalProps = {\n isOpen: boolean;\n\n // Max count of devices that can be selected, this value is: (max ports - occupied ports).\n maxCount: number;\n\n onSelect: (poeConsumerId: string | null, count: number) => void;\n onClose: () => void;\n items: Array<{\n id: string | null;\n category: string;\n title: ResourceCalculatorTranslationKey;\n wattage: number;\n src: StaticImageData | string;\n }>;\n};\n\n// eslint-disable-next-line react/jsx-no-useless-fragment\nconst NoopPlaceholder = () => <></>;\n\nexport const PoeConsumerSelectModal = ({\n isOpen,\n maxCount,\n onSelect,\n items,\n onClose,\n}: PoeConsumerSelectModalProps) => {\n const { formatMessage } = useResourceCalculatorTranslation();\n\n // #############################################################################\n // Helpers\n // #############################################################################\n const stopPropagation = useCallback(\n (event: React.MouseEvent<HTMLElement>) => {\n event.stopPropagation();\n },\n [],\n );\n\n // #############################################################################\n // Search filter\n // #############################################################################\n const inputRef = useRef<HTMLInputElement>(null);\n\n const [searchQuery, setSearchQuery] = useState(\"\");\n\n const handleSearchQueryChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n setSearchQuery(e.target.value);\n },\n [setSearchQuery],\n );\n\n const handleFocusSearchInput = useCallback(() => {\n if (inputRef.current) {\n inputRef.current.focus();\n }\n }, []);\n\n const filterSearchItems = useCallback(\n (\n items: PoeConsumerSelectModalProps[\"items\"],\n ): PoeConsumerSelectModalProps[\"items\"] => {\n if (searchQuery.trim().length === 0) {\n return items;\n }\n\n return items.filter((item) => {\n return item.title.toLowerCase().includes(searchQuery.toLowerCase());\n });\n },\n [searchQuery],\n );\n\n // #############################################################################\n // Category filter\n // #############################################################################\n const itemCategories: string[] = useMemo(() => {\n const allCategories = items.map((item) => item.category);\n\n // Remove duplicates\n return [...new Set(allCategories)];\n }, [items]);\n\n const [currentItemCategory, setCurrentItemCategory] = useState<string | null>(\n itemCategories[0] || null,\n );\n\n const handleSelectCategory = useCallback(\n (id: string) => {\n setCurrentItemCategory(id);\n setSearchQuery(\"\");\n },\n [setCurrentItemCategory, setSearchQuery],\n );\n\n // #############################################################################\n // Filtered items for display\n // #############################################################################\n const displayedPoeConsumerItems = useMemo(() => {\n // Clone current items\n let itemsTmp = [...items];\n\n // Filter category\n itemsTmp = itemsTmp.filter((item) => item.category === currentItemCategory);\n\n // Filter search query\n itemsTmp = filterSearchItems(itemsTmp);\n\n // Add empty option first in items\n itemsTmp = [\n {\n id: null,\n category: \"\",\n title: \"poeConsumer.empty\",\n wattage: 0,\n src:\n typeof EmptyPortIcon === \"string\" ? EmptyPortIcon : EmptyPortIcon.src,\n },\n ...itemsTmp,\n ];\n\n // Result\n return itemsTmp;\n }, [items, currentItemCategory, filterSearchItems]);\n\n // #############################################################################\n // Counter - for selecting how many of the selected device to add\n // #############################################################################\n const [count, setCount] = useState<number>(1);\n\n // Reset count when modal opens\n useEffect(() => {\n if (isOpen) {\n setCount(1);\n }\n }, [setCount, isOpen]);\n\n const handleIncrementCount = useCallback(() => {\n if (count < maxCount) {\n setCount(count + 1);\n }\n }, [maxCount, count, setCount]);\n\n const handleDecrementCount = useCallback(() => {\n if (count > 1) {\n setCount(count - 1);\n }\n }, [count, setCount]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.Modal\n header={<NoopPlaceholder />}\n onRequestClose={onClose}\n contentClassName={S.CLASS_NAMES.modalContentClassname}\n isOpen={isOpen}\n lockScroll\n size=\"auto\"\n >\n <S.ModalHeader>\n <HorizontalOptionSelect\n activeId={currentItemCategory}\n items={itemCategories.map((category) => {\n // Translate label if possible\n const finalLabelKey = `category.${category}`;\n const finalLabel = isMessageFormatted(finalLabelKey)\n ? formatMessage(finalLabelKey)\n : category;\n\n return {\n label: finalLabel,\n id: category,\n onSelect: () => handleSelectCategory(category),\n };\n })}\n />\n </S.ModalHeader>\n\n <S.ModalSearchWrap onClick={handleFocusSearchInput}>\n <S.ModalSearchIconWrap>\n <CustomImage\n asset={{\n width: 20,\n height: 20,\n src: typeof SearchIcon === \"string\" ? SearchIcon : SearchIcon.src,\n alt: \"search\",\n }}\n sizes=\"100%\"\n />\n </S.ModalSearchIconWrap>\n\n <S.ModalSearchInput\n ref={inputRef}\n type=\"text\"\n value={searchQuery}\n onChange={handleSearchQueryChange}\n />\n </S.ModalSearchWrap>\n\n <S.ListItemsWrap>\n {displayedPoeConsumerItems.map((item, i) => (\n <S.ListItem\n key={`poe-consumer-item-${i}`}\n onClick={() => onSelect(item.id, count)}\n >\n <S.ListItemImgWrap>\n <CustomImage\n asset={{\n width: 30,\n height: 30,\n src: imageSrc(item.src),\n alt: item.title,\n }}\n sizes=\"100%\"\n />\n </S.ListItemImgWrap>\n\n <S.ListItemTitleWrap>\n <S.ListItemTitle>{formatMessage(item.title)}</S.ListItemTitle>\n <S.ListItemValueLabel>{`${item.wattage} W`}</S.ListItemValueLabel>\n </S.ListItemTitleWrap>\n\n {/* Dont render counter if empty option */}\n {item.id !== null && (\n <S.ListItemActionsWrap>\n <S.ListItemCounter onClick={stopPropagation}>\n <S.ListItemCounterBtn\n onClick={handleDecrementCount}\n disabled={count === 1}\n >\n <StyleableSvgImage src={MinusIcon} width={8} height={8} />\n </S.ListItemCounterBtn>\n\n <S.ListItemCounterValue>{count}</S.ListItemCounterValue>\n\n <S.ListItemCounterBtn\n onClick={handleIncrementCount}\n disabled={count === maxCount}\n >\n <StyleableSvgImage src={PlusIcon} width={8} height={8} />\n </S.ListItemCounterBtn>\n </S.ListItemCounter>\n\n <S.ListItemAddActionLabel>\n {formatMessage(\"add\")}\n </S.ListItemAddActionLabel>\n </S.ListItemActionsWrap>\n )}\n </S.ListItem>\n ))}\n </S.ListItemsWrap>\n </S.Modal>\n );\n};\n"],"names":["NoopPlaceholder","jsx","Fragment","PoeConsumerSelectModal","isOpen","maxCount","onSelect","items","onClose","formatMessage","useResourceCalculatorTranslation","stopPropagation","useCallback","event","inputRef","useRef","searchQuery","setSearchQuery","useState","handleSearchQueryChange","e","target","value","handleFocusSearchInput","current","focus","filterSearchItems","trim","length","filter","item","title","toLowerCase","includes","itemCategories","useMemo","allCategories","map","category","Set","currentItemCategory","setCurrentItemCategory","handleSelectCategory","id","displayedPoeConsumerItems","itemsTmp","wattage","src","EmptyPortIcon","count","setCount","useEffect","handleIncrementCount","handleDecrementCount","jsxs","S.Modal","Modal","header","onRequestClose","contentClassName","S.CLASS_NAMES","CLASS_NAMES","modalContentClassname","lockScroll","size","children","S.ModalHeader","HorizontalOptionSelect","activeId","finalLabelKey","finalLabel","isMessageFormatted","label","S.ModalSearchWrap","onClick","S.ModalSearchIconWrap","CustomImage","asset","width","height","SearchIcon","alt","sizes","S.ModalSearchInput","ModalSearchInput","ref","type","onChange","S.ListItemsWrap","i","S.ListItem","ListItem","S.ListItemImgWrap","imageSrc","S.ListItemTitleWrap","S.ListItemTitle","ListItemTitle","S.ListItemValueLabel","S.ListItemActionsWrap","S.ListItemCounter","S.ListItemCounterBtn","ListItemCounterBtn","disabled","StyleableSvgImage","MinusIcon","S.ListItemCounterValue","ListItemCounterValue","PlusIcon","S.ListItemAddActionLabel","ListItemAddActionLabel"],"mappings":";;;;;;;;;;;;;;;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AAAhB;YAAA,CAAA,CAAA,EAAA,eAE/BhD,UAAA,CAAAA,GAAA,CAACmG,6BAAE,CAAAC,kBAAA,EAAF;cACC3B,OAAS,EAAAtB,oBAAA;cACTkD,UAAUrD,KAAU,KAAA5C,QAAA;cAEpB4D,wCAACsC,iBAAkB,CAAAA,iBAAA,EAAA;gBAAAxD,GAAA,EAAK4D;gBAAU7B,KAAO,EAAA,CAAA;gBAAGC,QAAQ;eAAG;YAAA,CACzD,CAAA;WACF,CAAA,EAAA,8BAEC6B,6BAAE,CAAAC,sBAAA,EAAF;YACE5C,QAAA,EAAAxD,aAAA,CAAc,KAAK;UACtB,CAAA,CAAA;SACF,CAAA;MAAA,CAAA,uBA5CwBgF,CAAC,EA+C9B,CAAA;KACH,CAAA;EAAA,CAAA,CACF;AAEJ,CAAA;"}
@@ -2,8 +2,8 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
2
2
  import { useCallback, useRef, useState, useMemo, useEffect } from 'react';
3
3
  import { imageSrc } from '../../../../../../utils/asset.mjs';
4
4
  import '../../../../../CustomImage/index.mjs';
5
+ import '../../../../../HorizontalOptionSelect/index.mjs';
5
6
  import '../../../../../StyleableSvgImage/index.mjs';
6
- import '../../../../components/HorizontalOptionSelect/index.mjs';
7
7
  import '../../../../ComputeResourceCalculator/index.mjs';
8
8
  import { useResourceCalculatorTranslation } from '../../../../translations/useResourceCalculatorTranslation.mjs';
9
9
  import '../assets/empty-port.svg.mjs';
@@ -12,13 +12,13 @@ import '../assets/plus.svg.mjs';
12
12
  import '../assets/search.svg.mjs';
13
13
  import { Modal, CLASS_NAMES, ModalHeader, ModalSearchWrap, ModalSearchIconWrap, ModalSearchInput, ListItemsWrap, ListItem, ListItemImgWrap, ListItemTitleWrap, ListItemTitle, ListItemValueLabel, ListItemActionsWrap, ListItemCounter, ListItemCounterBtn, ListItemCounterValue, ListItemAddActionLabel } from './PoeConsumerSelectModal.styles.mjs';
14
14
  import EmptyPortIcon__default from "../../../../../../assets/empty-port.svg";
15
- import { HorizontalOptionSelect } from '../../../../components/HorizontalOptionSelect/HorizontalOptionSelect.mjs';
15
+ import { HorizontalOptionSelect } from '../../../../../HorizontalOptionSelect/HorizontalOptionSelect.mjs';
16
16
  import { isMessageFormatted } from '../../../../ComputeResourceCalculator/ComputeResourceCalculator.types.mjs';
17
17
  import { CustomImage } from '../../../../../CustomImage/CustomImage.mjs';
18
18
  import SearchIcon__default from "../../../../../../assets/search2.svg";
19
19
  import { StyleableSvgImage } from '../../../../../StyleableSvgImage/StyleableSvgImage.mjs';
20
- import MinusIcon__default from "../../../../../../assets/minus4.svg";
21
- import PlusIcon__default from "../../../../../../assets/plus5.svg";
20
+ import MinusIcon__default from "../../../../../../assets/minus5.svg";
21
+ import PlusIcon__default from "../../../../../../assets/plus6.svg";
22
22
  "use strict";
23
23
  const NoopPlaceholder = () => /* @__PURE__ */jsx(Fragment, {});
24
24
  const PoeConsumerSelectModal = ({
@@ -1 +1 @@
1
- {"version":3,"file":"PoeConsumerSelectModal.mjs","sources":["../../../../../../../src/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.tsx"],"sourcesContent":["import type { StaticImageData } from \"next/image\";\nimport { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\n\nimport { imageSrc } from \"../../../../../../utils/asset\";\nimport { CustomImage } from \"../../../../../CustomImage\";\nimport { StyleableSvgImage } from \"../../../../../StyleableSvgImage\";\nimport { HorizontalOptionSelect } from \"../../../../components/HorizontalOptionSelect\";\nimport type { ResourceCalculatorTranslationKey } from \"../../../../ComputeResourceCalculator\";\nimport { isMessageFormatted } from \"../../../../ComputeResourceCalculator\";\nimport { useResourceCalculatorTranslation } from \"../../../../translations/useResourceCalculatorTranslation\";\nimport EmptyPortIcon from \"../assets/empty-port.svg\";\nimport MinusIcon from \"../assets/minus.svg\";\nimport PlusIcon from \"../assets/plus.svg\";\nimport SearchIcon from \"../assets/search.svg\";\nimport * as S from \"./PoeConsumerSelectModal.styles\";\n\ntype PoeConsumerSelectModalProps = {\n isOpen: boolean;\n\n // Max count of devices that can be selected, this value is: (max ports - occupied ports).\n maxCount: number;\n\n onSelect: (poeConsumerId: string | null, count: number) => void;\n onClose: () => void;\n items: Array<{\n id: string | null;\n category: string;\n title: ResourceCalculatorTranslationKey;\n wattage: number;\n src: StaticImageData | string;\n }>;\n};\n\n// eslint-disable-next-line react/jsx-no-useless-fragment\nconst NoopPlaceholder = () => <></>;\n\nexport const PoeConsumerSelectModal = ({\n isOpen,\n maxCount,\n onSelect,\n items,\n onClose,\n}: PoeConsumerSelectModalProps) => {\n const { formatMessage } = useResourceCalculatorTranslation();\n\n // #############################################################################\n // Helpers\n // #############################################################################\n const stopPropagation = useCallback(\n (event: React.MouseEvent<HTMLElement>) => {\n event.stopPropagation();\n },\n [],\n );\n\n // #############################################################################\n // Search filter\n // #############################################################################\n const inputRef = useRef<HTMLInputElement>(null);\n\n const [searchQuery, setSearchQuery] = useState(\"\");\n\n const handleSearchQueryChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n setSearchQuery(e.target.value);\n },\n [setSearchQuery],\n );\n\n const handleFocusSearchInput = useCallback(() => {\n if (inputRef.current) {\n inputRef.current.focus();\n }\n }, []);\n\n const filterSearchItems = useCallback(\n (\n items: PoeConsumerSelectModalProps[\"items\"],\n ): PoeConsumerSelectModalProps[\"items\"] => {\n if (searchQuery.trim().length === 0) {\n return items;\n }\n\n return items.filter((item) => {\n return item.title.toLowerCase().includes(searchQuery.toLowerCase());\n });\n },\n [searchQuery],\n );\n\n // #############################################################################\n // Category filter\n // #############################################################################\n const itemCategories: string[] = useMemo(() => {\n const allCategories = items.map((item) => item.category);\n\n // Remove duplicates\n return [...new Set(allCategories)];\n }, [items]);\n\n const [currentItemCategory, setCurrentItemCategory] = useState<string | null>(\n itemCategories[0] || null,\n );\n\n const handleSelectCategory = useCallback(\n (id: string) => {\n setCurrentItemCategory(id);\n setSearchQuery(\"\");\n },\n [setCurrentItemCategory, setSearchQuery],\n );\n\n // #############################################################################\n // Filtered items for display\n // #############################################################################\n const displayedPoeConsumerItems = useMemo(() => {\n // Clone current items\n let itemsTmp = [...items];\n\n // Filter category\n itemsTmp = itemsTmp.filter((item) => item.category === currentItemCategory);\n\n // Filter search query\n itemsTmp = filterSearchItems(itemsTmp);\n\n // Add empty option first in items\n itemsTmp = [\n {\n id: null,\n category: \"\",\n title: \"poeConsumer.empty\",\n wattage: 0,\n src:\n typeof EmptyPortIcon === \"string\" ? EmptyPortIcon : EmptyPortIcon.src,\n },\n ...itemsTmp,\n ];\n\n // Result\n return itemsTmp;\n }, [items, currentItemCategory, filterSearchItems]);\n\n // #############################################################################\n // Counter - for selecting how many of the selected device to add\n // #############################################################################\n const [count, setCount] = useState<number>(1);\n\n // Reset count when modal opens\n useEffect(() => {\n if (isOpen) {\n setCount(1);\n }\n }, [setCount, isOpen]);\n\n const handleIncrementCount = useCallback(() => {\n if (count < maxCount) {\n setCount(count + 1);\n }\n }, [maxCount, count, setCount]);\n\n const handleDecrementCount = useCallback(() => {\n if (count > 1) {\n setCount(count - 1);\n }\n }, [count, setCount]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.Modal\n header={<NoopPlaceholder />}\n onRequestClose={onClose}\n contentClassName={S.CLASS_NAMES.modalContentClassname}\n isOpen={isOpen}\n lockScroll\n size=\"auto\"\n >\n <S.ModalHeader>\n <HorizontalOptionSelect\n activeId={currentItemCategory}\n items={itemCategories.map((category) => {\n // Translate label if possible\n const finalLabelKey = `category.${category}`;\n const finalLabel = isMessageFormatted(finalLabelKey)\n ? formatMessage(finalLabelKey)\n : category;\n\n return {\n label: finalLabel,\n id: category,\n onSelect: () => handleSelectCategory(category),\n };\n })}\n />\n </S.ModalHeader>\n\n <S.ModalSearchWrap onClick={handleFocusSearchInput}>\n <S.ModalSearchIconWrap>\n <CustomImage\n asset={{\n width: 20,\n height: 20,\n src: typeof SearchIcon === \"string\" ? SearchIcon : SearchIcon.src,\n alt: \"search\",\n }}\n sizes=\"100%\"\n />\n </S.ModalSearchIconWrap>\n\n <S.ModalSearchInput\n ref={inputRef}\n type=\"text\"\n value={searchQuery}\n onChange={handleSearchQueryChange}\n />\n </S.ModalSearchWrap>\n\n <S.ListItemsWrap>\n {displayedPoeConsumerItems.map((item, i) => (\n <S.ListItem\n key={`poe-consumer-item-${i}`}\n onClick={() => onSelect(item.id, count)}\n >\n <S.ListItemImgWrap>\n <CustomImage\n asset={{\n width: 30,\n height: 30,\n src: imageSrc(item.src),\n alt: item.title,\n }}\n sizes=\"100%\"\n />\n </S.ListItemImgWrap>\n\n <S.ListItemTitleWrap>\n <S.ListItemTitle>{formatMessage(item.title)}</S.ListItemTitle>\n <S.ListItemValueLabel>{`${item.wattage} W`}</S.ListItemValueLabel>\n </S.ListItemTitleWrap>\n\n {/* Dont render counter if empty option */}\n {item.id !== null && (\n <S.ListItemActionsWrap>\n <S.ListItemCounter onClick={stopPropagation}>\n <S.ListItemCounterBtn\n onClick={handleDecrementCount}\n disabled={count === 1}\n >\n <StyleableSvgImage src={MinusIcon} width={8} height={8} />\n </S.ListItemCounterBtn>\n\n <S.ListItemCounterValue>{count}</S.ListItemCounterValue>\n\n <S.ListItemCounterBtn\n onClick={handleIncrementCount}\n disabled={count === maxCount}\n >\n <StyleableSvgImage src={PlusIcon} width={8} height={8} />\n </S.ListItemCounterBtn>\n </S.ListItemCounter>\n\n <S.ListItemAddActionLabel>\n {formatMessage(\"add\")}\n </S.ListItemAddActionLabel>\n </S.ListItemActionsWrap>\n )}\n </S.ListItem>\n ))}\n </S.ListItemsWrap>\n </S.Modal>\n );\n};\n"],"names":["NoopPlaceholder","jsx","Fragment","PoeConsumerSelectModal","isOpen","maxCount","onSelect","items","onClose","formatMessage","useResourceCalculatorTranslation","stopPropagation","useCallback","event","inputRef","useRef","searchQuery","setSearchQuery","useState","handleSearchQueryChange","e","target","value","handleFocusSearchInput","current","focus","filterSearchItems","trim","length","filter","item","title","toLowerCase","includes","itemCategories","useMemo","allCategories","map","category","Set","currentItemCategory","setCurrentItemCategory","handleSelectCategory","id","displayedPoeConsumerItems","itemsTmp","wattage","src","EmptyPortIcon","count","setCount","useEffect","handleIncrementCount","handleDecrementCount","jsxs","S.Modal","header","onRequestClose","contentClassName","S.CLASS_NAMES","modalContentClassname","lockScroll","size","children","S.ModalHeader","HorizontalOptionSelect","activeId","finalLabelKey","finalLabel","isMessageFormatted","label","S.ModalSearchWrap","onClick","S.ModalSearchIconWrap","CustomImage","asset","width","height","SearchIcon","alt","sizes","S.ModalSearchInput","ref","type","onChange","S.ListItemsWrap","i","S.ListItem","S.ListItemImgWrap","imageSrc","S.ListItemTitleWrap","S.ListItemTitle","S.ListItemValueLabel","S.ListItemActionsWrap","S.ListItemCounter","S.ListItemCounterBtn","disabled","StyleableSvgImage","MinusIcon","S.ListItemCounterValue","PlusIcon","S.ListItemAddActionLabel"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAkCA,MAAMA,eAAA,GAAkBA,CAAA,KAAQ,eAAAC,GAAA,CAAAC,QAAA,EAAA,CAAA,CAAA,CAAA;AAEzB,MAAMC,yBAAyBA,CAAC;EACrCC,MAAA;EACAC,QAAA;EACAC,QAAA;EACAC,KAAA;EACAC;AACF,CAAmC,KAAA;EAC3B,MAAA;IAAEC;GAAc,GAAIC,gCAAiC,EAAA;EAK3D,MAAMC,eAAkB,GAAAC,WAAA,CACrBC,KAAyC,IAAA;IACxCA,KAAA,CAAMF,eAAgB,CAAA,CAAA;EACxB,CAAA,EACA,EAAC,CACH;EAKM,MAAAG,QAAA,GAAWC,OAAyB,IAAI,CAAA;EAE9C,MAAM,CAACC,WAAA,EAAaC,cAAc,CAAA,GAAIC,SAAS,EAAE,CAAA;EAEjD,MAAMC,uBAA0B,GAAAP,WAAA,CAC7BQ,CAA2C,IAAA;IAC3BH,cAAA,CAAAG,CAAA,CAAEC,OAAOC,KAAK,CAAA;EAC/B,CAAA,EACA,CAACL,cA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AAA;gBAAAlD,GAAA,EAAKqD;gBAAUxB,KAAO,EAAA,CAAA;gBAAGC,QAAQ;eAAG;YAAA,CACzD,CAAA;WACF,CAAA,EAAA,mBAECwB,sBAAE,EAAF;YACEtC,QAAA,EAAAtD,aAAA,CAAc,KAAK;UACtB,CAAA,CAAA;SACF,CAAA;MAAA,CAAA,uBA5CwB6E,CAAC,EA+C9B,CAAA;KACH,CAAA;EAAA,CAAA,CACF;AAEJ,CAAA;"}
1
+ {"version":3,"file":"PoeConsumerSelectModal.mjs","sources":["../../../../../../../src/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.tsx"],"sourcesContent":["import type { StaticImageData } from \"next/image\";\nimport { useCallback, useEffect, useMemo, useRef, useState } from \"react\";\n\nimport { imageSrc } from \"../../../../../../utils/asset\";\nimport { CustomImage } from \"../../../../../CustomImage\";\nimport { HorizontalOptionSelect } from \"../../../../../HorizontalOptionSelect\";\nimport { StyleableSvgImage } from \"../../../../../StyleableSvgImage\";\nimport type { ResourceCalculatorTranslationKey } from \"../../../../ComputeResourceCalculator\";\nimport { isMessageFormatted } from \"../../../../ComputeResourceCalculator\";\nimport { useResourceCalculatorTranslation } from \"../../../../translations/useResourceCalculatorTranslation\";\nimport EmptyPortIcon from \"../assets/empty-port.svg\";\nimport MinusIcon from \"../assets/minus.svg\";\nimport PlusIcon from \"../assets/plus.svg\";\nimport SearchIcon from \"../assets/search.svg\";\nimport * as S from \"./PoeConsumerSelectModal.styles\";\n\ntype PoeConsumerSelectModalProps = {\n isOpen: boolean;\n\n // Max count of devices that can be selected, this value is: (max ports - occupied ports).\n maxCount: number;\n\n onSelect: (poeConsumerId: string | null, count: number) => void;\n onClose: () => void;\n items: Array<{\n id: string | null;\n category: string;\n title: ResourceCalculatorTranslationKey;\n wattage: number;\n src: StaticImageData | string;\n }>;\n};\n\n// eslint-disable-next-line react/jsx-no-useless-fragment\nconst NoopPlaceholder = () => <></>;\n\nexport const PoeConsumerSelectModal = ({\n isOpen,\n maxCount,\n onSelect,\n items,\n onClose,\n}: PoeConsumerSelectModalProps) => {\n const { formatMessage } = useResourceCalculatorTranslation();\n\n // #############################################################################\n // Helpers\n // #############################################################################\n const stopPropagation = useCallback(\n (event: React.MouseEvent<HTMLElement>) => {\n event.stopPropagation();\n },\n [],\n );\n\n // #############################################################################\n // Search filter\n // #############################################################################\n const inputRef = useRef<HTMLInputElement>(null);\n\n const [searchQuery, setSearchQuery] = useState(\"\");\n\n const handleSearchQueryChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n setSearchQuery(e.target.value);\n },\n [setSearchQuery],\n );\n\n const handleFocusSearchInput = useCallback(() => {\n if (inputRef.current) {\n inputRef.current.focus();\n }\n }, []);\n\n const filterSearchItems = useCallback(\n (\n items: PoeConsumerSelectModalProps[\"items\"],\n ): PoeConsumerSelectModalProps[\"items\"] => {\n if (searchQuery.trim().length === 0) {\n return items;\n }\n\n return items.filter((item) => {\n return item.title.toLowerCase().includes(searchQuery.toLowerCase());\n });\n },\n [searchQuery],\n );\n\n // #############################################################################\n // Category filter\n // #############################################################################\n const itemCategories: string[] = useMemo(() => {\n const allCategories = items.map((item) => item.category);\n\n // Remove duplicates\n return [...new Set(allCategories)];\n }, [items]);\n\n const [currentItemCategory, setCurrentItemCategory] = useState<string | null>(\n itemCategories[0] || null,\n );\n\n const handleSelectCategory = useCallback(\n (id: string) => {\n setCurrentItemCategory(id);\n setSearchQuery(\"\");\n },\n [setCurrentItemCategory, setSearchQuery],\n );\n\n // #############################################################################\n // Filtered items for display\n // #############################################################################\n const displayedPoeConsumerItems = useMemo(() => {\n // Clone current items\n let itemsTmp = [...items];\n\n // Filter category\n itemsTmp = itemsTmp.filter((item) => item.category === currentItemCategory);\n\n // Filter search query\n itemsTmp = filterSearchItems(itemsTmp);\n\n // Add empty option first in items\n itemsTmp = [\n {\n id: null,\n category: \"\",\n title: \"poeConsumer.empty\",\n wattage: 0,\n src:\n typeof EmptyPortIcon === \"string\" ? EmptyPortIcon : EmptyPortIcon.src,\n },\n ...itemsTmp,\n ];\n\n // Result\n return itemsTmp;\n }, [items, currentItemCategory, filterSearchItems]);\n\n // #############################################################################\n // Counter - for selecting how many of the selected device to add\n // #############################################################################\n const [count, setCount] = useState<number>(1);\n\n // Reset count when modal opens\n useEffect(() => {\n if (isOpen) {\n setCount(1);\n }\n }, [setCount, isOpen]);\n\n const handleIncrementCount = useCallback(() => {\n if (count < maxCount) {\n setCount(count + 1);\n }\n }, [maxCount, count, setCount]);\n\n const handleDecrementCount = useCallback(() => {\n if (count > 1) {\n setCount(count - 1);\n }\n }, [count, setCount]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.Modal\n header={<NoopPlaceholder />}\n onRequestClose={onClose}\n contentClassName={S.CLASS_NAMES.modalContentClassname}\n isOpen={isOpen}\n lockScroll\n size=\"auto\"\n >\n <S.ModalHeader>\n <HorizontalOptionSelect\n activeId={currentItemCategory}\n items={itemCategories.map((category) => {\n // Translate label if possible\n const finalLabelKey = `category.${category}`;\n const finalLabel = isMessageFormatted(finalLabelKey)\n ? formatMessage(finalLabelKey)\n : category;\n\n return {\n label: finalLabel,\n id: category,\n onSelect: () => handleSelectCategory(category),\n };\n })}\n />\n </S.ModalHeader>\n\n <S.ModalSearchWrap onClick={handleFocusSearchInput}>\n <S.ModalSearchIconWrap>\n <CustomImage\n asset={{\n width: 20,\n height: 20,\n src: typeof SearchIcon === \"string\" ? SearchIcon : SearchIcon.src,\n alt: \"search\",\n }}\n sizes=\"100%\"\n />\n </S.ModalSearchIconWrap>\n\n <S.ModalSearchInput\n ref={inputRef}\n type=\"text\"\n value={searchQuery}\n onChange={handleSearchQueryChange}\n />\n </S.ModalSearchWrap>\n\n <S.ListItemsWrap>\n {displayedPoeConsumerItems.map((item, i) => (\n <S.ListItem\n key={`poe-consumer-item-${i}`}\n onClick={() => onSelect(item.id, count)}\n >\n <S.ListItemImgWrap>\n <CustomImage\n asset={{\n width: 30,\n height: 30,\n src: imageSrc(item.src),\n alt: item.title,\n }}\n sizes=\"100%\"\n />\n </S.ListItemImgWrap>\n\n <S.ListItemTitleWrap>\n <S.ListItemTitle>{formatMessage(item.title)}</S.ListItemTitle>\n <S.ListItemValueLabel>{`${item.wattage} W`}</S.ListItemValueLabel>\n </S.ListItemTitleWrap>\n\n {/* Dont render counter if empty option */}\n {item.id !== null && (\n <S.ListItemActionsWrap>\n <S.ListItemCounter onClick={stopPropagation}>\n <S.ListItemCounterBtn\n onClick={handleDecrementCount}\n disabled={count === 1}\n >\n <StyleableSvgImage src={MinusIcon} width={8} height={8} />\n </S.ListItemCounterBtn>\n\n <S.ListItemCounterValue>{count}</S.ListItemCounterValue>\n\n <S.ListItemCounterBtn\n onClick={handleIncrementCount}\n disabled={count === maxCount}\n >\n <StyleableSvgImage src={PlusIcon} width={8} height={8} />\n </S.ListItemCounterBtn>\n </S.ListItemCounter>\n\n <S.ListItemAddActionLabel>\n {formatMessage(\"add\")}\n </S.ListItemAddActionLabel>\n </S.ListItemActionsWrap>\n )}\n </S.ListItem>\n ))}\n </S.ListItemsWrap>\n </S.Modal>\n );\n};\n"],"names":["NoopPlaceholder","jsx","Fragment","PoeConsumerSelectModal","isOpen","maxCount","onSelect","items","onClose","formatMessage","useResourceCalculatorTranslation","stopPropagation","useCallback","event","inputRef","useRef","searchQuery","setSearchQuery","useState","handleSearchQueryChange","e","target","value","handleFocusSearchInput","current","focus","filterSearchItems","trim","length","filter","item","title","toLowerCase","includes","itemCategories","useMemo","allCategories","map","category","Set","currentItemCategory","setCurrentItemCategory","handleSelectCategory","id","displayedPoeConsumerItems","itemsTmp","wattage","src","EmptyPortIcon","count","setCount","useEffect","handleIncrementCount","handleDecrementCount","jsxs","S.Modal","header","onRequestClose","contentClassName","S.CLASS_NAMES","modalContentClassname","lockScroll","size","children","S.ModalHeader","HorizontalOptionSelect","activeId","finalLabelKey","finalLabel","isMessageFormatted","label","S.ModalSearchWrap","onClick","S.ModalSearchIconWrap","CustomImage","asset","width","height","SearchIcon","alt","sizes","S.ModalSearchInput","ref","type","onChange","S.ListItemsWrap","i","S.ListItem","S.ListItemImgWrap","imageSrc","S.ListItemTitleWrap","S.ListItemTitle","S.ListItemValueLabel","S.ListItemActionsWrap","S.ListItemCounter","S.ListItemCounterBtn","disabled","StyleableSvgImage","MinusIcon","S.ListItemCounterValue","PlusIcon","S.ListItemAddActionLabel"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAkCA,MAAMA,eAAA,GAAkBA,CAAA,KAAQ,eAAAC,GAAA,CAAAC,QAAA,EAAA,CAAA,CAAA,CAAA;AAEzB,MAAMC,yBAAyBA,CAAC;EACrCC,MAAA;EACAC,QAAA;EACAC,QAAA;EACAC,KAAA;EACAC;AACF,CAAmC,KAAA;EAC3B,MAAA;IAAEC;GAAc,GAAIC,gCAAiC,EAAA;EAK3D,MAAMC,eAAkB,GAAAC,WAAA,CACrBC,KAAyC,IAAA;IACxCA,KAAA,CAAMF,eAAgB,CAAA,CAAA;EACxB,CAAA,EACA,EAAC,CACH;EAKM,MAAAG,QAAA,GAAWC,OAAyB,IAAI,CAAA;EAE9C,MAAM,CAACC,WAAA,EAAaC,cAAc,CAAA,GAAIC,SAAS,EAAE,CAAA;EAEjD,MAAMC,uBAA0B,GAAAP,WAAA,CAC7BQ,CAA2C,IAAA;IAC3BH,cAAA,CAAAG,CAAA,CAAEC,OAAOC,KAAK,CAAA;EAC/B,CAAA,EACA,CAACL,cAAc,CAAA,CACjB;EAEM,MAAAM,sBAAA,GAAyBX,YAAY,MAAM;IAC/C,IAAIE,SAASU,OAAS,EAAA;MACpBV,QAAA,CAASU,QAAQC,KAAM,EAAA;IACzB;EACF,CAAA,EAAG,EAAE,CAAA;EAEL,MAAMC,iBAAoB,GAAAd,WAAA,CAEtBL,MACyC,IAAA;IACzC,IAAIS,WAAY,CAAAW,IAAA,EAAO,CAAAC,MAAA,KAAW,CAAG,EAAA;MAC5BrB,OAAAA,MA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 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var MinusIcon = require("../../../../../../assets/minus4.svg");
6
+ var MinusIcon = require("../../../../../../assets/minus5.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -1,3 +1,3 @@
1
- export * from "../../../../../../assets/minus4.svg";
2
- export { default } from "../../../../../../assets/minus4.svg";
1
+ export * from "../../../../../../assets/minus5.svg";
2
+ export { default } from "../../../../../../assets/minus5.svg";
3
3
  //# sourceMappingURL=minus.svg.mjs.map
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var PlusIcon = require("../../../../../../assets/plus5.svg");
6
+ var PlusIcon = require("../../../../../../assets/plus6.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -1,3 +1,3 @@
1
- export * from "../../../../../../assets/plus5.svg";
2
- export { default } from "../../../../../../assets/plus5.svg";
1
+ export * from "../../../../../../assets/plus6.svg";
2
+ export { default } from "../../../../../../assets/plus6.svg";
3
3
  //# sourceMappingURL=plus.svg.mjs.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
- var react = require('react');
4
+ var React = require('react');
5
5
  require('../../../../CustomImage/index.js');
6
6
  var useResourceCalculatorTranslation = require('../../../translations/useResourceCalculatorTranslation.js');
7
7
  require('./assets/poe.svg.js');
@@ -28,7 +28,7 @@ const RecommendedPoeSwitches = ({
28
28
  const {
29
29
  formatMessage
30
30
  } = useResourceCalculatorTranslation.useResourceCalculatorTranslation();
31
- const showTotalValues = react.useMemo(() => {
31
+ const showTotalValues = React.useMemo(() => {
32
32
  return totalConsumerPorts > 0;
33
33
  }, [totalConsumerPorts]);
34
34
  return /* @__PURE__ */jsxRuntime.jsxs(RecommendedPoeSwitches_styles.RecommendedDevices, {
@@ -1,10 +1,10 @@
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
- require('./components/index.js');
7
+ var HorizontalOptionSelect = require('../HorizontalOptionSelect/HorizontalOptionSelect.js');
8
8
  require('./ComputeResourceCalculator/index.js');
9
9
  require('./PoeCalculator/index.js');
10
10
  var ResourceCalculator_constants = require('./ResourceCalculator.constants.js');
@@ -13,7 +13,6 @@ var ResourceCalculator_types = require('./ResourceCalculator.types.js');
13
13
  var useResourceCalculatorTranslation = require('./translations/useResourceCalculatorTranslation.js');
14
14
  var PoeCalculator = require('./PoeCalculator/PoeCalculator.js');
15
15
  var ComputeResourceCalculator = require('./ComputeResourceCalculator/ComputeResourceCalculator.js');
16
- var HorizontalOptionSelect = require('./components/HorizontalOptionSelect/HorizontalOptionSelect.js');
17
16
  "use strict";
18
17
  const ResourceCalculatorV1 = ({
19
18
  enabledCalculatorIds,
@@ -23,14 +22,14 @@ const ResourceCalculatorV1 = ({
23
22
  formatMessage
24
23
  } = useResourceCalculatorTranslation.useResourceCalculatorTranslation();
25
24
  const isMobile = reactUse.useMedia(layout.BREAKPOINTS.TABLET_AND_DOWN, false);
26
- const [activeCalculatorId, setActiveCalculatorId] = react.useState(enabledCalculatorIds[0]);
27
- const enabledCalculators = react.useMemo(() => {
25
+ const [activeCalculatorId, setActiveCalculatorId] = React.useState(enabledCalculatorIds[0]);
26
+ const enabledCalculators = React.useMemo(() => {
28
27
  return Object.entries(ResourceCalculator_constants.RESOURCE_CALCULATORS).filter(([key]) => enabledCalculatorIds.includes(key)).map(([, value]) => value);
29
28
  }, [enabledCalculatorIds]);
30
- const handleCalculatorSelect = react.useCallback(calculatorId => {
29
+ const handleCalculatorSelect = React.useCallback(calculatorId => {
31
30
  setActiveCalculatorId(calculatorId);
32
31
  }, [setActiveCalculatorId]);
33
- const activeCalculatorLayout = react.useMemo(() => {
32
+ const activeCalculatorLayout = React.useMemo(() => {
34
33
  switch (activeCalculatorId) {
35
34
  case ResourceCalculator_types.CalculatorId.ComputeResourceCalculator:
36
35
  return /* @__PURE__ */jsxRuntime.jsx(ComputeResourceCalculator.ComputeResourceCalculator, {
@@ -40,7 +39,7 @@ const ResourceCalculatorV1 = ({
40
39
  return /* @__PURE__ */jsxRuntime.jsx(PoeCalculator.PoeCalculator, {});
41
40
  }
42
41
  }, [activeCalculatorId, defaultActiveDeviceId]);
43
- const calculatorSelectProps = react.useMemo(() => {
42
+ const calculatorSelectProps = React.useMemo(() => {
44
43
  return {
45
44
  activeId: activeCalculatorId.toString(),
46
45
  items: enabledCalculators.map(calculator => ({