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