!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="18fddc19-75ce-4062-b163-26bb8f2d3bae",e._sentryDebugIdIdentifier="sentry-dbid-18fddc19-75ce-4062-b163-26bb8f2d3bae")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4016],{22648:(e,n,t)=>{t.d(n,{a:()=>d});var l=t(6029),a=t(55729),i=t(41735);let r=e=>{let{color:n}=e,{colors:t}=(0,a.useContext)(i.ThemeContext);return(0,l.jsx)("svg",{viewBox:"0 0 56 56",children:(0,l.jsx)("path",{d:"M9.47324517,13.8136015 C10.2573717,12.7909571 11.7220489,12.5976002 12.7446933,13.3817267 C13.7673377,14.1658532 13.9606946,15.6305305 13.1765681,16.6531749 C10.6973758,19.886495 9.33333333,23.8365015 9.33333333,28 C9.33333333,38.3093153 17.6906847,46.6666667 28,46.6666667 C38.3093153,46.6666667 46.6666667,38.3093153 46.6666667,28 C46.6666667,17.6906847 38.3093153,9.33333333 28,9.33333333 C26.7113356,9.33333333 25.6666667,8.28866442 25.6666667,7 C25.6666667,5.71133558 26.7113356,4.66666667 28,4.66666667 C40.8866442,4.66666667 51.3333333,15.1133558 51.3333333,28 C51.3333333,40.8866442 40.8866442,51.3333333 28,51.3333333 C15.1133558,51.3333333 4.66666667,40.8866442 4.66666667,28 C4.66666667,22.8007218 6.37464497,17.8547427 9.47324517,13.8136015 Z",fill:n||t.onSurface.nLv1})})},s=(0,i.keyframes)(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]),o={Loader:i.default.div.withConfig({componentId:"SpinnerLoader"}).withConfig({componentId:"sc-4a7d7921-0"})(["width:100%;padding:","px;text-align:center;z-index:1;"],e=>e.padding||4),LoaderInner:i.default.div.withConfig({componentId:"SpinnerLoaderInner"}).withConfig({componentId:"sc-4a7d7921-1"})(["display:inline-block;vertical-align:top;width:","px;height:","px;animation:"," 0.8s infinite ease-in-out;"],e=>e.size||24,e=>e.size||24,s)};function d(e){let{delay:n,...t}=e,[i,s]=(0,a.useState)(!n);return(0,a.useEffect)(()=>{let e;return n&&(e=window.setTimeout(()=>s(!0),n)),()=>clearTimeout(e)},[n]),i?(0,l.jsx)(o.Loader,{...t,children:(0,l.jsx)(o.LoaderInner,{...t,children:(0,l.jsx)(r,{color:t.spinnerColor})})}):null}},40284:(e,n,t)=>{t.d(n,{A:()=>w});var l=t(6029),a=t(53192),i=t(3881),r=t(91603),s=t(21377),o=t(4967),d=t(95083),c=t(76356),u=t(41249),m=t(90510),f=t(90248),x=t(65789),h=t(54409),p=t(65078),y=t(70591),g=t(94604),v=t(65713);let j=e=>{var n,t,i,f;let{event:x}=e,[v,j]=(0,p.jr)(x,"homeTeam","awayTeam"),w=(0,o.pp)(x.startTimestamp),b=(0,o.cK)(w);return(0,l.jsx)(c.az,{cursor:"pointer",bg:{_hover:"surface.s2"},children:(0,l.jsx)(y.tj,{event:x,children:(0,l.jsxs)(c.so,{minH:"5xl",align:"center",py:"sm",px:"sm",children:[(0,l.jsxs)(c.so,{direction:b?"column-reverse":"column",minW:"5xl",mr:"xs",children:[(0,l.jsx)(d.EY,{display:"block",color:"neutrals.nLv3",textStyle:"body.small",textAlign:"center",children:b?"-":(0,l.jsx)(m.XU,{value:w,...o.or.fullDate})}),(0,l.jsx)(d.EY,{display:"block",color:"neutrals.nLv3",textStyle:"body.small",textAlign:"center",mt:"xs",children:(0,l.jsx)(m.ib,{value:w})})]}),(0,l.jsx)(u.cG,{vertical:!0}),(0,l.jsxs)(c.so,{align:"center",justify:"space-between",ml:"sm",mr:"md",gap:"sm",w:"100%",overflowX:"hidden",children:[(0,l.jsxs)(c.so,{direction:"column",gap:"xs",overflow:"hidden",children:[(0,l.jsxs)(c.so,{align:"center",gap:"sm",children:[(0,l.jsx)(c.az,{w:"lg",h:"lg",children:v.type===s.YVh.Person?(0,l.jsx)(a.w,{size:16,alpha2:null==(n=v.country)?void 0:n.alpha2,fallback:(0,l.jsx)(u._V,{src:"/static/images/placeholders/team.svg",width:"16",height:"16",alt:"Team placeholder"}),name:null==(t=v.country)?void 0:t.name}):(0,l.jsx)(r.p,{size:16,id:v.id})}),(0,l.jsx)(d.Ym,{color:"neutrals.nLv1",textStyle:"body.medium",truncate:!0,children:(0,l.jsx)(g.lC,{original:v.name})})]}),(0,l.jsxs)(c.so,{align:"center",gap:"sm",children:[(0,l.jsx)(c.az,{w:"lg",h:"lg",children:j.type===s.YVh.Person?(0,l.jsx)(a.w,{size:16,alpha2:null==(i=j.country)?void 0:i.alpha2,fallback:(0,l.jsx)(u._V,{src:"/static/images/placeholders/team.svg",width:"16",height:"16",alt:"Team placeholder"}),name:null==(f=j.country)?void 0:f.name}):(0,l.jsx)(r.p,{size:16,id:j.id})}),(0,l.jsx)(d.Ym,{color:"neutrals.nLv1",textStyle:"body.medium",truncate:!0,children:(0,l.jsx)(g.lC,{original:j.name})})]})]}),(0,l.jsx)(c.az,{children:(0,l.jsx)(h.CCT,{fill:"primary.default"})})]})]})})})};function w(e){let{listLength:n=3}=e,{eventList:t,eventListError:a,isLoading:r}=(0,v.Z8)(n);return(0,l.jsxs)(x.Zp,{children:[(0,l.jsxs)(c.az,{py:"md",px:"lg",borderBottom:[void 0,"onSurface.nLv4"],children:[(0,l.jsx)(d.EY,{display:"block",textStyle:"display.medium",textAlign:["left","center"],pb:"xs",children:(0,l.jsx)(f.A,{id:"weekly_challenge_every_vote_counts"})}),(0,l.jsx)(d.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv2",textAlign:["left","center"],children:(0,l.jsx)(f.A,{id:"weekly_challenge_every_vote_counts_description"})})]}),(0,l.jsx)(c.az,{pb:"sm",children:r?(0,l.jsx)(l.Fragment,{children:Array.from({length:n},(e,n)=>n).map(e=>(0,l.jsx)(i.E,{uniqueKey:"upcoming-events-cl",h:52,mb:"xs",br:"sm",mx:"sm"},e))}):(null==t?void 0:t.length)&&!a?t.map(e=>(0,l.jsx)(j,{event:e},e.id)):(0,l.jsx)(c.so,{align:"center",minH:"[168px]",px:"2xl",children:(0,l.jsx)(d.EY,{display:"block",textAlign:"center",textStyle:"body.medium",color:"neutrals.nLv3",children:(0,l.jsx)(f.A,{id:"weekly_challenge_upcoming_empty"})})})})]})}},65713:(e,n,t)=>{t.d(n,{s3:()=>o,Z8:()=>m});var l=t(21377),a=t(21501),i=t(494),r=t(45860),s=t(88339);function o(){var e;let n=(0,a.hX)(),t=(0,i.d4)(s.$F),o=!n&&!!(null==t?void 0:t.id),d=null!=(e=null==t?void 0:t.leaderboardId)?e:null;return(0,r.Ay)(o&&d?[d,"LEADERBOARD_RANKINGS"]:null,{fetcher:e=>{let[n]=e;return(0,l.TtD)(l.rGM.leaderboardRankings(n))}})}var d=t(55729),c=t(66839),u=t(23419);function m(e){let{eventIds:n,isLoading:t}=(0,c.A)(),a=(0,d.useContext)(u.k),i=!!a&&a.isDaily10xLoading,s=null==n?void 0:n.filter(e=>{var n;return!a||e!==(null==(n=a.daily10xEvent)?void 0:n.id)}),o=s?"number"==typeof e?s.slice(0,e):s:null,{data:m,error:f,isLoading:x}=(0,r.Ay)(o&&!i?[o,"NOT_VOTED_POPULAR_EVENTS"]:null,{fetcher:async e=>{let[n]=e;return await Promise.all(n.map(e=>l.nk6.fetchEvent(e))).then(e=>e.map(e=>e.event))}});return{eventList:m,eventListError:f,isLoading:x||t||i}}},66839:(e,n,t)=>{t.d(n,{A:()=>o});var l=t(21377),a=t(494),i=t(45860),r=t(62121),s=t(88339);function o(){let e=(0,a.d4)(r.wH),n=(0,a.d4)(s.$F),{data:t,isLoading:o}=(0,i.Ay)(l.rGM.popularEvents()),{data:d,isLoading:c}=(0,i.Ay)((null==n?void 0:n.id)?l.VfS.futurePredictions(n.id):null);return{eventIds:(null==t?void 0:t.events.length)?null==t?void 0:t.events.filter(n=>{var t;return(null==d||!d.predictions.length||!(null==d||null==(t=d.predictions)?void 0:t.find(e=>(null==e?void 0:e.eventId)===n)))&&!Object.keys(e).find(t=>{if(t!==n.toString())return!1;let l=e[+t];return(0,r.Q3)(l)})}):null,isLoading:o||c}}},94497:(e,n,t)=>{t.d(n,{HI:()=>a,qG:()=>r});var l=t(41735);let a=(0,l.keyframes)(["0%{opacity:1;}30%{opacity:1;}60%{opacity:0.25;}100%{opacity:1;}"]);a.slow=(0,l.keyframes)(["0%{opacity:1;}5%{opacity:1;}10%{opacity:.25;}15%{opacity:1;}100%{opacity:1;}"]),a.fast=(0,l.keyframes)(["0%{opacity:1;}50%{opacity:1;}51%{opacity:0;}100%{opacity:0;}"]),(0,l.css)(["animation:"," 1s ease-in infinite;"],a).slow=(0,l.css)(["animation:"," 10s ease-in infinite;"],a.slow);let i=(0,l.keyframes)(["0%{transform:translateY(50px);opacity:0;}50%{opacity:1;}100%{opacity:1;transform:translateY(0);}"]);(0,l.css)(["animation:0.3s "," ease-in-out;animation-fill-mode:forwards;"],i);let r=(0,l.keyframes)(["from{opacity:0.0001;}to{opacity:1;}"])},94604:(e,n,t)=>{t.d(n,{Rm:()=>u,lC:()=>c,ub:()=>m});var l=t(6029),a=t(21377),i=t(947),r=t(26331);let s=/(.*)(\s(U.\d+|Olympic Team|Universiade Team|[A-C]|7[Ss])$)/,o=e=>e.normalize("NFD").replace(/[\u0300-\u036f\']/g,"").toLowerCase().replace(/\s/g,"-").replace(/&/g,"and"),d=e=>{let{translation:n,suffixedTeam:t,showFemaleSuffix:a}=e,i=a?" (F)":"";return t?(0,l.jsx)(l.Fragment,{children:"".concat(n).concat(t[2]).concat(i)}):(0,l.jsx)(l.Fragment,{children:"".concat(n).concat(i)})},c=e=>{let{original:n,showFemaleSuffix:t}=e,a=s.exec(n),r=(0,i.A)(),c=o(a?a[1]:n),u=r.formatMessage({id:c});return u===c?(0,l.jsx)(d,{translation:n,showFemaleSuffix:t}):(0,l.jsx)(d,{translation:u,suffixedTeam:a,showFemaleSuffix:t})},u=e=>{var n,t,a,s;let o=(0,r.A)(),u=(0,i.A)();if("short"in e&&e.short&&(null==(t=e.team.fieldTranslations)||null==(n=t.shortNameTranslation)?void 0:n[o]))return(0,l.jsx)(d,{translation:e.team.fieldTranslations.shortNameTranslation[o],showFemaleSuffix:e.showFemaleSuffix});if(null==(s=e.team.fieldTranslations)||null==(a=s.nameTranslation)?void 0:a[o])return(0,l.jsx)(d,{translation:e.team.fieldTranslations.nameTranslation[o],showFemaleSuffix:e.showFemaleSuffix});let m=e.team.name;return("full"in e&&e.full&&e.team.fullName&&(m=e.team.fullName),"short"in e&&e.short&&e.team.shortName&&(m=e.team.shortName),"No team"===m&&(m=u.formatMessage({id:"player.noTeam"})),e.team.national)?(0,l.jsx)(c,{original:m,showFemaleSuffix:e.showFemaleSuffix}):(0,l.jsx)(d,{translation:m,showFemaleSuffix:e.showFemaleSuffix})},m=e=>"F"===e.gender&&e.type===a.YVh.Regular}}]);