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