intl-tel-input 20.0.5 → 20.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -1
- package/README.md +7 -3
- package/build/js/data.js +1 -1
- package/build/js/data.min.js +1 -1
- package/build/js/intlTelInput-jquery.js +63 -16
- package/build/js/intlTelInput-jquery.min.js +3 -3
- package/build/js/intlTelInput.js +63 -16
- package/build/js/intlTelInput.min.js +3 -3
- package/build/js/utils.js +19 -19
- package/package.json +1 -1
- package/react/README.md +33 -0
- package/react/build/IntlTelInput.cjs.js +2 -2
- package/react/build/IntlTelInput.cjs.js.map +3 -3
- package/react/build/IntlTelInput.esm.js +2 -2
- package/react/build/IntlTelInput.esm.js.map +3 -3
package/build/js/utils.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
var aa=this||self;function k(a,b){a=a.split(".");var c=aa;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b}function m(a,b){function c(){}c.prototype=b.prototype;a.ma=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.sa=function(d,e,f){for(var g=Array(arguments.length-2),h=2;h<arguments.length;h++)g[h-2]=arguments[h];return b.prototype[e].apply(d,g)}};function ca(a){const b=[];let c=0;for(const d in a)b[c++]=a[d];return b};function da(a,b){this.g=a;this.l=!!b.aa;this.h=b.i;this.s=b.type;this.o=!1;switch(this.h){case ea:case fa:case ha:case ia:case ja:case ka:case la:this.o=!0}this.j=b.defaultValue}var la=1,ka=2,ea=3,fa=4,ha=6,ia=16,ja=18;function ma(a,b){this.h=a;this.g={};for(a=0;a<b.length;a++){var c=b[a];this.g[c.g]=c}}function na(a){a=ca(a.g);a.sort(function(b,c){return b.g-c.g});return a};function n(){this.h={};this.j=this.m().g;this.g=this.l=null}n.prototype.has=function(a){return p(this,a.g)};n.prototype.get=function(a,b){return q(this,a.g,b)};n.prototype.set=function(a,b){r(this,a.g,b)};n.prototype.add=function(a,b){oa(this,a.g,b)};
|
|
7
7
|
function pa(a,b){for(var c=na(a.m()),d=0;d<c.length;d++){var e=c[d],f=e.g;if(p(b,f)){a.g&&delete a.g[e.g];var g=11==e.h||10==e.h;if(e.l){e=t(b,f);for(var h=0;h<e.length;h++)oa(a,f,g?e[h].clone():e[h])}else e=u(b,f),g?(g=u(a,f))?pa(g,e):r(a,f,e.clone()):r(a,f,e)}}}n.prototype.clone=function(){var a=new this.constructor;a!=this&&(a.h={},a.g&&(a.g={}),pa(a,this));return a};function p(a,b){return null!=a.h[b]}
|
|
8
8
|
function u(a,b){var c=a.h[b];if(null==c)return null;if(a.l){if(!(b in a.g)){var d=a.l,e=a.j[b];if(null!=c)if(e.l){for(var f=[],g=0;g<c.length;g++)f[g]=d.h(e,c[g]);c=f}else c=d.h(e,c);return a.g[b]=c}return a.g[b]}return c}function q(a,b,c){var d=u(a,b);return a.j[b].l?d[c||0]:d}function v(a,b){if(p(a,b))a=q(a,b);else a:{a=a.j[b];if(void 0===a.j)if(b=a.s,b===Boolean)a.j=!1;else if(b===Number)a.j=0;else if(b===String)a.j=a.o?"0":"";else{a=new b;break a}a=a.j}return a}
|
|
9
|
-
function t(a,b){return u(a,b)||[]}function w(a,b){return a.j[b].l?p(a,b)?a.h[b].length:0:p(a,b)?1:0}function r(a,b,c){a.h[b]=c;a.g&&(a.g[b]=c)}function oa(a,b,c){a.h[b]||(a.h[b]=[]);a.h[b].push(c);a.g&&delete a.g[b]}function x(a,b){var c=[],d;for(d in b)0!=d&&c.push(new da(d,b[d]));return new ma(a,c)};function y(){}y.prototype.g=function(a){new a.h;throw Error("Unimplemented");};y.prototype.h=function(a,b){if(11==a.h||10==a.h)return b instanceof n?b:this.g(a.s.prototype.m(),b);if(14==a.h)return"string"===typeof b&&qa.test(b)&&(a=Number(b),0<a)?a:b;if(!a.o)return b;a=a.s;if(a===String){if("number"===typeof b)return String(b)}else if(a===Number&&"string"===typeof b&&("Infinity"===b||"-Infinity"===b||"NaN"===b||qa.test(b)))return Number(b);return b};var qa=/^-?[0-9]+$/;function z(){}m(z,y);z.prototype.g=function(a,b){a=new a.h;a.l=this;a.h=b;a.g={};return a};function
|
|
9
|
+
function t(a,b){return u(a,b)||[]}function w(a,b){return a.j[b].l?p(a,b)?a.h[b].length:0:p(a,b)?1:0}function r(a,b,c){a.h[b]=c;a.g&&(a.g[b]=c)}function oa(a,b,c){a.h[b]||(a.h[b]=[]);a.h[b].push(c);a.g&&delete a.g[b]}function x(a,b){var c=[],d;for(d in b)0!=d&&c.push(new da(d,b[d]));return new ma(a,c)};function y(){}y.prototype.g=function(a){new a.h;throw Error("Unimplemented");};y.prototype.h=function(a,b){if(11==a.h||10==a.h)return b instanceof n?b:this.g(a.s.prototype.m(),b);if(14==a.h)return"string"===typeof b&&qa.test(b)&&(a=Number(b),0<a)?a:b;if(!a.o)return b;a=a.s;if(a===String){if("number"===typeof b)return String(b)}else if(a===Number&&"string"===typeof b&&("Infinity"===b||"-Infinity"===b||"NaN"===b||qa.test(b)))return Number(b);return b};var qa=/^-?[0-9]+$/;function z(){}m(z,y);z.prototype.g=function(a,b){a=new a.h;a.l=this;a.h=b;a.g={};return a};function B(){}m(B,z);B.prototype.h=function(a,b){return 8==a.h?!!b:y.prototype.h.apply(this,arguments)};B.prototype.g=function(a,b){return B.ma.g.call(this,a,b)};function C(a,b){null!=a&&this.g.apply(this,arguments)}C.prototype.h="";C.prototype.set=function(a){this.h=""+a};C.prototype.g=function(a,b,c){this.h+=String(a);if(null!=b)for(let d=1;d<arguments.length;d++)this.h+=arguments[d];return this};function D(a){a.h=""}C.prototype.toString=function(){return this.h};/*
|
|
10
10
|
|
|
11
11
|
Protocol Buffer 2 Copyright 2008 Google Inc.
|
|
12
12
|
All other code copyright its respective owners.
|
|
@@ -486,35 +486,35 @@ B:"2",C:"2",D:"3",E:"3",F:"3",G:"4",H:"4",I:"4",J:"5",K:"5",L:"5",M:"6",N:"6",O:
|
|
|
486
486
|
Ga=RegExp("^([A-Za-z0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]+((\\-)*[A-Za-z0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9])*\\.)*[A-Za-z]+((\\-)*[A-Za-z0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9])*\\.?$");function M(a){return"([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{1,"+a+"})"}
|
|
487
487
|
function Ha(){return";ext="+M("20")+"|[ \u00a0\\t,]*(?:e?xt(?:ensi(?:o\u0301?|\u00f3))?n?|\uff45?\uff58\uff54\uff4e?|\u0434\u043e\u0431|anexo)[:\\.\uff0e]?[ \u00a0\\t,-]*"+(M("20")+"#?|[ \u00a0\\t,]*(?:[x\uff58#\uff03~\uff5e]|int|\uff49\uff4e\uff54)[:\\.\uff0e]?[ \u00a0\\t,-]*")+(M("9")+"#?|[- ]+")+(M("6")+"#|[ \u00a0\\t]*(?:,{2}|;)[:\\.\uff0e]?[ \u00a0\\t,-]*")+(M("15")+"#?|[ \u00a0\\t]*(?:,)+[:\\.\uff0e]?[ \u00a0\\t,-]*")+(M("9")+"#?")}
|
|
488
488
|
var Ia=new RegExp("(?:"+Ha()+")$","i"),Ja=new RegExp("^[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]{2}$|^[+\uff0b]*(?:[-x\u2010-\u2015\u2212\u30fc\uff0d-\uff0f \u00a0\u00ad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d.\\[\\]/~\u2053\u223c\uff5e*]*[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]){3,}[-x\u2010-\u2015\u2212\u30fc\uff0d-\uff0f \u00a0\u00ad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d.\\[\\]/~\u2053\u223c\uff5e*A-Za-z0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]*(?:"+Ha()+")?$","i"),Ka=/(\$\d)/,
|
|
489
|
-
La=/^\(?\$1\)?$/;function Ma(a){return 2>a.length?!1:N(Ja,a)}function Na(a){return N(Ea,a)?O(a,ya):O(a,K)}function Oa(a){var b=Na(a.toString());
|
|
489
|
+
La=/^\(?\$1\)?$/;function Ma(a){return 2>a.length?!1:N(Ja,a)}function Na(a){return N(Ea,a)?O(a,ya):O(a,K)}function Oa(a){var b=Na(a.toString());D(a);a.g(b)}function Pa(a){return null!=a&&(1!=w(a,9)||-1!=t(a,9)[0])}function O(a,b){for(var c=new C,d,e=a.length,f=0;f<e;++f)d=a.charAt(f),d=b[d.toUpperCase()],null!=d&&c.g(d);return c.toString()}function Qa(a){return 0==a.length||La.test(a)}function P(a){return null!=a&&isNaN(a)&&a.toUpperCase()in wa}
|
|
490
490
|
function Ra(a,b,c){if(0==q(b,2)&&p(b,5)){var d=v(b,5);if(0<d.length)return d}d=v(b,1);var e=Q(b);if(0==c)return Sa(d,0,e,"");if(!(d in I))return e;a=R(a,d,S(d));b=p(b,3)&&0!=q(b,3).length?3==c?";ext="+q(b,3):p(a,13)?q(a,13)+v(b,3):" ext. "+v(b,3):"";a:{a=0==t(a,20).length||2==c?t(a,19):t(a,20);for(var f,g=a.length,h=0;h<g;++h){f=a[h];var l=w(f,3);if(0==l||0==e.search(q(f,3,l-1)))if(l=new RegExp(q(f,1)),N(l,e)){a=f;break a}}a=null}null!=a&&(g=a,a=v(g,2),f=new RegExp(q(g,1)),v(g,5),g=v(g,4),e=2==c&&
|
|
491
491
|
null!=g&&0<g.length?e.replace(f,a.replace(Ka,g)):e.replace(f,a),3==c&&(e=e.replace(RegExp("^[-x\u2010-\u2015\u2212\u30fc\uff0d-\uff0f \u00a0\u00ad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d.\\[\\]/~\u2053\u223c\uff5e]+"),""),e=e.replace(RegExp("[-x\u2010-\u2015\u2212\u30fc\uff0d-\uff0f \u00a0\u00ad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d.\\[\\]/~\u2053\u223c\uff5e]+","g"),"-")));return Sa(d,c,e,b)}function R(a,b,c){return"001"==c?T(a,""+b):T(a,c)}
|
|
492
492
|
function Q(a){if(!p(a,2))return"";var b=""+q(a,2);return p(a,4)&&q(a,4)&&0<v(a,8)?Array(v(a,8)+1).join("0")+b:b}function Sa(a,b,c,d){switch(b){case 0:return"+"+a+c+d;case 1:return"+"+a+" "+c+d;case 3:return"tel:+"+a+"-"+c+d;default:return c+d}}
|
|
493
493
|
function U(a,b){switch(b){case 4:return q(a,5);case 3:return q(a,4);case 1:return q(a,3);case 0:case 2:return q(a,2);case 5:return q(a,6);case 6:return q(a,8);case 7:return q(a,7);case 8:return q(a,21);case 9:return q(a,25);case 10:return q(a,28);default:return q(a,1)}}function Ta(a,b){return V(a,q(b,1))?V(a,q(b,5))?4:V(a,q(b,4))?3:V(a,q(b,6))?5:V(a,q(b,8))?6:V(a,q(b,7))?7:V(a,q(b,21))?8:V(a,q(b,25))?9:V(a,q(b,28))?10:V(a,q(b,2))?q(b,18)||V(a,q(b,3))?2:0:!q(b,18)&&V(a,q(b,3))?1:-1:-1}
|
|
494
|
-
function T(a,b){if(null==b)return null;b=b.toUpperCase();var c=a.g[b];if(null==c){c=wa[b];if(null==c)return null;c=(new
|
|
494
|
+
function T(a,b){if(null==b)return null;b=b.toUpperCase();var c=a.g[b];if(null==c){c=wa[b];if(null==c)return null;c=(new B).g(G.m(),c);a.g[b]=c}return c}function V(a,b){var c=a.length;return 0<w(b,9)&&-1==t(b,9).indexOf(c)?!1:N(v(b,2),a)}
|
|
495
495
|
function Ua(a,b){if(null==b)return null;var c=v(b,1);c=I[c];if(null==c)a=null;else if(1==c.length)a=c[0];else a:{b=Q(b);for(var d,e=c.length,f=0;f<e;f++){d=c[f];var g=T(a,d);if(p(g,23)){if(0==b.search(q(g,23))){a=d;break a}}else if(-1!=Ta(b,g)){a=d;break a}}a=null}return a}function S(a){a=I[a];return null==a?"ZZ":a[0]}function Va(a,b){a=T(a,b);if(null==a)throw Error("Invalid region code: "+b);return v(a,10)}
|
|
496
496
|
function W(a,b,c,d){var e=U(c,d),f=0==w(e,9)?t(q(c,1),9):t(e,9);e=t(e,10);if(2==d)if(Pa(U(c,0)))a=U(c,1),Pa(a)&&(f=f.concat(0==w(a,9)?t(q(c,1),9):t(a,9)),f.sort(),0==e.length?e=t(a,10):(e=e.concat(t(a,10)),e.sort()));else return W(a,b,c,1);if(-1==f[0])return 5;b=b.length;if(-1<e.indexOf(b))return 4;c=f[0];return c==b?0:c>b?2:f[f.length-1]<b?3:-1<f.indexOf(b,1)?0:5}function X(a,b,c){var d=Q(b);b=v(b,1);if(!(b in I))return 1;b=R(a,b,S(b));return W(a,d,b,c)}
|
|
497
497
|
function Wa(a,b){a=a.toString();if(0==a.length||"0"==a.charAt(0))return 0;for(var c,d=a.length,e=1;3>=e&&e<=d;++e)if(c=parseInt(a.substring(0,e),10),c in I)return b.g(a.substring(e)),c;return 0}
|
|
498
|
-
function Xa(a,b,c,d,e,f){if(0==b.length)return 0;b=new
|
|
499
|
-
a=Wa(b,d);if(0!=a)return r(f,1,a),a;throw Error("Invalid country calling code");}if(null!=c&&(g=v(c,10),h=""+g,l=b.toString(),0==l.lastIndexOf(h,0)&&(h=new
|
|
498
|
+
function Xa(a,b,c,d,e,f){if(0==b.length)return 0;b=new C(b);var g;null!=c&&(g=q(c,11));null==g&&(g="NonMatch");var h=b.toString();if(0==h.length)g=20;else if(L.test(h))h=h.replace(L,""),D(b),b.g(Na(h)),g=1;else{h=new RegExp(g);Oa(b);g=b.toString();if(0==g.search(h)){h=g.match(h)[0].length;var l=g.substring(h).match(Aa);l&&null!=l[1]&&0<l[1].length&&"0"==O(l[1],K)?g=!1:(D(b),b.g(g.substring(h)),g=!0)}else g=!1;g=g?5:20}e&&r(f,6,g);if(20!=g){if(2>=b.h.length)throw Error("Phone number too short after IDD");
|
|
499
|
+
a=Wa(b,d);if(0!=a)return r(f,1,a),a;throw Error("Invalid country calling code");}if(null!=c&&(g=v(c,10),h=""+g,l=b.toString(),0==l.lastIndexOf(h,0)&&(h=new C(l.substring(h.length)),l=q(c,1),l=new RegExp(v(l,2)),Ya(h,c,null),h=h.toString(),!N(l,b.toString())&&N(l,h)||3==W(a,b.toString(),c,-1))))return d.g(h),e&&r(f,6,10),r(f,1,g),g;r(f,1,0);return 0}
|
|
500
500
|
function Ya(a,b,c){var d=a.toString(),e=d.length,f=q(b,15);if(0!=e&&null!=f&&0!=f.length){var g=new RegExp("^(?:"+f+")");if(e=g.exec(d)){f=new RegExp(v(q(b,1),2));var h=N(f,d),l=e.length-1;b=q(b,16);if(null==b||0==b.length||null==e[l]||0==e[l].length){if(!h||N(f,d.substring(e[0].length)))null!=c&&0<l&&null!=e[l]&&c.g(e[1]),a.set(d.substring(e[0].length))}else if(d=d.replace(g,b),!h||N(f,d))null!=c&&0<l&&c.g(e[1]),a.set(d)}}}
|
|
501
501
|
function Y(a,b,c){if(!P(c)&&0<b.length&&"+"!=b.charAt(0))throw Error("Invalid country calling code");return Za(a,b,c,!0)}
|
|
502
|
-
function Za(a,b,c,d){if(null==b)throw Error("The string supplied did not seem to be a phone number");if(250<b.length)throw Error("The string supplied is too long to be a phone number");var e=new
|
|
503
|
-
null!=f?("+"===f.charAt(0)&&e.g(f),f=b.indexOf("tel:"),e.g(b.substring(0<=f?f+4:0,b.indexOf(";phone-context=")))):(f=e.g,g=b??"",h=g.search(Ba),0<=h?(g=g.substring(h),g=g.replace(Da,""),h=g.search(Ca),0<=h&&(g=g.substring(0,h))):g="",f.call(e,g));f=e.toString();g=f.indexOf(";isub=");0<g&&(
|
|
504
|
-
f=new H;d&&r(f,5,b);a:{b=e.toString();g=b.search(Ia);if(0<=g&&Ma(b.substring(0,g))){h=b.match(Ia);for(var l=h.length,
|
|
505
|
-
1,h)):d&&(delete f.h[6],f.g&&delete f.g[6]));if(2>b.h.length)throw Error("The string supplied is too short to be a phone number");null!=g&&(c=new
|
|
506
|
-
1;a<d.length-1&&"0"==d.charAt(a);)a++;1!=a&&r(f,8,a)}r(f,2,parseInt(d,10));return f}function N(a,b){return(a="string"==typeof a?b.match("^(?:"+a+")$"):b.match(a))&&a[0].length==b.length?!0:!1};function $a(a){this.fa=RegExp("\u2008");this.ja="";this.v=new
|
|
502
|
+
function Za(a,b,c,d){if(null==b)throw Error("The string supplied did not seem to be a phone number");if(250<b.length)throw Error("The string supplied is too long to be a phone number");var e=new C;var f=b.indexOf(";phone-context=");if(-1===f)f=null;else if(f+=15,f>=b.length)f="";else{var g=b.indexOf(";",f);f=-1!==g?b.substring(f,g):b.substring(f)}var h=f;null==h?g=!0:0===h.length?g=!1:(g=Fa.exec(h),h=Ga.exec(h),g=null!==g||null!==h);if(!g)throw Error("The string supplied did not seem to be a phone number");
|
|
503
|
+
null!=f?("+"===f.charAt(0)&&e.g(f),f=b.indexOf("tel:"),e.g(b.substring(0<=f?f+4:0,b.indexOf(";phone-context=")))):(f=e.g,g=b??"",h=g.search(Ba),0<=h?(g=g.substring(h),g=g.replace(Da,""),h=g.search(Ca),0<=h&&(g=g.substring(0,h))):g="",f.call(e,g));f=e.toString();g=f.indexOf(";isub=");0<g&&(D(e),e.g(f.substring(0,g)));if(!Ma(e.toString()))throw Error("The string supplied did not seem to be a phone number");f=e.toString();if(!(P(c)||null!=f&&0<f.length&&L.test(f)))throw Error("Invalid country calling code");
|
|
504
|
+
f=new H;d&&r(f,5,b);a:{b=e.toString();g=b.search(Ia);if(0<=g&&Ma(b.substring(0,g))){h=b.match(Ia);for(var l=h.length,A=1;A<l;++A)if(null!=h[A]&&0<h[A].length){D(e);e.g(b.substring(0,g));b=h[A];break a}}b=""}0<b.length&&r(f,3,b);g=T(a,c);b=new C;h=0;l=e.toString();try{h=Xa(a,l,g,b,d,f)}catch(ba){if("Invalid country calling code"==ba.message&&L.test(l)){if(l=l.replace(L,""),h=Xa(a,l,g,b,d,f),0==h)throw ba;}else throw ba;}0!=h?(e=S(h),e!=c&&(g=R(a,h,e))):(Oa(e),b.g(e.toString()),null!=c?(h=v(g,10),r(f,
|
|
505
|
+
1,h)):d&&(delete f.h[6],f.g&&delete f.g[6]));if(2>b.h.length)throw Error("The string supplied is too short to be a phone number");null!=g&&(c=new C,e=new C(b.toString()),Ya(e,g,c),a=W(a,e.toString(),g,-1),2!=a&&4!=a&&5!=a&&(b=e,d&&0<c.toString().length&&r(f,7,c.toString())));d=b.toString();a=d.length;if(2>a)throw Error("The string supplied is too short to be a phone number");if(17<a)throw Error("The string supplied is too long to be a phone number");if(1<d.length&&"0"==d.charAt(0)){r(f,4,!0);for(a=
|
|
506
|
+
1;a<d.length-1&&"0"==d.charAt(a);)a++;1!=a&&r(f,8,a)}r(f,2,parseInt(d,10));return f}function N(a,b){return(a="string"==typeof a?b.match("^(?:"+a+")$"):b.match(a))&&a[0].length==b.length?!0:!1};function $a(a){this.fa=RegExp("\u2008");this.ja="";this.v=new C;this.da="";this.s=new C;this.ba=new C;this.u=!0;this.ea=this.ca=this.la=!1;this.ga=J.g();this.$=0;this.h=new C;this.ha=!1;this.o="";this.g=new C;this.j=[];this.ka=a;this.l=ab(this,this.ka)}var bb=new G;r(bb,11,"NA");
|
|
507
507
|
var cb=RegExp("^[-x\u2010-\u2015\u2212\u30fc\uff0d-\uff0f \u00a0\u00ad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d.\\[\\]/~\u2053\u223c\uff5e]*\\$1[-x\u2010-\u2015\u2212\u30fc\uff0d-\uff0f \u00a0\u00ad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d.\\[\\]/~\u2053\u223c\uff5e]*(\\$\\d[-x\u2010-\u2015\u2212\u30fc\uff0d-\uff0f \u00a0\u00ad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d.\\[\\]/~\u2053\u223c\uff5e]*)*$"),db=/[- ]/;
|
|
508
|
-
function ab(a,b){var c=a.ga;b=P(b)?Va(c,b):0;a=T(a.ga,S(b));return null!=a?a:bb}function eb(a){for(var b=a.j.length,c=0;c<b;++c){var d=a.j[c],e=v(d,1);if(a.da==e)return!1;var f=a;var g=d,h=v(g,1);
|
|
508
|
+
function ab(a,b){var c=a.ga;b=P(b)?Va(c,b):0;a=T(a.ga,S(b));return null!=a?a:bb}function eb(a){for(var b=a.j.length,c=0;c<b;++c){var d=a.j[c],e=v(d,1);if(a.da==e)return!1;var f=a;var g=d,h=v(g,1);D(f.v);var l=f;g=v(g,2);var A="999999999999999".match(h)[0];A.length<l.g.h.length?l="":(l=A.replace(new RegExp(h,"g"),g),l=l.replace(RegExp("9","g"),"\u2008"));0<l.length?(f.v.g(l),f=!0):f=!1;if(f)return a.da=e,a.ha=db.test(q(d,4)),a.$=0,!0}return a.u=!1}
|
|
509
509
|
function fb(a,b){for(var c=[],d=b.length-3,e=a.j.length,f=0;f<e;++f){var g=a.j[f];0==w(g,3)?c.push(a.j[f]):(g=q(g,3,Math.min(d,w(g,3)-1)),0==b.search(g)&&c.push(a.j[f]))}a.j=c}
|
|
510
|
-
function gb(a,b){a.s.g(b);var c=b;Aa.test(c)||1==a.s.h.length&&za.test(c)?("+"==b?(c=b,a.ba.g(b)):(c=K[b],a.ba.g(c),a.g.g(c)),b=c):(a.u=!1,a.la=!0);if(!a.u){if(!a.la)if(hb(a)){if(ib(a))return jb(a)}else if(0<a.o.length&&(b=a.g.toString(),
|
|
511
|
-
lb(a);default:if(a.ea)return ib(a)&&(a.ea=!1),a.h.toString()+a.g.toString();if(0<a.j.length){b=mb(a,b);c=nb(a);if(0<c.length)return c;fb(a,a.g.toString());return eb(a)?ob(a):a.u?Z(a,b):a.s.toString()}return lb(a)}}function jb(a){a.u=!0;a.ea=!1;a.j=[];a.$=0;
|
|
510
|
+
function gb(a,b){a.s.g(b);var c=b;Aa.test(c)||1==a.s.h.length&&za.test(c)?("+"==b?(c=b,a.ba.g(b)):(c=K[b],a.ba.g(c),a.g.g(c)),b=c):(a.u=!1,a.la=!0);if(!a.u){if(!a.la)if(hb(a)){if(ib(a))return jb(a)}else if(0<a.o.length&&(b=a.g.toString(),D(a.g),a.g.g(a.o),a.g.g(b),b=a.h.toString(),c=b.lastIndexOf(a.o),D(a.h),a.h.g(b.substring(0,c))),a.o!=kb(a))return a.h.g(" "),jb(a);return a.s.toString()}switch(a.ba.h.length){case 0:case 1:case 2:return a.s.toString();case 3:if(hb(a))a.ea=!0;else return a.o=kb(a),
|
|
511
|
+
lb(a);default:if(a.ea)return ib(a)&&(a.ea=!1),a.h.toString()+a.g.toString();if(0<a.j.length){b=mb(a,b);c=nb(a);if(0<c.length)return c;fb(a,a.g.toString());return eb(a)?ob(a):a.u?Z(a,b):a.s.toString()}return lb(a)}}function jb(a){a.u=!0;a.ea=!1;a.j=[];a.$=0;D(a.v);a.da="";return lb(a)}
|
|
512
512
|
function nb(a){for(var b=a.g.toString(),c=a.j.length,d=0;d<c;++d){var e=a.j[d],f=v(e,1);if((new RegExp("^(?:"+f+")$")).test(b)&&(a.ha=db.test(q(e,4)),e=b.replace(new RegExp(f,"g"),q(e,2)),e=Z(a,e),O(e,xa)==a.ba))return e}return""}function Z(a,b){var c=a.h.h.length;return a.ha&&0<c&&" "!=a.h.toString().charAt(c-1)?a.h+" "+b:a.h+b}
|
|
513
513
|
function lb(a){var b=a.g.toString();if(3<=b.length){for(var c=a.ca&&0==a.o.length&&0<w(a.l,20)?t(a.l,20):t(a.l,19),d=c.length,e=0;e<d;++e){var f=c[e];0<a.o.length&&Qa(v(f,4))&&!q(f,6)&&!p(f,5)||(0!=a.o.length||a.ca||Qa(v(f,4))||q(f,6))&&cb.test(v(f,2))&&a.j.push(f)}fb(a,b);b=nb(a);return 0<b.length?b:eb(a)?ob(a):a.s.toString()}return Z(a,b)}function ob(a){var b=a.g.toString(),c=b.length;if(0<c){for(var d="",e=0;e<c;e++)d=mb(a,b.charAt(e));return a.u?Z(a,d):a.s.toString()}return a.h.toString()}
|
|
514
|
-
function kb(a){var b=a.g.toString(),c=0;if(1!=q(a.l,10))var d=!1;else d=a.g.toString(),d="1"==d.charAt(0)&&"0"!=d.charAt(1)&&"1"!=d.charAt(1);d?(c=1,a.h.g("1").g(" "),a.ca=!0):p(a.l,15)&&(d=new RegExp("^(?:"+q(a.l,15)+")"),d=b.match(d),null!=d&&null!=d[0]&&0<d[0].length&&(a.ca=!0,c=d[0].length,a.h.g(b.substring(0,c))));
|
|
515
|
-
function hb(a){var b=a.ba.toString(),c=new RegExp("^(?:\\+|"+q(a.l,11)+")");c=b.match(c);return null!=c&&null!=c[0]&&0<c[0].length?(a.ca=!0,c=c[0].length,
|
|
516
|
-
function mb(a,b){var c=a.v.toString();if(0<=c.substring(a.$).search(a.fa)){var d=c.search(a.fa);b=c.replace(a.fa,b);
|
|
517
|
-
k("intlTelInputUtils.getExampleNumber",(a,b,c)=>{try{const
|
|
514
|
+
function kb(a){var b=a.g.toString(),c=0;if(1!=q(a.l,10))var d=!1;else d=a.g.toString(),d="1"==d.charAt(0)&&"0"!=d.charAt(1)&&"1"!=d.charAt(1);d?(c=1,a.h.g("1").g(" "),a.ca=!0):p(a.l,15)&&(d=new RegExp("^(?:"+q(a.l,15)+")"),d=b.match(d),null!=d&&null!=d[0]&&0<d[0].length&&(a.ca=!0,c=d[0].length,a.h.g(b.substring(0,c))));D(a.g);a.g.g(b.substring(c));return b.substring(0,c)}
|
|
515
|
+
function hb(a){var b=a.ba.toString(),c=new RegExp("^(?:\\+|"+q(a.l,11)+")");c=b.match(c);return null!=c&&null!=c[0]&&0<c[0].length?(a.ca=!0,c=c[0].length,D(a.g),a.g.g(b.substring(c)),D(a.h),a.h.g(b.substring(0,c)),"+"!=b.charAt(0)&&a.h.g(" "),!0):!1}function ib(a){if(0==a.g.h.length)return!1;var b=new C,c=Wa(a.g,b);if(0==c)return!1;D(a.g);a.g.g(b.toString());b=S(c);"001"==b?a.l=T(a.ga,""+c):b!=a.ka&&(a.l=ab(a,b));a.h.g(""+c).g(" ");a.o="";return!0}
|
|
516
|
+
function mb(a,b){var c=a.v.toString();if(0<=c.substring(a.$).search(a.fa)){var d=c.search(a.fa);b=c.replace(a.fa,b);D(a.v);a.v.g(b);a.$=d;return b.substring(0,a.$+1)}1==a.j.length&&(a.u=!1);a.da="";return a.s.toString()};k("intlTelInputUtils",{});k("intlTelInputUtils.formatNumberAsYouType",(a,b)=>{try{const c=a.replace(/[^+0-9]/g,""),d=new $a(b);let e="";for(let f=0;f<c.length;f++)b=d,b.ja=gb(b,c.charAt(f)),e=b.ja;return e}catch(c){return a}});k("intlTelInputUtils.formatNumber",(a,b,c)=>{try{const e=J.g(),f=Y(e,a,b);var d=X(e,f,-1);return 0==d||4==d?Ra(e,f,"undefined"===typeof c?0:c):a}catch(e){return a}});
|
|
517
|
+
k("intlTelInputUtils.getExampleNumber",(a,b,c,d)=>{try{const l=J.g();a:{var e=l;if(P(a)){var f=U(T(e,a),c);try{if(p(f,6)){var g=q(f,6);var h=Za(e,g,a,!1);break a}}catch(A){}}h=null}return Ra(l,h,d?0:b?2:1)}catch(l){return""}});k("intlTelInputUtils.getExtension",(a,b)=>{try{return q(Y(J.g(),a,b),3)}catch(c){return""}});k("intlTelInputUtils.getNumberType",(a,b)=>{try{const h=J.g();var c=Y(h,a,b);a=h;var d=Ua(a,c),e=R(a,v(c,1),d);if(null==e)var f=-1;else{var g=Q(c);f=Ta(g,e)}return f}catch(h){return-99}});
|
|
518
518
|
k("intlTelInputUtils.getValidationError",(a,b)=>{try{const c=J.g(),d=Y(c,a,b);return X(c,d,-1)}catch(c){return"Invalid country calling code"===c.message?1:3>=a.length||"Phone number too short after IDD"===c.message||"The string supplied is too short to be a phone number"===c.message?2:"The string supplied is too long to be a phone number"===c.message?3:-99}});
|
|
519
|
-
k("intlTelInputUtils.isValidNumber",(a,b)=>{try{const l=J.g();var c=Y(l,a,b);a=l;var d=Ua(a,c);var e=v(c,1),f=R(a,e,d);if(null==f||"001"!=d&&e!=Va(a,d))var g=!1;else{var h=Q(c);g=-1!=Ta(h,f)}return g}catch(l){return!1}});k("intlTelInputUtils.isPossibleNumber",(a,b,c)=>{try{const d=J.g(),e=Y(d,a,b);return c?0===X(d,e,1):0===X(d,e,-1)}catch(d){return!1}});k("intlTelInputUtils.
|
|
520
|
-
k("intlTelInputUtils.numberType",{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});k("intlTelInputUtils.validationError",{IS_POSSIBLE:0,INVALID_COUNTRY_CODE:1,TOO_SHORT:2,TOO_LONG:3,IS_POSSIBLE_LOCAL_ONLY:4,INVALID_LENGTH:5});})();
|
|
519
|
+
k("intlTelInputUtils.isValidNumber",(a,b)=>{try{const l=J.g();var c=Y(l,a,b);a=l;var d=Ua(a,c);var e=v(c,1),f=R(a,e,d);if(null==f||"001"!=d&&e!=Va(a,d))var g=!1;else{var h=Q(c);g=-1!=Ta(h,f)}return g}catch(l){return!1}});k("intlTelInputUtils.isPossibleNumber",(a,b,c)=>{try{const d=J.g(),e=Y(d,a,b);return c?0===X(d,e,1):0===X(d,e,-1)}catch(d){return!1}});k("intlTelInputUtils.getCoreNumber",(a,b)=>{try{return q(Y(J.g(),a,b),2).toString()}catch(c){return""}});
|
|
520
|
+
k("intlTelInputUtils.numberFormat",{E164:0,INTERNATIONAL:1,NATIONAL:2,RFC3966:3});k("intlTelInputUtils.numberType",{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});k("intlTelInputUtils.validationError",{IS_POSSIBLE:0,INVALID_COUNTRY_CODE:1,TOO_SHORT:2,TOO_LONG:3,IS_POSSIBLE_LOCAL_ONLY:4,INVALID_LENGTH:5});})();
|
package/package.json
CHANGED
package/react/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
Here's a list of all of the current props you can pass to the IntlTelInput react component.
|
|
2
|
+
|
|
3
|
+
**initialValue**
|
|
4
|
+
Type: `String`
|
|
5
|
+
The initial value to put in the input. This will get auto-formatted on init (according to `formatOnDisplay` initialisation option). IntlTelInput is an uncontrolled input, and so will ignore any changes to this value.
|
|
6
|
+
|
|
7
|
+
**onChangeNumber**
|
|
8
|
+
Type: `Function`
|
|
9
|
+
A handler to be called when the number changes. It will be passed the new number.
|
|
10
|
+
|
|
11
|
+
**onChangeCountry**
|
|
12
|
+
Type: `Function`
|
|
13
|
+
A handler to be called when the selected country changes. It will be passed the new country iso2 code e.g. "gb" for UK.
|
|
14
|
+
|
|
15
|
+
**onChangeValidity**
|
|
16
|
+
Type: `Function`
|
|
17
|
+
A handler to be called when the number validity changes e.g. to true/false. It will be passed the new isValid boolean.
|
|
18
|
+
|
|
19
|
+
**onChangeErrorCode**
|
|
20
|
+
Type: `Function`
|
|
21
|
+
A handler to be called when the number validation error changes. It will be passed the new error code (or `null`).
|
|
22
|
+
|
|
23
|
+
**usePreciseValidation**
|
|
24
|
+
Type: `Boolean`, Default: `false`
|
|
25
|
+
By default we use `isValidNumber` for validation, but if you'd rather use `isValidNumberPrecise` you can set this to `true`.
|
|
26
|
+
|
|
27
|
+
**initOptions**
|
|
28
|
+
Type: `Object`
|
|
29
|
+
An object containing all of the [initialisation options](https://github.com/jackocnr/intl-tel-input?tab=readme-ov-file#initialisation-options) to pass to the plugin. You can use these exactly the same as when using the plugin with pure JavaScript.
|
|
30
|
+
|
|
31
|
+
**inputProps**
|
|
32
|
+
Type: `Object`
|
|
33
|
+
The props to pass to the input element e.g. `className`, `placeholder`, `required`, `disabled`, `onBlur` etc.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var X=Object.create;var
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R(D,i){if(D){if(typeof D=="string")return S(D,i);var u=Object.prototype.toString.call(D).slice(8,-1);if(u==="Object"&&D.constructor&&(u=D.constructor.name),u==="Map"||u==="Set")return Array.from(D);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return S(D,i)}}function S(D,i){(i==null||i>D.length)&&(i=D.length);for(var u=0,t=new Array(i);u<i;u++)t[u]=D[u];return t}function j(D,i){var u=D==null?null:typeof Symbol<"u"&&D[Symbol.iterator]||D["@@iterator"];if(u!=null){var t,e,n,r,a=[],o=!0,s=!1;try{if(n=(u=u.call(D)).next,i===0){if(Object(u)!==u)return;o=!1}else for(;!(o=(t=n.call(u)).done)&&(a.push(t.value),a.length!==i);o=!0);}catch(C){s=!0,e=C}finally{try{if(!o&&u.return!=null&&(r=u.return(),Object(r)!==r))return}finally{if(s)throw e}}return a}}function b(D){if(Array.isArray(D))return D}function y(D,i){if(!(D instanceof i))throw new TypeError("Cannot call a class as a function")}function m(D,i){for(var u=0;u<i.length;u++){var t=i[u];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(D,k(t.key),t)}}function _(D,i,u){return i&&m(D.prototype,i),u&&m(D,u),Object.defineProperty(D,"prototype",{writable:!1}),D}function k(D){var i=K(D,"string");return typeof i=="symbol"?i:String(i)}function K(D,i){if(typeof D!="object"||D===null)return D;var u=D[Symbol.toPrimitive];if(u!==d){var t=u.call(D,i||"default");if(typeof t!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(D)}var g={getInstance:function(i){var u=i.getAttribute("data-intl-tel-input-id");return window.intlTelInputGlobals.instances[u]},instances:{},documentReady:function(){return document.readyState==="complete"}};typeof window=="object"&&(window.intlTelInputGlobals=g);var Y=0,z={allowDropdown:!0,autoPlaceholder:"polite",countrySearch:!0,containerClass:"",customPlaceholder:null,dropdownContainer:null,excludeCountries:[],fixDropdownWidth:!0,formatAsYouType:!0,formatOnDisplay:!0,geoIpLookup:null,hiddenInput:null,i18n:{},initialCountry:"",nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",preferredCountries:[],showFlags:!0,showSelectedDialCode:!1,useFullscreenPopup:typeof navigator<"u"&&typeof window<"u"?/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||window.innerWidth<=500:!1,utilsScript:""},Z=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],w=function(i){var u=window.intlTelInputGlobals.instances;Object.values(u).forEach(function(t){return t[i]()})},$=function(){function D(i){var u=arguments.length>1&&arguments[1]!==d?arguments[1]:{};y(this,D),this.id=Y++,this.telInput=i,this.activeItem=null,this.highlightedItem=null,this.options=Object.assign({},z,u),this.hadInitialPlaceholder=!!i.getAttribute("placeholder")}return _(D,[{key:"_init",value:function(){var u=this;this.options.useFullscreenPopup&&(this.options.fixDropdownWidth=!1),this.options.countrySearch&&!this.options.useFullscreenPopup&&(this.options.fixDropdownWidth=!0);var t=this.options.allowDropdown&&!this.options.showSelectedDialCode;!this.options.showFlags&&t&&(this.options.showFlags=!0),this.options.useFullscreenPopup&&!this.options.dropdownContainer&&(this.options.dropdownContainer=document.body),this.isRTL=!!this.telInput.closest("[dir=rtl]");var e=new Promise(function(r,a){u.resolveAutoCountryPromise=r,u.rejectAutoCountryPromise=a}),n=new Promise(function(r,a){u.resolveUtilsScriptPromise=r,u.rejectUtilsScriptPromise=a});this.promise=Promise.all([e,n]),this.selectedCountryData={},this._processCountryData(),this._generateMarkup(),this._setInitialState(),this._initListeners(),this._initRequests()}},{key:"_processCountryData",value:function(){this._processAllCountries(),this._processDialCodes(),this._processPreferredCountries(),this._translateCountryNames(),(this.options.onlyCountries.length||this.options.i18n)&&this.countries.sort(this._countryNameSort)}},{key:"_addToDialCodeMap",value:function(u,t,e){t.length>this.dialCodeMaxLen&&(this.dialCodeMaxLen=t.length),this.dialCodeToIso2Map.hasOwnProperty(t)||(this.dialCodeToIso2Map[t]=[]);for(var n=0;n<this.dialCodeToIso2Map[t].length;n++)if(this.dialCodeToIso2Map[t][n]===u)return;var r=e!==d?e:this.dialCodeToIso2Map[t].length;this.dialCodeToIso2Map[t][r]=u}},{key:"_processAllCountries",value:function(){if(this.options.onlyCountries.length){var u=this.options.onlyCountries.map(function(e){return e.toLowerCase()});this.countries=F.filter(function(e){return u.indexOf(e.iso2)>-1})}else if(this.options.excludeCountries.length){var t=this.options.excludeCountries.map(function(e){return e.toLowerCase()});this.countries=F.filter(function(e){return t.indexOf(e.iso2)===-1})}else this.countries=F}},{key:"_translateCountryNames",value:function(){for(var u=0;u<this.countries.length;u++){var t=this.countries[u].iso2.toLowerCase();this.options.i18n.hasOwnProperty(t)&&(this.countries[u].name=this.options.i18n[t])}}},{key:"_countryNameSort",value:function(u,t){return u.name<t.name?-1:u.name>t.name?1:0}},{key:"_processDialCodes",value:function(){this.dialCodes={},this.dialCodeMaxLen=0,this.dialCodeToIso2Map={};for(var u=0;u<this.countries.length;u++){var t=this.countries[u];this.dialCodes[t.dialCode]||(this.dialCodes[t.dialCode]=!0),this._addToDialCodeMap(t.iso2,t.dialCode,t.priority)}for(var e=0;e<this.countries.length;e++){var n=this.countries[e];if(n.areaCodes)for(var r=this.dialCodeToIso2Map[n.dialCode][0],a=0;a<n.areaCodes.length;a++){for(var o=n.areaCodes[a],s=1;s<o.length;s++){var C=n.dialCode+o.substr(0,s);this._addToDialCodeMap(r,C),this._addToDialCodeMap(n.iso2,C)}this._addToDialCodeMap(n.iso2,n.dialCode+o)}}}},{key:"_processPreferredCountries",value:function(){this.preferredCountries=[];for(var u=0;u<this.options.preferredCountries.length;u++){var t=this.options.preferredCountries[u].toLowerCase(),e=this._getCountryData(t,!0);e&&this.preferredCountries.push(e)}}},{key:"_createEl",value:function(u,t,e){var n=document.createElement(u);return t&&Object.entries(t).forEach(function(r){var a=O(r,2),o=a[0],s=a[1];return n.setAttribute(o,s)}),e&&e.appendChild(n),n}},{key:"_generateMarkup",value:function(){this.telInput.classList.add("iti__tel-input"),!this.telInput.hasAttribute("autocomplete")&&!(this.telInput.form&&this.telInput.form.hasAttribute("autocomplete"))&&this.telInput.setAttribute("autocomplete","off");var u=this.options,t=u.allowDropdown,e=u.showSelectedDialCode,n=u.showFlags,r=u.containerClass,a=u.hiddenInput,o=u.dropdownContainer,s=u.fixDropdownWidth,C=u.useFullscreenPopup,h=u.countrySearch,p=u.i18n,c="iti";t&&(c+=" iti--allow-dropdown"),e&&(c+=" iti--show-selected-dial-code"),n&&(c+=" iti--show-flags"),r&&(c+=" ".concat(r)),C||(c+=" iti--inline-dropdown");var B=this._createEl("div",{class:c});if(this.telInput.parentNode.insertBefore(B,this.telInput),(n||e)&&(this.flagsContainer=this._createEl("div",{class:"iti__flag-container"},B),this.selectedFlag=this._createEl("div",L({class:"iti__selected-flag"},t&&L({role:"button","aria-expanded":"false","aria-label":this.options.i18n.selectedCountryAriaLabel||"Selected country","aria-haspopup":h?"true":"listbox","aria-controls":h?"iti-".concat(this.id,"__dropdown-content"):"iti-".concat(this.id,"__country-listbox")},h||{role:"combobox"})),this.flagsContainer),this.selectedFlagInner=this._createEl("div",null,this.selectedFlag),this.selectedFlagA11yText=this._createEl("span",{class:"iti__a11y-text"},this.selectedFlagInner)),B.appendChild(this.telInput),this.selectedFlag&&this.telInput.disabled&&this.selectedFlag.setAttribute("aria-disabled","true"),e&&(this.selectedDialCode=this._createEl("div",{class:"iti__selected-dial-code"},this.selectedFlag)),t){this.telInput.disabled||this.selectedFlag.setAttribute("tabindex","0"),this.dropdownArrow=this._createEl("div",{class:"iti__arrow","aria-hidden":"true"},this.selectedFlag);var I=s?"":"iti--flexible-dropdown-width";if(this.dropdownContent=this._createEl("div",{id:"iti-".concat(this.id,"__dropdown-content"),class:"iti__dropdown-content iti__hide ".concat(I)}),h&&(this.searchInput=this._createEl("input",{type:"text",class:"iti__search-input",placeholder:p.searchPlaceholder||"Search",role:"combobox","aria-expanded":"true","aria-label":p.searchPlaceholder||"Search","aria-controls":"iti-".concat(this.id,"__country-listbox"),"aria-autocomplete":"list",autocomplete:"off"},this.dropdownContent),this.searchResultsA11yText=this._createEl("span",{class:"iti__a11y-text"},this.dropdownContent)),this.countryList=this._createEl("ul",{class:"iti__country-list",id:"iti-".concat(this.id,"__country-listbox"),role:"listbox","aria-label":p.countryListAriaLabel||"List of countries"},this.dropdownContent),this.preferredCountries.length&&!h&&(this._appendListItems(this.preferredCountries,"iti__preferred",!0),this._createEl("li",{class:"iti__divider","aria-hidden":"true"},this.countryList)),this._appendListItems(this.countries,"iti__standard"),h&&this._updateSearchResultsText(),o){var T="iti iti--container";C?T+=" iti--fullscreen-popup":T+=" iti--inline-dropdown",h&&(T+=" iti--country-search"),this.dropdown=this._createEl("div",{class:T}),this.dropdown.appendChild(this.dropdownContent)}else this.flagsContainer.appendChild(this.dropdownContent)}if(a){var Q=this.telInput.getAttribute("name"),N=a(Q);N.phone&&(this.hiddenInput=this._createEl("input",{type:"hidden",name:N.phone}),B.appendChild(this.hiddenInput)),N.country&&(this.hiddenInputCountry=this._createEl("input",{type:"hidden",name:N.country}),B.appendChild(this.hiddenInputCountry))}}},{key:"_appendListItems",value:function(u,t,e){for(var n=0;n<u.length;n++){var r=u[n],a=e?"-preferred":"",o=this._createEl("li",{id:"iti-".concat(this.id,"__item-").concat(r.iso2).concat(a),class:"iti__country ".concat(t),tabindex:"-1",role:"option","data-dial-code":r.dialCode,"data-country-code":r.iso2,"aria-selected":"false"},this.countryList);r.nodeById[this.id]=o;var s="";this.options.showFlags&&(s+="<div class='iti__flag-box'><div class='iti__flag iti__".concat(r.iso2,"'></div></div>")),s+="<span class='iti__country-name'>".concat(r.name,"</span>"),s+="<span class='iti__dial-code'>+".concat(r.dialCode,"</span>"),o.insertAdjacentHTML("beforeend",s)}}},{key:"_setInitialState",value:function(){var u=arguments.length>0&&arguments[0]!==d?arguments[0]:!1,t=this.telInput.getAttribute("value"),e=this.telInput.value,n=t&&t.charAt(0)==="+"&&(!e||e.charAt(0)!=="+"),r=n?t:e,a=this._getDialCode(r),o=this._isRegionlessNanp(r),s=this.options.initialCountry;if(a&&!o)this._updateFlagFromNumber(r);else if(s!=="auto"||u){var C=s?s.toLowerCase():"",h=C&&this._getCountryData(C,!0);h?this._setCountry(C):a&&o?this._setCountry("us"):this._setCountry()}r&&this._updateValFromNumber(r)}},{key:"_initListeners",value:function(){this._initKeyListeners(),this.options.allowDropdown&&this._initDropdownListeners(),(this.hiddenInput||this.hiddenInputCountry)&&this.telInput.form&&this._initHiddenInputListener()}},{key:"_initHiddenInputListener",value:function(){var u=this;this._handleHiddenInputSubmit=function(){u.hiddenInput&&(u.hiddenInput.value=u.getNumber()),u.hiddenInputCountry&&(u.hiddenInputCountry.value=u.getSelectedCountryData().iso2)},this.telInput.form.addEventListener("submit",this._handleHiddenInputSubmit)}},{key:"_initDropdownListeners",value:function(){var u=this;this._handleLabelClick=function(e){u.dropdownContent.classList.contains("iti__hide")?u.telInput.focus():e.preventDefault()};var t=this.telInput.closest("label");t&&t.addEventListener("click",this._handleLabelClick),this._handleClickSelectedFlag=function(){u.dropdownContent.classList.contains("iti__hide")&&!u.telInput.disabled&&!u.telInput.readOnly&&u._openDropdown()},this.selectedFlag.addEventListener("click",this._handleClickSelectedFlag),this._handleFlagsContainerKeydown=function(e){var n=u.dropdownContent.classList.contains("iti__hide");n&&["ArrowUp","ArrowDown"," ","Enter"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),u._openDropdown()),e.key==="Tab"&&u._closeDropdown()},this.flagsContainer.addEventListener("keydown",this._handleFlagsContainerKeydown)}},{key:"_initRequests",value:function(){var u=this;this.options.utilsScript&&!window.intlTelInputUtils?window.intlTelInputGlobals.documentReady()?window.intlTelInputGlobals.loadUtils(this.options.utilsScript):window.addEventListener("load",function(){window.intlTelInputGlobals.loadUtils(u.options.utilsScript)}):this.resolveUtilsScriptPromise(),this.options.initialCountry==="auto"&&!this.selectedCountryData.iso2?this._loadAutoCountry():this.resolveAutoCountryPromise()}},{key:"_loadAutoCountry",value:function(){var u=this;window.intlTelInputGlobals.autoCountry?this.handleAutoCountry():window.intlTelInputGlobals.startedLoadingAutoCountry||(window.intlTelInputGlobals.startedLoadingAutoCountry=!0,typeof this.options.geoIpLookup=="function"&&this.options.geoIpLookup(function(){var t=arguments.length>0&&arguments[0]!==d?arguments[0]:"",e=t.toLowerCase(),n=e&&u._getCountryData(e,!0);n?(window.intlTelInputGlobals.autoCountry=e,setTimeout(function(){return w("handleAutoCountry")})):(u._setInitialState(!0),w("rejectAutoCountryPromise"))},function(){return w("rejectAutoCountryPromise")}))}},{key:"_initKeyListeners",value:function(){var u=this,t=!1;this._handleKeyEvent=function(e){u._updateFlagFromNumber(u.telInput.value)&&u._triggerCountryChange();var n=e&&e.data&&/[^+0-9]/.test(e.data),r=e&&e.inputType==="insertFromPaste"&&u.telInput.value;if(n||r?t=!0:/[^+0-9]/.test(u.telInput.value)||(t=!1),u.options.formatAsYouType&&!t&&!r){var a=u.telInput.selectionStart,o=u.telInput.value.substring(0,a),s=o.replace(/[^+0-9]/g,"").length,C=e&&e.inputType==="deleteContentForward",h=u._formatNumberAsYouType(),p=u._translateCursorPosition(s,h,a,C);u.telInput.value=h,u.telInput.setSelectionRange(p,p)}},this.telInput.addEventListener("input",this._handleKeyEvent)}},{key:"_translateCursorPosition",value:function(u,t,e,n){if(e===0&&!n)return 0;for(var r=0,a=0;a<t.length;a++){if(/[+0-9]/.test(t[a])&&r++,r===u&&!n)return a+1;if(n&&r===u+1)return a}return t.length}},{key:"_cap",value:function(u){var t=this.telInput.getAttribute("maxlength");return t&&u.length>t?u.substr(0,t):u}},{key:"_removeEmptyDialCode",value:function(){if(this.telInput.value.charAt(0)==="+"){var u=this._getNumeric(this.telInput.value);(!u||this.selectedCountryData.dialCode===u)&&(this.telInput.value="")}}},{key:"_getNumeric",value:function(u){return u.replace(/\D/g,"")}},{key:"_trigger",value:function(u){var t=new Event(u,{bubbles:!0,cancelable:!0});this.telInput.dispatchEvent(t)}},{key:"_openDropdown",value:function(){var u=this.options,t=u.fixDropdownWidth,e=u.countrySearch;if(t&&(this.dropdownContent.style.width="".concat(this.telInput.offsetWidth,"px")),this.dropdownContent.classList.remove("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","true"),this._setDropdownPosition(),this.activeItem&&!e)this._highlightListItem(this.activeItem,!1),this._scrollTo(this.activeItem,!0);else{var n=this.countryList.firstElementChild;n&&(this._highlightListItem(n,!1),this.countryList.scrollTop=0),e&&this.searchInput.focus()}this._bindDropdownListeners(),this.dropdownArrow.classList.add("iti__arrow--up"),this._trigger("open:countrydropdown")}},{key:"_toggleClass",value:function(u,t,e){e&&!u.classList.contains(t)?u.classList.add(t):!e&&u.classList.contains(t)&&u.classList.remove(t)}},{key:"_setDropdownPosition",value:function(){var u=this;if(this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.dropdown),!this.options.useFullscreenPopup){var t=this.telInput.getBoundingClientRect(),e=document.documentElement.scrollTop,n=t.top+e,r=this.dropdownContent.offsetHeight,a=n+this.telInput.offsetHeight+r<e+window.innerHeight,o=n-r>e,s=!this.options.countrySearch&&!a&&o;if(this._toggleClass(this.dropdownContent,"iti__dropdown-content--dropup",s),this.options.dropdownContainer){var C=s?0:this.telInput.offsetHeight;this.dropdown.style.top="".concat(n+C,"px"),this.dropdown.style.left="".concat(t.left+document.body.scrollLeft,"px"),this._handleWindowScroll=function(){return u._closeDropdown()},window.addEventListener("scroll",this._handleWindowScroll)}}}},{key:"_bindDropdownListeners",value:function(){var u=this;this._handleMouseoverCountryList=function(o){var s=o.target.closest(".iti__country");s&&u._highlightListItem(s,!1)},this.countryList.addEventListener("mouseover",this._handleMouseoverCountryList),this._handleClickCountryList=function(o){var s=o.target.closest(".iti__country");s&&u._selectListItem(s)},this.countryList.addEventListener("click",this._handleClickCountryList);var t=!0;this._handleClickOffToClose=function(){t||u._closeDropdown(),t=!1},document.documentElement.addEventListener("click",this._handleClickOffToClose);var e="",n=null;if(this._handleKeydownOnDropdown=function(o){["ArrowUp","ArrowDown","Enter","Escape"].includes(o.key)&&(o.preventDefault(),o.stopPropagation(),o.key==="ArrowUp"||o.key==="ArrowDown"?u._handleUpDownKey(o.key):o.key==="Enter"?u._handleEnterKey():o.key==="Escape"&&u._closeDropdown()),!u.options.countrySearch&&/^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(o.key)&&(o.stopPropagation(),n&&clearTimeout(n),e+=o.key.toLowerCase(),u._searchForCountry(e),n=setTimeout(function(){e=""},1e3))},document.addEventListener("keydown",this._handleKeydownOnDropdown),this.options.countrySearch){var r=function(){var s=u.searchInput.value.trim();s?u._filterCountries(s):u._filterCountries("",!0)},a=null;this._handleSearchChange=function(){a&&clearTimeout(a),a=setTimeout(function(){r(),a=null},100)},this.searchInput.addEventListener("input",this._handleSearchChange),this.searchInput.addEventListener("click",function(o){return o.stopPropagation()})}}},{key:"_normaliseString",value:function(){var u=arguments.length>0&&arguments[0]!==d?arguments[0]:"";return u.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}},{key:"_filterCountries",value:function(u){var t=arguments.length>1&&arguments[1]!==d?arguments[1]:!1,e=!0;this.countryList.innerHTML="";for(var n=this._normaliseString(u),r=0;r<this.countries.length;r++){var a=this.countries[r],o=this._normaliseString(a.name),s="+".concat(a.dialCode);(t||o.includes(n)||s.includes(n)||a.iso2.includes(n))&&(this.countryList.appendChild(a.nodeById[this.id]),e&&(this._highlightListItem(a.nodeById[this.id],!1),e=!1))}this.countryList.scrollTop=0,this._updateSearchResultsText()}},{key:"_updateSearchResultsText",value:function(){var u=this.options.i18n,t=this.countryList.childElementCount,e;t===0?e=u.zeroSearchResults||"No results found":t===1?e=u.oneSearchResult||"1 result found":e=u.multipleSearchResults?u.multipleSearchResults.replace("${count}",t):"".concat(t," results found"),this.searchResultsA11yText.textContent=e}},{key:"_handleUpDownKey",value:function(u){var t=u==="ArrowUp"?this.highlightedItem.previousElementSibling:this.highlightedItem.nextElementSibling;if(t?t.classList.contains("iti__divider")&&(t=u==="ArrowUp"?t.previousElementSibling:t.nextElementSibling):this.countryList.childElementCount>1&&(t=u==="ArrowUp"?this.countryList.lastElementChild:this.countryList.firstElementChild),t){this._scrollTo(t,!1);var e=!this.options.countrySearch;this._highlightListItem(t,e)}}},{key:"_handleEnterKey",value:function(){this.highlightedItem&&this._selectListItem(this.highlightedItem)}},{key:"_searchForCountry",value:function(u){for(var t=0;t<this.countries.length;t++)if(this._startsWith(this.countries[t].name,u)){var e=this.countries[t].nodeById[this.id];this._highlightListItem(e,!1),this._scrollTo(e,!0);break}}},{key:"_startsWith",value:function(u,t){return u.substr(0,t.length).toLowerCase()===t}},{key:"_updateValFromNumber",value:function(u){var t=u;if(this.options.formatOnDisplay&&window.intlTelInputUtils&&this.selectedCountryData){var e=this.options.nationalMode||t.charAt(0)!=="+"&&!this.options.showSelectedDialCode,n=intlTelInputUtils.numberFormat,r=n.NATIONAL,a=n.INTERNATIONAL,o=e?r:a;t=intlTelInputUtils.formatNumber(t,this.selectedCountryData.iso2,o)}t=this._beforeSetNumber(t),this.telInput.value=t}},{key:"_updateFlagFromNumber",value:function(u){var t=u.indexOf("+"),e=t?u.substring(t):u,n=this.selectedCountryData.dialCode,r=n==="1";e&&r&&e.charAt(0)!=="+"&&(e.charAt(0)!=="1"&&(e="1".concat(e)),e="+".concat(e)),this.options.showSelectedDialCode&&n&&e.charAt(0)!=="+"&&(e="+".concat(n).concat(e));var a=this._getDialCode(e,!0),o=this._getNumeric(e),s=null;if(a){var C=this.dialCodeToIso2Map[this._getNumeric(a)],h=C.indexOf(this.selectedCountryData.iso2)!==-1&&o.length<=a.length-1,p=n==="1"&&this._isRegionlessNanp(o);if(!p&&!h){for(var c=0;c<C.length;c++)if(C[c]){s=C[c];break}}}else e.charAt(0)==="+"&&o.length?s="":(!e||e==="+")&&!this.selectedCountryData.iso2&&(s=this.defaultCountry);return s!==null?this._setCountry(s):!1}},{key:"_isRegionlessNanp",value:function(u){var t=this._getNumeric(u);if(t.charAt(0)==="1"){var e=t.substr(1,3);return Z.indexOf(e)!==-1}return!1}},{key:"_highlightListItem",value:function(u,t){var e=this.highlightedItem;e&&(e.classList.remove("iti__highlight"),e.setAttribute("aria-selected","false")),this.highlightedItem=u,this.highlightedItem.classList.add("iti__highlight"),this.highlightedItem.setAttribute("aria-selected","true"),this.selectedFlag.setAttribute("aria-activedescendant",u.getAttribute("id")),this.options.countrySearch&&this.searchInput.setAttribute("aria-activedescendant",u.getAttribute("id")),t&&this.highlightedItem.focus()}},{key:"_getCountryData",value:function(u,t){for(var e=0;e<this.countries.length;e++)if(this.countries[e].iso2===u)return this.countries[e];if(t)return null;throw new Error("No country data for '".concat(u,"'"))}},{key:"_setCountry",value:function(u){var t=this.options,e=t.allowDropdown,n=t.showSelectedDialCode,r=t.showFlags,a=t.countrySearch,o=t.i18n,s=this.selectedCountryData.iso2?this.selectedCountryData:{};if(this.selectedCountryData=u?this._getCountryData(u,!1):{},this.selectedCountryData.iso2&&(this.defaultCountry=this.selectedCountryData.iso2),this.selectedFlagInner){var C="",h="";u?r&&(C="iti__flag iti__".concat(u),h="".concat(this.selectedCountryData.name," +").concat(this.selectedCountryData.dialCode)):(C="iti__flag iti__globe",h=o.noCountrySelected||"No country selected"),this.selectedFlagInner.className=C,this.selectedFlagA11yText.textContent=h}if(this._setSelectedCountryFlagTitleAttribute(u,n),n){var p=this.selectedCountryData.dialCode?"+".concat(this.selectedCountryData.dialCode):"";this.selectedDialCode.innerHTML=p;var c=this.selectedFlag.offsetWidth||this._getHiddenSelectedFlagWidth();this.isRTL?this.telInput.style.paddingRight="".concat(c+6,"px"):this.telInput.style.paddingLeft="".concat(c+6,"px")}if(this._updatePlaceholder(),e&&!a){var B=this.activeItem;if(B&&(B.classList.remove("iti__active"),B.setAttribute("aria-selected","false")),u){var I=this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(u,"-preferred"))||this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(u));I.setAttribute("aria-selected","true"),I.classList.add("iti__active"),this.activeItem=I}}return s.iso2!==u}},{key:"_setSelectedCountryFlagTitleAttribute",value:function(u,t){if(this.selectedFlag){var e;u&&!t?e="".concat(this.selectedCountryData.name,": +").concat(this.selectedCountryData.dialCode):u?e=this.selectedCountryData.name:e="Unknown",this.selectedFlag.setAttribute("title",e)}}},{key:"_getHiddenSelectedFlagWidth",value:function(){var u=this.telInput.parentNode.cloneNode();u.style.visibility="hidden",document.body.appendChild(u);var t=this.flagsContainer.cloneNode();u.appendChild(t);var e=this.selectedFlag.cloneNode(!0);t.appendChild(e);var n=e.offsetWidth;return u.parentNode.removeChild(u),n}},{key:"_updatePlaceholder",value:function(){var u=this.options,t=u.autoPlaceholder,e=u.placeholderNumberType,n=u.nationalMode,r=u.customPlaceholder,a=t==="aggressive"||!this.hadInitialPlaceholder&&t==="polite";if(window.intlTelInputUtils&&a){var o=intlTelInputUtils.numberType[e],s=this.selectedCountryData.iso2?intlTelInputUtils.getExampleNumber(this.selectedCountryData.iso2,n,o):"";s=this._beforeSetNumber(s),typeof r=="function"&&(s=r(s,this.selectedCountryData)),this.telInput.setAttribute("placeholder",s)}}},{key:"_selectListItem",value:function(u){var t=this._setCountry(u.getAttribute("data-country-code"));this._closeDropdown(),this._updateDialCode(u.getAttribute("data-dial-code")),this.telInput.focus(),t&&this._triggerCountryChange()}},{key:"_closeDropdown",value:function(){this.dropdownContent.classList.add("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","false"),this.selectedFlag.removeAttribute("aria-activedescendant"),this.highlightedItem&&this.highlightedItem.setAttribute("aria-selected","false"),this.options.countrySearch&&this.searchInput.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")}},{key:"_scrollTo",value:function(u,t){var e=this.countryList,n=document.documentElement.scrollTop,r=e.offsetHeight,a=e.getBoundingClientRect().top+n,o=a+r,s=u.offsetHeight,C=u.getBoundingClientRect().top+n,h=C+s,p=C-a+e.scrollTop,c=r/2-s/2;if(C<a)t&&(p-=c),e.scrollTop=p;else if(h>o){t&&(p+=c);var B=r-s;e.scrollTop=p-B}}},{key:"_updateDialCode",value:function(u){var t=this.telInput.value,e="+".concat(u),n;if(t.charAt(0)==="+"){var r=this._getDialCode(t);r?n=t.replace(r,e):n=e,this.telInput.value=n}}},{key:"_getDialCode",value:function(u,t){var e="";if(u.charAt(0)==="+")for(var n="",r=0;r<u.length;r++){var a=u.charAt(r);if(!isNaN(parseInt(a,10))){if(n+=a,t)this.dialCodeToIso2Map[n]&&(e=u.substr(0,r+1));else if(this.dialCodes[n]){e=u.substr(0,r+1);break}if(n.length===this.dialCodeMaxLen)break}}return e}},{key:"_getFullNumber",value:function(){var u=this.telInput.value.trim(),t=this.selectedCountryData.dialCode,e,n=this._getNumeric(u);return this.options.showSelectedDialCode&&!this.options.nationalMode&&u.charAt(0)!=="+"&&t&&n?e="+".concat(t):e="",e+u}},{key:"_beforeSetNumber",value:function(u){var t=u;if(this.options.showSelectedDialCode){var e=this._getDialCode(t);if(e){e="+".concat(this.selectedCountryData.dialCode);var n=t[e.length]===" "||t[e.length]==="-"?e.length+1:e.length;t=t.substr(n)}}return this._cap(t)}},{key:"_triggerCountryChange",value:function(){this._trigger("countrychange")}},{key:"_formatNumberAsYouType",value:function(){var u=this._getFullNumber(),t=window.intlTelInputUtils?intlTelInputUtils.formatNumberAsYouType(u,this.selectedCountryData.iso2):u,e=this.selectedCountryData.dialCode;if(this.options.showSelectedDialCode&&!this.options.nationalMode&&this.telInput.value.charAt(0)!=="+"&&t.includes("+".concat(e))){var n=t.split("+".concat(e))[1]||"";return n.trim()}return t}},{key:"handleAutoCountry",value:function(){this.options.initialCountry==="auto"&&(this.defaultCountry=window.intlTelInputGlobals.autoCountry,this.telInput.value||this.setCountry(this.defaultCountry),this.resolveAutoCountryPromise())}},{key:"handleUtils",value:function(){window.intlTelInputUtils&&(this.telInput.value&&this._updateValFromNumber(this.telInput.value),this.selectedCountryData.iso2&&this._updatePlaceholder()),this.resolveUtilsScriptPromise()}},{key:"destroy",value:function(){if(this.options.allowDropdown){this._closeDropdown(),this.selectedFlag.removeEventListener("click",this._handleClickSelectedFlag),this.flagsContainer.removeEventListener("keydown",this._handleFlagsContainerKeydown);var u=this.telInput.closest("label");u&&u.removeEventListener("click",this._handleLabelClick)}var t=this.telInput.form;this._handleHiddenInputSubmit&&t&&t.removeEventListener("submit",this._handleHiddenInputSubmit),this.telInput.removeEventListener("input",this._handleKeyEvent),this.telInput.removeAttribute("data-intl-tel-input-id");var e=this.telInput.parentNode;e.parentNode.insertBefore(this.telInput,e),e.parentNode.removeChild(e),delete window.intlTelInputGlobals.instances[this.id]}},{key:"getExtension",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getExtension(this._getFullNumber(),this.selectedCountryData.iso2):""}},{key:"getNumber",value:function(u){if(window.intlTelInputUtils){var t=this.selectedCountryData.iso2;return intlTelInputUtils.formatNumber(this._getFullNumber(),t,u)}return""}},{key:"getNumberType",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getNumberType(this._getFullNumber(),this.selectedCountryData.iso2):-99}},{key:"getSelectedCountryData",value:function(){return this.selectedCountryData}},{key:"getValidationError",value:function(){if(window.intlTelInputUtils){var u=this.selectedCountryData.iso2;return intlTelInputUtils.getValidationError(this._getFullNumber(),u)}return-99}},{key:"isValidNumber",value:function(){var u=arguments.length>0&&arguments[0]!==d?arguments[0]:!0,t=this._getFullNumber();return/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\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DEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])/.test(t)?!1:window.intlTelInputUtils?intlTelInputUtils.isPossibleNumber(t,this.selectedCountryData.iso2,u):null}},{key:"isValidNumberPrecise",value:function(){var u=this._getFullNumber();return/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4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\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])/.test(u)?!1:window.intlTelInputUtils?intlTelInputUtils.isValidNumber(u,this.selectedCountryData.iso2):null}},{key:"setCountry",value:function(u){var t=u.toLowerCase();this.selectedCountryData.iso2!==t&&(this._setCountry(t),this._updateDialCode(this.selectedCountryData.dialCode),this._triggerCountryChange())}},{key:"setNumber",value:function(u){var t=this._updateFlagFromNumber(u);this._updateValFromNumber(u),t&&this._triggerCountryChange()}},{key:"setPlaceholderNumberType",value:function(u){this.options.placeholderNumberType=u,this._updatePlaceholder()}}]),D}();g.getCountryData=function(){return F};var J=function(i,u,t){var e=document.createElement("script");e.onload=function(){w("handleUtils"),u&&u()},e.onerror=function(){w("rejectUtilsScriptPromise"),t&&t()},e.className="iti-load-utils",e.async=!0,e.src=i,document.body.appendChild(e)};return g.loadUtils=function(D){return!window.intlTelInputUtils&&!window.intlTelInputGlobals.startedLoadingUtilsScript?(window.intlTelInputGlobals.startedLoadingUtilsScript=!0,new Promise(function(i,u){return J(D,i,u)})):null},g.defaults=z,g.version="20.0.5",function(D,i){var u=new $(D,i);return u._init(),D.setAttribute("data-intl-tel-input-id",u.id),window.intlTelInputGlobals.instances[u.id]=u,u}}()})});var ou={};Du(ou,{default:()=>au});module.exports=ru(ou);var v=G(require("react")),l=G(require("prop-types")),q=G(W()),V=({initialValue:d,onChangeNumber:F,onChangeCountry:A,onChangeValidity:E,onChangeErrorCode:f,usePreciseValidation:L,initOptions:M,className:O,disabled:U,onFocus:R,onBlur:S,placeholder:j})=>{let b=(0,v.useRef)(null),y=(0,v.useRef)(null),m=()=>{let _=y.current.getNumber(),k=y.current.getSelectedCountryData().iso2;if(F(_),A(k),L?y.current.isValidNumberPrecise():y.current.isValidNumber())E(!0),f(null);else{let g=y.current.getValidationError();E(!1),f(g)}};return(0,v.useEffect)(()=>{let _=b.current;return y.current=(0,q.default)(b.current,M),_.addEventListener("countrychange",m),()=>{_.removeEventListener("countrychange",m),y.current.destroy()}},[]),v.default.createElement("input",{type:"tel",ref:b,onInput:m,defaultValue:d,className:O,disabled:U,onFocus:R,onBlur:S,placeholder:j})};V.propTypes={initialValue:l.default.string,placeholder:l.default.string,onChangeNumber:l.default.func,onChangeCountry:l.default.func,onChangeValidity:l.default.func,onChangeErrorCode:l.default.func,usePreciseValidation:l.default.bool,initOptions:l.default.shape({allowDropdown:l.default.bool,autoPlaceholder:l.default.string,containerClass:l.default.string,countrySearch:l.default.bool,customPlaceholder:l.default.func,dropdownContainer:l.default.node,excludeCountries:l.default.arrayOf(l.default.string),fixDropdownWidth:l.default.bool,formatAsYouType:l.default.bool,formatOnDisplay:l.default.bool,geoIpLookup:l.default.func,hiddenInput:l.default.func,i18n:l.default.objectOf(l.default.string),initialCountry:l.default.string,nationalMode:l.default.bool,onlyCountries:l.default.arrayOf(l.default.string),placeholderNumberType:l.default.string,preferredCountries:l.default.arrayOf(l.default.string),showFlags:l.default.bool,showSelectedDialCode:l.default.bool,useFullscreenPopup:l.default.bool,utilsScript:l.default.string}),className:l.default.string,disabled:l.default.bool,onFocus:l.default.func,onBlur:l.default.func};V.defaultProps={initialValue:"",placeholder:"",onChangeNumber:()=>{},onChangeCountry:()=>{},onChangeValidity:()=>{},onChangeErrorCode:()=>{},usePreciseValidation:!1,initOptions:{},className:"",disabled:!1,onFocus:()=>{},onBlur:()=>{}};var au=V;
|
|
1
|
+
var X=Object.create;var N=Object.defineProperty;var uu=Object.getOwnPropertyDescriptor;var tu=Object.getOwnPropertyNames;var eu=Object.getPrototypeOf,iu=Object.prototype.hasOwnProperty;var nu=(C,h)=>()=>(h||C((h={exports:{}}).exports,h),h.exports),Du=(C,h)=>{for(var p in h)N(C,p,{get:h[p],enumerable:!0})},W=(C,h,p,f)=>{if(h&&typeof h=="object"||typeof h=="function")for(let B of tu(h))!iu.call(C,B)&&B!==p&&N(C,B,{get:()=>h[B],enumerable:!(f=uu(h,B))||f.enumerable});return C};var V=(C,h,p)=>(p=C!=null?X(eu(C)):{},W(h||!C||!C.__esModule?N(p,"default",{value:C,enumerable:!0}):p,C)),ru=C=>W(N({},"__esModule",{value:!0}),C);var q=nu((lu,P)=>{(function(C){typeof P=="object"&&P.exports?P.exports=C():window.intlTelInput=C()})(function(C){"use strict";return function(){for(var h=[["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"]]],p=0;p<h.length;p++){var f=h[p];h[p]={name:f[0],iso2:f[1],dialCode:f[2],priority:f[3]||0,areaCodes:f[4]||null,nodeById:{}}}function B(r,i){var u=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);i&&(t=t.filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})),u.push.apply(u,t)}return u}function L(r){for(var i=1;i<arguments.length;i++){var u=arguments[i]!=null?arguments[i]:{};i%2?B(Object(u),!0).forEach(function(t){x(r,t,u[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(u)):B(Object(u)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(u,t))})}return r}function x(r,i,u){return i=g(i),i in r?Object.defineProperty(r,i,{value:u,enumerable:!0,configurable:!0,writable:!0}):r[i]=u,r}function M(r,i){return j(r)||R(r,i)||U(r,i)||O()}function O(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U(r,i){if(r){if(typeof r=="string")return S(r,i);var u=Object.prototype.toString.call(r).slice(8,-1);if(u==="Object"&&r.constructor&&(u=r.constructor.name),u==="Map"||u==="Set")return Array.from(r);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return S(r,i)}}function S(r,i){(i==null||i>r.length)&&(i=r.length);for(var u=0,t=new Array(i);u<i;u++)t[u]=r[u];return t}function R(r,i){var u=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(u!=null){var t,e,n,a,D=[],o=!0,s=!1;try{if(n=(u=u.call(r)).next,i===0){if(Object(u)!==u)return;o=!1}else for(;!(o=(t=n.call(u)).done)&&(D.push(t.value),D.length!==i);o=!0);}catch(d){s=!0,e=d}finally{try{if(!o&&u.return!=null&&(a=u.return(),Object(a)!==a))return}finally{if(s)throw e}}return D}}function j(r){if(Array.isArray(r))return r}function b(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function v(r,i){for(var u=0;u<i.length;u++){var t=i[u];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(r,g(t.key),t)}}function w(r,i,u){return i&&v(r.prototype,i),u&&v(r,u),Object.defineProperty(r,"prototype",{writable:!1}),r}function g(r){var i=G(r,"string");return typeof i=="symbol"?i:String(i)}function G(r,i){if(typeof r!="object"||r===null)return r;var u=r[Symbol.toPrimitive];if(u!==C){var t=u.call(r,i||"default");if(typeof t!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}var _={getInstance:function(i){var u=i.getAttribute("data-intl-tel-input-id");return window.intlTelInputGlobals.instances[u]},instances:{},documentReady:function(){return document.readyState==="complete"}};typeof window=="object"&&(window.intlTelInputGlobals=_);var K=0,H={allowDropdown:!0,autoPlaceholder:"polite",countrySearch:!0,containerClass:"",customPlaceholder:null,dropdownContainer:null,excludeCountries:[],fixDropdownWidth:!0,formatAsYouType:!0,formatOnDisplay:!0,geoIpLookup:null,hiddenInput:null,i18n:{},initialCountry:"",nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",preferredCountries:[],showFlags:!0,showSelectedDialCode:!1,strictMode:!1,useFullscreenPopup:typeof navigator<"u"&&typeof window<"u"?/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||window.innerWidth<=500:!1,utilsScript:""},$=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],I=function(i){var u=window.intlTelInputGlobals.instances;Object.values(u).forEach(function(t){return t[i]()})},Z=function(){function r(i){var u=arguments.length>1&&arguments[1]!==C?arguments[1]:{};b(this,r),this.id=K++,this.telInput=i,this.activeItem=null,this.highlightedItem=null,this.options=Object.assign({},H,u),this.hadInitialPlaceholder=!!i.getAttribute("placeholder")}return w(r,[{key:"_init",value:function(){var u=this;this.options.useFullscreenPopup&&(this.options.fixDropdownWidth=!1),this.options.countrySearch&&!this.options.useFullscreenPopup&&(this.options.fixDropdownWidth=!0);var t=this.options.allowDropdown&&!this.options.showSelectedDialCode;!this.options.showFlags&&t&&(this.options.showFlags=!0),this.options.useFullscreenPopup&&!this.options.dropdownContainer&&(this.options.dropdownContainer=document.body),this.isRTL=!!this.telInput.closest("[dir=rtl]");var e=new Promise(function(a,D){u.resolveAutoCountryPromise=a,u.rejectAutoCountryPromise=D}),n=new Promise(function(a,D){u.resolveUtilsScriptPromise=a,u.rejectUtilsScriptPromise=D});this.promise=Promise.all([e,n]),this.selectedCountryData={},this._processCountryData(),this._generateMarkup(),this._setInitialState(),this._initListeners(),this._initRequests()}},{key:"_processCountryData",value:function(){this._processAllCountries(),this._processDialCodes(),this._processPreferredCountries(),this._translateCountryNames(),(this.options.onlyCountries.length||this.options.i18n)&&this.countries.sort(this._countryNameSort)}},{key:"_addToDialCodeMap",value:function(u,t,e){t.length>this.dialCodeMaxLen&&(this.dialCodeMaxLen=t.length),this.dialCodeToIso2Map.hasOwnProperty(t)||(this.dialCodeToIso2Map[t]=[]);for(var n=0;n<this.dialCodeToIso2Map[t].length;n++)if(this.dialCodeToIso2Map[t][n]===u)return;var a=e!==C?e:this.dialCodeToIso2Map[t].length;this.dialCodeToIso2Map[t][a]=u}},{key:"_processAllCountries",value:function(){if(this.options.onlyCountries.length){var u=this.options.onlyCountries.map(function(e){return e.toLowerCase()});this.countries=h.filter(function(e){return u.indexOf(e.iso2)>-1})}else if(this.options.excludeCountries.length){var t=this.options.excludeCountries.map(function(e){return e.toLowerCase()});this.countries=h.filter(function(e){return t.indexOf(e.iso2)===-1})}else this.countries=h}},{key:"_translateCountryNames",value:function(){for(var u=0;u<this.countries.length;u++){var t=this.countries[u].iso2.toLowerCase();this.options.i18n.hasOwnProperty(t)&&(this.countries[u].name=this.options.i18n[t])}}},{key:"_countryNameSort",value:function(u,t){return u.name<t.name?-1:u.name>t.name?1:0}},{key:"_processDialCodes",value:function(){this.dialCodes={},this.dialCodeMaxLen=0,this.dialCodeToIso2Map={};for(var u=0;u<this.countries.length;u++){var t=this.countries[u];this.dialCodes[t.dialCode]||(this.dialCodes[t.dialCode]=!0),this._addToDialCodeMap(t.iso2,t.dialCode,t.priority)}for(var e=0;e<this.countries.length;e++){var n=this.countries[e];if(n.areaCodes)for(var a=this.dialCodeToIso2Map[n.dialCode][0],D=0;D<n.areaCodes.length;D++){for(var o=n.areaCodes[D],s=1;s<o.length;s++){var d=n.dialCode+o.substr(0,s);this._addToDialCodeMap(a,d),this._addToDialCodeMap(n.iso2,d)}this._addToDialCodeMap(n.iso2,n.dialCode+o)}}}},{key:"_processPreferredCountries",value:function(){this.preferredCountries=[];for(var u=0;u<this.options.preferredCountries.length;u++){var t=this.options.preferredCountries[u].toLowerCase(),e=this._getCountryData(t,!0);e&&this.preferredCountries.push(e)}}},{key:"_createEl",value:function(u,t,e){var n=document.createElement(u);return t&&Object.entries(t).forEach(function(a){var D=M(a,2),o=D[0],s=D[1];return n.setAttribute(o,s)}),e&&e.appendChild(n),n}},{key:"_generateMarkup",value:function(){this.telInput.classList.add("iti__tel-input"),!this.telInput.hasAttribute("autocomplete")&&!(this.telInput.form&&this.telInput.form.hasAttribute("autocomplete"))&&this.telInput.setAttribute("autocomplete","off");var u=this.options,t=u.allowDropdown,e=u.showSelectedDialCode,n=u.showFlags,a=u.containerClass,D=u.hiddenInput,o=u.dropdownContainer,s=u.fixDropdownWidth,d=u.useFullscreenPopup,c=u.countrySearch,A=u.i18n,F="iti";t&&(F+=" iti--allow-dropdown"),e&&(F+=" iti--show-selected-dial-code"),n&&(F+=" iti--show-flags"),a&&(F+=" ".concat(a)),d||(F+=" iti--inline-dropdown");var E=this._createEl("div",{class:F});if(this.telInput.parentNode.insertBefore(E,this.telInput),(n||e)&&(this.flagsContainer=this._createEl("div",{class:"iti__flag-container"},E),this.selectedFlag=this._createEl("div",L({class:"iti__selected-flag"},t&&L({role:"button","aria-expanded":"false","aria-label":this.options.i18n.selectedCountryAriaLabel||"Selected country","aria-haspopup":c?"true":"listbox","aria-controls":c?"iti-".concat(this.id,"__dropdown-content"):"iti-".concat(this.id,"__country-listbox")},c||{role:"combobox"})),this.flagsContainer),this.selectedFlagInner=this._createEl("div",null,this.selectedFlag),this.selectedFlagA11yText=this._createEl("span",{class:"iti__a11y-text"},this.selectedFlagInner)),E.appendChild(this.telInput),this.selectedFlag&&this.telInput.disabled&&this.selectedFlag.setAttribute("aria-disabled","true"),e&&(this.selectedDialCode=this._createEl("div",{class:"iti__selected-dial-code"},this.selectedFlag)),t){this.telInput.disabled||this.selectedFlag.setAttribute("tabindex","0"),this.dropdownArrow=this._createEl("div",{class:"iti__arrow","aria-hidden":"true"},this.selectedFlag);var y=s?"":"iti--flexible-dropdown-width";if(this.dropdownContent=this._createEl("div",{id:"iti-".concat(this.id,"__dropdown-content"),class:"iti__dropdown-content iti__hide ".concat(y)}),c&&(this.searchInput=this._createEl("input",{type:"text",class:"iti__search-input",placeholder:A.searchPlaceholder||"Search",role:"combobox","aria-expanded":"true","aria-label":A.searchPlaceholder||"Search","aria-controls":"iti-".concat(this.id,"__country-listbox"),"aria-autocomplete":"list",autocomplete:"off"},this.dropdownContent),this.searchResultsA11yText=this._createEl("span",{class:"iti__a11y-text"},this.dropdownContent)),this.countryList=this._createEl("ul",{class:"iti__country-list",id:"iti-".concat(this.id,"__country-listbox"),role:"listbox","aria-label":A.countryListAriaLabel||"List of countries"},this.dropdownContent),this.preferredCountries.length&&!c&&(this._appendListItems(this.preferredCountries,"iti__preferred",!0),this._createEl("li",{class:"iti__divider","aria-hidden":"true"},this.countryList)),this._appendListItems(this.countries,"iti__standard"),c&&this._updateSearchResultsText(),o){var T="iti iti--container";d?T+=" iti--fullscreen-popup":T+=" iti--inline-dropdown",c&&(T+=" iti--country-search"),this.dropdown=this._createEl("div",{class:T}),this.dropdown.appendChild(this.dropdownContent)}else this.flagsContainer.appendChild(this.dropdownContent)}if(D){var Q=this.telInput.getAttribute("name"),k=D(Q);k.phone&&(this.hiddenInput=this._createEl("input",{type:"hidden",name:k.phone}),E.appendChild(this.hiddenInput)),k.country&&(this.hiddenInputCountry=this._createEl("input",{type:"hidden",name:k.country}),E.appendChild(this.hiddenInputCountry))}}},{key:"_appendListItems",value:function(u,t,e){for(var n=0;n<u.length;n++){var a=u[n],D=e?"-preferred":"",o=this._createEl("li",{id:"iti-".concat(this.id,"__item-").concat(a.iso2).concat(D),class:"iti__country ".concat(t),tabindex:"-1",role:"option","data-dial-code":a.dialCode,"data-country-code":a.iso2,"aria-selected":"false"},this.countryList);a.nodeById[this.id]=o;var s="";this.options.showFlags&&(s+="<div class='iti__flag-box'><div class='iti__flag iti__".concat(a.iso2,"'></div></div>")),s+="<span class='iti__country-name'>".concat(a.name,"</span>"),s+="<span class='iti__dial-code'>+".concat(a.dialCode,"</span>"),o.insertAdjacentHTML("beforeend",s)}}},{key:"_setInitialState",value:function(){var u=arguments.length>0&&arguments[0]!==C?arguments[0]:!1,t=this.telInput.getAttribute("value"),e=this.telInput.value,n=t&&t.charAt(0)==="+"&&(!e||e.charAt(0)!=="+"),a=n?t:e,D=this._getDialCode(a),o=this._isRegionlessNanp(a),s=this.options.initialCountry;if(D&&!o)this._updateFlagFromNumber(a);else if(s!=="auto"||u){var d=s?s.toLowerCase():"",c=d&&this._getCountryData(d,!0);c?this._setCountry(d):D&&o?this._setCountry("us"):this._setCountry()}a&&this._updateValFromNumber(a)}},{key:"_initListeners",value:function(){this._initTelInputListeners(),this.options.allowDropdown&&this._initDropdownListeners(),(this.hiddenInput||this.hiddenInputCountry)&&this.telInput.form&&this._initHiddenInputListener()}},{key:"_initHiddenInputListener",value:function(){var u=this;this._handleHiddenInputSubmit=function(){u.hiddenInput&&(u.hiddenInput.value=u.getNumber()),u.hiddenInputCountry&&(u.hiddenInputCountry.value=u.getSelectedCountryData().iso2)},this.telInput.form.addEventListener("submit",this._handleHiddenInputSubmit)}},{key:"_initDropdownListeners",value:function(){var u=this;this._handleLabelClick=function(e){u.dropdownContent.classList.contains("iti__hide")?u.telInput.focus():e.preventDefault()};var t=this.telInput.closest("label");t&&t.addEventListener("click",this._handleLabelClick),this._handleClickSelectedFlag=function(){u.dropdownContent.classList.contains("iti__hide")&&!u.telInput.disabled&&!u.telInput.readOnly&&u._openDropdown()},this.selectedFlag.addEventListener("click",this._handleClickSelectedFlag),this._handleFlagsContainerKeydown=function(e){var n=u.dropdownContent.classList.contains("iti__hide");n&&["ArrowUp","ArrowDown"," ","Enter"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),u._openDropdown()),e.key==="Tab"&&u._closeDropdown()},this.flagsContainer.addEventListener("keydown",this._handleFlagsContainerKeydown)}},{key:"_initRequests",value:function(){var u=this;this.options.utilsScript&&!window.intlTelInputUtils?window.intlTelInputGlobals.documentReady()?window.intlTelInputGlobals.loadUtils(this.options.utilsScript):window.addEventListener("load",function(){window.intlTelInputGlobals.loadUtils(u.options.utilsScript)}):this.resolveUtilsScriptPromise(),this.options.initialCountry==="auto"&&!this.selectedCountryData.iso2?this._loadAutoCountry():this.resolveAutoCountryPromise()}},{key:"_loadAutoCountry",value:function(){var u=this;window.intlTelInputGlobals.autoCountry?this.handleAutoCountry():window.intlTelInputGlobals.startedLoadingAutoCountry||(window.intlTelInputGlobals.startedLoadingAutoCountry=!0,typeof this.options.geoIpLookup=="function"&&this.options.geoIpLookup(function(){var t=arguments.length>0&&arguments[0]!==C?arguments[0]:"",e=t.toLowerCase(),n=e&&u._getCountryData(e,!0);n?(window.intlTelInputGlobals.autoCountry=e,setTimeout(function(){return I("handleAutoCountry")})):(u._setInitialState(!0),I("rejectAutoCountryPromise"))},function(){return I("rejectAutoCountryPromise")}))}},{key:"_initTelInputListeners",value:function(){var u=this,t=this.options,e=t.strictMode,n=t.formatAsYouType,a=!1;this._handleInputEvent=function(D){u._updateFlagFromNumber(u.telInput.value)&&u._triggerCountryChange();var o=D&&D.data&&/[^+0-9]/.test(D.data),s=D&&D.inputType==="insertFromPaste"&&u.telInput.value;if(o||s&&!e?a=!0:/[^+0-9]/.test(u.telInput.value)||(a=!1),n&&!a){var d=u.telInput.selectionStart,c=u.telInput.value.substring(0,d),A=c.replace(/[^+0-9]/g,"").length,F=D&&D.inputType==="deleteContentForward",E=u._formatNumberAsYouType(),y=u._translateCursorPosition(A,E,d,F);u.telInput.value=E,u.telInput.setSelectionRange(y,y)}},this.telInput.addEventListener("input",this._handleInputEvent),e&&(this._handleKeydownEvent=function(D){if(D.key.length===1&&!D.altKey&&!D.ctrlKey&&!D.metaKey){var o=u.telInput.selectionStart===0&&D.key==="+",s=/^[0-9]$/.test(D.key),d=o||s,c=u._getFullNumber(),A=intlTelInputUtils.getCoreNumber(c,u.selectedCountryData.iso2),F=u.maxCoreNumberLength&&A.length>=u.maxCoreNumberLength;(!d||F)&&D.preventDefault()}},this.telInput.addEventListener("keydown",this._handleKeydownEvent))}},{key:"_translateCursorPosition",value:function(u,t,e,n){if(e===0&&!n)return 0;for(var a=0,D=0;D<t.length;D++){if(/[+0-9]/.test(t[D])&&a++,a===u&&!n)return D+1;if(n&&a===u+1)return D}return t.length}},{key:"_cap",value:function(u){var t=this.telInput.getAttribute("maxlength");return t&&u.length>t?u.substr(0,t):u}},{key:"_removeEmptyDialCode",value:function(){if(this.telInput.value.charAt(0)==="+"){var u=this._getNumeric(this.telInput.value);(!u||this.selectedCountryData.dialCode===u)&&(this.telInput.value="")}}},{key:"_getNumeric",value:function(u){return u.replace(/\D/g,"")}},{key:"_trigger",value:function(u){var t=new Event(u,{bubbles:!0,cancelable:!0});this.telInput.dispatchEvent(t)}},{key:"_openDropdown",value:function(){var u=this.options,t=u.fixDropdownWidth,e=u.countrySearch;if(t&&(this.dropdownContent.style.width="".concat(this.telInput.offsetWidth,"px")),this.dropdownContent.classList.remove("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","true"),this._setDropdownPosition(),this.activeItem&&!e)this._highlightListItem(this.activeItem,!1),this._scrollTo(this.activeItem,!0);else{var n=this.countryList.firstElementChild;n&&(this._highlightListItem(n,!1),this.countryList.scrollTop=0),e&&this.searchInput.focus()}this._bindDropdownListeners(),this.dropdownArrow.classList.add("iti__arrow--up"),this._trigger("open:countrydropdown")}},{key:"_toggleClass",value:function(u,t,e){e&&!u.classList.contains(t)?u.classList.add(t):!e&&u.classList.contains(t)&&u.classList.remove(t)}},{key:"_setDropdownPosition",value:function(){var u=this;if(this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.dropdown),!this.options.useFullscreenPopup){var t=this.telInput.getBoundingClientRect(),e=document.documentElement.scrollTop,n=t.top+e,a=this.dropdownContent.offsetHeight,D=n+this.telInput.offsetHeight+a<e+window.innerHeight,o=n-a>e,s=!this.options.countrySearch&&!D&&o;if(this._toggleClass(this.dropdownContent,"iti__dropdown-content--dropup",s),this.options.dropdownContainer){var d=s?0:this.telInput.offsetHeight;this.dropdown.style.top="".concat(n+d,"px"),this.dropdown.style.left="".concat(t.left+document.body.scrollLeft,"px"),this._handleWindowScroll=function(){return u._closeDropdown()},window.addEventListener("scroll",this._handleWindowScroll)}}}},{key:"_bindDropdownListeners",value:function(){var u=this;this._handleMouseoverCountryList=function(o){var s=o.target.closest(".iti__country");s&&u._highlightListItem(s,!1)},this.countryList.addEventListener("mouseover",this._handleMouseoverCountryList),this._handleClickCountryList=function(o){var s=o.target.closest(".iti__country");s&&u._selectListItem(s)},this.countryList.addEventListener("click",this._handleClickCountryList);var t=!0;this._handleClickOffToClose=function(){t||u._closeDropdown(),t=!1},document.documentElement.addEventListener("click",this._handleClickOffToClose);var e="",n=null;if(this._handleKeydownOnDropdown=function(o){["ArrowUp","ArrowDown","Enter","Escape"].includes(o.key)&&(o.preventDefault(),o.stopPropagation(),o.key==="ArrowUp"||o.key==="ArrowDown"?u._handleUpDownKey(o.key):o.key==="Enter"?u._handleEnterKey():o.key==="Escape"&&u._closeDropdown()),!u.options.countrySearch&&/^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(o.key)&&(o.stopPropagation(),n&&clearTimeout(n),e+=o.key.toLowerCase(),u._searchForCountry(e),n=setTimeout(function(){e=""},1e3))},document.addEventListener("keydown",this._handleKeydownOnDropdown),this.options.countrySearch){var a=function(){var s=u.searchInput.value.trim();s?u._filterCountries(s):u._filterCountries("",!0)},D=null;this._handleSearchChange=function(){D&&clearTimeout(D),D=setTimeout(function(){a(),D=null},100)},this.searchInput.addEventListener("input",this._handleSearchChange),this.searchInput.addEventListener("click",function(o){return o.stopPropagation()})}}},{key:"_normaliseString",value:function(){var u=arguments.length>0&&arguments[0]!==C?arguments[0]:"";return u.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}},{key:"_filterCountries",value:function(u){var t=arguments.length>1&&arguments[1]!==C?arguments[1]:!1,e=!0;this.countryList.innerHTML="";for(var n=this._normaliseString(u),a=0;a<this.countries.length;a++){var D=this.countries[a],o=this._normaliseString(D.name),s="+".concat(D.dialCode);(t||o.includes(n)||s.includes(n)||D.iso2.includes(n))&&(this.countryList.appendChild(D.nodeById[this.id]),e&&(this._highlightListItem(D.nodeById[this.id],!1),e=!1))}this.countryList.scrollTop=0,this._updateSearchResultsText()}},{key:"_updateSearchResultsText",value:function(){var u=this.options.i18n,t=this.countryList.childElementCount,e;t===0?e=u.zeroSearchResults||"No results found":t===1?e=u.oneSearchResult||"1 result found":e=u.multipleSearchResults?u.multipleSearchResults.replace("${count}",t):"".concat(t," results found"),this.searchResultsA11yText.textContent=e}},{key:"_handleUpDownKey",value:function(u){var t=u==="ArrowUp"?this.highlightedItem.previousElementSibling:this.highlightedItem.nextElementSibling;if(t?t.classList.contains("iti__divider")&&(t=u==="ArrowUp"?t.previousElementSibling:t.nextElementSibling):this.countryList.childElementCount>1&&(t=u==="ArrowUp"?this.countryList.lastElementChild:this.countryList.firstElementChild),t){this._scrollTo(t,!1);var e=!this.options.countrySearch;this._highlightListItem(t,e)}}},{key:"_handleEnterKey",value:function(){this.highlightedItem&&this._selectListItem(this.highlightedItem)}},{key:"_searchForCountry",value:function(u){for(var t=0;t<this.countries.length;t++)if(this._startsWith(this.countries[t].name,u)){var e=this.countries[t].nodeById[this.id];this._highlightListItem(e,!1),this._scrollTo(e,!0);break}}},{key:"_startsWith",value:function(u,t){return u.substr(0,t.length).toLowerCase()===t}},{key:"_updateValFromNumber",value:function(u){var t=u;if(this.options.formatOnDisplay&&window.intlTelInputUtils&&this.selectedCountryData){var e=this.options.nationalMode||t.charAt(0)!=="+"&&!this.options.showSelectedDialCode,n=intlTelInputUtils.numberFormat,a=n.NATIONAL,D=n.INTERNATIONAL,o=e?a:D;t=intlTelInputUtils.formatNumber(t,this.selectedCountryData.iso2,o)}t=this._beforeSetNumber(t),this.telInput.value=t}},{key:"_updateFlagFromNumber",value:function(u){var t=u.indexOf("+"),e=t?u.substring(t):u,n=this.selectedCountryData.dialCode,a=n==="1";e&&a&&e.charAt(0)!=="+"&&(e.charAt(0)!=="1"&&(e="1".concat(e)),e="+".concat(e)),this.options.showSelectedDialCode&&n&&e.charAt(0)!=="+"&&(e="+".concat(n).concat(e));var D=this._getDialCode(e,!0),o=this._getNumeric(e),s=null;if(D){var d=this.dialCodeToIso2Map[this._getNumeric(D)],c=d.indexOf(this.selectedCountryData.iso2)!==-1&&o.length<=D.length-1,A=n==="1"&&this._isRegionlessNanp(o);if(!A&&!c){for(var F=0;F<d.length;F++)if(d[F]){s=d[F];break}}}else e.charAt(0)==="+"&&o.length?s="":(!e||e==="+")&&!this.selectedCountryData.iso2&&(s=this.defaultCountry);return s!==null?this._setCountry(s):!1}},{key:"_isRegionlessNanp",value:function(u){var t=this._getNumeric(u);if(t.charAt(0)==="1"){var e=t.substr(1,3);return $.indexOf(e)!==-1}return!1}},{key:"_highlightListItem",value:function(u,t){var e=this.highlightedItem;e&&(e.classList.remove("iti__highlight"),e.setAttribute("aria-selected","false")),this.highlightedItem=u,this.highlightedItem.classList.add("iti__highlight"),this.highlightedItem.setAttribute("aria-selected","true"),this.selectedFlag.setAttribute("aria-activedescendant",u.getAttribute("id")),this.options.countrySearch&&this.searchInput.setAttribute("aria-activedescendant",u.getAttribute("id")),t&&this.highlightedItem.focus()}},{key:"_getCountryData",value:function(u,t){for(var e=0;e<this.countries.length;e++)if(this.countries[e].iso2===u)return this.countries[e];if(t)return null;throw new Error("No country data for '".concat(u,"'"))}},{key:"_setCountry",value:function(u){var t=this.options,e=t.allowDropdown,n=t.showSelectedDialCode,a=t.showFlags,D=t.countrySearch,o=t.i18n,s=this.selectedCountryData.iso2?this.selectedCountryData:{};if(this.selectedCountryData=u?this._getCountryData(u,!1):{},this.selectedCountryData.iso2&&(this.defaultCountry=this.selectedCountryData.iso2),this.selectedFlagInner){var d="",c="";u?a&&(d="iti__flag iti__".concat(u),c="".concat(this.selectedCountryData.name," +").concat(this.selectedCountryData.dialCode)):(d="iti__flag iti__globe",c=o.noCountrySelected||"No country selected"),this.selectedFlagInner.className=d,this.selectedFlagA11yText.textContent=c}if(this._setSelectedCountryFlagTitleAttribute(u,n),n){var A=this.selectedCountryData.dialCode?"+".concat(this.selectedCountryData.dialCode):"";this.selectedDialCode.innerHTML=A;var F=this.selectedFlag.offsetWidth||this._getHiddenSelectedFlagWidth();this.isRTL?this.telInput.style.paddingRight="".concat(F+6,"px"):this.telInput.style.paddingLeft="".concat(F+6,"px")}if(this._updatePlaceholder(),this._updateMaxLength(),e&&!D){var E=this.activeItem;if(E&&(E.classList.remove("iti__active"),E.setAttribute("aria-selected","false")),u){var y=this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(u,"-preferred"))||this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(u));y.setAttribute("aria-selected","true"),y.classList.add("iti__active"),this.activeItem=y}}return s.iso2!==u}},{key:"_updateMaxLength",value:function(){if(this.options.strictMode&&window.intlTelInputUtils)if(this.selectedCountryData.iso2){for(var u=intlTelInputUtils.numberType[this.options.placeholderNumberType],t=intlTelInputUtils.getExampleNumber(this.selectedCountryData.iso2,null,u,!0),e=t;intlTelInputUtils.isPossibleNumber(t,this.selectedCountryData.iso2);)e=t,t+="0";var n=intlTelInputUtils.getCoreNumber(e,this.selectedCountryData.iso2);this.maxCoreNumberLength=n.length}else this.maxCoreNumberLength=null}},{key:"_setSelectedCountryFlagTitleAttribute",value:function(u,t){if(this.selectedFlag){var e;u&&!t?e="".concat(this.selectedCountryData.name,": +").concat(this.selectedCountryData.dialCode):u?e=this.selectedCountryData.name:e="Unknown",this.selectedFlag.setAttribute("title",e)}}},{key:"_getHiddenSelectedFlagWidth",value:function(){var u=this.telInput.parentNode.cloneNode();u.style.visibility="hidden",document.body.appendChild(u);var t=this.flagsContainer.cloneNode();u.appendChild(t);var e=this.selectedFlag.cloneNode(!0);t.appendChild(e);var n=e.offsetWidth;return u.parentNode.removeChild(u),n}},{key:"_updatePlaceholder",value:function(){var u=this.options,t=u.autoPlaceholder,e=u.placeholderNumberType,n=u.nationalMode,a=u.customPlaceholder,D=t==="aggressive"||!this.hadInitialPlaceholder&&t==="polite";if(window.intlTelInputUtils&&D){var o=intlTelInputUtils.numberType[e],s=this.selectedCountryData.iso2?intlTelInputUtils.getExampleNumber(this.selectedCountryData.iso2,n,o):"";s=this._beforeSetNumber(s),typeof a=="function"&&(s=a(s,this.selectedCountryData)),this.telInput.setAttribute("placeholder",s)}}},{key:"_selectListItem",value:function(u){var t=this._setCountry(u.getAttribute("data-country-code"));this._closeDropdown(),this._updateDialCode(u.getAttribute("data-dial-code")),this.telInput.focus(),t&&this._triggerCountryChange()}},{key:"_closeDropdown",value:function(){this.dropdownContent.classList.add("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","false"),this.selectedFlag.removeAttribute("aria-activedescendant"),this.highlightedItem&&this.highlightedItem.setAttribute("aria-selected","false"),this.options.countrySearch&&this.searchInput.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")}},{key:"_scrollTo",value:function(u,t){var e=this.countryList,n=document.documentElement.scrollTop,a=e.offsetHeight,D=e.getBoundingClientRect().top+n,o=D+a,s=u.offsetHeight,d=u.getBoundingClientRect().top+n,c=d+s,A=d-D+e.scrollTop,F=a/2-s/2;if(d<D)t&&(A-=F),e.scrollTop=A;else if(c>o){t&&(A+=F);var E=a-s;e.scrollTop=A-E}}},{key:"_updateDialCode",value:function(u){var t=this.telInput.value,e="+".concat(u),n;if(t.charAt(0)==="+"){var a=this._getDialCode(t);a?n=t.replace(a,e):n=e,this.telInput.value=n}}},{key:"_getDialCode",value:function(u,t){var e="";if(u.charAt(0)==="+")for(var n="",a=0;a<u.length;a++){var D=u.charAt(a);if(!isNaN(parseInt(D,10))){if(n+=D,t)this.dialCodeToIso2Map[n]&&(e=u.substr(0,a+1));else if(this.dialCodes[n]){e=u.substr(0,a+1);break}if(n.length===this.dialCodeMaxLen)break}}return e}},{key:"_getFullNumber",value:function(){var u=this.telInput.value.trim(),t=this.selectedCountryData.dialCode,e,n=this._getNumeric(u);return this.options.showSelectedDialCode&&!this.options.nationalMode&&u.charAt(0)!=="+"&&t&&n?e="+".concat(t):e="",e+u}},{key:"_beforeSetNumber",value:function(u){var t=u;if(this.options.showSelectedDialCode){var e=this._getDialCode(t);if(e){e="+".concat(this.selectedCountryData.dialCode);var n=t[e.length]===" "||t[e.length]==="-"?e.length+1:e.length;t=t.substr(n)}}return this._cap(t)}},{key:"_triggerCountryChange",value:function(){this._trigger("countrychange")}},{key:"_formatNumberAsYouType",value:function(){var u=this._getFullNumber(),t=window.intlTelInputUtils?intlTelInputUtils.formatNumberAsYouType(u,this.selectedCountryData.iso2):u,e=this.selectedCountryData.dialCode;if(this.options.showSelectedDialCode&&!this.options.nationalMode&&this.telInput.value.charAt(0)!=="+"&&t.includes("+".concat(e))){var n=t.split("+".concat(e))[1]||"";return n.trim()}return t}},{key:"handleAutoCountry",value:function(){this.options.initialCountry==="auto"&&(this.defaultCountry=window.intlTelInputGlobals.autoCountry,this.telInput.value||this.setCountry(this.defaultCountry),this.resolveAutoCountryPromise())}},{key:"handleUtils",value:function(){window.intlTelInputUtils&&(this.telInput.value&&this._updateValFromNumber(this.telInput.value),this.selectedCountryData.iso2&&(this._updatePlaceholder(),this._updateMaxLength())),this.resolveUtilsScriptPromise()}},{key:"destroy",value:function(){if(this.options.allowDropdown){this._closeDropdown(),this.selectedFlag.removeEventListener("click",this._handleClickSelectedFlag),this.flagsContainer.removeEventListener("keydown",this._handleFlagsContainerKeydown);var u=this.telInput.closest("label");u&&u.removeEventListener("click",this._handleLabelClick)}var t=this.telInput.form;this._handleHiddenInputSubmit&&t&&t.removeEventListener("submit",this._handleHiddenInputSubmit),this.telInput.removeEventListener("input",this._handleInputEvent),this._handleKeydownEvent&&this.telInput.removeEventListener("keydown",this._handleKeydownEvent),this.telInput.removeAttribute("data-intl-tel-input-id");var e=this.telInput.parentNode;e.parentNode.insertBefore(this.telInput,e),e.parentNode.removeChild(e),delete window.intlTelInputGlobals.instances[this.id]}},{key:"getExtension",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getExtension(this._getFullNumber(),this.selectedCountryData.iso2):""}},{key:"getNumber",value:function(u){if(window.intlTelInputUtils){var t=this.selectedCountryData.iso2;return intlTelInputUtils.formatNumber(this._getFullNumber(),t,u)}return""}},{key:"getNumberType",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getNumberType(this._getFullNumber(),this.selectedCountryData.iso2):-99}},{key:"getSelectedCountryData",value:function(){return this.selectedCountryData}},{key:"getValidationError",value:function(){if(window.intlTelInputUtils){var u=this.selectedCountryData.iso2;return intlTelInputUtils.getValidationError(this._getFullNumber(),u)}return-99}},{key:"isValidNumber",value:function(){var u=arguments.length>0&&arguments[0]!==C?arguments[0]:!0,t=this._getFullNumber();return/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u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081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\u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E8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE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E51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])/.test(t)?!1:window.intlTelInputUtils?intlTelInputUtils.isPossibleNumber(t,this.selectedCountryData.iso2,u):null}},{key:"isValidNumberPrecise",value:function(){var u=this._getFullNumber();return/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC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u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-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DCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDE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uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])/.test(u)?!1:window.intlTelInputUtils?intlTelInputUtils.isValidNumber(u,this.selectedCountryData.iso2):null}},{key:"setCountry",value:function(u){var t=u.toLowerCase();this.selectedCountryData.iso2!==t&&(this._setCountry(t),this._updateDialCode(this.selectedCountryData.dialCode),this._triggerCountryChange())}},{key:"setNumber",value:function(u){var t=this._updateFlagFromNumber(u);this._updateValFromNumber(u),t&&this._triggerCountryChange()}},{key:"setPlaceholderNumberType",value:function(u){this.options.placeholderNumberType=u,this._updatePlaceholder()}}]),r}();_.getCountryData=function(){return h};var J=function(i,u,t){var e=document.createElement("script");e.onload=function(){I("handleUtils"),u&&u()},e.onerror=function(){I("rejectUtilsScriptPromise"),t&&t()},e.className="iti-load-utils",e.async=!0,e.src=i,document.body.appendChild(e)};return _.loadUtils=function(r){return!window.intlTelInputUtils&&!window.intlTelInputGlobals.startedLoadingUtilsScript?(window.intlTelInputGlobals.startedLoadingUtilsScript=!0,new Promise(function(i,u){return J(r,i,u)})):null},_.defaults=H,_.version="20.2.0",function(r,i){var u=new Z(r,i);return u._init(),r.setAttribute("data-intl-tel-input-id",u.id),window.intlTelInputGlobals.instances[u.id]=u,u}}()})});var ou={};Du(ou,{default:()=>au});module.exports=ru(ou);var m=V(require("react")),l=V(require("prop-types")),Y=V(q()),z=({initialValue:C,onChangeNumber:h,onChangeCountry:p,onChangeValidity:f,onChangeErrorCode:B,usePreciseValidation:L,initOptions:x,className:M,disabled:O,onFocus:U,onBlur:S,placeholder:R,inputProps:j})=>{let b=(0,m.useRef)(null),v=(0,m.useRef)(null),w=()=>{let g=v.current.getNumber(),G=v.current.getSelectedCountryData().iso2;if(h(g),p(G),L?v.current.isValidNumberPrecise():v.current.isValidNumber())f(!0),B(null);else{let K=v.current.getValidationError();f(!1),B(K)}};return(0,m.useEffect)(()=>{let g=b.current;return v.current=(0,Y.default)(b.current,x),g.addEventListener("countrychange",w),()=>{g.removeEventListener("countrychange",w),v.current.destroy()}},[]),m.default.createElement("input",{type:"tel",ref:b,onInput:w,defaultValue:C,className:M,disabled:O,onFocus:U,onBlur:S,placeholder:R,...j})};z.propTypes={initialValue:l.default.string,placeholder:l.default.string,onChangeNumber:l.default.func,onChangeCountry:l.default.func,onChangeValidity:l.default.func,onChangeErrorCode:l.default.func,usePreciseValidation:l.default.bool,initOptions:l.default.shape({allowDropdown:l.default.bool,autoPlaceholder:l.default.string,containerClass:l.default.string,countrySearch:l.default.bool,customPlaceholder:l.default.func,dropdownContainer:l.default.node,excludeCountries:l.default.arrayOf(l.default.string),fixDropdownWidth:l.default.bool,formatAsYouType:l.default.bool,formatOnDisplay:l.default.bool,geoIpLookup:l.default.func,hiddenInput:l.default.func,i18n:l.default.objectOf(l.default.string),initialCountry:l.default.string,nationalMode:l.default.bool,onlyCountries:l.default.arrayOf(l.default.string),placeholderNumberType:l.default.string,preferredCountries:l.default.arrayOf(l.default.string),showFlags:l.default.bool,showSelectedDialCode:l.default.bool,useFullscreenPopup:l.default.bool,utilsScript:l.default.string}),className:l.default.string,disabled:l.default.bool,onFocus:l.default.func,onBlur:l.default.func,inputProps:l.default.object};z.defaultProps={initialValue:"",placeholder:"",onChangeNumber:()=>{},onChangeCountry:()=>{},onChangeValidity:()=>{},onChangeErrorCode:()=>{},usePreciseValidation:!1,initOptions:{},className:"",disabled:!1,onFocus:()=>{},onBlur:()=>{},inputProps:{}};var au=z;
|
|
3
3
|
//# sourceMappingURL=IntlTelInput.cjs.js.map
|