intl-tel-input 25.10.10 → 25.10.12

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.
@@ -3,30 +3,43 @@ var rawCountryData = [
3
3
  [
4
4
  "af",
5
5
  // Afghanistan
6
- "93"
6
+ "93",
7
+ 0,
8
+ null,
9
+ "0"
7
10
  ],
8
11
  [
9
12
  "ax",
10
13
  // Åland Islands
11
14
  "358",
12
- 1
15
+ 1,
16
+ ["18", "4"],
17
+ // (4 is a mobile range shared with FI)
18
+ "0"
13
19
  ],
14
20
  [
15
21
  "al",
16
22
  // Albania
17
- "355"
23
+ "355",
24
+ 0,
25
+ null,
26
+ "0"
18
27
  ],
19
28
  [
20
29
  "dz",
21
30
  // Algeria
22
- "213"
31
+ "213",
32
+ 0,
33
+ null,
34
+ "0"
23
35
  ],
24
36
  [
25
37
  "as",
26
38
  // American Samoa
27
39
  "1",
28
40
  5,
29
- ["684"]
41
+ ["684"],
42
+ "1"
30
43
  ],
31
44
  [
32
45
  "ad",
@@ -43,24 +56,32 @@ var rawCountryData = [
43
56
  // Anguilla
44
57
  "1",
45
58
  6,
46
- ["264"]
59
+ ["264"],
60
+ "1"
47
61
  ],
48
62
  [
49
63
  "ag",
50
64
  // Antigua and Barbuda
51
65
  "1",
52
66
  7,
53
- ["268"]
67
+ ["268"],
68
+ "1"
54
69
  ],
55
70
  [
56
71
  "ar",
57
72
  // Argentina
58
- "54"
73
+ "54",
74
+ 0,
75
+ null,
76
+ "0"
59
77
  ],
60
78
  [
61
79
  "am",
62
80
  // Armenia
63
- "374"
81
+ "374",
82
+ 0,
83
+ null,
84
+ "0"
64
85
  ],
65
86
  [
66
87
  "aw",
@@ -77,25 +98,33 @@ var rawCountryData = [
77
98
  // Australia
78
99
  "61",
79
100
  0,
80
- null,
101
+ ["4"],
102
+ // (mobile range shared with CX and CC)
81
103
  "0"
82
104
  ],
83
105
  [
84
106
  "at",
85
107
  // Austria
86
- "43"
108
+ "43",
109
+ 0,
110
+ null,
111
+ "0"
87
112
  ],
88
113
  [
89
114
  "az",
90
115
  // Azerbaijan
91
- "994"
116
+ "994",
117
+ 0,
118
+ null,
119
+ "0"
92
120
  ],
93
121
  [
94
122
  "bs",
95
123
  // Bahamas
96
124
  "1",
97
125
  8,
98
- ["242"]
126
+ ["242"],
127
+ "1"
99
128
  ],
100
129
  [
101
130
  "bh",
@@ -105,24 +134,34 @@ var rawCountryData = [
105
134
  [
106
135
  "bd",
107
136
  // Bangladesh
108
- "880"
137
+ "880",
138
+ 0,
139
+ null,
140
+ "0"
109
141
  ],
110
142
  [
111
143
  "bb",
112
144
  // Barbados
113
145
  "1",
114
146
  9,
115
- ["246"]
147
+ ["246"],
148
+ "1"
116
149
  ],
117
150
  [
118
151
  "by",
119
152
  // Belarus
120
- "375"
153
+ "375",
154
+ 0,
155
+ null,
156
+ "8"
121
157
  ],
122
158
  [
123
159
  "be",
124
160
  // Belgium
125
- "32"
161
+ "32",
162
+ 0,
163
+ null,
164
+ "0"
126
165
  ],
127
166
  [
128
167
  "bz",
@@ -139,7 +178,8 @@ var rawCountryData = [
139
178
  // Bermuda
140
179
  "1",
141
180
  10,
142
- ["441"]
181
+ ["441"],
182
+ "1"
143
183
  ],
144
184
  [
145
185
  "bt",
@@ -149,12 +189,18 @@ var rawCountryData = [
149
189
  [
150
190
  "bo",
151
191
  // Bolivia
152
- "591"
192
+ "591",
193
+ 0,
194
+ null,
195
+ "0"
153
196
  ],
154
197
  [
155
198
  "ba",
156
199
  // Bosnia and Herzegovina
157
- "387"
200
+ "387",
201
+ 0,
202
+ null,
203
+ "0"
158
204
  ],
159
205
  [
160
206
  "bw",
@@ -164,7 +210,10 @@ var rawCountryData = [
164
210
  [
165
211
  "br",
166
212
  // Brazil
167
- "55"
213
+ "55",
214
+ 0,
215
+ null,
216
+ "0"
168
217
  ],
169
218
  [
170
219
  "io",
@@ -176,7 +225,8 @@ var rawCountryData = [
176
225
  // British Virgin Islands
177
226
  "1",
178
227
  11,
179
- ["284"]
228
+ ["284"],
229
+ "1"
180
230
  ],
181
231
  [
182
232
  "bn",
@@ -186,7 +236,10 @@ var rawCountryData = [
186
236
  [
187
237
  "bg",
188
238
  // Bulgaria
189
- "359"
239
+ "359",
240
+ 0,
241
+ null,
242
+ "0"
190
243
  ],
191
244
  [
192
245
  "bf",
@@ -201,7 +254,10 @@ var rawCountryData = [
201
254
  [
202
255
  "kh",
203
256
  // Cambodia
204
- "855"
257
+ "855",
258
+ 0,
259
+ null,
260
+ "0"
205
261
  ],
206
262
  [
207
263
  "cm",
@@ -213,7 +269,8 @@ var rawCountryData = [
213
269
  // Canada
214
270
  "1",
215
271
  1,
216
- ["204", "226", "236", "249", "250", "263", "289", "306", "343", "354", "365", "367", "368", "382", "387", "403", "416", "418", "428", "431", "437", "438", "450", "584", "468", "474", "506", "514", "519", "548", "579", "581", "584", "587", "604", "613", "639", "647", "672", "683", "705", "709", "742", "753", "778", "780", "782", "807", "819", "825", "867", "873", "879", "902", "905"]
272
+ ["204", "226", "236", "249", "250", "257", "263", "289", "306", "343", "354", "365", "367", "368", "382", "403", "416", "418", "428", "431", "437", "438", "450", "468", "474", "506", "514", "519", "548", "579", "581", "584", "587", "604", "613", "639", "647", "672", "683", "705", "709", "742", "753", "778", "780", "782", "807", "819", "825", "867", "873", "879", "902", "905", "942"],
273
+ "1"
217
274
  ],
218
275
  [
219
276
  "cv",
@@ -232,7 +289,8 @@ var rawCountryData = [
232
289
  // Cayman Islands
233
290
  "1",
234
291
  12,
235
- ["345"]
292
+ ["345"],
293
+ "1"
236
294
  ],
237
295
  [
238
296
  "cf",
@@ -252,14 +310,18 @@ var rawCountryData = [
252
310
  [
253
311
  "cn",
254
312
  // China
255
- "86"
313
+ "86",
314
+ 0,
315
+ null,
316
+ "0"
256
317
  ],
257
318
  [
258
319
  "cx",
259
320
  // Christmas Island
260
321
  "61",
261
322
  2,
262
- ["89164"],
323
+ ["4", "89164"],
324
+ // (4 is a mobile range shared with AU and CC)
263
325
  "0"
264
326
  ],
265
327
  [
@@ -267,13 +329,17 @@ var rawCountryData = [
267
329
  // Cocos (Keeling) Islands
268
330
  "61",
269
331
  1,
270
- ["89162"],
332
+ ["4", "89162"],
333
+ // (4 is a mobile range shared with AU and CX)
271
334
  "0"
272
335
  ],
273
336
  [
274
337
  "co",
275
338
  // Colombia
276
- "57"
339
+ "57",
340
+ 0,
341
+ null,
342
+ "0"
277
343
  ],
278
344
  [
279
345
  "km",
@@ -288,7 +354,10 @@ var rawCountryData = [
288
354
  [
289
355
  "cd",
290
356
  // Congo (Kinshasa)
291
- "243"
357
+ "243",
358
+ 0,
359
+ null,
360
+ "0"
292
361
  ],
293
362
  [
294
363
  "ck",
@@ -308,12 +377,18 @@ var rawCountryData = [
308
377
  [
309
378
  "hr",
310
379
  // Croatia
311
- "385"
380
+ "385",
381
+ 0,
382
+ null,
383
+ "0"
312
384
  ],
313
385
  [
314
386
  "cu",
315
387
  // Cuba
316
- "53"
388
+ "53",
389
+ 0,
390
+ null,
391
+ "0"
317
392
  ],
318
393
  [
319
394
  "cw",
@@ -346,24 +421,32 @@ var rawCountryData = [
346
421
  // Dominica
347
422
  "1",
348
423
  13,
349
- ["767"]
424
+ ["767"],
425
+ "1"
350
426
  ],
351
427
  [
352
428
  "do",
353
429
  // Dominican Republic
354
430
  "1",
355
431
  2,
356
- ["809", "829", "849"]
432
+ ["809", "829", "849"],
433
+ "1"
357
434
  ],
358
435
  [
359
436
  "ec",
360
437
  // Ecuador
361
- "593"
438
+ "593",
439
+ 0,
440
+ null,
441
+ "0"
362
442
  ],
363
443
  [
364
444
  "eg",
365
445
  // Egypt
366
- "20"
446
+ "20",
447
+ 0,
448
+ null,
449
+ "0"
367
450
  ],
368
451
  [
369
452
  "sv",
@@ -378,7 +461,10 @@ var rawCountryData = [
378
461
  [
379
462
  "er",
380
463
  // Eritrea
381
- "291"
464
+ "291",
465
+ 0,
466
+ null,
467
+ "0"
382
468
  ],
383
469
  [
384
470
  "ee",
@@ -393,7 +479,10 @@ var rawCountryData = [
393
479
  [
394
480
  "et",
395
481
  // Ethiopia
396
- "251"
482
+ "251",
483
+ 0,
484
+ null,
485
+ "0"
397
486
  ],
398
487
  [
399
488
  "fk",
@@ -414,17 +503,26 @@ var rawCountryData = [
414
503
  "fi",
415
504
  // Finland
416
505
  "358",
417
- 0
506
+ 0,
507
+ ["4"],
508
+ // (mobile range shared with AX)
509
+ "0"
418
510
  ],
419
511
  [
420
512
  "fr",
421
513
  // France
422
- "33"
514
+ "33",
515
+ 0,
516
+ null,
517
+ "0"
423
518
  ],
424
519
  [
425
520
  "gf",
426
521
  // French Guiana
427
- "594"
522
+ "594",
523
+ 0,
524
+ null,
525
+ "0"
428
526
  ],
429
527
  [
430
528
  "pf",
@@ -444,17 +542,26 @@ var rawCountryData = [
444
542
  [
445
543
  "ge",
446
544
  // Georgia
447
- "995"
545
+ "995",
546
+ 0,
547
+ null,
548
+ "0"
448
549
  ],
449
550
  [
450
551
  "de",
451
552
  // Germany
452
- "49"
553
+ "49",
554
+ 0,
555
+ null,
556
+ "0"
453
557
  ],
454
558
  [
455
559
  "gh",
456
560
  // Ghana
457
- "233"
561
+ "233",
562
+ 0,
563
+ null,
564
+ "0"
458
565
  ],
459
566
  [
460
567
  "gi",
@@ -476,20 +583,24 @@ var rawCountryData = [
476
583
  // Grenada
477
584
  "1",
478
585
  14,
479
- ["473"]
586
+ ["473"],
587
+ "1"
480
588
  ],
481
589
  [
482
590
  "gp",
483
591
  // Guadeloupe
484
592
  "590",
485
- 0
593
+ 0,
594
+ null,
595
+ "0"
486
596
  ],
487
597
  [
488
598
  "gu",
489
599
  // Guam
490
600
  "1",
491
601
  15,
492
- ["671"]
602
+ ["671"],
603
+ "1"
493
604
  ],
494
605
  [
495
606
  "gt",
@@ -537,7 +648,10 @@ var rawCountryData = [
537
648
  [
538
649
  "hu",
539
650
  // Hungary
540
- "36"
651
+ "36",
652
+ 0,
653
+ null,
654
+ "06"
541
655
  ],
542
656
  [
543
657
  "is",
@@ -547,58 +661,82 @@ var rawCountryData = [
547
661
  [
548
662
  "in",
549
663
  // India
550
- "91"
664
+ "91",
665
+ 0,
666
+ null,
667
+ "0"
551
668
  ],
552
669
  [
553
670
  "id",
554
671
  // Indonesia
555
- "62"
672
+ "62",
673
+ 0,
674
+ null,
675
+ "0"
556
676
  ],
557
677
  [
558
678
  "ir",
559
679
  // Iran
560
- "98"
680
+ "98",
681
+ 0,
682
+ null,
683
+ "0"
561
684
  ],
562
685
  [
563
686
  "iq",
564
687
  // Iraq
565
- "964"
688
+ "964",
689
+ 0,
690
+ null,
691
+ "0"
566
692
  ],
567
693
  [
568
694
  "ie",
569
695
  // Ireland
570
- "353"
696
+ "353",
697
+ 0,
698
+ null,
699
+ "0"
571
700
  ],
572
701
  [
573
702
  "im",
574
703
  // Isle of Man
575
704
  "44",
576
705
  2,
577
- ["1624", "74576", "7524", "7924", "7624"],
706
+ ["1624", "74576", "7524", "7624", "7924"],
578
707
  "0"
579
708
  ],
580
709
  [
581
710
  "il",
582
711
  // Israel
583
- "972"
712
+ "972",
713
+ 0,
714
+ null,
715
+ "0"
584
716
  ],
585
717
  [
586
718
  "it",
587
719
  // Italy
588
720
  "39",
589
- 0
721
+ 0,
722
+ ["3"]
723
+ // (mobile range shared with VA)
590
724
  ],
591
725
  [
592
726
  "jm",
593
727
  // Jamaica
594
728
  "1",
595
729
  4,
596
- ["876", "658"]
730
+ ["658", "876"],
731
+ "1"
597
732
  ],
598
733
  [
599
734
  "jp",
600
735
  // Japan
601
- "81"
736
+ "81",
737
+ 0,
738
+ null,
739
+ "0"
602
740
  ],
603
741
  [
604
742
  "je",
@@ -611,7 +749,10 @@ var rawCountryData = [
611
749
  [
612
750
  "jo",
613
751
  // Jordan
614
- "962"
752
+ "962",
753
+ 0,
754
+ null,
755
+ "0"
615
756
  ],
616
757
  [
617
758
  "kz",
@@ -619,22 +760,32 @@ var rawCountryData = [
619
760
  "7",
620
761
  1,
621
762
  ["33", "7"],
763
+ // (33 is shared with RU)
622
764
  "8"
623
765
  ],
624
766
  [
625
767
  "ke",
626
768
  // Kenya
627
- "254"
769
+ "254",
770
+ 0,
771
+ null,
772
+ "0"
628
773
  ],
629
774
  [
630
775
  "ki",
631
776
  // Kiribati
632
- "686"
777
+ "686",
778
+ 0,
779
+ null,
780
+ "0"
633
781
  ],
634
782
  [
635
783
  "xk",
636
784
  // Kosovo
637
- "383"
785
+ "383",
786
+ 0,
787
+ null,
788
+ "0"
638
789
  ],
639
790
  [
640
791
  "kw",
@@ -644,12 +795,18 @@ var rawCountryData = [
644
795
  [
645
796
  "kg",
646
797
  // Kyrgyzstan
647
- "996"
798
+ "996",
799
+ 0,
800
+ null,
801
+ "0"
648
802
  ],
649
803
  [
650
804
  "la",
651
805
  // Laos
652
- "856"
806
+ "856",
807
+ 0,
808
+ null,
809
+ "0"
653
810
  ],
654
811
  [
655
812
  "lv",
@@ -659,7 +816,10 @@ var rawCountryData = [
659
816
  [
660
817
  "lb",
661
818
  // Lebanon
662
- "961"
819
+ "961",
820
+ 0,
821
+ null,
822
+ "0"
663
823
  ],
664
824
  [
665
825
  "ls",
@@ -669,22 +829,34 @@ var rawCountryData = [
669
829
  [
670
830
  "lr",
671
831
  // Liberia
672
- "231"
832
+ "231",
833
+ 0,
834
+ null,
835
+ "0"
673
836
  ],
674
837
  [
675
838
  "ly",
676
839
  // Libya
677
- "218"
840
+ "218",
841
+ 0,
842
+ null,
843
+ "0"
678
844
  ],
679
845
  [
680
846
  "li",
681
847
  // Liechtenstein
682
- "423"
848
+ "423",
849
+ 0,
850
+ null,
851
+ "0"
683
852
  ],
684
853
  [
685
854
  "lt",
686
855
  // Lithuania
687
- "370"
856
+ "370",
857
+ 0,
858
+ null,
859
+ "0"
688
860
  ],
689
861
  [
690
862
  "lu",
@@ -699,17 +871,26 @@ var rawCountryData = [
699
871
  [
700
872
  "mg",
701
873
  // Madagascar
702
- "261"
874
+ "261",
875
+ 0,
876
+ null,
877
+ "0"
703
878
  ],
704
879
  [
705
880
  "mw",
706
881
  // Malawi
707
- "265"
882
+ "265",
883
+ 0,
884
+ null,
885
+ "0"
708
886
  ],
709
887
  [
710
888
  "my",
711
889
  // Malaysia
712
- "60"
890
+ "60",
891
+ 0,
892
+ null,
893
+ "0"
713
894
  ],
714
895
  [
715
896
  "mv",
@@ -729,12 +910,18 @@ var rawCountryData = [
729
910
  [
730
911
  "mh",
731
912
  // Marshall Islands
732
- "692"
913
+ "692",
914
+ 0,
915
+ null,
916
+ "1"
733
917
  ],
734
918
  [
735
919
  "mq",
736
920
  // Martinique
737
- "596"
921
+ "596",
922
+ 0,
923
+ null,
924
+ "0"
738
925
  ],
739
926
  [
740
927
  "mr",
@@ -767,36 +954,50 @@ var rawCountryData = [
767
954
  [
768
955
  "md",
769
956
  // Moldova
770
- "373"
957
+ "373",
958
+ 0,
959
+ null,
960
+ "0"
771
961
  ],
772
962
  [
773
963
  "mc",
774
964
  // Monaco
775
- "377"
965
+ "377",
966
+ 0,
967
+ null,
968
+ "0"
776
969
  ],
777
970
  [
778
971
  "mn",
779
972
  // Mongolia
780
- "976"
973
+ "976",
974
+ 0,
975
+ null,
976
+ "0"
781
977
  ],
782
978
  [
783
979
  "me",
784
980
  // Montenegro
785
- "382"
981
+ "382",
982
+ 0,
983
+ null,
984
+ "0"
786
985
  ],
787
986
  [
788
987
  "ms",
789
988
  // Montserrat
790
989
  "1",
791
990
  16,
792
- ["664"]
991
+ ["664"],
992
+ "1"
793
993
  ],
794
994
  [
795
995
  "ma",
796
996
  // Morocco
797
997
  "212",
798
998
  0,
799
- null,
999
+ ["6", "7"],
1000
+ // (mobile ranges shared with EH)
800
1001
  "0"
801
1002
  ],
802
1003
  [
@@ -807,12 +1008,18 @@ var rawCountryData = [
807
1008
  [
808
1009
  "mm",
809
1010
  // Myanmar (Burma)
810
- "95"
1011
+ "95",
1012
+ 0,
1013
+ null,
1014
+ "0"
811
1015
  ],
812
1016
  [
813
1017
  "na",
814
1018
  // Namibia
815
- "264"
1019
+ "264",
1020
+ 0,
1021
+ null,
1022
+ "0"
816
1023
  ],
817
1024
  [
818
1025
  "nr",
@@ -822,12 +1029,18 @@ var rawCountryData = [
822
1029
  [
823
1030
  "np",
824
1031
  // Nepal
825
- "977"
1032
+ "977",
1033
+ 0,
1034
+ null,
1035
+ "0"
826
1036
  ],
827
1037
  [
828
1038
  "nl",
829
1039
  // Netherlands
830
- "31"
1040
+ "31",
1041
+ 0,
1042
+ null,
1043
+ "0"
831
1044
  ],
832
1045
  [
833
1046
  "nc",
@@ -837,7 +1050,10 @@ var rawCountryData = [
837
1050
  [
838
1051
  "nz",
839
1052
  // New Zealand
840
- "64"
1053
+ "64",
1054
+ 0,
1055
+ null,
1056
+ "0"
841
1057
  ],
842
1058
  [
843
1059
  "ni",
@@ -852,7 +1068,10 @@ var rawCountryData = [
852
1068
  [
853
1069
  "ng",
854
1070
  // Nigeria
855
- "234"
1071
+ "234",
1072
+ 0,
1073
+ null,
1074
+ "0"
856
1075
  ],
857
1076
  [
858
1077
  "nu",
@@ -867,25 +1086,34 @@ var rawCountryData = [
867
1086
  [
868
1087
  "kp",
869
1088
  // North Korea
870
- "850"
1089
+ "850",
1090
+ 0,
1091
+ null,
1092
+ "0"
871
1093
  ],
872
1094
  [
873
1095
  "mk",
874
1096
  // North Macedonia
875
- "389"
1097
+ "389",
1098
+ 0,
1099
+ null,
1100
+ "0"
876
1101
  ],
877
1102
  [
878
1103
  "mp",
879
1104
  // Northern Mariana Islands
880
1105
  "1",
881
1106
  17,
882
- ["670"]
1107
+ ["670"],
1108
+ "1"
883
1109
  ],
884
1110
  [
885
1111
  "no",
886
1112
  // Norway
887
1113
  "47",
888
- 0
1114
+ 0,
1115
+ ["4", "9"]
1116
+ // (mobile ranges shared with SJ)
889
1117
  ],
890
1118
  [
891
1119
  "om",
@@ -895,7 +1123,10 @@ var rawCountryData = [
895
1123
  [
896
1124
  "pk",
897
1125
  // Pakistan
898
- "92"
1126
+ "92",
1127
+ 0,
1128
+ null,
1129
+ "0"
899
1130
  ],
900
1131
  [
901
1132
  "pw",
@@ -905,7 +1136,10 @@ var rawCountryData = [
905
1136
  [
906
1137
  "ps",
907
1138
  // Palestinian Territories
908
- "970"
1139
+ "970",
1140
+ 0,
1141
+ null,
1142
+ "0"
909
1143
  ],
910
1144
  [
911
1145
  "pa",
@@ -920,17 +1154,26 @@ var rawCountryData = [
920
1154
  [
921
1155
  "py",
922
1156
  // Paraguay
923
- "595"
1157
+ "595",
1158
+ 0,
1159
+ null,
1160
+ "0"
924
1161
  ],
925
1162
  [
926
1163
  "pe",
927
1164
  // Peru
928
- "51"
1165
+ "51",
1166
+ 0,
1167
+ null,
1168
+ "0"
929
1169
  ],
930
1170
  [
931
1171
  "ph",
932
1172
  // Philippines
933
- "63"
1173
+ "63",
1174
+ 0,
1175
+ null,
1176
+ "0"
934
1177
  ],
935
1178
  [
936
1179
  "pl",
@@ -947,7 +1190,8 @@ var rawCountryData = [
947
1190
  // Puerto Rico
948
1191
  "1",
949
1192
  3,
950
- ["787", "939"]
1193
+ ["787", "939"],
1194
+ "1"
951
1195
  ],
952
1196
  [
953
1197
  "qa",
@@ -965,20 +1209,27 @@ var rawCountryData = [
965
1209
  [
966
1210
  "ro",
967
1211
  // Romania
968
- "40"
1212
+ "40",
1213
+ 0,
1214
+ null,
1215
+ "0"
969
1216
  ],
970
1217
  [
971
1218
  "ru",
972
1219
  // Russia
973
1220
  "7",
974
1221
  0,
975
- null,
1222
+ ["33"],
1223
+ // (shared with KZ)
976
1224
  "8"
977
1225
  ],
978
1226
  [
979
1227
  "rw",
980
1228
  // Rwanda
981
- "250"
1229
+ "250",
1230
+ 0,
1231
+ null,
1232
+ "0"
982
1233
  ],
983
1234
  [
984
1235
  "ws",
@@ -998,7 +1249,10 @@ var rawCountryData = [
998
1249
  [
999
1250
  "sa",
1000
1251
  // Saudi Arabia
1001
- "966"
1252
+ "966",
1253
+ 0,
1254
+ null,
1255
+ "0"
1002
1256
  ],
1003
1257
  [
1004
1258
  "sn",
@@ -1008,7 +1262,10 @@ var rawCountryData = [
1008
1262
  [
1009
1263
  "rs",
1010
1264
  // Serbia
1011
- "381"
1265
+ "381",
1266
+ 0,
1267
+ null,
1268
+ "0"
1012
1269
  ],
1013
1270
  [
1014
1271
  "sc",
@@ -1018,7 +1275,10 @@ var rawCountryData = [
1018
1275
  [
1019
1276
  "sl",
1020
1277
  // Sierra Leone
1021
- "232"
1278
+ "232",
1279
+ 0,
1280
+ null,
1281
+ "0"
1022
1282
  ],
1023
1283
  [
1024
1284
  "sg",
@@ -1030,17 +1290,24 @@ var rawCountryData = [
1030
1290
  // Sint Maarten
1031
1291
  "1",
1032
1292
  21,
1033
- ["721"]
1293
+ ["721"],
1294
+ "1"
1034
1295
  ],
1035
1296
  [
1036
1297
  "sk",
1037
1298
  // Slovakia
1038
- "421"
1299
+ "421",
1300
+ 0,
1301
+ null,
1302
+ "0"
1039
1303
  ],
1040
1304
  [
1041
1305
  "si",
1042
1306
  // Slovenia
1043
- "386"
1307
+ "386",
1308
+ 0,
1309
+ null,
1310
+ "0"
1044
1311
  ],
1045
1312
  [
1046
1313
  "sb",
@@ -1050,22 +1317,34 @@ var rawCountryData = [
1050
1317
  [
1051
1318
  "so",
1052
1319
  // Somalia
1053
- "252"
1320
+ "252",
1321
+ 0,
1322
+ null,
1323
+ "0"
1054
1324
  ],
1055
1325
  [
1056
1326
  "za",
1057
1327
  // South Africa
1058
- "27"
1328
+ "27",
1329
+ 0,
1330
+ null,
1331
+ "0"
1059
1332
  ],
1060
1333
  [
1061
1334
  "kr",
1062
1335
  // South Korea
1063
- "82"
1336
+ "82",
1337
+ 0,
1338
+ null,
1339
+ "0"
1064
1340
  ],
1065
1341
  [
1066
1342
  "ss",
1067
1343
  // South Sudan
1068
- "211"
1344
+ "211",
1345
+ 0,
1346
+ null,
1347
+ "0"
1069
1348
  ],
1070
1349
  [
1071
1350
  "es",
@@ -1075,13 +1354,18 @@ var rawCountryData = [
1075
1354
  [
1076
1355
  "lk",
1077
1356
  // Sri Lanka
1078
- "94"
1357
+ "94",
1358
+ 0,
1359
+ null,
1360
+ "0"
1079
1361
  ],
1080
1362
  [
1081
1363
  "bl",
1082
1364
  // St. Barthélemy
1083
1365
  "590",
1084
- 1
1366
+ 1,
1367
+ null,
1368
+ "0"
1085
1369
  ],
1086
1370
  [
1087
1371
  "sh",
@@ -1093,37 +1377,48 @@ var rawCountryData = [
1093
1377
  // St. Kitts & Nevis
1094
1378
  "1",
1095
1379
  18,
1096
- ["869"]
1380
+ ["869"],
1381
+ "1"
1097
1382
  ],
1098
1383
  [
1099
1384
  "lc",
1100
1385
  // St. Lucia
1101
1386
  "1",
1102
1387
  19,
1103
- ["758"]
1388
+ ["758"],
1389
+ "1"
1104
1390
  ],
1105
1391
  [
1106
1392
  "mf",
1107
1393
  // St. Martin
1108
1394
  "590",
1109
- 2
1395
+ 2,
1396
+ null,
1397
+ "0"
1110
1398
  ],
1111
1399
  [
1112
1400
  "pm",
1113
1401
  // St. Pierre & Miquelon
1114
- "508"
1402
+ "508",
1403
+ 0,
1404
+ null,
1405
+ "0"
1115
1406
  ],
1116
1407
  [
1117
1408
  "vc",
1118
1409
  // St. Vincent & Grenadines
1119
1410
  "1",
1120
1411
  20,
1121
- ["784"]
1412
+ ["784"],
1413
+ "1"
1122
1414
  ],
1123
1415
  [
1124
1416
  "sd",
1125
1417
  // Sudan
1126
- "249"
1418
+ "249",
1419
+ 0,
1420
+ null,
1421
+ "0"
1127
1422
  ],
1128
1423
  [
1129
1424
  "sr",
@@ -1135,27 +1430,40 @@ var rawCountryData = [
1135
1430
  // Svalbard & Jan Mayen
1136
1431
  "47",
1137
1432
  1,
1138
- ["79"]
1433
+ ["4", "79", "9"]
1434
+ // (4 and 9 are mobile ranges shared with NO)
1139
1435
  ],
1140
1436
  [
1141
1437
  "se",
1142
1438
  // Sweden
1143
- "46"
1439
+ "46",
1440
+ 0,
1441
+ null,
1442
+ "0"
1144
1443
  ],
1145
1444
  [
1146
1445
  "ch",
1147
1446
  // Switzerland
1148
- "41"
1447
+ "41",
1448
+ 0,
1449
+ null,
1450
+ "0"
1149
1451
  ],
1150
1452
  [
1151
1453
  "sy",
1152
1454
  // Syria
1153
- "963"
1455
+ "963",
1456
+ 0,
1457
+ null,
1458
+ "0"
1154
1459
  ],
1155
1460
  [
1156
1461
  "tw",
1157
1462
  // Taiwan
1158
- "886"
1463
+ "886",
1464
+ 0,
1465
+ null,
1466
+ "0"
1159
1467
  ],
1160
1468
  [
1161
1469
  "tj",
@@ -1165,12 +1473,18 @@ var rawCountryData = [
1165
1473
  [
1166
1474
  "tz",
1167
1475
  // Tanzania
1168
- "255"
1476
+ "255",
1477
+ 0,
1478
+ null,
1479
+ "0"
1169
1480
  ],
1170
1481
  [
1171
1482
  "th",
1172
1483
  // Thailand
1173
- "66"
1484
+ "66",
1485
+ 0,
1486
+ null,
1487
+ "0"
1174
1488
  ],
1175
1489
  [
1176
1490
  "tl",
@@ -1197,7 +1511,8 @@ var rawCountryData = [
1197
1511
  // Trinidad & Tobago
1198
1512
  "1",
1199
1513
  22,
1200
- ["868"]
1514
+ ["868"],
1515
+ "1"
1201
1516
  ],
1202
1517
  [
1203
1518
  "tn",
@@ -1207,19 +1522,26 @@ var rawCountryData = [
1207
1522
  [
1208
1523
  "tr",
1209
1524
  // Turkey
1210
- "90"
1525
+ "90",
1526
+ 0,
1527
+ null,
1528
+ "0"
1211
1529
  ],
1212
1530
  [
1213
1531
  "tm",
1214
1532
  // Turkmenistan
1215
- "993"
1533
+ "993",
1534
+ 0,
1535
+ null,
1536
+ "8"
1216
1537
  ],
1217
1538
  [
1218
1539
  "tc",
1219
1540
  // Turks & Caicos Islands
1220
1541
  "1",
1221
1542
  23,
1222
- ["649"]
1543
+ ["649"],
1544
+ "1"
1223
1545
  ],
1224
1546
  [
1225
1547
  "tv",
@@ -1231,22 +1553,32 @@ var rawCountryData = [
1231
1553
  // U.S. Virgin Islands
1232
1554
  "1",
1233
1555
  24,
1234
- ["340"]
1556
+ ["340"],
1557
+ "1"
1235
1558
  ],
1236
1559
  [
1237
1560
  "ug",
1238
1561
  // Uganda
1239
- "256"
1562
+ "256",
1563
+ 0,
1564
+ null,
1565
+ "0"
1240
1566
  ],
1241
1567
  [
1242
1568
  "ua",
1243
1569
  // Ukraine
1244
- "380"
1570
+ "380",
1571
+ 0,
1572
+ null,
1573
+ "0"
1245
1574
  ],
1246
1575
  [
1247
1576
  "ae",
1248
1577
  // United Arab Emirates
1249
- "971"
1578
+ "971",
1579
+ 0,
1580
+ null,
1581
+ "0"
1250
1582
  ],
1251
1583
  [
1252
1584
  "gb",
@@ -1260,12 +1592,17 @@ var rawCountryData = [
1260
1592
  "us",
1261
1593
  // United States
1262
1594
  "1",
1263
- 0
1595
+ 0,
1596
+ null,
1597
+ "1"
1264
1598
  ],
1265
1599
  [
1266
1600
  "uy",
1267
1601
  // Uruguay
1268
- "598"
1602
+ "598",
1603
+ 0,
1604
+ null,
1605
+ "0"
1269
1606
  ],
1270
1607
  [
1271
1608
  "uz",
@@ -1282,17 +1619,24 @@ var rawCountryData = [
1282
1619
  // Vatican City
1283
1620
  "39",
1284
1621
  1,
1285
- ["06698"]
1622
+ ["06698", "3"]
1623
+ // (3 is a mobile range shared with IT)
1286
1624
  ],
1287
1625
  [
1288
1626
  "ve",
1289
1627
  // Venezuela
1290
- "58"
1628
+ "58",
1629
+ 0,
1630
+ null,
1631
+ "0"
1291
1632
  ],
1292
1633
  [
1293
1634
  "vn",
1294
1635
  // Vietnam
1295
- "84"
1636
+ "84",
1637
+ 0,
1638
+ null,
1639
+ "0"
1296
1640
  ],
1297
1641
  [
1298
1642
  "wf",
@@ -1304,23 +1648,33 @@ var rawCountryData = [
1304
1648
  // Western Sahara
1305
1649
  "212",
1306
1650
  1,
1307
- ["5288", "5289"],
1651
+ ["5288", "5289", "6", "7"],
1652
+ // (6 and 7 are mobile ranges shared with MA)
1308
1653
  "0"
1309
1654
  ],
1310
1655
  [
1311
1656
  "ye",
1312
1657
  // Yemen
1313
- "967"
1658
+ "967",
1659
+ 0,
1660
+ null,
1661
+ "0"
1314
1662
  ],
1315
1663
  [
1316
1664
  "zm",
1317
1665
  // Zambia
1318
- "260"
1666
+ "260",
1667
+ 0,
1668
+ null,
1669
+ "0"
1319
1670
  ],
1320
1671
  [
1321
1672
  "zw",
1322
1673
  // Zimbabwe
1323
- "263"
1674
+ "263",
1675
+ 0,
1676
+ null,
1677
+ "0"
1324
1678
  ]
1325
1679
  ];
1326
1680
  var allCountries = [];
@@ -1752,6 +2106,10 @@ function processDialCodes(countries, options) {
1752
2106
  if (!dialCodes.has(c.dialCode)) {
1753
2107
  dialCodes.add(c.dialCode);
1754
2108
  }
2109
+ for (let k = 1; k < c.dialCode.length; k++) {
2110
+ const partialDialCode = c.dialCode.substring(0, k);
2111
+ _addToDialCodeMap(c.iso2, partialDialCode);
2112
+ }
1755
2113
  _addToDialCodeMap(c.iso2, c.dialCode, c.priority);
1756
2114
  }
1757
2115
  if (options.onlyCountries.length || options.excludeCountries.length) {
@@ -1904,15 +2262,8 @@ var Iti = class _Iti {
1904
2262
  _detectEnvironmentAndLayout() {
1905
2263
  this.isAndroid = typeof navigator !== "undefined" ? /Android/i.test(navigator.userAgent) : false;
1906
2264
  this.isRTL = !!this.telInput.closest("[dir=rtl]");
1907
- this.telInput.dir = "ltr";
1908
- const showOnDefaultSide = this.options.allowDropdown || this.options.separateDialCode;
1909
- this.showSelectedCountryOnLeft = this.isRTL ? !showOnDefaultSide : showOnDefaultSide;
1910
2265
  if (this.options.separateDialCode) {
1911
- if (this.isRTL) {
1912
- this.originalPaddingRight = this.telInput.style.paddingRight;
1913
- } else {
1914
- this.originalPaddingLeft = this.telInput.style.paddingLeft;
1915
- }
2266
+ this.originalPaddingLeft = this.telInput.style.paddingLeft;
1916
2267
  }
1917
2268
  }
1918
2269
  _createInitPromises() {
@@ -1983,6 +2334,9 @@ var Iti = class _Iti {
1983
2334
  [containerClass]: Boolean(containerClass)
1984
2335
  });
1985
2336
  const wrapper = createEl("div", { class: parentClasses });
2337
+ if (this.isRTL) {
2338
+ wrapper.setAttribute("dir", "ltr");
2339
+ }
1986
2340
  this.telInput.parentNode?.insertBefore(wrapper, this.telInput);
1987
2341
  return wrapper;
1988
2342
  }
@@ -1999,11 +2353,6 @@ var Iti = class _Iti {
1999
2353
  { class: "iti__country-container iti__v-hide" },
2000
2354
  wrapper
2001
2355
  );
2002
- if (this.showSelectedCountryOnLeft) {
2003
- this.countryContainer.style.left = "0px";
2004
- } else {
2005
- this.countryContainer.style.right = "0px";
2006
- }
2007
2356
  if (allowDropdown) {
2008
2357
  this.selectedCountry = createEl(
2009
2358
  "button",
@@ -2047,7 +2396,7 @@ var Iti = class _Iti {
2047
2396
  if (separateDialCode) {
2048
2397
  this.selectedDialCode = createEl(
2049
2398
  "div",
2050
- { class: "iti__selected-dial-code", dir: "ltr" },
2399
+ { class: "iti__selected-dial-code" },
2051
2400
  this.selectedCountry
2052
2401
  );
2053
2402
  }
@@ -2072,6 +2421,9 @@ var Iti = class _Iti {
2072
2421
  role: "dialog",
2073
2422
  "aria-modal": "true"
2074
2423
  });
2424
+ if (this.isRTL) {
2425
+ this.dropdownContent.setAttribute("dir", "rtl");
2426
+ }
2075
2427
  if (countrySearch) {
2076
2428
  this._buildSearchUI();
2077
2429
  }
@@ -2789,6 +3141,7 @@ var Iti = class _Iti {
2789
3141
  }
2790
3142
  return false;
2791
3143
  }
3144
+ // if there is a selected country, and the number doesn't start with a dial code, then add it
2792
3145
  _ensureHasDialCode(number) {
2793
3146
  const { dialCode, nationalPrefix } = this.selectedCountryData;
2794
3147
  const alreadyHasPlus = number.charAt(0) === "+";
@@ -2826,9 +3179,20 @@ var Iti = class _Iti {
2826
3179
  if (isRegionlessNanpNumber) {
2827
3180
  return null;
2828
3181
  }
2829
- const hasAreaCodesButNoneMatched = this.selectedCountryData.areaCodes && numeric.length > dialCodeMatchNumeric.length;
2830
- const alreadySelected = selectedIso2 && iso2Codes.includes(selectedIso2) && !hasAreaCodesButNoneMatched;
2831
- if (!alreadySelected) {
3182
+ const { areaCodes, priority } = this.selectedCountryData;
3183
+ if (areaCodes) {
3184
+ const dialCodeAreaCodes = areaCodes.map((areaCode) => `${selectedDialCode}${areaCode}`);
3185
+ for (const dialCodeAreaCode of dialCodeAreaCodes) {
3186
+ if (numeric.startsWith(dialCodeAreaCode)) {
3187
+ return null;
3188
+ }
3189
+ }
3190
+ }
3191
+ const isMainCountry = priority === 0;
3192
+ const hasAreaCodesButNoneMatched = areaCodes && !isMainCountry && numeric.length > dialCodeMatchNumeric.length;
3193
+ const isValidSelection = selectedIso2 && iso2Codes.includes(selectedIso2) && !hasAreaCodesButNoneMatched;
3194
+ const alreadySelected = selectedIso2 === iso2Codes[0];
3195
+ if (!isValidSelection && !alreadySelected) {
2832
3196
  return iso2Codes[0];
2833
3197
  }
2834
3198
  } else if (number.charAt(0) === "+" && numeric.length) {
@@ -2897,11 +3261,7 @@ var Iti = class _Iti {
2897
3261
  const saneDefaultWidth = this.options.separateDialCode ? 78 : 42;
2898
3262
  const selectedCountryWidth = this.selectedCountry.offsetWidth || this._getHiddenSelectedCountryWidth() || saneDefaultWidth;
2899
3263
  const inputPadding = selectedCountryWidth + 6;
2900
- if (this.showSelectedCountryOnLeft) {
2901
- this.telInput.style.paddingLeft = `${inputPadding}px`;
2902
- } else {
2903
- this.telInput.style.paddingRight = `${inputPadding}px`;
2904
- }
3264
+ this.telInput.style.paddingLeft = `${inputPadding}px`;
2905
3265
  }
2906
3266
  }
2907
3267
  //* Update the maximum valid number length for the currently selected country.
@@ -3074,15 +3434,15 @@ var Iti = class _Iti {
3074
3434
  const c = number.charAt(i);
3075
3435
  if (/[0-9]/.test(c)) {
3076
3436
  numericChars += c;
3437
+ const isMatch = Boolean(this.dialCodeToIso2Map[numericChars]);
3438
+ if (!isMatch) {
3439
+ break;
3440
+ }
3077
3441
  if (includeAreaCode) {
3078
- if (this.dialCodeToIso2Map[numericChars]) {
3079
- dialCode = number.substring(0, i + 1);
3080
- }
3081
- } else {
3082
- if (this.dialCodes.has(numericChars)) {
3083
- dialCode = number.substring(0, i + 1);
3084
- break;
3085
- }
3442
+ dialCode = number.substring(0, i + 1);
3443
+ } else if (this.dialCodes.has(numericChars)) {
3444
+ dialCode = number.substring(0, i + 1);
3445
+ break;
3086
3446
  }
3087
3447
  if (numericChars.length === this.dialCodeMaxLen) {
3088
3448
  break;
@@ -3185,11 +3545,7 @@ var Iti = class _Iti {
3185
3545
  }
3186
3546
  this.telInput.removeAttribute("data-intl-tel-input-id");
3187
3547
  if (separateDialCode) {
3188
- if (this.isRTL) {
3189
- this.telInput.style.paddingRight = this.originalPaddingRight;
3190
- } else {
3191
- this.telInput.style.paddingLeft = this.originalPaddingLeft;
3192
- }
3548
+ this.telInput.style.paddingLeft = this.originalPaddingLeft;
3193
3549
  }
3194
3550
  const wrapper = this.telInput.parentNode;
3195
3551
  wrapper?.parentNode?.insertBefore(this.telInput, wrapper);
@@ -3240,11 +3596,19 @@ var Iti = class _Iti {
3240
3596
  }
3241
3597
  return -99;
3242
3598
  }
3243
- //* Validate the input val (with precise=false)
3599
+ //* Validate the input val using number length only
3244
3600
  isValidNumber() {
3601
+ const { dialCode, iso2 } = this.selectedCountryData;
3602
+ if (dialCode === "44" && intlTelInput.utils) {
3603
+ const number = this._getFullNumber();
3604
+ const coreNumber = intlTelInput.utils.getCoreNumber(number, iso2);
3605
+ if (coreNumber[0] === "7" && coreNumber.length !== 10) {
3606
+ return false;
3607
+ }
3608
+ }
3245
3609
  return this._validateNumber(false);
3246
3610
  }
3247
- //* Validate the input val (with precise=true)
3611
+ //* Validate the input val with precise validation
3248
3612
  isValidNumberPrecise() {
3249
3613
  return this._validateNumber(true);
3250
3614
  }
@@ -3253,6 +3617,9 @@ var Iti = class _Iti {
3253
3617
  }
3254
3618
  //* Shared internal validation logic to handle alpha character extension rules.
3255
3619
  _validateNumber(precise) {
3620
+ if (!intlTelInput.utils) {
3621
+ return null;
3622
+ }
3256
3623
  if (!this.selectedCountryData.iso2) {
3257
3624
  return false;
3258
3625
  }
@@ -3364,7 +3731,7 @@ var intlTelInput = Object.assign(
3364
3731
  attachUtils,
3365
3732
  startedLoadingUtilsScript: false,
3366
3733
  startedLoadingAutoCountry: false,
3367
- version: "25.10.10"
3734
+ version: "25.10.12"
3368
3735
  }
3369
3736
  );
3370
3737
  var intl_tel_input_default = intlTelInput;