@ubnt/store.core 9.24.0-alpha.13 → 9.24.0-alpha.2

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 (346) hide show
  1. package/CHANGELOG.md +0 -49
  2. package/lib/assets/attention.svg +5 -5
  3. package/lib/assets/attention2.svg +5 -5
  4. package/lib/assets/clients.svg +2 -9
  5. package/lib/assets/clients2.svg +10 -0
  6. package/lib/assets/cloudKeyG2.png +0 -0
  7. package/lib/assets/envr.png +0 -0
  8. package/lib/assets/keyFeatures/clients.svg +3 -0
  9. package/lib/assets/keyFeatures/{clients_v2.svg.js → clients.svg.js} +2 -2
  10. package/lib/assets/keyFeatures/clients.svg.js.map +1 -0
  11. package/lib/assets/keyFeatures/clients.svg.mjs +3 -0
  12. package/lib/assets/keyFeatures/clients.svg.mjs.map +1 -0
  13. package/lib/assets/keyFeatures/phased_array.svg +3 -0
  14. package/lib/assets/keyFeatures/{phased_array_v2.svg.js → phased_array.svg.js} +2 -2
  15. package/lib/assets/keyFeatures/phased_array.svg.js.map +1 -0
  16. package/lib/assets/keyFeatures/phased_array.svg.mjs +3 -0
  17. package/lib/assets/keyFeatures/phased_array.svg.mjs.map +1 -0
  18. package/lib/assets/minus4.svg +8 -8
  19. package/lib/assets/minus5.svg +8 -8
  20. package/lib/assets/mobileRouting.svg +2 -2
  21. package/lib/assets/nvr.png +0 -0
  22. package/lib/assets/nvrPro.png +0 -0
  23. package/lib/assets/phased_array.svg +3 -0
  24. package/lib/assets/plus5.svg +9 -9
  25. package/lib/assets/plus6.svg +9 -9
  26. package/lib/assets/udmPro.jpg +0 -0
  27. package/lib/assets/udmPro2.jpg +0 -0
  28. package/lib/assets/udmProMax.jpg +0 -0
  29. package/lib/assets/udmProMax2.jpg +0 -0
  30. package/lib/assets/udmProSpecial.jpg +0 -0
  31. package/lib/assets/udmProSpecial2.jpg +0 -0
  32. package/lib/components/Gallery/Gallery.context.js +5 -3
  33. package/lib/components/Gallery/Gallery.context.js.map +1 -1
  34. package/lib/components/Gallery/Gallery.context.mjs +5 -3
  35. package/lib/components/Gallery/Gallery.context.mjs.map +1 -1
  36. package/lib/components/Header/AccountFrame/Mobile/Mobile.js +1 -1
  37. package/lib/components/Header/AccountFrame/Mobile/Mobile.js.map +1 -1
  38. package/lib/components/Header/AccountFrame/Mobile/Mobile.mjs +1 -1
  39. package/lib/components/Header/AccountFrame/Mobile/Mobile.mjs.map +1 -1
  40. package/lib/components/Header/Navigation/Carousel/Carousel.js +2 -2
  41. package/lib/components/Header/Navigation/Carousel/Carousel.js.map +1 -1
  42. package/lib/components/Header/Navigation/Carousel/Carousel.mjs +2 -2
  43. package/lib/components/Header/Navigation/Carousel/Carousel.mjs.map +1 -1
  44. package/lib/components/Hero/Hero.js +1 -1
  45. package/lib/components/Hero/Hero.js.map +1 -1
  46. package/lib/components/Hero/Hero.mjs +1 -1
  47. package/lib/components/Hero/Hero.mjs.map +1 -1
  48. package/lib/components/LandingPage/LandingPage.js +1 -1
  49. package/lib/components/LandingPage/LandingPage.js.map +1 -1
  50. package/lib/components/LandingPage/LandingPage.mjs +1 -1
  51. package/lib/components/LandingPage/LandingPage.mjs.map +1 -1
  52. package/lib/components/LearnMoreLink/LearnMoreLink.js +1 -1
  53. package/lib/components/LearnMoreLink/LearnMoreLink.js.map +1 -1
  54. package/lib/components/LearnMoreLink/LearnMoreLink.mjs +1 -1
  55. package/lib/components/LearnMoreLink/LearnMoreLink.mjs.map +1 -1
  56. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.d.ts +1 -1
  57. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.js.map +1 -1
  58. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.mjs.map +1 -1
  59. package/lib/components/Microsites/MicrositeProductPage.d.ts +1 -1
  60. package/lib/components/Microsites/MicrositeProductPage.js.map +1 -1
  61. package/lib/components/Microsites/MicrositeProductPage.mjs.map +1 -1
  62. package/lib/components/ModelCompareV3/ModelCompareV3.types.d.ts +1 -2
  63. package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js +8 -4
  64. package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js.map +1 -1
  65. package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.mjs +8 -4
  66. package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.mjs.map +1 -1
  67. package/lib/components/ModelCompareV3/StickyGrid/StickyGridOverlay.d.ts +2 -1
  68. package/lib/components/ModelCompareV3/StickyGrid/StickyGridOverlay.js.map +1 -1
  69. package/lib/components/ModelCompareV3/StickyGrid/StickyGridOverlay.mjs.map +1 -1
  70. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
  71. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
  72. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
  73. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
  74. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
  75. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
  76. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
  77. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
  78. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
  79. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
  80. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
  81. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
  82. package/lib/components/ModelCompareV3/assets/clients.svg.js +1 -1
  83. package/lib/components/ModelCompareV3/assets/clients.svg.mjs +2 -2
  84. package/lib/components/ModelCompareV3/assets/{VideoRecorders/cloudKeyG2Nvr.jpg.js → cloudKeyG2.png.js} +2 -2
  85. package/lib/components/ModelCompareV3/assets/cloudKeyG2.png.js.map +1 -0
  86. package/lib/components/ModelCompareV3/assets/cloudKeyG2.png.mjs +3 -0
  87. package/lib/components/ModelCompareV3/assets/cloudKeyG2.png.mjs.map +1 -0
  88. package/lib/components/ModelCompareV3/assets/{VideoRecorders/nvr.jpg.js → envr.png.js} +2 -2
  89. package/lib/components/ModelCompareV3/assets/envr.png.js.map +1 -0
  90. package/lib/components/ModelCompareV3/assets/envr.png.mjs +3 -0
  91. package/lib/components/ModelCompareV3/assets/envr.png.mjs.map +1 -0
  92. package/lib/components/ModelCompareV3/assets/{VideoRecorders/envr.jpg.js → nvr.png.js} +2 -2
  93. package/lib/components/ModelCompareV3/assets/nvr.png.js.map +1 -0
  94. package/lib/components/ModelCompareV3/assets/nvr.png.mjs +3 -0
  95. package/lib/components/ModelCompareV3/assets/nvr.png.mjs.map +1 -0
  96. package/lib/components/ModelCompareV3/assets/{VideoRecorders/nvrPro.jpg.js → nvrPro.png.js} +2 -2
  97. package/lib/components/ModelCompareV3/assets/nvrPro.png.js.map +1 -0
  98. package/lib/components/ModelCompareV3/assets/nvrPro.png.mjs +3 -0
  99. package/lib/components/ModelCompareV3/assets/nvrPro.png.mjs.map +1 -0
  100. package/lib/components/ModelCompareV3/data/BuildingBridge.js +3 -1
  101. package/lib/components/ModelCompareV3/data/BuildingBridge.js.map +1 -1
  102. package/lib/components/ModelCompareV3/data/BuildingBridge.mjs +3 -1
  103. package/lib/components/ModelCompareV3/data/BuildingBridge.mjs.map +1 -1
  104. package/lib/components/ModelCompareV3/data/CloudGateways.js +9 -9
  105. package/lib/components/ModelCompareV3/data/CloudGateways.mjs +6 -6
  106. package/lib/components/ModelCompareV3/data/VideoRecorders.js +6 -8
  107. package/lib/components/ModelCompareV3/data/VideoRecorders.js.map +1 -1
  108. package/lib/components/ModelCompareV3/data/VideoRecorders.mjs +6 -8
  109. package/lib/components/ModelCompareV3/data/VideoRecorders.mjs.map +1 -1
  110. package/lib/components/ModelCompareV3/data/index.d.ts +18 -19
  111. package/lib/components/ModelCompareV3/data/index.js +36 -39
  112. package/lib/components/ModelCompareV3/data/index.js.map +1 -1
  113. package/lib/components/ModelCompareV3/data/index.mjs +36 -39
  114. package/lib/components/ModelCompareV3/data/index.mjs.map +1 -1
  115. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js +3 -5
  116. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js.map +1 -1
  117. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.mjs +3 -5
  118. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.mjs.map +1 -1
  119. package/lib/components/ModelCompareV3/data/products/cloudKeyG2PlusNvr.js +12 -14
  120. package/lib/components/ModelCompareV3/data/products/cloudKeyG2PlusNvr.js.map +1 -1
  121. package/lib/components/ModelCompareV3/data/products/cloudKeyG2PlusNvr.mjs +12 -14
  122. package/lib/components/ModelCompareV3/data/products/cloudKeyG2PlusNvr.mjs.map +1 -1
  123. package/lib/components/ModelCompareV3/data/products/envr.js +8 -10
  124. package/lib/components/ModelCompareV3/data/products/envr.js.map +1 -1
  125. package/lib/components/ModelCompareV3/data/products/envr.mjs +8 -10
  126. package/lib/components/ModelCompareV3/data/products/envr.mjs.map +1 -1
  127. package/lib/components/ModelCompareV3/data/products/nvr.js +9 -12
  128. package/lib/components/ModelCompareV3/data/products/nvr.js.map +1 -1
  129. package/lib/components/ModelCompareV3/data/products/nvr.mjs +9 -12
  130. package/lib/components/ModelCompareV3/data/products/nvr.mjs.map +1 -1
  131. package/lib/components/ModelCompareV3/data/products/nvrPro.js +9 -11
  132. package/lib/components/ModelCompareV3/data/products/nvrPro.js.map +1 -1
  133. package/lib/components/ModelCompareV3/data/products/nvrPro.mjs +9 -11
  134. package/lib/components/ModelCompareV3/data/products/nvrPro.mjs.map +1 -1
  135. package/lib/components/ModelCompareV3/data/products/udmPro.js +1 -1
  136. package/lib/components/ModelCompareV3/data/products/udmPro.mjs +1 -1
  137. package/lib/components/ModelCompareV3/data/products/udmProMax.js +1 -1
  138. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +1 -1
  139. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +1 -1
  140. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +1 -1
  141. package/lib/components/ModelCompareV3/data/products/umrIndustrial.js +2 -1
  142. package/lib/components/ModelCompareV3/data/products/umrIndustrial.js.map +1 -1
  143. package/lib/components/ModelCompareV3/data/products/umrIndustrial.mjs +2 -1
  144. package/lib/components/ModelCompareV3/data/products/umrIndustrial.mjs.map +1 -1
  145. package/lib/components/ModelCompareV3/data/products/umrUltra.js +14 -6
  146. package/lib/components/ModelCompareV3/data/products/umrUltra.js.map +1 -1
  147. package/lib/components/ModelCompareV3/data/products/umrUltra.mjs +14 -6
  148. package/lib/components/ModelCompareV3/data/products/umrUltra.mjs.map +1 -1
  149. package/lib/components/ModelCompareV3/data/properties/clientDevices.js +1 -1
  150. package/lib/components/ModelCompareV3/data/properties/clientDevices.mjs +1 -1
  151. package/lib/components/ModelCompareV3/data/properties/connectedDevices.js +1 -1
  152. package/lib/components/ModelCompareV3/data/properties/connectedDevices.mjs +1 -1
  153. package/lib/components/ModelCompareV3/data/properties/index.d.ts +0 -1
  154. package/lib/components/ModelCompareV3/data/properties/index.js +0 -2
  155. package/lib/components/ModelCompareV3/data/properties/index.js.map +1 -1
  156. package/lib/components/ModelCompareV3/data/properties/index.mjs +0 -1
  157. package/lib/components/ModelCompareV3/data/properties/index.mjs.map +1 -1
  158. package/lib/components/ModelCompareV3/data/properties/managedCameras.js +2 -2
  159. package/lib/components/ModelCompareV3/data/properties/managedCameras.js.map +1 -1
  160. package/lib/components/ModelCompareV3/data/properties/managedCameras.mjs +2 -2
  161. package/lib/components/ModelCompareV3/data/properties/managedCameras.mjs.map +1 -1
  162. package/lib/components/ModelCompareV3/translations/ar.json.js +4 -13
  163. package/lib/components/ModelCompareV3/translations/ar.json.js.map +1 -1
  164. package/lib/components/ModelCompareV3/translations/ar.json.mjs +4 -13
  165. package/lib/components/ModelCompareV3/translations/ar.json.mjs.map +1 -1
  166. package/lib/components/ModelCompareV3/translations/de.json.js +3 -12
  167. package/lib/components/ModelCompareV3/translations/de.json.js.map +1 -1
  168. package/lib/components/ModelCompareV3/translations/de.json.mjs +3 -12
  169. package/lib/components/ModelCompareV3/translations/de.json.mjs.map +1 -1
  170. package/lib/components/ModelCompareV3/translations/el.json.js +2 -11
  171. package/lib/components/ModelCompareV3/translations/el.json.js.map +1 -1
  172. package/lib/components/ModelCompareV3/translations/el.json.mjs +2 -11
  173. package/lib/components/ModelCompareV3/translations/el.json.mjs.map +1 -1
  174. package/lib/components/ModelCompareV3/translations/en.json.js +11 -13
  175. package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
  176. package/lib/components/ModelCompareV3/translations/en.json.mjs +11 -13
  177. package/lib/components/ModelCompareV3/translations/en.json.mjs.map +1 -1
  178. package/lib/components/ModelCompareV3/translations/es.json.js +3 -12
  179. package/lib/components/ModelCompareV3/translations/es.json.js.map +1 -1
  180. package/lib/components/ModelCompareV3/translations/es.json.mjs +3 -12
  181. package/lib/components/ModelCompareV3/translations/es.json.mjs.map +1 -1
  182. package/lib/components/ModelCompareV3/translations/fr.json.js +3 -12
  183. package/lib/components/ModelCompareV3/translations/fr.json.js.map +1 -1
  184. package/lib/components/ModelCompareV3/translations/fr.json.mjs +3 -12
  185. package/lib/components/ModelCompareV3/translations/fr.json.mjs.map +1 -1
  186. package/lib/components/ModelCompareV3/translations/it.json.js +3 -12
  187. package/lib/components/ModelCompareV3/translations/it.json.js.map +1 -1
  188. package/lib/components/ModelCompareV3/translations/it.json.mjs +3 -12
  189. package/lib/components/ModelCompareV3/translations/it.json.mjs.map +1 -1
  190. package/lib/components/ModelCompareV3/translations/ja.json.js +3 -12
  191. package/lib/components/ModelCompareV3/translations/ja.json.js.map +1 -1
  192. package/lib/components/ModelCompareV3/translations/ja.json.mjs +3 -12
  193. package/lib/components/ModelCompareV3/translations/ja.json.mjs.map +1 -1
  194. package/lib/components/ModelCompareV3/translations/pt-BR.json.js +2 -11
  195. package/lib/components/ModelCompareV3/translations/pt-BR.json.js.map +1 -1
  196. package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs +2 -11
  197. package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs.map +1 -1
  198. package/lib/components/ModelCompareV3/translations/useModelCompareTranslation.d.ts +2 -2
  199. package/lib/components/ModelCompareV3/translations/zh-Hans.json.js +3 -12
  200. package/lib/components/ModelCompareV3/translations/zh-Hans.json.js.map +1 -1
  201. package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs +3 -12
  202. package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs.map +1 -1
  203. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js +4 -13
  204. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js.map +1 -1
  205. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs +4 -13
  206. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs.map +1 -1
  207. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js +1 -1
  208. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js.map +1 -1
  209. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.mjs +1 -1
  210. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.mjs.map +1 -1
  211. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +1 -1
  212. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
  213. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +2 -2
  214. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
  215. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
  216. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
  217. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
  218. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
  219. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
  220. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
  221. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +1 -1
  222. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
  223. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
  224. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
  225. package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.constants.js +56 -56
  226. package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.constants.js.map +1 -1
  227. package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.constants.mjs +56 -56
  228. package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.constants.mjs.map +1 -1
  229. package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.js.map +1 -1
  230. package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.mjs.map +1 -1
  231. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +3 -4
  232. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js.map +1 -1
  233. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +4 -5
  234. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs.map +1 -1
  235. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
  236. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
  237. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
  238. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
  239. package/lib/components/VariantSelector/Variant/Variant.js +5 -5
  240. package/lib/components/VariantSelector/Variant/Variant.js.map +1 -1
  241. package/lib/components/VariantSelector/Variant/Variant.mjs +5 -5
  242. package/lib/components/VariantSelector/Variant/Variant.mjs.map +1 -1
  243. package/lib/constants/icons/menu/index.d.ts +0 -2
  244. package/lib/constants/icons/menu/index.js +0 -18
  245. package/lib/constants/icons/menu/index.js.map +1 -1
  246. package/lib/constants/icons/menu/index.mjs +0 -4
  247. package/lib/constants/icons/menu/index.mjs.map +1 -1
  248. package/lib/constants/icons/options/colors/black.svg.js +5 -5
  249. package/lib/constants/icons/options/colors/index.js +3 -3
  250. package/lib/constants/icons/options/styles/black.svg.js +5 -5
  251. package/lib/constants/icons/options/styles/index.js +3 -3
  252. package/lib/constants/keyFeatureIcons.d.ts +0 -1
  253. package/lib/constants/keyFeatureIcons.js +5 -8
  254. package/lib/constants/keyFeatureIcons.js.map +1 -1
  255. package/lib/constants/keyFeatureIcons.mjs +5 -8
  256. package/lib/constants/keyFeatureIcons.mjs.map +1 -1
  257. package/lib/constants/optionIcons.js +6 -6
  258. package/lib/constants/optionIcons.mjs +4 -4
  259. package/lib/constants/shopify/keyFeatureIcons.js +12 -16
  260. package/lib/constants/shopify/keyFeatureIcons.js.map +1 -1
  261. package/lib/constants/shopify/keyFeatureIcons.mjs +12 -15
  262. package/lib/constants/shopify/keyFeatureIcons.mjs.map +1 -1
  263. package/lib/contexts/MenuContext/context.js +0 -1
  264. package/lib/contexts/MenuContext/context.js.map +1 -1
  265. package/lib/contexts/MenuContext/context.mjs +0 -1
  266. package/lib/contexts/MenuContext/context.mjs.map +1 -1
  267. package/lib/contexts/MenuContext/mapping.d.ts +4 -4
  268. package/lib/contexts/MenuContext/mapping.js +7 -30
  269. package/lib/contexts/MenuContext/mapping.js.map +1 -1
  270. package/lib/contexts/MenuContext/mapping.mjs +7 -28
  271. package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
  272. package/lib/contexts/MenuContext/utils.d.ts +2 -1
  273. package/lib/contexts/MenuContext/utils.js +1 -1
  274. package/lib/contexts/MenuContext/utils.js.map +1 -1
  275. package/lib/contexts/MenuContext/utils.mjs +1 -1
  276. package/lib/contexts/MenuContext/utils.mjs.map +1 -1
  277. package/lib/utils/money/constants.d.ts +0 -7
  278. package/lib/utils/money/constants.js +1 -9
  279. package/lib/utils/money/constants.js.map +1 -1
  280. package/lib/utils/money/constants.mjs +2 -10
  281. package/lib/utils/money/constants.mjs.map +1 -1
  282. package/lib/utils/money/tax.private.d.ts +8 -0
  283. package/lib/utils/money/tax.private.js +14 -5
  284. package/lib/utils/money/tax.private.js.map +1 -1
  285. package/lib/utils/money/tax.private.mjs +16 -8
  286. package/lib/utils/money/tax.private.mjs.map +1 -1
  287. package/lib/utils/validations/postalCodeSuperRefinement.js +1 -1
  288. package/lib/utils/validations/postalCodeSuperRefinement.js.map +1 -1
  289. package/lib/utils/validations/postalCodeSuperRefinement.mjs +1 -1
  290. package/lib/utils/validations/postalCodeSuperRefinement.mjs.map +1 -1
  291. package/lib/utils/wattage.js +1 -1
  292. package/lib/utils/wattage.js.map +1 -1
  293. package/lib/utils/wattage.mjs +1 -1
  294. package/lib/utils/wattage.mjs.map +1 -1
  295. package/package.json +1 -1
  296. package/lib/assets/bridging.svg +0 -3
  297. package/lib/assets/clients_v2.svg +0 -3
  298. package/lib/assets/cloudKeyG2Nvr.jpg +0 -0
  299. package/lib/assets/deviceBridge.svg +0 -3
  300. package/lib/assets/envr.jpg +0 -0
  301. package/lib/assets/keyFeatures/clients_v2.svg +0 -3
  302. package/lib/assets/keyFeatures/clients_v2.svg.js.map +0 -1
  303. package/lib/assets/keyFeatures/clients_v2.svg.mjs +0 -3
  304. package/lib/assets/keyFeatures/clients_v2.svg.mjs.map +0 -1
  305. package/lib/assets/keyFeatures/phased_array_v2.svg +0 -3
  306. package/lib/assets/keyFeatures/phased_array_v2.svg.js.map +0 -1
  307. package/lib/assets/keyFeatures/phased_array_v2.svg.mjs +0 -3
  308. package/lib/assets/keyFeatures/phased_array_v2.svg.mjs.map +0 -1
  309. package/lib/assets/keyFeatures/poe_plus_plus_plus_outlined.svg +0 -6
  310. package/lib/assets/keyFeatures/poe_plus_plus_plus_outlined.svg.js +0 -27
  311. package/lib/assets/keyFeatures/poe_plus_plus_plus_outlined.svg.js.map +0 -1
  312. package/lib/assets/keyFeatures/poe_plus_plus_plus_outlined.svg.mjs +0 -3
  313. package/lib/assets/keyFeatures/poe_plus_plus_plus_outlined.svg.mjs.map +0 -1
  314. package/lib/assets/nvr.jpg +0 -0
  315. package/lib/assets/nvrPro.jpg +0 -0
  316. package/lib/assets/poe_plus_plus_plus_outlined.svg +0 -6
  317. package/lib/components/ModelCompareV3/assets/VideoRecorders/cloudKeyG2Nvr.jpg.js.map +0 -1
  318. package/lib/components/ModelCompareV3/assets/VideoRecorders/cloudKeyG2Nvr.jpg.mjs +0 -3
  319. package/lib/components/ModelCompareV3/assets/VideoRecorders/cloudKeyG2Nvr.jpg.mjs.map +0 -1
  320. package/lib/components/ModelCompareV3/assets/VideoRecorders/envr.jpg.js.map +0 -1
  321. package/lib/components/ModelCompareV3/assets/VideoRecorders/envr.jpg.mjs +0 -3
  322. package/lib/components/ModelCompareV3/assets/VideoRecorders/envr.jpg.mjs.map +0 -1
  323. package/lib/components/ModelCompareV3/assets/VideoRecorders/nvr.jpg.js.map +0 -1
  324. package/lib/components/ModelCompareV3/assets/VideoRecorders/nvr.jpg.mjs +0 -3
  325. package/lib/components/ModelCompareV3/assets/VideoRecorders/nvr.jpg.mjs.map +0 -1
  326. package/lib/components/ModelCompareV3/assets/VideoRecorders/nvrPro.jpg.js.map +0 -1
  327. package/lib/components/ModelCompareV3/assets/VideoRecorders/nvrPro.jpg.mjs +0 -3
  328. package/lib/components/ModelCompareV3/assets/VideoRecorders/nvrPro.jpg.mjs.map +0 -1
  329. package/lib/components/ModelCompareV3/data/DeviceBridge.d.ts +0 -2
  330. package/lib/components/ModelCompareV3/data/DeviceBridge.js +0 -22
  331. package/lib/components/ModelCompareV3/data/DeviceBridge.js.map +0 -1
  332. package/lib/components/ModelCompareV3/data/DeviceBridge.mjs +0 -20
  333. package/lib/components/ModelCompareV3/data/DeviceBridge.mjs.map +0 -1
  334. package/lib/components/ModelCompareV3/data/properties/vantagePoint.d.ts +0 -2
  335. package/lib/components/ModelCompareV3/data/properties/vantagePoint.js +0 -18
  336. package/lib/components/ModelCompareV3/data/properties/vantagePoint.js.map +0 -1
  337. package/lib/components/ModelCompareV3/data/properties/vantagePoint.mjs +0 -10
  338. package/lib/components/ModelCompareV3/data/properties/vantagePoint.mjs.map +0 -1
  339. package/lib/constants/icons/menu/bridging.svg.js +0 -27
  340. package/lib/constants/icons/menu/bridging.svg.js.map +0 -1
  341. package/lib/constants/icons/menu/bridging.svg.mjs +0 -3
  342. package/lib/constants/icons/menu/bridging.svg.mjs.map +0 -1
  343. package/lib/constants/icons/menu/deviceBridge.svg.js +0 -27
  344. package/lib/constants/icons/menu/deviceBridge.svg.js.map +0 -1
  345. package/lib/constants/icons/menu/deviceBridge.svg.mjs +0 -3
  346. package/lib/constants/icons/menu/deviceBridge.svg.mjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -6,54 +6,9 @@
6
6
 
7
7
  ## Releases
8
8
 
9
- ### 9.24.0-alpha.13
10
-
11
- - [Feat] [MIC-436](https://ubiquiti.atlassian.net/browse/MIC-436) Update Video Recorders compare table data
12
-
13
- ### 9.24.0-alpha.12
14
-
15
- - [Feat] [MIC-436](https://ubiquiti.atlassian.net/browse/MIC-436) Update Video Recorders compare table data
16
-
17
- ### 9.24.0-alpha.11
18
-
19
- - [Feat] [MIC-435](https://ubiquiti.atlassian.net/browse/MIC-435) Reorganize Building Bridge page in ui.com
20
-
21
- ### 9.24.0-alpha.10
22
-
23
- - [Feat] [NEP-3799](https://ubiquiti.atlassian.net/browse/NEP-3799) Rename updated icons
24
-
25
- ### 9.24.0-alpha.9
26
-
27
- - [Feat] [NEP-3799](https://ubiquiti.atlassian.net/browse/NEP-3799) Add PoE+++ key feature icon and update 2 existing ones
28
-
29
- ### 9.24.0-alpha.8
30
-
31
- - [Feat] Tax Rounding change
32
-
33
- ### 9.24.0-alpha.7
34
-
35
- - [Feat] [MIC-430](https://ubiquiti.atlassian.net/browse/MIC-430) Update `UMR Ultra` compare content
36
-
37
- ### 9.24.0-alpha.6
38
-
39
- - [Feat] [MIC-430](https://ubiquiti.atlassian.net/browse/MIC-430) Update `UMR Ultra` compare content
40
-
41
- ### 9.24.0-alpha.5
42
-
43
- - [Feat] [MIC-430](https://ubiquiti.atlassian.net/browse/MIC-430) Update `UMR Ultra` compare content
44
-
45
- ### 9.24.0-alpha.4
46
-
47
- - [Feat] [MIC-430](https://ubiquiti.atlassian.net/browse/MIC-430) Add `UMR Ultra` to Model Compare
48
-
49
- ### 9.24.0-alpha.3
50
-
51
- - [Refactor] Refactor how we calculate tax to have control over rounding and precision!!! Will have output offsets by a up or down!
52
-
53
9
  ### 9.24.0-alpha.2
54
10
 
55
11
  - [Fix] [MIC-417](https://ubiquiti.atlassian.net/browse/MIC-417) Reserve height for images in subnavigation
56
- \
57
12
 
58
13
  ### 9.24.0-alpha.1
59
14
 
@@ -64,10 +19,6 @@
64
19
  - Upstream master branch
65
20
  - [Fix] [MIC-429](https://ubiquiti.atlassian.net/browse/MIC-429) Fix translations
66
21
 
67
- ### 9.24.0
68
-
69
- - [Feat] [MIC-430](https://ubiquiti.atlassian.net/browse/MIC-430) Add `UMR Ultra` to Model Compare
70
-
71
22
  ### 9.23.3
72
23
 
73
24
  - [Feat] [MIC-429](https://ubiquiti.atlassian.net/browse/MIC-429) Add `Gate Hub` to Model Compare
@@ -1,6 +1,6 @@
1
- <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <circle cx="9" cy="9" r="9" fill="#F7D55E"/>
3
- <path d="M9.73071 4.64062C9.40595 4.07813 8.59405 4.07812 8.26929 4.64062L4.37218 11.3906C4.04742 11.9531 4.45336 12.6562 5.10288 12.6562H12.8971C13.5466 12.6562 13.9526 11.9531 13.6278 11.3906L9.73071 4.64062Z" stroke="white" stroke-width="0.5625"/>
4
- <path d="M9.22274 9.12833L9.48295 7.30685C9.52494 7.01295 9.29688 6.75 9 6.75C8.70312 6.75 8.47506 7.01295 8.51705 7.30685L8.77726 9.12833C8.81406 9.3859 9.18594 9.3859 9.22274 9.12833Z" fill="white"/>
5
- <circle cx="9" cy="10.6875" r="0.5625" fill="#F7D55E"/>
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="8" cy="8" r="8" fill="#A4A7B5"/>
3
+ <path d="M12.1136 10.125L8.64952 4.125C8.36084 3.625 7.63916 3.625 7.35048 4.125L3.88638 10.125C3.5977 10.625 3.95855 11.25 4.5359 11.25H11.4641C12.0415 11.25 12.4023 10.625 12.1136 10.125Z" stroke="white" stroke-width="0.5"/>
4
+ <path d="M8.19799 8.11407L8.42929 6.49497C8.46661 6.23373 8.2639 6 8 6C7.7361 6 7.53339 6.23373 7.57071 6.49497L7.80201 8.11407C7.83472 8.34302 8.16528 8.34303 8.19799 8.11407Z" fill="white"/>
5
+ <circle cx="8" cy="9.5" r="0.5" fill="white"/>
6
6
  </svg>
@@ -1,6 +1,6 @@
1
- <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <circle cx="8" cy="8" r="8" fill="#A4A7B5"/>
3
- <path d="M12.1136 10.125L8.64952 4.125C8.36084 3.625 7.63916 3.625 7.35048 4.125L3.88638 10.125C3.5977 10.625 3.95855 11.25 4.5359 11.25H11.4641C12.0415 11.25 12.4023 10.625 12.1136 10.125Z" stroke="white" stroke-width="0.5"/>
4
- <path d="M8.19799 8.11407L8.42929 6.49497C8.46661 6.23373 8.2639 6 8 6C7.7361 6 7.53339 6.23373 7.57071 6.49497L7.80201 8.11407C7.83472 8.34302 8.16528 8.34303 8.19799 8.11407Z" fill="white"/>
5
- <circle cx="8" cy="9.5" r="0.5" fill="white"/>
1
+ <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="9" cy="9" r="9" fill="#F7D55E"/>
3
+ <path d="M9.73071 4.64062C9.40595 4.07813 8.59405 4.07812 8.26929 4.64062L4.37218 11.3906C4.04742 11.9531 4.45336 12.6562 5.10288 12.6562H12.8971C13.5466 12.6562 13.9526 11.9531 13.6278 11.3906L9.73071 4.64062Z" stroke="white" stroke-width="0.5625"/>
4
+ <path d="M9.22274 9.12833L9.48295 7.30685C9.52494 7.01295 9.29688 6.75 9 6.75C8.70312 6.75 8.47506 7.01295 8.51705 7.30685L8.77726 9.12833C8.81406 9.3859 9.18594 9.3859 9.22274 9.12833Z" fill="white"/>
5
+ <circle cx="9" cy="10.6875" r="0.5625" fill="#F7D55E"/>
6
6
  </svg>
@@ -1,10 +1,3 @@
1
- <svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g clip-path="url(#clip0_5903_35033)">
3
- <path fill-rule="evenodd" clip-rule="evenodd" d="M26.5508 6.7501C26.5508 5.83883 25.812 5.1001 24.9008 5.1001H5.10078C4.18951 5.1001 3.45078 5.83883 3.45078 6.7501V18.3001H5.10078V6.7501H24.9008V8.4001H26.5508V6.7501ZM28.2008 11.7001C28.2008 10.7888 27.462 10.0501 26.5508 10.0501H19.9508C19.0395 10.0501 18.3008 10.7888 18.3008 11.7001V13.3501H19.9508V11.7001H26.5508V23.2501H24.9008V24.9001H26.5508C27.462 24.9001 28.2008 24.1614 28.2008 23.2501V11.7001ZM16.6508 23.2501H21.6008V16.6501H16.6508V23.2501ZM21.6008 15.0001C22.5121 15.0001 23.2508 15.7388 23.2508 16.6501V23.2501C23.2508 24.1614 22.5121 24.9001 21.6008 24.9001H16.6508C15.7395 24.9001 15.0008 24.1614 15.0008 23.2501V16.6501C15.0008 15.7388 15.7395 15.0001 16.6508 15.0001H21.6008ZM3.03828 19.9501H13.3508V21.6001H3.45078C3.45078 22.5114 4.18951 23.2501 5.10078 23.2501H13.3508V24.9001H5.51328C3.46292 24.9001 1.80078 23.238 1.80078 21.1876C1.80078 20.5041 2.35483 19.9501 3.03828 19.9501Z" fill="#212124"/>
4
- </g>
5
- <defs>
6
- <clipPath id="clip0_5903_35033">
7
- <rect width="30" height="30" fill="white"/>
8
- </clipPath>
9
- </defs>
1
+ <svg width="22" height="23" viewBox="0 0 22 23" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M18.7002 6.26699C18.7002 5.65948 18.2077 5.16699 17.6002 5.16699H4.4002C3.79268 5.16699 3.3002 5.65948 3.3002 6.26699V13.967H4.4002V6.26699H17.6002V7.36699H18.7002V6.26699ZM19.8002 9.56699C19.8002 8.95948 19.3077 8.46699 18.7002 8.46699H14.3002C13.6927 8.46699 13.2002 8.95948 13.2002 9.56699V10.667H14.3002V9.56699H18.7002V17.267H17.6002V18.367H18.7002C19.3077 18.367 19.8002 17.8745 19.8002 17.267V9.56699ZM12.1002 17.267H15.4002V12.867H12.1002V17.267ZM15.4002 11.767C16.0077 11.767 16.5002 12.2595 16.5002 12.867V17.267C16.5002 17.8745 16.0077 18.367 15.4002 18.367H12.1002C11.4927 18.367 11.0002 17.8745 11.0002 17.267V12.867C11.0002 12.2595 11.4927 11.767 12.1002 11.767H15.4002ZM3.0252 15.067H9.90019V16.167H3.3002C3.3002 16.7745 3.79268 17.267 4.4002 17.267H9.90019V18.367H4.6752C3.30829 18.367 2.2002 17.2589 2.2002 15.892C2.2002 15.4364 2.56956 15.067 3.0252 15.067Z" fill="#838691"/>
10
3
  </svg>
@@ -0,0 +1,10 @@
1
+ <svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g clip-path="url(#clip0_5903_35033)">
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M26.5508 6.7501C26.5508 5.83883 25.812 5.1001 24.9008 5.1001H5.10078C4.18951 5.1001 3.45078 5.83883 3.45078 6.7501V18.3001H5.10078V6.7501H24.9008V8.4001H26.5508V6.7501ZM28.2008 11.7001C28.2008 10.7888 27.462 10.0501 26.5508 10.0501H19.9508C19.0395 10.0501 18.3008 10.7888 18.3008 11.7001V13.3501H19.9508V11.7001H26.5508V23.2501H24.9008V24.9001H26.5508C27.462 24.9001 28.2008 24.1614 28.2008 23.2501V11.7001ZM16.6508 23.2501H21.6008V16.6501H16.6508V23.2501ZM21.6008 15.0001C22.5121 15.0001 23.2508 15.7388 23.2508 16.6501V23.2501C23.2508 24.1614 22.5121 24.9001 21.6008 24.9001H16.6508C15.7395 24.9001 15.0008 24.1614 15.0008 23.2501V16.6501C15.0008 15.7388 15.7395 15.0001 16.6508 15.0001H21.6008ZM3.03828 19.9501H13.3508V21.6001H3.45078C3.45078 22.5114 4.18951 23.2501 5.10078 23.2501H13.3508V24.9001H5.51328C3.46292 24.9001 1.80078 23.238 1.80078 21.1876C1.80078 20.5041 2.35483 19.9501 3.03828 19.9501Z" fill="#212124"/>
4
+ </g>
5
+ <defs>
6
+ <clipPath id="clip0_5903_35033">
7
+ <rect width="30" height="30" fill="white"/>
8
+ </clipPath>
9
+ </defs>
10
+ </svg>
Binary file
Binary file
@@ -0,0 +1,3 @@
1
+ <svg width="22" height="23" viewBox="0 0 22 23" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M18.7002 6.26699C18.7002 5.65948 18.2077 5.16699 17.6002 5.16699H4.4002C3.79268 5.16699 3.3002 5.65948 3.3002 6.26699V13.967H4.4002V6.26699H17.6002V7.36699H18.7002V6.26699ZM19.8002 9.56699C19.8002 8.95948 19.3077 8.46699 18.7002 8.46699H14.3002C13.6927 8.46699 13.2002 8.95948 13.2002 9.56699V10.667H14.3002V9.56699H18.7002V17.267H17.6002V18.367H18.7002C19.3077 18.367 19.8002 17.8745 19.8002 17.267V9.56699ZM12.1002 17.267H15.4002V12.867H12.1002V17.267ZM15.4002 11.767C16.0077 11.767 16.5002 12.2595 16.5002 12.867V17.267C16.5002 17.8745 16.0077 18.367 15.4002 18.367H12.1002C11.4927 18.367 11.0002 17.8745 11.0002 17.267V12.867C11.0002 12.2595 11.4927 11.767 12.1002 11.767H15.4002ZM3.0252 15.067H9.90019V16.167H3.3002C3.3002 16.7745 3.79268 17.267 4.4002 17.267H9.90019V18.367H4.6752C3.30829 18.367 2.2002 17.2589 2.2002 15.892C2.2002 15.4364 2.56956 15.067 3.0252 15.067Z" fill="#838691"/>
3
+ </svg>
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var clients = require("../clients_v2.svg");
6
+ var clients = require("../clients.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -24,4 +24,4 @@ Object.keys(clients).forEach(function (k) {
24
24
  }
25
25
  });
26
26
  });
27
- //# sourceMappingURL=clients_v2.svg.js.map
27
+ //# sourceMappingURL=clients.svg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clients.svg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,3 @@
1
+ export * from "../clients.svg";
2
+ export { default } from "../clients.svg";
3
+ //# sourceMappingURL=clients.svg.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clients.svg.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,3 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M18.94 15.3999C19.2821 15.3999 19.5594 15.6685 19.5594 15.9999C19.5594 17.9881 17.8956 19.5999 15.8432 19.5999C15.5012 19.5999 15.2239 19.3313 15.2239 18.9999C15.2239 18.6685 15.5012 18.3999 15.8432 18.3999C17.2115 18.3999 18.3207 17.3254 18.3207 15.9999C18.3207 15.6685 18.598 15.3999 18.94 15.3999ZM0.97873 15.3999C1.32079 15.3999 1.59808 15.6685 1.59808 15.9999C1.59808 17.3254 2.70726 18.3999 4.0755 18.3999C4.41756 18.3999 4.69486 18.6685 4.69486 18.9999C4.69486 19.3313 4.41756 19.5999 4.0755 19.5999C2.02314 19.5999 0.359375 17.9881 0.359375 15.9999C0.359375 15.6685 0.63667 15.3999 0.97873 15.3999ZM15.8432 15.3999C16.1853 15.3999 16.4626 15.6685 16.4626 15.9999C16.4626 16.3313 16.1853 16.5999 15.8432 16.5999C15.5012 16.5999 15.2239 16.3313 15.2239 15.9999C15.2239 15.6685 15.5012 15.3999 15.8432 15.3999ZM4.0755 15.3999C4.41756 15.3999 4.69486 15.6685 4.69486 15.9999C4.69486 16.3313 4.41756 16.5999 4.0755 16.5999C3.73344 16.5999 3.45615 16.3313 3.45615 15.9999C3.45615 15.6685 3.73344 15.3999 4.0755 15.3999ZM9.6497 3.9999C13.0703 3.9999 15.8432 6.68619 15.8432 9.9999C15.8432 13.3136 13.0703 15.9999 9.6497 15.9999C6.2291 15.9999 3.45615 13.3136 3.45615 9.9999C3.45615 6.68619 6.2291 3.9999 9.6497 3.9999ZM9.6497 5.1999C6.91322 5.1999 4.69486 7.34894 4.69486 9.9999C4.69486 12.6509 6.91322 14.7999 9.6497 14.7999C12.3862 14.7999 14.6045 12.6509 14.6045 9.9999C14.6045 7.34894 12.3862 5.1999 9.6497 5.1999ZM9.6497 7.5999C11.0179 7.5999 12.1271 8.67442 12.1271 9.9999C12.1271 11.3254 11.0179 12.3999 9.6497 12.3999C8.28146 12.3999 7.17228 11.3254 7.17228 9.9999C7.17228 8.67442 8.28146 7.5999 9.6497 7.5999ZM9.6497 8.7999C8.96558 8.7999 8.41099 9.33716 8.41099 9.9999C8.41099 10.6626 8.96558 11.1999 9.6497 11.1999C10.3338 11.1999 10.8884 10.6626 10.8884 9.9999C10.8884 9.33716 10.3338 8.7999 9.6497 8.7999ZM15.8432 3.3999C16.1853 3.3999 16.4626 3.66853 16.4626 3.9999C16.4626 4.33127 16.1853 4.5999 15.8432 4.5999C15.5012 4.5999 15.2239 4.33127 15.2239 3.9999C15.2239 3.66853 15.5012 3.3999 15.8432 3.3999ZM15.8432 0.399902C17.8956 0.399902 19.5594 2.01168 19.5594 3.9999C19.5594 4.33127 19.2821 4.5999 18.94 4.5999C18.598 4.5999 18.3207 4.33127 18.3207 3.9999C18.3207 2.67442 17.2115 1.5999 15.8432 1.5999C15.5012 1.5999 15.2239 1.33127 15.2239 0.999902C15.2239 0.668532 15.5012 0.399902 15.8432 0.399902ZM4.0755 3.3999C4.41756 3.3999 4.69486 3.66853 4.69486 3.9999C4.69486 4.33127 4.41756 4.5999 4.0755 4.5999C3.73344 4.5999 3.45615 4.33127 3.45615 3.9999C3.45615 3.66853 3.73344 3.3999 4.0755 3.3999ZM4.0755 0.399902C4.41756 0.399902 4.69486 0.668532 4.69486 0.999902C4.69486 1.33127 4.41756 1.5999 4.0755 1.5999C2.70726 1.5999 1.59808 2.67442 1.59808 3.9999C1.59808 4.33127 1.32079 4.5999 0.97873 4.5999C0.63667 4.5999 0.359375 4.33127 0.359375 3.9999C0.359375 2.01168 2.02314 0.399902 4.0755 0.399902Z" fill="#212124"/>
3
+ </svg>
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var phased_array = require("../radio.svg");
6
+ var phased_array = require("../phased_array.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -24,4 +24,4 @@ Object.keys(phased_array).forEach(function (k) {
24
24
  }
25
25
  });
26
26
  });
27
- //# sourceMappingURL=phased_array_v2.svg.js.map
27
+ //# sourceMappingURL=phased_array.svg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phased_array.svg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,3 @@
1
+ export * from "../phased_array.svg";
2
+ export { default } from "../phased_array.svg";
3
+ //# sourceMappingURL=phased_array.svg.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phased_array.svg.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,15 +1,15 @@
1
- <svg width="11" height="10" viewBox="0 0 11 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <mask id="mask0_658_406" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="11" height="10">
3
- <g clip-path="url(#clip0_658_406)">
4
- <path d="M10.2546 4.35H0.587891V5.31667H10.2546V4.35Z" fill="#838691"/>
1
+ <svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_426_15898" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
3
+ <g clip-path="url(#clip0_426_15898)">
4
+ <path d="M5.16287 2.9397H0.697754V3.38621H5.16287V2.9397Z" fill="#838691"/>
5
5
  </g>
6
6
  </mask>
7
- <g mask="url(#mask0_658_406)">
8
- <rect x="0.587891" width="9.66667" height="9.66667" fill="#838691"/>
7
+ <g mask="url(#mask0_426_15898)">
8
+ <rect x="0.697754" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
9
9
  </g>
10
10
  <defs>
11
- <clipPath id="clip0_658_406">
12
- <rect width="9.66667" height="9.66667" fill="white" transform="translate(0.587891)"/>
11
+ <clipPath id="clip0_426_15898">
12
+ <rect width="4.46512" height="4.46512" fill="white" transform="translate(0.697754 0.930176)"/>
13
13
  </clipPath>
14
14
  </defs>
15
15
  </svg>
@@ -1,15 +1,15 @@
1
- <svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <mask id="mask0_426_15898" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
3
- <g clip-path="url(#clip0_426_15898)">
4
- <path d="M5.16287 2.9397H0.697754V3.38621H5.16287V2.9397Z" fill="#838691"/>
1
+ <svg width="11" height="10" viewBox="0 0 11 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_658_406" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="11" height="10">
3
+ <g clip-path="url(#clip0_658_406)">
4
+ <path d="M10.2546 4.35H0.587891V5.31667H10.2546V4.35Z" fill="#838691"/>
5
5
  </g>
6
6
  </mask>
7
- <g mask="url(#mask0_426_15898)">
8
- <rect x="0.697754" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
7
+ <g mask="url(#mask0_658_406)">
8
+ <rect x="0.587891" width="9.66667" height="9.66667" fill="#838691"/>
9
9
  </g>
10
10
  <defs>
11
- <clipPath id="clip0_426_15898">
12
- <rect width="4.46512" height="4.46512" fill="white" transform="translate(0.697754 0.930176)"/>
11
+ <clipPath id="clip0_658_406">
12
+ <rect width="9.66667" height="9.66667" fill="white" transform="translate(0.587891)"/>
13
13
  </clipPath>
14
14
  </defs>
15
15
  </svg>
@@ -1,3 +1,3 @@
1
- <svg width="34" height="38" viewBox="0 0 34 38" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path fill-rule="evenodd" clip-rule="evenodd" d="M2.13147 0C1.99776 0 1.8893 0.106141 1.88556 0.239309L1.54801 13.1723V13.1945L1.58448 13.1895L1.63123 13.1838C1.70884 13.175 1.80608 13.167 1.9267 13.1605C2.11931 13.1502 2.3699 13.1435 2.69623 13.1435C3.22826 13.1435 3.57235 13.1585 3.78834 13.1775L3.86782 13.1853V13.1723L3.53963 0.239485C3.53589 0.10625 3.42649 0 3.29371 0H2.13147ZM1.54801 15.028V13.4018L1.6546 13.3873C1.84441 13.3659 2.16887 13.3483 2.69623 13.3483C3.22546 13.3483 3.563 13.3632 3.76964 13.3815L3.86782 13.3914V15.028C3.86782 15.0575 3.85473 15.0841 3.8351 15.1028C3.8164 15.1199 3.79208 15.1304 3.76497 15.1304H3.64528V15.6344H7.61262V15.1304H7.4733C7.4172 15.1304 7.37138 15.0846 7.37138 15.028V13.4018L7.47704 13.3873C7.58831 13.3748 7.74446 13.3636 7.96045 13.3565C8.11473 13.3514 8.29893 13.3483 8.5196 13.3483C9.04789 13.3483 9.38637 13.3632 9.59302 13.3815L9.63977 13.3858L9.69119 13.3914V15.028C9.69119 15.0621 9.67436 15.0923 9.64818 15.1109C9.63135 15.1232 9.61078 15.1304 9.58834 15.1304H9.46866V15.6344H13.436V15.1304H13.2967C13.2396 15.1304 13.1938 15.0846 13.1938 15.028V13.4018L13.2294 13.3963L13.3004 13.3873C13.4902 13.3659 13.8147 13.3483 14.343 13.3483C14.5449 13.3483 14.7189 13.3505 14.8685 13.3542C15.1106 13.3602 15.2883 13.3702 15.4164 13.3815L15.4678 13.3864L15.5136 13.3914V15.028C15.5136 15.0589 15.4996 15.0865 15.4781 15.1053C15.4603 15.121 15.437 15.1304 15.4117 15.1304H15.2911V15.6344H16.6216C16.7348 15.6344 16.8264 15.7261 16.8264 15.8392V30.616H0.232422V15.8392C0.232422 15.7261 0.324055 15.6344 0.437194 15.6344H1.78925V15.1304H1.65086C1.59383 15.1304 1.54801 15.0846 1.54801 15.028ZM7.95484 0C7.82113 0 7.71267 0.106141 7.70893 0.239309L7.37138 13.1723V13.1945L7.4546 13.1838C7.65563 13.1611 7.9885 13.1435 8.5196 13.1435C9.0507 13.1435 9.39572 13.1585 9.61078 13.1775L9.69119 13.1853V13.1723L9.36206 0.239485C9.36019 0.167809 9.3284 0.103942 9.27791 0.0602291C9.2349 0.0226818 9.1788 0 9.11708 0H7.95484ZM13.5323 0.239309C13.5351 0.106141 13.6445 0 13.7773 0H14.9395C15.0732 0 15.1817 0.10625 15.1854 0.239485L15.5136 13.1723V13.1853L15.4342 13.1775C15.3444 13.1696 15.2322 13.1624 15.0938 13.1567C14.8993 13.1486 14.6534 13.1435 14.343 13.1435C13.8119 13.1435 13.479 13.1611 13.278 13.1838L13.2434 13.1879L13.1938 13.1945V13.1723L13.5323 0.239309ZM0.232422 30.8208H16.8264V32.4666C16.7769 32.4474 16.7208 32.4306 16.66 32.4157C16.5263 32.3824 16.357 32.3556 16.1541 32.3339C15.7502 32.2905 15.2023 32.266 14.5103 32.2526C13.5435 32.2339 12.2896 32.2365 10.7422 32.2399L8.48033 32.2428L6.42139 32.2399H6.42057C4.8529 32.2366 3.56376 32.2338 2.56252 32.2526C1.84816 32.266 1.27779 32.2905 0.856087 32.3339C0.64477 32.3556 0.468985 32.3823 0.329665 32.4154L0.232422 32.4413V30.8208ZM16.6114 32.6144C16.7133 32.6396 16.7825 32.6665 16.8264 32.6923V35.0946V35.5428C16.8264 36.8999 15.7259 38 14.3692 38H2.68968C1.33295 38 0.232422 36.8999 0.232422 35.5428V35.0946V32.6571C0.270758 32.6428 0.318445 32.6285 0.376417 32.6147C0.503581 32.5844 0.670016 32.5588 0.876658 32.5376C1.28901 32.4951 1.85283 32.4707 2.56626 32.4574C3.56487 32.4386 4.85147 32.4413 6.42139 32.4447L8.37374 32.4476L8.48033 32.4476L8.58692 32.4476L9.66408 32.4466L10.745 32.4446C12.2915 32.4413 13.5417 32.4386 14.5066 32.4574C15.1967 32.4707 15.7371 32.4951 16.1326 32.5375C16.3299 32.5588 16.4889 32.5843 16.6114 32.6144ZM2.6233 16.0071C2.6233 15.947 2.67192 15.8983 2.73176 15.8983C2.75888 15.8983 2.78412 15.9086 2.80376 15.9255C2.8262 15.9455 2.84022 15.9746 2.84022 16.0071V30.1489C2.84022 30.2089 2.7916 30.2576 2.73176 30.2576C2.67192 30.2576 2.6233 30.2089 2.6233 30.1489V16.0071ZM8.06424 27.7644C8.06424 27.6907 8.12408 27.6309 8.19795 27.6309H8.86089C8.93382 27.6309 8.99366 27.6907 8.99366 27.7644C8.99366 27.8382 8.93382 27.898 8.86089 27.898H8.19795C8.16522 27.898 8.13437 27.8861 8.11099 27.8663C8.08201 27.8418 8.06424 27.8053 8.06424 27.7644ZM12.471 15.8983C12.4112 15.8983 12.3626 15.947 12.3626 16.0071V30.1489C12.3626 30.2089 12.4112 30.2576 12.471 30.2576C12.4954 30.2576 12.5178 30.2497 12.5356 30.2362C12.5627 30.2164 12.5795 30.1847 12.5795 30.1489V16.0071C12.5795 15.947 12.5309 15.8983 12.471 15.8983ZM3.57048 16.0071C3.57048 15.947 3.6191 15.8983 3.67895 15.8983C3.73879 15.8983 3.78741 15.947 3.78741 16.0071V30.1489C3.78741 30.2089 3.73879 30.2576 3.67895 30.2576C3.66024 30.2576 3.64248 30.2529 3.62752 30.2445C3.59386 30.226 3.57048 30.1901 3.57048 30.1489V16.0071ZM13.4182 15.8983C13.3584 15.8983 13.3098 15.947 13.3098 16.0071V30.1489C13.3098 30.2089 13.3584 30.2576 13.4182 30.2576C13.4453 30.2576 13.4697 30.2479 13.4884 30.2318C13.5117 30.2118 13.5267 30.1821 13.5267 30.1489V16.0071C13.5267 15.947 13.4781 15.8983 13.4182 15.8983ZM4.51673 16.0071C4.51673 15.947 4.56629 15.8983 4.62613 15.8983C4.68597 15.8983 4.7346 15.947 4.7346 16.0071V30.1489C4.7346 30.2089 4.68597 30.2576 4.62613 30.2576C4.56629 30.2576 4.51673 30.2089 4.51673 30.1489V16.0071ZM14.3654 15.8983C14.3056 15.8983 14.256 15.947 14.256 16.0071V30.1489C14.256 30.2089 14.3056 30.2576 14.3654 30.2576C14.3963 30.2576 14.4243 30.2444 14.444 30.2232C14.4627 30.2038 14.4739 30.1776 14.4739 30.1489V16.0071C14.4739 15.947 14.4253 15.8983 14.3654 15.8983ZM6.83374 34.4138C6.83374 34.3914 6.84028 34.3706 6.85244 34.3535C6.87114 34.3261 6.90293 34.3082 6.9394 34.3082H10.1194C10.1774 34.3082 10.2251 34.3555 10.2251 34.4138C10.2251 34.4721 10.1774 34.5194 10.1194 34.5194H6.9394C6.88049 34.5194 6.83374 34.4721 6.83374 34.4138ZM6.83374 35.0857C6.83374 35.0565 6.84496 35.0302 6.8646 35.0111C6.87114 35.0038 6.87956 34.9976 6.88891 34.9927L6.90293 34.9863C6.91415 34.9823 6.92631 34.9801 6.9394 34.9801H10.1194C10.1774 34.9801 10.2251 35.0274 10.2251 35.0857C10.2251 35.144 10.1774 35.1913 10.1194 35.1913H6.9394C6.88049 35.1913 6.83374 35.144 6.83374 35.0857ZM6.9394 35.652C6.91135 35.652 6.88704 35.6624 6.86834 35.6795C6.84683 35.6988 6.83374 35.7267 6.83374 35.7576C6.83374 35.7968 6.85525 35.8311 6.88704 35.8493C6.902 35.8581 6.91976 35.8632 6.9394 35.8632H10.1194C10.1437 35.8632 10.1671 35.8548 10.1849 35.8407C10.1942 35.8334 10.2017 35.8247 10.2083 35.8147C10.2186 35.7983 10.2251 35.7786 10.2251 35.7576C10.2251 35.6993 10.1774 35.652 10.1194 35.652H6.9394ZM31.2918 4.07202C31.1576 4.07202 31.048 4.179 31.0447 4.31309L30.7311 17.1153V17.2144H33.0133V17.1153L32.6999 4.31311C32.6966 4.17903 32.587 4.07204 32.4528 4.07204L31.2918 4.07202ZM33.0133 17.387H30.7311V18.8484C30.7311 18.9394 30.8049 19.0132 30.8959 19.0132H32.8485C32.9395 19.0132 33.0133 18.9394 33.0133 18.8484V17.387ZM19.4401 19.2201C19.3491 19.2201 19.2754 19.2938 19.2754 19.3848V31.9606C19.2754 32.0516 19.3491 32.1254 19.4401 32.1254H33.6031C33.6941 32.1254 33.7678 32.0516 33.7678 31.9606V19.3848C33.7678 19.2938 33.6941 19.2201 33.6031 19.2201H19.4401ZM19.7162 19.5479H19.8103V31.7286H19.7162V19.5479ZM20.6877 19.5479H20.4118V31.7286H20.6877V19.5479ZM20.8817 19.5479H21.1576V31.7286H20.8817V19.5479ZM21.628 19.548H21.3569V31.7287H21.628V19.548ZM21.8016 19.548H22.0816V31.7287H21.8016V19.548ZM22.5454 19.548H22.2952V31.7287H22.5454V19.548ZM22.7611 19.548H22.9212V31.7287H22.7611V19.548ZM30.2895 19.548H30.1511V31.7287H30.2895V19.548ZM26.2003 28.662C26.1205 28.662 26.0559 28.7267 26.0559 28.8065C26.0559 28.8863 26.1205 28.9509 26.2003 28.9509H26.8437C26.9235 28.9509 26.9882 28.8863 26.9882 28.8065C26.9882 28.7267 26.9235 28.662 26.8437 28.662H26.2003ZM20.1853 19.5479H19.9448V31.7286H20.1853V19.5479ZM30.4874 19.548H30.7721V31.7287H30.4874V19.548ZM31.2467 19.548H30.9966V31.7287H31.2467V19.548ZM31.4108 19.548H31.7037V31.7287H31.4108V19.548ZM32.1952 19.548H31.9023V31.7287H32.1952V19.548ZM32.3858 19.548H32.6786V31.7287H32.3858V19.548ZM33.084 19.548H32.8773V31.7287H33.084V19.548ZM33.2312 19.548H33.3519V31.7287H33.2312V19.548ZM20.3475 4.31309C20.3508 4.179 20.4605 4.07202 20.5946 4.07202L21.7556 4.07204C21.8898 4.07204 21.9994 4.17903 22.0027 4.31311L22.3161 17.1153V17.2144H20.034V17.1153L20.3475 4.31309ZM20.034 17.387H22.3161V18.8484C22.3161 18.9394 22.2423 19.0132 22.1514 19.0132H20.1987C20.1077 19.0132 20.034 18.9394 20.034 18.8484V17.387ZM20.1996 32.272C20.1086 32.272 20.0349 32.3457 20.0349 32.4367L20.0348 33.8074H22.321L22.321 32.4368C22.3211 32.3458 22.2473 32.272 22.1563 32.272H20.1996ZM22.3209 33.9973H20.0348L20.0348 34.2216L20.1154 37.7586C20.1184 37.8928 20.2281 38.0001 20.3624 38.0001H21.9928C22.1271 38.0001 22.2368 37.8929 22.2399 37.7586L22.3209 34.2216L22.3209 33.9973Z" fill="white"/>
1
+ <svg width="42" height="38" viewBox="0 0 42 38" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M26.6607 0.239309C26.6644 0.106141 26.7729 0 26.9066 0H28.0689C28.2016 0 28.311 0.10625 28.3148 0.239485L28.643 13.1723V13.1853L28.5635 13.1775C28.3475 13.1585 28.0034 13.1435 27.4714 13.1435C27.1451 13.1435 26.8945 13.1502 26.7018 13.1605C26.5812 13.167 26.484 13.175 26.4064 13.1838L26.3596 13.1895L26.3232 13.1945V13.1723L26.6607 0.239309ZM26.3232 13.4018V15.028C26.3232 15.0846 26.369 15.1304 26.426 15.1304H26.5644V15.6344H25.2123C25.0992 15.6344 25.0076 15.7261 25.0076 15.8392V30.616H41.6016V15.8392C41.6016 15.7261 41.5099 15.6344 41.3968 15.6344H40.0662V15.1304H40.1869C40.2121 15.1304 40.2355 15.121 40.2533 15.1053C40.2748 15.0865 40.2888 15.0589 40.2888 15.028V13.3914L40.243 13.3864L40.1915 13.3815C40.0634 13.3702 39.8858 13.3602 39.6436 13.3542C39.494 13.3505 39.3201 13.3483 39.1181 13.3483C38.5898 13.3483 38.2654 13.3659 38.0756 13.3873L38.0045 13.3963L37.969 13.4018V15.028C37.969 15.0846 38.0148 15.1304 38.0718 15.1304H38.2111V15.6344H34.2438V15.1304H34.3635C34.3859 15.1304 34.4065 15.1232 34.4233 15.1109C34.4495 15.0923 34.4663 15.0621 34.4663 15.028V13.3914L34.4149 13.3858L34.3682 13.3815C34.1615 13.3632 33.823 13.3483 33.2948 13.3483C33.0741 13.3483 32.8899 13.3514 32.7356 13.3565C32.5196 13.3636 32.3635 13.3748 32.2522 13.3873L32.1465 13.4018V15.028C32.1465 15.0846 32.1923 15.1304 32.2485 15.1304H32.3878V15.6344H28.4204V15.1304H28.5401C28.5672 15.1304 28.5915 15.1199 28.6102 15.1028C28.6299 15.0841 28.643 15.0575 28.643 15.028V13.3914L28.5448 13.3815C28.3382 13.3632 28.0006 13.3483 27.4714 13.3483C26.944 13.3483 26.6196 13.3659 26.4298 13.3873L26.3232 13.4018ZM32.4841 0.239309C32.4878 0.106141 32.5963 0 32.73 0H33.8922C33.9539 0 34.01 0.0226818 34.0531 0.0602291C34.1036 0.103942 34.1353 0.167809 34.1372 0.239485L34.4663 13.1723V13.1853L34.3859 13.1775C34.1709 13.1585 33.8258 13.1435 33.2948 13.1435C32.7637 13.1435 32.4308 13.1611 32.2297 13.1838L32.1465 13.1945V13.1723L32.4841 0.239309ZM38.5524 0C38.4197 0 38.3103 0.106141 38.3074 0.239309L37.969 13.1723V13.1945L38.0185 13.1879L38.0531 13.1838C38.2542 13.1611 38.587 13.1435 39.1181 13.1435C39.4286 13.1435 39.6745 13.1486 39.8689 13.1567C40.0073 13.1624 40.1195 13.1696 40.2093 13.1775L40.2888 13.1853V13.1723L39.9606 0.239485C39.9568 0.10625 39.8484 0 39.7147 0H38.5524ZM41.6016 30.8208H25.0076V32.4413L25.1048 32.4154C25.2441 32.3823 25.4199 32.3556 25.6312 32.3339C26.0529 32.2905 26.6233 32.266 27.3377 32.2526C28.3391 32.2338 29.6285 32.2366 31.1965 32.2399L33.2555 32.2428L35.5173 32.2399C37.0648 32.2365 38.3187 32.2339 39.2855 32.2526C39.9774 32.266 40.5253 32.2905 40.9293 32.3339C41.1322 32.3556 41.3014 32.3824 41.4351 32.4157C41.4959 32.4306 41.552 32.4474 41.6016 32.4666V30.8208ZM41.6016 32.6923C41.5576 32.6665 41.4884 32.6396 41.3865 32.6144C41.264 32.5843 41.1051 32.5588 40.9078 32.5375C40.5123 32.4951 39.9718 32.4707 39.2818 32.4574C38.3168 32.4386 37.0667 32.4413 35.5201 32.4446L34.4392 32.4466L33.3621 32.4476L33.2555 32.4476L33.1489 32.4476L31.1965 32.4447C29.6266 32.4413 28.34 32.4386 27.3414 32.4574C26.628 32.4707 26.0642 32.4951 25.6518 32.5376C25.4452 32.5588 25.2787 32.5844 25.1516 32.6147C25.0936 32.6285 25.0459 32.6428 25.0076 32.6571V35.0946V35.5428C25.0076 36.8999 26.1081 38 27.4648 38H39.1443C40.501 38 41.6016 36.8999 41.6016 35.5428V35.0946V32.6923ZM27.5069 15.8983C27.4471 15.8983 27.3984 15.947 27.3984 16.0071V30.1489C27.3984 30.2089 27.4471 30.2576 27.5069 30.2576C27.5668 30.2576 27.6154 30.2089 27.6154 30.1489V16.0071C27.6154 15.9746 27.6013 15.9455 27.5789 15.9255C27.5593 15.9086 27.534 15.8983 27.5069 15.8983ZM32.9731 27.6309C32.8992 27.6309 32.8394 27.6907 32.8394 27.7644C32.8394 27.8053 32.8572 27.8418 32.8861 27.8663C32.9095 27.8861 32.9404 27.898 32.9731 27.898H33.636C33.709 27.898 33.7688 27.8382 33.7688 27.7644C33.7688 27.6907 33.709 27.6309 33.636 27.6309H32.9731ZM37.1377 16.0071C37.1377 15.947 37.1863 15.8983 37.2462 15.8983C37.306 15.8983 37.3547 15.947 37.3547 16.0071V30.1489C37.3547 30.1847 37.3378 30.2164 37.3107 30.2362C37.2929 30.2497 37.2705 30.2576 37.2462 30.2576C37.1863 30.2576 37.1377 30.2089 37.1377 30.1489V16.0071ZM28.4541 15.8983C28.3943 15.8983 28.3456 15.947 28.3456 16.0071V30.1489C28.3456 30.1901 28.369 30.226 28.4027 30.2445C28.4176 30.2529 28.4354 30.2576 28.4541 30.2576C28.5139 30.2576 28.5626 30.2089 28.5626 30.1489V16.0071C28.5626 15.947 28.5139 15.8983 28.4541 15.8983ZM38.0849 16.0071C38.0849 15.947 38.1335 15.8983 38.1934 15.8983C38.2532 15.8983 38.3018 15.947 38.3018 16.0071V30.1489C38.3018 30.1821 38.2869 30.2118 38.2635 30.2318C38.2448 30.2479 38.2205 30.2576 38.1934 30.2576C38.1335 30.2576 38.0849 30.2089 38.0849 30.1489V16.0071ZM29.4013 15.8983C29.3414 15.8983 29.2919 15.947 29.2919 16.0071V30.1489C29.2919 30.2089 29.3414 30.2576 29.4013 30.2576C29.4611 30.2576 29.5097 30.2089 29.5097 30.1489V16.0071C29.5097 15.947 29.4611 15.8983 29.4013 15.8983ZM39.0312 16.0071C39.0312 15.947 39.0807 15.8983 39.1406 15.8983C39.2004 15.8983 39.249 15.947 39.249 16.0071V30.1489C39.249 30.1776 39.2378 30.2038 39.2191 30.2232C39.1995 30.2444 39.1714 30.2576 39.1406 30.2576C39.0807 30.2576 39.0312 30.2089 39.0312 30.1489V16.0071ZM31.6276 34.3535C31.6154 34.3706 31.6089 34.3914 31.6089 34.4138C31.6089 34.4721 31.6556 34.5194 31.7145 34.5194H34.8946C34.9526 34.5194 35.0002 34.4721 35.0002 34.4138C35.0002 34.3555 34.9526 34.3082 34.8946 34.3082H31.7145C31.6781 34.3082 31.6463 34.3261 31.6276 34.3535ZM31.6397 35.0111C31.6201 35.0302 31.6089 35.0565 31.6089 35.0857C31.6089 35.144 31.6556 35.1913 31.7145 35.1913H34.8946C34.9526 35.1913 35.0002 35.144 35.0002 35.0857C35.0002 35.0274 34.9526 34.9801 34.8946 34.9801H31.7145C31.7015 34.9801 31.6893 34.9823 31.6781 34.9863L31.6641 34.9927C31.6547 34.9976 31.6463 35.0038 31.6397 35.0111ZM31.6435 35.6795C31.6622 35.6624 31.6865 35.652 31.7145 35.652H34.8946C34.9526 35.652 35.0002 35.6993 35.0002 35.7576C35.0002 35.7786 34.9937 35.7983 34.9834 35.8147C34.9769 35.8247 34.9694 35.8334 34.96 35.8407C34.9423 35.8548 34.9189 35.8632 34.8946 35.8632H31.7145C31.6949 35.8632 31.6771 35.8581 31.6622 35.8493C31.6304 35.8311 31.6089 35.7968 31.6089 35.7576C31.6089 35.7267 31.622 35.6988 31.6435 35.6795ZM19.7041 12.5645L25.5845 2.37962L25.3835 9.05173L18.7345 20.5677C19.0131 20.611 19.2328 20.8376 19.2609 21.1257L19.5227 23.8201H20.6204C21.6574 23.8201 22.4979 24.6605 22.4979 25.6975V36.1226C22.4979 37.1596 21.6574 38 20.6204 38H8.59872C7.56177 38 6.72118 37.1596 6.72118 36.1226V25.6975C6.72118 24.6605 7.56177 23.8201 8.59872 23.8201H9.71328L9.96106 21.1287C9.98818 20.8353 10.2145 20.6044 10.4996 20.5659L0.498548 3.2431C0.265725 2.83995 0.464887 2.32476 0.908091 2.18265L2.5659 1.65116C2.89316 1.54598 3.24941 1.6835 3.42145 1.98121L9.53094 12.5645L9.64315 12.5296C9.674 12.5199 9.70486 12.5179 9.73478 12.5222C9.76751 12.5268 9.79836 12.539 9.82548 12.5578C9.84138 12.5691 9.85634 12.5827 9.86849 12.5985L9.88626 12.6246L14.4679 20.5603H14.7681L19.3497 12.6246C19.3628 12.6019 19.3796 12.5825 19.3983 12.5668C19.4282 12.5428 19.4638 12.5275 19.5012 12.5222C19.5311 12.5179 19.562 12.5199 19.5928 12.5296L19.7041 12.5645ZM12.5745 29.2832C12.5745 29.1105 12.7147 28.9705 12.8877 28.9705H16.3314C16.4277 28.9705 16.5147 29.0143 16.5717 29.083C16.6175 29.1373 16.6447 29.2071 16.6447 29.2832V32.7324C16.6447 32.9051 16.5044 33.0452 16.3314 33.0452H12.8877C12.8428 33.0452 12.7989 33.0355 12.7605 33.0181C12.7372 33.0078 12.7157 32.9948 12.696 32.9795C12.6222 32.9224 12.5745 32.8333 12.5745 32.7324V29.2832Z" fill="white"/>
3
3
  </svg>
Binary file
Binary file
@@ -0,0 +1,3 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M18.94 15.3999C19.2821 15.3999 19.5594 15.6685 19.5594 15.9999C19.5594 17.9881 17.8956 19.5999 15.8432 19.5999C15.5012 19.5999 15.2239 19.3313 15.2239 18.9999C15.2239 18.6685 15.5012 18.3999 15.8432 18.3999C17.2115 18.3999 18.3207 17.3254 18.3207 15.9999C18.3207 15.6685 18.598 15.3999 18.94 15.3999ZM0.97873 15.3999C1.32079 15.3999 1.59808 15.6685 1.59808 15.9999C1.59808 17.3254 2.70726 18.3999 4.0755 18.3999C4.41756 18.3999 4.69486 18.6685 4.69486 18.9999C4.69486 19.3313 4.41756 19.5999 4.0755 19.5999C2.02314 19.5999 0.359375 17.9881 0.359375 15.9999C0.359375 15.6685 0.63667 15.3999 0.97873 15.3999ZM15.8432 15.3999C16.1853 15.3999 16.4626 15.6685 16.4626 15.9999C16.4626 16.3313 16.1853 16.5999 15.8432 16.5999C15.5012 16.5999 15.2239 16.3313 15.2239 15.9999C15.2239 15.6685 15.5012 15.3999 15.8432 15.3999ZM4.0755 15.3999C4.41756 15.3999 4.69486 15.6685 4.69486 15.9999C4.69486 16.3313 4.41756 16.5999 4.0755 16.5999C3.73344 16.5999 3.45615 16.3313 3.45615 15.9999C3.45615 15.6685 3.73344 15.3999 4.0755 15.3999ZM9.6497 3.9999C13.0703 3.9999 15.8432 6.68619 15.8432 9.9999C15.8432 13.3136 13.0703 15.9999 9.6497 15.9999C6.2291 15.9999 3.45615 13.3136 3.45615 9.9999C3.45615 6.68619 6.2291 3.9999 9.6497 3.9999ZM9.6497 5.1999C6.91322 5.1999 4.69486 7.34894 4.69486 9.9999C4.69486 12.6509 6.91322 14.7999 9.6497 14.7999C12.3862 14.7999 14.6045 12.6509 14.6045 9.9999C14.6045 7.34894 12.3862 5.1999 9.6497 5.1999ZM9.6497 7.5999C11.0179 7.5999 12.1271 8.67442 12.1271 9.9999C12.1271 11.3254 11.0179 12.3999 9.6497 12.3999C8.28146 12.3999 7.17228 11.3254 7.17228 9.9999C7.17228 8.67442 8.28146 7.5999 9.6497 7.5999ZM9.6497 8.7999C8.96558 8.7999 8.41099 9.33716 8.41099 9.9999C8.41099 10.6626 8.96558 11.1999 9.6497 11.1999C10.3338 11.1999 10.8884 10.6626 10.8884 9.9999C10.8884 9.33716 10.3338 8.7999 9.6497 8.7999ZM15.8432 3.3999C16.1853 3.3999 16.4626 3.66853 16.4626 3.9999C16.4626 4.33127 16.1853 4.5999 15.8432 4.5999C15.5012 4.5999 15.2239 4.33127 15.2239 3.9999C15.2239 3.66853 15.5012 3.3999 15.8432 3.3999ZM15.8432 0.399902C17.8956 0.399902 19.5594 2.01168 19.5594 3.9999C19.5594 4.33127 19.2821 4.5999 18.94 4.5999C18.598 4.5999 18.3207 4.33127 18.3207 3.9999C18.3207 2.67442 17.2115 1.5999 15.8432 1.5999C15.5012 1.5999 15.2239 1.33127 15.2239 0.999902C15.2239 0.668532 15.5012 0.399902 15.8432 0.399902ZM4.0755 3.3999C4.41756 3.3999 4.69486 3.66853 4.69486 3.9999C4.69486 4.33127 4.41756 4.5999 4.0755 4.5999C3.73344 4.5999 3.45615 4.33127 3.45615 3.9999C3.45615 3.66853 3.73344 3.3999 4.0755 3.3999ZM4.0755 0.399902C4.41756 0.399902 4.69486 0.668532 4.69486 0.999902C4.69486 1.33127 4.41756 1.5999 4.0755 1.5999C2.70726 1.5999 1.59808 2.67442 1.59808 3.9999C1.59808 4.33127 1.32079 4.5999 0.97873 4.5999C0.63667 4.5999 0.359375 4.33127 0.359375 3.9999C0.359375 2.01168 2.02314 0.399902 4.0755 0.399902Z" fill="#212124"/>
3
+ </svg>
@@ -1,16 +1,16 @@
1
- <svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <mask id="mask0_658_411" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="10" height="10">
3
- <g clip-path="url(#clip0_658_411)">
4
- <path d="M9.86637 4.35H0.199707V5.31667H9.86637V4.35Z" fill="#838691"/>
5
- <path d="M4.5498 -2.86102e-06L4.5498 9.66666H5.51647L5.51647 -2.86102e-06H4.5498Z" fill="#838691"/>
1
+ <svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_426_15903" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
3
+ <g clip-path="url(#clip0_426_15903)">
4
+ <path d="M5.30227 2.9397H0.837158V3.38621H5.30227V2.9397Z" fill="#838691"/>
5
+ <path d="M2.84668 0.930147L2.84668 5.39526H3.29319L3.29319 0.930147H2.84668Z" fill="#838691"/>
6
6
  </g>
7
7
  </mask>
8
- <g mask="url(#mask0_658_411)">
9
- <rect x="0.199707" width="9.66667" height="9.66667" fill="#838691"/>
8
+ <g mask="url(#mask0_426_15903)">
9
+ <rect x="0.837158" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
10
10
  </g>
11
11
  <defs>
12
- <clipPath id="clip0_658_411">
13
- <rect width="9.66667" height="9.66667" fill="white" transform="translate(0.199707)"/>
12
+ <clipPath id="clip0_426_15903">
13
+ <rect width="4.46512" height="4.46512" fill="white" transform="translate(0.837158 0.930176)"/>
14
14
  </clipPath>
15
15
  </defs>
16
16
  </svg>
@@ -1,16 +1,16 @@
1
- <svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <mask id="mask0_426_15903" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
3
- <g clip-path="url(#clip0_426_15903)">
4
- <path d="M5.30227 2.9397H0.837158V3.38621H5.30227V2.9397Z" fill="#838691"/>
5
- <path d="M2.84668 0.930147L2.84668 5.39526H3.29319L3.29319 0.930147H2.84668Z" fill="#838691"/>
1
+ <svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_658_411" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="10" height="10">
3
+ <g clip-path="url(#clip0_658_411)">
4
+ <path d="M9.86637 4.35H0.199707V5.31667H9.86637V4.35Z" fill="#838691"/>
5
+ <path d="M4.5498 -2.86102e-06L4.5498 9.66666H5.51647L5.51647 -2.86102e-06H4.5498Z" fill="#838691"/>
6
6
  </g>
7
7
  </mask>
8
- <g mask="url(#mask0_426_15903)">
9
- <rect x="0.837158" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
8
+ <g mask="url(#mask0_658_411)">
9
+ <rect x="0.199707" width="9.66667" height="9.66667" fill="#838691"/>
10
10
  </g>
11
11
  <defs>
12
- <clipPath id="clip0_426_15903">
13
- <rect width="4.46512" height="4.46512" fill="white" transform="translate(0.837158 0.930176)"/>
12
+ <clipPath id="clip0_658_411">
13
+ <rect width="9.66667" height="9.66667" fill="white" transform="translate(0.199707)"/>
14
14
  </clipPath>
15
15
  </defs>
16
16
  </svg>
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -109,10 +109,12 @@ const GalleryControlsProvider = ({
109
109
  } else {
110
110
  normalisedIndex = visibleSlide % totalNormalised;
111
111
  }
112
- } else if (visibleSlide === totalNormalised) {
113
- normalisedIndex = totalNormalised;
114
112
  } else {
115
- normalisedIndex = visibleSlide + 1;
113
+ if (visibleSlide === totalNormalised) {
114
+ normalisedIndex = totalNormalised;
115
+ } else {
116
+ normalisedIndex = visibleSlide + 1;
117
+ }
116
118
  }
117
119
  }
118
120
  const paddedCurrentIndex = utils.padNumberToFixedLength(normalisedIndex, totalNormalised);
@@ -1 +1 @@
1
- {"version":3,"file":"Gallery.context.js","sources":["../../../src/components/Gallery/Gallery.context.tsx"],"sourcesContent":["import {\n createContext,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useState,\n} from \"react\";\nimport type { ReactNode, SetStateAction } from \"react\";\n// import { useHarmonicIntervalFn } from \"react-use\";\n\nimport { GalleryControls } from \"./Gallery.types\";\nimport { padNumberToFixedLength } from \"./utils\";\n\ninterface GalleryContextShape {\n withTransition: boolean;\n showGalleryControls: boolean;\n controlsType: GalleryControls;\n setNext: () => void;\n setPrevious: () => void;\n jumpToSlide: (index: number) => void;\n reset: (total: number) => void;\n setControlsType: (controls: GalleryControls) => void;\n visibleSlide: number;\n resetTransitionState: () => void;\n currentImageLabel: string;\n}\n\nconst defaultGalleryContextState: GalleryContextShape = {\n showGalleryControls: false,\n withTransition: true,\n controlsType: GalleryControls.Inside,\n // Placeholder functions\n setNext: () => {\n // empty\n },\n setPrevious: () => {\n // empty\n },\n jumpToSlide: () => {\n // empty\n },\n reset: () => {\n // empty\n },\n setControlsType: () => {\n // empty\n },\n visibleSlide: 0,\n resetTransitionState: () => {\n // empty\n },\n currentImageLabel: \"0/0\",\n};\n\nconst GalleryContext = createContext<GalleryContextShape>(\n defaultGalleryContextState,\n);\n\nexport const GalleryControlsProvider = ({\n children,\n fade,\n}: {\n children: ReactNode;\n fade?: boolean;\n}) => {\n const [total, setTotal] = useState(0);\n const [controlsType, setControlsType] = useState<GalleryControls>(\n GalleryControls.Inside,\n );\n // const [hasStoppedAutoPlay, setHasStoppedAutoPlay] = useState(false);\n // const [intersectedOnce, setIntersectedOnce] = useState(false);\n\n const showGalleryControls = useMemo<boolean>(() => total > 1, [total]);\n\n const [visibleSlide, setVisibleSlideRaw] = useState(\n defaultGalleryContextState.visibleSlide,\n );\n const [withTransition, setWithTransition] = useState(\n defaultGalleryContextState.withTransition,\n );\n const [controlsDisabled, setControlsDisabled] = useState(false);\n\n const resetTransitionState = useCallback(() => {\n setWithTransition(true);\n setControlsDisabled(false);\n }, []);\n\n const reset = useCallback(\n (newTotal: number) => {\n setTotal(newTotal);\n setVisibleSlideRaw(!fade && newTotal > 1 ? 1 : 0);\n // setHasStoppedAutoPlay(false);\n resetTransitionState();\n },\n [resetTransitionState, fade],\n );\n\n const setVisibleSlide = useCallback(\n (nextVisibleState: SetStateAction<number>): void => {\n setControlsDisabled(true);\n setVisibleSlideRaw(nextVisibleState);\n },\n [],\n );\n\n /**\n * Auto change to next gallery item every N seconds unless user has interacted with the gallery\n * TODO: maybe don't autoplay if gallery not intersecting?!\n */\n // useHarmonicIntervalFn(\n // () => {\n // if (hasStoppedAutoPlay || total <= 1 || controlsDisabled) {\n // return;\n // }\n\n // setVisibleSlide((currVisibleSlide) => currVisibleSlide + 1);\n // },\n // // Start autoplay only if gallery was intersected\n // !intersectedOnce || hasStoppedAutoPlay || total <= 1 ? null : 5000\n // );\n\n /**\n * Reset slider when \"animation\" is finished.\n * When slider reaches the end or start slide, quicky reset (without transition) to either the ACTUAL first or last slide\n */\n useEffect(() => {\n // Ignore effect if animation in progress or there isn't anything to animate or if fade is enabled\n if (fade || controlsDisabled || total <= 1) {\n return;\n }\n\n // End of the carousel\n if (visibleSlide === total - 1) {\n setWithTransition(false);\n /**\n * HACK: right now in React@17 there isn't a way to \"flush\" state changes, so as a hack we wait:\n * 1. To disable the transition\n * 2. To reset the slider to the first slide\n * 3. To re-enable the transition\n */\n requestAnimationFrame(() => {\n setVisibleSlide(1);\n requestAnimationFrame(() => {\n resetTransitionState();\n });\n });\n // Start of the carousel\n } else if (visibleSlide === 0) {\n setWithTransition(false);\n // Same hack as above (see notes above)\n requestAnimationFrame(() => {\n setVisibleSlide(total - 2);\n requestAnimationFrame(() => {\n resetTransitionState();\n });\n });\n }\n // HACK: Only update on visibleSlide\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [visibleSlide, controlsDisabled, total]);\n\n const setPrevious = useCallback(() => {\n if (controlsDisabled) {\n return;\n }\n // setHasStoppedAutoPlay(true);\n if (fade) {\n setVisibleSlide((currVisibleSlide) =>\n currVisibleSlide < 1 ? total - 1 : currVisibleSlide - 1,\n );\n } else {\n setVisibleSlide((currVisibleSlide) => currVisibleSlide - 1);\n }\n }, [controlsDisabled, setVisibleSlide, total, fade]);\n\n const setNext = useCallback(() => {\n if (controlsDisabled) {\n return;\n }\n // setHasStoppedAutoPlay(true);\n if (fade) {\n setVisibleSlide((currVisibleSlide) =>\n currVisibleSlide === total - 1 ? 0 : currVisibleSlide + 1,\n );\n } else {\n setVisibleSlide((currVisibleSlide) => currVisibleSlide + 1);\n }\n }, [controlsDisabled, setVisibleSlide, total, fade]);\n\n const jumpToSlide = useCallback(\n (index: number) => {\n if (controlsDisabled) {\n return;\n }\n\n if (fade) {\n setVisibleSlide(index);\n } else {\n setVisibleSlide(index + 1);\n }\n\n requestAnimationFrame(() => {\n resetTransitionState();\n });\n },\n [controlsDisabled, fade, setVisibleSlide, resetTransitionState],\n );\n\n /**\n * Create a label \"02/15\" for controls\n */\n const currentImageLabel = useMemo(() => {\n const isAnimatable = total > 1;\n\n // Remove first and last copy if needed from total count for math\n const totalNormalised = isAnimatable ? total - (fade ? 0 : 2) : 1; // Use 1 instead of total to solve division of 0\n let normalisedIndex = visibleSlide;\n if (isAnimatable) {\n if (!fade) {\n if (visibleSlide === 0 || visibleSlide === totalNormalised) {\n normalisedIndex = totalNormalised;\n } else {\n normalisedIndex = visibleSlide % totalNormalised;\n }\n } else if (visibleSlide === totalNormalised) {\n normalisedIndex = totalNormalised;\n } else {\n normalisedIndex = visibleSlide + 1;\n }\n }\n\n const paddedCurrentIndex = padNumberToFixedLength(\n normalisedIndex,\n totalNormalised,\n );\n\n return `${paddedCurrentIndex}/${totalNormalised}`;\n }, [visibleSlide, total, fade]);\n\n return (\n <GalleryContext.Provider\n value={{\n setNext,\n setPrevious,\n jumpToSlide,\n reset,\n setControlsType,\n showGalleryControls,\n controlsType,\n withTransition,\n visibleSlide,\n resetTransitionState,\n currentImageLabel,\n }}\n >\n {children}\n </GalleryContext.Provider>\n );\n};\n\nexport const useGalleryControls = () => useContext(GalleryContext);\n"],"names":["defaultGalleryContextState","showGalleryControls","withTransition","controlsType","GalleryControls","Inside","setNext","setPrevious","jumpToSlide","reset","setControlsType","visibleSlide","resetTransitionState","currentImageLabel","GalleryContext","createContext","GalleryControlsProvider","children","fade","total","setTotal","useState","useMemo","setVisibleSlideRaw","setWithTransition","controlsDisabled","setControlsDisabled","useCallback","newTotal","setVisibleSlide","nextVisibleState","useEffect","requestAnimationFrame","currVisibleSlide","index","isAnimatable","totalNormalised","normalisedIndex","paddedCurrentIndex","padNumberToFixedLength","jsx","Provider","value","useGalleryControls","useContext"],"mappings":"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"}
1
+ {"version":3,"file":"Gallery.context.js","sources":["../../../src/components/Gallery/Gallery.context.tsx"],"sourcesContent":["import {\n createContext,\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useState,\n} from \"react\";\nimport type { ReactNode, SetStateAction } from \"react\";\n// import { useHarmonicIntervalFn } from \"react-use\";\n\nimport { GalleryControls } from \"./Gallery.types\";\nimport { padNumberToFixedLength } from \"./utils\";\n\ninterface GalleryContextShape {\n withTransition: boolean;\n showGalleryControls: boolean;\n controlsType: GalleryControls;\n setNext: () => void;\n setPrevious: () => void;\n jumpToSlide: (index: number) => void;\n reset: (total: number) => void;\n setControlsType: (controls: GalleryControls) => void;\n visibleSlide: number;\n resetTransitionState: () => void;\n currentImageLabel: string;\n}\n\nconst defaultGalleryContextState: GalleryContextShape = {\n showGalleryControls: false,\n withTransition: true,\n controlsType: GalleryControls.Inside,\n // Placeholder functions\n setNext: () => {\n // empty\n },\n setPrevious: () => {\n // empty\n },\n jumpToSlide: () => {\n // empty\n },\n reset: () => {\n // empty\n },\n setControlsType: () => {\n // empty\n },\n visibleSlide: 0,\n resetTransitionState: () => {\n // empty\n },\n currentImageLabel: \"0/0\",\n};\n\nconst GalleryContext = createContext<GalleryContextShape>(\n defaultGalleryContextState,\n);\n\nexport const GalleryControlsProvider = ({\n children,\n fade,\n}: {\n children: ReactNode;\n fade?: boolean;\n}) => {\n const [total, setTotal] = useState(0);\n const [controlsType, setControlsType] = useState<GalleryControls>(\n GalleryControls.Inside,\n );\n // const [hasStoppedAutoPlay, setHasStoppedAutoPlay] = useState(false);\n // const [intersectedOnce, setIntersectedOnce] = useState(false);\n\n const showGalleryControls = useMemo<boolean>(() => total > 1, [total]);\n\n const [visibleSlide, setVisibleSlideRaw] = useState(\n defaultGalleryContextState.visibleSlide,\n );\n const [withTransition, setWithTransition] = useState(\n defaultGalleryContextState.withTransition,\n );\n const [controlsDisabled, setControlsDisabled] = useState(false);\n\n const resetTransitionState = useCallback(() => {\n setWithTransition(true);\n setControlsDisabled(false);\n }, []);\n\n const reset = useCallback(\n (newTotal: number) => {\n setTotal(newTotal);\n setVisibleSlideRaw(!fade && newTotal > 1 ? 1 : 0);\n // setHasStoppedAutoPlay(false);\n resetTransitionState();\n },\n [resetTransitionState, fade],\n );\n\n const setVisibleSlide = useCallback(\n (nextVisibleState: SetStateAction<number>): void => {\n setControlsDisabled(true);\n setVisibleSlideRaw(nextVisibleState);\n },\n [],\n );\n\n /**\n * Auto change to next gallery item every N seconds unless user has interacted with the gallery\n * TODO: maybe don't autoplay if gallery not intersecting?!\n */\n // useHarmonicIntervalFn(\n // () => {\n // if (hasStoppedAutoPlay || total <= 1 || controlsDisabled) {\n // return;\n // }\n\n // setVisibleSlide((currVisibleSlide) => currVisibleSlide + 1);\n // },\n // // Start autoplay only if gallery was intersected\n // !intersectedOnce || hasStoppedAutoPlay || total <= 1 ? null : 5000\n // );\n\n /**\n * Reset slider when \"animation\" is finished.\n * When slider reaches the end or start slide, quicky reset (without transition) to either the ACTUAL first or last slide\n */\n useEffect(() => {\n // Ignore effect if animation in progress or there isn't anything to animate or if fade is enabled\n if (fade || controlsDisabled || total <= 1) {\n return;\n }\n\n // End of the carousel\n if (visibleSlide === total - 1) {\n setWithTransition(false);\n /**\n * HACK: right now in React@17 there isn't a way to \"flush\" state changes, so as a hack we wait:\n * 1. To disable the transition\n * 2. To reset the slider to the first slide\n * 3. To re-enable the transition\n */\n requestAnimationFrame(() => {\n setVisibleSlide(1);\n requestAnimationFrame(() => {\n resetTransitionState();\n });\n });\n // Start of the carousel\n } else if (visibleSlide === 0) {\n setWithTransition(false);\n // Same hack as above (see notes above)\n requestAnimationFrame(() => {\n setVisibleSlide(total - 2);\n requestAnimationFrame(() => {\n resetTransitionState();\n });\n });\n }\n // HACK: Only update on visibleSlide\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [visibleSlide, controlsDisabled, total]);\n\n const setPrevious = useCallback(() => {\n if (controlsDisabled) {\n return;\n }\n // setHasStoppedAutoPlay(true);\n if (fade) {\n setVisibleSlide((currVisibleSlide) =>\n currVisibleSlide < 1 ? total - 1 : currVisibleSlide - 1,\n );\n } else {\n setVisibleSlide((currVisibleSlide) => currVisibleSlide - 1);\n }\n }, [controlsDisabled, setVisibleSlide, total, fade]);\n\n const setNext = useCallback(() => {\n if (controlsDisabled) {\n return;\n }\n // setHasStoppedAutoPlay(true);\n if (fade) {\n setVisibleSlide((currVisibleSlide) =>\n currVisibleSlide === total - 1 ? 0 : currVisibleSlide + 1,\n );\n } else {\n setVisibleSlide((currVisibleSlide) => currVisibleSlide + 1);\n }\n }, [controlsDisabled, setVisibleSlide, total, fade]);\n\n const jumpToSlide = useCallback(\n (index: number) => {\n if (controlsDisabled) {\n return;\n }\n\n if (fade) {\n setVisibleSlide(index);\n } else {\n setVisibleSlide(index + 1);\n }\n\n requestAnimationFrame(() => {\n resetTransitionState();\n });\n },\n [controlsDisabled, fade, setVisibleSlide, resetTransitionState],\n );\n\n /**\n * Create a label \"02/15\" for controls\n */\n const currentImageLabel = useMemo(() => {\n const isAnimatable = total > 1;\n\n // Remove first and last copy if needed from total count for math\n const totalNormalised = isAnimatable ? total - (fade ? 0 : 2) : 1; // Use 1 instead of total to solve division of 0\n let normalisedIndex = visibleSlide;\n if (isAnimatable) {\n if (!fade) {\n if (visibleSlide === 0 || visibleSlide === totalNormalised) {\n normalisedIndex = totalNormalised;\n } else {\n normalisedIndex = visibleSlide % totalNormalised;\n }\n } else {\n if (visibleSlide === totalNormalised) {\n normalisedIndex = totalNormalised;\n } else {\n normalisedIndex = visibleSlide + 1;\n }\n }\n }\n\n const paddedCurrentIndex = padNumberToFixedLength(\n normalisedIndex,\n totalNormalised,\n );\n\n return `${paddedCurrentIndex}/${totalNormalised}`;\n }, [visibleSlide, total, fade]);\n\n return (\n <GalleryContext.Provider\n value={{\n setNext,\n setPrevious,\n jumpToSlide,\n reset,\n setControlsType,\n showGalleryControls,\n controlsType,\n withTransition,\n visibleSlide,\n resetTransitionState,\n currentImageLabel,\n }}\n >\n {children}\n </GalleryContext.Provider>\n );\n};\n\nexport const useGalleryControls = () => useContext(GalleryContext);\n"],"names":["defaultGalleryContextState","showGalleryControls","withTransition","controlsType","GalleryControls","Inside","setNext","setPrevious","jumpToSlide","reset","setControlsType","visibleSlide","resetTransitionState","currentImageLabel","GalleryContext","createContext","GalleryControlsProvider","children","fade","total","setTotal","useState","useMemo","setVisibleSlideRaw","setWithTransition","controlsDisabled","setControlsDisabled","useCallback","newTotal","setVisibleSlide","nextVisibleState","useEffect","requestAnimationFrame","currVisibleSlide","index","isAnimatable","totalNormalised","normalisedIndex","paddedCurrentIndex","padNumberToFixedLength","jsx","Provider","value","useGalleryControls","useContext"],"mappings":"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"}
@@ -107,10 +107,12 @@ const GalleryControlsProvider = ({
107
107
  } else {
108
108
  normalisedIndex = visibleSlide % totalNormalised;
109
109
  }
110
- } else if (visibleSlide === totalNormalised) {
111
- normalisedIndex = totalNormalised;
112
110
  } else {
113
- normalisedIndex = visibleSlide + 1;
111
+ if (visibleSlide === totalNormalised) {
112
+ normalisedIndex = totalNormalised;
113
+ } else {
114
+ normalisedIndex = visibleSlide + 1;
115
+ }
114
116
  }
115
117
  }
116
118
  const paddedCurrentIndex = padNumberToFixedLength(normalisedIndex, totalNormalised);