intl-tel-input 25.3.2 → 25.4.1
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/README.md +22 -12
- package/build/css/demo.css +6 -0
- package/build/js/data.js +1 -1
- package/build/js/data.min.js +1 -1
- package/build/js/i18n/ee/countries.js +239 -239
- package/build/js/i18n/index.js +1 -0
- package/build/js/i18n/pl/interface.js +11 -3
- package/build/js/i18n/uz/countries.js +245 -0
- package/build/js/i18n/uz/index.js +5 -0
- package/build/js/i18n/uz/interface.js +13 -0
- package/build/js/intlTelInput.d.ts +26 -1
- package/build/js/intlTelInput.js +13 -7
- package/build/js/intlTelInput.min.js +2 -2
- package/build/js/intlTelInputWithUtils.js +59 -46
- package/build/js/intlTelInputWithUtils.min.js +2 -2
- package/build/js/utils.js +20 -18
- package/package.json +22 -6
- package/react/README.md +1 -1
- package/react/build/IntlTelInput.cjs +12 -6
- package/react/build/IntlTelInput.d.ts +26 -1
- package/react/build/IntlTelInput.js +12 -6
- package/react/build/IntlTelInputWithUtils.cjs +58 -45
- package/react/build/IntlTelInputWithUtils.js +58 -45
- package/vue/README.md +1 -1
- package/vue/build/IntlTelInput.mjs +7 -6
- package/vue/build/IntlTelInputWithUtils.mjs +106 -99
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { mergeModels as
|
|
2
|
-
const
|
|
1
|
+
import { mergeModels as s2, useModel as D2, ref as I1, onMounted as M2, watch as P2, onUnmounted as x2, withDirectives as R2, createElementBlock as B2, openBlock as k2, mergeProps as O2, vModelText as G2 } from "vue";
|
|
2
|
+
const r2 = [
|
|
3
3
|
[
|
|
4
4
|
"af",
|
|
5
5
|
// Afghanistan
|
|
@@ -1323,8 +1323,8 @@ const s2 = [
|
|
|
1323
1323
|
"263"
|
|
1324
1324
|
]
|
|
1325
1325
|
], W = [];
|
|
1326
|
-
for (let y = 0; y <
|
|
1327
|
-
const e =
|
|
1326
|
+
for (let y = 0; y < r2.length; y++) {
|
|
1327
|
+
const e = r2[y];
|
|
1328
1328
|
W[y] = {
|
|
1329
1329
|
name: "",
|
|
1330
1330
|
// this is now populated in the plugin
|
|
@@ -1336,7 +1336,7 @@ for (let y = 0; y < s2.length; y++) {
|
|
|
1336
1336
|
nationalPrefix: e[4] || null
|
|
1337
1337
|
};
|
|
1338
1338
|
}
|
|
1339
|
-
const
|
|
1339
|
+
const F2 = {
|
|
1340
1340
|
ad: "Andorra",
|
|
1341
1341
|
ae: "United Arab Emirates",
|
|
1342
1342
|
af: "Afghanistan",
|
|
@@ -1579,7 +1579,7 @@ const O2 = {
|
|
|
1579
1579
|
za: "South Africa",
|
|
1580
1580
|
zm: "Zambia",
|
|
1581
1581
|
zw: "Zimbabwe"
|
|
1582
|
-
},
|
|
1582
|
+
}, U2 = {
|
|
1583
1583
|
selectedCountryAriaLabel: "Selected country",
|
|
1584
1584
|
noCountrySelected: "No country selected",
|
|
1585
1585
|
countryListAriaLabel: "List of countries",
|
|
@@ -1590,11 +1590,11 @@ const O2 = {
|
|
|
1590
1590
|
// additional countries (not supported by country-list library)
|
|
1591
1591
|
ac: "Ascension Island",
|
|
1592
1592
|
xk: "Kosovo"
|
|
1593
|
-
},
|
|
1593
|
+
}, l2 = { ...F2, ...U2 };
|
|
1594
1594
|
for (let y = 0; y < W.length; y++)
|
|
1595
|
-
W[y].name =
|
|
1596
|
-
let
|
|
1597
|
-
const
|
|
1595
|
+
W[y].name = l2[W[y].iso2];
|
|
1596
|
+
let V2 = 0;
|
|
1597
|
+
const a2 = {
|
|
1598
1598
|
//* Whether or not to allow the dropdown.
|
|
1599
1599
|
allowDropdown: !0,
|
|
1600
1600
|
//* Add a placeholder in the input with an example number for the selected country.
|
|
@@ -1649,7 +1649,7 @@ const l2 = {
|
|
|
1649
1649
|
) : !1,
|
|
1650
1650
|
//* The number type to enforce during validation.
|
|
1651
1651
|
validationNumberTypes: ["MOBILE"]
|
|
1652
|
-
},
|
|
1652
|
+
}, K2 = [
|
|
1653
1653
|
"800",
|
|
1654
1654
|
"822",
|
|
1655
1655
|
"833",
|
|
@@ -1667,14 +1667,14 @@ const l2 = {
|
|
|
1667
1667
|
"887",
|
|
1668
1668
|
"888",
|
|
1669
1669
|
"889"
|
|
1670
|
-
], c1 = (y) => y.replace(/\D/g, ""),
|
|
1670
|
+
], c1 = (y) => y.replace(/\D/g, ""), o2 = (y = "") => y.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase(), u2 = (y) => {
|
|
1671
1671
|
const e = c1(y);
|
|
1672
1672
|
if (e.charAt(0) === "1") {
|
|
1673
1673
|
const n = e.substr(1, 3);
|
|
1674
|
-
return
|
|
1674
|
+
return K2.includes(n);
|
|
1675
1675
|
}
|
|
1676
1676
|
return !1;
|
|
1677
|
-
},
|
|
1677
|
+
}, H2 = (y, e, n, s) => {
|
|
1678
1678
|
if (n === 0 && !s)
|
|
1679
1679
|
return 0;
|
|
1680
1680
|
let o = 0;
|
|
@@ -1692,15 +1692,15 @@ const l2 = {
|
|
|
1692
1692
|
const { instances: n } = C;
|
|
1693
1693
|
Object.values(n).forEach((s) => s[y](...e));
|
|
1694
1694
|
};
|
|
1695
|
-
class
|
|
1695
|
+
class j2 {
|
|
1696
1696
|
constructor(e, n = {}) {
|
|
1697
|
-
this.id =
|
|
1697
|
+
this.id = V2++, this.telInput = e, this.highlightedItem = null, this.options = Object.assign({}, a2, n), this.hadInitialPlaceholder = !!e.getAttribute("placeholder");
|
|
1698
1698
|
}
|
|
1699
1699
|
//* Can't be private as it's called from intlTelInput convenience wrapper.
|
|
1700
1700
|
_init() {
|
|
1701
1701
|
this.options.useFullscreenPopup && (this.options.fixDropdownWidth = !1), this.options.onlyCountries.length === 1 && (this.options.initialCountry = this.options.onlyCountries[0]), this.options.separateDialCode && (this.options.nationalMode = !1), this.options.allowDropdown && !this.options.showFlags && !this.options.separateDialCode && (this.options.nationalMode = !1), this.options.useFullscreenPopup && !this.options.dropdownContainer && (this.options.dropdownContainer = document.body), this.isAndroid = typeof navigator < "u" ? /Android/i.test(navigator.userAgent) : !1, this.isRTL = !!this.telInput.closest("[dir=rtl]");
|
|
1702
1702
|
const e = this.options.allowDropdown || this.options.separateDialCode;
|
|
1703
|
-
this.showSelectedCountryOnLeft = this.isRTL ? !e : e, this.options.separateDialCode && (this.isRTL ? this.originalPaddingRight = this.telInput.style.paddingRight : this.originalPaddingLeft = this.telInput.style.paddingLeft), this.options.i18n = { ...
|
|
1703
|
+
this.showSelectedCountryOnLeft = this.isRTL ? !e : e, this.options.separateDialCode && (this.isRTL ? this.originalPaddingRight = this.telInput.style.paddingRight : this.originalPaddingLeft = this.telInput.style.paddingLeft), this.options.i18n = { ...l2, ...this.options.i18n };
|
|
1704
1704
|
const n = new Promise((o, a) => {
|
|
1705
1705
|
this.resolveAutoCountryPromise = o, this.rejectAutoCountryPromise = a;
|
|
1706
1706
|
}), s = new Promise((o, a) => {
|
|
@@ -1921,7 +1921,7 @@ class K2 {
|
|
|
1921
1921
|
//* 1. Extracting a dial code from the given number
|
|
1922
1922
|
//* 2. Using explicit initialCountry
|
|
1923
1923
|
_setInitialState(e = !1) {
|
|
1924
|
-
const n = this.telInput.getAttribute("value"), s = this.telInput.value, a = n && n.charAt(0) === "+" && (!s || s.charAt(0) !== "+") ? n : s, c = this._getDialCode(a), g =
|
|
1924
|
+
const n = this.telInput.getAttribute("value"), s = this.telInput.value, a = n && n.charAt(0) === "+" && (!s || s.charAt(0) !== "+") ? n : s, c = this._getDialCode(a), g = u2(a), { initialCountry: f, geoIpLookup: S } = this.options, _ = f === "auto" && S;
|
|
1925
1925
|
if (c && !g)
|
|
1926
1926
|
this._updateCountryFromNumber(a);
|
|
1927
1927
|
else if (!_ || e) {
|
|
@@ -1998,7 +1998,7 @@ class K2 {
|
|
|
1998
1998
|
S || _ && !e ? g = !0 : /[^+0-9]/.test(this.telInput.value) || (g = !1);
|
|
1999
1999
|
const b = (f == null ? void 0 : f.detail) && f.detail.isSetNumber && !o;
|
|
2000
2000
|
if (n && !g && !b) {
|
|
2001
|
-
const w = this.telInput.selectionStart || 0, A = this.telInput.value.substring(0, w).replace(/[^+0-9]/g, "").length, G = (f == null ? void 0 : f.inputType) === "deleteContentForward", F = this._formatNumberAsYouType(), M =
|
|
2001
|
+
const w = this.telInput.selectionStart || 0, A = this.telInput.value.substring(0, w).replace(/[^+0-9]/g, "").length, G = (f == null ? void 0 : f.inputType) === "deleteContentForward", F = this._formatNumberAsYouType(), M = H2(A, F, w, G);
|
|
2002
2002
|
this.telInput.value = F, this.telInput.setSelectionRange(M, M);
|
|
2003
2003
|
}
|
|
2004
2004
|
}, this.telInput.addEventListener("input", this._handleInputEvent), (e || s) && (this._handleKeydownEvent = (f) => {
|
|
@@ -2103,9 +2103,9 @@ class K2 {
|
|
|
2103
2103
|
_filterCountries(e, n = !1) {
|
|
2104
2104
|
let s = !0;
|
|
2105
2105
|
this.countryList.innerHTML = "";
|
|
2106
|
-
const o =
|
|
2106
|
+
const o = o2(e);
|
|
2107
2107
|
for (let a = 0; a < this.countries.length; a++) {
|
|
2108
|
-
const c = this.countries[a], g =
|
|
2108
|
+
const c = this.countries[a], g = o2(c.name), f = c.name.split(/[^a-zA-ZÀ-ÿа-яА-Я]/).map((_) => _[0]).join("").toLowerCase(), S = `+${c.dialCode}`;
|
|
2109
2109
|
if (n || g.includes(o) || S.includes(o) || c.iso2.includes(o) || f.includes(o)) {
|
|
2110
2110
|
const _ = c.nodeById[this.id];
|
|
2111
2111
|
_ && this.countryList.appendChild(_), s && (this._highlightListItem(_, !1), s = !1);
|
|
@@ -2117,7 +2117,7 @@ class K2 {
|
|
|
2117
2117
|
_updateSearchResultsText() {
|
|
2118
2118
|
const { i18n: e } = this.options, n = this.countryList.childElementCount;
|
|
2119
2119
|
let s;
|
|
2120
|
-
n === 0 ? s = e.zeroSearchResults : n === 1 ? s = e.oneSearchResult : s = e.multipleSearchResults.replace("${count}", n.toString()), this.searchResultsA11yText.textContent = s;
|
|
2120
|
+
"searchResultsText" in e ? s = e.searchResultsText(n) : n === 0 ? s = e.zeroSearchResults : n === 1 ? s = e.oneSearchResult : s = e.multipleSearchResults.replace("${count}", n.toString()), this.searchResultsA11yText.textContent = s;
|
|
2121
2121
|
}
|
|
2122
2122
|
//* Highlight the next/prev item in the list (and ensure it is visible).
|
|
2123
2123
|
_handleUpDownKey(e) {
|
|
@@ -2167,7 +2167,7 @@ class K2 {
|
|
|
2167
2167
|
if (!o && this.defaultCountry && S.includes(this.defaultCountry))
|
|
2168
2168
|
return this.defaultCountry;
|
|
2169
2169
|
const _ = o && S.includes(o) && (g.length === f.length || !this.selectedCountryData.areaCodes);
|
|
2170
|
-
if (!(a === "1" &&
|
|
2170
|
+
if (!(a === "1" && u2(g)) && !_) {
|
|
2171
2171
|
for (let w = 0; w < S.length; w++)
|
|
2172
2172
|
if (S[w])
|
|
2173
2173
|
return S[w];
|
|
@@ -2386,6 +2386,7 @@ class K2 {
|
|
|
2386
2386
|
//* Remove plugin.
|
|
2387
2387
|
destroy() {
|
|
2388
2388
|
var a, c;
|
|
2389
|
+
this.telInput.iti = void 0;
|
|
2389
2390
|
const { allowDropdown: e, separateDialCode: n } = this.options;
|
|
2390
2391
|
if (e) {
|
|
2391
2392
|
this._closeDropdown(), this.selectedCountry.removeEventListener(
|
|
@@ -2487,7 +2488,7 @@ class K2 {
|
|
|
2487
2488
|
this.telInput.disabled = e, e ? this.selectedCountry.setAttribute("disabled", "true") : this.selectedCountry.removeAttribute("disabled");
|
|
2488
2489
|
}
|
|
2489
2490
|
}
|
|
2490
|
-
const
|
|
2491
|
+
const W2 = (y) => {
|
|
2491
2492
|
if (!C.utils && !C.startedLoadingUtilsScript) {
|
|
2492
2493
|
let e;
|
|
2493
2494
|
if (typeof y == "function")
|
|
@@ -2510,11 +2511,11 @@ const H2 = (y) => {
|
|
|
2510
2511
|
return null;
|
|
2511
2512
|
}, C = Object.assign(
|
|
2512
2513
|
(y, e) => {
|
|
2513
|
-
const n = new
|
|
2514
|
-
return n._init(), y.setAttribute("data-intl-tel-input-id", n.id.toString()), C.instances[n.id] = n, n;
|
|
2514
|
+
const n = new j2(y, e);
|
|
2515
|
+
return n._init(), y.setAttribute("data-intl-tel-input-id", n.id.toString()), C.instances[n.id] = n, y.iti = n, n;
|
|
2515
2516
|
},
|
|
2516
2517
|
{
|
|
2517
|
-
defaults:
|
|
2518
|
+
defaults: a2,
|
|
2518
2519
|
//* Using a static var like this allows us to mock it in the tests.
|
|
2519
2520
|
documentReady: () => document.readyState === "complete",
|
|
2520
2521
|
//* Get the country data object.
|
|
@@ -2526,10 +2527,10 @@ const H2 = (y) => {
|
|
|
2526
2527
|
},
|
|
2527
2528
|
//* A map from instance ID to instance object.
|
|
2528
2529
|
instances: {},
|
|
2529
|
-
attachUtils:
|
|
2530
|
+
attachUtils: W2,
|
|
2530
2531
|
startedLoadingUtilsScript: !1,
|
|
2531
2532
|
startedLoadingAutoCountry: !1,
|
|
2532
|
-
version: "25.
|
|
2533
|
+
version: "25.4.1"
|
|
2533
2534
|
}
|
|
2534
2535
|
);
|
|
2535
2536
|
(function() {
|
|
@@ -2616,7 +2617,7 @@ const H2 = (y) => {
|
|
|
2616
2617
|
this.g[$.g] = $;
|
|
2617
2618
|
}
|
|
2618
2619
|
}
|
|
2619
|
-
function
|
|
2620
|
+
function c2(d) {
|
|
2620
2621
|
return d = s(d.g), d.sort(function(t, $) {
|
|
2621
2622
|
return t.g - $.g;
|
|
2622
2623
|
}), d;
|
|
@@ -2634,7 +2635,7 @@ const H2 = (y) => {
|
|
|
2634
2635
|
w1(this, d.g, t);
|
|
2635
2636
|
};
|
|
2636
2637
|
function S1(d, t) {
|
|
2637
|
-
for (var $ =
|
|
2638
|
+
for (var $ = c2(d.m()), i = 0; i < $.length; i++) {
|
|
2638
2639
|
var r = $[i], u = r.g;
|
|
2639
2640
|
if (B(t, u)) {
|
|
2640
2641
|
d.g && delete d.g[r.g];
|
|
@@ -2810,10 +2811,10 @@ const H2 = (y) => {
|
|
|
2810
2811
|
R.call(this);
|
|
2811
2812
|
}
|
|
2812
2813
|
n(H, R);
|
|
2813
|
-
var A1 = null,
|
|
2814
|
+
var A1 = null, f2 = { ra: 0, qa: 1, pa: 5, oa: 10, na: 20 };
|
|
2814
2815
|
H.prototype.m = function() {
|
|
2815
2816
|
var d = A1;
|
|
2816
|
-
return d || (A1 = d = i1(H, { 0: { name: "PhoneNumber", ia: "i18n.phonenumbers.PhoneNumber" }, 1: { name: "country_code", required: !0, i: 5, type: Number }, 2: { name: "national_number", required: !0, i: 4, type: Number }, 3: { name: "extension", i: 9, type: String }, 4: { name: "italian_leading_zero", i: 8, type: Boolean }, 8: { name: "number_of_leading_zeros", i: 5, defaultValue: 1, type: Number }, 5: { name: "raw_input", i: 9, type: String }, 6: { name: "country_code_source", i: 14, defaultValue: 0, type:
|
|
2817
|
+
return d || (A1 = d = i1(H, { 0: { name: "PhoneNumber", ia: "i18n.phonenumbers.PhoneNumber" }, 1: { name: "country_code", required: !0, i: 5, type: Number }, 2: { name: "national_number", required: !0, i: 4, type: Number }, 3: { name: "extension", i: 9, type: String }, 4: { name: "italian_leading_zero", i: 8, type: Boolean }, 8: { name: "number_of_leading_zeros", i: 5, defaultValue: 1, type: Number }, 5: { name: "raw_input", i: 9, type: String }, 6: { name: "country_code_source", i: 14, defaultValue: 0, type: f2 }, 7: {
|
|
2817
2818
|
name: "preferred_domestic_carrier_code",
|
|
2818
2819
|
i: 9,
|
|
2819
2820
|
type: String
|
|
@@ -4748,10 +4749,13 @@ const H2 = (y) => {
|
|
|
4748
4749
|
,
|
|
4749
4750
|
,
|
|
4750
4751
|
[10]
|
|
4751
|
-
], "GB", 44, "00", "0", " x", , "0", , , , [[, "(\\d{3})(\\d{4})", "$1 $2", ["800", "8001", "80011", "800111", "8001111"], "0$1"], [, "(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["845", "8454", "84546", "845464"], "0$1"], [, "(\\d{3})(\\d{6})", "$1 $2", ["800"], "0$1"], [, "(\\d{5})(\\d{4,5})", "$1 $2", ["1(?:38|5[23]|69|76|94)", "1(?:(?:38|69)7|5(?:24|39)|768|946)", "1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"], "0$1"], [, "(\\d{4})(\\d{5,6})", "$1 $2", ["1(?:[2-69][02-9]|[78])"], "0$1"], [
|
|
4752
|
-
|
|
4753
|
-
"
|
|
4754
|
-
|
|
4752
|
+
], "GB", 44, "00", "0", " x", , "0|180020", , , , [[, "(\\d{3})(\\d{4})", "$1 $2", ["800", "8001", "80011", "800111", "8001111"], "0$1"], [, "(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["845", "8454", "84546", "845464"], "0$1"], [, "(\\d{3})(\\d{6})", "$1 $2", ["800"], "0$1"], [, "(\\d{5})(\\d{4,5})", "$1 $2", ["1(?:38|5[23]|69|76|94)", "1(?:(?:38|69)7|5(?:24|39)|768|946)", "1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"], "0$1"], [, "(\\d{4})(\\d{5,6})", "$1 $2", ["1(?:[2-69][02-9]|[78])"], "0$1"], [
|
|
4753
|
+
,
|
|
4754
|
+
"(\\d{2})(\\d{4})(\\d{4})",
|
|
4755
|
+
"$1 $2 $3",
|
|
4756
|
+
["[25]|7(?:0|6[02-9])", "[25]|7(?:0|6(?:[03-9]|2[356]))"],
|
|
4757
|
+
"0$1"
|
|
4758
|
+
], [, "(\\d{4})(\\d{6})", "$1 $2", ["7"], "0$1"], [, "(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1389]"], "0$1"]], , [, , "76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}", , , , "7640123456", , , [10]], 1, , [, , , , , , , , , [-1]], [, , "(?:3[0347]|55)\\d{8}", , , , "5512345678", , , [10]], , , [, , , , , , , , , [-1]]],
|
|
4755
4759
|
GD: [, [, , "(?:473|[58]\\d\\d|900)\\d{7}", , , , , , , [10], [7]], [
|
|
4756
4760
|
,
|
|
4757
4761
|
,
|
|
@@ -4824,7 +4828,7 @@ const H2 = (y) => {
|
|
|
4824
4828
|
"0",
|
|
4825
4829
|
,
|
|
4826
4830
|
,
|
|
4827
|
-
"([25-9]\\d{5})$|0",
|
|
4831
|
+
"([25-9]\\d{5})$|0|180020",
|
|
4828
4832
|
"1481$1",
|
|
4829
4833
|
,
|
|
4830
4834
|
,
|
|
@@ -4872,42 +4876,51 @@ const H2 = (y) => {
|
|
|
4872
4876
|
,
|
|
4873
4877
|
"221234"
|
|
4874
4878
|
], [, , "80\\d{4}", , , , "801234"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "3[89]\\d{4}", , , , "381234"], "GL", 299, "00", , , , , , , , [[, "(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["19|[2-9]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
4875
|
-
GM: [, [, , "[2-9]\\d{6}", , , , , , , [7]], [, , "(?:4(?:[23]\\d\\d|4(?:1[024679]|[6-9]\\d))|5(?:5(?:3\\d|4[0-7])|6[67]\\d|7(?:1[04]|2[035]|3[58]|48))|8
|
|
4879
|
+
GM: [, [, , "[2-9]\\d{6}", , , , , , , [7]], [, , "(?:4(?:[23]\\d\\d|4(?:1[024679]|[6-9]\\d))|5(?:5(?:3\\d|4[0-7])|6[67]\\d|7(?:1[04]|2[035]|3[58]|48))|8[0-589]\\d\\d)\\d{3}", , , , "5661234"], [
|
|
4876
4880
|
,
|
|
4877
4881
|
,
|
|
4882
|
+
"556\\d{4}|(?:[23679]\\d|4[015]|5[0-489]|8[67])\\d{5}",
|
|
4878
4883
|
,
|
|
4879
4884
|
,
|
|
4880
4885
|
,
|
|
4886
|
+
"3012345"
|
|
4887
|
+
], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "GM", 220, "00", , , , , , , , [[, "(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
4888
|
+
GN: [, [, , "722\\d{6}|(?:3|6\\d)\\d{7}", , , , , , , [8, 9]], [, , "3(?:0(?:24|3[12]|4[1-35-7]|5[13]|6[189]|[78]1|9[1478])|1\\d\\d)\\d{4}", , , , "30241234", , , [8]], [, , "6[0-356]\\d{7}", , , , "601123456", , , [9]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [
|
|
4881
4889
|
,
|
|
4882
4890
|
,
|
|
4891
|
+
"722\\d{6}",
|
|
4883
4892
|
,
|
|
4884
4893
|
,
|
|
4885
|
-
[-1]
|
|
4886
|
-
], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "GM", 220, "00", , , , , , , , [[, "(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
4887
|
-
GN: [
|
|
4888
4894
|
,
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
[
|
|
4895
|
+
"722123456",
|
|
4896
|
+
,
|
|
4897
|
+
,
|
|
4898
|
+
[9]
|
|
4899
|
+
], "GN", 224, "00", , , , , , , , [[, "(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["3"]], [, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[67]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
4900
|
+
GP: [
|
|
4901
|
+
,
|
|
4902
|
+
[, , "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", , , , , , , [9]],
|
|
4903
|
+
[, , "590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}", , , , "590201234"],
|
|
4904
|
+
[, , "(?: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"],
|
|
4905
|
+
[, , "80[0-5]\\d{6}", , , , "800012345"],
|
|
4893
4906
|
[, , , , , , , , , [-1]],
|
|
4894
4907
|
[, , , , , , , , , [-1]],
|
|
4895
4908
|
[, , , , , , , , , [-1]],
|
|
4896
|
-
[, , "
|
|
4897
|
-
"
|
|
4898
|
-
|
|
4909
|
+
[, , "9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}", , , , "976012345"],
|
|
4910
|
+
"GP",
|
|
4911
|
+
590,
|
|
4899
4912
|
"00",
|
|
4913
|
+
"0",
|
|
4900
4914
|
,
|
|
4901
4915
|
,
|
|
4916
|
+
"0",
|
|
4902
4917
|
,
|
|
4903
4918
|
,
|
|
4904
4919
|
,
|
|
4905
|
-
,
|
|
4906
|
-
,
|
|
4907
|
-
[[, "(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["3"]], [, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[67]"]]],
|
|
4920
|
+
[[, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-79]"], "0$1"], [, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]],
|
|
4908
4921
|
,
|
|
4909
4922
|
[, , , , , , , , , [-1]],
|
|
4910
|
-
,
|
|
4923
|
+
1,
|
|
4911
4924
|
,
|
|
4912
4925
|
[, , , , , , , , , [-1]],
|
|
4913
4926
|
[, , , , , , , , , [-1]],
|
|
@@ -4915,15 +4928,6 @@ const H2 = (y) => {
|
|
|
4915
4928
|
,
|
|
4916
4929
|
[, , , , , , , , , [-1]]
|
|
4917
4930
|
],
|
|
4918
|
-
GP: [, [, , "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", , , , , , , [9]], [, , "590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}", , , , "590201234"], [, , "(?: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"], [
|
|
4919
|
-
,
|
|
4920
|
-
,
|
|
4921
|
-
"80[0-5]\\d{6}",
|
|
4922
|
-
,
|
|
4923
|
-
,
|
|
4924
|
-
,
|
|
4925
|
-
"800012345"
|
|
4926
|
-
], [, , , , , , , , , [-1]], [, , , , , , , , , [-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]"], "0$1"], [, "(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], , [, , , , , , , , , [-1]], 1, , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
4927
4931
|
GQ: [
|
|
4928
4932
|
,
|
|
4929
4933
|
[, , "222\\d{6}|(?:3\\d|55|[89]0)\\d{7}", , , , , , , [9]],
|
|
@@ -5011,7 +5015,7 @@ const H2 = (y) => {
|
|
|
5011
5015
|
,
|
|
5012
5016
|
,
|
|
5013
5017
|
"2201234"
|
|
5014
|
-
], [, , "(?:
|
|
5018
|
+
], [, , "(?:51[01]|6\\d\\d|7(?:[0-5]\\d|6[019]|70))\\d{4}", , , , "6091234"], [, , "(?:289|8(?:00|6[28]|88|99))\\d{4}", , , , "2891234"], [, , "9008\\d{3}", , , , "9008123"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "515\\d{4}", , , , "5151234"], "GY", 592, "001", , , , , , , , [[, "(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
5015
5019
|
HK: [, [, , "8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}", , , , , , , [5, 6, 7, 8, 9, 11]], [
|
|
5016
5020
|
,
|
|
5017
5021
|
,
|
|
@@ -5213,7 +5217,7 @@ const H2 = (y) => {
|
|
|
5213
5217
|
"0",
|
|
5214
5218
|
,
|
|
5215
5219
|
,
|
|
5216
|
-
"([25-8]\\d{5})$|0",
|
|
5220
|
+
"([25-8]\\d{5})$|0|180020",
|
|
5217
5221
|
"1624$1",
|
|
5218
5222
|
,
|
|
5219
5223
|
,
|
|
@@ -5430,7 +5434,7 @@ const H2 = (y) => {
|
|
|
5430
5434
|
,
|
|
5431
5435
|
,
|
|
5432
5436
|
"7797712345"
|
|
5433
|
-
], [, , "80(?:07(?:35|81)|8901)\\d{4}", , , , "8007354567"], [, , "(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}", , , , "9018105678"], [, , , , , , , , , [-1]], [, , "701511\\d{4}", , , , "7015115678"], [, , "56\\d{8}", , , , "5612345678"], "JE", 44, "00", "0", , , "([0-24-8]\\d{5})$|0", "1534$1", , , , , [, , "76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}", , , , "7640123456"], , , [, , , , , , , , , [-1]], [
|
|
5437
|
+
], [, , "80(?:07(?:35|81)|8901)\\d{4}", , , , "8007354567"], [, , "(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}", , , , "9018105678"], [, , , , , , , , , [-1]], [, , "701511\\d{4}", , , , "7015115678"], [, , "56\\d{8}", , , , "5612345678"], "JE", 44, "00", "0", , , "([0-24-8]\\d{5})$|0|180020", "1534$1", , , , , [, , "76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}", , , , "7640123456"], , , [, , , , , , , , , [-1]], [
|
|
5434
5438
|
,
|
|
5435
5439
|
,
|
|
5436
5440
|
"(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}",
|
|
@@ -8165,7 +8169,7 @@ const H2 = (y) => {
|
|
|
8165
8169
|
D.h = void 0, D.g = function() {
|
|
8166
8170
|
return D.h ? D.h : D.h = new D();
|
|
8167
8171
|
};
|
|
8168
|
-
var g1 = { 0: "0", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", "0": "0", "1": "1", "2": "2", "3": "3", "4": "4", "5": "5", "6": "6", "7": "7", "8": "8", "9": "9", "٠": "0", "١": "1", "٢": "2", "٣": "3", "٤": "4", "٥": "5", "٦": "6", "٧": "7", "٨": "8", "٩": "9", "۰": "0", "۱": "1", "۲": "2", "۳": "3", "۴": "4", "۵": "5", "۶": "6", "۷": "7", "۸": "8", "۹": "9" },
|
|
8172
|
+
var g1 = { 0: "0", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", "0": "0", "1": "1", "2": "2", "3": "3", "4": "4", "5": "5", "6": "6", "7": "7", "8": "8", "9": "9", "٠": "0", "١": "1", "٢": "2", "٣": "3", "٤": "4", "٥": "5", "٦": "6", "٧": "7", "٨": "8", "٩": "9", "۰": "0", "۱": "1", "۲": "2", "۳": "3", "۴": "4", "۵": "5", "۶": "6", "۷": "7", "۸": "8", "۹": "9" }, p2 = {
|
|
8169
8173
|
0: "0",
|
|
8170
8174
|
1: "1",
|
|
8171
8175
|
2: "2",
|
|
@@ -8179,7 +8183,7 @@ const H2 = (y) => {
|
|
|
8179
8183
|
"+": "+",
|
|
8180
8184
|
"*": "*",
|
|
8181
8185
|
"#": "#"
|
|
8182
|
-
},
|
|
8186
|
+
}, g2 = {
|
|
8183
8187
|
0: "0",
|
|
8184
8188
|
1: "1",
|
|
8185
8189
|
2: "2",
|
|
@@ -8246,19 +8250,19 @@ const H2 = (y) => {
|
|
|
8246
8250
|
X: "9",
|
|
8247
8251
|
Y: "9",
|
|
8248
8252
|
Z: "9"
|
|
8249
|
-
},
|
|
8253
|
+
}, C2 = RegExp("[++]+"), Q = RegExp("^[++]+"), D1 = RegExp("([0-90-9٠-٩۰-۹])"), m2 = RegExp("[++0-90-9٠-٩۰-۹]"), y2 = /[\\\/] *x/, _2 = RegExp("[^0-90-9٠-٩۰-۹A-Za-z#]+$"), I2 = /(?:.*?[A-Za-z]){3}.*/, v2 = RegExp("^\\+([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*[0-90-9٠-٩۰-۹]([0-90-9٠-٩۰-۹]|[\\-\\.\\(\\)]?)*$"), S2 = RegExp("^([A-Za-z0-90-9٠-٩۰-۹]+((\\-)*[A-Za-z0-90-9٠-٩۰-۹])*\\.)*[A-Za-z]+((\\-)*[A-Za-z0-90-9٠-٩۰-۹])*\\.?$");
|
|
8250
8254
|
function J(d) {
|
|
8251
8255
|
return "([0-90-9٠-٩۰-۹]{1," + d + "})";
|
|
8252
8256
|
}
|
|
8253
8257
|
function M1() {
|
|
8254
8258
|
return ";ext=" + J("20") + "|[ \\t,]*(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)[:\\..]?[ \\t,-]*" + (J("20") + "#?|[ \\t,]*(?:[xx##~~]|int|int)[:\\..]?[ \\t,-]*") + (J("9") + "#?|[- ]+") + (J("6") + "#|[ \\t]*(?:,{2}|;)[:\\..]?[ \\t,-]*") + (J("15") + "#?|[ \\t]*(?:,)+[:\\..]?[ \\t,-]*") + (J("9") + "#?");
|
|
8255
8259
|
}
|
|
8256
|
-
var P1 = new RegExp("(?:" + M1() + ")$", "i"),
|
|
8260
|
+
var P1 = new RegExp("(?:" + M1() + ")$", "i"), w2 = new RegExp("^[0-90-9٠-٩۰-۹]{2}$|^[++]*(?:[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~*]*[0-90-9٠-٩۰-۹]){3,}[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~*A-Za-z0-90-9٠-٩۰-۹]*(?:" + M1() + ")?$", "i"), b2 = /(\$\d)/, L2 = /^\(?\$1\)?$/;
|
|
8257
8261
|
function x1(d) {
|
|
8258
|
-
return 2 > d.length ? !1 : U(
|
|
8262
|
+
return 2 > d.length ? !1 : U(w2, d);
|
|
8259
8263
|
}
|
|
8260
8264
|
function R1(d) {
|
|
8261
|
-
return U(
|
|
8265
|
+
return U(I2, d) ? r1(d, g2) : r1(d, g1);
|
|
8262
8266
|
}
|
|
8263
8267
|
function B1(d) {
|
|
8264
8268
|
var t = R1(d.toString());
|
|
@@ -8272,7 +8276,7 @@ const H2 = (y) => {
|
|
|
8272
8276
|
return $.toString();
|
|
8273
8277
|
}
|
|
8274
8278
|
function O1(d) {
|
|
8275
|
-
return d.length == 0 ||
|
|
8279
|
+
return d.length == 0 || L2.test(d);
|
|
8276
8280
|
}
|
|
8277
8281
|
function o1(d) {
|
|
8278
8282
|
return d != null && isNaN(d) && d.toUpperCase() in E1;
|
|
@@ -8303,7 +8307,7 @@ const H2 = (y) => {
|
|
|
8303
8307
|
return r != null && (l = r, r = v(l, 2), u = new RegExp(p(l, 1)), v(
|
|
8304
8308
|
l,
|
|
8305
8309
|
5
|
|
8306
|
-
), l = v(l, 4), i = t == 2 && l != null && 0 < l.length ? i.replace(u, r.replace(
|
|
8310
|
+
), l = v(l, 4), i = t == 2 && l != null && 0 < l.length ? i.replace(u, r.replace(b2, l)) : i.replace(u, r), t == 3 && (i = i.replace(RegExp("^[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]+"), ""), i = i.replace(RegExp("[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]+", "g"), "-"))), G1($, t, i, d);
|
|
8307
8311
|
};
|
|
8308
8312
|
function d1(d, t, $) {
|
|
8309
8313
|
return $ == "001" ? j(d, "" + t) : j(d, $);
|
|
@@ -8373,7 +8377,7 @@ const H2 = (y) => {
|
|
|
8373
8377
|
var $ = d.length;
|
|
8374
8378
|
return 0 < K(t, 9) && P(t, 9).indexOf($) == -1 ? !1 : U(v(t, 2), d);
|
|
8375
8379
|
}
|
|
8376
|
-
function
|
|
8380
|
+
function N2(d, t) {
|
|
8377
8381
|
var $ = U1(d, t), i = v(t, 1), r = d1(d, i, $);
|
|
8378
8382
|
return r == null || $ != "001" && i != V1(d, $) ? r = !1 : (d = t1(t), r = C1(d, r) != -1), r;
|
|
8379
8383
|
}
|
|
@@ -8472,7 +8476,7 @@ const H2 = (y) => {
|
|
|
8472
8476
|
u = l !== -1 ? t.substring(u, l) : t.substring(u);
|
|
8473
8477
|
}
|
|
8474
8478
|
var h = u;
|
|
8475
|
-
if (h == null ? l = !0 : h.length === 0 ? l = !1 : (l =
|
|
8479
|
+
if (h == null ? l = !0 : h.length === 0 ? l = !1 : (l = v2.exec(h), h = S2.exec(h), l = l !== null || h !== null), !l || (u != null ? (u.charAt(0) === "+" && r.g(u), u = t.indexOf("tel:"), r.g(t.substring(0 <= u ? u + 4 : 0, t.indexOf(";phone-context=")))) : (u = r.g, l = t ?? "", h = l.search(m2), 0 <= h ? (l = l.substring(h), l = l.replace(_2, ""), h = l.search(y2), 0 <= h && (l = l.substring(0, h))) : l = "", u.call(r, l)), u = r.toString(), l = u.indexOf(";isub="), 0 < l && (k(r), r.g(u.substring(0, l))), !x1(r.toString()))) throw Error("The string supplied did not seem to be a phone number");
|
|
8476
8480
|
if (u = r.toString(), !(o1($) || u != null && 0 < u.length && Q.test(u))) throw Error("Invalid country calling code");
|
|
8477
8481
|
u = new H(), i && E(u, 5, t);
|
|
8478
8482
|
d: {
|
|
@@ -8508,12 +8512,12 @@ const H2 = (y) => {
|
|
|
8508
8512
|
function U(d, t) {
|
|
8509
8513
|
return !!((d = t.match(new RegExp("^(?:" + (typeof d == "string" ? d : d.source) + ")$", "i"))) && d[0].length == t.length);
|
|
8510
8514
|
}
|
|
8511
|
-
function
|
|
8515
|
+
function T2(d) {
|
|
8512
8516
|
this.fa = RegExp(" "), this.ja = "", this.v = new N(), this.da = "", this.s = new N(), this.ba = new N(), this.u = !0, this.ea = this.ca = this.la = !1, this.ga = D.g(), this.$ = 0, this.h = new N(), this.ha = !1, this.o = "", this.g = new N(), this.j = [], this.ka = d, this.l = Y1(this, this.ka);
|
|
8513
8517
|
}
|
|
8514
8518
|
var z1 = new Z();
|
|
8515
8519
|
E(z1, 11, "NA");
|
|
8516
|
-
var
|
|
8520
|
+
var A2 = RegExp("^[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]*\\$1[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]*(\\$\\d[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]*)*$"), Z1 = /[- ]/;
|
|
8517
8521
|
function Y1(d, t) {
|
|
8518
8522
|
var $ = d.ga;
|
|
8519
8523
|
return t = o1(t) ? V1($, t) : 0, d = j(d.ga, e1(t)), d ?? z1;
|
|
@@ -8538,10 +8542,10 @@ const H2 = (y) => {
|
|
|
8538
8542
|
}
|
|
8539
8543
|
d.j = $;
|
|
8540
8544
|
}
|
|
8541
|
-
function
|
|
8545
|
+
function E2(d, t) {
|
|
8542
8546
|
d.s.g(t);
|
|
8543
8547
|
var $ = t;
|
|
8544
|
-
if (D1.test($) || d.s.h.length == 1 &&
|
|
8548
|
+
if (D1.test($) || d.s.h.length == 1 && C2.test($) ? (t == "+" ? ($ = t, d.ba.g(t)) : ($ = g1[t], d.ba.g($), d.g.g($)), t = $) : (d.u = !1, d.la = !0), !d.u) {
|
|
8545
8549
|
if (!d.la) {
|
|
8546
8550
|
if (e2(d)) {
|
|
8547
8551
|
if ($2(d)) return X1(d);
|
|
@@ -8567,7 +8571,7 @@ const H2 = (y) => {
|
|
|
8567
8571
|
function Q1(d) {
|
|
8568
8572
|
for (var t = d.g.toString(), $ = d.j.length, i = 0; i < $; ++i) {
|
|
8569
8573
|
var r = d.j[i], u = v(r, 1);
|
|
8570
|
-
if (new RegExp("^(?:" + u + ")$").test(t) && (d.ha = Z1.test(p(r, 4)), r = t.replace(new RegExp(u, "g"), p(r, 2)), r = h1(d, r), r1(r,
|
|
8574
|
+
if (new RegExp("^(?:" + u + ")$").test(t) && (d.ha = Z1.test(p(r, 4)), r = t.replace(new RegExp(u, "g"), p(r, 2)), r = h1(d, r), r1(r, p2) == d.ba)) return r;
|
|
8571
8575
|
}
|
|
8572
8576
|
return "";
|
|
8573
8577
|
}
|
|
@@ -8580,7 +8584,7 @@ const H2 = (y) => {
|
|
|
8580
8584
|
if (3 <= t.length) {
|
|
8581
8585
|
for (var $ = d.ca && d.o.length == 0 && 0 < K(d.l, 20) ? P(d.l, 20) : P(d.l, 19), i = $.length, r = 0; r < i; ++r) {
|
|
8582
8586
|
var u = $[r];
|
|
8583
|
-
0 < d.o.length && O1(v(u, 4)) && !p(u, 6) && !B(u, 5) || (d.o.length != 0 || d.ca || O1(v(u, 4)) || p(u, 6)) &&
|
|
8587
|
+
0 < d.o.length && O1(v(u, 4)) && !p(u, 6) && !B(u, 5) || (d.o.length != 0 || d.ca || O1(v(u, 4)) || p(u, 6)) && A2.test(v(u, 2)) && d.j.push(u);
|
|
8584
8588
|
}
|
|
8585
8589
|
return q1(d, t), t = Q1(d), 0 < t.length ? t : J1(d) ? d2(d) : d.s.toString();
|
|
8586
8590
|
}
|
|
@@ -8617,12 +8621,14 @@ const H2 = (y) => {
|
|
|
8617
8621
|
}
|
|
8618
8622
|
return d.j.length == 1 && (d.u = !1), d.da = "", d.s.toString();
|
|
8619
8623
|
}
|
|
8620
|
-
const
|
|
8624
|
+
const i2 = (d) => {
|
|
8625
|
+
d.includes("FIXED_LINE_OR_MOBILE") ? (d.includes("MOBILE") || d.push("MOBILE"), d.includes("FIXED_LINE") || d.push("FIXED_LINE")) : (d.includes("MOBILE") || d.includes("FIXED_LINE")) && d.push("FIXED_LINE_OR_MOBILE");
|
|
8626
|
+
}, y1 = { FIXED_LINE: 0, MOBILE: 1, FIXED_LINE_OR_MOBILE: 2, TOLL_FREE: 3, PREMIUM_RATE: 4, SHARED_COST: 5, VOIP: 6, PERSONAL_NUMBER: 7, PAGER: 8, UAN: 9, VOICEMAIL: 10, UNKNOWN: -1 };
|
|
8621
8627
|
e("intlTelInputUtilsTemp", {}), e("intlTelInputUtilsTemp.formatNumberAsYouType", (d, t) => {
|
|
8622
8628
|
try {
|
|
8623
|
-
const $ = d.replace(/[^+0-9]/g, ""), i = new
|
|
8629
|
+
const $ = d.replace(/[^+0-9]/g, ""), i = new T2(t);
|
|
8624
8630
|
t = "";
|
|
8625
|
-
for (let r = 0; r < $.length; r++) i.ja =
|
|
8631
|
+
for (let r = 0; r < $.length; r++) i.ja = E2(i, $.charAt(r)), t = i.ja;
|
|
8626
8632
|
return t;
|
|
8627
8633
|
} catch {
|
|
8628
8634
|
return d;
|
|
@@ -8679,8 +8685,9 @@ const H2 = (y) => {
|
|
|
8679
8685
|
}
|
|
8680
8686
|
}), e("intlTelInputUtilsTemp.isValidNumber", (d, t, $) => {
|
|
8681
8687
|
try {
|
|
8682
|
-
const i = D.g(), r = Y(i, d, t), u =
|
|
8688
|
+
const i = D.g(), r = Y(i, d, t), u = N2(i, r);
|
|
8683
8689
|
if ($) {
|
|
8690
|
+
i2($);
|
|
8684
8691
|
const l = $.map((h) => y1[h]);
|
|
8685
8692
|
return u && l.includes(F1(i, r));
|
|
8686
8693
|
}
|
|
@@ -8692,7 +8699,7 @@ const H2 = (y) => {
|
|
|
8692
8699
|
try {
|
|
8693
8700
|
const i = D.g(), r = Y(i, d, t);
|
|
8694
8701
|
if ($) {
|
|
8695
|
-
|
|
8702
|
+
i2($);
|
|
8696
8703
|
for (let u of $) if (a1(i, r, y1[u]) === 0) return !0;
|
|
8697
8704
|
return !1;
|
|
8698
8705
|
}
|
|
@@ -8708,12 +8715,12 @@ const H2 = (y) => {
|
|
|
8708
8715
|
}
|
|
8709
8716
|
}), e("intlTelInputUtilsTemp.numberFormat", { E164: 0, INTERNATIONAL: 1, NATIONAL: 2, RFC3966: 3 }), e("intlTelInputUtilsTemp.numberType", y1), e("intlTelInputUtilsTemp.validationError", { IS_POSSIBLE: 0, INVALID_COUNTRY_CODE: 1, TOO_SHORT: 2, TOO_LONG: 3, IS_POSSIBLE_LOCAL_ONLY: 4, INVALID_LENGTH: 5 });
|
|
8710
8717
|
})();
|
|
8711
|
-
const
|
|
8712
|
-
delete
|
|
8713
|
-
C.utils =
|
|
8714
|
-
const
|
|
8718
|
+
const h2 = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : void 0, z2 = h2.intlTelInputUtilsTemp;
|
|
8719
|
+
delete h2.intlTelInputUtilsTemp;
|
|
8720
|
+
C.utils = z2;
|
|
8721
|
+
const Y2 = {
|
|
8715
8722
|
__name: "IntlTelInputWithUtils",
|
|
8716
|
-
props: /* @__PURE__ */
|
|
8723
|
+
props: /* @__PURE__ */ s2({
|
|
8717
8724
|
disabled: {
|
|
8718
8725
|
type: Boolean,
|
|
8719
8726
|
default: !1
|
|
@@ -8737,14 +8744,14 @@ const z2 = {
|
|
|
8737
8744
|
},
|
|
8738
8745
|
modelModifiers: {}
|
|
8739
8746
|
}),
|
|
8740
|
-
emits: /* @__PURE__ */
|
|
8747
|
+
emits: /* @__PURE__ */ s2([
|
|
8741
8748
|
"changeNumber",
|
|
8742
8749
|
"changeCountry",
|
|
8743
8750
|
"changeValidity",
|
|
8744
8751
|
"changeErrorCode"
|
|
8745
8752
|
], ["update:modelValue"]),
|
|
8746
8753
|
setup(y, { expose: e, emit: n }) {
|
|
8747
|
-
const s =
|
|
8754
|
+
const s = D2(y, "modelValue"), o = y, a = n, c = I1(), g = I1(), f = I1(!1), S = () => g.value ? o.options.strictMode ? g.value.isValidNumberPrecise() : g.value.isValidNumber() : null, _ = () => {
|
|
8748
8755
|
let I = S();
|
|
8749
8756
|
f.value !== I && (f.value = I, a("changeValidity", !!I), a(
|
|
8750
8757
|
"changeErrorCode",
|
|
@@ -8757,18 +8764,18 @@ const z2 = {
|
|
|
8757
8764
|
var I;
|
|
8758
8765
|
a("changeCountry", ((I = g.value) == null ? void 0 : I.getSelectedCountryData().iso2) ?? ""), b(), _();
|
|
8759
8766
|
};
|
|
8760
|
-
return
|
|
8767
|
+
return M2(() => {
|
|
8761
8768
|
c.value && (g.value = C(c.value, o.options), o.value && g.value.setNumber(o.value), o.disabled && g.value.setDisabled(o.disabled));
|
|
8762
|
-
}),
|
|
8769
|
+
}), P2(
|
|
8763
8770
|
() => o.disabled,
|
|
8764
8771
|
(I) => {
|
|
8765
8772
|
var A;
|
|
8766
8773
|
return (A = g.value) == null ? void 0 : A.setDisabled(I);
|
|
8767
8774
|
}
|
|
8768
|
-
),
|
|
8775
|
+
), x2(() => {
|
|
8769
8776
|
var I;
|
|
8770
8777
|
return (I = g.value) == null ? void 0 : I.destroy();
|
|
8771
|
-
}), e({ instance: g, input: c }), (I, A) =>
|
|
8778
|
+
}), e({ instance: g, input: c }), (I, A) => R2((k2(), B2("input", O2({
|
|
8772
8779
|
ref_key: "input",
|
|
8773
8780
|
ref: c,
|
|
8774
8781
|
"onUpdate:modelValue": A[0] || (A[0] = (G) => s.value = G),
|
|
@@ -8776,10 +8783,10 @@ const z2 = {
|
|
|
8776
8783
|
onCountrychange: w,
|
|
8777
8784
|
onInput: b
|
|
8778
8785
|
}, y.inputProps), null, 16)), [
|
|
8779
|
-
[
|
|
8786
|
+
[G2, s.value]
|
|
8780
8787
|
]);
|
|
8781
8788
|
}
|
|
8782
8789
|
};
|
|
8783
8790
|
export {
|
|
8784
|
-
|
|
8791
|
+
Y2 as default
|
|
8785
8792
|
};
|