PageSourceSearch

https://www.mytruetox.com/assets/Quiz-DNUMH_cf.js

js mytruetox.com collected 2026-10-04 15:19:14 UTC 23,265 bytes, 7 lines download raw bytes

1import{j as e}from"./ui-B7BBqVOg.js";import{u as ue,e as xe,r as d}from"./vendor-BQmajOcC.js";import{c as pe,R as he,H as fe,a as ye,B as S,d as Z,b,s as y,V as G,W as ge,I as P,M as R,C as g,S as be}from"./index-20wUjfs8.js";import{C as Ne}from"./checkbox-CRYvrHfr.js";import{P as je,I as ve}from"./progress-C4i2tKLa.js";import{C as N}from"./card-B7o3gT0a.js";import we from"./Footer-i5aq-RpN.js";import{A as _e,m as L}from"./motion-keLokTLm.js";import{C as Ce}from"./chevron-left-C7gBEAia.js";import{L as W}from"./loader-circle-Ch6rfxm4.js";import{S as ke}from"./sparkles-CFrrpIq6.js";import{S as K}from"./shield-Cg0yX0Yu.js";import{D as Se}from"./dollar-sign-R-DtniNZ.js";import{C as Pe}from"./clock-DpGg9G5I.js";import"./charts-PGcg44wi.js";import"./query-BDhnl1cP.js";import"./phone-B_mCLMlC.js";import"./book-open-Cz8naSKS.js";import"./stethoscope-DgFcRa7t.js";import"./instagram-DTuh1LfD.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const Le=pe("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]),Ie=[{label:"Forehead",icon:"🧠"},{label:"Between Brows (11s)",icon:"😠"},{label:"Crow's Feet",icon:"👁️"},{label:"Bunny Lines",icon:"🐰"},{label:"Lip Flip",icon:"💋"},{label:"Chin",icon:"🫥"},{label:"Jawline / Masseters",icon:"💪"}],Te=[{value:"never",label:"Never tried it"},{value:"1-2 years",label:"1–2 years"},{value:"3+ years",label:"3+ years"}],$e=[{value:"cost",label:"Predictable cost",icon:Se,desc:"No surprises on the bill"},{value:"convenience",label:"Convenience",icon:Pe,desc:"Easy scheduling, flat-fee"},{value:"quality",label:"Quality provider",icon:K,desc:"Board-certified injectors"}],qe=[{value:"every-3",label:"Every 3 months"},{value:"every-4-6",label:"Every 4–6 months"},{value:"varies",label:"Varies / not sure"}],ze=(h,j,a,c)=>{const x=(a-h)*Math.PI/180,t=(c-j)*Math.PI/180,m=Math.sin(x/2)**2+Math.cos(h*Math.PI/180)*Math.cos(a*Math.PI/180)*Math.sin(t/2)**2;return 3959*2*Math.atan2(Math.sqrt(m),Math.sqrt(1-m))},Ae=async h=>{try{const a=await(await fetch(`https://nominatim.openstreetmap.org/search?postalcode=${encodeURIComponent(h)}&country=USA&format=json&limit=1`,{headers:{"User-Agent":"TrueTox-App"}})).json();return a!=null&&a.length?{lat:parseFloat(a[0].lat),lon:parseFloat(a[0].lon)}:null}catch{return null}},Me=h=>{const o=h*18*14*4,x=189*12;return{perUnit:o,toxPass:x}},at=()=>{const h=ue(),j=xe(),a=h.state,c=!!(a!=null&&a.fromLocation);d.useEffect(()=>{he()},[]);const[o,x]=d.useState(0),[t,m]=d.useState({treatmentAreas:[],experience:"",priority:"",frequency:"",zipCode:"",fullName:"",email:"",phone:""}),[v,X]=d.useState(!1),[I,ee]=d.useState(""),[T,F]=d.useState(!1),[w,te]=d.useState(c&&a?[{id:a.locationId,name:a.locationName,city:a.city,state:a.state,provider_name:a.providerName||null,distance:0,booking_link:a.bookingLink,top_clinic:!1}]:[]),[_,O]=d.useState(null),[D,C]=d.useState(1),[$,q]=d.useState(!1),[Q,B]=d.useState(!1),z=c?5:6,A=c?o===5:o===6,H=(s=>c&&s>=4?s+1:s)(o),Y=()=>{switch(H){case 0:return t.treatmentAreas.length>0;case 1:return!!t.experience;case 2:return!!t.priority;case 3:return!!t.frequency;case 4:return/^\d{5}$/.test(t.zipCode);case 5:return t.fullName.trim().length>=2&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t.email)&&t.phone.trim().length>=10&&v;default:return!1}},M=c?o===4:o===5,se=async()=>{if(!Y()){M&&!v?b.error("Please consent to SMS communications to continue"):b.error("Please complete this step before continuing");return}if(M){await ae();return}C(1),x(s=>s+1)},re=()=>{o>0&&(C(-1),x(s=>s-1))},ae=async()=>{var s;if(!I){F(!0);try{let r=null,n=!1;if(c&&a)r=a.locationId,n=!0;else{const l=await Ae(t.zipCode);if(l){const{data:f}=await y.from("locations").select("id, name, city, state, provider_name, latitude, longitude, booking_link, top_clinic").eq("is_active",!0).eq("truetox",!0);if(f!=null&&f.length){const V=f.map(p=>({...p,distance:ze(l.lat,l.lon,p.latitude,p.longitude)}));V.sort((p,U)=>p.top_clinic&&!U.top_clinic?-1:!p.top_clinic&&U.top_clinic?1:p.distance-U.distance);const E=V.filter(p=>p.distance<=100).slice(0,4);E.length>0&&(te(E),r=E[0].id,n=!0)}}}const i=G();if(await y.from("quiz_leads").insert({full_name:t.fullName.trim(),email:t.email.trim().toLowerCase(),phone:t.phone.trim(),zip_code:t.zipCode,treatment_areas:t.treatmentAreas,experience_level:t.experience,priority:t.priority,frequency:t.frequency,honeypot:I,nearest_location_id:r,utm_source:i.utm_source||null,utm_medium:i.utm_medium||null,utm_campaign:i.utm_campaign||null,utm_content:i.utm_content||null}),r)try{await y.functions.invoke("sync-ghl-contact",{body:{name:t.fullName.trim(),email:t.email.trim().toLowerCase(),phone:t.phone.trim(),location_id:r,source:"Quiz Funnel",tags:["Quiz Lead",...t.treatmentAreas.map(l=>`Area: ${l}`),`Experience: ${t.experience}`,`Priority: ${t.priority}`],notes:`Quiz answers: Areas: ${t.treatmentAreas.join(", ")}. Experience: ${t.experience}. Priority: ${t.priority}. Frequency: ${t.frequency}.`,utm_source:i.utm_source||void 0,utm_medium:i.utm_medium||void 0,utm_campaign:i.utm_campaign||void 0,utm_c
6ontent:i.utm_content||void 0}})}catch(l){console.error("GHL sync error:",l)}const k=t.email.trim().toLowerCase();try{const{data:l}=await y.from("memberships").select("id").eq("customer_email",k).eq("location_id",r||"00000000-0000-0000-0000-000000000000").maybeSingle();if(!l){const f=`TT-QL-${Date.now().toString(36).toUpperCase()}`;await y.from("memberships").insert({customer_name:t.fullName.trim(),customer_email:k,customer_phone:t.phone.trim(),member_number:f,status:"active",tier:"tox-pass",pipeline_stage:"lead",location_id:r,zip_code:t.zipCode,valid_from:new Date().toISOString()})}}catch(l){console.error("Membership creation error:",l)}n?(ge({locationId:r||void 0,locationName:(s=w[0])==null?void 0:s.name,email:t.email.trim().toLowerCase(),treatmentAreas:t.treatmentAreas}),C(1),x(c?5:6)):q(!0)}catch(r){console.error("Quiz submit error:",r),b.error("Something went wrong. Please try again.")}finally{F(!1)}}},ne=async()=>{B(!0);try{const s=`TT-WL-${Date.now().toString(36).toUpperCase()}`;await y.from("memberships").insert({customer_name:t.fullName.trim(),customer_email:t.email.trim().toLowerCase(),customer_phone:t.phone.trim(),member_number:s,status:"waitlist",tier:"tox-pass",zip_code:t.zipCode,valid_from:new Date().toISOString()}),b.success("You've been added to the waitlist! We'll notify you when a provider is available near you."),q(!1),C(1),x(c?5:6)}catch(s){console.error("Waitlist error:",s),b.error("Something went wrong. Please try again.")}finally{B(!1)}},J=async s=>{if(!_){O(s.id);try{const r=crypto.randomUUID(),n=G(),k=["Consultation request from the Tox Pass quiz.",`Areas of interest: ${t.treatmentAreas.join(", ")||"Not specified"}`,`Experience: ${t.experience||"Not specified"}`,`Top priority: ${t.priority||"Not specified"}`,`Current frequency: ${t.frequency||"Not specified"}`,t.zipCode?`Zip code: ${t.zipCode}`:null].filter(Boolean).join(`
7`),{error:l}=await y.from("consultation_leads").insert({id:r,name:t.fullName.trim(),email:t.email.trim().toLowerCase(),phone:t.phone.trim(),message:k,location_id:s.id,sms_consent:v,sms_consent_date:v?new Date().toISOString():null,utm_source:n.utm_source||null,utm_medium:n.utm_medium||null,utm_campaign:n.utm_campaign||null,utm_content:n.utm_content||null});if(l)throw l;try{await y.functions.invoke("sync-ghl-contact",{body:{name:t.fullName.trim(),email:t.email.trim().toLowerCase(),phone:t.phone.trim(),location_id:s.id,source:"Quiz Consultation Request",tags:["Consultation Request","Quiz Lead"],notes:k,utm_source:n.utm_source||void 0,utm_medium:n.utm_medium||void 0,utm_campaign:n.utm_campaign||void 0,utm_content:n.utm_content||void 0}})}catch(f){console.error("GHL consultation sync error:",f)}j(`/consultation/${r}`)}catch(r){console.error("Consultation request error:",r),b.error("We couldn't send your request. Please try again.")}finally{O(null)}}},ie=s=>{m(r=>({...r,treatmentAreas:r.treatmentAreas.includes(s)?r.treatmentAreas.filter(n=>n!==s):[...r.treatmentAreas,s]}))},u=Me(Math.max(t.treatmentAreas.length,1)),oe=()=>{switch(t.priority){case"cost":return u.perUnit-u.toxPass>10?`You'll save an estimated $${(u.perUnit-u.toxPass).toLocaleString()}/year with the Tox Pass — one flat monthly fee, no per-unit surprises.`:"The Tox Pass gives you predictable pricing and board-certified confidence — one flat fee, no surprises.";case"convenience":return"One flat fee of $189/mo covers everything. No counting units, no surprise bills — just book and go.";case"quality":return"Every TrueTox provider is board-certified and vetted. Your treatments are in expert hands.";default:return""}},le={enter:s=>({x:s>0?80:-80,opacity:0}),center:{x:0,opacity:1},exit:s=>({x:s>0?-80:80,opacity:0})},ce=()=>{switch(H){case 0:return e.jsxs("div",{className:"space-y-4",children:[e.jsx("h2",{className:"text-xl md:text-2xl font-bold text-foreground text-center",children:"Which areas are you interested in treating?"}),e.jsx("p",{className:"text-muted-foreground text-center text-sm",children:"Select all that apply"}),e.jsx("div",{className:"grid grid-cols-2 gap-3",children:Ie.map(s=>{const r=t.treatmentAreas.includes(s.label);return e.jsxs("button",{onClick:()=>ie(s.label),className:`relative flex items-center gap-2 rounded-xl border-2 p-3 md:p-4 text-left transition-all min-h-[52px] ${r?"border-primary bg-primary/10 shadow-md":"border-border bg-card hover:border-primary/40"}`,children:[e.jsx("span",{className:"text-lg",children:s.icon}),e.jsx("span",{className:"text-sm font-medium text-foreground leading-tight",children:s.label}),r&&e.jsx(g,{className:"absolute top-2 right-2 h-4 w-4 text-primary"})]},s.label)})})]});case 1:return e.jsxs("div",{className:"space-y-4",children:[e.jsx("h2",{className:"text-xl md:text-2xl font-bold text-foreground text-center",children:"How long have you been getting tox?"}),e.jsx("div",{className:"space-y-3",children:Te.map(s=>
7{const r=t.experience===s.value;return e.jsxs("button",{onClick:()=>m(n=>({...n,experience:s.value})),className:`w-full flex items-center gap-3 rounded-xl border-2 p-4 transition-all min-h-[52px] ${r?"border-primary bg-primary/10 shadow-md":"border-border bg-card hover:border-primary/40"}`,children:[e.jsx("div",{className:`h-5 w-5 rounded-full border-2 flex items-center justify-center ${r?"border-primary":"border-muted-foreground/40"}`,children:r&&e.jsx("div",{className:"h-2.5 w-2.5 rounded-full bg-primary"})}),e.jsx("span",{className:"font-medium text-foreground",children:s.label})]},s.value)})}),t.experience==="never"&&e.jsxs(L.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},className:"flex gap-3 rounded-xl bg-accent/10 border border-accent/30 p-4",children:[e.jsx(ve,{className:"h-5 w-5 text-accent shrink-0 mt-0.5"}),e.jsxs("div",{className:"text-sm text-foreground",children:[e.jsx("p",{className:"font-semibold mb-1",children:"New to tox? Here's the quick scoop:"}),e.jsx("p",{className:"text-muted-foreground",children:"Neurotoxin treatments temporarily relax muscles that cause wrinkles, giving you a smoother, refreshed look. Results typically last 3–4 months, and there's minimal downtime. It's the #1 cosmetic treatment in the U.S. for a reason!"})]})]})]});case 2:return e.jsxs("div",{className:"space-y-4",children:[e.jsx("h2",{className:"text-xl md:text-2xl font-bold text-foreground text-center",children:"What matters most to you?"}),e.jsx("div",{className:"space-y-3",children:$e.map(s=>{const r=t.priority===s.value,n=s.icon;return e.jsxs("button",{onClick:()=>m(i=>({...i,priority:s.value}
7)),className:`w-full flex items-center gap-4 rounded-xl border-2 p-4 transition-all min-h-[52px] ${r?"border-primary bg-primary/10 shadow-md":"border-border bg-card hover:border-primary/40"}`,children:[e.jsx("div",{className:`h-10 w-10 rounded-full flex items-center justify-center shrink-0 ${r?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground"}`,children:e.jsx(n,{className:"h-5 w-5"})}),e.jsxs("div",{className:"text-left",children:[e.jsx("p",{className:"font-semibold text-foreground",children:s.label}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s.desc})]})]},s.value)})})]});case 3:return e.jsxs("div",{className:"space-y-4",children:[e.jsx("h2",{className:"text-xl md:text-2xl font-bold text-foreground text-center",children:"How often do you currently get treated?"}),e.jsx("div",{className:"space-y-3",children:qe.map(s=>{const r=t.frequency===s.value;return e.jsxs("button",{onClick:()=>m(n=>({...n,frequency:s.value})),className:`w-full flex items-center gap-3 rounded-xl border-2 p-4 transition-all min-h-[52px] ${r?"border-primary bg-primary/10 shadow-md":"border-border bg-card hover:border-primary/40"}`,children:[e.jsx("div",{className:`h-5 w-5 rounded-full border-2 flex items-center justify-center ${r?"border-primary":"border-muted-foreground/40"}`,children:r&&e.jsx("div",{className:"h-2.5 w-2.5 rounded-full bg-primary"})}),e.jsx("span",{className:"font-medium text-foreground",children:s.label})]},s.value)})})]});case 4:return e.jsxs("div",{className:"space-y-4",children:[e.jsx("h2",{className:"text-xl md:text-2xl font-bold text-foreground text-center",children:"What's your zip code?"}),e.jsx("p",{className:"text-muted-foreground text-center text-sm",children:"We'll find a certified provider near you"}),e.jsxs("div",{className:"flex items-center gap-3 max-w-xs mx-auto",children:[e.jsx(R,{className:"h-5 w-5 text-primary shrink-0"}),e.jsx(P,{type:"text",inputMode:"numeric",maxLength:5,placeholder:"e.g. 79762",value:t.zipCode,onChange:s=>m(r=>({...r,zipCode:s.target.value.replace(/\D/g,"").slice(0,5)})),className:"text-center text-lg tracking-widest","aria-label":"Zip code"})]})]});case 5:return e.jsxs("div",{className:"space-y-4",children:[e.jsx("h2",{className:"text-xl md:text-2xl font-bold text-foreground text-center",children:"Almost there! See your personalized plan"}),e.jsx("p",{className:"text-muted-foreground text-center text-sm",children:"Enter your info to unlock your results"}),e.jsxs("div",{className:"space-y-3 max-w-sm mx-auto",children:[e.jsx(P,{type:"text",placeholder:"Full name",value:t.fullName,onChange:s=>m(r=>({...r,fullName:s.target.value})),"aria-label":"Full name"}),e.jsx(P,{type:"email",placeholder:"Email address",value:t.email,onChange:s=>m(r=>({...r,email:s.target.value})),"aria-label":"Email address"}),e.jsx(P,{type:"tel",placeholder:"Phone number",value:t.phone,onChange:s=>m(r=>({...r,phone:s.target.value})),"aria-label":"Phone number"}),e.jsx("div",{className:"absolute -left-[9999px]","aria-hidden":"true",children:e.jsx("input",{type:"text",name:"website",tabIndex:-1,autoComplete:"off",value:I,onChange:s=>ee(s.target.value)})}),e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(Ne,{id:"sms-consent",checked:v,onCheckedChange:s=>X(!!s),className:"mt-1"}),e.jsx("label",{htmlFor:"sms-consent",className:"text-xs text-muted-foreground leading-tight cursor-pointer",children:"I consent to receive SMS messages from TrueTox about my membership. Message & data rates may apply. Reply STOP to opt out."})]})]})]});default:return null}},me=()=>e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm p-4",children:e.jsxs(N,{className:"max-w-md w-full p-6 md:p-8 text-center border-2 border-primary/20",children:[e.jsx(R,{className:"h-10 w-10 text-primary mx-auto mb-4"}),e.jsx("h2",{className:"text-xl md:text-2xl font-bold text-foreground mb-2",children:"No providers near you — yet!"}),e.jsx("p",{className:"text-muted-foreground mb-6 text-sm",children:"We don't have a TrueTox provider in your area right now, but we're expanding fast. Join our waitlist and we'll let you know as soon as one opens near you."}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs(S,{onClick:ne,disabled:Q,className:"w-full",size:"lg",children:[Q?e.jsx(W,{className:"h-4 w-4 animate-spin mr-2"}):e.jsx(Le,{className:"h-4 w-4 mr-2"}),"Join the Waitlist"]}),e.jsx(S,{variant:"outline",onClick:()=>{q(!1),C(1),x(c?5:6)},className:"w-full",children:"No thanks, show my results"})]})]})}),de=()=>{const s=t.treatmentAreas.join(", ").replace(/, ([^,]*)$/," & $1");return e.jsxs(L.div,{initial:{opacity:0,y:20}
7,animate:{opacity:1,y:0},className:"space-y-6",children:[e.jsxs("div",{className:"text-center space-y-2",children:[e.jsx(ke,{className:"h-8 w-8 text-primary mx-auto"}),e.jsxs("h2",{className:"text-2xl md:text-3xl font-bold text-foreground",children:["Your personalized plan for ",s]}),e.jsx("p",{className:"text-muted-foreground",children:oe()})]}),e.jsxs(N,{className:"p-6 border-primary/30 bg-gradient-to-br from-card to-primary/5",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-muted-foreground font-medium",children:"Recommended"}),e.jsx("h3",{className:"text-xl font-bold text-foreground",children:"The Tox Pass"})]}),e.jsxs("div",{className:"text-right",children:[e.jsx("p",{className:"text-3xl font-bold text-primary",children:"$189"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"/month"})]})]}),e.jsxs("ul",{className:"space-y-2 text-sm text-foreground mb-4",children:[e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(g,{className:"h-4 w-4 text-primary shrink-0"})," Full-face treatment"]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(g,{className:"h-4 w-4 text-primary shrink-0"})," Board-certified providers"]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(g,{className:"h-4 w-4 text-primary shrink-0"})," No per-unit pricing"]})]})]}),u.perUnit-u.toxPass>10?e.jsxs(N,{className:"p-5",children:[e.jsx("h4",{className:"font-semibold text-foreground mb-3",children:"Estimated Annual Savings"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"text-sm text-muted-foreground",children:["Pay-per-unit (",t.treatmentAreas.length," area",t.treatmentAreas.length!==1?"s":"",")"]}),e.jsxs("span",{className:"font-semibold text-foreground",children:["$",u.perUnit.toLocaleString()]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-sm text-primary font-medium",children:"Tox Pass"}),e.jsxs("span",{className:"font-semibold text-primary",children:["$",u.toxPass.toLocaleString()]})]}),e.jsxs("div",{className:"border-t border-border pt-2 flex items-center justify-between",children:[e.jsx("span",{className:"text-sm font-bold text-foreground",children:"You save"}),e.jsxs("span",{className:"text-lg font-bold text-primary",children:["$",(u.perUnit-u.toxPass).toLocaleString(),"/yr"]})]})]})]}):e.jsxs(N,{className:"p-5 space-y-3",children:[e.jsx("h4",{className:"font-semibold text-foreground",children:"Why Members Love the Tox Pass"}),e.jsxs("ul",{className:"space-y-2 text-sm text-muted-foreground",children:[e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(g,{className:"h-4 w-4 text-primary shrink-0"}),"Consistent results with regular maintenance"]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(g,{className:"h-4 w-4 text-primary shrink-0"}),"Board-certified providers you can trust"]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(g,{className:"h-4 w-4 text-primary shrink-0"}),"Prevention-first approach — stay ahead of lines"]}),e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(g,{className:"h-4 w-4 text-primary shrink-0"}),"One flat fee, no unit math or surprise bills"]})]})]}),w.length>0&&e.jsxs("div",{className:"space-y-3",children:[e.jsx("p",{className:"text-xs text-muted-foreground font-medium uppercase tracking-wide",children:w.length===1?"Nearest Certified Provider":"Certified Providers Near You"}),w.map((r,n)=>e.jsx(N,{role:"button",tabIndex:0,"aria-busy":_===r.id,onClick:()=>J(r),onKeyDown:i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),J(r))},className:`p-4 cursor-pointer transition-all hover:border-primary/50 hover:shadow-md ${n===0?"border-primary/30":""} ${_&&_!==r.id?"opacity-60 pointer-events-none":""}`,children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"h-10 w-10 rounded-full bg-primary/10 flex items-center justify-center shrink-0",children:e.jsx(R,{className:"h-5 w-5 text-primary"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("p",{className:"font-semibold text-foreground truncate",children:r.name}),r.top_clinic&&e.jsxs("span",{className:"shrink-0 inline-flex items-center gap-1 text-xs font-medium text-primary bg-primary/10 px-2 py-0.5 rounded-full",children:[e.jsx(K,{className:"h-3 w-3"})," Featured"]})]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:[r.city,", ",r.state," · ",r.distance.toFixed(0)," mi away"]}),r.provider_name&&e.jsxs("p",{className:"text-sm text-muted-foreground flex items-center gap-1 mt-0.5",children:[e.jsx(be,{className:"h-3 w-3 text-primary"}),r.provider_name]})]}),_===r.id?e.jsx(W,{className:"h-5 w-5 text-primary shrink-0 mt-2 animate-spin"}):e.jsx(Z,{className:"h-5 w-5 text-muted-foreground shrink-0 mt-2"})]})},r.id))]}),w.length>0&&e.jsx("p",{className:"text-center text-sm text-muted-foreground",children:"Tap a clinic above to send your consultation request"})]})};return e.jsxs(e.Fragment,{children:[e.jsxs(fe,{children:[e.jsx("title",{children:"Find Your Tox Plan – TrueTox Quiz"}),e.jsx("meta",{name:"description",content:"Take our 1-minute quiz to get a personalized Tox Pass recommendation, see your estimated savings, and find a certified provider near you."})]}),e.jsxs("div",{className:"min-h-screen flex flex-col bg-background",children:[e.jsx(ye,{}),e.jsx("main",{className:"flex-1 flex items-start justify-center px-4 py-8 md:py-16",children:e.jsxs("div",{className:"w-full max-w-lg",children:[!A&&!$&&e.jsxs("div",{className:"mb-6",children:[e.jsxs("div",{className:"flex items-center justify-between text-xs text-muted-foreground mb-2",children:[e.jsxs("span",{children:["Step ",o+1," of ",z]}),e.jsxs("span",{children:[Math.round((o+1)/z*100),"%"]})]}),e.jsx(je,{value:(o+1)/z*100,className:"h-2"})]}),e.jsx(N,{className:"p-6 md:p-8 relative overflow-hidden",children:e.jsx(_e,{mode:"wait",custom:D,children:A?e.jsx(L.div,{children:de()},"results"):e.jsx(L.div,{custom:D,variants:le,initial:"enter",animate:"center",exit:"exit",transition:{duration:.25,ease:"easeInOut"},children:ce()},o)})}),!A&&!$&&e.jsxs("div",{className:"flex items-center gap-3 mt-4",children:[o>0&&e.jsxs(S,{variant:"outline",onClick:re,className:"shrink-0",children:[e.jsx(Ce,{className:"h-4 w-4 mr-1"})," Back"]}),e.jsxs(S,{onClick:se,disabled:!Y()||T,className:"flex-1",children:[T?e.jsx(W,{className:"h-4 w-4 animate-spin mr-2"}):null,M?"See My Results":"Next",!T&&e.jsx(Z,{className:"h-4 w-4 ml-1"})]})]})]})}),e.jsx(we,{})]}),$&&me()]})};export{at as default};

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.