"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const index = require("./email-manager-NqFEofh9.cjs");
class ResponseEmail extends index.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 index.renderEmail("ResponseEmail", {
        form: this.form,
        orderedResponses: this.orderedResponses,
        subject
      })
    };
  }
}
exports.default = ResponseEmail;
