intl-tel-input 25.5.2 → 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;
@@ -1790,6 +1797,16 @@ var Iti = class {
1790
1797
  this._processDialCodes();
1791
1798
  this._translateCountryNames();
1792
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
+ }
1793
1810
  }
1794
1811
  //* Sort countries by countryOrder option (if present), then name.
1795
1812
  _sortCountries() {
@@ -1821,13 +1838,12 @@ var Iti = class {
1821
1838
  if (!this.dialCodeToIso2Map.hasOwnProperty(dialCode)) {
1822
1839
  this.dialCodeToIso2Map[dialCode] = [];
1823
1840
  }
1824
- for (let i = 0; i < this.dialCodeToIso2Map[dialCode].length; i++) {
1825
- if (this.dialCodeToIso2Map[dialCode][i] === iso2) {
1826
- return;
1827
- }
1841
+ const iso2List = this.dialCodeToIso2Map[dialCode];
1842
+ if (iso2List.includes(iso2)) {
1843
+ return;
1828
1844
  }
1829
- const index = priority !== void 0 ? priority : this.dialCodeToIso2Map[dialCode].length;
1830
- this.dialCodeToIso2Map[dialCode][index] = iso2;
1845
+ const index = priority !== void 0 ? priority : iso2List.length;
1846
+ iso2List[index] = iso2;
1831
1847
  }
1832
1848
  //* Process onlyCountries or excludeCountries array if present.
1833
1849
  _processAllCountries() {
@@ -1852,33 +1868,30 @@ var Iti = class {
1852
1868
  }
1853
1869
  //* Translate Countries by object literal provided on config.
1854
1870
  _translateCountryNames() {
1855
- for (let i = 0; i < this.countries.length; i++) {
1856
- const iso2 = this.countries[i].iso2.toLowerCase();
1871
+ for (const c of this.countries) {
1872
+ const iso2 = c.iso2.toLowerCase();
1857
1873
  if (this.options.i18n.hasOwnProperty(iso2)) {
1858
- this.countries[i].name = this.options.i18n[iso2];
1874
+ c.name = this.options.i18n[iso2];
1859
1875
  }
1860
1876
  }
1861
1877
  }
1862
1878
  //* Generate this.dialCodes and this.dialCodeToIso2Map.
1863
1879
  _processDialCodes() {
1864
- this.dialCodes = {};
1880
+ this.dialCodes = /* @__PURE__ */ new Set();
1865
1881
  this.dialCodeMaxLen = 0;
1866
1882
  this.dialCodeToIso2Map = {};
1867
- for (let i = 0; i < this.countries.length; i++) {
1868
- const c = this.countries[i];
1869
- if (!this.dialCodes[c.dialCode]) {
1870
- 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);
1871
1886
  }
1872
1887
  this._addToDialCodeMap(c.iso2, c.dialCode, c.priority);
1873
1888
  }
1874
- for (let i = 0; i < this.countries.length; i++) {
1875
- const c = this.countries[i];
1889
+ for (const c of this.countries) {
1876
1890
  if (c.areaCodes) {
1877
1891
  const rootIso2Code = this.dialCodeToIso2Map[c.dialCode][0];
1878
- for (let j = 0; j < c.areaCodes.length; j++) {
1879
- const areaCode = c.areaCodes[j];
1892
+ for (const areaCode of c.areaCodes) {
1880
1893
  for (let k = 1; k < areaCode.length; k++) {
1881
- const partialAreaCode = areaCode.substr(0, k);
1894
+ const partialAreaCode = areaCode.substring(0, k);
1882
1895
  const partialDialCode = c.dialCode + partialAreaCode;
1883
1896
  this._addToDialCodeMap(rootIso2Code, partialDialCode);
1884
1897
  this._addToDialCodeMap(c.iso2, partialDialCode);
@@ -2313,7 +2326,7 @@ var Iti = class {
2313
2326
  //* Adhere to the input's maxlength attr.
2314
2327
  _cap(number) {
2315
2328
  const max = parseInt(this.telInput.getAttribute("maxlength") || "", 10);
2316
- return max && number.length > max ? number.substr(0, max) : number;
2329
+ return max && number.length > max ? number.substring(0, max) : number;
2317
2330
  }
2318
2331
  //* Trigger a custom event on the input.
2319
2332
  _trigger(name, detailProps = {}) {
@@ -2443,9 +2456,8 @@ var Iti = class {
2443
2456
  }
2444
2457
  //* Hidden search (countrySearch disabled): Find the first list item whose name starts with the query string.
2445
2458
  _searchForCountry(query) {
2446
- for (let i = 0; i < this.countries.length; i++) {
2447
- const c = this.countries[i];
2448
- 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;
2449
2461
  if (startsWith) {
2450
2462
  const listItem = c.nodeById[this.id];
2451
2463
  this._highlightListItem(listItem, false);
@@ -2466,23 +2478,20 @@ var Iti = class {
2466
2478
  const dialCodeMatches = [];
2467
2479
  const dialCodeContains = [];
2468
2480
  const initialsMatches = [];
2469
- for (let i = 0; i < this.countries.length; i++) {
2470
- const c = this.countries[i];
2471
- const normalisedCountryName = normaliseString(c.name);
2472
- const countryInitials = c.name.split(/[^a-zA-ZÀ-ÿа-яА-Я]/).map((word) => word[0]).join("").toLowerCase();
2481
+ for (const c of this.countries) {
2473
2482
  if (isReset || queryLength === 0) {
2474
2483
  nameContains.push(c);
2475
- } else if (c.iso2.toLowerCase() === normalisedQuery) {
2484
+ } else if (c.iso2 === normalisedQuery) {
2476
2485
  iso2Matches.push(c);
2477
- } else if (normalisedCountryName.startsWith(normalisedQuery)) {
2486
+ } else if (c.normalisedName.startsWith(normalisedQuery)) {
2478
2487
  nameStartWith.push(c);
2479
- } else if (normalisedCountryName.includes(normalisedQuery)) {
2488
+ } else if (c.normalisedName.includes(normalisedQuery)) {
2480
2489
  nameContains.push(c);
2481
- } else if (normalisedQuery === c.dialCode || normalisedQuery === `+${c.dialCode}`) {
2490
+ } else if (normalisedQuery === c.dialCode || normalisedQuery === c.dialCodePlus) {
2482
2491
  dialCodeMatches.push(c);
2483
- } else if (`+${c.dialCode}`.includes(normalisedQuery)) {
2492
+ } else if (c.dialCodePlus.includes(normalisedQuery)) {
2484
2493
  dialCodeContains.push(c);
2485
- } else if (countryInitials.includes(normalisedQuery)) {
2494
+ } else if (c.initials.includes(normalisedQuery)) {
2486
2495
  initialsMatches.push(c);
2487
2496
  }
2488
2497
  }
@@ -2602,9 +2611,9 @@ var Iti = class {
2602
2611
  const alreadySelected = selectedIso2 && iso2Codes.includes(selectedIso2) && !hasAreaCodesButNoneMatched;
2603
2612
  const isRegionlessNanpNumber = selectedDialCode === "1" && isRegionlessNanp(numeric);
2604
2613
  if (!isRegionlessNanpNumber && !alreadySelected) {
2605
- for (let j = 0; j < iso2Codes.length; j++) {
2606
- if (iso2Codes[j]) {
2607
- return iso2Codes[j];
2614
+ for (const iso2 of iso2Codes) {
2615
+ if (iso2) {
2616
+ return iso2;
2608
2617
  }
2609
2618
  }
2610
2619
  }
@@ -2637,12 +2646,11 @@ var Iti = class {
2637
2646
  }
2638
2647
  }
2639
2648
  //* Find the country data for the given iso2 code
2640
- //* 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
2641
2650
  _getCountryData(iso2, allowFail) {
2642
- for (let i = 0; i < this.countries.length; i++) {
2643
- if (this.countries[i].iso2 === iso2) {
2644
- return this.countries[i];
2645
- }
2651
+ const country = this.countryByIso2.get(iso2);
2652
+ if (country) {
2653
+ return country;
2646
2654
  }
2647
2655
  if (allowFail) {
2648
2656
  return null;
@@ -2873,11 +2881,11 @@ var Iti = class {
2873
2881
  numericChars += c;
2874
2882
  if (includeAreaCode) {
2875
2883
  if (this.dialCodeToIso2Map[numericChars]) {
2876
- dialCode = number.substr(0, i + 1);
2884
+ dialCode = number.substring(0, i + 1);
2877
2885
  }
2878
2886
  } else {
2879
- if (this.dialCodes[numericChars]) {
2880
- dialCode = number.substr(0, i + 1);
2887
+ if (this.dialCodes.has(numericChars)) {
2888
+ dialCode = number.substring(0, i + 1);
2881
2889
  break;
2882
2890
  }
2883
2891
  }
@@ -2910,7 +2918,7 @@ var Iti = class {
2910
2918
  if (dialCode) {
2911
2919
  dialCode = `+${this.selectedCountryData.dialCode}`;
2912
2920
  const start = number[dialCode.length] === " " || number[dialCode.length] === "-" ? dialCode.length + 1 : dialCode.length;
2913
- number = number.substr(start);
2921
+ number = number.substring(start);
2914
2922
  }
2915
2923
  }
2916
2924
  return this._cap(number);
@@ -3044,38 +3052,32 @@ var Iti = class {
3044
3052
  }
3045
3053
  return -99;
3046
3054
  }
3047
- //* Validate the input val
3055
+ //* Validate the input val (with precise=false)
3048
3056
  isValidNumber() {
3049
- if (!this.selectedCountryData.iso2) {
3050
- return false;
3051
- }
3052
- const val = this._getFullNumber();
3053
- const alphaCharPosition = val.search(/\p{L}/u);
3054
- if (alphaCharPosition > -1) {
3055
- const beforeAlphaChar = val.substring(0, alphaCharPosition);
3056
- const beforeAlphaIsValid = this._utilsIsPossibleNumber(beforeAlphaChar);
3057
- const isValid = this._utilsIsPossibleNumber(val);
3058
- return beforeAlphaIsValid && isValid;
3059
- }
3060
- 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);
3061
3062
  }
3062
3063
  _utilsIsPossibleNumber(val) {
3063
3064
  return intlTelInput.utils ? intlTelInput.utils.isPossibleNumber(val, this.selectedCountryData.iso2, this.options.validationNumberTypes) : null;
3064
3065
  }
3065
- //* Validate the input val (precise)
3066
- isValidNumberPrecise() {
3066
+ //* Shared internal validation logic to handle alpha character extension rules.
3067
+ _validateNumber(precise) {
3067
3068
  if (!this.selectedCountryData.iso2) {
3068
3069
  return false;
3069
3070
  }
3070
3071
  const val = this._getFullNumber();
3071
3072
  const alphaCharPosition = val.search(/\p{L}/u);
3073
+ const testValidity = (s) => precise ? this._utilsIsValidNumber(s) : this._utilsIsPossibleNumber(s);
3072
3074
  if (alphaCharPosition > -1) {
3073
3075
  const beforeAlphaChar = val.substring(0, alphaCharPosition);
3074
- const beforeAlphaIsValid = this._utilsIsValidNumber(beforeAlphaChar);
3075
- const isValid = this._utilsIsValidNumber(val);
3076
+ const beforeAlphaIsValid = testValidity(beforeAlphaChar);
3077
+ const isValid = testValidity(val);
3076
3078
  return beforeAlphaIsValid && isValid;
3077
3079
  }
3078
- return this._utilsIsValidNumber(val);
3080
+ return testValidity(val);
3079
3081
  }
3080
3082
  _utilsIsValidNumber(val) {
3081
3083
  return intlTelInput.utils ? intlTelInput.utils.isValidNumber(val, this.selectedCountryData.iso2, this.options.validationNumberTypes) : null;
@@ -3167,7 +3169,7 @@ var intlTelInput = Object.assign(
3167
3169
  attachUtils,
3168
3170
  startedLoadingUtilsScript: false,
3169
3171
  startedLoadingAutoCountry: false,
3170
- version: "25.5.2"
3172
+ version: "25.7.0"
3171
3173
  }
3172
3174
  );
3173
3175
  var intl_tel_input_default = intlTelInput;
@@ -4511,37 +4513,12 @@ var intl_tel_input_default = intlTelInput;
4511
4513
  ,
4512
4514
  [-1]
4513
4515
  ], [, , "242225\\d{4}", , , , "2422250123"], , , [, , , , , , , , , [-1]]],
4514
- BT: [
4515
- ,
4516
- [, , "[17]\\d{7}|[2-8]\\d{6}", , , , , , , [7, 8], [6]],
4517
- [, , "(?:2[3-6]|[34][5-7]|5[236]|6[2-46]|7[246]|8[2-4])\\d{5}", , , , "2345678", , , [7], [6]],
4518
- [, , "(?:1[67]|77)\\d{6}", , , , "17123456", , , [8]],
4519
- [, , , , , , , , , [-1]],
4520
- [, , , , , , , , , [-1]],
4521
- [, , , , , , , , , [-1]],
4522
- [, , , , , , , , , [-1]],
4523
- [, , , , , , , , , [-1]],
4524
- "BT",
4525
- 975,
4526
- "00",
4527
- ,
4528
- ,
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]"]], [
4529
4517
  ,
4530
- ,
4531
- ,
4532
- ,
4533
- ,
4534
- [[, "(\\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"]]],
4535
- [[, "(\\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"]]],
4536
- [, , , , , , , , , [-1]],
4537
- ,
4538
- ,
4539
- [, , , , , , , , , [-1]],
4540
- [, , , , , , , , , [-1]],
4541
- ,
4542
- ,
4543
- [, , , , , , , , , [-1]]
4544
- ],
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]]],
4545
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]], [
4546
4523
  ,
4547
4524
  ,
@@ -4553,7 +4530,7 @@ var intl_tel_input_default = intlTelInput;
4553
4530
  ,
4554
4531
  ,
4555
4532
  [8]
4556
- ], [, , "(?: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]], [
4557
4534
  ,
4558
4535
  ,
4559
4536
  ,
@@ -4564,7 +4541,7 @@ var intl_tel_input_default = intlTelInput;
4564
4541
  ,
4565
4542
  ,
4566
4543
  [-1]
4567
- ]],
4544
+ ], , , [, , , , , , , , , [-1]]],
4568
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]], [
4569
4546
  ,
4570
4547
  ,
@@ -4959,7 +4936,7 @@ var intl_tel_input_default = intlTelInput;
4959
4936
  ,
4960
4937
  [5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
4961
4938
  [2, 3, 4]
4962
- ], [, , "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", , , , [
4963
4940
  [
4964
4941
  ,
4965
4942
  "(\\d{2})(\\d{3,13})",
@@ -4985,7 +4962,7 @@ var intl_tel_input_default = intlTelInput;
4985
4962
  [, "(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["7"], "0$1"],
4986
4963
  [, "(\\d{4})(\\d{7})", "$1 $2", ["18[68]"], "0$1"],
4987
4964
  [, "(\\d{4})(\\d{7})", "$1 $2", ["15[1279]"], "0$1"],
4988
- [, "(\\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"],
4989
4966
  [, "(\\d{3})(\\d{8})", "$1 $2", ["18"], "0$1"],
4990
4967
  [, "(\\d{3})(\\d{2})(\\d{7,8})", "$1 $2 $3", ["1(?:6[023]|7)"], "0$1"],
4991
4968
  [, "(\\d{4})(\\d{2})(\\d{7})", "$1 $2 $3", ["15[279]"], "0$1"],
@@ -5707,7 +5684,7 @@ var intl_tel_input_default = intlTelInput;
5707
5684
  ,
5708
5685
  ,
5709
5686
  "2201234"
5710
- ], [, , "(?: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]]],
5711
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]], [
5712
5689
  ,
5713
5690
  ,
@@ -5870,7 +5847,7 @@ var intl_tel_input_default = intlTelInput;
5870
5847
  10,
5871
5848
  11,
5872
5849
  12
5873
- ]], [, , "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]], [
5874
5851
  ,
5875
5852
  ,
5876
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}",
@@ -7287,7 +7264,7 @@ var intl_tel_input_default = intlTelInput;
7287
7264
  ,
7288
7265
  [, , "(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}", , , , , , , [7, 8, 9]],
7289
7266
  [, , "2[1-6]\\d{6}", , , , "23123456", , , [8]],
7290
- [, , "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]],
7291
7268
  [, , "8007\\d{4,5}|(?:500|800[05])\\d{4}", , , , "80071234"],
7292
7269
  [, , "900\\d{5}", , , , "90012345", , , [8]],
7293
7270
  [, , , , , , , , , [-1]],
@@ -7317,7 +7294,7 @@ var intl_tel_input_default = intlTelInput;
7317
7294
  PA: [, [, , "(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}", , , , , , , [7, 8, 10, 11]], [
7318
7295
  ,
7319
7296
  ,
7320
- "(?: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}",
7321
7298
  ,
7322
7299
  ,
7323
7300
  ,
@@ -7767,7 +7744,7 @@ var intl_tel_input_default = intlTelInput;
7767
7744
  ,
7768
7745
  ,
7769
7746
  [8]
7770
- ], [, , "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"]], [
7771
7748
  ,
7772
7749
  "(\\d{4})(\\d{4})(\\d{3})",
7773
7750
  "$1 $2 $3",
@@ -7940,7 +7917,7 @@ var intl_tel_input_default = intlTelInput;
7940
7917
  "$1 $2",
7941
7918
  ["(?:2|90)4|[67]"]
7942
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]]],
7943
- 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]], [
7944
7921
  ,
7945
7922
  ,
7946
7923
  "56\\d{4}",
@@ -7952,37 +7929,13 @@ var intl_tel_input_default = intlTelInput;
7952
7929
  ,
7953
7930
  [6]
7954
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]]],
7955
- SS: [
7956
- ,
7957
- [, , "[19]\\d{8}", , , , , , , [9]],
7958
- [, , "1[89]\\d{7}", , , , "181234567"],
7959
- [, , "(?:12|9[1257-9])\\d{7}", , , , "977123456"],
7960
- [, , , , , , , , , [-1]],
7961
- [, , , , , , , , , [-1]],
7962
- [, , , , , , , , , [-1]],
7963
- [, , , , , , , , , [-1]],
7964
- [, , , , , , , , , [-1]],
7965
- "SS",
7966
- 211,
7967
- "00",
7968
- "0",
7969
- ,
7970
- ,
7971
- "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", , , , [[
7972
7933
  ,
7973
- ,
7974
- ,
7975
- [[, "(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[19]"], "0$1"]],
7976
- ,
7977
- [, , , , , , , , , [-1]],
7978
- ,
7979
- ,
7980
- [, , , , , , , , , [-1]],
7981
- [, , , , , , , , , [-1]],
7982
- ,
7983
- ,
7984
- [, , , , , , , , , [-1]]
7985
- ],
7934
+ "(\\d{3})(\\d{3})(\\d{3})",
7935
+ "$1 $2 $3",
7936
+ ["[19]"],
7937
+ "0$1"
7938
+ ]], , [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]], [, , , , , , , , , [-1]], , , [, , , , , , , , , [-1]]],
7986
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]]],
7987
7940
  SV: [, [, , "[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?", , , , , , , [7, 8, 11]], [
7988
7941
  ,
@@ -8395,17 +8348,44 @@ var intl_tel_input_default = intlTelInput;
8395
8348
  [, "(\\d{3})(\\d{4})", "$1-$2", ["[24-9]|3(?:[02-9]|1[1-9])"]],
8396
8349
  [, "(\\d{3})(\\d{3})(\\d{4})", "($1) $2-$3", ["[2-9]"], , , 1]
8397
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]]],
8398
- 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]], [
8399
8352
  ,
8400
8353
  ,
8401
- "0004\\d{2,9}|(?:405|80[05])\\d{4}",
8354
+ "9[1-9]\\d{6}",
8402
8355
  ,
8403
8356
  ,
8404
8357
  ,
8405
- "8001234"
8406
- ], [, , "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",
8407
8359
  ,
8408
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",
8409
8389
  ,
8410
8390
  ,
8411
8391
  ,
@@ -8413,17 +8393,17 @@ var intl_tel_input_default = intlTelInput;
8413
8393
  ,
8414
8394
  ,
8415
8395
  ,
8416
- [-1]
8417
- ]],
8418
- 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]"]]],
8419
8397
  ,
8398
+ [, , , , , , , , , [-1]],
8420
8399
  ,
8421
- "(?:(?:[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}",
8422
8400
  ,
8401
+ [, , , , , , , , , [-1]],
8402
+ [, , , , , , , , , [-1]],
8423
8403
  ,
8424
8404
  ,
8425
- "912345678"
8426
- ], [, , , , , , , , , [-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
+ ],
8427
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]], [
8428
8408
  ,
8429
8409
  ,
@@ -9431,7 +9411,9 @@ var intl_tel_input_default = intlTelInput;
9431
9411
  }
9432
9412
  ;
9433
9413
  const yb = (a) => {
9434
- 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);
9435
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 };
9436
9418
  m("intlTelInputUtilsTemp", {});
9437
9419
  m("intlTelInputUtilsTemp.formatNumberAsYouType", (a, b) => {
@@ -9504,8 +9486,7 @@ var intl_tel_input_default = intlTelInput;
9504
9486
  try {
9505
9487
  const d = K.g(), e = Y(d, a, b), f = cb(d, e);
9506
9488
  if (c) {
9507
- yb(c);
9508
- const g = c.map((h) => zb[h]);
9489
+ const g = yb(c).map((h) => zb[h]);
9509
9490
  return f && g.includes($a(d, e));
9510
9491
  }
9511
9492
  return f;
@@ -9517,8 +9498,8 @@ var intl_tel_input_default = intlTelInput;
9517
9498
  try {
9518
9499
  const d = K.g(), e = Y(d, a, b);
9519
9500
  if (c) {
9520
- yb(c);
9521
- 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;
9522
9503
  return false;
9523
9504
  }
9524
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.2/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.