@ubnt/store.core 9.56.0-beta.4 → 9.56.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 (756) hide show
  1. package/CHANGELOG.md +86 -539
  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/cart-secondary.svg.js +27 -0
  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/assets/icons/menu/icon-location-pin.svg.js +27 -0
  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/minus4.svg +8 -8
  22. package/lib/assets/minus5.svg +8 -8
  23. package/lib/assets/phoneTouch.jpg +0 -0
  24. package/lib/assets/phoneTouchMax.jpg +0 -0
  25. package/lib/assets/plus5.svg +9 -9
  26. package/lib/assets/plus6.svg +9 -9
  27. package/lib/assets/poe2.svg +2 -3
  28. package/lib/assets/poe3.svg +3 -2
  29. package/lib/assets/port.svg +2 -4
  30. package/lib/assets/port2.svg +4 -2
  31. package/lib/assets/udmPro.jpg +0 -0
  32. package/lib/assets/udmPro2.jpg +0 -0
  33. package/lib/assets/udmProMax.jpg +0 -0
  34. package/lib/assets/udmProMax2.jpg +0 -0
  35. package/lib/assets/udmProSpecial.jpg +0 -0
  36. package/lib/assets/udmProSpecial2.jpg +0 -0
  37. package/lib/components/Accordion/Accordion.js +4 -4
  38. package/lib/components/Avatar/Avatar.js +2 -2
  39. package/lib/components/Button/Button.js +12 -5
  40. package/lib/components/Button/Button.js.map +1 -1
  41. package/lib/components/Button/Button.mjs +8 -1
  42. package/lib/components/Button/Button.mjs.map +1 -1
  43. package/lib/components/Button/CartButton.d.ts +3 -1
  44. package/lib/components/Button/CartButton.js +11 -6
  45. package/lib/components/Button/CartButton.js.map +1 -1
  46. package/lib/components/Button/CartButton.mjs +8 -4
  47. package/lib/components/Button/CartButton.mjs.map +1 -1
  48. package/lib/components/ButtonGroup/ButtonGroup.d.ts +1 -1
  49. package/lib/components/ButtonGroup/ButtonGroup.js +16 -9
  50. package/lib/components/ButtonGroup/ButtonGroup.js.map +1 -1
  51. package/lib/components/ButtonGroup/ButtonGroup.mjs +16 -9
  52. package/lib/components/ButtonGroup/ButtonGroup.mjs.map +1 -1
  53. package/lib/components/ButtonGroup/ButtonGroup.styles.d.ts +10 -6
  54. package/lib/components/ButtonGroup/ButtonGroup.styles.js +60 -20
  55. package/lib/components/ButtonGroup/ButtonGroup.styles.js.map +1 -1
  56. package/lib/components/ButtonGroup/ButtonGroup.styles.mjs +60 -20
  57. package/lib/components/ButtonGroup/ButtonGroup.styles.mjs.map +1 -1
  58. package/lib/components/ButtonGroup/ButtonGroup.types.d.ts +5 -0
  59. package/lib/components/ButtonGroupBasic/index.stories.d.ts +6 -0
  60. package/lib/components/CardSection/Card/Card.js +6 -6
  61. package/lib/components/CardSection/CardSection.js +2 -2
  62. package/lib/components/CardSection/CardSection.styles.d.ts +1 -1
  63. package/lib/components/CartIcon/CartIcon.js +2 -2
  64. package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +4 -2
  65. package/lib/components/CategoryTabs/CategoryTabs.styles.js +8 -5
  66. package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
  67. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +7 -6
  68. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
  69. package/lib/components/Checkbox/Checkbox.js +4 -4
  70. package/lib/components/CloserLookSection/CloserLookSection.js +11 -11
  71. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.js +5 -5
  72. package/lib/components/Compare/Compare.styles.d.ts +5 -5
  73. package/lib/components/Container/Container.d.ts +1 -1
  74. package/lib/components/Container/Container.js +5 -4
  75. package/lib/components/Container/Container.js.map +1 -1
  76. package/lib/components/Container/Container.mjs +5 -4
  77. package/lib/components/Container/Container.mjs.map +1 -1
  78. package/lib/components/Container/index.stories.d.ts +5 -5
  79. package/lib/components/CustomImage/CustomImage.js +12 -12
  80. package/lib/components/Explore/Explore.js +5 -5
  81. package/lib/components/FeaturesSection_deprecated/Features/Features.js +2 -2
  82. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +22 -22
  83. package/lib/components/Footer/Footer.js +2 -2
  84. package/lib/components/Footer/hooks/useFooterContent.js +5 -5
  85. package/lib/components/Gallery/Gallery.context.js +17 -17
  86. package/lib/components/Gallery/Gallery.js +9 -9
  87. package/lib/components/Gallery/GalleryControls/GalleryControls.js +4 -4
  88. package/lib/components/Gallery/GalleryItem/GalleryItem.js +8 -8
  89. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.js +8 -8
  90. package/lib/components/GridGallery/GridGallery.js +8 -8
  91. package/lib/components/GridGallery/GridModal/GridModal.js +6 -6
  92. package/lib/components/Header/AccountFrame/AccountFrame.js +11 -11
  93. package/lib/components/Header/AccountFrame/Mobile/Mobile.js +4 -4
  94. package/lib/components/Header/AccountMenu/AccountMenu.js +30 -20
  95. package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
  96. package/lib/components/Header/AccountMenu/AccountMenu.mjs +13 -3
  97. package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
  98. package/lib/components/Header/CartModal/Empty/Empty.js +3 -3
  99. package/lib/components/Header/CartModalV2/CartModal.js +5 -5
  100. package/lib/components/Header/CartModalV2/Item/Item.js +4 -4
  101. package/lib/components/Header/CartModalV2/Item/Item.styles.d.ts +1 -1
  102. package/lib/components/Header/Header.js +40 -40
  103. package/lib/components/Header/Header.js.map +1 -1
  104. package/lib/components/Header/Header.mjs +6 -6
  105. package/lib/components/Header/Header.mjs.map +1 -1
  106. package/lib/components/Header/Header.stories.d.ts +111 -0
  107. package/lib/components/Header/Header.styles.d.ts +7 -12
  108. package/lib/components/Header/Header.styles.js +10 -32
  109. package/lib/components/Header/Header.styles.js.map +1 -1
  110. package/lib/components/Header/Header.styles.mjs +10 -31
  111. package/lib/components/Header/Header.styles.mjs.map +1 -1
  112. package/lib/components/Header/Header.types.d.ts +29 -5
  113. package/lib/components/Header/Header.types.js +2 -1
  114. package/lib/components/Header/Header.types.js.map +1 -1
  115. package/lib/components/Header/Header.types.mjs +2 -1
  116. package/lib/components/Header/Header.types.mjs.map +1 -1
  117. package/lib/components/Header/IsolatedHeader.d.ts +1 -0
  118. package/lib/components/Header/IsolatedHeader.js +50 -50
  119. package/lib/components/Header/IsolatedHeader.js.map +1 -1
  120. package/lib/components/Header/IsolatedHeader.mjs +47 -46
  121. package/lib/components/Header/IsolatedHeader.mjs.map +1 -1
  122. package/lib/components/Header/LanguageFrame/LanguageFrame.js +6 -6
  123. package/lib/components/Header/LogoIcon/LogoIcon.d.ts +7 -0
  124. package/lib/components/Header/LogoIcon/LogoIcon.js +46 -0
  125. package/lib/components/Header/LogoIcon/LogoIcon.js.map +1 -0
  126. package/lib/components/Header/LogoIcon/LogoIcon.mjs +36 -0
  127. package/lib/components/Header/LogoIcon/LogoIcon.mjs.map +1 -0
  128. package/lib/components/Header/LogoIcon/index.d.ts +1 -0
  129. package/lib/components/Header/LogoIcon/index.js +6 -0
  130. package/lib/components/Header/LogoIcon/index.js.map +1 -0
  131. package/lib/components/Header/LogoIcon/index.mjs +3 -0
  132. package/lib/components/Header/LogoIcon/index.mjs.map +1 -0
  133. package/lib/components/Header/MenuItem/MenuItem.styles.d.ts +1 -1
  134. package/lib/components/Header/MenuItem/MenuItem.styles.js +3 -3
  135. package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
  136. package/lib/components/Header/MenuItem/MenuItem.styles.mjs +3 -3
  137. package/lib/components/Header/MenuItem/MenuItem.styles.mjs.map +1 -1
  138. package/lib/components/Header/MenuItem/MenuItem.types.d.ts +1 -0
  139. package/lib/components/Header/Navigation/Carousel/Carousel.js +5 -5
  140. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.js +12 -12
  141. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
  142. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +6 -6
  143. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +1 -1
  144. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
  145. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +116 -109
  146. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
  147. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +111 -104
  148. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
  149. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +9 -0
  150. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +15 -1
  151. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
  152. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +13 -2
  153. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
  154. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +12 -6
  155. package/lib/components/Header/Overlay/Overlay.js +3 -3
  156. package/lib/components/Header/ProHeader/ProHeader.d.ts +9 -5
  157. package/lib/components/Header/ProHeader/ProHeader.js +270 -189
  158. package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
  159. package/lib/components/Header/ProHeader/ProHeader.mjs +251 -171
  160. package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
  161. package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +30 -25
  162. package/lib/components/Header/ProHeader/ProHeader.styles.js +119 -66
  163. package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
  164. package/lib/components/Header/ProHeader/ProHeader.styles.mjs +112 -65
  165. package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
  166. package/lib/components/Header/translations/ar.json.js +4 -1
  167. package/lib/components/Header/translations/ar.json.js.map +1 -1
  168. package/lib/components/Header/translations/ar.json.mjs +4 -2
  169. package/lib/components/Header/translations/ar.json.mjs.map +1 -1
  170. package/lib/components/Header/translations/de.json.js +4 -1
  171. package/lib/components/Header/translations/de.json.js.map +1 -1
  172. package/lib/components/Header/translations/de.json.mjs +4 -2
  173. package/lib/components/Header/translations/de.json.mjs.map +1 -1
  174. package/lib/components/Header/translations/el.json.js +4 -1
  175. package/lib/components/Header/translations/el.json.js.map +1 -1
  176. package/lib/components/Header/translations/el.json.mjs +4 -2
  177. package/lib/components/Header/translations/el.json.mjs.map +1 -1
  178. package/lib/components/Header/translations/en.json.js +7 -1
  179. package/lib/components/Header/translations/en.json.js.map +1 -1
  180. package/lib/components/Header/translations/en.json.mjs +6 -2
  181. package/lib/components/Header/translations/en.json.mjs.map +1 -1
  182. package/lib/components/Header/translations/es.json.js +4 -1
  183. package/lib/components/Header/translations/es.json.js.map +1 -1
  184. package/lib/components/Header/translations/es.json.mjs +4 -2
  185. package/lib/components/Header/translations/es.json.mjs.map +1 -1
  186. package/lib/components/Header/translations/fr.json.js +4 -1
  187. package/lib/components/Header/translations/fr.json.js.map +1 -1
  188. package/lib/components/Header/translations/fr.json.mjs +4 -2
  189. package/lib/components/Header/translations/fr.json.mjs.map +1 -1
  190. package/lib/components/Header/translations/it.json.js +4 -1
  191. package/lib/components/Header/translations/it.json.js.map +1 -1
  192. package/lib/components/Header/translations/it.json.mjs +4 -2
  193. package/lib/components/Header/translations/it.json.mjs.map +1 -1
  194. package/lib/components/Header/translations/ja.json.js +4 -1
  195. package/lib/components/Header/translations/ja.json.js.map +1 -1
  196. package/lib/components/Header/translations/ja.json.mjs +4 -2
  197. package/lib/components/Header/translations/ja.json.mjs.map +1 -1
  198. package/lib/components/Header/translations/pt-BR.json.js +4 -1
  199. package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
  200. package/lib/components/Header/translations/pt-BR.json.mjs +4 -2
  201. package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
  202. package/lib/components/Header/translations/zh-Hans.json.js +4 -1
  203. package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
  204. package/lib/components/Header/translations/zh-Hans.json.mjs +4 -2
  205. package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
  206. package/lib/components/Header/translations/zh-Hant-TW.json.js +4 -1
  207. package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
  208. package/lib/components/Header/translations/zh-Hant-TW.json.mjs +4 -2
  209. package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
  210. package/lib/components/Hero/Hero.js +5 -5
  211. package/lib/components/Hero/Hero.styles.d.ts +2 -2
  212. package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +1 -1
  213. package/lib/components/HeroVideo/HeroVideo.js +5 -5
  214. package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +2 -2
  215. package/lib/components/ImageCarousel/ImageCarousel.js +29 -33
  216. package/lib/components/ImageCarousel/ImageCarousel.js.map +1 -1
  217. package/lib/components/ImageCarousel/ImageCarousel.mjs +0 -4
  218. package/lib/components/ImageCarousel/ImageCarousel.mjs.map +1 -1
  219. package/lib/components/ImageSequence/ImageSequence.js +8 -8
  220. package/lib/components/LandingPage/Cards/Card/Card.js +4 -4
  221. package/lib/components/LandingPage/Cards/Cards.js +10 -10
  222. package/lib/components/LandingPage/LandingPage.js +2 -2
  223. package/lib/components/LandingPagePro/LandingPagePro.js +13 -13
  224. package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +1 -1
  225. package/lib/components/LandingPageSearch/LandingPageSearch.js +2 -2
  226. package/lib/components/LandingPageSearch/Modal/Modal.js +9 -9
  227. package/lib/components/LandingPageSidebar/LandingPageSidebar.js +12 -12
  228. package/lib/components/LayoutRenderer/LayoutRenderer.js +8 -8
  229. package/lib/components/LayoutRenderer/LayoutRenderer.styles.d.ts +1 -1
  230. package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +3 -3
  231. package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +3 -3
  232. package/lib/components/LoaderDots/LoaderDots.d.ts +1 -1
  233. package/lib/components/LoaderDots/LoaderDots.js +3 -1
  234. package/lib/components/LoaderDots/LoaderDots.js.map +1 -1
  235. package/lib/components/LoaderDots/LoaderDots.mjs +3 -1
  236. package/lib/components/LoaderDots/LoaderDots.mjs.map +1 -1
  237. package/lib/components/LoaderDots/LoaderDots.styles.d.ts +2 -1
  238. package/lib/components/LoaderDots/LoaderDots.styles.js +11 -1
  239. package/lib/components/LoaderDots/LoaderDots.styles.js.map +1 -1
  240. package/lib/components/LoaderDots/LoaderDots.styles.mjs +11 -1
  241. package/lib/components/LoaderDots/LoaderDots.styles.mjs.map +1 -1
  242. package/lib/components/LoaderDots/LoaderDots.types.d.ts +2 -0
  243. package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.js +7 -7
  244. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.js +18 -18
  245. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.d.ts +1 -1
  246. package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.js +2 -2
  247. package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.js +3 -3
  248. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.js +3 -3
  249. package/lib/components/MicrositeHero/MicrositeHero.js +18 -18
  250. package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.js +4 -4
  251. package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.js +9 -9
  252. package/lib/components/MicrositeProductGrid/MicrositeProductGrid.js +8 -8
  253. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlockWrap.js +2 -2
  254. package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +1 -1
  255. package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.js +3 -3
  256. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +12 -12
  257. package/lib/components/Microsites/MicrositePageContext.js +2 -2
  258. package/lib/components/Microsites/MicrositeProductPage.js +3 -3
  259. package/lib/components/Microsites/context/MicrositeProductPageContext.js +3 -3
  260. package/lib/components/MobileModal/MobileModal.js +4 -4
  261. package/lib/components/Modal/Modal.js +3 -3
  262. package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js +3 -3
  263. package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.js +2 -2
  264. package/lib/components/ModelCompareV3/ModelCompareV3.js +14 -14
  265. package/lib/components/ModelCompareV3/ModelCompareV3.types.d.ts +1 -3
  266. package/lib/components/ModelCompareV3/ProductGroupsGrid.js +3 -3
  267. package/lib/components/ModelCompareV3/ScrollGroup/ScrollGroup.js +5 -5
  268. package/lib/components/ModelCompareV3/ScrollGroup/context.js +3 -3
  269. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupItem.js +8 -8
  270. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupSetScroll.js +2 -2
  271. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupTo.js +2 -2
  272. package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js +7 -7
  273. package/lib/components/ModelCompareV3/StickyGrid/StickyGridBody.js +2 -2
  274. package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js +5 -5
  275. package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.js +2 -2
  276. package/lib/components/ModelCompareV3/StickyGrid/context.js +3 -3
  277. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
  278. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
  279. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
  280. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
  281. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
  282. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
  283. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
  284. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
  285. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
  286. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
  287. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
  288. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
  289. package/lib/components/ModelCompareV3/assets/{crestron.svg.js → PhoneSystem/phoneTouch.jpg.js} +6 -6
  290. package/lib/components/ModelCompareV3/assets/PhoneSystem/phoneTouch.jpg.js.map +1 -0
  291. package/lib/components/ModelCompareV3/assets/PhoneSystem/phoneTouch.jpg.mjs +3 -0
  292. package/lib/components/ModelCompareV3/assets/PhoneSystem/phoneTouch.jpg.mjs.map +1 -0
  293. package/lib/{assets/icons/menu/icon-globe.svg.js → components/ModelCompareV3/assets/PhoneSystem/phoneTouchMax.jpg.js} +6 -6
  294. package/lib/components/ModelCompareV3/assets/PhoneSystem/phoneTouchMax.jpg.js.map +1 -0
  295. package/lib/components/ModelCompareV3/assets/PhoneSystem/phoneTouchMax.jpg.mjs +3 -0
  296. package/lib/components/ModelCompareV3/assets/PhoneSystem/phoneTouchMax.jpg.mjs.map +1 -0
  297. package/lib/components/ModelCompareV3/assets/poe.svg.js +1 -1
  298. package/lib/components/ModelCompareV3/assets/poe.svg.mjs +2 -2
  299. package/lib/components/ModelCompareV3/assets/port.svg.js +1 -1
  300. package/lib/components/ModelCompareV3/assets/port.svg.mjs +2 -2
  301. package/lib/components/ModelCompareV3/data/CameraSecurity.js +1 -2
  302. package/lib/components/ModelCompareV3/data/CameraSecurity.js.map +1 -1
  303. package/lib/components/ModelCompareV3/data/CameraSecurity.mjs +1 -2
  304. package/lib/components/ModelCompareV3/data/CameraSecurity.mjs.map +1 -1
  305. package/lib/components/ModelCompareV3/data/CloudGateways.js +9 -9
  306. package/lib/components/ModelCompareV3/data/CloudGateways.mjs +6 -6
  307. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js +2 -3
  308. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js.map +1 -1
  309. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs +2 -3
  310. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs.map +1 -1
  311. package/lib/components/ModelCompareV3/data/PhoneSystem.js +6 -3
  312. package/lib/components/ModelCompareV3/data/PhoneSystem.js.map +1 -1
  313. package/lib/components/ModelCompareV3/data/PhoneSystem.mjs +6 -3
  314. package/lib/components/ModelCompareV3/data/PhoneSystem.mjs.map +1 -1
  315. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.js +3 -10
  316. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.js.map +1 -1
  317. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.mjs +3 -10
  318. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.mjs.map +1 -1
  319. package/lib/components/ModelCompareV3/data/Switching.js +2 -3
  320. package/lib/components/ModelCompareV3/data/Switching.js.map +1 -1
  321. package/lib/components/ModelCompareV3/data/Switching.mjs +2 -3
  322. package/lib/components/ModelCompareV3/data/Switching.mjs.map +1 -1
  323. package/lib/components/ModelCompareV3/data/products/aggregation.js +0 -7
  324. package/lib/components/ModelCompareV3/data/products/aggregation.js.map +1 -1
  325. package/lib/components/ModelCompareV3/data/products/aggregation.mjs +0 -7
  326. package/lib/components/ModelCompareV3/data/products/aggregation.mjs.map +1 -1
  327. package/lib/components/ModelCompareV3/data/products/aiLpr.js +1 -0
  328. package/lib/components/ModelCompareV3/data/products/aiLpr.js.map +1 -1
  329. package/lib/components/ModelCompareV3/data/products/aiLpr.mjs +1 -0
  330. package/lib/components/ModelCompareV3/data/products/aiLpr.mjs.map +1 -1
  331. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js +1 -1
  332. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js.map +1 -1
  333. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs +1 -1
  334. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs.map +1 -1
  335. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js +0 -7
  336. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js.map +1 -1
  337. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs +0 -7
  338. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs.map +1 -1
  339. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js +0 -7
  340. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js.map +1 -1
  341. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs +0 -7
  342. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs.map +1 -1
  343. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js +0 -7
  344. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js.map +1 -1
  345. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs +0 -7
  346. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs.map +1 -1
  347. package/lib/components/ModelCompareV3/data/products/envr.js +1 -0
  348. package/lib/components/ModelCompareV3/data/products/envr.js.map +1 -1
  349. package/lib/components/ModelCompareV3/data/products/envr.mjs +1 -0
  350. package/lib/components/ModelCompareV3/data/products/envr.mjs.map +1 -1
  351. package/lib/components/ModelCompareV3/data/products/g3TouchEnterprise.js +4 -4
  352. package/lib/components/ModelCompareV3/data/products/g3TouchEnterprise.js.map +1 -1
  353. package/lib/components/ModelCompareV3/data/products/g3TouchEnterprise.mjs +4 -4
  354. package/lib/components/ModelCompareV3/data/products/g3TouchEnterprise.mjs.map +1 -1
  355. package/lib/components/ModelCompareV3/data/products/g3TouchPro.js +4 -4
  356. package/lib/components/ModelCompareV3/data/products/g3TouchPro.js.map +1 -1
  357. package/lib/components/ModelCompareV3/data/products/g3TouchPro.mjs +4 -4
  358. package/lib/components/ModelCompareV3/data/products/g3TouchPro.mjs.map +1 -1
  359. package/lib/components/ModelCompareV3/data/products/g3TouchWall.js +4 -4
  360. package/lib/components/ModelCompareV3/data/products/g3TouchWall.js.map +1 -1
  361. package/lib/components/ModelCompareV3/data/products/g3TouchWall.mjs +4 -4
  362. package/lib/components/ModelCompareV3/data/products/g3TouchWall.mjs.map +1 -1
  363. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js +0 -7
  364. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js.map +1 -1
  365. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs +0 -7
  366. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs.map +1 -1
  367. package/lib/components/ModelCompareV3/data/products/missionCritical.js +0 -7
  368. package/lib/components/ModelCompareV3/data/products/missionCritical.js.map +1 -1
  369. package/lib/components/ModelCompareV3/data/products/missionCritical.mjs +0 -7
  370. package/lib/components/ModelCompareV3/data/products/missionCritical.mjs.map +1 -1
  371. package/lib/components/ModelCompareV3/data/products/phoneTouch.js +104 -0
  372. package/lib/components/ModelCompareV3/data/products/phoneTouch.js.map +1 -0
  373. package/lib/components/ModelCompareV3/data/products/phoneTouch.mjs +96 -0
  374. package/lib/components/ModelCompareV3/data/products/phoneTouch.mjs.map +1 -0
  375. package/lib/components/ModelCompareV3/data/products/phoneTouchMax.js +104 -0
  376. package/lib/components/ModelCompareV3/data/products/phoneTouchMax.js.map +1 -0
  377. package/lib/components/ModelCompareV3/data/products/phoneTouchMax.mjs +96 -0
  378. package/lib/components/ModelCompareV3/data/products/phoneTouchMax.mjs.map +1 -0
  379. package/lib/components/ModelCompareV3/data/products/professionalHd24.js +0 -7
  380. package/lib/components/ModelCompareV3/data/products/professionalHd24.js.map +1 -1
  381. package/lib/components/ModelCompareV3/data/products/professionalHd24.mjs +0 -7
  382. package/lib/components/ModelCompareV3/data/products/professionalHd24.mjs.map +1 -1
  383. package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.js +0 -7
  384. package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.js.map +1 -1
  385. package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.mjs +0 -7
  386. package/lib/components/ModelCompareV3/data/products/professionalHd24Poe.mjs.map +1 -1
  387. package/lib/components/ModelCompareV3/data/products/professionalMax16.js +0 -7
  388. package/lib/components/ModelCompareV3/data/products/professionalMax16.js.map +1 -1
  389. package/lib/components/ModelCompareV3/data/products/professionalMax16.mjs +0 -7
  390. package/lib/components/ModelCompareV3/data/products/professionalMax16.mjs.map +1 -1
  391. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.js +0 -7
  392. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.js.map +1 -1
  393. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.mjs +0 -7
  394. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.mjs.map +1 -1
  395. package/lib/components/ModelCompareV3/data/products/professionalMax24.js +0 -7
  396. package/lib/components/ModelCompareV3/data/products/professionalMax24.js.map +1 -1
  397. package/lib/components/ModelCompareV3/data/products/professionalMax24.mjs +0 -7
  398. package/lib/components/ModelCompareV3/data/products/professionalMax24.mjs.map +1 -1
  399. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.js +0 -7
  400. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.js.map +1 -1
  401. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.mjs +0 -7
  402. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.mjs.map +1 -1
  403. package/lib/components/ModelCompareV3/data/products/professionalMax48.js +0 -7
  404. package/lib/components/ModelCompareV3/data/products/professionalMax48.js.map +1 -1
  405. package/lib/components/ModelCompareV3/data/products/professionalMax48.mjs +0 -7
  406. package/lib/components/ModelCompareV3/data/products/professionalMax48.mjs.map +1 -1
  407. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.js +0 -7
  408. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.js.map +1 -1
  409. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.mjs +0 -7
  410. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.mjs.map +1 -1
  411. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js +0 -8
  412. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js.map +1 -1
  413. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs +0 -8
  414. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs.map +1 -1
  415. package/lib/components/ModelCompareV3/data/products/switchesProfessional.js +0 -7
  416. package/lib/components/ModelCompareV3/data/products/switchesProfessional.js.map +1 -1
  417. package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs +0 -7
  418. package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs.map +1 -1
  419. package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.js +0 -7
  420. package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.js.map +1 -1
  421. package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.mjs +0 -7
  422. package/lib/components/ModelCompareV3/data/products/switchesProfessionalHd.mjs.map +1 -1
  423. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js +1 -10
  424. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js.map +1 -1
  425. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs +1 -10
  426. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs.map +1 -1
  427. package/lib/components/ModelCompareV3/data/products/switchesStandard.js +0 -7
  428. package/lib/components/ModelCompareV3/data/products/switchesStandard.js.map +1 -1
  429. package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs +0 -7
  430. package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs.map +1 -1
  431. package/lib/components/ModelCompareV3/data/products/udmPro.js +1 -1
  432. package/lib/components/ModelCompareV3/data/products/udmPro.mjs +1 -1
  433. package/lib/components/ModelCompareV3/data/products/udmProMax.js +1 -1
  434. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +1 -1
  435. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +1 -1
  436. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +1 -1
  437. package/lib/components/ModelCompareV3/data/properties/index.d.ts +0 -2
  438. package/lib/components/ModelCompareV3/data/properties/index.js +0 -4
  439. package/lib/components/ModelCompareV3/data/properties/index.js.map +1 -1
  440. package/lib/components/ModelCompareV3/data/properties/index.mjs +0 -2
  441. package/lib/components/ModelCompareV3/data/properties/index.mjs.map +1 -1
  442. package/lib/components/ModelCompareV3/data/properties/powerMethodPoe.js +1 -1
  443. package/lib/components/ModelCompareV3/data/properties/powerMethodPoe.mjs +1 -1
  444. package/lib/components/ModelCompareV3/data/properties/readerPowerMethod.js +1 -1
  445. package/lib/components/ModelCompareV3/data/properties/readerPowerMethod.mjs +1 -1
  446. package/lib/components/ModelCompareV3/data/properties/redundantRj45Port.js +1 -1
  447. package/lib/components/ModelCompareV3/data/properties/redundantRj45Port.mjs +1 -1
  448. package/lib/components/ModelCompareV3/data/property-sets/phoneSystem.js +3 -2
  449. package/lib/components/ModelCompareV3/data/property-sets/phoneSystem.js.map +1 -1
  450. package/lib/components/ModelCompareV3/data/property-sets/phoneSystem.mjs +3 -2
  451. package/lib/components/ModelCompareV3/data/property-sets/phoneSystem.mjs.map +1 -1
  452. package/lib/components/ModelCompareV3/translations/ar.json.js +44 -45
  453. package/lib/components/ModelCompareV3/translations/ar.json.js.map +1 -1
  454. package/lib/components/ModelCompareV3/translations/ar.json.mjs +44 -45
  455. package/lib/components/ModelCompareV3/translations/ar.json.mjs.map +1 -1
  456. package/lib/components/ModelCompareV3/translations/de.json.js +31 -32
  457. package/lib/components/ModelCompareV3/translations/de.json.js.map +1 -1
  458. package/lib/components/ModelCompareV3/translations/de.json.mjs +31 -32
  459. package/lib/components/ModelCompareV3/translations/de.json.mjs.map +1 -1
  460. package/lib/components/ModelCompareV3/translations/el.json.js +23 -24
  461. package/lib/components/ModelCompareV3/translations/el.json.js.map +1 -1
  462. package/lib/components/ModelCompareV3/translations/el.json.mjs +23 -24
  463. package/lib/components/ModelCompareV3/translations/el.json.mjs.map +1 -1
  464. package/lib/components/ModelCompareV3/translations/en.json.js +2 -4
  465. package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
  466. package/lib/components/ModelCompareV3/translations/en.json.mjs +2 -4
  467. package/lib/components/ModelCompareV3/translations/en.json.mjs.map +1 -1
  468. package/lib/components/ModelCompareV3/translations/es.json.js +21 -22
  469. package/lib/components/ModelCompareV3/translations/es.json.js.map +1 -1
  470. package/lib/components/ModelCompareV3/translations/es.json.mjs +21 -22
  471. package/lib/components/ModelCompareV3/translations/es.json.mjs.map +1 -1
  472. package/lib/components/ModelCompareV3/translations/fr.json.js +19 -20
  473. package/lib/components/ModelCompareV3/translations/fr.json.js.map +1 -1
  474. package/lib/components/ModelCompareV3/translations/fr.json.mjs +19 -20
  475. package/lib/components/ModelCompareV3/translations/fr.json.mjs.map +1 -1
  476. package/lib/components/ModelCompareV3/translations/it.json.js +18 -19
  477. package/lib/components/ModelCompareV3/translations/it.json.js.map +1 -1
  478. package/lib/components/ModelCompareV3/translations/it.json.mjs +18 -19
  479. package/lib/components/ModelCompareV3/translations/it.json.mjs.map +1 -1
  480. package/lib/components/ModelCompareV3/translations/ja.json.js +31 -32
  481. package/lib/components/ModelCompareV3/translations/ja.json.js.map +1 -1
  482. package/lib/components/ModelCompareV3/translations/ja.json.mjs +31 -32
  483. package/lib/components/ModelCompareV3/translations/ja.json.mjs.map +1 -1
  484. package/lib/components/ModelCompareV3/translations/pt-BR.json.js +18 -19
  485. package/lib/components/ModelCompareV3/translations/pt-BR.json.js.map +1 -1
  486. package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs +18 -19
  487. package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs.map +1 -1
  488. package/lib/components/ModelCompareV3/translations/useModelCompareTranslation.d.ts +2 -2
  489. package/lib/components/ModelCompareV3/translations/zh-Hans.json.js +31 -32
  490. package/lib/components/ModelCompareV3/translations/zh-Hans.json.js.map +1 -1
  491. package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs +31 -32
  492. package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs.map +1 -1
  493. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js +44 -45
  494. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js.map +1 -1
  495. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs +44 -45
  496. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs.map +1 -1
  497. package/lib/components/Pagination/Pagination.js +3 -3
  498. package/lib/components/PriceRangeSlider/PriceRangeSlider.js +16 -16
  499. package/lib/components/ProductCard/ProductCard.js +7 -7
  500. package/lib/components/ProductCardPopup/ProductCardPopup.js +8 -8
  501. package/lib/components/ProductCompare/ProductCompare.js +7 -7
  502. package/lib/components/ProductDetails/ProductDetails.js +5 -5
  503. package/lib/components/ProductGrid/ProductGrid.js +10 -10
  504. package/lib/components/ProductKeyFeatures/ProductKeyFeatures.js +3 -3
  505. package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +1 -1
  506. package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +1 -1
  507. package/lib/components/ProductSectionTabs/ProductSectionTabs.js +2 -2
  508. package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +2 -2
  509. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.d.ts +2 -0
  510. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js +81 -0
  511. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js.map +1 -0
  512. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs +73 -0
  513. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs.map +1 -0
  514. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.stories.d.ts +5 -0
  515. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.d.ts +11 -0
  516. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +80 -0
  517. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +1 -0
  518. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +66 -0
  519. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs.map +1 -0
  520. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.types.d.ts +12 -0
  521. package/lib/components/ProductTechSpecsV2/index.d.ts +1 -0
  522. package/lib/components/ProductTechSpecsV2/index.js +6 -0
  523. package/lib/components/ProductTechSpecsV2/index.js.map +1 -0
  524. package/lib/components/ProductTechSpecsV2/index.mjs +3 -0
  525. package/lib/components/ProductTechSpecsV2/index.mjs.map +1 -0
  526. package/lib/components/ProductWizard/Options/Options.js +3 -3
  527. package/lib/components/ProductWizard/ProductWizard.js +2 -2
  528. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js +5 -5
  529. package/lib/components/ProgressCircle/ProgressCircle.js +4 -4
  530. package/lib/components/QuantityControls/QuantityControls.js +6 -6
  531. package/lib/components/QuantityControls/QuantityControls.js.map +1 -1
  532. package/lib/components/QuantityControls/QuantityControls.mjs +2 -2
  533. package/lib/components/QuantityControls/QuantityControls.mjs.map +1 -1
  534. package/lib/components/QuantityControls/QuantityControls.types.d.ts +1 -1
  535. package/lib/components/QuantityInput/QuantityInput.js +6 -1
  536. package/lib/components/QuantityInput/QuantityInput.js.map +1 -1
  537. package/lib/components/QuantityInput/QuantityInput.mjs +6 -1
  538. package/lib/components/QuantityInput/QuantityInput.mjs.map +1 -1
  539. package/lib/components/RelatedProducts/RelatedProducts.js +5 -5
  540. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js +36 -36
  541. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +12 -12
  542. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +5 -5
  543. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CheckboxSection.js +2 -2
  544. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +6 -6
  545. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
  546. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/SliderSection.js +3 -3
  547. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
  548. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
  549. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
  550. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
  551. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +7 -7
  552. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +6 -6
  553. package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.js +9 -9
  554. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.js +10 -10
  555. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +17 -17
  556. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
  557. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
  558. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
  559. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
  560. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
  561. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.js +4 -4
  562. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.mjs +2 -2
  563. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/poe.svg.js +1 -1
  564. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/poe.svg.mjs +2 -2
  565. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/port.svg.js +1 -1
  566. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/port.svg.mjs +2 -2
  567. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +6 -6
  568. package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.js +5 -5
  569. package/lib/components/ScrollWrapper/ScrollWrapper.d.ts +1 -1
  570. package/lib/components/ScrollWrapper/ScrollWrapper.js +33 -25
  571. package/lib/components/ScrollWrapper/ScrollWrapper.js.map +1 -1
  572. package/lib/components/ScrollWrapper/ScrollWrapper.mjs +16 -8
  573. package/lib/components/ScrollWrapper/ScrollWrapper.mjs.map +1 -1
  574. package/lib/components/ScrollWrapper/ScrollWrapper.types.d.ts +2 -0
  575. package/lib/components/Search/Input/Input.d.ts +1 -1
  576. package/lib/components/Search/Input/Input.js +8 -8
  577. package/lib/components/Search/Input/Input.js.map +1 -1
  578. package/lib/components/Search/Input/Input.mjs +4 -4
  579. package/lib/components/Search/Input/Input.mjs.map +1 -1
  580. package/lib/components/Search/Input/Input.styles.js +0 -1
  581. package/lib/components/Search/Input/Input.styles.js.map +1 -1
  582. package/lib/components/Search/Input/Input.styles.mjs +0 -1
  583. package/lib/components/Search/Input/Input.styles.mjs.map +1 -1
  584. package/lib/components/Search/Input/Input.types.d.ts +3 -2
  585. package/lib/components/Search/Modal/Modal.js +3 -3
  586. package/lib/components/StorageSliders/Slider/Slider.js +3 -3
  587. package/lib/components/StorageSliders/StorageSliders.context.js +20 -20
  588. package/lib/components/StorageSliders/StorageSliders.js +4 -4
  589. package/lib/components/Tooltip/Tooltip.js +5 -5
  590. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js +7 -7
  591. package/lib/components/VariantSelector/Variant/Variant.js +40 -40
  592. package/lib/components/VariantSelector/VariantSelector.js +16 -16
  593. package/lib/components/VideoPlayerNew/VideoPlayer.js +19 -19
  594. package/lib/components/index.d.ts +1 -0
  595. package/lib/components/index.js +2 -0
  596. package/lib/components/index.js.map +1 -1
  597. package/lib/components/index.mjs +2 -0
  598. package/lib/components/index.mjs.map +1 -1
  599. package/lib/constants/proStoreCategories/mapping/filters.d.ts +17 -0
  600. package/lib/constants/proStoreCategories/mapping/filters.js +17 -0
  601. package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
  602. package/lib/constants/proStoreCategories/mapping/filters.mjs +17 -0
  603. package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
  604. package/lib/constants/proStoreCategories/mapping/index.d.ts +2 -0
  605. package/lib/constants/proStoreCategories/mapping/index.js +20 -6
  606. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  607. package/lib/constants/proStoreCategories/mapping/index.mjs +20 -6
  608. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  609. package/lib/constants/proStoreCategories/mapping/mapping.d.ts +5 -0
  610. package/lib/constants/proStoreCategories/mapping/unifi.d.ts +2 -0
  611. package/lib/constants/proStoreCategories/mapping/unifi.js +2 -0
  612. package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
  613. package/lib/constants/proStoreCategories/mapping/unifi.mjs +2 -0
  614. package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
  615. package/lib/constants/proStoreCategories/translations/ar.json.js +5 -4
  616. package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
  617. package/lib/constants/proStoreCategories/translations/ar.json.mjs +5 -4
  618. package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
  619. package/lib/constants/proStoreCategories/translations/de.json.js +5 -4
  620. package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
  621. package/lib/constants/proStoreCategories/translations/de.json.mjs +5 -4
  622. package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
  623. package/lib/constants/proStoreCategories/translations/el.json.js +6 -5
  624. package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
  625. package/lib/constants/proStoreCategories/translations/el.json.mjs +6 -5
  626. package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
  627. package/lib/constants/proStoreCategories/translations/en.json.js +5 -1
  628. package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
  629. package/lib/constants/proStoreCategories/translations/en.json.mjs +5 -2
  630. package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
  631. package/lib/constants/proStoreCategories/translations/es.json.js +5 -4
  632. package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
  633. package/lib/constants/proStoreCategories/translations/es.json.mjs +5 -4
  634. package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
  635. package/lib/constants/proStoreCategories/translations/fr.json.js +5 -1
  636. package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
  637. package/lib/constants/proStoreCategories/translations/fr.json.mjs +5 -2
  638. package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
  639. package/lib/constants/proStoreCategories/translations/it.json.js +5 -4
  640. package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
  641. package/lib/constants/proStoreCategories/translations/it.json.mjs +5 -4
  642. package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
  643. package/lib/constants/proStoreCategories/translations/ja.json.js +5 -4
  644. package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
  645. package/lib/constants/proStoreCategories/translations/ja.json.mjs +5 -4
  646. package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
  647. package/lib/constants/proStoreCategories/translations/pt-BR.json.js +5 -4
  648. package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
  649. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +5 -4
  650. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
  651. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +5 -1
  652. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
  653. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +5 -2
  654. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
  655. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +5 -1
  656. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
  657. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +5 -2
  658. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
  659. package/lib/constants/proStoreFilters/mapping.d.ts +43 -7
  660. package/lib/constants/proStoreFilters/mapping.js +129 -15
  661. package/lib/constants/proStoreFilters/mapping.js.map +1 -1
  662. package/lib/constants/proStoreFilters/mapping.mjs +129 -15
  663. package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
  664. package/lib/constants/theme.js +4 -0
  665. package/lib/constants/theme.js.map +1 -1
  666. package/lib/constants/theme.mjs +4 -0
  667. package/lib/constants/theme.mjs.map +1 -1
  668. package/lib/contexts/MenuContext/context.js +34 -34
  669. package/lib/contexts/MenuContext/context.js.map +1 -1
  670. package/lib/contexts/MenuContext/context.mjs +1 -1
  671. package/lib/contexts/MenuContext/context.mjs.map +1 -1
  672. package/lib/contexts/MenuContext/mapping.js +1 -0
  673. package/lib/contexts/MenuContext/mapping.js.map +1 -1
  674. package/lib/contexts/MenuContext/mapping.mjs +1 -0
  675. package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
  676. package/lib/contexts/MenuContext/presets.d.ts +1 -1
  677. package/lib/contexts/MenuContext/presets.js +2 -4
  678. package/lib/contexts/MenuContext/presets.js.map +1 -1
  679. package/lib/contexts/MenuContext/presets.mjs +2 -4
  680. package/lib/contexts/MenuContext/presets.mjs.map +1 -1
  681. package/lib/helpers/index.d.ts +0 -1
  682. package/lib/helpers/index.js +1 -11
  683. package/lib/helpers/index.js.map +1 -1
  684. package/lib/helpers/index.mjs +1 -2
  685. package/lib/helpers/index.mjs.map +1 -1
  686. package/lib/helpers/proStoreCategories.js +2 -2
  687. package/lib/helpers/ux.d.ts +8 -0
  688. package/lib/helpers/ux.js +15 -0
  689. package/lib/helpers/ux.js.map +1 -1
  690. package/lib/helpers/ux.mjs +15 -1
  691. package/lib/helpers/ux.mjs.map +1 -1
  692. package/lib/hooks/useHasTouch.js +3 -3
  693. package/lib/hooks/useHddRetentionCalculator.js +5 -5
  694. package/lib/hooks/useHorizontalScroll.js +2 -2
  695. package/lib/hooks/useLockBodyScrollCustom.js +3 -3
  696. package/lib/hooks/useScrollToY.js +2 -2
  697. package/lib/hooks/useTestMediaElementVolumeSetter.js +3 -3
  698. package/lib/hooks/useTranslation.js +6 -6
  699. package/lib/types/generated.d.ts +1 -1
  700. package/lib/types/generated.js.map +1 -1
  701. package/lib/types/generated.mjs.map +1 -1
  702. package/lib/types/index.d.ts +0 -1
  703. package/lib/types/index.js +0 -2
  704. package/lib/types/index.js.map +1 -1
  705. package/lib/types/index.mjs +0 -1
  706. package/lib/types/index.mjs.map +1 -1
  707. package/lib/utils/address.d.ts +62 -278
  708. package/lib/utils/address.js +8 -11
  709. package/lib/utils/address.js.map +1 -1
  710. package/lib/utils/address.mjs +8 -11
  711. package/lib/utils/address.mjs.map +1 -1
  712. package/lib/utils/array.d.ts +0 -4
  713. package/lib/utils/array.js +0 -10
  714. package/lib/utils/array.js.map +1 -1
  715. package/lib/utils/array.mjs +1 -10
  716. package/lib/utils/array.mjs.map +1 -1
  717. package/lib/utils/nextjs/ssr/registry.js +2 -2
  718. package/package.json +1 -1
  719. package/lib/assets/crestron.svg +0 -3
  720. package/lib/assets/icons/menu/icon-globe.svg.js.map +0 -1
  721. package/lib/assets/icons/menu/icon-globe.svg.mjs +0 -3
  722. package/lib/assets/icons/menu/icon-globe.svg.mjs.map +0 -1
  723. package/lib/components/ModelCompareV3/assets/crestron.svg.js.map +0 -1
  724. package/lib/components/ModelCompareV3/assets/crestron.svg.mjs +0 -3
  725. package/lib/components/ModelCompareV3/assets/crestron.svg.mjs.map +0 -1
  726. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.d.ts +0 -2
  727. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.js +0 -18
  728. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.js.map +0 -1
  729. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.mjs +0 -10
  730. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.mjs.map +0 -1
  731. package/lib/components/ModelCompareV3/data/properties/highPerformanceSpeaker.d.ts +0 -2
  732. package/lib/components/ModelCompareV3/data/properties/highPerformanceSpeaker.js +0 -18
  733. package/lib/components/ModelCompareV3/data/properties/highPerformanceSpeaker.js.map +0 -1
  734. package/lib/components/ModelCompareV3/data/properties/highPerformanceSpeaker.mjs +0 -10
  735. package/lib/components/ModelCompareV3/data/properties/highPerformanceSpeaker.mjs.map +0 -1
  736. package/lib/helpers/product.d.ts +0 -87
  737. package/lib/helpers/product.js +0 -346
  738. package/lib/helpers/product.js.map +0 -1
  739. package/lib/helpers/product.mjs +0 -335
  740. package/lib/helpers/product.mjs.map +0 -1
  741. package/lib/helpers/product.test.d.ts +0 -1
  742. package/lib/types/product.d.ts +0 -87
  743. package/lib/types/product.js +0 -14
  744. package/lib/types/product.js.map +0 -1
  745. package/lib/types/product.mjs +0 -13
  746. package/lib/types/product.mjs.map +0 -1
  747. package/lib/utils/productSort.d.ts +0 -41
  748. package/lib/utils/productSort.js +0 -67
  749. package/lib/utils/productSort.js.map +0 -1
  750. package/lib/utils/productSort.mjs +0 -60
  751. package/lib/utils/productSort.mjs.map +0 -1
  752. package/lib/utils/validations/lastNameSuperRefinement.d.ts +0 -11
  753. package/lib/utils/validations/lastNameSuperRefinement.js +0 -25
  754. package/lib/utils/validations/lastNameSuperRefinement.js.map +0 -1
  755. package/lib/utils/validations/lastNameSuperRefinement.mjs +0 -21
  756. 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;"}