import{aa as i,ab as l}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{a}from"./machineh-tangy-colts-beg-720.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 f=i(({helpers:o})=>({actions:{ON_MACHINE_LOAD:async({$:e})=>{c(e,[{db:"lessonId",id:"lesson-id"}]),await a(e)},REFETCH_LESSONS:async({$:e})=>a(e),SELECT_LESSON:async({$:e,e:s})=>{e.setThisComponent(n=>{n.value=s}),e.setDb({lessonId:s})}},states:{components:[{componentName:o.componentName.select,fieldType:"config",id:"lesson-id",label:t("Lessons"),onChange:"SELECT_LESSON",onRefetch:"REFETCH_LESSONS",options:[],placeholder:t("Select a Lesson"),render:!0,value:void 0},{componentName:o.componentName.hookListener,fieldType:"config",id:"hook-listener",label:t("Listen Hook"),render:({$:e})=>{var s;return l((s=e.getComponent("lesson-id"))==null?void 0:s.value)}}]}}));export{f as default};
