PageSourceSearch

https://trenttownemarket.com/_next/static/chunks/app/(frontend)/contact/page-585d687f3674e92e.js

js trenttownemarket.com collected 2026-10-09 22:09:59 UTC 9,629 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1779],{10801:(e,r,t)=>{Promise.resolve().then(t.t.bind(t,92970,23)),Promise.resolve().then(t.t.bind(t,72631,23)),Promise.resolve().then(t.bind(t,20419))},20419:(e,r,t)=>{"use strict";t.d(r,{ContactForm:()=>h});var a=t(62613),n=t(46961),s=t(99421);let o=(0,s.createServerReference)("6012afce2cf097bd501f4a60159a4d3e16142019c4",s.callServer,void 0,s.findSourceMapURL,"submitContactForm");var l=t(31317),c=t(68043),i=t(88624);let d={success:!1},m="w-full px-4 py-3 rounded-lg bg-white border border-neutral-300 focus:border-primary-700 focus:ring-2 focus:ring-primary-500/20 outline-none transition-colors text-neutral-950 placeholder:text-neutral-400",u="block text-sm font-medium text-neutral-950 mb-1.5";function h(){let e=(0,c.c)(),[r,t,s]=(0,n.useActionState)(o,d),[h,x]=(0,n.useState)(!0),p=(0,n.useCallback)(()=>{x(!1),requestAnimationFrame(()=>x(!0))},[]);return r.success?(0,a.jsx)(l.y,{submissionId:r.submissionId,heading:e.contactForm.successHeading,message:e.contactForm.successMessage,onReset:p}):h?(0,a.jsxs)("form",{action:t,className:"space-y-5",children:[r.error&&(0,a.jsx)("div",{role:"alert",className:"bg-error-light border border-error/30 text-error-dark rounded-lg p-3 text-sm",children:r.error}),(0,a.jsxs)("div",{className:"grid sm:grid-cols-2 gap-5",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{htmlFor:"name",className:u,children:[e.contactForm.nameLabel," ",(0,a.jsx)("span",{className:"text-error",children:e.contactForm.required})]}),(0,a.jsx)("input",{type:"text",id:"name",name:"name",required:!0,className:m,placeholder:e.contactForm.namePlaceholder})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{htmlFor:"email",className:u,children:[e.contactForm.emailLabel," ",(0,a.jsx)("span",{className:"text-error",children:e.contactForm.required})]}),(0,a.jsx)("input",{type:"email",id:"email",name:"email",required:!0,className:m,placeholder:e.contactForm.emailPlaceholder})]})]}),(0,a.jsxs)("div",{className:"grid sm:grid-cols-2 gap-5",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{htmlFor:"phone",className:u,children:[e.contactForm.phoneLabel," ",(0,a.jsx)("span",{className:"text-neutral-600",children:e.contactForm.phoneOptional})]}),(0,a.jsx)("input",{type:"tel",id:"phone",name:"phone",className:m,placeholder:e.contactForm.phonePlaceholder})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{htmlFor:"subject",className:u,children:[e.contactForm.subjectLabel," ",(0,a.jsx)("span",{className:"text-error",children:e.contactForm.required})]}),(0,a.jsxs)("select",{id:"subject",name:"subject",required:!0,defaultValue:"",className:m,children:[(0,a.jsx)("option",{value:"",disabled:!0,children:e.contactForm.subjectPlaceholder}),(0,a.jsx)("option",{value:"general",children:e.contactForm.subjectGeneral}),(0,a.jsx)("option",{value:"vendor",children:e.contactForm.subjectVendor}),(0,a.jsx)("option",{value:"event",children:e.contactForm.subjectEvent}),(0,a.jsx)("option",{value:"partnership",children:e.contactForm.subjectPartnership}),(0,a.jsx)("option",{value:"volunteer",children:e.contactForm.subjectVolunteer}),(0,a.jsx)("option",{value:"media",children:e.contactForm.subjectMedia}),(0,a.jsx)("option",{value:"other",children:e.contactForm.subjectOther})]})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{htmlFor:"referralSource",className:u,children:[e.contactForm.referralLabel," ",(0,a.jsx)("span",{className:"text-neutral-600",children:e.contactForm.referralOptional})]}),(0,a.jsxs)("select",{id:"referralSource",name:"referralSource",defaultValue:"",className:m,children:[(0,a.jsx)("option",{value:"",children:e.contactForm.referralPlaceholder}),(0,a.jsx)("option",{value:"instagram",children:e.contactForm.referralInstagram}),(0,a.jsx)("option",{value:"facebook",children:e.contactForm.referralFacebook}),(0,a.jsx)("option",{value:"google",children:e.contactForm.referralGoogle}),(0,a.jsx)("option",{value:"word-of-mouth",children:e.contactForm.referralWordOfMouth}),(0,a.jsx)("option",{value:"event",children:e.contactForm.referralEvent}),(0,a.jsx)("option",{value:"flyer",children:e.contactForm.referralFlyer}),(0,a.jsx)("option",{value:"other",children:e.contactForm.referralOther})]})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("label",{htmlFor:"message",className:u,children:[e.contactForm.messageLabel," ",(0,a.jsx)("span",{className:"text-error",children:e.contactForm.required})]}),(0,a.jsx)("textarea",{id:"message",name:"message",required:!0,rows:5,className:"".concat(m," resize-y"),placeholder:e.contactForm.messagePlaceholder})]}),(0,a.jsxs)("div",{"aria-hidden":"true",className:"absolute opacity-0 -z-10 h-0 overflow-hidden",children:[(0,a.jsx)("label",{htmlFor:"website",children:e.contactForm.honeypotLabel}),(0,a.jsx)("input",{type:"text",id:"website",name:"website",tabIndex:-1,autoComplete:"off"})]}),(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("input",{type:"checkbox",id:"consent",name:"consent",required:!0,className:"mt-1 h-4 w-4 roun
1ded border-neutral-300 text-primary-700 focus:ring-primary-500"}),(0,a.jsxs)("label",{htmlFor:"consent",className:"text-sm text-neutral-700",children:[e.contactForm.privacyConsent," ",(0,a.jsx)("a",{href:"/privacy",target:"_blank",className:"underline text-primary-700 hover:opacity-80",children:e.contactForm.privacyPolicy})," ",e.contactForm.privacyAnd," ",(0,a.jsx)("a",{href:"/terms",target:"_blank",className:"underline text-primary-700 hover:opacity-80",children:e.contactForm.termsOfUse})," ",(0,a.jsx)("span",{className:"text-error",children:e.contactForm.required})]})]}),(0,a.jsx)(i.v,{resetOn:r}),(0,a.jsx)("button",{type:"submit",disabled:s,className:"w-full bg-primary-700 text-white py-3.5 rounded-lg font-semibold text-lg hover:opacity-90 transition-opacity disabled:opacity-50 disabled:cursor-not-allowed",children:s?e.contactForm.submitting:e.contactForm.submit})]}):null}},31317:(e,r,t)=>{"use strict";t.d(r,{y:()=>o});var a=t(62613),n=t(92970),s=t.n(n);function o(e){let{submissionId:r,heading:t="Submission Confirmed",message:n="Thank you for reaching out. We’ll get back to you soon.",onReset:o}=e;return(0,a.jsxs)("div",{role:"status","aria-live":"polite",className:"bg-primary-100 border border-primary-300 rounded-xl p-8 md:p-10 text-center",children:[(0,a.jsx)("div",{className:"flex justify-center mb-5",children:(0,a.jsx)("div",{className:"w-16 h-16 rounded-full bg-primary-200 flex items-center justify-center",children:(0,a.jsx)("svg",{className:"w-8 h-8 text-primary-700",fill:"none",stroke:"currentColor",strokeWidth:2.5,viewBox:"0 0 24 24","aria-hidden":"true",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.5 12.75l6 6 9-13.5"})})})}),(0,a.jsx)("h3",{className:"text-2xl font-heading text-primary-700 mb-2",children:t}),null!=r&&(0,a.jsxs)("p",{className:"text-sm text-neutral-600 mb-4",children:["Confirmation"," ",(0,a.jsxs)("span",{className:"font-semibold text-neutral-700",children:["#",r]})]}),(0,a.jsx)("p",{className:"text-neutral-700 leading-relaxed max-w-md mx-auto mb-8",children:n}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row justify-center gap-3",children:[(0,a.jsx)(s(),{href:"/",className:"inline-block border-2 border-primary-700 text-primary-700 px-5 py-2.5 rounded-lg font-semibold text-sm hover:bg-primary-700 hover:text-white transition-colors",children:"Go Home"}),(0,a.jsx)(s(),{href:"/events",className:"inline-block border-2 border-accent-500 text-accent-500 px-5 py-2.5 rounded-lg font-semibold text-sm hover:bg-accent-500 hover:text-white transition-colors",children:"Browse Events"}),o&&(0,a.jsx)("button",{type:"button",onClick:o,className:"inline-block bg-primary-700 text-white px-5 py-2.5 rounded-lg font-semibold text-sm hover:opacity-90 transition-opacity",children:"Submit Another"})]})]})}},74271:(e,r,t)=>{"use strict";var a=t(92391);t.o(a,"useParams")&&t.d(r,{useParams:function(){return a.useParams}}),t.o(a,"usePathname")&&t.d(r,{usePathname:function(){return a.usePathname}}),t.o(a,"useRouter")&&t.d(r,{useRouter:function(){return a.useRouter}}),t.o(a,"useSearchParams")&&t.d(r,{useSearchParams:function(){return a.useSearchParams}})},88624:(e,r,t)=>{"use strict";t.d(r,{v:()=>c});var a=t(62613),n=t(46961),s=t(68043);let o=t(27029).env.NEXT_PUBLIC_TURNSTILE_SITE_KEY,l=null;function c(e){let{resetOn:r}=e,{locale:t}=(0,s.Y)(),c=(0,n.useRef)(null),i=(0,n.useRef)(null);return((0,n.useEffect)(()=>{if(!o||!c.current)return;let e=!1;return(window.turnstile?Promise.resolve():(null!=l||(l=new Promise((e,r)=>{let t=document.createElement("script");t.src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",t.async=!0,t.onload=()=>e(),t.onerror=()=>{l=null,r(Error("Turnstile failed to load"))},document.head.appendChild(t)})),l)).then(()=>{!e&&c.current&&window.turnstile&&(i.current=window.turnstile.render(c.current,{sitekey:o,language:t,theme:"light",size:"flexible"}))}).catch(()=>{}),()=>{e=!0,i.current&&window.turnstile&&window.turnstile.remove(i.current),i.current=null}},[t]),(0,n.useEffect)(()=>{i.current&&window.turnstile&&window.turnstile.reset(i.current)},[r]),o)?(0,a.jsx)("div",{ref:c,className:"min-h-[65px]"}):null}},99421:(e,r,t)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),!function(e,r){for(var t in r)Object.defineProperty(e,t,{enumerable:!0,get:r[t]})}(r,{callServer:function(){return a.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return n.findSourceMapURL}});let a=t(26622),n=t(56378),s=t(40535)}},e=>{e.O(0,[2970,2631,8043,9156,9756,7358],()=>e(e.s=10801)),_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.