intl-tel-input 26.9.1 → 26.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/angular/build/IntlTelInput.js +1 -1
- package/angular/build/IntlTelInputWithUtils.js +61 -126
- package/build/js/data.js +1 -1
- package/build/js/data.min.js +1 -1
- package/build/js/intlTelInput.js +2 -2
- package/build/js/intlTelInput.min.js +2 -2
- package/build/js/intlTelInputWithUtils.js +62 -127
- package/build/js/intlTelInputWithUtils.min.js +2 -2
- package/build/js/utils.js +29 -29
- package/package.json +1 -1
- package/react/build/IntlTelInput.cjs +1 -1
- package/react/build/IntlTelInput.js +1 -1
- package/react/build/IntlTelInputWithUtils.cjs +61 -126
- package/react/build/IntlTelInputWithUtils.js +61 -126
- package/svelte/build/IntlTelInput.mjs +1 -1
- package/svelte/build/IntlTelInputWithUtils.mjs +61 -126
- package/vue/build/exports/IntlTelInput.mjs +1 -1
- package/vue/build/exports/IntlTelInputWithUtils.mjs +61 -126
- package/vue/build/{intl-tel-input-BhNWNtVs.mjs → intl-tel-input-MeSkUgHd.mjs} +1 -1
|
@@ -4187,7 +4187,7 @@ var intlTelInput = Object.assign((input, options) => {
|
|
|
4187
4187
|
attachUtils,
|
|
4188
4188
|
startedLoadingUtilsScript: false,
|
|
4189
4189
|
startedLoadingAutoCountry: false,
|
|
4190
|
-
version: "26.9.
|
|
4190
|
+
version: "26.9.2"
|
|
4191
4191
|
});
|
|
4192
4192
|
var intl_tel_input_default = intlTelInput;
|
|
4193
4193
|
|
|
@@ -4187,7 +4187,7 @@ var intlTelInput = Object.assign((input, options) => {
|
|
|
4187
4187
|
attachUtils,
|
|
4188
4188
|
startedLoadingUtilsScript: false,
|
|
4189
4189
|
startedLoadingAutoCountry: false,
|
|
4190
|
-
version: "26.9.
|
|
4190
|
+
version: "26.9.2"
|
|
4191
4191
|
});
|
|
4192
4192
|
var intl_tel_input_default = intlTelInput;
|
|
4193
4193
|
|
|
@@ -5268,7 +5268,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
5268
5268
|
BF: [, [
|
|
5269
5269
|
,
|
|
5270
5270
|
,
|
|
5271
|
-
"
|
|
5271
|
+
"[024-7]\\d{7}",
|
|
5272
5272
|
,
|
|
5273
5273
|
,
|
|
5274
5274
|
,
|
|
@@ -5276,7 +5276,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
5276
5276
|
,
|
|
5277
5277
|
,
|
|
5278
5278
|
[8]
|
|
5279
|
-
], [, , "2(?:0(?:49|5[23]|6[5-7]|9[016-9])|4(?:4[569]|5[4-6]|6[5-7]|7[0179])|5(?:[34]\\d|50|6[5-7]))\\d{4}", , , , "20491234"], [, , "(?:0[1-7]|
|
|
5279
|
+
], [, , "2(?:0(?:49|5[23]|6[5-7]|9[016-9])|4(?:4[569]|5[4-6]|6[5-7]|7[0179])|5(?:[34]\\d|50|6[5-7]))\\d{4}", , , , "20491234"], [, , "(?:0[1-7]|4[4-6]|5[0-8]|[67]\\d)\\d{6}", , , , "70123456"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "BF", 226, "00", , , , , , , , [[, "(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[024-7]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
5280
5280
|
BG: [, [
|
|
5281
5281
|
,
|
|
5282
5282
|
,
|
|
@@ -5357,15 +5357,15 @@ var intl_tel_input_default = intlTelInput;
|
|
|
5357
5357
|
,
|
|
5358
5358
|
[10]
|
|
5359
5359
|
], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "857[58]\\d{4}", , , , "85751234", , , [8]], "BJ", 229, "00", , , , , , , , [[, "(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]], [, "(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["0"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , "81\\d{6}", , , , "81123456", , , [8]], , , [, , , , , , , , , [-1]]],
|
|
5360
|
-
BL: [, [, , "
|
|
5360
|
+
BL: [, [, , "7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}", , , , , , , [9]], [
|
|
5361
5361
|
,
|
|
5362
5362
|
,
|
|
5363
|
-
"
|
|
5363
|
+
"(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}",
|
|
5364
5364
|
,
|
|
5365
5365
|
,
|
|
5366
5366
|
,
|
|
5367
5367
|
"590271234"
|
|
5368
|
-
], [, , "(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}", , , , "690001234"], [, , "80\\d{
|
|
5368
|
+
], [, , "(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}", , , , "690001234"], [, , "80[0-5]\\d{6}", , , , "800012345"], [, , "8[129]\\d{7}", , , , "810123456"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}", , , , "976012345"], "BL", 590, "00", "0", , , "0", , , , , , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
5369
5369
|
BM: [
|
|
5370
5370
|
,
|
|
5371
5371
|
[, , "(?:441|[58]\\d\\d|900)\\d{7}", , , , , , , [10], [7]],
|
|
@@ -5742,7 +5742,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
5742
5742
|
,
|
|
5743
5743
|
,
|
|
5744
5744
|
[9]
|
|
5745
|
-
], [, , "(?:24[23]|6(?:[25-9]\\d|
|
|
5745
|
+
], [, , "(?:24[23]|6(?:[25-9]\\d|4[01]))\\d{6}", , , , "671234567", , , [9]], [, , "88\\d{6,7}", , , , "88012345"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "CM", 237, "00", , , , , , , , [[, "(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["88"]], [, "(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[26]|88"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
5746
5746
|
CN: [, [
|
|
5747
5747
|
,
|
|
5748
5748
|
,
|
|
@@ -6536,48 +6536,24 @@ var intl_tel_input_default = intlTelInput;
|
|
|
6536
6536
|
,
|
|
6537
6537
|
"555123456"
|
|
6538
6538
|
], [, , "800\\d{6}", , , , "800123456"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "70[67]\\d{6}", , , , "706123456"], "GE", 995, "00", "0", , , "0", , , , [[, "(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["70"], "0$1"], [, "(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["32"], "0$1"], [, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[57]"]], [, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[348]"], "0$1"]], , [, , , , , , , , , [-1]], , , [, , "70[67]\\d{6}"], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
6539
|
-
GF: [
|
|
6540
|
-
,
|
|
6541
|
-
[
|
|
6542
|
-
,
|
|
6543
|
-
,
|
|
6544
|
-
"7093\\d{5}|(?:[56]94|[89]\\d\\d)\\d{6}",
|
|
6545
|
-
,
|
|
6546
|
-
,
|
|
6547
|
-
,
|
|
6548
|
-
,
|
|
6549
|
-
,
|
|
6550
|
-
,
|
|
6551
|
-
[9]
|
|
6552
|
-
],
|
|
6553
|
-
[, , "(?:594(?:[02-49]\\d|1[0-5]|5[6-9]|6[0-3]|80)|80[6-9]\\d\\d)\\d{4}", , , , "594101234"],
|
|
6554
|
-
[, , "(?:694(?:[0-249]\\d|3[0-8])|7093[0-3])\\d{4}", , , , "694201234"],
|
|
6555
|
-
[, , "80[0-5]\\d{6}", , , , "800012345"],
|
|
6556
|
-
[, , "8[129]\\d{7}", , , , "890123456"],
|
|
6557
|
-
[, , , , , , , , , [-1]],
|
|
6558
|
-
[, , , , , , , , , [-1]],
|
|
6559
|
-
[, , "9(?:(?:396|76\\d)\\d|476[0-6])\\d{4}", , , , "976012345"],
|
|
6560
|
-
"GF",
|
|
6561
|
-
594,
|
|
6562
|
-
"00",
|
|
6563
|
-
"0",
|
|
6539
|
+
GF: [, [
|
|
6564
6540
|
,
|
|
6565
6541
|
,
|
|
6566
|
-
"
|
|
6542
|
+
"(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",
|
|
6567
6543
|
,
|
|
6568
6544
|
,
|
|
6569
6545
|
,
|
|
6570
|
-
[[, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]|80[6-9]|9[47]"], "0$1"], [, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[89]"], "0$1"]],
|
|
6571
6546
|
,
|
|
6572
|
-
[, , , , , , , , , [-1]],
|
|
6573
6547
|
,
|
|
6574
6548
|
,
|
|
6575
|
-
[
|
|
6576
|
-
|
|
6577
|
-
,
|
|
6549
|
+
[9]
|
|
6550
|
+
], [, , "(?:59(?:4(?:[02-49]\\d|1[0-5]|5[6-9]|6[0-3]|80)|88\\d)|80[6-9]\\d\\d)\\d{4}", , , , "594101234"], [, , "(?:694(?:[0-249]\\d|3[0-8])|7093[0-3])\\d{4}", , , , "694201234"], [, , "80[0-5]\\d{6}", , , , "800012345"], [, , "8[129]\\d{7}", , , , "890123456"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "9(?:(?:396|76\\d)\\d|476[0-6])\\d{4}", , , , "976012345"], "GF", 594, "00", "0", , , "0", , , , [[, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]|80[6-9]|9[47]"], "0$1"], [
|
|
6578
6551
|
,
|
|
6579
|
-
|
|
6580
|
-
|
|
6552
|
+
"(\\d{3})(\\d{2})(\\d{2})(\\d{2})",
|
|
6553
|
+
"$1 $2 $3 $4",
|
|
6554
|
+
["[89]"],
|
|
6555
|
+
"0$1"
|
|
6556
|
+
]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
6581
6557
|
GG: [
|
|
6582
6558
|
,
|
|
6583
6559
|
[, , "(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?", , , , , , , [7, 9, 10], [6]],
|
|
@@ -6609,49 +6585,23 @@ var intl_tel_input_default = intlTelInput;
|
|
|
6609
6585
|
,
|
|
6610
6586
|
[, , , , , , , , , [-1]]
|
|
6611
6587
|
],
|
|
6612
|
-
GH: [
|
|
6588
|
+
GH: [, [, , "[235]\\d{8}|800\\d{5,6}", , , , , , , [8, 9], [7]], [
|
|
6613
6589
|
,
|
|
6614
|
-
[, , "(?:[235]\\d{3}|800)\\d{5}", , , , , , , [8, 9], [7]],
|
|
6615
|
-
[
|
|
6616
|
-
,
|
|
6617
|
-
,
|
|
6618
|
-
"3082[0-5]\\d{4}|3(?:0(?:[237]\\d|8[01])|[167](?:2[0-6]|7\\d|80)|2(?:2[0-5]|7\\d|80)|3(?:2[0-3]|7\\d|80)|4(?:2[013-9]|3[01]|7\\d|80)|5(?:2[0-7]|7\\d|80)|8(?:2[0-2]|7\\d|80)|9(?:[28]0|7\\d))\\d{5}",
|
|
6619
|
-
,
|
|
6620
|
-
,
|
|
6621
|
-
,
|
|
6622
|
-
"302345678",
|
|
6623
|
-
,
|
|
6624
|
-
,
|
|
6625
|
-
[9],
|
|
6626
|
-
[7]
|
|
6627
|
-
],
|
|
6628
|
-
[, , "(?:2(?:[0346-9]\\d|5[67])|5(?:[03-7]\\d|9[1-9]))\\d{6}", , , , "231234567", , , [9]],
|
|
6629
|
-
[, , "800\\d{5}", , , , "80012345", , , [8]],
|
|
6630
|
-
[, , , , , , , , , [-1]],
|
|
6631
|
-
[, , , , , , , , , [-1]],
|
|
6632
|
-
[, , , , , , , , , [-1]],
|
|
6633
|
-
[, , , , , , , , , [-1]],
|
|
6634
|
-
"GH",
|
|
6635
|
-
233,
|
|
6636
|
-
"00",
|
|
6637
|
-
"0",
|
|
6638
6590
|
,
|
|
6639
|
-
,
|
|
6640
|
-
"0",
|
|
6591
|
+
"3082[0-5]\\d{4}|3(?:0(?:[237]\\d|8[01])|[167](?:2[0-6]|7\\d|80)|2(?:2[0-5]|7\\d|80)|3(?:2[0-3]|7\\d|80)|4(?:2[013-9]|3[01]|7\\d|80)|5(?:2[0-7]|7\\d|80)|8(?:2[0-2]|7\\d|80)|9(?:[28]0|7\\d))\\d{5}",
|
|
6641
6592
|
,
|
|
6642
6593
|
,
|
|
6643
6594
|
,
|
|
6644
|
-
|
|
6645
|
-
[[, "(\\d{3})(\\d{5})", "$1 $2", ["8"], "0$1"], [, "(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[235]"], "0$1"]],
|
|
6646
|
-
[, , , , , , , , , [-1]],
|
|
6595
|
+
"302345678",
|
|
6647
6596
|
,
|
|
6648
6597
|
,
|
|
6649
|
-
[
|
|
6650
|
-
[
|
|
6598
|
+
[9],
|
|
6599
|
+
[7]
|
|
6600
|
+
], [, , "(?:2(?:[0346-9]\\d|5[67])|5(?:[03-7]\\d|9[1-9]))\\d{6}", , , , "231234567", , , [9]], [, , "800\\d{5,6}", , , , "80012345"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "GH", 233, "00", "0", , , "0", , , , [[, "(\\d{3})(\\d{4})", "$1 $2", ["[237]|8[0-2]"]], [, "(\\d{3})(\\d{5})", "$1 $2", ["8"], "0$1"], [, "(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2358]"], "0$1"]], [[, "(\\d{3})(\\d{5})", "$1 $2", ["8"], "0$1"], [, "(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2358]"], "0$1"]], [, , , , , , , , , [-1]], , , [
|
|
6651
6601
|
,
|
|
6652
6602
|
,
|
|
6653
|
-
|
|
6654
|
-
],
|
|
6603
|
+
"800\\d{5,6}"
|
|
6604
|
+
], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
6655
6605
|
GI: [, [, , "(?:[25]\\d|60)\\d{6}", , , , , , , [8]], [, , "2190[0-2]\\d{3}|2(?:0(?:[02]\\d|3[01])|16[24-9]|2[2-5]\\d)\\d{4}", , , , "20012345"], [, , "5251[0-4]\\d{3}|(?:5(?:[146-8]\\d\\d|250)|60(?:1[01]|6\\d))\\d{4}", , , , "57123456"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "GI", 350, "00", , , , , , , , [[, "(\\d{3})(\\d{5})", "$1 $2", ["2"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
6656
6606
|
GL: [, [
|
|
6657
6607
|
,
|
|
@@ -6705,7 +6655,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
6705
6655
|
,
|
|
6706
6656
|
[, , , , , , , , , [-1]]
|
|
6707
6657
|
],
|
|
6708
|
-
GP: [, [, , "
|
|
6658
|
+
GP: [, [, , "7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}", , , , , , , [9]], [, , "(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}", , , , "590201234"], [
|
|
6709
6659
|
,
|
|
6710
6660
|
,
|
|
6711
6661
|
"(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}",
|
|
@@ -6713,7 +6663,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
6713
6663
|
,
|
|
6714
6664
|
,
|
|
6715
6665
|
"690001234"
|
|
6716
|
-
], [, , "80\\d{
|
|
6666
|
+
], [, , "80[0-5]\\d{6}", , , , "800012345"], [, , "8[129]\\d{7}", , , , "810123456"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}", , , , "976012345"], "GP", 590, "00", "0", , , "0", , , , [[, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-79]|80[6-9]"], "0$1"], [, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], , [, , , , , , , , , [-1]], 1, , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
6717
6667
|
GQ: [, [, , "222\\d{6}|(?:3\\d|55|[89]0)\\d{7}", , , , , , , [9]], [
|
|
6718
6668
|
,
|
|
6719
6669
|
,
|
|
@@ -6746,10 +6696,10 @@ var intl_tel_input_default = intlTelInput;
|
|
|
6746
6696
|
"$1 $2 $3",
|
|
6747
6697
|
["1"]
|
|
6748
6698
|
]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
6749
|
-
GU: [, [, , "(?:[58]\\d\\d|671|900)\\d{7}", , , , , , , [10], [7]], [, , "671(?:2\\d\\d|3(?:00|3[39]|4[349]|55|6[26])|4(?:00|56|7[1-9]|8[02-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[235-9])|7(?:[0479]7|2[0167]|3[45]|8[7-9])|8(?:[2-57-9]8|6[478])|9(?:2[29]|6[79]|7[1279]|8[7-9]|9[
|
|
6699
|
+
GU: [, [, , "(?:[58]\\d\\d|671|900)\\d{7}", , , , , , , [10], [7]], [, , "671(?:2\\d\\d|3(?:00|3[39]|4[349]|55|6[26])|4(?:00|56|7[1-9]|8[02-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[235-9])|7(?:[0479]7|2[0167]|3[45]|8[7-9])|8(?:[2-57-9]8|6[478])|9(?:2[29]|6[79]|7[1279]|8[7-9]|9[16-9]))\\d{4}", , , , "6713001234", , , , [7]], [
|
|
6750
6700
|
,
|
|
6751
6701
|
,
|
|
6752
|
-
"671(?:2\\d\\d|3(?:00|3[39]|4[349]|55|6[26])|4(?:00|56|7[1-9]|8[02-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[235-9])|7(?:[0479]7|2[0167]|3[45]|8[7-9])|8(?:[2-57-9]8|6[478])|9(?:2[29]|6[79]|7[1279]|8[7-9]|9[
|
|
6702
|
+
"671(?:2\\d\\d|3(?:00|3[39]|4[349]|55|6[26])|4(?:00|56|7[1-9]|8[02-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[235-9])|7(?:[0479]7|2[0167]|3[45]|8[7-9])|8(?:[2-57-9]8|6[478])|9(?:2[29]|6[79]|7[1279]|8[7-9]|9[16-9]))\\d{4}",
|
|
6753
6703
|
,
|
|
6754
6704
|
,
|
|
6755
6705
|
,
|
|
@@ -7365,31 +7315,38 @@ var intl_tel_input_default = intlTelInput;
|
|
|
7365
7315
|
,
|
|
7366
7316
|
,
|
|
7367
7317
|
[7, 8, 9]
|
|
7368
|
-
], [, , "(?:1(?:0[0-8]|1\\d|2[014]|[
|
|
7369
|
-
KG: [
|
|
7370
|
-
,
|
|
7371
|
-
,
|
|
7372
|
-
"8\\d{9}|[235-9]\\d{8}",
|
|
7373
|
-
,
|
|
7374
|
-
,
|
|
7375
|
-
,
|
|
7376
|
-
,
|
|
7318
|
+
], [, , "(?:1(?:0[0-8]|1\\d|2[014]|30|4[0-3])|7\\d\\d)\\d{6}", , , , "712123456", , , [9]], [, , "800[02-8]\\d{5,6}", , , , "800223456", , , [9, 10]], [, , "900[02-9]\\d{5}", , , , "900223456", , , [9]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "KE", 254, "000", "0", , , "0", , , , [[, "(\\d{2})(\\d{5,7})", "$1 $2", ["[24-6]"], "0$1"], [, "(\\d{3})(\\d{6})", "$1 $2", ["[17]"], "0$1"], [, "(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[89]"], "0$1"]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
7319
|
+
KG: [
|
|
7377
7320
|
,
|
|
7321
|
+
[, , "8\\d{9}|[235-9]\\d{8}", , , , , , , [9, 10], [5, 6]],
|
|
7322
|
+
[, , "312(?:5[0-79]\\d|9(?:[0-689]\\d|7[0-24-9]))\\d{3}|(?:3(?:1(?:2[0-46-8]|3[1-9]|47|[56]\\d)|2(?:22|3[0-479]|6[0-7])|4(?:22|5[6-9]|6\\d)|5(?:22|3[4-7]|59|6\\d)|6(?:22|5[35-7]|6\\d)|7(?:22|3[468]|4[1-9]|59|[67]\\d)|9(?:22|4[1-8]|6\\d))|6(?:09|12|2[2-4])\\d)\\d{5}", , , , "312123456", , , [9], [5, 6]],
|
|
7323
|
+
[, , "312(?:58\\d|973)\\d{3}|(?:2(?:0[0-35]|2\\d)|5[0-24-7]\\d|600|7(?:[07]\\d|55)|88[08]|9(?:12|9[05-9]))\\d{6}", , , , "700123456", , , [9]],
|
|
7324
|
+
[, , "800\\d{6,7}", , , , "800123456"],
|
|
7325
|
+
[, , , , , , , , , [-1]],
|
|
7326
|
+
[, , , , , , , , , [-1]],
|
|
7327
|
+
[, , , , , , , , , [-1]],
|
|
7328
|
+
[, , , , , , , , , [-1]],
|
|
7329
|
+
"KG",
|
|
7330
|
+
996,
|
|
7331
|
+
"00",
|
|
7332
|
+
"0",
|
|
7378
7333
|
,
|
|
7379
|
-
[9, 10],
|
|
7380
|
-
[5, 6]
|
|
7381
|
-
], [, , "312(?:5[0-79]\\d|9(?:[0-689]\\d|7[0-24-9]))\\d{3}|(?:3(?:1(?:2[0-46-8]|3[1-9]|47|[56]\\d)|2(?:22|3[0-479]|6[0-7])|4(?:22|5[6-9]|6\\d)|5(?:22|3[4-7]|59|6\\d)|6(?:22|5[35-7]|6\\d)|7(?:22|3[468]|4[1-9]|59|[67]\\d)|9(?:22|4[1-8]|6\\d))|6(?:09|12|2[2-4])\\d)\\d{5}", , , , "312123456", , , [9], [5, 6]], [, , "312(?:58\\d|973)\\d{3}|(?:2(?:0[0-35]|2\\d)|5[0-24-7]\\d|600|7(?:[07]\\d|55)|88[08]|9(?:12|9[05-9]))\\d{6}", , , , "700123456", , , [9]], [, , "800\\d{6,7}", , , , "800123456"], [, , , , , , , , , [-1]], [
|
|
7382
7334
|
,
|
|
7335
|
+
"0",
|
|
7383
7336
|
,
|
|
7384
7337
|
,
|
|
7385
7338
|
,
|
|
7339
|
+
[[, "(\\d{4})(\\d{5})", "$1 $2", ["3(?:1[346]|[24-79])"], "0$1"], [, "(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235-79]|88"], "0$1"], [, "(\\d{3})(\\d{3})(\\d)(\\d{2,3})", "$1 $2 $3 $4", ["8"], "0$1"]],
|
|
7386
7340
|
,
|
|
7341
|
+
[, , , , , , , , , [-1]],
|
|
7387
7342
|
,
|
|
7388
7343
|
,
|
|
7344
|
+
[, , , , , , , , , [-1]],
|
|
7345
|
+
[, , , , , , , , , [-1]],
|
|
7389
7346
|
,
|
|
7390
7347
|
,
|
|
7391
|
-
[-1]
|
|
7392
|
-
],
|
|
7348
|
+
[, , , , , , , , , [-1]]
|
|
7349
|
+
],
|
|
7393
7350
|
KH: [
|
|
7394
7351
|
,
|
|
7395
7352
|
[, , "1\\d{9}|[1-9]\\d{7,8}", , , , , , , [8, 9, 10], [6, 7]],
|
|
@@ -7813,37 +7770,15 @@ var intl_tel_input_default = intlTelInput;
|
|
|
7813
7770
|
[8],
|
|
7814
7771
|
[6]
|
|
7815
7772
|
], [, , "6(?:[07-9]\\d|3[024]|6[0-25])\\d{5}", , , , "60123456", , , [8]], [, , "80(?:[0-2578]|9\\d)\\d{5}", , , , "80080002"], [, , "9(?:4[1568]|5[178])\\d{5}", , , , "94515151", , , [8]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "78[1-49]\\d{5}", , , , "78108780", , , [8]], "ME", 382, "00", "0", , , "0", , , , [[, "(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-9]"], "0$1"]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , "77[1-9]\\d{5}", , , , "77273012", , , [8]], , , [, , , , , , , , , [-1]]],
|
|
7816
|
-
MF: [
|
|
7817
|
-
,
|
|
7818
|
-
[, , "(?:590\\d|7090)\\d{5}|(?:69|[89]\\d)\\d{7}", , , , , , , [9]],
|
|
7819
|
-
[, , "590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}", , , , "590271234"],
|
|
7820
|
-
[, , "(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}", , , , "690001234"],
|
|
7821
|
-
[, , "80\\d{7}", , , , "800012345"],
|
|
7822
|
-
[, , "8[129]\\d{7}", , , , "810123456"],
|
|
7823
|
-
[, , , , , , , , , [-1]],
|
|
7824
|
-
[, , , , , , , , , [-1]],
|
|
7825
|
-
[, , "9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}", , , , "976012345"],
|
|
7826
|
-
"MF",
|
|
7827
|
-
590,
|
|
7828
|
-
"00",
|
|
7829
|
-
"0",
|
|
7830
|
-
,
|
|
7773
|
+
MF: [, [, , "7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}", , , , , , , [9]], [
|
|
7831
7774
|
,
|
|
7832
|
-
"0",
|
|
7833
7775
|
,
|
|
7776
|
+
"(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}",
|
|
7834
7777
|
,
|
|
7835
7778
|
,
|
|
7836
7779
|
,
|
|
7837
|
-
|
|
7838
|
-
|
|
7839
|
-
,
|
|
7840
|
-
,
|
|
7841
|
-
[, , , , , , , , , [-1]],
|
|
7842
|
-
[, , , , , , , , , [-1]],
|
|
7843
|
-
,
|
|
7844
|
-
,
|
|
7845
|
-
[, , , , , , , , , [-1]]
|
|
7846
|
-
],
|
|
7780
|
+
"590271234"
|
|
7781
|
+
], [, , "(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}", , , , "690001234"], [, , "80[0-5]\\d{6}", , , , "800012345"], [, , "8[129]\\d{7}", , , , "810123456"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}", , , , "976012345"], "MF", 590, "00", "0", , , "0", , , , , , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
7847
7782
|
MG: [, [, , "[23]\\d{8}", , , , , , , [9], [7]], [
|
|
7848
7783
|
,
|
|
7849
7784
|
,
|
|
@@ -8006,7 +7941,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8006
7941
|
,
|
|
8007
7942
|
"5002345678"
|
|
8008
7943
|
], [, , , , , , , , , [-1]], "MP", 1, "011", "1", , , "([2-9]\\d{6})$|1", "670$1", , 1, , , [, , , , , , , , , [-1]], , "670", [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
8009
|
-
MQ: [, [, , "
|
|
7944
|
+
MQ: [, [, , "7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}", , , , , , , [9]], [, , "(?:59(?:6(?:[03-7]\\d|1[05]|2[7-9]|8[0-39]|9[04-9])|89\\d)|80[6-9]\\d\\d|9(?:477[6-9]|767[4589]))\\d{4}", , , , "596301234"], [, , "(?:69[67]\\d\\d|7091[0-3])\\d{4}", , , , "696201234"], [, , "80[0-5]\\d{6}", , , , "800012345"], [, , "8[129]\\d{7}", , , , "810123456"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [
|
|
8010
7945
|
,
|
|
8011
7946
|
,
|
|
8012
7947
|
"9(?:397[0-3]|477[0-5]|76(?:6\\d|7[0-367]))\\d{4}",
|
|
@@ -8169,7 +8104,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8169
8104
|
], [, , "427[01]\\d{4}|(?:3(?:2[0-36-9]|3[0-368]|4[0-278]|5[0-24-8]|6[0-467]|7[1246-9]|8\\d|9[0-57])\\d|4(?:2[0-689]|[3-79]\\d|8[1-35689])|5(?:2[0-589]|[3468]\\d|5[0-489]|7[1-9]|9[23])|6(?:2[2-9]|3[1357-9]|[46]\\d|5[0-6]|7[0-35-9]|85|9[015-8])|7(?:[2579]\\d|3[03-68]|4[0-8]|6[5-9]|8[0-35-9])|8(?:[24][2-8]|3[2-5]|5[2-7]|6[2-589]|7[2-578]|[89][2-9])|9(?:0[57]|13|[25-7]\\d|[3489][0-8]))\\d{5}", , , , "323856789", , , [8, 9], [6, 7]], [
|
|
8170
8105
|
,
|
|
8171
8106
|
,
|
|
8172
|
-
"1(?:1888[689]|4400|8(?:47|8[27])[0-4])\\d{4}|1(?:0(?:[23568]\\d|4[0-6]|7[016-9]|9[0-8])|1(?:[1-5]\\d\\d|6(?:0[5-9]|[1-9]\\d)|7(?:[0-4]\\d|5[0-79]|6[02-4]))|(?:[269]\\d|[37][1-9]|4[235-9])\\d|5(?:31|9\\d\\d)|8(?:1[23]|[236]\\d|4[06]|5(?:46|[7-9])|7[016-9]|8[01]|9[0-8]))\\d{5}",
|
|
8107
|
+
"1(?:1888[689]|4400|8(?:47|8[27])[0-4])\\d{4}|1(?:0(?:[23568]\\d|4[0-6]|7[016-9]|9[0-8])|1(?:[1-5]\\d\\d|6(?:0[5-9]|[1-9]\\d)|7(?:[0-4]\\d|5[0-79]|6[02-4]|8[02-5]))|(?:[269]\\d|[37][1-9]|4[235-9])\\d|5(?:31|9\\d\\d)|8(?:1[23]|[236]\\d|4[06]|5(?:46|[7-9])|7[016-9]|8[01]|9[0-8]))\\d{5}",
|
|
8173
8108
|
,
|
|
8174
8109
|
,
|
|
8175
8110
|
,
|
|
@@ -9044,7 +8979,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
9044
8979
|
[
|
|
9045
8980
|
,
|
|
9046
8981
|
,
|
|
9047
|
-
"7215(?:4[2-8]|8[
|
|
8982
|
+
"7215(?:4[2-8]|8[39]|9[056])\\d{4}",
|
|
9048
8983
|
,
|
|
9049
8984
|
,
|
|
9050
8985
|
,
|
|
@@ -9054,7 +8989,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
9054
8989
|
,
|
|
9055
8990
|
[7]
|
|
9056
8991
|
],
|
|
9057
|
-
[, , "7215(?:1[02]|2\\d|5[034679]|8[
|
|
8992
|
+
[, , "7215(?:1[02]|2\\d|5[034679]|8[0-24-8])\\d{4}", , , , "7215205678", , , , [7]],
|
|
9058
8993
|
[, , "8(?:00|33|44|55|66|77|88)[2-9]\\d{6}", , , , "8002123456"],
|
|
9059
8994
|
[, , "900[2-9]\\d{6}", , , , "9002123456"],
|
|
9060
8995
|
[, , , , , , , , , [-1]],
|
|
@@ -9145,7 +9080,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
9145
9080
|
,
|
|
9146
9081
|
[, , , , , , , , , [-1]]
|
|
9147
9082
|
],
|
|
9148
|
-
TD: [, [, , "(?:22|
|
|
9083
|
+
TD: [, [, , "(?:22|[3689]\\d|77)\\d{6}", , , , , , , [8]], [, , "22(?:[37-9]0|5[0-5]|6[89])\\d{4}", , , , "22501234"], [, , "(?:3[01]|[69]\\d|77|8[5-7])\\d{6}", , , , "63012345"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "TD", 235, "00|16", , , , , , "00", , [[, "(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[236-9]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
9149
9084
|
TG: [, [, , "[279]\\d{7}", , , , , , , [8]], [
|
|
9150
9085
|
,
|
|
9151
9086
|
,
|
|
@@ -9172,7 +9107,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
9172
9107
|
5,
|
|
9173
9108
|
6,
|
|
9174
9109
|
7
|
|
9175
|
-
]], [, , "(?:3(?:1[3-5]|2[245]|3[12]|4[24-7]|5[25]|72)|4(?:46|74|87))\\d{6}", , , , "372123456", , , , [3, 5, 6, 7]], [, , "(?:33[03-9]|4(?:1[18]|4[02-479])|81[1-9])\\d{6}|(?:[09]\\d|1[0-27-9]|2[0-27]|3[08]|40|5[05]|66|7[
|
|
9110
|
+
]], [, , "(?:3(?:1[3-5]|2[245]|3[12]|4[24-7]|5[25]|72)|4(?:46|74|87))\\d{6}", , , , "372123456", , , , [3, 5, 6, 7]], [, , "(?:33[03-9]|4(?:1[18]|4[02-479])|81[1-9])\\d{6}|(?:[09]\\d|1[0-27-9]|2[0-27]|3[08]|40|5[05]|66|7[0157-9]|8[07-9])\\d{7}", , , , "917123456"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "TJ", 992, "810", , , , , , "8~10", , [[, "(\\d{6})(\\d)(\\d{2})", "$1 $2 $3", ["331", "3317"]], [, "(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["44[02-479]|[34]7"]], [
|
|
9176
9111
|
,
|
|
9177
9112
|
"(\\d{4})(\\d)(\\d{4})",
|
|
9178
9113
|
"$1 $2 $3",
|
|
@@ -9397,7 +9332,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
9397
9332
|
], [
|
|
9398
9333
|
,
|
|
9399
9334
|
,
|
|
9400
|
-
"(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-
|
|
9335
|
+
"(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}",
|
|
9401
9336
|
,
|
|
9402
9337
|
,
|
|
9403
9338
|
,
|
|
@@ -9409,7 +9344,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
9409
9344
|
], [
|
|
9410
9345
|
,
|
|
9411
9346
|
,
|
|
9412
|
-
"(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-
|
|
9347
|
+
"(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}",
|
|
9413
9348
|
,
|
|
9414
9349
|
,
|
|
9415
9350
|
,
|
package/build/js/data.js
CHANGED
package/build/js/data.min.js
CHANGED
package/build/js/intlTelInput.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* International Telephone Input v26.9.
|
|
2
|
+
* International Telephone Input v26.9.2
|
|
3
3
|
* https://github.com/jackocnr/intl-tel-input.git
|
|
4
4
|
* Licensed under the MIT license
|
|
5
5
|
*/
|
|
@@ -4401,7 +4401,7 @@ var factoryOutput = (() => {
|
|
|
4401
4401
|
attachUtils,
|
|
4402
4402
|
startedLoadingUtilsScript: false,
|
|
4403
4403
|
startedLoadingAutoCountry: false,
|
|
4404
|
-
version: "26.9.
|
|
4404
|
+
version: "26.9.2"
|
|
4405
4405
|
}
|
|
4406
4406
|
);
|
|
4407
4407
|
var intl_tel_input_default = intlTelInput;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* International Telephone Input v26.9.
|
|
2
|
+
* International Telephone Input v26.9.2
|
|
3
3
|
* https://github.com/jackocnr/intl-tel-input.git
|
|
4
4
|
* Licensed under the MIT license
|
|
5
5
|
*/
|
|
@@ -31,7 +31,7 @@ var factoryOutput=(()=>{var j=Object.defineProperty;var vt=Object.getOwnProperty
|
|
|
31
31
|
<svg width="256" height="256" viewBox="0 0 512 512" class="iti__globe-svg">
|
|
32
32
|
<path d="M508 213a240 240 0 0 0-449-87l-2 5-2 5c-8 14-13 30-17 46a65 65 0 0 1 56 4c16-10 35-19 56-27l9-3c-6 23-10 48-10 74h-16l4 6c3 4 5 8 6 13h6c0 22 3 44 8 65l2 10-25-10-4 5 12 18 9 3 6 2 8 3 9 26 1 2 16-7h1l-5-13-1-2c24 6 49 9 75 10v26l11 10 7 7v-30l1-13c22 0 44-3 65-8l10-2-21 48-1 1a317 317 0 0 1-14 23l-21 5h-2c6 16 7 33 1 50a240 240 0 0 0 211-265m-401-56-11 6c19-44 54-79 98-98-11 20-21 44-29 69-21 6-40 15-58 23m154 182v4c-29-1-57-6-81-13-7-25-12-52-13-81h94zm0-109h-94c1-29 6-56 13-81 24-7 52-12 81-13zm0-112c-22 1-44 4-65 8l-10 2 12-30 9-17 1-2a332 332 0 0 1 13-23c13-4 26-6 40-7zm187 69 6 4c4 12 6 25 6 38v1h-68c-1-26-4-51-10-74l48 20 1 1 14 8zm-14-44 10 20c-20-11-43-21-68-29-8-25-18-49-29-69 37 16 67 44 87 78M279 49h1c13 1 27 3 39 7l14 23 1 2a343 343 0 0 1 12 26l2 5 6 16c-23-6-48-9-74-10h-1zm0 87h1c29 1 56 6 81 13 7 24 12 51 12 80v1h-94zm2 207h-2v-94h95c-1 29-6 56-13 81-24 7-51 12-80 13m86 60-20 10c11-20 21-43 29-68 25-8 48-18 68-29-16 37-43 67-77 87m87-115-7 5-16 9-2 1a337 337 0 0 1-47 21c6-24 9-49 10-75h68c0 13-2 27-6 39"/>
|
|
33
33
|
<path d="m261 428-2-2-22-21a40 40 0 0 0-32-11h-1a37 37 0 0 0-18 8l-1 1-4 2-2 2-5 4c-9-3-36-31-47-44s-32-45-34-55l3-2a151 151 0 0 0 11-9v-1a39 39 0 0 0 5-48l-3-3-11-19-3-4-5-7h-1l-3-3-4-3-5-2a35 35 0 0 0-16-3h-5c-4 1-14 5-24 11l-4 2-4 3-4 2c-9 8-17 17-18 27a380 380 0 0 0 212 259h3c12 0 25-10 36-21l10-12 6-11a39 39 0 0 0-8-40"/>
|
|
34
|
-
</svg>`;var R=class n{constructor(t,e,i){this.#h=null;this.#I=null;this.#n=null;this.#l=null;this.highlightedItem=null;t.dataset.intlTelInputId=i.toString(),this.telInput=t,this.#t=e,this.#e=i,this.hadInitialPlaceholder=!!t.getAttribute("placeholder"),this.#m=!!this.telInput.closest("[dir=rtl]"),this.#t.separateDialCode&&(this.#u=this.telInput.style.paddingLeft)}#t;#e;#m;#u;#c;#h;#I;#b;#i;#s;#r;#o;#d;#n;#l;static validateInput(t){let e=t?.tagName;if(!(!!t&&typeof t=="object"&&e==="INPUT"&&typeof t.setAttribute=="function")){let s=Object.prototype.toString.call(t);throw new TypeError(`The first argument must be an HTMLInputElement, not ${s}`)}}generateMarkup(t){this.#c=t,this.telInput.classList.add("iti__tel-input"),this.telInput.hasAttribute("autocomplete")||this.telInput.setAttribute("autocomplete","tel"),this.telInput.hasAttribute("inputmode")||this.telInput.setAttribute("inputmode","tel");let e=this.#E();this.#y(e),e.appendChild(this.telInput),this.#R(),this.#x(e)}#E(){let{allowDropdown:t,showFlags:e,containerClass:i,useFullscreenPopup:s}=this.#t,o=V({iti:!0,"iti--allow-dropdown":t,"iti--show-flags":e,"iti--inline-dropdown":!s,[i]:!!i}),l=f("div",{class:o});return this.#m&&l.setAttribute("dir","ltr"),this.telInput.before(l),l}#y(t){let{allowDropdown:e,separateDialCode:i,showFlags:s}=this.#t;if(e||s||i){this.countryContainer=f("div",{class:`iti__country-container ${h.V_HIDE}`},t),e?(this.selectedCountry=f("button",{type:"button",class:"iti__selected-country",[p.EXPANDED]:"false",[p.LABEL]:this.#t.i18n.noCountrySelected,[p.HASPOPUP]:"dialog",[p.CONTROLS]:`iti-${this.#e}__dropdown-content`},this.countryContainer),this.telInput.disabled&&this.selectedCountry.setAttribute("disabled","true")):this.selectedCountry=f("div",{class:"iti__selected-country"},this.countryContainer);let o=f("div",{class:"iti__selected-country-primary"},this.selectedCountry);this.selectedCountryInner=f("div",{class:h.FLAG},o),e&&(this.#i=f("div",{class:"iti__arrow",[p.HIDDEN]:"true"},o)),i&&(this.#b=f("div",{class:"iti__selected-dial-code"},this.selectedCountry)),e&&this.#a()}}#C(){let{fixDropdownWidth:t}=this.#t;if(t&&!this.#s.style.width){let e=this.telInput.offsetWidth;e>0&&(this.#s.style.width=`${e}px`)}}#a(){let{fixDropdownWidth:t,useFullscreenPopup:e,countrySearch:i,i18n:s,dropdownContainer:o,containerClass:l}=this.#t,r=t?"":"iti--flexible-dropdown-width";if(this.#s=f("div",{id:`iti-${this.#e}__dropdown-content`,class:`iti__dropdown-content ${h.HIDE} ${r}`,role:"dialog",[p.MODAL]:"true"}),this.#m&&this.#s.setAttribute("dir","rtl"),i&&this.#p(),this.countryList=f("ul",{class:"iti__country-list",id:`iti-${this.#e}__country-listbox`,role:"listbox",[p.LABEL]:s.countryListAriaLabel},this.#s),this.#H(),i&&this.#D(),e||(this.#C(),this.#I=this.#U(),i&&(this.#s.style.height=`${this.#I}px`)),o){let a=V({iti:!0,"iti--container":!0,"iti--fullscreen-popup":e,"iti--inline-dropdown":!e,[l]:!!l});this.#n=f("div",{class:a}),this.#n.appendChild(this.#s)}else this.countryContainer.appendChild(this.#s)}#p(){let{i18n:t,searchInputClass:e}=this.#t,i=f("div",{class:"iti__search-input-wrapper"},this.#s);this.#r=f("span",{class:"iti__search-icon",[p.HIDDEN]:"true"},i),this.#r.innerHTML=yt(),this.searchInput=f("input",{id:`iti-${this.#e}__search-input`,type:"search",class:`iti__search-input ${e}`,placeholder:t.searchPlaceholder,role:"combobox",[p.EXPANDED]:"true",[p.LABEL]:t.searchPlaceholder,[p.CONTROLS]:`iti-${this.#e}__country-listbox`,[p.AUTOCOMPLETE]:"list",autocomplete:"off"},i),this.searchClearButton=f("button",{type:"button",class:`iti__search-clear ${h.HIDE}`,[p.LABEL]:t.clearSearchAriaLabel,tabindex:"-1"},i),this.searchClearButton.innerHTML=Ct(this.#e),this.#d=f("span",{class:"iti__a11y-text"},this.#s),this.#o=f("div",{class:`iti__no-results ${h.HIDE}`,[p.HIDDEN]:"true"},this.#s),this.#o.textContent=t.searchEmptyState}#R(){this.countryContainer&&(this.#N(),this.countryContainer.classList.remove(h.V_HIDE))}#x(t){let{hiddenInput:e}=this.#t;if(e){let i=this.telInput.getAttribute("name")||"",s=e(i);if(s.phone){let o=this.telInput.form?.querySelector(`input[name="${s.phone}"]`);o?this.hiddenInput=o:(this.hiddenInput=f("input",{type:"hidden",name:s.phone}),t.appendChild(this.hiddenInput))}if(s.country){let o=this.telInput.form?.querySelector(`input[name="${s.country}"]`);o?this.hiddenInputCountry=o:(this.hiddenInputCountry=f("input",{type:"hidden",name:s.country}),t.appendChild(this.hiddenInputCountry))}}}#H(){let t=document.createDocumentFragment();for(let e=0;e<this.#c.length;e++){let i=this.#c[e],s=V({[h.COUNTRY_ITEM]:!0}),o=f("li",{id:`iti-${this.#e}__item-${i.iso2}`,class:s,tabindex:"-1",role:"option",[p.SELECTED]:"false"});o.dataset.dialCode=i.dialCode,o.dataset.countryCode=i.iso2,i.nodeById[this.#e]=o,this.#t.showFlags&&f("div",{class:`${h.FLAG} iti__${i.iso2}`},o);let l=f("span",{class:"iti__country-name"},o);l.textContent=`${i.name} `;let r=f("span",{class:"iti__dial-code"},l);this.#m&&r.setAttribute("dir","ltr"),r.textContent=`(+${i.dialCode})`,t.appendChild(o)}this.countryList.appendChild(t)}#N(){if(this.selectedCountry){let t=this.#t.separateDialCode?L.SANE_SELECTED_WITH_DIAL_WIDTH:L.SANE_SELECTED_NO_DIAL_WIDTH,i=(this.selectedCountry.offsetWidth||this.#k()||t)+L.INPUT_PADDING_EXTRA_LEFT;this.telInput.style.paddingLeft=`${i}px`}}static#A(){let t;try{t=window.top.document.body}catch{t=document.body}return t}#k(){if(this.telInput.parentNode){let t=n.#A(),e=this.telInput.parentNode.cloneNode(!1);e.style.visibility="hidden",t.appendChild(e);let i=this.countryContainer.cloneNode();e.appendChild(i);let s=this.selectedCountry.cloneNode(!0);i.appendChild(s);let o=s.offsetWidth;return t.removeChild(e),o}return 0}#U(){let t=n.#A();this.#s.classList.remove(h.HIDE);let e=f("div",{class:"iti iti--inline-dropdown"});e.appendChild(this.#s),e.style.visibility="hidden",t.appendChild(e);let i=this.#s.offsetHeight;return t.removeChild(e),e.style.visibility="",this.#s.classList.add(h.HIDE),i>0?i:L.SANE_DROPDOWN_HEIGHT}#D(){let{i18n:t}=this.#t,e=this.countryList.childElementCount;this.#d.textContent=t.searchSummaryAria(e)}filterCountriesByQuery(t){let e;t===""?e=this.#c:e=ft(this.#c,t),this.#W(e)}#v(){let t=this.searchInput.value.trim();this.filterCountriesByQuery(t),this.searchInput.value?this.searchClearButton.classList.remove(h.HIDE):this.searchClearButton.classList.add(h.HIDE)}handleSearchChange(){this.#h&&clearTimeout(this.#h),this.#h=setTimeout(()=>{this.#v(),this.#h=null},W.SEARCH_DEBOUNCE_MS)}handleSearchClear(){this.searchInput.value="",this.searchInput.focus(),this.#v()}scrollCountryListToItem(t){let e=this.countryList,i=e.getBoundingClientRect(),s=t.getBoundingClientRect(),o=s.top-i.top+e.scrollTop;s.top<i.top?e.scrollTop=o:s.bottom>i.bottom&&(e.scrollTop=o-i.height+s.height)}highlightListItem(t,e){let i=this.highlightedItem;if(i&&i.classList.remove(h.HIGHLIGHT),this.highlightedItem=t,this.highlightedItem){if(this.highlightedItem.classList.add(h.HIGHLIGHT),this.#t.countrySearch){let s=this.highlightedItem.getAttribute("id")||"";this.searchInput.setAttribute(p.ACTIVE_DESCENDANT,s)}e&&this.highlightedItem.focus()}}handleUpDownKey(t){let e=t===C.ARROW_UP?this.highlightedItem?.previousElementSibling:this.highlightedItem?.nextElementSibling;!e&&this.countryList.childElementCount>1&&(e=t===C.ARROW_UP?this.countryList.lastElementChild:this.countryList.firstElementChild),e&&(this.scrollCountryListToItem(e),this.highlightListItem(e,!1))}#T(t){if(this.#l&&this.#l.dataset.countryCode!==t&&(this.#l.setAttribute(p.SELECTED,"false"),this.#l.querySelector(".iti__country-check")?.remove(),this.#l=null),t&&!this.#l){let e=this.countryList.querySelector(`[data-country-code="${t}"]`);if(e){e.setAttribute(p.SELECTED,"true");let i=f("span",{class:"iti__country-check",[p.HIDDEN]:"true"},e);i.innerHTML=gt(),this.#l=e}}}#W(t){this.countryList.replaceChildren();let e=!0;for(let i of t){let s=i.nodeById[this.#e];s&&(this.countryList.appendChild(s),e&&(this.highlightListItem(s,!1),e=!1))}e?(this.highlightListItem(null,!1),this.#o&&this.#o.classList.remove(h.HIDE)):this.#o&&this.#o.classList.add(h.HIDE),this.countryList.scrollTop=0,this.#D()}destroy(){this.telInput.iti=void 0,delete this.telInput.dataset.intlTelInputId,this.#t.separateDialCode&&(this.telInput.style.paddingLeft=this.#u);let t=this.telInput.parentNode;t.before(this.telInput),t.remove(),this.telInput=null,this.countryContainer=null,this.selectedCountry=null,this.selectedCountryInner=null,this.searchInput=null,this.searchClearButton=null,this.countryList=null,this.hiddenInput=null,this.hiddenInputCountry=null,this.highlightedItem=null,this.#b=null,this.#i=null,this.#s=null,this.#r=null,this.#o=null,this.#d=null,this.#n=null,this.#l=null;for(let e of this.#c)delete e.nodeById[this.#e];this.#c=null}openDropdown(){let{countrySearch:t,dropdownAlwaysOpen:e,dropdownContainer:i}=this.#t;if(this.#C(),i)this.#B();else{let s=this.#S(),o=this.telInput.offsetHeight+L.DROPDOWN_MARGIN;s?this.#s.style.top=`${o}px`:this.#s.style.bottom=`${o}px`}if(this.#s.classList.remove(h.HIDE),this.selectedCountry.setAttribute(p.EXPANDED,"true"),t){let s=this.countryList.firstElementChild;s&&(this.highlightListItem(s,!1),this.countryList.scrollTop=0),e||this.searchInput.focus()}this.#i.classList.add(h.ARROW_UP)}closeDropdown(){let{countrySearch:t,dropdownContainer:e}=this.#t;this.#s.classList.add(h.HIDE),this.selectedCountry.setAttribute(p.EXPANDED,"false"),t&&(this.searchInput.removeAttribute(p.ACTIVE_DESCENDANT),this.highlightedItem&&(this.highlightedItem.classList.remove(h.HIGHLIGHT),this.highlightedItem=null)),this.#i.classList.remove(h.ARROW_UP),e?(this.#n.remove(),this.#n.style.top="",this.#n.style.bottom="",this.#n.style.paddingLeft="",this.#n.style.paddingRight=""):(this.#s.style.top="",this.#s.style.bottom="")}#S(){if(this.#t.dropdownAlwaysOpen)return!0;let t=this.telInput.getBoundingClientRect(),e=t.top,i=window.innerHeight-t.bottom;return i>=this.#I||i>=e}#B(){let{dropdownContainer:t,useFullscreenPopup:e}=this.#t;if(e){if(window.innerWidth>=L.NARROW_VIEWPORT_WIDTH){let i=this.telInput.getBoundingClientRect();this.#n.style.paddingLeft=`${i.left}px`,this.#n.style.paddingRight=`${window.innerWidth-i.right}px`}}else{let i=this.telInput.getBoundingClientRect();this.#n.style.left=`${i.left}px`,this.#S()?this.#n.style.top=`${i.bottom+L.DROPDOWN_MARGIN}px`:(this.#n.style.top="unset",this.#n.style.bottom=`${window.innerHeight-i.top+L.DROPDOWN_MARGIN}px`)}t.appendChild(this.#n)}isDropdownClosed(){return this.#s.classList.contains(h.HIDE)}setCountry(t){let{allowDropdown:e,showFlags:i,separateDialCode:s,i18n:o}=this.#t,{name:l,dialCode:r,iso2:a=""}=t;if(e&&this.#T(a),this.selectedCountry){let c=a&&i?`${h.FLAG} iti__${a}`:`${h.FLAG} ${h.GLOBE}`,d,m,g;a?(m=l,d=o.selectedCountryAriaLabel.replace("${countryName}",l).replace("${dialCode}",`+${r}`),g=i?"":J()):(m=o.noCountrySelected,d=o.noCountrySelected,g=J()),this.selectedCountryInner.className=c,this.selectedCountry.setAttribute("title",m),this.selectedCountry.setAttribute(p.LABEL,d),this.selectedCountryInner.innerHTML=g}if(s){let c=r?`+${r}`:"";this.#b.textContent=c,this.#N()}}};var It=n=>{let{onlyCountries:t,excludeCountries:e}=n;return t?.length?P.filter(i=>t.includes(i.iso2)):e?.length?P.filter(i=>!e.includes(i.iso2)):P},bt=(n,t)=>{let{countryNameLocale:e,i18n:i}=t,s;try{typeof Intl<"u"&&typeof Intl.DisplayNames=="function"?s=new Intl.DisplayNames(e,{type:"region"}):s=null}catch(o){console.error(o),s=null}for(let o of n)o.name=i[o.iso2]||s?.of(o.iso2.toUpperCase())||""},Et=n=>{let t=new Set,e=0,i={},s=(l,r)=>{if(!l||!r)return;r.length>e&&(e=r.length),i.hasOwnProperty(r)||(i[r]=[]);let a=i[r];a.includes(l)||a.push(l)},o=[...n].sort((l,r)=>l.priority-r.priority);for(let l of o){t.has(l.dialCode)||t.add(l.dialCode);for(let r=1;r<l.dialCode.length;r++){let a=l.dialCode.substring(0,r);s(l.iso2,a)}if(s(l.iso2,l.dialCode),l.areaCodes){let r=i[l.dialCode][0];for(let a of l.areaCodes){for(let c=1;c<a.length;c++){let d=a.substring(0,c),m=l.dialCode+d;s(r,m),s(l.iso2,m)}s(l.iso2,l.dialCode+a)}}}return{dialCodes:t,dialCodeMaxLen:e,dialCodeToIso2Map:i}},Lt=(n,t)=>{let{countryOrder:e}=t;n.sort((i,s)=>{if(e){let o=e.indexOf(i.iso2),l=e.indexOf(s.iso2),r=o>-1,a=l>-1;if(r||a)return r&&a?o-l:r?-1:1}return i.name.localeCompare(s.name)})},Nt=n=>{for(let t of n)t.normalisedName=U(t.name),t.initials=t.normalisedName.split(/[^a-z]/).map(e=>e[0]).join(""),t.dialCodePlus=`+${t.dialCode}`};var $t=new Set(["800","808","870","881","882","883","888","979"]),Z=n=>{let t=D(n).slice(0,3);return n.startsWith("+")&&$t.has(t)};var tt=(n,t,e,i)=>{let s=n;if(e&&t){let o=`+${i.dialCode}`,l=s[o.length]===" "||s[o.length]==="-"?o.length+1:o.length;s=s.substring(l)}return s},wt=(n,t,e,i,s)=>{let o=e?e.formatNumberAsYouType(n,i.iso2):n,{dialCode:l}=i;return s&&t.charAt(0)!=="+"&&o.includes(`+${l}`)?(o.split(`+${l}`)[1]||"").trim():o};var At=(n,t,e,i)=>{if(e===0&&!i)return 0;let s=0;for(let o=0;o<t.length;o++){if(/[+0-9]/.test(t[o])&&s++,s===n&&!i)return o+1;if(i&&s===n+1)return o}return t.length};var Ft=new Set(["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"]),et=n=>{let t=D(n);if(t.startsWith(B.NANP)&&t.length>=4){let e=t.substring(1,4);return Ft.has(e)}return!1};var Y=class{#t;constructor(t){t&&this.#e(t)}#e(t){/[\u0660-\u0669]/.test(t)?this.#t="arabic-indic":/[\u06F0-\u06F9]/.test(t)?this.#t="persian":this.#t="ascii"}denormalise(t){if(!this.#t||this.#t==="ascii")return t;let e=this.#t==="arabic-indic"?1632:1776;return t.replace(/[0-9]/g,i=>String.fromCharCode(e+Number(i)))}normalise(t){if(!t)return"";if(this.#e(t),this.#t==="ascii")return t;let e=this.#t==="arabic-indic"?1632:1776,i=this.#t==="arabic-indic"?/[\u0660-\u0669]/g:/[\u06F0-\u06F9]/g;return t.replace(i,s=>String.fromCharCode(48+(s.charCodeAt(0)-e)))}isAscii(){return!this.#t||this.#t==="ascii"}};var Gt=0,x=class n{#t;#e;#m;#u;#c;#h;#I;#b;#i;#s;#r;#o;#d;#n;#l;#E;#y;#C;constructor(t,e={}){this.id=Gt++,R.validateInput(t);let i=ct(e);this.#e={...G,...i},dt(this.#e),ht(this.#e),this.#t=new R(t,this.#e,this.id),this.#m=pt(),this.#n=new Y(t.value),this.promise=this.#R(this.#e),this.#u=It(this.#e);let{dialCodes:s,dialCodeMaxLen:o,dialCodeToIso2Map:l}=Et(this.#u);this.#I=s,this.#c=o,this.#h=l,this.#b=new Map(this.#u.map(r=>[r.iso2,r])),this.#x()}#a(){let t=this.#t.telInput.value.trim();return this.#n.normalise(t)}#p(t){this.#t.telInput.value=this.#n.denormalise(t)}#R(t){let{initialCountry:e,geoIpLookup:i,loadUtils:s}=t,o=e===_.AUTO&&!!i,l=!!s&&!u.utils,r;o?r=new Promise((c,d)=>{this.#l=c,this.#E=d}):(r=Promise.resolve(void 0),this.#l=()=>{},this.#E=()=>{});let a;return l?a=new Promise((c,d)=>{this.#y=c,this.#C=d}):(a=Promise.resolve(void 0),this.#y=()=>{},this.#C=()=>{}),Promise.all([r,a]).then(()=>{})}#x(){this.#i=null,this.#o=new AbortController,this.#H(),this.#t.generateMarkup(this.#u),this.#N(),this.#A(),this.#D(),this.#e.dropdownAlwaysOpen&&this.#_()}#H(){bt(this.#u,this.#e),Lt(this.#u,this.#e),Nt(this.#u)}#N(t=!1){let e=this.#t.telInput.getAttribute("value"),i=this.#n.normalise(e),s=this.#a(),l=i&&i.startsWith("+")&&(!s||!s.startsWith("+"))?i:s,r=this.#P(l),a=et(l),{initialCountry:c,geoIpLookup:d}=this.#e,g=c===_.AUTO&&d&&!t,N=O(c);r?a?N?this.#g(c):g||this.#g(st.ISO2):this.#$(l):N?this.#g(c):g||this.#g(""),l&&this.#w(l)}#A(){this.#W(),this.#e.allowDropdown&&this.#U(),(this.#t.hiddenInput||this.#t.hiddenInputCountry)&&this.#t.telInput.form&&this.#k()}#k(){let t=()=>{this.#t.hiddenInput&&(this.#t.hiddenInput.value=this.getNumber()),this.#t.hiddenInputCountry&&(this.#t.hiddenInputCountry.value=this.#i?.iso2||"")};this.#t.telInput.form?.addEventListener("submit",t,{signal:this.#o.signal})}#U(){let t=this.#o.signal,e=l=>{this.#t.isDropdownClosed()?this.#t.telInput.focus():l.preventDefault()},i=this.#t.telInput.closest("label");i&&i.addEventListener("click",e,{signal:t});let s=()=>{this.#t.isDropdownClosed()&&!this.#t.telInput.disabled&&!this.#t.telInput.readOnly&&this.#_()};this.#t.selectedCountry.addEventListener("click",s,{signal:t});let o=l=>{let r=[C.ARROW_UP,C.ARROW_DOWN,C.SPACE,C.ENTER];this.#t.isDropdownClosed()&&r.includes(l.key)&&(l.preventDefault(),l.stopPropagation(),this.#_()),l.key===C.TAB&&this.#L()};this.#t.countryContainer.addEventListener("keydown",o,{signal:t})}#D(){let{loadUtils:t,initialCountry:e,geoIpLookup:i}=this.#e;if(t&&!u.utils){let o=()=>{u.attachUtils(t)?.catch(()=>{})};u.documentReady()?o():window.addEventListener("load",o,{signal:this.#o.signal})}else this.#y();e===_.AUTO&&i&&(this.#i?.iso2?this.#l():this.#v())}#v(){if(u.autoCountry)this.#X();else if(this.#t.selectedCountryInner.classList.add(h.LOADING),!u.startedLoadingAutoCountry&&(u.startedLoadingAutoCountry=!0,typeof this.#e.geoIpLookup=="function")){let t=(i="")=>{this.#t.selectedCountryInner.classList.remove(h.LOADING);let s=i.toLowerCase();O(s)?(u.autoCountry=s,setTimeout(()=>n.forEachInstance("handleAutoCountry"))):n.forEachInstance("handleAutoCountryFailure")},e=()=>{this.#t.selectedCountryInner.classList.remove(h.LOADING),n.forEachInstance("handleAutoCountryFailure")};this.#e.geoIpLookup(t,e)}}#T(){this.#_(),this.#t.searchInput.value="+",this.#t.filterCountriesByQuery("")}#W(){this.#S(),this.#B(),this.#Q()}#S(){let{strictMode:t,formatAsYouType:e,separateDialCode:i,allowDropdown:s,countrySearch:o}=this.#e,l=!1;A.ALPHA_UNICODE.test(this.#a())&&(l=!0);let r=a=>{let c=this.#a();if(this.#m&&a?.data==="+"&&i&&s&&o){let I=this.#t.telInput.selectionStart||0,v=c.substring(0,I-1),w=c.substring(I);this.#p(v+w),this.#T();return}this.#$(c)&&this.#M();let d=a?.data&&A.NON_PLUS_NUMERIC.test(a.data),m=a?.inputType===z.PASTE&&c;d||m&&!t?l=!0:A.NON_PLUS_NUMERIC.test(c)||(l=!1);let g=a?.detail&&a.detail.isSetNumber,N=this.#n.isAscii();if(e&&!l&&!g&&N){let I=this.#t.telInput.selectionStart||0,w=c.substring(0,I).replace(A.NON_PLUS_NUMERIC_GLOBAL,"").length,T=a?.inputType===z.DELETE_FWD,y=this.#f(),S=wt(y,c,u.utils,this.#i??{},i),E=At(w,S,I,T);this.#p(S),this.#t.telInput.setSelectionRange(E,E)}if(i&&c.startsWith("+")&&this.#i?.dialCode){let I=tt(c,!0,i,this.#i??{});this.#p(I)}};this.#t.telInput.addEventListener("input",r,{signal:this.#o.signal})}#B(){let{strictMode:t,separateDialCode:e,allowDropdown:i,countrySearch:s}=this.#e;if(t||e){let o=l=>{if(l.key&&l.key.length===1&&!l.altKey&&!l.ctrlKey&&!l.metaKey){if(e&&i&&s&&l.key==="+"){l.preventDefault(),this.#T();return}if(t){let r=this.#a(),c=!r.startsWith("+")&&this.#t.telInput.selectionStart===0&&l.key==="+",d=this.#n.normalise(l.key),m=/^[0-9]$/.test(d),g=e?m:c||m,N=this.#t.telInput,I=N.selectionStart,v=N.selectionEnd,w=r.slice(0,I),T=r.slice(v),y=w+l.key+T,S=this.#f(y),E=!1;u.utils&&this.#s&&(E=u.utils.getCoreNumber(S,this.#i?.iso2).length>this.#s);let Dt=this.#G(S)!==null;(!g||E&&!Dt&&!c)&&l.preventDefault()}}};this.#t.telInput.addEventListener("keydown",o,{signal:this.#o.signal})}}#Q(){if(this.#e.strictMode){let t=e=>{e.preventDefault();let i=this.#t.telInput,s=i.selectionStart,o=i.selectionEnd,l=this.#a(),r=l.slice(0,s),a=l.slice(o),c=this.#i?.iso2,d=e.clipboardData.getData("text"),m=this.#n.normalise(d),g=s===0&&o>0,N=!l.startsWith("+")||g,I=m.replace(A.NON_PLUS_NUMERIC_GLOBAL,""),v=I.startsWith("+"),w=I.replace(/\+/g,""),T=v&&N?`+${w}`:w,y=r+T+a;if(y.length>5){let E=u.utils.getCoreNumber(y,c);for(;E.length===0&&y.length>0;)y=y.slice(0,-1),E=u.utils.getCoreNumber(y,c);if(!E)return;if(this.#s&&E.length>this.#s)if(i.selectionEnd===l.length){let it=E.length-this.#s;y=y.slice(0,y.length-it)}else return}this.#p(y);let S=s+T.length;i.setSelectionRange(S,S),i.dispatchEvent(new InputEvent("input",{bubbles:!0}))};this.#t.telInput.addEventListener("paste",t,{signal:this.#o.signal})}}#J(t){let e=Number(this.#t.telInput.getAttribute("maxlength"));return e&&t.length>e?t.substring(0,e):t}#O(t,e={}){let i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:e});this.#t.telInput.dispatchEvent(i)}#_(){let{dropdownContainer:t,useFullscreenPopup:e}=this.#e;if(this.#d=new AbortController,this.#t.openDropdown(),!e&&t){let i=()=>this.#L();window.addEventListener("scroll",i,{signal:this.#d.signal})}this.#Z(),this.#O(H.OPEN_COUNTRY_DROPDOWN)}#Z(){let t=this.#d.signal;this.#tt(t),this.#et(t),this.#e.dropdownAlwaysOpen||this.#it(t),this.#st(t),this.#e.countrySearch&&this.#nt(t)}#tt(t){let e=i=>{let s=i.target?.closest(`.${h.COUNTRY_ITEM}`);s&&this.#t.highlightListItem(s,!1)};this.#t.countryList.addEventListener("mouseover",e,{signal:t})}#et(t){let e=i=>{let s=i.target?.closest(`.${h.COUNTRY_ITEM}`);s&&this.#Y(s)};this.#t.countryList.addEventListener("click",e,{signal:t})}#it(t){let e=i=>{!!i.target.closest(`#iti-${this.id}__dropdown-content`)||this.#L()};setTimeout(()=>{document.documentElement.addEventListener("click",e,{signal:t})},0)}#st(t){let e="",i=null,s=o=>{[C.ARROW_UP,C.ARROW_DOWN,C.ENTER,C.ESC].includes(o.key)&&(o.preventDefault(),o.stopPropagation(),o.key===C.ARROW_UP||o.key===C.ARROW_DOWN?this.#t.handleUpDownKey(o.key):o.key===C.ENTER&&!o.isComposing?this.#lt():o.key===C.ESC&&(this.#L(),this.#t.selectedCountry.focus())),!this.#e.countrySearch&&A.HIDDEN_SEARCH_CHAR.test(o.key)&&(o.stopPropagation(),i&&clearTimeout(i),e+=o.key.toLowerCase(),this.#ot(e),i=setTimeout(()=>{e=""},W.HIDDEN_SEARCH_RESET_MS))};document.addEventListener("keydown",s,{signal:t})}#nt(t){this.#t.searchInput.addEventListener("input",()=>this.#t.handleSearchChange(),{signal:t}),this.#t.searchClearButton.addEventListener("click",()=>this.#t.handleSearchClear(),{signal:t})}#ot(t){let e=mt(this.#u,t);if(e){let i=e.nodeById[this.id];this.#t.highlightListItem(i,!1),this.#t.scrollCountryListToItem(i)}}#lt(){this.#t.highlightedItem&&this.#Y(this.#t.highlightedItem)}#w(t){let{formatOnDisplay:e,nationalMode:i,separateDialCode:s}=this.#e,o=t;if(e&&u.utils&&this.#i){let l=Z(t),r=i&&!l||!o.startsWith("+")&&!s,{NATIONAL:a,INTERNATIONAL:c}=u.utils.numberFormat,d=r?a:c;o=u.utils.formatNumber(o,this.#i?.iso2,d)}o=this.#K(o),this.#p(o)}#$(t){let e=this.#G(t);return e!==null?this.#g(e):!1}#rt(t){let e=this.#i?.dialCode,i=this.#i?.nationalPrefix;if(t.startsWith("+")||!e)return t;let l=i&&t.startsWith(i)&&!this.#e.separateDialCode?t.substring(1):t;return`+${e}${l}`}#G(t){let e=t.indexOf("+"),i=e?t.substring(e):t,s=this.#i?.iso2,o=this.#i?.dialCode;i=this.#rt(i);let l=this.#P(i,!0),r=D(i);if(l){let a=D(l),c=this.#h[a];if(c.length===1)return c[0]===s?null:c[0];if(!s&&this.#r&&c.includes(this.#r))return this.#r;if(o===B.NANP&&et(r))return null;let m=this.#i?.areaCodes,g=this.#i?.priority;if(m){let T=m.map(y=>`${o}${y}`);for(let y of T)if(r.startsWith(y))return null}let I=m&&!(g===0)&&r.length>a.length,v=s&&c.includes(s)&&!I,w=s===c[0];if(!v&&!w)return c[0]}else if(i.startsWith("+")&&r.length){let a=this.#i?.dialCode||"";return a&&a.startsWith(r)?null:""}else if((!i||i==="+")&&!s&&this.#r)return this.#r;return null}#g(t){let e=this.#i?.iso2||"";return this.#i=t?this.#b.get(t):null,this.#i?.iso2&&(this.#r=this.#i.iso2),this.#t.setCountry(this.#i??{}),this.#F(),this.#V(),e!==t}#V(){let{strictMode:t,placeholderNumberType:e,allowedNumberTypes:i}=this.#e,s=this.#i?.iso2;if(t&&u.utils)if(s){let o=u.utils.numberType[e],l=u.utils.getExampleNumber(s,!1,o,!0),r=l;for(;u.utils.isPossibleNumber(l,s,i);)r=l,l+="0";let a=u.utils.getCoreNumber(r,s);this.#s=a.length,s==="by"&&(this.#s=a.length+1)}else this.#s=null}#F(){let{autoPlaceholder:t,placeholderNumberType:e,nationalMode:i,customPlaceholder:s}=this.#e,o=t===M.AGGRESSIVE||!this.#t.hadInitialPlaceholder&&t===M.POLITE;if(u.utils&&o){let l=u.utils.numberType[e],r=this.#i?.iso2?u.utils.getExampleNumber(this.#i.iso2,i,l):"";r=this.#K(r),typeof s=="function"&&(r=s(r,this.#i??{})),this.#t.telInput.setAttribute("placeholder",r)}}#Y(t){let e=t.dataset[q.COUNTRY_CODE],i=this.#g(e);this.#L();let s=t.dataset[q.DIAL_CODE];if(this.#j(s),this.#e.formatOnDisplay){let o=this.#a();this.#w(o)}this.#t.telInput.focus(),i&&this.#M()}#L(t){this.#t.isDropdownClosed()||this.#e.dropdownAlwaysOpen&&!t||(this.#t.closeDropdown(),this.#d.abort(),this.#d=null,this.#O(H.CLOSE_COUNTRY_DROPDOWN))}#j(t){let e=this.#a(),i=`+${t}`,s;if(e.startsWith("+")){let o=this.#P(e);o?s=e.replace(o,i):s=i,this.#p(s)}}#P(t,e){let i="";if(t.startsWith("+")){let s="",o=!1;for(let l=0;l<t.length;l++){let r=t.charAt(l);if(/[0-9]/.test(r)){if(s+=r,!!!this.#h[s])break;if(this.#I.has(s)){if(i=t.substring(0,l+1),o=!0,!e)break}else e&&o&&(i=t.substring(0,l+1));if(s.length===this.#c)break}}}return i}#f(t){let e=t?this.#n.normalise(t):this.#a(),i=this.#i?.dialCode,s,o=D(e);return this.#e.separateDialCode&&!e.startsWith("+")&&i&&o?s=`+${i}`:s="",s+e}#K(t){let e=!!this.#P(t),i=tt(t,e,this.#e.separateDialCode,this.#i??{});return this.#J(i)}#z(){let t=this.#i;if(!t)return{};let{iso2:e,dialCode:i,name:s}=t;return{iso2:e,dialCode:i,name:s}}#M(){let t=this.#z();this.#O(H.COUNTRY_CHANGE,t)}#X(){if(!this.#t.telInput){this.#l?.();return}this.#e.initialCountry===_.AUTO&&u.autoCountry&&(this.#r=u.autoCountry,this.#i?.iso2||this.#t.selectedCountryInner.classList.contains(h.GLOBE)||this.setCountry(this.#r),this.#l())}#at(){if(!this.#t.telInput){this.#E?.();return}this.#N(!0),this.#E()}#ut(){if(!this.#t.telInput){this.#y?.();return}if(u.utils){let t=this.#a();t&&this.#w(t),this.#i?.iso2&&(this.#F(),this.#V())}this.#y()}#ct(t){if(!this.#t.telInput){this.#C?.(t);return}this.#C(t)}destroy(){this.#t.telInput&&(this.#e.allowDropdown&&this.#L(!0),this.#o.abort(),this.#o=null,this.#t.destroy(),delete u.instances[this.id])}isActive(){return!!this.#t?.telInput}getExtension(){return u.utils&&this.#t.telInput?u.utils.getExtension(this.#f(),this.#i?.iso2):""}getNumber(t){if(u.utils&&this.#t.telInput){let e=this.#i?.iso2,i=this.#f(),s=u.utils.formatNumber(i,e,t);return this.#n.denormalise(s)}return""}getNumberType(){return u.utils&&this.#t.telInput?u.utils.getNumberType(this.#f(),this.#i?.iso2):X.UNKNOWN_NUMBER_TYPE}getSelectedCountryData(){return this.#z()}getValidationError(){if(u.utils&&this.#t.telInput){let t=this.#i?.iso2;return u.utils.getValidationError(this.#f(),t)}return X.UNKNOWN_VALIDATION_ERROR}isValidNumber(){let t=this.#i?.dialCode,e=this.#i?.iso2;if(u.utils&&this.#t.telInput){let i=this.#f(),s=u.utils.getCoreNumber(i,e);if(s){if(t===$.DIAL_CODE&&s[0]===$.MOBILE_PREFIX&&s.length!==$.MOBILE_CORE_LENGTH)return!1;if(!A.ALPHA_UNICODE.test(i)&&t){let l=i.startsWith("+")?i.slice(1+t.length):i,r=D(l).length;if(s.length>r)return!1}}}return this.#q(!1)}isValidNumberPrecise(){return this.#q(!0)}#dt(t){return u.utils?u.utils.isPossibleNumber(t,this.#i?.iso2,this.#e.allowedNumberTypes):null}#q(t){if(!u.utils||!this.#t.telInput)return null;let{allowNumberExtensions:e,allowPhonewords:i}=this.#e,s=a=>t?this.#ht(a):this.#dt(a),o=this.#f();if(!this.#i?.iso2&&!Z(o)||!s(o))return!1;if(o.search(A.ALPHA_UNICODE)>-1){let a=this.#i?.iso2;return u.utils.getExtension(o,a)?e:i}return!0}#ht(t){return u.utils?u.utils.isValidNumber(t,this.#i?.iso2,this.#e.allowedNumberTypes):null}setCountry(t){if(!this.#t.telInput)return;let e=t?.toLowerCase();if(!O(e))throw new Error(`Invalid country code: '${e}'`);let i=this.#i?.iso2;if(t&&e!==i||!t&&i){if(this.#g(e),this.#j(this.#i?.dialCode||""),this.#e.formatOnDisplay){let o=this.#a();this.#w(o)}this.#M()}}setNumber(t){if(!this.#t.telInput)return;let e=this.#n.normalise(t),i=this.#$(e);this.#w(e),i&&this.#M(),this.#O(H.INPUT,{isSetNumber:!0})}setPlaceholderNumberType(t){this.#t.telInput&&(this.#e.placeholderNumberType=t,this.#F())}setDisabled(t){this.#t.telInput&&(this.#t.telInput.disabled=t,this.#t.selectedCountry&&(t?this.#t.selectedCountry.setAttribute("disabled","true"):this.#t.selectedCountry.removeAttribute("disabled")))}static forEachInstance(t,...e){let i=Object.values(u.instances),s=e[0];i.forEach(o=>{if(o instanceof n)switch(t){case"handleUtils":o.#ut();break;case"handleUtilsFailure":o.#ct(s);break;case"handleAutoCountry":o.#X();break;case"handleAutoCountryFailure":o.#at();break}})}},Vt=n=>{if(!u.utils&&!u.startedLoadingUtilsScript){let t;if(typeof n=="function")try{t=Promise.resolve(n())}catch(e){return Promise.reject(e)}else return Promise.reject(new TypeError(`The argument passed to attachUtils must be a function that returns a promise for the utilities module, not ${typeof n}`));return u.startedLoadingUtilsScript=!0,t.then(e=>{let i=e?.default;if(!i||typeof i!="object")throw new TypeError("The loader function passed to attachUtils did not resolve to a module object with utils as its default export.");return u.utils=i,x.forEachInstance("handleUtils"),!0}).catch(e=>{throw x.forEachInstance("handleUtilsFailure",e),e})}return null},u=Object.assign((n,t)=>{let e=new x(n,t);return u.instances[e.id]=e,n.iti=e,e},{defaults:G,documentReady:()=>document.readyState==="complete",getCountryData:()=>P,getInstance:n=>{let t=n.dataset.intlTelInputId;return t?u.instances[t]:null},instances:{},attachUtils:Vt,startedLoadingUtilsScript:!1,startedLoadingAutoCountry:!1,version:"26.9.1"}),Yt=u;return Pt(jt);})();
|
|
34
|
+
</svg>`;var R=class n{constructor(t,e,i){this.#h=null;this.#I=null;this.#n=null;this.#l=null;this.highlightedItem=null;t.dataset.intlTelInputId=i.toString(),this.telInput=t,this.#t=e,this.#e=i,this.hadInitialPlaceholder=!!t.getAttribute("placeholder"),this.#m=!!this.telInput.closest("[dir=rtl]"),this.#t.separateDialCode&&(this.#u=this.telInput.style.paddingLeft)}#t;#e;#m;#u;#c;#h;#I;#b;#i;#s;#r;#o;#d;#n;#l;static validateInput(t){let e=t?.tagName;if(!(!!t&&typeof t=="object"&&e==="INPUT"&&typeof t.setAttribute=="function")){let s=Object.prototype.toString.call(t);throw new TypeError(`The first argument must be an HTMLInputElement, not ${s}`)}}generateMarkup(t){this.#c=t,this.telInput.classList.add("iti__tel-input"),this.telInput.hasAttribute("autocomplete")||this.telInput.setAttribute("autocomplete","tel"),this.telInput.hasAttribute("inputmode")||this.telInput.setAttribute("inputmode","tel");let e=this.#E();this.#y(e),e.appendChild(this.telInput),this.#R(),this.#x(e)}#E(){let{allowDropdown:t,showFlags:e,containerClass:i,useFullscreenPopup:s}=this.#t,o=V({iti:!0,"iti--allow-dropdown":t,"iti--show-flags":e,"iti--inline-dropdown":!s,[i]:!!i}),l=f("div",{class:o});return this.#m&&l.setAttribute("dir","ltr"),this.telInput.before(l),l}#y(t){let{allowDropdown:e,separateDialCode:i,showFlags:s}=this.#t;if(e||s||i){this.countryContainer=f("div",{class:`iti__country-container ${h.V_HIDE}`},t),e?(this.selectedCountry=f("button",{type:"button",class:"iti__selected-country",[p.EXPANDED]:"false",[p.LABEL]:this.#t.i18n.noCountrySelected,[p.HASPOPUP]:"dialog",[p.CONTROLS]:`iti-${this.#e}__dropdown-content`},this.countryContainer),this.telInput.disabled&&this.selectedCountry.setAttribute("disabled","true")):this.selectedCountry=f("div",{class:"iti__selected-country"},this.countryContainer);let o=f("div",{class:"iti__selected-country-primary"},this.selectedCountry);this.selectedCountryInner=f("div",{class:h.FLAG},o),e&&(this.#i=f("div",{class:"iti__arrow",[p.HIDDEN]:"true"},o)),i&&(this.#b=f("div",{class:"iti__selected-dial-code"},this.selectedCountry)),e&&this.#a()}}#C(){let{fixDropdownWidth:t}=this.#t;if(t&&!this.#s.style.width){let e=this.telInput.offsetWidth;e>0&&(this.#s.style.width=`${e}px`)}}#a(){let{fixDropdownWidth:t,useFullscreenPopup:e,countrySearch:i,i18n:s,dropdownContainer:o,containerClass:l}=this.#t,r=t?"":"iti--flexible-dropdown-width";if(this.#s=f("div",{id:`iti-${this.#e}__dropdown-content`,class:`iti__dropdown-content ${h.HIDE} ${r}`,role:"dialog",[p.MODAL]:"true"}),this.#m&&this.#s.setAttribute("dir","rtl"),i&&this.#p(),this.countryList=f("ul",{class:"iti__country-list",id:`iti-${this.#e}__country-listbox`,role:"listbox",[p.LABEL]:s.countryListAriaLabel},this.#s),this.#H(),i&&this.#D(),e||(this.#C(),this.#I=this.#U(),i&&(this.#s.style.height=`${this.#I}px`)),o){let a=V({iti:!0,"iti--container":!0,"iti--fullscreen-popup":e,"iti--inline-dropdown":!e,[l]:!!l});this.#n=f("div",{class:a}),this.#n.appendChild(this.#s)}else this.countryContainer.appendChild(this.#s)}#p(){let{i18n:t,searchInputClass:e}=this.#t,i=f("div",{class:"iti__search-input-wrapper"},this.#s);this.#r=f("span",{class:"iti__search-icon",[p.HIDDEN]:"true"},i),this.#r.innerHTML=yt(),this.searchInput=f("input",{id:`iti-${this.#e}__search-input`,type:"search",class:`iti__search-input ${e}`,placeholder:t.searchPlaceholder,role:"combobox",[p.EXPANDED]:"true",[p.LABEL]:t.searchPlaceholder,[p.CONTROLS]:`iti-${this.#e}__country-listbox`,[p.AUTOCOMPLETE]:"list",autocomplete:"off"},i),this.searchClearButton=f("button",{type:"button",class:`iti__search-clear ${h.HIDE}`,[p.LABEL]:t.clearSearchAriaLabel,tabindex:"-1"},i),this.searchClearButton.innerHTML=Ct(this.#e),this.#d=f("span",{class:"iti__a11y-text"},this.#s),this.#o=f("div",{class:`iti__no-results ${h.HIDE}`,[p.HIDDEN]:"true"},this.#s),this.#o.textContent=t.searchEmptyState}#R(){this.countryContainer&&(this.#N(),this.countryContainer.classList.remove(h.V_HIDE))}#x(t){let{hiddenInput:e}=this.#t;if(e){let i=this.telInput.getAttribute("name")||"",s=e(i);if(s.phone){let o=this.telInput.form?.querySelector(`input[name="${s.phone}"]`);o?this.hiddenInput=o:(this.hiddenInput=f("input",{type:"hidden",name:s.phone}),t.appendChild(this.hiddenInput))}if(s.country){let o=this.telInput.form?.querySelector(`input[name="${s.country}"]`);o?this.hiddenInputCountry=o:(this.hiddenInputCountry=f("input",{type:"hidden",name:s.country}),t.appendChild(this.hiddenInputCountry))}}}#H(){let t=document.createDocumentFragment();for(let e=0;e<this.#c.length;e++){let i=this.#c[e],s=V({[h.COUNTRY_ITEM]:!0}),o=f("li",{id:`iti-${this.#e}__item-${i.iso2}`,class:s,tabindex:"-1",role:"option",[p.SELECTED]:"false"});o.dataset.dialCode=i.dialCode,o.dataset.countryCode=i.iso2,i.nodeById[this.#e]=o,this.#t.showFlags&&f("div",{class:`${h.FLAG} iti__${i.iso2}`},o);let l=f("span",{class:"iti__country-name"},o);l.textContent=`${i.name} `;let r=f("span",{class:"iti__dial-code"},l);this.#m&&r.setAttribute("dir","ltr"),r.textContent=`(+${i.dialCode})`,t.appendChild(o)}this.countryList.appendChild(t)}#N(){if(this.selectedCountry){let t=this.#t.separateDialCode?L.SANE_SELECTED_WITH_DIAL_WIDTH:L.SANE_SELECTED_NO_DIAL_WIDTH,i=(this.selectedCountry.offsetWidth||this.#k()||t)+L.INPUT_PADDING_EXTRA_LEFT;this.telInput.style.paddingLeft=`${i}px`}}static#A(){let t;try{t=window.top.document.body}catch{t=document.body}return t}#k(){if(this.telInput.parentNode){let t=n.#A(),e=this.telInput.parentNode.cloneNode(!1);e.style.visibility="hidden",t.appendChild(e);let i=this.countryContainer.cloneNode();e.appendChild(i);let s=this.selectedCountry.cloneNode(!0);i.appendChild(s);let o=s.offsetWidth;return t.removeChild(e),o}return 0}#U(){let t=n.#A();this.#s.classList.remove(h.HIDE);let e=f("div",{class:"iti iti--inline-dropdown"});e.appendChild(this.#s),e.style.visibility="hidden",t.appendChild(e);let i=this.#s.offsetHeight;return t.removeChild(e),e.style.visibility="",this.#s.classList.add(h.HIDE),i>0?i:L.SANE_DROPDOWN_HEIGHT}#D(){let{i18n:t}=this.#t,e=this.countryList.childElementCount;this.#d.textContent=t.searchSummaryAria(e)}filterCountriesByQuery(t){let e;t===""?e=this.#c:e=ft(this.#c,t),this.#W(e)}#v(){let t=this.searchInput.value.trim();this.filterCountriesByQuery(t),this.searchInput.value?this.searchClearButton.classList.remove(h.HIDE):this.searchClearButton.classList.add(h.HIDE)}handleSearchChange(){this.#h&&clearTimeout(this.#h),this.#h=setTimeout(()=>{this.#v(),this.#h=null},W.SEARCH_DEBOUNCE_MS)}handleSearchClear(){this.searchInput.value="",this.searchInput.focus(),this.#v()}scrollCountryListToItem(t){let e=this.countryList,i=e.getBoundingClientRect(),s=t.getBoundingClientRect(),o=s.top-i.top+e.scrollTop;s.top<i.top?e.scrollTop=o:s.bottom>i.bottom&&(e.scrollTop=o-i.height+s.height)}highlightListItem(t,e){let i=this.highlightedItem;if(i&&i.classList.remove(h.HIGHLIGHT),this.highlightedItem=t,this.highlightedItem){if(this.highlightedItem.classList.add(h.HIGHLIGHT),this.#t.countrySearch){let s=this.highlightedItem.getAttribute("id")||"";this.searchInput.setAttribute(p.ACTIVE_DESCENDANT,s)}e&&this.highlightedItem.focus()}}handleUpDownKey(t){let e=t===C.ARROW_UP?this.highlightedItem?.previousElementSibling:this.highlightedItem?.nextElementSibling;!e&&this.countryList.childElementCount>1&&(e=t===C.ARROW_UP?this.countryList.lastElementChild:this.countryList.firstElementChild),e&&(this.scrollCountryListToItem(e),this.highlightListItem(e,!1))}#T(t){if(this.#l&&this.#l.dataset.countryCode!==t&&(this.#l.setAttribute(p.SELECTED,"false"),this.#l.querySelector(".iti__country-check")?.remove(),this.#l=null),t&&!this.#l){let e=this.countryList.querySelector(`[data-country-code="${t}"]`);if(e){e.setAttribute(p.SELECTED,"true");let i=f("span",{class:"iti__country-check",[p.HIDDEN]:"true"},e);i.innerHTML=gt(),this.#l=e}}}#W(t){this.countryList.replaceChildren();let e=!0;for(let i of t){let s=i.nodeById[this.#e];s&&(this.countryList.appendChild(s),e&&(this.highlightListItem(s,!1),e=!1))}e?(this.highlightListItem(null,!1),this.#o&&this.#o.classList.remove(h.HIDE)):this.#o&&this.#o.classList.add(h.HIDE),this.countryList.scrollTop=0,this.#D()}destroy(){this.telInput.iti=void 0,delete this.telInput.dataset.intlTelInputId,this.#t.separateDialCode&&(this.telInput.style.paddingLeft=this.#u);let t=this.telInput.parentNode;t.before(this.telInput),t.remove(),this.telInput=null,this.countryContainer=null,this.selectedCountry=null,this.selectedCountryInner=null,this.searchInput=null,this.searchClearButton=null,this.countryList=null,this.hiddenInput=null,this.hiddenInputCountry=null,this.highlightedItem=null,this.#b=null,this.#i=null,this.#s=null,this.#r=null,this.#o=null,this.#d=null,this.#n=null,this.#l=null;for(let e of this.#c)delete e.nodeById[this.#e];this.#c=null}openDropdown(){let{countrySearch:t,dropdownAlwaysOpen:e,dropdownContainer:i}=this.#t;if(this.#C(),i)this.#B();else{let s=this.#S(),o=this.telInput.offsetHeight+L.DROPDOWN_MARGIN;s?this.#s.style.top=`${o}px`:this.#s.style.bottom=`${o}px`}if(this.#s.classList.remove(h.HIDE),this.selectedCountry.setAttribute(p.EXPANDED,"true"),t){let s=this.countryList.firstElementChild;s&&(this.highlightListItem(s,!1),this.countryList.scrollTop=0),e||this.searchInput.focus()}this.#i.classList.add(h.ARROW_UP)}closeDropdown(){let{countrySearch:t,dropdownContainer:e}=this.#t;this.#s.classList.add(h.HIDE),this.selectedCountry.setAttribute(p.EXPANDED,"false"),t&&(this.searchInput.removeAttribute(p.ACTIVE_DESCENDANT),this.highlightedItem&&(this.highlightedItem.classList.remove(h.HIGHLIGHT),this.highlightedItem=null)),this.#i.classList.remove(h.ARROW_UP),e?(this.#n.remove(),this.#n.style.top="",this.#n.style.bottom="",this.#n.style.paddingLeft="",this.#n.style.paddingRight=""):(this.#s.style.top="",this.#s.style.bottom="")}#S(){if(this.#t.dropdownAlwaysOpen)return!0;let t=this.telInput.getBoundingClientRect(),e=t.top,i=window.innerHeight-t.bottom;return i>=this.#I||i>=e}#B(){let{dropdownContainer:t,useFullscreenPopup:e}=this.#t;if(e){if(window.innerWidth>=L.NARROW_VIEWPORT_WIDTH){let i=this.telInput.getBoundingClientRect();this.#n.style.paddingLeft=`${i.left}px`,this.#n.style.paddingRight=`${window.innerWidth-i.right}px`}}else{let i=this.telInput.getBoundingClientRect();this.#n.style.left=`${i.left}px`,this.#S()?this.#n.style.top=`${i.bottom+L.DROPDOWN_MARGIN}px`:(this.#n.style.top="unset",this.#n.style.bottom=`${window.innerHeight-i.top+L.DROPDOWN_MARGIN}px`)}t.appendChild(this.#n)}isDropdownClosed(){return this.#s.classList.contains(h.HIDE)}setCountry(t){let{allowDropdown:e,showFlags:i,separateDialCode:s,i18n:o}=this.#t,{name:l,dialCode:r,iso2:a=""}=t;if(e&&this.#T(a),this.selectedCountry){let c=a&&i?`${h.FLAG} iti__${a}`:`${h.FLAG} ${h.GLOBE}`,d,m,g;a?(m=l,d=o.selectedCountryAriaLabel.replace("${countryName}",l).replace("${dialCode}",`+${r}`),g=i?"":J()):(m=o.noCountrySelected,d=o.noCountrySelected,g=J()),this.selectedCountryInner.className=c,this.selectedCountry.setAttribute("title",m),this.selectedCountry.setAttribute(p.LABEL,d),this.selectedCountryInner.innerHTML=g}if(s){let c=r?`+${r}`:"";this.#b.textContent=c,this.#N()}}};var It=n=>{let{onlyCountries:t,excludeCountries:e}=n;return t?.length?P.filter(i=>t.includes(i.iso2)):e?.length?P.filter(i=>!e.includes(i.iso2)):P},bt=(n,t)=>{let{countryNameLocale:e,i18n:i}=t,s;try{typeof Intl<"u"&&typeof Intl.DisplayNames=="function"?s=new Intl.DisplayNames(e,{type:"region"}):s=null}catch(o){console.error(o),s=null}for(let o of n)o.name=i[o.iso2]||s?.of(o.iso2.toUpperCase())||""},Et=n=>{let t=new Set,e=0,i={},s=(l,r)=>{if(!l||!r)return;r.length>e&&(e=r.length),i.hasOwnProperty(r)||(i[r]=[]);let a=i[r];a.includes(l)||a.push(l)},o=[...n].sort((l,r)=>l.priority-r.priority);for(let l of o){t.has(l.dialCode)||t.add(l.dialCode);for(let r=1;r<l.dialCode.length;r++){let a=l.dialCode.substring(0,r);s(l.iso2,a)}if(s(l.iso2,l.dialCode),l.areaCodes){let r=i[l.dialCode][0];for(let a of l.areaCodes){for(let c=1;c<a.length;c++){let d=a.substring(0,c),m=l.dialCode+d;s(r,m),s(l.iso2,m)}s(l.iso2,l.dialCode+a)}}}return{dialCodes:t,dialCodeMaxLen:e,dialCodeToIso2Map:i}},Lt=(n,t)=>{let{countryOrder:e}=t;n.sort((i,s)=>{if(e){let o=e.indexOf(i.iso2),l=e.indexOf(s.iso2),r=o>-1,a=l>-1;if(r||a)return r&&a?o-l:r?-1:1}return i.name.localeCompare(s.name)})},Nt=n=>{for(let t of n)t.normalisedName=U(t.name),t.initials=t.normalisedName.split(/[^a-z]/).map(e=>e[0]).join(""),t.dialCodePlus=`+${t.dialCode}`};var $t=new Set(["800","808","870","881","882","883","888","979"]),Z=n=>{let t=D(n).slice(0,3);return n.startsWith("+")&&$t.has(t)};var tt=(n,t,e,i)=>{let s=n;if(e&&t){let o=`+${i.dialCode}`,l=s[o.length]===" "||s[o.length]==="-"?o.length+1:o.length;s=s.substring(l)}return s},wt=(n,t,e,i,s)=>{let o=e?e.formatNumberAsYouType(n,i.iso2):n,{dialCode:l}=i;return s&&t.charAt(0)!=="+"&&o.includes(`+${l}`)?(o.split(`+${l}`)[1]||"").trim():o};var At=(n,t,e,i)=>{if(e===0&&!i)return 0;let s=0;for(let o=0;o<t.length;o++){if(/[+0-9]/.test(t[o])&&s++,s===n&&!i)return o+1;if(i&&s===n+1)return o}return t.length};var Ft=new Set(["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"]),et=n=>{let t=D(n);if(t.startsWith(B.NANP)&&t.length>=4){let e=t.substring(1,4);return Ft.has(e)}return!1};var Y=class{#t;constructor(t){t&&this.#e(t)}#e(t){/[\u0660-\u0669]/.test(t)?this.#t="arabic-indic":/[\u06F0-\u06F9]/.test(t)?this.#t="persian":this.#t="ascii"}denormalise(t){if(!this.#t||this.#t==="ascii")return t;let e=this.#t==="arabic-indic"?1632:1776;return t.replace(/[0-9]/g,i=>String.fromCharCode(e+Number(i)))}normalise(t){if(!t)return"";if(this.#e(t),this.#t==="ascii")return t;let e=this.#t==="arabic-indic"?1632:1776,i=this.#t==="arabic-indic"?/[\u0660-\u0669]/g:/[\u06F0-\u06F9]/g;return t.replace(i,s=>String.fromCharCode(48+(s.charCodeAt(0)-e)))}isAscii(){return!this.#t||this.#t==="ascii"}};var Gt=0,x=class n{#t;#e;#m;#u;#c;#h;#I;#b;#i;#s;#r;#o;#d;#n;#l;#E;#y;#C;constructor(t,e={}){this.id=Gt++,R.validateInput(t);let i=ct(e);this.#e={...G,...i},dt(this.#e),ht(this.#e),this.#t=new R(t,this.#e,this.id),this.#m=pt(),this.#n=new Y(t.value),this.promise=this.#R(this.#e),this.#u=It(this.#e);let{dialCodes:s,dialCodeMaxLen:o,dialCodeToIso2Map:l}=Et(this.#u);this.#I=s,this.#c=o,this.#h=l,this.#b=new Map(this.#u.map(r=>[r.iso2,r])),this.#x()}#a(){let t=this.#t.telInput.value.trim();return this.#n.normalise(t)}#p(t){this.#t.telInput.value=this.#n.denormalise(t)}#R(t){let{initialCountry:e,geoIpLookup:i,loadUtils:s}=t,o=e===_.AUTO&&!!i,l=!!s&&!u.utils,r;o?r=new Promise((c,d)=>{this.#l=c,this.#E=d}):(r=Promise.resolve(void 0),this.#l=()=>{},this.#E=()=>{});let a;return l?a=new Promise((c,d)=>{this.#y=c,this.#C=d}):(a=Promise.resolve(void 0),this.#y=()=>{},this.#C=()=>{}),Promise.all([r,a]).then(()=>{})}#x(){this.#i=null,this.#o=new AbortController,this.#H(),this.#t.generateMarkup(this.#u),this.#N(),this.#A(),this.#D(),this.#e.dropdownAlwaysOpen&&this.#_()}#H(){bt(this.#u,this.#e),Lt(this.#u,this.#e),Nt(this.#u)}#N(t=!1){let e=this.#t.telInput.getAttribute("value"),i=this.#n.normalise(e),s=this.#a(),l=i&&i.startsWith("+")&&(!s||!s.startsWith("+"))?i:s,r=this.#P(l),a=et(l),{initialCountry:c,geoIpLookup:d}=this.#e,g=c===_.AUTO&&d&&!t,N=O(c);r?a?N?this.#g(c):g||this.#g(st.ISO2):this.#$(l):N?this.#g(c):g||this.#g(""),l&&this.#w(l)}#A(){this.#W(),this.#e.allowDropdown&&this.#U(),(this.#t.hiddenInput||this.#t.hiddenInputCountry)&&this.#t.telInput.form&&this.#k()}#k(){let t=()=>{this.#t.hiddenInput&&(this.#t.hiddenInput.value=this.getNumber()),this.#t.hiddenInputCountry&&(this.#t.hiddenInputCountry.value=this.#i?.iso2||"")};this.#t.telInput.form?.addEventListener("submit",t,{signal:this.#o.signal})}#U(){let t=this.#o.signal,e=l=>{this.#t.isDropdownClosed()?this.#t.telInput.focus():l.preventDefault()},i=this.#t.telInput.closest("label");i&&i.addEventListener("click",e,{signal:t});let s=()=>{this.#t.isDropdownClosed()&&!this.#t.telInput.disabled&&!this.#t.telInput.readOnly&&this.#_()};this.#t.selectedCountry.addEventListener("click",s,{signal:t});let o=l=>{let r=[C.ARROW_UP,C.ARROW_DOWN,C.SPACE,C.ENTER];this.#t.isDropdownClosed()&&r.includes(l.key)&&(l.preventDefault(),l.stopPropagation(),this.#_()),l.key===C.TAB&&this.#L()};this.#t.countryContainer.addEventListener("keydown",o,{signal:t})}#D(){let{loadUtils:t,initialCountry:e,geoIpLookup:i}=this.#e;if(t&&!u.utils){let o=()=>{u.attachUtils(t)?.catch(()=>{})};u.documentReady()?o():window.addEventListener("load",o,{signal:this.#o.signal})}else this.#y();e===_.AUTO&&i&&(this.#i?.iso2?this.#l():this.#v())}#v(){if(u.autoCountry)this.#X();else if(this.#t.selectedCountryInner.classList.add(h.LOADING),!u.startedLoadingAutoCountry&&(u.startedLoadingAutoCountry=!0,typeof this.#e.geoIpLookup=="function")){let t=(i="")=>{this.#t.selectedCountryInner.classList.remove(h.LOADING);let s=i.toLowerCase();O(s)?(u.autoCountry=s,setTimeout(()=>n.forEachInstance("handleAutoCountry"))):n.forEachInstance("handleAutoCountryFailure")},e=()=>{this.#t.selectedCountryInner.classList.remove(h.LOADING),n.forEachInstance("handleAutoCountryFailure")};this.#e.geoIpLookup(t,e)}}#T(){this.#_(),this.#t.searchInput.value="+",this.#t.filterCountriesByQuery("")}#W(){this.#S(),this.#B(),this.#Q()}#S(){let{strictMode:t,formatAsYouType:e,separateDialCode:i,allowDropdown:s,countrySearch:o}=this.#e,l=!1;A.ALPHA_UNICODE.test(this.#a())&&(l=!0);let r=a=>{let c=this.#a();if(this.#m&&a?.data==="+"&&i&&s&&o){let I=this.#t.telInput.selectionStart||0,v=c.substring(0,I-1),w=c.substring(I);this.#p(v+w),this.#T();return}this.#$(c)&&this.#M();let d=a?.data&&A.NON_PLUS_NUMERIC.test(a.data),m=a?.inputType===z.PASTE&&c;d||m&&!t?l=!0:A.NON_PLUS_NUMERIC.test(c)||(l=!1);let g=a?.detail&&a.detail.isSetNumber,N=this.#n.isAscii();if(e&&!l&&!g&&N){let I=this.#t.telInput.selectionStart||0,w=c.substring(0,I).replace(A.NON_PLUS_NUMERIC_GLOBAL,"").length,T=a?.inputType===z.DELETE_FWD,y=this.#f(),S=wt(y,c,u.utils,this.#i??{},i),E=At(w,S,I,T);this.#p(S),this.#t.telInput.setSelectionRange(E,E)}if(i&&c.startsWith("+")&&this.#i?.dialCode){let I=tt(c,!0,i,this.#i??{});this.#p(I)}};this.#t.telInput.addEventListener("input",r,{signal:this.#o.signal})}#B(){let{strictMode:t,separateDialCode:e,allowDropdown:i,countrySearch:s}=this.#e;if(t||e){let o=l=>{if(l.key&&l.key.length===1&&!l.altKey&&!l.ctrlKey&&!l.metaKey){if(e&&i&&s&&l.key==="+"){l.preventDefault(),this.#T();return}if(t){let r=this.#a(),c=!r.startsWith("+")&&this.#t.telInput.selectionStart===0&&l.key==="+",d=this.#n.normalise(l.key),m=/^[0-9]$/.test(d),g=e?m:c||m,N=this.#t.telInput,I=N.selectionStart,v=N.selectionEnd,w=r.slice(0,I),T=r.slice(v),y=w+l.key+T,S=this.#f(y),E=!1;u.utils&&this.#s&&(E=u.utils.getCoreNumber(S,this.#i?.iso2).length>this.#s);let Dt=this.#G(S)!==null;(!g||E&&!Dt&&!c)&&l.preventDefault()}}};this.#t.telInput.addEventListener("keydown",o,{signal:this.#o.signal})}}#Q(){if(this.#e.strictMode){let t=e=>{e.preventDefault();let i=this.#t.telInput,s=i.selectionStart,o=i.selectionEnd,l=this.#a(),r=l.slice(0,s),a=l.slice(o),c=this.#i?.iso2,d=e.clipboardData.getData("text"),m=this.#n.normalise(d),g=s===0&&o>0,N=!l.startsWith("+")||g,I=m.replace(A.NON_PLUS_NUMERIC_GLOBAL,""),v=I.startsWith("+"),w=I.replace(/\+/g,""),T=v&&N?`+${w}`:w,y=r+T+a;if(y.length>5){let E=u.utils.getCoreNumber(y,c);for(;E.length===0&&y.length>0;)y=y.slice(0,-1),E=u.utils.getCoreNumber(y,c);if(!E)return;if(this.#s&&E.length>this.#s)if(i.selectionEnd===l.length){let it=E.length-this.#s;y=y.slice(0,y.length-it)}else return}this.#p(y);let S=s+T.length;i.setSelectionRange(S,S),i.dispatchEvent(new InputEvent("input",{bubbles:!0}))};this.#t.telInput.addEventListener("paste",t,{signal:this.#o.signal})}}#J(t){let e=Number(this.#t.telInput.getAttribute("maxlength"));return e&&t.length>e?t.substring(0,e):t}#O(t,e={}){let i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:e});this.#t.telInput.dispatchEvent(i)}#_(){let{dropdownContainer:t,useFullscreenPopup:e}=this.#e;if(this.#d=new AbortController,this.#t.openDropdown(),!e&&t){let i=()=>this.#L();window.addEventListener("scroll",i,{signal:this.#d.signal})}this.#Z(),this.#O(H.OPEN_COUNTRY_DROPDOWN)}#Z(){let t=this.#d.signal;this.#tt(t),this.#et(t),this.#e.dropdownAlwaysOpen||this.#it(t),this.#st(t),this.#e.countrySearch&&this.#nt(t)}#tt(t){let e=i=>{let s=i.target?.closest(`.${h.COUNTRY_ITEM}`);s&&this.#t.highlightListItem(s,!1)};this.#t.countryList.addEventListener("mouseover",e,{signal:t})}#et(t){let e=i=>{let s=i.target?.closest(`.${h.COUNTRY_ITEM}`);s&&this.#Y(s)};this.#t.countryList.addEventListener("click",e,{signal:t})}#it(t){let e=i=>{!!i.target.closest(`#iti-${this.id}__dropdown-content`)||this.#L()};setTimeout(()=>{document.documentElement.addEventListener("click",e,{signal:t})},0)}#st(t){let e="",i=null,s=o=>{[C.ARROW_UP,C.ARROW_DOWN,C.ENTER,C.ESC].includes(o.key)&&(o.preventDefault(),o.stopPropagation(),o.key===C.ARROW_UP||o.key===C.ARROW_DOWN?this.#t.handleUpDownKey(o.key):o.key===C.ENTER&&!o.isComposing?this.#lt():o.key===C.ESC&&(this.#L(),this.#t.selectedCountry.focus())),!this.#e.countrySearch&&A.HIDDEN_SEARCH_CHAR.test(o.key)&&(o.stopPropagation(),i&&clearTimeout(i),e+=o.key.toLowerCase(),this.#ot(e),i=setTimeout(()=>{e=""},W.HIDDEN_SEARCH_RESET_MS))};document.addEventListener("keydown",s,{signal:t})}#nt(t){this.#t.searchInput.addEventListener("input",()=>this.#t.handleSearchChange(),{signal:t}),this.#t.searchClearButton.addEventListener("click",()=>this.#t.handleSearchClear(),{signal:t})}#ot(t){let e=mt(this.#u,t);if(e){let i=e.nodeById[this.id];this.#t.highlightListItem(i,!1),this.#t.scrollCountryListToItem(i)}}#lt(){this.#t.highlightedItem&&this.#Y(this.#t.highlightedItem)}#w(t){let{formatOnDisplay:e,nationalMode:i,separateDialCode:s}=this.#e,o=t;if(e&&u.utils&&this.#i){let l=Z(t),r=i&&!l||!o.startsWith("+")&&!s,{NATIONAL:a,INTERNATIONAL:c}=u.utils.numberFormat,d=r?a:c;o=u.utils.formatNumber(o,this.#i?.iso2,d)}o=this.#K(o),this.#p(o)}#$(t){let e=this.#G(t);return e!==null?this.#g(e):!1}#rt(t){let e=this.#i?.dialCode,i=this.#i?.nationalPrefix;if(t.startsWith("+")||!e)return t;let l=i&&t.startsWith(i)&&!this.#e.separateDialCode?t.substring(1):t;return`+${e}${l}`}#G(t){let e=t.indexOf("+"),i=e?t.substring(e):t,s=this.#i?.iso2,o=this.#i?.dialCode;i=this.#rt(i);let l=this.#P(i,!0),r=D(i);if(l){let a=D(l),c=this.#h[a];if(c.length===1)return c[0]===s?null:c[0];if(!s&&this.#r&&c.includes(this.#r))return this.#r;if(o===B.NANP&&et(r))return null;let m=this.#i?.areaCodes,g=this.#i?.priority;if(m){let T=m.map(y=>`${o}${y}`);for(let y of T)if(r.startsWith(y))return null}let I=m&&!(g===0)&&r.length>a.length,v=s&&c.includes(s)&&!I,w=s===c[0];if(!v&&!w)return c[0]}else if(i.startsWith("+")&&r.length){let a=this.#i?.dialCode||"";return a&&a.startsWith(r)?null:""}else if((!i||i==="+")&&!s&&this.#r)return this.#r;return null}#g(t){let e=this.#i?.iso2||"";return this.#i=t?this.#b.get(t):null,this.#i?.iso2&&(this.#r=this.#i.iso2),this.#t.setCountry(this.#i??{}),this.#F(),this.#V(),e!==t}#V(){let{strictMode:t,placeholderNumberType:e,allowedNumberTypes:i}=this.#e,s=this.#i?.iso2;if(t&&u.utils)if(s){let o=u.utils.numberType[e],l=u.utils.getExampleNumber(s,!1,o,!0),r=l;for(;u.utils.isPossibleNumber(l,s,i);)r=l,l+="0";let a=u.utils.getCoreNumber(r,s);this.#s=a.length,s==="by"&&(this.#s=a.length+1)}else this.#s=null}#F(){let{autoPlaceholder:t,placeholderNumberType:e,nationalMode:i,customPlaceholder:s}=this.#e,o=t===M.AGGRESSIVE||!this.#t.hadInitialPlaceholder&&t===M.POLITE;if(u.utils&&o){let l=u.utils.numberType[e],r=this.#i?.iso2?u.utils.getExampleNumber(this.#i.iso2,i,l):"";r=this.#K(r),typeof s=="function"&&(r=s(r,this.#i??{})),this.#t.telInput.setAttribute("placeholder",r)}}#Y(t){let e=t.dataset[q.COUNTRY_CODE],i=this.#g(e);this.#L();let s=t.dataset[q.DIAL_CODE];if(this.#j(s),this.#e.formatOnDisplay){let o=this.#a();this.#w(o)}this.#t.telInput.focus(),i&&this.#M()}#L(t){this.#t.isDropdownClosed()||this.#e.dropdownAlwaysOpen&&!t||(this.#t.closeDropdown(),this.#d.abort(),this.#d=null,this.#O(H.CLOSE_COUNTRY_DROPDOWN))}#j(t){let e=this.#a(),i=`+${t}`,s;if(e.startsWith("+")){let o=this.#P(e);o?s=e.replace(o,i):s=i,this.#p(s)}}#P(t,e){let i="";if(t.startsWith("+")){let s="",o=!1;for(let l=0;l<t.length;l++){let r=t.charAt(l);if(/[0-9]/.test(r)){if(s+=r,!!!this.#h[s])break;if(this.#I.has(s)){if(i=t.substring(0,l+1),o=!0,!e)break}else e&&o&&(i=t.substring(0,l+1));if(s.length===this.#c)break}}}return i}#f(t){let e=t?this.#n.normalise(t):this.#a(),i=this.#i?.dialCode,s,o=D(e);return this.#e.separateDialCode&&!e.startsWith("+")&&i&&o?s=`+${i}`:s="",s+e}#K(t){let e=!!this.#P(t),i=tt(t,e,this.#e.separateDialCode,this.#i??{});return this.#J(i)}#z(){let t=this.#i;if(!t)return{};let{iso2:e,dialCode:i,name:s}=t;return{iso2:e,dialCode:i,name:s}}#M(){let t=this.#z();this.#O(H.COUNTRY_CHANGE,t)}#X(){if(!this.#t.telInput){this.#l?.();return}this.#e.initialCountry===_.AUTO&&u.autoCountry&&(this.#r=u.autoCountry,this.#i?.iso2||this.#t.selectedCountryInner.classList.contains(h.GLOBE)||this.setCountry(this.#r),this.#l())}#at(){if(!this.#t.telInput){this.#E?.();return}this.#N(!0),this.#E()}#ut(){if(!this.#t.telInput){this.#y?.();return}if(u.utils){let t=this.#a();t&&this.#w(t),this.#i?.iso2&&(this.#F(),this.#V())}this.#y()}#ct(t){if(!this.#t.telInput){this.#C?.(t);return}this.#C(t)}destroy(){this.#t.telInput&&(this.#e.allowDropdown&&this.#L(!0),this.#o.abort(),this.#o=null,this.#t.destroy(),delete u.instances[this.id])}isActive(){return!!this.#t?.telInput}getExtension(){return u.utils&&this.#t.telInput?u.utils.getExtension(this.#f(),this.#i?.iso2):""}getNumber(t){if(u.utils&&this.#t.telInput){let e=this.#i?.iso2,i=this.#f(),s=u.utils.formatNumber(i,e,t);return this.#n.denormalise(s)}return""}getNumberType(){return u.utils&&this.#t.telInput?u.utils.getNumberType(this.#f(),this.#i?.iso2):X.UNKNOWN_NUMBER_TYPE}getSelectedCountryData(){return this.#z()}getValidationError(){if(u.utils&&this.#t.telInput){let t=this.#i?.iso2;return u.utils.getValidationError(this.#f(),t)}return X.UNKNOWN_VALIDATION_ERROR}isValidNumber(){let t=this.#i?.dialCode,e=this.#i?.iso2;if(u.utils&&this.#t.telInput){let i=this.#f(),s=u.utils.getCoreNumber(i,e);if(s){if(t===$.DIAL_CODE&&s[0]===$.MOBILE_PREFIX&&s.length!==$.MOBILE_CORE_LENGTH)return!1;if(!A.ALPHA_UNICODE.test(i)&&t){let l=i.startsWith("+")?i.slice(1+t.length):i,r=D(l).length;if(s.length>r)return!1}}}return this.#q(!1)}isValidNumberPrecise(){return this.#q(!0)}#dt(t){return u.utils?u.utils.isPossibleNumber(t,this.#i?.iso2,this.#e.allowedNumberTypes):null}#q(t){if(!u.utils||!this.#t.telInput)return null;let{allowNumberExtensions:e,allowPhonewords:i}=this.#e,s=a=>t?this.#ht(a):this.#dt(a),o=this.#f();if(!this.#i?.iso2&&!Z(o)||!s(o))return!1;if(o.search(A.ALPHA_UNICODE)>-1){let a=this.#i?.iso2;return u.utils.getExtension(o,a)?e:i}return!0}#ht(t){return u.utils?u.utils.isValidNumber(t,this.#i?.iso2,this.#e.allowedNumberTypes):null}setCountry(t){if(!this.#t.telInput)return;let e=t?.toLowerCase();if(!O(e))throw new Error(`Invalid country code: '${e}'`);let i=this.#i?.iso2;if(t&&e!==i||!t&&i){if(this.#g(e),this.#j(this.#i?.dialCode||""),this.#e.formatOnDisplay){let o=this.#a();this.#w(o)}this.#M()}}setNumber(t){if(!this.#t.telInput)return;let e=this.#n.normalise(t),i=this.#$(e);this.#w(e),i&&this.#M(),this.#O(H.INPUT,{isSetNumber:!0})}setPlaceholderNumberType(t){this.#t.telInput&&(this.#e.placeholderNumberType=t,this.#F())}setDisabled(t){this.#t.telInput&&(this.#t.telInput.disabled=t,this.#t.selectedCountry&&(t?this.#t.selectedCountry.setAttribute("disabled","true"):this.#t.selectedCountry.removeAttribute("disabled")))}static forEachInstance(t,...e){let i=Object.values(u.instances),s=e[0];i.forEach(o=>{if(o instanceof n)switch(t){case"handleUtils":o.#ut();break;case"handleUtilsFailure":o.#ct(s);break;case"handleAutoCountry":o.#X();break;case"handleAutoCountryFailure":o.#at();break}})}},Vt=n=>{if(!u.utils&&!u.startedLoadingUtilsScript){let t;if(typeof n=="function")try{t=Promise.resolve(n())}catch(e){return Promise.reject(e)}else return Promise.reject(new TypeError(`The argument passed to attachUtils must be a function that returns a promise for the utilities module, not ${typeof n}`));return u.startedLoadingUtilsScript=!0,t.then(e=>{let i=e?.default;if(!i||typeof i!="object")throw new TypeError("The loader function passed to attachUtils did not resolve to a module object with utils as its default export.");return u.utils=i,x.forEachInstance("handleUtils"),!0}).catch(e=>{throw x.forEachInstance("handleUtilsFailure",e),e})}return null},u=Object.assign((n,t)=>{let e=new x(n,t);return u.instances[e.id]=e,n.iti=e,e},{defaults:G,documentReady:()=>document.readyState==="complete",getCountryData:()=>P,getInstance:n=>{let t=n.dataset.intlTelInputId;return t?u.instances[t]:null},instances:{},attachUtils:Vt,startedLoadingUtilsScript:!1,startedLoadingAutoCountry:!1,version:"26.9.2"}),Yt=u;return Pt(jt);})();
|
|
35
35
|
|
|
36
36
|
// UMD
|
|
37
37
|
return factoryOutput.default;
|