@ubnt/store.core 9.9.0 → 9.10.0-konutis.1

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 (294) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/lib/_virtual/_virtual_multi-entry.js +18 -2
  3. package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
  4. package/lib/_virtual/_virtual_multi-entry.mjs +4 -0
  5. package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
  6. package/lib/assets/clock.svg +4 -0
  7. package/lib/assets/close2.svg +3 -2
  8. package/lib/assets/close3.svg +2 -3
  9. package/lib/assets/packets.svg +3 -0
  10. package/lib/assets/pause.svg +3 -3
  11. package/lib/assets/pause2.svg +3 -3
  12. package/lib/assets/socialMedia/{twitter.svg.js → x.svg.js} +6 -6
  13. package/lib/assets/socialMedia/x.svg.js.map +1 -0
  14. package/lib/assets/socialMedia/x.svg.mjs +3 -0
  15. package/lib/assets/socialMedia/x.svg.mjs.map +1 -0
  16. package/lib/assets/ucgMax.jpg +0 -0
  17. package/lib/assets/ucgMax2.jpg +0 -0
  18. package/lib/assets/ucgUltra.jpg +0 -0
  19. package/lib/assets/ucgUltra2.jpg +0 -0
  20. package/lib/assets/udmPro.jpg +0 -0
  21. package/lib/assets/udmPro2.jpg +0 -0
  22. package/lib/assets/udmProMax.jpg +0 -0
  23. package/lib/assets/udmProMax2.jpg +0 -0
  24. package/lib/assets/udmProSpecial.jpg +0 -0
  25. package/lib/assets/udmProSpecial2.jpg +0 -0
  26. package/lib/assets/x.svg +3 -0
  27. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +1 -1
  28. package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
  29. package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
  30. package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
  31. package/lib/components/Footer/Footer.d.ts +1 -1
  32. package/lib/components/Footer/Footer.js +192 -74
  33. package/lib/components/Footer/Footer.js.map +1 -1
  34. package/lib/components/Footer/Footer.mjs +174 -76
  35. package/lib/components/Footer/Footer.mjs.map +1 -1
  36. package/lib/components/Footer/Footer.styles.d.ts +17 -5
  37. package/lib/components/Footer/Footer.styles.js +99 -48
  38. package/lib/components/Footer/Footer.styles.js.map +1 -1
  39. package/lib/components/Footer/Footer.styles.mjs +95 -48
  40. package/lib/components/Footer/Footer.styles.mjs.map +1 -1
  41. package/lib/components/Footer/Footer.types.d.ts +40 -0
  42. package/lib/components/Footer/Footer.types.js +16 -0
  43. package/lib/components/Footer/Footer.types.js.map +1 -1
  44. package/lib/components/Footer/Footer.types.mjs +15 -0
  45. package/lib/components/Footer/Footer.types.mjs.map +1 -1
  46. package/lib/components/Footer/hooks/useFooterContent.d.ts +94 -0
  47. package/lib/components/Footer/hooks/useFooterContent.js +384 -0
  48. package/lib/components/Footer/hooks/useFooterContent.js.map +1 -0
  49. package/lib/components/Footer/hooks/useFooterContent.mjs +348 -0
  50. package/lib/components/Footer/hooks/useFooterContent.mjs.map +1 -0
  51. package/lib/components/Footer/index.js +3 -1
  52. package/lib/components/Footer/index.js.map +1 -1
  53. package/lib/components/Footer/index.mjs +1 -1
  54. package/lib/components/Footer/translations/ar.json.js +47 -0
  55. package/lib/components/Footer/translations/ar.json.js.map +1 -0
  56. package/lib/components/Footer/translations/ar.json.mjs +42 -0
  57. package/lib/components/Footer/translations/ar.json.mjs.map +1 -0
  58. package/lib/components/Footer/translations/de.json.js +47 -0
  59. package/lib/components/Footer/translations/de.json.js.map +1 -0
  60. package/lib/components/Footer/translations/de.json.mjs +42 -0
  61. package/lib/components/Footer/translations/de.json.mjs.map +1 -0
  62. package/lib/components/Footer/translations/el.json.js +47 -0
  63. package/lib/components/Footer/translations/el.json.js.map +1 -0
  64. package/lib/components/Footer/translations/el.json.mjs +42 -0
  65. package/lib/components/Footer/translations/el.json.mjs.map +1 -0
  66. package/lib/components/Footer/translations/en.json.js +46 -0
  67. package/lib/components/Footer/translations/en.json.js.map +1 -0
  68. package/lib/components/Footer/translations/en.json.mjs +41 -0
  69. package/lib/components/Footer/translations/en.json.mjs.map +1 -0
  70. package/lib/components/Footer/translations/es.json.js +47 -0
  71. package/lib/components/Footer/translations/es.json.js.map +1 -0
  72. package/lib/components/Footer/translations/es.json.mjs +42 -0
  73. package/lib/components/Footer/translations/es.json.mjs.map +1 -0
  74. package/lib/components/Footer/translations/fr.json.js +47 -0
  75. package/lib/components/Footer/translations/fr.json.js.map +1 -0
  76. package/lib/components/Footer/translations/fr.json.mjs +42 -0
  77. package/lib/components/Footer/translations/fr.json.mjs.map +1 -0
  78. package/lib/components/Footer/translations/it.json.js +47 -0
  79. package/lib/components/Footer/translations/it.json.js.map +1 -0
  80. package/lib/components/Footer/translations/it.json.mjs +42 -0
  81. package/lib/components/Footer/translations/it.json.mjs.map +1 -0
  82. package/lib/components/Footer/translations/ja.json.js +47 -0
  83. package/lib/components/Footer/translations/ja.json.js.map +1 -0
  84. package/lib/components/Footer/translations/ja.json.mjs +42 -0
  85. package/lib/components/Footer/translations/ja.json.mjs.map +1 -0
  86. package/lib/components/Footer/translations/pt-BR.json.js +47 -0
  87. package/lib/components/Footer/translations/pt-BR.json.js.map +1 -0
  88. package/lib/components/Footer/translations/pt-BR.json.mjs +42 -0
  89. package/lib/components/Footer/translations/pt-BR.json.mjs.map +1 -0
  90. package/lib/components/Footer/translations/zh-Hans.json.js +47 -0
  91. package/lib/components/Footer/translations/zh-Hans.json.js.map +1 -0
  92. package/lib/components/Footer/translations/zh-Hans.json.mjs +42 -0
  93. package/lib/components/Footer/translations/zh-Hans.json.mjs.map +1 -0
  94. package/lib/components/Footer/translations/zh-Hant-TW.json.js +47 -0
  95. package/lib/components/Footer/translations/zh-Hant-TW.json.js.map +1 -0
  96. package/lib/components/Footer/translations/zh-Hant-TW.json.mjs +42 -0
  97. package/lib/components/Footer/translations/zh-Hant-TW.json.mjs.map +1 -0
  98. package/lib/components/Header/AccountMenu/AccountMenu.js +6 -3
  99. package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
  100. package/lib/components/Header/AccountMenu/AccountMenu.mjs +6 -3
  101. package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
  102. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
  103. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js +19 -11
  104. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.js.map +1 -1
  105. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.mjs +19 -11
  106. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.mjs.map +1 -1
  107. package/lib/components/Header/Navigation/MicrositeMenu/mapping.js +4 -0
  108. package/lib/components/Header/Navigation/MicrositeMenu/mapping.js.map +1 -1
  109. package/lib/components/Header/Navigation/MicrositeMenu/mapping.mjs +4 -0
  110. package/lib/components/Header/Navigation/MicrositeMenu/mapping.mjs.map +1 -1
  111. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +11 -6
  112. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js.map +1 -1
  113. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.mjs +11 -6
  114. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.mjs.map +1 -1
  115. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +8 -4
  116. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
  117. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +8 -4
  118. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
  119. package/lib/components/Header/translations/ar.json.js +37 -34
  120. package/lib/components/Header/translations/ar.json.js.map +1 -1
  121. package/lib/components/Header/translations/ar.json.mjs +37 -35
  122. package/lib/components/Header/translations/ar.json.mjs.map +1 -1
  123. package/lib/components/Header/translations/de.json.js +37 -34
  124. package/lib/components/Header/translations/de.json.js.map +1 -1
  125. package/lib/components/Header/translations/de.json.mjs +37 -35
  126. package/lib/components/Header/translations/de.json.mjs.map +1 -1
  127. package/lib/components/Header/translations/el.json.js +37 -34
  128. package/lib/components/Header/translations/el.json.js.map +1 -1
  129. package/lib/components/Header/translations/el.json.mjs +37 -35
  130. package/lib/components/Header/translations/el.json.mjs.map +1 -1
  131. package/lib/components/Header/translations/en.json.js +36 -33
  132. package/lib/components/Header/translations/en.json.js.map +1 -1
  133. package/lib/components/Header/translations/en.json.mjs +36 -34
  134. package/lib/components/Header/translations/en.json.mjs.map +1 -1
  135. package/lib/components/Header/translations/es.json.js +37 -34
  136. package/lib/components/Header/translations/es.json.js.map +1 -1
  137. package/lib/components/Header/translations/es.json.mjs +37 -35
  138. package/lib/components/Header/translations/es.json.mjs.map +1 -1
  139. package/lib/components/Header/translations/fr.json.js +37 -34
  140. package/lib/components/Header/translations/fr.json.js.map +1 -1
  141. package/lib/components/Header/translations/fr.json.mjs +37 -35
  142. package/lib/components/Header/translations/fr.json.mjs.map +1 -1
  143. package/lib/components/Header/translations/it.json.js +37 -34
  144. package/lib/components/Header/translations/it.json.js.map +1 -1
  145. package/lib/components/Header/translations/it.json.mjs +37 -35
  146. package/lib/components/Header/translations/it.json.mjs.map +1 -1
  147. package/lib/components/Header/translations/ja.json.js +37 -34
  148. package/lib/components/Header/translations/ja.json.js.map +1 -1
  149. package/lib/components/Header/translations/ja.json.mjs +37 -35
  150. package/lib/components/Header/translations/ja.json.mjs.map +1 -1
  151. package/lib/components/Header/translations/pt-BR.json.js +37 -34
  152. package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
  153. package/lib/components/Header/translations/pt-BR.json.mjs +37 -35
  154. package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
  155. package/lib/components/Header/translations/zh-Hans.json.js +37 -34
  156. package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
  157. package/lib/components/Header/translations/zh-Hans.json.mjs +37 -35
  158. package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
  159. package/lib/components/Header/translations/zh-Hant-TW.json.js +37 -34
  160. package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
  161. package/lib/components/Header/translations/zh-Hant-TW.json.mjs +37 -35
  162. package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
  163. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +1 -1
  164. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
  165. package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
  166. package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
  167. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.js +5 -5
  168. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.mjs +2 -2
  169. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.js +5 -5
  170. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.mjs +2 -2
  171. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
  172. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
  173. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
  174. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
  175. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
  176. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
  177. package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.js +1 -1
  178. package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.mjs +2 -2
  179. package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.js +1 -1
  180. package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.mjs +2 -2
  181. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
  182. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
  183. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
  184. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
  185. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
  186. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
  187. package/lib/components/ModelCompareV3/assets/clock.svg.js +27 -0
  188. package/lib/components/ModelCompareV3/assets/clock.svg.js.map +1 -0
  189. package/lib/components/ModelCompareV3/assets/clock.svg.mjs +3 -0
  190. package/lib/components/ModelCompareV3/assets/clock.svg.mjs.map +1 -0
  191. package/lib/components/ModelCompareV3/assets/packets.svg.js +27 -0
  192. package/lib/components/ModelCompareV3/assets/packets.svg.js.map +1 -0
  193. package/lib/components/ModelCompareV3/assets/packets.svg.mjs +3 -0
  194. package/lib/components/ModelCompareV3/assets/packets.svg.mjs.map +1 -0
  195. package/lib/components/ModelCompareV3/data/CloudGateways.js +15 -15
  196. package/lib/components/ModelCompareV3/data/CloudGateways.mjs +10 -10
  197. package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
  198. package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
  199. package/lib/components/ModelCompareV3/data/products/ucgUltra.js +1 -1
  200. package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +1 -1
  201. package/lib/components/ModelCompareV3/data/products/udmPro.js +1 -1
  202. package/lib/components/ModelCompareV3/data/products/udmPro.mjs +1 -1
  203. package/lib/components/ModelCompareV3/data/products/udmProMax.js +1 -1
  204. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +1 -1
  205. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +1 -1
  206. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +1 -1
  207. package/lib/components/ModelCompareV3/data/products/waveApMicro.js +2 -2
  208. package/lib/components/ModelCompareV3/data/products/waveApMicro.js.map +1 -1
  209. package/lib/components/ModelCompareV3/data/products/waveApMicro.mjs +2 -2
  210. package/lib/components/ModelCompareV3/data/products/waveApMicro.mjs.map +1 -1
  211. package/lib/components/ModelCompareV3/data/products/wavePro.js +2 -2
  212. package/lib/components/ModelCompareV3/data/products/wavePro.js.map +1 -1
  213. package/lib/components/ModelCompareV3/data/products/wavePro.mjs +2 -2
  214. package/lib/components/ModelCompareV3/data/products/wavePro.mjs.map +1 -1
  215. package/lib/components/ModelCompareV3/data/properties/swivelLatency.js +2 -2
  216. package/lib/components/ModelCompareV3/data/properties/swivelLatency.js.map +1 -1
  217. package/lib/components/ModelCompareV3/data/properties/swivelLatency.mjs +2 -2
  218. package/lib/components/ModelCompareV3/data/properties/swivelLatency.mjs.map +1 -1
  219. package/lib/components/ModelCompareV3/data/properties/swivelPackets.js +2 -2
  220. package/lib/components/ModelCompareV3/data/properties/swivelPackets.js.map +1 -1
  221. package/lib/components/ModelCompareV3/data/properties/swivelPackets.mjs +2 -2
  222. package/lib/components/ModelCompareV3/data/properties/swivelPackets.mjs.map +1 -1
  223. package/lib/components/ModelCompareV3/data/properties/swivelSpectralEfficiency.js +2 -2
  224. package/lib/components/ModelCompareV3/data/properties/swivelSpectralEfficiency.js.map +1 -1
  225. package/lib/components/ModelCompareV3/data/properties/swivelSpectralEfficiency.mjs +2 -2
  226. package/lib/components/ModelCompareV3/data/properties/swivelSpectralEfficiency.mjs.map +1 -1
  227. package/lib/components/VideoPlayerNew/VideoPlayer.js +2 -2
  228. package/lib/components/VideoPlayerNew/VideoPlayer.mjs +2 -2
  229. package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
  230. package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
  231. package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
  232. package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
  233. package/lib/constants/url.d.ts +4 -4
  234. package/lib/constants/url.js +4 -4
  235. package/lib/constants/url.js.map +1 -1
  236. package/lib/constants/url.mjs +4 -4
  237. package/lib/constants/url.mjs.map +1 -1
  238. package/lib/contexts/MenuContext/mapping.js +41 -0
  239. package/lib/contexts/MenuContext/mapping.js.map +1 -1
  240. package/lib/contexts/MenuContext/mapping.mjs +41 -0
  241. package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
  242. package/lib/contexts/MenuContext/presets.js.map +1 -1
  243. package/lib/contexts/MenuContext/presets.mjs.map +1 -1
  244. package/lib/helpers/index.d.ts +1 -0
  245. package/lib/helpers/index.js +12 -0
  246. package/lib/helpers/index.js.map +1 -1
  247. package/lib/helpers/index.mjs +1 -0
  248. package/lib/helpers/index.mjs.map +1 -1
  249. package/lib/helpers/product.d.ts +96 -0
  250. package/lib/helpers/product.js +360 -0
  251. package/lib/helpers/product.js.map +1 -0
  252. package/lib/helpers/product.mjs +348 -0
  253. package/lib/helpers/product.mjs.map +1 -0
  254. package/lib/types/index.d.ts +1 -0
  255. package/lib/types/index.js +2 -0
  256. package/lib/types/index.js.map +1 -1
  257. package/lib/types/index.mjs +1 -0
  258. package/lib/types/index.mjs.map +1 -1
  259. package/lib/types/product.d.ts +87 -0
  260. package/lib/types/product.js +14 -0
  261. package/lib/types/product.js.map +1 -0
  262. package/lib/types/product.mjs +13 -0
  263. package/lib/types/product.mjs.map +1 -0
  264. package/lib/utils/address.d.ts +61 -61
  265. package/lib/utils/array.d.ts +4 -0
  266. package/lib/utils/array.js +10 -0
  267. package/lib/utils/array.js.map +1 -1
  268. package/lib/utils/array.mjs +10 -1
  269. package/lib/utils/array.mjs.map +1 -1
  270. package/lib/utils/index.d.ts +1 -0
  271. package/lib/utils/index.js +2 -0
  272. package/lib/utils/index.js.map +1 -1
  273. package/lib/utils/index.mjs +2 -0
  274. package/lib/utils/index.mjs.map +1 -1
  275. package/lib/utils/productSort.d.ts +41 -0
  276. package/lib/utils/productSort.js +66 -0
  277. package/lib/utils/productSort.js.map +1 -0
  278. package/lib/utils/productSort.mjs +59 -0
  279. package/lib/utils/productSort.mjs.map +1 -0
  280. package/lib/utils/typeGuards.d.ts +1 -0
  281. package/lib/utils/typeGuards.js +6 -0
  282. package/lib/utils/typeGuards.js.map +1 -0
  283. package/lib/utils/typeGuards.mjs +5 -0
  284. package/lib/utils/typeGuards.mjs.map +1 -0
  285. package/package.json +1 -1
  286. package/lib/assets/socialMedia/twitter.svg.js.map +0 -1
  287. package/lib/assets/socialMedia/twitter.svg.mjs +0 -3
  288. package/lib/assets/socialMedia/twitter.svg.mjs.map +0 -1
  289. package/lib/assets/twitter.svg +0 -3
  290. package/lib/constants/footerContent.d.ts +0 -145
  291. package/lib/constants/footerContent.js +0 -313
  292. package/lib/constants/footerContent.js.map +0 -1
  293. package/lib/constants/footerContent.mjs +0 -293
  294. package/lib/constants/footerContent.mjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -6,6 +6,15 @@
6
6
 
7
7
  ## Releases
8
8
 
9
+ ### 9.10.0
10
+
11
+ - [Feat] [MIC-167](https://ubiquiti.atlassian.net/browse/MIC-167) Revive Footer component for shared usage between projects
12
+
13
+ ### 9.9.1
14
+
15
+ - [Fix] [MIC-315](https://ubiquiti.atlassian.net/browse/MIC-315) Fix product links for UISP compare tables and update property icons
16
+ - [Fix] [NEP-3353](https://ubiquiti.atlassian.net/browse/NEP-3353) Hide menu items that are not available in India
17
+
9
18
  ### 9.9.0
10
19
 
11
20
  - [Feat] [MIC-315](https://ubiquiti.atlassian.net/browse/MIC-315) Updates for UISP.com:
@@ -69,6 +69,7 @@ var useTranslation = require('../hooks/useTranslation.js');
69
69
  var useScrollToY = require('../hooks/useScrollToY.js');
70
70
  var constants = require('../types/constants.js');
71
71
  var generated = require('../types/generated.js');
72
+ var product = require('../types/product.js');
72
73
  var url = require('../utils/url.js');
73
74
  var misc = require('../utils/money/misc.js');
74
75
  var number = require('../utils/number.js');
@@ -86,13 +87,15 @@ var measures = require('../utils/measures.js');
86
87
  var errors = require('../utils/errors.js');
87
88
  var tags = require('../utils/tags.js');
88
89
  var wattage = require('../utils/wattage.js');
89
- var product = require('../utils/product.js');
90
+ var product$1 = require('../utils/product.js');
90
91
  var asset = require('../utils/asset.js');
91
92
  var imageOptimizer = require('../utils/imageOptimizer.js');
92
93
  var styles = require('../utils/styles.js');
94
+ var storeId = require('../utils/storeId.js');
93
95
  var index$V = require('../constants/proStoreCategories/index.js');
94
96
  var index$W = require('../constants/proStoreFilters/index.js');
95
97
  var proStoreCategories = require('../helpers/proStoreCategories.js');
98
+ var product$2 = require('../helpers/product.js');
96
99
  var smartcat = require('../apis/smartcat.js');
97
100
  exports.Avatar = index;
98
101
  exports.Button = index$1;
@@ -166,6 +169,7 @@ exports.Unit = generated.Unit;
166
169
  exports.UnitSystem = generated.UnitSystem;
167
170
  exports.UserAssignedCountryCode = generated.UserAssignedCountryCode;
168
171
  exports.ValidateTaxStatus = generated.ValidateTaxStatus;
172
+ exports.DisplayProductStatus = product.DisplayProductStatus;
169
173
  exports.url = url;
170
174
  exports.money = misc;
171
175
  exports.number = number;
@@ -183,10 +187,11 @@ exports.measures = measures;
183
187
  exports.errors = errors;
184
188
  exports.tags = tags;
185
189
  exports.wattage = wattage;
186
- exports.product = product;
190
+ exports.product = product$1;
187
191
  exports.asset = asset;
188
192
  exports.imageOptimizer = imageOptimizer;
189
193
  exports.styles = styles;
194
+ exports.storeId = storeId;
190
195
  exports.proStoreCategories = index$V;
191
196
  exports.proStoreFilters = index$W;
192
197
  exports.getCategoriesBySubcategory = proStoreCategories.getCategoriesBySubcategory;
@@ -197,5 +202,16 @@ exports.getSubCategoryIdByCollectionSlug = proStoreCategories.getSubCategoryIdBy
197
202
  exports.isValidSubCategory = proStoreCategories.isValidSubCategory;
198
203
  exports.parseCategories = proStoreCategories.parseCategories;
199
204
  exports.useTranslatedCategories = proStoreCategories.useTranslatedCategories;
205
+ exports.COLLECTION_SECTION_OTHER_ID = product$2.COLLECTION_SECTION_OTHER_ID;
206
+ exports.HDDProductSlugs = product$2.HDDProductSlugs;
207
+ exports.MagicCollectionTags = product$2.MagicCollectionTags;
208
+ exports.ProductOptions = product$2.ProductOptions;
209
+ exports.createSectionHierarchy = product$2.createSectionHierarchy;
210
+ exports.getProStoreCategory = product$2.getProStoreCategory;
211
+ exports.getProductGroups = product$2.getProductGroups;
212
+ exports.getStoreProducts = product$2.getStoreProducts;
213
+ exports.isNonNullish = product$2.isNonNullish;
214
+ exports.removeExcludedProducts = product$2.removeExcludedProducts;
215
+ exports.sortCollections = product$2.sortCollections;
200
216
  exports.smartcat = smartcat;
201
217
  //# sourceMappingURL=_virtual_multi-entry.js.map
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -122,6 +122,7 @@ export { useTranslation, useTranslationRaw } from '../hooks/useTranslation.mjs';
122
122
  export { useScrollToY } from '../hooks/useScrollToY.mjs';
123
123
  export { AddressUsageType, Language } from '../types/constants.mjs';
124
124
  export { AddressType, CountryCode, Currency, GlobalStoreId, ProductLine, StoreId, Unit, UnitSystem, UserAssignedCountryCode, ValidateTaxStatus } from '../types/generated.mjs';
125
+ export { DisplayProductStatus } from '../types/product.mjs';
125
126
  import * as url from '../utils/url.mjs';
126
127
  export { url };
127
128
  import * as misc from '../utils/money/misc.mjs';
@@ -164,11 +165,14 @@ import * as imageOptimizer from '../utils/imageOptimizer.mjs';
164
165
  export { imageOptimizer };
165
166
  import * as styles from '../utils/styles.mjs';
166
167
  export { styles };
168
+ import * as storeId from '../utils/storeId.mjs';
169
+ export { storeId };
167
170
  import * as index$V from '../constants/proStoreCategories/index.mjs';
168
171
  export { index$V as proStoreCategories };
169
172
  import * as index$W from '../constants/proStoreFilters/index.mjs';
170
173
  export { index$W as proStoreFilters };
171
174
  export { getCategoriesBySubcategory, getLocalizedCategories, getProductLineByCategory, getProductLineBySubcategory, getSubCategoryIdByCollectionSlug, isValidSubCategory, parseCategories, useTranslatedCategories } from '../helpers/proStoreCategories.mjs';
175
+ export { COLLECTION_SECTION_OTHER_ID, HDDProductSlugs, MagicCollectionTags, ProductOptions, createSectionHierarchy, getProStoreCategory, getProductGroups, getStoreProducts, isNonNullish, removeExcludedProducts, sortCollections } from '../helpers/product.mjs';
172
176
  import * as smartcat from '../apis/smartcat.mjs';
173
177
  export { smartcat };
174
178
  //# sourceMappingURL=_virtual_multi-entry.mjs.map
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,4 @@
1
+ <svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M17.5089 19.8045C17.8014 20.0985 18.2739 20.0985 18.5664 19.8045C18.8604 19.512 18.8604 19.038 18.5679 18.744L15.7089 15.8775V8.25C15.7089 8.043 15.6249 7.8555 15.4899 7.719C15.3534 7.584 15.1674 7.5 14.9604 7.5C14.5464 7.5 14.2119 7.836 14.2119 8.25V16.4985L17.5089 19.8045Z" fill="#212124"/>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M3 15C3 8.373 8.373 3 15 3C21.627 3 27 8.373 27 15C27 21.627 21.627 27 15 27C8.373 27 3 21.627 3 15ZM25.5 15C25.5 9.21 20.79 4.5 15 4.5C9.21 4.5 4.5 9.21 4.5 15C4.5 20.79 9.21 25.5 15 25.5C20.79 25.5 25.5 20.79 25.5 15Z" fill="#212124"/>
4
+ </svg>
@@ -1,3 +1,4 @@
1
- <svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path fill-rule="evenodd" clip-rule="evenodd" d="M5.7175 18.6475C5.4275 18.9375 5.4275 19.4175 5.7175 19.7075C6.0075 19.9975 6.4875 19.9975 6.7775 19.7075L12.9675 13.5175L19.1575 19.7075C19.4475 19.9975 19.9275 19.9975 20.2175 19.7075C20.5075 19.4175 20.5075 18.9375 20.2175 18.6475L14.0275 12.4675L20.2175 6.2775C20.5075 5.9875 20.5075 5.5075 20.2175 5.2175C19.9275 4.9275 19.4475 4.9275 19.1575 5.2175L12.9675 11.4075L6.7775 5.2175C6.4875 4.9275 6.0075 4.9275 5.7175 5.2175C5.4275 5.5075 5.4275 5.9875 5.7175 6.2775L11.9075 12.4675L5.7175 18.6475Z" fill="#36373C"/>
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none"
2
+ xmlns="http://www.w3.org/2000/svg">
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M5.2175 18.6475C4.9275 18.9375 4.9275 19.4175 5.2175 19.7075C5.5075 19.9975 5.9875 19.9975 6.2775 19.7075L12.4675 13.5175L18.6575 19.7075C18.9475 19.9975 19.4275 19.9975 19.7175 19.7075C20.0075 19.4175 20.0075 18.9375 19.7175 18.6475L13.5275 12.4675L19.7175 6.2775C20.0075 5.9875 20.0075 5.5075 19.7175 5.2175C19.4275 4.9275 18.9475 4.9275 18.6575 5.2175L12.4675 11.4075L6.2775 5.2175C5.9875 4.9275 5.5075 4.9275 5.2175 5.2175C4.9275 5.5075 4.9275 5.9875 5.2175 6.2775L11.4075 12.4675L5.2175 18.6475Z" fill="currentColor"/>
3
4
  </svg>
@@ -1,4 +1,3 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none"
2
- xmlns="http://www.w3.org/2000/svg">
3
- <path fill-rule="evenodd" clip-rule="evenodd" d="M5.2175 18.6475C4.9275 18.9375 4.9275 19.4175 5.2175 19.7075C5.5075 19.9975 5.9875 19.9975 6.2775 19.7075L12.4675 13.5175L18.6575 19.7075C18.9475 19.9975 19.4275 19.9975 19.7175 19.7075C20.0075 19.4175 20.0075 18.9375 19.7175 18.6475L13.5275 12.4675L19.7175 6.2775C20.0075 5.9875 20.0075 5.5075 19.7175 5.2175C19.4275 4.9275 18.9475 4.9275 18.6575 5.2175L12.4675 11.4075L6.2775 5.2175C5.9875 4.9275 5.5075 4.9275 5.2175 5.2175C4.9275 5.5075 4.9275 5.9875 5.2175 6.2775L11.4075 12.4675L5.2175 18.6475Z" fill="currentColor"/>
1
+ <svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M5.7175 18.6475C5.4275 18.9375 5.4275 19.4175 5.7175 19.7075C6.0075 19.9975 6.4875 19.9975 6.7775 19.7075L12.9675 13.5175L19.1575 19.7075C19.4475 19.9975 19.9275 19.9975 20.2175 19.7075C20.5075 19.4175 20.5075 18.9375 20.2175 18.6475L14.0275 12.4675L20.2175 6.2775C20.5075 5.9875 20.5075 5.5075 20.2175 5.2175C19.9275 4.9275 19.4475 4.9275 19.1575 5.2175L12.9675 11.4075L6.7775 5.2175C6.4875 4.9275 6.0075 4.9275 5.7175 5.2175C5.4275 5.5075 5.4275 5.9875 5.7175 6.2775L11.9075 12.4675L5.7175 18.6475Z" fill="#36373C"/>
4
3
  </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M20.2501 6H2.99999L2.99999 12.545H4.87498V11.9759C4.87498 11.0094 5.6305 10.226 6.56248 10.226H20.2501V6ZM21.75 10.226V6C21.75 5.17157 21.0785 4.5 20.2501 4.5H2.99999C2.17157 4.5 1.5 5.17157 1.5 6V12.545C1.5 13.3734 2.17157 14.045 2.99999 14.045H4.87498V18.0211C4.87498 18.9875 5.6305 19.771 6.56248 19.771H8.24996V23.7501C8.24996 24.7165 9.00548 25.5 9.93746 25.5H26.8125C27.7445 25.5 28.5 24.7165 28.5 23.7501V17.7049C28.5 16.7385 27.7445 15.955 26.8125 15.955H25.125V11.9759C25.125 11.0094 24.3695 10.226 23.4375 10.226H21.75ZM23.4375 11.9759V15.955H9.93746C9.00548 15.955 8.24996 16.7385 8.24996 17.7049V18.0211H6.56248L6.56248 11.9759H23.4375ZM9.93746 17.7049H26.8125V23.7501H9.93746V17.7049Z" fill="#212124"/>
3
+ </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>
@@ -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>
@@ -3,25 +3,25 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var TwitterIcon = require("../twitter.svg");
6
+ var XIcon = require("../x.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
10
10
  };
11
11
  }
12
- var TwitterIcon__default = /*#__PURE__*/_interopDefault(TwitterIcon);
12
+ var XIcon__default = /*#__PURE__*/_interopDefault(XIcon);
13
13
  Object.defineProperty(exports, "default", {
14
14
  enumerable: true,
15
15
  get: function () {
16
- return TwitterIcon__default["default"];
16
+ return XIcon__default["default"];
17
17
  }
18
18
  });
19
- Object.keys(TwitterIcon).forEach(function (k) {
19
+ Object.keys(XIcon).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 TwitterIcon[k];
23
+ return XIcon[k];
24
24
  }
25
25
  });
26
26
  });
27
- //# sourceMappingURL=twitter.svg.js.map
27
+ //# sourceMappingURL=x.svg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x.svg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,3 @@
1
+ export * from "../x.svg";
2
+ export { default } from "../x.svg";
3
+ //# sourceMappingURL=x.svg.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"x.svg.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,3 @@
1
+ <svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path opacity="0.9" d="M8.32633 5.92873L13.5347 0H12.3009L7.77659 5.14678L4.16573 0H0L5.46152 7.78358L0 14H1.23377L6.00846 8.56366L9.82261 14H13.9883M1.67907 0.911107H3.57449L12.3 13.1337H10.4041" fill="black" fill-opacity="0.45"/>
3
+ </svg>
@@ -14,7 +14,7 @@ var FeaturesSection_styles = require('./FeaturesSection.styles.js');
14
14
  var useLockBodyScrollCustom = require('../../hooks/useLockBodyScrollCustom.js');
15
15
  var Container = require('../Container/Container.js');
16
16
  var StyleableSvgImage = require('../StyleableSvgImage/StyleableSvgImage.js');
17
- var CloseSvg = require("../../assets/close3.svg");
17
+ var CloseSvg = require("../../assets/close2.svg");
18
18
  function _interopDefault(e) {
19
19
  return e && e.__esModule ? e : {
20
20
  default: e
@@ -12,7 +12,7 @@ import { WrapOuter, OverlayWrap, OverlayClose, Wrap, MetaWrap, SubHeading, Headi
12
12
  import { useLockBodyScrollCustom } from '../../hooks/useLockBodyScrollCustom.mjs';
13
13
  import { Container } from '../Container/Container.mjs';
14
14
  import { StyleableSvgImage } from '../StyleableSvgImage/StyleableSvgImage.mjs';
15
- import CloseSvg__default from "../../assets/close3.svg";
15
+ import CloseSvg__default from "../../assets/close2.svg";
16
16
  "use strict";
17
17
  const FEATURES_DEFAULT_PLAYBACK = 500;
18
18
  const parseTime = time => parseFloat(time.toFixed(3));
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var CloseSvg = require("../../../assets/close3.svg");
6
+ var CloseSvg = require("../../../assets/close2.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -1,3 +1,3 @@
1
- export * from "../../../assets/close3.svg";
2
- export { default } from "../../../assets/close3.svg";
1
+ export * from "../../../assets/close2.svg";
2
+ export { default } from "../../../assets/close2.svg";
3
3
  //# sourceMappingURL=close.svg.mjs.map
@@ -1,2 +1,2 @@
1
1
  import type { FooterProps } from "./Footer.types";
2
- export declare const Footer: import("react").NamedExoticComponent<FooterProps>;
2
+ export declare const Footer: ({ legalOnly, motif, id, customer, storePicker, storeAddress, className, }: FooterProps) => JSX.Element;
@@ -2,92 +2,210 @@
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
4
  var react = require('react');
5
- var footerContent = require('../../constants/footerContent.js');
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');
6
11
  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');
7
19
  "use strict";
8
- const Footer = react.memo(function Footer2({
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 = ({
9
37
  legalOnly,
10
- motif = "light"
11
- }) {
12
- const termsContent = footerContent.contentForTerms();
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]);
13
110
  return /* @__PURE__ */jsxRuntime.jsx(Footer_styles.ContainerWrap, {
14
111
  condensed: legalOnly,
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"
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}`))
53
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
+ })]
163
+ })]
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}`))
54
173
  })]
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}`))
64
174
  })]
175
+ }), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.Break, {
176
+ $motif: motif
65
177
  })]
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 && "|"
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
+ })]
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")]
83
203
  })]
84
- }, `footer-term-${term.id}`))
85
- }), /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.Copyright, {
86
- children: ["\xA9 ", ( /* @__PURE__ */new Date()).getFullYear(), " Ubiquiti, Inc. All rights reserved."]
204
+ })]
87
205
  })]
88
- })]
206
+ })
89
207
  })
90
208
  });
91
- });
209
+ };
92
210
  exports.Footer = Footer;
93
211
  //# sourceMappingURL=Footer.js.map