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