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 s,s as C}from"./machine.-tangy-colts-beg-869.js";import{h as d,a as h,c as r,u}from"./commonut-tangy-colts-beg-567.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(o,n){return this.cache.has(o)?this.cache.get(o):(this.cache.set(o,n),n)}};const E=c(({helpers:o})=>({states:{components:[r(o),{componentName:o.componentName.mixInput,helperText:e("Enter account ID, to find the account"),id:"account-id",label:e("Account ID"),onChange:"HANDLE_ACCOUNT_ID",path:"accountId",render:"IF_CONNECTION_SELECTED",value:void 0}]},actions:{CONNECTION_ADD_CHANGE:h,IF_CONNECTION_SELECTED:({$:n})=>{var t;return i((t=n.getComponent("connection-id"))==null?void 0:t.value)},ON_MACHINE_LOAD:({$:n})=>{C(n,[{db:"connectionId",id:"connection-id"},{db:"urlDb",id:"url"},{db:"accountId",id:"account-id"}]),u({$:n})},SET_CONNECTION:async({$:n,e:t})=>{n.setThisComponent(a=>{a.value=t}),n.setDb(a=>{a.connectionId=t,a.urlDb=""})},HANDLE_ACCOUNT_ID:s("accountId"),HANDLE_URL:d}}));export{E as default};
