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