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