@ubnt/store.core 9.53.0-alpha.5 → 9.53.0-alpha.6

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 (290) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/lib/_virtual/_virtual_multi-entry.js +14 -12
  3. package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
  4. package/lib/_virtual/_virtual_multi-entry.mjs +14 -12
  5. package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
  6. package/lib/assets/ai-bullet.jpg +0 -0
  7. package/lib/assets/ai-bullet2.jpg +0 -0
  8. package/lib/assets/ai-dslr.jpg +0 -0
  9. package/lib/assets/ai-dslr2.jpg +0 -0
  10. package/lib/assets/ai-turret.jpg +0 -0
  11. package/lib/assets/ai-turret2.jpg +0 -0
  12. package/lib/assets/building-bridge-xg.jpg +0 -0
  13. package/lib/assets/building-bridge-xg2.jpg +0 -0
  14. package/lib/assets/building-bridge.jpg +0 -0
  15. package/lib/assets/building-bridge2.jpg +0 -0
  16. package/lib/assets/close2.svg +2 -3
  17. package/lib/assets/close3.svg +3 -2
  18. package/lib/assets/g5-bullet.jpg +0 -0
  19. package/lib/assets/g5-bullet2.jpg +0 -0
  20. package/lib/assets/g5-dome.jpg +0 -0
  21. package/lib/assets/g5-dome2.jpg +0 -0
  22. package/lib/assets/industrial.jpg +0 -0
  23. package/lib/assets/industrial2.jpg +0 -0
  24. package/lib/assets/interior-design.svg +2 -2
  25. package/lib/assets/interior-design2.svg +2 -2
  26. package/lib/assets/minus4.svg +8 -8
  27. package/lib/assets/minus5.svg +8 -8
  28. package/lib/assets/plus6.svg +9 -9
  29. package/lib/assets/plus7.svg +9 -9
  30. package/lib/assets/reader-lite.jpg +0 -0
  31. package/lib/assets/reader-lite2.jpg +0 -0
  32. package/lib/components/Accordion/Accordion.js +4 -4
  33. package/lib/components/Avatar/Avatar.js +2 -2
  34. package/lib/components/Button/Button.js +6 -6
  35. package/lib/components/Button/CartButton.js +2 -2
  36. package/lib/components/CardSection/Card/Card.js +6 -6
  37. package/lib/components/CardSection/CardSection.js +2 -2
  38. package/lib/components/CartIcon/CartIcon.js +2 -2
  39. package/lib/components/Checkbox/Checkbox.js +4 -4
  40. package/lib/components/CloserLookSection/CloserLookSection.js +11 -11
  41. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.js +5 -5
  42. package/lib/components/Container/Container.js +2 -2
  43. package/lib/components/CustomImage/CustomImage.js +12 -12
  44. package/lib/components/Explore/Explore.js +5 -5
  45. package/lib/components/FeaturesSection_deprecated/Features/Features.js +2 -2
  46. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +23 -23
  47. package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
  48. package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
  49. package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
  50. package/lib/components/Footer/Footer.js +2 -2
  51. package/lib/components/Footer/hooks/useFooterContent.js +5 -5
  52. package/lib/components/Gallery/Gallery.context.js +17 -17
  53. package/lib/components/Gallery/Gallery.js +9 -9
  54. package/lib/components/Gallery/GalleryControls/GalleryControls.js +4 -4
  55. package/lib/components/Gallery/GalleryItem/GalleryItem.js +8 -8
  56. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.js +8 -8
  57. package/lib/components/GridGallery/GridGallery.js +8 -8
  58. package/lib/components/GridGallery/GridModal/GridModal.js +6 -6
  59. package/lib/components/Header/AccountFrame/AccountFrame.js +11 -11
  60. package/lib/components/Header/AccountFrame/Mobile/Mobile.js +4 -4
  61. package/lib/components/Header/AccountMenu/AccountMenu.js +19 -19
  62. package/lib/components/Header/CartModal/Empty/Empty.js +3 -3
  63. package/lib/components/Header/CartModalV2/CartModal.js +5 -5
  64. package/lib/components/Header/CartModalV2/Item/Item.js +4 -4
  65. package/lib/components/Header/Header.js +34 -34
  66. package/lib/components/Header/IsolatedHeader.js +7 -7
  67. package/lib/components/Header/LanguageFrame/LanguageFrame.js +6 -6
  68. package/lib/components/Header/MobileLinksModal/MobileMenu.js +3 -3
  69. package/lib/components/Header/Navigation/Carousel/Carousel.js +5 -5
  70. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.js +12 -12
  71. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +6 -6
  72. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +6 -6
  73. package/lib/components/Header/Overlay/Overlay.js +3 -3
  74. package/lib/components/Header/ProHeader/ProHeader.js +35 -35
  75. package/lib/components/Hero/Hero.js +5 -5
  76. package/lib/components/HeroVideo/HeroVideo.js +5 -5
  77. package/lib/components/ImageCarousel/ImageCarousel.js +29 -29
  78. package/lib/components/ImageSequence/ImageSequence.js +8 -8
  79. package/lib/components/LandingPage/Cards/Card/Card.js +4 -4
  80. package/lib/components/LandingPage/Cards/Cards.js +10 -10
  81. package/lib/components/LandingPage/LandingPage.js +2 -2
  82. package/lib/components/LandingPagePro/LandingPagePro.js +13 -13
  83. package/lib/components/LandingPageSearch/LandingPageSearch.js +2 -2
  84. package/lib/components/LandingPageSearch/Modal/Modal.js +9 -9
  85. package/lib/components/LandingPageSidebar/LandingPageSidebar.js +12 -12
  86. package/lib/components/LayoutRenderer/LayoutRenderer.js +8 -8
  87. package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.js +7 -7
  88. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.js +18 -18
  89. package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.js +2 -2
  90. package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.js +3 -3
  91. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.js +3 -3
  92. package/lib/components/MicrositeHeader/MicrositeHeader.js +4 -4
  93. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.js +4 -4
  94. package/lib/components/MicrositeHeader/components/HeaderContent/HeaderContent.js +13 -13
  95. package/lib/components/MicrositeHeader/components/SiteMap/SiteMap.js +2 -2
  96. package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.js +15 -15
  97. package/lib/components/MicrositeHeader/components/VisualTopology/LinePaths.js +3 -3
  98. package/lib/components/MicrositeHeader/components/VisualTopology/VisualTopology.js +9 -9
  99. package/lib/components/MicrositeHero/MicrositeHero.js +18 -18
  100. package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.js +4 -4
  101. package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.js +9 -9
  102. package/lib/components/MicrositeProductGrid/MicrositeProductGrid.js +8 -8
  103. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlockWrap.js +2 -2
  104. package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.js +3 -3
  105. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +12 -12
  106. package/lib/components/Microsites/MicrositePageContext.js +2 -2
  107. package/lib/components/Microsites/MicrositeProductPage.js +3 -3
  108. package/lib/components/Microsites/context/MicrositeProductPageContext.js +3 -3
  109. package/lib/components/MobileModal/MobileModal.js +4 -4
  110. package/lib/components/Modal/Modal.js +3 -3
  111. package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js +3 -3
  112. package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.js +2 -2
  113. package/lib/components/ModelCompareV3/ModelCompareV3.js +14 -14
  114. package/lib/components/ModelCompareV3/ProductGroupsGrid.js +3 -3
  115. package/lib/components/ModelCompareV3/ScrollGroup/ScrollGroup.js +5 -5
  116. package/lib/components/ModelCompareV3/ScrollGroup/context.js +3 -3
  117. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupItem.js +8 -8
  118. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupSetScroll.js +2 -2
  119. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupTo.js +2 -2
  120. package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js +7 -7
  121. package/lib/components/ModelCompareV3/StickyGrid/StickyGridBody.js +2 -2
  122. package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js +5 -5
  123. package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.js +2 -2
  124. package/lib/components/ModelCompareV3/StickyGrid/context.js +3 -3
  125. package/lib/components/ModelCompareV4/CompareTable/CompareTable.js +8 -8
  126. package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup.js +14 -14
  127. package/lib/components/ModelCompareV4/CompareTable/CompareTableOverflowScrollButton.js +3 -3
  128. package/lib/components/ModelCompareV4/CompareTable/PropertyValueGridItem.js +2 -2
  129. package/lib/components/ModelCompareV4/CompareTable/ScrollGroup/ScrollGroup.js +5 -5
  130. package/lib/components/ModelCompareV4/CompareTable/ScrollGroup/context.js +3 -3
  131. package/lib/components/ModelCompareV4/CompareTable/ScrollGroup/useScrollGroupItem.js +8 -8
  132. package/lib/components/ModelCompareV4/CompareTable/ScrollGroup/useScrollGroupSetScroll.js +2 -2
  133. package/lib/components/ModelCompareV4/CompareTable/ScrollGroup/useScrollGroupTo.js +2 -2
  134. package/lib/components/ModelCompareV4/CompareTable/StickyGrid/StickyGrid.js +7 -7
  135. package/lib/components/ModelCompareV4/CompareTable/StickyGrid/StickyGridBody.js +2 -2
  136. package/lib/components/ModelCompareV4/CompareTable/StickyGrid/StickyGridHeader.js +5 -5
  137. package/lib/components/ModelCompareV4/CompareTable/StickyGrid/StickyGridItem.js +2 -2
  138. package/lib/components/ModelCompareV4/CompareTable/StickyGrid/context.js +3 -3
  139. package/lib/components/ModelCompareV4/ModelCompareV4.js +5 -5
  140. package/lib/components/ModelCompareV4/ProductList/ProductList.js +11 -11
  141. package/lib/components/Pagination/Pagination.js +3 -3
  142. package/lib/components/PriceRangeSlider/PriceRangeSlider.js +16 -16
  143. package/lib/components/ProductCard/ProductCard.js +7 -7
  144. package/lib/components/ProductCardPopup/ProductCardPopup.js +8 -8
  145. package/lib/components/ProductCompare/ProductCompare.js +7 -7
  146. package/lib/components/ProductDetails/ProductDetails.js +5 -5
  147. package/lib/components/ProductGrid/ProductGrid.js +10 -10
  148. package/lib/components/ProductKeyFeatures/ProductKeyFeatures.js +3 -3
  149. package/lib/components/ProductSectionTabs/ProductSectionTabs.js +2 -2
  150. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.d.ts +2 -0
  151. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js +79 -0
  152. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js.map +1 -0
  153. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs +71 -0
  154. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs.map +1 -0
  155. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.stories.d.ts +5 -0
  156. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.d.ts +11 -0
  157. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +80 -0
  158. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +1 -0
  159. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +66 -0
  160. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs.map +1 -0
  161. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.types.d.ts +12 -0
  162. package/lib/components/ProductTechSpecsV2/index.d.ts +1 -0
  163. package/lib/components/ProductTechSpecsV2/index.js +6 -0
  164. package/lib/components/ProductTechSpecsV2/index.js.map +1 -0
  165. package/lib/components/ProductTechSpecsV2/index.mjs +3 -0
  166. package/lib/components/ProductTechSpecsV2/index.mjs.map +1 -0
  167. package/lib/components/ProductWizard/Options/Options.js +3 -3
  168. package/lib/components/ProductWizard/ProductWizard.js +2 -2
  169. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js +5 -5
  170. package/lib/components/ProgressCircle/ProgressCircle.js +4 -4
  171. package/lib/components/QuantityControls/QuantityControls.js +4 -4
  172. package/lib/components/RelatedProducts/RelatedProducts.js +5 -5
  173. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js +36 -36
  174. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +12 -12
  175. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +5 -5
  176. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CheckboxSection.js +2 -2
  177. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +6 -6
  178. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
  179. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/SliderSection.js +3 -3
  180. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
  181. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
  182. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
  183. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
  184. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +7 -7
  185. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +6 -6
  186. package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.js +9 -9
  187. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.js +10 -10
  188. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +17 -17
  189. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
  190. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
  191. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
  192. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
  193. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
  194. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.js +2 -2
  195. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +6 -6
  196. package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.js +5 -5
  197. package/lib/components/ScrollWrapper/ScrollWrapper.js +17 -17
  198. package/lib/components/Search/Input/Input.js +4 -4
  199. package/lib/components/Search/Modal/Modal.js +3 -3
  200. package/lib/components/StorageSliders/Slider/Slider.js +3 -3
  201. package/lib/components/StorageSliders/StorageSliders.context.js +20 -20
  202. package/lib/components/StorageSliders/StorageSliders.js +4 -4
  203. package/lib/components/TogglableStaticCompareTables/TogglableStaticCompareTable.js +8 -8
  204. package/lib/components/Tooltip/Tooltip.js +5 -5
  205. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js +7 -7
  206. package/lib/components/VariantSelector/Variant/Variant.js +40 -40
  207. package/lib/components/VariantSelector/VariantSelector.js +16 -16
  208. package/lib/components/VideoPlayerNew/VideoPlayer.js +20 -20
  209. package/lib/components/VideoPlayerNew/VideoPlayer.mjs +1 -1
  210. package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
  211. package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
  212. package/lib/components/index.d.ts +1 -0
  213. package/lib/components/index.js +2 -0
  214. package/lib/components/index.js.map +1 -1
  215. package/lib/components/index.mjs +2 -0
  216. package/lib/components/index.mjs.map +1 -1
  217. package/lib/constants/modelCompareData/assets/BuildingBridge/building-bridge-xg.jpg.js +1 -1
  218. package/lib/constants/modelCompareData/assets/BuildingBridge/building-bridge-xg.jpg.mjs +2 -2
  219. package/lib/constants/modelCompareData/assets/BuildingBridge/building-bridge.jpg.js +1 -1
  220. package/lib/constants/modelCompareData/assets/BuildingBridge/building-bridge.jpg.mjs +2 -2
  221. package/lib/constants/modelCompareData/assets/Bullet/ai-bullet.jpg.js +1 -1
  222. package/lib/constants/modelCompareData/assets/Bullet/ai-bullet.jpg.mjs +2 -2
  223. package/lib/constants/modelCompareData/assets/Bullet/ai-dslr.jpg.js +1 -1
  224. package/lib/constants/modelCompareData/assets/Bullet/ai-dslr.jpg.mjs +2 -2
  225. package/lib/constants/modelCompareData/assets/Bullet/g5-bullet.jpg.js +1 -1
  226. package/lib/constants/modelCompareData/assets/Bullet/g5-bullet.jpg.mjs +2 -2
  227. package/lib/constants/modelCompareData/assets/DomeTurret/ai-turret.jpg.js +1 -1
  228. package/lib/constants/modelCompareData/assets/DomeTurret/ai-turret.jpg.mjs +2 -2
  229. package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome.jpg.js +1 -1
  230. package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome.jpg.mjs +2 -2
  231. package/lib/constants/modelCompareData/assets/DoorAccess/reader-lite.jpg.js +1 -1
  232. package/lib/constants/modelCompareData/assets/DoorAccess/reader-lite.jpg.mjs +2 -2
  233. package/lib/constants/modelCompareData/assets/Switching/industrial.jpg.js +1 -1
  234. package/lib/constants/modelCompareData/assets/Switching/industrial.jpg.mjs +2 -2
  235. package/lib/constants/modelCompareData/assets/interior-design.svg.js +1 -1
  236. package/lib/constants/modelCompareData/assets/interior-design.svg.mjs +2 -2
  237. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-bullet.jpg.js +1 -1
  238. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-bullet.jpg.mjs +2 -2
  239. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-dslr.jpg.js +1 -1
  240. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-dslr.jpg.mjs +2 -2
  241. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/g5-bullet.jpg.js +1 -1
  242. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/g5-bullet.jpg.mjs +2 -2
  243. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-turret.jpg.js +1 -1
  244. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-turret.jpg.mjs +2 -2
  245. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome.jpg.js +1 -1
  246. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome.jpg.mjs +2 -2
  247. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/reader-lite.jpg.js +1 -1
  248. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/reader-lite.jpg.mjs +2 -2
  249. package/lib/constants/modelCompareData/assets/product-list-assets/interior-design.svg.js +1 -1
  250. package/lib/constants/modelCompareData/assets/product-list-assets/interior-design.svg.mjs +2 -2
  251. package/lib/constants/modelCompareData/assets/product-list-assets/switches/utility/industrial.jpg.js +1 -1
  252. package/lib/constants/modelCompareData/assets/product-list-assets/switches/utility/industrial.jpg.mjs +2 -2
  253. package/lib/constants/modelCompareData/assets/product-list-assets/wifi/building-bridge/building-bridge-xg.jpg.js +1 -1
  254. package/lib/constants/modelCompareData/assets/product-list-assets/wifi/building-bridge/building-bridge-xg.jpg.mjs +2 -2
  255. package/lib/constants/modelCompareData/assets/product-list-assets/wifi/building-bridge/building-bridge.jpg.js +1 -1
  256. package/lib/constants/modelCompareData/assets/product-list-assets/wifi/building-bridge/building-bridge.jpg.mjs +2 -2
  257. package/lib/constants/modelCompareData/data/button-groups/interiorDesign.js +1 -1
  258. package/lib/constants/modelCompareData/data/button-groups/interiorDesign.mjs +1 -1
  259. package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/InteriorDesign.js +1 -1
  260. package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/InteriorDesign.mjs +1 -1
  261. package/lib/constants/modelCompareData/data/products/aiBullet.js +2 -2
  262. package/lib/constants/modelCompareData/data/products/aiBullet.mjs +2 -2
  263. package/lib/constants/modelCompareData/data/products/aiDslr.js +2 -2
  264. package/lib/constants/modelCompareData/data/products/aiDslr.mjs +2 -2
  265. package/lib/constants/modelCompareData/data/products/aiTurret.js +2 -2
  266. package/lib/constants/modelCompareData/data/products/aiTurret.mjs +2 -2
  267. package/lib/constants/modelCompareData/data/products/buildingBridge.js +2 -2
  268. package/lib/constants/modelCompareData/data/products/buildingBridge.mjs +2 -2
  269. package/lib/constants/modelCompareData/data/products/buildingBridgeXG.js +2 -2
  270. package/lib/constants/modelCompareData/data/products/buildingBridgeXG.mjs +2 -2
  271. package/lib/constants/modelCompareData/data/products/g5Bullet.js +2 -2
  272. package/lib/constants/modelCompareData/data/products/g5Bullet.mjs +2 -2
  273. package/lib/constants/modelCompareData/data/products/g5Dome.js +2 -2
  274. package/lib/constants/modelCompareData/data/products/g5Dome.mjs +2 -2
  275. package/lib/constants/modelCompareData/data/products/industrial.js +2 -2
  276. package/lib/constants/modelCompareData/data/products/industrial.mjs +2 -2
  277. package/lib/constants/modelCompareData/data/products/readerLite.js +2 -2
  278. package/lib/constants/modelCompareData/data/products/readerLite.mjs +2 -2
  279. package/lib/contexts/MenuContext/context.js +35 -35
  280. package/lib/contexts/MicrositeMenuContext/context.js +9 -9
  281. package/lib/helpers/proStoreCategories.js +2 -2
  282. package/lib/hooks/useHasTouch.js +3 -3
  283. package/lib/hooks/useHddRetentionCalculator.js +5 -5
  284. package/lib/hooks/useHorizontalScroll.js +2 -2
  285. package/lib/hooks/useLockBodyScrollCustom.js +3 -3
  286. package/lib/hooks/useScrollToY.js +2 -2
  287. package/lib/hooks/useTestMediaElementVolumeSetter.js +3 -3
  288. package/lib/hooks/useTranslation.js +6 -6
  289. package/lib/utils/nextjs/ssr/registry.js +2 -2
  290. package/package.json +1 -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 styled = require('styled-components');
6
6
  require('../ScrollGroup/index.js');
7
7
  var context = require('./context.js');
@@ -20,7 +20,7 @@ function StickyGridBody({
20
20
  templateColumns,
21
21
  gap
22
22
  } = context.useStickyGrid();
23
- const contentRef = react.useRef(null);
23
+ const contentRef = React.useRef(null);
24
24
  useScrollGroupItem.useScrollGroupItem({
25
25
  refObject: contentRef
26
26
  });
@@ -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 styled = require('styled-components');
6
6
  require('../ScrollGroup/index.js');
7
7
  var context = require('./context.js');
@@ -23,13 +23,13 @@ function StickyGridHeader({
23
23
  templateColumns,
24
24
  gap
25
25
  } = grid;
26
- const wrapperRef = react.useRef(null);
27
- const contentRef = react.useRef(null);
26
+ const wrapperRef = React.useRef(null);
27
+ const contentRef = React.useRef(null);
28
28
  useScrollGroupItem.useScrollGroupItem({
29
29
  refObject: contentRef
30
30
  });
31
- const [isStuck, setIsStuck] = react.useState(false);
32
- react.useEffect(() => {
31
+ const [isStuck, setIsStuck] = React.useState(false);
32
+ React.useEffect(() => {
33
33
  if (!wrapperRef.current) {
34
34
  setIsStuck(false);
35
35
  return;
@@ -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 styled = require('styled-components');
6
6
  function _interopDefault(e) {
7
7
  return e && e.__esModule ? e : {
@@ -14,7 +14,7 @@ function StickyGridItem({
14
14
  stickX,
15
15
  ...props
16
16
  }) {
17
- const ref = react.useRef(null);
17
+ const ref = React.useRef(null);
18
18
  return /* @__PURE__ */jsxRuntime.jsx(StyledStickyGridItem, {
19
19
  ref,
20
20
  ...props,
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var react = require('react');
3
+ var React = require('react');
4
4
  "use strict";
5
- const StickyGridContext = react.createContext(null);
5
+ const StickyGridContext = React.createContext(null);
6
6
  function useStickyGrid() {
7
- const value = react.useContext(StickyGridContext);
7
+ const value = React.useContext(StickyGridContext);
8
8
  if (!value) {
9
9
  throw new Error("Please wrap this component in <StickyGrid />");
10
10
  }
@@ -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 styled = require('styled-components');
6
6
  var CompareTable = require('./CompareTable/CompareTable.js');
7
7
  var ProductList = require('./ProductList/ProductList.js');
@@ -50,14 +50,14 @@ const ModelCompareV4 = ({
50
50
  const moreThanTwoProductsToCompare = section.products.length > 2;
51
51
  const SELECTED_PRODUCTS_LIMIT = 5;
52
52
  const selectedProductsLimit = products.length < SELECTED_PRODUCTS_LIMIT ? products.length : SELECTED_PRODUCTS_LIMIT;
53
- const [selectedProducts, setSelectedProducts] = react.useState(externalSelectedProducts || defaultSelectedProducts);
54
- const [hasBeenObserved, setHasBeenObserved] = react.useState(false);
55
- const intersectionObserverObjectRef = react.useRef(null);
53
+ const [selectedProducts, setSelectedProducts] = React.useState(externalSelectedProducts || defaultSelectedProducts);
54
+ const [hasBeenObserved, setHasBeenObserved] = React.useState(false);
55
+ const intersectionObserverObjectRef = React.useRef(null);
56
56
  const showProductGroups = section.showProductGroups !== false;
57
57
  const observerCallback = entries => {
58
58
  entries.forEach(entry => entry.isIntersecting && setHasBeenObserved(true));
59
59
  };
60
- react.useEffect(() => {
60
+ React.useEffect(() => {
61
61
  const observer = new IntersectionObserver(observerCallback, {
62
62
  threshold: 0.35
63
63
  });
@@ -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 reactUse = require('react-use');
6
6
  require('../../../constants/modelCompareData/assets/plus.svg.js');
7
7
  var useModelCompareTranslation = require('../../../constants/modelCompareData/translations/useModelCompareTranslation.js');
@@ -161,14 +161,14 @@ const ProductList = ({
161
161
  showProductGroups
162
162
  }) => {
163
163
  const groupedGroups = groupProducts(products);
164
- const containerRef = react.useRef(null);
165
- const productListRef = react.useRef(null);
166
- const [activeGroup, setActiveGroup] = react.useState(defaultSelectedGroup);
167
- const [playAnimation, setPlayAnimation] = react.useState(false);
164
+ const containerRef = React.useRef(null);
165
+ const productListRef = React.useRef(null);
166
+ const [activeGroup, setActiveGroup] = React.useState(defaultSelectedGroup);
167
+ const [playAnimation, setPlayAnimation] = React.useState(false);
168
168
  const isHovering = reactUse.useHoverDirty(containerRef);
169
- const [isDragging, setIsDragging] = react.useState(false);
170
- const [overflowExists, setOverflowExists] = react.useState(true);
171
- const [endPosition, setEndPosition] = react.useState(0);
169
+ const [isDragging, setIsDragging] = React.useState(false);
170
+ const [overflowExists, setOverflowExists] = React.useState(true);
171
+ const [endPosition, setEndPosition] = React.useState(0);
172
172
  const defaultSelectedGroupIsFirstGroup = groupedGroups[0]?.productListGroup?.id === defaultSelectedGroup;
173
173
  reactUse.useEffectOnce(() => {
174
174
  const refsExist = containerRef.current && productListRef.current;
@@ -178,7 +178,7 @@ const ProductList = ({
178
178
  setOverflowExists(false);
179
179
  }
180
180
  });
181
- react.useEffect(() => {
181
+ React.useEffect(() => {
182
182
  let element;
183
183
  if (defaultSelectedGroup && hasBeenObserved) {
184
184
  element = document.getElementById(defaultSelectedGroup);
@@ -189,12 +189,12 @@ const ProductList = ({
189
189
  });
190
190
  }
191
191
  }, [hasBeenObserved, defaultSelectedGroup]);
192
- react.useEffect(() => {
192
+ React.useEffect(() => {
193
193
  if (!showProductGroups && hasBeenObserved) {
194
194
  setPlayAnimation(true);
195
195
  }
196
196
  }, [hasBeenObserved, setPlayAnimation, showProductGroups]);
197
- react.useEffect(() => {
197
+ React.useEffect(() => {
198
198
  if (showProductGroups && defaultSelectedGroupIsFirstGroup && hasBeenObserved) {
199
199
  setPlayAnimation(true);
200
200
  }
@@ -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 Pagination_styles = require('./Pagination.styles.js');
6
6
  "use strict";
7
7
  const PAGE_STEP = 1;
@@ -11,14 +11,14 @@ const Pagination = function Pagination2({
11
11
  onChange,
12
12
  activePage
13
13
  }) {
14
- const onPaginationChange = react.useCallback(value => {
14
+ const onPaginationChange = React.useCallback(value => {
15
15
  window.scrollTo({
16
16
  top: 0,
17
17
  behavior: "smooth"
18
18
  });
19
19
  onChange(value);
20
20
  }, [onChange]);
21
- const parsedPages = react.useMemo(() => {
21
+ const parsedPages = React.useMemo(() => {
22
22
  const pages = [];
23
23
  const addPages = (startIndex, endIndex) => {
24
24
  for (let i = startIndex; i < endIndex; i++) {
@@ -2,7 +2,7 @@
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
4
  var MultiSlider = require('@ubnt/ui-components/MultiSlider');
5
- var react = require('react');
5
+ var React = require('react');
6
6
  require('../../assets/icons/sliderThumb.svg.js');
7
7
  require('../../utils/money/index.js');
8
8
  var PriceRangeSlider_styles = require('./PriceRangeSlider.styles.js');
@@ -26,16 +26,16 @@ const PriceRangeSlider = function PriceRangeSlider2({
26
26
  title,
27
27
  currency
28
28
  }) {
29
- const fullRange = react.useMemo(() => maxValue.amount - minValue.amount, [maxValue.amount, minValue.amount]);
30
- const priceToPercentage = react.useCallback(priceAmount => {
29
+ const fullRange = React.useMemo(() => maxValue.amount - minValue.amount, [maxValue.amount, minValue.amount]);
30
+ const priceToPercentage = React.useCallback(priceAmount => {
31
31
  return (priceAmount - minValue.amount) / fullRange * 100;
32
32
  }, [fullRange, minValue.amount]);
33
- const percentageToPrice = react.useCallback(percentage => {
33
+ const percentageToPrice = React.useCallback(percentage => {
34
34
  return Math.floor(percentage * fullRange / 100 + minValue.amount);
35
35
  }, [fullRange, minValue.amount]);
36
- const [fromSliderValue, setFromSliderValue] = react.useState(priceFrom && priceToPercentage(priceFrom.amount) || 0);
37
- const [toSliderValue, setToSliderValue] = react.useState(priceTo && priceToPercentage(priceTo.amount) || 100);
38
- const getFormattedPriceFrom = react.useCallback(priceAmount => {
36
+ const [fromSliderValue, setFromSliderValue] = React.useState(priceFrom && priceToPercentage(priceFrom.amount) || 0);
37
+ const [toSliderValue, setToSliderValue] = React.useState(priceTo && priceToPercentage(priceTo.amount) || 100);
38
+ const getFormattedPriceFrom = React.useCallback(priceAmount => {
39
39
  return format.formatPrice({
40
40
  currency,
41
41
  amount: priceAmount
@@ -43,7 +43,7 @@ const PriceRangeSlider = function PriceRangeSlider2({
43
43
  removeFractions: true
44
44
  });
45
45
  }, [currency]);
46
- const getFormattedPriceTo = react.useCallback(priceAmount => {
46
+ const getFormattedPriceTo = React.useCallback(priceAmount => {
47
47
  return `${format.formatPrice({
48
48
  currency,
49
49
  amount: priceAmount
@@ -51,13 +51,13 @@ const PriceRangeSlider = function PriceRangeSlider2({
51
51
  removeFractions: true
52
52
  })}${toSliderValue === 100 ? "+" : ""}`;
53
53
  }, [currency, toSliderValue]);
54
- const [fromInputValue, setFromInputValue] = react.useState(getFormattedPriceFrom((priceFrom !== void 0 ? priceFrom?.amount : minValue.amount) || 0));
55
- const [toInputValue, setToInputValue] = react.useState(getFormattedPriceTo((priceTo !== void 0 ? priceTo?.amount : maxValue.amount) || 0));
56
- react.useEffect(() => {
54
+ const [fromInputValue, setFromInputValue] = React.useState(getFormattedPriceFrom((priceFrom !== void 0 ? priceFrom?.amount : minValue.amount) || 0));
55
+ const [toInputValue, setToInputValue] = React.useState(getFormattedPriceTo((priceTo !== void 0 ? priceTo?.amount : maxValue.amount) || 0));
56
+ React.useEffect(() => {
57
57
  setFromInputValue(getFormattedPriceFrom(priceFrom?.amount || minValue.amount));
58
58
  setFromSliderValue(priceToPercentage(priceFrom?.amount || 0));
59
59
  }, [getFormattedPriceFrom, minValue.amount, priceFrom?.amount, priceToPercentage]);
60
- react.useEffect(() => {
60
+ React.useEffect(() => {
61
61
  const newPercentageValue = priceToPercentage(priceTo?.amount || maxValue.amount);
62
62
  setToInputValue(`${format.formatPrice({
63
63
  currency,
@@ -67,7 +67,7 @@ const PriceRangeSlider = function PriceRangeSlider2({
67
67
  })}${newPercentageValue === 100 ? "+" : ""}`);
68
68
  setToSliderValue(newPercentageValue || 100);
69
69
  }, [currency, maxValue.amount, priceTo?.amount, priceToPercentage]);
70
- const handleSliderChange = react.useCallback(([valFrom, valTo]) => {
70
+ const handleSliderChange = React.useCallback(([valFrom, valTo]) => {
71
71
  const newData = {
72
72
  ...(priceFrom && {
73
73
  priceFrom: {
@@ -98,7 +98,7 @@ const PriceRangeSlider = function PriceRangeSlider2({
98
98
  };
99
99
  onChange(newData);
100
100
  }, [maxValue.currency, minValue.currency, onChange, percentageToPrice, priceFrom, priceTo]);
101
- const handleInputBlur = react.useCallback((inputValue, inputType) => {
101
+ const handleInputBlur = React.useCallback((inputValue, inputType) => {
102
102
  const val = parseInt(inputValue.replace(/^\D+/g, ""));
103
103
  if (typeof val === "number" && !Number.isNaN(val)) {
104
104
  let parsedDinero = misc.parseFloatToDinero(val, currency).toJSON();
@@ -141,13 +141,13 @@ const PriceRangeSlider = function PriceRangeSlider2({
141
141
  onChange(newData);
142
142
  }
143
143
  }, [currency, maxValue, minValue, onChange, priceFrom, priceTo]);
144
- const handleSliderDrag = react.useCallback(([valFrom, valTo]) => {
144
+ const handleSliderDrag = React.useCallback(([valFrom, valTo]) => {
145
145
  setFromInputValue(getFormattedPriceFrom(percentageToPrice(valFrom)));
146
146
  setFromSliderValue(valFrom);
147
147
  setToInputValue(getFormattedPriceTo(percentageToPrice(valTo)));
148
148
  setToSliderValue(valTo);
149
149
  }, [getFormattedPriceFrom, getFormattedPriceTo, percentageToPrice]);
150
- const handleInputChange = react.useCallback(inputType => e => {
150
+ const handleInputChange = React.useCallback(inputType => e => {
151
151
  const value = e.target.value;
152
152
  const regex = /[a-zA-Z]/;
153
153
  if (regex.test(value)) {
@@ -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 reactUse = require('react-use');
7
7
  require('../../assets/icons/previouslyPurchasedStar.svg.js');
8
8
  var variant = require('../../utils/variant.js');
@@ -45,23 +45,23 @@ const ProductCard = ({
45
45
  onAddToCart,
46
46
  renderImage
47
47
  }) => {
48
- const translations = react.useMemo(() => {
48
+ const translations = React.useMemo(() => {
49
49
  return merge__default["default"](ProductCard_constants.defaultProductCardTranslations, initialTranslations);
50
50
  }, [initialTranslations]);
51
- const hasManyVariants = react.useMemo(() => {
51
+ const hasManyVariants = React.useMemo(() => {
52
52
  return variants.length > 1;
53
53
  }, [variants.length]);
54
- const isInStock = react.useMemo(() => {
54
+ const isInStock = React.useMemo(() => {
55
55
  return !!isSubscription || !!variants?.some(variant => variant.isInStock);
56
56
  }, [isSubscription, variants]);
57
- const isComingSoon = react.useMemo(() => {
57
+ const isComingSoon = React.useMemo(() => {
58
58
  return !isInStock && !!variants?.some(variant => variant.isComingSoon);
59
59
  }, [isInStock, variants]);
60
- const isEarlyAccess = react.useMemo(() => {
60
+ const isEarlyAccess = React.useMemo(() => {
61
61
  return !!variants?.some(variant => variant?.isEarlyAccess);
62
62
  }, [variants]);
63
63
  const localQuantity = 1;
64
- const handleAddToCart = react.useCallback(() => {
64
+ const handleAddToCart = React.useCallback(() => {
65
65
  const quantity = hasManyVariants ? null : localQuantity;
66
66
  onAddToCart(slug, quantity);
67
67
  }, [hasManyVariants, localQuantity, onAddToCart, slug]);
@@ -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;
@@ -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) {
@@ -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 ProductTechSpecs_styles = require('./ProductTechSpecs.styles.js');
6
+ function _interopDefault(e) {
7
+ return e && e.__esModule ? e : {
8
+ default: e
9
+ };
10
+ }
11
+ var React__default = /*#__PURE__*/_interopDefault(React);
12
+ "use strict";
13
+ const ProductTechSpecs = ({
14
+ sections
15
+ }) => {
16
+ const renderFeatureValue = React.useCallback(value => {
17
+ const lines = value.split("\n");
18
+ return /* @__PURE__ */jsxRuntime.jsx(ProductTechSpecs_styles.Cell, {
19
+ children: lines.map((line, i) => /* @__PURE__ */jsxRuntime.jsxs(React__default["default"].Fragment, {
20
+ children: [i > 0 && /* @__PURE__ */jsxRuntime.jsx("br", {}), line]
21
+ }, i))
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
+ return {
43
+ ...parentFeature,
44
+ children
45
+ };
46
+ });
47
+ return {
48
+ id: section.id,
49
+ label: section.label,
50
+ features
51
+ };
52
+ });
53
+ }, [sections]);
54
+ console.log(parsedSections);
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