vue-tel-input 5.14.1 → 5.15.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.
@@ -1419,6 +1419,57 @@ module.exports = function (V, P) {
1419
1419
  };
1420
1420
 
1421
1421
 
1422
+ /***/ }),
1423
+
1424
+ /***/ 647:
1425
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1426
+
1427
+ var uncurryThis = __webpack_require__(1702);
1428
+ var toObject = __webpack_require__(7908);
1429
+
1430
+ var floor = Math.floor;
1431
+ var charAt = uncurryThis(''.charAt);
1432
+ var replace = uncurryThis(''.replace);
1433
+ var stringSlice = uncurryThis(''.slice);
1434
+ var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
1435
+ var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
1436
+
1437
+ // `GetSubstitution` abstract operation
1438
+ // https://tc39.es/ecma262/#sec-getsubstitution
1439
+ module.exports = function (matched, str, position, captures, namedCaptures, replacement) {
1440
+ var tailPos = position + matched.length;
1441
+ var m = captures.length;
1442
+ var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
1443
+ if (namedCaptures !== undefined) {
1444
+ namedCaptures = toObject(namedCaptures);
1445
+ symbols = SUBSTITUTION_SYMBOLS;
1446
+ }
1447
+ return replace(replacement, symbols, function (match, ch) {
1448
+ var capture;
1449
+ switch (charAt(ch, 0)) {
1450
+ case '$': return '$';
1451
+ case '&': return matched;
1452
+ case '`': return stringSlice(str, 0, position);
1453
+ case "'": return stringSlice(str, tailPos);
1454
+ case '<':
1455
+ capture = namedCaptures[stringSlice(ch, 1, -1)];
1456
+ break;
1457
+ default: // \d\d?
1458
+ var n = +ch;
1459
+ if (n === 0) return match;
1460
+ if (n > m) {
1461
+ var f = floor(n / 10);
1462
+ if (f === 0) return match;
1463
+ if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
1464
+ return match;
1465
+ }
1466
+ capture = captures[n - 1];
1467
+ }
1468
+ return capture === undefined ? '' : capture;
1469
+ });
1470
+ };
1471
+
1472
+
1422
1473
  /***/ }),
1423
1474
 
1424
1475
  /***/ 7854:
@@ -5917,6 +5968,151 @@ fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNa
5917
5968
  });
5918
5969
 
5919
5970
 
5971
+ /***/ }),
5972
+
5973
+ /***/ 5306:
5974
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
5975
+
5976
+ "use strict";
5977
+
5978
+ var apply = __webpack_require__(2104);
5979
+ var call = __webpack_require__(6916);
5980
+ var uncurryThis = __webpack_require__(1702);
5981
+ var fixRegExpWellKnownSymbolLogic = __webpack_require__(7007);
5982
+ var fails = __webpack_require__(7293);
5983
+ var anObject = __webpack_require__(9670);
5984
+ var isCallable = __webpack_require__(614);
5985
+ var isNullOrUndefined = __webpack_require__(8554);
5986
+ var toIntegerOrInfinity = __webpack_require__(9303);
5987
+ var toLength = __webpack_require__(7466);
5988
+ var toString = __webpack_require__(1340);
5989
+ var requireObjectCoercible = __webpack_require__(4488);
5990
+ var advanceStringIndex = __webpack_require__(1530);
5991
+ var getMethod = __webpack_require__(8173);
5992
+ var getSubstitution = __webpack_require__(647);
5993
+ var regExpExec = __webpack_require__(7651);
5994
+ var wellKnownSymbol = __webpack_require__(5112);
5995
+
5996
+ var REPLACE = wellKnownSymbol('replace');
5997
+ var max = Math.max;
5998
+ var min = Math.min;
5999
+ var concat = uncurryThis([].concat);
6000
+ var push = uncurryThis([].push);
6001
+ var stringIndexOf = uncurryThis(''.indexOf);
6002
+ var stringSlice = uncurryThis(''.slice);
6003
+
6004
+ var maybeToString = function (it) {
6005
+ return it === undefined ? it : String(it);
6006
+ };
6007
+
6008
+ // IE <= 11 replaces $0 with the whole match, as if it was $&
6009
+ // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
6010
+ var REPLACE_KEEPS_$0 = (function () {
6011
+ // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
6012
+ return 'a'.replace(/./, '$0') === '$0';
6013
+ })();
6014
+
6015
+ // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
6016
+ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
6017
+ if (/./[REPLACE]) {
6018
+ return /./[REPLACE]('a', '$0') === '';
6019
+ }
6020
+ return false;
6021
+ })();
6022
+
6023
+ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
6024
+ var re = /./;
6025
+ re.exec = function () {
6026
+ var result = [];
6027
+ result.groups = { a: '7' };
6028
+ return result;
6029
+ };
6030
+ // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
6031
+ return ''.replace(re, '$<a>') !== '7';
6032
+ });
6033
+
6034
+ // @@replace logic
6035
+ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
6036
+ var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
6037
+
6038
+ return [
6039
+ // `String.prototype.replace` method
6040
+ // https://tc39.es/ecma262/#sec-string.prototype.replace
6041
+ function replace(searchValue, replaceValue) {
6042
+ var O = requireObjectCoercible(this);
6043
+ var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
6044
+ return replacer
6045
+ ? call(replacer, searchValue, O, replaceValue)
6046
+ : call(nativeReplace, toString(O), searchValue, replaceValue);
6047
+ },
6048
+ // `RegExp.prototype[@@replace]` method
6049
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
6050
+ function (string, replaceValue) {
6051
+ var rx = anObject(this);
6052
+ var S = toString(string);
6053
+
6054
+ if (
6055
+ typeof replaceValue == 'string' &&
6056
+ stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
6057
+ stringIndexOf(replaceValue, '$<') === -1
6058
+ ) {
6059
+ var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
6060
+ if (res.done) return res.value;
6061
+ }
6062
+
6063
+ var functionalReplace = isCallable(replaceValue);
6064
+ if (!functionalReplace) replaceValue = toString(replaceValue);
6065
+
6066
+ var global = rx.global;
6067
+ if (global) {
6068
+ var fullUnicode = rx.unicode;
6069
+ rx.lastIndex = 0;
6070
+ }
6071
+ var results = [];
6072
+ while (true) {
6073
+ var result = regExpExec(rx, S);
6074
+ if (result === null) break;
6075
+
6076
+ push(results, result);
6077
+ if (!global) break;
6078
+
6079
+ var matchStr = toString(result[0]);
6080
+ if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
6081
+ }
6082
+
6083
+ var accumulatedResult = '';
6084
+ var nextSourcePosition = 0;
6085
+ for (var i = 0; i < results.length; i++) {
6086
+ result = results[i];
6087
+
6088
+ var matched = toString(result[0]);
6089
+ var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
6090
+ var captures = [];
6091
+ // NOTE: This is equivalent to
6092
+ // captures = result.slice(1).map(maybeToString)
6093
+ // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
6094
+ // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
6095
+ // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
6096
+ for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
6097
+ var namedCaptures = result.groups;
6098
+ if (functionalReplace) {
6099
+ var replacerArgs = concat([matched], captures, position, S);
6100
+ if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
6101
+ var replacement = toString(apply(replaceValue, undefined, replacerArgs));
6102
+ } else {
6103
+ replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
6104
+ }
6105
+ if (position >= nextSourcePosition) {
6106
+ accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
6107
+ nextSourcePosition = position + matched.length;
6108
+ }
6109
+ }
6110
+ return accumulatedResult + stringSlice(S, nextSourcePosition);
6111
+ }
6112
+ ];
6113
+ }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
6114
+
6115
+
5920
6116
  /***/ }),
5921
6117
 
5922
6118
  /***/ 3123:
@@ -6970,6 +7166,7 @@ var es_array_map = __webpack_require__(1249);
6970
7166
  ;// CONCATENATED MODULE: ./src/assets/all-countries.js
6971
7167
 
6972
7168
 
7169
+ // A fork of https://github.com/jackocnr/intl-tel-input/blob/master/src/js/data.js
6973
7170
  // Array of country objects for the flag dropdown.
6974
7171
  // Here is the criteria for the plugin to support a given country/territory
6975
7172
  // - It has an iso2 code: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
@@ -6980,19 +7177,27 @@ var es_array_map = __webpack_require__(1249);
6980
7177
  // [
6981
7178
  // Country name,
6982
7179
  // iso2 code,
6983
- // International dial code
7180
+ // International dial code,
7181
+ // Order (if >1 country with same dial code),
7182
+ // Area codes
6984
7183
  // ]
6985
- var allCountries = [['Afghanistan (‫افغانستان‬‎)', 'af', '93'], ['Albania (Shqipëri)', 'al', '355'], ['Algeria (‫الجزائر‬‎)', 'dz', '213'], ['American Samoa', 'as', '1684'], ['Andorra', 'ad', '376'], ['Angola', 'ao', '244'], ['Anguilla', 'ai', '1264'], ['Antigua and Barbuda', 'ag', '1268'], ['Argentina', 'ar', '54'], ['Armenia (Հայաստան)', 'am', '374'], ['Aruba', 'aw', '297'], ['Australia', 'au', '61'], ['Austria (Österreich)', 'at', '43'], ['Azerbaijan (Azərbaycan)', 'az', '994'], ['Bahamas', 'bs', '1242'], ['Bahrain (‫البحرين‬‎)', 'bh', '973'], ['Bangladesh (বাংলাদেশ)', 'bd', '880'], ['Barbados', 'bb', '1246'], ['Belarus (Беларусь)', 'by', '375'], ['Belgium (België)', 'be', '32'], ['Belize', 'bz', '501'], ['Benin (Bénin)', 'bj', '229'], ['Bermuda', 'bm', '1441'], ['Bhutan (འབྲུག)', 'bt', '975'], ['Bolivia', 'bo', '591'], ['Bosnia and Herzegovina (Босна и Херцеговина)', 'ba', '387'], ['Botswana', 'bw', '267'], ['Brazil (Brasil)', 'br', '55'], ['British Indian Ocean Territory', 'io', '246'], ['British Virgin Islands', 'vg', '1284'], ['Brunei', 'bn', '673'], ['Bulgaria (България)', 'bg', '359'], ['Burkina Faso', 'bf', '226'], ['Burundi (Uburundi)', 'bi', '257'], ['Cambodia (កម្ពុជា)', 'kh', '855'], ['Cameroon (Cameroun)', 'cm', '237'], ['Canada', 'ca', '1'], ['Cape Verde (Kabu Verdi)', 'cv', '238'], ['Caribbean Netherlands', 'bq', '599'], ['Cayman Islands', 'ky', '1345'], ['Central African Republic (République centrafricaine)', 'cf', '236'], ['Chad (Tchad)', 'td', '235'], ['Chile', 'cl', '56'], ['China (中国)', 'cn', '86'], ['Christmas Island', 'cx', '61'], ['Cocos (Keeling) Islands', 'cc', '61'], ['Colombia', 'co', '57'], ['Comoros (‫جزر القمر‬‎)', 'km', '269'], ['Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)', 'cd', '243'], ['Congo (Republic) (Congo-Brazzaville)', 'cg', '242'], ['Cook Islands', 'ck', '682'], ['Costa Rica', 'cr', '506'], ['Côte d’Ivoire', 'ci', '225'], ['Croatia (Hrvatska)', 'hr', '385'], ['Cuba', 'cu', '53'], ['Curaçao', 'cw', '599'], ['Cyprus (Κύπρος)', 'cy', '357'], ['Czech Republic (Česká republika)', 'cz', '420'], ['Denmark (Danmark)', 'dk', '45'], ['Djibouti', 'dj', '253'], ['Dominica', 'dm', '1767'], ['Dominican Republic (República Dominicana)', 'do', '1'], ['Ecuador', 'ec', '593'], ['Egypt (‫مصر‬‎)', 'eg', '20'], ['El Salvador', 'sv', '503'], ['Equatorial Guinea (Guinea Ecuatorial)', 'gq', '240'], ['Eritrea', 'er', '291'], ['Estonia (Eesti)', 'ee', '372'], ['Ethiopia', 'et', '251'], ['Falkland Islands (Islas Malvinas)', 'fk', '500'], ['Faroe Islands (Føroyar)', 'fo', '298'], ['Fiji', 'fj', '679'], ['Finland (Suomi)', 'fi', '358'], ['France', 'fr', '33'], ['French Guiana (Guyane française)', 'gf', '594'], ['French Polynesia (Polynésie française)', 'pf', '689'], ['Gabon', 'ga', '241'], ['Gambia', 'gm', '220'], ['Georgia (საქართველო)', 'ge', '995'], ['Germany (Deutschland)', 'de', '49'], ['Ghana (Gaana)', 'gh', '233'], ['Gibraltar', 'gi', '350'], ['Greece (Ελλάδα)', 'gr', '30'], ['Greenland (Kalaallit Nunaat)', 'gl', '299'], ['Grenada', 'gd', '1473'], ['Guadeloupe', 'gp', '590'], ['Guam', 'gu', '1671'], ['Guatemala', 'gt', '502'], ['Guernsey', 'gg', '44', 1], ['Guinea (Guinée)', 'gn', '224'], ['Guinea-Bissau (Guiné Bissau)', 'gw', '245'], ['Guyana', 'gy', '592'], ['Haiti', 'ht', '509'], ['Honduras', 'hn', '504'], ['Hong Kong (香港)', 'hk', '852'], ['Hungary (Magyarország)', 'hu', '36'], ['Iceland (Ísland)', 'is', '354'], ['India (भारत)', 'in', '91'], ['Indonesia', 'id', '62'], ['Iran (‫ایران‬‎)', 'ir', '98'], ['Iraq (‫العراق‬‎)', 'iq', '964'], ['Ireland', 'ie', '353'], ['Isle of Man', 'im', '44'], ['Israel (‫ישראל‬‎)', 'il', '972'], ['Italy (Italia)', 'it', '39'], ['Jamaica', 'jm', '1876'], ['Japan (日本)', 'jp', '81'], ['Jersey', 'je', '44'], ['Jordan (‫الأردن‬‎)', 'jo', '962'], ['Kazakhstan (Казахстан)', 'kz', '7'], ['Kenya', 'ke', '254'], ['Kiribati', 'ki', '686'], ['Kosovo', 'xk', '383'], ['Kuwait (‫الكويت‬‎)', 'kw', '965'], ['Kyrgyzstan (Кыргызстан)', 'kg', '996'], ['Laos (ລາວ)', 'la', '856'], ['Latvia (Latvija)', 'lv', '371'], ['Lebanon (‫لبنان‬‎)', 'lb', '961'], ['Lesotho', 'ls', '266'], ['Liberia', 'lr', '231'], ['Libya (‫ليبيا‬‎)', 'ly', '218'], ['Liechtenstein', 'li', '423'], ['Lithuania (Lietuva)', 'lt', '370'], ['Luxembourg', 'lu', '352'], ['Macau (澳門)', 'mo', '853'], ['Macedonia (FYROM) (Македонија)', 'mk', '389'], ['Madagascar (Madagasikara)', 'mg', '261'], ['Malawi', 'mw', '265'], ['Malaysia', 'my', '60'], ['Maldives', 'mv', '960'], ['Mali', 'ml', '223'], ['Malta', 'mt', '356'], ['Marshall Islands', 'mh', '692'], ['Martinique', 'mq', '596'], ['Mauritania (‫موريتانيا‬‎)', 'mr', '222'], ['Mauritius (Moris)', 'mu', '230'], ['Mayotte', 'yt', '262'], ['Mexico (México)', 'mx', '52'], ['Micronesia', 'fm', '691'], ['Moldova (Republica Moldova)', 'md', '373'], ['Monaco', 'mc', '377'], ['Mongolia (Монгол)', 'mn', '976'], ['Montenegro (Crna Gora)', 'me', '382'], ['Montserrat', 'ms', '1664'], ['Morocco (‫المغرب‬‎)', 'ma', '212'], ['Mozambique (Moçambique)', 'mz', '258'], ['Myanmar (Burma) (မြန်မာ)', 'mm', '95'], ['Namibia (Namibië)', 'na', '264'], ['Nauru', 'nr', '674'], ['Nepal (नेपाल)', 'np', '977'], ['Netherlands (Nederland)', 'nl', '31'], ['New Caledonia (Nouvelle-Calédonie)', 'nc', '687'], ['New Zealand', 'nz', '64'], ['Nicaragua', 'ni', '505'], ['Niger (Nijar)', 'ne', '227'], ['Nigeria', 'ng', '234'], ['Niue', 'nu', '683'], ['Norfolk Island', 'nf', '672'], ['North Korea (조선 민주주의 인민 공화국)', 'kp', '850'], ['Northern Mariana Islands', 'mp', '1670'], ['Norway (Norge)', 'no', '47'], ['Oman (‫عُمان‬‎)', 'om', '968'], ['Pakistan (‫پاکستان‬‎)', 'pk', '92'], ['Palau', 'pw', '680'], ['Palestine (‫فلسطين‬‎)', 'ps', '970'], ['Panama (Panamá)', 'pa', '507'], ['Papua New Guinea', 'pg', '675'], ['Paraguay', 'py', '595'], ['Peru (Perú)', 'pe', '51'], ['Philippines', 'ph', '63'], ['Poland (Polska)', 'pl', '48'], ['Portugal', 'pt', '351'], ['Puerto Rico', 'pr', '1'], ['Qatar (‫قطر‬‎)', 'qa', '974'], ['Réunion (La Réunion)', 're', '262'], ['Romania (România)', 'ro', '40'], ['Russia (Россия)', 'ru', '7'], ['Rwanda', 'rw', '250'], ['Saint Barthélemy', 'bl', '590'], ['Saint Helena', 'sh', '290'], ['Saint Kitts and Nevis', 'kn', '1869'], ['Saint Lucia', 'lc', '1758'], ['Saint Martin (Saint-Martin (partie française))', 'mf', '590'], ['Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)', 'pm', '508'], ['Saint Vincent and the Grenadines', 'vc', '1784'], ['Samoa', 'ws', '685'], ['San Marino', 'sm', '378'], ['São Tomé and Príncipe (São Tomé e Príncipe)', 'st', '239'], ['Saudi Arabia (‫المملكة العربية السعودية‬‎)', 'sa', '966'], ['Senegal (Sénégal)', 'sn', '221'], ['Serbia (Србија)', 'rs', '381'], ['Seychelles', 'sc', '248'], ['Sierra Leone', 'sl', '232'], ['Singapore', 'sg', '65'], ['Sint Maarten', 'sx', '1721'], ['Slovakia (Slovensko)', 'sk', '421'], ['Slovenia (Slovenija)', 'si', '386'], ['Solomon Islands', 'sb', '677'], ['Somalia (Soomaaliya)', 'so', '252'], ['South Africa', 'za', '27'], ['South Korea (대한민국)', 'kr', '82'], ['South Sudan (‫جنوب السودان‬‎)', 'ss', '211'], ['Spain (España)', 'es', '34'], ['Sri Lanka (ශ්‍රී ලංකාව)', 'lk', '94'], ['Sudan (‫السودان‬‎)', 'sd', '249'], ['Suriname', 'sr', '597'], ['Svalbard and Jan Mayen', 'sj', '47'], ['Swaziland', 'sz', '268'], ['Sweden (Sverige)', 'se', '46'], ['Switzerland (Schweiz)', 'ch', '41'], ['Syria (‫سوريا‬‎)', 'sy', '963'], ['Taiwan (台灣)', 'tw', '886'], ['Tajikistan', 'tj', '992'], ['Tanzania', 'tz', '255'], ['Thailand (ไทย)', 'th', '66'], ['Timor-Leste', 'tl', '670'], ['Togo', 'tg', '228'], ['Tokelau', 'tk', '690'], ['Tonga', 'to', '676'], ['Trinidad and Tobago', 'tt', '1868'], ['Tunisia (‫تونس‬‎)', 'tn', '216'], ['Turkey (Türkiye)', 'tr', '90'], ['Turkmenistan', 'tm', '993'], ['Turks and Caicos Islands', 'tc', '1649'], ['Tuvalu', 'tv', '688'], ['U.S. Virgin Islands', 'vi', '1340'], ['Uganda', 'ug', '256'], ['Ukraine (Україна)', 'ua', '380'], ['United Arab Emirates (‫الإمارات العربية المتحدة‬‎)', 'ae', '971'], ['United Kingdom', 'gb', '44'], ['United States', 'us', '1'], ['Uruguay', 'uy', '598'], ['Uzbekistan (Oʻzbekiston)', 'uz', '998'], ['Vanuatu', 'vu', '678'], ['Vatican City (Città del Vaticano)', 'va', '39'], ['Venezuela', 've', '58'], ['Vietnam (Việt Nam)', 'vn', '84'], ['Wallis and Futuna (Wallis-et-Futuna)', 'wf', '681'], ['Western Sahara (‫الصحراء الغربية‬‎)', 'eh', '212'], ['Yemen (‫اليمن‬‎)', 'ye', '967'], ['Zambia', 'zm', '260'], ['Zimbabwe', 'zw', '263'], ['Åland Islands', 'ax', '358']];
7184
+ var allCountries = [['Afghanistan (‫افغانستان‬‎)', 'af', '93'], ['Albania (Shqipëri)', 'al', '355'], ['Algeria (‫الجزائر‬‎)', 'dz', '213'], ['American Samoa', 'as', '1', 5, ['684']], ['Andorra', 'ad', '376'], ['Angola', 'ao', '244'], ['Anguilla', 'ai', '1', 6, ['264']], ['Antigua and Barbuda', 'ag', '1', 7, ['268']], ['Argentina', 'ar', '54'], ['Armenia (Հայաստան)', 'am', '374'], ['Aruba', 'aw', '297'], ['Ascension Island', 'ac', '247'], ['Australia', 'au', '61', 0], ['Austria (Österreich)', 'at', '43'], ['Azerbaijan (Azərbaycan)', 'az', '994'], ['Bahamas', 'bs', '1', 8, ['242']], ['Bahrain (‫البحرين‬‎)', 'bh', '973'], ['Bangladesh (বাংলাদেশ)', 'bd', '880'], ['Barbados', 'bb', '1', 9, ['246']], ['Belarus (Беларусь)', 'by', '375'], ['Belgium (België)', 'be', '32'], ['Belize', 'bz', '501'], ['Benin (Bénin)', 'bj', '229'], ['Bermuda', 'bm', '1', 10, ['441']], ['Bhutan (འབྲུག)', 'bt', '975'], ['Bolivia', 'bo', '591'], ['Bosnia and Herzegovina (Босна и Херцеговина)', 'ba', '387'], ['Botswana', 'bw', '267'], ['Brazil (Brasil)', 'br', '55'], ['British Indian Ocean Territory', 'io', '246'], ['British Virgin Islands', 'vg', '1', 11, ['284']], ['Brunei', 'bn', '673'], ['Bulgaria (България)', 'bg', '359'], ['Burkina Faso', 'bf', '226'], ['Burundi (Uburundi)', 'bi', '257'], ['Cambodia (កម្ពុជា)', 'kh', '855'], ['Cameroon (Cameroun)', 'cm', '237'], ['Canada', 'ca', '1', 1, ['204', '226', '236', '249', '250', '263', '289', '306', '343', '354', '365', '367', '368', '382', '387', '403', '416', '418', '428', '431', '437', '438', '450', '584', '468', '474', '506', '514', '519', '548', '579', '581', '584', '587', '604', '613', '639', '647', '672', '683', '705', '709', '742', '753', '778', '780', '782', '807', '819', '825', '867', '873', '902', '905']], ['Cape Verde (Kabu Verdi)', 'cv', '238'], ['Caribbean Netherlands', 'bq', '599', 1, ['3', '4', '7']], ['Cayman Islands', 'ky', '1', 12, ['345']], ['Central African Republic (République centrafricaine)', 'cf', '236'], ['Chad (Tchad)', 'td', '235'], ['Chile', 'cl', '56'], ['China (中国)', 'cn', '86'], ['Christmas Island', 'cx', '61', 2, ['89164']], ['Cocos (Keeling) Islands', 'cc', '61', 1, ['89162']], ['Colombia', 'co', '57'], ['Comoros (‫جزر القمر‬‎)', 'km', '269'], ['Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)', 'cd', '243'], ['Congo (Republic) (Congo-Brazzaville)', 'cg', '242'], ['Cook Islands', 'ck', '682'], ['Costa Rica', 'cr', '506'], ['Côte d’Ivoire', 'ci', '225'], ['Croatia (Hrvatska)', 'hr', '385'], ['Cuba', 'cu', '53'], ['Curaçao', 'cw', '599', 0], ['Cyprus (Κύπρος)', 'cy', '357'], ['Czech Republic (Česká republika)', 'cz', '420'], ['Denmark (Danmark)', 'dk', '45'], ['Djibouti', 'dj', '253'], ['Dominica', 'dm', '1', 13, ['767']], ['Dominican Republic (República Dominicana)', 'do', '1', 2, ['809', '829', '849']], ['Ecuador', 'ec', '593'], ['Egypt (‫مصر‬‎)', 'eg', '20'], ['El Salvador', 'sv', '503'], ['Equatorial Guinea (Guinea Ecuatorial)', 'gq', '240'], ['Eritrea', 'er', '291'], ['Estonia (Eesti)', 'ee', '372'], ['Eswatini', 'sz', '268'], ['Ethiopia', 'et', '251'], ['Falkland Islands (Islas Malvinas)', 'fk', '500'], ['Faroe Islands (Føroyar)', 'fo', '298'], ['Fiji', 'fj', '679'], ['Finland (Suomi)', 'fi', '358', 0], ['France', 'fr', '33'], ['French Guiana (Guyane française)', 'gf', '594'], ['French Polynesia (Polynésie française)', 'pf', '689'], ['Gabon', 'ga', '241'], ['Gambia', 'gm', '220'], ['Georgia (საქართველო)', 'ge', '995'], ['Germany (Deutschland)', 'de', '49'], ['Ghana (Gaana)', 'gh', '233'], ['Gibraltar', 'gi', '350'], ['Greece (Ελλάδα)', 'gr', '30'], ['Greenland (Kalaallit Nunaat)', 'gl', '299'], ['Grenada', 'gd', '1', 14, ['473']], ['Guadeloupe', 'gp', '590', 0], ['Guam', 'gu', '1', 15, ['671']], ['Guatemala', 'gt', '502'], ['Guernsey', 'gg', '44', 1, ['1481', '7781', '7839', '7911']], ['Guinea (Guinée)', 'gn', '224'], ['Guinea-Bissau (Guiné Bissau)', 'gw', '245'], ['Guyana', 'gy', '592'], ['Haiti', 'ht', '509'], ['Honduras', 'hn', '504'], ['Hong Kong (香港)', 'hk', '852'], ['Hungary (Magyarország)', 'hu', '36'], ['Iceland (Ísland)', 'is', '354'], ['India (भारत)', 'in', '91'], ['Indonesia', 'id', '62'], ['Iran (‫ایران‬‎)', 'ir', '98'], ['Iraq (‫العراق‬‎)', 'iq', '964'], ['Ireland', 'ie', '353'], ['Isle of Man', 'im', '44', 2, ['1624', '74576', '7524', '7924', '7624']], ['Israel (‫ישראל‬‎)', 'il', '972'], ['Italy (Italia)', 'it', '39', 0], ['Jamaica', 'jm', '1', 4, ['876', '658']], ['Japan (日本)', 'jp', '81'], ['Jersey', 'je', '44', 3, ['1534', '7509', '7700', '7797', '7829', '7937']], ['Jordan (‫الأردن‬‎)', 'jo', '962'], ['Kazakhstan (Казахстан)', 'kz', '7', 1, ['33', '7']], ['Kenya', 'ke', '254'], ['Kiribati', 'ki', '686'], ['Kosovo', 'xk', '383'], ['Kuwait (‫الكويت‬‎)', 'kw', '965'], ['Kyrgyzstan (Кыргызстан)', 'kg', '996'], ['Laos (ລາວ)', 'la', '856'], ['Latvia (Latvija)', 'lv', '371'], ['Lebanon (‫لبنان‬‎)', 'lb', '961'], ['Lesotho', 'ls', '266'], ['Liberia', 'lr', '231'], ['Libya (‫ليبيا‬‎)', 'ly', '218'], ['Liechtenstein', 'li', '423'], ['Lithuania (Lietuva)', 'lt', '370'], ['Luxembourg', 'lu', '352'], ['Macau (澳門)', 'mo', '853'], ['Madagascar (Madagasikara)', 'mg', '261'], ['Malawi', 'mw', '265'], ['Malaysia', 'my', '60'], ['Maldives', 'mv', '960'], ['Mali', 'ml', '223'], ['Malta', 'mt', '356'], ['Marshall Islands', 'mh', '692'], ['Martinique', 'mq', '596'], ['Mauritania (‫موريتانيا‬‎)', 'mr', '222'], ['Mauritius (Moris)', 'mu', '230'], ['Mayotte', 'yt', '262', 1, ['269', '639']], ['Mexico (México)', 'mx', '52'], ['Micronesia', 'fm', '691'], ['Moldova (Republica Moldova)', 'md', '373'], ['Monaco', 'mc', '377'], ['Mongolia (Монгол)', 'mn', '976'], ['Montenegro (Crna Gora)', 'me', '382'], ['Montserrat', 'ms', '1', 16, ['664']], ['Morocco (‫المغرب‬‎)', 'ma', '212', 0], ['Mozambique (Moçambique)', 'mz', '258'], ['Myanmar (Burma) (မြန်မာ)', 'mm', '95'], ['Namibia (Namibië)', 'na', '264'], ['Nauru', 'nr', '674'], ['Nepal (नेपाल)', 'np', '977'], ['Netherlands (Nederland)', 'nl', '31'], ['New Caledonia (Nouvelle-Calédonie)', 'nc', '687'], ['New Zealand', 'nz', '64'], ['Nicaragua', 'ni', '505'], ['Niger (Nijar)', 'ne', '227'], ['Nigeria', 'ng', '234'], ['Niue', 'nu', '683'], ['Norfolk Island', 'nf', '672'], ['North Korea (조선 민주주의 인민 공화국)', 'kp', '850'], ['North Macedonia (Северна Македонија)', 'mk', '389'], ['Northern Mariana Islands', 'mp', '1', 17, ['670']], ['Norway (Norge)', 'no', '47', 0], ['Oman (‫عُمان‬‎)', 'om', '968'], ['Pakistan (‫پاکستان‬‎)', 'pk', '92'], ['Palau', 'pw', '680'], ['Palestine (‫فلسطين‬‎)', 'ps', '970'], ['Panama (Panamá)', 'pa', '507'], ['Papua New Guinea', 'pg', '675'], ['Paraguay', 'py', '595'], ['Peru (Perú)', 'pe', '51'], ['Philippines', 'ph', '63'], ['Poland (Polska)', 'pl', '48'], ['Portugal', 'pt', '351'], ['Puerto Rico', 'pr', '1', 3, ['787', '939']], ['Qatar (‫قطر‬‎)', 'qa', '974'], ['Réunion (La Réunion)', 're', '262', 0], ['Romania (România)', 'ro', '40'], ['Russia (Россия)', 'ru', '7', 0], ['Rwanda', 'rw', '250'], ['Saint Barthélemy', 'bl', '590', 1], ['Saint Helena', 'sh', '290'], ['Saint Kitts and Nevis', 'kn', '1', 18, ['869']], ['Saint Lucia', 'lc', '1', 19, ['758']], ['Saint Martin (Saint-Martin (partie française))', 'mf', '590', 2], ['Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)', 'pm', '508'], ['Saint Vincent and the Grenadines', 'vc', '1', 20, ['784']], ['Samoa', 'ws', '685'], ['San Marino', 'sm', '378'], ['São Tomé and Príncipe (São Tomé e Príncipe)', 'st', '239'], ['Saudi Arabia (‫المملكة العربية السعودية‬‎)', 'sa', '966'], ['Senegal (Sénégal)', 'sn', '221'], ['Serbia (Србија)', 'rs', '381'], ['Seychelles', 'sc', '248'], ['Sierra Leone', 'sl', '232'], ['Singapore', 'sg', '65'], ['Sint Maarten', 'sx', '1', 21, ['721']], ['Slovakia (Slovensko)', 'sk', '421'], ['Slovenia (Slovenija)', 'si', '386'], ['Solomon Islands', 'sb', '677'], ['Somalia (Soomaaliya)', 'so', '252'], ['South Africa', 'za', '27'], ['South Korea (대한민국)', 'kr', '82'], ['South Sudan (‫جنوب السودان‬‎)', 'ss', '211'], ['Spain (España)', 'es', '34'], ['Sri Lanka (ශ්‍රී ලංකාව)', 'lk', '94'], ['Sudan (‫السودان‬‎)', 'sd', '249'], ['Suriname', 'sr', '597'], ['Svalbard and Jan Mayen', 'sj', '47', 1, ['79']], ['Sweden (Sverige)', 'se', '46'], ['Switzerland (Schweiz)', 'ch', '41'], ['Syria (‫سوريا‬‎)', 'sy', '963'], ['Taiwan (台灣)', 'tw', '886'], ['Tajikistan', 'tj', '992'], ['Tanzania', 'tz', '255'], ['Thailand (ไทย)', 'th', '66'], ['Timor-Leste', 'tl', '670'], ['Togo', 'tg', '228'], ['Tokelau', 'tk', '690'], ['Tonga', 'to', '676'], ['Trinidad and Tobago', 'tt', '1', 22, ['868']], ['Tunisia (‫تونس‬‎)', 'tn', '216'], ['Turkey (Türkiye)', 'tr', '90'], ['Turkmenistan', 'tm', '993'], ['Turks and Caicos Islands', 'tc', '1', 23, ['649']], ['Tuvalu', 'tv', '688'], ['U.S. Virgin Islands', 'vi', '1', 24, ['340']], ['Uganda', 'ug', '256'], ['Ukraine (Україна)', 'ua', '380'], ['United Arab Emirates (‫الإمارات العربية المتحدة‬‎)', 'ae', '971'], ['United Kingdom', 'gb', '44', 0], ['United States', 'us', '1', 0], ['Uruguay', 'uy', '598'], ['Uzbekistan (Oʻzbekiston)', 'uz', '998'], ['Vanuatu', 'vu', '678'], ['Vatican City (Città del Vaticano)', 'va', '39', 1, ['06698']], ['Venezuela', 've', '58'], ['Vietnam (Việt Nam)', 'vn', '84'], ['Wallis and Futuna (Wallis-et-Futuna)', 'wf', '681'], ['Western Sahara (‫الصحراء الغربية‬‎)', 'eh', '212', 1, ['5288', '5289']], ['Yemen (‫اليمن‬‎)', 'ye', '967'], ['Zambia', 'zm', '260'], ['Zimbabwe', 'zw', '263'], ['Åland Islands', 'ax', '358', 1, ['18']]];
6986
7185
  /* harmony default export */ var all_countries = (allCountries.map(function (_ref) {
6987
- var _ref2 = _slicedToArray(_ref, 3),
7186
+ var _ref2 = _slicedToArray(_ref, 5),
6988
7187
  name = _ref2[0],
6989
7188
  iso2 = _ref2[1],
6990
- dialCode = _ref2[2];
7189
+ dialCode = _ref2[2],
7190
+ _ref2$ = _ref2[3],
7191
+ priority = _ref2$ === void 0 ? 0 : _ref2$,
7192
+ _ref2$2 = _ref2[4],
7193
+ areaCodes = _ref2$2 === void 0 ? null : _ref2$2;
6991
7194
 
6992
7195
  return {
6993
7196
  name: name,
6994
7197
  iso2: iso2.toUpperCase(),
6995
- dialCode: dialCode
7198
+ dialCode: dialCode,
7199
+ priority: priority,
7200
+ areaCodes: areaCodes
6996
7201
  };
6997
7202
  }));
6998
7203
  ;// CONCATENATED MODULE: ./src/utils.js
@@ -7279,7 +7484,7 @@ var defaultOptions = [].concat(allProps).reduce(function (prv, crr) {
7279
7484
  /* harmony default export */ var utils = ({
7280
7485
  options: _objectSpread2({}, defaultOptions)
7281
7486
  });
7282
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/vue-tel-input.vue?vue&type=template&id=143e10df&
7487
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/vue-tel-input.vue?vue&type=template&id=2da290d5&
7283
7488
 
7284
7489
 
7285
7490
 
@@ -7538,7 +7743,7 @@ var render = function render() {
7538
7743
 
7539
7744
  var staticRenderFns = [];
7540
7745
 
7541
- ;// CONCATENATED MODULE: ./src/components/vue-tel-input.vue?vue&type=template&id=143e10df&
7746
+ ;// CONCATENATED MODULE: ./src/components/vue-tel-input.vue?vue&type=template&id=2da290d5&
7542
7747
 
7543
7748
  ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
7544
7749
 
@@ -7570,6 +7775,8 @@ function _nonIterableSpread() {
7570
7775
  function _toConsumableArray(arr) {
7571
7776
  return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
7572
7777
  }
7778
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
7779
+ var es_string_replace = __webpack_require__(5306);
7573
7780
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.trim.js
7574
7781
  var es_string_trim = __webpack_require__(3210);
7575
7782
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
@@ -10681,6 +10888,7 @@ var _excluded = ["metadata"];
10681
10888
 
10682
10889
 
10683
10890
 
10891
+
10684
10892
 
10685
10893
 
10686
10894
  function getDefault(key) {
@@ -10865,8 +11073,6 @@ function getDefault(key) {
10865
11073
  return this.allCountries;
10866
11074
  },
10867
11075
  sortedCountries: function sortedCountries() {
10868
- var _this2 = this;
10869
-
10870
11076
  // Sort the list countries: from preferred countries to all countries
10871
11077
  var preferredCountries = this.getCountries(this.preferredCountries).map(function (country) {
10872
11078
  return _objectSpread2(_objectSpread2({}, country), {}, {
@@ -10879,8 +11085,10 @@ function getDefault(key) {
10879
11085
  return countriesList;
10880
11086
  }
10881
11087
 
11088
+ var userInput = this.searchQuery;
11089
+ var cleanInput = userInput.replace(/[~`!@#$%^&*()+={}\[\];:\'\"<>.,\/\\\?-_]|^0{2,}/g, '');
10882
11090
  return countriesList.filter(function (c) {
10883
- return new RegExp(_this2.searchQuery, 'i').test(c.name) || new RegExp(_this2.searchQuery, 'i').test(c.iso2) || new RegExp(_this2.searchQuery, 'i').test(c.dialCode);
11091
+ return new RegExp(cleanInput, 'i').test(c.name) || new RegExp(cleanInput, 'i').test(c.iso2) || new RegExp(cleanInput, 'i').test(c.dialCode);
10884
11092
  });
10885
11093
  },
10886
11094
  phoneObject: function phoneObject() {
@@ -10957,7 +11165,7 @@ function getDefault(key) {
10957
11165
  this.$emit('validate', this.phoneObject);
10958
11166
  },
10959
11167
  'phoneObject.formatted': function phoneObjectFormatted(value) {
10960
- var _this3 = this;
11168
+ var _this2 = this;
10961
11169
 
10962
11170
  if (!this.autoFormat || this.customValidate) {
10963
11171
  return;
@@ -10966,8 +11174,8 @@ function getDefault(key) {
10966
11174
  this.emitInput(value);
10967
11175
  this.$nextTick(function () {
10968
11176
  // In case `v-model` is not set, we need to update the `phone` to be new formatted value
10969
- if (value && !_this3.value) {
10970
- _this3.phone = value;
11177
+ if (value && !_this2.value) {
11178
+ _this2.phone = value;
10971
11179
  }
10972
11180
  });
10973
11181
  },
@@ -10978,13 +11186,13 @@ function getDefault(key) {
10978
11186
  this.resetPlaceholder();
10979
11187
  },
10980
11188
  value: function value(_value, oldValue) {
10981
- var _this4 = this;
11189
+ var _this3 = this;
10982
11190
 
10983
11191
  if (!this.testCharacters()) {
10984
11192
  this.$nextTick(function () {
10985
- _this4.phone = oldValue;
11193
+ _this3.phone = oldValue;
10986
11194
 
10987
- _this4.onInput();
11195
+ _this3.onInput();
10988
11196
  });
10989
11197
  } else {
10990
11198
  this.phone = _value;
@@ -11001,7 +11209,7 @@ function getDefault(key) {
11001
11209
  }
11002
11210
  },
11003
11211
  mounted: function mounted() {
11004
- var _this5 = this;
11212
+ var _this4 = this;
11005
11213
 
11006
11214
  if (this.value) {
11007
11215
  this.phone = this.value.trim();
@@ -11009,15 +11217,15 @@ function getDefault(key) {
11009
11217
 
11010
11218
  this.cleanInvalidCharacters();
11011
11219
  this.initializeCountry().then(function () {
11012
- var _this5$inputOptions;
11220
+ var _this4$inputOptions;
11013
11221
 
11014
- if (!_this5.phone && (_this5$inputOptions = _this5.inputOptions) !== null && _this5$inputOptions !== void 0 && _this5$inputOptions.showDialCode && _this5.activeCountryCode) {
11015
- _this5.phone = "+".concat(_this5.activeCountryCode);
11222
+ if (!_this4.phone && (_this4$inputOptions = _this4.inputOptions) !== null && _this4$inputOptions !== void 0 && _this4$inputOptions.showDialCode && _this4.activeCountryCode) {
11223
+ _this4.phone = "+".concat(_this4.activeCountryCode);
11016
11224
  }
11017
11225
 
11018
- _this5.$emit('validate', _this5.phoneObject);
11226
+ _this4.$emit('validate', _this4.phoneObject);
11019
11227
  }).catch(console.error).then(function () {
11020
- _this5.finishMounted = true;
11228
+ _this4.finishMounted = true;
11021
11229
  });
11022
11230
  },
11023
11231
  methods: {
@@ -11036,15 +11244,15 @@ function getDefault(key) {
11036
11244
  // .catch(console.error);
11037
11245
  },
11038
11246
  initializeCountry: function initializeCountry() {
11039
- var _this6 = this;
11247
+ var _this5 = this;
11040
11248
 
11041
11249
  return new Promise(function (resolve) {
11042
- var _this6$phone;
11250
+ var _this5$phone;
11043
11251
 
11044
11252
  /**
11045
11253
  * 1. If the phone included prefix (i.e. +12), try to get the country and set it
11046
11254
  */
11047
- if (((_this6$phone = _this6.phone) === null || _this6$phone === void 0 ? void 0 : _this6$phone[0]) === '+') {
11255
+ if (((_this5$phone = _this5.phone) === null || _this5$phone === void 0 ? void 0 : _this5$phone[0]) === '+') {
11048
11256
  resolve();
11049
11257
  return;
11050
11258
  }
@@ -11053,19 +11261,19 @@ function getDefault(key) {
11053
11261
  */
11054
11262
 
11055
11263
 
11056
- if (_this6.defaultCountry) {
11057
- if (typeof _this6.defaultCountry === 'string') {
11058
- _this6.choose(_this6.defaultCountry);
11264
+ if (_this5.defaultCountry) {
11265
+ if (typeof _this5.defaultCountry === 'string') {
11266
+ _this5.choose(_this5.defaultCountry);
11059
11267
 
11060
11268
  resolve();
11061
11269
  return;
11062
11270
  }
11063
11271
 
11064
- if (typeof _this6.defaultCountry === 'number') {
11065
- var country = _this6.findCountryByDialCode(_this6.defaultCountry);
11272
+ if (typeof _this5.defaultCountry === 'number') {
11273
+ var country = _this5.findCountryByDialCode(_this5.defaultCountry);
11066
11274
 
11067
11275
  if (country) {
11068
- _this6.choose(country.iso2);
11276
+ _this5.choose(country.iso2);
11069
11277
 
11070
11278
  resolve();
11071
11279
  return;
@@ -11073,21 +11281,21 @@ function getDefault(key) {
11073
11281
  }
11074
11282
  }
11075
11283
 
11076
- var fallbackCountry = _this6.preferredCountries[0] || _this6.filteredCountries[0];
11284
+ var fallbackCountry = _this5.preferredCountries[0] || _this5.filteredCountries[0];
11077
11285
  /**
11078
11286
  * 3. Check if fetching country based on user's IP is allowed, set it as the default country
11079
11287
  */
11080
11288
 
11081
- if (_this6.autoDefaultCountry) {
11289
+ if (_this5.autoDefaultCountry) {
11082
11290
  getCountry().then(function (res) {
11083
- _this6.choose(res || _this6.activeCountryCode);
11291
+ _this5.choose(res || _this5.activeCountryCode);
11084
11292
  }).catch(function (error) {
11085
11293
  console.warn(error);
11086
11294
  /**
11087
11295
  * 4. Use the first country from preferred list (if available) or all countries list
11088
11296
  */
11089
11297
 
11090
- _this6.choose(fallbackCountry);
11298
+ _this5.choose(fallbackCountry);
11091
11299
  }).then(function () {
11092
11300
  resolve();
11093
11301
  });
@@ -11095,7 +11303,7 @@ function getDefault(key) {
11095
11303
  /**
11096
11304
  * 4. Use the first country from preferred list (if available) or all countries list
11097
11305
  */
11098
- _this6.choose(fallbackCountry);
11306
+ _this5.choose(fallbackCountry);
11099
11307
 
11100
11308
  resolve();
11101
11309
  }
@@ -11106,11 +11314,11 @@ function getDefault(key) {
11106
11314
  * Get the list of countries from the list of iso2 code
11107
11315
  */
11108
11316
  getCountries: function getCountries() {
11109
- var _this7 = this;
11317
+ var _this6 = this;
11110
11318
 
11111
11319
  var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
11112
11320
  return list.map(function (countryCode) {
11113
- return _this7.findCountry(countryCode);
11321
+ return _this6.findCountry(countryCode);
11114
11322
  }).filter(Boolean);
11115
11323
  },
11116
11324
  findCountry: function findCountry() {
@@ -11243,7 +11451,7 @@ function getDefault(key) {
11243
11451
  this.open = false;
11244
11452
  },
11245
11453
  keyboardNav: function keyboardNav(e) {
11246
- var _this8 = this;
11454
+ var _this7 = this;
11247
11455
 
11248
11456
  if (e.keyCode === 40) {
11249
11457
  // down arrow
@@ -11292,11 +11500,11 @@ function getDefault(key) {
11292
11500
  this.typeToFindInput += e.key;
11293
11501
  clearTimeout(this.typeToFindTimer);
11294
11502
  this.typeToFindTimer = setTimeout(function () {
11295
- _this8.typeToFindInput = '';
11503
+ _this7.typeToFindInput = '';
11296
11504
  }, 700); // don't include preferred countries so we jump to the right place in the alphabet
11297
11505
 
11298
11506
  var typedCountryI = this.sortedCountries.slice(this.preferredCountries.length).findIndex(function (c) {
11299
- return c.name.toLowerCase().startsWith(_this8.typeToFindInput);
11507
+ return c.name.toLowerCase().startsWith(_this7.typeToFindInput);
11300
11508
  });
11301
11509
 
11302
11510
  if (typedCountryI >= 0) {