react-telephone-input
Advanced tools
Comparing version 3.2.4 to 3.3.4
@@ -1,2 +0,2 @@ | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.ReactTelephoneInput=e()}}(function(){return function e(t,n,r){function a(o,s){if(!n[o]){if(!t[o]){var l="function"==typeof require&&require;if(!s&&l)return l(o,!0);if(i)return i(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[o]={exports:{}};t[o][0].call(c.exports,function(e){var n=t[o][1][e];return a(n?n:e)},c,c.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o<r.length;o++)a(r[o]);return a}({1:[function(e,t,n){function r(e,t,n){var r=e?e.length:0;return r?((n?i(e,t,n):null==t)&&(t=1),a(e,0>t?0:t)):[]}var a=e("../internal/baseSlice"),i=e("../internal/isIterateeCall");t.exports=r},{"../internal/baseSlice":38,"../internal/isIterateeCall":57}],2:[function(e,t,n){var r=e("../internal/createFindIndex"),a=r();t.exports=a},{"../internal/createFindIndex":47}],3:[function(e,t,n){function r(e){return e?e[0]:void 0}t.exports=r},{}],4:[function(e,t,n){function r(e){var t=e?e.length:0;return t?e[t-1]:void 0}t.exports=r},{}],5:[function(e,t,n){function r(e){return a(e,1)}var a=e("./drop");t.exports=r},{"./drop":1}],6:[function(e,t,n){t.exports=e("./some")},{"./some":12}],7:[function(e,t,n){function r(e,t,n){var r=s(e)?a:o;return t=i(t,n,3),r(e,t)}var a=e("../internal/arrayFilter"),i=e("../internal/baseCallback"),o=e("../internal/baseFilter"),s=e("../lang/isArray");t.exports=r},{"../internal/arrayFilter":17,"../internal/baseCallback":21,"../internal/baseFilter":23,"../lang/isArray":73}],8:[function(e,t,n){var r=e("../internal/baseEach"),a=e("../internal/createFind"),i=a(r);t.exports=i},{"../internal/baseEach":22,"../internal/createFind":46}],9:[function(e,t,n){function r(e,t){return i(e,a(t))}var a=e("../internal/baseMatches"),i=e("./find");t.exports=r},{"../internal/baseMatches":33,"./find":8}],10:[function(e,t,n){function r(e,t,n){var r=s(e)?a:o;return t=i(t,n,3),r(e,t)}var a=e("../internal/arrayMap"),i=e("../internal/baseCallback"),o=e("../internal/baseMap"),s=e("../lang/isArray");t.exports=r},{"../internal/arrayMap":18,"../internal/baseCallback":21,"../internal/baseMap":32,"../lang/isArray":73}],11:[function(e,t,n){var r=e("../internal/arrayReduce"),a=e("../internal/baseEach"),i=e("../internal/createReduce"),o=i(r,a);t.exports=o},{"../internal/arrayReduce":19,"../internal/baseEach":22,"../internal/createReduce":48}],12:[function(e,t,n){function r(e,t,n){var r=s(e)?a:o;return n&&l(e,t,n)&&(t=null),("function"!=typeof t||void 0!==n)&&(t=i(t,n,3)),r(e,t)}var a=e("../internal/arraySome"),i=e("../internal/baseCallback"),o=e("../internal/baseSome"),s=e("../lang/isArray"),l=e("../internal/isIterateeCall");t.exports=r},{"../internal/arraySome":20,"../internal/baseCallback":21,"../internal/baseSome":39,"../internal/isIterateeCall":57,"../lang/isArray":73}],13:[function(e,t,n){var r=e("../internal/getNative"),a=r(Date,"now"),i=a||function(){return(new Date).getTime()};t.exports=i},{"../internal/getNative":54}],14:[function(e,t,n){function r(e,t,n){function r(){y&&clearTimeout(y),d&&clearTimeout(d),d=y=b=void 0}function l(){var n=t-(i()-p);if(0>=n||n>t){d&&clearTimeout(d);var r=b;d=y=b=void 0,r&&(m=i(),h=e.apply(g,f),y||d||(f=g=null))}else y=setTimeout(l,n)}function u(){y&&clearTimeout(y),d=y=b=void 0,(C||v!==t)&&(m=i(),h=e.apply(g,f),y||d||(f=g=null))}function c(){if(f=arguments,p=i(),g=this,b=C&&(y||!x),v===!1)var n=x&&!y;else{d||x||(m=p);var r=v-(p-m),a=0>=r||r>v;a?(d&&(d=clearTimeout(d)),m=p,h=e.apply(g,f)):d||(d=setTimeout(u,r))}return a&&y?y=clearTimeout(y):y||t===v||(y=setTimeout(l,t)),n&&(a=!0,h=e.apply(g,f)),!a||y||d||(f=g=null),h}var f,d,h,p,g,y,b,m=0,v=!1,C=!0;if("function"!=typeof e)throw new TypeError(o);if(t=0>t?0:+t||0,n===!0){var x=!0;C=!1}else a(n)&&(x=n.leading,v="maxWait"in n&&s(+n.maxWait||0,t),C="trailing"in n?n.trailing:C);return c.cancel=r,c}var a=e("../lang/isObject"),i=e("../date/now"),o="Expected a function",s=Math.max;t.exports=r},{"../date/now":13,"../lang/isObject":75}],15:[function(e,t,n){function r(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(i);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o),o};return n.cache=new r.Cache,n}var a=e("../internal/MapCache"),i="Expected a function";r.Cache=a,t.exports=r},{"../internal/MapCache":16}],16:[function(e,t,n){function r(){this.__data__={}}var a=e("./mapDelete"),i=e("./mapGet"),o=e("./mapHas"),s=e("./mapSet");r.prototype["delete"]=a,r.prototype.get=i,r.prototype.has=o,r.prototype.set=s,t.exports=r},{"./mapDelete":63,"./mapGet":64,"./mapHas":65,"./mapSet":66}],17:[function(e,t,n){function r(e,t){for(var n=-1,r=e.length,a=-1,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[++a]=o)}return i}t.exports=r},{}],18:[function(e,t,n){function r(e,t){for(var n=-1,r=e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}t.exports=r},{}],19:[function(e,t,n){function r(e,t,n,r){var a=-1,i=e.length;for(r&&i&&(n=e[++a]);++a<i;)n=t(n,e[a],a,e);return n}t.exports=r},{}],20:[function(e,t,n){function r(e,t){for(var n=-1,r=e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}t.exports=r},{}],21:[function(e,t,n){function r(e,t,n){var r=typeof e;return"function"==r?void 0===t?e:o(e,t,n):null==e?s:"object"==r?a(e):void 0===t?l(e):i(e,t)}var a=e("./baseMatches"),i=e("./baseMatchesProperty"),o=e("./bindCallback"),s=e("../utility/identity"),l=e("../utility/property");t.exports=r},{"../utility/identity":83,"../utility/property":84,"./baseMatches":33,"./baseMatchesProperty":34,"./bindCallback":41}],22:[function(e,t,n){var r=e("./baseForOwn"),a=e("./createBaseEach"),i=a(r);t.exports=i},{"./baseForOwn":27,"./createBaseEach":44}],23:[function(e,t,n){function r(e,t){var n=[];return a(e,function(e,r,a){t(e,r,a)&&n.push(e)}),n}var a=e("./baseEach");t.exports=r},{"./baseEach":22}],24:[function(e,t,n){function r(e,t,n,r){var a;return n(e,function(e,n,i){return t(e,n,i)?(a=r?n:e,!1):void 0}),a}t.exports=r},{}],25:[function(e,t,n){function r(e,t,n){for(var r=e.length,a=n?r:-1;n?a--:++a<r;)if(t(e[a],a,e))return a;return-1}t.exports=r},{}],26:[function(e,t,n){var r=e("./createBaseFor"),a=r();t.exports=a},{"./createBaseFor":45}],27:[function(e,t,n){function r(e,t){return a(e,t,i)}var a=e("./baseFor"),i=e("../object/keys");t.exports=r},{"../object/keys":77,"./baseFor":26}],28:[function(e,t,n){function r(e,t,n){if(null!=e){void 0!==n&&n in a(e)&&(t=[n]);for(var r=0,i=t.length;null!=e&&i>r;)e=e[t[r++]];return r&&r==i?e:void 0}}var a=e("./toObject");t.exports=r},{"./toObject":68}],29:[function(e,t,n){function r(e,t,n,s,l,u){return e===t?!0:null==e||null==t||!i(e)&&!o(t)?e!==e&&t!==t:a(e,t,r,n,s,l,u)}var a=e("./baseIsEqualDeep"),i=e("../lang/isObject"),o=e("./isObjectLike");t.exports=r},{"../lang/isObject":75,"./baseIsEqualDeep":30,"./isObjectLike":60}],30:[function(e,t,n){function r(e,t,n,r,d,g,y){var b=s(e),m=s(t),v=c,C=c;b||(v=p.call(e),v==u?v=f:v!=f&&(b=l(e))),m||(C=p.call(t),C==u?C=f:C!=f&&(m=l(t)));var x=v==f,S=C==f,w=v==C;if(w&&!b&&!x)return i(e,t,v);if(!d){var j=x&&h.call(e,"__wrapped__"),k=S&&h.call(t,"__wrapped__");if(j||k)return n(j?e.value():e,k?t.value():t,r,d,g,y)}if(!w)return!1;g||(g=[]),y||(y=[]);for(var I=g.length;I--;)if(g[I]==e)return y[I]==t;g.push(e),y.push(t);var A=(b?a:o)(e,t,n,r,d,g,y);return g.pop(),y.pop(),A}var a=e("./equalArrays"),i=e("./equalByTag"),o=e("./equalObjects"),s=e("../lang/isArray"),l=e("../lang/isTypedArray"),u="[object Arguments]",c="[object Array]",f="[object Object]",d=Object.prototype,h=d.hasOwnProperty,p=d.toString;t.exports=r},{"../lang/isArray":73,"../lang/isTypedArray":76,"./equalArrays":49,"./equalByTag":50,"./equalObjects":51}],31:[function(e,t,n){function r(e,t,n){var r=t.length,o=r,s=!n;if(null==e)return!o;for(e=i(e);r--;){var l=t[r];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++r<o;){l=t[r];var u=l[0],c=e[u],f=l[1];if(s&&l[2]){if(void 0===c&&!(u in e))return!1}else{var d=n?n(c,f,u):void 0;if(!(void 0===d?a(f,c,n,!0):d))return!1}}return!0}var a=e("./baseIsEqual"),i=e("./toObject");t.exports=r},{"./baseIsEqual":29,"./toObject":68}],32:[function(e,t,n){function r(e,t){var n=-1,r=i(e)?Array(e.length):[];return a(e,function(e,a,i){r[++n]=t(e,a,i)}),r}var a=e("./baseEach"),i=e("./isArrayLike");t.exports=r},{"./baseEach":22,"./isArrayLike":55}],33:[function(e,t,n){function r(e){var t=i(e);if(1==t.length&&t[0][2]){var n=t[0][0],r=t[0][1];return function(e){return null==e?!1:e[n]===r&&(void 0!==r||n in o(e))}}return function(e){return a(e,t)}}var a=e("./baseIsMatch"),i=e("./getMatchData"),o=e("./toObject");t.exports=r},{"./baseIsMatch":31,"./getMatchData":53,"./toObject":68}],34:[function(e,t,n){function r(e,t){var n=s(e),r=l(e)&&u(t),h=e+"";return e=d(e),function(s){if(null==s)return!1;var l=h;if(s=f(s),(n||!r)&&!(l in s)){if(s=1==e.length?s:a(s,o(e,0,-1)),null==s)return!1;l=c(e),s=f(s)}return s[l]===t?void 0!==t||l in s:i(t,s[l],void 0,!0)}}var a=e("./baseGet"),i=e("./baseIsEqual"),o=e("./baseSlice"),s=e("../lang/isArray"),l=e("./isKey"),u=e("./isStrictComparable"),c=e("../array/last"),f=e("./toObject"),d=e("./toPath");t.exports=r},{"../array/last":4,"../lang/isArray":73,"./baseGet":28,"./baseIsEqual":29,"./baseSlice":38,"./isKey":58,"./isStrictComparable":62,"./toObject":68,"./toPath":69}],35:[function(e,t,n){function r(e){return function(t){return null==t?void 0:t[e]}}t.exports=r},{}],36:[function(e,t,n){function r(e){var t=e+"";return e=i(e),function(n){return a(n,e,t)}}var a=e("./baseGet"),i=e("./toPath");t.exports=r},{"./baseGet":28,"./toPath":69}],37:[function(e,t,n){function r(e,t,n,r,a){return a(e,function(e,a,i){n=r?(r=!1,e):t(n,e,a,i)}),n}t.exports=r},{}],38:[function(e,t,n){function r(e,t,n){var r=-1,a=e.length;t=null==t?0:+t||0,0>t&&(t=-t>a?0:a+t),n=void 0===n||n>a?a:+n||0,0>n&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r<a;)i[r]=e[r+t];return i}t.exports=r},{}],39:[function(e,t,n){function r(e,t){var n;return a(e,function(e,r,a){return n=t(e,r,a),!n}),!!n}var a=e("./baseEach");t.exports=r},{"./baseEach":22}],40:[function(e,t,n){function r(e){return"string"==typeof e?e:null==e?"":e+""}t.exports=r},{}],41:[function(e,t,n){function r(e,t,n){if("function"!=typeof e)return a;if(void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,a){return e.call(t,n,r,a)};case 4:return function(n,r,a,i){return e.call(t,n,r,a,i)};case 5:return function(n,r,a,i,o){return e.call(t,n,r,a,i,o)}}return function(){return e.apply(t,arguments)}}var a=e("../utility/identity");t.exports=r},{"../utility/identity":83}],42:[function(e,t,n){function r(e,t){for(var n=-1,r=e.length;++n<r&&t.indexOf(e.charAt(n))>-1;);return n}t.exports=r},{}],43:[function(e,t,n){function r(e,t){for(var n=e.length;n--&&t.indexOf(e.charAt(n))>-1;);return n}t.exports=r},{}],44:[function(e,t,n){function r(e,t){return function(n,r){var s=n?a(n):0;if(!i(s))return e(n,r);for(var l=t?s:-1,u=o(n);(t?l--:++l<s)&&r(u[l],l,u)!==!1;);return n}}var a=e("./getLength"),i=e("./isLength"),o=e("./toObject");t.exports=r},{"./getLength":52,"./isLength":59,"./toObject":68}],45:[function(e,t,n){function r(e){return function(t,n,r){for(var i=a(t),o=r(t),s=o.length,l=e?s:-1;e?l--:++l<s;){var u=o[l];if(n(i[u],u,i)===!1)break}return t}}var a=e("./toObject");t.exports=r},{"./toObject":68}],46:[function(e,t,n){function r(e,t){return function(n,r,l){if(r=a(r,l,3),s(n)){var u=o(n,r,t);return u>-1?n[u]:void 0}return i(n,r,e)}}var a=e("./baseCallback"),i=e("./baseFind"),o=e("./baseFindIndex"),s=e("../lang/isArray");t.exports=r},{"../lang/isArray":73,"./baseCallback":21,"./baseFind":24,"./baseFindIndex":25}],47:[function(e,t,n){function r(e){return function(t,n,r){return t&&t.length?(n=a(n,r,3),i(t,n,e)):-1}}var a=e("./baseCallback"),i=e("./baseFindIndex");t.exports=r},{"./baseCallback":21,"./baseFindIndex":25}],48:[function(e,t,n){function r(e,t){return function(n,r,s,l){var u=arguments.length<3;return"function"==typeof r&&void 0===l&&o(n)?e(n,r,s,u):i(n,a(r,l,4),s,u,t)}}var a=e("./baseCallback"),i=e("./baseReduce"),o=e("../lang/isArray");t.exports=r},{"../lang/isArray":73,"./baseCallback":21,"./baseReduce":37}],49:[function(e,t,n){function r(e,t,n,r,i,o,s){var l=-1,u=e.length,c=t.length;if(u!=c&&!(i&&c>u))return!1;for(;++l<u;){var f=e[l],d=t[l],h=r?r(i?d:f,i?f:d,l):void 0;if(void 0!==h){if(h)continue;return!1}if(i){if(!a(t,function(e){return f===e||n(f,e,r,i,o,s)}))return!1}else if(f!==d&&!n(f,d,r,i,o,s))return!1}return!0}var a=e("./arraySome");t.exports=r},{"./arraySome":20}],50:[function(e,t,n){function r(e,t,n){switch(n){case a:case i:return+e==+t;case o:return e.name==t.name&&e.message==t.message;case s:return e!=+e?t!=+t:e==+t;case l:case u:return e==t+""}return!1}var a="[object Boolean]",i="[object Date]",o="[object Error]",s="[object Number]",l="[object RegExp]",u="[object String]";t.exports=r},{}],51:[function(e,t,n){function r(e,t,n,r,i,s,l){var u=a(e),c=u.length,f=a(t),d=f.length;if(c!=d&&!i)return!1;for(var h=c;h--;){var p=u[h];if(!(i?p in t:o.call(t,p)))return!1}for(var g=i;++h<c;){p=u[h];var y=e[p],b=t[p],m=r?r(i?b:y,i?y:b,p):void 0;if(!(void 0===m?n(y,b,r,i,s,l):m))return!1;g||(g="constructor"==p)}if(!g){var v=e.constructor,C=t.constructor;if(v!=C&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof C&&C instanceof C))return!1}return!0}var a=e("../object/keys"),i=Object.prototype,o=i.hasOwnProperty;t.exports=r},{"../object/keys":77}],52:[function(e,t,n){var r=e("./baseProperty"),a=r("length");t.exports=a},{"./baseProperty":35}],53:[function(e,t,n){function r(e){for(var t=i(e),n=t.length;n--;)t[n][2]=a(t[n][1]);return t}var a=e("./isStrictComparable"),i=e("../object/pairs");t.exports=r},{"../object/pairs":79,"./isStrictComparable":62}],54:[function(e,t,n){function r(e,t){var n=null==e?void 0:e[t];return a(n)?n:void 0}var a=e("../lang/isNative");t.exports=r},{"../lang/isNative":74}],55:[function(e,t,n){function r(e){return null!=e&&i(a(e))}var a=e("./getLength"),i=e("./isLength");t.exports=r},{"./getLength":52,"./isLength":59}],56:[function(e,t,n){function r(e,t){return e="number"==typeof e||a.test(e)?+e:-1,t=null==t?i:t,e>-1&&e%1==0&&t>e}var a=/^\d+$/,i=9007199254740991;t.exports=r},{}],57:[function(e,t,n){function r(e,t,n){if(!o(n))return!1;var r=typeof t;if("number"==r?a(n)&&i(t,n.length):"string"==r&&t in n){var s=n[t];return e===e?e===s:s!==s}return!1}var a=e("./isArrayLike"),i=e("./isIndex"),o=e("../lang/isObject");t.exports=r},{"../lang/isObject":75,"./isArrayLike":55,"./isIndex":56}],58:[function(e,t,n){function r(e,t){var n=typeof e;if("string"==n&&s.test(e)||"number"==n)return!0;if(a(e))return!1;var r=!o.test(e);return r||null!=t&&e in i(t)}var a=e("../lang/isArray"),i=e("./toObject"),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=r},{"../lang/isArray":73,"./toObject":68}],59:[function(e,t,n){function r(e){return"number"==typeof e&&e>-1&&e%1==0&&a>=e}var a=9007199254740991;t.exports=r},{}],60:[function(e,t,n){function r(e){return!!e&&"object"==typeof e}t.exports=r},{}],61:[function(e,t,n){function r(e){return 160>=e&&e>=9&&13>=e||32==e||160==e||5760==e||6158==e||e>=8192&&(8202>=e||8232==e||8233==e||8239==e||8287==e||12288==e||65279==e)}t.exports=r},{}],62:[function(e,t,n){function r(e){return e===e&&!a(e)}var a=e("../lang/isObject");t.exports=r},{"../lang/isObject":75}],63:[function(e,t,n){function r(e){return this.has(e)&&delete this.__data__[e]}t.exports=r},{}],64:[function(e,t,n){function r(e){return"__proto__"==e?void 0:this.__data__[e]}t.exports=r},{}],65:[function(e,t,n){function r(e){return"__proto__"!=e&&i.call(this.__data__,e)}var a=Object.prototype,i=a.hasOwnProperty;t.exports=r},{}],66:[function(e,t,n){function r(e,t){return"__proto__"!=e&&(this.__data__[e]=t),this}t.exports=r},{}],67:[function(e,t,n){function r(e){for(var t=l(e),n=t.length,r=n&&e.length,u=!!r&&s(r)&&(i(e)||a(e)),f=-1,d=[];++f<n;){var h=t[f];(u&&o(h,r)||c.call(e,h))&&d.push(h)}return d}var a=e("../lang/isArguments"),i=e("../lang/isArray"),o=e("./isIndex"),s=e("./isLength"),l=e("../object/keysIn"),u=Object.prototype,c=u.hasOwnProperty;t.exports=r},{"../lang/isArguments":72,"../lang/isArray":73,"../object/keysIn":78,"./isIndex":56,"./isLength":59}],68:[function(e,t,n){function r(e){return a(e)?e:Object(e)}var a=e("../lang/isObject");t.exports=r},{"../lang/isObject":75}],69:[function(e,t,n){function r(e){if(i(e))return e;var t=[];return a(e).replace(o,function(e,n,r,a){t.push(r?a.replace(s,"$1"):n||e)}),t}var a=e("./baseToString"),i=e("../lang/isArray"),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,s=/\\(\\)?/g;t.exports=r},{"../lang/isArray":73,"./baseToString":40}],70:[function(e,t,n){function r(e){for(var t=-1,n=e.length;++t<n&&a(e.charCodeAt(t)););return t}var a=e("./isSpace");t.exports=r},{"./isSpace":61}],71:[function(e,t,n){function r(e){for(var t=e.length;t--&&a(e.charCodeAt(t)););return t}var a=e("./isSpace");t.exports=r},{"./isSpace":61}],72:[function(e,t,n){function r(e){return i(e)&&a(e)&&l.call(e)==o}var a=e("../internal/isArrayLike"),i=e("../internal/isObjectLike"),o="[object Arguments]",s=Object.prototype,l=s.toString;t.exports=r},{"../internal/isArrayLike":55,"../internal/isObjectLike":60}],73:[function(e,t,n){var r=e("../internal/getNative"),a=e("../internal/isLength"),i=e("../internal/isObjectLike"),o="[object Array]",s=Object.prototype,l=s.toString,u=r(Array,"isArray"),c=u||function(e){return i(e)&&a(e.length)&&l.call(e)==o};t.exports=c},{"../internal/getNative":54,"../internal/isLength":59,"../internal/isObjectLike":60}],74:[function(e,t,n){function r(e){return null==e?!1:f.call(e)==o?d.test(u.call(e)):i(e)&&s.test(e)}var a=e("../string/escapeRegExp"),i=e("../internal/isObjectLike"),o="[object Function]",s=/^\[object .+?Constructor\]$/,l=Object.prototype,u=Function.prototype.toString,c=l.hasOwnProperty,f=l.toString,d=RegExp("^"+a(u.call(c)).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=r},{"../internal/isObjectLike":60,"../string/escapeRegExp":80}],75:[function(e,t,n){function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}t.exports=r},{}],76:[function(e,t,n){function r(e){return i(e)&&a(e.length)&&!!O[E.call(e)]}var a=e("../internal/isLength"),i=e("../internal/isObjectLike"),o="[object Arguments]",s="[object Array]",l="[object Boolean]",u="[object Date]",c="[object Error]",f="[object Function]",d="[object Map]",h="[object Number]",p="[object Object]",g="[object RegExp]",y="[object Set]",b="[object String]",m="[object WeakMap]",v="[object ArrayBuffer]",C="[object Float32Array]",x="[object Float64Array]",S="[object Int8Array]",w="[object Int16Array]",j="[object Int32Array]",k="[object Uint8Array]",I="[object Uint8ClampedArray]",A="[object Uint16Array]",T="[object Uint32Array]",O={};O[C]=O[x]=O[S]=O[w]=O[j]=O[k]=O[I]=O[A]=O[T]=!0,O[o]=O[s]=O[v]=O[l]=O[u]=O[c]=O[f]=O[d]=O[h]=O[p]=O[g]=O[y]=O[b]=O[m]=!1;var D=Object.prototype,E=D.toString;t.exports=r},{"../internal/isLength":59,"../internal/isObjectLike":60}],77:[function(e,t,n){var r=e("../internal/getNative"),a=e("../internal/isArrayLike"),i=e("../lang/isObject"),o=e("../internal/shimKeys"),s=r(Object,"keys"),l=s?function(e){var t=null==e?null:e.constructor;return"function"==typeof t&&t.prototype===e||"function"!=typeof e&&a(e)?o(e):i(e)?s(e):[]}:o;t.exports=l},{"../internal/getNative":54,"../internal/isArrayLike":55,"../internal/shimKeys":67,"../lang/isObject":75}],78:[function(e,t,n){function r(e){if(null==e)return[];l(e)||(e=Object(e));var t=e.length;t=t&&s(t)&&(i(e)||a(e))&&t||0;for(var n=e.constructor,r=-1,u="function"==typeof n&&n.prototype===e,f=Array(t),d=t>0;++r<t;)f[r]=r+"";for(var h in e)d&&o(h,t)||"constructor"==h&&(u||!c.call(e,h))||f.push(h);return f}var a=e("../lang/isArguments"),i=e("../lang/isArray"),o=e("../internal/isIndex"),s=e("../internal/isLength"),l=e("../lang/isObject"),u=Object.prototype,c=u.hasOwnProperty;t.exports=r},{"../internal/isIndex":56,"../internal/isLength":59,"../lang/isArguments":72,"../lang/isArray":73,"../lang/isObject":75}],79:[function(e,t,n){function r(e){e=i(e);for(var t=-1,n=a(e),r=n.length,o=Array(r);++t<r;){var s=n[t];o[t]=[s,e[s]]}return o}var a=e("./keys"),i=e("../internal/toObject");t.exports=r},{"../internal/toObject":68,"./keys":77}],80:[function(e,t,n){function r(e){return e=a(e),e&&o.test(e)?e.replace(i,"\\$&"):e}var a=e("../internal/baseToString"),i=/[.*+?^${}()|[\]\/\\]/g,o=RegExp(i.source);t.exports=r},{"../internal/baseToString":40}],81:[function(e,t,n){function r(e,t,n){return e=a(e),n=null==n?0:i(0>n?0:+n||0,e.length),e.lastIndexOf(t,n)==n}var a=e("../internal/baseToString"),i=Math.min;t.exports=r},{"../internal/baseToString":40}],82:[function(e,t,n){function r(e,t,n){var r=e;return(e=a(e))?(n?s(r,t,n):null==t)?e.slice(l(e),u(e)+1):(t+="",e.slice(i(e,t),o(e,t)+1)):e}var a=e("../internal/baseToString"),i=e("../internal/charsLeftIndex"),o=e("../internal/charsRightIndex"),s=e("../internal/isIterateeCall"),l=e("../internal/trimmedLeftIndex"),u=e("../internal/trimmedRightIndex");t.exports=r},{"../internal/baseToString":40,"../internal/charsLeftIndex":42,"../internal/charsRightIndex":43,"../internal/isIterateeCall":57,"../internal/trimmedLeftIndex":70,"../internal/trimmedRightIndex":71}],83:[function(e,t,n){function r(e){return e}t.exports=r},{}],84:[function(e,t,n){function r(e){return o(e)?a(e):i(e)}var a=e("../internal/baseProperty"),i=e("../internal/basePropertyDeep"),o=e("../internal/isKey");t.exports=r},{"../internal/baseProperty":35,"../internal/basePropertyDeep":36,"../internal/isKey":58}],85:[function(e,t,n){(function(n){"use strict";function r(e){var t=x.allCountries;return a(t,function(t){return y(e,t.dialCode)||y(t.dialCode,e)})}var a=e("lodash/collection/some"),i=e("lodash/collection/findWhere"),o=e("lodash/collection/reduce"),s=e("lodash/collection/map"),l=e("lodash/collection/filter"),u=e("lodash/collection/any"),c=e("lodash/array/findIndex"),f=e("lodash/array/first"),d=e("lodash/array/rest"),h=e("lodash/function/debounce"),p=e("lodash/function/memoize"),g=e("lodash/string/trim"),y=e("lodash/string/startsWith"),b="undefined"!=typeof window?window.React:"undefined"!=typeof n?n.React:null,m=e("react-dom"),v=e("react-onclickoutside"),C="undefined"!=typeof window?window.classNames:"undefined"!=typeof n?n.classNames:null,x=e("./country_data"),S=x.allCountries;if("undefined"!=typeof document)var w=Boolean(document.createElement("input").setSelectionRange);else var w=!0;var j={UP:38,DOWN:40,RIGHT:39,LEFT:37,ENTER:13,ESC:27,PLUS:43,A:65,Z:90,SPACE:32},k=b.createClass({displayName:"ReactTelephoneInput",mixins:[v],getInitialState:function(){var e=this.props.value||"",t=this.guessSelectedCountry(e.replace(/\D/g,"")),n=c(S,t),r=this.formatNumber(e.replace(/\D/g,""),t?t.format:null),a=[];return a=l(S,function(e){return u(this.props.preferredCountries,function(t){return t===e.iso2})},this),{preferredCountries:a,selectedCountry:t,highlightCountryIndex:n,formattedNumber:r,showDropDown:!1,queryString:"",freezeSelection:!1,debouncedQueryStingSearcher:h(this.searchCountry,100)}},propTypes:{value:b.PropTypes.string,autoFormat:b.PropTypes.bool,defaultCountry:b.PropTypes.string,onlyCountries:b.PropTypes.arrayOf(b.PropTypes.object),preferredCountries:b.PropTypes.arrayOf(b.PropTypes.object),onChange:b.PropTypes.func,onEnterKeyPress:b.PropTypes.func},getDefaultProps:function(){return{value:"",autoFormat:!0,onlyCountries:S,defaultCountry:S[1].iso2,isValid:r,flagsImagePath:"flags.png",onEnterKeyPress:function(){}}},getNumber:function(){return"+"!==this.state.formattedNumber?this.state.formattedNumber:""},getValue:function(){return this.getNumber()},componentDidMount:function(){document.addEventListener("keydown",this.handleKeydown),this._cursorToEnd(!0),"function"==typeof this.props.onChange&&this.props.onChange(this.state.formattedNumber,this.state.selectedCountry)},componentWillUnmount:function(){document.removeEventListener("keydown",this.handleKeydown)},scrollTo:function(e,t){if(e){var n=m.findDOMNode(this.refs.flagDropdownList);if(n){var r=n.offsetHeight,a=n.getBoundingClientRect(),i=a.top+document.body.scrollTop,o=i+r,s=e,l=s.getBoundingClientRect(),u=s.offsetHeight,c=l.top+document.body.scrollTop,f=c+u,d=c-i+n.scrollTop,h=r/2-u/2;if(i>c)t&&(d-=h),n.scrollTop=d;else if(f>o){t&&(d+=h);var p=r-u;n.scrollTop=d-p}}}},formatNumber:function(e,t){if(!e||0===e.length)return"+";if(e&&e.length<2||!t||!this.props.autoFormat)return"+"+e;var n=o(t,function(e,t){return 0===e.remainingText.length?e:"."!==t?{formattedText:e.formattedText+t,remainingText:e.remainingText}:{formattedText:e.formattedText+f(e.remainingText),remainingText:d(e.remainingText)}},{formattedText:"",remainingText:e.split("")});return n.formattedText+n.remainingText.join("")},_cursorToEnd:function(e){var t=this.refs.numberInput;if(e)this.handleInputFocus();else if(t.focus(),w){var n=t.value.length;t.setSelectionRange(n,n)}},guessSelectedCountry:p(function(e){var t=i(S,{iso2:this.props.defaultCountry})||this.props.onlyCountries[0];if(""===g(e))return t;var n=o(this.props.onlyCountries,function(t,n){if(y(e,n.dialCode)){if(n.dialCode.length>t.dialCode.length)return n;if(n.dialCode.length===t.dialCode.length&&n.priority<t.priority)return n}return t},{dialCode:"",priority:10001},this);return n.name?n:t}),getElement:function(e){return m.findDOMNode(this.refs["flag_no_"+e])},handleFlagDropdownClick:function(){var e=this;this.setState({showDropDown:!this.state.showDropDown,highlightCountry:i(this.props.onlyCountries,this.state.selectedCountry),highlightCountryIndex:c(this.props.onlyCountries,this.state.selectedCountry)},function(){e.state.showDropDown&&e.scrollTo(e.getElement(e.state.highlightCountryIndex+e.state.preferredCountries.length))})},handleInput:function(e){var t="+",n=this.state.selectedCountry,r=this.state.freezeSelection;if(e.target.value!==this.state.formattedNumber){if(e.preventDefault?e.preventDefault():e.returnValue=!1,e.target.value.length>0){var a=e.target.value.replace(/\D/g,"");(!this.state.freezeSelection||this.state.selectedCountry.dialCode.length>a.length)&&(n=this.guessSelectedCountry(a.substring(0,6)),r=!1),t=this.formatNumber(a,n.format)}var i=e.target.selectionStart,o=this.state.formattedNumber,s=t.length-o.length;this.setState({formattedNumber:t,freezeSelection:r,selectedCountry:n.dialCode.length>0?n:this.state.selectedCountry},function(){w&&(s>0&&(i-=s),i>0&&o.length>=t.length&&this.refs.numberInput.setSelectionRange(i,i)),this.props.onChange&&this.props.onChange(this.state.formattedNumber,this.state.selectedCountry)})}},handleInputClick:function(){this.setState({showDropDown:!1})},handleFlagItemClick:function(e){var t=this.state.selectedCountry,n=i(this.props.onlyCountries,e);if(t.iso2!==n.iso2){var r=this.state.formattedNumber.replace(t.dialCode,n.dialCode),a=this.formatNumber(r.replace(/\D/g,""),n.format);this.setState({showDropDown:!1,selectedCountry:n,freezeSelection:!0,formattedNumber:a},function(){this._cursorToEnd(),this.props.onChange&&this.props.onChange(a,n)})}else this.setState({showDropDown:!1})},handleInputFocus:function(){"+"===this.refs.numberInput.value&&this.setState({formattedNumber:"+"+this.state.selectedCountry.dialCode})},_getHighlightCountryIndex:function(e){var t=this.state.highlightCountryIndex+e;return 0>t||t>=this.props.onlyCountries.length+this.state.preferredCountries.length?t-e:t},_searchCountry:p(function(e){if(!e||0===e.length)return null;var t=l(this.props.onlyCountries,function(t){return y(t.name.toLowerCase(),e.toLowerCase())},this);return t[0]}),searchCountry:function(){var e=this._searchCountry(this.state.queryString)||this.props.onlyCountries[0],t=c(this.props.onlyCountries,e)+this.state.preferredCountries.length;this.scrollTo(this.getElement(t),!0),this.setState({queryString:"",highlightCountryIndex:t})},handleKeydown:function(e){function t(e){n.setState({highlightCountryIndex:n._getHighlightCountryIndex(e)},function(){n.scrollTo(n.getElement(n.state.highlightCountryIndex),!0)})}if(this.state.showDropDown){e.preventDefault?e.preventDefault():e.returnValue=!1;var n=this;switch(e.which){case j.DOWN:t(1);break;case j.UP:t(-1);break;case j.ENTER:this.handleFlagItemClick(this.props.onlyCountries[this.state.highlightCountryIndex],e);break;case j.ESC:this.setState({showDropDown:!1},this._cursorToEnd);break;default:(e.which>=j.A&&e.which<=j.Z||e.which===j.SPACE)&&this.setState({queryString:this.state.queryString+String.fromCharCode(e.which)},this.state.debouncedQueryStingSearcher)}}},handleInputKeyDown:function(e){e.which===j.ENTER&&this.props.onEnterKeyPress(e)},handleClickOutside:function(){this.state.showDropDown&&this.setState({showDropDown:!1})},getCountryDropDownList:function(){var e=s(this.state.preferredCountries.concat(this.props.onlyCountries),function(e,t){var n=C({country:!0,preferred:"us"===e.iso2||"gb"===e.iso2,active:"us"===e.iso2,highlight:this.state.highlightCountryIndex===t}),r="flag "+e.iso2;return b.createElement("li",{ref:"flag_no_"+t,key:"flag_no_"+t,"data-flag-key":"flag_no_"+t,className:n,"data-dial-code":"1","data-country-code":e.iso2,onClick:this.handleFlagItemClick.bind(this,e)},b.createElement("div",{className:r,style:this.getFlagStyle()}),b.createElement("span",{className:"country-name"},e.name),b.createElement("span",{className:"dial-code"},"+"+e.dialCode))},this),t=b.createElement("li",{key:"dashes",className:"divider"});e.splice(this.state.preferredCountries.length,0,t);var n=C({"country-list":!0,hide:!this.state.showDropDown});return b.createElement("ul",{ref:"flagDropdownList",className:n},e)},getFlagStyle:function(){return{width:16,height:11,backgroundImage:"url("+this.props.flagsImagePath+")"}},handleInputBlur:function(){"function"==typeof this.props.onBlur&&this.props.onBlur(this.state.formattedNumber,this.state.selectedCountry)},render:function(){var e=C({arrow:!0,up:this.state.showDropDown}),t=C({"form-control":!0,"invalid-number":!this.props.isValid(this.state.formattedNumber.replace(/\D/g,""))}),n=C({"flag-dropdown":!0,"open-dropdown":this.state.showDropDown}),r="flag "+this.state.selectedCountry.iso2;return b.createElement("div",{className:"react-tel-input"},b.createElement("input",{onChange:this.handleInput,onClick:this.handleInputClick,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,value:this.state.formattedNumber,ref:"numberInput",type:"tel",className:t,autoComplete:"tel",placeholder:"+1 (702) 123-4567"}),b.createElement("div",{ref:"flagDropDownButton",className:n,onKeyDown:this.handleKeydown},b.createElement("div",{ref:"selectedFlag",onClick:this.handleFlagDropdownClick,className:"selected-flag",title:this.state.selectedCountry.name+": + "+this.state.selectedCountry.dialCode},b.createElement("div",{className:r,style:this.getFlagStyle()},b.createElement("div",{className:e}))),this.state.showDropDown?this.getCountryDropDownList():""))}});t.exports=k}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./country_data":86,"lodash/array/findIndex":2,"lodash/array/first":3,"lodash/array/rest":5,"lodash/collection/any":6,"lodash/collection/filter":7,"lodash/collection/findWhere":9,"lodash/collection/map":10,"lodash/collection/reduce":11,"lodash/collection/some":12,"lodash/function/debounce":14,"lodash/function/memoize":15,"lodash/string/startsWith":81,"lodash/string/trim":82,"react-dom":void 0,"react-onclickoutside":void 0}],86:[function(e,t,n){"use strict";for(var r=[["Afghanistan (افغانستان)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (الجزائر)","dz","213"],["American Samoa","as","1684"],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1264"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54"],["Armenia (Հայաստան)","am","374"],["Aruba","aw","297"],["Australia","au","61","+.. ... ... ..."],["Austria (Österreich)","at","43"],["Azerbaijan (Azərbaycan)","az","994"],["Bahamas","bs","1242"],["Bahrain (البحرين)","bh","973"],["Bangladesh (বাংলাদেশ)","bd","880"],["Barbados","bb","1246"],["Belarus (Беларусь)","by","375"],["Belgium (België)","be","32","+.. ... .. .. .."],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1441"],["Bhutan (འབྲུག)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1284"],["Brunei","bn","673"],["Bulgaria (България)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (កម្ពុជា)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1","+. (...) ...-....",1,["204","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1345"],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (中国)","cn","86","+.. ..-........"],["Colombia","co","57"],["Comoros (جزر القمر)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506","+... ....-...."],["Côte d’Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus (Κύπρος)","cy","357"],["Czech Republic (Česká republika)","cz","420"],["Denmark (Danmark)","dk","45","+.. .. .. .. .."],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic (República Dominicana)","do","1","",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (مصر)","eg","20"],["El Salvador","sv","503","+... ....-...."],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358","+... .. ... .. .."],["France","fr","33","+.. . .. .. .. .."],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (საქართველო)","ge","995"],["Germany (Deutschland)","de","49","+.. ... ......."],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (Ελλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1473"],["Guadeloupe","gp","590","",0],["Guam","gu","1671"],["Guatemala","gt","502","+... ....-...."],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","+... ....-...."],["Honduras","hn","504"],["Hong Kong (香港)","hk","852","+... .... ...."],["Hungary (Magyarország)","hu","36"],["Iceland (Ísland)","is","354","+... ... ...."],["India (भारत)","in","91","+.. .....-....."],["Indonesia","id","62"],["Iran (ایران)","ir","98"],["Iraq (العراق)","iq","964"],["Ireland","ie","353","+... .. ......."],["Israel (ישראל)","il","972"],["Italy (Italia)","it","39","+.. ... ......",0],["Jamaica","jm","1876"],["Japan (日本)","jp","81","+.. ... .. ...."],["Jordan (الأردن)","jo","962"],["Kazakhstan (Казахстан)","kz","7","+. ... ...-..-..",1],["Kenya","ke","254"],["Kiribati","ki","686"],["Kuwait (الكويت)","kw","965"],["Kyrgyzstan (Кыргызстан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (لبنان)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (ليبيا)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (澳門)","mo","853"],["Macedonia (FYROM) (Македонија)","mk","389"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","+.. ..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (موريتانيا)","mr","222"],["Mauritius (Moris)","mu","230"],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Монгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1664"],["Morocco (المغرب)","ma","212"],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (မြန်မာ)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नेपाल)","np","977"],["Netherlands (Nederland)","nl","31","+.. .. ........"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64","+.. ...-...-...."],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (조선 민주주의 인민 공화국)","kp","850"],["Northern Mariana Islands","mp","1670"],["Norway (Norge)","no","47","+.. ... .. ..."],["Oman (عُمان)","om","968"],["Pakistan (پاکستان)","pk","92","+.. ...-......."],["Palau","pw","680"],["Palestine (فلسطين)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63","+.. ... ...."],["Poland (Polska)","pl","48","+.. ...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","",3,["787","939"]],["Qatar (قطر)","qa","974"],["Réunion (La Réunion)","re","262"],["Romania (România)","ro","40"],["Russia (Россия)","ru","7","+. ... ...-..-..",0],["Rwanda","rw","250"],["Saint Barthélemy (Saint-Barthélemy)","bl","590","",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Martin (Saint-Martin (partie française))","mf","590","",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","st","239"],["Saudi Arabia (المملكة العربية السعودية)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (Србија)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","+.. ....-...."],["Sint Maarten","sx","1721"],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (대한민국)","kr","82"],["South Sudan (جنوب السودان)","ss","211"],["Spain (España)","es","34","+.. ... ... ..."],["Sri Lanka (ශ්රී ලංකාව)","lk","94"],["Sudan (السودان)","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden (Sverige)","se","46","+.. .. ... .. .."],["Switzerland (Schweiz)","ch","41","+.. .. ... .. .."],["Syria (سوريا)","sy","963"],["Taiwan (台灣)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (ไทย)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia (تونس)","tn","216"],["Turkey (Türkiye)","tr","90","+.. ... ... .. .."],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1649"],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1340"],["Uganda","ug","256"],["Ukraine (Україна)","ua","380"],["United Arab Emirates (الإمارات العربية المتحدة)","ae","971"],["United Kingdom","gb","44","+.. .... ......"],["United States","us","1","+. (...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan (Oʻzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39","+.. .. .... ....",1],["Venezuela","ve","58"],["Vietnam (Việt Nam)","vn","84"],["Wallis and Futuna","wf","681"],["Yemen (اليمن)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],a={},i=(function(e,t,n){ | ||
t in a||(a[t]=[]);var r=n||0;a[t][r]=e}),o=0;o<r.length;o++){var s=r[o];if(r[o]={name:s[0],iso2:s[1],dialCode:s[2],priority:s[4]||0},s[3]&&(r[o].format=s[3]),s[5]){r[o].hasAreaCodes=!0;for(var l=0;l<s[5].length;l++){var u=s[2]+s[5][l];i(s[1],u)}}i(s[1],s[2],s[4])}t.exports={allCountries:r,allCountryCodes:a}},{}]},{},[85])(85)}); | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.ReactTelephoneInput=e()}}(function(){return function e(t,n,r){function a(o,s){if(!n[o]){if(!t[o]){var u="function"==typeof require&&require;if(!s&&u)return u(o,!0);if(i)return i(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[o]={exports:{}};t[o][0].call(c.exports,function(e){var n=t[o][1][e];return a(n?n:e)},c,c.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o<r.length;o++)a(r[o]);return a}({1:[function(e,t,n){function r(e,t,n){var r=e?e.length:0;return r?((n?i(e,t,n):null==t)&&(t=1),a(e,0>t?0:t)):[]}var a=e("../internal/baseSlice"),i=e("../internal/isIterateeCall");t.exports=r},{"../internal/baseSlice":37,"../internal/isIterateeCall":56}],2:[function(e,t,n){var r=e("../internal/createFindIndex"),a=r();t.exports=a},{"../internal/createFindIndex":46}],3:[function(e,t,n){function r(e){return e?e[0]:void 0}t.exports=r},{}],4:[function(e,t,n){function r(e){var t=e?e.length:0;return t?e[t-1]:void 0}t.exports=r},{}],5:[function(e,t,n){function r(e){return a(e,1)}var a=e("./drop");t.exports=r},{"./drop":1}],6:[function(e,t,n){function r(e,t,n){var r=s(e)?a:o;return t=i(t,n,3),r(e,t)}var a=e("../internal/arrayFilter"),i=e("../internal/baseCallback"),o=e("../internal/baseFilter"),s=e("../lang/isArray");t.exports=r},{"../internal/arrayFilter":16,"../internal/baseCallback":20,"../internal/baseFilter":22,"../lang/isArray":72}],7:[function(e,t,n){var r=e("../internal/baseEach"),a=e("../internal/createFind"),i=a(r);t.exports=i},{"../internal/baseEach":21,"../internal/createFind":45}],8:[function(e,t,n){function r(e,t){return i(e,a(t))}var a=e("../internal/baseMatches"),i=e("./find");t.exports=r},{"../internal/baseMatches":32,"./find":7}],9:[function(e,t,n){function r(e,t,n){var r=s(e)?a:o;return t=i(t,n,3),r(e,t)}var a=e("../internal/arrayMap"),i=e("../internal/baseCallback"),o=e("../internal/baseMap"),s=e("../lang/isArray");t.exports=r},{"../internal/arrayMap":17,"../internal/baseCallback":20,"../internal/baseMap":31,"../lang/isArray":72}],10:[function(e,t,n){var r=e("../internal/arrayReduce"),a=e("../internal/baseEach"),i=e("../internal/createReduce"),o=i(r,a);t.exports=o},{"../internal/arrayReduce":18,"../internal/baseEach":21,"../internal/createReduce":47}],11:[function(e,t,n){function r(e,t,n){var r=s(e)?a:o;return n&&u(e,t,n)&&(t=void 0),("function"!=typeof t||void 0!==n)&&(t=i(t,n,3)),r(e,t)}var a=e("../internal/arraySome"),i=e("../internal/baseCallback"),o=e("../internal/baseSome"),s=e("../lang/isArray"),u=e("../internal/isIterateeCall");t.exports=r},{"../internal/arraySome":19,"../internal/baseCallback":20,"../internal/baseSome":38,"../internal/isIterateeCall":56,"../lang/isArray":72}],12:[function(e,t,n){var r=e("../internal/getNative"),a=r(Date,"now"),i=a||function(){return(new Date).getTime()};t.exports=i},{"../internal/getNative":53}],13:[function(e,t,n){function r(e,t,n){function r(){b&&clearTimeout(b),p&&clearTimeout(p),v=0,p=b=m=void 0}function u(t,n){n&&clearTimeout(n),p=b=m=void 0,t&&(v=i(),h=e.apply(y,d),b||p||(d=y=void 0))}function l(){var e=t-(i()-g);0>=e||e>t?u(m,p):b=setTimeout(l,e)}function c(){u(x,b)}function f(){if(d=arguments,g=i(),y=this,m=x&&(b||!w),C===!1)var n=w&&!b;else{p||w||(v=g);var r=C-(g-v),a=0>=r||r>C;a?(p&&(p=clearTimeout(p)),v=g,h=e.apply(y,d)):p||(p=setTimeout(c,r))}return a&&b?b=clearTimeout(b):b||t===C||(b=setTimeout(l,t)),n&&(a=!0,h=e.apply(y,d)),!a||b||p||(d=y=void 0),h}var d,p,h,g,y,b,m,v=0,C=!1,x=!0;if("function"!=typeof e)throw new TypeError(o);if(t=0>t?0:+t||0,n===!0){var w=!0;x=!1}else a(n)&&(w=!!n.leading,C="maxWait"in n&&s(+n.maxWait||0,t),x="trailing"in n?!!n.trailing:x);return f.cancel=r,f}var a=e("../lang/isObject"),i=e("../date/now"),o="Expected a function",s=Math.max;t.exports=r},{"../date/now":12,"../lang/isObject":75}],14:[function(e,t,n){function r(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(i);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o),o};return n.cache=new r.Cache,n}var a=e("../internal/MapCache"),i="Expected a function";r.Cache=a,t.exports=r},{"../internal/MapCache":15}],15:[function(e,t,n){function r(){this.__data__={}}var a=e("./mapDelete"),i=e("./mapGet"),o=e("./mapHas"),s=e("./mapSet");r.prototype["delete"]=a,r.prototype.get=i,r.prototype.has=o,r.prototype.set=s,t.exports=r},{"./mapDelete":62,"./mapGet":63,"./mapHas":64,"./mapSet":65}],16:[function(e,t,n){function r(e,t){for(var n=-1,r=e.length,a=-1,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[++a]=o)}return i}t.exports=r},{}],17:[function(e,t,n){function r(e,t){for(var n=-1,r=e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}t.exports=r},{}],18:[function(e,t,n){function r(e,t,n,r){var a=-1,i=e.length;for(r&&i&&(n=e[++a]);++a<i;)n=t(n,e[a],a,e);return n}t.exports=r},{}],19:[function(e,t,n){function r(e,t){for(var n=-1,r=e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}t.exports=r},{}],20:[function(e,t,n){function r(e,t,n){var r=typeof e;return"function"==r?void 0===t?e:o(e,t,n):null==e?s:"object"==r?a(e):void 0===t?u(e):i(e,t)}var a=e("./baseMatches"),i=e("./baseMatchesProperty"),o=e("./bindCallback"),s=e("../utility/identity"),u=e("../utility/property");t.exports=r},{"../utility/identity":82,"../utility/property":83,"./baseMatches":32,"./baseMatchesProperty":33,"./bindCallback":40}],21:[function(e,t,n){var r=e("./baseForOwn"),a=e("./createBaseEach"),i=a(r);t.exports=i},{"./baseForOwn":26,"./createBaseEach":43}],22:[function(e,t,n){function r(e,t){var n=[];return a(e,function(e,r,a){t(e,r,a)&&n.push(e)}),n}var a=e("./baseEach");t.exports=r},{"./baseEach":21}],23:[function(e,t,n){function r(e,t,n,r){var a;return n(e,function(e,n,i){return t(e,n,i)?(a=r?n:e,!1):void 0}),a}t.exports=r},{}],24:[function(e,t,n){function r(e,t,n){for(var r=e.length,a=n?r:-1;n?a--:++a<r;)if(t(e[a],a,e))return a;return-1}t.exports=r},{}],25:[function(e,t,n){var r=e("./createBaseFor"),a=r();t.exports=a},{"./createBaseFor":44}],26:[function(e,t,n){function r(e,t){return a(e,t,i)}var a=e("./baseFor"),i=e("../object/keys");t.exports=r},{"../object/keys":77,"./baseFor":25}],27:[function(e,t,n){function r(e,t,n){if(null!=e){void 0!==n&&n in a(e)&&(t=[n]);for(var r=0,i=t.length;null!=e&&i>r;)e=e[t[r++]];return r&&r==i?e:void 0}}var a=e("./toObject");t.exports=r},{"./toObject":67}],28:[function(e,t,n){function r(e,t,n,s,u,l){return e===t?!0:null==e||null==t||!i(e)&&!o(t)?e!==e&&t!==t:a(e,t,r,n,s,u,l)}var a=e("./baseIsEqualDeep"),i=e("../lang/isObject"),o=e("./isObjectLike");t.exports=r},{"../lang/isObject":75,"./baseIsEqualDeep":29,"./isObjectLike":59}],29:[function(e,t,n){function r(e,t,n,r,d,g,y){var b=s(e),m=s(t),v=c,C=c;b||(v=h.call(e),v==l?v=f:v!=f&&(b=u(e))),m||(C=h.call(t),C==l?C=f:C!=f&&(m=u(t)));var x=v==f,w=C==f,S=v==C;if(S&&!b&&!x)return i(e,t,v);if(!d){var j=x&&p.call(e,"__wrapped__"),k=w&&p.call(t,"__wrapped__");if(j||k)return n(j?e.value():e,k?t.value():t,r,d,g,y)}if(!S)return!1;g||(g=[]),y||(y=[]);for(var I=g.length;I--;)if(g[I]==e)return y[I]==t;g.push(e),y.push(t);var A=(b?a:o)(e,t,n,r,d,g,y);return g.pop(),y.pop(),A}var a=e("./equalArrays"),i=e("./equalByTag"),o=e("./equalObjects"),s=e("../lang/isArray"),u=e("../lang/isTypedArray"),l="[object Arguments]",c="[object Array]",f="[object Object]",d=Object.prototype,p=d.hasOwnProperty,h=d.toString;t.exports=r},{"../lang/isArray":72,"../lang/isTypedArray":76,"./equalArrays":48,"./equalByTag":49,"./equalObjects":50}],30:[function(e,t,n){function r(e,t,n){var r=t.length,o=r,s=!n;if(null==e)return!o;for(e=i(e);r--;){var u=t[r];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++r<o;){u=t[r];var l=u[0],c=e[l],f=u[1];if(s&&u[2]){if(void 0===c&&!(l in e))return!1}else{var d=n?n(c,f,l):void 0;if(!(void 0===d?a(f,c,n,!0):d))return!1}}return!0}var a=e("./baseIsEqual"),i=e("./toObject");t.exports=r},{"./baseIsEqual":28,"./toObject":67}],31:[function(e,t,n){function r(e,t){var n=-1,r=i(e)?Array(e.length):[];return a(e,function(e,a,i){r[++n]=t(e,a,i)}),r}var a=e("./baseEach"),i=e("./isArrayLike");t.exports=r},{"./baseEach":21,"./isArrayLike":54}],32:[function(e,t,n){function r(e){var t=i(e);if(1==t.length&&t[0][2]){var n=t[0][0],r=t[0][1];return function(e){return null==e?!1:e[n]===r&&(void 0!==r||n in o(e))}}return function(e){return a(e,t)}}var a=e("./baseIsMatch"),i=e("./getMatchData"),o=e("./toObject");t.exports=r},{"./baseIsMatch":30,"./getMatchData":52,"./toObject":67}],33:[function(e,t,n){function r(e,t){var n=s(e),r=u(e)&&l(t),p=e+"";return e=d(e),function(s){if(null==s)return!1;var u=p;if(s=f(s),(n||!r)&&!(u in s)){if(s=1==e.length?s:a(s,o(e,0,-1)),null==s)return!1;u=c(e),s=f(s)}return s[u]===t?void 0!==t||u in s:i(t,s[u],void 0,!0)}}var a=e("./baseGet"),i=e("./baseIsEqual"),o=e("./baseSlice"),s=e("../lang/isArray"),u=e("./isKey"),l=e("./isStrictComparable"),c=e("../array/last"),f=e("./toObject"),d=e("./toPath");t.exports=r},{"../array/last":4,"../lang/isArray":72,"./baseGet":27,"./baseIsEqual":28,"./baseSlice":37,"./isKey":57,"./isStrictComparable":61,"./toObject":67,"./toPath":68}],34:[function(e,t,n){function r(e){return function(t){return null==t?void 0:t[e]}}t.exports=r},{}],35:[function(e,t,n){function r(e){var t=e+"";return e=i(e),function(n){return a(n,e,t)}}var a=e("./baseGet"),i=e("./toPath");t.exports=r},{"./baseGet":27,"./toPath":68}],36:[function(e,t,n){function r(e,t,n,r,a){return a(e,function(e,a,i){n=r?(r=!1,e):t(n,e,a,i)}),n}t.exports=r},{}],37:[function(e,t,n){function r(e,t,n){var r=-1,a=e.length;t=null==t?0:+t||0,0>t&&(t=-t>a?0:a+t),n=void 0===n||n>a?a:+n||0,0>n&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r<a;)i[r]=e[r+t];return i}t.exports=r},{}],38:[function(e,t,n){function r(e,t){var n;return a(e,function(e,r,a){return n=t(e,r,a),!n}),!!n}var a=e("./baseEach");t.exports=r},{"./baseEach":21}],39:[function(e,t,n){function r(e){return null==e?"":e+""}t.exports=r},{}],40:[function(e,t,n){function r(e,t,n){if("function"!=typeof e)return a;if(void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,a){return e.call(t,n,r,a)};case 4:return function(n,r,a,i){return e.call(t,n,r,a,i)};case 5:return function(n,r,a,i,o){return e.call(t,n,r,a,i,o)}}return function(){return e.apply(t,arguments)}}var a=e("../utility/identity");t.exports=r},{"../utility/identity":82}],41:[function(e,t,n){function r(e,t){for(var n=-1,r=e.length;++n<r&&t.indexOf(e.charAt(n))>-1;);return n}t.exports=r},{}],42:[function(e,t,n){function r(e,t){for(var n=e.length;n--&&t.indexOf(e.charAt(n))>-1;);return n}t.exports=r},{}],43:[function(e,t,n){function r(e,t){return function(n,r){var s=n?a(n):0;if(!i(s))return e(n,r);for(var u=t?s:-1,l=o(n);(t?u--:++u<s)&&r(l[u],u,l)!==!1;);return n}}var a=e("./getLength"),i=e("./isLength"),o=e("./toObject");t.exports=r},{"./getLength":51,"./isLength":58,"./toObject":67}],44:[function(e,t,n){function r(e){return function(t,n,r){for(var i=a(t),o=r(t),s=o.length,u=e?s:-1;e?u--:++u<s;){var l=o[u];if(n(i[l],l,i)===!1)break}return t}}var a=e("./toObject");t.exports=r},{"./toObject":67}],45:[function(e,t,n){function r(e,t){return function(n,r,u){if(r=a(r,u,3),s(n)){var l=o(n,r,t);return l>-1?n[l]:void 0}return i(n,r,e)}}var a=e("./baseCallback"),i=e("./baseFind"),o=e("./baseFindIndex"),s=e("../lang/isArray");t.exports=r},{"../lang/isArray":72,"./baseCallback":20,"./baseFind":23,"./baseFindIndex":24}],46:[function(e,t,n){function r(e){return function(t,n,r){return t&&t.length?(n=a(n,r,3),i(t,n,e)):-1}}var a=e("./baseCallback"),i=e("./baseFindIndex");t.exports=r},{"./baseCallback":20,"./baseFindIndex":24}],47:[function(e,t,n){function r(e,t){return function(n,r,s,u){var l=arguments.length<3;return"function"==typeof r&&void 0===u&&o(n)?e(n,r,s,l):i(n,a(r,u,4),s,l,t)}}var a=e("./baseCallback"),i=e("./baseReduce"),o=e("../lang/isArray");t.exports=r},{"../lang/isArray":72,"./baseCallback":20,"./baseReduce":36}],48:[function(e,t,n){function r(e,t,n,r,i,o,s){var u=-1,l=e.length,c=t.length;if(l!=c&&!(i&&c>l))return!1;for(;++u<l;){var f=e[u],d=t[u],p=r?r(i?d:f,i?f:d,u):void 0;if(void 0!==p){if(p)continue;return!1}if(i){if(!a(t,function(e){return f===e||n(f,e,r,i,o,s)}))return!1}else if(f!==d&&!n(f,d,r,i,o,s))return!1}return!0}var a=e("./arraySome");t.exports=r},{"./arraySome":19}],49:[function(e,t,n){function r(e,t,n){switch(n){case a:case i:return+e==+t;case o:return e.name==t.name&&e.message==t.message;case s:return e!=+e?t!=+t:e==+t;case u:case l:return e==t+""}return!1}var a="[object Boolean]",i="[object Date]",o="[object Error]",s="[object Number]",u="[object RegExp]",l="[object String]";t.exports=r},{}],50:[function(e,t,n){function r(e,t,n,r,i,s,u){var l=a(e),c=l.length,f=a(t),d=f.length;if(c!=d&&!i)return!1;for(var p=c;p--;){var h=l[p];if(!(i?h in t:o.call(t,h)))return!1}for(var g=i;++p<c;){h=l[p];var y=e[h],b=t[h],m=r?r(i?b:y,i?y:b,h):void 0;if(!(void 0===m?n(y,b,r,i,s,u):m))return!1;g||(g="constructor"==h)}if(!g){var v=e.constructor,C=t.constructor;if(v!=C&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof C&&C instanceof C))return!1}return!0}var a=e("../object/keys"),i=Object.prototype,o=i.hasOwnProperty;t.exports=r},{"../object/keys":77}],51:[function(e,t,n){var r=e("./baseProperty"),a=r("length");t.exports=a},{"./baseProperty":34}],52:[function(e,t,n){function r(e){for(var t=i(e),n=t.length;n--;)t[n][2]=a(t[n][1]);return t}var a=e("./isStrictComparable"),i=e("../object/pairs");t.exports=r},{"../object/pairs":79,"./isStrictComparable":61}],53:[function(e,t,n){function r(e,t){var n=null==e?void 0:e[t];return a(n)?n:void 0}var a=e("../lang/isNative");t.exports=r},{"../lang/isNative":74}],54:[function(e,t,n){function r(e){return null!=e&&i(a(e))}var a=e("./getLength"),i=e("./isLength");t.exports=r},{"./getLength":51,"./isLength":58}],55:[function(e,t,n){function r(e,t){return e="number"==typeof e||a.test(e)?+e:-1,t=null==t?i:t,e>-1&&e%1==0&&t>e}var a=/^\d+$/,i=9007199254740991;t.exports=r},{}],56:[function(e,t,n){function r(e,t,n){if(!o(n))return!1;var r=typeof t;if("number"==r?a(n)&&i(t,n.length):"string"==r&&t in n){var s=n[t];return e===e?e===s:s!==s}return!1}var a=e("./isArrayLike"),i=e("./isIndex"),o=e("../lang/isObject");t.exports=r},{"../lang/isObject":75,"./isArrayLike":54,"./isIndex":55}],57:[function(e,t,n){function r(e,t){var n=typeof e;if("string"==n&&s.test(e)||"number"==n)return!0;if(a(e))return!1;var r=!o.test(e);return r||null!=t&&e in i(t)}var a=e("../lang/isArray"),i=e("./toObject"),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=r},{"../lang/isArray":72,"./toObject":67}],58:[function(e,t,n){function r(e){return"number"==typeof e&&e>-1&&e%1==0&&a>=e}var a=9007199254740991;t.exports=r},{}],59:[function(e,t,n){function r(e){return!!e&&"object"==typeof e}t.exports=r},{}],60:[function(e,t,n){function r(e){return 160>=e&&e>=9&&13>=e||32==e||160==e||5760==e||6158==e||e>=8192&&(8202>=e||8232==e||8233==e||8239==e||8287==e||12288==e||65279==e)}t.exports=r},{}],61:[function(e,t,n){function r(e){return e===e&&!a(e)}var a=e("../lang/isObject");t.exports=r},{"../lang/isObject":75}],62:[function(e,t,n){function r(e){return this.has(e)&&delete this.__data__[e]}t.exports=r},{}],63:[function(e,t,n){function r(e){return"__proto__"==e?void 0:this.__data__[e]}t.exports=r},{}],64:[function(e,t,n){function r(e){return"__proto__"!=e&&i.call(this.__data__,e)}var a=Object.prototype,i=a.hasOwnProperty;t.exports=r},{}],65:[function(e,t,n){function r(e,t){return"__proto__"!=e&&(this.__data__[e]=t),this}t.exports=r},{}],66:[function(e,t,n){function r(e){for(var t=u(e),n=t.length,r=n&&e.length,l=!!r&&s(r)&&(i(e)||a(e)),f=-1,d=[];++f<n;){var p=t[f];(l&&o(p,r)||c.call(e,p))&&d.push(p)}return d}var a=e("../lang/isArguments"),i=e("../lang/isArray"),o=e("./isIndex"),s=e("./isLength"),u=e("../object/keysIn"),l=Object.prototype,c=l.hasOwnProperty;t.exports=r},{"../lang/isArguments":71,"../lang/isArray":72,"../object/keysIn":78,"./isIndex":55,"./isLength":58}],67:[function(e,t,n){function r(e){return a(e)?e:Object(e)}var a=e("../lang/isObject");t.exports=r},{"../lang/isObject":75}],68:[function(e,t,n){function r(e){if(i(e))return e;var t=[];return a(e).replace(o,function(e,n,r,a){t.push(r?a.replace(s,"$1"):n||e)}),t}var a=e("./baseToString"),i=e("../lang/isArray"),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,s=/\\(\\)?/g;t.exports=r},{"../lang/isArray":72,"./baseToString":39}],69:[function(e,t,n){function r(e){for(var t=-1,n=e.length;++t<n&&a(e.charCodeAt(t)););return t}var a=e("./isSpace");t.exports=r},{"./isSpace":60}],70:[function(e,t,n){function r(e){for(var t=e.length;t--&&a(e.charCodeAt(t)););return t}var a=e("./isSpace");t.exports=r},{"./isSpace":60}],71:[function(e,t,n){function r(e){return i(e)&&a(e)&&s.call(e,"callee")&&!u.call(e,"callee")}var a=e("../internal/isArrayLike"),i=e("../internal/isObjectLike"),o=Object.prototype,s=o.hasOwnProperty,u=o.propertyIsEnumerable;t.exports=r},{"../internal/isArrayLike":54,"../internal/isObjectLike":59}],72:[function(e,t,n){var r=e("../internal/getNative"),a=e("../internal/isLength"),i=e("../internal/isObjectLike"),o="[object Array]",s=Object.prototype,u=s.toString,l=r(Array,"isArray"),c=l||function(e){return i(e)&&a(e.length)&&u.call(e)==o};t.exports=c},{"../internal/getNative":53,"../internal/isLength":58,"../internal/isObjectLike":59}],73:[function(e,t,n){function r(e){return a(e)&&s.call(e)==i}var a=e("./isObject"),i="[object Function]",o=Object.prototype,s=o.toString;t.exports=r},{"./isObject":75}],74:[function(e,t,n){function r(e){return null==e?!1:a(e)?c.test(u.call(e)):i(e)&&o.test(e)}var a=e("./isFunction"),i=e("../internal/isObjectLike"),o=/^\[object .+?Constructor\]$/,s=Object.prototype,u=Function.prototype.toString,l=s.hasOwnProperty,c=RegExp("^"+u.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=r},{"../internal/isObjectLike":59,"./isFunction":73}],75:[function(e,t,n){function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}t.exports=r},{}],76:[function(e,t,n){function r(e){return i(e)&&a(e.length)&&!!T[N.call(e)]}var a=e("../internal/isLength"),i=e("../internal/isObjectLike"),o="[object Arguments]",s="[object Array]",u="[object Boolean]",l="[object Date]",c="[object Error]",f="[object Function]",d="[object Map]",p="[object Number]",h="[object Object]",g="[object RegExp]",y="[object Set]",b="[object String]",m="[object WeakMap]",v="[object ArrayBuffer]",C="[object Float32Array]",x="[object Float64Array]",w="[object Int8Array]",S="[object Int16Array]",j="[object Int32Array]",k="[object Uint8Array]",I="[object Uint8ClampedArray]",A="[object Uint16Array]",O="[object Uint32Array]",T={};T[C]=T[x]=T[w]=T[S]=T[j]=T[k]=T[I]=T[A]=T[O]=!0,T[o]=T[s]=T[v]=T[u]=T[l]=T[c]=T[f]=T[d]=T[p]=T[h]=T[g]=T[y]=T[b]=T[m]=!1;var D=Object.prototype,N=D.toString;t.exports=r},{"../internal/isLength":58,"../internal/isObjectLike":59}],77:[function(e,t,n){var r=e("../internal/getNative"),a=e("../internal/isArrayLike"),i=e("../lang/isObject"),o=e("../internal/shimKeys"),s=r(Object,"keys"),u=s?function(e){var t=null==e?void 0:e.constructor;return"function"==typeof t&&t.prototype===e||"function"!=typeof e&&a(e)?o(e):i(e)?s(e):[]}:o;t.exports=u},{"../internal/getNative":53,"../internal/isArrayLike":54,"../internal/shimKeys":66,"../lang/isObject":75}],78:[function(e,t,n){function r(e){if(null==e)return[];u(e)||(e=Object(e));var t=e.length;t=t&&s(t)&&(i(e)||a(e))&&t||0;for(var n=e.constructor,r=-1,l="function"==typeof n&&n.prototype===e,f=Array(t),d=t>0;++r<t;)f[r]=r+"";for(var p in e)d&&o(p,t)||"constructor"==p&&(l||!c.call(e,p))||f.push(p);return f}var a=e("../lang/isArguments"),i=e("../lang/isArray"),o=e("../internal/isIndex"),s=e("../internal/isLength"),u=e("../lang/isObject"),l=Object.prototype,c=l.hasOwnProperty;t.exports=r},{"../internal/isIndex":55,"../internal/isLength":58,"../lang/isArguments":71,"../lang/isArray":72,"../lang/isObject":75}],79:[function(e,t,n){function r(e){e=i(e);for(var t=-1,n=a(e),r=n.length,o=Array(r);++t<r;){var s=n[t];o[t]=[s,e[s]]}return o}var a=e("./keys"),i=e("../internal/toObject");t.exports=r},{"../internal/toObject":67,"./keys":77}],80:[function(e,t,n){function r(e,t,n){return e=a(e),n=null==n?0:i(0>n?0:+n||0,e.length),e.lastIndexOf(t,n)==n}var a=e("../internal/baseToString"),i=Math.min;t.exports=r},{"../internal/baseToString":39}],81:[function(e,t,n){function r(e,t,n){var r=e;return(e=a(e))?(n?s(r,t,n):null==t)?e.slice(u(e),l(e)+1):(t+="",e.slice(i(e,t),o(e,t)+1)):e}var a=e("../internal/baseToString"),i=e("../internal/charsLeftIndex"),o=e("../internal/charsRightIndex"),s=e("../internal/isIterateeCall"),u=e("../internal/trimmedLeftIndex"),l=e("../internal/trimmedRightIndex");t.exports=r},{"../internal/baseToString":39,"../internal/charsLeftIndex":41,"../internal/charsRightIndex":42,"../internal/isIterateeCall":56,"../internal/trimmedLeftIndex":69,"../internal/trimmedRightIndex":70}],82:[function(e,t,n){function r(e){return e}t.exports=r},{}],83:[function(e,t,n){function r(e){return o(e)?a(e):i(e)}var a=e("../internal/baseProperty"),i=e("../internal/basePropertyDeep"),o=e("../internal/isKey");t.exports=r},{"../internal/baseProperty":34,"../internal/basePropertyDeep":35,"../internal/isKey":57}],84:[function(e,t,n){(function(n){"use strict";function r(e){var t=C.allCountries;return a(t,function(t){return g(e,t.dialCode)||g(t.dialCode,e)})}var a=e("lodash/collection/some"),i=e("lodash/collection/findWhere"),o=e("lodash/collection/reduce"),s=e("lodash/collection/map"),u=e("lodash/collection/filter"),l=e("lodash/array/findIndex"),c=e("lodash/array/first"),f=e("lodash/array/rest"),d=e("lodash/function/debounce"),p=e("lodash/function/memoize"),h=e("lodash/string/trim"),g=e("lodash/string/startsWith"),y="undefined"!=typeof window?window.React:"undefined"!=typeof n?n.React:null,b=e("react-dom"),m=e("react-onclickoutside"),v="undefined"!=typeof window?window.classNames:"undefined"!=typeof n?n.classNames:null,C=e("./country_data"),x=C.allCountries,w=C.allCountriesIso2Lookup;if("undefined"!=typeof document)var S=Boolean(document.createElement("input").setSelectionRange);else var S=!0;var j={UP:38,DOWN:40,RIGHT:39,LEFT:37,ENTER:13,ESC:27,PLUS:43,A:65,Z:90,SPACE:32},k=y.createClass({displayName:"ReactTelephoneInput",mixins:[m],getInitialState:function(){var e=this.props.value||"",t=this.guessSelectedCountry(e.replace(/\D/g,"")),n=l(x,t),r=this.formatNumber(e.replace(/\D/g,""),t?t.format:null),a=[];return a=this.props.preferredCountries.map(function(e){return w.hasOwnProperty(e)?x[w[e]]:null}).filter(function(e){return null!==e}),{preferredCountries:a,selectedCountry:t,highlightCountryIndex:n,formattedNumber:r,showDropDown:!1,queryString:"",freezeSelection:!1,debouncedQueryStingSearcher:d(this.searchCountry,100)}},propTypes:{value:y.PropTypes.string,autoFormat:y.PropTypes.bool,defaultCountry:y.PropTypes.string,onlyCountries:y.PropTypes.arrayOf(y.PropTypes.object),preferredCountries:y.PropTypes.arrayOf(y.PropTypes.string),onChange:y.PropTypes.func,onEnterKeyPress:y.PropTypes.func,classNames:y.PropTypes.string},getDefaultProps:function(){return{value:"",autoFormat:!0,onlyCountries:x,defaultCountry:x[0].iso2,isValid:r,flagsImagePath:"flags.png",onEnterKeyPress:function(){},preferredCountries:[]}},getNumber:function(){return"+"!==this.state.formattedNumber?this.state.formattedNumber:""},getValue:function(){return this.getNumber()},componentDidMount:function(){document.addEventListener("keydown",this.handleKeydown),this._cursorToEnd(!0),"function"==typeof this.props.onChange&&this.props.onChange(this.state.formattedNumber,this.state.selectedCountry)},componentWillUnmount:function(){document.removeEventListener("keydown",this.handleKeydown)},scrollTo:function(e,t){if(e){var n=b.findDOMNode(this.refs.flagDropdownList);if(n){var r=n.offsetHeight,a=n.getBoundingClientRect(),i=a.top+document.body.scrollTop,o=i+r,s=e,u=s.getBoundingClientRect(),l=s.offsetHeight,c=u.top+document.body.scrollTop,f=c+l,d=c-i+n.scrollTop,p=r/2-l/2;if(i>c)t&&(d-=p),n.scrollTop=d;else if(f>o){t&&(d+=p);var h=r-l;n.scrollTop=d-h}}}},formatNumber:function(e,t){if(!e||0===e.length)return"+";if(e&&e.length<2||!t||!this.props.autoFormat)return"+"+e;var n=o(t,function(e,t){return 0===e.remainingText.length?e:"."!==t?{formattedText:e.formattedText+t,remainingText:e.remainingText}:{formattedText:e.formattedText+c(e.remainingText),remainingText:f(e.remainingText)}},{formattedText:"",remainingText:e.split("")});return n.formattedText+n.remainingText.join("")},_cursorToEnd:function(e){var t=this.refs.numberInput;if(e)this.handleInputFocus();else if(t.focus(),S){var n=t.value.length;t.setSelectionRange(n,n)}},guessSelectedCountry:p(function(e){var t=i(x,{iso2:this.props.defaultCountry})||this.props.onlyCountries[0];if(""===h(e))return t;var n=o(this.props.onlyCountries,function(t,n){if(g(e,n.dialCode)){if(n.dialCode.length>t.dialCode.length)return n;if(n.dialCode.length===t.dialCode.length&&n.priority<t.priority)return n}return t},{dialCode:"",priority:10001},this);return n.name?n:t}),getElement:function(e){return b.findDOMNode(this.refs["flag_no_"+e])},handleFlagDropdownClick:function(){var e=this;this.setState({showDropDown:!this.state.showDropDown,highlightCountry:i(this.props.onlyCountries,this.state.selectedCountry),highlightCountryIndex:l(this.props.onlyCountries,this.state.selectedCountry)},function(){e.state.showDropDown&&e.scrollTo(e.getElement(e.state.highlightCountryIndex+e.state.preferredCountries.length))})},handleInput:function(e){var t="+",n=this.state.selectedCountry,r=this.state.freezeSelection;if(e.target.value!==this.state.formattedNumber){if(e.preventDefault?e.preventDefault():e.returnValue=!1,e.target.value.length>0){var a=e.target.value.replace(/\D/g,"");(!this.state.freezeSelection||this.state.selectedCountry.dialCode.length>a.length)&&(n=this.guessSelectedCountry(a.substring(0,6)),r=!1),t=this.formatNumber(a,n.format)}var i=e.target.selectionStart,o=this.state.formattedNumber,s=t.length-o.length;this.setState({formattedNumber:t,freezeSelection:r,selectedCountry:n.dialCode.length>0?n:this.state.selectedCountry},function(){S&&(s>0&&(i-=s),i>0&&o.length>=t.length&&this.refs.numberInput.setSelectionRange(i,i)),this.props.onChange&&this.props.onChange(this.state.formattedNumber,this.state.selectedCountry)})}},handleInputClick:function(){this.setState({showDropDown:!1})},handleFlagItemClick:function(e){var t=this.state.selectedCountry,n=i(this.props.onlyCountries,e);if(t.iso2!==n.iso2){var r=this.state.formattedNumber.replace(t.dialCode,n.dialCode),a=this.formatNumber(r.replace(/\D/g,""),n.format);this.setState({showDropDown:!1,selectedCountry:n,freezeSelection:!0,formattedNumber:a},function(){this._cursorToEnd(),this.props.onChange&&this.props.onChange(a,n)})}else this.setState({showDropDown:!1})},handleInputFocus:function(){"+"===this.refs.numberInput.value&&this.setState({formattedNumber:"+"+this.state.selectedCountry.dialCode})},_getHighlightCountryIndex:function(e){var t=this.state.highlightCountryIndex+e;return 0>t||t>=this.props.onlyCountries.length+this.state.preferredCountries.length?t-e:t},_searchCountry:p(function(e){if(!e||0===e.length)return null;var t=u(this.props.onlyCountries,function(t){return g(t.name.toLowerCase(),e.toLowerCase())},this);return t[0]}),searchCountry:function(){var e=this._searchCountry(this.state.queryString)||this.props.onlyCountries[0],t=l(this.props.onlyCountries,e)+this.state.preferredCountries.length;this.scrollTo(this.getElement(t),!0),this.setState({queryString:"",highlightCountryIndex:t})},handleKeydown:function(e){function t(e){n.setState({highlightCountryIndex:n._getHighlightCountryIndex(e)},function(){n.scrollTo(n.getElement(n.state.highlightCountryIndex),!0)})}if(this.state.showDropDown){e.preventDefault?e.preventDefault():e.returnValue=!1;var n=this;switch(e.which){case j.DOWN:t(1);break;case j.UP:t(-1);break;case j.ENTER:this.handleFlagItemClick(this.props.onlyCountries[this.state.highlightCountryIndex],e);break;case j.ESC:this.setState({showDropDown:!1},this._cursorToEnd);break;default:(e.which>=j.A&&e.which<=j.Z||e.which===j.SPACE)&&this.setState({queryString:this.state.queryString+String.fromCharCode(e.which)},this.state.debouncedQueryStingSearcher)}}},handleInputKeyDown:function(e){e.which===j.ENTER&&this.props.onEnterKeyPress(e)},handleClickOutside:function(){this.state.showDropDown&&this.setState({showDropDown:!1})},getCountryDropDownList:function(){var e=s(this.state.preferredCountries.concat(this.props.onlyCountries),function(e,t){var n=v({country:!0,preferred:"us"===e.iso2||"gb"===e.iso2,active:"us"===e.iso2,highlight:this.state.highlightCountryIndex===t}),r="flag "+e.iso2;return y.createElement("li",{ref:"flag_no_"+t,key:"flag_no_"+t,"data-flag-key":"flag_no_"+t,className:n,"data-dial-code":"1","data-country-code":e.iso2,onClick:this.handleFlagItemClick.bind(this,e)},y.createElement("div",{className:r,style:this.getFlagStyle()}),y.createElement("span",{className:"country-name"},e.name),y.createElement("span",{className:"dial-code"},"+"+e.dialCode))},this),t=y.createElement("li",{key:"dashes",className:"divider"});e.splice(this.state.preferredCountries.length,0,t);var n=v({"country-list":!0,hide:!this.state.showDropDown});return y.createElement("ul",{ref:"flagDropdownList",className:n},e)},getFlagStyle:function(){return{width:16,height:11,backgroundImage:"url("+this.props.flagsImagePath+")"}},handleInputBlur:function(){"function"==typeof this.props.onBlur&&this.props.onBlur(this.state.formattedNumber,this.state.selectedCountry)},render:function(){var e=v({arrow:!0,up:this.state.showDropDown}),t=v({"form-control":!0,"invalid-number":!this.props.isValid(this.state.formattedNumber.replace(/\D/g,""))}),n=v({"flag-dropdown":!0,"open-dropdown":this.state.showDropDown}),r="flag "+this.state.selectedCountry.iso2;return y.createElement("div",{className:v("react-tel-input",this.props.classNames)},y.createElement("input",{onChange:this.handleInput,onClick:this.handleInputClick,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,value:this.state.formattedNumber,ref:"numberInput",type:"tel",className:t,autoComplete:"tel",placeholder:"+1 (702) 123-4567"}),y.createElement("div",{ref:"flagDropDownButton",className:n,onKeyDown:this.handleKeydown},y.createElement("div",{ref:"selectedFlag",onClick:this.handleFlagDropdownClick,className:"selected-flag",title:this.state.selectedCountry.name+": + "+this.state.selectedCountry.dialCode},y.createElement("div",{className:r,style:this.getFlagStyle()},y.createElement("div",{className:e}))),this.state.showDropDown?this.getCountryDropDownList():""))}});t.exports=k}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./country_data":85,"lodash/array/findIndex":2,"lodash/array/first":3,"lodash/array/rest":5,"lodash/collection/filter":6,"lodash/collection/findWhere":8,"lodash/collection/map":9,"lodash/collection/reduce":10,"lodash/collection/some":11,"lodash/function/debounce":13,"lodash/function/memoize":14,"lodash/string/startsWith":80,"lodash/string/trim":81,"react-dom":void 0,"react-onclickoutside":void 0}],85:[function(e,t,n){"use strict";for(var r=[["Afghanistan (افغانستان)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (الجزائر)","dz","213"],["American Samoa","as","1684"],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1264"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54"],["Armenia (Հայաստան)","am","374"],["Aruba","aw","297"],["Australia","au","61","+.. ... ... ..."],["Austria (Österreich)","at","43"],["Azerbaijan (Azərbaycan)","az","994"],["Bahamas","bs","1242"],["Bahrain (البحرين)","bh","973"],["Bangladesh (বাংলাদেশ)","bd","880"],["Barbados","bb","1246"],["Belarus (Беларусь)","by","375"],["Belgium (België)","be","32","+.. ... .. .. .."],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1441"],["Bhutan (འབྲུག)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1284"],["Brunei","bn","673"],["Bulgaria (България)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (កម្ពុជា)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1","+. (...) ...-....",1,["204","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1345"],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (中国)","cn","86","+.. ..-........"],["Colombia","co","57"],["Comoros (جزر القمر)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506","+... ....-...."],["Côte d’Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus (Κύπρος)","cy","357"],["Czech Republic (Česká republika)","cz","420"],["Denmark (Danmark)","dk","45","+.. .. .. .. .."],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic (República Dominicana)","do","1","",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (مصر)","eg","20"],["El Salvador","sv","503","+... ....-...."],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358","+... .. ... .. .."],["France","fr","33","+.. . .. .. .. .."],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (საქართველო)","ge","995"],["Germany (Deutschland)","de","49","+.. ... ......."],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (Ελλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1473"],["Guadeloupe","gp","590","",0],["Guam","gu","1671"],["Guatemala","gt","502","+... ....-...."],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","+... ....-...."],["Honduras","hn","504"],["Hong Kong (香港)","hk","852","+... .... ...."],["Hungary (Magyarország)","hu","36"],["Iceland (Ísland)","is","354","+... ... ...."],["India (भारत)","in","91","+.. .....-....."],["Indonesia","id","62"],["Iran (ایران)","ir","98"],["Iraq (العراق)","iq","964"],["Ireland","ie","353","+... .. ......."],["Israel (ישראל)","il","972"],["Italy (Italia)","it","39","+.. ... ......",0],["Jamaica","jm","1876"],["Japan (日本)","jp","81","+.. ... .. ...."],["Jordan (الأردن)","jo","962"],["Kazakhstan (Казахстан)","kz","7","+. ... ...-..-..",1],["Kenya","ke","254"],["Kiribati","ki","686"],["Kuwait (الكويت)","kw","965"],["Kyrgyzstan (Кыргызстан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (لبنان)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (ليبيا)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (澳門)","mo","853"],["Macedonia (FYROM) (Македонија)","mk","389"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","+.. ..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (موريتانيا)","mr","222"],["Mauritius (Moris)","mu","230"],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Монгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1664"],["Morocco (المغرب)","ma","212"],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (မြန်မာ)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नेपाल)","np","977"],["Netherlands (Nederland)","nl","31","+.. .. ........"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64","+.. ...-...-...."],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (조선 민주주의 인민 공화국)","kp","850"],["Northern Mariana Islands","mp","1670"],["Norway (Norge)","no","47","+.. ... .. ..."],["Oman (عُمان)","om","968"],["Pakistan (پاکستان)","pk","92","+.. ...-......."],["Palau","pw","680"],["Palestine (فلسطين)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63","+.. ... ...."],["Poland (Polska)","pl","48","+.. ...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","",3,["787","939"]],["Qatar (قطر)","qa","974"],["Réunion (La Réunion)","re","262"],["Romania (România)","ro","40"],["Russia (Россия)","ru","7","+. ... ...-..-..",0],["Rwanda","rw","250"],["Saint Barthélemy (Saint-Barthélemy)","bl","590","",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Martin (Saint-Martin (partie française))","mf","590","",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","st","239"],["Saudi Arabia (المملكة العربية السعودية)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (Србија)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","+.. ....-...."],["Sint Maarten","sx","1721"],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (대한민국)","kr","82"],["South Sudan (جنوب السودان)","ss","211"],["Spain (España)","es","34","+.. ... ... ..."],["Sri Lanka (ශ්රී ලංකාව)","lk","94"],["Sudan (السودان)","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden (Sverige)","se","46","+.. .. ... .. .."],["Switzerland (Schweiz)","ch","41","+.. .. ... .. .."],["Syria (سوريا)","sy","963"],["Taiwan (台灣)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (ไทย)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia (تونس)","tn","216"],["Turkey (Türkiye)","tr","90","+.. ... ... .. .."],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1649"],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1340"],["Uganda","ug","256"],["Ukraine (Україна)","ua","380"],["United Arab Emirates (الإمارات العربية المتحدة)","ae","971"],["United Kingdom","gb","44","+.. .... ......"],["United States","us","1","+. (...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan (Oʻzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39","+.. .. .... ....",1],["Venezuela","ve","58"],["Vietnam (Việt Nam)","vn","84"],["Wallis and Futuna","wf","681"],["Yemen (اليمن)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],a={},i={},o=(function(e,t,n){ | ||
t in a||(a[t]=[]);var r=n||0;a[t][r]=e}),s=0;s<r.length;s++){var u=r[s];if(r[s]={name:u[0],iso2:u[1],dialCode:u[2],priority:u[4]||0},u[3]&&(r[s].format=u[3]),u[5]){r[s].hasAreaCodes=!0;for(var l=0;l<u[5].length;l++){var c=u[2]+u[5][l];o(u[1],c)}}i[r[s].iso2]=s,o(u[1],u[2],u[4])}t.exports={allCountries:r,allCountriesIso2Lookup:i,allCountryCodes:a}},{}]},{},[84])(84)}); |
@@ -12,3 +12,3 @@ require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | ||
render: function render() { | ||
return React.createElement('div', null, React.createElement(ReactTelephoneInput, { defaultCountry: 'us' })); | ||
return React.createElement('div', null, React.createElement(ReactTelephoneInput, { defaultCountry: 'us', preferredCountries: ['us', 'ca', 'zz', 'hk'] })); | ||
} | ||
@@ -15,0 +15,0 @@ }); |
@@ -11,3 +11,3 @@ 'use strict'; | ||
<div> | ||
<ReactTelephoneInput defaultCountry='us' /> | ||
<ReactTelephoneInput defaultCountry='us' preferredCountries={['us', 'ca', 'zz', 'hk']} /> | ||
</div> | ||
@@ -14,0 +14,0 @@ ); |
@@ -16,2 +16,3 @@ 'use strict'; | ||
var allCountryCodes = {}; | ||
var allCountriesIso2Lookup = {}; | ||
var addCountryCode = function addCountryCode(iso2, dialCode, priority) { | ||
@@ -59,2 +60,3 @@ if (!(dialCode in allCountryCodes)) { | ||
} | ||
allCountriesIso2Lookup[allCountries[i].iso2] = i; | ||
@@ -67,3 +69,4 @@ // dial codes | ||
allCountries: allCountries, | ||
allCountriesIso2Lookup: allCountriesIso2Lookup, | ||
allCountryCodes: allCountryCodes | ||
}; |
@@ -10,3 +10,2 @@ 'use strict'; | ||
var filter = require('lodash/collection/filter'); | ||
var any = require('lodash/collection/any'); | ||
var findIndex = require('lodash/array/findIndex'); | ||
@@ -27,2 +26,3 @@ var first = require('lodash/array/first'); | ||
var allCountries = countryData.allCountries; | ||
var allCountriesIso2Lookup = countryData.allCountriesIso2Lookup; | ||
@@ -66,7 +66,7 @@ if (typeof document !== 'undefined') { | ||
preferredCountries = filter(allCountries, function (country) { | ||
return any(this.props.preferredCountries, function (preferredCountry) { | ||
return preferredCountry === country.iso2; | ||
}); | ||
}, this); | ||
preferredCountries = this.props.preferredCountries.map(function (iso2) { | ||
return allCountriesIso2Lookup.hasOwnProperty(iso2) ? allCountries[allCountriesIso2Lookup[iso2]] : null; | ||
}).filter(function (val) { | ||
return val !== null; | ||
}); | ||
@@ -89,5 +89,6 @@ return { | ||
onlyCountries: React.PropTypes.arrayOf(React.PropTypes.object), | ||
preferredCountries: React.PropTypes.arrayOf(React.PropTypes.object), | ||
preferredCountries: React.PropTypes.arrayOf(React.PropTypes.string), | ||
onChange: React.PropTypes.func, | ||
onEnterKeyPress: React.PropTypes.func | ||
onEnterKeyPress: React.PropTypes.func, | ||
classNames: React.PropTypes.string | ||
}, | ||
@@ -99,6 +100,7 @@ getDefaultProps: function getDefaultProps() { | ||
onlyCountries: allCountries, | ||
defaultCountry: allCountries[1].iso2, | ||
defaultCountry: allCountries[0].iso2, | ||
isValid: isNumberValid, | ||
flagsImagePath: 'flags.png', | ||
onEnterKeyPress: function onEnterKeyPress() {} | ||
onEnterKeyPress: function onEnterKeyPress() {}, | ||
preferredCountries: [] | ||
}; | ||
@@ -506,3 +508,3 @@ }, | ||
'div', | ||
{ className: 'react-tel-input' }, | ||
{ className: classNames('react-tel-input', this.props.classNames) }, | ||
React.createElement('input', { | ||
@@ -509,0 +511,0 @@ onChange: this.handleInput, |
{ | ||
"name": "react-telephone-input", | ||
"version": "3.2.4", | ||
"version": "3.3.4", | ||
"description": "React component for entering and validating international telephone numbers", | ||
@@ -13,3 +13,3 @@ "main": "lib/ReactTelephoneInput.js", | ||
"start": "gulp dev", | ||
"test": "mochify --watch", | ||
"test": "mochify --watch -R spec", | ||
"watch": "gulp watch:lib" | ||
@@ -43,2 +43,3 @@ }, | ||
"chai": "^3.0.0", | ||
"dirty-chai": "^1.2.2", | ||
"eslint": "^0.23.0", | ||
@@ -48,2 +49,3 @@ "gulp": "^3.9.0", | ||
"mochify": "^2.9.0", | ||
"react-addons-test-utils": ">=0.14.0 || ^15.0.0", | ||
"react-component-gulp-tasks": "^0.7.6" | ||
@@ -57,4 +59,4 @@ }, | ||
"peerDependencies": { | ||
"react": ">=0.14.0", | ||
"react-dom": "^0.14.7" | ||
"react": ">=0.14.0 || ^15.0.0", | ||
"react-dom": "^0.14.7 || ^15.0.0" | ||
}, | ||
@@ -61,0 +63,0 @@ "browserify-shim": { |
@@ -1240,2 +1240,3 @@ 'use strict'; | ||
var allCountryCodes = {}; | ||
var allCountriesIso2Lookup = {}; | ||
var addCountryCode = function(iso2, dialCode, priority) { | ||
@@ -1283,2 +1284,3 @@ if (!(dialCode in allCountryCodes)) { | ||
} | ||
allCountriesIso2Lookup[allCountries[i].iso2] = i; | ||
@@ -1291,3 +1293,4 @@ // dial codes | ||
allCountries: allCountries, | ||
allCountriesIso2Lookup: allCountriesIso2Lookup, | ||
allCountryCodes: allCountryCodes | ||
}; |
@@ -10,3 +10,2 @@ 'use strict'; | ||
var filter = require('lodash/collection/filter'); | ||
var any = require('lodash/collection/any'); | ||
var findIndex = require('lodash/array/findIndex'); | ||
@@ -27,2 +26,3 @@ var first = require('lodash/array/first'); | ||
var allCountries = countryData.allCountries; | ||
var allCountriesIso2Lookup = countryData.allCountriesIso2Lookup; | ||
@@ -64,7 +64,7 @@ if (typeof document !== 'undefined') { | ||
preferredCountries = filter(allCountries, function(country) { | ||
return any(this.props.preferredCountries, function(preferredCountry) { | ||
return preferredCountry === country.iso2; | ||
}); | ||
}, this); | ||
preferredCountries = this.props.preferredCountries.map(iso2 => { | ||
return allCountriesIso2Lookup.hasOwnProperty(iso2) ? allCountries[allCountriesIso2Lookup[iso2]] : null; | ||
}).filter(function (val) { | ||
return val !== null; | ||
}); | ||
@@ -87,5 +87,6 @@ return { | ||
onlyCountries: React.PropTypes.arrayOf(React.PropTypes.object), | ||
preferredCountries: React.PropTypes.arrayOf(React.PropTypes.object), | ||
preferredCountries: React.PropTypes.arrayOf(React.PropTypes.string), | ||
onChange: React.PropTypes.func, | ||
onEnterKeyPress: React.PropTypes.func | ||
onEnterKeyPress: React.PropTypes.func, | ||
classNames: React.PropTypes.string | ||
}, | ||
@@ -97,6 +98,7 @@ getDefaultProps() { | ||
onlyCountries: allCountries, | ||
defaultCountry: allCountries[1].iso2, | ||
defaultCountry: allCountries[0].iso2, | ||
isValid: isNumberValid, | ||
flagsImagePath: 'flags.png', | ||
onEnterKeyPress: function () {} | ||
onEnterKeyPress: function () {}, | ||
preferredCountries: [] | ||
}; | ||
@@ -494,3 +496,3 @@ }, | ||
return ( | ||
<div className='react-tel-input'> | ||
<div className={classNames('react-tel-input', this.props.classNames)}> | ||
<input | ||
@@ -497,0 +499,0 @@ onChange={this.handleInput} |
@@ -1,30 +0,47 @@ | ||
/* global describe, it*/ | ||
/* global describe, it, afterEach*/ | ||
/* eslint: no-unused-expressions: false*/ | ||
'use strict'; | ||
var expect = require('chai').expect; | ||
var React = require('react/addons'); | ||
var TestUtils = React.addons.TestUtils; | ||
var ReactTelephoneInput = require('../src/index.js'); | ||
var chai = require('chai'); | ||
var dirtyChai = require('dirty-chai'); | ||
var expect = chai.expect; | ||
chai.use(dirtyChai); | ||
var React = require('react'); | ||
var ReactDOM = require('react-dom'); | ||
var TestUtils = require('react-addons-test-utils'); | ||
var ReactTelephoneInput = require('../src/ReactTelephoneInput.js'); | ||
var allCountries = require('../src/country_data.js').allCountries; | ||
var rti; | ||
describe('react telephone input', function() { | ||
// beforeEach(function() { | ||
afterEach(function() { | ||
if(rti) { | ||
ReactDOM.unmountComponentAtNode(ReactDOM.findDOMNode(rti).parentNode); | ||
rti = null; | ||
} | ||
}); | ||
// }); | ||
it('should render the top divs and inputses', () => { | ||
const renderer = TestUtils.createRenderer(); | ||
renderer.render(<ReactTelephoneInput/>); | ||
const renderedTree = renderer.getRenderOutput(); | ||
// afterEach(function() { | ||
expect(renderedTree.type).to.equal('div'); | ||
expect(renderedTree.props.className).to.equal('react-tel-input'); | ||
expect(renderedTree.props.children[0].type).to.equal('input'); | ||
}); | ||
// }); | ||
it('mandatory existential crisis test', function() { | ||
var rti = TestUtils.renderIntoDocument(React.createElement(ReactTelephoneInput, {})); | ||
it('mandatory existential crisis test', () => { | ||
rti = TestUtils.renderIntoDocument(React.createElement(ReactTelephoneInput, {})); | ||
expect(rti).to.be.defined; | ||
expect(rti.refs.numberInput).to.be.defined; | ||
expect(true).to.be.true; | ||
expect(true).to.be.true(); | ||
}); | ||
it('should guess selected country', function() { | ||
var rti = TestUtils.renderIntoDocument(React.createElement(ReactTelephoneInput, {})); | ||
it('should guess selected country', () => { | ||
rti = TestUtils.renderIntoDocument(React.createElement(ReactTelephoneInput, {})); | ||
// if nothing is sent in, select the first country in allCountries list as the default | ||
expect(rti.guessSelectedCountry('').iso2).to.equal(allCountries[0].iso2); | ||
// if input value is sent, select appropriately | ||
@@ -37,2 +54,3 @@ expect(rti.guessSelectedCountry('12').iso2).to.equal('us'); // based on priority | ||
expect(rti.guessSelectedCountry('590').iso2).to.equal('gp'); | ||
// select the first one if not able to resolve completely | ||
@@ -39,0 +57,0 @@ expect(rti.guessSelectedCountry('59').iso2).to.equal(allCountries[0].iso2); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72794
3006467
10
36