1import{l as m}from"./vendor-firebase-U95O8hiF.js";import{r as n,s as i,m as p}from"./index-9GEQNrq5.js";const h={async send({type:e,to:r,patientId:t,data:s}){try{return await m(p,"sendTransactionalEmail")({type:e,to:r,data:{...s,patientId:t}}),!0}catch(a){throw console.error("[EmailService] Failed to send email:",a),a}},async sendWelcome(e,r,t,s){try{const a=await this.send({type:"welcome",to:e,patientId:s,data:{patientName:r,clinicName:t}});return a&&n("Email de boas-vindas enviado!"),a}catch{return i("Erro ao enviar email de boas-vindas."),!1}},async sendAppointmentConfirmation(e,r,t,s,a,c,l,d){try{const o=await this.send({type:"appointment_confirmation",to:e,patientId:l,data:{patientName:r,doctorName:t,date:s,time:a,clinicName:c,meetingUrl:d}});return o&&n("Email de confirmação enviado!"),o}catch{return i("Erro ao enviar email de confirmação."),!1}},async sendRecipe(e,r,t,s){try{const a=await this.send({type:"recipe",to:e,patientId:s,data:{patientName:r,clinicName:t}});return a&&n("Receita enviada por email!"),a}catch{return i("Erro ao enviar receita por email."),!1}}};export{h as E};
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.