PageSourceSearch

https://www.malyfotbalbrno.cz/_next/static/chunks/pages/statistiky-9438c7787d7a251d.js

js malyfotbalbrno.cz collected 2026-10-09 05:14:32 UTC 10,826 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4785],{81248:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/statistiky",function(){return t(82353)}])},82353:function(e,s,t){"use strict";t.r(s),t.d(s,{__N_SSP:function(){return C},default:function(){return F}});var a,n=t(74512),r=t(60946),l=t(85638),i=t(32735),c=t(28165),o=t(89218),d=t.n(o),u=t(66054),h=t(42585),m=t(19593),_=t(97939),f=t(70111),x=t(60282),v=t(65834),j=t(83663),p=t(92831);!function(e){e.assists="assists",e.goals="goals",e.points="points"}(a||(a={}));var N=x.Ry({type:x.Z_()}),b={type:a.points};var g,y=function(e){var s=e.onChange,t=e.disableAssists,l=e.disablePoints,c=(0,r.qM)().t,o=(0,v.cI)({resolver:(0,j.X)(N),defaultValues:b}),d=o.control,u=o.handleSubmit,h=o.watch,m=o.formState.errors,x=(0,i.useCallback)((function(e){s&&s(e.type)}),[s]);return h(x),(0,n.jsx)("div",{className:"Filter",children:(0,n.jsx)("form",{onSubmit:u(x),className:"Filter__form",children:(0,n.jsx)(v.Qr,{name:"type",control:d,render:function(e){var s,r=e.field;return(0,n.jsxs)(p.Z,(0,f.Z)((0,_.Z)({className:"Filter__field",label:c("stats.menu.title"),error:null===(s=m.type)||void 0===s?void 0:s.message},r),{children:[!l&&(0,n.jsx)("option",{value:a.points,children:c("stats.menu.points")}),(0,n.jsx)("option",{value:a.goals,children:c("stats.menu.goals")}),!t&&(0,n.jsx)("option",{value:a.assists,children:c("stats.menu.assists")})]}))}})})})};!function(e){e.assists="assists",e.goals="goals",e.points="points"}(g||(g={}));var S=function(e){var s=e.season,t=e.league,a=e.disableAssists,l=e.disablePoints,o=e.prefixes,_=(0,r.qM)().t,f=(0,m.Z)(s.id,t.id,null),x=f.stats,v=f.loading,j=(0,i.useState)(g.points),p=j[0],N=j[1],b=(0,i.useMemo)((function(){return x?p===g.goals?x.goalPlayers:p===g.points?x.pointPlayers:p===g.assists?x.assistPlayers:[]:[]}),[x,p]);return(0,n.jsxs)(c.Z,{children:[(0,n.jsx)(y,{onChange:N,disableAssists:a,disablePoints:l}),v&&(0,n.jsx)(u.Z,{children:_("loading")}),!v&&0===b.length&&(0,n.jsx)(h.Z,{children:_("stats.empty")}),!v&&b.length>0&&(0,n.jsx)("div",{className:"SeasonPlayerStatsTable",children:(0,n.jsxs)("table",{className:"SeasonPlayerStatsTable__table",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:"\xa0"}),(0,n.jsx)("th",{children:_("stats.grid.player")}),(0,n.jsx)("th",{children:_("stats.grid.team")}),(0,n.jsx)("th",{children:_("stats.grid.".concat(p))})]})}),(0,n.jsx)("tbody",{children:b.map((function(e,s){return(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{width:16,children:(0,n.jsx)("div",{className:"SeasonPlayerStatsTable__order",children:s+1})}),(0,n.jsx)("td",{children:(0,n.jsx)(d(),{href:"".concat(o.player,"/").concat(e.player.id),children:(0,n.jsxs)("a",{className:"SeasonPlayerStatsTable__cell SeasonPlayerStatsTable__cell--horizontal",children:[e.player.photoUrl&&(0,n.jsx)("img",{className:"SeasonPlayerStatsTable__avatar",src:e.player.photoUrl,alt:e.player.fullName}),!e.player.photoUrl&&(0,n.jsx)("div",{className:"SeasonPlayerStatsTable__avatar"}),(0,n.jsx)("strong",{children:e.player.fullName})]})})}),(0,n.jsx)("td",{children:e.player.currentTeam&&(0,n.jsx)(d(),{href:"".concat(o.team,"/").concat(e.player.currentTeam.id),children:(0,n.jsxs)("a",{className:"SeasonPlayerStatsTable__cell",children:[(0,n.jsx)("div",{className:"SeasonPlayerStatsTable__title",children:e.player.currentTeam.name}),(0,n.jsx)("div",{className:"SeasonPlayerStatsTable__subtitle",children:e.player.currentTeam.club.name})]})})}),(0,n.jsx)("td",{children:(0,n.jsx)("div",{className:"SeasonPlayerStatsTable__cell",children:(0,n.jsx)("div",{children:e.count})})})]},e.id)}))})]})})]})},Z=t(83090),w=t(1211),M=t(38501),P=t(25933);var C=!0,F=function(e){var s=e.navigation,t=e.partners,a=e.seasons,c=(0,r.qM)().t,o=(0,i.useState)(a[0]),d=o[0],u=o[1],h=(0,i.useState)(d.leagues[0]),m=h[0],_=h[1];return(0,i.useEffect)((function(){return _(d.leagues[0])}),[d]),(0,n.jsxs)(M.Z,{navigation:s,partners:t,children:[(0,n.jsx)(w.Z,{title:c("stats.title")}),(0,n.jsx)(l.Z,{title:c("stats.title"),seasons:a,selected:d,onSeasonChange:function(e){return u(e)}}),m&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Z.Z,{scrollable:!0,onChange:function(e){var s=e.value;return _(s)},selected:{id:m.id,title:m.name,value:m},items:d.leagues.map((function(e){return{id:e.id,title:e.name,value:e}}))}),(0,n.jsx)(S,{disableAssists:!0,disablePoints:!0,season:d,league:m,prefixes:{player:P.C.player,team:P.C.team}})]})]})}},92831:function(e,s,t){"use strict";t.d(s,{Z:function(){return m}});
1var a=t(97939),n=t(70111),r=t(3541),l=t(74512),i=t(32735),c=t(40841),o=t.n(c),d=t(60946),u=t(16734),h=function(e){return(0,l.jsx)("svg",(0,n.Z)((0,a.Z)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),{children:(0,l.jsx)("path",{fill:"#100D10",fillRule:"evenodd",d:"M7 10l5 5 5-5z"})}))},m=(0,i.forwardRef)((function(e,s){var t=e.label,i=e.error,c=e.dark,m=e.className,_=e.placeholder,f=e.children,x=(0,r.Z)(e,["label","error","dark","className","placeholder","children"]),v=(0,d.qM)().t,j=(0,u.e)();return(0,l.jsxs)("div",{className:o()("FormField",{"FormField--dark":c,"FormField--withError":i},m),children:[(0,l.jsx)("select",(0,n.Z)((0,a.Z)({},x),{id:j,ref:s,className:"FormField__input",placeholder:null!==_&&void 0!==_?_:" ",children:f})),(0,l.jsx)("label",{htmlFor:j,className:"FormField__label",children:t}),(0,l.jsx)("div",{className:"FormField__accessory",children:(0,l.jsx)(h,{className:"FormField__accessoryIcon"})}),i&&(0,l.jsx)("p",{className:"FormField__error",children:v(i)})]})}))},63827:function(e,s,t){"use strict";var a=t(74512),n=(t(32735),t(28165)),r=t(40841),l=t.n(r);s.Z=function(e){var s=e.title,t=e.photoUrl,r=e.children,i=e.titleClassName;return e.className,(0,a.jsxs)("div",{className:"Header",children:[t&&(0,a.jsx)("img",{src:t,alt:s,className:"Header__photo"}),(0,a.jsx)("div",{className:"Header__overlay",children:(0,a.jsx)(n.Z,{className:"Header__container",children:(0,a.jsxs)("div",{className:"Header__content",children:[(0,a.jsxs)("div",{className:"Header__crosses",children:[(0,a.jsx)("div",{className:"Header__cross"}),(0,a.jsx)("div",{className:"Header__cross"}),(0,a.jsx)("div",{className:"Header__cross"}),(0,a.jsx)("div",{className:"Header__cross"}),(0,a.jsx)("div",{className:"Header__cross"})]}),(0,a.jsx)("h1",{className:l()("Header__title",i),children:s}),r&&(0,a.jsx)("div",{className:"Header__children",children:r})]})})})]})}},83090:function(e,s,t){"use strict";var a=t(74512),n=t(32735),r=t(40841),l=t.n(r),i=t(28165),c=t(77352),o=t(119),d=t(92831);s.Z=function(e){var s=e.items,t=e.children,r=e.selected,u=e.onChange,h=e.scrollable,m=e.label,_=(0,n.useRef)(null),f=(0,n.useState)(!1),x=f[0],v=f[1],j=(0,n.useState)(!1),p=j[0],N=j[1],b=(0,o.i)().width>620,g=(0,n.useCallback)((function(e){u&&u(e)}),[u]),y=(0,n.useCallback)((function(){if(_.current){if(_.current.clientWidth===_.current.scrollWidth)return v(!1),void N(!1);v(_.current.scrollLeft>0),N(Math.ceil(_.current.scrollLeft)+_.current.clientWidth<_.current.scrollWidth)}}),[]);(0,n.useEffect)((function(){y(),setTimeout((function(){return y()}),100)}),[y]);var S=(0,n.useCallback)((function(e){if(_.current){var s="left"===e?_.current.scrollLeft-_.current.clientWidth:_.current.scrollLeft+_.current.clientWidth;_.current.scrollTo({left:s,behavior:"smooth"})}}),[]);return!b&&h?(0,a.jsx)("div",{className:"Menu",children:(0,a.jsx)(i.Z,{children:(0,a.jsx)(d.Z,{label:m,onChange:function(e){var t=e.target.value,a=s.find((function(e){return e.id===t}));a&&g(a)},value:r.id,style:{minWidth:140},className:"Filter__field",children:s.map((function(e){return(0,a.jsx)("option",{value:e.id,children:e.title},e.id)}))})})}):(0,a.jsx)("div",{className:l()("Menu",{"Menu--scrollable":h}),children:(0,a.jsxs)(i.Z,{className:l()("Menu__container",{"Menu__container--last":!p}),children:[x&&(0,a.jsx)("button",{type:"button",className:"Menu__button Menu__button--left",onClick:function(){return S("left")},children:(0,a.jsx)(c.Z,{})}),(0,a.jsxs)("div",{ref:_,className:"Menu__wrapper",onScroll:y,children:[(0,a.jsx)("div",{className:"Menu__content",children:s.map((function(e){return(0,a.jsx)("button",{type:"button",onClick:function(){return g(e)},className:l()("Menu__item",{"Menu__item--active":(null===r||void 0===r?void 0:r.id)===e.id}),children:e.title},e.id)}))}),t&&(0,a.jsx)("div",{className:"Menu__children",children:t})]}),p&&(0,a.jsx)("button",{type:"button",className:"Menu__button Menu__button--right",onClick:function(){return S("right")},children:(0,a.jsx)(c.Z,{})})]})})}},85638:function(e,s,t){"use strict";var a=t(74512),n=t(63827),r=t(92831),l=t(32735),i=t(60946);s.Z=function(e){var s=e.title,t=e.seasons,c=e.selected,o=e.onSeasonChange,d=e.className,u=(0,i.qM)().t,h=(0,l.useCallback)((function(e){if(o){var s=t.find((function(s){return s.id===e.target.value}));s&&s.id!==c.id&&o(s)}}),[o,t,c.id]);return(0,a.jsx)(n.Z,{title:s,className:d,children:(0,a.jsx)(r.Z,{label:u("season.label"),onChange:h,value:c.id,style:{minWidth:140},children:t.map((function(e){return(0,a.jsx)("option",{value:e.id,children:e.name},e.id)}))})})}},42585:function(e,s,t){"use strict";t.d(s,{Z:function(){return l}});var a=t(74512),n=t(40841),r=t.n(n);function l(e){var s=e.children,t=e.size;return(0,a.jsxs)("div",{className:r()("Empty",{"Empty--small":"small"===t}),children:[(0,a.jsx)("div",{className:"Empty__icon"}),s&&(0,a.jsx)("p",{className:"Empty__text",children:s})]})}},66054:function(e,s,t){"use strict";t.d(s,{Z:function(){return l}});var a=t(74512),n=t(40841),r=t.n(n);function l(e){var s=e.children,t=e.size;return(0,a.jsxs)("div",{className:r()("Loader__container",{"Loader__container--small":"small"===t}),children:[(0,a.jsx)("div",{className:"Loader"}),s&&(0,a.jsx)("p",{className:"Loader__text",children:s})]})}},19593:function(e,s,t){"use strict";var a=t(15710),n=function(e,s,t){return function(){if(null===s)return null;var a=new URLSearchParams({season:e,league:s});return null!==t&&a.append("limit","".concat(t)),"".concat("/api/league/stats","?").concat(a.toString())}};s.Z=function(e,s){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=(0,a.ZP)(n(e,s,t)),l=r.data,i=r.error;return{error:i,stats:l,loading:!l&&!i}}},77352:function(e,s,t){"use strict";t.d(s,{Z:function(){return n}});var a=t(74512);function n(){return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",className:"bi bi-arrow-left-short",viewBox:"0 0 16 16",children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M12 8a.5.5 0 0 1-.5.5H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708
1L5.707 7.5H11.5a.5.5 0 0 1 .5.5z"})})}}},function(e){e.O(0,[6102,861,7129,8752,9774,2888,179],(function(){return s=81248,e(e.s=s);var s}));var s=e.O();_N_E=s}]);
2//# sourceMappingURL=statistiky-9438c7787d7a251d.js.map

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.