PageSourceSearch

https://codellmrunningcrews.vercel.app/_next/static/chunks/pages/contact-ae3b505e84e843ae.js

js codellmrunningcrews.vercel.app collected 2026-10-03 05:18:31 UTC 6,839 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[364],{1961:(e,s,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/contact",function(){return a(6431)}])},6431:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>m});var t=a(7876);a(4431);var n=a(4232),r=a(7328),o=a.n(r),l=a(2709),i=a(4597);let c=e=>{let{title:s="HOW CAN WE HELP YOU?",subtitle:a="We love to connect with the global running community. Let us know what's on your mind.",backgroundImage:n}=e;return(0,t.jsx)(i.A,{title:s,subtitle:a,backgroundImage:n,pageType:"contact"})},m=()=>{let[e,s]=(0,n.useState)({name:"",email:"",subject:"",message:"",honeypot:""}),a=(0,n.useRef)(null),r="0x4AAAAAABq_wbebLtwHGOmZ",[i,m]=(0,n.useState)({}),[u,d]=(0,n.useState)({type:"idle"});(0,n.useEffect)(()=>(document.body.classList.add("contact-page"),()=>{document.body.classList.remove("contact-page")}),[]),(0,n.useEffect)(()=>{let e="localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname||window.location.hostname.includes("localhost");console.log("Contact Form Turnstile Environment Check:",{NODE_ENV:"production",hostname:window.location.hostname,isDevelopment:e,usingTestKeys:e,siteKey:r?"".concat(r.substring(0,10),"..."):"NOT_FOUND",siteKeyLength:r.length||0,isValidFormat:r.startsWith("1x")||r.startsWith("0x")}),e&&console.log("\uD83E\uDDEA Contact Form: Using test Turnstile keys for development - all verifications will pass"),r||console.error("Contact Form: Turnstile site key is missing! Check environment variables.")},[r]);let h=e=>{let{name:a,value:t}=e.target;s(e=>({...e,[a]:t})),i[a]&&m(e=>({...e,[a]:void 0}))},g=async t=>{if(t.preventDefault(),e.honeypot&&""!==e.honeypot.trim())return void d({type:"error",message:"Submission blocked. Please try again."});if((()=>{let s={};return e.name.trim()?e.name.trim().length<2&&(s.name="Name must be at least 2 characters"):s.name="Name is required",e.email.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.email)||(s.email="Please enter a valid email address"):s.email="Email is required",e.subject||(s.subject="Please select a topic"),e.message.trim()?e.message.trim().length<10&&(s.message="Message must be at least 10 characters"):s.message="Message is required",m(s),0===Object.keys(s).length})()){d({type:"loading"});try{var n,r;let t=null==(n=a.current)?void 0:n.getResponse();if(!t)return void d({type:"error",message:"Please complete the security verification."});let o=await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...e,turnstileToken:t})}),l=await o.json();o.ok&&l.success?(d({type:"success",message:l.message||"Thank you for your message! We'll get back to you within 2-3 business days."}),s({name:"",email:"",subject:"",message:"",honeypot:""}),null==(r=a.current)||r.reset()):d({type:"error",message:l.message||"Something went wrong. Please try again."})}catch(e){d({type:"error",message:"Network error. Please check your connection and try again."})}}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(o(),{children:[(0,t.jsx)("title",{children:"Contact Us - RunningCrews"}),(0,t.jsx)("meta",{name:"description",content:"Get in touch with RunningCrews for partnerships, crew submissions, or general inquiries. We're here to help connect the global running community."}),(0,t.jsx)("meta",{name:"keywords",content:"contact, running crews, partnerships, sponsorship, collaboration, support"})]}),(0,t.jsx)(c,{}),(0,t.jsx)("main",{children:(0,t.jsx)("div",{className:"container",children:(0,t.jsxs)("div",{className:"standard-box standard-box-content content-card-form",children:[(0,t.jsx)("div",{className:"content-header",children:(0,t.jsx)("h2",{className:"text-heading-section",children:"Send us a message"})}),"success"===u.type&&(0,t.jsx)("div",{className:"status-message status-success",children:u.message}),"error"===u.type&&(0,t.jsx)("div",{className:"status-message status-error",children:u.message}),(0,t.jsxs)("form",{onSubmit:g,className:"contact-form",children:[(0,t.jsxs)("div",{className:"form-field",children:[(0,t.jsx)("label",{htmlFor:"name",className:"form-label",children:"Your Name"}),(0,t.jsx)("input",{type:"text",id:"name",name:"name",value:e.name,onChange:h,className:"form-input ".concat(i.name?"error":""),placeholder:"Enter your name",required:!0}),i.name&&(0,t.jsx)("p",{className:"form-error",children:i.name})]}),(0,t.jsxs)("div",{className:"form-field",children:[(0,t.jsx)("label",{htmlFor:"email",className:"form-label",children:"Email"}),(0,t.jsx)("input",{type:"email",id:"email",name:"email",value:e.email,onChange:h,className:"form-input ".concat(i.email?"error":""),placeholder:"Enter your email address",required:!0}),i.email&&(0,t.jsx)("p",{className:"form-error",children:i.email})]}),(0,t.jsxs)("div",{className:"form-field",children:[(0,t.jsx)("label",{htmlFor:"subject",className:"form-label",children:"My topic is..."}),(0,t.jsx)("select",{id:"subject",name:"subject",value:e.subject,onChange:h,className:"form-select ".concat(i.subject?"error":""),required:!0,children:[{value:"",label:"Cho
1ose topic"},{value:"general",label:"General Inquiry"},{value:"sponsoring",label:"Sponsoring & Partnerships"},{value:"cooperation",label:"Cooperation & Collaboration"},{value:"technical",label:"Technical Support"},{value:"media",label:"Media & Press"},{value:"other",label:"Other"}].map(e=>(0,t.jsx)("option",{value:e.value,children:e.label},e.value))}),i.subject&&(0,t.jsx)("p",{className:"form-error",children:i.subject})]}),(0,t.jsxs)("div",{className:"form-field",children:[(0,t.jsx)("label",{htmlFor:"message",className:"form-label",children:"Message"}),(0,t.jsx)("textarea",{id:"message",name:"message",rows:4,value:e.message,onChange:h,className:"form-textarea ".concat(i.message?"error":""),placeholder:"Your message here...",required:!0}),i.message&&(0,t.jsx)("p",{className:"form-error",children:i.message})]}),(0,t.jsxs)("div",{className:"honeypot-field",children:[(0,t.jsx)("label",{htmlFor:"honeypot",children:"Leave this field empty"}),(0,t.jsx)("input",{type:"text",id:"honeypot",name:"honeypot",value:e.honeypot||"",onChange:h,tabIndex:-1,autoComplete:"off"})]}),(0,t.jsx)("div",{className:"turnstile-container",children:(0,t.jsx)(l.Xs,{ref:a,siteKey:r||"",onVerify:()=>console.log("Contact Form: Turnstile verification successful"),onError:e=>console.error("Contact Form: Turnstile error:",e)})}),(0,t.jsx)("button",{type:"submit",disabled:"loading"===u.type,className:"submit-button",children:"loading"===u.type?"Sending...":(0,t.jsxs)(t.Fragment,{children:["Submit",(0,t.jsx)("svg",{className:"submit-button-icon",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 19l9 2-9-18-9 18 9-2zm0 0v-8"})})]})})]})]})})})]})}}},e=>{e.O(0,[96,76,636,593,792],()=>e(e.s=1961)),_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.