intl-tel-input 19.2.17 → 19.2.19

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.
@@ -24291,45 +24291,45 @@ var import_client = __toESM(require_client());
24291
24291
  var import_react = __toESM(require_react());
24292
24292
  var import_prop_types = __toESM(require_prop_types());
24293
24293
  var Z = Object.create;
24294
- var j = Object.defineProperty;
24294
+ var G = Object.defineProperty;
24295
24295
  var $ = Object.getOwnPropertyDescriptor;
24296
24296
  var Q = Object.getOwnPropertyNames;
24297
24297
  var X = Object.getPrototypeOf;
24298
24298
  var tt = Object.prototype.hasOwnProperty;
24299
- var et = (p, c) => () => (c || p((c = { exports: {} }).exports, c), c.exports);
24300
- var it = (p, c, g, m) => {
24301
- if (c && typeof c == "object" || typeof c == "function")
24302
- for (let _ of Q(c))
24303
- !tt.call(p, _) && _ !== g && j(p, _, { get: () => c[_], enumerable: !(m = $(c, _)) || m.enumerable });
24304
- return p;
24299
+ var et = (c, p) => () => (p || c((p = { exports: {} }).exports, p), p.exports);
24300
+ var it = (c, p, y, m) => {
24301
+ if (p && typeof p == "object" || typeof p == "function")
24302
+ for (let C of Q(p))
24303
+ !tt.call(c, C) && C !== y && G(c, C, { get: () => p[C], enumerable: !(m = $(p, C)) || m.enumerable });
24304
+ return c;
24305
24305
  };
24306
- var nt = (p, c, g) => (g = p != null ? Z(X(p)) : {}, it(c || !p || !p.__esModule ? j(g, "default", { value: p, enumerable: true }) : g, p));
24307
- var G = et((at, N) => {
24308
- (function(p) {
24309
- typeof N == "object" && N.exports ? N.exports = p() : window.intlTelInput = p();
24310
- })(function(p) {
24306
+ var nt = (c, p, y) => (y = c != null ? Z(X(c)) : {}, it(p || !c || !c.__esModule ? G(y, "default", { value: c, enumerable: true }) : y, c));
24307
+ var R = et((at, T) => {
24308
+ (function(c) {
24309
+ typeof T == "object" && T.exports ? T.exports = c() : window.intlTelInput = c();
24310
+ })(function(c) {
24311
24311
  "use strict";
24312
24312
  return function() {
24313
- for (var c = [["Afghanistan", "af", "93"], ["Albania", "al", "355"], ["Algeria", "dz", "213"], ["American Samoa", "as", "1", 5, ["684"]], ["Andorra", "ad", "376"], ["Angola", "ao", "244"], ["Anguilla", "ai", "1", 6, ["264"]], ["Antigua & Barbuda", "ag", "1", 7, ["268"]], ["Argentina", "ar", "54"], ["Armenia", "am", "374"], ["Aruba", "aw", "297"], ["Ascension Island", "ac", "247"], ["Australia", "au", "61", 0], ["Austria", "at", "43"], ["Azerbaijan", "az", "994"], ["Bahamas", "bs", "1", 8, ["242"]], ["Bahrain", "bh", "973"], ["Bangladesh", "bd", "880"], ["Barbados", "bb", "1", 9, ["246"]], ["Belarus", "by", "375"], ["Belgium", "be", "32"], ["Belize", "bz", "501"], ["Benin", "bj", "229"], ["Bermuda", "bm", "1", 10, ["441"]], ["Bhutan", "bt", "975"], ["Bolivia", "bo", "591"], ["Bosnia & Herzegovina", "ba", "387"], ["Botswana", "bw", "267"], ["Brazil", "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", "bi", "257"], ["Cambodia", "kh", "855"], ["Cameroon", "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", "cv", "238"], ["Caribbean Netherlands", "bq", "599", 1, ["3", "4", "7"]], ["Cayman Islands", "ky", "1", 12, ["345"]], ["Central African Republic", "cf", "236"], ["Chad", "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 - Brazzaville", "cg", "242"], ["Congo - Kinshasa", "cd", "243"], ["Cook Islands", "ck", "682"], ["Costa Rica", "cr", "506"], ["C\xF4te d\u2019Ivoire", "ci", "225"], ["Croatia", "hr", "385"], ["Cuba", "cu", "53"], ["Cura\xE7ao", "cw", "599", 0], ["Cyprus", "cy", "357"], ["Czech Republic", "cz", "420"], ["Denmark", "dk", "45"], ["Djibouti", "dj", "253"], ["Dominica", "dm", "1", 13, ["767"]], ["Dominican Republic", "do", "1", 2, ["809", "829", "849"]], ["Ecuador", "ec", "593"], ["Egypt", "eg", "20"], ["El Salvador", "sv", "503"], ["Equatorial Guinea", "gq", "240"], ["Eritrea", "er", "291"], ["Estonia", "ee", "372"], ["Eswatini", "sz", "268"], ["Ethiopia", "et", "251"], ["Falkland Islands", "fk", "500"], ["Faroe Islands", "fo", "298"], ["Fiji", "fj", "679"], ["Finland", "fi", "358", 0], ["France", "fr", "33"], ["French Guiana", "gf", "594"], ["French Polynesia", "pf", "689"], ["Gabon", "ga", "241"], ["Gambia", "gm", "220"], ["Georgia", "ge", "995"], ["Germany", "de", "49"], ["Ghana", "gh", "233"], ["Gibraltar", "gi", "350"], ["Greece", "gr", "30"], ["Greenland", "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", "gn", "224"], ["Guinea-Bissau", "gw", "245"], ["Guyana", "gy", "592"], ["Haiti", "ht", "509"], ["Honduras", "hn", "504"], ["Hong Kong", "hk", "852"], ["Hungary", "hu", "36"], ["Iceland", "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", "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", "lv", "371"], ["Lebanon", "lb", "961"], ["Lesotho", "ls", "266"], ["Liberia", "lr", "231"], ["Libya", "ly", "218"], ["Liechtenstein", "li", "423"], ["Lithuania", "lt", "370"], ["Luxembourg", "lu", "352"], ["Macau", "mo", "853"], ["Madagascar", "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", "mu", "230"], ["Mayotte", "yt", "262", 1, ["269", "639"]], ["Mexico", "mx", "52"], ["Micronesia", "fm", "691"], ["Moldova", "md", "373"], ["Monaco", "mc", "377"], ["Mongolia", "mn", "976"], ["Montenegro", "me", "382"], ["Montserrat", "ms", "1", 16, ["664"]], ["Morocco", "ma", "212", 0], ["Mozambique", "mz", "258"], ["Myanmar (Burma)", "mm", "95"], ["Namibia", "na", "264"], ["Nauru", "nr", "674"], ["Nepal", "np", "977"], ["Netherlands", "nl", "31"], ["New Caledonia", "nc", "687"], ["New Zealand", "nz", "64"], ["Nicaragua", "ni", "505"], ["Niger", "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", "no", "47", 0], ["Oman", "om", "968"], ["Pakistan", "pk", "92"], ["Palau", "pw", "680"], ["Palestine", "ps", "970"], ["Panama", "pa", "507"], ["Papua New Guinea", "pg", "675"], ["Paraguay", "py", "595"], ["Peru", "pe", "51"], ["Philippines", "ph", "63"], ["Poland", "pl", "48"], ["Portugal", "pt", "351"], ["Puerto Rico", "pr", "1", 3, ["787", "939"]], ["Qatar", "qa", "974"], ["R\xE9union", "re", "262", 0], ["Romania", "ro", "40"], ["Russia", "ru", "7", 0], ["Rwanda", "rw", "250"], ["Samoa", "ws", "685"], ["San Marino", "sm", "378"], ["S\xE3o Tom\xE9 & Pr\xEDncipe", "st", "239"], ["Saudi Arabia", "sa", "966"], ["Senegal", "sn", "221"], ["Serbia", "rs", "381"], ["Seychelles", "sc", "248"], ["Sierra Leone", "sl", "232"], ["Singapore", "sg", "65"], ["Sint Maarten", "sx", "1", 21, ["721"]], ["Slovakia", "sk", "421"], ["Slovenia", "si", "386"], ["Solomon Islands", "sb", "677"], ["Somalia", "so", "252"], ["South Africa", "za", "27"], ["South Korea", "kr", "82"], ["South Sudan", "ss", "211"], ["Spain", "es", "34"], ["Sri Lanka", "lk", "94"], ["St Barth\xE9lemy", "bl", "590", 1], ["St Helena", "sh", "290"], ["St Kitts & Nevis", "kn", "1", 18, ["869"]], ["St Lucia", "lc", "1", 19, ["758"]], ["St Martin", "mf", "590", 2], ["St Pierre & Miquelon", "pm", "508"], ["St Vincent & Grenadines", "vc", "1", 20, ["784"]], ["Sudan", "sd", "249"], ["Suriname", "sr", "597"], ["Svalbard & Jan Mayen", "sj", "47", 1, ["79"]], ["Sweden", "se", "46"], ["Switzerland", "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 & Tobago", "tt", "1", 22, ["868"]], ["Tunisia", "tn", "216"], ["Turkey", "tr", "90"], ["Turkmenistan", "tm", "993"], ["Turks & Caicos Islands", "tc", "1", 23, ["649"]], ["Tuvalu", "tv", "688"], ["Uganda", "ug", "256"], ["Ukraine", "ua", "380"], ["United Arab Emirates", "ae", "971"], ["United Kingdom", "gb", "44", 0], ["United States", "us", "1", 0], ["Uruguay", "uy", "598"], ["US Virgin Islands", "vi", "1", 24, ["340"]], ["Uzbekistan", "uz", "998"], ["Vanuatu", "vu", "678"], ["Vatican City", "va", "39", 1, ["06698"]], ["Venezuela", "ve", "58"], ["Vietnam", "vn", "84"], ["Wallis & Futuna", "wf", "681"], ["Western Sahara", "eh", "212", 1, ["5288", "5289"]], ["Yemen", "ye", "967"], ["Zambia", "zm", "260"], ["Zimbabwe", "zw", "263"], ["\xC5land Islands", "ax", "358", 1, ["18"]]], g = 0; g < c.length; g++) {
24314
- var m = c[g];
24315
- c[g] = { name: m[0], iso2: m[1], dialCode: m[2], priority: m[3] || 0, areaCodes: m[4] || null, nodeById: {} };
24313
+ for (var p = [["Afghanistan", "af", "93"], ["Albania", "al", "355"], ["Algeria", "dz", "213"], ["American Samoa", "as", "1", 5, ["684"]], ["Andorra", "ad", "376"], ["Angola", "ao", "244"], ["Anguilla", "ai", "1", 6, ["264"]], ["Antigua & Barbuda", "ag", "1", 7, ["268"]], ["Argentina", "ar", "54"], ["Armenia", "am", "374"], ["Aruba", "aw", "297"], ["Ascension Island", "ac", "247"], ["Australia", "au", "61", 0], ["Austria", "at", "43"], ["Azerbaijan", "az", "994"], ["Bahamas", "bs", "1", 8, ["242"]], ["Bahrain", "bh", "973"], ["Bangladesh", "bd", "880"], ["Barbados", "bb", "1", 9, ["246"]], ["Belarus", "by", "375"], ["Belgium", "be", "32"], ["Belize", "bz", "501"], ["Benin", "bj", "229"], ["Bermuda", "bm", "1", 10, ["441"]], ["Bhutan", "bt", "975"], ["Bolivia", "bo", "591"], ["Bosnia & Herzegovina", "ba", "387"], ["Botswana", "bw", "267"], ["Brazil", "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", "bi", "257"], ["Cambodia", "kh", "855"], ["Cameroon", "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", "cv", "238"], ["Caribbean Netherlands", "bq", "599", 1, ["3", "4", "7"]], ["Cayman Islands", "ky", "1", 12, ["345"]], ["Central African Republic", "cf", "236"], ["Chad", "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 - Brazzaville", "cg", "242"], ["Congo - Kinshasa", "cd", "243"], ["Cook Islands", "ck", "682"], ["Costa Rica", "cr", "506"], ["C\xF4te d\u2019Ivoire", "ci", "225"], ["Croatia", "hr", "385"], ["Cuba", "cu", "53"], ["Cura\xE7ao", "cw", "599", 0], ["Cyprus", "cy", "357"], ["Czech Republic", "cz", "420"], ["Denmark", "dk", "45"], ["Djibouti", "dj", "253"], ["Dominica", "dm", "1", 13, ["767"]], ["Dominican Republic", "do", "1", 2, ["809", "829", "849"]], ["Ecuador", "ec", "593"], ["Egypt", "eg", "20"], ["El Salvador", "sv", "503"], ["Equatorial Guinea", "gq", "240"], ["Eritrea", "er", "291"], ["Estonia", "ee", "372"], ["Eswatini", "sz", "268"], ["Ethiopia", "et", "251"], ["Falkland Islands", "fk", "500"], ["Faroe Islands", "fo", "298"], ["Fiji", "fj", "679"], ["Finland", "fi", "358", 0], ["France", "fr", "33"], ["French Guiana", "gf", "594"], ["French Polynesia", "pf", "689"], ["Gabon", "ga", "241"], ["Gambia", "gm", "220"], ["Georgia", "ge", "995"], ["Germany", "de", "49"], ["Ghana", "gh", "233"], ["Gibraltar", "gi", "350"], ["Greece", "gr", "30"], ["Greenland", "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", "gn", "224"], ["Guinea-Bissau", "gw", "245"], ["Guyana", "gy", "592"], ["Haiti", "ht", "509"], ["Honduras", "hn", "504"], ["Hong Kong", "hk", "852"], ["Hungary", "hu", "36"], ["Iceland", "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", "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", "lv", "371"], ["Lebanon", "lb", "961"], ["Lesotho", "ls", "266"], ["Liberia", "lr", "231"], ["Libya", "ly", "218"], ["Liechtenstein", "li", "423"], ["Lithuania", "lt", "370"], ["Luxembourg", "lu", "352"], ["Macau", "mo", "853"], ["Madagascar", "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", "mu", "230"], ["Mayotte", "yt", "262", 1, ["269", "639"]], ["Mexico", "mx", "52"], ["Micronesia", "fm", "691"], ["Moldova", "md", "373"], ["Monaco", "mc", "377"], ["Mongolia", "mn", "976"], ["Montenegro", "me", "382"], ["Montserrat", "ms", "1", 16, ["664"]], ["Morocco", "ma", "212", 0], ["Mozambique", "mz", "258"], ["Myanmar (Burma)", "mm", "95"], ["Namibia", "na", "264"], ["Nauru", "nr", "674"], ["Nepal", "np", "977"], ["Netherlands", "nl", "31"], ["New Caledonia", "nc", "687"], ["New Zealand", "nz", "64"], ["Nicaragua", "ni", "505"], ["Niger", "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", "no", "47", 0], ["Oman", "om", "968"], ["Pakistan", "pk", "92"], ["Palau", "pw", "680"], ["Palestine", "ps", "970"], ["Panama", "pa", "507"], ["Papua New Guinea", "pg", "675"], ["Paraguay", "py", "595"], ["Peru", "pe", "51"], ["Philippines", "ph", "63"], ["Poland", "pl", "48"], ["Portugal", "pt", "351"], ["Puerto Rico", "pr", "1", 3, ["787", "939"]], ["Qatar", "qa", "974"], ["R\xE9union", "re", "262", 0], ["Romania", "ro", "40"], ["Russia", "ru", "7", 0], ["Rwanda", "rw", "250"], ["Samoa", "ws", "685"], ["San Marino", "sm", "378"], ["S\xE3o Tom\xE9 & Pr\xEDncipe", "st", "239"], ["Saudi Arabia", "sa", "966"], ["Senegal", "sn", "221"], ["Serbia", "rs", "381"], ["Seychelles", "sc", "248"], ["Sierra Leone", "sl", "232"], ["Singapore", "sg", "65"], ["Sint Maarten", "sx", "1", 21, ["721"]], ["Slovakia", "sk", "421"], ["Slovenia", "si", "386"], ["Solomon Islands", "sb", "677"], ["Somalia", "so", "252"], ["South Africa", "za", "27"], ["South Korea", "kr", "82"], ["South Sudan", "ss", "211"], ["Spain", "es", "34"], ["Sri Lanka", "lk", "94"], ["St Barth\xE9lemy", "bl", "590", 1], ["St Helena", "sh", "290"], ["St Kitts & Nevis", "kn", "1", 18, ["869"]], ["St Lucia", "lc", "1", 19, ["758"]], ["St Martin", "mf", "590", 2], ["St Pierre & Miquelon", "pm", "508"], ["St Vincent & Grenadines", "vc", "1", 20, ["784"]], ["Sudan", "sd", "249"], ["Suriname", "sr", "597"], ["Svalbard & Jan Mayen", "sj", "47", 1, ["79"]], ["Sweden", "se", "46"], ["Switzerland", "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 & Tobago", "tt", "1", 22, ["868"]], ["Tunisia", "tn", "216"], ["Turkey", "tr", "90"], ["Turkmenistan", "tm", "993"], ["Turks & Caicos Islands", "tc", "1", 23, ["649"]], ["Tuvalu", "tv", "688"], ["Uganda", "ug", "256"], ["Ukraine", "ua", "380"], ["United Arab Emirates", "ae", "971"], ["United Kingdom", "gb", "44", 0], ["United States", "us", "1", 0], ["Uruguay", "uy", "598"], ["US Virgin Islands", "vi", "1", 24, ["340"]], ["Uzbekistan", "uz", "998"], ["Vanuatu", "vu", "678"], ["Vatican City", "va", "39", 1, ["06698"]], ["Venezuela", "ve", "58"], ["Vietnam", "vn", "84"], ["Wallis & Futuna", "wf", "681"], ["Western Sahara", "eh", "212", 1, ["5288", "5289"]], ["Yemen", "ye", "967"], ["Zambia", "zm", "260"], ["Zimbabwe", "zw", "263"], ["\xC5land Islands", "ax", "358", 1, ["18"]]], y = 0; y < p.length; y++) {
24314
+ var m = p[y];
24315
+ p[y] = { name: m[0], iso2: m[1], dialCode: m[2], priority: m[3] || 0, areaCodes: m[4] || null, nodeById: {} };
24316
24316
  }
24317
- function _(s) {
24317
+ function C(s) {
24318
24318
  for (var n = 1; n < arguments.length; n++) {
24319
24319
  var t = arguments[n] != null ? Object(arguments[n]) : {}, e = Object.keys(t);
24320
24320
  typeof Object.getOwnPropertySymbols == "function" && e.push.apply(e, Object.getOwnPropertySymbols(t).filter(function(i) {
24321
24321
  return Object.getOwnPropertyDescriptor(t, i).enumerable;
24322
24322
  })), e.forEach(function(i) {
24323
- T(s, i, t[i]);
24323
+ N(s, i, t[i]);
24324
24324
  });
24325
24325
  }
24326
24326
  return s;
24327
24327
  }
24328
- function T(s, n, t) {
24329
- return n = k(n), n in s ? Object.defineProperty(s, n, { value: t, enumerable: true, configurable: true, writable: true }) : s[n] = t, s;
24328
+ function N(s, n, t) {
24329
+ return n = D(n), n in s ? Object.defineProperty(s, n, { value: t, enumerable: true, configurable: true, writable: true }) : s[n] = t, s;
24330
24330
  }
24331
24331
  function F(s, n) {
24332
- return C(s) || w(s, n) || x(s, n) || P();
24332
+ return _(s) || w(s, n) || x(s, n) || P();
24333
24333
  }
24334
24334
  function P() {
24335
24335
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
@@ -24338,15 +24338,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24338
24338
  function x(s, n) {
24339
24339
  if (s) {
24340
24340
  if (typeof s == "string")
24341
- return S(s, n);
24341
+ return k(s, n);
24342
24342
  var t = Object.prototype.toString.call(s).slice(8, -1);
24343
24343
  if (t === "Object" && s.constructor && (t = s.constructor.name), t === "Map" || t === "Set")
24344
24344
  return Array.from(s);
24345
24345
  if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
24346
- return S(s, n);
24346
+ return k(s, n);
24347
24347
  }
24348
24348
  }
24349
- function S(s, n) {
24349
+ function k(s, n) {
24350
24350
  (n == null || n > s.length) && (n = s.length);
24351
24351
  for (var t = 0, e = new Array(n); t < n; t++)
24352
24352
  e[t] = s[t];
@@ -24378,7 +24378,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24378
24378
  return a;
24379
24379
  }
24380
24380
  }
24381
- function C(s) {
24381
+ function _(s) {
24382
24382
  if (Array.isArray(s))
24383
24383
  return s;
24384
24384
  }
@@ -24389,21 +24389,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24389
24389
  function b(s, n) {
24390
24390
  for (var t = 0; t < n.length; t++) {
24391
24391
  var e = n[t];
24392
- e.enumerable = e.enumerable || false, e.configurable = true, "value" in e && (e.writable = true), Object.defineProperty(s, k(e.key), e);
24392
+ e.enumerable = e.enumerable || false, e.configurable = true, "value" in e && (e.writable = true), Object.defineProperty(s, D(e.key), e);
24393
24393
  }
24394
24394
  }
24395
24395
  function O(s, n, t) {
24396
24396
  return n && b(s.prototype, n), t && b(s, t), Object.defineProperty(s, "prototype", { writable: false }), s;
24397
24397
  }
24398
- function k(s) {
24399
- var n = z(s, "string");
24398
+ function D(s) {
24399
+ var n = V(s, "string");
24400
24400
  return typeof n == "symbol" ? n : String(n);
24401
24401
  }
24402
- function z(s, n) {
24402
+ function V(s, n) {
24403
24403
  if (typeof s != "object" || s === null)
24404
24404
  return s;
24405
24405
  var t = s[Symbol.toPrimitive];
24406
- if (t !== p) {
24406
+ if (t !== c) {
24407
24407
  var e = t.call(s, n || "default");
24408
24408
  if (typeof e != "object")
24409
24409
  return e;
@@ -24418,15 +24418,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24418
24418
  return document.readyState === "complete";
24419
24419
  } };
24420
24420
  typeof window == "object" && (window.intlTelInputGlobals = L);
24421
- var V = 0, M = { allowDropdown: true, autoInsertDialCode: false, autoPlaceholder: "polite", countrySearch: true, containerClass: "", customPlaceholder: null, dropdownContainer: null, excludeCountries: [], fixDropdownWidth: true, formatAsYouType: true, formatOnDisplay: true, geoIpLookup: null, hiddenInput: null, i18n: {}, initialCountry: "", nationalMode: true, onlyCountries: [], placeholderNumberType: "MOBILE", preferredCountries: [], showFlags: true, showSelectedDialCode: false, useFullscreenPopup: typeof navigator < "u" && typeof window < "u" ? /Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) || window.innerWidth <= 500 : false, utilsScript: "" }, H = ["800", "822", "833", "844", "855", "866", "877", "880", "881", "882", "883", "884", "885", "886", "887", "888", "889"], D = function(n) {
24421
+ var H = 0, M = { allowDropdown: true, autoInsertDialCode: false, autoPlaceholder: "polite", countrySearch: true, containerClass: "", customPlaceholder: null, dropdownContainer: null, excludeCountries: [], fixDropdownWidth: true, formatAsYouType: true, formatOnDisplay: true, geoIpLookup: null, hiddenInput: null, i18n: {}, initialCountry: "", nationalMode: true, onlyCountries: [], placeholderNumberType: "MOBILE", preferredCountries: [], showFlags: true, showSelectedDialCode: false, useFullscreenPopup: typeof navigator < "u" && typeof window < "u" ? /Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) || window.innerWidth <= 500 : false, utilsScript: "" }, W = ["800", "822", "833", "844", "855", "866", "877", "880", "881", "882", "883", "884", "885", "886", "887", "888", "889"], S = function(n) {
24422
24422
  var t = window.intlTelInputGlobals.instances;
24423
24423
  Object.values(t).forEach(function(e) {
24424
24424
  return e[n]();
24425
24425
  });
24426
- }, W = function() {
24426
+ }, q = function() {
24427
24427
  function s(n) {
24428
- var t = arguments.length > 1 && arguments[1] !== p ? arguments[1] : {};
24429
- I(this, s), this.id = V++, this.telInput = n, this.activeItem = null, this.highlightedItem = null, this.options = Object.assign({}, M, t), this.hadInitialPlaceholder = !!n.getAttribute("placeholder");
24428
+ var t = arguments.length > 1 && arguments[1] !== c ? arguments[1] : {};
24429
+ I(this, s), this.id = H++, this.telInput = n, this.activeItem = null, this.highlightedItem = null, this.options = Object.assign({}, M, t), this.hadInitialPlaceholder = !!n.getAttribute("placeholder");
24430
24430
  }
24431
24431
  return O(s, [{ key: "_init", value: function() {
24432
24432
  var t = this;
@@ -24451,25 +24451,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24451
24451
  for (var o = 0; o < this.countryCodes[e].length; o++)
24452
24452
  if (this.countryCodes[e][o] === t)
24453
24453
  return;
24454
- var r = i !== p ? i : this.countryCodes[e].length;
24454
+ var r = i !== c ? i : this.countryCodes[e].length;
24455
24455
  this.countryCodes[e][r] = t;
24456
24456
  } }, { key: "_processAllCountries", value: function() {
24457
24457
  if (this.options.onlyCountries.length) {
24458
24458
  var t = this.options.onlyCountries.map(function(i) {
24459
24459
  return i.toLowerCase();
24460
24460
  });
24461
- this.countries = c.filter(function(i) {
24461
+ this.countries = p.filter(function(i) {
24462
24462
  return t.indexOf(i.iso2) > -1;
24463
24463
  });
24464
24464
  } else if (this.options.excludeCountries.length) {
24465
24465
  var e = this.options.excludeCountries.map(function(i) {
24466
24466
  return i.toLowerCase();
24467
24467
  });
24468
- this.countries = c.filter(function(i) {
24468
+ this.countries = p.filter(function(i) {
24469
24469
  return e.indexOf(i.iso2) === -1;
24470
24470
  });
24471
24471
  } else
24472
- this.countries = c;
24472
+ this.countries = p;
24473
24473
  } }, { key: "_translateCountryNames", value: function() {
24474
24474
  for (var t = 0; t < this.countries.length; t++) {
24475
24475
  var e = this.countries[t].iso2.toLowerCase();
@@ -24497,7 +24497,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24497
24497
  } }, { key: "_processPreferredCountries", value: function() {
24498
24498
  this.preferredCountries = [];
24499
24499
  for (var t = 0; t < this.options.preferredCountries.length; t++) {
24500
- var e = this.options.preferredCountries[t].toLowerCase(), i = this._getCountryData(e, false, true);
24500
+ var e = this.options.preferredCountries[t].toLowerCase(), i = this._getCountryData(e, true);
24501
24501
  i && this.preferredCountries.push(i);
24502
24502
  }
24503
24503
  } }, { key: "_createEl", value: function(t, e, i) {
@@ -24510,21 +24510,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24510
24510
  this.telInput.classList.add("iti__tel-input"), !this.telInput.hasAttribute("autocomplete") && !(this.telInput.form && this.telInput.form.hasAttribute("autocomplete")) && this.telInput.setAttribute("autocomplete", "off");
24511
24511
  var t = this.options, e = t.allowDropdown, i = t.showSelectedDialCode, o = t.showFlags, r = t.containerClass, a = t.hiddenInput, l = t.dropdownContainer, u = t.fixDropdownWidth, h = t.useFullscreenPopup, v = t.countrySearch, f = "iti";
24512
24512
  e && (f += " iti--allow-dropdown"), i && (f += " iti--show-selected-dial-code"), o && (f += " iti--show-flags"), r && (f += " ".concat(r)), h || (f += " iti--inline-dropdown");
24513
- var y = this._createEl("div", { class: f });
24514
- this.telInput.parentNode.insertBefore(y, this.telInput);
24515
- var E = e || o || i;
24516
- if (E && (this.flagsContainer = this._createEl("div", { class: "iti__flag-container" }, y)), y.appendChild(this.telInput), E && (this.selectedFlag = this._createEl("div", _({ class: "iti__selected-flag" }, e && { role: "combobox", "aria-haspopup": "listbox", "aria-controls": "iti-".concat(this.id, "__country-listbox"), "aria-expanded": "false", "aria-label": this.options.i18n.selectedCountryAriaLabel || "Selected country" }), this.flagsContainer)), o && (this.selectedFlagInner = this._createEl("div", { class: "iti__flag" }, this.selectedFlag)), this.selectedFlag && this.telInput.disabled && this.selectedFlag.setAttribute("aria-disabled", "true"), i && (this.selectedDialCode = this._createEl("div", { class: "iti__selected-dial-code" }, this.selectedFlag)), e) {
24513
+ var g = this._createEl("div", { class: f });
24514
+ this.telInput.parentNode.insertBefore(g, this.telInput);
24515
+ var A = e || o || i;
24516
+ if (A && (this.flagsContainer = this._createEl("div", { class: "iti__flag-container" }, g)), g.appendChild(this.telInput), A && (this.selectedFlag = this._createEl("div", C({ class: "iti__selected-flag" }, e && { role: "combobox", "aria-haspopup": "listbox", "aria-controls": "iti-".concat(this.id, "__country-listbox"), "aria-expanded": "false", "aria-label": this.options.i18n.selectedCountryAriaLabel || "Selected country" }), this.flagsContainer)), o && (this.selectedFlagInner = this._createEl("div", { class: "iti__flag" }, this.selectedFlag)), this.selectedFlag && this.telInput.disabled && this.selectedFlag.setAttribute("aria-disabled", "true"), i && (this.selectedDialCode = this._createEl("div", { class: "iti__selected-dial-code" }, this.selectedFlag)), e) {
24517
24517
  this.telInput.disabled || this.selectedFlag.setAttribute("tabindex", "0"), this.dropdownArrow = this._createEl("div", { class: "iti__arrow" }, this.selectedFlag);
24518
- var q = u ? "" : "iti--flexible-dropdown-width";
24519
- if (this.dropdownContent = this._createEl("div", { class: "iti__dropdown-content iti__hide ".concat(q) }), v && (this.searchInput = this._createEl("input", { type: "text", class: "iti__search-input", placeholder: this.options.i18n.searchPlaceholder || "Search" }, this.dropdownContent)), this.countryList = this._createEl("ul", { class: "iti__country-list", id: "iti-".concat(this.id, "__country-listbox"), role: "listbox", "aria-label": this.options.i18n.countryListAriaLabel || "List of countries" }, this.dropdownContent), this.preferredCountries.length && !v && (this._appendListItems(this.preferredCountries, "iti__preferred", true), this._createEl("li", { class: "iti__divider", "aria-hidden": "true" }, this.countryList)), this._appendListItems(this.countries, "iti__standard"), l) {
24520
- var A = "iti iti--container";
24521
- h ? A += " iti--fullscreen-popup" : A += " iti--inline-dropdown", v && (A += " iti--country-search"), this.dropdown = this._createEl("div", { class: A }), this.dropdown.appendChild(this.dropdownContent);
24518
+ var Y = u ? "" : "iti--flexible-dropdown-width";
24519
+ if (this.dropdownContent = this._createEl("div", { class: "iti__dropdown-content iti__hide ".concat(Y) }), v && (this.searchInput = this._createEl("input", { type: "text", class: "iti__search-input", placeholder: this.options.i18n.searchPlaceholder || "Search" }, this.dropdownContent)), this.countryList = this._createEl("ul", { class: "iti__country-list", id: "iti-".concat(this.id, "__country-listbox"), role: "listbox", "aria-label": this.options.i18n.countryListAriaLabel || "List of countries" }, this.dropdownContent), this.preferredCountries.length && !v && (this._appendListItems(this.preferredCountries, "iti__preferred", true), this._createEl("li", { class: "iti__divider", "aria-hidden": "true" }, this.countryList)), this._appendListItems(this.countries, "iti__standard"), l) {
24520
+ var E = "iti iti--container";
24521
+ h ? E += " iti--fullscreen-popup" : E += " iti--inline-dropdown", v && (E += " iti--country-search"), this.dropdown = this._createEl("div", { class: E }), this.dropdown.appendChild(this.dropdownContent);
24522
24522
  } else
24523
24523
  this.flagsContainer.appendChild(this.dropdownContent);
24524
24524
  }
24525
24525
  if (a) {
24526
- var Y = this.telInput.getAttribute("name"), J = a(Y);
24527
- this.hiddenInput = this._createEl("input", { type: "hidden", name: J }), y.appendChild(this.hiddenInput);
24526
+ var J = this.telInput.getAttribute("name"), j = a(J);
24527
+ this.hiddenInput = this._createEl("input", { type: "hidden", name: j }), g.appendChild(this.hiddenInput), this.hiddenInputCountry = this._createEl("input", { type: "hidden", name: "".concat(j, "_country") }), g.appendChild(this.hiddenInputCountry);
24528
24528
  }
24529
24529
  } }, { key: "_appendListItems", value: function(t, e, i) {
24530
24530
  for (var o = 0; o < t.length; o++) {
@@ -24534,20 +24534,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24534
24534
  this.options.showFlags && (u += "<div class='iti__flag-box'><div class='iti__flag iti__".concat(r.iso2, "'></div></div>")), u += "<span class='iti__country-name'>".concat(r.name, "</span>"), u += "<span class='iti__dial-code'>+".concat(r.dialCode, "</span>"), l.insertAdjacentHTML("beforeend", u);
24535
24535
  }
24536
24536
  } }, { key: "_setInitialState", value: function() {
24537
- var t = this.telInput.getAttribute("value"), e = this.telInput.value, i = t && t.charAt(0) === "+" && (!e || e.charAt(0) !== "+"), o = i ? t : e, r = this._getDialCode(o), a = this._isRegionlessNanp(o), l = this.options, u = l.initialCountry, h = l.autoInsertDialCode;
24538
- if (r && !a)
24539
- this._updateFlagFromNumber(o);
24540
- else if (u !== "auto") {
24541
- var v = u && this._getCountryData(u, false, true);
24542
- v ? this._setFlag(u.toLowerCase()) : r && a ? this._setFlag("us") : (this.defaultCountry = this.preferredCountries.length ? this.preferredCountries[0].iso2 : this.countries[0].iso2, o || this._setFlag(this.defaultCountry)), !o && h && (this.telInput.value = "+".concat(this.selectedCountryData.dialCode));
24543
- }
24544
- o && this._updateValFromNumber(o);
24537
+ var t = arguments.length > 0 && arguments[0] !== c ? arguments[0] : false, e = this.telInput.getAttribute("value"), i = this.telInput.value, o = e && e.charAt(0) === "+" && (!i || i.charAt(0) !== "+"), r = o ? e : i, a = this._getDialCode(r), l = this._isRegionlessNanp(r), u = this.options, h = u.initialCountry, v = u.autoInsertDialCode;
24538
+ if (a && !l)
24539
+ this._updateFlagFromNumber(r);
24540
+ else if (h !== "auto" || t) {
24541
+ var f = h && !!this._getCountryData(h, true);
24542
+ f ? this._setFlag(h.toLowerCase()) : a && l ? this._setFlag("us") : (this.defaultCountry = this.preferredCountries.length ? this.preferredCountries[0].iso2 : this.countries[0].iso2, r || this._setFlag(this.defaultCountry)), !r && v && (this.telInput.value = "+".concat(this.selectedCountryData.dialCode));
24543
+ }
24544
+ r && this._updateValFromNumber(r);
24545
24545
  } }, { key: "_initListeners", value: function() {
24546
24546
  this._initKeyListeners(), this.options.autoInsertDialCode && this._initBlurListeners(), this.options.allowDropdown && this._initDropdownListeners(), this.hiddenInput && this._initHiddenInputListener();
24547
24547
  } }, { key: "_initHiddenInputListener", value: function() {
24548
24548
  var t = this;
24549
24549
  this._handleHiddenInputSubmit = function() {
24550
- t.hiddenInput.value = t.getNumber();
24550
+ t.hiddenInput.value = t.getNumber(), t.hiddenInputCountry.value = t.getSelectedCountryData().iso2;
24551
24551
  }, this.telInput.form && this.telInput.form.addEventListener("submit", this._handleHiddenInputSubmit);
24552
24552
  } }, { key: "_initDropdownListeners", value: function() {
24553
24553
  var t = this;
@@ -24565,14 +24565,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24565
24565
  var t = this;
24566
24566
  this.options.utilsScript && !window.intlTelInputUtils ? window.intlTelInputGlobals.documentReady() ? window.intlTelInputGlobals.loadUtils(this.options.utilsScript) : window.addEventListener("load", function() {
24567
24567
  window.intlTelInputGlobals.loadUtils(t.options.utilsScript);
24568
- }) : this.resolveUtilsScriptPromise(), this.options.initialCountry === "auto" ? this._loadAutoCountry() : this.resolveAutoCountryPromise();
24568
+ }) : this.resolveUtilsScriptPromise(), this.options.initialCountry === "auto" && !this.selectedCountryData.iso2 ? this._loadAutoCountry() : this.resolveAutoCountryPromise();
24569
24569
  } }, { key: "_loadAutoCountry", value: function() {
24570
- window.intlTelInputGlobals.autoCountry ? this.handleAutoCountry() : window.intlTelInputGlobals.startedLoadingAutoCountry || (window.intlTelInputGlobals.startedLoadingAutoCountry = true, typeof this.options.geoIpLookup == "function" && this.options.geoIpLookup(function(t) {
24571
- window.intlTelInputGlobals.autoCountry = t.toLowerCase(), setTimeout(function() {
24572
- return D("handleAutoCountry");
24573
- });
24570
+ var t = this;
24571
+ window.intlTelInputGlobals.autoCountry ? this.handleAutoCountry() : window.intlTelInputGlobals.startedLoadingAutoCountry || (window.intlTelInputGlobals.startedLoadingAutoCountry = true, typeof this.options.geoIpLookup == "function" && this.options.geoIpLookup(function() {
24572
+ var e = arguments.length > 0 && arguments[0] !== c ? arguments[0] : "", i = e.toLowerCase(), o = !!t._getCountryData(i, true);
24573
+ o ? (window.intlTelInputGlobals.autoCountry = i, setTimeout(function() {
24574
+ return S("handleAutoCountry");
24575
+ })) : (t._setInitialState(true), S("rejectAutoCountryPromise"));
24574
24576
  }, function() {
24575
- return D("rejectAutoCountryPromise");
24577
+ return S("rejectAutoCountryPromise");
24576
24578
  }));
24577
24579
  } }, { key: "_initKeyListeners", value: function() {
24578
24580
  var t = this, e = false;
@@ -24664,10 +24666,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24664
24666
  });
24665
24667
  }
24666
24668
  } }, { key: "_normaliseString", value: function() {
24667
- var t = arguments.length > 0 && arguments[0] !== p ? arguments[0] : "";
24669
+ var t = arguments.length > 0 && arguments[0] !== c ? arguments[0] : "";
24668
24670
  return t.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase();
24669
24671
  } }, { key: "_filterCountries", value: function(t) {
24670
- var e = arguments.length > 1 && arguments[1] !== p ? arguments[1] : false, i = true;
24672
+ var e = arguments.length > 1 && arguments[1] !== c ? arguments[1] : false, i = true;
24671
24673
  this.countryList.innerHTML = "";
24672
24674
  for (var o = this._normaliseString(t), r = 0; r < this.countries.length; r++) {
24673
24675
  var a = this.countries[r], l = this._normaliseString(a.name), u = "+".concat(a.dialCode);
@@ -24704,35 +24706,35 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24704
24706
  if (a) {
24705
24707
  var h = this.countryCodes[this._getNumeric(a)], v = h.indexOf(this.selectedCountryData.iso2) !== -1 && l.length <= a.length - 1, f = o === "1" && this._isRegionlessNanp(l);
24706
24708
  if (!f && !v) {
24707
- for (var y = 0; y < h.length; y++)
24708
- if (h[y]) {
24709
- u = h[y];
24709
+ for (var g = 0; g < h.length; g++)
24710
+ if (h[g]) {
24711
+ u = h[g];
24710
24712
  break;
24711
24713
  }
24712
24714
  }
24713
24715
  } else
24714
- i.charAt(0) === "+" && l.length ? u = "" : (!i || i === "+") && (u = this.defaultCountry);
24716
+ i.charAt(0) === "+" && l.length ? u = "" : (!i || i === "+") && !this.selectedCountryData.iso2 && (u = this.defaultCountry);
24715
24717
  return u !== null ? this._setFlag(u) : false;
24716
24718
  } }, { key: "_isRegionlessNanp", value: function(t) {
24717
24719
  var e = this._getNumeric(t);
24718
24720
  if (e.charAt(0) === "1") {
24719
24721
  var i = e.substr(1, 3);
24720
- return H.indexOf(i) !== -1;
24722
+ return W.indexOf(i) !== -1;
24721
24723
  }
24722
24724
  return false;
24723
24725
  } }, { key: "_highlightListItem", value: function(t, e) {
24724
24726
  var i = this.highlightedItem;
24725
24727
  i && i.classList.remove("iti__highlight"), this.highlightedItem = t, this.highlightedItem.classList.add("iti__highlight"), this.selectedFlag.setAttribute("aria-activedescendant", t.getAttribute("id")), e && this.highlightedItem.focus();
24726
- } }, { key: "_getCountryData", value: function(t, e, i) {
24727
- for (var o = e ? c : this.countries, r = 0; r < o.length; r++)
24728
- if (o[r].iso2 === t)
24729
- return o[r];
24730
- if (i)
24728
+ } }, { key: "_getCountryData", value: function(t, e) {
24729
+ for (var i = 0; i < this.countries.length; i++)
24730
+ if (this.countries[i].iso2 === t)
24731
+ return this.countries[i];
24732
+ if (e)
24731
24733
  return null;
24732
24734
  throw new Error("No country data for '".concat(t, "'"));
24733
24735
  } }, { key: "_setFlag", value: function(t) {
24734
24736
  var e = this.options, i = e.allowDropdown, o = e.showSelectedDialCode, r = e.showFlags, a = e.countrySearch, l = this.selectedCountryData.iso2 ? this.selectedCountryData : {};
24735
- if (this.selectedCountryData = t ? this._getCountryData(t, false, false) : {}, this.selectedCountryData.iso2 && (this.defaultCountry = this.selectedCountryData.iso2), r && this.selectedFlagInner.setAttribute("class", "iti__flag iti__".concat(t)), this._setSelectedCountryFlagTitleAttribute(t, o), o) {
24737
+ if (this.selectedCountryData = t ? this._getCountryData(t, false) : {}, this.selectedCountryData.iso2 && (this.defaultCountry = this.selectedCountryData.iso2), r && this.selectedFlagInner.setAttribute("class", "iti__flag iti__".concat(t)), this._setSelectedCountryFlagTitleAttribute(t, o), o) {
24736
24738
  var u = this.selectedCountryData.dialCode ? "+".concat(this.selectedCountryData.dialCode) : "";
24737
24739
  this.selectedDialCode.innerHTML = u;
24738
24740
  var h = this.selectedFlag.offsetWidth || this._getHiddenSelectedFlagWidth();
@@ -24772,13 +24774,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24772
24774
  } }, { key: "_closeDropdown", value: function() {
24773
24775
  this.dropdownContent.classList.add("iti__hide"), this.selectedFlag.setAttribute("aria-expanded", "false"), this.selectedFlag.removeAttribute("aria-activedescendant"), this.dropdownArrow.classList.remove("iti__arrow--up"), document.removeEventListener("keydown", this._handleKeydownOnDropdown), this.options.countrySearch && this.searchInput.removeEventListener("input", this._handleSearchChange), document.documentElement.removeEventListener("click", this._handleClickOffToClose), this.countryList.removeEventListener("mouseover", this._handleMouseoverCountryList), this.countryList.removeEventListener("click", this._handleClickCountryList), this.options.dropdownContainer && (this.options.useFullscreenPopup || window.removeEventListener("scroll", this._handleWindowScroll), this.dropdown.parentNode && this.dropdown.parentNode.removeChild(this.dropdown)), this._trigger("close:countrydropdown");
24774
24776
  } }, { key: "_scrollTo", value: function(t, e) {
24775
- var i = this.countryList, o = document.documentElement.scrollTop, r = i.offsetHeight, a = i.getBoundingClientRect().top + o, l = a + r, u = t.offsetHeight, h = t.getBoundingClientRect().top + o, v = h + u, f = h - a + i.scrollTop, y = r / 2 - u / 2;
24777
+ var i = this.countryList, o = document.documentElement.scrollTop, r = i.offsetHeight, a = i.getBoundingClientRect().top + o, l = a + r, u = t.offsetHeight, h = t.getBoundingClientRect().top + o, v = h + u, f = h - a + i.scrollTop, g = r / 2 - u / 2;
24776
24778
  if (h < a)
24777
- e && (f -= y), i.scrollTop = f;
24779
+ e && (f -= g), i.scrollTop = f;
24778
24780
  else if (v > l) {
24779
- e && (f += y);
24780
- var E = r - u;
24781
- i.scrollTop = f - E;
24781
+ e && (f += g);
24782
+ var A = r - u;
24783
+ i.scrollTop = f - A;
24782
24784
  }
24783
24785
  } }, { key: "_updateDialCode", value: function(t) {
24784
24786
  var e = this.telInput.value, i = "+".concat(t), o;
@@ -24876,14 +24878,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24876
24878
  } }]), s;
24877
24879
  }();
24878
24880
  L.getCountryData = function() {
24879
- return c;
24881
+ return p;
24880
24882
  };
24881
24883
  var B = function(n, t, e) {
24882
24884
  var i = document.createElement("script");
24883
24885
  i.onload = function() {
24884
- D("handleUtils"), t && t();
24886
+ S("handleUtils"), t && t();
24885
24887
  }, i.onerror = function() {
24886
- D("rejectUtilsScriptPromise"), e && e();
24888
+ S("rejectUtilsScriptPromise"), e && e();
24887
24889
  }, i.className = "iti-load-utils", i.async = true, i.src = n, document.body.appendChild(i);
24888
24890
  };
24889
24891
  return L.loadUtils = function(s) {
@@ -24895,30 +24897,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
24895
24897
  B(s);
24896
24898
  }
24897
24899
  return null;
24898
- }, L.defaults = M, L.version = "19.2.17", function(s, n) {
24899
- var t = new W(s, n);
24900
+ }, L.defaults = M, L.version = "19.2.19", function(s, n) {
24901
+ var t = new q(s, n);
24900
24902
  return t._init(), s.setAttribute("data-intl-tel-input-id", t.id), window.intlTelInputGlobals.instances[t.id] = t, t;
24901
24903
  };
24902
24904
  }();
24903
24905
  });
24904
24906
  });
24905
- var K = nt(G());
24906
- var U = ({ initialValue: p, onChangeNumber: c, onChangeCountry: g, onChangeValidity: m, onChangeErrorCode: _, initOptions: T, className: F, disabled: P, onFocus: x, onBlur: S }) => {
24907
- let w = (0, import_react.useRef)(null), C = (0, import_react.useRef)(null), I = () => {
24908
- let b = C.current.getNumber(), O = C.current.getSelectedCountryData().iso2;
24909
- if (c(b), g(O), C.current.isValidNumber())
24910
- m(true), _(null);
24907
+ var z = nt(R());
24908
+ var U = ({ initialValue: c, onChangeNumber: p, onChangeCountry: y, onChangeValidity: m, onChangeErrorCode: C, initOptions: N, className: F, disabled: P, onFocus: x, onBlur: k }) => {
24909
+ let w = (0, import_react.useRef)(null), _ = (0, import_react.useRef)(null), I = () => {
24910
+ let b = _.current.getNumber(), O = _.current.getSelectedCountryData().iso2;
24911
+ if (p(b), y(O), _.current.isValidNumber())
24912
+ m(true), C(null);
24911
24913
  else {
24912
- let k = C.current.getValidationError();
24913
- m(false), _(k);
24914
+ let D = _.current.getValidationError();
24915
+ m(false), C(D);
24914
24916
  }
24915
24917
  };
24916
24918
  return (0, import_react.useEffect)(() => {
24917
24919
  let b = w.current;
24918
- return C.current = (0, K.default)(w.current, T), b.addEventListener("countrychange", I), () => {
24919
- b.removeEventListener("countrychange", I), C.current.destroy();
24920
+ return _.current = (0, z.default)(w.current, N), b.addEventListener("countrychange", I), () => {
24921
+ b.removeEventListener("countrychange", I), _.current.destroy();
24920
24922
  };
24921
- }, []), import_react.default.createElement("input", { type: "tel", ref: w, onInput: I, defaultValue: p, className: F, disabled: P, onFocus: x, onBlur: S });
24923
+ }, []), import_react.default.createElement("input", { type: "tel", ref: w, onInput: I, defaultValue: c, className: F, disabled: P, onFocus: x, onBlur: k });
24922
24924
  };
24923
24925
  U.propTypes = { initialValue: import_prop_types.default.string, onChangeNumber: import_prop_types.default.func, onChangeCountry: import_prop_types.default.func, onChangeValidity: import_prop_types.default.func, onChangeErrorCode: import_prop_types.default.func, initOptions: import_prop_types.default.shape({ allowDropdown: import_prop_types.default.bool, autoInsertDialCode: import_prop_types.default.bool, autoPlaceholder: import_prop_types.default.string, containerClass: import_prop_types.default.string, countrySearch: import_prop_types.default.bool, customPlaceholder: import_prop_types.default.func, dropdownContainer: import_prop_types.default.node, excludeCountries: import_prop_types.default.arrayOf(import_prop_types.default.string), fixDropdownWidth: import_prop_types.default.bool, formatAsYouType: import_prop_types.default.bool, formatOnDisplay: import_prop_types.default.bool, geoIpLookup: import_prop_types.default.func, hiddenInput: import_prop_types.default.func, i18n: import_prop_types.default.objectOf(import_prop_types.default.string), initialCountry: import_prop_types.default.string, nationalMode: import_prop_types.default.bool, onlyCountries: import_prop_types.default.arrayOf(import_prop_types.default.string), placeholderNumberType: import_prop_types.default.string, preferredCountries: import_prop_types.default.arrayOf(import_prop_types.default.string), showFlags: import_prop_types.default.bool, showSelectedDialCode: import_prop_types.default.bool, useFullscreenPopup: import_prop_types.default.bool, utilsScript: import_prop_types.default.string }), className: import_prop_types.default.string, disabled: import_prop_types.default.bool, onFocus: import_prop_types.default.func, onBlur: import_prop_types.default.func };
24924
24926
  U.defaultProps = { initialValue: "", onChangeNumber: () => {