!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="979e1792-7ea3-4198-89e0-be8255e5ee0f",e._sentryDebugIdIdentifier="sentry-dbid-979e1792-7ea3-4198-89e0-be8255e5ee0f")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7088],{21706:(e,t,l)=>{"use strict";l.r(t),l.d(t,{default:()=>tm});var n=l(6029),s=l(76356),i=l(90248),r=l(33752),a=l(29129),o=l(42678),d=l(70591),c=l(95083),u=l(65789),x=l(70010),h=l(64673),g=l(21501),m=l(41249),p=l(494),j=l(76410),_=l(10794),y=l(25862);function v(){let e=(0,g.hX)(),t=(0,p.wA)(),l=(0,p.d4)(_.GJ);return(0,n.jsxs)(s.so,{justify:"space-between",align:"center",p:"lg",br:"lg",bg:"surface.s1",elevation:"2",children:[(0,n.jsx)(c.EY,{textStyle:"body.medium",color:"neutrals.nLv1",children:(0,n.jsx)(i.A,{id:"mute_weekly_challenge"})}),!e&&(0,n.jsx)(m.lM,{checked:l,onChange:e=>{t((0,y.w2)(!l)),(0,j.ke)({action:e.target.checked?"switch_on":"switch_off",location:"weekly_challenge",type:"mute_wc"})}})]})}var f=l(21377),b=l(62042),k=l(55729),w=l(98516),S=l(88339),A=l(70679),C=l(96470),L=l(3541),E=l(50148);let I=(0,b.Fj)({base:{textStyle:"table.large"},variants:{color:{default:{color:"neutrals.nLv3"},promotion:{color:"status.success.default"},demotion:{color:"status.error.default"}}}}),T=(0,s.I4)("div",I),F=e=>{var t,l,r,a;let{leaderboard:o,userId:d,isLoading:u}=e,[x,h]=(0,k.useState)(!1),m=(0,g.hX)(),j=(0,p.d4)(S.$F),_=(null==j?void 0:j.id)===d,y=null==o||null==(t=o.rankings)?void 0:t.find(e=>e.id===d),v=null==o||null==(l=o.rankings)?void 0:l.findIndex(e=>e.id===d),b=void 0!==v&&v>-1?v+1:void 0,I=null==y?void 0:y.currentWeeklyChallengeWeeklyStreak,F=new Date,P=o&&1e3*o.league.endDateTimestamph(!0),children:[(0,n.jsx)(L.A,{h:16}),(0,n.jsx)(c.EY,{textStyle:"table.medium",children:I||0})]}),(0,n.jsx)(c.EY,{display:"block",textStyle:"table.medium",ml:"sm",textAlign:"right",minW:"[38px]",children:(0,w.M)(y.score,2)})]})]})]}),(0,n.jsx)(E.A,{isOpen:x,setIsOpen:h})]}):(0,n.jsx)(s.so,{align:"center",justify:"center",m:"lg",minH:"7xl",children:(0,n.jsx)(c.EY,{color:"neutrals.nLv2",textStyle:"body.medium",textAlign:"center",children:(0,n.jsx)(i.A,{id:"weekly_challenge_current_ranking_empty_state"})})})};var P=l(71022),Y=l(23419),M=l(65713);function z(){let e=(0,p.d4)(S.$F),{hasChallengeEnded:t}=(0,Y.A)(),{data:l,isLoading:r}=(0,M.s3)(),a=null==l?void 0:l.league,o=null==a?void 0:a.level,d=void 0!==o;return(0,n.jsxs)(u.Zp,{children:[(0,n.jsxs)(s.so,{align:"center",justify:d?"space-between":"center",pt:"md",pb:"xs",px:"lg",children:[d&&!t&&(0,n.jsx)(s.az,{pl:"2xs",w:"[18px]",h:"[26px]",children:(0,n.jsx)(P.X,{level:o,width:"18px",height:"26px"})}),(0,n.jsx)(c.EY,{display:"block",textAlign:"center",textStyle:"display.medium",color:"neutrals.nLv1",children:(0,n.jsx)(i.A,{id:"weekly_challenge_current_ranking"})}),d&&(0,n.jsx)(s.az,{w:"[18px]"})]}),(0,n.jsx)(s.az,{p:"sm",children:(0,n.jsx)(F,{userId:null==e?void 0:e.id,leaderboard:l,isLoading:r})})]})}let O=(0,s.I4)("ul",{base:{display:"flex",flexDirection:"column",gap:"sm",pl:"xl"}});function B(e){let{titleId:t,children:l}=e;return(0,n.jsxs)(s.so,{direction:"column",p:"lg",gap:"sm",children:[(0,n.jsx)(s.az,{textStyle:"display.medium",children:(0,n.jsx)(i.A,{id:t})}),l]})}function W(e){let{id:t}=e;return(0,n.jsx)(c.Li,{children:(0,n.jsx)(i.A,{id:t})})}function H(e){let{id:t,children:l}=e;return(0,n.jsx)(c.P,{m:"0",children:t?(0,n.jsx)(i.A,{id:t}):(0,n.jsx)(n.Fragment,{children:l})})}function D(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(B,{titleId:"weekly_challenge_how_to_play",children:[(0,n.jsx)(H,{id:"weekly_challenge_how_to_body_one"}),(0,n.jsx)(H,{id:"weekly_challenge_how_to_body_two"})]}),(0,n.jsx)(B,{titleId:"weekly_challenge_where_to_vote",children:(0,n.jsx)(H,{id:"weekly_challenge_where_to_vote_body"})}),(0,n.jsxs)(B,{titleId:"weekly_challenge_what_happens",children:[(0,n.jsx)(H,{id:"weekly_challenge_what_happens_body_one"}),(0,n.jsx)(H,{id:"weekly_challenge_what_happens_body_two"})]}),(0,n.jsxs)(B,{titleId:"weekly_challenge_collecting_points",children:[(0,n.jsx)(H,{children:(0,n.jsx)(i.A,{id:"weekly_challenge_collecting_points_body_one",values:{b:function(){for(var e=arguments.length,t=Array(e),l=0;l{let{level:t,title:l,asset:i,isActive:r,children:a}=e,[o,d]=(0,g.c9)([]);if((0,m._Q)(o,[r],()=>r),!r)return(0,n.jsx)(n.Fragment,{children:a});let u=t&&i?i.hex:void 0;return(0,n.jsxs)(s.so,{direction:"column",gap:"xs",align:"center",py:"sm",px:"md",br:"sm",elevation:{mdDown:"1"},style:{backgroundColor:u},children:[(0,n.jsx)(s.az,{ref:d,children:a}),l&&(0,n.jsx)(c.EY,{display:"block",textStyle:"display.micro",color:"onColor.primary",textAlign:"center",children:l})]})};function U(){let e=(0,g.hX)(),t=(0,p.d4)(S.$F),{data:l,isLoading:i}=(0,R.Ay)(f.rGM.leagueAssets()),{hasChallengeEnded:r}=(0,Y.A)(),{data:a,isLoading:o}=(0,M.s3)(),d=null==a?void 0:a.league,c=null==d?void 0:d.level;return(0,n.jsx)(m.tR,{buttonVariant:m.oK.ButtonVariant.Unshielded,buttonBehavior:m.oK.ButtonBehavior.DesktopOnly,children:(0,n.jsx)(s.so,{justify:"center",align:"center",gap:"xl",mx:["lg","xl"],pt:["xl","lg"],pb:"xl",minW:"fit",minH:"[147px]",flexShrink:"0",children:!e&&!i&&!o&&(null==l?void 0:l.meta)&&l.meta.map((e,i)=>{var a;let{level:o}=e,u=!r&&+o===c;return(0,n.jsx)(X,{level:c,asset:l.meta.find(e=>e.level===c),title:null==d?void 0:d.title,isActive:u,children:(0,n.jsx)(s.az,{minH:"[78px]",children:(0,n.jsx)(P.X,{width:54,height:78,level:+o,isLocked:!r&&void 0!==c&&+o>(null!=(a=null==t?void 0:t.maxLeagueLevel)?a:c),animate:u,animateProps:{dur:"30s",begin:"5s",repeatCount:"indefinite",values:"-100%; 150%; 150%",keyTimes:"0; 0.016; 1"}})})},"".concat(i,"-").concat(o))})})})}var $=l(76868),N=l(72110);function K(){let{data:e}=(0,R.Ay)(f.rGM.leagueAssets()),t=(0,p.d4)(S.$F),l=null==t?void 0:t.weeklyChallengeMaxFinishedLeagueLevel,r=null==t?void 0:t.weeklyChallengeBestRank;if(!r||!l)return null;let a=null==e?void 0:e.meta.find(e=>e.level===l);return(0,n.jsxs)(N.p,{titleId:"weekly_challenge_personal_bests",children:[(0,n.jsx)(N.I,{children:(0,n.jsxs)(s.so,{gap:"sm",align:"center",children:[(0,n.jsx)(P.X,{level:l,width:22,height:32}),(0,n.jsxs)(s.az,{children:[(null==a?void 0:a.title)&&(0,n.jsx)(c.EY,{display:"block",textStyle:"display.medium",color:"neutrals.nLv1",children:null==a?void 0:a.title}),(0,n.jsx)(c.EY,{display:"block",textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,n.jsx)(i.A,{id:"weekly_challenge_highest_league"})})]})]})}),(0,n.jsxs)(N.I,{children:[(0,n.jsxs)(c.EY,{textStyle:"display.medium",color:"neutrals.nLv1",children:["#",r]}),(0,n.jsx)(c.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,n.jsx)(i.A,{id:"weekly_challenge_highest_rank"})})]})]})}var V=l(72629);function Z(){let e=(0,p.d4)(S.$F),t=null==e?void 0:e.weeklyChallengeCurrentWeeklyStreak,l=null==e?void 0:e.weeklyChallengeMaxWeeklyStreak,i=null==e?void 0:e.weeklyChallengeMaxFinishedLeagueLevel,r=null==e?void 0:e.weeklyChallengeBestRank;return t||l||i&&r?(0,n.jsxs)(s.so,{p:"sm",direction:"column",gap:"sm",children:[(0,n.jsx)(V.A,{currentWeeklyStreak:t,maxWeeklyStreak:l,showTitle:!0}),(0,n.jsx)(K,{})]}):(0,n.jsx)($.p,{graphic:"no-statistics",titleMessageId:"no_statistics_yet_title",descriptionMessageId:"no_statistics_yet_description"})}var q=l(32523),Q=l(54409);let J=e=>{let{children:t}=e,{eventList:l,isLoading:s}=(0,M.Z8)(1),i=null==l?void 0:l[0];return s?(0,n.jsx)(n.Fragment,{children:t}):i?(0,n.jsx)(d.tj,{event:i,children:t}):(0,n.jsx)(d.N_,{routeKey:"home",children:t})},ee=e=>{let{isLoggedIn:t,children:l}=e;return t?(0,n.jsx)(J,{children:l}):(0,n.jsx)(n.Fragment,{children:l})};function et(){let{isUserLoggedIn:e}=(0,Y.A)(),[t,l]=(0,k.useState)("surface.s1"),r=(0,p.wA)();return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(ee,{isLoggedIn:e,children:(0,n.jsx)(c.$n,{onFocus:()=>l("primary.default"),onBlur:()=>l("surface.s1"),onClick:()=>{e?(0,j.ke)({action:"click",location:"challenge",type:"start_voting"}):r((0,y.aS)())},w:"100%",children:e?(0,n.jsxs)(s.so,{align:"center",justify:"center",gap:"xs",children:[(0,n.jsx)(Q.Gdg,{fill:t,mr:"xs"}),(0,n.jsx)(i.A,{id:"weekly_challenge_start_voting"})]}):(0,n.jsx)(i.A,{id:"user.signIn"})})})})}function el(e){let{index:t,zone:l,imgSrc:i,nickname:r,score:a}=e;return(0,n.jsxs)(s.so,{minH:"5xl",position:"relative",align:"center",justify:"space-between",px:"lg",borderTop:t>0?"onSurface.nLv4":void 0,children:[(0,n.jsxs)(s.so,{align:"center",gap:"lg",children:[(0,n.jsx)(c.EY,{color:"promotion"===l?"status.success.default":"demotion"===l?"status.error.default":"neutrals.nLv3",display:"block",textStyle:"table.large",minW:"2xl",textAlign:"center",children:t+1}),(0,n.jsx)(A.A,{size:32,src:i}),(0,n.jsx)(c.EY,{textStyle:"table.medium",color:"neutrals.nLv1",children:r})]}),(0,n.jsx)(c.EY,{display:"block",textStyle:"table.medium",color:"neutrals.nLv1",children:(0,w.M)(a)||0})]})}var en=l(39419);let es=e=>{let{fill:t="onSurface.nLv1",...l}=e,{hasChallengeEnded:i,challengeEndTime:r}=(0,Y.A)();return(0,n.jsxs)(s.so,{align:"center",justify:"center",gap:"xs",...l,children:[(0,n.jsx)(Q.zQC,{icon:"time-outline",fill:t}),(0,n.jsx)(en.M,{hasChallengeEnded:i,challengeEndTime:r,c:t,font:"display.medium"})]})};function ei(){let[e,t]=(0,k.useState)(!1);return(0,n.jsxs)(s.so,{display:["flex","none"],justify:"center",w:"100%",position:"absolute",top:"0",style:{transform:"translateY(-50%)"},children:[(0,n.jsx)(s.az,{onClick:()=>{t(!0)},children:(0,n.jsx)(es,{bg:"surface.sp",elevation:"3",py:"sm",px:"md",br:"xl"})}),(0,n.jsxs)(m.Xn,{isOpen:e,onClose:()=>t(!1),children:[(0,n.jsx)(m.Xn.Header,{children:(0,n.jsx)(c.EY,{textStyle:"body.large",fontWeight:"bold",children:(0,n.jsx)(i.A,{id:"timer_explainer_bottom_sheet_header"})})}),(0,n.jsx)(m.Xn.Content,{px:"lg",mb:"xl",children:(0,n.jsx)(c.EY,{textStyle:"body.mediumParagraph",children:(0,n.jsx)(i.A,{id:"timer_explainer_bottom_sheet"})})})]})]})}function er(e){let{showTimer:t,children:l}=e;return(0,n.jsxs)(s.az,{position:"relative",children:[l,t&&(0,n.jsx)(ei,{})]})}let ea=["Robert Smith","Bansilal Brata","Lucas Sim\xf5es","Xun Guiying"],eo=e=>{let{textId:t}=e;return(0,n.jsxs)(s.so,{gap:"sm",align:"center",children:[(0,n.jsx)(s.az,{br:"50%",h:"sm",w:"sm",bg:"primary.default"}),(0,n.jsx)(c.EY,{textStyle:"body.medium",children:(0,n.jsx)(i.A,{id:t})})]})},ed=e=>{let{hasEnded:t,isLoggedIn:l,hasLeaderboard:s,children:r}=e;return t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.A,{id:"next_weekly_challenge"})," ",r]}):l?(0,n.jsx)(i.A,{id:s?"weekly_challenge_leaderboard_filling_up":"join_the_challenge"}):(0,n.jsx)(i.A,{id:"join_the_challenge"})},ec=e=>{let{hasEnded:t,isLoggedIn:l,hasLeaderboard:s}=e;return t?(0,n.jsx)(i.A,{id:"next_weekly_challenge_CTA"}):l?(0,n.jsx)(i.A,{id:s?"weekly_challenge_waiting":"weekly_challenge_get_started"}):(0,n.jsx)(i.A,{id:"weekly_challenge_sign_in"})};function eu(){let{isUserLoggedIn:e,hasChallengeEnded:t,challengeEndTime:l}=(0,Y.A)(),{data:i}=(0,M.s3)();return(0,n.jsx)(er,{showTimer:!t,children:(0,n.jsxs)(s.az,{position:"relative",borderTop:"1px solid",borderTopColor:"neutrals.nLv4",roundedBottom:"lg",pb:"lg",children:[Array.from({length:10},(e,t)=>t).map(e=>(0,n.jsx)(el,{index:e,nickname:ea[e%4],score:(e%4+1)*10,zone:e<5?"promotion":e>7?"demotion":void 0,imgSrc:"/static/images/weekly-challenge/placeholders/person-".concat(e%4+1,".png")},e)),(0,n.jsx)(s.az,{bg:"surface.s2",position:"absolute",style:{backdropFilter:"blur(6px)",WebkitBackdropFilter:"blur(6px)"},inset:"0",roundedBottom:{md:"lg"}}),(0,n.jsx)(s.so,{position:"absolute",justify:"center",inset:"0",children:(0,n.jsxs)(s.so,{direction:"column",gap:"sm",bg:"surface.sp",elevation:"1",br:"sm",mt:"[100px]",mx:"lg",h:"fit",w:"100%",maxW:"[320px]",py:"xl",px:"lg",children:[(0,n.jsx)(c.EY,{textStyle:"display.large",display:"block",children:(0,n.jsx)(ed,{hasEnded:t,hasLeaderboard:!!i,isLoggedIn:e,children:l&&(0,n.jsx)(en.M,{hasChallengeEnded:t,challengeEndTime:l,font:"display.large"})})}),(0,n.jsx)(c.EY,{textStyle:"body.mediumParagraph",children:(0,n.jsx)(ec,{hasEnded:t,isLoggedIn:e,hasLeaderboard:!!i})}),!t&&(0,n.jsxs)(s.so,{direction:"column",gap:"sm",pl:"sm",children:[(0,n.jsx)(eo,{textId:"weekly_challenge_instruction_1"}),(0,n.jsx)(eo,{textId:"weekly_challenge_instruction_2"}),(0,n.jsx)(eo,{textId:"weekly_challenge_instruction_3"}),(0,n.jsx)(eo,{textId:"weekly_challenge_instruction_4"})]}),(0,n.jsx)(s.az,{pt:"lg",children:(0,n.jsx)(et,{})})]})})]})})}function ex(e){let{isOpen:t,setIsOpen:l}=e,s=(0,k.useRef)(null);return(0,n.jsxs)(m.Xn,{isOpen:t,onClose:()=>l(!1),fullHeight:!0,children:[(0,n.jsx)(m.Xn.Header,{children:(0,n.jsx)(c.EY,{textStyle:"display.large",color:"neutrals.nLv1",children:(0,n.jsx)(i.A,{id:"weekly_challenge_votes_this_week"})})}),(0,n.jsx)(m.Xn.Content,{ref:s,minH:"100%",children:(0,n.jsx)(h.iC,{bottomSheetRef:s,isBottomSheet:!0})})]})}var eh=l(43072);let eg=e=>{let{rankingsId:t,isMe:l,enableScroll:i,children:r}=e,{isMobile:a}=(0,c.$c)(),{ref:o,inView:u,entry:x}=(0,eh.Wx)({triggerOnce:!0,threshold:1});return((0,k.useEffect)(()=>{(null==x?void 0:x.target)&&!u&&i&&x.target.scrollIntoView({behavior:"smooth",block:"center"})},[u,null==x?void 0:x.target]),l&&a)?(0,n.jsx)(s.az,{ref:o,children:r}):(0,n.jsx)(d.N_,{routeKey:"user",params:{userId:t},onClick:()=>(0,j.Zs)("weekly_challenge"),children:r})},em=e=>{let{index:t,ranking:l,zone:i,enableScroll:r,hideStreak:a}=e,{id:o,nickname:d,score:u,userBadge:x,currentWeeklyChallengeWeeklyStreak:h}=l,g=(0,p.d4)(S.$F),m=(null==g?void 0:g.id)===o;return(0,n.jsx)(eg,{rankingsId:o,isMe:m,enableScroll:r,children:(0,n.jsxs)(s.so,{minH:"5xl",align:"center",justify:"space-between",px:"lg",cursor:"pointer",bg:m?"primary.highlight":void 0,_hover:{bg:m?"primary.highlight":"neutrals.nLv5"},borderTop:t>0?"1px solid {colors.neutrals.nLv4}":void 0,borderLeft:m?"4px solid {colors.primary.default}":void 0,children:[(0,n.jsxs)(s.so,{align:"center",gap:"lg",ml:m?"-xs":"0",mr:"sm",children:[(0,n.jsx)(c.EY,{color:"promotion"===i?"status.success.default":"demotion"===i?"status.error.default":"neutrals.nLv3",textStyle:"table.large",display:"block",minW:"2xl",textAlign:"center",children:t+1}),(0,n.jsx)(A.A,{size:32,src:f.VfS.chatImage(o),userBadge:x}),(0,n.jsx)(c.EY,{textStyle:"table.medium",color:"neutrals.nLv1",lineClamp:2,overflowWrap:"anywhere",children:m?g.nickname:d})]}),(0,n.jsxs)(s.so,{align:"center",gap:"xs",children:[!a&&void 0!==h&&h>=3&&(0,n.jsxs)(s.so,{align:"center",gap:"2xs",children:[(0,n.jsx)(L.A,{h:16}),(0,n.jsx)(c.EY,{display:"block",textStyle:"table.medium",color:"neutrals.nLv1",children:h})]}),(0,n.jsx)(c.EY,{display:"block",minW:"4xl",textAlign:"end",textStyle:"table.medium",color:"neutrals.nLv1",children:(0,w.M)(u,2)})]})]})})};var ep=l(54053);let ej=e=>{let{zone:t}=e,[l,r]=(0,k.useState)(!1);if(!t)return null;let a="demotion"===t,o=a?"error.default":"success.default";return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.so,{align:"center",justify:"center",h:"3xl",borderTop:"1px solid",borderTopColor:"neutrals.nLv4",onClick:()=>{r(!0)},cursor:"pointer",children:[a?(0,n.jsx)(Q.RGe,{fill:o}):(0,n.jsx)(Q.UPF,{fill:o}),(0,n.jsx)(c.EY,{textStyle:"table.large",color:a?"status.error.default":"status.success.default",children:(0,n.jsx)(i.A,{id:a?"weekly_challenge_relegation":"weekly_challenge_promotion"})}),a?(0,n.jsx)(Q.RGe,{fill:o}):(0,n.jsx)(Q.UPF,{fill:o})]}),(0,n.jsx)(ep.A,{isOpen:l,setIsOpen:r,children:(0,n.jsxs)(s.az,{p:"lg",maxW:{md:"[320px]"},children:[(0,n.jsx)(c.EY,{display:"block",textStyle:"display.medium",mb:"lg",children:(0,n.jsx)(i.A,{id:"leaderboard_explainer_bottom_sheet_header"})}),(0,n.jsx)(c.EY,{display:"block",textStyle:"body.mediumParagraph",children:(0,n.jsx)(i.A,{id:"leaderboard_explainer_bottom_sheet"})})]})})]})};var e_=l(19168);function ey(e){let{hasVoted:t}=e;return t?(0,n.jsxs)(s.so,{gap:"xs",align:"center",zIndex:"button",children:[(0,n.jsx)(Q.Ksi,{width:24,height:24,fill:"graphicsTerrain.dark"}),(0,n.jsx)(c.EY,{textStyle:"display.small",color:"graphics.dark",children:(0,n.jsx)(i.A,{id:"basic.voted"})})]}):(0,n.jsx)(c.$n,{variant:"filled",size:"secondary",negative:!0,children:(0,n.jsx)(i.A,{id:"play_button"})})}var ev=l(42796),ef=l(62859),eb=l(65078);function ek(e){let{children:t}=e,{isDaily10xLoading:l,daily10xEvent:s}=(0,Y.A)(),[i,r]=(0,eb.jr)(s,"homeTeam","awayTeam",s),[a,o]=(0,eb.jr)(s,"homeScore","awayScore",s);return l||!s?null:(0,n.jsx)(ef.y$.Provider,{value:{event:s,leftTeam:i,rightTeam:r,leftScore:a,rightScore:o,location:ef.cb.WeeklyChallenge},children:t})}var ew=l(33144),eS=l(90510),eA=l(94604);function eC(e){let{team:t}=e;return(0,n.jsxs)(s.so,{flexGrow:"1",flexBasis:"[0px]",minW:"[0]",direction:"column",align:"center",gap:"xs",children:[(0,n.jsx)(s.az,{h:"2xl",children:(0,n.jsx)(ew.p,{size:32,id:t.id,name:t.name})}),(0,n.jsx)(c.EY,{textStyle:"assistive.micro",display:"block",textAlign:"center",w:"100%",truncate:!0,children:(0,n.jsx)(eA.Rm,{team:t})})]})}function eL(){let{event:e,leftTeam:t,rightTeam:l}=(0,k.useContext)(ef.y$);return(0,n.jsxs)(s.so,{gap:"lg",justify:"center",px:"lg",py:"sm",children:[(0,n.jsx)(eC,{team:t}),(0,n.jsxs)(s.so,{direction:"column",justify:"center",align:"center",children:[(0,n.jsx)(c.EY,{textStyle:"display.medium",children:(0,n.jsx)(eS.XU,{value:1e3*e.startTimestamp})}),(0,n.jsx)(c.EY,{textStyle:"assistive.micro",children:(0,n.jsx)(eS.ib,{value:1e3*e.startTimestamp})})]}),(0,n.jsx)(eC,{team:l})]})}var eE=l(41618);function eI(){return(0,n.jsxs)(s.so,{justify:"space-between",align:"center",gap:"md",p:{md:"sm"},children:[(0,n.jsxs)(s.so,{direction:"column",justify:"flex-start",children:[(0,n.jsx)(c.EY,{textStyle:"display.medium",display:"block",children:(0,n.jsx)(i.A,{id:"weekly_challenge_daily_10x_header"})}),(0,n.jsx)(c.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",display:"block",children:(0,n.jsx)(i.A,{id:"weekly_challenge_daily_10x_vote_description"})})]}),(0,n.jsx)(eE.r,{size:"48x24"})]})}var eT=l(85517),eF=l(49821),eP=l(85304);function eY(e){let{eventId:t,isLive:l,location:i}=e,{featuredOdds:r,error:a}=(0,eT.A)(t,l,"fullTime"),{ref:o,makeOnClick:d}=(0,eF.kW)({type:eF.jF.Featured,marketName:null==r?void 0:r.marketName,location:i});return a?null:r?(0,n.jsx)(eP.A,{ref:o,market:r,onClick:d(r.marketName,eF.ki.OddsValue),hideMarketName:!0}):(0,n.jsx)(s.az,{h:"[38px]",mb:"sm"})}var eM=l(77988),ez=l(44450),eO=l(89042);function eB(){let{event:e,location:t}=(0,k.useContext)(ef.y$),l=e.status.type===f.XUj.InProgress;return(0,n.jsxs)(s.so,{direction:"column",gap:"md",children:[(0,n.jsxs)(s.so,{direction:"column",gap:"md",bg:"surface.s2",br:"lg",p:"sm",children:[(0,n.jsx)(c.EY,{textStyle:"display.medium",textAlign:"center",px:"lg",display:"block",children:(0,n.jsx)(i.A,{id:"who_will_win"})}),(0,n.jsx)(eO.A,{location:"weekly_challenge",voteType:f.rjx.WhoWillWin,isDailyBonus:!0}),(0,n.jsx)(eY,{eventId:e.id,isLive:l,location:t})]}),(0,n.jsxs)(s.so,{direction:"column",pl:"sm",children:[(0,n.jsx)(eM.A,{}),(0,n.jsx)(ez.A,{variant:"no-spacing"})]})]})}function eW(){return(0,n.jsx)(ek,{children:(0,n.jsx)(u.Zp,{children:(0,n.jsxs)(s.so,{direction:"column",gap:"md",p:"sm",children:[(0,n.jsx)(eI,{}),(0,n.jsx)(eL,{}),(0,n.jsx)(eB,{})]})})})}function eH(e){let{isOpen:t,setIsOpen:l}=e;return(0,n.jsx)(m.Xn,{isOpen:t,onClose:()=>null==l?void 0:l(!1),children:(0,n.jsx)(s.az,{minH:"[316px]",children:(0,n.jsx)(ek,{children:(0,n.jsxs)(s.so,{direction:"column",gap:"md",p:"lg",children:[(0,n.jsx)(eI,{}),(0,n.jsx)(eL,{}),(0,n.jsx)(eB,{})]})})})})}function eD(e){let{variant:t,isOpen:l,setIsOpen:s}=e;switch(t){case"card":return(0,n.jsx)(eW,{});case"popup":return(0,n.jsx)(eH,{isOpen:l,setIsOpen:s});default:return null}}function eG(){let{isMobile:e}=(0,c.$c)(),t=(0,g.hX)(),{isDaily10xLoading:l,daily10xEvent:n}=(0,Y.A)();return{showBanner:!l&&!!n&&!t&&e,daily10xEvent:n}}var eR=l(39332);function eX(e){let{daily10xEvent:t,hasVoted:l,children:s}=e;return l&&t?(0,n.jsx)(d.tj,{event:t,children:s}):(0,n.jsx)(n.Fragment,{children:s})}function eU(){let{showBanner:e,daily10xEvent:t}=eG(),{hasVotedCurrentDaily10x:l,isLoading:r}=function(e){var t,l;let n=(0,p.d4)(S.$F),s=(0,p.d4)(eR.wH),{isDaily10xLoading:i,daily10xEvent:r}=(0,Y.A)(),{data:a,isLoading:o}=(0,R.Ay)((null==n?void 0:n.id)?f.VfS.futurePredictions(n.id):null),d=!!r&&!!s[r.id]&&!!s[r.id][e].current,c=!!r&&!!(null==a||null==(l=a.predictions)||null==(t=l.find)?void 0:t.call(l,e=>e.eventId===r.id));return{hasVotedCurrentDaily10x:!!(null==n?void 0:n.id)&&(d||c),isLoading:i||o}}(f.rjx.WhoWillWin),[a]=(0,e_.yR)(ev.e1,!1),[o,d]=(0,k.useState)(!1);return(0,n.jsxs)(n.Fragment,{children:[e&&(0,n.jsx)(eX,{daily10xEvent:t,hasVoted:l,children:(0,n.jsxs)(s.so,{position:"relative",justify:"space-between",align:"center",gap:"lg",br:"sm",px:"lg",py:a?"sm":"lg",minH:a?"4xl":"9xl",bg:"weeklyChallenge.10x.surface",overflow:"hidden",onClick:()=>{l||r||d(!0)},children:[(0,n.jsxs)(s.so,{direction:"column",gap:"xs",children:[(0,n.jsx)(c.EY,{textStyle:"display.medium",children:(0,n.jsx)(i.A,{id:"weekly_challenge_daily_10x_vote"})}),!a&&(0,n.jsx)(c.EY,{textStyle:"assistive.default",children:(0,n.jsx)(i.A,{id:"weekly_challenge_daily_10x_vote_description"})})]}),!r&&(0,n.jsx)(ey,{hasVoted:l}),(0,n.jsx)(s.az,{position:"absolute",zIndex:"backdrop",right:"[54px]",children:(0,n.jsx)(Q.nJv,{fill:"onColor.highlight.nLv1",height:70,width:70})})]})}),(0,n.jsx)(eD,{variant:"popup",isOpen:o,setIsOpen:d})]})}function e$(e){let{children:t}=e,[l,r]=(0,k.useState)(!1);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.so,{align:"center",py:"sm",pl:"sm",gap:"xs",onClick:()=>r(!0),cursor:"pointer",children:[(0,n.jsx)(Q.G_L,{w:18,h:18,fill:"onSurface.nLv3"}),t]}),(0,n.jsx)(ep.A,{isOpen:l,setIsOpen:r,header:(0,n.jsx)(s.az,{py:"md",px:"lg",mt:{md:"lg"},children:(0,n.jsx)(c.EY,{textStyle:"display.medium",children:(0,n.jsx)(i.A,{id:"weekly_challenge_collecting_points"})})}),children:(0,n.jsxs)(s.I4.ul,{display:"flex",flexDirection:"column",maxW:"[400px]",gap:"sm",pr:"lg",children:[(0,n.jsx)(c.Li,{textStyle:"body.mediumParagraph",children:(0,n.jsx)(i.A,{id:"weekly_challenge_getting_points"})}),(0,n.jsx)(c.Li,{textStyle:"body.mediumParagraph",children:(0,n.jsx)(i.A,{id:"weekly_challenge_losing_points"})}),(0,n.jsx)(c.Li,{textStyle:"body.mediumParagraph",children:(0,n.jsx)(i.A,{id:"weekly_challenge_current_week"})}),(0,n.jsx)(c.Li,{textStyle:"body.mediumParagraph",children:(0,n.jsx)(i.A,{id:"weekly_challenge_later_weeks"})}),(0,n.jsx)(c.Li,{display:[void 0,"none"],textStyle:"body.mediumParagraph",children:(0,n.jsx)(i.A,{id:"weekly_challenge_name_leaderboard"})})]})})]})}function eN(e){let{leaderboardResponse:t,variant:l="current"}=e,{isMobile:r}=(0,c.$c)(),{showBanner:a}=eG(),[o,d]=(0,k.useState)(!1),u=(0,p.d4)(S.$F),{rankings:x,demotionZoneUsers:h,neutralZoneUsers:g,promotionZoneUsers:m}=t,{userIds:j}=(0,C.Y)(m,g,h,x);return(0,n.jsxs)(er,{showTimer:"current"===l,children:[(0,n.jsxs)(s.so,{align:"center",justify:"space-between",h:{base:"[39px]",md:"[26px]"},px:"lg",pt:{base:"sm",md:"0"},borderTop:[void 0,"1px solid {colors.neutrals.nLv4}"],borderBottom:[void 0,"1px solid {colors.neutrals.nLv4}"],children:[(0,n.jsx)(c.EY,{display:"block",color:"neutrals.nLv3",textStyle:"table.medium",children:(0,n.jsx)(i.A,{id:"basic.rank"})}),(0,n.jsx)(e$,{children:(0,n.jsx)(c.EY,{color:"neutrals.nLv3",textStyle:"table.medium",children:(0,n.jsx)(i.A,{id:"points"})})})]}),(0,n.jsx)(s.az,{pb:"lg",children:x.map((e,t)=>{let i=(null==u?void 0:u.id)===e.id,o=t===j.promoted.length-1,c=t===j.promoted.length+j.neutral.length-1,x=m>0&&o&&j.promoted.length>0,g=h>0&&c&&j.demoted.length>0,p=j.promoted.includes(e.id)?"promotion":j.demoted.includes(e.id)?"demotion":"neutral";return(0,n.jsxs)(k.Fragment,{children:[(0,n.jsx)(s.az,{onClick:()=>i&&r&&d(!0),children:(0,n.jsx)(em,{index:t,ranking:e,zone:p,enableScroll:"current"===l,hideStreak:"previous"===l})}),i&&a&&"current"===l&&(0,n.jsx)(s.az,{p:"md",borderTop:"1px solid",borderTopColor:"neutrals.nLv4",children:(0,n.jsx)(eU,{})}),(0,n.jsx)(ej,{zone:x?"promotion":g?"demotion":void 0})]},e.id)})}),x.length<5&&(0,n.jsx)(s.az,{borderTop:"1px solid",borderTopColor:"neutrals.nLv4",children:(0,n.jsx)($.p,{graphic:"no-standings",children:(0,n.jsx)(c.EY,{color:"neutrals.nLv3",textStyle:"body.mediumParagraph",lineHeight:"20px",textAlign:"center",maxW:"[350px]",children:(0,n.jsx)(i.A,{id:"weekly_challenge_leaderboard_empty"})})})}),"current"===l&&(0,n.jsx)(ex,{isOpen:o,setIsOpen:d})]})}function eK(){let{data:e,isLoading:t}=(0,M.s3)(),{hasChallengeEnded:l}=(0,Y.A)();return(0,g.hX)()||t?(0,n.jsx)(q.E,{uniqueKey:"leaderboard-cl"}):l||!e?(0,n.jsx)(eu,{}):(0,n.jsx)(eN,{leaderboardResponse:e})}var eV=function(e){return e.Previous="Previous",e.Current="Current",e.Statistics="Statistics",e}({}),eZ=l(34589),eq=l(55422),eQ=l(63248),eJ=l(85158);function e0(){var e;let t=(0,p.d4)(S.$F),{result:l,newData:r,prevData:a,wasMaxLevel:o,isLoading:d,hasOnlyPrevLeaderboard:u}=function(){let e=(0,p.d4)(S.$F),t=!!(null==e?void 0:e.previousLeaderboardId)&&!e.leaderboardId,{data:l,isLoading:n}=(0,R.Ay)((null==e?void 0:e.leaderboardId)?f.rGM.leaderboardRankings(+(null==e?void 0:e.leaderboardId)):null),{data:s,isLoading:i}=(0,R.Ay)((null==e?void 0:e.previousLeaderboardId)?f.rGM.leaderboardRankings(e.previousLeaderboardId):null),{data:r,isLoading:a}=(0,R.Ay)(f.rGM.leagueAssets()),o=n||i||a,d=t?"relegated":(null==e?void 0:e.leaderboardId)?(0,eq.E)(o,l,s):void 0,c=(0,eQ.A)(r,s);return{result:d,userAccount:e,newData:l,prevData:s,wasMaxLevel:c,isLoading:o,hasOnlyPrevLeaderboard:t}}(),x=null==a?void 0:a.rankings.find(e=>e.id===(null==t?void 0:t.id)&&(null==t?void 0:t.id)),h=null==x?void 0:x.currentWeeklyChallengeWeeklyStreak,g=o&&"staying"===l,m=null==a||null==(e=a.rankings)?void 0:e.findIndex(e=>e.id===(null==t?void 0:t.id)),j=void 0!==m?m+1:void 0,_=null==a?void 0:a.league.title,y=u?_:null==r?void 0:r.league.title,v=u?null==a?void 0:a.league.level:null==r?void 0:r.league.level;return d?(0,n.jsx)(s.az,{h:"[288px]"}):(0,n.jsxs)(s.so,{direction:"column",justify:"center",minH:"[288px]",gap:"lg",children:[l&&(0,n.jsx)(s.so,{px:"md",py:"xs",br:"md",bg:"relegated"===l?"neutrals.nLv5":"secondary.highlight",w:"fit",mx:"auto",align:"center",children:(0,n.jsx)(c.EY,{textStyle:"table.medium",children:(0,n.jsx)(i.A,{id:g?"weekly_challenge_results_staying_top":eZ.j[l]})})}),!!v&&(0,n.jsx)(s.so,{justify:"center",children:(0,n.jsx)(P.X,{level:v,width:67,height:97})}),j&&_&&(0,n.jsxs)(s.so,{direction:"column",gap:"xs",children:[!!y&&(0,n.jsx)(c.EY,{textStyle:"display.large",textAlign:"center",display:"block",children:y}),(0,n.jsx)(c.EY,{textStyle:"body.medium",color:"neutrals.nLv2",textAlign:"center",display:"block",children:(0,n.jsx)(i.A,{id:g?"weekly_challenge_placement_top_league":"weekly_challenge_results_placement",values:{rank:j,leagueName:_}})})]}),l&&void 0!==h&&h>0&&(0,n.jsx)(s.so,{direction:"column",align:"center",w:{base:"100%",md:"fit"},px:"xl",py:"sm",bg:"neutrals.nLv5",br:"sm",mx:"auto",children:(0,n.jsx)(eJ.A,{streak:h,resultType:l})})]})}function e1(e){let{isCard:t}=e,l=(0,g.hX)(),i=(0,p.d4)(S.$F),r=null==i?void 0:i.previousLeaderboardId,{data:a,isLoading:o}=(0,R.Ay)(r?f.rGM.leaderboardRankings(r):null);return o||l?(0,n.jsx)(q.E,{br:"lg",uniqueKey:"leaderboard-cl"}):a?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u.HH,{isCard:!!t,children:(0,n.jsx)(s.az,{px:"sm",pt:"lg",pb:t?"sm":"xl",children:(0,n.jsx)(e0,{})})}),(0,n.jsx)(u.HH,{isCard:!!t,children:(0,n.jsx)(eN,{leaderboardResponse:a,variant:"previous"})})]}):(0,n.jsx)($.p,{graphic:"check-back-later",titleMessageId:"weekly_challenge_previous_week_empty_header",descriptionMessageId:"weekly_challenge_previous_week_empty_description"})}function e2(){return(0,n.jsx)(u.Zp,{children:(0,n.jsxs)(m.tU,{variant:"primary",initialValue:eV.Current,fullWidthTabs:!0,children:[(0,n.jsx)(s.az,{borderBottom:"1px solid {colors.neutrals.nLv4}",children:(0,n.jsxs)(m.tU.List,{mx:"lg",underline:!0,children:[(0,n.jsx)(m.tU.Tab,{tabKey:eV.Previous,children:(0,n.jsx)(i.A,{id:"weekly_challenge_previous_week"})}),(0,n.jsx)(m.tU.Tab,{tabKey:eV.Current,children:(0,n.jsx)(i.A,{id:"weekly_challenge_current_week_tab"})}),(0,n.jsx)(m.tU.Tab,{tabKey:eV.Statistics,children:(0,n.jsx)(i.A,{id:"statistics"})})]})}),(0,n.jsx)(m.tU.Panel,{tabKey:eV.Previous,children:(0,n.jsx)(e1,{})}),(0,n.jsxs)(m.tU.Panel,{tabKey:eV.Current,children:[(0,n.jsx)(U,{}),(0,n.jsx)(eK,{})]}),(0,n.jsx)(m.tU.Panel,{tabKey:eV.Statistics,children:(0,n.jsx)(Z,{})})]})})}var e4=l(40284);function e3(){let{hasChallengeEnded:e}=(0,Y.A)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.H1,{textStyle:"display.extraLarge",color:"neutrals.nLv1",textAlign:"center",mt:"0",mb:"2xl",children:(0,n.jsx)(i.A,{id:"weekly_challenge"})}),(0,n.jsxs)(x.xA,{pb:"4xl",children:[(0,n.jsxs)(x.fv,{flexGrow:2,children:[(0,n.jsx)(v,{}),(0,n.jsxs)(u.Zp,{children:[(0,n.jsx)(u.Zp.Header,{titleId:e?"next_weekly_challenge":"weekly_challenge_time_left"}),(0,n.jsx)(s.az,{mt:"lg",children:(0,n.jsx)(es,{fill:"primary.default"})}),(0,n.jsx)(u.Zp.Footer,{})]}),(0,n.jsx)(z,{}),(0,n.jsx)(h.iC,{})]}),(0,n.jsx)(x.fv,{flexGrow:3,children:(0,n.jsx)(e2,{})}),(0,n.jsxs)(x.fv,{flexGrow:2,children:[(0,n.jsx)(e4.A,{}),(0,n.jsx)(eD,{variant:"card"}),(0,n.jsx)(G,{})]})]})]})}function e9(){let[e,t]=(0,k.useState)(!1);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Q.G_L,{fill:"onSurface.nLv1",onClick:()=>t(!0)}),(0,n.jsxs)(m.Xn,{isOpen:e,onClose:()=>t(!1),children:[(0,n.jsx)(m.Xn.Header,{children:(0,n.jsx)(c.EY,{display:"block",textStyle:"display.medium",children:(0,n.jsx)(i.A,{id:"weekly_challenge_info"})})}),(0,n.jsx)(m.Xn.Content,{children:(0,n.jsx)(D,{})})]})]})}var e5=l(53620),e6=l(96913),e8=l(28132);let e7=(0,l(41735).default)(m.so).withConfig({componentId:"WeeklyChallengeStreakTooltip"}).withConfig({componentId:"sc-e864d522-0"})(["position:absolute;justify-content:center;background-color:",";top:36px;border-radius:",";cursor:pointer;::after{content:'';display:block;position:absolute;width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent;border-right:7px solid ",";top:-12px;"," "," transform:rotate(90deg);}"," ",""],e=>e.theme.colors.primary.default,e=>e.theme.spacing.md,e=>e.theme.colors.primary.default,e=>"rtl"!==e.theme.settings.textDirection&&"right: 24px;",e=>"rtl"===e.theme.settings.textDirection&&"left: 24px;",e=>"rtl"!==e.theme.settings.textDirection&&"right: 8px;",e=>"rtl"===e.theme.settings.textDirection&&"left: 8px;");function te(){let e=(0,p.d4)(S.$F),{data:t}=(0,M.s3)(),[l,s]=(0,k.useState)(!1),[r,a]=(0,e_.yR)("weekly.challenge.streak.tooltip",void 0);if((0,k.useEffect)(()=>{void 0===r&&a(!0)},[r]),!(null==e?void 0:e.id))return null;let o=null==t?void 0:t.rankings.find(t=>t.id===e.id),d=o?o.currentWeeklyChallengeWeeklyStreak:0;return(0,n.jsxs)(m.az,{position:"relative",children:[(0,n.jsx)(m.so,{h:24,align:"center",justify:"flex-end",px:"lg",mb:"sm",children:(0,n.jsxs)(m.so,{bg:"surface.s1",p:"xs sm",br:"sm",elevation:2,align:"center",gap:"xxs",onClick:()=>{s(!0),a(!1)},children:[(0,n.jsx)(L.A,{h:16}),(0,n.jsx)(c.EY,{textStyle:"table.medium",children:d})]})}),(0,n.jsx)(E.A,{isOpen:l,setIsOpen:s}),r&&(null==e?void 0:e.leaderboardId)!==void 0&&(0,n.jsx)(e7,{px:"xl",py:"sm",onClick:()=>a(!1),zIndex:m.Py.Sticky,children:(0,n.jsx)(c.EY,{textStyle:"body.medium",color:"onColor.primary",children:(0,n.jsx)(i.A,{id:"hint_current_weekly_streak"})})})]})}function tt(){let{hasChallengeEnded:e}=(0,Y.A)(),[t,l]=(0,k.useState)(!1);return e?null:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.so,{justify:"center",align:"center",h:"4xl",py:"sm",px:"xl",gap:"xs",br:"xl",bg:"primary.default",onClick:()=>l(!0),cursor:"pointer",children:[(0,n.jsx)(s.az,{w:"xl",h:"xl",children:(0,n.jsx)(Q.nJv,{fill:"surface.s1",h:24,w:24})}),(0,n.jsx)(c.EY,{display:"block",textStyle:"display.large",color:"surface.s1",children:(0,n.jsx)(i.A,{id:"vote"})})]}),(0,n.jsx)(m.Xn,{isOpen:t,onClose:()=>l(!1),children:(0,n.jsx)(m.Xn.Content,{children:(0,n.jsx)(e4.A,{})})})]})}function tl(){let{data:e}=(0,M.s3)(),t=[{tabKey:e8.H.ChallengePreviousWeek,item:"weekly_challenge_previous_week"},{tabKey:e8.H.ChallengeCurrentWeek,item:"weekly_challenge_current_week_tab"},{tabKey:e8.H.Statistics,item:"statistics"}];return(0,n.jsxs)(e6.A,{id:0,tabs:t,initialTabKey:e8.H.ChallengeCurrentWeek,location:e8.m.ChallengePage,noSportMenu:!0,children:[(0,n.jsx)(m.tU.Panel,{tabKey:e8.H.ChallengePreviousWeek,children:(0,n.jsx)(u.BU,{children:(0,n.jsx)(e1,{isCard:!0})})}),(0,n.jsxs)(m.tU.Panel,{tabKey:e8.H.ChallengeCurrentWeek,children:[(0,n.jsx)(U,{}),(0,n.jsx)(te,{}),(0,n.jsx)(s.az,{bg:"surface.s1",children:(0,n.jsx)(eK,{})}),!!e&&(0,n.jsx)(s.az,{position:"sticky",zIndex:"fixed",style:{bottom:e5.E+e5.M+8},children:(0,n.jsx)(s.az,{ml:"auto",mr:"sm",my:"sm",w:"fit",children:(0,n.jsx)(tt,{})})})]}),(0,n.jsx)(m.tU.Panel,{tabKey:e8.H.Statistics,children:(0,n.jsx)(Z,{})})]})}function tn(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.so,{bg:"surface.s1",justify:"space-between",px:"lg",py:"lg",children:[(0,n.jsx)(c.H1,{textAlign:"center",textStyle:"display.large",my:"0",children:(0,n.jsx)(i.A,{id:"weekly_challenge"})}),(0,n.jsx)(s.az,{w:"xl",h:"xl",cursor:"pointer",children:(0,n.jsx)(e9,{})})]}),(0,n.jsx)(tl,{})]})}let ts=e=>{let{textId:t}=e;return(0,n.jsxs)(s.so,{gap:"sm",align:"center",children:[(0,n.jsx)(s.az,{br:"50%",h:"sm",w:"sm",bg:"primary.default"}),(0,n.jsx)(c.EY,{textStyle:"body.medium",children:(0,n.jsx)(i.A,{id:t})})]})};function ti(){let[e,t]=(0,e_.yR)("seen-weekly-challenge",!1),[l,r]=(0,k.useState)(!1),{isUserLoggedIn:a,challengeEndTime:o,challengeStartTime:d}=(0,Y.A)(),u=(0,p.d4)(S.$F),{data:x,isLoading:h}=(0,R.Ay)((null==u?void 0:u.id)?f.VfS.futurePredictions(u.id):null),g=o&&d&&x&&x.predictions.length&&x.predictions.find(e=>e.eventStartTimestamp>d&&e.eventStartTimestamp{e||!a||h||g||(t(!0),r(!0),(0,j.Ex)({type:"weekly_challenge_join",source:"other"}))},[a,h,x,g]);let _=e=>{(0,j.t9)({type:"weekly_challenge_join",action:e,source:"other"})};return(0,n.jsx)(c.aF,{isOpen:l,onClose:()=>{r(!1),_("close")},w:"[280px]",children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.so,{direction:"column",gap:"lg",children:[(0,n.jsx)(c.EY,{textStyle:"display.large",children:(0,n.jsx)(i.A,{id:"join_the_challenge"})}),(0,n.jsx)(s.so,{justify:"center",py:"sm",h:"[109px]",children:(0,n.jsx)(m._V,{h:93,src:"/static/images/weekly-challenge/trophies.svg",alt:""})}),(0,n.jsxs)(s.so,{direction:"column",gap:"lg",pl:"sm",children:[(0,n.jsx)(ts,{textId:"weekly_challenge_instruction_1"}),(0,n.jsx)(ts,{textId:"weekly_challenge_instruction_2"}),(0,n.jsx)(ts,{textId:"weekly_challenge_instruction_3"}),(0,n.jsx)(ts,{textId:"weekly_challenge_instruction_4"})]})]}),(0,n.jsx)(s.az,{pt:"lg",children:(0,n.jsx)(c.$n,{w:"100%",onClick:()=>{r(!1),_("cta_click")},children:(0,n.jsx)(i.A,{id:"ok_got_it_button"})})})]})})}var tr=l(4967),ta=l(2294),to=l(97906),td=l(62121),tc=l(66839);let tu=e=>!!e&&(0,tr.cK)(e);function tx(e){let{children:t}=e;return!function(){let{setIsDaily10xLoading:e,setDaily10xEvent:t}=(0,Y.A)(),l=(0,p.d4)(_.LQ),n=(0,p.d4)(S.$F),s=(0,p.d4)(ta.BF),i=(0,p.d4)(to.j7),r=!l||ev.sJ.includes(l),a=tu(null==n?void 0:n.weeklyChallengeDailyBonusUsedAtTimestamp)||tu(null==i?void 0:i.timestamp),{newDaily10xEvent:o}=function(){let{eventIds:e}=(0,tc.A)(),[t,l]=(0,k.useState)(0),[n,s]=(0,k.useState)(null),i=null==e?void 0:e[t],r=i?f.bnp.details(i):null,{data:a}=(0,R.Ay)(r);return(0,k.useEffect)(()=>{if(a){let n=a.event,i=ev.u_.includes(n.tournament.category.sport.slug),r=n.homeTeam.disabled||n.awayTeam.disabled;i&&(0,td.bZ)(n)&&!r?s(n):e&&te+1)}},[a,t,e]),{newDaily10xEvent:n}}(),{data:d,isLoading:c}=(0,M.s3)(),u=null==d?void 0:d.rankings.find(e=>e.id===(null==n?void 0:n.id)),x=a?(null==u?void 0:u.currentDailyBonusEventId)||(null==i?void 0:i.eventId):void 0,{data:h,isLoading:g}=(0,R.Ay)(x&&!s?f.bnp.details(x):null),m=c||g,j=s||!(null==n?void 0:n.id)||r;(0,k.useEffect)(()=>{if(j){t(void 0),e(!1);return}if(m)e(!0);else{if(h){t(h.event),e(!1);return}if(o&&!a){t(o),e(!1);return}e(!1)}},[m,j,s,h,o])}(),(0,n.jsx)(n.Fragment,{children:t})}function th(e){let{children:t}=e,l=(0,g.hX)(),s=(0,p.d4)(S.$F),i=!l&&!!(null==s?void 0:s.id),{data:r}=(0,R.Ay)(f.rGM.activeLeagueDetails()),{data:a}=(0,M.s3)(),[o,d]=(0,k.useState)(!0),[c,u]=(0,k.useState)(),x=new Date,h=a?1e3*a.league.endDateTimestamp:r&&1e3*r.meta.endDateTimestamp,m=a?1e3*a.league.startDateTimestamp:r&&1e3*r.meta.startDateTimestamp,j=h&&h(0,n.jsx)(tg,{})},25745:(e,t,l)=>{"use strict";async function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Sofa365!Sofa365!",l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"qC9sJnXgvT3C";if(!e)return;let n=new TextEncoder,s=n.encode(t),i={name:"AES-GCM",iv:n.encode(l)},r=await crypto.subtle.importKey("raw",s,i,!1,["decrypt"]),a=new Uint8Array(Array.from(window.atob(e)).map(e=>e.charCodeAt(0)));try{let e=await crypto.subtle.decrypt(i,r,a);return new TextDecoder().decode(e)}catch(e){throw Error("Decrypt failed")}}l.d(t,{s:()=>n})},28132:(e,t,l)=>{"use strict";l.d(t,{H:()=>s,m:()=>n});var n=function(e){return e.EventWidget="event_widget",e.EventPage="event_page",e.FantasyCompetition="fantasy_competition",e.FavoritesPage="favorites_page",e.FightNight="fight_night",e.FighterPage="fighter_page",e.ManagerPage="manager_page",e.Organization="organization_page",e.PlayerPage="player_page",e.RefereePage="referee_page",e.StageSport="stage_sport_page",e.StageSportRace="stage_sport_race_page",e.StageSportTeam="stage_sport_team_page",e.TeamPage="team_page",e.TournamentPage="tournament_page",e.UniqueTournamentPage="unique_tournament_page",e.DroppingOddsPage="dropping_odds_page",e.FantasyLeague="fantasy_league",e.ProfilePage="profile_page",e.VenuePage="venue_page",e.MainPageAll="main_page_all",e.MainPageFavorites="main_page_favourites",e.ChallengePage="challenge_page",e}({}),s=function(e){return e.Summary="summary",e.Incidents="incidents",e.Details="details",e.Scorecard="scorecard",e.Overs="overs",e.BoxScore="box_score",e.Lineups="lineups",e.Statistics="statistics",e.Standings="standings",e.Graphs="graphs",e.Matches="matches",e.Odds="odds",e.FeaturedOdds="featured_odds",e.AdditionalOdds="additional_odds",e.Commentary="commentary",e.Games="games",e.Media="media",e.List="list",e.Editor="editor",e.Fights="fights",e.Info="info",e.Rankings="rankings",e.Race="race",e.Races="races",e.Squad="squad",e.TopPlayers="top_players",e.TopStats="top_stats",e.TopTeams="top_teams",e.Knockout="knockout",e.EarlyPrelims="early_prelims",e.MainCard="main_card",e.Other="other",e.Prelims="prelims",e.PlayByPlay="play_by_play",e.FantasyHome="fantasy_home",e.FantasyMyTeam="fantasy_my_team",e.FantasyFixtures="fantasy_fixtures",e.FantasyLeagues="fantasy_leagues",e.FantasyStatistics="fantasy_statistics",e.BetBoost="bet_boost",e.DroppingOdds="dropping_odds",e.WinningOdds="winning_odds",e.HighValueStreaks="high_value_streaks",e.Top20TeamStreaks="top_20_team_streaks",e.Top20H2H="top_20_h2h",e.PowerRankings="power_rankings",e.PlayerFantasy="player_fantasy",e.FantasyLeagueLeaderboard="fantasy_league_leaderboard",e.FantasyLeagueDetails="fantasy_league_details",e.FantasyLeagueSettings="fantasy_league_settings",e.Overview="overview",e.MyPredictions="my_predictions",e.Following="following",e.Contributions="contributions",e.Career="career",e.Season="season",e.PlayerStatistics="player_stats",e.All="all",e.Live="live",e.Finished="finished",e.Upcoming="upcoming",e.TodayMatches="today_matches",e.ChallengeCurrentWeek="current_week",e.ChallengePreviousWeek="previous_week",e.History="history",e}({})},28600:(e,t,l)=>{"use strict";l.d(t,{G:()=>o,f:()=>a});var n=l(6029),s=l(90248);let i=JSON.parse('{"Full time":"odds_full_time","Double chance":"double_chance","1st half":{"id":"ordinalHalf","values":{"n":1}},"Draw no bet":"draw_no_bet","Both teams to score":"both_teams_to_score","First team to score":"firstTeamToScore","Handicap":"handicap","Match goals":"match_goals","First set winner":"firstSetWinner","Total games won":"totalGamesWon","Tie break in match":"tieBreakInMatch","Next game winner":"nextGameWinner","Next goal":"nextGoal","Current set winner":"currentSetWinner","Point spread":"pointSpread","Asian handicap":"asianHandicap","Game total":"gameTotal","Extra time":"extraTime","Cards in match":"cards_in_match_market","Cards":"cards","Corners 2-Way":"corners_2_way","1st quarter winner":"first_quarter_winner_market","1st period goals":"first_period_goals_market","Total points":"totalPoints","To win shootout":"shootout_win_market","Highest 1st 6 overs score":"highest_1_6_overs_market","Total match fours":"match_fours_market","Total match sixes":"match_sixes_market","A hundred to be scored in match":"hundred_scored_market","Most match sixes":"most_match_sixes_market","A fifty to be scored in the match":"fifty_scored_market","1st over total runs":"first_over_total_runs_market","To go to super over?":"super_over_market","Total runs in match":"total_runs_match_market","Highest individual score":"highest_ind_score_market","To score most runs":"most_runs_market","Next over runs":"runs_next_over_market","Wicket in next over":"wicket_next_over_market","Current innings runs":"current_innings_runs_market","Current innings sixes":"current_innings_sixes_market","Runs at fall of next wicket":"runs_fall_wicket_market","To go the distance":"go_the_distance_market","Total rounds":"total_rounds_market","To win in round":"win_in_round_market","1st half double chance":"first_half_double_chance","1st half goals":"first_half_goals_market","Both teams to score in 1st half":"both_score_half_time_market","Home team match goals":"home_team_goals","Away team match goals":"away_team_goals","Goal number":"goal_number_market","Goal number half time":"goal_number_halftime_market","Toss winner":"toss_win_market","Full time (including overtime)":"market_full_time_including_overtime","1X2":"betting_market_one_x_two","Home/away":"betting_market_home_away","European Handicap":"betting_market_european_handicap","Over/under":"betting_market_over_under","1X2 and score sum":"betting_market_one_x_and_two_score_sum","Odd":"odd_market","Even":"even_market","Yes":"yes","No":"no","Over":"over","Under":"under","No goal":"noGoal"}');var r=l(27892);let a=e=>{let{id:t}=e;return(0,n.jsx)(s.A,{id:(0,r.O)(i,t),values:(0,r.B)(i,t)})},o=a},31253:(e,t,l)=>{"use strict";l.d(t,{A:()=>i});var n=l(6029),s=l(76356);let i=e=>{let{change:t}=e;return t?(0,n.jsx)("div",{children:1===t?(0,n.jsx)(s.I4.svg,{display:"block",mr:"2xs",width:"sm",height:"sm",viewBox:"0 0 8 8",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{fill:"#15B168",d:"m4.27 0 4 6h-8z",fillRule:"evenodd"})}):(0,n.jsx)(s.I4.svg,{display:"block",mr:"2xs",width:"sm",height:"sm",viewBox:"0 0 8 8",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{fill:"#C7361F",d:"m4 8 4-6H0z",fillRule:"evenodd"})})}):null}},38136:(e,t,l)=>{"use strict";l.d(t,{V:()=>o});var n=l(6029),s=l(76356),i=l(41249),r=l(494),a=l(10794);let o=()=>{switch((0,r.d4)(a.LQ)){case"CA":return(0,n.jsxs)(s.so,{children:[(0,n.jsx)("img",{src:"/static/images/odds/igaming-eng-dark.png",height:21,alt:""}),(0,n.jsx)(s.az,{mx:"sm",w:"[1px]",bg:"neutrals.nLv4"}),(0,n.jsx)("img",{src:"/static/images/odds/igaming-fra-dark.png",height:21,alt:""})]});case"IT":return(0,n.jsx)(i._V,{src:"/static/images/odds/aams-logo.png",alt:""});default:return null}}},41618:(e,t,l)=>{"use strict";l.d(t,{r:()=>x,$:()=>m});var n=l(6029),s=l(21377),i=l(76356),r=l(55729),a=l(494),o=l(62859),d=l(76410),c=l(49821),u=l(2294);function x(e){let{selectedProvider:t,onClick:l,logClick:x=!0,size:h="56x28"}=e,g=(0,a.d4)(u.a5),m=t?t.provider:null==g?void 0:g.provider,p=t?null==t?void 0:t.branded:null==g?void 0:g.branded,j=t?t.provider.slug:null==g?void 0:g.provider.slug,{location:_}=(0,r.useContext)(o.y$),[y,v]=h.split("x");return m&&p?(0,n.jsx)(i.I4.a,{display:"flex",justifyContent:"center",alignItems:"center",br:"xs",rel:"noopener noreferrer",target:"_blank",href:(t?t.defaultBetSlipLink:null==g?void 0:g.defaultBetSlipLink)||m.defaultBetSlipLink,onClick:e=>{e.stopPropagation(),null==l||l(),x&&(0,d.Fe)({location:_,provider:j,position:c.ki.ProviderLogo})},"data-testid":"odds_provider_logo",style:{background:m.colors.primary,width:"".concat(y,"px"),height:"".concat(v,"px")},children:(0,n.jsx)(i.I4.img,{src:s.npy.providerImage(m.id),alt:m.name||"",style:{width:"".concat(y,"px"),height:"auto"}})}):null}var h=l(95083),g=l(90248);let m=()=>{let e=(0,a.d4)(u.a5);return(null==e?void 0:e.branded)?(0,n.jsxs)(i.so,{justify:"center",align:"center",ml:"lg","data-testid":"featured_logo",children:[(0,n.jsx)(h.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",mr:"sm",truncate:!0,children:(0,n.jsx)(g.A,{id:"featured_by"})}),(0,n.jsx)(x,{size:"48x24"})]}):null}},43451:(e,t,l)=>{"use strict";l.d(t,{D:()=>r});var n=l(6029),s=l(36145),i=l(41735);let r=({width:e="100%",height:t,animate:l=!1,viewBox:r,style:a,children:o,uniqueKey:d})=>{let c=(0,i.useTheme)();return(0,n.jsx)(s.Ay,Object.assign({speed:2,animate:l,width:e,height:t,backgroundColor:l?c.colors.surface.s0:c.colors.surface.s2,foregroundColor:c.colors.surface.s2,viewBox:r,style:a,uniqueKey:d},{children:o}))}},44450:(e,t,l)=>{"use strict";l.d(t,{A:()=>c});var n=l(6029),s=l(494),i=l(10794),r=l(95083),a=l(76356),o=l(54409);function d(e){let{variant:t}=e,l="no-spacing"===t;return(0,n.jsx)("a",{href:"https://certifications.gamingcommission.gov.gr/publicRecordsOnline/SitePages/KatoxoiAdeiasOnline.aspx",target:"_blank",rel:"nofollow noopener noreferrer",children:(0,n.jsxs)(a.so,{minH:"4xl",align:"center",gap:"md",px:l?"0":"md",mx:l?"0":"sm",mt:l?"0":"-sm",children:[(0,n.jsx)(a.az,{h:"xl",w:"xl",children:(0,n.jsx)(o.OE_,{w:"24px",h:"24px",fill:"onSurface.nLv3",fillOpacity:1})}),(0,n.jsx)(r.EY,{textStyle:"assistive.micro",color:"neutrals.nLv3",children:"21+ | ΚΙΝΔΥΝΟΣ ΕΘΙΣΜΟΥ & ΑΠΩΛΕΙΑΣ ΠΕΡΙΟΥΣΙΑΣ | ΠΑΙΞΕ ΥΠΕΥΘΥΝΑ & ΜΕ ΑΣΦΑΛΕΙΑ |"})]})})}function c(e){let{variant:t}=e;return"GR"===(0,s.d4)(i.LQ)?(0,n.jsx)(d,{variant:t}):null}},47146:(e,t,l)=>{"use strict";l.d(t,{v:()=>r});var n=l(6029),s=l(29705);let i={second:59,minute:59,hour:24,day:7},r=e=>{let{timestamp:t,isAbsoluteTime:l,children:r}=e,{value:a,unit:o}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now(),l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0,s={...i,...l||{}},r=(e-t)/1e3;if(Math.abs(r)0)return{value:Math.round(x),unit:"year"};let h=12*x+d.getMonth()-c.getMonth();return Math.round(Math.abs(h))>0?{value:Math.round(h),unit:"month"}:{value:Math.round(r/604800),unit:"week"}}(t,void 0,void 0,l);return(0,n.jsx)(s.A,{value:a,unit:o,numeric:"auto",children:e=>"function"==typeof r?r(e):(0,n.jsx)(n.Fragment,{children:e})})}},49519:(e,t,l)=>{"use strict";l.d(t,{p:()=>s.p,w:()=>n.w});var n=l(53192),s=l(91603)},49821:(e,t,l)=>{"use strict";l.d(t,{fl:()=>u,jF:()=>c,kW:()=>h,ki:()=>x});var n=l(55729),s=l(494),i=l(62859),r=l(1815),a=l(76410),o=l(25745),d=l(2294),c=function(e){return e.Featured="featured",e.Additional="additional",e.Streaks="streaks",e.Compliance="compliance",e}({}),u=function(e){return e.BetBoostButton="bet_boost_button",e.AffiliateButton="affiliate_button",e}({}),x=function(e){return e.ProviderLogo="provider_logo",e.OddsValue="odds_value",e.BookmakerButton="bookmaker_button",e.AffiliateButton="affiliate_button",e}({});function h(e){let{event:t,location:l}=(0,n.useContext)(i.y$),c=e.location||l,x=(0,s.d4)(d.a5),h=e.countryOddsProvider||x,g=(0,o.s)(null==h?void 0:h.impressionCostEncrypted),m="compliance"===e.type||h&&t.status.type&&(e.marketName||e.isComparison),p=Object.values(u).find(t=>{var l,n;return!!(null==(n=e.activeCTA)||null==(l=n[t])?void 0:l.isActive)}),j=async()=>{"compliance"===e.type?(0,a.D5)({id:t.id,provider:null==h?void 0:h.provider.slug,status:t.status.type,location:c,value:await g}):h&&t.status.type&&(e.marketName||e.isComparison)&&(0,a.CH)({id:t.id,provider:null==h?void 0:h.provider.slug,category:e.marketName,status:t.status.type,location:c,value:await g,is_active:!!p,type:p})},_=e.deps||[],y=(0,r.e)(j,{deps:[t.id,p,..._]});return{ref:m?y:void 0,makeOnClick:(0,n.useCallback)((l,n,s)=>{if(h&&l)return()=>{(0,a.Fe)({id:t.id,provider:s?s.provider.slug:h.provider.slug,category:l,type:e.type,location:c,position:n})}},[t.id,h,l])}}},51057:(e,t,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/user/weeklyChallenge",function(){return l(21706)}])},52210:(e,t,l)=>{"use strict";l.d(t,{I:()=>d.A,i:()=>h});var n=l(6029),s=l(95083),i=l(62042),r=l(76356),a=l(947),o=l(28600),d=l(31253),c=l(75791);let u=(e,t,l)=>(0,i.AH)({pt:"2xs",pb:"xs",px:"xs",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",flex:"1",minW:"[0px]",minH:"2xl",border:"1px solid",borderColor:l?"primary.default":"neutrals.nLv4",borderRadius:"xs",backgroundColor:t?"surface.s2":"surface.s1",_hover:{backgroundColor:e?t?"neutrals.nLv4":"surface.s2":void 0}}),x=e=>{let{betSlipLink:t,onClick:l,title:s,clickable:i,secondary:a,winning:o,children:d}=e;return i&&t?(0,n.jsx)(r.I4.a,{href:t,target:"_blank",rel:"nofollow noopener noreferrer",onClick:l,title:s,className:u(i,a,o),children:d}):(0,n.jsx)(r.I4.div,{className:u(i,a,o),onClick:l,children:d})},h=e=>{let{choice:t,isLive:l,betSlipLink:i,hideChoiceName:u,secondary:h,countryOddsProvider:g,onClick:m}=e,p=(0,a.A)(),j=!!((null==g?void 0:g.branded)&&i),_=j?p.formatMessage({id:"odds.provider"},{provider:g.provider.name}):void 0;return(0,n.jsxs)(x,{clickable:j,title:_,betSlipLink:i,secondary:h,onClick:m,winning:t.winning,"data-testid":"odds_choice",children:[!u&&(0,n.jsx)(s.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",w:"100%",textAlign:"center",truncate:!0,children:(0,n.jsx)(o.G,{id:t.name})}),(0,n.jsxs)(r.so,{align:"center",children:[(0,n.jsx)(d.A,{change:t.change}),(0,n.jsx)(s.EY,{textStyle:"display.micro",color:l?"status.val":"neutrals.nLv1",children:(0,n.jsx)(c.c,{fractionalValue:t.fractionalValue})})]})]})}},70351:(e,t,l)=>{"use strict";l.d(t,{A:()=>r});var n=l(55729),s=l(39196),i=l(4372);let r=function(){let[e,t]=(0,n.useState)(),[l,r]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{(0,s.e)().then(e=>t(e)).catch(()=>t(null))},[]),(0,n.useEffect)(()=>{if(!e)return void r(!1);e.ConnectionManager.isClosed()||r(!0);let t=()=>r(!1),l=()=>r(!0);return e.ConnectionManager.subscribe(t,i.sV.Disconnect),e.ConnectionManager.subscribe(l,i.sV.Reconnect),()=>{e.ConnectionManager.unsubscribe(t,i.sV.Disconnect),e.ConnectionManager.unsubscribe(l,i.sV.Reconnect)}},[e]),[e,l]}},75791:(e,t,l)=>{"use strict";l.d(t,{Y:()=>o,c:()=>a});var n=l(6029),s=l(494),i=l(64274),r=l(2294);let a=e=>{let{fractionalValue:t,children:l}=e,a=(0,s.d4)(r.$4),o=(0,i.YB)(t,a);return(0,n.jsx)(n.Fragment,{children:l?l(o):o})},o=e=>{let[t,l]=e.split("/");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("sup",{children:t}),"/",(0,n.jsx)("sub",{children:l})]})}},77988:(e,t,l)=>{"use strict";l.d(t,{A:()=>m,g:()=>g});var n=l(6029),s=l(41249),i=l(90248),r=l(494),a=l(2294),o=l(10794);let d={AU:"www.gamblinghelponline.org.au",BG:"nss-bg.org/hi-kodeks",GB:"www.begambleaware.org",NL:"hands24x7.nl"},c={DE:"18+ | Erlaubt (Whitelist) | Suchtrisiko | www.buwei.de",NL:"Wat kost gokken jou? Stop op tijd. 18+",CA:"19+. Gambling can be addictive, please play responsibly.
Eligible iGames conducted and managed by iGO are only available to those physically present in the Province of Ontario.",US:"21+. Gambling Problem?
Call 1-800-GAMBLER",SE:"18+. st\xf6dlinjen.se. Spela ansvarsfullt.",DK:"18+ | Regler og vilk\xe5r g\xe6lder | Spil ansvarligt | Selvudeluk via ROFUS.nu | StopSpillet.dk",TR:"İddaa oranları anlık olarak değişiklik g\xf6sterebilmektedir."},u={BE:21,GR:21,CA:19};function x(){let e=(0,r.d4)(a.a5);return(null==e?void 0:e.oddsMayDiffer)?(0,n.jsxs)("span",{children:[(0,n.jsx)("br",{}),(0,n.jsx)(i.A,{id:"disclaimer_odds_may_differ"})]}):null}function h(e){let{standalone:t}=e,l=(0,r.d4)(o.LQ),s=l&&d[l];return s?(0,n.jsxs)("span",{children:[t?"":", ",(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:s}})]}):null}let g=e=>e&&u[e.toUpperCase()]?u[e.toUpperCase()]:18;function m(e){let t,l=(0,r.d4)(o.LQ),a=(0,r.d4)(o.zj);return l&&a?t=c["".concat(l,"-").concat(a)]||c[l]:l&&(t=c[l]),(0,n.jsxs)(s.EY,{font:"assistive.micro",color:"onSurface.nLv3",pr:"sm","data-qa-id":"gamble-responsibly",...e,children:[t?(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:t}}):(0,n.jsx)(i.A,{id:"gamble_responsibly",values:{age:g(l)}}),(0,n.jsx)(h,{}),(0,n.jsx)(x,{})]})}},85304:(e,t,l)=>{"use strict";l.d(t,{A:()=>j});var n=l(6029),s=l(21377),i=l(95083),r=l(76356),a=l(55729),o=l(90248),d=l(494),c=l(65078),u=l(28600),x=l(2294),h=l(4236),g=l(52210),m=l(41618),p=l(38136);let j=(0,a.forwardRef)((e,t)=>{let{market:l,hideMarketName:a,centerMarketName:j,first:_,showRegulationImages:y,hideProviderLogo:v,secondary:f,showLiveLabel:b,onClick:k}=e,w=(0,d.d4)(x.a5),{isMobile:S}=(0,i.$c)(),A=(0,c.g3)(),C=(0,h.nu)(l.choices,A);if(!w)return null;let L=l.structureType===s.oeP.Handicap,E=l.isLive,I=_&&(y||!v);return(0,n.jsxs)(n.Fragment,{children:[!a&&(0,n.jsxs)(r.so,{pb:"sm",pt:I?void 0:"md",mt:I?"-xs":void 0,justify:"space-between",align:"center","data-testid":"odds_market_name",children:[(0,n.jsxs)(i.EY,{textStyle:"assistive.default",w:j?"100%":void 0,textAlign:j?"center":void 0,children:[(0,n.jsx)(u.f,{id:l.marketName}),b&&E&&(0,n.jsx)(i.EY,{textStyle:"assistive.default",color:"status.val",pl:"xs",children:(0,n.jsx)(o.A,{id:"live"})})]}),I&&(y?(0,n.jsx)(p.V,{}):(0,n.jsx)(r.az,{h:"xl",w:"4xl",my:"-xs",mx:"0",children:(0,n.jsx)(m.r,{size:"48x24"})}))]}),(!a||S)&&L&&(0,n.jsxs)(r.so,{justify:"space-around",gap:"sm",children:[(0,n.jsx)(r.so,{flex:"1"}),C.map(e=>(0,n.jsx)(r.so,{flex:"1",align:"center",justify:"center",children:(0,n.jsx)(i.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",children:(0,n.jsx)(u.G,{id:e.name})})},e.name))]}),(0,n.jsxs)(r.so,{ref:t,justify:"space-between",gap:"sm",pb:"sm",children:[L&&(0,n.jsx)(r.so,{flex:"1",align:"center",justify:"center",p:"2xs",children:(0,n.jsx)(i.EY,{textStyle:"body.small",children:l.choiceGroup})}),C.map(e=>(0,n.jsx)(g.i,{choice:e,isLive:E,betSlipLink:(0,h.Iz)(e,l,w),hideChoiceName:L,countryOddsProvider:w,onClick:k,secondary:f},e.name))]})]})})},85517:(e,t,l)=>{"use strict";l.d(t,{A:()=>p});var n=l(21377),s=l(932),i=l.n(s),r=l(78383),a=l.n(r),o=l(84285),d=l.n(o),c=l(55729),u=l(494),x=l(45860),h=l(39196),g=l(70351),m=l(2294);let p=function(e,t,l){var s;let r=(0,u.d4)(m.a5),[o,p]=(0,u.d4)((0,m.Pf)(t)),j=null==r?void 0:r.featuredOddsType,[_]=(0,g.A)(),y={refreshInterval:6e4,fetcher:n.nk6.fetchOddsWithFallback},{data:v,error:f,mutate:b}=(0,x.Ay)(e&&(o||p)?[e,o,p,!0]:null,y);(0,c.useEffect)(()=>{b()},[t]);let k=null!=l?l:j,w=k?null==v||null==(s=v.featured)?void 0:s[k]:void 0;return(0,c.useEffect)(()=>{let e;if(w){if(_){let t=_.Topic.odds.byId(w.id),l=(0,h.p)("featured:".concat(w.id),t,a());e=_.subscribe(l)}return()=>{null==e||e()}}},[_,null==w?void 0:w.id]),(0,c.useEffect)(()=>{if(w&&_&&"boolean"!=typeof _){let e=_.Topic.odds.byId(w.id),t=(0,h.p)("featured:".concat(w.id),e,e=>{var t;if(!j||!(null==v||null==(t=v.featured)?void 0:t[j]))return;let l=i()(v);[1,2,3].forEach(t=>{let n=e["choice".concat(t,".fractionalValue")];n&&d()(l,"featured.".concat(j,".choices[").concat(t-1,"].fractionalValue"),n,i())}),b(l,!1)});_.subscribe(t)}},[_,v,b]),{featuredOdds:w,hasMoreOdds:null==v?void 0:v.hasMoreOdds,error:f}}}},e=>{var t=t=>e(e.s=t);e.O(0,[8446,6591,3170,8757,7319,9550,4016,636,6593,8792],()=>t(51057)),_N_E=e.O()}]);