@ubnt/store.core 9.36.0-alpha.9 → 9.36.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1193) hide show
  1. package/CHANGELOG.md +167 -548
  2. package/lib/_virtual/_virtual_multi-entry.js +40 -48
  3. package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
  4. package/lib/_virtual/_virtual_multi-entry.mjs +40 -48
  5. package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
  6. package/lib/assets/clients.svg +2 -9
  7. package/lib/assets/clients2.svg +10 -0
  8. package/lib/assets/crestron.svg +3 -0
  9. package/lib/{components/ModelCompareV3/assets/WiFi/flagship.jpg.js → assets/icons/menu/icon-globe.svg.js} +6 -6
  10. package/lib/assets/icons/menu/icon-globe.svg.js.map +1 -0
  11. package/lib/assets/icons/menu/icon-globe.svg.mjs +3 -0
  12. package/lib/assets/icons/menu/icon-globe.svg.mjs.map +1 -0
  13. package/lib/assets/industrial.jpg +0 -0
  14. package/lib/assets/keyFeatures/{clients_v2.svg.js → clients.svg.js} +2 -2
  15. package/lib/assets/keyFeatures/clients.svg.js.map +1 -0
  16. package/lib/assets/keyFeatures/clients.svg.mjs +3 -0
  17. package/lib/assets/keyFeatures/clients.svg.mjs.map +1 -0
  18. package/lib/assets/keyFeatures/{phased_array_v2.svg.js → phased_array.svg.js} +1 -1
  19. package/lib/assets/keyFeatures/phased_array.svg.js.map +1 -0
  20. package/lib/assets/keyFeatures/{phased_array_v2.svg.mjs → phased_array.svg.mjs} +1 -1
  21. package/lib/assets/keyFeatures/phased_array.svg.mjs.map +1 -0
  22. package/lib/assets/logoUnifi.svg +2 -10
  23. package/lib/assets/ucgMax.jpg +0 -0
  24. package/lib/assets/ucgMax2.jpg +0 -0
  25. package/lib/assets/udmPro.jpg +0 -0
  26. package/lib/assets/udmPro2.jpg +0 -0
  27. package/lib/assets/udmProMax.jpg +0 -0
  28. package/lib/assets/udmProMax2.jpg +0 -0
  29. package/lib/assets/udmProSpecial.jpg +0 -0
  30. package/lib/assets/udmProSpecial2.jpg +0 -0
  31. package/lib/components/Accordion/Accordion.js +4 -4
  32. package/lib/components/Avatar/Avatar.js +2 -2
  33. package/lib/components/Button/Button.js +5 -5
  34. package/lib/components/Button/CartButton.js +2 -2
  35. package/lib/components/CardSection/Card/Card.js +6 -6
  36. package/lib/components/CardSection/CardSection.js +2 -2
  37. package/lib/components/CartIcon/CartIcon.js +2 -2
  38. package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +1 -1
  39. package/lib/components/CategoryTabs/CategoryTabs.styles.js +3 -2
  40. package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
  41. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +3 -2
  42. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
  43. package/lib/components/Checkbox/Checkbox.js +4 -4
  44. package/lib/components/CloserLookSection/CloserLookSection.js +11 -11
  45. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.js +5 -5
  46. package/lib/components/Compare/Compare.styles.d.ts +5 -5
  47. package/lib/components/Container/Container.d.ts +1 -1
  48. package/lib/components/Container/Container.js +4 -5
  49. package/lib/components/Container/Container.js.map +1 -1
  50. package/lib/components/Container/Container.mjs +4 -5
  51. package/lib/components/Container/Container.mjs.map +1 -1
  52. package/lib/components/CustomImage/CustomImage.js +12 -12
  53. package/lib/components/Explore/Explore.js +5 -5
  54. package/lib/components/Explore/ExploreData.js +9 -9
  55. package/lib/components/Explore/ExploreData.js.map +1 -1
  56. package/lib/components/Explore/ExploreData.mjs +9 -9
  57. package/lib/components/Explore/ExploreData.mjs.map +1 -1
  58. package/lib/components/FeaturesSection_deprecated/Features/Features.js +2 -2
  59. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +22 -22
  60. package/lib/components/Footer/Footer.js +2 -2
  61. package/lib/components/Footer/hooks/useFooterContent.js +5 -5
  62. package/lib/components/Gallery/Gallery.context.js +17 -17
  63. package/lib/components/Gallery/Gallery.js +9 -9
  64. package/lib/components/Gallery/GalleryControls/GalleryControls.js +4 -4
  65. package/lib/components/Gallery/GalleryItem/GalleryItem.js +8 -8
  66. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.js +8 -8
  67. package/lib/components/GridGallery/GridGallery.js +8 -8
  68. package/lib/components/GridGallery/GridModal/GridModal.js +6 -6
  69. package/lib/components/Header/AccountFrame/AccountFrame.js +11 -11
  70. package/lib/components/Header/AccountFrame/Mobile/Mobile.js +4 -4
  71. package/lib/components/Header/AccountMenu/AccountMenu.js +23 -33
  72. package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
  73. package/lib/components/Header/AccountMenu/AccountMenu.mjs +5 -15
  74. package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
  75. package/lib/components/Header/CartModal/Empty/Empty.js +3 -3
  76. package/lib/components/Header/CartModalV2/CartModal.js +5 -5
  77. package/lib/components/Header/CartModalV2/Item/Item.js +4 -4
  78. package/lib/components/Header/Header.js +49 -50
  79. package/lib/components/Header/Header.js.map +1 -1
  80. package/lib/components/Header/Header.mjs +12 -13
  81. package/lib/components/Header/Header.mjs.map +1 -1
  82. package/lib/components/Header/Header.styles.d.ts +12 -7
  83. package/lib/components/Header/Header.styles.js +32 -10
  84. package/lib/components/Header/Header.styles.js.map +1 -1
  85. package/lib/components/Header/Header.styles.mjs +31 -10
  86. package/lib/components/Header/Header.styles.mjs.map +1 -1
  87. package/lib/components/Header/Header.types.d.ts +5 -29
  88. package/lib/components/Header/Header.types.js +1 -2
  89. package/lib/components/Header/Header.types.js.map +1 -1
  90. package/lib/components/Header/Header.types.mjs +1 -2
  91. package/lib/components/Header/Header.types.mjs.map +1 -1
  92. package/lib/components/Header/IsolatedHeader.d.ts +0 -1
  93. package/lib/components/Header/IsolatedHeader.js +53 -53
  94. package/lib/components/Header/IsolatedHeader.js.map +1 -1
  95. package/lib/components/Header/IsolatedHeader.mjs +48 -49
  96. package/lib/components/Header/IsolatedHeader.mjs.map +1 -1
  97. package/lib/components/Header/LanguageFrame/LanguageFrame.js +6 -6
  98. package/lib/components/Header/MenuItem/MenuItem.styles.d.ts +1 -1
  99. package/lib/components/Header/MenuItem/MenuItem.styles.js +3 -3
  100. package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
  101. package/lib/components/Header/MenuItem/MenuItem.styles.mjs +3 -3
  102. package/lib/components/Header/MenuItem/MenuItem.styles.mjs.map +1 -1
  103. package/lib/components/Header/MenuItem/MenuItem.types.d.ts +0 -1
  104. package/lib/components/Header/Navigation/Carousel/Carousel.js +5 -5
  105. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.js +12 -12
  106. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
  107. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js +5 -7
  108. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js.map +1 -1
  109. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.mjs +5 -7
  110. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.mjs.map +1 -1
  111. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +6 -6
  112. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +1 -1
  113. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
  114. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +109 -116
  115. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
  116. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +104 -111
  117. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
  118. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +0 -9
  119. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +1 -15
  120. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
  121. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +2 -13
  122. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
  123. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +6 -12
  124. package/lib/components/Header/Overlay/Overlay.js +3 -3
  125. package/lib/components/Header/ProHeader/ProHeader.d.ts +5 -9
  126. package/lib/components/Header/ProHeader/ProHeader.js +194 -275
  127. package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
  128. package/lib/components/Header/ProHeader/ProHeader.mjs +174 -254
  129. package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
  130. package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +25 -30
  131. package/lib/components/Header/ProHeader/ProHeader.styles.js +66 -119
  132. package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
  133. package/lib/components/Header/ProHeader/ProHeader.styles.mjs +65 -112
  134. package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
  135. package/lib/components/Header/translations/ar.json.js +1 -4
  136. package/lib/components/Header/translations/ar.json.js.map +1 -1
  137. package/lib/components/Header/translations/ar.json.mjs +2 -4
  138. package/lib/components/Header/translations/ar.json.mjs.map +1 -1
  139. package/lib/components/Header/translations/de.json.js +1 -4
  140. package/lib/components/Header/translations/de.json.js.map +1 -1
  141. package/lib/components/Header/translations/de.json.mjs +2 -4
  142. package/lib/components/Header/translations/de.json.mjs.map +1 -1
  143. package/lib/components/Header/translations/el.json.js +1 -4
  144. package/lib/components/Header/translations/el.json.js.map +1 -1
  145. package/lib/components/Header/translations/el.json.mjs +2 -4
  146. package/lib/components/Header/translations/el.json.mjs.map +1 -1
  147. package/lib/components/Header/translations/en.json.js +1 -7
  148. package/lib/components/Header/translations/en.json.js.map +1 -1
  149. package/lib/components/Header/translations/en.json.mjs +2 -6
  150. package/lib/components/Header/translations/en.json.mjs.map +1 -1
  151. package/lib/components/Header/translations/es.json.js +1 -4
  152. package/lib/components/Header/translations/es.json.js.map +1 -1
  153. package/lib/components/Header/translations/es.json.mjs +2 -4
  154. package/lib/components/Header/translations/es.json.mjs.map +1 -1
  155. package/lib/components/Header/translations/fr.json.js +1 -4
  156. package/lib/components/Header/translations/fr.json.js.map +1 -1
  157. package/lib/components/Header/translations/fr.json.mjs +2 -4
  158. package/lib/components/Header/translations/fr.json.mjs.map +1 -1
  159. package/lib/components/Header/translations/it.json.js +1 -4
  160. package/lib/components/Header/translations/it.json.js.map +1 -1
  161. package/lib/components/Header/translations/it.json.mjs +2 -4
  162. package/lib/components/Header/translations/it.json.mjs.map +1 -1
  163. package/lib/components/Header/translations/ja.json.js +1 -4
  164. package/lib/components/Header/translations/ja.json.js.map +1 -1
  165. package/lib/components/Header/translations/ja.json.mjs +2 -4
  166. package/lib/components/Header/translations/ja.json.mjs.map +1 -1
  167. package/lib/components/Header/translations/pt-BR.json.js +1 -4
  168. package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
  169. package/lib/components/Header/translations/pt-BR.json.mjs +2 -4
  170. package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
  171. package/lib/components/Header/translations/zh-Hans.json.js +1 -4
  172. package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
  173. package/lib/components/Header/translations/zh-Hans.json.mjs +2 -4
  174. package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
  175. package/lib/components/Header/translations/zh-Hant-TW.json.js +1 -4
  176. package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
  177. package/lib/components/Header/translations/zh-Hant-TW.json.mjs +2 -4
  178. package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
  179. package/lib/components/Hero/Hero.js +5 -5
  180. package/lib/components/Hero/Hero.styles.d.ts +2 -2
  181. package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +1 -1
  182. package/lib/components/HeroVideo/HeroVideo.js +5 -5
  183. package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +2 -2
  184. package/lib/components/ImageCarousel/ImageCarousel.js +29 -29
  185. package/lib/components/ImageSequence/ImageSequence.js +8 -8
  186. package/lib/components/LandingPage/Cards/Card/Card.js +4 -4
  187. package/lib/components/LandingPage/Cards/Cards.js +14 -14
  188. package/lib/components/LandingPage/Cards/Cards.js.map +1 -1
  189. package/lib/components/LandingPage/Cards/Cards.mjs +3 -3
  190. package/lib/components/LandingPage/Cards/Cards.mjs.map +1 -1
  191. package/lib/components/LandingPage/LandingPage.js +2 -2
  192. package/lib/components/LandingPagePro/LandingPagePro.js +13 -13
  193. package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +1 -1
  194. package/lib/components/LandingPageSearch/LandingPageSearch.js +2 -2
  195. package/lib/components/LandingPageSearch/Modal/Modal.js +9 -9
  196. package/lib/components/LandingPageSidebar/LandingPageSidebar.js +12 -12
  197. package/lib/components/LayoutRenderer/LayoutRenderer.js +8 -8
  198. package/lib/components/LayoutRenderer/LayoutRenderer.styles.d.ts +1 -1
  199. package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +3 -3
  200. package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +3 -3
  201. package/lib/components/LearnMoreLink/LearnMoreLink.js +1 -1
  202. package/lib/components/LearnMoreLink/LearnMoreLink.js.map +1 -1
  203. package/lib/components/LearnMoreLink/LearnMoreLink.mjs +1 -1
  204. package/lib/components/LearnMoreLink/LearnMoreLink.mjs.map +1 -1
  205. package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.js +7 -7
  206. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.js +18 -18
  207. package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.js +2 -2
  208. package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.js +3 -3
  209. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.js +3 -3
  210. package/lib/components/MicrositeHero/MicrositeHero.js +18 -18
  211. package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.js +4 -4
  212. package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.js +9 -9
  213. package/lib/components/MicrositeProductGrid/MicrositeProductGrid.js +8 -8
  214. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlockWrap.js +2 -2
  215. package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +1 -1
  216. package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.js +3 -3
  217. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +12 -12
  218. package/lib/components/Microsites/MicrositePageContext.js +2 -2
  219. package/lib/components/Microsites/MicrositeProductPage.js +3 -3
  220. package/lib/components/Microsites/context/MicrositeProductPageContext.js +3 -3
  221. package/lib/components/MobileModal/MobileModal.js +5 -5
  222. package/lib/components/MobileModal/MobileModal.js.map +1 -1
  223. package/lib/components/MobileModal/MobileModal.mjs +1 -1
  224. package/lib/components/MobileModal/MobileModal.mjs.map +1 -1
  225. package/lib/{assets/icons → components/MobileModal/assets}/arrowDown.svg.js +1 -1
  226. package/lib/components/MobileModal/assets/arrowDown.svg.mjs +3 -0
  227. package/lib/components/Modal/Modal.js +3 -3
  228. package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js +3 -3
  229. package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.js +2 -2
  230. package/lib/components/ModelCompareV3/ModelCompareV3.js +14 -14
  231. package/lib/components/ModelCompareV3/ModelCompareV3.types.d.ts +2 -5
  232. package/lib/components/ModelCompareV3/ProductGroupsGrid.js +3 -3
  233. package/lib/components/ModelCompareV3/ScrollGroup/ScrollGroup.js +5 -5
  234. package/lib/components/ModelCompareV3/ScrollGroup/context.js +3 -3
  235. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupItem.js +8 -8
  236. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupSetScroll.js +2 -2
  237. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupTo.js +2 -2
  238. package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js +7 -7
  239. package/lib/components/ModelCompareV3/StickyGrid/StickyGridBody.js +2 -2
  240. package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js +5 -5
  241. package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.js +2 -2
  242. package/lib/components/ModelCompareV3/StickyGrid/context.js +3 -3
  243. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.js +5 -5
  244. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.mjs +2 -2
  245. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
  246. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
  247. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
  248. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
  249. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
  250. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
  251. package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.js +1 -1
  252. package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.mjs +2 -2
  253. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
  254. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
  255. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
  256. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
  257. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
  258. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
  259. package/lib/components/ModelCompareV3/assets/Switching/industrial.jpg.js +1 -1
  260. package/lib/components/ModelCompareV3/assets/Switching/industrial.jpg.mjs +2 -2
  261. package/lib/components/ModelCompareV3/assets/clients.svg.js +1 -1
  262. package/lib/components/ModelCompareV3/assets/clients.svg.mjs +2 -2
  263. package/lib/components/{ResourceCalculatorV1/assets/consoles/efg.png.js → ModelCompareV3/assets/crestron.svg.js} +6 -6
  264. package/lib/components/ModelCompareV3/assets/crestron.svg.js.map +1 -0
  265. package/lib/components/ModelCompareV3/assets/crestron.svg.mjs +3 -0
  266. package/lib/components/ModelCompareV3/assets/crestron.svg.mjs.map +1 -0
  267. package/lib/components/ModelCompareV3/data/CloudGateways.js +12 -12
  268. package/lib/components/ModelCompareV3/data/CloudGateways.mjs +8 -8
  269. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js +3 -2
  270. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js.map +1 -1
  271. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs +3 -2
  272. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs.map +1 -1
  273. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.js +10 -3
  274. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.js.map +1 -1
  275. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.mjs +10 -3
  276. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.mjs.map +1 -1
  277. package/lib/components/ModelCompareV3/data/Switching.js +3 -2
  278. package/lib/components/ModelCompareV3/data/Switching.js.map +1 -1
  279. package/lib/components/ModelCompareV3/data/Switching.mjs +3 -2
  280. package/lib/components/ModelCompareV3/data/Switching.mjs.map +1 -1
  281. package/lib/components/ModelCompareV3/data/index.d.ts +46 -49
  282. package/lib/components/ModelCompareV3/data/index.js +92 -101
  283. package/lib/components/ModelCompareV3/data/index.js.map +1 -1
  284. package/lib/components/ModelCompareV3/data/index.mjs +92 -101
  285. package/lib/components/ModelCompareV3/data/index.mjs.map +1 -1
  286. package/lib/components/ModelCompareV3/data/products/aggregation.js +7 -0
  287. package/lib/components/ModelCompareV3/data/products/aggregation.js.map +1 -1
  288. package/lib/components/ModelCompareV3/data/products/aggregation.mjs +7 -0
  289. package/lib/components/ModelCompareV3/data/products/aggregation.mjs.map +1 -1
  290. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js +1 -1
  291. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js.map +1 -1
  292. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs +1 -1
  293. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs.map +1 -1
  294. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js +7 -0
  295. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js.map +1 -1
  296. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs +7 -0
  297. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs.map +1 -1
  298. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js +7 -0
  299. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js.map +1 -1
  300. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs +7 -0
  301. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs.map +1 -1
  302. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js +7 -0
  303. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js.map +1 -1
  304. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs +7 -0
  305. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs.map +1 -1
  306. package/lib/components/ModelCompareV3/data/products/express.js +2 -2
  307. package/lib/components/ModelCompareV3/data/products/express.js.map +1 -1
  308. package/lib/components/ModelCompareV3/data/products/express.mjs +2 -2
  309. package/lib/components/ModelCompareV3/data/products/express.mjs.map +1 -1
  310. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js +7 -0
  311. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js.map +1 -1
  312. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs +7 -0
  313. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs.map +1 -1
  314. package/lib/components/ModelCompareV3/data/products/industrial.js +1 -1
  315. package/lib/components/ModelCompareV3/data/products/industrial.mjs +1 -1
  316. package/lib/components/ModelCompareV3/data/products/missionCritical.js +7 -0
  317. package/lib/components/ModelCompareV3/data/products/missionCritical.js.map +1 -1
  318. package/lib/components/ModelCompareV3/data/products/missionCritical.mjs +7 -0
  319. package/lib/components/ModelCompareV3/data/products/missionCritical.mjs.map +1 -1
  320. package/lib/components/ModelCompareV3/data/products/professionalMax16.js +7 -0
  321. package/lib/components/ModelCompareV3/data/products/professionalMax16.js.map +1 -1
  322. package/lib/components/ModelCompareV3/data/products/professionalMax16.mjs +7 -0
  323. package/lib/components/ModelCompareV3/data/products/professionalMax16.mjs.map +1 -1
  324. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.js +7 -0
  325. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.js.map +1 -1
  326. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.mjs +7 -0
  327. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.mjs.map +1 -1
  328. package/lib/components/ModelCompareV3/data/products/professionalMax24.js +7 -0
  329. package/lib/components/ModelCompareV3/data/products/professionalMax24.js.map +1 -1
  330. package/lib/components/ModelCompareV3/data/products/professionalMax24.mjs +7 -0
  331. package/lib/components/ModelCompareV3/data/products/professionalMax24.mjs.map +1 -1
  332. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.js +7 -0
  333. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.js.map +1 -1
  334. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.mjs +7 -0
  335. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.mjs.map +1 -1
  336. package/lib/components/ModelCompareV3/data/products/professionalMax48.js +7 -0
  337. package/lib/components/ModelCompareV3/data/products/professionalMax48.js.map +1 -1
  338. package/lib/components/ModelCompareV3/data/products/professionalMax48.mjs +7 -0
  339. package/lib/components/ModelCompareV3/data/products/professionalMax48.mjs.map +1 -1
  340. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.js +7 -0
  341. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.js.map +1 -1
  342. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.mjs +7 -0
  343. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.mjs.map +1 -1
  344. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js +8 -0
  345. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js.map +1 -1
  346. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs +8 -0
  347. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs.map +1 -1
  348. package/lib/components/ModelCompareV3/data/products/switchesProfessional.js +7 -0
  349. package/lib/components/ModelCompareV3/data/products/switchesProfessional.js.map +1 -1
  350. package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs +7 -0
  351. package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs.map +1 -1
  352. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js +10 -1
  353. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js.map +1 -1
  354. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs +10 -1
  355. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs.map +1 -1
  356. package/lib/components/ModelCompareV3/data/products/switchesStandard.js +7 -0
  357. package/lib/components/ModelCompareV3/data/products/switchesStandard.js.map +1 -1
  358. package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs +7 -0
  359. package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs.map +1 -1
  360. package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
  361. package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
  362. package/lib/components/ModelCompareV3/data/products/ucgUltra.js +2 -2
  363. package/lib/components/ModelCompareV3/data/products/ucgUltra.js.map +1 -1
  364. package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +2 -2
  365. package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs.map +1 -1
  366. package/lib/components/ModelCompareV3/data/products/udmPro.js +3 -3
  367. package/lib/components/ModelCompareV3/data/products/udmPro.js.map +1 -1
  368. package/lib/components/ModelCompareV3/data/products/udmPro.mjs +3 -3
  369. package/lib/components/ModelCompareV3/data/products/udmPro.mjs.map +1 -1
  370. package/lib/components/ModelCompareV3/data/products/udmProMax.js +3 -3
  371. package/lib/components/ModelCompareV3/data/products/udmProMax.js.map +1 -1
  372. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +3 -3
  373. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs.map +1 -1
  374. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +3 -3
  375. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js.map +1 -1
  376. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +3 -3
  377. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs.map +1 -1
  378. package/lib/components/ModelCompareV3/data/products/udr.js +4 -40
  379. package/lib/components/ModelCompareV3/data/products/udr.js.map +1 -1
  380. package/lib/components/ModelCompareV3/data/products/udr.mjs +4 -20
  381. package/lib/components/ModelCompareV3/data/products/udr.mjs.map +1 -1
  382. package/lib/components/ModelCompareV3/data/products/udw.js +2 -3
  383. package/lib/components/ModelCompareV3/data/products/udw.js.map +1 -1
  384. package/lib/components/ModelCompareV3/data/products/udw.mjs +2 -3
  385. package/lib/components/ModelCompareV3/data/products/udw.mjs.map +1 -1
  386. package/lib/components/ModelCompareV3/data/properties/clientDevices.js +1 -1
  387. package/lib/components/ModelCompareV3/data/properties/clientDevices.mjs +1 -1
  388. package/lib/components/ModelCompareV3/data/properties/connectedDevices.js +1 -1
  389. package/lib/components/ModelCompareV3/data/properties/connectedDevices.mjs +1 -1
  390. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.d.ts +2 -0
  391. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.js +18 -0
  392. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.js.map +1 -0
  393. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.mjs +10 -0
  394. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.mjs.map +1 -0
  395. package/lib/components/ModelCompareV3/data/properties/index.d.ts +1 -0
  396. package/lib/components/ModelCompareV3/data/properties/index.js +2 -0
  397. package/lib/components/ModelCompareV3/data/properties/index.js.map +1 -1
  398. package/lib/components/ModelCompareV3/data/properties/index.mjs +1 -0
  399. package/lib/components/ModelCompareV3/data/properties/index.mjs.map +1 -1
  400. package/lib/components/ModelCompareV3/translations/ar.json.js +3 -1
  401. package/lib/components/ModelCompareV3/translations/ar.json.js.map +1 -1
  402. package/lib/components/ModelCompareV3/translations/ar.json.mjs +3 -1
  403. package/lib/components/ModelCompareV3/translations/ar.json.mjs.map +1 -1
  404. package/lib/components/ModelCompareV3/translations/de.json.js +3 -1
  405. package/lib/components/ModelCompareV3/translations/de.json.js.map +1 -1
  406. package/lib/components/ModelCompareV3/translations/de.json.mjs +3 -1
  407. package/lib/components/ModelCompareV3/translations/de.json.mjs.map +1 -1
  408. package/lib/components/ModelCompareV3/translations/el.json.js +3 -1
  409. package/lib/components/ModelCompareV3/translations/el.json.js.map +1 -1
  410. package/lib/components/ModelCompareV3/translations/el.json.mjs +3 -1
  411. package/lib/components/ModelCompareV3/translations/el.json.mjs.map +1 -1
  412. package/lib/components/ModelCompareV3/translations/en.json.js +9 -62
  413. package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
  414. package/lib/components/ModelCompareV3/translations/en.json.mjs +9 -62
  415. package/lib/components/ModelCompareV3/translations/en.json.mjs.map +1 -1
  416. package/lib/components/ModelCompareV3/translations/es.json.js +3 -1
  417. package/lib/components/ModelCompareV3/translations/es.json.js.map +1 -1
  418. package/lib/components/ModelCompareV3/translations/es.json.mjs +3 -1
  419. package/lib/components/ModelCompareV3/translations/es.json.mjs.map +1 -1
  420. package/lib/components/ModelCompareV3/translations/fr.json.js +3 -1
  421. package/lib/components/ModelCompareV3/translations/fr.json.js.map +1 -1
  422. package/lib/components/ModelCompareV3/translations/fr.json.mjs +3 -1
  423. package/lib/components/ModelCompareV3/translations/fr.json.mjs.map +1 -1
  424. package/lib/components/ModelCompareV3/translations/it.json.js +3 -1
  425. package/lib/components/ModelCompareV3/translations/it.json.js.map +1 -1
  426. package/lib/components/ModelCompareV3/translations/it.json.mjs +3 -1
  427. package/lib/components/ModelCompareV3/translations/it.json.mjs.map +1 -1
  428. package/lib/components/ModelCompareV3/translations/ja.json.js +3 -1
  429. package/lib/components/ModelCompareV3/translations/ja.json.js.map +1 -1
  430. package/lib/components/ModelCompareV3/translations/ja.json.mjs +3 -1
  431. package/lib/components/ModelCompareV3/translations/ja.json.mjs.map +1 -1
  432. package/lib/components/ModelCompareV3/translations/pt-BR.json.js +3 -1
  433. package/lib/components/ModelCompareV3/translations/pt-BR.json.js.map +1 -1
  434. package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs +3 -1
  435. package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs.map +1 -1
  436. package/lib/components/ModelCompareV3/translations/useModelCompareTranslation.d.ts +2 -2
  437. package/lib/components/ModelCompareV3/translations/zh-Hans.json.js +3 -1
  438. package/lib/components/ModelCompareV3/translations/zh-Hans.json.js.map +1 -1
  439. package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs +3 -1
  440. package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs.map +1 -1
  441. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js +3 -1
  442. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js.map +1 -1
  443. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs +3 -1
  444. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs.map +1 -1
  445. package/lib/components/Pagination/Pagination.js +3 -3
  446. package/lib/components/PriceRangeSlider/PriceRangeSlider.js +16 -16
  447. package/lib/components/ProductCard/ProductCard.js +8 -8
  448. package/lib/components/ProductCardPopup/ProductCardPopup.js +8 -8
  449. package/lib/components/ProductCompare/ProductCompare.js +7 -7
  450. package/lib/components/ProductDetails/ProductDetails.js +5 -5
  451. package/lib/components/ProductGrid/ProductGrid.js +10 -10
  452. package/lib/components/ProductKeyFeatures/ProductKeyFeatures.js +3 -3
  453. package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +1 -1
  454. package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +1 -1
  455. package/lib/components/ProductSectionTabs/ProductSectionTabs.js +2 -2
  456. package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +1 -1
  457. package/lib/components/ProductWizard/Options/Options.js +3 -3
  458. package/lib/components/ProductWizard/ProductWizard.js +2 -2
  459. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js +5 -5
  460. package/lib/components/ProgressCircle/ProgressCircle.js +4 -4
  461. package/lib/components/QuantityControls/QuantityControls.js +4 -4
  462. package/lib/components/RelatedProducts/RelatedProducts.js +5 -5
  463. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +17 -313
  464. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
  465. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +17 -311
  466. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
  467. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js +36 -36
  468. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.d.ts +2 -3
  469. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js +0 -2
  470. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.js.map +1 -1
  471. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs +0 -2
  472. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.types.mjs.map +1 -1
  473. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +39 -125
  474. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js.map +1 -1
  475. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs +34 -120
  476. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.mjs.map +1 -1
  477. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.d.ts +2 -16
  478. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js +12 -54
  479. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.js.map +1 -1
  480. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.mjs +11 -50
  481. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.styles.mjs.map +1 -1
  482. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/assets/ArrowLeftPrimary.svg.js +5 -5
  483. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/assets/ArrowRightPrimary.svg.js +5 -5
  484. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +5 -5
  485. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CheckboxSection.js +2 -2
  486. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +4 -4
  487. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/SliderSection.js +3 -3
  488. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +7 -7
  489. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +7 -7
  490. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js.map +1 -1
  491. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.mjs +1 -1
  492. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.mjs.map +1 -1
  493. package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.js +9 -9
  494. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.js +10 -10
  495. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +17 -17
  496. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js.map +1 -1
  497. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
  498. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs.map +1 -1
  499. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.js +2 -2
  500. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +8 -7
  501. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js.map +1 -1
  502. package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs +2 -1
  503. package/lib/components/ResourceCalculatorV1/ResourceCalculator.mjs.map +1 -1
  504. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.d.ts +1 -1
  505. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.js +1 -3
  506. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +1 -0
  507. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.mjs +1 -3
  508. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +1 -0
  509. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.d.ts +0 -1
  510. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.js +7 -10
  511. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +1 -0
  512. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.styles.mjs +7 -10
  513. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +1 -0
  514. package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/HorizontalOptionSelect.types.d.ts +0 -1
  515. package/lib/components/ResourceCalculatorV1/components/index.d.ts +1 -0
  516. package/lib/components/ResourceCalculatorV1/components/index.js +5 -0
  517. package/lib/components/{Header/LogoIcon → ResourceCalculatorV1/components}/index.js.map +1 -1
  518. package/lib/components/{Header/LogoIcon → ResourceCalculatorV1/components}/index.mjs +1 -1
  519. package/lib/components/ResourceCalculatorV1/translations/en.json.js +4 -6
  520. package/lib/components/ResourceCalculatorV1/translations/en.json.js.map +1 -1
  521. package/lib/components/ResourceCalculatorV1/translations/en.json.mjs +4 -6
  522. package/lib/components/ResourceCalculatorV1/translations/en.json.mjs.map +1 -1
  523. package/lib/components/ResourceCalculatorV1/translations/useResourceCalculatorTranslation.d.ts +2 -2
  524. package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.js +5 -5
  525. package/lib/components/ScrollWrapper/ScrollWrapper.js +17 -17
  526. package/lib/components/Search/Input/Input.d.ts +1 -1
  527. package/lib/components/Search/Input/Input.js +8 -8
  528. package/lib/components/Search/Input/Input.js.map +1 -1
  529. package/lib/components/Search/Input/Input.mjs +4 -4
  530. package/lib/components/Search/Input/Input.mjs.map +1 -1
  531. package/lib/components/Search/Input/Input.styles.js +1 -0
  532. package/lib/components/Search/Input/Input.styles.js.map +1 -1
  533. package/lib/components/Search/Input/Input.styles.mjs +1 -0
  534. package/lib/components/Search/Input/Input.styles.mjs.map +1 -1
  535. package/lib/components/Search/Input/Input.types.d.ts +2 -3
  536. package/lib/components/Search/Modal/Modal.js +3 -3
  537. package/lib/components/StorageSliders/Slider/Slider.js +3 -3
  538. package/lib/components/StorageSliders/StorageSliders.context.js +19 -19
  539. package/lib/components/StorageSliders/StorageSliders.js +4 -4
  540. package/lib/components/Tooltip/Tooltip.js +5 -5
  541. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js +7 -7
  542. package/lib/components/VariantSelector/Variant/Variant.js +40 -40
  543. package/lib/components/VariantSelector/VariantSelector.js +16 -16
  544. package/lib/components/VideoPlayerNew/VideoPlayer.js +19 -19
  545. package/lib/components/index.d.ts +0 -3
  546. package/lib/components/index.js +30 -36
  547. package/lib/components/index.js.map +1 -1
  548. package/lib/components/index.mjs +30 -36
  549. package/lib/components/index.mjs.map +1 -1
  550. package/lib/constants/icons/generic/carouselArrowRight.svg.js +5 -5
  551. package/lib/constants/icons/generic/index.js +3 -3
  552. package/lib/constants/icons/header/account.svg.js +5 -5
  553. package/lib/constants/icons/header/globe.svg.js +5 -5
  554. package/lib/constants/icons/header/index.js +9 -9
  555. package/lib/constants/icons/header/logoUnifi.svg.js +5 -5
  556. package/lib/constants/icons/menu/index.d.ts +0 -3
  557. package/lib/constants/icons/menu/index.js +0 -27
  558. package/lib/constants/icons/menu/index.js.map +1 -1
  559. package/lib/constants/icons/menu/index.mjs +0 -6
  560. package/lib/constants/icons/menu/index.mjs.map +1 -1
  561. package/lib/constants/icons/options/colors/black.svg.js +5 -5
  562. package/lib/constants/icons/options/colors/index.js +3 -3
  563. package/lib/constants/icons/options/styles/black.svg.js +5 -5
  564. package/lib/constants/icons/options/styles/index.js +3 -3
  565. package/lib/constants/keyFeatureIcons.js +2 -2
  566. package/lib/constants/keyFeatureIcons.js.map +1 -1
  567. package/lib/constants/keyFeatureIcons.mjs +2 -2
  568. package/lib/constants/keyFeatureIcons.mjs.map +1 -1
  569. package/lib/constants/optionIcons.js +6 -6
  570. package/lib/constants/optionIcons.mjs +4 -4
  571. package/lib/constants/proStoreCategories/mapping/filters.d.ts +0 -16
  572. package/lib/constants/proStoreCategories/mapping/filters.js +0 -16
  573. package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
  574. package/lib/constants/proStoreCategories/mapping/filters.mjs +0 -16
  575. package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
  576. package/lib/constants/proStoreCategories/mapping/index.d.ts +3 -2
  577. package/lib/constants/proStoreCategories/mapping/index.js +32 -30
  578. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  579. package/lib/constants/proStoreCategories/mapping/index.mjs +32 -30
  580. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  581. package/lib/constants/proStoreCategories/mapping/mapping.d.ts +0 -5
  582. package/lib/constants/proStoreCategories/mapping/redirects.js +1 -1
  583. package/lib/constants/proStoreCategories/mapping/redirects.js.map +1 -1
  584. package/lib/constants/proStoreCategories/mapping/redirects.mjs +1 -1
  585. package/lib/constants/proStoreCategories/mapping/redirects.mjs.map +1 -1
  586. package/lib/constants/proStoreCategories/mapping/uisp.d.ts +1 -0
  587. package/lib/constants/proStoreCategories/mapping/uisp.js +1 -0
  588. package/lib/constants/proStoreCategories/mapping/uisp.js.map +1 -1
  589. package/lib/constants/proStoreCategories/mapping/uisp.mjs +1 -0
  590. package/lib/constants/proStoreCategories/mapping/uisp.mjs.map +1 -1
  591. package/lib/constants/proStoreCategories/translations/ar.json.js +2 -3
  592. package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
  593. package/lib/constants/proStoreCategories/translations/ar.json.mjs +2 -3
  594. package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
  595. package/lib/constants/proStoreCategories/translations/de.json.js +1 -2
  596. package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
  597. package/lib/constants/proStoreCategories/translations/de.json.mjs +1 -2
  598. package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
  599. package/lib/constants/proStoreCategories/translations/el.json.js +2 -3
  600. package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
  601. package/lib/constants/proStoreCategories/translations/el.json.mjs +2 -3
  602. package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
  603. package/lib/constants/proStoreCategories/translations/en.json.js +3 -2
  604. package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
  605. package/lib/constants/proStoreCategories/translations/en.json.mjs +3 -2
  606. package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
  607. package/lib/constants/proStoreCategories/translations/es.json.js +1 -2
  608. package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
  609. package/lib/constants/proStoreCategories/translations/es.json.mjs +1 -2
  610. package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
  611. package/lib/constants/proStoreCategories/translations/fr.json.js +1 -5
  612. package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
  613. package/lib/constants/proStoreCategories/translations/fr.json.mjs +2 -5
  614. package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
  615. package/lib/constants/proStoreCategories/translations/it.json.js +1 -2
  616. package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
  617. package/lib/constants/proStoreCategories/translations/it.json.mjs +1 -2
  618. package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
  619. package/lib/constants/proStoreCategories/translations/ja.json.js +1 -2
  620. package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
  621. package/lib/constants/proStoreCategories/translations/ja.json.mjs +1 -2
  622. package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
  623. package/lib/constants/proStoreCategories/translations/pt-BR.json.js +1 -2
  624. package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
  625. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +1 -2
  626. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
  627. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +1 -5
  628. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
  629. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +2 -5
  630. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
  631. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +1 -5
  632. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
  633. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +2 -5
  634. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
  635. package/lib/constants/proStoreFilters/mapping.d.ts +7 -33
  636. package/lib/constants/proStoreFilters/mapping.js +14 -108
  637. package/lib/constants/proStoreFilters/mapping.js.map +1 -1
  638. package/lib/constants/proStoreFilters/mapping.mjs +14 -108
  639. package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
  640. package/lib/constants/shopify/keyFeatureIcons.js +11 -11
  641. package/lib/constants/shopify/keyFeatureIcons.js.map +1 -1
  642. package/lib/constants/shopify/keyFeatureIcons.mjs +11 -11
  643. package/lib/constants/shopify/keyFeatureIcons.mjs.map +1 -1
  644. package/lib/constants/theme.js +0 -4
  645. package/lib/constants/theme.js.map +1 -1
  646. package/lib/constants/theme.mjs +0 -4
  647. package/lib/constants/theme.mjs.map +1 -1
  648. package/lib/contexts/MenuContext/context.js +51 -53
  649. package/lib/contexts/MenuContext/context.js.map +1 -1
  650. package/lib/contexts/MenuContext/context.mjs +20 -22
  651. package/lib/contexts/MenuContext/context.mjs.map +1 -1
  652. package/lib/contexts/MenuContext/mapping.js.map +1 -1
  653. package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
  654. package/lib/contexts/MenuContext/types.js.map +1 -1
  655. package/lib/contexts/MenuContext/types.mjs.map +1 -1
  656. package/lib/contexts/MenuContext/utils.d.ts +1 -6
  657. package/lib/contexts/MenuContext/utils.js +0 -16
  658. package/lib/contexts/MenuContext/utils.js.map +1 -1
  659. package/lib/contexts/MenuContext/utils.mjs +1 -16
  660. package/lib/contexts/MenuContext/utils.mjs.map +1 -1
  661. package/lib/contexts/index.d.ts +0 -1
  662. package/lib/contexts/index.js +0 -2
  663. package/lib/contexts/index.js.map +1 -1
  664. package/lib/contexts/index.mjs +0 -2
  665. package/lib/contexts/index.mjs.map +1 -1
  666. package/lib/helpers/proStoreCategories.js +2 -2
  667. package/lib/helpers/ux.d.ts +1 -9
  668. package/lib/helpers/ux.js +0 -15
  669. package/lib/helpers/ux.js.map +1 -1
  670. package/lib/helpers/ux.mjs +1 -15
  671. package/lib/helpers/ux.mjs.map +1 -1
  672. package/lib/hooks/useHasTouch.js +3 -3
  673. package/lib/hooks/useHddRetentionCalculator.js +5 -5
  674. package/lib/hooks/useHorizontalScroll.js +2 -2
  675. package/lib/hooks/useLockBodyScrollCustom.js +3 -3
  676. package/lib/hooks/useScrollToY.js +2 -2
  677. package/lib/hooks/useTestMediaElementVolumeSetter.js +3 -3
  678. package/lib/hooks/useTranslation.js +6 -6
  679. package/lib/types/product.js.map +1 -1
  680. package/lib/types/product.mjs.map +1 -1
  681. package/lib/utils/money/constants.d.ts +26 -4
  682. package/lib/utils/money/constants.js +39 -6
  683. package/lib/utils/money/constants.js.map +1 -1
  684. package/lib/utils/money/constants.mjs +38 -7
  685. package/lib/utils/money/constants.mjs.map +1 -1
  686. package/lib/utils/money/format.js +14 -5
  687. package/lib/utils/money/format.js.map +1 -1
  688. package/lib/utils/money/format.mjs +15 -6
  689. package/lib/utils/money/format.mjs.map +1 -1
  690. package/lib/utils/money/index.js +3 -1
  691. package/lib/utils/money/index.js.map +1 -1
  692. package/lib/utils/money/index.mjs +1 -1
  693. package/lib/utils/money/misc.js +7 -1
  694. package/lib/utils/money/misc.js.map +1 -1
  695. package/lib/utils/money/misc.mjs +7 -1
  696. package/lib/utils/money/misc.mjs.map +1 -1
  697. package/lib/utils/productSort.js.map +1 -1
  698. package/lib/utils/productSort.mjs.map +1 -1
  699. package/package.json +1 -1
  700. package/lib/assets/aggregation.png +0 -0
  701. package/lib/assets/bullet.png +0 -0
  702. package/lib/assets/camera-special-devices.png +0 -0
  703. package/lib/assets/cloud-gateway-overview.png +0 -0
  704. package/lib/assets/compact-switching.png +0 -0
  705. package/lib/assets/compact.png +0 -0
  706. package/lib/assets/consolidatedSpecialDevices.svg +0 -5
  707. package/lib/assets/digital-signage.png +0 -0
  708. package/lib/assets/dome-turret.png +0 -0
  709. package/lib/assets/door-access.png +0 -0
  710. package/lib/assets/doorAccess.svg +0 -5
  711. package/lib/assets/education.jpg +0 -0
  712. package/lib/assets/efg.png +0 -0
  713. package/lib/assets/enterprise-scale.png +0 -0
  714. package/lib/assets/enterprise.jpg +0 -0
  715. package/lib/assets/ev-charging.png +0 -0
  716. package/lib/assets/flagship.jpg +0 -0
  717. package/lib/assets/flexible-outdoor.jpg +0 -0
  718. package/lib/assets/gbe-1u-2.5and10.png +0 -0
  719. package/lib/assets/gbe-1u.png +0 -0
  720. package/lib/assets/hospitality.jpg +0 -0
  721. package/lib/assets/how-it-works.jpg +0 -0
  722. package/lib/assets/icon-location-pin.svg +0 -5
  723. package/lib/assets/icons/arrowDown.svg.mjs +0 -3
  724. package/lib/assets/icons/menu/icon-location-pin.svg.js +0 -27
  725. package/lib/assets/icons/menu/icon-location-pin.svg.js.map +0 -1
  726. package/lib/assets/icons/menu/icon-location-pin.svg.mjs +0 -3
  727. package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +0 -1
  728. package/lib/assets/icons/zoomOut.svg.js +0 -27
  729. package/lib/assets/icons/zoomOut.svg.js.map +0 -1
  730. package/lib/assets/icons/zoomOut.svg.mjs +0 -3
  731. package/lib/assets/icons/zoomOut.svg.mjs.map +0 -1
  732. package/lib/assets/industrial2.jpg +0 -0
  733. package/lib/assets/keyFeatures/clients_v2.svg +0 -3
  734. package/lib/assets/keyFeatures/clients_v2.svg.js.map +0 -1
  735. package/lib/assets/keyFeatures/clients_v2.svg.mjs +0 -3
  736. package/lib/assets/keyFeatures/clients_v2.svg.mjs.map +0 -1
  737. package/lib/assets/keyFeatures/phased_array_v2.svg.js.map +0 -1
  738. package/lib/assets/keyFeatures/phased_array_v2.svg.mjs.map +0 -1
  739. package/lib/assets/large-scale.png +0 -0
  740. package/lib/assets/managed-voip.png +0 -0
  741. package/lib/assets/mega-capacity.jpg +0 -0
  742. package/lib/assets/mobile-routing.png +0 -0
  743. package/lib/assets/nextai-camera.jpg +0 -0
  744. package/lib/assets/nextai-cyber.jpg +0 -0
  745. package/lib/assets/overview.svg +0 -3
  746. package/lib/assets/premium-audio.png +0 -0
  747. package/lib/assets/ptz.png +0 -0
  748. package/lib/assets/retail.jpg +0 -0
  749. package/lib/assets/sd-wan-sase.jpg +0 -0
  750. package/lib/assets/security-overview.png +0 -0
  751. package/lib/assets/site-manager.jpg +0 -0
  752. package/lib/assets/stadium.jpg +0 -0
  753. package/lib/assets/switching-overview.png +0 -0
  754. package/lib/assets/tco-calculator.jpg +0 -0
  755. package/lib/assets/ucg-max.png +0 -0
  756. package/lib/assets/unifi-drive.png +0 -0
  757. package/lib/assets/video-recorders.png +0 -0
  758. package/lib/assets/wall.jpg +0 -0
  759. package/lib/assets/wifi-bridging.png +0 -0
  760. package/lib/assets/wifi-flagship.png +0 -0
  761. package/lib/assets/wifi-integrated.png +0 -0
  762. package/lib/assets/wifi-mega-capacity.png +0 -0
  763. package/lib/assets/wifi-outdoor.png +0 -0
  764. package/lib/assets/wifi-overview.png +0 -0
  765. package/lib/assets/wifi-wall.png +0 -0
  766. package/lib/assets/zoomOut.svg +0 -3
  767. package/lib/components/Header/LogoIcon/LogoIcon.d.ts +0 -7
  768. package/lib/components/Header/LogoIcon/LogoIcon.js +0 -46
  769. package/lib/components/Header/LogoIcon/LogoIcon.js.map +0 -1
  770. package/lib/components/Header/LogoIcon/LogoIcon.mjs +0 -36
  771. package/lib/components/Header/LogoIcon/LogoIcon.mjs.map +0 -1
  772. package/lib/components/Header/LogoIcon/index.d.ts +0 -1
  773. package/lib/components/Header/LogoIcon/index.js +0 -6
  774. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.js.map +0 -1
  775. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.mjs.map +0 -1
  776. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.js.map +0 -1
  777. package/lib/components/HorizontalOptionSelect/HorizontalOptionSelect.styles.mjs.map +0 -1
  778. package/lib/components/MicrositeHeader/MicrositeHeader.d.ts +0 -2
  779. package/lib/components/MicrositeHeader/MicrositeHeader.js +0 -30
  780. package/lib/components/MicrositeHeader/MicrositeHeader.js.map +0 -1
  781. package/lib/components/MicrositeHeader/MicrositeHeader.mjs +0 -28
  782. package/lib/components/MicrositeHeader/MicrositeHeader.mjs.map +0 -1
  783. package/lib/components/MicrositeHeader/MicrositeHeader.styles.d.ts +0 -2
  784. package/lib/components/MicrositeHeader/MicrositeHeader.types.d.ts +0 -7
  785. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.d.ts +0 -2
  786. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.js +0 -139
  787. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.js.map +0 -1
  788. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.mjs +0 -130
  789. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.mjs.map +0 -1
  790. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.d.ts +0 -59
  791. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.js +0 -424
  792. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.js.map +0 -1
  793. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.mjs +0 -389
  794. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.styles.mjs.map +0 -1
  795. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.types.d.ts +0 -21
  796. package/lib/components/MicrositeHeader/components/DropdownMenu/index.d.ts +0 -1
  797. package/lib/components/MicrositeHeader/components/DropdownMenu/index.js +0 -6
  798. package/lib/components/MicrositeHeader/components/DropdownMenu/index.js.map +0 -1
  799. package/lib/components/MicrositeHeader/components/DropdownMenu/index.mjs +0 -3
  800. package/lib/components/MicrositeHeader/components/DropdownMenu/index.mjs.map +0 -1
  801. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.d.ts +0 -2
  802. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.d.ts +0 -22
  803. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.js +0 -148
  804. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.js.map +0 -1
  805. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.mjs +0 -126
  806. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.styles.mjs.map +0 -1
  807. package/lib/components/MicrositeHeader/components/FirstLevelMenu/FirstLevelMenu.types.d.ts +0 -12
  808. package/lib/components/MicrositeHeader/components/FirstLevelMenu/index.d.ts +0 -1
  809. package/lib/components/MicrositeHeader/components/Navigation/Navigation.d.ts +0 -7
  810. package/lib/components/MicrositeHeader/components/Navigation/Navigation.js +0 -258
  811. package/lib/components/MicrositeHeader/components/Navigation/Navigation.js.map +0 -1
  812. package/lib/components/MicrositeHeader/components/Navigation/Navigation.mjs +0 -247
  813. package/lib/components/MicrositeHeader/components/Navigation/Navigation.mjs.map +0 -1
  814. package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.d.ts +0 -36
  815. package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.js +0 -236
  816. package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.js.map +0 -1
  817. package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.mjs +0 -214
  818. package/lib/components/MicrositeHeader/components/Navigation/Navigation.styles.mjs.map +0 -1
  819. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.d.ts +0 -9
  820. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.js +0 -48
  821. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.js.map +0 -1
  822. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.mjs +0 -40
  823. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/NavigationItem.mjs.map +0 -1
  824. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.d.ts +0 -1
  825. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.js +0 -6
  826. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.js.map +0 -1
  827. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.mjs +0 -3
  828. package/lib/components/MicrositeHeader/components/Navigation/_components/NavigationItem/index.mjs.map +0 -1
  829. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.d.ts +0 -6
  830. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.js +0 -82
  831. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.js.map +0 -1
  832. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.mjs +0 -80
  833. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.mjs.map +0 -1
  834. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.d.ts +0 -31
  835. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.js +0 -211
  836. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.js.map +0 -1
  837. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.mjs +0 -189
  838. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/SubNavigation.styles.mjs.map +0 -1
  839. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.d.ts +0 -1
  840. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.js +0 -6
  841. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.js.map +0 -1
  842. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.mjs +0 -3
  843. package/lib/components/MicrositeHeader/components/Navigation/_components/SubNavigation/index.mjs.map +0 -1
  844. package/lib/components/MicrositeHeader/components/Navigation/index.d.ts +0 -1
  845. package/lib/components/MicrositeHeader/components/Navigation/index.js +0 -7
  846. package/lib/components/MicrositeHeader/components/Navigation/index.js.map +0 -1
  847. package/lib/components/MicrositeHeader/components/Navigation/index.mjs +0 -3
  848. package/lib/components/MicrositeHeader/components/Navigation/index.mjs.map +0 -1
  849. package/lib/components/MicrositeHeader/components/SecondLevelMenu/SecondLevelMenu.d.ts +0 -2
  850. package/lib/components/MicrositeHeader/components/SecondLevelMenu/SecondLevelMenu.styles.d.ts +0 -13
  851. package/lib/components/MicrositeHeader/components/SecondLevelMenu/SecondLevelMenu.types.d.ts +0 -11
  852. package/lib/components/MicrositeHeader/components/SecondLevelMenu/index.d.ts +0 -1
  853. package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.d.ts +0 -17
  854. package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.styles.d.ts +0 -13
  855. package/lib/components/MicrositeHeader/components/SiteMapColumns/index.d.ts +0 -1
  856. package/lib/components/MicrositeHeader/index.d.ts +0 -1
  857. package/lib/components/MicrositeHeader/index.js +0 -6
  858. package/lib/components/MicrositeHeader/index.js.map +0 -1
  859. package/lib/components/MicrositeHeader/index.mjs +0 -3
  860. package/lib/components/MicrositeHeader/index.mjs.map +0 -1
  861. package/lib/components/ModelCompareV3/assets/WiFi/flagship.jpg.js.map +0 -1
  862. package/lib/components/ModelCompareV3/assets/WiFi/flagship.jpg.mjs +0 -3
  863. package/lib/components/ModelCompareV3/assets/WiFi/flagship.jpg.mjs.map +0 -1
  864. package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.js +0 -27
  865. package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.js.map +0 -1
  866. package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.mjs +0 -3
  867. package/lib/components/ModelCompareV3/assets/WiFi/flexible-outdoor.jpg.mjs.map +0 -1
  868. package/lib/components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.js +0 -27
  869. package/lib/components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.js.map +0 -1
  870. package/lib/components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.mjs +0 -3
  871. package/lib/components/ModelCompareV3/assets/WiFi/mega-capacity.jpg.mjs.map +0 -1
  872. package/lib/components/ModelCompareV3/assets/WiFi/wall.jpg.js +0 -27
  873. package/lib/components/ModelCompareV3/assets/WiFi/wall.jpg.js.map +0 -1
  874. package/lib/components/ModelCompareV3/assets/WiFi/wall.jpg.mjs +0 -3
  875. package/lib/components/ModelCompareV3/assets/WiFi/wall.jpg.mjs.map +0 -1
  876. package/lib/components/ModelCompareV3/data/AggregationSwitching.d.ts +0 -2
  877. package/lib/components/ModelCompareV3/data/AggregationSwitching.js +0 -24
  878. package/lib/components/ModelCompareV3/data/AggregationSwitching.js.map +0 -1
  879. package/lib/components/ModelCompareV3/data/AggregationSwitching.mjs +0 -22
  880. package/lib/components/ModelCompareV3/data/AggregationSwitching.mjs.map +0 -1
  881. package/lib/components/ModelCompareV3/data/Ptz.d.ts +0 -2
  882. package/lib/components/ModelCompareV3/data/Ptz.js +0 -13
  883. package/lib/components/ModelCompareV3/data/Ptz.js.map +0 -1
  884. package/lib/components/ModelCompareV3/data/Ptz.mjs +0 -11
  885. package/lib/components/ModelCompareV3/data/Ptz.mjs.map +0 -1
  886. package/lib/components/ModelCompareV3/data/WiFi.d.ts +0 -2
  887. package/lib/components/ModelCompareV3/data/WiFi.js +0 -23
  888. package/lib/components/ModelCompareV3/data/WiFi.js.map +0 -1
  889. package/lib/components/ModelCompareV3/data/WiFi.mjs +0 -21
  890. package/lib/components/ModelCompareV3/data/WiFi.mjs.map +0 -1
  891. package/lib/components/ModelCompareV3/data/products/wifiFlagship.d.ts +0 -2
  892. package/lib/components/ModelCompareV3/data/products/wifiFlagship.js +0 -70
  893. package/lib/components/ModelCompareV3/data/products/wifiFlagship.js.map +0 -1
  894. package/lib/components/ModelCompareV3/data/products/wifiFlagship.mjs +0 -62
  895. package/lib/components/ModelCompareV3/data/products/wifiFlagship.mjs.map +0 -1
  896. package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.d.ts +0 -2
  897. package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.js +0 -73
  898. package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.js.map +0 -1
  899. package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.mjs +0 -65
  900. package/lib/components/ModelCompareV3/data/products/wifiFlexibleOutdoor.mjs.map +0 -1
  901. package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.d.ts +0 -2
  902. package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.js +0 -73
  903. package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.js.map +0 -1
  904. package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.mjs +0 -65
  905. package/lib/components/ModelCompareV3/data/products/wifiMegaCapacity.mjs.map +0 -1
  906. package/lib/components/ModelCompareV3/data/products/wifiWall.d.ts +0 -2
  907. package/lib/components/ModelCompareV3/data/products/wifiWall.js +0 -74
  908. package/lib/components/ModelCompareV3/data/products/wifiWall.js.map +0 -1
  909. package/lib/components/ModelCompareV3/data/products/wifiWall.mjs +0 -66
  910. package/lib/components/ModelCompareV3/data/products/wifiWall.mjs.map +0 -1
  911. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.d.ts +0 -2
  912. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js +0 -79
  913. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js.map +0 -1
  914. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs +0 -71
  915. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs.map +0 -1
  916. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.d.ts +0 -11
  917. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +0 -80
  918. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +0 -1
  919. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +0 -66
  920. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs.map +0 -1
  921. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.types.d.ts +0 -12
  922. package/lib/components/ProductTechSpecsV2/index.d.ts +0 -1
  923. package/lib/components/ProductTechSpecsV2/index.js +0 -6
  924. package/lib/components/ProductTechSpecsV2/index.js.map +0 -1
  925. package/lib/components/ProductTechSpecsV2/index.mjs +0 -3
  926. package/lib/components/ProductTechSpecsV2/index.mjs.map +0 -1
  927. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.js.map +0 -1
  928. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs +0 -3
  929. package/lib/components/ResourceCalculatorV1/assets/consoles/efg.png.mjs.map +0 -1
  930. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js +0 -27
  931. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.js.map +0 -1
  932. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs +0 -3
  933. package/lib/components/ResourceCalculatorV1/assets/consoles/ucg-max.png.mjs.map +0 -1
  934. package/lib/constants/icons/menu/consolidatedSpecialDevices.svg.js +0 -27
  935. package/lib/constants/icons/menu/consolidatedSpecialDevices.svg.js.map +0 -1
  936. package/lib/constants/icons/menu/consolidatedSpecialDevices.svg.mjs +0 -3
  937. package/lib/constants/icons/menu/consolidatedSpecialDevices.svg.mjs.map +0 -1
  938. package/lib/constants/icons/menu/doorAccess.svg.js +0 -27
  939. package/lib/constants/icons/menu/doorAccess.svg.js.map +0 -1
  940. package/lib/constants/icons/menu/doorAccess.svg.mjs +0 -3
  941. package/lib/constants/icons/menu/doorAccess.svg.mjs.map +0 -1
  942. package/lib/constants/icons/menu/overview.svg.js +0 -27
  943. package/lib/constants/icons/menu/overview.svg.js.map +0 -1
  944. package/lib/constants/icons/menu/overview.svg.mjs +0 -3
  945. package/lib/constants/icons/menu/overview.svg.mjs.map +0 -1
  946. package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.js +0 -27
  947. package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.js.map +0 -1
  948. package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.mjs +0 -3
  949. package/lib/contexts/MicrositeMenuContext/assets/aggregation.png.mjs.map +0 -1
  950. package/lib/contexts/MicrositeMenuContext/assets/bullet.png.js +0 -27
  951. package/lib/contexts/MicrositeMenuContext/assets/bullet.png.js.map +0 -1
  952. package/lib/contexts/MicrositeMenuContext/assets/bullet.png.mjs +0 -3
  953. package/lib/contexts/MicrositeMenuContext/assets/bullet.png.mjs.map +0 -1
  954. package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.js +0 -27
  955. package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.js.map +0 -1
  956. package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.mjs +0 -3
  957. package/lib/contexts/MicrositeMenuContext/assets/camera-special-devices.png.mjs.map +0 -1
  958. package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.js +0 -27
  959. package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.js.map +0 -1
  960. package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.mjs +0 -3
  961. package/lib/contexts/MicrositeMenuContext/assets/cloud-gateway-overview.png.mjs.map +0 -1
  962. package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.js +0 -27
  963. package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.js.map +0 -1
  964. package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.mjs +0 -3
  965. package/lib/contexts/MicrositeMenuContext/assets/compact-switching.png.mjs.map +0 -1
  966. package/lib/contexts/MicrositeMenuContext/assets/compact.png.js +0 -27
  967. package/lib/contexts/MicrositeMenuContext/assets/compact.png.js.map +0 -1
  968. package/lib/contexts/MicrositeMenuContext/assets/compact.png.mjs +0 -3
  969. package/lib/contexts/MicrositeMenuContext/assets/compact.png.mjs.map +0 -1
  970. package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.js +0 -27
  971. package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.js.map +0 -1
  972. package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.mjs +0 -3
  973. package/lib/contexts/MicrositeMenuContext/assets/digital-signage.png.mjs.map +0 -1
  974. package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.js +0 -27
  975. package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.js.map +0 -1
  976. package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.mjs +0 -3
  977. package/lib/contexts/MicrositeMenuContext/assets/dome-turret.png.mjs.map +0 -1
  978. package/lib/contexts/MicrositeMenuContext/assets/door-access.png.js +0 -27
  979. package/lib/contexts/MicrositeMenuContext/assets/door-access.png.js.map +0 -1
  980. package/lib/contexts/MicrositeMenuContext/assets/door-access.png.mjs +0 -3
  981. package/lib/contexts/MicrositeMenuContext/assets/door-access.png.mjs.map +0 -1
  982. package/lib/contexts/MicrositeMenuContext/assets/education.jpg.js +0 -27
  983. package/lib/contexts/MicrositeMenuContext/assets/education.jpg.js.map +0 -1
  984. package/lib/contexts/MicrositeMenuContext/assets/education.jpg.mjs +0 -3
  985. package/lib/contexts/MicrositeMenuContext/assets/education.jpg.mjs.map +0 -1
  986. package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.js +0 -27
  987. package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.js.map +0 -1
  988. package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.mjs +0 -3
  989. package/lib/contexts/MicrositeMenuContext/assets/enterprise-scale.png.mjs.map +0 -1
  990. package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.js +0 -27
  991. package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.js.map +0 -1
  992. package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.mjs +0 -3
  993. package/lib/contexts/MicrositeMenuContext/assets/enterprise.jpg.mjs.map +0 -1
  994. package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.js +0 -27
  995. package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.js.map +0 -1
  996. package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.mjs +0 -3
  997. package/lib/contexts/MicrositeMenuContext/assets/ev-charging.png.mjs.map +0 -1
  998. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.js +0 -27
  999. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.js.map +0 -1
  1000. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.mjs +0 -3
  1001. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u-2.5and10.png.mjs.map +0 -1
  1002. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.js +0 -27
  1003. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.js.map +0 -1
  1004. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.mjs +0 -3
  1005. package/lib/contexts/MicrositeMenuContext/assets/gbe-1u.png.mjs.map +0 -1
  1006. package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.js +0 -27
  1007. package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.js.map +0 -1
  1008. package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.mjs +0 -3
  1009. package/lib/contexts/MicrositeMenuContext/assets/hospitality.jpg.mjs.map +0 -1
  1010. package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.js +0 -27
  1011. package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.js.map +0 -1
  1012. package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.mjs +0 -3
  1013. package/lib/contexts/MicrositeMenuContext/assets/how-it-works.jpg.mjs.map +0 -1
  1014. package/lib/contexts/MicrositeMenuContext/assets/index.d.ts +0 -41
  1015. package/lib/contexts/MicrositeMenuContext/assets/index.js +0 -45
  1016. package/lib/contexts/MicrositeMenuContext/assets/index.js.map +0 -1
  1017. package/lib/contexts/MicrositeMenuContext/assets/index.mjs +0 -43
  1018. package/lib/contexts/MicrositeMenuContext/assets/index.mjs.map +0 -1
  1019. package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.js +0 -27
  1020. package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.js.map +0 -1
  1021. package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.mjs +0 -3
  1022. package/lib/contexts/MicrositeMenuContext/assets/industrial.jpg.mjs.map +0 -1
  1023. package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.js +0 -27
  1024. package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.js.map +0 -1
  1025. package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.mjs +0 -3
  1026. package/lib/contexts/MicrositeMenuContext/assets/large-scale.png.mjs.map +0 -1
  1027. package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.js +0 -27
  1028. package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.js.map +0 -1
  1029. package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.mjs +0 -3
  1030. package/lib/contexts/MicrositeMenuContext/assets/managed-voip.png.mjs.map +0 -1
  1031. package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.js +0 -27
  1032. package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.js.map +0 -1
  1033. package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.mjs +0 -3
  1034. package/lib/contexts/MicrositeMenuContext/assets/mobile-routing.png.mjs.map +0 -1
  1035. package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.js +0 -27
  1036. package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.js.map +0 -1
  1037. package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.mjs +0 -3
  1038. package/lib/contexts/MicrositeMenuContext/assets/nextai-camera.jpg.mjs.map +0 -1
  1039. package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.js +0 -27
  1040. package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.js.map +0 -1
  1041. package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.mjs +0 -3
  1042. package/lib/contexts/MicrositeMenuContext/assets/nextai-cyber.jpg.mjs.map +0 -1
  1043. package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.js +0 -27
  1044. package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.js.map +0 -1
  1045. package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.mjs +0 -3
  1046. package/lib/contexts/MicrositeMenuContext/assets/premium-audio.png.mjs.map +0 -1
  1047. package/lib/contexts/MicrositeMenuContext/assets/ptz.png.js +0 -27
  1048. package/lib/contexts/MicrositeMenuContext/assets/ptz.png.js.map +0 -1
  1049. package/lib/contexts/MicrositeMenuContext/assets/ptz.png.mjs +0 -3
  1050. package/lib/contexts/MicrositeMenuContext/assets/ptz.png.mjs.map +0 -1
  1051. package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.js +0 -27
  1052. package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.js.map +0 -1
  1053. package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.mjs +0 -3
  1054. package/lib/contexts/MicrositeMenuContext/assets/retail.jpg.mjs.map +0 -1
  1055. package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.js +0 -27
  1056. package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.js.map +0 -1
  1057. package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.mjs +0 -3
  1058. package/lib/contexts/MicrositeMenuContext/assets/sd-wan-sase.jpg.mjs.map +0 -1
  1059. package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.js +0 -27
  1060. package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.js.map +0 -1
  1061. package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.mjs +0 -3
  1062. package/lib/contexts/MicrositeMenuContext/assets/security-overview.png.mjs.map +0 -1
  1063. package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.js +0 -27
  1064. package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.js.map +0 -1
  1065. package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.mjs +0 -3
  1066. package/lib/contexts/MicrositeMenuContext/assets/site-manager.jpg.mjs.map +0 -1
  1067. package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.js +0 -27
  1068. package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.js.map +0 -1
  1069. package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.mjs +0 -3
  1070. package/lib/contexts/MicrositeMenuContext/assets/stadium.jpg.mjs.map +0 -1
  1071. package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.js +0 -27
  1072. package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.js.map +0 -1
  1073. package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.mjs +0 -3
  1074. package/lib/contexts/MicrositeMenuContext/assets/switching-overview.png.mjs.map +0 -1
  1075. package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.js +0 -27
  1076. package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.js.map +0 -1
  1077. package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.mjs +0 -3
  1078. package/lib/contexts/MicrositeMenuContext/assets/tco-calculator.jpg.mjs.map +0 -1
  1079. package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.js +0 -27
  1080. package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.js.map +0 -1
  1081. package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.mjs +0 -3
  1082. package/lib/contexts/MicrositeMenuContext/assets/unifi-drive.png.mjs.map +0 -1
  1083. package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.js +0 -27
  1084. package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.js.map +0 -1
  1085. package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.mjs +0 -3
  1086. package/lib/contexts/MicrositeMenuContext/assets/video-recorders.png.mjs.map +0 -1
  1087. package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.js +0 -27
  1088. package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.js.map +0 -1
  1089. package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.mjs +0 -3
  1090. package/lib/contexts/MicrositeMenuContext/assets/wifi-bridging.png.mjs.map +0 -1
  1091. package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.js +0 -27
  1092. package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.js.map +0 -1
  1093. package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.mjs +0 -3
  1094. package/lib/contexts/MicrositeMenuContext/assets/wifi-flagship.png.mjs.map +0 -1
  1095. package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.js +0 -27
  1096. package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.js.map +0 -1
  1097. package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.mjs +0 -3
  1098. package/lib/contexts/MicrositeMenuContext/assets/wifi-integrated.png.mjs.map +0 -1
  1099. package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.js +0 -27
  1100. package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.js.map +0 -1
  1101. package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.mjs +0 -3
  1102. package/lib/contexts/MicrositeMenuContext/assets/wifi-mega-capacity.png.mjs.map +0 -1
  1103. package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.js +0 -27
  1104. package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.js.map +0 -1
  1105. package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.mjs +0 -3
  1106. package/lib/contexts/MicrositeMenuContext/assets/wifi-outdoor.png.mjs.map +0 -1
  1107. package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.js +0 -27
  1108. package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.js.map +0 -1
  1109. package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.mjs +0 -3
  1110. package/lib/contexts/MicrositeMenuContext/assets/wifi-overview.png.mjs.map +0 -1
  1111. package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.js +0 -27
  1112. package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.js.map +0 -1
  1113. package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.mjs +0 -3
  1114. package/lib/contexts/MicrositeMenuContext/assets/wifi-wall.png.mjs.map +0 -1
  1115. package/lib/contexts/MicrositeMenuContext/context.d.ts +0 -36
  1116. package/lib/contexts/MicrositeMenuContext/context.js +0 -100
  1117. package/lib/contexts/MicrositeMenuContext/context.js.map +0 -1
  1118. package/lib/contexts/MicrositeMenuContext/context.mjs +0 -96
  1119. package/lib/contexts/MicrositeMenuContext/context.mjs.map +0 -1
  1120. package/lib/contexts/MicrositeMenuContext/index.d.ts +0 -1
  1121. package/lib/contexts/MicrositeMenuContext/index.js +0 -8
  1122. package/lib/contexts/MicrositeMenuContext/index.js.map +0 -1
  1123. package/lib/contexts/MicrositeMenuContext/index.mjs +0 -3
  1124. package/lib/contexts/MicrositeMenuContext/index.mjs.map +0 -1
  1125. package/lib/contexts/MicrositeMenuContext/mapping.d.ts +0 -16
  1126. package/lib/contexts/MicrositeMenuContext/mapping.js +0 -792
  1127. package/lib/contexts/MicrositeMenuContext/mapping.js.map +0 -1
  1128. package/lib/contexts/MicrositeMenuContext/mapping.mjs +0 -716
  1129. package/lib/contexts/MicrositeMenuContext/mapping.mjs.map +0 -1
  1130. package/lib/contexts/MicrositeMenuContext/translations/ar.json.js +0 -8
  1131. package/lib/contexts/MicrositeMenuContext/translations/ar.json.js.map +0 -1
  1132. package/lib/contexts/MicrositeMenuContext/translations/ar.json.mjs +0 -3
  1133. package/lib/contexts/MicrositeMenuContext/translations/ar.json.mjs.map +0 -1
  1134. package/lib/contexts/MicrositeMenuContext/translations/de.json.js +0 -8
  1135. package/lib/contexts/MicrositeMenuContext/translations/de.json.js.map +0 -1
  1136. package/lib/contexts/MicrositeMenuContext/translations/de.json.mjs +0 -3
  1137. package/lib/contexts/MicrositeMenuContext/translations/de.json.mjs.map +0 -1
  1138. package/lib/contexts/MicrositeMenuContext/translations/el.json.js +0 -8
  1139. package/lib/contexts/MicrositeMenuContext/translations/el.json.js.map +0 -1
  1140. package/lib/contexts/MicrositeMenuContext/translations/el.json.mjs +0 -3
  1141. package/lib/contexts/MicrositeMenuContext/translations/el.json.mjs.map +0 -1
  1142. package/lib/contexts/MicrositeMenuContext/translations/en.json.js +0 -128
  1143. package/lib/contexts/MicrositeMenuContext/translations/en.json.js.map +0 -1
  1144. package/lib/contexts/MicrositeMenuContext/translations/en.json.mjs +0 -123
  1145. package/lib/contexts/MicrositeMenuContext/translations/en.json.mjs.map +0 -1
  1146. package/lib/contexts/MicrositeMenuContext/translations/es.json.js +0 -8
  1147. package/lib/contexts/MicrositeMenuContext/translations/es.json.js.map +0 -1
  1148. package/lib/contexts/MicrositeMenuContext/translations/es.json.mjs +0 -3
  1149. package/lib/contexts/MicrositeMenuContext/translations/es.json.mjs.map +0 -1
  1150. package/lib/contexts/MicrositeMenuContext/translations/fr.json.js +0 -8
  1151. package/lib/contexts/MicrositeMenuContext/translations/fr.json.js.map +0 -1
  1152. package/lib/contexts/MicrositeMenuContext/translations/fr.json.mjs +0 -3
  1153. package/lib/contexts/MicrositeMenuContext/translations/fr.json.mjs.map +0 -1
  1154. package/lib/contexts/MicrositeMenuContext/translations/it.json.js +0 -8
  1155. package/lib/contexts/MicrositeMenuContext/translations/it.json.js.map +0 -1
  1156. package/lib/contexts/MicrositeMenuContext/translations/it.json.mjs +0 -3
  1157. package/lib/contexts/MicrositeMenuContext/translations/it.json.mjs.map +0 -1
  1158. package/lib/contexts/MicrositeMenuContext/translations/ja.json.js +0 -8
  1159. package/lib/contexts/MicrositeMenuContext/translations/ja.json.js.map +0 -1
  1160. package/lib/contexts/MicrositeMenuContext/translations/ja.json.mjs +0 -3
  1161. package/lib/contexts/MicrositeMenuContext/translations/ja.json.mjs.map +0 -1
  1162. package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.js +0 -8
  1163. package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.js.map +0 -1
  1164. package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.mjs +0 -3
  1165. package/lib/contexts/MicrositeMenuContext/translations/pt-BR.json.mjs.map +0 -1
  1166. package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.js +0 -8
  1167. package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.js.map +0 -1
  1168. package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.mjs +0 -3
  1169. package/lib/contexts/MicrositeMenuContext/translations/zh-Hans.json.mjs.map +0 -1
  1170. package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.js +0 -8
  1171. package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.js.map +0 -1
  1172. package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.mjs +0 -3
  1173. package/lib/contexts/MicrositeMenuContext/translations/zh-Hant-TW.json.mjs.map +0 -1
  1174. package/lib/contexts/MicrositeMenuContext/translations.d.ts +0 -7
  1175. package/lib/contexts/MicrositeMenuContext/translations.js +0 -47
  1176. package/lib/contexts/MicrositeMenuContext/translations.js.map +0 -1
  1177. package/lib/contexts/MicrositeMenuContext/translations.mjs +0 -25
  1178. package/lib/contexts/MicrositeMenuContext/translations.mjs.map +0 -1
  1179. package/lib/contexts/MicrositeMenuContext/types.d.ts +0 -102
  1180. package/lib/contexts/MicrositeMenuContext/types.js +0 -16
  1181. package/lib/contexts/MicrositeMenuContext/types.js.map +0 -1
  1182. package/lib/contexts/MicrositeMenuContext/types.mjs +0 -15
  1183. package/lib/contexts/MicrositeMenuContext/types.mjs.map +0 -1
  1184. /package/lib/assets/{clients_v2.svg → keyFeatures/clients.svg} +0 -0
  1185. /package/lib/assets/keyFeatures/{phased_array_v2.svg → phased_array.svg} +0 -0
  1186. /package/lib/{assets/icons → components/MobileModal/assets}/arrowDown.svg.js.map +0 -0
  1187. /package/lib/{assets/icons → components/MobileModal/assets}/arrowDown.svg.mjs.map +0 -0
  1188. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.d.ts +0 -0
  1189. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.js +0 -0
  1190. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.js.map +0 -0
  1191. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.mjs +0 -0
  1192. /package/lib/components/{HorizontalOptionSelect → ResourceCalculatorV1/components/HorizontalOptionSelect}/index.mjs.map +0 -0
  1193. /package/lib/components/{Header/LogoIcon → ResourceCalculatorV1/components}/index.mjs.map +0 -0
@@ -23,16 +23,8 @@ export declare const scrollIntoView: (element: Element | null, duration?: number
23
23
  * whenValueIsY: css`background: blue;`,
24
24
  * })
25
25
  */
26
- export declare function styledSwitch<K extends string>(value: K, cases: Record<K, FlattenSimpleInterpolation | string>): Record<K, string | FlattenSimpleInterpolation>[K];
26
+ export declare function styledSwitch(value: string, cases: Record<string, FlattenSimpleInterpolation | string>): string | FlattenSimpleInterpolation | undefined;
27
27
  /**
28
28
  * Get true page offset Y summing own and all parent offsets
29
29
  */
30
30
  export declare const getTrueOffsetY: (el: HTMLElement) => number;
31
- /**
32
- * Get true element width and height, including all margins and paddings.
33
- * Uses computed styles, and supports only margins that use px.
34
- */
35
- export declare const getTrueSize: (el: HTMLElement) => {
36
- width: number;
37
- height: number;
38
- };
package/lib/helpers/ux.js CHANGED
@@ -44,22 +44,7 @@ const getTrueOffsetY = el => {
44
44
  }
45
45
  return offset;
46
46
  };
47
- const getTrueSize = el => {
48
- if (typeof window === "undefined") {
49
- return {
50
- width: 0,
51
- height: 0
52
- };
53
- }
54
- const style = window.getComputedStyle(el);
55
- const px = value => /^[0-9]+px$/.test(value) ? parseFloat(value) : 0;
56
- return {
57
- width: el.offsetWidth + px(style.marginLeft) + px(style.marginRight),
58
- height: el.offsetHeight + px(style.marginTop) + px(style.marginBottom)
59
- };
60
- };
61
47
  exports.getTrueOffsetY = getTrueOffsetY;
62
- exports.getTrueSize = getTrueSize;
63
48
  exports.scrollIntoView = scrollIntoView;
64
49
  exports.scrollToY = scrollToY;
65
50
  exports.styledSwitch = styledSwitch;
@@ -1 +1 @@
1
- {"version":3,"file":"ux.js","sources":["../../src/helpers/ux.ts"],"sourcesContent":["import type { FlattenSimpleInterpolation } from \"styled-components\";\n\nconst SCROLL_INTO_VIEW_DEFAULT_DURATION = 600;\n\n/**\n * Same as `window.scrollTo` but allows custom duration\n *\n * ! The scroll action won't be replaced if called multiple times\n * ? Instead `useScrollToY` hook will do that if needed\n */\nexport const scrollToY = (targetY: number, duration: number) => {\n let start: number;\n let previousTimeStamp: number;\n const initY = window.scrollY;\n const limit =\n document.documentElement.scrollHeight -\n document.documentElement.clientHeight;\n\n function step(timestamp: number) {\n start === undefined && (start = timestamp);\n const elapsed = timestamp - start;\n const progress = (timestamp - start) / duration;\n\n if (previousTimeStamp !== timestamp) {\n window.scroll({\n top: ((targetY > limit ? limit : targetY) - initY) * progress + initY,\n });\n }\n\n if (elapsed < duration) {\n previousTimeStamp = timestamp;\n window.requestAnimationFrame(step);\n } else {\n window.scroll({\n top: targetY,\n });\n }\n }\n\n window.requestAnimationFrame(step);\n};\n\n/**\n * Scrolls to the element on the page\n *\n * ! This will scroll the entire page, do not use for inline scrolling\n *\n * @todo use Element.scrollIntoView() or Element.scrollIntoViewIfNeeded() when it's fully supported\n */\nexport const scrollIntoView = (\n element: Element | null,\n duration = SCROLL_INTO_VIEW_DEFAULT_DURATION,\n) => {\n if (typeof window === \"undefined\") return;\n if (!element) return;\n\n // Get scroll y target position\n const elementWindowY = element.getBoundingClientRect().top + window.scrollY;\n // Scroll to the element minus one third of the window height (so that it's at an optimal eye level)\n const y = elementWindowY - window.innerHeight * (1 / 3);\n\n // Animate\n scrollToY(y, duration);\n};\n\n/**\n * For use in styled components to reduce switch noise\n *\n * @deprecated Let's replace this with native switches - if ain't broke...\n * @example styledSwitch(variableWithMultipleCases, {\n * whenValueIsX: css`background: red;`,\n * whenValueIsY: css`background: blue;`,\n * })\n */\nexport function styledSwitch<K extends string>(\n value: K,\n cases: Record<K, FlattenSimpleInterpolation | string>,\n) {\n return cases[value];\n}\n\n/**\n * Get true page offset Y summing own and all parent offsets\n */\nexport const getTrueOffsetY = (el: HTMLElement) => {\n let offset = el.offsetTop;\n\n if (el.parentElement) {\n offset += getTrueOffsetY(el.parentElement);\n }\n\n return offset;\n};\n\n/**\n * Get true element width and height, including all margins and paddings.\n * Uses computed styles, and supports only margins that use px.\n */\nexport const getTrueSize = (\n el: HTMLElement,\n): { width: number; height: number } => {\n if (typeof window === \"undefined\") {\n return { width: 0, height: 0 };\n }\n\n const style = window.getComputedStyle(el);\n const px = (value: string): number =>\n /^[0-9]+px$/.test(value) ? parseFloat(value) : 0;\n\n return {\n width: el.offsetWidth + px(style.marginLeft) + px(style.marginRight),\n height: el.offsetHeight + px(style.marginTop) + px(style.marginBottom),\n };\n};\n"],"names":["SCROLL_INTO_VIEW_DEFAULT_DURATION","scrollToY","targetY","duration","start","previousTimeStamp","initY","window","scrollY","limit","document","documentElement","scrollHeight","clientHeight","step","timestamp","elapsed","progress","scroll","top","requestAnimationFrame","scrollIntoView","element","elementWindowY","getBoundingClientRect","y","innerHeight","styledSwitch","value","cases","getTrueOffsetY","el","offset","offsetTop","parentElement","getTrueSize","width","height","style","getComputedStyle","px","test","parseFloat","offsetWidth","marginLeft","marginRight","offsetHeight","marginTop","marginBottom"],"mappings":";;;AAEA,MAAMA,iCAAoC,GAAA,GAAA;AAQ7B,MAAAC,SAAA,GAAYA,CAACC,OAAA,EAAiBC,QAAqB,KAAA;EAC1D,IAAAC,KAAA;EACA,IAAAC,iBAAA;EACJ,MAAMC,QAAQC,MAAO,CAAAC,OAAA;EACrB,MAAMC,KACJ,GAAAC,QAAA,CAASC,eAAgB,CAAAC,YAAA,GACzBF,SAASC,eAAgB,CAAAE,YAAA;EAE3B,SAASC,KAAKC,SAAmB,EAAA;IAC/BX,KAAA,KAAU,WAAcA,KAAQ,GAAAW,SAAA,CAAA;IAChC,MAAMC,UAAUD,SAAY,GAAAX,KAAA;IACtB,MAAAa,QAAA,GAAA,CAAYF,YAAYX,KAAS,IAAAD,QAAA;IAEvC,IAAIE,sBAAsBU,SAAW,EAAA;MACnCR,MAAA,CAAOW,MAAO,CAAA;QACZC,OAAOjB,OAAU,GAAAO,KAAA,GAAQA,KAAQ,GAAAP,OAAA,IAAWI,SAASW,QAAW,GAAAX;MAAA,CACjE,CAAA;IACH;IAEA,IAAIU,UAAUb,QAAU,EAAA;MACFE,iBAAA,GAAAU,SAAA;MACpBR,MAAA,CAAOa,sBAAsBN,IAAI,CAAA;IAAA,CAC5B,MAAA;MACLP,MAAA,CAAOW,MAAO,CAAA;QACZC,GAAK,EAAAjB;MAAA,CACN,CAAA;IACH;EACF;EAEAK,MAAA,CAAOa,sBAAsBN,IAAI,CAAA;AACnC,CAAA;AASO,MAAMO,cAAiB,GAAAA,CAC5BC,OACA,EAAAnB,QAAA,GAAWH,iCACR,KAAA;EACC,IAAA,OAAOO,WAAW,WAAa,EAAA;EACnC,IAAI,CAACe,OAAS,EAAA;EAGd,MAAMC,cAAiB,GAAAD,OAAA,CAAQE,qBAAsB,CAAA,CAAA,CAAEL,MAAMZ,MAAO,CAAAC,OAAA;EAEpE,MAAMiB,CAAI,GAAAF,cAAA,GAAiBhB,MAAO,CAAAmB,WAAA,IAAe,CAAI,GAAA,CAAA,CAAA;EAGrDzB,SAAA,CAAUwB,GAAGtB,QAAQ,CAAA;AACvB,CAAA;AAWgB,SAAAwB,YAAAA,CACdC,OACAC,KACA,EAAA;EACA,OAAOA,MAAMD,KAAK,CAAA;AACpB;AAKa,MAAAE,cAAA,GAAkBC,EAAoB,IAAA;EACjD,IAAIC,SAASD,EAAG,CAAAE,SAAA;EAEhB,IAAIF,GAAGG,aAAe,EAAA;IACVF,MAAA,IAAAF,cAAA,CAAeC,GAAGG,aAAa,CAAA;EAC3C;EAEO,OAAAF,MAAA;AACT,CAAA;AAMa,MAAAG,WAAA,GACXJ,EACsC,IAAA;EAClC,IAAA,OAAOxB,WAAW,WAAa,EAAA;IACjC,OAAO;MAAE6B,KAAA,EAAO,CAAG;MAAAC,MAAA,EAAQ;IAAE,CAAA;EAC/B;EAEM,MAAAC,KAAA,GAAQ/B,MAAO,CAAAgC,gBAAA,CAAiBR,EAAE,CAAA;EAClC,MAAAS,EAAA,GAAMZ,KACV,IAAA,YAAA,CAAaa,KAAKb,KAAK,CAAA,GAAIc,UAAW,CAAAd,KAAK,CAAI,GAAA,CAAA;EAE1C,OAAA;IACLQ,KAAA,EAAOL,GAAGY,WAAc,GAAAH,EAAA,CAAGF,MAAMM,UAAU,CAAA,GAAIJ,EAAG,CAAAF,KAAA,CAAMO,WAAW,CAAA;IACnER,MAAA,EAAQN,GAAGe,YAAe,GAAAN,EAAA,CAAGF,MAAMS,SAAS,CAAA,GAAIP,EAAG,CAAAF,KAAA,CAAMU,YAAY;EAAA,CACvE;AACF,CAAA;;;;;"}
1
+ {"version":3,"file":"ux.js","sources":["../../src/helpers/ux.ts"],"sourcesContent":["import type { FlattenSimpleInterpolation } from \"styled-components\";\n\nconst SCROLL_INTO_VIEW_DEFAULT_DURATION = 600;\n\n/**\n * Same as `window.scrollTo` but allows custom duration\n *\n * ! The scroll action won't be replaced if called multiple times\n * ? Instead `useScrollToY` hook will do that if needed\n */\nexport const scrollToY = (targetY: number, duration: number) => {\n let start: number;\n let previousTimeStamp: number;\n const initY = window.scrollY;\n const limit =\n document.documentElement.scrollHeight -\n document.documentElement.clientHeight;\n\n function step(timestamp: number) {\n start === undefined && (start = timestamp);\n const elapsed = timestamp - start;\n const progress = (timestamp - start) / duration;\n\n if (previousTimeStamp !== timestamp) {\n window.scroll({\n top: ((targetY > limit ? limit : targetY) - initY) * progress + initY,\n });\n }\n\n if (elapsed < duration) {\n previousTimeStamp = timestamp;\n window.requestAnimationFrame(step);\n } else {\n window.scroll({\n top: targetY,\n });\n }\n }\n\n window.requestAnimationFrame(step);\n};\n\n/**\n * Scrolls to the element on the page\n *\n * ! This will scroll the entire page, do not use for inline scrolling\n *\n * @todo use Element.scrollIntoView() or Element.scrollIntoViewIfNeeded() when it's fully supported\n */\nexport const scrollIntoView = (\n element: Element | null,\n duration = SCROLL_INTO_VIEW_DEFAULT_DURATION,\n) => {\n if (typeof window === \"undefined\") return;\n if (!element) return;\n\n // Get scroll y target position\n const elementWindowY = element.getBoundingClientRect().top + window.scrollY;\n // Scroll to the element minus one third of the window height (so that it's at an optimal eye level)\n const y = elementWindowY - window.innerHeight * (1 / 3);\n\n // Animate\n scrollToY(y, duration);\n};\n\n/**\n * For use in styled components to reduce switch noise\n *\n * @deprecated Let's replace this with native switches - if ain't broke...\n * @example styledSwitch(variableWithMultipleCases, {\n * whenValueIsX: css`background: red;`,\n * whenValueIsY: css`background: blue;`,\n * })\n */\nexport function styledSwitch(\n value: string,\n cases: Record<string, FlattenSimpleInterpolation | string>,\n) {\n return cases[value];\n}\n\n/**\n * Get true page offset Y summing own and all parent offsets\n */\nexport const getTrueOffsetY = (el: HTMLElement) => {\n let offset = el.offsetTop;\n\n if (el.parentElement) {\n offset += getTrueOffsetY(el.parentElement);\n }\n\n return offset;\n};\n"],"names":["SCROLL_INTO_VIEW_DEFAULT_DURATION","scrollToY","targetY","duration","start","previousTimeStamp","initY","window","scrollY","limit","document","documentElement","scrollHeight","clientHeight","step","timestamp","elapsed","progress","scroll","top","requestAnimationFrame","scrollIntoView","element","elementWindowY","getBoundingClientRect","y","innerHeight","styledSwitch","value","cases","getTrueOffsetY","el","offset","offsetTop","parentElement"],"mappings":";;;AAEA,MAAMA,iCAAoC,GAAA,GAAA;AAQ7B,MAAAC,SAAA,GAAYA,CAACC,OAAA,EAAiBC,QAAqB,KAAA;EAC1D,IAAAC,KAAA;EACA,IAAAC,iBAAA;EACJ,MAAMC,QAAQC,MAAO,CAAAC,OAAA;EACrB,MAAMC,KACJ,GAAAC,QAAA,CAASC,eAAgB,CAAAC,YAAA,GACzBF,SAASC,eAAgB,CAAAE,YAAA;EAE3B,SAASC,KAAKC,SAAmB,EAAA;IAC/BX,KAAA,KAAU,WAAcA,KAAQ,GAAAW,SAAA,CAAA;IAChC,MAAMC,UAAUD,SAAY,GAAAX,KAAA;IACtB,MAAAa,QAAA,GAAA,CAAYF,YAAYX,KAAS,IAAAD,QAAA;IAEvC,IAAIE,sBAAsBU,SAAW,EAAA;MACnCR,MAAA,CAAOW,MAAO,CAAA;QACZC,OAAOjB,OAAU,GAAAO,KAAA,GAAQA,KAAQ,GAAAP,OAAA,IAAWI,SAASW,QAAW,GAAAX;MAAA,CACjE,CAAA;IACH;IAEA,IAAIU,UAAUb,QAAU,EAAA;MACFE,iBAAA,GAAAU,SAAA;MACpBR,MAAA,CAAOa,sBAAsBN,IAAI,CAAA;IAAA,CAC5B,MAAA;MACLP,MAAA,CAAOW,MAAO,CAAA;QACZC,GAAK,EAAAjB;MAAA,CACN,CAAA;IACH;EACF;EAEAK,MAAA,CAAOa,sBAAsBN,IAAI,CAAA;AACnC,CAAA;AASO,MAAMO,cAAiB,GAAAA,CAC5BC,OACA,EAAAnB,QAAA,GAAWH,iCACR,KAAA;EACC,IAAA,OAAOO,WAAW,WAAa,EAAA;EACnC,IAAI,CAACe,OAAS,EAAA;EAGd,MAAMC,cAAiB,GAAAD,OAAA,CAAQE,qBAAsB,CAAA,CAAA,CAAEL,MAAMZ,MAAO,CAAAC,OAAA;EAEpE,MAAMiB,CAAI,GAAAF,cAAA,GAAiBhB,MAAO,CAAAmB,WAAA,IAAe,CAAI,GAAA,CAAA,CAAA;EAGrDzB,SAAA,CAAUwB,GAAGtB,QAAQ,CAAA;AACvB,CAAA;AAWgB,SAAAwB,YAAAA,CACdC,OACAC,KACA,EAAA;EACA,OAAOA,MAAMD,KAAK,CAAA;AACpB;AAKa,MAAAE,cAAA,GAAkBC,EAAoB,IAAA;EACjD,IAAIC,SAASD,EAAG,CAAAE,SAAA;EAEhB,IAAIF,GAAGG,aAAe,EAAA;IACVF,MAAA,IAAAF,cAAA,CAAeC,GAAGG,aAAa,CAAA;EAC3C;EAEO,OAAAF,MAAA;AACT,CAAA;;;;"}
@@ -43,19 +43,5 @@ const getTrueOffsetY = el => {
43
43
  }
44
44
  return offset;
45
45
  };
46
- const getTrueSize = el => {
47
- if (typeof window === "undefined") {
48
- return {
49
- width: 0,
50
- height: 0
51
- };
52
- }
53
- const style = window.getComputedStyle(el);
54
- const px = value => /^[0-9]+px$/.test(value) ? parseFloat(value) : 0;
55
- return {
56
- width: el.offsetWidth + px(style.marginLeft) + px(style.marginRight),
57
- height: el.offsetHeight + px(style.marginTop) + px(style.marginBottom)
58
- };
59
- };
60
- export { getTrueOffsetY, getTrueSize, scrollIntoView, scrollToY, styledSwitch };
46
+ export { getTrueOffsetY, scrollIntoView, scrollToY, styledSwitch };
61
47
  //# sourceMappingURL=ux.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ux.mjs","sources":["../../src/helpers/ux.ts"],"sourcesContent":["import type { FlattenSimpleInterpolation } from \"styled-components\";\n\nconst SCROLL_INTO_VIEW_DEFAULT_DURATION = 600;\n\n/**\n * Same as `window.scrollTo` but allows custom duration\n *\n * ! The scroll action won't be replaced if called multiple times\n * ? Instead `useScrollToY` hook will do that if needed\n */\nexport const scrollToY = (targetY: number, duration: number) => {\n let start: number;\n let previousTimeStamp: number;\n const initY = window.scrollY;\n const limit =\n document.documentElement.scrollHeight -\n document.documentElement.clientHeight;\n\n function step(timestamp: number) {\n start === undefined && (start = timestamp);\n const elapsed = timestamp - start;\n const progress = (timestamp - start) / duration;\n\n if (previousTimeStamp !== timestamp) {\n window.scroll({\n top: ((targetY > limit ? limit : targetY) - initY) * progress + initY,\n });\n }\n\n if (elapsed < duration) {\n previousTimeStamp = timestamp;\n window.requestAnimationFrame(step);\n } else {\n window.scroll({\n top: targetY,\n });\n }\n }\n\n window.requestAnimationFrame(step);\n};\n\n/**\n * Scrolls to the element on the page\n *\n * ! This will scroll the entire page, do not use for inline scrolling\n *\n * @todo use Element.scrollIntoView() or Element.scrollIntoViewIfNeeded() when it's fully supported\n */\nexport const scrollIntoView = (\n element: Element | null,\n duration = SCROLL_INTO_VIEW_DEFAULT_DURATION,\n) => {\n if (typeof window === \"undefined\") return;\n if (!element) return;\n\n // Get scroll y target position\n const elementWindowY = element.getBoundingClientRect().top + window.scrollY;\n // Scroll to the element minus one third of the window height (so that it's at an optimal eye level)\n const y = elementWindowY - window.innerHeight * (1 / 3);\n\n // Animate\n scrollToY(y, duration);\n};\n\n/**\n * For use in styled components to reduce switch noise\n *\n * @deprecated Let's replace this with native switches - if ain't broke...\n * @example styledSwitch(variableWithMultipleCases, {\n * whenValueIsX: css`background: red;`,\n * whenValueIsY: css`background: blue;`,\n * })\n */\nexport function styledSwitch<K extends string>(\n value: K,\n cases: Record<K, FlattenSimpleInterpolation | string>,\n) {\n return cases[value];\n}\n\n/**\n * Get true page offset Y summing own and all parent offsets\n */\nexport const getTrueOffsetY = (el: HTMLElement) => {\n let offset = el.offsetTop;\n\n if (el.parentElement) {\n offset += getTrueOffsetY(el.parentElement);\n }\n\n return offset;\n};\n\n/**\n * Get true element width and height, including all margins and paddings.\n * Uses computed styles, and supports only margins that use px.\n */\nexport const getTrueSize = (\n el: HTMLElement,\n): { width: number; height: number } => {\n if (typeof window === \"undefined\") {\n return { width: 0, height: 0 };\n }\n\n const style = window.getComputedStyle(el);\n const px = (value: string): number =>\n /^[0-9]+px$/.test(value) ? parseFloat(value) : 0;\n\n return {\n width: el.offsetWidth + px(style.marginLeft) + px(style.marginRight),\n height: el.offsetHeight + px(style.marginTop) + px(style.marginBottom),\n };\n};\n"],"names":["SCROLL_INTO_VIEW_DEFAULT_DURATION","scrollToY","targetY","duration","start","previousTimeStamp","initY","window","scrollY","limit","document","documentElement","scrollHeight","clientHeight","step","timestamp","elapsed","progress","scroll","top","requestAnimationFrame","scrollIntoView","element","elementWindowY","getBoundingClientRect","y","innerHeight","styledSwitch","value","cases","getTrueOffsetY","el","offset","offsetTop","parentElement","getTrueSize","width","height","style","getComputedStyle","px","test","parseFloat","offsetWidth","marginLeft","marginRight","offsetHeight","marginTop","marginBottom"],"mappings":";;AAEA,MAAMA,iCAAoC,GAAA,GAAA;AAQ7B,MAAAC,SAAA,GAAYA,CAACC,OAAA,EAAiBC,QAAqB,KAAA;EAC1D,IAAAC,KAAA;EACA,IAAAC,iBAAA;EACJ,MAAMC,QAAQC,MAAO,CAAAC,OAAA;EACrB,MAAMC,KACJ,GAAAC,QAAA,CAASC,eAAgB,CAAAC,YAAA,GACzBF,SAASC,eAAgB,CAAAE,YAAA;EAE3B,SAASC,KAAKC,SAAmB,EAAA;IAC/BX,KAAA,KAAU,WAAcA,KAAQ,GAAAW,SAAA,CAAA;IAChC,MAAMC,UAAUD,SAAY,GAAAX,KAAA;IACtB,MAAAa,QAAA,GAAA,CAAYF,YAAYX,KAAS,IAAAD,QAAA;IAEvC,IAAIE,sBAAsBU,SAAW,EAAA;MACnCR,MAAA,CAAOW,MAAO,CAAA;QACZC,OAAOjB,OAAU,GAAAO,KAAA,GAAQA,KAAQ,GAAAP,OAAA,IAAWI,SAASW,QAAW,GAAAX;MAAA,CACjE,CAAA;IACH;IAEA,IAAIU,UAAUb,QAAU,EAAA;MACFE,iBAAA,GAAAU,SAAA;MACpBR,MAAA,CAAOa,sBAAsBN,IAAI,CAAA;IAAA,CAC5B,MAAA;MACLP,MAAA,CAAOW,MAAO,CAAA;QACZC,GAAK,EAAAjB;MAAA,CACN,CAAA;IACH;EACF;EAEAK,MAAA,CAAOa,sBAAsBN,IAAI,CAAA;AACnC,CAAA;AASO,MAAMO,cAAiB,GAAAA,CAC5BC,OACA,EAAAnB,QAAA,GAAWH,iCACR,KAAA;EACC,IAAA,OAAOO,WAAW,WAAa,EAAA;EACnC,IAAI,CAACe,OAAS,EAAA;EAGd,MAAMC,cAAiB,GAAAD,OAAA,CAAQE,qBAAsB,CAAA,CAAA,CAAEL,MAAMZ,MAAO,CAAAC,OAAA;EAEpE,MAAMiB,CAAI,GAAAF,cAAA,GAAiBhB,MAAO,CAAAmB,WAAA,IAAe,CAAI,GAAA,CAAA,CAAA;EAGrDzB,SAAA,CAAUwB,GAAGtB,QAAQ,CAAA;AACvB,CAAA;AAWgB,SAAAwB,YAAAA,CACdC,OACAC,KACA,EAAA;EACA,OAAOA,MAAMD,KAAK,CAAA;AACpB;AAKa,MAAAE,cAAA,GAAkBC,EAAoB,IAAA;EACjD,IAAIC,SAASD,EAAG,CAAAE,SAAA;EAEhB,IAAIF,GAAGG,aAAe,EAAA;IACVF,MAAA,IAAAF,cAAA,CAAeC,GAAGG,aAAa,CAAA;EAC3C;EAEO,OAAAF,MAAA;AACT,CAAA;AAMa,MAAAG,WAAA,GACXJ,EACsC,IAAA;EAClC,IAAA,OAAOxB,WAAW,WAAa,EAAA;IACjC,OAAO;MAAE6B,KAAA,EAAO,CAAG;MAAAC,MAAA,EAAQ;IAAE,CAAA;EAC/B;EAEM,MAAAC,KAAA,GAAQ/B,MAAO,CAAAgC,gBAAA,CAAiBR,EAAE,CAAA;EAClC,MAAAS,EAAA,GAAMZ,KACV,IAAA,YAAA,CAAaa,KAAKb,KAAK,CAAA,GAAIc,UAAW,CAAAd,KAAK,CAAI,GAAA,CAAA;EAE1C,OAAA;IACLQ,KAAA,EAAOL,GAAGY,WAAc,GAAAH,EAAA,CAAGF,MAAMM,UAAU,CAAA,GAAIJ,EAAG,CAAAF,KAAA,CAAMO,WAAW,CAAA;IACnER,MAAA,EAAQN,GAAGe,YAAe,GAAAN,EAAA,CAAGF,MAAMS,SAAS,CAAA,GAAIP,EAAG,CAAAF,KAAA,CAAMU,YAAY;EAAA,CACvE;AACF,CAAA;"}
1
+ {"version":3,"file":"ux.mjs","sources":["../../src/helpers/ux.ts"],"sourcesContent":["import type { FlattenSimpleInterpolation } from \"styled-components\";\n\nconst SCROLL_INTO_VIEW_DEFAULT_DURATION = 600;\n\n/**\n * Same as `window.scrollTo` but allows custom duration\n *\n * ! The scroll action won't be replaced if called multiple times\n * ? Instead `useScrollToY` hook will do that if needed\n */\nexport const scrollToY = (targetY: number, duration: number) => {\n let start: number;\n let previousTimeStamp: number;\n const initY = window.scrollY;\n const limit =\n document.documentElement.scrollHeight -\n document.documentElement.clientHeight;\n\n function step(timestamp: number) {\n start === undefined && (start = timestamp);\n const elapsed = timestamp - start;\n const progress = (timestamp - start) / duration;\n\n if (previousTimeStamp !== timestamp) {\n window.scroll({\n top: ((targetY > limit ? limit : targetY) - initY) * progress + initY,\n });\n }\n\n if (elapsed < duration) {\n previousTimeStamp = timestamp;\n window.requestAnimationFrame(step);\n } else {\n window.scroll({\n top: targetY,\n });\n }\n }\n\n window.requestAnimationFrame(step);\n};\n\n/**\n * Scrolls to the element on the page\n *\n * ! This will scroll the entire page, do not use for inline scrolling\n *\n * @todo use Element.scrollIntoView() or Element.scrollIntoViewIfNeeded() when it's fully supported\n */\nexport const scrollIntoView = (\n element: Element | null,\n duration = SCROLL_INTO_VIEW_DEFAULT_DURATION,\n) => {\n if (typeof window === \"undefined\") return;\n if (!element) return;\n\n // Get scroll y target position\n const elementWindowY = element.getBoundingClientRect().top + window.scrollY;\n // Scroll to the element minus one third of the window height (so that it's at an optimal eye level)\n const y = elementWindowY - window.innerHeight * (1 / 3);\n\n // Animate\n scrollToY(y, duration);\n};\n\n/**\n * For use in styled components to reduce switch noise\n *\n * @deprecated Let's replace this with native switches - if ain't broke...\n * @example styledSwitch(variableWithMultipleCases, {\n * whenValueIsX: css`background: red;`,\n * whenValueIsY: css`background: blue;`,\n * })\n */\nexport function styledSwitch(\n value: string,\n cases: Record<string, FlattenSimpleInterpolation | string>,\n) {\n return cases[value];\n}\n\n/**\n * Get true page offset Y summing own and all parent offsets\n */\nexport const getTrueOffsetY = (el: HTMLElement) => {\n let offset = el.offsetTop;\n\n if (el.parentElement) {\n offset += getTrueOffsetY(el.parentElement);\n }\n\n return offset;\n};\n"],"names":["SCROLL_INTO_VIEW_DEFAULT_DURATION","scrollToY","targetY","duration","start","previousTimeStamp","initY","window","scrollY","limit","document","documentElement","scrollHeight","clientHeight","step","timestamp","elapsed","progress","scroll","top","requestAnimationFrame","scrollIntoView","element","elementWindowY","getBoundingClientRect","y","innerHeight","styledSwitch","value","cases","getTrueOffsetY","el","offset","offsetTop","parentElement"],"mappings":";;AAEA,MAAMA,iCAAoC,GAAA,GAAA;AAQ7B,MAAAC,SAAA,GAAYA,CAACC,OAAA,EAAiBC,QAAqB,KAAA;EAC1D,IAAAC,KAAA;EACA,IAAAC,iBAAA;EACJ,MAAMC,QAAQC,MAAO,CAAAC,OAAA;EACrB,MAAMC,KACJ,GAAAC,QAAA,CAASC,eAAgB,CAAAC,YAAA,GACzBF,SAASC,eAAgB,CAAAE,YAAA;EAE3B,SAASC,KAAKC,SAAmB,EAAA;IAC/BX,KAAA,KAAU,WAAcA,KAAQ,GAAAW,SAAA,CAAA;IAChC,MAAMC,UAAUD,SAAY,GAAAX,KAAA;IACtB,MAAAa,QAAA,GAAA,CAAYF,YAAYX,KAAS,IAAAD,QAAA;IAEvC,IAAIE,sBAAsBU,SAAW,EAAA;MACnCR,MAAA,CAAOW,MAAO,CAAA;QACZC,OAAOjB,OAAU,GAAAO,KAAA,GAAQA,KAAQ,GAAAP,OAAA,IAAWI,SAASW,QAAW,GAAAX;MAAA,CACjE,CAAA;IACH;IAEA,IAAIU,UAAUb,QAAU,EAAA;MACFE,iBAAA,GAAAU,SAAA;MACpBR,MAAA,CAAOa,sBAAsBN,IAAI,CAAA;IAAA,CAC5B,MAAA;MACLP,MAAA,CAAOW,MAAO,CAAA;QACZC,GAAK,EAAAjB;MAAA,CACN,CAAA;IACH;EACF;EAEAK,MAAA,CAAOa,sBAAsBN,IAAI,CAAA;AACnC,CAAA;AASO,MAAMO,cAAiB,GAAAA,CAC5BC,OACA,EAAAnB,QAAA,GAAWH,iCACR,KAAA;EACC,IAAA,OAAOO,WAAW,WAAa,EAAA;EACnC,IAAI,CAACe,OAAS,EAAA;EAGd,MAAMC,cAAiB,GAAAD,OAAA,CAAQE,qBAAsB,CAAA,CAAA,CAAEL,MAAMZ,MAAO,CAAAC,OAAA;EAEpE,MAAMiB,CAAI,GAAAF,cAAA,GAAiBhB,MAAO,CAAAmB,WAAA,IAAe,CAAI,GAAA,CAAA,CAAA;EAGrDzB,SAAA,CAAUwB,GAAGtB,QAAQ,CAAA;AACvB,CAAA;AAWgB,SAAAwB,YAAAA,CACdC,OACAC,KACA,EAAA;EACA,OAAOA,MAAMD,KAAK,CAAA;AACpB;AAKa,MAAAE,cAAA,GAAkBC,EAAoB,IAAA;EACjD,IAAIC,SAASD,EAAG,CAAAE,SAAA;EAEhB,IAAIF,GAAGG,aAAe,EAAA;IACVF,MAAA,IAAAF,cAAA,CAAeC,GAAGG,aAAa,CAAA;EAC3C;EAEO,OAAAF,MAAA;AACT,CAAA;"}
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var React = require('react');
3
+ var react = require('react');
4
4
  "use strict";
5
5
  const useHasTouch = () => {
6
- const [hasTouch, setHasTouch] = React.useState(typeof document !== "undefined" && "ontouchstart" in document.documentElement || typeof window !== "undefined" && window.navigator.maxTouchPoints > 0);
7
- React.useEffect(() => {
6
+ const [hasTouch, setHasTouch] = react.useState(typeof document !== "undefined" && "ontouchstart" in document.documentElement || typeof window !== "undefined" && window.navigator.maxTouchPoints > 0);
7
+ react.useEffect(() => {
8
8
  let lastTouchTime = 0;
9
9
  function disableTouch() {
10
10
  if (Date.now() - lastTouchTime < 500) return;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var React = require('react');
3
+ var react = require('react');
4
4
  "use strict";
5
5
  const calculateTotalCameraRetentionLoad = cameras => {
6
6
  const cameraRetentionLoad = {
@@ -67,16 +67,16 @@ const getMaxRetention = inputs => {
67
67
  return lastItem?.value || 0;
68
68
  };
69
69
  const useRetentionCalculator = config => {
70
- const maxRetention = React.useMemo(() => {
70
+ const maxRetention = react.useMemo(() => {
71
71
  return getMaxRetention(config);
72
72
  }, [config]);
73
- const retentionHddItems = React.useMemo(() => {
73
+ const retentionHddItems = react.useMemo(() => {
74
74
  return getRetentionHddItems(config);
75
75
  }, [config]);
76
- const getRequiredHddsByRetention = React.useCallback(retention => {
76
+ const getRequiredHddsByRetention = react.useCallback(retention => {
77
77
  return getRequiredHddCountByTime(config, retention);
78
78
  }, [config]);
79
- const minRetentionStorage = React.useMemo(() => {
79
+ const minRetentionStorage = react.useMemo(() => {
80
80
  return retentionHddItems.find((item, i) => {
81
81
  return item.value > 0 && i + 1 >= config.parityDisks * 2;
82
82
  })?.value || 0;
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var React = require('react');
3
+ var react = require('react');
4
4
  "use strict";
5
5
  function useHorizontalScroll(ref, enabled = true) {
6
- React.useEffect(() => {
6
+ react.useEffect(() => {
7
7
  if (!enabled) return;
8
8
  if (!ref?.current) return;
9
9
  const element = ref.current;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var React = require('react');
3
+ var react = require('react');
4
4
  "use strict";
5
5
  const LOCK_SCROLL_CLASS = "lock-scroll";
6
6
  const updateElsClassList = (els, type) => {
@@ -11,8 +11,8 @@ const updateElsClassList = (els, type) => {
11
11
  }
12
12
  };
13
13
  const useLockBodyScrollCustom = isLocked => {
14
- const getEls = React.useCallback(() => [document.documentElement, document.body, document.getElementById("__next")], []);
15
- React.useEffect(() => {
14
+ const getEls = react.useCallback(() => [document.documentElement, document.body, document.getElementById("__next")], []);
15
+ react.useEffect(() => {
16
16
  if (isLocked) {
17
17
  updateElsClassList(getEls(), "add");
18
18
  } else {
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var React = require('react');
3
+ var react = require('react');
4
4
  "use strict";
5
5
  const useScrollToY = () => {
6
- const rafRef = React.useRef(0);
6
+ const rafRef = react.useRef(0);
7
7
  const cancelScrollToY = () => {
8
8
  window.cancelAnimationFrame(rafRef.current);
9
9
  };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var React = require('react');
3
+ var react = require('react');
4
4
  "use strict";
5
5
  const testMediaElementVolumeSetterAsync = () => {
6
6
  const timeoutPromise = new Promise(resolve => setTimeout(resolve, 500, false));
@@ -17,8 +17,8 @@ const testMediaElementVolumeSetterAsync = () => {
17
17
  return Promise.race([promise, timeoutPromise]);
18
18
  };
19
19
  const useTestMediaElementVolumeSetter = () => {
20
- const [isSupported, setIsSupported] = React.useState(null);
21
- React.useEffect(() => {
20
+ const [isSupported, setIsSupported] = react.useState(null);
21
+ react.useEffect(() => {
22
22
  testMediaElementVolumeSetterAsync().then(setIsSupported).catch(e => console.error("Cannot detect", e));
23
23
  }, []);
24
24
  return isSupported;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var intl = require('@formatjs/intl');
4
- var React = require('react');
4
+ var react = require('react');
5
5
  require('../contexts/MenuContext/index.js');
6
6
  var mapping = require('../contexts/MenuContext/mapping.js');
7
7
  var context = require('../contexts/MenuContext/context.js');
@@ -11,8 +11,8 @@ const useTranslationRaw = ({
11
11
  defaultTranslation,
12
12
  additionalTranslations
13
13
  }) => {
14
- const [activeTranslation, setActiveTranslation] = React.useState(defaultTranslation);
15
- React.useEffect(() => {
14
+ const [activeTranslation, setActiveTranslation] = react.useState(defaultTranslation);
15
+ react.useEffect(() => {
16
16
  const loadTranslations = async () => {
17
17
  try {
18
18
  if (language === mapping.DEFAULT_LANGUAGE) {
@@ -30,14 +30,14 @@ const useTranslationRaw = ({
30
30
  };
31
31
  loadTranslations();
32
32
  }, [language, additionalTranslations, defaultTranslation]);
33
- const intl$1 = React.useMemo(() => {
33
+ const intl$1 = react.useMemo(() => {
34
34
  const cache = intl.createIntlCache();
35
35
  return intl.createIntl({
36
36
  locale: language,
37
37
  messages: activeTranslation
38
38
  }, cache);
39
39
  }, [language, activeTranslation]);
40
- const formatMessage = React.useCallback((id, values) => intl$1.formatMessage({
40
+ const formatMessage = react.useCallback((id, values) => intl$1.formatMessage({
41
41
  id,
42
42
  defaultMessage: defaultTranslation[id]
43
43
  }, values), [intl$1, defaultTranslation]);
@@ -50,7 +50,7 @@ const useTranslation = options => {
50
50
  const {
51
51
  language
52
52
  } = context.useMenu();
53
- const optionsExtended = React.useMemo(() => ({
53
+ const optionsExtended = react.useMemo(() => ({
54
54
  ...options,
55
55
  language
56
56
  }), [options, language]);
@@ -1 +1 @@
1
- {"version":3,"file":"product.js","sources":["../../src/types/product.ts"],"sourcesContent":["import type { Currency } from \"../types\";\n\n\nexport enum DisplayProductStatus {\n Available = \"Available\",\n Backorder = \"Backorder\",\n ComingSoon = \"ComingSoon\",\n RegionNotAvailable = \"RegionNotAvailable\",\n SoldOut = \"SoldOut\",\n Unavailable = \"Unavailable\",\n}\n\nexport type CollectionSection = {\n id: string;\n productTags: Array<string>;\n title: string;\n};\n\nexport interface Section extends CollectionSection {\n items: Section[];\n}\n\nexport type ProductTagFragment = { __typename?: \"ProductTag\"; name: string };\n\nexport interface MappedProductSection<T> extends Section {\n items: MappedProductSection<T>[];\n products: T[];\n /**\n * States which is conditionally calculated based on the need.\n * E.g. if it is an optical collection where collection sections\n * are rendered inside the VariantSelector items, we need to\n * know which section does not contain products that are in stock.\n * If all products in the section are out of stock, we need to\n * apply grayed out style to the section button.\n */\n isDisabled?: boolean;\n}\n\nexport interface StorefrontProduct {\n id: string;\n slug: string;\n title: string;\n shortTitle?: string | null;\n collectionSlug?: string | null;\n organizationalCollectionSlug?: string | null;\n proCollectionSlug?: string | null;\n status: DisplayProductStatus;\n options: Array<{\n __typename?: \"StorefrontOption\";\n id: string;\n title: string;\n slug: string;\n values: Array<{\n __typename?: \"StorefrontOptionValue\";\n id: string;\n title: string;\n slug: string;\n }>;\n }>;\n tags: Array<{ __typename?: \"ProductTag\"; name: string }>;\n minDisplayPrice: { __typename?: \"Money\"; amount: number; currency: Currency };\n variants: Array<{\n __typename?: \"StorefrontProductVariant\";\n id: string;\n status: DisplayProductStatus;\n availableInOtherStores: Array<{\n __typename: \"StorefrontProductVariantAlternativeStore\";\n }>;\n optionValueIds?: Array<string> | null;\n }>;\n}\n\nexport type StorefrontOptionValue = {\n __typename?: \"StorefrontOptionValue\";\n id: string;\n slug: string;\n title: string;\n};\n\nexport type StorefrontOption = {\n __typename?: \"StorefrontOption\";\n id: string;\n slug: string;\n title: string;\n values: Array<StorefrontOptionValue>;\n};\n"],"names":["DisplayProductStatus"],"mappings":";;;AAGY,IAAAA,oBAAA,GAAA,gBAAAA,qBAAL,IAAA;EACLA,sBAAA,WAAY,CAAA,GAAA,WAAA;EACZA,sBAAA,WAAY,CAAA,GAAA,WAAA;EACZA,sBAAA,YAAa,CAAA,GAAA,YAAA;EACbA,sBAAA,oBAAqB,CAAA,GAAA,oBAAA;EACrBA,sBAAA,SAAU,CAAA,GAAA,SAAA;EACVA,sBAAA,aAAc,CAAA,GAAA,aAAA;EANJA,OAAAA,qBAAAA;AAAA,CAAA,EAAAA,oBAAA,IAAA,CAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"product.js","sources":["../../src/types/product.ts"],"sourcesContent":["import type { Currency } from \"../types\";\n\nexport enum DisplayProductStatus {\n Available = \"Available\",\n Backorder = \"Backorder\",\n ComingSoon = \"ComingSoon\",\n RegionNotAvailable = \"RegionNotAvailable\",\n SoldOut = \"SoldOut\",\n Unavailable = \"Unavailable\",\n}\n\nexport type CollectionSection = {\n id: string;\n productTags: Array<string>;\n title: string;\n};\n\nexport interface Section extends CollectionSection {\n items: Section[];\n}\n\nexport type ProductTagFragment = { __typename?: \"ProductTag\"; name: string };\n\nexport interface MappedProductSection<T> extends Section {\n items: MappedProductSection<T>[];\n products: T[];\n /**\n * States which is conditionally calculated based on the need.\n * E.g. if it is an optical collection where collection sections\n * are rendered inside the VariantSelector items, we need to\n * know which section does not contain products that are in stock.\n * If all products in the section are out of stock, we need to\n * apply grayed out style to the section button.\n */\n isDisabled?: boolean;\n}\n\nexport interface StorefrontProduct {\n id: string;\n slug: string;\n title: string;\n shortTitle?: string | null;\n collectionSlug?: string | null;\n organizationalCollectionSlug?: string | null;\n proCollectionSlug?: string | null;\n status: DisplayProductStatus;\n options: Array<{\n __typename?: \"StorefrontOption\";\n id: string;\n title: string;\n slug: string;\n values: Array<{\n __typename?: \"StorefrontOptionValue\";\n id: string;\n title: string;\n slug: string;\n }>;\n }>;\n tags: Array<{ __typename?: \"ProductTag\"; name: string }>;\n minDisplayPrice: { __typename?: \"Money\"; amount: number; currency: Currency };\n variants: Array<{\n __typename?: \"StorefrontProductVariant\";\n id: string;\n status: DisplayProductStatus;\n availableInOtherStores: Array<{\n __typename: \"StorefrontProductVariantAlternativeStore\";\n }>;\n optionValueIds?: Array<string> | null;\n }>;\n}\n\nexport type StorefrontOptionValue = {\n __typename?: \"StorefrontOptionValue\";\n id: string;\n slug: string;\n title: string;\n};\n\nexport type StorefrontOption = {\n __typename?: \"StorefrontOption\";\n id: string;\n slug: string;\n title: string;\n values: Array<StorefrontOptionValue>;\n};\n"],"names":["DisplayProductStatus"],"mappings":";;;AAEY,IAAAA,oBAAA,GAAA,gBAAAA,qBAAL,IAAA;EACLA,sBAAA,WAAY,CAAA,GAAA,WAAA;EACZA,sBAAA,WAAY,CAAA,GAAA,WAAA;EACZA,sBAAA,YAAa,CAAA,GAAA,YAAA;EACbA,sBAAA,oBAAqB,CAAA,GAAA,oBAAA;EACrBA,sBAAA,SAAU,CAAA,GAAA,SAAA;EACVA,sBAAA,aAAc,CAAA,GAAA,aAAA;EANJA,OAAAA,qBAAAA;AAAA,CAAA,EAAAA,oBAAA,IAAA,CAAA,CAAA,CAAA;"}
@@ -1 +1 @@
1
- {"version":3,"file":"product.mjs","sources":["../../src/types/product.ts"],"sourcesContent":["import type { Currency } from \"../types\";\n\n\nexport enum DisplayProductStatus {\n Available = \"Available\",\n Backorder = \"Backorder\",\n ComingSoon = \"ComingSoon\",\n RegionNotAvailable = \"RegionNotAvailable\",\n SoldOut = \"SoldOut\",\n Unavailable = \"Unavailable\",\n}\n\nexport type CollectionSection = {\n id: string;\n productTags: Array<string>;\n title: string;\n};\n\nexport interface Section extends CollectionSection {\n items: Section[];\n}\n\nexport type ProductTagFragment = { __typename?: \"ProductTag\"; name: string };\n\nexport interface MappedProductSection<T> extends Section {\n items: MappedProductSection<T>[];\n products: T[];\n /**\n * States which is conditionally calculated based on the need.\n * E.g. if it is an optical collection where collection sections\n * are rendered inside the VariantSelector items, we need to\n * know which section does not contain products that are in stock.\n * If all products in the section are out of stock, we need to\n * apply grayed out style to the section button.\n */\n isDisabled?: boolean;\n}\n\nexport interface StorefrontProduct {\n id: string;\n slug: string;\n title: string;\n shortTitle?: string | null;\n collectionSlug?: string | null;\n organizationalCollectionSlug?: string | null;\n proCollectionSlug?: string | null;\n status: DisplayProductStatus;\n options: Array<{\n __typename?: \"StorefrontOption\";\n id: string;\n title: string;\n slug: string;\n values: Array<{\n __typename?: \"StorefrontOptionValue\";\n id: string;\n title: string;\n slug: string;\n }>;\n }>;\n tags: Array<{ __typename?: \"ProductTag\"; name: string }>;\n minDisplayPrice: { __typename?: \"Money\"; amount: number; currency: Currency };\n variants: Array<{\n __typename?: \"StorefrontProductVariant\";\n id: string;\n status: DisplayProductStatus;\n availableInOtherStores: Array<{\n __typename: \"StorefrontProductVariantAlternativeStore\";\n }>;\n optionValueIds?: Array<string> | null;\n }>;\n}\n\nexport type StorefrontOptionValue = {\n __typename?: \"StorefrontOptionValue\";\n id: string;\n slug: string;\n title: string;\n};\n\nexport type StorefrontOption = {\n __typename?: \"StorefrontOption\";\n id: string;\n slug: string;\n title: string;\n values: Array<StorefrontOptionValue>;\n};\n"],"names":["DisplayProductStatus"],"mappings":";;AAGY,IAAAA,oBAAA,GAAA,gBAAAA,qBAAL,IAAA;EACLA,sBAAA,WAAY,CAAA,GAAA,WAAA;EACZA,sBAAA,WAAY,CAAA,GAAA,WAAA;EACZA,sBAAA,YAAa,CAAA,GAAA,YAAA;EACbA,sBAAA,oBAAqB,CAAA,GAAA,oBAAA;EACrBA,sBAAA,SAAU,CAAA,GAAA,SAAA;EACVA,sBAAA,aAAc,CAAA,GAAA,aAAA;EANJA,OAAAA,qBAAAA;AAAA,CAAA,EAAAA,oBAAA,IAAA,CAAA,CAAA,CAAA;"}
1
+ {"version":3,"file":"product.mjs","sources":["../../src/types/product.ts"],"sourcesContent":["import type { Currency } from \"../types\";\n\nexport enum DisplayProductStatus {\n Available = \"Available\",\n Backorder = \"Backorder\",\n ComingSoon = \"ComingSoon\",\n RegionNotAvailable = \"RegionNotAvailable\",\n SoldOut = \"SoldOut\",\n Unavailable = \"Unavailable\",\n}\n\nexport type CollectionSection = {\n id: string;\n productTags: Array<string>;\n title: string;\n};\n\nexport interface Section extends CollectionSection {\n items: Section[];\n}\n\nexport type ProductTagFragment = { __typename?: \"ProductTag\"; name: string };\n\nexport interface MappedProductSection<T> extends Section {\n items: MappedProductSection<T>[];\n products: T[];\n /**\n * States which is conditionally calculated based on the need.\n * E.g. if it is an optical collection where collection sections\n * are rendered inside the VariantSelector items, we need to\n * know which section does not contain products that are in stock.\n * If all products in the section are out of stock, we need to\n * apply grayed out style to the section button.\n */\n isDisabled?: boolean;\n}\n\nexport interface StorefrontProduct {\n id: string;\n slug: string;\n title: string;\n shortTitle?: string | null;\n collectionSlug?: string | null;\n organizationalCollectionSlug?: string | null;\n proCollectionSlug?: string | null;\n status: DisplayProductStatus;\n options: Array<{\n __typename?: \"StorefrontOption\";\n id: string;\n title: string;\n slug: string;\n values: Array<{\n __typename?: \"StorefrontOptionValue\";\n id: string;\n title: string;\n slug: string;\n }>;\n }>;\n tags: Array<{ __typename?: \"ProductTag\"; name: string }>;\n minDisplayPrice: { __typename?: \"Money\"; amount: number; currency: Currency };\n variants: Array<{\n __typename?: \"StorefrontProductVariant\";\n id: string;\n status: DisplayProductStatus;\n availableInOtherStores: Array<{\n __typename: \"StorefrontProductVariantAlternativeStore\";\n }>;\n optionValueIds?: Array<string> | null;\n }>;\n}\n\nexport type StorefrontOptionValue = {\n __typename?: \"StorefrontOptionValue\";\n id: string;\n slug: string;\n title: string;\n};\n\nexport type StorefrontOption = {\n __typename?: \"StorefrontOption\";\n id: string;\n slug: string;\n title: string;\n values: Array<StorefrontOptionValue>;\n};\n"],"names":["DisplayProductStatus"],"mappings":";;AAEY,IAAAA,oBAAA,GAAA,gBAAAA,qBAAL,IAAA;EACLA,sBAAA,WAAY,CAAA,GAAA,WAAA;EACZA,sBAAA,WAAY,CAAA,GAAA,WAAA;EACZA,sBAAA,YAAa,CAAA,GAAA,YAAA;EACbA,sBAAA,oBAAqB,CAAA,GAAA,oBAAA;EACrBA,sBAAA,SAAU,CAAA,GAAA,SAAA;EACVA,sBAAA,aAAc,CAAA,GAAA,aAAA;EANJA,OAAAA,qBAAAA;AAAA,CAAA,EAAAA,oBAAA,IAAA,CAAA,CAAA,CAAA;"}
@@ -4,11 +4,26 @@ import type { LocalizedCurrency, RoundingFn } from "./types";
4
4
  /**
5
5
  * Custom rounding method to be used with dinero.js
6
6
  * This rounding method will round to nearest FULL 0/5/9 (and strip cents)
7
- * (moved here to mitigate ReferenceError: Cannot access 'roundToNearestFull059Fn' before initialization)
8
7
  *
9
8
  * @see: https://ubiquiti.atlassian.net/browse/NEP-3846
10
9
  */
11
- export declare const roundToNearestFull059Fn: RoundingFn;
10
+ export declare const roundToNearestFull059: RoundingFn;
11
+ /**
12
+ * Custom rounding method to be used with dinero.js
13
+ * This rounding method will round to
14
+ * nearest decimal cent. e.g. 1.53 = 1.50 / 1.57 = 1.60
15
+ *
16
+ * @see: https://ubiquiti.atlassian.net/browse/NEP-3846
17
+ */
18
+ export declare const roundToNearestDecimalCent: RoundingFn;
19
+ /**
20
+ * Custom rounding method to be used with dinero.js
21
+ * This rounding method will round to
22
+ * nearest .50 or .00. e.g. 11.22 = 11 / 11.55 = 11.50 / 11.90 = 12
23
+ *
24
+ * @see: https://ubiquiti.atlassian.net/browse/NEP-3846
25
+ */
26
+ export declare const roundToNearestHalfUnitCent: RoundingFn;
12
27
  export declare const Round: {
13
28
  /**
14
29
  * ⚠️ Instead of using Math.round, we HAVE to use this method to round the financial numbers everywhere where we CAN'T
@@ -16,8 +31,7 @@ export declare const Round: {
16
31
  * normalise the values so we use this method.
17
32
  *
18
33
  * It just a re-export of the dinero.js halfEven (a.k.a bankers rounding) method which is the default rounding method.
19
- * @see https://github.com/dinerojs/dinero.js/blob/main/packages/core/src/round/halfEven.ts
20
- * @see
34
+ * @see https://github.com/dinerojs/dinero.js/blob/v2.0.0-alpha.8/packages/core/src/round/halfEven.ts
21
35
  *
22
36
  * Compared to Math.round (arithmetic rounding) it differentiates that it changes the `.5` round up or down behaviour based on if the rounded
23
37
  * number would be an even number. So 1.5 would round to 2 while 2.5 would round to 2.
@@ -41,6 +55,14 @@ export declare const Round: {
41
55
  * ! Disclaimer may not work for "weird" currencies as expected
42
56
  */
43
57
  PrettifyFull059: RoundingFn;
58
+ /**
59
+ * ! Disclaimer may not work for "weird" currencies as expected
60
+ */
61
+ PrettifyDecimalCents: RoundingFn;
62
+ /**
63
+ * ! Disclaimer may not work for "weird" currencies as expected
64
+ */
65
+ PrettifyHalfUnitCents: RoundingFn;
44
66
  Subunit: import("@dinero.js/core").RoundingMode;
45
67
  };
46
68
  /**
@@ -5,7 +5,13 @@ var dinero_js = require('dinero.js');
5
5
  require('../../types/index.js');
6
6
  var generated = require('../../types/generated.js');
7
7
  "use strict";
8
- const roundToNearestFull059Fn = input => {
8
+ const roundToNearestFull059 = input => {
9
+ if (input === 0) {
10
+ return 0;
11
+ }
12
+ if (input <= 3) {
13
+ return 5;
14
+ }
9
15
  const roundedNumber = Math.round(input);
10
16
  const remainder = roundedNumber % 10;
11
17
  if (remainder <= 2) {
@@ -16,6 +22,24 @@ const roundToNearestFull059Fn = input => {
16
22
  return roundedNumber - remainder + 9;
17
23
  }
18
24
  };
25
+ const roundToNearestDecimalCent = input => {
26
+ if (input === 0) {
27
+ return 0;
28
+ }
29
+ if (input < 0.1) {
30
+ return 0.1;
31
+ }
32
+ return parseFloat((Math.round(input * 10) / 10).toFixed(1));
33
+ };
34
+ const roundToNearestHalfUnitCent = input => {
35
+ if (input === 0) {
36
+ return 0;
37
+ }
38
+ if (input < 0.5) {
39
+ return 0.5;
40
+ }
41
+ return parseFloat((Math.round(input * 2) / 2).toFixed(2));
42
+ };
19
43
  const Round = {
20
44
  /**
21
45
  * ⚠️ Instead of using Math.round, we HAVE to use this method to round the financial numbers everywhere where we CAN'T
@@ -23,8 +47,7 @@ const Round = {
23
47
  * normalise the values so we use this method.
24
48
  *
25
49
  * It just a re-export of the dinero.js halfEven (a.k.a bankers rounding) method which is the default rounding method.
26
- * @see https://github.com/dinerojs/dinero.js/blob/main/packages/core/src/round/halfEven.ts
27
- * @see
50
+ * @see https://github.com/dinerojs/dinero.js/blob/v2.0.0-alpha.8/packages/core/src/round/halfEven.ts
28
51
  *
29
52
  * Compared to Math.round (arithmetic rounding) it differentiates that it changes the `.5` round up or down behaviour based on if the rounded
30
53
  * number would be an even number. So 1.5 would round to 2 while 2.5 would round to 2.
@@ -52,10 +75,18 @@ const Round = {
52
75
  /**
53
76
  * ! Disclaimer may not work for "weird" currencies as expected
54
77
  */
55
- PrettifyFull059: roundToNearestFull059Fn,
78
+ PrettifyFull059: roundToNearestFull059,
79
+ /**
80
+ * ! Disclaimer may not work for "weird" currencies as expected
81
+ */
82
+ PrettifyDecimalCents: roundToNearestDecimalCent,
83
+ /**
84
+ * ! Disclaimer may not work for "weird" currencies as expected
85
+ */
86
+ PrettifyHalfUnitCents: roundToNearestHalfUnitCent,
56
87
  Subunit: dinero_js.halfUp
57
88
  };
58
- const prettifyPriceLookup = /* @__PURE__ */new Map([[currencies.USD.code, 20], [currencies.CAD.code, 50], [currencies.EUR.code, 50], [currencies.GBP.code, 50], [currencies.AED.code, 50],
89
+ const prettifyPriceLookup = /* @__PURE__ */new Map([[currencies.USD.code, 20], [currencies.AED.code, 50],
59
90
  // Approximately every price above ~1.1 usd will be rounded in ZAR
60
91
  [currencies.ZAR.code, 20]]);
61
92
  const smallestSubunitLookup = /* @__PURE__ */new Map([
@@ -176,7 +207,9 @@ exports.Round = Round;
176
207
  exports.TAX_RATE_DINERO_CURRENCY = TAX_RATE_DINERO_CURRENCY;
177
208
  exports.localizedCurrencyLookup = localizedCurrencyLookup;
178
209
  exports.prettifyPriceLookup = prettifyPriceLookup;
179
- exports.roundToNearestFull059Fn = roundToNearestFull059Fn;
210
+ exports.roundToNearestDecimalCent = roundToNearestDecimalCent;
211
+ exports.roundToNearestFull059 = roundToNearestFull059;
212
+ exports.roundToNearestHalfUnitCent = roundToNearestHalfUnitCent;
180
213
  exports.smallestSubunitLookup = smallestSubunitLookup;
181
214
  exports.storesWithPerItemTaxRate = storesWithPerItemTaxRate;
182
215
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sources":["../../../src/utils/money/constants.ts"],"sourcesContent":["import {\n AED,\n BGN,\n BRL,\n CAD,\n CHF,\n CZK,\n DKK,\n EUR,\n GBP,\n HRK,\n HUF,\n INR,\n JPY,\n MXN,\n NOK,\n PLN,\n RON,\n SEK,\n SGD,\n TWD,\n USD,\n ZAR,\n} from \"@dinero.js/currencies\";\nimport { down, halfAwayFromZero, halfUp } from \"dinero.js\";\n\nimport type { StoreId } from \"../../types\";\nimport { Currency } from \"../../types\";\nimport type {\n Cents,\n DinoCurrency,\n LocalizedCurrency,\n RoundingFn,\n} from \"./types\";\n\n// #############################################################################\n// Constants\n// #############################################################################\n\n/**\n * Custom rounding method to be used with dinero.js\n * This rounding method will round to nearest FULL 0/5/9 (and strip cents)\n * (moved here to mitigate ReferenceError: Cannot access 'roundToNearestFull059Fn' before initialization)\n *\n * @see: https://ubiquiti.atlassian.net/browse/NEP-3846\n */\nexport const roundToNearestFull059Fn: RoundingFn = (input: number) => {\n /**\n * Input comes as float, for this rounding we don't need cents, so round\n * to nearest full number\n */\n const roundedNumber = Math.round(input);\n\n // Determine nearest rounding value\n const remainder = roundedNumber % 10;\n if (remainder <= 2) {\n // Round down to nearest 0\n return roundedNumber - remainder;\n } else if (remainder <= 7) {\n // Round to nearest 5\n return roundedNumber - remainder + 5;\n } else {\n // Round up to nearest 9\n return roundedNumber - remainder + 9;\n }\n};\n\nexport const Round = {\n /**\n * ⚠️ Instead of using Math.round, we HAVE to use this method to round the financial numbers everywhere where we CAN'T\n * deal with dinero.js (Dinero.js should be the priority). But often for converting from API requests we have to\n * normalise the values so we use this method.\n *\n * It just a re-export of the dinero.js halfEven (a.k.a bankers rounding) method which is the default rounding method.\n * @see https://github.com/dinerojs/dinero.js/blob/main/packages/core/src/round/halfEven.ts\n * @see\n *\n * Compared to Math.round (arithmetic rounding) it differentiates that it changes the `.5` round up or down behaviour based on if the rounded\n * number would be an even number. So 1.5 would round to 2 while 2.5 would round to 2.\n * See the youtube link below for a brief exclamation on why it's important to use this method over regular rounding (half-up):\n * https://youtu.be/yuRdYlZvs1E\n *\n * If you really want to get knee-deep in the rounding subject, you can read the following:\n * https://en.wikipedia.org/wiki/Rounding#Round_half_toward_zero\n *\n * !!!!!!!!!!!!!!\n * ! Update 2024\n * ! We ar changing from `halfEven` (bankers rounding) to `halfAwayFromZero` (symmetric rounding) to match Avalara tax\n * @see https://knowledge.avalara.com/bundle/dqa1657870670369_dqa1657870670369/page/Change_how_AvaTax_rounds_the_tax_amount.html\n * @see https://ui.slack.com/archives/C07P7L7S3CP/p1728313196140639\n * !!!!!!!!!!!!!!\n */\n Financial: halfAwayFromZero,\n // https://ui.slack.com/archives/C07P7L7S3CP/p1728313196140639\n // TODO: maybe we should have separate rounding functions depending on the input value?\n // Reading from wiki \"Round half toward zero\" is better if the value is already \"normalized to cents\"\n // But the \"Round half to even\" seems better for when working with float like values\n // financialRound = Math.round;\n Shipping: down,\n Prettify: down,\n /**\n * ! Disclaimer may not work for \"weird\" currencies as expected\n */\n PrettifyFull059: roundToNearestFull059Fn,\n Subunit: halfUp,\n} satisfies Record<string, RoundingFn>;\n\n/**\n * Mapping of how prices should be rounded down to \"whole numbers\" after certain threshold\n */\nexport const prettifyPriceLookup = new Map([\n [USD.code, 20],\n [CAD.code, 50],\n [EUR.code, 50],\n [GBP.code, 50],\n [AED.code, 50],\n // Approximately every price above ~1.1 usd will be rounded in ZAR\n [ZAR.code, 20],\n]);\n\n/**\n * Map of dinero code to subunit digit count.\n */\nexport const smallestSubunitLookup = new Map<string, [Cents, RoundingFn]>([\n /**\n * TWD does not use subunits at all in day to day transactions.\n */\n [TWD.code, [0, Round.Subunit]],\n]);\n\n/**\n * Precompiled list for faster currency and locale lookups\n */\nexport const localizedCurrencyLookup = new Map<Currency, LocalizedCurrency>([\n [Currency.Aed, { currency: AED, locale: \"ar-AE\" }],\n [Currency.Bgn, { currency: BGN, locale: \"bg-BG\" }],\n [Currency.Cad, { currency: CAD, locale: \"en-CA\" }],\n [Currency.Chf, { currency: CHF, locale: \"it-CH\" }],\n [Currency.Czk, { currency: CZK, locale: \"cs-CZ\" }],\n [Currency.Dkk, { currency: DKK, locale: \"da-DK\" }],\n [Currency.Eur, { currency: EUR, locale: \"de-DE\" }],\n [Currency.Gbp, { currency: GBP, locale: \"en-GB\" }],\n [Currency.Hrk, { currency: HRK, locale: \"hr-HR\" }],\n [Currency.Huf, { currency: HUF, locale: \"hu-HU\" }],\n [Currency.Nok, { currency: NOK, locale: \"no-NO\" }],\n [Currency.Pln, { currency: PLN, locale: \"pl-PL\" }],\n [Currency.Ron, { currency: RON, locale: \"ro-RO\" }],\n [Currency.Sek, { currency: SEK, locale: \"sv-SE\" }],\n [Currency.Usd, { currency: USD, locale: \"en-US\" }],\n [Currency.Zar, { currency: ZAR, locale: \"en-ZA\" }],\n [Currency.Inr, { currency: INR, locale: \"en-IN\" }],\n [Currency.Sgd, { currency: SGD, locale: \"en-SG\" }],\n [Currency.Brl, { currency: BRL, locale: \"pt-BR\" }],\n // NOTE: en-JP Doesn't exist\n [Currency.Jpy, { currency: JPY, locale: \"en-JP\" }],\n // NOTE: en-TW Doesn't exist\n [Currency.Twd, { currency: TWD, locale: \"en-TW\" }],\n [Currency.Mxn, { currency: MXN, locale: \"es-MX\" }],\n]);\n\n// #############################################################################\n// Tax Rate\n// #############################################################################\n/**\n * List of stores that require calculating per single item qty and then combining them to get the total tax amount for a\n * single line. Rest of the stores inherit default behavior that tax calculated on whole line item\n *\n * ! IMPORTANT: When changing need to sync that store.backend `AVATAX_CUSTOM_COMPANY_CODES` is updated to reflect the change\n *\n * FIXME: as PR for the change as unfinished currently disabled to enable the functionality that calculates tax per single item as requires\n * specific testing both for our custom tax and Avalara stores that use custom company codes. So the groundwork for\n * different tax calculations is there just need to enable on the share side and test if it works\n */\nexport const storesWithPerItemTaxRate = new Set([\n // #############################################################################\n // Stores with custom tax rates\n // #############################################################################\n // StoreId.Br,\n // StoreId.Tw,\n // #############################################################################\n // Stores with Avalara, but will have custom company codes to handle per-item tax rate\n // #############################################################################\n // StoreId.Jp,\n // StoreId.Sg,\n] as StoreId[]);\n\n/**\n * Dinero currency option block for working with tax rates within dinero\n */\nexport const TAX_RATE_DINERO_CURRENCY = {\n base: 10,\n /**\n * We expect the tax rate to be in the range of 0..1\n * 0 --> 0%\n * 1 --> 100%\n * 0.21 --> 21%\n * 0.2169 --> 21.69%\n * 0.12345678 --> 12.345678%\n * !!! Don't change as this value is tied to store.backend DB schema !!!\n */\n exponent: 8,\n code: \"\", // Not important\n} satisfies DinoCurrency;\n\n// #############################################################################\n// Exchange Rate\n// #############################################################################\n\nexport const EXCHANGE_RATE_DINERO_CURRENCY = {\n base: 10,\n /**\n * We support having certain decimal places for exchange rates\n * !!! Don't change as this value is tied to store.backend DB schema !!!\n */\n exponent: 6,\n code: \"\", // Not important\n} satisfies DinoCurrency;\n"],"names":["roundToNearestFull059Fn","input","roundedNumber","Math","round","remainder","Round","Financial","halfAwayFromZero","Shipping","down","Prettify","PrettifyFull059","Subunit","halfUp","prettifyPriceLookup","Map","USD","code","CAD","EUR","GBP","AED","ZAR","smallestSubunitLookup","TWD","localizedCurrencyLookup","Currency","Aed","currency","locale","Bgn","BGN","Cad","Chf","CHF","Czk","CZK","Dkk","DKK","Eur","Gbp","Hrk","HRK","Huf","HUF","Nok","NOK","Pln","PLN","Ron","RON","Sek","SEK","Usd","Zar","Inr","INR","Sgd","SGD","Brl","BRL","Jpy","JPY","Twd","Mxn","MXN","storesWithPerItemTaxRate","Set","TAX_RATE_DINERO_CURRENCY","base","exponent","EXCHANGE_RATE_DINERO_CURRENCY"],"mappings":"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"}
1
+ {"version":3,"file":"constants.js","sources":["../../../src/utils/money/constants.ts"],"sourcesContent":["import {\n AED,\n BGN,\n BRL,\n CAD,\n CHF,\n CZK,\n DKK,\n EUR,\n GBP,\n HRK,\n HUF,\n INR,\n JPY,\n MXN,\n NOK,\n PLN,\n RON,\n SEK,\n SGD,\n TWD,\n USD,\n ZAR,\n} from \"@dinero.js/currencies\";\nimport { down, halfAwayFromZero, halfUp } from \"dinero.js\";\n\nimport type { StoreId } from \"../../types\";\nimport { Currency } from \"../../types\";\nimport type {\n Cents,\n DinoCurrency,\n LocalizedCurrency,\n RoundingFn,\n} from \"./types\";\n\n// #############################################################################\n// Constants\n// #############################################################################\n\n/**\n * Custom rounding method to be used with dinero.js\n * This rounding method will round to nearest FULL 0/5/9 (and strip cents)\n *\n * @see: https://ubiquiti.atlassian.net/browse/NEP-3846\n */\nexport const roundToNearestFull059: RoundingFn = (input: number) => {\n if (input === 0) {\n return 0;\n }\n\n // Special handling of 0.01-3.00\n if (input <= 3) {\n return 5;\n }\n\n /**\n * Input comes as float, for this rounding we don't need cents, so round\n * to nearest full number\n */\n const roundedNumber = Math.round(input);\n\n // Determine nearest rounding value\n const remainder = roundedNumber % 10;\n if (remainder <= 2) {\n // Round down to nearest 0\n return roundedNumber - remainder;\n } else if (remainder <= 7) {\n // Round to nearest 5\n return roundedNumber - remainder + 5;\n } else {\n // Round up to nearest 9\n return roundedNumber - remainder + 9;\n }\n};\n\n/**\n * Custom rounding method to be used with dinero.js\n * This rounding method will round to\n * nearest decimal cent. e.g. 1.53 = 1.50 / 1.57 = 1.60\n *\n * @see: https://ubiquiti.atlassian.net/browse/NEP-3846\n */\nexport const roundToNearestDecimalCent: RoundingFn = (input: number) => {\n if (input === 0) {\n return 0;\n }\n\n // Special handling of 0.01-0.09\n if (input < 0.1) {\n return 0.1;\n }\n\n /**\n * Input comes as float, just to be on the safe side use toFixed to mitigate\n * risk of running to floating point precision issues\n */\n return parseFloat((Math.round(input * 10) / 10).toFixed(1));\n};\n\n/**\n * Custom rounding method to be used with dinero.js\n * This rounding method will round to\n * nearest .50 or .00. e.g. 11.22 = 11 / 11.55 = 11.50 / 11.90 = 12\n *\n * @see: https://ubiquiti.atlassian.net/browse/NEP-3846\n */\nexport const roundToNearestHalfUnitCent: RoundingFn = (input: number) => {\n if (input === 0) {\n return 0;\n }\n\n // Special handling of 0.01-0.5\n if (input < 0.5) {\n return 0.5;\n }\n\n /**\n * Input comes as float, just to be on the safe side use toFixed to mitigate\n * risk of running to floating point precision issues\n *\n * Multiply by 2, round to the nearest integer, then divide by 2 to get the nearest .5 or .0\n * Return with fixed precision to avoid floating-point artifacts\n */\n return parseFloat((Math.round(input * 2) / 2).toFixed(2));\n};\n\nexport const Round = {\n /**\n * ⚠️ Instead of using Math.round, we HAVE to use this method to round the financial numbers everywhere where we CAN'T\n * deal with dinero.js (Dinero.js should be the priority). But often for converting from API requests we have to\n * normalise the values so we use this method.\n *\n * It just a re-export of the dinero.js halfEven (a.k.a bankers rounding) method which is the default rounding method.\n * @see https://github.com/dinerojs/dinero.js/blob/v2.0.0-alpha.8/packages/core/src/round/halfEven.ts\n *\n * Compared to Math.round (arithmetic rounding) it differentiates that it changes the `.5` round up or down behaviour based on if the rounded\n * number would be an even number. So 1.5 would round to 2 while 2.5 would round to 2.\n * See the youtube link below for a brief exclamation on why it's important to use this method over regular rounding (half-up):\n * https://youtu.be/yuRdYlZvs1E\n *\n * If you really want to get knee-deep in the rounding subject, you can read the following:\n * https://en.wikipedia.org/wiki/Rounding#Round_half_toward_zero\n *\n * !!!!!!!!!!!!!!\n * ! Update 2024\n * ! We ar changing from `halfEven` (bankers rounding) to `halfAwayFromZero` (symmetric rounding) to match Avalara tax\n * @see https://knowledge.avalara.com/bundle/dqa1657870670369_dqa1657870670369/page/Change_how_AvaTax_rounds_the_tax_amount.html\n * @see https://ui.slack.com/archives/C07P7L7S3CP/p1728313196140639\n * !!!!!!!!!!!!!!\n */\n Financial: halfAwayFromZero,\n // https://ui.slack.com/archives/C07P7L7S3CP/p1728313196140639\n // TODO: maybe we should have separate rounding functions depending on the input value?\n // Reading from wiki \"Round half toward zero\" is better if the value is already \"normalized to cents\"\n // But the \"Round half to even\" seems better for when working with float like values\n // financialRound = Math.round;\n Shipping: down,\n Prettify: down,\n /**\n * ! Disclaimer may not work for \"weird\" currencies as expected\n */\n PrettifyFull059: roundToNearestFull059,\n /**\n * ! Disclaimer may not work for \"weird\" currencies as expected\n */\n PrettifyDecimalCents: roundToNearestDecimalCent,\n /**\n * ! Disclaimer may not work for \"weird\" currencies as expected\n */\n PrettifyHalfUnitCents: roundToNearestHalfUnitCent,\n Subunit: halfUp,\n} satisfies Record<string, RoundingFn>;\n\n/**\n * Mapping of how prices should be rounded down to \"whole numbers\" after certain threshold\n */\nexport const prettifyPriceLookup = new Map([\n [USD.code, 20],\n [AED.code, 50],\n // Approximately every price above ~1.1 usd will be rounded in ZAR\n [ZAR.code, 20],\n]);\n\n/**\n * Map of dinero code to subunit digit count.\n */\nexport const smallestSubunitLookup = new Map<string, [Cents, RoundingFn]>([\n /**\n * TWD does not use subunits at all in day to day transactions.\n */\n [TWD.code, [0, Round.Subunit]],\n]);\n\n/**\n * Precompiled list for faster currency and locale lookups\n */\nexport const localizedCurrencyLookup = new Map<Currency, LocalizedCurrency>([\n [Currency.Aed, { currency: AED, locale: \"ar-AE\" }],\n [Currency.Bgn, { currency: BGN, locale: \"bg-BG\" }],\n [Currency.Cad, { currency: CAD, locale: \"en-CA\" }],\n [Currency.Chf, { currency: CHF, locale: \"it-CH\" }],\n [Currency.Czk, { currency: CZK, locale: \"cs-CZ\" }],\n [Currency.Dkk, { currency: DKK, locale: \"da-DK\" }],\n [Currency.Eur, { currency: EUR, locale: \"de-DE\" }],\n [Currency.Gbp, { currency: GBP, locale: \"en-GB\" }],\n [Currency.Hrk, { currency: HRK, locale: \"hr-HR\" }],\n [Currency.Huf, { currency: HUF, locale: \"hu-HU\" }],\n [Currency.Nok, { currency: NOK, locale: \"no-NO\" }],\n [Currency.Pln, { currency: PLN, locale: \"pl-PL\" }],\n [Currency.Ron, { currency: RON, locale: \"ro-RO\" }],\n [Currency.Sek, { currency: SEK, locale: \"sv-SE\" }],\n [Currency.Usd, { currency: USD, locale: \"en-US\" }],\n [Currency.Zar, { currency: ZAR, locale: \"en-ZA\" }],\n [Currency.Inr, { currency: INR, locale: \"en-IN\" }],\n [Currency.Sgd, { currency: SGD, locale: \"en-SG\" }],\n [Currency.Brl, { currency: BRL, locale: \"pt-BR\" }],\n // NOTE: en-JP Doesn't exist\n [Currency.Jpy, { currency: JPY, locale: \"en-JP\" }],\n // NOTE: en-TW Doesn't exist\n [Currency.Twd, { currency: TWD, locale: \"en-TW\" }],\n [Currency.Mxn, { currency: MXN, locale: \"es-MX\" }],\n]);\n\n// #############################################################################\n// Tax Rate\n// #############################################################################\n/**\n * List of stores that require calculating per single item qty and then combining them to get the total tax amount for a\n * single line. Rest of the stores inherit default behavior that tax calculated on whole line item\n *\n * ! IMPORTANT: When changing need to sync that store.backend `AVATAX_CUSTOM_COMPANY_CODES` is updated to reflect the change\n *\n * FIXME: as PR for the change as unfinished currently disabled to enable the functionality that calculates tax per single item as requires\n * specific testing both for our custom tax and Avalara stores that use custom company codes. So the groundwork for\n * different tax calculations is there just need to enable on the share side and test if it works\n */\nexport const storesWithPerItemTaxRate = new Set([\n // #############################################################################\n // Stores with custom tax rates\n // #############################################################################\n // StoreId.Br,\n // StoreId.Tw,\n // #############################################################################\n // Stores with Avalara, but will have custom company codes to handle per-item tax rate\n // #############################################################################\n // StoreId.Jp,\n // StoreId.Sg,\n] as StoreId[]);\n\n/**\n * Dinero currency option block for working with tax rates within dinero\n */\nexport const TAX_RATE_DINERO_CURRENCY = {\n base: 10,\n /**\n * We expect the tax rate to be in the range of 0..1\n * 0 --> 0%\n * 1 --> 100%\n * 0.21 --> 21%\n * 0.2169 --> 21.69%\n * 0.12345678 --> 12.345678%\n * !!! Don't change as this value is tied to store.backend DB schema !!!\n */\n exponent: 8,\n code: \"\", // Not important\n} satisfies DinoCurrency;\n\n// #############################################################################\n// Exchange Rate\n// #############################################################################\n\nexport const EXCHANGE_RATE_DINERO_CURRENCY = {\n base: 10,\n /**\n * We support having certain decimal places for exchange rates\n * !!! Don't change as this value is tied to store.backend DB schema !!!\n */\n exponent: 6,\n code: \"\", // Not important\n} satisfies DinoCurrency;\n"],"names":["roundToNearestFull059","input","roundedNumber","Math","round","remainder","roundToNearestDecimalCent","parseFloat","toFixed","roundToNearestHalfUnitCent","Round","Financial","halfAwayFromZero","Shipping","down","Prettify","PrettifyFull059","PrettifyDecimalCents","PrettifyHalfUnitCents","Subunit","halfUp","prettifyPriceLookup","Map","USD","code","AED","ZAR","smallestSubunitLookup","TWD","localizedCurrencyLookup","Currency","Aed","currency","locale","Bgn","BGN","Cad","CAD","Chf","CHF","Czk","CZK","Dkk","DKK","Eur","EUR","Gbp","GBP","Hrk","HRK","Huf","HUF","Nok","NOK","Pln","PLN","Ron","RON","Sek","SEK","Usd","Zar","Inr","INR","Sgd","SGD","Brl","BRL","Jpy","JPY","Twd","Mxn","MXN","storesWithPerItemTaxRate","Set","TAX_RATE_DINERO_CURRENCY","base","exponent","EXCHANGE_RATE_DINERO_CURRENCY"],"mappings":"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"}
@@ -1,9 +1,15 @@
1
- import { USD, CAD, EUR, GBP, AED, ZAR, TWD, BGN, CHF, CZK, DKK, HRK, HUF, NOK, PLN, RON, SEK, INR, SGD, BRL, JPY, MXN } from '@dinero.js/currencies';
1
+ import { USD, AED, ZAR, TWD, BGN, CAD, CHF, CZK, DKK, EUR, GBP, HRK, HUF, NOK, PLN, RON, SEK, INR, SGD, BRL, JPY, MXN } from '@dinero.js/currencies';
2
2
  import { halfAwayFromZero, down, halfUp } from 'dinero.js';
3
3
  import '../../types/index.mjs';
4
4
  import { Currency } from '../../types/generated.mjs';
5
5
  "use strict";
6
- const roundToNearestFull059Fn = input => {
6
+ const roundToNearestFull059 = input => {
7
+ if (input === 0) {
8
+ return 0;
9
+ }
10
+ if (input <= 3) {
11
+ return 5;
12
+ }
7
13
  const roundedNumber = Math.round(input);
8
14
  const remainder = roundedNumber % 10;
9
15
  if (remainder <= 2) {
@@ -14,6 +20,24 @@ const roundToNearestFull059Fn = input => {
14
20
  return roundedNumber - remainder + 9;
15
21
  }
16
22
  };
23
+ const roundToNearestDecimalCent = input => {
24
+ if (input === 0) {
25
+ return 0;
26
+ }
27
+ if (input < 0.1) {
28
+ return 0.1;
29
+ }
30
+ return parseFloat((Math.round(input * 10) / 10).toFixed(1));
31
+ };
32
+ const roundToNearestHalfUnitCent = input => {
33
+ if (input === 0) {
34
+ return 0;
35
+ }
36
+ if (input < 0.5) {
37
+ return 0.5;
38
+ }
39
+ return parseFloat((Math.round(input * 2) / 2).toFixed(2));
40
+ };
17
41
  const Round = {
18
42
  /**
19
43
  * ⚠️ Instead of using Math.round, we HAVE to use this method to round the financial numbers everywhere where we CAN'T
@@ -21,8 +45,7 @@ const Round = {
21
45
  * normalise the values so we use this method.
22
46
  *
23
47
  * It just a re-export of the dinero.js halfEven (a.k.a bankers rounding) method which is the default rounding method.
24
- * @see https://github.com/dinerojs/dinero.js/blob/main/packages/core/src/round/halfEven.ts
25
- * @see
48
+ * @see https://github.com/dinerojs/dinero.js/blob/v2.0.0-alpha.8/packages/core/src/round/halfEven.ts
26
49
  *
27
50
  * Compared to Math.round (arithmetic rounding) it differentiates that it changes the `.5` round up or down behaviour based on if the rounded
28
51
  * number would be an even number. So 1.5 would round to 2 while 2.5 would round to 2.
@@ -50,10 +73,18 @@ const Round = {
50
73
  /**
51
74
  * ! Disclaimer may not work for "weird" currencies as expected
52
75
  */
53
- PrettifyFull059: roundToNearestFull059Fn,
76
+ PrettifyFull059: roundToNearestFull059,
77
+ /**
78
+ * ! Disclaimer may not work for "weird" currencies as expected
79
+ */
80
+ PrettifyDecimalCents: roundToNearestDecimalCent,
81
+ /**
82
+ * ! Disclaimer may not work for "weird" currencies as expected
83
+ */
84
+ PrettifyHalfUnitCents: roundToNearestHalfUnitCent,
54
85
  Subunit: halfUp
55
86
  };
56
- const prettifyPriceLookup = /* @__PURE__ */new Map([[USD.code, 20], [CAD.code, 50], [EUR.code, 50], [GBP.code, 50], [AED.code, 50],
87
+ const prettifyPriceLookup = /* @__PURE__ */new Map([[USD.code, 20], [AED.code, 50],
57
88
  // Approximately every price above ~1.1 usd will be rounded in ZAR
58
89
  [ZAR.code, 20]]);
59
90
  const smallestSubunitLookup = /* @__PURE__ */new Map([
@@ -169,5 +200,5 @@ const EXCHANGE_RATE_DINERO_CURRENCY = {
169
200
  code: ""
170
201
  // Not important
171
202
  };
172
- export { EXCHANGE_RATE_DINERO_CURRENCY, Round, TAX_RATE_DINERO_CURRENCY, localizedCurrencyLookup, prettifyPriceLookup, roundToNearestFull059Fn, smallestSubunitLookup, storesWithPerItemTaxRate };
203
+ export { EXCHANGE_RATE_DINERO_CURRENCY, Round, TAX_RATE_DINERO_CURRENCY, localizedCurrencyLookup, prettifyPriceLookup, roundToNearestDecimalCent, roundToNearestFull059, roundToNearestHalfUnitCent, smallestSubunitLookup, storesWithPerItemTaxRate };
173
204
  //# sourceMappingURL=constants.mjs.map