!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