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