import{aa as n}from"./_applist-tangy-colts-beg-36.js";import{_ as e}from"./main-tangy-colts-beg.js";import{s as l}from"./machine.-tangy-colts-beg-869.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(a,m){return this.cache.has(a)?this.cache.get(a):(this.cache.set(a,m),m)}};const t=a=>({$:m,e:i})=>{m.setThisComponent(o=>{o.value=i}),m.setDb(o=>{o[a]=i})},u=n(({helpers:a})=>({states:{components:[{componentName:a.componentName.mixInput,helperText:e("Email address that will be used to send the email."),id:"from-email",label:e("From Email"),onChange:"HANDLE_FROM_EMAIL",path:"fromEmail",render:!0,required:!0,value:void 0},{componentName:a.componentName.mixInput,helperText:e("Name that will be used to send the email."),id:"from-name",label:e("From Name"),onChange:"HANDLE_FROM_NAME",path:"fromName",render:!0,required:!0,value:void 0},{componentName:a.componentName.mixInput,helperText:e("Email address to which the email will be sent. You can use multiple emails separated by commas."),id:"to-email",label:e("To"),onChange:"HANDLE_TO_EMAIL",path:"toEmail",render:!0,required:!0,value:void 0},{componentName:a.componentName.mixInput,helperText:e("Email address to which a copy of the email will be sent. You can use multiple emails separated by commas."),id:"cc-email",label:e("CC"),onChange:"HANDLE_CC_EMAIL",path:"ccEmail",render:!0,value:void 0},{componentName:a.componentName.mixInput,helperText:e("Email address to which a blind copy of the email will be sent. You can use multiple emails separated by commas."),id:"bcc-email",label:e("BCC"),onChange:"HANDLE_BCC_EMAIL",path:"bccEmail",render:!0,value:void 0},{componentName:a.componentName.mixInput,helperText:e("Email address to which replies will be sent. Make sure it is not same as the from email. If it is same, skip this field."),id:"reply-to-email",label:e("Reply To"),onChange:"HANDLE_REPLY_TO_EMAIL",path:"replyToEmail",render:!0,value:void 0},{componentName:a.componentName.mixInput,helperText:e("Subject of the email."),id:"subject",label:e("Subject"),onChange:"HANDLE_SUBJECT",path:"subject",render:!0,required:!0,value:void 0},{componentName:a.componentName.mixInput,helperText:e('Content of the email. You can map an HTML field here. If you map an HTML field, you must set the "Is this email in HTML format?" option to true.'),id:"body",label:e("Body"),onChange:"HANDLE_BODY",path:"body",render:!0,required:!0,value:void 0},{componentName:a.componentName.mixInput,helperText:e("Attachments to be included in the email."),id:"attachments",label:e("Attachments"),onChange:"HANDLE_ATTACHMENTS",path:"attachments",render:!0,value:void 0},{componentName:a.componentName.switch,fieldType:"config",id:"mail-format",label:e("Is this email in HTML format?"),onChange:"HANDLE_MAIL_FORMAT",path:"mailFormat",render:!0,value:!1}]},actions:{ON_MACHINE_LOAD:({$:m})=>{l(m,[{db:"fromEmail",id:"from-email"},{db:"fromName",id:"from-name"},{db:"toEmail",id:"to-email"},{db:"ccEmail",id:"cc-email"},{db:"bccEmail",id:"bcc-email"},{db:"replyToEmail",id:"reply-to-email"},{db:"subject",id:"subject"},{db:"body",id:"body"},{db:"attachments",id:"attachments"},{db:"mailFormat",id:"mail-format"}])},HANDLE_ATTACHMENTS:t("attachments"),HANDLE_BCC_EMAIL:t("bccEmail"),HANDLE_BODY:t("body"),HANDLE_CC_EMAIL:t("ccEmail"),HANDLE_FROM_EMAIL:t("fromEmail"),HANDLE_FROM_NAME:t("fromName"),HANDLE_MAIL_FORMAT:t("mailFormat"),HANDLE_REPLY_TO_EMAIL:t("replyToEmail"),HANDLE_SUBJECT:t("subject"),HANDLE_TO_EMAIL:t("toEmail")}}));export{u as default};
