import{d as t,n,f as s}from"./index-BFnDPF9i.js";const c={async getStats(){try{const r=await t.get("/admin/stats");return n(r)}catch(r){return s(r)}},async getHotels(){try{const r=await t.get("/admin/hotels");return n(r)}catch(r){return s(r)}},async getPendingHotels(){try{const r=await t.get("/admin/hotels");return n(r)}catch(r){return s(r)}},async approveHotel(r){try{const e=await t.post(`/admin/hotels/${r}/approve`);return n(e)}catch(e){return s(e)}},async rejectHotel(r,e){try{const a=await t.post(`/admin/hotels/${r}/reject`,{reason:e});return n(a)}catch(a){return s(a)}},async getPendingFranchises(){try{const r=await t.get("/admin/franchises");return n(r)}catch(r){return s(r)}},async getAllFranchises(){try{const r=await t.get("/admin/franchises");return n(r)}catch(r){return s(r)}},async approveFranchise(r){try{const e=await t.post(`/admin/franchises/${r}/approve`);return n(e)}catch(e){return s(e)}},async rejectFranchise(r,e){try{const a=await t.post(`/admin/franchises/${r}/reject`,{reason:e});return n(a)}catch(a){return s(a)}}};export{c as a};
