import{aa as a,ab as c}from"./_applist-tangy-colts-beg-36.js";import{_ as i}from"./main-tangy-colts-beg.js";import{s}from"./machine.-tangy-colts-beg-869.js";import{h as C,c as N}from"./commonut-tangy-colts-beg-392.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(n,t){return this.cache.has(n)?this.cache.get(n):(this.cache.set(n,t),t)}};const _=a(({helpers:n})=>({states:{components:[N(n),{componentName:n.componentName.input,fieldType:"config",id:"after-contactId",label:i("Contact Id"),onChange:"HANDLE_CONTACT_INFO",render:"IF_CONNECTION_SELECTED",type:"text",value:void 0}]},actions:{IF_CONNECTION_SELECTED:({$:t})=>{var e;return c((e=t.getComponent("connection-id"))==null?void 0:e.value)},HANDLE_CONTACT_INFO:async({$:t,e})=>{t.setThisComponent(o=>{o.value=e.target.value}),t.setDb(o=>{o.afterContactId=e.target.value})},ON_MACHINE_LOAD:async({$:t})=>{s(t,[{db:"connectionId",id:"connection-id"},{db:"afterContactId",id:"after-contactId"}])},SET_CONNECTION:async({$:t,e})=>{t.setThisComponent(o=>{o.value=e}),t.setDb(o=>{o.connectionId=e})},CONNECTION_ADD_CHANGE:C}}));export{_ as default};
