import"./index-IP_FWtso.js";import{a}from"./vendor-utils-BveVE6Uf.js";class n{constructor(){this.getUnits=async()=>(await a.get("MaterialUnit")).data,this.addUnit=async t=>(await a.post("MaterialUnit",t)).data,this.editUnit=async t=>(await a.put(`MaterialUnit/${t.id}`,t)).data,this.deleteUnit=async t=>(await a.delete(`MaterialUnit/${t}`)).data,this.getUnitById=async t=>(await a.get(`MaterialUnit/${t}`)).data,this.getUnitsSelectList=async()=>(await a.get("MaterialUnit/SelectList")).data,this.toggleUnit=async t=>(await a.post(`MaterialUnit/${t}/Toggle`)).data}}export{n as M};
