@ubnt/store.core 9.22.1 → 9.23.0-alpha.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 (951) hide show
  1. package/CHANGELOG.md +317 -6
  2. package/lib/_virtual/_virtual_multi-entry.js +61 -42
  3. package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
  4. package/lib/_virtual/_virtual_multi-entry.mjs +48 -40
  5. package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
  6. package/lib/apis/smartcat.d.ts +1 -10
  7. package/lib/apis/smartcat.js +3 -46
  8. package/lib/apis/smartcat.js.map +1 -1
  9. package/lib/apis/smartcat.mjs +5 -47
  10. package/lib/apis/smartcat.mjs.map +1 -1
  11. package/lib/assets/aggregation.png +0 -0
  12. package/lib/assets/bullet.png +0 -0
  13. package/lib/assets/camera-special-devices.png +0 -0
  14. package/lib/assets/cloud-gateway-overview.png +0 -0
  15. package/lib/assets/compact-switching.png +0 -0
  16. package/lib/assets/compact.png +0 -0
  17. package/lib/assets/consolidatedSpecialDevices.svg +5 -0
  18. package/lib/assets/digital-signage.png +0 -0
  19. package/lib/assets/dome-turret.png +0 -0
  20. package/lib/assets/door-access.png +0 -0
  21. package/lib/assets/doorAccess.svg +5 -0
  22. package/lib/assets/education.jpg +0 -0
  23. package/lib/assets/efg.png +0 -0
  24. package/lib/assets/enterprise-scale.png +0 -0
  25. package/lib/assets/enterprise.jpg +0 -0
  26. package/lib/assets/ev-charging.png +0 -0
  27. package/lib/assets/flagship.jpg +0 -0
  28. package/lib/assets/flexible-outdoor.jpg +0 -0
  29. package/lib/assets/gbe-1u-2.5and10.png +0 -0
  30. package/lib/assets/gbe-1u.png +0 -0
  31. package/lib/assets/hospitality.jpg +0 -0
  32. package/lib/assets/how-it-works.jpg +0 -0
  33. package/lib/assets/icon-location-pin.svg +5 -0
  34. package/lib/{components/MobileModal/assets → assets/icons}/arrowDown.svg.js +1 -1
  35. package/lib/assets/icons/arrowDown.svg.mjs +3 -0
  36. package/lib/assets/icons/menu/icon-location-pin.svg.js +27 -0
  37. package/lib/assets/icons/menu/icon-location-pin.svg.js.map +1 -0
  38. package/lib/assets/icons/menu/icon-location-pin.svg.mjs +3 -0
  39. package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +1 -0
  40. package/lib/assets/icons/wizard/plus.svg.js +1 -1
  41. package/lib/assets/icons/wizard/plus.svg.mjs +2 -2
  42. package/lib/assets/icons/zoomOut.svg.js +27 -0
  43. package/lib/assets/icons/zoomOut.svg.js.map +1 -0
  44. package/lib/assets/icons/zoomOut.svg.mjs +3 -0
  45. package/lib/assets/icons/zoomOut.svg.mjs.map +1 -0
  46. package/lib/assets/industrial.jpg +0 -0
  47. package/lib/assets/industrial2.jpg +0 -0
  48. package/lib/assets/large-scale.png +0 -0
  49. package/lib/assets/managed-voip.png +0 -0
  50. package/lib/assets/mega-capacity.jpg +0 -0
  51. package/lib/assets/minus4.svg +8 -8
  52. package/lib/assets/minus5.svg +8 -8
  53. package/lib/assets/mobile-routing.png +0 -0
  54. package/lib/assets/nextai-camera.jpg +0 -0
  55. package/lib/assets/nextai-cyber.jpg +0 -0
  56. package/lib/assets/overview.svg +3 -0
  57. package/lib/assets/plus.svg +22 -4
  58. package/lib/assets/plus2.svg +4 -22
  59. package/lib/assets/plus5.svg +9 -9
  60. package/lib/assets/plus6.svg +9 -9
  61. package/lib/assets/premium-audio.png +0 -0
  62. package/lib/assets/ptz.png +0 -0
  63. package/lib/assets/retail.jpg +0 -0
  64. package/lib/assets/sd-wan-sase.jpg +0 -0
  65. package/lib/assets/security-overview.png +0 -0
  66. package/lib/assets/site-manager.jpg +0 -0
  67. package/lib/assets/stadium.jpg +0 -0
  68. package/lib/assets/switching-overview.png +0 -0
  69. package/lib/assets/tco-calculator.jpg +0 -0
  70. package/lib/assets/ucg-max.png +0 -0
  71. package/lib/assets/udmProMax.jpg +0 -0
  72. package/lib/assets/udmProMax2.jpg +0 -0
  73. package/lib/assets/unifi-drive.png +0 -0
  74. package/lib/assets/video-recorders.png +0 -0
  75. package/lib/assets/wall.jpg +0 -0
  76. package/lib/assets/wifi-bridging.png +0 -0
  77. package/lib/assets/wifi-flagship.png +0 -0
  78. package/lib/assets/wifi-integrated.png +0 -0
  79. package/lib/assets/wifi-mega-capacity.png +0 -0
  80. package/lib/assets/wifi-outdoor.png +0 -0
  81. package/lib/assets/wifi-overview.png +0 -0
  82. package/lib/assets/wifi-wall.png +0 -0
  83. package/lib/assets/zoomOut.svg +3 -0
  84. package/lib/components/Button/CartButton.js +13 -7
  85. package/lib/components/Button/CartButton.js.map +1 -1
  86. package/lib/components/Button/CartButton.mjs +13 -7
  87. package/lib/components/Button/CartButton.mjs.map +1 -1
  88. package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +1 -1
  89. package/lib/components/CategoryTabs/CategoryTabs.styles.js +2 -3
  90. package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
  91. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +2 -3
  92. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
  93. package/lib/components/Compare/Compare.styles.d.ts +5 -5
  94. package/lib/components/Container/Container.d.ts +1 -1
  95. package/lib/components/Container/Container.js +4 -3
  96. package/lib/components/Container/Container.js.map +1 -1
  97. package/lib/components/Container/Container.mjs +5 -4
  98. package/lib/components/Container/Container.mjs.map +1 -1
  99. package/lib/components/Explore/ExploreData.js +3 -3
  100. package/lib/components/Explore/ExploreData.js.map +1 -1
  101. package/lib/components/Explore/ExploreData.mjs +3 -3
  102. package/lib/components/Explore/ExploreData.mjs.map +1 -1
  103. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.js +1 -1
  104. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.mjs +1 -1
  105. package/lib/components/FeaturesSection_deprecated/assets/plus.svg.js +1 -1
  106. package/lib/components/FeaturesSection_deprecated/assets/plus.svg.mjs +2 -2
  107. package/lib/components/Header/AccountMenu/AccountMenu.js +14 -4
  108. package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
  109. package/lib/components/Header/AccountMenu/AccountMenu.mjs +15 -5
  110. package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
  111. package/lib/components/Header/AccountMenu/AccountMenu.styles.d.ts +3 -3
  112. package/lib/components/Header/Header.js +19 -18
  113. package/lib/components/Header/Header.js.map +1 -1
  114. package/lib/components/Header/Header.mjs +16 -15
  115. package/lib/components/Header/Header.mjs.map +1 -1
  116. package/lib/components/Header/Header.styles.d.ts +7 -12
  117. package/lib/components/Header/Header.styles.js +10 -32
  118. package/lib/components/Header/Header.styles.js.map +1 -1
  119. package/lib/components/Header/Header.styles.mjs +10 -31
  120. package/lib/components/Header/Header.styles.mjs.map +1 -1
  121. package/lib/components/Header/Header.types.d.ts +25 -4
  122. package/lib/components/Header/Header.types.js +2 -1
  123. package/lib/components/Header/Header.types.js.map +1 -1
  124. package/lib/components/Header/Header.types.mjs +2 -1
  125. package/lib/components/Header/Header.types.mjs.map +1 -1
  126. package/lib/components/Header/IsolatedHeader.d.ts +1 -0
  127. package/lib/components/Header/IsolatedHeader.js +47 -47
  128. package/lib/components/Header/IsolatedHeader.js.map +1 -1
  129. package/lib/components/Header/IsolatedHeader.mjs +49 -48
  130. package/lib/components/Header/IsolatedHeader.mjs.map +1 -1
  131. package/lib/components/Header/LogoIcon/LogoIcon.d.ts +7 -0
  132. package/lib/components/Header/LogoIcon/LogoIcon.js +46 -0
  133. package/lib/components/Header/LogoIcon/LogoIcon.js.map +1 -0
  134. package/lib/components/Header/LogoIcon/LogoIcon.mjs +36 -0
  135. package/lib/components/Header/LogoIcon/LogoIcon.mjs.map +1 -0
  136. package/lib/components/Header/LogoIcon/index.d.ts +1 -0
  137. package/lib/components/Header/LogoIcon/index.js +6 -0
  138. package/lib/components/{ResourceCalculatorV1/components → Header/LogoIcon}/index.js.map +1 -1
  139. package/lib/components/{ResourceCalculatorV1/components → Header/LogoIcon}/index.mjs +1 -1
  140. package/lib/components/Header/MenuItem/MenuItem.styles.d.ts +1 -1
  141. package/lib/components/Header/MenuItem/MenuItem.styles.js +3 -3
  142. package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
  143. package/lib/components/Header/MenuItem/MenuItem.styles.mjs +3 -3
  144. package/lib/components/Header/MenuItem/MenuItem.styles.mjs.map +1 -1
  145. package/lib/components/Header/MenuItem/MenuItem.types.d.ts +1 -0
  146. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
  147. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js +7 -5
  148. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js.map +1 -1
  149. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.mjs +7 -5
  150. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.mjs.map +1 -1
  151. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +1 -1
  152. package/lib/components/Header/Navigation/ProMenu/ProMenu.d.ts +2 -0
  153. package/lib/components/Header/Navigation/ProMenu/ProMenu.js +103 -0
  154. package/lib/components/Header/Navigation/ProMenu/ProMenu.js.map +1 -0
  155. package/lib/components/Header/Navigation/ProMenu/ProMenu.mjs +81 -0
  156. package/lib/components/Header/Navigation/ProMenu/ProMenu.mjs.map +1 -0
  157. package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.d.ts +23 -0
  158. package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.js +121 -0
  159. package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.js.map +1 -0
  160. package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.mjs +106 -0
  161. package/lib/components/Header/Navigation/ProMenu/ProMenu.styles.mjs.map +1 -0
  162. package/lib/components/Header/Navigation/ProMenu/ProMenu.types.d.ts +12 -0
  163. package/lib/components/Header/Navigation/ProMenu/index.d.ts +1 -0
  164. package/lib/components/Header/Navigation/ProMenu/index.js +6 -0
  165. package/lib/components/Header/Navigation/ProMenu/index.js.map +1 -0
  166. package/lib/components/Header/Navigation/ProMenu/index.mjs +3 -0
  167. package/lib/components/Header/Navigation/ProMenu/index.mjs.map +1 -0
  168. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
  169. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +101 -101
  170. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
  171. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +101 -101
  172. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
  173. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +9 -0
  174. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +15 -1
  175. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
  176. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +13 -2
  177. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
  178. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +10 -4
  179. package/lib/components/Header/ProHeader/ProHeader.d.ts +4 -4
  180. package/lib/components/Header/ProHeader/ProHeader.js +224 -130
  181. package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
  182. package/lib/components/Header/ProHeader/ProHeader.mjs +226 -131
  183. package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
  184. package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +9 -4
  185. package/lib/components/Header/ProHeader/ProHeader.styles.js +68 -20
  186. package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
  187. package/lib/components/Header/ProHeader/ProHeader.styles.mjs +64 -21
  188. package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
  189. package/lib/components/Header/translations/ar.json.js +4 -1
  190. package/lib/components/Header/translations/ar.json.js.map +1 -1
  191. package/lib/components/Header/translations/ar.json.mjs +4 -2
  192. package/lib/components/Header/translations/ar.json.mjs.map +1 -1
  193. package/lib/components/Header/translations/de.json.js +4 -1
  194. package/lib/components/Header/translations/de.json.js.map +1 -1
  195. package/lib/components/Header/translations/de.json.mjs +4 -2
  196. package/lib/components/Header/translations/de.json.mjs.map +1 -1
  197. package/lib/components/Header/translations/el.json.js +4 -1
  198. package/lib/components/Header/translations/el.json.js.map +1 -1
  199. package/lib/components/Header/translations/el.json.mjs +4 -2
  200. package/lib/components/Header/translations/el.json.mjs.map +1 -1
  201. package/lib/components/Header/translations/en.json.js +4 -1
  202. package/lib/components/Header/translations/en.json.js.map +1 -1
  203. package/lib/components/Header/translations/en.json.mjs +4 -2
  204. package/lib/components/Header/translations/en.json.mjs.map +1 -1
  205. package/lib/components/Header/translations/es.json.js +4 -1
  206. package/lib/components/Header/translations/es.json.js.map +1 -1
  207. package/lib/components/Header/translations/es.json.mjs +4 -2
  208. package/lib/components/Header/translations/es.json.mjs.map +1 -1
  209. package/lib/components/Header/translations/fr.json.js +4 -1
  210. package/lib/components/Header/translations/fr.json.js.map +1 -1
  211. package/lib/components/Header/translations/fr.json.mjs +4 -2
  212. package/lib/components/Header/translations/fr.json.mjs.map +1 -1
  213. package/lib/components/Header/translations/it.json.js +4 -1
  214. package/lib/components/Header/translations/it.json.js.map +1 -1
  215. package/lib/components/Header/translations/it.json.mjs +4 -2
  216. package/lib/components/Header/translations/it.json.mjs.map +1 -1
  217. package/lib/components/Header/translations/ja.json.js +4 -1
  218. package/lib/components/Header/translations/ja.json.js.map +1 -1
  219. package/lib/components/Header/translations/ja.json.mjs +4 -2
  220. package/lib/components/Header/translations/ja.json.mjs.map +1 -1
  221. package/lib/components/Header/translations/pt-BR.json.js +4 -1
  222. package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
  223. package/lib/components/Header/translations/pt-BR.json.mjs +4 -2
  224. package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
  225. package/lib/components/Header/translations/zh-Hans.json.js +4 -1
  226. package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
  227. package/lib/components/Header/translations/zh-Hans.json.mjs +4 -2
  228. package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
  229. package/lib/components/Header/translations/zh-Hant-TW.json.js +4 -1
  230. package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
  231. package/lib/components/Header/translations/zh-Hant-TW.json.mjs +4 -2
  232. package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
  233. package/lib/components/Hero/Hero.styles.d.ts +2 -2
  234. package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +1 -1
  235. package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.d.ts +1 -1
  236. package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.js +3 -1
  237. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +1 -0
  238. package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.mjs +3 -1
  239. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +1 -0
  240. package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.styles.d.ts +1 -0
  241. package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.styles.js +10 -7
  242. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +1 -0
  243. package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.styles.mjs +10 -7
  244. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +1 -0
  245. package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/HorizontalOptionSelect.types.d.ts +1 -0
  246. package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +2 -2
  247. package/lib/components/InputSelect/InputSelect.styles.d.ts +1 -1
  248. package/lib/components/LandingPage/Cards/Cards.js +4 -4
  249. package/lib/components/LandingPage/Cards/Cards.js.map +1 -1
  250. package/lib/components/LandingPage/Cards/Cards.mjs +3 -3
  251. package/lib/components/LandingPage/Cards/Cards.mjs.map +1 -1
  252. package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +1 -1
  253. package/lib/components/LayoutRenderer/LayoutRenderer.styles.d.ts +1 -1
  254. package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +3 -3
  255. package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +3 -3
  256. package/lib/components/MicrositeHeader/MicrositeHeader.d.ts +2 -0
  257. package/lib/components/MicrositeHeader/MicrositeHeader.js +28 -0
  258. package/lib/components/MicrositeHeader/MicrositeHeader.js.map +1 -0
  259. package/lib/components/MicrositeHeader/MicrositeHeader.mjs +26 -0
  260. package/lib/components/MicrositeHeader/MicrositeHeader.mjs.map +1 -0
  261. package/lib/components/MicrositeHeader/MicrositeHeader.styles.d.ts +2 -0
  262. package/lib/components/MicrositeHeader/MicrositeHeader.types.d.ts +5 -0
  263. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.d.ts +2 -0
  264. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.js +139 -0
  265. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.js.map +1 -0
  266. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.mjs +130 -0
  267. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.mjs.map +1 -0
  268. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.d.ts +59 -0
  269. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.js +424 -0
  270. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.js.map +1 -0
  271. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.mjs +389 -0
  272. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.mjs.map +1 -0
  273. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.types.d.ts +21 -0
  274. package/lib/components/MicrositeHeader/components/DropdownMenu/index.d.ts +1 -0
  275. package/lib/components/MicrositeHeader/components/DropdownMenu/index.js +6 -0
  276. package/lib/components/MicrositeHeader/components/DropdownMenu/index.js.map +1 -0
  277. package/lib/components/MicrositeHeader/components/DropdownMenu/index.mjs +3 -0
  278. package/lib/components/MicrositeHeader/components/DropdownMenu/index.mjs.map +1 -0
  279. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.d.ts +2 -0
  280. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.d.ts +22 -0
  281. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.js +148 -0
  282. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.js.map +1 -0
  283. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.mjs +126 -0
  284. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.mjs.map +1 -0
  285. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.types.d.ts +10 -0
  286. package/lib/components/MicrositeHeader/components/FirstLevelMenu/index.d.ts +1 -0
  287. package/lib/components/MicrositeHeader/components/Navigation/Navigation.d.ts +7 -0
  288. package/lib/components/MicrositeHeader/components/Navigation/Navigation.js +240 -0
  289. package/lib/components/MicrositeHeader/components/Navigation/Navigation.js.map +1 -0
  290. package/lib/components/MicrositeHeader/components/Navigation/Navigation.mjs +229 -0
  291. package/lib/components/MicrositeHeader/components/Navigation/Navigation.mjs.map +1 -0
  292. package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.d.ts +36 -0
  293. package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.js +233 -0
  294. package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.js.map +1 -0
  295. package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.mjs +211 -0
  296. package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.mjs.map +1 -0
  297. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.d.ts +8 -0
  298. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.js +47 -0
  299. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.js.map +1 -0
  300. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.mjs +39 -0
  301. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.mjs.map +1 -0
  302. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.d.ts +1 -0
  303. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.js +6 -0
  304. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.js.map +1 -0
  305. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.mjs +3 -0
  306. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.mjs.map +1 -0
  307. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.d.ts +5 -0
  308. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.js +74 -0
  309. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.js.map +1 -0
  310. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.mjs +72 -0
  311. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.mjs.map +1 -0
  312. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.d.ts +30 -0
  313. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.js +195 -0
  314. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.js.map +1 -0
  315. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.mjs +173 -0
  316. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.mjs.map +1 -0
  317. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.d.ts +1 -0
  318. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.js +6 -0
  319. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.js.map +1 -0
  320. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.mjs +3 -0
  321. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.mjs.map +1 -0
  322. package/lib/components/MicrositeHeader/components/Navigation/index.d.ts +1 -0
  323. package/lib/components/MicrositeHeader/components/Navigation/index.js +7 -0
  324. package/lib/components/MicrositeHeader/components/Navigation/index.js.map +1 -0
  325. package/lib/components/MicrositeHeader/components/Navigation/index.mjs +3 -0
  326. package/lib/components/MicrositeHeader/components/Navigation/index.mjs.map +1 -0
  327. package/lib/components/MicrositeHeader/components/SecondLevelMenu/SecondLevelMenu.d.ts +2 -0
  328. package/lib/components/MicrositeHeader/components/SecondLevelMenu/SecondLevelMenu.styles.d.ts +13 -0
  329. package/lib/components/MicrositeHeader/components/SecondLevelMenu/SecondLevelMenu.types.d.ts +11 -0
  330. package/lib/components/MicrositeHeader/components/SecondLevelMenu/index.d.ts +1 -0
  331. package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.d.ts +17 -0
  332. package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.styles.d.ts +13 -0
  333. package/lib/components/MicrositeHeader/components/SiteMapColumns/index.d.ts +1 -0
  334. package/lib/components/MicrositeHeader/index.d.ts +1 -0
  335. package/lib/components/MicrositeHeader/index.js +6 -0
  336. package/lib/components/MicrositeHeader/index.js.map +1 -0
  337. package/lib/components/MicrositeHeader/index.mjs +3 -0
  338. package/lib/components/MicrositeHeader/index.mjs.map +1 -0
  339. package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +1 -1
  340. package/lib/components/MobileModal/MobileModal.js +1 -1
  341. package/lib/components/MobileModal/MobileModal.js.map +1 -1
  342. package/lib/components/MobileModal/MobileModal.mjs +1 -1
  343. package/lib/components/MobileModal/MobileModal.mjs.map +1 -1
  344. package/lib/components/ModelCompareV3/ModelCompareV3.js +2 -15
  345. package/lib/components/ModelCompareV3/ModelCompareV3.js.map +1 -1
  346. package/lib/components/ModelCompareV3/ModelCompareV3.mjs +2 -15
  347. package/lib/components/ModelCompareV3/ModelCompareV3.mjs.map +1 -1
  348. package/lib/components/ModelCompareV3/ModelCompareV3.types.d.ts +4 -1
  349. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
  350. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
  351. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
  352. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
  353. package/lib/components/ModelCompareV3/assets/Switching/industrial.jpg.js +1 -1
  354. package/lib/components/ModelCompareV3/assets/Switching/industrial.jpg.mjs +2 -2
  355. package/lib/{assets/icons/menu/icon-globe.svg.js → components/ModelCompareV3/assets/WiFi/flagship.jpg.js} +6 -6
  356. package/lib/components/ModelCompareV3/assets/WiFi/flagship.jpg.js.map +1 -0
  357. package/lib/components/ModelCompareV3/assets/WiFi/flagship.jpg.mjs +3 -0
  358. package/lib/components/ModelCompareV3/assets/WiFi/flagship.jpg.mjs.map +1 -0
  359. package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.js +27 -0
  360. package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.js.map +1 -0
  361. package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.mjs +3 -0
  362. package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.mjs.map +1 -0
  363. package/lib/components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.js +27 -0
  364. package/lib/components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.js.map +1 -0
  365. package/lib/components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.mjs +3 -0
  366. package/lib/components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.mjs.map +1 -0
  367. package/lib/components/ModelCompareV3/assets/WiFi/wall.jpg.js +27 -0
  368. package/lib/components/ModelCompareV3/assets/WiFi/wall.jpg.js.map +1 -0
  369. package/lib/components/ModelCompareV3/assets/WiFi/wall.jpg.mjs +3 -0
  370. package/lib/components/ModelCompareV3/assets/WiFi/wall.jpg.mjs.map +1 -0
  371. package/lib/components/ModelCompareV3/data/CloudGateways.js +3 -3
  372. package/lib/components/ModelCompareV3/data/CloudGateways.mjs +2 -2
  373. package/lib/components/ModelCompareV3/data/VideoRecorders.js +1 -2
  374. package/lib/components/ModelCompareV3/data/VideoRecorders.js.map +1 -1
  375. package/lib/components/ModelCompareV3/data/VideoRecorders.mjs +1 -2
  376. package/lib/components/ModelCompareV3/data/VideoRecorders.mjs.map +1 -1
  377. package/lib/components/ModelCompareV3/data/WiFi.d.ts +2 -0
  378. package/lib/components/ModelCompareV3/data/WiFi.js +23 -0
  379. package/lib/components/ModelCompareV3/data/WiFi.js.map +1 -0
  380. package/lib/components/ModelCompareV3/data/WiFi.mjs +21 -0
  381. package/lib/components/ModelCompareV3/data/WiFi.mjs.map +1 -0
  382. package/lib/components/ModelCompareV3/data/index.d.ts +18 -17
  383. package/lib/components/ModelCompareV3/data/index.js +37 -34
  384. package/lib/components/ModelCompareV3/data/index.js.map +1 -1
  385. package/lib/components/ModelCompareV3/data/index.mjs +37 -34
  386. package/lib/components/ModelCompareV3/data/index.mjs.map +1 -1
  387. package/lib/components/ModelCompareV3/data/products/envr.js +2 -12
  388. package/lib/components/ModelCompareV3/data/products/envr.js.map +1 -1
  389. package/lib/components/ModelCompareV3/data/products/envr.mjs +2 -12
  390. package/lib/components/ModelCompareV3/data/products/envr.mjs.map +1 -1
  391. package/lib/components/ModelCompareV3/data/products/express.js +2 -2
  392. package/lib/components/ModelCompareV3/data/products/express.js.map +1 -1
  393. package/lib/components/ModelCompareV3/data/products/express.mjs +3 -3
  394. package/lib/components/ModelCompareV3/data/products/express.mjs.map +1 -1
  395. package/lib/components/ModelCompareV3/data/products/industrial.js +1 -1
  396. package/lib/components/ModelCompareV3/data/products/industrial.mjs +1 -1
  397. package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
  398. package/lib/components/ModelCompareV3/data/products/ucgMax.js.map +1 -1
  399. package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
  400. package/lib/components/ModelCompareV3/data/products/ucgMax.mjs.map +1 -1
  401. package/lib/components/ModelCompareV3/data/products/ucgUltra.js +2 -2
  402. package/lib/components/ModelCompareV3/data/products/ucgUltra.js.map +1 -1
  403. package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +3 -3
  404. package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs.map +1 -1
  405. package/lib/components/ModelCompareV3/data/products/udmPro.js +2 -2
  406. package/lib/components/ModelCompareV3/data/products/udmPro.js.map +1 -1
  407. package/lib/components/ModelCompareV3/data/products/udmPro.mjs +3 -3
  408. package/lib/components/ModelCompareV3/data/products/udmPro.mjs.map +1 -1
  409. package/lib/components/ModelCompareV3/data/products/udmProMax.js +3 -3
  410. package/lib/components/ModelCompareV3/data/products/udmProMax.js.map +1 -1
  411. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +4 -4
  412. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs.map +1 -1
  413. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +2 -2
  414. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js.map +1 -1
  415. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +3 -3
  416. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs.map +1 -1
  417. package/lib/components/ModelCompareV3/data/products/udr.js +2 -2
  418. package/lib/components/ModelCompareV3/data/products/udr.js.map +1 -1
  419. package/lib/components/ModelCompareV3/data/products/udr.mjs +3 -3
  420. package/lib/components/ModelCompareV3/data/products/udr.mjs.map +1 -1
  421. package/lib/components/ModelCompareV3/data/products/udw.js +3 -2
  422. package/lib/components/ModelCompareV3/data/products/udw.js.map +1 -1
  423. package/lib/components/ModelCompareV3/data/products/udw.mjs +4 -3
  424. package/lib/components/ModelCompareV3/data/products/udw.mjs.map +1 -1
  425. package/lib/components/ModelCompareV3/data/products/wifiFlagship.d.ts +2 -0
  426. package/lib/components/ModelCompareV3/data/products/wifiFlagship.js +70 -0
  427. package/lib/components/ModelCompareV3/data/products/wifiFlagship.js.map +1 -0
  428. package/lib/components/ModelCompareV3/data/products/wifiFlagship.mjs +62 -0
  429. package/lib/components/ModelCompareV3/data/products/wifiFlagship.mjs.map +1 -0
  430. package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.d.ts +2 -0
  431. package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.js +73 -0
  432. package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.js.map +1 -0
  433. package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.mjs +65 -0
  434. package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.mjs.map +1 -0
  435. package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.d.ts +2 -0
  436. package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.js +73 -0
  437. package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.js.map +1 -0
  438. package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.mjs +65 -0
  439. package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.mjs.map +1 -0
  440. package/lib/components/ModelCompareV3/data/products/wifiWall.d.ts +2 -0
  441. package/lib/components/ModelCompareV3/data/products/wifiWall.js +74 -0
  442. package/lib/components/ModelCompareV3/data/products/wifiWall.js.map +1 -0
  443. package/lib/components/ModelCompareV3/data/products/wifiWall.mjs +66 -0
  444. package/lib/components/ModelCompareV3/data/products/wifiWall.mjs.map +1 -0
  445. package/lib/components/ModelCompareV3/translations/ar.json.js +3 -3
  446. package/lib/components/ModelCompareV3/translations/ar.json.mjs +3 -3
  447. package/lib/components/ModelCompareV3/translations/de.json.js +3 -3
  448. package/lib/components/ModelCompareV3/translations/de.json.mjs +3 -3
  449. package/lib/components/ModelCompareV3/translations/el.json.js +3 -3
  450. package/lib/components/ModelCompareV3/translations/el.json.mjs +3 -3
  451. package/lib/components/ModelCompareV3/translations/en.json.js +63 -10
  452. package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
  453. package/lib/components/ModelCompareV3/translations/en.json.mjs +63 -10
  454. package/lib/components/ModelCompareV3/translations/en.json.mjs.map +1 -1
  455. package/lib/components/ModelCompareV3/translations/es.json.js +3 -3
  456. package/lib/components/ModelCompareV3/translations/es.json.mjs +3 -3
  457. package/lib/components/ModelCompareV3/translations/fr.json.js +3 -3
  458. package/lib/components/ModelCompareV3/translations/fr.json.mjs +3 -3
  459. package/lib/components/ModelCompareV3/translations/it.json.js +3 -3
  460. package/lib/components/ModelCompareV3/translations/it.json.mjs +3 -3
  461. package/lib/components/ModelCompareV3/translations/ja.json.js +3 -3
  462. package/lib/components/ModelCompareV3/translations/ja.json.mjs +3 -3
  463. package/lib/components/ModelCompareV3/translations/pt-BR.json.js +3 -3
  464. package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs +3 -3
  465. package/lib/components/ModelCompareV3/translations/useModelCompareTranslation.d.ts +2 -2
  466. package/lib/components/ModelCompareV3/translations/zh-Hans.json.js +3 -3
  467. package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs +3 -3
  468. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js +3 -3
  469. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs +3 -3
  470. package/lib/components/ProductCardPopup/ProductCardPopup.styles.d.ts +1 -1
  471. package/lib/components/ProductGrid/ProductGrid.styles.d.ts +1 -1
  472. package/lib/components/ProductRecommendedAccessories/ProductRecommendedAccessories.styles.d.ts +3 -3
  473. package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +1 -1
  474. package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +1 -1
  475. package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +1 -1
  476. package/lib/components/ProductWizard/ProductWizard.js +1 -1
  477. package/lib/components/ProductWizard/ProductWizard.mjs +1 -1
  478. package/lib/components/QuantityInput/QuantityInput.js +1 -1
  479. package/lib/components/QuantityInput/QuantityInput.mjs +1 -1
  480. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +313 -17
  481. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
  482. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +311 -17
  483. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
  484. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.d.ts +3 -2
  485. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js +2 -0
  486. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js.map +1 -1
  487. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs +2 -0
  488. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs.map +1 -1
  489. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +120 -34
  490. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js.map +1 -1
  491. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs +120 -34
  492. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs.map +1 -1
  493. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.d.ts +16 -2
  494. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js +54 -12
  495. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js.map +1 -1
  496. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.mjs +50 -11
  497. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.mjs.map +1 -1
  498. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/assets/ArrowLeftPrimary.svg.js +5 -5
  499. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/assets/ArrowRightPrimary.svg.js +5 -5
  500. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +1 -1
  501. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js.map +1 -1
  502. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
  503. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs.map +1 -1
  504. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js +2 -0
  505. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js.map +1 -1
  506. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs +2 -0
  507. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs.map +1 -1
  508. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +2 -2
  509. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
  510. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
  511. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
  512. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
  513. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
  514. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +1 -1
  515. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js.map +1 -1
  516. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.mjs +1 -1
  517. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.mjs.map +1 -1
  518. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +4 -4
  519. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js.map +1 -1
  520. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +4 -4
  521. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs.map +1 -1
  522. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
  523. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
  524. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
  525. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
  526. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +1 -2
  527. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js.map +1 -1
  528. package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs +1 -2
  529. package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs.map +1 -1
  530. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.js +27 -0
  531. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.js.map +1 -0
  532. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs +3 -0
  533. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs.map +1 -0
  534. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js +27 -0
  535. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js.map +1 -0
  536. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs +3 -0
  537. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs.map +1 -0
  538. package/lib/components/ResourceCalculatorV1/translations/en.json.js +6 -4
  539. package/lib/components/ResourceCalculatorV1/translations/en.json.js.map +1 -1
  540. package/lib/components/ResourceCalculatorV1/translations/en.json.mjs +6 -4
  541. package/lib/components/ResourceCalculatorV1/translations/en.json.mjs.map +1 -1
  542. package/lib/components/ResourceCalculatorV1/translations/useResourceCalculatorTranslation.d.ts +2 -2
  543. package/lib/components/Tooltip/Tooltip.styles.d.ts +5 -5
  544. package/lib/components/VariantSelectorV1/VariantSelector.styles.d.ts +3 -3
  545. package/lib/components/VariantSelectorV2/VariantSelector.styles.d.ts +3 -3
  546. package/lib/components/index.d.ts +2 -0
  547. package/lib/components/index.js +34 -30
  548. package/lib/components/index.js.map +1 -1
  549. package/lib/components/index.mjs +34 -30
  550. package/lib/components/index.mjs.map +1 -1
  551. package/lib/constants/icons/generic/carouselArrowRight.svg.js +5 -5
  552. package/lib/constants/icons/generic/index.js +3 -3
  553. package/lib/constants/icons/header/account.svg.js +5 -5
  554. package/lib/constants/icons/header/globe.svg.js +5 -5
  555. package/lib/constants/icons/header/index.js +9 -9
  556. package/lib/constants/icons/header/logoUnifi.svg.js +5 -5
  557. package/lib/constants/icons/menu/consolidatedSpecialDevices.svg.js +27 -0
  558. package/lib/constants/icons/menu/consolidatedSpecialDevices.svg.js.map +1 -0
  559. package/lib/constants/icons/menu/consolidatedSpecialDevices.svg.mjs +3 -0
  560. package/lib/constants/icons/menu/consolidatedSpecialDevices.svg.mjs.map +1 -0
  561. package/lib/constants/icons/menu/doorAccess.svg.js +27 -0
  562. package/lib/constants/icons/menu/doorAccess.svg.js.map +1 -0
  563. package/lib/constants/icons/menu/doorAccess.svg.mjs +3 -0
  564. package/lib/constants/icons/menu/doorAccess.svg.mjs.map +1 -0
  565. package/lib/constants/icons/menu/index.d.ts +3 -0
  566. package/lib/constants/icons/menu/index.js +27 -0
  567. package/lib/constants/icons/menu/index.js.map +1 -1
  568. package/lib/constants/icons/menu/index.mjs +6 -0
  569. package/lib/constants/icons/menu/index.mjs.map +1 -1
  570. package/lib/constants/icons/menu/overview.svg.js +27 -0
  571. package/lib/constants/icons/menu/overview.svg.js.map +1 -0
  572. package/lib/constants/icons/menu/overview.svg.mjs +3 -0
  573. package/lib/constants/icons/menu/overview.svg.mjs.map +1 -0
  574. package/lib/constants/proStoreCategories/mapping/index.d.ts +4 -2
  575. package/lib/constants/proStoreCategories/mapping/index.js +74 -89
  576. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  577. package/lib/constants/proStoreCategories/mapping/index.mjs +73 -87
  578. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  579. package/lib/constants/proStoreCategories/mapping/redirects.js +17 -2
  580. package/lib/constants/proStoreCategories/mapping/redirects.js.map +1 -1
  581. package/lib/constants/proStoreCategories/mapping/redirects.mjs +17 -2
  582. package/lib/constants/proStoreCategories/mapping/redirects.mjs.map +1 -1
  583. package/lib/constants/proStoreCategories/mapping/unifi.d.ts +8 -6
  584. package/lib/constants/proStoreCategories/mapping/unifi.js +7 -5
  585. package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
  586. package/lib/constants/proStoreCategories/mapping/unifi.mjs +7 -5
  587. package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
  588. package/lib/constants/proStoreCategories/translations/ar.json.js +3 -0
  589. package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
  590. package/lib/constants/proStoreCategories/translations/ar.json.mjs +3 -0
  591. package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
  592. package/lib/constants/proStoreCategories/translations/de.json.js +3 -0
  593. package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
  594. package/lib/constants/proStoreCategories/translations/de.json.mjs +3 -0
  595. package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
  596. package/lib/constants/proStoreCategories/translations/el.json.js +3 -0
  597. package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
  598. package/lib/constants/proStoreCategories/translations/el.json.mjs +3 -0
  599. package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
  600. package/lib/constants/proStoreCategories/translations/en.json.js +6 -2
  601. package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
  602. package/lib/constants/proStoreCategories/translations/en.json.mjs +6 -3
  603. package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
  604. package/lib/constants/proStoreCategories/translations/es.json.js +3 -0
  605. package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
  606. package/lib/constants/proStoreCategories/translations/es.json.mjs +3 -0
  607. package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
  608. package/lib/constants/proStoreCategories/translations/fr.json.js +4 -1
  609. package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
  610. package/lib/constants/proStoreCategories/translations/fr.json.mjs +4 -1
  611. package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
  612. package/lib/constants/proStoreCategories/translations/it.json.js +3 -0
  613. package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
  614. package/lib/constants/proStoreCategories/translations/it.json.mjs +3 -0
  615. package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
  616. package/lib/constants/proStoreCategories/translations/ja.json.js +3 -0
  617. package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
  618. package/lib/constants/proStoreCategories/translations/ja.json.mjs +3 -0
  619. package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
  620. package/lib/constants/proStoreCategories/translations/pt-BR.json.js +3 -0
  621. package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
  622. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +3 -0
  623. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
  624. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +4 -1
  625. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
  626. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +4 -1
  627. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
  628. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +4 -1
  629. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
  630. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +4 -1
  631. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
  632. package/lib/constants/proStoreFilters/mapping.js +4 -4
  633. package/lib/constants/proStoreFilters/mapping.js.map +1 -1
  634. package/lib/constants/proStoreFilters/mapping.mjs +4 -4
  635. package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
  636. package/lib/constants/theme.js +4 -0
  637. package/lib/constants/theme.js.map +1 -1
  638. package/lib/constants/theme.mjs +4 -0
  639. package/lib/constants/theme.mjs.map +1 -1
  640. package/lib/contexts/MenuContext/context.js +1 -1
  641. package/lib/contexts/MenuContext/context.js.map +1 -1
  642. package/lib/contexts/MenuContext/context.mjs +1 -1
  643. package/lib/contexts/MenuContext/context.mjs.map +1 -1
  644. package/lib/contexts/MenuContext/mapping.js +0 -1
  645. package/lib/contexts/MenuContext/mapping.js.map +1 -1
  646. package/lib/contexts/MenuContext/mapping.mjs +0 -1
  647. package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
  648. package/lib/contexts/MenuContext/types.js.map +1 -1
  649. package/lib/contexts/MenuContext/types.mjs.map +1 -1
  650. package/lib/contexts/MenuContext/utils.d.ts +6 -1
  651. package/lib/contexts/MenuContext/utils.js +16 -0
  652. package/lib/contexts/MenuContext/utils.js.map +1 -1
  653. package/lib/contexts/MenuContext/utils.mjs +16 -1
  654. package/lib/contexts/MenuContext/utils.mjs.map +1 -1
  655. package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.js +27 -0
  656. package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.js.map +1 -0
  657. package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.mjs +3 -0
  658. package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.mjs.map +1 -0
  659. package/lib/contexts/MicrositeMenuContext/assets/bullet.png.js +27 -0
  660. package/lib/contexts/MicrositeMenuContext/assets/bullet.png.js.map +1 -0
  661. package/lib/contexts/MicrositeMenuContext/assets/bullet.png.mjs +3 -0
  662. package/lib/contexts/MicrositeMenuContext/assets/bullet.png.mjs.map +1 -0
  663. package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.js +27 -0
  664. package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.js.map +1 -0
  665. package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.mjs +3 -0
  666. package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.mjs.map +1 -0
  667. package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.js +27 -0
  668. package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.js.map +1 -0
  669. package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.mjs +3 -0
  670. package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.mjs.map +1 -0
  671. package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.js +27 -0
  672. package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.js.map +1 -0
  673. package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.mjs +3 -0
  674. package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.mjs.map +1 -0
  675. package/lib/contexts/MicrositeMenuContext/assets/compact.png.js +27 -0
  676. package/lib/contexts/MicrositeMenuContext/assets/compact.png.js.map +1 -0
  677. package/lib/contexts/MicrositeMenuContext/assets/compact.png.mjs +3 -0
  678. package/lib/contexts/MicrositeMenuContext/assets/compact.png.mjs.map +1 -0
  679. package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.js +27 -0
  680. package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.js.map +1 -0
  681. package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.mjs +3 -0
  682. package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.mjs.map +1 -0
  683. package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.js +27 -0
  684. package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.js.map +1 -0
  685. package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.mjs +3 -0
  686. package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.mjs.map +1 -0
  687. package/lib/contexts/MicrositeMenuContext/assets/door-access.png.js +27 -0
  688. package/lib/contexts/MicrositeMenuContext/assets/door-access.png.js.map +1 -0
  689. package/lib/contexts/MicrositeMenuContext/assets/door-access.png.mjs +3 -0
  690. package/lib/contexts/MicrositeMenuContext/assets/door-access.png.mjs.map +1 -0
  691. package/lib/contexts/MicrositeMenuContext/assets/education.jpg.js +27 -0
  692. package/lib/contexts/MicrositeMenuContext/assets/education.jpg.js.map +1 -0
  693. package/lib/contexts/MicrositeMenuContext/assets/education.jpg.mjs +3 -0
  694. package/lib/contexts/MicrositeMenuContext/assets/education.jpg.mjs.map +1 -0
  695. package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.js +27 -0
  696. package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.js.map +1 -0
  697. package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.mjs +3 -0
  698. package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.mjs.map +1 -0
  699. package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.js +27 -0
  700. package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.js.map +1 -0
  701. package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.mjs +3 -0
  702. package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.mjs.map +1 -0
  703. package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.js +27 -0
  704. package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.js.map +1 -0
  705. package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.mjs +3 -0
  706. package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.mjs.map +1 -0
  707. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.js +27 -0
  708. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.js.map +1 -0
  709. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.mjs +3 -0
  710. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.mjs.map +1 -0
  711. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.js +27 -0
  712. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.js.map +1 -0
  713. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.mjs +3 -0
  714. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.mjs.map +1 -0
  715. package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.js +27 -0
  716. package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.js.map +1 -0
  717. package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.mjs +3 -0
  718. package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.mjs.map +1 -0
  719. package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.js +27 -0
  720. package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.js.map +1 -0
  721. package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.mjs +3 -0
  722. package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.mjs.map +1 -0
  723. package/lib/contexts/MicrositeMenuContext/assets/index.d.ts +41 -0
  724. package/lib/contexts/MicrositeMenuContext/assets/index.js +45 -0
  725. package/lib/contexts/MicrositeMenuContext/assets/index.js.map +1 -0
  726. package/lib/contexts/MicrositeMenuContext/assets/index.mjs +43 -0
  727. package/lib/contexts/MicrositeMenuContext/assets/index.mjs.map +1 -0
  728. package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.js +27 -0
  729. package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.js.map +1 -0
  730. package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.mjs +3 -0
  731. package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.mjs.map +1 -0
  732. package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.js +27 -0
  733. package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.js.map +1 -0
  734. package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.mjs +3 -0
  735. package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.mjs.map +1 -0
  736. package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.js +27 -0
  737. package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.js.map +1 -0
  738. package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.mjs +3 -0
  739. package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.mjs.map +1 -0
  740. package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.js +27 -0
  741. package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.js.map +1 -0
  742. package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.mjs +3 -0
  743. package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.mjs.map +1 -0
  744. package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.js +27 -0
  745. package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.js.map +1 -0
  746. package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.mjs +3 -0
  747. package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.mjs.map +1 -0
  748. package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.js +27 -0
  749. package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.js.map +1 -0
  750. package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.mjs +3 -0
  751. package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.mjs.map +1 -0
  752. package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.js +27 -0
  753. package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.js.map +1 -0
  754. package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.mjs +3 -0
  755. package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.mjs.map +1 -0
  756. package/lib/contexts/MicrositeMenuContext/assets/ptz.png.js +27 -0
  757. package/lib/contexts/MicrositeMenuContext/assets/ptz.png.js.map +1 -0
  758. package/lib/contexts/MicrositeMenuContext/assets/ptz.png.mjs +3 -0
  759. package/lib/contexts/MicrositeMenuContext/assets/ptz.png.mjs.map +1 -0
  760. package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.js +27 -0
  761. package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.js.map +1 -0
  762. package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.mjs +3 -0
  763. package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.mjs.map +1 -0
  764. package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.js +27 -0
  765. package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.js.map +1 -0
  766. package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.mjs +3 -0
  767. package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.mjs.map +1 -0
  768. package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.js +27 -0
  769. package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.js.map +1 -0
  770. package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.mjs +3 -0
  771. package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.mjs.map +1 -0
  772. package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.js +27 -0
  773. package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.js.map +1 -0
  774. package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.mjs +3 -0
  775. package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.mjs.map +1 -0
  776. package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.js +27 -0
  777. package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.js.map +1 -0
  778. package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.mjs +3 -0
  779. package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.mjs.map +1 -0
  780. package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.js +27 -0
  781. package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.js.map +1 -0
  782. package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.mjs +3 -0
  783. package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.mjs.map +1 -0
  784. package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.js +27 -0
  785. package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.js.map +1 -0
  786. package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.mjs +3 -0
  787. package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.mjs.map +1 -0
  788. package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.js +27 -0
  789. package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.js.map +1 -0
  790. package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.mjs +3 -0
  791. package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.mjs.map +1 -0
  792. package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.js +27 -0
  793. package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.js.map +1 -0
  794. package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.mjs +3 -0
  795. package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.mjs.map +1 -0
  796. package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.js +27 -0
  797. package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.js.map +1 -0
  798. package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.mjs +3 -0
  799. package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.mjs.map +1 -0
  800. package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.js +27 -0
  801. package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.js.map +1 -0
  802. package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.mjs +3 -0
  803. package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.mjs.map +1 -0
  804. package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.js +27 -0
  805. package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.js.map +1 -0
  806. package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.mjs +3 -0
  807. package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.mjs.map +1 -0
  808. package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.js +27 -0
  809. package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.js.map +1 -0
  810. package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.mjs +3 -0
  811. package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.mjs.map +1 -0
  812. package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.js +27 -0
  813. package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.js.map +1 -0
  814. package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.mjs +3 -0
  815. package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.mjs.map +1 -0
  816. package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.js +27 -0
  817. package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.js.map +1 -0
  818. package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.mjs +3 -0
  819. package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.mjs.map +1 -0
  820. package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.js +27 -0
  821. package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.js.map +1 -0
  822. package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.mjs +3 -0
  823. package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.mjs.map +1 -0
  824. package/lib/contexts/MicrositeMenuContext/context.d.ts +36 -0
  825. package/lib/contexts/MicrositeMenuContext/context.js +100 -0
  826. package/lib/contexts/MicrositeMenuContext/context.js.map +1 -0
  827. package/lib/contexts/MicrositeMenuContext/context.mjs +96 -0
  828. package/lib/contexts/MicrositeMenuContext/context.mjs.map +1 -0
  829. package/lib/contexts/MicrositeMenuContext/index.d.ts +1 -0
  830. package/lib/contexts/MicrositeMenuContext/index.js +8 -0
  831. package/lib/contexts/MicrositeMenuContext/index.js.map +1 -0
  832. package/lib/contexts/MicrositeMenuContext/index.mjs +3 -0
  833. package/lib/contexts/MicrositeMenuContext/index.mjs.map +1 -0
  834. package/lib/contexts/MicrositeMenuContext/mapping.d.ts +16 -0
  835. package/lib/contexts/MicrositeMenuContext/mapping.js +788 -0
  836. package/lib/contexts/MicrositeMenuContext/mapping.js.map +1 -0
  837. package/lib/contexts/MicrositeMenuContext/mapping.mjs +712 -0
  838. package/lib/contexts/MicrositeMenuContext/mapping.mjs.map +1 -0
  839. package/lib/contexts/MicrositeMenuContext/translations/ar.json.js +8 -0
  840. package/lib/contexts/MicrositeMenuContext/translations/ar.json.js.map +1 -0
  841. package/lib/contexts/MicrositeMenuContext/translations/ar.json.mjs +3 -0
  842. package/lib/contexts/MicrositeMenuContext/translations/ar.json.mjs.map +1 -0
  843. package/lib/contexts/MicrositeMenuContext/translations/de.json.js +8 -0
  844. package/lib/contexts/MicrositeMenuContext/translations/de.json.js.map +1 -0
  845. package/lib/contexts/MicrositeMenuContext/translations/de.json.mjs +3 -0
  846. package/lib/contexts/MicrositeMenuContext/translations/de.json.mjs.map +1 -0
  847. package/lib/contexts/MicrositeMenuContext/translations/el.json.js +8 -0
  848. package/lib/contexts/MicrositeMenuContext/translations/el.json.js.map +1 -0
  849. package/lib/contexts/MicrositeMenuContext/translations/el.json.mjs +3 -0
  850. package/lib/contexts/MicrositeMenuContext/translations/el.json.mjs.map +1 -0
  851. package/lib/contexts/MicrositeMenuContext/translations/en.json.js +128 -0
  852. package/lib/contexts/MicrositeMenuContext/translations/en.json.js.map +1 -0
  853. package/lib/contexts/MicrositeMenuContext/translations/en.json.mjs +123 -0
  854. package/lib/contexts/MicrositeMenuContext/translations/en.json.mjs.map +1 -0
  855. package/lib/contexts/MicrositeMenuContext/translations/es.json.js +8 -0
  856. package/lib/contexts/MicrositeMenuContext/translations/es.json.js.map +1 -0
  857. package/lib/contexts/MicrositeMenuContext/translations/es.json.mjs +3 -0
  858. package/lib/contexts/MicrositeMenuContext/translations/es.json.mjs.map +1 -0
  859. package/lib/contexts/MicrositeMenuContext/translations/fr.json.js +8 -0
  860. package/lib/contexts/MicrositeMenuContext/translations/fr.json.js.map +1 -0
  861. package/lib/contexts/MicrositeMenuContext/translations/fr.json.mjs +3 -0
  862. package/lib/contexts/MicrositeMenuContext/translations/fr.json.mjs.map +1 -0
  863. package/lib/contexts/MicrositeMenuContext/translations/it.json.js +8 -0
  864. package/lib/contexts/MicrositeMenuContext/translations/it.json.js.map +1 -0
  865. package/lib/contexts/MicrositeMenuContext/translations/it.json.mjs +3 -0
  866. package/lib/contexts/MicrositeMenuContext/translations/it.json.mjs.map +1 -0
  867. package/lib/contexts/MicrositeMenuContext/translations/ja.json.js +8 -0
  868. package/lib/contexts/MicrositeMenuContext/translations/ja.json.js.map +1 -0
  869. package/lib/contexts/MicrositeMenuContext/translations/ja.json.mjs +3 -0
  870. package/lib/contexts/MicrositeMenuContext/translations/ja.json.mjs.map +1 -0
  871. package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.js +8 -0
  872. package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.js.map +1 -0
  873. package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.mjs +3 -0
  874. package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.mjs.map +1 -0
  875. package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.js +8 -0
  876. package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.js.map +1 -0
  877. package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.mjs +3 -0
  878. package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.mjs.map +1 -0
  879. package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.js +8 -0
  880. package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.js.map +1 -0
  881. package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.mjs +3 -0
  882. package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.mjs.map +1 -0
  883. package/lib/contexts/MicrositeMenuContext/translations.d.ts +7 -0
  884. package/lib/contexts/MicrositeMenuContext/translations.js +47 -0
  885. package/lib/contexts/MicrositeMenuContext/translations.js.map +1 -0
  886. package/lib/contexts/MicrositeMenuContext/translations.mjs +25 -0
  887. package/lib/contexts/MicrositeMenuContext/translations.mjs.map +1 -0
  888. package/lib/contexts/MicrositeMenuContext/types.d.ts +102 -0
  889. package/lib/contexts/MicrositeMenuContext/types.js +16 -0
  890. package/lib/contexts/MicrositeMenuContext/types.js.map +1 -0
  891. package/lib/contexts/MicrositeMenuContext/types.mjs +15 -0
  892. package/lib/contexts/MicrositeMenuContext/types.mjs.map +1 -0
  893. package/lib/contexts/index.d.ts +1 -0
  894. package/lib/contexts/index.js +2 -0
  895. package/lib/contexts/index.js.map +1 -1
  896. package/lib/contexts/index.mjs +2 -0
  897. package/lib/contexts/index.mjs.map +1 -1
  898. package/lib/helpers/index.d.ts +1 -0
  899. package/lib/helpers/index.js +11 -0
  900. package/lib/helpers/index.js.map +1 -1
  901. package/lib/helpers/index.mjs +1 -0
  902. package/lib/helpers/index.mjs.map +1 -1
  903. package/lib/helpers/product.d.ts +87 -0
  904. package/lib/helpers/product.js +346 -0
  905. package/lib/helpers/product.js.map +1 -0
  906. package/lib/helpers/product.mjs +335 -0
  907. package/lib/helpers/product.mjs.map +1 -0
  908. package/lib/helpers/ux.d.ts +9 -1
  909. package/lib/helpers/ux.js +15 -0
  910. package/lib/helpers/ux.js.map +1 -1
  911. package/lib/helpers/ux.mjs +15 -1
  912. package/lib/helpers/ux.mjs.map +1 -1
  913. package/lib/types/index.d.ts +1 -0
  914. package/lib/types/index.js +2 -0
  915. package/lib/types/index.js.map +1 -1
  916. package/lib/types/index.mjs +1 -0
  917. package/lib/types/index.mjs.map +1 -1
  918. package/lib/types/product.d.ts +87 -0
  919. package/lib/types/product.js +14 -0
  920. package/lib/types/product.js.map +1 -0
  921. package/lib/types/product.mjs +13 -0
  922. package/lib/types/product.mjs.map +1 -0
  923. package/lib/utils/array.d.ts +4 -0
  924. package/lib/utils/array.js +10 -0
  925. package/lib/utils/array.js.map +1 -1
  926. package/lib/utils/array.mjs +10 -1
  927. package/lib/utils/array.mjs.map +1 -1
  928. package/lib/utils/productSort.d.ts +41 -0
  929. package/lib/utils/productSort.js +67 -0
  930. package/lib/utils/productSort.js.map +1 -0
  931. package/lib/utils/productSort.mjs +60 -0
  932. package/lib/utils/productSort.mjs.map +1 -0
  933. package/package.json +10 -10
  934. package/lib/assets/icons/menu/icon-globe.svg.js.map +0 -1
  935. package/lib/assets/icons/menu/icon-globe.svg.mjs +0 -3
  936. package/lib/assets/icons/menu/icon-globe.svg.mjs.map +0 -1
  937. package/lib/components/MobileModal/assets/arrowDown.svg.mjs +0 -3
  938. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +0 -1
  939. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +0 -1
  940. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +0 -1
  941. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +0 -1
  942. package/lib/components/ResourceCalculatorV1/components/index.d.ts +0 -1
  943. package/lib/components/ResourceCalculatorV1/components/index.js +0 -5
  944. /package/lib/{components/MobileModal/assets → assets/icons}/arrowDown.svg.js.map +0 -0
  945. /package/lib/{components/MobileModal/assets → assets/icons}/arrowDown.svg.mjs.map +0 -0
  946. /package/lib/components/{ResourceCalculatorV1/components → Header/LogoIcon}/index.mjs.map +0 -0
  947. /package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/index.d.ts +0 -0
  948. /package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/index.js +0 -0
  949. /package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/index.js.map +0 -0
  950. /package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/index.mjs +0 -0
  951. /package/lib/components/{ResourceCalculatorV1/components/HorizontalOptionSelect → HorizontalOptionSelect}/index.mjs.map +0 -0
@@ -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\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={<></>}\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":["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","jsx","Fragment","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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCO,MAAMA,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,KAAA,CAAAA,WAAA,CAC7BQ,CAA2C,IAAA;IAC3BH,cAAA,CAAAG,CAAA,CAAEC,OAAOC,KAAK,CAAA;EAC/B,CAAA,EACA,CAACL,cAAc,CAAA,CACjB;EAEM,MAAAM,sBAAA,GAAyBX,KAAAA,CAAAA,YAAY,MAAM;IAC/C,IAAIE,SAASU,OAAS,EAAA;MACpBV,QAAA,CAASU,QAAQC,KAAM,EAAA;IACzB;EACF,CAAA,EAAG,EAAE,CAAA;EAEL,MAAMC,iBAAoB,GAAAd,KAAA,CAAAA,WAAA,CAEtBL,MACyC,IAAA;IACzC,IAAIS,WAAY,CAAAW,IAAA,EAAO,CAAAC,MAAA,KAAW,CAAG,EAAA;MAC5BrB,OAAAA,MAAAA;IACT;IAEOA,OAAAA,MAAAA,CAAMsB,MAAO,CAAC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gBAAW1B,KAAO,EAAA,CAAA;gBAAGC,QAAQ;eAAG;YAAA,CAC1D,CAAA,EAECvB,eAAAA,UAAAA,CAAAA,GAAA,CAAAiD,6BAAA,CAAAC,oBAAA,EAAA;cAAwBzC,QAAM,EAAAlB;YAAA,CAAA,CAAA,EAAA,eAE/BS,UAAA,CAAAA,GAAA,CAAC4C,6BAAE,CAAAC,kBAAA,EAAF;cACC3B,OAAS,EAAAxB,oBAAA;cACToD,UAAUvD,KAAU,KAAA5C,QAAA;cAEpB8D,wCAACsC,iBAAkB,CAAAA,iBAAA,EAAA;gBAAA1D,GAAA,EAAK8D;gBAAU7B,KAAO,EAAA,CAAA;gBAAGC,QAAQ;eAAG;YAAA,CACzD,CAAA;WACF,CAAA,EAAA,8BAEC6B,6BAAE,CAAAC,sBAAA,EAAF;YACE5C,QAAA,EAAA1D,aAAA,CAAc,KAAK;UACtB,CAAA,CAAA;SACF,CAAA;MAAA,CAAA,uBA5CwBkF,CAAC,EA+C9B,CAAA;KACH,CAAA;EAAA,CAAA,CACF;AAEJ,CAAA;"}
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 { 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\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={<></>}\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":["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","jsx","Fragment","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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCO,MAAMA,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,KAAA,CAAAA,WAAA,CAC7BQ,CAA2C,IAAA;IAC3BH,cAAA,CAAAG,CAAA,CAAEC,OAAOC,KAAK,CAA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AKa,EAAO,KAAA,IAAA,IAAA,eACVW,UAAA,CAAAA,IAAA,CAAA8C,mDAAA;UACCjC,QAAA,EAAA,CAAAb,eAAAA,UAAAA,CAAAA,IAAA,CAAC+C,6BAAAA,CAAAA,eAAE,EAAF;YAAkBzB,OAAA,EAASjE,eAC1B;YAAAwD,QAAA,EAAA,CAAA,eAAAT,UAAA,CAAAA,GAAA,CAAC4C,6BAAE,CAAAC,kBAAA,EAAF;cACC3B,OAAS,EAAAvB,oBAAA;cACTmD,UAAUvD,KAAU,KAAA,CAAA;cAEpBkB,wCAACsC,iBAAkB,CAAAA,iBAAA,EAAA;gBAAA1D,GAAA,EAAK2D;gBAAW1B,KAAO,EAAA,CAAA;gBAAGC,QAAQ;eAAG;YAAA,CAC1D,CAAA,EAECvB,eAAAA,UAAAA,CAAAA,GAAA,CAAAiD,6BAAA,CAAAC,oBAAA,EAAA;cAAwBzC,QAAM,EAAAlB;YAAA,CAAA,CAAA,EAAA,eAE/BS,UAAA,CAAAA,GAAA,CAAC4C,6BAAE,CAAAC,kBAAA,EAAF;cACC3B,OAAS,EAAAxB,oBAAA;cACToD,UAAUvD,KAAU,KAAA5C,QAAA;cAEpB8D,wCAACsC,iBAAkB,CAAAA,iBAAA,EAAA;gBAAA1D,GAAA,EAAK8D;gBAAU7B,KAAO,EAAA,CAAA;gBAAGC,QAAQ;eAAG;YAAA,CACzD,CAAA;WACF,CAAA,EAAA,8BAEC6B,6BAAE,CAAAC,sBAAA,EAAF;YACE5C,QAAA,EAAA1D,aAAA,CAAc,KAAK;UACtB,CAAA,CAAA;SACF,CAAA;MAAA,CAAA,uBA5CwBkF,CAAC,EA+C9B,CAAA;KACH,CAAA;EAAA,CAAA,CACF;AAEJ,CAAA;"}
@@ -2,8 +2,8 @@ import { jsxs, jsx, Fragment } 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 PoeConsumerSelectModal = ({
24
24
  isOpen,
@@ -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\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={<></>}\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":["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","jsx","Fragment","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":";;;;;;;;;;;;;;;;;;;;;;AAiCO,MAAMA,yBAAyBA,CAAC;EACrCC,MAAA;EACAC,QAAA;EACAC,QAAA;EACAC,KAAA;EACAC;AACF,CAAmC,KAAA;EAC3B,MAAA;IAAEC;GAAc,GAAIC,gCAAiC,EAAA;EAK3D,MAAMC,eAA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U,KAAA,CAAA;cAEpBgB,6BAACkC,iBAAkB,EAAA;gBAAApD,GAAA,EAAKqD;gBAAWtB,KAAO,EAAA,CAAA;gBAAGC,QAAQ;eAAG;YAAA,CAC1D,CAAA,EAEC,eAAAtB,GAAA,CAAA4C,oBAAA,EAAA;cAAwBpC,QAAM,EAAAhB;YAAA,CAAA,CAAA,EAAA,eAE/BQ,GAAA,CAACwC,kBAAE,EAAF;cACCvB,OAAS,EAAAtB,oBAAA;cACT8C,UAAUjD,KAAU,KAAA5C,QAAA;cAEpB4D,6BAACkC,iBAAkB,EAAA;gBAAApD,GAAA,EAAKuD;gBAAUxB,KAAO,EAAA,CAAA;gBAAGC,QAAQ;eAAG;YAAA,CACzD,CAAA;WACF,CAAA,EAAA,mBAECwB,sBAAE,EAAF;YACEtC,QAAA,EAAAxD,aAAA,CAAc,KAAK;UACtB,CAAA,CAAA;SACF,CAAA;MAAA,CAAA,uBA5CwB+E,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\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={<></>}\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":["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","jsx","Fragment","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":";;;;;;;;;;;;;;;;;;;;;;AAiCO,MAAMA,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,EA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,EAAF;YACEtC,QAAA,EAAAxD,aAAA,CAAc,KAAK;UACtB,CAAA,CAAA;SACF,CAAA;MAAA,CAAA,uBA5CwB+E,CAAC,EA+C9B,CAAA;KACH,CAAA;EAAA,CAAA,CACF;AAEJ,CAAA;"}
@@ -3,7 +3,7 @@
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
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
4
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,
@@ -1 +1 @@
1
- {"version":3,"file":"ResourceCalculator.js","sources":["../../../src/components/ResourceCalculatorV1/ResourceCalculator.tsx"],"sourcesContent":["import { useCallback, useMemo, useState } from \"react\";\nimport { useMedia } from \"react-use\";\n\nimport { BREAKPOINTS } from \"../../constants/layout\";\nimport { HorizontalOptionSelect } from \"./components\";\nimport type { HorizontalOptionSelectProps } from \"./components/HorizontalOptionSelect/HorizontalOptionSelect.types\";\nimport { ComputeResourceCalculator } from \"./ComputeResourceCalculator\";\nimport { PoeCalculator } from \"./PoeCalculator\";\nimport { RESOURCE_CALCULATORS } from \"./ResourceCalculator.constants\";\nimport * as S from \"./ResourceCalculator.styles\";\nimport type { ResourceCalculatorProps } from \"./ResourceCalculator.types\";\nimport { CalculatorId } from \"./ResourceCalculator.types\";\nimport { useResourceCalculatorTranslation } from \"./translations/useResourceCalculatorTranslation\";\n\n/**\n *\n *\n * This component provides functionality for\n * navigating between the different calculators.\n *\n * Calculators can be rendered individually without the\n * calculator navigation by ignoring this component and rendering\n * the specifc calculator directly.\n *\n *\n */\nexport const ResourceCalculatorV1 = ({\n enabledCalculatorIds,\n defaultActiveDeviceId,\n}: ResourceCalculatorProps) => {\n const { formatMessage } = useResourceCalculatorTranslation();\n const isMobile = useMedia(BREAKPOINTS.TABLET_AND_DOWN, false);\n\n const [activeCalculatorId, setActiveCalculatorId] = useState<CalculatorId>(\n enabledCalculatorIds[0],\n );\n\n const enabledCalculators = useMemo(() => {\n return Object.entries(RESOURCE_CALCULATORS)\n .filter(([key]) => enabledCalculatorIds.includes(key))\n .map(([, value]) => value);\n }, [enabledCalculatorIds]);\n\n const handleCalculatorSelect = useCallback(\n (calculatorId: CalculatorId) => {\n setActiveCalculatorId(calculatorId);\n },\n [setActiveCalculatorId],\n );\n\n const activeCalculatorLayout = useMemo(() => {\n switch (activeCalculatorId) {\n case CalculatorId.ComputeResourceCalculator:\n return (\n <ComputeResourceCalculator\n defaultActiveDeviceId={defaultActiveDeviceId}\n />\n );\n\n case CalculatorId.PoeCalculator:\n return <PoeCalculator />;\n }\n }, [activeCalculatorId, defaultActiveDeviceId]);\n\n const calculatorSelectProps: HorizontalOptionSelectProps = useMemo(() => {\n return {\n activeId: activeCalculatorId.toString(),\n items: enabledCalculators.map((calculator) => ({\n onSelect: () => handleCalculatorSelect(calculator.id),\n id: calculator.id as string,\n label: formatMessage(calculator.label),\n })),\n };\n }, [\n handleCalculatorSelect,\n activeCalculatorId,\n enabledCalculators,\n formatMessage,\n ]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.ResourceCalculatorContainer>\n {!isMobile && <S.Title>{formatMessage(\"capacityCalculator\")}</S.Title>}\n {enabledCalculatorIds.length > 1 && (\n <S.CalculatorSelectWrap>\n <HorizontalOptionSelect {...calculatorSelectProps} />\n </S.CalculatorSelectWrap>\n )}\n\n {activeCalculatorLayout}\n </S.ResourceCalculatorContainer>\n );\n};\n"],"names":["ResourceCalculatorV1","enabledCalculatorIds","defaultActiveDeviceId","formatMessage","useResourceCalculatorTranslation","isMobile","useMedia","BREAKPOINTS","TABLET_AND_DOWN","activeCalculatorId","setActiveCalculatorId","useState","enabledCalculators","useMemo","Object","entries","RESOURCE_CALCULATORS","filter","key","includes","map","value","handleCalculatorSelect","useCallback","calculatorId","activeCalculatorLayout","CalculatorId","ComputeResourceCalculator","jsx","PoeCalculator","calculatorSelectProps","activeId","toString","items","calculator","onSelect","id","label","jsxs","S.ResourceCalculatorContainer","children","S.Title","length","S.CalculatorSelectWrap","HorizontalOptionSelect"],"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AA,GAAqDjB,KAAAA,CAAAA,QAAQ,MAAM;IAChE,OAAA;MACLkB,QAAA,EAAUtB,mBAAmBuB,QAAS,CAAA,CAAA;MACtCC,KAAO,EAAArB,kBAAA,CAAmBQ,GAAI,CAACc,UAAgB,KAAA;QAC7CC,QAAU,EAAAA,CAAA,KAAMb,sBAAuB,CAAAY,UAAA,CAAWE,EAAE,CAAA;QACpDA,IAAIF,UAAW,CAAAE,EAAA;QACfC,KAAA,EAAOlC,aAAc,CAAA+B,UAAA,CAAWG,KAAK;MAAA,CACrC,CAAA;IAAA,CACJ;EAAA,CACC,EAAA,CACDf,sBAAA,EACAb,kBAAA,EACAG,kBAAA,EACAT,aAAA,CACD,CAAA;EAMC,sBAAAmC,UAAA,CAAAA,IAAA,CAACC,qDAAE,EAAF;IACEC,QAAA,EAAA,CAAA,CAACnC,YAAauB,eAAAA,UAAAA,CAAAA,GAAA,CAAAa,iCAAA;MAASD,QAAA,EAAArC,aAAA,CAAc,oBAAoB;KAAE,CAAA,EAC3DF,oBAAA,CAAqByC,MAAS,GAAA,CAAA,IAC5Bd,eAAAA,UAAAA,CAAAA,GAAA,CAAAe,yBAAAA,CAAAA,oBAAA,EAAA;MACCH,QAAC,EAAAZ,eAAAA,UAAAA,CAAAA,GAAA,CAAAgB,sBAAAA,CAAAA,sBAAA,EAAA;QAAwB,GAAGd;MAAA,CAAuB;IACrD,CAAA,CAAA,EAGDL,sBAAA;EACH,CAAA,CAAA;AAEJ,CAAA;"}
1
+ {"version":3,"file":"ResourceCalculator.js","sources":["../../../src/components/ResourceCalculatorV1/ResourceCalculator.tsx"],"sourcesContent":["import { useCallback, useMemo, useState } from \"react\";\nimport { useMedia } from \"react-use\";\n\nimport { BREAKPOINTS } from \"../../constants/layout\";\nimport { HorizontalOptionSelect } from \"../HorizontalOptionSelect/HorizontalOptionSelect\";\nimport type { HorizontalOptionSelectProps } from \"../HorizontalOptionSelect/HorizontalOptionSelect.types\";\nimport { ComputeResourceCalculator } from \"./ComputeResourceCalculator\";\nimport { PoeCalculator } from \"./PoeCalculator\";\nimport { RESOURCE_CALCULATORS } from \"./ResourceCalculator.constants\";\nimport * as S from \"./ResourceCalculator.styles\";\nimport type { ResourceCalculatorProps } from \"./ResourceCalculator.types\";\nimport { CalculatorId } from \"./ResourceCalculator.types\";\nimport { useResourceCalculatorTranslation } from \"./translations/useResourceCalculatorTranslation\";\n\n/**\n *\n *\n * This component provides functionality for\n * navigating between the different calculators.\n *\n * Calculators can be rendered individually without the\n * calculator navigation by ignoring this component and rendering\n * the specifc calculator directly.\n *\n *\n */\nexport const ResourceCalculatorV1 = ({\n enabledCalculatorIds,\n defaultActiveDeviceId,\n}: ResourceCalculatorProps) => {\n const { formatMessage } = useResourceCalculatorTranslation();\n const isMobile = useMedia(BREAKPOINTS.TABLET_AND_DOWN, false);\n\n const [activeCalculatorId, setActiveCalculatorId] = useState<CalculatorId>(\n enabledCalculatorIds[0],\n );\n\n const enabledCalculators = useMemo(() => {\n return Object.entries(RESOURCE_CALCULATORS)\n .filter(([key]) => enabledCalculatorIds.includes(key))\n .map(([, value]) => value);\n }, [enabledCalculatorIds]);\n\n const handleCalculatorSelect = useCallback(\n (calculatorId: CalculatorId) => {\n setActiveCalculatorId(calculatorId);\n },\n [setActiveCalculatorId],\n );\n\n const activeCalculatorLayout = useMemo(() => {\n switch (activeCalculatorId) {\n case CalculatorId.ComputeResourceCalculator:\n return (\n <ComputeResourceCalculator\n defaultActiveDeviceId={defaultActiveDeviceId}\n />\n );\n\n case CalculatorId.PoeCalculator:\n return <PoeCalculator />;\n }\n }, [activeCalculatorId, defaultActiveDeviceId]);\n\n const calculatorSelectProps: HorizontalOptionSelectProps = useMemo(() => {\n return {\n activeId: activeCalculatorId.toString(),\n items: enabledCalculators.map((calculator) => ({\n onSelect: () => handleCalculatorSelect(calculator.id),\n id: calculator.id as string,\n label: formatMessage(calculator.label),\n })),\n };\n }, [\n handleCalculatorSelect,\n activeCalculatorId,\n enabledCalculators,\n formatMessage,\n ]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.ResourceCalculatorContainer>\n {!isMobile && <S.Title>{formatMessage(\"capacityCalculator\")}</S.Title>}\n {enabledCalculatorIds.length > 1 && (\n <S.CalculatorSelectWrap>\n <HorizontalOptionSelect {...calculatorSelectProps} />\n </S.CalculatorSelectWrap>\n )}\n\n {activeCalculatorLayout}\n </S.ResourceCalculatorContainer>\n );\n};\n"],"names":["ResourceCalculatorV1","enabledCalculatorIds","defaultActiveDeviceId","formatMessage","useResourceCalculatorTranslation","isMobile","useMedia","BREAKPOINTS","TABLET_AND_DOWN","activeCalculatorId","setActiveCalculatorId","useState","enabledCalculators","useMemo","Object","entries","RESOURCE_CALCULATORS","filter","key","includes","map","value","handleCalculatorSelect","useCallback","calculatorId","activeCalculatorLayout","CalculatorId","ComputeResourceCalculator","jsx","PoeCalculator","calculatorSelectProps","activeId","toString","items","calculator","onSelect","id","label","jsxs","S.ResourceCalculatorContainer","children","S.Title","length","S.CalculatorSelectWrap","HorizontalOptionSelect"],"mappings":";;;;;;;;;;;;;;;;AA0BO,MAAMA,uBAAuBA,CAAC;EACnCC,oBAAA;EACAC;AACF,CAA+B,KAAA;EACvB,MAAA;IAAEC;GAAc,GAAIC,gCAAAA,CAAAA,gCAAiC,EAAA;EAC3D,MAAMC,QAAW,GAAAC,QAAA,CAAAA,QAAA,CAASC,MAAY,CAAAA,WAAA,CAAAC,eAAA,EAAiB,KAAK,CAAA;EAEtD,MAAA,CAACC,kBAAoB,EAAAC,qBAAqB,CAAI,GAAAC,KAAA,CAAAA,QAAA,CAClDV,qBAAqB,CAAC,CAAA,CACxB;EAEM,MAAAW,kBAAA,GAAqBC,KAAAA,CAAAA,QAAQ,MAAM;IAChC,OAAAC,MAAA,CAAOC,QAAQC,4BAAoB,CAAAA,oBAAA,CAAA,CACvCC,OAAO,CAAC,CAACC,GAAG,CAAM,KAAAjB,oBAAA,CAAqBkB,SAASD,GAAG,CAAC,EACpDE,GAAI,CA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EAAArC,aAAA,CAAc,oBAAoB;KAAE,CAAA,EAC3DF,oBAAA,CAAqByC,MAAS,GAAA,CAAA,IAC5Bd,eAAAA,UAAAA,CAAAA,GAAA,CAAAe,yBAAAA,CAAAA,oBAAA,EAAA;MACCH,QAAC,EAAAZ,eAAAA,UAAAA,CAAAA,GAAA,CAAAgB,sBAAAA,CAAAA,sBAAA,EAAA;QAAwB,GAAGd;MAAA,CAAuB;IACrD,CAAA,CAAA,EAGDL,sBAAA;EACH,CAAA,CAAA;AAEJ,CAAA;"}
@@ -2,7 +2,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import { useState, useMemo, useCallback } from 'react';
3
3
  import { useMedia } from 'react-use';
4
4
  import { BREAKPOINTS } from '../../constants/layout.mjs';
5
- import './components/index.mjs';
5
+ import { HorizontalOptionSelect } from '../HorizontalOptionSelect/HorizontalOptionSelect.mjs';
6
6
  import './ComputeResourceCalculator/index.mjs';
7
7
  import './PoeCalculator/index.mjs';
8
8
  import { RESOURCE_CALCULATORS } from './ResourceCalculator.constants.mjs';
@@ -11,7 +11,6 @@ import { CalculatorId } from './ResourceCalculator.types.mjs';
11
11
  import { useResourceCalculatorTranslation } from './translations/useResourceCalculatorTranslation.mjs';
12
12
  import { PoeCalculator } from './PoeCalculator/PoeCalculator.mjs';
13
13
  import { ComputeResourceCalculator } from './ComputeResourceCalculator/ComputeResourceCalculator.mjs';
14
- import { HorizontalOptionSelect } from './components/HorizontalOptionSelect/HorizontalOptionSelect.mjs';
15
14
  "use strict";
16
15
  const ResourceCalculatorV1 = ({
17
16
  enabledCalculatorIds,
@@ -1 +1 @@
1
- {"version":3,"file":"ResourceCalculator.mjs","sources":["../../../src/components/ResourceCalculatorV1/ResourceCalculator.tsx"],"sourcesContent":["import { useCallback, useMemo, useState } from \"react\";\nimport { useMedia } from \"react-use\";\n\nimport { BREAKPOINTS } from \"../../constants/layout\";\nimport { HorizontalOptionSelect } from \"./components\";\nimport type { HorizontalOptionSelectProps } from \"./components/HorizontalOptionSelect/HorizontalOptionSelect.types\";\nimport { ComputeResourceCalculator } from \"./ComputeResourceCalculator\";\nimport { PoeCalculator } from \"./PoeCalculator\";\nimport { RESOURCE_CALCULATORS } from \"./ResourceCalculator.constants\";\nimport * as S from \"./ResourceCalculator.styles\";\nimport type { ResourceCalculatorProps } from \"./ResourceCalculator.types\";\nimport { CalculatorId } from \"./ResourceCalculator.types\";\nimport { useResourceCalculatorTranslation } from \"./translations/useResourceCalculatorTranslation\";\n\n/**\n *\n *\n * This component provides functionality for\n * navigating between the different calculators.\n *\n * Calculators can be rendered individually without the\n * calculator navigation by ignoring this component and rendering\n * the specifc calculator directly.\n *\n *\n */\nexport const ResourceCalculatorV1 = ({\n enabledCalculatorIds,\n defaultActiveDeviceId,\n}: ResourceCalculatorProps) => {\n const { formatMessage } = useResourceCalculatorTranslation();\n const isMobile = useMedia(BREAKPOINTS.TABLET_AND_DOWN, false);\n\n const [activeCalculatorId, setActiveCalculatorId] = useState<CalculatorId>(\n enabledCalculatorIds[0],\n );\n\n const enabledCalculators = useMemo(() => {\n return Object.entries(RESOURCE_CALCULATORS)\n .filter(([key]) => enabledCalculatorIds.includes(key))\n .map(([, value]) => value);\n }, [enabledCalculatorIds]);\n\n const handleCalculatorSelect = useCallback(\n (calculatorId: CalculatorId) => {\n setActiveCalculatorId(calculatorId);\n },\n [setActiveCalculatorId],\n );\n\n const activeCalculatorLayout = useMemo(() => {\n switch (activeCalculatorId) {\n case CalculatorId.ComputeResourceCalculator:\n return (\n <ComputeResourceCalculator\n defaultActiveDeviceId={defaultActiveDeviceId}\n />\n );\n\n case CalculatorId.PoeCalculator:\n return <PoeCalculator />;\n }\n }, [activeCalculatorId, defaultActiveDeviceId]);\n\n const calculatorSelectProps: HorizontalOptionSelectProps = useMemo(() => {\n return {\n activeId: activeCalculatorId.toString(),\n items: enabledCalculators.map((calculator) => ({\n onSelect: () => handleCalculatorSelect(calculator.id),\n id: calculator.id as string,\n label: formatMessage(calculator.label),\n })),\n };\n }, [\n handleCalculatorSelect,\n activeCalculatorId,\n enabledCalculators,\n formatMessage,\n ]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.ResourceCalculatorContainer>\n {!isMobile && <S.Title>{formatMessage(\"capacityCalculator\")}</S.Title>}\n {enabledCalculatorIds.length > 1 && (\n <S.CalculatorSelectWrap>\n <HorizontalOptionSelect {...calculatorSelectProps} />\n </S.CalculatorSelectWrap>\n )}\n\n {activeCalculatorLayout}\n </S.ResourceCalculatorContainer>\n );\n};\n"],"names":["ResourceCalculatorV1","enabledCalculatorIds","defaultActiveDeviceId","formatMessage","useResourceCalculatorTranslation","isMobile","useMedia","BREAKPOINTS","TABLET_AND_DOWN","activeCalculatorId","setActiveCalculatorId","useState","enabledCalculators","useMemo","Object","entries","RESOURCE_CALCULATORS","filter","key","includes","map","value","handleCalculatorSelect","useCallback","calculatorId","activeCalculatorLayout","CalculatorId","ComputeResourceCalculator","jsx","PoeCalculator","calculatorSelectProps","activeId","toString","items","calculator","onSelect","id","label","jsxs","S.ResourceCalculatorContainer","children","S.Title","length","S.CalculatorSelectWrap","HorizontalOptionSelect"],"mappings":";;;;;;;;;;;;;;;AA0BO,MAAMA,uBAAuBA,CAAC;EACnCC,oBAAA;EACAC;AACF,CAA+B,KAAA;EACvB,MAAA;IAAEC;GAAc,GAAIC,gCAAiC,EAAA;EAC3D,MAAMC,QAAW,GAAAC,QAAA,CAASC,WAAY,CAAAC,eAAA,EAAiB,KAAK,CAAA;EAEtD,MAAA,CAACC,kBAAoB,EAAAC,qBAAqB,CAAI,GAAAC,QAAA,CAClDV,qBAAqB,CAAC,CAAA,CACxB;EAEM,MAAAW,kBAAA,GAAqBC,QAAQ,MAAM;IAChC,OAAAC,MAAA,CAAOC,QAAQC,oBAAoB,CAAA,CACvCC,OAAO,CAAC,CAACC,GAAG,CAAM,KAAAjB,oBAAA,CAAqBkB,SAASD,GAAG,CAAC,EACpDE,GAAI,CAAA,CAAC,GAAGC,KAA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GAAA,CAAAgB,sBAAA,EAAA;QAAwB,GAAGd;MAAA,CAAuB;IACrD,CAAA,CAAA,EAGDL,sBAAA;EACH,CAAA,CAAA;AAEJ,CAAA;"}
1
+ {"version":3,"file":"ResourceCalculator.mjs","sources":["../../../src/components/ResourceCalculatorV1/ResourceCalculator.tsx"],"sourcesContent":["import { useCallback, useMemo, useState } from \"react\";\nimport { useMedia } from \"react-use\";\n\nimport { BREAKPOINTS } from \"../../constants/layout\";\nimport { HorizontalOptionSelect } from \"../HorizontalOptionSelect/HorizontalOptionSelect\";\nimport type { HorizontalOptionSelectProps } from \"../HorizontalOptionSelect/HorizontalOptionSelect.types\";\nimport { ComputeResourceCalculator } from \"./ComputeResourceCalculator\";\nimport { PoeCalculator } from \"./PoeCalculator\";\nimport { RESOURCE_CALCULATORS } from \"./ResourceCalculator.constants\";\nimport * as S from \"./ResourceCalculator.styles\";\nimport type { ResourceCalculatorProps } from \"./ResourceCalculator.types\";\nimport { CalculatorId } from \"./ResourceCalculator.types\";\nimport { useResourceCalculatorTranslation } from \"./translations/useResourceCalculatorTranslation\";\n\n/**\n *\n *\n * This component provides functionality for\n * navigating between the different calculators.\n *\n * Calculators can be rendered individually without the\n * calculator navigation by ignoring this component and rendering\n * the specifc calculator directly.\n *\n *\n */\nexport const ResourceCalculatorV1 = ({\n enabledCalculatorIds,\n defaultActiveDeviceId,\n}: ResourceCalculatorProps) => {\n const { formatMessage } = useResourceCalculatorTranslation();\n const isMobile = useMedia(BREAKPOINTS.TABLET_AND_DOWN, false);\n\n const [activeCalculatorId, setActiveCalculatorId] = useState<CalculatorId>(\n enabledCalculatorIds[0],\n );\n\n const enabledCalculators = useMemo(() => {\n return Object.entries(RESOURCE_CALCULATORS)\n .filter(([key]) => enabledCalculatorIds.includes(key))\n .map(([, value]) => value);\n }, [enabledCalculatorIds]);\n\n const handleCalculatorSelect = useCallback(\n (calculatorId: CalculatorId) => {\n setActiveCalculatorId(calculatorId);\n },\n [setActiveCalculatorId],\n );\n\n const activeCalculatorLayout = useMemo(() => {\n switch (activeCalculatorId) {\n case CalculatorId.ComputeResourceCalculator:\n return (\n <ComputeResourceCalculator\n defaultActiveDeviceId={defaultActiveDeviceId}\n />\n );\n\n case CalculatorId.PoeCalculator:\n return <PoeCalculator />;\n }\n }, [activeCalculatorId, defaultActiveDeviceId]);\n\n const calculatorSelectProps: HorizontalOptionSelectProps = useMemo(() => {\n return {\n activeId: activeCalculatorId.toString(),\n items: enabledCalculators.map((calculator) => ({\n onSelect: () => handleCalculatorSelect(calculator.id),\n id: calculator.id as string,\n label: formatMessage(calculator.label),\n })),\n };\n }, [\n handleCalculatorSelect,\n activeCalculatorId,\n enabledCalculators,\n formatMessage,\n ]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.ResourceCalculatorContainer>\n {!isMobile && <S.Title>{formatMessage(\"capacityCalculator\")}</S.Title>}\n {enabledCalculatorIds.length > 1 && (\n <S.CalculatorSelectWrap>\n <HorizontalOptionSelect {...calculatorSelectProps} />\n </S.CalculatorSelectWrap>\n )}\n\n {activeCalculatorLayout}\n </S.ResourceCalculatorContainer>\n );\n};\n"],"names":["ResourceCalculatorV1","enabledCalculatorIds","defaultActiveDeviceId","formatMessage","useResourceCalculatorTranslation","isMobile","useMedia","BREAKPOINTS","TABLET_AND_DOWN","activeCalculatorId","setActiveCalculatorId","useState","enabledCalculators","useMemo","Object","entries","RESOURCE_CALCULATORS","filter","key","includes","map","value","handleCalculatorSelect","useCallback","calculatorId","activeCalculatorLayout","CalculatorId","ComputeResourceCalculator","jsx","PoeCalculator","calculatorSelectProps","activeId","toString","items","calculator","onSelect","id","label","jsxs","S.ResourceCalculatorContainer","children","S.Title","length","S.CalculatorSelectWrap","HorizontalOptionSelect"],"mappings":";;;;;;;;;;;;;;AA0BO,MAAMA,uBAAuBA,CAAC;EACnCC,oBAAA;EACAC;AACF,CAA+B,KAAA;EACvB,MAAA;IAAEC;GAAc,GAAIC,gCAAiC,EAAA;EAC3D,MAAM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ACrC,CAAA;IAAA,CACJ;EAAA,CACC,EAAA,CACDf,sBAAA,EACAb,kBAAA,EACAG,kBAAA,EACAT,aAAA,CACD,CAAA;EAMC,sBAAAmC,IAAA,CAACC,2BAAE,EAAF;IACEC,QAAA,EAAA,CAAA,CAACnC,YAAa,eAAAuB,GAAA,CAAAa,OAAA;MAASD,QAAA,EAAArC,aAAA,CAAc,oBAAoB;KAAE,CAAA,EAC3DF,oBAAA,CAAqByC,MAAS,GAAA,CAAA,IAC5B,eAAAd,GAAA,CAAAe,oBAAA,EAAA;MACCH,QAAC,EAAA,eAAAZ,GAAA,CAAAgB,sBAAA,EAAA;QAAwB,GAAGd;MAAA,CAAuB;IACrD,CAAA,CAAA,EAGDL,sBAAA;EACH,CAAA,CAAA;AAEJ,CAAA;"}
@@ -0,0 +1,27 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', {
4
+ value: true
5
+ });
6
+ var efg = require("../../../../assets/efg.png");
7
+ function _interopDefault(e) {
8
+ return e && e.__esModule ? e : {
9
+ default: e
10
+ };
11
+ }
12
+ var efg__default = /*#__PURE__*/_interopDefault(efg);
13
+ Object.defineProperty(exports, "default", {
14
+ enumerable: true,
15
+ get: function () {
16
+ return efg__default["default"];
17
+ }
18
+ });
19
+ Object.keys(efg).forEach(function (k) {
20
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
21
+ enumerable: true,
22
+ get: function () {
23
+ return efg[k];
24
+ }
25
+ });
26
+ });
27
+ //# sourceMappingURL=efg.png.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"efg.png.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,3 @@
1
+ export * from "../../../../assets/efg.png";
2
+ export { default } from "../../../../assets/efg.png";
3
+ //# sourceMappingURL=efg.png.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"efg.png.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,27 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', {
4
+ value: true
5
+ });
6
+ var ucgMax = require("../../../../assets/ucg-max.png");
7
+ function _interopDefault(e) {
8
+ return e && e.__esModule ? e : {
9
+ default: e
10
+ };
11
+ }
12
+ var ucgMax__default = /*#__PURE__*/_interopDefault(ucgMax);
13
+ Object.defineProperty(exports, "default", {
14
+ enumerable: true,
15
+ get: function () {
16
+ return ucgMax__default["default"];
17
+ }
18
+ });
19
+ Object.keys(ucgMax).forEach(function (k) {
20
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
21
+ enumerable: true,
22
+ get: function () {
23
+ return ucgMax[k];
24
+ }
25
+ });
26
+ });
27
+ //# sourceMappingURL=ucg-max.png.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ucg-max.png.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,3 @@
1
+ export * from "../../../../assets/ucg-max.png";
2
+ export { default } from "../../../../assets/ucg-max.png";
3
+ //# sourceMappingURL=ucg-max.png.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ucg-max.png.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -4,7 +4,6 @@ Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
6
  var access = "Access";
7
- var add = "Add";
8
7
  var addPorts = "Add Ports";
9
8
  var adjustYourDevice = "Adjust your device selection to view recommended PoE switches.";
10
9
  var assignPoeDevices = "Assign PoE devices to the ports above to view recommended PoE switches.";
@@ -12,6 +11,7 @@ var capacityCalculator = "Capacity Calculator";
12
11
  var capacityExceeded = "Recommended Capacity Exceeded: This deployment may experience degraded performance.";
13
12
  var cloudKeyNote = "* The Cloud Key Gen2 Plus only supports hard drives that can operate on 5V power. Hard drives that require additional power are not supported.";
14
13
  var computeResources = "Compute Resources";
14
+ var add = "Add";
15
15
  var estimatesMayVary = "Compute Resources are estimates. Results may vary.";
16
16
  var network = "Network";
17
17
  var notAvailable = "Not Available";
@@ -31,7 +31,6 @@ var watts = "Watts";
31
31
  var EN_TRANSLATION = {
32
32
  access: access,
33
33
  "access.doors": "Doors",
34
- add: add,
35
34
  addPorts: addPorts,
36
35
  adjustYourDevice: adjustYourDevice,
37
36
  assignPoeDevices: assignPoeDevices,
@@ -49,10 +48,13 @@ var EN_TRANSLATION = {
49
48
  "device.CloudKey+": "CloudKey+",
50
49
  "device.UDM Pro / SE": "UDM Pro / SE",
51
50
  "device.UDM Pro Max": "UDM Pro Max",
52
- "device.UDR": "UDR",
53
- "device.UDW": "UDW",
54
51
  "device.UNVR": "UNVR",
55
52
  "device.UNVR Pro": "UNVR Pro",
53
+ "device.EFG": "EFG",
54
+ "device.UCG Max": "UCG Max",
55
+ "device.UDW": "UDW",
56
+ "device.UDR": "UDR",
57
+ add: add,
56
58
  estimatesMayVary: estimatesMayVary,
57
59
  network: network,
58
60
  "network.accessPoints": "Access Points",
@@ -1 +1 @@
1
- {"version":3,"file":"en.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"en.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,5 +1,4 @@
1
1
  var access = "Access";
2
- var add = "Add";
3
2
  var addPorts = "Add Ports";
4
3
  var adjustYourDevice = "Adjust your device selection to view recommended PoE switches.";
5
4
  var assignPoeDevices = "Assign PoE devices to the ports above to view recommended PoE switches.";
@@ -7,6 +6,7 @@ var capacityCalculator = "Capacity Calculator";
7
6
  var capacityExceeded = "Recommended Capacity Exceeded: This deployment may experience degraded performance.";
8
7
  var cloudKeyNote = "* The Cloud Key Gen2 Plus only supports hard drives that can operate on 5V power. Hard drives that require additional power are not supported.";
9
8
  var computeResources = "Compute Resources";
9
+ var add = "Add";
10
10
  var estimatesMayVary = "Compute Resources are estimates. Results may vary.";
11
11
  var network = "Network";
12
12
  var notAvailable = "Not Available";
@@ -26,7 +26,6 @@ var watts = "Watts";
26
26
  var EN_TRANSLATION = {
27
27
  access: access,
28
28
  "access.doors": "Doors",
29
- add: add,
30
29
  addPorts: addPorts,
31
30
  adjustYourDevice: adjustYourDevice,
32
31
  assignPoeDevices: assignPoeDevices,
@@ -44,10 +43,13 @@ var EN_TRANSLATION = {
44
43
  "device.CloudKey+": "CloudKey+",
45
44
  "device.UDM Pro / SE": "UDM Pro / SE",
46
45
  "device.UDM Pro Max": "UDM Pro Max",
47
- "device.UDR": "UDR",
48
- "device.UDW": "UDW",
49
46
  "device.UNVR": "UNVR",
50
47
  "device.UNVR Pro": "UNVR Pro",
48
+ "device.EFG": "EFG",
49
+ "device.UCG Max": "UCG Max",
50
+ "device.UDW": "UDW",
51
+ "device.UDR": "UDR",
52
+ add: add,
51
53
  estimatesMayVary: estimatesMayVary,
52
54
  network: network,
53
55
  "network.accessPoints": "Access Points",
@@ -1 +1 @@
1
- {"version":3,"file":"en.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"en.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  export declare const useResourceCalculatorTranslation: () => {
2
- intl: import("@formatjs/intl").IntlShape<"add" | "network" | "protect" | "talk" | "access" | "portCount" | "ports" | "capacityCalculator" | "access.doors" | "addPorts" | "adjustYourDevice" | "assignPoeDevices" | "capacityExceeded" | "category.Access Points" | "category.Cameras" | "category.Connect Display" | "category.Door Access" | "category.Talk" | "cloudKeyNote" | "computeResources" | "designCenter.startYourProject" | "designCenter.title" | "device.CloudKey+" | "device.UDM Pro / SE" | "device.UDM Pro Max" | "device.UDR" | "device.UDW" | "device.UNVR" | "device.UNVR Pro" | "estimatesMayVary" | "network.accessPoints" | "network.adBlocking" | "network.clientsPerAP" | "network.maxFeaturesNote" | "network.qos" | "network.securityDetections" | "network.vpn" | "notAvailable" | "poeCapacity" | "poeConsumer.AC In-Wall" | "poeConsumer.AC Lite" | "poeConsumer.AC Long-Range" | "poeConsumer.AC Mesh" | "poeConsumer.AC Mesh Pro" | "poeConsumer.AC Pro" | "poeConsumer.AI 360" | "poeConsumer.AI Bullet" | "poeConsumer.AI DSLR" | "poeConsumer.AI DSLR LD" | "poeConsumer.AI Pro" | "poeConsumer.AI Theta" | "poeConsumer.Access Hub" | "poeConsumer.Access Reader G2" | "poeConsumer.Access Reader G2 Pro" | "poeConsumer.Access Reader Lite" | "poeConsumer.Analog Telephone Adapter" | "poeConsumer.Building Bridge" | "poeConsumer.Building Bridge XG" | "poeConsumer.Connect Display" | "poeConsumer.G3 Flex" | "poeConsumer.G4 Bullet" | "poeConsumer.G4 Dome" | "poeConsumer.G4 Doorbell Pro PoE Kit" | "poeConsumer.G4 PTZ" | "poeConsumer.G4 Pro" | "poeConsumer.G5 Bullet" | "poeConsumer.G5 Dome" | "poeConsumer.G5 Flex" | "poeConsumer.G5 Pro" | "poeConsumer.G5 Pro with Enhancer" | "poeConsumer.Phone Touch" | "poeConsumer.Phone Touch Max" | "poeConsumer.Protect Floodlight" | "poeConsumer.Protect Viewport" | "poeConsumer.Swiss Army Knife Ultra" | "poeConsumer.U6 Enterprise" | "poeConsumer.U6 Enterprise In-Wall" | "poeConsumer.U6 In-Wall" | "poeConsumer.U6 Lite" | "poeConsumer.U6 Long-Range" | "poeConsumer.U6 Mesh" | "poeConsumer.U6 Pro" | "poeConsumer.U6+" | "poeConsumer.U7 Pro" | "poeConsumer.WiFi BaseStation XG" | "poeConsumer.empty" | "poePowerBudget" | "poeProvider.8 PoE (Gen1)" | "poeProvider.8 PoE, SFP (Gen1)" | "poeProvider.Enterprise 24 PoE" | "poeProvider.Enterprise 48 PoE" | "poeProvider.Enterprise 8 PoE" | "poeProvider.Flex" | "poeProvider.Industrial" | "poeProvider.Lite 16 PoE" | "poeProvider.Lite 8 PoE" | "poeProvider.Mission Critical" | "poeProvider.Pro 24 PoE" | "poeProvider.Pro 48 PoE" | "poeProvider.Pro 8 PoE" | "poeProvider.Pro Max 24 PoE" | "poeProvider.Pro Max 48 PoE" | "poeProvider.Standard 16 PoE" | "poeProvider.Standard 16 PoE (Gen1)" | "poeProvider.Standard 24 PoE" | "poeProvider.Standard 24 PoE (Gen1)" | "poeProvider.Standard 48 PoE" | "poeProvider.Standard 48 PoE (Gen1)" | "poeProvider.Ultra" | "poeProvider.Ultra 210W" | "poeProvider.Ultra 60W" | "poeProvider.XG 6 PoE (Gen1)" | "protect.2kCameras" | "protect.4kCameras" | "protect.CkG2PlusNote" | "protect.DreamWallNote" | "protect.days" | "protect.hdCameras" | "protect.noStorage" | "protect.storageDriveSize" | "protect.storageProtection" | "recommendedPoeSwitches" | "removePorts" | "requirements" | "showLess" | "showMore" | "systemCapacity" | "talk.callRecording" | "talk.phones" | "watts">;
3
- formatMessage: (id: "add" | "network" | "protect" | "talk" | "access" | "portCount" | "ports" | "capacityCalculator" | "access.doors" | "addPorts" | "adjustYourDevice" | "assignPoeDevices" | "capacityExceeded" | "category.Access Points" | "category.Cameras" | "category.Connect Display" | "category.Door Access" | "category.Talk" | "cloudKeyNote" | "computeResources" | "designCenter.startYourProject" | "designCenter.title" | "device.CloudKey+" | "device.UDM Pro / SE" | "device.UDM Pro Max" | "device.UDR" | "device.UDW" | "device.UNVR" | "device.UNVR Pro" | "estimatesMayVary" | "network.accessPoints" | "network.adBlocking" | "network.clientsPerAP" | "network.maxFeaturesNote" | "network.qos" | "network.securityDetections" | "network.vpn" | "notAvailable" | "poeCapacity" | "poeConsumer.AC In-Wall" | "poeConsumer.AC Lite" | "poeConsumer.AC Long-Range" | "poeConsumer.AC Mesh" | "poeConsumer.AC Mesh Pro" | "poeConsumer.AC Pro" | "poeConsumer.AI 360" | "poeConsumer.AI Bullet" | "poeConsumer.AI DSLR" | "poeConsumer.AI DSLR LD" | "poeConsumer.AI Pro" | "poeConsumer.AI Theta" | "poeConsumer.Access Hub" | "poeConsumer.Access Reader G2" | "poeConsumer.Access Reader G2 Pro" | "poeConsumer.Access Reader Lite" | "poeConsumer.Analog Telephone Adapter" | "poeConsumer.Building Bridge" | "poeConsumer.Building Bridge XG" | "poeConsumer.Connect Display" | "poeConsumer.G3 Flex" | "poeConsumer.G4 Bullet" | "poeConsumer.G4 Dome" | "poeConsumer.G4 Doorbell Pro PoE Kit" | "poeConsumer.G4 PTZ" | "poeConsumer.G4 Pro" | "poeConsumer.G5 Bullet" | "poeConsumer.G5 Dome" | "poeConsumer.G5 Flex" | "poeConsumer.G5 Pro" | "poeConsumer.G5 Pro with Enhancer" | "poeConsumer.Phone Touch" | "poeConsumer.Phone Touch Max" | "poeConsumer.Protect Floodlight" | "poeConsumer.Protect Viewport" | "poeConsumer.Swiss Army Knife Ultra" | "poeConsumer.U6 Enterprise" | "poeConsumer.U6 Enterprise In-Wall" | "poeConsumer.U6 In-Wall" | "poeConsumer.U6 Lite" | "poeConsumer.U6 Long-Range" | "poeConsumer.U6 Mesh" | "poeConsumer.U6 Pro" | "poeConsumer.U6+" | "poeConsumer.U7 Pro" | "poeConsumer.WiFi BaseStation XG" | "poeConsumer.empty" | "poePowerBudget" | "poeProvider.8 PoE (Gen1)" | "poeProvider.8 PoE, SFP (Gen1)" | "poeProvider.Enterprise 24 PoE" | "poeProvider.Enterprise 48 PoE" | "poeProvider.Enterprise 8 PoE" | "poeProvider.Flex" | "poeProvider.Industrial" | "poeProvider.Lite 16 PoE" | "poeProvider.Lite 8 PoE" | "poeProvider.Mission Critical" | "poeProvider.Pro 24 PoE" | "poeProvider.Pro 48 PoE" | "poeProvider.Pro 8 PoE" | "poeProvider.Pro Max 24 PoE" | "poeProvider.Pro Max 48 PoE" | "poeProvider.Standard 16 PoE" | "poeProvider.Standard 16 PoE (Gen1)" | "poeProvider.Standard 24 PoE" | "poeProvider.Standard 24 PoE (Gen1)" | "poeProvider.Standard 48 PoE" | "poeProvider.Standard 48 PoE (Gen1)" | "poeProvider.Ultra" | "poeProvider.Ultra 210W" | "poeProvider.Ultra 60W" | "poeProvider.XG 6 PoE (Gen1)" | "protect.2kCameras" | "protect.4kCameras" | "protect.CkG2PlusNote" | "protect.DreamWallNote" | "protect.days" | "protect.hdCameras" | "protect.noStorage" | "protect.storageDriveSize" | "protect.storageProtection" | "recommendedPoeSwitches" | "removePorts" | "requirements" | "showLess" | "showMore" | "systemCapacity" | "talk.callRecording" | "talk.phones" | "watts", values?: {
2
+ intl: import("@formatjs/intl").IntlShape<"add" | "network" | "protect" | "talk" | "access" | "portCount" | "ports" | "capacityCalculator" | "access.doors" | "addPorts" | "adjustYourDevice" | "assignPoeDevices" | "capacityExceeded" | "category.Access Points" | "category.Cameras" | "category.Connect Display" | "category.Door Access" | "category.Talk" | "cloudKeyNote" | "computeResources" | "designCenter.startYourProject" | "designCenter.title" | "device.CloudKey+" | "device.UDM Pro / SE" | "device.UDM Pro Max" | "device.UNVR" | "device.UNVR Pro" | "device.EFG" | "device.UCG Max" | "device.UDW" | "device.UDR" | "estimatesMayVary" | "network.accessPoints" | "network.adBlocking" | "network.clientsPerAP" | "network.maxFeaturesNote" | "network.qos" | "network.securityDetections" | "network.vpn" | "notAvailable" | "poeCapacity" | "poeConsumer.AC In-Wall" | "poeConsumer.AC Lite" | "poeConsumer.AC Long-Range" | "poeConsumer.AC Mesh" | "poeConsumer.AC Mesh Pro" | "poeConsumer.AC Pro" | "poeConsumer.AI 360" | "poeConsumer.AI Bullet" | "poeConsumer.AI DSLR" | "poeConsumer.AI DSLR LD" | "poeConsumer.AI Pro" | "poeConsumer.AI Theta" | "poeConsumer.Access Hub" | "poeConsumer.Access Reader G2" | "poeConsumer.Access Reader G2 Pro" | "poeConsumer.Access Reader Lite" | "poeConsumer.Analog Telephone Adapter" | "poeConsumer.Building Bridge" | "poeConsumer.Building Bridge XG" | "poeConsumer.Connect Display" | "poeConsumer.G3 Flex" | "poeConsumer.G4 Bullet" | "poeConsumer.G4 Dome" | "poeConsumer.G4 Doorbell Pro PoE Kit" | "poeConsumer.G4 PTZ" | "poeConsumer.G4 Pro" | "poeConsumer.G5 Bullet" | "poeConsumer.G5 Dome" | "poeConsumer.G5 Flex" | "poeConsumer.G5 Pro" | "poeConsumer.G5 Pro with Enhancer" | "poeConsumer.Phone Touch" | "poeConsumer.Phone Touch Max" | "poeConsumer.Protect Floodlight" | "poeConsumer.Protect Viewport" | "poeConsumer.Swiss Army Knife Ultra" | "poeConsumer.U6 Enterprise" | "poeConsumer.U6 Enterprise In-Wall" | "poeConsumer.U6 In-Wall" | "poeConsumer.U6 Lite" | "poeConsumer.U6 Long-Range" | "poeConsumer.U6 Mesh" | "poeConsumer.U6 Pro" | "poeConsumer.U6+" | "poeConsumer.U7 Pro" | "poeConsumer.WiFi BaseStation XG" | "poeConsumer.empty" | "poePowerBudget" | "poeProvider.8 PoE (Gen1)" | "poeProvider.8 PoE, SFP (Gen1)" | "poeProvider.Enterprise 24 PoE" | "poeProvider.Enterprise 48 PoE" | "poeProvider.Enterprise 8 PoE" | "poeProvider.Flex" | "poeProvider.Industrial" | "poeProvider.Lite 16 PoE" | "poeProvider.Lite 8 PoE" | "poeProvider.Mission Critical" | "poeProvider.Pro 24 PoE" | "poeProvider.Pro 48 PoE" | "poeProvider.Pro 8 PoE" | "poeProvider.Pro Max 24 PoE" | "poeProvider.Pro Max 48 PoE" | "poeProvider.Standard 16 PoE" | "poeProvider.Standard 16 PoE (Gen1)" | "poeProvider.Standard 24 PoE" | "poeProvider.Standard 24 PoE (Gen1)" | "poeProvider.Standard 48 PoE" | "poeProvider.Standard 48 PoE (Gen1)" | "poeProvider.Ultra" | "poeProvider.Ultra 210W" | "poeProvider.Ultra 60W" | "poeProvider.XG 6 PoE (Gen1)" | "protect.2kCameras" | "protect.4kCameras" | "protect.CkG2PlusNote" | "protect.DreamWallNote" | "protect.days" | "protect.hdCameras" | "protect.noStorage" | "protect.storageDriveSize" | "protect.storageProtection" | "recommendedPoeSwitches" | "removePorts" | "requirements" | "showLess" | "showMore" | "systemCapacity" | "talk.callRecording" | "talk.phones" | "watts">;
3
+ formatMessage: (id: "add" | "network" | "protect" | "talk" | "access" | "portCount" | "ports" | "capacityCalculator" | "access.doors" | "addPorts" | "adjustYourDevice" | "assignPoeDevices" | "capacityExceeded" | "category.Access Points" | "category.Cameras" | "category.Connect Display" | "category.Door Access" | "category.Talk" | "cloudKeyNote" | "computeResources" | "designCenter.startYourProject" | "designCenter.title" | "device.CloudKey+" | "device.UDM Pro / SE" | "device.UDM Pro Max" | "device.UNVR" | "device.UNVR Pro" | "device.EFG" | "device.UCG Max" | "device.UDW" | "device.UDR" | "estimatesMayVary" | "network.accessPoints" | "network.adBlocking" | "network.clientsPerAP" | "network.maxFeaturesNote" | "network.qos" | "network.securityDetections" | "network.vpn" | "notAvailable" | "poeCapacity" | "poeConsumer.AC In-Wall" | "poeConsumer.AC Lite" | "poeConsumer.AC Long-Range" | "poeConsumer.AC Mesh" | "poeConsumer.AC Mesh Pro" | "poeConsumer.AC Pro" | "poeConsumer.AI 360" | "poeConsumer.AI Bullet" | "poeConsumer.AI DSLR" | "poeConsumer.AI DSLR LD" | "poeConsumer.AI Pro" | "poeConsumer.AI Theta" | "poeConsumer.Access Hub" | "poeConsumer.Access Reader G2" | "poeConsumer.Access Reader G2 Pro" | "poeConsumer.Access Reader Lite" | "poeConsumer.Analog Telephone Adapter" | "poeConsumer.Building Bridge" | "poeConsumer.Building Bridge XG" | "poeConsumer.Connect Display" | "poeConsumer.G3 Flex" | "poeConsumer.G4 Bullet" | "poeConsumer.G4 Dome" | "poeConsumer.G4 Doorbell Pro PoE Kit" | "poeConsumer.G4 PTZ" | "poeConsumer.G4 Pro" | "poeConsumer.G5 Bullet" | "poeConsumer.G5 Dome" | "poeConsumer.G5 Flex" | "poeConsumer.G5 Pro" | "poeConsumer.G5 Pro with Enhancer" | "poeConsumer.Phone Touch" | "poeConsumer.Phone Touch Max" | "poeConsumer.Protect Floodlight" | "poeConsumer.Protect Viewport" | "poeConsumer.Swiss Army Knife Ultra" | "poeConsumer.U6 Enterprise" | "poeConsumer.U6 Enterprise In-Wall" | "poeConsumer.U6 In-Wall" | "poeConsumer.U6 Lite" | "poeConsumer.U6 Long-Range" | "poeConsumer.U6 Mesh" | "poeConsumer.U6 Pro" | "poeConsumer.U6+" | "poeConsumer.U7 Pro" | "poeConsumer.WiFi BaseStation XG" | "poeConsumer.empty" | "poePowerBudget" | "poeProvider.8 PoE (Gen1)" | "poeProvider.8 PoE, SFP (Gen1)" | "poeProvider.Enterprise 24 PoE" | "poeProvider.Enterprise 48 PoE" | "poeProvider.Enterprise 8 PoE" | "poeProvider.Flex" | "poeProvider.Industrial" | "poeProvider.Lite 16 PoE" | "poeProvider.Lite 8 PoE" | "poeProvider.Mission Critical" | "poeProvider.Pro 24 PoE" | "poeProvider.Pro 48 PoE" | "poeProvider.Pro 8 PoE" | "poeProvider.Pro Max 24 PoE" | "poeProvider.Pro Max 48 PoE" | "poeProvider.Standard 16 PoE" | "poeProvider.Standard 16 PoE (Gen1)" | "poeProvider.Standard 24 PoE" | "poeProvider.Standard 24 PoE (Gen1)" | "poeProvider.Standard 48 PoE" | "poeProvider.Standard 48 PoE (Gen1)" | "poeProvider.Ultra" | "poeProvider.Ultra 210W" | "poeProvider.Ultra 60W" | "poeProvider.XG 6 PoE (Gen1)" | "protect.2kCameras" | "protect.4kCameras" | "protect.CkG2PlusNote" | "protect.DreamWallNote" | "protect.days" | "protect.hdCameras" | "protect.noStorage" | "protect.storageDriveSize" | "protect.storageProtection" | "recommendedPoeSwitches" | "removePorts" | "requirements" | "showLess" | "showMore" | "systemCapacity" | "talk.callRecording" | "talk.phones" | "watts", values?: {
4
4
  [x: string]: import("intl-messageformat").PrimitiveType | import("intl-messageformat").FormatXMLElementFn<string, string>;
5
5
  }) => string;
6
6
  };
@@ -1,15 +1,15 @@
1
1
  export declare const TOOLTIP_CLASS_NAME = "custom-tooltip";
2
2
  export declare const Tooltip: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<{
3
- message?: React.ReactNode;
3
+ message?: import("react").ReactNode;
4
4
  tooltipMessageClassName?: string;
5
5
  messageProps?: Omit<import("@ubnt/ui-components").TextProps, "forwardedRef">;
6
6
  omitTextWrapper?: boolean;
7
7
  leftRightInset?: number;
8
8
  isHoverable?: boolean;
9
9
  } & {
10
- title?: React.ReactNode;
11
- description?: React.ReactNode;
12
- children?: React.ReactNode;
10
+ title?: import("react").ReactNode;
11
+ description?: import("react").ReactNode;
12
+ children?: import("react").ReactNode;
13
13
  isOpen?: boolean;
14
14
  disableHover?: boolean;
15
15
  isInteractive?: boolean;
@@ -25,7 +25,7 @@ export declare const Tooltip: import("styled-components").StyledComponent<import
25
25
  animate?: boolean;
26
26
  noWrap?: boolean;
27
27
  className?: string;
28
- style?: React.CSSProperties;
28
+ style?: import("react").CSSProperties;
29
29
  portal?: boolean;
30
30
  onClick?: import("react").MouseEventHandler;
31
31
  } & Omit<import("react").HTMLAttributes<HTMLElement>, "title"> & import("react").RefAttributes<HTMLElement>>, import("styled-components").DefaultTheme, {}, never>;