1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7362],{95050:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/match/motor-racing/[...slug]",function(){return l(28418)}])},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,r)=>"/match/".concat(matchSportFolder(e),"/").concat(encodeURIComponent(null!=t?t:""),"/").concat(String(l).toLowerCase(),"/").concat(r)},22590:function(e,t,l){"use strict";var r=l(85893),a=l(67294),n=l(41664),s=l.n(n),c=l(25244),o=l(26345),i=l(73272),d=l(87066),u=l(91130);t.Z=e=>{var t,l,n,p;let{Prediction:m,Odds:h,Live:x,slug:f=[],sidebarData:v={},pageData:g={},gameName:w=""}=e,[j,N]=(0,a.useState)(g);return(0,a.useEffect)(()=>{N(g)},[g]),(0,a.useEffect)(()=>{var e;d.Z.get("".concat(u.zA,"/").concat(w,"/").concat(f[0],"/").concat(null===(e=f[1])||void 0===e?void 0:e.toLowerCase(),"/").concat(f[2]),{headers:{Authorization:"Bearer ".concat((0,i.le)("accessToken"))}}).then(e=>{if(null==e?void 0:e.status){var t;N(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.data)}}).catch(e=>console.log("error",e))},[w,f[0],f[1],f[2]]),(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-8 place-items-start gap-4",children:[(0,r.jsxs)("div",{className:"col-span-8 order-1 xl:order-0 xl:col-span-6 w-full h-full",children:[(0,r.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,a;return(0,r.jsx)(s(),{href:(0,o.C)(w,f[0],e.name,f[2]),prefetch:!1,className:" w-full h-8 ".concat((null===(a=f[1])||void 0===a?void 0:null===(l=a.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,r.jsx)("p",{className:"uppercase text-xs md:text-lg",children:e.name})},t)})}),(null==f?void 0:null===(l=f[1])||void 0===l?void 0:null===(t=l.toLowerCase())||void 0===t?void 0:t.includes("prediction"))?(0,r.jsx)(m,{slug:f,pageData:null!=j?j:{}}):(null==f?void 0:null===(p=f[1])||void 0===p?void 0:null===(n=p.toLowerCase())||void 0===n?void 0:n.includes("odds"))?(0,r.jsx)(h,{slug:f,pageData:null!=j?j:{}}):(0,r.jsx)(x,{slug:f,pageData:null!=j?j:{}})]}),(0,r.jsx)("div",{className:"col-span-8 xl:col-span-2 w-full border rounded-lg order-0 xl:order-1 h-auto",children:(0,r.jsx)(c.default,{sport:f[0],slug:f,sidebarData:null!=v?v:{}})})]})})}},25244:function(e,t,l){"use strict";l.r(t),l.d(t,{Leagues:function(){return Leagues}});var r=l(85893),a=l(25675),n=l.n(a),s=l(41664),c=l.n(s),o=l(11163),i=l(73272),d=l(61121),u=l(67294);t.default=e=>{var t,l;let{sidebarData:a={},sport:n,slug:s,day:p}=e,m=(0,o.useRouter)(),[h,x]=(0,u.useState)(!0),f=(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,x(!1)):e>1280&&!v.current&&(v.current=!0,x(!0))};return f.current=!0,updateCollapsedState(),window.addEventListener("resize",updateCollapsedState),()=>window.removeEventListener("resize",updateCollapsedState)},[]),f.current)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:" flex justify-center relative items-center w-full",children:[(0,r.jsxs)("div",{className:"w-[100%] my-6",children:[(0,r.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:a&&(null==a?void 0:null===(t=a.topBar)||void 0===t?void 0:t.map((e,t)=>(0,r.jsxs)("div",{className:"flex-shrink-0 relative",children:[(0,r.jsx)(c(),{href:"/".concat(e.slugs["prediction"===(0,i.Dw)([s[1]])?"Prediction":"odds"===(0,i.Dw)([s[1]])?"Odds":"Live"]),prefetch:!1,className:"block font-medium ".concat(m.pathname.includes(e.sport.toLowerCase())?"text-white":"text-[#A4A4A4]"," cursor-pointer"),children:e.navKey},t),m.pathname.includes(e.sport.toLowerCase())&&(0,r.jsx)("div",{className:"w-full h-[2px] bg-purple2 rounded-full"})]},t)))}),(0,r.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,r.jsx)("div",{className:"p-2 w-full h-full",children:(0,r.jsx)("p",{onClick:()=>{let t={...m.query};"all"!==e?t.day=e:delete t.day,m.push({pathname:m.pathname,query:t})},className:"w-full h-full text-center ".concat(p!==e&&(p||"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,r.jsx)("div",{onClick:()=>x(!h),className:" mt-2 absolute top-0 right-3 bg-purple2 rounded-full flex justify-center items-center cursor-pointer",children:(0,r.jsx)(d.OrA,{size:20,color:"white"})})]}),h&&(0,r.jsx)("div",{className:"m-4 mx-8",children:a&&(null==a?void 0:null===(l=a.leagues)||void 0===l?void 0:l.map((e,t)=>(0,r.jsx)(Leagues,{sport:n,slug:s,i:e},t)))})]}):null};let Leagues=e=>{let{slug:t,i:l}=e;return(0,r.jsxs)(c(),{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,r.jsx)(n(),{src:"/fallback3.png",alt:"team",width:35,height:35}),(0,r.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})]})}},28418:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSP:function(){return u},default:function(){return IceHockeyMatch}});var r=l(85893),a=l(11163),n=l(5152),s=l.n(n),c=l(22590);let o=s()(()=>l.e(5454).then(l.bind(l,15454)),{loadableGenerated:{webpack:()=>[15454]}}),i=s()(()=>l.e(6274).then(l.bind(l,6274)),{loadableGenerated:{webpack:()=>[6274]}}),d=s()(()=>Promise.all([l.e(5454),l.e(5472)]).then(l.bind(l,45472)),{loadableGenerated:{webpack:()=>[45472]}});var u=!0;function IceHockeyMatch(e){let{pageData:t,sidebarData:l}=e,n=(0,a.useRouter)(),{slug:s}=n.query;return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(c.Z,{gameName:"motor-racing",Prediction:o,Odds:i,Live:d,slug:s,pageData:t,sidebarData:l})})}}},function(e){e.O(0,[4817,9774,2888,179],function(){return e(e.s=95050)}),_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.