@adyen/kyc-components 3.3.1 → 3.3.2
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.
|
@@ -19133,6 +19133,23 @@ const defaultFieldConfig$2 = {
|
|
|
19133
19133
|
}
|
|
19134
19134
|
}
|
|
19135
19135
|
},
|
|
19136
|
+
[CountryCodes.Sweden]: {
|
|
19137
|
+
label: "branchCode",
|
|
19138
|
+
validators: validatePatternOnBlur(/^\d{4,5}$/),
|
|
19139
|
+
mask: {
|
|
19140
|
+
mask: makeMask(...numericInputs(4), ...nonInputs(" - ", {
|
|
19141
|
+
displayEagerly: false
|
|
19142
|
+
}), ...numericInputs(1, true))
|
|
19143
|
+
},
|
|
19144
|
+
guidanceText: {
|
|
19145
|
+
key: "enterXToYDigitsForExample",
|
|
19146
|
+
values: {
|
|
19147
|
+
minDigits: "4",
|
|
19148
|
+
maxDigits: "5",
|
|
19149
|
+
example: "5678 or 7635-2"
|
|
19150
|
+
}
|
|
19151
|
+
}
|
|
19152
|
+
},
|
|
19136
19153
|
// Not yet implemented
|
|
19137
19154
|
[CountryCodes.Indonesia]: {
|
|
19138
19155
|
label: "clearingCode",
|
|
@@ -19323,18 +19340,20 @@ const ibanMask = (country2, inputLength, includesBankCode) => {
|
|
|
19323
19340
|
const tokens = [];
|
|
19324
19341
|
tokens.push(...nonInputs(country2, {
|
|
19325
19342
|
includeInValue: true
|
|
19326
|
-
}), ...numericInputs(2)
|
|
19343
|
+
}), ...numericInputs(2));
|
|
19327
19344
|
inputLength -= 2;
|
|
19328
19345
|
if (includesBankCode) {
|
|
19329
|
-
tokens.push(...alphaInputs(4)
|
|
19346
|
+
tokens.push(spacer, ...alphaInputs(4));
|
|
19330
19347
|
inputLength -= 4;
|
|
19331
19348
|
}
|
|
19332
19349
|
const numGroups = Math.floor(inputLength / 4);
|
|
19333
19350
|
const remainder = inputLength % 4;
|
|
19334
19351
|
for (let i = 0; i < numGroups; i += 1) {
|
|
19335
|
-
tokens.push(...numericInputs(4)
|
|
19352
|
+
tokens.push(spacer, ...numericInputs(4));
|
|
19353
|
+
}
|
|
19354
|
+
if (remainder > 0) {
|
|
19355
|
+
tokens.push(spacer, ...numericInputs(remainder));
|
|
19336
19356
|
}
|
|
19337
|
-
tokens.push(...numericInputs(remainder));
|
|
19338
19357
|
return {
|
|
19339
19358
|
mask: {
|
|
19340
19359
|
tokens
|
|
@@ -19372,21 +19391,24 @@ const defaultFieldConfig$1 = {
|
|
|
19372
19391
|
[CountryCodes.Croatia]: ibanMetadata(CountryCodes.Croatia, 19, "HR51 2484 0083 5929 6973 8"),
|
|
19373
19392
|
[CountryCodes.Cyprus]: ibanMetadata(CountryCodes.Cyprus, 26, "CY16 5183 1221 8756 5858 5388 7678"),
|
|
19374
19393
|
[CountryCodes.CzechRepublic]: ibanMetadata(CountryCodes.CzechRepublic, 22, "CZ23 5051 3674 5924 5233 3465"),
|
|
19394
|
+
[CountryCodes.Denmark]: ibanMetadata(CountryCodes.Denmark, 16, "DK95 2000 0123 4567 89"),
|
|
19375
19395
|
[CountryCodes.Estonia]: ibanMetadata(CountryCodes.Estonia, 18, "EE26 1291 5123 1542 6371"),
|
|
19376
19396
|
[CountryCodes.Finland]: ibanMetadata(CountryCodes.Finland, 16, "FI03 9319 8995 3742 51"),
|
|
19377
19397
|
[CountryCodes.Germany]: ibanMetadata(CountryCodes.Germany, 20, "DE91 1000 0000 0123 4567 89"),
|
|
19378
19398
|
[CountryCodes.Greece]: ibanMetadata(CountryCodes.Greece, 25, "GR57 0107 7142 7681 6687 9575 217"),
|
|
19379
19399
|
[CountryCodes.Hungary]: ibanMetadata(CountryCodes.Hungary, 26, "HU68 1070 0024 3428 4128 3192 4812"),
|
|
19380
|
-
[CountryCodes.Italy]: ibanMetadata(CountryCodes.Italy, 25, "IT06 L030 0203 2809 8485 8934 882"),
|
|
19381
19400
|
[CountryCodes.Lithuania]: ibanMetadata(CountryCodes.Lithuania, 18, "LT59 9244 6228 2176 2762"),
|
|
19382
19401
|
[CountryCodes.Luxembourg]: ibanMetadata(CountryCodes.Luxembourg, 18, "LU71 0106 9242 5365 8562"),
|
|
19383
|
-
[CountryCodes.
|
|
19402
|
+
[CountryCodes.Norway]: ibanMetadata(CountryCodes.Norway, 13, "NO83 3000 1234 567"),
|
|
19403
|
+
[CountryCodes.Poland]: ibanMetadata(CountryCodes.Poland, 26, "PL98 1090 2402 7474 4662 2173 1624"),
|
|
19384
19404
|
[CountryCodes.Portugal]: ibanMetadata(CountryCodes.Portugal, 23, "PT42 0035 0651 8646 9119 5263 5"),
|
|
19385
19405
|
[CountryCodes.Slovakia]: ibanMetadata(CountryCodes.Slovakia, 22, "SK25 5173 1333 4916 3219 3521"),
|
|
19406
|
+
[CountryCodes.Slovenia]: ibanMetadata(CountryCodes.Slovenia, 17, "SI56 1920 0123 4567 892"),
|
|
19386
19407
|
[CountryCodes.Spain]: ibanMetadata(CountryCodes.Spain, 22, "ES76 1465 5599 9226 7623 2635"),
|
|
19408
|
+
[CountryCodes.Sweden]: ibanMetadata(CountryCodes.Sweden, 22, "SE72 8000 0810 3400 0978 3242"),
|
|
19387
19409
|
// These include 4-letter bank codes
|
|
19388
|
-
[CountryCodes.Bulgaria]: ibanMetadata(CountryCodes.Bulgaria, 20, "
|
|
19389
|
-
[CountryCodes.Gibraltar]: ibanMetadata(CountryCodes.Gibraltar, 21, "
|
|
19410
|
+
[CountryCodes.Bulgaria]: ibanMetadata(CountryCodes.Bulgaria, 20, "BG17 BNPA 9440 4432 7749 93", true),
|
|
19411
|
+
[CountryCodes.Gibraltar]: ibanMetadata(CountryCodes.Gibraltar, 21, "GI96 JYJT 9899 9587 8655 898", true),
|
|
19390
19412
|
[CountryCodes.Ireland]: ibanMetadata(CountryCodes.Ireland, 20, "IE64 IRCE 9205 0112 3456 78", true),
|
|
19391
19413
|
[CountryCodes.Latvia]: ibanMetadata(CountryCodes.Latvia, 19, "LV80 BANK 0000 4351 9500 1", true),
|
|
19392
19414
|
[CountryCodes.Malta]: ibanMetadata(CountryCodes.Malta, 29, "MT03 VIXW 2487 8926 8575 8586 8929 858", true),
|
|
@@ -19404,21 +19426,43 @@ const defaultFieldConfig$1 = {
|
|
|
19404
19426
|
mask: {
|
|
19405
19427
|
mask: makeMask(...nonInputs("FR", {
|
|
19406
19428
|
includeInValue: true
|
|
19407
|
-
}), ...numericInputs(2), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(
|
|
19429
|
+
}), ...numericInputs(2), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(2), ...alphanumericInputs(2), spacer, ...alphanumericInputs(4), spacer, ...alphanumericInputs(4), spacer, ...alphanumericInputs(1), ...numericInputs(2)),
|
|
19408
19430
|
transformOnType: uppercase
|
|
19409
19431
|
},
|
|
19410
19432
|
guidanceText: ibanGuidance("characters", 25, "FR64 1009 6000 4035 3425 9742 Y90")
|
|
19411
19433
|
},
|
|
19434
|
+
[CountryCodes.Italy]: {
|
|
19435
|
+
label: "iban",
|
|
19436
|
+
validators: validateIbanOnBlurAndInput(CountryCodes.Italy),
|
|
19437
|
+
mask: {
|
|
19438
|
+
mask: makeMask(...nonInputs("IT", {
|
|
19439
|
+
includeInValue: true
|
|
19440
|
+
}), ...numericInputs(2), spacer, ...alphaInputs(1), ...numericInputs(3), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(3)),
|
|
19441
|
+
transformOnType: uppercase
|
|
19442
|
+
},
|
|
19443
|
+
guidanceText: ibanGuidance("characters", 25, "IT06 L030 0203 2809 8485 8934 882")
|
|
19444
|
+
},
|
|
19412
19445
|
[CountryCodes.Liechtenstein]: {
|
|
19413
19446
|
label: "iban",
|
|
19414
19447
|
validators: validateIbanOnBlurAndInput(CountryCodes.Liechtenstein),
|
|
19415
19448
|
mask: {
|
|
19416
|
-
mask: makeMask(...nonInputs("
|
|
19449
|
+
mask: makeMask(...nonInputs("LI", {
|
|
19417
19450
|
includeInValue: true
|
|
19418
|
-
}), ...numericInputs(2), spacer, ...numericInputs(4), spacer, ...numericInputs(
|
|
19451
|
+
}), ...numericInputs(2), spacer, ...numericInputs(4), spacer, ...numericInputs(1), ...alphanumericInputs(3), spacer, ...alphanumericInputs(4), spacer, ...alphanumericInputs(3), ...alphanumericInputs(1), spacer, ...alphanumericInputs(1)),
|
|
19419
19452
|
transformOnType: uppercase
|
|
19420
19453
|
},
|
|
19421
19454
|
guidanceText: ibanGuidance("characters", 19, "LI21 0881 0000 2324 013A A")
|
|
19455
|
+
},
|
|
19456
|
+
[CountryCodes.Monaco]: {
|
|
19457
|
+
label: "iban",
|
|
19458
|
+
validators: validateIbanOnBlurAndInput(CountryCodes.Monaco),
|
|
19459
|
+
mask: {
|
|
19460
|
+
mask: makeMask(...nonInputs("MC", {
|
|
19461
|
+
includeInValue: true
|
|
19462
|
+
}), ...numericInputs(2), spacer, ...numericInputs(4), spacer, ...numericInputs(4), spacer, ...numericInputs(2), ...alphanumericInputs(2), spacer, ...alphanumericInputs(4), spacer, ...alphanumericInputs(4), spacer, ...alphanumericInputs(1), ...numericInputs(2)),
|
|
19463
|
+
transformOnType: uppercase
|
|
19464
|
+
},
|
|
19465
|
+
guidanceText: ibanGuidance("characters", 25, "MC58 1122 2000 0101 2345 6789 030")
|
|
19422
19466
|
}
|
|
19423
19467
|
};
|
|
19424
19468
|
const ibanFields = ["iban"];
|