import{b as o,i as t}from"./useflows-BpG3C9m1.js";import{e as n}from"./main-few-lands-burn.js";import{s as m}from"./machine.-BRuqPpdF.js";import{h as N,a as r,b as E,c as i,d as p,r as c}from"./whatsapp-lSZheXFS.js";import"./mutative-C6xjlr6O.js";import"./lodash-YpNkAOPN.js";const h=o(({helpers:e})=>({states:{components:[p(e),c(e),{componentName:e.componentName.mixInput,helperText:n("Enter the image ULR. Which supports sending JPEG and PNG images via URL, with a maximum file size of 5 MB."),id:"image-url",label:n("Image URL"),onChange:"SET_IMAGE_URL",path:"image.link",render:"IF_CONNECTION_SELECTED",required:!0,value:[]},{componentName:e.componentName.mixInput,helperText:n("Enter the caption you want to send with the Image."),id:"caption",label:n("Caption"),onChange:"SET_CAPTION",path:"image.caption",render:"IF_CONNECTION_SELECTED",value:[]}]},actions:{CONNECTION_ADD_CHANGE:E,HANDLE_BUSINESS_ID:r,IF_CONNECTION_SELECTED:({$:a})=>t(a.getComponent("connection-id")?.value),SET_CAPTION:i("caption"),SET_CONNECTION:i("connectionId"),SET_IMAGE_URL:i("imageUrl"),SET_PHONE_NUMBER_ID:N,SET_RECIPIENT_NUMBER:i("recipientNumber"),ON_MACHINE_LOAD:async({$:a})=>{m(a,[{db:"connectionId",id:"connection-id"},{db:"recipientNumber",id:"recipient-phone-number"},{db:"fileName",id:"file-name"},{db:"caption",id:"caption"},{db:"imageUrl",id:"image-url"}])}}}));export{h as default};
