B4BY.588
Home
Terminal
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
sportmx
/
public_html
/
wp-content
/
plugins
/
creame-whatsapp-me
/
gutenberg
/
build
/
Filename :
index.js
back
Copy
!function(){var e,t={12:function(e,t,r){"use strict";var n=r(609),a=window.wp.i18n,o=window.wp.hooks,i=window.wp.plugins,l=window.wp.editor,s=window.wp.editPost;const c={};c.joinchat=(0,n.createElement)("svg",{className:"joinchat-cta-block-icon",viewBox:"0 0 24 24"},(0,n.createElement)("path",{d:"M12 0a12 12 0 0 1 9.2 19.7 3 3 0 0 0 2 2.8 6 6 0 0 1-4.4-.6A12 12 0 1 1 12 0Z"}),(0,n.createElement)("path",{fill:"#f9603a",d:"M3.3 6.7h.1v-.1h.2l.1-.1H4v-.1h.2l.1-.1h.3v-.1H5l.2-.1h2.1l.1.1h.2l.2.1H8v.1h.4v.1h.2l.1.1h.1v.1H9v.1h.2V7h.1l.1.1.2.1v.1h.1l.1.1.1.1h.1v.1h.1v.1h.1v.1h.1v.1h.1V8h.2v.1l.1.1.1.1v.1h.1v.1h.1v.2h.1v.1h.1V9h.1v.2h.1v.2h.1v.2h.1v.2h.1v.4h.1v.3l.1.1v.4h.1v2.4h2.3a2.2 2.2 0 0 1 2.3 2.2 2.2 2.2 0 0 1-2.2 2.3h-3.9a3 3 0 0 0-1.3 5.8 12 12 0 0 1-4-1.7 6 6 0 0 1-4.3.6 3 3 0 0 0 2-2.7 12 12 0 0 1-.3-.4h-.1v-.1l-.2-.2V19l-.1-.1-.1-.1v-.1H2v-.1l-.1-.1v-.1h-.1v-.2l-.2-.1v-.2h-.1v-.1l-.1-.2v-.1h-.1v-.1l-.3-.5v-.2l-.2-.3a12 12 0 0 1-.8-4.2V12c0-.6 0-1.1.2-1.6v-.1l.1-.3.1-.1v-.1l.1-.2v-.1h.1v-.1l.1-.2V9h.1l.2-.2v-.2h.1l.1-.2.1-.1.1-.1V8h.2v-.1h.1v-.1h.1v-.1H2v-.2h.1v-.1h.1l.1-.1h.1v-.1h.1l.1-.1.1-.1h.1l.1-.1H3v-.1h.1l.1-.1h.1Z"}),(0,n.createElement)("path",{fill:"#fff",d:"M15 8a1 1 0 0 0 1.5 0 .3.3 0 0 1 .5 0 .3.3 0 0 1 0 .4 1.7 1.7 0 0 1-2.5 0 .3.3 0 0 1 .1-.6.3.3 0 0 1 .4.1Zm.2-2c.2.3.2.6 0 .8a.5.5 0 0 1-.8 0 .9.9 0 0 0-1.2 0 .5.5 0 0 1-1-.3l.2-.4a2 2 0 0 1 2.8 0Zm4 0c.1.3.1.6 0 .8a.5.5 0 0 1-.8 0 .9.9 0 0 0-1.3 0 .5.5 0 0 1-.8-.3l.1-.4a2 2 0 0 1 2.7 0Zm-9.4 5.8a.8.8 0 0 1 0 1.1 2.2 2.2 0 0 1-3.1 0 .8.8 0 1 1 1-1 .6.6 0 0 0 1 0 .8.8 0 0 1 1.1 0Zm.7-1.4a.3.3 0 1 1-.5.5.7.7 0 0 0-1 0 .3.3 0 1 1-.4-.5c.5-.6 1.3-.6 1.9 0Zm-2.6 0a.3.3 0 1 1-.5.4.6.6 0 0 0-.9 0 .3.3 0 1 1-.5-.5 1.3 1.3 0 0 1 1.9 0Z"})),c.sidebar=(0,n.createElement)("svg",{className:"joinchat-sidebar-icon",viewBox:"0 0 26 26"},(0,n.createElement)("g",{fill:"none"},(0,n.createElement)("path",{stroke:"currentColor",strokeWidth:"1.5",d:"M13 .75A12.21 12.21 0 0 1 25.25 13a12.2 12.2 0 0 1-2.85 7.86c-.18 1.33.08 2.1.51 2.73l.13.18-.2-.01a5.71 5.71 0 0 1-1.91-.55l-.25-.12c-2.75 1.38-5.12 2.16-7.68 2.16A12.21 12.21 0 0 1 .75 13 12.21 12.21 0 0 1 13 .75Z"}),(0,n.createElement)("path",{fill:"currentColor",d:"M16.27 8.58c.46.46 1.2.46 1.65 0a.37.37 0 0 1 .53.52 1.9 1.9 0 0 1-2.7 0 .37.37 0 1 1 .52-.52Zm.15-1.98a.55.55 0 0 1-.77.8l-.01-.02a.99.99 0 0 0-1.38 0h-.02a.55.55 0 1 1-.78-.78 2.1 2.1 0 0 1 2.96 0Zm4.31 0a.55.55 0 0 1-.77.8v-.02a.99.99 0 0 0-1.39 0h-.01a.55.55 0 1 1-.79-.78 2.1 2.1 0 0 1 2.96 0ZM3.6 7.2l.04-.01.06-.03.03-.02.05-.02.04-.01.03-.02h.02l.03-.02.05-.02.05-.02.04-.02.03-.01.03-.01.03-.02.05-.01.04-.02.03-.01.04-.01.02-.01.03-.01.03-.01.04-.02.06-.02.08-.02.03-.01.03-.01.05-.02h.04l.05-.02.05-.02.05-.01.05-.01.06-.02c.03 0 .05 0 .08-.02h.03l.03-.01h.03l.04-.01.03-.01h.04l.06-.02h.03a6.45 6.45 0 0 1 .22-.04h.02l.07-.01h.04l.03-.01h.03l.03-.01h.07l.03-.01h.1l.1-.02h.87a6.54 6.54 0 0 1 .23.03h.1l.06.02h.1l.03.01.05.01h.02l.06.01.04.01a6.47 6.47 0 0 1 .1.02h.03l.03.01.05.01h.02l.02.01.06.01.02.01H8l.05.02h.02l.05.02h.02l.05.02h.03l.05.02h.02a6.44 6.44 0 0 1 .15.05l.05.01.02.01h.03l.05.03.04.01.03.01h.02l.05.03h.02l.03.01.04.02.05.02.05.02.04.02.05.02h.02l.05.03.04.02h.02l.05.03h.03l.02.02a6.46 6.46 0 0 1 .1.04l.03.02.03.01.02.02.04.02.03.01.02.01.04.03.05.02.02.01.02.01.05.03.04.02.04.03.04.02.05.03.02.01.04.03.02.01c.02 0 .03.02.04.03l.04.02.05.03.04.03.04.03a6.5 6.5 0 0 1 .08.05l.04.03.04.03.02.02.02.01.04.03.04.03.04.03.04.03.04.03.04.03.04.04.01.01.02.02c.02 0 .03.02.04.03l.04.03.04.03.02.02.01.02c.02 0 .03.02.04.03l.02.02.04.03.01.02c.02 0 .03.02.04.03l.04.03.03.04.04.03.03.04.04.04.03.03.04.04.01.01.04.04.01.02.04.04.03.03.03.04.04.04.03.03.03.04.03.04.03.04.03.04.02.02.03.04.02.02.03.04.03.04.03.04.02.03.04.05.01.02.03.04.01.02.03.04.03.04.01.02.02.02.02.04.03.04.01.02.02.03.02.04.02.02.02.04.01.02.03.05.02.04.03.04.03.05.02.04.01.02.01.03.03.04.02.04.01.03.01.02.02.04.03.05.02.04.02.05.02.04.02.05.02.04.01.03.02.04.01.03.02.05.02.04.01.03v.02l.03.04.01.05.02.05.02.04.02.06.01.04.02.05.01.05.02.05v.02l.02.03.01.04.01.05.01.03v.02a6.44 6.44 0 0 1 .04.1v.04a6.45 6.45 0 0 1 .03.11l.01.05.02.06v.04a6.46 6.46 0 0 1 .03.1v.06l.02.04v.06l.01.05.01.04v.03l.01.05v.05l.02.06v.02a6.5 6.5 0 0 1 .01.12v.04l.01.05v.05a6.54 6.54 0 0 1 .02.21v1.7h2.44a2.44 2.44 0 0 1 2.44 2.4v.03a2.44 2.44 0 0 1-2.4 2.44h-.04v.03h-4.15a3.25 3.25 0 0 0-1.4 6.32l-.02.02a12.92 12.92 0 0 1-4.17-1.87 6.46 6.46 0 0 1-4.7.6 3.25 3.25 0 0 0 2.11-2.92l-.31-.39h-.01a8.39 8.39 0 0 1-.05-.07l-.02-.03a7.55 7.55 0 0 1-.04-.05l-.05-.07-.1-.12-.02-.04a6.4 6.4 0 0 1-.03-.04l-.03-.05a7.01 7.01 0 0 1-.04-.04l-.05-.08-.05-.07-.02-.02-.04-.06-.02-.04-.02-.03-.03-.05-.03-.04-.03-.04-.03-.05-.04-.06-.02-.04-.04-.05-.02-.04-.03-.05-.03-.04-.03-.06-.07-.12-.04-.07-.03-.04-.03-.05-.02-.04-.03-.06-.03-.04-.03-.06-.06-.12-.04-.07-.03-.05-.02-.05-.03-.05-.02-.05-.03-.05-.02-.05-.2-.43-.04-.08-.02-.05-.02-.05-.02-.05-.03-.05a12.9 12.9 0 0 1-.09-.23l-.03-.09-.03-.05A12.95 12.95 0 0 1 0 13.24v-.32a6.44 6.44 0 0 1 .27-1.77l-.02.08a6.44 6.44 0 0 1 .05-.16v-.01l.08-.22v-.02l.03-.06v-.02l.03-.06v-.02l.03-.07.1-.22v-.01l.03-.06v-.01l.01-.02.03-.05v-.03a.05.05 0 0 0 .03-.05l.02-.03.1-.18v-.02l.03-.05.02-.03c0-.02.02-.03.03-.05l.01-.03.03-.05.02-.03.1-.16.02-.03.03-.04.02-.04.03-.04.02-.03.03-.04.02-.03.11-.15.03-.03c0-.02.02-.03.03-.04L1.39 9l.03-.03.03-.04.03-.03.03-.04.03-.03.03-.04.04-.04.03-.04.03-.03.03-.04.02-.01.03-.04.03-.03.03-.03.04-.04.02-.03.03-.03.04-.04.04-.03.03-.04.04-.03.02-.02.02-.02.02-.02.03-.02.02-.02.03-.03.04-.03.03-.03.05-.04.04-.03.02-.02.03-.02.04-.04.03-.02.04-.03.03-.03.03-.02.03-.03.05-.03.05-.04.04-.02.04-.03.04-.03.03-.02.04-.03.03-.02s.02 0 .03-.02l.02-.01.05-.04.04-.02.05-.03.04-.02.04-.03.04-.02.03-.02a5.92 5.92 0 0 1 .08-.04l.03-.02.03-.02.05-.02.04-.03.05-.02.07-.03Z"}),(0,n.createElement)("path",{className:"joinchat-svg-chatin",fill:"#fff",d:"m8.43 12.81.01.01c.27.26.68.27.95.02l.01-.02a.86.86 0 0 1 1.22 1.22 2.4 2.4 0 0 1-3.4 0 .86.86 0 0 1 1.21-1.23Zm2.94-1.57a.37.37 0 0 1-.52.54v-.01a.74.74 0 0 0-1.04-.02l-.01.02a.37.37 0 0 1-.52-.53 1.48 1.48 0 0 1 2.09 0Zm-2.85-.03a.37.37 0 0 1-.51.53H8a.68.68 0 0 0-.95-.02l-.01.02a.37.37 0 0 1-.52-.53 1.42 1.42 0 0 1 2 0Z"})));var u=c,d=window.wp.blocks,f=r(942),p=r.n(f),h=window.wp.element,m=window.wp.components,b=window.wp.blockEditor,y=window.wp.data,g=r(372),v=r.n(g);function C(e){if(!e)return;if("string"!=typeof e)return e;const t=e.match(/^var:preset\|([^|]+)\|(.+)$/);if(t){const[,e,r]=t;return`var(--wp--preset--${e}--${r})`}return e}var _=[{attributes:{cta:{type:"string",source:"html",selector:".joinchat-button__link>span",default:"<strong>Open Chat</strong>"},backgroundColor:{type:"string"},textColor:{type:"string",default:"#ffffff"},phone:{type:"string"},message:{type:"string"},qr_code:{type:"string",enum:["both","only","no"],default:"both"},style:{type:"object",default:{color:{background:"#25d366"},border:{width:"6px",style:"solid",color:"#25d366",radius:"30px"}}}},isEligible(e,t){return!(t&&t.length>0)&&!(e.backgroundColor||e.borderColor||e.style?.border?.radius&&"object"==typeof e.style.border.radius||e.style?.spacing?.padding||e.style?.spacing?.margin||e.layout||e.qrBorderStyles)},migrate(e){const{cta:t,phone:r,message:n,qr_code:a}=e,o={text:t||"<strong>Open Chat</strong>",url:""};if(!(e.backgroundColor||e.borderColor||e.style?.border?.radius&&"object"==typeof e.style.border.radius||e.style?.spacing?.padding||e.style?.spacing?.margin)){const t=e.style;t?.color?.background&&(o.style=o.style||{},o.style.color=o.style.color||{},o.style.color.background=t.color.background),t?.color?.text&&(o.style=o.style||{},o.style.color=o.style.color||{},o.style.color.text=t.color.text),t?.border&&(o.style=o.style||{},o.style.border={width:t.border.width||"6px",style:t.border.style||"solid",color:t.border.color||"#25d366",radius:"string"==typeof t.border.radius?t.border.radius:"30px"})}return[{phone:r||"",message:n||"",qr_code:a||"both",layout:{type:"flex",justifyContent:"center",orientation:"vertical"},qrBorderStyles:{width:"6px",radius:"30px",color:"#25d366",colorSlug:""}},[(0,d.createBlock)("core/button",o)]]},save({attributes:e}){const{phone:t,message:r}=e,o=e.cta||"<strong>Open Chat</strong>",i=e.qr_code||"both",l=e.style||{color:{background:"#25d366"},border:{width:"6px",style:"solid",color:"#25d366",radius:"30px"}},s=e.textColor||"#ffffff",c=e.backgroundColor,u=e.borderColor,d={...e,style:l,textColor:s,backgroundColor:c,borderColor:u},f=function(e){const{style:t,borderColor:r}=e,n={},a=[];(r||t?.border?.color||t?.border?.width)&&a.push("has-border-color"),r?a.push(`has-${r}-border-color`):t?.border?.color&&(n.borderColor=t.border.color),t?.border?.style&&(n.borderStyle=t.border.style),t?.border?.width&&(n.borderWidth=t.border.width);const o=t?.border?.radius;return null!=o&&("object"==typeof o?(o.topLeft&&(n.borderTopLeftRadius=o.topLeft),o.topRight&&(n.borderTopRightRadius=o.topRight),o.bottomLeft&&(n.borderBottomLeftRadius=o.bottomLeft),o.bottomRight&&(n.borderBottomRightRadius=o.bottomRight)):n.borderRadius=o),{className:a.join(" ")||void 0,style:n}}(d),h=function(e){const{style:t,backgroundColor:r,textColor:n}=e,a={},o=[];if(n){const e=n.startsWith("#")?n.substring(1):n;o.push(`has-${e}-color`)}else t?.color?.text&&(a.color=t.color.text);return r?o.push(`has-${r}-background-color`):t?.color?.background&&(a.backgroundColor=t.color.background),(n||t?.color?.text)&&o.push("has-text-color"),(r||t?.color?.background)&&o.push("has-background"),t?.color?.gradient&&(a.background=t.color.gradient,o.includes("has-background")||o.push("has-background")),{className:o.join(" ")||void 0,style:Object.keys(a).length>0?a:void 0}}(d),m=function(e){const{style:t}=e,r={},n=e=>{if(!e)return;if("string"!=typeof e)return e;const t=e.match(/^var:preset\|([^|]+)\|(.+)$/);if(t){const[,e,r]=t;return`var(--wp--preset--${e}--${r})`}return e};if(t?.spacing?.padding){const e=t.spacing.padding;"object"==typeof e?(e.top&&(r.paddingTop=n(e.top)),e.right&&(r.paddingRight=n(e.right)),e.bottom&&(r.paddingBottom=n(e.bottom)),e.left&&(r.paddingLeft=n(e.left))):r.padding=n(e)}if(t?.spacing?.margin){const e=t.spacing.margin;"object"==typeof e?(e.top&&(r.marginTop=n(e.top)),e.right&&(r.marginRight=n(e.right)),e.bottom&&(r.marginBottom=n(e.bottom)),e.left&&(r.marginLeft=n(e.left))):r.margin=n(e)}return{className:void 0,style:Object.keys(r).length>0?r:void 0}}(d),y=p()("wp-block-joinchat-button",{[`joinchat-button--qr-${i}`]:"no"!=i},f.className),g={};f.style&&(f.style.borderColor&&(g.borderColor=f.style.borderColor),f.style.borderStyle&&(g.borderStyle=f.style.borderStyle),f.style.borderWidth&&(g.borderWidth=f.style.borderWidth),f.style.borderRadius&&(g.borderRadius=f.style.borderRadius),f.style.borderTopLeftRadius&&(g.borderTopLeftRadius=f.style.borderTopLeftRadius),f.style.borderTopRightRadius&&(g.borderTopRightRadius=f.style.borderTopRightRadius),f.style.borderBottomLeftRadius&&(g.borderBottomLeftRadius=f.style.borderBottomLeftRadius),f.style.borderBottomRightRadius&&(g.borderBottomRightRadius=f.style.borderBottomRightRadius)),m.style&&Object.assign(g,m.style);const v={};f.style&&(f.style.borderColor&&(v.borderColor=f.style.borderColor),f.style.borderStyle&&(v.borderStyle=f.style.borderStyle),f.style.borderWidth&&(v.borderWidth=f.style.borderWidth),f.style.borderRadius&&(v.borderRadius=f.style.borderRadius),f.style.borderTopLeftRadius&&(v.borderTopLeftRadius=f.style.borderTopLeftRadius),f.style.borderTopRightRadius&&(v.borderTopRightRadius=f.style.borderTopRightRadius),f.style.borderBottomLeftRadius&&(v.borderBottomLeftRadius=f.style.borderBottomLeftRadius),f.style.borderBottomRightRadius&&(v.borderBottomRightRadius=f.style.borderBottomRightRadius)),h.style&&(h.style.backgroundColor&&(v.backgroundColor=h.style.backgroundColor),h.style.color&&(v.color=h.style.color),h.style.background&&(v.background=h.style.background)),m.style&&Object.assign(v,m.style);const C=(0,n.createElement)(n.Fragment,null,"no"!=i&&(0,n.createElement)("figure",null,(0,n.createElement)("figcaption",null,(0,a.__)("Scan the code","creame-whatsapp-me")),(0,n.createElement)("a",{className:p()("joinchat-button__qr",f.className,{"no-border-radius":0===l?.border?.radius}),style:f.style,href:"#whatsapp","data-message":r,"data-phone":t?.length>6?t:void 0})));return(0,n.createElement)("div",{className:y,style:g},C,(0,n.createElement)("a",{className:p()("wp-block-button__link","joinchat-button__link",h.className,f.className,{"no-border-radius":0===l?.border?.radius}),style:v,href:"#whatsapp","data-message":r,"data-phone":t?.length>6?t:void 0},(0,n.createElement)(b.RichText.Content,{tagName:"span",value:o||""})))}}],w=JSON.parse('{"UU":"joinchat/button"}');(0,d.registerBlockType)(w.UU,{icon:{src:u.joinchat},edit:function(e){const{attributes:t,setAttributes:r,clientId:o}=e,{phone:i,message:l,qr_code:s,layout:c={},style:u}=t,{postType:d}=(0,y.useSelect)(e=>({postType:e("core/editor").getPostTypeLabel()}),[]),{postMeta:f}=(0,y.useSelect)(e=>({postMeta:e("core/editor").getEditedPostAttribute("meta")}),[]),{innerBlocks:g}=(0,y.useSelect)(e=>({innerBlocks:e("core/block-editor").getBlocks(o)}),[o]),_=(0,h.useRef)(),w=(0,b.useBlockProps)({ref:_}),S=C(u?.spacing?.blockGap)||"10px",j=g?.[0]?.attributes||{},x=j.style?.border||{},E=x.width||"6px",k=x.color||"#25d366";let N=x.radius||"30px";"object"==typeof N&&(N=N.topLeft||N.top||"30px");const O=j.borderColor,T=k,R={borderWidth:E,borderRadius:N,borderStyle:"solid",...T&&!O&&{borderColor:T}},I=p()("joinchat-button__qr",{[`has-${O}-border-color`]:O,"has-border-color":O});(0,h.useEffect)(()=>{const e={width:E,radius:N,color:T,colorSlug:O||""},n=t.qrBorderStyles||{};n.width===e.width&&n.radius===e.radius&&n.color===e.color&&n.colorSlug===e.colorSlug||r({qrBorderStyles:e})},[E,N,T,O,t.qrBorderStyles,r]),(0,h.useEffect)(()=>{if(g?.[0]&&""!==g[0].attributes.url){const{updateBlockAttributes:e}=wp.data.dispatch("core/block-editor");e(g[0].clientId,{url:"",linkTarget:void 0})}},[g]);const P=joinchatData.defaults,D=JSON.parse(localStorage.getItem("joinchat_country_code")||"{}"),A=D.code&&D.date===(new Date).toDateString()?D.code.toLowerCase():"us",B=f?._joinchat?.telephone||P.telephone||(0,a.__)("set your phone","creame-whatsapp-me"),L=f?._joinchat?.message_send||P?.message_send||"",M=[["core/button",{text:(0,a.__)("Open Chat","creame-whatsapp-me"),url:"",style:{color:{background:"#25d366",text:"#fff"},border:{radius:"30px",width:"6px",color:"#25d366"}}}]],F=c?.justifyContent||"left",$=c?.orientation||"vertical",z=(0,b.useInnerBlocksProps)({},{template:M,templateLock:"all",allowedBlocks:["core/button"],orientation:$});return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(b.BlockControls,null,(0,n.createElement)(b.JustifyContentControl,{value:F,onChange:e=>{r({layout:{...c,justifyContent:e}})},allowedControls:["left","center","right","space-between"],isCollapsed:!1})),(0,n.createElement)("div",{...w,className:p()(w.className,{[`joinchat-button--qr-${s}`]:"no"!=s,[`is-content-justification-${F}`]:F,"is-vertical":"vertical"===$}),style:{...w.style,gap:S}},"no"!=s&&(0,n.createElement)("figure",null,(0,n.createElement)("figcaption",null,(0,a.__)("Scan the code","creame-whatsapp-me")),(0,n.createElement)("span",{className:I,style:R},(0,n.createElement)("img",{src:joinchatData.image_qr,alt:(0,a.__)("QR Code","creame-whatsapp-me"),width:"200",height:"200"}))),(0,n.createElement)("div",{...z})),(0,n.createElement)(b.InspectorControls,null,(0,n.createElement)(m.PanelBody,{title:(0,a.__)("Contact","creame-whatsapp-me"),initialOpen:!0},(0,n.createElement)("p",null,(0,a.sprintf)((0,a.__)("Leave blank to use the %s or global Joinchat settings.","creame-whatsapp-me"),d?.toLowerCase()||"post")),(0,n.createElement)("fieldset",null,(0,n.createElement)("div",{className:"components-base-control"},(0,n.createElement)("div",{className:"components-base-control__field"},(0,n.createElement)("label",{className:"components-base-control__label",style:{display:"inline-block",marginBottom:"8px"}},(0,a.__)("Telephone","creame-whatsapp-me")),(0,n.createElement)(v(),{preferredCountries:[A],enableSearch:!0,disableSearchIcon:!0,searchPlaceholder:(0,a.__)("search","creame-whatsapp-me"),searchNotFound:(0,a.__)("nothing found","creame-whatsapp-me"),placeholder:B,value:i,onChange:e=>{r({phone:e})},isValid:e=>0===e.length||e.length>6})))),(0,n.createElement)("fieldset",null,(0,n.createElement)(m.TextareaControl,{value:l,label:(0,a.__)("Message","creame-whatsapp-me"),help:(0,n.createElement)("span",{dangerouslySetInnerHTML:{__html:(0,a.__)("Can use vars","creame-whatsapp-me")+" <code>{"+joinchatData.message_vars.join("}</code> <code>{")+"}</code> "+(0,a.__)("to leave it blank use","creame-whatsapp-me")+" <code>{}</code>"}}),placeholder:L,onChange:e=>r({message:e}),__nextHasNoMarginBottom:!0}))),(0,n.createElement)(m.PanelBody,{title:(0,a.__)("QR Code (on desktop)","creame-whatsapp-me"),initialOpen:!1},(0,n.createElement)("fieldset",null,(0,n.createElement)(m.RadioControl,{selected:s,options:[{value:"both",label:(0,a.__)("QR and Button","creame-whatsapp-me")},{value:"only",label:(0,a.__)("QR only","creame-whatsapp-me")},{value:"no",label:(0,a.__)("Button only","creame-whatsapp-me")}],help:(0,a.__)("On mobile always show button","creame-whatsapp-me"),onChange:e=>r({qr_code:e})})))))},save:function({attributes:e}){const{phone:t,message:r,qr_code:o,layout:i={},style:l,qrBorderStyles:s={width:"6px",radius:"30px",color:"#25d366",colorSlug:""}}=e,c=i?.justifyContent||"left",u=i?.orientation||"vertical",d=C(l?.spacing?.blockGap)||"10px",f=b.useBlockProps.save(),h=p()("joinchat-button__qr",{[`has-${s.colorSlug}-border-color`]:s.colorSlug,"has-border-color":s.colorSlug}),m={borderWidth:s.width,borderRadius:s.radius,borderStyle:"solid",...!s.colorSlug&&{borderColor:s.color}};return(0,n.createElement)("div",{...f,className:p()(f.className,{[`joinchat-button--qr-${o}`]:"no"!=o,[`is-content-justification-${c}`]:c,"is-vertical":"vertical"===u}),style:{...f.style,...d&&{gap:d}}},"no"!=o&&(0,n.createElement)("figure",null,(0,n.createElement)("figcaption",null,(0,a.__)("Scan the code","creame-whatsapp-me")),(0,n.createElement)("a",{className:h,href:"#whatsapp",style:m})),(0,n.createElement)(b.InnerBlocks.Content,null))},deprecated:_});const S=()=>{const{postType:e}=(0,y.useSelect)(e=>({postType:e("core/editor").getPostTypeLabel()})),{postMeta:t}=(0,y.useSelect)(e=>({postMeta:e("core/editor").getEditedPostAttribute("meta")})),{editPost:r}=(0,y.useDispatch)("core/editor"),o=t?._joinchat||{},i=joinchatData.defaults,l=JSON.parse(localStorage.getItem("joinchat_country_code")||"{}"),s=l.code&&l.date===(new Date).toDateString()?l.code.toLowerCase():"us",c=!!o.telephone,u="no"===o.view?"hidden":"visibility",d=!o.view||""===o.view,f=e=>{const t=Object.fromEntries(Object.entries({...o,...e}).filter(([,e])=>""!==e&&null!=e));r({meta:{_joinchat:t}})},h=(0,m.withFilters)("JoinChat.PremiumSettings")(e=>(0,n.createElement)(n.Fragment,null));return(0,n.createElement)(n.Fragment,null,(0,n.createElement)(m.SlotFillProvider,null,(0,n.createElement)(h,null),(0,n.createElement)(m.Slot,{name:"beforeSidebarJoinchat"}),(0,n.createElement)(m.PanelBody,null,(0,n.createElement)("p",null,(0,a.sprintf)((0,a.__)("Custom Joinchat settings for this publication (%s).","creame-whatsapp-me"),e?.toLowerCase()||"post")),(0,n.createElement)(m.TextareaControl,{label:(0,a.__)("Call to Action","creame-whatsapp-me"),value:o.message_text,placeholder:i.message_text,onChange:e=>{f({message_text:e})},__nextHasNoMarginBottom:!0}),(0,n.createElement)(m.TextareaControl,{label:(0,a.__)("Message","creame-whatsapp-me"),value:o.message_send,placeholder:i.message_send,help:(0,n.createElement)("span",{dangerouslySetInnerHTML:{__html:(0,a.__)("Can use vars","creame-whatsapp-me")+" <code>{"+joinchatData.message_vars.join("}</code> <code>{")+"}</code> "+(0,a.__)("to leave it blank use","creame-whatsapp-me")+" <code>{}</code>"}}),onChange:e=>{f({message_send:e})},__nextHasNoMarginBottom:!0})),(0,n.createElement)(m.PanelBody,{title:(0,a.__)("Telephone","creame-whatsapp-me"),initialOpen:c},(0,n.createElement)(v(),{preferredCountries:[s],enableSearch:!0,disableSearchIcon:!0,searchPlaceholder:(0,a.__)("search","creame-whatsapp-me"),searchNotFound:(0,a.__)("nothing found","creame-whatsapp-me"),placeholder:i.telephone||(0,a.__)("set your phone","creame-whatsapp-me"),value:o.telephone,onChange:e=>{f({telephone:e.length>6?e:""})},isValid:e=>0===e.length||e.length>6})),(0,n.createElement)(m.PanelBody,{title:(0,a.__)("Visibility","creame-whatsapp-me"),icon:u,initialOpen:!1,className:p()("joinchat-sidebar-visibility",{"joinchat-sidebar-visibility--default":d})},(0,n.createElement)(m.RadioControl,{label:(0,a.__)("Visibility","creame-whatsapp-me"),hideLabelFromVision:!0,selected:o.view||"",options:[{value:"yes",label:(0,a.__)("Show","creame-whatsapp-me")},{value:"no",label:(0,a.__)("Hide","creame-whatsapp-me")},{value:"",label:(0,a.__)("Default visibility","creame-whatsapp-me")}],onChange:e=>{f({view:e})}})),(0,n.createElement)(m.Slot,{name:"afterSidebarJoinchat"})))},j=l.PluginSidebar||s.PluginSidebar,x=l.PluginSidebarMoreMenuItem||s.PluginSidebarMoreMenuItem,E=JSON.parse(localStorage.getItem("joinchat_country_code")||"{}");if(!E.code||E.date!==(new Date).toDateString()){const e=e=>{localStorage.setItem("joinchat_country_code",JSON.stringify({code:e||"US",date:(new Date).toDateString()}))};fetch("https://ipinfo.io/json").then(e=>e.ok?e.json():null).then(t=>e(t?.country)).catch(()=>e("US"))}(0,o.applyFilters)("joinchat_gutenberg_sidebar",!0)&&(0,i.registerPlugin)("joinchat",{icon:u.sidebar,render:()=>(0,n.createElement)(n.Fragment,null,(0,n.createElement)(x,{target:"joinchat-sidebar"},(0,a.__)("Joinchat","creame-whatsapp-me")),(0,n.createElement)(j,{name:"joinchat-sidebar",title:(0,a.__)("Joinchat","creame-whatsapp-me")},(0,n.createElement)(S,null)))})},372:function(e,t,r){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=9)}([function(e,t){e.exports=r(609)},function(e,t,r){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)&&n.length){var i=a.apply(null,n);i&&e.push(i)}else if("object"===o)for(var l in n)r.call(n,l)&&n[l]&&e.push(l)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},function(e,t,r){(function(t){var r=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,i=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,s="object"==typeof self&&self&&self.Object===Object&&self,c=l||s||Function("return this")(),u=Object.prototype.toString,d=c.Symbol,f=d?d.prototype:void 0,p=f?f.toString:void 0;function h(e){if("string"==typeof e)return e;if(b(e))return p?p.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}function y(e){return e?(e=function(e){if("number"==typeof e)return e;if(b(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var l=a.test(e);return l||o.test(e)?i(e.slice(2),l?2:8):n.test(e)?NaN:+e}(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}e.exports=function(e,t,r){var n,a,o;return e=null==(n=e)?"":h(n),a=function(e){var t=y(e),r=t%1;return t==t?r?t-r:t:0}(r),o=e.length,a==a&&(void 0!==o&&(a=a<=o?a:o),a=a>=0?a:0),r=a,t=h(t),e.slice(r,r+t.length)==t}}).call(this,r(3))},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){(function(t){var r,n=/^\[object .+?Constructor\]$/,a="object"==typeof t&&t&&t.Object===Object&&t,o="object"==typeof self&&self&&self.Object===Object&&self,i=a||o||Function("return this")(),l=Array.prototype,s=Function.prototype,c=Object.prototype,u=i["__core-js_shared__"],d=(r=/[^.]+$/.exec(u&&u.keys&&u.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",f=s.toString,p=c.hasOwnProperty,h=c.toString,m=RegExp("^"+f.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),b=l.splice,y=x(i,"Map"),g=x(Object,"create");function v(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function C(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function _(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function w(e,t){for(var r,n,a=e.length;a--;)if((r=e[a][0])===(n=t)||r!=r&&n!=n)return a;return-1}function S(e){return!(!k(e)||(t=e,d&&d in t))&&(function(e){var t=k(e)?h.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?m:n).test(function(e){if(null!=e){try{return f.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function j(e,t){var r,n,a=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?a["string"==typeof t?"string":"hash"]:a.map}function x(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return S(r)?r:void 0}function E(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var i=e.apply(this,n);return r.cache=o.set(a,i),i};return r.cache=new(E.Cache||_),r}function k(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}v.prototype.clear=function(){this.__data__=g?g(null):{}},v.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},v.prototype.get=function(e){var t=this.__data__;if(g){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return p.call(t,e)?t[e]:void 0},v.prototype.has=function(e){var t=this.__data__;return g?void 0!==t[e]:p.call(t,e)},v.prototype.set=function(e,t){return this.__data__[e]=g&&void 0===t?"__lodash_hash_undefined__":t,this},C.prototype.clear=function(){this.__data__=[]},C.prototype.delete=function(e){var t=this.__data__,r=w(t,e);return!(r<0||(r==t.length-1?t.pop():b.call(t,r,1),0))},C.prototype.get=function(e){var t=this.__data__,r=w(t,e);return r<0?void 0:t[r][1]},C.prototype.has=function(e){return w(this.__data__,e)>-1},C.prototype.set=function(e,t){var r=this.__data__,n=w(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},_.prototype.clear=function(){this.__data__={hash:new v,map:new(y||C),string:new v}},_.prototype.delete=function(e){return j(this,e).delete(e)},_.prototype.get=function(e){return j(this,e).get(e)},_.prototype.has=function(e){return j(this,e).has(e)},_.prototype.set=function(e,t){return j(this,e).set(e,t),this},E.Cache=_,e.exports=E}).call(this,r(3))},function(e,t,r){(function(t){var r=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,i=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,s="object"==typeof self&&self&&self.Object===Object&&self,c=l||s||Function("return this")(),u=Object.prototype.toString,d=Math.max,f=Math.min,p=function(){return c.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(h(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=h(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var l=a.test(e);return l||o.test(e)?i(e.slice(2),l?2:8):n.test(e)?NaN:+e}e.exports=function(e,t,r){var n,a,o,i,l,s,c=0,u=!1,b=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var r=n,o=a;return n=a=void 0,c=t,i=e.apply(o,r)}function v(e){var r=e-s;return void 0===s||r>=t||r<0||b&&e-c>=o}function C(){var e=p();if(v(e))return _(e);l=setTimeout(C,function(e){var r=t-(e-s);return b?f(r,o-(e-c)):r}(e))}function _(e){return l=void 0,y&&n?g(e):(n=a=void 0,i)}function w(){var e=p(),r=v(e);if(n=arguments,a=this,s=e,r){if(void 0===l)return function(e){return c=e,l=setTimeout(C,t),u?g(e):i}(s);if(b)return l=setTimeout(C,t),g(s)}return void 0===l&&(l=setTimeout(C,t)),i}return t=m(t)||0,h(r)&&(u=!!r.leading,o=(b="maxWait"in r)?d(m(r.maxWait)||0,t):o,y="trailing"in r?!!r.trailing:y),w.cancel=function(){void 0!==l&&clearTimeout(l),c=0,n=s=a=l=void 0},w.flush=function(){return void 0===l?i:_(p())},w}}).call(this,r(3))},function(e,t,r){(function(e,r){var n="[object Arguments]",a="[object Map]",o="[object Object]",i="[object Set]",l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/,c=/^\./,u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,d=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,p=/^(?:0|[1-9]\d*)$/,h={};h["[object Float32Array]"]=h["[object Float64Array]"]=h["[object Int8Array]"]=h["[object Int16Array]"]=h["[object Int32Array]"]=h["[object Uint8Array]"]=h["[object Uint8ClampedArray]"]=h["[object Uint16Array]"]=h["[object Uint32Array]"]=!0,h[n]=h["[object Array]"]=h["[object ArrayBuffer]"]=h["[object Boolean]"]=h["[object DataView]"]=h["[object Date]"]=h["[object Error]"]=h["[object Function]"]=h[a]=h["[object Number]"]=h[o]=h["[object RegExp]"]=h[i]=h["[object String]"]=h["[object WeakMap]"]=!1;var m="object"==typeof e&&e&&e.Object===Object&&e,b="object"==typeof self&&self&&self.Object===Object&&self,y=m||b||Function("return this")(),g=t&&!t.nodeType&&t,v=g&&"object"==typeof r&&r&&!r.nodeType&&r,C=v&&v.exports===g&&m.process,_=function(){try{return C&&C.binding("util")}catch(e){}}(),w=_&&_.isTypedArray;function S(e,t,r,n){var a=-1,o=e?e.length:0;for(n&&o&&(r=e[++a]);++a<o;)r=t(r,e[a],a,e);return r}function j(e,t){for(var r=-1,n=e?e.length:0;++r<n;)if(t(e[r],r,e))return!0;return!1}function x(e,t,r,n,a){return a(e,function(e,a,o){r=n?(n=!1,e):t(r,e,a,o)}),r}function E(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function k(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function N(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var O,T,R,I=Array.prototype,P=Function.prototype,D=Object.prototype,A=y["__core-js_shared__"],B=(O=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+O:"",L=P.toString,M=D.hasOwnProperty,F=D.toString,$=RegExp("^"+L.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),z=y.Symbol,q=y.Uint8Array,V=D.propertyIsEnumerable,G=I.splice,H=(T=Object.keys,R=Object,function(e){return T(R(e))}),U=_e(y,"DataView"),J=_e(y,"Map"),W=_e(y,"Promise"),Z=_e(y,"Set"),K=_e(y,"WeakMap"),Q=_e(Object,"create"),Y=Oe(U),X=Oe(J),ee=Oe(W),te=Oe(Z),re=Oe(K),ne=z?z.prototype:void 0,ae=ne?ne.valueOf:void 0,oe=ne?ne.toString:void 0;function ie(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function le(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function se(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ce(e){var t=-1,r=e?e.length:0;for(this.__data__=new se;++t<r;)this.add(e[t])}function ue(e){this.__data__=new le(e)}function de(e,t){for(var r=e.length;r--;)if(Re(e[r][0],t))return r;return-1}ie.prototype.clear=function(){this.__data__=Q?Q(null):{}},ie.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},ie.prototype.get=function(e){var t=this.__data__;if(Q){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return M.call(t,e)?t[e]:void 0},ie.prototype.has=function(e){var t=this.__data__;return Q?void 0!==t[e]:M.call(t,e)},ie.prototype.set=function(e,t){return this.__data__[e]=Q&&void 0===t?"__lodash_hash_undefined__":t,this},le.prototype.clear=function(){this.__data__=[]},le.prototype.delete=function(e){var t=this.__data__,r=de(t,e);return!(r<0||(r==t.length-1?t.pop():G.call(t,r,1),0))},le.prototype.get=function(e){var t=this.__data__,r=de(t,e);return r<0?void 0:t[r][1]},le.prototype.has=function(e){return de(this.__data__,e)>-1},le.prototype.set=function(e,t){var r=this.__data__,n=de(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},se.prototype.clear=function(){this.__data__={hash:new ie,map:new(J||le),string:new ie}},se.prototype.delete=function(e){return Ce(this,e).delete(e)},se.prototype.get=function(e){return Ce(this,e).get(e)},se.prototype.has=function(e){return Ce(this,e).has(e)},se.prototype.set=function(e,t){return Ce(this,e).set(e,t),this},ce.prototype.add=ce.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ce.prototype.has=function(e){return this.__data__.has(e)},ue.prototype.clear=function(){this.__data__=new le},ue.prototype.delete=function(e){return this.__data__.delete(e)},ue.prototype.get=function(e){return this.__data__.get(e)},ue.prototype.has=function(e){return this.__data__.has(e)},ue.prototype.set=function(e,t){var r=this.__data__;if(r instanceof le){var n=r.__data__;if(!J||n.length<199)return n.push([e,t]),this;r=this.__data__=new se(n)}return r.set(e,t),this};var fe,pe=(fe=function(e,t){return e&&he(e,t,ze)},function(e,t){if(null==e)return e;if(!De(e))return fe(e,t);for(var r=e.length,n=-1,a=Object(e);++n<r&&!1!==t(a[n],n,a););return e}),he=function(e,t,r){for(var n=-1,a=Object(e),o=r(e),i=o.length;i--;){var l=o[++n];if(!1===t(a[l],l,a))break}return e};function me(e,t){for(var r=0,n=(t=je(t,e)?[t]:ge(t)).length;null!=e&&r<n;)e=e[Ne(t[r++])];return r&&r==n?e:void 0}function be(e,t){return null!=e&&t in Object(e)}function ye(e,t,r,l,s){return e===t||(null==e||null==t||!Le(e)&&!Me(t)?e!=e&&t!=t:function(e,t,r,l,s,c){var u=Pe(e),d=Pe(t),f="[object Array]",p="[object Array]";u||(f=(f=we(e))==n?o:f),d||(p=(p=we(t))==n?o:p);var h=f==o&&!E(e),m=p==o&&!E(t),b=f==p;if(b&&!h)return c||(c=new ue),u||$e(e)?ve(e,t,r,l,s,c):function(e,t,r,n,o,l,s){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!n(new q(e),new q(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Re(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case a:var c=k;case i:var u=2&l;if(c||(c=N),e.size!=t.size&&!u)return!1;var d=s.get(e);if(d)return d==t;l|=1,s.set(e,t);var f=ve(c(e),c(t),n,o,l,s);return s.delete(e),f;case"[object Symbol]":if(ae)return ae.call(e)==ae.call(t)}return!1}(e,t,f,r,l,s,c);if(!(2&s)){var y=h&&M.call(e,"__wrapped__"),g=m&&M.call(t,"__wrapped__");if(y||g){var v=y?e.value():e,C=g?t.value():t;return c||(c=new ue),r(v,C,l,s,c)}}return!!b&&(c||(c=new ue),function(e,t,r,n,a,o){var i=2&a,l=ze(e),s=l.length;if(s!=ze(t).length&&!i)return!1;for(var c=s;c--;){var u=l[c];if(!(i?u in t:M.call(t,u)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var f=!0;o.set(e,t),o.set(t,e);for(var p=i;++c<s;){var h=e[u=l[c]],m=t[u];if(n)var b=i?n(m,h,u,t,e,o):n(h,m,u,e,t,o);if(!(void 0===b?h===m||r(h,m,n,a,o):b)){f=!1;break}p||(p="constructor"==u)}if(f&&!p){var y=e.constructor,g=t.constructor;y==g||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof g&&g instanceof g||(f=!1)}return o.delete(e),o.delete(t),f}(e,t,r,l,s,c))}(e,t,ye,r,l,s))}function ge(e){return Pe(e)?e:ke(e)}function ve(e,t,r,n,a,o){var i=2&a,l=e.length,s=t.length;if(l!=s&&!(i&&s>l))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var u=-1,d=!0,f=1&a?new ce:void 0;for(o.set(e,t),o.set(t,e);++u<l;){var p=e[u],h=t[u];if(n)var m=i?n(h,p,u,t,e,o):n(p,h,u,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!j(t,function(e,t){if(!f.has(t)&&(p===e||r(p,e,n,a,o)))return f.add(t)})){d=!1;break}}else if(p!==h&&!r(p,h,n,a,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function Ce(e,t){var r,n,a=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?a["string"==typeof t?"string":"hash"]:a.map}function _e(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Le(e)||function(e){return!!B&&B in e}(e))&&(Ae(e)||E(e)?$:f).test(Oe(e))}(r)?r:void 0}var we=function(e){return F.call(e)};function Se(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||p.test(e))&&e>-1&&e%1==0&&e<t}function je(e,t){if(Pe(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!Fe(e))||s.test(e)||!l.test(e)||null!=t&&e in Object(t)}function xe(e){return e==e&&!Le(e)}function Ee(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}(U&&"[object DataView]"!=we(new U(new ArrayBuffer(1)))||J&&we(new J)!=a||W&&"[object Promise]"!=we(W.resolve())||Z&&we(new Z)!=i||K&&"[object WeakMap]"!=we(new K))&&(we=function(e){var t=F.call(e),r=t==o?e.constructor:void 0,n=r?Oe(r):void 0;if(n)switch(n){case Y:return"[object DataView]";case X:return a;case ee:return"[object Promise]";case te:return i;case re:return"[object WeakMap]"}return t});var ke=Te(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(Fe(e))return oe?oe.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return c.test(e)&&r.push(""),e.replace(u,function(e,t,n,a){r.push(n?a.replace(d,"$1"):t||e)}),r});function Ne(e){if("string"==typeof e||Fe(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Oe(e){if(null!=e){try{return L.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Te(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var i=e.apply(this,n);return r.cache=o.set(a,i),i};return r.cache=new(Te.Cache||se),r}function Re(e,t){return e===t||e!=e&&t!=t}function Ie(e){return function(e){return Me(e)&&De(e)}(e)&&M.call(e,"callee")&&(!V.call(e,"callee")||F.call(e)==n)}Te.Cache=se;var Pe=Array.isArray;function De(e){return null!=e&&Be(e.length)&&!Ae(e)}function Ae(e){var t=Le(e)?F.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function Be(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Le(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Me(e){return!!e&&"object"==typeof e}function Fe(e){return"symbol"==typeof e||Me(e)&&"[object Symbol]"==F.call(e)}var $e=w?function(e){return function(t){return e(t)}}(w):function(e){return Me(e)&&Be(e.length)&&!!h[F.call(e)]};function ze(e){return De(e)?function(e){var t=Pe(e)||Ie(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],r=t.length,n=!!r;for(var a in e)!M.call(e,a)||n&&("length"==a||Se(a,r))||t.push(a);return t}(e):function(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||D))return H(e);var t,r,n=[];for(var a in Object(e))M.call(e,a)&&"constructor"!=a&&n.push(a);return n}(e)}function qe(e){return e}r.exports=function(e,t,r){var n=Pe(e)?S:x,a=arguments.length<3;return n(e,function(e){return"function"==typeof e?e:null==e?qe:"object"==typeof e?Pe(e)?function(e,t){return je(e)&&xe(t)?Ee(Ne(e),t):function(r){var n=function(e,t){var r=null==e?void 0:me(e,t);return void 0===r?void 0:r}(r,e);return void 0===n&&n===t?function(e,t){return null!=e&&function(e,t,r){for(var n,a=-1,o=(t=je(t,e)?[t]:ge(t)).length;++a<o;){var i=Ne(t[a]);if(!(n=null!=e&&r(e,i)))break;e=e[i]}return n||!!(o=e?e.length:0)&&Be(o)&&Se(i,o)&&(Pe(e)||Ie(e))}(e,t,be)}(r,e):ye(t,n,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){for(var t=ze(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,xe(a)]}return t}(e);return 1==t.length&&t[0][2]?Ee(t[0][0],t[0][1]):function(r){return r===e||function(e,t,r){var n=r.length,a=n;if(null==e)return!a;for(e=Object(e);n--;){var o=r[n];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++n<a;){var i=(o=r[n])[0],l=e[i],s=o[1];if(o[2]){if(void 0===l&&!(i in e))return!1}else if(!ye(s,l,void 0,3,new ue))return!1}return!0}(r,0,t)}}(e):je(t=e)?(r=Ne(t),function(e){return null==e?void 0:e[r]}):function(e){return function(t){return me(t,e)}}(t);var t,r}(t),r,a,pe)}}).call(this,r(3),r(7)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){String.prototype.padEnd||(String.prototype.padEnd=function(e,t){return e>>=0,t=String(void 0!==t?t:" "),this.length>e?String(this):((e-=this.length)>t.length&&(t+=t.repeat(e/t.length)),String(this)+t.slice(0,e))})},function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function o(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(e){if(Array.isArray(e))return e}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e){return(u="function"==typeof Symbol&&"symbol"===c(Symbol.iterator)?function(e){return c(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":c(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}r.r(t);var h=r(0),m=r.n(h),b=r(5),y=r.n(b),g=r(4),v=r.n(g),C=r(6),_=r.n(C),w=r(2),S=r.n(w),j=r(1),x=r.n(j);function E(e,t){return i(e)||function(e,t){var r=[],n=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(n=(i=l.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){a=!0,o=e}finally{try{n||null==l.return||l.return()}finally{if(a)throw o}}return r}(e,t)||l()}r(8);var k=[["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"]],N=[["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 O(e,t,r,n,a){return!r||a?e+"".padEnd(t.length,".")+" "+n:e+"".padEnd(t.length,".")+" "+r}function T(e,t,r,a,i){var l,s,c=[];return s=!0===t,[(l=[]).concat.apply(l,o(e.map(function(e){var o={name:e[0],regions:e[1],iso2:e[2],countryCode:e[3],dialCode:e[3],format:O(r,e[3],e[4],a,i),priority:e[5]||0},l=[];return e[6]&&e[6].map(function(t){var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),a.forEach(function(t){n(e,t,r[t])})}return e}({},o);r.dialCode=e[3]+t,r.isAreaCode=!0,r.areaCodeLength=t.length,l.push(r)}),l.length>0?(o.mainCode=!0,s||"Array"===t.constructor.name&&t.includes(e[2])?(o.hasAreaCodes=!0,[o].concat(l)):(c=c.concat(l),[o])):[o]}))),c]}function R(e,t,r,n){if(null!==r){var a=Object.keys(r),o=Object.values(r);a.forEach(function(r,a){if(n)return e.push([r,o[a]]);var i=e.findIndex(function(e){return e[0]===r});if(-1===i){var l=[r];l[t]=o[a],e.push(l)}else e[i][t]=o[a]})}}function I(e,t){return 0===t.length?e:e.map(function(e){var r=t.findIndex(function(t){return t[0]===e[2]});if(-1===r)return e;var n=t[r];return n[1]&&(e[4]=n[1]),n[3]&&(e[5]=n[3]),n[2]&&(e[6]=n[2]),e})}var P=function e(t,r,n,a,i,l,c,u,d,f,p,h,m,b){s(this,e),this.filterRegions=function(e,t){if("string"==typeof e){var r=e;return t.filter(function(e){return e.regions.some(function(e){return e===r})})}return t.filter(function(t){return e.map(function(e){return t.regions.some(function(t){return t===e})}).some(function(e){return e})})},this.sortTerritories=function(e,t){var r=[].concat(o(e),o(t));return r.sort(function(e,t){return e.name<t.name?-1:e.name>t.name?1:0}),r},this.getFilteredCountryList=function(e,t,r){return 0===e.length?t:r?e.map(function(e){var r=t.find(function(t){return t.iso2===e});if(r)return r}).filter(function(e){return e}):t.filter(function(t){return e.some(function(e){return e===t.iso2})})},this.localizeCountries=function(e,t,r){for(var n=0;n<e.length;n++)void 0!==t[e[n].iso2]?e[n].localName=t[e[n].iso2]:void 0!==t[e[n].name]&&(e[n].localName=t[e[n].name]);return r||e.sort(function(e,t){return e.localName<t.localName?-1:e.localName>t.localName?1:0}),e},this.getCustomAreas=function(e,t){for(var r=[],n=0;n<t.length;n++){var a=JSON.parse(JSON.stringify(e));a.dialCode+=t[n],r.push(a)}return r},this.excludeCountries=function(e,t){return 0===t.length?e:e.filter(function(e){return!t.includes(e.iso2)})};var y=function(e,t,r){var n=[];return R(n,1,e,!0),R(n,3,t),R(n,2,r),n}(u,d,f),g=I(JSON.parse(JSON.stringify(k)),y),v=I(JSON.parse(JSON.stringify(N)),y),C=E(T(g,t,h,m,b),2),_=C[0],w=C[1];if(r){var S=E(T(v,t,h,m,b),2),j=S[0];S[1],_=this.sortTerritories(j,_)}n&&(_=this.filterRegions(n,_)),this.onlyCountries=this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(a,_,c.includes("onlyCountries")),l),p,c.includes("onlyCountries")),this.preferredCountries=0===i.length?[]:this.localizeCountries(this.getFilteredCountryList(i,_,c.includes("preferredCountries")),p,c.includes("preferredCountries")),this.hiddenAreaCodes=this.excludeCountries(this.getFilteredCountryList(a,w),l)},D=function(e){function t(e){var r;s(this,t),(r=function(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?d(e):t}(this,f(t).call(this,e))).getProbableCandidate=v()(function(e){return e&&0!==e.length?r.state.onlyCountries.filter(function(t){return S()(t.name.toLowerCase(),e.toLowerCase())},d(d(r)))[0]:null}),r.guessSelectedCountry=v()(function(e,t,n,a){var o;if(!1===r.props.enableAreaCodes&&(a.some(function(t){if(S()(e,t.dialCode))return n.some(function(e){if(t.iso2===e.iso2&&e.mainCode)return o=e,!0}),!0}),o))return o;var i=n.find(function(e){return e.iso2==t});if(""===e.trim())return i;var l=n.reduce(function(t,r){if(S()(e,r.dialCode)){if(r.dialCode.length>t.dialCode.length)return r;if(r.dialCode.length===t.dialCode.length&&r.priority<t.priority)return r}return t},{dialCode:"",priority:10001},d(d(r)));return l.name?l:i}),r.updateCountry=function(e){var t,n=r.state.onlyCountries;(t=e.indexOf(0)>="0"&&e.indexOf(0)<="9"?n.find(function(t){return t.dialCode==+e}):n.find(function(t){return t.iso2==e}))&&t.dialCode&&r.setState({selectedCountry:t,formattedNumber:r.props.disableCountryCode?"":r.formatNumber(t.dialCode,t)})},r.scrollTo=function(e,t){if(e){var n=r.dropdownRef;if(n&&document.body){var a=n.offsetHeight,o=n.getBoundingClientRect().top+document.body.scrollTop,i=o+a,l=e,s=l.getBoundingClientRect(),c=l.offsetHeight,u=s.top+document.body.scrollTop,d=u+c,f=u-o+n.scrollTop,p=a/2-c/2;if(r.props.enableSearch?u<o+32:u<o)t&&(f-=p),n.scrollTop=f;else if(d>i){t&&(f+=p);var h=a-c;n.scrollTop=f-h}}}},r.scrollToTop=function(){var e=r.dropdownRef;e&&document.body&&(e.scrollTop=0)},r.formatNumber=function(e,t){if(!t)return e;var n,o=t.format,s=r.props,c=s.disableCountryCode,u=s.enableAreaCodeStretch,d=s.enableLongNumbers,f=s.autoFormat;if(c?((n=o.split(" ")).shift(),n=n.join(" ")):u&&t.isAreaCode?((n=o.split(" "))[1]=n[1].replace(/\.+/,"".padEnd(t.areaCodeLength,".")),n=n.join(" ")):n=o,!e||0===e.length)return c?"":r.props.prefix;if(e&&e.length<2||!n||!f)return c?e:r.props.prefix+e;var p,h=_()(n,function(e,t){if(0===e.remainingText.length)return e;if("."!==t)return{formattedText:e.formattedText+t,remainingText:e.remainingText};var r,n=i(r=e.remainingText)||a(r)||l(),o=n[0],s=n.slice(1);return{formattedText:e.formattedText+o,remainingText:s}},{formattedText:"",remainingText:e.split("")});return(p=d?h.formattedText+h.remainingText.join(""):h.formattedText).includes("(")&&!p.includes(")")&&(p+=")"),p},r.cursorToEnd=function(){var e=r.numberInputRef;if(document.activeElement===e){e.focus();var t=e.value.length;")"===e.value.charAt(t-1)&&(t-=1),e.setSelectionRange(t,t)}},r.getElement=function(e){return r["flag_no_".concat(e)]},r.getCountryData=function(){return r.state.selectedCountry?{name:r.state.selectedCountry.name||"",dialCode:r.state.selectedCountry.dialCode||"",countryCode:r.state.selectedCountry.iso2||"",format:r.state.selectedCountry.format||""}:{}},r.handleFlagDropdownClick=function(e){if(e.preventDefault(),r.state.showDropdown||!r.props.disabled){var t=r.state,n=t.preferredCountries,a=t.onlyCountries,o=t.selectedCountry,i=r.concatPreferredCountries(n,a).findIndex(function(e){return e.dialCode===o.dialCode&&e.iso2===o.iso2});r.setState({showDropdown:!r.state.showDropdown,highlightCountryIndex:i},function(){r.state.showDropdown&&r.scrollTo(r.getElement(r.state.highlightCountryIndex))})}},r.handleInput=function(e){var t=e.target.value,n=r.props,a=n.prefix,o=n.onChange,i=r.props.disableCountryCode?"":a,l=r.state.selectedCountry,s=r.state.freezeSelection;if(!r.props.countryCodeEditable){var c=a+(l.hasAreaCodes?r.state.onlyCountries.find(function(e){return e.iso2===l.iso2&&e.mainCode}).dialCode:l.dialCode);if(t.slice(0,c.length)!==c)return}if(t===a)return o&&o("",r.getCountryData(),e,""),r.setState({formattedNumber:""});if(t.replace(/\D/g,"").length>15){if(!1===r.props.enableLongNumbers)return;if("number"==typeof r.props.enableLongNumbers&&t.replace(/\D/g,"").length>r.props.enableLongNumbers)return}if(t!==r.state.formattedNumber){e.preventDefault?e.preventDefault():e.returnValue=!1;var u=r.props.country,d=r.state,f=d.onlyCountries,p=d.selectedCountry,h=d.hiddenAreaCodes;if(o&&e.persist(),t.length>0){var m=t.replace(/\D/g,"");(!r.state.freezeSelection||p&&p.dialCode.length>m.length)&&(l=r.props.disableCountryGuess?p:r.guessSelectedCountry(m.substring(0,6),u,f,h)||p,s=!1),i=r.formatNumber(m,l),l=l.dialCode?l:p}var b=e.target.selectionStart,y=e.target.selectionStart,g=r.state.formattedNumber,v=i.length-g.length;r.setState({formattedNumber:i,freezeSelection:s,selectedCountry:l},function(){v>0&&(y-=v),")"==i.charAt(i.length-1)?r.numberInputRef.setSelectionRange(i.length-1,i.length-1):y>0&&g.length>=i.length?r.numberInputRef.setSelectionRange(y,y):b<g.length&&r.numberInputRef.setSelectionRange(b,b),o&&o(i.replace(/[^0-9]+/g,""),r.getCountryData(),e,i)})}},r.handleInputClick=function(e){r.setState({showDropdown:!1}),r.props.onClick&&r.props.onClick(e,r.getCountryData())},r.handleDoubleClick=function(e){var t=e.target.value.length;e.target.setSelectionRange(0,t)},r.handleFlagItemClick=function(e,t){var n=r.state.selectedCountry,a=r.state.onlyCountries.find(function(t){return t==e});if(a){var o=r.state.formattedNumber.replace(" ","").replace("(","").replace(")","").replace("-",""),i=o.length>1?o.replace(n.dialCode,a.dialCode):a.dialCode,l=r.formatNumber(i.replace(/\D/g,""),a);r.setState({showDropdown:!1,selectedCountry:a,freezeSelection:!0,formattedNumber:l,searchValue:""},function(){r.cursorToEnd(),r.props.onChange&&r.props.onChange(l.replace(/[^0-9]+/g,""),r.getCountryData(),t,l)})}},r.handleInputFocus=function(e){r.numberInputRef&&r.numberInputRef.value===r.props.prefix&&r.state.selectedCountry&&!r.props.disableCountryCode&&r.setState({formattedNumber:r.props.prefix+r.state.selectedCountry.dialCode},function(){r.props.jumpCursorToEnd&&setTimeout(r.cursorToEnd,0)}),r.setState({placeholder:""}),r.props.onFocus&&r.props.onFocus(e,r.getCountryData()),r.props.jumpCursorToEnd&&setTimeout(r.cursorToEnd,0)},r.handleInputBlur=function(e){e.target.value||r.setState({placeholder:r.props.placeholder}),r.props.onBlur&&r.props.onBlur(e,r.getCountryData())},r.handleInputCopy=function(e){if(r.props.copyNumbersOnly){var t=window.getSelection().toString().replace(/[^0-9]+/g,"");e.clipboardData.setData("text/plain",t),e.preventDefault()}},r.getHighlightCountryIndex=function(e){var t=r.state.highlightCountryIndex+e;return t<0||t>=r.state.onlyCountries.length+r.state.preferredCountries.length?t-e:r.props.enableSearch&&t>r.getSearchFilteredCountries().length?0:t},r.searchCountry=function(){var e=r.getProbableCandidate(r.state.queryString)||r.state.onlyCountries[0],t=r.state.onlyCountries.findIndex(function(t){return t==e})+r.state.preferredCountries.length;r.scrollTo(r.getElement(t),!0),r.setState({queryString:"",highlightCountryIndex:t})},r.handleKeydown=function(e){var t=r.props.keys,n=e.target.className;if(n.includes("selected-flag")&&e.which===t.ENTER&&!r.state.showDropdown)return r.handleFlagDropdownClick(e);if(n.includes("form-control")&&(e.which===t.ENTER||e.which===t.ESC))return e.target.blur();if(r.state.showDropdown&&!r.props.disabled&&(!n.includes("search-box")||e.which===t.UP||e.which===t.DOWN||e.which===t.ENTER||e.which===t.ESC&&""===e.target.value)){e.preventDefault?e.preventDefault():e.returnValue=!1;var a=function(e){r.setState({highlightCountryIndex:r.getHighlightCountryIndex(e)},function(){r.scrollTo(r.getElement(r.state.highlightCountryIndex),!0)})};switch(e.which){case t.DOWN:a(1);break;case t.UP:a(-1);break;case t.ENTER:r.props.enableSearch?r.handleFlagItemClick(r.getSearchFilteredCountries()[r.state.highlightCountryIndex]||r.getSearchFilteredCountries()[0],e):r.handleFlagItemClick([].concat(o(r.state.preferredCountries),o(r.state.onlyCountries))[r.state.highlightCountryIndex],e);break;case t.ESC:case t.TAB:r.setState({showDropdown:!1},r.cursorToEnd);break;default:(e.which>=t.A&&e.which<=t.Z||e.which===t.SPACE)&&r.setState({queryString:r.state.queryString+String.fromCharCode(e.which)},r.state.debouncedQueryStingSearcher)}}},r.handleInputKeyDown=function(e){var t=r.props,n=t.keys,a=t.onEnterKeyPress,o=t.onKeyDown;e.which===n.ENTER&&a&&a(e),o&&o(e)},r.handleClickOutside=function(e){r.dropdownRef&&!r.dropdownContainerRef.contains(e.target)&&r.state.showDropdown&&r.setState({showDropdown:!1})},r.handleSearchChange=function(e){var t=e.currentTarget.value,n=r.state,a=n.preferredCountries,o=n.selectedCountry,i=0;if(""===t&&o){var l=r.state.onlyCountries;i=r.concatPreferredCountries(a,l).findIndex(function(e){return e==o}),setTimeout(function(){return r.scrollTo(r.getElement(i))},100)}r.setState({searchValue:t,highlightCountryIndex:i})},r.concatPreferredCountries=function(e,t){return e.length>0?o(new Set(e.concat(t))):t},r.getDropdownCountryName=function(e){return e.localName||e.name},r.getSearchFilteredCountries=function(){var e=r.state,t=e.preferredCountries,n=e.onlyCountries,a=e.searchValue,i=r.props.enableSearch,l=r.concatPreferredCountries(t,n),s=a.trim().toLowerCase().replace("+","");if(i&&s){if(/^\d+$/.test(s))return l.filter(function(e){var t=e.dialCode;return["".concat(t)].some(function(e){return e.toLowerCase().includes(s)})});var c=l.filter(function(e){var t=e.iso2;return["".concat(t)].some(function(e){return e.toLowerCase().includes(s)})}),u=l.filter(function(e){var t=e.name,r=e.localName;return e.iso2,["".concat(t),"".concat(r||"")].some(function(e){return e.toLowerCase().includes(s)})});return r.scrollToTop(),o(new Set([].concat(c,u)))}return l},r.getCountryDropdownList=function(){var e=r.state,t=e.preferredCountries,a=e.highlightCountryIndex,o=e.showDropdown,i=e.searchValue,l=r.props,s=l.disableDropdown,c=l.prefix,u=r.props,d=u.enableSearch,f=u.searchNotFound,p=u.disableSearchIcon,h=u.searchClass,b=u.searchStyle,y=u.searchPlaceholder,g=u.autocompleteSearch,v=r.getSearchFilteredCountries().map(function(e,t){var n=a===t,o=x()({country:!0,preferred:"us"===e.iso2||"gb"===e.iso2,active:"us"===e.iso2,highlight:n}),i="flag ".concat(e.iso2);return m.a.createElement("li",Object.assign({ref:function(e){return r["flag_no_".concat(t)]=e},key:"flag_no_".concat(t),"data-flag-key":"flag_no_".concat(t),className:o,"data-dial-code":"1",tabIndex:s?"-1":"0","data-country-code":e.iso2,onClick:function(t){return r.handleFlagItemClick(e,t)},role:"option"},n?{"aria-selected":!0}:{}),m.a.createElement("div",{className:i}),m.a.createElement("span",{className:"country-name"},r.getDropdownCountryName(e)),m.a.createElement("span",{className:"dial-code"},e.format?r.formatNumber(e.dialCode,e):c+e.dialCode))}),C=m.a.createElement("li",{key:"dashes",className:"divider"});t.length>0&&(!d||d&&!i.trim())&&v.splice(t.length,0,C);var _=x()(n({"country-list":!0,hide:!o},r.props.dropdownClass,!0));return m.a.createElement("ul",{ref:function(e){return!d&&e&&e.focus(),r.dropdownRef=e},className:_,style:r.props.dropdownStyle,role:"listbox",tabIndex:"0"},d&&m.a.createElement("li",{className:x()(n({search:!0},h,h))},!p&&m.a.createElement("span",{className:x()(n({"search-emoji":!0},"".concat(h,"-emoji"),h)),role:"img","aria-label":"Magnifying glass"},"🔎"),m.a.createElement("input",{className:x()(n({"search-box":!0},"".concat(h,"-box"),h)),style:b,type:"search",placeholder:y,autoFocus:!0,autoComplete:g?"on":"off",value:i,onChange:r.handleSearchChange})),v.length>0?v:m.a.createElement("li",{className:"no-entries-message"},m.a.createElement("span",null,f)))};var c,p=new P(e.enableAreaCodes,e.enableTerritories,e.regions,e.onlyCountries,e.preferredCountries,e.excludeCountries,e.preserveOrder,e.masks,e.priority,e.areaCodes,e.localization,e.prefix,e.defaultMask,e.alwaysDefaultMask),h=p.onlyCountries,b=p.preferredCountries,g=p.hiddenAreaCodes,C=e.value?e.value.replace(/\D/g,""):"";c=e.disableInitialCountryGuess?0:C.length>1?r.guessSelectedCountry(C.substring(0,6),e.country,h,g)||0:e.country&&h.find(function(t){return t.iso2==e.country})||0;var w,j=C.length<2&&c&&!S()(C,c.dialCode)?c.dialCode:"";w=""===C&&0===c?"":r.formatNumber((e.disableCountryCode?"":j)+C,c.name?c:void 0);var E=h.findIndex(function(e){return e==c});return r.state={showDropdown:e.showDropdown,formattedNumber:w,onlyCountries:h,preferredCountries:b,hiddenAreaCodes:g,selectedCountry:c,highlightCountryIndex:E,queryString:"",freezeSelection:!1,debouncedQueryStingSearcher:y()(r.searchCountry,250),searchValue:""},r}var r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),(r=[{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(e,t,r){e.country!==this.props.country?this.updateCountry(this.props.country):e.value!==this.props.value&&this.updateFormattedNumber(this.props.value)}},{key:"updateFormattedNumber",value:function(e){if(null===e)return this.setState({selectedCountry:0,formattedNumber:""});var t=this.state,r=t.onlyCountries,n=t.selectedCountry,a=t.hiddenAreaCodes,o=this.props,i=o.country,l=o.prefix;if(""===e)return this.setState({selectedCountry:n,formattedNumber:""});var s,c,u=e.replace(/\D/g,"");if(n&&S()(e,l+n.dialCode))c=this.formatNumber(u,n),this.setState({formattedNumber:c});else{var d=(s=this.props.disableCountryGuess?n:this.guessSelectedCountry(u.substring(0,6),i,r,a)||n)&&S()(u,l+s.dialCode)?s.dialCode:"";c=this.formatNumber((this.props.disableCountryCode?"":d)+u,s||void 0),this.setState({selectedCountry:s,formattedNumber:c})}}},{key:"render",value:function(){var e,t,r,a=this,o=this.state,i=o.onlyCountries,l=o.selectedCountry,s=o.showDropdown,c=o.formattedNumber,u=o.hiddenAreaCodes,d=this.props,f=d.disableDropdown,p=d.renderStringAsFlag,h=d.isValid,b=d.defaultErrorMessage,y=d.specialLabel;if("boolean"==typeof h)t=h;else{var g=h(c.replace(/\D/g,""),l,i,u);"boolean"==typeof g?!1===(t=g)&&(r=b):(t=!1,r=g)}var v=x()((n(e={},this.props.containerClass,!0),n(e,"react-tel-input",!0),e)),C=x()({arrow:!0,up:s}),_=x()(n({"form-control":!0,"invalid-number":!t,open:s},this.props.inputClass,!0)),w=x()({"selected-flag":!0,open:s}),S=x()(n({"flag-dropdown":!0,"invalid-number":!t,open:s},this.props.buttonClass,!0)),j="flag ".concat(l&&l.iso2);return m.a.createElement("div",{className:"".concat(v," ").concat(this.props.className),style:this.props.style||this.props.containerStyle,onKeyDown:this.handleKeydown},y&&m.a.createElement("div",{className:"special-label"},y),r&&m.a.createElement("div",{className:"invalid-number-message"},r),m.a.createElement("input",Object.assign({className:_,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(e){a.numberInputRef=e,"function"==typeof a.props.inputProps.ref?a.props.inputProps.ref(e):"object"==typeof a.props.inputProps.ref&&(a.props.inputProps.ref.current=e)}})),m.a.createElement("div",{className:S,style:this.props.buttonStyle,ref:function(e){return a.dropdownContainerRef=e}},p?m.a.createElement("div",{className:w},p):m.a.createElement("div",{onClick:f?void 0:this.handleFlagDropdownClick,className:w,title:l?"".concat(l.localName||l.name,": + ").concat(l.dialCode):"",tabIndex:f?"-1":"0",role:"button","aria-haspopup":"listbox","aria-expanded":!!s||void 0},m.a.createElement("div",{className:j},!f&&m.a.createElement("div",{className:C}))),s&&this.getCountryDropdownList()))}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(t.prototype,r),t}(m.a.Component);D.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}},t.default=D}])},609:function(e){"use strict";e.exports=window.React},942:function(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=i(e,o(r)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return a.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=i(t,r));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var o=r[e]={exports:{}};return t[e](o,o.exports,n),o.exports}n.m=t,e=[],n.O=function(t,r,a,o){if(!r){var i=1/0;for(u=0;u<e.length;u++){r=e[u][0],a=e[u][1],o=e[u][2];for(var l=!0,s=0;s<r.length;s++)(!1&o||i>=o)&&Object.keys(n.O).every(function(e){return n.O[e](r[s])})?r.splice(s--,1):(l=!1,o<i&&(i=o));if(l){e.splice(u--,1);var c=a();void 0!==c&&(t=c)}}return t}o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[r,a,o]},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={57:0,350:0};n.O.j=function(t){return 0===e[t]};var t=function(t,r){var a,o,i=r[0],l=r[1],s=r[2],c=0;if(i.some(function(t){return 0!==e[t]})){for(a in l)n.o(l,a)&&(n.m[a]=l[a]);if(s)var u=s(n)}for(t&&t(r);c<i.length;c++)o=i[c],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return n.O(u)},r=self.webpackChunkjoinchat=self.webpackChunkjoinchat||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}();var a=n.O(void 0,[350],function(){return n(12)});a=n.O(a)}();