intl-tel-input 25.8.5 → 25.8.6
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 +7 -7
- package/angular/README.md +1 -1
- package/angular/build/IntlTelInput.js +7 -6
- package/angular/build/IntlTelInputWithUtils.js +7 -6
- package/angular/build/types/countryDataManager.d.ts +25 -0
- package/angular/build/types/dropdown.d.ts +56 -0
- package/angular/build/types/types.d.ts +53 -0
- package/build/js/data.js +1 -1
- package/build/js/data.min.js +1 -1
- package/build/js/i18n/en/interface.js +1 -1
- package/build/js/intlTelInput.js +8 -7
- package/build/js/intlTelInput.min.js +4 -4
- package/build/js/intlTelInputWithUtils.js +8 -7
- package/build/js/intlTelInputWithUtils.min.js +4 -4
- package/package.json +2 -1
- package/react/README.md +1 -1
- package/react/build/IntlTelInput.cjs +7 -6
- package/react/build/IntlTelInput.js +7 -6
- package/react/build/IntlTelInputWithUtils.cjs +7 -6
- package/react/build/IntlTelInputWithUtils.js +7 -6
- package/vue/README.md +1 -1
- package/vue/build/IntlTelInput.mjs +91 -86
- package/vue/build/IntlTelInputWithUtils.mjs +156 -151
- package/build/js/i18n/index.mjs +0 -0
|
@@ -1579,7 +1579,7 @@ const V2 = {
|
|
|
1579
1579
|
zm: "Zambia",
|
|
1580
1580
|
zw: "Zimbabwe"
|
|
1581
1581
|
}, K2 = {
|
|
1582
|
-
selectedCountryAriaLabel: "Change country, selected ${
|
|
1582
|
+
selectedCountryAriaLabel: "Change country, selected ${countryName} (${dialCode})",
|
|
1583
1583
|
noCountrySelected: "Select country",
|
|
1584
1584
|
countryListAriaLabel: "List of countries",
|
|
1585
1585
|
searchPlaceholder: "Search",
|
|
@@ -1590,9 +1590,9 @@ const V2 = {
|
|
|
1590
1590
|
// additional countries (not supported by country-list library)
|
|
1591
1591
|
ac: "Ascension Island",
|
|
1592
1592
|
xk: "Kosovo"
|
|
1593
|
-
},
|
|
1593
|
+
}, u2 = { ...V2, ...K2 };
|
|
1594
1594
|
for (const m of J)
|
|
1595
|
-
m.name =
|
|
1595
|
+
m.name = u2[m.iso2];
|
|
1596
1596
|
let H2 = 0;
|
|
1597
1597
|
const S1 = (m) => typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia(m).matches, j2 = () => {
|
|
1598
1598
|
if (typeof navigator < "u" && typeof window < "u") {
|
|
@@ -1667,7 +1667,7 @@ const S1 = (m) => typeof window < "u" && typeof window.matchMedia == "function"
|
|
|
1667
1667
|
"887",
|
|
1668
1668
|
"888",
|
|
1669
1669
|
"889"
|
|
1670
|
-
], f1 = (m) => m.replace(/\D/g, ""), o2 = (m = "") => m.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase(),
|
|
1670
|
+
], f1 = (m) => m.replace(/\D/g, ""), o2 = (m = "") => m.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase(), a2 = (m) => {
|
|
1671
1671
|
const e = f1(m);
|
|
1672
1672
|
if (e.charAt(0) === "1") {
|
|
1673
1673
|
const i = e.substring(1, 4);
|
|
@@ -1707,7 +1707,7 @@ class p1 {
|
|
|
1707
1707
|
_init() {
|
|
1708
1708
|
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]"), this.telInput.dir = "ltr";
|
|
1709
1709
|
const e = this.options.allowDropdown || this.options.separateDialCode;
|
|
1710
|
-
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 = { ...
|
|
1710
|
+
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 = { ...u2, ...this.options.i18n };
|
|
1711
1711
|
const i = new Promise((o, l) => {
|
|
1712
1712
|
this.resolveAutoCountryPromise = o, this.rejectAutoCountryPromise = l;
|
|
1713
1713
|
}), n = new Promise((o, l) => {
|
|
@@ -1805,7 +1805,7 @@ class p1 {
|
|
|
1805
1805
|
dropdownContainer: g,
|
|
1806
1806
|
fixDropdownWidth: h,
|
|
1807
1807
|
useFullscreenPopup: _,
|
|
1808
|
-
countrySearch:
|
|
1808
|
+
countrySearch: b,
|
|
1809
1809
|
i18n: v
|
|
1810
1810
|
} = this.options, S = p1._buildClassNames({
|
|
1811
1811
|
iti: !0,
|
|
@@ -1859,7 +1859,7 @@ class p1 {
|
|
|
1859
1859
|
class: `iti__dropdown-content iti__hide ${F}`,
|
|
1860
1860
|
role: "dialog",
|
|
1861
1861
|
"aria-modal": "true"
|
|
1862
|
-
}),
|
|
1862
|
+
}), b) {
|
|
1863
1863
|
const D = N(
|
|
1864
1864
|
"div",
|
|
1865
1865
|
{ class: "iti__search-input-wrapper" },
|
|
@@ -1934,7 +1934,7 @@ class p1 {
|
|
|
1934
1934
|
"aria-label": v.countryListAriaLabel
|
|
1935
1935
|
},
|
|
1936
1936
|
this.dropdownContent
|
|
1937
|
-
), this._appendListItems(),
|
|
1937
|
+
), this._appendListItems(), b && this._updateSearchResultsA11yText(), g) {
|
|
1938
1938
|
const D = p1._buildClassNames({
|
|
1939
1939
|
iti: !0,
|
|
1940
1940
|
"iti--container": !0,
|
|
@@ -1990,7 +1990,7 @@ class p1 {
|
|
|
1990
1990
|
//* 1. Extracting a dial code from the given number
|
|
1991
1991
|
//* 2. Using explicit initialCountry
|
|
1992
1992
|
_setInitialState(e = !1) {
|
|
1993
|
-
const i = this.telInput.getAttribute("value"), n = this.telInput.value, l = i && i.charAt(0) === "+" && (!n || n.charAt(0) !== "+") ? i : n, g = this._getDialCode(l), h =
|
|
1993
|
+
const i = this.telInput.getAttribute("value"), n = this.telInput.value, l = i && i.charAt(0) === "+" && (!n || n.charAt(0) !== "+") ? i : n, g = this._getDialCode(l), h = a2(l), { initialCountry: _, geoIpLookup: b } = this.options, v = _ === "auto" && b;
|
|
1994
1994
|
if (g && !h)
|
|
1995
1995
|
this._updateCountryFromNumber(l);
|
|
1996
1996
|
else if (!v || e) {
|
|
@@ -2063,8 +2063,8 @@ class p1 {
|
|
|
2063
2063
|
return;
|
|
2064
2064
|
}
|
|
2065
2065
|
this._updateCountryFromNumber(this.telInput.value) && this._triggerCountryChange();
|
|
2066
|
-
const _ = (h == null ? void 0 : h.data) && /[^+0-9]/.test(h.data),
|
|
2067
|
-
_ ||
|
|
2066
|
+
const _ = (h == null ? void 0 : h.data) && /[^+0-9]/.test(h.data), b = (h == null ? void 0 : h.inputType) === "insertFromPaste" && this.telInput.value;
|
|
2067
|
+
_ || b && !e ? g = !0 : /[^+0-9]/.test(this.telInput.value) || (g = !1);
|
|
2068
2068
|
const v = (h == null ? void 0 : h.detail) && h.detail.isSetNumber;
|
|
2069
2069
|
if (i && !g && !v) {
|
|
2070
2070
|
const S = this.telInput.selectionStart || 0, f = this.telInput.value.substring(0, S).replace(/[^+0-9]/g, "").length, I = (h == null ? void 0 : h.inputType) === "deleteContentForward", O = this._formatNumberAsYouType(), G = z2(f, O, S, I);
|
|
@@ -2167,14 +2167,14 @@ class p1 {
|
|
|
2167
2167
|
_filterCountries(e, i = !1) {
|
|
2168
2168
|
let n = !0;
|
|
2169
2169
|
this.countryList.innerHTML = "";
|
|
2170
|
-
const o = o2(e), l = o.length, g = [], h = [], _ = [],
|
|
2170
|
+
const o = o2(e), l = o.length, g = [], h = [], _ = [], b = [], v = [], S = [];
|
|
2171
2171
|
for (const f of this.countries)
|
|
2172
|
-
i || l === 0 ? _.push(f) : f.iso2 === o ? g.push(f) : f.normalisedName.startsWith(o) ? h.push(f) : f.normalisedName.includes(o) ? _.push(f) : o === f.dialCode || o === f.dialCodePlus ?
|
|
2172
|
+
i || l === 0 ? _.push(f) : f.iso2 === o ? g.push(f) : f.normalisedName.startsWith(o) ? h.push(f) : f.normalisedName.includes(o) ? _.push(f) : o === f.dialCode || o === f.dialCodePlus ? b.push(f) : f.dialCodePlus.includes(o) ? v.push(f) : f.initials.includes(o) && S.push(f);
|
|
2173
2173
|
const T = [
|
|
2174
2174
|
...g.sort((f, I) => f.priority - I.priority),
|
|
2175
2175
|
...h.sort((f, I) => f.priority - I.priority),
|
|
2176
2176
|
..._.sort((f, I) => f.priority - I.priority),
|
|
2177
|
-
...
|
|
2177
|
+
...b.sort((f, I) => f.priority - I.priority),
|
|
2178
2178
|
...v.sort((f, I) => f.priority - I.priority),
|
|
2179
2179
|
...S.sort((f, I) => f.priority - I.priority)
|
|
2180
2180
|
];
|
|
@@ -2237,12 +2237,12 @@ class p1 {
|
|
|
2237
2237
|
n = this._ensureHasDialCode(n);
|
|
2238
2238
|
const g = this._getDialCode(n, !0), h = f1(n);
|
|
2239
2239
|
if (g) {
|
|
2240
|
-
const _ = f1(g),
|
|
2241
|
-
if (!o && this.defaultCountry &&
|
|
2240
|
+
const _ = f1(g), b = this.dialCodeToIso2Map[_];
|
|
2241
|
+
if (!o && this.defaultCountry && b.includes(this.defaultCountry))
|
|
2242
2242
|
return this.defaultCountry;
|
|
2243
|
-
const v = this.selectedCountryData.areaCodes && h.length > _.length, S = o &&
|
|
2244
|
-
if (!(l === "1" &&
|
|
2245
|
-
for (const f of
|
|
2243
|
+
const v = this.selectedCountryData.areaCodes && h.length > _.length, S = o && b.includes(o) && !v;
|
|
2244
|
+
if (!(l === "1" && a2(h)) && !S) {
|
|
2245
|
+
for (const f of b)
|
|
2246
2246
|
if (f)
|
|
2247
2247
|
return f;
|
|
2248
2248
|
}
|
|
@@ -2276,17 +2276,22 @@ class p1 {
|
|
|
2276
2276
|
//* Update the selected country, dial code (if separateDialCode), placeholder, title, and active list item.
|
|
2277
2277
|
//* Note: called from _setInitialState, _updateCountryFromNumber, _selectListItem, setCountry.
|
|
2278
2278
|
_setCountry(e) {
|
|
2279
|
-
const { separateDialCode: i, showFlags: n, i18n: o } = this.options, l = this.selectedCountryData.iso2
|
|
2279
|
+
const { separateDialCode: i, showFlags: n, i18n: o } = this.options, l = this.selectedCountryData.iso2 || "";
|
|
2280
2280
|
if (this.selectedCountryData = e ? this._getCountryData(e, !1) || {} : {}, this.selectedCountryData.iso2 && (this.defaultCountry = this.selectedCountryData.iso2), this.selectedCountry) {
|
|
2281
2281
|
const g = e && n ? `iti__flag iti__${e}` : "iti__flag iti__globe";
|
|
2282
2282
|
let h, _;
|
|
2283
|
-
|
|
2283
|
+
if (e) {
|
|
2284
|
+
const { name: b, dialCode: v } = this.selectedCountryData;
|
|
2285
|
+
_ = b, h = o.selectedCountryAriaLabel.replace("${countryName}", b).replace("${dialCode}", `+${v}`);
|
|
2286
|
+
} else
|
|
2287
|
+
_ = o.noCountrySelected, h = o.noCountrySelected;
|
|
2288
|
+
this.selectedCountryInner.className = g, this.selectedCountry.setAttribute("title", _), this.selectedCountry.setAttribute("aria-label", h);
|
|
2284
2289
|
}
|
|
2285
2290
|
if (i) {
|
|
2286
2291
|
const g = this.selectedCountryData.dialCode ? `+${this.selectedCountryData.dialCode}` : "";
|
|
2287
2292
|
this.selectedDialCode.innerHTML = g, this._updateInputPadding();
|
|
2288
2293
|
}
|
|
2289
|
-
return this._updatePlaceholder(), this._updateMaxLength(), l
|
|
2294
|
+
return this._updatePlaceholder(), this._updateMaxLength(), l !== e;
|
|
2290
2295
|
}
|
|
2291
2296
|
//* Update the input padding to make space for the selected country/dial code.
|
|
2292
2297
|
_updateInputPadding() {
|
|
@@ -2368,10 +2373,10 @@ class p1 {
|
|
|
2368
2373
|
}
|
|
2369
2374
|
//* Check if an element is visible within it's container, else scroll until it is.
|
|
2370
2375
|
_scrollTo(e) {
|
|
2371
|
-
const i = this.countryList, n = document.documentElement.scrollTop, o = i.offsetHeight, l = i.getBoundingClientRect().top + n, g = l + o, h = e.offsetHeight, _ = e.getBoundingClientRect().top + n,
|
|
2376
|
+
const i = this.countryList, n = document.documentElement.scrollTop, o = i.offsetHeight, l = i.getBoundingClientRect().top + n, g = l + o, h = e.offsetHeight, _ = e.getBoundingClientRect().top + n, b = _ + h, v = _ - l + i.scrollTop;
|
|
2372
2377
|
if (_ < l)
|
|
2373
2378
|
i.scrollTop = v;
|
|
2374
|
-
else if (
|
|
2379
|
+
else if (b > g) {
|
|
2375
2380
|
const S = o - h;
|
|
2376
2381
|
i.scrollTop = v - S;
|
|
2377
2382
|
}
|
|
@@ -2595,7 +2600,7 @@ const Z2 = (m) => {
|
|
|
2595
2600
|
attachUtils: Z2,
|
|
2596
2601
|
startedLoadingUtilsScript: !1,
|
|
2597
2602
|
startedLoadingAutoCountry: !1,
|
|
2598
|
-
version: "25.8.
|
|
2603
|
+
version: "25.8.6"
|
|
2599
2604
|
}
|
|
2600
2605
|
);
|
|
2601
2606
|
(function() {
|
|
@@ -2609,9 +2614,9 @@ const Z2 = (m) => {
|
|
|
2609
2614
|
function i(d, t) {
|
|
2610
2615
|
function $() {
|
|
2611
2616
|
}
|
|
2612
|
-
$.prototype = t.prototype, d.ma = t.prototype, d.prototype = new $(), d.prototype.constructor = d, d.sa = function(s, r,
|
|
2613
|
-
for (var
|
|
2614
|
-
return t.prototype[r].apply(s,
|
|
2617
|
+
$.prototype = t.prototype, d.ma = t.prototype, d.prototype = new $(), d.prototype.constructor = d, d.sa = function(s, r, a) {
|
|
2618
|
+
for (var u = Array(arguments.length - 2), c = 2; c < arguments.length; c++) u[c - 2] = arguments[c];
|
|
2619
|
+
return t.prototype[r].apply(s, u);
|
|
2615
2620
|
};
|
|
2616
2621
|
}
|
|
2617
2622
|
function n(d) {
|
|
@@ -2641,7 +2646,7 @@ const Z2 = (m) => {
|
|
|
2641
2646
|
}
|
|
2642
2647
|
new h();
|
|
2643
2648
|
const _ = {};
|
|
2644
|
-
class
|
|
2649
|
+
class b {
|
|
2645
2650
|
constructor() {
|
|
2646
2651
|
if (_ !== _) throw Error("SafeStyleSheet is not meant to be built directly");
|
|
2647
2652
|
}
|
|
@@ -2649,7 +2654,7 @@ const Z2 = (m) => {
|
|
|
2649
2654
|
return "";
|
|
2650
2655
|
}
|
|
2651
2656
|
}
|
|
2652
|
-
new
|
|
2657
|
+
new b();
|
|
2653
2658
|
const v = {};
|
|
2654
2659
|
class S {
|
|
2655
2660
|
constructor() {
|
|
@@ -2701,14 +2706,14 @@ const Z2 = (m) => {
|
|
|
2701
2706
|
};
|
|
2702
2707
|
function w1(d, t) {
|
|
2703
2708
|
for (var $ = f2(d.m()), s = 0; s < $.length; s++) {
|
|
2704
|
-
var r = $[s],
|
|
2705
|
-
if (R(t,
|
|
2709
|
+
var r = $[s], a = r.g;
|
|
2710
|
+
if (R(t, a)) {
|
|
2706
2711
|
d.g && delete d.g[r.g];
|
|
2707
|
-
var
|
|
2712
|
+
var u = r.h == 11 || r.h == 10;
|
|
2708
2713
|
if (r.l) {
|
|
2709
|
-
r = P(t,
|
|
2710
|
-
for (var c = 0; c < r.length; c++) b1(d,
|
|
2711
|
-
} else r = n1(t,
|
|
2714
|
+
r = P(t, a);
|
|
2715
|
+
for (var c = 0; c < r.length; c++) b1(d, a, u ? r[c].clone() : r[c]);
|
|
2716
|
+
} else r = n1(t, a), u ? (u = n1(d, a)) ? w1(u, r) : E(d, a, r.clone()) : E(d, a, r);
|
|
2712
2717
|
}
|
|
2713
2718
|
}
|
|
2714
2719
|
}
|
|
@@ -2726,8 +2731,8 @@ const Z2 = (m) => {
|
|
|
2726
2731
|
if (!(t in d.g)) {
|
|
2727
2732
|
var s = d.l, r = d.j[t];
|
|
2728
2733
|
if ($ != null) if (r.l) {
|
|
2729
|
-
for (var
|
|
2730
|
-
$ =
|
|
2734
|
+
for (var a = [], u = 0; u < $.length; u++) a[u] = s.h(r, $[u]);
|
|
2735
|
+
$ = a;
|
|
2731
2736
|
} else $ = s.h(r, $);
|
|
2732
2737
|
return d.g[t] = $;
|
|
2733
2738
|
}
|
|
@@ -2816,10 +2821,10 @@ const Z2 = (m) => {
|
|
|
2816
2821
|
}
|
|
2817
2822
|
i(W, x);
|
|
2818
2823
|
var N1 = null;
|
|
2819
|
-
function
|
|
2824
|
+
function L() {
|
|
2820
2825
|
x.call(this);
|
|
2821
2826
|
}
|
|
2822
|
-
i(
|
|
2827
|
+
i(L, x);
|
|
2823
2828
|
var T1 = null;
|
|
2824
2829
|
function z() {
|
|
2825
2830
|
x.call(this);
|
|
@@ -2829,30 +2834,30 @@ const Z2 = (m) => {
|
|
|
2829
2834
|
W.prototype.m = function() {
|
|
2830
2835
|
var d = N1;
|
|
2831
2836
|
return d || (N1 = d = s1(W, { 0: { name: "NumberFormat", ia: "i18n.phonenumbers.NumberFormat" }, 1: { name: "pattern", required: !0, i: 9, type: String }, 2: { name: "format", required: !0, i: 9, type: String }, 3: { name: "leading_digits_pattern", aa: !0, i: 9, type: String }, 4: { name: "national_prefix_formatting_rule", i: 9, type: String }, 6: { name: "national_prefix_optional_when_formatting", i: 8, defaultValue: !1, type: Boolean }, 5: { name: "domestic_carrier_code_formatting_rule", i: 9, type: String } })), d;
|
|
2832
|
-
}, W.m = W.prototype.m,
|
|
2837
|
+
}, W.m = W.prototype.m, L.prototype.m = function() {
|
|
2833
2838
|
var d = T1;
|
|
2834
|
-
return d || (T1 = d = s1(
|
|
2835
|
-
},
|
|
2839
|
+
return d || (T1 = d = s1(L, { 0: { name: "PhoneNumberDesc", ia: "i18n.phonenumbers.PhoneNumberDesc" }, 2: { name: "national_number_pattern", i: 9, type: String }, 9: { name: "possible_length", aa: !0, i: 5, type: Number }, 10: { name: "possible_length_local_only", aa: !0, i: 5, type: Number }, 6: { name: "example_number", i: 9, type: String } })), d;
|
|
2840
|
+
}, L.m = L.prototype.m, z.prototype.m = function() {
|
|
2836
2841
|
var d = A1;
|
|
2837
2842
|
return d || (A1 = d = s1(z, {
|
|
2838
2843
|
0: { name: "PhoneMetadata", ia: "i18n.phonenumbers.PhoneMetadata" },
|
|
2839
|
-
1: { name: "general_desc", i: 11, type:
|
|
2840
|
-
2: { name: "fixed_line", i: 11, type:
|
|
2841
|
-
3: { name: "mobile", i: 11, type:
|
|
2842
|
-
4: { name: "toll_free", i: 11, type:
|
|
2843
|
-
5: { name: "premium_rate", i: 11, type:
|
|
2844
|
-
6: { name: "shared_cost", i: 11, type:
|
|
2845
|
-
7: { name: "personal_number", i: 11, type:
|
|
2846
|
-
8: { name: "voip", i: 11, type:
|
|
2847
|
-
21: { name: "pager", i: 11, type:
|
|
2848
|
-
25: { name: "uan", i: 11, type:
|
|
2849
|
-
27: { name: "emergency", i: 11, type:
|
|
2850
|
-
28: { name: "voicemail", i: 11, type:
|
|
2851
|
-
29: { name: "short_code", i: 11, type:
|
|
2852
|
-
30: { name: "standard_rate", i: 11, type:
|
|
2853
|
-
31: { name: "carrier_specific", i: 11, type:
|
|
2854
|
-
33: { name: "sms_services", i: 11, type:
|
|
2855
|
-
24: { name: "no_international_dialling", i: 11, type:
|
|
2844
|
+
1: { name: "general_desc", i: 11, type: L },
|
|
2845
|
+
2: { name: "fixed_line", i: 11, type: L },
|
|
2846
|
+
3: { name: "mobile", i: 11, type: L },
|
|
2847
|
+
4: { name: "toll_free", i: 11, type: L },
|
|
2848
|
+
5: { name: "premium_rate", i: 11, type: L },
|
|
2849
|
+
6: { name: "shared_cost", i: 11, type: L },
|
|
2850
|
+
7: { name: "personal_number", i: 11, type: L },
|
|
2851
|
+
8: { name: "voip", i: 11, type: L },
|
|
2852
|
+
21: { name: "pager", i: 11, type: L },
|
|
2853
|
+
25: { name: "uan", i: 11, type: L },
|
|
2854
|
+
27: { name: "emergency", i: 11, type: L },
|
|
2855
|
+
28: { name: "voicemail", i: 11, type: L },
|
|
2856
|
+
29: { name: "short_code", i: 11, type: L },
|
|
2857
|
+
30: { name: "standard_rate", i: 11, type: L },
|
|
2858
|
+
31: { name: "carrier_specific", i: 11, type: L },
|
|
2859
|
+
33: { name: "sms_services", i: 11, type: L },
|
|
2860
|
+
24: { name: "no_international_dialling", i: 11, type: L },
|
|
2856
2861
|
9: { name: "id", required: !0, i: 9, type: String },
|
|
2857
2862
|
10: { name: "country_code", i: 5, type: Number },
|
|
2858
2863
|
11: { name: "international_prefix", i: 9, type: String },
|
|
@@ -8315,13 +8320,13 @@ const Z2 = (m) => {
|
|
|
8315
8320
|
return d != null && (K(d, 9) != 1 || P(d, 9)[0] != -1);
|
|
8316
8321
|
}
|
|
8317
8322
|
function o1(d, t) {
|
|
8318
|
-
for (var $ = new A(), s, r = d.length,
|
|
8323
|
+
for (var $ = new A(), s, r = d.length, a = 0; a < r; ++a) s = d.charAt(a), s = t[s.toUpperCase()], s != null && $.g(s);
|
|
8319
8324
|
return $.toString();
|
|
8320
8325
|
}
|
|
8321
8326
|
function G1(d) {
|
|
8322
8327
|
return d.length == 0 || N2.test(d);
|
|
8323
8328
|
}
|
|
8324
|
-
function
|
|
8329
|
+
function a1(d) {
|
|
8325
8330
|
return d != null && isNaN(d) && d.toUpperCase() in M1;
|
|
8326
8331
|
}
|
|
8327
8332
|
M.prototype.format = function(d, t) {
|
|
@@ -8337,20 +8342,20 @@ const Z2 = (m) => {
|
|
|
8337
8342
|
d = R(d, 3) && p(d, 3).length != 0 ? t == 3 ? ";ext=" + p(d, 3) : R(r, 13) ? p(r, 13) + w(d, 3) : " ext. " + w(d, 3) : "";
|
|
8338
8343
|
d: {
|
|
8339
8344
|
r = P(r, 20).length == 0 || t == 2 ? P(r, 19) : P(r, 20);
|
|
8340
|
-
for (var
|
|
8341
|
-
|
|
8342
|
-
var y = K(
|
|
8343
|
-
if ((y == 0 || s.search(p(
|
|
8344
|
-
r =
|
|
8345
|
+
for (var a, u = r.length, c = 0; c < u; ++c) {
|
|
8346
|
+
a = r[c];
|
|
8347
|
+
var y = K(a, 3);
|
|
8348
|
+
if ((y == 0 || s.search(p(a, 3, y - 1)) == 0) && (y = new RegExp(p(a, 1)), U(y, s))) {
|
|
8349
|
+
r = a;
|
|
8345
8350
|
break d;
|
|
8346
8351
|
}
|
|
8347
8352
|
}
|
|
8348
8353
|
r = null;
|
|
8349
8354
|
}
|
|
8350
|
-
return r != null && (
|
|
8351
|
-
|
|
8355
|
+
return r != null && (u = r, r = w(u, 2), a = new RegExp(p(u, 1)), w(
|
|
8356
|
+
u,
|
|
8352
8357
|
5
|
|
8353
|
-
),
|
|
8358
|
+
), u = w(u, 4), s = t == 2 && u != null && 0 < u.length ? s.replace(a, r.replace(L2, u)) : s.replace(a, r), t == 3 && (s = s.replace(RegExp("^[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]+"), ""), s = s.replace(RegExp("[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]+", "g"), "-"))), F1($, t, s, d);
|
|
8354
8359
|
};
|
|
8355
8360
|
function d1(d, t, $) {
|
|
8356
8361
|
return $ == "001" ? j(d, "" + t) : j(d, $);
|
|
@@ -8372,7 +8377,7 @@ const Z2 = (m) => {
|
|
|
8372
8377
|
return $ + s;
|
|
8373
8378
|
}
|
|
8374
8379
|
}
|
|
8375
|
-
function
|
|
8380
|
+
function u1(d, t) {
|
|
8376
8381
|
switch (t) {
|
|
8377
8382
|
case 4:
|
|
8378
8383
|
return p(d, 5);
|
|
@@ -8431,15 +8436,15 @@ const Z2 = (m) => {
|
|
|
8431
8436
|
else if ($.length == 1) d = $[0];
|
|
8432
8437
|
else d: {
|
|
8433
8438
|
t = t1(t);
|
|
8434
|
-
for (var s, r = $.length,
|
|
8435
|
-
s = $[
|
|
8436
|
-
var
|
|
8437
|
-
if (R(
|
|
8438
|
-
if (t.search(p(
|
|
8439
|
+
for (var s, r = $.length, a = 0; a < r; a++) {
|
|
8440
|
+
s = $[a];
|
|
8441
|
+
var u = j(d, s);
|
|
8442
|
+
if (R(u, 23)) {
|
|
8443
|
+
if (t.search(p(u, 23)) == 0) {
|
|
8439
8444
|
d = s;
|
|
8440
8445
|
break d;
|
|
8441
8446
|
}
|
|
8442
|
-
} else if (m1(t,
|
|
8447
|
+
} else if (m1(t, u) != -1) {
|
|
8443
8448
|
d = s;
|
|
8444
8449
|
break d;
|
|
8445
8450
|
}
|
|
@@ -8456,10 +8461,10 @@ const Z2 = (m) => {
|
|
|
8456
8461
|
return w(d, 10);
|
|
8457
8462
|
}
|
|
8458
8463
|
function l1(d, t, $, s) {
|
|
8459
|
-
var r =
|
|
8460
|
-
if (r = P(r, 10), s == 2) if (O1(
|
|
8464
|
+
var r = u1($, s), a = K(r, 9) == 0 ? P(p($, 1), 9) : P(r, 9);
|
|
8465
|
+
if (r = P(r, 10), s == 2) if (O1(u1($, 0))) d = u1($, 1), O1(d) && (a = a.concat(K(d, 9) == 0 ? P(p($, 1), 9) : P(d, 9)), a.sort(), r.length == 0 ? r = P(d, 10) : (r = r.concat(P(d, 10)), r.sort()));
|
|
8461
8466
|
else return l1(d, t, $, 1);
|
|
8462
|
-
return
|
|
8467
|
+
return a[0] == -1 ? 5 : (t = t.length, -1 < r.indexOf(t) ? 4 : ($ = a[0], $ == t ? 0 : $ > t ? 2 : a[a.length - 1] < t ? 3 : -1 < a.indexOf(t, 1) ? 0 : 5));
|
|
8463
8468
|
}
|
|
8464
8469
|
function h1(d, t, $) {
|
|
8465
8470
|
var s = t1(t);
|
|
@@ -8470,87 +8475,87 @@ const Z2 = (m) => {
|
|
|
8470
8475
|
for (var $, s = d.length, r = 1; 3 >= r && r <= s; ++r) if ($ = parseInt(d.substring(0, r), 10), $ in X) return t.g(d.substring(r)), $;
|
|
8471
8476
|
return 0;
|
|
8472
8477
|
}
|
|
8473
|
-
function j1(d, t, $, s, r,
|
|
8478
|
+
function j1(d, t, $, s, r, a) {
|
|
8474
8479
|
if (t.length == 0) return 0;
|
|
8475
8480
|
t = new A(t);
|
|
8476
|
-
var
|
|
8477
|
-
$ != null && (
|
|
8481
|
+
var u;
|
|
8482
|
+
$ != null && (u = p($, 11)), u == null && (u = "NonMatch");
|
|
8478
8483
|
var c = t.toString();
|
|
8479
|
-
if (c.length == 0)
|
|
8480
|
-
else if (Q.test(c)) c = c.replace(Q, ""), B(t), t.g(B1(c)),
|
|
8484
|
+
if (c.length == 0) u = 20;
|
|
8485
|
+
else if (Q.test(c)) c = c.replace(Q, ""), B(t), t.g(B1(c)), u = 1;
|
|
8481
8486
|
else {
|
|
8482
|
-
if (c = new RegExp(
|
|
8483
|
-
c =
|
|
8484
|
-
var y =
|
|
8485
|
-
y && y[1] != null && 0 < y[1].length && o1(y[1], C1) == "0" ?
|
|
8486
|
-
} else
|
|
8487
|
-
|
|
8487
|
+
if (c = new RegExp(u), k1(t), u = t.toString(), u.search(c) == 0) {
|
|
8488
|
+
c = u.match(c)[0].length;
|
|
8489
|
+
var y = u.substring(c).match(D1);
|
|
8490
|
+
y && y[1] != null && 0 < y[1].length && o1(y[1], C1) == "0" ? u = !1 : (B(t), t.g(u.substring(c)), u = !0);
|
|
8491
|
+
} else u = !1;
|
|
8492
|
+
u = u ? 5 : 20;
|
|
8488
8493
|
}
|
|
8489
|
-
if (r && E(
|
|
8494
|
+
if (r && E(a, 6, u), u != 20) {
|
|
8490
8495
|
if (2 >= t.h.length) throw Error("Phone number too short after IDD");
|
|
8491
|
-
if (d = H1(t, s), d != 0) return E(
|
|
8496
|
+
if (d = H1(t, s), d != 0) return E(a, 1, d), d;
|
|
8492
8497
|
throw Error("Invalid country calling code");
|
|
8493
8498
|
}
|
|
8494
|
-
return $ != null && (
|
|
8499
|
+
return $ != null && (u = w($, 10), c = "" + u, y = t.toString(), y.lastIndexOf(c, 0) == 0 && (c = new A(y.substring(c.length)), y = p($, 1), y = new RegExp(w(y, 2)), W1(c, $, null), c = c.toString(), !U(y, t.toString()) && U(y, c) || l1(d, t.toString(), $, -1) == 3)) ? (s.g(c), r && E(a, 6, 10), E(a, 1, u), u) : (E(a, 1, 0), 0);
|
|
8495
8500
|
}
|
|
8496
8501
|
function W1(d, t, $) {
|
|
8497
|
-
var s = d.toString(), r = s.length,
|
|
8498
|
-
if (r != 0 &&
|
|
8499
|
-
var
|
|
8500
|
-
if (r =
|
|
8501
|
-
|
|
8502
|
-
var c = U(
|
|
8503
|
-
t = p(t, 16), t == null || t.length == 0 || r[y] == null || r[y].length == 0 ? (!c || U(
|
|
8502
|
+
var s = d.toString(), r = s.length, a = p(t, 15);
|
|
8503
|
+
if (r != 0 && a != null && a.length != 0) {
|
|
8504
|
+
var u = new RegExp("^(?:" + a + ")");
|
|
8505
|
+
if (r = u.exec(s)) {
|
|
8506
|
+
a = new RegExp(w(p(t, 1), 2));
|
|
8507
|
+
var c = U(a, s), y = r.length - 1;
|
|
8508
|
+
t = p(t, 16), t == null || t.length == 0 || r[y] == null || r[y].length == 0 ? (!c || U(a, s.substring(r[0].length))) && ($ != null && 0 < y && r[y] != null && $.g(r[1]), d.set(s.substring(r[0].length))) : (s = s.replace(u, t), (!c || U(a, s)) && ($ != null && 0 < y && $.g(r[1]), d.set(s)));
|
|
8504
8509
|
}
|
|
8505
8510
|
}
|
|
8506
8511
|
}
|
|
8507
8512
|
function Z(d, t, $) {
|
|
8508
|
-
if (!
|
|
8513
|
+
if (!a1($) && 0 < t.length && t.charAt(0) != "+") throw Error("Invalid country calling code");
|
|
8509
8514
|
return z1(d, t, $, !0);
|
|
8510
8515
|
}
|
|
8511
8516
|
function z1(d, t, $, s) {
|
|
8512
8517
|
if (t == null) throw Error("The string supplied did not seem to be a phone number");
|
|
8513
8518
|
if (250 < t.length) throw Error("The string supplied is too long to be a phone number");
|
|
8514
|
-
var r = new A(),
|
|
8515
|
-
if (
|
|
8516
|
-
else if (
|
|
8519
|
+
var r = new A(), a = t.indexOf(";phone-context=");
|
|
8520
|
+
if (a === -1) a = null;
|
|
8521
|
+
else if (a += 15, a >= t.length) a = "";
|
|
8517
8522
|
else {
|
|
8518
|
-
var
|
|
8519
|
-
|
|
8523
|
+
var u = t.indexOf(";", a);
|
|
8524
|
+
a = u !== -1 ? t.substring(a, u) : t.substring(a);
|
|
8520
8525
|
}
|
|
8521
|
-
var c =
|
|
8522
|
-
if (c == null ?
|
|
8523
|
-
if (
|
|
8524
|
-
|
|
8526
|
+
var c = a;
|
|
8527
|
+
if (c == null ? u = !0 : c.length === 0 ? u = !1 : (u = S2.exec(c), c = w2.exec(c), u = u !== null || c !== null), !u || (a != null ? (a.charAt(0) === "+" && r.g(a), a = t.indexOf("tel:"), r.g(t.substring(0 <= a ? a + 4 : 0, t.indexOf(";phone-context=")))) : (a = r.g, u = t ?? "", c = u.search(y2), 0 <= c ? (u = u.substring(c), u = u.replace(I2, ""), c = u.search(_2), 0 <= c && (u = u.substring(0, c))) : u = "", a.call(r, u)), a = r.toString(), u = a.indexOf(";isub="), 0 < u && (B(r), r.g(a.substring(0, u))), !R1(r.toString()))) throw Error("The string supplied did not seem to be a phone number");
|
|
8528
|
+
if (a = r.toString(), !(a1($) || a != null && 0 < a.length && Q.test(a))) throw Error("Invalid country calling code");
|
|
8529
|
+
a = new H(), s && E(a, 5, t);
|
|
8525
8530
|
d: {
|
|
8526
|
-
if (t = r.toString(),
|
|
8531
|
+
if (t = r.toString(), u = t.search(x1), 0 <= u && R1(t.substring(0, u))) {
|
|
8527
8532
|
c = t.match(x1);
|
|
8528
8533
|
for (var y = c.length, V = 1; V < y; ++V) if (c[V] != null && 0 < c[V].length) {
|
|
8529
|
-
B(r), r.g(t.substring(0,
|
|
8534
|
+
B(r), r.g(t.substring(0, u)), t = c[V];
|
|
8530
8535
|
break d;
|
|
8531
8536
|
}
|
|
8532
8537
|
}
|
|
8533
8538
|
t = "";
|
|
8534
8539
|
}
|
|
8535
|
-
0 < t.length && E(
|
|
8540
|
+
0 < t.length && E(a, 3, t), u = j(d, $), t = new A(), c = 0, y = r.toString();
|
|
8536
8541
|
try {
|
|
8537
|
-
c = j1(d, y,
|
|
8542
|
+
c = j1(d, y, u, t, s, a);
|
|
8538
8543
|
} catch (I1) {
|
|
8539
8544
|
if (I1.message == "Invalid country calling code" && Q.test(y)) {
|
|
8540
|
-
if (y = y.replace(Q, ""), c = j1(d, y,
|
|
8545
|
+
if (y = y.replace(Q, ""), c = j1(d, y, u, t, s, a), c == 0) throw I1;
|
|
8541
8546
|
} else throw I1;
|
|
8542
8547
|
}
|
|
8543
|
-
if (c != 0 ? (r = e1(c), r != $ && (
|
|
8544
|
-
|
|
8548
|
+
if (c != 0 ? (r = e1(c), r != $ && (u = d1(d, c, r))) : (k1(r), t.g(r.toString()), $ != null ? (c = w(u, 10), E(
|
|
8549
|
+
a,
|
|
8545
8550
|
1,
|
|
8546
8551
|
c
|
|
8547
|
-
)) : s && (delete
|
|
8552
|
+
)) : s && (delete a.h[6], a.g && delete a.g[6])), 2 > t.h.length || (u != null && ($ = new A(), r = new A(t.toString()), W1(r, u, $), d = l1(d, r.toString(), u, -1), d != 2 && d != 4 && d != 5 && (t = r, s && 0 < $.toString().length && E(a, 7, $.toString()))), s = t.toString(), d = s.length, 2 > d)) throw Error("The string supplied is too short to be a phone number");
|
|
8548
8553
|
if (17 < d) throw Error("The string supplied is too long to be a phone number");
|
|
8549
8554
|
if (1 < s.length && s.charAt(0) == "0") {
|
|
8550
|
-
for (E(
|
|
8551
|
-
d != 1 && E(
|
|
8555
|
+
for (E(a, 4, !0), d = 1; d < s.length - 1 && s.charAt(d) == "0"; ) d++;
|
|
8556
|
+
d != 1 && E(a, 8, d);
|
|
8552
8557
|
}
|
|
8553
|
-
return E(
|
|
8558
|
+
return E(a, 2, parseInt(s, 10)), a;
|
|
8554
8559
|
}
|
|
8555
8560
|
function U(d, t) {
|
|
8556
8561
|
return !!((d = t.match(new RegExp("^(?:" + (typeof d == "string" ? d : d.source) + ")$", "i"))) && d[0].length == t.length);
|
|
@@ -8563,25 +8568,25 @@ const Z2 = (m) => {
|
|
|
8563
8568
|
var E2 = RegExp("^[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]*\\$1[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]*(\\$\\d[-x‐-―−ー--/ ()()[].\\[\\]/~⁓∼~]*)*$"), Y1 = /[- ]/;
|
|
8564
8569
|
function J1(d, t) {
|
|
8565
8570
|
var $ = d.ga;
|
|
8566
|
-
return t =
|
|
8571
|
+
return t = a1(t) ? K1($, t) : 0, d = j(d.ga, e1(t)), d ?? Z1;
|
|
8567
8572
|
}
|
|
8568
8573
|
function q1(d) {
|
|
8569
8574
|
for (var t = d.j.length, $ = 0; $ < t; ++$) {
|
|
8570
8575
|
var s = d.j[$], r = w(s, 1);
|
|
8571
8576
|
if (d.da == r) return !1;
|
|
8572
|
-
var
|
|
8573
|
-
B(
|
|
8574
|
-
var y =
|
|
8575
|
-
|
|
8577
|
+
var a = d, u = s, c = w(u, 1);
|
|
8578
|
+
B(a.v);
|
|
8579
|
+
var y = a;
|
|
8580
|
+
u = w(u, 2);
|
|
8576
8581
|
var V = "999999999999999".match(c)[0];
|
|
8577
|
-
if (V.length < y.g.h.length ? y = "" : (y = V.replace(new RegExp(c, "g"),
|
|
8582
|
+
if (V.length < y.g.h.length ? y = "" : (y = V.replace(new RegExp(c, "g"), u), y = y.replace(RegExp("9", "g"), " ")), 0 < y.length ? (a.v.g(y), a = !0) : a = !1, a) return d.da = r, d.ha = Y1.test(p(s, 4)), d.$ = 0, !0;
|
|
8578
8583
|
}
|
|
8579
8584
|
return d.u = !1;
|
|
8580
8585
|
}
|
|
8581
8586
|
function X1(d, t) {
|
|
8582
|
-
for (var $ = [], s = t.length - 3, r = d.j.length,
|
|
8583
|
-
var
|
|
8584
|
-
K(
|
|
8587
|
+
for (var $ = [], s = t.length - 3, r = d.j.length, a = 0; a < r; ++a) {
|
|
8588
|
+
var u = d.j[a];
|
|
8589
|
+
K(u, 3) == 0 ? $.push(d.j[a]) : (u = p(u, 3, Math.min(s, K(u, 3) - 1)), t.search(u) == 0 && $.push(d.j[a]));
|
|
8585
8590
|
}
|
|
8586
8591
|
d.j = $;
|
|
8587
8592
|
}
|
|
@@ -8613,8 +8618,8 @@ const Z2 = (m) => {
|
|
|
8613
8618
|
}
|
|
8614
8619
|
function d2(d) {
|
|
8615
8620
|
for (var t = d.g.toString(), $ = d.j.length, s = 0; s < $; ++s) {
|
|
8616
|
-
var r = d.j[s],
|
|
8617
|
-
if (new RegExp("^(?:" +
|
|
8621
|
+
var r = d.j[s], a = w(r, 1);
|
|
8622
|
+
if (new RegExp("^(?:" + a + ")$").test(t) && (d.ha = Y1.test(p(r, 4)), r = t.replace(new RegExp(a, "g"), p(r, 2)), r = c1(d, r), o1(r, g2) == d.ba)) return r;
|
|
8618
8623
|
}
|
|
8619
8624
|
return "";
|
|
8620
8625
|
}
|
|
@@ -8626,8 +8631,8 @@ const Z2 = (m) => {
|
|
|
8626
8631
|
var t = d.g.toString();
|
|
8627
8632
|
if (3 <= t.length) {
|
|
8628
8633
|
for (var $ = d.ca && d.o.length == 0 && 0 < K(d.l, 20) ? P(d.l, 20) : P(d.l, 19), s = $.length, r = 0; r < s; ++r) {
|
|
8629
|
-
var
|
|
8630
|
-
0 < d.o.length && G1(w(
|
|
8634
|
+
var a = $[r];
|
|
8635
|
+
0 < d.o.length && G1(w(a, 4)) && !p(a, 6) && !R(a, 5) || (d.o.length != 0 || d.ca || G1(w(a, 4)) || p(a, 6)) && E2.test(w(a, 2)) && d.j.push(a);
|
|
8631
8636
|
}
|
|
8632
8637
|
return X1(d, t), t = d2(d), 0 < t.length ? t : q1(d) ? t2(d) : d.s.toString();
|
|
8633
8638
|
}
|
|
@@ -8679,9 +8684,9 @@ const Z2 = (m) => {
|
|
|
8679
8684
|
}
|
|
8680
8685
|
}), e("intlTelInputUtilsTemp.formatNumber", (d, t, $) => {
|
|
8681
8686
|
try {
|
|
8682
|
-
const r = M.g(),
|
|
8683
|
-
var s = h1(r,
|
|
8684
|
-
return s == 0 || s == 4 ? r.format(
|
|
8687
|
+
const r = M.g(), a = Z(r, d, t);
|
|
8688
|
+
var s = h1(r, a, -1);
|
|
8689
|
+
return s == 0 || s == 4 ? r.format(a, typeof $ > "u" ? 0 : $) : d;
|
|
8685
8690
|
} catch {
|
|
8686
8691
|
return d;
|
|
8687
8692
|
}
|
|
@@ -8690,11 +8695,11 @@ const Z2 = (m) => {
|
|
|
8690
8695
|
const y = M.g();
|
|
8691
8696
|
d: {
|
|
8692
8697
|
var r = y;
|
|
8693
|
-
if (
|
|
8694
|
-
var
|
|
8698
|
+
if (a1(d)) {
|
|
8699
|
+
var a = u1(j(r, d), $);
|
|
8695
8700
|
try {
|
|
8696
|
-
if (R(
|
|
8697
|
-
var
|
|
8701
|
+
if (R(a, 6)) {
|
|
8702
|
+
var u = p(a, 6), c = z1(r, u, d, !1);
|
|
8698
8703
|
break d;
|
|
8699
8704
|
}
|
|
8700
8705
|
} catch {
|
|
@@ -8729,12 +8734,12 @@ const Z2 = (m) => {
|
|
|
8729
8734
|
}
|
|
8730
8735
|
}), e("intlTelInputUtilsTemp.isValidNumber", (d, t, $) => {
|
|
8731
8736
|
try {
|
|
8732
|
-
const s = M.g(), r = Z(s, d, t),
|
|
8737
|
+
const s = M.g(), r = Z(s, d, t), a = T2(s, r);
|
|
8733
8738
|
if ($) {
|
|
8734
|
-
const
|
|
8735
|
-
return
|
|
8739
|
+
const u = s2($).map((c) => _1[c]);
|
|
8740
|
+
return a && u.includes(U1(s, r));
|
|
8736
8741
|
}
|
|
8737
|
-
return
|
|
8742
|
+
return a;
|
|
8738
8743
|
} catch {
|
|
8739
8744
|
return !1;
|
|
8740
8745
|
}
|
|
@@ -8742,8 +8747,8 @@ const Z2 = (m) => {
|
|
|
8742
8747
|
try {
|
|
8743
8748
|
const s = M.g(), r = Z(s, d, t);
|
|
8744
8749
|
if ($) {
|
|
8745
|
-
const
|
|
8746
|
-
for (let
|
|
8750
|
+
const a = s2($);
|
|
8751
|
+
for (let u of a) if (h1(s, r, _1[u]) === 0) return !0;
|
|
8747
8752
|
return !1;
|
|
8748
8753
|
}
|
|
8749
8754
|
return h1(s, r, -1) === 0;
|
|
@@ -8794,8 +8799,8 @@ const q2 = {
|
|
|
8794
8799
|
"changeErrorCode"
|
|
8795
8800
|
], ["update:modelValue"]),
|
|
8796
8801
|
setup(m, { expose: e, emit: i }) {
|
|
8797
|
-
const n = D2(m, "modelValue"), o = m, l = i, g = v1(), h = v1(), _ = v1(!1),
|
|
8798
|
-
let f =
|
|
8802
|
+
const n = D2(m, "modelValue"), o = m, l = i, g = v1(), h = v1(), _ = v1(!1), b = () => h.value ? o.options.strictMode ? h.value.isValidNumberPrecise() : h.value.isValidNumber() : null, v = () => {
|
|
8803
|
+
let f = b();
|
|
8799
8804
|
_.value !== f && (_.value = f, l("changeValidity", !!f), l(
|
|
8800
8805
|
"changeErrorCode",
|
|
8801
8806
|
f ? null : h.value.getValidationError()
|
|
@@ -8808,7 +8813,7 @@ const q2 = {
|
|
|
8808
8813
|
l("changeCountry", ((f = h.value) == null ? void 0 : f.getSelectedCountryData().iso2) ?? ""), S(), v();
|
|
8809
8814
|
};
|
|
8810
8815
|
return P2(() => {
|
|
8811
|
-
g.value && (h.value = C(g.value, o.options), o.value && h.value.setNumber(o.value), o.disabled && h.value.setDisabled(o.disabled), _.value =
|
|
8816
|
+
g.value && (h.value = C(g.value, o.options), o.value && h.value.setNumber(o.value), o.disabled && h.value.setDisabled(o.disabled), _.value = b());
|
|
8812
8817
|
}), x2(
|
|
8813
8818
|
() => o.disabled,
|
|
8814
8819
|
(f) => {
|