import{aa as i}from"./_applist-tangy-colts-beg-36.js";import{_ as t}from"./main-tangy-colts-beg.js";import{h as l,s as n}from"./machine.-tangy-colts-beg-869.js";import{a as o}from"./machineh-tangy-colts-beg-773.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 d=i(({helpers:e})=>({states:{components:[{addItemButtonLabel:"Add Field",componentName:e.componentName.repeaterField,fieldsMetaData:[{componentName:e.componentName.select,label:t("Field"),name:"mailPoetField",options:[],required:!0,showSearch:!0,style:{width:150},value:""},{componentName:e.componentName.mixInput,label:t("Value"),name:"value",required:!0,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"}]},actions:{HANDLE_FIELD_MAPPING:l("fieldMap"),ON_MACHINE_LOAD:async({$:a})=>{n(a,[{db:"fieldMap",id:"field-map"}]),await o(a)},REFETCH_FIELDS:async({$:a})=>{await o(a)}}}));export{d as default};
