import{aa as c,ab as i}from"./_applist-tangy-colts-beg-36.js";import{_ as o}from"./main-tangy-colts-beg.js";import{h as t,s as h}from"./machine.-tangy-colts-beg-869.js";import{h as N,b as m,c as C,d as s}from"./machineh-tangy-colts-beg-816.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(n,e){return this.cache.has(n)?this.cache.get(n):(this.cache.set(n,e),e)}};const p=c(({helpers:n})=>({states:{components:[C(n),{componentName:n.componentName.mixInput,helperText:o("Enter the name of the channel you want to find."),id:"channel-name",label:o("Channel Name"),onChange:"SET_CHANNEL_NAME",path:"name",render:"IF_CONNECTION_SELECTED",required:!0,value:void 0}]},actions:{SET_CONNECTION:({$:e,e:a})=>{t("connectionId")({$:e,e:a}),s(e,n)},CONNECTION_ADD_CHANGE:m,HANDLE_BOT_TOKEN:N,SET_CHANNEL_NAME:t("channelName"),IF_CONNECTION_SELECTED:({$:e})=>{var a;return i((a=e.getComponent("connection-id"))==null?void 0:a.value)},ON_MACHINE_LOAD:({$:e})=>{h(e,[{db:"connectionId",id:"connection-id"},{db:"channelName",id:"channel-name"}])}}}));export{p as default};
