import{aa as d}from"./_applist-tangy-colts-beg-36.js";import{_ as a}from"./main-tangy-colts-beg.js";import{s}from"./machine.-tangy-colts-beg-869.js";import{h as o}from"./commonut-tangy-colts-beg-637.js";import{a as n,f as l,b as i,e as m,g as c}from"./machineh-tangy-colts-beg-663.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 f=d(({helpers:t})=>({states:{components:[{componentName:t.componentName.select,fieldType:"config",id:"list-id",label:a("Lists"),mode:"multiple",onChange:"SELECT_LIST",onRefetch:"REFETCH_LISTS",options:[],placeholder:a("Select a list"),render:!0,value:void 0},{componentName:t.componentName.select,fieldType:"config",id:"tag-id",label:a("Tags"),mode:"tags",onChange:"SELECT_TAG",onRefetch:"REFETCH_TAGS",options:[],placeholder:a("Select a tag"),render:!0,value:void 0},{componentName:t.componentName.select,fieldType:"config",id:"company-id",label:a("Primary Company"),onChange:"SELECT_COMPANY",onRefetch:"REFETCH_COMPANIES",options:[],placeholder:a("Select a company"),render:!0,value:void 0},{addItemButtonLabel:"Add Field",componentName:t.componentName.repeaterField,fieldsMetaData:[{componentName:t.componentName.select,label:a("Field"),name:"fluentCrmField",options:[],showSearch:!0,style:{width:150},value:""},{componentName:t.componentName.mixInput,label:a("Value"),name:"value",value:[],wrapperClassName:"w-100"}],id:"field-map",label:a("Field Map"),labelActionIconName:"refresh-cw",labelActionOnClick:"REFETCH_FIELDS",labelActionText:a("Refetch Fields"),nonRemovableRows:[],onChange:"HANDLE_FIELD_MAPPING",path:"fieldMap",render:!0,value:[],wrapperClassName:"mt-3"},{addItemButtonLabel:"Add Field",componentName:t.componentName.repeaterField,fieldsMetaData:[{componentName:t.componentName.select,label:a("Field"),name:"fluentCrmField",options:[],showSearch:!0,style:{width:150},value:""},{componentName:t.componentName.mixInput,label:a("Value"),name:"value",value:[],wrapperClassName:"w-100"}],id:"custom-field-map",label:a("Custom Field Map"),labelActionIconName:"refresh-cw",labelActionOnClick:"REFETCH_CUSTOM_FIELDS",labelActionText:a("Refetch Custom Fields"),nonRemovableRows:[],onChange:"HANDLE_CUSTOM_FIELD_MAPPING",path:"customFieldMap",render:!0,value:[],wrapperClassName:"mt-3"}]},actions:{HANDLE_CUSTOM_FIELD_MAPPING:o("customFieldMap"),HANDLE_FIELD_MAPPING:o("fieldMap"),SELECT_COMPANY:o("companyId"),SELECT_LIST:o("listId"),SELECT_TAG:o("tagId"),REFETCH_FIELDS:async({$:e})=>{await m(e)},REFETCH_CUSTOM_FIELDS:async({$:e})=>{await c(e)},REFETCH_LISTS:async({$:e})=>{await n(e)},REFETCH_TAGS:async({$:e})=>{await l(e)},REFETCH_COMPANIES:async({$:e})=>{await i(e)},ON_MACHINE_LOAD:async({$:e})=>{s(e,[{db:"customFieldMap",id:"custom-field-map"},{db:"tagId",id:"tag-id"},{db:"listId",id:"list-id"},{db:"companyId",id:"company-id"}]),await Promise.all([n(e),l(e),i(e),m(e),c(e)])}}}));export{f as default};
