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