import{aa as m,ab as s}from"./_applist-tangy-colts-beg-36.js";import{_ as o}from"./main-tangy-colts-beg.js";import{s as c}from"./machine.-tangy-colts-beg-869.js";import{h as l,c as r}from"./commonut-tangy-colts-beg-392.js";import{b as i}from"./machineh-tangy-colts-beg-858.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 _=m(({helpers:t})=>({states:{components:[r(t),{addItemButtonLabel:"Add Column",componentName:t.componentName.repeaterField,fieldsMetaData:[{componentName:t.componentName.select,label:o("Field"),name:"omnisendField",options:[],required:!0,showSearch:!0,style:{width:200},value:""},{componentName:t.componentName.mixInput,label:o("Value"),name:"value",required:!0,value:[],wrapperClassName:"w-100"}],id:"event-data",label:o("Field Mapping"),onChange:"ON_CHANGE_ROW_DATA",path:"eventData",render:"IF_CONNECTION_SELECTED",value:[]}]},actions:{IF_CONNECTION_SELECTED:({$:e})=>{var a;return s((a=e.getComponent("connection-id"))==null?void 0:a.value)},ON_CHANGE_ROW_DATA:({$:e,e:a})=>{e.setThisComponent(n=>{n.value=a}),e.setDb(n=>{n.eventData=a})},ON_MACHINE_LOAD:async({$:e})=>{c(e,[{db:"connectionId",id:"connection-id"},{db:"eventData",id:"event-data"}]),await i(e)},SET_CONNECTION:async({$:e,e:a})=>{e.setThisComponent(n=>{n.value=a}),e.setDb(n=>{n.connectionId=a}),await i(e)},CONNECTION_ADD_CHANGE:l}}));export{_ as default};
