@incodetech/web 0.0.0-dev-20260930-3196371b → 0.0.0-dev-20261001-c9faf7b3
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/dist/{countryDefinitions--cMU_Kz7.js → countryDefinitions-BO9OSKQO.js} +180 -90
- package/dist/{countryFlag-2Eus706D.js → countryFlag-2Vj85OIZ.js} +1 -1
- package/dist/{countrySelector-CSCwfx5N.js → countrySelector-BoKb6o0P.js} +1 -1
- package/dist/dynamic-forms/dynamic-forms.es.js +1 -1
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/{ekybModule-DIGcjN-y.js → ekybModule-ChIL1suM.js} +1 -1
- package/dist/ekybModule-G00AuJr2.js +2 -0
- package/dist/ekyc/ekyc.es.js +1 -1
- package/dist/{ekycModule-BNWNehQg.js → ekycModule-BVQGo3cX.js} +1 -1
- package/dist/ekycModule-Cgx-oeZY.js +2 -0
- package/dist/extensibility.es.js +2 -2
- package/dist/{flipAnimation-D1rfA-aI.js → flipAnimation-CwQZBHO1.js} +1 -1
- package/dist/flow/flow.es.js +1 -1
- package/dist/id/id.es.js +1 -1
- package/dist/identity-reuse/identity-reuse.es.js +1 -1
- package/dist/phone/phone.es.js +1 -1
- package/dist/{phoneInputComposed-Dp0-RNom.js → phoneInputComposed-CmgLZDjI.js} +75 -15
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +1 -1
- package/dist/{resolveApiKey-Dg3Xxga5.js → resolveApiKey-CoEplwB1.js} +3 -3
- package/dist/{smsTabContent-CSDI5ioJ.js → smsTabContent-BTGmTtkz.js} +1 -1
- package/dist/{watchlistForBusiness-CMHR-Tac.js → watchlistForBusiness-CozLq467.js} +1 -1
- package/dist/workflow/workflow.es.js +1 -1
- package/package.json +2 -2
- package/dist/ekybModule-IWxyEVab.js +0 -2
- package/dist/ekycModule-CBxbmZ6Y.js +0 -2
|
@@ -3,452 +3,542 @@ var countryDefinitions = {
|
|
|
3
3
|
MX: {
|
|
4
4
|
alpha3: "MEX",
|
|
5
5
|
emoji: "🇲🇽",
|
|
6
|
-
name: "Mexico"
|
|
6
|
+
name: "Mexico",
|
|
7
|
+
callingCode: "+52"
|
|
7
8
|
},
|
|
8
9
|
US: {
|
|
9
10
|
alpha3: "USA",
|
|
10
11
|
emoji: "🇺🇸",
|
|
11
|
-
name: "United States"
|
|
12
|
+
name: "United States",
|
|
13
|
+
callingCode: "+1"
|
|
12
14
|
},
|
|
13
15
|
CA: {
|
|
14
16
|
alpha3: "CAN",
|
|
15
17
|
emoji: "🇨🇦",
|
|
16
|
-
name: "Canada"
|
|
18
|
+
name: "Canada",
|
|
19
|
+
callingCode: "+1"
|
|
17
20
|
},
|
|
18
21
|
GB: {
|
|
19
22
|
alpha3: "GBR",
|
|
20
23
|
emoji: "🇬🇧",
|
|
21
|
-
name: "United Kingdom"
|
|
24
|
+
name: "United Kingdom",
|
|
25
|
+
callingCode: "+44"
|
|
22
26
|
},
|
|
23
27
|
DE: {
|
|
24
28
|
alpha3: "DEU",
|
|
25
29
|
emoji: "🇩🇪",
|
|
26
|
-
name: "Germany"
|
|
30
|
+
name: "Germany",
|
|
31
|
+
callingCode: "+49"
|
|
27
32
|
},
|
|
28
33
|
FR: {
|
|
29
34
|
alpha3: "FRA",
|
|
30
35
|
emoji: "🇫🇷",
|
|
31
|
-
name: "France"
|
|
36
|
+
name: "France",
|
|
37
|
+
callingCode: "+33"
|
|
32
38
|
},
|
|
33
39
|
ES: {
|
|
34
40
|
alpha3: "ESP",
|
|
35
41
|
emoji: "🇪🇸",
|
|
36
|
-
name: "Spain"
|
|
42
|
+
name: "Spain",
|
|
43
|
+
callingCode: "+34"
|
|
37
44
|
},
|
|
38
45
|
IT: {
|
|
39
46
|
alpha3: "ITA",
|
|
40
47
|
emoji: "🇮🇹",
|
|
41
|
-
name: "Italy"
|
|
48
|
+
name: "Italy",
|
|
49
|
+
callingCode: "+39"
|
|
42
50
|
},
|
|
43
51
|
BR: {
|
|
44
52
|
alpha3: "BRA",
|
|
45
53
|
emoji: "🇧🇷",
|
|
46
|
-
name: "Brazil"
|
|
54
|
+
name: "Brazil",
|
|
55
|
+
callingCode: "+55"
|
|
47
56
|
},
|
|
48
57
|
AR: {
|
|
49
58
|
alpha3: "ARG",
|
|
50
59
|
emoji: "🇦🇷",
|
|
51
|
-
name: "Argentina"
|
|
60
|
+
name: "Argentina",
|
|
61
|
+
callingCode: "+54"
|
|
52
62
|
},
|
|
53
63
|
CO: {
|
|
54
64
|
alpha3: "COL",
|
|
55
65
|
emoji: "🇨🇴",
|
|
56
|
-
name: "Colombia"
|
|
66
|
+
name: "Colombia",
|
|
67
|
+
callingCode: "+57"
|
|
57
68
|
},
|
|
58
69
|
CL: {
|
|
59
70
|
alpha3: "CHL",
|
|
60
71
|
emoji: "🇨🇱",
|
|
61
|
-
name: "Chile"
|
|
72
|
+
name: "Chile",
|
|
73
|
+
callingCode: "+56"
|
|
62
74
|
},
|
|
63
75
|
PE: {
|
|
64
76
|
alpha3: "PER",
|
|
65
77
|
emoji: "🇵🇪",
|
|
66
|
-
name: "Peru"
|
|
78
|
+
name: "Peru",
|
|
79
|
+
callingCode: "+51"
|
|
67
80
|
},
|
|
68
81
|
AU: {
|
|
69
82
|
alpha3: "AUS",
|
|
70
83
|
emoji: "🇦🇺",
|
|
71
|
-
name: "Australia"
|
|
84
|
+
name: "Australia",
|
|
85
|
+
callingCode: "+61"
|
|
72
86
|
},
|
|
73
87
|
NZ: {
|
|
74
88
|
alpha3: "NZL",
|
|
75
89
|
emoji: "🇳🇿",
|
|
76
|
-
name: "New Zealand"
|
|
90
|
+
name: "New Zealand",
|
|
91
|
+
callingCode: "+64"
|
|
77
92
|
},
|
|
78
93
|
JP: {
|
|
79
94
|
alpha3: "JPN",
|
|
80
95
|
emoji: "🇯🇵",
|
|
81
|
-
name: "Japan"
|
|
96
|
+
name: "Japan",
|
|
97
|
+
callingCode: "+81"
|
|
82
98
|
},
|
|
83
99
|
KR: {
|
|
84
100
|
alpha3: "KOR",
|
|
85
101
|
emoji: "🇰🇷",
|
|
86
|
-
name: "South Korea"
|
|
102
|
+
name: "South Korea",
|
|
103
|
+
callingCode: "+82"
|
|
87
104
|
},
|
|
88
105
|
CN: {
|
|
89
106
|
alpha3: "CHN",
|
|
90
107
|
emoji: "🇨🇳",
|
|
91
|
-
name: "China"
|
|
108
|
+
name: "China",
|
|
109
|
+
callingCode: "+86"
|
|
92
110
|
},
|
|
93
111
|
IN: {
|
|
94
112
|
alpha3: "IND",
|
|
95
113
|
emoji: "🇮🇳",
|
|
96
|
-
name: "India"
|
|
114
|
+
name: "India",
|
|
115
|
+
callingCode: "+91"
|
|
97
116
|
},
|
|
98
117
|
RU: {
|
|
99
118
|
alpha3: "RUS",
|
|
100
119
|
emoji: "🇷🇺",
|
|
101
|
-
name: "Russia"
|
|
120
|
+
name: "Russia",
|
|
121
|
+
callingCode: "+7"
|
|
102
122
|
},
|
|
103
123
|
ZA: {
|
|
104
124
|
alpha3: "ZAF",
|
|
105
125
|
emoji: "🇿🇦",
|
|
106
|
-
name: "South Africa"
|
|
126
|
+
name: "South Africa",
|
|
127
|
+
callingCode: "+27"
|
|
107
128
|
},
|
|
108
129
|
NG: {
|
|
109
130
|
alpha3: "NGA",
|
|
110
131
|
emoji: "🇳🇬",
|
|
111
|
-
name: "Nigeria"
|
|
132
|
+
name: "Nigeria",
|
|
133
|
+
callingCode: "+234"
|
|
112
134
|
},
|
|
113
135
|
EG: {
|
|
114
136
|
alpha3: "EGY",
|
|
115
137
|
emoji: "🇪🇬",
|
|
116
|
-
name: "Egypt"
|
|
138
|
+
name: "Egypt",
|
|
139
|
+
callingCode: "+20"
|
|
117
140
|
},
|
|
118
141
|
AE: {
|
|
119
142
|
alpha3: "ARE",
|
|
120
143
|
emoji: "🇦🇪",
|
|
121
|
-
name: "United Arab Emirates"
|
|
144
|
+
name: "United Arab Emirates",
|
|
145
|
+
callingCode: "+971"
|
|
122
146
|
},
|
|
123
147
|
SA: {
|
|
124
148
|
alpha3: "SAU",
|
|
125
149
|
emoji: "🇸🇦",
|
|
126
|
-
name: "Saudi Arabia"
|
|
150
|
+
name: "Saudi Arabia",
|
|
151
|
+
callingCode: "+966"
|
|
127
152
|
},
|
|
128
153
|
IL: {
|
|
129
154
|
alpha3: "ISR",
|
|
130
155
|
emoji: "🇮🇱",
|
|
131
|
-
name: "Israel"
|
|
156
|
+
name: "Israel",
|
|
157
|
+
callingCode: "+972"
|
|
132
158
|
},
|
|
133
159
|
TR: {
|
|
134
160
|
alpha3: "TUR",
|
|
135
161
|
emoji: "🇹🇷",
|
|
136
|
-
name: "Turkey"
|
|
162
|
+
name: "Turkey",
|
|
163
|
+
callingCode: "+90"
|
|
137
164
|
},
|
|
138
165
|
NL: {
|
|
139
166
|
alpha3: "NLD",
|
|
140
167
|
emoji: "🇳🇱",
|
|
141
|
-
name: "Netherlands"
|
|
168
|
+
name: "Netherlands",
|
|
169
|
+
callingCode: "+31"
|
|
142
170
|
},
|
|
143
171
|
BE: {
|
|
144
172
|
alpha3: "BEL",
|
|
145
173
|
emoji: "🇧🇪",
|
|
146
|
-
name: "Belgium"
|
|
174
|
+
name: "Belgium",
|
|
175
|
+
callingCode: "+32"
|
|
147
176
|
},
|
|
148
177
|
CH: {
|
|
149
178
|
alpha3: "CHE",
|
|
150
179
|
emoji: "🇨🇭",
|
|
151
|
-
name: "Switzerland"
|
|
180
|
+
name: "Switzerland",
|
|
181
|
+
callingCode: "+41"
|
|
152
182
|
},
|
|
153
183
|
AT: {
|
|
154
184
|
alpha3: "AUT",
|
|
155
185
|
emoji: "🇦🇹",
|
|
156
|
-
name: "Austria"
|
|
186
|
+
name: "Austria",
|
|
187
|
+
callingCode: "+43"
|
|
157
188
|
},
|
|
158
189
|
SE: {
|
|
159
190
|
alpha3: "SWE",
|
|
160
191
|
emoji: "🇸🇪",
|
|
161
|
-
name: "Sweden"
|
|
192
|
+
name: "Sweden",
|
|
193
|
+
callingCode: "+46"
|
|
162
194
|
},
|
|
163
195
|
NO: {
|
|
164
196
|
alpha3: "NOR",
|
|
165
197
|
emoji: "🇳🇴",
|
|
166
|
-
name: "Norway"
|
|
198
|
+
name: "Norway",
|
|
199
|
+
callingCode: "+47"
|
|
167
200
|
},
|
|
168
201
|
DK: {
|
|
169
202
|
alpha3: "DNK",
|
|
170
203
|
emoji: "🇩🇰",
|
|
171
|
-
name: "Denmark"
|
|
204
|
+
name: "Denmark",
|
|
205
|
+
callingCode: "+45"
|
|
172
206
|
},
|
|
173
207
|
FI: {
|
|
174
208
|
alpha3: "FIN",
|
|
175
209
|
emoji: "🇫🇮",
|
|
176
|
-
name: "Finland"
|
|
210
|
+
name: "Finland",
|
|
211
|
+
callingCode: "+358"
|
|
177
212
|
},
|
|
178
213
|
PL: {
|
|
179
214
|
alpha3: "POL",
|
|
180
215
|
emoji: "🇵🇱",
|
|
181
|
-
name: "Poland"
|
|
216
|
+
name: "Poland",
|
|
217
|
+
callingCode: "+48"
|
|
182
218
|
},
|
|
183
219
|
PT: {
|
|
184
220
|
alpha3: "PRT",
|
|
185
221
|
emoji: "🇵🇹",
|
|
186
|
-
name: "Portugal"
|
|
222
|
+
name: "Portugal",
|
|
223
|
+
callingCode: "+351"
|
|
187
224
|
},
|
|
188
225
|
IE: {
|
|
189
226
|
alpha3: "IRL",
|
|
190
227
|
emoji: "🇮🇪",
|
|
191
|
-
name: "Ireland"
|
|
228
|
+
name: "Ireland",
|
|
229
|
+
callingCode: "+353"
|
|
192
230
|
},
|
|
193
231
|
GR: {
|
|
194
232
|
alpha3: "GRC",
|
|
195
233
|
emoji: "🇬🇷",
|
|
196
|
-
name: "Greece"
|
|
234
|
+
name: "Greece",
|
|
235
|
+
callingCode: "+30"
|
|
197
236
|
},
|
|
198
237
|
CZ: {
|
|
199
238
|
alpha3: "CZE",
|
|
200
239
|
emoji: "🇨🇿",
|
|
201
|
-
name: "Czechia"
|
|
240
|
+
name: "Czechia",
|
|
241
|
+
callingCode: "+420"
|
|
202
242
|
},
|
|
203
243
|
HU: {
|
|
204
244
|
alpha3: "HUN",
|
|
205
245
|
emoji: "🇭🇺",
|
|
206
|
-
name: "Hungary"
|
|
246
|
+
name: "Hungary",
|
|
247
|
+
callingCode: "+36"
|
|
207
248
|
},
|
|
208
249
|
RO: {
|
|
209
250
|
alpha3: "ROU",
|
|
210
251
|
emoji: "🇷🇴",
|
|
211
|
-
name: "Romania"
|
|
252
|
+
name: "Romania",
|
|
253
|
+
callingCode: "+40"
|
|
212
254
|
},
|
|
213
255
|
UA: {
|
|
214
256
|
alpha3: "UKR",
|
|
215
257
|
emoji: "🇺🇦",
|
|
216
|
-
name: "Ukraine"
|
|
258
|
+
name: "Ukraine",
|
|
259
|
+
callingCode: "+380"
|
|
217
260
|
},
|
|
218
261
|
PH: {
|
|
219
262
|
alpha3: "PHL",
|
|
220
263
|
emoji: "🇵🇭",
|
|
221
|
-
name: "Philippines"
|
|
264
|
+
name: "Philippines",
|
|
265
|
+
callingCode: "+63"
|
|
222
266
|
},
|
|
223
267
|
ID: {
|
|
224
268
|
alpha3: "IDN",
|
|
225
269
|
emoji: "🇮🇩",
|
|
226
|
-
name: "Indonesia"
|
|
270
|
+
name: "Indonesia",
|
|
271
|
+
callingCode: "+62"
|
|
227
272
|
},
|
|
228
273
|
MY: {
|
|
229
274
|
alpha3: "MYS",
|
|
230
275
|
emoji: "🇲🇾",
|
|
231
|
-
name: "Malaysia"
|
|
276
|
+
name: "Malaysia",
|
|
277
|
+
callingCode: "+60"
|
|
232
278
|
},
|
|
233
279
|
SG: {
|
|
234
280
|
alpha3: "SGP",
|
|
235
281
|
emoji: "🇸🇬",
|
|
236
|
-
name: "Singapore"
|
|
282
|
+
name: "Singapore",
|
|
283
|
+
callingCode: "+65"
|
|
237
284
|
},
|
|
238
285
|
TH: {
|
|
239
286
|
alpha3: "THA",
|
|
240
287
|
emoji: "🇹🇭",
|
|
241
|
-
name: "Thailand"
|
|
288
|
+
name: "Thailand",
|
|
289
|
+
callingCode: "+66"
|
|
242
290
|
},
|
|
243
291
|
VN: {
|
|
244
292
|
alpha3: "VNM",
|
|
245
293
|
emoji: "🇻🇳",
|
|
246
|
-
name: "Vietnam"
|
|
294
|
+
name: "Vietnam",
|
|
295
|
+
callingCode: "+84"
|
|
247
296
|
},
|
|
248
297
|
PK: {
|
|
249
298
|
alpha3: "PAK",
|
|
250
299
|
emoji: "🇵🇰",
|
|
251
|
-
name: "Pakistan"
|
|
300
|
+
name: "Pakistan",
|
|
301
|
+
callingCode: "+92"
|
|
252
302
|
},
|
|
253
303
|
BD: {
|
|
254
304
|
alpha3: "BGD",
|
|
255
305
|
emoji: "🇧🇩",
|
|
256
|
-
name: "Bangladesh"
|
|
306
|
+
name: "Bangladesh",
|
|
307
|
+
callingCode: "+880"
|
|
257
308
|
},
|
|
258
309
|
HK: {
|
|
259
310
|
alpha3: "HKG",
|
|
260
311
|
emoji: "🇭🇰",
|
|
261
|
-
name: "Hong Kong"
|
|
312
|
+
name: "Hong Kong",
|
|
313
|
+
callingCode: "+852"
|
|
262
314
|
},
|
|
263
315
|
TW: {
|
|
264
316
|
alpha3: "TWN",
|
|
265
317
|
emoji: "🇹🇼",
|
|
266
|
-
name: "Taiwan"
|
|
318
|
+
name: "Taiwan",
|
|
319
|
+
callingCode: "+886"
|
|
267
320
|
},
|
|
268
321
|
VE: {
|
|
269
322
|
alpha3: "VEN",
|
|
270
323
|
emoji: "🇻🇪",
|
|
271
|
-
name: "Venezuela"
|
|
324
|
+
name: "Venezuela",
|
|
325
|
+
callingCode: "+58"
|
|
272
326
|
},
|
|
273
327
|
EC: {
|
|
274
328
|
alpha3: "ECU",
|
|
275
329
|
emoji: "🇪🇨",
|
|
276
|
-
name: "Ecuador"
|
|
330
|
+
name: "Ecuador",
|
|
331
|
+
callingCode: "+593"
|
|
277
332
|
},
|
|
278
333
|
GT: {
|
|
279
334
|
alpha3: "GTM",
|
|
280
335
|
emoji: "🇬🇹",
|
|
281
|
-
name: "Guatemala"
|
|
336
|
+
name: "Guatemala",
|
|
337
|
+
callingCode: "+502"
|
|
282
338
|
},
|
|
283
339
|
CR: {
|
|
284
340
|
alpha3: "CRI",
|
|
285
341
|
emoji: "🇨🇷",
|
|
286
|
-
name: "Costa Rica"
|
|
342
|
+
name: "Costa Rica",
|
|
343
|
+
callingCode: "+506"
|
|
287
344
|
},
|
|
288
345
|
PA: {
|
|
289
346
|
alpha3: "PAN",
|
|
290
347
|
emoji: "🇵🇦",
|
|
291
|
-
name: "Panama"
|
|
348
|
+
name: "Panama",
|
|
349
|
+
callingCode: "+507"
|
|
292
350
|
},
|
|
293
351
|
DO: {
|
|
294
352
|
alpha3: "DOM",
|
|
295
353
|
emoji: "🇩🇴",
|
|
296
|
-
name: "Dominican Republic"
|
|
354
|
+
name: "Dominican Republic",
|
|
355
|
+
callingCode: "+1"
|
|
297
356
|
},
|
|
298
357
|
PR: {
|
|
299
358
|
alpha3: "PRI",
|
|
300
359
|
emoji: "🇵🇷",
|
|
301
|
-
name: "Puerto Rico"
|
|
360
|
+
name: "Puerto Rico",
|
|
361
|
+
callingCode: "+1"
|
|
302
362
|
},
|
|
303
363
|
CU: {
|
|
304
364
|
alpha3: "CUB",
|
|
305
365
|
emoji: "🇨🇺",
|
|
306
|
-
name: "Cuba"
|
|
366
|
+
name: "Cuba",
|
|
367
|
+
callingCode: "+53"
|
|
307
368
|
},
|
|
308
369
|
JM: {
|
|
309
370
|
alpha3: "JAM",
|
|
310
371
|
emoji: "🇯🇲",
|
|
311
|
-
name: "Jamaica"
|
|
372
|
+
name: "Jamaica",
|
|
373
|
+
callingCode: "+1"
|
|
312
374
|
},
|
|
313
375
|
HN: {
|
|
314
376
|
alpha3: "HND",
|
|
315
377
|
emoji: "🇭🇳",
|
|
316
|
-
name: "Honduras"
|
|
378
|
+
name: "Honduras",
|
|
379
|
+
callingCode: "+504"
|
|
317
380
|
},
|
|
318
381
|
SV: {
|
|
319
382
|
alpha3: "SLV",
|
|
320
383
|
emoji: "🇸🇻",
|
|
321
|
-
name: "El Salvador"
|
|
384
|
+
name: "El Salvador",
|
|
385
|
+
callingCode: "+503"
|
|
322
386
|
},
|
|
323
387
|
NI: {
|
|
324
388
|
alpha3: "NIC",
|
|
325
389
|
emoji: "🇳🇮",
|
|
326
|
-
name: "Nicaragua"
|
|
390
|
+
name: "Nicaragua",
|
|
391
|
+
callingCode: "+505"
|
|
327
392
|
},
|
|
328
393
|
BO: {
|
|
329
394
|
alpha3: "BOL",
|
|
330
395
|
emoji: "🇧🇴",
|
|
331
|
-
name: "Bolivia"
|
|
396
|
+
name: "Bolivia",
|
|
397
|
+
callingCode: "+591"
|
|
332
398
|
},
|
|
333
399
|
PY: {
|
|
334
400
|
alpha3: "PRY",
|
|
335
401
|
emoji: "🇵🇾",
|
|
336
|
-
name: "Paraguay"
|
|
402
|
+
name: "Paraguay",
|
|
403
|
+
callingCode: "+595"
|
|
337
404
|
},
|
|
338
405
|
UY: {
|
|
339
406
|
alpha3: "URY",
|
|
340
407
|
emoji: "🇺🇾",
|
|
341
|
-
name: "Uruguay"
|
|
408
|
+
name: "Uruguay",
|
|
409
|
+
callingCode: "+598"
|
|
342
410
|
},
|
|
343
411
|
KE: {
|
|
344
412
|
alpha3: "KEN",
|
|
345
413
|
emoji: "🇰🇪",
|
|
346
|
-
name: "Kenya"
|
|
414
|
+
name: "Kenya",
|
|
415
|
+
callingCode: "+254"
|
|
347
416
|
},
|
|
348
417
|
GH: {
|
|
349
418
|
alpha3: "GHA",
|
|
350
419
|
emoji: "🇬🇭",
|
|
351
|
-
name: "Ghana"
|
|
420
|
+
name: "Ghana",
|
|
421
|
+
callingCode: "+233"
|
|
352
422
|
},
|
|
353
423
|
MA: {
|
|
354
424
|
alpha3: "MAR",
|
|
355
425
|
emoji: "🇲🇦",
|
|
356
|
-
name: "Morocco"
|
|
426
|
+
name: "Morocco",
|
|
427
|
+
callingCode: "+212"
|
|
357
428
|
},
|
|
358
429
|
TN: {
|
|
359
430
|
alpha3: "TUN",
|
|
360
431
|
emoji: "🇹🇳",
|
|
361
|
-
name: "Tunisia"
|
|
432
|
+
name: "Tunisia",
|
|
433
|
+
callingCode: "+216"
|
|
362
434
|
},
|
|
363
435
|
KW: {
|
|
364
436
|
alpha3: "KWT",
|
|
365
437
|
emoji: "🇰🇼",
|
|
366
|
-
name: "Kuwait"
|
|
438
|
+
name: "Kuwait",
|
|
439
|
+
callingCode: "+965"
|
|
367
440
|
},
|
|
368
441
|
QA: {
|
|
369
442
|
alpha3: "QAT",
|
|
370
443
|
emoji: "🇶🇦",
|
|
371
|
-
name: "Qatar"
|
|
444
|
+
name: "Qatar",
|
|
445
|
+
callingCode: "+974"
|
|
372
446
|
},
|
|
373
447
|
BH: {
|
|
374
448
|
alpha3: "BHR",
|
|
375
449
|
emoji: "🇧🇭",
|
|
376
|
-
name: "Bahrain"
|
|
450
|
+
name: "Bahrain",
|
|
451
|
+
callingCode: "+973"
|
|
377
452
|
},
|
|
378
453
|
OM: {
|
|
379
454
|
alpha3: "OMN",
|
|
380
455
|
emoji: "🇴🇲",
|
|
381
|
-
name: "Oman"
|
|
456
|
+
name: "Oman",
|
|
457
|
+
callingCode: "+968"
|
|
382
458
|
},
|
|
383
459
|
JO: {
|
|
384
460
|
alpha3: "JOR",
|
|
385
461
|
emoji: "🇯🇴",
|
|
386
|
-
name: "Jordan"
|
|
462
|
+
name: "Jordan",
|
|
463
|
+
callingCode: "+962"
|
|
387
464
|
},
|
|
388
465
|
LB: {
|
|
389
466
|
alpha3: "LBN",
|
|
390
467
|
emoji: "🇱🇧",
|
|
391
|
-
name: "Lebanon"
|
|
468
|
+
name: "Lebanon",
|
|
469
|
+
callingCode: "+961"
|
|
392
470
|
},
|
|
393
471
|
RS: {
|
|
394
472
|
alpha3: "SRB",
|
|
395
473
|
emoji: "🇷🇸",
|
|
396
|
-
name: "Serbia"
|
|
474
|
+
name: "Serbia",
|
|
475
|
+
callingCode: "+381"
|
|
397
476
|
},
|
|
398
477
|
HR: {
|
|
399
478
|
alpha3: "HRV",
|
|
400
479
|
emoji: "🇭🇷",
|
|
401
|
-
name: "Croatia"
|
|
480
|
+
name: "Croatia",
|
|
481
|
+
callingCode: "+385"
|
|
402
482
|
},
|
|
403
483
|
SK: {
|
|
404
484
|
alpha3: "SVK",
|
|
405
485
|
emoji: "🇸🇰",
|
|
406
|
-
name: "Slovakia"
|
|
486
|
+
name: "Slovakia",
|
|
487
|
+
callingCode: "+421"
|
|
407
488
|
},
|
|
408
489
|
SI: {
|
|
409
490
|
alpha3: "SVN",
|
|
410
491
|
emoji: "🇸🇮",
|
|
411
|
-
name: "Slovenia"
|
|
492
|
+
name: "Slovenia",
|
|
493
|
+
callingCode: "+386"
|
|
412
494
|
},
|
|
413
495
|
BG: {
|
|
414
496
|
alpha3: "BGR",
|
|
415
497
|
emoji: "🇧🇬",
|
|
416
|
-
name: "Bulgaria"
|
|
498
|
+
name: "Bulgaria",
|
|
499
|
+
callingCode: "+359"
|
|
417
500
|
},
|
|
418
501
|
LT: {
|
|
419
502
|
alpha3: "LTU",
|
|
420
503
|
emoji: "🇱🇹",
|
|
421
|
-
name: "Lithuania"
|
|
504
|
+
name: "Lithuania",
|
|
505
|
+
callingCode: "+370"
|
|
422
506
|
},
|
|
423
507
|
LV: {
|
|
424
508
|
alpha3: "LVA",
|
|
425
509
|
emoji: "🇱🇻",
|
|
426
|
-
name: "Latvia"
|
|
510
|
+
name: "Latvia",
|
|
511
|
+
callingCode: "+371"
|
|
427
512
|
},
|
|
428
513
|
EE: {
|
|
429
514
|
alpha3: "EST",
|
|
430
515
|
emoji: "🇪🇪",
|
|
431
|
-
name: "Estonia"
|
|
516
|
+
name: "Estonia",
|
|
517
|
+
callingCode: "+372"
|
|
432
518
|
},
|
|
433
519
|
IS: {
|
|
434
520
|
alpha3: "ISL",
|
|
435
521
|
emoji: "🇮🇸",
|
|
436
|
-
name: "Iceland"
|
|
522
|
+
name: "Iceland",
|
|
523
|
+
callingCode: "+354"
|
|
437
524
|
},
|
|
438
525
|
LU: {
|
|
439
526
|
alpha3: "LUX",
|
|
440
527
|
emoji: "🇱🇺",
|
|
441
|
-
name: "Luxembourg"
|
|
528
|
+
name: "Luxembourg",
|
|
529
|
+
callingCode: "+352"
|
|
442
530
|
},
|
|
443
531
|
MT: {
|
|
444
532
|
alpha3: "MLT",
|
|
445
533
|
emoji: "🇲🇹",
|
|
446
|
-
name: "Malta"
|
|
534
|
+
name: "Malta",
|
|
535
|
+
callingCode: "+356"
|
|
447
536
|
},
|
|
448
537
|
CY: {
|
|
449
538
|
alpha3: "CYP",
|
|
450
539
|
emoji: "🇨🇾",
|
|
451
|
-
name: "Cyprus"
|
|
540
|
+
name: "Cyprus",
|
|
541
|
+
callingCode: "+357"
|
|
452
542
|
}
|
|
453
543
|
};
|
|
454
544
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as getAlpha2FromAlpha3 } from "./countryDefinitions
|
|
1
|
+
import { n as getAlpha2FromAlpha3 } from "./countryDefinitions-BO9OSKQO.js";
|
|
2
2
|
//#region src/shared/countries/countryFlag.ts
|
|
3
3
|
/** Codepoint offset from 'A' to REGIONAL INDICATOR SYMBOL LETTER A. */
|
|
4
4
|
var REGIONAL_INDICATOR_OFFSET = 127462 - "A".charCodeAt(0);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as useTranslation } from "./uiConfig-pqbLNAS2.js";
|
|
2
2
|
import { u as T, v as u } from "./vendor-preact-C0jX1Cbq.js";
|
|
3
3
|
import { t as DropdownComposed } from "./dropdownComposed-DaUoD37b.js";
|
|
4
|
-
import { n as getCountryDisplayName, t as countryFlagEmoji } from "./countryFlag-
|
|
4
|
+
import { n as getCountryDisplayName, t as countryFlagEmoji } from "./countryFlag-2Vj85OIZ.js";
|
|
5
5
|
//#region src/shared/countrySelector/countrySelector.tsx
|
|
6
6
|
var DEFAULT_COUNTRY_CODES = [
|
|
7
7
|
"BR",
|
|
@@ -5,7 +5,7 @@ import { x as Button } from "../icons-B4OznCY6.js";
|
|
|
5
5
|
import { t as Page } from "../page-DnP1DvsJ.js";
|
|
6
6
|
import { t as VerificationResult } from "../verificationResult-DKewl-ed.js";
|
|
7
7
|
import { t as InputComposed } from "../inputComposed-DlQYLt7Y.js";
|
|
8
|
-
import { n as countries, t as PhoneInputComposed } from "../phoneInputComposed-
|
|
8
|
+
import { n as countries, t as PhoneInputComposed } from "../phoneInputComposed-CmgLZDjI.js";
|
|
9
9
|
import { t as DropdownComposed } from "../dropdownComposed-DaUoD37b.js";
|
|
10
10
|
import { t as DateInputComposed } from "../dateInputComposed-Bx_20XsV.js";
|
|
11
11
|
import { t as registerIncodeModuleElement } from "../incodeModule-CjLjhx0K.js";
|
package/dist/ekyb/ekyb.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as EkybModule } from "../ekybModule-
|
|
1
|
+
import { t as EkybModule } from "../ekybModule-ChIL1suM.js";
|
|
2
2
|
export { EkybModule };
|
|
@@ -11,7 +11,7 @@ import { n as translateError, t as FormField } from "./formField-DZaKJSG8.js";
|
|
|
11
11
|
import { t as DropdownComposed } from "./dropdownComposed-DaUoD37b.js";
|
|
12
12
|
import { t as registerIncodeModuleElement } from "./incodeModule-CjLjhx0K.js";
|
|
13
13
|
import { n as AddressAutocomplete, t as getAccessibleOptionLabel } from "./optionAccessibleLabel-UWYELd-i.js";
|
|
14
|
-
import { t as CountrySelector$1 } from "./countrySelector-
|
|
14
|
+
import { t as CountrySelector$1 } from "./countrySelector-BoKb6o0P.js";
|
|
15
15
|
import { DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager } from "@incodetech/core/ekyb";
|
|
16
16
|
//#region src/modules/ekyb/countrySelector.tsx
|
|
17
17
|
var CountrySelector = ({ value, onChange }) => {
|
package/dist/ekyc/ekyc.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as EkycModule } from "../ekycModule-
|
|
1
|
+
import { t as EkycModule } from "../ekycModule-BVQGo3cX.js";
|
|
2
2
|
export { EkycModule };
|
|
@@ -7,7 +7,7 @@ import { t as Page } from "./page-DnP1DvsJ.js";
|
|
|
7
7
|
import { t as VerificationResult } from "./verificationResult-DKewl-ed.js";
|
|
8
8
|
import { t as PasswordInputComposed } from "./passwordInputComposed-WFKjeVpb.js";
|
|
9
9
|
import { n as translateError, t as FormField } from "./formField-DZaKJSG8.js";
|
|
10
|
-
import { t as PhoneInputComposed } from "./phoneInputComposed-
|
|
10
|
+
import { t as PhoneInputComposed } from "./phoneInputComposed-CmgLZDjI.js";
|
|
11
11
|
import { t as DropdownComposed } from "./dropdownComposed-DaUoD37b.js";
|
|
12
12
|
import { t as DateInputComposed } from "./dateInputComposed-Bx_20XsV.js";
|
|
13
13
|
import { t as RadioGroupComposed } from "./radioGroupComposed-NSgSD_4D.js";
|
package/dist/extensibility.es.js
CHANGED
|
@@ -20,14 +20,14 @@ import { t as PasswordInputComposed } from "./passwordInputComposed-WFKjeVpb.js"
|
|
|
20
20
|
import { t as OtpInput } from "./otpInput-CFZwz0r0.js";
|
|
21
21
|
import { t as Checkbox } from "./checkbox-Dls6LWFk.js";
|
|
22
22
|
import { t as FormField } from "./formField-DZaKJSG8.js";
|
|
23
|
-
import { i as getCountryByCode, n as countries, r as getCountryByCallingCode, t as PhoneInputComposed } from "./phoneInputComposed-
|
|
23
|
+
import { i as getCountryByCode, n as countries, r as getCountryByCallingCode, t as PhoneInputComposed } from "./phoneInputComposed-CmgLZDjI.js";
|
|
24
24
|
import { t as DropdownComposed } from "./dropdownComposed-DaUoD37b.js";
|
|
25
25
|
import "./dropdownComposed-D0FWhFQs.js";
|
|
26
26
|
import { t as DateInputComposed } from "./dateInputComposed-Bx_20XsV.js";
|
|
27
27
|
import "./dateInputComposed-CqXpMLpW.js";
|
|
28
28
|
import { n as RadioButtonComposed, t as RadioGroupComposed } from "./radioGroupComposed-NSgSD_4D.js";
|
|
29
29
|
import "./radioGroupComposed-B7Nxw7GP.js";
|
|
30
|
-
import { b as VerificationOptionCard, c as IdExpired, i as Capture, l as IdError, n as Chooser, r as Tutorial, t as FlipAnimation, x as VerificationOptionCardList } from "./flipAnimation-
|
|
30
|
+
import { b as VerificationOptionCard, c as IdExpired, i as Capture, l as IdError, n as Chooser, r as Tutorial, t as FlipAnimation, x as VerificationOptionCardList } from "./flipAnimation-CwQZBHO1.js";
|
|
31
31
|
import { t as BottomSheet } from "./bottomSheet-CCVBvXJj.js";
|
|
32
32
|
import { n as CameraFrame, t as CameraView } from "./cameraView-CYo219jm.js";
|
|
33
33
|
import { n as CameraOverlay, t as CameraOverlayHeader } from "./cameraOverlayHeader-BeYqlXuY.js";
|
|
@@ -14,7 +14,7 @@ import { n as CameraOverlay, t as CameraOverlayHeader } from "./cameraOverlayHea
|
|
|
14
14
|
import { n as CaptureFooter, t as useCaptureHelpButton } from "./useCaptureHelpButton-A0kpHjZU.js";
|
|
15
15
|
import { t as BaseTutorial } from "./baseTutorial-BPHbJVST.js";
|
|
16
16
|
import { n as RedStrikeIcon, t as ExpiredId } from "./expiredId-DPOYhhq-.js";
|
|
17
|
-
import { n as getCountryDisplayName, t as countryFlagEmoji } from "./countryFlag-
|
|
17
|
+
import { n as getCountryDisplayName, t as countryFlagEmoji } from "./countryFlag-2Vj85OIZ.js";
|
|
18
18
|
import { i as usePreloadCaptureAnimations, n as CaptureNotification } from "./manualCaptureButton-BCVlezCD.js";
|
|
19
19
|
import { eventModuleNames, recordExperimentAssignmentOnce } from "@incodetech/core/events";
|
|
20
20
|
import { ONBOARDING_WEB_SDK_PARAMETER_STORE, booleanParam, defineExperimentParams, enumParam, numberParam, resolveExperiment } from "@incodetech/core/feature-management";
|
package/dist/flow/flow.es.js
CHANGED
|
@@ -5,7 +5,7 @@ import { t as TransitionSpinner } from "../transitionSpinner-CkOU14bX.js";
|
|
|
5
5
|
import { b as ErrorIcon } from "../icons-B4OznCY6.js";
|
|
6
6
|
import { t as StatusPage } from "../statusPage-IpZBocz3.js";
|
|
7
7
|
import { t as registerIncodeModuleElement } from "../incodeModule-CjLjhx0K.js";
|
|
8
|
-
import { a as LAZY_UI_MODULES, c as initializeFlowManager, f as warmupWasmIfNeeded, i as HEADLESS_FLOW_MODULE_KEYS, l as preloadFirstModule, m as resolveSessionLanguage, n as extractIncodeStatus, o as createFlowManager, r as UnsupportedModule, s as fetchTheme, t as resolveApiKey, u as preloadHomeScreen } from "../resolveApiKey-
|
|
8
|
+
import { a as LAZY_UI_MODULES, c as initializeFlowManager, f as warmupWasmIfNeeded, i as HEADLESS_FLOW_MODULE_KEYS, l as preloadFirstModule, m as resolveSessionLanguage, n as extractIncodeStatus, o as createFlowManager, r as UnsupportedModule, s as fetchTheme, t as resolveApiKey, u as preloadHomeScreen } from "../resolveApiKey-CoEplwB1.js";
|
|
9
9
|
import { i as usePrefetchNextModule, n as useModuleLoader, r as useModulePreloader } from "../useModuleLoader-BdIp6TNQ.js";
|
|
10
10
|
import { bootstrapSession, refreshQrUrlUuid } from "@incodetech/core/session";
|
|
11
11
|
import { getNextRequiredWasmPipelines } from "@incodetech/core/flow";
|
package/dist/id/id.es.js
CHANGED
|
@@ -9,7 +9,7 @@ import { n as VerifiedByIncodeLogo, t as Page } from "../page-DnP1DvsJ.js";
|
|
|
9
9
|
import { n as Modal } from "../incode-logo-B6OX2NCN.js";
|
|
10
10
|
import { t as AutoFocusTitle } from "../autoFocusTitle-BqE_qYZr.js";
|
|
11
11
|
import { t as Processing } from "../processing-BM7abVTy.js";
|
|
12
|
-
import { _ as ID_CAPTURE_LOADING_PHASE, a as CaptureAutoFocusProvider, c as IdExpired, d as CaptureFrame, f as useIdExperiment, g as EXPERIMENT_LIFECYCLE_STATUS, h as CONTINUING_TUTORIAL_PHASES, i as Capture, l as IdError, m as CAMERA_WARMUP_LOADING_PHASES, n as Chooser, o as getCaptureFrameTitle, p as CAMERA_PERMISSION_UX, r as Tutorial, s as IdNoAttempts, t as FlipAnimation, u as canFlipCapturedCard, v as ID_CAPTURE_STATUS, y as PERMISSION_DIALOG_STATUS } from "../flipAnimation-
|
|
12
|
+
import { _ as ID_CAPTURE_LOADING_PHASE, a as CaptureAutoFocusProvider, c as IdExpired, d as CaptureFrame, f as useIdExperiment, g as EXPERIMENT_LIFECYCLE_STATUS, h as CONTINUING_TUTORIAL_PHASES, i as Capture, l as IdError, m as CAMERA_WARMUP_LOADING_PHASES, n as Chooser, o as getCaptureFrameTitle, p as CAMERA_PERMISSION_UX, r as Tutorial, s as IdNoAttempts, t as FlipAnimation, u as canFlipCapturedCard, v as ID_CAPTURE_STATUS, y as PERMISSION_DIALOG_STATUS } from "../flipAnimation-CwQZBHO1.js";
|
|
13
13
|
import { t as BottomSheet } from "../bottomSheet-CCVBvXJj.js";
|
|
14
14
|
import { n as CameraFrame, t as CameraView } from "../cameraView-CYo219jm.js";
|
|
15
15
|
import { n as CameraOverlay, t as CameraOverlayHeader } from "../cameraOverlayHeader-BeYqlXuY.js";
|
|
@@ -6,7 +6,7 @@ import { x as Button } from "../icons-B4OznCY6.js";
|
|
|
6
6
|
import { t as Page } from "../page-DnP1DvsJ.js";
|
|
7
7
|
import { t as AutoFocusTitle } from "../autoFocusTitle-BqE_qYZr.js";
|
|
8
8
|
import { t as BottomSheet } from "../bottomSheet-CCVBvXJj.js";
|
|
9
|
-
import { t as countryFlagEmoji } from "../countryFlag-
|
|
9
|
+
import { t as countryFlagEmoji } from "../countryFlag-2Vj85OIZ.js";
|
|
10
10
|
import { t as registerIncodeModuleElement } from "../incodeModule-CjLjhx0K.js";
|
|
11
11
|
import { t as INCODE_PRIVACY_POLICY_URL } from "../policyUrls-B3M8nLRh.js";
|
|
12
12
|
import { SCAN_NEW_DOCUMENT, createIdentityReuseManager } from "@incodetech/core/identity-reuse";
|
package/dist/phone/phone.es.js
CHANGED
|
@@ -6,7 +6,7 @@ import { x as Button } from "../icons-B4OznCY6.js";
|
|
|
6
6
|
import { t as Page } from "../page-DnP1DvsJ.js";
|
|
7
7
|
import { t as OtpInput } from "../otpInput-CFZwz0r0.js";
|
|
8
8
|
import { t as Checkbox } from "../checkbox-Dls6LWFk.js";
|
|
9
|
-
import { t as PhoneInputComposed } from "../phoneInputComposed-
|
|
9
|
+
import { t as PhoneInputComposed } from "../phoneInputComposed-CmgLZDjI.js";
|
|
10
10
|
import { t as registerIncodeModuleElement } from "../incodeModule-CjLjhx0K.js";
|
|
11
11
|
import { createPhoneManager } from "@incodetech/core/phone";
|
|
12
12
|
//#region src/modules/phone/phone.tsx
|
|
@@ -2,17 +2,16 @@ import { S as k, _ as y, c as A, f as d, h as q, i as D, u as T, v as u } from "
|
|
|
2
2
|
import { b as ErrorIcon, r as SuccessIcon } from "./icons-B4OznCY6.js";
|
|
3
3
|
import { t as InputComposed } from "./inputComposed-DlQYLt7Y.js";
|
|
4
4
|
import { t as FieldLabelHint } from "./fieldLabelHint-CxjArYkQ.js";
|
|
5
|
-
import { t as countryDefinitions } from "./countryDefinitions
|
|
5
|
+
import { t as countryDefinitions } from "./countryDefinitions-BO9OSKQO.js";
|
|
6
6
|
import { t as DropdownComposed } from "./dropdownComposed-DaUoD37b.js";
|
|
7
|
-
import { formatExamplePhoneNumber, formatPhoneAsYouType, getCallingCode, isValidPhoneNumber, parsePhoneNumber } from "@incodetech/core/phone-number";
|
|
8
7
|
//#region src/shared/countries/countries.ts
|
|
9
8
|
var countries = Object.entries(countryDefinitions).map(([code, data]) => ({
|
|
10
9
|
code,
|
|
11
10
|
alpha3: data.alpha3,
|
|
12
11
|
emoji: data.emoji,
|
|
13
12
|
name: data.name,
|
|
14
|
-
callingCode:
|
|
15
|
-
})).
|
|
13
|
+
callingCode: data.callingCode
|
|
14
|
+
})).sort((a, b) => a.name.localeCompare(b.name));
|
|
16
15
|
function getCountryByCode(code) {
|
|
17
16
|
if (!code) return void 0;
|
|
18
17
|
return countries.find((c) => c.code === code || c.code === code.toUpperCase());
|
|
@@ -27,43 +26,95 @@ var HARDCODED_PLACEHOLDERS = {
|
|
|
27
26
|
US: "(123) 456-7890",
|
|
28
27
|
CA: "(123) 456-7890"
|
|
29
28
|
};
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
var loadedRules;
|
|
30
|
+
var rulesLoad;
|
|
31
|
+
function loadPhoneNumberRules() {
|
|
32
|
+
rulesLoad ??= import("@incodetech/core/phone-number").then((rules) => {
|
|
33
|
+
loadedRules = rules;
|
|
34
|
+
return rules;
|
|
35
|
+
}, (error) => {
|
|
36
|
+
rulesLoad = void 0;
|
|
37
|
+
throw error;
|
|
38
|
+
});
|
|
39
|
+
return rulesLoad;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Returns the rules once loaded, and `ensureRules` to (re)start the load. A
|
|
43
|
+
* failed load is not cached, so the field retries on the next keystroke.
|
|
44
|
+
*/
|
|
45
|
+
function usePhoneNumberRules() {
|
|
46
|
+
const [rules, setRules] = d(loadedRules);
|
|
47
|
+
const mounted = A(true);
|
|
48
|
+
y(() => () => {
|
|
49
|
+
mounted.current = false;
|
|
50
|
+
}, []);
|
|
51
|
+
const ensureRules = q(() => {
|
|
52
|
+
loadPhoneNumberRules().then((loaded) => {
|
|
53
|
+
if (mounted.current) setRules(loaded);
|
|
54
|
+
}, () => void 0);
|
|
55
|
+
}, []);
|
|
56
|
+
y(() => {
|
|
57
|
+
if (!rules) ensureRules();
|
|
58
|
+
}, [rules, ensureRules]);
|
|
59
|
+
return [rules, ensureRules];
|
|
60
|
+
}
|
|
61
|
+
function getPhonePlaceholder(code, rules) {
|
|
62
|
+
return HARDCODED_PLACEHOLDERS[code] || (rules?.formatExamplePhoneNumber(code) ?? "");
|
|
32
63
|
}
|
|
33
64
|
var PhoneInputComposed = D(({ id, label, labelHint, countryCode = "US", value, placeholder, error, showFormatHintInError = false, helper, showErrorIcon, showHelperIcon, disabled = false, disableCountrySelector = false, required, onChange, formatHintBuilder, countryAriaLabelBuilder, "aria-labelledby": ariaLabelledBy, "data-testid": dataTestId, ...restProps }, ref) => {
|
|
34
65
|
const [selectedCountryCode, setSelectedCountryCode] = d(countryCode);
|
|
35
66
|
const [localPhone, setLocalPhone] = d("");
|
|
36
67
|
const initialised = A(false);
|
|
68
|
+
const formattedWithRules = A(false);
|
|
69
|
+
const [rules, ensureRules] = usePhoneNumberRules();
|
|
37
70
|
const dropdownOptions = T(() => countries.map((c) => ({
|
|
38
71
|
value: c.code,
|
|
39
72
|
label: `${c.emoji} ${c.callingCode} ${c.name}`,
|
|
40
73
|
ariaLabel: `${c.callingCode} ${c.name}`
|
|
41
74
|
})), []);
|
|
42
75
|
const selectedCountry = T(() => getCountryByCode(selectedCountryCode) ?? getCountryByCode("US"), [selectedCountryCode]);
|
|
43
|
-
const effectivePlaceholder = T(() => placeholder ?? getPhonePlaceholder(selectedCountryCode), [
|
|
76
|
+
const effectivePlaceholder = T(() => placeholder ?? getPhonePlaceholder(selectedCountryCode, rules), [
|
|
77
|
+
placeholder,
|
|
78
|
+
selectedCountryCode,
|
|
79
|
+
rules
|
|
80
|
+
]);
|
|
44
81
|
const formatHintId = `${id}-phone-format-hint`;
|
|
45
82
|
const formatHintText = T(() => formatHintBuilder?.(effectivePlaceholder), [formatHintBuilder, effectivePlaceholder]);
|
|
46
83
|
const formatHintTextForSr = T(() => formatHintText?.replace(/\d/g, "$& ").trim(), [formatHintText]);
|
|
47
84
|
const showStandaloneFormatHint = !error && !!formatHintText;
|
|
48
85
|
const showErrorFormatHint = showFormatHintInError && !!error && !!formatHintText;
|
|
49
86
|
y(() => {
|
|
50
|
-
if (initialised.current || !value || !selectedCountry) return;
|
|
87
|
+
if (initialised.current || !value || !selectedCountry || !rules) return;
|
|
51
88
|
initialised.current = true;
|
|
52
|
-
const parsed = parsePhoneNumber(value.startsWith("+") ? value : `+${value}`);
|
|
89
|
+
const parsed = rules.parsePhoneNumber(value.startsWith("+") ? value : `+${value}`);
|
|
53
90
|
if (parsed) {
|
|
54
91
|
if (parsed.country !== selectedCountryCode) setSelectedCountryCode(parsed.country);
|
|
92
|
+
formattedWithRules.current = true;
|
|
55
93
|
setLocalPhone(parsed.national);
|
|
56
94
|
}
|
|
57
95
|
}, [
|
|
58
96
|
value,
|
|
59
97
|
selectedCountry,
|
|
60
|
-
selectedCountryCode
|
|
98
|
+
selectedCountryCode,
|
|
99
|
+
rules
|
|
61
100
|
]);
|
|
62
101
|
const validateAndNotify = q((rawDigits, country) => {
|
|
63
102
|
const digits = rawDigits.replace(/\D/g, "");
|
|
64
103
|
const full = digits ? `${country.callingCode}${digits}` : "";
|
|
65
|
-
onChange?.(full, isValidPhoneNumber(full, country.code));
|
|
66
|
-
}, [onChange]);
|
|
104
|
+
onChange?.(full, rules?.isValidPhoneNumber(full, country.code) ?? false);
|
|
105
|
+
}, [onChange, rules]);
|
|
106
|
+
y(() => {
|
|
107
|
+
if (!rules || formattedWithRules.current) return;
|
|
108
|
+
formattedWithRules.current = true;
|
|
109
|
+
if (!localPhone) return;
|
|
110
|
+
setLocalPhone(rules.formatPhoneAsYouType(localPhone, selectedCountry.code));
|
|
111
|
+
validateAndNotify(localPhone, selectedCountry);
|
|
112
|
+
}, [
|
|
113
|
+
rules,
|
|
114
|
+
localPhone,
|
|
115
|
+
selectedCountry,
|
|
116
|
+
validateAndNotify
|
|
117
|
+
]);
|
|
67
118
|
const handleCountryChange = q((newCode) => {
|
|
68
119
|
setSelectedCountryCode(newCode);
|
|
69
120
|
const country = getCountryByCode(newCode);
|
|
@@ -71,13 +122,22 @@ var PhoneInputComposed = D(({ id, label, labelHint, countryCode = "US", value, p
|
|
|
71
122
|
}, [localPhone, validateAndNotify]);
|
|
72
123
|
const handlePhoneInput = q((e) => {
|
|
73
124
|
const raw = e.target.value;
|
|
74
|
-
|
|
125
|
+
initialised.current = true;
|
|
126
|
+
if (!selectedCountry || !rules) {
|
|
75
127
|
setLocalPhone(raw);
|
|
128
|
+
if (selectedCountry) validateAndNotify(raw, selectedCountry);
|
|
129
|
+
ensureRules();
|
|
76
130
|
return;
|
|
77
131
|
}
|
|
78
|
-
|
|
132
|
+
formattedWithRules.current = true;
|
|
133
|
+
setLocalPhone(rules.formatPhoneAsYouType(raw, selectedCountry.code));
|
|
79
134
|
validateAndNotify(raw, selectedCountry);
|
|
80
|
-
}, [
|
|
135
|
+
}, [
|
|
136
|
+
selectedCountry,
|
|
137
|
+
validateAndNotify,
|
|
138
|
+
rules,
|
|
139
|
+
ensureRules
|
|
140
|
+
]);
|
|
81
141
|
const countryDropdownId = `${id}-country`;
|
|
82
142
|
const phoneInputId = `${id}-phone`;
|
|
83
143
|
const helperId = `${phoneInputId}-helper`;
|
|
@@ -2634,7 +2634,7 @@ var QrTabContent = ({ redirectUrl, onQrReady }) => {
|
|
|
2634
2634
|
};
|
|
2635
2635
|
//#endregion
|
|
2636
2636
|
//#region src/modules/redirect-to-mobile/qrScreen.tsx
|
|
2637
|
-
var loadSmsTabContent = () => import("../smsTabContent-
|
|
2637
|
+
var loadSmsTabContent = () => import("../smsTabContent-BTGmTtkz.js").then((module) => module.SmsTabContent);
|
|
2638
2638
|
var LazySmsTabContent = (props) => {
|
|
2639
2639
|
const { t } = useTranslation();
|
|
2640
2640
|
const state = useLazyComponentLoader({ loader: loadSmsTabContent });
|
|
@@ -102,8 +102,8 @@ var LAZY_UI_MODULES = {
|
|
|
102
102
|
GOVT_VALIDATION_PROVISIONING: () => import("./government-validation/government-validation.es.js").then((m) => m.GovernmentValidation),
|
|
103
103
|
INE_VALIDATION: () => import("./government-validation/government-validation.es.js").then((m) => m.GovernmentValidation),
|
|
104
104
|
GEOLOCATION: () => import("./geolocation/geolocation.es.js").then((m) => m.Geolocation),
|
|
105
|
-
EXTERNAL_VERIFICATION: () => import("./ekycModule-
|
|
106
|
-
EKYB: () => import("./ekybModule-
|
|
105
|
+
EXTERNAL_VERIFICATION: () => import("./ekycModule-Cgx-oeZY.js").then((m) => m.EkycModule),
|
|
106
|
+
EKYB: () => import("./ekybModule-G00AuJr2.js").then((m) => m.EkybModule),
|
|
107
107
|
DOCUMENT_CAPTURE: () => import("./documentCapture-B2rzvS8a.js").then((m) => m.DocumentCapture),
|
|
108
108
|
ADDRESS: () => import("./documentCapture-B2rzvS8a.js").then((m) => m.DocumentCapture),
|
|
109
109
|
COMBINED_CONSENT: () => import("./consent/consent.es.js").then((m) => m.Consent),
|
|
@@ -114,7 +114,7 @@ var LAZY_UI_MODULES = {
|
|
|
114
114
|
ANTIFRAUD: () => import("./antifraud/antifraud.es.js").then((m) => m.Antifraud),
|
|
115
115
|
CUSTOM_FIELDS: () => import("./customFields-DTZw7Dao.js").then((m) => m.CustomFields),
|
|
116
116
|
WATCHLIST: () => import("./watchlist/watchlist.es.js").then((m) => m.Watchlist),
|
|
117
|
-
WATCHLIST_BUSINESS: () => import("./watchlistForBusiness-
|
|
117
|
+
WATCHLIST_BUSINESS: () => import("./watchlistForBusiness-CozLq467.js").then((m) => m.WatchlistForBusiness),
|
|
118
118
|
INCODE_WATCHLIST: () => import("./customWatchlist-D-6aXms_.js").then((m) => m.CustomWatchlist),
|
|
119
119
|
AE_SIGNATURE: () => import("./ae-signature/ae-signature.es.js").then((m) => m.AeSignature),
|
|
120
120
|
QE_SIGNATURE: () => import("./qe-signature/qe-signature.es.js").then((m) => m.QeSignature),
|
|
@@ -4,7 +4,7 @@ import { t as Spacer } from "./spacer-xp7U7Uam.js";
|
|
|
4
4
|
import { b as ErrorIcon, r as SuccessIcon, x as Button } from "./icons-B4OznCY6.js";
|
|
5
5
|
import { t as AutoFocusTitle } from "./autoFocusTitle-BqE_qYZr.js";
|
|
6
6
|
import { n as useResendTimerAnnouncements, t as formatResendTimer } from "./resendTimer-Di9YCtQu.js";
|
|
7
|
-
import { r as getCountryByCallingCode, t as PhoneInputComposed } from "./phoneInputComposed-
|
|
7
|
+
import { r as getCountryByCallingCode, t as PhoneInputComposed } from "./phoneInputComposed-CmgLZDjI.js";
|
|
8
8
|
//#region src/modules/redirect-to-mobile/smsSentView.tsx
|
|
9
9
|
var SmsSentView = ({ formattedPhone, hasError, resendTimer, canResendSms, onResend, onChangePhone }) => {
|
|
10
10
|
const { t } = useTranslation();
|
|
@@ -7,7 +7,7 @@ import { t as Page } from "./page-DnP1DvsJ.js";
|
|
|
7
7
|
import { t as StatusPage } from "./statusPage-IpZBocz3.js";
|
|
8
8
|
import { t as InputComposed } from "./inputComposed-DlQYLt7Y.js";
|
|
9
9
|
import { t as registerIncodeModuleElement } from "./incodeModule-CjLjhx0K.js";
|
|
10
|
-
import { t as CountrySelector } from "./countrySelector-
|
|
10
|
+
import { t as CountrySelector } from "./countrySelector-BoKb6o0P.js";
|
|
11
11
|
import { createWatchlistForBusinessManager } from "@incodetech/core/watchlist-for-business";
|
|
12
12
|
//#region src/modules/watchlist-for-business/watchlistForBusiness.tsx
|
|
13
13
|
var WatchlistForBusinessContent = ({ manager: externalManager, onFinish }) => {
|
|
@@ -6,7 +6,7 @@ import { t as TransitionSpinner } from "../transitionSpinner-CkOU14bX.js";
|
|
|
6
6
|
import { t as Page } from "../page-DnP1DvsJ.js";
|
|
7
7
|
import { t as AutoFocusTitle } from "../autoFocusTitle-BqE_qYZr.js";
|
|
8
8
|
import { t as registerIncodeModuleElement } from "../incodeModule-CjLjhx0K.js";
|
|
9
|
-
import { a as LAZY_UI_MODULES, d as setupSDK, m as resolveSessionLanguage, n as extractIncodeStatus, p as isDesktopOrEmulated, r as UnsupportedModule, t as resolveApiKey } from "../resolveApiKey-
|
|
9
|
+
import { a as LAZY_UI_MODULES, d as setupSDK, m as resolveSessionLanguage, n as extractIncodeStatus, p as isDesktopOrEmulated, r as UnsupportedModule, t as resolveApiKey } from "../resolveApiKey-CoEplwB1.js";
|
|
10
10
|
import { a as HEADLESS_WORKFLOW_MODULE_KEYS, n as useModuleLoader } from "../useModuleLoader-BdIp6TNQ.js";
|
|
11
11
|
import { resolveWasmConfigForPipelines, setWasmConfig, upgradeToWasmHttpClient, warmupWasm } from "@incodetech/core/wasm";
|
|
12
12
|
import { bootstrapSession, getFinishStatus, refreshQrUrlUuid } from "@incodetech/core/session";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/web",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20261001-c9faf7b3",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
],
|
|
288
288
|
"dependencies": {
|
|
289
289
|
"preact": "^10.27.2",
|
|
290
|
-
"@incodetech/core": "0.0.0-dev-
|
|
290
|
+
"@incodetech/core": "0.0.0-dev-20261001-c9faf7b3"
|
|
291
291
|
},
|
|
292
292
|
"devDependencies": {
|
|
293
293
|
"@fontsource/dm-sans": "^5.2.8",
|