import{aa as a,ab as c}from"./_applist-tangy-colts-beg-36.js";import{_ as i}from"./main-tangy-colts-beg.js";import{s}from"./machine.-tangy-colts-beg-869.js";import{h as m,c as h}from"./openaico-tangy-colts-beg-990.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 _=a(({helpers:n})=>({states:{components:[h(n),{componentName:n.componentName.mixInput,fieldType:"config",helperText:i("Limit value must be numeric."),id:"batch-limit",label:i("Batches Limit"),onChange:"SET_BATCHES_LIMIT",render:"IF_CONNECTION_SELECTED",value:[]}]},actions:{SET_CONNECTION:async({$:e,e:t})=>{e.setThisComponent(o=>{o.value=t}),e.setDb(o=>{o.connectionId=t})},IF_CONNECTION_SELECTED:({$:e})=>{var t;return c((t=e.getComponent("connection-id"))==null?void 0:t.value)},SET_BATCHES_LIMIT:async({$:e,e:t})=>{e.setThisComponent(o=>{o.value=t}),e.setDb(o=>{o.batchLimit=t})},CONNECTION_ADD_CHANGE:m,ON_MACHINE_LOAD:async({$:e})=>{s(e,[{db:"connectionId",id:"connection-id"},{db:"batchLimit",id:"batch-limit"}])}}}));export{_ as default};
