!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4915a633-54c3-434f-9555-427c9b343d89",e._sentryDebugIdIdentifier="sentry-dbid-4915a633-54c3-434f-9555-427c9b343d89")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[35729],{17239:(e,t,s)=>{s.d(t,{$:()=>A});var l=s(6029),i=s(4967),n=s(28349),r=s(76356),a=s(93338),o=s(99064),d=s(55729),c=s(90248),u=s(494),h=s(48683),m=s(62859),p=s(54409),x=s(75751),f=s(47146),g=s(61836),b=s(10794);let y=(0,r.I4)("div",{base:{display:"grid",w:"[144px]",h:"8xl",position:"absolute",top:"0",left:"0",bg:"overlay.darken1","& svg":{margin:"auto"}}}),j=(0,r.I4)("div",{base:{"& a:visited":{"& .media-component-seen-notice":{color:"neutral.default !important"}},"& img":{display:"block",br:"2xs"}}});var w=s(21377);let v=/sofascore.com\/news\//g,_=[w.zut.MEDIA_VIDEO,w.zut.MEDIA_NEWS_VIDEO,w.zut.MEDIA_YOUTUBE_VIDEO],I=e=>v.test(e),E=e=>-1!==_.indexOf(e),C=e=>{let t=document.createElement("a");return t.href=e,t.host},k=e=>{if(e){let s=C(e);if("www.youtube.com"===s){let t=new URL(e).searchParams.get("v");return"https://img.youtube.com/vi/".concat(t,"/0.jpg")}if("youtu.be"===s){var t;let s=null==(t=new URL(e).pathname)?void 0:t.slice(1);return"https://img.youtube.com/vi/".concat(s,"/0.jpg")}}},D=e=>{let{highlight:t}=e;return(0,l.jsx)(r.I4.a,{href:t.url,target:"_blank",rel:t.doFollow||I(t.url)?void 0:"nofollow",onClick:()=>(0,g.Xy)(t.title),children:(0,l.jsxs)(r.so,{gap:"lg",children:[(0,l.jsxs)(r.az,{position:"relative",children:[(0,l.jsx)(o._V,{src:t.thumbnailUrl||k(t.url),width:"144",height:"80",fallback:(0,l.jsx)(r.az,{w:"[144px]",h:"8xl",bg:"neutrals.nLv4",display:"grid",br:"2xs",children:(0,l.jsx)(p.dwH,{m:"auto",fill:a.S.var("colors.neutrals.nLv4")})}),alt:"thumbnail"}),E(t.mediaType)&&(0,l.jsx)(y,{children:(0,l.jsx)(p.reY,{fill:"white"})})]}),(0,l.jsxs)(r.so,{direction:"column",justify:"space-between",grow:1,style:{maxWidth:"calc(100% - 144px)"},children:[(0,l.jsxs)(r.so,{direction:"column",align:"start",gap:"xs",children:[(0,l.jsx)(n.Ym,{textStyle:"display.small",display:"block",lineClamp:2,children:t.title}),(0,l.jsx)(n.EY,{textStyle:"assistive.default",color:"neutrals.nLv3",w:"100%",lineClamp:1,children:t.subtitle})]}),(0,l.jsxs)(r.so,{justify:"space-between",pt:"xs",children:[(0,l.jsx)(n.Ym,{textStyle:"body.small",color:"neutrals.nLv3",w:"100%",_firstLetter:{textTransform:"capitalize"},truncate:!0,children:(0,l.jsx)(f.v,{timestamp:(0,i.pp)(t.createdAtTimestamp).getTime()})}),(0,l.jsx)(n.EY,{"aria-hidden":"true",userSelect:"none",textStyle:"body.small",color:"[transparent]",className:"media-component-seen-notice",w:"100%",textAlign:"end",truncate:!0,children:(0,l.jsx)(c.A,{id:"basic.seen"})})]})]})]})})},A=e=>{let{highlights:t,hideTitle:s,eventHighlightId:i}=e,[a,o]=(0,d.useState)(!1),c=(0,u.d4)(b.JV),p=(0,u.d4)(b.LQ),{location:f}=(0,d.useContext)(m.y$),g=f===m.cb.Widget,{isDesktop:y}=(0,n.$c)(),w=!y||g,v=(function(e){let{media:t,selectedLocale:s,geoIPAlpha2:l,n:i=10}=e;return t.sort((e,t)=>t.createdAtTimestamp-e.createdAtTimestamp).filter(e=>!e.forCountries||!e.forCountries.length||-1!==e.forCountries.indexOf(s.toUpperCase())||-1!==e.forCountries.indexOf(l.toUpperCase())).slice(0,i)})({media:[...t],selectedLocale:c,geoIPAlpha2:p||""}).filter(e=>e.id!==i),_=v.length>3,I=a||w?v:v.slice(0,3);return I.length?(0,l.jsx)(x.t,{tag:"Media",children:(0,l.jsxs)(h.Zp,{children:[!s&&(0,l.jsx)(h.Zp.Header,{titleId:"media",as:"h4"}),(0,l.jsx)(r.az,{py:w?"sm":void 0,children:(0,l.jsx)(j,{children:(0,l.jsx)(h.BU,{children:I.map(e=>(0,l.jsx)(D,{highlight:e},e.id))})})}),!w&&(0,l.jsx)(h.Zp.Footer,{ctaParams:_?{messageId:a?"show_less":"show_more",onClick:()=>o(e=>!e),icon:a?h.Xb.Up:h.Xb.Down}:void 0})]})}):null}},35729:(e,t,s)=>{s.r(t),s.d(t,{TeamMedia:()=>o,default:()=>d});var l=s(6029),i=s(21377),n=s(45860),r=s(17239),a=s(11998);function o(e){let{teamId:t,hideTitle:s}=e,{data:o,isLoading:d,error:c}=(0,n.Ay)(i.cWY.media(t));return d?(0,l.jsx)(a.n,{}):!o||c?null:(0,l.jsx)(r.$,{highlights:o.media,hideTitle:s})}let d=o}}]);