@ubnt/store.core 9.31.0-dts-fix.3 → 9.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/CHANGELOG.md +0 -3
  2. package/lib/_virtual/_virtual_multi-entry.js +203 -0
  3. package/lib/_virtual/_virtual_multi-entry.js.map +1 -0
  4. package/lib/_virtual/_virtual_multi-entry.mjs +176 -0
  5. package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -0
  6. package/lib/apis/smartcat.test.d.ts +1 -0
  7. package/lib/assets/attention.svg +5 -5
  8. package/lib/assets/attention2.svg +5 -5
  9. package/lib/assets/close2.svg +3 -2
  10. package/lib/assets/close3.svg +2 -3
  11. package/lib/assets/minus4.svg +8 -8
  12. package/lib/assets/minus5.svg +8 -8
  13. package/lib/assets/pause.svg +3 -3
  14. package/lib/assets/pause2.svg +3 -3
  15. package/lib/assets/plus5.svg +9 -9
  16. package/lib/assets/plus6.svg +9 -9
  17. package/lib/components/AppDownloadBanner/AppDownloadBanner.d.ts +2 -0
  18. package/lib/components/AppDownloadBanner/AppDownloadBanner.styles.d.ts +21 -0
  19. package/lib/components/AppDownloadBanner/index.d.ts +1 -0
  20. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +2 -0
  21. package/lib/components/Breadcrumbs/Breadcrumbs.styles.d.ts +2 -0
  22. package/lib/components/Breadcrumbs/index.d.ts +1 -0
  23. package/lib/components/BuiltFeaturesSection/BuiltFeaturesSection.d.ts +2 -0
  24. package/lib/components/BuiltFeaturesSection/BuiltFeaturesSection.styles.d.ts +9 -0
  25. package/lib/components/BuiltFeaturesSection/index.d.ts +1 -0
  26. package/lib/components/CarouselGallery/CarouselGallery.d.ts +2 -0
  27. package/lib/components/CarouselGallery/CarouselGallery.styles.d.ts +17 -0
  28. package/lib/components/CarouselGallery/index.d.ts +1 -0
  29. package/lib/components/Compare/Compare.d.ts +2 -0
  30. package/lib/components/Compare/Compare.styles.d.ts +36 -0
  31. package/lib/components/Compare/CompareData.d.ts +22 -0
  32. package/lib/components/Compare/ProductTable.d.ts +6 -0
  33. package/lib/components/Compare/index.d.ts +2 -0
  34. package/lib/components/CompareChart/CompareChart.d.ts +2 -0
  35. package/lib/components/CompareChart/CompareChart.styles.d.ts +37 -0
  36. package/lib/components/CompareChart/CompareChartData.d.ts +69 -0
  37. package/lib/components/CompareChart/index.d.ts +2 -0
  38. package/lib/components/CompareSection/CompareSection.d.ts +5 -0
  39. package/lib/components/CompareSection/CompareSection.data.d.ts +10 -0
  40. package/lib/components/CompareSection/CompareSection.styles.d.ts +17 -0
  41. package/lib/components/CompareSection/index.d.ts +1 -0
  42. package/lib/components/DeploymentGallery/DeploymentGallery.d.ts +2 -0
  43. package/lib/components/DeploymentGallery/DeploymentGallery.styles.d.ts +4 -0
  44. package/lib/components/DeploymentGallery/index.d.ts +1 -0
  45. package/lib/components/Explore/Explore.test.d.ts +1 -0
  46. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +1 -1
  47. package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
  48. package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
  49. package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
  50. package/lib/components/Header/CartModal/CartModal.d.ts +2 -0
  51. package/lib/components/Header/CartModal/CartModal.styles.d.ts +14 -0
  52. package/lib/components/Header/CartModal/Item/Item.d.ts +7 -0
  53. package/lib/components/Header/CartModal/Item/Item.styles.d.ts +12 -0
  54. package/lib/components/Header/CartModal/Item/index.d.ts +1 -0
  55. package/lib/components/Header/CartModal/index.d.ts +1 -0
  56. package/lib/components/Header/LanguageFrame/utils/buildLanguageLink.test.d.ts +1 -0
  57. package/lib/components/Header/LinksModal/LinksModal.d.ts +2 -0
  58. package/lib/components/Header/LinksModal/LinksModal.styles.d.ts +6 -0
  59. package/lib/components/Header/LinksModal/index.d.ts +1 -0
  60. package/lib/components/Header/SearchTab/SearchTab.d.ts +2 -0
  61. package/lib/components/Header/SearchTab/SearchTab.styles.d.ts +4 -0
  62. package/lib/components/Header/SearchTab/index.d.ts +1 -0
  63. package/lib/components/HeroFadeGallery/HeroFadeGallery.d.ts +2 -0
  64. package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +12 -0
  65. package/lib/components/HeroFadeGallery/index.d.ts +1 -0
  66. package/lib/components/HowToUseSection/HowToUseSection.d.ts +2 -0
  67. package/lib/components/HowToUseSection/HowToUseSection.data.d.ts +13 -0
  68. package/lib/components/HowToUseSection/HowToUseSection.data.old.d.ts +46 -0
  69. package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +15 -0
  70. package/lib/components/HowToUseSection/index.d.ts +1 -0
  71. package/lib/components/LayoutRendererV1/LayoutRenderer.d.ts +9 -0
  72. package/lib/components/LayoutRendererV1/LayoutRenderer.old.d.ts +120 -0
  73. package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +65 -0
  74. package/lib/components/LayoutRendererV1/index.d.ts +1 -0
  75. package/lib/components/LayoutRendererV2/LayoutRenderer.d.ts +6 -0
  76. package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +55 -0
  77. package/lib/components/LayoutRendererV2/index.d.ts +1 -0
  78. package/lib/components/MicrositeCustomContent/MicrositeCustomContent.d.ts +2 -0
  79. package/lib/components/MicrositeFeatureProgressBar/index.d.ts +1 -0
  80. package/lib/components/MicrositeSection/AllFeaturesButton/AllFeaturesButton.d.ts +2 -0
  81. package/lib/components/MicrositeSection/AllFeaturesButton/AllFeaturesButton.styles.d.ts +4 -0
  82. package/lib/components/MicrositeSection/AllFeaturesButton/index.d.ts +1 -0
  83. package/lib/components/MicrositeSection/Features/Features.d.ts +2 -0
  84. package/lib/components/MicrositeSection/Features/Features.styles.d.ts +24 -0
  85. package/lib/components/MicrositeSection/Features/index.d.ts +1 -0
  86. package/lib/components/MicrositeSection/MicrositeSection.d.ts +11 -0
  87. package/lib/components/MicrositeSection/MicrositeSection.styles.d.ts +43 -0
  88. package/lib/components/MicrositeSection/MicrositeSection.utils.d.ts +32 -0
  89. package/lib/components/MicrositeSection/index.d.ts +1 -0
  90. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +1 -1
  91. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
  92. package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
  93. package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
  94. package/lib/components/Microsites/MicrositeProductPageSample.constants.d.ts +9 -0
  95. package/lib/components/ModelCompareV3/CheckWithNote.d.ts +3 -0
  96. package/lib/components/ModelCompareV3/data/products/8PoEGen1.d.ts +2 -0
  97. package/lib/components/ModelCompareV3/data/products/8PoESFPGen1.d.ts +2 -0
  98. package/lib/components/ModelCompareV3/data/products/acInWall.d.ts +2 -0
  99. package/lib/components/ModelCompareV3/data/products/aiBullet.d.ts +2 -0
  100. package/lib/components/ModelCompareV3/data/products/airFiber37dBiMonsterDish.d.ts +2 -0
  101. package/lib/components/ModelCompareV3/data/products/airFiber60HD.d.ts +2 -0
  102. package/lib/components/ModelCompareV3/data/products/airFiber60XG.d.ts +2 -0
  103. package/lib/components/ModelCompareV3/data/products/airFiber60XTremeRange.d.ts +2 -0
  104. package/lib/components/ModelCompareV3/data/products/airFiberX23dBiSlant45.d.ts +2 -0
  105. package/lib/components/ModelCompareV3/data/products/airFiberX24dBiSlant45.d.ts +2 -0
  106. package/lib/components/ModelCompareV3/data/products/airFiberX30dBiSlant45.d.ts +2 -0
  107. package/lib/components/ModelCompareV3/data/products/airFiberX34dBiSlant45.d.ts +2 -0
  108. package/lib/components/ModelCompareV3/data/products/airMAX30dBiRocketDishLW.d.ts +2 -0
  109. package/lib/components/ModelCompareV3/data/products/airMAXAC30dBiRocketDish.d.ts +2 -0
  110. package/lib/components/ModelCompareV3/data/products/airMAXAC31dBiRocketDish.d.ts +2 -0
  111. package/lib/components/ModelCompareV3/data/products/airMAXAC34dBiRocketDish.d.ts +2 -0
  112. package/lib/components/ModelCompareV3/data/products/airMAXSector5GHzTitanium.d.ts +11 -0
  113. package/lib/components/ModelCompareV3/data/products/airMaxGigaBeam.d.ts +2 -0
  114. package/lib/components/ModelCompareV3/data/products/airMaxGigaBeamLongRange.d.ts +2 -0
  115. package/lib/components/ModelCompareV3/data/products/airMaxGigaBeamPlus.d.ts +2 -0
  116. package/lib/components/ModelCompareV3/data/products/edgePointS16.d.ts +2 -0
  117. package/lib/components/ModelCompareV3/data/products/edgeSwitch12f.d.ts +2 -0
  118. package/lib/components/ModelCompareV3/data/products/enterpriseCampus24.d.ts +6 -0
  119. package/lib/components/ModelCompareV3/data/products/enterpriseCampus48.d.ts +6 -0
  120. package/lib/components/ModelCompareV3/data/products/gponOlt.d.ts +2 -0
  121. package/lib/components/ModelCompareV3/data/products/standard16PoEGen1.d.ts +2 -0
  122. package/lib/components/ModelCompareV3/data/products/standard24PoEGen1.d.ts +2 -0
  123. package/lib/components/ModelCompareV3/data/products/standard48PoEGen1.d.ts +2 -0
  124. package/lib/components/ModelCompareV3/data/products/switchesUtility.d.ts +2 -0
  125. package/lib/components/ModelCompareV3/data/products/u6lite.d.ts +2 -0
  126. package/lib/components/ModelCompareV3/data/products/xg6PoEGen1.d.ts +2 -0
  127. package/lib/components/ModelCompareV3/data/products/xgsxg.d.ts +2 -0
  128. package/lib/components/ModelCompareV3/translations/index.d.ts +11 -0
  129. package/lib/components/NewToUnifiBox/NewToUnifiBox.d.ts +11 -0
  130. package/lib/components/NewToUnifiBox/NewToUnifiBox.styles.d.ts +5 -0
  131. package/lib/components/NewToUnifiBox/index.d.ts +1 -0
  132. package/lib/components/ProductCompare/mapping.test.d.ts +1 -0
  133. package/lib/components/ProductSectionNavigation/ProductSectionNavigation.d.ts +2 -0
  134. package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +10 -0
  135. package/lib/components/ProductSectionNavigation/index.d.ts +1 -0
  136. package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.d.ts +2 -0
  137. package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +10 -0
  138. package/lib/components/ProductSectionNavigationV2/index.d.ts +2 -0
  139. package/lib/components/ProductTechSpecs/ProductTechSpecs.d.ts +6 -0
  140. package/lib/components/ProductTechSpecs/index.d.ts +2 -0
  141. package/lib/components/ProductUpsell/ProductUpsell.d.ts +2 -0
  142. package/lib/components/ProductUpsell/ProductUpsell.styles.d.ts +19 -0
  143. package/lib/components/ProductUpsell/index.d.ts +1 -0
  144. package/lib/components/RelatedProductsVariantSelector/RelatedProductsVariantSelector.d.ts +11 -0
  145. package/lib/components/RelatedProductsVariantSelector/RelatedProductsVariantSelector.styles.d.ts +25 -0
  146. package/lib/components/RelatedProductsVariantSelector/index.d.ts +1 -0
  147. package/lib/components/RelatedProductsVariantSelectorV1/RelatedProductsVariantSelector.d.ts +13 -0
  148. package/lib/components/RelatedProductsVariantSelectorV1/RelatedProductsVariantSelector.styles.d.ts +20 -0
  149. package/lib/components/RelatedProductsVariantSelectorV1/index.d.ts +1 -0
  150. package/lib/components/RelatedProductsVariantSelectorV2/RelatedProductsVariantSelector.d.ts +13 -0
  151. package/lib/components/RelatedProductsVariantSelectorV2/RelatedProductsVariantSelector.styles.d.ts +22 -0
  152. package/lib/components/RelatedProductsVariantSelectorV2/index.d.ts +1 -0
  153. package/lib/components/RelatedProductsVariantSelectorsV1/RelatedProductsVariantSelectors.d.ts +2 -0
  154. package/lib/components/RelatedProductsVariantSelectorsV1/index.d.ts +1 -0
  155. package/lib/components/RelatedProductsVariantSelectorsV2/RelatedProductsVariantSelectors.d.ts +2 -0
  156. package/lib/components/RelatedProductsVariantSelectorsV2/RelatedProductsVariantSelectors.styles.d.ts +1 -0
  157. package/lib/components/RelatedProductsVariantSelectorsV2/index.d.ts +1 -0
  158. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +1 -1
  159. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
  160. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +2 -2
  161. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
  162. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
  163. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
  164. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
  165. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
  166. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
  167. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
  168. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +1 -1
  169. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
  170. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
  171. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
  172. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +2 -2
  173. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
  174. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
  175. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
  176. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
  177. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
  178. package/lib/components/SearchInput/Input.styles.d.ts +18 -0
  179. package/lib/components/TabinationButtons/TabinationButtons.d.ts +2 -0
  180. package/lib/components/TabinationButtons/TabinationButtons.styles.d.ts +13 -0
  181. package/lib/components/TabinationButtons/index.d.ts +1 -0
  182. package/lib/components/TopologyScheme/TopologyScheme.d.ts +2 -0
  183. package/lib/components/TopologyScheme/TopologyScheme.styles.d.ts +20 -0
  184. package/lib/components/TopologyScheme/index.d.ts +2 -0
  185. package/lib/components/VariantSelector/Variant/BundleOffer/translations/index.d.ts +11 -0
  186. package/lib/components/VariantSelector/Variant/BundleOffer/utils/getBundleOfferQuantity.test.d.ts +1 -0
  187. package/lib/components/VariantSelector/utils.d.ts +11 -0
  188. package/lib/components/VariantSelectorV1/VariantSelector.d.ts +2 -0
  189. package/lib/components/VariantSelectorV1/VariantSelector.styles.d.ts +35 -0
  190. package/lib/components/VariantSelectorV1/index.d.ts +1 -0
  191. package/lib/components/VariantSelectorV2/VariantSelector.d.ts +2 -0
  192. package/lib/components/VariantSelectorV2/VariantSelector.styles.d.ts +21 -0
  193. package/lib/components/VariantSelectorV2/index.d.ts +1 -0
  194. package/lib/components/VideoCookiesConsent/VideoCookiesConsent.d.ts +7 -0
  195. package/lib/components/VideoCookiesConsent/VideoCookiesConsent.styles.d.ts +7 -0
  196. package/lib/components/VideoCookiesConsent/index.d.ts +1 -0
  197. package/lib/components/VideoPlayer/VideoPlayer.d.ts +8 -0
  198. package/lib/components/VideoPlayer/VideoPlayer.styles.d.ts +7 -0
  199. package/lib/components/VideoPlayer/index.d.ts +1 -0
  200. package/lib/components/VideoPlayerNew/VideoPlayer.js +2 -2
  201. package/lib/components/VideoPlayerNew/VideoPlayer.mjs +2 -2
  202. package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
  203. package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
  204. package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
  205. package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
  206. package/lib/components/YouTubePlayer/YouTubePlayer.d.ts +2 -0
  207. package/lib/components/YouTubePlayer/index.d.ts +1 -0
  208. package/lib/constants/address.d.ts +2 -2
  209. package/lib/constants/address.js +3 -3
  210. package/lib/constants/address.js.map +1 -1
  211. package/lib/constants/address.mjs +3 -3
  212. package/lib/constants/address.mjs.map +1 -1
  213. package/lib/constants/icons/options/colors/black.svg.js +5 -5
  214. package/lib/constants/icons/options/colors/index.js +3 -3
  215. package/lib/constants/icons/options/styles/black.svg.js +5 -5
  216. package/lib/constants/icons/options/styles/index.js +3 -3
  217. package/lib/constants/optionIcons.js +6 -6
  218. package/lib/constants/optionIcons.mjs +4 -4
  219. package/lib/constants/postalCode.test.d.ts +1 -0
  220. package/lib/constants/proStoreCategories/mapping/mapping.d.ts +128 -0
  221. package/lib/constants/storybook.d.ts +11 -0
  222. package/lib/contexts/MenuContext/mapping.test.d.ts +1 -0
  223. package/lib/contexts/MenuContext/utils.test.d.ts +1 -0
  224. package/lib/helpers/jsx.d.ts +6 -0
  225. package/lib/helpers/routes.d.ts +1 -0
  226. package/lib/types/utils.test.d.ts +1 -0
  227. package/lib/utils/address.data.d.ts +17 -0
  228. package/lib/utils/address.test.d.ts +1 -0
  229. package/lib/utils/array.test.d.ts +1 -0
  230. package/lib/utils/canvas.d.ts +8 -0
  231. package/lib/utils/cdn.d.ts +5 -0
  232. package/lib/utils/collectionSlug.test.d.ts +1 -0
  233. package/lib/utils/countriesAndZones.test.d.ts +1 -0
  234. package/lib/utils/langauge.test.d.ts +1 -0
  235. package/lib/utils/measures.test.d.ts +1 -0
  236. package/lib/utils/money/allocators/fixedAmount.test.d.ts +1 -0
  237. package/lib/utils/money/allocators/productAmount.test.d.ts +1 -0
  238. package/lib/utils/money/constants.test.d.ts +1 -0
  239. package/lib/utils/money/exchangeRate.test.d.ts +1 -0
  240. package/lib/utils/money/format.test.d.ts +1 -0
  241. package/lib/utils/money/misc.test.d.ts +1 -0
  242. package/lib/utils/money/shipping.test.d.ts +1 -0
  243. package/lib/utils/money/tax.private.test.d.ts +1 -0
  244. package/lib/utils/money/tax.test.d.ts +1 -0
  245. package/lib/utils/nextjs/createInlineScript.test.d.ts +1 -0
  246. package/lib/utils/nextjs/mergeCspDirectives.test.d.ts +1 -0
  247. package/lib/utils/nextjs/sanitizeImageDomains.test.d.ts +1 -0
  248. package/lib/utils/nextjs/stringifyForInject.test.d.ts +1 -0
  249. package/lib/utils/number.test.d.ts +1 -0
  250. package/lib/utils/storeId.test.d.ts +1 -0
  251. package/lib/utils/string.test.d.ts +1 -0
  252. package/lib/utils/tags.test.d.ts +1 -0
  253. package/lib/utils/tax/index.test.d.ts +1 -0
  254. package/lib/utils/url.test.d.ts +1 -0
  255. package/lib/utils/validations/index.d.ts +5 -0
  256. package/lib/utils/validations/postalCodeSuperRefinement.test.d.ts +1 -0
  257. package/lib/utils/variant.test.d.ts +1 -0
  258. package/lib/utils/wattage.test.d.ts +1 -0
  259. package/lib/utils/zod.test.d.ts +1 -0
  260. package/package.json +2 -2
@@ -0,0 +1,11 @@
1
+ export { default as ar } from "./ar.json";
2
+ export { default as de } from "./de.json";
3
+ export { default as el } from "./el.json";
4
+ export { default as en } from "./en.json";
5
+ export { default as es } from "./es.json";
6
+ export { default as fr } from "./fr.json";
7
+ export { default as it } from "./it.json";
8
+ export { default as ja } from "./ja.json";
9
+ export { default as pt } from "./pt-BR.json";
10
+ export { default as zh } from "./zh-Hans.json";
11
+ export { default as tw } from "./zh-Hant-TW.json";
@@ -0,0 +1,11 @@
1
+ import type { LayoutVariant } from "../LayoutRenderer/LayoutRenderer.types";
2
+ /**
3
+ * Selects feature text like "All-in-one", "Best price", etc.
4
+ */
5
+ export declare const getVariantFeatureText: (variant: LayoutVariant, translations: {
6
+ bestPricePerformance: string;
7
+ highestClientCapacity: string;
8
+ mostVersatile: string;
9
+ topPerformer: string;
10
+ topPerformanceHighDensity: string;
11
+ }) => string | null;
@@ -0,0 +1,2 @@
1
+ import type { VariantSelectorProps } from "./VariantSelector.types";
2
+ export declare const VariantSelector: ({ sections, selectedVariant, onVariantSelect, renderImage, translations, disableKeyFeatures, }: VariantSelectorProps) => JSX.Element;
@@ -0,0 +1,35 @@
1
+ export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const Heading: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const SectionTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const CompareOptions: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
5
+ export declare const Wrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
+ export declare const Variant: import("styled-components").StyledComponent<({ children, ...props }: import("react").PropsWithChildren<import("../VariantSelectorItem/VariantSelectorItem.types").VariantSelectorItemProps>) => JSX.Element, import("styled-components").DefaultTheme, {
7
+ isSoldOut?: boolean;
8
+ isNoneVariant?: boolean;
9
+ }, never>;
10
+ export declare const VariantDetailsWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
11
+ export declare const Image: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
12
+ export declare const Details: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
13
+ export declare const DetailsDefault: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
14
+ export declare const ProductTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
15
+ export declare const PriceWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
16
+ tablet: boolean;
17
+ }, never>;
18
+ export declare const Price: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
19
+ export declare const PriceWithVAT: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
20
+ export declare const BadgeWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
21
+ export declare const ProductKeyFeatures: import("styled-components").StyledComponent<({ className, disableHeader, keyFeatures, }: import("../ProductKeyFeatures/ProductKeyFeatures.types").ProductKeyFeaturesProps) => JSX.Element | null, import("styled-components").DefaultTheme, {
22
+ selected?: boolean;
23
+ }, never>;
24
+ export declare const Button: import("styled-components").StyledComponent<(<T extends React.ElementType<any> = "button">(p: import("@ubnt/ui-components/Button").LocalButtonProps<T> & Omit<React.PropsWithoutRef<React.ComponentProps<T>>, keyof import("@ubnt/ui-components/Button").LocalButtonProps<C>> & {
25
+ ref?: React.Ref<HTMLElement> | undefined;
26
+ }) => React.ReactElement<T, string | React.JSXElementConstructor<any>>), import("styled-components").DefaultTheme, {
27
+ contentClassName: string;
28
+ }, "contentClassName">;
29
+ export declare const VariantImageSliderWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
30
+ selected?: boolean;
31
+ }, never>;
32
+ export declare const ImageSliderWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
33
+ hasPaddings?: boolean;
34
+ }, never>;
35
+ export declare const FullScreenWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1 @@
1
+ export { VariantSelector } from "./VariantSelector";
@@ -0,0 +1,2 @@
1
+ import type { VariantSelectorProps } from "./VariantSelector.types";
2
+ export declare const VariantSelector: ({ sections, selectedVariant, onVariantSelect, renderImage, translations, disableKeyFeatures, }: VariantSelectorProps) => JSX.Element;
@@ -0,0 +1,21 @@
1
+ export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const Heading: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const SectionTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const Wrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
5
+ variantCount?: number;
6
+ }, never>;
7
+ export declare const Variant: import("styled-components").StyledComponent<({ children, ...props }: import("react").PropsWithChildren<import("../VariantSelectorItem/VariantSelectorItem.types").VariantSelectorItemProps>) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
8
+ export declare const VariantHeading: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
9
+ export declare const Image: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
10
+ export declare const Details: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
11
+ export declare const ProductTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
12
+ export declare const PriceWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
13
+ export declare const Price: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
14
+ export declare const PriceWithVAT: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
15
+ export declare const BadgeWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
16
+ export declare const ProductKeyFeatures: import("styled-components").StyledComponent<({ className, disableHeader, keyFeatures, }: import("../ProductKeyFeatures/ProductKeyFeatures.types").ProductKeyFeaturesProps) => JSX.Element | null, import("styled-components").DefaultTheme, {}, never>;
17
+ export declare const Button: import("styled-components").StyledComponent<(<T extends React.ElementType<any> = "button">(p: import("@ubnt/ui-components/Button").LocalButtonProps<T> & Omit<React.PropsWithoutRef<React.ComponentProps<T>>, keyof import("@ubnt/ui-components/Button").LocalButtonProps<C>> & {
18
+ ref?: React.Ref<HTMLElement> | undefined;
19
+ }) => React.ReactElement<T, string | React.JSXElementConstructor<any>>), import("styled-components").DefaultTheme, {
20
+ contentClassName: string;
21
+ }, "contentClassName">;
@@ -0,0 +1 @@
1
+ export { VariantSelector } from "./VariantSelector";
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ className?: string;
3
+ videoSrc: string;
4
+ showCookiesConsentOptions: () => void;
5
+ };
6
+ export declare const VideoCookiesConsent: ({ className, videoSrc, showCookiesConsentOptions, }: Props) => JSX.Element;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ export declare const ButtonLink: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../Button/Button.types").ButtonProps & {
2
+ children?: import("react").ReactNode;
3
+ } & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement | null>>, import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const Wrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
5
+ export declare const OrTextWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
+ export declare const WatchAnchor: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {}, never>;
7
+ export declare const IconWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1 @@
1
+ export * from "./VideoCookiesConsent";
@@ -0,0 +1,8 @@
1
+ export interface VideoPlayerProps {
2
+ videoSrc?: string;
3
+ showCookiesConsentOptions: () => void;
4
+ videoNoCookiesConsent: boolean;
5
+ aspectRatio?: [number, number];
6
+ className?: string;
7
+ }
8
+ export declare const VideoPlayer: ({ showCookiesConsentOptions, videoSrc, videoNoCookiesConsent, aspectRatio, className, }: VideoPlayerProps) => JSX.Element | null;
@@ -0,0 +1,7 @@
1
+ export declare const centerContentFragment: import("styled-components").FlattenSimpleInterpolation;
2
+ export declare const VideoPlayerWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const VideoScaler: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
4
+ $hasVideo: boolean;
5
+ $aspectRatio?: [number, number];
6
+ }, never>;
7
+ export declare const IframeWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1 @@
1
+ export * from "./VideoPlayer";
@@ -12,9 +12,9 @@ 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
- var PauseIcon = require("../../assets/pause.svg");
17
+ var PauseIcon = require("../../assets/pause2.svg");
18
18
  var PlayIcon = require("../../assets/play.svg");
19
19
  var VolumeOffIcon = require("../../assets/volume-off.svg");
20
20
  var VolumeOnIcon = require("../../assets/volume-on.svg");
@@ -10,9 +10,9 @@ 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
- import PauseIcon__default from "../../assets/pause.svg";
15
+ import PauseIcon__default from "../../assets/pause2.svg";
16
16
  import PlayIcon__default from "../../assets/play.svg";
17
17
  import VolumeOffIcon__default from "../../assets/volume-off.svg";
18
18
  import VolumeOnIcon__default from "../../assets/volume-on.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
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var PauseIcon = require("../../../assets/pause.svg");
6
+ var PauseIcon = require("../../../assets/pause2.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/pause.svg";
2
- export { default } from "../../../assets/pause.svg";
1
+ export * from "../../../assets/pause2.svg";
2
+ export { default } from "../../../assets/pause2.svg";
3
3
  //# sourceMappingURL=pause.svg.mjs.map
@@ -0,0 +1,2 @@
1
+ import type { Props } from "./YouTubePlayer.types";
2
+ export declare const YouTubePlayer: ({ src, autoplay, onStarted, onEnded, onProgress, videoNoCookiesConsent, }: Props) => JSX.Element | null;
@@ -0,0 +1 @@
1
+ export * from "./YouTubePlayer";
@@ -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 characters with the following structure: xxxyyyyyyzzz
325
- * (x = letters (including Ñ and &), y = numbers, z = alphanumeric)
324
+ * A businesses RFC consists of 12 digits with the following structure: xxxyyyyyyzzz
325
+ * (x = letters, 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 characters with the following structure: xxxyyyyyyzzz
345
- * (x = letters (including Ñ and &), y = numbers, z = alphanumeric)
344
+ * A businesses RFC consists of 12 digits with the following structure: xxxyyyyyyzzz
345
+ * (x = letters, y = numbers, z = alphanumeric)
346
346
  */
347
347
  [generated.CountryCode.Mx]: {
348
- validation: /^[A-ZÑ&]{3}\d{6}[A-Z0-9]{3}$/i,
348
+ validation: /^[A-Z]{3}[0-9]{6}[0-9A-Z]{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 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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AAA;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;;;;;;;"}
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,CA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F,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 characters with the following structure: xxxyyyyyyzzz
343
- * (x = letters (including Ñ and &), y = numbers, z = alphanumeric)
342
+ * A businesses RFC consists of 12 digits with the following structure: xxxyyyyyyzzz
343
+ * (x = letters, y = numbers, z = alphanumeric)
344
344
  */
345
345
  [CountryCode.Mx]: {
346
- validation: /^[A-ZÑ&]{3}\d{6}[A-Z0-9]{3}$/i,
346
+ validation: /^[A-Z]{3}[0-9]{6}[0-9A-Z]{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 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_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;EACRC,CAAA,EAAG,CAAC,IAAI,CAAA;EAAA;EACRC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ACd,CAAA;EAEA,CAACH,WAAY,CAAAsC,EAAE,GAAG;IAChBpC,UAAY,EAAA,gBAAA;IACZC,UAAY,EAAA;EACd;AACF,CAAA;AAQO,MAAMwC,mCAAsC,GAAA;EACjD,CAAChC,uBAAwB,CAAAoB,EAAE,GAAG,CAC5B,CAAC/B,WAAY,CAAAgC,EAAA,EAAI,KAAK;EAAA;EAAA,CACxB;EACA,CAACrB,uBAAwB,CAAAC,EAAE,GAAG,CAC5B,CAACZ,YAAY4C,EAAE;EAAA;EAAA,CACjB;EACA,CAACjC,uBAAwB,CAAAI,EAAE,GAAG,CAC5B,CAACf,YAAYe,EAAE,CAAA;EAAA;EACf,CAACf,YAAY6C,EAAE;EAAA;EAAA;EACjB;AAEF,CAAA;AAYO,MAAMC,0BAET,GAAA;EAAA;EAEF,CAAC9C,WAAY,CAAAkC,EAAE,GAAG;IAChB,gBAAkB,EAAA,IAAA;IAClB,gBAAkB,EAAA;EACpB,CAAA;EAAA;EAEA,CAAClC,WAAY,CAAAkB,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 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;EACRC,CAAA,EAAG,CAAC,IAAI,CAAA;EAAA;EACRC,CAAA,EAAG,CAAC,IAAI,CAAA;EAAA;EACRC,CAAA,EAAG,CA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AAY,EAAA,gBAAA;IACZC,UAAY,EAAA;EACd;AACF,CAAA;AAQO,MAAMwC,mCAAsC,GAAA;EACjD,CAAChC,uBAAwB,CAAAoB,EAAE,GAAG,CAC5B,CAAC/B,WAAY,CAAAgC,EAAA,EAAI,KAAK;EAAA;EAAA,CACxB;EACA,CAACrB,uBAAwB,CAAAC,EAAE,GAAG,CAC5B,CAACZ,YAAY4C,EAAE;EAAA;EAAA,CACjB;EACA,CAACjC,uBAAwB,CAAAI,EAAE,GAAG,CAC5B,CAACf,YAAYe,EAAE,CAAA;EAAA;EACf,CAACf,YAAY6C,EAAE;EAAA;EAAA;EACjB;AAEF,CAAA;AAYO,MAAMC,0BAET,GAAA;EAAA;EAEF,CAAC9C,WAAY,CAAAkC,EAAE,GAAG;IAChB,gBAAkB,EAAA,IAAA;IAClB,gBAAkB,EAAA;EACpB,CAAA;EAAA;EAEA,CAAClC,WAAY,CAAAkB,EAAE,GAAG;IAChB,gBAAkB,EAAA,IAAA;IAClB,iBAAmB,EAAA;EACrB;AACF,CAAA;"}
@@ -3,24 +3,24 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var _externalAssets_WKvVtlSv = require("../../../../assets/black.svg");
6
+ var _externalAssets_NxsKXHyJ = require("../../../../assets/black.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
10
10
  };
11
11
  }
12
- var _externalAssets_WKvVtlSv__default = /*#__PURE__*/_interopDefault(_externalAssets_WKvVtlSv);
12
+ var _externalAssets_NxsKXHyJ__default = /*#__PURE__*/_interopDefault(_externalAssets_NxsKXHyJ);
13
13
  Object.defineProperty(exports, "default", {
14
14
  enumerable: true,
15
15
  get: function () {
16
- return _externalAssets_WKvVtlSv__default["default"];
16
+ return _externalAssets_NxsKXHyJ__default["default"];
17
17
  }
18
18
  });
19
- Object.keys(_externalAssets_WKvVtlSv).forEach(function (k) {
19
+ Object.keys(_externalAssets_NxsKXHyJ).forEach(function (k) {
20
20
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
21
21
  enumerable: true,
22
22
  get: function () {
23
- return _externalAssets_WKvVtlSv[k];
23
+ return _externalAssets_NxsKXHyJ[k];
24
24
  }
25
25
  });
26
26
  });
@@ -6,7 +6,7 @@ require('./darkGrey.svg.js');
6
6
  require('./grey.svg.js');
7
7
  require('./lightGrey.svg.js');
8
8
  require('./white.svg.js');
9
- var _externalAssets_WKvVtlSv = require("../../../../assets/black.svg");
9
+ var _externalAssets_NxsKXHyJ = require("../../../../assets/black.svg");
10
10
  var _externalAssets_DTFMFQ51 = require("../../../../assets/blue.svg");
11
11
  var _externalAssets_B1Gj17va = require("../../../../assets/darkGrey.svg");
12
12
  var _externalAssets_So87DWAv = require("../../../../assets/grey.svg");
@@ -17,7 +17,7 @@ function _interopDefault(e) {
17
17
  default: e
18
18
  };
19
19
  }
20
- var _externalAssets_WKvVtlSv__default = /*#__PURE__*/_interopDefault(_externalAssets_WKvVtlSv);
20
+ var _externalAssets_NxsKXHyJ__default = /*#__PURE__*/_interopDefault(_externalAssets_NxsKXHyJ);
21
21
  var _externalAssets_DTFMFQ51__default = /*#__PURE__*/_interopDefault(_externalAssets_DTFMFQ51);
22
22
  var _externalAssets_B1Gj17va__default = /*#__PURE__*/_interopDefault(_externalAssets_B1Gj17va);
23
23
  var _externalAssets_So87DWAv__default = /*#__PURE__*/_interopDefault(_externalAssets_So87DWAv);
@@ -27,7 +27,7 @@ var _externalAssets_Dh1AHi98__default = /*#__PURE__*/_interopDefault(_externalAs
27
27
  Object.defineProperty(exports, "black", {
28
28
  enumerable: true,
29
29
  get: function () {
30
- return _externalAssets_WKvVtlSv__default["default"];
30
+ return _externalAssets_NxsKXHyJ__default["default"];
31
31
  }
32
32
  });
33
33
  Object.defineProperty(exports, "blue", {
@@ -3,24 +3,24 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var _externalAssets_NxsKXHyJ = require("../../../../assets/black.svg");
6
+ var _externalAssets_WKvVtlSv = require("../../../../assets/black.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
10
10
  };
11
11
  }
12
- var _externalAssets_NxsKXHyJ__default = /*#__PURE__*/_interopDefault(_externalAssets_NxsKXHyJ);
12
+ var _externalAssets_WKvVtlSv__default = /*#__PURE__*/_interopDefault(_externalAssets_WKvVtlSv);
13
13
  Object.defineProperty(exports, "default", {
14
14
  enumerable: true,
15
15
  get: function () {
16
- return _externalAssets_NxsKXHyJ__default["default"];
16
+ return _externalAssets_WKvVtlSv__default["default"];
17
17
  }
18
18
  });
19
- Object.keys(_externalAssets_NxsKXHyJ).forEach(function (k) {
19
+ Object.keys(_externalAssets_WKvVtlSv).forEach(function (k) {
20
20
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
21
21
  enumerable: true,
22
22
  get: function () {
23
- return _externalAssets_NxsKXHyJ[k];
23
+ return _externalAssets_WKvVtlSv[k];
24
24
  }
25
25
  });
26
26
  });