import{e as c,g2 as i,g3 as r}from"./index-DdWwwZXu.js";import"./vendor-react-BBazpZul.js";import{a as t}from"./vendor-utils-BveVE6Uf.js";const g=()=>{const{clinicId:o,officeId:a}=c(e=>e.doctorData);return{addWareHouseAsync:async e=>(e.title=r(e.title),(await t.post("Warehouse/AddWareHouse",e)).data),getWareHousesAsync:async e=>{const s={...e,ClinicId:o??void 0,OfficeId:a??void 0};return(await t.get("Warehouse/GetWareHouses",{params:s})).data},getWareHouseByIdAsync:async e=>(await t.get(`Warehouse/GetWareHouse/${e}`)).data,editWareHouseAsync:async e=>(e.title=r(e.title),await t.put(`Warehouse/EditWareHouse/${e.id}`,e)),deleteWareHouseAsync:async e=>{await t.delete(`Warehouse/DeleteWareHouse/${e}`)},materialsReachedOrderLimitAsync:async e=>{const s={...e,ClinicId:o??void 0,OfficeId:a??void 0};return(await t.get("Warehouse/MaterialsReachedOrderLimit",{params:s})).data},exportToExcelWareHouseTransfer:async e=>{await i("WareHouseTransfer/ExportToExcel",e)}}};export{g as u};
