import{aa as a,ab as c}from"./_applist-tangy-colts-beg-36.js";import{_ as n}from"./main-tangy-colts-beg.js";import{s as r}from"./machine.-tangy-colts-beg-869.js";import{h as t,a as d,b as p,c as s,d as m,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 I=a(({helpers:e})=>({states:{components:[m(e),N(e),{componentName:e.componentName.mixInput,helperText:n("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:"video-url",label:n("Video URL"),onChange:"SET_VIDEO_URL",path:"video.link",render:"IF_CONNECTION_SELECTED",required:!0,value:[]},{componentName:e.componentName.mixInput,helperText:n("Enter the caption you want to send with the Video."),id:"caption",label:n("Caption"),onChange:"SET_CAPTION",path:"video.caption",render:"IF_CONNECTION_SELECTED",value:[]}]},actions:{CONNECTION_ADD_CHANGE:s,HANDLE_BUSINESS_ID:p,IF_CONNECTION_SELECTED:({$:o})=>{var i;return c((i=o.getComponent("connection-id"))==null?void 0:i.value)},SET_CAPTION:t("caption"),SET_CONNECTION:t("connectionId"),SET_PHONE_NUMBER_ID:d,SET_RECIPIENT_NUMBER:t("recipientNumber"),SET_VIDEO_URL:t("videoUrl"),ON_MACHINE_LOAD:async({$:o})=>{r(o,[{db:"connectionId",id:"connection-id"},{db:"recipientNumber",id:"recipient-phone-number"},{db:"caption",id:"caption"},{db:"videoUrl",id:"video-url"}])}}}));export{I as default};
