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