1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[364],{5276:(e,a,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/contact",function(){return s(6922)}])},6922:(e,a,s)=>{"use strict";s.r(a),s.d(a,{default:()=>y});var t=s(7876),r=s(7452),i=s(7132),l=s(7514),n=s(3771),o=s(4232),m=s(5565);function d(e){let{className:a,...s}=e;return(0,t.jsx)("textarea",{"data-slot":"textarea",className:(0,m.cn)("text-gray-900 border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",a),...s})}var c=s(7328),h=s.n(c),x=s(4587),g=s.n(x),p=s(8230),N=s.n(p),u=s(3646);let y=()=>{let[e,a]=(0,o.useState)({firstName:"",lastName:"",email:"",phoneNumber:"",message:"",firstNationsIdentifying:!1,agreeToPolicy:!1}),[s,m]=(0,o.useState)(!1),[c,x]=(0,o.useState)(!1),[p,y]=(0,o.useState)(""),[b,f]=(0,o.useState)({}),[j,v]=(0,o.useState)(!1),T=e=>{let{name:s,value:t}=e.target;a(e=>({...e,[s]:t})),b[s]&&f(e=>({...e,[s]:void 0}))},w=(e,s)=>{a(a=>({...a,[s]:!!e})),"agreeToPolicy"===s&&b.agreeToPolicy&&f(e=>({...e,agreeToPolicy:void 0}))},P=async s=>{if(s.preventDefault(),(()=>{let a={};return e.firstName.trim()||(a.firstName="First name is required."),e.lastName.trim()||(a.lastName="Last name is required."),e.email.trim()?/\S+@\S+\.\S+/.test(e.email)||(a.email="Please enter a valid email address."):a.email="Email is required.",e.phoneNumber.trim()?/^\d{8,15}$/.test(e.phoneNumber.replace(/\D/g,""))||(a.phoneNumber="Please enter a valid phone number."):a.phoneNumber="Phone number is required.",e.message.trim()||(a.message="Message is required."),e.agreeToPolicy||(a.agreeToPolicy="You must agree to the Privacy Policy."),f(a),0===Object.keys(a).length})()){m(!0),y("");try{let s=await fetch("/api/freshdesk-contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),t=await s.json();s.ok?((0,u.aO)("website"),x(!0),a({firstName:"",lastName:"",email:"",phoneNumber:"",message:"",firstNationsIdentifying:!1,agreeToPolicy:!1})):y(t.error||"Failed to send message. Please try again.")}catch(e){y("Network error. Please try again.")}finally{m(!1)}}};return c?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(h(),{children:[(0,t.jsx)("title",{children:"Contact Us - Together for Treaty"}),(0,t.jsx)("meta",{name:"description",content:"Get in touch with the Together for Treaty campaign"})]}),(0,t.jsx)("div",{className:"mx-auto max-w-2xl px-4 sm:px-6 lg:px-8 bg-white py-16 pb-32",children:(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("h2",{className:"text-4xl font-bold tracking-tight text-gray-900 mb-4",children:"Thank you!"}),(0,t.jsx)("p",{className:"text-lg text-gray-600 mb-6",children:"Your message has been sent successfully. We'll get back to you soon."}),(0,t.jsx)(N(),{href:"/",children:(0,t.jsx)(r.A,{variant:"primary",className:"font-sans",children:"Go To Homepage"})})]})})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(h(),{children:[(0,t.jsx)("title",{children:"Contact Us - Together for Treaty"}),(0,t.jsx)("meta",{name:"description",content:"Get in touch with the Together for Treaty campaign"})]}),(0,t.jsxs)("div",{className:"min-h-screen py-12 relative overflow-hidden",style:{backgroundColor:"#f27419"},children:[(0,t.jsx)("div",{className:"absolute inset-0 transition-opacity duration-1000 ".concat(j?"opacity-70":"opacity-0"),children:(0,t.jsx)(g(),{src:"/images/christopher-ragland-carving.jpg",alt:"Christopher Ragland carving",fill:!0,className:"object-cover",priority:!0,onLoad:()=>v(!0)})}),(0,t.jsx)("div",{className:"relative z-10 max-w-2xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,t.jsxs)("div",{className:"relative bg-white/95 backdrop-blur-sm rounded-lg shadow-xl p-8",children:[(0,t.jsxs)("div",{className:"relative overflow-hidden lg:col-span-2 mb-8",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-0 sm:hidden","aria-hidden":"true"}),(0,t.jsx)("h2",{className:"text-2xl font-bold mb-2 text-black",children:"Get In Touch"}),(0,t.jsx)("p",{className:"mt-6 text-base text-gray-600",children:"Have a question or want to get involved? We'd love to hear from you. Fill out the form or use the contact details below."})]}),(0,t.jsxs)("div",{className:"lg:col-span-4",children:[p&&(0,t.jsx)("div",{className:"mb-4 p-4 bg-red-50 border border-red-200 rounded-md",children:(0,t.jsx)("p",{className:"text-red-800",children:p})}),(0,t.jsxs)("form",{onSubmit:P,className:"space-y-6",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-x-6 gap-y-4 sm:grid-cols-2",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(n.J,{htmlFor:"firstName",children:"First name"}),(0,t.jsx)(l.p,{type:"text",name:"firstName",id:"firstName",value:e.firstName,onChange:T,placeholder:"First name",className:b.firstName?"border-red-500":""}),b.firstName&&(0,t.jsx)("p",{className:"text-red-500 text-sm mt-1",children:b.firstName})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(n.J,{htmlFor:"lastName",children:"Last name"}),(0,t.jsx)(l.p,{type:"text",name:"lastName",id:"lastName",value:e.lastName,onChange:T,placeholder:"Last name",className:b.lastName?"border-red-500":""}),b.lastName&&(0,t.jsx)("p",{className:"text-red-500 text-sm mt-1",children:b.lastName})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(n.J,{htmlFor:"email",children:"Email"}),(0,t.jsx)(l.p,{type:"email",name:"email",id:"email",value:e.email,onChange:T,placeholder:"Email",className:b.email?"border-red-500":""}),b.email&&(0,t.jsx)("p",{className:"text-red-500 text-sm mt-1",children:b.email})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(n.J,{htmlFor:"phoneNumber",children:"Phone number"}),(0,t.jsx)(l.p,{type:"tel",name:"phoneNumber",id:"phoneNumber",value:e.phoneNumber,onChange:T,placeholder:"Phone number",className:b.phoneNumber?"border-red-500":""}),b.phoneNumber&&(0,t.jsx)("p",{className:"text-red-500 text-sm mt-1",children:b.phoneNumber})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(n.J,{htmlFor:"message",children:"Message"}),(0,t.jsx)(d,{name:"message",id:"message",rows:4,value:e.message,onChange:T,placeholder:"Message",className:b.message?"border-red-500":""}),b.message&&(0,t.jsx)("p",{className:"text-red-500 text-sm mt-1",children:b.message})]}),(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)(i.S,{id:"firstNationsIdentifying",name:"firstNationsIdentifying",className:"h-4 w-4 roun
1ded border-gray-300 text-primary-600 focus:ring-primary-500",checked:e.firstNationsIdentifying,onCheckedChange:e=>w(e,"firstNationsIdentifying")}),(0,t.jsx)("div",{className:"ml-3 text-sm",children:(0,t.jsx)(n.J,{htmlFor:"firstNationsIdentifying",className:"font-medium text-gray-700",children:"Are you Aboriginal and/or Torres Strait Islander?"})})]}),(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)(i.S,{id:"agreeToPolicy",name:"agreeToPolicy",className:"h-4 w-4 rounded border-gray-300 text-primary-600 focus:ring-primary-500",checked:e.agreeToPolicy,onCheckedChange:e=>w(e,"agreeToPolicy")}),(0,t.jsx)("div",{className:"ml-3 text-sm",children:(0,t.jsxs)(n.J,{htmlFor:"agreeToPolicy",className:"font-medium text-gray-700",children:["I agree to the"," ",(0,t.jsx)(N(),{href:"/privacy-policy",className:"text-primary-600 hover:text-primary-700",children:"Privacy Policy"})]})}),b.agreeToPolicy&&(0,t.jsx)("p",{className:"text-red-500 text-sm mt-1 ml-3",children:b.agreeToPolicy})]}),(0,t.jsx)("div",{className:"flex mt-4",children:(0,t.jsx)(r.A,{type:"submit",variant:"primary",size:"md",fullWidth:!0,className:"mt-4 font-sans",disabled:s,children:s?"Sending...":"Send message"})})]})]})]})})]})]})}},7328:(e,a,s)=>{e.exports=s(9269)}},e=>{e.O(0,[636,593,792],()=>e(e.s=5276)),_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.