import{aa as n}from"./_applist-tangy-colts-beg-36.js";import{_ as t}from"./main-tangy-colts-beg.js";import{h as a,s as r}from"./machine.-tangy-colts-beg-869.js";import{f as s}from"./machineh-tangy-colts-beg-426.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,o){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,o),o)}};const l=n(({helpers:e})=>({states:{components:[{allowClear:!0,componentName:e.componentName.select,fieldType:"config",helperText:t("Select the group whose members will receive the message."),id:"group",label:t("Select Group"),onChange:"HANDLE_GROUP",onRefetch:"REFETCH_GROUPS",options:[],render:!0,required:!0,value:void 0},{componentName:e.componentName.mixInput,helperText:t("Enter the email address of the user who will send the message."),id:"sender-email",label:t("Sender Email"),onChange:"HANDLE_SENDER_EMAIL",path:"sender_email",render:!0,required:!0,value:void 0},{componentName:e.componentName.mixInput,helperText:t("Enter the subject of the message."),id:"message-subject",label:t("Message Subject"),onChange:"HANDLE_MESSAGE_SUBJECT",path:"message_subject",render:!0,required:!0,value:void 0},{componentName:e.componentName.mixInput,helperText:t("Enter the content of the message."),id:"message-content",label:t("Message Content"),onChange:"HANDLE_MESSAGE_CONTENT",path:"message_content",render:!0,required:!0,value:void 0}]},actions:{HANDLE_GROUP:a("group"),HANDLE_MESSAGE_CONTENT:a("messageContent"),HANDLE_MESSAGE_SUBJECT:a("messageSubject"),HANDLE_SENDER_EMAIL:a("senderEmail"),REFETCH_GROUPS:({$:o})=>s(o),ON_MACHINE_LOAD:({$:o})=>{r(o,[{db:"group",id:"group"},{db:"senderEmail",id:"sender-email"},{db:"messageSubject",id:"message-subject"},{db:"messageContent",id:"message-content"}]),s(o)}}}));export{l as default};
