1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[335],{1382:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contact",function(){return i(3598)}])},6154:function(e,t,i){"use strict";var s=i(5893),l=i(7294),r=i(6040);t.Z=(0,l.forwardRef)(function(e,t){let{children:i,...l}=e;return(0,s.jsx)(r.E.div,{ref:t,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2,ease:"easeInOut"},...l,children:i})})},3598:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return f}});var s=i(5893),l=i(7294),r=i(7536),n=i(6154);let a=(0,l.forwardRef)(function(e,t){let{labelText:i,label:l,register:r,required:n,name:a,type:o,placeholder:d}=e;return(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"font-semibold",children:i}),(0,s.jsx)("input",{className:"flex h-10 w-full rounded-md border border-input bg-[#999999] px-3 py-2 mb-4 mt-2 text-sm font-semibold text-white ring-offset-background placeholder:text-white placeholder:text-opacity-60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",type:o,...r(l,{required:"This field is required"}),id:a,placeholder:d})]})}),o=(0,l.forwardRef)(function(e,t){let{labelText:i,name:l,placeholder:r,register:n,label:a,required:o}=e;return(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"font-semibold",htmlFor:"message",children:i}),(0,s.jsx)("textarea",{className:"flex w-full rounded-md border border-input bg-[#999999] px-3 py-2 mb-4 mt-2 text-sm font-semibold text-white ring-offset-background placeholder:text-white placeholder:text-opacity-60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",...n(a,{required:"This field is required"}),rows:5,id:l,placeholder:r})]})}),d=e=>{let{children:t}=e;return(0,s.jsx)("button",{type:"submit",className:"w-40 inline-flex items-center justify-center rounded-md transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background bg-[var(--fg)] text-black font-bold text-lg py-2 px-4 mx-auto",children:t})},c=e=>{let{children:t}=e;return(0,s.jsx)("p",{className:"text-red-500 text-sm font-semibold relative top-5 left-40",children:t})},u=(e,t)=>{var i,u,f;let[m,x]=(0,l.useState)(!1),[b,p]=(0,l.useState)(!1),[g,h]=(0,l.useState)("SUBMIT"),{register:v,handleSubmit:N,formState:{errors:j}}=(0,r.cI)(),y=async e=>{h("SENDING...");let t=await fetch("/api/sendgrid",{body:JSON.stringify({fullName:e.fullName,email:e.email,message:e.message}),headers:{"Content-Type":"application/json"},method:"POST"}),{error:i}=await t.json();i?(console.log(i),h("SUBMIT"),p(!0),setTimeout(()=>{p(!1)},5e3)):(h("SENT!"),x(!0),setTimeout(()=>{x(!1)},5e3))};return(0,s.jsxs)(n.Z,{ref:t,children:[(0,s.jsx)("h1",{className:"text-center py-6 text-4xl font-extrabold",children:"Contact"}),(0,s.jsxs)("form",{className:"flex flex-col max-w-3xl mx-auto px-4",onSubmit:N(y),children:[(0,s.jsx)(c,{children:null===(i=j.fullName)||void 0===i?void 0:i.message}),(0,s.jsx)(a,{labelText:"NAME*",label:"fullName",register:v,required:!0,type:"text",name:"name",placeholder:"Your Name Here"}),(0,s.jsx)(c,{children:null===(u=j.email)||void 0===u?void 0:u.message}),(0,s.jsx)(a,{labelText:"EMAIL*",label:"email",register:v,required:!0,type:"email",name:"email",placeholder:"Your Email Address Here"}),(0,s.jsx)(c,{children:null===(f=j.message)||void 0===f?void 0:f.message}),(0,s.jsx)(o,{labelText:"YOUR INQUIRY*",label:"message",register:v,required:!0,name:"message",placeholder:"PLEASE BE AS DETAILED AS POSSIBLE IN YOUR MESSAGE!"}),(0,s.jsx)(d,{children:g}),m&&(0,s.jsx)("p",{className:"text-green-500 text-sm font-semibold relative top-2 text-center ",children:"Message sent successfully!"}),b&&(0,s.jsx)("p",{className:"text-red-500 text-sm font-semibold relative top-2 text-center",children:"Message failed to send. Please try again."})]})]})};var f=u}},function(e){e.O(0,[536,774,888,179],function(){return e(e.s=1382)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.