import{b as c,i as r}from"./useflows-BpG3C9m1.js";import{e as n}from"./main-few-lands-burn.js";import{s as C,h as t}from"./machine.-BRuqPpdF.js";import{h as E,c as s}from"./commonut-BBfXq81f.js";import{a as o}from"./machineh-F5S5pxBI.js";import"./mutative-C6xjlr6O.js";import"./lodash-YpNkAOPN.js";const O=c(({helpers:i})=>({states:{components:[s(i),{componentName:i.componentName.select,fieldType:"config",helperText:n("Select the voice to retrieve details for."),id:"voice-id",isMappable:!0,label:n("Voice"),onChange:"HANDLE_VOICE_CHANGE",onRefetch:"REFETCH_VOICES",optionFilterProp:"label",options:[],path:"voice_id",render:"IF_CONNECTION_SELECTED",required:!0,showSearch:!0,value:void 0}]},actions:{CONNECTION_ADD_CHANGE:E,HANDLE_VOICE_CHANGE:t("voice_id"),IF_CONNECTION_SELECTED:({$:e})=>r(e.getComponent("connection-id")?.value),REFETCH_VOICES:({$:e})=>o(e),SET_CONNECTION:({$:e,e:a})=>{t("connectionId")({$:e,e:a}),o(e)},ON_MACHINE_LOAD:({$:e})=>{C(e,[{db:"connectionId",id:"connection-id"},{db:"voice_id",id:"voice-id"}]),o(e)}}}));export{O as default};
