import{aa as r}from"./_applist-tangy-colts-beg-36.js";import{_ as a}from"./main-tangy-colts-beg.js";import{h as o,s as m}from"./machine.-tangy-colts-beg-869.js";import{c as l}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 p=r(({helpers:e})=>({states:{components:[{componentName:e.componentName.mixInput,fieldType:"config",id:"customer-id",label:a("Customer ID"),onChange:"HANDLE_CUSTOMER_ID",placeholder:a("Enter customer ID"),render:!0,required:!0,value:void 0},{addItemButtonLabel:a("Add Field"),componentName:e.componentName.repeaterField,fieldsMetaData:[{componentName:e.componentName.select,label:a("Customer Field"),name:"customer_field",options:l,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_CUSTOMER_ID:o("customerId"),HANDLE_FIELD_MAPPING:o("fieldMap"),ON_MACHINE_LOAD:async({$:t})=>{m(t,[{db:"customerId",id:"customer-id"},{db:"fieldMap",id:"field-map"}])}}}));export{p as default};
