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