import{b as a,i as s}from"./useflows-BpG3C9m1.js";import{e as o}from"./main-few-lands-burn.js";import{s as i}from"./machine.-BRuqPpdF.js";import{h as E,a as m,b as r,c as t,d as N,r as _}from"./whatsapp-lSZheXFS.js";import"./mutative-C6xjlr6O.js";import"./lodash-YpNkAOPN.js";const u=a(({helpers:e})=>({states:{components:[N(e),_(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:r,HANDLE_BUSINESS_ID:m,IF_CONNECTION_SELECTED:({$:n})=>s(n.getComponent("connection-id")?.value),SET_CONNECTION:t("connectionId"),SET_PHONE_NUMBER_ID:E,SET_RECIPIENT_NUMBER:t("recipientNumber"),SET_TEXT_MESSAGE:t("textMessage"),ON_MACHINE_LOAD:async({$:n})=>{i(n,[{db:"connectionId",id:"connection-id"},{db:"recipientNumber",id:"recipient-phone-number"},{db:"textMessage",id:"text-message"}])}}}));export{u as default};
