import{aa as s,ab as r}from"./_applist-tangy-colts-beg-36.js";import{_ as t}from"./main-tangy-colts-beg.js";import{s as c}from"./machine.-tangy-colts-beg-869.js";import{b as n}from"./machineh-tangy-colts-beg-425.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=s(({helpers:o})=>({actions:{ON_MACHINE_LOAD:async({$:e})=>{c(e,[{db:"groupId",id:"group-id"}]),await n(e)},REFETCH_GROUPS:async({$:e})=>n(e),SELECT_GROUP:async({$:e,e:a})=>{e.setThisComponent(i=>{i.value=a}),e.setDb({groupId:a})}},states:{components:[{componentName:o.componentName.select,fieldType:"config",id:"group-id",label:t("Groups"),onChange:"SELECT_GROUP",onRefetch:"REFETCH_GROUPS",options:[],placeholder:t("Select a group"),render:!0,value:void 0},{componentName:o.componentName.hookListener,fieldType:"config",id:"hook-listener",label:t("Listen Hook"),render:({$:e})=>{var a;return r((a=e.getComponent("group-id"))==null?void 0:a.value)}}]}}));export{u as default};
