import{aa as s,ab as i}from"./_applist-tangy-colts-beg-36.js";import{_ as o}from"./main-tangy-colts-beg.js";import{s as c}from"./machine.-tangy-colts-beg-869.js";import{h as n,a as r,b as E,c as m,d as N,r as h}from"./whatsapp-tangy-colts-beg-275.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const l=s(({helpers:e})=>({states:{components:[N(e),h(e),{componentName:e.componentName.mixInput,helperText:o("Enter the text to be sent as message."),id:"text-message",label:o("Text Message"),onChange:"SET_TEXT_MESSAGE",path:"text.body",render:"IF_CONNECTION_SELECTED",required:!0,value:[]}]},actions:{CONNECTION_ADD_CHANGE:m,HANDLE_BUSINESS_ID:E,IF_CONNECTION_SELECTED:({$:t})=>{var a;return i((a=t.getComponent("connection-id"))==null?void 0:a.value)},SET_CONNECTION:n("connectionId"),SET_PHONE_NUMBER_ID:r,SET_RECIPIENT_NUMBER:n("recipientNumber"),SET_TEXT_MESSAGE:n("textMessage"),ON_MACHINE_LOAD:async({$:t})=>{c(t,[{db:"connectionId",id:"connection-id"},{db:"recipientNumber",id:"recipient-phone-number"},{db:"textMessage",id:"text-message"}])}}}));export{l as default};
