@ubnt/store.core 9.31.0 → 9.32.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/lib/assets/minus4.svg +8 -8
- package/lib/assets/minus5.svg +8 -8
- package/lib/assets/plus2.svg +1 -4
- package/lib/assets/plus3.svg +4 -1
- package/lib/assets/plus5.svg +9 -9
- package/lib/assets/plus6.svg +9 -9
- package/lib/assets/ucgMax.jpg +0 -0
- package/lib/assets/ucgMax2.jpg +0 -0
- package/lib/assets/ucgUltra.jpg +0 -0
- package/lib/assets/ucgUltra2.jpg +0 -0
- package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.js +1 -1
- package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.mjs +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/plus.svg.js +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/plus.svg.mjs +2 -2
- package/lib/components/Header/CartModalV2/Item/Item.js +3 -3
- package/lib/components/Header/CartModalV2/Item/Item.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/data/CloudGateways.js +6 -6
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +4 -4
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js +5 -4
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js.map +1 -1
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs +5 -4
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +1 -1
- package/lib/components/ModelCompareV3/translations/ar.json.js +1 -1
- package/lib/components/ModelCompareV3/translations/ar.json.mjs +1 -1
- package/lib/components/ModelCompareV3/translations/de.json.js +1 -1
- package/lib/components/ModelCompareV3/translations/de.json.mjs +1 -1
- package/lib/components/ModelCompareV3/translations/el.json.js +1 -1
- package/lib/components/ModelCompareV3/translations/el.json.mjs +1 -1
- package/lib/components/ModelCompareV3/translations/en.json.js +1 -1
- package/lib/components/ModelCompareV3/translations/en.json.mjs +1 -1
- package/lib/components/ModelCompareV3/translations/es.json.js +1 -1
- package/lib/components/ModelCompareV3/translations/es.json.mjs +1 -1
- package/lib/components/ModelCompareV3/translations/fr.json.js +1 -1
- package/lib/components/ModelCompareV3/translations/fr.json.mjs +1 -1
- package/lib/components/ModelCompareV3/translations/it.json.js +1 -1
- package/lib/components/ModelCompareV3/translations/it.json.mjs +1 -1
- package/lib/components/ModelCompareV3/translations/ja.json.js +1 -1
- package/lib/components/ModelCompareV3/translations/ja.json.mjs +1 -1
- package/lib/components/ModelCompareV3/translations/pt-BR.json.js +1 -1
- package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.js +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
- package/lib/constants/address.d.ts +2 -2
- package/lib/constants/address.js +3 -3
- package/lib/constants/address.js.map +1 -1
- package/lib/constants/address.mjs +3 -3
- package/lib/constants/address.mjs.map +1 -1
- package/lib/constants/icons/generic/index.js +3 -3
- package/lib/constants/icons/generic/index.mjs +1 -1
- package/lib/constants/icons/generic/plus.svg.js +5 -5
- package/lib/constants/icons/generic/plus.svg.mjs +2 -2
- package/lib/constants/icons/options/colors/black.svg.js +5 -5
- package/lib/constants/icons/options/colors/index.js +3 -3
- package/lib/constants/icons/options/styles/black.svg.js +5 -5
- package/lib/constants/icons/options/styles/index.js +3 -3
- package/lib/constants/optionIcons.js +6 -6
- package/lib/constants/optionIcons.mjs +4 -4
- package/lib/contexts/MenuContext/mapping.js +2 -2
- package/lib/contexts/MenuContext/mapping.js.map +1 -1
- package/lib/contexts/MenuContext/mapping.mjs +2 -2
- package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
- package/package.json +1 -1
- package/lib/assets/enterprise24PoE.jpg +0 -0
- package/lib/assets/enterprise48PoE.jpg +0 -0
- package/lib/assets/enterpriseXG24.jpg +0 -0
- package/lib/components/ModelCompareV3/assets/Switching/enterprise24PoE.jpg.js +0 -27
- package/lib/components/ModelCompareV3/assets/Switching/enterprise24PoE.jpg.js.map +0 -1
- package/lib/components/ModelCompareV3/assets/Switching/enterprise24PoE.jpg.mjs +0 -3
- package/lib/components/ModelCompareV3/assets/Switching/enterprise24PoE.jpg.mjs.map +0 -1
- package/lib/components/ModelCompareV3/assets/Switching/enterprise48PoE.jpg.js +0 -27
- package/lib/components/ModelCompareV3/assets/Switching/enterprise48PoE.jpg.js.map +0 -1
- package/lib/components/ModelCompareV3/assets/Switching/enterprise48PoE.jpg.mjs +0 -3
- package/lib/components/ModelCompareV3/assets/Switching/enterprise48PoE.jpg.mjs.map +0 -1
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseXG24.jpg.js +0 -27
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseXG24.jpg.js.map +0 -1
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseXG24.jpg.mjs +0 -3
- package/lib/components/ModelCompareV3/assets/Switching/enterpriseXG24.jpg.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterprise24PoE.js +0 -117
- package/lib/components/ModelCompareV3/data/products/enterprise24PoE.js.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterprise24PoE.mjs +0 -109
- package/lib/components/ModelCompareV3/data/products/enterprise24PoE.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterprise48PoE.js +0 -117
- package/lib/components/ModelCompareV3/data/products/enterprise48PoE.js.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterprise48PoE.mjs +0 -109
- package/lib/components/ModelCompareV3/data/products/enterprise48PoE.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseXG24.js +0 -116
- package/lib/components/ModelCompareV3/data/products/enterpriseXG24.js.map +0 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseXG24.mjs +0 -108
- package/lib/components/ModelCompareV3/data/products/enterpriseXG24.mjs.map +0 -1
|
@@ -7,7 +7,7 @@ import '../../assets/applications.svg.mjs';
|
|
|
7
7
|
import '../../assets/Consoles/ucgMax.jpg.mjs';
|
|
8
8
|
import '../properties/index.mjs';
|
|
9
9
|
import { integratedWiFi6 } from '../properties/integratedWiFi6.mjs';
|
|
10
|
-
import image__default from "../../../../assets/
|
|
10
|
+
import image__default from "../../../../assets/ucgMax2.jpg";
|
|
11
11
|
import { unifiAppSuite } from '../properties/unifiAppSuite.mjs';
|
|
12
12
|
import { StyleableSvgImage } from '../../../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
13
13
|
import applications__default from "../../../../assets/applications.svg";
|
|
@@ -21,7 +21,7 @@ var unifiDevices = require('../properties/unifiDevices.js');
|
|
|
21
21
|
var wanPorts = require('../properties/wanPorts.js');
|
|
22
22
|
var StyleableSvgImage$1 = require('../../../StyleableSvgImage/StyleableSvgImage.js');
|
|
23
23
|
var unifi = require('../../../../constants/proStoreCategories/mapping/unifi.js');
|
|
24
|
-
var image = require("../../../../assets/
|
|
24
|
+
var image = require("../../../../assets/ucgUltra2.jpg");
|
|
25
25
|
var applications = require("../../../../assets/wifi-device.svg");
|
|
26
26
|
var nextAiInspection = require('../properties/nextAiInspection.js');
|
|
27
27
|
function _interopDefault(e) {
|
|
@@ -19,7 +19,7 @@ import { unifiDevices } from '../properties/unifiDevices.mjs';
|
|
|
19
19
|
import { wanPorts } from '../properties/wanPorts.mjs';
|
|
20
20
|
import { StyleableSvgImage as StyleableSvgImage$1 } from '../../../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
21
21
|
import { UniFiCategoryId } from '../../../../constants/proStoreCategories/mapping/unifi.mjs';
|
|
22
|
-
import image__default from "../../../../assets/
|
|
22
|
+
import image__default from "../../../../assets/ucgUltra2.jpg";
|
|
23
23
|
import applications__default from "../../../../assets/wifi-device.svg";
|
|
24
24
|
import { nextAiInspection } from '../properties/nextAiInspection.mjs';
|
|
25
25
|
"use strict";
|
|
@@ -520,7 +520,7 @@ var ar = {
|
|
|
520
520
|
"enterpriseAccessHub.title": "محور الدخول للمؤسسة",
|
|
521
521
|
"enterpriseAggregation.description": "مفتاح التجميع عالي الكثافة 100G QSFP28 / 25G SFP28",
|
|
522
522
|
"enterpriseAggregation.title": "تجميع الحرم الجامعي للمؤسسة",
|
|
523
|
-
"enterpriseCampus.availability": "
|
|
523
|
+
"enterpriseCampus.availability": "متاح ديسمبر 2024",
|
|
524
524
|
"enterpriseCampus24PoE.description": "منافذ 10 GbE ذات سعة عالية مع خرج PoE+++",
|
|
525
525
|
"enterpriseCampus24PoE.downlinkSpeed": "حتى 10 جيجابت في الثانية",
|
|
526
526
|
"enterpriseCampus24PoE.title": "Enterprise Campus 24 PoE",
|
|
@@ -515,7 +515,7 @@ var ar = {
|
|
|
515
515
|
"enterpriseAccessHub.title": "محور الدخول للمؤسسة",
|
|
516
516
|
"enterpriseAggregation.description": "مفتاح التجميع عالي الكثافة 100G QSFP28 / 25G SFP28",
|
|
517
517
|
"enterpriseAggregation.title": "تجميع الحرم الجامعي للمؤسسة",
|
|
518
|
-
"enterpriseCampus.availability": "
|
|
518
|
+
"enterpriseCampus.availability": "متاح ديسمبر 2024",
|
|
519
519
|
"enterpriseCampus24PoE.description": "منافذ 10 GbE ذات سعة عالية مع خرج PoE+++",
|
|
520
520
|
"enterpriseCampus24PoE.downlinkSpeed": "حتى 10 جيجابت في الثانية",
|
|
521
521
|
"enterpriseCampus24PoE.title": "Enterprise Campus 24 PoE",
|
|
@@ -520,7 +520,7 @@ var de = {
|
|
|
520
520
|
"enterpriseAccessHub.title": "Enterprise Access Hub",
|
|
521
521
|
"enterpriseAggregation.description": "Hochdichte 100G QSFP28 / 25G SFP28 Aggregation-Switch",
|
|
522
522
|
"enterpriseAggregation.title": "Enterprise Campus Aggregation",
|
|
523
|
-
"enterpriseCampus.availability": "Verfügbar
|
|
523
|
+
"enterpriseCampus.availability": "Verfügbar Dez 2024",
|
|
524
524
|
"enterpriseCampus24PoE.description": "Hochkapazitive 10 GbE Ports mit PoE+++ Ausgang",
|
|
525
525
|
"enterpriseCampus24PoE.downlinkSpeed": "Bis zu 10 Gbps",
|
|
526
526
|
"enterpriseCampus24PoE.title": "Enterprise Campus 24 PoE",
|
|
@@ -515,7 +515,7 @@ var de = {
|
|
|
515
515
|
"enterpriseAccessHub.title": "Enterprise Access Hub",
|
|
516
516
|
"enterpriseAggregation.description": "Hochdichte 100G QSFP28 / 25G SFP28 Aggregation-Switch",
|
|
517
517
|
"enterpriseAggregation.title": "Enterprise Campus Aggregation",
|
|
518
|
-
"enterpriseCampus.availability": "Verfügbar
|
|
518
|
+
"enterpriseCampus.availability": "Verfügbar Dez 2024",
|
|
519
519
|
"enterpriseCampus24PoE.description": "Hochkapazitive 10 GbE Ports mit PoE+++ Ausgang",
|
|
520
520
|
"enterpriseCampus24PoE.downlinkSpeed": "Bis zu 10 Gbps",
|
|
521
521
|
"enterpriseCampus24PoE.title": "Enterprise Campus 24 PoE",
|
|
@@ -520,7 +520,7 @@ var el = {
|
|
|
520
520
|
"enterpriseAccessHub.title": "Enterprise Access Hub",
|
|
521
521
|
"enterpriseAggregation.description": "Υψηλής πυκνότητας 100G QSFP28 / 25G SFP28 διακόπτης aggregation",
|
|
522
522
|
"enterpriseAggregation.title": "Enterprise Campus Aggregation",
|
|
523
|
-
"enterpriseCampus.availability": "Διαθέσιμο
|
|
523
|
+
"enterpriseCampus.availability": "Διαθέσιμο Δεκ 2024",
|
|
524
524
|
"enterpriseCampus24PoE.description": "Θύρες υψηλής χωρητικότητας 10 GbE με εξόδους PoE+++",
|
|
525
525
|
"enterpriseCampus24PoE.downlinkSpeed": "Έως 10 Gbps",
|
|
526
526
|
"enterpriseCampus24PoE.title": "Enterprise Campus 24 PoE",
|
|
@@ -515,7 +515,7 @@ var el = {
|
|
|
515
515
|
"enterpriseAccessHub.title": "Enterprise Access Hub",
|
|
516
516
|
"enterpriseAggregation.description": "Υψηλής πυκνότητας 100G QSFP28 / 25G SFP28 διακόπτης aggregation",
|
|
517
517
|
"enterpriseAggregation.title": "Enterprise Campus Aggregation",
|
|
518
|
-
"enterpriseCampus.availability": "Διαθέσιμο
|
|
518
|
+
"enterpriseCampus.availability": "Διαθέσιμο Δεκ 2024",
|
|
519
519
|
"enterpriseCampus24PoE.description": "Θύρες υψηλής χωρητικότητας 10 GbE με εξόδους PoE+++",
|
|
520
520
|
"enterpriseCampus24PoE.downlinkSpeed": "Έως 10 Gbps",
|
|
521
521
|
"enterpriseCampus24PoE.title": "Enterprise Campus 24 PoE",
|
|
@@ -519,7 +519,7 @@ var EN_TRANSLATION = {
|
|
|
519
519
|
"enterpriseAccessHub.title": "Enterprise Access Hub",
|
|
520
520
|
"enterpriseAggregation.description": "High-density 100G QSFP28 / 25G SFP28 aggregation switch",
|
|
521
521
|
"enterpriseAggregation.title": "Enterprise Campus Aggregation",
|
|
522
|
-
"enterpriseCampus.availability": "Available
|
|
522
|
+
"enterpriseCampus.availability": "Available Dec 2024",
|
|
523
523
|
"enterpriseCampus24PoE.description": "High-capacity 10 GbE ports with PoE+++ output",
|
|
524
524
|
"enterpriseCampus24PoE.downlinkSpeed": "Up to 10 Gbps",
|
|
525
525
|
"enterpriseCampus24PoE.title": "Enterprise Campus 24 PoE",
|
|
@@ -514,7 +514,7 @@ var EN_TRANSLATION = {
|
|
|
514
514
|
"enterpriseAccessHub.title": "Enterprise Access Hub",
|
|
515
515
|
"enterpriseAggregation.description": "High-density 100G QSFP28 / 25G SFP28 aggregation switch",
|
|
516
516
|
"enterpriseAggregation.title": "Enterprise Campus Aggregation",
|
|
517
|
-
"enterpriseCampus.availability": "Available
|
|
517
|
+
"enterpriseCampus.availability": "Available Dec 2024",
|
|
518
518
|
"enterpriseCampus24PoE.description": "High-capacity 10 GbE ports with PoE+++ output",
|
|
519
519
|
"enterpriseCampus24PoE.downlinkSpeed": "Up to 10 Gbps",
|
|
520
520
|
"enterpriseCampus24PoE.title": "Enterprise Campus 24 PoE",
|
|
@@ -520,7 +520,7 @@ var es = {
|
|
|
520
520
|
"enterpriseAccessHub.title": "Enterprise Access Hub",
|
|
521
521
|
"enterpriseAggregation.description": "Switch de agregación de alta densidad 100G QSFP28 / 25G SFP28",
|
|
522
522
|
"enterpriseAggregation.title": "Enterprise Campus Aggregation",
|
|
523
|
-
"enterpriseCampus.availability": "Disponible
|
|
523
|
+
"enterpriseCampus.availability": "Disponible Dic 2024",
|
|
524
524
|
"enterpriseCampus24PoE.description": "Puertos 10 GbE de alta capacidad con salida PoE+++",
|
|
525
525
|
"enterpriseCampus24PoE.downlinkSpeed": "Hasta 10 Gbps",
|
|
526
526
|
"enterpriseCampus24PoE.title": "Enterprise Campus 24 PoE",
|
|
@@ -515,7 +515,7 @@ var es = {
|
|
|
515
515
|
"enterpriseAccessHub.title": "Enterprise Access Hub",
|
|
516
516
|
"enterpriseAggregation.description": "Switch de agregación de alta densidad 100G QSFP28 / 25G SFP28",
|
|
517
517
|
"enterpriseAggregation.title": "Enterprise Campus Aggregation",
|
|
518
|
-
"enterpriseCampus.availability": "Disponible
|
|
518
|
+
"enterpriseCampus.availability": "Disponible Dic 2024",
|
|
519
519
|
"enterpriseCampus24PoE.description": "Puertos 10 GbE de alta capacidad con salida PoE+++",
|
|
520
520
|
"enterpriseCampus24PoE.downlinkSpeed": "Hasta 10 Gbps",
|
|
521
521
|
"enterpriseCampus24PoE.title": "Enterprise Campus 24 PoE",
|
|
@@ -520,7 +520,7 @@ var fr = {
|
|
|
520
520
|
"enterpriseAccessHub.title": "Enterprise Access Hub",
|
|
521
521
|
"enterpriseAggregation.description": "Commutateur d'agrégation haute densité 100G QSFP28 / 25G SFP28",
|
|
522
522
|
"enterpriseAggregation.title": "Aggregation de l'Enterprise Campus",
|
|
523
|
-
"enterpriseCampus.availability": "Disponible
|
|
523
|
+
"enterpriseCampus.availability": "Disponible Déc 2024",
|
|
524
524
|
"enterpriseCampus24PoE.description": "Ports 10 GbE de haute capacité avec sortie PoE+++",
|
|
525
525
|
"enterpriseCampus24PoE.downlinkSpeed": "Jusqu'à 10 Gbps",
|
|
526
526
|
"enterpriseCampus24PoE.title": "Enterprise Campus 24 PoE",
|
|
@@ -515,7 +515,7 @@ var fr = {
|
|
|
515
515
|
"enterpriseAccessHub.title": "Enterprise Access Hub",
|
|
516
516
|
"enterpriseAggregation.description": "Commutateur d'agrégation haute densité 100G QSFP28 / 25G SFP28",
|
|
517
517
|
"enterpriseAggregation.title": "Aggregation de l'Enterprise Campus",
|
|
518
|
-
"enterpriseCampus.availability": "Disponible
|
|
518
|
+
"enterpriseCampus.availability": "Disponible Déc 2024",
|
|
519
519
|
"enterpriseCampus24PoE.description": "Ports 10 GbE de haute capacité avec sortie PoE+++",
|
|
520
520
|
"enterpriseCampus24PoE.downlinkSpeed": "Jusqu'à 10 Gbps",
|
|
521
521
|
"enterpriseCampus24PoE.title": "Enterprise Campus 24 PoE",
|
|
@@ -520,7 +520,7 @@ var it = {
|
|
|
520
520
|
"enterpriseAccessHub.title": "Enterprise Access Hub",
|
|
521
521
|
"enterpriseAggregation.description": "Switch di aggregazione ad alta densità 100G QSFP28 / 25G SFP28",
|
|
522
522
|
"enterpriseAggregation.title": "Enterprise Campus Aggregation",
|
|
523
|
-
"enterpriseCampus.availability": "Disponibile
|
|
523
|
+
"enterpriseCampus.availability": "Disponibile Dic 2024",
|
|
524
524
|
"enterpriseCampus24PoE.description": "Porte 10 GbE ad alta capacità con uscita PoE+++",
|
|
525
525
|
"enterpriseCampus24PoE.downlinkSpeed": "Fino a 10 Gbps",
|
|
526
526
|
"enterpriseCampus24PoE.title": "Enterprise Campus 24 PoE",
|
|
@@ -515,7 +515,7 @@ var it = {
|
|
|
515
515
|
"enterpriseAccessHub.title": "Enterprise Access Hub",
|
|
516
516
|
"enterpriseAggregation.description": "Switch di aggregazione ad alta densità 100G QSFP28 / 25G SFP28",
|
|
517
517
|
"enterpriseAggregation.title": "Enterprise Campus Aggregation",
|
|
518
|
-
"enterpriseCampus.availability": "Disponibile
|
|
518
|
+
"enterpriseCampus.availability": "Disponibile Dic 2024",
|
|
519
519
|
"enterpriseCampus24PoE.description": "Porte 10 GbE ad alta capacità con uscita PoE+++",
|
|
520
520
|
"enterpriseCampus24PoE.downlinkSpeed": "Fino a 10 Gbps",
|
|
521
521
|
"enterpriseCampus24PoE.title": "Enterprise Campus 24 PoE",
|
|
@@ -520,7 +520,7 @@ var ja = {
|
|
|
520
520
|
"enterpriseAccessHub.title": "Enterprise Access Hub",
|
|
521
521
|
"enterpriseAggregation.description": "高密度100G QSFP28 / 25G SFP28 Aggregationスイッチ",
|
|
522
522
|
"enterpriseAggregation.title": "エンタープライズキャンパス アグリゲーション",
|
|
523
|
-
"enterpriseCampus.availability": "12
|
|
523
|
+
"enterpriseCampus.availability": "2024年12月利用可能",
|
|
524
524
|
"enterpriseCampus24PoE.description": "高容量10 GbEポートとPoE+++出力",
|
|
525
525
|
"enterpriseCampus24PoE.downlinkSpeed": "最大 10 Gbps",
|
|
526
526
|
"enterpriseCampus24PoE.title": "Enterprise Campus 24 PoE",
|
|
@@ -515,7 +515,7 @@ var ja = {
|
|
|
515
515
|
"enterpriseAccessHub.title": "Enterprise Access Hub",
|
|
516
516
|
"enterpriseAggregation.description": "高密度100G QSFP28 / 25G SFP28 Aggregationスイッチ",
|
|
517
517
|
"enterpriseAggregation.title": "エンタープライズキャンパス アグリゲーション",
|
|
518
|
-
"enterpriseCampus.availability": "12
|
|
518
|
+
"enterpriseCampus.availability": "2024年12月利用可能",
|
|
519
519
|
"enterpriseCampus24PoE.description": "高容量10 GbEポートとPoE+++出力",
|
|
520
520
|
"enterpriseCampus24PoE.downlinkSpeed": "最大 10 Gbps",
|
|
521
521
|
"enterpriseCampus24PoE.title": "Enterprise Campus 24 PoE",
|
|
@@ -520,7 +520,7 @@ var ptBR = {
|
|
|
520
520
|
"enterpriseAccessHub.title": "Enterprise Access Hub",
|
|
521
521
|
"enterpriseAggregation.description": "Switch de agregação de alta densidade 100G QSFP28 / 25G SFP28",
|
|
522
522
|
"enterpriseAggregation.title": "Aggregation do Enterprise Campus",
|
|
523
|
-
"enterpriseCampus.availability": "Disponível
|
|
523
|
+
"enterpriseCampus.availability": "Disponível Dez 2024",
|
|
524
524
|
"enterpriseCampus24PoE.description": "Portas 10 GbE de alta capacidade com saída PoE+++",
|
|
525
525
|
"enterpriseCampus24PoE.downlinkSpeed": "Até 10 Gbps",
|
|
526
526
|
"enterpriseCampus24PoE.title": "Enterprise Campus 24 PoE",
|
|
@@ -515,7 +515,7 @@ var ptBR = {
|
|
|
515
515
|
"enterpriseAccessHub.title": "Enterprise Access Hub",
|
|
516
516
|
"enterpriseAggregation.description": "Switch de agregação de alta densidade 100G QSFP28 / 25G SFP28",
|
|
517
517
|
"enterpriseAggregation.title": "Aggregation do Enterprise Campus",
|
|
518
|
-
"enterpriseCampus.availability": "Disponível
|
|
518
|
+
"enterpriseCampus.availability": "Disponível Dez 2024",
|
|
519
519
|
"enterpriseCampus24PoE.description": "Portas 10 GbE de alta capacidade com saída PoE+++",
|
|
520
520
|
"enterpriseCampus24PoE.downlinkSpeed": "Até 10 Gbps",
|
|
521
521
|
"enterpriseCampus24PoE.title": "Enterprise Campus 24 PoE",
|
|
@@ -520,7 +520,7 @@ var zhHans = {
|
|
|
520
520
|
"enterpriseAccessHub.title": "Enterprise Access Hub",
|
|
521
521
|
"enterpriseAggregation.description": "高密度100G QSFP28 / 25G SFP28聚合交换机",
|
|
522
522
|
"enterpriseAggregation.title": "企业园区聚合",
|
|
523
|
-
"enterpriseCampus.availability": "
|
|
523
|
+
"enterpriseCampus.availability": "2024年12月可用",
|
|
524
524
|
"enterpriseCampus24PoE.description": "高容量10 GbE端口,带有PoE+++输出",
|
|
525
525
|
"enterpriseCampus24PoE.downlinkSpeed": "高达 10 Gbps",
|
|
526
526
|
"enterpriseCampus24PoE.title": "Enterprise Campus 24 PoE",
|
|
@@ -515,7 +515,7 @@ var zhHans = {
|
|
|
515
515
|
"enterpriseAccessHub.title": "Enterprise Access Hub",
|
|
516
516
|
"enterpriseAggregation.description": "高密度100G QSFP28 / 25G SFP28聚合交换机",
|
|
517
517
|
"enterpriseAggregation.title": "企业园区聚合",
|
|
518
|
-
"enterpriseCampus.availability": "
|
|
518
|
+
"enterpriseCampus.availability": "2024年12月可用",
|
|
519
519
|
"enterpriseCampus24PoE.description": "高容量10 GbE端口,带有PoE+++输出",
|
|
520
520
|
"enterpriseCampus24PoE.downlinkSpeed": "高达 10 Gbps",
|
|
521
521
|
"enterpriseCampus24PoE.title": "Enterprise Campus 24 PoE",
|
|
@@ -520,7 +520,7 @@ var zhHantTW = {
|
|
|
520
520
|
"enterpriseAccessHub.title": "企業存取中心",
|
|
521
521
|
"enterpriseAggregation.description": "高密度100G QSFP28 / 25G SFP28聚合交換器",
|
|
522
522
|
"enterpriseAggregation.title": "企業校園匯聚",
|
|
523
|
-
"enterpriseCampus.availability": "
|
|
523
|
+
"enterpriseCampus.availability": "2024年12月可用",
|
|
524
524
|
"enterpriseCampus24PoE.description": "高容量10 GbE端口,帶有PoE+++輸出",
|
|
525
525
|
"enterpriseCampus24PoE.downlinkSpeed": "高達10 Gbps",
|
|
526
526
|
"enterpriseCampus24PoE.title": "Enterprise Campus 24 PoE",
|
|
@@ -515,7 +515,7 @@ var zhHantTW = {
|
|
|
515
515
|
"enterpriseAccessHub.title": "企業存取中心",
|
|
516
516
|
"enterpriseAggregation.description": "高密度100G QSFP28 / 25G SFP28聚合交換器",
|
|
517
517
|
"enterpriseAggregation.title": "企業校園匯聚",
|
|
518
|
-
"enterpriseCampus.availability": "
|
|
518
|
+
"enterpriseCampus.availability": "2024年12月可用",
|
|
519
519
|
"enterpriseCampus24PoE.description": "高容量10 GbE端口,帶有PoE+++輸出",
|
|
520
520
|
"enterpriseCampus24PoE.downlinkSpeed": "高達10 Gbps",
|
|
521
521
|
"enterpriseCampus24PoE.title": "Enterprise Campus 24 PoE",
|
|
@@ -11,8 +11,8 @@ require('../assets/plus.svg.js');
|
|
|
11
11
|
var Layout_styles = require('./Layout.styles.js');
|
|
12
12
|
var CustomImage = require('../../../../../CustomImage/CustomImage.js');
|
|
13
13
|
var StyleableSvgImage = require('../../../../../StyleableSvgImage/StyleableSvgImage.js');
|
|
14
|
-
var MinusIcon = require("../../../../../../assets/
|
|
15
|
-
var PlusIcon = require("../../../../../../assets/
|
|
14
|
+
var MinusIcon = require("../../../../../../assets/minus5.svg");
|
|
15
|
+
var PlusIcon = require("../../../../../../assets/plus6.svg");
|
|
16
16
|
function _interopDefault(e) {
|
|
17
17
|
return e && e.__esModule ? e : {
|
|
18
18
|
default: e
|
|
@@ -9,8 +9,8 @@ import '../assets/plus.svg.mjs';
|
|
|
9
9
|
import { InputWrapper, Label, InputFlexWrapper } from './Layout.styles.mjs';
|
|
10
10
|
import { CustomImage } from '../../../../../CustomImage/CustomImage.mjs';
|
|
11
11
|
import { StyleableSvgImage } from '../../../../../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
12
|
-
import MinusIcon__default from "../../../../../../assets/
|
|
13
|
-
import PlusIcon__default from "../../../../../../assets/
|
|
12
|
+
import MinusIcon__default from "../../../../../../assets/minus5.svg";
|
|
13
|
+
import PlusIcon__default from "../../../../../../assets/plus6.svg";
|
|
14
14
|
"use strict";
|
|
15
15
|
const CounterSection = ({
|
|
16
16
|
value,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var MinusIcon = require("../../../../../../assets/
|
|
6
|
+
var MinusIcon = require("../../../../../../assets/minus5.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/
|
|
2
|
-
export { default } from "../../../../../../assets/
|
|
1
|
+
export * from "../../../../../../assets/minus5.svg";
|
|
2
|
+
export { default } from "../../../../../../assets/minus5.svg";
|
|
3
3
|
//# sourceMappingURL=minus.svg.mjs.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var PlusIcon = require("../../../../../../assets/
|
|
6
|
+
var PlusIcon = require("../../../../../../assets/plus6.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/
|
|
2
|
-
export { default } from "../../../../../../assets/
|
|
1
|
+
export * from "../../../../../../assets/plus6.svg";
|
|
2
|
+
export { default } from "../../../../../../assets/plus6.svg";
|
|
3
3
|
//# sourceMappingURL=plus.svg.mjs.map
|
|
@@ -19,8 +19,8 @@ var ComputeResourceCalculator_types = require('../../../../ComputeResourceCalcul
|
|
|
19
19
|
var CustomImage = require('../../../../../CustomImage/CustomImage.js');
|
|
20
20
|
var SearchIcon = require("../../../../../../assets/search2.svg");
|
|
21
21
|
var StyleableSvgImage = require('../../../../../StyleableSvgImage/StyleableSvgImage.js');
|
|
22
|
-
var MinusIcon = require("../../../../../../assets/
|
|
23
|
-
var PlusIcon = require("../../../../../../assets/
|
|
22
|
+
var MinusIcon = require("../../../../../../assets/minus4.svg");
|
|
23
|
+
var PlusIcon = require("../../../../../../assets/plus5.svg");
|
|
24
24
|
function _interopDefault(e) {
|
|
25
25
|
return e && e.__esModule ? e : {
|
|
26
26
|
default: e
|
|
@@ -17,8 +17,8 @@ import { isMessageFormatted } from '../../../../ComputeResourceCalculator/Comput
|
|
|
17
17
|
import { CustomImage } from '../../../../../CustomImage/CustomImage.mjs';
|
|
18
18
|
import SearchIcon__default from "../../../../../../assets/search2.svg";
|
|
19
19
|
import { StyleableSvgImage } from '../../../../../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
20
|
-
import MinusIcon__default from "../../../../../../assets/
|
|
21
|
-
import PlusIcon__default from "../../../../../../assets/
|
|
20
|
+
import MinusIcon__default from "../../../../../../assets/minus4.svg";
|
|
21
|
+
import PlusIcon__default from "../../../../../../assets/plus5.svg";
|
|
22
22
|
"use strict";
|
|
23
23
|
const NoopPlaceholder = () => /* @__PURE__ */jsx(Fragment, {});
|
|
24
24
|
const PoeConsumerSelectModal = ({
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var MinusIcon = require("../../../../../../assets/
|
|
6
|
+
var MinusIcon = require("../../../../../../assets/minus4.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/
|
|
2
|
-
export { default } from "../../../../../../assets/
|
|
1
|
+
export * from "../../../../../../assets/minus4.svg";
|
|
2
|
+
export { default } from "../../../../../../assets/minus4.svg";
|
|
3
3
|
//# sourceMappingURL=minus.svg.mjs.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var PlusIcon = require("../../../../../../assets/
|
|
6
|
+
var PlusIcon = require("../../../../../../assets/plus5.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/
|
|
2
|
-
export { default } from "../../../../../../assets/
|
|
1
|
+
export * from "../../../../../../assets/plus5.svg";
|
|
2
|
+
export { default } from "../../../../../../assets/plus5.svg";
|
|
3
3
|
//# sourceMappingURL=plus.svg.mjs.map
|
|
@@ -321,8 +321,8 @@ export declare const BUSINESS_COUNTRY_CODE_MAPPING: {
|
|
|
321
321
|
};
|
|
322
322
|
/**
|
|
323
323
|
* @see https://www.fonoa.com/blog/new-mandatory-rfc-validation-method-in-mexico
|
|
324
|
-
* A businesses RFC consists of 12
|
|
325
|
-
* (x = letters, y = numbers, z = alphanumeric)
|
|
324
|
+
* A businesses RFC consists of 12 characters with the following structure: xxxyyyyyyzzz
|
|
325
|
+
* (x = letters (including Ñ and &), y = numbers, z = alphanumeric)
|
|
326
326
|
*/
|
|
327
327
|
readonly MX: {
|
|
328
328
|
readonly validation: RegExp;
|
package/lib/constants/address.js
CHANGED
|
@@ -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
|
|
345
|
-
* (x = letters, y = numbers, z = alphanumeric)
|
|
344
|
+
* A businesses RFC consists of 12 characters with the following structure: xxxyyyyyyzzz
|
|
345
|
+
* (x = letters (including Ñ and &), y = numbers, z = alphanumeric)
|
|
346
346
|
*/
|
|
347
347
|
[generated.CountryCode.Mx]: {
|
|
348
|
-
validation: /^[A-Z]{3}
|
|
348
|
+
validation: /^[A-ZÑ&]{3}\d{6}[A-Z0-9]{3}$/i,
|
|
349
349
|
isOptional: false
|
|
350
350
|
}
|
|
351
351
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address.js","sources":["../../src/constants/address.ts"],"sourcesContent":["import { CountryCode, UserAssignedCountryCode } from \"../types\";\nimport { isCnpjValid, isCpfValid } from \"../utils/tax/brazil\";\n\n/**\n * Canada post code validation, we changed the regex from the url taken on by forcing a space in the middle (it's\n * optional there)\n * @see https://www.oreilly.com/library/view/regular-expressions-cookbook/9781449327453/ch04s15.html#:~:text=Aside%20from%20those%20two%20exceptions,for%20Canada%20Post's%20Ottawa%20headquarters.\n *\n * @deprecated with version 5.38.0 Use COUNTRY_CODE_POSTAL_CODE_REGEX\n */\nexport const CA_POSTAL_CODE_REGEX =\n /^(?!.*[DFIOQU])[A-VXY][0-9][A-Z] [0-9][A-Z][0-9]$/;\n\n/**\n * South Africa uses a simple 4-digit ZIP code pattern.\n * Unfortunately there doesn't seem have be pattern that some specific digits present a specific state/city that is\n * easily regex'able\n *\n * @deprecated with version 5.38.0 Use COUNTRY_CODE_POSTAL_CODE_REGEX\n */\nexport const ZA_POSTAL_CODE_REGEX = /^[0-9]{4}$/;\n\n/**\n * Mapping for postal code first letter to state province code.\n * Used for stricter postal code validation so zip code matches right state\n * Data taken from https://www12.statcan.gc.ca/census-recensement/2021/ref/dict/tab/index-eng.cfm?ID=t1_9\n * Related task: https://ubiquiti.atlassian.net/browse/NEP-1184?focusedCommentId=292248\n *\n * @deprecated use from packages/store.core/src/constants/postalCode.ts\n */\nexport const CA_POSTAL_CODE_PROVINCE_FIRST_CHARACTER = {\n A: [\"NL\"], // Newfoundland and Labrador\n B: [\"NS\"], // Nova Scotia\n C: [\"PE\"], // Prince Edward Island\n E: [\"NB\"], // New Brunswick\n G: [\"QC\"], // Eastern Quebec\n H: [\"QC\"], // Metropolitan Montréal\n J: [\"QC\"], // Western Quebec\n K: [\"ON\"], // Eastern Ontario\n L: [\"ON\"], // Central Ontario\n M: [\"ON\"], // Metropolitan Toronto\n N: [\"ON\"], // Southwestern Ontario\n P: [\"ON\"], // Northern Ontario\n R: [\"MB\"], // Manitoba\n S: [\"SK\"], // Saskatchewan\n T: [\"AB\"], // Alberta\n V: [\"BC\"], // British Columbia\n X: [\"NU\", \"NT\"], // Northwest Territories and Nunavut\n Y: [\"YT\"], // Yukon\n};\n\n/**\n * Static regex patterns to validate TAX number possibility\n * ! It does not guarantee that it's a registered TAX nubmer in the country it belongs in !\n */\nexport const BUSINESS_COUNTRY_CODE_MAPPING = {\n // #############################################################################\n // Europe VIES country patterns\n //\n // Links:\n // - Main source for pattens (see Question #11) - https://ec.europa.eu/taxation_customs/vies/#/faq\n // - Alternative source for patterns -\n // https://www.avalara.com/vatlive/en/eu-vat-rules/eu-vat-number-registration/eu-vat-number-formats.html\n // - General info about VAT numbers - https://en.wikipedia.org/wiki/VAT_identification_number\n //\n // HACK: For user convenience:\n // - Make the vat number country prefix optional (\"DE\" in \"DE999999999\") as we will normalise it inside of the VIES\n // service!\n // - Match result case-insensitive, we can easily uppercase it in the service\n // #############################################################################\n /**\n * Austria - 1 block of 9 characters and The 1st position following the prefix is always \"U\"\n */\n [CountryCode.At]: {\n validation: /^(AT)?U[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Belgium - 1 block of 10 digits - First digit after prefix is either 0 or 1\n */\n [CountryCode.Be]: {\n validation: /^(BE)?[0,1]{1}[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Bulgaria - 1 block of 9 digits or 1 block of 10 digits\n */\n [CountryCode.Bg]: {\n validation: /^(BG)?[0-9]{9,10}$/i,\n isOptional: false,\n },\n /**\n * Cyprus - 1 block of 8 digits and trailing letter\n */\n [CountryCode.Cy]: {\n validation: /^(CY)?[0-9]{8}[A-Z]$/i,\n isOptional: false,\n },\n /**\n * Czech Republic - 1 block of either 8, 9 or 10 digits\n */\n [CountryCode.Cz]: {\n validation: /^(CZ)?[0-9]{8,10}$/i,\n isOptional: false,\n },\n /**\n * Germany - 9 digits\n */\n [CountryCode.De]: {\n validation: /^(DE)?[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Denmark - 8 digits\n */\n [CountryCode.Dk]: {\n validation: /^(DK)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Estonia - 9 digits\n */\n [CountryCode.Ee]: {\n validation: /^(EE)?[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Greece - 9 digits\n * Note: We are using \"EL\" instead of its country code \"GR\" for prefix as per European Commission requirements, this\n * only affects how we validate it against VIES\n * @see https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Imperfect_implementations\n */\n [UserAssignedCountryCode.El]: {\n validation: /^(EL)?[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Spain - 9 characters Includes 1 or 2 alphabetical characters (first or last or first and last)\n * Note: We can reduce the pattern 2 regex or-pattern where:\n * 1. Handles scenario with leading letter and optional trailing letter\n * 2. Handles scenario with just trailing letter\n */\n [CountryCode.Es]: {\n validation: /^(ES)?(([A-Z][0-9]{7}[0-9A-Z])|([0-9]{8}[A-Z]))$/i,\n isOptional: false,\n },\n /**\n * Finland - 1 block of 8 digits\n */\n [CountryCode.Fi]: {\n validation: /^(FI)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * France & Monaco - 11 characters May include alphabetical characters (any except O or I) as first or second or first and\n * second characters\n *\n * TODO: Maybe add stricter validation for the invalid \"O\" and \"I\" characters (need to find a source that validates it)\n *\n * Fun-fact: France has actual math behind how they calculate the first 2 digits as they are a validation key, but we\n * don't require such a strict pattern as we would just end up doing actual checking up against Europe VIES\n * @see https://stackoverflow.com/a/33627030\n * @see https://en.wikipedia.org/wiki/VAT_identification_number\n */\n [UserAssignedCountryCode.Fr]: {\n validation: /^(FR)?[0-9A-Z]{2}[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Croatia - 1 block of 11 digits\n */\n [CountryCode.Hr]: {\n validation: /^(HR)?[0-9]{11}$/i,\n isOptional: false,\n },\n /**\n * Hungary - 1 block of 8 digits\n */\n [CountryCode.Hu]: {\n validation: /^(HU)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Ireland - 8 or 9 characters. Includes one or two alphabetical characters (last, or second and last, or last 2)\n *\n * It kinda has 3 styles:\n * - IE9S99999L (legacy, afaik WIKI told it's being phased out)\n * - IE9999999L\n * - IE9999999WI\n * @see https://en.wikipedia.org/wiki/VAT_identification_number\n */\n [CountryCode.Ie]: {\n validation: /^(IE)?[0-9][0-9A-Z][0-9]{5}[A-Z]{1,2}$/i,\n isOptional: false,\n },\n /**\n * Italy - 1 block of 11 digits\n */\n [CountryCode.It]: {\n validation: /^(IT)?[0-9]{11}$/i,\n isOptional: false,\n },\n /**\n * Lithuania - 1 block of 9 digits, or 1 block of 12 digits\n */\n [CountryCode.Lt]: {\n validation: /^(LT)?([0-9]{9}|[0-9]{12})$/i,\n isOptional: false,\n },\n /**\n * Luxembourg - 1 block of 8 digits\n */\n [CountryCode.Lu]: {\n validation: /^(LU)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Latvia - 1 block of 11 digits\n */\n [CountryCode.Lv]: {\n validation: /^(LV)?[0-9]{11}$/i,\n isOptional: false,\n },\n /**\n * Malta - 1 block of 8 digits\n */\n [CountryCode.Mt]: {\n validation: /^(MT)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Netherlands - 9 digits, the letter \"B\" and 2 \"check\" digits\n * @see https://business.gov.nl/regulation/using-checking-vat-numbers/\n *\n * Fun-fact: Avatax VAT reference link has a mistake of using \"BO2\" instead of \"B02\" for VAT group companies e.g https://eriks.com/en/contact/thank-you/\n */\n [CountryCode.Nl]: {\n validation: /^(NL)?[0-9]{9}B[0-9]{2}$/i,\n isOptional: false,\n },\n /**\n * Poland - 1 block of 10 digits\n */\n [CountryCode.Pl]: {\n validation: /^(PL)?[0-9]{10}$/i,\n isOptional: false,\n },\n /**\n * Portugal - 1 block of 9 digits\n */\n [CountryCode.Pt]: {\n validation: /^(PT)?[0-9]{9}$/i,\n isOptional: false,\n },\n /**\n * Romania - 1 block of minimum 2 digits and maximum 10 digits\n *\n * Note: Wasn't able to find an official Romanian doc that validates this pattern as internet had mixed info about it,\n * but sticking with EU VIES recommended 2-10 digits\n */\n [CountryCode.Ro]: {\n validation: /^(RO)?[0-9]{2,10}$/i,\n isOptional: false,\n },\n /**\n * Sweden - 1 block of 12 digits\n */\n [CountryCode.Se]: {\n validation: /^(SE)?[0-9]{12}$/i,\n isOptional: false,\n },\n /**\n * Slovenia - 1 block of 8 digits\n */\n [CountryCode.Si]: {\n validation: /^(SI)?[0-9]{8}$/i,\n isOptional: false,\n },\n /**\n * Slovakia - 1 block of 10 digits\n */\n [CountryCode.Sk]: {\n validation: /^(SK)?[0-9]{10}$/i,\n isOptional: false,\n },\n /**\n * Northern Ireland - 1 block of 3 digits, 1 block of 4 digits and 1 block of 2 digits; or the above followed by a block of 3 digits; or 1 block of 5 characters\n */\n [UserAssignedCountryCode.Xi]: {\n validation: /^(XI)?([0-9]{9}([0-9]{3})?|[A-Z]{2}[0-9]{3})$/i,\n isOptional: false,\n },\n // #############################################################################\n // Eurozone\n // #############################################################################\n /**\n * United Kingdom except (Northern Ireland a.k.a Xi)\n * @see https://www.gov.uk/register-for-vat/selling-or-moving-goods-between-northern-ireland-and-the-eu\n */\n [CountryCode.Gb]: {\n validation: /^(GB)?([0-9]{9}([0-9]{3})?|[A-Z]{2}[0-9]{3})$/i,\n isOptional: false,\n },\n /**\n * Norway - \"NO\" optional prefix, 9 digits, \"MVA\" optional suffix\n * @see https://www.avalara.com/vatlive/en/eu-vat-rules/eu-vat-number-registration/eu-vat-number-formats.html\n * @see https://vatstack.com/articles/norway-vat-number-validation\n * @see https://en.wikipedia.org/wiki/VAT_identification_number#:~:text=e.g.%20MK4032013544513-,Norway,-Organisasjonsnummer%0AOrganization%20number\n */\n [CountryCode.No]: {\n validation: /^(NO)?[0-9]{9}(MVA)?$/i,\n isOptional: false,\n },\n // TODO: should we add Switzerland? see https://www.avalara.com/vatlive/en/eu-vat-rules/eu-vat-number-registration/eu-vat-number-formats.html\n // Switzerland\n // [CountryCode.Ch]: ...\n // #############################################################################\n // Other (one-of's)\n // #############################################################################\n /**\n * United Arab Emirates - 1 block of 15 digits\n *\n * Note: no source for this found, using format based on UI AE TRN\n * Note: AE TRN does not use a country prefix\n */\n [CountryCode.Ae]: {\n validation: /^[0-9]{15}$/i,\n isOptional: false,\n },\n /**\n * South Africa - as per links below, should accept input that starts with 4 and following 9 digits.\n * @see https://secure.sarsefiling.co.za/vatvendorsearch.aspx\n * @see https://secure.sarsefiling.co.za/VATVendorSearch/application/help.html\n */\n [CountryCode.Za]: {\n validation: /^4[0-9]{9}$/i,\n isOptional: false,\n },\n\n [CountryCode.Br]: {\n validation: isCnpjValid,\n isOptional: false,\n },\n\n [CountryCode.In]: {\n validation: /^[0-9A-Z]{15}$/,\n isOptional: false,\n },\n\n [CountryCode.Tw]: {\n validation: /^[0-9A-Z]{8}$/,\n isOptional: false,\n },\n\n /**\n * @see https://www.fonoa.com/blog/new-mandatory-rfc-validation-method-in-mexico\n * A businesses RFC consists of 12 digits with the following structure: xxxyyyyyyzzz\n * (x = letters, y = numbers, z = alphanumeric)\n */\n [CountryCode.Mx]: {\n validation: /^[A-Z]{3}[0-9]{6}[0-9A-Z]{3}$/i,\n isOptional: false,\n },\n} as const;\n// FIXME: once we upgrade to Next 13 which supports typescript satisfies we can use this to make th pattern stricter\n// FIXME: \"isOptional: false\" could be safely removed once we use the \"satisfies\" as we only care about cases when \"isOptional: true\". It was added just to make TS happy.\n// } satisfies CountryTaxValidationMapping;\n\nexport const RESIDENTIAL_COUNTRY_CODE_MAPPING = {\n // #############################################################################\n // Other (one-of's)\n // #############################################################################\n [CountryCode.Br]: {\n validation: isCpfValid,\n isOptional: false,\n },\n\n [CountryCode.In]: {\n validation: /^[0-9A-Z]{15}$/,\n isOptional: true,\n },\n} as const;\n// FIXME: once we upgrade to Next 13 which supports typescript satisfies we can use this to make th pattern stricter\n// FIXME: \"isOptional: false\" could be safely removed once we use the \"satisfies\" as we only care about cases when \"isOptional: true\". It was added just to make TS happy.\n// } satisfies CountryTaxValidationMapping;\n\n/**\n * Set of type-safe rules that we use in `getUserAssignedCountryCode` to determine UserAssignedCountryCode\n */\nexport const USER_ASSIGNED_COUNTRY_MAPPING_RULES = {\n [UserAssignedCountryCode.Xi]: [\n [CountryCode.Gb, \"NIR\"], // Northern Ireland\n ],\n [UserAssignedCountryCode.El]: [\n [CountryCode.Gr], // Greece\n ],\n [UserAssignedCountryCode.Fr]: [\n [CountryCode.Fr], // France\n [CountryCode.Mc], // Monaco\n ],\n // FIXME: once we upgrade to Next 13 which supports typescript satisfies we can use this to make th pattern stricter\n} as {\n [key in UserAssignedCountryCode]: [\n countryCode: CountryCode,\n province?: string,\n ][];\n};\n\n/**\n * List of found alternative province names that results\n * from Google Places API. This is used to map the alternative\n * province name to the correct province code for auto-fill.\n */\nexport const ALTERNATIVE_PROVINCE_NAMES: {\n [key in CountryCode]?: Record<string, string>;\n} = {\n // United Arab Emirates\n [CountryCode.Ae]: {\n \"Ras al Khaimah\": \"RK\",\n \"Umm Al Quawain\": \"UQ\",\n },\n // Ireland\n [CountryCode.Ie]: {\n \"County Kildare\": \"KE\",\n \"County Kilkenny\": \"KK\",\n },\n};\n"],"names":["CA_POSTAL_CODE_REGEX","ZA_POSTAL_CODE_REGEX","CA_POSTAL_CODE_PROVINCE_FIRST_CHARACTER","A","B","C","E","G","H","J","K","L","M","N","P","R","S","T","V","X","Y","BUSINESS_COUNTRY_CODE_MAPPING","CountryCode","At","validation","isOptional","Be","Bg","Cy","Cz","De","Dk","Ee","UserAssignedCountryCode","El","Es","Fi","Fr","Hr","Hu","Ie","It","Lt","Lu","Lv","Mt","Nl","Pl","Pt","Ro","Se","Si","Sk","Xi","Gb","No","Ae","Za","Br","isCnpjValid","In","Tw","Mx","RESIDENTIAL_COUNTRY_CODE_MAPPING","isCpfValid","USER_ASSIG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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 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,CAAA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AkB,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
|
|
343
|
-
* (x = letters, y = numbers, z = alphanumeric)
|
|
342
|
+
* A businesses RFC consists of 12 characters with the following structure: xxxyyyyyyzzz
|
|
343
|
+
* (x = letters (including Ñ and &), y = numbers, z = alphanumeric)
|
|
344
344
|
*/
|
|
345
345
|
[CountryCode.Mx]: {
|
|
346
|
-
validation: /^[A-Z]{3}
|
|
346
|
+
validation: /^[A-ZÑ&]{3}\d{6}[A-Z0-9]{3}$/i,
|
|
347
347
|
isOptional: false
|
|
348
348
|
}
|
|
349
349
|
};
|