import{b as a,i as m}from"./useflows-BpG3C9m1.js";import{e as i}from"./main-few-lands-burn.js";import{s as c}from"./machine.-BRuqPpdF.js";import{h as s,c as C}from"./openaico-BZSnTkIZ.js";import"./mutative-C6xjlr6O.js";import"./lodash-YpNkAOPN.js";const T=a(({helpers:o})=>({states:{components:[C(o),{componentName:o.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(n=>{n.value=t}),e.setDb(n=>{n.connectionId=t})},IF_CONNECTION_SELECTED:({$:e})=>m(e.getComponent("connection-id")?.value),SET_BATCHES_LIMIT:async({$:e,e:t})=>{e.setThisComponent(n=>{n.value=t}),e.setDb(n=>{n.batchLimit=t})},CONNECTION_ADD_CHANGE:s,ON_MACHINE_LOAD:async({$:e})=>{c(e,[{db:"connectionId",id:"connection-id"},{db:"batchLimit",id:"batch-limit"}])}}}));export{T as default};
