@sawport/react-sdk 0.1.0-alpha.25 → 0.1.0-alpha.26
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/dist/index.js +2 -5
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31745,15 +31745,13 @@ function WidgetInitForm({
|
|
|
31745
31745
|
country_code: country_code2,
|
|
31746
31746
|
timezone: timezone2
|
|
31747
31747
|
} = data2.data;
|
|
31748
|
-
const timezoneStringSplit = timezone2.split("/");
|
|
31749
31748
|
setState({
|
|
31750
31749
|
ipAddress: ip,
|
|
31751
31750
|
country: country_name,
|
|
31752
31751
|
longitude: longitude2,
|
|
31753
31752
|
latitude: latitude2,
|
|
31754
31753
|
location: region,
|
|
31755
|
-
country_code: country_code2
|
|
31756
|
-
continent: timezoneStringSplit[0]
|
|
31754
|
+
country_code: country_code2
|
|
31757
31755
|
});
|
|
31758
31756
|
const requestObject = {
|
|
31759
31757
|
ip_address: ip,
|
|
@@ -31794,8 +31792,7 @@ function WidgetInitForm({
|
|
|
31794
31792
|
latitude,
|
|
31795
31793
|
longitude,
|
|
31796
31794
|
location: location2,
|
|
31797
|
-
source_url
|
|
31798
|
-
continent
|
|
31795
|
+
source_url
|
|
31799
31796
|
}, "post"), {
|
|
31800
31797
|
onError: (err) => {
|
|
31801
31798
|
toast.error("Error occured, try again", {
|
package/dist/index.umd.js
CHANGED
|
@@ -60,7 +60,7 @@ var t,o;t=e,o=function(A){void 0===A.version&&A.default&&(A=A.default);var e,t={
|
|
|
60
60
|
Copyright (c) 2017 Jed Watson.
|
|
61
61
|
Licensed under the MIT License (MIT), see
|
|
62
62
|
http://jedwatson.github.io/classnames
|
|
63
|
-
*/!function(){var t={}.hasOwnProperty;function n(){for(var A=[],e=0;e<arguments.length;e++){var o=arguments[e];if(o){var p=typeof o;if("string"===p||"number"===p)A.push(o);else if(Array.isArray(o)&&o.length){var r=n.apply(null,o);r&&A.push(r)}else if("object"===p)for(var b in o)t.call(o,b)&&o[b]&&A.push(b)}}return A.join(" ")}A.exports?(n.default=n,A.exports=n):void 0===(o=function(){return n}.apply(e,[]))||(A.exports=o)}()},function(A,e,t){(function(e){var t=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,p=/^0o[0-7]+$/i,r=parseInt,b="object"==typeof e&&e&&e.Object===Object&&e,M="object"==typeof self&&self&&self.Object===Object&&self,c=b||M||Function("return this")(),z=Object.prototype.toString,i=c.Symbol,a=i?i.prototype:void 0,O=a?a.toString:void 0;function s(A){if("string"==typeof A)return A;if(l(A))return O?O.call(A):"";var e=A+"";return"0"==e&&1/A==-1/0?"-0":e}function u(A){var e=typeof A;return!!A&&("object"==e||"function"==e)}function l(A){return"symbol"==typeof A||!!(e=A)&&"object"==typeof e&&"[object Symbol]"==z.call(A);var e}A.exports=function(A,e,b){var M,c,z,i,a;return A=null==(M=A)?"":s(M),i=function(A){return A?(A=function(A){if("number"==typeof A)return A;if(l(A))return NaN;if(u(A)){var e="function"==typeof A.valueOf?A.valueOf():A;A=u(e)?e+"":e}if("string"!=typeof A)return 0===A?A:+A;A=A.replace(t,"");var b=n.test(A);return b||p.test(A)?r(A.slice(2),b?2:8):o.test(A)?NaN:+A}(A))===1/0||A===-1/0?17976931348623157e292*(A<0?-1:1):A==A?A:0:0===A?A:0}(b),a=i%1,c=i==i?a?i-a:i:0,0,z=A.length,c==c&&(void 0!==z&&(c=c<=z?c:z),c=c>=0?c:0),b=c,e=s(e),A.slice(b,b+e.length)==e}}).call(this,t(3))},function(A,e){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(o){"object"==typeof window&&(t=window)}A.exports=t},function(A,e,t){(function(e){var t,o=/^\[object .+?Constructor\]$/,n="object"==typeof e&&e&&e.Object===Object&&e,p="object"==typeof self&&self&&self.Object===Object&&self,r=n||p||Function("return this")(),b=Array.prototype,M=Function.prototype,c=Object.prototype,z=r["__core-js_shared__"],i=(t=/[^.]+$/.exec(z&&z.keys&&z.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"",a=M.toString,O=c.hasOwnProperty,s=c.toString,u=RegExp("^"+a.call(O).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),l=b.splice,d=R(r,"Map"),f=R(Object,"create");function q(A){var e=-1,t=A?A.length:0;for(this.clear();++e<t;){var o=A[e];this.set(o[0],o[1])}}function W(A){var e=-1,t=A?A.length:0;for(this.clear();++e<t;){var o=A[e];this.set(o[0],o[1])}}function h(A){var e=-1,t=A?A.length:0;for(this.clear();++e<t;){var o=A[e];this.set(o[0],o[1])}}function g(A,e){for(var t,o,n=A.length;n--;)if((t=A[n][0])===(o=e)||t!=t&&o!=o)return n;return-1}function m(A,e){var t,o,n=A.__data__;return("string"==(o=typeof(t=e))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==t:null===t)?n["string"==typeof e?"string":"hash"]:n.map}function R(A,e){var t,n,p=(n=e,null==(t=A)?void 0:t[n]);return function(A){return!(!v(A)||(n=A,i&&i in n))&&(e=A,t=v(e)?s.call(e):"","[object Function]"==t||"[object GeneratorFunction]"==t||function(A){var e=!1;if(null!=A&&"function"!=typeof A.toString)try{e=!!(A+"")}catch(t){}return e}(A)?u:o).test(function(A){if(null!=A){try{return a.call(A)}catch(e){}try{return A+""}catch(e){}}return""}(A));var e,t,n}(p)?p:void 0}function B(A,e){if("function"!=typeof A||e&&"function"!=typeof e)throw new TypeError("Expected a function");var t=function(){var o=arguments,n=e?e.apply(this,o):o[0],p=t.cache;if(p.has(n))return p.get(n);var r=A.apply(this,o);return t.cache=p.set(n,r),r};return t.cache=new(B.Cache||h),t}function v(A){var e=typeof A;return!!A&&("object"==e||"function"==e)}q.prototype.clear=function(){this.__data__=f?f(null):{}},q.prototype.delete=function(A){return this.has(A)&&delete this.__data__[A]},q.prototype.get=function(A){var e=this.__data__;if(f){var t=e[A];return"__lodash_hash_undefined__"===t?void 0:t}return O.call(e,A)?e[A]:void 0},q.prototype.has=function(A){var e=this.__data__;return f?void 0!==e[A]:O.call(e,A)},q.prototype.set=function(A,e){return this.__data__[A]=f&&void 0===e?"__lodash_hash_undefined__":e,this},W.prototype.clear=function(){this.__data__=[]},W.prototype.delete=function(A){var e=this.__data__,t=g(e,A);return!(t<0||(t==e.length-1?e.pop():l.call(e,t,1),0))},W.prototype.get=function(A){var e=this.__data__,t=g(e,A);return t<0?void 0:e[t][1]},W.prototype.has=function(A){return g(this.__data__,A)>-1},W.prototype.set=function(A,e){var t=this.__data__,o=g(t,A);return o<0?t.push([A,e]):t[o][1]=e,this},h.prototype.clear=function(){this.__data__={hash:new q,map:new(d||W),string:new q}},h.prototype.delete=function(A){return m(this,A).delete(A)},h.prototype.get=function(A){return m(this,A).get(A)},h.prototype.has=function(A){return m(this,A).has(A)},h.prototype.set=function(A,e){return m(this,A).set(A,e),this},B.Cache=h,A.exports=B}).call(this,t(3))},function(A,e,t){(function(e){var t=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,p=/^0o[0-7]+$/i,r=parseInt,b="object"==typeof e&&e&&e.Object===Object&&e,M="object"==typeof self&&self&&self.Object===Object&&self,c=b||M||Function("return this")(),z=Object.prototype.toString,i=Math.max,a=Math.min,O=function(){return c.Date.now()};function s(A){var e=typeof A;return!!A&&("object"==e||"function"==e)}function u(A){if("number"==typeof A)return A;if("symbol"==typeof(e=A)||(b=e)&&"object"==typeof b&&"[object Symbol]"==z.call(e))return NaN;var e,b;if(s(A)){var M="function"==typeof A.valueOf?A.valueOf():A;A=s(M)?M+"":M}if("string"!=typeof A)return 0===A?A:+A;A=A.replace(t,"");var c=n.test(A);return c||p.test(A)?r(A.slice(2),c?2:8):o.test(A)?NaN:+A}A.exports=function(A,e,t){var o,n,p,r,b,M,c=0,z=!1,l=!1,d=!0;if("function"!=typeof A)throw new TypeError("Expected a function");function f(e){var t=o,p=n;return o=n=void 0,c=e,r=A.apply(p,t)}function q(A){return c=A,b=setTimeout(h,e),z?f(A):r}function W(A){var t=A-M;return void 0===M||t>=e||t<0||l&&A-c>=p}function h(){var A,t,o=O();if(W(o))return g(o);b=setTimeout(h,(t=e-((A=o)-M),l?a(t,p-(A-c)):t))}function g(A){return b=void 0,d&&o?f(A):(o=n=void 0,r)}function m(){var A=O(),t=W(A);if(o=arguments,n=this,M=A,t){if(void 0===b)return q(M);if(l)return b=setTimeout(h,e),f(M)}return void 0===b&&(b=setTimeout(h,e)),r}return e=u(e)||0,s(t)&&(z=!!t.leading,p=(l="maxWait"in t)?i(u(t.maxWait)||0,e):p,d="trailing"in t?!!t.trailing:d),m.cancel=function(){void 0!==b&&clearTimeout(b),c=0,o=M=n=b=void 0},m.flush=function(){return void 0===b?r:g(O())},m}}).call(this,t(3))},function(A,e,t){(function(A,t){var o="[object Arguments]",n="[object Map]",p="[object Object]",r="[object Set]",b=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,M=/^\w*$/,c=/^\./,z=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=/^\[object .+?Constructor\]$/,O=/^(?:0|[1-9]\d*)$/,s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s[o]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s[n]=s["[object Number]"]=s[p]=s["[object RegExp]"]=s[r]=s["[object String]"]=s["[object WeakMap]"]=!1;var u="object"==typeof A&&A&&A.Object===Object&&A,l="object"==typeof self&&self&&self.Object===Object&&self,d=u||l||Function("return this")(),f=e&&!e.nodeType&&e,q=f&&"object"==typeof t&&t&&!t.nodeType&&t,W=q&&q.exports===f&&u.process,h=function(){try{return W&&W.binding("util")}catch(PA){}}(),g=h&&h.isTypedArray;function m(A,e,t,o){var n=-1,p=A?A.length:0;for(o&&p&&(t=A[++n]);++n<p;)t=e(t,A[n],n,A);return t}function R(A,e){for(var t=-1,o=A?A.length:0;++t<o;)if(e(A[t],t,A))return!0;return!1}function B(A,e,t,o,n){return n(A,(function(A,n,p){t=o?(o=!1,A):e(t,A,n,p)})),t}function v(A){var e=!1;if(null!=A&&"function"!=typeof A.toString)try{e=!!(A+"")}catch(t){}return e}function y(A){var e=-1,t=Array(A.size);return A.forEach((function(A,o){t[++e]=[o,A]})),t}function L(A){var e=-1,t=Array(A.size);return A.forEach((function(A){t[++e]=A})),t}var C,X,w,E=Array.prototype,N=Function.prototype,T=Object.prototype,S=d["__core-js_shared__"],x=(C=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"",D=N.toString,k=T.hasOwnProperty,I=T.toString,F=RegExp("^"+D.call(k).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),P=d.Symbol,Q=d.Uint8Array,V=T.propertyIsEnumerable,j=E.splice,U=(X=Object.keys,w=Object,function(A){return X(w(A))}),Y=gA(d,"DataView"),G=gA(d,"Map"),K=gA(d,"Promise"),H=gA(d,"Set"),_=gA(d,"WeakMap"),J=gA(Object,"create"),Z=XA(Y),$=XA(G),AA=XA(K),eA=XA(H),tA=XA(_),oA=P?P.prototype:void 0,nA=oA?oA.valueOf:void 0,pA=oA?oA.toString:void 0;function rA(A){var e=-1,t=A?A.length:0;for(this.clear();++e<t;){var o=A[e];this.set(o[0],o[1])}}function bA(A){var e=-1,t=A?A.length:0;for(this.clear();++e<t;){var o=A[e];this.set(o[0],o[1])}}function MA(A){var e=-1,t=A?A.length:0;for(this.clear();++e<t;){var o=A[e];this.set(o[0],o[1])}}function cA(A){var e=-1,t=A?A.length:0;for(this.__data__=new MA;++e<t;)this.add(A[e])}function zA(A){this.__data__=new bA(A)}function iA(A,e){for(var t=A.length;t--;)if(EA(A[t][0],e))return t;return-1}rA.prototype.clear=function(){this.__data__=J?J(null):{}},rA.prototype.delete=function(A){return this.has(A)&&delete this.__data__[A]},rA.prototype.get=function(A){var e=this.__data__;if(J){var t=e[A];return"__lodash_hash_undefined__"===t?void 0:t}return k.call(e,A)?e[A]:void 0},rA.prototype.has=function(A){var e=this.__data__;return J?void 0!==e[A]:k.call(e,A)},rA.prototype.set=function(A,e){return this.__data__[A]=J&&void 0===e?"__lodash_hash_undefined__":e,this},bA.prototype.clear=function(){this.__data__=[]},bA.prototype.delete=function(A){var e=this.__data__,t=iA(e,A);return!(t<0||(t==e.length-1?e.pop():j.call(e,t,1),0))},bA.prototype.get=function(A){var e=this.__data__,t=iA(e,A);return t<0?void 0:e[t][1]},bA.prototype.has=function(A){return iA(this.__data__,A)>-1},bA.prototype.set=function(A,e){var t=this.__data__,o=iA(t,A);return o<0?t.push([A,e]):t[o][1]=e,this},MA.prototype.clear=function(){this.__data__={hash:new rA,map:new(G||bA),string:new rA}},MA.prototype.delete=function(A){return hA(this,A).delete(A)},MA.prototype.get=function(A){return hA(this,A).get(A)},MA.prototype.has=function(A){return hA(this,A).has(A)},MA.prototype.set=function(A,e){return hA(this,A).set(A,e),this},cA.prototype.add=cA.prototype.push=function(A){return this.__data__.set(A,"__lodash_hash_undefined__"),this},cA.prototype.has=function(A){return this.__data__.has(A)},zA.prototype.clear=function(){this.__data__=new bA},zA.prototype.delete=function(A){return this.__data__.delete(A)},zA.prototype.get=function(A){return this.__data__.get(A)},zA.prototype.has=function(A){return this.__data__.has(A)},zA.prototype.set=function(A,e){var t=this.__data__;if(t instanceof bA){var o=t.__data__;if(!G||o.length<199)return o.push([A,e]),this;t=this.__data__=new MA(o)}return t.set(A,e),this};var aA,OA=(aA=function(A,e){return A&&sA(A,e,VA)},function(A,e){if(null==A)return A;if(!SA(A))return aA(A,e);for(var t=A.length,o=-1,n=Object(A);++o<t&&!1!==e(n[o],o,n););return A}),sA=function(A,e,t){for(var o=-1,n=Object(A),p=t(A),r=p.length;r--;){var b=p[++o];if(!1===e(n[b],b,n))break}return A};function uA(A,e){for(var t=0,o=(e=BA(e,A)?[e]:qA(e)).length;null!=A&&t<o;)A=A[CA(e[t++])];return t&&t==o?A:void 0}function lA(A,e){return null!=A&&e in Object(A)}function dA(A,e,t,b,M){return A===e||(null==A||null==e||!kA(A)&&!IA(e)?A!=A&&e!=e:function(A,e,t,b,M,c){var z=TA(A),i=TA(e),a="[object Array]",O="[object Array]";z||(a=(a=mA(A))==o?p:a),i||(O=(O=mA(e))==o?p:O);var s=a==p&&!v(A),u=O==p&&!v(e),l=a==O;if(l&&!s)return c||(c=new zA),z||QA(A)?WA(A,e,t,b,M,c):function(A,e,t,o,p,b,M){switch(t){case"[object DataView]":if(A.byteLength!=e.byteLength||A.byteOffset!=e.byteOffset)return!1;A=A.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(A.byteLength!=e.byteLength||!o(new Q(A),new Q(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return EA(+A,+e);case"[object Error]":return A.name==e.name&&A.message==e.message;case"[object RegExp]":case"[object String]":return A==e+"";case n:var c=y;case r:var z=2&b;if(c||(c=L),A.size!=e.size&&!z)return!1;var i=M.get(A);if(i)return i==e;b|=1,M.set(A,e);var a=WA(c(A),c(e),o,p,b,M);return M.delete(A),a;case"[object Symbol]":if(nA)return nA.call(A)==nA.call(e)}return!1}(A,e,a,t,b,M,c);if(!(2&M)){var d=s&&k.call(A,"__wrapped__"),f=u&&k.call(e,"__wrapped__");if(d||f){var q=d?A.value():A,W=f?e.value():e;return c||(c=new zA),t(q,W,b,M,c)}}return!!l&&(c||(c=new zA),function(A,e,t,o,n,p){var r=2&n,b=VA(A),M=b.length;if(M!=VA(e).length&&!r)return!1;for(var c=M;c--;){var z=b[c];if(!(r?z in e:k.call(e,z)))return!1}var i=p.get(A);if(i&&p.get(e))return i==e;var a=!0;p.set(A,e),p.set(e,A);for(var O=r;++c<M;){var s=A[z=b[c]],u=e[z];if(o)var l=r?o(u,s,z,e,A,p):o(s,u,z,A,e,p);if(!(void 0===l?s===u||t(s,u,o,n,p):l)){a=!1;break}O||(O="constructor"==z)}if(a&&!O){var d=A.constructor,f=e.constructor;d==f||!("constructor"in A)||!("constructor"in e)||"function"==typeof d&&d instanceof d&&"function"==typeof f&&f instanceof f||(a=!1)}return p.delete(A),p.delete(e),a}(A,e,t,b,M,c))}(A,e,dA,t,b,M))}function fA(A){return"function"==typeof A?A:null==A?jA:"object"==typeof A?TA(A)?(e=A[0],t=A[1],BA(e)&&vA(t)?yA(CA(e),t):function(A){var o,n,p,r=(n=e,void 0===(p=null==(o=A)?void 0:uA(o,n))?void 0:p);return void 0===r&&r===t?function(A,e){return null!=A&&function(A,e,t){for(var o,n=-1,p=(e=BA(e,A)?[e]:qA(e)).length;++n<p;){var r=CA(e[n]);if(!(o=null!=A&&t(A,r)))break;A=A[r]}return o||!!(p=A?A.length:0)&&DA(p)&&RA(r,p)&&(TA(A)||NA(A))}(A,e,lA)}(A,e):dA(t,r,void 0,3)}):function(A){var e=function(A){for(var e=VA(A),t=e.length;t--;){var o=e[t],n=A[o];e[t]=[o,n,vA(n)]}return e}(A);return 1==e.length&&e[0][2]?yA(e[0][0],e[0][1]):function(t){return t===A||function(A,e,t,o){var n=t.length,p=n;if(null==A)return!p;for(A=Object(A);n--;){var r=t[n];if(r[2]?r[1]!==A[r[0]]:!(r[0]in A))return!1}for(;++n<p;){var b=(r=t[n])[0],M=A[b],c=r[1];if(r[2]){if(void 0===M&&!(b in A))return!1}else{var z,i=new zA;if(!(void 0===z?dA(c,M,o,3,i):z))return!1}}return!0}(t,0,e)}}(A):BA(o=A)?(n=CA(o),function(A){return null==A?void 0:A[n]}):function(A){return function(e){return uA(e,A)}}(o);var e,t,o,n}function qA(A){return TA(A)?A:LA(A)}function WA(A,e,t,o,n,p){var r=2&n,b=A.length,M=e.length;if(b!=M&&!(r&&M>b))return!1;var c=p.get(A);if(c&&p.get(e))return c==e;var z=-1,i=!0,a=1&n?new cA:void 0;for(p.set(A,e),p.set(e,A);++z<b;){var O=A[z],s=e[z];if(o)var u=r?o(s,O,z,e,A,p):o(O,s,z,A,e,p);if(void 0!==u){if(u)continue;i=!1;break}if(a){if(!R(e,(function(A,e){if(!a.has(e)&&(O===A||t(O,A,o,n,p)))return a.add(e)}))){i=!1;break}}else if(O!==s&&!t(O,s,o,n,p)){i=!1;break}}return p.delete(A),p.delete(e),i}function hA(A,e){var t,o,n=A.__data__;return("string"==(o=typeof(t=e))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==t:null===t)?n["string"==typeof e?"string":"hash"]:n.map}function gA(A,e){var t,o,n=(o=e,null==(t=A)?void 0:t[o]);return function(A){return!(!kA(A)||(e=A,x&&x in e))&&(xA(A)||v(A)?F:a).test(XA(A));var e}(n)?n:void 0}var mA=function(A){return I.call(A)};function RA(A,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof A||O.test(A))&&A>-1&&A%1==0&&A<e}function BA(A,e){if(TA(A))return!1;var t=typeof A;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=A&&!FA(A))||M.test(A)||!b.test(A)||null!=e&&A in Object(e)}function vA(A){return A==A&&!kA(A)}function yA(A,e){return function(t){return null!=t&&t[A]===e&&(void 0!==e||A in Object(t))}}(Y&&"[object DataView]"!=mA(new Y(new ArrayBuffer(1)))||G&&mA(new G)!=n||K&&"[object Promise]"!=mA(K.resolve())||H&&mA(new H)!=r||_&&"[object WeakMap]"!=mA(new _))&&(mA=function(A){var e=I.call(A),t=e==p?A.constructor:void 0,o=t?XA(t):void 0;if(o)switch(o){case Z:return"[object DataView]";case $:return n;case AA:return"[object Promise]";case eA:return r;case tA:return"[object WeakMap]"}return e});var LA=wA((function(A){var e;A=null==(e=A)?"":function(A){if("string"==typeof A)return A;if(FA(A))return pA?pA.call(A):"";var e=A+"";return"0"==e&&1/A==-1/0?"-0":e}(e);var t=[];return c.test(A)&&t.push(""),A.replace(z,(function(A,e,o,n){t.push(o?n.replace(i,"$1"):e||A)})),t}));function CA(A){if("string"==typeof A||FA(A))return A;var e=A+"";return"0"==e&&1/A==-1/0?"-0":e}function XA(A){if(null!=A){try{return D.call(A)}catch(e){}try{return A+""}catch(e){}}return""}function wA(A,e){if("function"!=typeof A||e&&"function"!=typeof e)throw new TypeError("Expected a function");var t=function(){var o=arguments,n=e?e.apply(this,o):o[0],p=t.cache;if(p.has(n))return p.get(n);var r=A.apply(this,o);return t.cache=p.set(n,r),r};return t.cache=new(wA.Cache||MA),t}function EA(A,e){return A===e||A!=A&&e!=e}function NA(A){return IA(e=A)&&SA(e)&&k.call(A,"callee")&&(!V.call(A,"callee")||I.call(A)==o);var e}wA.Cache=MA;var TA=Array.isArray;function SA(A){return null!=A&&DA(A.length)&&!xA(A)}function xA(A){var e=kA(A)?I.call(A):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}function DA(A){return"number"==typeof A&&A>-1&&A%1==0&&A<=9007199254740991}function kA(A){var e=typeof A;return!!A&&("object"==e||"function"==e)}function IA(A){return!!A&&"object"==typeof A}function FA(A){return"symbol"==typeof A||IA(A)&&"[object Symbol]"==I.call(A)}var PA,QA=g?(PA=g,function(A){return PA(A)}):function(A){return IA(A)&&DA(A.length)&&!!s[I.call(A)]};function VA(A){return SA(A)?function(A,e){var t=TA(A)||NA(A)?function(A,e){for(var t=-1,o=Array(A);++t<A;)o[t]=e(t);return o}(A.length,String):[],o=t.length,n=!!o;for(var p in A)!e&&!k.call(A,p)||n&&("length"==p||RA(p,o))||t.push(p);return t}(A):function(A){if(t=(e=A)&&e.constructor,e!==("function"==typeof t&&t.prototype||T))return U(A);var e,t,o=[];for(var n in Object(A))k.call(A,n)&&"constructor"!=n&&o.push(n);return o}(A)}function jA(A){return A}t.exports=function(A,e,t){var o=TA(A)?m:B,n=arguments.length<3;return o(A,fA(e),t,n,OA)}}).call(this,t(3),t(7)(A))},function(A,e){A.exports=function(A){return A.webpackPolyfill||(A.deprecate=function(){},A.paths=[],A.children||(A.children=[]),Object.defineProperty(A,"loaded",{enumerable:!0,get:function(){return A.l}}),Object.defineProperty(A,"id",{enumerable:!0,get:function(){return A.i}}),A.webpackPolyfill=1),A}},function(A,e){String.prototype.padEnd||(String.prototype.padEnd=function(A,e){return A>>=0,e=String(void 0!==e?e:" "),this.length>A?String(this):((A-=this.length)>e.length&&(e+=e.repeat(A/e.length)),String(this)+e.slice(0,A))})},function(A,e,t){function o(A,e,t){return e in A?Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):A[e]=t,A}function n(A){if(Symbol.iterator in Object(A)||"[object Arguments]"===Object.prototype.toString.call(A))return Array.from(A)}function p(A){return function(A){if(Array.isArray(A)){for(var e=0,t=new Array(A.length);e<A.length;e++)t[e]=A[e];return t}}(A)||n(A)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function r(A){if(Array.isArray(A))return A}function b(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function M(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}function c(A){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(A)}function z(A){return(z="function"==typeof Symbol&&"symbol"===c(Symbol.iterator)?function(A){return c(A)}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":c(A)})(A)}function i(A){if(void 0===A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function a(A){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)})(A)}function O(A,e){return(O=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A})(A,e)}t.r(e);var s=t(0),u=t.n(s),l=t(5),d=t.n(l),f=t(4),q=t.n(f),W=t(6),h=t.n(W),g=t(2),m=t.n(g),R=t(1),B=t.n(R);function v(A,e){return r(A)||function(A,e){var t=[],o=!0,n=!1,p=void 0;try{for(var r,b=A[Symbol.iterator]();!(o=(r=b.next()).done)&&(t.push(r.value),!e||t.length!==e);o=!0);}catch(M){n=!0,p=M}finally{try{o||null==b.return||b.return()}finally{if(n)throw p}}return t}(A,e)||b()}t(8);var y=[["Afghanistan",["asia"],"af","93"],["Albania",["europe"],"al","355"],["Algeria",["africa","north-africa"],"dz","213"],["Andorra",["europe"],"ad","376"],["Angola",["africa"],"ao","244"],["Antigua and Barbuda",["america","carribean"],"ag","1268"],["Argentina",["america","south-america"],"ar","54","(..) ........",0,["11","221","223","261","264","2652","280","2905","291","2920","2966","299","341","342","343","351","376","379","381","3833","385","387","388"]],["Armenia",["asia","ex-ussr"],"am","374",".. ......"],["Aruba",["america","carribean"],"aw","297"],["Australia",["oceania"],"au","61","(..) .... ....",0,["2","3","4","7","8","02","03","04","07","08"]],["Austria",["europe","eu-union"],"at","43"],["Azerbaijan",["asia","ex-ussr"],"az","994","(..) ... .. .."],["Bahamas",["america","carribean"],"bs","1242"],["Bahrain",["middle-east"],"bh","973"],["Bangladesh",["asia"],"bd","880"],["Barbados",["america","carribean"],"bb","1246"],["Belarus",["europe","ex-ussr"],"by","375","(..) ... .. .."],["Belgium",["europe","eu-union"],"be","32","... .. .. .."],["Belize",["america","central-america"],"bz","501"],["Benin",["africa"],"bj","229"],["Bhutan",["asia"],"bt","975"],["Bolivia",["america","south-america"],"bo","591"],["Bosnia and Herzegovina",["europe","ex-yugos"],"ba","387"],["Botswana",["africa"],"bw","267"],["Brazil",["america","south-america"],"br","55","(..) ........."],["British Indian Ocean Territory",["asia"],"io","246"],["Brunei",["asia"],"bn","673"],["Bulgaria",["europe","eu-union"],"bg","359"],["Burkina Faso",["africa"],"bf","226"],["Burundi",["africa"],"bi","257"],["Cambodia",["asia"],"kh","855"],["Cameroon",["africa"],"cm","237"],["Canada",["america","north-america"],"ca","1","(...) ...-....",1,["204","226","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",["africa"],"cv","238"],["Caribbean Netherlands",["america","carribean"],"bq","599","",1],["Central African Republic",["africa"],"cf","236"],["Chad",["africa"],"td","235"],["Chile",["america","south-america"],"cl","56"],["China",["asia"],"cn","86","..-........."],["Colombia",["america","south-america"],"co","57","... ... ...."],["Comoros",["africa"],"km","269"],["Congo",["africa"],"cd","243"],["Congo",["africa"],"cg","242"],["Costa Rica",["america","central-america"],"cr","506","....-...."],["Côte d’Ivoire",["africa"],"ci","225",".. .. .. .."],["Croatia",["europe","eu-union","ex-yugos"],"hr","385"],["Cuba",["america","carribean"],"cu","53"],["Curaçao",["america","carribean"],"cw","599","",0],["Cyprus",["europe","eu-union"],"cy","357",".. ......"],["Czech Republic",["europe","eu-union"],"cz","420","... ... ..."],["Denmark",["europe","eu-union","baltic"],"dk","45",".. .. .. .."],["Djibouti",["africa"],"dj","253"],["Dominica",["america","carribean"],"dm","1767"],["Dominican Republic",["america","carribean"],"do","1","",2,["809","829","849"]],["Ecuador",["america","south-america"],"ec","593"],["Egypt",["africa","north-africa"],"eg","20"],["El Salvador",["america","central-america"],"sv","503","....-...."],["Equatorial Guinea",["africa"],"gq","240"],["Eritrea",["africa"],"er","291"],["Estonia",["europe","eu-union","ex-ussr","baltic"],"ee","372",".... ......"],["Ethiopia",["africa"],"et","251"],["Fiji",["oceania"],"fj","679"],["Finland",["europe","eu-union","baltic"],"fi","358",".. ... .. .."],["France",["europe","eu-union"],"fr","33",". .. .. .. .."],["French Guiana",["america","south-america"],"gf","594"],["French Polynesia",["oceania"],"pf","689"],["Gabon",["africa"],"ga","241"],["Gambia",["africa"],"gm","220"],["Georgia",["asia","ex-ussr"],"ge","995"],["Germany",["europe","eu-union","baltic"],"de","49",".... ........"],["Ghana",["africa"],"gh","233"],["Greece",["europe","eu-union"],"gr","30"],["Grenada",["america","carribean"],"gd","1473"],["Guadeloupe",["america","carribean"],"gp","590","",0],["Guam",["oceania"],"gu","1671"],["Guatemala",["america","central-america"],"gt","502","....-...."],["Guinea",["africa"],"gn","224"],["Guinea-Bissau",["africa"],"gw","245"],["Guyana",["america","south-america"],"gy","592"],["Haiti",["america","carribean"],"ht","509","....-...."],["Honduras",["america","central-america"],"hn","504"],["Hong Kong",["asia"],"hk","852",".... ...."],["Hungary",["europe","eu-union"],"hu","36"],["Iceland",["europe"],"is","354","... ...."],["India",["asia"],"in","91",".....-....."],["Indonesia",["asia"],"id","62"],["Iran",["middle-east"],"ir","98","... ... ...."],["Iraq",["middle-east"],"iq","964"],["Ireland",["europe","eu-union"],"ie","353",".. ......."],["Israel",["middle-east"],"il","972","... ... ...."],["Italy",["europe","eu-union"],"it","39","... .......",0],["Jamaica",["america","carribean"],"jm","1876"],["Japan",["asia"],"jp","81",".. .... ...."],["Jordan",["middle-east"],"jo","962"],["Kazakhstan",["asia","ex-ussr"],"kz","7","... ...-..-..",1,["310","311","312","313","315","318","321","324","325","326","327","336","7172","73622"]],["Kenya",["africa"],"ke","254"],["Kiribati",["oceania"],"ki","686"],["Kosovo",["europe","ex-yugos"],"xk","383"],["Kuwait",["middle-east"],"kw","965"],["Kyrgyzstan",["asia","ex-ussr"],"kg","996","... ... ..."],["Laos",["asia"],"la","856"],["Latvia",["europe","eu-union","ex-ussr","baltic"],"lv","371",".. ... ..."],["Lebanon",["middle-east"],"lb","961"],["Lesotho",["africa"],"ls","266"],["Liberia",["africa"],"lr","231"],["Libya",["africa","north-africa"],"ly","218"],["Liechtenstein",["europe"],"li","423"],["Lithuania",["europe","eu-union","ex-ussr","baltic"],"lt","370"],["Luxembourg",["europe","eu-union"],"lu","352"],["Macau",["asia"],"mo","853"],["Macedonia",["europe","ex-yugos"],"mk","389"],["Madagascar",["africa"],"mg","261"],["Malawi",["africa"],"mw","265"],["Malaysia",["asia"],"my","60","..-....-...."],["Maldives",["asia"],"mv","960"],["Mali",["africa"],"ml","223"],["Malta",["europe","eu-union"],"mt","356"],["Marshall Islands",["oceania"],"mh","692"],["Martinique",["america","carribean"],"mq","596"],["Mauritania",["africa"],"mr","222"],["Mauritius",["africa"],"mu","230"],["Mexico",["america","central-america"],"mx","52","... ... ....",0,["55","81","33","656","664","998","774","229"]],["Micronesia",["oceania"],"fm","691"],["Moldova",["europe"],"md","373","(..) ..-..-.."],["Monaco",["europe"],"mc","377"],["Mongolia",["asia"],"mn","976"],["Montenegro",["europe","ex-yugos"],"me","382"],["Morocco",["africa","north-africa"],"ma","212"],["Mozambique",["africa"],"mz","258"],["Myanmar",["asia"],"mm","95"],["Namibia",["africa"],"na","264"],["Nauru",["africa"],"nr","674"],["Nepal",["asia"],"np","977"],["Netherlands",["europe","eu-union"],"nl","31",".. ........"],["New Caledonia",["oceania"],"nc","687"],["New Zealand",["oceania"],"nz","64","...-...-...."],["Nicaragua",["america","central-america"],"ni","505"],["Niger",["africa"],"ne","227"],["Nigeria",["africa"],"ng","234"],["North Korea",["asia"],"kp","850"],["Norway",["europe","baltic"],"no","47","... .. ..."],["Oman",["middle-east"],"om","968"],["Pakistan",["asia"],"pk","92","...-......."],["Palau",["oceania"],"pw","680"],["Palestine",["middle-east"],"ps","970"],["Panama",["america","central-america"],"pa","507"],["Papua New Guinea",["oceania"],"pg","675"],["Paraguay",["america","south-america"],"py","595"],["Peru",["america","south-america"],"pe","51"],["Philippines",["asia"],"ph","63",".... ......."],["Poland",["europe","eu-union","baltic"],"pl","48","...-...-..."],["Portugal",["europe","eu-union"],"pt","351"],["Puerto Rico",["america","carribean"],"pr","1","",3,["787","939"]],["Qatar",["middle-east"],"qa","974"],["Réunion",["africa"],"re","262"],["Romania",["europe","eu-union"],"ro","40"],["Russia",["europe","asia","ex-ussr","baltic"],"ru","7","(...) ...-..-..",0],["Rwanda",["africa"],"rw","250"],["Saint Kitts and Nevis",["america","carribean"],"kn","1869"],["Saint Lucia",["america","carribean"],"lc","1758"],["Saint Vincent and the Grenadines",["america","carribean"],"vc","1784"],["Samoa",["oceania"],"ws","685"],["San Marino",["europe"],"sm","378"],["São Tomé and Príncipe",["africa"],"st","239"],["Saudi Arabia",["middle-east"],"sa","966"],["Senegal",["africa"],"sn","221"],["Serbia",["europe","ex-yugos"],"rs","381"],["Seychelles",["africa"],"sc","248"],["Sierra Leone",["africa"],"sl","232"],["Singapore",["asia"],"sg","65","....-...."],["Slovakia",["europe","eu-union"],"sk","421"],["Slovenia",["europe","eu-union","ex-yugos"],"si","386"],["Solomon Islands",["oceania"],"sb","677"],["Somalia",["africa"],"so","252"],["South Africa",["africa"],"za","27"],["South Korea",["asia"],"kr","82","... .... ...."],["South Sudan",["africa","north-africa"],"ss","211"],["Spain",["europe","eu-union"],"es","34","... ... ..."],["Sri Lanka",["asia"],"lk","94"],["Sudan",["africa"],"sd","249"],["Suriname",["america","south-america"],"sr","597"],["Swaziland",["africa"],"sz","268"],["Sweden",["europe","eu-union","baltic"],"se","46","(...) ...-..."],["Switzerland",["europe"],"ch","41",".. ... .. .."],["Syria",["middle-east"],"sy","963"],["Taiwan",["asia"],"tw","886"],["Tajikistan",["asia","ex-ussr"],"tj","992"],["Tanzania",["africa"],"tz","255"],["Thailand",["asia"],"th","66"],["Timor-Leste",["asia"],"tl","670"],["Togo",["africa"],"tg","228"],["Tonga",["oceania"],"to","676"],["Trinidad and Tobago",["america","carribean"],"tt","1868"],["Tunisia",["africa","north-africa"],"tn","216"],["Turkey",["europe"],"tr","90","... ... .. .."],["Turkmenistan",["asia","ex-ussr"],"tm","993"],["Tuvalu",["asia"],"tv","688"],["Uganda",["africa"],"ug","256"],["Ukraine",["europe","ex-ussr"],"ua","380","(..) ... .. .."],["United Arab Emirates",["middle-east"],"ae","971"],["United Kingdom",["europe","eu-union"],"gb","44",".... ......"],["United States",["america","north-america"],"us","1","(...) ...-....",0,["907","205","251","256","334","479","501","870","480","520","602","623","928","209","213","310","323","408","415","510","530","559","562","619","626","650","661","707","714","760","805","818","831","858","909","916","925","949","951","303","719","970","203","860","202","302","239","305","321","352","386","407","561","727","772","813","850","863","904","941","954","229","404","478","706","770","912","808","319","515","563","641","712","208","217","309","312","618","630","708","773","815","847","219","260","317","574","765","812","316","620","785","913","270","502","606","859","225","318","337","504","985","413","508","617","781","978","301","410","207","231","248","269","313","517","586","616","734","810","906","989","218","320","507","612","651","763","952","314","417","573","636","660","816","228","601","662","406","252","336","704","828","910","919","701","308","402","603","201","609","732","856","908","973","505","575","702","775","212","315","516","518","585","607","631","716","718","845","914","216","330","419","440","513","614","740","937","405","580","918","503","541","215","412","570","610","717","724","814","401","803","843","864","605","423","615","731","865","901","931","210","214","254","281","325","361","409","432","512","713","806","817","830","903","915","936","940","956","972","979","435","801","276","434","540","703","757","804","802","206","253","360","425","509","262","414","608","715","920","304","307"]],["Uruguay",["america","south-america"],"uy","598"],["Uzbekistan",["asia","ex-ussr"],"uz","998",".. ... .. .."],["Vanuatu",["oceania"],"vu","678"],["Vatican City",["europe"],"va","39",".. .... ....",1],["Venezuela",["america","south-america"],"ve","58"],["Vietnam",["asia"],"vn","84"],["Yemen",["middle-east"],"ye","967"],["Zambia",["africa"],"zm","260"],["Zimbabwe",["africa"],"zw","263"]],L=[["American Samoa",["oceania"],"as","1684"],["Anguilla",["america","carribean"],"ai","1264"],["Bermuda",["america","north-america"],"bm","1441"],["British Virgin Islands",["america","carribean"],"vg","1284"],["Cayman Islands",["america","carribean"],"ky","1345"],["Cook Islands",["oceania"],"ck","682"],["Falkland Islands",["america","south-america"],"fk","500"],["Faroe Islands",["europe"],"fo","298"],["Gibraltar",["europe"],"gi","350"],["Greenland",["america"],"gl","299"],["Jersey",["europe","eu-union"],"je","44",".... ......"],["Montserrat",["america","carribean"],"ms","1664"],["Niue",["asia"],"nu","683"],["Norfolk Island",["oceania"],"nf","672"],["Northern Mariana Islands",["oceania"],"mp","1670"],["Saint Barthélemy",["america","carribean"],"bl","590","",1],["Saint Helena",["africa"],"sh","290"],["Saint Martin",["america","carribean"],"mf","590","",2],["Saint Pierre and Miquelon",["america","north-america"],"pm","508"],["Sint Maarten",["america","carribean"],"sx","1721"],["Tokelau",["oceania"],"tk","690"],["Turks and Caicos Islands",["america","carribean"],"tc","1649"],["U.S. Virgin Islands",["america","carribean"],"vi","1340"],["Wallis and Futuna",["oceania"],"wf","681"]];function C(A,e,t,o,n){return!t||n?A+"".padEnd(e.length,".")+" "+o:A+"".padEnd(e.length,".")+" "+t}function X(A,e,t,n,r){var b,M,c=[];return M=!0===e,[(b=[]).concat.apply(b,p(A.map((function(A){var p={name:A[0],regions:A[1],iso2:A[2],countryCode:A[3],dialCode:A[3],format:C(t,A[3],A[4],n,r),priority:A[5]||0},b=[];return A[6]&&A[6].map((function(e){var t=function(A){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter((function(A){return Object.getOwnPropertyDescriptor(t,A).enumerable})))),n.forEach((function(e){o(A,e,t[e])}))}return A}({},p);t.dialCode=A[3]+e,t.isAreaCode=!0,t.areaCodeLength=e.length,b.push(t)})),b.length>0?(p.mainCode=!0,M||"Array"===e.constructor.name&&e.includes(A[2])?(p.hasAreaCodes=!0,[p].concat(b)):(c=c.concat(b),[p])):[p]})))),c]}function w(A,e,t,o){if(null!==t){var n=Object.keys(t),p=Object.values(t);n.forEach((function(t,n){if(o)return A.push([t,p[n]]);var r=A.findIndex((function(A){return A[0]===t}));if(-1===r){var b=[t];b[e]=p[n],A.push(b)}else A[r][e]=p[n]}))}}function E(A,e){return 0===e.length?A:A.map((function(A){var t=e.findIndex((function(e){return e[0]===A[2]}));if(-1===t)return A;var o=e[t];return o[1]&&(A[4]=o[1]),o[3]&&(A[5]=o[3]),o[2]&&(A[6]=o[2]),A}))}var N=function A(e,t,o,n,r,b,c,z,i,a,O,s,u,l){M(this,A),this.filterRegions=function(A,e){if("string"==typeof A){var t=A;return e.filter((function(A){return A.regions.some((function(A){return A===t}))}))}return e.filter((function(e){return A.map((function(A){return e.regions.some((function(e){return e===A}))})).some((function(A){return A}))}))},this.sortTerritories=function(A,e){var t=[].concat(p(A),p(e));return t.sort((function(A,e){return A.name<e.name?-1:A.name>e.name?1:0})),t},this.getFilteredCountryList=function(A,e,t){return 0===A.length?e:t?A.map((function(A){var t=e.find((function(e){return e.iso2===A}));if(t)return t})).filter((function(A){return A})):e.filter((function(e){return A.some((function(A){return A===e.iso2}))}))},this.localizeCountries=function(A,e,t){for(var o=0;o<A.length;o++)void 0!==e[A[o].iso2]?A[o].localName=e[A[o].iso2]:void 0!==e[A[o].name]&&(A[o].localName=e[A[o].name]);return t||A.sort((function(A,e){return A.localName<e.localName?-1:A.localName>e.localName?1:0})),A},this.getCustomAreas=function(A,e){for(var t=[],o=0;o<e.length;o++){var n=JSON.parse(JSON.stringify(A));n.dialCode+=e[o],t.push(n)}return t},this.excludeCountries=function(A,e){return 0===e.length?A:A.filter((function(A){return!e.includes(A.iso2)}))};var d,f,q,W=(d=i,f=a,w(q=[],1,z,!0),w(q,3,d),w(q,2,f),q),h=E(JSON.parse(JSON.stringify(y)),W),g=E(JSON.parse(JSON.stringify(L)),W),m=v(X(h,e,s,u,l),2),R=m[0],B=m[1];if(t){var C=v(X(g,e,s,u,l),2),N=C[0];C[1],R=this.sortTerritories(N,R)}o&&(R=this.filterRegions(o,R)),this.onlyCountries=this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(n,R,c.includes("onlyCountries")),b),O,c.includes("onlyCountries")),this.preferredCountries=0===r.length?[]:this.localizeCountries(this.getFilteredCountryList(r,R,c.includes("preferredCountries")),O,c.includes("preferredCountries")),this.hiddenAreaCodes=this.excludeCountries(this.getFilteredCountryList(n,B),b)},T=function(A){function e(A){var t,c,O;M(this,e),(c=this,O=a(e).call(this,A),t=!O||"object"!==z(O)&&"function"!=typeof O?i(c):O).getProbableCandidate=q()((function(A){return A&&0!==A.length?t.state.onlyCountries.filter((function(e){return m()(e.name.toLowerCase(),A.toLowerCase())}),i(i(t)))[0]:null})),t.guessSelectedCountry=q()((function(A,e,o,n){var p;if(!1===t.props.enableAreaCodes&&(n.some((function(e){if(m()(A,e.dialCode))return o.some((function(A){if(e.iso2===A.iso2&&A.mainCode)return p=A,!0})),!0})),p))return p;var r=o.find((function(A){return A.iso2==e}));if(""===A.trim())return r;var b=o.reduce((function(e,t){if(m()(A,t.dialCode)){if(t.dialCode.length>e.dialCode.length)return t;if(t.dialCode.length===e.dialCode.length&&t.priority<e.priority)return t}return e}),{dialCode:"",priority:10001},i(i(t)));return b.name?b:r})),t.updateCountry=function(A){var e,o=t.state.onlyCountries;(e=A.indexOf(0)>="0"&&A.indexOf(0)<="9"?o.find((function(e){return e.dialCode==+A})):o.find((function(e){return e.iso2==A})))&&e.dialCode&&t.setState({selectedCountry:e,formattedNumber:t.props.disableCountryCode?"":t.formatNumber(e.dialCode,e)})},t.scrollTo=function(A,e){if(A){var o=t.dropdownRef;if(o&&document.body){var n=o.offsetHeight,p=o.getBoundingClientRect().top+document.body.scrollTop,r=p+n,b=A,M=b.getBoundingClientRect(),c=b.offsetHeight,z=M.top+document.body.scrollTop,i=z+c,a=z-p+o.scrollTop,O=n/2-c/2;if(t.props.enableSearch?z<p+32:z<p)e&&(a-=O),o.scrollTop=a;else if(i>r){e&&(a+=O);var s=n-c;o.scrollTop=a-s}}}},t.scrollToTop=function(){var A=t.dropdownRef;A&&document.body&&(A.scrollTop=0)},t.formatNumber=function(A,e){if(!e)return A;var o,p=e.format,M=t.props,c=M.disableCountryCode,z=M.enableAreaCodeStretch,i=M.enableLongNumbers,a=M.autoFormat;if(c?((o=p.split(" ")).shift(),o=o.join(" ")):z&&e.isAreaCode?((o=p.split(" "))[1]=o[1].replace(/\.+/,"".padEnd(e.areaCodeLength,".")),o=o.join(" ")):o=p,!A||0===A.length)return c?"":t.props.prefix;if(A&&A.length<2||!o||!a)return c?A:t.props.prefix+A;var O,s=h()(o,(function(A,e){if(0===A.remainingText.length)return A;if("."!==e)return{formattedText:A.formattedText+e,remainingText:A.remainingText};var t,o=r(t=A.remainingText)||n(t)||b(),p=o[0],M=o.slice(1);return{formattedText:A.formattedText+p,remainingText:M}}),{formattedText:"",remainingText:A.split("")});return(O=i?s.formattedText+s.remainingText.join(""):s.formattedText).includes("(")&&!O.includes(")")&&(O+=")"),O},t.cursorToEnd=function(){var A=t.numberInputRef;if(document.activeElement===A){A.focus();var e=A.value.length;")"===A.value.charAt(e-1)&&(e-=1),A.setSelectionRange(e,e)}},t.getElement=function(A){return t["flag_no_".concat(A)]},t.getCountryData=function(){return t.state.selectedCountry?{name:t.state.selectedCountry.name||"",dialCode:t.state.selectedCountry.dialCode||"",countryCode:t.state.selectedCountry.iso2||"",format:t.state.selectedCountry.format||""}:{}},t.handleFlagDropdownClick=function(A){if(A.preventDefault(),t.state.showDropdown||!t.props.disabled){var e=t.state,o=e.preferredCountries,n=e.onlyCountries,p=e.selectedCountry,r=t.concatPreferredCountries(o,n).findIndex((function(A){return A.dialCode===p.dialCode&&A.iso2===p.iso2}));t.setState({showDropdown:!t.state.showDropdown,highlightCountryIndex:r},(function(){t.state.showDropdown&&t.scrollTo(t.getElement(t.state.highlightCountryIndex))}))}},t.handleInput=function(A){var e=A.target.value,o=t.props,n=o.prefix,p=o.onChange,r=t.props.disableCountryCode?"":n,b=t.state.selectedCountry,M=t.state.freezeSelection;if(!t.props.countryCodeEditable){var c=n+(b.hasAreaCodes?t.state.onlyCountries.find((function(A){return A.iso2===b.iso2&&A.mainCode})).dialCode:b.dialCode);if(e.slice(0,c.length)!==c)return}if(e===n)return p&&p("",t.getCountryData(),A,""),t.setState({formattedNumber:""});if(e.replace(/\D/g,"").length>15){if(!1===t.props.enableLongNumbers)return;if("number"==typeof t.props.enableLongNumbers&&e.replace(/\D/g,"").length>t.props.enableLongNumbers)return}if(e!==t.state.formattedNumber){A.preventDefault?A.preventDefault():A.returnValue=!1;var z=t.props.country,i=t.state,a=i.onlyCountries,O=i.selectedCountry,s=i.hiddenAreaCodes;if(p&&A.persist(),e.length>0){var u=e.replace(/\D/g,"");(!t.state.freezeSelection||O&&O.dialCode.length>u.length)&&(b=t.props.disableCountryGuess?O:t.guessSelectedCountry(u.substring(0,6),z,a,s)||O,M=!1),r=t.formatNumber(u,b),b=b.dialCode?b:O}var l=A.target.selectionStart,d=A.target.selectionStart,f=t.state.formattedNumber,q=r.length-f.length;t.setState({formattedNumber:r,freezeSelection:M,selectedCountry:b},(function(){q>0&&(d-=q),")"==r.charAt(r.length-1)?t.numberInputRef.setSelectionRange(r.length-1,r.length-1):d>0&&f.length>=r.length?t.numberInputRef.setSelectionRange(d,d):l<f.length&&t.numberInputRef.setSelectionRange(l,l),p&&p(r.replace(/[^0-9]+/g,""),t.getCountryData(),A,r)}))}},t.handleInputClick=function(A){t.setState({showDropdown:!1}),t.props.onClick&&t.props.onClick(A,t.getCountryData())},t.handleDoubleClick=function(A){var e=A.target.value.length;A.target.setSelectionRange(0,e)},t.handleFlagItemClick=function(A,e){var o=t.state.selectedCountry,n=t.state.onlyCountries.find((function(e){return e==A}));if(n){var p=t.state.formattedNumber.replace(" ","").replace("(","").replace(")","").replace("-",""),r=p.length>1?p.replace(o.dialCode,n.dialCode):n.dialCode,b=t.formatNumber(r.replace(/\D/g,""),n);t.setState({showDropdown:!1,selectedCountry:n,freezeSelection:!0,formattedNumber:b,searchValue:""},(function(){t.cursorToEnd(),t.props.onChange&&t.props.onChange(b.replace(/[^0-9]+/g,""),t.getCountryData(),e,b)}))}},t.handleInputFocus=function(A){t.numberInputRef&&t.numberInputRef.value===t.props.prefix&&t.state.selectedCountry&&!t.props.disableCountryCode&&t.setState({formattedNumber:t.props.prefix+t.state.selectedCountry.dialCode},(function(){t.props.jumpCursorToEnd&&setTimeout(t.cursorToEnd,0)})),t.setState({placeholder:""}),t.props.onFocus&&t.props.onFocus(A,t.getCountryData()),t.props.jumpCursorToEnd&&setTimeout(t.cursorToEnd,0)},t.handleInputBlur=function(A){A.target.value||t.setState({placeholder:t.props.placeholder}),t.props.onBlur&&t.props.onBlur(A,t.getCountryData())},t.handleInputCopy=function(A){if(t.props.copyNumbersOnly){var e=window.getSelection().toString().replace(/[^0-9]+/g,"");A.clipboardData.setData("text/plain",e),A.preventDefault()}},t.getHighlightCountryIndex=function(A){var e=t.state.highlightCountryIndex+A;return e<0||e>=t.state.onlyCountries.length+t.state.preferredCountries.length?e-A:t.props.enableSearch&&e>t.getSearchFilteredCountries().length?0:e},t.searchCountry=function(){var A=t.getProbableCandidate(t.state.queryString)||t.state.onlyCountries[0],e=t.state.onlyCountries.findIndex((function(e){return e==A}))+t.state.preferredCountries.length;t.scrollTo(t.getElement(e),!0),t.setState({queryString:"",highlightCountryIndex:e})},t.handleKeydown=function(A){var e=t.props.keys,o=A.target.className;if(o.includes("selected-flag")&&A.which===e.ENTER&&!t.state.showDropdown)return t.handleFlagDropdownClick(A);if(o.includes("form-control")&&(A.which===e.ENTER||A.which===e.ESC))return A.target.blur();if(t.state.showDropdown&&!t.props.disabled&&(!o.includes("search-box")||A.which===e.UP||A.which===e.DOWN||A.which===e.ENTER||A.which===e.ESC&&""===A.target.value)){A.preventDefault?A.preventDefault():A.returnValue=!1;var n=function(A){t.setState({highlightCountryIndex:t.getHighlightCountryIndex(A)},(function(){t.scrollTo(t.getElement(t.state.highlightCountryIndex),!0)}))};switch(A.which){case e.DOWN:n(1);break;case e.UP:n(-1);break;case e.ENTER:t.props.enableSearch?t.handleFlagItemClick(t.getSearchFilteredCountries()[t.state.highlightCountryIndex]||t.getSearchFilteredCountries()[0],A):t.handleFlagItemClick([].concat(p(t.state.preferredCountries),p(t.state.onlyCountries))[t.state.highlightCountryIndex],A);break;case e.ESC:case e.TAB:t.setState({showDropdown:!1},t.cursorToEnd);break;default:(A.which>=e.A&&A.which<=e.Z||A.which===e.SPACE)&&t.setState({queryString:t.state.queryString+String.fromCharCode(A.which)},t.state.debouncedQueryStingSearcher)}}},t.handleInputKeyDown=function(A){var e=t.props,o=e.keys,n=e.onEnterKeyPress,p=e.onKeyDown;A.which===o.ENTER&&n&&n(A),p&&p(A)},t.handleClickOutside=function(A){t.dropdownRef&&!t.dropdownContainerRef.contains(A.target)&&t.state.showDropdown&&t.setState({showDropdown:!1})},t.handleSearchChange=function(A){var e=A.currentTarget.value,o=t.state,n=o.preferredCountries,p=o.selectedCountry,r=0;if(""===e&&p){var b=t.state.onlyCountries;r=t.concatPreferredCountries(n,b).findIndex((function(A){return A==p})),setTimeout((function(){return t.scrollTo(t.getElement(r))}),100)}t.setState({searchValue:e,highlightCountryIndex:r})},t.concatPreferredCountries=function(A,e){return A.length>0?p(new Set(A.concat(e))):e},t.getDropdownCountryName=function(A){return A.localName||A.name},t.getSearchFilteredCountries=function(){var A=t.state,e=A.preferredCountries,o=A.onlyCountries,n=A.searchValue,r=t.props.enableSearch,b=t.concatPreferredCountries(e,o),M=n.trim().toLowerCase().replace("+","");if(r&&M){if(/^\d+$/.test(M))return b.filter((function(A){var e=A.dialCode;return["".concat(e)].some((function(A){return A.toLowerCase().includes(M)}))}));var c=b.filter((function(A){var e=A.iso2;return["".concat(e)].some((function(A){return A.toLowerCase().includes(M)}))})),z=b.filter((function(A){var e=A.name,t=A.localName;return A.iso2,["".concat(e),"".concat(t||"")].some((function(A){return A.toLowerCase().includes(M)}))}));return t.scrollToTop(),p(new Set([].concat(c,z)))}return b},t.getCountryDropdownList=function(){var A=t.state,e=A.preferredCountries,n=A.highlightCountryIndex,p=A.showDropdown,r=A.searchValue,b=t.props,M=b.disableDropdown,c=b.prefix,z=t.props,i=z.enableSearch,a=z.searchNotFound,O=z.disableSearchIcon,s=z.searchClass,l=z.searchStyle,d=z.searchPlaceholder,f=z.autocompleteSearch,q=t.getSearchFilteredCountries().map((function(A,e){var o=n===e,p=B()({country:!0,preferred:"us"===A.iso2||"gb"===A.iso2,active:"us"===A.iso2,highlight:o}),r="flag ".concat(A.iso2);return u.a.createElement("li",Object.assign({ref:function(A){return t["flag_no_".concat(e)]=A},key:"flag_no_".concat(e),"data-flag-key":"flag_no_".concat(e),className:p,"data-dial-code":"1",tabIndex:M?"-1":"0","data-country-code":A.iso2,onClick:function(e){return t.handleFlagItemClick(A,e)},role:"option"},o?{"aria-selected":!0}:{}),u.a.createElement("div",{className:r}),u.a.createElement("span",{className:"country-name"},t.getDropdownCountryName(A)),u.a.createElement("span",{className:"dial-code"},A.format?t.formatNumber(A.dialCode,A):c+A.dialCode))})),W=u.a.createElement("li",{key:"dashes",className:"divider"});e.length>0&&(!i||i&&!r.trim())&&q.splice(e.length,0,W);var h=B()(o({"country-list":!0,hide:!p},t.props.dropdownClass,!0));return u.a.createElement("ul",{ref:function(A){return!i&&A&&A.focus(),t.dropdownRef=A},className:h,style:t.props.dropdownStyle,role:"listbox",tabIndex:"0"},i&&u.a.createElement("li",{className:B()(o({search:!0},s,s))},!O&&u.a.createElement("span",{className:B()(o({"search-emoji":!0},"".concat(s,"-emoji"),s)),role:"img","aria-label":"Magnifying glass"},"🔎"),u.a.createElement("input",{className:B()(o({"search-box":!0},"".concat(s,"-box"),s)),style:l,type:"search",placeholder:d,autoFocus:!0,autoComplete:f?"on":"off",value:r,onChange:t.handleSearchChange})),q.length>0?q:u.a.createElement("li",{className:"no-entries-message"},u.a.createElement("span",null,a)))};var s,l=new N(A.enableAreaCodes,A.enableTerritories,A.regions,A.onlyCountries,A.preferredCountries,A.excludeCountries,A.preserveOrder,A.masks,A.priority,A.areaCodes,A.localization,A.prefix,A.defaultMask,A.alwaysDefaultMask),f=l.onlyCountries,W=l.preferredCountries,g=l.hiddenAreaCodes,R=A.value?A.value.replace(/\D/g,""):"";s=A.disableInitialCountryGuess?0:R.length>1?t.guessSelectedCountry(R.substring(0,6),A.country,f,g)||0:A.country&&f.find((function(e){return e.iso2==A.country}))||0;var v,y=R.length<2&&s&&!m()(R,s.dialCode)?s.dialCode:"";v=""===R&&0===s?"":t.formatNumber((A.disableCountryCode?"":y)+R,s.name?s:void 0);var L=f.findIndex((function(A){return A==s}));return t.state={showDropdown:A.showDropdown,formattedNumber:v,onlyCountries:f,preferredCountries:W,hiddenAreaCodes:g,selectedCountry:s,highlightCountryIndex:L,queryString:"",freezeSelection:!1,debouncedQueryStingSearcher:d()(t.searchCountry,250),searchValue:""},t}var t;return function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&O(A,e)}(e,A),(t=[{key:"componentDidMount",value:function(){document.addEventListener&&this.props.enableClickOutside&&document.addEventListener("mousedown",this.handleClickOutside),this.props.onMount&&this.props.onMount(this.state.formattedNumber.replace(/[^0-9]+/g,""),this.getCountryData(),this.state.formattedNumber)}},{key:"componentWillUnmount",value:function(){document.removeEventListener&&this.props.enableClickOutside&&document.removeEventListener("mousedown",this.handleClickOutside)}},{key:"componentDidUpdate",value:function(A,e,t){A.country!==this.props.country?this.updateCountry(this.props.country):A.value!==this.props.value&&this.updateFormattedNumber(this.props.value)}},{key:"updateFormattedNumber",value:function(A){if(null===A)return this.setState({selectedCountry:0,formattedNumber:""});var e=this.state,t=e.onlyCountries,o=e.selectedCountry,n=e.hiddenAreaCodes,p=this.props,r=p.country,b=p.prefix;if(""===A)return this.setState({selectedCountry:o,formattedNumber:""});var M,c,z=A.replace(/\D/g,"");if(o&&m()(A,b+o.dialCode))c=this.formatNumber(z,o),this.setState({formattedNumber:c});else{var i=(M=this.props.disableCountryGuess?o:this.guessSelectedCountry(z.substring(0,6),r,t,n)||o)&&m()(z,b+M.dialCode)?M.dialCode:"";c=this.formatNumber((this.props.disableCountryCode?"":i)+z,M||void 0),this.setState({selectedCountry:M,formattedNumber:c})}}},{key:"render",value:function(){var A,e,t,n=this,p=this.state,r=p.onlyCountries,b=p.selectedCountry,M=p.showDropdown,c=p.formattedNumber,z=p.hiddenAreaCodes,i=this.props,a=i.disableDropdown,O=i.renderStringAsFlag,s=i.isValid,l=i.defaultErrorMessage,d=i.specialLabel;if("boolean"==typeof s)e=s;else{var f=s(c.replace(/\D/g,""),b,r,z);"boolean"==typeof f?!1===(e=f)&&(t=l):(e=!1,t=f)}var q=B()((o(A={},this.props.containerClass,!0),o(A,"react-tel-input",!0),A)),W=B()({arrow:!0,up:M}),h=B()(o({"form-control":!0,"invalid-number":!e,open:M},this.props.inputClass,!0)),g=B()({"selected-flag":!0,open:M}),m=B()(o({"flag-dropdown":!0,"invalid-number":!e,open:M},this.props.buttonClass,!0)),R="flag ".concat(b&&b.iso2);return u.a.createElement("div",{className:"".concat(q," ").concat(this.props.className),style:this.props.style||this.props.containerStyle,onKeyDown:this.handleKeydown},d&&u.a.createElement("div",{className:"special-label"},d),t&&u.a.createElement("div",{className:"invalid-number-message"},t),u.a.createElement("input",Object.assign({className:h,style:this.props.inputStyle,onChange:this.handleInput,onClick:this.handleInputClick,onDoubleClick:this.handleDoubleClick,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onCopy:this.handleInputCopy,value:c,onKeyDown:this.handleInputKeyDown,placeholder:this.props.placeholder,disabled:this.props.disabled,type:"tel"},this.props.inputProps,{ref:function(A){n.numberInputRef=A,"function"==typeof n.props.inputProps.ref?n.props.inputProps.ref(A):"object"==typeof n.props.inputProps.ref&&(n.props.inputProps.ref.current=A)}})),u.a.createElement("div",{className:m,style:this.props.buttonStyle,ref:function(A){return n.dropdownContainerRef=A}},O?u.a.createElement("div",{className:g},O):u.a.createElement("div",{onClick:a?void 0:this.handleFlagDropdownClick,className:g,title:b?"".concat(b.localName||b.name,": + ").concat(b.dialCode):"",tabIndex:a?"-1":"0",role:"button","aria-haspopup":"listbox","aria-expanded":!!M||void 0},u.a.createElement("div",{className:R},!a&&u.a.createElement("div",{className:W}))),M&&this.getCountryDropdownList()))}}])&&function(A,e){for(var t=0;t<e.length;t++){var o=e[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(A,o.key,o)}}(e.prototype,t),e}(u.a.Component);T.defaultProps={country:"",value:"",onlyCountries:[],preferredCountries:[],excludeCountries:[],placeholder:"1 (702) 123-4567",searchPlaceholder:"search",searchNotFound:"No entries to show",flagsImagePath:"./flags.png",disabled:!1,containerStyle:{},inputStyle:{},buttonStyle:{},dropdownStyle:{},searchStyle:{},containerClass:"",inputClass:"",buttonClass:"",dropdownClass:"",searchClass:"",className:"",autoFormat:!0,enableAreaCodes:!1,enableTerritories:!1,disableCountryCode:!1,disableDropdown:!1,enableLongNumbers:!1,countryCodeEditable:!0,enableSearch:!1,disableSearchIcon:!1,disableInitialCountryGuess:!1,disableCountryGuess:!1,regions:"",inputProps:{},localization:{},masks:null,priority:null,areaCodes:null,preserveOrder:[],defaultMask:"... ... ... ... ..",alwaysDefaultMask:!1,prefix:"+",copyNumbersOnly:!0,renderStringAsFlag:"",autocompleteSearch:!1,jumpCursorToEnd:!0,enableAreaCodeStretch:!1,enableClickOutside:!0,showDropdown:!1,isValid:!0,defaultErrorMessage:"",specialLabel:"Phone",onEnterKeyPress:null,keys:{UP:38,DOWN:40,RIGHT:39,LEFT:37,ENTER:13,ESC:27,PLUS:43,A:65,Z:90,SPACE:32,TAB:9}},e.default=T}]);const AP=$F.default||$F,eP=window.location.href;const tP=n.exports.memo((function({companyUser:A,dataRef:e,company_id:t,setState:o,setIsScheduling:p,fields:r,widgetColor:b}){const[{ipAddress:M,country:c,longitude:z,latitude:i,location:a,country_code:O,continent:s},u]=uF({ipAddress:void 0,country:"",longitude:void 0,latitude:void 0,location:"",country_code:"",continent:""}),[l,d]=uF(""),f=n.exports.useMemo((()=>{const A={name:Tz().required("Required Field").typeError("Name is expected"),email:Tz().email("Incorrect format").required("Required Field"),message:Tz().required("Required").typeError("message is expected")},e={account:xz().min(10,"Invalid account no").required("Required").positive().typeError("A number is expected"),bvn:xz().min(11,"Invalid BVN").required("Required Field").positive().typeError("A number is expected")};return["account","bvn"].map((t=>{var o;(null==(o=null==r?void 0:r[t])?void 0:o.show)&&(A[t]=e[t])})),fa().shape(A)}),[r]);n.exports.useEffect((()=>{NE.get("https://ipapi.co/json/").then((A=>{const{ip:e,region:o,country_name:n,longitude:p,latitude:r,country_code:b,timezone:M}=A.data,z=M.split("/");u({ipAddress:e,country:n,longitude:p,latitude:r,location:o,country_code:b,continent:z[0]});(async A=>{Xk("visitors/",A,"post")})({ip_address:e,location:a,country:c,longitude:p,latitude:r,company:t,source_url:eP})})).catch((A=>ZF.error("Error occured, try again",{autoClose:2e3})))}),[]);const{isError:q,isLoading:W,mutate:h}=qI((({name:A,email:e,message:o,...n})=>Xk("/messages/init",{name:A,email:e,credentials:l?{mobile:l,...n}:{...n},message:o,company:t,ip_address:M,country:c,latitude:i,longitude:z,location:a,source_url:eP,continent:s},"post")),{onError:A=>{ZF.error("Error occured, try again",{autoClose:2e3})},onSuccess:async({status:A,...t})=>{A&&(console.log("customer",t),e.current=t,o({chatInit:!0}))}}),g=/^[a-zA-Z\s]*$/;return tO("div",{className:"pb-1 chat-init-form m-auto scroller",children:tO(Io,{validationSchema:f,onSubmit:h,initialValues:{email:null==A?void 0:A.email,account:null==A?void 0:A.account,bvn:null==A?void 0:A.bvn,message:"",name:""},children:e=>oO(ZC,{onSubmit:e.handleSubmit,children:[q?tO(LX,{className:"mt-2 mb-0 p-0 px-2",color:"danger",children:'Error has occured... Please try again"'}):"",oO(rX,{children:[tO(gX,{size:"sm",for:"name",children:"Full Name"}),tO(zX,{name:"name",onChange:A=>{if(""===A.target.value||g.test(A.target.value))return e.handleChange(A)},onBlur:e.handleBlur,value:e.values.name,valid:e.touched.name&&!e.errors.name,invalid:e.touched.name&&!!e.errors.name,placeholder:"Enter full name",bsSize:"lg",style:{borderRadius:50,fontSize:16}}),tO(tX,{invalid:!0,children:e.errors.name})]}),oO(rX,{children:[tO(gX,{size:"sm",for:"email",children:"Email Address"}),tO(zX,{disabled:!!(null==A?void 0:A.email),name:"email",onChange:e.handleChange,onBlur:e.handleBlur,value:e.values.email,valid:e.touched.email&&!e.errors.email,invalid:e.touched.email&&!!e.errors.email,placeholder:"",bsSize:"lg",style:{borderRadius:50,fontSize:16}}),tO(tX,{invalid:!0,children:e.errors.email})]}),Object.keys(r||{}).map((A=>{if(!0===r[A].show||void 0===r[A].show)return oO(rX,"mobile"===A?{children:[tO(gX,{size:"sm",for:A,children:r[A].label||fF(A)}),tO(AP,{country:O.toLowerCase(),placeholder:r[A].placeholder||`Enter ${A}`,value:l,inputProps:{name:A,required:!0},enableSearch:!0,onChange:d})]}:{children:[tO(gX,{size:"sm",for:A,children:r[A].label||fF(A)}),tO(zX,{name:A,type:"number",onChange:e.handleChange,onBlur:e.handleBlur,value:e.values[A],valid:e.touched[A]&&!e.errors[A],invalid:e.touched[A]&&!!e.errors[A],placeholder:r[A].placeholder||`Enter ${A}`,bsSize:"lg",style:{borderRadius:50,fontSize:16}}),tO(tX,{invalid:!0,children:e.errors[A]})]},A)})),oO(rX,{children:[tO(gX,{size:"sm",for:"message",children:"Message"}),tO(zX,{name:"message",autoComplete:"off",onChange:e.handleChange,onBlur:e.handleBlur,value:e.values.message,valid:e.touched.message&&!e.errors.message,invalid:e.touched.message&&!!e.errors.message,placeholder:"Type your message here",bsSize:"lg",style:{borderRadius:15,height:60,fontSize:16}}),tO(tX,{invalid:!0,children:e.errors.message})]}),oO("div",{className:"mt-3 mb-0",style:{justifyContent:"space-between",alignItems:"center"},children:[oO(BO,{type:"submit",className:"d-flex justify-content-center align-items-center btn btn-lg btn-block btn-login-clr p-0",style:{borderRadius:50,outline:0,backgroundColor:`${b}`},children:[W?tO(EX,{color:"light",size:"sm"}):"",tO("span",{className:"ml-1",children:"Start Banking"})]}),tO(BO,{outline:!0,onClick:()=>p(!0),className:"mt-1 mb-1 py-1 px-4 col",children:"Scheduled Meeting"})]})]})})})}));var oP,nP={exports:{}},pP="object"==typeof Reflect?Reflect:null,rP=pP&&"function"==typeof pP.apply?pP.apply:function(A,e,t){return Function.prototype.apply.call(A,e,t)};oP=pP&&"function"==typeof pP.ownKeys?pP.ownKeys:Object.getOwnPropertySymbols?function(A){return Object.getOwnPropertyNames(A).concat(Object.getOwnPropertySymbols(A))}:function(A){return Object.getOwnPropertyNames(A)};var bP=Number.isNaN||function(A){return A!=A};function MP(){MP.init.call(this)}nP.exports=MP,nP.exports.once=function(A,e){return new Promise((function(t,o){function n(t){A.removeListener(e,p),o(t)}function p(){"function"==typeof A.removeListener&&A.removeListener("error",n),t([].slice.call(arguments))}fP(A,e,p,{once:!0}),"error"!==e&&function(A,e,t){"function"==typeof A.on&&fP(A,"error",e,t)}(A,n,{once:!0})}))},MP.EventEmitter=MP,MP.prototype._events=void 0,MP.prototype._eventsCount=0,MP.prototype._maxListeners=void 0;var cP=10;function zP(A){if("function"!=typeof A)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof A)}function iP(A){return void 0===A._maxListeners?MP.defaultMaxListeners:A._maxListeners}function aP(A,e,t,o){var n,p,r,b;if(zP(t),void 0===(p=A._events)?(p=A._events=Object.create(null),A._eventsCount=0):(void 0!==p.newListener&&(A.emit("newListener",e,t.listener?t.listener:t),p=A._events),r=p[e]),void 0===r)r=p[e]=t,++A._eventsCount;else if("function"==typeof r?r=p[e]=o?[t,r]:[r,t]:o?r.unshift(t):r.push(t),(n=iP(A))>0&&r.length>n&&!r.warned){r.warned=!0;var M=new Error("Possible EventEmitter memory leak detected. "+r.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");M.name="MaxListenersExceededWarning",M.emitter=A,M.type=e,M.count=r.length,b=M,console&&console.warn&&console.warn(b)}return A}function OP(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function sP(A,e,t){var o={fired:!1,wrapFn:void 0,target:A,type:e,listener:t},n=OP.bind(o);return n.listener=t,o.wrapFn=n,n}function uP(A,e,t){var o=A._events;if(void 0===o)return[];var n=o[e];return void 0===n?[]:"function"==typeof n?t?[n.listener||n]:[n]:t?function(A){for(var e=new Array(A.length),t=0;t<e.length;++t)e[t]=A[t].listener||A[t];return e}(n):dP(n,n.length)}function lP(A){var e=this._events;if(void 0!==e){var t=e[A];if("function"==typeof t)return 1;if(void 0!==t)return t.length}return 0}function dP(A,e){for(var t=new Array(e),o=0;o<e;++o)t[o]=A[o];return t}function fP(A,e,t,o){if("function"==typeof A.on)o.once?A.once(e,t):A.on(e,t);else{if("function"!=typeof A.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof A);A.addEventListener(e,(function n(p){o.once&&A.removeEventListener(e,n),t(p)}))}}Object.defineProperty(MP,"defaultMaxListeners",{enumerable:!0,get:function(){return cP},set:function(A){if("number"!=typeof A||A<0||bP(A))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+A+".");cP=A}}),MP.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},MP.prototype.setMaxListeners=function(A){if("number"!=typeof A||A<0||bP(A))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+A+".");return this._maxListeners=A,this},MP.prototype.getMaxListeners=function(){return iP(this)},MP.prototype.emit=function(A){for(var e=[],t=1;t<arguments.length;t++)e.push(arguments[t]);var o="error"===A,n=this._events;if(void 0!==n)o=o&&void 0===n.error;else if(!o)return!1;if(o){var p;if(e.length>0&&(p=e[0]),p instanceof Error)throw p;var r=new Error("Unhandled error."+(p?" ("+p.message+")":""));throw r.context=p,r}var b=n[A];if(void 0===b)return!1;if("function"==typeof b)rP(b,this,e);else{var M=b.length,c=dP(b,M);for(t=0;t<M;++t)rP(c[t],this,e)}return!0},MP.prototype.addListener=function(A,e){return aP(this,A,e,!1)},MP.prototype.on=MP.prototype.addListener,MP.prototype.prependListener=function(A,e){return aP(this,A,e,!0)},MP.prototype.once=function(A,e){return zP(e),this.on(A,sP(this,A,e)),this},MP.prototype.prependOnceListener=function(A,e){return zP(e),this.prependListener(A,sP(this,A,e)),this},MP.prototype.removeListener=function(A,e){var t,o,n,p,r;if(zP(e),void 0===(o=this._events))return this;if(void 0===(t=o[A]))return this;if(t===e||t.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete o[A],o.removeListener&&this.emit("removeListener",A,t.listener||e));else if("function"!=typeof t){for(n=-1,p=t.length-1;p>=0;p--)if(t[p]===e||t[p].listener===e){r=t[p].listener,n=p;break}if(n<0)return this;0===n?t.shift():function(A,e){for(;e+1<A.length;e++)A[e]=A[e+1];A.pop()}(t,n),1===t.length&&(o[A]=t[0]),void 0!==o.removeListener&&this.emit("removeListener",A,r||e)}return this},MP.prototype.off=MP.prototype.removeListener,MP.prototype.removeAllListeners=function(A){var e,t,o;if(void 0===(t=this._events))return this;if(void 0===t.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==t[A]&&(0==--this._eventsCount?this._events=Object.create(null):delete t[A]),this;if(0===arguments.length){var n,p=Object.keys(t);for(o=0;o<p.length;++o)"removeListener"!==(n=p[o])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=t[A]))this.removeListener(A,e);else if(void 0!==e)for(o=e.length-1;o>=0;o--)this.removeListener(A,e[o]);return this},MP.prototype.listeners=function(A){return uP(this,A,!0)},MP.prototype.rawListeners=function(A){return uP(this,A,!1)},MP.listenerCount=function(A,e){return"function"==typeof A.listenerCount?A.listenerCount(e):lP.call(A,e)},MP.prototype.listenerCount=lP,MP.prototype.eventNames=function(){return this._eventsCount>0?oP(this._events):[]};var qP=new nP.exports,WP=function(A,e){var t=A.listeners,o=void 0===t?{}:t,p=A.removeListeners,r=void 0===p?{}:p,b=A.params,M=void 0===b?{}:b;return void 0===e&&(e=[]),n.exports.useLayoutEffect((function(){var A=Object.keys(o);if(null!=A&&A.length){var e={};return A.map((function(A){var t=function(){for(var e=o[A],t=arguments.length,n=new Array(t),p=0;p<t;p++)n[p]=arguments[p];return e&&e.apply(void 0,n.concat([M]))};qP.on(A,t),e[A]=t})),function(){return A.map((function(A){qP.removeListener(A,e[A]),r[A]&&r[A]()}))}}return function(){}}),e),qP},hP={exports:{}};
|
|
63
|
+
*/!function(){var t={}.hasOwnProperty;function n(){for(var A=[],e=0;e<arguments.length;e++){var o=arguments[e];if(o){var p=typeof o;if("string"===p||"number"===p)A.push(o);else if(Array.isArray(o)&&o.length){var r=n.apply(null,o);r&&A.push(r)}else if("object"===p)for(var b in o)t.call(o,b)&&o[b]&&A.push(b)}}return A.join(" ")}A.exports?(n.default=n,A.exports=n):void 0===(o=function(){return n}.apply(e,[]))||(A.exports=o)}()},function(A,e,t){(function(e){var t=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,p=/^0o[0-7]+$/i,r=parseInt,b="object"==typeof e&&e&&e.Object===Object&&e,M="object"==typeof self&&self&&self.Object===Object&&self,c=b||M||Function("return this")(),z=Object.prototype.toString,i=c.Symbol,a=i?i.prototype:void 0,O=a?a.toString:void 0;function s(A){if("string"==typeof A)return A;if(l(A))return O?O.call(A):"";var e=A+"";return"0"==e&&1/A==-1/0?"-0":e}function u(A){var e=typeof A;return!!A&&("object"==e||"function"==e)}function l(A){return"symbol"==typeof A||!!(e=A)&&"object"==typeof e&&"[object Symbol]"==z.call(A);var e}A.exports=function(A,e,b){var M,c,z,i,a;return A=null==(M=A)?"":s(M),i=function(A){return A?(A=function(A){if("number"==typeof A)return A;if(l(A))return NaN;if(u(A)){var e="function"==typeof A.valueOf?A.valueOf():A;A=u(e)?e+"":e}if("string"!=typeof A)return 0===A?A:+A;A=A.replace(t,"");var b=n.test(A);return b||p.test(A)?r(A.slice(2),b?2:8):o.test(A)?NaN:+A}(A))===1/0||A===-1/0?17976931348623157e292*(A<0?-1:1):A==A?A:0:0===A?A:0}(b),a=i%1,c=i==i?a?i-a:i:0,0,z=A.length,c==c&&(void 0!==z&&(c=c<=z?c:z),c=c>=0?c:0),b=c,e=s(e),A.slice(b,b+e.length)==e}}).call(this,t(3))},function(A,e){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(o){"object"==typeof window&&(t=window)}A.exports=t},function(A,e,t){(function(e){var t,o=/^\[object .+?Constructor\]$/,n="object"==typeof e&&e&&e.Object===Object&&e,p="object"==typeof self&&self&&self.Object===Object&&self,r=n||p||Function("return this")(),b=Array.prototype,M=Function.prototype,c=Object.prototype,z=r["__core-js_shared__"],i=(t=/[^.]+$/.exec(z&&z.keys&&z.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"",a=M.toString,O=c.hasOwnProperty,s=c.toString,u=RegExp("^"+a.call(O).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),l=b.splice,d=R(r,"Map"),f=R(Object,"create");function q(A){var e=-1,t=A?A.length:0;for(this.clear();++e<t;){var o=A[e];this.set(o[0],o[1])}}function W(A){var e=-1,t=A?A.length:0;for(this.clear();++e<t;){var o=A[e];this.set(o[0],o[1])}}function h(A){var e=-1,t=A?A.length:0;for(this.clear();++e<t;){var o=A[e];this.set(o[0],o[1])}}function g(A,e){for(var t,o,n=A.length;n--;)if((t=A[n][0])===(o=e)||t!=t&&o!=o)return n;return-1}function m(A,e){var t,o,n=A.__data__;return("string"==(o=typeof(t=e))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==t:null===t)?n["string"==typeof e?"string":"hash"]:n.map}function R(A,e){var t,n,p=(n=e,null==(t=A)?void 0:t[n]);return function(A){return!(!v(A)||(n=A,i&&i in n))&&(e=A,t=v(e)?s.call(e):"","[object Function]"==t||"[object GeneratorFunction]"==t||function(A){var e=!1;if(null!=A&&"function"!=typeof A.toString)try{e=!!(A+"")}catch(t){}return e}(A)?u:o).test(function(A){if(null!=A){try{return a.call(A)}catch(e){}try{return A+""}catch(e){}}return""}(A));var e,t,n}(p)?p:void 0}function B(A,e){if("function"!=typeof A||e&&"function"!=typeof e)throw new TypeError("Expected a function");var t=function(){var o=arguments,n=e?e.apply(this,o):o[0],p=t.cache;if(p.has(n))return p.get(n);var r=A.apply(this,o);return t.cache=p.set(n,r),r};return t.cache=new(B.Cache||h),t}function v(A){var e=typeof A;return!!A&&("object"==e||"function"==e)}q.prototype.clear=function(){this.__data__=f?f(null):{}},q.prototype.delete=function(A){return this.has(A)&&delete this.__data__[A]},q.prototype.get=function(A){var e=this.__data__;if(f){var t=e[A];return"__lodash_hash_undefined__"===t?void 0:t}return O.call(e,A)?e[A]:void 0},q.prototype.has=function(A){var e=this.__data__;return f?void 0!==e[A]:O.call(e,A)},q.prototype.set=function(A,e){return this.__data__[A]=f&&void 0===e?"__lodash_hash_undefined__":e,this},W.prototype.clear=function(){this.__data__=[]},W.prototype.delete=function(A){var e=this.__data__,t=g(e,A);return!(t<0||(t==e.length-1?e.pop():l.call(e,t,1),0))},W.prototype.get=function(A){var e=this.__data__,t=g(e,A);return t<0?void 0:e[t][1]},W.prototype.has=function(A){return g(this.__data__,A)>-1},W.prototype.set=function(A,e){var t=this.__data__,o=g(t,A);return o<0?t.push([A,e]):t[o][1]=e,this},h.prototype.clear=function(){this.__data__={hash:new q,map:new(d||W),string:new q}},h.prototype.delete=function(A){return m(this,A).delete(A)},h.prototype.get=function(A){return m(this,A).get(A)},h.prototype.has=function(A){return m(this,A).has(A)},h.prototype.set=function(A,e){return m(this,A).set(A,e),this},B.Cache=h,A.exports=B}).call(this,t(3))},function(A,e,t){(function(e){var t=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,p=/^0o[0-7]+$/i,r=parseInt,b="object"==typeof e&&e&&e.Object===Object&&e,M="object"==typeof self&&self&&self.Object===Object&&self,c=b||M||Function("return this")(),z=Object.prototype.toString,i=Math.max,a=Math.min,O=function(){return c.Date.now()};function s(A){var e=typeof A;return!!A&&("object"==e||"function"==e)}function u(A){if("number"==typeof A)return A;if("symbol"==typeof(e=A)||(b=e)&&"object"==typeof b&&"[object Symbol]"==z.call(e))return NaN;var e,b;if(s(A)){var M="function"==typeof A.valueOf?A.valueOf():A;A=s(M)?M+"":M}if("string"!=typeof A)return 0===A?A:+A;A=A.replace(t,"");var c=n.test(A);return c||p.test(A)?r(A.slice(2),c?2:8):o.test(A)?NaN:+A}A.exports=function(A,e,t){var o,n,p,r,b,M,c=0,z=!1,l=!1,d=!0;if("function"!=typeof A)throw new TypeError("Expected a function");function f(e){var t=o,p=n;return o=n=void 0,c=e,r=A.apply(p,t)}function q(A){return c=A,b=setTimeout(h,e),z?f(A):r}function W(A){var t=A-M;return void 0===M||t>=e||t<0||l&&A-c>=p}function h(){var A,t,o=O();if(W(o))return g(o);b=setTimeout(h,(t=e-((A=o)-M),l?a(t,p-(A-c)):t))}function g(A){return b=void 0,d&&o?f(A):(o=n=void 0,r)}function m(){var A=O(),t=W(A);if(o=arguments,n=this,M=A,t){if(void 0===b)return q(M);if(l)return b=setTimeout(h,e),f(M)}return void 0===b&&(b=setTimeout(h,e)),r}return e=u(e)||0,s(t)&&(z=!!t.leading,p=(l="maxWait"in t)?i(u(t.maxWait)||0,e):p,d="trailing"in t?!!t.trailing:d),m.cancel=function(){void 0!==b&&clearTimeout(b),c=0,o=M=n=b=void 0},m.flush=function(){return void 0===b?r:g(O())},m}}).call(this,t(3))},function(A,e,t){(function(A,t){var o="[object Arguments]",n="[object Map]",p="[object Object]",r="[object Set]",b=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,M=/^\w*$/,c=/^\./,z=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=/^\[object .+?Constructor\]$/,O=/^(?:0|[1-9]\d*)$/,s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s[o]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s[n]=s["[object Number]"]=s[p]=s["[object RegExp]"]=s[r]=s["[object String]"]=s["[object WeakMap]"]=!1;var u="object"==typeof A&&A&&A.Object===Object&&A,l="object"==typeof self&&self&&self.Object===Object&&self,d=u||l||Function("return this")(),f=e&&!e.nodeType&&e,q=f&&"object"==typeof t&&t&&!t.nodeType&&t,W=q&&q.exports===f&&u.process,h=function(){try{return W&&W.binding("util")}catch(PA){}}(),g=h&&h.isTypedArray;function m(A,e,t,o){var n=-1,p=A?A.length:0;for(o&&p&&(t=A[++n]);++n<p;)t=e(t,A[n],n,A);return t}function R(A,e){for(var t=-1,o=A?A.length:0;++t<o;)if(e(A[t],t,A))return!0;return!1}function B(A,e,t,o,n){return n(A,(function(A,n,p){t=o?(o=!1,A):e(t,A,n,p)})),t}function v(A){var e=!1;if(null!=A&&"function"!=typeof A.toString)try{e=!!(A+"")}catch(t){}return e}function y(A){var e=-1,t=Array(A.size);return A.forEach((function(A,o){t[++e]=[o,A]})),t}function L(A){var e=-1,t=Array(A.size);return A.forEach((function(A){t[++e]=A})),t}var C,X,w,E=Array.prototype,N=Function.prototype,T=Object.prototype,S=d["__core-js_shared__"],x=(C=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"",D=N.toString,k=T.hasOwnProperty,I=T.toString,F=RegExp("^"+D.call(k).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),P=d.Symbol,Q=d.Uint8Array,V=T.propertyIsEnumerable,j=E.splice,U=(X=Object.keys,w=Object,function(A){return X(w(A))}),Y=gA(d,"DataView"),G=gA(d,"Map"),K=gA(d,"Promise"),H=gA(d,"Set"),_=gA(d,"WeakMap"),J=gA(Object,"create"),Z=XA(Y),$=XA(G),AA=XA(K),eA=XA(H),tA=XA(_),oA=P?P.prototype:void 0,nA=oA?oA.valueOf:void 0,pA=oA?oA.toString:void 0;function rA(A){var e=-1,t=A?A.length:0;for(this.clear();++e<t;){var o=A[e];this.set(o[0],o[1])}}function bA(A){var e=-1,t=A?A.length:0;for(this.clear();++e<t;){var o=A[e];this.set(o[0],o[1])}}function MA(A){var e=-1,t=A?A.length:0;for(this.clear();++e<t;){var o=A[e];this.set(o[0],o[1])}}function cA(A){var e=-1,t=A?A.length:0;for(this.__data__=new MA;++e<t;)this.add(A[e])}function zA(A){this.__data__=new bA(A)}function iA(A,e){for(var t=A.length;t--;)if(EA(A[t][0],e))return t;return-1}rA.prototype.clear=function(){this.__data__=J?J(null):{}},rA.prototype.delete=function(A){return this.has(A)&&delete this.__data__[A]},rA.prototype.get=function(A){var e=this.__data__;if(J){var t=e[A];return"__lodash_hash_undefined__"===t?void 0:t}return k.call(e,A)?e[A]:void 0},rA.prototype.has=function(A){var e=this.__data__;return J?void 0!==e[A]:k.call(e,A)},rA.prototype.set=function(A,e){return this.__data__[A]=J&&void 0===e?"__lodash_hash_undefined__":e,this},bA.prototype.clear=function(){this.__data__=[]},bA.prototype.delete=function(A){var e=this.__data__,t=iA(e,A);return!(t<0||(t==e.length-1?e.pop():j.call(e,t,1),0))},bA.prototype.get=function(A){var e=this.__data__,t=iA(e,A);return t<0?void 0:e[t][1]},bA.prototype.has=function(A){return iA(this.__data__,A)>-1},bA.prototype.set=function(A,e){var t=this.__data__,o=iA(t,A);return o<0?t.push([A,e]):t[o][1]=e,this},MA.prototype.clear=function(){this.__data__={hash:new rA,map:new(G||bA),string:new rA}},MA.prototype.delete=function(A){return hA(this,A).delete(A)},MA.prototype.get=function(A){return hA(this,A).get(A)},MA.prototype.has=function(A){return hA(this,A).has(A)},MA.prototype.set=function(A,e){return hA(this,A).set(A,e),this},cA.prototype.add=cA.prototype.push=function(A){return this.__data__.set(A,"__lodash_hash_undefined__"),this},cA.prototype.has=function(A){return this.__data__.has(A)},zA.prototype.clear=function(){this.__data__=new bA},zA.prototype.delete=function(A){return this.__data__.delete(A)},zA.prototype.get=function(A){return this.__data__.get(A)},zA.prototype.has=function(A){return this.__data__.has(A)},zA.prototype.set=function(A,e){var t=this.__data__;if(t instanceof bA){var o=t.__data__;if(!G||o.length<199)return o.push([A,e]),this;t=this.__data__=new MA(o)}return t.set(A,e),this};var aA,OA=(aA=function(A,e){return A&&sA(A,e,VA)},function(A,e){if(null==A)return A;if(!SA(A))return aA(A,e);for(var t=A.length,o=-1,n=Object(A);++o<t&&!1!==e(n[o],o,n););return A}),sA=function(A,e,t){for(var o=-1,n=Object(A),p=t(A),r=p.length;r--;){var b=p[++o];if(!1===e(n[b],b,n))break}return A};function uA(A,e){for(var t=0,o=(e=BA(e,A)?[e]:qA(e)).length;null!=A&&t<o;)A=A[CA(e[t++])];return t&&t==o?A:void 0}function lA(A,e){return null!=A&&e in Object(A)}function dA(A,e,t,b,M){return A===e||(null==A||null==e||!kA(A)&&!IA(e)?A!=A&&e!=e:function(A,e,t,b,M,c){var z=TA(A),i=TA(e),a="[object Array]",O="[object Array]";z||(a=(a=mA(A))==o?p:a),i||(O=(O=mA(e))==o?p:O);var s=a==p&&!v(A),u=O==p&&!v(e),l=a==O;if(l&&!s)return c||(c=new zA),z||QA(A)?WA(A,e,t,b,M,c):function(A,e,t,o,p,b,M){switch(t){case"[object DataView]":if(A.byteLength!=e.byteLength||A.byteOffset!=e.byteOffset)return!1;A=A.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(A.byteLength!=e.byteLength||!o(new Q(A),new Q(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return EA(+A,+e);case"[object Error]":return A.name==e.name&&A.message==e.message;case"[object RegExp]":case"[object String]":return A==e+"";case n:var c=y;case r:var z=2&b;if(c||(c=L),A.size!=e.size&&!z)return!1;var i=M.get(A);if(i)return i==e;b|=1,M.set(A,e);var a=WA(c(A),c(e),o,p,b,M);return M.delete(A),a;case"[object Symbol]":if(nA)return nA.call(A)==nA.call(e)}return!1}(A,e,a,t,b,M,c);if(!(2&M)){var d=s&&k.call(A,"__wrapped__"),f=u&&k.call(e,"__wrapped__");if(d||f){var q=d?A.value():A,W=f?e.value():e;return c||(c=new zA),t(q,W,b,M,c)}}return!!l&&(c||(c=new zA),function(A,e,t,o,n,p){var r=2&n,b=VA(A),M=b.length;if(M!=VA(e).length&&!r)return!1;for(var c=M;c--;){var z=b[c];if(!(r?z in e:k.call(e,z)))return!1}var i=p.get(A);if(i&&p.get(e))return i==e;var a=!0;p.set(A,e),p.set(e,A);for(var O=r;++c<M;){var s=A[z=b[c]],u=e[z];if(o)var l=r?o(u,s,z,e,A,p):o(s,u,z,A,e,p);if(!(void 0===l?s===u||t(s,u,o,n,p):l)){a=!1;break}O||(O="constructor"==z)}if(a&&!O){var d=A.constructor,f=e.constructor;d==f||!("constructor"in A)||!("constructor"in e)||"function"==typeof d&&d instanceof d&&"function"==typeof f&&f instanceof f||(a=!1)}return p.delete(A),p.delete(e),a}(A,e,t,b,M,c))}(A,e,dA,t,b,M))}function fA(A){return"function"==typeof A?A:null==A?jA:"object"==typeof A?TA(A)?(e=A[0],t=A[1],BA(e)&&vA(t)?yA(CA(e),t):function(A){var o,n,p,r=(n=e,void 0===(p=null==(o=A)?void 0:uA(o,n))?void 0:p);return void 0===r&&r===t?function(A,e){return null!=A&&function(A,e,t){for(var o,n=-1,p=(e=BA(e,A)?[e]:qA(e)).length;++n<p;){var r=CA(e[n]);if(!(o=null!=A&&t(A,r)))break;A=A[r]}return o||!!(p=A?A.length:0)&&DA(p)&&RA(r,p)&&(TA(A)||NA(A))}(A,e,lA)}(A,e):dA(t,r,void 0,3)}):function(A){var e=function(A){for(var e=VA(A),t=e.length;t--;){var o=e[t],n=A[o];e[t]=[o,n,vA(n)]}return e}(A);return 1==e.length&&e[0][2]?yA(e[0][0],e[0][1]):function(t){return t===A||function(A,e,t,o){var n=t.length,p=n;if(null==A)return!p;for(A=Object(A);n--;){var r=t[n];if(r[2]?r[1]!==A[r[0]]:!(r[0]in A))return!1}for(;++n<p;){var b=(r=t[n])[0],M=A[b],c=r[1];if(r[2]){if(void 0===M&&!(b in A))return!1}else{var z,i=new zA;if(!(void 0===z?dA(c,M,o,3,i):z))return!1}}return!0}(t,0,e)}}(A):BA(o=A)?(n=CA(o),function(A){return null==A?void 0:A[n]}):function(A){return function(e){return uA(e,A)}}(o);var e,t,o,n}function qA(A){return TA(A)?A:LA(A)}function WA(A,e,t,o,n,p){var r=2&n,b=A.length,M=e.length;if(b!=M&&!(r&&M>b))return!1;var c=p.get(A);if(c&&p.get(e))return c==e;var z=-1,i=!0,a=1&n?new cA:void 0;for(p.set(A,e),p.set(e,A);++z<b;){var O=A[z],s=e[z];if(o)var u=r?o(s,O,z,e,A,p):o(O,s,z,A,e,p);if(void 0!==u){if(u)continue;i=!1;break}if(a){if(!R(e,(function(A,e){if(!a.has(e)&&(O===A||t(O,A,o,n,p)))return a.add(e)}))){i=!1;break}}else if(O!==s&&!t(O,s,o,n,p)){i=!1;break}}return p.delete(A),p.delete(e),i}function hA(A,e){var t,o,n=A.__data__;return("string"==(o=typeof(t=e))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==t:null===t)?n["string"==typeof e?"string":"hash"]:n.map}function gA(A,e){var t,o,n=(o=e,null==(t=A)?void 0:t[o]);return function(A){return!(!kA(A)||(e=A,x&&x in e))&&(xA(A)||v(A)?F:a).test(XA(A));var e}(n)?n:void 0}var mA=function(A){return I.call(A)};function RA(A,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof A||O.test(A))&&A>-1&&A%1==0&&A<e}function BA(A,e){if(TA(A))return!1;var t=typeof A;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=A&&!FA(A))||M.test(A)||!b.test(A)||null!=e&&A in Object(e)}function vA(A){return A==A&&!kA(A)}function yA(A,e){return function(t){return null!=t&&t[A]===e&&(void 0!==e||A in Object(t))}}(Y&&"[object DataView]"!=mA(new Y(new ArrayBuffer(1)))||G&&mA(new G)!=n||K&&"[object Promise]"!=mA(K.resolve())||H&&mA(new H)!=r||_&&"[object WeakMap]"!=mA(new _))&&(mA=function(A){var e=I.call(A),t=e==p?A.constructor:void 0,o=t?XA(t):void 0;if(o)switch(o){case Z:return"[object DataView]";case $:return n;case AA:return"[object Promise]";case eA:return r;case tA:return"[object WeakMap]"}return e});var LA=wA((function(A){var e;A=null==(e=A)?"":function(A){if("string"==typeof A)return A;if(FA(A))return pA?pA.call(A):"";var e=A+"";return"0"==e&&1/A==-1/0?"-0":e}(e);var t=[];return c.test(A)&&t.push(""),A.replace(z,(function(A,e,o,n){t.push(o?n.replace(i,"$1"):e||A)})),t}));function CA(A){if("string"==typeof A||FA(A))return A;var e=A+"";return"0"==e&&1/A==-1/0?"-0":e}function XA(A){if(null!=A){try{return D.call(A)}catch(e){}try{return A+""}catch(e){}}return""}function wA(A,e){if("function"!=typeof A||e&&"function"!=typeof e)throw new TypeError("Expected a function");var t=function(){var o=arguments,n=e?e.apply(this,o):o[0],p=t.cache;if(p.has(n))return p.get(n);var r=A.apply(this,o);return t.cache=p.set(n,r),r};return t.cache=new(wA.Cache||MA),t}function EA(A,e){return A===e||A!=A&&e!=e}function NA(A){return IA(e=A)&&SA(e)&&k.call(A,"callee")&&(!V.call(A,"callee")||I.call(A)==o);var e}wA.Cache=MA;var TA=Array.isArray;function SA(A){return null!=A&&DA(A.length)&&!xA(A)}function xA(A){var e=kA(A)?I.call(A):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}function DA(A){return"number"==typeof A&&A>-1&&A%1==0&&A<=9007199254740991}function kA(A){var e=typeof A;return!!A&&("object"==e||"function"==e)}function IA(A){return!!A&&"object"==typeof A}function FA(A){return"symbol"==typeof A||IA(A)&&"[object Symbol]"==I.call(A)}var PA,QA=g?(PA=g,function(A){return PA(A)}):function(A){return IA(A)&&DA(A.length)&&!!s[I.call(A)]};function VA(A){return SA(A)?function(A,e){var t=TA(A)||NA(A)?function(A,e){for(var t=-1,o=Array(A);++t<A;)o[t]=e(t);return o}(A.length,String):[],o=t.length,n=!!o;for(var p in A)!e&&!k.call(A,p)||n&&("length"==p||RA(p,o))||t.push(p);return t}(A):function(A){if(t=(e=A)&&e.constructor,e!==("function"==typeof t&&t.prototype||T))return U(A);var e,t,o=[];for(var n in Object(A))k.call(A,n)&&"constructor"!=n&&o.push(n);return o}(A)}function jA(A){return A}t.exports=function(A,e,t){var o=TA(A)?m:B,n=arguments.length<3;return o(A,fA(e),t,n,OA)}}).call(this,t(3),t(7)(A))},function(A,e){A.exports=function(A){return A.webpackPolyfill||(A.deprecate=function(){},A.paths=[],A.children||(A.children=[]),Object.defineProperty(A,"loaded",{enumerable:!0,get:function(){return A.l}}),Object.defineProperty(A,"id",{enumerable:!0,get:function(){return A.i}}),A.webpackPolyfill=1),A}},function(A,e){String.prototype.padEnd||(String.prototype.padEnd=function(A,e){return A>>=0,e=String(void 0!==e?e:" "),this.length>A?String(this):((A-=this.length)>e.length&&(e+=e.repeat(A/e.length)),String(this)+e.slice(0,A))})},function(A,e,t){function o(A,e,t){return e in A?Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):A[e]=t,A}function n(A){if(Symbol.iterator in Object(A)||"[object Arguments]"===Object.prototype.toString.call(A))return Array.from(A)}function p(A){return function(A){if(Array.isArray(A)){for(var e=0,t=new Array(A.length);e<A.length;e++)t[e]=A[e];return t}}(A)||n(A)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function r(A){if(Array.isArray(A))return A}function b(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function M(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}function c(A){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(A)}function z(A){return(z="function"==typeof Symbol&&"symbol"===c(Symbol.iterator)?function(A){return c(A)}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":c(A)})(A)}function i(A){if(void 0===A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function a(A){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)})(A)}function O(A,e){return(O=Object.setPrototypeOf||function(A,e){return A.__proto__=e,A})(A,e)}t.r(e);var s=t(0),u=t.n(s),l=t(5),d=t.n(l),f=t(4),q=t.n(f),W=t(6),h=t.n(W),g=t(2),m=t.n(g),R=t(1),B=t.n(R);function v(A,e){return r(A)||function(A,e){var t=[],o=!0,n=!1,p=void 0;try{for(var r,b=A[Symbol.iterator]();!(o=(r=b.next()).done)&&(t.push(r.value),!e||t.length!==e);o=!0);}catch(M){n=!0,p=M}finally{try{o||null==b.return||b.return()}finally{if(n)throw p}}return t}(A,e)||b()}t(8);var y=[["Afghanistan",["asia"],"af","93"],["Albania",["europe"],"al","355"],["Algeria",["africa","north-africa"],"dz","213"],["Andorra",["europe"],"ad","376"],["Angola",["africa"],"ao","244"],["Antigua and Barbuda",["america","carribean"],"ag","1268"],["Argentina",["america","south-america"],"ar","54","(..) ........",0,["11","221","223","261","264","2652","280","2905","291","2920","2966","299","341","342","343","351","376","379","381","3833","385","387","388"]],["Armenia",["asia","ex-ussr"],"am","374",".. ......"],["Aruba",["america","carribean"],"aw","297"],["Australia",["oceania"],"au","61","(..) .... ....",0,["2","3","4","7","8","02","03","04","07","08"]],["Austria",["europe","eu-union"],"at","43"],["Azerbaijan",["asia","ex-ussr"],"az","994","(..) ... .. .."],["Bahamas",["america","carribean"],"bs","1242"],["Bahrain",["middle-east"],"bh","973"],["Bangladesh",["asia"],"bd","880"],["Barbados",["america","carribean"],"bb","1246"],["Belarus",["europe","ex-ussr"],"by","375","(..) ... .. .."],["Belgium",["europe","eu-union"],"be","32","... .. .. .."],["Belize",["america","central-america"],"bz","501"],["Benin",["africa"],"bj","229"],["Bhutan",["asia"],"bt","975"],["Bolivia",["america","south-america"],"bo","591"],["Bosnia and Herzegovina",["europe","ex-yugos"],"ba","387"],["Botswana",["africa"],"bw","267"],["Brazil",["america","south-america"],"br","55","(..) ........."],["British Indian Ocean Territory",["asia"],"io","246"],["Brunei",["asia"],"bn","673"],["Bulgaria",["europe","eu-union"],"bg","359"],["Burkina Faso",["africa"],"bf","226"],["Burundi",["africa"],"bi","257"],["Cambodia",["asia"],"kh","855"],["Cameroon",["africa"],"cm","237"],["Canada",["america","north-america"],"ca","1","(...) ...-....",1,["204","226","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",["africa"],"cv","238"],["Caribbean Netherlands",["america","carribean"],"bq","599","",1],["Central African Republic",["africa"],"cf","236"],["Chad",["africa"],"td","235"],["Chile",["america","south-america"],"cl","56"],["China",["asia"],"cn","86","..-........."],["Colombia",["america","south-america"],"co","57","... ... ...."],["Comoros",["africa"],"km","269"],["Congo",["africa"],"cd","243"],["Congo",["africa"],"cg","242"],["Costa Rica",["america","central-america"],"cr","506","....-...."],["Côte d’Ivoire",["africa"],"ci","225",".. .. .. .."],["Croatia",["europe","eu-union","ex-yugos"],"hr","385"],["Cuba",["america","carribean"],"cu","53"],["Curaçao",["america","carribean"],"cw","599","",0],["Cyprus",["europe","eu-union"],"cy","357",".. ......"],["Czech Republic",["europe","eu-union"],"cz","420","... ... ..."],["Denmark",["europe","eu-union","baltic"],"dk","45",".. .. .. .."],["Djibouti",["africa"],"dj","253"],["Dominica",["america","carribean"],"dm","1767"],["Dominican Republic",["america","carribean"],"do","1","",2,["809","829","849"]],["Ecuador",["america","south-america"],"ec","593"],["Egypt",["africa","north-africa"],"eg","20"],["El Salvador",["america","central-america"],"sv","503","....-...."],["Equatorial Guinea",["africa"],"gq","240"],["Eritrea",["africa"],"er","291"],["Estonia",["europe","eu-union","ex-ussr","baltic"],"ee","372",".... ......"],["Ethiopia",["africa"],"et","251"],["Fiji",["oceania"],"fj","679"],["Finland",["europe","eu-union","baltic"],"fi","358",".. ... .. .."],["France",["europe","eu-union"],"fr","33",". .. .. .. .."],["French Guiana",["america","south-america"],"gf","594"],["French Polynesia",["oceania"],"pf","689"],["Gabon",["africa"],"ga","241"],["Gambia",["africa"],"gm","220"],["Georgia",["asia","ex-ussr"],"ge","995"],["Germany",["europe","eu-union","baltic"],"de","49",".... ........"],["Ghana",["africa"],"gh","233"],["Greece",["europe","eu-union"],"gr","30"],["Grenada",["america","carribean"],"gd","1473"],["Guadeloupe",["america","carribean"],"gp","590","",0],["Guam",["oceania"],"gu","1671"],["Guatemala",["america","central-america"],"gt","502","....-...."],["Guinea",["africa"],"gn","224"],["Guinea-Bissau",["africa"],"gw","245"],["Guyana",["america","south-america"],"gy","592"],["Haiti",["america","carribean"],"ht","509","....-...."],["Honduras",["america","central-america"],"hn","504"],["Hong Kong",["asia"],"hk","852",".... ...."],["Hungary",["europe","eu-union"],"hu","36"],["Iceland",["europe"],"is","354","... ...."],["India",["asia"],"in","91",".....-....."],["Indonesia",["asia"],"id","62"],["Iran",["middle-east"],"ir","98","... ... ...."],["Iraq",["middle-east"],"iq","964"],["Ireland",["europe","eu-union"],"ie","353",".. ......."],["Israel",["middle-east"],"il","972","... ... ...."],["Italy",["europe","eu-union"],"it","39","... .......",0],["Jamaica",["america","carribean"],"jm","1876"],["Japan",["asia"],"jp","81",".. .... ...."],["Jordan",["middle-east"],"jo","962"],["Kazakhstan",["asia","ex-ussr"],"kz","7","... ...-..-..",1,["310","311","312","313","315","318","321","324","325","326","327","336","7172","73622"]],["Kenya",["africa"],"ke","254"],["Kiribati",["oceania"],"ki","686"],["Kosovo",["europe","ex-yugos"],"xk","383"],["Kuwait",["middle-east"],"kw","965"],["Kyrgyzstan",["asia","ex-ussr"],"kg","996","... ... ..."],["Laos",["asia"],"la","856"],["Latvia",["europe","eu-union","ex-ussr","baltic"],"lv","371",".. ... ..."],["Lebanon",["middle-east"],"lb","961"],["Lesotho",["africa"],"ls","266"],["Liberia",["africa"],"lr","231"],["Libya",["africa","north-africa"],"ly","218"],["Liechtenstein",["europe"],"li","423"],["Lithuania",["europe","eu-union","ex-ussr","baltic"],"lt","370"],["Luxembourg",["europe","eu-union"],"lu","352"],["Macau",["asia"],"mo","853"],["Macedonia",["europe","ex-yugos"],"mk","389"],["Madagascar",["africa"],"mg","261"],["Malawi",["africa"],"mw","265"],["Malaysia",["asia"],"my","60","..-....-...."],["Maldives",["asia"],"mv","960"],["Mali",["africa"],"ml","223"],["Malta",["europe","eu-union"],"mt","356"],["Marshall Islands",["oceania"],"mh","692"],["Martinique",["america","carribean"],"mq","596"],["Mauritania",["africa"],"mr","222"],["Mauritius",["africa"],"mu","230"],["Mexico",["america","central-america"],"mx","52","... ... ....",0,["55","81","33","656","664","998","774","229"]],["Micronesia",["oceania"],"fm","691"],["Moldova",["europe"],"md","373","(..) ..-..-.."],["Monaco",["europe"],"mc","377"],["Mongolia",["asia"],"mn","976"],["Montenegro",["europe","ex-yugos"],"me","382"],["Morocco",["africa","north-africa"],"ma","212"],["Mozambique",["africa"],"mz","258"],["Myanmar",["asia"],"mm","95"],["Namibia",["africa"],"na","264"],["Nauru",["africa"],"nr","674"],["Nepal",["asia"],"np","977"],["Netherlands",["europe","eu-union"],"nl","31",".. ........"],["New Caledonia",["oceania"],"nc","687"],["New Zealand",["oceania"],"nz","64","...-...-...."],["Nicaragua",["america","central-america"],"ni","505"],["Niger",["africa"],"ne","227"],["Nigeria",["africa"],"ng","234"],["North Korea",["asia"],"kp","850"],["Norway",["europe","baltic"],"no","47","... .. ..."],["Oman",["middle-east"],"om","968"],["Pakistan",["asia"],"pk","92","...-......."],["Palau",["oceania"],"pw","680"],["Palestine",["middle-east"],"ps","970"],["Panama",["america","central-america"],"pa","507"],["Papua New Guinea",["oceania"],"pg","675"],["Paraguay",["america","south-america"],"py","595"],["Peru",["america","south-america"],"pe","51"],["Philippines",["asia"],"ph","63",".... ......."],["Poland",["europe","eu-union","baltic"],"pl","48","...-...-..."],["Portugal",["europe","eu-union"],"pt","351"],["Puerto Rico",["america","carribean"],"pr","1","",3,["787","939"]],["Qatar",["middle-east"],"qa","974"],["Réunion",["africa"],"re","262"],["Romania",["europe","eu-union"],"ro","40"],["Russia",["europe","asia","ex-ussr","baltic"],"ru","7","(...) ...-..-..",0],["Rwanda",["africa"],"rw","250"],["Saint Kitts and Nevis",["america","carribean"],"kn","1869"],["Saint Lucia",["america","carribean"],"lc","1758"],["Saint Vincent and the Grenadines",["america","carribean"],"vc","1784"],["Samoa",["oceania"],"ws","685"],["San Marino",["europe"],"sm","378"],["São Tomé and Príncipe",["africa"],"st","239"],["Saudi Arabia",["middle-east"],"sa","966"],["Senegal",["africa"],"sn","221"],["Serbia",["europe","ex-yugos"],"rs","381"],["Seychelles",["africa"],"sc","248"],["Sierra Leone",["africa"],"sl","232"],["Singapore",["asia"],"sg","65","....-...."],["Slovakia",["europe","eu-union"],"sk","421"],["Slovenia",["europe","eu-union","ex-yugos"],"si","386"],["Solomon Islands",["oceania"],"sb","677"],["Somalia",["africa"],"so","252"],["South Africa",["africa"],"za","27"],["South Korea",["asia"],"kr","82","... .... ...."],["South Sudan",["africa","north-africa"],"ss","211"],["Spain",["europe","eu-union"],"es","34","... ... ..."],["Sri Lanka",["asia"],"lk","94"],["Sudan",["africa"],"sd","249"],["Suriname",["america","south-america"],"sr","597"],["Swaziland",["africa"],"sz","268"],["Sweden",["europe","eu-union","baltic"],"se","46","(...) ...-..."],["Switzerland",["europe"],"ch","41",".. ... .. .."],["Syria",["middle-east"],"sy","963"],["Taiwan",["asia"],"tw","886"],["Tajikistan",["asia","ex-ussr"],"tj","992"],["Tanzania",["africa"],"tz","255"],["Thailand",["asia"],"th","66"],["Timor-Leste",["asia"],"tl","670"],["Togo",["africa"],"tg","228"],["Tonga",["oceania"],"to","676"],["Trinidad and Tobago",["america","carribean"],"tt","1868"],["Tunisia",["africa","north-africa"],"tn","216"],["Turkey",["europe"],"tr","90","... ... .. .."],["Turkmenistan",["asia","ex-ussr"],"tm","993"],["Tuvalu",["asia"],"tv","688"],["Uganda",["africa"],"ug","256"],["Ukraine",["europe","ex-ussr"],"ua","380","(..) ... .. .."],["United Arab Emirates",["middle-east"],"ae","971"],["United Kingdom",["europe","eu-union"],"gb","44",".... ......"],["United States",["america","north-america"],"us","1","(...) ...-....",0,["907","205","251","256","334","479","501","870","480","520","602","623","928","209","213","310","323","408","415","510","530","559","562","619","626","650","661","707","714","760","805","818","831","858","909","916","925","949","951","303","719","970","203","860","202","302","239","305","321","352","386","407","561","727","772","813","850","863","904","941","954","229","404","478","706","770","912","808","319","515","563","641","712","208","217","309","312","618","630","708","773","815","847","219","260","317","574","765","812","316","620","785","913","270","502","606","859","225","318","337","504","985","413","508","617","781","978","301","410","207","231","248","269","313","517","586","616","734","810","906","989","218","320","507","612","651","763","952","314","417","573","636","660","816","228","601","662","406","252","336","704","828","910","919","701","308","402","603","201","609","732","856","908","973","505","575","702","775","212","315","516","518","585","607","631","716","718","845","914","216","330","419","440","513","614","740","937","405","580","918","503","541","215","412","570","610","717","724","814","401","803","843","864","605","423","615","731","865","901","931","210","214","254","281","325","361","409","432","512","713","806","817","830","903","915","936","940","956","972","979","435","801","276","434","540","703","757","804","802","206","253","360","425","509","262","414","608","715","920","304","307"]],["Uruguay",["america","south-america"],"uy","598"],["Uzbekistan",["asia","ex-ussr"],"uz","998",".. ... .. .."],["Vanuatu",["oceania"],"vu","678"],["Vatican City",["europe"],"va","39",".. .... ....",1],["Venezuela",["america","south-america"],"ve","58"],["Vietnam",["asia"],"vn","84"],["Yemen",["middle-east"],"ye","967"],["Zambia",["africa"],"zm","260"],["Zimbabwe",["africa"],"zw","263"]],L=[["American Samoa",["oceania"],"as","1684"],["Anguilla",["america","carribean"],"ai","1264"],["Bermuda",["america","north-america"],"bm","1441"],["British Virgin Islands",["america","carribean"],"vg","1284"],["Cayman Islands",["america","carribean"],"ky","1345"],["Cook Islands",["oceania"],"ck","682"],["Falkland Islands",["america","south-america"],"fk","500"],["Faroe Islands",["europe"],"fo","298"],["Gibraltar",["europe"],"gi","350"],["Greenland",["america"],"gl","299"],["Jersey",["europe","eu-union"],"je","44",".... ......"],["Montserrat",["america","carribean"],"ms","1664"],["Niue",["asia"],"nu","683"],["Norfolk Island",["oceania"],"nf","672"],["Northern Mariana Islands",["oceania"],"mp","1670"],["Saint Barthélemy",["america","carribean"],"bl","590","",1],["Saint Helena",["africa"],"sh","290"],["Saint Martin",["america","carribean"],"mf","590","",2],["Saint Pierre and Miquelon",["america","north-america"],"pm","508"],["Sint Maarten",["america","carribean"],"sx","1721"],["Tokelau",["oceania"],"tk","690"],["Turks and Caicos Islands",["america","carribean"],"tc","1649"],["U.S. Virgin Islands",["america","carribean"],"vi","1340"],["Wallis and Futuna",["oceania"],"wf","681"]];function C(A,e,t,o,n){return!t||n?A+"".padEnd(e.length,".")+" "+o:A+"".padEnd(e.length,".")+" "+t}function X(A,e,t,n,r){var b,M,c=[];return M=!0===e,[(b=[]).concat.apply(b,p(A.map((function(A){var p={name:A[0],regions:A[1],iso2:A[2],countryCode:A[3],dialCode:A[3],format:C(t,A[3],A[4],n,r),priority:A[5]||0},b=[];return A[6]&&A[6].map((function(e){var t=function(A){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter((function(A){return Object.getOwnPropertyDescriptor(t,A).enumerable})))),n.forEach((function(e){o(A,e,t[e])}))}return A}({},p);t.dialCode=A[3]+e,t.isAreaCode=!0,t.areaCodeLength=e.length,b.push(t)})),b.length>0?(p.mainCode=!0,M||"Array"===e.constructor.name&&e.includes(A[2])?(p.hasAreaCodes=!0,[p].concat(b)):(c=c.concat(b),[p])):[p]})))),c]}function w(A,e,t,o){if(null!==t){var n=Object.keys(t),p=Object.values(t);n.forEach((function(t,n){if(o)return A.push([t,p[n]]);var r=A.findIndex((function(A){return A[0]===t}));if(-1===r){var b=[t];b[e]=p[n],A.push(b)}else A[r][e]=p[n]}))}}function E(A,e){return 0===e.length?A:A.map((function(A){var t=e.findIndex((function(e){return e[0]===A[2]}));if(-1===t)return A;var o=e[t];return o[1]&&(A[4]=o[1]),o[3]&&(A[5]=o[3]),o[2]&&(A[6]=o[2]),A}))}var N=function A(e,t,o,n,r,b,c,z,i,a,O,s,u,l){M(this,A),this.filterRegions=function(A,e){if("string"==typeof A){var t=A;return e.filter((function(A){return A.regions.some((function(A){return A===t}))}))}return e.filter((function(e){return A.map((function(A){return e.regions.some((function(e){return e===A}))})).some((function(A){return A}))}))},this.sortTerritories=function(A,e){var t=[].concat(p(A),p(e));return t.sort((function(A,e){return A.name<e.name?-1:A.name>e.name?1:0})),t},this.getFilteredCountryList=function(A,e,t){return 0===A.length?e:t?A.map((function(A){var t=e.find((function(e){return e.iso2===A}));if(t)return t})).filter((function(A){return A})):e.filter((function(e){return A.some((function(A){return A===e.iso2}))}))},this.localizeCountries=function(A,e,t){for(var o=0;o<A.length;o++)void 0!==e[A[o].iso2]?A[o].localName=e[A[o].iso2]:void 0!==e[A[o].name]&&(A[o].localName=e[A[o].name]);return t||A.sort((function(A,e){return A.localName<e.localName?-1:A.localName>e.localName?1:0})),A},this.getCustomAreas=function(A,e){for(var t=[],o=0;o<e.length;o++){var n=JSON.parse(JSON.stringify(A));n.dialCode+=e[o],t.push(n)}return t},this.excludeCountries=function(A,e){return 0===e.length?A:A.filter((function(A){return!e.includes(A.iso2)}))};var d,f,q,W=(d=i,f=a,w(q=[],1,z,!0),w(q,3,d),w(q,2,f),q),h=E(JSON.parse(JSON.stringify(y)),W),g=E(JSON.parse(JSON.stringify(L)),W),m=v(X(h,e,s,u,l),2),R=m[0],B=m[1];if(t){var C=v(X(g,e,s,u,l),2),N=C[0];C[1],R=this.sortTerritories(N,R)}o&&(R=this.filterRegions(o,R)),this.onlyCountries=this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(n,R,c.includes("onlyCountries")),b),O,c.includes("onlyCountries")),this.preferredCountries=0===r.length?[]:this.localizeCountries(this.getFilteredCountryList(r,R,c.includes("preferredCountries")),O,c.includes("preferredCountries")),this.hiddenAreaCodes=this.excludeCountries(this.getFilteredCountryList(n,B),b)},T=function(A){function e(A){var t,c,O;M(this,e),(c=this,O=a(e).call(this,A),t=!O||"object"!==z(O)&&"function"!=typeof O?i(c):O).getProbableCandidate=q()((function(A){return A&&0!==A.length?t.state.onlyCountries.filter((function(e){return m()(e.name.toLowerCase(),A.toLowerCase())}),i(i(t)))[0]:null})),t.guessSelectedCountry=q()((function(A,e,o,n){var p;if(!1===t.props.enableAreaCodes&&(n.some((function(e){if(m()(A,e.dialCode))return o.some((function(A){if(e.iso2===A.iso2&&A.mainCode)return p=A,!0})),!0})),p))return p;var r=o.find((function(A){return A.iso2==e}));if(""===A.trim())return r;var b=o.reduce((function(e,t){if(m()(A,t.dialCode)){if(t.dialCode.length>e.dialCode.length)return t;if(t.dialCode.length===e.dialCode.length&&t.priority<e.priority)return t}return e}),{dialCode:"",priority:10001},i(i(t)));return b.name?b:r})),t.updateCountry=function(A){var e,o=t.state.onlyCountries;(e=A.indexOf(0)>="0"&&A.indexOf(0)<="9"?o.find((function(e){return e.dialCode==+A})):o.find((function(e){return e.iso2==A})))&&e.dialCode&&t.setState({selectedCountry:e,formattedNumber:t.props.disableCountryCode?"":t.formatNumber(e.dialCode,e)})},t.scrollTo=function(A,e){if(A){var o=t.dropdownRef;if(o&&document.body){var n=o.offsetHeight,p=o.getBoundingClientRect().top+document.body.scrollTop,r=p+n,b=A,M=b.getBoundingClientRect(),c=b.offsetHeight,z=M.top+document.body.scrollTop,i=z+c,a=z-p+o.scrollTop,O=n/2-c/2;if(t.props.enableSearch?z<p+32:z<p)e&&(a-=O),o.scrollTop=a;else if(i>r){e&&(a+=O);var s=n-c;o.scrollTop=a-s}}}},t.scrollToTop=function(){var A=t.dropdownRef;A&&document.body&&(A.scrollTop=0)},t.formatNumber=function(A,e){if(!e)return A;var o,p=e.format,M=t.props,c=M.disableCountryCode,z=M.enableAreaCodeStretch,i=M.enableLongNumbers,a=M.autoFormat;if(c?((o=p.split(" ")).shift(),o=o.join(" ")):z&&e.isAreaCode?((o=p.split(" "))[1]=o[1].replace(/\.+/,"".padEnd(e.areaCodeLength,".")),o=o.join(" ")):o=p,!A||0===A.length)return c?"":t.props.prefix;if(A&&A.length<2||!o||!a)return c?A:t.props.prefix+A;var O,s=h()(o,(function(A,e){if(0===A.remainingText.length)return A;if("."!==e)return{formattedText:A.formattedText+e,remainingText:A.remainingText};var t,o=r(t=A.remainingText)||n(t)||b(),p=o[0],M=o.slice(1);return{formattedText:A.formattedText+p,remainingText:M}}),{formattedText:"",remainingText:A.split("")});return(O=i?s.formattedText+s.remainingText.join(""):s.formattedText).includes("(")&&!O.includes(")")&&(O+=")"),O},t.cursorToEnd=function(){var A=t.numberInputRef;if(document.activeElement===A){A.focus();var e=A.value.length;")"===A.value.charAt(e-1)&&(e-=1),A.setSelectionRange(e,e)}},t.getElement=function(A){return t["flag_no_".concat(A)]},t.getCountryData=function(){return t.state.selectedCountry?{name:t.state.selectedCountry.name||"",dialCode:t.state.selectedCountry.dialCode||"",countryCode:t.state.selectedCountry.iso2||"",format:t.state.selectedCountry.format||""}:{}},t.handleFlagDropdownClick=function(A){if(A.preventDefault(),t.state.showDropdown||!t.props.disabled){var e=t.state,o=e.preferredCountries,n=e.onlyCountries,p=e.selectedCountry,r=t.concatPreferredCountries(o,n).findIndex((function(A){return A.dialCode===p.dialCode&&A.iso2===p.iso2}));t.setState({showDropdown:!t.state.showDropdown,highlightCountryIndex:r},(function(){t.state.showDropdown&&t.scrollTo(t.getElement(t.state.highlightCountryIndex))}))}},t.handleInput=function(A){var e=A.target.value,o=t.props,n=o.prefix,p=o.onChange,r=t.props.disableCountryCode?"":n,b=t.state.selectedCountry,M=t.state.freezeSelection;if(!t.props.countryCodeEditable){var c=n+(b.hasAreaCodes?t.state.onlyCountries.find((function(A){return A.iso2===b.iso2&&A.mainCode})).dialCode:b.dialCode);if(e.slice(0,c.length)!==c)return}if(e===n)return p&&p("",t.getCountryData(),A,""),t.setState({formattedNumber:""});if(e.replace(/\D/g,"").length>15){if(!1===t.props.enableLongNumbers)return;if("number"==typeof t.props.enableLongNumbers&&e.replace(/\D/g,"").length>t.props.enableLongNumbers)return}if(e!==t.state.formattedNumber){A.preventDefault?A.preventDefault():A.returnValue=!1;var z=t.props.country,i=t.state,a=i.onlyCountries,O=i.selectedCountry,s=i.hiddenAreaCodes;if(p&&A.persist(),e.length>0){var u=e.replace(/\D/g,"");(!t.state.freezeSelection||O&&O.dialCode.length>u.length)&&(b=t.props.disableCountryGuess?O:t.guessSelectedCountry(u.substring(0,6),z,a,s)||O,M=!1),r=t.formatNumber(u,b),b=b.dialCode?b:O}var l=A.target.selectionStart,d=A.target.selectionStart,f=t.state.formattedNumber,q=r.length-f.length;t.setState({formattedNumber:r,freezeSelection:M,selectedCountry:b},(function(){q>0&&(d-=q),")"==r.charAt(r.length-1)?t.numberInputRef.setSelectionRange(r.length-1,r.length-1):d>0&&f.length>=r.length?t.numberInputRef.setSelectionRange(d,d):l<f.length&&t.numberInputRef.setSelectionRange(l,l),p&&p(r.replace(/[^0-9]+/g,""),t.getCountryData(),A,r)}))}},t.handleInputClick=function(A){t.setState({showDropdown:!1}),t.props.onClick&&t.props.onClick(A,t.getCountryData())},t.handleDoubleClick=function(A){var e=A.target.value.length;A.target.setSelectionRange(0,e)},t.handleFlagItemClick=function(A,e){var o=t.state.selectedCountry,n=t.state.onlyCountries.find((function(e){return e==A}));if(n){var p=t.state.formattedNumber.replace(" ","").replace("(","").replace(")","").replace("-",""),r=p.length>1?p.replace(o.dialCode,n.dialCode):n.dialCode,b=t.formatNumber(r.replace(/\D/g,""),n);t.setState({showDropdown:!1,selectedCountry:n,freezeSelection:!0,formattedNumber:b,searchValue:""},(function(){t.cursorToEnd(),t.props.onChange&&t.props.onChange(b.replace(/[^0-9]+/g,""),t.getCountryData(),e,b)}))}},t.handleInputFocus=function(A){t.numberInputRef&&t.numberInputRef.value===t.props.prefix&&t.state.selectedCountry&&!t.props.disableCountryCode&&t.setState({formattedNumber:t.props.prefix+t.state.selectedCountry.dialCode},(function(){t.props.jumpCursorToEnd&&setTimeout(t.cursorToEnd,0)})),t.setState({placeholder:""}),t.props.onFocus&&t.props.onFocus(A,t.getCountryData()),t.props.jumpCursorToEnd&&setTimeout(t.cursorToEnd,0)},t.handleInputBlur=function(A){A.target.value||t.setState({placeholder:t.props.placeholder}),t.props.onBlur&&t.props.onBlur(A,t.getCountryData())},t.handleInputCopy=function(A){if(t.props.copyNumbersOnly){var e=window.getSelection().toString().replace(/[^0-9]+/g,"");A.clipboardData.setData("text/plain",e),A.preventDefault()}},t.getHighlightCountryIndex=function(A){var e=t.state.highlightCountryIndex+A;return e<0||e>=t.state.onlyCountries.length+t.state.preferredCountries.length?e-A:t.props.enableSearch&&e>t.getSearchFilteredCountries().length?0:e},t.searchCountry=function(){var A=t.getProbableCandidate(t.state.queryString)||t.state.onlyCountries[0],e=t.state.onlyCountries.findIndex((function(e){return e==A}))+t.state.preferredCountries.length;t.scrollTo(t.getElement(e),!0),t.setState({queryString:"",highlightCountryIndex:e})},t.handleKeydown=function(A){var e=t.props.keys,o=A.target.className;if(o.includes("selected-flag")&&A.which===e.ENTER&&!t.state.showDropdown)return t.handleFlagDropdownClick(A);if(o.includes("form-control")&&(A.which===e.ENTER||A.which===e.ESC))return A.target.blur();if(t.state.showDropdown&&!t.props.disabled&&(!o.includes("search-box")||A.which===e.UP||A.which===e.DOWN||A.which===e.ENTER||A.which===e.ESC&&""===A.target.value)){A.preventDefault?A.preventDefault():A.returnValue=!1;var n=function(A){t.setState({highlightCountryIndex:t.getHighlightCountryIndex(A)},(function(){t.scrollTo(t.getElement(t.state.highlightCountryIndex),!0)}))};switch(A.which){case e.DOWN:n(1);break;case e.UP:n(-1);break;case e.ENTER:t.props.enableSearch?t.handleFlagItemClick(t.getSearchFilteredCountries()[t.state.highlightCountryIndex]||t.getSearchFilteredCountries()[0],A):t.handleFlagItemClick([].concat(p(t.state.preferredCountries),p(t.state.onlyCountries))[t.state.highlightCountryIndex],A);break;case e.ESC:case e.TAB:t.setState({showDropdown:!1},t.cursorToEnd);break;default:(A.which>=e.A&&A.which<=e.Z||A.which===e.SPACE)&&t.setState({queryString:t.state.queryString+String.fromCharCode(A.which)},t.state.debouncedQueryStingSearcher)}}},t.handleInputKeyDown=function(A){var e=t.props,o=e.keys,n=e.onEnterKeyPress,p=e.onKeyDown;A.which===o.ENTER&&n&&n(A),p&&p(A)},t.handleClickOutside=function(A){t.dropdownRef&&!t.dropdownContainerRef.contains(A.target)&&t.state.showDropdown&&t.setState({showDropdown:!1})},t.handleSearchChange=function(A){var e=A.currentTarget.value,o=t.state,n=o.preferredCountries,p=o.selectedCountry,r=0;if(""===e&&p){var b=t.state.onlyCountries;r=t.concatPreferredCountries(n,b).findIndex((function(A){return A==p})),setTimeout((function(){return t.scrollTo(t.getElement(r))}),100)}t.setState({searchValue:e,highlightCountryIndex:r})},t.concatPreferredCountries=function(A,e){return A.length>0?p(new Set(A.concat(e))):e},t.getDropdownCountryName=function(A){return A.localName||A.name},t.getSearchFilteredCountries=function(){var A=t.state,e=A.preferredCountries,o=A.onlyCountries,n=A.searchValue,r=t.props.enableSearch,b=t.concatPreferredCountries(e,o),M=n.trim().toLowerCase().replace("+","");if(r&&M){if(/^\d+$/.test(M))return b.filter((function(A){var e=A.dialCode;return["".concat(e)].some((function(A){return A.toLowerCase().includes(M)}))}));var c=b.filter((function(A){var e=A.iso2;return["".concat(e)].some((function(A){return A.toLowerCase().includes(M)}))})),z=b.filter((function(A){var e=A.name,t=A.localName;return A.iso2,["".concat(e),"".concat(t||"")].some((function(A){return A.toLowerCase().includes(M)}))}));return t.scrollToTop(),p(new Set([].concat(c,z)))}return b},t.getCountryDropdownList=function(){var A=t.state,e=A.preferredCountries,n=A.highlightCountryIndex,p=A.showDropdown,r=A.searchValue,b=t.props,M=b.disableDropdown,c=b.prefix,z=t.props,i=z.enableSearch,a=z.searchNotFound,O=z.disableSearchIcon,s=z.searchClass,l=z.searchStyle,d=z.searchPlaceholder,f=z.autocompleteSearch,q=t.getSearchFilteredCountries().map((function(A,e){var o=n===e,p=B()({country:!0,preferred:"us"===A.iso2||"gb"===A.iso2,active:"us"===A.iso2,highlight:o}),r="flag ".concat(A.iso2);return u.a.createElement("li",Object.assign({ref:function(A){return t["flag_no_".concat(e)]=A},key:"flag_no_".concat(e),"data-flag-key":"flag_no_".concat(e),className:p,"data-dial-code":"1",tabIndex:M?"-1":"0","data-country-code":A.iso2,onClick:function(e){return t.handleFlagItemClick(A,e)},role:"option"},o?{"aria-selected":!0}:{}),u.a.createElement("div",{className:r}),u.a.createElement("span",{className:"country-name"},t.getDropdownCountryName(A)),u.a.createElement("span",{className:"dial-code"},A.format?t.formatNumber(A.dialCode,A):c+A.dialCode))})),W=u.a.createElement("li",{key:"dashes",className:"divider"});e.length>0&&(!i||i&&!r.trim())&&q.splice(e.length,0,W);var h=B()(o({"country-list":!0,hide:!p},t.props.dropdownClass,!0));return u.a.createElement("ul",{ref:function(A){return!i&&A&&A.focus(),t.dropdownRef=A},className:h,style:t.props.dropdownStyle,role:"listbox",tabIndex:"0"},i&&u.a.createElement("li",{className:B()(o({search:!0},s,s))},!O&&u.a.createElement("span",{className:B()(o({"search-emoji":!0},"".concat(s,"-emoji"),s)),role:"img","aria-label":"Magnifying glass"},"🔎"),u.a.createElement("input",{className:B()(o({"search-box":!0},"".concat(s,"-box"),s)),style:l,type:"search",placeholder:d,autoFocus:!0,autoComplete:f?"on":"off",value:r,onChange:t.handleSearchChange})),q.length>0?q:u.a.createElement("li",{className:"no-entries-message"},u.a.createElement("span",null,a)))};var s,l=new N(A.enableAreaCodes,A.enableTerritories,A.regions,A.onlyCountries,A.preferredCountries,A.excludeCountries,A.preserveOrder,A.masks,A.priority,A.areaCodes,A.localization,A.prefix,A.defaultMask,A.alwaysDefaultMask),f=l.onlyCountries,W=l.preferredCountries,g=l.hiddenAreaCodes,R=A.value?A.value.replace(/\D/g,""):"";s=A.disableInitialCountryGuess?0:R.length>1?t.guessSelectedCountry(R.substring(0,6),A.country,f,g)||0:A.country&&f.find((function(e){return e.iso2==A.country}))||0;var v,y=R.length<2&&s&&!m()(R,s.dialCode)?s.dialCode:"";v=""===R&&0===s?"":t.formatNumber((A.disableCountryCode?"":y)+R,s.name?s:void 0);var L=f.findIndex((function(A){return A==s}));return t.state={showDropdown:A.showDropdown,formattedNumber:v,onlyCountries:f,preferredCountries:W,hiddenAreaCodes:g,selectedCountry:s,highlightCountryIndex:L,queryString:"",freezeSelection:!1,debouncedQueryStingSearcher:d()(t.searchCountry,250),searchValue:""},t}var t;return function(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),e&&O(A,e)}(e,A),(t=[{key:"componentDidMount",value:function(){document.addEventListener&&this.props.enableClickOutside&&document.addEventListener("mousedown",this.handleClickOutside),this.props.onMount&&this.props.onMount(this.state.formattedNumber.replace(/[^0-9]+/g,""),this.getCountryData(),this.state.formattedNumber)}},{key:"componentWillUnmount",value:function(){document.removeEventListener&&this.props.enableClickOutside&&document.removeEventListener("mousedown",this.handleClickOutside)}},{key:"componentDidUpdate",value:function(A,e,t){A.country!==this.props.country?this.updateCountry(this.props.country):A.value!==this.props.value&&this.updateFormattedNumber(this.props.value)}},{key:"updateFormattedNumber",value:function(A){if(null===A)return this.setState({selectedCountry:0,formattedNumber:""});var e=this.state,t=e.onlyCountries,o=e.selectedCountry,n=e.hiddenAreaCodes,p=this.props,r=p.country,b=p.prefix;if(""===A)return this.setState({selectedCountry:o,formattedNumber:""});var M,c,z=A.replace(/\D/g,"");if(o&&m()(A,b+o.dialCode))c=this.formatNumber(z,o),this.setState({formattedNumber:c});else{var i=(M=this.props.disableCountryGuess?o:this.guessSelectedCountry(z.substring(0,6),r,t,n)||o)&&m()(z,b+M.dialCode)?M.dialCode:"";c=this.formatNumber((this.props.disableCountryCode?"":i)+z,M||void 0),this.setState({selectedCountry:M,formattedNumber:c})}}},{key:"render",value:function(){var A,e,t,n=this,p=this.state,r=p.onlyCountries,b=p.selectedCountry,M=p.showDropdown,c=p.formattedNumber,z=p.hiddenAreaCodes,i=this.props,a=i.disableDropdown,O=i.renderStringAsFlag,s=i.isValid,l=i.defaultErrorMessage,d=i.specialLabel;if("boolean"==typeof s)e=s;else{var f=s(c.replace(/\D/g,""),b,r,z);"boolean"==typeof f?!1===(e=f)&&(t=l):(e=!1,t=f)}var q=B()((o(A={},this.props.containerClass,!0),o(A,"react-tel-input",!0),A)),W=B()({arrow:!0,up:M}),h=B()(o({"form-control":!0,"invalid-number":!e,open:M},this.props.inputClass,!0)),g=B()({"selected-flag":!0,open:M}),m=B()(o({"flag-dropdown":!0,"invalid-number":!e,open:M},this.props.buttonClass,!0)),R="flag ".concat(b&&b.iso2);return u.a.createElement("div",{className:"".concat(q," ").concat(this.props.className),style:this.props.style||this.props.containerStyle,onKeyDown:this.handleKeydown},d&&u.a.createElement("div",{className:"special-label"},d),t&&u.a.createElement("div",{className:"invalid-number-message"},t),u.a.createElement("input",Object.assign({className:h,style:this.props.inputStyle,onChange:this.handleInput,onClick:this.handleInputClick,onDoubleClick:this.handleDoubleClick,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onCopy:this.handleInputCopy,value:c,onKeyDown:this.handleInputKeyDown,placeholder:this.props.placeholder,disabled:this.props.disabled,type:"tel"},this.props.inputProps,{ref:function(A){n.numberInputRef=A,"function"==typeof n.props.inputProps.ref?n.props.inputProps.ref(A):"object"==typeof n.props.inputProps.ref&&(n.props.inputProps.ref.current=A)}})),u.a.createElement("div",{className:m,style:this.props.buttonStyle,ref:function(A){return n.dropdownContainerRef=A}},O?u.a.createElement("div",{className:g},O):u.a.createElement("div",{onClick:a?void 0:this.handleFlagDropdownClick,className:g,title:b?"".concat(b.localName||b.name,": + ").concat(b.dialCode):"",tabIndex:a?"-1":"0",role:"button","aria-haspopup":"listbox","aria-expanded":!!M||void 0},u.a.createElement("div",{className:R},!a&&u.a.createElement("div",{className:W}))),M&&this.getCountryDropdownList()))}}])&&function(A,e){for(var t=0;t<e.length;t++){var o=e[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(A,o.key,o)}}(e.prototype,t),e}(u.a.Component);T.defaultProps={country:"",value:"",onlyCountries:[],preferredCountries:[],excludeCountries:[],placeholder:"1 (702) 123-4567",searchPlaceholder:"search",searchNotFound:"No entries to show",flagsImagePath:"./flags.png",disabled:!1,containerStyle:{},inputStyle:{},buttonStyle:{},dropdownStyle:{},searchStyle:{},containerClass:"",inputClass:"",buttonClass:"",dropdownClass:"",searchClass:"",className:"",autoFormat:!0,enableAreaCodes:!1,enableTerritories:!1,disableCountryCode:!1,disableDropdown:!1,enableLongNumbers:!1,countryCodeEditable:!0,enableSearch:!1,disableSearchIcon:!1,disableInitialCountryGuess:!1,disableCountryGuess:!1,regions:"",inputProps:{},localization:{},masks:null,priority:null,areaCodes:null,preserveOrder:[],defaultMask:"... ... ... ... ..",alwaysDefaultMask:!1,prefix:"+",copyNumbersOnly:!0,renderStringAsFlag:"",autocompleteSearch:!1,jumpCursorToEnd:!0,enableAreaCodeStretch:!1,enableClickOutside:!0,showDropdown:!1,isValid:!0,defaultErrorMessage:"",specialLabel:"Phone",onEnterKeyPress:null,keys:{UP:38,DOWN:40,RIGHT:39,LEFT:37,ENTER:13,ESC:27,PLUS:43,A:65,Z:90,SPACE:32,TAB:9}},e.default=T}]);const AP=$F.default||$F,eP=window.location.href;const tP=n.exports.memo((function({companyUser:A,dataRef:e,company_id:t,setState:o,setIsScheduling:p,fields:r,widgetColor:b}){const[{ipAddress:M,country:c,longitude:z,latitude:i,location:a,country_code:O,continent:s},u]=uF({ipAddress:void 0,country:"",longitude:void 0,latitude:void 0,location:"",country_code:"",continent:""}),[l,d]=uF(""),f=n.exports.useMemo((()=>{const A={name:Tz().required("Required Field").typeError("Name is expected"),email:Tz().email("Incorrect format").required("Required Field"),message:Tz().required("Required").typeError("message is expected")},e={account:xz().min(10,"Invalid account no").required("Required").positive().typeError("A number is expected"),bvn:xz().min(11,"Invalid BVN").required("Required Field").positive().typeError("A number is expected")};return["account","bvn"].map((t=>{var o;(null==(o=null==r?void 0:r[t])?void 0:o.show)&&(A[t]=e[t])})),fa().shape(A)}),[r]);n.exports.useEffect((()=>{NE.get("https://ipapi.co/json/").then((A=>{const{ip:e,region:o,country_name:n,longitude:p,latitude:r,country_code:b,timezone:M}=A.data;u({ipAddress:e,country:n,longitude:p,latitude:r,location:o,country_code:b});(async A=>{Xk("visitors/",A,"post")})({ip_address:e,location:a,country:c,longitude:p,latitude:r,company:t,source_url:eP})})).catch((A=>ZF.error("Error occured, try again",{autoClose:2e3})))}),[]);const{isError:q,isLoading:W,mutate:h}=qI((({name:A,email:e,message:o,...n})=>Xk("/messages/init",{name:A,email:e,credentials:l?{mobile:l,...n}:{...n},message:o,company:t,ip_address:M,country:c,latitude:i,longitude:z,location:a,source_url:eP},"post")),{onError:A=>{ZF.error("Error occured, try again",{autoClose:2e3})},onSuccess:async({status:A,...t})=>{A&&(console.log("customer",t),e.current=t,o({chatInit:!0}))}}),g=/^[a-zA-Z\s]*$/;return tO("div",{className:"pb-1 chat-init-form m-auto scroller",children:tO(Io,{validationSchema:f,onSubmit:h,initialValues:{email:null==A?void 0:A.email,account:null==A?void 0:A.account,bvn:null==A?void 0:A.bvn,message:"",name:""},children:e=>oO(ZC,{onSubmit:e.handleSubmit,children:[q?tO(LX,{className:"mt-2 mb-0 p-0 px-2",color:"danger",children:'Error has occured... Please try again"'}):"",oO(rX,{children:[tO(gX,{size:"sm",for:"name",children:"Full Name"}),tO(zX,{name:"name",onChange:A=>{if(""===A.target.value||g.test(A.target.value))return e.handleChange(A)},onBlur:e.handleBlur,value:e.values.name,valid:e.touched.name&&!e.errors.name,invalid:e.touched.name&&!!e.errors.name,placeholder:"Enter full name",bsSize:"lg",style:{borderRadius:50,fontSize:16}}),tO(tX,{invalid:!0,children:e.errors.name})]}),oO(rX,{children:[tO(gX,{size:"sm",for:"email",children:"Email Address"}),tO(zX,{disabled:!!(null==A?void 0:A.email),name:"email",onChange:e.handleChange,onBlur:e.handleBlur,value:e.values.email,valid:e.touched.email&&!e.errors.email,invalid:e.touched.email&&!!e.errors.email,placeholder:"",bsSize:"lg",style:{borderRadius:50,fontSize:16}}),tO(tX,{invalid:!0,children:e.errors.email})]}),Object.keys(r||{}).map((A=>{if(!0===r[A].show||void 0===r[A].show)return oO(rX,"mobile"===A?{children:[tO(gX,{size:"sm",for:A,children:r[A].label||fF(A)}),tO(AP,{country:O.toLowerCase(),placeholder:r[A].placeholder||`Enter ${A}`,value:l,inputProps:{name:A,required:!0},enableSearch:!0,onChange:d})]}:{children:[tO(gX,{size:"sm",for:A,children:r[A].label||fF(A)}),tO(zX,{name:A,type:"number",onChange:e.handleChange,onBlur:e.handleBlur,value:e.values[A],valid:e.touched[A]&&!e.errors[A],invalid:e.touched[A]&&!!e.errors[A],placeholder:r[A].placeholder||`Enter ${A}`,bsSize:"lg",style:{borderRadius:50,fontSize:16}}),tO(tX,{invalid:!0,children:e.errors[A]})]},A)})),oO(rX,{children:[tO(gX,{size:"sm",for:"message",children:"Message"}),tO(zX,{name:"message",autoComplete:"off",onChange:e.handleChange,onBlur:e.handleBlur,value:e.values.message,valid:e.touched.message&&!e.errors.message,invalid:e.touched.message&&!!e.errors.message,placeholder:"Type your message here",bsSize:"lg",style:{borderRadius:15,height:60,fontSize:16}}),tO(tX,{invalid:!0,children:e.errors.message})]}),oO("div",{className:"mt-3 mb-0",style:{justifyContent:"space-between",alignItems:"center"},children:[oO(BO,{type:"submit",className:"d-flex justify-content-center align-items-center btn btn-lg btn-block btn-login-clr p-0",style:{borderRadius:50,outline:0,backgroundColor:`${b}`},children:[W?tO(EX,{color:"light",size:"sm"}):"",tO("span",{className:"ml-1",children:"Start Banking"})]}),tO(BO,{outline:!0,onClick:()=>p(!0),className:"mt-1 mb-1 py-1 px-4 col",children:"Scheduled Meeting"})]})]})})})}));var oP,nP={exports:{}},pP="object"==typeof Reflect?Reflect:null,rP=pP&&"function"==typeof pP.apply?pP.apply:function(A,e,t){return Function.prototype.apply.call(A,e,t)};oP=pP&&"function"==typeof pP.ownKeys?pP.ownKeys:Object.getOwnPropertySymbols?function(A){return Object.getOwnPropertyNames(A).concat(Object.getOwnPropertySymbols(A))}:function(A){return Object.getOwnPropertyNames(A)};var bP=Number.isNaN||function(A){return A!=A};function MP(){MP.init.call(this)}nP.exports=MP,nP.exports.once=function(A,e){return new Promise((function(t,o){function n(t){A.removeListener(e,p),o(t)}function p(){"function"==typeof A.removeListener&&A.removeListener("error",n),t([].slice.call(arguments))}fP(A,e,p,{once:!0}),"error"!==e&&function(A,e,t){"function"==typeof A.on&&fP(A,"error",e,t)}(A,n,{once:!0})}))},MP.EventEmitter=MP,MP.prototype._events=void 0,MP.prototype._eventsCount=0,MP.prototype._maxListeners=void 0;var cP=10;function zP(A){if("function"!=typeof A)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof A)}function iP(A){return void 0===A._maxListeners?MP.defaultMaxListeners:A._maxListeners}function aP(A,e,t,o){var n,p,r,b;if(zP(t),void 0===(p=A._events)?(p=A._events=Object.create(null),A._eventsCount=0):(void 0!==p.newListener&&(A.emit("newListener",e,t.listener?t.listener:t),p=A._events),r=p[e]),void 0===r)r=p[e]=t,++A._eventsCount;else if("function"==typeof r?r=p[e]=o?[t,r]:[r,t]:o?r.unshift(t):r.push(t),(n=iP(A))>0&&r.length>n&&!r.warned){r.warned=!0;var M=new Error("Possible EventEmitter memory leak detected. "+r.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");M.name="MaxListenersExceededWarning",M.emitter=A,M.type=e,M.count=r.length,b=M,console&&console.warn&&console.warn(b)}return A}function OP(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function sP(A,e,t){var o={fired:!1,wrapFn:void 0,target:A,type:e,listener:t},n=OP.bind(o);return n.listener=t,o.wrapFn=n,n}function uP(A,e,t){var o=A._events;if(void 0===o)return[];var n=o[e];return void 0===n?[]:"function"==typeof n?t?[n.listener||n]:[n]:t?function(A){for(var e=new Array(A.length),t=0;t<e.length;++t)e[t]=A[t].listener||A[t];return e}(n):dP(n,n.length)}function lP(A){var e=this._events;if(void 0!==e){var t=e[A];if("function"==typeof t)return 1;if(void 0!==t)return t.length}return 0}function dP(A,e){for(var t=new Array(e),o=0;o<e;++o)t[o]=A[o];return t}function fP(A,e,t,o){if("function"==typeof A.on)o.once?A.once(e,t):A.on(e,t);else{if("function"!=typeof A.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof A);A.addEventListener(e,(function n(p){o.once&&A.removeEventListener(e,n),t(p)}))}}Object.defineProperty(MP,"defaultMaxListeners",{enumerable:!0,get:function(){return cP},set:function(A){if("number"!=typeof A||A<0||bP(A))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+A+".");cP=A}}),MP.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},MP.prototype.setMaxListeners=function(A){if("number"!=typeof A||A<0||bP(A))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+A+".");return this._maxListeners=A,this},MP.prototype.getMaxListeners=function(){return iP(this)},MP.prototype.emit=function(A){for(var e=[],t=1;t<arguments.length;t++)e.push(arguments[t]);var o="error"===A,n=this._events;if(void 0!==n)o=o&&void 0===n.error;else if(!o)return!1;if(o){var p;if(e.length>0&&(p=e[0]),p instanceof Error)throw p;var r=new Error("Unhandled error."+(p?" ("+p.message+")":""));throw r.context=p,r}var b=n[A];if(void 0===b)return!1;if("function"==typeof b)rP(b,this,e);else{var M=b.length,c=dP(b,M);for(t=0;t<M;++t)rP(c[t],this,e)}return!0},MP.prototype.addListener=function(A,e){return aP(this,A,e,!1)},MP.prototype.on=MP.prototype.addListener,MP.prototype.prependListener=function(A,e){return aP(this,A,e,!0)},MP.prototype.once=function(A,e){return zP(e),this.on(A,sP(this,A,e)),this},MP.prototype.prependOnceListener=function(A,e){return zP(e),this.prependListener(A,sP(this,A,e)),this},MP.prototype.removeListener=function(A,e){var t,o,n,p,r;if(zP(e),void 0===(o=this._events))return this;if(void 0===(t=o[A]))return this;if(t===e||t.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete o[A],o.removeListener&&this.emit("removeListener",A,t.listener||e));else if("function"!=typeof t){for(n=-1,p=t.length-1;p>=0;p--)if(t[p]===e||t[p].listener===e){r=t[p].listener,n=p;break}if(n<0)return this;0===n?t.shift():function(A,e){for(;e+1<A.length;e++)A[e]=A[e+1];A.pop()}(t,n),1===t.length&&(o[A]=t[0]),void 0!==o.removeListener&&this.emit("removeListener",A,r||e)}return this},MP.prototype.off=MP.prototype.removeListener,MP.prototype.removeAllListeners=function(A){var e,t,o;if(void 0===(t=this._events))return this;if(void 0===t.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==t[A]&&(0==--this._eventsCount?this._events=Object.create(null):delete t[A]),this;if(0===arguments.length){var n,p=Object.keys(t);for(o=0;o<p.length;++o)"removeListener"!==(n=p[o])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=t[A]))this.removeListener(A,e);else if(void 0!==e)for(o=e.length-1;o>=0;o--)this.removeListener(A,e[o]);return this},MP.prototype.listeners=function(A){return uP(this,A,!0)},MP.prototype.rawListeners=function(A){return uP(this,A,!1)},MP.listenerCount=function(A,e){return"function"==typeof A.listenerCount?A.listenerCount(e):lP.call(A,e)},MP.prototype.listenerCount=lP,MP.prototype.eventNames=function(){return this._eventsCount>0?oP(this._events):[]};var qP=new nP.exports,WP=function(A,e){var t=A.listeners,o=void 0===t?{}:t,p=A.removeListeners,r=void 0===p?{}:p,b=A.params,M=void 0===b?{}:b;return void 0===e&&(e=[]),n.exports.useLayoutEffect((function(){var A=Object.keys(o);if(null!=A&&A.length){var e={};return A.map((function(A){var t=function(){for(var e=o[A],t=arguments.length,n=new Array(t),p=0;p<t;p++)n[p]=arguments[p];return e&&e.apply(void 0,n.concat([M]))};qP.on(A,t),e[A]=t})),function(){return A.map((function(A){qP.removeListener(A,e[A]),r[A]&&r[A]()}))}}return function(){}}),e),qP},hP={exports:{}};
|
|
64
64
|
/**
|
|
65
65
|
* @license
|
|
66
66
|
* Lodash <https://lodash.com/>
|