import{k as o,a0 as c,s as n,V as p}from"./m2W8DxR4.js";import{u}from"./Wxbikq7x.js";function l(e){const{get:r}=u(),{locale:a}=o();return c({staleTime:1e3*60*60,key:n(()=>["projects",e,a.value]),query:async()=>{try{return(await r("projects",{params:{page:e}})).data}catch(s){console.error(s.message)}}})}function m(e,r){const{get:a}=u(),{locale:s}=o();return c({staleTime:1e3*60*60,key:n(()=>["projects",e,r,s.value]),query:async()=>{try{return(await a("projects",{params:{service_id:e,page:r}})).data}catch(t){console.error(t.message)}}})}function j(e){const{get:r}=u(),{locale:a}=o();return c({staleTime:1e3*60*60,key:n(()=>["project",e,a.value]),query:async()=>{var s;try{return(await r(`projects/${e}`)).data.data}catch(t){throw p({statusCode:((s=t==null?void 0:t.response)==null?void 0:s.status)||404,statusMessage:"Project Not Found"})}}})}export{m as a,j as b,l as u};
