import{z as n,A as s}from"./index-b7Iy0dz5.js";const i=n("data",{state:()=>({summary:null,board:null,loadingBoard:!1}),actions:{async loadSummary(){try{const{data:a}=await s.get("/staff/summary");this.summary=a}catch{}},async loadBoard(a){this.loadingBoard=!0;try{const{data:t}=await s.get("/staff/board",{params:{scope:a}});this.board=t}finally{this.loadingBoard=!1}},async loadOrder(a){const{data:t}=await s.get(`/staff/orders/${a}`);return t.order},async transition(a,t){const{data:o}=await s.post(`/staff/orders/${a}/transition`,{to:t});return o},async setLineStatus(a,t,o){const{data:r}=await s.post(`/staff/orders/${a}/lines/${t}/status`,{status:o});return r},async laborStart(a,t){const o=t?{repair_order_service_id:t}:{},{data:r}=await s.post(`/staff/orders/${a}/labor/start`,o);return r},async laborStop(a){const{data:t}=await s.post(`/staff/orders/${a}/labor/stop`,{});return t},async loadInspection(a){const{data:t}=await s.get(`/staff/inspections/${a}`);return t.inspection},async saveInspection(a,t){const{data:o}=await s.post(`/staff/inspections/${a}/results`,t);return o}}});export{i as u};
//# sourceMappingURL=data-mgWZh0lg.js.map
