PageSourceSearch

https://www.mecze24.pl/_next/static/chunks/pages/wyniki-na-zywo/[slug]/zawodnicy-41b5b87f08752699.js

js mecze24.pl collected 2026-10-02 13:35:56 UTC 10,160 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3894],{4204:(e,a,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/wyniki-na-zywo/[slug]/zawodnicy",function(){return s(8956)}])},4354:(e,a,s)=>{"use strict";s.d(a,{A:()=>n});var l=s(7876),i=s(4587),t=s.n(i);let n=()=>(0,l.jsx)("div",{className:"loading-container",children:(0,l.jsx)("div",{className:"loading-logo",children:(0,l.jsx)(t(),{src:"https://api.mecze24.pl/img/logo_mecze24_loading.png",alt:"Loading",width:200,height:93})})})},8336:(e,a,s)=>{"use strict";s.d(a,{A:()=>n});var l=s(7876);s(8963),s(4232);var i=s(8230),t=s.n(i);let n=({data:e})=>(0,l.jsx)("nav",{className:"text-p2-medium",children:(0,l.jsxs)("ul",{className:"breadcrumb mb-0",itemScope:!0,itemType:"https://schema.org/BreadcrumbList",children:[(0,l.jsxs)("li",{className:"breadcrumb-item",itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/ListItem",children:[(0,l.jsxs)(t(),{href:"/",itemProp:"item",children:[(0,l.jsx)("i",{className:"icon-home text-p2-medium"})," ",(0,l.jsx)("span",{itemProp:"name",hidden:!0,children:"Strona gł\xf3wna"})]}),(0,l.jsx)("meta",{itemProp:"position",content:"1"})]}),e.list.map((e,a)=>(0,l.jsxs)("li",{className:"breadcrumb-item",itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/ListItem",children:[(0,l.jsx)(t(),{itemProp:"item",href:e.link,children:(0,l.jsx)("span",{itemProp:"name",dangerouslySetInnerHTML:{__html:e.name}})}),(0,l.jsx)("meta",{itemProp:"position",content:a+2})]},a))]})})},8956:(e,a,s)=>{"use strict";s.r(a),s.d(a,{__N_SSG:()=>g,default:()=>N});var l=s(7876),i=s(9099),t=s(9945),n=s(4354),r=s(4232),c=s(8230),d=s.n(c),o=s(4587),m=s.n(o),h=s(1040),u=s(8336),w=s(3347);let p=e=>null==e?"–":Number(e).toFixed(3).replace(".",","),j=[{key:"average",label:"Średnia",title:"Średnia biegowa (punkty z bonusami / starty)",fmt:p,strong:!0},{key:"matches",label:"M",title:"Mecze"},{key:"starts",label:"Biegi",title:"Starty"},{key:"points",label:"Pkt",title:"Punkty"},{key:"bonuses",label:"Bon.",title:"Bonusy"},{key:"total",label:"Suma",title:"Punkty z bonusami"},{key:"wins",label:"I",title:"Wygrane biegi (1. miejsca)"},{key:"seconds",label:"II",title:"2. miejsca"},{key:"thirds",label:"III",title:"3. miejsca"},{key:"fourths",label:"IV",title:"4. miejsca"},{key:"mvp",label:"MVP",title:"Wyr\xf3żnienia MVP meczu"}],y=[{key:"average",label:"Najwyższa średnia",fmt:p},{key:"total",label:"Najwięcej punkt\xf3w"},{key:"wins",label:"Najwięcej wygranych bieg\xf3w"},{key:"mvp",label:"Najwięcej MVP"}];function k({src:e,name:a}){let[s,i]=(0,r.useState)(!e);return s?(0,l.jsx)("span",{className:"sw-avatar sw-avatar--fallback sw-avatar--xs","aria-hidden":"true",children:(a||"").split(" ").map(e=>e[0]).slice(0,2).join("")}):(0,l.jsx)(m(),{src:e,alt:"",width:32,height:32,className:"sw-avatar sw-avatar--xs",onError:()=>i(!0)})}function x({col:e,sort:a,onSort:s}){let i=a.key===e.key;return(0,l.jsx)("th",{scope:"col","aria-sort":i?"desc"===a.dir?"descending":"ascending":"none",className:e.strong?"sw-table__avg":"",children:(0,l.jsxs)("button",{type:"button",className:`sw-sort${i?" is-active":""}`,onClick:()=>s(e.key),title:e.title,children:[e.label,(0,l.jsx)("span",{className:"sw-sort__icon","aria-hidden":"true",children:i?"desc"===a.dir?"▼":"▲":"↕"})]})})}function b({data:e,plain:a}){let[s,i]=(0,r.useState)(e),[t,n]=(0,r.useState)(!1),[c,o]=(0,r.useState)(!1),[m,g]=(0,r.useState)(""),[N,_]=(0,r.useState)("all"),[v,f]=(0,r.useState)(!1),[z,S]=(0,r.useState)({key:"rank",dir:"asc"}),P=(0,r.useDeferredValue)(m),C=async e=>{if(Number(e)!==s.season){n(!0),o(!1);try{let l=await h.A.get("https://api.mecze24.pl/api/speedway/ranking/"+encodeURIComponent(a),{params:{season:e}});i({...l.data,seo:s.seo}),_("all")}catch(e){o(!0)}finally{n(!1)}}},I=e=>{S(a=>a.key===e?{key:e,dir:"desc"===a.dir?"asc":"desc"}:{key:e,dir:"desc"})},T=(0,r.useMemo)(()=>{let e=P.trim().toLowerCase(),a=s.riders.filter(a=>(!v||!!a.classified)&&("all"===N||String(a.team?.id)===N)&&(!e||!!a.name.toLowerCase().includes(e)));if("rank"!==z.key){let e="desc"===z.dir?-1:1;a=[...a].sort((a,s)=>{let l=a[z.key]??-1,i=s[z.key]??-1;
1return l===i?(s.average??0)-(a.average??0):(l-i)*e})}else"desc"===z.dir&&(a=[...a].reverse());return a},[s.riders,P,N,v,z]),L=Math.max(...s.riders.map(e=>e.average||0),1),M=j.filter(e=>s.riders.some(a=>null!==a[e.key]&&void 0!==a[e.key])),E=s.riders.some(e=>null!==e.average_home||null!==e.average_away),$=s.riders.filter(e=>e.classified).length;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"bg-light",children:(0,l.jsx)("div",{className:"py-4 container-lg grid gaps mb-2",children:(0,l.jsx)("div",{className:"grid",children:(0,l.jsxs)("div",{className:"g-col-12 g-col-lg-10 vstack gap-2",children:[(0,l.jsx)(u.A,{data:s.seo.breadcrumbs}),(0,l.jsxs)("h1",{className:"mb-0",children:["Ranking zawodnik\xf3w – ",s.cat.name," ",s.season]}),(0,l.jsxs)("p",{className:"sw-lead mb-0",children:["Średnie biegowe wszystkich zawodnik\xf3w ligi. Do klasyfikacji wchodzą zawodnicy z wymaganą liczbą start\xf3w (",$," w tym sezonie). Dane aktualizowane po każdym meczu."]})]})})})}),(0,l.jsxs)("div",{className:"py-2 container-lg mb-5 sw-ranking",children:[Object.keys(s.leaders||{}).length>0&&(0,l.jsx)("ul",{className:"sw-leaders","aria-label":"Liderzy sezonu",children:y.filter(e=>s.leaders[e.key]).map(e=>{let a=s.leaders[e.key];return(0,l.jsxs)("li",{className:"sw-leaders__card",children:[(0,l.jsx)(k,{src:a.img,name:a.name}),(0,l.jsxs)("span",{className:"sw-leaders__body",children:[(0,l.jsx)("span",{className:"sw-leaders__label",children:e.label}),(0,l.jsx)(d(),{href:(0,w.VT)(a.plain),className:"sw-leaders__name",children:a.name}),(0,l.jsx)("span",{className:"sw-leaders__team",children:a.team})]}),(0,l.jsx)("span",{className:"sw-leaders__value",children:e.fmt?e.fmt(a.value):a.value})]},e.key)})}),(0,l.jsxs)("div",{className:"sw-filters",role:"search",children:[(0,l.jsxs)("label",{className:"sw-field",children:[(0,l.jsx)("span",{className:"sw-field__label",children:"Sezon"}),(0,l.jsx)("select",{value:s.season,onChange:e=>C(e.target.value),disabled:t,children:s.seasons.map(e=>(0,l.jsx)("option",{value:e,children:e},e))})]}),(0,l.jsxs)("label",{className:"sw-field",children:[(0,l.jsx)("span",{className:"sw-field__label",children:"Klub"}),(0,l.jsxs)("select",{value:N,onChange:e=>_(e.target.value),children:[(0,l.jsx)("option",{value:"all",children:"Wszystkie kluby"}),s.teams.map(e=>(0,l.jsx)("option",{value:String(e.id),children:e.name},e.id))]})]}),(0,l.jsxs)("label",{className:"sw-field sw-field--grow",children:[(0,l.jsx)("span",{className:"sw-field__label",children:"Szukaj zawodnika"}),(0,l.jsx)("input",{type:"search",value:m,onChange:e=>g(e.target.value),placeholder:"np. Zmarzlik",autoComplete:"off"})]}),(0,l.jsxs)("label",{className:"sw-check",children:[(0,l.jsx)("input",{type:"checkbox",checked:v,onChange:e=>f(e.target.checked)}),"Tylko sklasyfikowani"]})]}),(0,l.jsx)("p",{className:"sw-results-count",role:"status","aria-live":"polite",children:t?"Wczytywanie…":c?"Nie udało się wczytać sezonu – spr\xf3buj ponownie.":`${T.length} zawodnik\xf3w`}),(0,l.jsxs)("div",{className:`sw-scroll sw-scroll--sticky${t?" is-loading":""}`,tabIndex:0,role:"region","aria-label":"Tabela rankingu zawodnik\xf3w",children:[(0,l.jsxs)("table",{className:"sw-table sw-table--ranking",children:[(0,l.jsx)("thead",{children:(0,l.jsxs)("tr",{children:[(0,l.jsx)("th",{scope:"col","aria-sort":"rank"===z.key?"asc"===z.dir?"ascending":"descending":"none",children:(0,l.jsxs)("button",{type:"button",className:`sw-sort${"rank"===z.key?" is-active":""}`,onClick:()=>S(e=>({key:"rank",dir:"rank"===e.key&&"asc"===e.dir?"desc":"asc"})),title:"Miejsce w rankingu",children:["#",(0,l.jsx)("span",{className:"sw-sort__icon","aria-hidden":"true",children:"rank"===z.key?"asc"===z.dir?"▲":"▼":"↕"})]})}),(0,l.jsx)("th",{scope:"col",className:"sw-table__name",children:"Zawodnik"}),(0,l.jsx)("th",{scope:"col",className:"sw-table__club",children:"Klub"}),M.map(e=>(0,l.jsx)(x,{col:e,sort:z,onSort:I},e.key)),E&&(0,l.jsx)("th",{scope:"col",title:"Średnia u siebie / na wyjeździe",children:"Dom / wyj."})]})}),(0,l.jsx)("tbody",{children:T.map(e=>(0,l.jsxs)("tr",{className:e.classified?"":"sw-row--muted",children:[(0,l.jsx)("td",{className:"sw-table__rank",children:e.classified&&e.rank?e.rank:"–"}),(0,l.jsx)("th",{scope:"row",className:"sw-table__name",children:(0,l.jsxs)("span",{className:"sw-rider-cell",children:[(0,l.jsx)(k,{src:e.img,name:e.name}),(0,l.jsxs)("span",{children:[(0,l.jsx)(d(),{href:(0,w.VT)(e.plain),className:"sw-link",children:e.name}),(0,l.jsxs)("span",{className:"sw-rider-cell__meta",children:[e.country_code&&(0,l.jsx)("span",{className:"sw-country",children:e.country_code}),e.age?`${e.age} l.`:"",e.guest&&(0,l.jsx)("span",{className:"sw-chip sw-chip--xs",children:"gość"})]})]})]})}),(0,l.jsx)("td",{className:"sw-table__club",children:e.team?.name||e.team_shortcut||"–"}),M.map(a=>{let s;return"average"===a.key?(0,l.jsxs)("td",{className:"sw-table__avg",children:[(0,l.jsx)("span",{className:"sw-inline-bar","aria-hidden":"true",children:(0,l.jsx)("span",{style:{width:`${(e.average||0)/L*100}%`}})}),(0,l.jsx)("b",{children:p(e.average)})]},a.key):(0,l.jsx)("td",{children:a.fmt?a.fmt(e[a.key]):null==(s=e[a.key])?"–":s},a.key)}),E&&(0,l.jsxs)("td",{className:"sw-table__split",children:[p(e.average_home)," / ",p(e.average_away)]})]},`${e.rider_id}-${e.guest?"g":"r"}`))})]}),0===T.length&&!t&&(0,l.jsx)("p",{className:"sw-empty",children:"Brak zawodnik\xf3w spełniających kryteria."})]}),(0,l.jsxs)("p",{className:"sw-note mt-3",children:["Średnia biegowa = (punkty + bonusy) / liczba start\xf3w. Zawodnicy niesklasyfikowani (za mało start\xf3w) są wyszarzeni."," ",(0,l.jsxs)(d(),{href:(0,w.to)(s.cat.plain,s.cat.counter),children:["Terminarz i wyniki: ",s.cat.name]})]})]})]})}var g=!0;function N({data:e,plain:a}){return(0,i.useRouter)().isFallback?(0,l.jsx)(n.A,{}):(0,l.jsx)(t.A,{data:e.layout,type:"cat",seo:e.seo,children:(0,l.jsx)(b,{data:e,plain:a})})}}},e=>{e.O(0,[4587,8230,2745,2326,636,6593,8792],()=>e(e.s=4204)),_N_E=e.O()}]);

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.