import{aa as t,ab as r}from"./_applist-tangy-colts-beg-36.js";import{_ as i}from"./main-tangy-colts-beg.js";import{s}from"./machine.-tangy-colts-beg-869.js";import{h as n,a as c,b as d,c as m,d as p,r as N}from"./whatsapp-tangy-colts-beg-275.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 C=t(({helpers:e})=>({states:{components:[p(e),N(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:m,HANDLE_BUSINESS_ID:d,IF_CONNECTION_SELECTED:({$:o})=>{var a;return r((a=o.getComponent("connection-id"))==null?void 0:a.value)},SET_AUDIO_URL:n("audioUrl"),SET_CONNECTION:n("connectionId"),SET_PHONE_NUMBER_ID:c,SET_RECIPIENT_NUMBER:n("recipientNumber"),ON_MACHINE_LOAD:async({$:o})=>{s(o,[{db:"connectionId",id:"connection-id"},{db:"recipientNumber",id:"recipient-phone-number"},{db:"audioUrl",id:"audio-url"}])}}}));export{C as default};
