@ubnt/store.core 9.9.0-alpha.9 → 9.9.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 (370) hide show
  1. package/CHANGELOG.md +0 -30
  2. package/lib/_virtual/_virtual_multi-entry.js +16 -4
  3. package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
  4. package/lib/_virtual/_virtual_multi-entry.mjs +2 -2
  5. package/lib/assets/attention.svg +5 -5
  6. package/lib/assets/attention2.svg +5 -5
  7. package/lib/assets/close2.svg +3 -2
  8. package/lib/assets/close3.svg +2 -3
  9. package/lib/assets/minus4.svg +8 -8
  10. package/lib/assets/minus5.svg +8 -8
  11. package/lib/assets/plus5.svg +9 -9
  12. package/lib/assets/plus6.svg +9 -9
  13. package/lib/assets/socialMedia/{x.svg.js → twitter.svg.js} +6 -6
  14. package/lib/assets/socialMedia/twitter.svg.js.map +1 -0
  15. package/lib/assets/socialMedia/twitter.svg.mjs +3 -0
  16. package/lib/assets/socialMedia/twitter.svg.mjs.map +1 -0
  17. package/lib/assets/twitter.svg +3 -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/components/FeaturesSection_deprecated/FeaturesSection.js +1 -1
  27. package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
  28. package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
  29. package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
  30. package/lib/components/Footer/Footer.d.ts +1 -1
  31. package/lib/components/Footer/Footer.js +74 -192
  32. package/lib/components/Footer/Footer.js.map +1 -1
  33. package/lib/components/Footer/Footer.mjs +76 -174
  34. package/lib/components/Footer/Footer.mjs.map +1 -1
  35. package/lib/components/Footer/Footer.styles.d.ts +5 -17
  36. package/lib/components/Footer/Footer.styles.js +44 -91
  37. package/lib/components/Footer/Footer.styles.js.map +1 -1
  38. package/lib/components/Footer/Footer.styles.mjs +44 -87
  39. package/lib/components/Footer/Footer.styles.mjs.map +1 -1
  40. package/lib/components/Footer/Footer.types.d.ts +0 -40
  41. package/lib/components/Footer/Footer.types.js +0 -16
  42. package/lib/components/Footer/Footer.types.js.map +1 -1
  43. package/lib/components/Footer/Footer.types.mjs +0 -15
  44. package/lib/components/Footer/Footer.types.mjs.map +1 -1
  45. package/lib/components/Footer/index.js +1 -3
  46. package/lib/components/Footer/index.js.map +1 -1
  47. package/lib/components/Footer/index.mjs +1 -1
  48. package/lib/components/Header/AccountMenu/AccountMenu.js +3 -6
  49. package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
  50. package/lib/components/Header/AccountMenu/AccountMenu.mjs +3 -6
  51. package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
  52. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +6 -11
  53. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js.map +1 -1
  54. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.mjs +6 -11
  55. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.mjs.map +1 -1
  56. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +4 -8
  57. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
  58. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +4 -8
  59. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
  60. package/lib/components/Header/ProHeader/ProHeader.js +2 -19
  61. package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
  62. package/lib/components/Header/ProHeader/ProHeader.mjs +2 -19
  63. package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
  64. package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +0 -1
  65. package/lib/components/Header/ProHeader/ProHeader.styles.js +0 -6
  66. package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
  67. package/lib/components/Header/ProHeader/ProHeader.styles.mjs +0 -6
  68. package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
  69. package/lib/components/LandingPagePro/LandingPagePro.d.ts +0 -3
  70. package/lib/components/LandingPagePro/LandingPagePro.js +3 -3
  71. package/lib/components/LandingPagePro/LandingPagePro.js.map +1 -1
  72. package/lib/components/LandingPagePro/LandingPagePro.mjs +2 -2
  73. package/lib/components/LandingPagePro/LandingPagePro.mjs.map +1 -1
  74. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.js +5 -5
  75. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.mjs +2 -2
  76. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
  77. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
  78. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
  79. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
  80. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
  81. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
  82. package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.js +1 -1
  83. package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.mjs +2 -2
  84. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
  85. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
  86. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
  87. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
  88. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
  89. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
  90. package/lib/components/ModelCompareV3/data/CloudGateways.js +12 -12
  91. package/lib/components/ModelCompareV3/data/CloudGateways.mjs +8 -8
  92. package/lib/components/ModelCompareV3/data/products/ucgUltra.js +1 -1
  93. package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +1 -1
  94. package/lib/components/ModelCompareV3/data/products/udmPro.js +1 -1
  95. package/lib/components/ModelCompareV3/data/products/udmPro.mjs +1 -1
  96. package/lib/components/ModelCompareV3/data/products/udmProMax.js +1 -1
  97. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +1 -1
  98. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +1 -1
  99. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +1 -1
  100. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +1 -6
  101. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
  102. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +1 -6
  103. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
  104. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +2 -2
  105. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js.map +1 -1
  106. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +2 -2
  107. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs.map +1 -1
  108. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js +0 -2
  109. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js.map +1 -1
  110. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs +0 -2
  111. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs.map +1 -1
  112. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +2 -2
  113. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
  114. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
  115. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
  116. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
  117. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
  118. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
  119. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
  120. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +1 -1
  121. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
  122. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
  123. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
  124. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +2 -2
  125. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
  126. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
  127. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
  128. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
  129. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
  130. package/lib/components/VideoPlayerNew/VideoPlayer.js +1 -1
  131. package/lib/components/VideoPlayerNew/VideoPlayer.mjs +1 -1
  132. package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
  133. package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
  134. package/lib/constants/footerContent.d.ts +145 -0
  135. package/lib/constants/footerContent.js +313 -0
  136. package/lib/constants/footerContent.js.map +1 -0
  137. package/lib/constants/footerContent.mjs +293 -0
  138. package/lib/constants/footerContent.mjs.map +1 -0
  139. package/lib/constants/icons/options/colors/black.svg.js +5 -5
  140. package/lib/constants/icons/options/colors/index.js +3 -3
  141. package/lib/constants/icons/options/styles/black.svg.js +5 -5
  142. package/lib/constants/icons/options/styles/index.js +3 -3
  143. package/lib/constants/optionIcons.js +6 -6
  144. package/lib/constants/optionIcons.mjs +4 -4
  145. package/lib/constants/proStoreCategories/mapping/index.d.ts +0 -3
  146. package/lib/constants/proStoreCategories/mapping/index.js +10 -20
  147. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  148. package/lib/constants/proStoreCategories/mapping/index.mjs +10 -20
  149. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  150. package/lib/constants/proStoreCategories/mapping/unifi.d.ts +1 -3
  151. package/lib/constants/proStoreCategories/mapping/unifi.js +0 -2
  152. package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
  153. package/lib/constants/proStoreCategories/mapping/unifi.mjs +0 -2
  154. package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
  155. package/lib/constants/proStoreCategories/translations/ar.json.js +1 -1
  156. package/lib/constants/proStoreCategories/translations/ar.json.mjs +1 -1
  157. package/lib/constants/proStoreCategories/translations/de.json.js +1 -1
  158. package/lib/constants/proStoreCategories/translations/de.json.mjs +1 -1
  159. package/lib/constants/proStoreCategories/translations/el.json.js +1 -1
  160. package/lib/constants/proStoreCategories/translations/el.json.mjs +1 -1
  161. package/lib/constants/proStoreCategories/translations/en.json.js +0 -5
  162. package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
  163. package/lib/constants/proStoreCategories/translations/en.json.mjs +1 -5
  164. package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
  165. package/lib/constants/proStoreCategories/translations/es.json.js +1 -1
  166. package/lib/constants/proStoreCategories/translations/es.json.mjs +1 -1
  167. package/lib/constants/proStoreCategories/translations/fr.json.js +2 -2
  168. package/lib/constants/proStoreCategories/translations/fr.json.mjs +2 -2
  169. package/lib/constants/proStoreCategories/translations/it.json.js +1 -1
  170. package/lib/constants/proStoreCategories/translations/it.json.mjs +1 -1
  171. package/lib/constants/proStoreCategories/translations/ja.json.js +1 -1
  172. package/lib/constants/proStoreCategories/translations/ja.json.mjs +1 -1
  173. package/lib/constants/proStoreCategories/translations/pt-BR.json.js +1 -1
  174. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +1 -1
  175. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +2 -2
  176. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +2 -2
  177. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +2 -2
  178. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +2 -2
  179. package/lib/constants/url.d.ts +4 -4
  180. package/lib/constants/url.js +4 -4
  181. package/lib/constants/url.js.map +1 -1
  182. package/lib/constants/url.mjs +4 -4
  183. package/lib/constants/url.mjs.map +1 -1
  184. package/lib/contexts/MenuContext/mapping.js +0 -41
  185. package/lib/contexts/MenuContext/mapping.js.map +1 -1
  186. package/lib/contexts/MenuContext/mapping.mjs +0 -41
  187. package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
  188. package/lib/contexts/MenuContext/presets.js.map +1 -1
  189. package/lib/contexts/MenuContext/presets.mjs.map +1 -1
  190. package/lib/helpers/index.d.ts +1 -0
  191. package/lib/helpers/index.js +12 -0
  192. package/lib/helpers/index.js.map +1 -1
  193. package/lib/helpers/index.mjs +1 -0
  194. package/lib/helpers/index.mjs.map +1 -1
  195. package/lib/helpers/product.d.ts +96 -0
  196. package/lib/helpers/product.js +360 -0
  197. package/lib/helpers/product.js.map +1 -0
  198. package/lib/helpers/product.mjs +348 -0
  199. package/lib/helpers/product.mjs.map +1 -0
  200. package/lib/types/index.d.ts +1 -0
  201. package/lib/types/index.js +2 -0
  202. package/lib/types/index.js.map +1 -1
  203. package/lib/types/index.mjs +1 -0
  204. package/lib/types/index.mjs.map +1 -1
  205. package/lib/types/product.d.ts +87 -0
  206. package/lib/types/product.js +14 -0
  207. package/lib/types/product.js.map +1 -0
  208. package/lib/types/product.mjs +13 -0
  209. package/lib/types/product.mjs.map +1 -0
  210. package/lib/utils/address.d.ts +61 -61
  211. package/lib/utils/array.d.ts +4 -0
  212. package/lib/utils/array.js +10 -0
  213. package/lib/utils/array.js.map +1 -1
  214. package/lib/utils/array.mjs +10 -1
  215. package/lib/utils/array.mjs.map +1 -1
  216. package/lib/utils/index.d.ts +0 -1
  217. package/lib/utils/index.js +0 -2
  218. package/lib/utils/index.js.map +1 -1
  219. package/lib/utils/index.mjs +0 -2
  220. package/lib/utils/index.mjs.map +1 -1
  221. package/lib/utils/money/constants.d.ts +25 -56
  222. package/lib/utils/money/constants.js +7 -72
  223. package/lib/utils/money/constants.js.map +1 -1
  224. package/lib/utils/money/constants.mjs +7 -70
  225. package/lib/utils/money/constants.mjs.map +1 -1
  226. package/lib/utils/money/format.d.ts +5 -10
  227. package/lib/utils/money/format.js +14 -22
  228. package/lib/utils/money/format.js.map +1 -1
  229. package/lib/utils/money/format.mjs +16 -23
  230. package/lib/utils/money/format.mjs.map +1 -1
  231. package/lib/utils/money/index.d.ts +1 -4
  232. package/lib/utils/money/index.js +8 -26
  233. package/lib/utils/money/index.js.map +1 -1
  234. package/lib/utils/money/index.mjs +4 -8
  235. package/lib/utils/money/index.mjs.map +1 -1
  236. package/lib/utils/money/misc.d.ts +28 -68
  237. package/lib/utils/money/misc.js +64 -35
  238. package/lib/utils/money/misc.js.map +1 -1
  239. package/lib/utils/money/misc.mjs +43 -32
  240. package/lib/utils/money/misc.mjs.map +1 -1
  241. package/lib/utils/money/tax.d.ts +2 -38
  242. package/lib/utils/money/tax.js +10 -46
  243. package/lib/utils/money/tax.js.map +1 -1
  244. package/lib/utils/money/tax.mjs +11 -42
  245. package/lib/utils/money/tax.mjs.map +1 -1
  246. package/lib/utils/money/types.d.ts +3 -78
  247. package/lib/utils/number.d.ts +1 -1
  248. package/lib/utils/number.js +1 -1
  249. package/lib/utils/number.js.map +1 -1
  250. package/lib/utils/number.mjs +1 -1
  251. package/lib/utils/number.mjs.map +1 -1
  252. package/lib/utils/productSort.d.ts +41 -0
  253. package/lib/utils/productSort.js +66 -0
  254. package/lib/utils/productSort.js.map +1 -0
  255. package/lib/utils/productSort.mjs +59 -0
  256. package/lib/utils/productSort.mjs.map +1 -0
  257. package/lib/utils/validations.d.ts +15 -0
  258. package/lib/utils/validations.js +23 -0
  259. package/lib/utils/validations.js.map +1 -0
  260. package/lib/utils/validations.mjs +21 -0
  261. package/lib/utils/validations.mjs.map +1 -0
  262. package/package.json +1 -1
  263. package/lib/assets/socialMedia/x.svg.js.map +0 -1
  264. package/lib/assets/socialMedia/x.svg.mjs +0 -3
  265. package/lib/assets/socialMedia/x.svg.mjs.map +0 -1
  266. package/lib/assets/x.svg +0 -3
  267. package/lib/components/Footer/hooks/useFooterContent.d.ts +0 -94
  268. package/lib/components/Footer/hooks/useFooterContent.js +0 -384
  269. package/lib/components/Footer/hooks/useFooterContent.js.map +0 -1
  270. package/lib/components/Footer/hooks/useFooterContent.mjs +0 -348
  271. package/lib/components/Footer/hooks/useFooterContent.mjs.map +0 -1
  272. package/lib/components/Footer/translations/ar.json.js +0 -47
  273. package/lib/components/Footer/translations/ar.json.js.map +0 -1
  274. package/lib/components/Footer/translations/ar.json.mjs +0 -42
  275. package/lib/components/Footer/translations/ar.json.mjs.map +0 -1
  276. package/lib/components/Footer/translations/de.json.js +0 -47
  277. package/lib/components/Footer/translations/de.json.js.map +0 -1
  278. package/lib/components/Footer/translations/de.json.mjs +0 -42
  279. package/lib/components/Footer/translations/de.json.mjs.map +0 -1
  280. package/lib/components/Footer/translations/el.json.js +0 -47
  281. package/lib/components/Footer/translations/el.json.js.map +0 -1
  282. package/lib/components/Footer/translations/el.json.mjs +0 -42
  283. package/lib/components/Footer/translations/el.json.mjs.map +0 -1
  284. package/lib/components/Footer/translations/en.json.js +0 -46
  285. package/lib/components/Footer/translations/en.json.js.map +0 -1
  286. package/lib/components/Footer/translations/en.json.mjs +0 -41
  287. package/lib/components/Footer/translations/en.json.mjs.map +0 -1
  288. package/lib/components/Footer/translations/es.json.js +0 -47
  289. package/lib/components/Footer/translations/es.json.js.map +0 -1
  290. package/lib/components/Footer/translations/es.json.mjs +0 -42
  291. package/lib/components/Footer/translations/es.json.mjs.map +0 -1
  292. package/lib/components/Footer/translations/fr.json.js +0 -47
  293. package/lib/components/Footer/translations/fr.json.js.map +0 -1
  294. package/lib/components/Footer/translations/fr.json.mjs +0 -42
  295. package/lib/components/Footer/translations/fr.json.mjs.map +0 -1
  296. package/lib/components/Footer/translations/it.json.js +0 -47
  297. package/lib/components/Footer/translations/it.json.js.map +0 -1
  298. package/lib/components/Footer/translations/it.json.mjs +0 -42
  299. package/lib/components/Footer/translations/it.json.mjs.map +0 -1
  300. package/lib/components/Footer/translations/ja.json.js +0 -47
  301. package/lib/components/Footer/translations/ja.json.js.map +0 -1
  302. package/lib/components/Footer/translations/ja.json.mjs +0 -42
  303. package/lib/components/Footer/translations/ja.json.mjs.map +0 -1
  304. package/lib/components/Footer/translations/pt-BR.json.js +0 -47
  305. package/lib/components/Footer/translations/pt-BR.json.js.map +0 -1
  306. package/lib/components/Footer/translations/pt-BR.json.mjs +0 -42
  307. package/lib/components/Footer/translations/pt-BR.json.mjs.map +0 -1
  308. package/lib/components/Footer/translations/zh-Hans.json.js +0 -47
  309. package/lib/components/Footer/translations/zh-Hans.json.js.map +0 -1
  310. package/lib/components/Footer/translations/zh-Hans.json.mjs +0 -42
  311. package/lib/components/Footer/translations/zh-Hans.json.mjs.map +0 -1
  312. package/lib/components/Footer/translations/zh-Hant-TW.json.js +0 -47
  313. package/lib/components/Footer/translations/zh-Hant-TW.json.js.map +0 -1
  314. package/lib/components/Footer/translations/zh-Hant-TW.json.mjs +0 -42
  315. package/lib/components/Footer/translations/zh-Hant-TW.json.mjs.map +0 -1
  316. package/lib/components/Tooltip/Tooltip.d.ts +0 -2
  317. package/lib/components/Tooltip/Tooltip.js +0 -45
  318. package/lib/components/Tooltip/Tooltip.js.map +0 -1
  319. package/lib/components/Tooltip/Tooltip.mjs +0 -43
  320. package/lib/components/Tooltip/Tooltip.mjs.map +0 -1
  321. package/lib/components/Tooltip/Tooltip.styles.d.ts +0 -32
  322. package/lib/components/Tooltip/Tooltip.styles.js +0 -44
  323. package/lib/components/Tooltip/Tooltip.styles.js.map +0 -1
  324. package/lib/components/Tooltip/Tooltip.styles.mjs +0 -34
  325. package/lib/components/Tooltip/Tooltip.styles.mjs.map +0 -1
  326. package/lib/components/Tooltip/index.d.ts +0 -1
  327. package/lib/components/Tooltip/index.js +0 -6
  328. package/lib/components/Tooltip/index.js.map +0 -1
  329. package/lib/components/Tooltip/index.mjs +0 -3
  330. package/lib/components/Tooltip/index.mjs.map +0 -1
  331. package/lib/utils/money/allocators/fixedAmount.d.ts +0 -26
  332. package/lib/utils/money/allocators/fixedAmount.js +0 -55
  333. package/lib/utils/money/allocators/fixedAmount.js.map +0 -1
  334. package/lib/utils/money/allocators/fixedAmount.mjs +0 -53
  335. package/lib/utils/money/allocators/fixedAmount.mjs.map +0 -1
  336. package/lib/utils/money/allocators/index.d.ts +0 -2
  337. package/lib/utils/money/allocators/index.js +0 -8
  338. package/lib/utils/money/allocators/index.js.map +0 -1
  339. package/lib/utils/money/allocators/index.mjs +0 -4
  340. package/lib/utils/money/allocators/index.mjs.map +0 -1
  341. package/lib/utils/money/allocators/productAmount.d.ts +0 -13
  342. package/lib/utils/money/allocators/productAmount.js +0 -110
  343. package/lib/utils/money/allocators/productAmount.js.map +0 -1
  344. package/lib/utils/money/allocators/productAmount.mjs +0 -108
  345. package/lib/utils/money/allocators/productAmount.mjs.map +0 -1
  346. package/lib/utils/money/exchangeRate.d.ts +0 -31
  347. package/lib/utils/money/exchangeRate.js +0 -27
  348. package/lib/utils/money/exchangeRate.js.map +0 -1
  349. package/lib/utils/money/exchangeRate.mjs +0 -23
  350. package/lib/utils/money/exchangeRate.mjs.map +0 -1
  351. package/lib/utils/money/misc.private.d.ts +0 -23
  352. package/lib/utils/money/misc.private.js +0 -46
  353. package/lib/utils/money/misc.private.js.map +0 -1
  354. package/lib/utils/money/misc.private.mjs +0 -21
  355. package/lib/utils/money/misc.private.mjs.map +0 -1
  356. package/lib/utils/money/shipping.d.ts +0 -5
  357. package/lib/utils/money/shipping.js +0 -8
  358. package/lib/utils/money/shipping.js.map +0 -1
  359. package/lib/utils/money/shipping.mjs +0 -6
  360. package/lib/utils/money/shipping.mjs.map +0 -1
  361. package/lib/utils/money/tax.private.d.ts +0 -17
  362. package/lib/utils/money/tax.private.js +0 -65
  363. package/lib/utils/money/tax.private.js.map +0 -1
  364. package/lib/utils/money/tax.private.mjs +0 -60
  365. package/lib/utils/money/tax.private.mjs.map +0 -1
  366. package/lib/utils/typeGuards.d.ts +0 -1
  367. package/lib/utils/typeGuards.js +0 -6
  368. package/lib/utils/typeGuards.js.map +0 -1
  369. package/lib/utils/typeGuards.mjs +0 -5
  370. package/lib/utils/typeGuards.mjs.map +0 -1
@@ -1,189 +1,91 @@
1
1
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
- import { useMemo } from 'react';
3
- import '../../contexts/MenuContext/index.mjs';
4
- import { SiteId } from '../../contexts/MenuContext/mapping.mjs';
5
- import '../../hooks/index.mjs';
6
- import '../../types/index.mjs';
7
- import { imageSrc } from '../../utils/asset.mjs';
8
- import '../Container/index.mjs';
9
- import { ContainerWrap, InnerContainer, Wrap, ListsWrap, ListItemWrap, Header, List, ListItem, ListItemAnchor, InnerWrap, Form, InputWrap, Input, SubmitButton, IconsWrapper, IconWrapper, Break, StoreAddress, TermsWrap, FlexWrap, AnchorGroup, CookieBtn, Anchor, AnchorDivider, FlexWrapResponsive, Copyright } from './Footer.styles.mjs';
10
- import { useFooterContent, FooterLinkId, COOKIE_POLICY_BTN_ID, COOKIE_POLICY_BTN_ID_CLASSNAME } from './hooks/useFooterContent.mjs';
11
- import EN_TRANSLATION from './translations/en.json.mjs';
12
- import { GlobalStoreId } from '../../types/generated.mjs';
13
- import { useMenu } from '../../contexts/MenuContext/context.mjs';
14
- import { useTranslation } from '../../hooks/useTranslation.mjs';
15
- import { Language } from '../../types/constants.mjs';
16
- import { Container } from '../Container/Container.mjs';
2
+ import { memo } from 'react';
3
+ import { contentForTerms, FOOTER_CONTENT, SOCIAL_CONTENT, FooterLinkId, COOKIE_POLICY_BTN_ID, COOKIE_POLICY_BTN_ID_CLASSNAME } from '../../constants/footerContent.mjs';
4
+ import { ContainerWrap, Container, Wrap, ListsWrap, ListItemWrap, Header, List, ListItem, ListItemAnchor, InnerWrap, Form, InputWrap, Input, Button, IconsWrapper, IconWrapper, Break, TermsWrap, FlexWrap, CookieBtn, AnchorGroup, Anchor, AnchorDivider, Copyright } from './Footer.styles.mjs';
17
5
  "use strict";
18
- const subscribeRegionValue = {
19
- [GlobalStoreId.Us]: "United States",
20
- [GlobalStoreId.Eu]: "Europe",
21
- [GlobalStoreId.Ca]: "Canada",
22
- [GlobalStoreId.Za]: "South Africa",
23
- [GlobalStoreId.Me]: "Middle East",
24
- [GlobalStoreId.Uk]: "United Kingdom",
25
- [GlobalStoreId.In]: "India",
26
- [GlobalStoreId.Sg]: "Singapore",
27
- [GlobalStoreId.Br]: "Brazil",
28
- [GlobalStoreId.Jp]: "Japan",
29
- [GlobalStoreId.Mx]: "Mexico",
30
- [GlobalStoreId.Ph]: "Philippines",
31
- [GlobalStoreId.Tw]: "Taiwan",
32
- [GlobalStoreId.Cn]: "China"
33
- };
34
- const Footer = ({
6
+ const Footer = memo(function Footer2({
35
7
  legalOnly,
36
- motif = "light",
37
- id,
38
- customer,
39
- storePicker,
40
- // storeBackendUrl,
41
- storeAddress,
42
- className
43
- }) => {
44
- const {
45
- storeId,
46
- context
47
- } = useMenu();
48
- const {
49
- footerContent,
50
- socialContent,
51
- termsContent
52
- } = useFooterContent();
53
- const {
54
- formatMessage
55
- } = useTranslation({
56
- defaultTranslation: EN_TRANSLATION,
57
- additionalTranslations: {
58
- [Language.Ja]: () => import('./translations/ja.json.mjs').then(res => res.default),
59
- [Language.Ar]: () => import('./translations/ar.json.mjs').then(res => res.default),
60
- [Language.De]: () => import('./translations/de.json.mjs').then(res => res.default),
61
- [Language.Es]: () => import('./translations/es.json.mjs').then(res => res.default),
62
- [Language.El]: () => import('./translations/el.json.mjs').then(res => res.default),
63
- [Language.It]: () => import('./translations/it.json.mjs').then(res => res.default),
64
- [Language.Pt]: () => import('./translations/pt-BR.json.mjs').then(res => res.default),
65
- [Language.Zh]: () => import('./translations/zh-Hans.json.mjs').then(res => res.default),
66
- [Language.Fr]: () => import('./translations/fr.json.mjs').then(res => res.default),
67
- [Language.Tw]: () => import('./translations/zh-Hant-TW.json.mjs').then(res => res.default)
68
- }
69
- });
70
- const hiddenFields = useMemo(() => {
71
- return {
72
- // Merge fields are based on Mailchimp settings
73
- u: "bc856e62a9254399365d0277b",
74
- id: "1c1b02cb37",
75
- MERGE1: customer?.firstName,
76
- MERGE2: customer?.lastName,
77
- // Always set the user as residential as we don't have any other type of user
78
- MERGE4: "Residential (home use)",
79
- // Always set the user as subscribed to all lists
80
- MERGE3: "subscribed",
81
- MERGE7: "subscribed",
82
- MERGE8: "subscribed",
83
- // Store region value expected in two fields
84
- MERGE6: subscribeRegionValue[storeId],
85
- MERGE9: subscribeRegionValue[storeId]
86
- };
87
- }, [customer?.firstName, customer?.lastName, storeId]);
8
+ motif = "light"
9
+ }) {
10
+ const termsContent = contentForTerms();
88
11
  return /* @__PURE__ */jsx(ContainerWrap, {
89
12
  condensed: legalOnly,
90
- $motif: motif,
91
- id,
92
- className,
93
- children: /* @__PURE__ */jsx(Container, {
94
- size: "desktop",
95
- noVerticalMargin: true,
96
- children: /* @__PURE__ */jsxs(InnerContainer, {
97
- children: [!legalOnly && /* @__PURE__ */jsxs(Fragment, {
98
- children: [/* @__PURE__ */jsxs(Wrap, {
99
- children: [/* @__PURE__ */jsx(ListsWrap, {
100
- children: Object.values(footerContent).map((list, i) => /* @__PURE__ */jsxs(ListItemWrap, {
101
- children: [/* @__PURE__ */jsxs(Header, {
102
- children: [" ", list.header.label]
103
- }), /* @__PURE__ */jsx(List, {
104
- children: list.items.map((item, j) => /* @__PURE__ */jsx(ListItem, {
105
- children: /* @__PURE__ */jsx(ListItemAnchor, {
106
- href: item.src,
107
- target: item.target,
108
- children: item.label
109
- })
110
- }, `footer-list-${i}-item-${j}`))
111
- })]
112
- }, `footer-list-${i}`))
113
- }), /* @__PURE__ */jsxs(InnerWrap, {
114
- children: [/* @__PURE__ */jsxs(Form, {
115
- method: "get",
116
- action: "https://ui.us8.list-manage.com/subscribe",
117
- target: "_blank",
118
- children: [/* @__PURE__ */jsx(Header, {
119
- children: formatMessage("footer.newsletter.touch")
120
- }), Object.entries(hiddenFields).map(([key, value]) => /* @__PURE__ */jsx("input", {
121
- type: "hidden",
122
- name: key,
123
- value
124
- }, key)), /* @__PURE__ */jsxs(InputWrap, {
125
- children: [/* @__PURE__ */jsx(Input, {
126
- type: "text",
127
- pattern: "[^@\\s]+@[^@\\s]+\\.[^@\\s]+",
128
- minLength: 6,
129
- maxLength: 254,
130
- required: true,
131
- autoCapitalize: "off",
132
- autoCorrect: "off",
133
- placeholder: formatMessage("footer.newsletter.email"),
134
- name: "EMAIL"
135
- }), /* @__PURE__ */jsx(SubmitButton, {
136
- type: "submit",
137
- className: motif,
138
- variant: "primary",
139
- children: formatMessage("footer.newsletter.subscribe")
140
- })]
13
+ $darkMode: motif === "dark",
14
+ children: /* @__PURE__ */jsxs(Container, {
15
+ children: [!legalOnly && /* @__PURE__ */jsxs(Fragment, {
16
+ children: [/* @__PURE__ */jsxs(Wrap, {
17
+ children: [/* @__PURE__ */jsx(ListsWrap, {
18
+ children: Object.values(FOOTER_CONTENT).map((list, i) => /* @__PURE__ */jsxs(ListItemWrap, {
19
+ children: [/* @__PURE__ */jsxs(Header, {
20
+ children: [" ", list.header.label]
21
+ }), /* @__PURE__ */jsx(List, {
22
+ children: list.items.map((item, j) => /* @__PURE__ */jsx(ListItem, {
23
+ children: /* @__PURE__ */jsx(ListItemAnchor, {
24
+ href: item.src,
25
+ target: item.target,
26
+ children: item.label
27
+ })
28
+ }, `footer-list-${i}-item-${j}`))
29
+ })]
30
+ }, `footer-list-${i}`))
31
+ }), /* @__PURE__ */jsxs(InnerWrap, {
32
+ children: [/* @__PURE__ */jsxs(Form, {
33
+ method: "post",
34
+ action: "https://ubnt.us8.list-manage.com/subscribe/post?u=bc856e62a9254399365d0277b",
35
+ target: "_blank",
36
+ children: [/* @__PURE__ */jsx(Header, {
37
+ children: "Stay in Touch"
38
+ }), /* @__PURE__ */jsx("input", {
39
+ type: "hidden",
40
+ name: "id",
41
+ value: "1c1b02cb37"
42
+ }), /* @__PURE__ */jsxs(InputWrap, {
43
+ children: [/* @__PURE__ */jsx(Input, {
44
+ type: "text",
45
+ placeholder: "Email",
46
+ name: "EMAIL"
47
+ }), /* @__PURE__ */jsx(Button, {
48
+ type: "submit",
49
+ className: motif,
50
+ children: "Subscribe"
141
51
  })]
142
- }), /* @__PURE__ */jsx(IconsWrapper, {
143
- children: socialContent.items.map(socialItem => /* @__PURE__ */jsx(IconWrapper, {
144
- href: socialItem.src,
145
- target: socialItem.target,
146
- children: socialItem.icon ? /* @__PURE__ */jsx("img", {
147
- src: imageSrc(socialItem.icon),
148
- alt: socialItem.label
149
- }) : socialItem.label
150
- }, `footer-social-link-${socialItem.label}`))
151
52
  })]
53
+ }), /* @__PURE__ */jsx(IconsWrapper, {
54
+ children: SOCIAL_CONTENT.items.map(socialItem => /* @__PURE__ */jsx(IconWrapper, {
55
+ href: socialItem.src,
56
+ target: socialItem.target,
57
+ children: /* @__PURE__ */jsx("img", {
58
+ src: typeof socialItem.icon === "string" ? socialItem.icon : socialItem.icon.src,
59
+ alt: socialItem.label
60
+ })
61
+ }, `footer-social-link-${socialItem.label}`))
152
62
  })]
153
- }), /* @__PURE__ */jsx(Break, {
154
- $motif: motif
155
- })]
156
- }), context === SiteId.Store && storeAddress && /* @__PURE__ */jsxs(Fragment, {
157
- children: [/* @__PURE__ */jsx(StoreAddress, {
158
- children: storeAddress
159
- }), /* @__PURE__ */jsx(Break, {
160
- $motif: motif
161
63
  })]
162
- }), /* @__PURE__ */jsxs(TermsWrap, {
163
- children: [/* @__PURE__ */jsx(FlexWrap, {
164
- children: termsContent.items.map((term, i) => /* @__PURE__ */jsxs(AnchorGroup, {
165
- children: [term.id === FooterLinkId.Cookie ? /* @__PURE__ */jsx(CookieBtn, {
166
- type: "button",
167
- id: COOKIE_POLICY_BTN_ID,
168
- className: COOKIE_POLICY_BTN_ID_CLASSNAME,
169
- children: term.label
170
- }, `footer-term-${term.id}`) : /* @__PURE__ */jsx(Anchor, {
171
- href: term.src,
172
- target: term.target,
173
- children: term.label
174
- }), /* @__PURE__ */jsx(AnchorDivider, {
175
- children: i !== termsContent.items.length - 1 && "|"
176
- })]
177
- }, `footer-term-${term.id}`))
178
- }), /* @__PURE__ */jsxs(FlexWrapResponsive, {
179
- children: [storePicker, /* @__PURE__ */jsxs(Copyright, {
180
- children: ["\xA9 ", ( /* @__PURE__ */new Date()).getFullYear(), " ", formatMessage("footer.copyright")]
64
+ }), /* @__PURE__ */jsx(Break, {
65
+ $darkMode: motif === "dark"
66
+ })]
67
+ }), /* @__PURE__ */jsxs(TermsWrap, {
68
+ children: [/* @__PURE__ */jsx(FlexWrap, {
69
+ children: termsContent.items.map((term, i) => term.id === FooterLinkId.Cookie ? /* @__PURE__ */jsx(CookieBtn, {
70
+ type: "button",
71
+ id: COOKIE_POLICY_BTN_ID,
72
+ className: COOKIE_POLICY_BTN_ID_CLASSNAME,
73
+ children: term.label
74
+ }, `footer-term-${term.id}`) : /* @__PURE__ */jsxs(AnchorGroup, {
75
+ children: [/* @__PURE__ */jsx(Anchor, {
76
+ href: term.src,
77
+ target: term.target,
78
+ children: term.label
79
+ }), /* @__PURE__ */jsx(AnchorDivider, {
80
+ children: i !== termsContent.items.length - 1 && "|"
181
81
  })]
182
- })]
82
+ }, `footer-term-${term.id}`))
83
+ }), /* @__PURE__ */jsxs(Copyright, {
84
+ children: ["\xA9 ", ( /* @__PURE__ */new Date()).getFullYear(), " Ubiquiti, Inc. All rights reserved."]
183
85
  })]
184
- })
86
+ })]
185
87
  })
186
88
  });
187
- };
89
+ });
188
90
  export { Footer };
189
91
  //# sourceMappingURL=Footer.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Footer.mjs","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","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,aAAc,CAAAC,EAAE,GAAG,eAAA;EACpB,CAACD,aAAc,CAAAE,EAAE,GAAG,QAAA;EACpB,CAACF,aAAc,CAAAG,EAAE,GAAG,QAAA;EACpB,CAACH,aAAc,CAAAI,EAAE,GAAG,cAAA;EACpB,CAACJ,aAAc,CAAAK,EAAE,GAAG,aAAA;EACpB,CAACL,aAAc,CAAAM,EAAE,GAAG,gBAAA;EACpB,CAACN,aAAc,CAAAO,EAAE,GAAG,OAAA;EACpB,CAACP,aAAc,CAAAQ,EAAE,GAAG,WAAA;EACpB,CAACR,aAAc,CAAAS,EAAE,GAAG,QAAA;EACpB,CAACT,aAAc,CAAAU,EAAE,GAAG,OAAA;EACpB,CAACV,aAAc,CAAAW,EAAE,GAAG,QAAA;EACpB,CAACX,aAAc,CAAAY,EAAE,GA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H,SAAU,EAAA;cAAAtE,QAAA,EAAA,CAAA,OAAA,EACN,iBAAA,IAAIuE,IAAK,CAAA,CAAA,EAAEC,WAAY,CAAA,CAAA,EAAG,GAAA,EAC5B3G,cAAc,kBAAkB,CAAA;aACnC,CAAA;WACF,CAAA;SACF,CAAA;MAAA,CACF;IACF,CAAA;EAAA,CAAA,CACF;AAEJ,CAAA;"}
1
+ {"version":3,"file":"Footer.mjs","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,IAAK,CAAA,SAASD,OAAOE,CAAA;EACzCC,SAAA;EACAC,KAAQ,GAAA;AACV,CAAgB,EAAA;EACd,MAAMC,eAAeC,eAAgB,EAAA;EAGnC,OAAA,eAAAC,GAAA,CAACC;IAAcC,SAAW,EAAAN,SAAA;IAAWO,WAAWN,KAAU,KAAA,MAAA;IACxDO,8BAACC,SACE,EAAA;MAAAD,QAAA,EAAA,CAAA,CAACR,aAEE,eAAAU,IAAA,CAAAC,QAAA,EAAA;QAAAH,QAAA,EAAA,CAAA,eAAAE,IAAA,CAACE,IACC,EAAA;UAAAJ,QAAA,EAAA,CAAC,eAAAJ,GAAA,CAAAS,SAAA,EAAA;YACEL,QAAO,EAAAM,MAAA,CAAAC,MAAA,CAAOC,cAAc,CAAA,CAAEC,IAAI,CAACC,IAAA,EAAMC,CACxC,KAAA,eAAAT,IAAA,CAACU,YACC,EAAA;cAAAZ,QAAA,EAAA,CAAA,eAAAE,IAAA,CAACW,MAAO,EAAA;gBAAAb,QAAA,EAAA,CAAA,GAAA,EAAEU,KAAKI,MAAO,CAAAC,KAAA;eAAM,CAAA,EAAA,eAC5BnB,GAAA,CAACoB,IACE,EAAA;gBAAAhB,QAAA,EAAAU,IAAA,CAAKO,KAAM,CAAAR,GAAA,CAAI,CAACS,IAAA,EAAMC,CACrB,KAAA,eAAAvB,GAAA,CAACwB,QACC,EAAA;kBAAApB,QAAA,EAAA,eAAAJ,GAAA,CAACyB,cAAe,EAAA;oBAAAC,IAAA,EAAMJ,IAAK,CAAAK,GAAA;oBAAKC,MAAQ,EAAAN,IAAA,CA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ubnt/ui-components/utils";
2
- import { FormStatus } from "./Footer.types";
3
1
  export declare const AnchorGroup: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
2
  export declare const Anchor: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {}, never>;
5
3
  export declare const CookieBtn: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
6
4
  export declare const AnchorDivider: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
7
5
  export declare const Break: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
8
- $motif: Motif;
6
+ $darkMode: boolean;
9
7
  }, never>;
10
8
  export declare const Copyright: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
11
9
  export declare const Form: import("styled-components").StyledComponent<"form", import("styled-components").DefaultTheme, {}, never>;
@@ -13,29 +11,19 @@ export declare const Header: import("styled-components").StyledComponent<"h1", i
13
11
  export declare const IconsWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
14
12
  export declare const IconWrapper: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {}, never>;
15
13
  export declare const InnerWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
16
- export declare const Input: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {
17
- $error?: boolean;
18
- }, never>;
14
+ export declare const Input: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {}, never>;
19
15
  export declare const InputWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
20
16
  export declare const List: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
21
17
  export declare const ListItem: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {}, never>;
22
18
  export declare const ListItemAnchor: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {}, never>;
23
19
  export declare const ListItemWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
24
20
  export declare const ListsWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
25
- export declare const FlexWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
26
- export declare const FlexWrapResponsive: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
27
21
  export declare const TermsWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
28
22
  export declare const Wrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
23
+ export declare const FlexWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
29
24
  export declare const ContainerWrap: import("styled-components").StyledComponent<"footer", import("styled-components").DefaultTheme, {
30
25
  condensed?: boolean;
31
- $motif: Motif;
26
+ $darkMode: boolean;
32
27
  }, never>;
33
28
  export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
34
- export declare const SubmitButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../Button/Button.types").ButtonProps & {
35
- children?: import("react").ReactNode;
36
- } & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>>, import("styled-components").DefaultTheme, {}, never>;
37
- export declare const FormMessage: import("styled-components").StyledComponent<"p", import("styled-components").DefaultTheme, {
38
- $status?: FormStatus;
39
- }, never>;
40
- export declare const StoreAddress: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
41
- export declare const InnerContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
29
+ export declare const Button: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;