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