intl-tel-input 25.5.1 → 25.7.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.
@@ -1324,18 +1324,18 @@ var rawCountryData = [
1324
1324
  ]
1325
1325
  ];
1326
1326
  var allCountries = [];
1327
- for (let i = 0; i < rawCountryData.length; i++) {
1328
- const c = rawCountryData[i];
1329
- allCountries[i] = {
1327
+ for (const c of rawCountryData) {
1328
+ allCountries.push({
1330
1329
  name: "",
1331
- // this is now populated in the plugin
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
 
@@ -1606,10 +1606,23 @@ var allTranslations = { ...countries_default, ...interface_default };
1606
1606
  var en_default = allTranslations;
1607
1607
 
1608
1608
  // src/js/intl-tel-input.ts
1609
- for (let i = 0; i < data_default.length; i++) {
1610
- data_default[i].name = en_default[data_default[i].iso2];
1609
+ for (const c of data_default) {
1610
+ c.name = en_default[c.iso2];
1611
1611
  }
1612
1612
  var id = 0;
1613
+ var mq = (q) => {
1614
+ return typeof window !== "undefined" && typeof window.matchMedia === "function" && window.matchMedia(q).matches;
1615
+ };
1616
+ var computeDefaultUseFullscreenPopup = () => {
1617
+ if (typeof navigator !== "undefined" && typeof window !== "undefined") {
1618
+ const isMobileUserAgent = /Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
1619
+ const isNarrowViewport = mq("(max-width: 500px)");
1620
+ const isShortViewport = mq("(max-height: 600px)");
1621
+ const isCoarsePointer = mq("(pointer: coarse)");
1622
+ return isMobileUserAgent || isNarrowViewport || isCoarsePointer && isShortViewport;
1623
+ }
1624
+ return false;
1625
+ };
1613
1626
  var defaults = {
1614
1627
  //* Whether or not to allow the dropdown.
1615
1628
  allowDropdown: true,
@@ -1656,13 +1669,7 @@ var defaults = {
1656
1669
  //* Only allow certain chars e.g. a plus followed by numeric digits, and cap at max valid length.
1657
1670
  strictMode: false,
1658
1671
  //* Use full screen popup instead of dropdown for country list.
1659
- useFullscreenPopup: typeof navigator !== "undefined" && typeof window !== "undefined" ? (
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(
1663
- navigator.userAgent
1664
- ) || window.innerWidth <= 500
1665
- ) : false,
1672
+ useFullscreenPopup: computeDefaultUseFullscreenPopup(),
1666
1673
  //* The number type to enforce during validation.
1667
1674
  validationNumberTypes: ["MOBILE"]
1668
1675
  };
@@ -1690,7 +1697,7 @@ var normaliseString = (s = "") => s.normalize("NFD").replace(/[\u0300-\u036f]/g,
1690
1697
  var isRegionlessNanp = (number) => {
1691
1698
  const numeric = getNumeric(number);
1692
1699
  if (numeric.charAt(0) === "1") {
1693
- const areaCode = numeric.substr(1, 3);
1700
+ const areaCode = numeric.substring(1, 4);
1694
1701
  return regionlessNanpNumbers.includes(areaCode);
1695
1702
  }
1696
1703
  return false;
@@ -1754,6 +1761,7 @@ var Iti = class {
1754
1761
  }
1755
1762
  this.isAndroid = typeof navigator !== "undefined" ? /Android/i.test(navigator.userAgent) : false;
1756
1763
  this.isRTL = !!this.telInput.closest("[dir=rtl]");
1764
+ this.telInput.dir = "ltr";
1757
1765
  const showOnDefaultSide = this.options.allowDropdown || this.options.separateDialCode;
1758
1766
  this.showSelectedCountryOnLeft = this.isRTL ? !showOnDefaultSide : showOnDefaultSide;
1759
1767
  if (this.options.separateDialCode) {
@@ -1789,6 +1797,16 @@ var Iti = class {
1789
1797
  this._processDialCodes();
1790
1798
  this._translateCountryNames();
1791
1799
  this._sortCountries();
1800
+ this.countryByIso2 = new Map(this.countries.map((c) => [c.iso2, c]));
1801
+ this._cacheSearchTokens();
1802
+ }
1803
+ //* Precompute and cache country search tokens to speed up filtering
1804
+ _cacheSearchTokens() {
1805
+ for (const c of this.countries) {
1806
+ c.normalisedName = normaliseString(c.name);
1807
+ c.initials = c.name.split(/[^a-zA-ZÀ-ÿа-яА-Я]/).map((word) => word[0]).join("").toLowerCase();
1808
+ c.dialCodePlus = `+${c.dialCode}`;
1809
+ }
1792
1810
  }
1793
1811
  //* Sort countries by countryOrder option (if present), then name.
1794
1812
  _sortCountries() {
@@ -1820,13 +1838,12 @@ var Iti = class {
1820
1838
  if (!this.dialCodeToIso2Map.hasOwnProperty(dialCode)) {
1821
1839
  this.dialCodeToIso2Map[dialCode] = [];
1822
1840
  }
1823
- for (let i = 0; i < this.dialCodeToIso2Map[dialCode].length; i++) {
1824
- if (this.dialCodeToIso2Map[dialCode][i] === iso2) {
1825
- return;
1826
- }
1841
+ const iso2List = this.dialCodeToIso2Map[dialCode];
1842
+ if (iso2List.includes(iso2)) {
1843
+ return;
1827
1844
  }
1828
- const index = priority !== void 0 ? priority : this.dialCodeToIso2Map[dialCode].length;
1829
- this.dialCodeToIso2Map[dialCode][index] = iso2;
1845
+ const index = priority !== void 0 ? priority : iso2List.length;
1846
+ iso2List[index] = iso2;
1830
1847
  }
1831
1848
  //* Process onlyCountries or excludeCountries array if present.
1832
1849
  _processAllCountries() {
@@ -1851,33 +1868,30 @@ var Iti = class {
1851
1868
  }
1852
1869
  //* Translate Countries by object literal provided on config.
1853
1870
  _translateCountryNames() {
1854
- for (let i = 0; i < this.countries.length; i++) {
1855
- const iso2 = this.countries[i].iso2.toLowerCase();
1871
+ for (const c of this.countries) {
1872
+ const iso2 = c.iso2.toLowerCase();
1856
1873
  if (this.options.i18n.hasOwnProperty(iso2)) {
1857
- this.countries[i].name = this.options.i18n[iso2];
1874
+ c.name = this.options.i18n[iso2];
1858
1875
  }
1859
1876
  }
1860
1877
  }
1861
1878
  //* Generate this.dialCodes and this.dialCodeToIso2Map.
1862
1879
  _processDialCodes() {
1863
- this.dialCodes = {};
1880
+ this.dialCodes = /* @__PURE__ */ new Set();
1864
1881
  this.dialCodeMaxLen = 0;
1865
1882
  this.dialCodeToIso2Map = {};
1866
- for (let i = 0; i < this.countries.length; i++) {
1867
- const c = this.countries[i];
1868
- if (!this.dialCodes[c.dialCode]) {
1869
- 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);
1870
1886
  }
1871
1887
  this._addToDialCodeMap(c.iso2, c.dialCode, c.priority);
1872
1888
  }
1873
- for (let i = 0; i < this.countries.length; i++) {
1874
- const c = this.countries[i];
1889
+ for (const c of this.countries) {
1875
1890
  if (c.areaCodes) {
1876
1891
  const rootIso2Code = this.dialCodeToIso2Map[c.dialCode][0];
1877
- for (let j = 0; j < c.areaCodes.length; j++) {
1878
- const areaCode = c.areaCodes[j];
1892
+ for (const areaCode of c.areaCodes) {
1879
1893
  for (let k = 1; k < areaCode.length; k++) {
1880
- const partialAreaCode = areaCode.substr(0, k);
1894
+ const partialAreaCode = areaCode.substring(0, k);
1881
1895
  const partialDialCode = c.dialCode + partialAreaCode;
1882
1896
  this._addToDialCodeMap(rootIso2Code, partialDialCode);
1883
1897
  this._addToDialCodeMap(c.iso2, partialDialCode);
@@ -1972,7 +1986,7 @@ var Iti = class {
1972
1986
  if (separateDialCode) {
1973
1987
  this.selectedDialCode = createEl(
1974
1988
  "div",
1975
- { class: "iti__selected-dial-code", "aria-hidden": "true" },
1989
+ { class: "iti__selected-dial-code", "aria-hidden": "true", dir: "ltr" },
1976
1990
  this.selectedCountry
1977
1991
  );
1978
1992
  }
@@ -2090,7 +2104,7 @@ var Iti = class {
2090
2104
  content += `<div class='iti__flag iti__${c.iso2}'></div>`;
2091
2105
  }
2092
2106
  content += `<span class='iti__country-name'>${c.name}</span>`;
2093
- content += `<span class='iti__dial-code'>+${c.dialCode}</span>`;
2107
+ content += `<span class='iti__dial-code' dir='ltr'>+${c.dialCode}</span>`;
2094
2108
  listItem.insertAdjacentHTML("beforeend", content);
2095
2109
  }
2096
2110
  }
@@ -2312,7 +2326,7 @@ var Iti = class {
2312
2326
  //* Adhere to the input's maxlength attr.
2313
2327
  _cap(number) {
2314
2328
  const max = parseInt(this.telInput.getAttribute("maxlength") || "", 10);
2315
- return max && number.length > max ? number.substr(0, max) : number;
2329
+ return max && number.length > max ? number.substring(0, max) : number;
2316
2330
  }
2317
2331
  //* Trigger a custom event on the input.
2318
2332
  _trigger(name, detailProps = {}) {
@@ -2442,9 +2456,8 @@ var Iti = class {
2442
2456
  }
2443
2457
  //* Hidden search (countrySearch disabled): Find the first list item whose name starts with the query string.
2444
2458
  _searchForCountry(query) {
2445
- for (let i = 0; i < this.countries.length; i++) {
2446
- const c = this.countries[i];
2447
- const startsWith = c.name.substr(0, query.length).toLowerCase() === query;
2459
+ for (const c of this.countries) {
2460
+ const startsWith = c.name.substring(0, query.length).toLowerCase() === query;
2448
2461
  if (startsWith) {
2449
2462
  const listItem = c.nodeById[this.id];
2450
2463
  this._highlightListItem(listItem, false);
@@ -2465,23 +2478,20 @@ var Iti = class {
2465
2478
  const dialCodeMatches = [];
2466
2479
  const dialCodeContains = [];
2467
2480
  const initialsMatches = [];
2468
- for (let i = 0; i < this.countries.length; i++) {
2469
- const c = this.countries[i];
2470
- const normalisedCountryName = normaliseString(c.name);
2471
- const countryInitials = c.name.split(/[^a-zA-ZÀ-ÿа-яА-Я]/).map((word) => word[0]).join("").toLowerCase();
2481
+ for (const c of this.countries) {
2472
2482
  if (isReset || queryLength === 0) {
2473
2483
  nameContains.push(c);
2474
- } else if (c.iso2.toLowerCase() === normalisedQuery) {
2484
+ } else if (c.iso2 === normalisedQuery) {
2475
2485
  iso2Matches.push(c);
2476
- } else if (normalisedCountryName.startsWith(normalisedQuery)) {
2486
+ } else if (c.normalisedName.startsWith(normalisedQuery)) {
2477
2487
  nameStartWith.push(c);
2478
- } else if (normalisedCountryName.includes(normalisedQuery)) {
2488
+ } else if (c.normalisedName.includes(normalisedQuery)) {
2479
2489
  nameContains.push(c);
2480
- } else if (normalisedQuery === c.dialCode || normalisedQuery === `+${c.dialCode}`) {
2490
+ } else if (normalisedQuery === c.dialCode || normalisedQuery === c.dialCodePlus) {
2481
2491
  dialCodeMatches.push(c);
2482
- } else if (`+${c.dialCode}`.includes(normalisedQuery)) {
2492
+ } else if (c.dialCodePlus.includes(normalisedQuery)) {
2483
2493
  dialCodeContains.push(c);
2484
- } else if (countryInitials.includes(normalisedQuery)) {
2494
+ } else if (c.initials.includes(normalisedQuery)) {
2485
2495
  initialsMatches.push(c);
2486
2496
  }
2487
2497
  }
@@ -2601,9 +2611,9 @@ var Iti = class {
2601
2611
  const alreadySelected = selectedIso2 && iso2Codes.includes(selectedIso2) && !hasAreaCodesButNoneMatched;
2602
2612
  const isRegionlessNanpNumber = selectedDialCode === "1" && isRegionlessNanp(numeric);
2603
2613
  if (!isRegionlessNanpNumber && !alreadySelected) {
2604
- for (let j = 0; j < iso2Codes.length; j++) {
2605
- if (iso2Codes[j]) {
2606
- return iso2Codes[j];
2614
+ for (const iso2 of iso2Codes) {
2615
+ if (iso2) {
2616
+ return iso2;
2607
2617
  }
2608
2618
  }
2609
2619
  }
@@ -2636,12 +2646,11 @@ var Iti = class {
2636
2646
  }
2637
2647
  }
2638
2648
  //* Find the country data for the given iso2 code
2639
- //* the ignoreOnlyCountriesOption is only used during init() while parsing the onlyCountries array
2649
+ //* 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
2640
2650
  _getCountryData(iso2, allowFail) {
2641
- for (let i = 0; i < this.countries.length; i++) {
2642
- if (this.countries[i].iso2 === iso2) {
2643
- return this.countries[i];
2644
- }
2651
+ const country = this.countryByIso2.get(iso2);
2652
+ if (country) {
2653
+ return country;
2645
2654
  }
2646
2655
  if (allowFail) {
2647
2656
  return null;
@@ -2872,11 +2881,11 @@ var Iti = class {
2872
2881
  numericChars += c;
2873
2882
  if (includeAreaCode) {
2874
2883
  if (this.dialCodeToIso2Map[numericChars]) {
2875
- dialCode = number.substr(0, i + 1);
2884
+ dialCode = number.substring(0, i + 1);
2876
2885
  }
2877
2886
  } else {
2878
- if (this.dialCodes[numericChars]) {
2879
- dialCode = number.substr(0, i + 1);
2887
+ if (this.dialCodes.has(numericChars)) {
2888
+ dialCode = number.substring(0, i + 1);
2880
2889
  break;
2881
2890
  }
2882
2891
  }
@@ -2909,7 +2918,7 @@ var Iti = class {
2909
2918
  if (dialCode) {
2910
2919
  dialCode = `+${this.selectedCountryData.dialCode}`;
2911
2920
  const start = number[dialCode.length] === " " || number[dialCode.length] === "-" ? dialCode.length + 1 : dialCode.length;
2912
- number = number.substr(start);
2921
+ number = number.substring(start);
2913
2922
  }
2914
2923
  }
2915
2924
  return this._cap(number);
@@ -3043,38 +3052,32 @@ var Iti = class {
3043
3052
  }
3044
3053
  return -99;
3045
3054
  }
3046
- //* Validate the input val
3055
+ //* Validate the input val (with precise=false)
3047
3056
  isValidNumber() {
3048
- if (!this.selectedCountryData.iso2) {
3049
- return false;
3050
- }
3051
- const val = this._getFullNumber();
3052
- const alphaCharPosition = val.search(/\p{L}/u);
3053
- if (alphaCharPosition > -1) {
3054
- const beforeAlphaChar = val.substring(0, alphaCharPosition);
3055
- const beforeAlphaIsValid = this._utilsIsPossibleNumber(beforeAlphaChar);
3056
- const isValid = this._utilsIsPossibleNumber(val);
3057
- return beforeAlphaIsValid && isValid;
3058
- }
3059
- return this._utilsIsPossibleNumber(val);
3057
+ return this._validateNumber(false);
3058
+ }
3059
+ //* Validate the input val (with precise=true)
3060
+ isValidNumberPrecise() {
3061
+ return this._validateNumber(true);
3060
3062
  }
3061
3063
  _utilsIsPossibleNumber(val) {
3062
3064
  return intlTelInput.utils ? intlTelInput.utils.isPossibleNumber(val, this.selectedCountryData.iso2, this.options.validationNumberTypes) : null;
3063
3065
  }
3064
- //* Validate the input val (precise)
3065
- isValidNumberPrecise() {
3066
+ //* Shared internal validation logic to handle alpha character extension rules.
3067
+ _validateNumber(precise) {
3066
3068
  if (!this.selectedCountryData.iso2) {
3067
3069
  return false;
3068
3070
  }
3069
3071
  const val = this._getFullNumber();
3070
3072
  const alphaCharPosition = val.search(/\p{L}/u);
3073
+ const testValidity = (s) => precise ? this._utilsIsValidNumber(s) : this._utilsIsPossibleNumber(s);
3071
3074
  if (alphaCharPosition > -1) {
3072
3075
  const beforeAlphaChar = val.substring(0, alphaCharPosition);
3073
- const beforeAlphaIsValid = this._utilsIsValidNumber(beforeAlphaChar);
3074
- const isValid = this._utilsIsValidNumber(val);
3076
+ const beforeAlphaIsValid = testValidity(beforeAlphaChar);
3077
+ const isValid = testValidity(val);
3075
3078
  return beforeAlphaIsValid && isValid;
3076
3079
  }
3077
- return this._utilsIsValidNumber(val);
3080
+ return testValidity(val);
3078
3081
  }
3079
3082
  _utilsIsValidNumber(val) {
3080
3083
  return intlTelInput.utils ? intlTelInput.utils.isValidNumber(val, this.selectedCountryData.iso2, this.options.validationNumberTypes) : null;
@@ -3166,7 +3169,7 @@ var intlTelInput = Object.assign(
3166
3169
  attachUtils,
3167
3170
  startedLoadingUtilsScript: false,
3168
3171
  startedLoadingAutoCountry: false,
3169
- version: "25.5.1"
3172
+ version: "25.7.0"
3170
3173
  }
3171
3174
  );
3172
3175
  var intl_tel_input_default = intlTelInput;
@@ -4510,37 +4513,12 @@ var intl_tel_input_default = intlTelInput;
4510
4513
  ,
4511
4514
  [-1]
4512
4515
  ], [, , "242225\\d{4}", , , , "2422250123"], , , [, , , , , , , , , [-1]]],
4513
- BT: [
4514
- ,
4515
- [, , "[17]\\d{7}|[2-8]\\d{6}", , , , , , , [7, 8], [6]],
4516
- [, , "(?:2[3-6]|[34][5-7]|5[236]|6[2-46]|7[246]|8[2-4])\\d{5}", , , , "2345678", , , [7], [6]],
4517
- [, , "(?:1[67]|77)\\d{6}", , , , "17123456", , , [8]],
4518
- [, , , , , , , , , [-1]],
4519
- [, , , , , , , , , [-1]],
4520
- [, , , , , , , , , [-1]],
4521
- [, , , , , , , , , [-1]],
4522
- [, , , , , , , , , [-1]],
4523
- "BT",
4524
- 975,
4525
- "00",
4526
- ,
4527
- ,
4516
+ 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]"]], [
4528
4517
  ,
4529
- ,
4530
- ,
4531
- ,
4532
- ,
4533
- [[, "(\\d{3})(\\d{3})", "$1 $2", ["[2-7]"]], [, "(\\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"]]],
4534
- [[, "(\\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"]]],
4535
- [, , , , , , , , , [-1]],
4536
- ,
4537
- ,
4538
- [, , , , , , , , , [-1]],
4539
- [, , , , , , , , , [-1]],
4540
- ,
4541
- ,
4542
- [, , , , , , , , , [-1]]
4543
- ],
4518
+ "(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
4519
+ "$1 $2 $3 $4",
4520
+ ["1[67]|[78]"]
4521
+ ]], [[, "(\\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]]],
4544
4522
  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]], [
4545
4523
  ,
4546
4524
  ,
@@ -4552,7 +4530,7 @@ var intl_tel_input_default = intlTelInput;
4552
4530
  ,
4553
4531
  ,
4554
4532
  [8]
4555
- ], [, , "(?: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]], [, , , , , , , , , [-1]], , , [
4533
+ ], [, , "(?: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]], [
4556
4534
  ,
4557
4535
  ,
4558
4536
  ,
@@ -4563,7 +4541,7 @@ var intl_tel_input_default = intlTelInput;
4563
4541
  ,
4564
4542
  ,
4565
4543
  [-1]
4566
- ]],
4544
+ ], , , [, , , , , , , , , [-1]]],
4567
4545
  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]], [
4568
4546
  ,
4569
4547
  ,
@@ -4958,7 +4936,7 @@ var intl_tel_input_default = intlTelInput;
4958
4936
  ,
4959
4937
  [5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
4960
4938
  [2, 3, 4]
4961
- ], [, , "15310\\d{6}|1(?:5[0-25-9]\\d|7[013-5])\\d{7}|1(?:6[023]|7[26-9])\\d{7,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", , , , [
4939
+ ], [, , "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", , , , [
4962
4940
  [
4963
4941
  ,
4964
4942
  "(\\d{2})(\\d{3,13})",
@@ -4984,7 +4962,7 @@ var intl_tel_input_default = intlTelInput;
4984
4962
  [, "(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["7"], "0$1"],
4985
4963
  [, "(\\d{4})(\\d{7})", "$1 $2", ["18[68]"], "0$1"],
4986
4964
  [, "(\\d{4})(\\d{7})", "$1 $2", ["15[1279]"], "0$1"],
4987
- [, "(\\d{5})(\\d{6})", "$1 $2", ["15[03568]", "15(?:[0568]|31)"], "0$1"],
4965
+ [, "(\\d{5})(\\d{6})", "$1 $2", ["15[03568]", "15(?:[0568]|3[13])"], "0$1"],
4988
4966
  [, "(\\d{3})(\\d{8})", "$1 $2", ["18"], "0$1"],
4989
4967
  [, "(\\d{3})(\\d{2})(\\d{7,8})", "$1 $2 $3", ["1(?:6[023]|7)"], "0$1"],
4990
4968
  [, "(\\d{4})(\\d{2})(\\d{7})", "$1 $2 $3", ["15[279]"], "0$1"],
@@ -5706,7 +5684,7 @@ var intl_tel_input_default = intlTelInput;
5706
5684
  ,
5707
5685
  ,
5708
5686
  "2201234"
5709
- ], [, , "(?: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]]],
5687
+ ], [, , "(?: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]]],
5710
5688
  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]], [
5711
5689
  ,
5712
5690
  ,
@@ -5869,7 +5847,7 @@ var intl_tel_input_default = intlTelInput;
5869
5847
  10,
5870
5848
  11,
5871
5849
  12
5872
- ]], [, , "153\\d{8,9}|29[1-9]\\d{5}|(?:2[0-8]|[3489]\\d)\\d{6}", , , , "21234567", , , [8, 11, 12], [7]], [, , "55(?:4(?:[01]0|5[0-5])|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]], [
5850
+ ]], [, , "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]], [
5873
5851
  ,
5874
5852
  ,
5875
5853
  "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}",
@@ -7286,7 +7264,7 @@ var intl_tel_input_default = intlTelInput;
7286
7264
  ,
7287
7265
  [, , "(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}", , , , , , , [7, 8, 9]],
7288
7266
  [, , "2[1-6]\\d{6}", , , , "23123456", , , [8]],
7289
- [, , "1505\\d{4}|(?:7(?:[126-9]\\d|41)|9(?:0[1-9]|[1-9]\\d))\\d{5}", , , , "92123456", , , [8]],
7267
+ [, , "1505\\d{4}|(?:7(?:[125-9]\\d|41)|9(?:0[1-9]|[1-9]\\d))\\d{5}", , , , "92123456", , , [8]],
7290
7268
  [, , "8007\\d{4,5}|(?:500|800[05])\\d{4}", , , , "80071234"],
7291
7269
  [, , "900\\d{5}", , , , "90012345", , , [8]],
7292
7270
  [, , , , , , , , , [-1]],
@@ -7316,7 +7294,7 @@ var intl_tel_input_default = intlTelInput;
7316
7294
  PA: [, [, , "(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}", , , , , , , [7, 8, 10, 11]], [
7317
7295
  ,
7318
7296
  ,
7319
- "(?:1(?:0\\d|1[479]|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}",
7297
+ "(?: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}",
7320
7298
  ,
7321
7299
  ,
7322
7300
  ,
@@ -7766,7 +7744,7 @@ var intl_tel_input_default = intlTelInput;
7766
7744
  ,
7767
7745
  ,
7768
7746
  [8]
7769
- ], [, , "89(?:7[0-689]|80)\\d{4}|(?:8(?:0[1-9]|[1-8]\\d|9[0-6])|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"]], [
7747
+ ], [, , "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"]], [
7770
7748
  ,
7771
7749
  "(\\d{4})(\\d{4})(\\d{3})",
7772
7750
  "$1 $2 $3",
@@ -7939,7 +7917,7 @@ var intl_tel_input_default = intlTelInput;
7939
7917
  "$1 $2",
7940
7918
  ["(?:2|90)4|[67]"]
7941
7919
  ], [, "(\\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]]],
7942
- SR: [, [, , "(?:[2-5]|68|[78]\\d|90)\\d{5}", , , , , , , [6, 7]], [, , "(?:2[1-3]|3[0-7]|(?:4|68)\\d|5[2-58])\\d{4}", , , , "211234"], [, , "(?:7[124-7]|8[1-9])\\d{5}", , , , "7412345", , , [7]], [, , "80\\d{5}", , , , "8012345", , , [7]], [, , "90\\d{5}", , , , "9012345", , , [7]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [
7920
+ 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]], [
7943
7921
  ,
7944
7922
  ,
7945
7923
  "56\\d{4}",
@@ -7951,37 +7929,13 @@ var intl_tel_input_default = intlTelInput;
7951
7929
  ,
7952
7930
  [6]
7953
7931
  ], "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]]],
7954
- SS: [
7955
- ,
7956
- [, , "[19]\\d{8}", , , , , , , [9]],
7957
- [, , "1[89]\\d{7}", , , , "181234567"],
7958
- [, , "(?:12|9[1257-9])\\d{7}", , , , "977123456"],
7959
- [, , , , , , , , , [-1]],
7960
- [, , , , , , , , , [-1]],
7961
- [, , , , , , , , , [-1]],
7962
- [, , , , , , , , , [-1]],
7963
- [, , , , , , , , , [-1]],
7964
- "SS",
7965
- 211,
7966
- "00",
7967
- "0",
7968
- ,
7969
- ,
7970
- "0",
7932
+ 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", , , , [[
7971
7933
  ,
7972
- ,
7973
- ,
7974
- [[, "(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[19]"], "0$1"]],
7975
- ,
7976
- [, , , , , , , , , [-1]],
7977
- ,
7978
- ,
7979
- [, , , , , , , , , [-1]],
7980
- [, , , , , , , , , [-1]],
7981
- ,
7982
- ,
7983
- [, , , , , , , , , [-1]]
7984
- ],
7934
+ "(\\d{3})(\\d{3})(\\d{3})",
7935
+ "$1 $2 $3",
7936
+ ["[19]"],
7937
+ "0$1"
7938
+ ]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
7985
7939
  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]]],
7986
7940
  SV: [, [, , "[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?", , , , , , , [7, 8, 11]], [
7987
7941
  ,
@@ -8394,17 +8348,44 @@ var intl_tel_input_default = intlTelInput;
8394
8348
  [, "(\\d{3})(\\d{4})", "$1-$2", ["[24-9]|3(?:[02-9]|1[1-9])"]],
8395
8349
  [, "(\\d{3})(\\d{3})(\\d{4})", "($1) $2-$3", ["[2-9]"], , , 1]
8396
8350
  ], [[, "(\\d{3})(\\d{4})", "$1-$2", ["310"], , , 1], [, "(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["[2-9]"]]], [, , , , , , , , , [-1]], 1, , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
8397
- 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]], [, , "9[1-9]\\d{6}", , , , "94231234", , , [8]], [
8351
+ 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]], [
8398
8352
  ,
8399
8353
  ,
8400
- "0004\\d{2,9}|(?:405|80[05])\\d{4}",
8354
+ "9[1-9]\\d{6}",
8401
8355
  ,
8402
8356
  ,
8403
8357
  ,
8404
- "8001234"
8405
- ], [, , "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"]], [, "(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})", "$1 $2 $3 $4", ["0"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [
8358
+ "94231234",
8406
8359
  ,
8407
8360
  ,
8361
+ [8]
8362
+ ], [, , "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"]], [
8363
+ ,
8364
+ "(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})",
8365
+ "$1 $2 $3 $4",
8366
+ ["0"]
8367
+ ]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , "21\\d{2,3}", , , , "21123", , , [4, 5]], , , [, , , , , , , , , [-1]]],
8368
+ UZ: [
8369
+ ,
8370
+ [, , "(?:20|33|[5-9]\\d)\\d{7}", , , , , , , [9]],
8371
+ [, , "(?: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"],
8372
+ [
8373
+ ,
8374
+ ,
8375
+ "(?:(?:[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}",
8376
+ ,
8377
+ ,
8378
+ ,
8379
+ "912345678"
8380
+ ],
8381
+ [, , , , , , , , , [-1]],
8382
+ [, , , , , , , , , [-1]],
8383
+ [, , , , , , , , , [-1]],
8384
+ [, , , , , , , , , [-1]],
8385
+ [, , , , , , , , , [-1]],
8386
+ "UZ",
8387
+ 998,
8388
+ "00",
8408
8389
  ,
8409
8390
  ,
8410
8391
  ,
@@ -8412,17 +8393,17 @@ var intl_tel_input_default = intlTelInput;
8412
8393
  ,
8413
8394
  ,
8414
8395
  ,
8415
- [-1]
8416
- ]],
8417
- 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"], [
8396
+ [[, "(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[235-9]"]]],
8418
8397
  ,
8398
+ [, , , , , , , , , [-1]],
8419
8399
  ,
8420
- "(?:(?:[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}",
8421
8400
  ,
8401
+ [, , , , , , , , , [-1]],
8402
+ [, , , , , , , , , [-1]],
8422
8403
  ,
8423
8404
  ,
8424
- "912345678"
8425
- ], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], "UZ", 998, "00", , , , , , , , [[, "(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[235-9]"]]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
8405
+ [, , , , , , , , , [-1]]
8406
+ ],
8426
8407
  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]], [
8427
8408
  ,
8428
8409
  ,
@@ -9430,7 +9411,9 @@ var intl_tel_input_default = intlTelInput;
9430
9411
  }
9431
9412
  ;
9432
9413
  const yb = (a) => {
9433
- a.includes("FIXED_LINE_OR_MOBILE") ? (a.includes("MOBILE") || a.push("MOBILE"), a.includes("FIXED_LINE") || a.push("FIXED_LINE")) : (a.includes("MOBILE") || a.includes("FIXED_LINE")) && a.push("FIXED_LINE_OR_MOBILE");
9414
+ const b = [];
9415
+ 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");
9416
+ return a.concat(b);
9434
9417
  }, 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 };
9435
9418
  m("intlTelInputUtilsTemp", {});
9436
9419
  m("intlTelInputUtilsTemp.formatNumberAsYouType", (a, b) => {
@@ -9503,8 +9486,7 @@ var intl_tel_input_default = intlTelInput;
9503
9486
  try {
9504
9487
  const d = K.g(), e = Y(d, a, b), f = cb(d, e);
9505
9488
  if (c) {
9506
- yb(c);
9507
- const g = c.map((h) => zb[h]);
9489
+ const g = yb(c).map((h) => zb[h]);
9508
9490
  return f && g.includes($a(d, e));
9509
9491
  }
9510
9492
  return f;
@@ -9516,8 +9498,8 @@ var intl_tel_input_default = intlTelInput;
9516
9498
  try {
9517
9499
  const d = K.g(), e = Y(d, a, b);
9518
9500
  if (c) {
9519
- yb(c);
9520
- for (let f of c) if (0 === X(d, e, zb[f])) return true;
9501
+ const f = yb(c);
9502
+ for (let g of f) if (0 === X(d, e, zb[g])) return true;
9521
9503
  return false;
9522
9504
  }
9523
9505
  return 0 === X(d, e, -1);
package/vue/README.md CHANGED
@@ -34,7 +34,7 @@ See the [Validation demo](https://github.com/jackocnr/intl-tel-input/blob/master
34
34
  "vue:demo": "vite --config vue/demo/[demo variant]/vite.config.js"
35
35
  ```
36
36
 
37
- A note on the utils script (~260KB): if you're lazy loading the IntlTelInput chunk (and so less worried about filesize) then you can just import IntlTelInput from `"intl-tel-input/vueWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/vue"` import, then you should couple this with the `loadUtils` initialisation option - you will need to host the [utils.js](https://github.com/jackocnr/intl-tel-input/blob/master/build/js/utils.js) file, and then set the `loadUtils` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@25.5.1/build/js/utils.js"`.
37
+ A note on the utils script (~260KB): if you're lazy loading the IntlTelInput chunk (and so less worried about filesize) then you can just import IntlTelInput from `"intl-tel-input/vueWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/vue"` import, then you should couple this with the `loadUtils` initialisation option - you will need to host the [utils.js](https://github.com/jackocnr/intl-tel-input/blob/master/build/js/utils.js) file, and then set the `loadUtils` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@25.7.0/build/js/utils.js"`.
38
38
 
39
39
  ## Props
40
40
  Here's a list of all of the current props you can pass to the IntlTelInput Vue component.