PageSourceSearch

https://www.goal.com/_next/static/chunks/82003-26e84141fbe4e8f1.js

js goal.com collected 2026-09-24 08:34:20 UTC 194,164 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[82003],{799:()=>{},1300:()=>{},2833:()=>{},6792:()=>{},10326:()=>{},11552:()=>{},16072:()=>{},17332:()=>{},17965:()=>{},22376:()=>{},24329:()=>{},24972:(e,t,a)=>{"use strict";a.d(t,{N:()=>l});var s=a(21414),n=a(10069),r=a.n(n);a(93137);var l=e=>{let{teamAScore:t,teamBScore:a,isLive:n,isResult:l,isSuspended:i,dashSeparator:o,...c}=e;return(0,s.jsxs)("div",{...c,className:r()("fco-match-header-score__container",{"fco-match-header-score__container--live":n,"fco-match-header-score__container--result":l}),children:[(0,s.jsxs)("div",{className:"fco-match-header-score","data-side":"team-a",children:[!o||n||l||i?null:"(",null!=t?t:"-"]}),o?(0,s.jsx)("div",{className:"fco-match-header-score",children:"-"}):null,(0,s.jsxs)("div",{className:"fco-match-header-score","data-side":"team-b",children:[null!=a?a:"-",!o||n||l||i?null:")"]})]})}},28939:()=>{},29080:()=>{},31503:()=>{},33178:()=>{},34806:()=>{},35046:()=>{},35753:()=>{},41057:()=>{},41304:()=>{},47276:(e,t,a)=>{"use strict";a.d(t,{i:()=>l});var s=a(98308);a(3607);var n=a(46128),r=a(21414);a(79037);var l=e=>{let{startDate:t,isToday:a=!1,...l}=e,i=(0,s.o)(),o=(0,n.s)(new Date(t),{day:"numeric",month:"short",year:"numeric"});return(0,r.jsx)("time",{...l,className:"fco-match-header-match-day",dateTime:t,children:a?i("generic.today"):o})}},48213:()=>{},53385:()=>{},54240:()=>{},54309:()=>{},54922:()=>{},55052:(e,t,a)=>{"use strict";a.d(t,{t:()=>S});var s=a(98308),n=a(29144),r=a(99506),l=a(97997),i=a(39520);a(53316);var o=a(22658);a(3607);var c=a(46128),d=a(47276),u=a(24972),m=a(93472),h=a(84869),p=a(21414);a(67418);var f=e=>{let{scorers:t,...a}=e;return(0,p.jsx)("ul",{className:"fco-scorers",...a,children:Object.entries(function(e,t,a){let s=e.reduce((e,a)=>{var s;return{...e,[String(a[t])]:[...null!=(s=e[String(a[t])])?s:[],a]}},{});return Object.keys(s).reduce((e,t)=>({...e,[t]:a(s[t])}),{})}(t,"scorer",e=>e.map(e=>{let{time:t,goalType:a}=e;return{...t,goalType:a}}))).map(e=>{let[t,a]=e;return(0,p.jsx)("li",{children:"".concat(t," (").concat(a.map(e=>{let t=e.extra?"+".concat(e.extra,"'"):"",a=e.goalType?" ".concat(e.goalType):"";return"".concat(e.minute,"'").concat(t).concat(a)}).join(", "),")")},t)})})};a(54922);var g=e=>{let{competitionName:t,...a}=e;return(0,p.jsx)(n.BP,{className:"fco-match-header-competition-name",...a,children:t})},v=a(10069),b=a.n(v);a(41304);var x=e=>{let{score:t}=e;return(0,p.jsx)("span",{className:"fco-match-header__sub-score",children:"".concat(t.teamA,"-").concat(t.teamB)})},_=e=>{let{halfTime:t,fullTime:a,extraTime:n}=e,r=(0,s.o)();return(0,p.jsxs)("div",{className:"fco-match-header__results",children:[t?(0,p.jsxs)("span",{className:"fco-match-header__results-item",children:[r("generic.match.ht"),(0,p.jsx)(x,{score:t})]}):null,a?(0,p.jsxs)("span",{className:"fco-match-header__results-item",children:[r("generic.match.ft"),(0,p.jsx)(x,{score:a})]}):null,n?(0,p.jsxs)("span",{className:"fco-match-header__results-item",children:[r("generic.match.aet"),(0,p.jsx)(x,{score:n})]}):null]})},j=e=>{let{state:t,score:a,agg:n,pen:r,gameday:l}=e,i=(0,s.o)();return(0,p.jsxs)(p.Fragment,{children:[!["CANCELLED","POSTPONED"].includes(t)&&a?(0,p.jsx)(u.N,{teamAScore:a.teamA,teamBScore:a.teamB,isLive:"LIVE"===t,isResult:"RESULT"===t,isSuspended:"SUSPENDED"===t,dashSeparator:l}):null,n?(0,p.jsxs)("div",{className:b()("fco-match-header__score-secondary",{"fco-match-header__score-secondary-gameday":l}),children:[(0,p.jsx)("span",{children:i("generic.match.agg")}),(0,p.jsx)(u.N,{teamAScore:n.teamA,teamBScore:n.teamB,dashSeparator:l})]}):null,r?(0,p.jsxs)("div",{className:b()("fco-match-header__score-secondary",{"fco-match-header__score-secondary-gameday":l}),children:[(0,p.jsx)("span",{children:i("generic.match.pen")}),(0,p.jsx)(u.N,{teamAScore:r.teamA,teamBScore:r.teamB,dashSeparator:l})]}):null]})},w=e=>{let{channel:t}=e,a=(0,s.o)();return(0,p.jsxs)(t.urlLink.wrapperProvider?i.t:"a",{href:t.urlLink.url,target:"_blank",rel:"noopener".concat(t.urlLink.follow?"":" nofollow").concat(t.urlLink.sponsored?" sponsored":""),className:"fco-match-header__tv-channel",children:[t.logo?(0,p.jsx)(o._V,{...t.logo,src:t.logo.url}):null,(0,p.jsxs)("p",{className:"fco-match-header__tv-channel-title",children:[a("component.matchSchedule.liveOn",{param1:""}),t.name]}),(0,p.jsx)(l.I,{glyph:"external-link"})]})},y=e=>{let{children:t,gameday:a,matchHref:r,rel:l,competitionName:u,competitionLogo:v,competitionHref:x,competitionRel:y,competitionTarget:N,startDate:A,isToday:S,state:E,tvChannels:T,sponsor:k,score:C,peri
1od:L,agg:O,pen:D,halfTime:B,fullTime:I,extraTime:F,scorers:P,teamA:V,teamB:M,arena:W}=e,R=(0,s.o)(),H=(0,c.c)(new Date(A),{hour:"numeric",minute:"numeric"}),U=(null==k?void 0:k.wrapperProvider)?i.t:"a";return(0,p.jsxs)("div",{className:"fco-match-header",children:[(0,p.jsxs)(n.Ud,{href:r,rel:l,children:[(0,p.jsxs)("div",{className:b()("fco-match-header__info",{"fco-match-header__info-logo":v}),children:[v?(0,p.jsx)("div",{className:"fco-match-header__info-image",children:(0,p.jsx)(o._V,{alt:"".concat(u," logo"),src:v})}):null,(0,p.jsx)(g,{competitionName:u,href:x,rel:y,target:N}),W?(0,p.jsx)("span",{className:"fco-match-header__arena",children:W}):null,"FIXTURE"!==E&&!a&&(0,p.jsx)(d.i,{startDate:A,isToday:S})]}),(0,p.jsxs)("div",{className:"fco-match-header__grid",children:[(0,p.jsxs)("div",{className:"fco-match-header__grid-team",children:[(0,p.jsx)(m._,{crestPath:V.crestPath,teamName:V.name,teamNameShort:V.nameShort,responsive:!0,wrap:!0,reversed:!0,href:V.href,rel:V.rel}),!!(null==P?void 0:P.teamA.length)&&(0,p.jsx)("div",{className:"fco-match-header__scorers fco-match-header__scorers-left",children:(0,p.jsx)(f,{scorers:P.teamA})})]}),(0,p.jsxs)("div",{className:"fco-match-header__score",children:[(0,p.jsx)(h.t,{state:E,period:L,indicator:a}),"FIXTURE"===E?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(d.i,{startDate:A,isToday:S}),(0,p.jsx)("time",{className:"fco-match-header__time",dateTime:A,children:H})]}):(0,p.jsx)(j,{state:E,score:C,agg:O,pen:D,gameday:a})]}),(0,p.jsxs)("div",{className:"fco-match-header__grid-team",children:[(0,p.jsx)(m._,{crestPath:M.crestPath,teamName:M.name,teamNameShort:M.nameShort,responsive:!0,wrap:!0,href:M.href,rel:M.rel}),!!(null==P?void 0:P.teamB.length)&&(0,p.jsx)("div",{className:"fco-match-header__scorers",children:(0,p.jsx)(f,{scorers:P.teamB})})]})]}),"RESULT"===E&&(B||I||F)?(0,p.jsx)(_,{halfTime:B,fullTime:I,extraTime:F}):null]}),T&&T.length>0?(0,p.jsx)("div",{className:"fco-match-header__tv",children:(0,p.jsx)("div",{className:"fco-match-header__tv-channels",children:T.map((e,t)=>(0,p.jsx)(w,{channel:e},e.logo.id||t))})}):null,k?(0,p.jsxs)("div",{className:"fco-match-header__sponsor",children:[R("generic.sponsoredBy"),(0,p.jsx)(U,{href:k.url,target:"_blank",rel:"noopener".concat(k.follow?"":" nofollow").concat(k.sponsored?" sponsored":""),children:k.logoPath?(0,p.jsx)("div",{className:"fco-match-header__sponsor-image",children:(0,p.jsx)(o._V,{alt:"".concat(k.name," logo"),src:k.logoPath})}):k.name})]}):null,t]})},N=a(73702),A=a(18930);a(17965);var S=e=>{let{matches:t,preMatchVisibilityHours:a}=e,l=(()=>{let{articleBodyTracking:e}=(0,N.useContext)(s.t);return e})(),{ref:i,inView:o}=(0,A.Wx)({threshold:.5,triggerOnce:!0});(0,N.useEffect)(()=>{o&&(null==l?void 0:l.matchRecirculationImpressionCallback)&&(null==l||l.matchRecirculationImpressionCallback(t))},[o]);let c=new Date(Date.now()).getTime();return(0,p.jsx)("div",{ref:i,className:"fco-match-recirculation",children:(a?t.filter(e=>{let t=new Date(e.startDate).getTime();return c>=t-60*a*6e4&&c<=t}):t).map(e=>{var a,s;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(n.BP,{href:e.href,rel:e.rel,className:"fco-match-recirculation-container",onClick:()=>{(null==l?void 0:l.matchRecirculationClickCallback)&&(null==l||l.matchRecirculationClickCallback(t))},children:(0,p.jsx)(y,{...e,period:null,state:"FIXTURE"})},e.id),e.bettingOdds?(0,p.jsx)(r.t,{...e.bettingOdds,placement:"Match Recirculation",matchName:(null==(a=e.teamA)?void 0:a.name)&&(null==(s=e.teamB)?void 0:s.name)?"".concat(e.teamA.name," vs ").concat(e.teamB.name):void 0}):null]})})})}},56524:()=>{},56659:()=>{},58295:()=>{},59845:()=>{},60165:()=>{},62345:()=>{},63677:()=>{},67418:()=>{},73440:(e,t,a)=>{"use strict";a.d(t,{t:()=>u});var s=a(60361),n=a(77648),r=a(96974),l=a(81264);a(3806);var i=a(73702),o=a(21414),c=a(10069);a(60165);var d=e=>{let{message:t,onDismiss:a}=e,s=(0,i.useRef)(null);return(0,i.useEffect)(()=>{var e,t;null==(t=s.current)||null==(e=t.togglePopover)||e.call(t,!0)},[]),(0,o.jsx)("div",{ref:s,popover:"manual",role:"status",className:"fco-share-button__copy-notification",onAnimationEnd:a,children:t})},u=e=>{let{url:t,title:a,children:u,iconGlyph:m,clipboardNotification:h,className:p,...f}=e,g=(0,n.Q)("(max-width: ".concat(parseInt(s.SL["tablet-portrait"])-1,"px)")),[v,b]=(0,i.useState)(!1),x=async()=>
1{if(!v){if(g&&navigator.share)return void await navigator.share({title:null!=a?a:document.title,url:t}).catch(()=>void 0);if(navigator.clipboard){try{await navigator.clipboard.writeText(t)}catch(e){return}h&&b(!0)}}};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(r.S,{className:c("fco-share-button",p),onClick:()=>void x(),...f,children:[m?(0,o.jsx)(l.t,{glyph:m,className:"fco-share-button__icon"}):null,u]}),v&&h?(0,o.jsx)(d,{message:h,onDismiss:()=>b(!1)}):null]})}},74617:()=>{},75161:()=>{},76014:()=>{},76966:()=>{},79037:()=>{},79245:()=>{},80623:()=>{},80665:()=>{},80977:()=>{},81127:()=>{},81193:()=>{},82003:(e,t,a)=>{"use strict";a.d(t,{A:()=>s9,B:()=>sV,C:()=>nb,D:()=>ni,E:()=>nc,G:()=>sO,J:()=>sk,K:()=>sL,N:()=>sQ,O:()=>nt,P:()=>sz,Q:()=>sA,R:()=>sR,S:()=>nx,T:()=>nu,U:()=>sB,V:()=>sP,W:()=>sD,_:()=>nA,b:()=>nj,d:()=>nL,et:()=>s_,f:()=>nC,g:()=>nS,h:()=>nE,it:()=>sp,j:()=>s2,k:()=>s4,l:()=>nD,m:()=>nT,n:()=>nV,nt:()=>sg,o:()=>nF,p:()=>nk,q:()=>sC,r:()=>nP,rt:()=>sf,t:()=>nM,tt:()=>sv,u:()=>nO,w:()=>ng,y:()=>nw});var s=a(98308),n=a(60810),r=a(60073),l=a(73702),i=a(21414),o=a(18930);a(56659);var c=e=>{var t;let{ref:a,inView:s}=(0,o.Wx)({triggerOnce:!0,threshold:.75}),c=(0,l.useRef)(null),d=(null==(t=(0,n.t)())?void 0:t.toLowerCase())||"";(0,l.useEffect)(()=>{if(s){var t;let a=document.createElement("script");a.src="https://abs.checkd-dev.com/ad-script.js",a.async=!0,null==(t=c.current)||t.appendChild(a),(0,r.t)({platform:d,action:"Betting Article ABS impression",label:"".concat(e.src&&new URL(e.src).searchParams.get("bookmaker"))})}},[s,e.src,d]);let{style:u,...m}=e;return(0,i.jsx)("div",{ref:e=>{c.current=e,a(e)},className:"fco-abs-iframe-widget",children:(0,i.jsx)("iframe",{title:"abs-iframe-widget",...m,width:"100%",className:"fco-abs-iframe"})})},d=a(99938),u=a(29043),m=a(79086),h=a(10069),p=a.n(h);a(35046);var f=e=>{var t,a,n;let{id:r,htmlProps:o}=e,c=(0,s.o)(),h=(0,d.t)(),f=(0,u.t)(),g=(0,l.useRef)(null),[v,b]=(0,l.useState)(null==f||null==(t=f.activeCampaignConsent)?void 0:t.enabled);(0,l.useEffect)(()=>{var e;"boolean"==typeof(null==f||null==(e=f.activeCampaignConsent)?void 0:e.enabled)&&b(null==f?void 0:f.activeCampaignConsent.enabled)},[null==f||null==(a=f.activeCampaignConsent)?void 0:a.enabled]);let x=(0,l.useCallback)(()=>{if(g.current){let e=new URL("https://footballco.activehosted.com/f/embed.php");e.searchParams.set("id",r);let t=document.createElement("script");t.src=e.toString(),t.defer=!0,g.current.appendChild(t)}},[r]);return(0,l.useEffect)(()=>{g.current&&h&&v&&!g.current.querySelector("script")&&x()},[x,v,h]),(0,i.jsxs)("div",{...o||{},className:p()("fco-ac-form-embed",null==o?void 0:o.className),ref:g,children:[(0,i.jsx)("div",{className:"_form_".concat(r)}),v?(0,i.jsx)(i.Fragment,{}):(0,i.jsx)(m.t,{isConsented:v||!1,setIsConsented:()=>b(!0),socialMediaConsent:null==f?void 0:f.activeCampaignConsent,socialMediaPurposes:null==(n=f.activeCampaignConsent)?void 0:n.purposeIDs,toggleHeadline:c("component.consentWarning.toggleHeadline"),toggleDescription:c("component.consentWarning.toggleDescription",{param1:c("component.consentWarning.embedHeader.activeCampaign")}),embedHeader:c("component.consentWarning.embedHeader.activeCampaign"),legalText:c("component.consentWarning.legalTextOne",{param1:c("component.consentWarning.embedHeader.activeCampaign")})})]})},g=a(39520);a(53316);var v=a(81264);a(3806);var b=a(98583),x=a(22658);a(74617);var _=e=>{let{name:t,children:a,onClick:s,wrapperProvider:n}=e;return(e=>"object"==typeof e&&!!e&&"type"in e&&"a"===e.type)(a)?(0,i.jsx)("div",{className:"fco-affiliate-button",children:(0,i.jsx)(n?g.t:"a",{href:a.props.href,rel:a.props.rel,target:a.props.target,className:a.props.className,onClick:()=>null==s?void 0:s(t),children:(0,i.jsx)(i.Fragment,{children:a.props.children})})}):null},j=a(82978),w=a(3607),y=a(46152);a(84003);var N=a(17868),A=e=>{var t,a,n;let{elAttrs:r,scriptAttrs:c}=e,{className:h,...f}=null!=r?r:{},{src:g,...v}=null!=c?c:{},b=JSON.stringify(v),x=(0,s.o)(),_=(0,d.t)(),j=(0,u.t)(),w=(0,N.t)(),[y,A]=(0,l.useState)(null==j||null==(t=j.arenaLiveBlogConsent)?void 0:t.enabled),{ref:S,inView:E}=(0,o.Wx)({triggerOnce:!0,rootMargin:"500px"});(0,l.useEffect)(()=>{var e;"boolean"==typeof(null==j||null==(e=j.arenaLiveBlogConsent)?void 0:e.enabled)&&A(null==j?void 0:j.arenaLiveBlogConsent.enabled)},[null==j||null==(a=j.arenaLiveBlogConsent)?void 0:a.enabled]),(0,l.useEffect)(()=>
1{if(!(!1===_||!1===y||!g)&&E&&!document.querySelector('script[src="'.concat(g,'"]'))){let e=document.createElement("script");for(let[t,a]of(e.src=g,e.defer=!0,Object.entries(v)))e.setAttribute(t,a);document.head.appendChild(e)}},[E,y,_,g,b]);let T=(null==j?void 0:j.arenaLiveBlogConsent)&&!1===y;return(null==w?void 0:w.arenaLiveblog)?null:(0,i.jsx)(i.Fragment,{children:T?(0,i.jsx)(m.t,{isConsented:y||!1,setIsConsented:()=>A(!0),socialMediaConsent:null==j?void 0:j.arenaLiveBlogConsent,socialMediaPurposes:null==(n=j.arenaLiveBlogConsent)?void 0:n.purposeIDs,toggleHeadline:x("component.consentWarning.toggleHeadline"),toggleDescription:x("component.consentWarning.toggleDescription",{param1:x("component.consentWarning.embedHeader.arenaLiveblog")}),embedHeader:x("component.consentWarning.embedHeader.arenaLiveblog"),legalText:x("component.consentWarning.legalTextOne",{param1:x("component.consentWarning.embedHeader.arenaLiveblog")})}):(0,i.jsx)("div",{ref:S,className:p()("fco-arena-live-blog-embed",h),...f})})},S=a(63425),E=a(46128),T=a(3118),k=a(69976);a(89163);var C=a(29556),L=a(99134);a(22376);var O=(e,t)=>{var a,s;return(null==e?void 0:e.image.url)?(0,i.jsx)(x._V,{src:e.image.url,alt:null!=(s=null!=(a=e.image.alt)?a:e.name)?s:"",width:84,height:84,className:"fco-match-schedule-unit-widget-card__crest",fit:"contain",loading:x.uj.LAZY,onError:e=>{e.currentTarget.onerror=null,e.currentTarget.src=t}}):(0,i.jsx)("img",{width:84,height:84,src:t,alt:"team-logo",loading:"lazy"})},D=e=>{let{teamA:t,teamB:a}=e,{teamPlaceholderImageUrl:s}=(0,S.t)();return(0,i.jsxs)("div",{className:"fco-match-schedule-unit-widget-card__crests",children:[O(t,s),O(a,s)]})},B=e=>{var t,a,n,r;let{isMatchPageLinking:l,match:o,onMatchClick:c}=e,d=(0,s.o)(),u=(0,s.s)(),m=(0,b.t)(),p=null!=(n=null==(t=o.teamA)?void 0:t.name)?n:"",f=null!=(r=null==(a=o.teamB)?void 0:a.name)?r:"",g="".concat(p," ").concat(d("generic.vs")," ").concat(f),v=(0,w.o)({link:o.link,urlBuilder:m}),x=!!o.link.newTab,_=new Date(o.startDate),j=L.c9.now().setZone(u),y=L.c9.fromISO(o.startDate,{zone:u}),N=(0,E.s)(_,{day:"numeric",month:"short",year:"numeric"}),A=(0,E.c)(_,{hour:"2-digit",minute:"2-digit"}),S=y.hasSame(j,"day")?d("generic.today"):N;return(0,i.jsxs)("li",{className:h("fco-match-schedule-unit-widget-card",{"fco-match-schedule-unit-widget-card--tv-channel-link":!l}),children:[l?(0,i.jsx)("a",{className:"fco-match-schedule-unit-widget-card__link",href:v,rel:"noopener",target:x?"_blank":void 0,onClick:()=>null==c?void 0:c(g),"aria-label":g}):null,(0,i.jsx)(D,{teamA:o.teamA,teamB:o.teamB}),(0,i.jsxs)("div",{className:"fco-match-schedule-unit-widget-card__info",children:[(0,i.jsx)("h3",{className:"fco-match-schedule-unit-widget-card__title",children:g}),(0,i.jsxs)("p",{className:"fco-match-schedule-unit-widget-card__datetime",children:[(0,i.jsx)("time",{className:"fco-match-schedule-unit-widget-card__date",dateTime:o.startDate,children:S}),(0,i.jsx)("time",{dateTime:o.startDate,children:A})]}),o.tvChannels.length?(0,i.jsx)(C.t,{tvChannels:o.tvChannels}):null]})]})},I=e=>{var t,a;let{matches:s,headline:c,className:d,isMatchPageLinking:u=!1,...m}=e,p=null!=(a=null==(t=(0,n.t)())?void 0:t.toLowerCase())?a:"",{ref:f,inView:g}=(0,o.Wx)({threshold:.25,triggerOnce:!0});return(0,l.useEffect)(()=>{g&&(0,r.t)({platform:p,category:T.l,action:T.E,label:null!=c?c:""})},[g,c,p]),0===s.length?null:(0,i.jsx)("section",{ref:f,className:h("fco-match-schedule-unit-widget fco-without-article-body without-article-styling",d),...m,children:(0,i.jsx)(k.t,{shouldRecalculateOnResize:!0,displayEdgeFade:!0,heading:c,children:s.map(e=>(0,i.jsx)(B,{match:e,isMatchPageLinking:u,onMatchClick:e=>(0,r.t)({platform:p,category:T.l,action:T.T,label:e})},e.id))})})},F=a(96974),P=a(15297);a(11871);var V=a(99506);a(93559);var M=e=>{let{competitionName:t,date:a,time:s,startDate:n}=e;return(0,i.jsxs)("div",{className:"fco-next-match-recirculation__fixture-info",children:[(0,i.jsx)("p",{className:"fco-next-match-recirculation__competition fco-next-match-recirculation__competition--mobile fco-without-article-body",children:t}),(0,i.jsx)("p",{className:"fco-next-match-recirculation__date fco-without-article-body",children:a}),(0,i.jsx)("time",{className:"fco-next-match-recirculation__time fco-without-article-body",dateTime:n,children:s})]})},W=e=>{let{href:t,rel:a,target:s,label:n="Match Preview"}=e;return(0,i.jsxs)(F.S,{href:t,rel:a,target:null!=s?s:void 0,size:"large",appearance:"outlined",variant:"primary",className:"fco-next-match-recirculation__preview-link fco-next-match-recirculation__preview-button",children:[(0,i.jsx)("span",{className:"fco-next-match-recirculation__preview-button-text",children:n}),(0,i.jsx)(v.t,{width:24,height:24,glyph:"arrow-right-lg","aria-hidden":"true",className:"fco-svg-icon"})]})},R=e=>{var t,a,s,n;let{team:r,variant:l}=e;return(0,i.jsxs)("div",{className:"fco-next-match-recirculation__team fco-next-match-recirculation__team--".concat(l),children:[(0,i.jsx)(P.t,{src:null!=(t=r.crestPath)?t:void 0,alt:null!=(s=null!=(a=r.nameShort)?a:r.name)?s:"",className:"fco-next-match-recirculation__crest",fit:"contain",width:50,height:50}),(0,i.jsx)("p",{className:"fco-next-match-recirculation__team-name fco-without-article-body",children:null!=(n=r.nameShort)?n:r.name})]})},H=e=>{var t,a,n,r,l;let{match:o}=e,{startDate:c,teamA:d,teamB:u,competitionName:m,rel:h,target:p,bettingOdds:f,previewLabel:g}
1=o,v=(0,s.o)(),x=(0,b.t)(),_=x&&(null==(t=o.link)?void 0:t.slug)?x.toMatchPage(o.id,o.link.slug):null!=(l=null==(a=o.link)?void 0:a.url)?l:void 0,j=(0,E.c)(new Date(c),{hour:"2-digit",minute:"2-digit"}),w=(0,E.s)(new Date(c),{day:"2-digit",month:"short",year:"numeric"}),y=null!=g?g:v("generic.matchPreview"),N=f&&f.length>0;return(0,i.jsxs)("div",{className:"fco-next-match-recirculation__row",children:[(0,i.jsx)("div",{className:"fco-next-match-recirculation__competition-col",children:(0,i.jsx)("p",{className:"fco-next-match-recirculation__competition fco-without-article-body",children:m})}),(0,i.jsx)("div",{className:"fco-next-match-recirculation__match",children:(0,i.jsxs)("div",{className:"fco-next-match-recirculation__match-details",children:[(0,i.jsx)(R,{team:d,variant:"home"}),(0,i.jsx)(M,{competitionName:m,date:w,time:j,startDate:c}),(0,i.jsx)(R,{team:u,variant:"away"})]})}),(0,i.jsx)("div",{className:"fco-next-match-recirculation__preview-col",children:_?(0,i.jsx)(W,{href:_,rel:h,target:null!=p?p:void 0,label:y}):null}),N||_?(0,i.jsxs)("div",{className:"fco-next-match-recirculation__odds-row",children:[N?(0,i.jsx)(V.t,{bookmakers:f,placement:"Match Recirculation",matchName:(null==(n=o.teamA)?void 0:n.name)&&(null==(r=o.teamB)?void 0:r.name)?"".concat(o.teamA.name," vs ").concat(o.teamB.name):void 0}):null,_?(0,i.jsx)("div",{className:"fco-next-match-recirculation__preview-button-container",children:(0,i.jsx)(W,{href:_,rel:h,target:null!=p?p:void 0,label:y})}):null]}):null]})},U=e=>{let{matches:t,title:a,className:n}=e,r=(0,s.o)(),l=null!=a?a:r("component.matchRecirculation.title");return(0,i.jsxs)("div",{className:h("fco-next-match-recirculation","fco-without-article-body",n),children:[(0,i.jsx)("div",{className:"fco-next-match-recirculation__heading",children:(0,i.jsx)("span",{className:"fco-next-match-recirculation__title",children:l})}),(0,i.jsx)("div",{className:"fco-next-match-recirculation__body",children:t.map(e=>(0,i.jsx)(H,{match:e},e.id))})]})},G=a(75258),q=a(97997),Y=a(29144);a(54240);var z=e=>{let{text:t,authorImageSrc:a,authorName:s,authorJobRole:n,authorLink:r}=e;return(0,i.jsxs)("div",{className:"fco-author-quotes",children:[(0,i.jsx)(q.I,{glyph:"quotes",className:"fco-author-quotes__icon"}),(0,i.jsx)("p",{className:"fco-author-quotes__text",children:t}),(0,i.jsxs)(Y.BP,{href:r,className:"fco-author-quotes__author",children:[(0,i.jsxs)("div",{className:"fco-author-quotes__author-info",children:[(0,i.jsx)("p",{className:"fco-author-quotes__author-name",children:s}),(0,i.jsx)("p",{className:"fco-author-quotes__author-job-role",children:n})]}),a?(0,i.jsx)(x._V,{src:a,alt:"author image",width:49,className:"fco-author-quotes__author-image"}):null]})]})},K=a(92610);a(82034);var Z=e=>e?K.t[e]:void 0,J=e=>{var t;let{size:a="small",variant:c="inverse",appearance:d="filled",className:u}=e,m=(0,s.o)(),p=(0,n.t)(),f=null!=(t=null==p?void 0:p.toLowerCase())?t:"",{ref:g,inView:b}=(0,o.Wx)({threshold:1,triggerOnce:!0});(0,l.useEffect)(()=>{b&&(0,r.t)({platform:f,category:T.t,action:"".concat(T.t," Impression")})},[b,f]);let x=Z(p);return x?(0,i.jsx)("span",{ref:g,children:(0,i.jsxs)(F.S,{variant:c,appearance:d,size:a,dropShadow:!0,className:h("fco-app-download-button",u),href:x,target:"_blank",rel:"noopener",onClick:()=>(0,r.t)({platform:f,category:T.t,action:"".concat(T.t," Click")}),children:[(0,i.jsx)(v.t,{glyph:"download",className:"fco-app-download-button__icon"}),m("component.appDownload.cta")]})}):null},$=a(91258),X=a(56766),Q=a(60361),ee=()=>{let{fullConsent:e}=(0,l.useContext)(s.t);return e},et=a(98624);a(59845);var ea=(0,l.forwardRef)((e,t)=>{let{className:a,register:s,type:n,actionIcon:r,actionSVGIcon:l,actionIconPosition:o="start",buttonAttributes:c,invalid:d=!1,...u}=e,m=r||l?(0,i.jsxs)("button",{className:"fco-input-button",...c,children:[r?(0,i.jsx)(q.I,{glyph:r,className:"fco-input-button-glyph"}):null,l?(0,i.jsx)(v.t,{glyph:l}):null]}):null;return(0,i.jsxs)("div",{className:p()("fco-input",{"fco-input-invalid":d},a),"data-type":n||"text",children:["start"===o?m:null,(0,i.jsx)("input",{className:p()("fco-input-input",{"fco-input-input-invalid":d},a),...s||{},ref:t,type:n||"text",...u}),"end"===o?m:null]})});ea.displayName="Input",a(81193);var es={iconPosition:"top",size:"medium"},en=e=>{let t={...es,...e};return(0,i.jsx)("div",{role:"status","aria-label":(0,s.o)()("generic.loading"),className:"fco-loading-spinner fco-loading-spinner--".concat(t.size," fco-loading-spinner--").concat(t.iconPosition),children:(0,i.jsx)(v.t,{glyph:"spinner","aria-hidden":!0,
1className:"fco-loading-spinner__icon"})})},er=a(27515),el=a(45599),ei=e=>e instanceof Date,eo=e=>null==e,ec=e=>!eo(e)&&!Array.isArray(e)&&"object"==typeof e&&!ei(e),ed="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function eu(e){let t,a=Array.isArray(e),s="undefined"!=typeof FileList&&e instanceof FileList;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(ed&&(e instanceof Blob||s))&&(a||ec(e))))return e;else if(t=a?[]:{},a||(e=>{let t=e.constructor&&e.constructor.prototype;return ec(t)&&t.hasOwnProperty("isPrototypeOf")})(e))for(let a in e)e.hasOwnProperty(a)&&(t[a]=eu(e[a]));else t=e;return t}var em=e=>Array.isArray(e)?e.filter(Boolean):[],eh=e=>void 0===e,ep=(e,t,a)=>{if(!t||!ec(e))return a;let s=em(t.split(/[,[\].]+?/)).reduce((e,t)=>eo(e)?e:e[t],e);return eh(s)||s===e?eh(e[t])?a:e[t]:s},ef=e=>/^\w*$/.test(e),eg=e=>em(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ev=(e,t,a)=>{let s=-1,n=ef(t)?[t]:eg(t),r=n.length,l=r-1;for(;++s<r;){let t=n[s],r=a;if(s!==l){let a=e[t];r=ec(a)||Array.isArray(a)?a:isNaN(+n[s+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=r,e=e[t]}};let eb={BLUR:"blur",FOCUS_OUT:"focusout"},ex={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},e_={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};l.createContext(null);var ej=e=>eo(e)||"object"!=typeof e;function ew(e,t){if(ej(e)||ej(t))return e===t;if(ei(e)&&ei(t))return e.getTime()===t.getTime();let a=Object.keys(e),s=Object.keys(t);if(a.length!==s.length)return!1;for(let n of a){let a=e[n];if(!s.includes(n))return!1;if("ref"!==n){let e=t[n];if(ei(a)&&ei(e)||ec(a)&&ec(e)||Array.isArray(a)&&Array.isArray(e)?!ew(a,e):a!==e)return!1}}return!0}var ey=(e,t,a,s,n)=>t?{...a[e],types:{...a[e]&&a[e].types?a[e].types:{},[s]:n||!0}}:{},eN=e=>Array.isArray(e)?e:[e],eA=()=>{let e=[];return{get observers(){return e},next:t=>{for(let a of e)a.next&&a.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}},eS=e=>ec(e)&&!Object.keys(e).length,eE=e=>"function"==typeof e,eT=e=>{if(!ed)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ek=e=>eT(e)&&e.isConnected;function eC(e,t){let a=Array.isArray(t)?t:ef(t)?[t]:eg(t),s=1===a.length?e:function(e,t){let a=t.slice(0,-1).length,s=0;for(;s<a;)e=eh(e)?s++:e[t[s++]];return e}(e,a),n=a.length-1,r=a[n];return s&&delete s[r],0!==n&&(ec(s)&&eS(s)||Array.isArray(s)&&function(e){for(let t in e)if(e.hasOwnProperty(t)&&!eh(e[t]))return!1;return!0}(s))&&eC(e,a.slice(0,-1)),e}var eL=e=>{for(let t in e)if(eE(e[t]))return!0;return!1};function eO(e,t={}){let a=Array.isArray(e);if(ec(e)||a)for(let a in e)Array.isArray(e[a])||ec(e[a])&&!eL(e[a])?(t[a]=Array.isArray(e[a])?[]:{},eO(e[a],t[a])):eo(e[a])||(t[a]=!0);return t}var eD=(e,t)=>(function e(t,a,s){let n=Array.isArray(t);if(ec(t)||n)for(let n in t)Array.isArray(t[n])||ec(t[n])&&!eL(t[n])?eh(a)||ej(s[n])?s[n]=Array.isArray(t[n])?eO(t[n],[]):{...eO(t[n])}:e(t[n],eo(a)?{}:a[n],s[n]):s[n]=!ew(t[n],a[n]);return s})(e,t,eO(t));let eB={value:!1,isValid:!1},eI={value:!0,isValid:!0};var eF=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!eh(e[0].attributes.value)?eh(e[0].value)||""===e[0].value?eI:{value:e[0].value,isValid:!0}:eI:eB}return eB},eP=(e,{valueAsNumber:t,valueAsDate:a,setValueAs:s})=>eh(e)?e:t?""===e?NaN:e?+e:e:a&&"string"==typeof e?new Date(e):s?s(e):e;let eV={isValid:!1,value:null};var eM=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,eV):eV;function eW(e){let t=e.ref;return"file"===t.type?t.files:"radio"===t.type?eM(e.refs).value:"select-multiple"===t.type?[...t.selectedOptions].map(({value:e})=>e):"checkbox"===t.type?eF(e.refs).value:eP(eh(t.value)?e.ref.value:t.value,e)}var eR=e=>eh(e)?e:e instanceof RegExp?e.source:ec(e)?e.value instanceof RegExp?e.value.source:e.value:e,eH=e=>({isOnSubmit:!e||e===ex.onSubmit,isOnBlur:e===ex.onBlur,isOnChange:e===ex.onChange,isOnAll:e===ex.all,isOnTouch:e===ex.onTouched});let eU="AsyncFunction";var eG=e=>!!e&&!!e.validate&&!!(eE(e.validate)&&e.validate.constructor.name===eU||ec(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===eU)),eq=(e,t,a)=>!a&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));let eY=(e,t,a,s)=>{for(let n of a||Object.keys(e)){let a=ep(e,n);if(a){let{_f:e,...r}=a;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],n)&&!s)return!0;else if(e.ref&&t(e.ref,e.name)&&!s)return!0;else if(eY(r,t))break}else if(ec(r)&&eY(r,t))break}}};function ez(e,t,a){let s=ep(e,a);if(s||ef(a))return{error:s,name:a};let n=a.split(".");for(;n.length;){let s=n.join("."),r=ep(t,s),l=ep(e,s);if(r&&!Array.isArray(r)&&a!==s)break;if(l&&l.type)return{name:s,error:l};n.pop()}return{name:a}}var eK=(e,t,a)=>{let s=eN(ep(e,a));return ev(s,"root",t[a]),ev(e,a,s),e},eZ=e=>"string"==typeof e;function eJ(e,t,a="validate"){if(eZ(e)||Array.isArray(e)&&e.every(eZ)||"boolean"==typeof e&&!e)return{type:a,message:eZ(e)?e:"",ref:t}}var e$=e=>!ec(e)||e instanceof RegExp?{value:e,message:""}:e,eX=async(e,t,a,s,n,r)=>{let{ref:l,refs:i,required:o,maxLength:c,minLength:d,min:u,max:m,pattern:h,validate:p,name:f,valueAsNumber:g,mount:v}=e._f,b=ep(a,f);if(!v||t.has(f))return{};let x=i?i[0]:l,_=e=>{n&&x.reportValidity&&(x.setCustomValidity("boolean"==typeof e?"":e||""),x.reportValidity())},j={}
1,w="radio"===l.type,y="checkbox"===l.type,N=(g||"file"===l.type)&&eh(l.value)&&eh(b)||eT(l)&&""===l.value||""===b||Array.isArray(b)&&!b.length,A=ey.bind(null,f,s,j),S=(e,t,a,s=e_.maxLength,n=e_.minLength)=>{let r=e?t:a;j[f]={type:e?s:n,message:r,ref:l,...A(e?s:n,r)}};if(r?!Array.isArray(b)||!b.length:o&&(!(w||y)&&(N||eo(b))||"boolean"==typeof b&&!b||y&&!eF(i).isValid||w&&!eM(i).isValid)){let{value:e,message:t}=eZ(o)?{value:!!o,message:o}:e$(o);if(e&&(j[f]={type:e_.required,message:t,ref:x,...A(e_.required,t)},!s))return _(t),j}if(!N&&(!eo(u)||!eo(m))){let e,t,a=e$(m),n=e$(u);if(eo(b)||isNaN(b)){let s=l.valueAsDate||new Date(b),r=e=>new Date(new Date().toDateString()+" "+e),i="time"==l.type,o="week"==l.type;"string"==typeof a.value&&b&&(e=i?r(b)>r(a.value):o?b>a.value:s>new Date(a.value)),"string"==typeof n.value&&b&&(t=i?r(b)<r(n.value):o?b<n.value:s<new Date(n.value))}else{let s=l.valueAsNumber||(b?+b:b);eo(a.value)||(e=s>a.value),eo(n.value)||(t=s<n.value)}if((e||t)&&(S(!!e,a.message,n.message,e_.max,e_.min),!s))return _(j[f].message),j}if((c||d)&&!N&&("string"==typeof b||r&&Array.isArray(b))){let e=e$(c),t=e$(d),a=!eo(e.value)&&b.length>+e.value,n=!eo(t.value)&&b.length<+t.value;if((a||n)&&(S(a,e.message,t.message),!s))return _(j[f].message),j}if(h&&!N&&"string"==typeof b){let{value:e,message:t}=e$(h);if(e instanceof RegExp&&!b.match(e)&&(j[f]={type:e_.pattern,message:t,ref:l,...A(e_.pattern,t)},!s))return _(t),j}if(p){if(eE(p)){let e=eJ(await p(b,a),x);if(e&&(j[f]={...e,...A(e_.validate,e.message)},!s))return _(e.message),j}else if(ec(p)){let e={};for(let t in p){if(!eS(e)&&!s)break;let n=eJ(await p[t](b,a),x,t);n&&(e={...n,...A(t,n.message)},_(n.message),s&&(j[f]=e))}if(!eS(e)&&(j[f]={ref:x,...e},!s))return j}}return _(!0),j};let eQ={mode:ex.onSubmit,reValidateMode:ex.onChange,shouldFocusError:!0},e0="undefined"!=typeof window?l.useLayoutEffect:l.useEffect;var e1=()=>(0,i.jsxs)("div",{role:"status","aria-label":(0,s.o)()("generic.loading"),className:"fco-newsletter-widget__loading",children:[(0,i.jsxs)("div",{className:"fco-newsletter-widget__loading-controls",children:[(0,i.jsx)(er.E,{className:"fco-newsletter-widget__loading-email"}),(0,i.jsx)(er.E,{className:"fco-newsletter-widget__loading-submit"})]}),(0,i.jsx)(er.E,{className:"fco-newsletter-widget__loading-terms"})]}),e2=e=>{var t,a;let{isLoggedIn:r,managePreferencesAction:l,createAccountAction:o,loginAction:c}=e,d=(0,s.o)(),u=null!=(a=null==(t=(0,n.t)())?void 0:t.toUpperCase())?a:"",m=(0,et.t)(),h=r?l:o;return h?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{className:"fco-newsletter-widget__encourage",children:d("component.teamNewsletter.encourage",{param1:u})}),(0,i.jsx)(F.S,{..."function"==typeof h?{type:"button",onClick:h}:{href:h},variant:"primary",appearance:"outlined",size:"medium",className:"fco-newsletter-widget__account-cta",children:d(r?"component.teamNewsletter.managePreferences":"component.teamNewsletter.createAccount")}),!r&&c?(0,i.jsx)("p",{className:"fco-newsletter-widget__login",children:(0,i.jsx)(m,{i18nKey:"component.teamNewsletter.alreadyHaveAccount",components:{link:"function"==typeof c?(0,i.jsx)("button",{type:"button",onClick:c}):(0,i.jsx)("a",{href:c})}})}):null]}):null},e5=e=>{var t,a;let{isLoggedIn:n,isSubmitting:r,hasSubmitError:o,onSubscribe:c}=e,d=(0,s.o)(),u=(0,et.t)(),m=(0,b.t)(),{register:h,handleSubmit:p,formState:{errors:f}}=function(e={}){let t=l.useRef(void 0),a=l.useRef(void 0),[s,n]=l.useState({isDirty:!1,isValidating:!1,isLoading:eE(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:eE(e.defaultValues)?void 0:e.defaultValues});!t.current&&(t.current={...e.formControl?e.formControl:function(e={}){let t,a={...eQ,...e},s={submitCount:0,isDirty:!1,isReady:!1,isLoading:eE(a.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:a.errors||{},disabled:a.disabled||!1},n={},r=(ec(a.defaultValues)||ec(a.values))&&eu(a.values||a.defaultValues)||{},l=a.shouldUnregister?{}:eu(r),i={action:!1,mount:!1,watch:!1},o={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c=0,d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},u={...d},m={array:eA(),state:eA()},h=eH(a.mode),p=eH(a.reValidateMode),f=a.criteriaMode===ex.all,g=async e=>{if(!a.disabled&&(d.isValid||u.isValid||e)){let e=a.resolver?eS((await _()).errors):await w(n,
1!0);e!==s.isValid&&m.state.next({isValid:e})}},v=(e,t)=>{!a.disabled&&(d.isValidating||d.validatingFields||u.isValidating||u.validatingFields)&&((e||Array.from(o.mount)).forEach(e=>{e&&(t?ev(s.validatingFields,e,t):eC(s.validatingFields,e))}),m.state.next({validatingFields:s.validatingFields,isValidating:!eS(s.validatingFields)}))},b=(e,t,a,s)=>{let o=ep(n,e);if(o){let n=ep(l,e,eh(a)?ep(r,e):a);eh(n)||s&&s.defaultChecked||t?ev(l,e,t?n:eW(o._f)):A(e,n),i.mount&&g()}},x=(e,t,n,l,i)=>{let o=!1,c=!1,h={name:e};if(!a.disabled){if(!n||l){(d.isDirty||u.isDirty)&&(c=s.isDirty,s.isDirty=h.isDirty=y(),o=c!==h.isDirty);let a=ew(ep(r,e),t);c=!!ep(s.dirtyFields,e),a?eC(s.dirtyFields,e):ev(s.dirtyFields,e,!0),h.dirtyFields=s.dirtyFields,o=o||(d.dirtyFields||u.dirtyFields)&&!a!==c}if(n){let t=ep(s.touchedFields,e);t||(ev(s.touchedFields,e,n),h.touchedFields=s.touchedFields,o=o||(d.touchedFields||u.touchedFields)&&t!==n)}o&&i&&m.state.next(h)}return o?h:{}},_=async e=>{v(e,!0);let t=await a.resolver(l,a.context,((e,t,a,s)=>{let n={};for(let a of e){let e=ep(t,a);e&&ev(n,a,e._f)}return{criteriaMode:a,names:[...e],fields:n,shouldUseNativeValidation:s}})(e||o.mount,n,a.criteriaMode,a.shouldUseNativeValidation));return v(e),t},j=async e=>{let{errors:t}=await _(e);if(e)for(let a of e){let e=ep(t,a);e?ev(s.errors,a,e):eC(s.errors,a)}else s.errors=t;return t},w=async(e,t,n={valid:!0})=>{for(let r in e){let i=e[r];if(i){let{_f:e,...c}=i;if(e){let c=o.array.has(e.name),u=i._f&&eG(i._f);u&&d.validatingFields&&v([r],!0);let m=await eX(i,o.disabled,l,f,a.shouldUseNativeValidation&&!t,c);if(u&&d.validatingFields&&v([r]),m[e.name]&&(n.valid=!1,t))break;t||(ep(m,e.name)?c?eK(s.errors,m,e.name):ev(s.errors,e.name,m[e.name]):eC(s.errors,e.name))}eS(c)||await w(c,t,n)}}return n.valid},y=(e,t)=>!a.disabled&&(e&&t&&ev(l,e,t),!ew(L(),r)),N=(e,t,a)=>{let s,n,c,d,u;return s=e,n=o,c={...i.mount?l:eh(t)?r:"string"==typeof e?{[e]:t}:t},d=a,u=t,"string"==typeof s?(d&&n.watch.add(s),ep(c,s,u)):Array.isArray(s)?s.map(e=>(d&&n.watch.add(e),ep(c,e))):(d&&(n.watchAll=!0),c)},A=(e,t,a={})=>{let s=ep(n,e),r=t;if(s){let a=s._f;a&&(a.disabled||ev(l,e,eP(t,a)),r=eT(a.ref)&&eo(t)?"":t,"select-multiple"===a.ref.type?[...a.ref.options].forEach(e=>e.selected=r.includes(e.value)):a.refs?"checkbox"===a.ref.type?a.refs.length>1?a.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(r)?!!r.find(t=>t===e.value):r===e.value)):a.refs[0]&&(a.refs[0].checked=!!r):a.refs.forEach(e=>e.checked=e.value===r):"file"===a.ref.type?a.ref.value="":(a.ref.value=r,a.ref.type||m.state.next({name:e,values:eu(l)})))}(a.shouldDirty||a.shouldTouch)&&x(e,r,a.shouldTouch,a.shouldDirty,!0),a.shouldValidate&&C(e)},S=(e,t,a)=>{for(let s in t){let r=t[s],l=`${e}.${s}`,i=ep(n,l);(o.array.has(e)||ec(r)||i&&!i._f)&&!ei(r)?S(l,r,a):A(l,r,a)}},E=(e,t,a={})=>{let c=ep(n,e),h=o.array.has(e),p=eu(t);ev(l,e,p),h?(m.array.next({name:e,values:eu(l)}),(d.isDirty||d.dirtyFields||u.isDirty||u.dirtyFields)&&a.shouldDirty&&m.state.next({name:e,dirtyFields:eD(r,l),isDirty:y(e,p)})):!c||c._f||eo(p)?A(e,p,a):S(e,p,a),eq(e,o)&&m.state.next({...s}),m.state.next({name:i.mount?e:void 0,values:eu(l)})},T=async e=>{i.mount=!0;let r=e.target,b=r.name,j=!0,y=ep(n,b),N=e=>{j=Number.isNaN(e)||ei(e)&&isNaN(e.getTime())||ew(e,ep(l,b,e))};if(y){let i,B,I,F,P=r.type?eW(y._f):ec(F=e)&&F.target?"checkbox"===F.target.type?F.target.checked:F.target.value:F,V=e.type===eb.BLUR||e.type===eb.FOCUS_OUT,M=!((I=y._f).mount&&(I.required||I.min||I.max||I.maxLength||I.minLength||I.pattern||I.validate))&&!a.resolver&&!ep(s.errors,b)&&!y._f.deps||(A=V,S=ep(s.touchedFields,b),E=s.isSubmitted,T=p,!(k=h).isOnAll&&(!E&&k.isOnTouch?!(S||A):(E?T.isOnBlur:k.isOnBlur)?!A:(E?!T.isOnChange:!k.isOnChange)||A)),W=eq(b,o,V);ev(l,b,P),V?(y._f.onBlur&&y._f.onBlur(e),t&&t(0)):y._f.onChange&&y._f.onChange(e);let R=x(b,P,V),H=!eS(R)||W;if(V||m.state.next({name:b,type:e.type,values:eu(l)}),M)return(d.isValid||u.isValid)&&("onBlur"===a.mode?V&&g():V||g()),H&&m.state.next({name:b,...W?{}:R});if(!V&&W&&m.state.next({...s}),a.resolver){let{errors:e}=await _([b]);if(N(P),j){let t=ez(s.errors,n,b),a=ez(e,n,t.name||b);i=a.error,b=a.name,B=eS(e)}}else v([b],!0),i=(await eX(y,o.disabled,l,f,a.shouldUseNativeValidation))[b],v([b]),N(P),j&&(i?B=!1:(d.isValid||u.isValid)&&(B=await w(n,
1!0)));if(j){y._f.deps&&C(y._f.deps);var A,S,E,T,k,L=b,O=B,D=i;let e=ep(s.errors,L),n=(d.isValid||u.isValid)&&"boolean"==typeof O&&s.isValid!==O;if(a.delayError&&D){let e;e=()=>{ev(s.errors,L,D),m.state.next({errors:s.errors})},(t=t=>{clearTimeout(c),c=setTimeout(e,t)})(a.delayError)}else clearTimeout(c),t=null,D?ev(s.errors,L,D):eC(s.errors,L);if((D?!ew(e,D):e)||!eS(R)||n){let e={...R,...n&&"boolean"==typeof O?{isValid:O}:{},errors:s.errors,name:L};s={...s,...e},m.state.next(e)}}}},k=(e,t)=>{if(ep(s.errors,t)&&e.focus)return e.focus(),1},C=async(e,t={})=>{let r,l,i=eN(e);if(a.resolver){let t=await j(eh(e)?e:i);r=eS(t),l=e?!i.some(e=>ep(t,e)):r}else e?((l=(await Promise.all(i.map(async e=>{let t=ep(n,e);return await w(t&&t._f?{[e]:t}:t)}))).every(Boolean))||s.isValid)&&g():l=r=await w(n);return m.state.next({..."string"!=typeof e||(d.isValid||u.isValid)&&r!==s.isValid?{}:{name:e},...a.resolver||!e?{isValid:r}:{},errors:s.errors}),t.shouldFocus&&!l&&eY(n,k,e?i:o.mount),l},L=e=>{let t={...i.mount?l:r};return eh(e)?t:"string"==typeof e?ep(t,e):e.map(e=>ep(t,e))},O=(e,t)=>({invalid:!!ep((t||s).errors,e),isDirty:!!ep((t||s).dirtyFields,e),error:ep((t||s).errors,e),isValidating:!!ep(s.validatingFields,e),isTouched:!!ep((t||s).touchedFields,e)}),D=(e,t,a)=>{let r=(ep(n,e,{_f:{}})._f||{}).ref,{ref:l,message:i,type:o,...c}=ep(s.errors,e)||{};ev(s.errors,e,{...c,...t,ref:r}),m.state.next({name:e,errors:s.errors,isValid:!1}),a&&a.shouldFocus&&r&&r.focus&&r.focus()},B=e=>m.state.subscribe({next:t=>{let a,n,r;a=e.name,n=t.name,r=e.exact,(!a||!n||a===n||eN(a).some(e=>e&&(r?e===n:e.startsWith(n)||n.startsWith(e))))&&((e,t,a,s)=>{a(e);let{name:n,...r}=e;return eS(r)||Object.keys(r).length>=Object.keys(t).length||Object.keys(r).find(e=>t[e]===(!s||ex.all))})(t,e.formState||d,H,e.reRenderRoot)&&e.callback({values:{...l},...s,...t})}}).unsubscribe,I=(e,t={})=>{for(let i of e?eN(e):o.mount)o.mount.delete(i),o.array.delete(i),t.keepValue||(eC(n,i),eC(l,i)),t.keepError||eC(s.errors,i),t.keepDirty||eC(s.dirtyFields,i),t.keepTouched||eC(s.touchedFields,i),t.keepIsValidating||eC(s.validatingFields,i),a.shouldUnregister||t.keepDefaultValue||eC(r,i);m.state.next({values:eu(l)}),m.state.next({...s,...!t.keepDirty?{}:{isDirty:y()}}),t.keepIsValid||g()},F=({disabled:e,name:t})=>{("boolean"==typeof e&&i.mount||e||o.disabled.has(t))&&(e?o.disabled.add(t):o.disabled.delete(t))},P=(e,t={})=>{let s=ep(n,e),l="boolean"==typeof t.disabled||"boolean"==typeof a.disabled;return(ev(n,e,{...s||{},_f:{...s&&s._f?s._f:{ref:{name:e}},name:e,mount:!0,...t}}),o.mount.add(e),s)?F({disabled:"boolean"==typeof t.disabled?t.disabled:a.disabled,name:e}):b(e,!0,t.value),{...l?{disabled:t.disabled||a.disabled}:{},...a.progressive?{required:!!t.required,min:eR(t.min),max:eR(t.max),minLength:eR(t.minLength),maxLength:eR(t.maxLength),pattern:eR(t.pattern)}:{},name:e,onChange:T,onBlur:T,ref:l=>{if(l){let a;P(e,t),s=ep(n,e);let i=eh(l.value)&&l.querySelectorAll&&l.querySelectorAll("input,select,textarea")[0]||l,o="radio"===(a=i).type||"checkbox"===a.type,c=s._f.refs||[];(o?c.find(e=>e===i):i===s._f.ref)||(ev(n,e,{_f:{...s._f,...o?{refs:[...c.filter(ek),i,...Array.isArray(ep(r,e))?[{}]:[]],ref:{type:i.type,name:e}}:{ref:i}}}),b(e,!1,void 0,i))}else{let r;(s=ep(n,e,{}))._f&&(s._f.mount=!1),(a.shouldUnregister||t.shouldUnregister)&&(r=o.array,!r.has(e.substring(0,e.search(/\.\d+(\.|$)/))||e)||!i.action)&&o.unMount.add(e)}}}},V=()=>a.shouldFocusError&&eY(n,k,o.mount),M=(e,t)=>async r=>{let i;r&&(r.preventDefault&&r.preventDefault(),r.persist&&r.persist());let c=eu(l);if(m.state.next({isSubmitting:!0}),a.resolver){let{errors:e,values:t}=await _();s.errors=e,c=t}else await w(n);if(o.disabled.size)for(let e of o.disabled)ev(c,e,void 0);if(eC(s.errors,"root"),eS(s.errors)){m.state.next({errors:{}});try{await e(c,r)}catch(e){i=e}}else t&&await t({...s.errors},r),V(),setTimeout(V);if(m.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:eS(s.errors)&&!i,submitCount:s.submitCount+1,errors:s.errors}),i)throw i},W=(e,t={})=>{let c=e?eu(e):r,u=eu(c),h=eS(e),p=h?r:u;if(t.keepDefaultValues||(r=c),!t.keepValues){if(t.keepDirtyValues)for(let e of Array.from(new Set([...o.mount,...Object.keys(eD(r,l))])))ep(s.dirtyFields,e)?ev(p,e,ep(l,e)):E(e,ep(p,e));else{if(ed&&eh(e))for(let e of o.mount){let t=ep(n,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(eT(e)){let t=e.closest("form");if(t){t.reset();break}}}}for(let e of o.mount)E(e,ep(p,e))}l=eu(p),m.array.next({values:{...p}}),m.state.next({values:{...p}})}o={mount:t.keepDirtyValues?o.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""}
1,i.mount=!d.isValid||!!t.keepIsValid||!!t.keepDirtyValues,i.watch=!!a.shouldUnregister,m.state.next({submitCount:t.keepSubmitCount?s.submitCount:0,isDirty:!h&&(t.keepDirty?s.isDirty:!!(t.keepDefaultValues&&!ew(e,r))),isSubmitted:!!t.keepIsSubmitted&&s.isSubmitted,dirtyFields:h?{}:t.keepDirtyValues?t.keepDefaultValues&&l?eD(r,l):s.dirtyFields:t.keepDefaultValues&&e?eD(r,e):t.keepDirty?s.dirtyFields:{},touchedFields:t.keepTouched?s.touchedFields:{},errors:t.keepErrors?s.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&s.isSubmitSuccessful,isSubmitting:!1})},R=(e,t)=>W(eE(e)?e(l):e,t),H=e=>{s={...s,...e}},U={control:{register:P,unregister:I,getFieldState:O,handleSubmit:M,setError:D,_subscribe:B,_runSchema:_,_getWatch:N,_getDirty:y,_setValid:g,_setFieldArray:(e,t=[],o,c,h=!0,p=!0)=>{if(c&&o&&!a.disabled){if(i.action=!0,p&&Array.isArray(ep(n,e))){let t=o(ep(n,e),c.argA,c.argB);h&&ev(n,e,t)}if(p&&Array.isArray(ep(s.errors,e))){let t,a=o(ep(s.errors,e),c.argA,c.argB);h&&ev(s.errors,e,a),em(ep(t=s.errors,e)).length||eC(t,e)}if((d.touchedFields||u.touchedFields)&&p&&Array.isArray(ep(s.touchedFields,e))){let t=o(ep(s.touchedFields,e),c.argA,c.argB);h&&ev(s.touchedFields,e,t)}(d.dirtyFields||u.dirtyFields)&&(s.dirtyFields=eD(r,l)),m.state.next({name:e,isDirty:y(e,t),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else ev(l,e,t)},_setDisabledField:F,_setErrors:e=>{s.errors=e,m.state.next({errors:s.errors,isValid:!1})},_getFieldArray:e=>em(ep(i.mount?l:r,e,a.shouldUnregister?ep(r,e,[]):[])),_reset:W,_resetDefaultValues:()=>eE(a.defaultValues)&&a.defaultValues().then(e=>{R(e,a.resetOptions),m.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(let e of o.unMount){let t=ep(n,e);t&&(t._f.refs?t._f.refs.every(e=>!ek(e)):!ek(t._f.ref))&&I(e)}o.unMount=new Set},_disableForm:e=>{"boolean"==typeof e&&(m.state.next({disabled:e}),eY(n,(t,a)=>{let s=ep(n,a);s&&(t.disabled=s._f.disabled||e,Array.isArray(s._f.refs)&&s._f.refs.forEach(t=>{t.disabled=s._f.disabled||e}))},0,!1))},_subjects:m,_proxyFormState:d,get _fields(){return n},get _formValues(){return l},get _state(){return i},set _state(value){i=value},get _defaultValues(){return r},get _names(){return o},set _names(value){o=value},get _formState(){return s},get _options(){return a},set _options(value){a={...a,...value}}},subscribe:e=>(i.mount=!0,u={...u,...e.formState},B({...e,formState:u})),trigger:C,register:P,handleSubmit:M,watch:(e,t)=>eE(e)?m.state.subscribe({next:a=>e(N(void 0,t),a)}):N(e,t,!0),setValue:E,getValues:L,reset:R,resetField:(e,t={})=>{ep(n,e)&&(eh(t.defaultValue)?E(e,eu(ep(r,e))):(E(e,t.defaultValue),ev(r,e,eu(t.defaultValue))),t.keepTouched||eC(s.touchedFields,e),t.keepDirty||(eC(s.dirtyFields,e),s.isDirty=t.defaultValue?y(e,eu(ep(r,e))):y()),!t.keepError&&(eC(s.errors,e),d.isValid&&g()),m.state.next({...s}))},clearErrors:e=>{e&&eN(e).forEach(e=>eC(s.errors,e)),m.state.next({errors:e?s.errors:{}})},unregister:I,setError:D,setFocus:(e,t={})=>{let a=ep(n,e),s=a&&a._f;if(s){let e=s.refs?s.refs[0]:s.ref;e.focus&&(e.focus(),t.shouldSelect&&eE(e.select)&&e.select())}},getFieldState:O};return{...U,formControl:U}}(e),formState:s},e.formControl&&e.defaultValues&&!eE(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions));let r=t.current.control;return r._options=e,e0(()=>{let e=r._subscribe({formState:r._proxyFormState,callback:()=>n({...r._formState}),reRenderRoot:!0});return n(e=>({...e,isReady:!0})),r._formState.isReady=!0,e},[r]),l.useEffect(()=>r._disableForm(e.disabled),[r,e.disabled]),l.useEffect(()=>{e.mode&&(r._options.mode=e.mode),e.reValidateMode&&(r._options.reValidateMode=e.reValidateMode),e.errors&&!eS(e.errors)&&r._setErrors(e.errors)},[r,e.errors,e.mode,e.reValidateMode]),l.useEffect(()=>{e.shouldUnregister&&r._subjects.state.next({values:r._getWatch()})},[r,e.shouldUnregister]),l.useEffect(()=>{if(r._proxyFormState.isDirty){let e=r._getDirty();e!==s.isDirty&&r._subjects.state.next({isDirty:e})}},[r,s.isDirty]),l.useEffect(()=>{e.values&&!ew(e.values,a.current)?(r._reset(e.values,r._options.resetOptions),a.current=e.values,n(e=>({...e}))):r._resetDefaultValues()},[r,e.values]),l.useEffect(()=>{r._state.mount||(r._setValid(),r._state.mount=!0),r._state.watch&&(r._state.watch=!1,r._subjects.state.next({...r._formState})),r._removeUnmounted()}),t.current.formState=((e,t,a,s=!0)=>{let n={defaultValues:t._defaultValues};for(let r in e)Object.defineProperty(n,r,{get:()=>(t._proxyFormState[r]!==ex.all&&(t._proxyFormState[r]=!s||ex.all),a&&(a[r]=!0),e[r])});return n})(s,r),t.current}({mode:"onChange"}),g=null==m?void 0:m.toTermsConditionsPage(),x=e=>{let{email:t}=e;return null==c?void 0:c(t)},_=null!=(a=null==(t=f.email)?void 0:t.message)?a:o?d("component.teamNewsletter.error"):null;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("form",{className:"fco-newsletter-widget__form",onSubmit:e=>void p(x)(e),noValidate:!0,children:[n?null:(0,i.jsx)(ea,{type:"email",autoComplete:"email",disabled:r,placeholder:d("component.teamNewsletter.input.placeholder"),"aria-label":d("component.teamNewsletter.input.placeholder"),invalid:!!f.email,className:"fco-newsletter-widget__email",...h("email",{required:d("component.teamNewsletter.input.error"),validate:e=>s.y.exec(e)?void 0:d("component.teamNewsletter.input.error")})}),(0,i.jsx)(F.S,{type:"submit",variant:"primary",appearance:"filled",size:"medium",disabled:r,className:"fco-newsletter-widget__submit",children:r?(0,i.jsx)(en,{size:"small"}):d("generic.subscribe")})]}),_?(0,i.jsx)(el.p,{message:_,variant:"warning",iconElement:(0,i.jsx)(v.t,{glyph:"warning-filled"})}):null,(0,i.jsx)("p",{className:"fco-newsletter-widget__terms",children:g?(0,i.jsx)(u,{i18nKey:"component.teamNewsletter.agreeToNewsletter",components:{termsLink:(0,i.jsx)("a",{href:g,target:"_blank",rel:"noopener"})}}):d("component.teamNewsletter.terms")})]})},e6=e=>{let{isLoading:t,isLoggedIn:a,isSubscribed:s,isSubmitting:n,hasSubmitError:r,onSubscribe:l,...o}=e;return t?(0,i.jsx)(e1,{}):s?(0,i.jsx)(e2,{isLoggedIn:a,...o}):(0,i.jsx)(e5,{isLoggedIn:a,isSubmitting:n,hasSubmitError:r,onSubscribe:l})}
1,e3=a(65584),e9=a(5762);a(90115);var e4="teamNewsletter",e7="rondoNewsletter",e8=function(){let{enabled:e=!0,teamId:t,formId:a,listId:n,endpoint:r="/api/active-campaign/manage-list-subscription"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=(0,G.t)(),o=(0,s.l)(),{user:c,userToken:d,userTokenLoading:u}=(0,s.i)(),[m,h]=(0,l.useState)(),[p,f]=(0,l.useState)("idle");(0,l.useEffect)(()=>{if(!e||u)return;let a=!1;return(async()=>{let{db:e}=(0,s.v)(),n=!1;if(c&&e)try{var r,l,d;let a;r=(await (0,e3.x7)((0,e3.H9)(e,Q.N5,c.uid))).data(),a=null==r||null==(l=r.consents)?void 0:l[i],n=!!(t?null==a||null==(d=a[e4])?void 0:d[t]:null==a?void 0:a[e7])}catch(e){null==o||o.withError(e).withData({edition:i,teamId:t}).error("NEWSLETTER_WIDGET_READ_SUBSCRIPTION_ERROR")}a||h(n)})(),()=>{a=!0}},[e,u,c,i,t,o]);let g=(0,l.useCallback)(async l=>{if(!e||!a||!n){f("error"),null==o||o.withData({edition:i,enabled:e,formId:a,listId:n,teamId:t}).error("NEWSLETTER_WIDGET_SUBSCRIBE_MISCONFIGURED");return}f("submitting");try{await e9.A.post(r,{...d?{token:d}:{email:l},listId:n,formId:a}),f("success");let{db:e}=(0,s.v)();if(c&&e)try{await (0,e3.BN)((0,e3.H9)(e,Q.N5,c.uid),{consents:{[i]:t?{[e4]:{[t]:!0}}:{[e7]:!0}}},{merge:!0})}catch(e){null==o||o.withError(e).withData({edition:i,teamId:t}).error("NEWSLETTER_WIDGET_MIRROR_SUBSCRIPTION_ERROR")}}catch(e){f("error"),null==o||o.withError(e).withData({edition:i,endpoint:r,formId:a,listId:n,teamId:t}).error("NEWSLETTER_WIDGET_SUBSCRIBE_ERROR")}},[i,e,r,a,n,o,t,c,d]),v=!!e&&m;return{isLoggedIn:!u&&!!d,isLoading:void 0===v,isSubscribed:!0===v||"success"===p,wasSubscribed:v,isSubmitting:"submitting"===p,hasSubmitError:"error"===p,subscribe:g}},te=e=>{var t,a,n;let{variant:r,team:l,isSmall:o=!1,className:c,isLoading:u=!1,isLoggedIn:m=!1,isSubscribed:p=!1,wasSubscribed:f,isSubmitting:g=!1,hasSubmitError:b=!1,onSubscribe:_,...j}=e,w=(0,s.o)(),y=(0,d.t)(),N=ee(),{teamPlaceholderImageUrl:A,fallbackImagePlaceholder:E}=(0,S.t)();if(y&&!1===N)return null;let T="team"===r,k=((e,t)=>{let{isSubscribed:a,isTeam:s,teamName:n}=t;return a?{title:e("component.teamNewsletter.subscribed"),description:s?e("component.teamNewsletter.successDescription",{param1:n}):e("component.teamNewsletter.successRondoDescription")}:{title:s?e("component.teamNewsletter.title",{param1:n}):e("component.rondoNewsletter.title"),description:e(s?"component.teamNewsletter.description":"component.rondoNewsletter.description")}})(w,{isSubscribed:p,isTeam:T,teamName:null!=(t=null==l?void 0:l.name)?t:""}),C=T?A:E;return(0,i.jsx)("section",{className:h("fco-newsletter-widget",{"fco-newsletter-widget--small":o},c),children:(0,i.jsxs)("div",{className:"fco-newsletter-widget__card",children:[!0===f?null:(0,i.jsx)(x._V,{src:T?null!=(a=null==l?void 0:l.crestUrl)?a:C:"/assets/images/newsletter/the-rondo.png",alt:null!=(n=null==l?void 0:l.name)?n:"logo",width:64,height:64,fit:"contain",priority:x.Iu.LOW,className:h("fco-newsletter-widget__logo",{"fco-newsletter-widget__logo--rondo":!T,"fco-newsletter-widget__logo--faded":p}),onError:e=>{e.currentTarget.onerror=null,e.currentTarget.src=C}}),p?(0,i.jsx)("span",{className:"fco-newsletter-widget__success","aria-hidden":!0,children:(0,i.jsx)(v.t,{glyph:"circle-tick-filled"})}):null,(0,i.jsx)("h2",{className:"fco-newsletter-widget__title",children:k.title}),(0,i.jsx)("p",{className:"fco-newsletter-widget__description",children:k.description}),(0,i.jsx)("hr",{className:"fco-newsletter-widget__divider"}),(0,i.jsx)("div",{className:"fco-newsletter-widget__footer",children:(0,i.jsx)(e6,{isLoading:u,isLoggedIn:m,isSubscribed:p,isSubmitting:g,hasSubmitError:b,onSubscribe:_,...j})})]})})},tt=a(73440);a(80623);var ta=e=>{let{context:t}=e,{newsletter:a,newsletterSubscription:s}=t;if(!a)return null;let{variant:n,team:r,managePreferencesAction:l,createAccountAction:o,loginAction:c}=a,{subscribe:d,...u}=s;return(0,i.jsx)(te,{..."team"===n?{variant:n,team:r}:{variant:n},...u,managePreferencesAction:l,createAccountAction:o,loginAction:c,onSubscribe:e=>void d(e),className:"fco-brand-promotion-slot__newsletter"})},ts=["GOOGLE_PREFERRED_SOURCE","APP_DOWNLOAD"],tn={GOOGLE_PREFERRED_SOURCE:e=>{let{hasClickedGooglePreferredSource:t}=e;return!t},NEWSLETTER_SIGNUP:e=>{let{newsletter:t,newsletterSubscription:a}=e;return!!((null==t?void 0:t.formId)&&t.listId)&&((null==t?void 0:t.variant)==="rondo"||!!(null==t?void 0:t.team))&&!0!==a.wasSubscribed},APP_DOWNLOAD:e=>{let{applicationName:t}=e;return!!Z(t)}},tr=(e,t)=>e.some(e=>e.widgetType===t),tl=(e,t,a)=>tr(e,t)&&tn[t](a),ti=e=>{var t,a,r,l,o,c;let{widgets:d,config:u,className:m}=e,p=(0,s.o)(),f=(0,n.t)(),{item:g}=(0,$.x)(X.n),v=e8({enabled:!!(null==u?void 0:u.newsletter)&&tr(d,"NEWSLETTER_SIGNUP"),teamId:null==u||null==(a=u.newsletter)||null==(t=a.team)?void 0:t.id,formId:null==u||null==(r=u.newsletter)?void 0:r.formId,listId:null==u||null==(l=u.newsletter)?void 0:l.listId,endpoint:null==u||null==(o=u.newsletter)?void 0:o.endpoint}),b={...u,applicationName:f,hasClickedGooglePreferredSource:!!g,
1newsletterSubscription:v},x=ts.find(e=>tl(d,e,b)),_=tl(d,"NEWSLETTER_SIGNUP",b),j=null!=(c=null==u?void 0:u.shareUrl)?c:window.location.href;return(0,i.jsxs)("section",{className:h("fco-brand-promotion-slot",m),children:[(0,i.jsxs)("div",{className:"fco-brand-promotion-slot__actions",children:[(0,i.jsx)(tt.t,{iconGlyph:"share",url:j,variant:"muted",appearance:"filled",size:"small",className:"fco-brand-promotion-slot__share",clipboardNotification:p("component.shareButton.clipboardNotification"),children:p("component.shareButton.buttonText")}),"GOOGLE_PREFERRED_SOURCE"===x?(0,i.jsx)(X.t,{buttonOnly:!0,size:"small",variant:"inverse",className:"fco-brand-promotion-slot__google"}):null,"APP_DOWNLOAD"===x?(0,i.jsx)(J,{className:"fco-brand-promotion-slot__app-download"}):null]}),_?(0,i.jsx)(ta,{context:b}):null]})},to=()=>{let{commercial:e}=(0,l.useContext)(s.t);return e};a(17332);var tc=()=>{let e=to(),[t,a]=(0,o.Wx)({triggerOnce:!0,rootMargin:"0px 0px 256px 0px"}),s=ee();return(0,l.useEffect)(()=>{if(!1!==s&&(null==e?void 0:e.enableE2Betting)!==!1&&a){let e=document.createElement("script");e.type="text/javascript",e.src="https://cdn77.v1.oddsserve.com/9b12c500.js",document.head.appendChild(e)}},[a,s,null==e?void 0:e.enableE2Betting]),(0,i.jsx)("div",{className:p()("fco-e2-component-basketball","eccc554d"),"data-key":"c3ef412cacea7ff9e1b6666fb344ea0e",ref:t})};a(97078);var td=()=>{let e=ee(),t=to(),{ref:a,inView:s}=(0,o.Wx)({triggerOnce:!0});return(0,l.useEffect)(()=>{s&&!1!==e&&(null==t?void 0:t.enableE2Betting)!==!1&&function(){var e,t;let a=document.querySelector(".acon-e2");a&&(!function(e,t,a,s,n,r,l,i,o){e[s]=e[s]||{},e[s].queue=e[s].queue||[];let c=encodeURIComponent,d,u=t.createElement(a);try{d=!e.top.location.hostname}catch(e){d=1}u.async=!0,u.type="text/java"+a,u.charset="utf-8",d=d?t.referrer:e.location.href,u.src="https://creative-cdn.oddsserve.com/unit/get.js?slots="+c(n)+"&class="+c(r)+"&key="+c(l)+"&"+a+"="+c(i)+"&url="+c(d);let m=t.getElementsByTagName(a)[0];m.parentNode.insertBefore(u,m)}(window,document,"script","oddsServeCom","oddsserve-csi-1","eccc554d","bf2137510902c2b6fe66ed01230ab46e","9b12c500"),a.id="oddsserve-csi-1",null==(t=window.oddsServeCom)||null==(e=t.queue)||e.push("oddsserve-csi-1"))}()},[s,e,null==t?void 0:t.enableE2Betting]),(0,i.jsx)("div",{ref:a,className:h("fco-e2-component-football","acon-e2")})};a(82759);var tu="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.2",tm=e=>{var t,a,n;let{loading:r,postUrl:c,...h}=e,p=(0,s.o)(),f=(0,d.t)(),g=(0,u.t)(),v=(0,N.t)(),[b,x]=(0,l.useState)(null==g||null==(t=g.facebookConsent)?void 0:t.enabled),{ref:_,inView:j}=(0,o.Wx)({triggerOnce:!0,skip:"eager"===r,initialInView:"eager"===r}),w=(null==g?void 0:g.facebookConsent)&&!1===b;return(0,l.useEffect)(()=>{var e;"boolean"==typeof(null==g||null==(e=g.facebookConsent)?void 0:e.enabled)&&x(null==g?void 0:g.facebookConsent.enabled)},[null==g||null==(a=g.facebookConsent)?void 0:a.enabled]),(0,l.useEffect)(()=>{if(!1!==f&&!1!==b&&j){var e,t;if(!document.querySelector("#fb-root")){let e=document.createElement("div");e.id="fb-root",document.body.appendChild(e)}if(document.querySelector('script[src="'.concat(tu,'"]')))null==(t=window.FB)||null==(e=t.XFBML)||e.parse();else{let e=document.createElement("script");e.src=tu,e.async=!0,e.defer=!0,document.head.appendChild(e)}}},[j,null==g?void 0:g.facebookConsent,f,b]),(null==v?void 0:v.facebook)?null:w?(0,i.jsx)(m.t,{isConsented:b,setIsConsented:()=>x(!0),socialMediaConsent:null==g?void 0:g.facebookConsent,socialMediaPurposes:null==(n=g.facebookConsent)?void 0:n.purposeIDs,toggleHeadline:p("component.consentWarning.toggleHeadline"),toggleDescription:p("component.consentWarning.toggleDescription",{param1:p("component.consentWarning.embedHeader.facebook")}),embedHeader:p("component.consentWarning.embedHeader.facebook"),legalText:p("component.consentWarning.legalTextOne",{param1:p("component.consentWarning.embedHeader.facebook")})}):(0,i.jsx)("span",{className:"fco-facebook-embed",ref:_,children:(0,i.jsx)("div",{className:"fb-post","aria-label":"Facebook post","data-href":c,"data-width":"","data-lazy":"lazy"===r,...h})})},th=a(79124),tp=a(88105);a(799);var tf="https://public.flourish.studio/resources/embed.js",tg="flourish-embed",tv=e=>{var t,a,n;let{dataSrc:r,className:c,thumbnailSrc:p,thumbnailAlt:f}=e,g=(0,s.o)(),v=(0,d.t)(),b=(0,u.t)(),x=(0,N.t)(),[_,j]=(0,l.useState)(null==b||null==(t=b.flourishConsent)?void 0:t.enabled),{ref:w,inView:y}=(0,o.Wx)({triggerOnce:!0,rootMargin:"256px"}),A=(0,l.useRef)(null),S=(0,l.useRef)(!1);(0,l.useEffect)(()=>{var e;"boolean"==typeof(null==b||null==(e=b.flourishConsent)?void 0:e.enabled)&&j(null==b?void 0:b.flourishConsent.enabled)},[null==b||null==(a=b.flourishConsent)?void 0:a.enabled]),(0,l.useEffect)(()=>{var e;if(S.current||!1===v||!1===_||(null==x?void 0:x.flourish)||!y||!A.current)return;window.Flourish=null!=(e=window.Flourish)?e:{},window.Flourish.disable_autoload=!0;let t=A.current,a=()=>{var e,a;S.current=!0,null==(a=window.Flourish)||null==(e=a.loadEmbed)||e.call(a,t)};if(window.Flourish.loadEmbed)return void a();let s=document.querySelector('script[src="'.concat(tf,'"]'));if(s)return s.addEventListener("load",a,{once:!0}),()=>s.removeEventListener("load",a);let n=document.createElement("script");n.src=tf,n.async=!0,n.addEventListener("load",a,{once:!0}),document.body.appendChild(n)},[y,_,v,null==x?void 0:x.flourish]);let E=(null==b?void 0:b.flourishConsent)&&!1===_;return(null==x?void 0:x.flourish)?null:(0,i.jsx)(i.Fragment,{children:E?(0,i.jsx)(m.t,{isConsented:_||!1,setIsConsented:()=>j(!0),socialMediaConsent:null==b?void 0:b.flourishConsent,socialMediaPurposes:null==(n=b.flourishConsent)?void 0:n.purposeIDs,toggleHeadline:g("component.consentWarning.toggleHeadline"),toggleDescription:g("component.consentWarning.toggleDescription",{param1:g("component.consentWarning.embedHeader.flourish")}),embedHeader:g("component.consentWarning.embedHeader.flourish"),legalText:g("component.consentWarning.legalTextOne",{param1:g("component.consentWarning.embedHeader.flourish")})}):(0,i.jsx)("div",{ref:e=>{A.current=e,w(e)},className:h("fco-flourish-embed",c,{[tg]:!(null==c?void 0:c.split(/\s+/).includes(tg))}),"data-src":r,children:p?(0,i.jsx)("noscript",{children:(0,i.jsx)("img",{src:p,width:"100%",alt:null!=f?f:""})}):null})})},tb=a(47276),tx=a(24972);a(76014);var t_={w:"fco-match-result-icon__w",l:"fco-match-result-icon__l",d:"fco-match-result-icon__d"},tj={w:"generic.match.win",l:"generic.match.lose",d:"generic.match.draw"},tw={w:(0,i.jsx)(q.I,{glyph:"win"}),l:(0,i.jsx)(q.I,{glyph:"lose"}),d:(0,i.jsx)(q.I,{glyph:"draw"})},ty=e=>{let{type:t,className:a,iconVersion:n,...r}=e,l=(0,s.o)();return(0,i.jsx)("div",{...r,className:p()("fco-match-result-icon",t_[t],a),children:n?tw[t]:l(tj[t])})};a(31503);var tN=e=>
1{let{startDate:t,isToday:a,teamAName:s,teamANameShort:n,teamBName:r,teamBNameShort:l,score:o,result:c,href:d,rel:u,target:m}=e;return(0,i.jsx)("div",{className:"fco-match-result-row",children:(0,i.jsxs)(Y.BP,{className:"fco-match-result-row__container",href:d,rel:u,target:m,children:[(0,i.jsx)("div",{className:"fco-match-result-row__date",children:(0,i.jsx)(tb.i,{startDate:t,isToday:a})}),(0,i.jsxs)("div",{className:"fco-match-result-row__teams",children:[(0,i.jsx)("div",{className:"fco-match-result-row__team fco-match-result-row__team--long-name",children:s}),(0,i.jsx)("div",{className:"fco-match-result-row__team fco-match-result-row__team--short-name",children:null!=n?n:s}),(0,i.jsx)(tx.N,{...o}),(0,i.jsx)("div",{className:"fco-match-result-row__team fco-match-result-row__team--long-name",children:r}),(0,i.jsx)("div",{className:"fco-match-result-row__team fco-match-result-row__team--short-name",children:null!=l?l:r})]}),c?(0,i.jsx)("div",{className:"fco-match-result-row__icon",children:(0,i.jsx)(ty,{type:c})}):null]})})};a(98323);var tA=e=>{let{label:t,unit:a="int",teamA:n,teamB:r,className:c}=e,d=(0,s.u)(),u=n+r,[m,h]=(0,l.useState)([0,0]),{ref:f,inView:g}=(0,o.Wx)({triggerOnce:!0,threshold:0});(0,l.useEffect)(()=>{g&&h([n,r])},[g,n,r]);let[v,b]=(0,l.useMemo)(()=>{let e=new Intl.Locale(d,{numberingSystem:"latn"});if("percent"===a){let t=t=>t.toLocaleString(e,{style:"percent",maximumFractionDigits:1});return[t(n/100),t(r/100)]}if("float"===a){let t=t=>t.toLocaleString(e,{style:"decimal",maximumFractionDigits:2,minimumFractionDigits:2});return[t(n),t(r)]}let t=t=>t.toLocaleString(e,{style:"decimal",maximumFractionDigits:0});return[t(n),t(r)]},[d,a,n,r]);return(0,i.jsxs)("div",{ref:f,className:p()("fco-match-stats-row",c),children:[(0,i.jsx)("div",{className:"fco-match-stats-row__label",children:t}),(0,i.jsxs)("div",{className:"fco-match-stats-row__container",children:[(0,i.jsxs)("div",{className:"fco-match-stats-row__stat",children:[(0,i.jsx)("span",{className:"fco-match-stats-row__stat-label fco-match-stats-row__stat-label--reversed",children:v}),(0,i.jsx)("progress",{className:"fco-match-stats-row__stat-progress fco-match-stats-row__stat-progress--reversed",max:u,value:m[0]})]}),(0,i.jsxs)("div",{className:"fco-match-stats-row__stat",children:[(0,i.jsx)("progress",{className:"fco-match-stats-row__stat-progress",max:u,value:m[1]}),(0,i.jsx)("span",{className:"fco-match-stats-row__stat-label",children:b})]})]})]})},tS=a(93472);a(96034);var tE=e=>{let{headerText:t,className:a,teamA:s,teamB:n,responsive:r,wrap:l,...o}=e;return(0,i.jsxs)("div",{...o,className:p()("fco-section-header",a),children:[s?(0,i.jsx)(tS._,{crestPath:s.crestPath,teamName:s.teamName,teamNameShort:s.teamNameShort,responsive:r,wrap:l,matchTeamCrestImageProps:{height:"32"}}):null,(0,i.jsx)("h3",{className:"fco-section-header__header",children:t}),n?(0,i.jsx)(tS._,{crestPath:n.crestPath,teamName:n.teamName,teamNameShort:n.teamNameShort,responsive:r,wrap:l,reversed:!0,matchTeamCrestImageProps:{height:"32"}}):null]})};a(29080);var tT=e=>{let{matches:t,teamA:a,teamB:n,stats:r,customHeaderText:o}=e,c=(0,s.o)();if(!r)return null;let d=[{score:r.teamAWins,translationKey:"page.match.headToHead.wins",count:r.teamAWins,team:a},{score:r.draws,translationKey:"page.match.headToHead.draws",count:r.draws},{score:r.teamBWins,translationKey:"page.match.headToHead.wins",count:r.teamBWins,team:n}];return(0,i.jsxs)("div",{className:"fco-head-to-head",children:[(0,i.jsx)(tE,{teamA:a,teamB:n,headerText:o||c("page.match.headToHead.title",{param1:t.length,count:t.length},{ns:"matchpage"}),responsive:!0}),(0,i.jsx)("div",{className:"fco-head-to-head__scores","aria-label":"Scores",children:d.map((e,t)=>{var a;return(0,i.jsxs)("div",{className:"fco-head-to-head__team-scores",children:[(0,i.jsx)("span",{className:"fco-head-to-head__score",children:e.score}),(0,i.jsx)("span",{className:"fco-head-to-head__status",children:c(e.translationKey,{count:e.count},{ns:"matchpage"})})]},"".concat(e.translationKey,"-").concat((null==(a=e.team)?void 0:a.teamName)||t))})}),null==t?void 0:t.map((e,t)=>{var a;return(0,l.createElement)(tN,{...e,key:null!=(a=e.id)?a:"match-".concat(t)})}),(0,i.jsx)("div",{className:"fco-head-to-head__stats",children:(0,i.jsx)(tA,{teamA:r.teamAGoals,teamB:r.teamBGoals,label:c("page.match.stats.summary.goals",void 0,{ns:"matchpage"})})})]})};a(79245);var tk=()=>(0,i.jsx)("hr",{className:"fco-hr"});a(48213);var tC=e=>
1{let{teamA:t,teamB:a,toggledTeam:s="A",onChangeCallback:n,...r}=e;return(0,i.jsxs)("div",{...r,className:"fco-mobile-team-nav",children:[(0,i.jsx)("button",{className:p()("fco-mobile-team-nav__button",{"fco-mobile-team-nav__button--active":"A"===s}),"data-testid":"mobile-team-nav-button-0",onClick:()=>n("A"),children:(0,i.jsx)(tS._,{crestPath:t.crestPath,teamName:t.teamNameShort})},t.teamName),(0,i.jsx)("button",{className:p()("fco-mobile-team-nav__button",{"fco-mobile-team-nav__button--active":"B"===s}),"data-testid":"mobile-team-nav-button-1",onClick:()=>n("B"),children:(0,i.jsx)(tS._,{crestPath:a.crestPath,teamName:a.teamNameShort,reversed:!0})},a.teamName)]})};a(56524);var tL=e=>{let{title:t,teamA:a,teamB:s,toggledTeam:n,onChangeCallback:r,teamAInfo:l,teamBInfo:o}=e;return(0,i.jsxs)("div",{className:"fco-compare-team-container",children:[(0,i.jsxs)("div",{className:"fco-compare-team-container__header",children:[(0,i.jsx)(tS._,{...a}),(0,i.jsx)("h3",{className:"fco-compare-team-container__title",children:t}),(0,i.jsx)(tS._,{...s,reversed:!0})]}),(0,i.jsx)("div",{className:"fco-mobile-team-nav__wrapper",children:(0,i.jsx)(tC,{teamA:a,teamB:s,toggledTeam:n,onChangeCallback:r})}),(0,i.jsxs)("div",{className:"fco-compare-team-container__content",children:[(0,i.jsx)("div",{className:p()("fco-compare-team-container__team",{"fco-compare-team-container--active":"A"===n}),children:l}),(0,i.jsx)("div",{className:p()("fco-compare-team-container__team",{"fco-compare-team-container--active":"B"===n}),children:o})]})]})},tO=a(74552),tD=a(66e3);a(94110);var tB=e=>{let{players:t,reversed:a}=e,n=(0,s.o)();return(0,i.jsx)("ul",{className:"fco-injuries-suspensions-players",children:t.map(e=>(0,i.jsxs)("li",{className:p()("fco-injuries-suspensions-players__player",{"fco-injuries-suspensions-players__player--reversed":a}),children:[(0,i.jsx)(tO.t,{href:e.href,rel:e.rel,className:"fco-injuries-suspensions-players__player-number",children:e.number}),(0,i.jsx)(tO.t,{href:e.href,rel:e.rel,className:"fco-injuries-suspensions-players__player-name",children:e.name}),(0,i.jsxs)("div",{className:"fco-injuries-suspensions-players__event",children:[(0,i.jsx)("div",{className:"fco-injuries-suspensions-players__event-info",children:"injury"===e.injuryOrSuspension.type?(0,i.jsxs)(i.Fragment,{children:[e.injuryOrSuspension.injury?(0,i.jsx)("span",{className:"fco-injuries-suspensions-players__event-info-type",children:e.injuryOrSuspension.injury}):null,e.injuryOrSuspension.displayDate?(0,i.jsx)("span",{className:"fco-injuries-suspensions-players__event-info-time",children:e.injuryOrSuspension.displayDate}):null]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"fco-injuries-suspensions-players__event-info-type",children:n("page.match.eventsLegend.misconductSuspension",void 0,{ns:"matchpage"})}),!!e.injuryOrSuspension.numberOfMatches&&(0,i.jsx)("span",{className:"fco-injuries-suspensions-players__event-info-time",children:n("page.match.lineups.suspension.matchBans",{param1:e.injuryOrSuspension.numberOfMatches,count:e.injuryOrSuspension.numberOfMatches},{ns:"matchpage"})})]})}),(0,i.jsx)(tD.C,{eventType:"injury"===e.injuryOrSuspension.type?"INJURY":"MISCONDUCT_SUSPENSION"})]})]},e.id))})};a(75161);var tI=e=>{var t,a,n;let{loading:r="lazy",children:c,...h}=e,p=(0,d.t)(),f=(0,s.o)(),g=(0,u.t)(),v=(0,N.t)(),[b,x]=(0,l.useState)(null==g||null==(t=g.instagramConsent)?void 0:t.enabled),{ref:_,inView:j}=(0,o.Wx)({triggerOnce:!0,skip:"eager"===r,initialInView:"eager"===r,rootMargin:"700px"}),w=(null==g?void 0:g.instagramConsent)&&!1===b;return(0,l.useEffect)(()=>{var e;"boolean"==typeof(null==g||null==(e=g.instagramConsent)?void 0:e.enabled)&&x(null==g?void 0:g.instagramConsent.enabled)},[null==g||null==(a=g.instagramConsent)?void 0:a.enabled]),(0,l.useEffect)(()=>{if(!1!==p&&!1!==b&&j)if(window&&(e=>"object"==typeof e&&!!e&&"Embeds"in e&&"object"==typeof e.Embeds&&null!==e.Embeds&&"process"in e.Embeds&&"function"==typeof e.Embeds.process)(window.instgrm))window.instgrm.Embeds.process();else{let e=document.createElement("script");e.src="https://www.instagram.com/embed.js",document.head.appendChild(e)}},[j,null==g?void 0:g.instagramConsent,b,p]),(null==v?void 0:v.instagram)?null:w?(0,i.jsx)(m.t,{isConsented:b,setIsConsented:()=>x(!0),socialMediaConsent:null==g?void 0:g.instagramConsent,socialMediaPurposes:null==(n=g.instagramConsent)?void 0:n.purposeIDs,toggleHeadline:f("component.consentWarning.toggleHeadline"),toggleDescription:f("component.consentWarning.toggleDescription",{param1:f("component.consentWarning.embedHeader.instagram")}),embedHeader:f("component.consentWarning.embedHeader.instagram"),legalText:f("component.consentWarning.legalTextOne",{param1:f("component.consentWarning.embedHeader.instagram")})}):(0,i.jsx)("span",{ref:_,className:"fco-instagram-embed","aria-label":"Instagram embed",...h,children:j?c:null})},tF=a(4497);a(91567);var tP=e=>{let{players:t,reversed:a,...s}=e;return(0,i.jsx)("ul",{className:"fco-lineup-players",...s,children:t.map(e=>(0,i.jsxs)("li",{className:p()("fco-lineup-players__player",{"fco-lineup-players__player--reversed":a}),children:[(0,i.jsx)(tO.t,{href:e.href,rel:e.rel,className:"fco-lineup-players__player-number",children:e.number}),(0,i.jsx)(tO.t,{href:e.href,rel:e.rel,className:"fco-lineup-players__player-name",children:e.name}),(0,i.jsx)("div",{className:"fco-lineup-players__events",children:e.events.map((t,a)=>(0,i.jsxs)("div",{className:"fco-lineup-players__event",children:[t.icon,(0,i.jsx)(tF.p,{minute:t.period.minute,extra:t.period.extra})]},e.id+t.period.minute+t.period.extra+a))})]},e.id))})};a(33178);var tV=e=>{let{title:t,children:a,className:s,titleTag:n="h3",extraTitleElement:r}=e;return a?(0,i.jsxs)("div",{className:p()(["fco-box-with-title",null!=s?s:void 0]),"data-testid":"box-with-title",children:[r?(0,i.jsxs)("div",{className:"fco-box-with-title__title-container","data-testid":"box-with-title-container",children:[(0,i.jsx)(n,{className:"fco-box-with-title__title",children:t}),r]}):(0,i.jsx)(n,{className:"fco-box-with-title__title",children:t}),(0,i.jsx)("div",{className:"fco-box-with-title__body","data-testid":"box-with-title-body",children:a})]}):null};a(87031);var tM=[],tW=e=>
1{let{competitionLogo:t,competitionName:a,roundName:n,stadiumName:r,date:l,competitionHref:o,additionalDetails:c=tM,className:d}=e,u=(0,s.o)(),m="";a&&n&&a.includes(n)?m=a:a&&n?m="".concat(a," - ").concat(n):a&&(m=a);let h="".concat((0,E.s)(new Date(String(l)),{day:"numeric",month:"short",year:"numeric"}),", ").concat((0,E.c)(new Date(String(l)),{hour:"numeric",minute:"numeric"})),f=[{image:t,text:m,href:o,rel:"noopener noreferer"},{glyph:"timer",text:l?h:void 0},{glyph:"stadium",text:r},...c||[]].filter(e=>{let{text:t}=e;return!!t}),g=0===f.length,v=u("page.match.details.title",void 0,{ns:"matchpage"});if(!g)return(0,i.jsx)(tV,{title:v,className:p()("fco-match-details",{[d]:!!d}),children:(0,i.jsx)("ul",{className:"fco-match-details__list",children:f.map((e,t)=>{let{glyph:a,text:s,href:n,rel:r,image:l}=e;return(0,i.jsxs)("li",{className:"fco-match-details__list-item",children:[l?(0,i.jsx)(x._V,{src:l,alt:"".concat(s," image"),height:"24"}):null,!l&&a?(0,i.jsx)(q.I,{glyph:a}):null,(0,i.jsx)(tO.t,{href:n,rel:r,className:"fco-match-details__list-item-info",children:s})]},"".concat(t,"_").concat(s))})})})},tR=a(29885);a(80665);var tH=e=>{let{data:t}=e,[a,s]=(0,l.useState)("0");if(!t.length)return null;let{matches:n,stats:r}=t[Number(a)];return(0,i.jsxs)("div",{className:"fco-match-form-team",children:[(0,i.jsx)(tR.t,{options:t.map((e,t)=>{let{name:a}=e;return{text:a,value:String(t)}}),onOptionSelect:e=>{s(e.target.value)},preselectedOption:a}),(0,i.jsx)("div",{className:"fco-match-form-team__matches",children:n.map((e,t)=>{var a;return(0,i.jsx)(tN,{...e},null!=(a=e.id)?a:"match-".concat(t))})}),r.length>0&&(0,i.jsx)("div",{className:"fco-match-form-team__stats",children:r.map(e=>{let{title:t,value:a}=e;return(0,i.jsxs)("div",{className:"fco-match-form-team__stats-row",children:[(0,i.jsx)("span",{className:"fco-match-form-team__stats-title",children:t}),(0,i.jsx)("span",{className:"fco-match-form-team__stats-value",children:a})]},t)})})]})},tU=e=>{let{teamAMatchData:t,teamBMatchData:a,...s}=e;return t.every(e=>e.matches.length<=0)||a.every(e=>e.matches.length<=0)?null:(0,i.jsx)(tL,{...s,teamAInfo:(0,i.jsx)(tH,{data:t.filter(e=>!!e.matches.length)}),teamBInfo:(0,i.jsx)(tH,{data:a.filter(e=>!!e.matches.length)})})},tG=a(55052),tq=a(76876);a(35753);var tY=e=>{let{date:t,controlledCountdownValues:a}=e,n=(0,s.o)(),{days:r,hours:o,minutes:c,seconds:d}=((e,t)=>{let a=void 0!==t,s=void 0!==e,n=s?new Date(e).getTime():0,[r,i]=(0,l.useState)(s?n-new Date().getTime():0);return(0,l.useEffect)(()=>{if(a)return;let e=setInterval(()=>{i(n-new Date().getTime())},1e3);return r<0&&clearInterval(e),()=>clearInterval(e)},[n,r,a]),a?t:(e=>{let t=Math.floor(e/1e3),a=Math.floor(t/60),s=Math.floor(a/60);return{seconds:t%60,minutes:a%60,hours:s%24,days:Math.floor(s/24)}})(r)})(t,a);return!(d<0)&&(t||a)?(0,i.jsxs)("div",{className:"fco-countdown-clock",children:[(0,i.jsxs)("span",{className:"fco-countdown-clock__time",children:[r,n("generic.days.short")]}),(0,i.jsxs)("span",{className:"fco-countdown-clock__time",children:[o,n("generic.hours.short")]}),(0,i.jsxs)("span",{className:"fco-countdown-clock__time",children:[c,n("generic.minutes.short")]}),(0,i.jsxs)("span",{className:"fco-countdown-clock__seconds",children:[d,n("generic.seconds.short")]})]}):null};a(62345);var tz=e=>{let{expiryTime:t,resultsAvailable:a,totalNumberOfVotes:n,selectedAnswer:r}=e,o=(0,s.o)(),c=(0,l.useMemo)(()=>{if(!t)return null;let e=new Date;return Math.floor((t.getTime()-e.getTime())/864e5)},[t]),d=!!t&&new Date>=t;return(0,i.jsxs)("div",{className:"fco-footer",children:[a?(0,i.jsx)("span",{className:"fco-footer__all-votes",children:o("generic.votes",{param1:n,count:n})}):null,t?(0,i.jsx)(i.Fragment,{children:d?(0,i.jsxs)("div",{className:h("fco-footer__expired",{"fco-footer__expired--hidden":r}),children:[(0,i.jsx)("p",{className:"fco-footer__expired-text",children:o("component.poll.expired")}),(0,i.jsx)(q.I,{glyph:"lock"})]}):(0,i.jsxs)("span",{className:"fco-footer__expire-days",children:[c," ",o("generic.days.full")]})}):null,r?(0,i.jsxs)("span",{className:"fco-footer__user-voted",children:[(0,i.jsx)("p",{className:"fco-footer__user-voted-text",children:o("component.poll.youVoted")}),(0,i.jsx)(q.I,{glyph:"confirm"})]}):null]})},tK=e=>{var t,a,n,r;let{interstitial:o,urlLink:c,onClose:d,isDesktop:u}=e,m=(0,s.o)(),[h,p]=(0,l.useState)(5);return(0,l.useEffect)(()=>
1{if(u)return;if(h<=0)return void d();let e=setInterval(()=>p(e=>e-1),1e3);return()=>clearInterval(e)},[h,u,d]),(0,i.jsx)("div",{className:"fco-poll-interstitial","data-testid":"interstitial","aria-label":"Interstitial",children:(0,i.jsxs)("div",{className:"fco-poll-interstitial__image-container",children:[(0,i.jsx)((null==c?void 0:c.wrapperProvider)?g.t:"a",{href:null!=(t=null==c?void 0:c.url)?t:o.url,target:"_blank",rel:"noopener".concat((null==c?void 0:c.sponsored)?" sponsored":""),"aria-label":"Interstitial link",children:(0,i.jsx)(P.t,{src:o.url,alt:null!=(a=o.alt)?a:"",width:null!=(n=o.width)?n:void 0,height:null!=(r=o.height)?r:void 0,loading:x.uj.LAZY})}),!u&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"fco-poll-interstitial__progress-bar",style:{"--counter":"5s"}}),(0,i.jsxs)("div",{className:"fco-poll-interstitial__overlay",children:[(0,i.jsx)("span",{className:"fco-poll-interstitial__timer",children:m("component.poll.secs",{param1:h})}),(0,i.jsx)("button",{className:"fco-poll-interstitial__skip",onClick:d,"aria-label":"Skip interstitial",children:(0,i.jsx)(v.t,{glyph:"skip",className:"fco-poll-interstitial__skip-icon"})})]})]})]})})},tZ=(e,t)=>0===t?"0%":"".concat(Math.round(100*e/t),"%"),tJ=e=>{var t;let{option:a,selectedAnswer:s,resultsAvailable:n,resultsMode:r,totalNumberOfVotes:l,id:o,handleVote:c}=e,d=(null!=(t=a.numberOfVotes)?t:0)+ +(s===a.id);return(0,i.jsxs)("label",{"data-vote-id":a.id,className:h("fco-options",{"fco-options--selected":s===a.id,"fco-options--after-vote":n&&s!==a.id,"fco-options--before-vote":!n}),style:{"--progress":n?tZ(d,l):0},children:[(0,i.jsx)("p",{className:"fco-options-text",children:a.name}),n?(0,i.jsx)("span",{className:"fco-options-right",children:"NUMBER_OF_VOTES"===r?d:tZ(d,l)}):(0,i.jsx)("button",{name:o,id:a.id,className:h("fco-options-button",{selected:s===a.id}),onClick:()=>c(a.id)})]})},t$=e=>{var t,a,s,n;let{sponsorText:r,cta:l,urlLink:o}=e;if(!r&&!(null==l?void 0:l.text))return null;let c=(null==o?void 0:o.wrapperProvider)?g.t:"a";return(0,i.jsxs)("div",{"aria-label":"Sponsorship footer",className:"fco-poll-sponsorship-footer",style:{"--sponsorship-cta-background-color":null!=(a=null==l?void 0:l.backgroundColor)?a:"","--sponsorship-cta-text-color":null!=(s=null==l?void 0:l.textColor)?s:""},children:[r?(0,i.jsx)("span",{className:"fco-poll-sponsorship-footer__text","data-testid":"sponsor-text",children:r}):null,(null==l?void 0:l.text)?(0,i.jsx)(c,{"aria-label":"Sponsorship CTA",href:null!=(n=null==o?void 0:o.url)?n:"",target:"_blank",className:"fco-poll-sponsorship-footer__cta","data-testid":"sponsorship-cta",rel:"noopener".concat((null==(t=l.urlLink)?void 0:t.sponsored)?" sponsored":""),children:l.text}):null]})},tX=e=>{let{expiryTime:t}=e,a=(0,s.o)();return(0,i.jsxs)("div",{className:"fco-thank-you","aria-label":"Thank you screen",children:[(0,i.jsx)(q.I,{glyph:"lock"}),(0,i.jsx)("h3",{className:"fco-thank-you-heading",children:a("component.poll.thanks")}),(0,i.jsx)("p",{className:"fco-thank-you-results-text",children:a("component.poll.results")}),(0,i.jsx)(tY,{date:t})]})},tQ=e=>{var t,a,s,n;let{id:r,active:c,question:d,answers:u,resultsMode:m,expiryTime:p,closeTime:f,onVote:g,onImpression:v,className:b,sponsorship:_}=e,[j,w]=(0,l.useState)(!1),y=Date.now(),{ref:N,inView:A}=(0,o.Wx)({triggerOnce:!0,threshold:.75});(0,l.useEffect)(()=>{A&&v&&v()},[A,v]);let S=(0,l.useMemo)(()=>new tq.g("poll-".concat(r),{type:"local"}),[r]),[E,T]=(0,l.useState)(void 0);(0,l.useEffect)(()=>{var e;T(null!=(e=S.getItem())?e:void 0)},[S]);let k=e=>{S.setItem(e),g(e),T(e),(null==_?void 0:_.interstitial)&&w(!0)},C=(0,l.useMemo)(()=>{let e=p&&y>p.getTime();return!!E||e||!c},[c,p,y,E]),L=!!E&&c&&null==u.numberOfVotes,O=(0,l.useMemo)(()=>{var e;return(null!=(e=u.numberOfVotes)?e:0)+ +!!E},[u.numberOfVotes,E]);return!c&&null==u.numberOfVotes||f&&y>f.getTime()?null:(0,i.jsxs)("div",{className:h("fco-poll-widget",b),ref:N,style:(null==_?void 0:_.borderColor)?{"--poll-border-color":_.borderColor}:void 0,children:[!!(null==_?void 0:_.logo)&&(0,i.jsx)(P.t,{className:"fco-poll-widget__sponsorship-logo",src:_.logo.url,alt:null!=(t=_.logo.alt)?t:"",loading:x.uj.LAZY,"aria-label":"Sponsorship logo"}),(0,i.jsx)("h2",{className:h("fco-poll-widget__question",{"fco-poll-widget__question--when-thank-you":L}),children:d}),(0,i.jsxs)("div",{className:"fco-poll-widget__voting-area",children:[(0,i.jsxs)("div",{className:"fco-poll-widget__options fco-poll-widget__options--count-".concat(u.options.length),children:[L?(0,i.jsx)(tX,{expiryTime:p}):null,L?null:u.options.map(e=>(0,i.jsx)(tJ,{option:e,selectedAnswer:E,resultsAvailable:C,resultsMode:m,totalNumberOfVotes:O,id:r,handleVote:k},e.id))]}),(C||L)&&(null==_?void 0:_.interstitial)?(0,i.jsx)("div",{className:"fco-poll-widget__interstitial--inline","data-testid":"interstitial-inline",children:(0,i.jsx)(tK,{interstitial:_.interstitial,urlLink:null!=(a=_.urlLink)?a:null,onClose:()=>{},isDesktop:!0})}):null]}),(0,i.jsx)(tz,{expiryTime:null!=p?p:null,resultsAvailable:C,totalNumberOfVotes:O,selectedAnswer:E}),!!_&&(0,i.jsx)(t$,{sponsorText:_.sponsorText,cta:_.cta,urlLink:null!=(s=_.urlLink)?s:null}),j&&(null==_?void 0:_.interstitial)?(0,i.jsx)("div",{className:"fco-poll-widget__interstitial--overlay","data-testid":"interstitial-overlay",children:(0,i.jsx)(tK,{interstitial:_.interstitial,urlLink:null!=(n=_.urlLink)?n:null,onClose:()=>{w(!1)}})}):null]})},t0=a(29414),t1=a(67160),t2=a(47327),t5=a(28891);a(24329);var t6="Related Topics",t3=e=>{var t;let{title:a,tags:s,className:c}=e,{ref:d,inView:u}=(0,o.Wx)({triggerOnce:!0,threshold:.25}
1),m=(null!=(t=(0,n.t)())?t:"").toLowerCase();if((0,l.useEffect)(()=>{u&&(0,r.t)({platform:m,category:t6,action:"Related Topics Impression"})},[u,m]),!(null==s?void 0:s.length))return null;let p=s.length<5?[s]:(e=>{let t=e.map(e=>(e=>e.name.length+4+6*!!e.favourite)(e)),a=t.reduce((e,t)=>e+t,0),s=1,n=1/0,r=0;for(let l=0;l<e.length-1;l+=1){let i=Math.abs((r+=t[l])+ +l-(a-r+ +(e.length-l-2)));i<n&&(n=i,s=l+1)}return[e.slice(0,s),e.slice(s)]})(s);return(0,i.jsxs)("section",{ref:d,className:h("fco-tag-cloud",c),children:[a?(0,i.jsx)("h2",{className:"fco-tag-cloud__title",children:a}):null,(0,i.jsx)("div",{className:"fco-tag-cloud__tags",children:p.map((e,t)=>(0,i.jsx)("ul",{className:"fco-tag-cloud__row",children:e.map(e=>(0,i.jsx)("li",{children:(0,i.jsx)(t5.R,{size:"sm",...e})},e.id))},t))})]})},t9=a(90377),t4=e=>{var t,a,n;let{id:r,iframeProps:c,divProps:p}=e,{className:f,...g}=null!=p?p:{},v=(0,s.o)(),b=(0,d.t)(),x=(0,u.t)(),_=(0,N.t)(),j=(0,l.useMemo)(()=>{var e;return null!=(e=null==c?void 0:c.title)?e:"riddle-embed-".concat((0,t9.Ak)())},[null==c?void 0:c.title]),[w,y]=(0,l.useState)(null==x||null==(t=x.riddleConsent)?void 0:t.enabled),{ref:A,inView:S}=(0,o.Wx)({triggerOnce:!0,rootMargin:"256px"}),E=(0,l.useRef)(null);(0,l.useEffect)(()=>{var e;"boolean"==typeof(null==x||null==(e=x.riddleConsent)?void 0:e.enabled)&&y(null==x?void 0:x.riddleConsent.enabled)},[null==x||null==(a=x.riddleConsent)?void 0:a.enabled]),(0,l.useEffect)(()=>{var e,t,a,s;if(!1!==b&&!1!==w&&S&&(null==(t=E.current)||null==(e=t.querySelector("iframe"))||e.setAttribute("src",null!=(a=null==c?void 0:c.src)?a:"https://www.riddle.com/embed/a/".concat(r)),!document.querySelector('script[src="https://www.riddle.com/embed/build-embedjs/embedV2.js"]'))){let e=document.createElement("script");e.src="https://www.riddle.com/embed/build-embedjs/embedV2.js",null==(s=E.current)||s.appendChild(e)}},[S,w,b,null==c?void 0:c.src,r]);let T=(null==x?void 0:x.riddleConsent)&&!1===w;return(null==_?void 0:_.riddle)?null:(0,i.jsx)(i.Fragment,{children:T?(0,i.jsx)(m.t,{isConsented:w||!1,setIsConsented:()=>y(!0),socialMediaConsent:null==x?void 0:x.riddleConsent,socialMediaPurposes:null==(n=x.riddleConsent)?void 0:n.purposeIDs,toggleHeadline:v("component.consentWarning.toggleHeadline"),toggleDescription:v("component.consentWarning.toggleDescription",{param1:v("component.consentWarning.embedHeader.riddle")}),embedHeader:v("component.consentWarning.embedHeader.riddle"),legalText:v("component.consentWarning.legalTextOne",{param1:v("component.consentWarning.embedHeader.riddle")})}):(0,i.jsx)("div",{ref:e=>{E.current=e,A(e)},className:h("fco-riddle-embed","riddle2-wrapper",f),...g,children:(0,i.jsx)("iframe",{title:j,allow:"autoplay",referrerPolicy:"strict-origin",loading:"lazy",src:void 0})})})};a(95475);var t7=e=>{let{opponentImage:t,opponentName:a,outcome:n,homeScore:r,awayScore:l,href:o,rel:c,isLastMatch:d=!1}=e,u=(0,s.o)(),m={win:u("generic.match.win"),draw:u("generic.match.draw"),lose:u("generic.match.lose")}[n],p=null!==r&&null!==l;return(0,i.jsxs)(Y.BP,{href:o,rel:c,className:h("fco-match-form-pill","fco-match-form-pill--".concat(n),{"fco-match-form-pill--most-recent":d}),children:[(0,i.jsx)(x._V,{className:"fco-match-form-pill__badge",src:null==t?void 0:t.url,alt:a}),(0,i.jsxs)("div",{className:"fco-match-form-pill__result",children:[(0,i.jsx)("span",{className:"fco-match-form-pill__outcome",children:m}),p?(0,i.jsx)("span",{className:"fco-match-form-pill__score",children:"".concat(r,"-").concat(l)}):null]})]})},t8={WIN:"win",DRAW:"draw",LOSE:"lose"},ae=e=>{let{matches:t,subjectTeam:a}=e,s=(0,b.t)(),n=t.toReversed();return(0,i.jsx)("div",{className:"fco-match-form-pills",children:n.map((e,t)=>{var r;let{match:l,wdl:o}=e,{link:c}=l;return(0,i.jsx)(t7,{...(e=>{var t,a,s,n;let{match:r,subjectTeam:l}=e,{teamA:i,teamB:o,score:c}=r.match,d=(null==o?void 0:o.id)===l.id?i:o;return{opponentImage:null!=(t=null==d?void 0:d.image)?t:null,opponentName:null!=(a=null==d?void 0:d.name)?a:null,outcome:t8[r.wdl],homeScore:null!=(s=null==c?void 0:c.teamA)?s:null,awayScore:null!=(n=null==c?void 0:c.teamB)?n:null}})({match:{match:l,wdl:o},subjectTeam:a}),href:null==s?void 0:s.toMatchPage(c.id,null!=(r=c.slug)?r:"",void 0,c.routingCategorySlug||void 0),rel:(0,w.a)(c),isLastMatch:t===n.length-1},c.id)})})},at=e=>{var t;let{team:a}=e,n=(0,s.o)(),r=[null==a?void 0:a.name,n("generic.form")].filter(
1Boolean).join(" - ");return(0,i.jsxs)("div",{className:"fco-match-form-result-heading",children:[(0,i.jsx)(x._V,{className:"fco-match-form-result-heading__badge",src:null==a?void 0:a.image.url,alt:null!=(t=null==a?void 0:a.name)?t:null}),(0,i.jsx)("p",{className:"fco-match-form-result-heading__title",children:r})]})},aa=e=>{let{options:t,value:a,onChange:s,className:n}=e;return(0,i.jsx)("div",{className:h("fco-match-form-segmented-control",n),children:t.map(e=>(0,i.jsx)("button",{type:"button",className:h("fco-match-form-segmented-control__option",{"fco-match-form-segmented-control__option--active":a===e.value}),onClick:()=>s(e.value),"aria-pressed":a===e.value,children:e.label},e.value))})},as=e=>{let{stats:t}=e,a=(0,s.o)(),{goalsScored:n,goalsConceded:r,gamesTotal:l,gamesOverTwoAndHalfGoals:o,gamesBothTeamsScored:c}=t;return(0,i.jsx)("dl",{className:"fco-match-form-stats",children:[{key:"scored-goals",label:a("component.footballMatchForm.goalsScoredAndConceded"),ariaLabel:"goals scored and conceded",value:"".concat(n,"/").concat(r)},{key:"games-over-two-goals",label:a("component.footballMatchForm.gamesOverTwoAndHalfGoals"),ariaLabel:"games over 2.5 goals",value:"".concat(o,"/").concat(l)},{key:"both-teams-scored",label:a("component.footballMatchForm.bothTeamsScored"),ariaLabel:"both teams scored",value:"".concat(c,"/").concat(l)}].map(e=>{let{key:t,label:a,ariaLabel:s,value:n}=e;return(0,i.jsxs)("div",{className:"fco-match-form-stats__row",children:[(0,i.jsx)("dt",{className:"fco-match-form-stats__label",children:a}),(0,i.jsx)("dd",{className:"fco-match-form-stats__value","aria-label":s,children:n})]},t)})})},an=e=>{let{team:t,formDataTotal:a,formDataHomeVAway:n,altSegment:r}=e,o=(0,s.o)(),[c,d]=(0,l.useState)(a?"all":"home-away"),u="all"===c?a:n;if(!t||!u)return null;let m=a&&n?(0,i.jsx)(aa,{options:[{value:"all",label:o("generic.all")},{value:"home-away",label:o("generic.".concat(r))}],value:c,onChange:d}):null;return(0,i.jsxs)("section",{className:"fco-match-form-result",children:[(0,i.jsx)(at,{team:t}),(0,i.jsxs)("div",{className:"fco-match-form-result__body",children:[m,(0,i.jsx)(ae,{matches:u.matches,subjectTeam:t}),(0,i.jsx)("div",{className:"fco-match-form-result__divider"}),(0,i.jsx)(as,{stats:u.stats})]})]})},ar=e=>{let{footballMatchForm:t,footballTeams:a,className:s}=e;if(!t)return null;let{teamATotal:n,teamAHvA:r,teamBTotal:l,teamBHvA:o}=t;return(0,i.jsx)("div",{className:h("fco-football-match-form","fco-without-article-body","without-article-styling",s),children:(0,i.jsxs)("div",{className:"fco-football-match-form__cards",children:[(0,i.jsx)(an,{team:a.teamA,formDataTotal:n,formDataHomeVAway:r,altSegment:"home"}),(0,i.jsx)(an,{team:a.teamB,formDataTotal:l,formDataHomeVAway:o,altSegment:"away"})]})})},al=a(24562),ai=a(97478);a(16072);var ao=e=>{var t;let{team:a,href:s}=e,{teamPlaceholderImageUrl:n}=(0,S.t)();return(0,i.jsx)(Y.BP,{href:s,className:"fco-head2head-widget__crest",children:(null==a||null==(t=a.image)?void 0:t.url)?(0,i.jsx)(P.t,{src:a.image.url,alt:a.image.alt||a.name||"",onError:e=>{e.currentTarget.onerror=null,e.currentTarget.src=n},loading:x.uj.LAZY}):(0,i.jsx)("img",{className:"fco-image",src:n,alt:"team crest placeholder",loading:"lazy"})})},ac=e=>{var t,a;let{teamA:s,teamB:n,teamAHref:r,teamBHref:l,teamAWins:o,draws:c,teamBWins:d,drawLabel:u}=e;return(0,i.jsxs)("div",{className:h("fco-head2head-widget__pills",{"fco-head2head-widget__pills--fallback-colors":!(null==s||null==(t=s.colors)?void 0:t.length)||!(null==n||null==(a=n.colors)?void 0:a.length)}),children:[(0,i.jsxs)("div",{className:"fco-head2head-widget__pills-header",children:[(0,i.jsx)(ao,{team:s,href:r}),(0,i.jsx)("span",{className:"fco-head2head-widget__pills-header-label",children:u}),(0,i.jsx)(ao,{team:n,href:l})]}),(0,i.jsxs)("div",{className:"fco-head2head-widget__pills-row",children:[(0,i.jsx)("div",{className:"fco-head2head-widget__pill fco-head2head-widget__pill--team-a",children:o}),(0,i.jsx)("div",{className:"fco-head2head-widget__pill fco-head2head-widget__pill--draws",children:c}),(0,i.jsx)("div",{className:"fco-head2head-widget__pill fco-head2head-widget__pill--team-b",children:d})]})]})},ad=e=>null==e?"—":String(e),au=e=>{let{variant:t,label:a,teamAValue:s,teamBValue:n,value:r=0,total:l=0,className:o}=e;if("ratio"===t)return(0,i.jsxs)("div",{className:h("fco-head2head-widget__stat-row","fco-head2head-widget__stat-row--ratio",o),children:[(0,i.jsxs)("div",{className:"fco-head2head-widget__stat-header fco-head2head-widget__stat-header--center",children:[(0,i.jsx)("span",{className:"fco-head2head-widget__stat-label",children:a}),(0,i.jsxs)("span",{className:"fco-head2head-widget__stat-value",children:[r,"/",l]}
1)]}),(0,i.jsx)("progress",{className:"fco-head2head-widget__bar fco-head2head-widget__bar--ratio",max:Math.max(l,1),value:r})]});if("values"===t)return(0,i.jsxs)("div",{className:h("fco-head2head-widget__stat-row","fco-head2head-widget__stat-row--values",o),children:[(0,i.jsx)("span",{className:"fco-head2head-widget__stat-value",children:ad(s)}),(0,i.jsx)("span",{className:"fco-head2head-widget__stat-label",children:a}),(0,i.jsx)("span",{className:"fco-head2head-widget__stat-value fco-head2head-widget__stat-value--end",children:ad(n)})]});let c=Math.max((null!=s?s:0)+(null!=n?n:0),1);return(0,i.jsxs)("div",{className:h("fco-head2head-widget__stat-row","fco-head2head-widget__stat-row--comparison",o),children:[(0,i.jsxs)("div",{className:"fco-head2head-widget__stat-header",children:[(0,i.jsx)("span",{className:"fco-head2head-widget__stat-value",children:null!=s?s:0}),(0,i.jsx)("span",{className:"fco-head2head-widget__stat-label",children:a}),(0,i.jsx)("span",{className:"fco-head2head-widget__stat-value fco-head2head-widget__stat-value--end",children:null!=n?n:0})]}),(0,i.jsxs)("div",{className:"fco-head2head-widget__bars",children:[(0,i.jsx)("progress",{className:"fco-head2head-widget__bar fco-head2head-widget__bar--team-a",max:c,value:null!=s?s:0}),(0,i.jsx)("progress",{className:"fco-head2head-widget__bar fco-head2head-widget__bar--team-b",max:c,value:null!=n?n:0})]})]})},am=e=>{var t,a;return e?{id:e.id,name:e.name,codeName:e.code,image:{url:null!=(a=null==(t=e.image)?void 0:t.url)?a:""}}:null},ah=e=>{var t,a,n,r,l,o,c;let{footballTeams:d,footballMatchH2H:u,teamAPosition:m,teamBPosition:p,customHeaderText:f,className:g,withBorder:v=!1}=e,x=(0,s.o)(),_=(0,s.c)(),j=(0,b.t)(),w=null==u?void 0:u.stats;if(!w)return null;let y=null!=(n=null==d?void 0:d.teamA)?n:null,N=null!=(r=null==d?void 0:d.teamB)?r:null,A=null!=(l=null==u?void 0:u.matches)?l:[],S=A.length,E=e=>{var t,a;return e&&j?j.toTeamPage(e.id,j.getTeamSlug({name:null!=(t=e.name)?t:void 0,longName:null!=(a=e.long)?a:void 0})):void 0},{teamAColor:T,teamBColor:k}=(null==y||null==(t=y.colors)?void 0:t.length)&&(null==N||null==(a=N.colors)?void 0:a.length)?(0,al.t)({teamAColors:null!=(o=null==y?void 0:y.colors)?o:[],teamBColors:null!=(c=null==N?void 0:N.colors)?c:[],mode:"dark"===_?"DARK":"LIGHT"}):{teamAColor:"#ED1B2E",teamBColor:"#024594"},C=null!=m||null!=p;return(0,i.jsxs)("div",{className:h("fco-head2head-widget",g,{"fco-head2head-widget--with-border":v}),style:{...T&&{"--team-a-color":T},...k&&{"--team-b-color":k}},children:[(0,i.jsx)("h3",{className:"fco-head2head-widget__heading",children:f||x("component.gameDay.headToHead.heading")}),(0,i.jsx)(ac,{teamA:y,teamB:N,teamAHref:E(y),teamBHref:E(N),teamAWins:w.teamAWins,draws:w.draws,teamBWins:w.teamBWins,drawLabel:x("generic.draw")}),A.length>0?(0,i.jsx)("div",{className:"fco-head2head-widget__matches",children:(0,i.jsx)(ai.S,{matchListItems:A.map(e=>({id:e.id,href:((e,t)=>{var a,s,n,r,l,i,o,c;return t?t.toMatchPage(e.id,t.getMatchSlug({name:null!=(l=null==(a=e.teamA)?void 0:a.name)?l:void 0,longName:null!=(i=null==(s=e.teamA)?void 0:s.long)?i:void 0},{name:null!=(o=null==(n=e.teamB)?void 0:n.name)?o:void 0,longName:null!=(c=null==(r=e.teamB)?void 0:r.long)?c:void 0})):void 0})(e,j),startDate:e.startDate,lastUpdatedAt:e.startDate,competition:e.competition?{id:e.competition.id,name:e.competition.name}:{id:"",name:""},period:null,status:e.status,teamA:am(e.teamA),teamB:am(e.teamB),redCards:{teamA:0,teamB:0},score:e.score,aggregateScore:null,penaltyScore:null,tvChannels:[]})),showMatchListItemsHeader:!0})}):null,(0,i.jsxs)("div",{className:"fco-head2head-widget__stats",children:[(0,i.jsx)(au,{variant:"comparison",label:x("component.gameDay.headToHead.goals"),teamAValue:w.teamAGoals,teamBValue:w.teamBGoals}),(0,i.jsx)(au,{variant:"ratio",label:x("component.gameDay.headToHead.gamesOverXGoals",{param1:2.5}),value:w.gamesOverTwoAndHalf,total:S}),(0,i.jsx)(au,{variant:"ratio",label:x("component.footballMatchForm.bothTeamsScored"),value:w.gamesBothTeamsScored,total:S}),C?(0,i.jsx)(au,{variant:"values",label:x("component.gameDay.headToHead.position"),teamAValue:m,teamBValue:p}):null]})]})},ap=a(90783);a(41057);var af=e=>{let{options:t,value:a,onChange:s,className:n,...r}=e;return(0,i.jsx)("div",{...r,className:p()("fco-segmented-control",n),children:t.map(e=>(0,i.jsxs)("button",{type:"button",className:p()("fco-segmented-control__option",{"fco-segmented-control__option--active":a===e.value}),onClick:()=>s(e.value),"aria-pressed":a===e.value,children:[e.icon?(0,i.jsx)("span",{className:"fco-segmented-control__icon",children:e.icon}):null,(0,i.jsx)("span",{className:"fco-segmented-control__label",children:e.label})]},e.value))})};function ag(e){return!!(e&&(e.injuries.length>0||e.suspensions.length>0))}a(96343);var av=e=>{var t;let{person:a,shirtNumber:s,iconType:n}=e,r=(0,b.t)(),l=function(e){switch(e){case ap.i.CARD_YELLOW:return"yellow-card";case ap.i.CARD_RED:case"MISCONDUCT_SUSPENSION":return"red-card";case"INJURY":return"injury";default:return null}}(n),o=a.verified?null==r?void 0:r.toPersonPage(a.id,r.slugify(null!=(t=a.name)?t:"")):void 0;return(0,i.jsx)("li",{className:h("fco-injuries-suspensions-row",{"fco-injuries-suspensions-row--has-link":!!a.verified}),children:(0,i.jsxs)(tO.t,{href:o,className:"fco-injuries-suspensions-row__link",children:[null!=s&&(0,i.jsx)("span",{className:"fco-injuries-suspensions-row__shirt-number",children:s}),(0,i.jsx)("div",{className:"fco-injuries-suspensions-row__player-info",children:(0,i.jsx)("span",{className:"fco-injuries-suspensions-row__player-name",children:a.name})}),l?(0,i.jsx)("div",{className:"fco-injuries-suspensions-row__events",children:(0,i.jsx)("div",{className:h("fco-injuries-suspensions-row__event","fco-injuries-suspensions-row__event--".concat(l)),children:(0,i.jsx)(v.t,{glyph:l})})}):null]})})},ab=e=>{let{injuries:t,suspensions:a}=e;return(0,i.jsxs)("ul",{className:"fco-injuries-suspensions-list",children:[t.map((e,t)=>{var a;return(0,i.jsx)(av,{person:e.person,shirtNumber:e.shirtNumber,iconType:"INJURY"},null!=(a=e.person.id)?a:"inj-".concat(t))}),a.map((e,t)=>{var a;return(0,i.jsx)(av,{person:e.person,shirtNumber:e.shirtNumber,iconType:function(e){switch(e){case"YELLOW_CARD_ACCUMULATION":return ap.i.CARD_YELLOW;case"RED_CARD":case"SENDING_OFF":return ap.i.CARD_RED;default:return"MISCONDUCT_SUSPENSION"}}(e.type)},null!=(a=e.person.id)?a:"susp-".concat(t))})]})},ax=e=>{let{twoTeams:t,activeTeam:a,homeContent:s,awayContent:n}=e;return(0,i.jsxs)("div",{className:"fco-injuries-suspensions-section-content",children:[(0,i.jsx)("div",{className:h("fco-injuries-suspensions-section-content__team-column",{"fco-injuries-suspensions-section-content__team-column--hidden-mobile":t&&"A"!==a}),children:s}),t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"fco-injuries-suspensions-section-content__vertical-divider","aria-hidden":"true"}),(0,i.jsx)("div",{className:h("fco-injuries-suspensions-section-content__team-column",{"fco-injuries-suspensions-section-content__team-column--hidden-mobile":"B"!==a}),children:n})]}):null]})},a_=e=>{var t,a;let{title:s,teamA:n,teamB:r}=e,{teamPlaceholderImageUrl:l}=(0,S.t)();return(0,i.jsxs)("div",{className:"fco-injuries-suspensions-section-header",children:[(null==n?void 0:n.crestUrl)?(0,i.jsx)(x._V,{className:"fco-injuries-suspensions-section-header__crest",src:n.crestUrl,alt:null!=(t=n.name)?t:"",loading:x.uj.LAZY,"aria-hidden":n.name?void 0:"true",onError:e=>{e.currentTarget.onerror=null,e.currentTarget.src=l}}):null,(0,i.jsx)("h3",{className:"fco-injuries-suspensions-section-header__title",children:s}),(null==r?void 0:r.crestUrl)?(0,i.jsx)(x._V,{className:"fco-injuries-suspensions-section-header__crest",src:r.crestUrl,alt:null!=(a=r.name)?a:"",loading:x.uj.LAZY,"aria-hidden":r.name?void 0:"true",onError:e=>{e.currentTarget.onerror=null,e.currentTarget.src=l}}):null]})},aj=e=>{let{teamA:t,teamB:a,teamAInfo:n,teamBInfo:r,defaultActiveTeam:o="A",className:c,...d}=e,u=(0,s.o)("matchpage"),m=(0,s.o)("generic"),[p,f]=(0,l.useState)(o),{hasContent:g}=function(e,t){let a=ag(e),s=ag(t);return{hasContent:a||s}}(t,a);if(!g)return null;let v=function(e,t,a){var s,n,r,l;return[{value:"A",label:null!=(n=null!=(s=null==e?void 0:e.code)?s:null==e?void 0:e.name)?n:a("generic.home"),icon:(null==e?void 0:e.crestUrl)?(0,i.jsx)(x._V,{src:e.crestUrl,alt:"crest",width:20,height:20,loading:x.uj.LAZY}):void 0},{value:"B",label:null!=(l=null!=(r=null==t?void 0:t.code)?r:null==t?void 0:t.name)?l:a("generic.away"),icon:(null==t?void 0:t.crestUrl)?(0,i.jsx)(x._V,{src:t.crestUrl,alt:"crest",width:20,height:20,loading:x.uj.LAZY}):void 0}]}(n,r,u),b=e=>ag(e)?(0,i.jsx)(ab,{injuries:e.injuries,suspensions:e.suspensions}):(0,i.jsx)("p",{className:"fco-injuries-suspensions__no-sidelined",children:m("generic.noSidelined")});return(0,i.jsxs)("div",{...d,className:h("fco-injuries-suspensions",c),children:[(0,i.jsx)("div",{className:"fco-injuries-suspensions__segmented-control-wrapper",children:(0,i.jsx)(af,{className:"fco-injuries-suspensions__segmented-control",options:v,value:p,onChange:e=>f(e)})}),(0,i.jsxs)("section",{className:"fco-injuries-suspensions__section",children:[(0,i.jsx)(a_,{title:u("page.match.injuriesAndSu
1spensions"),teamA:n,teamB:r}),(0,i.jsx)(ax,{twoTeams:!0,activeTeam:p,homeContent:b(t),awayContent:b(a)})]})]})};function aw(e){switch(e){case ap.i.CARD_YELLOW:return"yellow-card";case ap.i.CARD_RED:return"red-card";case ap.i.CARD_SECOND_YELLOW:return"second-yellow";case"SUB_ON":return"substitution-in";case"SUB_OFF":return"substitution-out";case ap.i.SUBSTITUTION:return"substitution";case"INJURY":return"injury";case ap.i.GOAL:case ap.i.GOAL_OWN:case"GOAL_FORMATION":return"goal-filled";case ap.i.GOAL_PENALTY:case ap.i.GOAL_PENALTY_SHOOTOUT:return"penalty-scored";case ap.i.GOAL_PENALTY_MISS:case ap.i.GOAL_PENALTY_SAVE:case ap.i.GOAL_PENALTY_SHOOTOUT_MISS:case ap.i.GOAL_PENALTY_SHOOTOUT_SAVE:return"penalty-missed";case"VAR":return"var";case"MISCONDUCT_SUSPENSION":return"red-card";case"ASSIST":return"assist"}}function ay(e){var t,a,s;let n=new Map;for(let r of e)for(let e of r.events)if("MatchGoalEvent"===e.__typename&&(null==(t=e.assist)?void 0:t.id)&&e.assist.id!==(null==(a=r.person)?void 0:a.id)){let t=e.assist.id,a=null!=(s=n.get(t))?s:[];a.push({glyph:"assist",period:e.period}),n.set(t,a)}return n}a(2833);var aN=e=>{var t;let{person:a,shirtNumber:s,iconType:n}=e,r=(0,b.t)(),l=aw(n),o=a.verified?null==r?void 0:r.toPersonPage(a.id,r.slugify(null!=(t=a.name)?t:"")):void 0;return(0,i.jsx)("li",{className:h("fco-injury-suspension-row",{"fco-injury-suspension-row--has-link":!!a.verified}),children:(0,i.jsxs)(tO.t,{href:o,className:"fco-injury-suspension-row__link",children:[null!=s&&(0,i.jsx)("span",{className:"fco-injury-suspension-row__shirt-number",children:s}),(0,i.jsx)("div",{className:"fco-injury-suspension-row__player-info",children:(0,i.jsx)("span",{className:"fco-injury-suspension-row__player-name",children:a.name})}),l?(0,i.jsx)("div",{className:"fco-injury-suspension-row__events",children:(0,i.jsx)("div",{className:h("fco-injury-suspension-row__event","fco-injury-suspension-row__event--".concat(l)),children:(0,i.jsx)(v.t,{glyph:l})})}):null]})})},aA=e=>{let{injuries:t,suspensions:a}=e;return(0,i.jsxs)("ul",{className:"fco-injury-suspension-list",children:[t.map((e,t)=>{var a;return(0,i.jsx)(aN,{person:e.person,shirtNumber:e.shirtNumber,iconType:"INJURY"},null!=(a=e.person.id)?a:"inj-".concat(t))}),a.map((e,t)=>{var a;return(0,i.jsx)(aN,{person:e.person,shirtNumber:e.shirtNumber,iconType:function(e){switch(e){case"YELLOW_CARD_ACCUMULATION":return ap.i.CARD_YELLOW;case"RED_CARD":case"SENDING_OFF":return ap.i.CARD_RED;default:return"MISCONDUCT_SUSPENSION"}}(e.type)},null!=(a=e.person.id)?a:"susp-".concat(t))})]})},aS=e=>{var t,a;let{title:s,teamA:n,teamB:r}=e,{teamPlaceholderImageUrl:l}=(0,S.t)();return(0,i.jsxs)("div",{className:"fco-match-lineups-section-header",children:[(null==n?void 0:n.crestUrl)?(0,i.jsx)(x._V,{className:"fco-match-lineups-section-header__crest",src:n.crestUrl,alt:null!=(t=n.name)?t:"",loading:x.uj.LAZY,"aria-hidden":n.name?void 0:"true",onError:e=>{e.currentTarget.onerror=null,e.currentTarget.src=l}}):null,(0,i.jsx)("h3",{className:"fco-match-lineups-section-header__title",children:s}),(null==r?void 0:r.crestUrl)?(0,i.jsx)(x._V,{className:"fco-match-lineups-section-header__crest",src:r.crestUrl,alt:null!=(a=r.name)?a:"",loading:x.uj.LAZY,"aria-hidden":r.name?void 0:"true",onError:e=>{e.currentTarget.onerror=null,e.currentTarget.src=l}}):null]})},aE=e=>{let{twoTeams:t,activeTeam:a,homeContent:s,awayContent:n}=e;return(0,i.jsxs)("div",{className:"fco-section-content",children:[(0,i.jsx)("div",{className:h("fco-section-content__team-column",{"fco-section-content__team-column--hidden-mobile":t&&"A"!==a}),children:s}),t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"fco-section-content__vertical-divider","aria-hidden":"true"}),(0,i.jsx)("div",{className:h("fco-section-content__team-column",{"fco-section-content__team-column--hidden-mobile":"B"!==a}),children:n})]}):null]})},aT=e=>{let{title:t,lineups:a,activeTeam:n,twoTeams:r}=e,l=(0,s.o)("generic"),o=e=>!function(e){return e.injuries.length>0||e.suspensions.length>0}(e)?(0,i.jsx)("p",{className:"fco-match-lineups-no-sidelined",children:l("generic.noSidelined")}):(0,i.jsx)(aA,{injuries:e.injuries,suspensions:e.suspensions});return(0,i.jsxs)("section",{className:"fco-match-lineups__section",children:[(0,i.jsx)(aS,{title:t}),(0,i.jsx)(aE,{twoTeams:r,activeTeam:n,homeContent:o(a.teamA),awayContent:o(a.teamB)})]})},ak=e=>{var t;let{manager:a}=e,s=(0,b.t)(),n=a.verified?null==s?void 0:s.toPersonPage(a.id,s.slugify(null!=(t=a.name)?t:"")):void 0;return(0,i.jsx)("ul",{className:"fco-manager-row",children:(0,i.jsx)("li",{className:h("fco-manager-row__row",{"fco-manager-row__row--has-link":!!a.verified}),children:(0,i.jsx)(tO.t,{href:n,className:"fco-manager-row__link",children:(0,i.jsx)("div",{className:"fco-manager-row__player-info",children:(0,i.jsx)("span",{className:"fco-manager-row__player-name",children:a.name})})})})})},aC=e=>{var t,a,s,n,r;let{entry:l,isSubstitute:o,additionalEvents:c}=e,d=(0,b.t)(),{person:u}=l;if(!u)return null;let{subEvents:m,otherEvents:p}=function(e){return{subEvents:e.filter(e=>"substitution-in"===e.glyph||"substitution-out"===e.glyph),otherEvents:e.filter(e=>"substitution-in"!==e.glyph&&"substitution-out"!==e.glyph)}}([...(n=l.events,r=null==(t=l.person)?void 0:t.id,n.filter(e=>{var t;return"MatchGoalEvent"!==e.__typename||(null==(t=e.assist)?void 0:t.id)!==r})).flatMap(e=>(function(e,t){switch(e.__typename){case"MatchCardEvent":{let t=aw(e.type);return t?[{glyph:t,period:e.period}]:[]}case"MatchGoalEvent":switch(e.type){case ap.i.GOAL:case ap.i.GOAL_OWN:case ap.i.GOAL_PENALTY:case ap.i.GOAL_PENALTY_SHOOTOUT:case ap.i.GOAL_PENALTY_SHOOTOUT_MISS:case ap.i.GOAL_PENALTY_SHOOTOUT_SAVE:{let t=aw(e.type);return t?[{glyph:t,period:e.period}]:[]}default:return[]}case"MatchMissedPenaltyGoalEvent":{let t=aw(e.type===ap.i.GOAL_PENALTY_SAVE?ap.i.GOAL_PENALTY_SAVE:ap.i.GOAL_PENALTY_MISS);return t?[{glyph:t,period:e.period}]:[]}case"MatchSubstitutionEvent":{let a=aw(t?"SUB_ON":"SUB_OFF");return a?[{glyph:a,period:e.period,person:t?e.out:e.in}]:[]}case"MatchVarEvent":{let t=aw("VAR");return t?[{glyph:t,period:e.period}]:[]}default:return[]}})(e,o)),...null!=c?c:[]]),f=function(e){let t=[];for(let a of e){let e=t.find(e=>e.glyph===a.glyph);e?e.count+=1:t.push({glyph:a.glyph,count:1})}return t}(p),g=null!=(a=l.score)?a:null;return(0,i.jsxs)(tO.t,{href:(null==u?void 0:u.verified)?null==d?void 0:d.toPersonPage(u.id,d.slugify(null!=(s=u.name)?s:"")):void 0,className:"fco-player-row-content",children:[null!=l.shirtNumber&&(0,i.jsx)("span",{className:"fco-player-row-content__shirt-number",children:l.shirtNumber}),(0,i.jsx)("div",{className:"fco-player-row-content__player-info",children:(0,i.jsxs)("div",{className:"fco-player-row-content__player-name-row",children:["isCaptain"in l&&l.isCaptain?(0,i.jsx)("span",{className:"fco-player-row-content__captain-badge",children:"C"}):null,(0,i.jsx)("span",{className:"fco-player-row-content__player-name",children:u.name})]})}),m.length>0&&(0,i.jsx)("div",{className:"fco-player-row-content__sub-info",children:m.map(e=>{var t,a,s,n,r,l,o;return(0,i.jsxs)("div",{className:"fco-player-row-content__sub-row",children:[(0,i.jsx)(v.t,{glyph:e.glyph,className:"fco-player-row-content__sub-icon fco-player-row-content__sub-icon--".concat(e.glyph)}),(null==(t=e.person)?void 0:t.name)?(0,i.jsxs)("span",{className:"fco-player-row-content__sub-player-name",children:[e.person.name+" ",(0,i.jsx)(tF.p,{minute:null!=(s=e.period.minute)?s:null,extra:null!=(n=e.period.addedTime)?n:null})]}):null]},"".concat(e.glyph,"-").concat(null!=(r=e.period.minute)?r:"","-").concat(null!=(l=e.period.addedTime)?l:"","-").concat(null!=(o=null==(a=e.person)?void 0:a.id)?o:""))})}),f.length>0&&(0,i.jsx)("div",{className:"fco-player-row-content__events",children:f.map(e=>{let{glyph:t,count:a}=e;return(0,i.jsxs)("div",{className:h("fco-player-row-content__event","fco-player-row-content__event--".concat(t),{"fco-player-row-content__event--with-count":a>1}),children:[(0,i.jsx)(v.t,{glyph:t}),a>1&&(0,i.jsx)("span",{className:"fco-player-row-content__event-count",children:a})]},t)})}),null!=g&&(0,i.jsx)("div",{className:h("fco-player-row-content__rating",{"fco-player-row-content__rating--high":g>=7,"fco-player-row-content__rating--mid":g<7}),children:g.toFixed(1)})]})},aL=e=>{let{entry:t,isSubstitute:a,additionalEvents:s}=e;return t.person?(0,i.jsx)("li",{className:h("fco-player-row",{"fco-player-row--has-link":!!t.person.verified}),children:(0,i.jsx)(aC,{entry:t,isSubstitute:a,additionalEvents:s}
1)}):null},aO=e=>{let{entries:t,isSubstitute:a,assistMap:s}=e;return(0,i.jsx)("ul",{className:"fco-player-list",children:t.map((e,t)=>{var n,r,l,o;return(0,i.jsx)(aL,{entry:e,isSubstitute:a,additionalEvents:null==s?void 0:s.get(null!=(l=null==(n=e.person)?void 0:n.id)?l:"")},null!=(o=null==(r=e.person)?void 0:r.id)?o:t)})})},aD=e=>{let{homeEntries:t,awayEntries:a,isSubstitute:s,activeTeam:n,homeAssistMap:r,awayAssistMap:l}=e,o=Math.max(t.length,a.length);return(0,i.jsx)("ul",{className:"fco-paired-player-list",children:Array.from({length:o},(e,o)=>{var c,d;let u=t[o],m=a[o];return(0,i.jsxs)("li",{className:"fco-paired-player-list__row",children:[(0,i.jsx)("div",{className:h("fco-paired-player-list__cell",{"fco-paired-player-list__cell--hidden-mobile":"A"!==n,"fco-paired-player-list__cell--has-link":!!(null==u||null==(c=u.person)?void 0:c.verified)}),children:(null==u?void 0:u.person)?(0,i.jsx)(aC,{entry:u,isSubstitute:s,additionalEvents:null==r?void 0:r.get(u.person.id)}):null}),(0,i.jsx)("div",{className:h("fco-paired-player-list__cell","fco-paired-player-list__cell--away",{"fco-paired-player-list__cell--hidden-mobile":"B"!==n,"fco-paired-player-list__cell--has-link":!!(null==m||null==(d=m.person)?void 0:d.verified)}),children:(null==m?void 0:m.person)?(0,i.jsx)(aC,{entry:m,isSubstitute:s,additionalEvents:null==l?void 0:l.get(m.person.id)}):null})]},o)})})},aB=e=>{let{lineups:t,teamA:a,teamB:n,defaultActiveTeam:r="A",hideInjuriesSuspensions:o=!1,className:c,...d}=e,u=(0,s.o)("matchpage"),[m,p]=(0,l.useState)(r),f=ay([...t.teamA.lineup,...t.teamA.substitutes]),g=ay([...t.teamB.lineup,...t.teamB.substitutes]),{twoTeams:v,hasStartingXi:b,hasSubstitutes:x,hasManager:_,hasInjuriesSuspensions:j}=function(e){var t;let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=e.teamA.lineup.length>0||e.teamA.substitutes.length>0,n=e.teamB.lineup.length>0||e.teamB.substitutes.length>0;return{twoTeams:s&&n,hasStartingXi:e.teamA.lineup.length>0||e.teamB.lineup.length>0,hasSubstitutes:e.teamA.substitutes.length>0||e.teamB.substitutes.length>0,hasManager:!!(null!=(t=e.teamA.manager)?t:e.teamB.manager),hasInjuriesSuspensions:!a&&(e.teamA.injuries.length>0||e.teamA.suspensions.length>0||e.teamB.injuries.length>0||e.teamB.suspensions.length>0)}}(t,o),w=function(e,t){var a,s,n,r;return[{value:"A",label:null!=(s=null!=(a=null==e?void 0:e.code)?a:null==e?void 0:e.name)?s:"Home",icon:(null==e?void 0:e.crestUrl)?(0,i.jsx)("img",{src:e.crestUrl,alt:"crest",width:20,height:20}):void 0},{value:"B",label:null!=(r=null!=(n=null==t?void 0:t.code)?n:null==t?void 0:t.name)?r:"Away",icon:(null==t?void 0:t.crestUrl)?(0,i.jsx)("img",{src:t.crestUrl,alt:"crest",width:20,height:20}):void 0}]}(a,n),y=v?a:void 0,N=v?n:void 0;return(0,i.jsxs)("div",{...d,className:h("fco-match-lineups",c),children:[v?(0,i.jsx)("div",{className:"fco-match-lineups__segmented-control-wrapper",children:(0,i.jsx)(af,{className:"fco-match-lineups__segmented-control",options:w,value:m,onChange:e=>p(e)})}):null,b?(0,i.jsxs)("section",{className:"fco-match-lineups__section",children:[(0,i.jsx)(aS,{title:u("page.match.lineups.startingEleven"),teamA:y,teamB:N}),v?(0,i.jsx)(aD,{homeEntries:t.teamA.lineup,awayEntries:t.teamB.lineup,isSubstitute:!1,activeTeam:m,homeAssistMap:f,awayAssistMap:g}):(0,i.jsx)(aE,{twoTeams:!1,activeTeam:m,homeContent:(0,i.jsx)(aO,{entr
1ies:t.teamA.lineup,isSubstitute:!1,assistMap:f}),awayContent:null})]}):null,x?(0,i.jsxs)("section",{className:"fco-match-lineups__section",children:[(0,i.jsx)(aS,{title:u("page.match.substitutes")}),v?(0,i.jsx)(aD,{homeEntries:t.teamA.substitutes,awayEntries:t.teamB.substitutes,isSubstitute:!0,activeTeam:m,homeAssistMap:f,awayAssistMap:g}):(0,i.jsx)(aE,{twoTeams:!1,activeTeam:m,homeContent:(0,i.jsx)(aO,{entries:t.teamA.substitutes,isSubstitute:!0,assistMap:f}),awayContent:null})]}):null,_?(0,i.jsxs)("section",{className:"fco-match-lineups__section",children:[(0,i.jsx)(aS,{title:u("page.match.lineups.manager")}),(0,i.jsx)(aE,{twoTeams:v,activeTeam:m,homeContent:t.teamA.manager?(0,i.jsx)(ak,{manager:t.teamA.manager}):null,awayContent:t.teamB.manager?(0,i.jsx)(ak,{manager:t.teamB.manager}):null})]}):null,j?(0,i.jsx)(aT,{title:u("page.match.injuriesAndSuspensions"),lineups:t,activeTeam:m,twoTeams:v}):null]})},aI=function(e){return e.DEFENDER="DEFENDER",e.FORWARD="FORWARD",e.GOALKEEPER="GOALKEEPER",e.MIDFIELDER="MIDFIELDER",e.UNKNOWN="UNKNOWN",e}({}),aF=a(92304);a(89354);var aP=e=>{var t,a,s;let{label:n,channel:r}=e,l=r.wrapperProvider?g.t:"a";return(0,i.jsxs)("div",{className:p()("fco-ott-event-broadcasters-row","without-article-styling","fco-without-article-body"),children:[(0,i.jsx)("span",{className:"fco-ott-event-broadcasters-row__label",children:n}),(0,i.jsxs)(l,{href:r.href,target:null!=(t=r.target)?t:"_blank",rel:null!=(a=r.rel)?a:"noopener",className:"fco-ott-event-broadcasters-row__cta",children:[(0,i.jsx)("span",{className:"fco-ott-event-broadcasters-row__channel-name",children:r.name}),(0,i.jsx)(x._V,{className:"fco-ott-event-broadcasters-row__logo",src:r.logo.url,alt:null!=(s=r.logo.alt)?s:"",loading:x.uj.LAZY}),(0,i.jsx)(v.t,{glyph:"external-link-lg",className:"fco-ott-event-broadcasters-row__icon"})]})]})};a(34806);var aV=e=>{let{rows:t,className:a}=e;return t&&0!==t.length?(0,i.jsx)("div",{className:p()("fco-ott-event-broadcasters-list",a),children:t.map(e=>(0,i.jsx)(aP,{...e},e.label))}):null},aM=a(35923);a(28939);var aW=e=>{let{action:t}=e;return"ott"===t.type?(0,i.jsx)(C.t,{tvChannels:t.tvChannels}):(0,i.jsxs)(F.S,{wrapperProvider:t.wrapperProvider,href:t.href,rel:t.rel,target:t.target,variant:"primary",appearance:"outlined",size:"small",className:"fco-sport-event-row__tickets",children:[t.text,(0,i.jsx)(v.t,{glyph:"external-link-lg"})]})},aR={weekday:"long",day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"},aH=e=>{var t;let{name:a,date:s,contestants:n,competition:r,venue:l,dateOptions:o=aR,action:c}=e,d=null!=(t=null==n?void 0:n.filter(e=>{let{image:t}=e;return!!(null==t?void 0:t.url)}))?t:[];return(0,i.jsx)("div",{className:"fco-sport-event-row",children:(0,i.jsxs)("div",{className:"fco-sport-event-row__data",children:[(0,i.jsxs)("div",{className:"fco-sport-event-row__event",children:[(0,i.jsxs)("div",{className:"fco-sport-event-row__main",children:[d.length>0?(0,i.jsx)("div",{className:"fco-sport-event-row__badges",children:d.map(e=>{var t,a,s;let{image:n}=e;return(0,i.jsx)(x._V,{src:n.url,alt:null!=(t=n.alt)?t:"Team crest",width:null!=(a=n.width)?a:24,height:null!=(s=n.height)?s:24},n.url)})}):null,(0,i.jsxs)("div",{className:"fco-sport-event-row__heading",children:[(0,i.jsx)("span",{className:"fco-sport-event-row__name",children:a}),(0,i.jsx)(aM._,{startDateISOString:s,options:o})]})]}),r||l?(0,i.jsxs)("div",{className:"fco-sport-event-row__details",children:[r?(0,i.jsxs)("div",{className:"fco-sport-event-row__competition",children:[r.logo?(0,i.jsx)(x._V,{...r.logo,className:h("fco-sport-event-row__competition-logo",r.logo.className)}):null,(0,i.jsx)("span",{className:"fco-sport-event-row__competition-name",children:r.name})]}):null,r&&l?(0,i.jsx)("span",{className:"fco-sport-event-row__separator","aria-hidden":"true"}):null,l?(0,i.jsx)("span",{className:"fco-sport-event-row__venue",children:l}):null]}):null]}),(0,i.jsx)("div",{className:"fco-sport-event-row__action",children:(0,i.jsx)(aW,{action:c})})]})})};a(80977);var aU=e=>{let{events:t,className:a}=e;return t&&0!==t.length?(0,i.jsx)("div",{className:p()("fco-sport-event-list",a),children:(0,i.jsx)("div",{className:"fco-sport-event-list__events",children:t.map(e=>(0,i.jsx)(aH,{...e},"".concat(e.name,"-").concat(e.date)))})}):null},aG=a(74767),aq=a(50524),aY=e=>{var t,a,n;let{title:r="spotify-embed-iframe",width:c="100%",height:h="352",src:p,...f}=e,g=(0,s.o)(),v=(0,d.t)(),b=(0,u.t)(),x=(0,N.t)(),[_,j]=(0,l.useState)(null==b||null==(t=b.spotifyConsent)?void 0:t.enabled),{ref:w,inView:y}=(0,o.Wx)({triggerOnce:!0,rootMargin:"500px"}),A=(0,l.useRef)(null);(0,l.useEffect)(()=>{var e;"boolean"==typeof(null==b||null==(e=b.spotifyConsent)?void 0:e.enabled)&&j(null==b?void 0:b.spotifyConsent.enabled)},[null==b||null==(a=b.spotifyConsent)?void 0:a.enabled]),(0,l.useEffect)(()=>
1{if(!1!==v&&!1!==_&&y){var e;let t=null==(e=A.current)?void 0:e.querySelector("iframe"),{pathname:a,search:s,hash:n}=new URL(null!=p?p:"https://open.spotify.com/embed/playlist/37i9dQZF1DX9ktmiEP972G?utm_source=generator");null==t||t.setAttribute("src","".concat("https://open.spotify.com").concat(a).concat(s).concat(n))}},[y,_,v,p]);let S=(null==b?void 0:b.spotifyConsent)&&!1===_;return(null==x?void 0:x.spotify)?null:(0,i.jsx)(i.Fragment,{children:S?(0,i.jsx)(m.t,{isConsented:_||!1,setIsConsented:()=>j(!0),socialMediaConsent:null==b?void 0:b.spotifyConsent,socialMediaPurposes:null==b||null==(n=b.spotifyConsent)?void 0:n.purposeIDs,toggleHeadline:g("component.consentWarning.toggleHeadline"),toggleDescription:g("component.consentWarning.toggleDescription",{param1:g("component.consentWarning.embedHeader.spotify")}),embedHeader:g("component.consentWarning.embedHeader.spotify"),legalText:g("component.consentWarning.legalTextOne",{param1:g("component.consentWarning.embedHeader.spotify")})}):(0,i.jsx)("div",{ref:e=>{A.current=e,w(e)},className:"fco-".concat("spotify-embed"),children:(0,i.jsx)("iframe",{...f,title:r,loading:"lazy",referrerPolicy:"strict-origin",width:c,height:h})})})},az=a(31989);a(26384);var aK=a(58075),aZ=a(22433);a(58295);var aJ=e=>{let{type:t}=e;return(0,i.jsx)("span",{className:p()("fco-change-indicator","fco-change-indicator--".concat(t))})},a$=a(90301);a(81127);var aX=e=>{var t,a,s,n;let{score:r,context:l}=e;if(void 0===r.teamA||void 0===r.teamB)return null;let o="teamA"===l?"teamB":"teamA",c=(null!=(t=null==r?void 0:r[l])?t:0)>(null!=(a=null==r?void 0:r[o])?a:0),d=(null!=(s=null==r?void 0:r[l])?s:0)===(null!=(n=null==r?void 0:r[o])?n:0);return(0,i.jsxs)("div",{role:"status",className:p()("fco-standings-score",{"fco-standings-score__win":c,"fco-standings-score__draw":d,"fco-standings-score__lose":!c&&!d}),"aria-label":"Standings score",children:[r[l]," - ",r[o]]})};a(63677);var aQ=["goalsFor","goalsAgainst","form","positionChange"],a0=e=>{let{type:t,row:a,live:s,iconVersion:n}=e,{teamPlaceholderImageUrl:r}=(0,S.t)();switch(t){case"markerType":return(0,i.jsx)(aq.O,{type:a.markerType});case"form":return(0,i.jsx)("div",{className:"fco-standings-table__form",children:a.form.map((e,t)=>(0,l.createElement)(ty,{...e,iconVersion:n,key:t}))});case"match":{var o,c,d,u,m;let e=(null==(o=a.match)?void 0:o.status)===aZ.Nu.LIVE,t=a.match&&(null==(d=a.match)||null==(c=d.teamA)?void 0:c.id)===(null==a||null==(u=a.team)?void 0:u.id)?"teamA":"teamB",n=null==(m=a.match)?void 0:m.score;return s&&e&&n?(0,i.jsx)(aX,{score:n,context:t}):null}case"team":return(0,i.jsxs)(Y.BP,{rel:a.team.rel,href:a.team.href,onClick:a.team.onClick,className:"fco-standings-table__team",children:[(0,i.jsx)(x._V,{className:"fco-standings-table__team-image",src:a.team.crestPath,alt:a.team.name,width:24,onError:e=>{e.currentTarget.onerror=null,e.currentTarget.src=r}}),(0,i.jsx)("span",{className:"fco-standings-table__team-name fco-standings-table__team-name--long",children:a.team.name}),(0,i.jsx)("span",{className:"fco-standings-table__team-name fco-standings-table__team-name--short",children:a.team.shortName||a.team.name})]});case"goalsDifference":return(0,i.jsx)(i.Fragment,{children:a[t]>0?"+".concat(a[t]):a[t]});case"positionChange":return a[t]?(0,i.jsx)("span",{className:"fco-standings-table__position-change-indicator",children:(0,i.jsx)(aJ,{type:a[t]})}):(0,i.jsx)(i.Fragment,{});default:return(0,i.jsx)(i.Fragment,{children:a[t]})}},a1=e=>{let{data:t,selectedTeamsIds:a,columnsToHide:n=aQ,customHeading:r,onOptionSelect:o,standingsDropdownOptions:c,radioSelect:d,preselectedOption:u,live:m,showFormSwitch:h,iconVersion:f}=e,g=(0,s.o)(),[v,b]=(0,l.useState)(!1),x=new Set(n);if(h&&v){for(let e of h.columnsToHide)x.add(e);x.delete("form")}else x.add("form");let _=Array.from(x),j=(0,l.useMemo)(()=>Object.fromEntries(Object.entries({markerType:{label:"",suffix:"marker",hideable:_.includes("markerType")},position:{label:g("page.match.standings.table.position"),suffix:"position",hideable:_.includes("position")},positionChange:{suffix:"position-change",hideable:_.includes("positionChange")},team:{label:g("page.match.standings.table.team"),suffix:"team",hideable:_.includes("team")},match:{label:m?g("page.match.standings.table.score"):"",suffix:"score",hideable:_.includes("match")},played:{label:g("page.match.standings.table.played"),suffix:"played",hideable:_.includes("played")},win:{label:g("generic.match.win"),suffix:"win",hideable:_.includes("win")},draw:{label:g("generic.match.draw"),suffix:"draw",hideable:_.includes("draw")},lose:{label:g("generic.match.lose"),suffix:"lose",hideable:_.includes("lose")},goalsFor:{label:g("page.match.standings.table.goalsFor"),suffix:"goals-for",hideable:_.includes("goalsFor")},goalsAgainst:{label:g("page.match.standings.table.goalsAgainst"),suffix:"goals-against",hideable:_.includes("goalsAgainst")},goalsDifference:{label:g("page.match.standings.table.goalsDifference"),suffix:"goals-difference",hideable:_.includes("goalsDifference")},points:{label:g("page.match.standings.table.points"),suffix:"points",hideable:_.includes("points")},form:{label:g("page.match.teamForm.title"),suffix:"form",hideable:_.includes("form")}}).filter(e=>{let[a]=e;return"markerType"===a||t.some(e=>void 0!==e[a])})),[t,_,m,g]),w=(0,l.useMemo)(()=>{let e={...j};return r&&(e={customHeading:{label:r.value,suffix:"custom-heading",hideable:!1,
1colSpan:r.colSpan},...Object.fromEntries(Object.entries(e).slice(r.colSpan))}),e},[_]),y=c&&c.length>0&&o,{radioButtonsLabel:N,onRadioSelect:A,standingRadioOptions:S}=d||{},E=S&&S.length>0&&A;return(0,i.jsxs)("div",{className:"fco-standings-table fco-standings-table__container",children:[(0,i.jsxs)("div",{className:"fco-standings-table__wrapper",children:[m?(0,i.jsx)(az.t,{}):null,h?(0,i.jsx)(aK.j,{label:g("generic.form"),value:v,onChange:()=>b(e=>!e),className:p()("fco-standings-table__switch",{"fco-standings-table__switch--hide-on-desktop":h})}):null,y?(0,i.jsx)(tR.t,{options:c,onOptionSelect:o,preselectedOption:u}):null,E?(0,i.jsx)(a$.t,{options:S,onChange:A,preselectedOption:u,label:N}):null]}),(0,i.jsxs)("table",{className:"fco-standings-table__table",children:[(0,i.jsx)("thead",{children:(0,i.jsx)("tr",{children:Object.entries(w).map(e=>{let[t,a]=e;return(0,i.jsx)("th",{className:p()("fco-standings-table__cell","fco-standings-table__cell--head","fco-standings-table__cell--".concat(a.suffix),{"fco-standings-table__cell--hidable":a.hideable}),colSpan:a.colSpan,children:a.label},"head-".concat(t))})})}),(0,i.jsx)("tbody",{children:t.map(e=>(0,i.jsx)("tr",{className:p()("fco-standings-table__row",{"fco-standings-table__row--selected":null==a?void 0:a.includes(e.team.id)}),children:Object.entries(j).map(t=>{let[a,s]=t;return(0,i.jsx)("td",{className:p()("fco-standings-table__cell","fco-standings-table__cell--".concat(s.suffix),{"fco-standings-table__cell--hidable":s.hideable}),children:(0,i.jsx)(a0,{row:e,type:a,live:m,iconVersion:f})},"body-".concat(a,"-").concat(e.team.id))})},e.team.id))})]})]})};a(10326);var a2=e=>{let{legend:t}=e;return(0,i.jsx)("div",{className:"fco-standings__legend",children:t.map((e,t)=>{let{type:a,label:s}=e;return(0,i.jsx)(aq.O,{type:a,label:s},"".concat(a,"-").concat(t))})})},a5=e=>{let{tables:t,columnsToHide:a,selectedTeamIds:n,legend:r,legendHeading:o,onOptionSelect:c,standingsDropdownOptions:d,preselectedOption:u,hideLegend:m,showFormSwitch:h,iconVersion:p,radioSelect:f}=e,g=(0,s.o)();return(0,i.jsxs)("div",{className:"fco-standings",children:[t.map((e,t)=>(0,i.jsxs)(l.Fragment,{children:[(0,i.jsxs)("h3",{className:"fco-standings__title",children:[e.title,e.titleImagePath?(0,i.jsx)(x._V,{src:e.titleImagePath,height:"22"}):null]},"standings-title-".concat(t)),(0,i.jsx)(a1,{data:e.data,columnsToHide:a,selectedTeamsIds:n,onOptionSelect:c,standingsDropdownOptions:d,preselectedOption:u,live:e.live,iconVersion:p,showFormSwitch:h,radioSelect:f},"standings-table-".concat(t)),e.live&&e.lastUpdatedAt?(0,i.jsxs)("div",{className:"fco-standings__last-updated",children:[(0,i.jsx)(az.t,{hideText:!0}),(0,i.jsx)("span",{className:"fco-standings__last-updated-text",children:g("generic.lastUpdated",{param1:e.lastUpdatedAt})})]}):null]},"standings-".concat(t))),!m&&o?(0,i.jsx)("h4",{className:"fco-standings__legend",children:o}):null,!m&&(0,i.jsx)(a2,{legend:r})]})};a(90502);var a6=e=>{let{children:t,className:a,...s}=e;return(0,i.jsx)("span",{className:p()(a,"fco-responsive-table"),...s,children:t})},a3=a(62450);a(11552);var a9="https://www.tiktok.com/embed.js",a4=e=>{var t,a,n;let{children:r}=e,c=(0,s.o)(),h=(0,d.t)(),p=(0,u.t)(),f=(0,N.t)(),[g,v]=(0,l.useState)(null==p||null==(t=p.tikTokConsent)?void 0:t.enabled),{ref:b,inView:x}=(0,o.Wx)({triggerOnce:!0,rootMargin:"700px"}),_=(null==p?void 0:p.tikTokConsent)&&!1===g;return(0,l.useEffect)(()=>{var e;"boolean"==typeof(null==p||null==(e=p.tikTokConsent)?void 0:e.enabled)&&v(null==p?void 0:p.tikTokConsent.enabled)},[null==p||null==(a=p.tikTokConsent)?void 0:a.enabled]),(0,l.useEffect)(()=>{if(!1===h||!1===g)return;let e=document.querySelector('script[src="'.concat(a9,'"]'));if(x&&!e){let e=document.createElement("script");e.src=a9,document.head.appendChild(e)}return()=>null==e?void 0:e.remove()},[x,h,g]),(null==f?void 0:f.tiktok)?null:_?(0,i.jsx)(m.t,{isConsented:g,setIsConsented:()=>v(!0),socialMediaConsent:null==p?void 0:p.tikTokConsent,socialMediaPurposes:null==(n=p.tikTokConsent)?void 0:n.purposeIDs,toggleHeadline:c("component.consentWarning.toggleHeadline"),toggleDescription:c("component.consentWarning.toggleDescription",{param1:c("component.consentWarning.embedHeader.tikTok")}),embedHeader:c("component.consentWarning.embedHeader.tikTok"),legalText:c("component.consentWarning.legalTextOne",{param1:c("component.consentWarning.embedHeader.tikTok")})}):(0,i.jsx)("span",{ref:b,className:"fco-tik-tok-embed","aria-label":"Tiktok embed",children:r})};a(99126);var a7={rootMargin:"700px"},a8=e=>{var t,a,n;let{data:r,scriptUrl:c,observerOptions:h=a7}=e,p=(0,s.o)(),f=(0,d.t)(),g=(0,u.t)(),v=(0,N.t)(),[b,x]=(0,l.useState)(null==g||null==(t=g.twitchConsent)?void 0:t.enabled),[_,j]=(0,l.useState)(!1),{ref:w,inView:y,entry:A}=(0,o.Wx)({...h,triggerOnce:!0}),S=null!=c?c:"https://player.twitch.tv/js/embed/v1.js",E=(0,t9.Ak)(),T="".concat(r).replace("twitch-embed",E),k=(0,l.useCallback)(()=>
1{if(A&&!A.target.querySelector("script")&&!_){let e=document.createElement("script");e.src=S,e.type="text/javascript",e.async=!0,e.onload=()=>j(!0),document.head.appendChild(e)}},[A,S,_]),C=(0,l.useCallback)(()=>{let e=document.createElement("script");e.textContent=T,e.async=!0,document.head.appendChild(e)},[T]),L=(null==g?void 0:g.twitchConsent)&&!1===b;return(0,l.useEffect)(()=>{var e;"boolean"==typeof(null==g||null==(e=g.twitchConsent)?void 0:e.enabled)&&x(null==g?void 0:g.twitchConsent.enabled)},[null==g||null==(a=g.twitchConsent)?void 0:a.enabled]),(0,l.useEffect)(()=>{!1===f||!1===b||y&&k()},[y,k,null==g?void 0:g.twitchConsent,b,f]),(0,l.useEffect)(()=>{_&&C()},[_,C]),(null==v?void 0:v.twitch)?null:L?(0,i.jsx)(m.t,{isConsented:b,setIsConsented:()=>x(!0),socialMediaConsent:null==g?void 0:g.twitchConsent,socialMediaPurposes:null==(n=g.twitchConsent)?void 0:n.purposeIDs,toggleHeadline:p("component.consentWarning.toggleHeadline"),toggleDescription:p("component.consentWarning.toggleDescription",{param1:p("component.consentWarning.embedHeader.twitch")}),embedHeader:p("component.consentWarning.embedHeader.twitch"),legalText:p("component.consentWarning.legalTextOne",{param1:p("component.consentWarning.embedHeader.twitch")})}):(0,i.jsx)("span",{className:"fco-twitch-script-video-player",ref:w,"aria-label":"Twitch player",children:y?(0,i.jsx)("div",{id:E,className:"fco-twitch-script-video-player__container"}):null})};a(76966);var se={rootMargin:"700px"},st=e=>{var t,a,n;let{src:r,loading:c,observerOptions:h=se,...p}=e,f=(0,s.o)(),g=(0,d.t)(),v=(0,u.t)(),b=(0,N.t)(),[x,_]=(0,l.useState)(null==v||null==(t=v.twitchConsent)?void 0:t.enabled),j=(0,l.useRef)(null),w=(null==v?void 0:v.twitchConsent)&&!1===x;return(0,l.useEffect)(()=>{var e;"boolean"==typeof(null==v||null==(e=v.twitchConsent)?void 0:e.enabled)&&_(null==v?void 0:v.twitchConsent.enabled)},[null==v||null==(a=v.twitchConsent)?void 0:a.enabled]),!r||(null==b?void 0:b.twitch)?null:w?(0,i.jsx)(m.t,{isConsented:x,setIsConsented:()=>_(!0),socialMediaConsent:null==v?void 0:v.twitchConsent,socialMediaPurposes:null==(n=v.twitchConsent)?void 0:n.purposeIDs,toggleHeadline:f("component.consentWarning.toggleHeadline"),toggleDescription:f("component.consentWarning.toggleDescription",{param1:f("component.consentWarning.embedHeader.twitch")}),embedHeader:f("component.consentWarning.embedHeader.twitch"),legalText:f("component.consentWarning.legalTextOne",{param1:f("component.consentWarning.embedHeader.twitch")})}):(0,i.jsx)("span",{className:"fco-twitch-video-player",children:(0,i.jsx)(o.pL,{as:"div",className:"fco-twitch-video-player__container",onChange:e=>{if(!1!==g&&!1!==x&&e&&r){var t;let e=new URL(r);e.searchParams.set("parent",document.location.hostname),null==(t=j.current)||t.setAttribute("src",e.toString())}},triggerOnce:!0,rootMargin:h.rootMargin,initialInView:"eager"===c,children:(0,i.jsx)("iframe",{ref:j,title:"iframe-".concat((0,t9.Ak)()),...p,style:{overflow:"hidden",...p.style},src:void 0,"aria-label":"Twitch embed",frameBorder:void 0,scrolling:void 0})})})};a(6792);var sa=e=>{var t,a,n;let{children:r}=e,c=(0,s.o)(),h=(0,d.t)(),p=(0,u.t)(),f=(0,N.t)(),[g,v]=(0,l.useState)(null==p||null==(t=p.twitterConsent)?void 0:t.enabled),{ref:b,inView:x,entry:_}=(0,o.Wx)({triggerOnce:!0,rootMargin:"700px"}),j=(null==p?void 0:p.twitterConsent)&&!1===g;return(0,l.useEffect)(()=>{var e;"boolean"==typeof(null==p||null==(e=p.twitterConsent)?void 0:e.enabled)&&v(null==p?void 0:p.twitterConsent.enabled)},[null==p||null==(a=p.twitterConsent)?void 0:a.enabled]),(0,l.useEffect)(()=>{!1===h||!1===g||x&&_&&(window&&"twttr"in window&&(e=>"object"==typeof e&&!!e&&"widgets"in e&&"object"==typeof e.widgets&&null!==e.widgets&&"load"in e.widgets&&"function"==typeof e.widgets.load)(window.twttr)?window.twttr.widgets.load(_.target):window.twttr=(()=>{var e;let t=document.getElementsByTagName("script")[0],a=window.twttr||{};if(document.getElementById("twitter-wjs"))return a;let s=document.createElement("script");return s.id="twitter-wjs",s.src="https://platform.twitter.com/widgets.js",null==(e=t.parentNode)||e.insertBefore(s,t),a._e=[],a.ready=function(e){a._e.push(e)},a})())},[x,_,null==p?void 0:p.twitterConsent,g,h]),(null==f?void 0:f.twitter)?null:j?(0,i.jsx)(m.t,{isConsented:g,setIsConsented:()=>v(!0),socialMediaConsent:null==p?void 0:p.twitterConsent,socialMediaPurposes:null==(n=p.twitterConsent)?void 0:n.purposeIDs,toggleHeadline:c("component.consentWarning.toggleHeadline"),toggleDescription:c("component.consentWarning.toggleDescription",{param1:c("component.consentWarning.embedHeader.twitter")}),embedHeader:c("component.consentWarning.embedHeader.twitter"),legalText:c("component.consentWarning.legalTextOne",{param1:c("component.consentWarning.embedHeader.twitter")})}):(0,i.jsx)("span",{ref:b,className:"fco-twitter-embed","aria-label":"Twitter embed",children:x?r:null})},ss=a(96184);a(1300);var sn=e=>{var t,a,s;let{src:r}=e,o=(0,d.t)(),c=(0,u.t)(),m=(0,N.t)(),h=null!=(s=(0,n.t)())?s:"",p=(0,G.t)(),f="Spox"===h||"Goal"===h&&p===ss.r.German,[g,v]=(0,l.useState)(null==c||null==(t=c.vgWortConsent)?void 0:t.enabled);return(0,l.useEffect)(()=>{var e;"boolean"==typeof(null==c||null==(e=c.vgWortConsent)?void 0:e.enabled)&&v(c.vgWortConsent.enabled)},[null==c||null==(a=c.vgWortConsent)?void 0:a.enabled]),(null==m?void 0:m.vgWort)||!(o&&!0===g)||!f?null:(0,i.jsx)("img",{className:"fco-vg-wort-pixel",src:r,alt:"","aria-hidden":"true",width:1,height:1,loading:"eager",decoding:"async"})};a(53385);var sr=e=>{let{contestantsImages:t,urlLink:a,name:s,startDate:n,dateFormat:r,tvChannels:l}=e,o=(0,E.o)(n,null!=r?r:"EEEE dd LLL yyyy, HH:mm");return(0,i.jsxs)("div",{className:"fco-sports-event-with-ott",children:[(0,i.jsxs)(Y.BP,{href:a,children:[(0,i.jsx)("div",{className:"fco-sports-event-with-ott__contestants-images",children:null==t?void 0:t.map(e=>(0,i.jsx)(x._V,{...e},e.src))}),(0,i.jsx)("div",{className:"fco-sports-event-with-ott__name",children:s}),(0,i.jsx)("time",{className:"fco-sports-event-with-ott__datetime",dateTime:n,children:o})]}),(0,i.jsx)(C.t,{tvChannels:l})]})},sl=e=>{if(!e.events||0===e.events.length)return null;let{events:t,className:a,...s}=e;return(0,i.jsx)("div",{className:h("fco-w2w-evergreen-events",a),...s,children:t.map(e=>(0,i.jsx)(sr,{...e},e.id))})},si=e=>{var t,a,n;let{divProps:r,iframeWrapperProps:c,iframeProps:p}=e,{className:f,...g}=null!=r?r:{},{title:v,src:b,...x}=null!=p?p:{},_=(0,s.o)(),j=(0,d.t)(),w=(0,u.t)(),y=(0,N.t)(),A=(0,l.useMemo)(()=>null!=v?v:"fubo-embed-".concat((0,t9.Ak)()),[v]),[S,E]=(0,l.useState)(null==w||null==(t=w.fuboConsent)?void 0:t.enabled),{ref:T,inView:k}=(0,o.Wx)({triggerOnce:!0,rootMargin:"256px"}),C=(0,l.useRef)(null);(0,l.useEffect)(()=>{var e;"boolean"==typeof(null==w||null==(e=w.fuboConsent)?void 0:e.enabled)&&E(null==w?void 0:w.fuboConsent.enabled)},[null==w||null==(a=w.fuboConsent)?void 0:a.enabled]),(0,l.useEffect)(()=>{var e,t;!1===j||!1===S||k&&(null==(t=C.current)||null==(e=t.querySelector("iframe"))||e.setAttribute("src",null!=b?b:"https://www.fubo.tv/"))},[k,S,j,b]);let L=(null==w?void 0:w.fuboConsent)&&!1===S;return(null==y?void 0:y.fubo)?null:(0,i.jsx)(i.Fragment,{children:L?(0,i.jsx)(m.t,{isConsented:S||!1,setIsConsented:()=>E(!0),socialMediaConsent:null==w?void 0:w.fuboConsent,socialMediaPurposes:null==(n=w.fuboConsent)?void 0:n.purposeIDs,toggleHeadline:_("component.consentWarning.toggleHeadline"),toggleDescription:_("component.consentWarning.toggleDescription",{param1:_("component.consentWarning.embedHeader.fubo")}),embedHeader:_("component.consentWarning.embedHeader.fubo"),legalText:_("component.consentWarning.legalTextOne",{param1:_("component.consentWarning.embedHeader.fubo")})}):(0,i.jsx)("div",{ref:e=>{C.current=e,T(e)},...g,className:h("fco-fubo-embed",f),children:(0,i.jsx)("div",{...c,className:h("fco-fubo-widget","fuboWidget"),children:(0,i.jsx)("iframe",{...x,title:A,referrerPolicy:"str
1ict-origin",loading:"lazy"})})})})},so=a(6398),sc=async(e,t)=>{let{competitionId:a,teamId:s,channelId:n,matchScheduleId:r}=e,l=new URLSearchParams({edition:t});a&&l.set("competitionId",a),s&&l.set("teamId",s),n&&l.set("channelId",n),r&&l.set("matchScheduleId",r);let{data:i}=await e9.A.get("/api/match-schedule?".concat(l));return i},sd=e=>{let{competitionId:t,teamId:a,channelId:s,matchScheduleId:n}=e,r=(0,G.t)(),{data:l}=(0,so.I)({queryKey:["match-schedule-unit-widget",t,a,s,n],queryFn:()=>sc({competitionId:t,teamId:a,channelId:s,matchScheduleId:n},r),enabled:!!r});return(null==l?void 0:l.matches.length)?(0,i.jsx)(I,{headline:l.headline,matches:l.matches}):null},su=a(52812),sm=a(99816),sh=a(92100);a(82468);var sp=class{isElement(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"tag",a=(null==e?void 0:e.type)===t,s="attribs"in e;return a&&s}},sf=new class extends sp{match(e){var t,a;return this.isElement(e,"script")&&(null==(a=e.attribs)||null==(t=a.src)?void 0:t.includes("footballco.activehosted.com/f/embed.php"))}process(e){let t=new URL(e.attribs.src).searchParams.get("id");return t?(0,i.jsx)(f,{id:t}):(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="ac-form-embed-processor"}},sg=new class extends sp{match(e){return this.isV1AffiliateButton(e)||this.isV2AffiliateButton(e)}isV1AffiliateButton(e){var t,a;return this.isElement(e)&&"div"===e.name&&(null==(a=e.attribs)||null==(t=a.class)?void 0:t.includes("affiliate-button-container"))}isV2AffiliateButton(e){var t,a;return this.isElement(e)&&"a"===e.name&&(null==(a=e.attribs)||null==(t=a.class)?void 0:t.includes("affiliate-button"))}createV2Logo(e,t){return(0,l.createElement)("img",{src:e,width:72,height:null!=t?t:72,alt:"logo",className:"fco-affiliate-button__logo"})}createV2Text(e){return(0,l.createElement)("span",{className:"fco-affiliate-button__text"},e)}createV2Cta(e){return(0,l.createElement)("div",{className:"fco-affiliate-button__cta"},e)}createV2Button(e,t){return(0,l.createElement)("a",{href:e,className:"fco-affiliate-button__anchor",target:"_blank",rel:"noopener"},...t)}extractContentChildren(e){let t=[];if(!e||!("children"in e))return t;let a=e.children.find(e=>"name"in e&&"img"===e.name),s=e.children.find(e=>"name"in e&&"span"===e.name);if(a&&"attribs"in a&&"src"in a.attribs){let e=this.createV2Logo(a.attribs.src,"height"in a.attribs?Number(a.attribs.height):void 0);t.push(e)}if(s&&"children"in s&&s.children.length>0&&"data"in s.children[0]){let e=this.createV2Text(s.children[0].data);t.push(e)}return t}extractButtonCta(e){if(!("children"in e))return[];let t=e.children.find(e=>"type"in e&&"text"===e.type);return t&&"data"in t?[this.createV2Cta(t.data)]:[]}parseV1AffiliateButton(e){if(!("children"in e))return null;let t=e.children.find(e=>"name"in e&&"a"===e.name),a=e.children.find(e=>"name"in e&&"div"===e.name);if(!t||!("attribs"in t)||!("href"in t.attribs))return null;let s=[...this.extractContentChildren(a),...this.extractButtonCta(t)];return this.createV2Button(t.attribs.href,s)}hasTrackonomicsLink(e){return(null==e?void 0:e.includes("clicks.trx-hub.com"))?"TRACKONOMICS":null}process(e){if(this.isV1AffiliateButton(e)){let t=this.parseV1AffiliateButton(e);return t?(0,i.jsx)(_,{name:"attribs"in e?e.attribs["data-name"]:void 0,wrapperProvider:this.hasTrackonomicsLink(t.props.href),children:t}):(0,i.jsx)(i.Fragment,{})}if(this.isV2AffiliateButton(e)){let t={trim:!0,replace:e=>{if(e instanceof sm.Hg&&e.attribs.class){let a;if(e.attribs.class.includes("affiliate-button")?a="fco-affiliate-button__anchor":e.attribs.class.includes("affiliate-logo")?a="fco-affiliate-button__logo":e.attribs.class.includes("affiliate-text")?a="fco-affiliate-button__text":e.attribs.class.includes("affiliate-cta")&&(a="fco-affiliate-button__cta"),a)return(0,sm.zd)([{...e,attribs:{...e.attribs,class:a}}],t)}}};return(0,i.jsx)(_,{name:"attribs"in e?e.attribs["data-name"]:void 0,wrapperProvider:this.hasTrackonomicsLink("attribs"in e?e.attribs.href:""),children:(0,sm.zd)([e],t)})}return(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="affiliate-button-processor"}},sv=new class extends sp{isTrackonomicsLink(e){var t,a;return this.isElement(e)&&"a"===e.name&&!!(null==(a=e.attribs)||null==(t=a["data-link-wrapper-prov
1ider"])?void 0:t.includes("TRACKONOMICS"))}match(e){return this.isTrackonomicsLink(e)}process(e){return(0,i.jsx)(g.t,{href:e.attribs.href,...e.attribs,children:(0,sm.zd)(e.children)})}constructor(...e){super(...e),this.name="affiliate-link-processor"}},sb=e=>{let t=e,a;do a=t,t=t.replaceAll(/<(\w+)>\s*<\/\1>/g,"");while(t!==a);return t.trim()},sx=class extends sp{getBodyEmbedData(e,t,a){var s;return t&&(null==a?void 0:a.length)&&null!=(s=a.find(a=>e(a)&&"embedId"in a&&a.embedId===t))?s:null}},s_=new class extends sx{match(e){var t;return this.isElement(e)&&(null==(t=e.attribs)?void 0:t["data-content-type-uid"])==="affiliate_promo"}process(e,t,a){var s;let n=e.attribs["data-fco-embed-id"],r=this.getBodyEmbedData(e=>"AffiliatePromoBodyEmbed"===e.__typename,n,a);if(!(null==r||null==(s=r.affiliatePromos)?void 0:s.length))return(0,i.jsx)(i.Fragment,{});let l=r.affiliatePromos.map(e=>({...e,info:sb(e.info)}));return(0,i.jsx)(j.t,{className:h("without-article-styling","fco-without-article-body"),affiliatePromos:l})}constructor(...e){super(...e),this.name="affiliate-promo-processor"}},sj=e=>{var t,a,s,n,r,l,i,o,c,d,u,m,h,p,f,g,v,b,x,_,j,w,y,N,A,S,E;return{id:e.id,startDate:e.startDate,rel:(null==(t=e.link)?void 0:t.follow)===!1?"nofollow":void 0,target:(null==(a=e.link)?void 0:a.newTab)?"_blank":void 0,teamA:{name:null!=(g=null==(s=e.teamA)?void 0:s.name)?g:null,nameShort:null!=(b=null!=(v=null==(n=e.teamA)?void 0:n.code)?v:null==(r=e.teamA)?void 0:r.name)?b:null,crestPath:null!=(x=null==(i=e.teamA)||null==(l=i.image)?void 0:l.url)?x:null},teamB:{name:null!=(_=null==(o=e.teamB)?void 0:o.name)?_:null,nameShort:null!=(w=null!=(j=null==(c=e.teamB)?void 0:c.code)?j:null==(d=e.teamB)?void 0:d.name)?w:null,crestPath:null!=(y=null==(m=e.teamB)||null==(u=m.image)?void 0:u.url)?y:null},competitionName:null!=(N=null==(h=e.competition)?void 0:h.name)?N:"",bettingOdds:null!=(A=e.bettingOddsDetailsList)?A:void 0,link:{url:null!=(S=null==(p=e.link)?void 0:p.url)?S:null,
1slug:null!=(E=null==(f=e.link)?void 0:f.slug)?E:null}}},sw="without-article-styling fco-without-article-body fco-affiliate-promotion-embed",sy=e=>{let{widget:t}=e;switch(t.__typename){case"AffiliatePromotionMatchSchedule":{var a;let{matchSchedule:e}=t;return(null==e||null==(a=e.matches)?void 0:a.length)?(0,i.jsx)(I,{className:sw,headline:e.headline,matches:e.matches}):null}case"AffiliatePromotionPromo":{let{affiliatePromos:e}=t;return(null==e?void 0:e.length)?(0,i.jsx)(j.t,{className:sw,affiliatePromos:e.map(e=>({...e,info:sb(e.info)}))}):null}case"AffiliatePromotionMatchRecirculation":{let{matchRows:e}=t;return(null==e?void 0:e.length)?(0,i.jsx)(U,{className:sw,matches:e.map(sj)}):null}default:return null}},sN=new class extends sx{match(e){var t;return this.isElement(e)&&(null==(t=e.attribs)?void 0:t["data-fco-dynamic-placement-type"])==="affiliate-promotion"}process(e,t,a){var s,n;let r=e.attribs["data-fco-embed-id"],[l]=null!=(n=null==(s=this.getBodyEmbedData(e=>"AffiliatePromotionBodyEmbed"===e.__typename,r,a))?void 0:s.widgets)?n:[];return l?(0,i.jsx)(sy,{widget:l}):(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="affiliate-promotion-processor"}},sA=new class extends sp{isArenaLiveBlogContainer(e){var t;return this.isElement(e)&&(null==(t=e.attribs)?void 0:t.class)==="arena-liveblog-container"}isArenaLiveBlogElement(e){var t;return this.isElement(e)&&(null==(t=e.attribs)?void 0:t.class)==="arena-liveblog"}isArenaLiveBlogScript(e){return this.isElement(e,"script")}match(e){return this.isArenaLiveBlogContainer(e)}process(e){var t,a;let s=null==(t=e.children)?void 0:t.find(e=>this.isArenaLiveBlogElement(e)),n=null==(a=e.children)?void 0:a.find(e=>this.isArenaLiveBlogScript(e));return s||n?(0,i.jsx)(A,{elAttrs:(null==s?void 0:s.attribs)?(0,sm.$5)(s.attribs):void 0,scriptAttrs:(null==n?void 0:n.attribs)?(0,sm.$5)(n.attribs):void 0}):(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="arena-liveblog-processor"}};new class extends sp{isAuthorQuotesPlaceHolder(e){var t,a,s;return this.isElement(e,"script")&&(null==(t=e.attribs)?void 0:t.type)==="application/json"&&(null==(s=e.attribs)||null==(a=s["data-placement"])?void 0:a.includes("author-quote"))}match(e){return this.isAuthorQuotesPlaceHolder(e)}process(e){let t=e.firstChild;if(!(t instanceof sm.EY))return(0,i.jsx)(i.Fragment,{});try{let e=JSON.parse(t.data);if("object"!=typeof e||!e||!("type"in e)||!("data"in e)||"author-quote"!==e.type||"object"!=typeof e.data||null===e.data||!("quote"in e.data)||!("authorName"in e.data))return(0,i.jsx)(i.Fragment,{});let a=e.data;return(0,i.jsx)(z,{text:a.quote,authorName:a.authorName,authorImageSrc:a.authorImageUrl,authorJobRole:a.authorJobTitle,authorLink:a.authorPageUrl})}catch(e){return(0,i.jsx)(i.Fragment,{})}}constructor(...e){super(...e),this.name="author-quotes-processor"}};var sS=e=>{let{widgets:t,config:a}=e;return t.length?(0,i.jsx)(ti,{widgets:t,config:a,className:"fco-without-article-body without-article-styling"}):null},sE=new class extends sx{match(e){var t;return this.isElement(e)&&(null==(t=e.attribs)?void 0:t["data-fco-dynamic-placement-type"])==="brand-promotion"}process(e,t,a){let s=e.attribs["data-fco-embed-id"],n=this.getBodyEmbedData(e=>"BrandPromotionBodyEmbed"===e.__typename,s,a);return n?(0,i.jsx)(sS,{...n,config:null==t?void 0:t.brandPromotion}):(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="brand-promotion-processor"}},sT=new class extends sp{match(e){var t,a,s;return this.isElement(e,"script")&&(null==(t=e.attribs)?void 0:t.type)==="application/json"&&(null==(s=e.attribs)||null==(a=s["data-placement"])?void 0:a.includes("footballco-bet-e2"))}process(e){if(!(e.firstChild instanceof sm.EY))return(0,i.jsx)(i.Fragment,{});{let t=JSON.parse(e.firstChild.data||"{}").type.split("-").at(-1);return(0,i.jsx)("football"===t?td:"basketball"===t?tc:i.Fragment,{})}}constructor(...e){super(...e),this.name="e2-widget-processor"}},sk=new class extends sp{match(e){var t;return this.isElement(e)&&this.tagsToCheck.includes(e.name)&&!(null==(t=e.attribs)?void 0:t["data-content-type-uid"])&&(0===e.children.length||e.children.every(e=>e instanceof sm.EY&&""===e.nodeValue.trim()))}process(){return(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="empty-tag-processor",this.tagsToCheck=["p","div","span","strong","em","del","ul","ol","li","dl","table","code","blockquote","abbr","h1","h2","h3","h4","h5","h6"]}},sC=new class extends sp{isFacebookRootDiv(e){var t;return this.isElement(e)&&"div"===e.name&&(null==(t=e.attribs)?void 0:t.id)==="fb-root"}isFacebookScript(e){var t,a,s,n;return this.isElement(e,"script")&&(null==(a=e.attribs)||null==(t=a.src)?void 0:t.includes("connect.facebook.net"))&&(null==(n=e.attribs)||null==(s=n.src)?void 0:s.includes("sdk.js"))}isFacebookEmbed(e){var t,a;return this.isElement(e)&&"div"===e.name&&(null==(t=e.attribs)?void 0:t.class)==="fb-post"&&!!(null==(a=e.attribs)?void 0:a["data-href"])}match(e){return this.isFacebookRootDiv(e)||this.isFacebookScript(e)||this.isFacebookEmbed(e)}process(e){if(this.isFacebookEmbed(e)){let t=e.attribs["data-href"];return(0,i.jsx)(tm,{postUrl:t})}return(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="facebook-embed-processor"}},sL=new class extends sp{isFacebookRootDiv(e){var t;return this.isElement(e)&&"div"===e.name&&(null==(t=e.attribs)?void 0:t.id)==="fb-root"}isFacebookScript(e){var t,a,s,n;return this.isElement(e,"script")&&(null==(a=e.attribs)||null==(t=a.src)?void 0:t.includes("connect.facebook.net"))&&(null==(n=e.attribs)||null==(s=n.src)?void 0:s.includes("sdk.js"))}isFacebookVideoEmbed(e){var t,a;return this.isElement(e)&&"div"===e.name&&(null==(t=e.attribs)?void 0:t.class)==="fb-video"&&!!(null==(a=e.attribs)?void 0:a["data-href"])}
1isFacebookVideoIframe(e){var t,a;return this.isElement(e)&&"iframe"===e.name&&(null==(a=e.attribs)||null==(t=a.src)?void 0:t.startsWith("https://www.facebook.com/plugins/video.php"))}match(e){return this.isFacebookRootDiv(e)||this.isFacebookScript(e)||this.isFacebookVideoEmbed(e)||this.isFacebookVideoIframe(e)}extractParamsFromIframe(e){try{let t=new URL(e.attribs.src).searchParams.get("href"),a=e.attribs.width,s=e.attribs.height;return{videoUrl:null!=t?t:void 0,height:s?parseInt(s,10):void 0,width:a?parseInt(a,10):void 0}}catch(e){this.logger.withError(e).error("FacebookVideo processor failed: ".concat(null==e?void 0:e.name));return}}process(e){if(this.isFacebookVideoEmbed(e)){let t=e.attribs["data-href"];return(0,i.jsx)(th.t,{type:"embed",videoUrl:t})}if(this.isFacebookVideoIframe(e)){let t=this.extractParamsFromIframe(e);if(null==t?void 0:t.videoUrl)return(0,i.jsx)(th.t,{type:"iframe",videoUrl:t.videoUrl,height:t.height,width:t.width})}return(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="facebook-video-processor",this.logger=(0,su.AR)()}},sO=new class extends sp{match(e){var t,a;return this.isElement(e,"script")&&(null==(a=e.attribs)||null==(t=a.src)?void 0:t.includes("fcp.codes"))}process(e){return(0,i.jsx)(tp.FCVideoPlayer,{url:e.attribs.src})}constructor(...e){super(...e),this.name="fc-player-embed"}},sD=new class extends sp{match(e){var t,a;return this.isElement(e,"script")&&(null==(t=e.attribs)?void 0:t.type)==="application/json"&&(null==(a=e.attribs)?void 0:a["data-placement"])==="fcplayer-semantic"}process(e){try{let{data:t}=JSON.parse(e.firstChild.data);return(0,i.jsx)(tp.FCVideoPlayer,{url:t.embedCode})}catch(e){return(0,i.jsx)(i.Fragment,{})}}constructor(...e){super(...e),this.name="fc-player-semantic"}},sB=new class extends sp{isFlourishEmbed(e){var t,a,s;return!!this.isElement(e)&&"div"===e.name&&(null!=(s=null==(t=e.attribs)?void 0:t.class)?s:"").split(/\s+/).includes("flourish-embed")&&!!(null==(a=e.attribs)?void 0:a["data-src"])}getThumbnail(e){let t=e.children.find(e=>"name"in e&&"noscript"===e.name);if(!t||!("children"in t))return{};let a=t.children.find(e=>"name"in e&&"img"===e.name);return a&&"attribs"in a?{src:a.attribs.src,alt:a.attribs.alt}:{}}match(e){return this.isFlourishEmbed(e)}process(e){let t=this.getThumbnail(e);return(0,i.jsx)(tv,{dataSrc:e.attribs["data-src"],className:e.attribs.class,thumbnailSrc:t.src,thumbnailAlt:t.alt})}constructor(...e){super(...e),this.name="flourish-processor"}},sI=new class extends sp{isGoogleFormsIframe(e){var t,a;return this.isElement(e)&&"iframe"===e.name&&(null==(a=e.attribs)||null==(t=a.src)?void 0:t.startsWith("https://docs.google.com/forms"))}match(e){return this.isGoogleFormsIframe(e)}process(e){if(!this.isGoogleFormsIframe(e))return(0,i.jsx)(i.Fragment,{});let{src:t,width:a="100%",height:s="600"}=e.attribs;return(0,i.jsx)("div",{className:"fco-google-forms-embed","aria-label":"Google Forms embed",style:{overflow:"hidden",width:a,height:s},children:(0,i.jsx)("iframe",{title:"Form",src:t,width:a,height:s,style:{border:"none"},allowFullScreen:!0})})}constructor(...e){super(...e),this.name="google-forms-processor"}},sF=new class extends sp{match(e){var t,a;return this.isElement(e,"script")&&(null==(t=e.attribs)?void 0:t.type)==="application/json"&&(null==(a=e.attribs)?void 0:a["data-placement"])==="w2w-head-to-head"}process(e,t){var a,s;return(null==t||null==(a=t.whereToWatchArticle)?void 0:a.headToHead)?(0,i.jsx)(tT,{...null==(s=t.whereToWatchArticle)?void 0:s.headToHead,...t.whereToWatchArticle.teamsAndContainerData}):(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="head-to-head-processor"}},sP=new class extends sp{match(e){return this.isElement(e)&&"hr"===e.name}process(e){return this.match(e)?(0,i.jsx)(tk,{}):(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="hr-processor"}},sV=new class extends sp{match(e){return this.isElement(e)&&"picture"===e.name}prepareImageProps(e){var t;let{alt:a,src:s,"perform:prop":n}=e,{width:r,height:l}=(null==n?void 0:n.split(";").reduce((e,t)=>{let[a,s]=(null==t?void 0:t.split(":"))||[];return{...e,[a]:s}},{}))||{};return{alt:a,src:s,width:parseInt(r,10),height:parseInt(l,10),decoding:x.R7.ASYNC,loading:x.uj.LAZY,srcSet:{default:{width:380,quality:60},sizes:[{width:620},{width:867},{width:1200}]},fit:"off",sizes:{default:"calc(66.67vw + 88px)","(min-width: 1440px)":867,"(min-width: 1040px)":620,"(min-width: 380px)":"95vw"},credit:(null==e?void 0:e["data-copyright"])||"",source:null!=(t=null==e?void 0:e["data-source"])?t:""}}process(e){if(this.isElement(e)){let t=e.children.find(e=>this.isElement(e)&&"img"===e.name);if(t&&this.isElement(t))return(0,i.jsx)(x._V,{...this.prepareImageProps(t.attribs)})}return(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="inline-images-processor"}},sM=e=>{let t=(0,s.o)();
1return(null==e?void 0:e.injuriesAndSuspensions)?(0,i.jsx)(tL,{title:t("page.match.injuriesAndSuspensions",void 0,{ns:"matchpage"}),toggledTeam:null==e?void 0:e.teamsAndContainerData.toggledTeam,teamAInfo:(0,i.jsx)(tB,{players:e.injuriesAndSuspensions.teamA}),teamBInfo:(0,i.jsx)(tB,{players:e.injuriesAndSuspensions.teamB,reversed:!0}),teamA:e.teamsAndContainerData.teamA,teamB:e.teamsAndContainerData.teamB,onChangeCallback:e.teamsAndContainerData.onChangeCallback}):null},sW=new class extends sp{match(e){var t,a;return this.isElement(e,"script")&&(null==(t=e.attribs)?void 0:t.type)==="application/json"&&(null==(a=e.attribs)?void 0:a["data-placement"])==="w2w-injuries-suspensions"}process(e,t){return(null==t?void 0:t.whereToWatchArticle)?(0,i.jsx)(sM,{...t.whereToWatchArticle}):(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="injuries-suspensions-processor"}},sR=new class extends sp{isInstagramBlockquote(e){return this.isElement(e)&&"blockquote"===e.name&&!!e.attribs["data-instgrm-permalink"]&&"instagram-media"===e.attribs.class}isInstagramScript(e){var t;return this.isElement(e,"script")&&(null==(t=e.attribs.src)?void 0:t.includes("//www.instagram.com/embed.js"))}match(e){return this.isInstagramScript(e)||this.isInstagramBlockquote(e)}process(e){return this.isInstagramBlockquote(e)?(0,i.jsx)(tI,{children:(0,sm.zd)([e])}):(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="instagram-embed-processor"}},sH=e=>{let t=(0,s.o)();if(e)return(0,i.jsxs)(i.Fragment,{children:[e.lineups?(0,i.jsx)(tL,{title:t("page.match.lineup",void 0,{ns:"matchpage"}),...e.teamsAndContainerData,teamAInfo:(0,i.jsx)(tP,{players:e.lineups.teamA}),teamBInfo:(0,i.jsx)(tP,{players:e.lineups.teamB,reversed:!0})}):null,e.substitutes?(0,i.jsx)(tL,{title:t("page.match.substitutes",void 0,{ns:"matchpage"}),...e.teamsAndContainerData,teamAInfo:(0,i.jsx)(tP,{players:e.substitutes.teamA}),teamBInfo:(0,i.jsx)(tP,{players:e.substitutes.teamB,reversed:!0})}):null]})},sU=new class extends sp{match(e){var t,a;return this.isElement(e,"script")&&(null==(t=e.attribs)?void 0:t.type)==="application/json"&&(null==(a=e.attribs)?void 0:a["data-placement"])==="w2w-line-ups"}process(e,t){return(null==t?void 0:t.whereToWatchArticle)?(0,i.jsx)(sH,{...t.whereToWatchArticle}):(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="lineups-processor"}},sG=new class extends sp{match(e){var t,a;return this.isElement(e,"script")&&(null==(t=e.attribs)?void 0:t.type)==="application/json"&&(null==(a=e.attribs)?void 0:a["data-placement"])==="w2w-match-details"}process(e,t){var a;return(0,i.jsx)(tW,{...null==t||null==(a=t.whereToWatchArticle)?void 0:a.matchDetails})}constructor(...e){super(...e),this.name="match-details-processor"}},sq=e=>{let t=(0,s.o)();if(null==e?void 0:e.matchForm)return(0,i.jsx)(tU,{title:t("page.match.teamForm.title"),...e.matchForm,...e.teamsAndContainerData})},sY=new class extends sp{match(e){var t,a;return this.isElement(e,"script")&&(null==(t=e.attribs)?void 0:t.type)==="application/json"&&(null==(a=e.attribs)?void 0:a["data-placement"])==="w2w-form"}process(e,t){return(null==t?void 0:t.whereToWatchArticle)?(0,i.jsx)(sq,{...null==t?void 0:t.whereToWatchArticle}):(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="match-form-processor"}},sz=new class extends sp{match(e){var t,a;return this.isElement(e,"script")&&(null==(t=e.attribs)?void 0:t.type)==="application/json"&&(null==(a=e.attribs)?void 0:a["data-placement"])==="match-recirculation"}process(e,t){return(null==t?void 0:t.matches)&&t.matches.length?(0,i.jsx)(tG.t,{matches:t.matches,preMatchVisibilityHours:null==t?void 0:t.preMatchVisibilityHours}):(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="match-recirculation-body-processor"}},sK=new class extends sx{match(e){var t,a;return this.isElement(e)&&(null==(a=e.attribs)||null==(t=a["data-fco-embed-id"])?void 0:t.startsWith("fco-match-recirculation:"))===!0}process(e,t,a){var s;let n=e.attribs["data-fco-embed-id"],r=this.getBodyEmbedData(e=>"MatchRecirculationBodyEmbed"===e.__typename,n,a);return(null==r||null==(s=r.matchRows)?void 0:s.length)?(0,i.jsx)(U,{matches:r.matchRows.map(sj)}):(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="next-match-recirculation-body-
1processor"}},sZ="Poll tracking",sJ=e=>{var t,a,l;let o=null!=(a=null==(t=(0,n.t)())?void 0:t.toLowerCase())?a:"",c=(0,s.l)(),d=null!=(l=(0,G.t)())?l:"en";return e?(0,i.jsx)(tQ,{...e,closeTime:e.closeTime?new Date(e.closeTime):void 0,expiryTime:e.expiryTime?new Date(e.expiryTime):void 0,className:h("fco-without-article-body","without-article-styling"),onVote:t=>{(0,r.t)({category:sZ,action:"Poll Click",platform:o}),e9.A.post("/api/poll/vote",{pollId:e.id,optionId:t,edition:d}).catch(t=>c.child().withContext({caller:"PollBodyEmbed.handleVoteClick"}).withData({pollId:e.id,pollQuestion:e.question,edition:d}).withError(t instanceof Error?t:Error(String(t))).error("Failed to vote on PollBodyEmbed"))},onImpression:()=>{(0,r.t)({category:sZ,action:"Poll Impression",platform:o})}}):null},s$=new class extends sx{match(e){var t,a;return this.isElement(e)&&(null==(a=e.attribs)||null==(t=a["data-fco-embed-id"])?void 0:t.includes("fco-contentstack-embed:poll"))}process(e,t,a){let s=e.attribs["data-fco-embed-id"],n=this.getBodyEmbedData(e=>"PollBodyEmbed"===e.__typename,s,a);return(null==n?void 0:n.poll)?(0,i.jsx)(sJ,{...n.poll}):(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="poll-body-processor"}},sX=e=>{var t;let{powerRankingsNews:a}=e,s=(0,b.t)(),c=(null!=(t=(0,n.t)())?t:"").toLowerCase(),{ref:d,inView:u}=(0,o.Wx)({triggerOnce:!0,threshold:.75});if((0,l.useEffect)(()=>{u&&(0,r.t)({platform:c,category:"Sponsorship",action:"Article Carousel impression",label:"Aramco Power Ranking"})},[u,c]),!(null==a?void 0:a.cards.length))return null;let{headline:m,cards:p}=a;return(0,i.jsx)("section",{ref:d,className:h("fco-power-rankings-embed","without-article-styling","fco-without-article-body"),children:(0,i.jsx)(t0.t,{headline:null!=m?m:"",cards:p.map(e=>(0,w.n)(e,s,c))})})},sQ=new class extends sx{match(e){var t;return this.isElement(e)&&(null==(t=e.attribs)?void 0:t["data-fco-dynamic-placement-type"])==="power-rankings-carousel"}process(e,t,a){let s=e.attribs["data-fco-embed-id"],n=this.getBodyEmbedData(e=>"PowerRankingsCarouselBodyEmbed"===e.__typename,s,a);return n?(0,i.jsx)(sX,{...n}):(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="power-rankings-processor"}},s0=e=>{var t;let{tags:a,personalization:o}=e,c=(0,s.o)(),d=(0,b.t)(),u=(null!=(t=(0,n.t)())?t:"").toLowerCase(),m=(0,l.useMemo)(()=>{var e;return null!=(e=null==a?void 0:a.filter(e=>e.display))?e:[]},[a]);if(!m.length)return null;let h=(e=>{let{tags:t,personalization:a,urlBuilder:s,platform:n,t:l}=e;return t.map(e=>({name:e.name,href:(0,w.o)({link:e.link,urlBuilder:s}),rel:(0,w.a)({follow:e.link.follow,sponsored:!1}),target:e.link.newTab?"_blank":void 0,isLoading:null==a?void 0:a.isLoading,favourite:(e=>{var t,a;let{tag:s,personalization:n,t:r}=e,l=null==(a=s.target)||null==(t=a.team)?void 0:t.id;if(!l||!n)return;let i=n.isFavoriteTeam(l);return{checked:i,ariaLabel:"".concat(r(i?"generic.unfollow":"generic.follow")," ").concat(s.name),onClick:()=>n.onFollowToggle(l,s.name)}})({tag:e,personalization:a,t:l}),onClick:()=>(0,r.t)({platform:n,category:t6,action:"Related Topics Tag Click",label:e.name})}))})({tags:m,personalization:o,urlBuilder:d,platform:u,t:c});return(0,i.jsx)(t3,{title:c("component.tagCloud.title"),tags:h,className:"fco-without-article-body without-article-styling "})},s1=new class extends sx{match(e){var t;return this.isElement(e)&&(null==(t=e.attribs)?void 0:t["data-fco-dynamic-placement-type"])==="related-topics-tags"}process(e,t,a){let s=e.attribs["data-fco-embed-id"],n=this.getBodyEmbedData(e=>"RelatedTopicsTagsBodyEmbed"===e.__typename,s,a);return n?(0,i.jsx)(s0,{...n,personalization:null==t?void 0:t.relatedTopicsTags}):(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="related-topics-tags-processor"}},s2=new class extends sp{isRiddleEmbed(e){var t;return this.isElement(e)&&"div"===e.name&&!!(null==(t=e.attribs)?void 0:t["data-rid-id"])}getIFrameProps(e){let t=e.children.find(e=>"name"in e&&"iframe"===e.name);return t&&"attribs"in t?{title:t.attribs.title,src:t.attribs.src}:null}match(e){return this.isRiddleEmbed(e)}process(e){return(0,i.jsx)(t4,{id:e.attribs["data-rid-id"],iframeProps:this.getIFrameProps(e),divProps:(0,sm.$5)(e.attribs)})}constructor(...e){super(...e),this.name="riddle-processor"}},s5={allowedTags:sh.defaults.allowedTags.concat(["script","img","picture","iframe","center","noscript"]),allowVulnerableTags:!0,allowedAttributes:!1,allowedSchemes:["http","https","mailto","data"],allowProtocolRelative:!0,parser:{lowerCaseTags:!0}},s6={stay22:"stay22.com/embed"},s3=class{addProcessors(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];this.processors.push(...t)}addEmbeds(e){e&&Object.keys(e).length&&(this.embeds=e)}addBodyEmbeds(e){e&&Object.keys(e).length&&(this.bodyEmbeds=e)}sanitizeBodyHtml(e){return sh(e,s5)}process(e){let t=this.useSanitizedBody?this.sanitizeBodyHtml(e):e;try{return(0,i.jsx)(i.Fragment,{children:(0,sm.Ay)(t,{trim:!0,replace:e=>{var t,a;return null==(a=this.processors)||null==(t=a.find(t=>t.match(e)))?void 0:t.process(e,this.embeds,this.bodyEmbeds)}})})}catch(e){var a;return this.logger.withError(e).fatal("Error processing body: ".concat(null!=(a=null==e?void 0:e.name)?a:"unknown")),(0,i.jsx)(i.Fragment,{})}}constructor(e,t=!1){this.processors=[],this.embeds=void 0,this.bodyEmbeds=void 0,this.logger=e,this.useSanitizedBody=t}},s9=new class extends sx{match(e){var t,a;return this.isElement(e)&&(null==(a=e.attribs)||null==(t=a["data-fco-embed-id"])?void 0:t.includes("fco-sports-data-widget:form"))===!0}process(e,t,a){let s=e.attribs["data-fco-embed-id"],n=this.getBodyEmbedData(e=>"SportsDataWidgetFootballFormBodyEmbed"===e.__typename,s,a);return n&&n.footballMatchForm&&n.footballTeams?(0,i.jsx)(ar,{...n,className:"fco-sport-widget"}):(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="sports-data-football-form-processor"}},s4=new class extends sx{match(e){var t,a;return this.isElement(e)&&(null==(a=e.attribs)||null==(t=a["data-fco-embed-id"])?void 0:t.includes("fco-sports-data-widget:head-to-head"))===!0}process(e,t,a){let s=e.attribs["data-fco-embed-id"],n=this.getBodyEmbedData(e=>"SportsDataWidgetFootballH2HBodyEmbed"===e.__typename,s,a);return(null==n?void 0:n.footballMatchH2H)?(0,i.jsx)(ah,{footballTeams:n.footballTeams,footballMatchH2H:n.footballMatchH2H,className:"fco-without-article-body without-article-styling fco-sport-widget",withBorder:!0}):(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="sports-data-widget-head-to-head-processor"}};function s7(e){var t,a;return e?{name:e.name,code:e.code,crestUrl:null!=(a=null==(t=e.image)?void 0:t.url)?a:null}:null}function s8(e){let t=e.staff.find(e=>"COACH"===e.type);return{formation:null,kit:null,lineup:e.firstSquad.map(e=>{var t;return{person:{id:e.person.id,name:e.person.name,verified:!1},position:aI.UNKNOWN,shirtNumber:null!=(t=e.shirtNumber)?t:null,isCaptain:!1,events:[]}}),substitutes:e.substitutes.map(e=>{var t;return{person:{id:e.person.id,name:e.person.name,verified:!1},shirtNumber:null!=(t=e.shirtNumber)?t:null,events:[]}}),injuries:e.injured.map(e=>{var t;return{person:{id:e.person.id,name:e.person.name,verified:!1},shirtNumber:null!=(t=e.shirtNumber)?t:null}}),suspensions:e.suspended.map(e=>{var t;return{person:{id:e.person.id,name:e.person.name,verified:!1},shirtNumber:null!=(t=e.shirtNumber)?t:null,type:"OTHER"}}),manager:t?{id:t.person.id,name:t.person.name,verified:!1}:null}}function ne(e){return e?{injuries:e.injuries.map(e=>{var t;return{person:{id:e.person.id,name:e.person.name,verified:e.person.verified},shirtNumber:null!=(t=e.shirtNumber)?t:null}}),suspensions:e.suspensions.map(e=>{var t;return{person:{id:e.person.id,name:e.person.name,verified:e.person.verified},shirtNumber:null!=(t=e.shirtNumber)?t:null,type:e.type}})}:{injuries:[],suspensions:[]}}var nt=new class extends sx{match(e){var t,a;return this.isElement(e)&&(null==(a=e.attribs)||null==(t=a["data-fco-embed-id"])?void 0:t.includes("fco-sports-data-widget:injuries-suspensions:football"))===!0}process(e,t,a){var s,n;let r=e.attribs["data-fco-embed-id"],l=this.getBodyEmbedData(e=>"SportsDataWidgetFootballInjuriesSuspensionsBodyEmbed"===e.__typename,r,a);if(!(null==l?void 0:l.footballInjuriesSuspensions))return(0,i.jsx)(i.Fragment,{});let{teamA:o,teamB:c}=l.footballInjuriesSuspensions;
1return(0,i.jsx)(aj,{teamA:ne(o),teamB:ne(c),teamAInfo:s7(null==(s=l.footballTeams)?void 0:s.teamA),teamBInfo:s7(null==(n=l.footballTeams)?void 0:n.teamB),className:h("fco-without-article-body","without-article-styling","fco-injuries-suspensions-embed","fco-sport-widget")})}constructor(...e){super(...e),this.name="sports-data-widget-injuries-suspensions-processor"}},na=[ap.i.CARD_RED,ap.i.CARD_SECOND_YELLOW,ap.i.CARD_YELLOW,"SUB_OFF","ASSIST"],ns=[ap.i.GOAL,ap.i.GOAL_OWN,ap.i.GOAL_PENALTY],nn={[ap.i.CARD_YELLOW]:"yellow-card",[ap.i.CARD_RED]:"red-card",[ap.i.CARD_SECOND_YELLOW]:"second-yellow",[ap.i.GOAL]:"goal-filled",[ap.i.GOAL_OWN]:"goal-filled",[ap.i.GOAL_PENALTY]:"penalty-scored",[ap.i.GOAL_PENALTY_MISS]:"penalty-missed",[ap.i.GOAL_PENALTY_SAVE]:"penalty-missed",[ap.i.GOAL_PENALTY_SHOOTOUT]:"penalty-scored",[ap.i.GOAL_PENALTY_SHOOTOUT_MISS]:"penalty-missed",[ap.i.GOAL_PENALTY_SHOOTOUT_SAVE]:"penalty-missed",SUB_ON:"substitution-in",SUB_OFF:"substitution-out",ASSIST:"assist",INJURY:"injury",VAR:"var"},nr=(e,t,a)=>{var s,n,r,l;return{teamName:null!=(n=null==e?void 0:e.name)?n:void 0,teamNameShort:null==e?void 0:e.code,crestPath:null==e||null==(s=e.image)?void 0:s.url,formation:null!=(r=null==t?void 0:t.formation)?r:"",players:null!=(l=null==t?void 0:t.lineup.map(e=>{var t,s,n,r,l,o,c,d,u,m;let h=(null==(t=e.person)?void 0:t.verified)&&a?a.toPersonPage(null!=(r=e.person.id)?r:"",a.slugify(null!=(l=e.person.name)?l:"")):"",p=(e=>e.events.reduce((t,a)=>{switch(a.__typename){case"MatchPeriodEvent":case"MatchVarEvent":return t;default:{var s,n,r;let l;if("type"in a&&(l=ap.r.find(e=>e===a.type)),"MatchGoalEvent"===a.__typename&&(null==(s=a.assist)?void 0:s.id)===(null==(n=e.person)?void 0:n.id)&&(l="ASSIST"),"MatchSubstitutionEvent"===a.__typename&&(l=function(e,t){var a,s;return(null==(a=e.in)?void 0:a.id)===t?"SUB_ON":(null==(s=e.out)?void 0:s.id)===t?"SUB_OFF":void 0}(a,null==(r=e.person)?void 0:r.id)),!l)return t;let o=nn[l];return[...t,{type:l,icon:o?(0,i.jsx)(v.t,{glyph:o,className:"fco-event-icon fco-event-icon--".concat(o)}):null}]}}},[]))(e);return{id:e.person.id,image:{alt:e.person.name,url:null!=(o=null==(s=e.person.image)?void 0:s.url)?o:"",isPlaceholder:null==(c=null==(n=e.person.image)?void 0:n.isPlaceholder)||c},...h?{href:h}:{},number:null!=(d=e.shirtNumber)?d:0,name:null!=(u=e.person.name)?u:"",isCaptain:e.isCaptain,pitchPosition:null!=(m=e.pitchPosition)?m:{x:0,y:0},leftEvents:p.filter(e=>na.includes(e.type)).map(e=>e.icon),rightEvents:p.filter(e=>ns.includes(e.type)).map(e=>e.icon)}}))?l:[]}},nl=e=>{var t,a,n,r,l,o,c,d,u,m;let{footballData:p}=e,f=(0,b.t)(),g=(0,s.o)("matchpage");return p.footballMatchLineups?(0,i.jsxs)("section",{className:h("fco-football-match-lineups","without-article-styling","fco-without-article-body"),children:[(0,i.jsx)(y.t,{variant:"default",headline:g("component.lineups.".concat(p.footballMatchLineups.confirmed?"confirmedTitle":"probableTitle"),{param1:null==(a=p.footballTeams)||null==(t=a.teamA)?void 0:t.name,param2:null==(r=p.footballTeams)||null==(n=r.teamB)?void 0:n.name}),className:"fco-football-match-lineups__title"}),(0,i.jsx)(aF.t,{teamA:nr(null==p||null==(l=p.footballTeams)?void 0:l.teamA,null==p||null==(o=p.footballMatchLineups)?void 0:o.teamA,f),teamB:nr(null==p||null==(c=p.footballTeams)?void 0:c.teamB,null==p||null==(d=p.footballMatchLineups)?void 0:d.teamB,f),htmlAttributes:{className:h("without-article-styling","fco-football-match-lineups__pitch","fco-without-article-body")}}),(0,i.jsx)(aB,{lineups:p.footballMatchLineups,teamA:s7(null==(u=p.footballTeams)?void 0:u.teamA),teamB:s7(null==(m=p.footballTeams)?void 0:m.teamB),className:h("without-article-styling","fco-football-match-lineups__table","fco-without-article-body"),hideInjuriesSuspensions:!0})]}):null},ni=new class extends sx{match(e){var t,a;return this.isElement(e)&&(null==(a=e.attribs)||null==(t=a["data-fco-embed-id"])?void 0:t.includes("fco-sports-data-widget:line-ups"))===!0}process(e,t,a){var s,n,r,l;let o=e.attribs["data-fco-embed-id"],c=this.getBodyEmbedData(e=>"SportsDataWidgetFootballLineupsBodyEmbed"===e.__typename,o,a);if(null==c?void 0:c.footballMatchLineups)return(0,i.jsx)(nl,{footballData:c});let d=this.getBodyEmbedData(e=>"SportsDataWidgetAmericanFootballLineupsBodyEmbed"===e.__typename,o,a);if(null==d?void 0:d.americanFootballMatchLineups)return(0,i.jsx)(aB,{lineups:{confirmed:!1,teamA:s8(d.americanFootballMatchLineups.teamA),teamB:s8(d.americanFootballMatchLineups.teamB)},teamA:s7(null==(s=d.americanFootballTeams)?void 0:s.teamA),teamB:s7(null==(n=d.americanFootballTeams)?void 0:n.teamB),hideInjuriesSuspensions:!0,className:"without-article-styling"});let u=this.getBodyEmbedData(e=>"SportsDataWidgetBasketballLineupsBodyEmbed"===e.__typename,o,a);return(null==u?void 0:u.basketballMatchLineups)?(0,i.jsx)(aB,{lineups:{confirmed:!1,teamA:s8(u.basketballMatchLineups.teamA),teamB:s8(u.basketballMatchLineups.teamB)},teamA:s7(null==(r=u.basketballTeams)?void 0:r.teamA),teamB:s7(null==(l=u.basketballTeams)?void 0:l.teamB),hideInjuriesSuspensions:!0,className:"without-article-styling"}):(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="sports-data-widget-lineups-processor"}};function no(e){return{label:e.label,channel:{name:e.channel.name,logo:{url:e.channel.logo.url,alt:e.channel.logo.alt},href:e.channel.urlLink.url,target:"_blank",wrapperProvider:e.channel.urlLink.wrapperProvider,rel:"noopener".concat(e.channel.urlLink.follow?"":" nofollow").concat(e.channel.urlLink.sponsored?" sponsored":"")}}}var nc=new class extends sx{match(e){var t,a;return this.isElement(e)&&(null==(a=e.attribs)||null==(t=a["data-fco-embed-id"])?void 0:t.includes("fco-sports-data-widget:ott-event-broadcasters"))===!0}process(e,t,a){var s;let n=e.attribs["data-fco-embed-id"],r=this.getBodyEmbedData(e=>"SportsDataWidgetOttEventBroadcastersBodyEmbed"===e.__typename,n,a);return(null==r||null==(s=r.rows)?void 0:s.length)?(0,i.jsx)(aV,{rows:r.rows.map(no),className:"fco-sport-widget"}):(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="sports-data-widget-ott-event-broadcasters-processor"}};
1function nd(e){return{name:e.name,date:e.startDate,contestants:e.contestants,competition:e.competition,venue:e.venue,action:{type:"ott",tvChannels:e.schedule}}}var nu=new class extends sx{match(e){var t,a;return this.isElement(e)&&(null==(a=e.attribs)||null==(t=a["data-fco-embed-id"])?void 0:t.includes("fco-sports-data-widget:ott-table"))===!0}process(e,t,a){var s,n,r;let l=e.attribs["data-fco-embed-id"],o=this.getBodyEmbedData(e=>"SportsDataWidgetOttTableBodyEmbed"===e.__typename,l,a);return(null==o||null==(n=o.schedule)||null==(s=n.events)?void 0:s.length)?(0,i.jsx)(aU,{events:null==o||null==(r=o.schedule)?void 0:r.events.map(nd),className:"without-article-styling fco-sport-widget"}):(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="sports-data-widget-ott-table-processor"}},nm=[aq.S.PROMOTION_1,aq.S.PROMOTION_2,aq.S.PROMOTION_3,aq.S.PROMOTION_4,aq.S.PROMOTION_5,aq.S.PROMOTION_6],nh=[aq.S.RELEGATION_1,aq.S.RELEGATION_2,aq.S.RELEGATION_3],np={WIN:"w",DRAW:"d",LOSE:"l"},nf=e=>{var t;let{footballMatchStandings:a,selectedTeamsIds:s}=e,n=(0,b.t)(),{markers:r,table:l}=a,o=function(e){let t={},a=0,s=0;for(let n of e)"PROMOTION"===n.type&&a<nm.length?t[n.id]=nm[a++]:"RELEGATION"===n.type&&s<nh.length&&(t[n.id]=nh[s++]);return t}(r),c=l.rankings.map(e=>{var t,a,s,r,l,i,c;return{position:e.position,positionChange:(i=e.position,null===(c=e.previousPosition)?"no-change":i<c?"up":i>c?"down":"no-change"),markerType:(null==(a=e.markers)||null==(t=a[0])?void 0:t.id)?o[e.markers[0].id]:void 0,team:{id:e.team.id,name:e.team.name,shortName:null!=(r=e.team.shortName)?r:void 0,code:null!=(l=e.team.code)?l:void 0,crestPath:null==(s=e.team.image)?void 0:s.url,href:function(e,t){var a;if(t)return t.toTeamPage(e.id,t.slugify(null!=(a=e.name)?a:""))}(e.team,n)},played:e.played,win:e.win,draw:e.draw,lose:e.lose,goalsFor:e.goalsFor,goalsAgainst:e.goalsAgainst,goalsDifference:e.goalsDifference,points:e.points,form:function(e){return e.map((t,a)=>{let{wdl:s}=t;return{type:np[s],isMostRecent:a===e.length-1}})}(e.form)}}),d=r.map(e=>({type:o[e.id],label:e.name}));return(0,i.jsx)(aG.t,{title:null!=(t=l.name)?t:void 0,live:l.live,view:"compact",size:"sm",columns:"detailed",showDivider:!0,showFormSwitch:!0,data:c,legend:d,showTeamLabel:!1,selectedTeamsIds:s,className:"fco-sport-widget"})},ng=new class extends sx{match(e){var t,a;return this.isElement(e)&&(null==(a=e.attribs)||null==(t=a["data-fco-embed-id"])?void 0:t.includes("fco-sports-data-widget:standings"))===!0}process(e,t,a){let s=e.attribs["data-fco-embed-id"],n=this.getBodyEmbedData(e=>"SportsDataWidgetFootballStandingsBodyEmbed"===e.__typename,s,a);return(null==n?void 0:n.footballMatchStandings)?(0,i.jsx)(nf,{footballMatchStandings:n.footballMatchStandings,selectedTeamsIds:null==t?void 0:t.teamIds}):(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="sports-data-widget-standings-processor"}};function nv(e){return{name:e.name,date:e.startDate,contestants:e.contestants,competition:e.competition,venue:e.venue,action:{type:"tickets",href:e.ticket.urlLink.url,target:"_blank",wrapperProvider:e.wrapperProvider,text:e.ticket.text,rel:"noopener".concat(e.ticket.urlLink.follow?"":" nofollow").concat(e.ticket.urlLink.sponsored?" sponsored":"")}}}var nb=new class extends sx{match(e){var t,a;return this.isElement(e)&&(null==(a=e.attribs)||null==(t=a["data-fco-embed-id"])?void 0:t.includes("fco-sports-data-widget:tickets-table"))===!0}process(e,t,a){var s,n;let r=e.attribs["data-fco-embed-id"],l=this.getBodyEmbedData(e=>"SportsDataWidgetTicketsTableBodyEmbed"===e.__typename,r,a);return(null==l||null==(s=l.schedule)?void 0:s.events.length)?(0,i.jsx)(aU,{events:null==l||null==(n=l.schedule)?void 0:n.events.map(nv),className:"without-article-styling fco-sport-widget"}):(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="sports-data-widget-tickets-table-processor"}},nx=new class extends sp{isSpotifyEmbedIframe(e){var t,a;return this.isElement(e)&&"iframe"===e.name&&(null==(a=e.attribs)||null==(t=a.src)?void 0:t.startsWith("https://open.spotify.com"))}match(e){return this.isSpotifyEmbedIframe(e)}process(e){return(0,i.jsx)(aY,{...(0,sm.$5)(e.attribs)})}constructor(...e){super(...e),this.name="spotify-embed-processor"}},n_=new class extends sp{match(e){var t,a;return this.isElement(e,"script")&&(null==(t=e.attribs)?void 0:t.type)==="application/json"&&(null==(a=e.attribs)?void 0:a["data-placement"])==="w2w-standings"}process(e,t){var a;return(null==t||null==(a=t.whereToWatchArticle)?void 0:a.standings)?(0,i.jsx)(a5,{...t.whereToWatchArticle.standings}):(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="standings-processor"}},nj=new class extends sp{match(e){return"style"===e.type}process(){return(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="style-processor"}},nw=new class extends sp{match(e){return this.isElement(e)&&"table"===e.name}process(e){var t,a;let s=null==(t=e.attribs)?void 0:t.class,n=null==(a=e.attribs)?void 0:a.id;return(0,i.jsx)(a6,{children:(0,i.jsx)("table",{id:n,className:s,children:(0,sm.zd)(e.children,{replace:e=>{if(e instanceof sm.Hg&&e.attribs&&"style"in e.attribs){let t=/text-align: [a-zA-Z]+;/.exec(e.attribs.style);return Object.assign(e,{attribs:{...e.attribs,style:null==t?void 0:t[0]}})}return e}})})})}constructor(...e){super(...e),this.name="table-processor"}},ny=e=>{let{text:t}=e;return t?(0,i.jsx)("p",{className:"fco-teaser fco-without-article-body without-article-styling",children:t}):null},nN=new class extends sx{match(e){var t;return this.isElement(e)&&(null==(t=e.attribs)?void 0:t["data-fco-dynamic-placement-type"])==="teaser"}process(e,t,a){let s=e.attribs["data-fco-embed-id"],n=this.getBodyEmbedData(e=>"TeaserBodyEmbed"===e.__typename,s,a);return(null==n?void 0:n.text)?(0,i.jsx)(ny,{...n}):(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="teaser-processor"}},nA=new class extends sp{isThirdPartyIFrame(e){if(this.isElement(e)&&"iframe"===e.name){var t;let a=e.attribs.src,s=null==(t=Object.entries(s6).find(e=>null==a?void 0:a.includes(e[1])))?void 0:t[0];if(s)return this.providerName=s,!0}return!1}match(e){return this.isThirdPartyIFrame(e)}process(e){return this.providerName?(0,i.jsx)(a3.t,{iframeProps:{...e.attribs},provider:this.providerName}):(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="thrid-party-iframe-processor",this.providerName=null}},nS=new class extends sp{isTikTokBlockquote(e){return this.isElement(e)&&"blockquote"===e.name&&"tiktok-embed"===e.attribs.class}
1isTikTokScript(e){var t;return this.isElement(e,"script")&&(null==(t=e.attribs.src)?void 0:t.includes("//www.tiktok.com/embed.js"))}match(e){return this.isTikTokScript(e)||this.isTikTokBlockquote(e)}process(e){return this.isTikTokBlockquote(e)?(0,i.jsx)(a4,{children:(0,sm.zd)([e])}):(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="tik-tok-processor"}},nE=new class extends sp{isTwitchScript(e){var t,a;return this.isElement(e,"script")&&(null==(a=e.attribs)||null==(t=a.src)?void 0:t.includes("//embed.twitch.tv/embed/v1.js"))}isTwitchIframe(e){var t;return this.isElement(e)&&"iframe"===e.name&&(null==(t=e.attribs.src)?void 0:t.includes("twitch.tv"))}isTwitchDiv(e){var t;return this.isElement(e)&&"div"===e.name&&(null==(t=e.attribs)?void 0:t.id)==="twitch-embed"}isTwitchGenerateScript(e){var t,a,s;return this.isElement(e,"script")&&!!(null==(a=e.attribs)||null==(t=a.type)?void 0:t.includes("text/javascript"))&&e.firstChild instanceof sm.EY&&(null==(s=e.firstChild.nodeValue)?void 0:s.includes("Twitch"))}match(e){return this.isTwitchScript(e)||this.isTwitchDiv(e)||this.isTwitchIframe(e)||this.isTwitchGenerateScript(e)}process(e){if(this.isTwitchScript(e)||this.isTwitchDiv(e))return(0,i.jsx)(i.Fragment,{});if(this.isTwitchIframe(e))return(0,i.jsx)(st,{src:e.attribs.src,...(0,sm.$5)(e.attribs)});if(this.isTwitchGenerateScript(e)){let t=e.firstChild,a;return t instanceof sm.EY&&(a=t.data),(0,i.jsx)(a8,{data:a})}return(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="twitch-iframe-processor"}},nT=new class extends sp{isTwitterTimeline(e){return this.isElement(e)&&"twitter-timeline"===e.attribs.class}isTwitterBlockquote(e){return this.isElement(e)&&"blockquote"===e.name&&"twitter-tweet"===e.attribs.class}isTwitterScript(e){var t;return this.isElement(e,"script")&&"script"===e.type&&(null==(t=e.attribs.src)?void 0:t.includes("//platform.twitter.com/widgets.js"))}match(e){return this.isTwitterTimeline(e)&&"attribs"in e&&e.attribs&&delete e.attribs.class,this.isTwitterScript(e)||this.isTwitterBlockquote(e)}process(e){return this.isTwitterBlockquote(e)?(0,i.jsx)(sa,{children:(0,sm.zd)([e])}):(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="twitter-processor"}},nk=new class extends sp{match(e){return this.isElement(e)&&"iframe"===e.name}process(){return(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="unknown-iframe-processor"}},nC=new class extends sp{match(e){return this.isElement(e,"script")}process(){return(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="unknown-script"}},nL=new class extends sp{match(e){var t;return this.isElement(e)&&"img"===e.name&&(null==(t=e.attribs)?void 0:t["data-fco-pixel-tracker-type"])==="vg-wort"}process(e){let t=e.attribs["data-fco-pixel-tracker-url"];return t?(0,i.jsx)(sn,{src:t}):(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="vg-wort-pixel-processor"}},nO=new class extends sp{match(e){var t,a;return this.isElement(e,"script")&&(null==(t=e.attribs)?void 0:t.type)==="application/json"&&(null==(a=e.attribs)?void 0:a["data-placement"])==="w2w-ott-table"}process(e,t){var a;return(0,i.jsx)(sl,{events:null==t||null==(a=t.w2wSchedule)?void 0:a.events,className:"without-article-styling"})}constructor(...e){super(...e),this.name="w2w-evergreen-processor"}},nD=new class extends sp{match(e){var t;return this.isElement(e)&&"iframe"===e.name&&(null==(t=e.attribs.src)?void 0:t.includes("youtube.com/embed"))}process(e){return this.isElement(e)&&e.attribs.src?(0,i.jsx)(t2.YoutubeVideoPlayer,{url:e.attribs.src}):(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="youtube-processor"}},nB=[s$,sV,nw,sL,sC,nT,nD,sR,nS,nE,sO,sD,sI,sz,sK,nj,s1,nN,sE,sN,sk,sg,sT,sf,sv,s_,nO,s2,sA,nx,sB,nA,sg,s9,s4,ni,nc,nt,nu,nb,ng,sQ,sP,nL,nC,nk],nI=[sY,n_,sW,sU,sG,sF,s_],nF=e=>{let{body:t,processors:a,embeds:n,useSanitizedBody:r=!1,disableDefaultStyles:o=!1,bodyEmbeds:c}=e,d=(0,s.l)(),u=(0,l.useMemo)(()=>{let e=(null==a?void 0:a.length)?a:nB,s=new s3(d,r);return s.addProcessors(...(null==n?void 0:n.whereToWatchArticle)?nI:[],...e),s.addEmbeds(n),s.addBodyEmbeds(c),s.process(t||"")},[t,a,n,r,d,c]);return(0,i.jsx)("div",{...o?{}:{className:"fco-article-body"},children:u})},nP=(new class extends sp{match(e){return!!this.isIframe(e)}isIframe(e){var t,a;return"iframe"===e.tagName&&!!(null==(a=e.attribs)||null==(t=a.src)?void 0:t.includes("widget-carousel"))}process(e){return(0,i.jsx)(c,{...e.attribs})}constructor(...e){super(...e),this.name="abs-iframe-processor"}},new class extends sp{match(e){var t;return this.isElement(e)&&"iframe"===e.name&&(null==(t=e.attribs.src)?void 0:t.includes("players.brightcove"))}process(e){if(this.match(e)){let t=(0,sm.$5)(e.attribs);return t.src?(0,i.jsx)(t1.t,{...t,src:t.src,autoplay:!0,loading:"lazy"}):(0,i.jsx)(i.Fragment,{})}return(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="brightcove-processor"}}),nV=new class extends sp{isFuboTVEmbed(e){var t;return this.isElement(e)&&"div"===e.name&&(null==(t=e.attribs)?void 0:t.id)==="fuboWidgetContain"}isIFrameNodeWrapper(e){var t;return this.isElement(e)&&(null==(t=e.attribs)?void 0:t.class)==="fuboWidget"}isIFrameNode(e){var t,a;return this.isElement(e)&&"iframe"===e.name&&(null==(a=e.attribs)||null==(t=a.src)?void 0:t.startsWith("https://www.fubo.tv/"))}match(e){return this.isFuboTVEmbed(e)}process(e){var t,a;let s=null==e||null==(t=e.children)?void 0:t.find(e=>this.isIFrameNodeWrapper(e)),n=null==s||null==(a=s.children)?void 0:a.find(e=>this.isIFrameNode(e));return s&&n?(0,i.jsx)(si,{divProps:(0,sm.$5)(e.attribs),iframeWrapperProps:(0,sm.$5)(null==s?void 0:s.attribs),iframeProps:(0,sm.$5)(null==n?void 0:n.attribs)}):(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="fuboTV-processor"}},nM=new class extends sp{match(e){return this.isMatchScheduleScript(e)}isMatchScheduleScript(e){var t,a;return this.isElement(e,"script")&&(null==(t=e.attribs)?void 0:t.type)==="application/json"&&(null==(a=e.attribs)?void 0:a["data-placement"])==="match-schedule"}process(e){let t;if(!(e.firstChild instanceof sm.EY))return(0,i.jsx)(i.Fragment,{});let a=JSON.parse(e.firstChild.data||"");return"object"==typeof(t=a.data)&&t&&("competitionId"in t&&"string"==typeof t.competitionId||"teamId"in t&&"string"==typeof t.teamId||"channelId"in t&&"string"==typeof t.channelId||"matchScheduleId"in t&&"string"==typeof t.matchScheduleId)?(0,i.jsx)(sd,{...a.data}):(0,i.jsx)(i.Fragment,{})}constructor(...e){super(...e),this.name="match-schedule-processor"}}},82034:()=>{},82468:()=>{},82759:()=>{},82978:(e,t,a)=>{"use strict";a.d(t,{t:()=>j});var s=a(60810),n=a(60073),r=a(39520);a(53316);var l=a(96974),i=a(22658),o=a(61953),c=a(63425),d=a(3607),u=a(73702),m=a(21414),h=a(18930
1),p=a(10069),f=a(99816);a(96863);var g=e=>{let{html:t}=e;return t?(0,m.jsx)("div",{className:"fco-affiliate-promo-card__description",children:(0,f.Ay)(t)}):null},v=e=>{let{label:t}=e;return(0,m.jsx)("div",{className:"fco-affiliate-promo-card__label",children:(0,m.jsx)("span",{className:"fco-affiliate-promo-card__label-text",children:t})})},b=e=>{var t,a,s,n;let{promo:{name:o,qualifier:u,info:h,isSponsored:f,highlighted:b,uniqueSellingPoint:x,image:_,cta:j},showDescription:w,onClick:y}=e,{fallbackImagePlaceholder:N}=(0,c.t)(),{price:A,text:S,urlLink:E}=j;return(0,m.jsxs)(E.wrapperProvider?r.t:"a",{href:E.url,target:"_blank",rel:(0,d.a)(E),"data-wrapper-provider":null!=(t=E.wrapperProvider)?t:null,onClick:()=>null==y?void 0:y(o),className:p("fco-affiliate-promo-card",{"fco-affiliate-promo-card--sponsored":f,"fco-affiliate-promo-card--sponsored--neutral":f&&b}),children:[(0,m.jsx)(v,{label:x}),(0,m.jsxs)("div",{className:"fco-affiliate-promo-card__body",children:[(0,m.jsx)(i._V,{className:"fco-affiliate-promo-card__image-wrapper",src:_.url,alt:null!=(a=_.alt)?a:"",width:null!=(s=_.width)?s:null,height:null!=(n=_.height)?n:null,loading:i.uj.LAZY,priority:i.Iu.LOW,onError:e=>{e.currentTarget.onerror=null,e.currentTarget.src=N}}),(0,m.jsx)("h2",{className:"fco-affiliate-promo-card__name",children:o}),w?(0,m.jsx)(g,{html:h}):null,(0,m.jsx)("hr",{className:"fco-affiliate-promo-card__divider"}),(0,m.jsxs)("div",{className:"fco-affiliate-promo-card__price",children:[(0,m.jsx)("span",{className:"fco-affiliate-promo-card__price-qualifier",children:u}),(0,m.jsx)("span",{className:"fco-affiliate-promo-card__price-value",children:A})]}),(0,m.jsx)(l.S,{size:"large",variant:f&&!b?"primary":"inverse",appearance:f?"filled":"outlined",className:"fco-affiliate-promo-card__cta",children:S})]})]})},x="Affiliate Promo Panel",_="Affiliate Promo",j=e=>{var t;let{affiliatePromos:a,showDescription:r=!0,className:l}=e,i=(null!=(t=(0,s.t)())?t:"").toLowerCase(),{ref:c,inView:d}=(0,h.Wx)({threshold:.25,triggerOnce:!0});(0,u.useEffect)(()=>{var e,t;d&&(0,n.t)({platform:i,category:x,action:"".concat(_," Panel Impression"),label:null!=(t=null==a||null==(e=a[0])?void 0:e.title)?t:""})},[d,i,a]);let f=e=>{(0,n.t)({platform:i,category:x,action:"".concat(_," Card Click"),label:null!=e?e:""})};return(null==a?void 0:a.length)?(0,m.jsx)("div",{ref:c,className:p("fco-affiliate-promo-panel",l,{"fco-affiliate-promo-panel__centered":(null==a?void 0:a.length)===1}),children:(0,m.jsx)(o.t,{infiniteLoop:(null==a?void 0:a.length)>2,children:a.map(e=>(0,m.jsx)(b,{promo:e,showDescription:r,onClick:f},e.name))})}):null}},87031:()=>{},89354:()=>{},90115:()=>{},90502:()=>{},91567:()=>{},92304:(e,t,a)=>{"use strict";a.d(t,{t:()=>S});var s=a(98308),n=a(63425),r=a(29144),l=a(15297),i=a(93472),o=a(73702),c=a(21414),d=a(18930),u=a(10069);a(54309);var m=e=>{let{animationLength:t}=e;return(0,c.jsxs)("g",{children:[(0,c.jsx)("circle",{stroke:"white",strokeLinecap:"round",fill:"white",strokeWidth:"0.25",cx:28,cy:50,children:(0,c.jsx)("animate",{attributeName:"r",dur:t,values:"0;0.25",fill:"freeze"})}),(0,c.jsx)("circle",{stroke:"white",strokeLinecap:"round",fill:"white",strokeWidth:"0.25",cx:28,cy:8.4,children:(0,c.jsx)("animate",{attributeName:"r",dur:t,values:"0;0.25",fill:"freeze"})}),(0,c.jsx)("circle",{stroke:"white",strokeLinecap:"round",fill:"white",strokeWidth:"0.25",cx:28,cy:91.6,children:(0,c.jsx)("animate",{attributeName:"r",dur:t,values:"0;0.25",fill:"freeze"})})]})},h=e=>{let{animationLength:t}=e;return(0,c.jsx)("animate",{attributeName:"stroke-dashoffset",dur:t,values:"1;0",fill:"freeze"})},p=e=>{let{animationLength:t}=e;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("path",{stroke:"white",strokeLinecap:"round",fill:"transparent",strokeWidth:"0.25",d:"M28 50 L35 50 A7,7 0 0 0 21,50 H0",pathLength:1,strokeDasharray:1,children:(0,c.jsx)(h,{animationLength:t})}),(0,c.jsx)("path",{stroke:"white",strokeLinecap:"round",fill:"transparent",strokeWidth:"0.25",d:"M28 50 L21 50 A7,7 0 0 0 35,50 H56",pathLength:1,strokeDasharray:1,children:(0,c.jsx)(h,{animationLength:t})})]})},f=e=>{let{animationLength:t}=e;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("path",{stroke:"white",strokeLinecap:"round",fill:"transparent",strokeWidth:"0.25",d:"M0,1 A1,1 0 0 0 1,0",pathLength:1,strokeDasharray:1,children:(0,c.jsx)(h,{animationLength:t})}),(0,c.jsx)("path",{stroke:"white",strokeLinecap:"round",fill:"transparent",strokeWidth:"0.25",d:"M55,0 A1,1 0 0 0 56,1",pathLength:1,strokeDasharray:1,children:(0,c.jsx)(h,{animationLength:t})}),(0,c.jsx)("path",{stroke:"white",strokeLinecap:"round",fill:"transparent",strokeWidth:"0.25",d:"M56,99 A1,1 0 0 0 55,100",pathLength:1,strokeDasharray:1,children:(0,c.jsx)(h,{animationLength:t})}),(0,c.jsx)("path",{stroke:"white",strokeLinecap:"round",fill:"transparent",strokeWidth:"0.25",d:"M1,100 A1,1 0 0 0 0,99",pathLength:1,strokeDasharray:1,children:(0,c.jsx)(h,{animationLength:t})})]})},g=e=>{let{flipped:t,animationLength:a}=e;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("path",{stroke:"white",strokeLinecap:"round",fill:"transparent",strokeWidth:"0.25",d:t?"M 11.8 100 L 11.8 88.8 L 44.2 88.8 L 44.2 100":"M 11.8 0 L 11.8 11.2 L 44.2 11.2 L 44.2 0",pathLength:1,strokeDasharray:1,children:(0,c.jsx)(h,{animationLength:a})}),(0,c.jsx)("path",{stroke:"white",strokeLinecap:"round",fill:"transparent",strokeWidth:"0.25",d:t?"M 36 100 L 36 94.4 L 20 94.4 L 20 100":"M 36 0 L 36 5.6 L 20 5.6 L 20 0",pathLength:1,strokeDasharray:1,children:(0,c.jsx)(h,{animationLength:a})}),(0,c.jsx)("path",{stroke:"white",strokeLinecap:"round",fill:"transparent",strokeWidth:"0.25",d:t?"M22 88.8 A7,7 0 0 1 34,88.8":"M22 11.2 A7,7 0 0 0 34,11.2",pathLength:1,strokeDasharray:1,children:(0,c.jsx)(h,{animationLength:a})})]})},v=e=>{let{animationLength:t}=e;return(0,c.jsx)("rect",{stroke:"white",strokeLinecap:"round",fill:"transparent",strokeWidth:"0.5",x:"0",y:"0",width:"56",height:"100",pathLength:1,strokeDasharray:1,children:(0,c.jsx)(h,{animationLength:t})})},b=e=>{let{animationLength:t}=e;return(0,c.jsxs)("g",{children:[(0,c.jsx)(v,{animationLength:t}),(0,c.jsx)(g,{animationLength:t}),(0,c.jsx)(g,{flipped:!0,animationLength:t}),(0,c.jsx)(p,{animationLength:t}),(0,c.jsx)(f,{animationLength:t})]})},x=()=>(0,c.jsx)("div",{className:"fco-captain-indicator",children:"c"}),_=e=>{let{leftEvents:t,rightEvents:a}=e;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"fco-pitch-player__events fco-pitch-player__events--left",children:t.map((e,t)=>(0,c.jsx)("div",{className:"fco-pitch-player__event",style:{"--random-delay":"".concat(Math.random()/2,"s")},children:e},t))}),(0,c.jsx)("div",{className:"fco-pitch-player__events fco-pitch-player__events--right",children:a.map((e,t)=>(0,c.jsx)("div",{className:"fco-pitch-player__event",style:{"--random-delay":"".concat(Math.random()/2,"s")},children:e},t))})]})},j=e=>{let{team:t,pitchPosition:a,href:s,image:i,name:d,isCaptain:m,leftEvents:h,rightEvents:p,animationLength:f,inView:g,animationDelay:v}=e,[b,j]=(0,o.useState)(!1),{playerPlaceholderImageUrl:w}=(0,n.t)();return(0,o.useEffect)(()=>
1{if(g){let e=setTimeout(()=>j(!0),1e3*v+500*Math.random());return()=>{clearTimeout(e)}}},[g,v]),(0,c.jsxs)(r.BP,{href:s,className:u("fco-pitch-player",{"fco-pitch-player--team-b":"B"==t,"fco-pitch-player--position":b}),style:{"--position-x":"".concat("B"===t?100-a.x:a.x),"--position-y":"".concat("B"===t?100-a.y/2:a.y/2),"--animation-length":"".concat(f,"s"),"--events-animation-delay":"".concat(f,"s")},children:[i.isPlaceholder?(0,c.jsx)("img",{className:"fco-image",src:w,alt:"team-logo"}):(0,c.jsx)(l.t,{src:i.url,alt:i.alt||d,className:"fco-pitch-player__image",onError:e=>{e.currentTarget.onerror=null,e.currentTarget.src=w}}),(0,c.jsx)("span",{className:"fco-pitch-player__name",children:d}),m&&b?(0,c.jsx)(x,{}):null,b?(0,c.jsx)(_,{leftEvents:h,rightEvents:p}):null]})},w=e=>{let{players:t,inView:a,animationDelay:s,animationLength:n}=e;return(0,c.jsx)("div",{className:"fco-pitch-players",children:t.map(e=>(0,c.jsx)(j,{inView:a,...e,animationDelay:s,animationLength:n},e.id))})},y=e=>{let{fieldAnimationLength:t=1.25,playersAnimationLength:a=1,...s}=e,[n,r]=(0,o.useState)(!1);return(0,c.jsxs)(d.pL,{as:"div",className:"fco-field",onChange:e=>r(e),triggerOnce:!0,rootMargin:"256px",initialInView:!1,children:[n?(0,c.jsxs)("svg",{className:"fco-field__svg",viewBox:"0 0 56 100",children:[Array.from({length:16}).map((e,t)=>(0,c.jsx)("circle",{cx:28,cy:50,r:58-3.625*t,className:t%2==0?"fco-field--light-green":"fco-field--dark-green"},"".concat(t,"-field-circle"))),(0,c.jsx)(b,{animationLength:t}),(0,c.jsx)(m,{animationLength:t})]}):null,(0,c.jsx)(w,{players:[...s.teamA.players.map(e=>({...e,team:"A"})),...s.teamB.players.map(e=>({...e,team:"B"}))],inView:n,animationDelay:t,animationLength:a})]})},N=e=>(0,c.jsxs)("div",{className:"fco-pitch-lineup-footer",children:[(0,c.jsx)(i._,{teamName:e.teamB.teamName,teamNameShort:e.teamB.teamNameShort,href:e.teamB.href,crestPath:e.teamB.crestPath,matchTeamCrestImageProps:e.teamB.matchTeamCrestImageProps,reversed:!0}),(0,c.jsx)("span",{children:e.teamA.formation.split("").join("-")})]}),A=e=>{let t=(0,s.o)();return(0,c.jsxs)("div",{className:"fco-pitch-lineup-header",children:[(0,c.jsxs)("div",{className:"fco-pitch-lineup-header__team fco-pitch-lineup-header__team-a",children:[(0,c.jsx)("span",{className:"fco-pitch-lineup-header__formation",children:e.teamA.formation.split("").join("-")}),(0,c.jsx)(i._,{teamName:e.teamA.teamName,teamNameShort:e.teamA.teamNameShort,href:e.teamA.href,crestPath:e.teamA.crestPath,matchTeamCrestImageProps:e.teamA.matchTeamCrestImageProps,reversed:!0})]}),(0,c.jsx)("span",{className:"fco-pitch-lineup-header__title",children:t("page.match.formation.title",void 0,{ns:"matchpage"})}),(0,c.jsxs)("div",{className:"fco-pitch-lineup-header__team fco-pitch-lineup-header__team-b",children:[(0,c.jsx)(i._,{teamName:e.teamB.teamName,teamNameShort:e.teamB.teamNameShort,href:e.teamB.href,crestPath:e.teamB.crestPath,matchTeamCrestImageProps:e.teamB.matchTeamCrestImageProps}),(0,c.jsx)("span",{children:e.teamB.formation.split("").join("-")})]})]})},S=e=>{let{htmlAttributes:t,...a}=e;return 0===a.teamA.players.length&&0===a.teamB.players.length?null:(0,c.jsxs)("div",{...t,className:u("fco-pitch-lineup",null==t?void 0:t.className),children:[(0,c.jsx)(A,{...a}),(0,c.jsx)(y,{...a}),(0,c.jsx)(N,{...a})]})}},93137:()=>{},93559:()=>{},94110:()=>{},95475:()=>{},96034:()=>{},96343:()=>{},96863:()=>{},97078:()=>{},98323:()=>{},99126:()=>{}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.