import{r as e}from"./framework-CXnKph_e.js";import{t}from"./link-BoC-zFZC.js";import{a as n,t as r}from"./clinic-RzHQAS4L.js";import{t as i}from"./navigation-1l-OXzC-.js";var a=e();function o(){let e=i(),o=e.get(`ref`)||`LD-PENDING`,s=e.get(`date`)||`To be confirmed`,c=e.get(`time`)||``,l=e.get(`treatment`)||`Consultation`,u=e.get(`name`)||`Patient`,d=`https://calendar.google.com/calendar/render?action=TEMPLATE&text=${encodeURIComponent(`Dental appointment — ${l}`)}&dates=${s.replace(/-/g,``)}T${c.replace(`:`,``)}00/${s.replace(/-/g,``)}T${c.replace(`:`,``)}00&details=${encodeURIComponent(`Booking reference ${o}`)}`;return(0,a.jsxs)(`main`,{className:`thanks`,children:[(0,a.jsx)(`div`,{className:`brand-mark`,children:`L`}),(0,a.jsx)(`small`,{children:`BOOKING REQUEST RECEIVED`}),(0,a.jsxs)(`h1`,{children:[`Thank you, `,u,`.`]}),(0,a.jsx)(`p`,{children:`Our team will call or WhatsApp you shortly to confirm your appointment.`}),(0,a.jsxs)(`section`,{children:[(0,a.jsxs)(`span`,{children:[`Reference`,(0,a.jsx)(`b`,{children:o})]}),(0,a.jsxs)(`span`,{children:[`Treatment`,(0,a.jsx)(`b`,{children:l})]}),(0,a.jsxs)(`span`,{children:[`Requested time`,(0,a.jsxs)(`b`,{children:[s,` · `,c]})]}),(0,a.jsxs)(`span`,{children:[`Clinic`,(0,a.jsx)(`b`,{children:r.address})]})]}),(0,a.jsxs)(`div`,{children:[(0,a.jsx)(`a`,{href:d,target:`_blank`,rel:`noreferrer`,children:`Add to Google Calendar`}),(0,a.jsx)(`a`,{href:n(`Hello Luméa Dental, please confirm my booking ${o} for ${l} on ${s} at ${c}.`),children:`Confirm on WhatsApp`}),(0,a.jsx)(`button`,{onClick:()=>print(),children:`Print summary`})]}),(0,a.jsx)(t,{href:`/`,children:`Return home`})]})}export{o as default};