import{l as e}from"./index-Cc987VYg.js";const c={getCountries:async t=>{const{data:a}=await e.get("/countries/",{params:t||{page_size:1e3}});return a},getCountry:async t=>{const{data:a}=await e.get(`/countries/${t}/`);return a},createCountry:async t=>{const{data:a}=await e.post("/countries/",t);return a},updateCountry:async(t,a)=>{const{data:s}=await e.put(`/countries/${t}/`,a);return s},deleteCountry:async t=>{await e.delete(`/countries/${t}/`)}},i={getStates:async t=>{const{data:a}=await e.get("/states/",{params:{...t}});return a},getState:async t=>{const{data:a}=await e.get(`/states/${t}/`);return a},createState:async t=>{const{data:a}=await e.post("/states/",t);return a},updateState:async(t,a)=>{const{data:s}=await e.put(`/states/${t}/`,a);return s},deleteState:async t=>{await e.delete(`/states/${t}/`)}},r={getCities:async t=>{const{data:a}=await e.get("/cities/",{params:t});return a},getCity:async t=>{const{data:a}=await e.get(`/cities/${t}/`);return a},createCity:async t=>{const{data:a}=await e.post("/cities/",t);return a},updateCity:async(t,a)=>{const{data:s}=await e.put(`/cities/${t}/`,a);return s},deleteCity:async t=>{await e.delete(`/cities/${t}/`)}};export{r as a,c,i as s};
