import { a6 as BaseEmail, r as renderEmail } from "./email-manager-ED8hrFPG.js";
class ResponseEmail extends BaseEmail {
  constructor({
    toAddresses,
    orderedResponses,
    form
  }) {
    super();
    this.form = form;
    this.orderedResponses = orderedResponses;
    this.toAddresses = toAddresses;
  }
  async getNodeMailerPayload() {
    const toAddresses = this.toAddresses;
    const subject = `${this.form.name} has a new response`;
    return {
      from: `Cal.com <${this.getMailerOptions().from}>`,
      to: toAddresses.join(","),
      subject,
      html: await renderEmail("ResponseEmail", {
        form: this.form,
        orderedResponses: this.orderedResponses,
        subject
      })
    };
  }
}
export {
  ResponseEmail as default
};
