import{b as a,i}from"./useflows-BpG3C9m1.js";import{e}from"./main-few-lands-burn.js";import{s as m}from"./machine.-BRuqPpdF.js";import{h as N,a as c,b as E,c as t,d,r}from"./whatsapp-lSZheXFS.js";import"./mutative-C6xjlr6O.js";import"./lodash-YpNkAOPN.js";const s=a(({helpers:n})=>({states:{components:[d(n),r(n),{componentName:n.componentName.mixInput,helperText:e("Enter the document URL. which supports TXT, Excel, Word, PowerPoint, and PDF files up to 100 MB."),id:"document-url",label:e("Document URL"),onChange:"SET_DOCUMENT_URL",path:"document.link",render:"IF_CONNECTION_SELECTED",required:!0,value:[]},{componentName:n.componentName.mixInput,helperText:e("Enter the caption you want to send with the Document."),id:"caption",label:e("Caption"),onChange:"SET_CAPTION",path:"document.caption",render:"IF_CONNECTION_SELECTED",value:[]},{componentName:n.componentName.mixInput,helperText:e("Enter the File Name you want to send with the Document."),id:"filename",label:e("File Name"),onChange:"SET_FILE_NAME",path:"document.filename",render:"IF_CONNECTION_SELECTED",value:[]}]},actions:{CONNECTION_ADD_CHANGE:E,HANDLE_BUSINESS_ID:c,IF_CONNECTION_SELECTED:({$:o})=>i(o.getComponent("connection-id")?.value),SET_CAPTION:t("caption"),SET_CONNECTION:t("connectionId"),SET_DOCUMENT_URL:t("documentUrl"),SET_FILE_NAME:t("fileName"),SET_PHONE_NUMBER_ID:N,SET_RECIPIENT_NUMBER:t("recipientNumber"),ON_MACHINE_LOAD:async({$:o})=>{m(o,[{db:"connectionId",id:"connection-id"},{db:"recipientNumber",id:"recipient-phone-number"},{db:"fileName",id:"file-name"},{db:"caption",id:"caption"},{db:"documentUrl",id:"document-url"}])}}}));export{s as default};
