// source --> https://www.indiesoft.it/wp-content/plugins/block-for-mailchimp/build/view.js?ver=aa02caad62a6e41985b3 
(()=>{"use strict";const e=window.React,t=window.ReactDOM,a=e=>Object.values(e).join(" "),l="linear-gradient(135deg, #0040E3, #18D4FD)",n=(e,t)=>{return null==(a=t)||""===a||Array.isArray(a)&&0===a.length||"object"==typeof a&&0===Object.keys(a).length||"string"==typeof a&&""===a.trim()||"number"==typeof a&&0===a?"":`${e}: ${t};`;var a},m=(e,t=!0,a=!0,m=!0)=>{const{type:o="solid",color:r="",gradient:i=l,image:c={},position:s="center center",attachment:d="",repeat:p="no-repeat",size:h="",overlayColor:g=""}=e||{};return"gradient"===o&&a?n("background",i):"image"===o&&m?`background: url(${c?.url});\n\t\t\t\t${n("background-color",g)}\n\t\t\t\t${n("background-position",s)}\n\t\t\t\t${n("background-size",h)}\n\t\t\t\t${n("background-repeat",p)}\n\t\t\t\t${n("background-attachment",d)}\n\t\t\t\t${n("background-repeat",p)}\n\t\t\t\tbackground-blend-mode: overlay;`:t&&n("background",r)},o=e=>{const{width:t="",style:a="solid",color:l="",side:m="all",radius:o=""}=e||{},r=e=>{const t=m?.toLowerCase();return t?.includes("all")||t?.includes(e)},i=`${t} ${a} ${l}`,c=`\n\t\t${t&&0!==parseInt(t)?["top","right","bottom","left"].map(e=>r(e)?`border-${e}: ${i};`:"").join(""):""}\n\t\t${n("border-radius",o)}\n\t`;return c},r=e=>{const{color:t="",bgType:a="solid",bg:m="",gradient:o=l}=e||{};return`\n\t\t${n("color",t)}\n\t\t${o||m?n("background","gradient"===a?o:m):""}\n\t`},i=(e,t,a=!0)=>{const{fontFamily:l="Default",fontCategory:m="sans-serif",fontVariant:o=400,fontWeight:r,isUploadFont:i=!0,fontSize:c={desktop:null,tablet:null,mobile:null},fontStyle:s,textTransform:d,textDecoration:p,lineHeight:h,letterSpace:g}=t||{},u=!a||!l||"Default"===l,E=c?.desktop||c,f=c?.tablet||E,$=c?.mobile||f,b=e=>{const t=String(e);return["px","em","rem","%","vh","vw"].some(e=>t.endsWith(e))?t:"number"==typeof e?`${t}px`:""},w=`\n\t\t${u?"":`font-family: '${l}', ${m};`}\n\t\t${n("font-weight",r)}\n\t\t${n("font-size",b(E))}\n\t\t${n("font-style",s)}\n\t\t${n("text-transform",d)}\n\t\t${n("text-decoration",p)}\n\t\t${n("line-height",h)}\n\t\t${n("letter-spacing",g)}\n\t`,N=o&&400!==o?"400i"===o?":ital@1":o?.includes("00i")?`: ital, wght@1, ${o?.replace("00i","00")} `:`: wght@${o} `:"",v=u?"":`https://fonts.googleapis.com/css2?family=${l?.split(" ").join("+")}${N.replace(/ /g,"")}&display=swap`;return{googleFontLink:!i||u?"":`@import url(${v});`,styles:`${e}{\n\t\t\t${w}\n\t\t}\n\t\t@media only screen and (max-width: 1024px) {\n\t\t\t${e}{\n\t\t\t\t${n("font-size",b(f))}\n\t\t\t}\n\t\t}\n\t\t@media only screen and (max-width: 640px) {\n\t\t\t${e}{\n\t\t\t\t${n("font-size",b($))}\n\t\t\t}\n\t\t}`.replace(/\s+/g," ").trim()}},c=({attributes:t,id:l})=>{const{iconBG:n,icon:c,titleTypo:s,titleColor:d,descTypo:p,descColor:h,formBG:g,formPadding:u,formBorder:E,fieldTypo:f,fieldColors:$,fieldPadding:b,fieldBorder:w,fieldMargin:N,btnTypo:v,btnColors:x,btnHovColors:y,btnPadding:L,btnBorder:F,messageColors:A,messageTypo:D,themeWidth:V,themeAlign:C,popupBtn:B,form4LeftImage:M,brandLogo:k,inputLabel:z,closeBtn:S,titleMargin:T,descMargin:I,btnMargin:j,modal:P,imgArea:_}=t,{colors:H,size:O}=S,R=Math.ceil(parseInt(O)/1.4),Z=`#${l}`,G=`${Z} .mcbMailChimp .form`,q=`${Z} .mcbMailChimp`;return(0,e.createElement)("style",{dangerouslySetInnerHTML:{__html:`\n\n\t\t${i("",B?.typo)?.googleFontLink}\n\t\t${i("",z?.typo)?.googleFontLink}\n\t\t${i("",s)?.googleFontLink}\n\t\t${i("",p)?.googleFontLink}\n\t\t${i("",f)?.googleFontLink}\n\t\t${i("",v)?.googleFontLink}\n\t\t${i("",D)?.googleFontLink}\n\t\t${i(`${q}.form8 .form .bottom .content .label`,z?.typo)?.styles}\n\t\t${i(`${q} .popupBtn`,B?.typo)?.styles}\n\t\t${i(`${G} h2`,s)?.styles}\n\t\t${i(`${G} p`,p)?.styles}\n\t\t${i(`${G} input::placeholder`,f)?.styles}\n\t\t${i(`${G} input`,f)?.styles}\n\t\t${i(`${G} .submitBtn button`,v)?.styles}\n\t\t${i(`${G} .noticeElement > p`,D)?.styles}\n\n\t\t${Z} {\n\t\t\twidth:100%;\n\t\t}\n\n\t\t${q} .popupBtn {\n\t\t\t${r(B?.colors)};\n\t\t\t${o(B?.border)};\n\t\t\tpadding: ${a(B?.padding)};\n\t\t}\n\n\t\t${q} .popupBtn:hover {\n\t\t\t${r(B?.hoverColors)};\n\t\t}\n\n\t\t${Z} {\n\t\t\tjustify-content:${C?.desktop}; \n\t\t}\n\n\t\t${Z} .mcbMailChimp{\n\t\t\twidth: ${V?.desktop};\n\t\t}\n\n\t\t@media (max-width: 768px) { \n\t\t\t${Z}{\n\t\t\t\tjustify-content:${C?.tablet};\n\t\t\t}\n\t\t}\n\n\t\t@media (max-width: 768px) {\n\t\t\t${Z} .mcbMailChimp{\n\t\t\t\twidth:${V?.tablet};\n\t\t\t}\n\t\t}\n\n\t\t@media (max-width: 576px) {\n\t\t\t${Z}{\n\t\t\t\tjustify-content:${C?.mobile};\n\t\t\t}\n\t\t}\n\n\t\t@media (max-width: 576px) {\n\t\t\t${Z} .mcbMailChimp{\n\t\t\t\twidth:${V?.mobile};\n\t\t\t}\n\t\t}\t\n\n\t\t${Z} .form1 .iconElement .icon {\n\t\t\t${m(n)};\n\t\t}\n\n\t\t${Z} .form1 .iconElement .icon::after {\n\t\t\tborder-color:${c?.color};\n\t\t}\n\n\t\t${q}.default .form, ${q}.form1 .form, ${q}.form2 .form, ${q}.form3 .form, ${q}.form7 .form{\n\t\t\t${m(g)};\n\t\t\tpadding: ${a(u)};\n\t\t\t${o(E)};\n\t\t}\n\n\t\t${q}.form4 .form, ${q}.form5 .form, ${q}.form6 .form, ${q}.form8 .form {\n\t\t\t${m(g)};\n\t\t\t${o(E)};\n\t\t}\n\n\t\t${q}.form8 .form .top .right .logo {\n\t\t\twidth: ${k?.size}px;\n\t\t\theight: ${k?.size}px;\n\t\t}\n\n\t\t${q}.form8 .form .bottom .content .label {\n\t\t\tcolor:${z?.color};\n\t\t}\n\n\t\t${q}.form4 .form .right, ${q}.form5 .form .bottom, ${q}.form6 .form .left, ${q}.form8 .form .bottom{\n\t\t\tpadding: ${a(u)};\n\t\t}\n\n\t\t${q}.form4 .form .left, ${q}.form5 .form .top, ${q}.form6 .form .right,${q}.form8 .form .top {\n\t\t\t${m(M)};\n\t\t}\n\t\t \n\t\t${G} .noticeElement .success{\n\t\t\tcolor:${A?.success};\n\t\t}\n\n\t\t${G} .noticeElement .error{\n\t\t\tcolor:${A?.error};\n\t\t}\n\n\t\t${G} h2{\n\t\t\tcolor:${d};\n\t\t\tmargin:${a(T)};\n\t\t}\n\n\t\t${G} p{\n\t\t\tcolor:${h};\n\t\t\tmargin:${a(I)};\n\t\t}\n\n\t\t${G} .noticeElement p {\n\t\t\tmargin-top: 15px;\n\t\t}\n\n\t\t${G} input::placeholder {\n\t\t\t${r($)};\n\t\t}\n\n\t\t${G} input[type="text"], ${G} input[type="email"]{\n\t\t\t${r($)};\n\t\t\tpadding:${a(b)};\n\t\t\t${o(w)};\n\t\t\tmargin:${a(N)};\n\t\t\t\n\t\t}\n\n\t\t${G} .submitBtn button {\n\t\t\t${r(x)};\n\t\t\tpadding:${a(L)};\n\t\t\t${o(F)};\n\t\t}\n\n\t\t${G} .submitBtn {\n\t\t\tmargin:${a(j)};\n\t\t}\n\n\t\t${G} .submitBtn button:hover {\n\t\t\t${r(y)};\n\t\t\topacity:0.9;\n\t\t}\n\n\t\t${Z} .form2 .form .submitBtn button {\n\t\t\tborder-top-left-radius: 0px;\n\t\t\tborder-bottom-left-radius: 0px;\n\t\t}\n\n\t\t@media all and (max-width: 575px) {\n\t\t\t${Z} .form2 .form .submitBtn button {\n\t\t\t\t${o(F)};\n\t\t\t}\n\t\t }\n\n\t\t${G} .submitBtn .loader{\n\t\t\t${o(F)};\n\t\t}\n\n\t\t${G} .submitBtn .disable {\n\t\t\topacity:0.7;\n\t\t\tpointer-events: none;\n\t\t}\n\n\t\t${q} .modalArea .allForms .closeIcon {\n\t\t\t${r(H)};\n\t\t\twidth:${O}px;\n\t\t\theight:${O}px;\n\t\t}\n\n\t\t${q} .modalArea .allForms .closeIcon svg{\n\t\t\twidth: ${R}px;\n\t\t\theight: ${R}px;\n\t\t}\n\n\t\t${q} .modalArea.modalAreaNatural .allForms, ${q} .modalArea.modalAreaFBottom .allForms {\n\t\t\twidth:${P?.width?.desktop};\n\t\t}\n\n\t\t${q}.form5 .form .top{\n\t\t\theight:${_?.height?.desktop};\n\t\t}\n\n\t\t@media (max-width: 768px) {\n\t\t\t${q} .modalArea.modalAreaNatural .allForms, ${q} .modalArea.modalAreaFBottom .allForms {\n\t\t\t\twidth:${P?.width?.tablet};\n\t\t\t}\n\n\t\t\t${q}.form5 .form .top{\n\t\t\t\theight:${_?.height?.tablet};\n\t\t\t}\n\t\t}\n\n\t\t${q} .popupBtnArea {\n\t\t\tjustify-content:${B?.align}\n\t\t}\n\n\t\t@media (max-width: 576px) {\n\t\t\t${q} .modalArea.modalAreaNatural .allForms, ${q} .modalArea.modalAreaFBottom .allForms {\n\t\t\t\twidth:${P?.width?.mobile};\n\t\t\t}\n\n\t\t\t${q}.form5 .form .top{\n\t\t\t\theight:${_?.height?.mobile};\n\t\t\t}\n\t\t}\n\n\t\t\n\t\t`.replace(/\s+/g," ")}})},s="#4527a4",d=((0,e.createElement)("svg",{fill:"#000000",width:"20px",height:"20px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M12,14a1.25,1.25,0,1,0,1.25,1.25A1.25,1.25,0,0,0,12,14Zm0-1.5a1,1,0,0,0,1-1v-3a1,1,0,0,0-2,0v3A1,1,0,0,0,12,12.5ZM12,2A10,10,0,1,0,22,12,10.01114,10.01114,0,0,0,12,2Zm0,18a8,8,0,1,1,8-8A8.00917,8.00917,0,0,1,12,20Z"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"16px",height:"16px",viewBox:"0 0 335.765 335.765",style:{"enable-background":"new 0 0 335.765 335.765;"}},(0,e.createElement)("g",null," ",(0,e.createElement)("g",null," ",(0,e.createElement)("polygon",{points:"311.757,41.803 107.573,245.96 23.986,162.364 0,186.393 107.573,293.962 335.765,65.795 "})," ")," ")),(0,e.createElement)("svg",{width:"15px",height:"15px",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M5 14L12 7.5L5 1",stroke:"#000000","stroke-linecap":"square"})),{preloader:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50px",height:"50px",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",style:{background:"none"}},(0,e.createElement)("circle",{cx:"75",cy:"50",fill:"#000",r:"6.39718"},(0,e.createElement)("animate",{attributeName:"r",values:"4.8;4.8;8;4.8;4.8",times:"0;0.1;0.2;0.3;1",dur:"1s",repeatCount:"indefinite",begin:"-0.875s"})),(0,e.createElement)("circle",{cx:"67.678",cy:"67.678",fill:"#000",r:"4.8"},(0,e.createElement)("animate",{attributeName:"r",values:"4.8;4.8;8;4.8;4.8",times:"0;0.1;0.2;0.3;1",dur:"1s",repeatCount:"indefinite",begin:"-0.75s"})),(0,e.createElement)("circle",{cx:"50",cy:"75",fill:"#000",r:"4.8"},(0,e.createElement)("animate",{attributeName:"r",values:"4.8;4.8;8;4.8;4.8",times:"0;0.1;0.2;0.3;1",dur:"1s",repeatCount:"indefinite",begin:"-0.625s"})),(0,e.createElement)("circle",{cx:"32.322",cy:"67.678",fill:"#000",r:"4.8"},(0,e.createElement)("animate",{attributeName:"r",values:"4.8;4.8;8;4.8;4.8",times:"0;0.1;0.2;0.3;1",dur:"1s",repeatCount:"indefinite",begin:"-0.5s"})),(0,e.createElement)("circle",{cx:"25",cy:"50",fill:"#000",r:"4.8"},(0,e.createElement)("animate",{attributeName:"r",values:"4.8;4.8;8;4.8;4.8",times:"0;0.1;0.2;0.3;1",dur:"1s",repeatCount:"indefinite",begin:"-0.375s"})),(0,e.createElement)("circle",{cx:"32.322",cy:"32.322",fill:"#000",r:"4.80282"},(0,e.createElement)("animate",{attributeName:"r",values:"4.8;4.8;8;4.8;4.8",times:"0;0.1;0.2;0.3;1",dur:"1s",repeatCount:"indefinite",begin:"-0.25s"})),(0,e.createElement)("circle",{cx:"50",cy:"25",fill:"#000",r:"6.40282"},(0,e.createElement)("animate",{attributeName:"r",values:"4.8;4.8;8;4.8;4.8",times:"0;0.1;0.2;0.3;1",dur:"1s",repeatCount:"indefinite",begin:"-0.125s"})),(0,e.createElement)("circle",{cx:"67.678",cy:"32.322",fill:"#000",r:"7.99718"},(0,e.createElement)("animate",{attributeName:"r",values:"4.8;4.8;8;4.8;4.8",times:"0;0.1;0.2;0.3;1",dur:"1s",repeatCount:"indefinite",begin:"0s"}))),openGmail:t=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"70px",height:"70px",fill:t,x:"0px",y:"0px",viewBox:"0 0 75.294 75.294"},(0,e.createElement)("g",null," ",(0,e.createElement)("path",{d:"M37.647,4.591L0,27.082v34.423c0,5.071,4.126,9.197,9.197,9.197h56.9c5.071,0,9.197-4.126,9.197-9.197V27.082L37.647,4.591 z M65.62,28.291L38.013,45.505l-0.143,0.077c-0.023,0.012-0.045,0.023-0.076,0.035l-0.033,0.008 c-0.078,0.019-0.114,0.02-0.115,0.02c0,0-0.037-0.001-0.134-0.024l-0.017-0.004c-0.025-0.01-0.052-0.023-0.088-0.041 c-0.039-0.022-0.079-0.044-0.119-0.065L9.675,28.291L37.647,11.58L65.62,28.291z M66.097,64.703h-56.9 C7.434,64.703,6,63.269,6,61.507V33.07l28.189,17.577c0.103,0.065,0.207,0.123,0.316,0.179c0.059,0.032,0.117,0.063,0.172,0.09 c0.438,0.226,0.884,0.398,1.305,0.508l0.232,0.055c0.486,0.11,0.967,0.166,1.436,0.166c0.466,0,0.95-0.057,1.439-0.169l0.2-0.046 c0.443-0.115,0.89-0.288,1.319-0.51c0.062-0.031,0.123-0.063,0.187-0.098l28.499-17.755v28.438 C69.294,63.269,67.86,64.703,66.097,64.703z"}))),gmail:t=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:t,width:"25px",height:"25px",viewBox:"0 0 128 128",id:"Layer_1"},(0,e.createElement)("g",null,(0,e.createElement)("path",{d:"M127,16H1v6.7l63,59.8l55-52.2V104H9V50H1v62h126V16z M64,71.5L14,24H114L64,71.5z"}))),loader:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"50px",height:"50px",viewBox:"0 0 100 100",enableBackground:"new 0 0 0 0"},(0,e.createElement)("path",{fill:"#fff",d:"M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"},(0,e.createElement)("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"1s",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"}))),mailchimp:(0,e.createElement)("svg",{fill:"#000000",width:"240px",height:"24px",viewBox:"0 0 24 24"},(0,e.createElement)("path",{fillRule:"evenodd",d:"M21,7.38246601 L21,5 L3,5 L3,7.38199365 L12.0000224,11.8824548 L21,7.38246601 Z M21,9.61853399 L11.9999776,14.1185452 L3,9.61810635 L3,19 L21,19 L21,9.61853399 Z M3,3 L21,3 C22.1045695,3 23,3.8954305 23,5 L23,19 C23,20.1045695 22.1045695,21 21,21 L3,21 C1.8954305,21 1,20.1045695 1,19 L1,5 C1,3.8954305 1.8954305,3 3,3 Z"})),block:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 20 20",fill:s},(0,e.createElement)("path",{fill:s,fillRule:"evenodd",d:"M9.938 4.016a.146.146 0 00-.054.057L3.027 15.74a.176.176 0 00-.002.183c.016.03.037.05.054.06.015.01.034.017.066.017h13.713a.12.12 0 00.066-.017.163.163 0 00.055-.06.176.176 0 00-.003-.183L10.12 4.073a.146.146 0 00-.054-.057.13.13 0 00-.063-.016.13.13 0 00-.064.016zm1.043-.45a1.13 1.13 0 00-1.96 0L2.166 15.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L10.982 3.566z"}),(0,e.createElement)("rect",{fill:s,width:"2",height:"2",x:"9.002",y:"13",rx:"1"}),(0,e.createElement)("path",{fill:s,d:"M9.1 7.995a.905.905 0 111.8 0l-.35 3.507a.553.553 0 01-1.1 0L9.1 7.995z"})),gearSettings:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:18,viewBox:"0 0 430.848 430.848"},(0,e.createElement)("path",{d:"M286.244,249.537l10.992-45.639c0.035-0.143,0.071-0.285,0.109-0.428c2.909-10.867,11.469-19.426,22.339-22.338   l33.347-8.936c-5.472-6.525-13.678-10.682-22.839-10.682h-9.837c-2.511-7.895-5.7-15.59-9.515-22.957l6.96-6.959   c11.622-11.623,11.622-30.535,0-42.156L296.76,68.4c-5.631-5.629-13.117-8.73-21.079-8.73c-7.961,0-15.447,3.102-21.078,8.732   l-6.96,6.959c-7.369-3.814-15.064-7.004-22.956-9.516V56.01c0-16.436-13.372-29.807-29.808-29.807h-29.758   c-16.436,0-29.808,13.371-29.808,29.807v9.836c-7.893,2.512-15.588,5.701-22.957,9.516l-6.96-6.961   c-5.631-5.629-13.117-8.73-21.078-8.73c-7.961,0-15.447,3.102-21.079,8.732L42.2,89.443c-11.622,11.621-11.622,30.533,0,42.156   l6.959,6.959c-3.815,7.367-7.004,15.063-9.515,22.957h-9.837C13.372,161.516,0,174.887,0,191.324v29.758   c0,16.436,13.372,29.807,29.808,29.807h9.837c2.511,7.895,5.7,15.588,9.515,22.957l-6.96,6.959   c-11.623,11.623-11.623,30.533,0,42.158l21.041,21.039c5.632,5.631,13.118,8.732,21.079,8.732s15.447-3.102,21.077-8.732   l6.96-6.959c7.366,3.815,15.061,7.002,22.957,9.514v9.838c0,16.436,13.372,29.809,29.808,29.809h25.809   c-2.388-5.691-3.644-11.852-3.645-18.209c-0.002-12.572,4.892-24.391,13.781-33.279L286.244,249.537z M180,286.201   c-44.112,0-80-35.887-80-79.998c0-44.113,35.888-80.002,80-80.002s80,35.889,80,80.002C260,250.314,224.112,286.201,180,286.201z"}),(0,e.createElement)("path",{d:"M425.267,218.734l-0.319-0.32c-0.939-0.941-2.189-1.428-3.541-1.469c-1.326,0-2.598,0.525-3.536,1.465l-21.596,21.596   c-3.304,3.305-7.699,5.125-12.375,5.125c-4.676,0-9.072-1.82-12.379-5.129c-3.307-3.305-5.128-7.701-5.128-12.377   c0.001-4.676,1.821-9.072,5.126-12.377l21.596-21.596c0.939-0.939,1.465-2.213,1.464-3.539c-0.001-1.328-0.53-2.6-1.47-3.537   l-0.314-0.313c-3.605-3.605-8.399-5.592-13.499-5.592c-1.665,0-3.325,0.219-4.936,0.65l-44.348,11.885   c-6.568,1.76-11.741,6.932-13.498,13.496c-0.011,0.041-0.021,0.08-0.031,0.121l-11.817,49.063l-87.667,87.666   c-6.528,6.527-10.122,15.207-10.121,24.44c0.002,9.232,3.598,17.91,10.126,24.439l2.088,2.088   c6.528,6.529,15.209,10.125,24.443,10.125h0c9.231,0,17.909-3.594,24.437-10.121l87.667-87.666l49.061-11.816   c0.041-0.01,0.082-0.022,0.122-0.031c6.563-1.758,11.735-6.928,13.497-13.496l11.883-44.352   C431.959,230.598,430.066,223.535,425.267,218.734z M257.26,368.406c-1.888,1.889-4.399,2.93-7.071,2.93   c-2.671,0-5.183-1.041-7.072-2.932c-1.887-1.885-2.928-4.397-2.928-7.068c-0.001-2.672,1.041-5.185,2.931-7.072   c1.886-1.887,4.398-2.928,7.069-2.928c2.672,0,5.184,1.041,7.072,2.93c1.887,1.885,2.928,4.396,2.928,7.068   C260.189,364.006,259.148,366.518,257.26,368.406z M316.194,305.935L274.82,347.31c-1.416,1.416-3.3,2.197-5.303,2.197   c-2.003,0-3.887-0.781-5.303-2.197c-1.417-1.416-2.197-3.299-2.197-5.303s0.78-3.887,2.197-5.303l41.374-41.375   c1.417-1.418,3.3-2.197,5.303-2.197s3.887,0.779,5.303,2.197c1.417,1.416,2.197,3.299,2.197,5.303S317.611,304.519,316.194,305.935   z"})),verticalLine:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 14.707 14.707"},(0,e.createElement)("rect",{x:"6.275",y:"0",width:"2.158",height:"14.707"})),horizontalLine:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 357 357"},(0,e.createElement)("path",{d:"M357,204H0v-51h357V204z"}))}),p=({classAddDisable:t,content:a,handleFormData:l,emailValid:n,loading:m})=>a?.button.length>0&&(0,e.createElement)("div",{className:"submitBtn"},(0,e.createElement)("button",{onClick:l,className:`${!t&&"disable"}`,disabled:!n},a.button),m&&(0,e.createElement)("div",{className:"loader"}," ",d.loader)),h=({email:t,placeholder:a,setEmail:l,ValidateEmail:n})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("input",{value:t,type:"email",id:"email",name:"email",placeholder:a?.email,onChange:e=>{l(e.target.value),n(e.target.value)}})),g=({elements:t,fName:a,placeholder:l,setFName:n})=>t.fName&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("input",{value:a,type:"text",id:"fname",name:"fname",placeholder:l?.fName,onChange:e=>n(e.target.value)})),u=({elements:t,lName:a,placeholder:l,setLName:n})=>t.lName&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("input",{value:a,type:"text",id:"lname",name:"lname",placeholder:l?.lName,onChange:e=>n(e.target.value)})," "),E=({showNotice:t,message:a})=>t&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"noticeElement"},a)),f=({child:t,classAddDisable:a,elements:l,fName:n,lName:m,email:o,placeholder:r,setFName:i,setLName:c,setEmail:s,ValidateEmail:d,content:f,handleFormData:$,emailValid:b,loading:w,showNotice:N,message:v,attributes:x})=>{const y={elements:l,placeholder:r},{theme:L}=x;return(0,e.createElement)("div",{className:"form"},(0,e.createElement)("div",{className:"left"},"form4"===L&&t),(0,e.createElement)("div",{className:"right"},"form9"===L&&t,(0,e.createElement)(g,{...y,fName:n,setFName:i,placeholder:r}),(0,e.createElement)(u,{...y,lName:m,setLName:c,placeholder:r}),(0,e.createElement)(h,{email:o,setEmail:s,placeholder:r,ValidateEmail:d}),(0,e.createElement)(p,{classAddDisable:a,content:f,handleFormData:$,emailValid:b,loading:w}),(0,e.createElement)(E,{showNotice:N,message:v})))},$=({child:t,classAddDisable:a,elements:l,fName:n,lName:m,email:o,placeholder:r,setFName:i,setLName:c,setEmail:s,ValidateEmail:d,content:f,handleFormData:$,emailValid:b,loading:w,showNotice:N,message:v,attributes:x})=>{const y={elements:l,placeholder:r},{theme:L}=x;return(0,e.createElement)("div",{className:"form"},(0,e.createElement)("div",{className:"left"},"form10"===L&&t,(0,e.createElement)(g,{...y,fName:n,setFName:i,placeholder:r}),(0,e.createElement)(u,{...y,lName:m,setLName:c,placeholder:r}),(0,e.createElement)(h,{email:o,setEmail:s,placeholder:r,ValidateEmail:d}),(0,e.createElement)(p,{classAddDisable:a,content:f,handleFormData:$,emailValid:b,loading:w}),(0,e.createElement)(E,{showNotice:N,message:v})),(0,e.createElement)("div",{className:"right"},"form6"===L&&t))},b={default:({child:t,classAddDisable:a,elements:l,fName:n,lName:m,email:o,placeholder:r,setFName:i,setLName:c,setEmail:s,ValidateEmail:d,content:f,handleFormData:$,emailValid:b,loading:w,showNotice:N,message:v})=>{const x={elements:l,placeholder:r};return(0,e.createElement)("div",{className:"form"},t,(0,e.createElement)(g,{...x,fName:n,setFName:i,placeholder:r}),(0,e.createElement)(u,{...x,lName:m,setLName:c,placeholder:r}),(0,e.createElement)(h,{email:o,setEmail:s,placeholder:r,ValidateEmail:d}),(0,e.createElement)(p,{classAddDisable:a,content:f,handleFormData:$,emailValid:b,loading:w}),(0,e.createElement)(E,{showNotice:N,message:v}))},form1:({attributes:t,child:a,classAddDisable:l,elements:n,email:m,placeholder:o,setEmail:r,ValidateEmail:i,content:c,handleFormData:s,emailValid:g,loading:u,showNotice:f,message:$})=>{const{icon:b}=t;return(0,e.createElement)("div",{className:"form"},n?.icon&&(0,e.createElement)("div",{className:"iconElement"},(0,e.createElement)("div",{className:"icon"},d?.gmail(b?.color))),a,(0,e.createElement)("div",{className:"emailBtnElement"},(0,e.createElement)(h,{email:m,placeholder:o,setEmail:r,ValidateEmail:i}),(0,e.createElement)(p,{classAddDisable:l,content:c,handleFormData:s,emailValid:g,loading:u})),(0,e.createElement)(E,{showNotice:f,message:$}))},form2:({attributes:t,child:a,classAddDisable:l,elements:n,email:m,placeholder:o,setEmail:r,ValidateEmail:i,content:c,handleFormData:s,emailValid:g,loading:u,showNotice:f,message:$})=>{const{icon:b}=t;return(0,e.createElement)("div",{className:"form"},n?.icon&&(0,e.createElement)("div",{className:"iconElement"},(0,e.createElement)("div",{className:"icon"},d?.openGmail(b?.color))),a,(0,e.createElement)("div",{className:"emailBtnElement"},(0,e.createElement)(h,{email:m,placeholder:o,setEmail:r,ValidateEmail:i}),(0,e.createElement)(p,{classAddDisable:l,content:c,handleFormData:s,emailValid:g,loading:u})),(0,e.createElement)(E,{showNotice:f,message:$}))},form3:({child:t,classAddDisable:a,elements:l,fName:n,lName:m,email:o,placeholder:r,setFName:i,setLName:c,setEmail:s,ValidateEmail:d,content:f,handleFormData:$,emailValid:b,loading:w,showNotice:N,message:v})=>(0,e.createElement)("div",{className:"form"},t,(0,e.createElement)("div",{className:"nameElement"},(0,e.createElement)(g,{elements:l,fName:n,placeholder:r,setFName:i}),(0,e.createElement)(u,{elements:l,lName:m,placeholder:r,setLName:c})),(0,e.createElement)("div",{className:"btnElement"},(0,e.createElement)(h,{email:o,placeholder:r,setEmail:s,ValidateEmail:d}),(0,e.createElement)(p,{classAddDisable:a,content:f,handleFormData:$,emailValid:b,loading:w})),(0,e.createElement)(E,{showNotice:N,message:v})),form4:f,form5:({child:t,classAddDisable:a,elements:l,fName:n,lName:m,email:o,placeholder:r,setFName:i,setLName:c,setEmail:s,ValidateEmail:d,content:f,handleFormData:$,emailValid:b,loading:w,showNotice:N,message:v})=>{const x={elements:l,placeholder:r};return(0,e.createElement)("div",{className:"form"},(0,e.createElement)("div",{className:"top"}),(0,e.createElement)("div",{className:"bottom"},t,(0,e.createElement)(g,{...x,fName:n,setFName:i,placeholder:r}),(0,e.createElement)(u,{...x,lName:m,setLName:c,placeholder:r}),(0,e.createElement)(h,{email:o,setEmail:s,placeholder:r,ValidateEmail:d}),(0,e.createElement)(p,{classAddDisable:a,content:f,handleFormData:$,emailValid:b,loading:w}),(0,e.createElement)(E,{showNotice:N,message:v})))},form6:$,form7:({child:t,classAddDisable:a,placeholder:l,email:n,setEmail:m,ValidateEmail:o,content:r,handleFormData:i,emailValid:c,loading:s,showNotice:d,message:g})=>(0,e.createElement)("div",{className:"form"},t,(0,e.createElement)(h,{email:n,setEmail:m,placeholder:l,ValidateEmail:o}),(0,e.createElement)(p,{classAddDisable:a,content:r,handleFormData:i,emailValid:c,loading:s}),(0,e.createElement)(E,{showNotice:d,message:g})),form8:({child:t,classAddDisable:a,email:l,placeholder:n,setEmail:m,ValidateEmail:o,content:r,handleFormData:i,emailValid:c,loading:s,showNotice:d,message:g,attributes:u})=>{const{brandLogo:f,inputLabel:$}=u,{img:b}=f;return(0,e.createElement)("div",{className:"form"},(0,e.createElement)("div",{className:"top"},(0,e.createElement)("div",{className:"left"},t),(0,e.createElement)("div",{className:"right"},(0,e.createElement)("div",{className:"logo"},(0,e.createElement)("img",{src:b?.url,alt:b?.alt})))),(0,e.createElement)("div",{className:"bottom"},(0,e.createElement)("div",{className:"content"},$?.label&&(0,e.createElement)("div",{className:"label"},"Email"),(0,e.createElement)(h,{email:l,setEmail:m,placeholder:n,ValidateEmail:o})),(0,e.createElement)(p,{classAddDisable:a,content:r,handleFormData:i,emailValid:c,loading:s}),(0,e.createElement)(E,{showNotice:d,message:g})))},form9:f,form10:$},w=({theme:t,globalProps:a,attributes:l})=>{var n;const{layout:m}=l,{placement:o}=m,r="floating-top"===o?b.form7:null!==(n=b[t])&&void 0!==n?n:null;return(0,e.createElement)(e.Fragment,null,r?(0,e.createElement)(r,{...a,attributes:l}):(0,e.createElement)("h2",null,"No Theme Selected"))},N={day:864e5,hour:36e5,minute:6e4},v=({attributes:t,children:a})=>{const{elements:l,content:n,placeholder:m,theme:o,message:r,config:i,layout:c,popupBtn:s}=t,{placement:d,popupTimeOut:p,cacheTimeType:h="day",cacheTime:g}=c,{audienceId:u,endpoint_url:E}=i,[f,$]=(0,e.useState)(""),[b,v]=(0,e.useState)(""),[y,L]=(0,e.useState)(""),[F,A]=(0,e.useState)(),[D,V]=(0,e.useState)(),[C,B]=(0,e.useState)(),[M,k]=(0,e.useState)(),[z,S]=(0,e.useState)(!0),[T,I]=(0,e.useState)(!1);(0,e.useEffect)(()=>{const e=localStorage.getItem("modalClosedTime"),t=Date.now();if(!(e&&t-e<g*N[h])){if("auto-popup"===d){const e=setTimeout(()=>{I(!0)},1e3*p);return()=>clearTimeout(e)}"floating-bottom"!==d&&"floating-top"!==d||I(!0)}},[]);const j={child:a,classAddDisable:z,elements:l,fName:b,setFName:v,lName:y,setLName:L,email:f,setEmail:$,placeholder:m,ValidateEmail:e=>{e.match(/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/)?(k(!0),S(!0)):(k(!1),S(!1))},content:n,handleFormData:async()=>{try{A(!0);const e=await fetch(`${mcbData?.ajaxUrl}?action=mcbSubmit_Form_Data&nonce=${mcbData?.nonce}&audienceId=${u}&email=${f}&fName=${b}&lName=${y}&endpoint_url=${E}`);A(!1);const t=await e.json();P(t.status),S(!0),V(!0),setTimeout(()=>{V(!1)},3e3)}catch(e){console.error("Error:",e)}},emailValid:M,loading:F,showNotice:D,message:C},P=t=>{"subscribed"===t?(B((0,e.createElement)("p",{className:"success"},r?.success)),$(""),v(""),L(""),S(!1),k(!0)):B(400===t?(0,e.createElement)("p",{className:"error"},r?.error):404===t?(0,e.createElement)("p",{className:"error"},"Audience Id Not Found!"):502===t?(0,e.createElement)("p",{className:"error"},"Invalid API Key!"):510===t?(0,e.createElement)("p",{className:"error"},"Audience ID Required!"):(0,e.createElement)("p",{className:"error"},"Invalid API Key!"))};return(0,e.createElement)("div",{className:`mcbMailChimp ${o} ${"form9"===o?"form4":""} ${"form10"===o?"form6":""} ${"floating-top"===d?"form7":""}`},"modal"===d?(0,e.createElement)("div",{className:"popupBtnArea"},(0,e.createElement)("button",{className:"popupBtn",onClick:()=>I(!0)},s?.text)):"floating-top"===d||"floating-bottom"===d||"auto-popup"===d?null:(0,e.createElement)(w,{theme:o,globalProps:j,attributes:t}),T&&(0,e.createElement)(x,{setIsOpen:()=>{"modal"!==d&&localStorage.setItem("modalClosedTime",Date.now()),I(!1)},attributes:t},(0,e.createElement)(w,{theme:o,globalProps:j,attributes:t})))},x=({children:t,setIsOpen:a,attributes:l})=>{const{layout:n,closeBtn:m}=l,{colors:o}=m;return(0,e.createElement)("div",{className:"modalArea "+("floating-bottom"===n?.placement?"modalAreaFBottom":"floating-top"===n?.placement?"modalAreaFTop":"modalAreaNatural"),onClick:e=>{e.target.classList.contains("modalArea")&&a()}},(0,e.createElement)("div",{className:"allForms"},(0,e.createElement)("div",{className:"closeIcon",onClick:()=>a()},(r=o?.color,(0,e.createElement)("svg",{fill:r,width:"30px",height:"30px",viewBox:"-6 -6 24 24",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMinYMin",class:"jam jam-close"},(0,e.createElement)("path",{d:"M7.314 5.9l3.535-3.536A1 1 0 1 0 9.435.95L5.899 4.485 2.364.95A1 1 0 1 0 .95 2.364l3.535 3.535L.95 9.435a1 1 0 1 0 1.414 1.414l3.535-3.535 3.536 3.535a1 1 0 1 0 1.414-1.414L7.314 5.899z"})))),t));var r},y=function(e){return e.replace(/<([a-z][a-z0-9]*)\b([^>]*)>/gi,(e,t,a)=>{const l=["style","href","target","rel","class"];return["b","strong","i","em","span","a","br"].includes(t.toLowerCase())?`<${t}${a.replace(/([a-z0-9-]+)=["'][^"']*["']/gi,(e,t)=>l.includes(t.toLowerCase())?e:"")}>`:e.replace(/</g,"&lt;").replace(/>/g,"&gt;")})};document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".wp-block-mcb-mailchimp").forEach(a=>{var l;const n=JSON.parse(a?.dataset?.attributes),m=Boolean(null!==(l=a?.dataset?.mcbpipecheck)&&void 0!==l&&l);(0,t.createRoot)(a).render((0,e.createElement)(e.Fragment,null,(0,e.createElement)(L,{attributes:n,id:a?.id,isPremium:m}))),a?.removeAttribute("data-attributes")})});const L=({attributes:t,id:a,isPremium:l})=>{const{elements:n,content:m,config:o,theme:r,layout:i}=t,{placement:s}=i,{audienceId:d}=o;return d?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(c,{attributes:t,id:a}),(0,e.createElement)(v,{attributes:t,isPremium:l},n.title&&m.title.length>0&&(0,e.createElement)("h2",{dangerouslySetInnerHTML:{__html:y(m?.title)}}),"form7"!==r&&"floating-top"!==s&&n.desc&&m.desc.length>0&&(0,e.createElement)("p",{dangerouslySetInnerHTML:{__html:y(m?.desc)}}))):(0,e.createElement)("span",null)}})();