import{b as t,i as a}from"./useflows-BpG3C9m1.js";import{e as i}from"./main-few-lands-burn.js";import{s as r}from"./machine.-BRuqPpdF.js";import{h as d,a as m,b as s,c as o,d as N,r as p}from"./whatsapp-lSZheXFS.js";import"./mutative-C6xjlr6O.js";import"./lodash-YpNkAOPN.js";const I=t(({helpers:e})=>({states:{components:[N(e),p(e),{componentName:e.componentName.mixInput,helperText:i("Enter the video URL. WhatsApp API supports only H.264 + AAC encoded videos in .3gp or .mp4 formats with a maximum file size of 16 MB."),id:"audio-url",label:i("Audio URL"),onChange:"SET_AUDIO_URL",path:"audio.link",render:"IF_CONNECTION_SELECTED",required:!0,value:[]}]},actions:{CONNECTION_ADD_CHANGE:s,HANDLE_BUSINESS_ID:m,IF_CONNECTION_SELECTED:({$:n})=>a(n.getComponent("connection-id")?.value),SET_AUDIO_URL:o("audioUrl"),SET_CONNECTION:o("connectionId"),SET_PHONE_NUMBER_ID:d,SET_RECIPIENT_NUMBER:o("recipientNumber"),ON_MACHINE_LOAD:async({$:n})=>{r(n,[{db:"connectionId",id:"connection-id"},{db:"recipientNumber",id:"recipient-phone-number"},{db:"audioUrl",id:"audio-url"}])}}}));export{I as default};
