@ubnt/store.core 9.57.0-beta.2 → 9.57.0-new-design

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (689) hide show
  1. package/CHANGELOG.md +98 -545
  2. package/lib/_virtual/_virtual_multi-entry.js +15 -25
  3. package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
  4. package/lib/_virtual/_virtual_multi-entry.mjs +13 -13
  5. package/lib/apis/smartcat.d.ts +12 -2
  6. package/lib/apis/smartcat.js +27 -4
  7. package/lib/apis/smartcat.js.map +1 -1
  8. package/lib/apis/smartcat.mjs +27 -4
  9. package/lib/apis/smartcat.mjs.map +1 -1
  10. package/lib/assets/cart-secondary.svg +5 -0
  11. package/lib/assets/icon-location-pin.svg +5 -0
  12. package/lib/assets/icons/{menu/icon-globe.svg.js → cart-secondary.svg.js} +6 -6
  13. package/lib/assets/icons/cart-secondary.svg.js.map +1 -0
  14. package/lib/assets/icons/cart-secondary.svg.mjs +3 -0
  15. package/lib/assets/icons/cart-secondary.svg.mjs.map +1 -0
  16. package/lib/{components/ModelCompareV3/assets/crestron.svg.js → assets/icons/menu/icon-location-pin.svg.js} +6 -6
  17. package/lib/assets/icons/menu/icon-location-pin.svg.js.map +1 -0
  18. package/lib/assets/icons/menu/icon-location-pin.svg.mjs +3 -0
  19. package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +1 -0
  20. package/lib/assets/logoUnifi.svg +10 -2
  21. package/lib/assets/udmPro.jpg +0 -0
  22. package/lib/assets/udmPro2.jpg +0 -0
  23. package/lib/assets/udmProMax.jpg +0 -0
  24. package/lib/assets/udmProMax2.jpg +0 -0
  25. package/lib/assets/udmProSpecial.jpg +0 -0
  26. package/lib/assets/udmProSpecial2.jpg +0 -0
  27. package/lib/components/Accordion/Accordion.js +4 -4
  28. package/lib/components/Avatar/Avatar.js +2 -2
  29. package/lib/components/Button/Button.js +12 -5
  30. package/lib/components/Button/Button.js.map +1 -1
  31. package/lib/components/Button/Button.mjs +8 -1
  32. package/lib/components/Button/Button.mjs.map +1 -1
  33. package/lib/components/Button/CartButton.d.ts +3 -1
  34. package/lib/components/Button/CartButton.js +11 -6
  35. package/lib/components/Button/CartButton.js.map +1 -1
  36. package/lib/components/Button/CartButton.mjs +8 -4
  37. package/lib/components/Button/CartButton.mjs.map +1 -1
  38. package/lib/components/ButtonGroup/ButtonGroup.d.ts +1 -1
  39. package/lib/components/ButtonGroup/ButtonGroup.js +16 -9
  40. package/lib/components/ButtonGroup/ButtonGroup.js.map +1 -1
  41. package/lib/components/ButtonGroup/ButtonGroup.mjs +16 -9
  42. package/lib/components/ButtonGroup/ButtonGroup.mjs.map +1 -1
  43. package/lib/components/ButtonGroup/ButtonGroup.styles.d.ts +10 -6
  44. package/lib/components/ButtonGroup/ButtonGroup.styles.js +60 -20
  45. package/lib/components/ButtonGroup/ButtonGroup.styles.js.map +1 -1
  46. package/lib/components/ButtonGroup/ButtonGroup.styles.mjs +60 -20
  47. package/lib/components/ButtonGroup/ButtonGroup.styles.mjs.map +1 -1
  48. package/lib/components/ButtonGroup/ButtonGroup.types.d.ts +5 -0
  49. package/lib/components/ButtonGroupBasic/index.stories.d.ts +6 -0
  50. package/lib/components/CardSection/Card/Card.js +6 -6
  51. package/lib/components/CardSection/CardSection.js +2 -2
  52. package/lib/components/CardSection/CardSection.styles.d.ts +1 -1
  53. package/lib/components/CartIcon/CartIcon.js +2 -2
  54. package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +4 -2
  55. package/lib/components/CategoryTabs/CategoryTabs.styles.js +8 -5
  56. package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
  57. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +7 -6
  58. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
  59. package/lib/components/Checkbox/Checkbox.js +4 -4
  60. package/lib/components/CloserLookSection/CloserLookSection.js +11 -11
  61. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.js +5 -5
  62. package/lib/components/Compare/Compare.styles.d.ts +5 -5
  63. package/lib/components/Container/Container.d.ts +1 -1
  64. package/lib/components/Container/Container.js +5 -4
  65. package/lib/components/Container/Container.js.map +1 -1
  66. package/lib/components/Container/Container.mjs +5 -4
  67. package/lib/components/Container/Container.mjs.map +1 -1
  68. package/lib/components/Container/index.stories.d.ts +5 -5
  69. package/lib/components/CustomImage/CustomImage.js +12 -12
  70. package/lib/components/Explore/Explore.js +5 -5
  71. package/lib/components/FeaturesSection_deprecated/Features/Features.js +2 -2
  72. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +22 -22
  73. package/lib/components/Footer/Footer.js +2 -2
  74. package/lib/components/Footer/hooks/useFooterContent.js +5 -5
  75. package/lib/components/Gallery/Gallery.context.js +17 -17
  76. package/lib/components/Gallery/Gallery.js +9 -9
  77. package/lib/components/Gallery/GalleryControls/GalleryControls.js +4 -4
  78. package/lib/components/Gallery/GalleryItem/GalleryItem.js +8 -8
  79. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.js +8 -8
  80. package/lib/components/GridGallery/GridGallery.js +8 -8
  81. package/lib/components/GridGallery/GridModal/GridModal.js +6 -6
  82. package/lib/components/Header/AccountFrame/AccountFrame.js +11 -11
  83. package/lib/components/Header/AccountFrame/Mobile/Mobile.js +4 -4
  84. package/lib/components/Header/AccountMenu/AccountMenu.js +30 -20
  85. package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
  86. package/lib/components/Header/AccountMenu/AccountMenu.mjs +13 -3
  87. package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
  88. package/lib/components/Header/CartModal/Empty/Empty.js +3 -3
  89. package/lib/components/Header/CartModalV2/CartModal.js +5 -5
  90. package/lib/components/Header/CartModalV2/Item/Item.js +4 -4
  91. package/lib/components/Header/CartModalV2/Item/Item.styles.d.ts +1 -1
  92. package/lib/components/Header/Header.js +40 -40
  93. package/lib/components/Header/Header.js.map +1 -1
  94. package/lib/components/Header/Header.mjs +6 -6
  95. package/lib/components/Header/Header.mjs.map +1 -1
  96. package/lib/components/Header/Header.stories.d.ts +111 -0
  97. package/lib/components/Header/Header.styles.d.ts +7 -12
  98. package/lib/components/Header/Header.styles.js +10 -32
  99. package/lib/components/Header/Header.styles.js.map +1 -1
  100. package/lib/components/Header/Header.styles.mjs +10 -31
  101. package/lib/components/Header/Header.styles.mjs.map +1 -1
  102. package/lib/components/Header/Header.types.d.ts +29 -5
  103. package/lib/components/Header/Header.types.js +2 -1
  104. package/lib/components/Header/Header.types.js.map +1 -1
  105. package/lib/components/Header/Header.types.mjs +2 -1
  106. package/lib/components/Header/Header.types.mjs.map +1 -1
  107. package/lib/components/Header/IsolatedHeader.d.ts +1 -0
  108. package/lib/components/Header/IsolatedHeader.js +50 -50
  109. package/lib/components/Header/IsolatedHeader.js.map +1 -1
  110. package/lib/components/Header/IsolatedHeader.mjs +47 -46
  111. package/lib/components/Header/IsolatedHeader.mjs.map +1 -1
  112. package/lib/components/Header/LanguageFrame/LanguageFrame.js +6 -6
  113. package/lib/components/Header/LogoIcon/LogoIcon.d.ts +7 -0
  114. package/lib/components/Header/LogoIcon/LogoIcon.js +46 -0
  115. package/lib/components/Header/LogoIcon/LogoIcon.js.map +1 -0
  116. package/lib/components/Header/LogoIcon/LogoIcon.mjs +36 -0
  117. package/lib/components/Header/LogoIcon/LogoIcon.mjs.map +1 -0
  118. package/lib/components/Header/LogoIcon/index.d.ts +1 -0
  119. package/lib/components/Header/LogoIcon/index.js +6 -0
  120. package/lib/components/Header/LogoIcon/index.js.map +1 -0
  121. package/lib/components/Header/LogoIcon/index.mjs +3 -0
  122. package/lib/components/Header/LogoIcon/index.mjs.map +1 -0
  123. package/lib/components/Header/MenuItem/MenuItem.styles.d.ts +1 -1
  124. package/lib/components/Header/MenuItem/MenuItem.styles.js +3 -3
  125. package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
  126. package/lib/components/Header/MenuItem/MenuItem.styles.mjs +3 -3
  127. package/lib/components/Header/MenuItem/MenuItem.styles.mjs.map +1 -1
  128. package/lib/components/Header/MenuItem/MenuItem.types.d.ts +1 -0
  129. package/lib/components/Header/Navigation/Carousel/Carousel.js +5 -5
  130. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.js +12 -12
  131. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
  132. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +6 -6
  133. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +1 -1
  134. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
  135. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +116 -109
  136. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
  137. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +111 -104
  138. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
  139. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +9 -0
  140. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +15 -1
  141. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
  142. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +13 -2
  143. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
  144. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +12 -6
  145. package/lib/components/Header/Overlay/Overlay.js +3 -3
  146. package/lib/components/Header/ProHeader/ProHeader.d.ts +9 -5
  147. package/lib/components/Header/ProHeader/ProHeader.js +270 -189
  148. package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
  149. package/lib/components/Header/ProHeader/ProHeader.mjs +251 -171
  150. package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
  151. package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +30 -25
  152. package/lib/components/Header/ProHeader/ProHeader.styles.js +119 -66
  153. package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
  154. package/lib/components/Header/ProHeader/ProHeader.styles.mjs +112 -65
  155. package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
  156. package/lib/components/Header/translations/ar.json.js +4 -1
  157. package/lib/components/Header/translations/ar.json.js.map +1 -1
  158. package/lib/components/Header/translations/ar.json.mjs +4 -2
  159. package/lib/components/Header/translations/ar.json.mjs.map +1 -1
  160. package/lib/components/Header/translations/de.json.js +4 -1
  161. package/lib/components/Header/translations/de.json.js.map +1 -1
  162. package/lib/components/Header/translations/de.json.mjs +4 -2
  163. package/lib/components/Header/translations/de.json.mjs.map +1 -1
  164. package/lib/components/Header/translations/el.json.js +4 -1
  165. package/lib/components/Header/translations/el.json.js.map +1 -1
  166. package/lib/components/Header/translations/el.json.mjs +4 -2
  167. package/lib/components/Header/translations/el.json.mjs.map +1 -1
  168. package/lib/components/Header/translations/en.json.js +7 -1
  169. package/lib/components/Header/translations/en.json.js.map +1 -1
  170. package/lib/components/Header/translations/en.json.mjs +6 -2
  171. package/lib/components/Header/translations/en.json.mjs.map +1 -1
  172. package/lib/components/Header/translations/es.json.js +4 -1
  173. package/lib/components/Header/translations/es.json.js.map +1 -1
  174. package/lib/components/Header/translations/es.json.mjs +4 -2
  175. package/lib/components/Header/translations/es.json.mjs.map +1 -1
  176. package/lib/components/Header/translations/fr.json.js +4 -1
  177. package/lib/components/Header/translations/fr.json.js.map +1 -1
  178. package/lib/components/Header/translations/fr.json.mjs +4 -2
  179. package/lib/components/Header/translations/fr.json.mjs.map +1 -1
  180. package/lib/components/Header/translations/it.json.js +4 -1
  181. package/lib/components/Header/translations/it.json.js.map +1 -1
  182. package/lib/components/Header/translations/it.json.mjs +4 -2
  183. package/lib/components/Header/translations/it.json.mjs.map +1 -1
  184. package/lib/components/Header/translations/ja.json.js +4 -1
  185. package/lib/components/Header/translations/ja.json.js.map +1 -1
  186. package/lib/components/Header/translations/ja.json.mjs +4 -2
  187. package/lib/components/Header/translations/ja.json.mjs.map +1 -1
  188. package/lib/components/Header/translations/pt-BR.json.js +4 -1
  189. package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
  190. package/lib/components/Header/translations/pt-BR.json.mjs +4 -2
  191. package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
  192. package/lib/components/Header/translations/zh-Hans.json.js +4 -1
  193. package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
  194. package/lib/components/Header/translations/zh-Hans.json.mjs +4 -2
  195. package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
  196. package/lib/components/Header/translations/zh-Hant-TW.json.js +4 -1
  197. package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
  198. package/lib/components/Header/translations/zh-Hant-TW.json.mjs +4 -2
  199. package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
  200. package/lib/components/Hero/Hero.js +5 -5
  201. package/lib/components/Hero/Hero.styles.d.ts +2 -2
  202. package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +1 -1
  203. package/lib/components/HeroVideo/HeroVideo.js +5 -5
  204. package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +2 -2
  205. package/lib/components/ImageCarousel/ImageCarousel.js +29 -33
  206. package/lib/components/ImageCarousel/ImageCarousel.js.map +1 -1
  207. package/lib/components/ImageCarousel/ImageCarousel.mjs +0 -4
  208. package/lib/components/ImageCarousel/ImageCarousel.mjs.map +1 -1
  209. package/lib/components/ImageSequence/ImageSequence.js +8 -8
  210. package/lib/components/LandingPage/Cards/Card/Card.js +4 -4
  211. package/lib/components/LandingPage/Cards/Cards.js +10 -10
  212. package/lib/components/LandingPage/LandingPage.js +2 -2
  213. package/lib/components/LandingPagePro/LandingPagePro.js +13 -13
  214. package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +1 -1
  215. package/lib/components/LandingPageSearch/LandingPageSearch.js +2 -2
  216. package/lib/components/LandingPageSearch/Modal/Modal.js +9 -9
  217. package/lib/components/LandingPageSidebar/LandingPageSidebar.js +12 -12
  218. package/lib/components/LayoutRenderer/LayoutRenderer.js +8 -8
  219. package/lib/components/LayoutRenderer/LayoutRenderer.styles.d.ts +1 -1
  220. package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +3 -3
  221. package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +3 -3
  222. package/lib/components/LoaderDots/LoaderDots.d.ts +1 -1
  223. package/lib/components/LoaderDots/LoaderDots.js +3 -1
  224. package/lib/components/LoaderDots/LoaderDots.js.map +1 -1
  225. package/lib/components/LoaderDots/LoaderDots.mjs +3 -1
  226. package/lib/components/LoaderDots/LoaderDots.mjs.map +1 -1
  227. package/lib/components/LoaderDots/LoaderDots.styles.d.ts +2 -1
  228. package/lib/components/LoaderDots/LoaderDots.styles.js +11 -1
  229. package/lib/components/LoaderDots/LoaderDots.styles.js.map +1 -1
  230. package/lib/components/LoaderDots/LoaderDots.styles.mjs +11 -1
  231. package/lib/components/LoaderDots/LoaderDots.styles.mjs.map +1 -1
  232. package/lib/components/LoaderDots/LoaderDots.types.d.ts +2 -0
  233. package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.js +7 -7
  234. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.js +18 -18
  235. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.d.ts +1 -1
  236. package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.js +2 -2
  237. package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.js +3 -3
  238. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.js +3 -3
  239. package/lib/components/MicrositeHero/MicrositeHero.js +18 -18
  240. package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.js +4 -4
  241. package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.js +9 -9
  242. package/lib/components/MicrositeProductGrid/MicrositeProductGrid.js +8 -8
  243. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlockWrap.js +2 -2
  244. package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +1 -1
  245. package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.js +3 -3
  246. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +12 -12
  247. package/lib/components/Microsites/MicrositePageContext.js +2 -2
  248. package/lib/components/Microsites/MicrositeProductPage.js +3 -3
  249. package/lib/components/Microsites/context/MicrositeProductPageContext.js +3 -3
  250. package/lib/components/MobileModal/MobileModal.js +4 -4
  251. package/lib/components/Modal/Modal.js +3 -3
  252. package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js +3 -3
  253. package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.js +2 -2
  254. package/lib/components/ModelCompareV3/ModelCompareV3.js +14 -14
  255. package/lib/components/ModelCompareV3/ModelCompareV3.types.d.ts +0 -1
  256. package/lib/components/ModelCompareV3/ProductGroupsGrid.js +3 -3
  257. package/lib/components/ModelCompareV3/ScrollGroup/ScrollGroup.js +5 -5
  258. package/lib/components/ModelCompareV3/ScrollGroup/context.js +3 -3
  259. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupItem.js +8 -8
  260. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupSetScroll.js +2 -2
  261. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupTo.js +2 -2
  262. package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js +7 -7
  263. package/lib/components/ModelCompareV3/StickyGrid/StickyGridBody.js +2 -2
  264. package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js +5 -5
  265. package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.js +2 -2
  266. package/lib/components/ModelCompareV3/StickyGrid/context.js +3 -3
  267. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
  268. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
  269. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
  270. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
  271. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
  272. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
  273. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
  274. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
  275. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
  276. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
  277. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
  278. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
  279. package/lib/components/ModelCompareV3/data/CloudGateways.js +9 -9
  280. package/lib/components/ModelCompareV3/data/CloudGateways.mjs +6 -6
  281. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js +2 -3
  282. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js.map +1 -1
  283. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs +2 -3
  284. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs.map +1 -1
  285. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.js +3 -10
  286. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.js.map +1 -1
  287. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.mjs +3 -10
  288. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.mjs.map +1 -1
  289. package/lib/components/ModelCompareV3/data/Switching.js +2 -3
  290. package/lib/components/ModelCompareV3/data/Switching.js.map +1 -1
  291. package/lib/components/ModelCompareV3/data/Switching.mjs +2 -3
  292. package/lib/components/ModelCompareV3/data/Switching.mjs.map +1 -1
  293. package/lib/components/ModelCompareV3/data/products/aggregation.js +0 -7
  294. package/lib/components/ModelCompareV3/data/products/aggregation.js.map +1 -1
  295. package/lib/components/ModelCompareV3/data/products/aggregation.mjs +0 -7
  296. package/lib/components/ModelCompareV3/data/products/aggregation.mjs.map +1 -1
  297. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js +1 -1
  298. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js.map +1 -1
  299. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs +1 -1
  300. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs.map +1 -1
  301. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js +0 -7
  302. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js.map +1 -1
  303. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs +0 -7
  304. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs.map +1 -1
  305. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js +0 -7
  306. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js.map +1 -1
  307. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs +0 -7
  308. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs.map +1 -1
  309. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js +0 -7
  310. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js.map +1 -1
  311. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs +0 -7
  312. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs.map +1 -1
  313. package/lib/components/ModelCompareV3/data/products/g3TouchEnterprise.js +1 -1
  314. package/lib/components/ModelCompareV3/data/products/g3TouchEnterprise.js.map +1 -1
  315. package/lib/components/ModelCompareV3/data/products/g3TouchEnterprise.mjs +1 -1
  316. package/lib/components/ModelCompareV3/data/products/g3TouchEnterprise.mjs.map +1 -1
  317. package/lib/components/ModelCompareV3/data/products/g3TouchPro.js +1 -1
  318. package/lib/components/ModelCompareV3/data/products/g3TouchPro.js.map +1 -1
  319. package/lib/components/ModelCompareV3/data/products/g3TouchPro.mjs +1 -1
  320. package/lib/components/ModelCompareV3/data/products/g3TouchPro.mjs.map +1 -1
  321. package/lib/components/ModelCompareV3/data/products/g3TouchWall.js +1 -1
  322. package/lib/components/ModelCompareV3/data/products/g3TouchWall.js.map +1 -1
  323. package/lib/components/ModelCompareV3/data/products/g3TouchWall.mjs +1 -1
  324. package/lib/components/ModelCompareV3/data/products/g3TouchWall.mjs.map +1 -1
  325. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js +0 -7
  326. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js.map +1 -1
  327. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs +0 -7
  328. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs.map +1 -1
  329. package/lib/components/ModelCompareV3/data/products/missionCritical.js +0 -7
  330. package/lib/components/ModelCompareV3/data/products/missionCritical.js.map +1 -1
  331. package/lib/components/ModelCompareV3/data/products/missionCritical.mjs +0 -7
  332. package/lib/components/ModelCompareV3/data/products/missionCritical.mjs.map +1 -1
  333. package/lib/components/ModelCompareV3/data/products/professionalHd24.js +0 -7
  334. package/lib/components/ModelCompareV3/data/products/professionalHd24.js.map +1 -1
  335. package/lib/components/ModelCompareV3/data/products/professionalHd24.mjs +0 -7
  336. package/lib/components/ModelCompareV3/data/products/professionalHd24.mjs.map +1 -1
  337. package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.js +0 -7
  338. package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.js.map +1 -1
  339. package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.mjs +0 -7
  340. package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.mjs.map +1 -1
  341. package/lib/components/ModelCompareV3/data/products/professionalMax16.js +0 -7
  342. package/lib/components/ModelCompareV3/data/products/professionalMax16.js.map +1 -1
  343. package/lib/components/ModelCompareV3/data/products/professionalMax16.mjs +0 -7
  344. package/lib/components/ModelCompareV3/data/products/professionalMax16.mjs.map +1 -1
  345. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.js +0 -7
  346. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.js.map +1 -1
  347. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.mjs +0 -7
  348. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.mjs.map +1 -1
  349. package/lib/components/ModelCompareV3/data/products/professionalMax24.js +0 -7
  350. package/lib/components/ModelCompareV3/data/products/professionalMax24.js.map +1 -1
  351. package/lib/components/ModelCompareV3/data/products/professionalMax24.mjs +0 -7
  352. package/lib/components/ModelCompareV3/data/products/professionalMax24.mjs.map +1 -1
  353. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.js +0 -7
  354. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.js.map +1 -1
  355. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.mjs +0 -7
  356. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.mjs.map +1 -1
  357. package/lib/components/ModelCompareV3/data/products/professionalMax48.js +0 -7
  358. package/lib/components/ModelCompareV3/data/products/professionalMax48.js.map +1 -1
  359. package/lib/components/ModelCompareV3/data/products/professionalMax48.mjs +0 -7
  360. package/lib/components/ModelCompareV3/data/products/professionalMax48.mjs.map +1 -1
  361. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.js +0 -7
  362. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.js.map +1 -1
  363. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.mjs +0 -7
  364. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.mjs.map +1 -1
  365. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js +0 -8
  366. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js.map +1 -1
  367. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs +0 -8
  368. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs.map +1 -1
  369. package/lib/components/ModelCompareV3/data/products/switchesProfessional.js +0 -7
  370. package/lib/components/ModelCompareV3/data/products/switchesProfessional.js.map +1 -1
  371. package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs +0 -7
  372. package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs.map +1 -1
  373. package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.js +0 -7
  374. package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.js.map +1 -1
  375. package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.mjs +0 -7
  376. package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.mjs.map +1 -1
  377. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js +1 -10
  378. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js.map +1 -1
  379. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs +1 -10
  380. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs.map +1 -1
  381. package/lib/components/ModelCompareV3/data/products/switchesStandard.js +0 -7
  382. package/lib/components/ModelCompareV3/data/products/switchesStandard.js.map +1 -1
  383. package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs +0 -7
  384. package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs.map +1 -1
  385. package/lib/components/ModelCompareV3/data/products/udmPro.js +1 -1
  386. package/lib/components/ModelCompareV3/data/products/udmPro.mjs +1 -1
  387. package/lib/components/ModelCompareV3/data/products/udmProMax.js +1 -1
  388. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +1 -1
  389. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +1 -1
  390. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +1 -1
  391. package/lib/components/ModelCompareV3/data/properties/index.d.ts +0 -1
  392. package/lib/components/ModelCompareV3/data/properties/index.js +0 -2
  393. package/lib/components/ModelCompareV3/data/properties/index.js.map +1 -1
  394. package/lib/components/ModelCompareV3/data/properties/index.mjs +0 -1
  395. package/lib/components/ModelCompareV3/data/properties/index.mjs.map +1 -1
  396. package/lib/components/ModelCompareV3/translations/ar.json.js +16 -12
  397. package/lib/components/ModelCompareV3/translations/ar.json.js.map +1 -1
  398. package/lib/components/ModelCompareV3/translations/ar.json.mjs +16 -12
  399. package/lib/components/ModelCompareV3/translations/ar.json.mjs.map +1 -1
  400. package/lib/components/ModelCompareV3/translations/de.json.js +8 -4
  401. package/lib/components/ModelCompareV3/translations/de.json.js.map +1 -1
  402. package/lib/components/ModelCompareV3/translations/de.json.mjs +8 -4
  403. package/lib/components/ModelCompareV3/translations/de.json.mjs.map +1 -1
  404. package/lib/components/ModelCompareV3/translations/el.json.js +8 -4
  405. package/lib/components/ModelCompareV3/translations/el.json.js.map +1 -1
  406. package/lib/components/ModelCompareV3/translations/el.json.mjs +8 -4
  407. package/lib/components/ModelCompareV3/translations/el.json.mjs.map +1 -1
  408. package/lib/components/ModelCompareV3/translations/en.json.js +5 -4
  409. package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
  410. package/lib/components/ModelCompareV3/translations/en.json.mjs +5 -4
  411. package/lib/components/ModelCompareV3/translations/en.json.mjs.map +1 -1
  412. package/lib/components/ModelCompareV3/translations/es.json.js +8 -4
  413. package/lib/components/ModelCompareV3/translations/es.json.js.map +1 -1
  414. package/lib/components/ModelCompareV3/translations/es.json.mjs +8 -4
  415. package/lib/components/ModelCompareV3/translations/es.json.mjs.map +1 -1
  416. package/lib/components/ModelCompareV3/translations/fr.json.js +7 -3
  417. package/lib/components/ModelCompareV3/translations/fr.json.js.map +1 -1
  418. package/lib/components/ModelCompareV3/translations/fr.json.mjs +7 -3
  419. package/lib/components/ModelCompareV3/translations/fr.json.mjs.map +1 -1
  420. package/lib/components/ModelCompareV3/translations/it.json.js +7 -3
  421. package/lib/components/ModelCompareV3/translations/it.json.js.map +1 -1
  422. package/lib/components/ModelCompareV3/translations/it.json.mjs +7 -3
  423. package/lib/components/ModelCompareV3/translations/it.json.mjs.map +1 -1
  424. package/lib/components/ModelCompareV3/translations/ja.json.js +13 -9
  425. package/lib/components/ModelCompareV3/translations/ja.json.js.map +1 -1
  426. package/lib/components/ModelCompareV3/translations/ja.json.mjs +13 -9
  427. package/lib/components/ModelCompareV3/translations/ja.json.mjs.map +1 -1
  428. package/lib/components/ModelCompareV3/translations/pt-BR.json.js +7 -3
  429. package/lib/components/ModelCompareV3/translations/pt-BR.json.js.map +1 -1
  430. package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs +7 -3
  431. package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs.map +1 -1
  432. package/lib/components/ModelCompareV3/translations/useModelCompareTranslation.d.ts +2 -2
  433. package/lib/components/ModelCompareV3/translations/zh-Hans.json.js +11 -7
  434. package/lib/components/ModelCompareV3/translations/zh-Hans.json.js.map +1 -1
  435. package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs +11 -7
  436. package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs.map +1 -1
  437. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js +16 -12
  438. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js.map +1 -1
  439. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs +16 -12
  440. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs.map +1 -1
  441. package/lib/components/Pagination/Pagination.js +3 -3
  442. package/lib/components/PriceRangeSlider/PriceRangeSlider.js +16 -16
  443. package/lib/components/ProductCard/ProductCard.js +7 -7
  444. package/lib/components/ProductCardPopup/ProductCardPopup.js +8 -8
  445. package/lib/components/ProductCompare/ProductCompare.js +7 -7
  446. package/lib/components/ProductDetails/ProductDetails.js +5 -5
  447. package/lib/components/ProductGrid/ProductGrid.js +10 -10
  448. package/lib/components/ProductKeyFeatures/ProductKeyFeatures.js +3 -3
  449. package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +1 -1
  450. package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +1 -1
  451. package/lib/components/ProductSectionTabs/ProductSectionTabs.js +2 -2
  452. package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +2 -2
  453. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.d.ts +2 -0
  454. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js +81 -0
  455. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js.map +1 -0
  456. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs +73 -0
  457. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs.map +1 -0
  458. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.stories.d.ts +5 -0
  459. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.d.ts +11 -0
  460. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +80 -0
  461. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +1 -0
  462. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +66 -0
  463. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs.map +1 -0
  464. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.types.d.ts +12 -0
  465. package/lib/components/ProductTechSpecsV2/index.d.ts +1 -0
  466. package/lib/components/ProductTechSpecsV2/index.js +6 -0
  467. package/lib/components/ProductTechSpecsV2/index.js.map +1 -0
  468. package/lib/components/ProductTechSpecsV2/index.mjs +3 -0
  469. package/lib/components/ProductTechSpecsV2/index.mjs.map +1 -0
  470. package/lib/components/ProductWizard/Options/Options.js +3 -3
  471. package/lib/components/ProductWizard/ProductWizard.js +2 -2
  472. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js +5 -5
  473. package/lib/components/ProgressCircle/ProgressCircle.js +4 -4
  474. package/lib/components/QuantityControls/QuantityControls.js +6 -6
  475. package/lib/components/QuantityControls/QuantityControls.js.map +1 -1
  476. package/lib/components/QuantityControls/QuantityControls.mjs +2 -2
  477. package/lib/components/QuantityControls/QuantityControls.mjs.map +1 -1
  478. package/lib/components/QuantityControls/QuantityControls.types.d.ts +1 -1
  479. package/lib/components/QuantityInput/QuantityInput.js +6 -1
  480. package/lib/components/QuantityInput/QuantityInput.js.map +1 -1
  481. package/lib/components/QuantityInput/QuantityInput.mjs +6 -1
  482. package/lib/components/QuantityInput/QuantityInput.mjs.map +1 -1
  483. package/lib/components/RelatedProducts/RelatedProducts.js +5 -5
  484. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js +36 -36
  485. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +12 -12
  486. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +5 -5
  487. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CheckboxSection.js +2 -2
  488. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +4 -4
  489. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/SliderSection.js +3 -3
  490. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +7 -7
  491. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +6 -6
  492. package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.js +9 -9
  493. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.js +10 -10
  494. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +15 -15
  495. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.js +2 -2
  496. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +6 -6
  497. package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.js +5 -5
  498. package/lib/components/ScrollWrapper/ScrollWrapper.d.ts +1 -1
  499. package/lib/components/ScrollWrapper/ScrollWrapper.js +33 -25
  500. package/lib/components/ScrollWrapper/ScrollWrapper.js.map +1 -1
  501. package/lib/components/ScrollWrapper/ScrollWrapper.mjs +16 -8
  502. package/lib/components/ScrollWrapper/ScrollWrapper.mjs.map +1 -1
  503. package/lib/components/ScrollWrapper/ScrollWrapper.types.d.ts +2 -0
  504. package/lib/components/Search/Input/Input.d.ts +1 -1
  505. package/lib/components/Search/Input/Input.js +8 -8
  506. package/lib/components/Search/Input/Input.js.map +1 -1
  507. package/lib/components/Search/Input/Input.mjs +4 -4
  508. package/lib/components/Search/Input/Input.mjs.map +1 -1
  509. package/lib/components/Search/Input/Input.styles.js +0 -1
  510. package/lib/components/Search/Input/Input.styles.js.map +1 -1
  511. package/lib/components/Search/Input/Input.styles.mjs +0 -1
  512. package/lib/components/Search/Input/Input.styles.mjs.map +1 -1
  513. package/lib/components/Search/Input/Input.types.d.ts +3 -2
  514. package/lib/components/Search/Modal/Modal.js +3 -3
  515. package/lib/components/StorageSliders/Slider/Slider.js +3 -3
  516. package/lib/components/StorageSliders/StorageSliders.context.js +20 -20
  517. package/lib/components/StorageSliders/StorageSliders.js +4 -4
  518. package/lib/components/Tooltip/Tooltip.js +5 -5
  519. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js +7 -7
  520. package/lib/components/VariantSelector/Variant/Variant.js +40 -40
  521. package/lib/components/VariantSelector/VariantSelector.js +16 -16
  522. package/lib/components/VideoPlayerNew/VideoPlayer.js +19 -19
  523. package/lib/components/index.d.ts +1 -0
  524. package/lib/components/index.js +2 -0
  525. package/lib/components/index.js.map +1 -1
  526. package/lib/components/index.mjs +2 -0
  527. package/lib/components/index.mjs.map +1 -1
  528. package/lib/constants/icons/options/colors/black.svg.js +5 -5
  529. package/lib/constants/icons/options/colors/index.js +3 -3
  530. package/lib/constants/icons/options/styles/black.svg.js +5 -5
  531. package/lib/constants/icons/options/styles/index.js +3 -3
  532. package/lib/constants/optionIcons.js +6 -6
  533. package/lib/constants/optionIcons.mjs +4 -4
  534. package/lib/constants/proStoreCategories/mapping/filters.d.ts +17 -0
  535. package/lib/constants/proStoreCategories/mapping/filters.js +17 -0
  536. package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
  537. package/lib/constants/proStoreCategories/mapping/filters.mjs +17 -0
  538. package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
  539. package/lib/constants/proStoreCategories/mapping/index.d.ts +2 -0
  540. package/lib/constants/proStoreCategories/mapping/index.js +21 -7
  541. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  542. package/lib/constants/proStoreCategories/mapping/index.mjs +21 -7
  543. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  544. package/lib/constants/proStoreCategories/mapping/mapping.d.ts +5 -0
  545. package/lib/constants/proStoreCategories/mapping/unifi.d.ts +2 -0
  546. package/lib/constants/proStoreCategories/mapping/unifi.js +2 -0
  547. package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
  548. package/lib/constants/proStoreCategories/mapping/unifi.mjs +2 -0
  549. package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
  550. package/lib/constants/proStoreCategories/translations/ar.json.js +5 -4
  551. package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
  552. package/lib/constants/proStoreCategories/translations/ar.json.mjs +5 -4
  553. package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
  554. package/lib/constants/proStoreCategories/translations/de.json.js +5 -4
  555. package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
  556. package/lib/constants/proStoreCategories/translations/de.json.mjs +5 -4
  557. package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
  558. package/lib/constants/proStoreCategories/translations/el.json.js +6 -5
  559. package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
  560. package/lib/constants/proStoreCategories/translations/el.json.mjs +6 -5
  561. package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
  562. package/lib/constants/proStoreCategories/translations/en.json.js +5 -1
  563. package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
  564. package/lib/constants/proStoreCategories/translations/en.json.mjs +5 -2
  565. package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
  566. package/lib/constants/proStoreCategories/translations/es.json.js +5 -4
  567. package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
  568. package/lib/constants/proStoreCategories/translations/es.json.mjs +5 -4
  569. package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
  570. package/lib/constants/proStoreCategories/translations/fr.json.js +5 -1
  571. package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
  572. package/lib/constants/proStoreCategories/translations/fr.json.mjs +5 -2
  573. package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
  574. package/lib/constants/proStoreCategories/translations/it.json.js +5 -4
  575. package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
  576. package/lib/constants/proStoreCategories/translations/it.json.mjs +5 -4
  577. package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
  578. package/lib/constants/proStoreCategories/translations/ja.json.js +5 -4
  579. package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
  580. package/lib/constants/proStoreCategories/translations/ja.json.mjs +5 -4
  581. package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
  582. package/lib/constants/proStoreCategories/translations/pt-BR.json.js +5 -4
  583. package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
  584. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +5 -4
  585. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
  586. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +5 -1
  587. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
  588. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +5 -2
  589. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
  590. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +5 -1
  591. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
  592. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +5 -2
  593. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
  594. package/lib/constants/proStoreFilters/mapping.d.ts +43 -7
  595. package/lib/constants/proStoreFilters/mapping.js +129 -15
  596. package/lib/constants/proStoreFilters/mapping.js.map +1 -1
  597. package/lib/constants/proStoreFilters/mapping.mjs +129 -15
  598. package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
  599. package/lib/constants/theme.js +4 -0
  600. package/lib/constants/theme.js.map +1 -1
  601. package/lib/constants/theme.mjs +4 -0
  602. package/lib/constants/theme.mjs.map +1 -1
  603. package/lib/contexts/MenuContext/context.js +34 -34
  604. package/lib/contexts/MenuContext/context.js.map +1 -1
  605. package/lib/contexts/MenuContext/context.mjs +1 -1
  606. package/lib/contexts/MenuContext/context.mjs.map +1 -1
  607. package/lib/contexts/MenuContext/mapping.js.map +1 -1
  608. package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
  609. package/lib/contexts/MenuContext/presets.d.ts +1 -1
  610. package/lib/contexts/MenuContext/presets.js +2 -4
  611. package/lib/contexts/MenuContext/presets.js.map +1 -1
  612. package/lib/contexts/MenuContext/presets.mjs +2 -4
  613. package/lib/contexts/MenuContext/presets.mjs.map +1 -1
  614. package/lib/helpers/index.d.ts +0 -1
  615. package/lib/helpers/index.js +1 -11
  616. package/lib/helpers/index.js.map +1 -1
  617. package/lib/helpers/index.mjs +1 -2
  618. package/lib/helpers/index.mjs.map +1 -1
  619. package/lib/helpers/proStoreCategories.js +2 -2
  620. package/lib/helpers/ux.d.ts +8 -0
  621. package/lib/helpers/ux.js +15 -0
  622. package/lib/helpers/ux.js.map +1 -1
  623. package/lib/helpers/ux.mjs +15 -1
  624. package/lib/helpers/ux.mjs.map +1 -1
  625. package/lib/hooks/useHasTouch.js +3 -3
  626. package/lib/hooks/useHddRetentionCalculator.js +5 -5
  627. package/lib/hooks/useHorizontalScroll.js +2 -2
  628. package/lib/hooks/useLockBodyScrollCustom.js +3 -3
  629. package/lib/hooks/useScrollToY.js +2 -2
  630. package/lib/hooks/useTestMediaElementVolumeSetter.js +3 -3
  631. package/lib/hooks/useTranslation.js +6 -6
  632. package/lib/types/generated.d.ts +1 -1
  633. package/lib/types/generated.js.map +1 -1
  634. package/lib/types/generated.mjs.map +1 -1
  635. package/lib/types/index.d.ts +1 -1
  636. package/lib/types/index.js +1 -2
  637. package/lib/types/index.js.map +1 -1
  638. package/lib/types/index.mjs +1 -1
  639. package/lib/types/object.d.ts +20 -0
  640. package/lib/types/string.d.ts +9 -0
  641. package/lib/types/string.js +3 -0
  642. package/lib/types/string.js.map +1 -0
  643. package/lib/types/string.mjs +2 -0
  644. package/lib/types/string.mjs.map +1 -0
  645. package/lib/utils/address.d.ts +62 -278
  646. package/lib/utils/address.js +8 -11
  647. package/lib/utils/address.js.map +1 -1
  648. package/lib/utils/address.mjs +8 -11
  649. package/lib/utils/address.mjs.map +1 -1
  650. package/lib/utils/array.d.ts +0 -4
  651. package/lib/utils/array.js +0 -10
  652. package/lib/utils/array.js.map +1 -1
  653. package/lib/utils/array.mjs +1 -10
  654. package/lib/utils/array.mjs.map +1 -1
  655. package/lib/utils/nextjs/ssr/registry.js +2 -2
  656. package/package.json +42 -42
  657. package/lib/assets/crestron.svg +0 -3
  658. package/lib/assets/icons/menu/icon-globe.svg.js.map +0 -1
  659. package/lib/assets/icons/menu/icon-globe.svg.mjs +0 -3
  660. package/lib/assets/icons/menu/icon-globe.svg.mjs.map +0 -1
  661. package/lib/components/ModelCompareV3/assets/crestron.svg.js.map +0 -1
  662. package/lib/components/ModelCompareV3/assets/crestron.svg.mjs +0 -3
  663. package/lib/components/ModelCompareV3/assets/crestron.svg.mjs.map +0 -1
  664. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.d.ts +0 -2
  665. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.js +0 -18
  666. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.js.map +0 -1
  667. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.mjs +0 -10
  668. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.mjs.map +0 -1
  669. package/lib/helpers/product.d.ts +0 -87
  670. package/lib/helpers/product.js +0 -346
  671. package/lib/helpers/product.js.map +0 -1
  672. package/lib/helpers/product.mjs +0 -335
  673. package/lib/helpers/product.mjs.map +0 -1
  674. package/lib/helpers/product.test.d.ts +0 -1
  675. package/lib/types/product.d.ts +0 -87
  676. package/lib/types/product.js +0 -14
  677. package/lib/types/product.js.map +0 -1
  678. package/lib/types/product.mjs +0 -13
  679. package/lib/types/product.mjs.map +0 -1
  680. package/lib/utils/productSort.d.ts +0 -41
  681. package/lib/utils/productSort.js +0 -67
  682. package/lib/utils/productSort.js.map +0 -1
  683. package/lib/utils/productSort.mjs +0 -60
  684. package/lib/utils/productSort.mjs.map +0 -1
  685. package/lib/utils/validations/lastNameSuperRefinement.d.ts +0 -11
  686. package/lib/utils/validations/lastNameSuperRefinement.js +0 -25
  687. package/lib/utils/validations/lastNameSuperRefinement.js.map +0 -1
  688. package/lib/utils/validations/lastNameSuperRefinement.mjs +0 -21
  689. package/lib/utils/validations/lastNameSuperRefinement.mjs.map +0 -1
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
- var react = require('react');
4
+ var React = require('react');
5
5
  require('../../assets/icons/payment-apple-pay.svg.js');
6
6
  require('../../assets/icons/payment-card.svg.js');
7
7
  require('../../assets/icons/payment-google-pay.svg.js');
@@ -77,7 +77,7 @@ const ProductWizardFootnotes = ({
77
77
  availablePaymentMethods,
78
78
  renderImage
79
79
  }) => {
80
- const limitErrorNode = react.useMemo(() => {
80
+ const limitErrorNode = React.useMemo(() => {
81
81
  if (limitsDisabled) {
82
82
  return;
83
83
  }
@@ -101,7 +101,7 @@ const ProductWizardFootnotes = ({
101
101
  }
102
102
  return void 0;
103
103
  }, [limitsDisabled, requiresLogin, maxRelevantLimitAddToCartQuantity, showLimitError, translations.errors.limitedToBuy, translations.errors.limitReached, translations.errors.limitErrorPer]);
104
- const getCardIcons = react.useCallback(() => {
104
+ const getCardIcons = React.useCallback(() => {
105
105
  const hasPaymentMethods = availablePaymentMethods && Object.keys(availablePaymentMethods).filter(item => {
106
106
  return !!availablePaymentMethods[item];
107
107
  }).length > 0;
@@ -119,7 +119,7 @@ const ProductWizardFootnotes = ({
119
119
  })
120
120
  });
121
121
  }, [availablePaymentMethods, renderImage]);
122
- const footnotes = react.useMemo(() => /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
122
+ const footnotes = React.useMemo(() => /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
123
123
  children: [getCardIcons(), translations?.footnotes?.shipping?.loading ? /* @__PURE__ */jsxRuntime.jsx(ProductWizardFootnotes_styles.SkeletonFootnote, {
124
124
  maxWidth: 120
125
125
  }) : translations?.footnotes?.shipping?.value && /* @__PURE__ */jsxRuntime.jsxs(ProductWizardFootnotes_styles.IconTextWrap, {
@@ -144,7 +144,7 @@ const ProductWizardFootnotes = ({
144
144
  })]
145
145
  })]
146
146
  }), [getCardIcons, translations.footnotes.shipping?.loading, translations.footnotes.shipping.value, translations.footnotes.warranty]);
147
- const hasFootnotes = react.useMemo(() => !!footnotes.props.children.filter(child => !!child).length, [footnotes.props.children]);
147
+ const hasFootnotes = React.useMemo(() => !!footnotes.props.children.filter(child => !!child).length, [footnotes.props.children]);
148
148
  if (!hasFootnotes && !enableLimitAndBackInStock && !limitErrorNode) {
149
149
  return null;
150
150
  }
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
- var react = require('react');
4
+ var React = require('react');
5
5
  var theme = require('../../constants/theme.js');
6
6
  "use strict";
7
7
  const ProgressCircle = ({
@@ -13,9 +13,9 @@ const ProgressCircle = ({
13
13
  backgroundColor = theme.theme.colors.white,
14
14
  className
15
15
  }) => {
16
- const radius = react.useMemo(() => (diameter - strokeWidth) / 2, [diameter, strokeWidth]);
17
- const circumference = react.useMemo(() => radius * 2 * Math.PI, [radius]);
18
- const strokeDashoffset = react.useMemo(() => circumference - (value ? value / 100 : 0) * circumference, [circumference, value]);
16
+ const radius = React.useMemo(() => (diameter - strokeWidth) / 2, [diameter, strokeWidth]);
17
+ const circumference = React.useMemo(() => radius * 2 * Math.PI, [radius]);
18
+ const strokeDashoffset = React.useMemo(() => circumference - (value ? value / 100 : 0) * circumference, [circumference, value]);
19
19
  return /* @__PURE__ */jsxRuntime.jsxs("svg", {
20
20
  className,
21
21
  width: diameter,
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
- var react = require('react');
4
+ var React = require('react');
5
5
  require('../Button/index.js');
6
6
  var QuantityControls_styles = require('./QuantityControls.styles.js');
7
7
  var CartButton = require('../Button/CartButton.js');
@@ -16,15 +16,15 @@ const QuantityControls = function QuantityControls2({
16
16
  cartButton,
17
17
  allowZero
18
18
  }) {
19
- const handleOnUpdateQuantity = react.useCallback(e => {
19
+ const handleOnUpdateQuantity = React.useCallback(e => {
20
20
  const value = Math.max(0, parseInt(e.target.value) || 0);
21
21
  onUpdateQuantity(value);
22
22
  }, [onUpdateQuantity]);
23
- const handleOnAddToCart = react.useCallback(() => {
23
+ const handleOnAddToCart = React.useCallback(() => {
24
24
  if (!allowZero && quantity < 1) return;
25
- onAddToCart();
25
+ onAddToCart?.();
26
26
  }, [allowZero, onAddToCart, quantity]);
27
- const cartButtonDisabled = react.useMemo(() => {
27
+ const cartButtonDisabled = React.useMemo(() => {
28
28
  return disabled || !allowZero && quantity < 1 || cartButton?.disabled;
29
29
  }, [allowZero, cartButton?.disabled, disabled, quantity]);
30
30
  return /* @__PURE__ */jsxRuntime.jsxs(QuantityControls_styles.Wrap, {
@@ -35,7 +35,7 @@ const QuantityControls = function QuantityControls2({
35
35
  onUpdateQuantity: handleOnUpdateQuantity,
36
36
  onIncreaseQuantity: () => onUpdateQuantity(quantity + 1),
37
37
  onDecreaseQuantity: () => onUpdateQuantity(quantity > 0 ? quantity - 1 : 0)
38
- }), /* @__PURE__ */jsxRuntime.jsx(CartButton.CartButton, {
38
+ }), onAddToCart && /* @__PURE__ */jsxRuntime.jsx(CartButton.CartButton, {
39
39
  "data-test-id": "add-to-cart-btn",
40
40
  variant: "primary",
41
41
  ...cartButton,
@@ -1 +1 @@
1
- {"version":3,"file":"QuantityControls.js","sources":["../../../src/components/QuantityControls/QuantityControls.tsx"],"sourcesContent":["import type { ChangeEvent } from \"react\";\nimport { useCallback, useMemo } from \"react\";\n\nimport { CartButton } from \"../Button\";\nimport * as S from \"./QuantityControls.styles\";\nimport type { QuantityControlsProps } from \"./QuantityControls.types\";\n\nexport const QuantityControls = function QuantityControls({\n className,\n disabled,\n quantity,\n onUpdateQuantity,\n onAddToCart,\n hideQuantityInput,\n cartButton,\n allowZero,\n}: QuantityControlsProps) {\n const handleOnUpdateQuantity = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n const value = Math.max(0, parseInt(e.target.value) || 0);\n\n onUpdateQuantity(value);\n },\n [onUpdateQuantity],\n );\n\n const handleOnAddToCart = useCallback(() => {\n if (!allowZero && quantity < 1) return;\n\n onAddToCart();\n }, [allowZero, onAddToCart, quantity]);\n\n const cartButtonDisabled = useMemo(() => {\n return disabled || (!allowZero && quantity < 1) || cartButton?.disabled;\n }, [allowZero, cartButton?.disabled, disabled, quantity]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.Wrap className={className}>\n {!hideQuantityInput && (\n <S.QuantityInput\n disabled={disabled}\n quantity={quantity}\n onUpdateQuantity={handleOnUpdateQuantity}\n onIncreaseQuantity={() => onUpdateQuantity(quantity + 1)}\n onDecreaseQuantity={() =>\n onUpdateQuantity(quantity > 0 ? quantity - 1 : 0)\n }\n />\n )}\n <CartButton\n data-test-id=\"add-to-cart-btn\"\n variant=\"primary\"\n {...cartButton}\n disabled={cartButtonDisabled}\n onClick={(e) => {\n e.stopPropagation();\n handleOnAddToCart();\n }}\n />\n </S.Wrap>\n );\n};\n"],"names":["QuantityControls","QuantityControls2","className","disabled","quantity","onUpdateQuantity","onAddToCart","hideQuantityInput","cartButton","allowZero","handleOnUpdateQuantity","useCallback","e","value","Math","max","parseInt","target","handleOnAddToCart","cartButtonDisabled","useMemo","jsxs","S.Wrap","children","jsx","S.QuantityInput","QuantityInput","onIncreaseQuantity","onDecreaseQuantity","CartButton","variant","onClick","stopPropagation"],"mappings":";;;;;;;;AAOa,MAAAA,gBAAA,GAAmB,SAASA,iBAAiBC,CAAA;EACxDC,SAAA;EACAC,QAAA;EACAC,QAAA;EACAC,gBAAA;EACAC,WAAA;EACAC,iBAAA;EACAC,UAAA;EACAC;AACF,CAA0B,EAAA;EACxB,MAAMC,sBAAyB,GAAAC,KAAA,CAAAA,WAAA,CAC5BC,CAAqC,IAAA;IAC9B,MAAAC,KAAA,GAAQC,KAAKC,GAAI,CAAA,CAAA,EAAGC,SAASJ,CAAE,CAAAK,MAAA,CAAOJ,KAAK,CAAA,IAAK,CAAC,CAAA;IAEvDR,gBAAA,CAAiBQ,KAAK,CAAA;EACxB,CAAA,EACA,CAACR,gBAAgB,CAAA,CACnB;EAEM,MAAAa,iBAAA,GAAoBP,KAAAA,CAAAA,YAAY,MAAM;IACtC,IAAA,CAACF,SAAa,IAAAL,QAAA,GAAW,CAAG,EAAA;IAEpBE,WAAA,EAAA;EACX,CAAA,EAAA,CAACG,SAAW,EAAAH,WAAA,EAAaF,QAAQ,CAAC,CAAA;EAE/B,MAAAe,kBAAA,GAAqBC,KAAAA,CAAAA,QAAQ,MAAM;IACvC,OAAOjB,QAAa,IAAA,CAACM,SAAa,IAAAL,QAAA,GAAW,KAAMI,UAAY,EAAAL,QAAA;EAAA,GAC9D,CAACM,SAAA,EAAWD,YAAYL,QAAU,EAAAA,QAAA,EAAUC,QAAQ,CAAC,CAAA;EAKxD,OAAA,eACGiB,eAAA,CAAAC,uBAAAA,CAAAA,IAAA,EAAA;IAAOpB,SACL;IAAAqB,QAAA,EAAA,CAAA,CAAChB,iBACA,IAAA,eAAAiB,UAAA,CAAAA,GAAA,CAACC,uBAAE,CAAAC,aAAA,EAAF;MACCvB,QAAA;MACAC,QAAA;MACAC,gBAAkB,EAAAK,sBAAA;MAClBiB,kBAAoB,EAAAA,CAAA,KAAMtB,gBAAiB,CAAAD,QAAA,GAAW,CAAC,CAAA;MACvDwB,oBAAoBA,CAAA,KAClBvB,gBAAA,CAAiBD,WAAW,CAAI,GAAAA,QAAA,GAAW,IAAI,CAAC;IAAA,CAEpD,CAAA,EAAA,eAEFoB,UAAA,CAAAA,GAAA,CAACK,UAAA,CAAAA,UAAA,EAAA;MACC,cAAa,EAAA,iBAAA;MACbC,OAAQ,EAAA,SAAA;MACP,GAAGtB,UAAA;MACJL,QAAU,EAAAgB,kBAAA;MACVY,OAAA,EAAUnB,CAAM,IAAA;QACdA,CAAA,CAAEoB,eAAgB,CAAA,CAAA;QACAd,iBAAA,EAAA;MACpB;IAAA,CACF,CAAA;EACF,CAAA,CAAA;AAEJ,CAAA;"}
1
+ {"version":3,"file":"QuantityControls.js","sources":["../../../src/components/QuantityControls/QuantityControls.tsx"],"sourcesContent":["import type { ChangeEvent } from \"react\";\nimport { useCallback, useMemo } from \"react\";\n\nimport { CartButton } from \"../Button\";\nimport * as S from \"./QuantityControls.styles\";\nimport type { QuantityControlsProps } from \"./QuantityControls.types\";\n\nexport const QuantityControls = function QuantityControls({\n className,\n disabled,\n quantity,\n onUpdateQuantity,\n onAddToCart,\n hideQuantityInput,\n cartButton,\n allowZero,\n}: QuantityControlsProps) {\n const handleOnUpdateQuantity = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n const value = Math.max(0, parseInt(e.target.value) || 0);\n\n onUpdateQuantity(value);\n },\n [onUpdateQuantity],\n );\n\n const handleOnAddToCart = useCallback(() => {\n if (!allowZero && quantity < 1) return;\n\n onAddToCart?.();\n }, [allowZero, onAddToCart, quantity]);\n\n const cartButtonDisabled = useMemo(() => {\n return disabled || (!allowZero && quantity < 1) || cartButton?.disabled;\n }, [allowZero, cartButton?.disabled, disabled, quantity]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.Wrap className={className}>\n {!hideQuantityInput && (\n <S.QuantityInput\n disabled={disabled}\n quantity={quantity}\n onUpdateQuantity={handleOnUpdateQuantity}\n onIncreaseQuantity={() => onUpdateQuantity(quantity + 1)}\n onDecreaseQuantity={() =>\n onUpdateQuantity(quantity > 0 ? quantity - 1 : 0)\n }\n />\n )}\n {onAddToCart && (\n <CartButton\n data-test-id=\"add-to-cart-btn\"\n variant=\"primary\"\n {...cartButton}\n disabled={cartButtonDisabled}\n onClick={(e) => {\n e.stopPropagation();\n handleOnAddToCart();\n }}\n />\n )}\n </S.Wrap>\n );\n};\n"],"names":["QuantityControls","QuantityControls2","className","disabled","quantity","onUpdateQuantity","onAddToCart","hideQuantityInput","cartButton","allowZero","handleOnUpdateQuantity","useCallback","e","value","Math","max","parseInt","target","handleOnAddToCart","cartButtonDisabled","useMemo","jsxs","S.Wrap","children","jsx","S.QuantityInput","QuantityInput","onIncreaseQuantity","onDecreaseQuantity","CartButton","variant","onClick","stopPropagation"],"mappings":";;;;;;;;AAOa,MAAAA,gBAAA,GAAmB,SAASA,iBAAiBC,CAAA;EACxDC,SAAA;EACAC,QAAA;EACAC,QAAA;EACAC,gBAAA;EACAC,WAAA;EACAC,iBAAA;EACAC,UAAA;EACAC;AACF,CAA0B,EAAA;EACxB,MAAMC,sBAAyB,GAAAC,KAAA,CAAAA,WAAA,CAC5BC,CAAqC,IAAA;IAC9B,MAAAC,KAAA,GAAQC,KAAKC,GAAI,CAAA,CAAA,EAAGC,SAASJ,CAAE,CAAAK,MAAA,CAAOJ,KAAK,CAAA,IAAK,CAAC,CAAA;IAEvDR,gBAAA,CAAiBQ,KAAK,CAAA;EACxB,CAAA,EACA,CAACR,gBAAgB,CAAA,CACnB;EAEM,MAAAa,iBAAA,GAAoBP,KAAAA,CAAAA,YAAY,MAAM;IACtC,IAAA,CAACF,SAAa,IAAAL,QAAA,GAAW,CAAG,EAAA;IAElBE,WAAA,IAAA;EACb,CAAA,EAAA,CAACG,SAAW,EAAAH,WAAA,EAAaF,QAAQ,CAAC,CAAA;EAE/B,MAAAe,kBAAA,GAAqBC,KAAAA,CAAAA,QAAQ,MAAM;IACvC,OAAOjB,QAAa,IAAA,CAACM,SAAa,IAAAL,QAAA,GAAW,KAAMI,UAAY,EAAAL,QAAA;EAAA,GAC9D,CAACM,SAAA,EAAWD,YAAYL,QAAU,EAAAA,QAAA,EAAUC,QAAQ,CAAC,CAAA;EAKxD,OAAA,eACGiB,eAAA,CAAAC,uBAAAA,CAAAA,IAAA,EAAA;IAAOpB,SACL;IAAAqB,QAAA,EAAA,CAAA,CAAChB,iBACA,IAAA,eAAAiB,UAAA,CAAAA,GAAA,CAACC,uBAAE,CAAAC,aAAA,EAAF;MACCvB,QAAA;MACAC,QAAA;MACAC,gBAAkB,EAAAK,sBAAA;MAClBiB,kBAAoB,EAAAA,CAAA,KAAMtB,gBAAiB,CAAAD,QAAA,GAAW,CAAC,CAAA;MACvDwB,oBAAoBA,CAAA,KAClBvB,gBAAA,CAAiBD,WAAW,CAAI,GAAAA,QAAA,GAAW,IAAI,CAAC;IAAA,CAEpD,CAAA,EAEDE,WACC,mBAAAkB,UAAA,CAAAA,GAAA,CAACK,UAAA,CAAAA,UAAA,EAAA;MACC,cAAa,EAAA,iBAAA;MACbC,OAAQ,EAAA,SAAA;MACP,GAAGtB,UAAA;MACJL,QAAU,EAAAgB,kBAAA;MACVY,OAAA,EAAUnB,CAAM,IAAA;QACdA,CAAA,CAAEoB,eAAgB,CAAA,CAAA;QACAd,iBAAA,EAAA;MACpB;IAAA,CACF,CAAA;EAEJ,CAAA,CAAA;AAEJ,CAAA;"}
@@ -20,7 +20,7 @@ const QuantityControls = function QuantityControls2({
20
20
  }, [onUpdateQuantity]);
21
21
  const handleOnAddToCart = useCallback(() => {
22
22
  if (!allowZero && quantity < 1) return;
23
- onAddToCart();
23
+ onAddToCart?.();
24
24
  }, [allowZero, onAddToCart, quantity]);
25
25
  const cartButtonDisabled = useMemo(() => {
26
26
  return disabled || !allowZero && quantity < 1 || cartButton?.disabled;
@@ -33,7 +33,7 @@ const QuantityControls = function QuantityControls2({
33
33
  onUpdateQuantity: handleOnUpdateQuantity,
34
34
  onIncreaseQuantity: () => onUpdateQuantity(quantity + 1),
35
35
  onDecreaseQuantity: () => onUpdateQuantity(quantity > 0 ? quantity - 1 : 0)
36
- }), /* @__PURE__ */jsx(CartButton, {
36
+ }), onAddToCart && /* @__PURE__ */jsx(CartButton, {
37
37
  "data-test-id": "add-to-cart-btn",
38
38
  variant: "primary",
39
39
  ...cartButton,
@@ -1 +1 @@
1
- {"version":3,"file":"QuantityControls.mjs","sources":["../../../src/components/QuantityControls/QuantityControls.tsx"],"sourcesContent":["import type { ChangeEvent } from \"react\";\nimport { useCallback, useMemo } from \"react\";\n\nimport { CartButton } from \"../Button\";\nimport * as S from \"./QuantityControls.styles\";\nimport type { QuantityControlsProps } from \"./QuantityControls.types\";\n\nexport const QuantityControls = function QuantityControls({\n className,\n disabled,\n quantity,\n onUpdateQuantity,\n onAddToCart,\n hideQuantityInput,\n cartButton,\n allowZero,\n}: QuantityControlsProps) {\n const handleOnUpdateQuantity = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n const value = Math.max(0, parseInt(e.target.value) || 0);\n\n onUpdateQuantity(value);\n },\n [onUpdateQuantity],\n );\n\n const handleOnAddToCart = useCallback(() => {\n if (!allowZero && quantity < 1) return;\n\n onAddToCart();\n }, [allowZero, onAddToCart, quantity]);\n\n const cartButtonDisabled = useMemo(() => {\n return disabled || (!allowZero && quantity < 1) || cartButton?.disabled;\n }, [allowZero, cartButton?.disabled, disabled, quantity]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.Wrap className={className}>\n {!hideQuantityInput && (\n <S.QuantityInput\n disabled={disabled}\n quantity={quantity}\n onUpdateQuantity={handleOnUpdateQuantity}\n onIncreaseQuantity={() => onUpdateQuantity(quantity + 1)}\n onDecreaseQuantity={() =>\n onUpdateQuantity(quantity > 0 ? quantity - 1 : 0)\n }\n />\n )}\n <CartButton\n data-test-id=\"add-to-cart-btn\"\n variant=\"primary\"\n {...cartButton}\n disabled={cartButtonDisabled}\n onClick={(e) => {\n e.stopPropagation();\n handleOnAddToCart();\n }}\n />\n </S.Wrap>\n );\n};\n"],"names":["QuantityControls","QuantityControls2","className","disabled","quantity","onUpdateQuantity","onAddToCart","hideQuantityInput","cartButton","allowZero","handleOnUpdateQuantity","useCallback","e","value","Math","max","parseInt","target","handleOnAddToCart","cartButtonDisabled","useMemo","jsxs","S.Wrap","children","jsx","S.QuantityInput","onIncreaseQuantity","onDecreaseQuantity","CartButton","variant","onClick","stopPropagation"],"mappings":";;;;;;AAOa,MAAAA,gBAAA,GAAmB,SAASA,iBAAiBC,CAAA;EACxDC,SAAA;EACAC,QAAA;EACAC,QAAA;EACAC,gBAAA;EACAC,WAAA;EACAC,iBAAA;EACAC,UAAA;EACAC;AACF,CAA0B,EAAA;EACxB,MAAMC,sBAAyB,GAAAC,WAAA,CAC5BC,CAAqC,IAAA;IAC9B,MAAAC,KAAA,GAAQC,KAAKC,GAAI,CAAA,CAAA,EAAGC,SAASJ,CAAE,CAAAK,MAAA,CAAOJ,KAAK,CAAA,IAAK,CAAC,CAAA;IAEvDR,gBAAA,CAAiBQ,KAAK,CAAA;EACxB,CAAA,EACA,CAACR,gBAAgB,CAAA,CACnB;EAEM,MAAAa,iBAAA,GAAoBP,YAAY,MAAM;IACtC,IAAA,CAACF,SAAa,IAAAL,QAAA,GAAW,CAAG,EAAA;IAEpBE,WAAA,EAAA;EACX,CAAA,EAAA,CAACG,SAAW,EAAAH,WAAA,EAAaF,QAAQ,CAAC,CAAA;EAE/B,MAAAe,kBAAA,GAAqBC,QAAQ,MAAM;IACvC,OAAOjB,QAAa,IAAA,CAACM,SAAa,IAAAL,QAAA,GAAW,KAAMI,UAAY,EAAAL,QAAA;EAAA,GAC9D,CAACM,SAAA,EAAWD,YAAYL,QAAU,EAAAA,QAAA,EAAUC,QAAQ,CAAC,CAAA;EAKxD,OAAA,eACGiB,IAAA,CAAAC,IAAA,EAAA;IAAOpB,SACL;IAAAqB,QAAA,EAAA,CAAA,CAAChB,iBACA,IAAA,eAAAiB,GAAA,CAACC,aAAE,EAAF;MACCtB,QAAA;MACAC,QAAA;MACAC,gBAAkB,EAAAK,sBAAA;MAClBgB,kBAAoB,EAAAA,CAAA,KAAMrB,gBAAiB,CAAAD,QAAA,GAAW,CAAC,CAAA;MACvDuB,oBAAoBA,CAAA,KAClBtB,gBAAA,CAAiBD,WAAW,CAAI,GAAAA,QAAA,GAAW,IAAI,CAAC;IAAA,CAEpD,CAAA,EAAA,eAEFoB,GAAA,CAACI,UAAA,EAAA;MACC,cAAa,EAAA,iBAAA;MACbC,OAAQ,EAAA,SAAA;MACP,GAAGrB,UAAA;MACJL,QAAU,EAAAgB,kBAAA;MACVW,OAAA,EAAUlB,CAAM,IAAA;QACdA,CAAA,CAAEmB,eAAgB,CAAA,CAAA;QACAb,iBAAA,EAAA;MACpB;IAAA,CACF,CAAA;EACF,CAAA,CAAA;AAEJ,CAAA;"}
1
+ {"version":3,"file":"QuantityControls.mjs","sources":["../../../src/components/QuantityControls/QuantityControls.tsx"],"sourcesContent":["import type { ChangeEvent } from \"react\";\nimport { useCallback, useMemo } from \"react\";\n\nimport { CartButton } from \"../Button\";\nimport * as S from \"./QuantityControls.styles\";\nimport type { QuantityControlsProps } from \"./QuantityControls.types\";\n\nexport const QuantityControls = function QuantityControls({\n className,\n disabled,\n quantity,\n onUpdateQuantity,\n onAddToCart,\n hideQuantityInput,\n cartButton,\n allowZero,\n}: QuantityControlsProps) {\n const handleOnUpdateQuantity = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n const value = Math.max(0, parseInt(e.target.value) || 0);\n\n onUpdateQuantity(value);\n },\n [onUpdateQuantity],\n );\n\n const handleOnAddToCart = useCallback(() => {\n if (!allowZero && quantity < 1) return;\n\n onAddToCart?.();\n }, [allowZero, onAddToCart, quantity]);\n\n const cartButtonDisabled = useMemo(() => {\n return disabled || (!allowZero && quantity < 1) || cartButton?.disabled;\n }, [allowZero, cartButton?.disabled, disabled, quantity]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.Wrap className={className}>\n {!hideQuantityInput && (\n <S.QuantityInput\n disabled={disabled}\n quantity={quantity}\n onUpdateQuantity={handleOnUpdateQuantity}\n onIncreaseQuantity={() => onUpdateQuantity(quantity + 1)}\n onDecreaseQuantity={() =>\n onUpdateQuantity(quantity > 0 ? quantity - 1 : 0)\n }\n />\n )}\n {onAddToCart && (\n <CartButton\n data-test-id=\"add-to-cart-btn\"\n variant=\"primary\"\n {...cartButton}\n disabled={cartButtonDisabled}\n onClick={(e) => {\n e.stopPropagation();\n handleOnAddToCart();\n }}\n />\n )}\n </S.Wrap>\n );\n};\n"],"names":["QuantityControls","QuantityControls2","className","disabled","quantity","onUpdateQuantity","onAddToCart","hideQuantityInput","cartButton","allowZero","handleOnUpdateQuantity","useCallback","e","value","Math","max","parseInt","target","handleOnAddToCart","cartButtonDisabled","useMemo","jsxs","S.Wrap","children","jsx","S.QuantityInput","onIncreaseQuantity","onDecreaseQuantity","CartButton","variant","onClick","stopPropagation"],"mappings":";;;;;;AAOa,MAAAA,gBAAA,GAAmB,SAASA,iBAAiBC,CAAA;EACxDC,SAAA;EACAC,QAAA;EACAC,QAAA;EACAC,gBAAA;EACAC,WAAA;EACAC,iBAAA;EACAC,UAAA;EACAC;AACF,CAA0B,EAAA;EACxB,MAAMC,sBAAyB,GAAAC,WAAA,CAC5BC,CAAqC,IAAA;IAC9B,MAAAC,KAAA,GAAQC,KAAKC,GAAI,CAAA,CAAA,EAAGC,SAASJ,CAAE,CAAAK,MAAA,CAAOJ,KAAK,CAAA,IAAK,CAAC,CAAA;IAEvDR,gBAAA,CAAiBQ,KAAK,CAAA;EACxB,CAAA,EACA,CAACR,gBAAgB,CAAA,CACnB;EAEM,MAAAa,iBAAA,GAAoBP,YAAY,MAAM;IACtC,IAAA,CAACF,SAAa,IAAAL,QAAA,GAAW,CAAG,EAAA;IAElBE,WAAA,IAAA;EACb,CAAA,EAAA,CAACG,SAAW,EAAAH,WAAA,EAAaF,QAAQ,CAAC,CAAA;EAE/B,MAAAe,kBAAA,GAAqBC,QAAQ,MAAM;IACvC,OAAOjB,QAAa,IAAA,CAACM,SAAa,IAAAL,QAAA,GAAW,KAAMI,UAAY,EAAAL,QAAA;EAAA,GAC9D,CAACM,SAAA,EAAWD,YAAYL,QAAU,EAAAA,QAAA,EAAUC,QAAQ,CAAC,CAAA;EAKxD,OAAA,eACGiB,IAAA,CAAAC,IAAA,EAAA;IAAOpB,SACL;IAAAqB,QAAA,EAAA,CAAA,CAAChB,iBACA,IAAA,eAAAiB,GAAA,CAACC,aAAE,EAAF;MACCtB,QAAA;MACAC,QAAA;MACAC,gBAAkB,EAAAK,sBAAA;MAClBgB,kBAAoB,EAAAA,CAAA,KAAMrB,gBAAiB,CAAAD,QAAA,GAAW,CAAC,CAAA;MACvDuB,oBAAoBA,CAAA,KAClBtB,gBAAA,CAAiBD,WAAW,CAAI,GAAAA,QAAA,GAAW,IAAI,CAAC;IAAA,CAEpD,CAAA,EAEDE,WACC,mBAAAkB,GAAA,CAACI,UAAA,EAAA;MACC,cAAa,EAAA,iBAAA;MACbC,OAAQ,EAAA,SAAA;MACP,GAAGrB,UAAA;MACJL,QAAU,EAAAgB,kBAAA;MACVW,OAAA,EAAUlB,CAAM,IAAA;QACdA,CAAA,CAAEmB,eAAgB,CAAA,CAAA;QACAb,iBAAA,EAAA;MACpB;IAAA,CACF,CAAA;EAEJ,CAAA,CAAA;AAEJ,CAAA;"}
@@ -4,7 +4,7 @@ export interface QuantityControlsProps {
4
4
  disabled?: boolean;
5
5
  quantity: number;
6
6
  onUpdateQuantity: (quantity: number) => void;
7
- onAddToCart: () => void;
7
+ onAddToCart?: () => void;
8
8
  hideQuantityInput?: boolean;
9
9
  cartButton?: Partial<CartButtonProps>;
10
10
  allowZero?: boolean;
@@ -35,6 +35,7 @@ const QuantityInput = ({
35
35
  "data-test-id": "decrease",
36
36
  onClick: e => {
37
37
  e?.stopPropagation();
38
+ e?.preventDefault();
38
39
  onDecreaseQuantity?.(e);
39
40
  },
40
41
  disabled: quantity === 0 || disabled,
@@ -54,12 +55,16 @@ const QuantityInput = ({
54
55
  e?.stopPropagation();
55
56
  onUpdateQuantity?.(e);
56
57
  },
57
- onClick: e => e.stopPropagation(),
58
+ onClick: e => {
59
+ e?.stopPropagation();
60
+ e?.preventDefault();
61
+ },
58
62
  disabled
59
63
  }), /* @__PURE__ */jsxRuntime.jsx(QuantityInput_styles.PlusAdjustButton, {
60
64
  "data-test-id": "increase",
61
65
  onClick: e => {
62
66
  e?.stopPropagation();
67
+ e?.preventDefault();
63
68
  onIncreaseQuantity?.(e);
64
69
  },
65
70
  disabled: (quantity || 0) >= maxQuantity || disabled,
@@ -1 +1 @@
1
- {"version":3,"file":"QuantityInput.js","sources":["../../../src/components/QuantityInput/QuantityInput.tsx"],"sourcesContent":["import { minus, plus } from \"../../assets/icons/wizard\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport * as S from \"./QuantityInput.styles\";\nimport type { QuantityInputProps } from \"./QuantityInput.types\";\n\n/**\n * TODO: Wrong plus and minus icons - should be reexported from the figma\n */\nexport const QuantityInput = ({\n quantity,\n onIncreaseQuantity,\n onDecreaseQuantity,\n onUpdateQuantity,\n disabled,\n label,\n className,\n maxQuantity = 999,\n}: QuantityInputProps) => {\n return (\n <S.Container className={className}>\n {label && <S.Label>{label}</S.Label>}\n <S.QuantityAdjustWrap $disabled={disabled}>\n <S.MinusAdjustButton\n data-test-id=\"decrease\"\n onClick={(e) => {\n e?.stopPropagation();\n onDecreaseQuantity?.(e);\n }}\n disabled={quantity === 0 || disabled}\n >\n <StyleableSvgImage src={minus} width={8} height={8} />\n </S.MinusAdjustButton>\n <S.QuantityInput\n data-test-id=\"item-quantity\"\n min=\"0\"\n type=\"text\"\n pattern=\"[0-9]*\"\n maxLength={5}\n value={quantity}\n onChange={(e) => {\n e?.stopPropagation();\n onUpdateQuantity?.(e);\n }}\n onClick={(e) => e.stopPropagation()}\n disabled={disabled}\n />\n <S.PlusAdjustButton\n data-test-id=\"increase\"\n onClick={(e) => {\n e?.stopPropagation();\n onIncreaseQuantity?.(e);\n }}\n disabled={(quantity || 0) >= maxQuantity || disabled}\n >\n <StyleableSvgImage src={plus} width={8} height={8} />\n </S.PlusAdjustButton>\n </S.QuantityAdjustWrap>\n </S.Container>\n );\n};\n"],"names":["QuantityInput","quantity","onIncreaseQuantity","onDecreaseQuantity","onUpdateQuantity","disabled","label","className","maxQuantity","jsxs","S.Container","children","jsx","S.Label","S.QuantityAdjustWrap","$disabled","S.MinusAdjustButton","MinusAdjustButton","onClick","e","stopPropagation","StyleableSvgImage","src","minus","width","height","S.QuantityInput","min","type","pattern","maxLength","value","onChange","S.PlusAdjustButton","PlusAdjustButton","plus"],"mappings":";;;;;;;;;;;;;;;;;AAQO,MAAMA,gBAAgBA,CAAC;EAC5BC,QAAA;EACAC,kBAAA;EACAC,kBAAA;EACAC,gBAAA;EACAC,QAAA;EACAC,KAAA;EACAC,SAAA;EACAC,WAAc,GAAA;AAChB,CAA0B,KAAA;EACxB,OAAA,eACGC,eAAA,CAAAC,oBAAAA,CAAAA,SAAA,EAAA;IAAYH,SACV;IAAAI,QAAA,EAAA,CAAAL,KAAA,IAAUM,eAAAA,UAAAA,CAAAA,GAAA,CAAAC,oBAAAA,CAAAA,KAAA,EAAA;MAASF,QAAM,EAAAL;IAAA,CAAA,CAAA,EACzBG,eAAAA,UAAAA,CAAAA,IAAA,CAAAK,oBAAAA,CAAAA,kBAAA,EAAA;MAAqBC,WAAWV,QAC/B;MAAAM,QAAA,EAAA,CAAA,eAAAC,UAAA,CAAAA,GAAA,CAACI,oBAAE,CAAAC,iBAAA,EAAF;QACC,cAAa,EAAA,UAAA;QACbC,OAAA,EAAUC,CAAM,IAAA;UACdA,CAAA,EAAGC,eAAgB,CAAA,CAAA;UACnBjB,kBAAA,GAAqBgB,CAAC,CAAA;QACxB,CAAA;QACAd,QAAA,EAAUJ,aAAa,CAAK,IAAAI,QAAA;QAE5BM,wCAACU,iBAAkB,CAAAA,iBAAA,EAAA;UAAAC,GAAA,EAAKC;UAAOC,KAAO,EAAA,CAAA;UAAGC,QAAQ;SAAG;MAAA,CACtD,CAAA,EAAA,eACAb,UAAA,CAAAA,GAAA,CAACc,oBAAE,CAAA1B,aAAA,EAAF;QACC,cAAa,EAAA,eAAA;QACb2B,GAAI,EAAA,GAAA;QACJC,IAAK,EAAA,MAAA;QACLC,OAAQ,EAAA,QAAA;QACRC,SAAW,EAAA,CAAA;QACXC,KAAO,EAAA9B,QAAA;QACP+B,QAAA,EAAWb,CAAM,IAAA;UACfA,CAAA,EAAGC,eAAgB,CAAA,CAAA;UACnBhB,gBAAA,GAAmBe,CAAC,CAAA;QACtB,CAAA;QACAD,OAAS,EAACC,CAAM,IAAAA,CAAA,CAAEC,eAAgB,CAAA,CAAA;QAClCf;MAAA,CACF,CAAA,EAAA,eACAO,UAAA,CAAAA,GAAA,CAACqB,oBAAE,CAAAC,gBAAA,EAAF;QACC,cAAa,EAAA,UAAA;QACbhB,OAAA,EAAUC,CAAM,IAAA;UACdA,CAAA,EAAGC,eAAgB,CAAA,CAAA;UACnBlB,kBAAA,GAAqBiB,CAAC,CAAA;QACxB,CAAA;QACAd,QAAA,EAAA,CAAWJ,QAAY,IAAA,CAAA,KAAMO,WAAe,IAAAH,QAAA;QAE5CM,wCAACU,iBAAkB,CAAAA,iBAAA,EAAA;UAAAC,GAAA,EAAKa;UAAMX,KAAO,EAAA,CAAA;UAAGC,QAAQ;SAAG;MAAA,CACrD,CAAA;KACF,CAAA;EACF,CAAA,CAAA;AAEJ,CAAA;"}
1
+ {"version":3,"file":"QuantityInput.js","sources":["../../../src/components/QuantityInput/QuantityInput.tsx"],"sourcesContent":["import { minus, plus } from \"../../assets/icons/wizard\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport * as S from \"./QuantityInput.styles\";\nimport type { QuantityInputProps } from \"./QuantityInput.types\";\n\n/**\n * TODO: Wrong plus and minus icons - should be reexported from the figma\n */\nexport const QuantityInput = ({\n quantity,\n onIncreaseQuantity,\n onDecreaseQuantity,\n onUpdateQuantity,\n disabled,\n label,\n className,\n maxQuantity = 999,\n}: QuantityInputProps) => {\n return (\n <S.Container className={className}>\n {label && <S.Label>{label}</S.Label>}\n <S.QuantityAdjustWrap $disabled={disabled}>\n <S.MinusAdjustButton\n data-test-id=\"decrease\"\n onClick={(e) => {\n e?.stopPropagation();\n e?.preventDefault();\n onDecreaseQuantity?.(e);\n }}\n disabled={quantity === 0 || disabled}\n >\n <StyleableSvgImage src={minus} width={8} height={8} />\n </S.MinusAdjustButton>\n <S.QuantityInput\n data-test-id=\"item-quantity\"\n min=\"0\"\n type=\"text\"\n pattern=\"[0-9]*\"\n maxLength={5}\n value={quantity}\n onChange={(e) => {\n e?.stopPropagation();\n onUpdateQuantity?.(e);\n }}\n onClick={(e) => {\n e?.stopPropagation();\n e?.preventDefault();\n }}\n disabled={disabled}\n />\n <S.PlusAdjustButton\n data-test-id=\"increase\"\n onClick={(e) => {\n e?.stopPropagation();\n e?.preventDefault();\n onIncreaseQuantity?.(e);\n }}\n disabled={(quantity || 0) >= maxQuantity || disabled}\n >\n <StyleableSvgImage src={plus} width={8} height={8} />\n </S.PlusAdjustButton>\n </S.QuantityAdjustWrap>\n </S.Container>\n );\n};\n"],"names":["QuantityInput","quantity","onIncreaseQuantity","onDecreaseQuantity","onUpdateQuantity","disabled","label","className","maxQuantity","jsxs","S.Container","children","jsx","S.Label","S.QuantityAdjustWrap","$disabled","S.MinusAdjustButton","MinusAdjustButton","onClick","e","stopPropagation","preventDefault","StyleableSvgImage","src","minus","width","height","S.QuantityInput","min","type","pattern","maxLength","value","onChange","S.PlusAdjustButton","PlusAdjustButton","plus"],"mappings":";;;;;;;;;;;;;;;;;AAQO,MAAMA,gBAAgBA,CAAC;EAC5BC,QAAA;EACAC,kBAAA;EACAC,kBAAA;EACAC,gBAAA;EACAC,QAAA;EACAC,KAAA;EACAC,SAAA;EACAC,WAAc,GAAA;AAChB,CAA0B,KAAA;EACxB,OAAA,eACGC,eAAA,CAAAC,oBAAAA,CAAAA,SAAA,EAAA;IAAYH,SACV;IAAAI,QAAA,EAAA,CAAAL,KAAA,IAAUM,eAAAA,UAAAA,CAAAA,GAAA,CAAAC,oBAAAA,CAAAA,KAAA,EAAA;MAASF,QAAM,EAAAL;IAAA,CAAA,CAAA,EACzBG,eAAAA,UAAAA,CAAAA,IAAA,CAAAK,oBAAAA,CAAAA,kBAAA,EAAA;MAAqBC,WAAWV,QAC/B;MAAAM,QAAA,EAAA,CAAA,eAAAC,UAAA,CAAAA,GAAA,CAACI,oBAAE,CAAAC,iBAAA,EAAF;QACC,cAAa,EAAA,UAAA;QACbC,OAAA,EAAUC,CAAM,IAAA;UACdA,CAAA,EAAGC,eAAgB,CAAA,CAAA;UACnBD,CAAA,EAAGE,cAAe,CAAA,CAAA;UAClBlB,kBAAA,GAAqBgB,CAAC,CAAA;QACxB,CAAA;QACAd,QAAA,EAAUJ,aAAa,CAAK,IAAAI,QAAA;QAE5BM,wCAACW,iBAAkB,CAAAA,iBAAA,EAAA;UAAAC,GAAA,EAAKC;UAAOC,KAAO,EAAA,CAAA;UAAGC,QAAQ;SAAG;MAAA,CACtD,CAAA,EAAA,eACAd,UAAA,CAAAA,GAAA,CAACe,oBAAE,CAAA3B,aAAA,EAAF;QACC,cAAa,EAAA,eAAA;QACb4B,GAAI,EAAA,GAAA;QACJC,IAAK,EAAA,MAAA;QACLC,OAAQ,EAAA,QAAA;QACRC,SAAW,EAAA,CAAA;QACXC,KAAO,EAAA/B,QAAA;QACPgC,QAAA,EAAWd,CAAM,IAAA;UACfA,CAAA,EAAGC,eAAgB,CAAA,CAAA;UACnBhB,gBAAA,GAAmBe,CAAC,CAAA;QACtB,CAAA;QACAD,OAAA,EAAUC,CAAM,IAAA;UACdA,CAAA,EAAGC,eAAgB,CAAA,CAAA;UACnBD,CAAA,EAAGE,cAAe,CAAA,CAAA;QACpB,CAAA;QACAhB;MAAA,CACF,CAAA,EAAA,eACAO,UAAA,CAAAA,GAAA,CAACsB,oBAAE,CAAAC,gBAAA,EAAF;QACC,cAAa,EAAA,UAAA;QACbjB,OAAA,EAAUC,CAAM,IAAA;UACdA,CAAA,EAAGC,eAAgB,CAAA,CAAA;UACnBD,CAAA,EAAGE,cAAe,CAAA,CAAA;UAClBnB,kBAAA,GAAqBiB,CAAC,CAAA;QACxB,CAAA;QACAd,QAAA,EAAA,CAAWJ,QAAY,IAAA,CAAA,KAAMO,WAAe,IAAAH,QAAA;QAE5CM,wCAACW,iBAAkB,CAAAA,iBAAA,EAAA;UAAAC,GAAA,EAAKa;UAAMX,KAAO,EAAA,CAAA;UAAGC,QAAQ;SAAG;MAAA,CACrD,CAAA;KACF,CAAA;EACF,CAAA,CAAA;AAEJ,CAAA;"}
@@ -26,6 +26,7 @@ const QuantityInput = ({
26
26
  "data-test-id": "decrease",
27
27
  onClick: e => {
28
28
  e?.stopPropagation();
29
+ e?.preventDefault();
29
30
  onDecreaseQuantity?.(e);
30
31
  },
31
32
  disabled: quantity === 0 || disabled,
@@ -45,12 +46,16 @@ const QuantityInput = ({
45
46
  e?.stopPropagation();
46
47
  onUpdateQuantity?.(e);
47
48
  },
48
- onClick: e => e.stopPropagation(),
49
+ onClick: e => {
50
+ e?.stopPropagation();
51
+ e?.preventDefault();
52
+ },
49
53
  disabled
50
54
  }), /* @__PURE__ */jsx(PlusAdjustButton, {
51
55
  "data-test-id": "increase",
52
56
  onClick: e => {
53
57
  e?.stopPropagation();
58
+ e?.preventDefault();
54
59
  onIncreaseQuantity?.(e);
55
60
  },
56
61
  disabled: (quantity || 0) >= maxQuantity || disabled,
@@ -1 +1 @@
1
- {"version":3,"file":"QuantityInput.mjs","sources":["../../../src/components/QuantityInput/QuantityInput.tsx"],"sourcesContent":["import { minus, plus } from \"../../assets/icons/wizard\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport * as S from \"./QuantityInput.styles\";\nimport type { QuantityInputProps } from \"./QuantityInput.types\";\n\n/**\n * TODO: Wrong plus and minus icons - should be reexported from the figma\n */\nexport const QuantityInput = ({\n quantity,\n onIncreaseQuantity,\n onDecreaseQuantity,\n onUpdateQuantity,\n disabled,\n label,\n className,\n maxQuantity = 999,\n}: QuantityInputProps) => {\n return (\n <S.Container className={className}>\n {label && <S.Label>{label}</S.Label>}\n <S.QuantityAdjustWrap $disabled={disabled}>\n <S.MinusAdjustButton\n data-test-id=\"decrease\"\n onClick={(e) => {\n e?.stopPropagation();\n onDecreaseQuantity?.(e);\n }}\n disabled={quantity === 0 || disabled}\n >\n <StyleableSvgImage src={minus} width={8} height={8} />\n </S.MinusAdjustButton>\n <S.QuantityInput\n data-test-id=\"item-quantity\"\n min=\"0\"\n type=\"text\"\n pattern=\"[0-9]*\"\n maxLength={5}\n value={quantity}\n onChange={(e) => {\n e?.stopPropagation();\n onUpdateQuantity?.(e);\n }}\n onClick={(e) => e.stopPropagation()}\n disabled={disabled}\n />\n <S.PlusAdjustButton\n data-test-id=\"increase\"\n onClick={(e) => {\n e?.stopPropagation();\n onIncreaseQuantity?.(e);\n }}\n disabled={(quantity || 0) >= maxQuantity || disabled}\n >\n <StyleableSvgImage src={plus} width={8} height={8} />\n </S.PlusAdjustButton>\n </S.QuantityAdjustWrap>\n </S.Container>\n );\n};\n"],"names":["QuantityInput","quantity","onIncreaseQuantity","onDecreaseQuantity","onUpdateQuantity","disabled","label","className","maxQuantity","jsxs","S.Container","children","jsx","S.Label","S.QuantityAdjustWrap","$disabled","S.MinusAdjustButton","onClick","e","stopPropagation","StyleableSvgImage","src","minus","width","height","S.QuantityInput","min","type","pattern","maxLength","value","onChange","S.PlusAdjustButton","plus"],"mappings":";;;;;;;;AAQO,MAAMA,gBAAgBA,CAAC;EAC5BC,QAAA;EACAC,kBAAA;EACAC,kBAAA;EACAC,gBAAA;EACAC,QAAA;EACAC,KAAA;EACAC,SAAA;EACAC,WAAc,GAAA;AAChB,CAA0B,KAAA;EACxB,OAAA,eACGC,IAAA,CAAAC,SAAA,EAAA;IAAYH,SACV;IAAAI,QAAA,EAAA,CAAAL,KAAA,IAAU,eAAAM,GAAA,CAAAC,KAAA,EAAA;MAASF,QAAM,EAAAL;IAAA,CAAA,CAAA,EACzB,eAAAG,IAAA,CAAAK,kBAAA,EAAA;MAAqBC,WAAWV,QAC/B;MAAAM,QAAA,EAAA,CAAA,eAAAC,GAAA,CAACI,iBAAE,EAAF;QACC,cAAa,EAAA,UAAA;QACbC,OAAA,EAAUC,CAAM,IAAA;UACdA,CAAA,EAAGC,eAAgB,CAAA,CAAA;UACnBhB,kBAAA,GAAqBe,CAAC,CAAA;QACxB,CAAA;QACAb,QAAA,EAAUJ,aAAa,CAAK,IAAAI,QAAA;QAE5BM,6BAACS,iBAAkB,EAAA;UAAAC,GAAA,EAAKC;UAAOC,KAAO,EAAA,CAAA;UAAGC,QAAQ;SAAG;MAAA,CACtD,CAAA,EAAA,eACAZ,GAAA,CAACa,eAAE,EAAF;QACC,cAAa,EAAA,eAAA;QACbC,GAAI,EAAA,GAAA;QACJC,IAAK,EAAA,MAAA;QACLC,OAAQ,EAAA,QAAA;QACRC,SAAW,EAAA,CAAA;QACXC,KAAO,EAAA7B,QAAA;QACP8B,QAAA,EAAWb,CAAM,IAAA;UACfA,CAAA,EAAGC,eAAgB,CAAA,CAAA;UACnBf,gBAAA,GAAmBc,CAAC,CAAA;QACtB,CAAA;QACAD,OAAS,EAACC,CAAM,IAAAA,CAAA,CAAEC,eAAgB,CAAA,CAAA;QAClCd;MAAA,CACF,CAAA,EAAA,eACAO,GAAA,CAACoB,gBAAE,EAAF;QACC,cAAa,EAAA,UAAA;QACbf,OAAA,EAAUC,CAAM,IAAA;UACdA,CAAA,EAAGC,eAAgB,CAAA,CAAA;UACnBjB,kBAAA,GAAqBgB,CAAC,CAAA;QACxB,CAAA;QACAb,QAAA,EAAA,CAAWJ,QAAY,IAAA,CAAA,KAAMO,WAAe,IAAAH,QAAA;QAE5CM,6BAACS,iBAAkB,EAAA;UAAAC,GAAA,EAAKY;UAAMV,KAAO,EAAA,CAAA;UAAGC,QAAQ;SAAG;MAAA,CACrD,CAAA;KACF,CAAA;EACF,CAAA,CAAA;AAEJ,CAAA;"}
1
+ {"version":3,"file":"QuantityInput.mjs","sources":["../../../src/components/QuantityInput/QuantityInput.tsx"],"sourcesContent":["import { minus, plus } from \"../../assets/icons/wizard\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport * as S from \"./QuantityInput.styles\";\nimport type { QuantityInputProps } from \"./QuantityInput.types\";\n\n/**\n * TODO: Wrong plus and minus icons - should be reexported from the figma\n */\nexport const QuantityInput = ({\n quantity,\n onIncreaseQuantity,\n onDecreaseQuantity,\n onUpdateQuantity,\n disabled,\n label,\n className,\n maxQuantity = 999,\n}: QuantityInputProps) => {\n return (\n <S.Container className={className}>\n {label && <S.Label>{label}</S.Label>}\n <S.QuantityAdjustWrap $disabled={disabled}>\n <S.MinusAdjustButton\n data-test-id=\"decrease\"\n onClick={(e) => {\n e?.stopPropagation();\n e?.preventDefault();\n onDecreaseQuantity?.(e);\n }}\n disabled={quantity === 0 || disabled}\n >\n <StyleableSvgImage src={minus} width={8} height={8} />\n </S.MinusAdjustButton>\n <S.QuantityInput\n data-test-id=\"item-quantity\"\n min=\"0\"\n type=\"text\"\n pattern=\"[0-9]*\"\n maxLength={5}\n value={quantity}\n onChange={(e) => {\n e?.stopPropagation();\n onUpdateQuantity?.(e);\n }}\n onClick={(e) => {\n e?.stopPropagation();\n e?.preventDefault();\n }}\n disabled={disabled}\n />\n <S.PlusAdjustButton\n data-test-id=\"increase\"\n onClick={(e) => {\n e?.stopPropagation();\n e?.preventDefault();\n onIncreaseQuantity?.(e);\n }}\n disabled={(quantity || 0) >= maxQuantity || disabled}\n >\n <StyleableSvgImage src={plus} width={8} height={8} />\n </S.PlusAdjustButton>\n </S.QuantityAdjustWrap>\n </S.Container>\n );\n};\n"],"names":["QuantityInput","quantity","onIncreaseQuantity","onDecreaseQuantity","onUpdateQuantity","disabled","label","className","maxQuantity","jsxs","S.Container","children","jsx","S.Label","S.QuantityAdjustWrap","$disabled","S.MinusAdjustButton","onClick","e","stopPropagation","preventDefault","StyleableSvgImage","src","minus","width","height","S.QuantityInput","min","type","pattern","maxLength","value","onChange","S.PlusAdjustButton","plus"],"mappings":";;;;;;;;AAQO,MAAMA,gBAAgBA,CAAC;EAC5BC,QAAA;EACAC,kBAAA;EACAC,kBAAA;EACAC,gBAAA;EACAC,QAAA;EACAC,KAAA;EACAC,SAAA;EACAC,WAAc,GAAA;AAChB,CAA0B,KAAA;EACxB,OAAA,eACGC,IAAA,CAAAC,SAAA,EAAA;IAAYH,SACV;IAAAI,QAAA,EAAA,CAAAL,KAAA,IAAU,eAAAM,GAAA,CAAAC,KAAA,EAAA;MAASF,QAAM,EAAAL;IAAA,CAAA,CAAA,EACzB,eAAAG,IAAA,CAAAK,kBAAA,EAAA;MAAqBC,WAAWV,QAC/B;MAAAM,QAAA,EAAA,CAAA,eAAAC,GAAA,CAACI,iBAAE,EAAF;QACC,cAAa,EAAA,UAAA;QACbC,OAAA,EAAUC,CAAM,IAAA;UACdA,CAAA,EAAGC,eAAgB,CAAA,CAAA;UACnBD,CAAA,EAAGE,cAAe,CAAA,CAAA;UAClBjB,kBAAA,GAAqBe,CAAC,CAAA;QACxB,CAAA;QACAb,QAAA,EAAUJ,aAAa,CAAK,IAAAI,QAAA;QAE5BM,6BAACU,iBAAkB,EAAA;UAAAC,GAAA,EAAKC;UAAOC,KAAO,EAAA,CAAA;UAAGC,QAAQ;SAAG;MAAA,CACtD,CAAA,EAAA,eACAb,GAAA,CAACc,eAAE,EAAF;QACC,cAAa,EAAA,eAAA;QACbC,GAAI,EAAA,GAAA;QACJC,IAAK,EAAA,MAAA;QACLC,OAAQ,EAAA,QAAA;QACRC,SAAW,EAAA,CAAA;QACXC,KAAO,EAAA9B,QAAA;QACP+B,QAAA,EAAWd,CAAM,IAAA;UACfA,CAAA,EAAGC,eAAgB,CAAA,CAAA;UACnBf,gBAAA,GAAmBc,CAAC,CAAA;QACtB,CAAA;QACAD,OAAA,EAAUC,CAAM,IAAA;UACdA,CAAA,EAAGC,eAAgB,CAAA,CAAA;UACnBD,CAAA,EAAGE,cAAe,CAAA,CAAA;QACpB,CAAA;QACAf;MAAA,CACF,CAAA,EAAA,eACAO,GAAA,CAACqB,gBAAE,EAAF;QACC,cAAa,EAAA,UAAA;QACbhB,OAAA,EAAUC,CAAM,IAAA;UACdA,CAAA,EAAGC,eAAgB,CAAA,CAAA;UACnBD,CAAA,EAAGE,cAAe,CAAA,CAAA;UAClBlB,kBAAA,GAAqBgB,CAAC,CAAA;QACxB,CAAA;QACAb,QAAA,EAAA,CAAWJ,QAAY,IAAA,CAAA,KAAMO,WAAe,IAAAH,QAAA;QAE5CM,6BAACU,iBAAkB,EAAA;UAAAC,GAAA,EAAKY;UAAMV,KAAO,EAAA,CAAA;UAAGC,QAAQ;SAAG;MAAA,CACrD,CAAA;KACF,CAAA;EACF,CAAA,CAAA;AAEJ,CAAA;"}
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
- var react = require('react');
4
+ var React = require('react');
5
5
  require('../../assets/icons/addToCart.svg.js');
6
6
  require('../../utils/money/index.js');
7
7
  require('../ProductCardPopup/index.js');
@@ -30,10 +30,10 @@ const RelatedProducts = ({
30
30
  renderImage,
31
31
  translations
32
32
  }) => {
33
- const isLoading = react.useMemo(() => categories === null, [categories]);
34
- const [popupProduct, setPopupProduct] = react.useState(activePopupProduct);
35
- const isPopupOpen = react.useMemo(() => !!activePopupProduct, [activePopupProduct]);
36
- react.useEffect(() => {
33
+ const isLoading = React.useMemo(() => categories === null, [categories]);
34
+ const [popupProduct, setPopupProduct] = React.useState(activePopupProduct);
35
+ const isPopupOpen = React.useMemo(() => !!activePopupProduct, [activePopupProduct]);
36
+ React.useEffect(() => {
37
37
  if (activePopupProduct !== void 0) {
38
38
  setPopupProduct(activePopupProduct);
39
39
  }
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
- var react = require('react');
4
+ var React = require('react');
5
5
  var useHddRetentionCalculator = require('../../../hooks/useHddRetentionCalculator.js');
6
6
  require('../assets/icons/access.png.js');
7
7
  require('../assets/icons/network.png.js');
@@ -58,12 +58,12 @@ const ComputeResourceCalculator = ({
58
58
  const {
59
59
  formatMessage
60
60
  } = useResourceCalculatorTranslation.useResourceCalculatorTranslation();
61
- const defaultActiveDevice = react.useMemo(() => {
61
+ const defaultActiveDevice = React.useMemo(() => {
62
62
  const foundDevice = ComputeResourceCalculator_constants.DEVICES.find(item => item.id === defaultActiveDeviceId);
63
63
  return foundDevice || ComputeResourceCalculator_constants.DEVICES[0];
64
64
  }, [defaultActiveDeviceId]);
65
- const [device, setDevice] = react.useState(defaultActiveDevice);
66
- const supportedFeatures = react.useMemo(() => {
65
+ const [device, setDevice] = React.useState(defaultActiveDevice);
66
+ const supportedFeatures = React.useMemo(() => {
67
67
  return {
68
68
  [ComputeResourceCalculator_types.FeatureId.Network]: !!device.loadData?.Network,
69
69
  [ComputeResourceCalculator_types.FeatureId.Protect]: !!device.loadData?.Protect,
@@ -71,7 +71,7 @@ const ComputeResourceCalculator = ({
71
71
  [ComputeResourceCalculator_types.FeatureId.Access]: !!device.loadData?.Access
72
72
  };
73
73
  }, [device]);
74
- const forcedFeatures = react.useMemo(() => {
74
+ const forcedFeatures = React.useMemo(() => {
75
75
  return {
76
76
  [ComputeResourceCalculator_types.FeatureId.Network]: !!device.settings?.forcedFeatures?.includes(ComputeResourceCalculator_types.FeatureId.Network),
77
77
  [ComputeResourceCalculator_types.FeatureId.Protect]: !!device.settings?.forcedFeatures?.includes(ComputeResourceCalculator_types.FeatureId.Protect),
@@ -79,22 +79,22 @@ const ComputeResourceCalculator = ({
79
79
  [ComputeResourceCalculator_types.FeatureId.Access]: !!device.settings?.forcedFeatures?.includes(ComputeResourceCalculator_types.FeatureId.Access)
80
80
  };
81
81
  }, [device]);
82
- const [enabledFeatures, setEnabledFeatures] = react.useState(getDefaultActiveFeatures(device));
83
- const handleToggleFeature = react.useCallback(key => enabled => {
82
+ const [enabledFeatures, setEnabledFeatures] = React.useState(getDefaultActiveFeatures(device));
83
+ const handleToggleFeature = React.useCallback(key => enabled => {
84
84
  setEnabledFeatures({
85
85
  ...enabledFeatures,
86
86
  [key]: enabled
87
87
  });
88
88
  }, [enabledFeatures, setEnabledFeatures]);
89
- const enabledFeaturesCount = react.useMemo(() => Object.values(enabledFeatures).filter(item => item).length, [enabledFeatures]);
90
- const maxEnabledFeaturesReached = react.useMemo(() => {
89
+ const enabledFeaturesCount = React.useMemo(() => Object.values(enabledFeatures).filter(item => item).length, [enabledFeatures]);
90
+ const maxEnabledFeaturesReached = React.useMemo(() => {
91
91
  const maxFeatures = device.settings?.maxFeatures;
92
92
  if (!maxFeatures) {
93
93
  return false;
94
94
  }
95
95
  return maxFeatures === enabledFeaturesCount;
96
96
  }, [device.settings?.maxFeatures, enabledFeaturesCount]);
97
- const maxFeaturesReachedNote = react.useMemo(() => {
97
+ const maxFeaturesReachedNote = React.useMemo(() => {
98
98
  const maxFeatures = device.settings?.maxFeatures;
99
99
  if (!maxFeatures) {
100
100
  return "";
@@ -103,15 +103,15 @@ const ComputeResourceCalculator = ({
103
103
  maxFeatures
104
104
  });
105
105
  }, [device.settings?.maxFeatures, formatMessage]);
106
- const defaultNetworkInputState = react.useMemo(() => ({
106
+ const defaultNetworkInputState = React.useMemo(() => ({
107
107
  accessPoints: 0,
108
108
  vpn: false,
109
109
  detections: false,
110
110
  adBlocking: false,
111
111
  qos: false
112
112
  }), []);
113
- const [networkInputState, setNetworkInputState] = react.useState(defaultNetworkInputState);
114
- const networkCard = react.useMemo(() => {
113
+ const [networkInputState, setNetworkInputState] = React.useState(defaultNetworkInputState);
114
+ const networkCard = React.useMemo(() => {
115
115
  const isEnabled = enabledFeatures[ComputeResourceCalculator_types.FeatureId.Network];
116
116
  return /* @__PURE__ */jsxRuntime.jsx(InputCard.InputCard, {
117
117
  id: "computeResourceCalculator__inputCard__network",
@@ -186,14 +186,14 @@ const ComputeResourceCalculator = ({
186
186
  }]
187
187
  });
188
188
  }, [networkInputState, setNetworkInputState, handleToggleFeature, enabledFeatures, supportedFeatures, maxEnabledFeaturesReached, maxFeaturesReachedNote, forcedFeatures, device.loadData.Network?.accessPoint.max, formatMessage]);
189
- const defaultProtectInputState = react.useMemo(() => ({
189
+ const defaultProtectInputState = React.useMemo(() => ({
190
190
  cameraHd: 0,
191
191
  camera2k: 0,
192
192
  camera4k: 0,
193
193
  daysOfStorage: 0
194
194
  }), []);
195
- const [protectInputState, setProtectInputState] = react.useState(defaultProtectInputState);
196
- const maxCameras = react.useMemo(() => {
195
+ const [protectInputState, setProtectInputState] = React.useState(defaultProtectInputState);
196
+ const maxCameras = React.useMemo(() => {
197
197
  if (!device.loadData.Protect) {
198
198
  return {
199
199
  cameraHd: 0,
@@ -213,20 +213,20 @@ const ComputeResourceCalculator = ({
213
213
  camera4k: device.loadData.Protect.camera4k.max
214
214
  };
215
215
  }, [device, enabledFeaturesCount]);
216
- const maxHdds = react.useMemo(() => {
216
+ const maxHdds = React.useMemo(() => {
217
217
  return device.settings?.hdd?.max || 0;
218
218
  }, [device]);
219
- const hddGigabyteOptions = react.useMemo(() => {
219
+ const hddGigabyteOptions = React.useMemo(() => {
220
220
  const defaultGigabytes = [1e3, 8e3, 16e3, 24e3];
221
221
  return device.settings?.hdd?.gigabyteOptions || defaultGigabytes;
222
222
  }, [device.settings?.hdd?.gigabyteOptions]);
223
- const getDefaultHddGigabyteOption = react.useCallback(options => {
223
+ const getDefaultHddGigabyteOption = React.useCallback(options => {
224
224
  if (!options || options.includes(DEFAULT_HDD_GB_OPTION)) {
225
225
  return DEFAULT_HDD_GB_OPTION;
226
226
  }
227
227
  return options[0];
228
228
  }, []);
229
- const getHddSizeLabel = react.useCallback(gigaBytes => {
229
+ const getHddSizeLabel = React.useCallback(gigaBytes => {
230
230
  if (gigaBytes === 0) {
231
231
  return formatMessage("protect.noStorage");
232
232
  }
@@ -235,17 +235,17 @@ const ComputeResourceCalculator = ({
235
235
  }
236
236
  return `${gigaBytes / 1e3}TB`;
237
237
  }, [formatMessage]);
238
- const [hddGigabytes, setHddGigabytes] = react.useState(getDefaultHddGigabyteOption(device.settings?.hdd?.gigabyteOptions));
239
- const totalCameras = react.useMemo(() => {
238
+ const [hddGigabytes, setHddGigabytes] = React.useState(getDefaultHddGigabyteOption(device.settings?.hdd?.gigabyteOptions));
239
+ const totalCameras = React.useMemo(() => {
240
240
  return protectInputState["cameraHd"] + protectInputState["camera2k"] + protectInputState["camera4k"];
241
241
  }, [protectInputState]);
242
- const parityDisks = react.useMemo(() => {
242
+ const parityDisks = React.useMemo(() => {
243
243
  return device.settings?.hdd?.parityDisks || 0;
244
244
  }, [device.settings?.hdd?.parityDisks]);
245
- const hideHddSizeOptions = react.useMemo(() => {
245
+ const hideHddSizeOptions = React.useMemo(() => {
246
246
  return maxHdds === 0;
247
247
  }, [maxHdds]);
248
- const hideRetentionCalculation = react.useMemo(() => {
248
+ const hideRetentionCalculation = React.useMemo(() => {
249
249
  return hideHddSizeOptions || hddGigabytes === 0;
250
250
  }, [hideHddSizeOptions, hddGigabytes]);
251
251
  const {
@@ -264,7 +264,7 @@ const ComputeResourceCalculator = ({
264
264
  hddTerabytes: hddGigabytes / 1e3,
265
265
  format: RETENTION_TIME_FORMAT
266
266
  });
267
- const hddSlots = react.useMemo(() => {
267
+ const hddSlots = React.useMemo(() => {
268
268
  const handleHddSlotClick = daysOfStorage => {
269
269
  setProtectInputState({
270
270
  ...protectInputState,
@@ -287,7 +287,7 @@ const ComputeResourceCalculator = ({
287
287
  })
288
288
  });
289
289
  }, [protectInputState, totalCameras, maxHdds, getRequiredHddsByRetention, retentionHddItems, parityDisks, minRetentionStorage, formatMessage, hddGigabytes, getHddSizeLabel]);
290
- const handleUpdateCameraInputChange = react.useCallback((cameraType, newValue) => {
290
+ const handleUpdateCameraInputChange = React.useCallback((cameraType, newValue) => {
291
291
  if (Object.values(maxCameras).some(max => max === 0)) {
292
292
  return;
293
293
  }
@@ -328,7 +328,7 @@ const ComputeResourceCalculator = ({
328
328
  ...evaluatedCameras
329
329
  });
330
330
  }, [protectInputState, maxCameras]);
331
- const protectCard = react.useMemo(() => {
331
+ const protectCard = React.useMemo(() => {
332
332
  const isActive = enabledFeatures[ComputeResourceCalculator_types.FeatureId.Protect];
333
333
  const deviceSpecificNote = {
334
334
  [ComputeResourceCalculator_types.DeviceId.CkG2Plus]: formatMessage("protect.CkG2PlusNote"),
@@ -416,12 +416,12 @@ const ComputeResourceCalculator = ({
416
416
  }]
417
417
  });
418
418
  }, [protectInputState, setProtectInputState, enabledFeatures, handleToggleFeature, supportedFeatures, hideRetentionCalculation, hddSlots, getHddSizeLabel, hddGigabyteOptions, hideHddSizeOptions, maxCameras, maxEnabledFeaturesReached, maxFeaturesReachedNote, forcedFeatures, totalCameras, handleUpdateCameraInputChange, maxHdds, device.id, maxRetention, hddGigabytes, formatMessage]);
419
- const defaultTalkInputState = react.useMemo(() => ({
419
+ const defaultTalkInputState = React.useMemo(() => ({
420
420
  phones: 0,
421
421
  record: false
422
422
  }), []);
423
- const [talkInputState, setTalkInputState] = react.useState(defaultTalkInputState);
424
- const talkCard = react.useMemo(() => {
423
+ const [talkInputState, setTalkInputState] = React.useState(defaultTalkInputState);
424
+ const talkCard = React.useMemo(() => {
425
425
  const isActive = enabledFeatures[ComputeResourceCalculator_types.FeatureId.Talk];
426
426
  return /* @__PURE__ */jsxRuntime.jsx(InputCard.InputCard, {
427
427
  id: "computeResourceCalculator__inputCard__talk",
@@ -460,11 +460,11 @@ const ComputeResourceCalculator = ({
460
460
  }]
461
461
  });
462
462
  }, [talkInputState, setTalkInputState, enabledFeatures, handleToggleFeature, supportedFeatures, maxEnabledFeaturesReached, maxFeaturesReachedNote, forcedFeatures, device.loadData.Talk?.phone.max, formatMessage]);
463
- const defaultAccessInputState = react.useMemo(() => ({
463
+ const defaultAccessInputState = React.useMemo(() => ({
464
464
  doors: 0
465
465
  }), []);
466
- const [accessInputState, setAccessInputState] = react.useState(defaultAccessInputState);
467
- const accessCard = react.useMemo(() => {
466
+ const [accessInputState, setAccessInputState] = React.useState(defaultAccessInputState);
467
+ const accessCard = React.useMemo(() => {
468
468
  const isActive = enabledFeatures[ComputeResourceCalculator_types.FeatureId.Access];
469
469
  return /* @__PURE__ */jsxRuntime.jsx(InputCard.InputCard, {
470
470
  id: "computeResourceCalculator__inputCard__access",
@@ -492,11 +492,11 @@ const ComputeResourceCalculator = ({
492
492
  }]
493
493
  });
494
494
  }, [accessInputState, setAccessInputState, enabledFeatures, handleToggleFeature, supportedFeatures, maxEnabledFeaturesReached, maxFeaturesReachedNote, forcedFeatures, device.loadData.Access?.door.max, formatMessage]);
495
- const resetInputState = react.useCallback(deviceItem => {
495
+ const resetInputState = React.useCallback(deviceItem => {
496
496
  setEnabledFeatures(getDefaultActiveFeatures(deviceItem));
497
497
  setHddGigabytes(getDefaultHddGigabyteOption(deviceItem.settings?.hdd?.gigabyteOptions));
498
498
  }, [getDefaultHddGigabyteOption]);
499
- const selectDevice = react.useCallback(deviceItem => {
499
+ const selectDevice = React.useCallback(deviceItem => {
500
500
  resetInputState(deviceItem);
501
501
  setDevice(deviceItem);
502
502
  }, [resetInputState]);
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
- var react = require('react');
4
+ var React = require('react');
5
5
  var reactUse = require('react-use');
6
6
  var layout = require('../../../../../constants/layout.js');
7
7
  var asset = require('../../../../../utils/asset.js');
@@ -28,15 +28,15 @@ const DeviceSelect = ({
28
28
  const {
29
29
  formatMessage
30
30
  } = useResourceCalculatorTranslation.useResourceCalculatorTranslation();
31
- const defaultCollapsedState = react.useMemo(() => {
31
+ const defaultCollapsedState = React.useMemo(() => {
32
32
  const activeItemIndex = items.findIndex(item => item.active);
33
33
  return !!collapseAt && activeItemIndex < collapseAt;
34
34
  }, [collapseAt, items]);
35
- const [isCollapsed, setIsCollapsed] = react.useState(defaultCollapsedState);
36
- const handleToggleCollapse = react.useCallback(() => {
35
+ const [isCollapsed, setIsCollapsed] = React.useState(defaultCollapsedState);
36
+ const handleToggleCollapse = React.useCallback(() => {
37
37
  setIsCollapsed(!isCollapsed);
38
38
  }, [isCollapsed]);
39
- const mappedItems = react.useMemo(() => {
39
+ const mappedItems = React.useMemo(() => {
40
40
  return items.map((item, i) => {
41
41
  const isHidden = collapseAt !== void 0 && isCollapsed && i >= collapseAt;
42
42
  return /* @__PURE__ */jsxRuntime.jsxs(DeviceSelect_styles.DeviceItem, {
@@ -69,9 +69,9 @@ const DeviceSelect = ({
69
69
  }, item.id);
70
70
  });
71
71
  }, [items, isCollapsed, collapseAt, formatMessage]);
72
- const scrollContainerRef = react.useRef(null);
72
+ const scrollContainerRef = React.useRef(null);
73
73
  const isTablet = reactUse.useMedia(layout.BREAKPOINTS.TABLET_AND_DOWN, false);
74
- const handleScrollToMax = react.useCallback(scrollTo => {
74
+ const handleScrollToMax = React.useCallback(scrollTo => {
75
75
  if (scrollContainerRef.current) {
76
76
  const left = scrollTo === "left" ? 0 : scrollContainerRef.current.scrollWidth;
77
77
  scrollContainerRef.current.scrollTo({
@@ -80,11 +80,11 @@ const DeviceSelect = ({
80
80
  });
81
81
  }
82
82
  }, [scrollContainerRef]);
83
- const [showScrollBtn, setShowScrollBtn] = react.useState({
83
+ const [showScrollBtn, setShowScrollBtn] = React.useState({
84
84
  left: false,
85
85
  right: false
86
86
  });
87
- const evaluateShowScrollBtn = react.useCallback(() => {
87
+ const evaluateShowScrollBtn = React.useCallback(() => {
88
88
  if (!scrollContainerRef.current) {
89
89
  return;
90
90
  }
@@ -103,10 +103,10 @@ const DeviceSelect = ({
103
103
  right: evaluateScrollBtn("right")
104
104
  });
105
105
  }, [isTablet]);
106
- react.useEffect(() => {
106
+ React.useEffect(() => {
107
107
  evaluateShowScrollBtn();
108
108
  }, [isCollapsed, evaluateShowScrollBtn]);
109
- react.useEffect(() => {
109
+ React.useEffect(() => {
110
110
  const scrollEl = scrollContainerRef.current;
111
111
  if (scrollEl) {
112
112
  scrollEl.addEventListener("scroll", evaluateShowScrollBtn);
@@ -117,7 +117,7 @@ const DeviceSelect = ({
117
117
  }
118
118
  };
119
119
  }, [evaluateShowScrollBtn]);
120
- const scrollHelperButtons = react.useMemo(() => {
120
+ const scrollHelperButtons = React.useMemo(() => {
121
121
  if (!scrollContainerRef.current) {
122
122
  return null;
123
123
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
4
  var Checkbox = require('@ubnt/ui-components/Checkbox');
5
- var react = require('react');
5
+ var React = require('react');
6
6
  var reactUse = require('react-use');
7
7
  var layout = require('../../../../../constants/layout.js');
8
8
  var asset = require('../../../../../utils/asset.js');
@@ -38,17 +38,17 @@ const InputCard = ({
38
38
  const {
39
39
  formatMessage
40
40
  } = useResourceCalculatorTranslation.useResourceCalculatorTranslation();
41
- const handleToggleEnabled = react.useCallback(event => {
41
+ const handleToggleEnabled = React.useCallback(event => {
42
42
  onToggleEnabled?.(event.target.checked);
43
43
  }, [onToggleEnabled]);
44
- const disabledCard = react.useMemo(() => {
44
+ const disabledCard = React.useMemo(() => {
45
45
  return Boolean(!active || notAvailable);
46
46
  }, [active, notAvailable]);
47
- const renderHeader = react.useMemo(() => {
47
+ const renderHeader = React.useMemo(() => {
48
48
  return Boolean(notAvailable || header?.icon || header?.title);
49
49
  }, [header, notAvailable]);
50
50
  const isMobile = reactUse.useMedia(layout.BREAKPOINTS.MOBILE_AND_DOWN, false);
51
- const hideCardContent = react.useMemo(() => {
51
+ const hideCardContent = React.useMemo(() => {
52
52
  return isMobile && disabledCard;
53
53
  }, [disabledCard, isMobile]);
54
54
  return /* @__PURE__ */jsxRuntime.jsxs(InputCard_styles.Card, {