import{aa as c,ab as s}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{a as n}from"./machineh-tangy-colts-beg-615.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 T=c(({helpers:t})=>({actions:{ON_MACHINE_LOAD:async({$:e})=>{m(e,[{db:"achievementTypeId",id:"achievement-type"}]),await n(e)},REFETCH_ACHIEVEMENT_TYPES:async({$:e})=>n(e),SELECT_ACHIEVEMENT_TYPE:async({$:e,e:a})=>{e.setThisComponent(i=>{i.value=a}),e.setDb({achievementTypeId:a})}},states:{components:[{componentName:t.componentName.select,fieldType:"config",id:"achievement-type",label:o("Achievement Types"),onChange:"SELECT_ACHIEVEMENT_TYPE",onRefetch:"REFETCH_ACHIEVEMENT_TYPES",options:[],placeholder:o("Select a achievement type"),render:!0,value:void 0},{componentName:t.componentName.hookListener,fieldType:"config",id:"hook-listener",label:o("Listen Hook"),render:({$:e})=>{var a;return s((a=e.getComponent("achievement-type"))==null?void 0:a.value)}}]}}));export{T as default};
