!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]="9c922d8b-a42c-4808-97b7-ee3ab307f427",e._sentryDebugIdIdentifier="sentry-dbid-9c922d8b-a42c-4808-97b7-ee3ab307f427")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[56587],{4790:(e,t,n)=>{n.d(t,{s:()=>o});async function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Sofa365!Sofa365!",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"qC9sJnXgvT3C";if(!e)return;let o=new TextEncoder,i=o.encode(t),r={name:"AES-GCM",iv:o.encode(n)},l=await crypto.subtle.importKey("raw",i,r,!1,["decrypt"]),s=new Uint8Array(Array.from(window.atob(e)).map(e=>e.charCodeAt(0)));try{let e=await crypto.subtle.decrypt(r,l,s);return new TextDecoder().decode(e)}catch(e){throw Error("Decrypt failed")}}},8536:(e,t,n)=>{n.d(t,{$:()=>j});var o=n(6029),i=n(46787),r=n(51569),l=n(20325),s=n(55729),a=n(90248),d=n(18970),c=n(58456),u=n(41164),h=n(67087),v=n(98835);let f=(e,t,n,o)=>{let r=e===i.XUj.Finished,l=o===i.Jfo.Left,s=o===i.Jfo.Right,a="onSurface.nLv1",d="onSurface.nLv1",c="onSurface.nLv1",u="onSurface.nLv1";return(r||e===i.XUj.WillContinue)&&(a=l?"onSurface.nLv1":"onSurface.nLv3",d=s?"onSurface.nLv1":"onSurface.nLv3","number"==typeof t.penalties&&"number"==typeof n.penalties&&(c=t.penalties>n.penalties?"onSurface.nLv1":"onSurface.nLv3",u=n.penalties>t.penalties?"onSurface.nLv1":"onSurface.nLv3")),{leftColor:a,rightColor:d,leftPenaltyColor:c,rightPenaltyColor:u}};var g=n(52466),p=n(13980),x=function(e){return e[e.Home=1]="Home",e[e.Away=2]="Away",e}({}),m=n(67676);let w=e=>{let{event:t,leftScore:n,rightScore:i}=e,{mediaBreakpoint:s}=(0,r.$c)(),a=void 0!==t.bestOfSets&&t.bestOfSets>1,d=(0,m.U)(n)||0,u=(0,m.U)(i)||0;return(0,o.jsxs)(l.so,{direction:"column",align:"flex-end",pr:"sm",children:[(0,o.jsxs)(l.so,{align:"flex-end",children:[t.firstToServe===x.Home?(0,o.jsx)(g.v1,{color:"secondary.default"}):(0,o.jsx)(l.az,{w:"lg"}),void 0!==n.point&&(0,o.jsx)(r.EY,{color:"secondary.default",display:"block",ml:"[10px]",children:n.point||p.IH}),a&&(0,o.jsx)(r.EY,{color:"status.live",display:"block",ml:"sm",children:d}),(0,o.jsx)(v.cU,{eventId:t.id,changeKey:"leftScore.display",color:"sofaSingles.live",...(0,c.J_)(t,n,s),textAlign:"end"})]}),(0,o.jsxs)(l.so,{align:"flex-end",children:[t.firstToServe===x.Away?(0,o.jsx)(g.v1,{color:"secondary.default"}):(0,o.jsx)(l.az,{w:"lg"}),void 0!==i.point&&(0,o.jsx)(r.EY,{color:"secondary.default",display:"block",ml:"[10px]",children:i.point||p.IH}),a&&(0,o.jsx)(r.EY,{color:"status.live",display:"block",ml:"sm",children:u}),(0,o.jsx)(v.cU,{eventId:t.id,changeKey:"rightScore.display",color:"sofaSingles.live",...(0,c.J_)(t,i,s),textAlign:"end"})]})]})},y=()=>{let{event:e,leftScore:t,rightScore:n}=(0,s.useContext)(d.y$),{mediaBreakpoint:a}=(0,r.$c)(),u=(0,h.gm)(e,"winnerCode");if(e.status.type===i.XUj.NotStarted)return(0,o.jsx)(l.az,{w:"[38px]",flex:"[0 0 38px]",ml:"sm"});if(e.status.type===i.XUj.InProgress)return(0,o.jsx)(w,{event:e,leftScore:t,rightScore:n});let g=f(e.status.type,t,n,u);return(0,o.jsxs)(l.so,{direction:"column",align:"flex-end",pr:"sm",children:[(0,o.jsx)(l.so,{align:"flex-end",children:(0,o.jsx)(v.cU,{eventId:e.id,changeKey:"leftScore.display",color:g.leftColor||"onSurface.nLv3",...(0,c.J_)(e,t,a),textAlign:"end"})}),(0,o.jsx)(l.so,{align:"flex-end",children:(0,o.jsx)(v.cU,{eventId:e.id,changeKey:"rightScore.display",color:g.rightColor||"onSurface.nLv3",...(0,c.J_)(e,n,a),textAlign:"end"})})]})};function j(){let{event:e,leftScore:t,rightScore:n}=(0,s.useContext)(d.y$),a=(0,h.gm)(e,"aggregatedWinnerCode"),g=(0,u.c5)(e),p=(0,h.gm)(e,"winnerCode"),{mediaBreakpoint:x}=(0,r.$c)();if(g===i.QCR.Cricket)return null;if(g===i.QCR.MMA)return(0,o.jsx)(b,{winnerCode:e.winnerCode});if(g===i.QCR.Darts)return(0,o.jsx)(y,{});if(e.status.type===i.XUj.NotStarted)return(0,o.jsx)(l.az,{w:"[38px]",mr:"sm"});let m=e.status.type===i.XUj.InProgress,w=m?((e,t)=>{let n=e.tournament.category.sport.slug===i.QCR.Tennis,o=e.status.type===i.XUj.InProgress,r=e.crowdsourcingDataDisplayEnabled;return o&&(0,u.c5)(e)===i.QCR.Darts&&void 0===e.bestOfSets?"sofaSingles.live":o&&!n&&t===i.Jfo.Left?"onSurface.nLv1":o&&r?"sofaSingles.crowdsourcingLive":"inherit"})(e,p):m?"sofaSingles.live":"onSurface.nLv3",j=m?{leftColor:"onSurface.nLv3",rightColor:"onSurface.nLv3",leftPenaltyColor:"onSurface.nLv3",rightPenaltyColor:"onSurface.nLv3"}:f(e.status.type,t,n,p),C=a===i.Jfo.Left,S=a===i.Jfo.Right;return(0,o.jsxs)(l.so,{direction:"column",justify:"flex-end",align:"flex-end",w:"[38px]",mr:"sm",color:m?"status.live":"neutrals.nLv3",position:"relative",children:[(0,o.jsx)(v.cU,{eventId:e.id,changeKey:"homeScore.display",color:m?w:j.leftColor,penaltiesColor:m?w:j.leftPenaltyColor,...(0,c.J_)(e,t,x),aggWin:C,textAlign:"end"}),(0,o.jsx)(v.cU,{eventId:e.id,changeKey:"awayScore.display",color:m?w:j.rightColor,penaltiesColor:m?w:j.rightPenaltyColor,...(0,c.J_)(e,n,x),aggWin:S,textAlign:"end"})]})}function b(e){let{winnerCode:t}=e;return t!==i.Jfo.Left&&t!==i.Jfo.Right?null:(0,o.jsxs)(l.so,{direction:t===i.Jfo.Left?"column":"column-reverse",gap:"2xs",mx:"sm",children:[(0,o.jsx)(r.EY,{color:"secondary.default",textAlign:"center",display:"block",children:(0,o.jsx)(a.A,{id:"standings.label.wins"})}),(0,o.jsx)(r.EY,{color:"status.error.default",textAlign:"center",display:"block",children:(0,o.jsx)(a.A,{id:"standings.label.losses"})})]})}},13980:(e,t,n)=>{n.d(t,{IH:()=>i,J1:()=>l,ai:()=>r});var o=n(67676);let i=501;var r=function(e){return e[e.Home=1]="Home",e[e.Away=2]="Away",e}({});function l(e,t){return void 0!==t.point&&void 0!==e.bestOfSets&&e.bestOfSets>1?{topScore:Number(t.point)||i,bottomScore:t.display,bottomScoreExtra:(0,o.U)(t)}:void 0!==t.point&&void 0!==e.bestOfLegs&&e.bestOfLegs>0?{topScore:Number(t.point)||i,bottomScore:t.display,bottomScoreExtra:void 0}:(void 0===t.point||null===t.point)&&e.bestOfSets&&e.bestOfSets>1?{topScore:(0,o.U)(t)||0,bottomScore:t.display,bottomScoreExtra:void 0}:{topScore:t.display||0,bottomScore:void 0,bottomScoreExtra:void 0}}},15946:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(46787),i=n(55729),r=n(494),l=n(41397),s=n(7646);function a(e,t){let n=null==t?void 0:t.shouldRefresh,[a,d]=(0,i.useState)(),[c,u]=(0,i.useState)(),h=(0,r.wA)();(0,i.useEffect)(()=>{(null==t?void 0:t.event)?h((0,s.$n)(t.event)):e&&o.nk6.fetchEvent(e).then(e=>{h((0,s.$n)(e.event)),d(e.event),u(void 0)}).catch(e=>{u(e),(null==t?void 0:t.onFetchError)&&t.onFetchError(),d(void 0)})},[e,null==t?void 0:t.event]);let v=(0,r.d4)(t=>{let{favorites:{events:n}}=t;return e?n[e]:void 0});(0,i.useEffect)(()=>{if(!e||!n)return;let t="event-details-".concat(e);return h((0,s.vB)({entities:[e],refreshTaskId:t},{fetchFunction:o.nk6.fetchEvent.bind(null,e)})),()=>{h((0,s.tM)(t))}},[e,n]);let[f,g]=(0,l.A)(v||(null==t?void 0:t.event),"homeTeam","awayTeam",a||(null==t?void 0:t.event)),[p,x]=(0,l.A)(v||(null==t?void 0:t.event),"homeScore","awayScore",a||(null==t?void 0:t.event));return{event:v,fetchedEvent:a,leftTeam:f,rightTeam:g,leftScore:p,rightScore:x,error:c}}},18612:(e,t,n)=>{n.d(t,{D:()=>o.D});var o=n(43451)},18862:(e,t,n)=>{n.d(t,{Y:()=>a,c:()=>s});var o=n(6029),i=n(494),r=n(33775),l=n(37455);let s=e=>{let{fractionalValue:t,children:n}=e,s=(0,i.d4)(l.$4),a=(0,r.YB)(t,s);return(0,o.jsx)(o.Fragment,{children:n?n(a):a})},a=e=>{let[t,n]=e.split("/");return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("sup",{children:t}),"/",(0,o.jsx)("sub",{children:n})]})}},18970:(e,t,n)=>{n.d(t,{y$:()=>l,cb:()=>r,Ws:()=>o.A});var o=n(74664);let i=(0,n(55729).createContext)({});var r=function(e){return e.EventPage="event_details",e.Widget="event_widget",e.BettingWidget="betting_widget",e.MainList="main_list",e.FeaturedMatch="featured_match",e.OddsTable="odds_table",e.FeaturedOdds="featured_odds",e.SpecialEventWidget="special_event_widget",e.FeaturedTournamentTab="featured_tournament_tab",e.AdditionalOdds="additional_odds",e.AdditionalOddsTab="additional_odds_tab",e.MonetizedOddsTab="monetized_odds_tab",e.WeeklyChallenge="weekly_challenge",e.Fantasy="fantasy",e}({});let l=i},20284:(e,t,n)=>{n.d(t,{LS:()=>h,SR:()=>u});var o=n(46787),i=n(22375),r=n(60235),l=n(494),s=n(72753),a=n(43738);let d=(e,t)=>(!t.visibleTo||!(e>=t.visibleTo))&&(!t.visibleFrom||!(e("AF"===t||e&&a.x.includes(e)?[o.G6l.AFCON]:[]).map(e=>a.g[e]).filter(e=>void 0!==e&&d((0,i.UG)(new Date),e)),u=(e,t)=>{let n=(0,l.d4)(s.LQ),i=(0,l.d4)(s.uZ);return e!==o.QCR.Football?[]:c(n,i).filter(e=>d(t,e))},h=()=>{let e=(0,r.hX)(),t=(0,l.d4)(s.LQ),n=(0,l.d4)(s.uZ);return e?{tournament:void 0}:{tournament:c(t,n).find(e=>d((0,i.UG)(new Date),e))}}},25133:(e,t,n)=>{n.d(t,{g:()=>p});var o=n(6029),i=n(49519),r=n(46787),l=n(51569),s=n(20325),a=n(55729),d=n(947),c=n(18970),u=n(52466),h=n(67087),v=n(88505),f=n(58456);function g(e){let{count:t}=e;return"number"!=typeof t||t<1?null:(0,o.jsxs)(l.Ym,{children:[(0,o.jsx)(u.sm9,{width:"14",height:"14",color:"status.error.default"}),t>1&&(0,o.jsxs)(l.EY,{textStyle:"body.small",color:"neutrals.nLv3",verticalAlign:"middle",children:["x",t]})]})}function p(e){var t,n,u,p,x,m;let{isShort:w,style:y,entity:j}=e,b=(0,d.A)(),{event:C,leftTeam:S,rightTeam:L}=(0,a.useContext)(c.y$),[A,R]=(0,h.jr)(C,"homeRedCards","awayRedCards"),k=(0,h.gm)(C,"winnerCode"),T=C.status.type===r.XUj.Finished,_=k===r.Jfo.Left,E=k===r.Jfo.Right,F=T||C.status.type===r.XUj.WillContinue,N=j===r.wNW.Manager||j===r.wNW.Player,Y=(0,f.PZ)(C,b.formatMessage,b.locale),D=(0,o.jsx)(i.p,{size:16,id:S.id,name:S.name,isSmall:!0}),I=(0,o.jsx)(i.p,{size:16,id:L.id,name:L.name,isSmall:!0});return S.type===r.YVh.Person?D=(0,o.jsx)(i.w,{size:16,alpha2:null==(t=S.country)?void 0:t.alpha2,fallback:(0,o.jsx)(l._V,{src:"/static/images/placeholders/team.svg",w:"lg",h:"lg",alt:null==(n=S.country)?void 0:n.name}),name:null==(u=S.country)?void 0:u.name}):S.type===r.YVh.Double&&(D=null),L.type===r.YVh.Person?I=(0,o.jsx)(i.w,{size:16,alpha2:null==(p=L.country)?void 0:p.alpha2,fallback:(0,o.jsx)(l._V,{src:"/static/images/placeholders/team.svg",w:"lg",h:"lg",alt:null==(x=L.country)?void 0:x.name}),name:null==(m=L.country)?void 0:m.name}):L.type===r.YVh.Double&&(I=null),(0,o.jsxs)(s.az,{title:Y,overflow:"hidden",minW:"[0px]",style:y||{flex:"1 1 ".concat(w?"100px":"140px")},children:[(0,o.jsxs)(s.so,{align:"center",mb:"2xs",children:[D&&(0,o.jsx)(s.az,{w:"lg",h:"lg",mr:"sm",children:D}),(0,o.jsxs)(l.Ym,{color:F&&!_?"neutrals.nLv3":"neutrals.nLv1",truncate:!0,children:[(0,o.jsx)(v.Rm,{team:S,short:!0}),N?null:(0,o.jsx)(g,{count:A})]})]}),(0,o.jsxs)(s.so,{align:"center",children:[I&&(0,o.jsx)(s.az,{w:"lg",h:"lg",mr:"sm",children:I}),(0,o.jsxs)(l.Ym,{color:F&&!E?"neutrals.nLv3":"neutrals.nLv1",truncate:!0,children:[(0,o.jsx)(v.Rm,{team:L,short:!0}),N?null:(0,o.jsx)(g,{count:R})]})]})]})}},41164:(e,t,n)=>{n.d(t,{AD:()=>o.AD,Mh:()=>o.Mh,Sw:()=>o.Sw,c5:()=>o.c5,f2:()=>o.f2,jQ:()=>o.jQ,jY:()=>o.jY,rK:()=>o.rK,rf:()=>o.rf,vJ:()=>o.vJ});var o=n(63561)},41342:(e,t,n)=>{n.d(t,{Hs:()=>r,NR:()=>i,p4:()=>o});let o="/21866864457/preroll_video_app",i="https://pubads.g.doubleclick.net/gampad/live/ads?iu="+o+"&description_url=http%3A%2F%2Fsofascore.com&tfcd=0&npa=0&sz=1x1%7C400x300%7C640x480&ciu_szs=300x250%2C336x280%2C728x90&min_ad_duration=5000&max_ad_duration=30000&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator=",r=["BR","BG","JP","UK","KE","GB","NG","IT","NL","ES","MA","IR","BD","IN","TH","VN"]},41397:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(95700);function i(e,t,n,i){let r=(0,o.A)(i);if(!(e&&void 0!==t&&void 0!==n))return[];let[l,s]=[e[t],e[n]];return r?[s,l]:[l,s]}},43451:(e,t,n)=>{n.d(t,{D:()=>l});var o=n(6029),i=n(36145),r=n(41735);let l=({width:e="100%",height:t,animate:n=!1,viewBox:l,style:s,children:a,uniqueKey:d})=>{let c=(0,r.useTheme)();return(0,o.jsx)(i.Ay,{speed:2,animate:n,width:e,height:t,backgroundColor:n?c.colors.surface.s0:c.colors.surface.s2,foregroundColor:c.colors.surface.s2,viewBox:l,style:s,uniqueKey:d,children:a})}},45525:(e,t,n)=>{n.d(t,{W:()=>r,X:()=>i});var o=n(41342);function i(e){return!e||!o.Hs.includes(e)}function r(e){var t;return e&&(null==(t=window.navigator.connection)?void 0:t.effectiveType)?"4g"===window.navigator.connection.effectiveType:!e}},56587:(e,t,n)=>{n.d(t,{ZK:()=>k,Ay:()=>F});var o=n(6029),i=n(18612),r=n(46787),l=n(22375),s=n(94565),a=n(78383),d=n.n(a),c=n(55729),u=n(90510),h=n(90248),v=n(494),f=n(18970);n(8536);var g=n(25133),p=n(67087),x=n(11219),m=n(18862),w=n(68789),y=n(64046),j=n(37455),b=n(8785),C=n(95084),S=n(89827);let L=e=>e<20?"sofaSingles.value":"error.default",A=e=>-1!==[r.QCR.Football,r.QCR.Handball].indexOf(e),R=e=>{let{hasDraw:t}=e;return(0,o.jsx)(s.az,{minW:t?132:88,w:t?132:88,ml:"xs",children:(0,o.jsxs)(i.D,{height:"auto",viewBox:"0 0 ".concat(t?132:88," 36"),uniqueKey:"event-cell-odds-cl",children:[(0,o.jsx)("rect",{x:"19",y:"4",width:"7",height:"13",rx:"4",ry:"2"}),(0,o.jsx)("rect",{x:"63",y:"4",width:"7",height:"13",rx:"4",ry:"2"}),t&&(0,o.jsx)("rect",{x:"93",y:"20",width:"34",height:"16",rx:"4",ry:"4"}),(0,o.jsx)("rect",{x:"5",y:"20",width:"34",height:"16",rx:"4",ry:"4"}),(0,o.jsx)("rect",{x:"49",y:"20",width:"34",height:"16",rx:"4",ry:"4"}),t&&(0,o.jsx)("rect",{x:"107",y:"4",width:"7",height:"13",rx:"4",ry:"4"})]})})};function k(e){let{odds:t,sport:n,eventId:i,fallback:r}=e,l=(0,w.Ae)(),a=(0,v.d4)(j.$4),d=(0,p.g3)(),u=null==l?void 0:l.branded,h="fractional"===a,g=(0,c.useCallback)(e=>{e.stopPropagation(),(0,C.Fe)({id:i,provider:null==l?void 0:l.provider.slug,providerType:null==l?void 0:l.type,category:null==t?void 0:t.marketName,type:y.jF.Featured,location:f.cb.MainList,position:y.ki.OddsValue})},[i,l,t]),x=A(n);if(!t)return(0,o.jsx)(R,{hasDraw:x});if(t.loaded)return r||(0,o.jsx)("div",{style:{minWidth:x?132:88}});let S=(0,b.nu)(t.choices,d),L=h?m.Y:void 0;return(0,o.jsx)(o.Fragment,{children:S.map(e=>{let n=l&&u?(0,b.Iz)(e,t,l):null,i=(0,o.jsxs)(s.so,{direction:"column",align:"center",gap:"xs",children:[(0,o.jsx)(s.EY,{font:"assistive.default",color:"onSurface.nLv3",children:e.name}),(0,o.jsx)(s.so,{justify:"center",align:"center",w:h?48:40,h:h?20:16,border:e.winning?"primary.default":"onSurface.nLv4",br:"xs",bg:"surface.s1",hoverBg:"surface.s2",children:(0,o.jsx)(s.EY,{font:"display.micro",fontSize:h?14:void 0,letterSpacing:h?"-0.5px":void 0,color:t.isLive?"sofaSingles.value":"onSurface.nLv1",lineHeight:1,children:(0,o.jsx)(m.c,{fractionalValue:e.fractionalValue,children:L})})})]});return n?(0,o.jsx)(s.az,{as:"a",target:"_blank",href:n,rel:"nofollow noopener",onClick:g,zIndex:s.Py.Button,children:i},e.name):i})})}function T(e){let{startTimestamp:t,showDraw:n}=e;return(0,o.jsxs)(s.so,{justify:"space-between",px:"lg",pt:"xs",children:[(0,o.jsx)(s.EY,{font:"assistive.micro",color:"onSurface.nLv3",children:(0,o.jsx)(u.XU,{value:1e3*t,...l.or.dateTime})}),(0,o.jsxs)(s.so,{gap:"sm",children:[(0,o.jsx)(s.EY,{w:40,font:"assistive.micro",color:"onSurface.nLv3",align:"center",children:"1"}),n&&(0,o.jsx)(s.EY,{w:40,font:"assistive.micro",color:"onSurface.nLv3",align:"center",children:"X"}),(0,o.jsx)(s.EY,{w:40,font:"assistive.micro",color:"onSurface.nLv3",align:"center",children:"2"}),(0,o.jsx)(s.EY,{w:60,font:"assistive.micro",color:"onSurface.nLv3",align:"center",children:(0,o.jsx)(h.A,{id:"betting.drop"})})]})]})}function _(e){let{isChoice:t,choice:n,drop:i}=e;return(0,o.jsxs)(s.az,{children:[(0,o.jsx)(s.az,{w:40,border:"onSurface.nLv4",textAlign:"center",br:"sm",mb:"xs",children:(0,o.jsx)(s.EY,{font:"display.micro",lineHeight:"16px",color:"onSurface.nLv1",children:n.initialFractionalValue&&(0,o.jsx)(m.c,{fractionalValue:n.initialFractionalValue})})}),(0,o.jsx)(s.az,{w:40,border:"onSurface.nLv4",textAlign:"center",br:"sm",children:(0,o.jsx)(s.EY,{font:"display.micro",lineHeight:"16px",color:t?L(i):"onSurface.nLv1",children:(0,o.jsx)(m.c,{fractionalValue:n.fractionalValue})})})]})}function E(e){let{choices:t,choice:n,showDraw:i,drop:r}=e,l=t.length-1,[a,d]=(0,p.jr)(t,0,l);return(0,o.jsxs)(s.so,{gap:"sm",align:"center",children:[(0,o.jsx)(_,{choice:a,isChoice:a.name===n,drop:r},a.name),i&&(0,o.jsx)(_,{choice:t[1],isChoice:t[1].name===n,drop:r},t[1].name),(0,o.jsx)(_,{choice:d,isChoice:d.name===n,drop:r},d.name),(0,o.jsx)(s.EY,{font:"display.small",color:L(r),w:60,align:"center",children:"".concat((0,S.M)(r,1),"%")})]})}let F=function(e){let{event:t,choice:n,onClick:i=d(),isSelected:r,choices:l,drop:a,isMobile:c}=e,{event:u,...h}=(0,p.AR)(t),v=u.tournament.category.sport.slug,m=(A(u.tournament.category.sport.slug)||A(v)||null===v)&&3===l.length;return(0,o.jsx)(f.y$,{value:{event:u,...h},children:(0,o.jsx)(x.tj,{event:u,children:(0,o.jsxs)(s.az,{bg:[void 0,r?"surface.s2":"surface.s1"],onClick:e=>{i&&i(e,u.id,c)},cursor:"pointer",hoverBg:"surface.s2",children:[(0,o.jsx)(T,{startTimestamp:u.startTimestamp,showDraw:m}),(0,o.jsxs)(s.so,{justify:"space-between",align:"center",px:"lg",py:"sm",children:[(0,o.jsx)(g.g,{style:c?{flex:"1 1 auto"}:{}}),(0,o.jsx)(E,{choice:n,choices:l,drop:a,showDraw:m})]})]})})})}},58456:(e,t,n)=>{n.d(t,{J_:()=>x,PZ:()=>u,TF:()=>m,t3:()=>f});var o=n(6029),i=n(46787),r=n(51569),l=n(55729),s=n(52466),a=n(41164),d=n(45525),c=n(80055);function u(e,t,n){return t({id:"event.title"},{home:(0,c.s)(e.homeTeam,n),away:(0,c.s)(e.awayTeam,n)})}let h={[i.QCR.IceHockey]:{assists:e=>(0,o.jsx)(s.NcS,{icon:"ice-hockey-puck",width:e.width,height:e.height,color:"neutrals.nLv1"}),goals:e=>(0,o.jsx)(s.CvR,{icon:"hockey-pak",width:e.width,height:e.height,color:"neutrals.nLv1"})},[i.QCR.Handball]:{goals:e=>(0,o.jsx)(s.NcS,{icon:"handball",width:e.width,height:e.height,color:"neutrals.nLv1"})},[i.QCR.Football]:{redCards:e=>(0,o.jsx)(s.CvR,{icon:"card-red",width:e.width,height:e.height,color:"status.error.default"}),yellowRedCards:e=>(0,o.jsx)(s.CvR,{icon:"card-double-yellow",width:e.width,height:e.height}),yellowCards:e=>(0,o.jsx)(s.CvR,{icon:"card-yellow",width:e.width,height:e.height,color:"rating.s65"}),ownGoals:e=>(0,o.jsx)(s.NcS,{icon:"football-own-goal",width:e.width,height:e.height,color:"status.error.default"}),assists:e=>(0,o.jsx)(s.NcS,{icon:"football-assist",width:e.width,height:e.height,color:"neutrals.nLv1"}),penaltyGoals:e=>(0,o.jsx)(s.NcS,{icon:"football-penalty",width:e.width,height:e.height,color:"neutrals.nLv1"}),goals:e=>(0,o.jsx)(s.NcS,{icon:"football-ball",width:e.width,height:e.height,color:"neutrals.nLv1"})},[i.QCR.AmericanFootball]:{kickingExtraMade:e=>(0,o.jsx)(s.CvR,{icon:"af-extra-point",width:e.width,height:e.height,color:"neutrals.nLv1"}),kickingFgMade:e=>(0,o.jsx)(s.CvR,{icon:"af-field-goal",width:e.width,height:e.height,color:"neutrals.nLv1"}),passingTouchdowns:e=>(0,o.jsx)(s.NcS,{icon:"af-passing-touchdown",width:e.width,height:e.height,color:"neutrals.nLv1"}),rushingTouchdowns:e=>(0,o.jsx)(s.CvR,{icon:"af-touchdown",width:e.width,height:e.height,color:"neutrals.nLv1"}),receivingTouchdowns:e=>(0,o.jsx)(s.CvR,{icon:"af-touchdown",width:e.width,height:e.height,color:"neutrals.nLv1"}),puntReturnsTouchdowns:e=>(0,o.jsx)(s.CvR,{icon:"af-touchdown",width:e.width,height:e.height,color:"neutrals.nLv1"}),puntingReturnTouchdowns:e=>(0,o.jsx)(s.CvR,{icon:"af-touchdown",width:e.width,height:e.height,color:"neutrals.nLv1"}),kickReturnsTouchdowns:e=>(0,o.jsx)(s.CvR,{icon:"af-touchdown",width:e.width,height:e.height,color:"neutrals.nLv1"}),fumbleTouchdownReturns:e=>(0,o.jsx)(s.CvR,{icon:"af-touchdown",width:e.width,height:e.height,color:"neutrals.nLv1"}),defensiveInterceptionsTouchdowns:e=>(0,o.jsx)(s.CvR,{icon:"af-touchdown",width:e.width,height:e.height,color:"neutrals.nLv1"})},[i.QCR.Minifootball]:{redCards:e=>(0,o.jsx)(s.CvR,{icon:"card-red",width:e.width,height:e.height,color:"status.error.default"}),yellowRedCards:e=>(0,o.jsx)(s.CvR,{icon:"card-double-yellow",width:e.width,height:e.height}),yellowCards:e=>(0,o.jsx)(s.CvR,{icon:"card-yellow",width:e.width,height:e.height,color:"rating.s65"}),ownGoals:e=>(0,o.jsx)(s.NcS,{icon:"football-own-goal",width:e.width,height:e.height,color:"status.error.default"}),assists:e=>(0,o.jsx)(s.NcS,{icon:"football-assist",width:e.width,height:e.height,color:"neutrals.nLv1"}),penaltyGoals:e=>(0,o.jsx)(s.NcS,{icon:"football-penalty",width:e.width,height:e.height,color:"neutrals.nLv1"}),goals:e=>(0,o.jsx)(s.NcS,{icon:"football-ball",width:e.width,height:e.height,color:"neutrals.nLv1"}),accumulatedPenaltyGoals:e=>(0,o.jsx)(s.CvR,{icon:"accumulated-penalty",width:e.width,height:e.height,color:"neutrals.nLv1"})}},v={rushingTouchdowns:1,receivingTouchdowns:1,puntReturnsTouchdowns:1,puntingReturnTouchdowns:1,kickReturnsTouchdowns:1,fumbleTouchdownReturns:1,defensiveInterceptionsTouchdowns:1},f=(e,t)=>{let n=[],a=h[e]||{};if(Object.keys(a).map(s=>{let d=a[s],c=(null==t?void 0:t[s])||0;if(!c||s in v||e===i.QCR.Football&&"goals"===s&&!(c-=(null==t?void 0:t.penaltyGoals)||0)||"yellowCards"===s&&((null==t?void 0:t.redCards)||(null==t?void 0:t.yellowRedCards)))return;let u=16;"yellowRedCards"===s&&(u=20);let h=c>1?c:"";n.push((0,o.jsxs)(l.Fragment,{children:[(0,o.jsx)(r.EY,{textStyle:"assistive.default",color:"neutrals.nLv1",ml:"sm",children:h}),(0,o.jsx)(d,{width:u,height:u},"".concat(c,"-").concat(s))]},"".concat(c,"-").concat(s)))}),e===i.QCR.AmericanFootball){let e=Object.keys(v).map(e=>(null==t?void 0:t[e])||0).reduce((e,t)=>e+t,0);e&&n.push((0,o.jsxs)(l.Fragment,{children:[(0,o.jsx)(r.EY,{textStyle:"assistive.default",color:"neutrals.nLv1",ml:"sm",children:e>1&&e}),(0,o.jsx)(s.CvR,{icon:"af-touchdown",width:16,height:16,color:"neutrals.nLv1"},"special")]},"".concat(e,"-af")))}return n},g=["sm","lg"],p=[i.QCR.IceHockey,i.QCR.Waterpolo,i.QCR.Floorball],x=(e,t,n)=>[i.sum.Penalties,i.sum.AP].includes(e.status.code)&&"number"==typeof t.penalties?g.includes(n)&&p.includes((0,a.c5)(e))?{score:t.display}:{score:t.display,penalties:t.penalties}:{score:t.display},m=(e,t)=>(e.status.type===i.XUj.NotStarted||e.status.type===i.XUj.InProgress)&&e.streamContentId&&!(0,d.X)(t)},64046:(e,t,n)=>{n.d(t,{fl:()=>d,jF:()=>a,kW:()=>u,ki:()=>c});var o=n(55729),i=n(18970),r=n(16503),l=n(95084),s=n(4790),a=function(e){return e.Featured="featured",e.Additional="additional",e.Streaks="streaks",e.Compliance="compliance",e}({}),d=function(e){return e.BetBoostButton="bet_boost_button",e.AffiliateButton="affiliate_button",e}({}),c=function(e){return e.ProviderLogo="provider_logo",e.OddsValue="odds_value",e.BookmakerButton="bookmaker_button",e.AffiliateButton="affiliate_button",e}({});function u(e){let{event:t,location:n}=(0,o.useContext)(i.y$),a=e.location||n,c=e.countryOddsProvider,u=(0,s.s)(null==c?void 0:c.impressionCostEncrypted),h="compliance"===e.type||c&&t.status.type&&(e.marketName||e.isComparison),v=Object.values(d).find(t=>{var n,o;return!!(null==(o=e.activeCTA)||null==(n=o[t])?void 0:n.isActive)}),f=async()=>{"compliance"===e.type?(0,l.D5)({id:t.id,provider:null==c?void 0:c.provider.slug,status:t.status.type,location:a===i.cb.Widget?i.cb.EventPage:a,value:await u}):c&&t.status.type&&(e.marketName||e.isComparison)&&(0,l.CH)({id:t.id,provider:null==c?void 0:c.provider.slug,providerType:null==c?void 0:c.type,category:e.marketName,status:t.status.type,location:a,value:await u,is_active:!!v,type:v})},g=e.deps||[],p=(0,r.e)(f,{deps:[t.id,v,...g]});return{ref:h?p:void 0,makeOnClick:(0,o.useCallback)((n,o,i)=>{if(c&&n)return()=>{(0,l.Fe)({id:t.id,provider:i?i.provider.slug:c.provider.slug,providerType:c.type,category:n,type:e.type,location:a,position:o})}},[t.id,c,n])}}},67087:(e,t,n)=>{n.d(t,{gm:()=>o.A,g3:()=>i.A,mJ:()=>r.A,jr:()=>l.A,AR:()=>a,h2:()=>h});var o=n(81162),i=n(95700),r=n(15946),l=n(41397),s=n(494);function a(e){let t=(0,s.d4)(t=>{let{favorites:{events:n}}=t;return n[e.id]}),[n,o]=(0,l.A)(e,"homeTeam","awayTeam",e),[i,r]=(0,l.A)(e,"homeScore","awayScore",e);return{event:t||e,leftTeam:n,rightTeam:o,leftScore:i,rightScore:r}}var d=n(46787),c=n(55729),u=n(18970);function h(e,t){var n,i;let{event:r,leftTeam:l,rightTeam:s}=(0,c.useContext)(u.y$),a=(0,o.A)(r,"winnerCode"),h=(r.status.code===d.sum.AET||r.status.code===d.sum.AP)&&r.tournament.category.sport.slug===d.QCR.IceHockey,v=e?t=>e===t:t||(()=>!1),f=v(l.id,r.id)||(null==(n=l.subTeams)?void 0:n.some(e=>v(e.id,r.id))),g=v(s.id,r.id)||(null==(i=s.subTeams)?void 0:i.some(e=>v(e.id,r.id)));switch(a){case d.Jfo.Left:if(f)return d.h18.Win;if(g)return h?d.h18.OvertimeLoss:d.h18.Lose;break;case d.Jfo.Right:if(f)return h?d.h18.OvertimeLoss:d.h18.Lose;if(g)return d.h18.Win;break;case d.Jfo.Draw:if(f||g)return d.h18.Draw}}},67676:(e,t,n)=>{n.d(t,{U:()=>o});function o(e){let t=Object.keys(e).filter(e=>e.startsWith("period")).sort((e,t)=>Number(e.replace("period",""))-Number(t.replace("period",""))).pop();if(t)return e[t]}},68789:(e,t,n)=>{n.d(t,{Ae:()=>u,F0:()=>d,ks:()=>c,uZ:()=>h});var o=n(46787),i=n(22375),r=n(494),l=n(20284),s=n(37455);let a=(e,t)=>{var n;return((e,t,n)=>{let r=h(t),s=(0,l.SR)(e,(0,i.UG)(new Date));return r&&t&&s.find(e=>e.id===t)&&r.featuredOddsDisplayArea===o.kRm.TournamentAndEvents?r:n})(e.tournament.category.sport.slug,null==(n=e.tournament.uniqueTournament)?void 0:n.id,t)},d=e=>a(e,(0,r.d4)(s.a5)),c=e=>a(e,(0,r.d4)(s.Zj)),u=()=>(0,r.d4)(s.a5),h=e=>{let t=(0,r.d4)(s.eD),n=(0,r.d4)(s.Np);if(e)return null==t?void 0:t.find(t=>{var o;return(null==(o=t.featuredUniqueTournament)?void 0:o.id)===e&&t.provider.id===(null==n?void 0:n[e])})}},74664:(e,t,n)=>{n.d(t,{A:()=>l,o:()=>s});var o=n(46787),i=n(55729);let r=(0,i.createContext)(o.QCR.Football),l=r,s=()=>{let e=(0,i.useContext)(r);if(!e)throw Error("useSport must be used within SportContext component");return e}},81162:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(95700);function i(e,t,n){let i=(0,o.A)(n);if(!(e&&t))return;let r=e[t];if("number"==typeof r)return i&&[1,2].includes(r)?1===r?2:1:r}},95700:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(55729),i=n(494),r=n(18970),l=n(90808);function s(e){var t;let n=(0,o.useContext)(r.y$),s=e||n.event,a=(0,i.d4)(l.xl);return(null==s||null==(t=s.tournament.uniqueTournament)?void 0:t.displayInverseHomeAwayTeams)&&a}}}]);