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 d}from"./machine.-tangy-colts-beg-869.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 l=r(({helpers:e})=>({states:{components:[{componentName:e.componentName.mixInput,helperText:a("The ID of the order you want to update."),id:"order-id",label:a("Order ID"),onChange:"HANDLE_ORDER_ID",path:"order_id",render:!0,required:!0,value:void 0},{addItemButtonLabel:a("Add Field"),componentName:e.componentName.repeaterField,fieldsMetaData:[{componentName:e.componentName.mixInput,label:a("Meta Key"),name:"meta_key",required:!0,value:[],wrapperClassName:"w-100"},{componentName:e.componentName.mixInput,label:a("Meta Value"),name:"value",required:!0,value:[],wrapperClassName:"w-100"}],helperText:a("Map custom fields (meta data) to add or update for the order."),id:"custom-field-mapping",label:a("Custom Field Mapping (Meta Data)"),nonRemovableRows:[],onChange:"HANDLE_META_FIELD_MAPPING",path:"customFieldMap",render:!0,value:[]}]},actions:{HANDLE_META_FIELD_MAPPING:o("customFieldMap"),HANDLE_ORDER_ID:o("orderId"),ON_MACHINE_LOAD:({$:t})=>{d(t,[{db:"orderId",id:"order-id"},{db:"customFieldMap",id:"custom-field-mapping"}])}}}));export{l as default};
