import{aa as c,ab as i}from"./_applist-tangy-colts-beg-36.js";import{_ as e}from"./main-tangy-colts-beg.js";import{h as C,s}from"./machine.-tangy-colts-beg-869.js";import{h as d,a as h,c as r,u as N}from"./commonut-tangy-colts-beg-567.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 I=c(({helpers:n})=>({states:{components:[r(n),{componentName:n.componentName.mixInput,helperText:e("Enter contact ID, to find the contact"),id:"contact-id",label:e("Contact ID"),onChange:"HANDLE_CONTACT_ID",path:"contactId",render:"IF_CONNECTION_SELECTED",value:void 0}]},actions:{CONNECTION_ADD_CHANGE:h,IF_CONNECTION_SELECTED:({$:t})=>{var o;return i((o=t.getComponent("connection-id"))==null?void 0:o.value)},ON_MACHINE_LOAD:({$:t})=>{s(t,[{db:"connectionId",id:"connection-id"},{db:"urlDb",id:"url"},{db:"contactId",id:"contact-id"}]),N({$:t})},SET_CONNECTION:async({$:t,e:o})=>{t.setThisComponent(a=>{a.value=o}),t.setDb(a=>{a.connectionId=o,a.urlDb=""})},HANDLE_CONTACT_ID:C("contactId"),HANDLE_URL:d}}));export{I as default};
