import{u as s}from"./useQuery-DB4moXtm.js";import{i as t,x as r}from"./index-CXwCk-SR.js";function p(a,n,u,o){const e=s({queryKey:["layer-endpoints",a,n,u,o],queryFn:()=>r.layer.endpoints(a.value,n.value??"",u.value,o.value),enabled:t(()=>a.value.length>0&&!!n.value),staleTime:3e4});return{data:t(()=>e.data.value??null),endpoints:t(()=>{var i;return((i=e.data.value)==null?void 0:i.endpoints)??[]}),isLoading:e.isLoading,isFetching:e.isFetching,error:e.error}}export{p as u};
