ngx-dial-input 2.0.8 → 2.0.9

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.
@@ -14,7 +14,9 @@ const countries = [
14
14
  dialCode: '+507',
15
15
  format: '+507 ##-###-####',
16
16
  flag: 'https://flagcdn.com/w40/pa.png',
17
- phoneLength: 8
17
+ phoneLength: 8,
18
+ minLength: 8,
19
+ maxLength: 10
18
20
  },
19
21
  {
20
22
  name: 'Pakistan',
@@ -23,7 +25,9 @@ const countries = [
23
25
  dialCode: '+92',
24
26
  format: '+92 ### #######',
25
27
  flag: 'https://flagcdn.com/w40/pk.png',
26
- phoneLength: 10
28
+ phoneLength: 10,
29
+ minLength: 10,
30
+ maxLength: 12
27
31
  },
28
32
  {
29
33
  name: 'South Korea',
@@ -32,7 +36,9 @@ const countries = [
32
36
  dialCode: '+82',
33
37
  format: '+82 ## #### ####',
34
38
  flag: 'https://flagcdn.com/w40/kr.png',
35
- phoneLength: 10
39
+ phoneLength: 10,
40
+ minLength: 9,
41
+ maxLength: 11
36
42
  },
37
43
  {
38
44
  name: 'United States',
@@ -41,7 +47,9 @@ const countries = [
41
47
  dialCode: '+1',
42
48
  format: '+1 (###) ###-####',
43
49
  flag: 'https://flagcdn.com/w40/us.png',
44
- phoneLength: 10
50
+ phoneLength: 10,
51
+ minLength: 10,
52
+ maxLength: 10
45
53
  },
46
54
  {
47
55
  name: 'United Kingdom',
@@ -50,7 +58,9 @@ const countries = [
50
58
  dialCode: '+44',
51
59
  format: '+44 #### ### ###',
52
60
  flag: 'https://flagcdn.com/w40/gb.png',
53
- phoneLength: 10
61
+ phoneLength: 10,
62
+ minLength: 10,
63
+ maxLength: 10
54
64
  },
55
65
  {
56
66
  name: 'India',
@@ -59,7 +69,9 @@ const countries = [
59
69
  dialCode: '+91',
60
70
  format: '+91 #### ######',
61
71
  flag: 'https://flagcdn.com/w40/in.png',
62
- phoneLength: 10
72
+ phoneLength: 10,
73
+ minLength: 10,
74
+ maxLength: 12
63
75
  },
64
76
  {
65
77
  name: 'China',
@@ -68,7 +80,9 @@ const countries = [
68
80
  dialCode: '+86',
69
81
  format: '+86 #### #### ####',
70
82
  flag: 'https://flagcdn.com/w40/cn.png',
71
- phoneLength: 11
83
+ phoneLength: 11,
84
+ minLength: 11,
85
+ maxLength: 13
72
86
  },
73
87
  {
74
88
  name: 'Japan',
@@ -77,7 +91,9 @@ const countries = [
77
91
  dialCode: '+81',
78
92
  format: '+81 ##-####-####',
79
93
  flag: 'https://flagcdn.com/w40/jp.png',
80
- phoneLength: 10
94
+ phoneLength: 10,
95
+ minLength: 10,
96
+ maxLength: 11
81
97
  },
82
98
  {
83
99
  name: 'Germany',
@@ -86,7 +102,9 @@ const countries = [
86
102
  dialCode: '+49',
87
103
  format: '+49 ## #### ####',
88
104
  flag: 'https://flagcdn.com/w40/de.png',
89
- phoneLength: 10
105
+ phoneLength: 10,
106
+ minLength: 10,
107
+ maxLength: 12
90
108
  },
91
109
  {
92
110
  name: 'France',
@@ -95,7 +113,9 @@ const countries = [
95
113
  dialCode: '+33',
96
114
  format: '+33 # ## ## ## ##',
97
115
  flag: 'https://flagcdn.com/w40/fr.png',
98
- phoneLength: 9
116
+ phoneLength: 9,
117
+ minLength: 9,
118
+ maxLength: 10
99
119
  },
100
120
  {
101
121
  name: 'Brazil',
@@ -104,7 +124,9 @@ const countries = [
104
124
  dialCode: '+55',
105
125
  format: '+55 ## ####-####',
106
126
  flag: 'https://flagcdn.com/w40/br.png',
107
- phoneLength: 11
127
+ phoneLength: 11,
128
+ minLength: 10,
129
+ maxLength: 11
108
130
  },
109
131
  {
110
132
  name: 'Italy',
@@ -113,7 +135,9 @@ const countries = [
113
135
  dialCode: '+39',
114
136
  format: '+39 ## #### ####',
115
137
  flag: 'https://flagcdn.com/w40/it.png',
116
- phoneLength: 10
138
+ phoneLength: 10,
139
+ minLength: 10,
140
+ maxLength: 12
117
141
  },
118
142
  {
119
143
  name: 'Spain',
@@ -122,7 +146,9 @@ const countries = [
122
146
  dialCode: '+34',
123
147
  format: '+34 ## ## ## ##',
124
148
  flag: 'https://flagcdn.com/w40/es.png',
125
- phoneLength: 9
149
+ phoneLength: 9,
150
+ minLength: 9,
151
+ maxLength: 9
126
152
  },
127
153
  {
128
154
  name: 'Mexico',
@@ -131,7 +157,9 @@ const countries = [
131
157
  dialCode: '+52',
132
158
  format: '+52 ## #### ####',
133
159
  flag: 'https://flagcdn.com/w40/mx.png',
134
- phoneLength: 10
160
+ phoneLength: 10,
161
+ minLength: 10,
162
+ maxLength: 10
135
163
  },
136
164
  {
137
165
  name: 'Russia',
@@ -140,7 +168,9 @@ const countries = [
140
168
  dialCode: '+7',
141
169
  format: '+7 (###) ###-##-##',
142
170
  flag: 'https://flagcdn.com/w40/ru.png',
143
- phoneLength: 10
171
+ phoneLength: 10,
172
+ minLength: 10,
173
+ maxLength: 10
144
174
  },
145
175
  {
146
176
  name: 'Turkey',
@@ -149,7 +179,9 @@ const countries = [
149
179
  dialCode: '+90',
150
180
  format: '+90 (###) ###-##-##',
151
181
  flag: 'https://flagcdn.com/w40/tr.png',
152
- phoneLength: 10
182
+ phoneLength: 10,
183
+ minLength: 10,
184
+ maxLength: 10
153
185
  },
154
186
  {
155
187
  name: 'Indonesia',
@@ -158,7 +190,9 @@ const countries = [
158
190
  dialCode: '+62',
159
191
  format: '+62 ## #### ####',
160
192
  flag: 'https://flagcdn.com/w40/id.png',
161
- phoneLength: 10
193
+ phoneLength: 12,
194
+ minLength: 9,
195
+ maxLength: 12
162
196
  },
163
197
  {
164
198
  name: 'Nigeria',
@@ -167,7 +201,9 @@ const countries = [
167
201
  dialCode: '+234',
168
202
  format: '+234 ## ### ####',
169
203
  flag: 'https://flagcdn.com/w40/ng.png',
170
- phoneLength: 10
204
+ phoneLength: 10,
205
+ minLength: 10,
206
+ maxLength: 11
171
207
  },
172
208
  {
173
209
  name: 'South Africa',
@@ -176,7 +212,9 @@ const countries = [
176
212
  dialCode: '+27',
177
213
  format: '+27 ## ### ####',
178
214
  flag: 'https://flagcdn.com/w40/za.png',
179
- phoneLength: 9
215
+ phoneLength: 9,
216
+ minLength: 9,
217
+ maxLength: 10
180
218
  },
181
219
  {
182
220
  name: 'Argentina',
@@ -185,7 +223,9 @@ const countries = [
185
223
  dialCode: '+54',
186
224
  format: '+54 ## ####-####',
187
225
  flag: 'https://flagcdn.com/w40/ar.png',
188
- phoneLength: 10
226
+ phoneLength: 10,
227
+ minLength: 10,
228
+ maxLength: 11
189
229
  },
190
230
  {
191
231
  name: 'Philippines',
@@ -194,7 +234,9 @@ const countries = [
194
234
  dialCode: '+63',
195
235
  format: '+63 ## #### ####',
196
236
  flag: 'https://flagcdn.com/w40/ph.png',
197
- phoneLength: 10
237
+ phoneLength: 10,
238
+ minLength: 10,
239
+ maxLength: 11
198
240
  },
199
241
  {
200
242
  name: 'Vietnam',
@@ -203,7 +245,9 @@ const countries = [
203
245
  dialCode: '+84',
204
246
  format: '+84 ## #### ####',
205
247
  flag: 'https://flagcdn.com/w40/vn.png',
206
- phoneLength: 9
248
+ phoneLength: 9,
249
+ minLength: 9,
250
+ maxLength: 10
207
251
  },
208
252
  {
209
253
  name: 'Thailand',
@@ -212,7 +256,9 @@ const countries = [
212
256
  dialCode: '+66',
213
257
  format: '+66 ## #### ####',
214
258
  flag: 'https://flagcdn.com/w40/th.png',
215
- phoneLength: 9
259
+ phoneLength: 9,
260
+ minLength: 9,
261
+ maxLength: 10
216
262
  },
217
263
  {
218
264
  name: 'Egypt',
@@ -221,7 +267,9 @@ const countries = [
221
267
  dialCode: '+20',
222
268
  format: '+20 ## #### ####',
223
269
  flag: 'https://flagcdn.com/w40/eg.png',
224
- phoneLength: 10
270
+ phoneLength: 10,
271
+ minLength: 10,
272
+ maxLength: 11
225
273
  },
226
274
  {
227
275
  name: 'Colombia',
@@ -230,7 +278,9 @@ const countries = [
230
278
  dialCode: '+57',
231
279
  format: '+57 ## #### ####',
232
280
  flag: 'https://flagcdn.com/w40/co.png',
233
- phoneLength: 10
281
+ phoneLength: 10,
282
+ minLength: 10,
283
+ maxLength: 10
234
284
  },
235
285
  {
236
286
  name: 'Kenya',
@@ -239,7 +289,9 @@ const countries = [
239
289
  dialCode: '+254',
240
290
  format: '+254 ## ### ####',
241
291
  flag: 'https://flagcdn.com/w40/ke.png',
242
- phoneLength: 9
292
+ phoneLength: 9,
293
+ minLength: 9,
294
+ maxLength: 10
243
295
  },
244
296
  {
245
297
  name: 'Malaysia',
@@ -248,7 +300,9 @@ const countries = [
248
300
  dialCode: '+60',
249
301
  format: '+60 ## #### ####',
250
302
  flag: 'https://flagcdn.com/w40/my.png',
251
- phoneLength: 9
303
+ phoneLength: 9,
304
+ minLength: 9,
305
+ maxLength: 10
252
306
  },
253
307
  {
254
308
  name: 'Saudi Arabia',
@@ -257,7 +311,9 @@ const countries = [
257
311
  dialCode: '+966',
258
312
  format: '+966 ## #### ####',
259
313
  flag: 'https://flagcdn.com/w40/sa.png',
260
- phoneLength: 9
314
+ phoneLength: 9,
315
+ minLength: 9,
316
+ maxLength: 10
261
317
  },
262
318
  {
263
319
  name: 'Peru',
@@ -266,7 +322,9 @@ const countries = [
266
322
  dialCode: '+51',
267
323
  format: '+51 ## #### ####',
268
324
  flag: 'https://flagcdn.com/w40/pe.png',
269
- phoneLength: 9
325
+ phoneLength: 9,
326
+ minLength: 9,
327
+ maxLength: 10
270
328
  },
271
329
  {
272
330
  name: 'Chile',
@@ -275,7 +333,9 @@ const countries = [
275
333
  dialCode: '+56',
276
334
  format: '+56 ## #### ####',
277
335
  flag: 'https://flagcdn.com/w40/cl.png',
278
- phoneLength: 9
336
+ phoneLength: 9,
337
+ minLength: 9,
338
+ maxLength: 10
279
339
  },
280
340
  {
281
341
  name: 'Ukraine',
@@ -284,7 +344,9 @@ const countries = [
284
344
  dialCode: '+380',
285
345
  format: '+380 ## ### ## ##',
286
346
  flag: 'https://flagcdn.com/w40/ua.png',
287
- phoneLength: 9
347
+ phoneLength: 9,
348
+ minLength: 9,
349
+ maxLength: 10
288
350
  },
289
351
  {
290
352
  name: 'Iraq',
@@ -293,7 +355,9 @@ const countries = [
293
355
  dialCode: '+964',
294
356
  format: '+964 ## #### ####',
295
357
  flag: 'https://flagcdn.com/w40/iq.png',
296
- phoneLength: 10
358
+ phoneLength: 10,
359
+ minLength: 10,
360
+ maxLength: 11
297
361
  },
298
362
  {
299
363
  name: 'Morocco',
@@ -302,7 +366,9 @@ const countries = [
302
366
  dialCode: '+212',
303
367
  format: '+212 ## ### ####',
304
368
  flag: 'https://flagcdn.com/w40/ma.png',
305
- phoneLength: 9
369
+ phoneLength: 9,
370
+ minLength: 9,
371
+ maxLength: 10
306
372
  },
307
373
  {
308
374
  name: 'Algeria',
@@ -311,7 +377,9 @@ const countries = [
311
377
  dialCode: '+213',
312
378
  format: '+213 ## ## ## ##',
313
379
  flag: 'https://flagcdn.com/w40/dz.png',
314
- phoneLength: 9
380
+ phoneLength: 9,
381
+ minLength: 9,
382
+ maxLength: 9
315
383
  },
316
384
  {
317
385
  name: 'Kazakhstan',
@@ -320,7 +388,9 @@ const countries = [
320
388
  dialCode: '+7',
321
389
  format: '+7 (###) ###-##-##',
322
390
  flag: 'https://flagcdn.com/w40/kz.png',
323
- phoneLength: 10
391
+ phoneLength: 10,
392
+ minLength: 10,
393
+ maxLength: 10
324
394
  },
325
395
  {
326
396
  name: 'Ethiopia',
@@ -329,7 +399,9 @@ const countries = [
329
399
  dialCode: '+251',
330
400
  format: '+251 ## #### ####',
331
401
  flag: 'https://flagcdn.com/w40/et.png',
332
- phoneLength: 9
402
+ phoneLength: 9,
403
+ minLength: 9,
404
+ maxLength: 10
333
405
  },
334
406
  {
335
407
  name: 'Sudan',
@@ -338,7 +410,9 @@ const countries = [
338
410
  dialCode: '+249',
339
411
  format: '+249 ## ### ####',
340
412
  flag: 'https://flagcdn.com/w40/sd.png',
341
- phoneLength: 9
413
+ phoneLength: 9,
414
+ minLength: 9,
415
+ maxLength: 10
342
416
  },
343
417
  {
344
418
  name: 'Angola',
@@ -347,7 +421,9 @@ const countries = [
347
421
  dialCode: '+244',
348
422
  format: '+244 ## ### ####',
349
423
  flag: 'https://flagcdn.com/w40/ao.png',
350
- phoneLength: 9
424
+ phoneLength: 9,
425
+ minLength: 9,
426
+ maxLength: 10
351
427
  },
352
428
  {
353
429
  name: 'Ghana',
@@ -356,7 +432,9 @@ const countries = [
356
432
  dialCode: '+233',
357
433
  format: '+233 ## ### ####',
358
434
  flag: 'https://flagcdn.com/w40/gh.png',
359
- phoneLength: 9
435
+ phoneLength: 9,
436
+ minLength: 9,
437
+ maxLength: 10
360
438
  },
361
439
  {
362
440
  name: 'Uganda',
@@ -365,7 +443,9 @@ const countries = [
365
443
  dialCode: '+256',
366
444
  format: '+256 ## ### ####',
367
445
  flag: 'https://flagcdn.com/w40/ug.png',
368
- phoneLength: 9
446
+ phoneLength: 9,
447
+ minLength: 9,
448
+ maxLength: 10
369
449
  },
370
450
  {
371
451
  name: 'Nepal',
@@ -374,7 +454,9 @@ const countries = [
374
454
  dialCode: '+977',
375
455
  format: '+977 ## #### ####',
376
456
  flag: 'https://flagcdn.com/w40/np.png',
377
- phoneLength: 10
457
+ phoneLength: 10,
458
+ minLength: 10,
459
+ maxLength: 11
378
460
  },
379
461
  {
380
462
  name: 'Venezuela',
@@ -383,7 +465,9 @@ const countries = [
383
465
  dialCode: '+58',
384
466
  format: '+58 ##-###-####',
385
467
  flag: 'https://flagcdn.com/w40/ve.png',
386
- phoneLength: 10
468
+ phoneLength: 10,
469
+ minLength: 10,
470
+ maxLength: 10
387
471
  },
388
472
  {
389
473
  name: 'Tanzania',
@@ -392,7 +476,9 @@ const countries = [
392
476
  dialCode: '+255',
393
477
  format: '+255 ## ### ####',
394
478
  flag: 'https://flagcdn.com/w40/tz.png',
395
- phoneLength: 9
479
+ phoneLength: 9,
480
+ minLength: 9,
481
+ maxLength: 10
396
482
  },
397
483
  {
398
484
  name: 'Zimbabwe',
@@ -401,7 +487,9 @@ const countries = [
401
487
  dialCode: '+263',
402
488
  format: '+263 ## ### ####',
403
489
  flag: 'https://flagcdn.com/w40/zw.png',
404
- phoneLength: 9
490
+ phoneLength: 9,
491
+ minLength: 9,
492
+ maxLength: 10
405
493
  },
406
494
  {
407
495
  name: 'Czech Republic',
@@ -410,7 +498,9 @@ const countries = [
410
498
  dialCode: '+420',
411
499
  format: '+420 ## ### ###',
412
500
  flag: 'https://flagcdn.com/w40/cz.png',
413
- phoneLength: 9
501
+ phoneLength: 9,
502
+ minLength: 9,
503
+ maxLength: 9
414
504
  },
415
505
  {
416
506
  name: 'Finland',
@@ -419,7 +509,9 @@ const countries = [
419
509
  dialCode: '+358',
420
510
  format: '+358 ## #### ####',
421
511
  flag: 'https://flagcdn.com/w40/fi.png',
422
- phoneLength: 10
512
+ phoneLength: 10,
513
+ minLength: 10,
514
+ maxLength: 12
423
515
  },
424
516
  {
425
517
  name: 'Sweden',
@@ -428,7 +520,9 @@ const countries = [
428
520
  dialCode: '+46',
429
521
  format: '+46 ## ### ## ##',
430
522
  flag: 'https://flagcdn.com/w40/se.png',
431
- phoneLength: 9
523
+ phoneLength: 9,
524
+ minLength: 9,
525
+ maxLength: 10
432
526
  },
433
527
  {
434
528
  name: 'Norway',
@@ -437,7 +531,9 @@ const countries = [
437
531
  dialCode: '+47',
438
532
  format: '+47 ## ## ## ##',
439
533
  flag: 'https://flagcdn.com/w40/no.png',
440
- phoneLength: 8
534
+ phoneLength: 8,
535
+ minLength: 8,
536
+ maxLength: 8
441
537
  },
442
538
  {
443
539
  name: 'Denmark',
@@ -446,7 +542,9 @@ const countries = [
446
542
  dialCode: '+45',
447
543
  format: '+45 ## ## ## ##',
448
544
  flag: 'https://flagcdn.com/w40/dk.png',
449
- phoneLength: 8
545
+ phoneLength: 8,
546
+ minLength: 8,
547
+ maxLength: 8
450
548
  },
451
549
  {
452
550
  name: 'Austria',
@@ -455,7 +553,9 @@ const countries = [
455
553
  dialCode: '+43',
456
554
  format: '+43 ## #### ####',
457
555
  flag: 'https://flagcdn.com/w40/at.png',
458
- phoneLength: 10
556
+ phoneLength: 10,
557
+ minLength: 10,
558
+ maxLength: 12
459
559
  },
460
560
  {
461
561
  name: 'Belgium',
@@ -464,7 +564,9 @@ const countries = [
464
564
  dialCode: '+32',
465
565
  format: '+32 ## ## ## ##',
466
566
  flag: 'https://flagcdn.com/w40/be.png',
467
- phoneLength: 9
567
+ phoneLength: 9,
568
+ minLength: 9,
569
+ maxLength: 9
468
570
  },
469
571
  {
470
572
  name: 'Switzerland',
@@ -473,7 +575,9 @@ const countries = [
473
575
  dialCode: '+41',
474
576
  format: '+41 ## ### ####',
475
577
  flag: 'https://flagcdn.com/w40/ch.png',
476
- phoneLength: 9
578
+ phoneLength: 9,
579
+ minLength: 9,
580
+ maxLength: 10
477
581
  },
478
582
  {
479
583
  name: 'Portugal',
@@ -482,7 +586,9 @@ const countries = [
482
586
  dialCode: '+351',
483
587
  format: '+351 ## ### ####',
484
588
  flag: 'https://flagcdn.com/w40/pt.png',
485
- phoneLength: 9
589
+ phoneLength: 9,
590
+ minLength: 9,
591
+ maxLength: 10
486
592
  },
487
593
  {
488
594
  name: 'Ireland',
@@ -491,7 +597,9 @@ const countries = [
491
597
  dialCode: '+353',
492
598
  format: '+353 ## ### ####',
493
599
  flag: 'https://flagcdn.com/w40/ie.png',
494
- phoneLength: 9
600
+ phoneLength: 9,
601
+ minLength: 9,
602
+ maxLength: 10
495
603
  },
496
604
  {
497
605
  name: 'Hungary',
@@ -500,7 +608,9 @@ const countries = [
500
608
  dialCode: '+36',
501
609
  format: '+36 ## ### ####',
502
610
  flag: 'https://flagcdn.com/w40/hu.png',
503
- phoneLength: 9
611
+ phoneLength: 9,
612
+ minLength: 9,
613
+ maxLength: 10
504
614
  },
505
615
  {
506
616
  name: 'Romania',
@@ -509,7 +619,9 @@ const countries = [
509
619
  dialCode: '+40',
510
620
  format: '+40 ## #### ####',
511
621
  flag: 'https://flagcdn.com/w40/ro.png',
512
- phoneLength: 9
622
+ phoneLength: 9,
623
+ minLength: 9,
624
+ maxLength: 10
513
625
  },
514
626
  {
515
627
  name: 'Slovakia',
@@ -518,7 +630,9 @@ const countries = [
518
630
  dialCode: '+421',
519
631
  format: '+421 ## ### ###',
520
632
  flag: 'https://flagcdn.com/w40/sk.png',
521
- phoneLength: 9
633
+ phoneLength: 9,
634
+ minLength: 9,
635
+ maxLength: 9
522
636
  },
523
637
  {
524
638
  name: 'Bulgaria',
@@ -527,7 +641,9 @@ const countries = [
527
641
  dialCode: '+359',
528
642
  format: '+359 ## ### ####',
529
643
  flag: 'https://flagcdn.com/w40/bg.png',
530
- phoneLength: 9
644
+ phoneLength: 9,
645
+ minLength: 9,
646
+ maxLength: 10
531
647
  },
532
648
  {
533
649
  name: 'Croatia',
@@ -536,7 +652,9 @@ const countries = [
536
652
  dialCode: '+385',
537
653
  format: '+385 ## ### ####',
538
654
  flag: 'https://flagcdn.com/w40/hr.png',
539
- phoneLength: 9
655
+ phoneLength: 9,
656
+ minLength: 9,
657
+ maxLength: 10
540
658
  },
541
659
  {
542
660
  name: 'Serbia',
@@ -545,7 +663,9 @@ const countries = [
545
663
  dialCode: '+381',
546
664
  format: '+381 ## ### ####',
547
665
  flag: 'https://flagcdn.com/w40/rs.png',
548
- phoneLength: 9
666
+ phoneLength: 9,
667
+ minLength: 9,
668
+ maxLength: 10
549
669
  },
550
670
  {
551
671
  name: 'Slovenia',
@@ -554,7 +674,9 @@ const countries = [
554
674
  dialCode: '+386',
555
675
  format: '+386 ## ### ####',
556
676
  flag: 'https://flagcdn.com/w40/si.png',
557
- phoneLength: 8
677
+ phoneLength: 8,
678
+ minLength: 8,
679
+ maxLength: 9
558
680
  },
559
681
  {
560
682
  name: 'Lithuania',
@@ -563,7 +685,9 @@ const countries = [
563
685
  dialCode: '+370',
564
686
  format: '+370 ## ### ####',
565
687
  flag: 'https://flagcdn.com/w40/lt.png',
566
- phoneLength: 8
688
+ phoneLength: 8,
689
+ minLength: 8,
690
+ maxLength: 9
567
691
  },
568
692
  {
569
693
  name: 'Latvia',
@@ -572,7 +696,9 @@ const countries = [
572
696
  dialCode: '+371',
573
697
  format: '+371 ## ### ####',
574
698
  flag: 'https://flagcdn.com/w40/lv.png',
575
- phoneLength: 8
699
+ phoneLength: 8,
700
+ minLength: 8,
701
+ maxLength: 9
576
702
  },
577
703
  {
578
704
  name: 'Estonia',
@@ -581,7 +707,9 @@ const countries = [
581
707
  dialCode: '+372',
582
708
  format: '+372 ## ### ####',
583
709
  flag: 'https://flagcdn.com/w40/ee.png',
584
- phoneLength: 8
710
+ phoneLength: 8,
711
+ minLength: 8,
712
+ maxLength: 9
585
713
  },
586
714
  {
587
715
  name: 'Moldova',
@@ -590,7 +718,9 @@ const countries = [
590
718
  dialCode: '+373',
591
719
  format: '+373 ## ### ###',
592
720
  flag: 'https://flagcdn.com/w40/md.png',
593
- phoneLength: 8
721
+ phoneLength: 8,
722
+ minLength: 8,
723
+ maxLength: 8
594
724
  },
595
725
  {
596
726
  name: 'Belarus',
@@ -599,7 +729,9 @@ const countries = [
599
729
  dialCode: '+375',
600
730
  format: '+375 ## ### ####',
601
731
  flag: 'https://flagcdn.com/w40/by.png',
602
- phoneLength: 9
732
+ phoneLength: 9,
733
+ minLength: 9,
734
+ maxLength: 10
603
735
  },
604
736
  {
605
737
  name: 'Bosnia and Herzegovina',
@@ -608,7 +740,9 @@ const countries = [
608
740
  dialCode: '+387',
609
741
  format: '+387 ## ### ####',
610
742
  flag: 'https://flagcdn.com/w40/ba.png',
611
- phoneLength: 8
743
+ phoneLength: 8,
744
+ minLength: 8,
745
+ maxLength: 9
612
746
  },
613
747
  {
614
748
  name: 'North Macedonia',
@@ -617,7 +751,9 @@ const countries = [
617
751
  dialCode: '+389',
618
752
  format: '+389 ## ### ####',
619
753
  flag: 'https://flagcdn.com/w40/mk.png',
620
- phoneLength: 8
754
+ phoneLength: 8,
755
+ minLength: 8,
756
+ maxLength: 9
621
757
  },
622
758
  {
623
759
  name: 'Georgia',
@@ -626,7 +762,9 @@ const countries = [
626
762
  dialCode: '+995',
627
763
  format: '+995 ## ### ####',
628
764
  flag: 'https://flagcdn.com/w40/ge.png',
629
- phoneLength: 9
765
+ phoneLength: 9,
766
+ minLength: 9,
767
+ maxLength: 10
630
768
  },
631
769
  {
632
770
  name: 'Armenia',
@@ -635,7 +773,9 @@ const countries = [
635
773
  dialCode: '+374',
636
774
  format: '+374 ## ### ####',
637
775
  flag: 'https://flagcdn.com/w40/am.png',
638
- phoneLength: 8
776
+ phoneLength: 8,
777
+ minLength: 8,
778
+ maxLength: 9
639
779
  },
640
780
  {
641
781
  name: 'Azerbaijan',
@@ -644,7 +784,9 @@ const countries = [
644
784
  dialCode: '+994',
645
785
  format: '+994 ## ### ## ##',
646
786
  flag: 'https://flagcdn.com/w40/az.png',
647
- phoneLength: 9
787
+ phoneLength: 9,
788
+ minLength: 9,
789
+ maxLength: 10
648
790
  },
649
791
  {
650
792
  name: 'Kyrgyzstan',
@@ -653,7 +795,9 @@ const countries = [
653
795
  dialCode: '+996',
654
796
  format: '+996 ## ### ####',
655
797
  flag: 'https://flagcdn.com/w40/kg.png',
656
- phoneLength: 9
798
+ phoneLength: 9,
799
+ minLength: 9,
800
+ maxLength: 10
657
801
  },
658
802
  {
659
803
  name: 'Uzbekistan',
@@ -662,7 +806,9 @@ const countries = [
662
806
  dialCode: '+998',
663
807
  format: '+998 ## ### ## ##',
664
808
  flag: 'https://flagcdn.com/w40/uz.png',
665
- phoneLength: 9
809
+ phoneLength: 9,
810
+ minLength: 9,
811
+ maxLength: 10
666
812
  },
667
813
  {
668
814
  name: 'Turkmenistan',
@@ -671,7 +817,9 @@ const countries = [
671
817
  dialCode: '+993',
672
818
  format: '+993 ## ### ## ##',
673
819
  flag: 'https://flagcdn.com/w40/tm.png',
674
- phoneLength: 8
820
+ phoneLength: 8,
821
+ minLength: 8,
822
+ maxLength: 9
675
823
  },
676
824
  {
677
825
  name: 'Tajikistan',
@@ -680,7 +828,9 @@ const countries = [
680
828
  dialCode: '+992',
681
829
  format: '+992 ## ### ####',
682
830
  flag: 'https://flagcdn.com/w40/tj.png',
683
- phoneLength: 9
831
+ phoneLength: 9,
832
+ minLength: 9,
833
+ maxLength: 10
684
834
  },
685
835
  {
686
836
  name: 'Mongolia',
@@ -689,7 +839,9 @@ const countries = [
689
839
  dialCode: '+976',
690
840
  format: '+976 ## #### ####',
691
841
  flag: 'https://flagcdn.com/w40/mn.png',
692
- phoneLength: 8
842
+ phoneLength: 8,
843
+ minLength: 8,
844
+ maxLength: 9
693
845
  },
694
846
  {
695
847
  name: 'Myanmar',
@@ -698,7 +850,9 @@ const countries = [
698
850
  dialCode: '+95',
699
851
  format: '+95 ## #### ####',
700
852
  flag: 'https://flagcdn.com/w40/mm.png',
701
- phoneLength: 9
853
+ phoneLength: 9,
854
+ minLength: 9,
855
+ maxLength: 10
702
856
  },
703
857
  {
704
858
  name: 'Cambodia',
@@ -707,7 +861,9 @@ const countries = [
707
861
  dialCode: '+855',
708
862
  format: '+855 ## ### ###',
709
863
  flag: 'https://flagcdn.com/w40/kh.png',
710
- phoneLength: 8
864
+ phoneLength: 8,
865
+ minLength: 8,
866
+ maxLength: 8
711
867
  },
712
868
  {
713
869
  name: 'Bangladesh',
@@ -716,7 +872,9 @@ const countries = [
716
872
  dialCode: '+880',
717
873
  format: '+880 ## #### ####',
718
874
  flag: 'https://flagcdn.com/w40/bd.png',
719
- phoneLength: 10
875
+ phoneLength: 10,
876
+ minLength: 10,
877
+ maxLength: 11
720
878
  },
721
879
  {
722
880
  name: 'Laos',
@@ -725,7 +883,9 @@ const countries = [
725
883
  dialCode: '+856',
726
884
  format: '+856 ## ### ####',
727
885
  flag: 'https://flagcdn.com/w40/la.png',
728
- phoneLength: 10
886
+ phoneLength: 10,
887
+ minLength: 10,
888
+ maxLength: 11
729
889
  },
730
890
  {
731
891
  name: 'Brunei',
@@ -734,7 +894,9 @@ const countries = [
734
894
  dialCode: '+673',
735
895
  format: '+673 ## ### ####',
736
896
  flag: 'https://flagcdn.com/w40/bn.png',
737
- phoneLength: 7
897
+ phoneLength: 7,
898
+ minLength: 7,
899
+ maxLength: 8
738
900
  },
739
901
  {
740
902
  name: 'Singapore',
@@ -743,7 +905,9 @@ const countries = [
743
905
  dialCode: '+65',
744
906
  format: '+65 #### ####',
745
907
  flag: 'https://flagcdn.com/w40/sg.png',
746
- phoneLength: 8
908
+ phoneLength: 8,
909
+ minLength: 8,
910
+ maxLength: 8
747
911
  },
748
912
  {
749
913
  name: 'New Zealand',
@@ -752,7 +916,9 @@ const countries = [
752
916
  dialCode: '+64',
753
917
  format: '+64 ## ### ####',
754
918
  flag: 'https://flagcdn.com/w40/nz.png',
755
- phoneLength: 9
919
+ phoneLength: 9,
920
+ minLength: 9,
921
+ maxLength: 10
756
922
  },
757
923
  {
758
924
  name: 'Australia',
@@ -761,7 +927,9 @@ const countries = [
761
927
  dialCode: '+61',
762
928
  format: '+61 ## ### ####',
763
929
  flag: 'https://flagcdn.com/w40/au.png',
764
- phoneLength: 9
930
+ phoneLength: 9,
931
+ minLength: 9,
932
+ maxLength: 10
765
933
  },
766
934
  {
767
935
  name: 'Fiji',
@@ -770,7 +938,9 @@ const countries = [
770
938
  dialCode: '+679',
771
939
  format: '+679 ## ### ####',
772
940
  flag: 'https://flagcdn.com/w40/fj.png',
773
- phoneLength: 7
941
+ phoneLength: 7,
942
+ minLength: 7,
943
+ maxLength: 8
774
944
  },
775
945
  {
776
946
  name: 'Papua New Guinea',
@@ -779,7 +949,9 @@ const countries = [
779
949
  dialCode: '+675',
780
950
  format: '+675 ## ### ####',
781
951
  flag: 'https://flagcdn.com/w40/pg.png',
782
- phoneLength: 8
952
+ phoneLength: 8,
953
+ minLength: 8,
954
+ maxLength: 9
783
955
  },
784
956
  {
785
957
  name: 'Solomon Islands',
@@ -788,7 +960,9 @@ const countries = [
788
960
  dialCode: '+677',
789
961
  format: '+677 ## ### ####',
790
962
  flag: 'https://flagcdn.com/w40/sb.png',
791
- phoneLength: 7
963
+ phoneLength: 7,
964
+ minLength: 7,
965
+ maxLength: 8
792
966
  },
793
967
  {
794
968
  name: 'Samoa',
@@ -797,7 +971,9 @@ const countries = [
797
971
  dialCode: '+685',
798
972
  format: '+685 ## ### ####',
799
973
  flag: 'https://flagcdn.com/w40/ws.png',
800
- phoneLength: 7
974
+ phoneLength: 7,
975
+ minLength: 7,
976
+ maxLength: 8
801
977
  },
802
978
  {
803
979
  name: 'Tonga',
@@ -806,7 +982,9 @@ const countries = [
806
982
  dialCode: '+676',
807
983
  format: '+676 ## ### ####',
808
984
  flag: 'https://flagcdn.com/w40/to.png',
809
- phoneLength: 7
985
+ phoneLength: 7,
986
+ minLength: 7,
987
+ maxLength: 8
810
988
  },
811
989
  {
812
990
  name: 'Vanuatu',
@@ -815,7 +993,9 @@ const countries = [
815
993
  dialCode: '+678',
816
994
  format: '+678 ## ### ####',
817
995
  flag: 'https://flagcdn.com/w40/vu.png',
818
- phoneLength: 7
996
+ phoneLength: 7,
997
+ minLength: 7,
998
+ maxLength: 8
819
999
  },
820
1000
  {
821
1001
  name: 'Kiribati',
@@ -824,7 +1004,9 @@ const countries = [
824
1004
  dialCode: '+686',
825
1005
  format: '+686 ## ### ####',
826
1006
  flag: 'https://flagcdn.com/w40/ki.png',
827
- phoneLength: 5
1007
+ phoneLength: 5,
1008
+ minLength: 5,
1009
+ maxLength: 6
828
1010
  },
829
1011
  {
830
1012
  name: 'Marshall Islands',
@@ -833,7 +1015,9 @@ const countries = [
833
1015
  dialCode: '+692',
834
1016
  format: '+692 ## ### ####',
835
1017
  flag: 'https://flagcdn.com/w40/mh.png',
836
- phoneLength: 7
1018
+ phoneLength: 7,
1019
+ minLength: 7,
1020
+ maxLength: 8
837
1021
  },
838
1022
  {
839
1023
  name: 'Micronesia',
@@ -842,7 +1026,9 @@ const countries = [
842
1026
  dialCode: '+691',
843
1027
  format: '+691 ## ### ####',
844
1028
  flag: 'https://flagcdn.com/w40/fm.png',
845
- phoneLength: 7
1029
+ phoneLength: 7,
1030
+ minLength: 7,
1031
+ maxLength: 8
846
1032
  },
847
1033
  {
848
1034
  name: 'Tuvalu',
@@ -851,7 +1037,9 @@ const countries = [
851
1037
  dialCode: '+688',
852
1038
  format: '+688 ## ### ####',
853
1039
  flag: 'https://flagcdn.com/w40/tv.png',
854
- phoneLength: 5
1040
+ phoneLength: 5,
1041
+ minLength: 5,
1042
+ maxLength: 6
855
1043
  },
856
1044
  {
857
1045
  name: 'Nauru',
@@ -860,7 +1048,9 @@ const countries = [
860
1048
  dialCode: '+674',
861
1049
  format: '+674 ## ### ####',
862
1050
  flag: 'https://flagcdn.com/w40/nr.png',
863
- phoneLength: 7
1051
+ phoneLength: 7,
1052
+ minLength: 7,
1053
+ maxLength: 8
864
1054
  },
865
1055
  {
866
1056
  name: 'Palau',
@@ -869,7 +1059,9 @@ const countries = [
869
1059
  dialCode: '+680',
870
1060
  format: '+680 ## ### ####',
871
1061
  flag: 'https://flagcdn.com/w40/pw.png',
872
- phoneLength: 7
1062
+ phoneLength: 7,
1063
+ minLength: 7,
1064
+ maxLength: 8
873
1065
  },
874
1066
  {
875
1067
  name: 'American Samoa',
@@ -878,7 +1070,9 @@ const countries = [
878
1070
  dialCode: '+1 684',
879
1071
  format: '+1 684 ### ####',
880
1072
  flag: 'https://flagcdn.com/w40/as.png',
881
- phoneLength: 7
1073
+ phoneLength: 7,
1074
+ minLength: 7,
1075
+ maxLength: 7
882
1076
  },
883
1077
  {
884
1078
  name: 'Guam',
@@ -887,7 +1081,9 @@ const countries = [
887
1081
  dialCode: '+1 671',
888
1082
  format: '+1 671 ### ####',
889
1083
  flag: 'https://flagcdn.com/w40/gu.png',
890
- phoneLength: 7
1084
+ phoneLength: 7,
1085
+ minLength: 7,
1086
+ maxLength: 7
891
1087
  },
892
1088
  {
893
1089
  name: 'Northern Mariana Islands',
@@ -896,7 +1092,9 @@ const countries = [
896
1092
  dialCode: '+1 670',
897
1093
  format: '+1 670 ### ####',
898
1094
  flag: 'https://flagcdn.com/w40/mp.png',
899
- phoneLength: 7
1095
+ phoneLength: 7,
1096
+ minLength: 7,
1097
+ maxLength: 7
900
1098
  },
901
1099
  {
902
1100
  name: 'Puerto Rico',
@@ -905,7 +1103,9 @@ const countries = [
905
1103
  dialCode: '+1 787',
906
1104
  format: '+1 787 ### ####',
907
1105
  flag: 'https://flagcdn.com/w40/pr.png',
908
- phoneLength: 10
1106
+ phoneLength: 10,
1107
+ minLength: 10,
1108
+ maxLength: 10
909
1109
  },
910
1110
  {
911
1111
  name: 'Virgin Islands (US)',
@@ -914,7 +1114,9 @@ const countries = [
914
1114
  dialCode: '+1 340',
915
1115
  format: '+1 340 ### ####',
916
1116
  flag: 'https://flagcdn.com/w40/vi.png',
917
- phoneLength: 10
1117
+ phoneLength: 10,
1118
+ minLength: 10,
1119
+ maxLength: 10
918
1120
  },
919
1121
  {
920
1122
  name: 'Saint Kitts and Nevis',
@@ -923,7 +1125,9 @@ const countries = [
923
1125
  dialCode: '+1 869',
924
1126
  format: '+1 869 ### ####',
925
1127
  flag: 'https://flagcdn.com/w40/kn.png',
926
- phoneLength: 10
1128
+ phoneLength: 10,
1129
+ minLength: 10,
1130
+ maxLength: 10
927
1131
  },
928
1132
  {
929
1133
  name: 'Saint Lucia',
@@ -932,7 +1136,9 @@ const countries = [
932
1136
  dialCode: '+1 758',
933
1137
  format: '+1 758 ### ####',
934
1138
  flag: 'https://flagcdn.com/w40/lc.png',
935
- phoneLength: 10
1139
+ phoneLength: 10,
1140
+ minLength: 10,
1141
+ maxLength: 10
936
1142
  },
937
1143
  {
938
1144
  name: 'Saint Vincent and the Grenadines',
@@ -941,7 +1147,9 @@ const countries = [
941
1147
  dialCode: '+1 784',
942
1148
  format: '+1 784 ### ####',
943
1149
  flag: 'https://flagcdn.com/w40/vc.png',
944
- phoneLength: 10
1150
+ phoneLength: 10,
1151
+ minLength: 10,
1152
+ maxLength: 10
945
1153
  },
946
1154
  {
947
1155
  name: 'Dominica',
@@ -950,7 +1158,9 @@ const countries = [
950
1158
  dialCode: '+1 767',
951
1159
  format: '+1 767 ### ####',
952
1160
  flag: 'https://flagcdn.com/w40/dm.png',
953
- phoneLength: 10
1161
+ phoneLength: 10,
1162
+ minLength: 10,
1163
+ maxLength: 10
954
1164
  },
955
1165
  {
956
1166
  name: 'Grenada',
@@ -959,7 +1169,9 @@ const countries = [
959
1169
  dialCode: '+1 473',
960
1170
  format: '+1 473 ### ####',
961
1171
  flag: 'https://flagcdn.com/w40/gd.png',
962
- phoneLength: 10
1172
+ phoneLength: 10,
1173
+ minLength: 10,
1174
+ maxLength: 10
963
1175
  },
964
1176
  {
965
1177
  name: 'Barbados',
@@ -968,7 +1180,9 @@ const countries = [
968
1180
  dialCode: '+1 246',
969
1181
  format: '+1 246 ### ####',
970
1182
  flag: 'https://flagcdn.com/w40/bb.png',
971
- phoneLength: 10
1183
+ phoneLength: 10,
1184
+ minLength: 10,
1185
+ maxLength: 10
972
1186
  },
973
1187
  {
974
1188
  name: 'Antigua and Barbuda',
@@ -977,7 +1191,9 @@ const countries = [
977
1191
  dialCode: '+1 268',
978
1192
  format: '+1 268 ### ####',
979
1193
  flag: 'https://flagcdn.com/w40/ag.png',
980
- phoneLength: 10
1194
+ phoneLength: 10,
1195
+ minLength: 10,
1196
+ maxLength: 10
981
1197
  },
982
1198
  {
983
1199
  name: 'Dominican Republic',
@@ -986,7 +1202,9 @@ const countries = [
986
1202
  dialCode: '+1 809',
987
1203
  format: '+1 809 ### ####',
988
1204
  flag: 'https://flagcdn.com/w40/do.png',
989
- phoneLength: 10
1205
+ phoneLength: 10,
1206
+ minLength: 10,
1207
+ maxLength: 10
990
1208
  },
991
1209
  {
992
1210
  name: 'Haiti',
@@ -995,7 +1213,9 @@ const countries = [
995
1213
  dialCode: '+509',
996
1214
  format: '+509 ##-##-####',
997
1215
  flag: 'https://flagcdn.com/w40/ht.png',
998
- phoneLength: 8
1216
+ phoneLength: 8,
1217
+ minLength: 8,
1218
+ maxLength: 8
999
1219
  },
1000
1220
  {
1001
1221
  name: 'Cuba',
@@ -1004,7 +1224,9 @@ const countries = [
1004
1224
  dialCode: '+53',
1005
1225
  format: '+53 ##-###-####',
1006
1226
  flag: 'https://flagcdn.com/w40/cu.png',
1007
- phoneLength: 8
1227
+ phoneLength: 8,
1228
+ minLength: 8,
1229
+ maxLength: 8
1008
1230
  },
1009
1231
  {
1010
1232
  name: 'Jamaica',
@@ -1013,7 +1235,9 @@ const countries = [
1013
1235
  dialCode: '+1 876',
1014
1236
  format: '+1 876 ### ####',
1015
1237
  flag: 'https://flagcdn.com/w40/jm.png',
1016
- phoneLength: 10
1238
+ phoneLength: 10,
1239
+ minLength: 10,
1240
+ maxLength: 10
1017
1241
  },
1018
1242
  {
1019
1243
  name: 'Bahamas',
@@ -1022,7 +1246,9 @@ const countries = [
1022
1246
  dialCode: '+1 242',
1023
1247
  format: '+1 242 ### ####',
1024
1248
  flag: 'https://flagcdn.com/w40/bs.png',
1025
- phoneLength: 10
1249
+ phoneLength: 10,
1250
+ minLength: 10,
1251
+ maxLength: 10
1026
1252
  },
1027
1253
  {
1028
1254
  name: 'Trinidad and Tobago',
@@ -1031,7 +1257,9 @@ const countries = [
1031
1257
  dialCode: '+1 868',
1032
1258
  format: '+1 868 ### ####',
1033
1259
  flag: 'https://flagcdn.com/w40/tt.png',
1034
- phoneLength: 10
1260
+ phoneLength: 10,
1261
+ minLength: 10,
1262
+ maxLength: 10
1035
1263
  },
1036
1264
  {
1037
1265
  name: 'Montserrat',
@@ -1040,7 +1268,9 @@ const countries = [
1040
1268
  dialCode: '+1 664',
1041
1269
  format: '+1 664 ### ####',
1042
1270
  flag: 'https://flagcdn.com/w40/ms.png',
1043
- phoneLength: 10
1271
+ phoneLength: 10,
1272
+ minLength: 10,
1273
+ maxLength: 10
1044
1274
  },
1045
1275
  {
1046
1276
  name: 'Anguilla',
@@ -1049,7 +1279,9 @@ const countries = [
1049
1279
  dialCode: '+1 264',
1050
1280
  format: '+1 264 ### ####',
1051
1281
  flag: 'https://flagcdn.com/w40/ai.png',
1052
- phoneLength: 10
1282
+ phoneLength: 10,
1283
+ minLength: 10,
1284
+ maxLength: 10
1053
1285
  },
1054
1286
  {
1055
1287
  name: 'British Virgin Islands',
@@ -1058,7 +1290,9 @@ const countries = [
1058
1290
  dialCode: '+1 284',
1059
1291
  format: '+1 284 ### ####',
1060
1292
  flag: 'https://flagcdn.com/w40/vg.png',
1061
- phoneLength: 10
1293
+ phoneLength: 10,
1294
+ minLength: 10,
1295
+ maxLength: 10
1062
1296
  },
1063
1297
  {
1064
1298
  name: 'Turks and Caicos Islands',
@@ -1067,7 +1301,9 @@ const countries = [
1067
1301
  dialCode: '+1 649',
1068
1302
  format: '+1 649 ### ####',
1069
1303
  flag: 'https://flagcdn.com/w40/tc.png',
1070
- phoneLength: 10
1304
+ phoneLength: 10,
1305
+ minLength: 10,
1306
+ maxLength: 10
1071
1307
  },
1072
1308
  {
1073
1309
  name: 'Greenland',
@@ -1076,7 +1312,9 @@ const countries = [
1076
1312
  dialCode: '+299',
1077
1313
  format: '+299 ## ## ##',
1078
1314
  flag: 'https://flagcdn.com/w40/gl.png',
1079
- phoneLength: 6
1315
+ phoneLength: 6,
1316
+ minLength: 6,
1317
+ maxLength: 6
1080
1318
  },
1081
1319
  {
1082
1320
  name: 'Bermuda',
@@ -1085,7 +1323,9 @@ const countries = [
1085
1323
  dialCode: '+1 441',
1086
1324
  format: '+1 441 ### ####',
1087
1325
  flag: 'https://flagcdn.com/w40/bm.png',
1088
- phoneLength: 10
1326
+ phoneLength: 10,
1327
+ minLength: 10,
1328
+ maxLength: 10
1089
1329
  },
1090
1330
  {
1091
1331
  name: 'Guadeloupe',
@@ -1094,7 +1334,9 @@ const countries = [
1094
1334
  dialCode: '+590',
1095
1335
  format: '+590 ## ## ## ##',
1096
1336
  flag: 'https://flagcdn.com/w40/gp.png',
1097
- phoneLength: 9
1337
+ phoneLength: 9,
1338
+ minLength: 9,
1339
+ maxLength: 9
1098
1340
  },
1099
1341
  {
1100
1342
  name: 'Martinique',
@@ -1103,7 +1345,9 @@ const countries = [
1103
1345
  dialCode: '+596',
1104
1346
  format: '+596 ## ## ## ##',
1105
1347
  flag: 'https://flagcdn.com/w40/mq.png',
1106
- phoneLength: 9
1348
+ phoneLength: 9,
1349
+ minLength: 9,
1350
+ maxLength: 9
1107
1351
  },
1108
1352
  {
1109
1353
  name: 'Réunion',
@@ -1112,7 +1356,9 @@ const countries = [
1112
1356
  dialCode: '+262',
1113
1357
  format: '+262 ## ## ## ##',
1114
1358
  flag: 'https://flagcdn.com/w40/re.png',
1115
- phoneLength: 9
1359
+ phoneLength: 9,
1360
+ minLength: 9,
1361
+ maxLength: 9
1116
1362
  },
1117
1363
  {
1118
1364
  name: 'Mayotte',
@@ -1121,7 +1367,9 @@ const countries = [
1121
1367
  dialCode: '+262',
1122
1368
  format: '+262 ## ## ## ##',
1123
1369
  flag: 'https://flagcdn.com/w40/yt.png',
1124
- phoneLength: 9
1370
+ phoneLength: 9,
1371
+ minLength: 9,
1372
+ maxLength: 9
1125
1373
  },
1126
1374
  {
1127
1375
  name: 'French Guiana',
@@ -1130,7 +1378,9 @@ const countries = [
1130
1378
  dialCode: '+594',
1131
1379
  format: '+594 ## ## ## ##',
1132
1380
  flag: 'https://flagcdn.com/w40/gf.png',
1133
- phoneLength: 9
1381
+ phoneLength: 9,
1382
+ minLength: 9,
1383
+ maxLength: 9
1134
1384
  },
1135
1385
  {
1136
1386
  name: 'New Caledonia',
@@ -1139,7 +1389,9 @@ const countries = [
1139
1389
  dialCode: '+687',
1140
1390
  format: '+687 ## ## ##',
1141
1391
  flag: 'https://flagcdn.com/w40/nc.png',
1142
- phoneLength: 6
1392
+ phoneLength: 6,
1393
+ minLength: 6,
1394
+ maxLength: 6
1143
1395
  },
1144
1396
  {
1145
1397
  name: 'French Polynesia',
@@ -1148,7 +1400,9 @@ const countries = [
1148
1400
  dialCode: '+689',
1149
1401
  format: '+689 ## ## ##',
1150
1402
  flag: 'https://flagcdn.com/w40/pf.png',
1151
- phoneLength: 6
1403
+ phoneLength: 6,
1404
+ minLength: 6,
1405
+ maxLength: 6
1152
1406
  },
1153
1407
  {
1154
1408
  name: 'Cook Islands',
@@ -1157,7 +1411,9 @@ const countries = [
1157
1411
  dialCode: '+682',
1158
1412
  format: '+682 ## ###',
1159
1413
  flag: 'https://flagcdn.com/w40/ck.png',
1160
- phoneLength: 5
1414
+ phoneLength: 5,
1415
+ minLength: 5,
1416
+ maxLength: 5
1161
1417
  },
1162
1418
  {
1163
1419
  name: 'Niue',
@@ -1166,7 +1422,9 @@ const countries = [
1166
1422
  dialCode: '+683',
1167
1423
  format: '+683 ## ###',
1168
1424
  flag: 'https://flagcdn.com/w40/nu.png',
1169
- phoneLength: 4
1425
+ phoneLength: 4,
1426
+ minLength: 4,
1427
+ maxLength: 4
1170
1428
  },
1171
1429
  {
1172
1430
  name: 'Tokelau',
@@ -1175,7 +1433,9 @@ const countries = [
1175
1433
  dialCode: '+690',
1176
1434
  format: '+690 ## ###',
1177
1435
  flag: 'https://flagcdn.com/w40/tk.png',
1178
- phoneLength: 4
1436
+ phoneLength: 4,
1437
+ minLength: 4,
1438
+ maxLength: 4
1179
1439
  },
1180
1440
  {
1181
1441
  name: 'Canada',
@@ -1184,7 +1444,9 @@ const countries = [
1184
1444
  dialCode: '+1',
1185
1445
  format: '+1 ### ### ####',
1186
1446
  flag: 'https://flagcdn.com/w40/ca.png',
1187
- phoneLength: 10
1447
+ phoneLength: 10,
1448
+ minLength: 10,
1449
+ maxLength: 10
1188
1450
  },
1189
1451
  {
1190
1452
  name: 'Costa Rica',
@@ -1193,7 +1455,9 @@ const countries = [
1193
1455
  dialCode: '+506',
1194
1456
  format: '+506 ###-####',
1195
1457
  flag: 'https://flagcdn.com/w40/cr.png',
1196
- phoneLength: 8
1458
+ phoneLength: 8,
1459
+ minLength: 8,
1460
+ maxLength: 8
1197
1461
  },
1198
1462
  {
1199
1463
  name: 'El Salvador',
@@ -1202,7 +1466,9 @@ const countries = [
1202
1466
  dialCode: '+503',
1203
1467
  format: '+503 ##-###-####',
1204
1468
  flag: 'https://flagcdn.com/w40/sv.png',
1205
- phoneLength: 8
1469
+ phoneLength: 8,
1470
+ minLength: 8,
1471
+ maxLength: 8
1206
1472
  },
1207
1473
  {
1208
1474
  name: 'Guatemala',
@@ -1211,7 +1477,9 @@ const countries = [
1211
1477
  dialCode: '+502',
1212
1478
  format: '+502 ##-###-####',
1213
1479
  flag: 'https://flagcdn.com/w40/gt.png',
1214
- phoneLength: 8
1480
+ phoneLength: 8,
1481
+ minLength: 8,
1482
+ maxLength: 8
1215
1483
  },
1216
1484
  {
1217
1485
  name: 'Honduras',
@@ -1220,7 +1488,9 @@ const countries = [
1220
1488
  dialCode: '+504',
1221
1489
  format: '+504 ##-###-####',
1222
1490
  flag: 'https://flagcdn.com/w40/hn.png',
1223
- phoneLength: 8
1491
+ phoneLength: 8,
1492
+ minLength: 8,
1493
+ maxLength: 8
1224
1494
  },
1225
1495
  {
1226
1496
  name: 'Nicaragua',
@@ -1229,7 +1499,9 @@ const countries = [
1229
1499
  dialCode: '+505',
1230
1500
  format: '+505 ##-###-####',
1231
1501
  flag: 'https://flagcdn.com/w40/ni.png',
1232
- phoneLength: 8
1502
+ phoneLength: 8,
1503
+ minLength: 8,
1504
+ maxLength: 8
1233
1505
  },
1234
1506
  {
1235
1507
  name: 'Belize',
@@ -1238,7 +1510,9 @@ const countries = [
1238
1510
  dialCode: '+501',
1239
1511
  format: '+501 ###-####',
1240
1512
  flag: 'https://flagcdn.com/w40/bz.png',
1241
- phoneLength: 7
1513
+ phoneLength: 7,
1514
+ minLength: 7,
1515
+ maxLength: 7
1242
1516
  },
1243
1517
  {
1244
1518
  name: 'Curaçao',
@@ -1247,7 +1521,9 @@ const countries = [
1247
1521
  dialCode: '+599',
1248
1522
  format: '+599 9 ### ####',
1249
1523
  flag: 'https://flagcdn.com/w40/cw.png',
1250
- phoneLength: 7
1524
+ phoneLength: 7,
1525
+ minLength: 7,
1526
+ maxLength: 7
1251
1527
  },
1252
1528
  {
1253
1529
  name: 'Sint Maarten (Dutch part)',
@@ -1256,7 +1532,9 @@ const countries = [
1256
1532
  dialCode: '+1 721',
1257
1533
  format: '+1 721 ### ####',
1258
1534
  flag: 'https://flagcdn.com/w40/sx.png',
1259
- phoneLength: 10
1535
+ phoneLength: 10,
1536
+ minLength: 10,
1537
+ maxLength: 10
1260
1538
  },
1261
1539
  {
1262
1540
  name: 'Aruba',
@@ -1265,7 +1543,9 @@ const countries = [
1265
1543
  dialCode: '+297',
1266
1544
  format: '+297 ### ####',
1267
1545
  flag: 'https://flagcdn.com/w40/aw.png',
1268
- phoneLength: 7
1546
+ phoneLength: 7,
1547
+ minLength: 7,
1548
+ maxLength: 7
1269
1549
  },
1270
1550
  {
1271
1551
  name: 'Bonaire, Sint Eustatius and Saba',
@@ -1274,7 +1554,9 @@ const countries = [
1274
1554
  dialCode: '+599 7',
1275
1555
  format: '+599 7 ### ####',
1276
1556
  flag: 'https://flagcdn.com/w40/bq.png',
1277
- phoneLength: 7
1557
+ phoneLength: 7,
1558
+ minLength: 7,
1559
+ maxLength: 7
1278
1560
  },
1279
1561
  {
1280
1562
  name: 'Sint Eustatius',
@@ -1283,7 +1565,9 @@ const countries = [
1283
1565
  dialCode: '+599 3',
1284
1566
  format: '+599 3 ### ####',
1285
1567
  flag: 'https://flagcdn.com/w40/bq.png',
1286
- phoneLength: 7
1568
+ phoneLength: 7,
1569
+ minLength: 7,
1570
+ maxLength: 7
1287
1571
  },
1288
1572
  {
1289
1573
  name: 'Saba',
@@ -1292,7 +1576,9 @@ const countries = [
1292
1576
  dialCode: '+599 4',
1293
1577
  format: '+599 4 ### ####',
1294
1578
  flag: 'https://flagcdn.com/w40/bq.png',
1295
- phoneLength: 7
1579
+ phoneLength: 7,
1580
+ minLength: 7,
1581
+ maxLength: 7
1296
1582
  },
1297
1583
  {
1298
1584
  name: 'Greece',
@@ -1301,7 +1587,9 @@ const countries = [
1301
1587
  dialCode: '+30',
1302
1588
  flag: 'https://flagcdn.com/w40/gr.png',
1303
1589
  format: '+30 ### ### ####',
1304
- phoneLength: 10
1590
+ phoneLength: 10,
1591
+ minLength: 10,
1592
+ maxLength: 10
1305
1593
  },
1306
1594
  {
1307
1595
  name: 'Cyprus',
@@ -1310,7 +1598,9 @@ const countries = [
1310
1598
  dialCode: '+357',
1311
1599
  format: '+357 ## ### ####',
1312
1600
  flag: 'https://flagcdn.com/w40/cy.png',
1313
- phoneLength: 8
1601
+ phoneLength: 8,
1602
+ minLength: 8,
1603
+ maxLength: 8
1314
1604
  },
1315
1605
  {
1316
1606
  name: 'Malta',
@@ -1319,7 +1609,9 @@ const countries = [
1319
1609
  dialCode: '+356',
1320
1610
  format: '+356 #### ####',
1321
1611
  flag: 'https://flagcdn.com/w40/mt.png',
1322
- phoneLength: 8
1612
+ phoneLength: 8,
1613
+ minLength: 8,
1614
+ maxLength: 8
1323
1615
  },
1324
1616
  {
1325
1617
  name: 'Iceland',
@@ -1328,7 +1620,9 @@ const countries = [
1328
1620
  dialCode: '+354',
1329
1621
  format: '+354 ### ####',
1330
1622
  flag: 'https://flagcdn.com/w40/is.png',
1331
- phoneLength: 7
1623
+ phoneLength: 7,
1624
+ minLength: 7,
1625
+ maxLength: 7
1332
1626
  },
1333
1627
  {
1334
1628
  name: 'Luxembourg',
@@ -1337,7 +1631,9 @@ const countries = [
1337
1631
  dialCode: '+352',
1338
1632
  format: '+352 #### #####',
1339
1633
  flag: 'https://flagcdn.com/w40/lu.png',
1340
- phoneLength: 8
1634
+ phoneLength: 8,
1635
+ minLength: 8,
1636
+ maxLength: 8
1341
1637
  },
1342
1638
  {
1343
1639
  name: 'Monaco',
@@ -1346,7 +1642,9 @@ const countries = [
1346
1642
  dialCode: '+377',
1347
1643
  format: '+377 ## ## ## ##',
1348
1644
  flag: 'https://flagcdn.com/w40/mc.png',
1349
- phoneLength: 8
1645
+ phoneLength: 8,
1646
+ minLength: 8,
1647
+ maxLength: 8
1350
1648
  },
1351
1649
  {
1352
1650
  name: 'Liechtenstein',
@@ -1355,7 +1653,9 @@ const countries = [
1355
1653
  dialCode: '+423',
1356
1654
  format: '+423 ### ####',
1357
1655
  flag: 'https://flagcdn.com/w40/li.png',
1358
- phoneLength: 7
1656
+ phoneLength: 7,
1657
+ minLength: 7,
1658
+ maxLength: 7
1359
1659
  },
1360
1660
  {
1361
1661
  name: 'San Marino',
@@ -1364,7 +1664,9 @@ const countries = [
1364
1664
  dialCode: '+378',
1365
1665
  format: '+378 ### #####',
1366
1666
  flag: 'https://flagcdn.com/w40/sm.png',
1367
- phoneLength: 8
1667
+ phoneLength: 8,
1668
+ minLength: 8,
1669
+ maxLength: 8
1368
1670
  },
1369
1671
  {
1370
1672
  name: 'Andorra',
@@ -1373,7 +1675,9 @@ const countries = [
1373
1675
  dialCode: '+376',
1374
1676
  format: '+376 ### ###',
1375
1677
  flag: 'https://flagcdn.com/w40/ad.png',
1376
- phoneLength: 6
1678
+ phoneLength: 6,
1679
+ minLength: 6,
1680
+ maxLength: 6
1377
1681
  },
1378
1682
  {
1379
1683
  name: 'Maldives',
@@ -1382,7 +1686,9 @@ const countries = [
1382
1686
  dialCode: '+960',
1383
1687
  format: '+960 ## ###',
1384
1688
  flag: 'https://flagcdn.com/w40/mv.png',
1385
- phoneLength: 7
1689
+ phoneLength: 7,
1690
+ minLength: 7,
1691
+ maxLength: 7
1386
1692
  },
1387
1693
  {
1388
1694
  name: 'Sri Lanka',
@@ -1391,7 +1697,9 @@ const countries = [
1391
1697
  dialCode: '+94',
1392
1698
  format: '+94 ## ### ####',
1393
1699
  flag: 'https://flagcdn.com/w40/lk.png',
1394
- phoneLength: 9
1700
+ phoneLength: 9,
1701
+ minLength: 9,
1702
+ maxLength: 9
1395
1703
  },
1396
1704
  {
1397
1705
  name: 'Bhutan',
@@ -1400,7 +1708,9 @@ const countries = [
1400
1708
  dialCode: '+975',
1401
1709
  format: '+975 ## ### ###',
1402
1710
  flag: 'https://flagcdn.com/w40/bt.png',
1403
- phoneLength: 8
1711
+ phoneLength: 8,
1712
+ minLength: 8,
1713
+ maxLength: 8
1404
1714
  },
1405
1715
  {
1406
1716
  name: 'Malawi',
@@ -1409,7 +1719,9 @@ const countries = [
1409
1719
  dialCode: '+265',
1410
1720
  format: '+265 ## ### ###',
1411
1721
  flag: 'https://flagcdn.com/w40/mw.png',
1412
- phoneLength: 9
1722
+ phoneLength: 9,
1723
+ minLength: 9,
1724
+ maxLength: 9
1413
1725
  },
1414
1726
  {
1415
1727
  name: 'Zambia',
@@ -1418,7 +1730,9 @@ const countries = [
1418
1730
  dialCode: '+260',
1419
1731
  format: '+260 ## ### ####',
1420
1732
  flag: 'https://flagcdn.com/w40/zm.png',
1421
- phoneLength: 9
1733
+ phoneLength: 9,
1734
+ minLength: 9,
1735
+ maxLength: 9
1422
1736
  },
1423
1737
  {
1424
1738
  name: 'Botswana',
@@ -1427,7 +1741,9 @@ const countries = [
1427
1741
  dialCode: '+267',
1428
1742
  format: '+267 ## ### ###',
1429
1743
  flag: 'https://flagcdn.com/w40/bw.png',
1430
- phoneLength: 8
1744
+ phoneLength: 8,
1745
+ minLength: 8,
1746
+ maxLength: 8
1431
1747
  },
1432
1748
  {
1433
1749
  name: 'Namibia',
@@ -1436,7 +1752,9 @@ const countries = [
1436
1752
  dialCode: '+264',
1437
1753
  format: '+264 ## ### ###',
1438
1754
  flag: 'https://flagcdn.com/w40/na.png',
1439
- phoneLength: 9
1755
+ phoneLength: 9,
1756
+ minLength: 9,
1757
+ maxLength: 9
1440
1758
  },
1441
1759
  {
1442
1760
  name: 'Lesotho',
@@ -1445,7 +1763,9 @@ const countries = [
1445
1763
  dialCode: '+266',
1446
1764
  format: '+266 ## ### ###',
1447
1765
  flag: 'https://flagcdn.com/w40/ls.png',
1448
- phoneLength: 8
1766
+ phoneLength: 8,
1767
+ minLength: 8,
1768
+ maxLength: 8
1449
1769
  },
1450
1770
  {
1451
1771
  name: 'Mozambique',
@@ -1454,7 +1774,9 @@ const countries = [
1454
1774
  dialCode: '+258',
1455
1775
  format: '+258 ## ### ####',
1456
1776
  flag: 'https://flagcdn.com/w40/mz.png',
1457
- phoneLength: 9
1777
+ phoneLength: 9,
1778
+ minLength: 9,
1779
+ maxLength: 9
1458
1780
  },
1459
1781
  {
1460
1782
  name: 'Madagascar',
@@ -1463,7 +1785,9 @@ const countries = [
1463
1785
  dialCode: '+261',
1464
1786
  format: '+261 ## ## ### ##',
1465
1787
  flag: 'https://flagcdn.com/w40/mg.png',
1466
- phoneLength: 9
1788
+ phoneLength: 9,
1789
+ minLength: 9,
1790
+ maxLength: 9
1467
1791
  },
1468
1792
  {
1469
1793
  name: 'Comoros',
@@ -1472,7 +1796,9 @@ const countries = [
1472
1796
  dialCode: '+269',
1473
1797
  format: '+269 ## ## ##',
1474
1798
  flag: 'https://flagcdn.com/w40/km.png',
1475
- phoneLength: 6
1799
+ phoneLength: 6,
1800
+ minLength: 6,
1801
+ maxLength: 6
1476
1802
  },
1477
1803
  {
1478
1804
  name: 'Tique',
@@ -1481,7 +1807,9 @@ const countries = [
1481
1807
  dialCode: '+262',
1482
1808
  format: '+262 ## ## ## ##',
1483
1809
  flag: 'https://flagcdn.com/w40/yt.png',
1484
- phoneLength: 9
1810
+ phoneLength: 9,
1811
+ minLength: 9,
1812
+ maxLength: 9
1485
1813
  },
1486
1814
  {
1487
1815
  name: 'Seychelles',
@@ -1490,7 +1818,9 @@ const countries = [
1490
1818
  dialCode: '+248',
1491
1819
  format: '+248 ## ###',
1492
1820
  flag: 'https://flagcdn.com/w40/sc.png',
1493
- phoneLength: 7
1821
+ phoneLength: 7,
1822
+ minLength: 7,
1823
+ maxLength: 7
1494
1824
  },
1495
1825
  {
1496
1826
  name: 'Mauritius',
@@ -1499,7 +1829,9 @@ const countries = [
1499
1829
  dialCode: '+230',
1500
1830
  format: '+230 ## ### ###',
1501
1831
  flag: 'https://flagcdn.com/w40/mu.png',
1502
- phoneLength: 8
1832
+ phoneLength: 8,
1833
+ minLength: 8,
1834
+ maxLength: 8
1503
1835
  },
1504
1836
  {
1505
1837
  name: 'Rwanda',
@@ -1508,7 +1840,9 @@ const countries = [
1508
1840
  dialCode: '+250',
1509
1841
  format: '+250 ## ### ###',
1510
1842
  flag: 'https://flagcdn.com/w40/rw.png',
1511
- phoneLength: 9
1843
+ phoneLength: 9,
1844
+ minLength: 9,
1845
+ maxLength: 9
1512
1846
  },
1513
1847
  {
1514
1848
  name: 'Burundi',
@@ -1517,7 +1851,9 @@ const countries = [
1517
1851
  dialCode: '+257',
1518
1852
  format: '+257 ## ### ###',
1519
1853
  flag: 'https://flagcdn.com/w40/bi.png',
1520
- phoneLength: 8
1854
+ phoneLength: 8,
1855
+ minLength: 8,
1856
+ maxLength: 8
1521
1857
  },
1522
1858
  {
1523
1859
  name: 'Cape Verde',
@@ -1526,7 +1862,9 @@ const countries = [
1526
1862
  dialCode: '+238',
1527
1863
  format: '+238 ### ####',
1528
1864
  flag: 'https://flagcdn.com/w40/cv.png',
1529
- phoneLength: 7
1865
+ phoneLength: 7,
1866
+ minLength: 7,
1867
+ maxLength: 7
1530
1868
  },
1531
1869
  {
1532
1870
  name: 'São Tomé and Príncipe',
@@ -1535,7 +1873,9 @@ const countries = [
1535
1873
  dialCode: '+239',
1536
1874
  format: '+239 ## #####',
1537
1875
  flag: 'https://flagcdn.com/w40/st.png',
1538
- phoneLength: 7
1876
+ phoneLength: 7,
1877
+ minLength: 7,
1878
+ maxLength: 7
1539
1879
  },
1540
1880
  {
1541
1881
  name: 'Liberia',
@@ -1544,7 +1884,9 @@ const countries = [
1544
1884
  dialCode: '+231',
1545
1885
  format: '+231 ## ### ###',
1546
1886
  flag: 'https://flagcdn.com/w40/lr.png',
1547
- phoneLength: 8
1887
+ phoneLength: 8,
1888
+ minLength: 8,
1889
+ maxLength: 8
1548
1890
  },
1549
1891
  {
1550
1892
  name: 'Sierra Leone',
@@ -1553,7 +1895,9 @@ const countries = [
1553
1895
  dialCode: '+232',
1554
1896
  format: '+232 ## ######',
1555
1897
  flag: 'https://flagcdn.com/w40/sl.png',
1556
- phoneLength: 8
1898
+ phoneLength: 8,
1899
+ minLength: 8,
1900
+ maxLength: 8
1557
1901
  },
1558
1902
  {
1559
1903
  name: 'Guinea',
@@ -1562,7 +1906,9 @@ const countries = [
1562
1906
  dialCode: '+224',
1563
1907
  format: '+224 ### ######',
1564
1908
  flag: 'https://flagcdn.com/w40/gn.png',
1565
- phoneLength: 9
1909
+ phoneLength: 9,
1910
+ minLength: 9,
1911
+ maxLength: 9
1566
1912
  },
1567
1913
  {
1568
1914
  name: 'Guinea-Bissau',
@@ -1571,7 +1917,9 @@ const countries = [
1571
1917
  dialCode: '+245',
1572
1918
  format: '+245 ### ####',
1573
1919
  flag: 'https://flagcdn.com/w40/gw.png',
1574
- phoneLength: 7
1920
+ phoneLength: 7,
1921
+ minLength: 7,
1922
+ maxLength: 7
1575
1923
  },
1576
1924
  {
1577
1925
  name: 'Equatorial Guinea',
@@ -1580,7 +1928,9 @@ const countries = [
1580
1928
  dialCode: '+240',
1581
1929
  format: '+240 ## ### ####',
1582
1930
  flag: 'https://flagcdn.com/w40/gq.png',
1583
- phoneLength: 9
1931
+ phoneLength: 9,
1932
+ minLength: 9,
1933
+ maxLength: 9
1584
1934
  },
1585
1935
  {
1586
1936
  name: 'Gabon',
@@ -1589,7 +1939,9 @@ const countries = [
1589
1939
  dialCode: '+241',
1590
1940
  format: '+241 # ## ## ##',
1591
1941
  flag: 'https://flagcdn.com/w40/ga.png',
1592
- phoneLength: 7
1942
+ phoneLength: 7,
1943
+ minLength: 7,
1944
+ maxLength: 7
1593
1945
  },
1594
1946
  {
1595
1947
  name: 'Central African Republic',
@@ -1598,7 +1950,9 @@ const countries = [
1598
1950
  dialCode: '+236',
1599
1951
  format: '+236 ## ## ####',
1600
1952
  flag: 'https://flagcdn.com/w40/cf.png',
1601
- phoneLength: 8
1953
+ phoneLength: 8,
1954
+ minLength: 8,
1955
+ maxLength: 8
1602
1956
  },
1603
1957
  {
1604
1958
  name: 'Republic of the Congo',
@@ -1607,7 +1961,9 @@ const countries = [
1607
1961
  dialCode: '+242',
1608
1962
  format: '+242 ## ### ###',
1609
1963
  flag: 'https://flagcdn.com/w40/cg.png',
1610
- phoneLength: 9
1964
+ phoneLength: 9,
1965
+ minLength: 9,
1966
+ maxLength: 9
1611
1967
  },
1612
1968
  {
1613
1969
  name: 'Democratic Republic of the Congo',
@@ -1616,7 +1972,9 @@ const countries = [
1616
1972
  dialCode: '+243',
1617
1973
  format: '+243 ## ### ####',
1618
1974
  flag: 'https://flagcdn.com/w40/cd.png',
1619
- phoneLength: 9
1975
+ phoneLength: 9,
1976
+ minLength: 9,
1977
+ maxLength: 9
1620
1978
  },
1621
1979
  {
1622
1980
  name: 'Cameroon',
@@ -1625,7 +1983,9 @@ const countries = [
1625
1983
  dialCode: '+237',
1626
1984
  format: '+237 #### ####',
1627
1985
  flag: 'https://flagcdn.com/w40/cm.png',
1628
- phoneLength: 8
1986
+ phoneLength: 8,
1987
+ minLength: 8,
1988
+ maxLength: 8
1629
1989
  },
1630
1990
  {
1631
1991
  name: 'Chad',
@@ -1634,7 +1994,9 @@ const countries = [
1634
1994
  dialCode: '+235',
1635
1995
  format: '+235 ## ## ## ##',
1636
1996
  flag: 'https://flagcdn.com/w40/td.png',
1637
- phoneLength: 8
1997
+ phoneLength: 8,
1998
+ minLength: 8,
1999
+ maxLength: 8
1638
2000
  },
1639
2001
  {
1640
2002
  name: 'Niger',
@@ -1643,7 +2005,9 @@ const countries = [
1643
2005
  dialCode: '+227',
1644
2006
  format: '+227 ## ## ####',
1645
2007
  flag: 'https://flagcdn.com/w40/ne.png',
1646
- phoneLength: 8
2008
+ phoneLength: 8,
2009
+ minLength: 8,
2010
+ maxLength: 8
1647
2011
  },
1648
2012
  {
1649
2013
  name: 'Mali',
@@ -1652,7 +2016,9 @@ const countries = [
1652
2016
  dialCode: '+223',
1653
2017
  format: '+223 ## ## ####',
1654
2018
  flag: 'https://flagcdn.com/w40/ml.png',
1655
- phoneLength: 8
2019
+ phoneLength: 8,
2020
+ minLength: 8,
2021
+ maxLength: 8
1656
2022
  },
1657
2023
  {
1658
2024
  name: 'Burkina Faso',
@@ -1661,7 +2027,9 @@ const countries = [
1661
2027
  dialCode: '+226',
1662
2028
  format: '+226 ## ## ####',
1663
2029
  flag: 'https://flagcdn.com/w40/bf.png',
1664
- phoneLength: 8
2030
+ phoneLength: 8,
2031
+ minLength: 8,
2032
+ maxLength: 8
1665
2033
  },
1666
2034
  {
1667
2035
  name: 'Togo',
@@ -1670,7 +2038,9 @@ const countries = [
1670
2038
  dialCode: '+228',
1671
2039
  format: '+228 ## ### ###',
1672
2040
  flag: 'https://flagcdn.com/w40/tg.png',
1673
- phoneLength: 8
2041
+ phoneLength: 8,
2042
+ minLength: 8,
2043
+ maxLength: 8
1674
2044
  },
1675
2045
  {
1676
2046
  name: 'Benin',
@@ -1679,7 +2049,9 @@ const countries = [
1679
2049
  dialCode: '+229',
1680
2050
  format: '+229 ## ## ####',
1681
2051
  flag: 'https://flagcdn.com/w40/bj.png',
1682
- phoneLength: 8
2052
+ phoneLength: 8,
2053
+ minLength: 8,
2054
+ maxLength: 8
1683
2055
  },
1684
2056
  {
1685
2057
  name: 'Ivory Coast',
@@ -1688,7 +2060,9 @@ const countries = [
1688
2060
  dialCode: '+225',
1689
2061
  format: '+225 ## ### ###',
1690
2062
  flag: 'https://flagcdn.com/w40/ci.png',
1691
- phoneLength: 8
2063
+ phoneLength: 8,
2064
+ minLength: 8,
2065
+ maxLength: 8
1692
2066
  },
1693
2067
  {
1694
2068
  name: 'Gambia',
@@ -1697,7 +2071,9 @@ const countries = [
1697
2071
  dialCode: '+220',
1698
2072
  format: '+220 ### ####',
1699
2073
  flag: 'https://flagcdn.com/w40/gm.png',
1700
- phoneLength: 7
2074
+ phoneLength: 7,
2075
+ minLength: 7,
2076
+ maxLength: 7
1701
2077
  },
1702
2078
  {
1703
2079
  name: 'Mauritania',
@@ -1706,7 +2082,9 @@ const countries = [
1706
2082
  dialCode: '+222',
1707
2083
  format: '+222 ## ## ## ##',
1708
2084
  flag: 'https://flagcdn.com/w40/mr.png',
1709
- phoneLength: 8
2085
+ phoneLength: 8,
2086
+ minLength: 8,
2087
+ maxLength: 8
1710
2088
  },
1711
2089
  {
1712
2090
  name: 'East Timor',
@@ -1715,7 +2093,9 @@ const countries = [
1715
2093
  dialCode: '+670',
1716
2094
  format: '+670 ### ####',
1717
2095
  flag: 'https://flagcdn.com/w40/tl.png',
1718
- phoneLength: 7
2096
+ phoneLength: 7,
2097
+ minLength: 7,
2098
+ maxLength: 7
1719
2099
  },
1720
2100
  {
1721
2101
  name: 'Palestine',
@@ -1724,7 +2104,9 @@ const countries = [
1724
2104
  dialCode: '+970',
1725
2105
  format: '+970 ## ### ####',
1726
2106
  flag: 'https://flagcdn.com/w40/ps.png',
1727
- phoneLength: 9
2107
+ phoneLength: 9,
2108
+ minLength: 9,
2109
+ maxLength: 9
1728
2110
  },
1729
2111
  {
1730
2112
  name: 'Lebanon',
@@ -1733,7 +2115,9 @@ const countries = [
1733
2115
  dialCode: '+961',
1734
2116
  format: '+961 ## ### ###',
1735
2117
  flag: 'https://flagcdn.com/w40/lb.png',
1736
- phoneLength: 8
2118
+ phoneLength: 8,
2119
+ minLength: 8,
2120
+ maxLength: 8
1737
2121
  },
1738
2122
  {
1739
2123
  name: 'Syria',
@@ -1742,7 +2126,9 @@ const countries = [
1742
2126
  dialCode: '+963',
1743
2127
  format: '+963 ## ######',
1744
2128
  flag: 'https://flagcdn.com/w40/sy.png',
1745
- phoneLength: 8
2129
+ phoneLength: 8,
2130
+ minLength: 8,
2131
+ maxLength: 8
1746
2132
  },
1747
2133
  {
1748
2134
  name: 'Jordan',
@@ -1751,7 +2137,9 @@ const countries = [
1751
2137
  dialCode: '+962',
1752
2138
  format: '+962 # #### ####',
1753
2139
  flag: 'https://flagcdn.com/w40/jo.png',
1754
- phoneLength: 9
2140
+ phoneLength: 9,
2141
+ minLength: 9,
2142
+ maxLength: 9
1755
2143
  },
1756
2144
  {
1757
2145
  name: 'Yemen',
@@ -1760,7 +2148,9 @@ const countries = [
1760
2148
  dialCode: '+967',
1761
2149
  format: '+967 ### ### ###',
1762
2150
  flag: 'https://flagcdn.com/w40/ye.png',
1763
- phoneLength: 9
2151
+ phoneLength: 9,
2152
+ minLength: 9,
2153
+ maxLength: 9
1764
2154
  },
1765
2155
  {
1766
2156
  name: 'Oman',
@@ -1769,7 +2159,9 @@ const countries = [
1769
2159
  dialCode: '+968',
1770
2160
  format: '+968 ## ### ###',
1771
2161
  flag: 'https://flagcdn.com/w40/om.png',
1772
- phoneLength: 8
2162
+ phoneLength: 8,
2163
+ minLength: 8,
2164
+ maxLength: 8
1773
2165
  },
1774
2166
  {
1775
2167
  name: 'Qatar',
@@ -1778,7 +2170,9 @@ const countries = [
1778
2170
  dialCode: '+974',
1779
2171
  format: '+974 #### ####',
1780
2172
  flag: 'https://flagcdn.com/w40/qa.png',
1781
- phoneLength: 8
2173
+ phoneLength: 8,
2174
+ minLength: 8,
2175
+ maxLength: 8
1782
2176
  },
1783
2177
  {
1784
2178
  name: 'Kuwait',
@@ -1787,7 +2181,9 @@ const countries = [
1787
2181
  dialCode: '+965',
1788
2182
  format: '+965 #### ####',
1789
2183
  flag: 'https://flagcdn.com/w40/kw.png',
1790
- phoneLength: 8
2184
+ phoneLength: 8,
2185
+ minLength: 8,
2186
+ maxLength: 8
1791
2187
  },
1792
2188
  {
1793
2189
  name: 'Bahrain',
@@ -1796,7 +2192,9 @@ const countries = [
1796
2192
  dialCode: '+973',
1797
2193
  format: '+973 #### ####',
1798
2194
  flag: 'https://flagcdn.com/w40/bh.png',
1799
- phoneLength: 8
2195
+ phoneLength: 8,
2196
+ minLength: 8,
2197
+ maxLength: 8
1800
2198
  },
1801
2199
  {
1802
2200
  name: 'Israel',
@@ -1805,7 +2203,9 @@ const countries = [
1805
2203
  dialCode: '+972',
1806
2204
  format: '+972 ## ### ####',
1807
2205
  flag: 'https://flagcdn.com/w40/il.png',
1808
- phoneLength: 9
2206
+ phoneLength: 9,
2207
+ minLength: 9,
2208
+ maxLength: 9
1809
2209
  },
1810
2210
  {
1811
2211
  name: 'United Arab Emirates',
@@ -1814,7 +2214,9 @@ const countries = [
1814
2214
  dialCode: '+971',
1815
2215
  format: '+971 ## ### ####',
1816
2216
  flag: 'https://flagcdn.com/w40/ae.png',
1817
- phoneLength: 9
2217
+ phoneLength: 9,
2218
+ minLength: 9,
2219
+ maxLength: 9
1818
2220
  },
1819
2221
  {
1820
2222
  name: 'Afghanistan',
@@ -1823,7 +2225,9 @@ const countries = [
1823
2225
  dialCode: '+93',
1824
2226
  format: '+93 ## ### ####',
1825
2227
  flag: 'https://flagcdn.com/w40/af.png',
1826
- phoneLength: 9
2228
+ phoneLength: 9,
2229
+ minLength: 9,
2230
+ maxLength: 9
1827
2231
  },
1828
2232
  {
1829
2233
  name: 'Bolivia',
@@ -1832,7 +2236,9 @@ const countries = [
1832
2236
  dialCode: '+591',
1833
2237
  format: '+591 # ### ####',
1834
2238
  flag: 'https://flagcdn.com/w40/bo.png',
1835
- phoneLength: 8
2239
+ phoneLength: 8,
2240
+ minLength: 8,
2241
+ maxLength: 8
1836
2242
  },
1837
2243
  {
1838
2244
  name: 'Paraguay',
@@ -1841,7 +2247,9 @@ const countries = [
1841
2247
  dialCode: '+595',
1842
2248
  format: '+595 ## ### ####',
1843
2249
  flag: 'https://flagcdn.com/w40/py.png',
1844
- phoneLength: 9
2250
+ phoneLength: 9,
2251
+ minLength: 9,
2252
+ maxLength: 9
1845
2253
  },
1846
2254
  {
1847
2255
  name: 'Ecuador',
@@ -1850,7 +2258,9 @@ const countries = [
1850
2258
  dialCode: '+593',
1851
2259
  format: '+593 ## ### ####',
1852
2260
  flag: 'https://flagcdn.com/w40/ec.png',
1853
- phoneLength: 9
2261
+ phoneLength: 9,
2262
+ minLength: 9,
2263
+ maxLength: 9
1854
2264
  },
1855
2265
  {
1856
2266
  name: 'Guyana',
@@ -1859,7 +2269,9 @@ const countries = [
1859
2269
  dialCode: '+592',
1860
2270
  format: '+592 ### ####',
1861
2271
  flag: 'https://flagcdn.com/w40/gy.png',
1862
- phoneLength: 7
2272
+ phoneLength: 7,
2273
+ minLength: 7,
2274
+ maxLength: 7
1863
2275
  },
1864
2276
  {
1865
2277
  name: 'Suriname',
@@ -1868,7 +2280,9 @@ const countries = [
1868
2280
  dialCode: '+597',
1869
2281
  format: '+597 ### ####',
1870
2282
  flag: 'https://flagcdn.com/w40/sr.png',
1871
- phoneLength: 7
2283
+ phoneLength: 7,
2284
+ minLength: 7,
2285
+ maxLength: 7
1872
2286
  },
1873
2287
  {
1874
2288
  name: 'French Southern and Antarctic Lands',
@@ -1877,7 +2291,9 @@ const countries = [
1877
2291
  dialCode: '+262',
1878
2292
  format: '+262 ## ## ## ##',
1879
2293
  flag: 'https://flagcdn.com/w40/tf.png',
1880
- phoneLength: 9
2294
+ phoneLength: 9,
2295
+ minLength: 9,
2296
+ maxLength: 9
1881
2297
  },
1882
2298
  {
1883
2299
  name: 'Saint Pierre and Miquelon',
@@ -1886,7 +2302,9 @@ const countries = [
1886
2302
  dialCode: '+508',
1887
2303
  format: '+508 ## ## ##',
1888
2304
  flag: 'https://flagcdn.com/w40/pm.png',
1889
- phoneLength: 6
2305
+ phoneLength: 6,
2306
+ minLength: 6,
2307
+ maxLength: 6
1890
2308
  },
1891
2309
  {
1892
2310
  name: 'Antarctica',
@@ -1895,7 +2313,9 @@ const countries = [
1895
2313
  dialCode: '+672',
1896
2314
  format: '+672 ### ####',
1897
2315
  flag: 'https://flagcdn.com/w40/aq.png',
1898
- phoneLength: 7
2316
+ phoneLength: 7,
2317
+ minLength: 7,
2318
+ maxLength: 7
1899
2319
  },
1900
2320
  {
1901
2321
  name: 'Bouvet Island',
@@ -1904,7 +2324,9 @@ const countries = [
1904
2324
  dialCode: '+47',
1905
2325
  format: '+47 ## ## ## ##',
1906
2326
  flag: 'https://flagcdn.com/w40/bv.png',
1907
- phoneLength: 8
2327
+ phoneLength: 8,
2328
+ minLength: 8,
2329
+ maxLength: 8
1908
2330
  },
1909
2331
  {
1910
2332
  name: 'Svalbard and Jan Mayen',
@@ -1913,7 +2335,9 @@ const countries = [
1913
2335
  dialCode: '+47',
1914
2336
  format: '+47 ## ## ## ##',
1915
2337
  flag: 'https://flagcdn.com/w40/sj.png',
1916
- phoneLength: 8
2338
+ phoneLength: 8,
2339
+ minLength: 8,
2340
+ maxLength: 8
1917
2341
  },
1918
2342
  {
1919
2343
  name: 'Faroe Islands',
@@ -1922,7 +2346,9 @@ const countries = [
1922
2346
  dialCode: '+298',
1923
2347
  format: '+298 ## ## ##',
1924
2348
  flag: 'https://flagcdn.com/w40/fo.png',
1925
- phoneLength: 6
2349
+ phoneLength: 6,
2350
+ minLength: 6,
2351
+ maxLength: 6
1926
2352
  },
1927
2353
  {
1928
2354
  name: 'British Indian Ocean Territory',
@@ -1931,7 +2357,9 @@ const countries = [
1931
2357
  dialCode: '+246',
1932
2358
  format: '+246 ### ####',
1933
2359
  flag: 'https://flagcdn.com/w40/io.png',
1934
- phoneLength: 7
2360
+ phoneLength: 7,
2361
+ minLength: 7,
2362
+ maxLength: 7
1935
2363
  },
1936
2364
  {
1937
2365
  name: 'Cayman Islands',
@@ -1940,7 +2368,9 @@ const countries = [
1940
2368
  dialCode: '+1 345',
1941
2369
  format: '+1 345 ### ####',
1942
2370
  flag: 'https://flagcdn.com/w40/ky.png',
1943
- phoneLength: 10
2371
+ phoneLength: 10,
2372
+ minLength: 10,
2373
+ maxLength: 10
1944
2374
  },
1945
2375
  {
1946
2376
  name: 'Christmas Island',
@@ -1949,7 +2379,9 @@ const countries = [
1949
2379
  dialCode: '+61',
1950
2380
  format: '+61 # #### ####',
1951
2381
  flag: 'https://flagcdn.com/w40/cx.png',
1952
- phoneLength: 9
2382
+ phoneLength: 9,
2383
+ minLength: 9,
2384
+ maxLength: 9
1953
2385
  },
1954
2386
  {
1955
2387
  name: 'Cocos (Keeling) Islands',
@@ -1958,7 +2390,9 @@ const countries = [
1958
2390
  dialCode: '+61',
1959
2391
  format: '+61 # #### ####',
1960
2392
  flag: 'https://flagcdn.com/w40/cc.png',
1961
- phoneLength: 9
2393
+ phoneLength: 9,
2394
+ minLength: 9,
2395
+ maxLength: 9
1962
2396
  },
1963
2397
  {
1964
2398
  name: 'COMOROS ISLANDS',
@@ -1967,7 +2401,9 @@ const countries = [
1967
2401
  dialCode: '+269',
1968
2402
  format: '+269 ## ## ##',
1969
2403
  flag: 'https://flagcdn.com/w40/km.png',
1970
- phoneLength: 6
2404
+ phoneLength: 6,
2405
+ minLength: 6,
2406
+ maxLength: 6
1971
2407
  },
1972
2408
  {
1973
2409
  name: 'Congo Kinshasa',
@@ -1976,7 +2412,9 @@ const countries = [
1976
2412
  dialCode: '+243',
1977
2413
  format: '+243 ## ### ####',
1978
2414
  flag: 'https://flagcdn.com/w40/cd.png',
1979
- phoneLength: 9
2415
+ phoneLength: 9,
2416
+ minLength: 9,
2417
+ maxLength: 9
1980
2418
  },
1981
2419
  {
1982
2420
  name: 'COTE D IVOIRE',
@@ -1985,7 +2423,9 @@ const countries = [
1985
2423
  dialCode: '+225',
1986
2424
  format: '+225 ## ### ###',
1987
2425
  flag: 'https://flagcdn.com/w40/ci.png',
1988
- phoneLength: 8
2426
+ phoneLength: 8,
2427
+ minLength: 8,
2428
+ maxLength: 8
1989
2429
  },
1990
2430
  {
1991
2431
  name: 'Djibouti',
@@ -1994,7 +2434,9 @@ const countries = [
1994
2434
  dialCode: '+253',
1995
2435
  format: '+253 ## ## ## ##',
1996
2436
  flag: 'https://flagcdn.com/w40/dj.png',
1997
- phoneLength: 8
2437
+ phoneLength: 8,
2438
+ minLength: 8,
2439
+ maxLength: 8
1998
2440
  },
1999
2441
  {
2000
2442
  name: 'England',
@@ -2003,7 +2445,9 @@ const countries = [
2003
2445
  dialCode: '+44',
2004
2446
  format: '+44 #### ### ###',
2005
2447
  flag: 'https://flagcdn.com/w40/gb.png',
2006
- phoneLength: 10
2448
+ phoneLength: 10,
2449
+ minLength: 10,
2450
+ maxLength: 10
2007
2451
  },
2008
2452
  {
2009
2453
  name: 'Wales',
@@ -2012,7 +2456,9 @@ const countries = [
2012
2456
  dialCode: '+44',
2013
2457
  format: '+44 #### ### ###',
2014
2458
  flag: 'https://flagcdn.com/w40/gb.png',
2015
- phoneLength: 10
2459
+ phoneLength: 10,
2460
+ minLength: 10,
2461
+ maxLength: 10
2016
2462
  },
2017
2463
  {
2018
2464
  name: 'Scotland',
@@ -2021,7 +2467,9 @@ const countries = [
2021
2467
  dialCode: '+44',
2022
2468
  format: '+44 #### ### ###',
2023
2469
  flag: 'https://flagcdn.com/w40/gb.png',
2024
- phoneLength: 10
2470
+ phoneLength: 10,
2471
+ minLength: 10,
2472
+ maxLength: 10
2025
2473
  },
2026
2474
  {
2027
2475
  name: 'Northern Ireland',
@@ -2030,7 +2478,9 @@ const countries = [
2030
2478
  dialCode: '+44',
2031
2479
  format: '+44 #### ### ###',
2032
2480
  flag: 'https://flagcdn.com/w40/gb.png',
2033
- phoneLength: 10
2481
+ phoneLength: 10,
2482
+ minLength: 10,
2483
+ maxLength: 10
2034
2484
  },
2035
2485
  {
2036
2486
  name: 'Vatican City',
@@ -2039,7 +2489,9 @@ const countries = [
2039
2489
  dialCode: '+379',
2040
2490
  format: '+379 ### #####',
2041
2491
  flag: 'https://flagcdn.com/w40/va.png',
2042
- phoneLength: 8
2492
+ phoneLength: 8,
2493
+ minLength: 8,
2494
+ maxLength: 8
2043
2495
  },
2044
2496
  {
2045
2497
  name: 'Saint Helena, Ascension and Tristan da Cunha',
@@ -2048,7 +2500,9 @@ const countries = [
2048
2500
  dialCode: '+290',
2049
2501
  format: '+290 ## ####',
2050
2502
  flag: 'https://flagcdn.com/w40/sh.png',
2051
- phoneLength: 6
2503
+ phoneLength: 6,
2504
+ minLength: 6,
2505
+ maxLength: 6
2052
2506
  },
2053
2507
  {
2054
2508
  name: 'Eritrea',
@@ -2057,7 +2511,9 @@ const countries = [
2057
2511
  dialCode: '+291',
2058
2512
  format: '+291 ## ### ###',
2059
2513
  flag: 'https://flagcdn.com/w40/er.png',
2060
- phoneLength: 8
2514
+ phoneLength: 8,
2515
+ minLength: 8,
2516
+ maxLength: 8
2061
2517
  },
2062
2518
  {
2063
2519
  name: 'South Sudan',
@@ -2066,7 +2522,9 @@ const countries = [
2066
2522
  dialCode: '+211',
2067
2523
  format: '+211 ## ### ####',
2068
2524
  flag: 'https://flagcdn.com/w40/ss.png',
2069
- phoneLength: 9
2525
+ phoneLength: 9,
2526
+ minLength: 9,
2527
+ maxLength: 9
2070
2528
  },
2071
2529
  {
2072
2530
  name: 'Federated States of Micronesia',
@@ -2075,7 +2533,9 @@ const countries = [
2075
2533
  dialCode: '+691',
2076
2534
  format: '+691 ### ####',
2077
2535
  flag: 'https://flagcdn.com/w40/fm.png',
2078
- phoneLength: 7
2536
+ phoneLength: 7,
2537
+ minLength: 7,
2538
+ maxLength: 7
2079
2539
  },
2080
2540
  {
2081
2541
  name: 'Falkland Islands Malvinas',
@@ -2084,7 +2544,9 @@ const countries = [
2084
2544
  dialCode: '+500',
2085
2545
  format: '+500 ####',
2086
2546
  flag: 'https://flagcdn.com/w40/fk.png',
2087
- phoneLength: 4
2547
+ phoneLength: 4,
2548
+ minLength: 4,
2549
+ maxLength: 4
2088
2550
  },
2089
2551
  {
2090
2552
  name: 'French Southern Territories',
@@ -2093,7 +2555,9 @@ const countries = [
2093
2555
  dialCode: '+262',
2094
2556
  format: '+262 ## ## ## ##',
2095
2557
  flag: 'https://flagcdn.com/w40/tf.png',
2096
- phoneLength: 9
2558
+ phoneLength: 9,
2559
+ minLength: 9,
2560
+ maxLength: 9
2097
2561
  },
2098
2562
  {
2099
2563
  name: 'Heard Island and McDonald Islands',
@@ -2102,7 +2566,9 @@ const countries = [
2102
2566
  dialCode: '+672',
2103
2567
  format: '+672 ### ####',
2104
2568
  flag: 'https://flagcdn.com/w40/hm.png',
2105
- phoneLength: 7
2569
+ phoneLength: 7,
2570
+ minLength: 7,
2571
+ maxLength: 7
2106
2572
  },
2107
2573
  {
2108
2574
  name: 'Jersey',
@@ -2111,7 +2577,9 @@ const countries = [
2111
2577
  dialCode: '+44',
2112
2578
  format: '+44 #### ### ###',
2113
2579
  flag: 'https://flagcdn.com/w40/je.png',
2114
- phoneLength: 10
2580
+ phoneLength: 10,
2581
+ minLength: 10,
2582
+ maxLength: 10
2115
2583
  },
2116
2584
  {
2117
2585
  name: 'Guernsey',
@@ -2120,7 +2588,9 @@ const countries = [
2120
2588
  dialCode: '+44',
2121
2589
  format: '+44 #### ### ###',
2122
2590
  flag: 'https://flagcdn.com/w40/gg.png',
2123
- phoneLength: 10
2591
+ phoneLength: 10,
2592
+ minLength: 10,
2593
+ maxLength: 10
2124
2594
  },
2125
2595
  {
2126
2596
  name: 'Gibraltar',
@@ -2129,7 +2599,9 @@ const countries = [
2129
2599
  dialCode: '+350',
2130
2600
  format: '+350 #### ####',
2131
2601
  flag: 'https://flagcdn.com/w40/gi.png',
2132
- phoneLength: 8
2602
+ phoneLength: 8,
2603
+ minLength: 8,
2604
+ maxLength: 8
2133
2605
  },
2134
2606
  {
2135
2607
  name: 'Hong Kong SAR China',
@@ -2138,7 +2610,9 @@ const countries = [
2138
2610
  dialCode: '+852',
2139
2611
  format: '+852 #### ####',
2140
2612
  flag: 'https://flagcdn.com/w40/hk.png',
2141
- phoneLength: 8
2613
+ phoneLength: 8,
2614
+ minLength: 8,
2615
+ maxLength: 8
2142
2616
  },
2143
2617
  {
2144
2618
  name: 'Macao SAR China',
@@ -2147,7 +2621,9 @@ const countries = [
2147
2621
  dialCode: '+853',
2148
2622
  format: '+853 #### ####',
2149
2623
  flag: 'https://flagcdn.com/w40/mo.png',
2150
- phoneLength: 8
2624
+ phoneLength: 8,
2625
+ minLength: 8,
2626
+ maxLength: 8
2151
2627
  },
2152
2628
  {
2153
2629
  name: 'Taiwan',
@@ -2156,7 +2632,9 @@ const countries = [
2156
2632
  dialCode: '+886',
2157
2633
  format: '+886 ## ### ####',
2158
2634
  flag: 'https://flagcdn.com/w40/tw.png',
2159
- phoneLength: 9
2635
+ phoneLength: 9,
2636
+ minLength: 9,
2637
+ maxLength: 9
2160
2638
  },
2161
2639
  {
2162
2640
  name: 'Iran',
@@ -2165,7 +2643,9 @@ const countries = [
2165
2643
  dialCode: '+98',
2166
2644
  format: '+98 ## ### ####',
2167
2645
  flag: 'https://flagcdn.com/w40/ir.png',
2168
- phoneLength: 10
2646
+ phoneLength: 10,
2647
+ minLength: 10,
2648
+ maxLength: 10
2169
2649
  },
2170
2650
  {
2171
2651
  name: 'Isle of Man',
@@ -2174,7 +2654,9 @@ const countries = [
2174
2654
  dialCode: '+44',
2175
2655
  format: '+44 #### ######',
2176
2656
  flag: 'https://flagcdn.com/w40/im.png',
2177
- phoneLength: 10
2657
+ phoneLength: 10,
2658
+ minLength: 10,
2659
+ maxLength: 10
2178
2660
  },
2179
2661
  {
2180
2662
  name: 'Korea North',
@@ -2183,7 +2665,9 @@ const countries = [
2183
2665
  dialCode: '+850',
2184
2666
  format: '+850 ### ####',
2185
2667
  flag: 'https://flagcdn.com/w40/kp.png',
2186
- phoneLength: 8
2668
+ phoneLength: 8,
2669
+ minLength: 8,
2670
+ maxLength: 8
2187
2671
  },
2188
2672
  {
2189
2673
  name: 'Libya',
@@ -2192,7 +2676,9 @@ const countries = [
2192
2676
  dialCode: '+218',
2193
2677
  format: '+218 ##-###-###',
2194
2678
  flag: 'https://flagcdn.com/w40/ly.png',
2195
- phoneLength: 9
2679
+ phoneLength: 9,
2680
+ minLength: 9,
2681
+ maxLength: 9
2196
2682
  },
2197
2683
  {
2198
2684
  name: 'Montenegro',
@@ -2201,7 +2687,9 @@ const countries = [
2201
2687
  dialCode: '+382',
2202
2688
  format: '+382 ## ### ###',
2203
2689
  flag: 'https://flagcdn.com/w40/me.png',
2204
- phoneLength: 8
2690
+ phoneLength: 8,
2691
+ minLength: 8,
2692
+ maxLength: 8
2205
2693
  },
2206
2694
  {
2207
2695
  name: 'Netherlands',
@@ -2210,7 +2698,9 @@ const countries = [
2210
2698
  dialCode: '+31',
2211
2699
  format: '+31 ## ### ####',
2212
2700
  flag: 'https://flagcdn.com/w40/nl.png',
2213
- phoneLength: 9
2701
+ phoneLength: 9,
2702
+ minLength: 9,
2703
+ maxLength: 9
2214
2704
  },
2215
2705
  {
2216
2706
  name: 'Norfolk Island',
@@ -2219,7 +2709,9 @@ const countries = [
2219
2709
  dialCode: '+672',
2220
2710
  format: '+672 3 ## ###',
2221
2711
  flag: 'https://flagcdn.com/w40/nf.png',
2222
- phoneLength: 6
2712
+ phoneLength: 6,
2713
+ minLength: 6,
2714
+ maxLength: 6
2223
2715
  },
2224
2716
  {
2225
2717
  name: 'Pitcairn',
@@ -2228,7 +2720,9 @@ const countries = [
2228
2720
  dialCode: '+64',
2229
2721
  format: '+64 ### ### ###',
2230
2722
  flag: 'https://flagcdn.com/w40/pn.png',
2231
- phoneLength: 9
2723
+ phoneLength: 9,
2724
+ minLength: 9,
2725
+ maxLength: 9
2232
2726
  },
2233
2727
  {
2234
2728
  name: 'Poland',
@@ -2237,7 +2731,9 @@ const countries = [
2237
2731
  dialCode: '+48',
2238
2732
  format: '+48 ## ### ####',
2239
2733
  flag: 'https://flagcdn.com/w40/pl.png',
2240
- phoneLength: 9
2734
+ phoneLength: 9,
2735
+ minLength: 9,
2736
+ maxLength: 9
2241
2737
  },
2242
2738
  {
2243
2739
  name: 'REPUBLIC OF CHINA',
@@ -2246,7 +2742,9 @@ const countries = [
2246
2742
  dialCode: '+886',
2247
2743
  format: '+886 # #### ####',
2248
2744
  flag: 'https://flagcdn.com/w40/tw.png',
2249
- phoneLength: 9
2745
+ phoneLength: 9,
2746
+ minLength: 9,
2747
+ maxLength: 9
2250
2748
  },
2251
2749
  {
2252
2750
  name: 'Republic of Macedonia',
@@ -2255,7 +2753,9 @@ const countries = [
2255
2753
  dialCode: '+389',
2256
2754
  format: '+389 ## ### ###',
2257
2755
  flag: 'https://flagcdn.com/w40/mk.png',
2258
- phoneLength: 8
2756
+ phoneLength: 8,
2757
+ minLength: 8,
2758
+ maxLength: 8
2259
2759
  },
2260
2760
  {
2261
2761
  name: 'Saint Barthelemy',
@@ -2264,7 +2764,9 @@ const countries = [
2264
2764
  dialCode: '+590',
2265
2765
  format: '+590 ### ## ## ##',
2266
2766
  flag: 'https://flagcdn.com/w40/bl.png',
2267
- phoneLength: 9
2767
+ phoneLength: 9,
2768
+ minLength: 9,
2769
+ maxLength: 9
2268
2770
  },
2269
2771
  {
2270
2772
  name: 'Saint Martin French part',
@@ -2273,7 +2775,9 @@ const countries = [
2273
2775
  dialCode: '+590',
2274
2776
  format: '+590 ### ## ## ##',
2275
2777
  flag: 'https://flagcdn.com/w40/mf.png',
2276
- phoneLength: 9
2778
+ phoneLength: 9,
2779
+ minLength: 9,
2780
+ maxLength: 9
2277
2781
  },
2278
2782
  {
2279
2783
  name: 'Senegal',
@@ -2282,7 +2786,9 @@ const countries = [
2282
2786
  dialCode: '+221',
2283
2787
  format: '+221 ## ### ####',
2284
2788
  flag: 'https://flagcdn.com/w40/sn.png',
2285
- phoneLength: 9
2789
+ phoneLength: 9,
2790
+ minLength: 9,
2791
+ maxLength: 9
2286
2792
  },
2287
2793
  {
2288
2794
  name: 'Somalia',
@@ -2291,7 +2797,9 @@ const countries = [
2291
2797
  dialCode: '+252',
2292
2798
  format: '+252 ## ### ###',
2293
2799
  flag: 'https://flagcdn.com/w40/so.png',
2294
- phoneLength: 8
2800
+ phoneLength: 8,
2801
+ minLength: 8,
2802
+ maxLength: 8
2295
2803
  },
2296
2804
  {
2297
2805
  name: 'South Georgia and the South Sandwich Islands',
@@ -2300,7 +2808,9 @@ const countries = [
2300
2808
  dialCode: '+500',
2301
2809
  format: '+500 ####',
2302
2810
  flag: 'https://flagcdn.com/w40/gs.png',
2303
- phoneLength: 4
2811
+ phoneLength: 4,
2812
+ minLength: 4,
2813
+ maxLength: 4
2304
2814
  },
2305
2815
  {
2306
2816
  name: 'ST. KITTS & NEVIS',
@@ -2309,7 +2819,9 @@ const countries = [
2309
2819
  dialCode: '+1-869',
2310
2820
  format: '+1 869 ### ####',
2311
2821
  flag: 'https://flagcdn.com/w40/kn.png',
2312
- phoneLength: 10
2822
+ phoneLength: 10,
2823
+ minLength: 10,
2824
+ maxLength: 10
2313
2825
  },
2314
2826
  {
2315
2827
  name: 'Swaziland',
@@ -2318,7 +2830,9 @@ const countries = [
2318
2830
  dialCode: '+268',
2319
2831
  format: '+268 ## ## ####',
2320
2832
  flag: 'https://flagcdn.com/w40/sz.png',
2321
- phoneLength: 8
2833
+ phoneLength: 8,
2834
+ minLength: 8,
2835
+ maxLength: 8
2322
2836
  },
2323
2837
  {
2324
2838
  name: 'Timor Leste',
@@ -2327,7 +2841,9 @@ const countries = [
2327
2841
  dialCode: '+670',
2328
2842
  format: '+670 ### ####',
2329
2843
  flag: 'https://flagcdn.com/w40/tl.png',
2330
- phoneLength: 7
2844
+ phoneLength: 7,
2845
+ minLength: 7,
2846
+ maxLength: 7
2331
2847
  },
2332
2848
  {
2333
2849
  name: 'Tunisia',
@@ -2336,7 +2852,9 @@ const countries = [
2336
2852
  dialCode: '+216',
2337
2853
  format: '+216 ## ### ###',
2338
2854
  flag: 'https://flagcdn.com/w40/tn.png',
2339
- phoneLength: 8
2855
+ phoneLength: 8,
2856
+ minLength: 8,
2857
+ maxLength: 8
2340
2858
  },
2341
2859
  {
2342
2860
  name: 'Uruguay',
@@ -2345,7 +2863,9 @@ const countries = [
2345
2863
  dialCode: '+598',
2346
2864
  format: '+598 # ### ####',
2347
2865
  flag: 'https://flagcdn.com/w40/uy.png',
2348
- phoneLength: 8
2866
+ phoneLength: 8,
2867
+ minLength: 8,
2868
+ maxLength: 8
2349
2869
  },
2350
2870
  {
2351
2871
  name: 'Wallis and Futuna Islands',
@@ -2354,7 +2874,9 @@ const countries = [
2354
2874
  dialCode: '+681',
2355
2875
  format: '+681 ## ####',
2356
2876
  flag: 'https://flagcdn.com/w40/wf.png',
2357
- phoneLength: 6
2877
+ phoneLength: 6,
2878
+ minLength: 6,
2879
+ maxLength: 6
2358
2880
  },
2359
2881
  {
2360
2882
  name: 'Western Sahara',
@@ -2363,7 +2885,9 @@ const countries = [
2363
2885
  dialCode: '+212',
2364
2886
  format: '+212 ## ######',
2365
2887
  flag: 'https://flagcdn.com/w40/eh.png',
2366
- phoneLength: 8
2888
+ phoneLength: 8,
2889
+ minLength: 8,
2890
+ maxLength: 8
2367
2891
  },
2368
2892
  {
2369
2893
  name: 'Yugoslavia',
@@ -2372,7 +2896,9 @@ const countries = [
2372
2896
  dialCode: '+381',
2373
2897
  format: '+381 ## ### ####',
2374
2898
  flag: 'https://flagcdn.com/w40/rs.png',
2375
- phoneLength: 9
2899
+ phoneLength: 9,
2900
+ minLength: 9,
2901
+ maxLength: 9
2376
2902
  },
2377
2903
  {
2378
2904
  name: 'Zaire',
@@ -2381,7 +2907,9 @@ const countries = [
2381
2907
  dialCode: '+243',
2382
2908
  format: '+243 ## ### ####',
2383
2909
  flag: 'https://flagcdn.com/w40/cd.png',
2384
- phoneLength: 9
2910
+ phoneLength: 9,
2911
+ minLength: 9,
2912
+ maxLength: 9
2385
2913
  },
2386
2914
  {
2387
2915
  name: 'Zanzibar',
@@ -2390,7 +2918,9 @@ const countries = [
2390
2918
  dialCode: '+255',
2391
2919
  format: '+255 ## ### ####',
2392
2920
  flag: 'https://flagcdn.com/w40/tz.png',
2393
- phoneLength: 9
2921
+ phoneLength: 9,
2922
+ minLength: 9,
2923
+ maxLength: 9
2394
2924
  },
2395
2925
  {
2396
2926
  name: 'Åland Islands',
@@ -2399,7 +2929,9 @@ const countries = [
2399
2929
  dialCode: '+358',
2400
2930
  format: '+358 ## ### ####',
2401
2931
  flag: 'https://flagcdn.com/w40/ax.png',
2402
- phoneLength: 9
2932
+ phoneLength: 9,
2933
+ minLength: 9,
2934
+ maxLength: 9
2403
2935
  }
2404
2936
  ];
2405
2937
 
@@ -2471,10 +3003,12 @@ class PhoneInputComponent {
2471
3003
  const hyphenCount = (raw.match(/-/g) || []).length;
2472
3004
  const spaceCount = (raw.match(/ /g) || []).length;
2473
3005
  const totalChars = this.phoneNumber.length;
2474
- const maxAllowedLength = this.selectedCountry?.phoneLength + hyphenCount + spaceCount;
2475
- if (digitsOnly.length !== this.selectedCountry?.phoneLength) {
3006
+ const maxAllowedLength = this.selectedCountry?.maxLength + hyphenCount + spaceCount;
3007
+ const minAllowedLength = this.selectedCountry?.minLength;
3008
+ if (digitsOnly.length < minAllowedLength || digitsOnly.length > this.selectedCountry?.maxLength) {
2476
3009
  this.isInvalid = true;
2477
3010
  }
3011
+ // ✅ Also check full string (with spaces/hyphens) doesn’t exceed
2478
3012
  else if (totalChars > maxAllowedLength) {
2479
3013
  this.isInvalid = true;
2480
3014
  }
@@ -2729,3 +3263,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2729
3263
 
2730
3264
  export { PhoneInputComponent, PhoneInputModule };
2731
3265
  //# sourceMappingURL=ngx-dial-input.mjs.map
3266
+ //# sourceMappingURL=ngx-dial-input.mjs.map