import{aa as m,ab as i}from"./_applist-tangy-colts-beg-36.js";import{_ as o}from"./main-tangy-colts-beg.js";import{h as t,s as r}from"./machine.-tangy-colts-beg-869.js";import{h as l,c as E}from"./emailitc-tangy-colts-beg-514.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,a){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,a),a)}};const s=m(({helpers:e})=>({states:{components:[E(e),{componentName:e.componentName.mixInput,helperText:o("From email address. Example: Name <test@emailit.com> or test@emailit.com"),id:"from-email",label:o("From Email Address"),onChange:"SET_FROM_EMAIL",path:"from",render:"IF_CONNECTION_SELECTED",required:!0,value:[]},{componentName:e.componentName.mixInput,helperText:o("Enter the recipient email address. Example: recipient@example.com."),id:"to-email",label:o("To Email Address"),onChange:"SET_TO_EMAIL",path:"to",render:"IF_CONNECTION_SELECTED",required:!0,value:[]},{componentName:e.componentName.mixInput,helperText:o("Enter the email subject. Example: Welcome to Our Service or Order Confirmation #12345"),id:"subject",label:o("Subject"),onChange:"SET_SUBJECT",path:"subject",render:"IF_CONNECTION_SELECTED",required:!0,value:[]},{componentName:e.componentName.mixInput,helperText:o("Enter the reply-to email address. Example: support@gmail.com"),id:"reply-to",label:o("Reply To"),onChange:"SET_REPLY_TO",path:"reply_to",render:"IF_CONNECTION_SELECTED",required:!1,value:[]},{componentName:e.componentName.mixInput,helperText:o("Enter the body content of the email."),id:"body",label:o("Body"),onChange:"SET_BODY",path:"body",render:"IF_CONNECTION_SELECTED",required:!1,value:[]},{componentName:e.componentName.switch,fieldType:"config",id:"mail-format",label:o("Is this email in HTML format?"),onChange:"HANDLE_MAIL_FORMAT",path:"mailFormat",render:"IF_CONNECTION_SELECTED",size:"small",value:!1}]},actions:{CONNECTION_ADD_CHANGE:l,HANDLE_MAIL_FORMAT:t("mailFormat"),IF_CONNECTION_SELECTED:({$:a})=>{var n;return i((n=a.getComponent("connection-id"))==null?void 0:n.value)},SET_BODY:t("body"),SET_CONNECTION:t("connectionId"),SET_FROM_EMAIL:t("from"),SET_REPLY_TO:t("replyTo"),SET_SUBJECT:t("subject"),SET_TO_EMAIL:t("to"),ON_MACHINE_LOAD:({$:a})=>{r(a,[{db:"connectionId",id:"connection-id"},{db:"from",id:"from-email"},{db:"to",id:"to-email"},{db:"replyTo",id:"reply-to"},{db:"subject",id:"subject"},{db:"mailFormat",id:"mail-format"},{db:"body",id:"body"}])}}}));export{s as default};
