import{aa as l}from"./_applist-tangy-colts-beg-36.js";import{_ as a}from"./main-tangy-colts-beg.js";import{h as i,s as m,a as r}from"./machine.-tangy-colts-beg-869.js";import{c as o}from"./commonut-tangy-colts-beg-731.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const u=l(({helpers:e})=>({states:{components:[{addItemButtonLabel:a("Add Field"),componentName:e.componentName.repeaterField,fieldsMetaData:[{componentName:e.componentName.select,label:a("Customer Field"),name:"customer_field",options:o,placeholder:a("Select a customer field"),required:!0,value:"",wrapperClassName:"w-100"},{componentName:e.componentName.mixInput,label:a("Value"),name:"value",placeholder:a("Enter a value"),required:!0,value:[],wrapperClassName:"w-100"}],id:"field-map",label:a("Customer Fields Mapping"),onChange:"HANDLE_FIELD_MAPPING",path:"field_map",render:!0,value:[]}]},actions:{HANDLE_FIELD_MAPPING:i("fieldMap"),ON_MACHINE_LOAD:async({$:t})=>{m(t,[{db:"fieldMap",id:"field-map"}]),r({$:t,componentId:"field-map",dbKey:"fieldMap",fields:o,mapFieldKey:"customer_field",mapFieldValue:"value"})}}}));export{u as default};
