1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[335],{8105:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contact",function(){return s(5484)}])},8172:function(e,t,s){"use strict";s.d(t,{Z:function(){return n}});var a=s(5893);function n(e){let{messages:t}=e;return(0,a.jsx)("div",{className:"overflow-hidden",children:null==t?void 0:t.map(e=>(0,a.jsx)("h2",{className:"text-textgreen text-center text-2xl font-semibold md:text-5xl whitespace-normal p-2",children:e.text},e.id))})}},5484:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSG:function(){return u},default:function(){return h}});var a=s(5893),n=s(7294),l=s(5121),r=s(9008),i=s.n(r),o=s(2283),c=s(9457),d=s(4488);function m(e){let{contacts:t}=e;return(0,a.jsx)("section",{className:"bg-white py-20",children:null==t?void 0:t.map((e,t)=>(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:" w-5/6 mx-auto md:text-left flex flex-row flex-wrap",children:[(0,a.jsx)("img",{className:"w-20 my-auto ",src:"about.svg",alt:" Contact Us icon","aria-label":"Contact Us icon",title:"Contact Us icon"}),(0,a.jsx)("h1",{className:"md:pl-6 text-forestgreen font-bold text-6xl ",children:e.title})]}),(0,a.jsx)("p",{"aria-label":"Contact Us page intro",className:" w-5/6 mx-auto text-forestgreen font-bold text-xl pt-4 ",children:e.subt
1itle}),e.phoneNumber&&(0,a.jsx)("div",{className:"w-5/6 mx-auto text-forestgreen text-xl pt-4 flex items-center",children:(0,a.jsx)("a",{className:"font-medium hover:underline text-lg md:text-xl ",href:"tel:"+e.phoneNumber,children:e.phoneNumber})}),e.emailAddress&&(0,a.jsx)("div",{className:"w-5/6 mx-auto text-forestgreen text-lg md:text-xl flex items-center",children:(0,a.jsx)("a",{className:"font-medium hover:underline",href:"mailto:"+e.emailAddress,children:e.emailAddress})})]},t))})}var x=s(8172),u=!0;function h(e){let{links:t,contacts:s,forms:r,logos:u,messages:h}=e,g=h.slice(0,1),[f,p]=(0,n.useState)(""),[b,j]=(0,n.useState)(""),[v,N]=(0,n.useState)(""),[w,y]=(0,n.useState)(!1),[_,C]=(0,n.useState)(""),k=async e=>{e.preventDefault();try{let e=function(){let e="C73Fguh3oHwj3T8R82pc",t="dev-discover-ashfield-heartcore";if(!e||!t)throw Error("API key or project alias is missing in environment variables.");return{"Api-Key":e,"Umb-Project-Alias":t}}(),t=await l.Z.post("https://api.umbraco.io/forms/c0f6b0fd-715e-4f49-9f7a-4e2b24f8ce59/entries",{name:f,email:b,message:v},{headers:e});console.log("Response from Umbraco Heartcore:",t.data),p(""),j(""),N(""),y(!0),C("We appreciate that you've taken the time to write us. We'll get back to you very soon.")}catch(e){console.error("Error sending data:",e)}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i(),{children:[(0,a.jsx)("title",{children:"Contact | Discover Ashfield"}),(0,a.jsx)("meta",{name:"description",content:"Contact us form"}),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,a.jsx)("link",{rel:"icon",href:"/favicon.svg"})]}),(0,a.jsxs)(o.Z,{pageTitle:"Contact Page",children:[t.length>0&&(0,a.jsx)(c.Z,{links:t}),(0,a.jsx)("div",{className:"pt-12 md:pt-32 bg-forestgreen"}),s.length>0&&(0,a.jsx)(m,{contacts:s}),(0,a.jsxs)("section",{className:"bg-forestgreen py-20 px-4",children:[(0,a.jsx)("form",{onSubmit:k,children:(0,a.jsx)("div",{className:"lg:w-1/2 md:w-2/3 mx-auto",children:(0,a.jsxs)("div",{className:"flex flex-wrap -m-2",children:[(0,a.jsx)("div",{className:"p-2 w-1/2",children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("label",{htmlFor:"name",className:"leading-7 text-sm text-white",children:"Name"}),(0,a.jsx)("input",{type:"text",id:"name",name:"name",className:"w-full bg-gray-100 rounded border border-gray-300 focus:border-indigo-500 text-base outline-none text-gray-700 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out",value:f,onChange:e=>p(e.target.value),placeholder:"Your name"})]})}),(0,a.jsx)("div",{className:"p-2 w-1/2",children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("label",{htmlFor:"email",className:"leading-7 text-sm text-white",children:"Email"}),(0,a.jsx)("input",{type:"email",id:"email",name:"email",className:"w-full bg-gray-100 rounded border border-gray-300 focus:border-indigo-500 text-base outline-none text-gray-700 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out",value:b,onChange:e=>j(e.target.value),placeholder:"[email protected]"})]})}),(0,a.jsx)("div",{className:"p-2 w-full",children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("label",{htmlFor:"message",className:"leading-7 text-sm text-white",children:"Message"}),(0,a.jsx)("textarea",{id:"message",name:"message",className:"w-full bg-gray-100 rounded border border-gray-300 focus:border-indigo-500 h-32 text-base outline-none text-gray-700 py-1 px-3 resize-none leading-6 transition-colors duration-200 ease-in-out",value:v,onChange:e=>N(e.target.value),placeholder:"Please enter your message"})]})}),(0,a.jsx)("div",{className:"p-2 w-full",children:(0,a.jsx)("button",{type:"submit",title:"Submit button",className:"flex mx-auto text-forestgreen font-bold bg-mintgreen border-0 py-2 px-8 focus:outline-none rounded text-lg",children:"Submit"})})]})})}),w&&(0,a.jsx)("p",{className:"text-mintgreen font-bold my-2 text-center",children:_})]}),(0,a.jsxs)("section",{className:"bg-white pt-20",children:[(0,a.jsx)("div",{className:"w-5/6 mx-auto",children:g.length>0&&(0,a.jsx)(x.Z,{messages:g})}),(0,a.jsx)("img",{className:"w-full md:block md:pt-20 bottom-0",src:"achfield.svg",alt:"Ashfield graphic",title:"Ashfield graphic"})]}),t.length>0&&(0,a.jsx)(d.Z,{links:t,logos:u})]})]})}}},function(e){e.O(0,[229,121,435,774,888,179],function(){return e(e.s=8105)}),_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.