import{aa as m}from"./_applist-tangy-colts-beg-36.js";import{_ as t}from"./main-tangy-colts-beg.js";import{s as i}from"./machine.-tangy-colts-beg-869.js";import{h as o}from"./commonut-tangy-colts-beg-637.js";import{c as l,d as n}from"./machineh-tangy-colts-beg-663.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,a){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,a),a)}};const F=m(({helpers:e})=>({states:{components:[{addItemButtonLabel:"Add Field",componentName:e.componentName.repeaterField,fieldsMetaData:[{componentName:e.componentName.select,label:t("Field"),name:"fluentCrmField",options:[],showSearch:!0,style:{width:150},value:""},{componentName:e.componentName.mixInput,label:t("Value"),name:"value",value:[],wrapperClassName:"w-100"}],id:"field-map",label:t("Field Map"),labelActionIconName:"refresh-cw",labelActionOnClick:"REFETCH_FIELDS",labelActionText:t("Refetch Fields"),nonRemovableRows:[],onChange:"HANDLE_FIELD_MAPPING",path:"fieldMap",render:!0,value:[],wrapperClassName:"mt-3"},{addItemButtonLabel:"Add Field",componentName:e.componentName.repeaterField,fieldsMetaData:[{componentName:e.componentName.select,label:t("Field"),name:"fluentCrmField",options:[],showSearch:!0,style:{width:150},value:""},{componentName:e.componentName.mixInput,label:t("Value"),name:"value",value:[],wrapperClassName:"w-100"}],id:"custom-field-map",label:t("Custom Field Map"),labelActionIconName:"refresh-cw",labelActionOnClick:"REFETCH_CUSTOM_FIELDS",labelActionText:t("Refetch Custom Fields"),nonRemovableRows:[],onChange:"HANDLE_CUSTOM_FIELD_MAPPING",path:"customFieldMap",render:!0,value:[]}]},actions:{HANDLE_CUSTOM_FIELD_MAPPING:o("customFieldMap"),HANDLE_FIELD_MAPPING:o("fieldMap"),REFETCH_FIELDS:async({$:a})=>{await l(a)},REFETCH_CUSTOM_FIELDS:async({$:a})=>{await n(a)},ON_MACHINE_LOAD:async({$:a})=>{i(a,[{db:"customFieldMap",id:"custom-field-map"}]),await Promise.all([l(a),n(a)])}}}));export{F as default};
