@intl-tel-input/vue 28.0.3 → 28.0.5
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.
|
@@ -1287,7 +1287,7 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
1287
1287
|
searchSummaryAria(e) {
|
|
1288
1288
|
return e === 0 ? "No results found" : e === 1 ? "1 result found" : `${e} results found`;
|
|
1289
1289
|
}
|
|
1290
|
-
}, L = (e) => typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia(e).matches,
|
|
1290
|
+
}, L = (e) => typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia(e).matches, te = () => L(`(max-width: ${S.NARROW_VIEWPORT_WIDTH}px)`), R = {
|
|
1291
1291
|
allowDropdown: !0,
|
|
1292
1292
|
allowedNumberTypes: [N.MOBILE, N.FIXED_LINE],
|
|
1293
1293
|
allowNumberExtensions: !1,
|
|
@@ -1321,34 +1321,34 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
1321
1321
|
useFullscreenPopup: (() => {
|
|
1322
1322
|
if (typeof navigator < "u" && typeof window < "u") {
|
|
1323
1323
|
let e = L("(max-height: 600px)"), t = L("(pointer: coarse)");
|
|
1324
|
-
return
|
|
1324
|
+
return te() || t && e;
|
|
1325
1325
|
}
|
|
1326
1326
|
return !1;
|
|
1327
1327
|
})()
|
|
1328
|
-
},
|
|
1328
|
+
}, ne = (e) => JSON.stringify(e), z = (e) => !!e && typeof e == "object" && !Array.isArray(e), re = (e) => typeof e == "function", ie = (e) => {
|
|
1329
1329
|
if (!e || typeof e != "object") return !1;
|
|
1330
1330
|
let t = e;
|
|
1331
1331
|
return t.nodeType === 1 && typeof t.tagName == "string" && typeof t.appendChild == "function";
|
|
1332
|
-
},
|
|
1332
|
+
}, B = new Set(Object.values(E)), V = (e) => {
|
|
1333
1333
|
console.warn(`[intl-tel-input] ${e}`);
|
|
1334
|
-
},
|
|
1335
|
-
|
|
1336
|
-
},
|
|
1334
|
+
}, H = (e, t, n) => {
|
|
1335
|
+
V(`Option '${e}' must be ${t}; got ${ne(n)}. Ignoring.`);
|
|
1336
|
+
}, U = (e, t) => {
|
|
1337
1337
|
let n = "an array of iso2 country code strings";
|
|
1338
|
-
if (!Array.isArray(t)) return
|
|
1338
|
+
if (!Array.isArray(t)) return H(e, n, t), !1;
|
|
1339
1339
|
let r = [];
|
|
1340
1340
|
for (let i of t) {
|
|
1341
|
-
if (typeof i != "string") return
|
|
1342
|
-
m(i.toLowerCase()) ? r.push(i) :
|
|
1341
|
+
if (typeof i != "string") return H(e, n, t), !1;
|
|
1342
|
+
m(i.toLowerCase()) ? r.push(i) : V(`Invalid iso2 code in '${e}': '${i}'. Skipping.`);
|
|
1343
1343
|
}
|
|
1344
1344
|
return r;
|
|
1345
|
-
},
|
|
1345
|
+
}, ae = (e) => {
|
|
1346
1346
|
if (e === void 0) return {};
|
|
1347
|
-
if (!
|
|
1347
|
+
if (!z(e)) return V(`The second argument must be an options object; got ${ne(e)}. Using defaults.`), {};
|
|
1348
1348
|
let t = {};
|
|
1349
1349
|
for (let [n, r] of Object.entries(e)) {
|
|
1350
|
-
if (!Object.hasOwn(
|
|
1351
|
-
|
|
1350
|
+
if (!Object.hasOwn(R, n)) {
|
|
1351
|
+
V(`Unknown option '${n}'. Ignoring.`);
|
|
1352
1352
|
continue;
|
|
1353
1353
|
}
|
|
1354
1354
|
switch (n) {
|
|
@@ -1367,14 +1367,14 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
1367
1367
|
case "strictRejectAnimation":
|
|
1368
1368
|
case "useFullscreenPopup":
|
|
1369
1369
|
if (typeof r != "boolean") {
|
|
1370
|
-
|
|
1370
|
+
H(n, "a boolean", r);
|
|
1371
1371
|
break;
|
|
1372
1372
|
}
|
|
1373
1373
|
t[n] = r;
|
|
1374
1374
|
break;
|
|
1375
1375
|
case "autoPlaceholder":
|
|
1376
|
-
if (typeof r != "string" || !
|
|
1377
|
-
|
|
1376
|
+
if (typeof r != "string" || !B.has(r)) {
|
|
1377
|
+
H("autoPlaceholder", `one of ${Array.from(B).join(", ")}`, r);
|
|
1378
1378
|
break;
|
|
1379
1379
|
}
|
|
1380
1380
|
t[n] = r;
|
|
@@ -1383,7 +1383,7 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
1383
1383
|
case "searchInputClass":
|
|
1384
1384
|
case "countryNameLocale":
|
|
1385
1385
|
if (typeof r != "string") {
|
|
1386
|
-
|
|
1386
|
+
H(n, "a string", r);
|
|
1387
1387
|
break;
|
|
1388
1388
|
}
|
|
1389
1389
|
t[n] = r;
|
|
@@ -1391,7 +1391,7 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
1391
1391
|
case "countryOrder":
|
|
1392
1392
|
if (r === null) t[n] = r;
|
|
1393
1393
|
else {
|
|
1394
|
-
let e =
|
|
1394
|
+
let e = U(n, r);
|
|
1395
1395
|
e !== !1 && (t[n] = e);
|
|
1396
1396
|
}
|
|
1397
1397
|
break;
|
|
@@ -1399,15 +1399,15 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
1399
1399
|
case "geoIpLookup":
|
|
1400
1400
|
case "hiddenInput":
|
|
1401
1401
|
case "loadUtils":
|
|
1402
|
-
if (r !== null && !
|
|
1403
|
-
|
|
1402
|
+
if (r !== null && !re(r)) {
|
|
1403
|
+
H(n, "a function or null", r);
|
|
1404
1404
|
break;
|
|
1405
1405
|
}
|
|
1406
1406
|
t[n] = r;
|
|
1407
1407
|
break;
|
|
1408
1408
|
case "dropdownContainer":
|
|
1409
|
-
if (r !== null && !
|
|
1410
|
-
|
|
1409
|
+
if (r !== null && !ie(r)) {
|
|
1410
|
+
H("dropdownContainer", "an HTMLElement or null", r);
|
|
1411
1411
|
break;
|
|
1412
1412
|
}
|
|
1413
1413
|
t[n] = r;
|
|
@@ -1416,32 +1416,32 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
1416
1416
|
case "onlyCountries":
|
|
1417
1417
|
if (r === null) t[n] = r;
|
|
1418
1418
|
else {
|
|
1419
|
-
let e =
|
|
1419
|
+
let e = U(n, r);
|
|
1420
1420
|
e !== !1 && (t[n] = e);
|
|
1421
1421
|
}
|
|
1422
1422
|
break;
|
|
1423
1423
|
case "i18n":
|
|
1424
|
-
if (r && !
|
|
1425
|
-
|
|
1424
|
+
if (r && !z(r)) {
|
|
1425
|
+
H("i18n", "an object", r);
|
|
1426
1426
|
break;
|
|
1427
1427
|
}
|
|
1428
1428
|
t[n] = r;
|
|
1429
1429
|
break;
|
|
1430
1430
|
case "countryNameOverrides":
|
|
1431
|
-
if (r && !
|
|
1432
|
-
|
|
1431
|
+
if (r && !z(r)) {
|
|
1432
|
+
H("countryNameOverrides", "an object", r);
|
|
1433
1433
|
break;
|
|
1434
1434
|
}
|
|
1435
1435
|
t[n] = r;
|
|
1436
1436
|
break;
|
|
1437
1437
|
case "initialCountry": {
|
|
1438
1438
|
if (typeof r != "string") {
|
|
1439
|
-
|
|
1439
|
+
H("initialCountry", "a string", r);
|
|
1440
1440
|
break;
|
|
1441
1441
|
}
|
|
1442
1442
|
let e = r.toLowerCase();
|
|
1443
1443
|
if (e && e !== D.AUTO && !m(e)) {
|
|
1444
|
-
|
|
1444
|
+
H("initialCountry", "a valid iso2 country code or 'auto'", r);
|
|
1445
1445
|
break;
|
|
1446
1446
|
}
|
|
1447
1447
|
t[n] = r;
|
|
@@ -1449,7 +1449,7 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
1449
1449
|
}
|
|
1450
1450
|
case "placeholderNumberType":
|
|
1451
1451
|
if (typeof r != "string" || !k.includes(r)) {
|
|
1452
|
-
|
|
1452
|
+
H("placeholderNumberType", `one of ${k.join(", ")}`, r);
|
|
1453
1453
|
break;
|
|
1454
1454
|
}
|
|
1455
1455
|
t[n] = r;
|
|
@@ -1457,12 +1457,12 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
1457
1457
|
case "allowedNumberTypes":
|
|
1458
1458
|
if (r !== null) {
|
|
1459
1459
|
if (!Array.isArray(r)) {
|
|
1460
|
-
|
|
1460
|
+
H("allowedNumberTypes", "an array of number types or null", r);
|
|
1461
1461
|
break;
|
|
1462
1462
|
}
|
|
1463
1463
|
let e = !0;
|
|
1464
1464
|
for (let t of r) if (typeof t != "string" || !k.includes(t)) {
|
|
1465
|
-
|
|
1465
|
+
H("allowedNumberTypes", `an array of valid number types (${k.join(", ")})`, t), e = !1;
|
|
1466
1466
|
break;
|
|
1467
1467
|
}
|
|
1468
1468
|
e && (t[n] = r);
|
|
@@ -1471,67 +1471,147 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
1471
1471
|
}
|
|
1472
1472
|
}
|
|
1473
1473
|
return t;
|
|
1474
|
-
}, ae = (e) => {
|
|
1475
|
-
e.initialCountry &&= e.initialCountry.toLowerCase(), e.onlyCountries?.length && (e.onlyCountries = e.onlyCountries.map((e) => e.toLowerCase())), e.excludeCountries?.length && (e.excludeCountries = e.excludeCountries.map((e) => e.toLowerCase())), e.countryOrder &&= e.countryOrder.map((e) => e.toLowerCase());
|
|
1476
1474
|
}, oe = (e) => {
|
|
1477
|
-
e.
|
|
1475
|
+
e.initialCountry &&= e.initialCountry.toLowerCase(), e.onlyCountries?.length && (e.onlyCountries = e.onlyCountries.map((e) => e.toLowerCase())), e.excludeCountries?.length && (e.excludeCountries = e.excludeCountries.map((e) => e.toLowerCase())), e.countryOrder &&= e.countryOrder.map((e) => e.toLowerCase());
|
|
1476
|
+
}, se = (e) => {
|
|
1477
|
+
e.dropdownAlwaysOpen && (e.useFullscreenPopup = !1, e.allowDropdown = !0), e.useFullscreenPopup ? e.fixDropdownWidth = !1 : te() && (e.fixDropdownWidth = !0), e.onlyCountries?.length === 1 && (e.initialCountry = e.onlyCountries[0]), e.separateDialCode && (e.nationalMode = !1), e.allowDropdown && !e.showFlags && !e.separateDialCode && (e.nationalMode = !1), e.useFullscreenPopup && !e.dropdownContainer && (e.dropdownContainer = document.body), e.i18n = {
|
|
1478
1478
|
...ee,
|
|
1479
1479
|
...e.i18n
|
|
1480
1480
|
};
|
|
1481
|
-
},
|
|
1481
|
+
}, W = (e) => e.replace(/\D/g, ""), G = (e = "") => e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase(), K = (e) => Object.keys(e).filter((t) => !!e[t]).join(" "), q = (e, t, n) => {
|
|
1482
1482
|
let r = document.createElement(e);
|
|
1483
1483
|
return t && Object.entries(t).forEach(([e, t]) => r.setAttribute(e, t)), n && n.appendChild(r), r;
|
|
1484
|
-
},
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1484
|
+
}, ce = "http://www.w3.org/2000/svg", J = ([e, t, n]) => {
|
|
1485
|
+
let r = document.createElementNS(ce, e);
|
|
1486
|
+
if (t) for (let e in t) r.setAttribute(e, String(t[e]));
|
|
1487
|
+
if (n) for (let e of n) r.appendChild(J(e));
|
|
1488
|
+
return r;
|
|
1489
|
+
}, le = () => J([
|
|
1490
|
+
"svg",
|
|
1491
|
+
{
|
|
1492
|
+
class: "iti__search-icon-svg",
|
|
1493
|
+
width: 14,
|
|
1494
|
+
height: 14,
|
|
1495
|
+
viewBox: "0 0 24 24",
|
|
1496
|
+
focusable: "false",
|
|
1497
|
+
[I.HIDDEN]: "true"
|
|
1498
|
+
},
|
|
1499
|
+
[["circle", {
|
|
1500
|
+
cx: 11,
|
|
1501
|
+
cy: 11,
|
|
1502
|
+
r: 7
|
|
1503
|
+
}], ["line", {
|
|
1504
|
+
x1: 21,
|
|
1505
|
+
y1: 21,
|
|
1506
|
+
x2: 16.65,
|
|
1507
|
+
y2: 16.65
|
|
1508
|
+
}]]
|
|
1509
|
+
]), ue = (e) => {
|
|
1489
1510
|
let t = `iti-${e}-clear-mask`;
|
|
1490
|
-
return
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1511
|
+
return J([
|
|
1512
|
+
"svg",
|
|
1513
|
+
{
|
|
1514
|
+
class: "iti__search-clear-svg",
|
|
1515
|
+
width: 12,
|
|
1516
|
+
height: 12,
|
|
1517
|
+
viewBox: "0 0 16 16",
|
|
1518
|
+
[I.HIDDEN]: "true",
|
|
1519
|
+
focusable: "false"
|
|
1520
|
+
},
|
|
1521
|
+
[[
|
|
1522
|
+
"mask",
|
|
1523
|
+
{
|
|
1524
|
+
id: t,
|
|
1525
|
+
maskUnits: "userSpaceOnUse"
|
|
1526
|
+
},
|
|
1527
|
+
[["rect", {
|
|
1528
|
+
width: 16,
|
|
1529
|
+
height: 16,
|
|
1530
|
+
fill: "white"
|
|
1531
|
+
}], ["path", {
|
|
1532
|
+
d: "M5.2 5.2 L10.8 10.8 M10.8 5.2 L5.2 10.8",
|
|
1533
|
+
stroke: "black",
|
|
1534
|
+
"stroke-linecap": "round",
|
|
1535
|
+
class: "iti__search-clear-x"
|
|
1536
|
+
}]]
|
|
1537
|
+
], ["circle", {
|
|
1538
|
+
cx: 8,
|
|
1539
|
+
cy: 8,
|
|
1540
|
+
r: 8,
|
|
1541
|
+
class: "iti__search-clear-bg",
|
|
1542
|
+
mask: `url(#${t})`
|
|
1543
|
+
}]]
|
|
1544
|
+
]);
|
|
1545
|
+
}, de = () => J([
|
|
1546
|
+
"svg",
|
|
1547
|
+
{
|
|
1548
|
+
class: "iti__country-check-svg",
|
|
1549
|
+
width: 14,
|
|
1550
|
+
height: 14,
|
|
1551
|
+
viewBox: "0 0 16 16",
|
|
1552
|
+
fill: "currentColor",
|
|
1553
|
+
focusable: "false",
|
|
1554
|
+
[I.HIDDEN]: "true"
|
|
1555
|
+
},
|
|
1556
|
+
[["path", { d: "M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0m-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z" }]]
|
|
1557
|
+
]), fe = () => J([
|
|
1558
|
+
"svg",
|
|
1559
|
+
{
|
|
1560
|
+
width: 256,
|
|
1561
|
+
height: 256,
|
|
1562
|
+
viewBox: "0 0 512 512",
|
|
1563
|
+
class: "iti__globe-svg"
|
|
1564
|
+
},
|
|
1565
|
+
[["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" }], ["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" }]]
|
|
1566
|
+
]), Y = (e) => G(e).replace(/[^\p{L}]+/gu, " ").trim(), pe = (e) => {
|
|
1502
1567
|
let t = /* @__PURE__ */ new Map();
|
|
1503
1568
|
for (let n of e) {
|
|
1504
|
-
let e =
|
|
1569
|
+
let e = Y(n.name), r = e.split(" ").filter(Boolean), i = r.map((e) => e[0] || "").join("");
|
|
1505
1570
|
t.set(n.iso2, {
|
|
1506
1571
|
normalisedName: e,
|
|
1507
|
-
|
|
1572
|
+
words: r,
|
|
1573
|
+
initials: i,
|
|
1508
1574
|
dialCodePlus: `+${n.dialCode}`
|
|
1509
1575
|
});
|
|
1510
1576
|
}
|
|
1511
1577
|
return t;
|
|
1512
|
-
},
|
|
1513
|
-
let r =
|
|
1578
|
+
}, me = (e, t, n) => {
|
|
1579
|
+
let r = G(n), i = Y(n), a = r !== "" && i === "", o = [], s = [], c = [], l = [], u = [], d = [], f = [];
|
|
1514
1580
|
for (let n of e) {
|
|
1515
1581
|
let e = t.get(n.iso2);
|
|
1516
|
-
n.iso2 === r ?
|
|
1582
|
+
n.iso2 === r ? o.push(n) : !a && e.normalisedName.startsWith(i) ? s.push(n) : !a && e.normalisedName.includes(i) ? c.push(n) : r === n.dialCode || r === e.dialCodePlus ? l.push(n) : e.dialCodePlus.includes(r) ? u.push(n) : e.initials.includes(r) && d.push(n);
|
|
1583
|
+
}
|
|
1584
|
+
let p = i.split(" ").filter(Boolean);
|
|
1585
|
+
if (p.length > 1 && o.length === 0 && s.length === 0 && c.length === 0) {
|
|
1586
|
+
let n = /* @__PURE__ */ new Set([
|
|
1587
|
+
...l.map((e) => e.iso2),
|
|
1588
|
+
...u.map((e) => e.iso2),
|
|
1589
|
+
...d.map((e) => e.iso2)
|
|
1590
|
+
]);
|
|
1591
|
+
for (let r of e) {
|
|
1592
|
+
if (n.has(r.iso2)) continue;
|
|
1593
|
+
let e = t.get(r.iso2);
|
|
1594
|
+
p.some((t) => e.words.some((e) => e.startsWith(t))) && f.push(r);
|
|
1595
|
+
}
|
|
1517
1596
|
}
|
|
1518
|
-
let
|
|
1597
|
+
let m = (e, t) => e.priority - t.priority;
|
|
1519
1598
|
return [
|
|
1520
|
-
...i,
|
|
1521
|
-
...a,
|
|
1522
1599
|
...o,
|
|
1523
|
-
...s
|
|
1524
|
-
...c
|
|
1525
|
-
...l
|
|
1600
|
+
...s,
|
|
1601
|
+
...c,
|
|
1602
|
+
...l.sort(m),
|
|
1603
|
+
...u.sort(m),
|
|
1604
|
+
...d,
|
|
1605
|
+
...f
|
|
1526
1606
|
];
|
|
1527
|
-
},
|
|
1528
|
-
let r =
|
|
1607
|
+
}, he = (e, t, n) => {
|
|
1608
|
+
let r = Y(n);
|
|
1529
1609
|
for (let n of e) {
|
|
1530
1610
|
let { normalisedName: e } = t.get(n.iso2);
|
|
1531
1611
|
if (e.startsWith(r)) return n;
|
|
1532
1612
|
}
|
|
1533
1613
|
return null;
|
|
1534
|
-
},
|
|
1614
|
+
}, ge = class e {
|
|
1535
1615
|
#e;
|
|
1536
1616
|
static toAscii(e) {
|
|
1537
1617
|
return e ? e.replace(/[٠-٩]/g, (e) => String.fromCharCode(48 + (e.charCodeAt(0) - 1632))).replace(/[۰-۹]/g, (e) => String.fromCharCode(48 + (e.charCodeAt(0) - 1776))) : "";
|
|
@@ -1553,7 +1633,7 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
1553
1633
|
isAscii() {
|
|
1554
1634
|
return !this.#e || this.#e === "ascii";
|
|
1555
1635
|
}
|
|
1556
|
-
},
|
|
1636
|
+
}, _e = class e {
|
|
1557
1637
|
#e;
|
|
1558
1638
|
#t;
|
|
1559
1639
|
#n;
|
|
@@ -1599,7 +1679,7 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
1599
1679
|
this.#O(n), n.appendChild(this.telInputEl), this.#j(), this.#M(n), this.ensureDropdownWidthSet();
|
|
1600
1680
|
}
|
|
1601
1681
|
#D() {
|
|
1602
|
-
let { allowDropdown: e, showFlags: t, containerClass: n, useFullscreenPopup: r } = this.#e, i =
|
|
1682
|
+
let { allowDropdown: e, showFlags: t, containerClass: n, useFullscreenPopup: r } = this.#e, i = q("div", { class: K({
|
|
1603
1683
|
iti: !0,
|
|
1604
1684
|
"iti--allow-dropdown": e,
|
|
1605
1685
|
"iti--show-flags": t,
|
|
@@ -1611,19 +1691,19 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
1611
1691
|
#O(e) {
|
|
1612
1692
|
let { allowDropdown: t, separateDialCode: n, showFlags: r } = this.#e;
|
|
1613
1693
|
if (!t && !r && !n) return;
|
|
1614
|
-
this.#c =
|
|
1694
|
+
this.#c = q("div", { class: `iti__country-container ${_.V_HIDE}` }, e), t ? (this.#l = q("button", {
|
|
1615
1695
|
type: "button",
|
|
1616
1696
|
class: "iti__selected-country",
|
|
1617
1697
|
[I.EXPANDED]: "false",
|
|
1618
1698
|
[I.LABEL]: this.#e.i18n.noCountrySelected,
|
|
1619
1699
|
[I.HASPOPUP]: "dialog",
|
|
1620
1700
|
[I.CONTROLS]: `iti-${this.#t}__dropdown-content`
|
|
1621
|
-
}, this.#c), this.telInputEl.disabled && this.#l.setAttribute("disabled", "true")) : this.#l =
|
|
1622
|
-
let i =
|
|
1623
|
-
this.#u =
|
|
1701
|
+
}, this.#c), this.telInputEl.disabled && this.#l.setAttribute("disabled", "true")) : this.#l = q("div", { class: "iti__selected-country" }, this.#c);
|
|
1702
|
+
let i = q("div", { class: "iti__selected-country-primary" }, this.#l);
|
|
1703
|
+
this.#u = q("div", { class: _.FLAG }, i), t && (this.#f = q("div", {
|
|
1624
1704
|
class: "iti__arrow",
|
|
1625
1705
|
[I.HIDDEN]: "true"
|
|
1626
|
-
}, i)), n && (this.#d =
|
|
1706
|
+
}, i)), n && (this.#d = q("div", { class: "iti__selected-dial-code" }, this.#l)), t && this.#k();
|
|
1627
1707
|
}
|
|
1628
1708
|
ensureDropdownWidthSet() {
|
|
1629
1709
|
let { fixDropdownWidth: e, allowDropdown: t } = this.#e;
|
|
@@ -1633,17 +1713,17 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
1633
1713
|
}
|
|
1634
1714
|
#k() {
|
|
1635
1715
|
let { fixDropdownWidth: e, useFullscreenPopup: t, countrySearch: n, i18n: r, dropdownContainer: i, containerClass: a } = this.#e, o = e ? "" : "iti--flexible-dropdown-width";
|
|
1636
|
-
this.#p =
|
|
1716
|
+
this.#p = q("div", {
|
|
1637
1717
|
id: `iti-${this.#t}__dropdown-content`,
|
|
1638
1718
|
class: `iti__dropdown-content ${_.HIDE} ${o}`,
|
|
1639
1719
|
role: "dialog",
|
|
1640
1720
|
[I.MODAL]: "true"
|
|
1641
|
-
}), this.#n && this.#p.setAttribute("dir", "rtl"), n && this.#A(), this.#_ =
|
|
1721
|
+
}), this.#n && this.#p.setAttribute("dir", "rtl"), n && this.#A(), this.#_ = q("ul", {
|
|
1642
1722
|
class: "iti__country-list",
|
|
1643
1723
|
id: `iti-${this.#t}__country-listbox`,
|
|
1644
1724
|
role: "listbox",
|
|
1645
1725
|
[I.LABEL]: r.countryListAriaLabel
|
|
1646
|
-
}, this.#p), this.#N(), n && this.#R(), t || (this.#s = this.#L(), n && (this.#p.style.height = `${this.#s}px`)), i ? (this.#S =
|
|
1726
|
+
}, this.#p), this.#N(), n && this.#R(), t || (this.#s = this.#L(), n && (this.#p.style.height = `${this.#s}px`)), i ? (this.#S = q("div", { class: K({
|
|
1647
1727
|
iti: !0,
|
|
1648
1728
|
"iti--container": !0,
|
|
1649
1729
|
"iti--fullscreen-popup": t,
|
|
@@ -1652,11 +1732,11 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
1652
1732
|
}) }), this.#S.appendChild(this.#p)) : this.#c.appendChild(this.#p);
|
|
1653
1733
|
}
|
|
1654
1734
|
#A() {
|
|
1655
|
-
let { i18n: e, searchInputClass: t } = this.#e, n =
|
|
1656
|
-
this.#m =
|
|
1735
|
+
let { i18n: e, searchInputClass: t } = this.#e, n = q("div", { class: "iti__search-input-wrapper" }, this.#p);
|
|
1736
|
+
this.#m = q("span", {
|
|
1657
1737
|
class: "iti__search-icon",
|
|
1658
1738
|
[I.HIDDEN]: "true"
|
|
1659
|
-
}, n), this.#m.
|
|
1739
|
+
}, n), this.#m.appendChild(le()), this.#h = q("input", {
|
|
1660
1740
|
id: `iti-${this.#t}__search-input`,
|
|
1661
1741
|
type: "search",
|
|
1662
1742
|
class: `iti__search-input ${t}`,
|
|
@@ -1667,12 +1747,12 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
1667
1747
|
[I.CONTROLS]: `iti-${this.#t}__country-listbox`,
|
|
1668
1748
|
[I.AUTOCOMPLETE]: "list",
|
|
1669
1749
|
autocomplete: "off"
|
|
1670
|
-
}, n), this.#g =
|
|
1750
|
+
}, n), this.#g = q("button", {
|
|
1671
1751
|
type: "button",
|
|
1672
1752
|
class: `iti__search-clear ${_.HIDE}`,
|
|
1673
1753
|
[I.LABEL]: e.clearSearchAriaLabel,
|
|
1674
1754
|
tabindex: "-1"
|
|
1675
|
-
}, n), this.#g.
|
|
1755
|
+
}, n), this.#g.appendChild(ue(this.#t)), this.#x = q("span", { class: "iti__a11y-text" }, this.#p), this.#b = q("div", {
|
|
1676
1756
|
class: `iti__no-results ${_.HIDE}`,
|
|
1677
1757
|
[I.HIDDEN]: "true"
|
|
1678
1758
|
}, this.#p), this.#b.textContent = e.searchEmptyState ?? null;
|
|
@@ -1686,14 +1766,14 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
1686
1766
|
let n = t(this.telInputEl.getAttribute("name") || "");
|
|
1687
1767
|
if (n.phone) {
|
|
1688
1768
|
let t = this.telInputEl.form?.querySelector(`input[name="${n.phone}"]`);
|
|
1689
|
-
t ? this.#v = t : (this.#v =
|
|
1769
|
+
t ? this.#v = t : (this.#v = q("input", {
|
|
1690
1770
|
type: "hidden",
|
|
1691
1771
|
name: n.phone
|
|
1692
1772
|
}), e.appendChild(this.#v));
|
|
1693
1773
|
}
|
|
1694
1774
|
if (n.country) {
|
|
1695
1775
|
let t = this.telInputEl.form?.querySelector(`input[name="${n.country}"]`);
|
|
1696
|
-
t ? this.#y = t : (this.#y =
|
|
1776
|
+
t ? this.#y = t : (this.#y = q("input", {
|
|
1697
1777
|
type: "hidden",
|
|
1698
1778
|
name: n.country
|
|
1699
1779
|
}), e.appendChild(this.#y));
|
|
@@ -1702,17 +1782,17 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
1702
1782
|
#N() {
|
|
1703
1783
|
let e = document.createDocumentFragment();
|
|
1704
1784
|
for (let t = 0; t < this.#i.length; t++) {
|
|
1705
|
-
let n = this.#i[t], r =
|
|
1785
|
+
let n = this.#i[t], r = K({ [_.COUNTRY_ITEM]: !0 }), i = q("li", {
|
|
1706
1786
|
id: `iti-${this.#t}__item-${n.iso2}`,
|
|
1707
1787
|
class: r,
|
|
1708
1788
|
tabindex: "-1",
|
|
1709
1789
|
role: "option",
|
|
1710
1790
|
[I.SELECTED]: "false"
|
|
1711
1791
|
});
|
|
1712
|
-
i.dataset[F.DIAL_CODE] = n.dialCode, i.dataset[F.ISO2] = n.iso2, this.#T.set(n.iso2, i), this.#e.showFlags &&
|
|
1713
|
-
let a =
|
|
1792
|
+
i.dataset[F.DIAL_CODE] = n.dialCode, i.dataset[F.ISO2] = n.iso2, this.#T.set(n.iso2, i), this.#e.showFlags && q("div", { class: `${_.FLAG} iti__${n.iso2}` }, i);
|
|
1793
|
+
let a = q("span", { class: "iti__country-name" }, i);
|
|
1714
1794
|
a.textContent = `${n.name} `;
|
|
1715
|
-
let o =
|
|
1795
|
+
let o = q("span", { class: "iti__dial-code" }, a);
|
|
1716
1796
|
this.#n && o.setAttribute("dir", "ltr"), o.textContent = `(+${n.dialCode})`, e.appendChild(i);
|
|
1717
1797
|
}
|
|
1718
1798
|
this.#_.appendChild(e);
|
|
@@ -1746,7 +1826,7 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
1746
1826
|
#L() {
|
|
1747
1827
|
let t = e.#F();
|
|
1748
1828
|
this.#p.classList.remove(_.HIDE);
|
|
1749
|
-
let n =
|
|
1829
|
+
let n = q("div", { class: "iti iti--inline-dropdown" });
|
|
1750
1830
|
n.appendChild(this.#p), n.style.visibility = "hidden", t.appendChild(n);
|
|
1751
1831
|
let r = this.#p.offsetHeight;
|
|
1752
1832
|
return t.removeChild(n), n.style.visibility = "", this.#p.classList.add(_.HIDE), r > 0 ? r : S.FALLBACK_DROPDOWN_HEIGHT;
|
|
@@ -1759,8 +1839,8 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
1759
1839
|
let t;
|
|
1760
1840
|
if (e === "") t = this.#i;
|
|
1761
1841
|
else {
|
|
1762
|
-
let n =
|
|
1763
|
-
t =
|
|
1842
|
+
let n = ge.toAscii(e);
|
|
1843
|
+
t = me(this.#i, this.#a, n);
|
|
1764
1844
|
}
|
|
1765
1845
|
this.#ee(t);
|
|
1766
1846
|
}
|
|
@@ -1867,7 +1947,7 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
1867
1947
|
this.#h.addEventListener("input", () => this.#V(), { signal: e }), this.#g.addEventListener("click", () => this.#H(), { signal: e });
|
|
1868
1948
|
}
|
|
1869
1949
|
#Z(e) {
|
|
1870
|
-
let t =
|
|
1950
|
+
let t = he(this.#i, this.#a, e);
|
|
1871
1951
|
if (t) {
|
|
1872
1952
|
let e = this.#T.get(t.iso2);
|
|
1873
1953
|
this.#W(e);
|
|
@@ -1880,14 +1960,10 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
1880
1960
|
#$(e) {
|
|
1881
1961
|
if (this.#C && this.#C.dataset[F.ISO2] !== e && (this.#C.setAttribute(I.SELECTED, "false"), this.#C.querySelector(".iti__country-check")?.remove(), this.#C = null), e && !this.#C) {
|
|
1882
1962
|
let t = this.#_.querySelector(`[data-iso2="${e}"]`);
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
[I.HIDDEN]: "true"
|
|
1888
|
-
}, t);
|
|
1889
|
-
e.innerHTML = le(), this.#C = t, this.#e.dropdownAlwaysOpen && this.#W(t);
|
|
1890
|
-
}
|
|
1963
|
+
t && (t.setAttribute(I.SELECTED, "true"), q("span", {
|
|
1964
|
+
class: "iti__country-check",
|
|
1965
|
+
[I.HIDDEN]: "true"
|
|
1966
|
+
}, t).appendChild(de()), this.#C = t, this.#e.dropdownAlwaysOpen && this.#W(t));
|
|
1891
1967
|
}
|
|
1892
1968
|
}
|
|
1893
1969
|
#ee(e) {
|
|
@@ -1945,8 +2021,8 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
1945
2021
|
setCountry(e) {
|
|
1946
2022
|
let { allowDropdown: t, showFlags: n, separateDialCode: r, i18n: i } = this.#e, a = e?.name, o = e?.dialCode, s = e?.iso2 ?? "";
|
|
1947
2023
|
if (t && this.#$(s), this.#l) {
|
|
1948
|
-
let e = s && n ? `${_.FLAG} iti__${s}` : `${_.FLAG} ${_.GLOBE}`, t, r, c;
|
|
1949
|
-
s ? (r = a, t = i.selectedCountryAriaLabel.replace("${countryName}", a).replace("${dialCode}", `+${o}`),
|
|
2024
|
+
let e = s && n ? `${_.FLAG} iti__${s}` : `${_.FLAG} ${_.GLOBE}`, t, r, c = null;
|
|
2025
|
+
s ? (r = a, t = i.selectedCountryAriaLabel.replace("${countryName}", a).replace("${dialCode}", `+${o}`), n || (c = fe())) : (r = i.noCountrySelected, t = i.noCountrySelected, c = fe()), this.#u.className = e, this.#l.setAttribute("title", r), this.#l.setAttribute(I.LABEL, t), c ? this.#u.replaceChildren(c) : this.#u.replaceChildren();
|
|
1950
2026
|
}
|
|
1951
2027
|
if (r) {
|
|
1952
2028
|
let e = o ? `+${o}` : "";
|
|
@@ -1958,10 +2034,10 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
1958
2034
|
let e = this.telInputEl.parentNode;
|
|
1959
2035
|
e && (e.before(this.telInputEl), e.remove()), this.#T.clear();
|
|
1960
2036
|
}
|
|
1961
|
-
},
|
|
2037
|
+
}, ve = (e) => {
|
|
1962
2038
|
let { onlyCountries: t, excludeCountries: n } = e;
|
|
1963
2039
|
return t?.length ? h.filter((e) => t.includes(e.iso2)) : n?.length ? h.filter((e) => !n.includes(e.iso2)) : [...h];
|
|
1964
|
-
},
|
|
2040
|
+
}, ye = (e, t) => {
|
|
1965
2041
|
let { countryNameLocale: n, countryNameOverrides: r } = t, i;
|
|
1966
2042
|
try {
|
|
1967
2043
|
i = typeof Intl < "u" && typeof Intl.DisplayNames == "function" ? new Intl.DisplayNames(n, { type: "region" }) : null;
|
|
@@ -1969,7 +2045,7 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
1969
2045
|
console.error(e), i = null;
|
|
1970
2046
|
}
|
|
1971
2047
|
for (let t of e) t.name = r[t.iso2] || i?.of(t.iso2.toUpperCase()) || "";
|
|
1972
|
-
},
|
|
2048
|
+
}, be = (e) => {
|
|
1973
2049
|
let t = /* @__PURE__ */ new Set(), n = 0, r = {}, i = (e, t) => {
|
|
1974
2050
|
if (!e || !t) return;
|
|
1975
2051
|
t.length > n && (n = t.length), Object.hasOwn(r, t) || (r[t] = []);
|
|
@@ -1998,7 +2074,7 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
1998
2074
|
dialCodeMaxLength: n,
|
|
1999
2075
|
dialCodeToIso2Map: r
|
|
2000
2076
|
};
|
|
2001
|
-
},
|
|
2077
|
+
}, xe = (e, t) => {
|
|
2002
2078
|
let { countryOrder: n } = t;
|
|
2003
2079
|
e.sort((e, t) => {
|
|
2004
2080
|
if (n) {
|
|
@@ -2007,7 +2083,7 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
2007
2083
|
}
|
|
2008
2084
|
return e.name.localeCompare(t.name);
|
|
2009
2085
|
});
|
|
2010
|
-
},
|
|
2086
|
+
}, Se = /* @__PURE__ */ new Set([
|
|
2011
2087
|
"800",
|
|
2012
2088
|
"808",
|
|
2013
2089
|
"870",
|
|
@@ -2016,17 +2092,17 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
2016
2092
|
"883",
|
|
2017
2093
|
"888",
|
|
2018
2094
|
"979"
|
|
2019
|
-
]),
|
|
2020
|
-
let t =
|
|
2021
|
-
return e.startsWith("+") &&
|
|
2022
|
-
},
|
|
2095
|
+
]), Ce = (e) => {
|
|
2096
|
+
let t = W(e).slice(0, 3);
|
|
2097
|
+
return e.startsWith("+") && Se.has(t);
|
|
2098
|
+
}, we = (e, t, n, r) => {
|
|
2023
2099
|
if (!n || !t) return e;
|
|
2024
2100
|
let i = `+${r.dialCode}`, a = e[i.length] === " " || e[i.length] === "-" ? i.length + 1 : i.length;
|
|
2025
2101
|
return e.substring(a);
|
|
2026
|
-
},
|
|
2102
|
+
}, Te = (e, t, n, r, i) => {
|
|
2027
2103
|
let a = n ? n.formatNumberAsYouType(e, r?.iso2) : e, o = r?.dialCode;
|
|
2028
2104
|
return i && t.charAt(0) !== "+" && a.includes(`+${o}`) ? (a.split(`+${o}`)[1] || "").trim() : a;
|
|
2029
|
-
},
|
|
2105
|
+
}, Ee = (e, t, n, r) => {
|
|
2030
2106
|
if (n === 0 && !r) return 0;
|
|
2031
2107
|
let i = 0;
|
|
2032
2108
|
for (let n = 0; n < t.length; n++) {
|
|
@@ -2034,7 +2110,7 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
2034
2110
|
if (r && i === e + 1) return n;
|
|
2035
2111
|
}
|
|
2036
2112
|
return t.length;
|
|
2037
|
-
},
|
|
2113
|
+
}, De = /* @__PURE__ */ new Set([
|
|
2038
2114
|
"800",
|
|
2039
2115
|
"822",
|
|
2040
2116
|
"833",
|
|
@@ -2052,16 +2128,16 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
2052
2128
|
"887",
|
|
2053
2129
|
"888",
|
|
2054
2130
|
"889"
|
|
2055
|
-
]),
|
|
2056
|
-
let t =
|
|
2131
|
+
]), Oe = (e) => {
|
|
2132
|
+
let t = W(e);
|
|
2057
2133
|
if (t.startsWith(C.NANP) && t.length >= 4) {
|
|
2058
2134
|
let e = t.substring(1, 4);
|
|
2059
|
-
return
|
|
2135
|
+
return De.has(e);
|
|
2060
2136
|
}
|
|
2061
2137
|
return !1;
|
|
2062
|
-
},
|
|
2138
|
+
}, ke = 0, X = (e) => {
|
|
2063
2139
|
if (!Q.utils) throw Error(`intlTelInput.utils is required for ${e}(). See: https://intl-tel-input.com/docs/utils`);
|
|
2064
|
-
},
|
|
2140
|
+
}, Ae = () => {
|
|
2065
2141
|
let e, t;
|
|
2066
2142
|
return {
|
|
2067
2143
|
promise: new Promise((n, r) => {
|
|
@@ -2092,13 +2168,13 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
2092
2168
|
#g;
|
|
2093
2169
|
#_;
|
|
2094
2170
|
constructor(e, t = {}) {
|
|
2095
|
-
this.id =
|
|
2096
|
-
let n =
|
|
2171
|
+
this.id = ke++, _e.validateInput(e);
|
|
2172
|
+
let n = ae(t);
|
|
2097
2173
|
this.#t = {
|
|
2098
|
-
...
|
|
2174
|
+
...R,
|
|
2099
2175
|
...n
|
|
2100
|
-
},
|
|
2101
|
-
let { dialCodes: r, dialCodeMaxLength: i, dialCodeToIso2Map: a } =
|
|
2176
|
+
}, oe(this.#t), se(this.#t), this.#e = new _e(e, this.#t, this.id), this.#n = typeof navigator < "u" && /Android/i.test(navigator.userAgent), this.#m = new ge(e.value), this.promise = this.#b(this.#t), this.#r = ve(this.#t);
|
|
2177
|
+
let { dialCodes: r, dialCodeMaxLength: i, dialCodeToIso2Map: a } = be(this.#r);
|
|
2102
2178
|
this.#o = r, this.#i = i, this.#a = a, this.#s = new Map(this.#r.map((e) => [e.iso2, e])), this.#x();
|
|
2103
2179
|
}
|
|
2104
2180
|
#v() {
|
|
@@ -2110,16 +2186,16 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
2110
2186
|
}
|
|
2111
2187
|
#b(e) {
|
|
2112
2188
|
let { initialCountry: t, geoIpLookup: n, loadUtils: r } = e, i = t === D.AUTO && !!n, a = !!r && !Q.utils;
|
|
2113
|
-
return i && (this.#g =
|
|
2189
|
+
return i && (this.#g = Ae()), a && (this.#_ = Ae()), Promise.all([this.#g?.promise, this.#_?.promise]).then(() => {});
|
|
2114
2190
|
}
|
|
2115
2191
|
#x() {
|
|
2116
2192
|
this.#p = new AbortController(), this.#S(), this.#e.buildMarkup(this.#r, this.#c), this.#C(), this.#w(), this.#T(), this.#t.dropdownAlwaysOpen && this.#U();
|
|
2117
2193
|
}
|
|
2118
2194
|
#S() {
|
|
2119
|
-
|
|
2195
|
+
ye(this.#r, this.#t), xe(this.#r, this.#t), this.#c = pe(this.#r);
|
|
2120
2196
|
}
|
|
2121
2197
|
#C(e = !1) {
|
|
2122
|
-
let t = this.#e.telInputEl.getAttribute("value"), n = this.#m.normalise(t ?? ""), r = this.#v(), i = n && n.startsWith("+") && (!r || !r.startsWith("+")) ? n : r, a = this.#te(i), o =
|
|
2198
|
+
let t = this.#e.telInputEl.getAttribute("value"), n = this.#m.normalise(t ?? ""), r = this.#v(), i = n && n.startsWith("+") && (!r || !r.startsWith("+")) ? n : r, a = this.#te(i), o = Oe(i), { initialCountry: s, geoIpLookup: c } = this.#t, l = s === D.AUTO && c, u = l && Q.autoCountry ? Q.autoCountry : s, d = l && !e && !Q.autoCountry, f = m(u);
|
|
2123
2199
|
a ? o ? f ? this.#Y(u) : d || this.#Y(T.ISO2) : (f && this.#Y(u), this.#G(i)) : f ? this.#Y(u) : d || this.#Y(""), i && this.#W(i);
|
|
2124
2200
|
}
|
|
2125
2201
|
#w() {
|
|
@@ -2172,12 +2248,12 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
2172
2248
|
});
|
|
2173
2249
|
}
|
|
2174
2250
|
#M(e, t) {
|
|
2175
|
-
let n = this.#e.telInputEl.selectionStart || 0, r = e.substring(0, n).replace(b.NON_PLUS_NUMERIC_GLOBAL, "").length, i =
|
|
2251
|
+
let n = this.#e.telInputEl.selectionStart || 0, r = e.substring(0, n).replace(b.NON_PLUS_NUMERIC_GLOBAL, "").length, i = Te(this.#re(), e, Q.utils, this.#l, this.#t.separateDialCode), a = Ee(r, i, n, t);
|
|
2176
2252
|
this.#y(i), this.#e.telInputEl.setSelectionRange(a, a);
|
|
2177
2253
|
}
|
|
2178
2254
|
#N(e) {
|
|
2179
2255
|
if (e.startsWith("+") && this.#l && this.#te(e)) {
|
|
2180
|
-
let t =
|
|
2256
|
+
let t = we(e, !0, !0, this.#l);
|
|
2181
2257
|
this.#y(t);
|
|
2182
2258
|
}
|
|
2183
2259
|
}
|
|
@@ -2289,7 +2365,7 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
2289
2365
|
#W(e) {
|
|
2290
2366
|
let { formatOnDisplay: t, nationalMode: n, separateDialCode: r } = this.#t, i = e;
|
|
2291
2367
|
if (t && Q.utils && this.#l) {
|
|
2292
|
-
let t =
|
|
2368
|
+
let t = Ce(e), a = n && !t || !i.startsWith("+") && !r ? M.NATIONAL : M.INTERNATIONAL;
|
|
2293
2369
|
i = Q.utils.formatNumber(i, this.#l?.iso2, a);
|
|
2294
2370
|
}
|
|
2295
2371
|
i = this.#ie(i), this.#y(i);
|
|
@@ -2305,9 +2381,9 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
2305
2381
|
#q(e) {
|
|
2306
2382
|
let t = e.indexOf("+"), n = t > 0 ? e.substring(t) : e, r = this.#l?.iso2;
|
|
2307
2383
|
n = this.#K(n);
|
|
2308
|
-
let i = this.#te(n, !0), a =
|
|
2384
|
+
let i = this.#te(n, !0), a = W(n);
|
|
2309
2385
|
if (i) {
|
|
2310
|
-
let e =
|
|
2386
|
+
let e = W(i), t = this.#a[e];
|
|
2311
2387
|
return t.length === 1 ? t[0] === r ? null : t[0] : this.#J(t, e, a);
|
|
2312
2388
|
} else if (n.startsWith("+") && a.length) {
|
|
2313
2389
|
let e = this.#l?.dialCode || "";
|
|
@@ -2318,7 +2394,7 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
2318
2394
|
#J(e, t, n) {
|
|
2319
2395
|
let r = this.#l?.iso2, i = this.#l?.dialCode;
|
|
2320
2396
|
if (!r && this.#d && e.includes(this.#d)) return this.#d;
|
|
2321
|
-
if (i === C.NANP &&
|
|
2397
|
+
if (i === C.NANP && Oe(n)) return null;
|
|
2322
2398
|
let a = this.#l?.areaCodes, o = this.#l?.priority;
|
|
2323
2399
|
if (a) {
|
|
2324
2400
|
let e = a.map((e) => `${i}${e}`);
|
|
@@ -2386,7 +2462,7 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
2386
2462
|
return n;
|
|
2387
2463
|
}
|
|
2388
2464
|
#ne(e) {
|
|
2389
|
-
let t = this.#l?.dialCode, n =
|
|
2465
|
+
let t = this.#l?.dialCode, n = W(e);
|
|
2390
2466
|
return (this.#t.separateDialCode && !e.startsWith("+") && t && n ? `+${t}` : "") + e;
|
|
2391
2467
|
}
|
|
2392
2468
|
#re() {
|
|
@@ -2394,7 +2470,7 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
2394
2470
|
return this.#ne(e);
|
|
2395
2471
|
}
|
|
2396
2472
|
#ie(e) {
|
|
2397
|
-
let t =
|
|
2473
|
+
let t = we(e, !!this.#te(e), this.#t.separateDialCode, this.#l);
|
|
2398
2474
|
return this.#B(t);
|
|
2399
2475
|
}
|
|
2400
2476
|
#ae() {
|
|
@@ -2469,7 +2545,7 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
2469
2545
|
if (r) {
|
|
2470
2546
|
if (e === w.DIAL_CODE && r[0] === w.MOBILE_PREFIX && r.length !== w.MOBILE_CORE_LENGTH) return !1;
|
|
2471
2547
|
if (!b.ALPHA_UNICODE.test(n) && e) {
|
|
2472
|
-
let t =
|
|
2548
|
+
let t = W(n.startsWith("+") ? n.slice(1 + e.length) : n).length;
|
|
2473
2549
|
if (r.length > t) return !1;
|
|
2474
2550
|
}
|
|
2475
2551
|
}
|
|
@@ -2480,7 +2556,7 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
2480
2556
|
}
|
|
2481
2557
|
#ue(e) {
|
|
2482
2558
|
let { allowNumberExtensions: t, allowPhonewords: n, allowedNumberTypes: r } = this.#t, i = this.#l?.iso2, a = this.#re();
|
|
2483
|
-
return !this.#l && !
|
|
2559
|
+
return !this.#l && !Ce(a) || !(e === "precise" ? Q.utils.isValidNumber : Q.utils.isPossibleNumber)(a, i, r) ? !1 : b.ALPHA_UNICODE.test(a) ? Q.utils.getExtension(a, i) ? t : n : !0;
|
|
2484
2560
|
}
|
|
2485
2561
|
setCountry(e) {
|
|
2486
2562
|
if (!this.#f) return;
|
|
@@ -2532,7 +2608,7 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
2532
2608
|
let n = new Z(e, t);
|
|
2533
2609
|
return Q.instances.set(String(n.id), n), e.iti = n, n;
|
|
2534
2610
|
}, {
|
|
2535
|
-
defaults:
|
|
2611
|
+
defaults: R,
|
|
2536
2612
|
documentReady: () => document.readyState === "complete",
|
|
2537
2613
|
getCountryData: () => h,
|
|
2538
2614
|
getInstance: (e) => {
|
|
@@ -2554,11 +2630,11 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
2554
2630
|
},
|
|
2555
2631
|
startedLoadingUtils: !1,
|
|
2556
2632
|
startedLoadingAutoCountry: !1,
|
|
2557
|
-
version: "28.0.
|
|
2633
|
+
version: "28.0.5",
|
|
2558
2634
|
NUMBER_FORMAT: M,
|
|
2559
2635
|
NUMBER_TYPE: N,
|
|
2560
2636
|
VALIDATION_ERROR: P
|
|
2561
|
-
}), $ = Q,
|
|
2637
|
+
}), $ = Q, je = /* @__PURE__ */ n({
|
|
2562
2638
|
inheritAttrs: !1,
|
|
2563
2639
|
__name: "IntlTelInput",
|
|
2564
2640
|
props: {
|
|
@@ -2688,4 +2764,4 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
2688
2764
|
}
|
|
2689
2765
|
});
|
|
2690
2766
|
//#endregion
|
|
2691
|
-
export { $ as n,
|
|
2767
|
+
export { $ as n, je as t };
|
package/dist/IntlTelInput.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, t } from "./IntlTelInput-
|
|
1
|
+
import { n as e, t } from "./IntlTelInput-iDXQmbkb.js";
|
|
2
2
|
//#region packages/core/dist/js/utils.js
|
|
3
3
|
var n = {};
|
|
4
4
|
//#endregion
|
|
@@ -9147,7 +9147,7 @@ var n = {};
|
|
|
9147
9147
|
[
|
|
9148
9148
|
,
|
|
9149
9149
|
,
|
|
9150
|
-
"2(?:1982[0-6]|3314[05-9])\\d{3}|(?:2(?:1(?:160|962)|3(?:(?:
|
|
9150
|
+
"2(?:1982[0-6]|3314[05-9])\\d{3}|(?:2(?:1(?:160|962)|3(?:(?:[24]\\d|50)\\d|3(?:[034679]\\d|1[0-35-9]|2[1-9]|5[0-24-9]|8[0-389])|600)|646[59])|(?:600|80[1-9])\\d\\d|9(?:(?:10[0-2]|7[1-9]\\d)\\d|3(?:[0-57-9]\\d\\d|6(?:0[02-9]|[1-9]\\d))|6(?:[0-8]\\d\\d|9(?:[02-79]\\d|1[05-9]))|9(?:[03-9]\\d\\d|1(?:[0235-9]\\d|4[0-24-9])|2(?:[0-79]\\d|8[0-46-9]))))\\d{4}|(?:22|3[2-5]|[47][1-35]|5[1-3578]|6[13-57]|8[1-9]|9[2458])\\d{7}",
|
|
9151
9151
|
,
|
|
9152
9152
|
,
|
|
9153
9153
|
,
|
|
@@ -9159,7 +9159,7 @@ var n = {};
|
|
|
9159
9159
|
[
|
|
9160
9160
|
,
|
|
9161
9161
|
,
|
|
9162
|
-
"2(?:1982[0-6]|3314[05-9])\\d{3}|(?:2(?:1(?:160|962)|3(?:(?:
|
|
9162
|
+
"2(?:1982[0-6]|3314[05-9])\\d{3}|(?:2(?:1(?:160|962)|3(?:(?:[24]\\d|50)\\d|3(?:[034679]\\d|1[0-35-9]|2[1-9]|5[0-24-9]|8[0-389])|600)|646[59])|80[1-8]\\d\\d|9(?:(?:10[0-2]|7[1-9]\\d)\\d|3(?:[0-57-9]\\d\\d|6(?:0[02-9]|[1-9]\\d))|6(?:[0-8]\\d\\d|9(?:[02-79]\\d|1[05-9]))|9(?:[03-9]\\d\\d|1(?:[0235-9]\\d|4[0-24-9])|2(?:[0-79]\\d|8[0-46-9]))))\\d{4}|(?:22|3[2-5]|[47][1-35]|5[1-3578]|6[13-57]|8[1-9]|9[2458])\\d{7}",
|
|
9163
9163
|
,
|
|
9164
9164
|
,
|
|
9165
9165
|
,
|
|
@@ -11301,7 +11301,7 @@ var n = {};
|
|
|
11301
11301
|
[
|
|
11302
11302
|
,
|
|
11303
11303
|
,
|
|
11304
|
-
"
|
|
11304
|
+
"7060\\d{5}|(?:60[1-8]|7(?:0[2-5]|19|[2379]\\d))\\d{6}",
|
|
11305
11305
|
,
|
|
11306
11306
|
,
|
|
11307
11307
|
,
|
|
@@ -11517,7 +11517,7 @@ var n = {};
|
|
|
11517
11517
|
[
|
|
11518
11518
|
,
|
|
11519
11519
|
,
|
|
11520
|
-
"1(?:(?:
|
|
11520
|
+
"1(?:6[023]|7\\d)\\d{7,8}|15(?:[0-25-9]\\d\\d|3(?:10|33))\\d{6}",
|
|
11521
11521
|
,
|
|
11522
11522
|
,
|
|
11523
11523
|
,
|
|
@@ -20151,14 +20151,15 @@ var n = {};
|
|
|
20151
20151
|
[
|
|
20152
20152
|
,
|
|
20153
20153
|
,
|
|
20154
|
-
"(?:6(?:1279|828[01489])|7(?:887[02-9]|9(?:313|79[07-9]))|8(?:079[04-9]|(?:84|91)7[02-8]))\\d{5}|(?:160[01]|6(?:12|[2-
|
|
20154
|
+
"(?:6(?:1279|828[01489])|7(?:887[02-9]|9(?:313|79[07-9]))|8(?:079[04-9]|(?:84|91)7[02-8]))\\d{5}|(?:160[01]|6(?:(?:12|[2-4]1|5[17]|6[13]|80)[0189]|7(?:1[0189]|86))|7(?:1(?:2[0189]|9[0-5])|3(?:2[5-8]|[34][017-9]|9[016-9])|5(?:[15][017-9]|2[04-9]|9[7-9])|6(?:0[0-47]|1[0-257-9]|2[0-4]|3[19]|5[4589])|70[0289]|88[089]|97[02-8])|8(?:0(?:6[67]|7[02-8])|70[017-9]|84[01489]|91[0-289]))\\d{6}|(?:731|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[0189]\\d|7[02-8])\\d{5}|(?:6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|4[0189]|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-5])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]|881))[0189]\\d{5}|(?:6(?:[09]\\d|1[04679]|2[03689]|3[05-9]|4[0489]|50|6[069]|7[07]|8[7-9])|7(?:[024]\\d|3[05-8]|5[0346-8]|6[6-9]|7[1-9]|8[0-79]|9[089])|8(?:0[01589]|1[0-57-9]|2[235-9]|3[03-57-9]|[45]\\d|6[02457-9]|7[1-69]|8[0-25-9]|9[02-9])|9\\d\\d)\\d{7}",
|
|
20155
20155
|
,
|
|
20156
20156
|
,
|
|
20157
20157
|
,
|
|
20158
20158
|
"8123456789",
|
|
20159
20159
|
,
|
|
20160
20160
|
,
|
|
20161
|
-
[10]
|
|
20161
|
+
[10],
|
|
20162
|
+
[6]
|
|
20162
20163
|
],
|
|
20163
20164
|
[
|
|
20164
20165
|
,
|
|
@@ -20283,9 +20284,9 @@ var n = {};
|
|
|
20283
20284
|
"(\\d{3})(\\d{3})(\\d{4})",
|
|
20284
20285
|
"$1 $2 $3",
|
|
20285
20286
|
[
|
|
20286
|
-
"1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|
|
|
20287
|
-
"1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:
|
|
20288
|
-
"1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:
|
|
20287
|
+
"1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[14]",
|
|
20288
|
+
"1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31)|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]",
|
|
20289
|
+
"1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|8(?:16|2[014]|3[126]|6[136]|7[78]|83)(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"
|
|
20289
20290
|
],
|
|
20290
20291
|
"0$1",
|
|
20291
20292
|
,
|
|
@@ -20296,9 +20297,9 @@ var n = {};
|
|
|
20296
20297
|
"(\\d{4})(\\d{3})(\\d{3})",
|
|
20297
20298
|
"$1 $2 $3",
|
|
20298
20299
|
[
|
|
20299
|
-
"1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|
|
|
20300
|
-
"1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[
|
|
20301
|
-
"1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[
|
|
20300
|
+
"1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|3[129]|5[29]|6[02-5]|70)|807",
|
|
20301
|
+
"1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]",
|
|
20302
|
+
"1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"
|
|
20302
20303
|
],
|
|
20303
20304
|
"0$1",
|
|
20304
20305
|
,
|
|
@@ -20388,9 +20389,9 @@ var n = {};
|
|
|
20388
20389
|
"(\\d{3})(\\d{3})(\\d{4})",
|
|
20389
20390
|
"$1 $2 $3",
|
|
20390
20391
|
[
|
|
20391
|
-
"1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|
|
|
20392
|
-
"1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:
|
|
20393
|
-
"1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:
|
|
20392
|
+
"1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[14]",
|
|
20393
|
+
"1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31)|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]",
|
|
20394
|
+
"1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|8(?:16|2[014]|3[126]|6[136]|7[78]|83)(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"
|
|
20394
20395
|
],
|
|
20395
20396
|
"0$1",
|
|
20396
20397
|
,
|
|
@@ -20401,9 +20402,9 @@ var n = {};
|
|
|
20401
20402
|
"(\\d{4})(\\d{3})(\\d{3})",
|
|
20402
20403
|
"$1 $2 $3",
|
|
20403
20404
|
[
|
|
20404
|
-
"1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|
|
|
20405
|
-
"1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[
|
|
20406
|
-
"1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[
|
|
20405
|
+
"1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|3[129]|5[29]|6[02-5]|70)|807",
|
|
20406
|
+
"1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]",
|
|
20407
|
+
"1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"
|
|
20407
20408
|
],
|
|
20408
20409
|
"0$1",
|
|
20409
20410
|
,
|
|
@@ -37683,7 +37684,7 @@ var n = {};
|
|
|
37683
37684
|
[
|
|
37684
37685
|
,
|
|
37685
37686
|
,
|
|
37686
|
-
"
|
|
37687
|
+
"898[02-9]\\d{4}|(?:8(?:0[1-9]|[1-8]\\d|9[0-79])|9[0-8]\\d)\\d{5}",
|
|
37687
37688
|
,
|
|
37688
37689
|
,
|
|
37689
37690
|
,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intl-tel-input/vue",
|
|
3
|
-
"version": "28.0.
|
|
3
|
+
"version": "28.0.5",
|
|
4
4
|
"description": "A Vue component for intl-tel-input, for entering, formatting, and validating international telephone numbers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"README.md"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"intl-tel-input": "^28.0.
|
|
27
|
+
"intl-tel-input": "^28.0.5"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"vue": "^3.0.0"
|
|
@@ -42,14 +42,25 @@
|
|
|
42
42
|
"keywords": [
|
|
43
43
|
"intl-tel-input",
|
|
44
44
|
"vue",
|
|
45
|
+
"vue3",
|
|
45
46
|
"component",
|
|
47
|
+
"composition-api",
|
|
48
|
+
"v-model",
|
|
46
49
|
"international",
|
|
50
|
+
"country",
|
|
51
|
+
"country-picker",
|
|
47
52
|
"telephone",
|
|
48
53
|
"phone",
|
|
54
|
+
"phone-number",
|
|
55
|
+
"tel",
|
|
56
|
+
"mobile",
|
|
57
|
+
"dial-code",
|
|
49
58
|
"input",
|
|
50
59
|
"flag",
|
|
51
60
|
"dropdown",
|
|
52
61
|
"validation",
|
|
62
|
+
"libphonenumber",
|
|
63
|
+
"formatting",
|
|
53
64
|
"typescript"
|
|
54
65
|
]
|
|
55
66
|
}
|