import{g3 as o}from"./index-DdWwwZXu.js";import{a as e}from"./vendor-utils-BveVE6Uf.js";const G=()=>({addGroupAsync:async t=>(t.title=o(t.title),(await e.post("MaterialGroup/AddGroup",t)).data),getGroupsAsync:async t=>(await e.get("MaterialGroup/GetGroups",{params:{name:t||null}})).data,getGroupByIdAsync:async t=>(await e.get(`MaterialGroup/GetGroup/${t}`)).data,editGroupAsync:async t=>(t.title=o(t.title),(await e.put(`MaterialGroup/EditGroup/${t.id}`,t)).data),deleteGroupAsync:async t=>{await e.delete(`MaterialGroup/DeleteGroup/${t}`)}});export{G as m};
