@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
  require('../../assets/icons/cart.svg.js');
6
6
  require('../../assets/icons/cartEmpty.svg.js');
7
7
  require('../StyleableSvgImage/index.js');
@@ -24,7 +24,7 @@ const CartIcon = ({
24
24
  height = 20,
25
25
  motif = "light"
26
26
  }) => {
27
- const cartQuantityText = react.useMemo(() => {
27
+ const cartQuantityText = React.useMemo(() => {
28
28
  if (itemCount && itemCount > 0) {
29
29
  return itemCount > 99 ? "99+" : itemCount.toString();
30
30
  }
@@ -1,18 +1,18 @@
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 Checkbox_styles = require('./Checkbox.styles.js');
6
6
  "use strict";
7
7
  const Checkbox = function Checkbox2({
8
8
  radio,
9
9
  ...props
10
10
  }) {
11
- const [isSsr, setIsSsr] = react.useState(true);
12
- react.useEffect(() => {
11
+ const [isSsr, setIsSsr] = React.useState(true);
12
+ React.useEffect(() => {
13
13
  setIsSsr(false);
14
14
  }, []);
15
- const onRadioClick = react.useCallback(e => {
15
+ const onRadioClick = React.useCallback(e => {
16
16
  const checked = Boolean(props.checked);
17
17
  if (checked) {
18
18
  props.onChange?.(
@@ -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
  var layout = require('../../constants/layout.js');
8
8
  require('../Accordion/index.js');
@@ -64,19 +64,19 @@ const CloserLookSection = function CloserLookSection2({
64
64
  bannerHtml
65
65
  }) {
66
66
  const isTablet = reactUse.useMedia(layout.BREAKPOINTS.TABLET_AND_DOWN, false);
67
- const wrapRef = react.useRef(null);
68
- const translations = react.useMemo(() => {
67
+ const wrapRef = React.useRef(null);
68
+ const translations = React.useMemo(() => {
69
69
  return merge__default["default"](CloserLookSection_constants.defaultCloserLookSectionTranslations, initialTranslations);
70
70
  }, [initialTranslations]);
71
- const [activeTabId, setActiveTabId] = react.useState();
72
- const [activeFaqSection, setActiveFaqSection] = react.useState();
73
- react.useEffect(() => {
71
+ const [activeTabId, setActiveTabId] = React.useState();
72
+ const [activeFaqSection, setActiveFaqSection] = React.useState();
73
+ React.useEffect(() => {
74
74
  onTabChange?.(activeTabId);
75
75
  }, [activeTabId, onTabChange]);
76
- const parsedCompareVariants = react.useMemo(() => {
76
+ const parsedCompareVariants = React.useMemo(() => {
77
77
  return ProductCompare_utils.parseProductCompareVariants(productCompareProps?.variants ?? []);
78
78
  }, [productCompareProps?.variants]);
79
- const tabs = react.useMemo(() => {
79
+ const tabs = React.useMemo(() => {
80
80
  const assetIsNotVideoOnTablet = asset => !isTablet || !asset.isVideo;
81
81
  const items = [glanceAssets.length ? {
82
82
  id: "Glance" /* Glance */,
@@ -117,14 +117,14 @@ const CloserLookSection = function CloserLookSection2({
117
117
  } : null];
118
118
  return items.filter(tab => !!tab);
119
119
  }, [glanceAssets.length, photosAssets, translations.tabs.glance, translations.tabs.product, translations.tabs.deployment, translations.tabs.inTheBox, translations.tabs.buildFeatures, translations.tabs.performanceImages, translations.tabs.compare, translations.tabs.installationTutorial, translations.tabs.capacityCalculator, translations.tabs.recommendedAddons, translations.tabs.faq, deploymentAssets.length, inTheBoxAssets.length, buildFeatureAssets.length, performanceAssets.length, parsedCompareVariants.length, installationAssets, capacityCalculator, recommendedAddonsProps?.products.length, faq?.items.length, isTablet]);
120
- react.useEffect(() => {
120
+ React.useEffect(() => {
121
121
  for (const tab of tabs) {
122
122
  setActiveTabId(tab.id);
123
123
  break;
124
124
  }
125
125
  }, [tabs]);
126
126
  const location = reactUse.useLocation();
127
- react.useEffect(() => {
127
+ React.useEffect(() => {
128
128
  const wrapEl = wrapRef.current;
129
129
  if (!wrapEl || !location.hash) return;
130
130
  const locationHash = location.hash.includes("faq") ? "#faq" : location.hash;
@@ -144,7 +144,7 @@ const CloserLookSection = function CloserLookSection2({
144
144
  }, 1e3);
145
145
  }, 800);
146
146
  }, [location, location.hash, tabs]);
147
- const handleGalleryModalToggle = react.useCallback((tabId, src) => {
147
+ const handleGalleryModalToggle = React.useCallback((tabId, src) => {
148
148
  onGalleryModalToggle?.(tabId, src);
149
149
  }, [onGalleryModalToggle]);
150
150
  if (!tabs.length) {
@@ -2,7 +2,7 @@
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
4
  var merge = require('lodash/merge');
5
- var react = require('react');
5
+ var React = require('react');
6
6
  require('../../CustomImage/index.js');
7
7
  require('../../ProductCard/index.js');
8
8
  require('../../ProductCardPopup/index.js');
@@ -24,12 +24,12 @@ const RecommendedAddons = ({
24
24
  products,
25
25
  activePopupProduct
26
26
  }) => {
27
- const translations = react.useMemo(() => {
27
+ const translations = React.useMemo(() => {
28
28
  return merge__default["default"](RecommendedAddons_constants.defaultRecommendedAddonsTranslations, initialTranslations);
29
29
  }, [initialTranslations]);
30
- const [popupProduct, setPopupProduct] = react.useState(activePopupProduct);
31
- const isPopupOpen = react.useMemo(() => !!activePopupProduct, [activePopupProduct]);
32
- react.useEffect(() => {
30
+ const [popupProduct, setPopupProduct] = React.useState(activePopupProduct);
31
+ const isPopupOpen = React.useMemo(() => !!activePopupProduct, [activePopupProduct]);
32
+ React.useEffect(() => {
33
33
  if (activePopupProduct !== void 0) {
34
34
  setPopupProduct(activePopupProduct);
35
35
  }
@@ -1,10 +1,10 @@
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 Container_styles = require('./Container.styles.js');
6
6
  "use strict";
7
- const Container = react.memo(react.forwardRef(function Container2({
7
+ const Container = React.memo(React.forwardRef(function Container2({
8
8
  children,
9
9
  fullHeight,
10
10
  ...rest
@@ -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 reactDom = require('react-dom');
6
6
  var reactUse = require('react-use');
7
7
  require('../../assets/icons/fallbackImage.svg.js');
@@ -71,19 +71,19 @@ const CustomImage = function CustomImage2({
71
71
  canFullscreen,
72
72
  onFullscreenChange
73
73
  }) {
74
- const [loading, setLoading] = react.useState(
74
+ const [loading, setLoading] = React.useState(
75
75
  // Set as loading by default, handle not loading in the effect
76
76
  true);
77
- const [error, setError] = react.useState(false);
78
- const [isFullscreen, setIsFullscreen] = react.useState(false);
77
+ const [error, setError] = React.useState(false);
78
+ const [isFullscreen, setIsFullscreen] = React.useState(false);
79
79
  reactUse.useLockBodyScroll(isFullscreen);
80
- react.useEffect(() => {
80
+ React.useEffect(() => {
81
81
  if (canFullscreen && onFullscreenChange) {
82
82
  onFullscreenChange(isFullscreen);
83
83
  }
84
84
  }, [canFullscreen, isFullscreen, onFullscreenChange]);
85
- const wrapRef = react.useRef(null);
86
- react.useEffect(() => {
85
+ const wrapRef = React.useRef(null);
86
+ React.useEffect(() => {
87
87
  if (!wrapRef.current) return;
88
88
  const imageEl = wrapRef.current.querySelector("img");
89
89
  if (!imageEl) return;
@@ -91,25 +91,25 @@ const CustomImage = function CustomImage2({
91
91
  setLoading(loadingInitial);
92
92
  setError(false);
93
93
  }, []);
94
- const handleOnError = react.useCallback(() => {
94
+ const handleOnError = React.useCallback(() => {
95
95
  setError(true);
96
96
  }, []);
97
- const handleOnLoadingComplete = react.useCallback(() => {
97
+ const handleOnLoadingComplete = React.useCallback(() => {
98
98
  setLoading(false);
99
99
  setError(false);
100
100
  }, []);
101
- const handleOnLoadComplete = react.useCallback(event => {
101
+ const handleOnLoadComplete = React.useCallback(event => {
102
102
  if (!event?.currentTarget?.src || event.currentTarget.src === asset2?.src) {
103
103
  setLoading(false);
104
104
  setError(false);
105
105
  }
106
106
  }, [asset2?.src]);
107
- const handleFullscreenClick = react.useCallback(() => {
107
+ const handleFullscreenClick = React.useCallback(() => {
108
108
  if (canFullscreen && asset2 && !error && !loading && !isFullscreen) {
109
109
  setIsFullscreen(true);
110
110
  }
111
111
  }, [asset2, canFullscreen, error, isFullscreen, loading]);
112
- react.useEffect(() => {
112
+ React.useEffect(() => {
113
113
  if (!canFullscreen) {
114
114
  return;
115
115
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
4
  var Tooltip = require('@ubnt/ui-components/Tooltip');
5
- var react = require('react');
5
+ var React = require('react');
6
6
  var reactUse = require('react-use');
7
7
  var styled = require('styled-components');
8
8
  var layout = require('../../constants/layout.js');
@@ -78,7 +78,7 @@ const ExploreProduct = ({
78
78
  }).then(res => res.default)
79
79
  }
80
80
  });
81
- const wide = react.useMemo(() => {
81
+ const wide = React.useMemo(() => {
82
82
  const features = section.product.featureValues;
83
83
  switch (features.length) {
84
84
  case 1:
@@ -96,20 +96,20 @@ const ExploreProduct = ({
96
96
  return false;
97
97
  }
98
98
  }, [section.product.featureValues]);
99
- const storePath = react.useMemo(() => {
99
+ const storePath = React.useMemo(() => {
100
100
  if (typeof section.product.storePath === "function") {
101
101
  return storeId ? section.product.storePath(storeId) : void 0;
102
102
  }
103
103
  return section.product.storePath;
104
104
  }, [section.product, storeId]);
105
- const image = react.useMemo(() => {
105
+ const image = React.useMemo(() => {
106
106
  const base = section.product.image;
107
107
  if (isMobile) {
108
108
  return section.product.mobileImage ?? base;
109
109
  }
110
110
  return base;
111
111
  }, [isMobile, section.product.image, section.product.mobileImage]);
112
- const button = react.useMemo(() => {
112
+ const button = React.useMemo(() => {
113
113
  if (section.product.isComingSoon) {
114
114
  return /* @__PURE__ */jsxRuntime.jsxs(Explore_styles.ComingSoonButtonWrap, {
115
115
  children: [/* @__PURE__ */jsxRuntime.jsx(Explore_styles.ComingSoonButton, {
@@ -1,14 +1,14 @@
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('../../StyleableSvgImage/index.js');
6
6
  require('../AllFeaturesButton/index.js');
7
7
  var Features_styles = require('./Features.styles.js');
8
8
  var StyleableSvgImage = require('../../StyleableSvgImage/StyleableSvgImage.js');
9
9
  var AllFeaturesButton = require('../AllFeaturesButton/AllFeaturesButton.js');
10
10
  "use strict";
11
- const Features = react.forwardRef(function Features2({
11
+ const Features = React.forwardRef(function Features2({
12
12
  className,
13
13
  items,
14
14
  type,
@@ -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('../../hooks/index.js');
@@ -14,7 +14,7 @@ var FeaturesSection_styles = require('./FeaturesSection.styles.js');
14
14
  var useLockBodyScrollCustom = require('../../hooks/useLockBodyScrollCustom.js');
15
15
  var Container = require('../Container/Container.js');
16
16
  var StyleableSvgImage = require('../StyleableSvgImage/StyleableSvgImage.js');
17
- var CloseSvg = require("../../assets/close2.svg");
17
+ var CloseSvg = require("../../assets/close3.svg");
18
18
  function _interopDefault(e) {
19
19
  return e && e.__esModule ? e : {
20
20
  default: e
@@ -50,25 +50,25 @@ const FeaturesSection = ({
50
50
  overlay
51
51
  }) => {
52
52
  const isMobile = reactUse.useMedia(layout.BREAKPOINTS.MOBILE_AND_DOWN, false);
53
- const animFrameRef = react.useRef(0);
54
- const cacheRef = react.useRef({
53
+ const animFrameRef = React.useRef(0);
54
+ const cacheRef = React.useRef({
55
55
  isInFullView: false,
56
56
  motif: null,
57
57
  currentIndex: null
58
58
  });
59
- const sectionRef = react.useRef(null);
60
- const metaWrapRef = react.useRef(null);
61
- const featuresWrapRef = react.useRef(null);
62
- const featuresRef = react.useRef(null);
63
- const videosWrapRef = react.useRef(null);
64
- const videoRefs = react.useRef([]);
65
- const featuresType = react.useMemo(() => {
59
+ const sectionRef = React.useRef(null);
60
+ const metaWrapRef = React.useRef(null);
61
+ const featuresWrapRef = React.useRef(null);
62
+ const featuresRef = React.useRef(null);
63
+ const videosWrapRef = React.useRef(null);
64
+ const videoRefs = React.useRef([]);
65
+ const featuresType = React.useMemo(() => {
66
66
  if (featuresTypeInitial === "vertical" && isMobile) {
67
67
  return "horizontal";
68
68
  }
69
69
  return featuresTypeInitial;
70
70
  }, [featuresTypeInitial, isMobile]);
71
- const segments = react.useMemo(() => {
71
+ const segments = React.useMemo(() => {
72
72
  return segmentsRaw.map((segmentRaw, i) => {
73
73
  const duration2 = segmentRaw.video.duration;
74
74
  const from = (() => {
@@ -90,13 +90,13 @@ const FeaturesSection = ({
90
90
  };
91
91
  });
92
92
  }, [segmentsRaw]);
93
- const featureItems = react.useMemo(() => {
93
+ const featureItems = React.useMemo(() => {
94
94
  return segments.map(item => item.feature, []);
95
95
  }, [segments]);
96
- const duration = react.useMemo(() => {
96
+ const duration = React.useMemo(() => {
97
97
  return segments.reduce((total, item) => total + item.duration, 0);
98
98
  }, [segments]);
99
- const getCurrentTimeSegment = react.useCallback(currentTime => {
99
+ const getCurrentTimeSegment = React.useCallback(currentTime => {
100
100
  let index;
101
101
  if (currentTime === 0) {
102
102
  index = 0;
@@ -107,7 +107,7 @@ const FeaturesSection = ({
107
107
  }
108
108
  return [segments[index], index];
109
109
  }, [duration, segments]);
110
- const getFeatureElSize = react.useCallback(index => {
110
+ const getFeatureElSize = React.useCallback(index => {
111
111
  const featuresEl = featuresRef.current;
112
112
  if (!featuresEl) {
113
113
  return 0;
@@ -115,7 +115,7 @@ const FeaturesSection = ({
115
115
  const featureEl = featuresEl.children[index];
116
116
  return featureEl?.[featuresType === "vertical" ? "offsetHeight" : "offsetWidth"] ?? 0;
117
117
  }, [featuresType]);
118
- const getFeatureTransformRanges = react.useCallback(featuresSize => {
118
+ const getFeatureTransformRanges = React.useCallback(featuresSize => {
119
119
  const ranges = [];
120
120
  for (const [i, currentSegment] of segments.entries()) {
121
121
  const isFirst = i === 0;
@@ -134,9 +134,9 @@ const FeaturesSection = ({
134
134
  }
135
135
  return ranges;
136
136
  }, [duration, getFeatureElSize, segments]);
137
- const [activeSegment, setActiveSegment] = react.useState(segments[0]);
138
- const [activeMotif, setActiveMotif] = react.useState();
139
- const draw = react.useCallback(() => {
137
+ const [activeSegment, setActiveSegment] = React.useState(segments[0]);
138
+ const [activeMotif, setActiveMotif] = React.useState();
139
+ const draw = React.useCallback(() => {
140
140
  const reDraw = () => {
141
141
  animFrameRef.current = window.requestAnimationFrame(draw);
142
142
  };
@@ -276,7 +276,7 @@ const FeaturesSection = ({
276
276
  }
277
277
  reDraw();
278
278
  }, [duration, playback, startEarly, startEarlyFactor, getCurrentTimeSegment, floatInVideo, segments, featuresType, onExitAbove, onExitBelow, getFeatureTransformRanges]);
279
- react.useEffect(() => {
279
+ React.useEffect(() => {
280
280
  if (segments.length) {
281
281
  animFrameRef.current = window.requestAnimationFrame(draw);
282
282
  } else {
@@ -286,7 +286,7 @@ const FeaturesSection = ({
286
286
  window.cancelAnimationFrame(animFrameRef.current);
287
287
  };
288
288
  }, [draw, segments.length]);
289
- react.useEffect(() => {
289
+ React.useEffect(() => {
290
290
  if (activeMotif) {
291
291
  onMotifChange?.(activeMotif);
292
292
  }
@@ -295,7 +295,7 @@ const FeaturesSection = ({
295
295
  const {
296
296
  heading,
297
297
  subHeading
298
- } = react.useMemo(() => {
298
+ } = React.useMemo(() => {
299
299
  return {
300
300
  heading: activeSegment?.heading ?? headingInitial,
301
301
  subHeading: activeSegment?.subHeading ?? subHeadingInitial
@@ -12,7 +12,7 @@ import { WrapOuter, OverlayWrap, OverlayClose, Wrap, MetaWrap, SubHeading, Headi
12
12
  import { useLockBodyScrollCustom } from '../../hooks/useLockBodyScrollCustom.mjs';
13
13
  import { Container } from '../Container/Container.mjs';
14
14
  import { StyleableSvgImage } from '../StyleableSvgImage/StyleableSvgImage.mjs';
15
- import CloseSvg__default from "../../assets/close2.svg";
15
+ import CloseSvg__default from "../../assets/close3.svg";
16
16
  "use strict";
17
17
  const FEATURES_DEFAULT_PLAYBACK = 500;
18
18
  const parseTime = time => parseFloat(time.toFixed(3));
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var CloseSvg = require("../../../assets/close2.svg");
6
+ var CloseSvg = require("../../../assets/close3.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -1,3 +1,3 @@
1
- export * from "../../../assets/close2.svg";
2
- export { default } from "../../../assets/close2.svg";
1
+ export * from "../../../assets/close3.svg";
2
+ export { default } from "../../../assets/close3.svg";
3
3
  //# sourceMappingURL=close.svg.mjs.map
@@ -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 mapping = require('../../contexts/MenuContext/mapping.js');
7
7
  require('../../hooks/index.js');
@@ -89,7 +89,7 @@ const Footer = ({
89
89
  }).then(res => res.default)
90
90
  }
91
91
  });
92
- const hiddenFields = react.useMemo(() => {
92
+ const hiddenFields = React.useMemo(() => {
93
93
  return {
94
94
  // Merge fields are based on Mailchimp settings
95
95
  u: "bc856e62a9254399365d0277b",
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var react = require('react');
3
+ var React = require('react');
4
4
  require('../../../assets/socialMedia/facebook.svg.js');
5
5
  require('../../../assets/socialMedia/instagram.svg.js');
6
6
  require('../../../assets/socialMedia/x.svg.js');
@@ -174,12 +174,12 @@ const useFooterContent = () => {
174
174
  }).then(res => res.default)
175
175
  }
176
176
  });
177
- const urls = react.useMemo(() => {
177
+ const urls = React.useMemo(() => {
178
178
  return {
179
179
  termsAndConditions: getRegionalLink(TOC_LINKS, globalStoreId)
180
180
  };
181
181
  }, [globalStoreId]);
182
- const footerContent = react.useMemo(() => ({
182
+ const footerContent = React.useMemo(() => ({
183
183
  company: {
184
184
  header: {
185
185
  id: "company" /* Company */,
@@ -289,7 +289,7 @@ const useFooterContent = () => {
289
289
  }].filter(typeGuards.isNonNullish)
290
290
  }
291
291
  }), [context$1, createSiteUrl, formatMessage, globalStoreId]);
292
- const socialContent = react.useMemo(() => ({
292
+ const socialContent = React.useMemo(() => ({
293
293
  header: {
294
294
  id: "social" /* Social */,
295
295
  label: formatMessage("footer.header.social")
@@ -320,7 +320,7 @@ const useFooterContent = () => {
320
320
  target: "_blank"
321
321
  }].filter(typeGuards.isNonNullish)
322
322
  }), [formatMessage, globalStoreId]);
323
- const termsContent = react.useMemo(() => ({
323
+ const termsContent = React.useMemo(() => ({
324
324
  header: {
325
325
  id: "terms" /* Terms */,
326
326
  label: formatMessage("footer.header.terms")
@@ -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 Gallery_types = require('./Gallery.types.js');
6
6
  var utils = require('./utils.js');
7
7
  "use strict";
@@ -19,31 +19,31 @@ const defaultGalleryContextState = {
19
19
  resetTransitionState: () => {},
20
20
  currentImageLabel: "0/0"
21
21
  };
22
- const GalleryContext = react.createContext(defaultGalleryContextState);
22
+ const GalleryContext = React.createContext(defaultGalleryContextState);
23
23
  const GalleryControlsProvider = ({
24
24
  children,
25
25
  fade
26
26
  }) => {
27
- const [total, setTotal] = react.useState(0);
28
- const [controlsType, setControlsType] = react.useState(Gallery_types.GalleryControls.Inside);
29
- const showGalleryControls = react.useMemo(() => total > 1, [total]);
30
- const [visibleSlide, setVisibleSlideRaw] = react.useState(defaultGalleryContextState.visibleSlide);
31
- const [withTransition, setWithTransition] = react.useState(defaultGalleryContextState.withTransition);
32
- const [controlsDisabled, setControlsDisabled] = react.useState(false);
33
- const resetTransitionState = react.useCallback(() => {
27
+ const [total, setTotal] = React.useState(0);
28
+ const [controlsType, setControlsType] = React.useState(Gallery_types.GalleryControls.Inside);
29
+ const showGalleryControls = React.useMemo(() => total > 1, [total]);
30
+ const [visibleSlide, setVisibleSlideRaw] = React.useState(defaultGalleryContextState.visibleSlide);
31
+ const [withTransition, setWithTransition] = React.useState(defaultGalleryContextState.withTransition);
32
+ const [controlsDisabled, setControlsDisabled] = React.useState(false);
33
+ const resetTransitionState = React.useCallback(() => {
34
34
  setWithTransition(true);
35
35
  setControlsDisabled(false);
36
36
  }, []);
37
- const reset = react.useCallback(newTotal => {
37
+ const reset = React.useCallback(newTotal => {
38
38
  setTotal(newTotal);
39
39
  setVisibleSlideRaw(!fade && newTotal > 1 ? 1 : 0);
40
40
  resetTransitionState();
41
41
  }, [resetTransitionState, fade]);
42
- const setVisibleSlide = react.useCallback(nextVisibleState => {
42
+ const setVisibleSlide = React.useCallback(nextVisibleState => {
43
43
  setControlsDisabled(true);
44
44
  setVisibleSlideRaw(nextVisibleState);
45
45
  }, []);
46
- react.useEffect(() => {
46
+ React.useEffect(() => {
47
47
  if (fade || controlsDisabled || total <= 1) {
48
48
  return;
49
49
  }
@@ -65,7 +65,7 @@ const GalleryControlsProvider = ({
65
65
  });
66
66
  }
67
67
  }, [visibleSlide, controlsDisabled, total]);
68
- const setPrevious = react.useCallback(() => {
68
+ const setPrevious = React.useCallback(() => {
69
69
  if (controlsDisabled) {
70
70
  return;
71
71
  }
@@ -75,7 +75,7 @@ const GalleryControlsProvider = ({
75
75
  setVisibleSlide(currVisibleSlide => currVisibleSlide - 1);
76
76
  }
77
77
  }, [controlsDisabled, setVisibleSlide, total, fade]);
78
- const setNext = react.useCallback(() => {
78
+ const setNext = React.useCallback(() => {
79
79
  if (controlsDisabled) {
80
80
  return;
81
81
  }
@@ -85,7 +85,7 @@ const GalleryControlsProvider = ({
85
85
  setVisibleSlide(currVisibleSlide => currVisibleSlide + 1);
86
86
  }
87
87
  }, [controlsDisabled, setVisibleSlide, total, fade]);
88
- const jumpToSlide = react.useCallback(index => {
88
+ const jumpToSlide = React.useCallback(index => {
89
89
  if (controlsDisabled) {
90
90
  return;
91
91
  }
@@ -98,7 +98,7 @@ const GalleryControlsProvider = ({
98
98
  resetTransitionState();
99
99
  });
100
100
  }, [controlsDisabled, fade, setVisibleSlide, resetTransitionState]);
101
- const currentImageLabel = react.useMemo(() => {
101
+ const currentImageLabel = React.useMemo(() => {
102
102
  const isAnimatable = total > 1;
103
103
  const totalNormalised = isAnimatable ? total - (fade ? 0 : 2) : 1;
104
104
  let normalisedIndex = visibleSlide;
@@ -135,7 +135,7 @@ const GalleryControlsProvider = ({
135
135
  children
136
136
  });
137
137
  };
138
- const useGalleryControls = () => react.useContext(GalleryContext);
138
+ const useGalleryControls = () => React.useContext(GalleryContext);
139
139
  exports.GalleryControlsProvider = GalleryControlsProvider;
140
140
  exports.useGalleryControls = useGalleryControls;
141
141
  //# sourceMappingURL=Gallery.context.js.map
@@ -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
  var Gallery_context = require('./Gallery.context.js');
@@ -26,7 +26,7 @@ const parseGalleryEntries = (entries, fade) => {
26
26
  slidesWithClones.push(slidesWithClones[1]);
27
27
  return slidesWithClones;
28
28
  };
29
- const Gallery = react.memo(function Gallery2({
29
+ const Gallery = React.memo(function Gallery2({
30
30
  controls,
31
31
  entries,
32
32
  parsed,
@@ -46,25 +46,25 @@ const Gallery = react.memo(function Gallery2({
46
46
  visibleSlide,
47
47
  resetTransitionState
48
48
  } = Gallery_context.useGalleryControls();
49
- const galleryRef = react.useRef(null);
50
- const entriesParsed = react.useMemo(() => {
49
+ const galleryRef = React.useRef(null);
50
+ const entriesParsed = React.useMemo(() => {
51
51
  return parsed ? entries : parseGalleryEntries(entries, fade);
52
52
  }, [entries, fade, parsed]);
53
- react.useEffect(() => {
53
+ React.useEffect(() => {
54
54
  setControlsType(controls);
55
55
  }, [controls, setControlsType]);
56
- react.useEffect(() => {
56
+ React.useEffect(() => {
57
57
  reset(entriesParsed.length);
58
58
  }, [entriesParsed, reset]);
59
- const activeEntry = react.useMemo(() => entriesParsed[visibleSlide], [entriesParsed, visibleSlide]);
60
- const couldBeNext = react.useCallback(index => {
59
+ const activeEntry = React.useMemo(() => entriesParsed[visibleSlide], [entriesParsed, visibleSlide]);
60
+ const couldBeNext = React.useCallback(index => {
61
61
  const potentialNextRightSlideIndex = visibleSlide + 1 > entriesParsed.length - 1 ? 0 : visibleSlide + 1;
62
62
  const potentialNextLeftSlideIndex = visibleSlide - 1 < 0 ? entriesParsed.length - 1 : visibleSlide - 1;
63
63
  return !!(potentialNextRightSlideIndex === index || potentialNextLeftSlideIndex === index);
64
64
  }, [entriesParsed.length, visibleSlide]);
65
65
  const isTabletUp = reactUse.useMedia(layout.BREAKPOINTS.TABLET_UP, false);
66
66
  const hoveredRaw = reactUse.useHoverDirty(galleryRef, isTabletUp);
67
- const [hovered, setHovered] = react.useState(false);
67
+ const [hovered, setHovered] = React.useState(false);
68
68
  reactUse.useDebounce(() => {
69
69
  setHovered(hoveredRaw);
70
70
  }, 10, [hoveredRaw]);