1import{aD as i,j as e,S as n}from"./index-D2G60a0R.js";import{u as r}from"./useQuery-CjRW_EZA.js";import{u as o}from"./useServerFn-CXyRoyBF.js";import{a as l,P as d}from"./PayWaiverGate-Cv7CSyYh.js";import{f as m}from"./format-date-B_BRYAWJ.js";import{C as c}from"./circle-check-BOChlDfT.js";import"./waiver-0ZOMk70K.js";import"./shield-check-BPBprVEq.js";function f(){const{bookingId:t}=i.useParams(),s=o(l),a=r({queryKey:["booking-waiver",t],queryFn:()=>s({data:{bookingId:t}})});return e.jsx(n,{children:e.jsx("section",{className:"container-page max-w-3xl pt-12 pb-20",children:a.isLoading?e.jsx("p",{className:"py-20 text-center text-wood/60",children:"Loadingâ¦"}):a.data?a.data.signed?e.jsxs("div",{className:"py-20 text-center",children:[e.jsx("div",{className:"mx-auto mb-4 grid size-14 place-items-center rounded-full bg-sage/25 text-sage-deep",children:e.jsx(c,{className:"size-7"})}),e.jsx("h1",{className:"font-display text-4xl text-ink",children:"Waiver signed"}),e.jsxs("p",{className:"mt-3 text-wood/75",children:["Thank you, ",a.data.clientName,"! Nothing else is needed â we can't wait to see you."]})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mx-auto max-w-xl text-center",children:[e.jsx("h1",{className:"font-display text-4xl text-ink md:text-5xl",children:"Sign your waiver"}),e.jsxs("p",{className:"mt-3 text-wood/70",children:["For ",a.data.clientName,a.data.eventDate?` · ${m(a.data.eventDate)}`:"",a.data.packageName?` · ${a.data.packageName}`:""]})]}),e.jsx("div",{className:"mt-8",children:e.jsx(d,{bookingId:t,clientName:a.data.clientName,heading:"Liability waiver",intro:"Please read the terms below and sign. It only takes a minute.",submitLabel:"Sign waiver",onSigned:()=>a.refetch()})})]}):e.jsxs("div",{className:"py-20 text-center",children:[e.jsx("h1",{className:"font-display text-4xl text-ink",children:"Link not found"}),e.jsxs("p",{className:"mt-3 text-wood/70",children:["This waiver link isn't valid any more. Please reply to our email or call us at"," ",e.jsx("a",{href:"tel:+17037622166",className:"underline underline-offset-2",children:"(703) 762-2166"})," ","and we'll send a new one."]})]})})})}export{f as component};
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.