import{aa as o,ab as m}from"./_applist-tangy-colts-beg-36.js";import{_ as a}from"./main-tangy-colts-beg.js";import{s as c}from"./machine.-tangy-colts-beg-869.js";import{h as i,a as r,b as N,c as p,d as s,r as E}from"./whatsapp-tangy-colts-beg-275.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,n){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,n),n)}};const I=o(({helpers:e})=>({states:{components:[s(e),E(e),{componentName:e.componentName.mixInput,helperText:a("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:a("Image URL"),onChange:"SET_IMAGE_URL",path:"image.link",render:"IF_CONNECTION_SELECTED",required:!0,value:[]},{componentName:e.componentName.mixInput,helperText:a("Enter the caption you want to send with the Image."),id:"caption",label:a("Caption"),onChange:"SET_CAPTION",path:"image.caption",render:"IF_CONNECTION_SELECTED",value:[]}]},actions:{CONNECTION_ADD_CHANGE:p,HANDLE_BUSINESS_ID:N,IF_CONNECTION_SELECTED:({$:n})=>{var t;return m((t=n.getComponent("connection-id"))==null?void 0:t.value)},SET_CAPTION:i("caption"),SET_CONNECTION:i("connectionId"),SET_IMAGE_URL:i("imageUrl"),SET_PHONE_NUMBER_ID:r,SET_RECIPIENT_NUMBER:i("recipientNumber"),ON_MACHINE_LOAD:async({$:n})=>{c(n,[{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{I as default};
