@ubnt/store.core 9.9.0-alpha.9 → 9.9.0

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 (295) hide show
  1. package/CHANGELOG.md +0 -30
  2. package/lib/_virtual/_virtual_multi-entry.js +0 -2
  3. package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
  4. package/lib/_virtual/_virtual_multi-entry.mjs +0 -2
  5. package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
  6. package/lib/assets/attention.svg +5 -5
  7. package/lib/assets/attention2.svg +5 -5
  8. package/lib/assets/pause.svg +3 -3
  9. package/lib/assets/pause2.svg +3 -3
  10. package/lib/assets/socialMedia/{x.svg.js → twitter.svg.js} +6 -6
  11. package/lib/assets/socialMedia/twitter.svg.js.map +1 -0
  12. package/lib/assets/socialMedia/twitter.svg.mjs +3 -0
  13. package/lib/assets/socialMedia/twitter.svg.mjs.map +1 -0
  14. package/lib/assets/twitter.svg +3 -0
  15. package/lib/assets/ucgMax.jpg +0 -0
  16. package/lib/assets/ucgMax2.jpg +0 -0
  17. package/lib/components/Footer/Footer.d.ts +1 -1
  18. package/lib/components/Footer/Footer.js +74 -192
  19. package/lib/components/Footer/Footer.js.map +1 -1
  20. package/lib/components/Footer/Footer.mjs +76 -174
  21. package/lib/components/Footer/Footer.mjs.map +1 -1
  22. package/lib/components/Footer/Footer.styles.d.ts +5 -17
  23. package/lib/components/Footer/Footer.styles.js +44 -91
  24. package/lib/components/Footer/Footer.styles.js.map +1 -1
  25. package/lib/components/Footer/Footer.styles.mjs +44 -87
  26. package/lib/components/Footer/Footer.styles.mjs.map +1 -1
  27. package/lib/components/Footer/Footer.types.d.ts +0 -40
  28. package/lib/components/Footer/Footer.types.js +0 -16
  29. package/lib/components/Footer/Footer.types.js.map +1 -1
  30. package/lib/components/Footer/Footer.types.mjs +0 -15
  31. package/lib/components/Footer/Footer.types.mjs.map +1 -1
  32. package/lib/components/Footer/index.js +1 -3
  33. package/lib/components/Footer/index.js.map +1 -1
  34. package/lib/components/Footer/index.mjs +1 -1
  35. package/lib/components/Header/AccountMenu/AccountMenu.js +3 -6
  36. package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
  37. package/lib/components/Header/AccountMenu/AccountMenu.mjs +3 -6
  38. package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
  39. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +6 -11
  40. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js.map +1 -1
  41. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.mjs +6 -11
  42. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.mjs.map +1 -1
  43. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +4 -8
  44. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
  45. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +4 -8
  46. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
  47. package/lib/components/Header/ProHeader/ProHeader.js +2 -19
  48. package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
  49. package/lib/components/Header/ProHeader/ProHeader.mjs +2 -19
  50. package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
  51. package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +0 -1
  52. package/lib/components/Header/ProHeader/ProHeader.styles.js +0 -6
  53. package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
  54. package/lib/components/Header/ProHeader/ProHeader.styles.mjs +0 -6
  55. package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
  56. package/lib/components/LandingPagePro/LandingPagePro.d.ts +0 -3
  57. package/lib/components/LandingPagePro/LandingPagePro.js +3 -3
  58. package/lib/components/LandingPagePro/LandingPagePro.js.map +1 -1
  59. package/lib/components/LandingPagePro/LandingPagePro.mjs +2 -2
  60. package/lib/components/LandingPagePro/LandingPagePro.mjs.map +1 -1
  61. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +1 -1
  62. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
  63. package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
  64. package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
  65. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.js +5 -5
  66. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.mjs +2 -2
  67. package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.js +1 -1
  68. package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.mjs +2 -2
  69. package/lib/components/ModelCompareV3/data/CloudGateways.js +3 -3
  70. package/lib/components/ModelCompareV3/data/CloudGateways.mjs +2 -2
  71. package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
  72. package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
  73. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +1 -6
  74. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
  75. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +1 -6
  76. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
  77. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +2 -2
  78. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js.map +1 -1
  79. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +2 -2
  80. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs.map +1 -1
  81. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js +0 -2
  82. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js.map +1 -1
  83. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs +0 -2
  84. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs.map +1 -1
  85. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
  86. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
  87. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +1 -1
  88. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
  89. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
  90. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
  91. package/lib/components/VideoPlayerNew/VideoPlayer.js +1 -1
  92. package/lib/components/VideoPlayerNew/VideoPlayer.mjs +1 -1
  93. package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
  94. package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
  95. package/lib/constants/footerContent.d.ts +145 -0
  96. package/lib/constants/footerContent.js +313 -0
  97. package/lib/constants/footerContent.js.map +1 -0
  98. package/lib/constants/footerContent.mjs +293 -0
  99. package/lib/constants/footerContent.mjs.map +1 -0
  100. package/lib/constants/proStoreCategories/mapping/index.d.ts +0 -3
  101. package/lib/constants/proStoreCategories/mapping/index.js +10 -20
  102. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  103. package/lib/constants/proStoreCategories/mapping/index.mjs +10 -20
  104. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  105. package/lib/constants/proStoreCategories/mapping/unifi.d.ts +1 -3
  106. package/lib/constants/proStoreCategories/mapping/unifi.js +0 -2
  107. package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
  108. package/lib/constants/proStoreCategories/mapping/unifi.mjs +0 -2
  109. package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
  110. package/lib/constants/proStoreCategories/translations/ar.json.js +1 -1
  111. package/lib/constants/proStoreCategories/translations/ar.json.mjs +1 -1
  112. package/lib/constants/proStoreCategories/translations/de.json.js +1 -1
  113. package/lib/constants/proStoreCategories/translations/de.json.mjs +1 -1
  114. package/lib/constants/proStoreCategories/translations/el.json.js +1 -1
  115. package/lib/constants/proStoreCategories/translations/el.json.mjs +1 -1
  116. package/lib/constants/proStoreCategories/translations/en.json.js +0 -5
  117. package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
  118. package/lib/constants/proStoreCategories/translations/en.json.mjs +1 -5
  119. package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
  120. package/lib/constants/proStoreCategories/translations/es.json.js +1 -1
  121. package/lib/constants/proStoreCategories/translations/es.json.mjs +1 -1
  122. package/lib/constants/proStoreCategories/translations/fr.json.js +2 -2
  123. package/lib/constants/proStoreCategories/translations/fr.json.mjs +2 -2
  124. package/lib/constants/proStoreCategories/translations/it.json.js +1 -1
  125. package/lib/constants/proStoreCategories/translations/it.json.mjs +1 -1
  126. package/lib/constants/proStoreCategories/translations/ja.json.js +1 -1
  127. package/lib/constants/proStoreCategories/translations/ja.json.mjs +1 -1
  128. package/lib/constants/proStoreCategories/translations/pt-BR.json.js +1 -1
  129. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +1 -1
  130. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +2 -2
  131. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +2 -2
  132. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +2 -2
  133. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +2 -2
  134. package/lib/constants/url.d.ts +4 -4
  135. package/lib/constants/url.js +4 -4
  136. package/lib/constants/url.js.map +1 -1
  137. package/lib/constants/url.mjs +4 -4
  138. package/lib/constants/url.mjs.map +1 -1
  139. package/lib/contexts/MenuContext/mapping.js +0 -41
  140. package/lib/contexts/MenuContext/mapping.js.map +1 -1
  141. package/lib/contexts/MenuContext/mapping.mjs +0 -41
  142. package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
  143. package/lib/contexts/MenuContext/presets.js.map +1 -1
  144. package/lib/contexts/MenuContext/presets.mjs.map +1 -1
  145. package/lib/utils/address.d.ts +61 -61
  146. package/lib/utils/index.d.ts +0 -1
  147. package/lib/utils/index.js +0 -2
  148. package/lib/utils/index.js.map +1 -1
  149. package/lib/utils/index.mjs +0 -2
  150. package/lib/utils/index.mjs.map +1 -1
  151. package/lib/utils/money/constants.d.ts +25 -56
  152. package/lib/utils/money/constants.js +7 -72
  153. package/lib/utils/money/constants.js.map +1 -1
  154. package/lib/utils/money/constants.mjs +7 -70
  155. package/lib/utils/money/constants.mjs.map +1 -1
  156. package/lib/utils/money/format.d.ts +5 -10
  157. package/lib/utils/money/format.js +14 -22
  158. package/lib/utils/money/format.js.map +1 -1
  159. package/lib/utils/money/format.mjs +16 -23
  160. package/lib/utils/money/format.mjs.map +1 -1
  161. package/lib/utils/money/index.d.ts +1 -4
  162. package/lib/utils/money/index.js +8 -26
  163. package/lib/utils/money/index.js.map +1 -1
  164. package/lib/utils/money/index.mjs +4 -8
  165. package/lib/utils/money/index.mjs.map +1 -1
  166. package/lib/utils/money/misc.d.ts +28 -68
  167. package/lib/utils/money/misc.js +64 -35
  168. package/lib/utils/money/misc.js.map +1 -1
  169. package/lib/utils/money/misc.mjs +43 -32
  170. package/lib/utils/money/misc.mjs.map +1 -1
  171. package/lib/utils/money/tax.d.ts +2 -38
  172. package/lib/utils/money/tax.js +10 -46
  173. package/lib/utils/money/tax.js.map +1 -1
  174. package/lib/utils/money/tax.mjs +11 -42
  175. package/lib/utils/money/tax.mjs.map +1 -1
  176. package/lib/utils/money/types.d.ts +3 -78
  177. package/lib/utils/number.d.ts +1 -1
  178. package/lib/utils/number.js +1 -1
  179. package/lib/utils/number.js.map +1 -1
  180. package/lib/utils/number.mjs +1 -1
  181. package/lib/utils/number.mjs.map +1 -1
  182. package/lib/utils/validations.d.ts +15 -0
  183. package/lib/utils/validations.js +23 -0
  184. package/lib/utils/validations.js.map +1 -0
  185. package/lib/utils/validations.mjs +21 -0
  186. package/lib/utils/validations.mjs.map +1 -0
  187. package/package.json +1 -1
  188. package/lib/assets/socialMedia/x.svg.js.map +0 -1
  189. package/lib/assets/socialMedia/x.svg.mjs +0 -3
  190. package/lib/assets/socialMedia/x.svg.mjs.map +0 -1
  191. package/lib/assets/x.svg +0 -3
  192. package/lib/components/Footer/hooks/useFooterContent.d.ts +0 -94
  193. package/lib/components/Footer/hooks/useFooterContent.js +0 -384
  194. package/lib/components/Footer/hooks/useFooterContent.js.map +0 -1
  195. package/lib/components/Footer/hooks/useFooterContent.mjs +0 -348
  196. package/lib/components/Footer/hooks/useFooterContent.mjs.map +0 -1
  197. package/lib/components/Footer/translations/ar.json.js +0 -47
  198. package/lib/components/Footer/translations/ar.json.js.map +0 -1
  199. package/lib/components/Footer/translations/ar.json.mjs +0 -42
  200. package/lib/components/Footer/translations/ar.json.mjs.map +0 -1
  201. package/lib/components/Footer/translations/de.json.js +0 -47
  202. package/lib/components/Footer/translations/de.json.js.map +0 -1
  203. package/lib/components/Footer/translations/de.json.mjs +0 -42
  204. package/lib/components/Footer/translations/de.json.mjs.map +0 -1
  205. package/lib/components/Footer/translations/el.json.js +0 -47
  206. package/lib/components/Footer/translations/el.json.js.map +0 -1
  207. package/lib/components/Footer/translations/el.json.mjs +0 -42
  208. package/lib/components/Footer/translations/el.json.mjs.map +0 -1
  209. package/lib/components/Footer/translations/en.json.js +0 -46
  210. package/lib/components/Footer/translations/en.json.js.map +0 -1
  211. package/lib/components/Footer/translations/en.json.mjs +0 -41
  212. package/lib/components/Footer/translations/en.json.mjs.map +0 -1
  213. package/lib/components/Footer/translations/es.json.js +0 -47
  214. package/lib/components/Footer/translations/es.json.js.map +0 -1
  215. package/lib/components/Footer/translations/es.json.mjs +0 -42
  216. package/lib/components/Footer/translations/es.json.mjs.map +0 -1
  217. package/lib/components/Footer/translations/fr.json.js +0 -47
  218. package/lib/components/Footer/translations/fr.json.js.map +0 -1
  219. package/lib/components/Footer/translations/fr.json.mjs +0 -42
  220. package/lib/components/Footer/translations/fr.json.mjs.map +0 -1
  221. package/lib/components/Footer/translations/it.json.js +0 -47
  222. package/lib/components/Footer/translations/it.json.js.map +0 -1
  223. package/lib/components/Footer/translations/it.json.mjs +0 -42
  224. package/lib/components/Footer/translations/it.json.mjs.map +0 -1
  225. package/lib/components/Footer/translations/ja.json.js +0 -47
  226. package/lib/components/Footer/translations/ja.json.js.map +0 -1
  227. package/lib/components/Footer/translations/ja.json.mjs +0 -42
  228. package/lib/components/Footer/translations/ja.json.mjs.map +0 -1
  229. package/lib/components/Footer/translations/pt-BR.json.js +0 -47
  230. package/lib/components/Footer/translations/pt-BR.json.js.map +0 -1
  231. package/lib/components/Footer/translations/pt-BR.json.mjs +0 -42
  232. package/lib/components/Footer/translations/pt-BR.json.mjs.map +0 -1
  233. package/lib/components/Footer/translations/zh-Hans.json.js +0 -47
  234. package/lib/components/Footer/translations/zh-Hans.json.js.map +0 -1
  235. package/lib/components/Footer/translations/zh-Hans.json.mjs +0 -42
  236. package/lib/components/Footer/translations/zh-Hans.json.mjs.map +0 -1
  237. package/lib/components/Footer/translations/zh-Hant-TW.json.js +0 -47
  238. package/lib/components/Footer/translations/zh-Hant-TW.json.js.map +0 -1
  239. package/lib/components/Footer/translations/zh-Hant-TW.json.mjs +0 -42
  240. package/lib/components/Footer/translations/zh-Hant-TW.json.mjs.map +0 -1
  241. package/lib/components/Tooltip/Tooltip.d.ts +0 -2
  242. package/lib/components/Tooltip/Tooltip.js +0 -45
  243. package/lib/components/Tooltip/Tooltip.js.map +0 -1
  244. package/lib/components/Tooltip/Tooltip.mjs +0 -43
  245. package/lib/components/Tooltip/Tooltip.mjs.map +0 -1
  246. package/lib/components/Tooltip/Tooltip.styles.d.ts +0 -32
  247. package/lib/components/Tooltip/Tooltip.styles.js +0 -44
  248. package/lib/components/Tooltip/Tooltip.styles.js.map +0 -1
  249. package/lib/components/Tooltip/Tooltip.styles.mjs +0 -34
  250. package/lib/components/Tooltip/Tooltip.styles.mjs.map +0 -1
  251. package/lib/components/Tooltip/index.d.ts +0 -1
  252. package/lib/components/Tooltip/index.js +0 -6
  253. package/lib/components/Tooltip/index.js.map +0 -1
  254. package/lib/components/Tooltip/index.mjs +0 -3
  255. package/lib/components/Tooltip/index.mjs.map +0 -1
  256. package/lib/utils/money/allocators/fixedAmount.d.ts +0 -26
  257. package/lib/utils/money/allocators/fixedAmount.js +0 -55
  258. package/lib/utils/money/allocators/fixedAmount.js.map +0 -1
  259. package/lib/utils/money/allocators/fixedAmount.mjs +0 -53
  260. package/lib/utils/money/allocators/fixedAmount.mjs.map +0 -1
  261. package/lib/utils/money/allocators/index.d.ts +0 -2
  262. package/lib/utils/money/allocators/index.js +0 -8
  263. package/lib/utils/money/allocators/index.js.map +0 -1
  264. package/lib/utils/money/allocators/index.mjs +0 -4
  265. package/lib/utils/money/allocators/index.mjs.map +0 -1
  266. package/lib/utils/money/allocators/productAmount.d.ts +0 -13
  267. package/lib/utils/money/allocators/productAmount.js +0 -110
  268. package/lib/utils/money/allocators/productAmount.js.map +0 -1
  269. package/lib/utils/money/allocators/productAmount.mjs +0 -108
  270. package/lib/utils/money/allocators/productAmount.mjs.map +0 -1
  271. package/lib/utils/money/exchangeRate.d.ts +0 -31
  272. package/lib/utils/money/exchangeRate.js +0 -27
  273. package/lib/utils/money/exchangeRate.js.map +0 -1
  274. package/lib/utils/money/exchangeRate.mjs +0 -23
  275. package/lib/utils/money/exchangeRate.mjs.map +0 -1
  276. package/lib/utils/money/misc.private.d.ts +0 -23
  277. package/lib/utils/money/misc.private.js +0 -46
  278. package/lib/utils/money/misc.private.js.map +0 -1
  279. package/lib/utils/money/misc.private.mjs +0 -21
  280. package/lib/utils/money/misc.private.mjs.map +0 -1
  281. package/lib/utils/money/shipping.d.ts +0 -5
  282. package/lib/utils/money/shipping.js +0 -8
  283. package/lib/utils/money/shipping.js.map +0 -1
  284. package/lib/utils/money/shipping.mjs +0 -6
  285. package/lib/utils/money/shipping.mjs.map +0 -1
  286. package/lib/utils/money/tax.private.d.ts +0 -17
  287. package/lib/utils/money/tax.private.js +0 -65
  288. package/lib/utils/money/tax.private.js.map +0 -1
  289. package/lib/utils/money/tax.private.mjs +0 -60
  290. package/lib/utils/money/tax.private.mjs.map +0 -1
  291. package/lib/utils/typeGuards.d.ts +0 -1
  292. package/lib/utils/typeGuards.js +0 -6
  293. package/lib/utils/typeGuards.js.map +0 -1
  294. package/lib/utils/typeGuards.mjs +0 -5
  295. package/lib/utils/typeGuards.mjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -6,36 +6,6 @@
6
6
 
7
7
  ## Releases
8
8
 
9
- ### 9.9.0-alpha.9
10
-
11
- - [Fix] [MIC-167](https://ubiquiti.atlassian.net/browse/MIC-167) Fix font-family for email placeholder
12
-
13
- ### 9.9.0-alpha.8
14
-
15
- - [Fix] [MIC-167](https://ubiquiti.atlassian.net/browse/MIC-167) Fix cookie button styling
16
-
17
- ### 9.9.0-alpha.7
18
-
19
- - [Fix] [MIC-167](https://ubiquiti.atlassian.net/browse/MIC-167) Fix footer styling
20
-
21
- ### 9.9.0-alpha.6
22
-
23
- - [Fix] [MIC-167](https://ubiquiti.atlassian.net/browse/MIC-167) Open Mailchimp screen in new tab
24
-
25
- ### 9.9.0-alpha.5
26
-
27
- - [Feat] [MIC-167](https://ubiquiti.atlassian.net/browse/MIC-167) Revive Footer component for shared usage between projects (don't use Store BE for subscribing)
28
-
29
- ### 9.9.0-alpha.4
30
-
31
- - [Feat] [NEP-3494](https://ubiquiti.atlassian.net/browse/NEP-3494) Split "Cables & Modules" category into two categories -> "RJ45 & Copper" and "SFP & Fiber"
32
- - [Fix] [NEP-3149](https://ubiquiti.atlassian.net/browse/NEP-3149) Fix Resource Calculator overlay and remove footer note if no content
33
- - [Feat] [NEP-3419](https://ubiquiti.atlassian.net/browse/NEP-3419) Update cart icon logic
34
- - [Fix] [NEP-3402](https://ubiquiti.atlassian.net/browse/NEP-3402) Add forced features for consoles in resource calculator
35
- - [Feat] [MIC-167](https://ubiquiti.atlassian.net/browse/MIC-167) Revive Footer component for shared usage between projects
36
- - [NEP-3300](https://ubiquiti.atlassian.net/browse/NEP-3300) Add NAS category in pro store
37
- - [Feat] [NEP-3353](https://ubiquiti.atlassian.net/browse/NEP-3353) Hide menu items that are not available in India
38
-
39
9
  ### 9.9.0
40
10
 
41
11
  - [Feat] [MIC-315](https://ubiquiti.atlassian.net/browse/MIC-315) Updates for UISP.com:
@@ -90,7 +90,6 @@ var product = require('../utils/product.js');
90
90
  var asset = require('../utils/asset.js');
91
91
  var imageOptimizer = require('../utils/imageOptimizer.js');
92
92
  var styles = require('../utils/styles.js');
93
- var storeId = require('../utils/storeId.js');
94
93
  var index$V = require('../constants/proStoreCategories/index.js');
95
94
  var index$W = require('../constants/proStoreFilters/index.js');
96
95
  var proStoreCategories = require('../helpers/proStoreCategories.js');
@@ -188,7 +187,6 @@ exports.product = product;
188
187
  exports.asset = asset;
189
188
  exports.imageOptimizer = imageOptimizer;
190
189
  exports.styles = styles;
191
- exports.storeId = storeId;
192
190
  exports.proStoreCategories = index$V;
193
191
  exports.proStoreFilters = index$W;
194
192
  exports.getCategoriesBySubcategory = proStoreCategories.getCategoriesBySubcategory;
@@ -1 +1 @@
1
- {"version":3,"file":"_virtual_multi-entry.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"_virtual_multi-entry.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -164,8 +164,6 @@ import * as imageOptimizer from '../utils/imageOptimizer.mjs';
164
164
  export { imageOptimizer };
165
165
  import * as styles from '../utils/styles.mjs';
166
166
  export { styles };
167
- import * as storeId from '../utils/storeId.mjs';
168
- export { storeId };
169
167
  import * as index$V from '../constants/proStoreCategories/index.mjs';
170
168
  export { index$V as proStoreCategories };
171
169
  import * as index$W from '../constants/proStoreFilters/index.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"_virtual_multi-entry.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"_virtual_multi-entry.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -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,4 +1,4 @@
1
- <svg width="13" height="17" viewBox="0 0 13 17" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <rect x="0.232422" width="4" height="17" rx="2" fill="#393A3F"/>
3
- <rect x="8.23242" width="4" height="17" rx="2" fill="#393A3F"/>
1
+ <svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect x="6" y="3" width="3" height="16" rx="1.5" fill="#393A3F"/>
3
+ <rect x="12" y="3" width="3" height="16" rx="1.5" fill="#393A3F"/>
4
4
  </svg>
@@ -1,4 +1,4 @@
1
- <svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <rect x="6" y="3" width="3" height="16" rx="1.5" fill="#393A3F"/>
3
- <rect x="12" y="3" width="3" height="16" rx="1.5" fill="#393A3F"/>
1
+ <svg width="13" height="17" viewBox="0 0 13 17" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect x="0.232422" width="4" height="17" rx="2" fill="#393A3F"/>
3
+ <rect x="8.23242" width="4" height="17" rx="2" fill="#393A3F"/>
4
4
  </svg>
@@ -3,25 +3,25 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var XIcon = require("../x.svg");
6
+ var TwitterIcon = require("../twitter.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
10
10
  };
11
11
  }
12
- var XIcon__default = /*#__PURE__*/_interopDefault(XIcon);
12
+ var TwitterIcon__default = /*#__PURE__*/_interopDefault(TwitterIcon);
13
13
  Object.defineProperty(exports, "default", {
14
14
  enumerable: true,
15
15
  get: function () {
16
- return XIcon__default["default"];
16
+ return TwitterIcon__default["default"];
17
17
  }
18
18
  });
19
- Object.keys(XIcon).forEach(function (k) {
19
+ Object.keys(TwitterIcon).forEach(function (k) {
20
20
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
21
21
  enumerable: true,
22
22
  get: function () {
23
- return XIcon[k];
23
+ return TwitterIcon[k];
24
24
  }
25
25
  });
26
26
  });
27
- //# sourceMappingURL=x.svg.js.map
27
+ //# sourceMappingURL=twitter.svg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"twitter.svg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,3 @@
1
+ export * from "../twitter.svg";
2
+ export { default } from "../twitter.svg";
3
+ //# sourceMappingURL=twitter.svg.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"twitter.svg.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,3 @@
1
+ <svg width="18" height="14" viewBox="0 0 18 14" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path opacity="0.9" fill-rule="evenodd" clip-rule="evenodd" d="M17.417 1.64946C17.1818 1.99671 16.9136 2.32588 16.6123 2.63697C16.311 2.94805 15.9913 3.22657 15.6532 3.47255V3.68958V3.92832C15.6532 5.08583 15.4328 6.25782 14.9918 7.44427C14.5509 8.63073 13.9005 9.70504 13.0407 10.6672C12.1809 11.6294 11.1153 12.4144 9.84391 13.0221C8.57254 13.6297 7.11378 13.9336 5.46761 13.9336C4.46816 13.9336 3.50545 13.7961 2.57948 13.5212C1.65351 13.2463 0.793686 12.8557 0 12.3492C0.132281 12.3637 0.271911 12.3782 0.41889 12.3927C0.565869 12.4071 0.705498 12.4144 0.83778 12.4144C1.67556 12.4144 2.47292 12.2805 3.22986 12.0128C3.9868 11.7452 4.67393 11.3726 5.29124 10.8951C4.51225 10.8806 3.81778 10.6455 3.20781 10.1898C2.59785 9.73398 2.17529 9.15884 1.94012 8.46433C2.0577 8.4788 2.17161 8.49327 2.28185 8.50774C2.39208 8.52221 2.50599 8.52944 2.62357 8.52944C2.78525 8.52944 2.94325 8.51859 3.09758 8.49689C3.25191 8.47518 3.40991 8.44263 3.57159 8.39922C2.74851 8.24006 2.06138 7.83855 1.51021 7.19468C0.959038 6.55082 0.683453 5.80205 0.683453 4.94838V4.92668V4.90497C0.933316 5.03519 1.1942 5.14009 1.46611 5.21967C1.73802 5.29925 2.02096 5.33904 2.31492 5.33904C1.82989 5.02072 1.44407 4.60474 1.15746 4.09109C0.870851 3.57745 0.727545 3.01677 0.727545 2.40908C0.727545 2.09076 0.767964 1.7833 0.848803 1.48668C0.929641 1.19007 1.0509 0.911543 1.21258 0.651102C1.65351 1.17198 2.14589 1.65308 2.68971 2.09438C3.23353 2.53568 3.81778 2.91188 4.44244 3.22296C5.0671 3.53404 5.72483 3.78363 6.41563 3.97173C7.10643 4.15982 7.82662 4.27557 8.57622 4.31898C8.54682 4.18876 8.52477 4.05854 8.51007 3.92832C8.49538 3.7981 8.48803 3.66064 8.48803 3.51595C8.48803 2.54653 8.8371 1.71819 9.53525 1.03091C10.2334 0.343637 11.0749 0 12.0596 0C12.574 0 13.0554 0.0976648 13.5037 0.292996C13.952 0.488327 14.3378 0.759619 14.6611 1.10687C15.0727 1.02006 15.4695 0.907926 15.8517 0.770471C16.2338 0.633016 16.5939 0.463006 16.932 0.260441C16.7997 0.665571 16.5976 1.03453 16.3257 1.36732C16.0538 1.7001 15.7341 1.97501 15.3666 2.19204C15.7341 2.14864 16.0868 2.08353 16.4249 1.99671C16.7629 1.9099 17.0936 1.79415 17.417 1.64946Z" fill="#838691"/>
3
+ </svg>
Binary file
Binary file
@@ -1,2 +1,2 @@
1
1
  import type { FooterProps } from "./Footer.types";
2
- export declare const Footer: ({ legalOnly, motif, id, customer, storePicker, storeAddress, className, }: FooterProps) => JSX.Element;
2
+ export declare const Footer: import("react").NamedExoticComponent<FooterProps>;
@@ -2,210 +2,92 @@
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
4
  var react = require('react');
5
- require('../../contexts/MenuContext/index.js');
6
- var mapping = require('../../contexts/MenuContext/mapping.js');
7
- require('../../hooks/index.js');
8
- require('../../types/index.js');
9
- var asset = require('../../utils/asset.js');
10
- require('../Container/index.js');
5
+ var footerContent = require('../../constants/footerContent.js');
11
6
  var Footer_styles = require('./Footer.styles.js');
12
- var useFooterContent = require('./hooks/useFooterContent.js');
13
- var en = require('./translations/en.json.js');
14
- var generated = require('../../types/generated.js');
15
- var context = require('../../contexts/MenuContext/context.js');
16
- var useTranslation = require('../../hooks/useTranslation.js');
17
- var constants = require('../../types/constants.js');
18
- var Container = require('../Container/Container.js');
19
7
  "use strict";
20
- const subscribeRegionValue = {
21
- [generated.GlobalStoreId.Us]: "United States",
22
- [generated.GlobalStoreId.Eu]: "Europe",
23
- [generated.GlobalStoreId.Ca]: "Canada",
24
- [generated.GlobalStoreId.Za]: "South Africa",
25
- [generated.GlobalStoreId.Me]: "Middle East",
26
- [generated.GlobalStoreId.Uk]: "United Kingdom",
27
- [generated.GlobalStoreId.In]: "India",
28
- [generated.GlobalStoreId.Sg]: "Singapore",
29
- [generated.GlobalStoreId.Br]: "Brazil",
30
- [generated.GlobalStoreId.Jp]: "Japan",
31
- [generated.GlobalStoreId.Mx]: "Mexico",
32
- [generated.GlobalStoreId.Ph]: "Philippines",
33
- [generated.GlobalStoreId.Tw]: "Taiwan",
34
- [generated.GlobalStoreId.Cn]: "China"
35
- };
36
- const Footer = ({
8
+ const Footer = react.memo(function Footer2({
37
9
  legalOnly,
38
- motif = "light",
39
- id,
40
- customer,
41
- storePicker,
42
- // storeBackendUrl,
43
- storeAddress,
44
- className
45
- }) => {
46
- const {
47
- storeId,
48
- context: context$1
49
- } = context.useMenu();
50
- const {
51
- footerContent,
52
- socialContent,
53
- termsContent
54
- } = useFooterContent.useFooterContent();
55
- const {
56
- formatMessage
57
- } = useTranslation.useTranslation({
58
- defaultTranslation: en["default"],
59
- additionalTranslations: {
60
- [constants.Language.Ja]: () => Promise.resolve().then(function () {
61
- return require('./translations/ja.json.js');
62
- }).then(res => res.default),
63
- [constants.Language.Ar]: () => Promise.resolve().then(function () {
64
- return require('./translations/ar.json.js');
65
- }).then(res => res.default),
66
- [constants.Language.De]: () => Promise.resolve().then(function () {
67
- return require('./translations/de.json.js');
68
- }).then(res => res.default),
69
- [constants.Language.Es]: () => Promise.resolve().then(function () {
70
- return require('./translations/es.json.js');
71
- }).then(res => res.default),
72
- [constants.Language.El]: () => Promise.resolve().then(function () {
73
- return require('./translations/el.json.js');
74
- }).then(res => res.default),
75
- [constants.Language.It]: () => Promise.resolve().then(function () {
76
- return require('./translations/it.json.js');
77
- }).then(res => res.default),
78
- [constants.Language.Pt]: () => Promise.resolve().then(function () {
79
- return require('./translations/pt-BR.json.js');
80
- }).then(res => res.default),
81
- [constants.Language.Zh]: () => Promise.resolve().then(function () {
82
- return require('./translations/zh-Hans.json.js');
83
- }).then(res => res.default),
84
- [constants.Language.Fr]: () => Promise.resolve().then(function () {
85
- return require('./translations/fr.json.js');
86
- }).then(res => res.default),
87
- [constants.Language.Tw]: () => Promise.resolve().then(function () {
88
- return require('./translations/zh-Hant-TW.json.js');
89
- }).then(res => res.default)
90
- }
91
- });
92
- const hiddenFields = react.useMemo(() => {
93
- return {
94
- // Merge fields are based on Mailchimp settings
95
- u: "bc856e62a9254399365d0277b",
96
- id: "1c1b02cb37",
97
- MERGE1: customer?.firstName,
98
- MERGE2: customer?.lastName,
99
- // Always set the user as residential as we don't have any other type of user
100
- MERGE4: "Residential (home use)",
101
- // Always set the user as subscribed to all lists
102
- MERGE3: "subscribed",
103
- MERGE7: "subscribed",
104
- MERGE8: "subscribed",
105
- // Store region value expected in two fields
106
- MERGE6: subscribeRegionValue[storeId],
107
- MERGE9: subscribeRegionValue[storeId]
108
- };
109
- }, [customer?.firstName, customer?.lastName, storeId]);
10
+ motif = "light"
11
+ }) {
12
+ const termsContent = footerContent.contentForTerms();
110
13
  return /* @__PURE__ */jsxRuntime.jsx(Footer_styles.ContainerWrap, {
111
14
  condensed: legalOnly,
112
- $motif: motif,
113
- id,
114
- className,
115
- children: /* @__PURE__ */jsxRuntime.jsx(Container.Container, {
116
- size: "desktop",
117
- noVerticalMargin: true,
118
- children: /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.InnerContainer, {
119
- children: [!legalOnly && /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
120
- children: [/* @__PURE__ */jsxRuntime.jsxs(Footer_styles.Wrap, {
121
- children: [/* @__PURE__ */jsxRuntime.jsx(Footer_styles.ListsWrap, {
122
- children: Object.values(footerContent).map((list, i) => /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.ListItemWrap, {
123
- children: [/* @__PURE__ */jsxRuntime.jsxs(Footer_styles.Header, {
124
- children: [" ", list.header.label]
125
- }), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.List, {
126
- children: list.items.map((item, j) => /* @__PURE__ */jsxRuntime.jsx(Footer_styles.ListItem, {
127
- children: /* @__PURE__ */jsxRuntime.jsx(Footer_styles.ListItemAnchor, {
128
- href: item.src,
129
- target: item.target,
130
- children: item.label
131
- })
132
- }, `footer-list-${i}-item-${j}`))
133
- })]
134
- }, `footer-list-${i}`))
135
- }), /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.InnerWrap, {
136
- children: [/* @__PURE__ */jsxRuntime.jsxs(Footer_styles.Form, {
137
- method: "get",
138
- action: "https://ui.us8.list-manage.com/subscribe",
139
- target: "_blank",
140
- children: [/* @__PURE__ */jsxRuntime.jsx(Footer_styles.Header, {
141
- children: formatMessage("footer.newsletter.touch")
142
- }), Object.entries(hiddenFields).map(([key, value]) => /* @__PURE__ */jsxRuntime.jsx("input", {
143
- type: "hidden",
144
- name: key,
145
- value
146
- }, key)), /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.InputWrap, {
147
- children: [/* @__PURE__ */jsxRuntime.jsx(Footer_styles.Input, {
148
- type: "text",
149
- pattern: "[^@\\s]+@[^@\\s]+\\.[^@\\s]+",
150
- minLength: 6,
151
- maxLength: 254,
152
- required: true,
153
- autoCapitalize: "off",
154
- autoCorrect: "off",
155
- placeholder: formatMessage("footer.newsletter.email"),
156
- name: "EMAIL"
157
- }), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.SubmitButton, {
158
- type: "submit",
159
- className: motif,
160
- variant: "primary",
161
- children: formatMessage("footer.newsletter.subscribe")
162
- })]
15
+ $darkMode: motif === "dark",
16
+ children: /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.Container, {
17
+ children: [!legalOnly && /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
18
+ children: [/* @__PURE__ */jsxRuntime.jsxs(Footer_styles.Wrap, {
19
+ children: [/* @__PURE__ */jsxRuntime.jsx(Footer_styles.ListsWrap, {
20
+ children: Object.values(footerContent.FOOTER_CONTENT).map((list, i) => /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.ListItemWrap, {
21
+ children: [/* @__PURE__ */jsxRuntime.jsxs(Footer_styles.Header, {
22
+ children: [" ", list.header.label]
23
+ }), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.List, {
24
+ children: list.items.map((item, j) => /* @__PURE__ */jsxRuntime.jsx(Footer_styles.ListItem, {
25
+ children: /* @__PURE__ */jsxRuntime.jsx(Footer_styles.ListItemAnchor, {
26
+ href: item.src,
27
+ target: item.target,
28
+ children: item.label
29
+ })
30
+ }, `footer-list-${i}-item-${j}`))
31
+ })]
32
+ }, `footer-list-${i}`))
33
+ }), /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.InnerWrap, {
34
+ children: [/* @__PURE__ */jsxRuntime.jsxs(Footer_styles.Form, {
35
+ method: "post",
36
+ action: "https://ubnt.us8.list-manage.com/subscribe/post?u=bc856e62a9254399365d0277b",
37
+ target: "_blank",
38
+ children: [/* @__PURE__ */jsxRuntime.jsx(Footer_styles.Header, {
39
+ children: "Stay in Touch"
40
+ }), /* @__PURE__ */jsxRuntime.jsx("input", {
41
+ type: "hidden",
42
+ name: "id",
43
+ value: "1c1b02cb37"
44
+ }), /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.InputWrap, {
45
+ children: [/* @__PURE__ */jsxRuntime.jsx(Footer_styles.Input, {
46
+ type: "text",
47
+ placeholder: "Email",
48
+ name: "EMAIL"
49
+ }), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.Button, {
50
+ type: "submit",
51
+ className: motif,
52
+ children: "Subscribe"
163
53
  })]
164
- }), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.IconsWrapper, {
165
- children: socialContent.items.map(socialItem => /* @__PURE__ */jsxRuntime.jsx(Footer_styles.IconWrapper, {
166
- href: socialItem.src,
167
- target: socialItem.target,
168
- children: socialItem.icon ? /* @__PURE__ */jsxRuntime.jsx("img", {
169
- src: asset.imageSrc(socialItem.icon),
170
- alt: socialItem.label
171
- }) : socialItem.label
172
- }, `footer-social-link-${socialItem.label}`))
173
54
  })]
55
+ }), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.IconsWrapper, {
56
+ children: footerContent.SOCIAL_CONTENT.items.map(socialItem => /* @__PURE__ */jsxRuntime.jsx(Footer_styles.IconWrapper, {
57
+ href: socialItem.src,
58
+ target: socialItem.target,
59
+ children: /* @__PURE__ */jsxRuntime.jsx("img", {
60
+ src: typeof socialItem.icon === "string" ? socialItem.icon : socialItem.icon.src,
61
+ alt: socialItem.label
62
+ })
63
+ }, `footer-social-link-${socialItem.label}`))
174
64
  })]
175
- }), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.Break, {
176
- $motif: motif
177
- })]
178
- }), context$1 === mapping.SiteId.Store && storeAddress && /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
179
- children: [/* @__PURE__ */jsxRuntime.jsx(Footer_styles.StoreAddress, {
180
- children: storeAddress
181
- }), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.Break, {
182
- $motif: motif
183
65
  })]
184
- }), /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.TermsWrap, {
185
- children: [/* @__PURE__ */jsxRuntime.jsx(Footer_styles.FlexWrap, {
186
- children: termsContent.items.map((term, i) => /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.AnchorGroup, {
187
- children: [term.id === useFooterContent.FooterLinkId.Cookie ? /* @__PURE__ */jsxRuntime.jsx(Footer_styles.CookieBtn, {
188
- type: "button",
189
- id: useFooterContent.COOKIE_POLICY_BTN_ID,
190
- className: useFooterContent.COOKIE_POLICY_BTN_ID_CLASSNAME,
191
- children: term.label
192
- }, `footer-term-${term.id}`) : /* @__PURE__ */jsxRuntime.jsx(Footer_styles.Anchor, {
193
- href: term.src,
194
- target: term.target,
195
- children: term.label
196
- }), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.AnchorDivider, {
197
- children: i !== termsContent.items.length - 1 && "|"
198
- })]
199
- }, `footer-term-${term.id}`))
200
- }), /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.FlexWrapResponsive, {
201
- children: [storePicker, /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.Copyright, {
202
- children: ["\xA9 ", ( /* @__PURE__ */new Date()).getFullYear(), " ", formatMessage("footer.copyright")]
66
+ }), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.Break, {
67
+ $darkMode: motif === "dark"
68
+ })]
69
+ }), /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.TermsWrap, {
70
+ children: [/* @__PURE__ */jsxRuntime.jsx(Footer_styles.FlexWrap, {
71
+ children: termsContent.items.map((term, i) => term.id === footerContent.FooterLinkId.Cookie ? /* @__PURE__ */jsxRuntime.jsx(Footer_styles.CookieBtn, {
72
+ type: "button",
73
+ id: footerContent.COOKIE_POLICY_BTN_ID,
74
+ className: footerContent.COOKIE_POLICY_BTN_ID_CLASSNAME,
75
+ children: term.label
76
+ }, `footer-term-${term.id}`) : /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.AnchorGroup, {
77
+ children: [/* @__PURE__ */jsxRuntime.jsx(Footer_styles.Anchor, {
78
+ href: term.src,
79
+ target: term.target,
80
+ children: term.label
81
+ }), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.AnchorDivider, {
82
+ children: i !== termsContent.items.length - 1 && "|"
203
83
  })]
204
- })]
84
+ }, `footer-term-${term.id}`))
85
+ }), /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.Copyright, {
86
+ children: ["\xA9 ", ( /* @__PURE__ */new Date()).getFullYear(), " Ubiquiti, Inc. All rights reserved."]
205
87
  })]
206
- })
88
+ })]
207
89
  })
208
90
  });
209
- };
91
+ });
210
92
  exports.Footer = Footer;
211
93
  //# sourceMappingURL=Footer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Footer.js","sources":["../../../src/components/Footer/Footer.tsx"],"sourcesContent":["import { useMemo } from \"react\";\n\nimport { useMenu } from \"../../contexts/MenuContext\";\nimport { Language, SiteId } from \"../../contexts/MenuContext/mapping\";\nimport { useTranslation } from \"../../hooks\";\nimport { GlobalStoreId } from \"../../types\";\nimport { imageSrc } from \"../../utils/asset\";\nimport { Container } from \"../Container\";\nimport {\n Anchor,\n AnchorDivider,\n AnchorGroup,\n Break,\n ContainerWrap,\n CookieBtn,\n Copyright,\n FlexWrap,\n FlexWrapResponsive,\n Form,\n Header,\n IconsWrapper,\n IconWrapper,\n InnerContainer,\n InnerWrap,\n Input,\n InputWrap,\n List,\n ListItem,\n ListItemAnchor,\n ListItemWrap,\n ListsWrap,\n StoreAddress,\n SubmitButton,\n TermsWrap,\n Wrap,\n} from \"./Footer.styles\";\nimport type { FooterProps } from \"./Footer.types\";\nimport {\n COOKIE_POLICY_BTN_ID,\n COOKIE_POLICY_BTN_ID_CLASSNAME,\n FooterLinkId,\n useFooterContent,\n} from \"./hooks/useFooterContent\";\nimport EN_TRANSLATION from \"./translations/en.json\";\n\n/**\n * NOTE: All commented out code is here because the BE is not implemented yet.\n * BE needs a lot of work to be done but the FE is ready to use the old way\n * of subscribing to the newsletter.\n */\n// const translationKeys = {\n// footerNewsletterError: \"footer.newsletter.error\",\n// } as const;\n\n// const getNewsletterSubscribeErrorCodeTranslationKey = (\n// errorCode?: NewsletterSubscribeErrorCode,\n// ): FooterTranslationKey => {\n// switch (errorCode) {\n// case NewsletterSubscribeErrorCode.MissingEmail:\n// return \"footer.newsletter.error.missingEmail\";\n// case NewsletterSubscribeErrorCode.InvalidEmail:\n// return \"footer.newsletter.error.invalidEmail\";\n// case NewsletterSubscribeErrorCode.TooManyRequests:\n// return \"footer.newsletter.error.tooManyRequests\";\n// // Don't want to show error message about Store ID being invalid because it is added in the background\n// case NewsletterSubscribeErrorCode.InvalidStoreId:\n// case NewsletterSubscribeErrorCode.Generic:\n// return translationKeys.footerNewsletterError;\n// default:\n// return translationKeys.footerNewsletterError;\n// }\n// };\n\n/**\n * Map store ID to Mailchimp region value\n */\nconst subscribeRegionValue = {\n [GlobalStoreId.Us]: \"United States\",\n [GlobalStoreId.Eu]: \"Europe\",\n [GlobalStoreId.Ca]: \"Canada\",\n [GlobalStoreId.Za]: \"South Africa\",\n [GlobalStoreId.Me]: \"Middle East\",\n [GlobalStoreId.Uk]: \"United Kingdom\",\n [GlobalStoreId.In]: \"India\",\n [GlobalStoreId.Sg]: \"Singapore\",\n [GlobalStoreId.Br]: \"Brazil\",\n [GlobalStoreId.Jp]: \"Japan\",\n [GlobalStoreId.Mx]: \"Mexico\",\n [GlobalStoreId.Ph]: \"Philippines\",\n [GlobalStoreId.Tw]: \"Taiwan\",\n [GlobalStoreId.Cn]: \"China\",\n} satisfies Record<GlobalStoreId, string>;\n\nexport const Footer = ({\n legalOnly,\n motif = \"light\",\n id,\n customer,\n storePicker,\n // storeBackendUrl,\n storeAddress,\n className,\n}: FooterProps) => {\n // const formRef = useRef<HTMLFormElement>(null);\n const { storeId, context } = useMenu();\n\n // const [formStatus, setFormStatus] = useState<\n // | {\n // status: FormStatus;\n // message: string;\n // }\n // | undefined\n // >(undefined);\n\n // const [loading, setLoading] = useState<boolean>(false);\n // const [emailValue, setEmailValue] = useState<string>(\"\");\n\n // #############################################################################\n // Content\n // #############################################################################\n const { footerContent, socialContent, termsContent } = useFooterContent();\n\n // #############################################################################\n // Translations\n // #############################################################################\n const { formatMessage } = useTranslation({\n defaultTranslation: EN_TRANSLATION,\n additionalTranslations: {\n [Language.Ja]: () =>\n import(\"./translations/ja.json\").then((res) => res.default),\n [Language.Ar]: () =>\n import(\"./translations/ar.json\").then((res) => res.default),\n [Language.De]: () =>\n import(\"./translations/de.json\").then((res) => res.default),\n [Language.Es]: () =>\n import(\"./translations/es.json\").then((res) => res.default),\n [Language.El]: () =>\n import(\"./translations/el.json\").then((res) => res.default),\n [Language.It]: () =>\n import(\"./translations/it.json\").then((res) => res.default),\n [Language.Pt]: () =>\n import(\"./translations/pt-BR.json\").then((res) => res.default),\n [Language.Zh]: () =>\n import(\"./translations/zh-Hans.json\").then((res) => res.default),\n [Language.Fr]: () =>\n import(\"./translations/fr.json\").then((res) => res.default),\n [Language.Tw]: () =>\n import(\"./translations/zh-Hant-TW.json\").then((res) => res.default),\n },\n });\n\n // #############################################################################\n // Hidden fields\n // #############################################################################\n // const hiddenFields = useMemo(() => {\n // const fields = {\n // ...customer,\n // storeId,\n // };\n\n // return (\n // Object.entries(fields)\n // // Remove empty values\n // .reduce(\n // (acc, [key, value]) => {\n // if (value) {\n // acc[key] = value;\n // }\n\n // return acc;\n // },\n // {} as Record<string, string>,\n // )\n // );\n // }, [customer, storeId]);\n\n const hiddenFields = useMemo(() => {\n return {\n // Merge fields are based on Mailchimp settings\n u: \"bc856e62a9254399365d0277b\",\n id: \"1c1b02cb37\",\n MERGE1: customer?.firstName,\n MERGE2: customer?.lastName,\n // Always set the user as residential as we don't have any other type of user\n MERGE4: \"Residential (home use)\",\n // Always set the user as subscribed to all lists\n MERGE3: \"subscribed\",\n MERGE7: \"subscribed\",\n MERGE8: \"subscribed\",\n // Store region value expected in two fields\n MERGE6: subscribeRegionValue[storeId],\n MERGE9: subscribeRegionValue[storeId],\n };\n }, [customer?.firstName, customer?.lastName, storeId]);\n\n // #############################################################################\n // Newsletter form\n // #############################################################################\n // const handleNewsletterSubmit = useCallback(\n // async (e) => {\n // setLoading(true);\n // setFormStatus(undefined);\n\n // e.preventDefault();\n\n // const data = {\n // email: emailValue,\n // ...hiddenFields,\n // };\n\n // const url = new URL(storeBackendUrl);\n // url.pathname = \"/newsletter/subscribe\";\n\n // try {\n // const response = await fetch(url, {\n // method: \"POST\",\n // body: JSON.stringify(data),\n // headers: {\n // \"Content-Type\": \"application/json\",\n // },\n // });\n\n // const json = (await response.json()) as NewsletterSubscribeResult;\n\n // if (!response.ok) {\n // const errorCode =\n // json?.result === \"error\" ? json?.[\"code\"] : undefined;\n\n // setFormStatus({\n // status: FormStatus.Error,\n // message: formatMessage(\n // getNewsletterSubscribeErrorCodeTranslationKey(errorCode),\n // ),\n // });\n // } else {\n // if (json.result === \"success\") {\n // setFormStatus({\n // status: FormStatus.Success,\n // message: formatMessage(\"footer.newsletter.success\"),\n // });\n\n // formRef.current?.reset();\n // } else {\n // setFormStatus({\n // status: FormStatus.Error,\n // message: getNewsletterSubscribeErrorCodeTranslationKey(\n // json?.[\"code\"],\n // ),\n // });\n // }\n // }\n // } catch (error) {\n // console.error(error);\n // setFormStatus({\n // status: FormStatus.Error,\n // message: formatMessage(translationKeys.footerNewsletterError),\n // });\n // }\n\n // // Reset loading state\n // setLoading(false);\n // },\n // [emailValue, formatMessage, hiddenFields, storeBackendUrl],\n // );\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <ContainerWrap\n condensed={legalOnly}\n $motif={motif}\n // This id is important for injecting sidekick mobile embed styles\n id={id}\n className={className}\n >\n <Container size=\"desktop\" noVerticalMargin>\n <InnerContainer>\n {!legalOnly && (\n <>\n <Wrap>\n <ListsWrap>\n {Object.values(footerContent).map((list, i) => (\n <ListItemWrap key={`footer-list-${i}`}>\n <Header> {list.header.label}</Header>\n <List>\n {list.items.map((item, j) => (\n <ListItem key={`footer-list-${i}-item-${j}`}>\n <ListItemAnchor\n href={item.src}\n target={item.target}\n >\n {item.label}\n </ListItemAnchor>\n </ListItem>\n ))}\n </List>\n </ListItemWrap>\n ))}\n </ListsWrap>\n <InnerWrap>\n <Form\n method=\"get\"\n action=\"https://ui.us8.list-manage.com/subscribe\"\n target=\"_blank\"\n >\n <Header>{formatMessage(\"footer.newsletter.touch\")}</Header>\n\n {/* Hidden fields */}\n {Object.entries(hiddenFields).map(([key, value]) => (\n <input key={key} type=\"hidden\" name={key} value={value} />\n ))}\n\n <InputWrap>\n <Input\n /**\n * According to StackOverflow, using type=\"text\" together\n * with pattern attribute is a better way to validate email\n * addresses than using the `type=\"email\"`.\n * Code below is partly taken old ui.com Footer component.\n * @see https://stackoverflow.com/a/36379040\n */\n type=\"text\"\n pattern=\"[^@\\s]+@[^@\\s]+\\.[^@\\s]+\"\n minLength={6}\n maxLength={254}\n required\n autoCapitalize=\"off\"\n autoCorrect=\"off\"\n placeholder={formatMessage(\"footer.newsletter.email\")}\n name=\"EMAIL\"\n // value={emailValue}\n // onChange={(e) => setEmailValue(e.target.value)}\n // disabled={loading}\n />\n\n <SubmitButton\n type=\"submit\"\n className={motif}\n variant=\"primary\"\n // loading={loading}\n >\n {formatMessage(\"footer.newsletter.subscribe\")}\n </SubmitButton>\n </InputWrap>\n\n {/* {formStatus && (\n <FormMessage $status={formStatus.status}>\n {formStatus.message}\n </FormMessage>\n )} */}\n </Form>\n <IconsWrapper>\n {socialContent.items.map((socialItem) => (\n <IconWrapper\n href={socialItem.src}\n key={`footer-social-link-${socialItem.label}`}\n target={socialItem.target}\n >\n {socialItem.icon ? (\n <img\n src={imageSrc(socialItem.icon)}\n alt={socialItem.label}\n />\n ) : (\n socialItem.label\n )}\n </IconWrapper>\n ))}\n </IconsWrapper>\n </InnerWrap>\n </Wrap>\n <Break $motif={motif} />\n </>\n )}\n {/**\n * Some stores have an extra row with a non-translated hardcoded address\n */}\n {context === SiteId.Store && storeAddress && (\n <>\n <StoreAddress>{storeAddress}</StoreAddress>\n <Break $motif={motif} />\n </>\n )}\n\n <TermsWrap>\n <FlexWrap>\n {termsContent.items.map((term, i) => (\n <AnchorGroup key={`footer-term-${term.id}`}>\n {term.id === FooterLinkId.Cookie ? (\n <CookieBtn\n type=\"button\"\n id={COOKIE_POLICY_BTN_ID}\n className={COOKIE_POLICY_BTN_ID_CLASSNAME}\n key={`footer-term-${term.id}`}\n >\n {term.label}\n </CookieBtn>\n ) : (\n <Anchor href={term.src} target={term.target}>\n {term.label}\n </Anchor>\n )}\n <AnchorDivider>\n {i !== termsContent.items.length - 1 && \"|\"}\n </AnchorDivider>\n </AnchorGroup>\n ))}\n </FlexWrap>\n\n <FlexWrapResponsive>\n {/**\n * Renders store picker component if provided (needed only in SF)\n */}\n {storePicker}\n\n <Copyright>\n © {new Date().getFullYear()}{\" \"}\n {formatMessage(\"footer.copyright\")}\n </Copyright>\n </FlexWrapResponsive>\n </TermsWrap>\n </InnerContainer>\n </Container>\n </ContainerWrap>\n );\n};\n"],"names":["subscribeRegionValue","GlobalStoreId","Us","Eu","Ca","Za","Me","Uk","In","Sg","Br","Jp","Mx","Ph","Tw","Cn","Footer","legalOnly","motif","id","customer","storePicker","storeAddress","className","storeId","context","useMenu","footerContent","socialContent","termsContent","useFooterContent","formatMessage","useTranslation","defaultTranslation","EN_TRANSLATION","additionalTranslations","Language","Ja","Promise","then","res","default","Ar","De","Es","El","It","Pt","Zh","Fr","hiddenFields","useMemo","u","MERGE1","firstName","MERGE2","lastName","MERGE4","MERGE3","MERGE7","MERGE8","MERGE6","MERGE9","jsx","ContainerWrap","condensed","$motif","children","Container","size","noVerticalMargin","InnerContainer","jsxs","Fragment","Wrap","ListsWrap","Object","values","map","list","i","ListItemWrap","Header","header","label","List","items","item","j","ListItem","ListItemAnchor","href","src","target","InnerWrap","Form","method","action","entries","key","value","type","name","InputWrap","Input","pattern","minLength","maxLength","required","autoCapitalize","autoCorrect","placeholder","SubmitButton","variant","IconsWrapper","socialItem","IconWrapper","icon","imageSrc","alt","Break","SiteId","Store","StoreAddress","TermsWrap","FlexWrap","term","AnchorGroup","FooterLinkId","Cookie","CookieBtn","COOKIE_POLICY_BTN_ID","COOKIE_POLICY_BTN_ID_CLASSNAME","Anchor","AnchorDivider","length","FlexWrapResponsive","Copyright","Date","getFullYear"],"mappings":";;;;;;;;;;;;;;;;;;;AA4EA,MAAMA,oBAAuB,GAAA;EAC3B,CAACC,SAAAA,CAAAA,aAAc,CAAAC,EAAE,GAAG,eAAA;EACpB,CAACD,SAAAA,CAAAA,aAAc,CAAAE,EAAE,GAAG,QAAA;EACpB,CAACF,SAAAA,CAAAA,aAAc,CAAAG,EAAE,GAAG,QAAA;EACpB,CAACH,SAAAA,CAAAA,aAAc,CAAAI,EAAE,GAAG,cAAA;EACpB,CAACJ,SAAAA,CAAAA,aAAc,CAAAK,EAAE,GAAG,aAAA;EACpB,CAACL,SAAAA,CAA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K1C;cACR,CAAA,CAAA,EAAA,8BAEDkD,aAAAA,CAAAA,aACE,EAAA;gBAAAnE,QAAA,EAAAa,CAAA,KAAMnD,aAAayD,KAAM,CAAAiD,MAAA,GAAS,KAAK;eAC1C,CAAA;YAAA,CAAA,EAjB+B,eAAAT,IAAA,CAAK3G,EAAE,EAkBxC,CACD;WACH,CAAA,EAAA,+BAECqH,aAAAA,CAAAA,kBAIE,EAAA;YAAArE,QAAA,EAAA,CAAA9C,WAAA,EAAA,+BAEAoH,aAAAA,CAAAA,SAAU,EAAA;cAAAtE,QAAA,EAAA,CAAA,OAAA,EACN,iBAAA,IAAIuE,IAAK,CAAA,CAAA,EAAEC,WAAY,CAAA,CAAA,EAAG,GAAA,EAC5B5G,cAAc,kBAAkB,CAAA;aACnC,CAAA;WACF,CAAA;SACF,CAAA;MAAA,CACF;IACF,CAAA;EAAA,CAAA,CACF;AAEJ,CAAA;"}
1
+ {"version":3,"file":"Footer.js","sources":["../../../src/components/Footer/Footer.tsx"],"sourcesContent":["import { memo } from \"react\";\n\nimport {\n contentForTerms,\n COOKIE_POLICY_BTN_ID,\n COOKIE_POLICY_BTN_ID_CLASSNAME,\n FOOTER_CONTENT,\n FooterLinkId,\n SOCIAL_CONTENT,\n} from \"../../constants/footerContent\";\nimport {\n Anchor,\n AnchorDivider,\n AnchorGroup,\n Break,\n Button,\n Container,\n ContainerWrap,\n CookieBtn,\n Copyright,\n FlexWrap,\n Form,\n Header,\n IconsWrapper,\n IconWrapper,\n InnerWrap,\n Input,\n InputWrap,\n List,\n ListItem,\n ListItemAnchor,\n ListItemWrap,\n ListsWrap,\n TermsWrap,\n Wrap,\n} from \"./Footer.styles\";\nimport type { FooterProps } from \"./Footer.types\";\n\nexport const Footer = memo(function Footer({\n legalOnly,\n motif = \"light\",\n}: FooterProps) {\n const termsContent = contentForTerms();\n\n return (\n <ContainerWrap condensed={legalOnly} $darkMode={motif === \"dark\"}>\n <Container>\n {!legalOnly && (\n <>\n <Wrap>\n <ListsWrap>\n {Object.values(FOOTER_CONTENT).map((list, i) => (\n <ListItemWrap key={`footer-list-${i}`}>\n <Header> {list.header.label}</Header>\n <List>\n {list.items.map((item, j) => (\n <ListItem key={`footer-list-${i}-item-${j}`}>\n <ListItemAnchor href={item.src} target={item.target}>\n {item.label}\n </ListItemAnchor>\n </ListItem>\n ))}\n </List>\n </ListItemWrap>\n ))}\n </ListsWrap>\n <InnerWrap>\n <Form\n method=\"post\"\n action=\"https://ubnt.us8.list-manage.com/subscribe/post?u=bc856e62a9254399365d0277b\"\n target=\"_blank\"\n >\n <Header>Stay in Touch</Header>\n {/* Hidden field for Audience ID */}\n <input type=\"hidden\" name=\"id\" value=\"1c1b02cb37\" />\n\n <InputWrap>\n <Input type=\"text\" placeholder={\"Email\"} name=\"EMAIL\" />\n <Button type=\"submit\" className={motif}>\n Subscribe\n </Button>\n </InputWrap>\n </Form>\n <IconsWrapper>\n {SOCIAL_CONTENT.items.map((socialItem) => (\n <IconWrapper\n href={socialItem.src}\n key={`footer-social-link-${socialItem.label}`}\n target={socialItem.target}\n >\n {/* eslint-disable-next-line @next/next/no-img-element */}\n <img\n src={\n typeof socialItem.icon === \"string\"\n ? socialItem.icon\n : socialItem.icon.src\n }\n alt={socialItem.label}\n />\n </IconWrapper>\n ))}\n </IconsWrapper>\n </InnerWrap>\n </Wrap>\n <Break $darkMode={motif === \"dark\"} />\n </>\n )}\n\n <TermsWrap>\n <FlexWrap>\n {termsContent.items.map((term, i) =>\n term.id === FooterLinkId.Cookie ? (\n <CookieBtn\n type=\"button\"\n id={COOKIE_POLICY_BTN_ID}\n className={COOKIE_POLICY_BTN_ID_CLASSNAME}\n key={`footer-term-${term.id}`}\n >\n {term.label}\n </CookieBtn>\n ) : (\n <AnchorGroup key={`footer-term-${term.id}`}>\n <Anchor href={term.src} target={term.target}>\n {term.label}\n </Anchor>\n <AnchorDivider>\n {i !== termsContent.items.length - 1 && \"|\"}\n </AnchorDivider>\n </AnchorGroup>\n ),\n )}\n </FlexWrap>\n\n <Copyright>\n © {new Date().getFullYear()} Ubiquiti, Inc. All rights reserved.\n </Copyright>\n </TermsWrap>\n </Container>\n </ContainerWrap>\n );\n});\n"],"names":["Footer","memo","Footer2","legalOnly","motif","termsContent","contentForTerms","jsx","ContainerWrap","condensed","$darkMode","children","Container","jsxs","Fragment","Wrap","ListsWrap","Object","values","FOOTER_CONTENT","map","list","i","ListItemWrap","Header","header","label","List","items","item","j","ListItem","ListItemAnchor","href","src","target","InnerWrap","Form","method","action","type","name","value","InputWrap","Input","placeholder","Button","className","IconsWrapper","SOCIAL_CONTENT","socialItem","IconWrapper","icon","alt","Break","TermsWrap","FlexWrap","term","id","FooterLinkId","Cookie","CookieBtn","COOKIE_POLICY_BTN_ID","COOKIE_POLICY_BTN_ID_CLASSNAME","AnchorGroup","Anchor","AnchorDivider","length","Copyright","Date","getFullYear"],"mappings":";;;;;;;AAsCa,MAAAA,MAAA,GAASC,KAAAA,CAAAA,IAAK,CAAA,SAASD,OAAOE,CAAA;EACzCC,SAAA;EACAC,KAAQ,GAAA;AACV,CAAgB,EAAA;EACd,MAAMC,eAAeC,aAAAA,CAAAA,eAAgB,EAAA;EAGnC,OAAA,eAAAC,UAAA,CAAAA,GAAA,CAACC;IAAcC,SAAW,EAAAN,SAAA;IAAWO,WAAWN,KAAU,KAAA,MAAA;IACxDO,yCAACC,aACE,CAAAA,SAAA,EAAA;MAAAD,QAAA,EAAA,CAAA,CAACR,aAEEU,eAAAA,UAAAA,CAAAA,IAAA,CAAAC,UAAA,CAAAA,QAAA,EAAA;QAAAH,QAAA,EAAA,CAAA,eAAAE,eAAA,CAACE,aAAAA,CAAAA,IACC,EAAA;UAAAJ,QAAA,EAAA,CAACJ,eAAAA,UAAAA,CAAAA,GAAA,CAAAS,aAAAA,CAAAA,SAAA,EAAA;YACEL,QAAO,EAAAM,MAAA,CAAAC,MAAA,CAAOC,aAAc,CAAAA,cAAA,CAAA,CAAEC,IAAI,CAACC,IAAA,EAAMC,C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