PageSourceSearch

https://www.wyniki.pl/res/_fs/build/sportMenuClient.BWix5kA.js

js wyniki.pl collected 2026-10-09 05:15:54 UTC 4,935 bytes, 1 lines download raw bytes

1import{r as t}from"./rolldown-runtime.NMqb_1L.js";import{t as o}from"./react.DgoLOsk.js";import{t as e}from"./compiler-runtime.BzT4w-4.js";import{n as s}from"./react-dom.KzRdGvM.js";import{y as n}from"./index.esm.CHNuCgj.js";import{t as r}from"./Config.9uxeENr.js";import{n as i,t as a}from"./TransContext.JThLtDy.js";import{t as u}from"./ConfigContext.BQrECty.js";import{t as c}from"./sportIconIdResolver.CBGLmYQ.js";import{t as m}from"./client._Rh6anT.js";import{t as d}from"./Trans.BpOQkU-.js";import{n as l}from"./CustomMatchCountParser.D8t5ETZ.js";import{t as p}from"./useMyFsCount.C1Cksza.js";import{t as f}from"./useBreadcrumbVisibility.efibD3z.js";var C=t(o(),1),b=e(),v=m(),y="custom_link_tournament",I="custom_link_country",j="custom_link_category",S=["custom_link",y,I,j,"custom_link_participant"],h=t=>S.includes(t),_=t=>{const o=(t=>"home"===t.buttonIcon?"notification-result":h(t.type)?t.buttonIcon?t.buttonIcon:void 0:t.id>0?c(t.id):void 0)(t);return{name:t.buttonText,url:t.buttonHref,isActive:t.buttonIsActive,entityId:String(t.id),hasAttentionBadge:t.showAttentionBadge??!1,...o?{itemIconId:o}:{},dataAttributes:{"data-lux-conversion":`navSport:${t.buttonIcon}`}}},g=s(),w=(t,{sportCounts:o,customCounts:e})=>{switch(t.type){case y:return e?.tournaments[t.id]?.events??0;case I:return null===t.sportId?void 0:e?.countries[l(t.sportId,t.id)]?.events??0;case j:return e?.categories[t.id]?.events??0;default:return h(t.type)?void 0:o?.[t.id]?.events}},A=[y,I,j],x=(t,o)=>({count:w(t,o),loaded:A.includes(t.type)?o.isCustomCountLoaded:o.isSportCountLoaded}),M=(t,o)=>`${t} ${o}`,T=(t,o,e)=>{if(void 0!==t&&(0!==t||e))return M(o,t)},L=t=>{const o=(0,b.c)(20),{items:e,forMinority:s,myFs:r,disableUppercase:a,topScoresEnabled:u}=t,c=i(),m=p(),{sportCounts:d,isSportCountLoaded:l}=(()=>{const t=(0,b.c)(6);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={},t[0]=o):o=t[0];const[e,s]=(0,C.useState)(o),[n,r]=(0,C.useState)(!1);let i,a,u;return t[1]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{cjs.Api.loader.get("sportCountResolver").call(async t=>{s(await t.getSportCount()),r(!0)})},a=[],t[1]=i,t[2]=a):(i=t[1],a=t[2]),(0,C.useEffect)(i,a),t[3]!==n||t[4]!==e?(u={sportCounts:e,isSportCountLoaded:n},t[3]=n,t[4]=e,t[5]=u):u=t[5],u})(),{customCounts:v,isCustomCountLoaded:y}=(()=>{const t=(0,b.c)(6);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={tournaments:{},countries:{},categories:{}},t[0]=o):o=t[0];const[e,s]=(0,C.useState)(o),[n,r]=(0,C.useState)(!1);let i,a,u;return t[1]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{cjs.Api.loader.get("customMatchCountResolver").call(async t=>{s(await t.getCustomMatchCount()),r(!0)})},a=[],t[1]=i,t[2]=a):(i=t[1],a=t[2]),(0,C.useEffect)(i,a),t[3]!==e||t[4]!==n?(u={customCounts:e,isCustomCountLoaded:n},t[3]=e,t[4]=n,t[5]=u):u=t[5],u})();let I,j;if(f(),o[0]!==v||o[1]!==s.items||o[2]!==y||o[3]!==l||o[4]!==e||o[5]!==r.buttonHref||o[6]!==r.buttonIsActive||o[7]!==r.buttonText||o[8]!==r.enabled||o[9]!==m||o[10]!==d||o[11]!==u||o[12]!==c){const t=c.translate("TRANS_MENU_TODAYS_MATCHES"),n={sportCounts:d,isSportCountLoaded:l,customCounts:v,isCustomCountLoaded:y},i=s.items.filter(E);I=[...r.enabled?[{name:r.buttonText,url:r.buttonHref,isActive:r.buttonIsActive,itemIconId:"action-state-favorite",itemCount:m??"-",showItemCount:!0,...void 0!==m?{title:M(t,m)}:{}}]:[],...e.map(o=>{const{count:e,loaded:s}=x(o,n),r=s?e??0:"-",i=u;return{..._(o),itemCount:r,showItemCount:i,...i?{title:T(e,t,!0)}:{}}})],j=i.map(o=>{const{count:e,loaded:s}=x(o,n),r=s?e:"-",i=T(e,t,!1);return{..._(o),...void 0!==r?{itemCount:r,showItemCount:!0}:{},...void 0!==i?{title:i}:{}}}),o[0]=v,o[1]=s.items,o[2]=y,o[3]=l,o[4]=e,o[5]=r.buttonHref,o[6]=r.buttonIsActive,o[7]=r.buttonText,o[8]=r.enabled,o[9]=m,o[10]=d,o[11]=u,o[12]=c,o[13]=I,o[14]=j}else I=o[13],j=o[14];const S=j,h=a||s.disableUppercase;let w;return o[15]!==s.title||o[16]!==I||o[17]!==S||o[18]!==h?(w=(0,g.jsx)(n,{type:"sports",majorItems:I,minorItems:S,showMoreLabel:s.title,disableUppercase:h,className:"wclNavigation wclNavigation--scores",isAlphabeticallySorted:!0}
1),o[15]=s.title,o[16]=I,o[17]=S,o[18]=h,o[19]=w):w=o[19],w};function E(t){return!t.shouldBeHidden}var H=t=>{const o=(0,b.c)(16),{trans:e,config:s,items:n,forMinority:i,myFs:c,disableUppercase:m,topScoresEnabled:l}=t;let p,f,C,v,y;return o[0]!==e?(p=new d(e),o[0]=e,o[1]=p):p=o[1],o[2]!==s?(f=(new r).initConfig(s),o[2]=s,o[3]=f):f=o[3],o[4]!==m||o[5]!==i||o[6]!==n||o[7]!==c||o[8]!==l?(C=(0,g.jsx)(L,{items:n,forMinority:i,myFs:c,disableUppercase:m,topScoresEnabled:l}),o[4]=m,o[5]=i,o[6]=n,o[7]=c,o[8]=l,o[9]=C):C=o[9],o[10]!==f||o[11]!==C?(v=(0,g.jsx)(u.Provider,{value:f,children:C}),o[10]=f,o[11]=C,o[12]=v):v=o[12],o[13]!==p||o[14]!==v?(y=(0,g.jsx)(a.Provider,{value:p,children:v}),o[13]=p,o[14]=v,o[15]=y):y=o[15],y};window.sportMenuData&&(0,v.hydrateRoot)(document.getElementById("sportTopMenu"),(0,g.jsx)(H,{...window.sportMenuData}));

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.