(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[139],{9237:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/business/contact",function(){return t(3381)}])},3381:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return F}});var r=t(5893),o=t(7294),a=t(4999),s=t(1799),c=t(9415),i=t.n(c),m=t(8746),l=function(){var e=(0,o.useState)(""),n=e[0],t=e[1],a=(0,o.useState)(""),c=a[0],l=a[1],_=(0,o.useState)(""),u=_[0],F=_[1],p=(0,o.useState)(""),f=p[0],h=p[1],d=(0,o.useState)(""),x=d[0],b=d[1],j=(0,o.useState)(null),v=j[0],N=j[1],C=(0,o.useState)(null),g=C[0],k=C[1],w=(0,o.useState)(!1),S=w[0],y=w[1],E=(0,o.useState)(!1),T=E[0],z=E[1],M={scope:"wearables_partnership",name:n,company:c,email:u,subject:f,message:x},P=function(e){return function(n){var t=n.target.value;return e(t)}},Z=function(){T&&k(null)};(0,o.useEffect)((function(){v&&((0,m.hM)("contact-form",{body:(0,s.Z)({},M)},y).then((function(e){k(!0),z(!0)}),(function(e){k(!1)})),y(!0))}),[v]),(0,o.useEffect)((function(){!1===v&&setTimeout((function(){return N(null)}),1e4)}),[v]),(0,o.useEffect)((function(){g&&(t(""),l(""),F(""),h(""),b(""))}),[g]);var G=!1===v?i().Form_error:"",X=g?(0,m.c4)(i().Form_btn,i().Form_btn_success):i().Form_btn,q=S?(X=(0,m.c4)(i().Form_btn,i().Form_btn_spinner),(0,r.jsx)("div",{className:i().Form_spinner})):g?"Sent":"Submit";return(0,r.jsx)("div",{className:i().Form,children:(0,r.jsxs)("div",{className:(0,m.c4)("container",i().Form_container),children:[(0,r.jsx)("h1",{className:i().Form_title,children:"Contact us"}),(0,r.jsxs)("div",{className:i().Form_form,children:[(0,r.jsx)("input",{type:"text",name:"name",value:n,onClick:Z,onChange:P(t),placeholder:"Name"}),(0,r.jsx)("input",{type:"text",name:"company",value:c,onClick:Z,onChange:P(l),placeholder:"Company"}),(0,r.jsx)("input",{type:"email",className:G,name:"email",autoComplete:"email",value:u,onClick:Z,onChange:P(F),placeholder:"Email"}),(0,r.jsx)("input",{type:"text",className:G,name:"subject",value:f,onClick:Z,onChange:P(h),placeholder:"Subject"}),(0,r.jsx)("textarea",{className:G,name:"message",placeholder:"Message",value:x,onClick:Z,onChange:P(b)}),!1===v&&(0,r.jsx)("p",{className:i().Form_errorText,children:"Please fill in the required fields and make sure the email is valid"})]}),(0,r.jsx)("button",{className:X,disabled:g,onClick:function(){return u&&f&&x&&function(e){return/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(e)}(u)?N(!0):N(!1)},children:q})]})})},_=t(9008),u=t.n(_),F=function(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(u(),{children:[(0,r.jsx)("title",{children:"GeoZilla \u2013 Contact Us"}),(0,r.jsx)("meta",{property:"og:title",content:"GeoZilla \u2013 Wear API"},"title"),(0,r.jsx)("meta",{name:"description",content:"Looking to become our partner? Reach out today."}),(0,r.jsx)("link",{rel:"canonical",href:"https://geozilla.com/business/contact/"}),(0,r.jsx)("meta",{property:"og:url",content:"https://geozilla.com/business/contact/"})]}),(0,r.jsx)(a.Z,{children:(0,r.jsx)(l,{})})]})}},9415:function(e){e.exports={Form:"Form_Form____Pz_",Form_container:"Form_Form_container__6HNDd",Form_btn:"Form_Form_btn__bq_MX",Form_btn_spinner:"Form_Form_btn_spinner__7JlKv",Form_btn_success:"Form_Form_btn_success__M3W6z",Form_form:"Form_Form_form__7BZl2",Form_error:"Form_Form_error__hu8Jo",Form_errorText:"Form_Form_errorText__G4mQd",Form_spinner:"Form_Form_spinner__Nmu26",rotate:"Form_rotate__4rMjz",Form_title:"Form_Form_title__be6Bb"}},9008:function(e,n,t){e.exports=t(5443)}},function(e){e.O(0,[824,665,751,807,999,774,888,179],(function(){return n=9237,e(e.s=n);var n}));var n=e.O();_N_E=n}]);