@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 reactUse = require('react-use');
6
6
  var layout = require('../../constants/layout.js');
7
7
  require('../Search/index.js');
@@ -21,7 +21,7 @@ const LandingPageSearch = ({
21
21
  const handleInputValueChange = e => {
22
22
  search?.onSearch(e.target.value);
23
23
  };
24
- const handleOnClose = react.useCallback(e => {
24
+ const handleOnClose = React.useCallback(e => {
25
25
  if (e?.ctrlKey || e?.metaKey) {
26
26
  return;
27
27
  }
@@ -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('../../../utils/money/index.js');
7
7
  require('../../CustomImage/index.js');
@@ -26,13 +26,13 @@ const SearchModal = function SearchModal2({
26
26
  renderImage,
27
27
  disableShowMoreResults
28
28
  }) {
29
- const ref = react.useRef(null);
30
- const noResults = react.useMemo(() => !search.loading && !search.items?.length && !!formattedQuerySearchTerm, [formattedQuerySearchTerm, search.items?.length, search.loading]);
31
- const showSearchResultsLink = react.useMemo(() => !disableShowMoreResults && search.totalItemsCount > MAX_SEARCH_RESULTS, [search, disableShowMoreResults]);
29
+ const ref = React.useRef(null);
30
+ const noResults = React.useMemo(() => !search.loading && !search.items?.length && !!formattedQuerySearchTerm, [formattedQuerySearchTerm, search.items?.length, search.loading]);
31
+ const showSearchResultsLink = React.useMemo(() => !disableShowMoreResults && search.totalItemsCount > MAX_SEARCH_RESULTS, [search, disableShowMoreResults]);
32
32
  reactUse.useClickAway(ref, () => {
33
33
  onClose?.();
34
34
  });
35
- const searchItemsSliced = react.useMemo(() => {
35
+ const searchItemsSliced = React.useMemo(() => {
36
36
  return search.items.slice(0, MAX_SEARCH_RESULTS);
37
37
  }, [search.items]);
38
38
  return /* @__PURE__ */jsxRuntime.jsxs(Modal_styles.Container, {
@@ -80,16 +80,16 @@ const SearchModalItem = function SearchModalItem2({
80
80
  renderImage,
81
81
  renderSeparationBorder
82
82
  }) {
83
- const handleButtonClick = react.useCallback(() => {
83
+ const handleButtonClick = React.useCallback(() => {
84
84
  onAddToCart(slug);
85
85
  }, [onAddToCart, slug]);
86
- const isInStock = react.useMemo(() => {
86
+ const isInStock = React.useMemo(() => {
87
87
  return !!variants?.find(variant => variant.isInStock);
88
88
  }, [variants]);
89
- const isComingSoon = react.useMemo(() => {
89
+ const isComingSoon = React.useMemo(() => {
90
90
  return !isInStock && !!variants?.find(variant => variant.isComingSoon);
91
91
  }, [isInStock, variants]);
92
- const addToCartButtonText = react.useMemo(() => {
92
+ const addToCartButtonText = React.useMemo(() => {
93
93
  if (isComingSoon) {
94
94
  return translations.view;
95
95
  }
@@ -3,7 +3,7 @@
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
4
  var Checkbox = require('@ubnt/ui-components/Checkbox');
5
5
  var Radio = require('@ubnt/ui-components/Radio');
6
- var react = require('react');
6
+ var React = require('react');
7
7
  var reactUse = require('react-use');
8
8
  require('../../assets/icons/previouslyPurchasedStar.svg.js');
9
9
  require('../../constants/icons/index.js');
@@ -44,11 +44,11 @@ const LandingPageSidebar = function LandingPageSidebar2({
44
44
  productTypeProps,
45
45
  isCartSummaryOpen
46
46
  }) {
47
- const [isMobileOverlayOpened, setIsMobileOverlayOpened] = react.useState(false);
47
+ const [isMobileOverlayOpened, setIsMobileOverlayOpened] = React.useState(false);
48
48
  const isMobile = reactUse.useMedia(layout.BREAKPOINTS.TABLET_AND_DOWN, false);
49
- const [hasFiltersChanged, setHasFiltersChanged] = react.useState(false);
49
+ const [hasFiltersChanged, setHasFiltersChanged] = React.useState(false);
50
50
  useLockBodyScrollCustom.useLockBodyScrollCustom(isMobile && isMobileOverlayOpened);
51
- const filtersChange = react.useCallback(value => {
51
+ const filtersChange = React.useCallback(value => {
52
52
  setHasFiltersChanged(true);
53
53
  filtersBlock?.onChange(value);
54
54
  }, [filtersBlock]);
@@ -108,17 +108,17 @@ const CategoriesBlock = function CategoriesBlock2({
108
108
  isSearchUsed,
109
109
  productCount
110
110
  }) {
111
- const getInitialIndex = react.useCallback(() => {
111
+ const getInitialIndex = React.useCallback(() => {
112
112
  return categories.findIndex(category => {
113
113
  return category.items.some(item => categoriesBlock?.activeCategory === item.slug);
114
114
  });
115
115
  }, [categories, categoriesBlock?.activeCategory]);
116
- const [initialAccordionIndex, setInitialAccordionIndex] = react.useState(getInitialIndex());
117
- const categoryChange = react.useCallback(value => {
116
+ const [initialAccordionIndex, setInitialAccordionIndex] = React.useState(getInitialIndex());
117
+ const categoryChange = React.useCallback(value => {
118
118
  setFilersChanged(true);
119
119
  categoriesBlock?.onChange(value);
120
120
  }, [categoriesBlock, setFilersChanged]);
121
- const accordionItems = react.useMemo(() => {
121
+ const accordionItems = React.useMemo(() => {
122
122
  return categories.filter(category => isSearchUsed || (category?.items.flatMap(item => item.products).length || 0) > 0).map(category => {
123
123
  const firstCategory = category.items[0];
124
124
  return {
@@ -141,7 +141,7 @@ const CategoriesBlock = function CategoriesBlock2({
141
141
  };
142
142
  });
143
143
  }, [categories, categoriesBlock?.activeCategory, categoryChange, isSearchUsed, translations]);
144
- const handleAccordionChange = react.useCallback(index => {
144
+ const handleAccordionChange = React.useCallback(index => {
145
145
  if (index > -1) {
146
146
  setInitialAccordionIndex(index);
147
147
  const currentCategoryID = accordionItems[index]?.id;
@@ -209,7 +209,7 @@ const FilterBlock = function FilterBlock2({
209
209
  translations,
210
210
  filtersBlock
211
211
  }) {
212
- const filtersList = react.useMemo(() => {
212
+ const filtersList = React.useMemo(() => {
213
213
  return [{
214
214
  title: translations.MSRPRange,
215
215
  id: "priceRange",
@@ -232,7 +232,7 @@ const FilterBlock = function FilterBlock2({
232
232
  type: "checkbox"
233
233
  }];
234
234
  }, [translations.MSRPRange, translations.earlyAccess, translations.inStock, translations.myPurchaseHistory]);
235
- const handleCheckboxChange = react.useCallback((value, checked) => {
235
+ const handleCheckboxChange = React.useCallback((value, checked) => {
236
236
  if (checked && !filtersBlock?.activeFilters.filters?.includes(value)) {
237
237
  const newData = {
238
238
  ...filtersBlock?.activeFilters,
@@ -247,7 +247,7 @@ const FilterBlock = function FilterBlock2({
247
247
  filtersBlock?.onChange(newData);
248
248
  }
249
249
  }, [filtersBlock]);
250
- const hasFilters = react.useMemo(() => {
250
+ const hasFilters = React.useMemo(() => {
251
251
  return !!filtersBlock?.activeFilters.filters?.length || filtersBlock?.activeFilters.priceFrom !== void 0 || filtersBlock?.activeFilters.priceTo !== void 0;
252
252
  }, [filtersBlock?.activeFilters.filters?.length, filtersBlock?.activeFilters.priceFrom, filtersBlock?.activeFilters.priceTo]);
253
253
  if (!filtersBlock) {
@@ -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/link.svg.js');
7
7
  require('../../contexts/MenuContext/index.js');
@@ -56,8 +56,8 @@ const LayoutRenderer = ({
56
56
  const {
57
57
  activeNavigationSection
58
58
  } = context.useMenu();
59
- const wrapRef = react.useRef(null);
60
- const images = react.useMemo(() => {
59
+ const wrapRef = React.useRef(null);
60
+ const images = React.useMemo(() => {
61
61
  if (currentProduct?.images?.length) {
62
62
  if (!currentProduct?.showGallery && currentProduct.images[0]) {
63
63
  return [currentProduct.images[0]];
@@ -72,10 +72,10 @@ const LayoutRenderer = ({
72
72
  const [galleryRef, {
73
73
  width: galleryWidth
74
74
  }] = reactUse.useMeasure();
75
- const galleryHeight = react.useMemo(() => {
75
+ const galleryHeight = React.useMemo(() => {
76
76
  return windowHeight - Header_styles.HEADER_HEIGHT - 80;
77
77
  }, [windowHeight]);
78
- const showTitle = react.useMemo(() =>
78
+ const showTitle = React.useMemo(() =>
79
79
  // If not pro-store
80
80
  !isProStore && (
81
81
  // If we have no collection
@@ -84,7 +84,7 @@ const LayoutRenderer = ({
84
84
  activeNavigationSection.items.every(item => !item.active) ||
85
85
  // If we have collection and there are active, invisible items
86
86
  activeNavigationSection.items.some(item => item.active && item.invisible)), [activeNavigationSection.items, collection, isProStore]);
87
- const photos = react.useMemo(() => {
87
+ const photos = React.useMemo(() => {
88
88
  return currentProduct?.deploymentImages?.map(asset => {
89
89
  return {
90
90
  ...asset,
@@ -93,8 +93,8 @@ const LayoutRenderer = ({
93
93
  };
94
94
  }) ?? [];
95
95
  }, [collection?.slug, currentProduct?.deploymentImages]);
96
- const [activeTab, setActiveTab] = react.useState();
97
- const closerLookSectionProps = react.useMemo(() => {
96
+ const [activeTab, setActiveTab] = React.useState();
97
+ const closerLookSectionProps = React.useMemo(() => {
98
98
  return {
99
99
  translations: translations.closerLookSection,
100
100
  renderImage,
@@ -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('../../../contexts/MenuContext/index.js');
6
6
  var MeetUniFiVideoPlayer_helpers = require('../MeetUniFiVideoPlayer.helpers.js');
7
7
  var EpisodeCard_styles = require('./EpisodeCard.styles.js');
@@ -16,20 +16,20 @@ const EpisodeCard = ({
16
16
  const {
17
17
  languageDirection
18
18
  } = context.useMenu();
19
- const videoRef = react.useRef(null);
20
- const [videoShouldPlay, setVideoShouldPlay] = react.useState(false);
21
- const [videoLoaded, setVideoLoaded] = react.useState(false);
22
- const handleMouseOver = react.useCallback(() => {
19
+ const videoRef = React.useRef(null);
20
+ const [videoShouldPlay, setVideoShouldPlay] = React.useState(false);
21
+ const [videoLoaded, setVideoLoaded] = React.useState(false);
22
+ const handleMouseOver = React.useCallback(() => {
23
23
  setVideoShouldPlay(true);
24
24
  videoRef.current?.play();
25
25
  onMouseOver?.();
26
26
  }, [onMouseOver]);
27
- const handleMouseOut = react.useCallback(() => {
27
+ const handleMouseOut = React.useCallback(() => {
28
28
  setVideoShouldPlay(false);
29
29
  videoRef.current?.pause();
30
30
  onMouseOut?.();
31
31
  }, [onMouseOut]);
32
- const handleOnClick = react.useCallback(() => {
32
+ const handleOnClick = React.useCallback(() => {
33
33
  onClick?.(episode.id);
34
34
  }, [episode.id, onClick]);
35
35
  return /* @__PURE__ */jsxRuntime.jsxs(EpisodeCard_styles.Container, {
@@ -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 layout = require('../../constants/layout.js');
7
7
  require('../../contexts/MenuContext/mapping.js');
@@ -73,17 +73,17 @@ const MeetUniFiVideoPlayer = ({
73
73
  }).then(res => res.default)
74
74
  }
75
75
  });
76
- const latestEpisode = react.useMemo(() => {
76
+ const latestEpisode = React.useMemo(() => {
77
77
  return episodes.sort((a, b) => b.episode - a.episode).sort((a, b) => b.season - a.season)[0];
78
78
  }, [episodes]);
79
- const [isVideoPlayerOpen, setIsVideoPlayerOpen] = react.useState(false);
80
- const [currentEpisode, setCurrentEpisode] = react.useState(latestEpisode);
81
- const previewVideoRef = react.useRef(null);
79
+ const [isVideoPlayerOpen, setIsVideoPlayerOpen] = React.useState(false);
80
+ const [currentEpisode, setCurrentEpisode] = React.useState(latestEpisode);
81
+ const previewVideoRef = React.useRef(null);
82
82
  const isDesktop = reactUse.useMedia(layout.BREAKPOINTS.TABLET_UP, false);
83
- const [inViewForPreview, setInViewForPreview] = react.useState(false);
84
- const videoRef = react.useRef(null);
85
- const [previewVideoBufferLoaded, setPreviewVideoBufferLoaded] = react.useState(false);
86
- react.useEffect(() => {
83
+ const [inViewForPreview, setInViewForPreview] = React.useState(false);
84
+ const videoRef = React.useRef(null);
85
+ const [previewVideoBufferLoaded, setPreviewVideoBufferLoaded] = React.useState(false);
86
+ React.useEffect(() => {
87
87
  let timer;
88
88
  if (isInView && !isVideoPlayerOpen) {
89
89
  timer = setTimeout(() => {
@@ -97,21 +97,21 @@ const MeetUniFiVideoPlayer = ({
97
97
  clearTimeout(timer);
98
98
  };
99
99
  }, [isInView, isVideoPlayerOpen]);
100
- react.useEffect(() => {
100
+ React.useEffect(() => {
101
101
  if (inViewForPreview && previewVideoBufferLoaded) {
102
102
  try {
103
103
  previewVideoRef.current?.play();
104
104
  } catch {}
105
105
  }
106
106
  }, [inViewForPreview, previewVideoBufferLoaded]);
107
- const handleEpisodeClick = react.useCallback(id2 => {
107
+ const handleEpisodeClick = React.useCallback(id2 => {
108
108
  const foundEpisode = episodes.find(e => e.id === id2);
109
109
  if (foundEpisode) {
110
110
  setCurrentEpisode(foundEpisode);
111
111
  setIsVideoPlayerOpen(true);
112
112
  }
113
113
  }, [episodes]);
114
- const handleEpisodeMouseOver = react.useCallback(() => {
114
+ const handleEpisodeMouseOver = React.useCallback(() => {
115
115
  const previewVideo = previewVideoRef.current;
116
116
  if (previewVideo) {
117
117
  try {
@@ -119,7 +119,7 @@ const MeetUniFiVideoPlayer = ({
119
119
  } catch {}
120
120
  }
121
121
  }, []);
122
- const handleEpisodeMouseOut = react.useCallback(async () => {
122
+ const handleEpisodeMouseOut = React.useCallback(async () => {
123
123
  const previewVideo = previewVideoRef.current;
124
124
  if (previewVideo) {
125
125
  try {
@@ -127,7 +127,7 @@ const MeetUniFiVideoPlayer = ({
127
127
  } catch {}
128
128
  }
129
129
  }, []);
130
- const episodeCards = react.useMemo(() => {
130
+ const episodeCards = React.useMemo(() => {
131
131
  const episodeCards2 = [];
132
132
  if (episodes.length > 1) {
133
133
  episodeCards2.push(...episodes.map(episode => {
@@ -161,11 +161,11 @@ const MeetUniFiVideoPlayer = ({
161
161
  }
162
162
  return episodeCards2;
163
163
  }, [comingSoon, episodes, handleEpisodeClick, handleEpisodeMouseOut, handleEpisodeMouseOver]);
164
- const activeEpisodeCardIndex = react.useMemo(() => {
164
+ const activeEpisodeCardIndex = React.useMemo(() => {
165
165
  return episodeCards.findIndex(card => card.id === currentEpisode.id);
166
166
  }, [currentEpisode.id, episodeCards]);
167
- const [backgroundDisabled, setBackgroundDisabled] = react.useState(false);
168
- react.useEffect(() => {
167
+ const [backgroundDisabled, setBackgroundDisabled] = React.useState(false);
168
+ React.useEffect(() => {
169
169
  if (isVideoPlayerOpen) {
170
170
  setBackgroundDisabled(true);
171
171
  return;
@@ -178,7 +178,7 @@ const MeetUniFiVideoPlayer = ({
178
178
  }
179
179
  setBackgroundDisabled(false);
180
180
  }, [inViewForPreview, isVideoPlayerOpen, previewVideoBufferLoaded]);
181
- const heading = react.useMemo(() => {
181
+ const heading = React.useMemo(() => {
182
182
  if (flipTitle) {
183
183
  return {
184
184
  episodeTitle: title,
@@ -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 MicrositeFeatureProgressBar = require('../MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.js');
6
6
  var MicrositeColumnFeatureProgressBar_styles = require('./MicrositeColumnFeatureProgressBar.styles.js');
7
7
  "use strict";
@@ -17,7 +17,7 @@ const MicrositeColumnFeatureProgressBar = ({
17
17
  children: [/* @__PURE__ */jsxRuntime.jsx(MicrositeColumnFeatureProgressBar_styles.BlockTitle, {
18
18
  children: block.title
19
19
  }), /* @__PURE__ */jsxRuntime.jsx(MicrositeColumnFeatureProgressBar_styles.BlockFeatures, {
20
- children: block.features.map((feature, index2) => /* @__PURE__ */react.createElement(MicrositeFeatureProgressBar.MicrositeFeatureProgressBar, {
20
+ children: block.features.map((feature, index2) => /* @__PURE__ */React.createElement(MicrositeFeatureProgressBar.MicrositeFeatureProgressBar, {
21
21
  ...feature,
22
22
  key: index2
23
23
  }))
@@ -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 asset = require('../../utils/asset.js');
6
6
  require('../CustomImage/index.js');
7
7
  require('./assets/check-blue.svg.js');
@@ -31,7 +31,7 @@ const MicrositeFeatureChecklist = ({
31
31
  cta,
32
32
  motif
33
33
  }) => {
34
- const divider = react.useMemo(() => asset.imageSrc(motif === "dark" ? dividerDark__default["default"] : dividerLight__default["default"]), [motif]);
34
+ const divider = React.useMemo(() => asset.imageSrc(motif === "dark" ? dividerDark__default["default"] : dividerLight__default["default"]), [motif]);
35
35
  return /* @__PURE__ */jsxRuntime.jsxs(MicrositeFeatureChecklist_styles.Container, {
36
36
  motif,
37
37
  children: [/* @__PURE__ */jsxRuntime.jsxs(MicrositeFeatureChecklist_styles.Titles, {
@@ -72,7 +72,7 @@ const FeatureGridItem = ({
72
72
  description,
73
73
  motif
74
74
  }) => {
75
- const check = react.useMemo(() => asset.imageSrc(motif === "dark" ? checkBlue__default["default"] : checkGray__default["default"]), [motif]);
75
+ const check = React.useMemo(() => asset.imageSrc(motif === "dark" ? checkBlue__default["default"] : checkGray__default["default"]), [motif]);
76
76
  return /* @__PURE__ */jsxRuntime.jsxs(MicrositeFeatureChecklist_styles.GridItemContainer, {
77
77
  motif,
78
78
  children: [/* @__PURE__ */jsxRuntime.jsx(MicrositeFeatureChecklist_styles.GridItemCheckbox, {
@@ -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 MicrositeFeatureProgressBar_styles = require('./MicrositeFeatureProgressBar.styles.js');
6
6
  var MicrositeFeatureProgressBar_types = require('./MicrositeFeatureProgressBar.types.js');
7
7
  "use strict";
@@ -21,8 +21,8 @@ const MicrositeFeatureProgressBar = ({
21
21
  className,
22
22
  type = MicrositeFeatureProgressBar_types.MicrositeFeatureProgressBarType.DEFAULT
23
23
  }) => {
24
- const partitionedProgress = react.useMemo(() => Math.min(Math.max(barValue, 0), max), [barValue, max]);
25
- const mobilePartitionedProgress = react.useMemo(() => Math.min(Math.max(tabletBar?.value ?? 0, 0), tabletBar?.max ?? max), [tabletBar?.value, tabletBar?.max, max]);
24
+ const partitionedProgress = React.useMemo(() => Math.min(Math.max(barValue, 0), max), [barValue, max]);
25
+ const mobilePartitionedProgress = React.useMemo(() => Math.min(Math.max(tabletBar?.value ?? 0, 0), tabletBar?.max ?? max), [tabletBar?.value, tabletBar?.max, max]);
26
26
  return /* @__PURE__ */jsxRuntime.jsxs(MicrositeFeatureProgressBar_styles.Container, {
27
27
  $small: type === MicrositeFeatureProgressBar_types.MicrositeFeatureProgressBarType.COLUMN,
28
28
  className,
@@ -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('../../contexts/MicrositeMenuContext/index.js');
6
6
  require('./components/HeaderContent/index.js');
7
7
  var context = require('../../contexts/MicrositeMenuContext/context.js');
@@ -15,9 +15,9 @@ const MicrositeHeader = ({
15
15
  const {
16
16
  menu
17
17
  } = context.useMicrositeMenu();
18
- const firstLevelItems = react.useMemo(() => menu.items, [menu.items]);
19
- const firstLevelActiveItem = react.useMemo(() => firstLevelItems?.find(item => item.active), [firstLevelItems]);
20
- const secondLevelItems = react.useMemo(() => firstLevelActiveItem?.variant !== "dropdown" ? firstLevelActiveItem?.items : void 0, [firstLevelActiveItem]);
18
+ const firstLevelItems = React.useMemo(() => menu.items, [menu.items]);
19
+ const firstLevelActiveItem = React.useMemo(() => firstLevelItems?.find(item => item.active), [firstLevelItems]);
20
+ const secondLevelItems = React.useMemo(() => firstLevelActiveItem?.variant !== "dropdown" ? firstLevelActiveItem?.items : void 0, [firstLevelActiveItem]);
21
21
  return /* @__PURE__ */jsxRuntime.jsx(HeaderContent.HeaderContent, {
22
22
  menu,
23
23
  motif,
@@ -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/zoomOut.svg.js');
6
6
  require('../../../../constants/icons/generic/index.js');
7
7
  require('../../../../contexts/MicrositeMenuContext/index.js');
@@ -34,9 +34,9 @@ const DropdownMenu = ({
34
34
  const {
35
35
  language
36
36
  } = context.useMicrositeMenu();
37
- const [activeItemId, setActiveItemId] = react.useState();
38
- const activeItem = react.useMemo(() => items?.find(item => item.id === activeItemId), [activeItemId, items]);
39
- react.useEffect(() => {
37
+ const [activeItemId, setActiveItemId] = React.useState();
38
+ const activeItem = React.useMemo(() => items?.find(item => item.id === activeItemId), [activeItemId, items]);
39
+ React.useEffect(() => {
40
40
  setActiveItemId(items?.[0]?.id);
41
41
  }, [items]);
42
42
  const {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
- var react = require('react');
4
+ var React = require('react');
5
5
  var reactUse = require('react-use');
6
6
  require('../../../../constants/icons/index.js');
7
7
  require('../../../../constants/icons/header/index.js');
@@ -74,9 +74,9 @@ const HeaderContent = ({
74
74
  account
75
75
  }) => {
76
76
  const isMobile = reactUse.useMedia(layout.BREAKPOINTS.TABLET_AND_DOWN, false);
77
- const wrapperRef = react.useRef(null);
78
- const [hasWhiteBackground, setHasWhiteBackground] = react.useState(false);
79
- const [showSiteMap, setShowSiteMap] = react.useState(false);
77
+ const wrapperRef = React.useRef(null);
78
+ const [hasWhiteBackground, setHasWhiteBackground] = React.useState(false);
79
+ const [showSiteMap, setShowSiteMap] = React.useState(false);
80
80
  const {
81
81
  activeModal,
82
82
  setActiveModal
@@ -90,8 +90,8 @@ const HeaderContent = ({
90
90
  const {
91
91
  formatMessage
92
92
  } = translations.useMicrositeMenuTranslations(language);
93
- const [selectedMenu, setSelectedMenu] = react.useState(null);
94
- const hasDarkText = react.useMemo(() => {
93
+ const [selectedMenu, setSelectedMenu] = React.useState(null);
94
+ const hasDarkText = React.useMemo(() => {
95
95
  if (motif === LIGHT_KEY) {
96
96
  return true;
97
97
  }
@@ -106,13 +106,13 @@ const HeaderContent = ({
106
106
  }) => !!active);
107
107
  return activeChildElement?.hasDarkText ?? false;
108
108
  }, [menu, motif]);
109
- const theme = react.useMemo(() => {
109
+ const theme = React.useMemo(() => {
110
110
  if (hasDarkText) {
111
111
  return "DarkText" /* DarkText */;
112
112
  }
113
113
  return hasWhiteBackground || !!selectedMenu ? "DarkText" /* DarkText */ : "LightText" /* LightText */;
114
114
  }, [hasWhiteBackground, selectedMenu, hasDarkText]);
115
- react.useEffect(() => {
115
+ React.useEffect(() => {
116
116
  setSelectedMenu(null);
117
117
  if (!wrapperRef?.current) {
118
118
  return;
@@ -125,10 +125,10 @@ const HeaderContent = ({
125
125
  observer.disconnect();
126
126
  };
127
127
  }, []);
128
- const handleModalClose = react.useCallback(() => {
128
+ const handleModalClose = React.useCallback(() => {
129
129
  setActiveModal(null);
130
130
  }, [setActiveModal]);
131
- const handleModalOpen = react.useCallback((e, id) => {
131
+ const handleModalOpen = React.useCallback((e, id) => {
132
132
  e.stopPropagation();
133
133
  if (activeModal !== id) {
134
134
  onModalOpen?.();
@@ -153,16 +153,16 @@ const HeaderContent = ({
153
153
  setSelectedMenu(null);
154
154
  setShowSiteMap(false);
155
155
  };
156
- const handleHamburgerClick = react.useCallback(e => {
156
+ const handleHamburgerClick = React.useCallback(e => {
157
157
  setHasWhiteBackground(!hasWhiteBackground);
158
158
  handleModalOpen(e, types.ModalId.MobileMenu);
159
159
  }, [handleModalOpen, hasWhiteBackground]);
160
- react.useEffect(() => {
160
+ React.useEffect(() => {
161
161
  if (isMobile) {
162
162
  setHasWhiteBackground(true);
163
163
  }
164
164
  }, [isMobile]);
165
- react.useEffect(() => {
165
+ React.useEffect(() => {
166
166
  if (activeModal === types.ModalId.MobileMenu) {
167
167
  document.body.style.overflow = "hidden";
168
168
  } else {
@@ -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/fullScreenExit.svg.js');
6
6
  require('../../../../constants/icons/header/index.js');
7
7
  require('../../../../contexts/MicrositeMenuContext/index.js');
@@ -38,7 +38,7 @@ const SiteMap = ({
38
38
  const {
39
39
  formatMessage
40
40
  } = translations.useMicrositeMenuTranslations(language);
41
- react.useEffect(() => {
41
+ React.useEffect(() => {
42
42
  document.body.style.overflow = "hidden";
43
43
  return () => {
44
44
  document.body.style.overflow = "unset";
@@ -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('../../../../contexts/MenuContext/index.js');
6
6
  require('../../../../contexts/MicrositeMenuContext/index.js');
7
7
  var translations = require('../../../../contexts/MicrositeMenuContext/translations.js');
@@ -30,13 +30,13 @@ const SiteMapColumns = ({
30
30
  const {
31
31
  createSiteUrl
32
32
  } = context$1.useMenu();
33
- const [isSitemapExpanded, setIsSitemapExpanded] = react.useState(true);
34
- const [activeHoverItemId, setActiveHoverItemId] = react.useState(null);
35
- const siteMapRef = react.useRef(null);
36
- const childCardRefs = react.useRef({});
37
- const childSubCardRefs = react.useRef({});
38
- const [childCardBranchHeights, setChildCardBranchHeights] = react.useState(/* @__PURE__ */new Map());
39
- const recalculateBranchHeights = react.useCallback(() => {
33
+ const [isSitemapExpanded, setIsSitemapExpanded] = React.useState(true);
34
+ const [activeHoverItemId, setActiveHoverItemId] = React.useState(null);
35
+ const siteMapRef = React.useRef(null);
36
+ const childCardRefs = React.useRef({});
37
+ const childSubCardRefs = React.useRef({});
38
+ const [childCardBranchHeights, setChildCardBranchHeights] = React.useState(/* @__PURE__ */new Map());
39
+ const recalculateBranchHeights = React.useCallback(() => {
40
40
  const heights = /* @__PURE__ */new Map();
41
41
  Object.entries(childCardRefs.current).forEach(([key, value]) => {
42
42
  if (value?.offsetParent) {
@@ -50,7 +50,7 @@ const SiteMapColumns = ({
50
50
  });
51
51
  setChildCardBranchHeights(heights);
52
52
  }, []);
53
- const childBranchLineHeight = react.useMemo(() => Math.max(...Array.from(childCardBranchHeights.values())), [childCardBranchHeights]);
53
+ const childBranchLineHeight = React.useMemo(() => Math.max(...Array.from(childCardBranchHeights.values())), [childCardBranchHeights]);
54
54
  const getHeight = element => {
55
55
  const parentOffsetTop = element?.offsetParent?.getBoundingClientRect()?.top ?? 0;
56
56
  return element.getBoundingClientRect().top - parentOffsetTop + 20 + element.clientHeight / 2;
@@ -68,7 +68,7 @@ const SiteMapColumns = ({
68
68
  id: subId
69
69
  }) => subId === activeHoverItemId));
70
70
  };
71
- react.useEffect(() => {
71
+ React.useEffect(() => {
72
72
  recalculateBranchHeights();
73
73
  window.addEventListener("resize", recalculateBranchHeights);
74
74
  return () => {
@@ -103,7 +103,7 @@ const SiteMapColumns = ({
103
103
  children: items?.map(item => /* @__PURE__ */jsxRuntime.jsxs(SiteMapColumns_styles.Column, {
104
104
  children: [(item?.items ?? []).filter(({
105
105
  isOverview
106
- }) => !isOverview).map(subItem => /* @__PURE__ */jsxRuntime.jsxs(react.Fragment, {
106
+ }) => !isOverview).map(subItem => /* @__PURE__ */jsxRuntime.jsxs(React.Fragment, {
107
107
  children: [/* @__PURE__ */jsxRuntime.jsxs(SiteMapColumns_styles.ChildCard, {
108
108
  ref: ref => childCardRefs.current[subItem.id] = ref,
109
109
  onMouseEnter: () => setActiveHoverItemId(subItem.id),
@@ -139,13 +139,13 @@ const SiteMapColumns = ({
139
139
  width: "20",
140
140
  height: childBranchLineHeight,
141
141
  $height: childBranchLineHeight,
142
- children: [item.items?.map(subItem => /* @__PURE__ */jsxRuntime.jsxs(react.Fragment, {
142
+ children: [item.items?.map(subItem => /* @__PURE__ */jsxRuntime.jsxs(React.Fragment, {
143
143
  children: [/* @__PURE__ */jsxRuntime.jsx("path", {
144
144
  d: `M 1,0 V ${(childCardBranchHeights.get(subItem.id) ?? 0) - 9} a 9,9 0 0 0 9,9 H 8`,
145
145
  stroke: "#e7e7e7",
146
146
  strokeWidth: "1",
147
147
  fill: "none"
148
- }), subItem?.items?.map(item2 => /* @__PURE__ */jsxRuntime.jsx(react.Fragment, {
148
+ }), subItem?.items?.map(item2 => /* @__PURE__ */jsxRuntime.jsx(React.Fragment, {
149
149
  children: /* @__PURE__ */jsxRuntime.jsx("path", {
150
150
  d: `M 1,0 V ${(childCardBranchHeights.get(item2.id) ?? 0) - 9} a 9,9 0 0 0 9,9 H 20`,
151
151
  stroke: "#e7e7e7",
@@ -153,7 +153,7 @@ const SiteMapColumns = ({
153
153
  fill: "none"
154
154
  })
155
155
  }, `${item2.id}-sub-line-background`))]
156
- }, `${subItem.id}-background`)), item.items?.map(subItem => /* @__PURE__ */jsxRuntime.jsxs(react.Fragment, {
156
+ }, `${subItem.id}-background`)), item.items?.map(subItem => /* @__PURE__ */jsxRuntime.jsxs(React.Fragment, {
157
157
  children: [/* @__PURE__ */jsxRuntime.jsx("path", {
158
158
  d: `M 1,0 V ${(childCardBranchHeights.get(subItem.id) ?? 0) - 9} a 9,9 0 0 0 9,9 H 8`,
159
159
  stroke: "#3A95FF",
@@ -164,7 +164,7 @@ const SiteMapColumns = ({
164
164
  opacity: activeHoverItemId === subItem.id ? 1 : 0,
165
165
  zIndex: 1e3
166
166
  }
167
- }), subItem?.items?.map(item2 => /* @__PURE__ */jsxRuntime.jsx(react.Fragment, {
167
+ }), subItem?.items?.map(item2 => /* @__PURE__ */jsxRuntime.jsx(React.Fragment, {
168
168
  children: /* @__PURE__ */jsxRuntime.jsx("path", {
169
169
  d: `M 1,0 V ${(childCardBranchHeights.get(item2.id) ?? 0) - 9} a 9,9 0 0 0 9,9 H 20`,
170
170
  stroke: "#3A95FF",