@ubnt/store.core 9.29.0-alpha.11 → 9.29.0-alpha.13

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 (285) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/lib/apis/smartcat.d.ts +16 -6
  3. package/lib/apis/smartcat.js +17 -29
  4. package/lib/apis/smartcat.js.map +1 -1
  5. package/lib/apis/smartcat.mjs +17 -29
  6. package/lib/apis/smartcat.mjs.map +1 -1
  7. package/lib/assets/attention.svg +5 -5
  8. package/lib/assets/attention2.svg +5 -5
  9. package/lib/assets/close.svg +1 -4
  10. package/lib/assets/close2.svg +3 -2
  11. package/lib/assets/close3.svg +3 -1
  12. package/lib/assets/enterpriseCampus24.jpg +0 -0
  13. package/lib/assets/enterpriseCampus48.jpg +0 -0
  14. package/lib/assets/enterpriseCampusAggregation.jpg +0 -0
  15. package/lib/assets/icons/wizard/plus.svg.js +1 -1
  16. package/lib/assets/icons/wizard/plus.svg.mjs +2 -2
  17. package/lib/assets/plus.svg +22 -4
  18. package/lib/assets/plus2.svg +4 -22
  19. package/lib/components/CustomImage/CustomImage.js +1 -1
  20. package/lib/components/CustomImage/CustomImage.mjs +1 -1
  21. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.js +1 -1
  22. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.mjs +1 -1
  23. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +1 -1
  24. package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
  25. package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
  26. package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
  27. package/lib/components/FeaturesSection_deprecated/assets/plus.svg.js +1 -1
  28. package/lib/components/FeaturesSection_deprecated/assets/plus.svg.mjs +2 -2
  29. package/lib/components/GridGallery/GridModal/GridModal.js +1 -1
  30. package/lib/components/GridGallery/GridModal/GridModal.mjs +1 -1
  31. package/lib/components/Header/CartModalV2/CartModal.js +1 -1
  32. package/lib/components/Header/CartModalV2/CartModal.mjs +1 -1
  33. package/lib/components/Header/Header.js +1 -1
  34. package/lib/components/Header/Header.mjs +1 -1
  35. package/lib/components/LandingPageSidebar/LandingPageSidebar.js +1 -1
  36. package/lib/components/LandingPageSidebar/LandingPageSidebar.mjs +1 -1
  37. package/lib/components/ModelCompareV3/ModelCompareV3.types.d.ts +7 -2
  38. package/lib/components/ModelCompareV3/assets/Switching/{enterprise48PoE.jpg.js → enterpriseCampus24.jpg.js} +2 -2
  39. package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus24.jpg.js.map +1 -0
  40. package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus24.jpg.mjs +3 -0
  41. package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus24.jpg.mjs.map +1 -0
  42. package/lib/components/ModelCompareV3/assets/Switching/{enterpriseXG24.jpg.js → enterpriseCampus48.jpg.js} +2 -2
  43. package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus48.jpg.js.map +1 -0
  44. package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus48.jpg.mjs +3 -0
  45. package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampus48.jpg.mjs.map +1 -0
  46. package/lib/components/ModelCompareV3/assets/Switching/{enterprise24PoE.jpg.js → enterpriseCampusAggregation.jpg.js} +2 -2
  47. package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampusAggregation.jpg.js.map +1 -0
  48. package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampusAggregation.jpg.mjs +3 -0
  49. package/lib/components/ModelCompareV3/assets/Switching/enterpriseCampusAggregation.jpg.mjs.map +1 -0
  50. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js +20 -7
  51. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js.map +1 -1
  52. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs +20 -7
  53. package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs.map +1 -1
  54. package/lib/components/ModelCompareV3/data/products/aggregation.js +8 -1
  55. package/lib/components/ModelCompareV3/data/products/aggregation.js.map +1 -1
  56. package/lib/components/ModelCompareV3/data/products/aggregation.mjs +8 -1
  57. package/lib/components/ModelCompareV3/data/products/aggregation.mjs.map +1 -1
  58. package/lib/components/ModelCompareV3/data/products/enterprise8PoE.js +1 -1
  59. package/lib/components/ModelCompareV3/data/products/enterprise8PoE.js.map +1 -1
  60. package/lib/components/ModelCompareV3/data/products/enterprise8PoE.mjs +1 -1
  61. package/lib/components/ModelCompareV3/data/products/enterprise8PoE.mjs.map +1 -1
  62. package/lib/components/ModelCompareV3/data/products/enterpriseAccessHub.js +1 -1
  63. package/lib/components/ModelCompareV3/data/products/enterpriseAccessHub.js.map +1 -1
  64. package/lib/components/ModelCompareV3/data/products/enterpriseAccessHub.mjs +1 -1
  65. package/lib/components/ModelCompareV3/data/products/enterpriseAccessHub.mjs.map +1 -1
  66. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.d.ts +2 -0
  67. package/lib/components/ModelCompareV3/data/products/{enterpriseXG24.js → enterpriseAggregation.js} +26 -44
  68. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js.map +1 -0
  69. package/lib/components/ModelCompareV3/data/products/{enterpriseXG24.mjs → enterpriseAggregation.mjs} +26 -44
  70. package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs.map +1 -0
  71. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24.d.ts +6 -0
  72. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.d.ts +2 -0
  73. package/lib/components/ModelCompareV3/data/products/{enterprise24PoE.js → enterpriseCampus24PoE.js} +30 -47
  74. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js.map +1 -0
  75. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs +85 -0
  76. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs.map +1 -0
  77. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48.d.ts +6 -0
  78. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.d.ts +2 -0
  79. package/lib/components/ModelCompareV3/data/products/{enterprise48PoE.js → enterpriseCampus48PoE.js} +31 -48
  80. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js.map +1 -0
  81. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs +85 -0
  82. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs.map +1 -0
  83. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js +8 -1
  84. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js.map +1 -1
  85. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs +8 -1
  86. package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs.map +1 -1
  87. package/lib/components/ModelCompareV3/data/products/industrial.js +1 -1
  88. package/lib/components/ModelCompareV3/data/products/industrial.js.map +1 -1
  89. package/lib/components/ModelCompareV3/data/products/industrial.mjs +1 -1
  90. package/lib/components/ModelCompareV3/data/products/industrial.mjs.map +1 -1
  91. package/lib/components/ModelCompareV3/data/products/lite16PoE.js +1 -1
  92. package/lib/components/ModelCompareV3/data/products/lite16PoE.js.map +1 -1
  93. package/lib/components/ModelCompareV3/data/products/lite16PoE.mjs +1 -1
  94. package/lib/components/ModelCompareV3/data/products/lite16PoE.mjs.map +1 -1
  95. package/lib/components/ModelCompareV3/data/products/lite8PoE.js +1 -1
  96. package/lib/components/ModelCompareV3/data/products/lite8PoE.js.map +1 -1
  97. package/lib/components/ModelCompareV3/data/products/lite8PoE.mjs +1 -1
  98. package/lib/components/ModelCompareV3/data/products/lite8PoE.mjs.map +1 -1
  99. package/lib/components/ModelCompareV3/data/products/missionCritical.js +8 -1
  100. package/lib/components/ModelCompareV3/data/products/missionCritical.js.map +1 -1
  101. package/lib/components/ModelCompareV3/data/products/missionCritical.mjs +8 -1
  102. package/lib/components/ModelCompareV3/data/products/missionCritical.mjs.map +1 -1
  103. package/lib/components/ModelCompareV3/data/products/professional24.js +1 -1
  104. package/lib/components/ModelCompareV3/data/products/professional24.js.map +1 -1
  105. package/lib/components/ModelCompareV3/data/products/professional24.mjs +1 -1
  106. package/lib/components/ModelCompareV3/data/products/professional24.mjs.map +1 -1
  107. package/lib/components/ModelCompareV3/data/products/professional24PoE.js +1 -1
  108. package/lib/components/ModelCompareV3/data/products/professional24PoE.js.map +1 -1
  109. package/lib/components/ModelCompareV3/data/products/professional24PoE.mjs +1 -1
  110. package/lib/components/ModelCompareV3/data/products/professional24PoE.mjs.map +1 -1
  111. package/lib/components/ModelCompareV3/data/products/professional48.js +1 -1
  112. package/lib/components/ModelCompareV3/data/products/professional48.js.map +1 -1
  113. package/lib/components/ModelCompareV3/data/products/professional48.mjs +1 -1
  114. package/lib/components/ModelCompareV3/data/products/professional48.mjs.map +1 -1
  115. package/lib/components/ModelCompareV3/data/products/professional48PoE.js +1 -1
  116. package/lib/components/ModelCompareV3/data/products/professional48PoE.js.map +1 -1
  117. package/lib/components/ModelCompareV3/data/products/professional48PoE.mjs +1 -1
  118. package/lib/components/ModelCompareV3/data/products/professional48PoE.mjs.map +1 -1
  119. package/lib/components/ModelCompareV3/data/products/professional8PoE.js +1 -1
  120. package/lib/components/ModelCompareV3/data/products/professional8PoE.js.map +1 -1
  121. package/lib/components/ModelCompareV3/data/products/professional8PoE.mjs +1 -1
  122. package/lib/components/ModelCompareV3/data/products/professional8PoE.mjs.map +1 -1
  123. package/lib/components/ModelCompareV3/data/products/standard16PoE.js +1 -1
  124. package/lib/components/ModelCompareV3/data/products/standard16PoE.js.map +1 -1
  125. package/lib/components/ModelCompareV3/data/products/standard16PoE.mjs +1 -1
  126. package/lib/components/ModelCompareV3/data/products/standard16PoE.mjs.map +1 -1
  127. package/lib/components/ModelCompareV3/data/products/standard24.js +1 -1
  128. package/lib/components/ModelCompareV3/data/products/standard24.js.map +1 -1
  129. package/lib/components/ModelCompareV3/data/products/standard24.mjs +1 -1
  130. package/lib/components/ModelCompareV3/data/products/standard24.mjs.map +1 -1
  131. package/lib/components/ModelCompareV3/data/products/standard24PoE.js +1 -1
  132. package/lib/components/ModelCompareV3/data/products/standard24PoE.js.map +1 -1
  133. package/lib/components/ModelCompareV3/data/products/standard24PoE.mjs +1 -1
  134. package/lib/components/ModelCompareV3/data/products/standard24PoE.mjs.map +1 -1
  135. package/lib/components/ModelCompareV3/data/products/standard48.js +1 -1
  136. package/lib/components/ModelCompareV3/data/products/standard48.js.map +1 -1
  137. package/lib/components/ModelCompareV3/data/products/standard48.mjs +1 -1
  138. package/lib/components/ModelCompareV3/data/products/standard48.mjs.map +1 -1
  139. package/lib/components/ModelCompareV3/data/products/standard48PoE.js +1 -1
  140. package/lib/components/ModelCompareV3/data/products/standard48PoE.js.map +1 -1
  141. package/lib/components/ModelCompareV3/data/products/standard48PoE.mjs +1 -1
  142. package/lib/components/ModelCompareV3/data/products/standard48PoE.mjs.map +1 -1
  143. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js +6 -4
  144. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js.map +1 -1
  145. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs +6 -4
  146. package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs.map +1 -1
  147. package/lib/components/ModelCompareV3/data/products/switchesProfessional.js +1 -1
  148. package/lib/components/ModelCompareV3/data/products/switchesProfessional.js.map +1 -1
  149. package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs +1 -1
  150. package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs.map +1 -1
  151. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js +1 -1
  152. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js.map +1 -1
  153. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs +1 -1
  154. package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs.map +1 -1
  155. package/lib/components/ModelCompareV3/data/products/switchesStandard.js +1 -1
  156. package/lib/components/ModelCompareV3/data/products/switchesStandard.js.map +1 -1
  157. package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs +1 -1
  158. package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs.map +1 -1
  159. package/lib/components/ModelCompareV3/data/products/udb.js +4 -7
  160. package/lib/components/ModelCompareV3/data/products/udb.js.map +1 -1
  161. package/lib/components/ModelCompareV3/data/products/udb.mjs +4 -7
  162. package/lib/components/ModelCompareV3/data/products/udb.mjs.map +1 -1
  163. package/lib/components/ModelCompareV3/data/products/udbPro.js +3 -5
  164. package/lib/components/ModelCompareV3/data/products/udbPro.js.map +1 -1
  165. package/lib/components/ModelCompareV3/data/products/udbPro.mjs +3 -5
  166. package/lib/components/ModelCompareV3/data/products/udbPro.mjs.map +1 -1
  167. package/lib/components/ModelCompareV3/translations/ar.json.js +34 -39
  168. package/lib/components/ModelCompareV3/translations/ar.json.js.map +1 -1
  169. package/lib/components/ModelCompareV3/translations/ar.json.mjs +34 -39
  170. package/lib/components/ModelCompareV3/translations/ar.json.mjs.map +1 -1
  171. package/lib/components/ModelCompareV3/translations/de.json.js +33 -38
  172. package/lib/components/ModelCompareV3/translations/de.json.js.map +1 -1
  173. package/lib/components/ModelCompareV3/translations/de.json.mjs +33 -38
  174. package/lib/components/ModelCompareV3/translations/de.json.mjs.map +1 -1
  175. package/lib/components/ModelCompareV3/translations/el.json.js +34 -39
  176. package/lib/components/ModelCompareV3/translations/el.json.js.map +1 -1
  177. package/lib/components/ModelCompareV3/translations/el.json.mjs +34 -39
  178. package/lib/components/ModelCompareV3/translations/el.json.mjs.map +1 -1
  179. package/lib/components/ModelCompareV3/translations/en.json.js +16 -36
  180. package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
  181. package/lib/components/ModelCompareV3/translations/en.json.mjs +16 -36
  182. package/lib/components/ModelCompareV3/translations/en.json.mjs.map +1 -1
  183. package/lib/components/ModelCompareV3/translations/es.json.js +33 -38
  184. package/lib/components/ModelCompareV3/translations/es.json.js.map +1 -1
  185. package/lib/components/ModelCompareV3/translations/es.json.mjs +33 -38
  186. package/lib/components/ModelCompareV3/translations/es.json.mjs.map +1 -1
  187. package/lib/components/ModelCompareV3/translations/fr.json.js +34 -39
  188. package/lib/components/ModelCompareV3/translations/fr.json.js.map +1 -1
  189. package/lib/components/ModelCompareV3/translations/fr.json.mjs +34 -39
  190. package/lib/components/ModelCompareV3/translations/fr.json.mjs.map +1 -1
  191. package/lib/components/ModelCompareV3/translations/it.json.js +34 -39
  192. package/lib/components/ModelCompareV3/translations/it.json.js.map +1 -1
  193. package/lib/components/ModelCompareV3/translations/it.json.mjs +34 -39
  194. package/lib/components/ModelCompareV3/translations/it.json.mjs.map +1 -1
  195. package/lib/components/ModelCompareV3/translations/ja.json.js +33 -38
  196. package/lib/components/ModelCompareV3/translations/ja.json.js.map +1 -1
  197. package/lib/components/ModelCompareV3/translations/ja.json.mjs +33 -38
  198. package/lib/components/ModelCompareV3/translations/ja.json.mjs.map +1 -1
  199. package/lib/components/ModelCompareV3/translations/pt-BR.json.js +33 -38
  200. package/lib/components/ModelCompareV3/translations/pt-BR.json.js.map +1 -1
  201. package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs +33 -38
  202. package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs.map +1 -1
  203. package/lib/components/ModelCompareV3/translations/useModelCompareTranslation.d.ts +2 -2
  204. package/lib/components/ModelCompareV3/translations/zh-Hans.json.js +33 -38
  205. package/lib/components/ModelCompareV3/translations/zh-Hans.json.js.map +1 -1
  206. package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs +33 -38
  207. package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs.map +1 -1
  208. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js +33 -38
  209. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js.map +1 -1
  210. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs +33 -38
  211. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs.map +1 -1
  212. package/lib/components/ProductWizard/ProductWizard.js +1 -1
  213. package/lib/components/ProductWizard/ProductWizard.mjs +1 -1
  214. package/lib/components/QuantityInput/QuantityInput.js +1 -1
  215. package/lib/components/QuantityInput/QuantityInput.mjs +1 -1
  216. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +1 -1
  217. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
  218. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
  219. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
  220. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +1 -1
  221. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
  222. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
  223. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
  224. package/lib/components/Search/Input/Input.js +1 -1
  225. package/lib/components/Search/Input/Input.mjs +1 -1
  226. package/lib/components/VideoPlayerNew/VideoPlayer.js +1 -1
  227. package/lib/components/VideoPlayerNew/VideoPlayer.mjs +1 -1
  228. package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
  229. package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
  230. package/lib/constants/address.d.ts +2 -2
  231. package/lib/constants/address.js +3 -3
  232. package/lib/constants/address.js.map +1 -1
  233. package/lib/constants/address.mjs +3 -3
  234. package/lib/constants/address.mjs.map +1 -1
  235. package/lib/constants/icons/generic/close.svg.js +1 -1
  236. package/lib/constants/icons/generic/close.svg.mjs +2 -2
  237. package/lib/constants/icons/generic/index.js +1 -1
  238. package/lib/constants/icons/generic/index.mjs +1 -1
  239. package/lib/constants/proStoreCategories/mapping/index.js +16 -0
  240. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  241. package/lib/constants/proStoreCategories/mapping/index.mjs +16 -0
  242. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  243. package/lib/constants/proStoreCategories/mapping/mapping.d.ts +7 -0
  244. package/lib/constants/proStoreFilters/mapping.d.ts +1 -0
  245. package/lib/constants/proStoreFilters/mapping.js +4 -2
  246. package/lib/constants/proStoreFilters/mapping.js.map +1 -1
  247. package/lib/constants/proStoreFilters/mapping.mjs +4 -2
  248. package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
  249. package/lib/contexts/MenuContext/mapping.js +3 -2
  250. package/lib/contexts/MenuContext/mapping.js.map +1 -1
  251. package/lib/contexts/MenuContext/mapping.mjs +3 -2
  252. package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
  253. package/lib/utils/money/constants.d.ts +12 -0
  254. package/lib/utils/money/constants.js +17 -1
  255. package/lib/utils/money/constants.js.map +1 -1
  256. package/lib/utils/money/constants.mjs +17 -2
  257. package/lib/utils/money/constants.mjs.map +1 -1
  258. package/lib/utils/money/format.js +17 -4
  259. package/lib/utils/money/format.js.map +1 -1
  260. package/lib/utils/money/format.mjs +18 -5
  261. package/lib/utils/money/format.mjs.map +1 -1
  262. package/lib/utils/money/index.js +1 -0
  263. package/lib/utils/money/index.js.map +1 -1
  264. package/lib/utils/money/index.mjs +1 -1
  265. package/package.json +1 -1
  266. package/lib/assets/enterprise24PoE.jpg +0 -0
  267. package/lib/assets/enterprise48PoE.jpg +0 -0
  268. package/lib/assets/enterpriseXG24.jpg +0 -0
  269. package/lib/components/ModelCompareV3/assets/Switching/enterprise24PoE.jpg.js.map +0 -1
  270. package/lib/components/ModelCompareV3/assets/Switching/enterprise24PoE.jpg.mjs +0 -3
  271. package/lib/components/ModelCompareV3/assets/Switching/enterprise24PoE.jpg.mjs.map +0 -1
  272. package/lib/components/ModelCompareV3/assets/Switching/enterprise48PoE.jpg.js.map +0 -1
  273. package/lib/components/ModelCompareV3/assets/Switching/enterprise48PoE.jpg.mjs +0 -3
  274. package/lib/components/ModelCompareV3/assets/Switching/enterprise48PoE.jpg.mjs.map +0 -1
  275. package/lib/components/ModelCompareV3/assets/Switching/enterpriseXG24.jpg.js.map +0 -1
  276. package/lib/components/ModelCompareV3/assets/Switching/enterpriseXG24.jpg.mjs +0 -3
  277. package/lib/components/ModelCompareV3/assets/Switching/enterpriseXG24.jpg.mjs.map +0 -1
  278. package/lib/components/ModelCompareV3/data/products/enterprise24PoE.js.map +0 -1
  279. package/lib/components/ModelCompareV3/data/products/enterprise24PoE.mjs +0 -102
  280. package/lib/components/ModelCompareV3/data/products/enterprise24PoE.mjs.map +0 -1
  281. package/lib/components/ModelCompareV3/data/products/enterprise48PoE.js.map +0 -1
  282. package/lib/components/ModelCompareV3/data/products/enterprise48PoE.mjs +0 -102
  283. package/lib/components/ModelCompareV3/data/products/enterprise48PoE.mjs.map +0 -1
  284. package/lib/components/ModelCompareV3/data/products/enterpriseXG24.js.map +0 -1
  285. package/lib/components/ModelCompareV3/data/products/enterpriseXG24.mjs.map +0 -1
@@ -4,7 +4,7 @@ import '../StyleableSvgImage/index.mjs';
4
4
  import { Container, Label, QuantityAdjustWrap, MinusAdjustButton, QuantityInput as QuantityInput$1, PlusAdjustButton } from './QuantityInput.styles.mjs';
5
5
  import { StyleableSvgImage } from '../StyleableSvgImage/StyleableSvgImage.mjs';
6
6
  import minus__default from "../../assets/minus.svg";
7
- import plus__default from "../../assets/plus2.svg";
7
+ import plus__default from "../../assets/plus.svg";
8
8
  "use strict";
9
9
  const QuantityInput = ({
10
10
  quantity,
@@ -12,7 +12,7 @@ require('./assets/attention.svg.js');
12
12
  var InputCard_styles = require('./InputCard.styles.js');
13
13
  require('./InputSections/index.js');
14
14
  var CustomImage = require('../../../../CustomImage/CustomImage.js');
15
- var attentionIcon = require("../../../../../assets/attention.svg");
15
+ var attentionIcon = require("../../../../../assets/attention2.svg");
16
16
  var OptionSelectSection = require('./InputSections/OptionSelectSection.js');
17
17
  var SliderSection = require('./InputSections/SliderSection.js');
18
18
  var CounterSection = require('./InputSections/CounterSection.js');
@@ -10,7 +10,7 @@ import './assets/attention.svg.mjs';
10
10
  import { Card, Header, HeaderHeadingSection, HeadingIcon, HeadingTitle, HeaderActionSection, SubduedInfo, OverlayFilter, NotAvailableNoteWrap, NotAvailableNoteIcon, InputBody, InputSectionSpacing, Footer, FooterContent, FooterNote } from './InputCard.styles.mjs';
11
11
  import './InputSections/index.mjs';
12
12
  import { CustomImage } from '../../../../CustomImage/CustomImage.mjs';
13
- import attentionIcon__default from "../../../../../assets/attention.svg";
13
+ import attentionIcon__default from "../../../../../assets/attention2.svg";
14
14
  import { OptionSelectSection } from './InputSections/OptionSelectSection.mjs';
15
15
  import { SliderSection } from './InputSections/SliderSection.mjs';
16
16
  import { CounterSection } from './InputSections/CounterSection.mjs';
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var attentionIcon = require("../../../../../../assets/attention.svg");
6
+ var attentionIcon = require("../../../../../../assets/attention2.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -1,3 +1,3 @@
1
- export * from "../../../../../../assets/attention.svg";
2
- export { default } from "../../../../../../assets/attention.svg";
1
+ export * from "../../../../../../assets/attention2.svg";
2
+ export { default } from "../../../../../../assets/attention2.svg";
3
3
  //# sourceMappingURL=attention.svg.mjs.map
@@ -6,7 +6,7 @@ var asset = require('../../../../../utils/asset.js');
6
6
  require('./assets/attention.svg.js');
7
7
  var Part = require('./Part.js');
8
8
  var ProgressBarChart_styles = require('./ProgressBarChart.styles.js');
9
- var attentionIcon = require("../../../../../assets/attention2.svg");
9
+ var attentionIcon = require("../../../../../assets/attention.svg");
10
10
  function _interopDefault(e) {
11
11
  return e && e.__esModule ? e : {
12
12
  default: e
@@ -4,7 +4,7 @@ import { imageSrc } from '../../../../../utils/asset.mjs';
4
4
  import './assets/attention.svg.mjs';
5
5
  import { PART_GAP_PX, PART_WIDTH_PX, Part } from './Part.mjs';
6
6
  import { ProgressBarChartContainer, ProgressBarChartHeader, ProgressBarChartTitle, ProgressBarWrapper, ProgressBarPartsContainer, ProgressBarAttentionLabel, ProgressBarAttentionLabelIcon } from './ProgressBarChart.styles.mjs';
7
- import attentionIcon__default from "../../../../../assets/attention2.svg";
7
+ import attentionIcon__default from "../../../../../assets/attention.svg";
8
8
  "use strict";
9
9
  const ProgressBarChart = ({
10
10
  title,
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var attentionIcon = require("../../../../../../assets/attention2.svg");
6
+ var attentionIcon = require("../../../../../../assets/attention.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -1,3 +1,3 @@
1
- export * from "../../../../../../assets/attention2.svg";
2
- export { default } from "../../../../../../assets/attention2.svg";
1
+ export * from "../../../../../../assets/attention.svg";
2
+ export { default } from "../../../../../../assets/attention.svg";
3
3
  //# sourceMappingURL=attention.svg.mjs.map
@@ -10,7 +10,7 @@ var Input_styles = require('./Input.styles.js');
10
10
  var StyleableSvgImage = require('../../StyleableSvgImage/StyleableSvgImage.js');
11
11
  var _externalAssets_g50k1DIN = require("../../../assets/search.svg");
12
12
  var Spinner = require('../../Loader/Spinner/Spinner.js');
13
- var CloseIcon = require("../../../assets/close3.svg");
13
+ var CloseIcon = require("../../../assets/close.svg");
14
14
  function _interopDefault(e) {
15
15
  return e && e.__esModule ? e : {
16
16
  default: e
@@ -8,7 +8,7 @@ import { SearchInputContainer, InputWrap, IconWrap, Input, IconAfterWrap, Cancel
8
8
  import { StyleableSvgImage } from '../../StyleableSvgImage/StyleableSvgImage.mjs';
9
9
  import _externalAssets_g50k1DIN__default from "../../../assets/search.svg";
10
10
  import { Spinner } from '../../Loader/Spinner/Spinner.mjs';
11
- import CloseIcon__default from "../../../assets/close3.svg";
11
+ import CloseIcon__default from "../../../assets/close.svg";
12
12
  "use strict";
13
13
  const MAX_CHARACTERS = 250;
14
14
  const SearchInput = function SearchInput2({
@@ -12,7 +12,7 @@ require('./assets/play.svg.js');
12
12
  require('./assets/volume-off.svg.js');
13
13
  require('./assets/volume-on.svg.js');
14
14
  var VideoPlayer_styles = require('./VideoPlayer.styles.js');
15
- var CloseIcon = require("../../assets/close2.svg");
15
+ var CloseIcon = require("../../assets/close3.svg");
16
16
  var BackIcon = require("../../assets/back.svg");
17
17
  var PauseIcon = require("../../assets/pause2.svg");
18
18
  var PlayIcon = require("../../assets/play.svg");
@@ -10,7 +10,7 @@ import './assets/play.svg.mjs';
10
10
  import './assets/volume-off.svg.mjs';
11
11
  import './assets/volume-on.svg.mjs';
12
12
  import { Wrap, IconWrap, Icon, Video, ControlWrap, TimelineWrap, Timeline, Controls, LeftSide, IconButton, VolumeWrap, VolumeSliderWrap, VolumeSlider, Time, Center, RightSide } from './VideoPlayer.styles.mjs';
13
- import CloseIcon__default from "../../assets/close2.svg";
13
+ import CloseIcon__default from "../../assets/close3.svg";
14
14
  import BackIcon__default from "../../assets/back.svg";
15
15
  import PauseIcon__default from "../../assets/pause2.svg";
16
16
  import PlayIcon__default from "../../assets/play.svg";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var CloseIcon = require("../../../assets/close2.svg");
6
+ var CloseIcon = require("../../../assets/close3.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -1,3 +1,3 @@
1
- export * from "../../../assets/close2.svg";
2
- export { default } from "../../../assets/close2.svg";
1
+ export * from "../../../assets/close3.svg";
2
+ export { default } from "../../../assets/close3.svg";
3
3
  //# sourceMappingURL=close.svg.mjs.map
@@ -321,8 +321,8 @@ export declare const BUSINESS_COUNTRY_CODE_MAPPING: {
321
321
  };
322
322
  /**
323
323
  * @see https://www.fonoa.com/blog/new-mandatory-rfc-validation-method-in-mexico
324
- * A businesses RFC consists of 12 digits with the following structure: xxxyyyyyyzzz
325
- * (x = letters, y = numbers, z = alphanumeric)
324
+ * A businesses RFC consists of 12 characters with the following structure: xxxyyyyyyzzz
325
+ * (x = letters (including Ñ and &), y = numbers, z = alphanumeric)
326
326
  */
327
327
  readonly MX: {
328
328
  readonly validation: RegExp;
@@ -341,11 +341,11 @@ const BUSINESS_COUNTRY_CODE_MAPPING = {
341
341
  },
342
342
  /**
343
343
  * @see https://www.fonoa.com/blog/new-mandatory-rfc-validation-method-in-mexico
344
- * A businesses RFC consists of 12 digits with the following structure: xxxyyyyyyzzz
345
- * (x = letters, y = numbers, z = alphanumeric)
344
+ * A businesses RFC consists of 12 characters with the following structure: xxxyyyyyyzzz
345
+ * (x = letters (including Ñ and &), y = numbers, z = alphanumeric)
346
346
  */
347
347
  [generated.CountryCode.Mx]: {
348
- validation: /^[A-Z]{3}[0-9]{6}[0-9A-Z]{3}$/i,
348
+ validation: /^[A-ZÑ&]{3}\d{6}[A-Z0-9]{3}$/i,
349
349
  isOptional: false
350
350
  }
351
351
  };
@@ -1 +1 @@
1
- {"version":3,"file":"address.js","sources":["../../src/constants/address.ts"],"sourcesContent":["import { CountryCode, UserAssignedCountryCode } from \"../types\";\nimport { isCnpjValid, isCpfValid } from \"../utils/tax/brazil\";\n\n/**\n * Canada post code validation, we changed the regex from the url taken on by forcing a space in the middle (it's\n * optional there)\n * @see https://www.oreilly.com/library/view/regular-expressions-cookbook/9781449327453/ch04s15.html#:~:text=Aside%20from%20those%20two%20exceptions,for%20Canada%20Post's%20Ottawa%20headquarters.\n *\n * @deprecated with version 5.38.0 Use COUNTRY_CODE_POSTAL_CODE_REGEX\n */\nexport const CA_POSTAL_CODE_REGEX =\n /^(?!.*[DFIOQU])[A-VXY][0-9][A-Z] [0-9][A-Z][0-9]$/;\n\n/**\n * South Africa uses a simple 4-digit ZIP code pattern.\n * Unfortunately there doesn't seem have be pattern that some specific digits present a specific state/city that is\n * easily regex'able\n *\n * @deprecated with version 5.38.0 Use COUNTRY_CODE_POSTAL_CODE_REGEX\n */\nexport const ZA_POSTAL_CODE_REGEX = /^[0-9]{4}$/;\n\n/**\n * Mapping for postal code first letter to state province code.\n * Used for stricter postal code validation so zip code matches right state\n * Data taken from https://www12.statcan.gc.ca/census-recensement/2021/ref/dict/tab/index-eng.cfm?ID=t1_9\n * Related task: https://ubiquiti.atlassian.net/browse/NEP-1184?focusedCommentId=292248\n *\n * @deprecated use from packages/store.core/src/constants/postalCode.ts\n */\nexport const CA_POSTAL_CODE_PROVINCE_FIRST_CHARACTER = {\n A: [\"NL\"], // Newfoundland and Labrador\n B: [\"NS\"], // Nova Scotia\n C: [\"PE\"], // Prince Edward Island\n E: [\"NB\"], // New Brunswick\n G: [\"QC\"], // Eastern Quebec\n H: [\"QC\"], // Metropolitan Montréal\n J: [\"QC\"], // Western Quebec\n K: [\"ON\"], // Eastern Ontario\n L: [\"ON\"], // Central Ontario\n M: [\"ON\"], // Metropolitan Toronto\n N: [\"ON\"], // Southwestern Ontario\n P: [\"ON\"], // Northern Ontario\n R: [\"MB\"], // Manitoba\n S: [\"SK\"], // Saskatchewan\n T: [\"AB\"], // Alberta\n V: [\"BC\"], // British Columbia\n X: [\"NU\", \"NT\"], // Northwest Territories and Nunavut\n Y: [\"YT\"], // Yukon\n};\n\n/**\n * Static regex patterns to validate TAX number possibility\n * ! It does not guarantee that it's a registered TAX nubmer in the country it belongs in !\n */\nexport const BUSINESS_COUNTRY_CODE_MAPPING = {\n // #############################################################################\n // Europe VIES country patterns\n //\n // Links:\n // - Main source for pattens (see Question #11) - https://ec.europa.eu/taxation_customs/vies/#/faq\n // - Alternative source for patterns -\n // https://www.avalara.com/vatlive/en/eu-vat-rules/eu-vat-number-registration/eu-vat-number-formats.html\n // - General info about VAT numbers - https://en.wikipedia.org/wiki/VAT_identification_number\n //\n // HACK: For user convenience:\n // - Make the vat number country prefix optional (\"DE\" in \"DE999999999\") as we will normalise it inside of the VIES\n // service!\n // - Match result case-insensitive, we can easily uppercase it in the service\n // #############################################################################\n /**\n * Austria - 1 block of 9 characters and The 1st position following the prefix is always \"U\"\n */\n [CountryCode.At]: {\n validation: /^(AT)?U[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Belgium - 1 block of 10 digits - First digit after prefix is either 0 or 1\n */\n [CountryCode.Be]: {\n validation: /^(BE)?[0,1]{1}[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Bulgaria - 1 block of 9 digits or 1 block of 10 digits\n */\n [CountryCode.Bg]: {\n validation: /^(BG)?[0-9]{9,10}$/i,\n isOptional: false,\n },\n /**\n * Cyprus - 1 block of 8 digits and trailing letter\n */\n [CountryCode.Cy]: {\n validation: /^(CY)?[0-9]{8}[A-Z]$/i,\n isOptional: false,\n },\n /**\n * Czech Republic - 1 block of either 8, 9 or 10 digits\n */\n [CountryCode.Cz]: {\n validation: /^(CZ)?[0-9]{8,10}$/i,\n isOptional: false,\n },\n /**\n * Germany - 9 digits\n */\n [CountryCode.De]: {\n validation: /^(DE)?[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Denmark - 8 digits\n */\n [CountryCode.Dk]: {\n validation: /^(DK)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Estonia - 9 digits\n */\n [CountryCode.Ee]: {\n validation: /^(EE)?[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Greece - 9 digits\n * Note: We are using \"EL\" instead of its country code \"GR\" for prefix as per European Commission requirements, this\n * only affects how we validate it against VIES\n * @see https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Imperfect_implementations\n */\n [UserAssignedCountryCode.El]: {\n validation: /^(EL)?[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Spain - 9 characters Includes 1 or 2 alphabetical characters (first or last or first and last)\n * Note: We can reduce the pattern 2 regex or-pattern where:\n * 1. Handles scenario with leading letter and optional trailing letter\n * 2. Handles scenario with just trailing letter\n */\n [CountryCode.Es]: {\n validation: /^(ES)?(([A-Z][0-9]{7}[0-9A-Z])|([0-9]{8}[A-Z]))$/i,\n isOptional: false,\n },\n /**\n * Finland - 1 block of 8 digits\n */\n [CountryCode.Fi]: {\n validation: /^(FI)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * France & Monaco - 11 characters May include alphabetical characters (any except O or I) as first or second or first and\n * second characters\n *\n * TODO: Maybe add stricter validation for the invalid \"O\" and \"I\" characters (need to find a source that validates it)\n *\n * Fun-fact: France has actual math behind how they calculate the first 2 digits as they are a validation key, but we\n * don't require such a strict pattern as we would just end up doing actual checking up against Europe VIES\n * @see https://stackoverflow.com/a/33627030\n * @see https://en.wikipedia.org/wiki/VAT_identification_number\n */\n [UserAssignedCountryCode.Fr]: {\n validation: /^(FR)?[0-9A-Z]{2}[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Croatia - 1 block of 11 digits\n */\n [CountryCode.Hr]: {\n validation: /^(HR)?[0-9]{11}$/i,\n isOptional: false,\n },\n /**\n * Hungary - 1 block of 8 digits\n */\n [CountryCode.Hu]: {\n validation: /^(HU)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Ireland - 8 or 9 characters. Includes one or two alphabetical characters (last, or second and last, or last 2)\n *\n * It kinda has 3 styles:\n * - IE9S99999L (legacy, afaik WIKI told it's being phased out)\n * - IE9999999L\n * - IE9999999WI\n * @see https://en.wikipedia.org/wiki/VAT_identification_number\n */\n [CountryCode.Ie]: {\n validation: /^(IE)?[0-9][0-9A-Z][0-9]{5}[A-Z]{1,2}$/i,\n isOptional: false,\n },\n /**\n * Italy - 1 block of 11 digits\n */\n [CountryCode.It]: {\n validation: /^(IT)?[0-9]{11}$/i,\n isOptional: false,\n },\n /**\n * Lithuania - 1 block of 9 digits, or 1 block of 12 digits\n */\n [CountryCode.Lt]: {\n validation: /^(LT)?([0-9]{9}|[0-9]{12})$/i,\n isOptional: false,\n },\n /**\n * Luxembourg - 1 block of 8 digits\n */\n [CountryCode.Lu]: {\n validation: /^(LU)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Latvia - 1 block of 11 digits\n */\n [CountryCode.Lv]: {\n validation: /^(LV)?[0-9]{11}$/i,\n isOptional: false,\n },\n /**\n * Malta - 1 block of 8 digits\n */\n [CountryCode.Mt]: {\n validation: /^(MT)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Netherlands - 9 digits, the letter \"B\" and 2 \"check\" digits\n * @see https://business.gov.nl/regulation/using-checking-vat-numbers/\n *\n * Fun-fact: Avatax VAT reference link has a mistake of using \"BO2\" instead of \"B02\" for VAT group companies e.g https://eriks.com/en/contact/thank-you/\n */\n [CountryCode.Nl]: {\n validation: /^(NL)?[0-9]{9}B[0-9]{2}$/i,\n isOptional: false,\n },\n /**\n * Poland - 1 block of 10 digits\n */\n [CountryCode.Pl]: {\n validation: /^(PL)?[0-9]{10}$/i,\n isOptional: false,\n },\n /**\n * Portugal - 1 block of 9 digits\n */\n [CountryCode.Pt]: {\n validation: /^(PT)?[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Romania - 1 block of minimum 2 digits and maximum 10 digits\n *\n * Note: Wasn't able to find an official Romanian doc that validates this pattern as internet had mixed info about it,\n * but sticking with EU VIES recommended 2-10 digits\n */\n [CountryCode.Ro]: {\n validation: /^(RO)?[0-9]{2,10}$/i,\n isOptional: false,\n },\n /**\n * Sweden - 1 block of 12 digits\n */\n [CountryCode.Se]: {\n validation: /^(SE)?[0-9]{12}$/i,\n isOptional: false,\n },\n /**\n * Slovenia - 1 block of 8 digits\n */\n [CountryCode.Si]: {\n validation: /^(SI)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Slovakia - 1 block of 10 digits\n */\n [CountryCode.Sk]: {\n validation: /^(SK)?[0-9]{10}$/i,\n isOptional: false,\n },\n /**\n * Northern Ireland - 1 block of 3 digits, 1 block of 4 digits and 1 block of 2 digits; or the above followed by a block of 3 digits; or 1 block of 5 characters\n */\n [UserAssignedCountryCode.Xi]: {\n validation: /^(XI)?([0-9]{9}([0-9]{3})?|[A-Z]{2}[0-9]{3})$/i,\n isOptional: false,\n },\n // #############################################################################\n // Eurozone\n // #############################################################################\n /**\n * United Kingdom except (Northern Ireland a.k.a Xi)\n * @see https://www.gov.uk/register-for-vat/selling-or-moving-goods-between-northern-ireland-and-the-eu\n */\n [CountryCode.Gb]: {\n validation: /^(GB)?([0-9]{9}([0-9]{3})?|[A-Z]{2}[0-9]{3})$/i,\n isOptional: false,\n },\n /**\n * Norway - \"NO\" optional prefix, 9 digits, \"MVA\" optional suffix\n * @see https://www.avalara.com/vatlive/en/eu-vat-rules/eu-vat-number-registration/eu-vat-number-formats.html\n * @see https://vatstack.com/articles/norway-vat-number-validation\n * @see https://en.wikipedia.org/wiki/VAT_identification_number#:~:text=e.g.%20MK4032013544513-,Norway,-Organisasjonsnummer%0AOrganization%20number\n */\n [CountryCode.No]: {\n validation: /^(NO)?[0-9]{9}(MVA)?$/i,\n isOptional: false,\n },\n // TODO: should we add Switzerland? see https://www.avalara.com/vatlive/en/eu-vat-rules/eu-vat-number-registration/eu-vat-number-formats.html\n // Switzerland\n // [CountryCode.Ch]: ...\n // #############################################################################\n // Other (one-of's)\n // #############################################################################\n /**\n * United Arab Emirates - 1 block of 15 digits\n *\n * Note: no source for this found, using format based on UI AE TRN\n * Note: AE TRN does not use a country prefix\n */\n [CountryCode.Ae]: {\n validation: /^[0-9]{15}$/i,\n isOptional: false,\n },\n /**\n * South Africa - as per links below, should accept input that starts with 4 and following 9 digits.\n * @see https://secure.sarsefiling.co.za/vatvendorsearch.aspx\n * @see https://secure.sarsefiling.co.za/VATVendorSearch/application/help.html\n */\n [CountryCode.Za]: {\n validation: /^4[0-9]{9}$/i,\n isOptional: false,\n },\n\n [CountryCode.Br]: {\n validation: isCnpjValid,\n isOptional: false,\n },\n\n [CountryCode.In]: {\n validation: /^[0-9A-Z]{15}$/,\n isOptional: false,\n },\n\n [CountryCode.Tw]: {\n validation: /^[0-9A-Z]{8}$/,\n isOptional: false,\n },\n\n /**\n * @see https://www.fonoa.com/blog/new-mandatory-rfc-validation-method-in-mexico\n * A businesses RFC consists of 12 digits with the following structure: xxxyyyyyyzzz\n * (x = letters, y = numbers, z = alphanumeric)\n */\n [CountryCode.Mx]: {\n validation: /^[A-Z]{3}[0-9]{6}[0-9A-Z]{3}$/i,\n isOptional: false,\n },\n} as const;\n// FIXME: once we upgrade to Next 13 which supports typescript satisfies we can use this to make th pattern stricter\n// FIXME: \"isOptional: false\" could be safely removed once we use the \"satisfies\" as we only care about cases when \"isOptional: true\". It was added just to make TS happy.\n// } satisfies CountryTaxValidationMapping;\n\nexport const RESIDENTIAL_COUNTRY_CODE_MAPPING = {\n // #############################################################################\n // Other (one-of's)\n // #############################################################################\n [CountryCode.Br]: {\n validation: isCpfValid,\n isOptional: false,\n },\n\n [CountryCode.In]: {\n validation: /^[0-9A-Z]{15}$/,\n isOptional: true,\n },\n} as const;\n// FIXME: once we upgrade to Next 13 which supports typescript satisfies we can use this to make th pattern stricter\n// FIXME: \"isOptional: false\" could be safely removed once we use the \"satisfies\" as we only care about cases when \"isOptional: true\". It was added just to make TS happy.\n// } satisfies CountryTaxValidationMapping;\n\n/**\n * Set of type-safe rules that we use in `getUserAssignedCountryCode` to determine UserAssignedCountryCode\n */\nexport const USER_ASSIGNED_COUNTRY_MAPPING_RULES = {\n [UserAssignedCountryCode.Xi]: [\n [CountryCode.Gb, \"NIR\"], // Northern Ireland\n ],\n [UserAssignedCountryCode.El]: [\n [CountryCode.Gr], // Greece\n ],\n [UserAssignedCountryCode.Fr]: [\n [CountryCode.Fr], // France\n [CountryCode.Mc], // Monaco\n ],\n // FIXME: once we upgrade to Next 13 which supports typescript satisfies we can use this to make th pattern stricter\n} as {\n [key in UserAssignedCountryCode]: [\n countryCode: CountryCode,\n province?: string,\n ][];\n};\n\n/**\n * List of found alternative province names that results\n * from Google Places API. This is used to map the alternative\n * province name to the correct province code for auto-fill.\n */\nexport const ALTERNATIVE_PROVINCE_NAMES: {\n [key in CountryCode]?: Record<string, string>;\n} = {\n // United Arab Emirates\n [CountryCode.Ae]: {\n \"Ras al Khaimah\": \"RK\",\n \"Umm Al Quawain\": \"UQ\",\n },\n // Ireland\n [CountryCode.Ie]: {\n \"County Kildare\": \"KE\",\n \"County Kilkenny\": \"KK\",\n },\n};\n"],"names":["CA_POSTAL_CODE_REGEX","ZA_POSTAL_CODE_REGEX","CA_POSTAL_CODE_PROVINCE_FIRST_CHARACTER","A","B","C","E","G","H","J","K","L","M","N","P","R","S","T","V","X","Y","BUSINESS_COUNTRY_CODE_MAPPING","CountryCode","At","validation","isOptional","Be","Bg","Cy","Cz","De","Dk","Ee","UserAssignedCountryCode","El","Es","Fi","Fr","Hr","Hu","Ie","It","Lt","Lu","Lv","Mt","Nl","Pl","Pt","Ro","Se","Si","Sk","Xi","Gb","No","Ae","Za","Br","isCnpjValid","In","Tw","Mx","RESIDENTIAL_COUNTRY_CODE_MAPPING","isCpfValid","USER_ASSIGNED_COUNTRY_MAPPING_RULES","Gr","Mc","ALTERNATIVE_PROVINCE_NAMES"],"mappings":";;;;;;AAUO,MAAMA,oBACX,GAAA,mDAAA;AASK,MAAMC,oBAAuB,GAAA,YAAA;AAU7B,MAAMC,uCAA0C,GAAA;EACrDC,CAAA,EAAG,CAAC,IAAI,CAAA;EAAA;EACRC,CAAA,EAAG,CAAC,IAAI,CAAA;EAAA;EACRC,CAAA,EAAG,CAAC,IAAI,CAAA;EAAA;EACRC,CAAA,EAAG,CAAC,IAAI,CAAA;EAAA;EACRC,CAAA,EAAG,CAAC,IAAI,CAAA;EAAA;EACRC,CAAA,EAAG,CAAC,IAAI,CAAA;EAAA;EACRC,CAAA,EAAG,CAAC,IAAI,CAAA;EAAA;EACRC,CAAA,EAAG,CAAC,IAAI,CAAA;EAAA;E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,SAAAA,CAAAA,WAAY,CAAAkC,EAAE,GAAG;IAChB,gBAAkB,EAAA,IAAA;IAClB,gBAAkB,EAAA;EACpB,CAAA;EAAA;EAEA,CAAClC,SAAAA,CAAAA,WAAY,CAAAkB,EAAE,GAAG;IAChB,gBAAkB,EAAA,IAAA;IAClB,iBAAmB,EAAA;EACrB;AACF,CAAA;;;;;;;"}
1
+ {"version":3,"file":"address.js","sources":["../../src/constants/address.ts"],"sourcesContent":["import { CountryCode, UserAssignedCountryCode } from \"../types\";\nimport { isCnpjValid, isCpfValid } from \"../utils/tax/brazil\";\n\n/**\n * Canada post code validation, we changed the regex from the url taken on by forcing a space in the middle (it's\n * optional there)\n * @see https://www.oreilly.com/library/view/regular-expressions-cookbook/9781449327453/ch04s15.html#:~:text=Aside%20from%20those%20two%20exceptions,for%20Canada%20Post's%20Ottawa%20headquarters.\n *\n * @deprecated with version 5.38.0 Use COUNTRY_CODE_POSTAL_CODE_REGEX\n */\nexport const CA_POSTAL_CODE_REGEX =\n /^(?!.*[DFIOQU])[A-VXY][0-9][A-Z] [0-9][A-Z][0-9]$/;\n\n/**\n * South Africa uses a simple 4-digit ZIP code pattern.\n * Unfortunately there doesn't seem have be pattern that some specific digits present a specific state/city that is\n * easily regex'able\n *\n * @deprecated with version 5.38.0 Use COUNTRY_CODE_POSTAL_CODE_REGEX\n */\nexport const ZA_POSTAL_CODE_REGEX = /^[0-9]{4}$/;\n\n/**\n * Mapping for postal code first letter to state province code.\n * Used for stricter postal code validation so zip code matches right state\n * Data taken from https://www12.statcan.gc.ca/census-recensement/2021/ref/dict/tab/index-eng.cfm?ID=t1_9\n * Related task: https://ubiquiti.atlassian.net/browse/NEP-1184?focusedCommentId=292248\n *\n * @deprecated use from packages/store.core/src/constants/postalCode.ts\n */\nexport const CA_POSTAL_CODE_PROVINCE_FIRST_CHARACTER = {\n A: [\"NL\"], // Newfoundland and Labrador\n B: [\"NS\"], // Nova Scotia\n C: [\"PE\"], // Prince Edward Island\n E: [\"NB\"], // New Brunswick\n G: [\"QC\"], // Eastern Quebec\n H: [\"QC\"], // Metropolitan Montréal\n J: [\"QC\"], // Western Quebec\n K: [\"ON\"], // Eastern Ontario\n L: [\"ON\"], // Central Ontario\n M: [\"ON\"], // Metropolitan Toronto\n N: [\"ON\"], // Southwestern Ontario\n P: [\"ON\"], // Northern Ontario\n R: [\"MB\"], // Manitoba\n S: [\"SK\"], // Saskatchewan\n T: [\"AB\"], // Alberta\n V: [\"BC\"], // British Columbia\n X: [\"NU\", \"NT\"], // Northwest Territories and Nunavut\n Y: [\"YT\"], // Yukon\n};\n\n/**\n * Static regex patterns to validate TAX number possibility\n * ! It does not guarantee that it's a registered TAX nubmer in the country it belongs in !\n */\nexport const BUSINESS_COUNTRY_CODE_MAPPING = {\n // #############################################################################\n // Europe VIES country patterns\n //\n // Links:\n // - Main source for pattens (see Question #11) - https://ec.europa.eu/taxation_customs/vies/#/faq\n // - Alternative source for patterns -\n // https://www.avalara.com/vatlive/en/eu-vat-rules/eu-vat-number-registration/eu-vat-number-formats.html\n // - General info about VAT numbers - https://en.wikipedia.org/wiki/VAT_identification_number\n //\n // HACK: For user convenience:\n // - Make the vat number country prefix optional (\"DE\" in \"DE999999999\") as we will normalise it inside of the VIES\n // service!\n // - Match result case-insensitive, we can easily uppercase it in the service\n // #############################################################################\n /**\n * Austria - 1 block of 9 characters and The 1st position following the prefix is always \"U\"\n */\n [CountryCode.At]: {\n validation: /^(AT)?U[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Belgium - 1 block of 10 digits - First digit after prefix is either 0 or 1\n */\n [CountryCode.Be]: {\n validation: /^(BE)?[0,1]{1}[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Bulgaria - 1 block of 9 digits or 1 block of 10 digits\n */\n [CountryCode.Bg]: {\n validation: /^(BG)?[0-9]{9,10}$/i,\n isOptional: false,\n },\n /**\n * Cyprus - 1 block of 8 digits and trailing letter\n */\n [CountryCode.Cy]: {\n validation: /^(CY)?[0-9]{8}[A-Z]$/i,\n isOptional: false,\n },\n /**\n * Czech Republic - 1 block of either 8, 9 or 10 digits\n */\n [CountryCode.Cz]: {\n validation: /^(CZ)?[0-9]{8,10}$/i,\n isOptional: false,\n },\n /**\n * Germany - 9 digits\n */\n [CountryCode.De]: {\n validation: /^(DE)?[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Denmark - 8 digits\n */\n [CountryCode.Dk]: {\n validation: /^(DK)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Estonia - 9 digits\n */\n [CountryCode.Ee]: {\n validation: /^(EE)?[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Greece - 9 digits\n * Note: We are using \"EL\" instead of its country code \"GR\" for prefix as per European Commission requirements, this\n * only affects how we validate it against VIES\n * @see https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Imperfect_implementations\n */\n [UserAssignedCountryCode.El]: {\n validation: /^(EL)?[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Spain - 9 characters Includes 1 or 2 alphabetical characters (first or last or first and last)\n * Note: We can reduce the pattern 2 regex or-pattern where:\n * 1. Handles scenario with leading letter and optional trailing letter\n * 2. Handles scenario with just trailing letter\n */\n [CountryCode.Es]: {\n validation: /^(ES)?(([A-Z][0-9]{7}[0-9A-Z])|([0-9]{8}[A-Z]))$/i,\n isOptional: false,\n },\n /**\n * Finland - 1 block of 8 digits\n */\n [CountryCode.Fi]: {\n validation: /^(FI)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * France & Monaco - 11 characters May include alphabetical characters (any except O or I) as first or second or first and\n * second characters\n *\n * TODO: Maybe add stricter validation for the invalid \"O\" and \"I\" characters (need to find a source that validates it)\n *\n * Fun-fact: France has actual math behind how they calculate the first 2 digits as they are a validation key, but we\n * don't require such a strict pattern as we would just end up doing actual checking up against Europe VIES\n * @see https://stackoverflow.com/a/33627030\n * @see https://en.wikipedia.org/wiki/VAT_identification_number\n */\n [UserAssignedCountryCode.Fr]: {\n validation: /^(FR)?[0-9A-Z]{2}[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Croatia - 1 block of 11 digits\n */\n [CountryCode.Hr]: {\n validation: /^(HR)?[0-9]{11}$/i,\n isOptional: false,\n },\n /**\n * Hungary - 1 block of 8 digits\n */\n [CountryCode.Hu]: {\n validation: /^(HU)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Ireland - 8 or 9 characters. Includes one or two alphabetical characters (last, or second and last, or last 2)\n *\n * It kinda has 3 styles:\n * - IE9S99999L (legacy, afaik WIKI told it's being phased out)\n * - IE9999999L\n * - IE9999999WI\n * @see https://en.wikipedia.org/wiki/VAT_identification_number\n */\n [CountryCode.Ie]: {\n validation: /^(IE)?[0-9][0-9A-Z][0-9]{5}[A-Z]{1,2}$/i,\n isOptional: false,\n },\n /**\n * Italy - 1 block of 11 digits\n */\n [CountryCode.It]: {\n validation: /^(IT)?[0-9]{11}$/i,\n isOptional: false,\n },\n /**\n * Lithuania - 1 block of 9 digits, or 1 block of 12 digits\n */\n [CountryCode.Lt]: {\n validation: /^(LT)?([0-9]{9}|[0-9]{12})$/i,\n isOptional: false,\n },\n /**\n * Luxembourg - 1 block of 8 digits\n */\n [CountryCode.Lu]: {\n validation: /^(LU)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Latvia - 1 block of 11 digits\n */\n [CountryCode.Lv]: {\n validation: /^(LV)?[0-9]{11}$/i,\n isOptional: false,\n },\n /**\n * Malta - 1 block of 8 digits\n */\n [CountryCode.Mt]: {\n validation: /^(MT)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Netherlands - 9 digits, the letter \"B\" and 2 \"check\" digits\n * @see https://business.gov.nl/regulation/using-checking-vat-numbers/\n *\n * Fun-fact: Avatax VAT reference link has a mistake of using \"BO2\" instead of \"B02\" for VAT group companies e.g https://eriks.com/en/contact/thank-you/\n */\n [CountryCode.Nl]: {\n validation: /^(NL)?[0-9]{9}B[0-9]{2}$/i,\n isOptional: false,\n },\n /**\n * Poland - 1 block of 10 digits\n */\n [CountryCode.Pl]: {\n validation: /^(PL)?[0-9]{10}$/i,\n isOptional: false,\n },\n /**\n * Portugal - 1 block of 9 digits\n */\n [CountryCode.Pt]: {\n validation: /^(PT)?[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Romania - 1 block of minimum 2 digits and maximum 10 digits\n *\n * Note: Wasn't able to find an official Romanian doc that validates this pattern as internet had mixed info about it,\n * but sticking with EU VIES recommended 2-10 digits\n */\n [CountryCode.Ro]: {\n validation: /^(RO)?[0-9]{2,10}$/i,\n isOptional: false,\n },\n /**\n * Sweden - 1 block of 12 digits\n */\n [CountryCode.Se]: {\n validation: /^(SE)?[0-9]{12}$/i,\n isOptional: false,\n },\n /**\n * Slovenia - 1 block of 8 digits\n */\n [CountryCode.Si]: {\n validation: /^(SI)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Slovakia - 1 block of 10 digits\n */\n [CountryCode.Sk]: {\n validation: /^(SK)?[0-9]{10}$/i,\n isOptional: false,\n },\n /**\n * Northern Ireland - 1 block of 3 digits, 1 block of 4 digits and 1 block of 2 digits; or the above followed by a block of 3 digits; or 1 block of 5 characters\n */\n [UserAssignedCountryCode.Xi]: {\n validation: /^(XI)?([0-9]{9}([0-9]{3})?|[A-Z]{2}[0-9]{3})$/i,\n isOptional: false,\n },\n // #############################################################################\n // Eurozone\n // #############################################################################\n /**\n * United Kingdom except (Northern Ireland a.k.a Xi)\n * @see https://www.gov.uk/register-for-vat/selling-or-moving-goods-between-northern-ireland-and-the-eu\n */\n [CountryCode.Gb]: {\n validation: /^(GB)?([0-9]{9}([0-9]{3})?|[A-Z]{2}[0-9]{3})$/i,\n isOptional: false,\n },\n /**\n * Norway - \"NO\" optional prefix, 9 digits, \"MVA\" optional suffix\n * @see https://www.avalara.com/vatlive/en/eu-vat-rules/eu-vat-number-registration/eu-vat-number-formats.html\n * @see https://vatstack.com/articles/norway-vat-number-validation\n * @see https://en.wikipedia.org/wiki/VAT_identification_number#:~:text=e.g.%20MK4032013544513-,Norway,-Organisasjonsnummer%0AOrganization%20number\n */\n [CountryCode.No]: {\n validation: /^(NO)?[0-9]{9}(MVA)?$/i,\n isOptional: false,\n },\n // TODO: should we add Switzerland? see https://www.avalara.com/vatlive/en/eu-vat-rules/eu-vat-number-registration/eu-vat-number-formats.html\n // Switzerland\n // [CountryCode.Ch]: ...\n // #############################################################################\n // Other (one-of's)\n // #############################################################################\n /**\n * United Arab Emirates - 1 block of 15 digits\n *\n * Note: no source for this found, using format based on UI AE TRN\n * Note: AE TRN does not use a country prefix\n */\n [CountryCode.Ae]: {\n validation: /^[0-9]{15}$/i,\n isOptional: false,\n },\n /**\n * South Africa - as per links below, should accept input that starts with 4 and following 9 digits.\n * @see https://secure.sarsefiling.co.za/vatvendorsearch.aspx\n * @see https://secure.sarsefiling.co.za/VATVendorSearch/application/help.html\n */\n [CountryCode.Za]: {\n validation: /^4[0-9]{9}$/i,\n isOptional: false,\n },\n\n [CountryCode.Br]: {\n validation: isCnpjValid,\n isOptional: false,\n },\n\n [CountryCode.In]: {\n validation: /^[0-9A-Z]{15}$/,\n isOptional: false,\n },\n\n [CountryCode.Tw]: {\n validation: /^[0-9A-Z]{8}$/,\n isOptional: false,\n },\n\n /**\n * @see https://www.fonoa.com/blog/new-mandatory-rfc-validation-method-in-mexico\n * A businesses RFC consists of 12 characters with the following structure: xxxyyyyyyzzz\n * (x = letters (including Ñ and &), y = numbers, z = alphanumeric)\n */\n [CountryCode.Mx]: {\n validation: /^[A-ZÑ&]{3}\\d{6}[A-Z0-9]{3}$/i,\n isOptional: false,\n },\n} as const;\n// FIXME: once we upgrade to Next 13 which supports typescript satisfies we can use this to make th pattern stricter\n// FIXME: \"isOptional: false\" could be safely removed once we use the \"satisfies\" as we only care about cases when \"isOptional: true\". It was added just to make TS happy.\n// } satisfies CountryTaxValidationMapping;\n\nexport const RESIDENTIAL_COUNTRY_CODE_MAPPING = {\n // #############################################################################\n // Other (one-of's)\n // #############################################################################\n [CountryCode.Br]: {\n validation: isCpfValid,\n isOptional: false,\n },\n\n [CountryCode.In]: {\n validation: /^[0-9A-Z]{15}$/,\n isOptional: true,\n },\n} as const;\n// FIXME: once we upgrade to Next 13 which supports typescript satisfies we can use this to make th pattern stricter\n// FIXME: \"isOptional: false\" could be safely removed once we use the \"satisfies\" as we only care about cases when \"isOptional: true\". It was added just to make TS happy.\n// } satisfies CountryTaxValidationMapping;\n\n/**\n * Set of type-safe rules that we use in `getUserAssignedCountryCode` to determine UserAssignedCountryCode\n */\nexport const USER_ASSIGNED_COUNTRY_MAPPING_RULES = {\n [UserAssignedCountryCode.Xi]: [\n [CountryCode.Gb, \"NIR\"], // Northern Ireland\n ],\n [UserAssignedCountryCode.El]: [\n [CountryCode.Gr], // Greece\n ],\n [UserAssignedCountryCode.Fr]: [\n [CountryCode.Fr], // France\n [CountryCode.Mc], // Monaco\n ],\n // FIXME: once we upgrade to Next 13 which supports typescript satisfies we can use this to make th pattern stricter\n} as {\n [key in UserAssignedCountryCode]: [\n countryCode: CountryCode,\n province?: string,\n ][];\n};\n\n/**\n * List of found alternative province names that results\n * from Google Places API. This is used to map the alternative\n * province name to the correct province code for auto-fill.\n */\nexport const ALTERNATIVE_PROVINCE_NAMES: {\n [key in CountryCode]?: Record<string, string>;\n} = {\n // United Arab Emirates\n [CountryCode.Ae]: {\n \"Ras al Khaimah\": \"RK\",\n \"Umm Al Quawain\": \"UQ\",\n },\n // Ireland\n [CountryCode.Ie]: {\n \"County Kildare\": \"KE\",\n \"County Kilkenny\": \"KK\",\n },\n};\n"],"names":["CA_POSTAL_CODE_REGEX","ZA_POSTAL_CODE_REGEX","CA_POSTAL_CODE_PROVINCE_FIRST_CHARACTER","A","B","C","E","G","H","J","K","L","M","N","P","R","S","T","V","X","Y","BUSINESS_COUNTRY_CODE_MAPPING","CountryCode","At","validation","isOptional","Be","Bg","Cy","Cz","De","Dk","Ee","UserAssignedCountryCode","El","Es","Fi","Fr","Hr","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MAAA,CAAAA,UAAA;IACZvC,UAAY,EAAA;EACd,CAAA;EAEA,CAACH,SAAAA,CAAAA,WAAY,CAAAsC,EAAE,GAAG;IAChBpC,UAAY,EAAA,gBAAA;IACZC,UAAY,EAAA;EACd;AACF,CAAA;AAQO,MAAMwC,mCAAsC,GAAA;EACjD,CAAChC,SAAAA,CAAAA,uBAAwB,CAAAoB,EAAE,GAAG,CAC5B,CAAC/B,SAAY,CAAAA,WAAA,CAAAgC,EAAA,EAAI,KAAK;EAAA;EAAA,CACxB;EACA,CAACrB,SAAAA,CAAAA,uBAAwB,CAAAC,EAAE,GAAG,CAC5B,CAACZ,SAAAA,CAAAA,YAAY4C,EAAE;EAAA;EAAA,CACjB;EACA,CAACjC,SAAAA,CAAAA,uBAAwB,CAAAI,EAAE,GAAG,CAC5B,CAACf,SAAAA,CAAAA,YAAYe,EAAE,CAAA;EAAA;EACf,CAACf,SAAAA,CAAAA,YAAY6C,EAAE;EAAA;EAAA;EACjB;AAEF,CAAA;AAYO,MAAMC,0BAET,GAAA;EAAA;EAEF,CAAC9C,SAAAA,CAAAA,WAAY,CAAAkC,EAAE,GAAG;IAChB,gBAAkB,EAAA,IAAA;IAClB,gBAAkB,EAAA;EACpB,CAAA;EAAA;EAEA,CAAClC,SAAAA,CAAAA,WAAY,CAAAkB,EAAE,GAAG;IAChB,gBAAkB,EAAA,IAAA;IAClB,iBAAmB,EAAA;EACrB;AACF,CAAA;;;;;;;"}
@@ -339,11 +339,11 @@ const BUSINESS_COUNTRY_CODE_MAPPING = {
339
339
  },
340
340
  /**
341
341
  * @see https://www.fonoa.com/blog/new-mandatory-rfc-validation-method-in-mexico
342
- * A businesses RFC consists of 12 digits with the following structure: xxxyyyyyyzzz
343
- * (x = letters, y = numbers, z = alphanumeric)
342
+ * A businesses RFC consists of 12 characters with the following structure: xxxyyyyyyzzz
343
+ * (x = letters (including Ñ and &), y = numbers, z = alphanumeric)
344
344
  */
345
345
  [CountryCode.Mx]: {
346
- validation: /^[A-Z]{3}[0-9]{6}[0-9A-Z]{3}$/i,
346
+ validation: /^[A-ZÑ&]{3}\d{6}[A-Z0-9]{3}$/i,
347
347
  isOptional: false
348
348
  }
349
349
  };
@@ -1 +1 @@
1
- {"version":3,"file":"address.mjs","sources":["../../src/constants/address.ts"],"sourcesContent":["import { CountryCode, UserAssignedCountryCode } from \"../types\";\nimport { isCnpjValid, isCpfValid } from \"../utils/tax/brazil\";\n\n/**\n * Canada post code validation, we changed the regex from the url taken on by forcing a space in the middle (it's\n * optional there)\n * @see https://www.oreilly.com/library/view/regular-expressions-cookbook/9781449327453/ch04s15.html#:~:text=Aside%20from%20those%20two%20exceptions,for%20Canada%20Post's%20Ottawa%20headquarters.\n *\n * @deprecated with version 5.38.0 Use COUNTRY_CODE_POSTAL_CODE_REGEX\n */\nexport const CA_POSTAL_CODE_REGEX =\n /^(?!.*[DFIOQU])[A-VXY][0-9][A-Z] [0-9][A-Z][0-9]$/;\n\n/**\n * South Africa uses a simple 4-digit ZIP code pattern.\n * Unfortunately there doesn't seem have be pattern that some specific digits present a specific state/city that is\n * easily regex'able\n *\n * @deprecated with version 5.38.0 Use COUNTRY_CODE_POSTAL_CODE_REGEX\n */\nexport const ZA_POSTAL_CODE_REGEX = /^[0-9]{4}$/;\n\n/**\n * Mapping for postal code first letter to state province code.\n * Used for stricter postal code validation so zip code matches right state\n * Data taken from https://www12.statcan.gc.ca/census-recensement/2021/ref/dict/tab/index-eng.cfm?ID=t1_9\n * Related task: https://ubiquiti.atlassian.net/browse/NEP-1184?focusedCommentId=292248\n *\n * @deprecated use from packages/store.core/src/constants/postalCode.ts\n */\nexport const CA_POSTAL_CODE_PROVINCE_FIRST_CHARACTER = {\n A: [\"NL\"], // Newfoundland and Labrador\n B: [\"NS\"], // Nova Scotia\n C: [\"PE\"], // Prince Edward Island\n E: [\"NB\"], // New Brunswick\n G: [\"QC\"], // Eastern Quebec\n H: [\"QC\"], // Metropolitan Montréal\n J: [\"QC\"], // Western Quebec\n K: [\"ON\"], // Eastern Ontario\n L: [\"ON\"], // Central Ontario\n M: [\"ON\"], // Metropolitan Toronto\n N: [\"ON\"], // Southwestern Ontario\n P: [\"ON\"], // Northern Ontario\n R: [\"MB\"], // Manitoba\n S: [\"SK\"], // Saskatchewan\n T: [\"AB\"], // Alberta\n V: [\"BC\"], // British Columbia\n X: [\"NU\", \"NT\"], // Northwest Territories and Nunavut\n Y: [\"YT\"], // Yukon\n};\n\n/**\n * Static regex patterns to validate TAX number possibility\n * ! It does not guarantee that it's a registered TAX nubmer in the country it belongs in !\n */\nexport const BUSINESS_COUNTRY_CODE_MAPPING = {\n // #############################################################################\n // Europe VIES country patterns\n //\n // Links:\n // - Main source for pattens (see Question #11) - https://ec.europa.eu/taxation_customs/vies/#/faq\n // - Alternative source for patterns -\n // https://www.avalara.com/vatlive/en/eu-vat-rules/eu-vat-number-registration/eu-vat-number-formats.html\n // - General info about VAT numbers - https://en.wikipedia.org/wiki/VAT_identification_number\n //\n // HACK: For user convenience:\n // - Make the vat number country prefix optional (\"DE\" in \"DE999999999\") as we will normalise it inside of the VIES\n // service!\n // - Match result case-insensitive, we can easily uppercase it in the service\n // #############################################################################\n /**\n * Austria - 1 block of 9 characters and The 1st position following the prefix is always \"U\"\n */\n [CountryCode.At]: {\n validation: /^(AT)?U[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Belgium - 1 block of 10 digits - First digit after prefix is either 0 or 1\n */\n [CountryCode.Be]: {\n validation: /^(BE)?[0,1]{1}[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Bulgaria - 1 block of 9 digits or 1 block of 10 digits\n */\n [CountryCode.Bg]: {\n validation: /^(BG)?[0-9]{9,10}$/i,\n isOptional: false,\n },\n /**\n * Cyprus - 1 block of 8 digits and trailing letter\n */\n [CountryCode.Cy]: {\n validation: /^(CY)?[0-9]{8}[A-Z]$/i,\n isOptional: false,\n },\n /**\n * Czech Republic - 1 block of either 8, 9 or 10 digits\n */\n [CountryCode.Cz]: {\n validation: /^(CZ)?[0-9]{8,10}$/i,\n isOptional: false,\n },\n /**\n * Germany - 9 digits\n */\n [CountryCode.De]: {\n validation: /^(DE)?[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Denmark - 8 digits\n */\n [CountryCode.Dk]: {\n validation: /^(DK)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Estonia - 9 digits\n */\n [CountryCode.Ee]: {\n validation: /^(EE)?[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Greece - 9 digits\n * Note: We are using \"EL\" instead of its country code \"GR\" for prefix as per European Commission requirements, this\n * only affects how we validate it against VIES\n * @see https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Imperfect_implementations\n */\n [UserAssignedCountryCode.El]: {\n validation: /^(EL)?[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Spain - 9 characters Includes 1 or 2 alphabetical characters (first or last or first and last)\n * Note: We can reduce the pattern 2 regex or-pattern where:\n * 1. Handles scenario with leading letter and optional trailing letter\n * 2. Handles scenario with just trailing letter\n */\n [CountryCode.Es]: {\n validation: /^(ES)?(([A-Z][0-9]{7}[0-9A-Z])|([0-9]{8}[A-Z]))$/i,\n isOptional: false,\n },\n /**\n * Finland - 1 block of 8 digits\n */\n [CountryCode.Fi]: {\n validation: /^(FI)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * France & Monaco - 11 characters May include alphabetical characters (any except O or I) as first or second or first and\n * second characters\n *\n * TODO: Maybe add stricter validation for the invalid \"O\" and \"I\" characters (need to find a source that validates it)\n *\n * Fun-fact: France has actual math behind how they calculate the first 2 digits as they are a validation key, but we\n * don't require such a strict pattern as we would just end up doing actual checking up against Europe VIES\n * @see https://stackoverflow.com/a/33627030\n * @see https://en.wikipedia.org/wiki/VAT_identification_number\n */\n [UserAssignedCountryCode.Fr]: {\n validation: /^(FR)?[0-9A-Z]{2}[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Croatia - 1 block of 11 digits\n */\n [CountryCode.Hr]: {\n validation: /^(HR)?[0-9]{11}$/i,\n isOptional: false,\n },\n /**\n * Hungary - 1 block of 8 digits\n */\n [CountryCode.Hu]: {\n validation: /^(HU)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Ireland - 8 or 9 characters. Includes one or two alphabetical characters (last, or second and last, or last 2)\n *\n * It kinda has 3 styles:\n * - IE9S99999L (legacy, afaik WIKI told it's being phased out)\n * - IE9999999L\n * - IE9999999WI\n * @see https://en.wikipedia.org/wiki/VAT_identification_number\n */\n [CountryCode.Ie]: {\n validation: /^(IE)?[0-9][0-9A-Z][0-9]{5}[A-Z]{1,2}$/i,\n isOptional: false,\n },\n /**\n * Italy - 1 block of 11 digits\n */\n [CountryCode.It]: {\n validation: /^(IT)?[0-9]{11}$/i,\n isOptional: false,\n },\n /**\n * Lithuania - 1 block of 9 digits, or 1 block of 12 digits\n */\n [CountryCode.Lt]: {\n validation: /^(LT)?([0-9]{9}|[0-9]{12})$/i,\n isOptional: false,\n },\n /**\n * Luxembourg - 1 block of 8 digits\n */\n [CountryCode.Lu]: {\n validation: /^(LU)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Latvia - 1 block of 11 digits\n */\n [CountryCode.Lv]: {\n validation: /^(LV)?[0-9]{11}$/i,\n isOptional: false,\n },\n /**\n * Malta - 1 block of 8 digits\n */\n [CountryCode.Mt]: {\n validation: /^(MT)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Netherlands - 9 digits, the letter \"B\" and 2 \"check\" digits\n * @see https://business.gov.nl/regulation/using-checking-vat-numbers/\n *\n * Fun-fact: Avatax VAT reference link has a mistake of using \"BO2\" instead of \"B02\" for VAT group companies e.g https://eriks.com/en/contact/thank-you/\n */\n [CountryCode.Nl]: {\n validation: /^(NL)?[0-9]{9}B[0-9]{2}$/i,\n isOptional: false,\n },\n /**\n * Poland - 1 block of 10 digits\n */\n [CountryCode.Pl]: {\n validation: /^(PL)?[0-9]{10}$/i,\n isOptional: false,\n },\n /**\n * Portugal - 1 block of 9 digits\n */\n [CountryCode.Pt]: {\n validation: /^(PT)?[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Romania - 1 block of minimum 2 digits and maximum 10 digits\n *\n * Note: Wasn't able to find an official Romanian doc that validates this pattern as internet had mixed info about it,\n * but sticking with EU VIES recommended 2-10 digits\n */\n [CountryCode.Ro]: {\n validation: /^(RO)?[0-9]{2,10}$/i,\n isOptional: false,\n },\n /**\n * Sweden - 1 block of 12 digits\n */\n [CountryCode.Se]: {\n validation: /^(SE)?[0-9]{12}$/i,\n isOptional: false,\n },\n /**\n * Slovenia - 1 block of 8 digits\n */\n [CountryCode.Si]: {\n validation: /^(SI)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Slovakia - 1 block of 10 digits\n */\n [CountryCode.Sk]: {\n validation: /^(SK)?[0-9]{10}$/i,\n isOptional: false,\n },\n /**\n * Northern Ireland - 1 block of 3 digits, 1 block of 4 digits and 1 block of 2 digits; or the above followed by a block of 3 digits; or 1 block of 5 characters\n */\n [UserAssignedCountryCode.Xi]: {\n validation: /^(XI)?([0-9]{9}([0-9]{3})?|[A-Z]{2}[0-9]{3})$/i,\n isOptional: false,\n },\n // #############################################################################\n // Eurozone\n // #############################################################################\n /**\n * United Kingdom except (Northern Ireland a.k.a Xi)\n * @see https://www.gov.uk/register-for-vat/selling-or-moving-goods-between-northern-ireland-and-the-eu\n */\n [CountryCode.Gb]: {\n validation: /^(GB)?([0-9]{9}([0-9]{3})?|[A-Z]{2}[0-9]{3})$/i,\n isOptional: false,\n },\n /**\n * Norway - \"NO\" optional prefix, 9 digits, \"MVA\" optional suffix\n * @see https://www.avalara.com/vatlive/en/eu-vat-rules/eu-vat-number-registration/eu-vat-number-formats.html\n * @see https://vatstack.com/articles/norway-vat-number-validation\n * @see https://en.wikipedia.org/wiki/VAT_identification_number#:~:text=e.g.%20MK4032013544513-,Norway,-Organisasjonsnummer%0AOrganization%20number\n */\n [CountryCode.No]: {\n validation: /^(NO)?[0-9]{9}(MVA)?$/i,\n isOptional: false,\n },\n // TODO: should we add Switzerland? see https://www.avalara.com/vatlive/en/eu-vat-rules/eu-vat-number-registration/eu-vat-number-formats.html\n // Switzerland\n // [CountryCode.Ch]: ...\n // #############################################################################\n // Other (one-of's)\n // #############################################################################\n /**\n * United Arab Emirates - 1 block of 15 digits\n *\n * Note: no source for this found, using format based on UI AE TRN\n * Note: AE TRN does not use a country prefix\n */\n [CountryCode.Ae]: {\n validation: /^[0-9]{15}$/i,\n isOptional: false,\n },\n /**\n * South Africa - as per links below, should accept input that starts with 4 and following 9 digits.\n * @see https://secure.sarsefiling.co.za/vatvendorsearch.aspx\n * @see https://secure.sarsefiling.co.za/VATVendorSearch/application/help.html\n */\n [CountryCode.Za]: {\n validation: /^4[0-9]{9}$/i,\n isOptional: false,\n },\n\n [CountryCode.Br]: {\n validation: isCnpjValid,\n isOptional: false,\n },\n\n [CountryCode.In]: {\n validation: /^[0-9A-Z]{15}$/,\n isOptional: false,\n },\n\n [CountryCode.Tw]: {\n validation: /^[0-9A-Z]{8}$/,\n isOptional: false,\n },\n\n /**\n * @see https://www.fonoa.com/blog/new-mandatory-rfc-validation-method-in-mexico\n * A businesses RFC consists of 12 digits with the following structure: xxxyyyyyyzzz\n * (x = letters, y = numbers, z = alphanumeric)\n */\n [CountryCode.Mx]: {\n validation: /^[A-Z]{3}[0-9]{6}[0-9A-Z]{3}$/i,\n isOptional: false,\n },\n} as const;\n// FIXME: once we upgrade to Next 13 which supports typescript satisfies we can use this to make th pattern stricter\n// FIXME: \"isOptional: false\" could be safely removed once we use the \"satisfies\" as we only care about cases when \"isOptional: true\". It was added just to make TS happy.\n// } satisfies CountryTaxValidationMapping;\n\nexport const RESIDENTIAL_COUNTRY_CODE_MAPPING = {\n // #############################################################################\n // Other (one-of's)\n // #############################################################################\n [CountryCode.Br]: {\n validation: isCpfValid,\n isOptional: false,\n },\n\n [CountryCode.In]: {\n validation: /^[0-9A-Z]{15}$/,\n isOptional: true,\n },\n} as const;\n// FIXME: once we upgrade to Next 13 which supports typescript satisfies we can use this to make th pattern stricter\n// FIXME: \"isOptional: false\" could be safely removed once we use the \"satisfies\" as we only care about cases when \"isOptional: true\". It was added just to make TS happy.\n// } satisfies CountryTaxValidationMapping;\n\n/**\n * Set of type-safe rules that we use in `getUserAssignedCountryCode` to determine UserAssignedCountryCode\n */\nexport const USER_ASSIGNED_COUNTRY_MAPPING_RULES = {\n [UserAssignedCountryCode.Xi]: [\n [CountryCode.Gb, \"NIR\"], // Northern Ireland\n ],\n [UserAssignedCountryCode.El]: [\n [CountryCode.Gr], // Greece\n ],\n [UserAssignedCountryCode.Fr]: [\n [CountryCode.Fr], // France\n [CountryCode.Mc], // Monaco\n ],\n // FIXME: once we upgrade to Next 13 which supports typescript satisfies we can use this to make th pattern stricter\n} as {\n [key in UserAssignedCountryCode]: [\n countryCode: CountryCode,\n province?: string,\n ][];\n};\n\n/**\n * List of found alternative province names that results\n * from Google Places API. This is used to map the alternative\n * province name to the correct province code for auto-fill.\n */\nexport const ALTERNATIVE_PROVINCE_NAMES: {\n [key in CountryCode]?: Record<string, string>;\n} = {\n // United Arab Emirates\n [CountryCode.Ae]: {\n \"Ras al Khaimah\": \"RK\",\n \"Umm Al Quawain\": \"UQ\",\n },\n // Ireland\n [CountryCode.Ie]: {\n \"County Kildare\": \"KE\",\n \"County Kilkenny\": \"KK\",\n },\n};\n"],"names":["CA_POSTAL_CODE_REGEX","ZA_POSTAL_CODE_REGEX","CA_POSTAL_CODE_PROVINCE_FIRST_CHARACTER","A","B","C","E","G","H","J","K","L","M","N","P","R","S","T","V","X","Y","BUSINESS_COUNTRY_CODE_MAPPING","CountryCode","At","validation","isOptional","Be","Bg","Cy","Cz","De","Dk","Ee","UserAssignedCountryCode","El","Es","Fi","Fr","Hr","Hu","Ie","It","Lt","Lu","Lv","Mt","Nl","Pl","Pt","Ro","Se","Si","Sk","Xi","Gb","No","Ae","Za","Br","isCnpjValid","In","Tw","Mx","R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EAAE,GAAG;IAChB,gBAAkB,EAAA,IAAA;IAClB,iBAAmB,EAAA;EACrB;AACF,CAAA;"}
1
+ {"version":3,"file":"address.mjs","sources":["../../src/constants/address.ts"],"sourcesContent":["import { CountryCode, UserAssignedCountryCode } from \"../types\";\nimport { isCnpjValid, isCpfValid } from \"../utils/tax/brazil\";\n\n/**\n * Canada post code validation, we changed the regex from the url taken on by forcing a space in the middle (it's\n * optional there)\n * @see https://www.oreilly.com/library/view/regular-expressions-cookbook/9781449327453/ch04s15.html#:~:text=Aside%20from%20those%20two%20exceptions,for%20Canada%20Post's%20Ottawa%20headquarters.\n *\n * @deprecated with version 5.38.0 Use COUNTRY_CODE_POSTAL_CODE_REGEX\n */\nexport const CA_POSTAL_CODE_REGEX =\n /^(?!.*[DFIOQU])[A-VXY][0-9][A-Z] [0-9][A-Z][0-9]$/;\n\n/**\n * South Africa uses a simple 4-digit ZIP code pattern.\n * Unfortunately there doesn't seem have be pattern that some specific digits present a specific state/city that is\n * easily regex'able\n *\n * @deprecated with version 5.38.0 Use COUNTRY_CODE_POSTAL_CODE_REGEX\n */\nexport const ZA_POSTAL_CODE_REGEX = /^[0-9]{4}$/;\n\n/**\n * Mapping for postal code first letter to state province code.\n * Used for stricter postal code validation so zip code matches right state\n * Data taken from https://www12.statcan.gc.ca/census-recensement/2021/ref/dict/tab/index-eng.cfm?ID=t1_9\n * Related task: https://ubiquiti.atlassian.net/browse/NEP-1184?focusedCommentId=292248\n *\n * @deprecated use from packages/store.core/src/constants/postalCode.ts\n */\nexport const CA_POSTAL_CODE_PROVINCE_FIRST_CHARACTER = {\n A: [\"NL\"], // Newfoundland and Labrador\n B: [\"NS\"], // Nova Scotia\n C: [\"PE\"], // Prince Edward Island\n E: [\"NB\"], // New Brunswick\n G: [\"QC\"], // Eastern Quebec\n H: [\"QC\"], // Metropolitan Montréal\n J: [\"QC\"], // Western Quebec\n K: [\"ON\"], // Eastern Ontario\n L: [\"ON\"], // Central Ontario\n M: [\"ON\"], // Metropolitan Toronto\n N: [\"ON\"], // Southwestern Ontario\n P: [\"ON\"], // Northern Ontario\n R: [\"MB\"], // Manitoba\n S: [\"SK\"], // Saskatchewan\n T: [\"AB\"], // Alberta\n V: [\"BC\"], // British Columbia\n X: [\"NU\", \"NT\"], // Northwest Territories and Nunavut\n Y: [\"YT\"], // Yukon\n};\n\n/**\n * Static regex patterns to validate TAX number possibility\n * ! It does not guarantee that it's a registered TAX nubmer in the country it belongs in !\n */\nexport const BUSINESS_COUNTRY_CODE_MAPPING = {\n // #############################################################################\n // Europe VIES country patterns\n //\n // Links:\n // - Main source for pattens (see Question #11) - https://ec.europa.eu/taxation_customs/vies/#/faq\n // - Alternative source for patterns -\n // https://www.avalara.com/vatlive/en/eu-vat-rules/eu-vat-number-registration/eu-vat-number-formats.html\n // - General info about VAT numbers - https://en.wikipedia.org/wiki/VAT_identification_number\n //\n // HACK: For user convenience:\n // - Make the vat number country prefix optional (\"DE\" in \"DE999999999\") as we will normalise it inside of the VIES\n // service!\n // - Match result case-insensitive, we can easily uppercase it in the service\n // #############################################################################\n /**\n * Austria - 1 block of 9 characters and The 1st position following the prefix is always \"U\"\n */\n [CountryCode.At]: {\n validation: /^(AT)?U[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Belgium - 1 block of 10 digits - First digit after prefix is either 0 or 1\n */\n [CountryCode.Be]: {\n validation: /^(BE)?[0,1]{1}[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Bulgaria - 1 block of 9 digits or 1 block of 10 digits\n */\n [CountryCode.Bg]: {\n validation: /^(BG)?[0-9]{9,10}$/i,\n isOptional: false,\n },\n /**\n * Cyprus - 1 block of 8 digits and trailing letter\n */\n [CountryCode.Cy]: {\n validation: /^(CY)?[0-9]{8}[A-Z]$/i,\n isOptional: false,\n },\n /**\n * Czech Republic - 1 block of either 8, 9 or 10 digits\n */\n [CountryCode.Cz]: {\n validation: /^(CZ)?[0-9]{8,10}$/i,\n isOptional: false,\n },\n /**\n * Germany - 9 digits\n */\n [CountryCode.De]: {\n validation: /^(DE)?[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Denmark - 8 digits\n */\n [CountryCode.Dk]: {\n validation: /^(DK)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Estonia - 9 digits\n */\n [CountryCode.Ee]: {\n validation: /^(EE)?[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Greece - 9 digits\n * Note: We are using \"EL\" instead of its country code \"GR\" for prefix as per European Commission requirements, this\n * only affects how we validate it against VIES\n * @see https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Imperfect_implementations\n */\n [UserAssignedCountryCode.El]: {\n validation: /^(EL)?[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Spain - 9 characters Includes 1 or 2 alphabetical characters (first or last or first and last)\n * Note: We can reduce the pattern 2 regex or-pattern where:\n * 1. Handles scenario with leading letter and optional trailing letter\n * 2. Handles scenario with just trailing letter\n */\n [CountryCode.Es]: {\n validation: /^(ES)?(([A-Z][0-9]{7}[0-9A-Z])|([0-9]{8}[A-Z]))$/i,\n isOptional: false,\n },\n /**\n * Finland - 1 block of 8 digits\n */\n [CountryCode.Fi]: {\n validation: /^(FI)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * France & Monaco - 11 characters May include alphabetical characters (any except O or I) as first or second or first and\n * second characters\n *\n * TODO: Maybe add stricter validation for the invalid \"O\" and \"I\" characters (need to find a source that validates it)\n *\n * Fun-fact: France has actual math behind how they calculate the first 2 digits as they are a validation key, but we\n * don't require such a strict pattern as we would just end up doing actual checking up against Europe VIES\n * @see https://stackoverflow.com/a/33627030\n * @see https://en.wikipedia.org/wiki/VAT_identification_number\n */\n [UserAssignedCountryCode.Fr]: {\n validation: /^(FR)?[0-9A-Z]{2}[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Croatia - 1 block of 11 digits\n */\n [CountryCode.Hr]: {\n validation: /^(HR)?[0-9]{11}$/i,\n isOptional: false,\n },\n /**\n * Hungary - 1 block of 8 digits\n */\n [CountryCode.Hu]: {\n validation: /^(HU)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Ireland - 8 or 9 characters. Includes one or two alphabetical characters (last, or second and last, or last 2)\n *\n * It kinda has 3 styles:\n * - IE9S99999L (legacy, afaik WIKI told it's being phased out)\n * - IE9999999L\n * - IE9999999WI\n * @see https://en.wikipedia.org/wiki/VAT_identification_number\n */\n [CountryCode.Ie]: {\n validation: /^(IE)?[0-9][0-9A-Z][0-9]{5}[A-Z]{1,2}$/i,\n isOptional: false,\n },\n /**\n * Italy - 1 block of 11 digits\n */\n [CountryCode.It]: {\n validation: /^(IT)?[0-9]{11}$/i,\n isOptional: false,\n },\n /**\n * Lithuania - 1 block of 9 digits, or 1 block of 12 digits\n */\n [CountryCode.Lt]: {\n validation: /^(LT)?([0-9]{9}|[0-9]{12})$/i,\n isOptional: false,\n },\n /**\n * Luxembourg - 1 block of 8 digits\n */\n [CountryCode.Lu]: {\n validation: /^(LU)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Latvia - 1 block of 11 digits\n */\n [CountryCode.Lv]: {\n validation: /^(LV)?[0-9]{11}$/i,\n isOptional: false,\n },\n /**\n * Malta - 1 block of 8 digits\n */\n [CountryCode.Mt]: {\n validation: /^(MT)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Netherlands - 9 digits, the letter \"B\" and 2 \"check\" digits\n * @see https://business.gov.nl/regulation/using-checking-vat-numbers/\n *\n * Fun-fact: Avatax VAT reference link has a mistake of using \"BO2\" instead of \"B02\" for VAT group companies e.g https://eriks.com/en/contact/thank-you/\n */\n [CountryCode.Nl]: {\n validation: /^(NL)?[0-9]{9}B[0-9]{2}$/i,\n isOptional: false,\n },\n /**\n * Poland - 1 block of 10 digits\n */\n [CountryCode.Pl]: {\n validation: /^(PL)?[0-9]{10}$/i,\n isOptional: false,\n },\n /**\n * Portugal - 1 block of 9 digits\n */\n [CountryCode.Pt]: {\n validation: /^(PT)?[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Romania - 1 block of minimum 2 digits and maximum 10 digits\n *\n * Note: Wasn't able to find an official Romanian doc that validates this pattern as internet had mixed info about it,\n * but sticking with EU VIES recommended 2-10 digits\n */\n [CountryCode.Ro]: {\n validation: /^(RO)?[0-9]{2,10}$/i,\n isOptional: false,\n },\n /**\n * Sweden - 1 block of 12 digits\n */\n [CountryCode.Se]: {\n validation: /^(SE)?[0-9]{12}$/i,\n isOptional: false,\n },\n /**\n * Slovenia - 1 block of 8 digits\n */\n [CountryCode.Si]: {\n validation: /^(SI)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Slovakia - 1 block of 10 digits\n */\n [CountryCode.Sk]: {\n validation: /^(SK)?[0-9]{10}$/i,\n isOptional: false,\n },\n /**\n * Northern Ireland - 1 block of 3 digits, 1 block of 4 digits and 1 block of 2 digits; or the above followed by a block of 3 digits; or 1 block of 5 characters\n */\n [UserAssignedCountryCode.Xi]: {\n validation: /^(XI)?([0-9]{9}([0-9]{3})?|[A-Z]{2}[0-9]{3})$/i,\n isOptional: false,\n },\n // #############################################################################\n // Eurozone\n // #############################################################################\n /**\n * United Kingdom except (Northern Ireland a.k.a Xi)\n * @see https://www.gov.uk/register-for-vat/selling-or-moving-goods-between-northern-ireland-and-the-eu\n */\n [CountryCode.Gb]: {\n validation: /^(GB)?([0-9]{9}([0-9]{3})?|[A-Z]{2}[0-9]{3})$/i,\n isOptional: false,\n },\n /**\n * Norway - \"NO\" optional prefix, 9 digits, \"MVA\" optional suffix\n * @see https://www.avalara.com/vatlive/en/eu-vat-rules/eu-vat-number-registration/eu-vat-number-formats.html\n * @see https://vatstack.com/articles/norway-vat-number-validation\n * @see https://en.wikipedia.org/wiki/VAT_identification_number#:~:text=e.g.%20MK4032013544513-,Norway,-Organisasjonsnummer%0AOrganization%20number\n */\n [CountryCode.No]: {\n validation: /^(NO)?[0-9]{9}(MVA)?$/i,\n isOptional: false,\n },\n // TODO: should we add Switzerland? see https://www.avalara.com/vatlive/en/eu-vat-rules/eu-vat-number-registration/eu-vat-number-formats.html\n // Switzerland\n // [CountryCode.Ch]: ...\n // #############################################################################\n // Other (one-of's)\n // #############################################################################\n /**\n * United Arab Emirates - 1 block of 15 digits\n *\n * Note: no source for this found, using format based on UI AE TRN\n * Note: AE TRN does not use a country prefix\n */\n [CountryCode.Ae]: {\n validation: /^[0-9]{15}$/i,\n isOptional: false,\n },\n /**\n * South Africa - as per links below, should accept input that starts with 4 and following 9 digits.\n * @see https://secure.sarsefiling.co.za/vatvendorsearch.aspx\n * @see https://secure.sarsefiling.co.za/VATVendorSearch/application/help.html\n */\n [CountryCode.Za]: {\n validation: /^4[0-9]{9}$/i,\n isOptional: false,\n },\n\n [CountryCode.Br]: {\n validation: isCnpjValid,\n isOptional: false,\n },\n\n [CountryCode.In]: {\n validation: /^[0-9A-Z]{15}$/,\n isOptional: false,\n },\n\n [CountryCode.Tw]: {\n validation: /^[0-9A-Z]{8}$/,\n isOptional: false,\n },\n\n /**\n * @see https://www.fonoa.com/blog/new-mandatory-rfc-validation-method-in-mexico\n * A businesses RFC consists of 12 characters with the following structure: xxxyyyyyyzzz\n * (x = letters (including Ñ and &), y = numbers, z = alphanumeric)\n */\n [CountryCode.Mx]: {\n validation: /^[A-ZÑ&]{3}\\d{6}[A-Z0-9]{3}$/i,\n isOptional: false,\n },\n} as const;\n// FIXME: once we upgrade to Next 13 which supports typescript satisfies we can use this to make th pattern stricter\n// FIXME: \"isOptional: false\" could be safely removed once we use the \"satisfies\" as we only care about cases when \"isOptional: true\". It was added just to make TS happy.\n// } satisfies CountryTaxValidationMapping;\n\nexport const RESIDENTIAL_COUNTRY_CODE_MAPPING = {\n // #############################################################################\n // Other (one-of's)\n // #############################################################################\n [CountryCode.Br]: {\n validation: isCpfValid,\n isOptional: false,\n },\n\n [CountryCode.In]: {\n validation: /^[0-9A-Z]{15}$/,\n isOptional: true,\n },\n} as const;\n// FIXME: once we upgrade to Next 13 which supports typescript satisfies we can use this to make th pattern stricter\n// FIXME: \"isOptional: false\" could be safely removed once we use the \"satisfies\" as we only care about cases when \"isOptional: true\". It was added just to make TS happy.\n// } satisfies CountryTaxValidationMapping;\n\n/**\n * Set of type-safe rules that we use in `getUserAssignedCountryCode` to determine UserAssignedCountryCode\n */\nexport const USER_ASSIGNED_COUNTRY_MAPPING_RULES = {\n [UserAssignedCountryCode.Xi]: [\n [CountryCode.Gb, \"NIR\"], // Northern Ireland\n ],\n [UserAssignedCountryCode.El]: [\n [CountryCode.Gr], // Greece\n ],\n [UserAssignedCountryCode.Fr]: [\n [CountryCode.Fr], // France\n [CountryCode.Mc], // Monaco\n ],\n // FIXME: once we upgrade to Next 13 which supports typescript satisfies we can use this to make th pattern stricter\n} as {\n [key in UserAssignedCountryCode]: [\n countryCode: CountryCode,\n province?: string,\n ][];\n};\n\n/**\n * List of found alternative province names that results\n * from Google Places API. This is used to map the alternative\n * province name to the correct province code for auto-fill.\n */\nexport const ALTERNATIVE_PROVINCE_NAMES: {\n [key in CountryCode]?: Record<string, string>;\n} = {\n // United Arab Emirates\n [CountryCode.Ae]: {\n \"Ras al Khaimah\": \"RK\",\n \"Umm Al Quawain\": \"UQ\",\n },\n // Ireland\n [CountryCode.Ie]: {\n \"County Kildare\": \"KE\",\n \"County Kilkenny\": \"KK\",\n },\n};\n"],"names":["CA_POSTAL_CODE_REGEX","ZA_POSTAL_CODE_REGEX","CA_POSTAL_CODE_PROVINCE_FIRST_CHARACTER","A","B","C","E","G","H","J","K","L","M","N","P","R","S","T","V","X","Y","BUSINESS_COUNTRY_CODE_MAPPING","CountryCode","At","validation","isOptional","Be","Bg","Cy","Cz","De","Dk","Ee","UserAssignedCountryCode","El","Es","Fi","Fr","Hr","Hu","Ie","It","Lt","Lu","Lv","Mt","Nl","Pl","Pt","Ro","Se","Si","Sk","Xi","Gb","No","Ae","Za","Br","isCnpjValid","In","Tw","Mx","RESIDENTIAL_COUNTRY_CODE_MAPPING","isCpfValid","USER_AS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BAAmB,EAAA;EACrB;AACF,CAAA;"}
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var CloseIcon = require("../../../assets/close3.svg");
6
+ var CloseIcon = require("../../../assets/close.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -1,3 +1,3 @@
1
- export * from "../../../assets/close3.svg";
2
- export { default } from "../../../assets/close3.svg";
1
+ export * from "../../../assets/close.svg";
2
+ export { default } from "../../../assets/close.svg";
3
3
  //# sourceMappingURL=close.svg.mjs.map
@@ -14,7 +14,7 @@ require('./playback.svg.js');
14
14
  require('./filter.svg.js');
15
15
  var _externalAssets_BkygAzVy = require("../../../assets/arrowBack.svg");
16
16
  var carouselArrowRight = require("../../../assets/carouselArrowRight.svg");
17
- var CloseIcon = require("../../../assets/close3.svg");
17
+ var CloseIcon = require("../../../assets/close.svg");
18
18
  var _externalAssets_DtGmfNK5 = require("../../../assets/closeLarge.svg");
19
19
  var _externalAssets_BAXELvSy = require("../../../assets/collapseArrow.svg");
20
20
  var _externalAssets_CzDCu21b = require("../../../assets/hamburger.svg");
@@ -12,7 +12,7 @@ import './playback.svg.mjs';
12
12
  import './filter.svg.mjs';
13
13
  export { default as arrowBack } from "../../../assets/arrowBack.svg";
14
14
  export { default as carouselArrowRight } from "../../../assets/carouselArrowRight.svg";
15
- export { default as close } from "../../../assets/close3.svg";
15
+ export { default as close } from "../../../assets/close.svg";
16
16
  export { default as closeLarge } from "../../../assets/closeLarge.svg";
17
17
  export { default as collapseArrow } from "../../../assets/collapseArrow.svg";
18
18
  export { default as hamburger } from "../../../assets/hamburger.svg";
@@ -79,6 +79,10 @@ const getProStoreCategoryMapping = (translations = en["default"]) => {
79
79
  id: unifi.UnifiAddonCategoryIdAndSlug.CloudGateways,
80
80
  collectionSlug: "add-ons-unifi-gateway-consoles"
81
81
  },
82
+ techSpecFeatures: {
83
+ hasViewAll: false,
84
+ hasPerformanceGuide: true
85
+ },
82
86
  items: [{
83
87
  id: unifi.UniFiChildCategorySlug.CloudGatewaysEnterpriseScale,
84
88
  label: formatMessage("Enterprise Scale"),
@@ -113,6 +117,10 @@ const getProStoreCategoryMapping = (translations = en["default"]) => {
113
117
  id: unifi.UnifiAddonCategoryIdAndSlug.Switching,
114
118
  collectionSlug: "add-ons-switching"
115
119
  },
120
+ techSpecFeatures: {
121
+ hasViewAll: true,
122
+ hasPerformanceGuide: true
123
+ },
116
124
  items: [{
117
125
  id: unifi.UniFiChildCategorySlug.SwitchingAggregation,
118
126
  label: formatMessage("Aggregation"),
@@ -155,6 +163,10 @@ const getProStoreCategoryMapping = (translations = en["default"]) => {
155
163
  id: unifi.UnifiAddonCategoryIdAndSlug.WiFi,
156
164
  collectionSlug: "add-ons-wifi"
157
165
  },
166
+ techSpecFeatures: {
167
+ hasViewAll: false,
168
+ hasPerformanceGuide: true
169
+ },
158
170
  items: [{
159
171
  id: unifi.UniFiChildCategorySlug.WiFiFlagship,
160
172
  label: formatMessage("Flagship"),
@@ -198,6 +210,10 @@ const getProStoreCategoryMapping = (translations = en["default"]) => {
198
210
  id: unifi.UnifiAddonCategoryIdAndSlug.CamerasNVRs,
199
211
  collectionSlug: "add-ons-cameras-and-nvrs"
200
212
  },
213
+ techSpecFeatures: {
214
+ hasViewAll: false,
215
+ hasPerformanceGuide: true
216
+ },
201
217
  items: [{
202
218
  id: unifi.UniFiChildCategorySlug.CamerasNVR,
203
219
  label: formatMessage("NVRs & Viewport"),