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