1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,65254,e=>{"use strict";var s=e.i(43476),a=e.i(22016),r=e.i(71645);let l=[{value:"general",label:"General question"},{value:"admissions",label:"Admissions / treatment"},{value:"family",label:"Family programming"},{value:"media",label:"Media inquiry"},{value:"editorial",label:"Editorial / website"},{value:"careers",label:"Careers"}];e.s(["default",0,function({source:e="/contact/"}){let[t,i]=(0,r.useState)(!1),[n,o]=(0,r.useState)(!1),[c,m]=(0,r.useState)(null),[d,f]=(0,r.useState)(""),[u,h]=(0,r.useState)(""),[v,y]=(0,r.useState)(""),[p,x]=(0,r.useState)("general"),[b,j]=(0,r.useState)(""),[g,N]=(0,r.useState)(!1),[S,C]=(0,r.useState)("");async function w(s){if(s.preventDefault(),n)return;o(!0),m(null);let a=l.find(e=>e.value===p)?.label??"General";try{let s=await fetch("/api/submit/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({form:"contact",source:e,subject:`Website contact, ${a}, ${d}`.trim(),replyTo:u,subjectCategory:a,website:S,name:d,email:u,phone:v,message:b,smsConsent:g?"YES":"NO",smsConsentTimestamp:g?new Date().toISOString():""})}),r=await s.json().catch(()=>({}));if(!s.ok||!r.ok)throw Error(r.error||"Submission failed");i(!0)}catch(e){m(e instanceof Error?e.message:"Submission failed. Please call (888) 464-2144.")}finally{o(!1)}}return t?(0,s.jsxs)("aside",{className:"verify-form-card verify-form-success",children:[(0,s.jsx)("div",{className:"verify-form-success-icon","aria-hidden":"true",children:"â"}),(0,s.jsx)("h3",{className:"verify-form-success-title",children:"Message sent"}),(0,s.jsxs)("p",{className:"verify-form-success-body",children:["Weâll respond within one business day. For urgent matters, call"," ",(0,s.jsx)("a",{href:"tel:8884642144",className:"verify-form-success-phone",children:"(888) 464-2144"}),"."]})]}):(0,s.jsxs)("aside",{className:"verify-form-card contact-form-card",children:[(0,s.jsx)("div",{className:"verify-form-title",children:"Send Us a Message"}),(0,s.jsx)("p",{className:"verify-form-sub",children:"We respond to every message within one business day. For urgent admissions inquiries, the 24/7 line is the fastest route."}),(0,s.jsxs)("form",{onSubmit:w,className:"verify-form",noValidate:!0,children:[(0,s.jsxs)("div",{className:"verify-form-grid-2",children:[(0,s.jsxs)("label",{className:"verify-form-row",children:[(0,s.jsxs)("span",{className:"verify-form-label",children:["Name ",(0,s.jsx)("span",{className:"verify-form-required",children:"*"})]}),(0,s.jsx)("input",{type:"text",required:!0,autoComplete:"name",placeholder:"Your name",value:d,onChange:e=>f(e.target.value),className:"verify-form-input"})]}),(0,s.jsxs)("label",{className:"verify-form-row",children:[(0,s.jsx)("span",{className:"verify-form-label",children:"Phone"}),(0,s.jsx)("input",{type:"tel",inputMode:"tel",autoComplete:"tel",placeholder:"(optional)",value:v,onChange:e=>y(e.target.value),className:"verify-form-input"})]})]}),(0,s.jsxs)("label",{className:"verify-form-row",children:[(0,s.jsxs)("span",{className:"verify-form-label",children:["Email ",(0,s.jsx)("span",{className:"verify-form-required",children:"*"})]}),(0,s.jsx)("input",{type:"email",required:!0,autoComplete:"email",placeholder:"[email protected]",value:u,onChange:e=>h(e.target.value),className:"verify-form-input"})]}),(0,s.jsxs)("label",{className:"verify-form-row",children:[(0,s.jsxs)("span",{className:"verify-form-label",children:["Whatâs this about? ",(0,s.jsx)("span",{className:"verify-form-required",children:"*"})]}),(0,s.jsx)("select",{required:!0,value:p,onChange:e=>x(e.target.value),className:"verify-form-input verify-form-select",children:l.map(e=>(0,s.jsx)("option",{value:e.value,children:e.label},e.value))})]}),(0,s.jsxs)("label",{className:"verify-form-row",children:[(0,s.jsxs)("span",{className:"verify-form-label",children:["Message ",(0,s.jsx)("span",{className:"verify-form-required",children:"*"})]}),(0,s.jsx)("textarea",{required:!0,rows:5,placeholder:"Tell us how we can help.",value:b,onChange:e=>j(e.target.value),className:"verify-form-input verify-form-textarea"})]}),(0,s.jsxs)("label",{"aria-hidden":"true",style:{position:"absolute",left:"-10000px",width:1,height:1,overflow:"hidden"},children:["Leave this field blank",(0,s.jsx)("input",{type:"text",tabIndex:-1,autoComplete:"off",value:S,onChange:e=>C(e.target.value)})]}),c&&(0,s.jsx)("div",{role:"alert",className:"scholarship-form-error",children:c}),(0,s.jsxs)("label",{className:"sms-consent",children:[(0,s.jsx)("input",{type:"checkbox",checked:g,onChange:e=>N(e.target.checked),className:"sms-consent-input"}),(0,s.jsxs)("span",{className:"sms-consent-label",children:["I consent to receive text messages from"," ",(0,s.jsx)("strong",{children:"The Archangel Centers"})," about my inquiry and any follow-up needed. Message frequency may vary. Message and data rates may apply. Reply STOP to opt out, HELP for help, or call"," ",(0,s.jsx)("a",{href:"tel:8884642144",className:"sms-consent-link",children:"(888) 464-2144"}),". See our"," ",(0,s.jsx)(a.default,{href:"/privacy-policy/",className:"sms-consent-link",children:"Privacy Policy"})," ","and"," ",(0,s.jsx)(a.default,{href:"/terms-of-service/",className:"sms-consent-link",children:"Terms of Service"}),". Consent is not a condition of treatment."]})]}),(0,s.jsx)("button",{type:"submit",className:"verify-form-submit",disabled:n,"aria-busy":n,children:n?"Sendingâ¦":"Send Message"}),(0,s.jsxs)("p",{className:"verify-form-disclaimer",children:["Your information is kept confidential and never shared with third parties. For Protected Health Information (PHI) or other sensitive medical details, please call our admissions line directly at"," ",(0,s.jsx)("a",{href:"tel:8884642144",style:{color:"var(--color-gold-text)",fontWeight:700,textDecoration:"none"},children:"(888) 464-2144"})," ","rather than submitting it through this form."]})]})]})}])}]);
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.