import{aa as l,ab as r}from"./_applist-tangy-colts-beg-36.js";import{_ as e}from"./main-tangy-colts-beg.js";import{h as o,s as i}from"./machine.-tangy-colts-beg-869.js";import{h as E,c}from"./twilioco-tangy-colts-beg-300.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(n,a){return this.cache.has(n)?this.cache.get(n):(this.cache.set(n,a),a)}};const p=l(({helpers:n})=>({states:{components:[c(n),{componentName:n.componentName.mixInput,helperText:e("Enter the sender's phone number where to call from."),id:"sender-phone-number",label:e("Sender Phone Number"),onChange:"SET_SENDER_PHONE_NUMBER",path:"From",render:"IF_CONNECTION_SELECTED",required:!0,value:[]},{componentName:n.componentName.mixInput,helperText:e("Enter the recipient phone number to call (in E.164 format, e.g., +1234567890)."),id:"recipient-phone-number",label:e("Recipient Phone Number"),onChange:"SET_RECIPIENT_PHONE_NUMBER",path:"To",render:"IF_CONNECTION_SELECTED",required:!0,value:[]},{componentName:n.componentName.mixInput,helperText:e("Enter the message to be spoken during the call."),id:"message",label:e("Message"),onChange:"SET_MESSAGE",path:"message",render:"IF_CONNECTION_SELECTED",required:!0,value:[]},{componentName:n.componentName.select,helperText:e("Select the language for the voice call."),id:"language",label:e("Language"),onChange:"SET_LANGUAGE",options:[{label:e("English"),value:"en"},{label:e("Spanish"),value:"es"},{label:e("French"),value:"fr"},{label:e("German"),value:"de"},{label:e("Italian"),value:"it"},{label:e("Portuguese"),value:"pt"},{label:e("Russian"),value:"ru"},{label:e("Japanese"),value:"ja"},{label:e("Korean"),value:"ko"},{label:e("Chinese"),value:"zh"}],path:"language",placeholder:e("Select Language"),render:"IF_CONNECTION_SELECTED",required:!0,value:"en"},{componentName:n.componentName.select,helperText:e("Select the voice gender for the call."),id:"voice",label:e("Voice"),onChange:"SET_VOICE",options:[{label:e("Man"),value:"man"},{label:e("Woman"),value:"woman"}],path:"voice",placeholder:e("Select Voice"),render:"IF_CONNECTION_SELECTED",required:!0,value:"male"}]},actions:{CONNECTION_ADD_CHANGE:E,IF_CONNECTION_SELECTED:({$:a})=>{var t;return r((t=a.getComponent("connection-id"))==null?void 0:t.value)},SET_CONNECTION:o("connectionId"),SET_LANGUAGE:o("language"),SET_MESSAGE:o("message"),SET_RECIPIENT_PHONE_NUMBER:o("recipientPhoneNumber"),SET_SENDER_PHONE_NUMBER:o("senderPhoneNumber"),SET_VOICE:o("voice"),ON_MACHINE_LOAD:({$:a})=>{i(a,[{db:"connectionId",id:"connection-id"},{db:"senderPhoneNumber",id:"sender-phone-number"},{db:"recipientPhoneNumber",id:"recipient-phone-number"},{db:"message",id:"message"},{db:"language",id:"language"},{db:"voice",id:"voice"}])}}}));export{p as default};
