import{r as e}from"./rolldown-runtime-S-ySWqyJ.js";import{i as t,r as n}from"./framework-CXnKph_e.js";import{a as r,i,t as a}from"./clinic-RzHQAS4L.js";import{n as o,t as s}from"./InnerPage-D77o7cMS.js";var c=e(t(),1),l=n();function u(){let[e,t]=(0,c.useState)(!1);return(0,l.jsxs)(o,{children:[(0,l.jsx)(s,{kicker:`Contact us`,title:`We’re here to help.`,copy:`Call, WhatsApp, email or visit the studio.`}),(0,l.jsxs)(`section`,{className:`contact-layout`,children:[(0,l.jsxs)(`div`,{className:`contact-card`,children:[(0,l.jsx)(`b`,{className:i()?`status-open`:`status-closed`,children:i()?`Open now`:`Closed now`}),(0,l.jsx)(`h2`,{children:a.address}),(0,l.jsx)(`a`,{href:`tel:${a.phoneRaw}`,children:a.phoneDisplay}),(0,l.jsx)(`a`,{href:`mailto:${a.email}`,children:a.email}),(0,l.jsx)(`a`,{href:r(`Hello Luméa Dental, I need help.`),children:`Chat on WhatsApp`}),(0,l.jsx)(`a`,{href:a.mapUrl,children:`Get directions ↗`}),(0,l.jsxs)(`p`,{children:[a.hours.label,(0,l.jsx)(`br`,{}),`Sunday · Closed`]})]}),(0,l.jsxs)(`form`,{onSubmit:e=>{e.preventDefault();let n=new FormData(e.currentTarget),r=encodeURIComponent(String(n.get(`subject`))),i=encodeURIComponent(`Name: ${n.get(`name`)}\nPhone: ${n.get(`phone`)}\n\n${n.get(`message`)}`);window.location.href=`mailto:${a.email}?subject=${r}&body=${i}`,t(!0)},children:[(0,l.jsxs)(`label`,{children:[`Name`,(0,l.jsx)(`input`,{required:!0,name:`name`})]}),(0,l.jsxs)(`label`,{children:[`Phone`,(0,l.jsx)(`input`,{required:!0,name:`phone`,inputMode:`tel`})]}),(0,l.jsxs)(`label`,{children:[`Email`,(0,l.jsx)(`input`,{required:!0,name:`email`,type:`email`})]}),(0,l.jsxs)(`label`,{children:[`Subject`,(0,l.jsx)(`input`,{required:!0,name:`subject`})]}),(0,l.jsxs)(`label`,{children:[`Message`,(0,l.jsx)(`textarea`,{required:!0,name:`message`,rows:5})]}),(0,l.jsx)(`input`,{className:`honeypot`,name:`website`,tabIndex:-1}),(0,l.jsx)(`button`,{type:`submit`,children:`Send message`}),e&&(0,l.jsx)(`p`,{role:`status`,children:`Your email app has been opened with the message ready.`})]})]}),(0,l.jsxs)(`section`,{className:`contact-faq`,children:[(0,l.jsx)(`h2`,{children:`Frequently asked`}),[`Do you accept emergency visits?`,`Can I book on WhatsApp?`,`Is parking available?`].map((e,t)=>(0,l.jsxs)(`details`,{children:[(0,l.jsx)(`summary`,{children:e}),(0,l.jsx)(`p`,{children:t===0?`Yes. Call us and we will guide you to the earliest available slot.`:t===1?`Yes. Use any WhatsApp action on this website for a pre-filled message.`:`Please contact reception before your visit for the closest available parking.`})]},e))]})]})}export{u as default};