PageSourceSearch

https://www.southern-football-league.co.uk/assets/usePublishedVideosQuery-DlE5-9-u.js

js southern-football-league.co.uk collected 2026-09-25 00:58:20 UTC 2,181 bytes, 2 lines download raw bytes

1import{h as c,i as u,A as l,j as f}from"./main-CUbWTmvN.js";import{u as v,a as P}from"./vendor-react-query-ChuYpeSs.js";const h=2*60*1e3,x=(t,e)=>{const{apiUrl:n}=c();return v({queryKey:["publishedVideos",t,n],queryFn:()=>M(n,t),staleTime:u()?void 0:h,enabled:!!n&&((e==null?void 0:e.enabled)??!0)})},M=async(t,e)=>{const n=u(),i=new URLSearchParams;e!=null&&e.page&&i.set("page",e.page.toString()),e!=null&&e.limit&&i.set("limit",e.limit.toString()),e!=null&&e.tags&&i.set("tags",e.tags),e!=null&&e.tagsMatchMode&&i.set("tagsMatchMode",e.tagsMatchMode),e!=null&&e.excludeTags&&i.set("excludeTags",e.excludeTags),e!=null&&e.videoChannelIds&&i.set("videoChannelIds",e.videoChannelIds),e!=null&&e.sortOrder&&i.set("sortOrder",e.sortOrder),e!=null&&e.datasource&&i.set("datasource",e.datasource),e!=null&&e.query&&i.set("query",e.query),e!=null&&e.division&&i.set("division",e.division),e!=null&&e.club&&i.set("club",e.club);const o=`${t}${l.endpoints.videosPublished}${i.toString()?`?${i.toString()}`:""}`,{data:d}=await f.get(o,{headers:n?{Authorization:`Bearer ${n}`}:{}});return d},I=(t,e)=>{const{apiUrl:n}=c();return P({queryKey:["publishedVideos-infinite",t,n],queryFn:async({pageParam:i=1})=>{const o=u(),d=new URLSearchParams;d.set("page",i.toString()),t!=null&&t.limit&&d.set("limit",t.limit.toString()),t!=null&&t.tags&&d.set("tags",t.tags),t!=null&&t.tagsMatchMode&&d.set("tagsMatchMode",t.tagsMatchMode),t!=null&&t.excludeTags&&d.set("excludeTags",t.excludeTags),t!=null&&t.videoChannelIds&&d.set("videoChannelIds",t.videoChannelIds),t!=null&&t.sortOrder&&d.set("sortOrder",t.sortOrder),t!=null&&t.datasource&&d.set("datasource",t.datasource),t!=null&&t.query&&d.set("query",t.query),t!=null&&t.division&&d.set("division",t.division),t!=null&&t.club&&d.set("club",t.club);const y=`${n}${l.endpoints.videosPublished}?${d.toString()}`,{data:b}=await f.get(y,{headers:o?{Authorization:`Bearer ${o}`}:{}});return b},initialPageParam:1,getNextPageParam:i=>{if(i.pagination.hasNextPage)return i.pagination.currentPage+1},staleTime:u()?void 0:h,enabled:!!n&&((e==null?void 0:e.enabled)??!0)})};export{I as a,x as u};
2//# sourceMappingURL=usePublishedVideosQuery-DlE5-9-u.js.map

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.