1import{r as e}from"./rolldown-runtime.NMqb_1L.js";import{t}from"./react.DgoLOsk.js";import{t as s}from"./compiler-runtime.BzT4w-4.js";import{t as n}from"./classnames.DovWiBN.js";import{n as r}from"./react-dom.KzRdGvM.js";import{t as a}from"./ParticipantGenderList.Blh1_Mr.js";import{n as o}from"./SportNameList.dwsQCqg.js";import{G as l}from"./index.esm.CHNuCgj.js";import{s as i,t as c}from"./EventTracker.FLKxFZs.js";import{t as m}from"./Img.BmPHUrY.js";import{t as d}from"./addTrailingSlash.2wuu4Pw.js";import{t as u}from"./client._Rh6anT.js";import{t as g}from"./Trans.BpOQkU-.js";import{t as p}from"./splitSportsIntoMany.BwWMMi2.js";var f=u(),_=s(),h=e(t(),1),y=r();function j(e){const t=(0,_.c)(41),{participant:s,handler:n,title:r,tooltip:o,symbol:l,config:i}=e;let c,u;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=[a.MEN,a.WOMEN],t[0]=c):c=t[0],t[1]!==s?(u=s.getLogoPath(),t[1]=s,t[2]=u):u=t[2];const g=c.includes(u);let p,f,h,j,x,M,v;t[3]!==s?(p=s.getTitle(),t[3]=s,t[4]=p):p=t[4],t[5]!==s?(f=d(s.getUrl()),t[5]=s,t[6]=f):f=t[6],t[7]!==i||t[8]!==s||t[9]!==g?(h=g?(0,y.jsx)("span",{className:`leftMenu__flag flag fl_${s.getCountryId()}`}):s.getLogoPath()==a.TEAM?(0,y.jsx)("svg",{className:"leftMenu__logo",children:(0,y.jsx)("use",{xlinkHref:"/res/_fs/image/13_symbols/symbols.svg#shield",height:"100%",width:"100%"})}):(0,y.jsx)("div",{className:"leftMenu__logo",children:(0,y.jsx)(m,{src:`/res/image/data/${s.getLogoPath()}`,height:"15",width:"15",loading:"lazy",srcSet:`/res/image/data/${s.getLogoPath()}, /res/image/data/${s.getLargeLogoPath()} 2x, /res/image/data/${s.getLargerLogoPath()} 3x`,staticFsCdn:i.get("app","static_fs_cdn")})}),t[7]=i,t[8]=s,t[9]=g,t[10]=h):h=t[10],t[11]!==s?(j=s.getName(),t[11]=s,t[12]=j):j=t[12],t[13]!==j?(x=(0,y.jsx)("span",{className:"leftMenu__text",children:j}),t[13]=j,t[14]=x):x=t[14],t[15]!==f||t[16]!==h||t[17]!==x?(M=(0,y.jsxs)("a",{className:"leftMenu__href",href:f,children:[h,x]}),t[15]=f,t[16]=h,t[17]=x,t[18]=M):M=t[18],t[19]!==s?(v=s.getKey(),t[19]=s,t[20]=v):v=t[20];const N=`leftMenu__star toggleMyTeam star--interactive active ${v}`,S=`<svg><use xlink:href=${l}></svg>`;let E,T,b,L,w,A;return t[21]!==S?(E={__html:S},t[21]=S,t[22]=E):E=t[22],t[23]!==n||t[24]!==s||t[25]!==o?(T=e=>{n(s.getKey()),e.stopPropagation(),o.hide(e.target)},t[23]=n,t[24]=s,t[25]=o,t[26]=T):T=t[26],t[27]!==o?(b=e=>{o.show(e.target,e)},L=e=>{o.hide(e.target)},t[27]=o,t[28]=b,t[29]=L):(b=t[28],L=t[29]),t[30]!==N||t[31]!==E||t[32]!==T||t[33]!==b||t[34]!==L||t[35]!==r?(w=(0,y.jsx)("span",{className:N,dangerouslySetInnerHTML:E,title:r,onClick:T,onMouseEnter:b,onMouseLeave:L}),t[30]=N,t[31]=E,t[32]=T,t[33]=b,t[34]=L,t[35]=r,t[36]=w):w=t[36],t[37]!==w||t[38]!==p||t[39]!==M?(A=(0,y.jsxs)("div",{className:"leftMenu__item",title:p,children:[M,w]}),t[37]=w,t[38]=p,t[39]=M,t[40]=A):A=t[40],A}function x(e){const t=(0,_.c)(8),{sport:s,emptyListMarkup:n}=e;let r,a,o,m;return t[0]!==s?(r=()=>{c.trackEvent({event:i.SEARCH_MODAL,"event-name":"search_menu","event-sport":s});const e=document.getElementById("search-window")?.children.item(0);e?.setAttribute("data-event-label","search_menu"),e?.click()},t[0]=s,t[1]=r):r=t[1],t[2]!==n?(a=(0,y.jsx)("div",{className:"leftMenu__button leftMenu__button--search",dangerouslySetInnerHTML:n}),t[2]=n,t[3]=a):a=t[3],t[4]===Symbol.for("react.memo_cache_sentinel")?(o=(0,y.jsx)(l,{id:"action-navigation-add",className:"leftMenu__buttonIcon"}),t[4]=o):o=t[4],t[5]!==r||t[6]!==a?(m=(0,y.jsxs)("div",{className:"leftMenu__buttonBlock",onClick:r,children:[a,o]}),t[5]=r,t[6]=a,t[7]=m):m=t[7],m}var M=(0,h.forwardRef)((e,t)=>{const s=(0,_.c)(3),{children:n}=e;let r;return s[0]!==n||s[1]!==t?(r=(0,y.jsx)("div",{ref:t,className:"menu country-list my-teams leftMenu",children:n}),s[0]=n,s[1]=t,s[2]=r):r=s[2],r});function v(e){const t=(0,_.c)(5),{translator:s}=e;let n,r,a;return t[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,y.jsx)("svg",{className:"leftMenu__icon leftMenu__icon--star",children:(0,y.jsx)("use",{xlinkHref:"/res/_fs/image/13_symbols/action.svg#star"})}),t[0]=n):n=t[0],t[1]!==s?(r=s.translate("TRANS_MY_TEAMS_LABEL"),t[1]=s,t[2]=r):r=t[2],t[3]!==r?(a=(0,y.jsxs)("div",{className:"leftMenu__head",children:[n,(0,y.jsx)("span",{className:"leftMenu__title",children:r})]}),t[3]=r,t[4]=a):a=t[4],a}function N(){const e=(0,_.c)(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,y.jsxs)("div",{className:"leftMenu__skelItem",children:[(0,y.jsx)("span",{className:"leftMenu__skelLogo"}),(0,y.jsx)("span",{className:"leftMenu__skelText ska__di"})]}),e[0]=t):t=e[0],t}M.displayName="MyTeamsMenu";var S=e=>{const t=(0,_.c)(2),{children:s}=e;let n;return t[0]!==s?(n=(0,y.jsx)("div",{id:"my-teams-list",className:"leftMenu__teamList",children:s}),t[0]=s,t[1]=n):n=t[1],n},E=(e,t)=>{const[s,n]=(0,h.useState)(!1);return(0,h.useEffect)(()=>(e.refresh=(e=!1)=>{n(e),t()},()=>{e.refresh=()=>{}})),s};function T(e){const t=(0,_.c)(37),{myTeams:s,translator:n,sportId:r,reload:a,tooltip:l,config:i}=e;let c;t[0]!==s||t[1]!==r?(c=s.getParticipants(r),t[0]=s,t[1]=r,t[2]=c):c=t[2];const[m,d]=(0,h.useState)(c);let u;t[3]===Symbol.for("react.memo_cache_sentinel")?(u=getComputedStyle(document.body).getPropertyValue("--p
1ath-symbol-1"),t[3]=u):u=t[3];const[g,p]=(0,h.useState)(u);let f;t[4]!==s||t[5]!==r?(f=()=>d(s.getParticipants(r)),t[4]=s,t[5]=r,t[6]=f):f=t[6];const j=E(a,f);let T,L;window.addEventListener("resize",()=>{p(getComputedStyle(document.body).getPropertyValue("--path-symbol-1"))}),t[7]!==n?(T=n.translate("TRANS_MY_TEAMS_ADD_TEAM"),t[7]=n,t[8]=T):T=t[8],t[9]!==T?(L={__html:T},t[9]=T,t[10]=L):L=t[10];const w=L;let A;t[11]!==s||t[12]!==r?(A=e=>{s.toggle(e),d(s.getParticipants(r))},t[11]=s,t[12]=r,t[13]=A):A=t[13];const P=A;let k,I,C,R,$,B,H;return t[14]!==n?(k=(0,y.jsx)(v,{translator:n}),t[14]=n,t[15]=k):k=t[15],t[16]!==r?(I=o(r),t[16]=r,t[17]=I):I=t[17],t[18]!==w||t[19]!==I?(C=(0,y.jsx)(x,{emptyListMarkup:w,sport:I}),t[18]=w,t[19]=I,t[20]=C):C=t[20],t[21]!==i||t[22]!==P||t[23]!==m||t[24]!==g||t[25]!==l||t[26]!==n?(R=b(m,{translator:n,symbol:g,tooltip:l,handler:P,config:i}),t[21]=i,t[22]=P,t[23]=m,t[24]=g,t[25]=l,t[26]=n,t[27]=R):R=t[27],t[28]!==j?($=j&&(0,y.jsx)(N,{}),t[28]=j,t[29]=$):$=t[29],t[30]!==R||t[31]!==$||t[32]!==C?(B=(0,y.jsxs)(S,{children:[C,R,$]}),t[30]=R,t[31]=$,t[32]=C,t[33]=B):B=t[33],t[34]!==B||t[35]!==k?(H=(0,y.jsxs)(M,{children:[k,B]}),t[34]=B,t[35]=k,t[36]=H):H=t[36],H}function b(e,{translator:t,...s}){return e.map(e=>(0,y.jsx)(j,{participant:e,title:t.translate("TRANS_MY_TEAMS_REMOVE"),...s},e.getKey()))}var L=class{config;tooltip;trans;constructor(e,utilEnvironment,t){this.config=t,this.trans=new g(e),this.tooltip=utilEnvironment.getTooltipObject()}getTrans(){return this.trans}getTooltip(){return this.tooltip}getConfig(){return this.config}},w=e(n(),1);function A(e){const t=(0,_.c)(11),{originName:s,title:n}=e;let r;t[0]!==s?(r=(0,w.default)("mtMenu",s),t[0]=s,t[1]=r):r=t[1];const a=`/res/_fs/image/13_symbols/sport.svg#${s}`;let o,l,i;return t[2]!==a?(o=(0,y.jsx)("svg",{width:"14",height:"14",children:(0,y.jsx)("use",{xlinkHref:a})}),t[2]=a,t[3]=o):o=t[3],t[4]!==n?(l=(0,y.jsx)("span",{className:"mtMenu__text",children:n}),t[4]=n,t[5]=l):l=t[5],t[6]!==s||t[7]!==r||t[8]!==o||t[9]!==l?(i=(0,y.jsxs)("div",{className:r,children:[o,l]},s),t[6]=s,t[7]=r,t[8]=o,t[9]=l,t[10]=i):i=t[10],i}var P=".zone__left_menu_%s";function k({myTeams:e,translator:t,reload:s,tooltip:n,config:r}){const[a,o]=(0,h.useState)(e.getParticipantsBySports()),[l,i]=(0,h.useState)(getComputedStyle(document.body).getPropertyValue("--path-symbol-1")),c=E(s,()=>o(e.getParticipantsBySports())),m=function(){let e=1;for(;document.querySelector(P.replace("%s",`${e}`));)e++;return e}(),d=Object.values(r.get("app","sport_list")||{}),[u,...g]=p(function(e,t){return e.map(e=>[(0,y.jsx)(A,{originName:e.getOriginName(),title:e.getName()},e.getId()),...b(e.getParticipants(),t)])}(a.filter(e=>d.includes(e.getId())),{translator:t,symbol:l,tooltip:n,handler:t=>{e.toggle(t),o(e.getParticipantsBySports())},config:r}),m),f=(0,h.useRef)(Array.from({length:m},()=>(0,h.createRef)()));window.addEventListener("resize",()=>{i(getComputedStyle(document.body).getPropertyValue("--path-symbol-1"))}),(0,h.useLayoutEffect)(()=>{g.forEach((e,t)=>{const s=f.current[t]?.current,n=P.replace("%s",`${t+1}`),r=s?.parentElement?.parentElement?.parentElement?.querySelector(n);r&&!s?.previousElementSibling?.isEqualNode(r)&&s?.before(r)})},[g]);const _={__html:t.translate("TRANS_MY_TEAMS_ADD_TEAM")};return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(M,{children:[(0,y.jsx)(v,{translator:t}),c&&(0,y.jsx)(N,{}),!c&&(0,y.jsxs)(S,{children:[(0,y.jsx)(x,{emptyListMarkup:_}),(0,y.jsx)("div",{className:"leftMenu__itemsBlock",children:u})]})]}),g.map((e,t)=>(0,y.jsx)(M,{ref:f.current[t],children:!c&&(0,y.jsx)(S,{children:e})},t+1))]})}cjs.Api.loader.get("cjs").call(e=>{const t=new L(window.leftMenuEnvironment&&window.leftMenuEnvironment.trans||{},e.dic.get("utilEnviroment"),e.Api.config),s=t.getTrans(),n=t.getTooltip(),r=parseInt(window.sport_id||0),a=document.getElementById("my-teams-left-menu"),o=Boolean(a&&a.dataset.myfs);a&&e.Api.loader.get("xMyTeamsInstance").call(e=>{const l={refresh:()=>{}},i=o?(0,y.jsx)(k,{myTeams:e,translator:s,reload:l,tooltip:n,config:t.getConfig()}):(0,y.jsx)(T,{myTeams:e,translator:s,sportId:r,reload:l,tooltip:n,config:t.getConfig()});window.componentRefresh.myTeamsMenu=i.props.reload,(0,f.createRoot)(a).render(i)})});
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.