import{aa as s}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{c as r}from"./machineh-tangy-colts-beg-300.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 m=s(({helpers:t})=>({states:{components:[{componentName:t.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},{componentName:t.componentName.select,helperText:a("Select the new status for the order."),id:"status",label:a("Order Status"),onChange:"HANDLE_ORDER_STATUS",onRefetch:"REFETCH_ORDER_STATUS",options:[],path:"status",placeholder:a("Select a status"),render:!0,required:!0,value:void 0}]},actions:{HANDLE_ORDER_ID:o("orderId"),HANDLE_ORDER_STATUS:o("status"),ON_MACHINE_LOAD:async({$:e})=>{d(e,[{db:"status",id:"status"},{db:"orderId",id:"order-id"}]),await r(e)},REFETCH_ORDER_STATUS:async({$:e})=>{await r(e)}}}));export{m as default};
