import{aa as i,ab as s}from"./_applist-tangy-colts-beg-36.js";import{_ as n}from"./main-tangy-colts-beg.js";import{s as m}from"./machine.-tangy-colts-beg-869.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 N=i(({helpers:o})=>({states:{components:[{componentName:o.componentName.input,fieldType:"config",id:"hook-name",label:n("Hook Name"),onChange:"HANDLE_INPUT",render:!0,value:void 0},{componentName:o.componentName.hookListener,fieldType:"config",id:"hook-listener",label:n("Listen Hook"),render:({$:e})=>{var a;return s((a=e.db)==null?void 0:a.hookName)}}]},actions:{HANDLE_INPUT:({$:e,e:a})=>{e.setThisComponent(t=>{t.value=a.target.value}),e.setDb(t=>{t.hookName=a.target.value})},ON_MACHINE_LOAD:({$:e})=>{m(e,[{db:"hookName",id:"hook-name"}])}}}));export{N as default};
