import{aa as c,ab as i}from"./_applist-tangy-colts-beg-36.js";import{_ as t}from"./main-tangy-colts-beg.js";import{h as m,s}from"./machine.-tangy-colts-beg-869.js";import{h as r,a as N,c as h,u as C}from"./commonut-tangy-colts-beg-567.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(n,e){return this.cache.has(n)?this.cache.get(n):(this.cache.set(n,e),e)}};const _=c(({helpers:n})=>({states:{components:[h(n),{componentName:n.componentName.mixInput,helperText:t("Enter account name to find the account"),id:"name",label:t("Account Name"),onChange:"HANDLE_NAME",path:"name",render:"IF_CONNECTION_SELECTED",required:!0,value:void 0}]},actions:{CONNECTION_ADD_CHANGE:N,HANDLE_NAME:m("nameDb"),HANDLE_URL:r,IF_CONNECTION_SELECTED:({$:e})=>{var a;return i((a=e.getComponent("connection-id"))==null?void 0:a.value)},ON_MACHINE_LOAD:({$:e})=>{s(e,[{db:"connectionId",id:"connection-id"},{db:"urlDb",id:"url"},{db:"nameDb",id:"name"}]),C({$:e})},SET_CONNECTION:({$:e,e:a})=>{e.setThisComponent(o=>{o.value=a}),e.setDb(o=>{o.connectionId=a,o.urlDb=""})}}}));export{_ as default};
