PageSourceSearch

https://www.pomponik.pl/_static/_next/static/chunks/12759.a55dc9330cc756e0.js

js pomponik.pl collected 2026-10-02 07:51:22 UTC 24,594 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[12759],{7584:function(e,l,t){"use strict";t.d(l,{M:function(){return v}});var s=t(74512),i=t(32735),a=t(18278),n=t(44466),r=t(87915),d=t(10921),o=t(22467);t(49747);var c=t(86952);let u=e=>{let{isHandBall:l,size:t="medium"}=e;return(0,s.jsxs)(a.TableRow,{accented:!0,children:[(0,s.jsx)(a.TableCell,{tag:"th",contentSize:t,height:t,width:"hug",align:"center",border:!0,children:(0,s.jsx)(c.TextCell,{size:t,children:"#"})}),(0,s.jsx)(a.TableCell,{tag:"th",contentSize:t,height:t,width:"fill",align:"left",colSpan:2,border:!0,children:(0,s.jsx)(c.TextCell,{size:t,children:"Zawodnik"})}),(0,s.jsx)(a.TableCell,{tag:"th",contentSize:t,height:t,width:"fill",align:"left",border:!0,children:(0,s.jsx)(c.TextCell,{size:t,children:"Zesp\xf3ł"})}),l?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.TableCell,{tag:"th",contentSize:t,height:t,width:"hug",align:"center",border:!0,children:(0,s.jsx)("div",{className:"ids-cards-table__card ids-cards-table__card--red"})}),(0,s.jsx)(a.TableCell,{tag:"th",contentSize:t,height:t,width:"hug",align:"center",border:!0,children:(0,s.jsx)("div",{className:"ids-cards-table__card ids-cards-table__card--yellow"})}),(0,s.jsx)(a.TableCell,{tag:"th",contentSize:t,height:t,width:"hug",align:"center",border:!0,children:(0,s.jsx)("div",{className:"ids-cards-table__card ids-cards-table__card--blue"})})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(a.TableCell,{tag:"th",contentSize:t,height:t,width:"hug",align:"center",border:!0,children:(0,s.jsx)("div",{className:"ids-cards-table__card ids-cards-table__card--red"})}),(0,s.jsx)(a.TableCell,{tag:"th",contentSize:t,height:t,width:"hug",align:"center",border:!0,children:(0,s.jsx)("div",{className:"ids-cards-table__card ids-cards-table__card--yellow"})})]})]})};var h=t(25820),p=t(72335);let m={medium:{card:{width:128}},small:{card:{width:"auto"}}},g=e=>{var l;let{teamShortName:t,team:i,teamUrl:n,playerShortName:r,name:d,surname:o,gender:u,discipline:g,position:v,playerPhotoId:x,playerUrl:j,cards:b,size:y="medium"}=e,f=t||i,z=r||"".concat(d," ").concat(o);return(0,s.jsxs)(a.TableRow,{hoverable:"accented",children:[(0,s.jsx)(a.TableCell,{contentSize:y,height:"hug",width:"hug",align:"center",border:!0,children:(0,s.jsxs)(c.TextCell,{size:y,children:[v,"."]})}),(0,s.jsx)(a.TableCell,{contentSize:y,height:"hug",width:"hug",align:"center",title:z,border:!0,children:(0,s.jsx)(h.Avatar,{size:"small",avatar:x?{attachmentId:x,alt:z}:{src:"F"===u?"/images/assets/sport/avatarFallbackFemale.svg":"/images/assets/sport/avatarFallbackMale.svg",attachmentId:"",alt:z},withLink:j?{href:j}:void 0})}),(0,s.jsx)(a.TableCell,{contentSize:y,height:"hug",width:"fill",align:"left",title:z,border:!0,children:(0,s.jsx)(c.TextCell,{size:y,children:(0,s.jsx)(p.Link,{href:j||"",plain:!0,children:z})})}),(0,s.jsx)(a.TableCell,{contentSize:y,height:"hug",width:"fill",align:"left",title:f,border:!0,children:(0,s.jsx)(c.TextCell,{size:y,grey:!0,children:(0,s.jsx)(p.Link,{href:n||"",plain:!0,children:f})})}),(0,s.jsx)(a.TableCell,{contentSize:y,height:"hug",width:"hug",align:"center",border:!0,style:m[y].card,children:(0,s.jsx)(c.TextCell,{size:y,children:b.red.value})}),(0,s.jsx)(a.TableCell,{contentSize:y,height:"hug",width:"hug",align:"center",border:!0,style:m[y].card,children:(0,s.jsx)(c.TextCell,{size:y,children:b.yellow.value})}),"handball"===g&&(0,s.jsx)(a.TableCell,{contentSize:y,height:"hug",width:"hug",align:"center",border:!0,style:m[y].card,children:(0,s.jsx)(c.TextCell,{size:y,children:null===(l=b.blue)||void 0===l?void 0:l.value})})]})},v=e=>{let{title:l,data:t,discipline:c,size:h}=e,p=(0,o.DH)("cards-table"),m="small"===h?10:20,v=t.length,[x,j]=(0,i.useState)(t.slice(0,m)),[b,y]=(0,i.useState)(v>m),[f,z]=(0,i.useState)(m);return((0,i.useEffect)(()=>{z(m),j(t.slice(0,m)),y(t.length>m)},[t,m]),t.length)?(0,s.jsxs)("div",{className:"ids-cards-table",...p,children:[(0,s.jsx)("div",{className:"ids-cards-table__scroll",children:(0,s.jsxs)(a.Table,{align:"left",children:[l&&(0,s.jsx)(a.TableHeader,{margin:h,children:(0,s.jsx)(r.BlockSubheader,{size:h,headerLevel:"h3",subHeaderText:l})}),(0,s.jsx)(a.TableHead,{children:(0,s.jsx)(u,{isHandBall:"handball"===c,size:h})}),(0,s.jsx)(a.TableBody,{children:x.map((e,l)=>(0,s.jsx)(g,{...e,discipline:c,position:e.position||l+1,size:h},e.name+e.surname))})]})}),b&&(0,s.jsx)(a.TableFooter,{className:"ids-cards-table__footer",margin:h,children:(0,s.jsx)(n.Button,{variant:"primary",size:h,icon:d.ArrowFacedDownIcon,iconPosition:"trailing",onClick:()=>{let e=f+m,l=e<v-1,s=x.concat(t.slice(f,e));z(e),j(s),y(l)},children:"Pokaż więcej"})})]}):null}},12759:function(e,l,t){"use strict";t.r(l),t.d(l,{CompetitionContainer:function(){return U}});var s,i,a=t(74512),n=t(32735),r=t(56334),d=t(45399),o=t(89377),c=t(26279),u=t(86360),h=t(98192),p=t(67070),m=t(44466),g=t(10921),v=t(86952),x=t(71237),j=t(69781);let b={speedway:4},y=e=>{var l,t;let{size:s,className:i,tabs:r}=e,d=(0,c.sb)(),y=(0,o.Ac)("news"),f=(0,o.Ac)("upcomingMatches"),z=(0,o.Ac)("standings"),k=(0,o.Ac)("lastMatches"),S=(0,o.Ac)("discipline");(0,x.h7)("competition",null==S?void 0:S.name,null==S?void 0:S.spdi);let[w,N]=(0,n.useMemo)(()=>(function(e){let l=null==e?void 0:e.slice(0,5),t=null==e?void 0:e.slice(5);return(null==t?void 0:t.length)>0?[l,t]:[l]}
1)(null==y?void 0:y.mixer),[y.mixer]),T=(r&&(null==r?void 0:r.header)?r.header.url:"")+(null!==(t=null==y?void 0:y.moreUtl)&&void 0!==t?t:",tab,wiadomosci"),C=!(null==r?void 0:null===(l=r.disabledTabs)||void 0===l?void 0:l.includes("wiadomosci")),I=(0,n.useMemo)(()=>({events:(null==f?void 0:f.length)>0?null==f?void 0:f.slice(0,5):void 0,displayedDescriptionName:"WEEK_NUMBER",dontShowScores:!0}),[f]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.VT,{paddingTop:!1,children:(0,a.jsxs)(u.w4,{columns:12,colStart:1,colEnd:13,children:[w&&(0,a.jsx)(u.ZI,{columns:d?2:3,colSpan:d?12:9,wrap:"scattered",children:w.map((e,l)=>(0,a.jsx)(u.mf,{colSpan:0===l?2:1,children:(0,a.jsx)(h.default,{variant:0!==l||d?"vertical":"overlay",size:0===l?d?"medium":"large":"small",preload:0===l,loading:"eager",data:{id:e.id,type:e.type,headline:e.title,url:e.link,slug:e.link,categories:[{id:e.categoryId,name:e.categoryName,url:e.categoryUrl}],cover:{type:"image",src:e.imageSrc,source:e.imageSrc}}})},null==e?void 0:e.id))}),!d&&(0,a.jsx)(u.ZI,{colSpan:3,children:(0,a.jsx)("div",{children:(0,a.jsx)(p.Ad,{size:s,type:"box300x250",divider:"none",floating:52})})})]})}),(0,a.jsx)(u.VT,{marginBottom:!1,paddingTop:!1,paddingBottom:!1,backgroundVariant:"transparent-when-screening",children:(0,a.jsx)(u.R5,{colSpan:12,justify:"center",layout:"flex",children:(0,a.jsx)(p.Ad,{type:"gora_srodek",size:s})})}),(0,a.jsx)(u.VT,{children:(0,a.jsx)(u.R5,{columns:1,colSpan:12,children:(0,a.jsx)(u.w4,{columns:1,children:N&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.ZI,{columns:d?2:4,colSpan:1,wrap:"scattered",children:N.map((e,l)=>(0,a.jsxs)(n.Fragment,{children:[(0,a.jsx)(h.default,{variant:"vertical",size:"small",data:{id:e.id,type:e.type,headline:e.title,url:e.link,slug:e.link,categories:[{id:e.categoryId,name:e.categoryName,url:e.categoryUrl}],cover:{type:"image",src:e.imageSrc,source:e.imageSrc}}}),d&&3===l&&N.length>5&&(0,a.jsx)(u.ZI,{colSpan:2,children:(0,a.jsx)("div",{children:(0,a.jsx)(p.Ad,{size:s,type:"box300x250",divider:"none",floating:52})})})]},"".concat(null==e?void 0:e.id)))}),C&&(0,a.jsx)(u.ZI,{colSpan:1,spanRow:6,children:(0,a.jsx)(u.mf,{colSpan:4,align:"center",justify:"center",children:(0,a.jsx)(m.Button,{size:d?"small":"medium",variant:"primary",icon:g.ArrowFacedRightIcon,iconPosition:"trailing",type:"link",href:T,children:"Więcej wiadomości"})})})]})})})}),(0,a.jsx)(u.VT,{children:(0,a.jsx)(j.default,{disabledTabs:null==r?void 0:r.disabledTabs,lastMatches:k,standings:z,upcomingMatches:I,discipline:null==S?void 0:S.spdi,headerText:r.header.text,matchTabelsSize:b[S.spdi]||5})}),(0,a.jsx)(v.VideoBlock,{}),(0,a.jsx)(u.VT,{marginBottom:!1,paddingTop:!1,paddingBottom:!1,children:(0,a.jsx)(u.R5,{colSpan:12,justify:"center",layout:"flex",children:(0,a.jsx)(p.Ad,{type:"dol_srodek",size:s})})})]})};var f=t(68955),z=t(92842),k=t(22375),S=t(76598),w=t(29200),N=t(22467);t(87363);var T=t(81833),C=t.n(T);let I=e=>{let{size:l,name:t,label:s,feedback:i,feedbackType:r="hint",options:o,placeholder:c,required:u,value:h,...p}=e,m=(0,N.DH)("select",p),v=(0,n.useId)(),x=(0,n.useId)(),j=!!i&&"error"===r,b=(0,n.useMemo)(()=>{if(c)return(0,a.jsx)("option",{value:"",disabled:u,children:c})},[c,u]),y=(0,n.useMemo)(()=>null==o?void 0:o.map(e=>{let{value:l,label:t}=e;return(0,a.jsx)("option",{value:l,children:t},"".concat(l,"-").concat(t))}),[o]);return(0,a.jsxs)("div",{className:(0,d.c)("ids-select","ids-select--".concat(l)),...m,children:[!!s&&(0,a.jsxs)(w.Text,{htmlFor:v,component:"label",preset:C()["font-".concat(l,"-label")],children:[s,u&&(0,a.jsx)("span",{children:"*"})]}),(0,a.jsxs)(w.Text,{component:"div",className:(0,d.c)("ids-select__wrapper","ids-select__wrapper--".concat(l)),preset:C()["font-".concat(l,"-input")],children:[(0,a.jsxs)("select",{id:v,name:t,value:h,placeholder:h?void 0:c,required:u,"aria-label":t,"aria-invalid":j,"aria-errormessage":j?x:void 0,...p,children:[b,y]}),(0,a.jsx)(g.DropdownIcon,{size:"medium"===l?"large":"medium"})]}),!!i&&(0,a.jsx)(w.Text,{component:"div",id:x,className:(0,d.c)("ids-select__feedback","ids-select__feedback--".concat(r)),preset:C()["font-".concat(l,"-feedback")],children:i})]})};var E=t(87915);(s=i||(i={})).ALLROUNDS="Wszystkie rundy",s.ALLGROUPS="Wszystkie grupy",s.ALLTEAMS="Wszystkie drużyny",s.ALLTEAMS_TENNIS="Wszyscy u
1czestnicy";var W=e=>{var l,t,s,i;let{discipline:r,seasonsList:h,size:p,moveBoxAd:g}=e,v=(0,o.et)("schedule"),x=(0,c.sb)(),j=r===k.s.TENNIS?"Wszyscy uczestnicy":"Wszystkie drużyny",[b,y]=(0,n.useState)([]),[f,w]=(0,n.useState)(!1),[N,T]=(0,n.useState)(!1),[C,W]=(0,n.useState)(0),[_,M]=(0,n.useState)([]),[B,A]=(0,n.useState)(null),[Z,F]=(0,n.useState)(null),[L,P]=(0,n.useState)([{label:"Wszystkie rundy",value:"Wszystkie rundy"}]),[H,R]=(0,n.useState)("Wszystkie rundy"),[O,U]=(0,n.useState)([{label:"Wszystkie grupy",value:"Wszystkie grupy"}]),[D,V]=(0,n.useState)("Wszystkie grupy"),[K,J]=(0,n.useState)([{label:j,value:j}]),[G,q]=(0,n.useState)(j),Y=(0,n.useRef)(null),$=(0,n.useRef)(null),Q=(0,n.useRef)(null),X=(0,c.sb)()?"small":"medium",ee=(0,n.useMemo)(()=>{var e,l,t;return B&&(Z?null===(l=B.find)||void 0===l?void 0:null===(e=l.call(B,e=>e.value.toString()===Z.toString()))||void 0===e?void 0:e.label:null===(t=B[0])||void 0===t?void 0:t.label)},[B,Z]);(0,n.useEffect)(()=>{(null==v?void 0:v.rounds.length)>0?(y(v.rounds),w(v.potentiallyHasMore)):y([])},[]),(0,n.useEffect)(()=>{if(M(b),A(h),F(Z),et(b),b&&b.length>0){let e=[{label:"Wszystkie rundy",value:"Wszystkie rundy"}];b.forEach(l=>
1e.push({label:l.roundName,value:l.roundName})),P(e),2===e.length&&el("Wszystkie rundy",b)}},[b]);let el=(e,l)=>{let t=[{label:"Wszystkie grupy",value:"Wszystkie grupy"}];"Wszystkie rundy"===e?1===l.filter(e=>e.roundName).length&&l.forEach(e=>{e.groups.forEach(e=>e.groupName&&t.push({label:e.groupName,value:e.groupName}))}):l.forEach(e=>{e.groups.forEach(e=>e.groupName&&t.push({label:e.groupName,value:e.groupName}))}),U(t),V("Wszystkie grupy"),$.current&&$.current.customSetOption("Wszystkie grupy")},et=e=>{if(r===k.s.SPEEDWAY)return;let l=new Set,t=[];null==e||e.forEach(e=>{e.groups.forEach(e=>{e.weeks.forEach(e=>{e.matches.forEach(e=>{var s;null===(s=e.teams)||void 0===s||s.forEach(e=>{var s;let i=(null==e?void 0:e.shortName)||(null==e?void 0:e.name);i&&!l.has(i)&&(null===(s=e.countryName)||void 0===s?void 0:s.toLowerCase())!=="świat"&&(l.add(i),t.push({label:i,value:i}))})})})})}),t.length&&t.sort((e,l)=>e.label.localeCompare(l.label)),J([{label:j,value:j},...t]),Q.current&&Q.current.customSetOption(j)},es=(e,l)=>"Wszystkie rundy"===e?l:l.filter(l=>l.roundName===e),ei=(e,l)=>{if("Wszystkie grupy"===e)return l;{let t=[];return JSON.parse(JSON.stringify(l)).forEach(l=>{let s=l.groups.filter(l=>l.groupName&&l.groupName===e);s.length&&(l.groups=s,t.push(l))}),t}},ea=(e,l)=>{if(e===j)return l;{let t=[];return JSON.parse(JSON.stringify(l)).forEach(l=>{let s=[];l.groups.forEach(l=>{let t=[];l.weeks.forEach(l=>{let s=[];l.matches.forEach(l=>{l.teams.filter(l=>l.shortName===e||l.name===e).length>0&&s.push(l)}),s.length>
10&&(l.matches=s,t.push(l))}),t.length>0&&(l.weeks=t,s.push(l))}),s.length>0&&(l.groups=s,t.push(l))}),t}},en=()=>{Y.current&&(Y.current.customSetOption("Wszystkie rundy"),P([{label:"Wszystkie rundy",value:"Wszystkie rundy"}]),R("Wszystkie rundy")),$.current&&($.current.customSetOption("Wszystkie grupy"),U([{label:"Wszystkie grupy",value:"Wszystkie grupy"}]),V("Wszystkie grupy")),Q.current&&(Q.current.customSetOption(j),q(j)),W(0)},er=null==v?void 0:null===(i=v.rounds[0])||void 0===i?void 0:null===(s=i.groups[0])||void 0===s?void 0:null===(t=s.weeks[0])||void 0===t?void 0:null===(l=t.matches[0])||void 0===l?void 0:l.competitionId,ed=(0,n.useCallback)(async(e,l)=>{try{let t="".concat("/api/v1/proxy","/api/competition/schedule/spci/").concat(er,"/spsi/").concat(e,"/packSize/500/nPack/").concat(l),s=await S.Z.get(t,{responseType:"json"});if(200===s.status){en();let e=s.data.data.rounds;w(s.data.data.potentiallyHasMore),y(e)}}catch(e){throw console.error(e),e}},[Z]),eo=(0,n.useCallback)(async(e,l,t)=>{try{let s="".concat("/api/v1/proxy","/api/competition/schedule/spci/").concat(er,"/spsi/").concat(e,"/packSize/500/nPack/").concat(l),i=await S.Z.get(s,{responseType:"json"});if(200===i.status){let e=[...t[0].groups[0].weeks[0].matches,...i.data.data.rounds[0].groups[0].weeks[0].matches],l=JSON.parse(JSON.stringify(t));l[0].groups[0].weeks[0].matches=e,w(i.data.data.potentiallyHasMore),T(!1),y(l)}}catch(e){throw console.error(e),e}},[C]);(0,n.useEffect)(()=>{let e=es(H,b),l=ea(G,e);el(H,e),M(l)},[H]),(0,n.useEffect)(()=>{M(ea(G,ei(D,es(H,b))))},[D,G]);let ec=(0,a.jsxs)(u.im,{layout:"flex",gap:!0,direction:x?"column":"row",children:[B&&(0,a.jsx)(I,{size:"small",className:"filterBtn pos-first",value:Z,options:B,onChange:e=>{var l;let t=null==e?void 0:null===(l=e.target)||void 0===l?void 0:l.value;w(!1),W(0),F(t),R("Wszystkie rundy"),V("Wszystkie grupy"),q(j),ed(t,0)}}),L.length>2&&(0,a.jsx)(I,{ref:Y,size:"small",options:L,className:"filterBtn pos-second",value:H,onChange:e=>{var l;R(null==e?void 0:null===(l=e.target)||void 0===l?void 0:l.value)}}),O.length>2&&(0,a.jsx)(I,{ref:$,size:"small",options:O,className:"filterBtn pos-third",value:D,onChange:e=>{var l;V(null==e?void 0:null===(l=e.target)||void 0===l?void 0:l.value)}}),K.length>0&&(0,a.jsx)(I,{ref:Q,size:"small",className:"filterBtn pos-fourth",value:G,options:K,onChange:e=>{var l;q(null==e?void 0:null===(l=e.target)||void 0===l?void 0:l.value)}})]});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.w4,{colSpan:x?null:9,children:(0,a.jsx)(u.ZI,{children:(0,a.jsx)(E.BlockHeader,{size:p,headerTag:"h2",additionalContent:ec,children:"Terminarz"})})}),(0,a.jsxs)(u.w4,{colSpan:x?null:9,children:[_&&_.map(e=>e.groups.map(l=>{let t=!(b&&b.length>1);return(0,a.jsxs)(n.Fragment,{children:[t&&l.groupName?(0,a.jsx)(u.ZI,{children:(0,a.jsx)(E.BlockSubheader,{size:"medium"===p?"large":"small",headerLevel:"h3",dividerVariant:"default",subHeaderText:e.roundName+" - "+l.groupName})}):!t&&(0,a.jsx)(u.ZI,{children:(0,a.jsx)(E.BlockSubheader,{size:p,headerLevel:"h3",dividerVariant:"default",subHeaderText:e.roundName+(0,d.Kk)(" - ")(l.groupName)})}),l.weeks.map((e,l)=>(0,a.jsxs)(n.Fragment,{children:[+e.weekNumber>0&&(0,a.jsx)(u.ZI,{children:(0,a.jsx)(E.BlockSubheader,{size:p,headerLevel:"h4",divi
1derVariant:"default",subHeaderText:"".concat(e.weekNumber,". ").concat(r===k.s.SPEEDWAY?"runda":"kolejka")})}),(0,a.jsx)(u.ZI,{children:(0,a.jsx)(z.q,{size:p,displayedDescriptionName:"NONE",data:{events:e.matches||[],title:"".concat(e.weekNumber,". kolejka")}})})]},e.weekId))]},l.groupName)})),((null==_?void 0:_.length)===0||!_)&&(0,a.jsx)(u.ZI,{children:(0,a.jsxs)("span",{className:"ids-sport-warning",children:["Przepraszamy, aktualnie brak dostępnych ",r===k.s.SKIJUMPING?"konkurs\xf3w":"mecz\xf3w"," w sezonie ",ee]})}),f&&(0,a.jsx)(u.ZI,{children:(0,a.jsx)(m.Button,{size:X,style:{cursor:"pointer"},onClick:()=>{let e=C+1;w(!1),T(!0),W(e),eo(Z.id,e,b)},children:"Pokaż więcej"})}),N&&(0,a.jsx)(u.ZI,{children:(0,a.jsx)(m.Button,{size:X,style:{cursor:"wait"},children:"Ładuję..."})})]})]})},_=t(56601),M=e=>{let{size:l,tabs:t}=e,s=(0,o.et)("seasonsList"),i=(0,o.et)("upcomingMatches"),r=(0,o.et)("lastMatches"),c=(0,o.et)("discipline");(0,x.h7)("competition",null==c?void 0:c.name,null==c?void 0:c.spdi);let h=s.map(e=>({label:e.name,value:e.id})).reverse(),p=(0,n.useMemo)(()=>({events:i,displayedDescriptionName:"WEEK_NUMBER",dontShowScores:!0}),[i]),m=(0,n.useMemo)(()=>({events:r,displayedDescriptionName:"WEEK_NUMBER"}),[r]),g=(null==c?void 0:c.spdi)!==k.s.SKIJUMPING?"Ostatnie mecze":"Ostatnie konkursy",j=(null==c?void 0:c.spdi)!==k.s.SKIJUMPING?"Najbliższe mecze":"Najbliższe konkursy",b=()=>(0,a.jsx)(_.$9,{header:j,children:(0,a.jsx)(z.q,{size:l,data:p,discipline:null==c?void 0:c.spdi})}),y=(0,n.useMemo)(()=>(0,a.jsxs)(u.w4,{alignContent:"start",children:[!(0,d.xb)(null==m?void 0:m.events)&&(0,a.jsx)(_.$9,{header:g,children:(0,a.jsx)(z.q,{size:l,data:m,discipline:null==c?void 0:c.spdi})}),!(0,d.xb)(null==p?void 0:p.events)&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(b,{})})]},"competition-tap-matches-top"),[m,g,l,p,b]),f=(0,n.useMemo)(()=>(0,a.jsxs)(n.Fragment,{children:[(0,a.jsx)(_.bH,{size:l,forceRenderSidebar:!0,alignToTop:!0,children:(0,a.jsx)(W,{discipline:null==c?void 0:c.spdi,seasonsList:h,size:l})}),(0,a.jsx)(v.VideoBlock,{})]},"competition-tap-matches-bottom"),[null==c?void 0:c.spdi,h,l]);return(0,a.jsx)(_.lm,{size:l,topComponent:y,bottomComponent:f})},B=t(25828),A=t(73538),Z=t(17693),F=t(7584),L=t(72335);let P=e=>(0,a.jsxs)(a.Fragment,{children:[e&&(null==e?void 0:e.competitionUrl)?(0,a.jsx)(L.Link,{href:null==e?void 0:e.competitionUrl,title:null==e?void 0:e.title,plain:!0,children:e.title}):null==e?void 0:e.title," ","- Tabela"]});var H=e=>{var l,t,s,i;let{size:h,tabs:p,isRanking:m}=e,{table:g,seasons:j,shooters:b,cards:y,competitionId:f}=(0,o.et)("tabels"),z=(0,o.et)("discipline"),S=(0,c.sb)(),w=(0,r.jD)();(0,x.h7)("competition",null==z?void 0:z.name,null==z?void 0:z.spdi);
1let[N,T]=(0,n.useState)(g),[C,W]=(0,n.useState)(b),[M,L]=(0,n.useState)(y),[H,R]=(0,n.useState)(!1),[O,U]=(0,n.useState)(null),D=null==j?void 0:j.map(e=>({label:"Sezon ".concat(e.name),value:e.id})).reverse(),[V,K]=(0,n.useState)(function(e,l){let t=e.match(/\d+$/);return t?t[0]:(0,d.xb)(l)?null:l[0].value}(w,null==D?void 0:null===(l=D[0])||void 0===l?void 0:l.value)),J=async e=>{R(!0),U(null);try{let l=await fetch(e);if(!l.ok)throw Error("TablesSection::fetch: failed to fetch table data. \n".concat(l.statusText));return await l.json()}catch(e){U(e)}finally{R(!1)}},G=(0,n.useCallback)(async e=>{var l,t,s;let i="/api/v1/proxy/api/competition/tabels/spci/".concat(f,"/spsi/").concat(e).concat((null==z?void 0:z.spdi)?"/spdi/"+z.spdi:""),a=await J(i);T(null==a?void 0:null===(l=a.data)||void 0===l?void 0:l.table),W(null==a?void 0:null===(t=a.data)||void 0===t?void 0:t.shooters),L(null==a?void 0:null===(s=a.data)||void 0===s?void 0:s.cards)},[f,z]),q=(0,n.useCallback)(e=>{let{target:l}=e,t=null==l?void 0:l.value;K(t);let s=w.replace(/,spsi,\d+/,""),i="".concat(s,",spsi,").concat(t);G(t),window.history.pushState(null,"",i)},[w]),Y=async e=>{let l=e.target.value;if(!l)return;let t="/api/v1/proxy/api/competition/tabels/spci/".concat(f,"/spsi/").concat(V,"/spts/").concat(l.toLowerCase()).concat((null==z?void 0:z.spdi)?"/spdi/"+z.spdi:""),s=await J(t);T(null==s?void 0:s.data)},$=(null==g?void 0:g.symbols)&&(null==g?void 0:g.symbols.length)>1&&(null==z?void 0:z.spdi)!==k.s.SKIJUMPING,Q=$&&g.symbols.map(e=>({value:e.symbol,label:e.shortName})).reverse(),X=$?(0,a.jsx)(I,{size:"small",options:Q,disabled:H,onChange:Y}):null,ee=(t=null==N?void 0:N.showAfterPenalty,s=null==z?void 0:z.spdi,(null==N?void 0:null===(i=N.rounds)||void 0===i?void 0:i.map(e=>{let{groups:l,roundName:i}=e;return null==l?void 0:l.map((e,n)=>(0,a.jsx)(u.ZI,{children:(0,a.jsx)(B.vj,{enableLoadmore:s===k.s.SKIJUMPING,showTitle:N.rounds.length>1||l.length>1,discipline:s,size:h,...e,title:i,roundName:m?"Klasyfikacja":e.groupName,rowId:e.groupId||n,group:e,showAfterPenalty:t,minWidth:"tennis"===s?351:null})},"standing-".concat(e.groupId)))}))||[]),el=!(0,d.xb)(C)&&(0,a.jsxs)(u.w4,{colSpan:12,children:[(0,a.jsx)(u.ZI,{children:(0,a.jsx)(E.BlockHeader,{headerTag:"h2",size:h,children:"Strzelcy"})}),(0,a.jsx)(u.ZI,{children:(0,a.jsx)(u.ZI,{children:(0,a.jsx)(Z.Y,{data:C,size:h,limit:20,showMoreButtonTitle:"Pokaź więcej",showTitle:!1})})})]}),et=!(0,d.xb)(M)&&(0,a.jsxs)(u.w4,{colSpan:12,children:[(0,a.jsx)(u.ZI,{children:(0,a.jsx)(E.BlockHeader,{headerTag:"h2",size:h,children:"Kartki"})}),(0,a.jsx)(u.ZI,{children:(0,a.jsx)(u.ZI,{children:(0,a.jsx)(F.M,{data:M,size:h})})})]}),es=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(u.w4,{columns:1,children:[(0,a.jsxs)(u.ZI,{columns:3,style:{alignItems:"center"},children:[(0,a.jsx)(A.Divider,{}),O?(0,a.jsx)("div",{className:"warning",style:{marginTop:10},children:(0,a.jsx)("span",{children:"Napotkano problem podczas doczytywania danych"})}):(0,a.jsx)(I,{size:"small",options:D,value:V,disabled:H,onChange:q,style:{minWidth:"180px"}}),(0,a.jsx)(A.Divider,{})]}),(0,d.xb)(ee)?(0,a.jsx)("div",{className:"ids-sport-warning",style:{marginTop:10},children:(0,a.jsx)("span",{children:"Brak danych dla tych rozgrywek"})}):(0,a.jsxs)(a.Fragment,{children:[(null==z?void 0:z.spdi)!==k.s.SKIJUMPING&&(0,a.jsx)(u.ZI,{children:(0,a.jsx)(E.BlockHeader,{headerTag:"h2",size:h,additionalContent:X,children:N&&P(N)})}),ee.length>0&&(null==ee?void 0:ee.map(e=>e))]})]}),S&&!!el&&(0,a.jsx)(u.VT,{children:el})]}),ei=el||et?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(_.bH,{size:h,childrenWithoutSectionGroup:!0,children:(0,a.jsxs)(u.R5,{layout:"flex",direction:"column",colSpan:S?12:9,children:[!S&&el,et]})}),(0,a.jsx)(v.VideoBlock,{})]}):(0,a.jsx)(v.VideoBlock,{});return(0,a.jsx)(_.lm,{size:h,topComponent:es,bottomComponent:ei})},R=t(93098),O=t(28992);let U=e=>{let{env:l}=e,t=(0,d.Yc)((0,r.hU)()),s=(0,c.sb)();(0,O.v)();let i=(0,o.Ac)("tabs"),u=(0,o.Ac)("banner"),h=(0,n.useCallback)(()=>{switch(i.selected){case"MAIN":default:return(0,a.jsx)(y,{size:t,tabs:i});case"MATCHES":case"CONTESTS":return(0,a.jsx)(M,{size:t,tabs:i});case"TABLES":return(0,a.jsx)(H,{size:t,tabs:i});case"RANKINGS":return(0,a.jsx)(H,{size:t,tabs:i,isRanking:!0});case"NEWS":return(0,a.jsx)(R.y,{size:t,tabs:i})}},[t,i]),p=u?null:(0,a.jsx)(f.EB,{env:l,withTabSeparator:!0,tabs:i,disabledTabs:null==i?void 0:i.disabledTabs,isMobile:s,size:t});return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(_.ZP,{headerComponent:p,children:(0,a.jsx)(h,{})})})}},81833:function(e){e.exports={"small-input-size":"2.5rem","small-input-gap":".5rem","small-input-padding":"0rem .5rem","small-input-border-radious":"0rem","small-composition-gap":".25rem","small-container-gap":".25rem","medium-input-size":"3rem","medium-input-gap":".5rem","medium-input-padding":"0rem .5rem","medium-input-border-radious":"0rem","medium-composition-gap":".25rem","medium-container-gap":".25rem","color-input-background-default":"#fff","color-input-background-hover":"#fcd6ed","color-input-background-active":"#fceff7","color-input-background-error":"#fff","color-input-background-disabled":"#fff","color-input-border-default":".0625rem #999 solid","color-input-border-hover":".0625rem #999 solid","color-input-border-active":".0625rem #999 solid","color-input-border-error":".0625rem #de1c22 solid","color-input-border-disabled":".0625rem #d9d9d9 solid","color-input-color-default":"#1a1a1a","color-input-color-disabled":"#666","color-message-error":"#de1c22","color-message-default":"#4d4d4d","color-message-disabled":"#666","color-label-default":"#1a1a1a","color-label-disabled":"#666","color-placeholder-default":"#4d4d4d","color-placeholder-disabled":"#666","color-asterix-default":"#de1c22","color-asterix-disabled":"#666","color-icon-default":"#1a1a1a","color-icon-disabled":"#666","font-small-input"
1:"ids-typeset-text--preset-medium","font-small-label":"ids-typeset-text--preset-medium","font-small-feedback":"ids-typeset-text--preset-small","font-medium-input":"ids-typeset-text--preset-large","font-medium-label":"ids-typeset-text--preset-large","font-medium-feedback":"ids-typeset-text--preset-medium"}},49747:function(){},87363:function(){}}]);

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.