!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]="3db82213-dda1-4786-9f37-ad751bb9a222",e._sentryDebugIdIdentifier="sentry-dbid-3db82213-dda1-4786-9f37-ad751bb9a222")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6784],{42525:(e,t,i)=>{i.d(t,{C:()=>u,P:()=>m});var s=i(6029),n=i(37071),a=i(76356),r=i(93338),l=i(55729),o=i(90248),d=i(54409),c=i(62827);let x=(0,a.I4)("input",{base:{width:"100%",height:"2xl",paddingInlineEnd:"3xl",bg:"surface.s2",textStyle:"assistive.default",color:"neutrals.nLv3",border:"1px solid",borderColor:"neutrals.nLv4",borderRadius:"sm",textOverflow:"ellipsis",outline:"none",cursor:"pointer",transitionProperty:"[box-shadow, background-color]",transitionDuration:"[300ms]",_focus:{outline:"none",bg:"neutral.highlight",boxShadow:"[0 0 0 3px]",boxShadowColor:"neutral.highlight"}}});function m(e){let{embedString:t,onToggle:i}=e,[m,u]=(0,l.useState)(!1),p=(0,l.useCallback)(async e=>{m||(u(!0),setTimeout(()=>{u(!1)},3e3),"writeText"in window.navigator.clipboard?(await window.navigator.clipboard.writeText(t),(0,c.MZ)((0,s.jsxs)(a.so,{align:"center",children:[(0,s.jsx)(d.G_L,{fill:"surface.s1",mr:"lg"}),(0,s.jsx)(n.EY,{display:"block",color:"surface.s1",textStyle:"display.small",children:(0,s.jsx)(o.A,{id:"basic.copiedToClipboard"})})]}))):(e.currentTarget.focus(),e.currentTarget.select()))},[t,m]);return(0,s.jsxs)(a.az,{position:"relative",mx:{base:"[0px]",md:"xs"},my:"xs",children:[(0,s.jsx)(x,{id:t,type:"text",readOnly:!0,value:t,onClick:p,onBlur:i}),(0,s.jsx)("label",{htmlFor:t,children:(0,s.jsx)(d.i2C,{width:"24",height:"24",fill:r.S.var("colors.action.primary.default"),style:{position:"absolute",top:4,right:8,cursor:"pointer"}})})]})}function u(e){let{id:t,callToAction:i,embedString:o,inverted:c,inHeader:x,onCallToActionClick:u,...p}=e,[h,f]=(0,l.useState)(!1),{isMobile:g}=(0,n.$c)();return(0,l.useEffect)(()=>{f(!1)},[t]),g?null:(0,s.jsx)(a.az,{px:"sm",mt:"sm",...p,children:(0,s.jsxs)(a.az,{cursor:"pointer",bg:{md:c?void 0:"surface.s2"},_hover:{bg:x?"primary.highlight":void 0},br:"sm",p:{md:x?"xs":"sm"},children:[(0,s.jsxs)(a.so,{justify:"flex-end",align:"center",onClick:()=>{f(!h),null==u||u()},children:[(0,s.jsx)(n.EY,{color:c?"onColor.primary":"action.primary.default",pt:"sm",px:"sm",pb:x&&h?"xs":"sm",textStyle:{base:"assistive.default",md:"display.small"},display:"block",children:i}),(0,s.jsx)(a.az,{flexShrink:0,children:(0,s.jsx)(d.zQC,{icon:h?"chevron-up":"chevron-down",width:24,height:24,fill:c?r.S.var("colors.onColor.primary"):r.S.var("colors.action.primary.default"),mx:"xs"})})]}),h&&(0,s.jsx)(m,{embedString:o})]})})}},79387:(e,t,i)=>{i.d(t,{C:()=>s.C});var s=i(42525)},86784:(e,t,i)=>{i.r(t),i.d(t,{default:()=>L});var s=i(6029),n=i(33852),a=i(21377),r=i(21501),l=i(76356),o=i(55729),d=i(45860),c=i(48683),x=i(62859),m=i(970),u=i(14395),p=i(947),h=i(90248),f=i(79387),g=i(19451),b=i(26331),j=i(73088),y=i(30479);let v=e=>{let{event:t}=e,i=(0,p.A)(),n=(0,b.A)();return(0,s.jsx)(f.C,{callToAction:(0,s.jsx)(h.A,{id:"chart_embed"}),embedString:function(e,t,i){let{id:s,customId:n,homeTeam:r,awayTeam:l,slug:o,tournament:d}=e,c=d.category.sport.slug,x=(0,g.vf)(t.locale),m="".concat(a.yuv).concat(x?"/".concat(x):"","/embed/attackMomentum?id=").concat(s,"&widgetTheme=light"),u=(0,a.Lo9)(j.z.getTranslatedRoute(i,"event",{id:n,name:o,sport:c},(0,y.HL)({id:s})).route,{isApiRoute:!1}),p="".concat(r.name," - ").concat(l.name),h=t.formatMessage({id:"event.embed.lineupsBackLink"},{eventName:p,a:e=>'\n ').concat(e,"\n ")});return'\n
').concat(h,"
")}(t,i,n),px:"0",mt:"0",inHeader:!0})};var w=i(89587),k=i(91603),_=i(33144),C=i(37071),S=i(54053);function z(e){let{isOpen:t,setIsOpen:i,leftTeamId:n,leftTeamName:a,rightTeamId:r,rightTeamName:o}=e;return(0,s.jsxs)(S.A,{isOpen:t,setIsOpen:i,header:"attack_momentum",children:[(0,s.jsx)(l.az,{px:"lg",maxW:{md:"[320px]"},children:(0,s.jsx)(C.EY,{textAlign:"start",textStyle:"body.mediumParagraph",mb:"sm",display:"block",children:(0,s.jsx)(h.A,{id:"attack_momentum_description"})})}),(0,s.jsxs)(l.az,{px:"lg",maxW:{md:"[320px]"},children:[(0,s.jsx)(C.EY,{color:"secondary.default",display:"block",textStyle:"assistive.default",py:"xs",children:(0,s.jsx)(h.A,{id:"attack_momentum_first",values:{teamName:a}})}),(0,s.jsxs)(l.so,{align:"center",children:[(0,s.jsxs)(l.so,{pr:"md",direction:"column",gap:"lg",children:[(0,s.jsx)(_.p,{size:24,id:n}),(0,s.jsx)(_.p,{size:24,id:r})]}),(0,s.jsx)(C._V,{width:"[127px]",height:"[140px]",srcSet:"/static/images/exportable-bitmap-info@2x.png 2x, /static/images/exportable-bitmap-info@3x.png 3x",src:"/static/images/exportable-bitmap-info.png",alt:"Attack Momentum Legend"})]}),(0,s.jsx)(C.EY,{color:"primary.default",display:"block",textStyle:"assistive.default",py:"xs",children:(0,s.jsx)(h.A,{id:"attack_momentum_away",values:{teamName:o}})})]})]})}let T=e=>{let{liveForm:t,isLive:i,leftTeamId:n,leftTeamName:a,rightTeamId:r,rightTeamName:d,incidents:c,status:x}=e,[m,u]=(0,o.useState)(!1);return(0,s.jsxs)(l.az,{position:"relative",px:"sm",children:[(0,s.jsxs)(l.so,{direction:"row",align:"flex-end",overflow:"hidden",children:[(0,s.jsxs)(l.so,{direction:"column",justify:"space-around",h:"[108px]",pb:"[28px]",me:"2xs",children:[(0,s.jsx)(k.p,{id:n,size:20,name:a}),(0,s.jsx)(k.p,{id:r,size:20,name:d})]}),(0,s.jsx)(l.so,{direction:"column",grow:1,children:(0,s.jsx)(l.az,{py:"[28px]",children:(0,s.jsx)(w.A,{isLive:i,liveForm:t,incidents:c,status:x,cursor:"pointer",onClick:()=>{u(!0)}})})})]}),(0,s.jsx)(z,{isOpen:m,setIsOpen:u,leftTeamId:n,leftTeamName:a,rightTeamId:r,rightTeamName:d})]})};var A=i(83736),I=i(71046),E=i(73324);let L=()=>{let{event:e,leftTeam:t,rightTeam:i,location:p}=(0,o.useContext)(x.y$),{status:h,detailId:f}=e,g=(0,r.hX)(),b=h.type===a.XUj.NotStarted,j=h.type===a.XUj.Finished||e.isAwarded,y=h.type===a.XUj.InProgress,w=([a.XUj.Postponed,a.XUj.Canceled].includes(h.type),p===x.cb.Widget),{graphPoints:k,error:_}=(0,E._)(e),{data:C}=(0,d.Ay)(a.bnp.incidents(e.id),(0,I.rf)(e)),S=(0,o.useMemo)(()=>(null==C?void 0:C.incidents)?(0,n.X)(C.incidents):void 0,[null==C?void 0:C.incidents]),z=(0,s.jsx)(v,{event:e});return g?(0,s.jsx)(A.u,{}):_?y?(0,s.jsx)(m.z,{event:e}):j?(0,s.jsx)(u.n,{event:e}):null:k?b?null:(0,s.jsxs)(c.Zp,{children:[(0,s.jsx)(T,{leftTeamId:t.id,leftTeamName:t.name,rightTeamId:i.id,rightTeamName:i.name,isLive:y,liveForm:k||[],incidents:S,status:e.status}),!w&&(0,s.jsx)(l.az,{px:"sm",pb:"sm",pt:"2xs",children:1===f&&z})]}):(0,s.jsx)(A.u,{})}}}]);