@ubnt/store.core 9.9.0-alpha.8 → 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 (344) hide show
  1. package/CHANGELOG.md +0 -26
  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/minus4.svg +8 -8
  6. package/lib/assets/minus5.svg +8 -8
  7. package/lib/assets/plus5.svg +9 -9
  8. package/lib/assets/plus6.svg +9 -9
  9. package/lib/assets/socialMedia/{x.svg.js → twitter.svg.js} +6 -6
  10. package/lib/assets/socialMedia/twitter.svg.js.map +1 -0
  11. package/lib/assets/socialMedia/twitter.svg.mjs +3 -0
  12. package/lib/assets/socialMedia/twitter.svg.mjs.map +1 -0
  13. package/lib/assets/twitter.svg +3 -0
  14. package/lib/assets/udmPro.jpg +0 -0
  15. package/lib/assets/udmPro2.jpg +0 -0
  16. package/lib/assets/udmProMax.jpg +0 -0
  17. package/lib/assets/udmProMax2.jpg +0 -0
  18. package/lib/assets/udmProSpecial.jpg +0 -0
  19. package/lib/assets/udmProSpecial2.jpg +0 -0
  20. package/lib/components/Footer/Footer.d.ts +1 -1
  21. package/lib/components/Footer/Footer.js +74 -192
  22. package/lib/components/Footer/Footer.js.map +1 -1
  23. package/lib/components/Footer/Footer.mjs +76 -174
  24. package/lib/components/Footer/Footer.mjs.map +1 -1
  25. package/lib/components/Footer/Footer.styles.d.ts +5 -17
  26. package/lib/components/Footer/Footer.styles.js +44 -90
  27. package/lib/components/Footer/Footer.styles.js.map +1 -1
  28. package/lib/components/Footer/Footer.styles.mjs +44 -86
  29. package/lib/components/Footer/Footer.styles.mjs.map +1 -1
  30. package/lib/components/Footer/Footer.types.d.ts +0 -40
  31. package/lib/components/Footer/Footer.types.js +0 -16
  32. package/lib/components/Footer/Footer.types.js.map +1 -1
  33. package/lib/components/Footer/Footer.types.mjs +0 -15
  34. package/lib/components/Footer/Footer.types.mjs.map +1 -1
  35. package/lib/components/Footer/index.js +1 -3
  36. package/lib/components/Footer/index.js.map +1 -1
  37. package/lib/components/Footer/index.mjs +1 -1
  38. package/lib/components/Header/AccountMenu/AccountMenu.js +3 -6
  39. package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
  40. package/lib/components/Header/AccountMenu/AccountMenu.mjs +3 -6
  41. package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
  42. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +6 -11
  43. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js.map +1 -1
  44. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.mjs +6 -11
  45. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.mjs.map +1 -1
  46. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +4 -8
  47. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
  48. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +4 -8
  49. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
  50. package/lib/components/Header/ProHeader/ProHeader.js +2 -19
  51. package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
  52. package/lib/components/Header/ProHeader/ProHeader.mjs +2 -19
  53. package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
  54. package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +0 -1
  55. package/lib/components/Header/ProHeader/ProHeader.styles.js +0 -6
  56. package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
  57. package/lib/components/Header/ProHeader/ProHeader.styles.mjs +0 -6
  58. package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
  59. package/lib/components/LandingPagePro/LandingPagePro.d.ts +0 -3
  60. package/lib/components/LandingPagePro/LandingPagePro.js +3 -3
  61. package/lib/components/LandingPagePro/LandingPagePro.js.map +1 -1
  62. package/lib/components/LandingPagePro/LandingPagePro.mjs +2 -2
  63. package/lib/components/LandingPagePro/LandingPagePro.mjs.map +1 -1
  64. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
  65. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
  66. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
  67. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
  68. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
  69. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
  70. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
  71. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
  72. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
  73. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
  74. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
  75. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
  76. package/lib/components/ModelCompareV3/data/CloudGateways.js +9 -9
  77. package/lib/components/ModelCompareV3/data/CloudGateways.mjs +6 -6
  78. package/lib/components/ModelCompareV3/data/products/udmPro.js +1 -1
  79. package/lib/components/ModelCompareV3/data/products/udmPro.mjs +1 -1
  80. package/lib/components/ModelCompareV3/data/products/udmProMax.js +1 -1
  81. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +1 -1
  82. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +1 -1
  83. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +1 -1
  84. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +1 -6
  85. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
  86. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +1 -6
  87. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
  88. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +1 -1
  89. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js.map +1 -1
  90. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
  91. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs.map +1 -1
  92. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js +0 -2
  93. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js.map +1 -1
  94. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs +0 -2
  95. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs.map +1 -1
  96. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +2 -2
  97. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
  98. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
  99. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
  100. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
  101. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
  102. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +2 -2
  103. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
  104. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
  105. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
  106. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
  107. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
  108. package/lib/constants/footerContent.d.ts +145 -0
  109. package/lib/constants/footerContent.js +313 -0
  110. package/lib/constants/footerContent.js.map +1 -0
  111. package/lib/constants/footerContent.mjs +293 -0
  112. package/lib/constants/footerContent.mjs.map +1 -0
  113. package/lib/constants/icons/options/colors/black.svg.js +5 -5
  114. package/lib/constants/icons/options/colors/index.js +3 -3
  115. package/lib/constants/icons/options/styles/black.svg.js +5 -5
  116. package/lib/constants/icons/options/styles/index.js +3 -3
  117. package/lib/constants/optionIcons.js +6 -6
  118. package/lib/constants/optionIcons.mjs +4 -4
  119. package/lib/constants/proStoreCategories/mapping/index.d.ts +0 -3
  120. package/lib/constants/proStoreCategories/mapping/index.js +10 -20
  121. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  122. package/lib/constants/proStoreCategories/mapping/index.mjs +10 -20
  123. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  124. package/lib/constants/proStoreCategories/mapping/unifi.d.ts +1 -3
  125. package/lib/constants/proStoreCategories/mapping/unifi.js +0 -2
  126. package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
  127. package/lib/constants/proStoreCategories/mapping/unifi.mjs +0 -2
  128. package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
  129. package/lib/constants/proStoreCategories/translations/ar.json.js +1 -1
  130. package/lib/constants/proStoreCategories/translations/ar.json.mjs +1 -1
  131. package/lib/constants/proStoreCategories/translations/de.json.js +1 -1
  132. package/lib/constants/proStoreCategories/translations/de.json.mjs +1 -1
  133. package/lib/constants/proStoreCategories/translations/el.json.js +1 -1
  134. package/lib/constants/proStoreCategories/translations/el.json.mjs +1 -1
  135. package/lib/constants/proStoreCategories/translations/en.json.js +0 -5
  136. package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
  137. package/lib/constants/proStoreCategories/translations/en.json.mjs +1 -5
  138. package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
  139. package/lib/constants/proStoreCategories/translations/es.json.js +1 -1
  140. package/lib/constants/proStoreCategories/translations/es.json.mjs +1 -1
  141. package/lib/constants/proStoreCategories/translations/fr.json.js +2 -2
  142. package/lib/constants/proStoreCategories/translations/fr.json.mjs +2 -2
  143. package/lib/constants/proStoreCategories/translations/it.json.js +1 -1
  144. package/lib/constants/proStoreCategories/translations/it.json.mjs +1 -1
  145. package/lib/constants/proStoreCategories/translations/ja.json.js +1 -1
  146. package/lib/constants/proStoreCategories/translations/ja.json.mjs +1 -1
  147. package/lib/constants/proStoreCategories/translations/pt-BR.json.js +1 -1
  148. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +1 -1
  149. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +2 -2
  150. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +2 -2
  151. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +2 -2
  152. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +2 -2
  153. package/lib/constants/url.d.ts +4 -4
  154. package/lib/constants/url.js +4 -4
  155. package/lib/constants/url.js.map +1 -1
  156. package/lib/constants/url.mjs +4 -4
  157. package/lib/constants/url.mjs.map +1 -1
  158. package/lib/contexts/MenuContext/mapping.js +0 -41
  159. package/lib/contexts/MenuContext/mapping.js.map +1 -1
  160. package/lib/contexts/MenuContext/mapping.mjs +0 -41
  161. package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
  162. package/lib/contexts/MenuContext/presets.js.map +1 -1
  163. package/lib/contexts/MenuContext/presets.mjs.map +1 -1
  164. package/lib/helpers/index.d.ts +1 -0
  165. package/lib/helpers/index.js +12 -0
  166. package/lib/helpers/index.js.map +1 -1
  167. package/lib/helpers/index.mjs +1 -0
  168. package/lib/helpers/index.mjs.map +1 -1
  169. package/lib/helpers/product.d.ts +96 -0
  170. package/lib/helpers/product.js +360 -0
  171. package/lib/helpers/product.js.map +1 -0
  172. package/lib/helpers/product.mjs +348 -0
  173. package/lib/helpers/product.mjs.map +1 -0
  174. package/lib/types/index.d.ts +1 -0
  175. package/lib/types/index.js +2 -0
  176. package/lib/types/index.js.map +1 -1
  177. package/lib/types/index.mjs +1 -0
  178. package/lib/types/index.mjs.map +1 -1
  179. package/lib/types/product.d.ts +87 -0
  180. package/lib/types/product.js +14 -0
  181. package/lib/types/product.js.map +1 -0
  182. package/lib/types/product.mjs +13 -0
  183. package/lib/types/product.mjs.map +1 -0
  184. package/lib/utils/address.d.ts +61 -61
  185. package/lib/utils/array.d.ts +4 -0
  186. package/lib/utils/array.js +10 -0
  187. package/lib/utils/array.js.map +1 -1
  188. package/lib/utils/array.mjs +10 -1
  189. package/lib/utils/array.mjs.map +1 -1
  190. package/lib/utils/index.d.ts +0 -1
  191. package/lib/utils/index.js +0 -2
  192. package/lib/utils/index.js.map +1 -1
  193. package/lib/utils/index.mjs +0 -2
  194. package/lib/utils/index.mjs.map +1 -1
  195. package/lib/utils/money/constants.d.ts +25 -56
  196. package/lib/utils/money/constants.js +7 -72
  197. package/lib/utils/money/constants.js.map +1 -1
  198. package/lib/utils/money/constants.mjs +7 -70
  199. package/lib/utils/money/constants.mjs.map +1 -1
  200. package/lib/utils/money/format.d.ts +5 -10
  201. package/lib/utils/money/format.js +14 -22
  202. package/lib/utils/money/format.js.map +1 -1
  203. package/lib/utils/money/format.mjs +16 -23
  204. package/lib/utils/money/format.mjs.map +1 -1
  205. package/lib/utils/money/index.d.ts +1 -4
  206. package/lib/utils/money/index.js +8 -26
  207. package/lib/utils/money/index.js.map +1 -1
  208. package/lib/utils/money/index.mjs +4 -8
  209. package/lib/utils/money/index.mjs.map +1 -1
  210. package/lib/utils/money/misc.d.ts +28 -68
  211. package/lib/utils/money/misc.js +64 -35
  212. package/lib/utils/money/misc.js.map +1 -1
  213. package/lib/utils/money/misc.mjs +43 -32
  214. package/lib/utils/money/misc.mjs.map +1 -1
  215. package/lib/utils/money/tax.d.ts +2 -38
  216. package/lib/utils/money/tax.js +10 -46
  217. package/lib/utils/money/tax.js.map +1 -1
  218. package/lib/utils/money/tax.mjs +11 -42
  219. package/lib/utils/money/tax.mjs.map +1 -1
  220. package/lib/utils/money/types.d.ts +3 -78
  221. package/lib/utils/number.d.ts +1 -1
  222. package/lib/utils/number.js +1 -1
  223. package/lib/utils/number.js.map +1 -1
  224. package/lib/utils/number.mjs +1 -1
  225. package/lib/utils/number.mjs.map +1 -1
  226. package/lib/utils/productSort.d.ts +41 -0
  227. package/lib/utils/productSort.js +66 -0
  228. package/lib/utils/productSort.js.map +1 -0
  229. package/lib/utils/productSort.mjs +59 -0
  230. package/lib/utils/productSort.mjs.map +1 -0
  231. package/lib/utils/validations.d.ts +15 -0
  232. package/lib/utils/validations.js +23 -0
  233. package/lib/utils/validations.js.map +1 -0
  234. package/lib/utils/validations.mjs +21 -0
  235. package/lib/utils/validations.mjs.map +1 -0
  236. package/package.json +1 -1
  237. package/lib/assets/socialMedia/x.svg.js.map +0 -1
  238. package/lib/assets/socialMedia/x.svg.mjs +0 -3
  239. package/lib/assets/socialMedia/x.svg.mjs.map +0 -1
  240. package/lib/assets/x.svg +0 -3
  241. package/lib/components/Footer/hooks/useFooterContent.d.ts +0 -94
  242. package/lib/components/Footer/hooks/useFooterContent.js +0 -384
  243. package/lib/components/Footer/hooks/useFooterContent.js.map +0 -1
  244. package/lib/components/Footer/hooks/useFooterContent.mjs +0 -348
  245. package/lib/components/Footer/hooks/useFooterContent.mjs.map +0 -1
  246. package/lib/components/Footer/translations/ar.json.js +0 -47
  247. package/lib/components/Footer/translations/ar.json.js.map +0 -1
  248. package/lib/components/Footer/translations/ar.json.mjs +0 -42
  249. package/lib/components/Footer/translations/ar.json.mjs.map +0 -1
  250. package/lib/components/Footer/translations/de.json.js +0 -47
  251. package/lib/components/Footer/translations/de.json.js.map +0 -1
  252. package/lib/components/Footer/translations/de.json.mjs +0 -42
  253. package/lib/components/Footer/translations/de.json.mjs.map +0 -1
  254. package/lib/components/Footer/translations/el.json.js +0 -47
  255. package/lib/components/Footer/translations/el.json.js.map +0 -1
  256. package/lib/components/Footer/translations/el.json.mjs +0 -42
  257. package/lib/components/Footer/translations/el.json.mjs.map +0 -1
  258. package/lib/components/Footer/translations/en.json.js +0 -46
  259. package/lib/components/Footer/translations/en.json.js.map +0 -1
  260. package/lib/components/Footer/translations/en.json.mjs +0 -41
  261. package/lib/components/Footer/translations/en.json.mjs.map +0 -1
  262. package/lib/components/Footer/translations/es.json.js +0 -47
  263. package/lib/components/Footer/translations/es.json.js.map +0 -1
  264. package/lib/components/Footer/translations/es.json.mjs +0 -42
  265. package/lib/components/Footer/translations/es.json.mjs.map +0 -1
  266. package/lib/components/Footer/translations/fr.json.js +0 -47
  267. package/lib/components/Footer/translations/fr.json.js.map +0 -1
  268. package/lib/components/Footer/translations/fr.json.mjs +0 -42
  269. package/lib/components/Footer/translations/fr.json.mjs.map +0 -1
  270. package/lib/components/Footer/translations/it.json.js +0 -47
  271. package/lib/components/Footer/translations/it.json.js.map +0 -1
  272. package/lib/components/Footer/translations/it.json.mjs +0 -42
  273. package/lib/components/Footer/translations/it.json.mjs.map +0 -1
  274. package/lib/components/Footer/translations/ja.json.js +0 -47
  275. package/lib/components/Footer/translations/ja.json.js.map +0 -1
  276. package/lib/components/Footer/translations/ja.json.mjs +0 -42
  277. package/lib/components/Footer/translations/ja.json.mjs.map +0 -1
  278. package/lib/components/Footer/translations/pt-BR.json.js +0 -47
  279. package/lib/components/Footer/translations/pt-BR.json.js.map +0 -1
  280. package/lib/components/Footer/translations/pt-BR.json.mjs +0 -42
  281. package/lib/components/Footer/translations/pt-BR.json.mjs.map +0 -1
  282. package/lib/components/Footer/translations/zh-Hans.json.js +0 -47
  283. package/lib/components/Footer/translations/zh-Hans.json.js.map +0 -1
  284. package/lib/components/Footer/translations/zh-Hans.json.mjs +0 -42
  285. package/lib/components/Footer/translations/zh-Hans.json.mjs.map +0 -1
  286. package/lib/components/Footer/translations/zh-Hant-TW.json.js +0 -47
  287. package/lib/components/Footer/translations/zh-Hant-TW.json.js.map +0 -1
  288. package/lib/components/Footer/translations/zh-Hant-TW.json.mjs +0 -42
  289. package/lib/components/Footer/translations/zh-Hant-TW.json.mjs.map +0 -1
  290. package/lib/components/Tooltip/Tooltip.d.ts +0 -2
  291. package/lib/components/Tooltip/Tooltip.js +0 -45
  292. package/lib/components/Tooltip/Tooltip.js.map +0 -1
  293. package/lib/components/Tooltip/Tooltip.mjs +0 -43
  294. package/lib/components/Tooltip/Tooltip.mjs.map +0 -1
  295. package/lib/components/Tooltip/Tooltip.styles.d.ts +0 -32
  296. package/lib/components/Tooltip/Tooltip.styles.js +0 -44
  297. package/lib/components/Tooltip/Tooltip.styles.js.map +0 -1
  298. package/lib/components/Tooltip/Tooltip.styles.mjs +0 -34
  299. package/lib/components/Tooltip/Tooltip.styles.mjs.map +0 -1
  300. package/lib/components/Tooltip/index.d.ts +0 -1
  301. package/lib/components/Tooltip/index.js +0 -6
  302. package/lib/components/Tooltip/index.js.map +0 -1
  303. package/lib/components/Tooltip/index.mjs +0 -3
  304. package/lib/components/Tooltip/index.mjs.map +0 -1
  305. package/lib/utils/money/allocators/fixedAmount.d.ts +0 -26
  306. package/lib/utils/money/allocators/fixedAmount.js +0 -55
  307. package/lib/utils/money/allocators/fixedAmount.js.map +0 -1
  308. package/lib/utils/money/allocators/fixedAmount.mjs +0 -53
  309. package/lib/utils/money/allocators/fixedAmount.mjs.map +0 -1
  310. package/lib/utils/money/allocators/index.d.ts +0 -2
  311. package/lib/utils/money/allocators/index.js +0 -8
  312. package/lib/utils/money/allocators/index.js.map +0 -1
  313. package/lib/utils/money/allocators/index.mjs +0 -4
  314. package/lib/utils/money/allocators/index.mjs.map +0 -1
  315. package/lib/utils/money/allocators/productAmount.d.ts +0 -13
  316. package/lib/utils/money/allocators/productAmount.js +0 -110
  317. package/lib/utils/money/allocators/productAmount.js.map +0 -1
  318. package/lib/utils/money/allocators/productAmount.mjs +0 -108
  319. package/lib/utils/money/allocators/productAmount.mjs.map +0 -1
  320. package/lib/utils/money/exchangeRate.d.ts +0 -31
  321. package/lib/utils/money/exchangeRate.js +0 -27
  322. package/lib/utils/money/exchangeRate.js.map +0 -1
  323. package/lib/utils/money/exchangeRate.mjs +0 -23
  324. package/lib/utils/money/exchangeRate.mjs.map +0 -1
  325. package/lib/utils/money/misc.private.d.ts +0 -23
  326. package/lib/utils/money/misc.private.js +0 -46
  327. package/lib/utils/money/misc.private.js.map +0 -1
  328. package/lib/utils/money/misc.private.mjs +0 -21
  329. package/lib/utils/money/misc.private.mjs.map +0 -1
  330. package/lib/utils/money/shipping.d.ts +0 -5
  331. package/lib/utils/money/shipping.js +0 -8
  332. package/lib/utils/money/shipping.js.map +0 -1
  333. package/lib/utils/money/shipping.mjs +0 -6
  334. package/lib/utils/money/shipping.mjs.map +0 -1
  335. package/lib/utils/money/tax.private.d.ts +0 -17
  336. package/lib/utils/money/tax.private.js +0 -65
  337. package/lib/utils/money/tax.private.js.map +0 -1
  338. package/lib/utils/money/tax.private.mjs +0 -60
  339. package/lib/utils/money/tax.private.mjs.map +0 -1
  340. package/lib/utils/typeGuards.d.ts +0 -1
  341. package/lib/utils/typeGuards.js +0 -6
  342. package/lib/utils/typeGuards.js.map +0 -1
  343. package/lib/utils/typeGuards.mjs +0 -5
  344. package/lib/utils/typeGuards.mjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -6,32 +6,6 @@
6
6
 
7
7
  ## Releases
8
8
 
9
- ### 9.9.0-alpha.8
10
-
11
- - [Fix] [MIC-167](https://ubiquiti.atlassian.net/browse/MIC-167) Fix cookie button styling
12
-
13
- ### 9.9.0-alpha.7
14
-
15
- - [Fix] [MIC-167](https://ubiquiti.atlassian.net/browse/MIC-167) Fix footer styling
16
-
17
- ### 9.9.0-alpha.6
18
-
19
- - [Fix] [MIC-167](https://ubiquiti.atlassian.net/browse/MIC-167) Open Mailchimp screen in new tab
20
-
21
- ### 9.9.0-alpha.5
22
-
23
- - [Feat] [MIC-167](https://ubiquiti.atlassian.net/browse/MIC-167) Revive Footer component for shared usage between projects (don't use Store BE for subscribing)
24
-
25
- ### 9.9.0-alpha.4
26
-
27
- - [Feat] [NEP-3494](https://ubiquiti.atlassian.net/browse/NEP-3494) Split "Cables & Modules" category into two categories -> "RJ45 & Copper" and "SFP & Fiber"
28
- - [Fix] [NEP-3149](https://ubiquiti.atlassian.net/browse/NEP-3149) Fix Resource Calculator overlay and remove footer note if no content
29
- - [Feat] [NEP-3419](https://ubiquiti.atlassian.net/browse/NEP-3419) Update cart icon logic
30
- - [Fix] [NEP-3402](https://ubiquiti.atlassian.net/browse/NEP-3402) Add forced features for consoles in resource calculator
31
- - [Feat] [MIC-167](https://ubiquiti.atlassian.net/browse/MIC-167) Revive Footer component for shared usage between projects
32
- - [NEP-3300](https://ubiquiti.atlassian.net/browse/NEP-3300) Add NAS category in pro store
33
- - [Feat] [NEP-3353](https://ubiquiti.atlassian.net/browse/NEP-3353) Hide menu items that are not available in India
34
-
35
9
  ### 9.9.0
36
10
 
37
11
  - [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,14 +87,14 @@ 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');
93
- var storeId = require('../utils/storeId.js');
94
94
  var index$V = require('../constants/proStoreCategories/index.js');
95
95
  var index$W = require('../constants/proStoreFilters/index.js');
96
96
  var proStoreCategories = require('../helpers/proStoreCategories.js');
97
+ var product$2 = require('../helpers/product.js');
97
98
  var smartcat = require('../apis/smartcat.js');
98
99
  exports.Avatar = index;
99
100
  exports.Button = index$1;
@@ -167,6 +168,7 @@ exports.Unit = generated.Unit;
167
168
  exports.UnitSystem = generated.UnitSystem;
168
169
  exports.UserAssignedCountryCode = generated.UserAssignedCountryCode;
169
170
  exports.ValidateTaxStatus = generated.ValidateTaxStatus;
171
+ exports.DisplayProductStatus = product.DisplayProductStatus;
170
172
  exports.url = url;
171
173
  exports.money = misc;
172
174
  exports.number = number;
@@ -184,11 +186,10 @@ exports.measures = measures;
184
186
  exports.errors = errors;
185
187
  exports.tags = tags;
186
188
  exports.wattage = wattage;
187
- exports.product = product;
189
+ exports.product = product$1;
188
190
  exports.asset = asset;
189
191
  exports.imageOptimizer = imageOptimizer;
190
192
  exports.styles = styles;
191
- exports.storeId = storeId;
192
193
  exports.proStoreCategories = index$V;
193
194
  exports.proStoreFilters = index$W;
194
195
  exports.getCategoriesBySubcategory = proStoreCategories.getCategoriesBySubcategory;
@@ -199,5 +200,16 @@ exports.getSubCategoryIdByCollectionSlug = proStoreCategories.getSubCategoryIdBy
199
200
  exports.isValidSubCategory = proStoreCategories.isValidSubCategory;
200
201
  exports.parseCategories = proStoreCategories.parseCategories;
201
202
  exports.useTranslatedCategories = proStoreCategories.useTranslatedCategories;
203
+ exports.COLLECTION_SECTION_OTHER_ID = product$2.COLLECTION_SECTION_OTHER_ID;
204
+ exports.HDDProductSlugs = product$2.HDDProductSlugs;
205
+ exports.MagicCollectionTags = product$2.MagicCollectionTags;
206
+ exports.ProductOptions = product$2.ProductOptions;
207
+ exports.createSectionHierarchy = product$2.createSectionHierarchy;
208
+ exports.getProStoreCategory = product$2.getProStoreCategory;
209
+ exports.getProductGroups = product$2.getProductGroups;
210
+ exports.getStoreProducts = product$2.getStoreProducts;
211
+ exports.isNonNullish = product$2.isNonNullish;
212
+ exports.removeExcludedProducts = product$2.removeExcludedProducts;
213
+ exports.sortCollections = product$2.sortCollections;
202
214
  exports.smartcat = smartcat;
203
215
  //# 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,13 +165,12 @@ import * as imageOptimizer from '../utils/imageOptimizer.mjs';
164
165
  export { imageOptimizer };
165
166
  import * as styles from '../utils/styles.mjs';
166
167
  export { styles };
167
- import * as storeId from '../utils/storeId.mjs';
168
- export { storeId };
169
168
  import * as index$V from '../constants/proStoreCategories/index.mjs';
170
169
  export { index$V as proStoreCategories };
171
170
  import * as index$W from '../constants/proStoreFilters/index.mjs';
172
171
  export { index$W as proStoreFilters };
173
172
  export { getCategoriesBySubcategory, getLocalizedCategories, getProductLineByCategory, getProductLineBySubcategory, getSubCategoryIdByCollectionSlug, isValidSubCategory, parseCategories, useTranslatedCategories } from '../helpers/proStoreCategories.mjs';
173
+ export { COLLECTION_SECTION_OTHER_ID, HDDProductSlugs, MagicCollectionTags, ProductOptions, createSectionHierarchy, getProStoreCategory, getProductGroups, getStoreProducts, isNonNullish, removeExcludedProducts, sortCollections } from '../helpers/product.mjs';
174
174
  import * as smartcat from '../apis/smartcat.mjs';
175
175
  export { smartcat };
176
176
  //# sourceMappingURL=_virtual_multi-entry.mjs.map
@@ -1,15 +1,15 @@
1
- <svg width="11" height="10" viewBox="0 0 11 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <mask id="mask0_658_406" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="11" height="10">
3
- <g clip-path="url(#clip0_658_406)">
4
- <path d="M10.2546 4.35H0.587891V5.31667H10.2546V4.35Z" fill="#838691"/>
1
+ <svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_426_15898" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
3
+ <g clip-path="url(#clip0_426_15898)">
4
+ <path d="M5.16287 2.9397H0.697754V3.38621H5.16287V2.9397Z" fill="#838691"/>
5
5
  </g>
6
6
  </mask>
7
- <g mask="url(#mask0_658_406)">
8
- <rect x="0.587891" width="9.66667" height="9.66667" fill="#838691"/>
7
+ <g mask="url(#mask0_426_15898)">
8
+ <rect x="0.697754" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
9
9
  </g>
10
10
  <defs>
11
- <clipPath id="clip0_658_406">
12
- <rect width="9.66667" height="9.66667" fill="white" transform="translate(0.587891)"/>
11
+ <clipPath id="clip0_426_15898">
12
+ <rect width="4.46512" height="4.46512" fill="white" transform="translate(0.697754 0.930176)"/>
13
13
  </clipPath>
14
14
  </defs>
15
15
  </svg>
@@ -1,15 +1,15 @@
1
- <svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <mask id="mask0_426_15898" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
3
- <g clip-path="url(#clip0_426_15898)">
4
- <path d="M5.16287 2.9397H0.697754V3.38621H5.16287V2.9397Z" fill="#838691"/>
1
+ <svg width="11" height="10" viewBox="0 0 11 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_658_406" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="11" height="10">
3
+ <g clip-path="url(#clip0_658_406)">
4
+ <path d="M10.2546 4.35H0.587891V5.31667H10.2546V4.35Z" fill="#838691"/>
5
5
  </g>
6
6
  </mask>
7
- <g mask="url(#mask0_426_15898)">
8
- <rect x="0.697754" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
7
+ <g mask="url(#mask0_658_406)">
8
+ <rect x="0.587891" width="9.66667" height="9.66667" fill="#838691"/>
9
9
  </g>
10
10
  <defs>
11
- <clipPath id="clip0_426_15898">
12
- <rect width="4.46512" height="4.46512" fill="white" transform="translate(0.697754 0.930176)"/>
11
+ <clipPath id="clip0_658_406">
12
+ <rect width="9.66667" height="9.66667" fill="white" transform="translate(0.587891)"/>
13
13
  </clipPath>
14
14
  </defs>
15
15
  </svg>
@@ -1,16 +1,16 @@
1
- <svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <mask id="mask0_658_411" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="10" height="10">
3
- <g clip-path="url(#clip0_658_411)">
4
- <path d="M9.86637 4.35H0.199707V5.31667H9.86637V4.35Z" fill="#838691"/>
5
- <path d="M4.5498 -2.86102e-06L4.5498 9.66666H5.51647L5.51647 -2.86102e-06H4.5498Z" fill="#838691"/>
1
+ <svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_426_15903" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
3
+ <g clip-path="url(#clip0_426_15903)">
4
+ <path d="M5.30227 2.9397H0.837158V3.38621H5.30227V2.9397Z" fill="#838691"/>
5
+ <path d="M2.84668 0.930147L2.84668 5.39526H3.29319L3.29319 0.930147H2.84668Z" fill="#838691"/>
6
6
  </g>
7
7
  </mask>
8
- <g mask="url(#mask0_658_411)">
9
- <rect x="0.199707" width="9.66667" height="9.66667" fill="#838691"/>
8
+ <g mask="url(#mask0_426_15903)">
9
+ <rect x="0.837158" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
10
10
  </g>
11
11
  <defs>
12
- <clipPath id="clip0_658_411">
13
- <rect width="9.66667" height="9.66667" fill="white" transform="translate(0.199707)"/>
12
+ <clipPath id="clip0_426_15903">
13
+ <rect width="4.46512" height="4.46512" fill="white" transform="translate(0.837158 0.930176)"/>
14
14
  </clipPath>
15
15
  </defs>
16
16
  </svg>
@@ -1,16 +1,16 @@
1
- <svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <mask id="mask0_426_15903" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
3
- <g clip-path="url(#clip0_426_15903)">
4
- <path d="M5.30227 2.9397H0.837158V3.38621H5.30227V2.9397Z" fill="#838691"/>
5
- <path d="M2.84668 0.930147L2.84668 5.39526H3.29319L3.29319 0.930147H2.84668Z" fill="#838691"/>
1
+ <svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_658_411" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="10" height="10">
3
+ <g clip-path="url(#clip0_658_411)">
4
+ <path d="M9.86637 4.35H0.199707V5.31667H9.86637V4.35Z" fill="#838691"/>
5
+ <path d="M4.5498 -2.86102e-06L4.5498 9.66666H5.51647L5.51647 -2.86102e-06H4.5498Z" fill="#838691"/>
6
6
  </g>
7
7
  </mask>
8
- <g mask="url(#mask0_426_15903)">
9
- <rect x="0.837158" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
8
+ <g mask="url(#mask0_658_411)">
9
+ <rect x="0.199707" width="9.66667" height="9.66667" fill="#838691"/>
10
10
  </g>
11
11
  <defs>
12
- <clipPath id="clip0_426_15903">
13
- <rect width="4.46512" height="4.46512" fill="white" transform="translate(0.837158 0.930176)"/>
12
+ <clipPath id="clip0_658_411">
13
+ <rect width="9.66667" height="9.66667" fill="white" transform="translate(0.199707)"/>
14
14
  </clipPath>
15
15
  </defs>
16
16
  </svg>
@@ -3,25 +3,25 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var XIcon = require("../x.svg");
6
+ var TwitterIcon = require("../twitter.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
10
10
  };
11
11
  }
12
- var XIcon__default = /*#__PURE__*/_interopDefault(XIcon);
12
+ var TwitterIcon__default = /*#__PURE__*/_interopDefault(TwitterIcon);
13
13
  Object.defineProperty(exports, "default", {
14
14
  enumerable: true,
15
15
  get: function () {
16
- return XIcon__default["default"];
16
+ return TwitterIcon__default["default"];
17
17
  }
18
18
  });
19
- Object.keys(XIcon).forEach(function (k) {
19
+ Object.keys(TwitterIcon).forEach(function (k) {
20
20
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
21
21
  enumerable: true,
22
22
  get: function () {
23
- return XIcon[k];
23
+ return TwitterIcon[k];
24
24
  }
25
25
  });
26
26
  });
27
- //# sourceMappingURL=x.svg.js.map
27
+ //# sourceMappingURL=twitter.svg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"twitter.svg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,3 @@
1
+ export * from "../twitter.svg";
2
+ export { default } from "../twitter.svg";
3
+ //# sourceMappingURL=twitter.svg.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"twitter.svg.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,3 @@
1
+ <svg width="18" height="14" viewBox="0 0 18 14" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path opacity="0.9" fill-rule="evenodd" clip-rule="evenodd" d="M17.417 1.64946C17.1818 1.99671 16.9136 2.32588 16.6123 2.63697C16.311 2.94805 15.9913 3.22657 15.6532 3.47255V3.68958V3.92832C15.6532 5.08583 15.4328 6.25782 14.9918 7.44427C14.5509 8.63073 13.9005 9.70504 13.0407 10.6672C12.1809 11.6294 11.1153 12.4144 9.84391 13.0221C8.57254 13.6297 7.11378 13.9336 5.46761 13.9336C4.46816 13.9336 3.50545 13.7961 2.57948 13.5212C1.65351 13.2463 0.793686 12.8557 0 12.3492C0.132281 12.3637 0.271911 12.3782 0.41889 12.3927C0.565869 12.4071 0.705498 12.4144 0.83778 12.4144C1.67556 12.4144 2.47292 12.2805 3.22986 12.0128C3.9868 11.7452 4.67393 11.3726 5.29124 10.8951C4.51225 10.8806 3.81778 10.6455 3.20781 10.1898C2.59785 9.73398 2.17529 9.15884 1.94012 8.46433C2.0577 8.4788 2.17161 8.49327 2.28185 8.50774C2.39208 8.52221 2.50599 8.52944 2.62357 8.52944C2.78525 8.52944 2.94325 8.51859 3.09758 8.49689C3.25191 8.47518 3.40991 8.44263 3.57159 8.39922C2.74851 8.24006 2.06138 7.83855 1.51021 7.19468C0.959038 6.55082 0.683453 5.80205 0.683453 4.94838V4.92668V4.90497C0.933316 5.03519 1.1942 5.14009 1.46611 5.21967C1.73802 5.29925 2.02096 5.33904 2.31492 5.33904C1.82989 5.02072 1.44407 4.60474 1.15746 4.09109C0.870851 3.57745 0.727545 3.01677 0.727545 2.40908C0.727545 2.09076 0.767964 1.7833 0.848803 1.48668C0.929641 1.19007 1.0509 0.911543 1.21258 0.651102C1.65351 1.17198 2.14589 1.65308 2.68971 2.09438C3.23353 2.53568 3.81778 2.91188 4.44244 3.22296C5.0671 3.53404 5.72483 3.78363 6.41563 3.97173C7.10643 4.15982 7.82662 4.27557 8.57622 4.31898C8.54682 4.18876 8.52477 4.05854 8.51007 3.92832C8.49538 3.7981 8.48803 3.66064 8.48803 3.51595C8.48803 2.54653 8.8371 1.71819 9.53525 1.03091C10.2334 0.343637 11.0749 0 12.0596 0C12.574 0 13.0554 0.0976648 13.5037 0.292996C13.952 0.488327 14.3378 0.759619 14.6611 1.10687C15.0727 1.02006 15.4695 0.907926 15.8517 0.770471C16.2338 0.633016 16.5939 0.463006 16.932 0.260441C16.7997 0.665571 16.5976 1.03453 16.3257 1.36732C16.0538 1.7001 15.7341 1.97501 15.3666 2.19204C15.7341 2.14864 16.0868 2.08353 16.4249 1.99671C16.7629 1.9099 17.0936 1.79415 17.417 1.64946Z" fill="#838691"/>
3
+ </svg>
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,2 +1,2 @@
1
1
  import type { FooterProps } from "./Footer.types";
2
- export declare const Footer: ({ legalOnly, motif, id, customer, storePicker, storeAddress, className, }: FooterProps) => JSX.Element;
2
+ export declare const Footer: import("react").NamedExoticComponent<FooterProps>;
@@ -2,210 +2,92 @@
2
2
 
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
4
  var react = require('react');
5
- require('../../contexts/MenuContext/index.js');
6
- var mapping = require('../../contexts/MenuContext/mapping.js');
7
- require('../../hooks/index.js');
8
- require('../../types/index.js');
9
- var asset = require('../../utils/asset.js');
10
- require('../Container/index.js');
5
+ var footerContent = require('../../constants/footerContent.js');
11
6
  var Footer_styles = require('./Footer.styles.js');
12
- var useFooterContent = require('./hooks/useFooterContent.js');
13
- var en = require('./translations/en.json.js');
14
- var generated = require('../../types/generated.js');
15
- var context = require('../../contexts/MenuContext/context.js');
16
- var useTranslation = require('../../hooks/useTranslation.js');
17
- var constants = require('../../types/constants.js');
18
- var Container = require('../Container/Container.js');
19
7
  "use strict";
20
- const subscribeRegionValue = {
21
- [generated.GlobalStoreId.Us]: "United States",
22
- [generated.GlobalStoreId.Eu]: "Europe",
23
- [generated.GlobalStoreId.Ca]: "Canada",
24
- [generated.GlobalStoreId.Za]: "South Africa",
25
- [generated.GlobalStoreId.Me]: "Middle East",
26
- [generated.GlobalStoreId.Uk]: "United Kingdom",
27
- [generated.GlobalStoreId.In]: "India",
28
- [generated.GlobalStoreId.Sg]: "Singapore",
29
- [generated.GlobalStoreId.Br]: "Brazil",
30
- [generated.GlobalStoreId.Jp]: "Japan",
31
- [generated.GlobalStoreId.Mx]: "Mexico",
32
- [generated.GlobalStoreId.Ph]: "Philippines",
33
- [generated.GlobalStoreId.Tw]: "Taiwan",
34
- [generated.GlobalStoreId.Cn]: "China"
35
- };
36
- const Footer = ({
8
+ const Footer = react.memo(function Footer2({
37
9
  legalOnly,
38
- motif = "light",
39
- id,
40
- customer,
41
- storePicker,
42
- // storeBackendUrl,
43
- storeAddress,
44
- className
45
- }) => {
46
- const {
47
- storeId,
48
- context: context$1
49
- } = context.useMenu();
50
- const {
51
- footerContent,
52
- socialContent,
53
- termsContent
54
- } = useFooterContent.useFooterContent();
55
- const {
56
- formatMessage
57
- } = useTranslation.useTranslation({
58
- defaultTranslation: en["default"],
59
- additionalTranslations: {
60
- [constants.Language.Ja]: () => Promise.resolve().then(function () {
61
- return require('./translations/ja.json.js');
62
- }).then(res => res.default),
63
- [constants.Language.Ar]: () => Promise.resolve().then(function () {
64
- return require('./translations/ar.json.js');
65
- }).then(res => res.default),
66
- [constants.Language.De]: () => Promise.resolve().then(function () {
67
- return require('./translations/de.json.js');
68
- }).then(res => res.default),
69
- [constants.Language.Es]: () => Promise.resolve().then(function () {
70
- return require('./translations/es.json.js');
71
- }).then(res => res.default),
72
- [constants.Language.El]: () => Promise.resolve().then(function () {
73
- return require('./translations/el.json.js');
74
- }).then(res => res.default),
75
- [constants.Language.It]: () => Promise.resolve().then(function () {
76
- return require('./translations/it.json.js');
77
- }).then(res => res.default),
78
- [constants.Language.Pt]: () => Promise.resolve().then(function () {
79
- return require('./translations/pt-BR.json.js');
80
- }).then(res => res.default),
81
- [constants.Language.Zh]: () => Promise.resolve().then(function () {
82
- return require('./translations/zh-Hans.json.js');
83
- }).then(res => res.default),
84
- [constants.Language.Fr]: () => Promise.resolve().then(function () {
85
- return require('./translations/fr.json.js');
86
- }).then(res => res.default),
87
- [constants.Language.Tw]: () => Promise.resolve().then(function () {
88
- return require('./translations/zh-Hant-TW.json.js');
89
- }).then(res => res.default)
90
- }
91
- });
92
- const hiddenFields = react.useMemo(() => {
93
- return {
94
- // Merge fields are based on Mailchimp settings
95
- u: "bc856e62a9254399365d0277b",
96
- id: "1c1b02cb37",
97
- MERGE1: customer?.firstName,
98
- MERGE2: customer?.lastName,
99
- // Always set the user as residential as we don't have any other type of user
100
- MERGE4: "Residential (home use)",
101
- // Always set the user as subscribed to all lists
102
- MERGE3: "subscribed",
103
- MERGE7: "subscribed",
104
- MERGE8: "subscribed",
105
- // Store region value expected in two fields
106
- MERGE6: subscribeRegionValue[storeId],
107
- MERGE9: subscribeRegionValue[storeId]
108
- };
109
- }, [customer?.firstName, customer?.lastName, storeId]);
10
+ motif = "light"
11
+ }) {
12
+ const termsContent = footerContent.contentForTerms();
110
13
  return /* @__PURE__ */jsxRuntime.jsx(Footer_styles.ContainerWrap, {
111
14
  condensed: legalOnly,
112
- $motif: motif,
113
- id,
114
- className,
115
- children: /* @__PURE__ */jsxRuntime.jsx(Container.Container, {
116
- size: "desktop",
117
- noVerticalMargin: true,
118
- children: /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.InnerContainer, {
119
- children: [!legalOnly && /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
120
- children: [/* @__PURE__ */jsxRuntime.jsxs(Footer_styles.Wrap, {
121
- children: [/* @__PURE__ */jsxRuntime.jsx(Footer_styles.ListsWrap, {
122
- children: Object.values(footerContent).map((list, i) => /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.ListItemWrap, {
123
- children: [/* @__PURE__ */jsxRuntime.jsxs(Footer_styles.Header, {
124
- children: [" ", list.header.label]
125
- }), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.List, {
126
- children: list.items.map((item, j) => /* @__PURE__ */jsxRuntime.jsx(Footer_styles.ListItem, {
127
- children: /* @__PURE__ */jsxRuntime.jsx(Footer_styles.ListItemAnchor, {
128
- href: item.src,
129
- target: item.target,
130
- children: item.label
131
- })
132
- }, `footer-list-${i}-item-${j}`))
133
- })]
134
- }, `footer-list-${i}`))
135
- }), /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.InnerWrap, {
136
- children: [/* @__PURE__ */jsxRuntime.jsxs(Footer_styles.Form, {
137
- method: "get",
138
- action: "https://ui.us8.list-manage.com/subscribe",
139
- target: "_blank",
140
- children: [/* @__PURE__ */jsxRuntime.jsx(Footer_styles.Header, {
141
- children: formatMessage("footer.newsletter.touch")
142
- }), Object.entries(hiddenFields).map(([key, value]) => /* @__PURE__ */jsxRuntime.jsx("input", {
143
- type: "hidden",
144
- name: key,
145
- value
146
- }, key)), /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.InputWrap, {
147
- children: [/* @__PURE__ */jsxRuntime.jsx(Footer_styles.Input, {
148
- type: "text",
149
- pattern: "[^@\\s]+@[^@\\s]+\\.[^@\\s]+",
150
- minLength: 6,
151
- maxLength: 254,
152
- required: true,
153
- autoCapitalize: "off",
154
- autoCorrect: "off",
155
- placeholder: formatMessage("footer.newsletter.email"),
156
- name: "EMAIL"
157
- }), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.SubmitButton, {
158
- type: "submit",
159
- className: motif,
160
- variant: "primary",
161
- children: formatMessage("footer.newsletter.subscribe")
162
- })]
15
+ $darkMode: motif === "dark",
16
+ children: /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.Container, {
17
+ children: [!legalOnly && /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
18
+ children: [/* @__PURE__ */jsxRuntime.jsxs(Footer_styles.Wrap, {
19
+ children: [/* @__PURE__ */jsxRuntime.jsx(Footer_styles.ListsWrap, {
20
+ children: Object.values(footerContent.FOOTER_CONTENT).map((list, i) => /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.ListItemWrap, {
21
+ children: [/* @__PURE__ */jsxRuntime.jsxs(Footer_styles.Header, {
22
+ children: [" ", list.header.label]
23
+ }), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.List, {
24
+ children: list.items.map((item, j) => /* @__PURE__ */jsxRuntime.jsx(Footer_styles.ListItem, {
25
+ children: /* @__PURE__ */jsxRuntime.jsx(Footer_styles.ListItemAnchor, {
26
+ href: item.src,
27
+ target: item.target,
28
+ children: item.label
29
+ })
30
+ }, `footer-list-${i}-item-${j}`))
31
+ })]
32
+ }, `footer-list-${i}`))
33
+ }), /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.InnerWrap, {
34
+ children: [/* @__PURE__ */jsxRuntime.jsxs(Footer_styles.Form, {
35
+ method: "post",
36
+ action: "https://ubnt.us8.list-manage.com/subscribe/post?u=bc856e62a9254399365d0277b",
37
+ target: "_blank",
38
+ children: [/* @__PURE__ */jsxRuntime.jsx(Footer_styles.Header, {
39
+ children: "Stay in Touch"
40
+ }), /* @__PURE__ */jsxRuntime.jsx("input", {
41
+ type: "hidden",
42
+ name: "id",
43
+ value: "1c1b02cb37"
44
+ }), /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.InputWrap, {
45
+ children: [/* @__PURE__ */jsxRuntime.jsx(Footer_styles.Input, {
46
+ type: "text",
47
+ placeholder: "Email",
48
+ name: "EMAIL"
49
+ }), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.Button, {
50
+ type: "submit",
51
+ className: motif,
52
+ children: "Subscribe"
163
53
  })]
164
- }), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.IconsWrapper, {
165
- children: socialContent.items.map(socialItem => /* @__PURE__ */jsxRuntime.jsx(Footer_styles.IconWrapper, {
166
- href: socialItem.src,
167
- target: socialItem.target,
168
- children: socialItem.icon ? /* @__PURE__ */jsxRuntime.jsx("img", {
169
- src: asset.imageSrc(socialItem.icon),
170
- alt: socialItem.label
171
- }) : socialItem.label
172
- }, `footer-social-link-${socialItem.label}`))
173
54
  })]
55
+ }), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.IconsWrapper, {
56
+ children: footerContent.SOCIAL_CONTENT.items.map(socialItem => /* @__PURE__ */jsxRuntime.jsx(Footer_styles.IconWrapper, {
57
+ href: socialItem.src,
58
+ target: socialItem.target,
59
+ children: /* @__PURE__ */jsxRuntime.jsx("img", {
60
+ src: typeof socialItem.icon === "string" ? socialItem.icon : socialItem.icon.src,
61
+ alt: socialItem.label
62
+ })
63
+ }, `footer-social-link-${socialItem.label}`))
174
64
  })]
175
- }), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.Break, {
176
- $motif: motif
177
- })]
178
- }), context$1 === mapping.SiteId.Store && storeAddress && /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
179
- children: [/* @__PURE__ */jsxRuntime.jsx(Footer_styles.StoreAddress, {
180
- children: storeAddress
181
- }), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.Break, {
182
- $motif: motif
183
65
  })]
184
- }), /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.TermsWrap, {
185
- children: [/* @__PURE__ */jsxRuntime.jsx(Footer_styles.FlexWrap, {
186
- children: termsContent.items.map((term, i) => /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.AnchorGroup, {
187
- children: [term.id === useFooterContent.FooterLinkId.Cookie ? /* @__PURE__ */jsxRuntime.jsx(Footer_styles.CookieBtn, {
188
- type: "button",
189
- id: useFooterContent.COOKIE_POLICY_BTN_ID,
190
- className: useFooterContent.COOKIE_POLICY_BTN_ID_CLASSNAME,
191
- children: term.label
192
- }, `footer-term-${term.id}`) : /* @__PURE__ */jsxRuntime.jsx(Footer_styles.Anchor, {
193
- href: term.src,
194
- target: term.target,
195
- children: term.label
196
- }), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.AnchorDivider, {
197
- children: i !== termsContent.items.length - 1 && "|"
198
- })]
199
- }, `footer-term-${term.id}`))
200
- }), /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.FlexWrapResponsive, {
201
- children: [storePicker, /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.Copyright, {
202
- children: ["\xA9 ", ( /* @__PURE__ */new Date()).getFullYear(), " ", formatMessage("footer.copyright")]
66
+ }), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.Break, {
67
+ $darkMode: motif === "dark"
68
+ })]
69
+ }), /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.TermsWrap, {
70
+ children: [/* @__PURE__ */jsxRuntime.jsx(Footer_styles.FlexWrap, {
71
+ children: termsContent.items.map((term, i) => term.id === footerContent.FooterLinkId.Cookie ? /* @__PURE__ */jsxRuntime.jsx(Footer_styles.CookieBtn, {
72
+ type: "button",
73
+ id: footerContent.COOKIE_POLICY_BTN_ID,
74
+ className: footerContent.COOKIE_POLICY_BTN_ID_CLASSNAME,
75
+ children: term.label
76
+ }, `footer-term-${term.id}`) : /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.AnchorGroup, {
77
+ children: [/* @__PURE__ */jsxRuntime.jsx(Footer_styles.Anchor, {
78
+ href: term.src,
79
+ target: term.target,
80
+ children: term.label
81
+ }), /* @__PURE__ */jsxRuntime.jsx(Footer_styles.AnchorDivider, {
82
+ children: i !== termsContent.items.length - 1 && "|"
203
83
  })]
204
- })]
84
+ }, `footer-term-${term.id}`))
85
+ }), /* @__PURE__ */jsxRuntime.jsxs(Footer_styles.Copyright, {
86
+ children: ["\xA9 ", ( /* @__PURE__ */new Date()).getFullYear(), " Ubiquiti, Inc. All rights reserved."]
205
87
  })]
206
- })
88
+ })]
207
89
  })
208
90
  });
209
- };
91
+ });
210
92
  exports.Footer = Footer;
211
93
  //# sourceMappingURL=Footer.js.map