!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]="bd3c88fc-3d89-4323-972f-87cc767dbdf6",e._sentryDebugIdIdentifier="sentry-dbid-bd3c88fc-3d89-4323-972f-87cc767dbdf6")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1043],{10292:(e,t,r)=>{r.d(t,{t:()=>s.t});var s=r(91407)},35490:(e,t,r)=>{r.d(t,{Bd:()=>eV,Or:()=>eB,SR:()=>ef.SR});var s=r(6029),i=r(41249),a=r(55729),d=r(90248),l=r(33752),n=r(14861),o=r(4967),u=r(21377),p=r(494),c=r(45860);let f={BR:{providerSlug:"bet365",featuredOddsType:"default",betSlipLink:"https://www.bet365.com/dl/sportsbookredirect/?affiliate=365_842810&bs={parent.fid}-{sourceId}~{fractionalValue}~10&bet=1"},DE:{providerSlug:"bet365",featuredOddsType:"default",betSlipLink:"https://www.bet365.de/dl/sportsbookredirect/?affiliate=365_01060901&bs={parent.fid}-{sourceId}~{fractionalValue}~10&bet=1"},MX:{providerSlug:"bet365",featuredOddsType:"default",betSlipLink:"https://www.bet365.com/dl/sportsbookredirect/?affiliate=365_842842&bs={parent.fid}-{sourceId}~{fractionalValue}~10&bet=1"},CA:{providerSlug:"bet365",featuredOddsType:"default",betSlipLink:"https://www.bet365.com/dl/sportsbookredirect/?affiliate=365_842867&bs={parent.fid}-{sourceId}~{fractionalValue}~10&bet=1"},AT:{providerSlug:"bet365",featuredOddsType:"default",betSlipLink:"https://www.bet365.com/dl/sportsbookredirect/?affiliate=365_842832&bs={parent.fid}-{sourceId}~{fractionalValue}~10&bet=1"},PE:{providerSlug:"bet365",featuredOddsType:"default",betSlipLink:"https://www.bet365.com/dl/sportsbookredirect/?affiliate=365_842841&bs={parent.fid}-{sourceId}~{fractionalValue}~10&bet=1"},SE:{providerSlug:"bet365",featuredOddsType:"default",betSlipLink:"https://www.bet365.com/dl/sportsbookredirect/?affiliate=365_842845&bs={parent.fid}-{sourceId}~{fractionalValue}~10&bet=1"},RS:{providerSlug:"mozzart-serbia",featuredOddsType:"default",betSlipLink:"https://www.mozzartbet.com/sr#/live/sport/all?utm_source=sofascore&utm_campaign=sofascore_kvote&utm_term=livebet"},CY:{providerSlug:"bet365",featuredOddsType:"default",betSlipLink:"https://www.bet365.com/dl/sportsbookredirect/?affiliate=365_842844&bs={parent.fid}-{sourceId}~{fractionalValue}~10&bet=1"},ES:{providerSlug:"bet365",featuredOddsType:"default",betSlipLink:"https://www.bet365.com/dl/sportsbookredirect/?affiliate=365_842815"},BY:{providerSlug:"betera-belarus",featuredOddsType:"default",betSlipLink:"https://pm.by/ru/popup/registration?promocode=s1gz1696230995&utm_campaign=pf_prod40100&utm_term=general_prod40100_freebet40casino100&t_group=media&utm_medium=cpc&utm_source=media_sofascore&utm_content=logo"},ZA:{providerSlug:"easy-bet-south-africa",featuredOddsType:"default",betSlipLink:"https://easybet.co.za/sports/football?btag=3124284"},AU:{providerSlug:"bet365",featuredOddsType:"default",betSlipLink:"https://www.bet365.com/dl/sportsbookredirect/?affiliate=365_842853&bs={parent.fid}-{sourceId}~{fractionalValue}~10&bet=1"},DK:{providerSlug:"bet365",featuredOddsType:"default",betSlipLink:"https://www.bet365.com/dl/sportsbookredirect/?affiliate=365_842848&bs={parent.fid}-{sourceId}~{fractionalValue}~10&bet=1"},MT:{providerSlug:"bet365",featuredOddsType:"default",betSlipLink:"https://www.bet365.com/dl/sportsbookredirect/?affiliate=365_842871&bs={parent.fid}-{sourceId}~{fractionalValue}~10&bet=1"},BA:{providerSlug:"mozzart-rs",featuredOddsType:"default",betSlipLink:"https://www.mozzartbet.ba/bs?utm_source=sofascore&utm_campaign=sofascore_kvote&utm_term=livebet#/live/sport/all"},CI:{providerSlug:"888-starz-ivory-coast",featuredOddsType:"default",betSlipLink:"https://bonuspack.fun/L?tag=d_2670317m_63543c_ODD_SS&site=2670317&ad=63543&utm_source=sofa&utm_medium=odds&utm_campaign=2"},EG:{providerSlug:"888-starz-egypt",featuredOddsType:"default",betSlipLink:"https://bonusme.fun/L?tag=d_3448718m_63543c_mar777_sofa_eg_odd_all_none_reg&site=3448718&ad=63543"},HR:{providerSlug:"cro-bet-api",featuredOddsType:"default",betSlipLink:"https://www.lutrija.hr{slipContent}"},FR:{providerSlug:"unibet-france-3",featuredOddsType:"default",betSlipLink:"https://go.onelink.me/2uCI/sofaeuroodds"},UZ:{providerSlug:"888-starz-uzbekistan",featuredOddsType:"default",betSlipLink:"https://bonusme.fun/L?tag=d_3448718m_63543c_mar777_sofa_uz_odd_all_none_reg&site=3448718&ad=63543"},KZ:{providerSlug:"888-starz-kazakhstan",featuredOddsType:"default",betSlipLink:"https://bonusme.fun/L?tag=d_3448718m_63543c_mar777_sofa_kz_odd_all_none_reg&site=3448718&ad=63543"},PL:{providerSlug:"betclic-poland",featuredOddsType:"default",betSlipLink:"https://wlbetclic.adsrv.eacdn.com/C.ashx?btag=a_30951b_18341c_&affid=18606&siteid=30951&adid=18341&c=odds"},NL:{providerSlug:"toto-sports",featuredOddsType:"default",betSlipLink:"https://sport.toto.nl/p/wedden-op-ek-2024?utm_source=tot-sb-wv-refinery-pr-directe-deal-sofascore-odd-integratie&utm_medium=bac&utm_campaign=tot-sb-wv&utm_content=toto-sofascore-refinery-odd-integratie&utm_id=google_cm_397075075"},SG:{providerSlug:"b9casino-singapore",featuredOddsType:"asian",betSlipLink:"https://www.b9affiliate.com/jGnc9V4n"},VN:{providerSlug:"wtgbet-vietnam",featuredOddsType:"asian",betSlipLink:"https://wtgbet.cc/?a=x&c=85705555"},PT:[{providerSlug:"bwin-portugal",featuredOddsType:"default",betSlipLink:"https://mediaserver.entainpartners.com/renderBanner.do?zoneId=2140267",weight:.5},{providerSlug:"lebullpt-portugal",featuredOddsType:"default",betSlipLink:"https://www.lebull.pt/?partner=p70259p70590p7ddf#registration",weight:.5}],NG:{providerSlug:"22bet",featuredOddsType:"default",betSlipLink:"https://welcome.toptrendyinc.com/redirect.aspx?pid=81460&bid=1488&lpid=115"},GH:{providerSlug:"vbet-ghana-api",featuredOddsType:"default",betSlipLink:"https://track.vbet.com/630f69b80f1151000150a6eb"},NZ:{providerSlug:"bet365",featuredOddsType:"default",betSlipLink:"https://www.bet365.com/olp/open-account?affiliate=365_01301314"},MY:{providerSlug:"b9casino-malaysia",featuredOddsType:"asian",betSlipLink:"https://www.b9myr2.com/r/sofa1"},KH:{providerSlug:"b9casino-cambodia",featuredOddsType:"asian",betSlipLink:"https://www.b9khr.com/r/sofa1"},IE:{providerSlug:"boyle-sports",featuredOddsType:"default",betSlipLink:"https://ads.boylesports.com/redirect.aspx?pid=47830&bid=5745"},BJ:{providerSlug:"1xbet-benin",featuredOddsType:"default",betSlipLink:"http://affpa.top/L?tag=d_798081m_16305c_Euro2024__[]general[]_d41963_l37359_odds&site=798081&ad=16305&r=registration/"},BF:{providerSlug:"1xbet-burkina-faso",featuredOddsType:"default",betSlipLink:"http://affpa.top/L?tag=d_798083m_16307c_Euro2024__[]general[]_d41963_l37360_odds&site=798083&ad=16307&r=registration/"},BI:{providerSlug:"1xbet-burundi",featuredOddsType:"default",betSlipLink:"http://affpa.top/L?tag=d_798085m_19543c_Euro2024__[]general[]_d41963_l37361_odds&site=798085&ad=19543&r=registration/"},CF:{providerSlug:"1xbet-central-african-republic",featuredOddsType:"default",betSlipLink:"https://affpa.top/L?tag=d_1329931m_44075c_Euro2024__[]general[]_d41963_l62762_odds&site=1329931&ad=44075&r=registration/"},CG:{providerSlug:"1xbet-congo-brazzaville",featuredOddsType:"default",betSlipLink:"http://affpa.top/L?tag=d_798091m_28715c_Euro2024__[]general[]_d41963_l37364_odds&site=798091&ad=28715&r=registration/"},ET:{providerSlug:"1xbet-ethiopia",featuredOddsType:"default",betSlipLink:"https://affpa.top/L?tag=d_3025955m_22391c_Euro2024__[]general[]_d41963_l128593_odds&site=3025955&ad=22391&r=registration/"},GA:{providerSlug:"1xbet-gabon",featuredOddsType:"default",betSlipLink:"https://affpa.top/L?tag=d_1102929m_22633c_Euro2024__[]general[]_d41963_l52652_odds&site=1102929&ad=22633&r=registration/"},GM:{providerSlug:"1xbet-gambia",featuredOddsType:"default",betSlipLink:"https://affpa.top/L?tag=d_3028979m_45441c_Euro2024__[]general[]_d41963_l128598_odds&site=3028979&ad=45441&r=registration/"},GN:{providerSlug:"1xbet-guinea",featuredOddsType:"default",betSlipLink:"http://affpa.top/L?tag=d_798099m_22637c_Euro2024__[]general[]_d41963_l37368_odds&site=798099&ad=22637&r=registration/"},LR:{providerSlug:"1xbet-liberia",featuredOddsType:"default",betSlipLink:"https://affpa.top/L?tag=d_1989677m_53441c_Euro2024__[]general[]_d41963_l89623_odds&site=1989677&ad=53441&r=registration/"},ML:{providerSlug:"1xbet-mali",featuredOddsType:"default",betSlipLink:"https://affpa.top/L?tag=d_1989707m_21103c_Euro2024__[]general[]_d41963_l89631_odds&site=1989707&ad=21103&r=registration/"},MZ:{providerSlug:"1xbet-mozambique",featuredOddsType:"default",betSlipLink:"https://affpa.top/L?tag=d_1329941m_19545c_Euro2024__[]general[]_d41963_l62769_odds&site=1329941&ad=19545&r=registration/"},MG:{providerSlug:"1xbet-madagascar",featuredOddsType:"default",betSlipLink:"https://affpa.top/L?tag=d_1989645m_45389c_Euro2024__[]general[]_d41963_l89614_odds&site=1989645&ad=45389&r=registration/"},NE:{providerSlug:"1xbet-niger",featuredOddsType:"default",betSlipLink:"http://affpa.top/L?tag=d_798123m_22635c_Euro2024__[]general[]_d41963_l37375_odds&site=798123&ad=22635&r=registration/"},SN:{providerSlug:"1xbet-senegal",featuredOddsType:"default",betSlipLink:"http://affpa.top/L?tag=d_798127m_14241c_Euro2024__[]general[]_d41963_l37377_odds&site=798127&ad=14241&r=registration/"},SL:{providerSlug:"1xbet-sierra-leone",featuredOddsType:"default",betSlipLink:"http://affpa.top/L?tag=d_938783m_39469c_Euro2024__[]general[]_d41963_l43850_odds&site=938783&ad=39469&r=registration/"},TG:{providerSlug:"1xbet-togo",featuredOddsType:"default",betSlipLink:"https://affpa.top/L?tag=d_1102937m_23801c_Euro2024__[]general[]_d41963_l52654_odds&site=1102937&ad=23801&r=registration/"},ZM:{providerSlug:"1xbet-zambia",featuredOddsType:"default",betSlipLink:"https://affpa.top/L?tag=d_1330207m_19547c_Euro2024__[]general[]_d41963_l62772_odds&site=1330207&ad=19547&r=registration/"},TZ:{providerSlug:"betway-tanzania",featuredOddsType:"default",betSlipLink:"https://www.betway.co.tz/?btag=P104930-PR26813-CM90823-TS2008992&"},FI:{providerSlug:"leo-vegas-finland",featuredOddsType:"default",betSlipLink:"https://ntrfr.leovegas.com/redirect.aspx?pid=3779381&bid=13309&redirecturl=https://www.leovegas.com/en-fi/betting#featured"},TR:{providerSlug:"nesine-turkey",featuredOddsType:"default",betSlipLink:"https://www.nesine.com/"},CO:{providerSlug:"betsson-colombia",featuredOddsType:"default",betSlipLink:"https://record.betsson.co/_vPJLaXtWS8tjf6H7zA8qkGNd7ZgqdRLk/1/"},BE:{providerSlug:"napoleon-belgium",featuredOddsType:"default",betSlipLink:"https://napoleonsports.be?utm_source=sofascore&utm_medium=display&utm_campaign=dis-bet-acq-int-odds-dis-all-ngbe"}};var m=r(10794),g=r(19168);let h=(0,a.createContext)(void 0),x=(e,t)=>{var r;return(null==(r=e.match("{.+}"))?void 0:r.length)?t:e},b=e=>{let{children:t}=e,r=f[(0,p.d4)(m.LQ)||""],[i,d]=(0,a.useState)(void 0),[l,n]=(0,g.yR)("EURO_COPA_PROVIDER",void 0),o=l||i;(0,a.useEffect)(()=>{if(r&&!o)if(Array.isArray(r)){let e=Math.random(),t=0;for(let s of r)if(e<=(t+=s.weight)){n(s);break}}else d(r)},[r,o]);let{data:b}=(0,c.Ay)(o?u.npy.providerBySlug(o.providerSlug):null),v=o&&(null==b?void 0:b.oddsProvider)?{featuredOddsType:o.featuredOddsType,defaultBetSlipLink:x(o.betSlipLink,b.oddsProvider.defaultBetSlipLink),provider:b.oddsProvider,branded:!0,weight:100,betSlipLink:o.betSlipLink,impressionCostEncrypted:""}:void 0;if(o&&(null==b?void 0:b.oddsProvider)){var _,j,y,S;let e=b.oddsProvider;return(0,s.jsx)(h.Provider,{value:{...o,id:e.id,oddsFromId:null!=(S=null==(_=e.oddsFrom)?void 0:_.id)?S:e.id,liveOddsFromId:(null==(j=e.liveOddsFrom)?void 0:j.id)||(null==(y=e.oddsFrom)?void 0:y.id)||e.id,cop:v},children:t})}return(0,s.jsx)(h.Provider,{value:void 0,children:t})},v=()=>(0,a.useContext)(h);var _=r(76410);let j=60*o.Z2,y=(e,t)=>{let[r,s]=(0,a.useState)({}),[i,d]=(0,a.useState)({}),[l,n]=(0,a.useState)(Math.random()),o=v(),u=!!t&&!!r[t];return(0,a.useEffect)(()=>{if(!t||!u||!(null==o?void 0:o.providerSlug))return;let e=Date.now();if(i[t]){let r=e-i[t];if(rn(Math.random()),r);return()=>clearTimeout(e)}}let r=()=>{(0,_.Zb)({provider:o.providerSlug,value:o.impressionCost||0})};d({...i,[t]:new Date().getTime()}),r();let s=setInterval(()=>r(),j);return()=>clearInterval(s)},[u,o,t,l]),{hasSelectedDayOdds:u,setHasSelectedDayOdds:e=>{s(r=>t?{...r,[t]:e}:r)},resetOddsTracking:()=>{s({}),d({})}}};var S=r(22409),w=r(77988),T=r(19944),k=r(12047),L=r(54409),O=r(33144),E=r(90510),z=r(62859),I=r(84719),C=r(65078),A=r(8973),D=r(8703),P=r(31253),Y=r(75791),F=r(41618),V=r(62213),H=r(49821),B=r(4236),R=r(28600);let U=["DE","NL","PT"];function N(e){let{choice:t,isLive:r,betSlipLink:a,branded:d,onClick:l,...n}=e,o=a&&d;return(0,s.jsxs)(i.so,{as:o?"a":"div",target:o?"_blank":void 0,rel:o?"nofollow noopener noreferrer":void 0,href:o?a:void 0,hoverBg:o?"onSurface.nLv4":void 0,onClick:e=>{e.stopPropagation(),null==l||l()},h:"20px",gap:"xxs",px:"sm",justify:"center",align:"center",grow:1,bg:"surface.s2",br:"xs",overflow:"hidden",...n,children:[(0,s.jsx)(i.EY,{as:"div",minW:"16px",font:"assistive.micro",color:"onSurface.nLv3",align:"center",ellipsis:!0,children:(0,s.jsx)(R.G,{id:t.name})}),(0,s.jsxs)(i.so,{minW:"32px",justify:"center",align:"center",children:[(0,s.jsx)(i.az,{mt:1===t.change?"1px":0,children:(0,s.jsx)(P.A,{change:t.change})}),(0,s.jsx)(i.EY,{as:"div",font:"assistive.micro",color:r?"sofaSingles.value":"onSurface.nLv1",children:(0,s.jsx)(Y.c,{fractionalValue:t.fractionalValue})})]})]})}let q=e=>{var t;let{provider:r,setHasSelectedDayOdds:l,...n}=e,{event:o}=(0,a.useContext)(z.y$),p=o.status.type===u.XUj.InProgress?r.liveOddsFromId:r.oddsFromId,{data:f,isLoading:m}=(0,c.Ay)(p?u.bnp.featuredOdds(o.id,p):null,(0,D.rf)(o));if((0,a.useEffect)(()=>{(null==f?void 0:f.featured)&&l(!0)},[null==f?void 0:f.featured]),m)return null;let g=null==f||null==(t=f.featured)?void 0:t[r.featuredOddsType];if(!g)return null;let h=e=>(0,_.Sj)({position:e,provider:r.providerSlug});return(0,s.jsxs)(i.az,{...n,children:[(0,s.jsxs)(i.so,{gap:"lg",children:[(0,s.jsxs)(i.so,{gap:"sm",grow:1,overflow:"hidden",children:[g.choiceGroup&&2===g.structureType&&2===g.choices.length&&(0,s.jsx)(i.so,{px:"sm",justify:"center",align:"center",grow:1,overflow:"hidden",maxW:"25%",children:(0,s.jsx)(i.EY,{font:"assistive.micro",color:"onSurface.nLv3",align:"center",ellipsis:!0,children:g.choiceGroup})}),g.choices.map(e=>{var t;return(0,s.jsx)(N,{choice:e,isLive:g.isLive,betSlipLink:r.cop&&(0,B.Iz)(e,g,r.cop),branded:null==(t=r.cop)?void 0:t.branded,onClick:()=>h(H.ki.OddsValue)},e.name)})]}),(0,s.jsx)(i.az,{h:"20px",w:"64px",children:(0,s.jsx)(F.r,{size:"64x20",selectedProvider:r.cop,onClick:()=>h(H.ki.ProviderLogo),logClick:!1})})]}),(0,s.jsxs)(i.az,{mt:"sm",h:"12px",children:[(0,s.jsx)(i.EY,{font:"assistive.micro",verticalAlign:"top",children:(0,s.jsx)(R.f,{id:g.marketName})}),g.isLive&&(0,s.jsx)(i.EY,{font:"assistive.micro",color:"sofaSingles.value",mx:"xs",verticalAlign:"top",children:(0,s.jsx)(d.A,{id:"live"})})]})]})},G=e=>{let{event:t}=(0,a.useContext)(z.y$),r=(0,p.d4)(m.LQ),i=(0,p.d4)(m.dg);return r&&U.includes(r)&&t.status.type===u.XUj.InProgress||r&&V.ZN.includes(r)&&!i||t.homeTeam.disabled||t.awayTeam.disabled?null:(0,s.jsx)(q,{...e})};var M=r(39969),W=r(70591),Z=r(47530),K=r(87763),X=r(94604);let $=()=>{let{event:e,leftTeam:t,rightTeam:r}=(0,a.useContext)(z.y$);return(0,s.jsxs)(i.so,{h:40,justify:"space-between",align:"center",children:[(0,s.jsxs)(i.EY,{as:"div",font:"body.small",color:"onSurface.nLv3",ellipsis:!0,children:[e.tournament.isGroup&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Z.__,{name:e.tournament.groupName||e.tournament.name}),",\xa0"]}),(0,s.jsx)(Z.DT,{round:e.roundInfo})]}),(0,s.jsx)(M.h,{id:e.id,type:A.b.Event,location:A.y.Header,tournament:e.tournament,leftTeam:t,rightTeam:r})]})},Q=e=>{let{event:t}=e;return(0,s.jsx)(i.so,{justify:"center",align:"center",children:(0,s.jsx)(i.az,{bg:"error.default",px:"sm",br:"sm",h:"16px",mb:"sm",children:(0,s.jsx)(i.EY,{as:"div",color:"surface.s1",font:"assistive.default",letterSpacing:"-0.1px",lineHeight:"16px",children:(0,s.jsx)(K.fP,{id:t.status.description})})})})},J=()=>{let{event:e,leftTeam:t,rightTeam:r}=(0,a.useContext)(z.y$),d=e.status.type===u.XUj.NotStarted||(0,g.sw)(e);return(0,s.jsxs)(i.so,{justify:"space-between",children:[(0,s.jsxs)(i.so,{gap:"lg",basis:0,grow:1,align:"center",justify:"flex-end",overflow:"hidden",children:[(0,s.jsx)(i.EY,{as:"div",font:"display.micro",ellipsis:!0,children:(0,s.jsx)(X.Rm,{team:t})}),(0,s.jsx)(i.az,{h:32,w:32,children:(0,s.jsx)(O.p,{id:t.id,name:t.name,size:32})})]}),(0,s.jsxs)(i.so,{maxW:"100px",minW:"fit-content",px:"lg",basis:0,grow:1,overflow:"hidden",justify:"center",align:"center",children:[!d&&(0,s.jsx)(I.A,{primaryTextProps:{font:"display.medium"},secondaryTextProps:{fontSize:"micro",lineHeight:"12px",fontWeight:"medium"},shortStatus:!0}),d&&(0,s.jsx)(i.EY,{as:"div",align:"center",font:"body.medium",color:"onSurface.nLv3",children:(0,s.jsx)(E.ib,{value:1e3*e.startTimestamp})})]}),(0,s.jsxs)(i.so,{gap:"lg",basis:0,grow:1,align:"center",overflow:"hidden",children:[(0,s.jsx)(i.az,{h:32,w:32,children:(0,s.jsx)(O.p,{id:r.id,name:r.name,size:32})}),(0,s.jsx)(i.EY,{as:"div",font:"display.micro",ellipsis:!0,children:(0,s.jsx)(X.Rm,{team:r})})]})]})},ee=e=>{let{event:t,setHasSelectedDayOdds:r,...a}=e,{event:d,...l}=(0,C.mJ)(t.id,{event:t,shouldRefresh:!0}),n=v(),o=d||t,u=(0,g.sw)(o);return(0,s.jsx)(z.y$.Provider,{value:{event:o,...l,location:z.cb.SpecialEventWidget},children:(0,s.jsxs)(i.az,{minH:96,px:"lg",pb:"lg",...a,children:[(0,s.jsx)($,{}),(0,s.jsxs)(W.tj,{event:o,children:[u&&(0,s.jsx)(Q,{event:o}),(0,s.jsx)(J,{})]}),n&&(0,s.jsx)(G,{provider:n,mt:"lg",setHasSelectedDayOdds:r})]})})};var et=r(75436),er=r(28132);let es=(e,t,r,s)=>{let i=(null==t?void 0:t.count)||s;if(e&&i)return i*(96+40*!!r)+8*(i-1)},ei=e=>{let{day:t,events:r,isLoading:a,uniqueTournament:l,seasonId:n,setHasSelectedDayOdds:o}=e,u=v();if(!a&&0===r.length)return null;let p=es(a,t,u,1);return(0,s.jsxs)(i.az,{w:"100%",bg:"surface.s0",px:"sm",pt:"sm",pb:"lg",children:[(0,s.jsx)(i.az,{h:p,children:r.sort((e,t)=>e.startTimestamp-t.startTimestamp).map((e,t)=>(0,s.jsx)(ee,{event:e,bg:"surface.s1",mt:t>0?"sm":0,elevation:1,br:"md",setHasSelectedDayOdds:o},e.id))}),(0,s.jsx)(et.S,{uniqueTournament:l,seasonId:n,tab:er.H.Matches,children:(0,s.jsxs)(i.so,{h:"56px",br:"md",bg:"surface.s1",mt:"sm",justify:"center",align:"center",gap:"xs",children:[(0,s.jsx)(i.EY,{as:"div",font:"display.small",color:"primary.default",children:(0,s.jsx)(d.A,{id:"see_all_matches_button"})}),(0,s.jsx)(L.CCT,{fill:"primary.default"})]})})]})};var ea=r(10778),ed=r(21501);let el="featured-calendar",en=e=>{let{dateString:t,isSelected:r,onClick:a}=e,[l,n]=(0,ed.c9)([]);(0,i.rF)(l,el,[r],()=>!!r);let u=new Date(t);return(0,s.jsxs)(i.az,{ref:n,h:"48px",minW:"48px",bg:"surface.s1",onClick:r?void 0:a,cursor:r?void 0:"pointer",borderBottom:"2px solid ".concat(r?"primary.default":"transparent"),style:{userSelect:"none"},shrink:0,pt:"xs",py:"xs",children:[(0,s.jsx)(i.EY,{as:"div",font:"assistive.micro",align:"center",whiteSpace:"nowrap",color:r?"primary.default":"onSurface.nLv3",mt:"xs",children:(0,o.cK)(u)?(0,s.jsx)(d.A,{id:"today"}):(0,s.jsx)(E.XU,{value:u,weekday:"short"})}),(0,s.jsx)(i.EY,{as:"div",color:"onSurface.nLv1",font:"display.micro",align:"center",whiteSpace:"nowrap",mt:"xxs",children:(0,s.jsx)(E.XU,{value:u,day:"numeric",month:"short"})})]})},eo=e=>{let{selectedDate:t,setSelectedDate:r,dates:a}=e;return(0,s.jsx)(i.tR,{buttonBehavior:i.oK.ButtonBehavior.Hidden,scrollableContainerId:el,children:(0,s.jsx)(i.so,{bg:"surface.s1",minW:"fit-content",h:"48px",justify:"space-between",children:a.length>0&&a.map(e=>(0,s.jsx)(en,{dateString:e.date,isSelected:(null==t?void 0:t.date)===e.date,onClick:()=>r(e)},e.date))})})};var eu=r(59721),ep=r(947),ec=r(46009),ef=r(79368),em=r(19370),eg=r(98449),eh=r(41248),ex=r(3167);let eb=e=>{let{value:t,messageId:r,...a}=e;return(0,s.jsxs)(i.az,{w:"25%",...a,children:[(0,s.jsx)(i.EY,{as:"div",font:"assistive.micro",color:"onColor.secondary",align:"center",ellipsis:!0,textTransform:"uppercase",children:(0,s.jsx)(d.A,{id:r})}),(0,s.jsx)(i.EY,{mt:"xxs",as:"div",font:"display.medium",color:"onColor.primary",align:"center",children:t})]})},ev=()=>(0,s.jsx)(i.az,{h:"32px",w:"1px",backgroundColor:"onColor.secondary"}),e_=e=>{let{now:t,start:r}=e,{days:a,hours:d,minutes:l,seconds:n}=(0,o.DU)(t,r);return(0,s.jsxs)(i.so,{w:"100%",justify:"space-between",bg:"onColor.highlight.nLv2",h:"42px",br:"sm",px:"sm",py:"xs",mt:"sm",children:[(0,s.jsx)(eb,{value:a,messageId:"days"}),(0,s.jsx)(ev,{}),(0,s.jsx)(eb,{value:d,messageId:"hours"}),(0,s.jsx)(ev,{}),(0,s.jsx)(eb,{value:l,messageId:"minutes"}),(0,s.jsx)(ev,{}),(0,s.jsx)(eb,{value:n,messageId:"seconds_left"})]})},ej=e=>{let{uniqueTournament:t}=e,[r,i]=(0,a.useState)(new Date().getTime());if((0,a.useEffect)(()=>{let e=setInterval(()=>i(new Date().getTime()),1e3);return()=>clearInterval(e)},[]),!t.startDateTimestamp)return null;let d=1e3*t.startDateTimestamp;return d>=r?(0,s.jsx)(e_,{now:r,start:d}):(0,s.jsx)(ex.G,{c:"onColor.primary",bg:"onColor.highlight.nLv1",mt:"lg",datesProps:{mt:"xs"},start:t.startDateTimestamp,end:t.endDateTimestamp})};var ey=r(52695);let eS=()=>(0,s.jsx)(i.az,{bg:"onColor.highlight.nLv1",h:32,w:32,p:"xs",br:"sm",children:(0,s.jsx)(L.CCT,{w:24,h:24,fill:"onColor.primary"})}),ew=e=>{let{uniqueTournament:t,featuredType:r,linkWithArrow:a,...d}=e;return(0,s.jsx)(eh.W,{h:122,tournament:r,...d,children:(0,s.jsx)(i.az,{h:122,px:"lg",pt:"lg",children:t&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(i.so,{h:48,gap:"16px",align:"center",children:[(0,s.jsx)(i.az,{w:48,h:48,children:(0,s.jsx)(eu.e,{id:t.id,name:t.name,size:48})}),(0,s.jsxs)(i.az,{overflow:"hidden",grow:1,children:[(0,s.jsx)(i.EY,{as:"div",font:"display.large",color:"onColor.primary",ellipsis:!0,children:(0,s.jsx)(ey.O,{uniqueTournament:t})}),t.category.alpha2&&(0,s.jsx)(i.EY,{as:"div",font:"body.medium",color:"onColor.primary",ellipsis:!0,mt:"xs",children:(0,s.jsx)(eg.m,{name:t.category.name,slug:t.category.slug,uniqueTournament:t})})]}),a?(0,s.jsx)(W.tQ,{tournament:t,children:(0,s.jsx)(eS,{})}):(0,s.jsx)(eS,{})]}),t.startDateTimestamp&&(0,s.jsx)(ej,{uniqueTournament:t})]})})})},eT=e=>{let{tournament:t,onClick:r}=e,a=(0,ep.A)();return(0,s.jsxs)(i.az,{h:"48px",px:"sm",bg:"primary.variant",position:"relative",children:[(0,s.jsx)(i.so,{mx:"40px",w:"24px",h:"8px",style:{transform:"rotate(180deg)"},children:(0,s.jsx)(L.c3I,{fill:"surface.s1"})}),(0,s.jsxs)(i.so,{h:"32px",bg:"surface.s1",align:"center",justify:"space-between",br:"sm",px:"xs",cursor:"pointer",onClick:r,children:[(0,s.jsx)(i.EY,{as:"div",font:"body.medium",children:(0,s.jsx)(d.A,{id:"tournament_swap_info_bubble",values:{tournamentName:a.formatMessage({id:t.msgKey})}})}),(0,s.jsxs)(i.so,{align:"center",gap:"xxs",children:[(0,s.jsx)(i.EY,{as:"div",color:"primary.default",children:(0,s.jsx)(d.A,{id:"ok_got_it_button"})}),(0,s.jsx)(i.az,{h:16,w:16,children:(0,s.jsx)(L.zQC,{icon:"close",h:16,w:16,fill:"primary.default"})})]})]})]})},ek=e=>{let{featuredType:t,uniqueTournament:r}=e,{setSelectedTournamentId:a,newTournaments:l,allTournaments:n,addIgnoredTournament:o}=(0,ef.LS)(),p=(0,ed.hX)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(i.so,{align:"center",h:48,bg:"primary.variant",py:"xs",px:"lg",w:"100%",justify:"space-between",children:[(0,s.jsxs)(i.az,{zIndex:i.Py.Sticky+1,children:[(0,s.jsx)(i.EY,{as:"div",font:"assistive.default",color:"onColor.secondary",ellipsis:!0,children:(0,s.jsx)(d.A,{id:"selected_tournament"})}),(0,s.jsx)(i.ms,{selectedItem:n.find(e=>e.id===t.id),items:n,button:(0,s.jsx)(i.az,{cursor:"pointer",userSelect:"none"}),selectedElement:(0,s.jsxs)(i.so,{align:"center",children:[(0,s.jsx)(i.EY,{as:"div",font:"headerTitle",color:"onColor.primary",ellipsis:!0,textTransform:"uppercase",children:(0,s.jsx)(d.A,{id:t.msgKey})}),(0,s.jsx)(i.az,{h:24,w:24,children:(0,s.jsx)(L.QFN,{fill:"onColor.primary"})})]}),renderItem:e=>e?(0,s.jsx)(em.A,{slug:e.slug,onClick:()=>{a(e.id),o(e.id)},children:(0,s.jsxs)(i.so,{h:"48px",gap:"sm",align:"center",px:"lg",children:[(0,s.jsx)(i.az,{w:24,h:24,children:(0,s.jsx)(eu.e,{id:e.id,size:24})}),(0,s.jsx)(i.EY,{as:"div",font:"body.medium",color:"onSurface.nLv1",ellipsis:!0,children:(0,s.jsx)(d.A,{id:e.msgKey})})]})}):null,forceMenuBelow:!0,itemWrapperStyles:{padding:0}})]}),r&&(0,s.jsx)(ec.e,{entity:u.bq7.Tournaments,id:r.id,type:A.b.UniqueTournament,location:A.y.Header,isOnOverlay:!0})]}),!p&&l.slice(0,1).map(e=>(0,s.jsx)(eT,{tournament:e,onClick:()=>o(e.id)},e.id))]})},eL=e=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ek,{...e}),(0,s.jsx)(ew,{...e,linkWithArrow:!0})]});var eO=r(86679);let eE=e=>{let{data:t}=(0,c.Ay)(u.tI9.seasonDatesWithEvents(e.seasonId,3600*(0,o.UW)())),{hasCupTree:r}=(0,eO.A)({hasCupTree:{route:u.V3t.cupTrees(e.id,e.seasonId)}},[e.id,e.seasonId]),[s,i]=(0,a.useState)(),d=(null==t?void 0:t.dailySeasonEvents)||[];(0,a.useEffect)(()=>{if(d.length){let e=new Date().getTime(),t=d[0],r=Number.MAX_VALUE;d.forEach(s=>{let i=new Date(s.date),a=Math.abs(e-i.getTime());(0,o.cK)(i)&&(t=s,r=0),a{let{tournament:t,uniqueTournament:r}=e,{setSelectedTournamentId:o,...u}=(0,ef.LS)(),p=(0,k.Ay)({isInMobileTabs:!1,isSportMenuVisible:!1}),{selectedDate:c,setSelectedDate:f,dates:m}=eE(t),{events:g,isLoading:h}=(0,T.Y)(t.id,null==c?void 0:c.date),{hasSelectedDayOdds:x,setHasSelectedDayOdds:b,resetOddsTracking:v}=y(t.id,null==c?void 0:c.date),_=(0,eY.h)(g);return(0,a.useEffect)(()=>{window.scrollTo({left:0,top:0})},[t.id]),(0,s.jsxs)(ef.lU.Provider,{value:{...u,setSelectedTournamentId:e=>{o(e),t.id!==e&&(f(void 0),v())}},children:[(0,s.jsxs)(i.az,{w:"100%",bg:"surface.s1",position:"relative",children:[(0,s.jsx)(eL,{featuredType:t,uniqueTournament:r}),(0,s.jsx)(l.B,{children:(0,s.jsx)(l.B.Item,{children:(0,s.jsx)(d.A,{id:"meta."+t.slug})})}),(0,s.jsx)(i.az,{position:"sticky",top:p,zIndex:i.Py.Sticky,elevation:2,children:(0,s.jsx)(eo,{selectedDate:c,setSelectedDate:f,dates:m})}),(0,s.jsx)(ei,{day:c,events:g,isLoading:h||!c,uniqueTournament:r,seasonId:t.seasonId,setHasSelectedDayOdds:b}),(0,s.jsx)(eP,{uniqueTournamentId:t.id,seasonId:t.seasonId,selectedTournamentId:_})]}),(0,s.jsx)(n.i,{id:"eurocopa.EURO_FEATURED"}),t.historyHighlightsEndYear&&(0,s.jsx)(ea.j,{uniqueTournament:r,tournament:t}),x&&(0,s.jsxs)(i.so,{align:"center",h:96,px:"lg",gap:"sm",bg:"surface.s0",mt:t.historyHighlightsEndYear?0:"lg",children:[(0,s.jsx)(i.az,{h:24,w:24,children:(0,s.jsx)(S.A,{h:24,w:24})}),(0,s.jsx)(w.A,{as:"div",font:"body.smallParagraph",pr:void 0})]}),(0,s.jsx)(i.az,{position:"fixed",bottom:"calc(env(safe-area-inset-bottom) + ".concat(ez.E,"px)"),right:0,left:0,zIndex:i.Py.BottomNavigation,children:(0,s.jsx)(n.i,{id:"eurocopa.EUROCOPA_BOTTOM",borderless:!0})})]})},eV=e=>{let t=e.tournament,{setSelectedTournamentId:r}=(0,ef.LS)();return(0,a.useEffect)(()=>{r(t.id)},[t.id]),(0,s.jsx)(b,{children:(0,s.jsx)(eF,{...e})})},eH=e=>{let{selectedDate:t,tournament:r}=e,{data:a}=(0,c.Ay)(u.V3t.details(r.id)),{data:d}=(0,c.Ay)(u.tI9.seasonDatesWithEvents(r.seasonId,3600*(0,o.UW)())),{events:l,isLoading:n}=(0,T.Y)(r.id,t),p=v(),{hasSelectedDayOdds:f,setHasSelectedDayOdds:m}=y(r.id,t),g=es(n,null==d?void 0:d.dailySeasonEvents.find(e=>e.date===t),p);return(0,s.jsxs)(i.az,{p:"sm",br:"lg",bg:"surface.s1",elevation:2,children:[(0,s.jsx)(et.S,{uniqueTournament:null==a?void 0:a.uniqueTournament,seasonId:r.seasonId,children:(0,s.jsx)(ew,{featuredType:r,uniqueTournament:null==a?void 0:a.uniqueTournament,br:"md",overflow:"hidden",h:130})}),(0,s.jsx)(i.az,{h:g,children:l.sort((e,t)=>e.startTimestamp-t.startTimestamp).map((e,t)=>(0,s.jsx)(ee,{event:e,bg:"surface.s1",px:"sm",borderTop:t>0?"onSurface.nLv4":void 0,mt:0===t?"sm":void 0,setHasSelectedDayOdds:m,pb:f&&t===l.length-1?"xs":"lg"},e.id))}),f&&(0,s.jsx)(i.so,{justify:"flex-end",h:"12px",mb:"sm",children:(0,s.jsx)(w.A,{as:"div",font:"assistive.micro",pr:void 0})})]})},eB=e=>{let{date:t,tournaments:r}=e;return(0,s.jsx)(b,{children:r.map(e=>(0,s.jsx)(eH,{tournament:e,selectedDate:t},e.id))})}},42078:(e,t,r)=>{r.d(t,{d:()=>c});var s=r(6029),i=r(76356),a=r(41249),d=r(55729),l=r(90248),n=r(65789),o=r(62859),u=r(85568),p=r(66757);let c=e=>{var t;let{noSeasonPicker:r,isNarrowLayout:c,branding:f,numberOfRows:m=20}=e,{event:g}=(0,d.useContext)(o.y$),h=null==g||null==(t=g.tournament.uniqueTournament)?void 0:t.hasPerformanceGraphFeature;return(0,s.jsxs)(i.so,{direction:"column",gap:["sm","md"],children:[(0,s.jsxs)(n.Zp,{isInverseDesktop:c,children:[!c&&(0,s.jsx)(u.U,{titleId:"app.standings",branding:f}),(0,s.jsxs)(i.az,{children:[!r&&(0,s.jsx)(i.az,{h:"4xl"}),(0,s.jsx)(a.tU,{variant:"secondary",children:(0,s.jsx)(i.so,{h:"[53px]",p:"sm",justify:"space-between",children:(0,s.jsxs)(i.az,{children:[(0,s.jsx)(a.tU.Tab,{tabKey:1,children:(0,s.jsx)(l.A,{id:"basic.all"})}),(0,s.jsx)(a.tU.Tab,{tabKey:2,children:(0,s.jsx)(l.A,{id:"standings.home"})}),(0,s.jsx)(a.tU.Tab,{tabKey:3,children:(0,s.jsx)(l.A,{id:"away"})})]})})}),(0,s.jsx)(i.az,{h:"2xl"}),(0,s.jsx)(p.e,{rows:m}),(0,s.jsx)(i.az,{h:"[92px]"}),(0,s.jsx)(i.az,{p:"sm",children:(0,s.jsx)(i.az,{h:"4xl",bg:"surface.s2",br:"lg"})})]})]}),h&&(0,s.jsxs)(n.Zp,{children:[(0,s.jsx)(n.Zp.Header,{titleId:"standings_tracker_title"}),(0,s.jsx)(i.az,{h:"[542px]"})]})]})}},42525:(e,t,r)=>{r.d(t,{C:()=>c});var s=r(6029),i=r(95083),a=r(41249),d=r(55729),l=r(90248),n=r(54409),o=r(19168);let u=r(41735).default.input.withConfig({componentId:"sc-42144bfd-0"})(["width:100%;height:32px;padding-right:40px;background-color:",";font:",";color:",";border:1px solid ",";border-radius:",";text-overflow:ellipsis;outline:none;cursor:pointer;transition:box-shadow 200ms,background-color 200ms;:focus{outline:none;background-color:",";box-shadow:0 0 0 3px ",";}"],e=>e.theme.colors.surface.s2,e=>e.theme.typography.font.assistive.default,e=>e.theme.colors.onSurface.nLv3,e=>e.theme.colors.effect.elevation1,e=>e.theme.spacing.sm,e=>e.theme.colors.neutral.highlight,e=>e.theme.colors.neutral.highlight);function p(e){let{embedString:t,onToggle:r,onClick:i}=e;return(0,s.jsxs)(a.az,{position:"relative",mx:[0,"sm"],my:"xs",children:[(0,s.jsx)(u,{id:t,type:"text",readOnly:!0,value:t,onClick:i,onBlur:r}),(0,s.jsx)("label",{htmlFor:t,children:(0,s.jsx)(n.i2C,{width:"24",height:"24",fill:"primary.default",style:{position:"absolute",top:4,right:8,cursor:"pointer"}})})]})}function c(e){let{id:t,callToAction:r,embedString:u,inverted:c,onCallToActionClick:f,...m}=e,[g,h]=(0,d.useState)(!1),[x,b]=(0,d.useState)(!1),{isMobile:v}=(0,i.$c)(),_=(0,d.useCallback)(async e=>{x||(b(!0),setTimeout(()=>{b(!1)},3e3),"writeText"in window.navigator.clipboard?(await window.navigator.clipboard.writeText(u),(0,o.MZ)((0,s.jsxs)(a.so,{align:"center",children:[(0,s.jsx)(n.G_L,{fill:"surface.s1",mr:"lg"}),(0,s.jsx)(a.EY,{block:!0,color:"surface.s1",font:"display.small",children:(0,s.jsx)(l.A,{id:"basic.copiedToClipboard"})})]}))):(e.currentTarget.focus(),e.currentTarget.select()))},[g,u,x]);return(0,d.useEffect)(()=>{h(!1)},[t]),v?null:(0,s.jsx)(a.az,{px:"sm",mt:"sm",...m,children:(0,s.jsxs)(a.az,{cursor:"pointer",bg:[void 0,c?void 0:"surface.s2"],br:"lg",p:[0,"sm"],children:[(0,s.jsxs)(a.so,{justify:"flex-end",align:"center",onClick:()=>{h(!g),null==f||f()},children:[(0,s.jsx)(a.EY,{lineHeight:"16px",color:c?"onColor.primary":"primary.default",p:"sm",font:["assistive.default","display.small"],block:!0,as:"bdi",children:r}),(0,s.jsx)(a.az,{shrink:0,children:g?(0,s.jsx)(n.t8v,{width:"16",height:"16",fill:c?"onColor.primary":"primary.default",ml:"xs"}):(0,s.jsx)(n.QtO,{width:"16",height:"16",fill:c?"onColor.primary":"primary.default",ml:"xs"})})]}),g&&(0,s.jsx)(p,{embedString:u,onClick:_})]})})}},59721:(e,t,r)=>{r.d(t,{e:()=>s.e});var s=r(33480)},66757:(e,t,r)=>{r.d(t,{e:()=>n});var s=r(6029),i=r(18612),a=r(76356),d=r(55729);function l(e){let{rows:t,rowHeight:r}=e;return(0,s.jsx)(i.D,{animate:!0,height:t*r,uniqueKey:"generic-table-cl",children:Array(t).fill(null).map((e,t)=>{let i=t*r;return(0,s.jsxs)(d.Fragment,{children:[(0,s.jsx)("circle",{cx:20,cy:i+r/2,r:12}),(0,s.jsx)("rect",{x:40,y:i+8,width:"calc(100% - 48px)",height:r-16})]},i)})})}function n(e){let{rows:t=12}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.az,{hideBelow:"md",children:(0,s.jsx)(l,{rowHeight:32,rows:t})}),(0,s.jsx)(a.az,{hideFrom:"md",children:(0,s.jsx)(l,{rowHeight:48,rows:t})})]})}},79387:(e,t,r)=>{r.d(t,{C:()=>s.C});var s=r(42525)},85568:(e,t,r)=>{r.d(t,{U:()=>l});var s=r(6029),i=r(95083),a=r(13030),d=r(51372);let l=e=>{let{branding:t,location:r,entityId:l,...n}=e,{isDesktop:o}=(0,i.$c)();return o&&t?(0,s.jsx)(a.A.Header,{...n,variant:"left-aligned",actionComponent:(0,s.jsx)(d.O,{minW:"[140px]",px:"sm",br:"xs",branding:t,location:r,entityId:l})}):(0,s.jsx)(a.A.Header,{...n})}},85685:(e,t,r)=>{r.d(t,{o:()=>a});var s=r(6029),i=r(90248);let a=e=>{let{parsedMoney:t}=e;return t.measure?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.A,{id:"value.".concat(t.measure),values:{value:t.parsedValue}})," ",t.currencySign]}):(0,s.jsxs)(s.Fragment,{children:[t.parsedValue," ",t.currencySign]})}},91407:(e,t,r)=>{r.d(t,{t:()=>l});var s=r(64082),i=r(6029),a=r(21377),d=r(41249);let l=e=>{var{id:t,name:r,size:l=56,style:n,className:o,grayscale:u,isFantasy:p,placeholder:c="/static/images/placeholders/player.svg"}=e,f=(0,s.T)(e,["id","name","size","style","className","grayscale","isFantasy","placeholder"]);let m=f.w||f.width||l,g=f.h||f.height||l;return(0,i.jsx)(d._V,Object.assign({fallback:(0,i.jsx)(d._V,{style:Object.assign({borderRadius:"50%"},n),w:m,h:g,src:c,alt:r}),src:t?a.qvj.image(t,p):"",alt:r,w:m,h:g,br:"50%",border:"onSurface.nLv4",style:n,className:o,isGrayscale:u},f))}}}]);