@ubnt/store.core 9.40.0-beta.1 → 9.40.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 (747) hide show
  1. package/CHANGELOG.md +43 -338
  2. package/lib/_virtual/_virtual_multi-entry.js +2 -15
  3. package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
  4. package/lib/_virtual/_virtual_multi-entry.mjs +0 -2
  5. package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
  6. package/lib/apis/smartcat.js.map +1 -1
  7. package/lib/apis/smartcat.mjs.map +1 -1
  8. package/lib/assets/attention.svg +5 -5
  9. package/lib/assets/attention2.svg +5 -5
  10. package/lib/assets/close2.svg +3 -2
  11. package/lib/assets/close3.svg +2 -3
  12. package/lib/assets/icon-location-pin.svg +5 -0
  13. package/lib/{components/ModelCompareV3/assets/crestron.svg.js → assets/icons/menu/icon-location-pin.svg.js} +6 -6
  14. package/lib/assets/icons/menu/icon-location-pin.svg.js.map +1 -0
  15. package/lib/assets/icons/menu/icon-location-pin.svg.mjs +3 -0
  16. package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +1 -0
  17. package/lib/assets/logoUnifi.svg +10 -2
  18. package/lib/components/Accordion/Accordion.js.map +1 -1
  19. package/lib/components/Accordion/Accordion.mjs.map +1 -1
  20. package/lib/components/Accordion/Accordion.styles.js.map +1 -1
  21. package/lib/components/Accordion/Accordion.styles.mjs.map +1 -1
  22. package/lib/components/Avatar/Avatar.js.map +1 -1
  23. package/lib/components/Avatar/Avatar.mjs.map +1 -1
  24. package/lib/components/Banner/Banner.styles.js.map +1 -1
  25. package/lib/components/Banner/Banner.styles.mjs.map +1 -1
  26. package/lib/components/ButtonGroup/ButtonGroup.js.map +1 -1
  27. package/lib/components/ButtonGroup/ButtonGroup.mjs.map +1 -1
  28. package/lib/components/ButtonGroup/ButtonGroup.styles.js.map +1 -1
  29. package/lib/components/ButtonGroup/ButtonGroup.styles.mjs.map +1 -1
  30. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js.map +1 -1
  31. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs.map +1 -1
  32. package/lib/components/CardSection/CardSection.styles.d.ts +1 -1
  33. package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +4 -2
  34. package/lib/components/CategoryTabs/CategoryTabs.styles.js +8 -5
  35. package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
  36. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +7 -6
  37. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
  38. package/lib/components/CloserLookSection/CloserLookSection.js.map +1 -1
  39. package/lib/components/CloserLookSection/CloserLookSection.mjs.map +1 -1
  40. package/lib/components/CloserLookSection/CloserLookSection.styles.js.map +1 -1
  41. package/lib/components/CloserLookSection/CloserLookSection.styles.mjs.map +1 -1
  42. package/lib/components/Compare/Compare.styles.d.ts +5 -5
  43. package/lib/components/Container/Container.d.ts +1 -1
  44. package/lib/components/Container/Container.js +4 -3
  45. package/lib/components/Container/Container.js.map +1 -1
  46. package/lib/components/Container/Container.mjs +5 -4
  47. package/lib/components/Container/Container.mjs.map +1 -1
  48. package/lib/components/Container/Container.styles.js.map +1 -1
  49. package/lib/components/Container/Container.styles.mjs.map +1 -1
  50. package/lib/components/CustomImage/CustomImage.js +1 -1
  51. package/lib/components/CustomImage/CustomImage.js.map +1 -1
  52. package/lib/components/CustomImage/CustomImage.mjs +1 -1
  53. package/lib/components/CustomImage/CustomImage.mjs.map +1 -1
  54. package/lib/components/CustomImage/CustomImage.styles.js.map +1 -1
  55. package/lib/components/CustomImage/CustomImage.styles.mjs.map +1 -1
  56. package/lib/components/Explore/Explore.js.map +1 -1
  57. package/lib/components/Explore/Explore.mjs.map +1 -1
  58. package/lib/components/Explore/ExploreData.js.map +1 -1
  59. package/lib/components/Explore/ExploreData.mjs.map +1 -1
  60. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +1 -1
  61. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js.map +1 -1
  62. package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
  63. package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs.map +1 -1
  64. package/lib/components/FeaturesSection_deprecated/FeaturesSection.styles.js.map +1 -1
  65. package/lib/components/FeaturesSection_deprecated/FeaturesSection.styles.mjs.map +1 -1
  66. package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
  67. package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
  68. package/lib/components/Footer/Footer.js +1 -1
  69. package/lib/components/Footer/Footer.js.map +1 -1
  70. package/lib/components/Footer/Footer.mjs +1 -1
  71. package/lib/components/Footer/Footer.mjs.map +1 -1
  72. package/lib/components/Footer/Footer.styles.js.map +1 -1
  73. package/lib/components/Footer/Footer.styles.mjs.map +1 -1
  74. package/lib/components/Gallery/Gallery.js.map +1 -1
  75. package/lib/components/Gallery/Gallery.mjs.map +1 -1
  76. package/lib/components/Gallery/Gallery.styles.js.map +1 -1
  77. package/lib/components/Gallery/Gallery.styles.mjs.map +1 -1
  78. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.js.map +1 -1
  79. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.mjs.map +1 -1
  80. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.styles.js.map +1 -1
  81. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.styles.mjs.map +1 -1
  82. package/lib/components/GradientButton/GradientButton.styles.js.map +1 -1
  83. package/lib/components/GradientButton/GradientButton.styles.mjs.map +1 -1
  84. package/lib/components/GridGallery/GridGallery.js.map +1 -1
  85. package/lib/components/GridGallery/GridGallery.mjs.map +1 -1
  86. package/lib/components/Header/AccountFrame/AccountFrame.js.map +1 -1
  87. package/lib/components/Header/AccountFrame/AccountFrame.mjs.map +1 -1
  88. package/lib/components/Header/AccountFrame/AccountFrame.styles.js.map +1 -1
  89. package/lib/components/Header/AccountFrame/AccountFrame.styles.mjs.map +1 -1
  90. package/lib/components/Header/AccountMenu/AccountMenu.js +11 -1
  91. package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
  92. package/lib/components/Header/AccountMenu/AccountMenu.mjs +13 -3
  93. package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
  94. package/lib/components/Header/AccountMenu/megaphone.http.service.js.map +1 -1
  95. package/lib/components/Header/AccountMenu/megaphone.http.service.mjs.map +1 -1
  96. package/lib/components/Header/CartModalV2/Item/Item.js.map +1 -1
  97. package/lib/components/Header/CartModalV2/Item/Item.mjs.map +1 -1
  98. package/lib/components/Header/Header.js +6 -6
  99. package/lib/components/Header/Header.js.map +1 -1
  100. package/lib/components/Header/Header.mjs +6 -6
  101. package/lib/components/Header/Header.mjs.map +1 -1
  102. package/lib/components/Header/Header.styles.d.ts +7 -12
  103. package/lib/components/Header/Header.styles.js +10 -32
  104. package/lib/components/Header/Header.styles.js.map +1 -1
  105. package/lib/components/Header/Header.styles.mjs +10 -31
  106. package/lib/components/Header/Header.styles.mjs.map +1 -1
  107. package/lib/components/Header/Header.types.d.ts +29 -5
  108. package/lib/components/Header/Header.types.js +2 -1
  109. package/lib/components/Header/Header.types.js.map +1 -1
  110. package/lib/components/Header/Header.types.mjs +2 -1
  111. package/lib/components/Header/Header.types.mjs.map +1 -1
  112. package/lib/components/Header/IsolatedHeader.d.ts +1 -0
  113. package/lib/components/Header/IsolatedHeader.js +44 -44
  114. package/lib/components/Header/IsolatedHeader.js.map +1 -1
  115. package/lib/components/Header/IsolatedHeader.mjs +47 -46
  116. package/lib/components/Header/IsolatedHeader.mjs.map +1 -1
  117. package/lib/components/Header/LanguageFrame/LanguageFrame.js.map +1 -1
  118. package/lib/components/Header/LanguageFrame/LanguageFrame.mjs.map +1 -1
  119. package/lib/components/Header/LanguageFrame/LanguageFrame.styles.js.map +1 -1
  120. package/lib/components/Header/LanguageFrame/LanguageFrame.styles.mjs.map +1 -1
  121. package/lib/components/Header/LogoIcon/LogoIcon.d.ts +7 -0
  122. package/lib/components/Header/LogoIcon/LogoIcon.js +46 -0
  123. package/lib/components/Header/LogoIcon/LogoIcon.js.map +1 -0
  124. package/lib/components/Header/LogoIcon/LogoIcon.mjs +36 -0
  125. package/lib/components/Header/LogoIcon/LogoIcon.mjs.map +1 -0
  126. package/lib/components/Header/LogoIcon/index.d.ts +1 -0
  127. package/lib/components/Header/LogoIcon/index.js +6 -0
  128. package/lib/components/Header/LogoIcon/index.js.map +1 -0
  129. package/lib/components/Header/LogoIcon/index.mjs +3 -0
  130. package/lib/components/Header/LogoIcon/index.mjs.map +1 -0
  131. package/lib/components/Header/MenuItem/MenuItem.styles.d.ts +1 -1
  132. package/lib/components/Header/MenuItem/MenuItem.styles.js +3 -3
  133. package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
  134. package/lib/components/Header/MenuItem/MenuItem.styles.mjs +3 -3
  135. package/lib/components/Header/MenuItem/MenuItem.styles.mjs.map +1 -1
  136. package/lib/components/Header/MenuItem/MenuItem.types.d.ts +1 -0
  137. package/lib/components/Header/Navigation/Carousel/Carousel.js.map +1 -1
  138. package/lib/components/Header/Navigation/Carousel/Carousel.mjs.map +1 -1
  139. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
  140. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +1 -1
  141. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.js.map +1 -1
  142. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.mjs.map +1 -1
  143. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
  144. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +110 -103
  145. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
  146. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +111 -104
  147. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
  148. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +9 -0
  149. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +15 -1
  150. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
  151. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +13 -2
  152. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
  153. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +12 -6
  154. package/lib/components/Header/ProHeader/ProHeader.d.ts +9 -5
  155. package/lib/components/Header/ProHeader/ProHeader.js +249 -168
  156. package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
  157. package/lib/components/Header/ProHeader/ProHeader.mjs +250 -170
  158. package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
  159. package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +30 -25
  160. package/lib/components/Header/ProHeader/ProHeader.styles.js +119 -66
  161. package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
  162. package/lib/components/Header/ProHeader/ProHeader.styles.mjs +112 -65
  163. package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
  164. package/lib/components/Header/translations/ar.json.js +4 -1
  165. package/lib/components/Header/translations/ar.json.js.map +1 -1
  166. package/lib/components/Header/translations/ar.json.mjs +4 -2
  167. package/lib/components/Header/translations/ar.json.mjs.map +1 -1
  168. package/lib/components/Header/translations/de.json.js +4 -1
  169. package/lib/components/Header/translations/de.json.js.map +1 -1
  170. package/lib/components/Header/translations/de.json.mjs +4 -2
  171. package/lib/components/Header/translations/de.json.mjs.map +1 -1
  172. package/lib/components/Header/translations/el.json.js +4 -1
  173. package/lib/components/Header/translations/el.json.js.map +1 -1
  174. package/lib/components/Header/translations/el.json.mjs +4 -2
  175. package/lib/components/Header/translations/el.json.mjs.map +1 -1
  176. package/lib/components/Header/translations/en.json.js +7 -1
  177. package/lib/components/Header/translations/en.json.js.map +1 -1
  178. package/lib/components/Header/translations/en.json.mjs +6 -2
  179. package/lib/components/Header/translations/en.json.mjs.map +1 -1
  180. package/lib/components/Header/translations/es.json.js +4 -1
  181. package/lib/components/Header/translations/es.json.js.map +1 -1
  182. package/lib/components/Header/translations/es.json.mjs +4 -2
  183. package/lib/components/Header/translations/es.json.mjs.map +1 -1
  184. package/lib/components/Header/translations/fr.json.js +4 -1
  185. package/lib/components/Header/translations/fr.json.js.map +1 -1
  186. package/lib/components/Header/translations/fr.json.mjs +4 -2
  187. package/lib/components/Header/translations/fr.json.mjs.map +1 -1
  188. package/lib/components/Header/translations/it.json.js +4 -1
  189. package/lib/components/Header/translations/it.json.js.map +1 -1
  190. package/lib/components/Header/translations/it.json.mjs +4 -2
  191. package/lib/components/Header/translations/it.json.mjs.map +1 -1
  192. package/lib/components/Header/translations/ja.json.js +4 -1
  193. package/lib/components/Header/translations/ja.json.js.map +1 -1
  194. package/lib/components/Header/translations/ja.json.mjs +4 -2
  195. package/lib/components/Header/translations/ja.json.mjs.map +1 -1
  196. package/lib/components/Header/translations/pt-BR.json.js +4 -1
  197. package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
  198. package/lib/components/Header/translations/pt-BR.json.mjs +4 -2
  199. package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
  200. package/lib/components/Header/translations/zh-Hans.json.js +4 -1
  201. package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
  202. package/lib/components/Header/translations/zh-Hans.json.mjs +4 -2
  203. package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
  204. package/lib/components/Header/translations/zh-Hant-TW.json.js +4 -1
  205. package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
  206. package/lib/components/Header/translations/zh-Hant-TW.json.mjs +4 -2
  207. package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
  208. package/lib/components/Hero/Hero.js.map +1 -1
  209. package/lib/components/Hero/Hero.mjs.map +1 -1
  210. package/lib/components/Hero/Hero.styles.d.ts +2 -2
  211. package/lib/components/Hero/Hero.styles.js.map +1 -1
  212. package/lib/components/Hero/Hero.styles.mjs.map +1 -1
  213. package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +1 -1
  214. package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +2 -2
  215. package/lib/components/ImageCarousel/ImageCarousel.styles.js.map +1 -1
  216. package/lib/components/ImageCarousel/ImageCarousel.styles.mjs.map +1 -1
  217. package/lib/components/LandingPage/Cards/Card/Card.js.map +1 -1
  218. package/lib/components/LandingPage/Cards/Card/Card.mjs.map +1 -1
  219. package/lib/components/LandingPage/Cards/Cards.js.map +1 -1
  220. package/lib/components/LandingPage/Cards/Cards.mjs.map +1 -1
  221. package/lib/components/LandingPage/Cards/Cards.styles.js.map +1 -1
  222. package/lib/components/LandingPage/Cards/Cards.styles.mjs.map +1 -1
  223. package/lib/components/LandingPage/LandingPage.js.map +1 -1
  224. package/lib/components/LandingPage/LandingPage.mjs.map +1 -1
  225. package/lib/components/LandingPagePro/LandingPagePro.js.map +1 -1
  226. package/lib/components/LandingPagePro/LandingPagePro.mjs.map +1 -1
  227. package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +1 -1
  228. package/lib/components/LandingPageSearch/Modal/Modal.js.map +1 -1
  229. package/lib/components/LandingPageSearch/Modal/Modal.mjs.map +1 -1
  230. package/lib/components/LandingPageSidebar/LandingPageSidebar.js.map +1 -1
  231. package/lib/components/LandingPageSidebar/LandingPageSidebar.mjs.map +1 -1
  232. package/lib/components/LandingPageSidebar/LandingPageSidebar.styles.js.map +1 -1
  233. package/lib/components/LandingPageSidebar/LandingPageSidebar.styles.mjs.map +1 -1
  234. package/lib/components/LayoutRenderer/LayoutRenderer.styles.d.ts +1 -1
  235. package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +3 -3
  236. package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +3 -3
  237. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.helpers.js.map +1 -1
  238. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.helpers.mjs.map +1 -1
  239. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.d.ts +1 -1
  240. package/lib/components/MicrositeExploreCards/MicrositeExploreCards.styles.js.map +1 -1
  241. package/lib/components/MicrositeExploreCards/MicrositeExploreCards.styles.mjs.map +1 -1
  242. package/lib/components/MicrositeFeatureList/MicrositeFeatureList.styles.js.map +1 -1
  243. package/lib/components/MicrositeFeatureList/MicrositeFeatureList.styles.mjs.map +1 -1
  244. package/lib/components/MicrositeHero/MicrositeHero.js.map +1 -1
  245. package/lib/components/MicrositeHero/MicrositeHero.mjs.map +1 -1
  246. package/lib/components/MicrositeHero/MicrositeHero.styles.js.map +1 -1
  247. package/lib/components/MicrositeHero/MicrositeHero.styles.mjs.map +1 -1
  248. package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.styles.js.map +1 -1
  249. package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.styles.mjs.map +1 -1
  250. package/lib/components/MicrositeProductGrid/MicrositeProductGrid.styles.js.map +1 -1
  251. package/lib/components/MicrositeProductGrid/MicrositeProductGrid.styles.mjs.map +1 -1
  252. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlockWrap.js.map +1 -1
  253. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlockWrap.mjs.map +1 -1
  254. package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +1 -1
  255. package/lib/components/Microsites/MicrositeProductPage.js.map +1 -1
  256. package/lib/components/Microsites/MicrositeProductPage.mjs.map +1 -1
  257. package/lib/components/MobileModal/MobileModal.styles.js.map +1 -1
  258. package/lib/components/MobileModal/MobileModal.styles.mjs.map +1 -1
  259. package/lib/components/ModelCompareV3/HeaderShadow.js.map +1 -1
  260. package/lib/components/ModelCompareV3/HeaderShadow.mjs.map +1 -1
  261. package/lib/components/ModelCompareV3/ModelCompareV3.js.map +1 -1
  262. package/lib/components/ModelCompareV3/ModelCompareV3.mjs.map +1 -1
  263. package/lib/components/ModelCompareV3/ModelCompareV3.styles.js.map +1 -1
  264. package/lib/components/ModelCompareV3/ModelCompareV3.styles.mjs.map +1 -1
  265. package/lib/components/ModelCompareV3/ModelCompareV3.types.d.ts +0 -1
  266. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js +2 -3
  267. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js.map +1 -1
  268. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs +2 -3
  269. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs.map +1 -1
  270. package/lib/components/ModelCompareV3/data/MegaCapacityWiFI.js +1 -1
  271. package/lib/components/ModelCompareV3/data/MegaCapacityWiFI.js.map +1 -1
  272. package/lib/components/ModelCompareV3/data/MegaCapacityWiFI.mjs +1 -1
  273. package/lib/components/ModelCompareV3/data/MegaCapacityWiFI.mjs.map +1 -1
  274. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.js +3 -10
  275. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.js.map +1 -1
  276. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.mjs +3 -10
  277. package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.mjs.map +1 -1
  278. package/lib/components/ModelCompareV3/data/Switching.js +2 -3
  279. package/lib/components/ModelCompareV3/data/Switching.js.map +1 -1
  280. package/lib/components/ModelCompareV3/data/Switching.mjs +2 -3
  281. package/lib/components/ModelCompareV3/data/Switching.mjs.map +1 -1
  282. package/lib/components/ModelCompareV3/data/products/UispRouter.js.map +1 -1
  283. package/lib/components/ModelCompareV3/data/products/UispRouter.mjs.map +1 -1
  284. package/lib/components/ModelCompareV3/data/products/UispRouterPro.js.map +1 -1
  285. package/lib/components/ModelCompareV3/data/products/UispRouterPro.mjs.map +1 -1
  286. package/lib/components/ModelCompareV3/data/products/aggregation.js +0 -7
  287. package/lib/components/ModelCompareV3/data/products/aggregation.js.map +1 -1
  288. package/lib/components/ModelCompareV3/data/products/aggregation.mjs +0 -7
  289. package/lib/components/ModelCompareV3/data/products/aggregation.mjs.map +1 -1
  290. package/lib/components/ModelCompareV3/data/products/airFiber11.js.map +1 -1
  291. package/lib/components/ModelCompareV3/data/products/airFiber11.mjs.map +1 -1
  292. package/lib/components/ModelCompareV3/data/products/airFiber24.js.map +1 -1
  293. package/lib/components/ModelCompareV3/data/products/airFiber24.mjs.map +1 -1
  294. package/lib/components/ModelCompareV3/data/products/airFiber24HiDensity.js.map +1 -1
  295. package/lib/components/ModelCompareV3/data/products/airFiber24HiDensity.mjs.map +1 -1
  296. package/lib/components/ModelCompareV3/data/products/airFiber2X.js.map +1 -1
  297. package/lib/components/ModelCompareV3/data/products/airFiber2X.mjs.map +1 -1
  298. package/lib/components/ModelCompareV3/data/products/airFiber5.js.map +1 -1
  299. package/lib/components/ModelCompareV3/data/products/airFiber5.mjs.map +1 -1
  300. package/lib/components/ModelCompareV3/data/products/airMAX5GHz16dBi120Sector.js.map +1 -1
  301. package/lib/components/ModelCompareV3/data/products/airMAX5GHz16dBi120Sector.mjs.map +1 -1
  302. package/lib/components/ModelCompareV3/data/products/airMAX5GHz17dBi90Sector.js.map +1 -1
  303. package/lib/components/ModelCompareV3/data/products/airMAX5GHz17dBi90Sector.mjs.map +1 -1
  304. package/lib/components/ModelCompareV3/data/products/airMAX5GHz19dBi120Sector.js.map +1 -1
  305. package/lib/components/ModelCompareV3/data/products/airMAX5GHz19dBi120Sector.mjs.map +1 -1
  306. package/lib/components/ModelCompareV3/data/products/airMAX5GHz20dBi90Sector.js.map +1 -1
  307. package/lib/components/ModelCompareV3/data/products/airMAX5GHz20dBi90Sector.mjs.map +1 -1
  308. package/lib/components/ModelCompareV3/data/products/baseStationXG.js.map +1 -1
  309. package/lib/components/ModelCompareV3/data/products/baseStationXG.mjs.map +1 -1
  310. package/lib/components/ModelCompareV3/data/products/buildingBridge.js.map +1 -1
  311. package/lib/components/ModelCompareV3/data/products/buildingBridge.mjs.map +1 -1
  312. package/lib/components/ModelCompareV3/data/products/buildingBridgeXG.js.map +1 -1
  313. package/lib/components/ModelCompareV3/data/products/buildingBridgeXG.mjs.map +1 -1
  314. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js +1 -1
  315. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js.map +1 -1
  316. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs +1 -1
  317. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs.map +1 -1
  318. package/lib/components/ModelCompareV3/data/products/e7.js +1 -1
  319. package/lib/components/ModelCompareV3/data/products/e7.js.map +1 -1
  320. package/lib/components/ModelCompareV3/data/products/e7.mjs +1 -1
  321. package/lib/components/ModelCompareV3/data/products/e7.mjs.map +1 -1
  322. package/lib/components/ModelCompareV3/data/products/e7Campus.js +2 -2
  323. package/lib/components/ModelCompareV3/data/products/e7Campus.js.map +1 -1
  324. package/lib/components/ModelCompareV3/data/products/e7Campus.mjs +2 -2
  325. package/lib/components/ModelCompareV3/data/products/e7Campus.mjs.map +1 -1
  326. package/lib/components/ModelCompareV3/data/products/edgePointR6.js.map +1 -1
  327. package/lib/components/ModelCompareV3/data/products/edgePointR6.mjs.map +1 -1
  328. package/lib/components/ModelCompareV3/data/products/edgePointR8.js.map +1 -1
  329. package/lib/components/ModelCompareV3/data/products/edgePointR8.mjs.map +1 -1
  330. package/lib/components/ModelCompareV3/data/products/edgePointS16Switch.js.map +1 -1
  331. package/lib/components/ModelCompareV3/data/products/edgePointS16Switch.mjs.map +1 -1
  332. package/lib/components/ModelCompareV3/data/products/edgeRouter10x.js.map +1 -1
  333. package/lib/components/ModelCompareV3/data/products/edgeRouter10x.mjs.map +1 -1
  334. package/lib/components/ModelCompareV3/data/products/edgeRouter12.js.map +1 -1
  335. package/lib/components/ModelCompareV3/data/products/edgeRouter12.mjs.map +1 -1
  336. package/lib/components/ModelCompareV3/data/products/edgeRouter12p.js.map +1 -1
  337. package/lib/components/ModelCompareV3/data/products/edgeRouter12p.mjs.map +1 -1
  338. package/lib/components/ModelCompareV3/data/products/edgeRouter4.js.map +1 -1
  339. package/lib/components/ModelCompareV3/data/products/edgeRouter4.mjs.map +1 -1
  340. package/lib/components/ModelCompareV3/data/products/edgeRouter6Poe.js.map +1 -1
  341. package/lib/components/ModelCompareV3/data/products/edgeRouter6Poe.mjs.map +1 -1
  342. package/lib/components/ModelCompareV3/data/products/edgeRouterInfinity.js.map +1 -1
  343. package/lib/components/ModelCompareV3/data/products/edgeRouterInfinity.mjs.map +1 -1
  344. package/lib/components/ModelCompareV3/data/products/edgeRouterX.js.map +1 -1
  345. package/lib/components/ModelCompareV3/data/products/edgeRouterX.mjs.map +1 -1
  346. package/lib/components/ModelCompareV3/data/products/edgeRouterXSfp.js.map +1 -1
  347. package/lib/components/ModelCompareV3/data/products/edgeRouterXSfp.mjs.map +1 -1
  348. package/lib/components/ModelCompareV3/data/products/edgeSwitch10x.js.map +1 -1
  349. package/lib/components/ModelCompareV3/data/products/edgeSwitch10x.mjs.map +1 -1
  350. package/lib/components/ModelCompareV3/data/products/edgeSwitch10xp.js.map +1 -1
  351. package/lib/components/ModelCompareV3/data/products/edgeSwitch10xp.mjs.map +1 -1
  352. package/lib/components/ModelCompareV3/data/products/edgeSwitch16xg.js.map +1 -1
  353. package/lib/components/ModelCompareV3/data/products/edgeSwitch16xg.mjs.map +1 -1
  354. package/lib/components/ModelCompareV3/data/products/edgeSwitch16xp.js.map +1 -1
  355. package/lib/components/ModelCompareV3/data/products/edgeSwitch16xp.mjs.map +1 -1
  356. package/lib/components/ModelCompareV3/data/products/edgeSwitch16xpoe150.js.map +1 -1
  357. package/lib/components/ModelCompareV3/data/products/edgeSwitch16xpoe150.mjs.map +1 -1
  358. package/lib/components/ModelCompareV3/data/products/edgeSwitch18x.js.map +1 -1
  359. package/lib/components/ModelCompareV3/data/products/edgeSwitch18x.mjs.map +1 -1
  360. package/lib/components/ModelCompareV3/data/products/edgeSwitch24lite.js.map +1 -1
  361. package/lib/components/ModelCompareV3/data/products/edgeSwitch24lite.mjs.map +1 -1
  362. package/lib/components/ModelCompareV3/data/products/edgeSwitch24poe-500.js.map +1 -1
  363. package/lib/components/ModelCompareV3/data/products/edgeSwitch24poe-500.mjs.map +1 -1
  364. package/lib/components/ModelCompareV3/data/products/edgeSwitch24poe.js.map +1 -1
  365. package/lib/components/ModelCompareV3/data/products/edgeSwitch24poe.mjs.map +1 -1
  366. package/lib/components/ModelCompareV3/data/products/edgeSwitch48lite.js.map +1 -1
  367. package/lib/components/ModelCompareV3/data/products/edgeSwitch48lite.mjs.map +1 -1
  368. package/lib/components/ModelCompareV3/data/products/edgeSwitch48poe.js.map +1 -1
  369. package/lib/components/ModelCompareV3/data/products/edgeSwitch48poe.mjs.map +1 -1
  370. package/lib/components/ModelCompareV3/data/products/edgeswitch48poe-750.js.map +1 -1
  371. package/lib/components/ModelCompareV3/data/products/edgeswitch48poe-750.mjs.map +1 -1
  372. package/lib/components/ModelCompareV3/data/products/edgeswitch5xp.js.map +1 -1
  373. package/lib/components/ModelCompareV3/data/products/edgeswitch5xp.mjs.map +1 -1
  374. package/lib/components/ModelCompareV3/data/products/edgeswitch8poe.js.map +1 -1
  375. package/lib/components/ModelCompareV3/data/products/edgeswitch8poe.mjs.map +1 -1
  376. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js +0 -7
  377. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js.map +1 -1
  378. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs +0 -7
  379. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs.map +1 -1
  380. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js +0 -7
  381. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js.map +1 -1
  382. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs +0 -7
  383. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs.map +1 -1
  384. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js +0 -7
  385. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js.map +1 -1
  386. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs +0 -7
  387. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs.map +1 -1
  388. package/lib/components/ModelCompareV3/data/products/fiberInstant.js.map +1 -1
  389. package/lib/components/ModelCompareV3/data/products/fiberInstant.mjs.map +1 -1
  390. package/lib/components/ModelCompareV3/data/products/fiberNanog.js.map +1 -1
  391. package/lib/components/ModelCompareV3/data/products/fiberNanog.mjs.map +1 -1
  392. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js +0 -7
  393. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js.map +1 -1
  394. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs +0 -7
  395. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs.map +1 -1
  396. package/lib/components/ModelCompareV3/data/products/ltuExtremeRange.js.map +1 -1
  397. package/lib/components/ModelCompareV3/data/products/ltuExtremeRange.mjs.map +1 -1
  398. package/lib/components/ModelCompareV3/data/products/ltuLongRange.js.map +1 -1
  399. package/lib/components/ModelCompareV3/data/products/ltuLongRange.mjs.map +1 -1
  400. package/lib/components/ModelCompareV3/data/products/ltuPro.js.map +1 -1
  401. package/lib/components/ModelCompareV3/data/products/ltuPro.mjs.map +1 -1
  402. package/lib/components/ModelCompareV3/data/products/missionCritical.js +0 -7
  403. package/lib/components/ModelCompareV3/data/products/missionCritical.js.map +1 -1
  404. package/lib/components/ModelCompareV3/data/products/missionCritical.mjs +0 -7
  405. package/lib/components/ModelCompareV3/data/products/missionCritical.mjs.map +1 -1
  406. package/lib/components/ModelCompareV3/data/products/nanoStation5AC.js.map +1 -1
  407. package/lib/components/ModelCompareV3/data/products/nanoStation5AC.mjs.map +1 -1
  408. package/lib/components/ModelCompareV3/data/products/nanoStation5ACLoco.js.map +1 -1
  409. package/lib/components/ModelCompareV3/data/products/nanoStation5ACLoco.mjs.map +1 -1
  410. package/lib/components/ModelCompareV3/data/products/prismStation5AC.js.map +1 -1
  411. package/lib/components/ModelCompareV3/data/products/prismStation5AC.mjs.map +1 -1
  412. package/lib/components/ModelCompareV3/data/products/professionalMax16.js +0 -7
  413. package/lib/components/ModelCompareV3/data/products/professionalMax16.js.map +1 -1
  414. package/lib/components/ModelCompareV3/data/products/professionalMax16.mjs +0 -7
  415. package/lib/components/ModelCompareV3/data/products/professionalMax16.mjs.map +1 -1
  416. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.js +0 -7
  417. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.js.map +1 -1
  418. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.mjs +0 -7
  419. package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.mjs.map +1 -1
  420. package/lib/components/ModelCompareV3/data/products/professionalMax24.js +0 -7
  421. package/lib/components/ModelCompareV3/data/products/professionalMax24.js.map +1 -1
  422. package/lib/components/ModelCompareV3/data/products/professionalMax24.mjs +0 -7
  423. package/lib/components/ModelCompareV3/data/products/professionalMax24.mjs.map +1 -1
  424. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.js +0 -7
  425. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.js.map +1 -1
  426. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.mjs +0 -7
  427. package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.mjs.map +1 -1
  428. package/lib/components/ModelCompareV3/data/products/professionalMax48.js +0 -7
  429. package/lib/components/ModelCompareV3/data/products/professionalMax48.js.map +1 -1
  430. package/lib/components/ModelCompareV3/data/products/professionalMax48.mjs +0 -7
  431. package/lib/components/ModelCompareV3/data/products/professionalMax48.mjs.map +1 -1
  432. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.js +0 -7
  433. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.js.map +1 -1
  434. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.mjs +0 -7
  435. package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.mjs.map +1 -1
  436. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js +0 -8
  437. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js.map +1 -1
  438. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs +0 -8
  439. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs.map +1 -1
  440. package/lib/components/ModelCompareV3/data/products/switchesProfessional.js +0 -7
  441. package/lib/components/ModelCompareV3/data/products/switchesProfessional.js.map +1 -1
  442. package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs +0 -7
  443. package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs.map +1 -1
  444. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js +1 -10
  445. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js.map +1 -1
  446. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs +1 -10
  447. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs.map +1 -1
  448. package/lib/components/ModelCompareV3/data/products/switchesStandard.js +0 -7
  449. package/lib/components/ModelCompareV3/data/products/switchesStandard.js.map +1 -1
  450. package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs +0 -7
  451. package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs.map +1 -1
  452. package/lib/components/ModelCompareV3/data/products/udb.js.map +1 -1
  453. package/lib/components/ModelCompareV3/data/products/udb.mjs.map +1 -1
  454. package/lib/components/ModelCompareV3/data/products/udbPro.js.map +1 -1
  455. package/lib/components/ModelCompareV3/data/products/udbPro.mjs.map +1 -1
  456. package/lib/components/ModelCompareV3/data/products/uispSwitch.js.map +1 -1
  457. package/lib/components/ModelCompareV3/data/products/uispSwitch.mjs.map +1 -1
  458. package/lib/components/ModelCompareV3/data/properties/index.d.ts +0 -1
  459. package/lib/components/ModelCompareV3/data/properties/index.js +0 -2
  460. package/lib/components/ModelCompareV3/data/properties/index.js.map +1 -1
  461. package/lib/components/ModelCompareV3/data/properties/index.mjs +0 -1
  462. package/lib/components/ModelCompareV3/data/properties/index.mjs.map +1 -1
  463. package/lib/components/ModelCompareV3/translations/en.json.js +0 -2
  464. package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
  465. package/lib/components/ModelCompareV3/translations/en.json.mjs +0 -2
  466. package/lib/components/ModelCompareV3/translations/en.json.mjs.map +1 -1
  467. package/lib/components/ModelCompareV3/translations/useModelCompareTranslation.d.ts +2 -2
  468. package/lib/components/Pagination/Pagination.js.map +1 -1
  469. package/lib/components/Pagination/Pagination.mjs.map +1 -1
  470. package/lib/components/PriceRangeSlider/PriceRangeSlider.js.map +1 -1
  471. package/lib/components/PriceRangeSlider/PriceRangeSlider.mjs.map +1 -1
  472. package/lib/components/ProductCard/ProductCard.js.map +1 -1
  473. package/lib/components/ProductCard/ProductCard.mjs.map +1 -1
  474. package/lib/components/ProductCardPopup/ProductCardPopup.js.map +1 -1
  475. package/lib/components/ProductCardPopup/ProductCardPopup.mjs.map +1 -1
  476. package/lib/components/ProductGrid/ProductGrid.js.map +1 -1
  477. package/lib/components/ProductGrid/ProductGrid.mjs.map +1 -1
  478. package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +1 -1
  479. package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +1 -1
  480. package/lib/components/ProductSectionTabs/ProductSectionTabs.js.map +1 -1
  481. package/lib/components/ProductSectionTabs/ProductSectionTabs.mjs.map +1 -1
  482. package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +2 -2
  483. package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.js.map +1 -1
  484. package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.mjs.map +1 -1
  485. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js.map +1 -1
  486. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.mjs.map +1 -1
  487. package/lib/components/RelatedProducts/RelatedProducts.js.map +1 -1
  488. package/lib/components/RelatedProducts/RelatedProducts.mjs.map +1 -1
  489. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js.map +1 -1
  490. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.mjs.map +1 -1
  491. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/HddSlots/HddSlots.js.map +1 -1
  492. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/HddSlots/HddSlots.mjs.map +1 -1
  493. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +1 -1
  494. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
  495. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js.map +1 -1
  496. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs.map +1 -1
  497. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/Layout.styles.js.map +1 -1
  498. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/Layout.styles.mjs.map +1 -1
  499. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
  500. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
  501. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +2 -2
  502. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js.map +1 -1
  503. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +2 -2
  504. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs.map +1 -1
  505. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
  506. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
  507. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.js.map +1 -1
  508. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.mjs.map +1 -1
  509. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js.map +1 -1
  510. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs.map +1 -1
  511. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.js.map +1 -1
  512. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.mjs.map +1 -1
  513. package/lib/components/ScrollWrapper/ScrollWrapper.d.ts +1 -1
  514. package/lib/components/ScrollWrapper/ScrollWrapper.js +16 -8
  515. package/lib/components/ScrollWrapper/ScrollWrapper.js.map +1 -1
  516. package/lib/components/ScrollWrapper/ScrollWrapper.mjs +16 -8
  517. package/lib/components/ScrollWrapper/ScrollWrapper.mjs.map +1 -1
  518. package/lib/components/ScrollWrapper/ScrollWrapper.styles.js.map +1 -1
  519. package/lib/components/ScrollWrapper/ScrollWrapper.styles.mjs.map +1 -1
  520. package/lib/components/ScrollWrapper/ScrollWrapper.types.d.ts +2 -0
  521. package/lib/components/Search/Input/Input.d.ts +1 -1
  522. package/lib/components/Search/Input/Input.js +4 -4
  523. package/lib/components/Search/Input/Input.js.map +1 -1
  524. package/lib/components/Search/Input/Input.mjs +4 -4
  525. package/lib/components/Search/Input/Input.mjs.map +1 -1
  526. package/lib/components/Search/Input/Input.styles.js +0 -1
  527. package/lib/components/Search/Input/Input.styles.js.map +1 -1
  528. package/lib/components/Search/Input/Input.styles.mjs +0 -1
  529. package/lib/components/Search/Input/Input.styles.mjs.map +1 -1
  530. package/lib/components/Search/Input/Input.types.d.ts +3 -2
  531. package/lib/components/Search/Modal/Modal.js.map +1 -1
  532. package/lib/components/Search/Modal/Modal.mjs.map +1 -1
  533. package/lib/components/SkeletonLoader/SkeletonLoaderTable/SkeletonLoaderTable.js.map +1 -1
  534. package/lib/components/SkeletonLoader/SkeletonLoaderTable/SkeletonLoaderTable.mjs.map +1 -1
  535. package/lib/components/StorageSliders/StorageSliders.utils.js.map +1 -1
  536. package/lib/components/StorageSliders/StorageSliders.utils.mjs.map +1 -1
  537. package/lib/components/StyleableSvgImage/StyleableSvgImage.js.map +1 -1
  538. package/lib/components/StyleableSvgImage/StyleableSvgImage.mjs.map +1 -1
  539. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js.map +1 -1
  540. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.mjs.map +1 -1
  541. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.styles.js.map +1 -1
  542. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.styles.mjs.map +1 -1
  543. package/lib/components/VariantSelector/Variant/Variant.js.map +1 -1
  544. package/lib/components/VariantSelector/Variant/Variant.mjs.map +1 -1
  545. package/lib/components/VariantSelector/VariantSelector.constants.js.map +1 -1
  546. package/lib/components/VariantSelector/VariantSelector.constants.mjs.map +1 -1
  547. package/lib/components/VideoPlayerNew/VideoPlayer.js +1 -1
  548. package/lib/components/VideoPlayerNew/VideoPlayer.mjs +1 -1
  549. package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
  550. package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
  551. package/lib/constants/layout.js.map +1 -1
  552. package/lib/constants/layout.mjs.map +1 -1
  553. package/lib/constants/postalCode.js.map +1 -1
  554. package/lib/constants/postalCode.mjs.map +1 -1
  555. package/lib/constants/proStoreCategories/mapping/filters.d.ts +16 -0
  556. package/lib/constants/proStoreCategories/mapping/filters.js +16 -0
  557. package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
  558. package/lib/constants/proStoreCategories/mapping/filters.mjs +16 -0
  559. package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
  560. package/lib/constants/proStoreCategories/mapping/index.d.ts +1 -1
  561. package/lib/constants/proStoreCategories/mapping/index.js +15 -11
  562. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  563. package/lib/constants/proStoreCategories/mapping/index.mjs +15 -11
  564. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  565. package/lib/constants/proStoreCategories/mapping/mapping.d.ts +5 -0
  566. package/lib/constants/proStoreCategories/mapping/uisp.d.ts +0 -1
  567. package/lib/constants/proStoreCategories/mapping/uisp.js +0 -1
  568. package/lib/constants/proStoreCategories/mapping/uisp.js.map +1 -1
  569. package/lib/constants/proStoreCategories/mapping/uisp.mjs +0 -1
  570. package/lib/constants/proStoreCategories/mapping/uisp.mjs.map +1 -1
  571. package/lib/constants/proStoreCategories/mapping/unifi.d.ts +1 -0
  572. package/lib/constants/proStoreCategories/mapping/unifi.js +1 -0
  573. package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
  574. package/lib/constants/proStoreCategories/mapping/unifi.mjs +1 -0
  575. package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
  576. package/lib/constants/proStoreCategories/translations/ar.json.js +2 -5
  577. package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
  578. package/lib/constants/proStoreCategories/translations/ar.json.mjs +3 -5
  579. package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
  580. package/lib/constants/proStoreCategories/translations/de.json.js +2 -5
  581. package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
  582. package/lib/constants/proStoreCategories/translations/de.json.mjs +3 -5
  583. package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
  584. package/lib/constants/proStoreCategories/translations/el.json.js +3 -6
  585. package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
  586. package/lib/constants/proStoreCategories/translations/el.json.mjs +4 -6
  587. package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
  588. package/lib/constants/proStoreCategories/translations/en.json.js +1 -1
  589. package/lib/constants/proStoreCategories/translations/en.json.mjs +1 -1
  590. package/lib/constants/proStoreCategories/translations/es.json.js +2 -5
  591. package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
  592. package/lib/constants/proStoreCategories/translations/es.json.mjs +3 -5
  593. package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
  594. package/lib/constants/proStoreCategories/translations/fr.json.js +2 -2
  595. package/lib/constants/proStoreCategories/translations/fr.json.mjs +2 -2
  596. package/lib/constants/proStoreCategories/translations/it.json.js +2 -5
  597. package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
  598. package/lib/constants/proStoreCategories/translations/it.json.mjs +3 -5
  599. package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
  600. package/lib/constants/proStoreCategories/translations/ja.json.js +2 -5
  601. package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
  602. package/lib/constants/proStoreCategories/translations/ja.json.mjs +3 -5
  603. package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
  604. package/lib/constants/proStoreCategories/translations/pt-BR.json.js +2 -5
  605. package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
  606. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +3 -5
  607. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
  608. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +2 -2
  609. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +2 -2
  610. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +2 -2
  611. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +2 -2
  612. package/lib/constants/proStoreFilters/mapping.d.ts +33 -7
  613. package/lib/constants/proStoreFilters/mapping.js +108 -14
  614. package/lib/constants/proStoreFilters/mapping.js.map +1 -1
  615. package/lib/constants/proStoreFilters/mapping.mjs +108 -14
  616. package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
  617. package/lib/constants/theme.js +4 -0
  618. package/lib/constants/theme.js.map +1 -1
  619. package/lib/constants/theme.mjs +4 -0
  620. package/lib/constants/theme.mjs.map +1 -1
  621. package/lib/contexts/MenuContext/context.js +1 -1
  622. package/lib/contexts/MenuContext/context.js.map +1 -1
  623. package/lib/contexts/MenuContext/context.mjs +1 -1
  624. package/lib/contexts/MenuContext/context.mjs.map +1 -1
  625. package/lib/contexts/MenuContext/mapping.js.map +1 -1
  626. package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
  627. package/lib/contexts/MenuContext/utils.js.map +1 -1
  628. package/lib/contexts/MenuContext/utils.mjs.map +1 -1
  629. package/lib/helpers/index.d.ts +0 -1
  630. package/lib/helpers/index.js +0 -11
  631. package/lib/helpers/index.js.map +1 -1
  632. package/lib/helpers/index.mjs +0 -1
  633. package/lib/helpers/index.mjs.map +1 -1
  634. package/lib/helpers/time.js.map +1 -1
  635. package/lib/helpers/time.mjs.map +1 -1
  636. package/lib/helpers/ux.d.ts +9 -1
  637. package/lib/helpers/ux.js +15 -0
  638. package/lib/helpers/ux.js.map +1 -1
  639. package/lib/helpers/ux.mjs +15 -1
  640. package/lib/helpers/ux.mjs.map +1 -1
  641. package/lib/hooks/useTranslation.js.map +1 -1
  642. package/lib/hooks/useTranslation.mjs.map +1 -1
  643. package/lib/types/index.d.ts +0 -1
  644. package/lib/types/index.js +0 -2
  645. package/lib/types/index.js.map +1 -1
  646. package/lib/types/index.mjs +0 -1
  647. package/lib/types/index.mjs.map +1 -1
  648. package/lib/utils/address.d.ts +62 -278
  649. package/lib/utils/address.js +8 -11
  650. package/lib/utils/address.js.map +1 -1
  651. package/lib/utils/address.mjs +8 -11
  652. package/lib/utils/address.mjs.map +1 -1
  653. package/lib/utils/array.d.ts +0 -4
  654. package/lib/utils/array.js +0 -10
  655. package/lib/utils/array.js.map +1 -1
  656. package/lib/utils/array.mjs +1 -10
  657. package/lib/utils/array.mjs.map +1 -1
  658. package/lib/utils/money/allocators/fixedAmount.js.map +1 -1
  659. package/lib/utils/money/allocators/fixedAmount.mjs.map +1 -1
  660. package/lib/utils/money/format.js +1 -2
  661. package/lib/utils/money/format.js.map +1 -1
  662. package/lib/utils/money/format.mjs +1 -2
  663. package/lib/utils/money/format.mjs.map +1 -1
  664. package/lib/utils/money/misc.js.map +1 -1
  665. package/lib/utils/money/misc.mjs.map +1 -1
  666. package/lib/utils/nextjs/createInlineScript.js.map +1 -1
  667. package/lib/utils/nextjs/createInlineScript.mjs.map +1 -1
  668. package/lib/utils/nextjs/index.d.ts +0 -3
  669. package/lib/utils/nextjs/index.js +0 -5
  670. package/lib/utils/nextjs/index.js.map +1 -1
  671. package/lib/utils/nextjs/index.mjs +0 -3
  672. package/lib/utils/nextjs/index.mjs.map +1 -1
  673. package/lib/utils/nextjs/stringifyForInject.js.map +1 -1
  674. package/lib/utils/nextjs/stringifyForInject.mjs.map +1 -1
  675. package/lib/utils/number.js.map +1 -1
  676. package/lib/utils/number.mjs.map +1 -1
  677. package/lib/utils/tax/brazil.js.map +1 -1
  678. package/lib/utils/tax/brazil.mjs.map +1 -1
  679. package/lib/utils/wattage.js.map +1 -1
  680. package/lib/utils/wattage.mjs.map +1 -1
  681. package/package.json +1 -3
  682. package/lib/assets/crestron.svg +0 -3
  683. package/lib/assets/icons/menu/icon-globe.svg.js +0 -27
  684. package/lib/assets/icons/menu/icon-globe.svg.js.map +0 -1
  685. package/lib/assets/icons/menu/icon-globe.svg.mjs +0 -3
  686. package/lib/assets/icons/menu/icon-globe.svg.mjs.map +0 -1
  687. package/lib/components/ModelCompareV3/assets/crestron.svg.js.map +0 -1
  688. package/lib/components/ModelCompareV3/assets/crestron.svg.mjs +0 -3
  689. package/lib/components/ModelCompareV3/assets/crestron.svg.mjs.map +0 -1
  690. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.d.ts +0 -2
  691. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.js +0 -18
  692. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.js.map +0 -1
  693. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.mjs +0 -10
  694. package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.mjs.map +0 -1
  695. package/lib/helpers/product.d.ts +0 -87
  696. package/lib/helpers/product.js +0 -346
  697. package/lib/helpers/product.js.map +0 -1
  698. package/lib/helpers/product.mjs +0 -335
  699. package/lib/helpers/product.mjs.map +0 -1
  700. package/lib/helpers/product.test.d.ts +0 -1
  701. package/lib/types/product.d.ts +0 -87
  702. package/lib/types/product.js +0 -14
  703. package/lib/types/product.js.map +0 -1
  704. package/lib/types/product.mjs +0 -13
  705. package/lib/types/product.mjs.map +0 -1
  706. package/lib/utils/nextjs/patch.d.ts +0 -1
  707. package/lib/utils/nextjs/patch.js +0 -53
  708. package/lib/utils/nextjs/patch.js.map +0 -1
  709. package/lib/utils/nextjs/patch.mjs +0 -41
  710. package/lib/utils/nextjs/patch.mjs.map +0 -1
  711. package/lib/utils/nextjs/plugin.d.ts +0 -14
  712. package/lib/utils/nextjs/plugin.js +0 -41
  713. package/lib/utils/nextjs/plugin.js.map +0 -1
  714. package/lib/utils/nextjs/plugin.mjs +0 -39
  715. package/lib/utils/nextjs/plugin.mjs.map +0 -1
  716. package/lib/utils/nextjs/ssr/constants.d.ts +0 -8
  717. package/lib/utils/nextjs/ssr/constants.js +0 -8
  718. package/lib/utils/nextjs/ssr/constants.js.map +0 -1
  719. package/lib/utils/nextjs/ssr/constants.mjs +0 -6
  720. package/lib/utils/nextjs/ssr/constants.mjs.map +0 -1
  721. package/lib/utils/nextjs/ssr/registry.d.ts +0 -52
  722. package/lib/utils/nextjs/ssr/registry.js +0 -22
  723. package/lib/utils/nextjs/ssr/registry.js.map +0 -1
  724. package/lib/utils/nextjs/ssr/registry.mjs +0 -20
  725. package/lib/utils/nextjs/ssr/registry.mjs.map +0 -1
  726. package/lib/utils/nextjs/ssr/style-inject.d.ts +0 -21
  727. package/lib/utils/nextjs/ssr/style-inject.js +0 -47
  728. package/lib/utils/nextjs/ssr/style-inject.js.map +0 -1
  729. package/lib/utils/nextjs/ssr/style-inject.mjs +0 -43
  730. package/lib/utils/nextjs/ssr/style-inject.mjs.map +0 -1
  731. package/lib/utils/nextjs/ssr/transform-css-module.d.ts +0 -11
  732. package/lib/utils/nextjs/ssr/transform-css-module.js +0 -115
  733. package/lib/utils/nextjs/ssr/transform-css-module.js.map +0 -1
  734. package/lib/utils/nextjs/ssr/transform-css-module.mjs +0 -87
  735. package/lib/utils/nextjs/ssr/transform-css-module.mjs.map +0 -1
  736. package/lib/utils/nextjs/ssr/transform-css-module.test.d.ts +0 -1
  737. package/lib/utils/nextjs/ssr/types.d.ts +0 -10
  738. package/lib/utils/productSort.d.ts +0 -41
  739. package/lib/utils/productSort.js +0 -67
  740. package/lib/utils/productSort.js.map +0 -1
  741. package/lib/utils/productSort.mjs +0 -60
  742. package/lib/utils/productSort.mjs.map +0 -1
  743. package/lib/utils/validations/lastNameSuperRefinement.d.ts +0 -11
  744. package/lib/utils/validations/lastNameSuperRefinement.js +0 -25
  745. package/lib/utils/validations/lastNameSuperRefinement.js.map +0 -1
  746. package/lib/utils/validations/lastNameSuperRefinement.mjs +0 -21
  747. package/lib/utils/validations/lastNameSuperRefinement.mjs.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"transform-css-module.js","sources":["../../../../src/utils/nextjs/ssr/transform-css-module.ts"],"sourcesContent":["import type { PluginObj } from \"@babel/core\";\nimport * as t from \"@babel/types\";\nimport crypto from \"node:crypto\";\n\nfunction generateMd5(input: string): string {\n return crypto.createHash(\"md5\").update(input).digest(\"hex\");\n}\n\ntype Plugin = PluginObj<{\n // Store the name of the default import identifier for \"style-inject.es.js\"\n defaultImportName: null | string;\n}>;\n\n/**\n * FIXME: Currently this plugin won't:\n * - Handle existing source maps correctly and would strip from the output: \"//#\n * sourceMappingURL=BubbleContainer.module.css.js.map\"\n */\nexport const transformCssModule = (): Plugin => {\n return {\n visitor: {\n // Step 0: Setup state\n Program(_path, state) {\n state[\"defaultImportName\"] = null;\n },\n // Step 1: Find the default import from \"style-inject.es.js\"\n ImportDeclaration(path, state) {\n // Skip, if the default import name is already found (assuming there is only one per-file)\n if (state[\"defaultImportName\"]) {\n return;\n }\n\n // Look for imports for \"style-inject.es.js\" file\n const importSource = path.node.source.value;\n if (!importSource.endsWith(\"style-inject.es.js\")) {\n return;\n }\n\n // Check for default import specifier\n const defaultSpecifier = path.node.specifiers.find((specifier) =>\n t.isImportDefaultSpecifier(specifier),\n ) as t.ImportDefaultSpecifier | undefined;\n\n // Store the default import name\n if (defaultSpecifier) {\n // Fail if two instances of file is found\n state[\"defaultImportName\"] = defaultSpecifier.local.name;\n } else {\n throw new Error(\n \"Import for `style-inject.es.js` file not found in file\",\n );\n }\n },\n\n // Step 2: Find all calls to the imported identifier\n CallExpression(path, state) {\n // Ignore if the default import name is not found\n if (!state[\"defaultImportName\"]) {\n return;\n }\n\n // Check if the callee is the default import identifier\n const callee = path.node.callee;\n if (\n t.isIdentifier(callee) &&\n callee.name === state[\"defaultImportName\"]\n ) {\n const args = path.node.arguments;\n\n // If arguments are not between 1 and 2, fail\n if (!(args.length >= 1 && args.length <= 2)) {\n throw new Error(\"Unexpected number of arguments\");\n }\n\n /**\n * Validates that the function arguments are:\n * 1. needs to be a string literal or variable holding string\n * 2. (optional) string literal\n */\n if (\n !(\n (t.isStringLiteral(args[0]) || t.isIdentifier(args[0])) &&\n (!args[1] || t.isStringLiteral(args[1]))\n )\n ) {\n throw new Error(\"Unexpected argument types\");\n }\n\n // CSS string\n let cssString: string = \"\";\n\n // Try to remove duplicate string literal as first argument and instead re-use the a already generated variable\n if (t.isStringLiteral(args[0])) {\n cssString = args[0].value;\n\n let reusedVariable = null;\n path.scope.path.traverse({\n VariableDeclarator(variablePath) {\n const { id, init } = variablePath.node;\n\n // Match variables initialized with the same string value.\n if (t.isStringLiteral(init, { value: cssString })) {\n reusedVariable = id;\n variablePath.stop(); // Stop traversing once a match is found.\n }\n },\n });\n\n // Replace the string literal with the existing variable reference.\n if (reusedVariable) {\n path.node.arguments[0] = reusedVariable;\n }\n } else if (t.isIdentifier(args[0])) {\n // Extract value from variable\n const binding = path.scope.getBinding(args[0].name);\n if (\n binding &&\n t.isVariableDeclarator(binding.path.node) &&\n t.isStringLiteral(binding.path.node.init)\n ) {\n cssString = binding.path.node.init.value;\n }\n }\n\n if (!cssString) {\n throw new Error(\"Invalid first argument value\");\n }\n\n // Generate MD5 hash of the first argument's value\n // TODO: Looked into that styled-components use murmurhash. Also it's possible to use sha1 for longer key\n // (less % of collision)\n const hash = generateMd5(cssString);\n\n // Add the hash as the second argument\n const hashArg = t.stringLiteral(hash);\n if (args.length > 1) {\n // If a second argument exists, replace it\n args[1] = hashArg;\n } else {\n // Otherwise, add it as a new second argument\n args.push(hashArg);\n }\n }\n },\n },\n } satisfies Plugin;\n};\n"],"names":["generateMd5","input","crypto","createHash","update","digest","transformCssModule","visitor","Program","_path","state","ImportDeclaration","path","importSource","node","source","value","endsWith","defaultSpecifier","specifiers","find","specifier","t","isImportDefaultSpecifier","local","name","Error","CallExpression","callee","isIdentifier","args","arguments","length","isStringLiteral","cssString","reusedVariable","scope","traverse","VariableDeclarator","variablePath","id","init","stop","binding","getBinding","isVariableDeclarator","hash","hashArg","stringLiteral","push"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,SAASA,YAAYC,KAAuB,EAAA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;YAClD,IACEkB,OACA,IAAArB,YAAA,CAAEuB,oBAAqB,CAAAF,OAAA,CAAQ/B,IAAK,CAAAE,IAAI,CACxC,IAAAQ,YAAA,CAAEW,eAAgB,CAAAU,OAAA,CAAQ/B,IAAK,CAAAE,IAAA,CAAK2B,IAAI,CACxC,EAAA;cACYP,SAAA,GAAAS,OAAA,CAAQ/B,IAAK,CAAAE,IAAA,CAAK2B,IAAK,CAAAzB,KAAA;YACrC;UACF;UAEA,IAAI,CAACkB,SAAW,EAAA;YACR,MAAA,IAAIR,MAAM,8BAA8B,CAAA;UAChD;UAKM,MAAAoB,IAAA,GAAO9C,YAAYkC,SAAS,CAAA;UAG5B,MAAAa,OAAA,GAAUzB,YAAE,CAAA0B,aAAA,CAAcF,IAAI,CAAA;UAChC,IAAAhB,IAAA,CAAKE,SAAS,CAAG,EAAA;YAEnBF,IAAA,CAAK,CAAC,CAAI,GAAAiB,OAAA;UAAA,CACL,MAAA;YAELjB,IAAA,CAAKmB,KAAKF,OAAO,CAAA;UACnB;QACF;MACF;IACF;EAAA,CACF;AACF,CAAA;"}
@@ -1,87 +0,0 @@
1
- import * as t from '@babel/types';
2
- import crypto from 'node:crypto';
3
- "use strict";
4
- function generateMd5(input) {
5
- return crypto.createHash("md5").update(input).digest("hex");
6
- }
7
- const transformCssModule = () => {
8
- return {
9
- visitor: {
10
- // Step 0: Setup state
11
- Program(_path, state) {
12
- state["defaultImportName"] = null;
13
- },
14
- // Step 1: Find the default import from "style-inject.es.js"
15
- ImportDeclaration(path, state) {
16
- if (state["defaultImportName"]) {
17
- return;
18
- }
19
- const importSource = path.node.source.value;
20
- if (!importSource.endsWith("style-inject.es.js")) {
21
- return;
22
- }
23
- const defaultSpecifier = path.node.specifiers.find(specifier => t.isImportDefaultSpecifier(specifier));
24
- if (defaultSpecifier) {
25
- state["defaultImportName"] = defaultSpecifier.local.name;
26
- } else {
27
- throw new Error("Import for `style-inject.es.js` file not found in file");
28
- }
29
- },
30
- // Step 2: Find all calls to the imported identifier
31
- CallExpression(path, state) {
32
- if (!state["defaultImportName"]) {
33
- return;
34
- }
35
- const callee = path.node.callee;
36
- if (t.isIdentifier(callee) && callee.name === state["defaultImportName"]) {
37
- const args = path.node.arguments;
38
- if (!(args.length >= 1 && args.length <= 2)) {
39
- throw new Error("Unexpected number of arguments");
40
- }
41
- if (!((t.isStringLiteral(args[0]) || t.isIdentifier(args[0])) && (!args[1] || t.isStringLiteral(args[1])))) {
42
- throw new Error("Unexpected argument types");
43
- }
44
- let cssString = "";
45
- if (t.isStringLiteral(args[0])) {
46
- cssString = args[0].value;
47
- let reusedVariable = null;
48
- path.scope.path.traverse({
49
- VariableDeclarator(variablePath) {
50
- const {
51
- id,
52
- init
53
- } = variablePath.node;
54
- if (t.isStringLiteral(init, {
55
- value: cssString
56
- })) {
57
- reusedVariable = id;
58
- variablePath.stop();
59
- }
60
- }
61
- });
62
- if (reusedVariable) {
63
- path.node.arguments[0] = reusedVariable;
64
- }
65
- } else if (t.isIdentifier(args[0])) {
66
- const binding = path.scope.getBinding(args[0].name);
67
- if (binding && t.isVariableDeclarator(binding.path.node) && t.isStringLiteral(binding.path.node.init)) {
68
- cssString = binding.path.node.init.value;
69
- }
70
- }
71
- if (!cssString) {
72
- throw new Error("Invalid first argument value");
73
- }
74
- const hash = generateMd5(cssString);
75
- const hashArg = t.stringLiteral(hash);
76
- if (args.length > 1) {
77
- args[1] = hashArg;
78
- } else {
79
- args.push(hashArg);
80
- }
81
- }
82
- }
83
- }
84
- };
85
- };
86
- export { transformCssModule };
87
- //# sourceMappingURL=transform-css-module.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transform-css-module.mjs","sources":["../../../../src/utils/nextjs/ssr/transform-css-module.ts"],"sourcesContent":["import type { PluginObj } from \"@babel/core\";\nimport * as t from \"@babel/types\";\nimport crypto from \"node:crypto\";\n\nfunction generateMd5(input: string): string {\n return crypto.createHash(\"md5\").update(input).digest(\"hex\");\n}\n\ntype Plugin = PluginObj<{\n // Store the name of the default import identifier for \"style-inject.es.js\"\n defaultImportName: null | string;\n}>;\n\n/**\n * FIXME: Currently this plugin won't:\n * - Handle existing source maps correctly and would strip from the output: \"//#\n * sourceMappingURL=BubbleContainer.module.css.js.map\"\n */\nexport const transformCssModule = (): Plugin => {\n return {\n visitor: {\n // Step 0: Setup state\n Program(_path, state) {\n state[\"defaultImportName\"] = null;\n },\n // Step 1: Find the default import from \"style-inject.es.js\"\n ImportDeclaration(path, state) {\n // Skip, if the default import name is already found (assuming there is only one per-file)\n if (state[\"defaultImportName\"]) {\n return;\n }\n\n // Look for imports for \"style-inject.es.js\" file\n const importSource = path.node.source.value;\n if (!importSource.endsWith(\"style-inject.es.js\")) {\n return;\n }\n\n // Check for default import specifier\n const defaultSpecifier = path.node.specifiers.find((specifier) =>\n t.isImportDefaultSpecifier(specifier),\n ) as t.ImportDefaultSpecifier | undefined;\n\n // Store the default import name\n if (defaultSpecifier) {\n // Fail if two instances of file is found\n state[\"defaultImportName\"] = defaultSpecifier.local.name;\n } else {\n throw new Error(\n \"Import for `style-inject.es.js` file not found in file\",\n );\n }\n },\n\n // Step 2: Find all calls to the imported identifier\n CallExpression(path, state) {\n // Ignore if the default import name is not found\n if (!state[\"defaultImportName\"]) {\n return;\n }\n\n // Check if the callee is the default import identifier\n const callee = path.node.callee;\n if (\n t.isIdentifier(callee) &&\n callee.name === state[\"defaultImportName\"]\n ) {\n const args = path.node.arguments;\n\n // If arguments are not between 1 and 2, fail\n if (!(args.length >= 1 && args.length <= 2)) {\n throw new Error(\"Unexpected number of arguments\");\n }\n\n /**\n * Validates that the function arguments are:\n * 1. needs to be a string literal or variable holding string\n * 2. (optional) string literal\n */\n if (\n !(\n (t.isStringLiteral(args[0]) || t.isIdentifier(args[0])) &&\n (!args[1] || t.isStringLiteral(args[1]))\n )\n ) {\n throw new Error(\"Unexpected argument types\");\n }\n\n // CSS string\n let cssString: string = \"\";\n\n // Try to remove duplicate string literal as first argument and instead re-use the a already generated variable\n if (t.isStringLiteral(args[0])) {\n cssString = args[0].value;\n\n let reusedVariable = null;\n path.scope.path.traverse({\n VariableDeclarator(variablePath) {\n const { id, init } = variablePath.node;\n\n // Match variables initialized with the same string value.\n if (t.isStringLiteral(init, { value: cssString })) {\n reusedVariable = id;\n variablePath.stop(); // Stop traversing once a match is found.\n }\n },\n });\n\n // Replace the string literal with the existing variable reference.\n if (reusedVariable) {\n path.node.arguments[0] = reusedVariable;\n }\n } else if (t.isIdentifier(args[0])) {\n // Extract value from variable\n const binding = path.scope.getBinding(args[0].name);\n if (\n binding &&\n t.isVariableDeclarator(binding.path.node) &&\n t.isStringLiteral(binding.path.node.init)\n ) {\n cssString = binding.path.node.init.value;\n }\n }\n\n if (!cssString) {\n throw new Error(\"Invalid first argument value\");\n }\n\n // Generate MD5 hash of the first argument's value\n // TODO: Looked into that styled-components use murmurhash. Also it's possible to use sha1 for longer key\n // (less % of collision)\n const hash = generateMd5(cssString);\n\n // Add the hash as the second argument\n const hashArg = t.stringLiteral(hash);\n if (args.length > 1) {\n // If a second argument exists, replace it\n args[1] = hashArg;\n } else {\n // Otherwise, add it as a new second argument\n args.push(hashArg);\n }\n }\n },\n },\n } satisfies Plugin;\n};\n"],"names":["generateMd5","input","crypto","createHash","update","digest","transformCssModule","visitor","Program","_path","state","ImportDeclaration","path","importSource","node","source","value","endsWith","defaultSpecifier","specifiers","find","specifier","t","isImportDefaultSpecifier","local","name","Error","CallExpression","callee","isIdentifier","args","arguments","length","isStringLiteral","cssString","reusedVariable","scope","traverse","VariableDeclarator","variablePath","id","init","stop","binding","getBinding","isVariableDeclarator","hash","hashArg","stringLiteral","push"],"mappings":";;;AAIA,SAASA,YAAYC,KAAuB,EAAA;EACnC,OAAAC,MAAA,CAAOC,WAAW,KAAK,CAAA,CAAEC,OAAOH,KAAK,CAAA,CAAEI,OAAO,KAAK,CAAA;AAC5D;AAYO,MAAMC,qBAAqBA,CAAA,KAAc;EACvC,OAAA;IACLC,OAAS,EAAA;MAAA;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;cACYP,SAAA,GAAAS,OAAA,CAAQ/B,IAAK,CAAAE,IAAA,CAAK2B,IAAK,CAAAzB,KAAA;YACrC;UACF;UAEA,IAAI,CAACkB,SAAW,EAAA;YACR,MAAA,IAAIR,MAAM,8BAA8B,CAAA;UAChD;UAKM,MAAAoB,IAAA,GAAO9C,YAAYkC,SAAS,CAAA;UAG5B,MAAAa,OAAA,GAAUzB,CAAE,CAAA0B,aAAA,CAAcF,IAAI,CAAA;UAChC,IAAAhB,IAAA,CAAKE,SAAS,CAAG,EAAA;YAEnBF,IAAA,CAAK,CAAC,CAAI,GAAAiB,OAAA;UAAA,CACL,MAAA;YAELjB,IAAA,CAAKmB,KAAKF,OAAO,CAAA;UACnB;QACF;MACF;IACF;EAAA,CACF;AACF,CAAA;"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
1
- export type InjectedModule = {
2
- /**
3
- * The ID of the style tag (typically some stable unique hash derived CSS content)
4
- */
5
- id: string;
6
- /**
7
- * The CSS string to inject
8
- */
9
- css: string;
10
- };
@@ -1,41 +0,0 @@
1
- import type { Nullish, StorefrontProduct, StoreId, UnionToAllPossibleTuples } from "../types";
2
- import { DisplayProductStatus } from "../types";
3
- /**
4
- * Narrow MinimalProProductFragment type even more to the union of fields that are needed to sort product
5
- */
6
- type ProductMinFieldsForSorting = Pick<StorefrontProduct, "status" | "tags" | "minDisplayPrice"> & {
7
- variants: {
8
- availableInOtherStores: Array<{
9
- __typename: string;
10
- }>;
11
- }[];
12
- linkedProducts?: {
13
- status: StorefrontProduct["status"];
14
- }[];
15
- };
16
- export declare enum Sort {
17
- HighestPrice = "highest-price",
18
- LowestPrice = "lowest-price",
19
- Availability = "availability"
20
- }
21
- export declare enum SortOrder {
22
- Asc = "Asc",
23
- Desc = "Desc"
24
- }
25
- /**
26
- * Variants statuses sorted in ascending order from least preferable to most, so if some new status comes in, then the
27
- * lookup for `.indexOf()` would return `-1`, thus being "worse" then DisplayProductStatus.SoldOut and moved to the very
28
- * back of list
29
- */
30
- export declare const sortedStatusesByPriorityAsc: UnionToAllPossibleTuples<DisplayProductStatus>;
31
- export declare const sortByAvailabilityDesc: (current: ProductMinFieldsForSorting, next: ProductMinFieldsForSorting) => number;
32
- export declare const sortByPrice: (order: SortOrder) => (current: ProductMinFieldsForSorting, next: ProductMinFieldsForSorting) => number;
33
- /**
34
- * Sorts products based on the given sort type.
35
- * @param currentSort - sort type
36
- * @param sortByWeightTag - if false, then sort by weight tag is
37
- * ignored (e.g. for `Related Add-ons` where
38
- * we don't want to sort by weight tag)
39
- */
40
- export declare const sortProducts: (currentSort: Nullish<string | Sort>, storeId?: StoreId, sortByWeightTag?: boolean) => (current: ProductMinFieldsForSorting, next: ProductMinFieldsForSorting) => number;
41
- export {};
@@ -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,G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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;IAC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A;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;"}