@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 useModelCompareTranslation = require('../../constants/modelCompareData/translations/useModelCompareTranslation.js');
6
6
  require('../../contexts/MenuContext/index.js');
7
7
  require('../ModelCompareV4/ButtonGroup/index.js');
@@ -17,17 +17,17 @@ const TogglableStaticCompareTable = ({
17
17
  onLinkClick,
18
18
  linkToStoreTitleClick
19
19
  }) => {
20
- const [tableData, setTableData] = react.useState();
21
- const [selectedTable, setSelectedTable] = react.useState();
22
- const [hasBeenObserved, setHasBeenObserved] = react.useState(false);
23
- const intersectionObserverObjectRef = react.useRef(null);
20
+ const [tableData, setTableData] = React.useState();
21
+ const [selectedTable, setSelectedTable] = React.useState();
22
+ const [hasBeenObserved, setHasBeenObserved] = React.useState(false);
23
+ const intersectionObserverObjectRef = React.useRef(null);
24
24
  const {
25
25
  formatMessage
26
26
  } = useModelCompareTranslation.useModelCompareTranslation();
27
27
  const {
28
28
  storeId
29
29
  } = context.useMenu();
30
- const mutatedTableData = react.useMemo(() => sections.map(section => {
30
+ const mutatedTableData = React.useMemo(() => sections.map(section => {
31
31
  const transformPropertyValues = (propertyValues, formatMessage2) => propertyValues.map(propertyValue => ({
32
32
  propertyId: propertyValue.propertyId,
33
33
  value: propertyValue.value.type === "translation" ? {
@@ -58,14 +58,14 @@ const TogglableStaticCompareTable = ({
58
58
  }
59
59
  };
60
60
  }), [formatMessage, sections, storeId]);
61
- react.useEffect(() => {
61
+ React.useEffect(() => {
62
62
  setTableData(mutatedTableData);
63
63
  setSelectedTable(sections[0]?.products[0]?.productListGroup?.id);
64
64
  }, [mutatedTableData, sections]);
65
65
  const observerCallback = entries => {
66
66
  entries.forEach(entry => entry.isIntersecting && setHasBeenObserved(true));
67
67
  };
68
- react.useEffect(() => {
68
+ React.useEffect(() => {
69
69
  const observer = new IntersectionObserver(observerCallback, {
70
70
  threshold: 0.35
71
71
  });
@@ -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
  var Tooltip_styles = require('./Tooltip.styles.js');
7
7
  "use strict";
@@ -10,13 +10,13 @@ const Tooltip = ({
10
10
  tooltipClassName,
11
11
  ...rest
12
12
  }) => {
13
- const target = react.useRef(null);
14
- const tooltipRef = react.useRef(null);
13
+ const target = React.useRef(null);
14
+ const tooltipRef = React.useRef(null);
15
15
  const {
16
16
  y: scrollY
17
17
  } = reactUse.useWindowScroll();
18
- const [isOpen, setIsOpen] = react.useState();
19
- react.useEffect(() => {
18
+ const [isOpen, setIsOpen] = React.useState();
19
+ React.useEffect(() => {
20
20
  setIsOpen(false);
21
21
  }, [
22
22
  // HACK: needed scrollY to retrigger the effect
@@ -3,7 +3,7 @@
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
4
  var LineLoader = require('@ubnt/ui-components/LineLoader');
5
5
  var Tooltip = require('@ubnt/ui-components/Tooltip');
6
- var react = require('react');
6
+ var React = require('react');
7
7
  var reactUse = require('react-use');
8
8
  require('../../../../assets/icons/carouselArrow.svg.js');
9
9
  var layout = require('../../../../constants/layout.js');
@@ -24,13 +24,13 @@ const VariantCompatibility = ({
24
24
  compatibleProducts,
25
25
  hideBottomSeparator
26
26
  }) => {
27
- const [canExpand, setCanExpand] = react.useState(false);
28
- const [isExpanded, setIsExpanded] = react.useState(false);
29
- const overflowRef = react.useRef(null);
27
+ const [canExpand, setCanExpand] = React.useState(false);
28
+ const [isExpanded, setIsExpanded] = React.useState(false);
29
+ const overflowRef = React.useRef(null);
30
30
  const {
31
31
  width: windowWidth
32
32
  } = reactUse.useWindowSize();
33
- react.useEffect(() => {
33
+ React.useEffect(() => {
34
34
  const overflowEl = overflowRef.current;
35
35
  if (!overflowEl) return;
36
36
  const canvas = document.createElement("canvas");
@@ -51,7 +51,7 @@ const VariantCompatibility = ({
51
51
  children: [/* @__PURE__ */jsxRuntime.jsxs(Compatibility_styles.TextOverflow, {
52
52
  ref: overflowRef,
53
53
  $overflow: compatibleProducts.length > 1,
54
- children: ["Compatibility", !isExpanded && ": ", !isExpanded && compatibleProducts.map((product, i, els) => /* @__PURE__ */jsxRuntime.jsxs(react.Fragment, {
54
+ children: ["Compatibility", !isExpanded && ": ", !isExpanded && compatibleProducts.map((product, i, els) => /* @__PURE__ */jsxRuntime.jsxs(React.Fragment, {
55
55
  children: [/* @__PURE__ */jsxRuntime.jsx(CompatibleProductLink, {
56
56
  renderImage,
57
57
  product
@@ -84,7 +84,7 @@ const CompatibleProductLink = ({
84
84
  product
85
85
  }) => {
86
86
  const isMobile = reactUse.useMedia(layout.BREAKPOINTS.MOBILE_AND_DOWN, false);
87
- const [loading, setLoading] = react.useState(false);
87
+ const [loading, setLoading] = React.useState(false);
88
88
  return /* @__PURE__ */jsxRuntime.jsx(Tooltip.Tooltip, {
89
89
  className: Compatibility_styles.TOOLTIP_CLASS_NAME,
90
90
  motif: "light",
@@ -2,7 +2,7 @@
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
4
  var dinero_js = require('dinero.js');
5
- var react = require('react');
5
+ var React = require('react');
6
6
  require('../../../assets/icons/reload.svg.js');
7
7
  var url = require('../../../constants/url.js');
8
8
  require('../../../utils/money/index.js');
@@ -70,37 +70,37 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
70
70
  backInStockProps,
71
71
  getEndPrice
72
72
  }) {
73
- const handleOnClick = react.useCallback(() => {
73
+ const handleOnClick = React.useCallback(() => {
74
74
  if (!selected) {
75
75
  onClick?.();
76
76
  }
77
77
  }, [onClick, selected]);
78
- const subtitle = react.useMemo(() => {
78
+ const subtitle = React.useMemo(() => {
79
79
  if (selected) {
80
80
  return variant.getSkuText(variant$1.sku || variant$1.baseSku, variant$1.skuExtraLabel);
81
81
  }
82
82
  return variant$1.callout;
83
83
  }, [selected, variant$1.baseSku, variant$1.callout, variant$1.sku, variant$1.skuExtraLabel]);
84
- const [localQuantity, setLocalQuantity] = react.useState(DEFAULT_LOCAL_QUANTITY);
85
- const [localUpsellQuantity, setLocalUpsellQuantity] = react.useState(DEFAULT_LOCAL_UPSELL_QUANTITY);
86
- const endVariantPrice = react.useMemo(() => {
84
+ const [localQuantity, setLocalQuantity] = React.useState(DEFAULT_LOCAL_QUANTITY);
85
+ const [localUpsellQuantity, setLocalUpsellQuantity] = React.useState(DEFAULT_LOCAL_UPSELL_QUANTITY);
86
+ const endVariantPrice = React.useMemo(() => {
87
87
  return getEndPrice(variant$1.displayPrice);
88
88
  }, [getEndPrice, variant$1.displayPrice]);
89
- const [showUpsellModal, setShowUpsellModal] = react.useState(false);
89
+ const [showUpsellModal, setShowUpsellModal] = React.useState(false);
90
90
  const {
91
91
  reset: resetStorageSliders,
92
92
  hdds,
93
93
  setHdds
94
94
  } = StorageSliders_context.useStorageSliders();
95
- react.useEffect(() => {
95
+ React.useEffect(() => {
96
96
  setLocalUpsellQuantity(hdds * localQuantity);
97
97
  }, [hdds, localQuantity]);
98
- const handleUpsellReset = react.useCallback(() => {
98
+ const handleUpsellReset = React.useCallback(() => {
99
99
  setLocalUpsellQuantity(DEFAULT_LOCAL_UPSELL_QUANTITY);
100
100
  resetStorageSliders();
101
101
  }, [resetStorageSliders]);
102
- const [bundleOfferSelected, setBundleOfferSelected] = react.useState(false);
103
- react.useEffect(() => {
102
+ const [bundleOfferSelected, setBundleOfferSelected] = React.useState(false);
103
+ React.useEffect(() => {
104
104
  const bundleOffer = variant$1.bundleOffer;
105
105
  let selected2 = !!bundleOffer?.preSelect;
106
106
  if (bundleOffer?.requiresLogin || bundleOffer?.remainingRedeemQty === 0) {
@@ -108,20 +108,20 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
108
108
  }
109
109
  setBundleOfferSelected(selected2);
110
110
  }, [variant$1.bundleOffer]);
111
- const bundleOfferQuantity = react.useMemo(() => {
111
+ const bundleOfferQuantity = React.useMemo(() => {
112
112
  if (!variant$1.bundleOffer || !bundleOfferSelected) {
113
113
  return 0;
114
114
  }
115
115
  return getBundleOfferQuantity.getBundleOfferQuantity(variant$1.bundleOffer, localQuantity);
116
116
  }, [bundleOfferSelected, localQuantity, variant$1.bundleOffer]);
117
- react.useEffect(() => {
117
+ React.useEffect(() => {
118
118
  setLocalQuantity(DEFAULT_LOCAL_QUANTITY);
119
119
  handleUpsellReset();
120
120
  }, [handleUpsellReset,
121
121
  // HACK: needed selected to retrigger the effect
122
122
  // eslint-disable-next-line react-hooks/exhaustive-deps
123
123
  selected]);
124
- const handleAddToCart = react.useCallback(async () => {
124
+ const handleAddToCart = React.useCallback(async () => {
125
125
  if (localQuantity < 1) return;
126
126
  const addItems = [{
127
127
  variantId: variant$1.variantId,
@@ -143,14 +143,14 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
143
143
  setLocalQuantity(DEFAULT_LOCAL_QUANTITY);
144
144
  handleUpsellReset();
145
145
  }, [handleUpsellReset, bundleOfferQuantity, localQuantity, localUpsellQuantity, onVariantAddToCart, variant$1.bundleOffer, variant$1.upsellVariant, variant$1.variantId]);
146
- const [popupProduct, setPopupProduct] = react.useState(variant$1.inlineAccessories?.activePopupProduct);
147
- const isPopupOpen = react.useMemo(() => !!variant$1.inlineAccessories?.activePopupProduct, [variant$1.inlineAccessories?.activePopupProduct]);
148
- react.useEffect(() => {
146
+ const [popupProduct, setPopupProduct] = React.useState(variant$1.inlineAccessories?.activePopupProduct);
147
+ const isPopupOpen = React.useMemo(() => !!variant$1.inlineAccessories?.activePopupProduct, [variant$1.inlineAccessories?.activePopupProduct]);
148
+ React.useEffect(() => {
149
149
  if (variant$1.inlineAccessories?.activePopupProduct !== void 0) {
150
150
  setPopupProduct(variant$1.inlineAccessories?.activePopupProduct);
151
151
  }
152
152
  }, [variant$1.inlineAccessories?.activePopupProduct]);
153
- const campaignDiscountPrice = react.useMemo(() => {
153
+ const campaignDiscountPrice = React.useMemo(() => {
154
154
  const {
155
155
  displayPrice,
156
156
  campaignDiscount
@@ -165,10 +165,10 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
165
165
  }
166
166
  return misc.money(discountAllocation);
167
167
  }, [localQuantity, variant$1]);
168
- const endCampaignDiscountPrice = react.useMemo(() => {
168
+ const endCampaignDiscountPrice = React.useMemo(() => {
169
169
  return campaignDiscountPrice && getEndPrice(campaignDiscountPrice);
170
170
  }, [campaignDiscountPrice, getEndPrice]);
171
- const campaignUpsellDiscountPrice = react.useMemo(() => {
171
+ const campaignUpsellDiscountPrice = React.useMemo(() => {
172
172
  if (!variant$1.upsellVariant) {
173
173
  return null;
174
174
  }
@@ -181,10 +181,10 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
181
181
  const multipliedPrice = dinero_js.multiply(misc.getDinero(campaignDiscount.fixedAmountPrice, campaignDiscount.fixedAmountCurrency), campaignDiscount.maxProductQty ? Math.min(localUpsellQuantity, campaignDiscount.maxProductQty) : localUpsellQuantity);
182
182
  return misc.money(multipliedPrice);
183
183
  }, [localUpsellQuantity, variant$1.upsellVariant]);
184
- const endCampaignUpsellDiscountPrice = react.useMemo(() => {
184
+ const endCampaignUpsellDiscountPrice = React.useMemo(() => {
185
185
  return campaignUpsellDiscountPrice && getEndPrice(campaignUpsellDiscountPrice);
186
186
  }, [campaignUpsellDiscountPrice, getEndPrice]);
187
- const totalPrice = react.useMemo(() => {
187
+ const totalPrice = React.useMemo(() => {
188
188
  const {
189
189
  displayPrice,
190
190
  upsellVariant,
@@ -204,13 +204,13 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
204
204
  });
205
205
  return misc.money(dinero_js.add(dinero_js.add(dinero_js.add(variantPriceTotalWithDiscount, upsellPriceTotalWithDiscount), inlineAccessoriesPriceTotal), bundleOfferPriceTotal));
206
206
  }, [campaignDiscountPrice, campaignUpsellDiscountPrice, bundleOfferQuantity, localQuantity, localUpsellQuantity, variant$1]);
207
- const originalPrice = react.useMemo(() => {
207
+ const originalPrice = React.useMemo(() => {
208
208
  return variant$1.originalPrice && getEndPrice(variant$1.originalPrice);
209
209
  }, [getEndPrice, variant$1.originalPrice]);
210
- const savedPrice = react.useMemo(() => {
210
+ const savedPrice = React.useMemo(() => {
211
211
  return !!originalPrice && originalPrice.price.currency === endVariantPrice.price.currency && originalPrice.price.amount > endVariantPrice.price.amount ? dinero_js.subtract(misc.getDinero(originalPrice.price.amount, originalPrice.price.currency), misc.getDinero(endVariantPrice.price.amount, endVariantPrice.price.currency)) : null;
212
212
  }, [originalPrice, endVariantPrice.price.currency, endVariantPrice.price.amount]);
213
- const jsxVariantFooter = react.useMemo(() => {
213
+ const jsxVariantFooter = React.useMemo(() => {
214
214
  const showBackInStock = !!backInStockProps && (!variant$1.isInStock || !!variant$1.isSoldOut || !!variant$1.isComingSoon);
215
215
  const showTotalPrice = totalPrice.amount !== variant$1.displayPrice.amount;
216
216
  const cartButton = {
@@ -276,16 +276,16 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
276
276
  })]
277
277
  });
278
278
  }, [backInStockProps, variant$1.isInStock, variant$1.isSoldOut, variant$1.isComingSoon, variant$1.comingSoonDate, variant$1.isSubscription, variant$1.isRegionNotAvailable, variant$1.displayPrice.amount, localQuantity, translations, totalPrice, wizardProps, handleAddToCart, getEndPrice]);
279
- const getActiveCategoryItems = react.useCallback(items => {
279
+ const getActiveCategoryItems = React.useCallback(items => {
280
280
  return items.find(categorySubItem => activeCategories?.includes(categorySubItem.id))?.items || [];
281
281
  }, [activeCategories]);
282
- const secondLevelCategories = react.useMemo(() => {
282
+ const secondLevelCategories = React.useMemo(() => {
283
283
  if (!variant$1?.category?.items?.length) {
284
284
  return void 0;
285
285
  }
286
286
  return variant$1?.category?.items;
287
287
  }, [variant$1?.category?.items]);
288
- const secondLevelNavigation = react.useMemo(() => {
288
+ const secondLevelNavigation = React.useMemo(() => {
289
289
  if (!secondLevelCategories) {
290
290
  return void 0;
291
291
  }
@@ -307,13 +307,13 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
307
307
  }
308
308
  };
309
309
  }, [activeCategories, categoryChangeHandler, secondLevelCategories, variant$1.isInStock]);
310
- const thirdLevelCategories = react.useMemo(() => {
310
+ const thirdLevelCategories = React.useMemo(() => {
311
311
  if (secondLevelCategories) {
312
312
  return getActiveCategoryItems(secondLevelCategories);
313
313
  }
314
314
  return void 0;
315
315
  }, [getActiveCategoryItems, secondLevelCategories]);
316
- const thirdLevelButtons = react.useMemo(() => {
316
+ const thirdLevelButtons = React.useMemo(() => {
317
317
  if (!thirdLevelCategories) {
318
318
  return void 0;
319
319
  }
@@ -327,13 +327,13 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
327
327
  onClick: categoryChangeHandler
328
328
  };
329
329
  }, [activeCategories, categoryChangeHandler, thirdLevelCategories]);
330
- const fourthLevelCategories = react.useMemo(() => {
330
+ const fourthLevelCategories = React.useMemo(() => {
331
331
  if (thirdLevelCategories) {
332
332
  return getActiveCategoryItems(thirdLevelCategories);
333
333
  }
334
334
  return void 0;
335
335
  }, [thirdLevelCategories, getActiveCategoryItems]);
336
- const fourthLevelButtons = react.useMemo(() => {
336
+ const fourthLevelButtons = React.useMemo(() => {
337
337
  if (!fourthLevelCategories) {
338
338
  return void 0;
339
339
  }
@@ -347,13 +347,13 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
347
347
  onClick: categoryChangeHandler
348
348
  };
349
349
  }, [activeCategories, categoryChangeHandler, fourthLevelCategories]);
350
- const title = react.useMemo(() => {
350
+ const title = React.useMemo(() => {
351
351
  if (!variant$1?.category?.title || selected) {
352
352
  return variant$1.title;
353
353
  }
354
354
  return variant$1.category.title;
355
355
  }, [selected, variant$1?.category?.title, variant$1.title]);
356
- const price = react.useMemo(() => {
356
+ const price = React.useMemo(() => {
357
357
  const endPrice = endVariantPrice;
358
358
  const endFromPrice = variant$1?.fromPrice && getEndPrice(variant$1.fromPrice);
359
359
  const price2 = endPrice.formattedPrice;
@@ -367,7 +367,7 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
367
367
  totalWithTax: priceWithTaxString
368
368
  };
369
369
  }, [selected, translations, variant$1.fromPrice, variant$1.isSubscription, endVariantPrice, getEndPrice]);
370
- const image = react.useMemo(() => {
370
+ const image = React.useMemo(() => {
371
371
  const variantImages = variant$1.images?.filter(image2 => !image2.isVideo);
372
372
  const foundVariantImage = variantImages?.find(image2 => variant$1?.currentVariantGalleryIds?.includes(image2.id));
373
373
  if (foundVariantImage) {
@@ -375,7 +375,7 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
375
375
  }
376
376
  return variantImages?.[0];
377
377
  }, [variant$1?.currentVariantGalleryIds, variant$1.images]);
378
- const handleInlineAccessoriesCheckbox = react.useCallback(accessory => {
378
+ const handleInlineAccessoriesCheckbox = React.useCallback(accessory => {
379
379
  if (accessory.isSelected) {
380
380
  accessory.handleSelect(0);
381
381
  } else {
@@ -383,13 +383,13 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
383
383
  accessory.handleSelect(quantity);
384
384
  }
385
385
  }, [localQuantity]);
386
- react.useEffect(() => {
386
+ React.useEffect(() => {
387
387
  const uiCareAccessory = variant$1?.inlineAccessories?.items?.find(accessory => accessory.isUICare);
388
388
  if (uiCareAccessory?.isSelected) {
389
389
  uiCareAccessory.handleSelect(localQuantity);
390
390
  }
391
391
  }, [localQuantity]);
392
- const jsxDiscount = react.useMemo(() => {
392
+ const jsxDiscount = React.useMemo(() => {
393
393
  const {
394
394
  campaignDiscount,
395
395
  shortTitle
@@ -416,7 +416,7 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
416
416
  })]
417
417
  });
418
418
  }, [endCampaignDiscountPrice, localQuantity, translations, variant$1]);
419
- const jsxUpsellDiscount = react.useMemo(() => {
419
+ const jsxUpsellDiscount = React.useMemo(() => {
420
420
  if (!variant$1.upsellVariant) {
421
421
  return null;
422
422
  }
@@ -453,7 +453,7 @@ const VariantSelectorVariant = function VariantSelectorVariant2({
453
453
  })]
454
454
  });
455
455
  }, [localUpsellQuantity, setHdds, translations, variant$1.shortTitle, variant$1.title, variant$1.upsellVariant, endCampaignUpsellDiscountPrice]);
456
- const jsxProductBundleNotes = react.useMemo(() => {
456
+ const jsxProductBundleNotes = React.useMemo(() => {
457
457
  if (!variant$1.productBundleNotes?.length) {
458
458
  return null;
459
459
  }
@@ -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
  require('../../assets/icons/carouselArrow.svg.js');
7
7
  var StorageSliders_context = require('../StorageSliders/StorageSliders.context.js');
8
8
  require('./Variant/index.js');
@@ -35,26 +35,26 @@ const VariantSelector = ({
35
35
  language,
36
36
  getEndPrice
37
37
  }) => {
38
- const translations = react.useMemo(() => {
38
+ const translations = React.useMemo(() => {
39
39
  return merge__default["default"](VariantSelector_constants.defaultVariantSelectorTranslations, initialTranslations);
40
40
  }, [initialTranslations]);
41
- const allVariants = react.useMemo(() => sections.flatMap(section => section.variants), [sections]);
42
- const currentVariant = react.useMemo(() => {
41
+ const allVariants = React.useMemo(() => sections.flatMap(section => section.variants), [sections]);
42
+ const currentVariant = React.useMemo(() => {
43
43
  return allVariants.find(variant => variant.id === selectedVariant);
44
44
  }, [allVariants, selectedVariant]);
45
- const isVariantSelected = react.useCallback(variant => {
45
+ const isVariantSelected = React.useCallback(variant => {
46
46
  return !!(variant.id === selectedVariant || selectedVariant && !!variant.otherIds?.includes(selectedVariant));
47
47
  }, [selectedVariant]);
48
- const shownSections = react.useMemo(() => {
48
+ const shownSections = React.useMemo(() => {
49
49
  return sections.map(section => ({
50
50
  ...section,
51
51
  variants: section.variants.filter(variant => !variant.isLegacy)
52
52
  })).filter(section => !!section.variants.length);
53
53
  }, [sections]);
54
- const [isOlderModelSectionOpened, setIsOlderModelSectionOpened] = react.useState(!!currentVariant?.isLegacy);
54
+ const [isOlderModelSectionOpened, setIsOlderModelSectionOpened] = React.useState(!!currentVariant?.isLegacy);
55
55
  const {
56
56
  olderModels
57
- } = react.useMemo(() => {
57
+ } = React.useMemo(() => {
58
58
  const olderModels2 = [];
59
59
  for (const variant of allVariants) {
60
60
  if (variant?.isLegacy) {
@@ -65,13 +65,13 @@ const VariantSelector = ({
65
65
  olderModels: olderModels2
66
66
  };
67
67
  }, [allVariants]);
68
- const hasOlderModels = react.useMemo(() => !!olderModels.length, [olderModels]);
69
- const olderModelsButtonText = react.useMemo(() => {
68
+ const hasOlderModels = React.useMemo(() => !!olderModels.length, [olderModels]);
69
+ const olderModelsButtonText = React.useMemo(() => {
70
70
  return VariantSelector_constants.getOlderModelsButtonText(collectionSlug, language) || {
71
71
  title: translations.olderModels
72
72
  };
73
73
  }, [collectionSlug, language, translations.olderModels]);
74
- const handleOlderModelsButtonClick = react.useCallback(() => {
74
+ const handleOlderModelsButtonClick = React.useCallback(() => {
75
75
  if (isOlderModelSectionOpened) {
76
76
  const variant = allVariants.find(variant2 => !variant2.isLegacy && variant2.isInStock) || allVariants.find(variant2 => !variant2.isLegacy);
77
77
  if (variant) {
@@ -80,21 +80,21 @@ const VariantSelector = ({
80
80
  }
81
81
  setIsOlderModelSectionOpened(prev => !prev);
82
82
  }, [allVariants, isOlderModelSectionOpened, onVariantSelect]);
83
- react.useEffect(() => {
83
+ React.useEffect(() => {
84
84
  setIsOlderModelSectionOpened(false);
85
85
  }, [
86
86
  // HACK: needed collectionSlug to retrigger the effect
87
87
  // eslint-disable-next-line react-hooks/exhaustive-deps
88
88
  collectionSlug]);
89
- react.useEffect(() => {
89
+ React.useEffect(() => {
90
90
  if (currentVariant?.isLegacy) {
91
91
  setIsOlderModelSectionOpened(true);
92
92
  }
93
93
  }, [currentVariant?.isLegacy]);
94
94
  return /* @__PURE__ */jsxRuntime.jsxs(VariantSelector_styles.Container, {
95
- children: [shownSections.map((section, i) => /* @__PURE__ */jsxRuntime.jsx(react.Fragment, {
95
+ children: [shownSections.map((section, i) => /* @__PURE__ */jsxRuntime.jsx(React.Fragment, {
96
96
  children: /* @__PURE__ */jsxRuntime.jsx(VariantSelector_styles.Wrapper, {
97
- children: section.variants.map(variant => /* @__PURE__ */jsxRuntime.jsx(react.Fragment, {
97
+ children: section.variants.map(variant => /* @__PURE__ */jsxRuntime.jsx(React.Fragment, {
98
98
  children: /* @__PURE__ */jsxRuntime.jsx(StorageSliders_context.StorageSlidersProvider, {
99
99
  hddTerabytes: variant.upsellVariant?.hddTerabytes,
100
100
  sku: variant.baseSku,
@@ -136,7 +136,7 @@ const VariantSelector = ({
136
136
  })]
137
137
  }), hasOlderModels && isOlderModelSectionOpened && /* @__PURE__ */jsxRuntime.jsx(VariantSelector_styles.Wrapper, {
138
138
  topMargin: true,
139
- children: olderModels.map(variant => /* @__PURE__ */jsxRuntime.jsx(react.Fragment, {
139
+ children: olderModels.map(variant => /* @__PURE__ */jsxRuntime.jsx(React.Fragment, {
140
140
  children: /* @__PURE__ */jsxRuntime.jsx(StorageSliders_context.StorageSlidersProvider, {
141
141
  sku: variant.baseSku,
142
142
  children: /* @__PURE__ */jsxRuntime.jsx(Variant.VariantSelectorVariant, {
@@ -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 time = require('../../helpers/time.js');
6
6
  var useTestMediaElementVolumeSetter = require('../../hooks/useTestMediaElementVolumeSetter.js');
7
7
  require('./assets/back.svg.js');
@@ -12,7 +12,7 @@ require('./assets/play.svg.js');
12
12
  require('./assets/volume-off.svg.js');
13
13
  require('./assets/volume-on.svg.js');
14
14
  var VideoPlayer_styles = require('./VideoPlayer.styles.js');
15
- var CloseIcon = require("../../assets/close3.svg");
15
+ var CloseIcon = require("../../assets/close2.svg");
16
16
  var BackIcon = require("../../assets/back.svg");
17
17
  var PauseIcon = require("../../assets/pause.svg");
18
18
  var PlayIcon = require("../../assets/play.svg");
@@ -32,7 +32,7 @@ var VolumeOffIcon__default = /*#__PURE__*/_interopDefault(VolumeOffIcon);
32
32
  var VolumeOnIcon__default = /*#__PURE__*/_interopDefault(VolumeOnIcon);
33
33
  var FullscreenOnIcon__default = /*#__PURE__*/_interopDefault(FullscreenOnIcon);
34
34
  "use strict";
35
- const VideoPlayer = react.forwardRef(function VideoPlayer2({
35
+ const VideoPlayer = React.forwardRef(function VideoPlayer2({
36
36
  isOpen,
37
37
  title,
38
38
  src,
@@ -42,13 +42,13 @@ const VideoPlayer = react.forwardRef(function VideoPlayer2({
42
42
  showCloseButton = false,
43
43
  motif = "dark"
44
44
  }, ref) {
45
- const [isPlaying, setIsPlaying] = react.useState(true);
46
- const localVideoRef = react.useRef(null);
45
+ const [isPlaying, setIsPlaying] = React.useState(true);
46
+ const localVideoRef = React.useRef(null);
47
47
  const videoRef = ref ?? localVideoRef;
48
- const [currentTimeSec, setCurrentTimeSec] = react.useState(0);
49
- const [durationSec, setDurationSec] = react.useState(0);
48
+ const [currentTimeSec, setCurrentTimeSec] = React.useState(0);
49
+ const [durationSec, setDurationSec] = React.useState(0);
50
50
  const isVolumeChangeSupported = useTestMediaElementVolumeSetter.useTestMediaElementVolumeSetter();
51
- react.useEffect(() => {
51
+ React.useEffect(() => {
52
52
  if (!videoRef || !("current" in videoRef) || !videoRef.current) {
53
53
  return;
54
54
  }
@@ -63,7 +63,7 @@ const VideoPlayer = react.forwardRef(function VideoPlayer2({
63
63
  video?.removeEventListener("webkitendfullscreen", handleFullscreenChange);
64
64
  };
65
65
  }, [videoRef]);
66
- react.useEffect(() => {
66
+ React.useEffect(() => {
67
67
  if (!videoRef || !("current" in videoRef)) {
68
68
  return;
69
69
  }
@@ -78,7 +78,7 @@ const VideoPlayer = react.forwardRef(function VideoPlayer2({
78
78
  video?.removeEventListener("ended", handleClose);
79
79
  };
80
80
  }, [videoRef, onClose]);
81
- react.useEffect(() => {
81
+ React.useEffect(() => {
82
82
  if (!videoRef || !("current" in videoRef)) {
83
83
  return;
84
84
  }
@@ -91,7 +91,7 @@ const VideoPlayer = react.forwardRef(function VideoPlayer2({
91
91
  video?.removeEventListener("timeupdate", updateTime);
92
92
  };
93
93
  }, [videoRef]);
94
- const handlePlay = react.useCallback(() => {
94
+ const handlePlay = React.useCallback(() => {
95
95
  try {
96
96
  if (videoRef && "current" in videoRef) {
97
97
  videoRef?.current?.play();
@@ -101,7 +101,7 @@ const VideoPlayer = react.forwardRef(function VideoPlayer2({
101
101
  console.error(e);
102
102
  }
103
103
  }, [videoRef]);
104
- const handlePause = react.useCallback(() => {
104
+ const handlePause = React.useCallback(() => {
105
105
  if (!videoRef || !("current" in videoRef)) {
106
106
  return;
107
107
  }
@@ -112,7 +112,7 @@ const VideoPlayer = react.forwardRef(function VideoPlayer2({
112
112
  console.log(e);
113
113
  }
114
114
  }, [videoRef]);
115
- react.useEffect(() => {
115
+ React.useEffect(() => {
116
116
  if (!videoRef || !("current" in videoRef)) {
117
117
  return;
118
118
  }
@@ -127,7 +127,7 @@ const VideoPlayer = react.forwardRef(function VideoPlayer2({
127
127
  handlePlay();
128
128
  }
129
129
  }, [handlePause, handlePlay, isOpen, videoRef]);
130
- const handlePlayback = react.useCallback(e => {
130
+ const handlePlayback = React.useCallback(e => {
131
131
  e?.stopPropagation();
132
132
  if (!videoRef || !("current" in videoRef)) {
133
133
  return;
@@ -138,7 +138,7 @@ const VideoPlayer = react.forwardRef(function VideoPlayer2({
138
138
  handlePause();
139
139
  }
140
140
  }, [handlePause, handlePlay, videoRef]);
141
- const handleFullscreen = react.useCallback(async e => {
141
+ const handleFullscreen = React.useCallback(async e => {
142
142
  e.stopPropagation();
143
143
  if (!videoRef || !("current" in videoRef)) {
144
144
  return;
@@ -170,7 +170,7 @@ const VideoPlayer = react.forwardRef(function VideoPlayer2({
170
170
  }
171
171
  }
172
172
  }, [videoRef]);
173
- const handleSeek = react.useCallback(e => {
173
+ const handleSeek = React.useCallback(e => {
174
174
  e.stopPropagation();
175
175
  if (!videoRef || !("current" in videoRef)) {
176
176
  return;
@@ -182,9 +182,9 @@ const VideoPlayer = react.forwardRef(function VideoPlayer2({
182
182
  setCurrentTimeSec(time);
183
183
  }
184
184
  }, [videoRef]);
185
- const [isMuted, setIsMuted] = react.useState(false);
186
- const [volume, setVolume] = react.useState(1);
187
- const handleVolumeClick = react.useCallback(e => {
185
+ const [isMuted, setIsMuted] = React.useState(false);
186
+ const [volume, setVolume] = React.useState(1);
187
+ const handleVolumeClick = React.useCallback(e => {
188
188
  e.stopPropagation();
189
189
  if (!videoRef || !("current" in videoRef)) {
190
190
  return;
@@ -201,7 +201,7 @@ const VideoPlayer = react.forwardRef(function VideoPlayer2({
201
201
  setIsMuted(true);
202
202
  }
203
203
  }, [isMuted, videoRef]);
204
- const handleVolumeChange = react.useCallback(e => {
204
+ const handleVolumeChange = React.useCallback(e => {
205
205
  e.stopPropagation();
206
206
  if (!videoRef || !("current" in videoRef)) {
207
207
  return;
@@ -10,7 +10,7 @@ import './assets/play.svg.mjs';
10
10
  import './assets/volume-off.svg.mjs';
11
11
  import './assets/volume-on.svg.mjs';
12
12
  import { Wrap, IconWrap, Icon, Video, ControlWrap, TimelineWrap, Timeline, Controls, LeftSide, IconButton, VolumeWrap, VolumeSliderWrap, VolumeSlider, Time, Center, RightSide } from './VideoPlayer.styles.mjs';
13
- import CloseIcon__default from "../../assets/close3.svg";
13
+ import CloseIcon__default from "../../assets/close2.svg";
14
14
  import BackIcon__default from "../../assets/back.svg";
15
15
  import PauseIcon__default from "../../assets/pause.svg";
16
16
  import PlayIcon__default from "../../assets/play.svg";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var CloseIcon = require("../../../assets/close3.svg");
6
+ var CloseIcon = require("../../../assets/close2.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -1,3 +1,3 @@
1
- export * from "../../../assets/close3.svg";
2
- export { default } from "../../../assets/close3.svg";
1
+ export * from "../../../assets/close2.svg";
2
+ export { default } from "../../../assets/close2.svg";
3
3
  //# sourceMappingURL=close.svg.mjs.map
@@ -122,3 +122,4 @@ export { WifiMegaCapacity } from "../constants/modelCompareData/data/WifiMegaCap
122
122
  export { WifiWall } from "../constants/modelCompareData/data/WifiWall";
123
123
  export { Wired } from "../constants/modelCompareData/data/Wired";
124
124
  export { XgsPon } from "../constants/modelCompareData/data/XgsPon";
125
+ export * as ProductTechSpecsV2 from "./ProductTechSpecsV2";
@@ -124,6 +124,7 @@ var WifiMegaCapacity = require('../constants/modelCompareData/data/WifiMegaCapac
124
124
  var WifiWall = require('../constants/modelCompareData/data/WifiWall.js');
125
125
  var Wired = require('../constants/modelCompareData/data/Wired.js');
126
126
  var XgsPon = require('../constants/modelCompareData/data/XgsPon.js');
127
+ var index$U = require('./ProductTechSpecsV2/index.js');
127
128
  "use strict";
128
129
  exports.Avatar = index;
129
130
  exports.Button = index$1;
@@ -248,4 +249,5 @@ exports.WifiMegaCapacity = WifiMegaCapacity.WifiMegaCapacity;
248
249
  exports.WifiWall = WifiWall.WifiWall;
249
250
  exports.Wired = Wired.Wired;
250
251
  exports.XgsPon = XgsPon.XgsPon;
252
+ exports.ProductTechSpecsV2 = index$U;
251
253
  //# sourceMappingURL=index.js.map