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