intl-tel-input 25.5.2 → 25.8.0
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/CHANGELOG.md +29 -1
- package/README.md +15 -15
- package/angular/README.md +1 -1
- package/angular/build/IntlTelInput.js +170 -116
- package/angular/build/IntlTelInputWithUtils.js +235 -202
- package/angular/build/types/intl-tel-input/data.d.ts +7 -2
- package/angular/build/types/intl-tel-input/i18n/types.d.ts +1 -0
- package/angular/build/types/intl-tel-input.d.ts +14 -2
- package/build/css/intlTelInput.css +67 -6
- package/build/css/intlTelInput.min.css +1 -1
- package/build/js/data.js +6 -6
- package/build/js/data.min.js +2 -2
- package/build/js/i18n/en/interface.js +1 -0
- package/build/js/intlTelInput.d.ts +22 -4
- package/build/js/intlTelInput.js +187 -119
- package/build/js/intlTelInput.min.js +13 -2
- package/build/js/intlTelInputWithUtils.js +251 -204
- package/build/js/intlTelInputWithUtils.min.js +13 -2
- package/build/js/utils.js +22 -21
- package/package.json +9 -12
- package/react/README.md +1 -1
- package/react/build/IntlTelInput.cjs +186 -118
- package/react/build/IntlTelInput.d.ts +22 -4
- package/react/build/IntlTelInput.js +186 -118
- package/react/build/IntlTelInputWithUtils.cjs +250 -203
- package/react/build/IntlTelInputWithUtils.js +250 -203
- package/vue/README.md +1 -1
- package/vue/build/IntlTelInput.mjs +333 -274
- package/vue/build/IntlTelInputWithUtils.mjs +800 -763
|
@@ -1324,18 +1324,18 @@ var rawCountryData = [
|
|
|
1324
1324
|
]
|
|
1325
1325
|
];
|
|
1326
1326
|
var allCountries = [];
|
|
1327
|
-
for (
|
|
1328
|
-
|
|
1329
|
-
allCountries[i] = {
|
|
1327
|
+
for (const c of rawCountryData) {
|
|
1328
|
+
allCountries.push({
|
|
1330
1329
|
name: "",
|
|
1331
|
-
//
|
|
1330
|
+
// populated in the plugin
|
|
1332
1331
|
iso2: c[0],
|
|
1333
1332
|
dialCode: c[1],
|
|
1334
1333
|
priority: c[2] || 0,
|
|
1335
1334
|
areaCodes: c[3] || null,
|
|
1336
1335
|
nodeById: {},
|
|
1336
|
+
// populated by the plugin
|
|
1337
1337
|
nationalPrefix: c[4] || null
|
|
1338
|
-
};
|
|
1338
|
+
});
|
|
1339
1339
|
}
|
|
1340
1340
|
var data_default = allCountries;
|
|
1341
1341
|
|
|
@@ -1592,6 +1592,7 @@ var interfaceTranslations = {
|
|
|
1592
1592
|
noCountrySelected: "No country selected",
|
|
1593
1593
|
countryListAriaLabel: "List of countries",
|
|
1594
1594
|
searchPlaceholder: "Search",
|
|
1595
|
+
clearSearchAriaLabel: "Clear search",
|
|
1595
1596
|
zeroSearchResults: "No results found",
|
|
1596
1597
|
oneSearchResult: "1 result found",
|
|
1597
1598
|
multipleSearchResults: "${count} results found",
|
|
@@ -1606,10 +1607,23 @@ var allTranslations = Object.assign(Object.assign({}, countries_default), interf
|
|
|
1606
1607
|
var en_default = allTranslations;
|
|
1607
1608
|
|
|
1608
1609
|
// angular/build/temp/intl-tel-input.js
|
|
1609
|
-
for (
|
|
1610
|
-
|
|
1610
|
+
for (const c of data_default) {
|
|
1611
|
+
c.name = en_default[c.iso2];
|
|
1611
1612
|
}
|
|
1612
1613
|
var id = 0;
|
|
1614
|
+
var mq = (q) => {
|
|
1615
|
+
return typeof window !== "undefined" && typeof window.matchMedia === "function" && window.matchMedia(q).matches;
|
|
1616
|
+
};
|
|
1617
|
+
var computeDefaultUseFullscreenPopup = () => {
|
|
1618
|
+
if (typeof navigator !== "undefined" && typeof window !== "undefined") {
|
|
1619
|
+
const isMobileUserAgent = /Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
|
1620
|
+
const isNarrowViewport = mq("(max-width: 500px)");
|
|
1621
|
+
const isShortViewport = mq("(max-height: 600px)");
|
|
1622
|
+
const isCoarsePointer = mq("(pointer: coarse)");
|
|
1623
|
+
return isMobileUserAgent || isNarrowViewport || isCoarsePointer && isShortViewport;
|
|
1624
|
+
}
|
|
1625
|
+
return false;
|
|
1626
|
+
};
|
|
1613
1627
|
var defaults = {
|
|
1614
1628
|
//* Whether or not to allow the dropdown.
|
|
1615
1629
|
allowDropdown: true,
|
|
@@ -1656,11 +1670,7 @@ var defaults = {
|
|
|
1656
1670
|
//* Only allow certain chars e.g. a plus followed by numeric digits, and cap at max valid length.
|
|
1657
1671
|
strictMode: false,
|
|
1658
1672
|
//* Use full screen popup instead of dropdown for country list.
|
|
1659
|
-
useFullscreenPopup:
|
|
1660
|
-
//* We cannot just test screen size as some smartphones/website meta tags will report desktop resolutions.
|
|
1661
|
-
//* Note: to target Android Mobiles (and not Tablets), we must find 'Android' and 'Mobile'
|
|
1662
|
-
/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) || window.innerWidth <= 500
|
|
1663
|
-
) : false,
|
|
1673
|
+
useFullscreenPopup: computeDefaultUseFullscreenPopup(),
|
|
1664
1674
|
//* The number type to enforce during validation.
|
|
1665
1675
|
validationNumberTypes: ["MOBILE"]
|
|
1666
1676
|
};
|
|
@@ -1688,7 +1698,7 @@ var normaliseString = (s = "") => s.normalize("NFD").replace(/[\u0300-\u036f]/g,
|
|
|
1688
1698
|
var isRegionlessNanp = (number) => {
|
|
1689
1699
|
const numeric = getNumeric(number);
|
|
1690
1700
|
if (numeric.charAt(0) === "1") {
|
|
1691
|
-
const areaCode = numeric.
|
|
1701
|
+
const areaCode = numeric.substring(1, 4);
|
|
1692
1702
|
return regionlessNanpNumbers.includes(areaCode);
|
|
1693
1703
|
}
|
|
1694
1704
|
return false;
|
|
@@ -1711,8 +1721,8 @@ var translateCursorPosition = (relevantChars, formattedValue, prevCaretPos, isDe
|
|
|
1711
1721
|
}
|
|
1712
1722
|
return formattedValue.length;
|
|
1713
1723
|
};
|
|
1714
|
-
var createEl = (
|
|
1715
|
-
const el = document.createElement(
|
|
1724
|
+
var createEl = (tagName, attrs, container) => {
|
|
1725
|
+
const el = document.createElement(tagName);
|
|
1716
1726
|
if (attrs) {
|
|
1717
1727
|
Object.entries(attrs).forEach(([key, value]) => el.setAttribute(key, value));
|
|
1718
1728
|
}
|
|
@@ -1725,7 +1735,14 @@ var forEachInstance = (method, ...args) => {
|
|
|
1725
1735
|
const { instances } = intlTelInput;
|
|
1726
1736
|
Object.values(instances).forEach((instance) => instance[method](...args));
|
|
1727
1737
|
};
|
|
1728
|
-
var Iti = class {
|
|
1738
|
+
var Iti = class _Iti {
|
|
1739
|
+
/**
|
|
1740
|
+
* Build a space-delimited class string from an object map of className -> truthy/falsey.
|
|
1741
|
+
* Only keys with truthy values are included.
|
|
1742
|
+
*/
|
|
1743
|
+
static _buildClassNames(flags) {
|
|
1744
|
+
return Object.keys(flags).filter((k) => Boolean(flags[k])).join(" ");
|
|
1745
|
+
}
|
|
1729
1746
|
constructor(input, customOptions = {}) {
|
|
1730
1747
|
this.id = id++;
|
|
1731
1748
|
this.telInput = input;
|
|
@@ -1788,6 +1805,16 @@ var Iti = class {
|
|
|
1788
1805
|
this._processDialCodes();
|
|
1789
1806
|
this._translateCountryNames();
|
|
1790
1807
|
this._sortCountries();
|
|
1808
|
+
this.countryByIso2 = new Map(this.countries.map((c) => [c.iso2, c]));
|
|
1809
|
+
this._cacheSearchTokens();
|
|
1810
|
+
}
|
|
1811
|
+
//* Precompute and cache country search tokens to speed up filtering
|
|
1812
|
+
_cacheSearchTokens() {
|
|
1813
|
+
for (const c of this.countries) {
|
|
1814
|
+
c.normalisedName = normaliseString(c.name);
|
|
1815
|
+
c.initials = c.name.split(/[^a-zA-ZÀ-ÿа-яА-Я]/).map((word) => word[0]).join("").toLowerCase();
|
|
1816
|
+
c.dialCodePlus = `+${c.dialCode}`;
|
|
1817
|
+
}
|
|
1791
1818
|
}
|
|
1792
1819
|
//* Sort countries by countryOrder option (if present), then name.
|
|
1793
1820
|
_sortCountries() {
|
|
@@ -1819,13 +1846,12 @@ var Iti = class {
|
|
|
1819
1846
|
if (!this.dialCodeToIso2Map.hasOwnProperty(dialCode)) {
|
|
1820
1847
|
this.dialCodeToIso2Map[dialCode] = [];
|
|
1821
1848
|
}
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
}
|
|
1849
|
+
const iso2List = this.dialCodeToIso2Map[dialCode];
|
|
1850
|
+
if (iso2List.includes(iso2)) {
|
|
1851
|
+
return;
|
|
1826
1852
|
}
|
|
1827
|
-
const index = priority !== void 0 ? priority :
|
|
1828
|
-
|
|
1853
|
+
const index = priority !== void 0 ? priority : iso2List.length;
|
|
1854
|
+
iso2List[index] = iso2;
|
|
1829
1855
|
}
|
|
1830
1856
|
//* Process onlyCountries or excludeCountries array if present.
|
|
1831
1857
|
_processAllCountries() {
|
|
@@ -1842,33 +1868,30 @@ var Iti = class {
|
|
|
1842
1868
|
}
|
|
1843
1869
|
//* Translate Countries by object literal provided on config.
|
|
1844
1870
|
_translateCountryNames() {
|
|
1845
|
-
for (
|
|
1846
|
-
const iso2 =
|
|
1871
|
+
for (const c of this.countries) {
|
|
1872
|
+
const iso2 = c.iso2.toLowerCase();
|
|
1847
1873
|
if (this.options.i18n.hasOwnProperty(iso2)) {
|
|
1848
|
-
|
|
1874
|
+
c.name = this.options.i18n[iso2];
|
|
1849
1875
|
}
|
|
1850
1876
|
}
|
|
1851
1877
|
}
|
|
1852
1878
|
//* Generate this.dialCodes and this.dialCodeToIso2Map.
|
|
1853
1879
|
_processDialCodes() {
|
|
1854
|
-
this.dialCodes =
|
|
1880
|
+
this.dialCodes = /* @__PURE__ */ new Set();
|
|
1855
1881
|
this.dialCodeMaxLen = 0;
|
|
1856
1882
|
this.dialCodeToIso2Map = {};
|
|
1857
|
-
for (
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
this.dialCodes[c.dialCode] = true;
|
|
1883
|
+
for (const c of this.countries) {
|
|
1884
|
+
if (!this.dialCodes.has(c.dialCode)) {
|
|
1885
|
+
this.dialCodes.add(c.dialCode);
|
|
1861
1886
|
}
|
|
1862
1887
|
this._addToDialCodeMap(c.iso2, c.dialCode, c.priority);
|
|
1863
1888
|
}
|
|
1864
|
-
for (
|
|
1865
|
-
const c = this.countries[i];
|
|
1889
|
+
for (const c of this.countries) {
|
|
1866
1890
|
if (c.areaCodes) {
|
|
1867
1891
|
const rootIso2Code = this.dialCodeToIso2Map[c.dialCode][0];
|
|
1868
|
-
for (
|
|
1869
|
-
const areaCode = c.areaCodes[j];
|
|
1892
|
+
for (const areaCode of c.areaCodes) {
|
|
1870
1893
|
for (let k = 1; k < areaCode.length; k++) {
|
|
1871
|
-
const partialAreaCode = areaCode.
|
|
1894
|
+
const partialAreaCode = areaCode.substring(0, k);
|
|
1872
1895
|
const partialDialCode = c.dialCode + partialAreaCode;
|
|
1873
1896
|
this._addToDialCodeMap(rootIso2Code, partialDialCode);
|
|
1874
1897
|
this._addToDialCodeMap(c.iso2, partialDialCode);
|
|
@@ -1886,20 +1909,14 @@ var Iti = class {
|
|
|
1886
1909
|
this.telInput.setAttribute("autocomplete", "off");
|
|
1887
1910
|
}
|
|
1888
1911
|
const { allowDropdown, separateDialCode, showFlags, containerClass, hiddenInput, dropdownContainer, fixDropdownWidth, useFullscreenPopup, countrySearch, i18n } = this.options;
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
}
|
|
1896
|
-
|
|
1897
|
-
parentClass += ` ${containerClass}`;
|
|
1898
|
-
}
|
|
1899
|
-
if (!useFullscreenPopup) {
|
|
1900
|
-
parentClass += " iti--inline-dropdown";
|
|
1901
|
-
}
|
|
1902
|
-
const wrapper = createEl("div", { class: parentClass });
|
|
1912
|
+
const parentClasses = _Iti._buildClassNames({
|
|
1913
|
+
"iti": true,
|
|
1914
|
+
"iti--allow-dropdown": allowDropdown,
|
|
1915
|
+
"iti--show-flags": showFlags,
|
|
1916
|
+
"iti--inline-dropdown": !useFullscreenPopup,
|
|
1917
|
+
[containerClass]: Boolean(containerClass)
|
|
1918
|
+
});
|
|
1919
|
+
const wrapper = createEl("div", { class: parentClasses });
|
|
1903
1920
|
(_a = this.telInput.parentNode) === null || _a === void 0 ? void 0 : _a.insertBefore(wrapper, this.telInput);
|
|
1904
1921
|
if (allowDropdown || showFlags || separateDialCode) {
|
|
1905
1922
|
this.countryContainer = createEl("div", { class: "iti__country-container" }, wrapper);
|
|
@@ -1914,9 +1931,8 @@ var Iti = class {
|
|
|
1914
1931
|
class: "iti__selected-country",
|
|
1915
1932
|
"aria-expanded": "false",
|
|
1916
1933
|
"aria-label": this.options.i18n.selectedCountryAriaLabel,
|
|
1917
|
-
"aria-haspopup": "
|
|
1918
|
-
"aria-controls": `iti-${this.id}__dropdown-content
|
|
1919
|
-
"role": "combobox"
|
|
1934
|
+
"aria-haspopup": "dialog",
|
|
1935
|
+
"aria-controls": `iti-${this.id}__dropdown-content`
|
|
1920
1936
|
}, this.countryContainer);
|
|
1921
1937
|
if (this.telInput.disabled) {
|
|
1922
1938
|
this.selectedCountry.setAttribute("disabled", "true");
|
|
@@ -1937,21 +1953,57 @@ var Iti = class {
|
|
|
1937
1953
|
const extraClasses = fixDropdownWidth ? "" : "iti--flexible-dropdown-width";
|
|
1938
1954
|
this.dropdownContent = createEl("div", {
|
|
1939
1955
|
id: `iti-${this.id}__dropdown-content`,
|
|
1940
|
-
class: `iti__dropdown-content iti__hide ${extraClasses}
|
|
1956
|
+
class: `iti__dropdown-content iti__hide ${extraClasses}`,
|
|
1957
|
+
role: "dialog",
|
|
1958
|
+
"aria-modal": "true"
|
|
1941
1959
|
});
|
|
1942
1960
|
if (countrySearch) {
|
|
1961
|
+
const searchWrapper = createEl("div", { class: "iti__search-input-wrapper" }, this.dropdownContent);
|
|
1962
|
+
this.searchIcon = createEl("span", {
|
|
1963
|
+
class: "iti__search-icon",
|
|
1964
|
+
"aria-hidden": "true"
|
|
1965
|
+
}, searchWrapper);
|
|
1966
|
+
this.searchIcon.innerHTML = `
|
|
1967
|
+
<svg class="iti__search-icon-svg" width="14" height="14" viewBox="0 0 24 24" focusable="false" aria-hidden="true">
|
|
1968
|
+
<circle cx="11" cy="11" r="7" />
|
|
1969
|
+
<line x1="21" y1="21" x2="16.65" y2="16.65" />
|
|
1970
|
+
</svg>`;
|
|
1943
1971
|
this.searchInput = createEl("input", {
|
|
1944
|
-
|
|
1972
|
+
id: `iti-${this.id}__search-input`,
|
|
1973
|
+
// Chrome says inputs need either a name or an id
|
|
1974
|
+
type: "search",
|
|
1945
1975
|
class: "iti__search-input",
|
|
1946
1976
|
placeholder: i18n.searchPlaceholder,
|
|
1977
|
+
// role=combobox + aria-autocomplete=list + aria-activedescendant allows maintaining focus on the search input while allowing users to navigate search results with up/down keyboard keys
|
|
1947
1978
|
role: "combobox",
|
|
1948
1979
|
"aria-expanded": "true",
|
|
1949
1980
|
"aria-label": i18n.searchPlaceholder,
|
|
1950
1981
|
"aria-controls": `iti-${this.id}__country-listbox`,
|
|
1951
1982
|
"aria-autocomplete": "list",
|
|
1952
1983
|
"autocomplete": "off"
|
|
1953
|
-
},
|
|
1984
|
+
}, searchWrapper);
|
|
1985
|
+
this.searchClearButton = createEl("button", {
|
|
1986
|
+
type: "button",
|
|
1987
|
+
class: "iti__search-clear iti__hide",
|
|
1988
|
+
"aria-label": i18n.clearSearchAriaLabel,
|
|
1989
|
+
tabindex: "-1"
|
|
1990
|
+
}, searchWrapper);
|
|
1991
|
+
const maskId = `iti-${this.id}-clear-mask`;
|
|
1992
|
+
this.searchClearButton.innerHTML = `
|
|
1993
|
+
<svg class="iti__search-clear-svg" width="12" height="12" viewBox="0 0 16 16" aria-hidden="true" focusable="false">
|
|
1994
|
+
<mask id="${maskId}" maskUnits="userSpaceOnUse">
|
|
1995
|
+
<rect width="16" height="16" fill="white" />
|
|
1996
|
+
<path d="M5.2 5.2 L10.8 10.8 M10.8 5.2 L5.2 10.8" stroke="black" stroke-linecap="round" class="iti__search-clear-x" />
|
|
1997
|
+
</mask>
|
|
1998
|
+
<circle cx="8" cy="8" r="8" class="iti__search-clear-bg" mask="url(#${maskId})" />
|
|
1999
|
+
</svg>`;
|
|
1954
2000
|
this.searchResultsA11yText = createEl("span", { class: "iti__a11y-text" }, this.dropdownContent);
|
|
2001
|
+
this.searchNoResults = createEl("div", {
|
|
2002
|
+
class: "iti__no-results iti__hide",
|
|
2003
|
+
"aria-hidden": "true"
|
|
2004
|
+
// all a11y messaging happens in this.searchResultsA11yText
|
|
2005
|
+
}, this.dropdownContent);
|
|
2006
|
+
this.searchNoResults.textContent = i18n.zeroSearchResults;
|
|
1955
2007
|
}
|
|
1956
2008
|
this.countryList = createEl("ul", {
|
|
1957
2009
|
class: "iti__country-list",
|
|
@@ -1961,18 +2013,16 @@ var Iti = class {
|
|
|
1961
2013
|
}, this.dropdownContent);
|
|
1962
2014
|
this._appendListItems();
|
|
1963
2015
|
if (countrySearch) {
|
|
1964
|
-
this.
|
|
2016
|
+
this._updateSearchResultsA11yText();
|
|
1965
2017
|
}
|
|
1966
2018
|
if (dropdownContainer) {
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
}
|
|
1974
|
-
dropdownClasses += " iti--inline-dropdown";
|
|
1975
|
-
}
|
|
2019
|
+
const dropdownClasses = _Iti._buildClassNames({
|
|
2020
|
+
"iti": true,
|
|
2021
|
+
"iti--container": true,
|
|
2022
|
+
"iti--fullscreen-popup": useFullscreenPopup,
|
|
2023
|
+
"iti--inline-dropdown": !useFullscreenPopup,
|
|
2024
|
+
[containerClass]: Boolean(containerClass)
|
|
2025
|
+
});
|
|
1976
2026
|
this.dropdown = createEl("div", { class: dropdownClasses });
|
|
1977
2027
|
this.dropdown.appendChild(this.dropdownContent);
|
|
1978
2028
|
} else {
|
|
@@ -2246,7 +2296,7 @@ var Iti = class {
|
|
|
2246
2296
|
//* Adhere to the input's maxlength attr.
|
|
2247
2297
|
_cap(number) {
|
|
2248
2298
|
const max = parseInt(this.telInput.getAttribute("maxlength") || "", 10);
|
|
2249
|
-
return max && number.length > max ? number.
|
|
2299
|
+
return max && number.length > max ? number.substring(0, max) : number;
|
|
2250
2300
|
}
|
|
2251
2301
|
//* Trigger a custom event on the input.
|
|
2252
2302
|
_trigger(name, detailProps = {}) {
|
|
@@ -2355,6 +2405,11 @@ var Iti = class {
|
|
|
2355
2405
|
} else {
|
|
2356
2406
|
this._filterCountries("", true);
|
|
2357
2407
|
}
|
|
2408
|
+
if (this.searchInput.value) {
|
|
2409
|
+
this.searchClearButton.classList.remove("iti__hide");
|
|
2410
|
+
} else {
|
|
2411
|
+
this.searchClearButton.classList.add("iti__hide");
|
|
2412
|
+
}
|
|
2358
2413
|
};
|
|
2359
2414
|
let keyupTimer = null;
|
|
2360
2415
|
this._handleSearchChange = () => {
|
|
@@ -2367,14 +2422,20 @@ var Iti = class {
|
|
|
2367
2422
|
}, 100);
|
|
2368
2423
|
};
|
|
2369
2424
|
this.searchInput.addEventListener("input", this._handleSearchChange);
|
|
2425
|
+
this._handleSearchClear = (e) => {
|
|
2426
|
+
e.stopPropagation();
|
|
2427
|
+
this.searchInput.value = "";
|
|
2428
|
+
this.searchInput.focus();
|
|
2429
|
+
doFilter();
|
|
2430
|
+
};
|
|
2431
|
+
this.searchClearButton.addEventListener("click", this._handleSearchClear);
|
|
2370
2432
|
this.searchInput.addEventListener("click", (e) => e.stopPropagation());
|
|
2371
2433
|
}
|
|
2372
2434
|
}
|
|
2373
2435
|
//* Hidden search (countrySearch disabled): Find the first list item whose name starts with the query string.
|
|
2374
2436
|
_searchForCountry(query) {
|
|
2375
|
-
for (
|
|
2376
|
-
const
|
|
2377
|
-
const startsWith = c.name.substr(0, query.length).toLowerCase() === query;
|
|
2437
|
+
for (const c of this.countries) {
|
|
2438
|
+
const startsWith = c.name.substring(0, query.length).toLowerCase() === query;
|
|
2378
2439
|
if (startsWith) {
|
|
2379
2440
|
const listItem = c.nodeById[this.id];
|
|
2380
2441
|
this._highlightListItem(listItem, false);
|
|
@@ -2395,23 +2456,20 @@ var Iti = class {
|
|
|
2395
2456
|
const dialCodeMatches = [];
|
|
2396
2457
|
const dialCodeContains = [];
|
|
2397
2458
|
const initialsMatches = [];
|
|
2398
|
-
for (
|
|
2399
|
-
const c = this.countries[i];
|
|
2400
|
-
const normalisedCountryName = normaliseString(c.name);
|
|
2401
|
-
const countryInitials = c.name.split(/[^a-zA-ZÀ-ÿа-яА-Я]/).map((word) => word[0]).join("").toLowerCase();
|
|
2459
|
+
for (const c of this.countries) {
|
|
2402
2460
|
if (isReset || queryLength === 0) {
|
|
2403
2461
|
nameContains.push(c);
|
|
2404
|
-
} else if (c.iso2
|
|
2462
|
+
} else if (c.iso2 === normalisedQuery) {
|
|
2405
2463
|
iso2Matches.push(c);
|
|
2406
|
-
} else if (
|
|
2464
|
+
} else if (c.normalisedName.startsWith(normalisedQuery)) {
|
|
2407
2465
|
nameStartWith.push(c);
|
|
2408
|
-
} else if (
|
|
2466
|
+
} else if (c.normalisedName.includes(normalisedQuery)) {
|
|
2409
2467
|
nameContains.push(c);
|
|
2410
|
-
} else if (normalisedQuery === c.dialCode || normalisedQuery ===
|
|
2468
|
+
} else if (normalisedQuery === c.dialCode || normalisedQuery === c.dialCodePlus) {
|
|
2411
2469
|
dialCodeMatches.push(c);
|
|
2412
|
-
} else if (
|
|
2470
|
+
} else if (c.dialCodePlus.includes(normalisedQuery)) {
|
|
2413
2471
|
dialCodeContains.push(c);
|
|
2414
|
-
} else if (
|
|
2472
|
+
} else if (c.initials.includes(normalisedQuery)) {
|
|
2415
2473
|
initialsMatches.push(c);
|
|
2416
2474
|
}
|
|
2417
2475
|
}
|
|
@@ -2435,12 +2493,17 @@ var Iti = class {
|
|
|
2435
2493
|
}
|
|
2436
2494
|
if (noCountriesAddedYet) {
|
|
2437
2495
|
this._highlightListItem(null, false);
|
|
2496
|
+
if (this.searchNoResults) {
|
|
2497
|
+
this.searchNoResults.classList.remove("iti__hide");
|
|
2498
|
+
}
|
|
2499
|
+
} else if (this.searchNoResults) {
|
|
2500
|
+
this.searchNoResults.classList.add("iti__hide");
|
|
2438
2501
|
}
|
|
2439
2502
|
this.countryList.scrollTop = 0;
|
|
2440
|
-
this.
|
|
2503
|
+
this._updateSearchResultsA11yText();
|
|
2441
2504
|
}
|
|
2442
2505
|
//* Update search results text (for a11y).
|
|
2443
|
-
|
|
2506
|
+
_updateSearchResultsA11yText() {
|
|
2444
2507
|
const { i18n } = this.options;
|
|
2445
2508
|
const count = this.countryList.childElementCount;
|
|
2446
2509
|
let searchText;
|
|
@@ -2528,9 +2591,9 @@ var Iti = class {
|
|
|
2528
2591
|
const alreadySelected = selectedIso2 && iso2Codes.includes(selectedIso2) && !hasAreaCodesButNoneMatched;
|
|
2529
2592
|
const isRegionlessNanpNumber = selectedDialCode === "1" && isRegionlessNanp(numeric);
|
|
2530
2593
|
if (!isRegionlessNanpNumber && !alreadySelected) {
|
|
2531
|
-
for (
|
|
2532
|
-
if (
|
|
2533
|
-
return
|
|
2594
|
+
for (const iso2 of iso2Codes) {
|
|
2595
|
+
if (iso2) {
|
|
2596
|
+
return iso2;
|
|
2534
2597
|
}
|
|
2535
2598
|
}
|
|
2536
2599
|
}
|
|
@@ -2552,9 +2615,8 @@ var Iti = class {
|
|
|
2552
2615
|
if (this.highlightedItem) {
|
|
2553
2616
|
this.highlightedItem.classList.add("iti__highlight");
|
|
2554
2617
|
this.highlightedItem.setAttribute("aria-selected", "true");
|
|
2555
|
-
const activeDescendant = this.highlightedItem.getAttribute("id") || "";
|
|
2556
|
-
this.selectedCountry.setAttribute("aria-activedescendant", activeDescendant);
|
|
2557
2618
|
if (this.options.countrySearch) {
|
|
2619
|
+
const activeDescendant = this.highlightedItem.getAttribute("id") || "";
|
|
2558
2620
|
this.searchInput.setAttribute("aria-activedescendant", activeDescendant);
|
|
2559
2621
|
}
|
|
2560
2622
|
}
|
|
@@ -2563,12 +2625,11 @@ var Iti = class {
|
|
|
2563
2625
|
}
|
|
2564
2626
|
}
|
|
2565
2627
|
//* Find the country data for the given iso2 code
|
|
2566
|
-
//* the
|
|
2628
|
+
//* the allowFail option is only used during init() for the initialCountry option, and for the iso2 returned from geoIpLookup - in these 2 cases we don't want to error out
|
|
2567
2629
|
_getCountryData(iso2, allowFail) {
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
}
|
|
2630
|
+
const country = this.countryByIso2.get(iso2);
|
|
2631
|
+
if (country) {
|
|
2632
|
+
return country;
|
|
2572
2633
|
}
|
|
2573
2634
|
if (allowFail) {
|
|
2574
2635
|
return null;
|
|
@@ -2703,7 +2764,6 @@ var Iti = class {
|
|
|
2703
2764
|
_closeDropdown() {
|
|
2704
2765
|
this.dropdownContent.classList.add("iti__hide");
|
|
2705
2766
|
this.selectedCountry.setAttribute("aria-expanded", "false");
|
|
2706
|
-
this.selectedCountry.removeAttribute("aria-activedescendant");
|
|
2707
2767
|
if (this.highlightedItem) {
|
|
2708
2768
|
this.highlightedItem.setAttribute("aria-selected", "false");
|
|
2709
2769
|
}
|
|
@@ -2711,9 +2771,9 @@ var Iti = class {
|
|
|
2711
2771
|
this.searchInput.removeAttribute("aria-activedescendant");
|
|
2712
2772
|
}
|
|
2713
2773
|
this.dropdownArrow.classList.remove("iti__arrow--up");
|
|
2714
|
-
document.removeEventListener("keydown", this._handleKeydownOnDropdown);
|
|
2715
2774
|
if (this.options.countrySearch) {
|
|
2716
2775
|
this.searchInput.removeEventListener("input", this._handleSearchChange);
|
|
2776
|
+
this.searchClearButton.removeEventListener("click", this._handleSearchClear);
|
|
2717
2777
|
}
|
|
2718
2778
|
document.documentElement.removeEventListener("click", this._handleClickOffToClose);
|
|
2719
2779
|
this.countryList.removeEventListener("mouseover", this._handleMouseoverCountryList);
|
|
@@ -2777,11 +2837,11 @@ var Iti = class {
|
|
|
2777
2837
|
numericChars += c;
|
|
2778
2838
|
if (includeAreaCode) {
|
|
2779
2839
|
if (this.dialCodeToIso2Map[numericChars]) {
|
|
2780
|
-
dialCode = number.
|
|
2840
|
+
dialCode = number.substring(0, i + 1);
|
|
2781
2841
|
}
|
|
2782
2842
|
} else {
|
|
2783
|
-
if (this.dialCodes
|
|
2784
|
-
dialCode = number.
|
|
2843
|
+
if (this.dialCodes.has(numericChars)) {
|
|
2844
|
+
dialCode = number.substring(0, i + 1);
|
|
2785
2845
|
break;
|
|
2786
2846
|
}
|
|
2787
2847
|
}
|
|
@@ -2814,7 +2874,7 @@ var Iti = class {
|
|
|
2814
2874
|
if (dialCode) {
|
|
2815
2875
|
dialCode = `+${this.selectedCountryData.dialCode}`;
|
|
2816
2876
|
const start = number[dialCode.length] === " " || number[dialCode.length] === "-" ? dialCode.length + 1 : dialCode.length;
|
|
2817
|
-
number = number.
|
|
2877
|
+
number = number.substring(start);
|
|
2818
2878
|
}
|
|
2819
2879
|
}
|
|
2820
2880
|
return this._cap(number);
|
|
@@ -2933,38 +2993,32 @@ var Iti = class {
|
|
|
2933
2993
|
}
|
|
2934
2994
|
return -99;
|
|
2935
2995
|
}
|
|
2936
|
-
//* Validate the input val
|
|
2996
|
+
//* Validate the input val (with precise=false)
|
|
2937
2997
|
isValidNumber() {
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
if (alphaCharPosition > -1) {
|
|
2944
|
-
const beforeAlphaChar = val.substring(0, alphaCharPosition);
|
|
2945
|
-
const beforeAlphaIsValid = this._utilsIsPossibleNumber(beforeAlphaChar);
|
|
2946
|
-
const isValid = this._utilsIsPossibleNumber(val);
|
|
2947
|
-
return beforeAlphaIsValid && isValid;
|
|
2948
|
-
}
|
|
2949
|
-
return this._utilsIsPossibleNumber(val);
|
|
2998
|
+
return this._validateNumber(false);
|
|
2999
|
+
}
|
|
3000
|
+
//* Validate the input val (with precise=true)
|
|
3001
|
+
isValidNumberPrecise() {
|
|
3002
|
+
return this._validateNumber(true);
|
|
2950
3003
|
}
|
|
2951
3004
|
_utilsIsPossibleNumber(val) {
|
|
2952
3005
|
return intlTelInput.utils ? intlTelInput.utils.isPossibleNumber(val, this.selectedCountryData.iso2, this.options.validationNumberTypes) : null;
|
|
2953
3006
|
}
|
|
2954
|
-
//*
|
|
2955
|
-
|
|
3007
|
+
//* Shared internal validation logic to handle alpha character extension rules.
|
|
3008
|
+
_validateNumber(precise) {
|
|
2956
3009
|
if (!this.selectedCountryData.iso2) {
|
|
2957
3010
|
return false;
|
|
2958
3011
|
}
|
|
2959
3012
|
const val = this._getFullNumber();
|
|
2960
3013
|
const alphaCharPosition = val.search(/\p{L}/u);
|
|
3014
|
+
const testValidity = (s) => precise ? this._utilsIsValidNumber(s) : this._utilsIsPossibleNumber(s);
|
|
2961
3015
|
if (alphaCharPosition > -1) {
|
|
2962
3016
|
const beforeAlphaChar = val.substring(0, alphaCharPosition);
|
|
2963
|
-
const beforeAlphaIsValid =
|
|
2964
|
-
const isValid =
|
|
3017
|
+
const beforeAlphaIsValid = testValidity(beforeAlphaChar);
|
|
3018
|
+
const isValid = testValidity(val);
|
|
2965
3019
|
return beforeAlphaIsValid && isValid;
|
|
2966
3020
|
}
|
|
2967
|
-
return
|
|
3021
|
+
return testValidity(val);
|
|
2968
3022
|
}
|
|
2969
3023
|
_utilsIsValidNumber(val) {
|
|
2970
3024
|
return intlTelInput.utils ? intlTelInput.utils.isValidNumber(val, this.selectedCountryData.iso2, this.options.validationNumberTypes) : null;
|
|
@@ -3054,7 +3108,7 @@ var intlTelInput = Object.assign((input, options) => {
|
|
|
3054
3108
|
attachUtils,
|
|
3055
3109
|
startedLoadingUtilsScript: false,
|
|
3056
3110
|
startedLoadingAutoCountry: false,
|
|
3057
|
-
version: "25.
|
|
3111
|
+
version: "25.8.0"
|
|
3058
3112
|
});
|
|
3059
3113
|
var intl_tel_input_default = intlTelInput;
|
|
3060
3114
|
|
|
@@ -4424,37 +4478,12 @@ var intl_tel_input_default = intlTelInput;
|
|
|
4424
4478
|
,
|
|
4425
4479
|
[-1]
|
|
4426
4480
|
], [, , "242225\\d{4}", , , , "2422250123"], , , [, , , , , , , , , [-1]]],
|
|
4427
|
-
BT: [
|
|
4428
|
-
,
|
|
4429
|
-
[, , "[17]\\d{7}|[2-8]\\d{6}", , , , , , , [7, 8], [6]],
|
|
4430
|
-
[, , "(?:2[3-6]|[34][5-7]|5[236]|6[2-46]|7[246]|8[2-4])\\d{5}", , , , "2345678", , , [7], [6]],
|
|
4431
|
-
[, , "(?:1[67]|77)\\d{6}", , , , "17123456", , , [8]],
|
|
4432
|
-
[, , , , , , , , , [-1]],
|
|
4433
|
-
[, , , , , , , , , [-1]],
|
|
4434
|
-
[, , , , , , , , , [-1]],
|
|
4435
|
-
[, , , , , , , , , [-1]],
|
|
4436
|
-
[, , , , , , , , , [-1]],
|
|
4437
|
-
"BT",
|
|
4438
|
-
975,
|
|
4439
|
-
"00",
|
|
4440
|
-
,
|
|
4441
|
-
,
|
|
4442
|
-
,
|
|
4481
|
+
BT: [, [, , "[178]\\d{7}|[2-8]\\d{6}", , , , , , , [7, 8], [6]], [, , "(?:2[3-6]|[34][5-7]|5[236]|6[2-46]|7[246]|8[2-4])\\d{5}", , , , "2345678", , , [7], [6]], [, , "(?:1[67]|[78]7)\\d{6}", , , , "17123456", , , [8]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "BT", 975, "00", , , , , , , , [[, "(\\d{3})(\\d{3})", "$1 $2", ["[2-7]"]], [, "(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-6]|7[246]|8[2-4]"]], [
|
|
4443
4482
|
,
|
|
4444
|
-
,
|
|
4445
|
-
,
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
[[, "(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-68]|7[246]"]], [, "(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[67]|7"]]],
|
|
4449
|
-
[, , , , , , , , , [-1]],
|
|
4450
|
-
,
|
|
4451
|
-
,
|
|
4452
|
-
[, , , , , , , , , [-1]],
|
|
4453
|
-
[, , , , , , , , , [-1]],
|
|
4454
|
-
,
|
|
4455
|
-
,
|
|
4456
|
-
[, , , , , , , , , [-1]]
|
|
4457
|
-
],
|
|
4483
|
+
"(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
|
|
4484
|
+
"$1 $2 $3 $4",
|
|
4485
|
+
["1[67]|[78]"]
|
|
4486
|
+
]], [[, "(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-6]|7[246]|8[2-4]"]], [, "(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[67]|[78]"]]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
4458
4487
|
BW: [, [, , "(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}", , , , , , , [7, 8, 10]], [, , "(?:2(?:4[0-48]|6[0-24]|9[0578])|3(?:1[0-35-9]|55|[69]\\d|7[013]|81)|4(?:6[03]|7[1267]|9[0-5])|5(?:3[03489]|4[0489]|7[1-47]|88|9[0-49])|6(?:2[1-35]|5[149]|8[013467]))\\d{4}", , , , "2401234", , , [7]], [
|
|
4459
4488
|
,
|
|
4460
4489
|
,
|
|
@@ -4466,7 +4495,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
4466
4495
|
,
|
|
4467
4496
|
,
|
|
4468
4497
|
[8]
|
|
4469
|
-
], [, , "(?:0800|800\\d)\\d{6}", , , , "0800012345", , , [10]], [, , "90\\d{5}", , , , "9012345", , , [7]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "79(?:1(?:[0-2]\\d|3[0-8])|2[0-7]\\d)\\d{3}", , , , "79101234", , , [8]], "BW", 267, "00", , , , , , , , [[, "(\\d{2})(\\d{5})", "$1 $2", ["90"]], [, "(\\d{3})(\\d{4})", "$1 $2", ["[24-6]|3[15-9]"]], [, "(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[37]"]], [, "(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["0"]], [, "(\\d{3})(\\d{4})(\\d{3})", "$1 $2 $3", ["8"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [
|
|
4498
|
+
], [, , "(?:0800|800\\d)\\d{6}", , , , "0800012345", , , [10]], [, , "90\\d{5}", , , , "9012345", , , [7]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "79(?:1(?:[0-2]\\d|3[0-8])|2[0-7]\\d)\\d{3}", , , , "79101234", , , [8]], "BW", 267, "00", , , , , , , , [[, "(\\d{2})(\\d{5})", "$1 $2", ["90"]], [, "(\\d{3})(\\d{4})", "$1 $2", ["[24-6]|3[15-9]"]], [, "(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[37]"]], [, "(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["0"]], [, "(\\d{3})(\\d{4})(\\d{3})", "$1 $2 $3", ["8"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [
|
|
4470
4499
|
,
|
|
4471
4500
|
,
|
|
4472
4501
|
,
|
|
@@ -4477,7 +4506,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
4477
4506
|
,
|
|
4478
4507
|
,
|
|
4479
4508
|
[-1]
|
|
4480
|
-
]],
|
|
4509
|
+
], , , [, , , , , , , , , [-1]]],
|
|
4481
4510
|
BY: [, [, , "(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}", , , , , , , [6, 7, 8, 9, 10, 11], [5]], [, , "(?:1(?:5(?:1[1-5]|[24]\\d|6[2-4]|9[1-7])|6(?:[235]\\d|4[1-7])|7\\d\\d)|2(?:1(?:[246]\\d|3[0-35-9]|5[1-9])|2(?:[235]\\d|4[0-8])|3(?:[26]\\d|3[02-79]|4[024-7]|5[03-7])))\\d{5}", , , , "152450911", , , [9], [5, 6, 7]], [, , "(?:2(?:5[5-79]|9[1-9])|(?:33|44)\\d)\\d{6}", , , , "294911911", , , [9]], [
|
|
4482
4511
|
,
|
|
4483
4512
|
,
|
|
@@ -4872,7 +4901,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
4872
4901
|
,
|
|
4873
4902
|
[5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
|
|
4874
4903
|
[2, 3, 4]
|
|
4875
|
-
], [, , "
|
|
4904
|
+
], [, , "1(?:(?:5(?:[0-25-9]\\d\\d|3(?:10|33))|7[26-9]\\d\\d)\\d{6}|6[023]\\d{7,8})|17\\d{8}", , , , "15123456789", , , [10, 11]], [, , "800\\d{7,12}", , , , "8001234567890", , , [10, 11, 12, 13, 14, 15]], [, , "(?:137[7-9]|900(?:[135]|9\\d))\\d{6}", , , , "9001234567", , , [10, 11]], [, , "180\\d{5,11}|13(?:7[1-6]\\d\\d|8)\\d{4}", , , , "18012345", , , [7, 8, 9, 10, 11, 12, 13, 14]], [, , "700\\d{8}", , , , "70012345678", , , [11]], [, , , , , , , , , [-1]], "DE", 49, "00", "0", , , "0", , , , [
|
|
4876
4905
|
[
|
|
4877
4906
|
,
|
|
4878
4907
|
"(\\d{2})(\\d{3,13})",
|
|
@@ -4898,7 +4927,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
4898
4927
|
[, "(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["7"], "0$1"],
|
|
4899
4928
|
[, "(\\d{4})(\\d{7})", "$1 $2", ["18[68]"], "0$1"],
|
|
4900
4929
|
[, "(\\d{4})(\\d{7})", "$1 $2", ["15[1279]"], "0$1"],
|
|
4901
|
-
[, "(\\d{5})(\\d{6})", "$1 $2", ["15[03568]", "15(?:[0568]|
|
|
4930
|
+
[, "(\\d{5})(\\d{6})", "$1 $2", ["15[03568]", "15(?:[0568]|3[13])"], "0$1"],
|
|
4902
4931
|
[, "(\\d{3})(\\d{8})", "$1 $2", ["18"], "0$1"],
|
|
4903
4932
|
[, "(\\d{3})(\\d{2})(\\d{7,8})", "$1 $2 $3", ["1(?:6[023]|7)"], "0$1"],
|
|
4904
4933
|
[, "(\\d{4})(\\d{2})(\\d{7})", "$1 $2 $3", ["15[279]"], "0$1"],
|
|
@@ -5620,7 +5649,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
5620
5649
|
,
|
|
5621
5650
|
,
|
|
5622
5651
|
"2201234"
|
|
5623
|
-
], [, , "(?:51[01]|6\\d\\d|7(?:[0-5]\\d|6[
|
|
5652
|
+
], [, , "(?:51[01]|6\\d\\d|7(?:[0-5]\\d|6[0-39]|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]]],
|
|
5624
5653
|
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]], [
|
|
5625
5654
|
,
|
|
5626
5655
|
,
|
|
@@ -5783,7 +5812,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
5783
5812
|
10,
|
|
5784
5813
|
11,
|
|
5785
5814
|
12
|
|
5786
|
-
]], [, , "153\\d{8,9}|29[1-9]\\d{5}|(?:2[0-8]|[3489]\\d)\\d{6}", , , , "21234567", , , [8, 11, 12], [7]], [, , "55(?:4(?:[01]
|
|
5815
|
+
]], [, , "153\\d{8,9}|29[1-9]\\d{5}|(?:2[0-8]|[3489]\\d)\\d{6}", , , , "21234567", , , [8, 11, 12], [7]], [, , "55(?:4(?:0[01]|10|5[0-7])|57[0-289])\\d{4}|5(?:(?:[0-2][02-9]|[36]\\d|[49][2-9]|8[3-7])\\d|5(?:01|2\\d|3[0-3]|4[34]|5[0-25689]|6[6-8]|7[0-267]|8[7-9]|9[1-9]))\\d{5}", , , , "502345678", , , [9]], [, , "1(?:255|80[019]\\d{3})\\d{3}", , , , "1800123456", , , [7, 10]], [, , "1212\\d{4}|1(?:200|9(?:0[0-2]|19))\\d{6}", , , , "1919123456", , , [8, 10]], [, , "1700\\d{6}", , , , "1700123456", , , [10]], [, , , , , , , , , [-1]], [
|
|
5787
5816
|
,
|
|
5788
5817
|
,
|
|
5789
5818
|
"7(?:38(?:[05]\\d|8[018])|8(?:33|55|77|81)\\d)\\d{4}|7(?:18|2[23]|3[237]|47|6[258]|7\\d|82|9[2-9])\\d{6}",
|
|
@@ -7200,7 +7229,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
7200
7229
|
,
|
|
7201
7230
|
[, , "(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}", , , , , , , [7, 8, 9]],
|
|
7202
7231
|
[, , "2[1-6]\\d{6}", , , , "23123456", , , [8]],
|
|
7203
|
-
[, , "1505\\d{4}|(?:7(?:[
|
|
7232
|
+
[, , "1505\\d{4}|(?:7(?:[125-9]\\d|41)|9(?:0[1-9]|[1-9]\\d))\\d{5}", , , , "92123456", , , [8]],
|
|
7204
7233
|
[, , "8007\\d{4,5}|(?:500|800[05])\\d{4}", , , , "80071234"],
|
|
7205
7234
|
[, , "900\\d{5}", , , , "90012345", , , [8]],
|
|
7206
7235
|
[, , , , , , , , , [-1]],
|
|
@@ -7230,7 +7259,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
7230
7259
|
PA: [, [, , "(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}", , , , , , , [7, 8, 10, 11]], [
|
|
7231
7260
|
,
|
|
7232
7261
|
,
|
|
7233
|
-
"(?:1(?:0\\d|1[
|
|
7262
|
+
"(?:1(?:0\\d|1[0479]|2[37]|3[0137]|4[17]|5[05]|6[058]|7[0167]|8[2358]|9[1389])|2(?:[0235-79]\\d|1[0-7]|4[013-9]|8[02-9])|3(?:[047-9]\\d|1[0-8]|2[0-5]|33|5[0-35]|6[068])|4(?:00|3[0-579]|4\\d|7[0-57-9])|5(?:[01]\\d|2[0-7]|[56]0|79)|7(?:0[09]|2[0-26-8]|3[03]|4[04]|5[05-9]|6[0156]|7[0-24-9]|8[4-9]|90)|8(?:09|2[89]|3\\d|4[0-24-689]|5[014]|8[02])|9(?:0[5-9]|1[0135-8]|2[036-9]|3[35-79]|40|5[0457-9]|6[05-9]|7[04-9]|8[35-8]|9\\d))\\d{4}",
|
|
7234
7263
|
,
|
|
7235
7264
|
,
|
|
7236
7265
|
,
|
|
@@ -7680,7 +7709,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
7680
7709
|
,
|
|
7681
7710
|
,
|
|
7682
7711
|
[8]
|
|
7683
|
-
], [, , "
|
|
7712
|
+
], [, , "8980\\d{4}|(?:8(?:0[1-9]|[1-8]\\d|9[0-7])|9[0-8]\\d)\\d{5}", , , , "81234567", , , [8]], [, , "(?:18|8)00\\d{7}", , , , "18001234567", , , [10, 11]], [, , "1900\\d{7}", , , , "19001234567", , , [11]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , "(?:3[12]\\d|666)\\d{5}", , , , "31234567", , , [8]], "SG", 65, "0[0-3]\\d", , , , , , , , [[, "(\\d{4,5})", "$1", ["1[013-9]|77", "1(?:[013-8]|9(?:0[1-9]|[1-9]))|77"]], [, "(\\d{4})(\\d{4})", "$1 $2", ["[369]|8(?:0[1-9]|[1-9])"]], [, "(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]], [
|
|
7684
7713
|
,
|
|
7685
7714
|
"(\\d{4})(\\d{4})(\\d{3})",
|
|
7686
7715
|
"$1 $2 $3",
|
|
@@ -7853,7 +7882,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
7853
7882
|
"$1 $2",
|
|
7854
7883
|
["(?:2|90)4|[67]"]
|
|
7855
7884
|
], [, "(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[348]|64|79|90"]], [, "(\\d{2})(\\d{5,7})", "$1 $2", ["1|28|6[0-35-9]|7[67]|9[2-9]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
7856
|
-
SR: [, [, , "(?:[2-5]|
|
|
7885
|
+
SR: [, [, , "(?:[2-5]|[6-8]\\d|90)\\d{5}", , , , , , , [6, 7]], [, , "(?:2[1-3]|3[0-7]|4\\d|5[2-58])\\d{4}", , , , "211234", , , [6]], [, , "(?:6[08]|7[124-7]|8[1-9])\\d{5}", , , , "7412345", , , [7]], [, , "80\\d{5}", , , , "8012345", , , [7]], [, , "90\\d{5}", , , , "9012345", , , [7]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [
|
|
7857
7886
|
,
|
|
7858
7887
|
,
|
|
7859
7888
|
"56\\d{4}",
|
|
@@ -7865,37 +7894,13 @@ var intl_tel_input_default = intlTelInput;
|
|
|
7865
7894
|
,
|
|
7866
7895
|
[6]
|
|
7867
7896
|
], "SR", 597, "00", , , , , , , , [[, "(\\d{2})(\\d{2})(\\d{2})", "$1-$2-$3", ["56"]], [, "(\\d{3})(\\d{3})", "$1-$2", ["[2-5]"]], [, "(\\d{3})(\\d{4})", "$1-$2", ["[6-9]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
7868
|
-
SS: [
|
|
7869
|
-
,
|
|
7870
|
-
[, , "[19]\\d{8}", , , , , , , [9]],
|
|
7871
|
-
[, , "1[89]\\d{7}", , , , "181234567"],
|
|
7872
|
-
[, , "(?:12|9[1257-9])\\d{7}", , , , "977123456"],
|
|
7873
|
-
[, , , , , , , , , [-1]],
|
|
7874
|
-
[, , , , , , , , , [-1]],
|
|
7875
|
-
[, , , , , , , , , [-1]],
|
|
7876
|
-
[, , , , , , , , , [-1]],
|
|
7877
|
-
[, , , , , , , , , [-1]],
|
|
7878
|
-
"SS",
|
|
7879
|
-
211,
|
|
7880
|
-
"00",
|
|
7881
|
-
"0",
|
|
7882
|
-
,
|
|
7883
|
-
,
|
|
7884
|
-
"0",
|
|
7885
|
-
,
|
|
7886
|
-
,
|
|
7887
|
-
,
|
|
7888
|
-
[[, "(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[19]"], "0$1"]],
|
|
7889
|
-
,
|
|
7890
|
-
[, , , , , , , , , [-1]],
|
|
7891
|
-
,
|
|
7892
|
-
,
|
|
7893
|
-
[, , , , , , , , , [-1]],
|
|
7894
|
-
[, , , , , , , , , [-1]],
|
|
7895
|
-
,
|
|
7897
|
+
SS: [, [, , "[19]\\d{8}", , , , , , , [9]], [, , "1[89]\\d{7}", , , , "181234567"], [, , "(?:12|9[1257-9])\\d{7}", , , , "977123456"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "SS", 211, "00", "0", , , "0", , , , [[
|
|
7896
7898
|
,
|
|
7897
|
-
|
|
7898
|
-
|
|
7899
|
+
"(\\d{3})(\\d{3})(\\d{3})",
|
|
7900
|
+
"$1 $2 $3",
|
|
7901
|
+
["[19]"],
|
|
7902
|
+
"0$1"
|
|
7903
|
+
]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
7899
7904
|
ST: [, [, , "(?:22|9\\d)\\d{5}", , , , , , , [7]], [, , "22\\d{5}", , , , "2221234"], [, , "900[5-9]\\d{3}|9(?:0[1-9]|[89]\\d)\\d{4}", , , , "9812345"], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "ST", 239, "00", , , , , , , , [[, "(\\d{3})(\\d{4})", "$1 $2", ["[29]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
7900
7905
|
SV: [, [, , "[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?", , , , , , , [7, 8, 11]], [
|
|
7901
7906
|
,
|
|
@@ -8308,17 +8313,44 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8308
8313
|
[, "(\\d{3})(\\d{4})", "$1-$2", ["[24-9]|3(?:[02-9]|1[1-9])"]],
|
|
8309
8314
|
[, "(\\d{3})(\\d{3})(\\d{4})", "($1) $2-$3", ["[2-9]"], , , 1]
|
|
8310
8315
|
], [[, "(\\d{3})(\\d{4})", "$1-$2", ["310"], , , 1], [, "(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["[2-9]"]]], [, , , , , , , , , [-1]], 1, , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
|
|
8311
|
-
UY: [, [, , "0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}", , , , , , , [6, 7, 8, 9, 10, 11, 12, 13]], [, , "(?:1(?:770|9(?:20|[89]7))|(?:2\\d|4[2-7])\\d\\d)\\d{4}", , , , "21231234", , , [8], [7]], [
|
|
8316
|
+
UY: [, [, , "0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}", , , , , , , [4, 5, 6, 7, 8, 9, 10, 11, 12, 13]], [, , "(?:1(?:770|9(?:20|[89]7))|(?:2\\d|4[2-7])\\d\\d)\\d{4}", , , , "21231234", , , [8], [7]], [
|
|
8317
|
+
,
|
|
8318
|
+
,
|
|
8319
|
+
"9[1-9]\\d{6}",
|
|
8312
8320
|
,
|
|
8313
8321
|
,
|
|
8314
|
-
"0004\\d{2,9}|(?:405|80[05])\\d{4}",
|
|
8315
8322
|
,
|
|
8323
|
+
"94231234",
|
|
8316
8324
|
,
|
|
8317
8325
|
,
|
|
8318
|
-
|
|
8319
|
-
], [, , "90[0-8]\\d{4}", , , , "9001234", , , [7]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "UY", 598, "0(?:0|1[3-9]\\d)", "0", " int. ", , "0", , "00", , [[, "(\\d{3})(\\d{3,4})", "$1 $2", ["0"]], [, "(\\d{3})(\\d{4})", "$1 $2", ["[49]0|8"], "0$1"], [, "(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1"], [, "(\\d{4})(\\d{4})", "$1 $2", ["[124]"]], [, "(\\d{3})(\\d{3})(\\d{2,4})", "$1 $2 $3", ["0"]], [
|
|
8326
|
+
[8]
|
|
8327
|
+
], [, , "0004\\d{2,9}|(?:405|80[05])\\d{4}", , , , "8001234", , , [6, 7, 8, 9, 10, 11, 12, 13]], [, , "90[0-8]\\d{4}", , , , "9001234", , , [7]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "UY", 598, "0(?:0|1[3-9]\\d)", "0", " int. ", , "0", , "00", , [[, "(\\d{4,5})", "$1", ["21"]], [, "(\\d{3})(\\d{3,4})", "$1 $2", ["0"]], [, "(\\d{3})(\\d{4})", "$1 $2", ["[49]0|8"], "0$1"], [, "(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1"], [, "(\\d{4})(\\d{4})", "$1 $2", ["[124]"]], [, "(\\d{3})(\\d{3})(\\d{2,4})", "$1 $2 $3", ["0"]], [
|
|
8320
8328
|
,
|
|
8329
|
+
"(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})",
|
|
8330
|
+
"$1 $2 $3 $4",
|
|
8331
|
+
["0"]
|
|
8332
|
+
]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , "21\\d{2,3}", , , , "21123", , , [4, 5]], , , [, , , , , , , , , [-1]]],
|
|
8333
|
+
UZ: [
|
|
8321
8334
|
,
|
|
8335
|
+
[, , "(?:20|33|[5-9]\\d)\\d{7}", , , , , , , [9]],
|
|
8336
|
+
[, , "(?:55\\d\\d|6(?:1(?:22|3[124]|4[1-4]|5[1-3578]|64)|2(?:22|3[0-57-9]|41)|5(?:22|3[3-7]|5[024-8])|[69]\\d\\d|7(?:[23]\\d|7[69]))|7(?:0(?:5[4-9]|6[0146]|7[124-6]|9[135-8])|[168]\\d\\d|2(?:22|3[13-57-9]|4[1-3579]|5[14])|3(?:2\\d|3[1578]|4[1-35-7]|5[1-57]|61)|4(?:2\\d|3[1-579]|7[1-79])|5(?:22|5[1-9]|6[1457])|9(?:22|5[1-9])))\\d{5}", , , , "669050123"],
|
|
8337
|
+
[
|
|
8338
|
+
,
|
|
8339
|
+
,
|
|
8340
|
+
"(?:(?:[25]0|33|8[78]|9[0-57-9])\\d{3}|6(?:1(?:2(?:2[01]|98)|35[0-4]|50\\d|61[23]|7(?:[01][017]|4\\d|55|9[5-9]))|2(?:(?:11|7\\d)\\d|2(?:[12]1|9[01379])|5(?:[126]\\d|3[0-4]))|5(?:19[01]|2(?:27|9[26])|(?:30|59|7\\d)\\d)|6(?:2(?:1[5-9]|2[0367]|38|41|52|60)|(?:3[79]|9[0-3])\\d|4(?:56|83)|7(?:[07]\\d|1[017]|3[07]|4[047]|5[057]|67|8[0178]|9[79]))|7(?:2(?:24|3[237]|4[5-9]|7[15-8])|5(?:7[12]|8[0589])|7(?:0\\d|[39][07])|9(?:0\\d|7[079])))|7(?:[07]\\d{3}|2(?:2(?:2[79]|95)|3(?:2[5-9]|6[0-6])|57\\d|7(?:0\\d|1[17]|2[27]|3[37]|44|5[057]|66|88))|3(?:2(?:1[0-6]|21|3[469]|7[159])|(?:33|9[4-6])\\d|5(?:0[0-4]|5[579]|9\\d)|7(?:[0-3579]\\d|4[0467]|6[67]|8[078]))|4(?:2(?:29|5[0257]|6[0-7]|7[1-57])|5(?:1[0-4]|8\\d|9[5-9])|7(?:0\\d|1[024589]|2[0-27]|3[0137]|[46][07]|5[01]|7[5-9]|9[079])|9(?:7[015-9]|[89]\\d))|5(?:112|2(?:0\\d|2[29]|[49]4)|3[1568]\\d|52[6-9]|7(?:0[01578]|1[017]|[23]7|4[047]|[5-7]\\d|8[78]|9[079]))|9(?:22[128]|3(?:2[0-4]|7\\d)|57[02569]|7(?:2[05-9]|3[37]|4\\d|60|7[2579]|87|9[07]))))\\d{4}",
|
|
8341
|
+
,
|
|
8342
|
+
,
|
|
8343
|
+
,
|
|
8344
|
+
"912345678"
|
|
8345
|
+
],
|
|
8346
|
+
[, , , , , , , , , [-1]],
|
|
8347
|
+
[, , , , , , , , , [-1]],
|
|
8348
|
+
[, , , , , , , , , [-1]],
|
|
8349
|
+
[, , , , , , , , , [-1]],
|
|
8350
|
+
[, , , , , , , , , [-1]],
|
|
8351
|
+
"UZ",
|
|
8352
|
+
998,
|
|
8353
|
+
"00",
|
|
8322
8354
|
,
|
|
8323
8355
|
,
|
|
8324
8356
|
,
|
|
@@ -8326,17 +8358,17 @@ var intl_tel_input_default = intlTelInput;
|
|
|
8326
8358
|
,
|
|
8327
8359
|
,
|
|
8328
8360
|
,
|
|
8329
|
-
[-
|
|
8330
|
-
]],
|
|
8331
|
-
UZ: [, [, , "(?:20|33|[5-9]\\d)\\d{7}", , , , , , , [9]], [, , "(?:55\\d\\d|6(?:1(?:22|3[124]|4[1-4]|5[1-3578]|64)|2(?:22|3[0-57-9]|41)|5(?:22|3[3-7]|5[024-8])|[69]\\d\\d|7(?:[23]\\d|7[69]))|7(?:0(?:5[4-9]|6[0146]|7[124-6]|9[135-8])|[168]\\d\\d|2(?:22|3[13-57-9]|4[1-3579]|5[14])|3(?:2\\d|3[1578]|4[1-35-7]|5[1-57]|61)|4(?:2\\d|3[1-579]|7[1-79])|5(?:22|5[1-9]|6[1457])|9(?:22|5[1-9])))\\d{5}", , , , "669050123"], [
|
|
8361
|
+
[[, "(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[235-9]"]]],
|
|
8332
8362
|
,
|
|
8363
|
+
[, , , , , , , , , [-1]],
|
|
8333
8364
|
,
|
|
8334
|
-
"(?:(?:[25]0|33|8[78]|9[0-57-9])\\d{3}|6(?:1(?:2(?:2[01]|98)|35[0-4]|50\\d|61[23]|7(?:[01][017]|4\\d|55|9[5-9]))|2(?:(?:11|7\\d)\\d|2(?:[12]1|9[01379])|5(?:[126]\\d|3[0-4]))|5(?:19[01]|2(?:27|9[26])|(?:30|59|7\\d)\\d)|6(?:2(?:1[5-9]|2[0367]|38|41|52|60)|(?:3[79]|9[0-3])\\d|4(?:56|83)|7(?:[07]\\d|1[017]|3[07]|4[047]|5[057]|67|8[0178]|9[79]))|7(?:2(?:24|3[237]|4[5-9]|7[15-8])|5(?:7[12]|8[0589])|7(?:0\\d|[39][07])|9(?:0\\d|7[079])))|7(?:[07]\\d{3}|2(?:2(?:2[79]|95)|3(?:2[5-9]|6[0-6])|57\\d|7(?:0\\d|1[17]|2[27]|3[37]|44|5[057]|66|88))|3(?:2(?:1[0-6]|21|3[469]|7[159])|(?:33|9[4-6])\\d|5(?:0[0-4]|5[579]|9\\d)|7(?:[0-3579]\\d|4[0467]|6[67]|8[078]))|4(?:2(?:29|5[0257]|6[0-7]|7[1-57])|5(?:1[0-4]|8\\d|9[5-9])|7(?:0\\d|1[024589]|2[0-27]|3[0137]|[46][07]|5[01]|7[5-9]|9[079])|9(?:7[015-9]|[89]\\d))|5(?:112|2(?:0\\d|2[29]|[49]4)|3[1568]\\d|52[6-9]|7(?:0[01578]|1[017]|[23]7|4[047]|[5-7]\\d|8[78]|9[079]))|9(?:22[128]|3(?:2[0-4]|7\\d)|57[02569]|7(?:2[05-9]|3[37]|4\\d|60|7[2579]|87|9[07]))))\\d{4}",
|
|
8335
8365
|
,
|
|
8366
|
+
[, , , , , , , , , [-1]],
|
|
8367
|
+
[, , , , , , , , , [-1]],
|
|
8336
8368
|
,
|
|
8337
8369
|
,
|
|
8338
|
-
|
|
8339
|
-
],
|
|
8370
|
+
[, , , , , , , , , [-1]]
|
|
8371
|
+
],
|
|
8340
8372
|
VA: [, [, , "0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}", , , , , , , [6, 7, 8, 9, 10, 11, 12]], [, , "06698\\d{1,6}", , , , "0669812345", , , [6, 7, 8, 9, 10, 11]], [, , "3[1-9]\\d{8}|3[2-9]\\d{7}", , , , "3123456789", , , [9, 10]], [
|
|
8341
8373
|
,
|
|
8342
8374
|
,
|
|
@@ -9397,7 +9429,9 @@ var intl_tel_input_default = intlTelInput;
|
|
|
9397
9429
|
}
|
|
9398
9430
|
;
|
|
9399
9431
|
const yb = (a) => {
|
|
9400
|
-
|
|
9432
|
+
const b = [];
|
|
9433
|
+
a.includes("FIXED_LINE_OR_MOBILE") ? (a.includes("MOBILE") || b.push("MOBILE"), a.includes("FIXED_LINE") || b.push("FIXED_LINE")) : (a.includes("MOBILE") || a.includes("FIXED_LINE")) && b.push("FIXED_LINE_OR_MOBILE");
|
|
9434
|
+
return a.concat(b);
|
|
9401
9435
|
}, zb = { 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 };
|
|
9402
9436
|
m("intlTelInputUtilsTemp", {});
|
|
9403
9437
|
m("intlTelInputUtilsTemp.formatNumberAsYouType", (a, b) => {
|
|
@@ -9472,8 +9506,7 @@ var intl_tel_input_default = intlTelInput;
|
|
|
9472
9506
|
try {
|
|
9473
9507
|
const d = K.g(), e = Y(d, a, b), f = cb(d, e);
|
|
9474
9508
|
if (c) {
|
|
9475
|
-
yb(c);
|
|
9476
|
-
const g = c.map((h) => zb[h]);
|
|
9509
|
+
const g = yb(c).map((h) => zb[h]);
|
|
9477
9510
|
return f && g.includes($a(d, e));
|
|
9478
9511
|
}
|
|
9479
9512
|
return f;
|
|
@@ -9485,9 +9518,9 @@ var intl_tel_input_default = intlTelInput;
|
|
|
9485
9518
|
try {
|
|
9486
9519
|
const d = K.g(), e = Y(d, a, b);
|
|
9487
9520
|
if (c) {
|
|
9488
|
-
yb(c);
|
|
9489
|
-
for (let
|
|
9490
|
-
if (0 === X(d, e, zb[
|
|
9521
|
+
const f = yb(c);
|
|
9522
|
+
for (let g of f)
|
|
9523
|
+
if (0 === X(d, e, zb[g]))
|
|
9491
9524
|
return true;
|
|
9492
9525
|
return false;
|
|
9493
9526
|
}
|