1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2077],{70569:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/match/american-football/[...slug]",function(){return l(23597)}])},26345:function(e,t,l){"use strict";l.d(t,{C:function(){return matchHref}});let matchSportFolder=e=>String(e||"").toLowerCase().trim().replace(/\s+/g,"-"),matchHref=(e,t,l,a)=>"/match/".concat(matchSportFolder(e),"/").concat(encodeURIComponent(null!=t?t:""),"/").concat(String(l).toLowerCase(),"/").concat(a)},22590:function(e,t,l){"use strict";var a=l(85893),r=l(67294),n=l(41664),s=l.n(n),i=l(25244),o=l(26345),c=l(73272),d=l(87066),u=l(91130);t.Z=e=>{var t,l,n,m;let{Prediction:p,Odds:h,Live:f,slug:x=[],sidebarData:v={},pageData:g={},gameName:w=""}=e,[j,b]=(0,r.useState)(g);return(0,r.useEffect)(()=>{b(g)},[g]),(0,r.useEffect)(()=>{var e;d.Z.get("".concat(u.zA,"/").concat(w,"/").concat(x[0],"/").concat(null===(e=x[1])||void 0===e?void 0:e.toLowerCase(),"/").concat(x[2]),{headers:{Authorization:"Bearer ".concat((0,c.le)("accessToken"))}}).then(e=>{if(null==e?void 0:e.status){var t;b(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.data)}}).catch(e=>console.log("error",e))},[w,x[0],x[1],x[2]]),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-8 place-items-start gap-4",children:[(0,a.jsxs)("div",{className:"col-span-8 order-1 xl:order-0 xl:col-span-6 w-full h-full",children:[(0,a.jsx)("div",{className:"grid grid-cols-3 place-items-center gap-x-3",children:[{name:"prediction"},{name:"odds"},{name:"live"}].map((e,t)=>{var l,r;return(0,a.jsx)(s(),{href:(0,o.C)(w,x[0],e.name,x[2]),prefetch:!1,className:" w-full h-8 ".concat((null===(r=x[1])||void 0===r?void 0:null===(l=r.toLowerCase())||void 0===l?void 0:l.includes(e.name.toLowerCase()))?"bg-gradient-main":"border border-[#8A8A8A]"," text-white p-2 rounded-sm flex justify-center items-center cursor-pointer text-center"),children:(0,a.jsx)("p",{className:"uppercase text-xs md:text-lg",children:e.name})},t)})}),(null==x?void 0:null===(l=x[1])||void 0===l?void 0:null===(t=l.toLowerCase())||void 0===t?void 0:t.includes("prediction"))?(0,a.jsx)(p,{slug:x,pageData:null!=j?j:{}}):(null==x?void 0:null===(m=x[1])||void 0===m?void 0:null===(n=m.toLowerCase())||void 0===n?void 0:n.includes("odds"))?(0,a.jsx)(h,{slug:x,pageData:null!=j?j:{}}):(0,a.jsx)(f,{slug:x,pageData:null!=j?j:{}})]}),(0,a.jsx)("div",{className:"col-span-8 xl:col-span-2 w-full border rounded-lg order-0 xl:order-1 h-auto",children:(0,a.jsx)(i.default,{sport:x[0],slug:x,sidebarData:null!=v?v:{}})})]})})}},25244:function(e,t,l){"use strict";l.r(t),l.d(t,{Leagues:function(){return Leagues}});var a=l(85893),r=l(25675),n=l.n(r),s=l(41664),i=l.n(s),o=l(11163),c=l(73272),d=l(61121),u=l(67294);t.default=e=>{var t,l;let{sidebarData:r={},sport:n,slug:s,day:m}=e,p=(0,o.useRouter)(),[h,f]=(0,u.useState)(!0),x=(0,u.useRef)(!1),v=(0,u.useRef)(!0);return((0,u.useEffect)(()=>{let updateCollapsedState=()=>{let e=window.innerWidth;e<=1280&&v.current?(v.current=!1,f(!1)):e>1280&&!v.current&&(v.current=!0,f(!0))};return x.current=!0,updateCollapsedState(),window.addEventListener("resize",updateCollapsedState),()=>window.removeEventListener("resize",updateCollapsedState)},[]),x.current)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:" flex justify-center relative items-center w-full",children:[(0,a.jsxs)("div",{className:"w-[100%] my-6",children:[(0,a.jsx)("div",{className:"flex justify-start relative items-center overflow-x-scroll p-3 w-[95%] text-white flex-shrink-0 m-auto gap-x-6",children:r&&(null==r?void 0:null===(t=r.topBar)||void 0===t?void 0:t.map((e,t)=>(0,a.jsxs)("div",{className:"flex-shrink-0 relative",children:[(0,a.jsx)(i(),{href:"/".concat(e.slugs["prediction"===(0,c.Dw)([s[1]])?"Prediction":"odds"===(0,c.Dw)([s[1]])?"Odds":"Live"]),prefetch:!1,className:"block font-medium ".concat(p.pathname.includes(e.sport.toLowerCase())?"text-white":"text-[#A4A4A4]"," cursor-pointer"),children:e.navKey},t),p.pathname.includes(e.sport.toLowerCase())&&(0,a.jsx)("div",{className:"w-full h-[2px] bg-purple2 rounded-full"})]},t)))}),(0,a.jsx)("div",{className:"grid grid-cols-3 mt-0 mx-3 place-items-center rounded-md bg-[#250C54]",children:["all","today","tomorrow"].map((e,t)=>(0,a.jsx)("div",{className:"p-2 w-full h-full",children:(0,a.jsx)("p",{onClick:()=>{let t={...p.query};"all"!==e?t.day=e:delete t.day,p.push({pathname:p.pathname,query:t})},className:"w-full h-full text-center ".concat(m!==e&&(m||"all"!=e)?"text-[#A4A4A4]":"text-white"," capitalize lg:text-lg ").concat(t<2&&"border-r-[0.5px] border-[#A89BC3]"," cursor-pointer"),children:e})},t))})]}),(0,a.jsx)("div",{onClick:()=>f(!h),className:" mt-2 absolute top-0 right-3 bg-purple2 rounded-full flex justify-center items-center cursor-pointer",children:(0,a.jsx)(d.OrA,{size:20,color:"white"})})]}),h&&(0,a.jsx)("div",{className:"m-4 mx-8",children:r&&(null==r?void 0:null===(l=r.leagues)||void 0===l?void 0:l.map((e,t)=>(0,a.jsx)(Leagues,{sport:n,slug:s,i:e},t)))})]}):null};let Leagues=e=>{let{slug:t,i:l}=e;return(0,a.jsxs)(i(),{href:"/".concat(null==l?void 0:l.parent,"/").concat(l.slug),prefetch:!1,className:"flex justify-start items-end mt-4 gap-x-3 text-white",children:[(0,a.jsx)(n(),{src:"/fallback3.png",alt:"team",width:35,height:35}),(0,a.jsx)("p",{className:"lg:text-xl ".concat(t[2]===(null==l?void 0:l.slug)&&" underline text-lg underline-offset-4"," cursor-pointer"),children:null==l?void 0:l.leagueName})]})}},23597:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSP:function(){return u},default:function(){return AmericanMatch}});var a=l(85893),r=l(11163),n=l(5152),s=l.n(n),i=l(22590);let o=s()(()=>Promise.all([l.e(8469),l.e(713),l.e(4806),l.e(5060),l.e(4183),l.e(1014)]).then(l.bind(l,21014)),{loadableGenerated:{webpack:()=>[21014]}}),c=s()(()=>Promise.all([l.e(8469),l.e(713),l.e(4806),l.e(5060),l.e(4183),l.e(57),l.e(273),l.e(7809)]).then(l.bind(l,97809)),{loadableGenerated:{webpack:()=>[97809]}}),d=s()(()=>Promise.all([l.e(8469),l.e(713),l.e(4806),l.e(5060),l.e(4183),l.e(1014),l.e(8778)]).then(l.bind(l,38778)),{loadableGenerated:{webpack:()=>[38778]}});var u=!0;function AmericanMatch(e){let{pageData:t,sidebarData:l}=e,n=(0,r.useRouter)(),{slug:s}=n.query;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(i.Z,{gameName:"american-football",Prediction:o,Odds:c,Live:d,slug:s,pageData:t,sidebarData:l})})}}},function(e){e.O(0,[4817,9774,2888,179],function(){return e(e.s=70569)}),_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.