var u=(o,t,e)=>new Promise((a,s)=>{var g=r=>{try{n(e.next(r))}catch(i){s(i)}},l=r=>{try{n(e.throw(r))}catch(i){s(i)}},n=r=>r.done?a(r.value):Promise.resolve(r.value).then(g,l);n((e=e.apply(o,t)).next())});import{u as c}from"./useQuery-tXf2Qa8J.js";import{d as y}from"./settings-services-C1WB00Jx.js";const p=()=>{const{isPending:o,data:t,isError:e,error:a}=c({queryKey:["getRegionals"],queryFn:()=>u(null,null,function*(){const s=yield y();if(s.status==200)return s.data.regionals;throw new Error("Error fetching")})});return{isPending:o,regionals:t,isError:e,error:a}};export{p as u};
