import{aa as n,ab as r}from"./_applist-tangy-colts-beg-36.js";import{_ as s}from"./main-tangy-colts-beg.js";import{s as c}from"./machine.-tangy-colts-beg-869.js";import{a}from"./machineh-tangy-colts-beg-561.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(o,e){return this.cache.has(o)?this.cache.get(o):(this.cache.set(o,e),e)}};const u=n(({helpers:o})=>({actions:{ON_MACHINE_LOAD:async({$:e})=>{c(e,[{db:"userId",id:"user-id"}]),await a(e)},REFETCH_USERS:async({$:e})=>a(e),SELECT_USER:async({$:e,e:t})=>{e.setThisComponent(i=>{i.value=t}),e.setDb({userId:t})}},states:{components:[{componentName:o.componentName.select,fieldType:"config",id:"user-id",label:s("Users"),onChange:"SELECT_USER",onRefetch:"REFETCH_USERS",options:[],placeholder:s("Select a user"),render:!0,value:void 0},{componentName:o.componentName.hookListener,fieldType:"config",id:"hook-listener",label:s("Listen Hook"),render:({$:e})=>{var t;return r((t=e.getComponent("user-id"))==null?void 0:t.value)}}]}}));export{u as default};
