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