1import{u as l}from"./useInfiniteQuery-B5ruezKw.js";import{a as f}from"./axios-B4uVmeYG.js";import{s as v}from"./messages.en-D-2afRE_.js";const x=e=>{const{isPending:s,isFetchingNextPage:i,isError:n,data:r,error:o,fetchNextPage:u,refetch:g}=l({initialPageParam:1,queryKey:["favouritePartnersList"],queryFn:async({pageParam:t})=>(await f(`/api/favorite/partners?limit=${e}&offset=${e*(t-1)}`)).data,getNextPageParam:(t,a,c,h)=>Math.ceil(t.pagination.count/e)>a.length?c+1:null}),P=v(()=>r.value.pages.length<1||r.value.pages[0].data.length<1);return{fetchingFavouritePartnersList:s,fetchingFavouritePartnersListNextPage:i,isErrorFetchingFavouritePartnersList:n,favouritePartnersList:r,errorFetchingFavouritePartnersList:o,noFavouritesAvailable:P,fetchNextPage:u,refetch:g}};export{x as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.