@ubnt/store.core 9.53.0-alpha.4 → 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 (323) hide show
  1. package/CHANGELOG.md +8 -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/apis/smartcat.js +1 -1
  7. package/lib/apis/smartcat.js.map +1 -1
  8. package/lib/apis/smartcat.mjs +1 -1
  9. package/lib/apis/smartcat.mjs.map +1 -1
  10. package/lib/assets/ai-360.jpg +0 -0
  11. package/lib/assets/ai-3602.jpg +0 -0
  12. package/lib/assets/ai-bullet.jpg +0 -0
  13. package/lib/assets/ai-bullet2.jpg +0 -0
  14. package/lib/assets/ai-dslr.jpg +0 -0
  15. package/lib/assets/ai-dslr2.jpg +0 -0
  16. package/lib/assets/building-bridge-xg.jpg +0 -0
  17. package/lib/assets/building-bridge-xg2.jpg +0 -0
  18. package/lib/assets/close2.svg +2 -3
  19. package/lib/assets/close3.svg +3 -2
  20. package/lib/assets/e7-audience.jpg +0 -0
  21. package/lib/assets/e7-audience2.jpg +0 -0
  22. package/lib/assets/flex.jpg +0 -0
  23. package/lib/assets/flex2.jpg +0 -0
  24. package/lib/assets/g4-instant.jpg +0 -0
  25. package/lib/assets/g4-instant2.jpg +0 -0
  26. package/lib/assets/g5-bullet.jpg +0 -0
  27. package/lib/assets/g5-bullet2.jpg +0 -0
  28. package/lib/assets/g5-dome.jpg +0 -0
  29. package/lib/assets/g5-dome2.jpg +0 -0
  30. package/lib/assets/g5-flex.jpg +0 -0
  31. package/lib/assets/g5-flex2.jpg +0 -0
  32. package/lib/assets/g5-ptz.jpg +0 -0
  33. package/lib/assets/g5-ptz2.jpg +0 -0
  34. package/lib/assets/g5-turret-ultra.jpg +0 -0
  35. package/lib/assets/g5-turret-ultra2.jpg +0 -0
  36. package/lib/assets/industrial.jpg +0 -0
  37. package/lib/assets/industrial2.jpg +0 -0
  38. package/lib/assets/intercom.jpg +0 -0
  39. package/lib/assets/intercom2.jpg +0 -0
  40. package/lib/assets/pause.svg +3 -3
  41. package/lib/assets/pause2.svg +3 -3
  42. package/lib/components/Accordion/Accordion.js +4 -4
  43. package/lib/components/Avatar/Avatar.js +2 -2
  44. package/lib/components/Button/Button.js +6 -6
  45. package/lib/components/Button/CartButton.js +2 -2
  46. package/lib/components/CardSection/Card/Card.js +6 -6
  47. package/lib/components/CardSection/CardSection.js +2 -2
  48. package/lib/components/CartIcon/CartIcon.js +2 -2
  49. package/lib/components/Checkbox/Checkbox.js +4 -4
  50. package/lib/components/CloserLookSection/CloserLookSection.js +11 -11
  51. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.js +5 -5
  52. package/lib/components/Container/Container.js +2 -2
  53. package/lib/components/CustomImage/CustomImage.js +12 -12
  54. package/lib/components/Explore/Explore.js +5 -5
  55. package/lib/components/FeaturesSection_deprecated/Features/Features.js +2 -2
  56. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +23 -23
  57. package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
  58. package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
  59. package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
  60. package/lib/components/Footer/Footer.js +2 -2
  61. package/lib/components/Footer/hooks/useFooterContent.js +5 -5
  62. package/lib/components/Gallery/Gallery.context.js +17 -17
  63. package/lib/components/Gallery/Gallery.js +9 -9
  64. package/lib/components/Gallery/GalleryControls/GalleryControls.js +4 -4
  65. package/lib/components/Gallery/GalleryItem/GalleryItem.js +8 -8
  66. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.js +8 -8
  67. package/lib/components/GridGallery/GridGallery.js +8 -8
  68. package/lib/components/GridGallery/GridModal/GridModal.js +6 -6
  69. package/lib/components/Header/AccountFrame/AccountFrame.js +11 -11
  70. package/lib/components/Header/AccountFrame/Mobile/Mobile.js +4 -4
  71. package/lib/components/Header/AccountMenu/AccountMenu.js +19 -19
  72. package/lib/components/Header/CartModal/Empty/Empty.js +3 -3
  73. package/lib/components/Header/CartModalV2/CartModal.js +5 -5
  74. package/lib/components/Header/CartModalV2/Item/Item.js +4 -4
  75. package/lib/components/Header/Header.js +34 -34
  76. package/lib/components/Header/IsolatedHeader.js +7 -7
  77. package/lib/components/Header/LanguageFrame/LanguageFrame.js +6 -6
  78. package/lib/components/Header/MobileLinksModal/MobileMenu.js +3 -3
  79. package/lib/components/Header/Navigation/Carousel/Carousel.js +5 -5
  80. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.js +12 -12
  81. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +6 -6
  82. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +6 -6
  83. package/lib/components/Header/Overlay/Overlay.js +3 -3
  84. package/lib/components/Header/ProHeader/ProHeader.js +35 -35
  85. package/lib/components/Hero/Hero.js +5 -5
  86. package/lib/components/HeroVideo/HeroVideo.js +5 -5
  87. package/lib/components/ImageCarousel/ImageCarousel.js +29 -29
  88. package/lib/components/ImageSequence/ImageSequence.js +8 -8
  89. package/lib/components/LandingPage/Cards/Card/Card.js +4 -4
  90. package/lib/components/LandingPage/Cards/Cards.js +10 -10
  91. package/lib/components/LandingPage/LandingPage.js +2 -2
  92. package/lib/components/LandingPagePro/LandingPagePro.js +13 -13
  93. package/lib/components/LandingPageSearch/LandingPageSearch.js +2 -2
  94. package/lib/components/LandingPageSearch/Modal/Modal.js +9 -9
  95. package/lib/components/LandingPageSidebar/LandingPageSidebar.js +12 -12
  96. package/lib/components/LayoutRenderer/LayoutRenderer.js +8 -8
  97. package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.js +7 -7
  98. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.js +18 -18
  99. package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.js +2 -2
  100. package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.js +3 -3
  101. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.js +3 -3
  102. package/lib/components/MicrositeHeader/MicrositeHeader.js +4 -4
  103. package/lib/components/MicrositeHeader/components/DropdownMenu/DropdownMenu.js +4 -4
  104. package/lib/components/MicrositeHeader/components/HeaderContent/HeaderContent.js +13 -13
  105. package/lib/components/MicrositeHeader/components/SiteMap/SiteMap.js +2 -2
  106. package/lib/components/MicrositeHeader/components/SiteMapColumns/SiteMapColumns.js +15 -15
  107. package/lib/components/MicrositeHeader/components/VisualTopology/LinePaths.js +3 -3
  108. package/lib/components/MicrositeHeader/components/VisualTopology/VisualTopology.js +9 -9
  109. package/lib/components/MicrositeHero/MicrositeHero.js +18 -18
  110. package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.js +4 -4
  111. package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.js +9 -9
  112. package/lib/components/MicrositeProductGrid/MicrositeProductGrid.js +8 -8
  113. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlockWrap.js +2 -2
  114. package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.js +3 -3
  115. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +13 -13
  116. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
  117. package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
  118. package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
  119. package/lib/components/Microsites/MicrositePageContext.js +2 -2
  120. package/lib/components/Microsites/MicrositeProductPage.js +3 -3
  121. package/lib/components/Microsites/context/MicrositeProductPageContext.js +3 -3
  122. package/lib/components/MobileModal/MobileModal.js +4 -4
  123. package/lib/components/Modal/Modal.js +3 -3
  124. package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js +3 -3
  125. package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.js +2 -2
  126. package/lib/components/ModelCompareV3/ModelCompareV3.js +14 -14
  127. package/lib/components/ModelCompareV3/ProductGroupsGrid.js +3 -3
  128. package/lib/components/ModelCompareV3/ScrollGroup/ScrollGroup.js +5 -5
  129. package/lib/components/ModelCompareV3/ScrollGroup/context.js +3 -3
  130. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupItem.js +8 -8
  131. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupSetScroll.js +2 -2
  132. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupTo.js +2 -2
  133. package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js +7 -7
  134. package/lib/components/ModelCompareV3/StickyGrid/StickyGridBody.js +2 -2
  135. package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js +5 -5
  136. package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.js +2 -2
  137. package/lib/components/ModelCompareV3/StickyGrid/context.js +3 -3
  138. package/lib/components/ModelCompareV4/CompareTable/CompareTable.js +8 -8
  139. package/lib/components/ModelCompareV4/CompareTable/CompareTableMarkup.js +14 -14
  140. package/lib/components/ModelCompareV4/CompareTable/CompareTableOverflowScrollButton.js +3 -3
  141. package/lib/components/ModelCompareV4/CompareTable/PropertyValueGridItem.js +2 -2
  142. package/lib/components/ModelCompareV4/CompareTable/ScrollGroup/ScrollGroup.js +5 -5
  143. package/lib/components/ModelCompareV4/CompareTable/ScrollGroup/context.js +3 -3
  144. package/lib/components/ModelCompareV4/CompareTable/ScrollGroup/useScrollGroupItem.js +8 -8
  145. package/lib/components/ModelCompareV4/CompareTable/ScrollGroup/useScrollGroupSetScroll.js +2 -2
  146. package/lib/components/ModelCompareV4/CompareTable/ScrollGroup/useScrollGroupTo.js +2 -2
  147. package/lib/components/ModelCompareV4/CompareTable/StickyGrid/StickyGrid.js +7 -7
  148. package/lib/components/ModelCompareV4/CompareTable/StickyGrid/StickyGridBody.js +2 -2
  149. package/lib/components/ModelCompareV4/CompareTable/StickyGrid/StickyGridHeader.js +5 -5
  150. package/lib/components/ModelCompareV4/CompareTable/StickyGrid/StickyGridItem.js +2 -2
  151. package/lib/components/ModelCompareV4/CompareTable/StickyGrid/context.js +3 -3
  152. package/lib/components/ModelCompareV4/ModelCompareV4.js +5 -5
  153. package/lib/components/ModelCompareV4/ProductList/ProductList.js +11 -11
  154. package/lib/components/Pagination/Pagination.js +3 -3
  155. package/lib/components/PriceRangeSlider/PriceRangeSlider.js +16 -16
  156. package/lib/components/ProductCard/ProductCard.js +7 -7
  157. package/lib/components/ProductCardPopup/ProductCardPopup.js +8 -8
  158. package/lib/components/ProductCompare/ProductCompare.js +7 -7
  159. package/lib/components/ProductDetails/ProductDetails.js +5 -5
  160. package/lib/components/ProductGrid/ProductGrid.js +10 -10
  161. package/lib/components/ProductKeyFeatures/ProductKeyFeatures.js +3 -3
  162. package/lib/components/ProductSectionTabs/ProductSectionTabs.js +2 -2
  163. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.d.ts +2 -0
  164. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js +79 -0
  165. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js.map +1 -0
  166. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs +71 -0
  167. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs.map +1 -0
  168. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.stories.d.ts +5 -0
  169. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.d.ts +11 -0
  170. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +80 -0
  171. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +1 -0
  172. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +66 -0
  173. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs.map +1 -0
  174. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.types.d.ts +12 -0
  175. package/lib/components/ProductTechSpecsV2/index.d.ts +1 -0
  176. package/lib/components/ProductTechSpecsV2/index.js +6 -0
  177. package/lib/components/ProductTechSpecsV2/index.js.map +1 -0
  178. package/lib/components/ProductTechSpecsV2/index.mjs +3 -0
  179. package/lib/components/ProductTechSpecsV2/index.mjs.map +1 -0
  180. package/lib/components/ProductWizard/Options/Options.js +3 -3
  181. package/lib/components/ProductWizard/ProductWizard.js +2 -2
  182. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js +5 -5
  183. package/lib/components/ProgressCircle/ProgressCircle.js +4 -4
  184. package/lib/components/QuantityControls/QuantityControls.js +4 -4
  185. package/lib/components/RelatedProducts/RelatedProducts.js +5 -5
  186. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js +36 -36
  187. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +12 -12
  188. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +5 -5
  189. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CheckboxSection.js +2 -2
  190. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +4 -4
  191. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/SliderSection.js +3 -3
  192. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +7 -7
  193. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +6 -6
  194. package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.js +9 -9
  195. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.js +10 -10
  196. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +15 -15
  197. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.js +2 -2
  198. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +6 -6
  199. package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.js +5 -5
  200. package/lib/components/ScrollWrapper/ScrollWrapper.js +17 -17
  201. package/lib/components/Search/Input/Input.js +4 -4
  202. package/lib/components/Search/Modal/Modal.js +3 -3
  203. package/lib/components/StorageSliders/Slider/Slider.js +3 -3
  204. package/lib/components/StorageSliders/StorageSliders.context.js +20 -20
  205. package/lib/components/StorageSliders/StorageSliders.js +4 -4
  206. package/lib/components/TogglableStaticCompareTables/TogglableStaticCompareTable.js +8 -8
  207. package/lib/components/Tooltip/Tooltip.js +5 -5
  208. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js +7 -7
  209. package/lib/components/VariantSelector/Variant/Variant.js +40 -40
  210. package/lib/components/VariantSelector/VariantSelector.js +16 -16
  211. package/lib/components/VideoPlayerNew/VideoPlayer.js +21 -21
  212. package/lib/components/VideoPlayerNew/VideoPlayer.mjs +2 -2
  213. package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
  214. package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
  215. package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
  216. package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
  217. package/lib/components/index.d.ts +1 -0
  218. package/lib/components/index.js +2 -0
  219. package/lib/components/index.js.map +1 -1
  220. package/lib/components/index.mjs +2 -0
  221. package/lib/components/index.mjs.map +1 -1
  222. package/lib/constants/icons/options/colors/black.svg.js +5 -5
  223. package/lib/constants/icons/options/colors/index.js +3 -3
  224. package/lib/constants/icons/options/styles/black.svg.js +5 -5
  225. package/lib/constants/icons/options/styles/index.js +3 -3
  226. package/lib/constants/modelCompareData/assets/BuildingBridge/building-bridge-xg.jpg.js +1 -1
  227. package/lib/constants/modelCompareData/assets/BuildingBridge/building-bridge-xg.jpg.mjs +2 -2
  228. package/lib/constants/modelCompareData/assets/Bullet/ai-bullet.jpg.js +1 -1
  229. package/lib/constants/modelCompareData/assets/Bullet/ai-bullet.jpg.mjs +2 -2
  230. package/lib/constants/modelCompareData/assets/Bullet/ai-dslr.jpg.js +1 -1
  231. package/lib/constants/modelCompareData/assets/Bullet/ai-dslr.jpg.mjs +2 -2
  232. package/lib/constants/modelCompareData/assets/Bullet/g5-bullet.jpg.js +1 -1
  233. package/lib/constants/modelCompareData/assets/Bullet/g5-bullet.jpg.mjs +2 -2
  234. package/lib/constants/modelCompareData/assets/Compact/g4-instant.jpg.js +1 -1
  235. package/lib/constants/modelCompareData/assets/Compact/g4-instant.jpg.mjs +2 -2
  236. package/lib/constants/modelCompareData/assets/Compact/g5-flex.jpg.js +1 -1
  237. package/lib/constants/modelCompareData/assets/Compact/g5-flex.jpg.mjs +2 -2
  238. package/lib/constants/modelCompareData/assets/DomeTurret/ai-360.jpg.js +1 -1
  239. package/lib/constants/modelCompareData/assets/DomeTurret/ai-360.jpg.mjs +2 -2
  240. package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome.jpg.js +1 -1
  241. package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome.jpg.mjs +2 -2
  242. package/lib/constants/modelCompareData/assets/DomeTurret/g5-turret-ultra.jpg.js +1 -1
  243. package/lib/constants/modelCompareData/assets/DomeTurret/g5-turret-ultra.jpg.mjs +2 -2
  244. package/lib/constants/modelCompareData/assets/DoorAccess/intercom.jpg.js +1 -1
  245. package/lib/constants/modelCompareData/assets/DoorAccess/intercom.jpg.mjs +2 -2
  246. package/lib/constants/modelCompareData/assets/PTZ/g5-ptz.jpg.js +1 -1
  247. package/lib/constants/modelCompareData/assets/PTZ/g5-ptz.jpg.mjs +2 -2
  248. package/lib/constants/modelCompareData/assets/Switching/flex.jpg.js +1 -1
  249. package/lib/constants/modelCompareData/assets/Switching/flex.jpg.mjs +2 -2
  250. package/lib/constants/modelCompareData/assets/Switching/industrial.jpg.js +1 -1
  251. package/lib/constants/modelCompareData/assets/Switching/industrial.jpg.mjs +2 -2
  252. package/lib/constants/modelCompareData/assets/WiFi/e7-audience.jpg.js +1 -1
  253. package/lib/constants/modelCompareData/assets/WiFi/e7-audience.jpg.mjs +2 -2
  254. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-bullet.jpg.js +1 -1
  255. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-bullet.jpg.mjs +2 -2
  256. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-dslr.jpg.js +1 -1
  257. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-dslr.jpg.mjs +2 -2
  258. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/g5-bullet.jpg.js +1 -1
  259. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/g5-bullet.jpg.mjs +2 -2
  260. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/compact/g4-instant.jpg.js +1 -1
  261. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/compact/g4-instant.jpg.mjs +2 -2
  262. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/compact/g5-flex.jpg.js +1 -1
  263. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/compact/g5-flex.jpg.mjs +2 -2
  264. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-360.jpg.js +1 -1
  265. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-360.jpg.mjs +2 -2
  266. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome.jpg.js +1 -1
  267. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome.jpg.mjs +2 -2
  268. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-turret-ultra.jpg.js +1 -1
  269. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-turret-ultra.jpg.mjs +2 -2
  270. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/intercom.jpg.js +1 -1
  271. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/intercom.jpg.mjs +2 -2
  272. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/ptz/g5-ptz.jpg.js +1 -1
  273. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/ptz/g5-ptz.jpg.mjs +2 -2
  274. package/lib/constants/modelCompareData/assets/product-list-assets/switches/utility/flex.jpg.js +1 -1
  275. package/lib/constants/modelCompareData/assets/product-list-assets/switches/utility/flex.jpg.mjs +2 -2
  276. package/lib/constants/modelCompareData/assets/product-list-assets/switches/utility/industrial.jpg.js +1 -1
  277. package/lib/constants/modelCompareData/assets/product-list-assets/switches/utility/industrial.jpg.mjs +2 -2
  278. package/lib/constants/modelCompareData/assets/product-list-assets/wifi/building-bridge/building-bridge-xg.jpg.js +1 -1
  279. package/lib/constants/modelCompareData/assets/product-list-assets/wifi/building-bridge/building-bridge-xg.jpg.mjs +2 -2
  280. package/lib/constants/modelCompareData/assets/product-list-assets/wifi/mega-capacity/e7-audience.jpg.js +1 -1
  281. package/lib/constants/modelCompareData/assets/product-list-assets/wifi/mega-capacity/e7-audience.jpg.mjs +2 -2
  282. package/lib/constants/modelCompareData/data/products/ai360.js +2 -2
  283. package/lib/constants/modelCompareData/data/products/ai360.mjs +2 -2
  284. package/lib/constants/modelCompareData/data/products/aiBullet.js +2 -2
  285. package/lib/constants/modelCompareData/data/products/aiBullet.mjs +2 -2
  286. package/lib/constants/modelCompareData/data/products/aiDslr.js +2 -2
  287. package/lib/constants/modelCompareData/data/products/aiDslr.mjs +2 -2
  288. package/lib/constants/modelCompareData/data/products/buildingBridgeXG.js +2 -2
  289. package/lib/constants/modelCompareData/data/products/buildingBridgeXG.mjs +2 -2
  290. package/lib/constants/modelCompareData/data/products/flex.js +2 -2
  291. package/lib/constants/modelCompareData/data/products/flex.mjs +2 -2
  292. package/lib/constants/modelCompareData/data/products/g4Instant.js +2 -2
  293. package/lib/constants/modelCompareData/data/products/g4Instant.mjs +2 -2
  294. package/lib/constants/modelCompareData/data/products/g5Bullet.js +2 -2
  295. package/lib/constants/modelCompareData/data/products/g5Bullet.mjs +2 -2
  296. package/lib/constants/modelCompareData/data/products/g5Dome.js +2 -2
  297. package/lib/constants/modelCompareData/data/products/g5Dome.mjs +2 -2
  298. package/lib/constants/modelCompareData/data/products/g5Flex.js +2 -2
  299. package/lib/constants/modelCompareData/data/products/g5Flex.mjs +2 -2
  300. package/lib/constants/modelCompareData/data/products/g5Ptz.js +2 -2
  301. package/lib/constants/modelCompareData/data/products/g5Ptz.mjs +2 -2
  302. package/lib/constants/modelCompareData/data/products/g5TurretUltra.js +2 -2
  303. package/lib/constants/modelCompareData/data/products/g5TurretUltra.mjs +2 -2
  304. package/lib/constants/modelCompareData/data/products/industrial.js +2 -2
  305. package/lib/constants/modelCompareData/data/products/industrial.mjs +2 -2
  306. package/lib/constants/modelCompareData/data/products/intercom.js +2 -2
  307. package/lib/constants/modelCompareData/data/products/intercom.mjs +2 -2
  308. package/lib/constants/modelCompareData/data/products/shared-product-data/e7Audience.js +2 -2
  309. package/lib/constants/modelCompareData/data/products/shared-product-data/e7Audience.mjs +2 -2
  310. package/lib/constants/optionIcons.js +6 -6
  311. package/lib/constants/optionIcons.mjs +4 -4
  312. package/lib/contexts/MenuContext/context.js +35 -35
  313. package/lib/contexts/MicrositeMenuContext/context.js +9 -9
  314. package/lib/helpers/proStoreCategories.js +2 -2
  315. package/lib/hooks/useHasTouch.js +3 -3
  316. package/lib/hooks/useHddRetentionCalculator.js +5 -5
  317. package/lib/hooks/useHorizontalScroll.js +2 -2
  318. package/lib/hooks/useLockBodyScrollCustom.js +3 -3
  319. package/lib/hooks/useScrollToY.js +2 -2
  320. package/lib/hooks/useTestMediaElementVolumeSetter.js +3 -3
  321. package/lib/hooks/useTranslation.js +6 -6
  322. package/lib/utils/nextjs/ssr/registry.js +2 -2
  323. package/package.json +1 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
4
  var LineLoader = require('@ubnt/ui-components/LineLoader');
5
- var react = require('react');
5
+ var React = require('react');
6
6
  require('../../assets/account/no-user-avatar.png.js');
7
7
  require('../../constants/icons/index.js');
8
8
  require('../../contexts/MenuContext/index.js');
@@ -28,7 +28,7 @@ var _externalAssets_BkygAzVy__default = /*#__PURE__*/_interopDefault(_externalAs
28
28
  var accountLogo__default = /*#__PURE__*/_interopDefault(accountLogo);
29
29
  "use strict";
30
30
  const NoUserAvatarSrcLink = typeof NoUserAvatar__default["default"] === "string" ? NoUserAvatar__default["default"] : NoUserAvatar__default["default"].src;
31
- const IsolatedHeader = react.memo(function IsolatedHeader2({
31
+ const IsolatedHeader = React.memo(function IsolatedHeader2({
32
32
  className,
33
33
  motif: defaultMotif,
34
34
  translations = Header_types.defaultHeaderTranslations,
@@ -43,13 +43,13 @@ const IsolatedHeader = react.memo(function IsolatedHeader2({
43
43
  setMotif,
44
44
  createSiteUrl
45
45
  } = context.useMenu();
46
- react.useEffect(() => {
46
+ React.useEffect(() => {
47
47
  setMotif(defaultMotif);
48
48
  }, [defaultMotif, setMotif]);
49
- const homeLinkUrl = react.useMemo(() => {
49
+ const homeLinkUrl = React.useMemo(() => {
50
50
  return logo?.url ?? createSiteUrl([mapping.SiteId.Ui, ""]);
51
51
  }, [createSiteUrl, logo?.url]);
52
- const homeLinkClickHandler = react.useCallback(e => {
52
+ const homeLinkClickHandler = React.useCallback(e => {
53
53
  if (embedConfig?.homeLinkClickHandler) {
54
54
  e.preventDefault();
55
55
  embedConfig.homeLinkClickHandler();
@@ -57,7 +57,7 @@ const IsolatedHeader = react.memo(function IsolatedHeader2({
57
57
  }
58
58
  logo?.onClick?.(e, homeLinkUrl);
59
59
  }, [embedConfig, logo, homeLinkUrl]);
60
- const continueShoppingJsx = react.useMemo(() => {
60
+ const continueShoppingJsx = React.useMemo(() => {
61
61
  return /* @__PURE__ */jsxRuntime.jsxs(Header_styles.ContinueShoppingButton, {
62
62
  "data-test-id": "continue-shopping-btn",
63
63
  variant: "link",
@@ -72,7 +72,7 @@ const IsolatedHeader = react.memo(function IsolatedHeader2({
72
72
  }), translations.continueShopping]
73
73
  });
74
74
  }, [handleContinueShopping, motif, translations.continueShopping]);
75
- const avatarHtml = react.useMemo(() => {
75
+ const avatarHtml = React.useMemo(() => {
76
76
  if (!embedConfig?.moveAvatarIconToLeft || !embedConfig?.avatarClickHandler) {
77
77
  return null;
78
78
  }
@@ -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('../../../contexts/MenuContext/index.js');
7
7
  var mapping = require('../../../contexts/MenuContext/mapping.js');
@@ -37,11 +37,11 @@ const LanguageFrame = ({
37
37
  language,
38
38
  storeId
39
39
  } = context.useMenu();
40
- const ref = react.useRef(null);
41
- const name = react.useRef(null);
40
+ const ref = React.useRef(null);
41
+ const name = React.useRef(null);
42
42
  const isHovering = reactUse.useHoverDirty(name);
43
- const [, setShowPopOver] = react.useState(false);
44
- react.useEffect(() => {
43
+ const [, setShowPopOver] = React.useState(false);
44
+ React.useEffect(() => {
45
45
  if (name.current) {
46
46
  const displayPopover = name.current.offsetWidth < name.current.scrollWidth;
47
47
  if (displayPopover && isHovering) {
@@ -51,7 +51,7 @@ const LanguageFrame = ({
51
51
  }
52
52
  }
53
53
  }, [isHovering]);
54
- const handleClose = react.useCallback(() => {
54
+ const handleClose = React.useCallback(() => {
55
55
  onClose();
56
56
  }, [onClose]);
57
57
  reactUse.useClickAway(ref, event => {
@@ -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('../../../constants/icons/index.js');
6
6
  require('../../../contexts/MenuContext/index.js');
7
7
  require('../../../contexts/MicrositeMenuContext/index.js');
@@ -35,8 +35,8 @@ const MobileLinksModal = ({
35
35
  formatMessage
36
36
  } = translations.useMicrositeMenuTranslations(language);
37
37
  const motif = HeaderContent.LIGHT_KEY;
38
- const [expandedSectionItemId, setExpandedSectionItemId] = react.useState(null);
39
- const toggleExpandedSectionItemId = react.useCallback(itemId => {
38
+ const [expandedSectionItemId, setExpandedSectionItemId] = React.useState(null);
39
+ const toggleExpandedSectionItemId = React.useCallback(itemId => {
40
40
  setExpandedSectionItemId(expandedSectionItemId === itemId ? null : itemId);
41
41
  }, [expandedSectionItemId]);
42
42
  const onHandleLinkClick = (event, url) => {
@@ -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 theme = require('../../../../constants/theme.js');
7
7
  require('../../../../contexts/MenuContext/index.js');
@@ -36,7 +36,7 @@ const NavigationCarousel = function NavigationCarousel2({
36
36
  navigation,
37
37
  motif: menuMotif
38
38
  } = context.useMenu();
39
- const motif = react.useMemo(() => overrideMotif || menuMotif, [menuMotif, overrideMotif]);
39
+ const motif = React.useMemo(() => overrideMotif || menuMotif, [menuMotif, overrideMotif]);
40
40
  const {
41
41
  formatMessage
42
42
  } = useTranslation.useTranslation({
@@ -74,7 +74,7 @@ const NavigationCarousel = function NavigationCarousel2({
74
74
  }).then(res => res.default)
75
75
  }
76
76
  });
77
- const menuItem = react.useMemo(() => {
77
+ const menuItem = React.useMemo(() => {
78
78
  if (activeMenuItemId) {
79
79
  return [...navigation.primary.items, ...navigation.secondary.items].find(el => el.id === activeMenuItemId);
80
80
  }
@@ -87,7 +87,7 @@ const NavigationCarousel = function NavigationCarousel2({
87
87
  const {
88
88
  y: scrollY
89
89
  } = reactUse.useWindowScroll();
90
- const sticky = react.useMemo(() => {
90
+ const sticky = React.useMemo(() => {
91
91
  if (!stickyInitial || headerWrapScrollTop == null) {
92
92
  return false;
93
93
  }
@@ -96,7 +96,7 @@ const NavigationCarousel = function NavigationCarousel2({
96
96
  }
97
97
  return headerWrapScrollTop <= -(Header_styles.HEADER_HEIGHT + Carousel_styles.HEADER_NAVIGATION_CAROUSEL_STICKY_TRANSITION_OFFSET);
98
98
  }, [headerWrapScrollTop, scrollY, stickyHeader, stickyInitial]);
99
- const items = react.useMemo(() => {
99
+ const items = React.useMemo(() => {
100
100
  if (!menuItem) {
101
101
  return [];
102
102
  }
@@ -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('../../../../contexts/MenuContext/index.js');
7
7
  require('../../../../contexts/MenuContext/mapping.js');
@@ -66,8 +66,8 @@ const NavigationMicrositeMenu = ({
66
66
  }).then(res => res.default)
67
67
  }
68
68
  });
69
- const wrapRef = react.useRef(null);
70
- const parseMenuItems = react.useCallback(items => {
69
+ const wrapRef = React.useRef(null);
70
+ const parseMenuItems = React.useCallback(items => {
71
71
  return items.map(item => {
72
72
  let url, active;
73
73
  if (typeof item.url === "string") {
@@ -86,39 +86,39 @@ const NavigationMicrositeMenu = ({
86
86
  };
87
87
  });
88
88
  }, [context$1, createSiteUrl, isPathnameActive]);
89
- const menuItems = react.useMemo(() => {
89
+ const menuItems = React.useMemo(() => {
90
90
  return {
91
91
  primary: parseMenuItems(mapping.MICROSITE_NAVIGATION_MAPPING.primary),
92
92
  secondary: parseMenuItems(mapping.MICROSITE_NAVIGATION_MAPPING.secondary)
93
93
  };
94
94
  }, [parseMenuItems]);
95
- const [isClosing, setIsClosing] = react.useState(false);
95
+ const [isClosing, setIsClosing] = React.useState(false);
96
96
  reactUse.useDebounce(() => {
97
97
  if (isClosing) {
98
98
  setIsClosing(false);
99
99
  }
100
100
  }, MicrositeMenu_styles.TRANSITION_DURATION_MS, [isClosing]);
101
- const handleClose = react.useCallback(() => {
101
+ const handleClose = React.useCallback(() => {
102
102
  setIsClosing(true);
103
103
  onClose?.();
104
104
  }, [onClose]);
105
105
  const {
106
106
  y: scrollY
107
107
  } = reactUse.useWindowScroll();
108
- const isInView = react.useMemo(() => {
108
+ const isInView = React.useMemo(() => {
109
109
  if (!visible) {
110
110
  return false;
111
111
  }
112
112
  return scrollY < (stickyHeader ? 0 : Header_styles.HEADER_HEIGHT) + MicrositeMenu_styles.HEADER_NAVIGATION_MICROSITE_MENU_HEIGHT;
113
113
  }, [stickyHeader, scrollY, visible]);
114
- react.useEffect(() => {
114
+ React.useEffect(() => {
115
115
  if (isInView) {
116
116
  handleClose();
117
117
  }
118
118
  }, [handleClose, isInView]);
119
119
  const wrapHover = reactUse.useHoverDirty(wrapRef);
120
120
  const hasTouch = useHasTouch.useHasTouch();
121
- const slideInView = react.useMemo(() => {
121
+ const slideInView = React.useMemo(() => {
122
122
  if (
123
123
  // Menu is closing
124
124
  isClosing ||
@@ -129,7 +129,7 @@ const NavigationMicrositeMenu = ({
129
129
  const hasHover = !hasTouch && wrapHover;
130
130
  return show || hasHover;
131
131
  }, [hasTouch, isClosing, isInView, show, wrapHover]);
132
- const renderMenuItems = react.useCallback(parsedMenuItems => {
132
+ const renderMenuItems = React.useCallback(parsedMenuItems => {
133
133
  return parsedMenuItems.map(item => /* @__PURE__ */jsxRuntime.jsx(MicrositeMenu_styles.ListItem, {
134
134
  children: /* @__PURE__ */jsxRuntime.jsx(MicrositeMenu_styles.Button, {
135
135
  anchor: true,
@@ -146,8 +146,8 @@ const NavigationMicrositeMenu = ({
146
146
  })
147
147
  }, item.id));
148
148
  }, [formatMessage, handleClose, motif, onMenuItemLinkClick]);
149
- const [noTransition, setNoTransition] = react.useState(false);
150
- react.useEffect(() => {
149
+ const [noTransition, setNoTransition] = React.useState(false);
150
+ React.useEffect(() => {
151
151
  setNoTransition(true);
152
152
  }, [
153
153
  // HACK: needed isInView to retrigger the effect
@@ -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('../../../../constants/icons/index.js');
6
6
  require('../../../../contexts/MenuContext/index.js');
7
7
  require('../../../../contexts/MenuContext/mapping.js');
@@ -80,11 +80,11 @@ const NavigationMobileMenu = function NavigationMobileMenu2({
80
80
  }
81
81
  });
82
82
  const motif = "dark";
83
- const [expandedSectionItemId, setExpandedSectionItemId] = react.useState(null);
84
- const toggleExpandedSectionItemId = react.useCallback(itemId => {
83
+ const [expandedSectionItemId, setExpandedSectionItemId] = React.useState(null);
84
+ const toggleExpandedSectionItemId = React.useCallback(itemId => {
85
85
  setExpandedSectionItemId(expandedSectionItemId === itemId ? null : itemId);
86
86
  }, [expandedSectionItemId]);
87
- const micrositeSection = react.useMemo(() => {
87
+ const micrositeSection = React.useMemo(() => {
88
88
  if (!hasMicrositeMenu) {
89
89
  return [];
90
90
  }
@@ -101,7 +101,7 @@ const NavigationMobileMenu = function NavigationMobileMenu2({
101
101
  })
102
102
  }];
103
103
  }, [createSiteUrl, formatMessage, hasMicrositeMenu]);
104
- const micrositeLinks = react.useMemo(() => {
104
+ const micrositeLinks = React.useMemo(() => {
105
105
  if (!hasMicrositeMenu) {
106
106
  return [];
107
107
  }
@@ -116,7 +116,7 @@ const NavigationMobileMenu = function NavigationMobileMenu2({
116
116
  }))
117
117
  }];
118
118
  }, [createSiteUrl, hasMicrositeMenu, translations.links]);
119
- const sections = react.useMemo(() => {
119
+ const sections = React.useMemo(() => {
120
120
  return [...micrositeSection, {
121
121
  id: "main",
122
122
  items: [...utils.filterOutUnrenderableItems(activeNavigationSection.items).map(item => ({
@@ -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('../../../../assets/icons/menu/icon-history.svg.js');
6
6
  require('../../../../assets/icons/menu/icon-location-pin.svg.js');
7
7
  require('../../../../constants/icons/index.js');
@@ -50,11 +50,11 @@ const NavigationProMobileMenu = function NavigationProMobileMenu2({
50
50
  const {
51
51
  context: context$1
52
52
  } = context.useMenu();
53
- const [expandedSectionItemId, setExpandedSectionItemId] = react.useState(null);
54
- const toggleExpandedSectionItemId = react.useCallback(itemId => {
53
+ const [expandedSectionItemId, setExpandedSectionItemId] = React.useState(null);
54
+ const toggleExpandedSectionItemId = React.useCallback(itemId => {
55
55
  setExpandedSectionItemId(expandedSectionItemId === itemId ? null : itemId);
56
56
  }, [expandedSectionItemId]);
57
- const sections = react.useMemo(() => {
57
+ const sections = React.useMemo(() => {
58
58
  const extraSectionItems = [{
59
59
  id: "support",
60
60
  label: translations.support,
@@ -154,7 +154,7 @@ const NavigationProMobileMenu = function NavigationProMobileMenu2({
154
154
  items: [item]
155
155
  })) : [])].filter(typeGuards.isNonNullish);
156
156
  }, [translations.support, translations.social, translations.company, translations.training, translations.tools, translations.orderHistory, translations.purchasedProductHistory, translations.region, context$1, socialContent.items, handleOrderHistoryClick, handlePurchaseHistoryClick, categories.items, logo?.currentStore, handleStorePickerClick, hideExtraSection, footerContent]);
157
- const renderSectionItemIcon = react.useCallback(item => {
157
+ const renderSectionItemIcon = React.useCallback(item => {
158
158
  return item.icon && /* @__PURE__ */jsxRuntime.jsx(ProMobileMenu_styles.SectionItemIcon, {
159
159
  children: /* @__PURE__ */jsxRuntime.jsx(StyleableSvgImage.StyleableSvgImage, {
160
160
  src: item.icon.src,
@@ -163,7 +163,7 @@ const NavigationProMobileMenu = function NavigationProMobileMenu2({
163
163
  })
164
164
  });
165
165
  }, []);
166
- const renderSectionItemButton = react.useCallback(item => {
166
+ const renderSectionItemButton = React.useCallback(item => {
167
167
  const IconNode = "subItems" in item && renderSectionItemIcon(item);
168
168
  const NewLabelNode = "isNew" in item && item.isNew ? /* @__PURE__ */jsxRuntime.jsx(MobileMenu_styles.NewLabel, {
169
169
  children: translations.new
@@ -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 types = require('../../../contexts/MenuContext/types.js');
7
7
  require('../../../hooks/index.js');
@@ -14,10 +14,10 @@ const HeaderOverlay = function HeaderOverlay2({
14
14
  onClose
15
15
  }) {
16
16
  useLockBodyScrollCustom.useLockBodyScrollCustom(!!showForModal);
17
- const canManualClose = react.useMemo(() => {
17
+ const canManualClose = React.useMemo(() => {
18
18
  return showForModal !== types.ModalId.Cart;
19
19
  }, [showForModal]);
20
- const handleManualClose = react.useCallback(() => {
20
+ const handleManualClose = React.useCallback(() => {
21
21
  if (!canManualClose) return;
22
22
  onClose?.();
23
23
  }, [canManualClose, onClose]);
@@ -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/account/no-user-avatar.png.js');
8
8
  require('../../../assets/icons/menu/icon-ea.svg.js');
@@ -78,7 +78,7 @@ const DEFAULT_PRODUCT_LINE_OPTIONS = [{
78
78
  value: generated.ProductLine.Uisp,
79
79
  label: "UISP"
80
80
  }];
81
- const ProHeader = react.memo(function ProHeader2({
81
+ const ProHeader = React.memo(function ProHeader2({
82
82
  className,
83
83
  motif: defaultMotif,
84
84
  cart,
@@ -110,11 +110,11 @@ const ProHeader = react.memo(function ProHeader2({
110
110
  logo
111
111
  }) {
112
112
  const isMobile = reactUse.useMedia(PRO_HEADER_MOBILE_AND_DOWN, false);
113
- const rootRef = react.useRef(null);
114
- const wrapRef = react.useRef(null);
115
- const containerRef = react.useRef(null);
116
- const [searchInputEl, setSearchInputEl] = react.useState(null);
117
- const translations = react.useMemo(() => {
113
+ const rootRef = React.useRef(null);
114
+ const wrapRef = React.useRef(null);
115
+ const containerRef = React.useRef(null);
116
+ const [searchInputEl, setSearchInputEl] = React.useState(null);
117
+ const translations = React.useMemo(() => {
118
118
  return merge__default["default"](Header_types.defaultHeaderTranslations, initialTranslations);
119
119
  }, [initialTranslations]);
120
120
  const {
@@ -163,11 +163,11 @@ const ProHeader = react.memo(function ProHeader2({
163
163
  }).then(res => res.default)
164
164
  }
165
165
  });
166
- const [isSearchFocused, setIsSearchFocused] = react.useState(false);
167
- react.useEffect(() => {
166
+ const [isSearchFocused, setIsSearchFocused] = React.useState(false);
167
+ React.useEffect(() => {
168
168
  setMotif(defaultMotif);
169
169
  }, [defaultMotif, setMotif]);
170
- const handleModalOpen = react.useCallback((e, id) => {
170
+ const handleModalOpen = React.useCallback((e, id) => {
171
171
  e.stopPropagation();
172
172
  if (activeModal !== id) {
173
173
  onModalOpen?.();
@@ -178,10 +178,10 @@ const ProHeader = react.memo(function ProHeader2({
178
178
  }
179
179
  setActiveModal(activeModal === id ? null : id);
180
180
  }, [activeModal, onCartClick, setActiveModal, onModalOpen]);
181
- const handleModalClose = react.useCallback(() => {
181
+ const handleModalClose = React.useCallback(() => {
182
182
  setActiveModal(null);
183
183
  }, [setActiveModal]);
184
- const handleHamburgerClick = react.useCallback(() => {
184
+ const handleHamburgerClick = React.useCallback(() => {
185
185
  if (activeModal === types.ModalId.ProMobileMenu) {
186
186
  setActiveModal(null);
187
187
  } else {
@@ -189,19 +189,19 @@ const ProHeader = react.memo(function ProHeader2({
189
189
  }
190
190
  handleMobileMenuClick?.();
191
191
  }, [activeModal, handleMobileMenuClick, setActiveModal]);
192
- const sticky = react.useMemo(() => {
192
+ const sticky = React.useMemo(() => {
193
193
  return (
194
194
  // Set as sticky if mobile menu is open
195
195
  activeModal === types.ModalId.ProMobileMenu
196
196
  );
197
197
  }, [activeModal]);
198
- const [canFocusSearch, setCanFocusSearch] = react.useState(false);
199
- react.useEffect(() => {
198
+ const [canFocusSearch, setCanFocusSearch] = React.useState(false);
199
+ React.useEffect(() => {
200
200
  if (activeModal !== types.ModalId.Search) {
201
201
  setCanFocusSearch(false);
202
202
  }
203
203
  }, [activeModal]);
204
- react.useEffect(() => {
204
+ React.useEffect(() => {
205
205
  if (!canFocusSearch || activeModal !== types.ModalId.Search || !searchInputEl) return;
206
206
  const interval = setInterval(() => {
207
207
  if (document.activeElement === searchInputEl) {
@@ -213,21 +213,21 @@ const ProHeader = react.memo(function ProHeader2({
213
213
  return () => clearInterval(interval);
214
214
  }, [activeModal, canFocusSearch, searchInputEl]);
215
215
  const isSearching = activeModal === types.ModalId.Search || !!searchValue;
216
- const onClickAwayFromSearchModal = react.useCallback(() => {
216
+ const onClickAwayFromSearchModal = React.useCallback(() => {
217
217
  if (searchValue) return;
218
218
  if (activeModal === types.ModalId.Search) {
219
219
  setActiveModal(null);
220
220
  onSearchClick?.();
221
221
  }
222
222
  }, [activeModal, onSearchClick, searchValue, setActiveModal]);
223
- const [initialSearchValueHandled, setInitialSearchValueHandled] = react.useState(false);
224
- react.useEffect(() => {
223
+ const [initialSearchValueHandled, setInitialSearchValueHandled] = React.useState(false);
224
+ React.useEffect(() => {
225
225
  if (!initialSearchValueHandled && searchValue) {
226
226
  setActiveModal(types.ModalId.Search);
227
227
  setInitialSearchValueHandled(true);
228
228
  }
229
229
  }, [initialSearchValueHandled, searchValue, setActiveModal]);
230
- const blurSearchInput = react.useCallback(() => {
230
+ const blurSearchInput = React.useCallback(() => {
231
231
  if (!searchInputEl || activeModal !== types.ModalId.Search) {
232
232
  return;
233
233
  }
@@ -240,31 +240,31 @@ const ProHeader = react.memo(function ProHeader2({
240
240
  reactUse.useClickAway(rootRef, () => {
241
241
  onClickAwayFromSearchModal();
242
242
  }, ["click"]);
243
- const handleSearchCancel = react.useCallback(() => {
243
+ const handleSearchCancel = React.useCallback(() => {
244
244
  setActiveModal(null);
245
245
  onSearch?.("");
246
246
  }, [onSearch, setActiveModal]);
247
- const handleSearchOnClear = react.useCallback(() => {
247
+ const handleSearchOnClear = React.useCallback(() => {
248
248
  setActiveModal(types.ModalId.Search);
249
249
  onSearch?.("");
250
250
  }, [onSearch, setActiveModal]);
251
- const handleSearchOnFocus = react.useCallback(() => {
251
+ const handleSearchOnFocus = React.useCallback(() => {
252
252
  setIsSearchFocused(true);
253
253
  onSearchFocus?.();
254
254
  }, [setIsSearchFocused, onSearchFocus]);
255
- const handleSearchOnBlur = react.useCallback(() => {
255
+ const handleSearchOnBlur = React.useCallback(() => {
256
256
  setIsSearchFocused(false);
257
257
  onSearchBlur?.();
258
258
  }, [setIsSearchFocused, onSearchBlur]);
259
- const handleOpenSearch = react.useCallback(e => {
259
+ const handleOpenSearch = React.useCallback(e => {
260
260
  handleModalOpen(e, types.ModalId.Search);
261
261
  onSearchClick?.();
262
262
  setCanFocusSearch(true);
263
263
  }, [handleModalOpen, onSearchClick]);
264
- const handleSearchValueChange = react.useCallback(e => {
264
+ const handleSearchValueChange = React.useCallback(e => {
265
265
  onSearch?.(e.target.value);
266
266
  }, [onSearch]);
267
- const searchPlaceholder = react.useMemo(() => {
267
+ const searchPlaceholder = React.useMemo(() => {
268
268
  const defaultPlaceholder = translations.search.searchUniFiProducts;
269
269
  switch (productLineValue) {
270
270
  case generated.ProductLine.Uisp:
@@ -281,7 +281,7 @@ const ProHeader = react.memo(function ProHeader2({
281
281
  }
282
282
  }
283
283
  }, [productLineValue, translations]);
284
- const searchFocusWidth = react.useMemo(() => {
284
+ const searchFocusWidth = React.useMemo(() => {
285
285
  switch (productLineValue) {
286
286
  case generated.ProductLine.Amplifi:
287
287
  return 164;
@@ -289,7 +289,7 @@ const ProHeader = react.memo(function ProHeader2({
289
289
  return 160;
290
290
  }
291
291
  }, [productLineValue]);
292
- react.useEffect(() => {
292
+ React.useEffect(() => {
293
293
  if (
294
294
  // eslint-disable-next-line sonarjs/deprecation
295
295
  !embedConfig?.hideSearchOnTouchmove && !embedConfig?.blurSearchOnTouchmove) {
@@ -302,13 +302,13 @@ const ProHeader = react.memo(function ProHeader2({
302
302
  }, [
303
303
  // eslint-disable-next-line sonarjs/deprecation
304
304
  embedConfig?.hideSearchOnTouchmove, blurSearchInput, embedConfig?.blurSearchOnTouchmove]);
305
- const cartQuantity = react.useMemo(() => {
305
+ const cartQuantity = React.useMemo(() => {
306
306
  return cart?.items.reduce((sum, item) => sum + item.quantity, 0) ?? 0;
307
307
  }, [cart?.items]);
308
- const homeLinkUrl = react.useMemo(() => {
308
+ const homeLinkUrl = React.useMemo(() => {
309
309
  return logo?.url ?? createSiteUrl([mapping.SiteId.Ui, ""]);
310
310
  }, [createSiteUrl, logo?.url]);
311
- const homeLinkClickHandler = react.useCallback(e => {
311
+ const homeLinkClickHandler = React.useCallback(e => {
312
312
  if (embedConfig?.homeLinkClickHandler) {
313
313
  e.preventDefault();
314
314
  embedConfig.homeLinkClickHandler();
@@ -316,7 +316,7 @@ const ProHeader = react.memo(function ProHeader2({
316
316
  }
317
317
  logo?.onClick?.(e, homeLinkUrl);
318
318
  }, [embedConfig, homeLinkUrl, logo]);
319
- react.useEffect(() => {
319
+ React.useEffect(() => {
320
320
  const containerEl = containerRef.current;
321
321
  if (!containerEl) return;
322
322
  const wrapEl = wrapRef.current;
@@ -335,14 +335,14 @@ const ProHeader = react.memo(function ProHeader2({
335
335
  };
336
336
  window.requestAnimationFrame(handle);
337
337
  }, [isMobile]);
338
- const handleAvatarClick = react.useCallback(e => {
338
+ const handleAvatarClick = React.useCallback(e => {
339
339
  if (embedConfig?.avatarClickHandler) {
340
340
  embedConfig.avatarClickHandler();
341
341
  } else {
342
342
  handleModalOpen(e, types.ModalId.Account);
343
343
  }
344
344
  }, [embedConfig, handleModalOpen]);
345
- const avatarHtml = react.useMemo(() => {
345
+ const avatarHtml = React.useMemo(() => {
346
346
  if (embedConfig?.hideAvatarIcon) {
347
347
  return null;
348
348
  }
@@ -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('../../assets/icons/accessApplication.svg.js');
7
7
  require('../../assets/icons/networkApplication.svg.js');
@@ -68,18 +68,18 @@ const Hero = ({
68
68
  ellipseBackgroundString,
69
69
  isSimpleBackground
70
70
  }) => {
71
- const [activeSlide, setActiveSlide] = react.useState(-1);
72
- const slideshowEnabled = react.useMemo(() => {
71
+ const [activeSlide, setActiveSlide] = React.useState(-1);
72
+ const slideshowEnabled = React.useMemo(() => {
73
73
  return activeSlide !== -1;
74
74
  }, [activeSlide]);
75
75
  useLockBodyScrollCustom.useLockBodyScrollCustom(!!slideshowEnabled);
76
76
  const isTablet = reactUse.useMedia(layout.BREAKPOINTS.TABLET_AND_DOWN, false);
77
- react.useEffect(() => {
77
+ React.useEffect(() => {
78
78
  if (isTablet) {
79
79
  setActiveSlide(-1);
80
80
  }
81
81
  }, [isTablet]);
82
- react.useEffect(() => {
82
+ React.useEffect(() => {
83
83
  setActiveSlide(-1);
84
84
  }, [images]);
85
85
  const iconObj = productLine ? PRODUCT_LINES[productLine] : void 0;
@@ -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('../../assets/icons/play-dark-bg.svg.js');
6
6
  require('../CustomImage/index.js');
7
7
  var GridModal = require('../GridGallery/GridModal/GridModal.js');
@@ -20,10 +20,10 @@ const HeroVideo = ({
20
20
  posterUrl,
21
21
  modalVideo
22
22
  }) => {
23
- const videoRef = react.useRef(null);
24
- const [isVideoActive, setIsVideoActive] = react.useState(false);
25
- const [isVideoLoaded, setIsVideoLoaded] = react.useState(false);
26
- react.useEffect(() => {
23
+ const videoRef = React.useRef(null);
24
+ const [isVideoActive, setIsVideoActive] = React.useState(false);
25
+ const [isVideoLoaded, setIsVideoLoaded] = React.useState(false);
26
+ React.useEffect(() => {
27
27
  if (isVideoActive) {
28
28
  videoRef.current?.pause();
29
29
  } else {