1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(n!=null)for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:astra-oas-frontend":!0});var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`edbc8727-da97-4463-b347-0bca4c3135fb`,e._sentryDebugIdIdentifier=`sentry-dbid-edbc8727-da97-4463-b347-0bca4c3135fb`)}catch{}})();import{r as e}from"./CVGoBl_5.js";import{St as t,mt as n,u as r}from"./DKgyLr-x.js";import{a as i}from"./DcLWULOw.js";import{t as a}from"./Euag7Waj.js";import{t as o}from"./nFo3lW_U.js";import{x as s}from"./CxawlfzH.js";import{t as c}from"./CiAvTTJX.js";import{t as l}from"./CjQKk_c3.js";import{t as u}from"./CYmu8vOv.js";import{t as d}from"./BFPEPQ0F.js";import{n as f,t as p}from"./DFdE4dEf.js";var m=e(d(),1),h=e(f(),1),g=50,_=[`categories`,`orderedSports`,`video`,`video.poster`,`image`,`mobileImage`],v=(e=void 0,d=!1,f=10)=>{let v=a(),y=o(),b=u(),{featuredCategoryId:x,headlinesCategoryId:S,sportPageCategoryId:C}=i(v),{sportId:w}=i(y),{clear:T,set:E}=b,{featuredIds:D}=i(b),{search:O,searchRanking:k}=l(),{isSportPage:A,isHomePage:j}=c(),M=n(1),N=n([]),P=n(!0),F=r(()=>p(t(e))),I=r(()=>d?x.value:S.value),L=r(()=>!A.value),R=r(()=>{if(j.value&&C.value)return[C.value]}),z=r(()=>{if(A.value&&!(!w.value||w.value===-1))return[w.value]}),B=r(()=>({sort:`-published_at`,per_page:f+g,filter:{"not_categories.id":R.value,not_id:D.value.length>0?D.value:void 0,"sports.id":z.value,type:t(e)},include:_})),V=r(()=>({limit:f,sport_id:A.value&&w.value?w.value:void 0,types:t(F)})),H=r(()=>{let e=N.value;return d||(e=Z(e)),(0,h.default)(e,0,f)}),U=r(()=>(0,h.default)(H.value,0,M.value)||[]),W=r(()=>(0,h.default)(H.value,M.value)||[]),G=r(()=>!P.value&&H.value?.length>0),K=s(O),q=s(k),J=async e=>{let n=(0,m.default)({},t(B.value),e||{});P.value=!0;let{data:r}=d?await q(V.value):await K(n);P.value=!1,Y(r),N.value=r.map(e=>(e.orderedSports&&(e.sports=e.orderedSports),e))},Y=e=>{if(!d||e?.length===0)return;let t=(0,h.default)(e.map(e=>e.id),0,f);E(t)},X=()=>{T(),N.value=[]},Z=e=>e.filter(e=>!D.value.includes(e.id));return{articles:H,categoryId:I,firstArticlesCount:M,firstArticles:U,loading:P,hasArticles:G,restArticles:W,isFilterAvailable:L,fetch:J,clear:X,setFirstArticlesCount:e=>{M.value=e}}};export{v as t};
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.