!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=(new t.Error).stack;r&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[r]="a1625f45-b8b3-4af5-9c29-32b4c767aa27",t._sentryDebugIdIdentifier="sentry-dbid-a1625f45-b8b3-4af5-9c29-32b4c767aa27")}catch(t){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[20288],{20288:(t,r,e)=>{e.d(r,{C:()=>l.C,w:()=>y});var l=e(25282),a=e(6029),i=e(28349),n=e(76356),s=e(55729),o=e(90248),c=e(14831),h=e(52466),f=e(82536),d=e(21377),u=e(90438),p=e(88715),m=e(79082),x=e(947),g=e(31830);function v(t){let{textId:r}=t;return(0,a.jsxs)(n.so,{align:"center",children:[(0,a.jsx)(h.G_L,{fill:"surface.s1",mr:"lg"}),(0,a.jsx)(i.EY,{color:"surface.s1",textStyle:"display.small",children:(0,a.jsx)(o.A,{id:r})})]})}var w=e(93338);function j(){return(0,a.jsx)(n.az,{px:"sm",textAlign:"center",children:(0,a.jsxs)("svg",{width:"296",height:"136",viewBox:"0 0 296 136",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("g",{"clip-path":"url(#clip0_28680_50575)",children:(0,a.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18 40L11.25 42.0645L12.2365 51.871L12.8077 52.9032L18 56L23.1923 52.9032L23.7687 51.8348L24.75 42.0645L18 40Z",fill:w.S.var("colors.neutral.default")})}),(0,a.jsx)("g",{"clip-path":"url(#clip1_28680_50575)",children:(0,a.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18 80L11.25 82.0645L12.2365 91.871L12.8077 92.9032L18 96L23.1923 92.9032L23.7687 91.8348L24.75 82.0645L18 80Z",fill:w.S.var("colors.neutral.default")})}),(0,a.jsxs)("g",{"clip-path":"url(#clip2_28680_50575)",children:[(0,a.jsx)("path",{d:"M116.5 14.8301L113.74 15.8301V18.8501L115.82 19.6601L117.89 17.3701L116.5 14.8301Z",fill:w.S.var("colors.neutral.default")}),(0,a.jsx)("path",{d:"M114 9C110.14 9 107 12.14 107 16C107 19.86 110.14 23 114 23C117.86 23 121 19.86 121 16C121 12.14 117.86 9 114 9ZM114 21.26C113.03 21.26 112.12 20.99 111.34 20.53L111.59 19.15L110.04 17.42L109.1 17.9C108.87 17.31 108.74 16.67 108.74 16C108.74 15.94 108.74 15.88 108.74 15.83L110.75 15.11L111.41 12.63L110.49 12.08C111.42 11.25 112.64 10.73 113.99 10.73C114.09 10.73 114.18 10.73 114.28 10.74L113.99 11.81L116.71 12.96L117.59 12.15C118.61 13.11 119.26 14.47 119.26 15.98C119.26 18.88 116.9 21.25 114 21.25V21.26Z",fill:w.S.var("colors.neutral.default")})]}),(0,a.jsx)("rect",{x:"142.666",y:"9.33301",width:"9.33333",height:"13.3333",fill:w.S.var("colors.neutral.default")}),(0,a.jsxs)("g",{"clip-path":"url(#clip3_28680_50575)",children:[(0,a.jsx)("path",{d:"M274.5 14.8301L271.74 15.8301V18.8501L273.82 19.6601L275.89 17.3701L274.5 14.8301Z",fill:w.S.var("colors.neutral.default")}),(0,a.jsx)("path",{d:"M272 9C268.14 9 265 12.14 265 16C265 19.86 268.14 23 272 23C275.86 23 279 19.86 279 16C279 12.14 275.86 9 272 9ZM272 21.26C271.03 21.26 270.12 20.99 269.34 20.53L269.59 19.15L268.04 17.42L267.1 17.9C266.87 17.31 266.74 16.67 266.74 16C266.74 15.94 266.74 15.88 266.74 15.83L268.75 15.11L269.41 12.63L268.49 12.08C269.42 11.25 270.64 10.73 271.99 10.73C272.09 10.73 272.18 10.73 272.28 10.74L271.99 11.81L274.71 12.96L275.59 12.15C276.61 13.11 277.26 14.47 277.26 15.98C277.26 18.88 274.9 21.25 272 21.25V21.26Z",fill:w.S.var("colors.neutral.default")})]}),(0,a.jsxs)("g",{"clip-path":"url(#clip4_28680_50575)",children:[(0,a.jsxs)("g",{"clip-path":"url(#clip5_28680_50575)",children:[(0,a.jsx)("rect",{x:"32",y:"68",width:"359",height:"40",fill:w.S.var("colors.neutral.highlight")}),(0,a.jsx)("rect",{x:"32",y:"28",width:"359",height:"40",fill:w.S.var("colors.neutral.highlight")}),(0,a.jsx)("rect",{width:"4",height:"2",transform:"translate(52 68)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"2",transform:"translate(104 68)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"2",transform:"translate(32 66)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"11",transform:"translate(72 57)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"3",transform:"translate(56 68)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"6",transform:"translate(108 68)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"8",transform:"translate(36 60)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"13",transform:"translate(76 55)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"7",transform:"translate(80 61)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"22",transform:"translate(84 46)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"32",transform:"translate(88 36)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"22",transform:"translate(92 46)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"22",transform:"translate(120 46)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"25",transform:"translate(96 43)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"9",transform:"translate(124 59)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"7",transform:"translate(100 61)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"2",transform:"translate(128 66)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"1",transform:"translate(132 67)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"2",transform:"translate(136 66)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"4",transform:"translate(140 64)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"8",transform:"translate(144 60)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"7",transform:"translate(148 61)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"5",transform:"translate(152 63)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"2",transform:"translate(156 66)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"4",transform:"translate(60 68)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"13",transform:"translate(112 68)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"6",transform:"translate(40 62)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"7",transform:"translate(64 68)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"11",transform:"translate(116 68)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"4",transform:"translate(44 64)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"4",transform:"translate(68 68)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"2",transform:"translate(48 66)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"})]}),(0,a.jsx)("mask",{id:"path-10-inside-1_28680_50575",fill:"white",children:(0,a.jsx)("path",{d:"M32 28H159V44H32V28Z"})}),(0,a.jsx)("path",{d:"M32 28V27H31V28H32ZM32 28V29H159V28V27H32V28ZM32 44H33V28H32H31V44H32Z",fill:w.S.var("colors.neutrals.nLv1"),mask:"url(#path-10-inside-1_28680_50575)"})]}),(0,a.jsxs)("g",{"clip-path":"url(#clip6_28680_50575)",children:[(0,a.jsxs)("g",{"clip-path":"url(#clip7_28680_50575)",children:[(0,a.jsx)("rect",{x:"104",y:"68",width:"359",height:"40",fill:w.S.var("colors.neutral.highlight")}),(0,a.jsx)("rect",{x:"104",y:"28",width:"359",height:"40",fill:w.S.var("colors.neutral.highlight")}),(0,a.jsx)("rect",{width:"4",height:"2",transform:"translate(176 68)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"6",transform:"translate(180 68)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"32",transform:"translate(160 36)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"22",transform:"translate(164 46)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"22",transform:"translate(192 46)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"25",transform:"translate(168 43)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"9",transform:"translate(196 59)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"7",transform:"translate(172 61)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"2",transform:"translate(200 66)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"1",transform:"translate(204 67)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"2",transform:"translate(208 66)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"4",transform:"translate(212 64)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"8",transform:"translate(216 60)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"7",transform:"translate(220 61)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"5",transform:"translate(224 63)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"2",transform:"translate(228 66)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"2",transform:"translate(232 66)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"2",transform:"translate(244 66)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"2",transform:"translate(252 66)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"4",transform:"translate(256 64)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"13",transform:"translate(236 55)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"13",transform:"translate(248 55)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"17",transform:"translate(260 51)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"20",transform:"translate(264 48)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"23",transform:"translate(268 45)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"20",transform:"translate(272 48)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"18",transform:"translate(276 50)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"15",transform:"translate(280 53)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"2",transform:"translate(284 66)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"13",transform:"translate(184 68)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"11",transform:"translate(188 68)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"}),(0,a.jsx)("rect",{width:"4",height:"11",transform:"translate(240 68)",fill:w.S.var("colors.neutrals.nLv1"),"fill-opacity":"0.15"})]}),(0,a.jsx)("mask",{id:"path-14-inside-2_28680_50575",fill:"white",children:(0,a.jsx)("path",{d:"M161 28H288V44H161V28Z"})}),(0,a.jsx)("path",{d:"M161 28V27H160V28H161ZM161 28V29H288V28V27H161V28ZM161 44H162V28H161H160V44H161Z",fill:w.S.var("colors.neutrals.nLv1"),mask:"url(#path-14-inside-2_28680_50575)"})]}),(0,a.jsxs)("g",{"clip-path":"url(#clip8_28680_50575)",children:[(0,a.jsx)("path",{d:"M242.5 118.83L239.74 119.83V122.85L241.82 123.66L243.89 121.37L242.5 118.83Z",fill:w.S.var("colors.neutral.default")}),(0,a.jsx)("path",{d:"M240 113C236.14 113 233 116.14 233 120C233 123.86 236.14 127 240 127C243.86 127 247 123.86 247 120C247 116.14 243.86 113 240 113ZM240 125.26C239.03 125.26 238.12 124.99 237.34 124.53L237.59 123.15L236.04 121.42L235.1 121.9C234.87 121.31 234.74 120.67 234.74 120C234.74 119.94 234.74 119.88 234.74 119.83L236.75 119.11L237.41 116.63L236.49 116.08C237.42 115.25 238.64 114.73 239.99 114.73C240.09 114.73 240.18 114.73 240.28 114.74L239.99 115.81L242.71 116.96L243.59 116.15C244.61 117.11 245.26 118.47 245.26 119.98C245.26 122.88 242.9 125.25 240 125.25V125.26Z",fill:w.S.var("colors.neutral.default")})]}),(0,a.jsxs)("defs",{children:[(0,a.jsx)("clipPath",{id:"clip0_28680_50575",children:(0,a.jsx)("rect",{width:"20",height:"20",fill:"white",transform:"translate(8 38)"})}),(0,a.jsx)("clipPath",{id:"clip1_28680_50575",children:(0,a.jsx)("rect",{width:"20",height:"20",fill:"white",transform:"translate(8 78)"})}),(0,a.jsx)("clipPath",{id:"clip2_28680_50575",children:(0,a.jsx)("rect",{width:"14",height:"14",fill:"white",transform:"translate(107 9)"})}),(0,a.jsx)("clipPath",{id:"clip3_28680_50575",children:(0,a.jsx)("rect",{width:"14",height:"14",fill:"white",transform:"translate(265 9)"})}),(0,a.jsx)("clipPath",{id:"clip4_28680_50575",children:(0,a.jsx)("rect",{width:"127",height:"80",fill:"white",transform:"translate(32 28)"})}),(0,a.jsx)("clipPath",{id:"clip5_28680_50575",children:(0,a.jsx)("rect",{width:"288",height:"80",fill:"white",transform:"translate(32 28)"})}),(0,a.jsx)("clipPath",{id:"clip6_28680_50575",children:(0,a.jsx)("rect",{width:"127",height:"80",fill:"white",transform:"translate(161 28)"})}),(0,a.jsx)("clipPath",{id:"clip7_28680_50575",children:(0,a.jsx)("rect",{width:"288",height:"80",fill:"white",transform:"translate(104 28)"})}),(0,a.jsx)("clipPath",{id:"clip8_28680_50575",children:(0,a.jsx)("rect",{width:"14",height:"14",fill:"white",transform:"translate(233 113)"})})]})]})})}function y(t){let{isButton:r,...e}=t,{isDesktop:l}=(0,i.$c)(),w=function(t){let r=(0,x.A)(),e=(0,g.A)();switch(t.type){case"attack_momentum":{let l=function(t){let{event:r,intl:e,locale:l}=t;if(!r)return;let{id:a,customId:i,homeTeam:n,awayTeam:s,slug:o,tournament:c}=r,h=c.category.sport.slug,f=(0,u.vf)(e.locale),x="".concat(d.yuv).concat(f?"/".concat(f):"","/embed/attackMomentum?id=").concat(a,"&widgetTheme=light"),g=(0,d.Lo9)(p.z.getTranslatedRoute(l,"event",{id:i,name:o,sport:h},(0,m.HL)({id:a})).route,{isApiRoute:!1}),v="".concat(n.name," - ").concat(s.name),w=e.formatMessage({id:"event.embed.lineupsBackLink"},{eventName:v,a:t=>'\n ').concat(t,"\n ")});return'\n
').concat(w,"
")}({...t,intl:r,locale:e});if(l)return{embedCode:l,titleId:"attack_momentum",bodyId:"widgets_attack_momentum_body",bodyContent:(0,a.jsx)(j,{})};return}case"cup_tree":{let l=function(t){let{cupTree:r,sport:e,uniqueTournamentId:l,uniqueTournamentSlug:a,categorySlug:i,seasonId:n,intl:s,locale:o}=t;if(!r||!e||!l||!a||!i||!n)return;let c=r.rounds.length,h=(()=>{switch(c){case 1:return 250;case 2:return 278;case 4:return 466;default:return 642}})(),f=r.id,x=r.name,g=(0,u.vf)(s.locale),v="".concat(d.yuv).concat(g?"/".concat(g):"","/embed/unique-tournament/").concat(l,"/season/").concat(n,"/cuptree/").concat(f),w="sofa-cupTree-embed-".concat(l,"-").concat(n,"-").concat(f),j="height:".concat(h+2+16+48+16+148,"px!important;max-width:700px!important;width:100%!important;"),y=(0,d.Lo9)(p.z.getTranslatedRoute(o,"uniqueTournament",{sport:e,category:i,tournament:a,id:l},(0,m.HL)({id:n})).route,{isApiRoute:!1}),L=s.formatMessage({id:"cupTree.embed.backLink"},{linkToSofascore:'Sofascore')});return'\n
\n ').concat(L,"\n
")}({...t,intl:r,locale:e});if(l)return{embedCode:l,titleId:"widgets_tournament_brackets_header",bodyId:"widgets_tournament_brackets_body"};return}case"editor_fixtures":{let r=function(t){let{tournamentId:r,seasonId:e,locale:l}=t;if(!r||!e)return;let a=(0,u.vf)(l),i="".concat(d.yuv).concat(a?"/".concat(a):"","/embed/unique-tournament/").concat(r,"/season/").concat(e,"/editorFixtures"),n="sofa-fixtures-embed-".concat(r,"-").concat(e);return'')}({...t,locale:e});if(r)return{embedCode:r,titleId:"widgets_torneo_fixtures_header",bodyId:"widgets_torneo_fixtures_body"};return}case"lineups":{let l=function(t){let{event:r,intl:e,locale:l}=t;if(!r)return;let{id:a,customId:i,homeTeam:n,awayTeam:s,slug:o,tournament:c}=r,h=c.category.sport.slug,f=(0,u.vf)(e.locale),x="".concat(d.yuv).concat(f?"/".concat(f):"","/embed/lineups?id=").concat(a,"&widgetTheme=light"),g="sofa-lineups-embed-".concat(a),v=(0,d.Lo9)(p.z.getTranslatedRoute(l,"event",{id:i,name:o,sport:h},(0,m.HL)({id:a})).route,{isApiRoute:!1}),w="".concat(n.name," - ").concat(s.name),j=e.formatMessage({id:"event.embed.lineupsBackLink"},{eventName:w,a:t=>'\n ').concat(t,"\n ")});return'\n
').concat(j,"
")}({...t,intl:r,locale:e});if(l)return{embedCode:l,titleId:"lineups",bodyId:"widgets_lineups_body"};return}case"standings":{let l=function(t){let{sport:r,tournamentId:e,tournamentSlug:l,uniqueTournamentId:a,categorySlug:i,seasonId:n,standingsName:s,rowCount:o,hasHomeAwayStandings:c,intl:h,locale:f}=t;if(!e||!l||!i||!r||!n||!s||!o||!c)return;let x=(0,u.vf)(h.locale),g="".concat(d.yuv).concat(x?"/".concat(x):"","/embed/tournament/").concat(e,"/season/").concat(n,"/standings/").concat(encodeURIComponent(s)),v="?widgetTitle=".concat(encodeURIComponent(s),"&showCompetitionLogo=true"),w="sofa-standings-embed-".concat(e,"-").concat(n),j=(0,d.Lo9)(p.z.getTranslatedRoute(f,void 0!==a?"uniqueTournament":"tournament",{sport:r,category:i,tournament:l,id:void 0!==a?a:e},(0,m.HL)({id:n})).route,{isApiRoute:!1}),y=h.formatMessage({id:"standings.embed.backLink"},{linkToSofascore:'Sofascore')});return'\n
\n ').concat(y,"\n
")}({...t,intl:r,locale:e});if(l)return{embedCode:l,titleId:"widgets_league_standings_header",bodyId:"widgets_league_standings_body"};return}case"team_of_the_week":{let l=function(t){let{sport:r,uniqueTournamentId:e,uniqueTournamentName:l,uniqueTournamentSlug:a,categorySlug:i,seasonId:n,roundId:s,intl:o,locale:c}=t;if(!r||!e||!l||!a||!i||!n||!s)return;let h="sofa-totw-embed-".concat(e,"-").concat(n,"-").concat(s),f=(0,u.vf)(o.locale),x="".concat(d.yuv).concat(f?"/".concat(f):"","/embed/unique-tournament/").concat(e,"/season/").concat(n,"/round/").concat(s,"/teamOfTheWeek"),g="?showCompetitionLogo=true&widgetTheme=light&widgetTitle=".concat(encodeURIComponent(l)),v=(0,d.Lo9)(p.z.getTranslatedRoute(c,"uniqueTournament",{sport:r,category:i,tournament:a,id:e},(0,m.HL)({id:n})).route,{isApiRoute:!1}),w='Sofascore'),j=o.formatMessage({id:"tournament.totw.backLink",defaultMessage:"Team of the Week provided by ".concat(w)},{linkToSofascore:w});return'\n
\n ').concat(j,"\n
")}({...t,intl:r,locale:e});if(l)return{embedCode:l,titleId:"team_of_the_week",bodyId:"widgets_team_of_the_week_body"};return}default:return}}(e),[y,L]=(0,s.useState)(!1),S=()=>L(!0),_=async()=>{"writeText"in window.navigator.clipboard?(await window.navigator.clipboard.writeText(b),(0,c.MZ)((0,a.jsx)(v,{textId:"basic.copiedToClipboard"}))):(0,c.MZ)((0,a.jsx)(v,{textId:"error.somethingWentWrong"}))};if(!w)return null;let{embedCode:b,titleId:C,bodyId:k,bodyContent:T}=w;return(0,a.jsxs)(a.Fragment,{children:[r?(0,a.jsx)(i.D7,{hideBelow:"md",onClick:S,children:(0,a.jsx)(h.Jyi,{})}):(0,a.jsx)(n.I4.div,{cursor:"pointer",hideBelow:"md",role:"button",tabIndex:0,onClick:S,onKeyDown:t=>{"Enter"===t.key&&(t.preventDefault(),S())},children:(0,a.jsx)(h.Jyi,{fill:"onSurface.nLv1"})}),(0,a.jsx)(f.A,{isOpen:y,setIsOpen:L,header:(0,a.jsx)(n.az,{pt:"lg",px:"lg",pb:"sm",children:(0,a.jsx)(i.H3,{textStyle:"display.large",children:(0,a.jsx)(o.A,{id:C})})}),footer:(0,a.jsx)(n.so,{p:"lg",justify:"flex-end",children:(0,a.jsxs)(i.$n,{flex:{mdDown:"1"},onClick:()=>{_(),L(!1)},variant:l?"clear":void 0,children:[(0,a.jsx)(o.A,{id:"copy_code"}),(0,a.jsx)(h.i2C,{})]})}),children:(0,a.jsxs)(n.BJ,{py:"lg",gap:"lg",maxW:{md:"[320px]"},children:[(0,a.jsx)(n.az,{px:"lg",children:(0,a.jsx)(i.EY,{children:(0,a.jsx)(o.A,{id:k})})}),T]})})]})}},25282:(t,r,e)=>{e.d(r,{C:()=>u,P:()=>d});var l=e(6029),a=e(28349),i=e(76356),n=e(93338),s=e(55729),o=e(90248),c=e(52466),h=e(14831);let f=(0,i.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 d(t){let{embedString:r,onToggle:e}=t,[d,u]=(0,s.useState)(!1),p=(0,s.useCallback)(async t=>{d||(u(!0),setTimeout(()=>{u(!1)},3e3),"writeText"in window.navigator.clipboard?(await window.navigator.clipboard.writeText(r),(0,h.MZ)((0,l.jsxs)(i.so,{align:"center",children:[(0,l.jsx)(c.G_L,{fill:"surface.s1",mr:"lg"}),(0,l.jsx)(a.EY,{display:"block",color:"surface.s1",textStyle:"display.small",children:(0,l.jsx)(o.A,{id:"basic.copiedToClipboard"})})]}))):(t.currentTarget.focus(),t.currentTarget.select()))},[r,d]);return(0,l.jsxs)(i.az,{position:"relative",mx:{base:"[0px]",md:"xs"},my:"xs",children:[(0,l.jsx)(f,{id:r,type:"text",readOnly:!0,value:r,onClick:p,onBlur:e}),(0,l.jsx)("label",{htmlFor:r,children:(0,l.jsx)(c.i2C,{width:"24",height:"24",fill:n.S.var("colors.action.primary.default"),style:{position:"absolute",top:4,right:8,cursor:"pointer"}})})]})}function u(t){let{id:r,callToAction:e,embedString:o,inverted:h,inHeader:f,onCallToActionClick:u,...p}=t,[m,x]=(0,s.useState)(!1),{isMobile:g}=(0,a.$c)();return(0,s.useEffect)(()=>{x(!1)},[r]),g?null:(0,l.jsx)(i.az,{px:"sm",mt:"sm",...p,children:(0,l.jsxs)(i.az,{cursor:"pointer",bg:{md:h?void 0:"surface.s2"},_hover:{bg:f?"primary.highlight":void 0},br:"sm",p:{md:f?"xs":"sm"},children:[(0,l.jsxs)(i.so,{justify:"flex-end",align:"center",onClick:()=>{x(!m),null==u||u()},children:[(0,l.jsx)(a.EY,{color:h?"onColor.primary":"action.primary.default",pt:"sm",px:"sm",pb:f&&m?"xs":"sm",textStyle:{base:"assistive.default",md:"display.small"},display:"block",children:e}),(0,l.jsx)(i.az,{flexShrink:0,children:(0,l.jsx)(c.zQC,{icon:m?"chevron-up":"chevron-down",width:24,height:24,fill:h?n.S.var("colors.onColor.primary"):n.S.var("colors.action.primary.default"),mx:"xs"})})]}),m&&(0,l.jsx)(d,{embedString:o})]})})}}}]);