1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3188],{8529:(e,a,t)=>{"use strict";t.d(a,{TrainingInquiryForm:()=>d});var s=t(5155),n=t(2115);let i=["Alpharetta, GA","Brentwood, TN","Charlotte, NC","Delray Beach, FL","Jacksonville, FL","St. Johns, FL","Palm Beach Gardens, FL","Southlake, TX","Tampa, FL","Winter Park, FL","Other"],l=["Referral","Instagram","TikTok","Facebook","Google","Sage website","Other"],r=["Yes, I own one","Yes, I work at one","No, but I plan to launch one","No"],o="mt-2 min-h-[48px] w-full rounded-[8px] border border-black/10 bg-white/55 px-4 text-sm text-sage-ink placeholder:text-sage-muted/70 outline-none transition focus:border-sage-olive focus:bg-white";function d(){let[e,a]=(0,n.useState)("idle"),[t,d]=(0,n.useState)("");async function u(e){e.preventDefault(),a("sending"),d("");let t=Object.fromEntries(new FormData(e.currentTarget).entries()),s=await fetch("/api/training",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),n=await s.json();if(!s.ok){a("error"),d(n.message||"Unable to send your inquiry right now.");return}e.currentTarget.reset(),a("success"),d(n.message||"Your training inquiry has been sent.")}return(0,s.jsxs)("form",{onSubmit:u,className:"grid gap-5 rounded-[10px] border border-black/10 bg-sage-cream p-5 shadow-sm md:grid-cols-2 md:p-7",children:[(0,s.jsx)(c,{id:"fullName",label:"First & Last Name*",placeholder:"Write your full name"}),(0,s.jsx)(c,{id:"email",label:"Email Address*",placeholder:"Write your email address",type:"email"}),(0,s.jsxs)("label",{className:"block text-sm font-medium text-sage-ink",htmlFor:"headspaStatus",children:["Do you currently own or work at a HeadSpa?*",(0,s.jsxs)("select",{id:"headspaStatus",name:"headspaStatus",required:!0,className:o,defaultValue:"",children:[(0,s.jsx)("option",{value:"",disabled:!0,className:"text-sage-ink",children:"Select one"}),r.map(e=>(0,s.jsx)("option",{value:e,className:"text-sage-ink",children:e},e))]})]}),(0,s.jsx)(c,{id:"location",label:"Where are you located?*",placeholder:"City, State"}),(0,s.jsx)(c,{id:"trainingTimeline",label:"When are you looking to be trained?*",placeholder:"Example: within 30 days"}),(0,s.jsxs)("label",{className:"block text-sm font-medium text-sage-ink",htmlFor:"trainingLocation",children:["Which Sage location are you interested in training at?*",(0,s.jsxs)("select",{id:"trainingLocation",name:"trainingLocation",required:!0,className:o,defaultValue:"",children:[(0,s.jsx)("option",{value:"",disabled:!0,className:"text-sage-ink",children:"Select a location"}),i.map(e=>(0,s.jsx)("option",{value:e,className:"text-sage-ink",children:e},e))]})]}),(0,s.jsxs)("label",{className:"block text-sm font-medium text-sage-ink md:col-span-2",htmlFor:"source",children:["How did you find us?*",(0,s.jsxs)("select",{id:"source",name:"source",required:!0,className:o,defaultValue:"",children:[(0,s.jsx)("option",{value:"",disabled:!0,className:"text-sage-ink",children:"Select one"}),l.map(e=>(0,s.jsx)("option",{value:e,className:"text-sage-ink",children:e},e))]})]}),t?(0,s.jsx)("p",{className:"rounded-[8px] px-4 py-3 text-sm md:col-span-2 ".concat("success"===e?"bg-sage-olive/15 text-sage-ink":"bg-red-100 text-red-900"),role:"status",children:t}):null,(0,s.jsxs)("button",{type:"submit",disabled:"sending"===e,className:"sage-cta md:col-span-2 disabled:cursor-not-allowed disabled:opacity-70",children:["sending"===e?"Sending...":"Submit Training Inquiry"," ",(0,s.jsx)("span",{"aria-hidden":"true",children:"->"})]})]})}
1function c(e){let{id:a,label:t,placeholder:n,type:i="text"}=e;return(0,s.jsxs)("label",{className:"block text-sm font-medium text-sage-ink",htmlFor:a,children:[t,(0,s.jsx)("input",{id:a,name:a,type:i,required:!0,placeholder:n,className:o})]})}},9963:(e,a,t)=>{Promise.resolve().then(t.t.bind(t,2619,23)),Promise.resolve().then(t.t.bind(t,1356,23)),Promise.resolve().then(t.bind(t,8529))}},e=>{e.O(0,[2619,1356,8441,1255,7358],()=>e(e.s=9963)),_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.