@ubnt/store.core 9.64.0 → 9.64.1-new-design.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (638) hide show
  1. package/CHANGELOG.md +153 -1
  2. package/lib/_virtual/_virtual_multi-entry.js +13 -10
  3. package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
  4. package/lib/_virtual/_virtual_multi-entry.mjs +13 -11
  5. package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
  6. package/lib/apis/smartcat.d.ts +12 -2
  7. package/lib/apis/smartcat.js +27 -4
  8. package/lib/apis/smartcat.js.map +1 -1
  9. package/lib/apis/smartcat.mjs +27 -4
  10. package/lib/apis/smartcat.mjs.map +1 -1
  11. package/lib/assets/arrow2.svg +3 -0
  12. package/lib/assets/cart-secondary.svg +5 -0
  13. package/lib/assets/icon-location-pin.svg +5 -0
  14. package/lib/assets/icons/{menu/icon-globe.svg.js → cart-secondary.svg.js} +6 -6
  15. package/lib/assets/icons/cart-secondary.svg.js.map +1 -0
  16. package/lib/assets/icons/cart-secondary.svg.mjs +3 -0
  17. package/lib/assets/icons/cart-secondary.svg.mjs.map +1 -0
  18. package/lib/{components/ModelCompareV3/assets/Switching/aggregation.jpg.js → assets/icons/menu/icon-location-pin.svg.js} +6 -6
  19. package/lib/assets/icons/menu/icon-location-pin.svg.js.map +1 -0
  20. package/lib/assets/icons/menu/icon-location-pin.svg.mjs +3 -0
  21. package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +1 -0
  22. package/lib/assets/logoUnifi.svg +10 -2
  23. package/lib/assets/minus4.svg +8 -8
  24. package/lib/assets/minus5.svg +8 -8
  25. package/lib/assets/plus5.svg +9 -9
  26. package/lib/assets/plus6.svg +9 -9
  27. package/lib/assets/poe2.svg +3 -2
  28. package/lib/assets/poe3.svg +2 -3
  29. package/lib/assets/port.svg +4 -2
  30. package/lib/assets/port2.svg +2 -4
  31. package/lib/assets/udmPro.jpg +0 -0
  32. package/lib/assets/udmPro2.jpg +0 -0
  33. package/lib/assets/udmProMax.jpg +0 -0
  34. package/lib/assets/udmProMax2.jpg +0 -0
  35. package/lib/assets/udmProSpecial.jpg +0 -0
  36. package/lib/assets/udmProSpecial2.jpg +0 -0
  37. package/lib/assets/udr2.jpg +0 -0
  38. package/lib/assets/udr3.jpg +0 -0
  39. package/lib/assets/udr7.jpg +0 -0
  40. package/lib/assets/udr72.jpg +0 -0
  41. package/lib/components/Accordion/Accordion.js +4 -4
  42. package/lib/components/Avatar/Avatar.js +2 -2
  43. package/lib/components/BackInStock/BackInStock.types.d.ts +1 -0
  44. package/lib/components/Button/Button.js +12 -5
  45. package/lib/components/Button/Button.js.map +1 -1
  46. package/lib/components/Button/Button.mjs +8 -1
  47. package/lib/components/Button/Button.mjs.map +1 -1
  48. package/lib/components/Button/CartButton.d.ts +3 -1
  49. package/lib/components/Button/CartButton.js +11 -6
  50. package/lib/components/Button/CartButton.js.map +1 -1
  51. package/lib/components/Button/CartButton.mjs +8 -4
  52. package/lib/components/Button/CartButton.mjs.map +1 -1
  53. package/lib/components/ButtonGroup/ButtonGroup.d.ts +1 -1
  54. package/lib/components/ButtonGroup/ButtonGroup.js +16 -9
  55. package/lib/components/ButtonGroup/ButtonGroup.js.map +1 -1
  56. package/lib/components/ButtonGroup/ButtonGroup.mjs +16 -9
  57. package/lib/components/ButtonGroup/ButtonGroup.mjs.map +1 -1
  58. package/lib/components/ButtonGroup/ButtonGroup.styles.d.ts +10 -6
  59. package/lib/components/ButtonGroup/ButtonGroup.styles.js +60 -20
  60. package/lib/components/ButtonGroup/ButtonGroup.styles.js.map +1 -1
  61. package/lib/components/ButtonGroup/ButtonGroup.styles.mjs +60 -20
  62. package/lib/components/ButtonGroup/ButtonGroup.styles.mjs.map +1 -1
  63. package/lib/components/ButtonGroup/ButtonGroup.types.d.ts +5 -0
  64. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.d.ts +1 -1
  65. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js +16 -4
  66. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js.map +1 -1
  67. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs +17 -5
  68. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs.map +1 -1
  69. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.d.ts +5 -1
  70. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js +82 -17
  71. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js.map +1 -1
  72. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs +82 -17
  73. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs.map +1 -1
  74. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.types.d.ts +4 -0
  75. package/lib/components/ButtonGroupBasic/index.stories.d.ts +6 -0
  76. package/lib/components/CardSection/Card/Card.d.ts +1 -1
  77. package/lib/components/CardSection/Card/Card.js +9 -7
  78. package/lib/components/CardSection/Card/Card.js.map +1 -1
  79. package/lib/components/CardSection/Card/Card.mjs +3 -1
  80. package/lib/components/CardSection/Card/Card.mjs.map +1 -1
  81. package/lib/components/CardSection/Card/Card.types.d.ts +1 -0
  82. package/lib/components/CardSection/Card/Card.types.js.map +1 -1
  83. package/lib/components/CardSection/Card/Card.types.mjs.map +1 -1
  84. package/lib/components/CardSection/CardSection.js +2 -2
  85. package/lib/components/CardSection/CardSection.styles.d.ts +1 -1
  86. package/lib/components/CartIcon/CartIcon.js +2 -2
  87. package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +4 -2
  88. package/lib/components/CategoryTabs/CategoryTabs.styles.js +8 -5
  89. package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
  90. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +7 -6
  91. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
  92. package/lib/components/Checkbox/Checkbox.js +4 -4
  93. package/lib/components/CloserLookSection/CloserLookSection.js +11 -11
  94. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.js +5 -5
  95. package/lib/components/Compare/Compare.styles.d.ts +5 -5
  96. package/lib/components/Container/Container.d.ts +1 -1
  97. package/lib/components/Container/Container.js +5 -4
  98. package/lib/components/Container/Container.js.map +1 -1
  99. package/lib/components/Container/Container.mjs +5 -4
  100. package/lib/components/Container/Container.mjs.map +1 -1
  101. package/lib/components/Container/index.stories.d.ts +5 -5
  102. package/lib/components/CustomImage/CustomImage.js +12 -12
  103. package/lib/components/Explore/Explore.js +5 -5
  104. package/lib/components/Explore/ExploreData.js +11 -11
  105. package/lib/components/Explore/ExploreData.js.map +1 -1
  106. package/lib/components/Explore/ExploreData.mjs +11 -11
  107. package/lib/components/Explore/ExploreData.mjs.map +1 -1
  108. package/lib/components/FeaturesSection_deprecated/Features/Features.js +2 -2
  109. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +22 -22
  110. package/lib/components/Footer/Footer.js +2 -2
  111. package/lib/components/Footer/hooks/useFooterContent.js +5 -5
  112. package/lib/components/Gallery/Gallery.context.js +17 -17
  113. package/lib/components/Gallery/Gallery.js +9 -9
  114. package/lib/components/Gallery/GalleryControls/GalleryControls.js +4 -4
  115. package/lib/components/Gallery/GalleryItem/GalleryItem.js +8 -8
  116. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.js +8 -8
  117. package/lib/components/GridGallery/GridGallery.js +8 -8
  118. package/lib/components/GridGallery/GridModal/GridModal.js +6 -6
  119. package/lib/components/Header/AccountFrame/AccountFrame.js +11 -11
  120. package/lib/components/Header/AccountFrame/Mobile/Mobile.js +4 -4
  121. package/lib/components/Header/AccountMenu/AccountMenu.js +30 -20
  122. package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
  123. package/lib/components/Header/AccountMenu/AccountMenu.mjs +13 -3
  124. package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
  125. package/lib/components/Header/CartModal/Empty/Empty.js +3 -3
  126. package/lib/components/Header/CartModalV2/CartModal.js +5 -5
  127. package/lib/components/Header/CartModalV2/Item/Item.js +4 -4
  128. package/lib/components/Header/CartModalV2/Item/Item.styles.d.ts +1 -1
  129. package/lib/components/Header/Header.js +43 -43
  130. package/lib/components/Header/Header.js.map +1 -1
  131. package/lib/components/Header/Header.mjs +9 -9
  132. package/lib/components/Header/Header.mjs.map +1 -1
  133. package/lib/components/Header/Header.stories.d.ts +111 -0
  134. package/lib/components/Header/Header.styles.d.ts +7 -12
  135. package/lib/components/Header/Header.styles.js +10 -32
  136. package/lib/components/Header/Header.styles.js.map +1 -1
  137. package/lib/components/Header/Header.styles.mjs +10 -31
  138. package/lib/components/Header/Header.styles.mjs.map +1 -1
  139. package/lib/components/Header/Header.types.d.ts +29 -5
  140. package/lib/components/Header/Header.types.js +2 -1
  141. package/lib/components/Header/Header.types.js.map +1 -1
  142. package/lib/components/Header/Header.types.mjs +2 -1
  143. package/lib/components/Header/Header.types.mjs.map +1 -1
  144. package/lib/components/Header/IsolatedHeader.d.ts +1 -0
  145. package/lib/components/Header/IsolatedHeader.js +50 -50
  146. package/lib/components/Header/IsolatedHeader.js.map +1 -1
  147. package/lib/components/Header/IsolatedHeader.mjs +47 -46
  148. package/lib/components/Header/IsolatedHeader.mjs.map +1 -1
  149. package/lib/components/Header/LanguageFrame/LanguageFrame.js +6 -6
  150. package/lib/components/Header/LogoIcon/LogoIcon.d.ts +7 -0
  151. package/lib/components/Header/LogoIcon/LogoIcon.js +46 -0
  152. package/lib/components/Header/LogoIcon/LogoIcon.js.map +1 -0
  153. package/lib/components/Header/LogoIcon/LogoIcon.mjs +36 -0
  154. package/lib/components/Header/LogoIcon/LogoIcon.mjs.map +1 -0
  155. package/lib/components/Header/LogoIcon/index.d.ts +1 -0
  156. package/lib/components/Header/LogoIcon/index.js +6 -0
  157. package/lib/components/Header/LogoIcon/index.js.map +1 -0
  158. package/lib/components/Header/LogoIcon/index.mjs +3 -0
  159. package/lib/components/Header/LogoIcon/index.mjs.map +1 -0
  160. package/lib/components/Header/MenuItem/MenuItem.styles.d.ts +1 -1
  161. package/lib/components/Header/MenuItem/MenuItem.styles.js +3 -3
  162. package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
  163. package/lib/components/Header/MenuItem/MenuItem.styles.mjs +3 -3
  164. package/lib/components/Header/MenuItem/MenuItem.styles.mjs.map +1 -1
  165. package/lib/components/Header/MenuItem/MenuItem.types.d.ts +1 -0
  166. package/lib/components/Header/Navigation/Carousel/Carousel.js +5 -5
  167. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.js +12 -12
  168. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
  169. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +6 -6
  170. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +1 -1
  171. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
  172. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +116 -109
  173. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
  174. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +111 -104
  175. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
  176. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +9 -0
  177. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +15 -1
  178. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
  179. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +13 -2
  180. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
  181. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +12 -6
  182. package/lib/components/Header/Overlay/Overlay.js +3 -3
  183. package/lib/components/Header/ProHeader/ProHeader.d.ts +9 -5
  184. package/lib/components/Header/ProHeader/ProHeader.js +290 -189
  185. package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
  186. package/lib/components/Header/ProHeader/ProHeader.mjs +270 -171
  187. package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
  188. package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +38 -23
  189. package/lib/components/Header/ProHeader/ProHeader.styles.js +205 -67
  190. package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
  191. package/lib/components/Header/ProHeader/ProHeader.styles.mjs +194 -66
  192. package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
  193. package/lib/components/Header/translations/ar.json.js +4 -1
  194. package/lib/components/Header/translations/ar.json.js.map +1 -1
  195. package/lib/components/Header/translations/ar.json.mjs +4 -2
  196. package/lib/components/Header/translations/ar.json.mjs.map +1 -1
  197. package/lib/components/Header/translations/de.json.js +4 -1
  198. package/lib/components/Header/translations/de.json.js.map +1 -1
  199. package/lib/components/Header/translations/de.json.mjs +4 -2
  200. package/lib/components/Header/translations/de.json.mjs.map +1 -1
  201. package/lib/components/Header/translations/el.json.js +4 -1
  202. package/lib/components/Header/translations/el.json.js.map +1 -1
  203. package/lib/components/Header/translations/el.json.mjs +4 -2
  204. package/lib/components/Header/translations/el.json.mjs.map +1 -1
  205. package/lib/components/Header/translations/en.json.js +7 -1
  206. package/lib/components/Header/translations/en.json.js.map +1 -1
  207. package/lib/components/Header/translations/en.json.mjs +6 -2
  208. package/lib/components/Header/translations/en.json.mjs.map +1 -1
  209. package/lib/components/Header/translations/es.json.js +4 -1
  210. package/lib/components/Header/translations/es.json.js.map +1 -1
  211. package/lib/components/Header/translations/es.json.mjs +4 -2
  212. package/lib/components/Header/translations/es.json.mjs.map +1 -1
  213. package/lib/components/Header/translations/fr.json.js +4 -1
  214. package/lib/components/Header/translations/fr.json.js.map +1 -1
  215. package/lib/components/Header/translations/fr.json.mjs +4 -2
  216. package/lib/components/Header/translations/fr.json.mjs.map +1 -1
  217. package/lib/components/Header/translations/it.json.js +4 -1
  218. package/lib/components/Header/translations/it.json.js.map +1 -1
  219. package/lib/components/Header/translations/it.json.mjs +4 -2
  220. package/lib/components/Header/translations/it.json.mjs.map +1 -1
  221. package/lib/components/Header/translations/ja.json.js +4 -1
  222. package/lib/components/Header/translations/ja.json.js.map +1 -1
  223. package/lib/components/Header/translations/ja.json.mjs +4 -2
  224. package/lib/components/Header/translations/ja.json.mjs.map +1 -1
  225. package/lib/components/Header/translations/pt-BR.json.js +4 -1
  226. package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
  227. package/lib/components/Header/translations/pt-BR.json.mjs +4 -2
  228. package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
  229. package/lib/components/Header/translations/zh-Hans.json.js +4 -1
  230. package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
  231. package/lib/components/Header/translations/zh-Hans.json.mjs +4 -2
  232. package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
  233. package/lib/components/Header/translations/zh-Hant-TW.json.js +4 -1
  234. package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
  235. package/lib/components/Header/translations/zh-Hant-TW.json.mjs +4 -2
  236. package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
  237. package/lib/components/Hero/Hero.js +5 -5
  238. package/lib/components/Hero/Hero.styles.d.ts +2 -2
  239. package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +1 -1
  240. package/lib/components/HeroVideo/HeroVideo.js +5 -5
  241. package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +2 -2
  242. package/lib/components/ImageCarousel/ImageCarousel.js +30 -30
  243. package/lib/components/ImageSequence/ImageSequence.js +8 -8
  244. package/lib/components/LandingPage/Cards/Card/Card.js +4 -4
  245. package/lib/components/LandingPage/Cards/Cards.js +10 -10
  246. package/lib/components/LandingPage/LandingPage.js +2 -2
  247. package/lib/components/LandingPagePro/LandingPagePro.js +13 -13
  248. package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +1 -1
  249. package/lib/components/LandingPageSearch/LandingPageSearch.js +2 -2
  250. package/lib/components/LandingPageSearch/Modal/Modal.js +9 -9
  251. package/lib/components/LandingPageSidebar/LandingPageSidebar.js +12 -12
  252. package/lib/components/LayoutRenderer/LayoutRenderer.js +8 -8
  253. package/lib/components/LayoutRenderer/LayoutRenderer.styles.d.ts +1 -1
  254. package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +3 -3
  255. package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +3 -3
  256. package/lib/components/LoaderDots/LoaderDots.d.ts +1 -1
  257. package/lib/components/LoaderDots/LoaderDots.js +3 -1
  258. package/lib/components/LoaderDots/LoaderDots.js.map +1 -1
  259. package/lib/components/LoaderDots/LoaderDots.mjs +3 -1
  260. package/lib/components/LoaderDots/LoaderDots.mjs.map +1 -1
  261. package/lib/components/LoaderDots/LoaderDots.styles.d.ts +2 -1
  262. package/lib/components/LoaderDots/LoaderDots.styles.js +11 -1
  263. package/lib/components/LoaderDots/LoaderDots.styles.js.map +1 -1
  264. package/lib/components/LoaderDots/LoaderDots.styles.mjs +11 -1
  265. package/lib/components/LoaderDots/LoaderDots.styles.mjs.map +1 -1
  266. package/lib/components/LoaderDots/LoaderDots.types.d.ts +2 -0
  267. package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.js +7 -7
  268. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.js +18 -18
  269. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.d.ts +1 -1
  270. package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.js +2 -2
  271. package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.js +3 -3
  272. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.js +3 -3
  273. package/lib/components/MicrositeHero/MicrositeHero.js +18 -18
  274. package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.js +4 -4
  275. package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.js +9 -9
  276. package/lib/components/MicrositeProductGrid/MicrositeProductGrid.js +8 -8
  277. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlockWrap.js +2 -2
  278. package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +1 -1
  279. package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.js +3 -3
  280. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +12 -12
  281. package/lib/components/Microsites/MicrositePageContext.js +2 -2
  282. package/lib/components/Microsites/MicrositeProductPage.js +3 -3
  283. package/lib/components/Microsites/context/MicrositeProductPageContext.js +3 -3
  284. package/lib/components/MobileModal/MobileModal.js +4 -4
  285. package/lib/components/Modal/Modal.js +3 -3
  286. package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js +3 -3
  287. package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.js +2 -2
  288. package/lib/components/ModelCompareV3/ModelCompareV3.js +14 -14
  289. package/lib/components/ModelCompareV3/ProductGroupsGrid.js +3 -3
  290. package/lib/components/ModelCompareV3/ScrollGroup/ScrollGroup.js +5 -5
  291. package/lib/components/ModelCompareV3/ScrollGroup/context.js +3 -3
  292. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupItem.js +8 -8
  293. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupSetScroll.js +2 -2
  294. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupTo.js +2 -2
  295. package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js +7 -7
  296. package/lib/components/ModelCompareV3/StickyGrid/StickyGridBody.js +2 -2
  297. package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js +5 -5
  298. package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.js +2 -2
  299. package/lib/components/ModelCompareV3/StickyGrid/context.js +3 -3
  300. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
  301. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
  302. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
  303. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
  304. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
  305. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
  306. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udr.jpg.js +5 -5
  307. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udr.jpg.mjs +2 -2
  308. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udr7.jpg.js +5 -5
  309. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udr7.jpg.mjs +2 -2
  310. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
  311. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
  312. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
  313. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
  314. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
  315. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
  316. package/lib/components/ModelCompareV3/assets/Consoles/udr.jpg.js +1 -1
  317. package/lib/components/ModelCompareV3/assets/Consoles/udr.jpg.mjs +2 -2
  318. package/lib/components/ModelCompareV3/assets/Consoles/udr7.jpg.js +1 -1
  319. package/lib/components/ModelCompareV3/assets/Consoles/udr7.jpg.mjs +2 -2
  320. package/lib/components/ModelCompareV3/assets/poe.svg.js +1 -1
  321. package/lib/components/ModelCompareV3/assets/poe.svg.mjs +2 -2
  322. package/lib/components/ModelCompareV3/assets/port.svg.js +1 -1
  323. package/lib/components/ModelCompareV3/assets/port.svg.mjs +2 -2
  324. package/lib/components/ModelCompareV3/data/CloudGateways.js +12 -12
  325. package/lib/components/ModelCompareV3/data/CloudGateways.mjs +8 -8
  326. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js +3 -2
  327. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js.map +1 -1
  328. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs +3 -2
  329. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs.map +1 -1
  330. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js +4 -2
  331. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js.map +1 -1
  332. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs +4 -2
  333. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs.map +1 -1
  334. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js +2 -2
  335. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js.map +1 -1
  336. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.mjs +2 -2
  337. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.mjs.map +1 -1
  338. package/lib/components/ModelCompareV3/data/products/express.js +3 -3
  339. package/lib/components/ModelCompareV3/data/products/express.js.map +1 -1
  340. package/lib/components/ModelCompareV3/data/products/express.mjs +3 -3
  341. package/lib/components/ModelCompareV3/data/products/express.mjs.map +1 -1
  342. package/lib/components/ModelCompareV3/data/products/express7.js +1 -1
  343. package/lib/components/ModelCompareV3/data/products/express7.js.map +1 -1
  344. package/lib/components/ModelCompareV3/data/products/express7.mjs +1 -1
  345. package/lib/components/ModelCompareV3/data/products/express7.mjs.map +1 -1
  346. package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js +5 -3
  347. package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js.map +1 -1
  348. package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs +5 -3
  349. package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs.map +1 -1
  350. package/lib/components/ModelCompareV3/data/products/gatewayLite.js +5 -3
  351. package/lib/components/ModelCompareV3/data/products/gatewayLite.js.map +1 -1
  352. package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs +5 -3
  353. package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs.map +1 -1
  354. package/lib/components/ModelCompareV3/data/products/gatewayMax.js +4 -2
  355. package/lib/components/ModelCompareV3/data/products/gatewayMax.js.map +1 -1
  356. package/lib/components/ModelCompareV3/data/products/gatewayMax.mjs +4 -2
  357. package/lib/components/ModelCompareV3/data/products/gatewayMax.mjs.map +1 -1
  358. package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js +5 -3
  359. package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js.map +1 -1
  360. package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs +5 -3
  361. package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs.map +1 -1
  362. package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.js +3 -1
  363. package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.js.map +1 -1
  364. package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.mjs +3 -1
  365. package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.mjs.map +1 -1
  366. package/lib/components/ModelCompareV3/data/products/ucgFiber.js +1 -1
  367. package/lib/components/ModelCompareV3/data/products/ucgFiber.js.map +1 -1
  368. package/lib/components/ModelCompareV3/data/products/ucgFiber.mjs +1 -1
  369. package/lib/components/ModelCompareV3/data/products/ucgFiber.mjs.map +1 -1
  370. package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
  371. package/lib/components/ModelCompareV3/data/products/ucgMax.js.map +1 -1
  372. package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
  373. package/lib/components/ModelCompareV3/data/products/ucgMax.mjs.map +1 -1
  374. package/lib/components/ModelCompareV3/data/products/ucgUltra.js +3 -3
  375. package/lib/components/ModelCompareV3/data/products/ucgUltra.js.map +1 -1
  376. package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +3 -3
  377. package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs.map +1 -1
  378. package/lib/components/ModelCompareV3/data/products/udmPro.js +4 -4
  379. package/lib/components/ModelCompareV3/data/products/udmPro.js.map +1 -1
  380. package/lib/components/ModelCompareV3/data/products/udmPro.mjs +4 -4
  381. package/lib/components/ModelCompareV3/data/products/udmPro.mjs.map +1 -1
  382. package/lib/components/ModelCompareV3/data/products/udmProMax.js +4 -4
  383. package/lib/components/ModelCompareV3/data/products/udmProMax.js.map +1 -1
  384. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +4 -4
  385. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs.map +1 -1
  386. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +4 -4
  387. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js.map +1 -1
  388. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +4 -4
  389. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs.map +1 -1
  390. package/lib/components/ModelCompareV3/data/products/udr.js +2 -2
  391. package/lib/components/ModelCompareV3/data/products/udr.js.map +1 -1
  392. package/lib/components/ModelCompareV3/data/products/udr.mjs +2 -2
  393. package/lib/components/ModelCompareV3/data/products/udr.mjs.map +1 -1
  394. package/lib/components/ModelCompareV3/data/products/udr7.js +2 -2
  395. package/lib/components/ModelCompareV3/data/products/udr7.js.map +1 -1
  396. package/lib/components/ModelCompareV3/data/products/udr7.mjs +2 -2
  397. package/lib/components/ModelCompareV3/data/products/udr7.mjs.map +1 -1
  398. package/lib/components/ModelCompareV3/data/products/udw.js +3 -3
  399. package/lib/components/ModelCompareV3/data/products/udw.js.map +1 -1
  400. package/lib/components/ModelCompareV3/data/products/udw.mjs +3 -3
  401. package/lib/components/ModelCompareV3/data/products/udw.mjs.map +1 -1
  402. package/lib/components/ModelCompareV3/data/properties/powerMethodPoe.js +1 -1
  403. package/lib/components/ModelCompareV3/data/properties/powerMethodPoe.mjs +1 -1
  404. package/lib/components/ModelCompareV3/data/properties/readerPowerMethod.js +1 -1
  405. package/lib/components/ModelCompareV3/data/properties/readerPowerMethod.mjs +1 -1
  406. package/lib/components/ModelCompareV3/data/properties/redundantRj45Port.js +1 -1
  407. package/lib/components/ModelCompareV3/data/properties/redundantRj45Port.mjs +1 -1
  408. package/lib/components/Pagination/Pagination.js +3 -3
  409. package/lib/components/PriceRangeSlider/PriceRangeSlider.js +16 -16
  410. package/lib/components/ProductCard/ProductCard.js +7 -7
  411. package/lib/components/ProductCardPopup/ProductCardPopup.js +8 -8
  412. package/lib/components/ProductCompare/ProductCompare.js +7 -7
  413. package/lib/components/ProductDetails/ProductDetails.js +5 -5
  414. package/lib/components/ProductGrid/ProductGrid.js +10 -10
  415. package/lib/components/ProductKeyFeatures/ProductKeyFeatures.js +3 -3
  416. package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +1 -1
  417. package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +1 -1
  418. package/lib/components/ProductSectionTabs/ProductSectionTabs.js +2 -2
  419. package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +2 -2
  420. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.d.ts +2 -0
  421. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js +79 -0
  422. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js.map +1 -0
  423. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs +71 -0
  424. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs.map +1 -0
  425. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.stories.d.ts +5 -0
  426. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.d.ts +11 -0
  427. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +86 -0
  428. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +1 -0
  429. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +72 -0
  430. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs.map +1 -0
  431. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.types.d.ts +12 -0
  432. package/lib/components/ProductTechSpecsV2/index.d.ts +1 -0
  433. package/lib/components/ProductTechSpecsV2/index.js +6 -0
  434. package/lib/components/ProductTechSpecsV2/index.js.map +1 -0
  435. package/lib/components/ProductTechSpecsV2/index.mjs +3 -0
  436. package/lib/components/ProductTechSpecsV2/index.mjs.map +1 -0
  437. package/lib/components/ProductWizard/Options/Options.js +3 -3
  438. package/lib/components/ProductWizard/ProductWizard.js +2 -2
  439. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js +5 -5
  440. package/lib/components/ProgressCircle/ProgressCircle.js +4 -4
  441. package/lib/components/QuantityControls/QuantityControls.js +6 -6
  442. package/lib/components/QuantityControls/QuantityControls.js.map +1 -1
  443. package/lib/components/QuantityControls/QuantityControls.mjs +2 -2
  444. package/lib/components/QuantityControls/QuantityControls.mjs.map +1 -1
  445. package/lib/components/QuantityControls/QuantityControls.types.d.ts +1 -1
  446. package/lib/components/QuantityInput/QuantityInput.js +6 -1
  447. package/lib/components/QuantityInput/QuantityInput.js.map +1 -1
  448. package/lib/components/QuantityInput/QuantityInput.mjs +6 -1
  449. package/lib/components/QuantityInput/QuantityInput.mjs.map +1 -1
  450. package/lib/components/RelatedProducts/RelatedProducts.js +5 -5
  451. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +2 -2
  452. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
  453. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +2 -2
  454. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
  455. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js +36 -36
  456. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +12 -12
  457. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +5 -5
  458. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CheckboxSection.js +2 -2
  459. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +6 -6
  460. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
  461. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/SliderSection.js +3 -3
  462. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
  463. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
  464. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
  465. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
  466. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +7 -7
  467. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +6 -6
  468. package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.js +9 -9
  469. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.js +10 -10
  470. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +17 -17
  471. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
  472. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
  473. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
  474. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
  475. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
  476. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.js +4 -4
  477. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.mjs +2 -2
  478. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/poe.svg.js +1 -1
  479. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/poe.svg.mjs +2 -2
  480. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/port.svg.js +1 -1
  481. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/port.svg.mjs +2 -2
  482. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +6 -6
  483. package/lib/components/ResourceCalculatorV1/translations/en.json.js +1 -1
  484. package/lib/components/ResourceCalculatorV1/translations/en.json.mjs +1 -1
  485. package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.js +5 -5
  486. package/lib/components/ScrollWrapper/ScrollWrapper.d.ts +1 -1
  487. package/lib/components/ScrollWrapper/ScrollWrapper.js +34 -26
  488. package/lib/components/ScrollWrapper/ScrollWrapper.js.map +1 -1
  489. package/lib/components/ScrollWrapper/ScrollWrapper.mjs +16 -8
  490. package/lib/components/ScrollWrapper/ScrollWrapper.mjs.map +1 -1
  491. package/lib/components/ScrollWrapper/ScrollWrapper.types.d.ts +2 -0
  492. package/lib/components/Search/Input/Input.d.ts +1 -1
  493. package/lib/components/Search/Input/Input.js +8 -8
  494. package/lib/components/Search/Input/Input.js.map +1 -1
  495. package/lib/components/Search/Input/Input.mjs +4 -4
  496. package/lib/components/Search/Input/Input.mjs.map +1 -1
  497. package/lib/components/Search/Input/Input.styles.js +0 -1
  498. package/lib/components/Search/Input/Input.styles.js.map +1 -1
  499. package/lib/components/Search/Input/Input.styles.mjs +0 -1
  500. package/lib/components/Search/Input/Input.styles.mjs.map +1 -1
  501. package/lib/components/Search/Input/Input.types.d.ts +3 -2
  502. package/lib/components/Search/Modal/Modal.js +3 -3
  503. package/lib/components/StorageSliders/Slider/Slider.js +3 -3
  504. package/lib/components/StorageSliders/StorageSliders.context.js +20 -20
  505. package/lib/components/StorageSliders/StorageSliders.js +4 -4
  506. package/lib/components/Tooltip/Tooltip.js +5 -5
  507. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js +7 -7
  508. package/lib/components/VariantSelector/Variant/Variant.js +40 -40
  509. package/lib/components/VariantSelector/VariantSelector.js +16 -16
  510. package/lib/components/VideoPlayerNew/VideoPlayer.js +19 -19
  511. package/lib/components/index.d.ts +1 -0
  512. package/lib/components/index.js +2 -0
  513. package/lib/components/index.js.map +1 -1
  514. package/lib/components/index.mjs +2 -0
  515. package/lib/components/index.mjs.map +1 -1
  516. package/lib/constants/icons/header/arrow.svg.js +27 -0
  517. package/lib/constants/icons/header/arrow.svg.js.map +1 -0
  518. package/lib/constants/icons/header/arrow.svg.mjs +3 -0
  519. package/lib/constants/icons/header/arrow.svg.mjs.map +1 -0
  520. package/lib/constants/icons/header/index.d.ts +1 -0
  521. package/lib/constants/icons/header/index.js +9 -0
  522. package/lib/constants/icons/header/index.js.map +1 -1
  523. package/lib/constants/icons/header/index.mjs +2 -0
  524. package/lib/constants/icons/header/index.mjs.map +1 -1
  525. package/lib/constants/icons/options/colors/black.svg.js +5 -5
  526. package/lib/constants/icons/options/colors/index.js +3 -3
  527. package/lib/constants/icons/options/styles/black.svg.js +5 -5
  528. package/lib/constants/icons/options/styles/index.js +3 -3
  529. package/lib/constants/optionIcons.js +6 -6
  530. package/lib/constants/optionIcons.mjs +4 -4
  531. package/lib/constants/proStoreCategories/mapping/filters.d.ts +17 -0
  532. package/lib/constants/proStoreCategories/mapping/filters.js +17 -0
  533. package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
  534. package/lib/constants/proStoreCategories/mapping/filters.mjs +17 -0
  535. package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
  536. package/lib/constants/proStoreCategories/mapping/index.d.ts +5 -2
  537. package/lib/constants/proStoreCategories/mapping/index.js +55 -51
  538. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  539. package/lib/constants/proStoreCategories/mapping/index.mjs +54 -49
  540. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  541. package/lib/constants/proStoreCategories/mapping/mapping.d.ts +5 -0
  542. package/lib/constants/proStoreCategories/mapping/redirects.js +18 -3
  543. package/lib/constants/proStoreCategories/mapping/redirects.js.map +1 -1
  544. package/lib/constants/proStoreCategories/mapping/redirects.mjs +18 -3
  545. package/lib/constants/proStoreCategories/mapping/redirects.mjs.map +1 -1
  546. package/lib/constants/proStoreCategories/mapping/unifi.d.ts +10 -9
  547. package/lib/constants/proStoreCategories/mapping/unifi.js +10 -9
  548. package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
  549. package/lib/constants/proStoreCategories/mapping/unifi.mjs +10 -9
  550. package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
  551. package/lib/constants/proStoreCategories/translations/ar.json.js +8 -1
  552. package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
  553. package/lib/constants/proStoreCategories/translations/ar.json.mjs +8 -2
  554. package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
  555. package/lib/constants/proStoreCategories/translations/de.json.js +7 -0
  556. package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
  557. package/lib/constants/proStoreCategories/translations/de.json.mjs +7 -1
  558. package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
  559. package/lib/constants/proStoreCategories/translations/el.json.js +8 -1
  560. package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
  561. package/lib/constants/proStoreCategories/translations/el.json.mjs +8 -2
  562. package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
  563. package/lib/constants/proStoreCategories/translations/en.json.js +7 -2
  564. package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
  565. package/lib/constants/proStoreCategories/translations/en.json.mjs +7 -3
  566. package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
  567. package/lib/constants/proStoreCategories/translations/es.json.js +8 -1
  568. package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
  569. package/lib/constants/proStoreCategories/translations/es.json.mjs +8 -2
  570. package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
  571. package/lib/constants/proStoreCategories/translations/fr.json.js +8 -1
  572. package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
  573. package/lib/constants/proStoreCategories/translations/fr.json.mjs +8 -2
  574. package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
  575. package/lib/constants/proStoreCategories/translations/it.json.js +8 -1
  576. package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
  577. package/lib/constants/proStoreCategories/translations/it.json.mjs +8 -2
  578. package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
  579. package/lib/constants/proStoreCategories/translations/ja.json.js +8 -1
  580. package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
  581. package/lib/constants/proStoreCategories/translations/ja.json.mjs +8 -2
  582. package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
  583. package/lib/constants/proStoreCategories/translations/pt-BR.json.js +7 -0
  584. package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
  585. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +7 -1
  586. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
  587. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +8 -1
  588. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
  589. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +8 -2
  590. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
  591. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +8 -1
  592. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
  593. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +8 -2
  594. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
  595. package/lib/constants/proStoreFilters/mapping.d.ts +56 -6
  596. package/lib/constants/proStoreFilters/mapping.js +142 -14
  597. package/lib/constants/proStoreFilters/mapping.js.map +1 -1
  598. package/lib/constants/proStoreFilters/mapping.mjs +142 -14
  599. package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
  600. package/lib/constants/theme.js +4 -0
  601. package/lib/constants/theme.js.map +1 -1
  602. package/lib/constants/theme.mjs +4 -0
  603. package/lib/constants/theme.mjs.map +1 -1
  604. package/lib/contexts/MenuContext/context.js +34 -34
  605. package/lib/contexts/MenuContext/context.js.map +1 -1
  606. package/lib/contexts/MenuContext/context.mjs +1 -1
  607. package/lib/contexts/MenuContext/context.mjs.map +1 -1
  608. package/lib/contexts/MenuContext/mapping.js.map +1 -1
  609. package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
  610. package/lib/helpers/index.js +1 -0
  611. package/lib/helpers/index.js.map +1 -1
  612. package/lib/helpers/index.mjs +1 -1
  613. package/lib/helpers/proStoreCategories.js +2 -2
  614. package/lib/helpers/ux.d.ts +8 -0
  615. package/lib/helpers/ux.js +15 -0
  616. package/lib/helpers/ux.js.map +1 -1
  617. package/lib/helpers/ux.mjs +15 -1
  618. package/lib/helpers/ux.mjs.map +1 -1
  619. package/lib/hooks/useHasTouch.js +3 -3
  620. package/lib/hooks/useHddRetentionCalculator.js +5 -5
  621. package/lib/hooks/useHorizontalScroll.js +2 -2
  622. package/lib/hooks/useLockBodyScrollCustom.js +3 -3
  623. package/lib/hooks/useScrollToY.js +2 -2
  624. package/lib/hooks/useTestMediaElementVolumeSetter.js +3 -3
  625. package/lib/hooks/useTranslation.js +6 -6
  626. package/lib/utils/nextjs/ssr/registry.js +2 -2
  627. package/package.json +1 -1
  628. package/lib/assets/aggregation.jpg +0 -0
  629. package/lib/assets/icons/menu/icon-globe.svg.js.map +0 -1
  630. package/lib/assets/icons/menu/icon-globe.svg.mjs +0 -3
  631. package/lib/assets/icons/menu/icon-globe.svg.mjs.map +0 -1
  632. package/lib/components/ModelCompareV3/assets/Switching/aggregation.jpg.js.map +0 -1
  633. package/lib/components/ModelCompareV3/assets/Switching/aggregation.jpg.mjs +0 -3
  634. package/lib/components/ModelCompareV3/assets/Switching/aggregation.jpg.mjs.map +0 -1
  635. package/lib/components/ModelCompareV3/data/products/aggregation.js +0 -117
  636. package/lib/components/ModelCompareV3/data/products/aggregation.js.map +0 -1
  637. package/lib/components/ModelCompareV3/data/products/aggregation.mjs +0 -109
  638. package/lib/components/ModelCompareV3/data/products/aggregation.mjs.map +0 -1
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
- var react = require('react');
4
+ var React = require('react');
5
5
  var array = require('../../utils/array.js');
6
6
  require('../../utils/money/index.js');
7
7
  var variant = require('../../utils/variant.js');
@@ -42,13 +42,13 @@ const ProductCardPopupInternal = ({
42
42
  const {
43
43
  jumpToSlide
44
44
  } = Gallery_context.useGalleryControls();
45
- const imagesParsed = react.useMemo(() => {
45
+ const imagesParsed = React.useMemo(() => {
46
46
  return Gallery.parseGalleryEntries(images ?? [], GALLERY_FADE);
47
47
  }, [images]);
48
- const currentVariant = react.useMemo(() => {
48
+ const currentVariant = React.useMemo(() => {
49
49
  return variants?.find(variant => variant.sku === activePopupVariantSku);
50
50
  }, [activePopupVariantSku, variants]);
51
- const variantOptions = react.useMemo(() => {
51
+ const variantOptions = React.useMemo(() => {
52
52
  return options?.map(option => {
53
53
  const selectedOption = option.values.find(value => currentVariant?.optionValueIds?.includes(value.id));
54
54
  const values = option.values.map(value => {
@@ -67,13 +67,13 @@ const ProductCardPopupInternal = ({
67
67
  };
68
68
  });
69
69
  }, [currentVariant?.optionValueIds, options, variants]);
70
- const updateGalleryImage = react.useCallback(imageId => {
70
+ const updateGalleryImage = React.useCallback(imageId => {
71
71
  const imageIndex = imagesParsed.findIndex(image => image.id === imageId);
72
72
  if (imageIndex !== -1) {
73
73
  jumpToSlide(imageIndex);
74
74
  }
75
75
  }, [imagesParsed, jumpToSlide]);
76
- const handleOptionChange = react.useCallback((prevValueId, nextValueId) => {
76
+ const handleOptionChange = React.useCallback((prevValueId, nextValueId) => {
77
77
  if (!prevValueId || !nextValueId || prevValueId === nextValueId) {
78
78
  return;
79
79
  }
@@ -93,7 +93,7 @@ const ProductCardPopupInternal = ({
93
93
  }
94
94
  }
95
95
  }, [currentVariant?.optionValueIds, onVariantChange, updateGalleryImage, variants]);
96
- const renderOption = react.useCallback(({
96
+ const renderOption = React.useCallback(({
97
97
  option,
98
98
  onClick,
99
99
  isFocused,
@@ -109,7 +109,7 @@ const ProductCardPopupInternal = ({
109
109
  })]
110
110
  }, option.value);
111
111
  }, [wizardProps?.translations.addToCartButton.soldOut]);
112
- const addToCartBtnText = react.useMemo(() => {
112
+ const addToCartBtnText = React.useMemo(() => {
113
113
  if (wizardProps?.isVariantSoldOut) {
114
114
  return wizardProps?.translations.addToCartButton.soldOut;
115
115
  } else if (wizardProps?.isVariantComingSoon) {
@@ -2,7 +2,7 @@
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
4
  var merge = require('lodash/merge');
5
- var react = require('react');
5
+ var React = require('react');
6
6
  var iconParsing = require('../../helpers/shopify/iconParsing.js');
7
7
  require('../../utils/money/index.js');
8
8
  require('../Button/index.js');
@@ -34,27 +34,27 @@ const ProductCompare = function ProductCompare2({
34
34
  onVariantLearnMore,
35
35
  onVariantAddToCart
36
36
  }) {
37
- const translations = react.useMemo(() => {
37
+ const translations = React.useMemo(() => {
38
38
  return merge__default["default"](ProductCompare_constants.defaultProductCompareTranslations, initialTranslations);
39
39
  }, [initialTranslations]);
40
- const getVariantImage = react.useCallback(variant => {
40
+ const getVariantImage = React.useCallback(variant => {
41
41
  return variant.images?.find(el => !el.isVideo);
42
42
  }, []);
43
- const parsedVariants = react.useMemo(() => {
43
+ const parsedVariants = React.useMemo(() => {
44
44
  return ProductCompare_utils.parseProductCompareVariants(variants);
45
45
  }, [variants]);
46
- const section = react.useMemo(() => {
46
+ const section = React.useMemo(() => {
47
47
  for (const parsedVariant of parsedVariants) {
48
48
  return mapping.PRODUCT_COMPARE_MAPPING.sections.find(section2 => section2.id === parsedVariant.compareSectionId) ?? null;
49
49
  }
50
50
  return null;
51
51
  }, [parsedVariants]);
52
- const getPrice = react.useCallback(variant => {
52
+ const getPrice = React.useCallback(variant => {
53
53
  const price = format.formatPrice(variant.displayPrice);
54
54
  const fromPrice = variant.fromPrice ? translations.fromPrice(format.formatPrice(variant.fromPrice)) : void 0;
55
55
  return fromPrice || price;
56
56
  }, [translations]);
57
- const allRowHeights = react.useRef(parsedVariants.reduce((map, variant) => {
57
+ const allRowHeights = React.useRef(parsedVariants.reduce((map, variant) => {
58
58
  for (let row = 0; row < variant.compare.features.length; row++) {
59
59
  if (!map[row]) {
60
60
  map[row] = [];
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
- var react = require('react');
4
+ var React = require('react');
5
5
  var product = require('../../helpers/shopify/product.js');
6
6
  require('../ProductKeyFeatures/index.js');
7
7
  var ProductDetails_styles = require('./ProductDetails.styles.js');
@@ -12,8 +12,8 @@ const ProductDetails = function ProductDetails2({
12
12
  description,
13
13
  asKeyFeatures
14
14
  }) {
15
- const root = react.useRef(null);
16
- const openLinkInNewTab = react.useCallback(e => {
15
+ const root = React.useRef(null);
16
+ const openLinkInNewTab = React.useCallback(e => {
17
17
  if (e.target instanceof HTMLElement) {
18
18
  const el = e.target;
19
19
  const anchor = el.closest("a");
@@ -26,10 +26,10 @@ const ProductDetails = function ProductDetails2({
26
26
  }
27
27
  }
28
28
  }, []);
29
- const keyFeatures = react.useMemo(() => {
29
+ const keyFeatures = React.useMemo(() => {
30
30
  return product.getDescriptionKeyFeatures(description);
31
31
  }, [description]);
32
- const parsedInnerHtmlObject = react.useMemo(() => {
32
+ const parsedInnerHtmlObject = React.useMemo(() => {
33
33
  let html = description;
34
34
  if (!asKeyFeatures && keyFeatures) {
35
35
  html = keyFeatures.description;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
- var react = require('react');
4
+ var React = require('react');
5
5
  var layout = require('../../constants/layout.js');
6
6
  require('../Pagination/index.js');
7
7
  require('../ProductCard/index.js');
@@ -36,7 +36,7 @@ const ProductGrid = ({
36
36
  const {
37
37
  areProductsLoading,
38
38
  products
39
- } = react.useMemo(() => {
39
+ } = React.useMemo(() => {
40
40
  if (props.products === void 0) {
41
41
  return {
42
42
  areProductsLoading: true,
@@ -54,27 +54,27 @@ const ProductGrid = ({
54
54
  products: props.products
55
55
  };
56
56
  }, [props?.products]);
57
- const [popupProduct, setPopupProduct] = react.useState(activePopupProduct);
58
- const isPopupOpen = react.useMemo(() => !!activePopupProduct, [activePopupProduct]);
59
- react.useEffect(() => {
57
+ const [popupProduct, setPopupProduct] = React.useState(activePopupProduct);
58
+ const isPopupOpen = React.useMemo(() => !!activePopupProduct, [activePopupProduct]);
59
+ React.useEffect(() => {
60
60
  if (activePopupProduct !== void 0) {
61
61
  setPopupProduct(activePopupProduct);
62
62
  }
63
63
  }, [activePopupProduct]);
64
- const pageCount = react.useMemo(() => {
64
+ const pageCount = React.useMemo(() => {
65
65
  return Math.ceil((products?.length || 0) / PAGINATION_LIMIT);
66
66
  }, [products?.length]);
67
- const paginatedProducts = react.useMemo(() => {
67
+ const paginatedProducts = React.useMemo(() => {
68
68
  const prevRange = (paginationValue - 1) * PAGINATION_LIMIT;
69
69
  const currRange = paginationValue * PAGINATION_LIMIT;
70
70
  return products?.filter((_product, index) => {
71
71
  return !!(index >= prevRange && index < currRange);
72
72
  });
73
73
  }, [paginationValue, products]);
74
- const handleSortOptionChange = react.useCallback(option => {
74
+ const handleSortOptionChange = React.useCallback(option => {
75
75
  onSortOptionChange(typeof option.value === "string" ? option.value : option.value.toString());
76
76
  }, [onSortOptionChange]);
77
- const sortOptions = react.useMemo(() => {
77
+ const sortOptions = React.useMemo(() => {
78
78
  return [{
79
79
  value: ProductGrid_types.ProductGridSortOption.highestPrice,
80
80
  label: translations.sortOptions.highestPrice
@@ -99,7 +99,7 @@ const ProductGrid = ({
99
99
  * // },
100
100
  */];
101
101
  }, [translations.sortOptions]);
102
- const productCount = react.useMemo(() => {
102
+ const productCount = React.useMemo(() => {
103
103
  if (hasFilters) {
104
104
  return products?.length;
105
105
  }
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
- var react = require('react');
4
+ var React = require('react');
5
5
  var ProductKeyFeatures_styles = require('./ProductKeyFeatures.styles.js');
6
6
  "use strict";
7
7
  const ProductKeyFeatures = function ProductKeyFeatures2({
@@ -9,8 +9,8 @@ const ProductKeyFeatures = function ProductKeyFeatures2({
9
9
  disableHeader,
10
10
  keyFeatures
11
11
  }) {
12
- const [keyFeaturesHtml, setKeyFeaturesHtml] = react.useState(keyFeatures);
13
- react.useEffect(() => {
12
+ const [keyFeaturesHtml, setKeyFeaturesHtml] = React.useState(keyFeatures);
13
+ React.useEffect(() => {
14
14
  if (typeof keyFeatures === "string") {
15
15
  const el = document.createElement("div");
16
16
  el.innerHTML = keyFeatures;
@@ -2,7 +2,7 @@ export declare const PRODUCT_SECTION_NAVIGATION_HEIGHT = 48;
2
2
  export declare const PRODUCT_SECTION_NAVIGATION_ANIMATION_MS = 300;
3
3
  export declare const NAV_ITEM_GAP_SIZE = 30;
4
4
  export declare const Wrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
5
- export declare const Container: import("styled-components").StyledComponent<import("react").NamedExoticComponent<import("../Container/Container.types").ContainerProps>, import("styled-components").DefaultTheme, {}, never>;
5
+ export declare const Container: import("styled-components").StyledComponent<import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("../Container/Container.types").ContainerProps & import("react").RefAttributes<HTMLDivElement>>>, import("styled-components").DefaultTheme, {}, never>;
6
6
  export declare const NavItemWrapOuter: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
7
7
  export declare const NavItemWrapInner: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8
8
  export declare const NavItem: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {
@@ -1,6 +1,6 @@
1
1
  export declare const NAV_ITEM_GAP_SIZE = 30;
2
2
  export declare const Wrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
- export declare const Container: import("styled-components").StyledComponent<import("react").NamedExoticComponent<import("../Container/Container.types").ContainerProps>, import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const Container: import("styled-components").StyledComponent<import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("../Container/Container.types").ContainerProps & import("react").RefAttributes<HTMLDivElement>>>, import("styled-components").DefaultTheme, {}, never>;
4
4
  export declare const Item: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {
5
5
  active?: boolean;
6
6
  }, never>;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
- var react = require('react');
4
+ var React = require('react');
5
5
  require('../ScrollWrapper/index.js');
6
6
  var ProductSectionTabs_styles = require('./ProductSectionTabs.styles.js');
7
7
  var ScrollWrapper = require('../ScrollWrapper/ScrollWrapper.js');
@@ -12,7 +12,7 @@ const ProductSectionTabs = function ProductSectionTabs2({
12
12
  className,
13
13
  disableScroll
14
14
  }) {
15
- const htmlItems = react.useMemo(() => {
15
+ const htmlItems = React.useMemo(() => {
16
16
  return items.map((item, index) => {
17
17
  let type;
18
18
  if (index === 0) {
@@ -10,8 +10,8 @@ export declare const SpecData: import("styled-components").StyledComponent<"div"
10
10
  }, never>;
11
11
  export declare const SpecsWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
12
12
  export declare const SectionWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
13
- export declare const Container: import("styled-components").StyledComponent<import("react").NamedExoticComponent<import("../Container/Container.types").ContainerProps>, import("styled-components").DefaultTheme, {}, never>;
13
+ export declare const Container: import("styled-components").StyledComponent<import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("../Container/Container.types").ContainerProps & import("react").RefAttributes<HTMLDivElement>>>, import("styled-components").DefaultTheme, {}, never>;
14
14
  export declare const GradientButton: import("styled-components").StyledComponent<({ children, active, className, ...props }: import("../GradientButton/GradientButton.types").GradientButtonProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
15
15
  export declare const Title: import("styled-components").StyledComponent<"h2", import("styled-components").DefaultTheme, {}, never>;
16
- export declare const ScrollWrapper: import("styled-components").StyledComponent<({ align, direction, items, fillType, fillColor, accentColor, arrowColor, scrollStepType, gap, className, arrowFadeColor, activeIndex, circleArrowBackground, arrowGap, gradientSize, hideArrows, onScrollChange, enableWheelScroll, arrowIcon, draggable, }: import("../ScrollWrapper/ScrollWrapper.types").ScrollWrapperProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
16
+ export declare const ScrollWrapper: import("styled-components").StyledComponent<({ align, direction, items, fillType, fillColor, accentColor, arrowColor, scrollStepType, gap, className, arrowFadeColor, activeIndex, circleArrowBackground, arrowGap, gradientSize, hideArrows, onScrollChange, enableWheelScroll, arrowIcon, draggable, alignActive, disableScrollToActive, }: import("../ScrollWrapper/ScrollWrapper.types").ScrollWrapperProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
17
17
  export declare const ScrollOuter: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,2 @@
1
+ import type { ProductTechSpecsProps } from "./ProductTechSpecs.types";
2
+ export declare const ProductTechSpecs: ({ sections, }: ProductTechSpecsProps) => JSX.Element;
@@ -0,0 +1,79 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var React = require('react');
5
+ var typeGuards = require('../../utils/typeGuards.js');
6
+ var ProductTechSpecs_styles = require('./ProductTechSpecs.styles.js');
7
+ function _interopDefault(e) {
8
+ return e && e.__esModule ? e : {
9
+ default: e
10
+ };
11
+ }
12
+ var React__default = /*#__PURE__*/_interopDefault(React);
13
+ "use strict";
14
+ const ProductTechSpecs = ({
15
+ sections
16
+ }) => {
17
+ const renderFeatureValue = React.useCallback(value => {
18
+ return /* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Cell, {
19
+ dangerouslySetInnerHTML: {
20
+ __html: value
21
+ }
22
+ });
23
+ }, []);
24
+ const parsedSections = React.useMemo(() => {
25
+ return sections.map(section => {
26
+ const {
27
+ withParentId,
28
+ withoutParentId
29
+ } = section.features.reduce((acc, feature) => {
30
+ if (feature.parentId === null) {
31
+ acc.withoutParentId.push(feature);
32
+ } else {
33
+ acc.withParentId.push(feature);
34
+ }
35
+ return acc;
36
+ }, {
37
+ withParentId: [],
38
+ withoutParentId: []
39
+ });
40
+ const features = withoutParentId.map(parentFeature => {
41
+ const children = withParentId.filter(childFeature => childFeature.parentId === parentFeature.id);
42
+ const mappedFeature = {
43
+ ...parentFeature,
44
+ children
45
+ };
46
+ return mappedFeature.children.length > 0 || !!mappedFeature.value ? mappedFeature : null;
47
+ }).filter(typeGuards.isNonNullish);
48
+ return {
49
+ id: section.id,
50
+ label: section.label,
51
+ features
52
+ };
53
+ }).filter(section => section.features.length > 0);
54
+ }, [sections]);
55
+ return /* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Wrap, {
56
+ children: parsedSections.map((section, i) => /* @__PURE__ */jsxRuntime.jsxs(React__default["default"].Fragment, {
57
+ children: [i > 0 && /* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.SectionDivider, {}), /* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Row, {
58
+ children: /* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Heading, {
59
+ children: section.label
60
+ })
61
+ }), section.features.map(feature => /* @__PURE__ */jsxRuntime.jsxs(React__default["default"].Fragment, {
62
+ children: [/* @__PURE__ */jsxRuntime.jsxs(ProductTechSpecs_styles.Row, {
63
+ children: [/* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Cell, {
64
+ children: feature.label
65
+ }), feature.value && renderFeatureValue(feature.value)]
66
+ }, feature.id), feature.children.length > 0 && feature.children.map((childFeature, i2) => /* @__PURE__ */jsxRuntime.jsxs(ProductTechSpecs_styles.Row, {
67
+ children: [/* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Tree, {
68
+ $isLast: i2 === feature.children.length - 1
69
+ }), /* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Branch, {}), /* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Cell, {
70
+ $isChildRowFirstCell: true,
71
+ children: childFeature.label
72
+ }), childFeature.value && renderFeatureValue(childFeature.value)]
73
+ }, childFeature.id))]
74
+ }, feature.id))]
75
+ }, section.id))
76
+ });
77
+ };
78
+ exports.ProductTechSpecs = ProductTechSpecs;
79
+ //# sourceMappingURL=ProductTechSpecs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProductTechSpecs.js","sources":["../../../src/components/ProductTechSpecsV2/ProductTechSpecs.tsx"],"sourcesContent":["import React, { useCallback, useMemo } from \"react\";\n\nimport { isNonNullish } from \"../../utils/typeGuards\";\nimport * as S from \"./ProductTechSpecs.styles\";\nimport type { ProductTechSpecsProps } from \"./ProductTechSpecs.types\";\n\nexport const ProductTechSpecs = ({\n sections,\n}: ProductTechSpecsProps): JSX.Element => {\n /**\n * Break value into lines\n */\n const renderFeatureValue = useCallback((value: string): JSX.Element => {\n return <S.Cell dangerouslySetInnerHTML={{ __html: value }} />;\n }, []);\n\n const parsedSections = useMemo(() => {\n return sections\n .map((section) => {\n const { withParentId, withoutParentId } = section.features.reduce<{\n withParentId: ProductTechSpecsProps[\"sections\"][number][\"features\"];\n withoutParentId: ProductTechSpecsProps[\"sections\"][number][\"features\"];\n }>(\n (acc, feature) => {\n if (feature.parentId === null) {\n acc.withoutParentId.push(feature);\n } else {\n acc.withParentId.push(feature);\n }\n return acc;\n },\n { withParentId: [], withoutParentId: [] },\n );\n\n const features = withoutParentId\n .map((parentFeature) => {\n const children = withParentId.filter(\n (childFeature) => childFeature.parentId === parentFeature.id,\n );\n\n const mappedFeature = {\n ...parentFeature,\n children,\n };\n\n return mappedFeature.children.length > 0 || !!mappedFeature.value\n ? mappedFeature\n : null;\n })\n .filter(isNonNullish);\n\n return {\n id: section.id,\n label: section.label,\n features,\n };\n })\n .filter((section) => section.features.length > 0);\n }, [sections]);\n\n return (\n <S.Wrap>\n {parsedSections.map((section, i) => (\n <React.Fragment key={section.id}>\n {i > 0 && <S.SectionDivider />}\n {/* Section heading */}\n <S.Row>\n <S.Heading>{section.label}</S.Heading>\n </S.Row>\n\n {/* Section feature key value pairs */}\n {section.features.map((feature) => (\n <React.Fragment key={feature.id}>\n <S.Row key={feature.id}>\n <S.Cell>{feature.label}</S.Cell>\n {feature.value && renderFeatureValue(feature.value)}\n </S.Row>\n\n {/* Child features */}\n {feature.children.length > 0 &&\n feature.children.map((childFeature, i) => (\n <S.Row key={childFeature.id}>\n <S.Tree $isLast={i === feature.children.length - 1} />\n <S.Branch />\n\n <S.Cell $isChildRowFirstCell>{childFeature.label}</S.Cell>\n {childFeature.value &&\n renderFeatureValue(childFeature.value)}\n </S.Row>\n ))}\n </React.Fragment>\n ))}\n </React.Fragment>\n ))}\n </S.Wrap>\n );\n};\n"],"names":["ProductTechSpecs","sections","renderFeatureValue","useCallback","value","jsx","S.Cell","dangerouslySetInnerHTML","__html","parsedSections","useMemo","map","section","withParentId","withoutParentId","features","reduce","acc","feature","parentId","push","parentFeature","children","filter","childFeature","id","mappedFeature","length","isNonNullish","label","S.Wrap","Wrap","i","jsxs","React","Fragment","S.SectionDivider","S.Row","Row","S.Heading","S.Tree","$isLast","S.Branch","Branch","Cell","$isChildRowFirstCell"],"mappings":"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"}
@@ -0,0 +1,71 @@
1
+ import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import React, { useCallback, useMemo } from 'react';
3
+ import { isNonNullish } from '../../utils/typeGuards.mjs';
4
+ import { Cell, Wrap, SectionDivider, Row, Heading, Tree, Branch } from './ProductTechSpecs.styles.mjs';
5
+ "use strict";
6
+ const ProductTechSpecs = ({
7
+ sections
8
+ }) => {
9
+ const renderFeatureValue = useCallback(value => {
10
+ return /* @__PURE__ */jsx(Cell, {
11
+ dangerouslySetInnerHTML: {
12
+ __html: value
13
+ }
14
+ });
15
+ }, []);
16
+ const parsedSections = useMemo(() => {
17
+ return sections.map(section => {
18
+ const {
19
+ withParentId,
20
+ withoutParentId
21
+ } = section.features.reduce((acc, feature) => {
22
+ if (feature.parentId === null) {
23
+ acc.withoutParentId.push(feature);
24
+ } else {
25
+ acc.withParentId.push(feature);
26
+ }
27
+ return acc;
28
+ }, {
29
+ withParentId: [],
30
+ withoutParentId: []
31
+ });
32
+ const features = withoutParentId.map(parentFeature => {
33
+ const children = withParentId.filter(childFeature => childFeature.parentId === parentFeature.id);
34
+ const mappedFeature = {
35
+ ...parentFeature,
36
+ children
37
+ };
38
+ return mappedFeature.children.length > 0 || !!mappedFeature.value ? mappedFeature : null;
39
+ }).filter(isNonNullish);
40
+ return {
41
+ id: section.id,
42
+ label: section.label,
43
+ features
44
+ };
45
+ }).filter(section => section.features.length > 0);
46
+ }, [sections]);
47
+ return /* @__PURE__ */jsx(Wrap, {
48
+ children: parsedSections.map((section, i) => /* @__PURE__ */jsxs(React.Fragment, {
49
+ children: [i > 0 && /* @__PURE__ */jsx(SectionDivider, {}), /* @__PURE__ */jsx(Row, {
50
+ children: /* @__PURE__ */jsx(Heading, {
51
+ children: section.label
52
+ })
53
+ }), section.features.map(feature => /* @__PURE__ */jsxs(React.Fragment, {
54
+ children: [/* @__PURE__ */jsxs(Row, {
55
+ children: [/* @__PURE__ */jsx(Cell, {
56
+ children: feature.label
57
+ }), feature.value && renderFeatureValue(feature.value)]
58
+ }, feature.id), feature.children.length > 0 && feature.children.map((childFeature, i2) => /* @__PURE__ */jsxs(Row, {
59
+ children: [/* @__PURE__ */jsx(Tree, {
60
+ $isLast: i2 === feature.children.length - 1
61
+ }), /* @__PURE__ */jsx(Branch, {}), /* @__PURE__ */jsx(Cell, {
62
+ $isChildRowFirstCell: true,
63
+ children: childFeature.label
64
+ }), childFeature.value && renderFeatureValue(childFeature.value)]
65
+ }, childFeature.id))]
66
+ }, feature.id))]
67
+ }, section.id))
68
+ });
69
+ };
70
+ export { ProductTechSpecs };
71
+ //# sourceMappingURL=ProductTechSpecs.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProductTechSpecs.mjs","sources":["../../../src/components/ProductTechSpecsV2/ProductTechSpecs.tsx"],"sourcesContent":["import React, { useCallback, useMemo } from \"react\";\n\nimport { isNonNullish } from \"../../utils/typeGuards\";\nimport * as S from \"./ProductTechSpecs.styles\";\nimport type { ProductTechSpecsProps } from \"./ProductTechSpecs.types\";\n\nexport const ProductTechSpecs = ({\n sections,\n}: ProductTechSpecsProps): JSX.Element => {\n /**\n * Break value into lines\n */\n const renderFeatureValue = useCallback((value: string): JSX.Element => {\n return <S.Cell dangerouslySetInnerHTML={{ __html: value }} />;\n }, []);\n\n const parsedSections = useMemo(() => {\n return sections\n .map((section) => {\n const { withParentId, withoutParentId } = section.features.reduce<{\n withParentId: ProductTechSpecsProps[\"sections\"][number][\"features\"];\n withoutParentId: ProductTechSpecsProps[\"sections\"][number][\"features\"];\n }>(\n (acc, feature) => {\n if (feature.parentId === null) {\n acc.withoutParentId.push(feature);\n } else {\n acc.withParentId.push(feature);\n }\n return acc;\n },\n { withParentId: [], withoutParentId: [] },\n );\n\n const features = withoutParentId\n .map((parentFeature) => {\n const children = withParentId.filter(\n (childFeature) => childFeature.parentId === parentFeature.id,\n );\n\n const mappedFeature = {\n ...parentFeature,\n children,\n };\n\n return mappedFeature.children.length > 0 || !!mappedFeature.value\n ? mappedFeature\n : null;\n })\n .filter(isNonNullish);\n\n return {\n id: section.id,\n label: section.label,\n features,\n };\n })\n .filter((section) => section.features.length > 0);\n }, [sections]);\n\n return (\n <S.Wrap>\n {parsedSections.map((section, i) => (\n <React.Fragment key={section.id}>\n {i > 0 && <S.SectionDivider />}\n {/* Section heading */}\n <S.Row>\n <S.Heading>{section.label}</S.Heading>\n </S.Row>\n\n {/* Section feature key value pairs */}\n {section.features.map((feature) => (\n <React.Fragment key={feature.id}>\n <S.Row key={feature.id}>\n <S.Cell>{feature.label}</S.Cell>\n {feature.value && renderFeatureValue(feature.value)}\n </S.Row>\n\n {/* Child features */}\n {feature.children.length > 0 &&\n feature.children.map((childFeature, i) => (\n <S.Row key={childFeature.id}>\n <S.Tree $isLast={i === feature.children.length - 1} />\n <S.Branch />\n\n <S.Cell $isChildRowFirstCell>{childFeature.label}</S.Cell>\n {childFeature.value &&\n renderFeatureValue(childFeature.value)}\n </S.Row>\n ))}\n </React.Fragment>\n ))}\n </React.Fragment>\n ))}\n </S.Wrap>\n );\n};\n"],"names":["ProductTechSpecs","sections","renderFeatureValue","useCallback","value","jsx","S.Cell","dangerouslySetInnerHTML","__html","parsedSections","useMemo","map","section","withParentId","withoutParentId","features","reduce","acc","feature","parentId","push","parentFeature","children","filter","childFeature","id","mappedFeature","length","isNonNullish","label","S.Wrap","i","jsxs","React","Fragment","S.SectionDivider","S.Row","S.Heading","S.Tree","$isLast","S.Branch","$isChildRowFirstCell"],"mappings":"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"}
@@ -0,0 +1,5 @@
1
+ import type { Meta } from "@storybook/react";
2
+ import { ProductTechSpecs } from "./ProductTechSpecs";
3
+ declare const _default: Meta<typeof ProductTechSpecs>;
4
+ export default _default;
5
+ export declare const Base: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./ProductTechSpecs.types").ProductTechSpecsProps>;
@@ -0,0 +1,11 @@
1
+ export declare const Wrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const Row: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const Heading: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const SectionDivider: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
5
+ export declare const Cell: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
6
+ $isChildRowFirstCell?: boolean;
7
+ }, never>;
8
+ export declare const Tree: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
9
+ $isLast: boolean;
10
+ }, never>;
11
+ export declare const Branch: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,86 @@
1
+ 'use strict';
2
+
3
+ var styled = require('styled-components');
4
+ var layout = require('../../constants/layout.js');
5
+ function _interopDefault(e) {
6
+ return e && e.__esModule ? e : {
7
+ default: e
8
+ };
9
+ }
10
+ var styled__default = /*#__PURE__*/_interopDefault(styled);
11
+ "use strict";
12
+ const TABLE_LEFT_MARGIN = "0px";
13
+ const TREE_LEFT_MARGIN = "8px";
14
+ const Wrap = styled__default["default"].div``;
15
+ const Row = styled__default["default"].div`
16
+ display: grid;
17
+ grid-template-columns: 300px 1fr;
18
+ position: relative;
19
+ padding-left: ${TABLE_LEFT_MARGIN};
20
+
21
+ @media ${layout.BREAKPOINTS.MOBILE_AND_DOWN} {
22
+ grid-template-columns: 170px 1fr;
23
+ }
24
+ `;
25
+ const Heading = styled__default["default"].div`
26
+ font-size: 20px;
27
+ line-height: 24px;
28
+ font-weight: 700;
29
+ color: #212427;
30
+ margin-bottom: 16px;
31
+ grid-column: 1 / 3;
32
+ `;
33
+ const SectionDivider = styled__default["default"].div`
34
+ height: 1px;
35
+ background-color: #dbdce1;
36
+ margin: 16px 0;
37
+ grid-column: 1 / 3;
38
+ `;
39
+ const Cell = styled__default["default"].div`
40
+ padding: 8px 28px 8px 0;
41
+ font-size: 14px;
42
+ line-height: 20px;
43
+ color: #50565e;
44
+ white-space: pre-wrap;
45
+
46
+ ${({
47
+ $isChildRowFirstCell
48
+ }) => $isChildRowFirstCell && styled.css`
49
+ margin-left: 24px;
50
+ `}
51
+ `;
52
+ const Tree = styled__default["default"].div`
53
+ ${({
54
+ $isLast
55
+ }) => $isLast ? styled.css`
56
+ height: 18px;
57
+ ` : styled.css`
58
+ height: 100%;
59
+ `};
60
+
61
+ position: absolute;
62
+ top: 0;
63
+ left: calc(${TABLE_LEFT_MARGIN} + ${TREE_LEFT_MARGIN});
64
+ width: 1px;
65
+ background-color: #c5c5c5;
66
+ display: flex;
67
+ justify-content: center;
68
+ align-items: center;
69
+ z-index: 1;
70
+ `;
71
+ const Branch = styled__default["default"].div`
72
+ position: absolute;
73
+ left: calc(${TABLE_LEFT_MARGIN} + ${TREE_LEFT_MARGIN});
74
+ top: 17px;
75
+ width: 11px;
76
+ height: 1px;
77
+ background-color: #c5c5c5;
78
+ `;
79
+ exports.Branch = Branch;
80
+ exports.Cell = Cell;
81
+ exports.Heading = Heading;
82
+ exports.Row = Row;
83
+ exports.SectionDivider = SectionDivider;
84
+ exports.Tree = Tree;
85
+ exports.Wrap = Wrap;
86
+ //# sourceMappingURL=ProductTechSpecs.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProductTechSpecs.styles.js","sources":["../../../src/components/ProductTechSpecsV2/ProductTechSpecs.styles.tsx"],"sourcesContent":["import styled, { css } from \"styled-components\";\n\nimport { BREAKPOINTS } from \"../../constants/layout\";\n\nconst TABLE_LEFT_MARGIN = \"0px\";\nconst TREE_LEFT_MARGIN = \"8px\";\n\nexport const Wrap = styled.div``;\n\nexport const Row = styled.div`\n display: grid;\n grid-template-columns: 300px 1fr;\n position: relative;\n padding-left: ${TABLE_LEFT_MARGIN};\n\n @media ${BREAKPOINTS.MOBILE_AND_DOWN} {\n grid-template-columns: 170px 1fr;\n }\n`;\n\nexport const Heading = styled.div`\n font-size: 20px;\n line-height: 24px;\n font-weight: 700;\n color: #212427;\n margin-bottom: 16px;\n grid-column: 1 / 3;\n`;\n\nexport const SectionDivider = styled.div`\n height: 1px;\n background-color: #dbdce1;\n margin: 16px 0;\n grid-column: 1 / 3;\n`;\n\nexport const Cell = styled.div<{\n // Cell is a child and its the first item on the row.\n $isChildRowFirstCell?: boolean;\n}>`\n padding: 8px 28px 8px 0;\n font-size: 14px;\n line-height: 20px;\n color: #50565e;\n white-space: pre-wrap;\n\n ${({ $isChildRowFirstCell }) =>\n $isChildRowFirstCell &&\n css`\n margin-left: 24px;\n `}\n`;\n\nexport const Tree = styled.div<{\n $isLast: boolean;\n}>`\n ${({ $isLast }) =>\n $isLast\n ? css`\n height: 18px;\n `\n : css`\n height: 100%;\n `};\n\n position: absolute;\n top: 0;\n left: calc(${TABLE_LEFT_MARGIN} + ${TREE_LEFT_MARGIN});\n width: 1px;\n background-color: #c5c5c5;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 1;\n`;\n\nexport const Branch = styled.div`\n position: absolute;\n left: calc(${TABLE_LEFT_MARGIN} + ${TREE_LEFT_MARGIN});\n top: 17px;\n width: 11px;\n height: 1px;\n background-color: #c5c5c5;\n`;\n"],"names":["TABLE_LEFT_MARGIN","TREE_LEFT_MARGIN","Wrap","styled","div","Row","BREAKPOINTS","MOBILE_AND_DOWN","Heading","SectionDivider","Cell","$isChildRowFirstCell","css","Tree","$isLast","Branch"],"mappings":";;;;;;;;;;;AAIA,MAAMA,iBAAoB,GAAA,KAAA;AAC1B,MAAMC,gBAAmB,GAAA,KAAA;AAElB,MAAMC,OAAOC,eAAAA,CAAAA,SAAAA,CAAO,CAAAC,GAAA,EAAA;AAEpB,MAAMC,MAAMF,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA,kBAIRJ,iBAAiB;AAAA;AAAA,WAExBM,MAAAA,CAAAA,YAAYC,eAAe;AAAA;AAAA;AAAA,CAAA;AAK/B,MAAMC,UAAUL,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AASvB,MAAMK,iBAAiBN,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAO9B,MAAMM,OAAOP,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAUvB,CAAC;EAAEO;CAAqB,KACxBA,oBACA,IAAAC,MAAAA,CAAAA,GAAA;AAAA;AAAA,KAEC;AAAA,CAAA;AAGE,MAAMC,OAAOV,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA,IAGvB,CAAC;EAAEU;CAAQ,KACXA,OACI,GAAAF,MAAAA,CAAAA,GAAA;AAAA;AAAA,SAGA,GAAAA,MAAAA,CAAAA,GAAA;AAAA;AAAA,SAEC;AAAA;AAAA;AAAA;AAAA,eAIMZ,iBAAiB,MAAMC,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAS/C,MAAMc,SAASZ,eAAO,CAAA,SAAA,CAAA,CAAAC,GAAA;AAAA;AAAA,eAEdJ,iBAAiB,MAAMC,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;;;;;"}
@@ -0,0 +1,72 @@
1
+ import styled, { css } from 'styled-components';
2
+ import { BREAKPOINTS } from '../../constants/layout.mjs';
3
+ "use strict";
4
+ const TABLE_LEFT_MARGIN = "0px";
5
+ const TREE_LEFT_MARGIN = "8px";
6
+ const Wrap = styled.div``;
7
+ const Row = styled.div`
8
+ display: grid;
9
+ grid-template-columns: 300px 1fr;
10
+ position: relative;
11
+ padding-left: ${TABLE_LEFT_MARGIN};
12
+
13
+ @media ${BREAKPOINTS.MOBILE_AND_DOWN} {
14
+ grid-template-columns: 170px 1fr;
15
+ }
16
+ `;
17
+ const Heading = styled.div`
18
+ font-size: 20px;
19
+ line-height: 24px;
20
+ font-weight: 700;
21
+ color: #212427;
22
+ margin-bottom: 16px;
23
+ grid-column: 1 / 3;
24
+ `;
25
+ const SectionDivider = styled.div`
26
+ height: 1px;
27
+ background-color: #dbdce1;
28
+ margin: 16px 0;
29
+ grid-column: 1 / 3;
30
+ `;
31
+ const Cell = styled.div`
32
+ padding: 8px 28px 8px 0;
33
+ font-size: 14px;
34
+ line-height: 20px;
35
+ color: #50565e;
36
+ white-space: pre-wrap;
37
+
38
+ ${({
39
+ $isChildRowFirstCell
40
+ }) => $isChildRowFirstCell && css`
41
+ margin-left: 24px;
42
+ `}
43
+ `;
44
+ const Tree = styled.div`
45
+ ${({
46
+ $isLast
47
+ }) => $isLast ? css`
48
+ height: 18px;
49
+ ` : css`
50
+ height: 100%;
51
+ `};
52
+
53
+ position: absolute;
54
+ top: 0;
55
+ left: calc(${TABLE_LEFT_MARGIN} + ${TREE_LEFT_MARGIN});
56
+ width: 1px;
57
+ background-color: #c5c5c5;
58
+ display: flex;
59
+ justify-content: center;
60
+ align-items: center;
61
+ z-index: 1;
62
+ `;
63
+ const Branch = styled.div`
64
+ position: absolute;
65
+ left: calc(${TABLE_LEFT_MARGIN} + ${TREE_LEFT_MARGIN});
66
+ top: 17px;
67
+ width: 11px;
68
+ height: 1px;
69
+ background-color: #c5c5c5;
70
+ `;
71
+ export { Branch, Cell, Heading, Row, SectionDivider, Tree, Wrap };
72
+ //# sourceMappingURL=ProductTechSpecs.styles.mjs.map