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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (679) hide show
  1. package/CHANGELOG.md +98 -549
  2. package/lib/_virtual/_virtual_multi-entry.js +15 -25
  3. package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
  4. package/lib/_virtual/_virtual_multi-entry.mjs +13 -13
  5. package/lib/apis/smartcat.d.ts +12 -2
  6. package/lib/apis/smartcat.js +27 -4
  7. package/lib/apis/smartcat.js.map +1 -1
  8. package/lib/apis/smartcat.mjs +27 -4
  9. package/lib/apis/smartcat.mjs.map +1 -1
  10. package/lib/assets/cart-secondary.svg +5 -0
  11. package/lib/assets/icon-location-pin.svg +5 -0
  12. package/lib/assets/icons/{menu/icon-globe.svg.js → cart-secondary.svg.js} +6 -6
  13. package/lib/assets/icons/cart-secondary.svg.js.map +1 -0
  14. package/lib/assets/icons/cart-secondary.svg.mjs +3 -0
  15. package/lib/assets/icons/cart-secondary.svg.mjs.map +1 -0
  16. package/lib/{components/ModelCompareV3/assets/crestron.svg.js → assets/icons/menu/icon-location-pin.svg.js} +6 -6
  17. package/lib/assets/icons/menu/icon-location-pin.svg.js.map +1 -0
  18. package/lib/assets/icons/menu/icon-location-pin.svg.mjs +3 -0
  19. package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +1 -0
  20. package/lib/assets/logoUnifi.svg +10 -2
  21. package/lib/assets/pause.svg +3 -3
  22. package/lib/assets/pause2.svg +3 -3
  23. package/lib/assets/udmPro.jpg +0 -0
  24. package/lib/assets/udmPro2.jpg +0 -0
  25. package/lib/assets/udmProMax.jpg +0 -0
  26. package/lib/assets/udmProMax2.jpg +0 -0
  27. package/lib/assets/udmProSpecial.jpg +0 -0
  28. package/lib/assets/udmProSpecial2.jpg +0 -0
  29. package/lib/components/Accordion/Accordion.js +4 -4
  30. package/lib/components/Avatar/Avatar.js +2 -2
  31. package/lib/components/Button/Button.js +12 -5
  32. package/lib/components/Button/Button.js.map +1 -1
  33. package/lib/components/Button/Button.mjs +8 -1
  34. package/lib/components/Button/Button.mjs.map +1 -1
  35. package/lib/components/Button/CartButton.d.ts +3 -1
  36. package/lib/components/Button/CartButton.js +11 -6
  37. package/lib/components/Button/CartButton.js.map +1 -1
  38. package/lib/components/Button/CartButton.mjs +8 -4
  39. package/lib/components/Button/CartButton.mjs.map +1 -1
  40. package/lib/components/ButtonGroup/ButtonGroup.d.ts +1 -1
  41. package/lib/components/ButtonGroup/ButtonGroup.js +16 -9
  42. package/lib/components/ButtonGroup/ButtonGroup.js.map +1 -1
  43. package/lib/components/ButtonGroup/ButtonGroup.mjs +16 -9
  44. package/lib/components/ButtonGroup/ButtonGroup.mjs.map +1 -1
  45. package/lib/components/ButtonGroup/ButtonGroup.styles.d.ts +10 -6
  46. package/lib/components/ButtonGroup/ButtonGroup.styles.js +60 -20
  47. package/lib/components/ButtonGroup/ButtonGroup.styles.js.map +1 -1
  48. package/lib/components/ButtonGroup/ButtonGroup.styles.mjs +60 -20
  49. package/lib/components/ButtonGroup/ButtonGroup.styles.mjs.map +1 -1
  50. package/lib/components/ButtonGroup/ButtonGroup.types.d.ts +5 -0
  51. package/lib/components/ButtonGroupBasic/index.stories.d.ts +6 -0
  52. package/lib/components/CardSection/Card/Card.js +6 -6
  53. package/lib/components/CardSection/CardSection.js +2 -2
  54. package/lib/components/CardSection/CardSection.styles.d.ts +1 -1
  55. package/lib/components/CartIcon/CartIcon.js +2 -2
  56. package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +4 -2
  57. package/lib/components/CategoryTabs/CategoryTabs.styles.js +8 -5
  58. package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
  59. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +7 -6
  60. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
  61. package/lib/components/Checkbox/Checkbox.js +4 -4
  62. package/lib/components/CloserLookSection/CloserLookSection.js +11 -11
  63. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.js +5 -5
  64. package/lib/components/Compare/Compare.styles.d.ts +5 -5
  65. package/lib/components/Container/Container.d.ts +1 -1
  66. package/lib/components/Container/Container.js +5 -4
  67. package/lib/components/Container/Container.js.map +1 -1
  68. package/lib/components/Container/Container.mjs +5 -4
  69. package/lib/components/Container/Container.mjs.map +1 -1
  70. package/lib/components/Container/index.stories.d.ts +5 -5
  71. package/lib/components/CustomImage/CustomImage.js +12 -12
  72. package/lib/components/Explore/Explore.js +5 -5
  73. package/lib/components/FeaturesSection_deprecated/Features/Features.js +2 -2
  74. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +22 -22
  75. package/lib/components/Footer/Footer.js +2 -2
  76. package/lib/components/Footer/hooks/useFooterContent.js +5 -5
  77. package/lib/components/Gallery/Gallery.context.js +17 -17
  78. package/lib/components/Gallery/Gallery.js +9 -9
  79. package/lib/components/Gallery/GalleryControls/GalleryControls.js +4 -4
  80. package/lib/components/Gallery/GalleryItem/GalleryItem.js +8 -8
  81. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.js +8 -8
  82. package/lib/components/GridGallery/GridGallery.js +8 -8
  83. package/lib/components/GridGallery/GridModal/GridModal.js +6 -6
  84. package/lib/components/Header/AccountFrame/AccountFrame.js +11 -11
  85. package/lib/components/Header/AccountFrame/Mobile/Mobile.js +4 -4
  86. package/lib/components/Header/AccountMenu/AccountMenu.js +30 -20
  87. package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
  88. package/lib/components/Header/AccountMenu/AccountMenu.mjs +13 -3
  89. package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
  90. package/lib/components/Header/CartModal/Empty/Empty.js +3 -3
  91. package/lib/components/Header/CartModalV2/CartModal.js +5 -5
  92. package/lib/components/Header/CartModalV2/Item/Item.js +4 -4
  93. package/lib/components/Header/CartModalV2/Item/Item.styles.d.ts +1 -1
  94. package/lib/components/Header/Header.js +40 -40
  95. package/lib/components/Header/Header.js.map +1 -1
  96. package/lib/components/Header/Header.mjs +6 -6
  97. package/lib/components/Header/Header.mjs.map +1 -1
  98. package/lib/components/Header/Header.stories.d.ts +111 -0
  99. package/lib/components/Header/Header.styles.d.ts +7 -12
  100. package/lib/components/Header/Header.styles.js +10 -32
  101. package/lib/components/Header/Header.styles.js.map +1 -1
  102. package/lib/components/Header/Header.styles.mjs +10 -31
  103. package/lib/components/Header/Header.styles.mjs.map +1 -1
  104. package/lib/components/Header/Header.types.d.ts +29 -5
  105. package/lib/components/Header/Header.types.js +2 -1
  106. package/lib/components/Header/Header.types.js.map +1 -1
  107. package/lib/components/Header/Header.types.mjs +2 -1
  108. package/lib/components/Header/Header.types.mjs.map +1 -1
  109. package/lib/components/Header/IsolatedHeader.d.ts +1 -0
  110. package/lib/components/Header/IsolatedHeader.js +50 -50
  111. package/lib/components/Header/IsolatedHeader.js.map +1 -1
  112. package/lib/components/Header/IsolatedHeader.mjs +47 -46
  113. package/lib/components/Header/IsolatedHeader.mjs.map +1 -1
  114. package/lib/components/Header/LanguageFrame/LanguageFrame.js +6 -6
  115. package/lib/components/Header/LogoIcon/LogoIcon.d.ts +7 -0
  116. package/lib/components/Header/LogoIcon/LogoIcon.js +46 -0
  117. package/lib/components/Header/LogoIcon/LogoIcon.js.map +1 -0
  118. package/lib/components/Header/LogoIcon/LogoIcon.mjs +36 -0
  119. package/lib/components/Header/LogoIcon/LogoIcon.mjs.map +1 -0
  120. package/lib/components/Header/LogoIcon/index.d.ts +1 -0
  121. package/lib/components/Header/LogoIcon/index.js +6 -0
  122. package/lib/components/Header/LogoIcon/index.js.map +1 -0
  123. package/lib/components/Header/LogoIcon/index.mjs +3 -0
  124. package/lib/components/Header/LogoIcon/index.mjs.map +1 -0
  125. package/lib/components/Header/MenuItem/MenuItem.styles.d.ts +1 -1
  126. package/lib/components/Header/MenuItem/MenuItem.styles.js +3 -3
  127. package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
  128. package/lib/components/Header/MenuItem/MenuItem.styles.mjs +3 -3
  129. package/lib/components/Header/MenuItem/MenuItem.styles.mjs.map +1 -1
  130. package/lib/components/Header/MenuItem/MenuItem.types.d.ts +1 -0
  131. package/lib/components/Header/Navigation/Carousel/Carousel.js +5 -5
  132. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.js +12 -12
  133. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
  134. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +6 -6
  135. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +1 -1
  136. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
  137. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +116 -109
  138. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
  139. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +111 -104
  140. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
  141. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +9 -0
  142. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +15 -1
  143. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
  144. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +13 -2
  145. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
  146. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +12 -6
  147. package/lib/components/Header/Overlay/Overlay.js +3 -3
  148. package/lib/components/Header/ProHeader/ProHeader.d.ts +9 -5
  149. package/lib/components/Header/ProHeader/ProHeader.js +270 -189
  150. package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
  151. package/lib/components/Header/ProHeader/ProHeader.mjs +251 -171
  152. package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
  153. package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +30 -25
  154. package/lib/components/Header/ProHeader/ProHeader.styles.js +119 -66
  155. package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
  156. package/lib/components/Header/ProHeader/ProHeader.styles.mjs +112 -65
  157. package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
  158. package/lib/components/Header/translations/ar.json.js +4 -1
  159. package/lib/components/Header/translations/ar.json.js.map +1 -1
  160. package/lib/components/Header/translations/ar.json.mjs +4 -2
  161. package/lib/components/Header/translations/ar.json.mjs.map +1 -1
  162. package/lib/components/Header/translations/de.json.js +4 -1
  163. package/lib/components/Header/translations/de.json.js.map +1 -1
  164. package/lib/components/Header/translations/de.json.mjs +4 -2
  165. package/lib/components/Header/translations/de.json.mjs.map +1 -1
  166. package/lib/components/Header/translations/el.json.js +4 -1
  167. package/lib/components/Header/translations/el.json.js.map +1 -1
  168. package/lib/components/Header/translations/el.json.mjs +4 -2
  169. package/lib/components/Header/translations/el.json.mjs.map +1 -1
  170. package/lib/components/Header/translations/en.json.js +7 -1
  171. package/lib/components/Header/translations/en.json.js.map +1 -1
  172. package/lib/components/Header/translations/en.json.mjs +6 -2
  173. package/lib/components/Header/translations/en.json.mjs.map +1 -1
  174. package/lib/components/Header/translations/es.json.js +4 -1
  175. package/lib/components/Header/translations/es.json.js.map +1 -1
  176. package/lib/components/Header/translations/es.json.mjs +4 -2
  177. package/lib/components/Header/translations/es.json.mjs.map +1 -1
  178. package/lib/components/Header/translations/fr.json.js +4 -1
  179. package/lib/components/Header/translations/fr.json.js.map +1 -1
  180. package/lib/components/Header/translations/fr.json.mjs +4 -2
  181. package/lib/components/Header/translations/fr.json.mjs.map +1 -1
  182. package/lib/components/Header/translations/it.json.js +4 -1
  183. package/lib/components/Header/translations/it.json.js.map +1 -1
  184. package/lib/components/Header/translations/it.json.mjs +4 -2
  185. package/lib/components/Header/translations/it.json.mjs.map +1 -1
  186. package/lib/components/Header/translations/ja.json.js +4 -1
  187. package/lib/components/Header/translations/ja.json.js.map +1 -1
  188. package/lib/components/Header/translations/ja.json.mjs +4 -2
  189. package/lib/components/Header/translations/ja.json.mjs.map +1 -1
  190. package/lib/components/Header/translations/pt-BR.json.js +4 -1
  191. package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
  192. package/lib/components/Header/translations/pt-BR.json.mjs +4 -2
  193. package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
  194. package/lib/components/Header/translations/zh-Hans.json.js +4 -1
  195. package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
  196. package/lib/components/Header/translations/zh-Hans.json.mjs +4 -2
  197. package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
  198. package/lib/components/Header/translations/zh-Hant-TW.json.js +4 -1
  199. package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
  200. package/lib/components/Header/translations/zh-Hant-TW.json.mjs +4 -2
  201. package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
  202. package/lib/components/Hero/Hero.js +5 -5
  203. package/lib/components/Hero/Hero.styles.d.ts +2 -2
  204. package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +1 -1
  205. package/lib/components/HeroVideo/HeroVideo.js +5 -5
  206. package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +2 -2
  207. package/lib/components/ImageCarousel/ImageCarousel.js +29 -33
  208. package/lib/components/ImageCarousel/ImageCarousel.js.map +1 -1
  209. package/lib/components/ImageCarousel/ImageCarousel.mjs +0 -4
  210. package/lib/components/ImageCarousel/ImageCarousel.mjs.map +1 -1
  211. package/lib/components/ImageSequence/ImageSequence.js +8 -8
  212. package/lib/components/LandingPage/Cards/Card/Card.js +4 -4
  213. package/lib/components/LandingPage/Cards/Cards.js +10 -10
  214. package/lib/components/LandingPage/LandingPage.js +2 -2
  215. package/lib/components/LandingPagePro/LandingPagePro.js +13 -13
  216. package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +1 -1
  217. package/lib/components/LandingPageSearch/LandingPageSearch.js +2 -2
  218. package/lib/components/LandingPageSearch/Modal/Modal.js +9 -9
  219. package/lib/components/LandingPageSidebar/LandingPageSidebar.js +12 -12
  220. package/lib/components/LayoutRenderer/LayoutRenderer.js +8 -8
  221. package/lib/components/LayoutRenderer/LayoutRenderer.styles.d.ts +1 -1
  222. package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +3 -3
  223. package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +3 -3
  224. package/lib/components/LoaderDots/LoaderDots.d.ts +1 -1
  225. package/lib/components/LoaderDots/LoaderDots.js +3 -1
  226. package/lib/components/LoaderDots/LoaderDots.js.map +1 -1
  227. package/lib/components/LoaderDots/LoaderDots.mjs +3 -1
  228. package/lib/components/LoaderDots/LoaderDots.mjs.map +1 -1
  229. package/lib/components/LoaderDots/LoaderDots.styles.d.ts +2 -1
  230. package/lib/components/LoaderDots/LoaderDots.styles.js +11 -1
  231. package/lib/components/LoaderDots/LoaderDots.styles.js.map +1 -1
  232. package/lib/components/LoaderDots/LoaderDots.styles.mjs +11 -1
  233. package/lib/components/LoaderDots/LoaderDots.styles.mjs.map +1 -1
  234. package/lib/components/LoaderDots/LoaderDots.types.d.ts +2 -0
  235. package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.js +7 -7
  236. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.js +18 -18
  237. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.d.ts +1 -1
  238. package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.js +2 -2
  239. package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.js +3 -3
  240. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.js +3 -3
  241. package/lib/components/MicrositeHero/MicrositeHero.js +18 -18
  242. package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.js +4 -4
  243. package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.js +9 -9
  244. package/lib/components/MicrositeProductGrid/MicrositeProductGrid.js +8 -8
  245. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlockWrap.js +2 -2
  246. package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +1 -1
  247. package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.js +3 -3
  248. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +13 -13
  249. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
  250. package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
  251. package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
  252. package/lib/components/Microsites/MicrositePageContext.js +2 -2
  253. package/lib/components/Microsites/MicrositeProductPage.js +3 -3
  254. package/lib/components/Microsites/context/MicrositeProductPageContext.js +3 -3
  255. package/lib/components/MobileModal/MobileModal.js +4 -4
  256. package/lib/components/Modal/Modal.js +3 -3
  257. package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js +3 -3
  258. package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.js +2 -2
  259. package/lib/components/ModelCompareV3/ModelCompareV3.js +14 -14
  260. package/lib/components/ModelCompareV3/ModelCompareV3.types.d.ts +0 -1
  261. package/lib/components/ModelCompareV3/ProductGroupsGrid.js +3 -3
  262. package/lib/components/ModelCompareV3/ScrollGroup/ScrollGroup.js +5 -5
  263. package/lib/components/ModelCompareV3/ScrollGroup/context.js +3 -3
  264. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupItem.js +8 -8
  265. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupSetScroll.js +2 -2
  266. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupTo.js +2 -2
  267. package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js +7 -7
  268. package/lib/components/ModelCompareV3/StickyGrid/StickyGridBody.js +2 -2
  269. package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js +5 -5
  270. package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.js +2 -2
  271. package/lib/components/ModelCompareV3/StickyGrid/context.js +3 -3
  272. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
  273. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
  274. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
  275. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
  276. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
  277. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
  278. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
  279. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
  280. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
  281. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
  282. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
  283. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
  284. package/lib/components/ModelCompareV3/data/CloudGateways.js +9 -9
  285. package/lib/components/ModelCompareV3/data/CloudGateways.mjs +6 -6
  286. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js +2 -3
  287. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js.map +1 -1
  288. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs +2 -3
  289. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs.map +1 -1
  290. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.js +3 -10
  291. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.js.map +1 -1
  292. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.mjs +3 -10
  293. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.mjs.map +1 -1
  294. package/lib/components/ModelCompareV3/data/Switching.js +2 -3
  295. package/lib/components/ModelCompareV3/data/Switching.js.map +1 -1
  296. package/lib/components/ModelCompareV3/data/Switching.mjs +2 -3
  297. package/lib/components/ModelCompareV3/data/Switching.mjs.map +1 -1
  298. package/lib/components/ModelCompareV3/data/products/aggregation.js +0 -7
  299. package/lib/components/ModelCompareV3/data/products/aggregation.js.map +1 -1
  300. package/lib/components/ModelCompareV3/data/products/aggregation.mjs +0 -7
  301. package/lib/components/ModelCompareV3/data/products/aggregation.mjs.map +1 -1
  302. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js +1 -1
  303. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js.map +1 -1
  304. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs +1 -1
  305. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs.map +1 -1
  306. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js +0 -7
  307. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js.map +1 -1
  308. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs +0 -7
  309. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs.map +1 -1
  310. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js +0 -7
  311. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js.map +1 -1
  312. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs +0 -7
  313. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs.map +1 -1
  314. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js +0 -7
  315. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js.map +1 -1
  316. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs +0 -7
  317. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs.map +1 -1
  318. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js +0 -7
  319. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js.map +1 -1
  320. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs +0 -7
  321. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs.map +1 -1
  322. package/lib/components/ModelCompareV3/data/products/missionCritical.js +0 -7
  323. package/lib/components/ModelCompareV3/data/products/missionCritical.js.map +1 -1
  324. package/lib/components/ModelCompareV3/data/products/missionCritical.mjs +0 -7
  325. package/lib/components/ModelCompareV3/data/products/missionCritical.mjs.map +1 -1
  326. package/lib/components/ModelCompareV3/data/products/professionalHd24.js +0 -7
  327. package/lib/components/ModelCompareV3/data/products/professionalHd24.js.map +1 -1
  328. package/lib/components/ModelCompareV3/data/products/professionalHd24.mjs +0 -7
  329. package/lib/components/ModelCompareV3/data/products/professionalHd24.mjs.map +1 -1
  330. package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.js +0 -7
  331. package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.js.map +1 -1
  332. package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.mjs +0 -7
  333. package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.mjs.map +1 -1
  334. package/lib/components/ModelCompareV3/data/products/professionalMax16.js +0 -7
  335. package/lib/components/ModelCompareV3/data/products/professionalMax16.js.map +1 -1
  336. package/lib/components/ModelCompareV3/data/products/professionalMax16.mjs +0 -7
  337. package/lib/components/ModelCompareV3/data/products/professionalMax16.mjs.map +1 -1
  338. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.js +0 -7
  339. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.js.map +1 -1
  340. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.mjs +0 -7
  341. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.mjs.map +1 -1
  342. package/lib/components/ModelCompareV3/data/products/professionalMax24.js +0 -7
  343. package/lib/components/ModelCompareV3/data/products/professionalMax24.js.map +1 -1
  344. package/lib/components/ModelCompareV3/data/products/professionalMax24.mjs +0 -7
  345. package/lib/components/ModelCompareV3/data/products/professionalMax24.mjs.map +1 -1
  346. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.js +0 -7
  347. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.js.map +1 -1
  348. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.mjs +0 -7
  349. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.mjs.map +1 -1
  350. package/lib/components/ModelCompareV3/data/products/professionalMax48.js +0 -7
  351. package/lib/components/ModelCompareV3/data/products/professionalMax48.js.map +1 -1
  352. package/lib/components/ModelCompareV3/data/products/professionalMax48.mjs +0 -7
  353. package/lib/components/ModelCompareV3/data/products/professionalMax48.mjs.map +1 -1
  354. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.js +0 -7
  355. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.js.map +1 -1
  356. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.mjs +0 -7
  357. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.mjs.map +1 -1
  358. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js +0 -8
  359. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js.map +1 -1
  360. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs +0 -8
  361. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs.map +1 -1
  362. package/lib/components/ModelCompareV3/data/products/switchesProfessional.js +0 -7
  363. package/lib/components/ModelCompareV3/data/products/switchesProfessional.js.map +1 -1
  364. package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs +0 -7
  365. package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs.map +1 -1
  366. package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.js +0 -7
  367. package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.js.map +1 -1
  368. package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.mjs +0 -7
  369. package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.mjs.map +1 -1
  370. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js +1 -10
  371. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js.map +1 -1
  372. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs +1 -10
  373. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs.map +1 -1
  374. package/lib/components/ModelCompareV3/data/products/switchesStandard.js +0 -7
  375. package/lib/components/ModelCompareV3/data/products/switchesStandard.js.map +1 -1
  376. package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs +0 -7
  377. package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs.map +1 -1
  378. package/lib/components/ModelCompareV3/data/products/udmPro.js +1 -1
  379. package/lib/components/ModelCompareV3/data/products/udmPro.mjs +1 -1
  380. package/lib/components/ModelCompareV3/data/products/udmProMax.js +1 -1
  381. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +1 -1
  382. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +1 -1
  383. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +1 -1
  384. package/lib/components/ModelCompareV3/data/properties/index.d.ts +0 -1
  385. package/lib/components/ModelCompareV3/data/properties/index.js +0 -2
  386. package/lib/components/ModelCompareV3/data/properties/index.js.map +1 -1
  387. package/lib/components/ModelCompareV3/data/properties/index.mjs +0 -1
  388. package/lib/components/ModelCompareV3/data/properties/index.mjs.map +1 -1
  389. package/lib/components/ModelCompareV3/translations/ar.json.js +13 -12
  390. package/lib/components/ModelCompareV3/translations/ar.json.js.map +1 -1
  391. package/lib/components/ModelCompareV3/translations/ar.json.mjs +13 -12
  392. package/lib/components/ModelCompareV3/translations/ar.json.mjs.map +1 -1
  393. package/lib/components/ModelCompareV3/translations/de.json.js +5 -4
  394. package/lib/components/ModelCompareV3/translations/de.json.js.map +1 -1
  395. package/lib/components/ModelCompareV3/translations/de.json.mjs +5 -4
  396. package/lib/components/ModelCompareV3/translations/de.json.mjs.map +1 -1
  397. package/lib/components/ModelCompareV3/translations/el.json.js +5 -4
  398. package/lib/components/ModelCompareV3/translations/el.json.js.map +1 -1
  399. package/lib/components/ModelCompareV3/translations/el.json.mjs +5 -4
  400. package/lib/components/ModelCompareV3/translations/el.json.mjs.map +1 -1
  401. package/lib/components/ModelCompareV3/translations/en.json.js +2 -4
  402. package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
  403. package/lib/components/ModelCompareV3/translations/en.json.mjs +2 -4
  404. package/lib/components/ModelCompareV3/translations/en.json.mjs.map +1 -1
  405. package/lib/components/ModelCompareV3/translations/es.json.js +5 -4
  406. package/lib/components/ModelCompareV3/translations/es.json.js.map +1 -1
  407. package/lib/components/ModelCompareV3/translations/es.json.mjs +5 -4
  408. package/lib/components/ModelCompareV3/translations/es.json.mjs.map +1 -1
  409. package/lib/components/ModelCompareV3/translations/fr.json.js +4 -3
  410. package/lib/components/ModelCompareV3/translations/fr.json.js.map +1 -1
  411. package/lib/components/ModelCompareV3/translations/fr.json.mjs +4 -3
  412. package/lib/components/ModelCompareV3/translations/fr.json.mjs.map +1 -1
  413. package/lib/components/ModelCompareV3/translations/it.json.js +4 -3
  414. package/lib/components/ModelCompareV3/translations/it.json.js.map +1 -1
  415. package/lib/components/ModelCompareV3/translations/it.json.mjs +4 -3
  416. package/lib/components/ModelCompareV3/translations/it.json.mjs.map +1 -1
  417. package/lib/components/ModelCompareV3/translations/ja.json.js +10 -9
  418. package/lib/components/ModelCompareV3/translations/ja.json.js.map +1 -1
  419. package/lib/components/ModelCompareV3/translations/ja.json.mjs +10 -9
  420. package/lib/components/ModelCompareV3/translations/ja.json.mjs.map +1 -1
  421. package/lib/components/ModelCompareV3/translations/pt-BR.json.js +4 -3
  422. package/lib/components/ModelCompareV3/translations/pt-BR.json.js.map +1 -1
  423. package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs +4 -3
  424. package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs.map +1 -1
  425. package/lib/components/ModelCompareV3/translations/useModelCompareTranslation.d.ts +2 -2
  426. package/lib/components/ModelCompareV3/translations/zh-Hans.json.js +8 -7
  427. package/lib/components/ModelCompareV3/translations/zh-Hans.json.js.map +1 -1
  428. package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs +8 -7
  429. package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs.map +1 -1
  430. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js +11 -10
  431. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js.map +1 -1
  432. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs +11 -10
  433. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs.map +1 -1
  434. package/lib/components/Pagination/Pagination.js +3 -3
  435. package/lib/components/PriceRangeSlider/PriceRangeSlider.js +16 -16
  436. package/lib/components/ProductCard/ProductCard.js +7 -7
  437. package/lib/components/ProductCardPopup/ProductCardPopup.js +8 -8
  438. package/lib/components/ProductCompare/ProductCompare.js +7 -7
  439. package/lib/components/ProductDetails/ProductDetails.js +5 -5
  440. package/lib/components/ProductGrid/ProductGrid.js +10 -10
  441. package/lib/components/ProductKeyFeatures/ProductKeyFeatures.js +3 -3
  442. package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +1 -1
  443. package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +1 -1
  444. package/lib/components/ProductSectionTabs/ProductSectionTabs.js +2 -2
  445. package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +2 -2
  446. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.d.ts +2 -0
  447. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js +81 -0
  448. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js.map +1 -0
  449. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs +73 -0
  450. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs.map +1 -0
  451. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.stories.d.ts +5 -0
  452. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.d.ts +11 -0
  453. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +80 -0
  454. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +1 -0
  455. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +66 -0
  456. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs.map +1 -0
  457. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.types.d.ts +12 -0
  458. package/lib/components/ProductTechSpecsV2/index.d.ts +1 -0
  459. package/lib/components/ProductTechSpecsV2/index.js +6 -0
  460. package/lib/components/ProductTechSpecsV2/index.js.map +1 -0
  461. package/lib/components/ProductTechSpecsV2/index.mjs +3 -0
  462. package/lib/components/ProductTechSpecsV2/index.mjs.map +1 -0
  463. package/lib/components/ProductWizard/Options/Options.js +3 -3
  464. package/lib/components/ProductWizard/ProductWizard.js +2 -2
  465. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js +5 -5
  466. package/lib/components/ProgressCircle/ProgressCircle.js +4 -4
  467. package/lib/components/QuantityControls/QuantityControls.js +6 -6
  468. package/lib/components/QuantityControls/QuantityControls.js.map +1 -1
  469. package/lib/components/QuantityControls/QuantityControls.mjs +2 -2
  470. package/lib/components/QuantityControls/QuantityControls.mjs.map +1 -1
  471. package/lib/components/QuantityControls/QuantityControls.types.d.ts +1 -1
  472. package/lib/components/QuantityInput/QuantityInput.js +6 -1
  473. package/lib/components/QuantityInput/QuantityInput.js.map +1 -1
  474. package/lib/components/QuantityInput/QuantityInput.mjs +6 -1
  475. package/lib/components/QuantityInput/QuantityInput.mjs.map +1 -1
  476. package/lib/components/RelatedProducts/RelatedProducts.js +5 -5
  477. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js +36 -36
  478. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +12 -12
  479. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +5 -5
  480. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CheckboxSection.js +2 -2
  481. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +4 -4
  482. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/SliderSection.js +3 -3
  483. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +7 -7
  484. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +6 -6
  485. package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.js +9 -9
  486. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.js +10 -10
  487. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +15 -15
  488. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.js +2 -2
  489. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +6 -6
  490. package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.js +5 -5
  491. package/lib/components/ScrollWrapper/ScrollWrapper.d.ts +1 -1
  492. package/lib/components/ScrollWrapper/ScrollWrapper.js +33 -25
  493. package/lib/components/ScrollWrapper/ScrollWrapper.js.map +1 -1
  494. package/lib/components/ScrollWrapper/ScrollWrapper.mjs +16 -8
  495. package/lib/components/ScrollWrapper/ScrollWrapper.mjs.map +1 -1
  496. package/lib/components/ScrollWrapper/ScrollWrapper.types.d.ts +2 -0
  497. package/lib/components/Search/Input/Input.d.ts +1 -1
  498. package/lib/components/Search/Input/Input.js +8 -8
  499. package/lib/components/Search/Input/Input.js.map +1 -1
  500. package/lib/components/Search/Input/Input.mjs +4 -4
  501. package/lib/components/Search/Input/Input.mjs.map +1 -1
  502. package/lib/components/Search/Input/Input.styles.js +0 -1
  503. package/lib/components/Search/Input/Input.styles.js.map +1 -1
  504. package/lib/components/Search/Input/Input.styles.mjs +0 -1
  505. package/lib/components/Search/Input/Input.styles.mjs.map +1 -1
  506. package/lib/components/Search/Input/Input.types.d.ts +3 -2
  507. package/lib/components/Search/Modal/Modal.js +3 -3
  508. package/lib/components/StorageSliders/Slider/Slider.js +3 -3
  509. package/lib/components/StorageSliders/StorageSliders.context.js +20 -20
  510. package/lib/components/StorageSliders/StorageSliders.js +4 -4
  511. package/lib/components/Tooltip/Tooltip.js +5 -5
  512. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js +7 -7
  513. package/lib/components/VariantSelector/Variant/Variant.js +40 -40
  514. package/lib/components/VariantSelector/VariantSelector.js +16 -16
  515. package/lib/components/VideoPlayerNew/VideoPlayer.js +20 -20
  516. package/lib/components/VideoPlayerNew/VideoPlayer.mjs +1 -1
  517. package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
  518. package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
  519. package/lib/components/index.d.ts +1 -0
  520. package/lib/components/index.js +2 -0
  521. package/lib/components/index.js.map +1 -1
  522. package/lib/components/index.mjs +2 -0
  523. package/lib/components/index.mjs.map +1 -1
  524. package/lib/constants/proStoreCategories/mapping/filters.d.ts +17 -0
  525. package/lib/constants/proStoreCategories/mapping/filters.js +17 -0
  526. package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
  527. package/lib/constants/proStoreCategories/mapping/filters.mjs +17 -0
  528. package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
  529. package/lib/constants/proStoreCategories/mapping/index.d.ts +2 -0
  530. package/lib/constants/proStoreCategories/mapping/index.js +21 -7
  531. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  532. package/lib/constants/proStoreCategories/mapping/index.mjs +21 -7
  533. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  534. package/lib/constants/proStoreCategories/mapping/mapping.d.ts +5 -0
  535. package/lib/constants/proStoreCategories/mapping/unifi.d.ts +2 -0
  536. package/lib/constants/proStoreCategories/mapping/unifi.js +2 -0
  537. package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
  538. package/lib/constants/proStoreCategories/mapping/unifi.mjs +2 -0
  539. package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
  540. package/lib/constants/proStoreCategories/translations/ar.json.js +5 -4
  541. package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
  542. package/lib/constants/proStoreCategories/translations/ar.json.mjs +5 -4
  543. package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
  544. package/lib/constants/proStoreCategories/translations/de.json.js +5 -4
  545. package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
  546. package/lib/constants/proStoreCategories/translations/de.json.mjs +5 -4
  547. package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
  548. package/lib/constants/proStoreCategories/translations/el.json.js +6 -5
  549. package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
  550. package/lib/constants/proStoreCategories/translations/el.json.mjs +6 -5
  551. package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
  552. package/lib/constants/proStoreCategories/translations/en.json.js +5 -1
  553. package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
  554. package/lib/constants/proStoreCategories/translations/en.json.mjs +5 -2
  555. package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
  556. package/lib/constants/proStoreCategories/translations/es.json.js +5 -4
  557. package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
  558. package/lib/constants/proStoreCategories/translations/es.json.mjs +5 -4
  559. package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
  560. package/lib/constants/proStoreCategories/translations/fr.json.js +5 -1
  561. package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
  562. package/lib/constants/proStoreCategories/translations/fr.json.mjs +5 -2
  563. package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
  564. package/lib/constants/proStoreCategories/translations/it.json.js +5 -4
  565. package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
  566. package/lib/constants/proStoreCategories/translations/it.json.mjs +5 -4
  567. package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
  568. package/lib/constants/proStoreCategories/translations/ja.json.js +5 -4
  569. package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
  570. package/lib/constants/proStoreCategories/translations/ja.json.mjs +5 -4
  571. package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
  572. package/lib/constants/proStoreCategories/translations/pt-BR.json.js +5 -4
  573. package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
  574. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +5 -4
  575. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
  576. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +5 -1
  577. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
  578. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +5 -2
  579. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
  580. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +5 -1
  581. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
  582. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +5 -2
  583. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
  584. package/lib/constants/proStoreFilters/mapping.d.ts +43 -7
  585. package/lib/constants/proStoreFilters/mapping.js +129 -15
  586. package/lib/constants/proStoreFilters/mapping.js.map +1 -1
  587. package/lib/constants/proStoreFilters/mapping.mjs +129 -15
  588. package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
  589. package/lib/constants/theme.js +4 -0
  590. package/lib/constants/theme.js.map +1 -1
  591. package/lib/constants/theme.mjs +4 -0
  592. package/lib/constants/theme.mjs.map +1 -1
  593. package/lib/contexts/MenuContext/context.js +34 -34
  594. package/lib/contexts/MenuContext/context.js.map +1 -1
  595. package/lib/contexts/MenuContext/context.mjs +1 -1
  596. package/lib/contexts/MenuContext/context.mjs.map +1 -1
  597. package/lib/contexts/MenuContext/mapping.js.map +1 -1
  598. package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
  599. package/lib/contexts/MenuContext/presets.d.ts +1 -1
  600. package/lib/contexts/MenuContext/presets.js +2 -4
  601. package/lib/contexts/MenuContext/presets.js.map +1 -1
  602. package/lib/contexts/MenuContext/presets.mjs +2 -4
  603. package/lib/contexts/MenuContext/presets.mjs.map +1 -1
  604. package/lib/helpers/index.d.ts +0 -1
  605. package/lib/helpers/index.js +1 -11
  606. package/lib/helpers/index.js.map +1 -1
  607. package/lib/helpers/index.mjs +1 -2
  608. package/lib/helpers/index.mjs.map +1 -1
  609. package/lib/helpers/proStoreCategories.js +2 -2
  610. package/lib/helpers/ux.d.ts +8 -0
  611. package/lib/helpers/ux.js +15 -0
  612. package/lib/helpers/ux.js.map +1 -1
  613. package/lib/helpers/ux.mjs +15 -1
  614. package/lib/helpers/ux.mjs.map +1 -1
  615. package/lib/hooks/useHasTouch.js +3 -3
  616. package/lib/hooks/useHddRetentionCalculator.js +5 -5
  617. package/lib/hooks/useHorizontalScroll.js +2 -2
  618. package/lib/hooks/useLockBodyScrollCustom.js +3 -3
  619. package/lib/hooks/useScrollToY.js +2 -2
  620. package/lib/hooks/useTestMediaElementVolumeSetter.js +3 -3
  621. package/lib/hooks/useTranslation.js +6 -6
  622. package/lib/types/generated.d.ts +1 -1
  623. package/lib/types/generated.js.map +1 -1
  624. package/lib/types/generated.mjs.map +1 -1
  625. package/lib/types/index.d.ts +1 -1
  626. package/lib/types/index.js +1 -2
  627. package/lib/types/index.js.map +1 -1
  628. package/lib/types/index.mjs +1 -1
  629. package/lib/types/object.d.ts +20 -0
  630. package/lib/types/string.d.ts +9 -0
  631. package/lib/types/string.js +3 -0
  632. package/lib/types/string.js.map +1 -0
  633. package/lib/types/string.mjs +2 -0
  634. package/lib/types/string.mjs.map +1 -0
  635. package/lib/utils/address.d.ts +62 -278
  636. package/lib/utils/address.js +8 -11
  637. package/lib/utils/address.js.map +1 -1
  638. package/lib/utils/address.mjs +8 -11
  639. package/lib/utils/address.mjs.map +1 -1
  640. package/lib/utils/array.d.ts +0 -4
  641. package/lib/utils/array.js +0 -10
  642. package/lib/utils/array.js.map +1 -1
  643. package/lib/utils/array.mjs +1 -10
  644. package/lib/utils/array.mjs.map +1 -1
  645. package/lib/utils/nextjs/ssr/registry.js +2 -2
  646. package/package.json +42 -42
  647. package/lib/assets/crestron.svg +0 -3
  648. package/lib/assets/icons/menu/icon-globe.svg.js.map +0 -1
  649. package/lib/assets/icons/menu/icon-globe.svg.mjs +0 -3
  650. package/lib/assets/icons/menu/icon-globe.svg.mjs.map +0 -1
  651. package/lib/components/ModelCompareV3/assets/crestron.svg.js.map +0 -1
  652. package/lib/components/ModelCompareV3/assets/crestron.svg.mjs +0 -3
  653. package/lib/components/ModelCompareV3/assets/crestron.svg.mjs.map +0 -1
  654. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.d.ts +0 -2
  655. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.js +0 -18
  656. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.js.map +0 -1
  657. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.mjs +0 -10
  658. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.mjs.map +0 -1
  659. package/lib/helpers/product.d.ts +0 -87
  660. package/lib/helpers/product.js +0 -346
  661. package/lib/helpers/product.js.map +0 -1
  662. package/lib/helpers/product.mjs +0 -335
  663. package/lib/helpers/product.mjs.map +0 -1
  664. package/lib/helpers/product.test.d.ts +0 -1
  665. package/lib/types/product.d.ts +0 -87
  666. package/lib/types/product.js +0 -14
  667. package/lib/types/product.js.map +0 -1
  668. package/lib/types/product.mjs +0 -13
  669. package/lib/types/product.mjs.map +0 -1
  670. package/lib/utils/productSort.d.ts +0 -41
  671. package/lib/utils/productSort.js +0 -67
  672. package/lib/utils/productSort.js.map +0 -1
  673. package/lib/utils/productSort.mjs +0 -60
  674. package/lib/utils/productSort.mjs.map +0 -1
  675. package/lib/utils/validations/lastNameSuperRefinement.d.ts +0 -11
  676. package/lib/utils/validations/lastNameSuperRefinement.js +0 -25
  677. package/lib/utils/validations/lastNameSuperRefinement.js.map +0 -1
  678. package/lib/utils/validations/lastNameSuperRefinement.mjs +0 -21
  679. package/lib/utils/validations/lastNameSuperRefinement.mjs.map +0 -1
@@ -1,67 +0,0 @@
1
- 'use strict';
2
-
3
- require('../types/index.js');
4
- var array = require('./array.js');
5
- var product$1 = require('./product.js');
6
- var product = require('../types/product.js');
7
- "use strict";
8
- var Sort = /* @__PURE__ */(Sort2 => {
9
- Sort2["HighestPrice"] = "highest-price";
10
- Sort2["LowestPrice"] = "lowest-price";
11
- Sort2["Availability"] = "availability";
12
- return Sort2;
13
- })(Sort || {});
14
- var SortOrder = /* @__PURE__ */(SortOrder2 => {
15
- SortOrder2["Asc"] = "Asc";
16
- SortOrder2["Desc"] = "Desc";
17
- return SortOrder2;
18
- })(SortOrder || {});
19
- const sortedStatusesByPriorityAsc = [product.DisplayProductStatus.Unavailable, product.DisplayProductStatus.ComingSoon, product.DisplayProductStatus.SoldOut, product.DisplayProductStatus.RegionNotAvailable, product.DisplayProductStatus.Backorder, product.DisplayProductStatus.Available];
20
- const getProductStatusPriority = product$1 => {
21
- let sortStatus = product$1.status;
22
- if (product$1.variants.some(variant => variant.availableInOtherStores.length) || product$1.linkedProducts && product$1.linkedProducts.some(linkedProduct => linkedProduct.status === product.DisplayProductStatus.Available)) {
23
- sortStatus = product.DisplayProductStatus.Available;
24
- }
25
- return sortedStatusesByPriorityAsc.indexOf(sortStatus);
26
- };
27
- const sortByAvailabilityDesc = (current, next) => {
28
- return array.normalizeSortResult(getProductStatusPriority(next) - getProductStatusPriority(current));
29
- };
30
- const sortByPrice = order => (current, next) => {
31
- const currentProductPrice = current.minDisplayPrice.amount;
32
- const nextProductPrice = next.minDisplayPrice.amount;
33
- if (order === "Desc" /* Desc */) {
34
- return nextProductPrice - currentProductPrice;
35
- } else {
36
- return currentProductPrice - nextProductPrice;
37
- }
38
- };
39
- const sortProducts = (currentSort, storeId, sortByWeightTag = true) => (current, next) => {
40
- switch (currentSort) {
41
- // Sort by price
42
- case "highest-price" /* HighestPrice */:
43
- case "lowest-price" /* LowestPrice */:
44
- {
45
- return sortByPrice(currentSort === "highest-price" /* HighestPrice */ ? "Desc" /* Desc */ : "Asc" /* Asc */)(current, next);
46
- }
47
- case "availability" /* Availability */:
48
- {
49
- return sortByAvailabilityDesc(current, next);
50
- }
51
- default:
52
- {
53
- const sorts = [sortByAvailabilityDesc];
54
- if (sortByWeightTag) {
55
- sorts.push(product$1.sortByTagWeight(product$1.SortSiteId.Store, storeId));
56
- }
57
- return array.combineSorts(sorts)(current, next);
58
- }
59
- }
60
- };
61
- exports.Sort = Sort;
62
- exports.SortOrder = SortOrder;
63
- exports.sortByAvailabilityDesc = sortByAvailabilityDesc;
64
- exports.sortByPrice = sortByPrice;
65
- exports.sortProducts = sortProducts;
66
- exports.sortedStatusesByPriorityAsc = sortedStatusesByPriorityAsc;
67
- //# sourceMappingURL=productSort.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"productSort.js","sources":["../../src/utils/productSort.ts"],"sourcesContent":["import type {\n Nullish,\n StorefrontProduct,\n StoreId,\n UnionToAllPossibleTuples,\n} from \"../types\";\nimport { DisplayProductStatus } from \"../types\";\nimport { combineSorts, normalizeSortResult } from \"./array\";\nimport { sortByTagWeight, SortSiteId } from \"./product\";\n\n/**\n * Narrow MinimalProProductFragment type even more to the union of fields that are needed to sort product\n */\ntype ProductMinFieldsForSorting = Pick<\n StorefrontProduct,\n \"status\" | \"tags\" | \"minDisplayPrice\"\n> & {\n variants: {\n // We only need bare minimum from array to compare array length\n // FIXME: move it to backend as a boolean field so we don't need to fetch entire array to reduce it to a boolean ourselves\n availableInOtherStores: Array<{ __typename: string }>;\n }[];\n linkedProducts?: {\n status: StorefrontProduct[\"status\"];\n }[];\n};\n\nexport enum Sort {\n HighestPrice = \"highest-price\",\n LowestPrice = \"lowest-price\",\n Availability = \"availability\",\n}\n\nexport enum SortOrder {\n Asc = \"Asc\",\n Desc = \"Desc\",\n}\n\n/**\n * Variants statuses sorted in ascending order from least preferable to most, so if some new status comes in, then the\n * lookup for `.indexOf()` would return `-1`, thus being \"worse\" then DisplayProductStatus.SoldOut and moved to the very\n * back of list\n */\nexport const sortedStatusesByPriorityAsc: UnionToAllPossibleTuples<DisplayProductStatus> =\n [\n DisplayProductStatus.Unavailable,\n DisplayProductStatus.ComingSoon,\n DisplayProductStatus.SoldOut,\n DisplayProductStatus.RegionNotAvailable,\n DisplayProductStatus.Backorder,\n DisplayProductStatus.Available,\n ];\n/**\n * Due to currently variant status being nullable for historical reasons we need to have a fallback state\n * TODO: remove once display status is StorefrontProductVariant.status is non-nullable\n */\nconst getProductStatusPriority = (\n product: ProductMinFieldsForSorting,\n): number => {\n let sortStatus = product.status;\n\n // Virtually set sort status as available if it has alternative stores\n if (\n product.variants.some((variant) => variant.availableInOtherStores.length) ||\n (product.linkedProducts &&\n product.linkedProducts.some(\n (linkedProduct) =>\n linkedProduct.status === DisplayProductStatus.Available,\n ))\n ) {\n sortStatus = DisplayProductStatus.Available;\n }\n\n return sortedStatusesByPriorityAsc.indexOf(sortStatus);\n};\n\nexport const sortByAvailabilityDesc = (\n current: ProductMinFieldsForSorting,\n next: ProductMinFieldsForSorting,\n): number => {\n return normalizeSortResult(\n getProductStatusPriority(next) - getProductStatusPriority(current),\n );\n};\n\nexport const sortByPrice =\n (order: SortOrder) =>\n (\n current: ProductMinFieldsForSorting,\n next: ProductMinFieldsForSorting,\n ): number => {\n const currentProductPrice = current.minDisplayPrice.amount;\n\n const nextProductPrice = next.minDisplayPrice.amount;\n\n if (order === SortOrder.Desc) {\n return nextProductPrice - currentProductPrice;\n } else {\n return currentProductPrice - nextProductPrice;\n }\n };\n\n/**\n * Sorts products based on the given sort type.\n * @param currentSort - sort type\n * @param sortByWeightTag - if false, then sort by weight tag is\n * ignored (e.g. for `Related Add-ons` where\n * we don't want to sort by weight tag)\n */\nexport const sortProducts =\n (\n currentSort: Nullish<string | Sort>,\n storeId?: StoreId,\n sortByWeightTag = true,\n ) =>\n (current: ProductMinFieldsForSorting, next: ProductMinFieldsForSorting) => {\n switch (currentSort) {\n // Sort by price\n case Sort.HighestPrice:\n case Sort.LowestPrice: {\n return sortByPrice(\n currentSort === Sort.HighestPrice ? SortOrder.Desc : SortOrder.Asc,\n )(current, next);\n }\n\n case Sort.Availability: {\n return sortByAvailabilityDesc(current, next);\n }\n\n default: {\n const sorts = [sortByAvailabilityDesc];\n\n // Add sorting by tag weight\n if (sortByWeightTag) {\n sorts.push(sortByTagWeight(SortSiteId.Store, storeId));\n }\n\n // Do additional sorting by tag weight only after initial sorting resulting in \"same group\"\n return combineSorts(sorts)(current, next);\n }\n }\n };\n"],"names":["Sort","SortOrder","sortedStatusesByPriorityAsc","DisplayProductStatus","Unavailable","ComingSoon","SoldOut","RegionNotAvailable","Backorder","Available","getProductStatusPriority","product","sortStatus","status","variants","some","variant","availableInOtherStores","length","linkedProducts","linkedProduct","indexOf","sortByAvailabilityDesc","current","next","normalizeSortResult","sortByPrice","order","currentProductPrice","minDisplayPrice","amount","nextProductPrice","sortProducts","currentSort","storeId","sortByWeightTag","sorts","push","sortByTagWeight","SortSiteId","Store","combineSorts"],"mappings":";;;;;;;AA2BY,IAAAA,IAAA,GAAA,gBAAAA,KAAL,IAAA;EACLA,MAAA,cAAe,CAAA,GAAA,eAAA;EACfA,MAAA,aAAc,CAAA,GAAA,cAAA;EACdA,MAAA,cAAe,CAAA,GAAA,cAAA;EAHLA,OAAAA,KAAAA;AAAA,CAAA,EAAAA,IAAA,IAAA,CAAA,CAAA,CAAA;AAMA,IAAAC,SAAA,GAAA,gBAAAA,UAAL,IAAA;EACLA,WAAA,KAAM,CAAA,GAAA,KAAA;EACNA,WAAA,MAAO,CAAA,GAAA,MAAA;EAFGA,OAAAA,UAAAA;AAAA,CAAA,EAAAA,SAAA,IAAA,CAAA,CAAA,CAAA;AAUL,MAAMC,2BACX,GAAA,CACEC,OAAAA,CAAAA,oBAAqB,CAAAC,WAAA,EACrBD,OAAAA,CAAAA,oBAAqB,CAAAE,UAAA,EACrBF,OAAAA,CAAAA,oBAAqB,CAAAG,OAAA,EACrBH,OAAAA,CAAAA,oBAAqB,CAAAI,kBAAA,EACrBJ,OAAAA,CAAAA,oBAAqB,CAAAK,SAAA,EACrBL,OAAAA,CAAAA,oBAAqB,CAAAM,SAAA,CACvB;AAKF,MAAMC,wBAAA,GACJC,SACW,IAAA;EACX,IAAIC,aAAaD,SAAQ,CAAAE,MAAA;EAGzB,IACEF,SAAQ,CAAAG,QAAA,CAASC,IAAK,CAACC,OAAY,IAAAA,OAAA,CAAQC,sBAAuB,CAAAC,MAAM,CACvE,IAAAP,SAAA,CAAQQ,cACP,IAAAR,SAAA,CAAQQ,cAAe,CAAAJ,IAAA,CACpBK,aAAA,IACCA,aAAc,CAAAP,MAAA,KAAWV,OAAqB,CAAAA,oBAAA,CAAAM,SAAA,CAEpD,EAAA;IACAG,UAAA,GAAaT,OAAqB,CAAAA,oBAAA,CAAAM,SAAA;EACpC;EAEO,OAAAP,2BAAA,CAA4BmB,QAAQT,UAAU,CAAA;AACvD,CAAA;AAEa,MAAAU,sBAAA,GAAyBA,CACpCC,OAAA,EACAC,IACW,KAAA;EACJ,OAAAC,KAAA,CAAAA,mBAAA,CACLf,wBAAyB,CAAAc,IAAI,CAAI,GAAAd,wBAAA,CAAyBa,OAAO,CAAA,CACnE;AACF,CAAA;AAEO,MAAMG,WACX,GAACC,KACD,IAAA,CACEJ,SACAC,IACW,KAAA;EACL,MAAAI,mBAAA,GAAsBL,QAAQM,eAAgB,CAAAC,MAAA;EAE9C,MAAAC,gBAAA,GAAmBP,KAAKK,eAAgB,CAAAC,MAAA;EAE9C,IAAIH,UAAU,MAAgB,CAAA,YAAA;IAC5B,OAAOI,gBAAmB,GAAAH,mBAAA;EAAA,CACrB,MAAA;IACL,OAAOA,mBAAsB,GAAAG,gBAAA;EAC/B;AACF,CAAA;AASW,MAAAC,YAAA,GACXA,CACEC,WACA,EAAAC,OAAA,EACAC,kBAAkB,IAEpB,KAAA,CAACZ,SAAqCC,IAAqC,KAAA;EACzE,QAAQS,WAAa;IAAA;IAEnB,KAAK,eAAA,CAAA;IACL,KAAK,cAAkB,CAAA;MAAA;QACd,OAAAP,WAAA,CACLO,WAAA,KAAgB,gBAAoB,qBAAA,MAAiB,cAAA,KAAA,CAAA,SAAA,CACvD,CAAEV,SAASC,IAAI,CAAA;MACjB;IAEA,KAAK,cAAmB,CAAA;MAAA;QACf,OAAAF,sBAAA,CAAuBC,SAASC,IAAI,CAAA;MAC7C;IAEA;MAAS;QACD,MAAAY,KAAA,GAAQ,CAACd,sBAAsB,CAAA;QAGrC,IAAIa,eAAiB,EAAA;UACnBC,KAAA,CAAMC,IAAK,CAAAC,SAAA,CAAAA,eAAA,CAAgBC,SAAW,CAAAA,UAAA,CAAAC,KAAA,EAAON,OAAO,CAAC,CAAA;QACvD;QAGA,OAAOO,KAAa,CAAAA,YAAA,CAAAL,KAAK,CAAE,CAAAb,OAAA,EAASC,IAAI,CAAA;MAC1C;EACF;AACF,CAAA;;;;;;"}
@@ -1,60 +0,0 @@
1
- import '../types/index.mjs';
2
- import { normalizeSortResult, combineSorts } from './array.mjs';
3
- import { sortByTagWeight, SortSiteId } from './product.mjs';
4
- import { DisplayProductStatus } from '../types/product.mjs';
5
- "use strict";
6
- var Sort = /* @__PURE__ */(Sort2 => {
7
- Sort2["HighestPrice"] = "highest-price";
8
- Sort2["LowestPrice"] = "lowest-price";
9
- Sort2["Availability"] = "availability";
10
- return Sort2;
11
- })(Sort || {});
12
- var SortOrder = /* @__PURE__ */(SortOrder2 => {
13
- SortOrder2["Asc"] = "Asc";
14
- SortOrder2["Desc"] = "Desc";
15
- return SortOrder2;
16
- })(SortOrder || {});
17
- const sortedStatusesByPriorityAsc = [DisplayProductStatus.Unavailable, DisplayProductStatus.ComingSoon, DisplayProductStatus.SoldOut, DisplayProductStatus.RegionNotAvailable, DisplayProductStatus.Backorder, DisplayProductStatus.Available];
18
- const getProductStatusPriority = product => {
19
- let sortStatus = product.status;
20
- if (product.variants.some(variant => variant.availableInOtherStores.length) || product.linkedProducts && product.linkedProducts.some(linkedProduct => linkedProduct.status === DisplayProductStatus.Available)) {
21
- sortStatus = DisplayProductStatus.Available;
22
- }
23
- return sortedStatusesByPriorityAsc.indexOf(sortStatus);
24
- };
25
- const sortByAvailabilityDesc = (current, next) => {
26
- return normalizeSortResult(getProductStatusPriority(next) - getProductStatusPriority(current));
27
- };
28
- const sortByPrice = order => (current, next) => {
29
- const currentProductPrice = current.minDisplayPrice.amount;
30
- const nextProductPrice = next.minDisplayPrice.amount;
31
- if (order === "Desc" /* Desc */) {
32
- return nextProductPrice - currentProductPrice;
33
- } else {
34
- return currentProductPrice - nextProductPrice;
35
- }
36
- };
37
- const sortProducts = (currentSort, storeId, sortByWeightTag = true) => (current, next) => {
38
- switch (currentSort) {
39
- // Sort by price
40
- case "highest-price" /* HighestPrice */:
41
- case "lowest-price" /* LowestPrice */:
42
- {
43
- return sortByPrice(currentSort === "highest-price" /* HighestPrice */ ? "Desc" /* Desc */ : "Asc" /* Asc */)(current, next);
44
- }
45
- case "availability" /* Availability */:
46
- {
47
- return sortByAvailabilityDesc(current, next);
48
- }
49
- default:
50
- {
51
- const sorts = [sortByAvailabilityDesc];
52
- if (sortByWeightTag) {
53
- sorts.push(sortByTagWeight(SortSiteId.Store, storeId));
54
- }
55
- return combineSorts(sorts)(current, next);
56
- }
57
- }
58
- };
59
- export { Sort, SortOrder, sortByAvailabilityDesc, sortByPrice, sortProducts, sortedStatusesByPriorityAsc };
60
- //# sourceMappingURL=productSort.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"productSort.mjs","sources":["../../src/utils/productSort.ts"],"sourcesContent":["import type {\n Nullish,\n StorefrontProduct,\n StoreId,\n UnionToAllPossibleTuples,\n} from \"../types\";\nimport { DisplayProductStatus } from \"../types\";\nimport { combineSorts, normalizeSortResult } from \"./array\";\nimport { sortByTagWeight, SortSiteId } from \"./product\";\n\n/**\n * Narrow MinimalProProductFragment type even more to the union of fields that are needed to sort product\n */\ntype ProductMinFieldsForSorting = Pick<\n StorefrontProduct,\n \"status\" | \"tags\" | \"minDisplayPrice\"\n> & {\n variants: {\n // We only need bare minimum from array to compare array length\n // FIXME: move it to backend as a boolean field so we don't need to fetch entire array to reduce it to a boolean ourselves\n availableInOtherStores: Array<{ __typename: string }>;\n }[];\n linkedProducts?: {\n status: StorefrontProduct[\"status\"];\n }[];\n};\n\nexport enum Sort {\n HighestPrice = \"highest-price\",\n LowestPrice = \"lowest-price\",\n Availability = \"availability\",\n}\n\nexport enum SortOrder {\n Asc = \"Asc\",\n Desc = \"Desc\",\n}\n\n/**\n * Variants statuses sorted in ascending order from least preferable to most, so if some new status comes in, then the\n * lookup for `.indexOf()` would return `-1`, thus being \"worse\" then DisplayProductStatus.SoldOut and moved to the very\n * back of list\n */\nexport const sortedStatusesByPriorityAsc: UnionToAllPossibleTuples<DisplayProductStatus> =\n [\n DisplayProductStatus.Unavailable,\n DisplayProductStatus.ComingSoon,\n DisplayProductStatus.SoldOut,\n DisplayProductStatus.RegionNotAvailable,\n DisplayProductStatus.Backorder,\n DisplayProductStatus.Available,\n ];\n/**\n * Due to currently variant status being nullable for historical reasons we need to have a fallback state\n * TODO: remove once display status is StorefrontProductVariant.status is non-nullable\n */\nconst getProductStatusPriority = (\n product: ProductMinFieldsForSorting,\n): number => {\n let sortStatus = product.status;\n\n // Virtually set sort status as available if it has alternative stores\n if (\n product.variants.some((variant) => variant.availableInOtherStores.length) ||\n (product.linkedProducts &&\n product.linkedProducts.some(\n (linkedProduct) =>\n linkedProduct.status === DisplayProductStatus.Available,\n ))\n ) {\n sortStatus = DisplayProductStatus.Available;\n }\n\n return sortedStatusesByPriorityAsc.indexOf(sortStatus);\n};\n\nexport const sortByAvailabilityDesc = (\n current: ProductMinFieldsForSorting,\n next: ProductMinFieldsForSorting,\n): number => {\n return normalizeSortResult(\n getProductStatusPriority(next) - getProductStatusPriority(current),\n );\n};\n\nexport const sortByPrice =\n (order: SortOrder) =>\n (\n current: ProductMinFieldsForSorting,\n next: ProductMinFieldsForSorting,\n ): number => {\n const currentProductPrice = current.minDisplayPrice.amount;\n\n const nextProductPrice = next.minDisplayPrice.amount;\n\n if (order === SortOrder.Desc) {\n return nextProductPrice - currentProductPrice;\n } else {\n return currentProductPrice - nextProductPrice;\n }\n };\n\n/**\n * Sorts products based on the given sort type.\n * @param currentSort - sort type\n * @param sortByWeightTag - if false, then sort by weight tag is\n * ignored (e.g. for `Related Add-ons` where\n * we don't want to sort by weight tag)\n */\nexport const sortProducts =\n (\n currentSort: Nullish<string | Sort>,\n storeId?: StoreId,\n sortByWeightTag = true,\n ) =>\n (current: ProductMinFieldsForSorting, next: ProductMinFieldsForSorting) => {\n switch (currentSort) {\n // Sort by price\n case Sort.HighestPrice:\n case Sort.LowestPrice: {\n return sortByPrice(\n currentSort === Sort.HighestPrice ? SortOrder.Desc : SortOrder.Asc,\n )(current, next);\n }\n\n case Sort.Availability: {\n return sortByAvailabilityDesc(current, next);\n }\n\n default: {\n const sorts = [sortByAvailabilityDesc];\n\n // Add sorting by tag weight\n if (sortByWeightTag) {\n sorts.push(sortByTagWeight(SortSiteId.Store, storeId));\n }\n\n // Do additional sorting by tag weight only after initial sorting resulting in \"same group\"\n return combineSorts(sorts)(current, next);\n }\n }\n };\n"],"names":["Sort","SortOrder","sortedStatusesByPriorityAsc","DisplayProductStatus","Unavailable","ComingSoon","SoldOut","RegionNotAvailable","Backorder","Available","getProductStatusPriority","product","sortStatus","status","variants","some","variant","availableInOtherStores","length","linkedProducts","linkedProduct","indexOf","sortByAvailabilityDesc","current","next","normalizeSortResult","sortByPrice","order","currentProductPrice","minDisplayPrice","amount","nextProductPrice","sortProducts","currentSort","storeId","sortByWeightTag","sorts","push","sortByTagWeight","SortSiteId","Store","combineSorts"],"mappings":";;;;;AA2BY,IAAAA,IAAA,GAAA,gBAAAA,KAAL,IAAA;EACLA,MAAA,cAAe,CAAA,GAAA,eAAA;EACfA,MAAA,aAAc,CAAA,GAAA,cAAA;EACdA,MAAA,cAAe,CAAA,GAAA,cAAA;EAHLA,OAAAA,KAAAA;AAAA,CAAA,EAAAA,IAAA,IAAA,CAAA,CAAA,CAAA;AAMA,IAAAC,SAAA,GAAA,gBAAAA,UAAL,IAAA;EACLA,WAAA,KAAM,CAAA,GAAA,KAAA;EACNA,WAAA,MAAO,CAAA,GAAA,MAAA;EAFGA,OAAAA,UAAAA;AAAA,CAAA,EAAAA,SAAA,IAAA,CAAA,CAAA,CAAA;AAUL,MAAMC,2BACX,GAAA,CACEC,oBAAqB,CAAAC,WAAA,EACrBD,oBAAqB,CAAAE,UAAA,EACrBF,oBAAqB,CAAAG,OAAA,EACrBH,oBAAqB,CAAAI,kBAAA,EACrBJ,oBAAqB,CAAAK,SAAA,EACrBL,oBAAqB,CAAAM,SAAA,CACvB;AAKF,MAAMC,wBAAA,GACJC,OACW,IAAA;EACX,IAAIC,aAAaD,OAAQ,CAAAE,MAAA;EAGzB,IACEF,OAAQ,CAAAG,QAAA,CAASC,IAAK,CAACC,OAAY,IAAAA,OAAA,CAAQC,sBAAuB,CAAAC,MAAM,CACvE,IAAAP,OAAA,CAAQQ,cACP,IAAAR,OAAA,CAAQQ,cAAe,CAAAJ,IAAA,CACpBK,aAAA,IACCA,aAAc,CAAAP,MAAA,KAAWV,oBAAqB,CAAAM,SAAA,CAEpD,EAAA;IACAG,UAAA,GAAaT,oBAAqB,CAAAM,SAAA;EACpC;EAEO,OAAAP,2BAAA,CAA4BmB,QAAQT,UAAU,CAAA;AACvD,CAAA;AAEa,MAAAU,sBAAA,GAAyBA,CACpCC,OAAA,EACAC,IACW,KAAA;EACJ,OAAAC,mBAAA,CACLf,wBAAyB,CAAAc,IAAI,CAAI,GAAAd,wBAAA,CAAyBa,OAAO,CAAA,CACnE;AACF,CAAA;AAEO,MAAMG,WACX,GAACC,KACD,IAAA,CACEJ,SACAC,IACW,KAAA;EACL,MAAAI,mBAAA,GAAsBL,QAAQM,eAAgB,CAAAC,MAAA;EAE9C,MAAAC,gBAAA,GAAmBP,KAAKK,eAAgB,CAAAC,MAAA;EAE9C,IAAIH,UAAU,MAAgB,CAAA,YAAA;IAC5B,OAAOI,gBAAmB,GAAAH,mBAAA;EAAA,CACrB,MAAA;IACL,OAAOA,mBAAsB,GAAAG,gBAAA;EAC/B;AACF,CAAA;AASW,MAAAC,YAAA,GACXA,CACEC,WACA,EAAAC,OAAA,EACAC,kBAAkB,IAEpB,KAAA,CAACZ,SAAqCC,IAAqC,KAAA;EACzE,QAAQS,WAAa;IAAA;IAEnB,KAAK,eAAA,CAAA;IACL,KAAK,cAAkB,CAAA;MAAA;QACd,OAAAP,WAAA,CACLO,WAAA,KAAgB,gBAAoB,qBAAA,MAAiB,cAAA,KAAA,CAAA,SAAA,CACvD,CAAEV,SAASC,IAAI,CAAA;MACjB;IAEA,KAAK,cAAmB,CAAA;MAAA;QACf,OAAAF,sBAAA,CAAuBC,SAASC,IAAI,CAAA;MAC7C;IAEA;MAAS;QACD,MAAAY,KAAA,GAAQ,CAACd,sBAAsB,CAAA;QAGrC,IAAIa,eAAiB,EAAA;UACnBC,KAAA,CAAMC,IAAK,CAAAC,eAAA,CAAgBC,UAAW,CAAAC,KAAA,EAAON,OAAO,CAAC,CAAA;QACvD;QAGA,OAAOO,YAAa,CAAAL,KAAK,CAAE,CAAAb,OAAA,EAASC,IAAI,CAAA;MAC1C;EACF;AACF,CAAA;"}
@@ -1,11 +0,0 @@
1
- import { type SuperRefinement } from "zod";
2
- /**
3
- * Actually it is 35, but because we need to add extra space between
4
- * first_name and last_name, reduce by 1 character
5
- */
6
- export declare const UPS_SHIPPING_LABEL_MAX_FULL_NAME = 34;
7
- export declare const FIRST_NAME_MAX_LENGTH = 17;
8
- export declare const createLastNameSuperRefinement: SuperRefinement<{
9
- firstName: string;
10
- lastName: string;
11
- }>;
@@ -1,25 +0,0 @@
1
- 'use strict';
2
-
3
- var zod = require('zod');
4
- "use strict";
5
- const UPS_SHIPPING_LABEL_MAX_FULL_NAME = 34;
6
- const FIRST_NAME_MAX_LENGTH = 17;
7
- const createLastNameSuperRefinement = ({
8
- firstName,
9
- lastName
10
- }, ctx) => {
11
- const returnMaxLastNameLength = Math.max(Math.max(UPS_SHIPPING_LABEL_MAX_FULL_NAME - firstName.length, 0), FIRST_NAME_MAX_LENGTH);
12
- if (lastName.length > returnMaxLastNameLength) {
13
- return ctx.addIssue({
14
- path: ["lastName"],
15
- code: zod.ZodIssueCode.too_big,
16
- type: "string",
17
- maximum: returnMaxLastNameLength,
18
- inclusive: true
19
- });
20
- }
21
- };
22
- exports.FIRST_NAME_MAX_LENGTH = FIRST_NAME_MAX_LENGTH;
23
- exports.UPS_SHIPPING_LABEL_MAX_FULL_NAME = UPS_SHIPPING_LABEL_MAX_FULL_NAME;
24
- exports.createLastNameSuperRefinement = createLastNameSuperRefinement;
25
- //# sourceMappingURL=lastNameSuperRefinement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lastNameSuperRefinement.js","sources":["../../../src/utils/validations/lastNameSuperRefinement.ts"],"sourcesContent":["import { type SuperRefinement, ZodIssueCode } from \"zod\";\n\n/**\n * Actually it is 35, but because we need to add extra space between\n * first_name and last_name, reduce by 1 character\n */\nexport const UPS_SHIPPING_LABEL_MAX_FULL_NAME = 34;\nexport const FIRST_NAME_MAX_LENGTH = 17;\n\nexport const createLastNameSuperRefinement: SuperRefinement<{\n firstName: string;\n lastName: string;\n}> = ({ firstName, lastName }, ctx) => {\n const returnMaxLastNameLength = Math.max(\n Math.max(UPS_SHIPPING_LABEL_MAX_FULL_NAME - firstName.length, 0),\n FIRST_NAME_MAX_LENGTH,\n );\n\n if (lastName.length > returnMaxLastNameLength) {\n return ctx.addIssue({\n path: [\"lastName\"],\n code: ZodIssueCode.too_big,\n type: \"string\",\n maximum: returnMaxLastNameLength,\n inclusive: true,\n });\n }\n};\n"],"names":["UPS_SHIPPING_LABEL_MAX_FULL_NAME","FIRST_NAME_MAX_LENGTH","createLastNameSuperRefinement","firstName","lastName","ctx","returnMaxLastNameLength","Math","max","length","addIssue","path","code","ZodIssueCode","too_big","type","maximum","inclusive"],"mappings":";;;;AAMO,MAAMA,gCAAmC,GAAA,EAAA;AACzC,MAAMC,qBAAwB,GAAA,EAAA;AAE9B,MAAMC,gCAGRA,CAAC;EAAEC,SAAW;EAAAC;AAAA,GAAYC,GAAQ,KAAA;EACrC,MAAMC,0BAA0BC,IAAK,CAAAC,GAAA,CACnCD,IAAK,CAAAC,GAAA,CAAIR,gCAAmC,GAAAG,SAAA,CAAUM,QAAQ,CAAC,CAAA,EAC/DR,qBAAA,CACF;EAEI,IAAAG,QAAA,CAASK,SAASH,uBAAyB,EAAA;IAC7C,OAAOD,IAAIK,QAAS,CAAA;MAClBC,IAAA,EAAM,CAAC,UAAU,CAAA;MACjBC,MAAMC,GAAa,CAAAA,YAAA,CAAAC,OAAA;MACnBC,IAAM,EAAA,QAAA;MACNC,OAAS,EAAAV,uBAAA;MACTW,SAAW,EAAA;IAAA,CACZ,CAAA;EACH;AACF,CAAA;;;"}
@@ -1,21 +0,0 @@
1
- import { ZodIssueCode } from 'zod';
2
- "use strict";
3
- const UPS_SHIPPING_LABEL_MAX_FULL_NAME = 34;
4
- const FIRST_NAME_MAX_LENGTH = 17;
5
- const createLastNameSuperRefinement = ({
6
- firstName,
7
- lastName
8
- }, ctx) => {
9
- const returnMaxLastNameLength = Math.max(Math.max(UPS_SHIPPING_LABEL_MAX_FULL_NAME - firstName.length, 0), FIRST_NAME_MAX_LENGTH);
10
- if (lastName.length > returnMaxLastNameLength) {
11
- return ctx.addIssue({
12
- path: ["lastName"],
13
- code: ZodIssueCode.too_big,
14
- type: "string",
15
- maximum: returnMaxLastNameLength,
16
- inclusive: true
17
- });
18
- }
19
- };
20
- export { FIRST_NAME_MAX_LENGTH, UPS_SHIPPING_LABEL_MAX_FULL_NAME, createLastNameSuperRefinement };
21
- //# sourceMappingURL=lastNameSuperRefinement.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lastNameSuperRefinement.mjs","sources":["../../../src/utils/validations/lastNameSuperRefinement.ts"],"sourcesContent":["import { type SuperRefinement, ZodIssueCode } from \"zod\";\n\n/**\n * Actually it is 35, but because we need to add extra space between\n * first_name and last_name, reduce by 1 character\n */\nexport const UPS_SHIPPING_LABEL_MAX_FULL_NAME = 34;\nexport const FIRST_NAME_MAX_LENGTH = 17;\n\nexport const createLastNameSuperRefinement: SuperRefinement<{\n firstName: string;\n lastName: string;\n}> = ({ firstName, lastName }, ctx) => {\n const returnMaxLastNameLength = Math.max(\n Math.max(UPS_SHIPPING_LABEL_MAX_FULL_NAME - firstName.length, 0),\n FIRST_NAME_MAX_LENGTH,\n );\n\n if (lastName.length > returnMaxLastNameLength) {\n return ctx.addIssue({\n path: [\"lastName\"],\n code: ZodIssueCode.too_big,\n type: \"string\",\n maximum: returnMaxLastNameLength,\n inclusive: true,\n });\n }\n};\n"],"names":["UPS_SHIPPING_LABEL_MAX_FULL_NAME","FIRST_NAME_MAX_LENGTH","createLastNameSuperRefinement","firstName","lastName","ctx","returnMaxLastNameLength","Math","max","length","addIssue","path","code","ZodIssueCode","too_big","type","maximum","inclusive"],"mappings":";;AAMO,MAAMA,gCAAmC,GAAA,EAAA;AACzC,MAAMC,qBAAwB,GAAA,EAAA;AAE9B,MAAMC,gCAGRA,CAAC;EAAEC,SAAW;EAAAC;AAAA,GAAYC,GAAQ,KAAA;EACrC,MAAMC,0BAA0BC,IAAK,CAAAC,GAAA,CACnCD,IAAK,CAAAC,GAAA,CAAIR,gCAAmC,GAAAG,SAAA,CAAUM,QAAQ,CAAC,CAAA,EAC/DR,qBAAA,CACF;EAEI,IAAAG,QAAA,CAASK,SAASH,uBAAyB,EAAA;IAC7C,OAAOD,IAAIK,QAAS,CAAA;MAClBC,IAAA,EAAM,CAAC,UAAU,CAAA;MACjBC,MAAMC,YAAa,CAAAC,OAAA;MACnBC,IAAM,EAAA,QAAA;MACNC,OAAS,EAAAV,uBAAA;MACTW,SAAW,EAAA;IAAA,CACZ,CAAA;EACH;AACF,CAAA;"}