PageSourceSearch

https://carpoolingwithjesus.com/_next/static/chunks/app/contact/pa…?dpl=dpl_5e28jowkM2SgcFLVdwLWT87APgNT

js carpoolingwithjesus.com collected 2026-09-25 03:34:09 UTC 4,634 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1327],{7496:function(e,t,n){Promise.resolve().then(n.bind(n,1092)),Promise.resolve().then(n.t.bind(n,2972,23))},1092:function(e,t,n){"use strict";n.d(t,{default:function(){return s}});var r=n(7437),a=n(2265);function s(){let[e,t]=(0,a.useState)(""),[n,s]=(0,a.useState)(""),[o,l]=(0,a.useState)(""),[d,i]=(0,a.useState)(!1),[c,b]=(0,a.useState)(""),[u,m]=(0,a.useState)(!1),[x,h]=(0,a.useState)(null),[p,g]=(0,a.useState)(!1);async function f(r){if(r.preventDefault(),h(null),c){g(!0);return}m(!0);try{let r=await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e.trim(),email:n.trim(),message:o.trim(),subscribe:d,honeypot:c})}),b=await r.json();if(!r.ok){var a;h(null!==(a=b.error)&&void 0!==a?a:"Something went wrong. Please try again."),m(!1);return}t(""),s(""),l(""),i(!1),g(!0)}catch(e){console.error(e),h("Couldn't reach the server. Please try again.")}finally{m(!1)}}return p?(0,r.jsxs)("div",{className:"bg-brand-mist rounded-2xl p-8 sm:p-12 text-center",children:[(0,r.jsx)("div",{className:"text-5xl mb-4","aria-hidden":"true",children:"✓"}),(0,r.jsx)("h3",{className:"font-display text-outlined-blue text-3xl sm:text-4xl tracking-wide leading-none mb-4",children:"Message on the way."}),(0,r.jsx)("p",{className:"text-brand-brown text-base sm:text-lg max-w-md mx-auto",children:"I'll read it and get back to you. Talk soon."})]}):(0,r.jsxs)("form",{onSubmit:f,className:"bg-white rounded-2xl border border-brand-brown/10 p-6 sm:p-8",children:[(0,r.jsxs)("div",{"aria-hidden":"true",style:{position:"absolute",left:"-9999px",width:0,height:0,overflow:"hidden"},children:[(0,r.jsx)("label",{htmlFor:"contact-website",children:"Website (leave empty)"}),(0,r.jsx)("input",{id:"contact-website",name:"contact-website",type:"text",tabIndex:-1,autoComplete:"off",value:c,onChange:e=>b(e.target.value)})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 mb-4",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"contact-name",className:"block text-sm font-medium text-brand-brown mb-1",children:"Your name"}),(0,r.jsx)("input",{id:"contact-name",type:"text",required:!0,maxLength:100,value:e,onChange:e=>t(e.target.value),className:"w-full rounded-lg border border-brand-brown/20 px-3 py-2 text-base text-brand-brown placeholder:text-brand-brown/40 focus:outline-none focus:ring-2 focus:ring-brand-blue focus:border-transparent",placeholder:"Sarah"})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("label",{htmlFor:"contact-email",className:"block text-sm font-medium text-brand-brown mb-1",children:"Email"}),(0,r.jsx)("input",{id:"contact-email",type:"email",required:!0,maxLength:200,value:n,onChange:e=>s(e.target.value),className:"w-full rounded-lg border border-brand-brown/20 px-3 py-2 text-base text-brand-brown placeholder:text-brand-brown/40 focus:outline-none focus:ring-2 focus:ring-brand-blue focus:border-transparent",placeholder:"[email protected]"})]})]}),(0,r.jsxs)("div",{className:"mb-2",children:[(0,r.jsx)("label",{htmlFor:"contact-message",className:"block text-sm font-medium text-brand-brown mb-1",children:"Message"}),(0,r.jsx)("textarea",{id:"contact-message",required:!0,rows:5,maxLength:2e3,value:o,onChange:e=>l(e.target.value),className:"w-full rounded-lg border border-brand-brown/20 px-3 py-2 text-base text-brand-brown placeholder:text-brand-brown/40 focus:outline-none focus:ring-2 focus:ring-brand-blue focus:border-transparent resize-y",placeholder:"Tell us what's on your mind..."}),(0,r.jsxs)("p",{className:"text-xs text-brand-brown/60 mt-1 text-right",children:[o.length," / ",2e3]})]}),(0,r.jsxs)("label",{className:"flex items-start gap-3 mt-4 mb-5 cursor-pointer select-none",children:[(0,r.jsx)("input",{type:"checkbox",checked:d,onChange:e=>i(e.target.checked),className:"mt-1 h-4 w-4 rounded border-brand-brown/30 text-brand-blue focus:ring-brand-blue cursor-pointer"}),(0,r.jsx)("span",{className:"text-sm text-brand-brown/85 leading-snug",children:"Also send me the monthly Carpool Unpacked newsletter for parents. One email a month, unsubscribe anytime."})]}),x&&(0,r.jsx)("p",{className:"text-sm text-red-700 bg-red-50 border border-red-100 rounded-lg px-3 py-2 mb-4",children:x}),(0,r.jsx)("button",{type:"submit",disabled:u,className:"w-full sm:w-auto bg-brand-blue hover:bg-brand-blue/90 text-white font-semibold px-7 py-3 rounded-lg transition-colors disabled:opacity-60 disabled:cursor-not-allowed",children:u?"Sending...":"Send message"})]})}}},function(e){e.O(0,[2972,2971,2117,1744],function(){return e(e.s=7496)}),_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.