PageSourceSearch

https://ok4u.club/_next/static/chunks/pages/[city]/tournament/[id]-556e6f6c47bb90ae.js

js ok4u.club collected 2026-10-07 18:07:57 UTC 15,318 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3658],{72059:function(e,a,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[city]/tournament/[id]",function(){return n(66242)}])},39533:function(e,a,n){"use strict";n.d(a,{Z:function(){return l}});var s=n(85893),r=n(67294);function t(e,a){window.horizontalStates=window.horizontalStates||{},window.horizontalStates[e]=a}function l(e){let{scrollDelta:a,stateKey:n,children:l}=e,[i,c]=(0,r.useState)(!1),[d,o]=(0,r.useState)(window.horizontalStates&&window.horizontalStates[n]||0),h=(0,r.useRef)(null),m=(0,r.useRef)(null);(0,r.useEffect)(()=>{c(!0)},[]),(0,r.useEffect)(()=>{m.current.style.left=d+"px"},[d]);let u=d<0,x=h.current&&m.current&&h.current.offsetWidth<m.current.scrollWidth+d;return(0,s.jsxs)("div",{className:"horizontal-scroller",children:[(0,s.jsx)("button",{className:"horizontal-scroller__arrow horizontal-scroller__arrow--left"+(u?" visible":""),onClick:()=>{let e=d+a;o(e),t(n,e)},children:(0,s.jsx)("img",{src:"/img/icons/icon-chevron-left.svg",alt:""})}),(0,s.jsx)("div",{className:"horizontal-scroller__body",ref:h,children:(0,s.jsx)("div",{className:"horizontal-scroller__wrapper",ref:m,children:l})}),(0,s.jsx)("button",{className:"horizontal-scroller__arrow horizontal-scroller__arrow--right"+(x?" visible":""),onClick:()=>{let e=d-a;o(e),t(n,e)},children:(0,s.jsx)("img",{src:"/img/icons/icon-chevron-right.svg",alt:""})})]})}},74238:function(e,a,n){"use strict";n.d(a,{Z:function(){return r}});var s=n(85893);function r(e){let{change:a,className:n}=e;return a?(0,s.jsxs)("span",{className:n+" "+n+(a>0?"--up":"--down"),children:[a>0&&"+",a]}):null}},86435:function(e,a,n){"use strict";n.d(a,{Z:function(){return t}});var s=n(85893),r=n(50613);function t(e){let{player:a,className:n}=e,{city:t}=(0,r.h)();return(null==a?void 0:a.clan)?(0,s.jsx)("a",{href:"/".concat(t.slug,"/clans/").concat(a.clan.id,"/"),className:n,children:a.clan.name}):null}},1203:function(e,a,n){"use strict";n.d(a,{Z:function(){return m}});var s=n(85893),r=n(41664),t=n.n(r),l=n(18810),i=n(65264),c=n(74238),d=n(43657),o=n(6916),h=n(86435);function m(e){let{rating:a,place:n,showPeerRating:r,showPlaceChange:m,showLevel:u,showEloRating:x,showWinsPercentage:p,showExperiencePerGame:_,sortedColumnsMap:j}=e,N=j||{};return(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"players-table__body-index",children:n||a.place}),(0,s.jsx)("td",{children:(0,s.jsxs)("div",{className:"players-table__participant",children:[(0,s.jsx)(l.Z,{player:a.player,size:56,className:"players-table__participant__avatar"}),(0,s.jsxs)("div",{children:[(0,s.jsx)(t(),{href:a.player.url,className:"players-table__participant__name",children:a.player.name}),u&&(0,s.jsx)(d.Z,{rating:a}),m&&(0,s.jsxs)(s.Fragment,{children:[" ",(0,s.jsx)(c.Z,{change:a.place_change,className:"place-change"})]}),(0,s.jsx)(h.Z,{player:a.player,className:"d-block small"}),(0,s.jsx)("div",{className:"players-table__participant__description",children:a.player.description})]})]})}),x&&(0,s.jsx)("td",{className:N.elo_rating?"sorted":null,children:a.elo_rating}),r&&(0,s.jsx)("td",{className:N.peer_rating?"sorted":null,children:(0,s.jsx)(o.Z,{player:a.player})}),(0,s.jsx)("td",{className:N.num_games?"sorted":null,children:(0,s.jsx)("span",{children:a.num_games})}),(0,s.jsx)("td",{className:N.num_wins?"sorted":null,children:(0,s.jsx)("span",{children:a.num_wins})}),p&&(0,s.jsx)("td",{className:N.wins_percentage?"sorted":null,children:(0,s.jsxs)("span",{children:[parseInt(a.wins_percentage),"%"]})}),(0,s.jsx)("td",{className:"active"+(N.experience_gained?" sorted":"")+(N.rating3?" sorted":""),children:(0,s.jsx)("span",{children:parseInt(a.points||0)||a.experience_gained||a.rating3})}),_&&(0,s.jsx)("td",{className:N.experience_per_game?"sorted":null,children:(0,s.jsx)("span",{children:a.experience_per_game})}),a.participations&&(0,s.jsx)("td",{children:(0,s.jsx)("div",{className:"tournament-stats tournament-stats--desktop",children:a.participations.map((e,a)=>(0,s.jsx)(i.Z,{stats:e},"".concat(a,"-").concat(e.url)))})})]})}},95946:function(e,a,n){"use strict";n.d(a,{Z:function(){return m}});var s=n(85893),r=n(67294),t=n(41664),l=n.n(t),i=n(18810),c=n(65264),d=n(74238),o=n(43657),h=n(86435);function m(e){let{rating:a,place:n,showLevel:t,showPlaceChange:m,showWinsPercentage:u,hideDescription:x}=e,[p,_]=(0,r.useState)(!1);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"row",children:[(0,s.jsx)("div",{className:"col-2",children:(0,s.jsx)(i.Z,{player:
1a.player,size:36,className:"tournament__participants__avatar"})}),(0,s.jsxs)("div",{className:"col-10",children:[(0,s.jsxs)("div",{className:"tournament__participants__title",children:[(0,s.jsxs)("p",{children:[(0,s.jsxs)("span",{children:[n||a.place,"."]}),(0,s.jsx)(l(),{href:a.player.url,className:"tournament__participants__name",children:a.player.name}),t&&(0,s.jsx)(o.Z,{rating:a}),m&&(0,s.jsxs)(s.Fragment,{children:[" ",(0,s.jsx)(d.Z,{change:a.place_change,className:"place-change"})]})]}),(0,s.jsx)("div",{children:parseInt(a.points||0)||a.experience_per_game||a.experience_gained})]}),!x&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h.Z,{player:a.player,className:"d-block mt-n1 mb-1"}),(0,s.jsx)("div",{className:"tournament__participants__info",children:a.player.description})]}),(0,s.jsxs)("a",{href:a.player.url,onClick:e=>{e.preventDefault(),_(e=>!e)},className:"tournament__participants__stats-link"+(p?" active":""),children:[a.num_wins," побед из ",a.num_games," игр",u&&(0,s.jsxs)(s.Fragment,{children:[" (",parseInt(a.wins_percentage),"%)"]})]})]})]}),(0,s.jsx)("div",{className:"tournament__participants__stats"+(p?" showed":""),children:(0,s.jsx)("div",{className:"col-12 tournament-stats tournament-stats--mobile",children:a.participations.map((e,a)=>(0,s.jsx)(c.Z,{stats:e},"".concat(a,"-").concat(e.url)))})})]})}},65264:function(e,a,n){"use strict";n.d(a,{Z:function(){return l}});var s=n(85893),r=n(41664),t=n.n(r);function l(e){let{stats:a}=e;return(0,s.jsxs)("div",{className:"tournament-stats__cell"+(a.is_best?" tournament-stats__cell--active":"")+(a.is_rated?" tournament-stats__cell--highlighted":""),children:[(0,s.jsx)("div",{children:parseInt(a.points||0)||a.experience_gained}),(0,s.jsxs)(t(),{href:a.url,children:[a.date,a.place?" (#".concat(a.place,")"):""]})]})}},6916:function(e,a,n){"use strict";n.d(a,{Z:function(){return r}});var s=n(85893);function r(e){let{player:a,ratingsUrl:n,noDecoration:r,className:t,asBlock:l}=e;return a&&a.peer_rating_avg?(0,s.jsx)(s.Fragment,{children:a.peer_rating_num?(0,s.jsxs)("span",{className:"player-rating"+(l?" player-rating--block":"")+(r?" player-rating--no-decoration":"")+(t?" "+t:""),children:[a.peer_rating_avg,(0,s.jsxs)("span",{className:"player-rating__num-rates",children:["(",(0,s.jsx)("span",{className:"player-rating__num-rates--num",children:n?(0,s.jsx)("a",{href:n,children:a.peer_rating_num}):a.peer_rating_num}),")"]})]}):""}):null}},43657:function(e,a,n){"use strict";n.d(a,{Z:function(){return t}});var s=n(85893),r=n(2605);function t(e){let{rating:a}=e;return(0,r.PD)()?null:(0,s.jsxs)("span",{className:"player-level",children:[" ",a.level&&a.level!=a.player.level?(0,s.jsxs)(s.Fragment,{children:["[",a.level,"] (",(0,s.jsx)("span",{className:"player-level--current",children:a.player.level}),")"]}):(0,s.jsxs)(s.Fragment,{children:["[",a.player.level,"]"]})]})}},34412:function(e,a,n){"use strict";n.d(a,{Z:function(){return m}});var s=n(85893),r=n(41664),t=n.n(r),l=n(18810),i=n(39533),c=n(20646);function d(e){let{award:a}=e,{place:n,place_to:r,title:t,icon:i,description:d,prizewinner:o,clan_prizewinner:h}=a;return o?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"tournament-award__wreath tournament-award__wreath--crown"}),(0,s.jsx)(l.Z,{player:o,size:66,className:"avatar"})]}):h?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"tournament-award__wreath tournament-award__wreath--crown"}),(0,s.jsx)(c.Z,{thumbnail:h.thumbnail,size:66,className:"avatar"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"tournament-award__wreath tournament-award__wreath--place"}),i?(0,s.jsx)("div",{className:"avatar",children:(0,s.jsx)(c.Z,{thumbnail:i,width:66,height:66,alt:t})}):(0,s.jsxs)("div",{className:"tournament-award__place",children:[" ",(0,s.jsx)("div",{children:n}),"место"]})]})}function o(e){let{award:a}=e,{place:n,place_to:r,title:l,icon:i,description:c,prizewinner:d,clan_prizewinner:o}=a;return d?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"tournament-award__place-name",children:[n," место"]}),(0,s.jsx)("div",{className:"tournament-award__title",children:(0,s.jsx)(t(),{href:d.url,children:d.name})}),(0,s.jsxs)("div",{className:"tournament-award__description",children:[l," ",c&&(0,s.jsxs)(s.Fragment,{children:["(",c,")"]})]})]}):o?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"tournament-award__place-name",children:[n," место"]}),(0,s.jsx)("div",{className:"tournament-award__title",children:o.is_active?(0,s.jsx)(t(),{href:o.url,children:o.name}):(0,s.jsx)("span",{children:o.name})}),(0,s.jsxs)("div",{className:"tournament-award__description",children:[l," ",c&&(0,s.jsxs)(s.Fragment,{children:["(",c,")"]})]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"tournament-award__place-name",children:["Приз за ",r?"".concat(n,"-").concat(r):n," место!"]}
1),(0,s.jsx)("div",{className:"tournament-award__title",children:l}),(0,s.jsx)("div",{className:"tournament-award__description",children:c})]})}function h(e){let{award:a}=e,{place:n,prizewinner:r,clan_prizewinner:t}=a;return(0,s.jsxs)("div",{className:"tournament-award tournament-award--place-".concat(n)+(r||t?" tournament-award--winner":""),children:[(0,s.jsx)("div",{className:"tournament-award__prize",children:(0,s.jsx)(d,{award:a})}),(0,s.jsx)("div",{className:"tournament-award__details",children:(0,s.jsx)(o,{award:a})})]})}function m(e){let{awards:a,scrollable:n,scrollKey:r}=e;if(!a||0==a.length)return null;let t=(0,s.jsx)("div",{className:"tournament-awards__wrapper",children:a.map(e=>(0,s.jsx)(h,{award:e},"".concat(e.place,"/").concat(e.league)))});return n&&a.length>3?(0,s.jsxs)("div",{className:"tournament-awards",children:[(0,s.jsx)("div",{className:"d-desktop-only",children:(0,s.jsx)(i.Z,{scrollDelta:300,stateKey:r,children:t})}),(0,s.jsx)("div",{className:"d-mobile-only",children:t})]}):(0,s.jsx)("div",{className:"tournament-awards",children:t})}},66242:function(e,a,n){"use strict";n.r(a),n.d(a,{__N_SSP:function(){return j},default:function(){return N}});var s=n(85893),r=n(67294),t=n(41664),l=n.n(t),i=n(18322),c=n(27346),d=n(16318),o=n(95946),h=n(1203),m=n(34412);function u(e){let{playerRatings:a,onShowRules:n}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"tournament__rules-link",children:[(0,s.jsx)("span",{children:"Рейтинг по 3 лучшим играм"}),(0,s.jsx)("a",{href:"#",onClick:n,children:"Правила"})]}),(0,s.jsx)("div",{className:"tournament__participants",children:a.map(e=>(0,s.jsx)(o.Z,{rating:e},e.place))})]})}function x(e){let{playerRatings:a}=e;return(0,s.jsxs)("table",{className:"players-table players-table--tournament",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{className:"players-table__head-index",children:"#"}),(0,s.jsx)("th",{}),(0,s.jsx)("th",{children:"Игры"}),(0,s.jsx)("th",{children:"Побед"}),(0,s.jsxs)("th",{className:"active",children:["3",(0,s.jsx)("br",{}),"ЛУЧШИЕ"]}),(0,s.jsx)("th",{className:"players-table__head-points",children:"Очки за победы одержанные в рамках турнира"})]})}),(0,s.jsx)("tbody",{children:a.map(e=>(0,s.jsx)(h.Z,{rating:e},e.place))})]})}function p(e){let{tournament:a}=e,{participants:n,rating_matrix:r}=a.rating_points_matrix;return(0,s.jsxs)("div",{className:"row g-0",children:[(0,s.jsx)("div",{className:"col-12 col-sm-5 mb-4",children:(0,s.jsx)("div",{className:"rules-text",dangerouslySetInnerHTML:{__html:a.rules}})}),(0,s.jsx)("div",{className:"col-12 col-sm-7",children:(0,s.jsx)("div",{className:"table-responsive",children:(0,s.jsxs)("table",{className:"rules-table table-bordered",children:[(0,s.jsxs)("thead",{children:[(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{rowSpan:2,style:{wordBreak:"break-word"},children:"Место"}),(0,s.jsx)("th",{colSpan:n.length,children:"Количество игроков за столом"})]}),(0,s.jsx)("tr",{children:n.map(e=>(0,s.jsx)("th",{children:e},e))})]}),(0,s.jsx)("tbody",{children:r.map(e=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:e.place}),e.ratings.map((e,a)=>(0,s.jsx)("td",{children:e>=0?e:""},a))]},e.place))})]})})})]})}let _=r.forwardRef((e,a)=>{let{href:n,children:r,onClick:t}=e;return(0,s.jsx)("a",{href:n,ref:a,onClick:e=>{e.preventDefault(),t(e)},children:r})});_.displayName="TournamentToggle";var j=!0;function N(e){let{layoutProps:a,tournament:n,tournaments:t,is_current:o,awards:h,player_ratings:j,currentCity:N}=e,[g,v]=(0,r.useState)(!1),f=()=>v(!0),[w,y]=t.slice(-2);return(0,s.jsxs)(d.Z,{pageClass:"page-tournament",menuPath:"/tournament/",...a,children:[(0,s.jsxs)("div",{className:"container-fluid",children:[(0,s.jsxs)("div",{className:"flex-title",children:[(0,s.jsx)("h2",{className:"text-nowrap",children:o?(0,s.jsxs)(s.Fragment,{children:["Турнир ",n.period_name.replace(" ",", ")]}):(0,s.jsxs)(s.Fragment,{children:["Архив",(0,s.jsx)("span",{className:"d-inline-desktop-only",children:" турниров"})]})}),o?(0,s.jsx)(l(),{href:w.url,className:"flex-title__link flex-title__link--right d-mobile-only",children:"Архив"}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{children:(0,s.jsxs)(i.Z,{autoClose:"outside",className:"flex-title__dropdown",children:[(0,s.jsx)(i.Z.Toggle,{as:_,href:n.url,children:(0,s.jsx)("span",{children:n.period_name})}),(0,s.jsx)(i.Z.Menu,{children:t.map(e=>(0,s.jsx)(i.Z.Item,{active:e.url==n.url,href:e.url,children:e.period_name},e.url))})]})}),y&&y.is_happening&&(0,s.jsx)(l(),{href:"/".concat(N.slug,"/tournament/"),className:"flex-title__link flex-title__link--right d-mobile-only",children:"Назад"})]}),o?(0,s.jsx)(l(),{href:w.url,className:"flex-title__link d-desktop-only",children:"Архив турниров"}):(0,s.jsx)(s.Fragment,{children:y&&y.is_happening&&(0,s.jsxs)(l(),{href:"/".concat(N.slug,"/tournament/"),className:"flex-title__link d-desktop-only",children:["Вернуться в текущий турнир",y&&"(".concat(y.peri
1od_name,")")]})}),(0,s.jsx)("button",{className:"btn btn-primary d-desktop-only shadow-none",onClick:f,children:"Правила турнира"})]}),(0,s.jsx)(m.Z,{awards:h}),(0,s.jsx)("div",{className:"tournament d-mobile-only",children:(0,s.jsx)(u,{playerRatings:j,onShowRules:f})}),(0,s.jsx)("div",{className:"tournament d-desktop-only",children:(0,s.jsx)(x,{playerRatings:j})})]}),g&&(0,s.jsxs)(c.Z,{show:!0,centered:!0,className:"modal--tournament",dialogClassName:"modal-xl",onHide:()=>v(!1),children:[(0,s.jsx)(c.Z.Header,{closeButton:!0,children:(0,s.jsx)(c.Z.Title,{as:"h5",children:"Правила турнира"})}),(0,s.jsx)(c.Z.Body,{children:(0,s.jsx)(p,{tournament:n})})]})]})}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=72059)}),_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.