import{aa as r,ab as c}from"./_applist-tangy-colts-beg-36.js";import{_ as a}from"./main-tangy-colts-beg.js";import{h as t,s}from"./machine.-tangy-colts-beg-869.js";import{h as i,b as h,c as C,d}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 l=r(({helpers:n})=>({states:{components:[C(n),{componentName:n.componentName.mixInput,helperText:a("Enter the username or user ID to search for."),id:"search-query",label:a("Username or User ID"),onChange:"SET_SEARCH_QUERY",path:"search_query",render:"IF_CONNECTION_SELECTED",required:!0,value:void 0}]},actions:{SET_CONNECTION:({$:e,e:o})=>{t("connectionId")({$:e,e:o}),d(e,n)},CONNECTION_ADD_CHANGE:h,HANDLE_BOT_TOKEN:i,SET_SEARCH_QUERY:t("searchQuery"),IF_CONNECTION_SELECTED:({$:e})=>{var o;return c((o=e.getComponent("connection-id"))==null?void 0:o.value)},ON_MACHINE_LOAD:({$:e})=>{s(e,[{db:"connectionId",id:"connection-id"},{db:"searchQuery",id:"search-query"}])}}}));export{l as default};
