PageSourceSearch

https://www.onesports.ph/_next/static/chunks/pages/[category-slug]-86bcbfabbf2eabd0.js

js onesports.ph collected 2026-10-02 10:06:31 UTC 5,931 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[790],{3205:(e,t,l)=>{"use strict";l.d(t,{A:()=>p});var a=l(7876),n=l(4232),r=l(8968),s=l(3389),i=l(8230),o=l.n(i),c=l(4674),u=l(9947),d=l(3864),g=l(5364);let h=[],p=e=>{let{slug:t,type:l,title:i}=e,[p,w]=(0,n.useState)(!1),[x,f]=(0,n.useState)(!1),[m,y]=(0,n.useState)(""),[v,j]=(0,n.useState)("tag"),[S,_]=(0,n.useState)(0),[E,N]=(0,n.useState)(null),[b,C]=(0,n.useState)(!1),[I,L]=(0,n.useState)([]),[T,R]=(0,n.useState)([]),[k,O]=(0,n.useState)(0),[P,M]=(0,n.useState)(new Set),[A,B]=(0,n.useState)(!0),[D,U]=(0,n.useState)(!0),[F,G]=(0,n.useState)(null),X=(0,n.useRef)(null),z=(0,n.useRef)(null),W=(0,n.useRef)(!1),H=(0,n.useRef)(0);(0,n.useEffect)(()=>{let e=()=>w(window.innerWidth<1024);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let V=(0,n.useCallback)(()=>{_(0),N(null),C(!1),L([]),R([]),O(0),M(new Set),U(!0),B(!0),G(null),f(!1),W.current=!1,window.googletag&&h.length&&window.googletag.cmd.push(()=>{let e=window.googletag.pubads().getSlots();window.googletag.destroySlots(e.filter(e=>h.includes(e.getSlotElementId()))),h.length=0})},[]),Y=(0,n.useCallback)(async(e,t,l)=>{if(b||e<1)return[];C(!0);try{let a=await (0,u.YW)(e,"tag"===l?{tag:t}:"category"===l?{category:t}:void 0);return null!=a?a:[]}catch(e){return[]}finally{C(!1)}},[b]),q=(0,n.useCallback)(async(e,t,l)=>{let a=e,n=[];for(;n.length<=10&&a>=1;){let e=await Y(a,t,l);if(0===e.length){a-=1;continue}n.push(...e.filter(e=>!n.some(t=>t.id===e.id))),a-=1}if(R(n),N(a),!n.length){f(!0),B(!1);return}await J(n,0)},[Y]);(0,n.useEffect)(()=>{if(t!==m||l!==v)y(t),j(l),V(),t&&(async()=>{try{let e="tag"===l?{tag:t}:"category"===l?{category:t}:void 0,a=await (0,u.TS)(e);if(!(null==a?void 0:a.count))throw f(!0),B(!1),Error("Invalid counter value");_(a.count),await q(a.count,t,l)}catch(e){B(!1)}})()},[t,l,V,q]);let J=(0,n.useCallback)(async(e,a)=>{if(!W.current){if(a>=e.length){(!E||E<1)&&U(!1),B(!1);return}W.current=!0,B(!0);try{var n;let r=Math.min(a+10,e.length),s=e.slice(a,r).filter(e=>!P.has(e.id)),o=(await Promise.all(s.map(async e=>e))).filter(Boolean);if(o.length&&(L(e=>{let t=[...e];return o.forEach(e=>{t.some(t=>t.id===e.id)||(t=((e,t)=>{var l,a;let n=new Date(null!=(l=t.publishedDate)?l:0).getTime(),r=0,s=e.length;for(;r<s;){let t=Math.floor((r+s)/2);n>new Date(null!=(a=e[t].publishedDate)?a:0).getTime()?s=t:r=t+1}return e.splice(r,0,t),e})(t,e))}),t}),M(e=>{let t=new Set(e);return o.forEach(e=>t.add(e.id)),t})),H.current+=1,null==(n=window.dataLayer)||n.push({event:"onload_".concat(null==i?void 0:i.replace(/\s+/g,"").toLowerCase(),"_batch_").concat(H.current)}),O(r),e.length-r<50&&E&&E>=1){let e=await Y(E,t,l);null===e||0===e.length||R(t=>[...t,...e.filter(e=>!t.some(t=>t.id===e.id))]),N(E-1)}}finally{B(!1),W.current=!1}}},[l,P,E,t,Y]);(0,n.useEffect)(()=>{"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual")},[]),(0,n.useEffect)(()=>{if(D&&!A&&T.length)return X.current=new IntersectionObserver(e=>{let[t]=e;t.isIntersecting&&J(T,k)},{rootMargin:"20px",threshold:1}),z.current&&X.current.observe(z.current),()=>{var e;return null==(e=X.current)?void 0:e.disconnect()}},[A,D,T,k,J]);let K=g.env.NEXT_PUBLIC_GAD_INFINITE_MREC_SLOT_MOBILE||"/21829906719/OneSports_RES_Infinite-MREC";return(0,a.jsxs)("div",{className:"m-auto flex w-full max-w-[1250px] flex-col gap-[20px]",children:[i&&(0,a.jsx)("h1",{className:"px-2",children:i}),x?(0,a.jsx)("div",{className:"flex items-center justify-center px-[8px] py-[40px] md:px-0",children:(0,a.jsxs)("div",{className:"flex w-[500px] flex-col items-center gap-[40px] text-center",children:[(0,a.jsxs)("div",{className:"font-roboto text-[20px] leading-[28px] font-normal",children:[(0,a.jsx)("div",{children:"Benched for now! This ".concat("tag"===l?"league's":l," still warming up!")}),(0,a.jsx)("div",{children:"No stories yet, but the next big play is on the way."})]}),(0,a.jsx)(o(),{href:"/",className:"text-yellow-main pt-14 text-[18px] font-semibold uppercase md:pt-0",children:"Back to homepage"})]})}):(0,a.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-3",children:I.map((e,t)=>(0,a.jsxs)(n.Fragment,{children:[(0,a.jsx)(s.A,{type:l,item:e,variant:r.U.GRID}),p&&(t+1)%3==0&&(0,a.jsx)("div",{className:"col-span-1 m-2 flex justify-center lg:hidden",children:(0,a.jsx)(d.A,{position:t,adUnitPath:K,..."tag"===l?{league:(e.league||"League").toLowerCase()}:{category:(e.category||"Category").toLowerCase()},url:"www.onesports.ph",pageType:"tag"===l?"league":l,device:"mobile"})}),!p&&(t+1)%5==0&&(0,a.jsx)("div",{className:"col-span-1 hidden p-2.5 lg:block",children:(0,a.jsx)(d.A,{position:t,adUnitPath:"/21829906719/OneSports_RES_Infinite-MREC",..."tag"===l?{league:(e.league||"League").toLowerCase()}:{category:(e.category||"Category").toLowerCase()},url:"www.onesports.ph",pageType:"tag"===l?"league":l,device:"desktop"})})]},e.id))}),F&&(0,a.jsx)("div",{className:"text-center text-red-500",children:F}),(0,a.jsxs)("div",{ref:z,children:[A&&(0,a.jsx)(c.I,{}),!A&&!D&&(0,a.jsx)(c.P,{})]})]})}},4964:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[category-slug]",function(){return l(7237)}])},7237:(e,t,l)=>{"use strict";l.r(t),l.d(t,{__N_SSG:()=>c,default:()=>u});var a=l(7876),n=l(7328),r=l.n(n),s=l(3205),i=l(6338),o=l(4674),c=!0;let u=e=>{let{categoryInfo:t,categorySlug:l}=e;if(!t)return(0,a.jsx)(o.I,{});let n="category";return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r(),{children:(0,a.jsxs)("title",{children:["OneSports.PH | ",null==t?void 0:t.name]})}),(0,a.jsx)("div",{className:"mx-auto flex h-[186px] max-w-4xl justify-center px-4 py-8",children:(0,a.jsx)(i.Vs,{url:"www.onesports.ph",category:l,pageType:n})}),(0,a.jsx)(s.A,{slug:l,type:n,title:(null==t?void 0:t.name)||""},l),(0,a.jsx)(i.Bp,{url:"www.onesports.ph",category:l,pageType:n})]})}}},e=>{e.O(0,[122,338,145,636,593,792],()=>e(e.s=4964)),_N_E=e.O()}]);

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.